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
@@ -0,0 +1,3 @@
1
+ module.exports=[794618,a=>{"use strict";var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s=Object.create,t=Object.defineProperty,u=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,w=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,y=(a,b,c)=>()=>{if(c)throw c[0];try{return a&&(b=a(a=0)),b}catch(a){throw c=[a],a}},z=(a,b)=>()=>(b||(a((b={exports:{}}).exports,b),a=null),b.exports),A=(a,b,c)=>(c=null!=a?s(w(a)):{},((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(var d,e=v(b),f=0,g=e.length;f<g;f++)d=e[f],x.call(a,d)||void 0===d||t(a,d,{get:(a=>b[a]).bind(null,d),enumerable:!(c=u(b,d))||c.enumerable});return a})(!b&&a&&a.__esModule&&x.call(a,"default")?c:t(c,"default",{value:a,enumerable:!0}),a)),B=a.z;function C(a){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function D(a,b,c){var d;return(d=function(a,b){if("object"!=C(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=C(d))return d;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}(b,"string"),(b="symbol"==C(d)?d:d+"")in a)?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var E=class{constructor(a){D(this,"rootKey",void 0),this.rootKey=a}get writtenAs(){}},F=a=>a instanceof E||"object"==typeof a&&null!==a&&"function"==typeof a.prepForXml,G=a=>F(a)?a.rootKey:void 0,H=Object.seal({}),I=class extends E{constructor(a){super(a),D(this,"root",void 0),this.root=[]}prepForXml(a){var b;a.stack.push(this);let c=this.root.flatMap(b=>{if(F(b)){let c=b.writtenAs;return c?c.map(b=>b.prepForXml(a)):b.prepForXml(a)}return b}).filter(a=>void 0!==a);return a.stack.pop(),{[this.rootKey]:c.length?1===c.length&&(null==(b=c[0])?void 0:b._attr)?c[0]:c:H}}addChildElement(a){return this.root.push(a),this}},J=class extends I{constructor(a,b){super(a),D(this,"includeIfEmpty",void 0),this.includeIfEmpty=b}prepForXml(a){let b=super.prepForXml(a);return this.includeIfEmpty||b&&("object"!=typeof b[this.rootKey]||Object.keys(b[this.rootKey]).length)?b:void 0}};function K(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function L(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?K(Object(c),!0).forEach(function(b){D(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):K(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}var M=class extends E{constructor(a){super("_attr"),D(this,"root",void 0),D(this,"xmlKeys",void 0),this.root=a}prepForXml(a){let b={};return Object.entries(this.root).forEach(([a,c])=>{void 0!==c&&(b[this.xmlKeys&&this.xmlKeys[a]||a]=c)}),{_attr:b}}},N=class extends E{constructor(a){super("_attr"),D(this,"root",void 0),this.root=a}prepForXml(a){return{_attr:Object.values(this.root).filter(({value:a})=>void 0!==a).reduce((a,{key:b,value:c})=>L(L({},a),{},{[b]:c}),{})}}},O=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}};function P(a,b){if(null==a)return{};var c,d,e=function(a,b){if(null==a)return{};var c={};for(var d in a)if(({}).hasOwnProperty.call(a,d)){if(b.includes(d))continue;c[d]=a[d]}return c}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],b.includes(c)||({}).propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}var Q=["elements"],R=new Map([["amp","&"],["lt","<"],["gt",">"],["quot",'"'],["apos","'"]]),S=/&([^;]*);?/g,T=a=>-1===a.indexOf("&")?a:a.replace(S,(b,c)=>{if(!b.endsWith(";"))throw Error(`Invalid XML: "&" that starts no entity, in "${a}"`);let d=R.get(c);if(void 0!==d)return d;let e=/^#x[0-9a-f]+$/i.test(c)?parseInt(c.slice(2),16):/^#[0-9]+$/.test(c)?parseInt(c.slice(1),10):0/0;if(!(e>0&&e<=1114111))throw Error(`Invalid XML: unknown entity "${b}"`);return String.fromCodePoint(e)}),U=a=>" "===a||"\n"===a||" "===a||"\r"===a,V=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,W=a=>Object.fromEntries([...a.matchAll(V)].map(([,a,b,c])=>[a,null!=b?b:c])),X=(a,{keepWhitespaceText:b=!1}={})=>{let c={},d=[],e=+(65279===a.charCodeAt(0));for(;e<a.length&&U(a[e]);)e++;let f=a=>{var b;let e=0===d.length?c:d[d.length-1];(null!=(b=e.elements)?b:e.elements=[]).push(a)},g=a=>{if(""===a.trim()){""!==a&&b&&f({type:"text",text:a});return}if(0===d.length)throw Error(`Invalid XML: text outside of the root element, "${a.trim()}"`);f({type:"text",text:T(a)})},h=(b,c,d)=>{let e=a.indexOf(b,c);if(-1===e)throw Error(`Invalid XML: ${d} that isn't closed`);return e};for(;e<a.length;){let b=a.indexOf("<",e);if(g(a.slice(e,-1===b?a.length:b)),-1===b)break;if(a.startsWith("<?",b)){let d=h("?>",b+2,"processing instruction"),g=a.slice(b+2,d),i=g.search(/\s/),j=-1===i?g:g.slice(0,i),k=-1===i?"":g.slice(i).trimStart();if("xml"===j.toLowerCase()){let a=W(k);c.declaration=Object.keys(a).length>0?{attributes:a}:{}}else f({type:"instruction",name:j,instruction:k});e=d+2}else if(a.startsWith("<!--",b)){let c=h("-->",b+4,"comment"),d=a.slice(b+4,c);""!==d&&f({type:"comment",comment:d}),e=c+3}else if(a.startsWith("<![CDATA[",b)){let c=h("]]>",b+9,"CDATA section"),d=a.slice(b+9,c);""!==d&&f({type:"cdata",cdata:d}),e=c+3}else if(a.startsWith("<!DOCTYPE",b)){let c,d=b+9,g=!1;for(;d<a.length;d++){let b=a[d];if(void 0!==c)c=b===c?void 0:c;else if('"'===b||"'"===b)c=b;else if("["===b)g=!0;else if("]"===b)g=!1;else if(">"===b&&!g)break}if(d===a.length)throw Error("Invalid XML: DOCTYPE that isn't closed");f({type:"doctype",doctype:a.slice(b+9,d).replace(/^ /,"")}),e=d+1}else if(a.startsWith("</",b)){let c=h(">",b+2,"closing tag"),f=a.slice(b+2,c).trimEnd(),g=d.pop();if((null==g?void 0:g.name)!==f){var i;throw Error(`Invalid XML: closing tag </${f}> doesn't match <${null!=(i=null==g?void 0:g.name)?i:""}>`)}e=c+1}else e=Y(a,b+1,(a,b)=>{f(a),b||d.push(a)})}if(d.length>0)throw Error(`Invalid XML: <${d[d.length-1].name}> isn't closed`);let{elements:j}=c,k=P(c,Q);return void 0===j?k:L(L({},k),{},{elements:j})},Y=(a,b,c)=>{let d=b;for(;d<a.length&&!U(a[d])&&"/"!==a[d]&&">"!==a[d];)d++;let e=a.slice(b,d);if(""===e)throw Error("Invalid XML: tag without a name");let f=[],g=d;for(;;){for(;g<a.length&&U(a[g]);)g++;if(g>=a.length)throw Error(`Invalid XML: <${e}> that isn't closed`);if(">"===a[g]||a.startsWith("/>",g)){let b="/"===a[g];return c(L({type:"element",name:e},f.length>0?{attributes:Object.fromEntries(f)}:{}),b),g+(b?2:1)}let b=a.indexOf("=",g),d=a.slice(g,-1===b?a.length:b).trimEnd();if(-1===b||""===d||/[\s/>]/.test(d))throw Error(`Invalid XML: attribute of <${e}> without a value`);let h=b+1;for(;h<a.length&&U(a[h]);)h++;let i=a[h];if('"'!==i&&"'"!==i)throw Error(`Invalid XML: value of ${d} on <${e}> isn't quoted`);let j=a.indexOf(i,h+1);if(-1===j)throw Error(`Invalid XML: value of ${d} on <${e}> isn't closed`);f.some(([a])=>a===d)||f.push([d,T(a.slice(h+1,j))]),g=j+1}},Z=new Map([["&","&amp;"],['"',"&quot;"],["'","&apos;"],["<","&lt;"],[">","&gt;"]]),$=a=>a.replace(/[&"'<>]/g,a=>Z.get(a)),_=a=>"string"==typeof a?$(a):a,aa=(a,b,c)=>{let d=Object.keys(a)[0],e=void 0===d?void 0:a[d],f=[],g=[],h=a=>{for(let[b,c]of Object.entries(a))f.push(`${b}="${String(_(c))}"`)};if("object"==typeof e){if(null!==e){let{_attr:a,_cdata:d}=e;if(a&&h(a),d&&g.push(`<![CDATA[${d.replace(/\]\]>/g,"]]]]><![CDATA[>")}]]>`),Array.isArray(e)){let a=!1;for(let d of(g.push(""),e))"object"==typeof d?"_attr"===Object.keys(d)[0]?h(d._attr):g.push(aa(d,b,c+1)):(g.pop(),a=!0,g.push(_(d)));a||g.push("")}}}else g.push(_(e));return{name:d,attributes:f,content:g,indents:c>1?b.repeat(c-1):""}},ab=(a,b,c)=>{if("object"!=typeof a)return String(a);let{name:d,attributes:e,content:f,indents:g}=a,{length:h}=f,i=g+(d?`<${d}`:"")+(e.length>0?` ${e.join(" ")}`:"")+(h>0?d?">":"":"/>")+(b&&h>1?"\n":"");return 0===h?i+(b?"\n":""):i+f.map(a=>void 0===a?"":ab(a,b,!1)).join("")+(h>1?g:"")+(d?`</${d}>`:"")+(b&&!c?"\n":"")},ac=(a,{indent:b="",declaration:c}={})=>{let d=Array.isArray(a)?a:[a],e=+!!b,f=(null==c?void 0:c.standalone)?` standalone="${$(c.standalone)}"`:"";return(void 0===c?"":`<?xml version="1.0" encoding="${$(c.encoding||"UTF-8")}"${f}?>${b?"\n":""}`)+d.map((a,c)=>ab(aa(a,b,e),b,c===d.length-1)).join("")},ad=a=>Object.entries(null!=a?a:{}).flatMap(([a,b])=>null==b?[]:[` ${a}="${$(String(b))}"`]).join(""),ae=a=>{switch(a.type){case"element":{var b,c;let d=null!=(b=a.elements)?b:[],e=`<${a.name}${ad(a.attributes)}`;return d.length>0||(null==(c=a.attributes)?void 0:c["xml:space"])==="preserve"?`${e}>${d.map(ae).join("")}</${a.name}>`:`${e}/>`}case"text":return String(a.text).replace(/[&<>]/g,a=>Z.get(a));case"cdata":return`<![CDATA[${String(a.cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")}]]>`;case"comment":return`<!--${a.comment}-->`;case"doctype":return`<!DOCTYPE ${a.doctype}>`;case"instruction":return`<?${a.name}${a.instruction?` ${a.instruction}`:""}?>`;default:return""}},af=a=>{var b;return(a.declaration?`<?xml${ad(a.declaration.attributes)}?>`:"")+(null!=(b=a.elements)?b:[]).map(ae).join("")},ag=a=>{switch(a.type){case void 0:case"element":let b=new ai(a.name,a.attributes);for(let c of a.elements||[]){let a=ag(c);void 0!==a&&b.push(a)}return b;case"text":return a.text;default:return}},ah=class extends M{},ai=class extends I{static fromXmlString(a){return ag(X(a))}constructor(a,b){super(a),b&&this.root.push(new ah(b))}push(a){this.root.push(a)}},aj=class extends I{constructor(a){super(""),D(this,"_attr",void 0),this._attr=a}prepForXml(a){return{_attr:this._attr}}},ak=class extends I{constructor(a,b){super(a),b&&(this.root=b.root)}},al=a=>{if(!Number.isFinite(a))throw Error(`Invalid value '${a}' specified. Must be an integer.`);return Math.floor(a)},am=a=>{let b=al(a);if(b<0)throw Error(`Invalid value '${a}' specified. Must be a positive integer.`);return b},an=(a,b)=>{let c=2*b;if(a.length!==c||isNaN(Number(`0x${a}`)))throw Error(`Invalid hex value '${a}'. Expected ${c} digit hex value`);return a},ao=a=>{let b=a.slice(-2),c=a.substring(0,a.length-2);return`${Number(c)}${b}`},ap={in:1440,cm:1440/2.54,mm:1440/25.4,pt:20,pc:240,pi:240},aq=a=>{if("number"==typeof a)return a;let b=a.slice(-2),c=Number(a.substring(0,a.length-2)),d=ap[b];if(void 0===d||Number.isNaN(c))throw Error(`Invalid universal measure '${a}'. Expected a number followed by mm, cm, in, pt, pc or pi.`);return c*d},ar=a=>{let b=ao(a);if(0>parseFloat(b))throw Error(`Invalid value '${b}' specified. Expected a positive number.`);return b},as=a=>"auto"===a?a:an("#"===a.charAt(0)?a.substring(1):a,3),at=a=>"string"==typeof a?ao(a):al(a),au=a=>"string"==typeof a?ar(a):am(a),av=a=>{let b;return"number"==typeof a?al(a):"%"===a.slice(-1)?(b=a.substring(0,a.length-1),`${Number(b)}%`):ao(a)},aw=class extends I{constructor(a,b=!0){super(a),!0!==b&&this.root.push(new O({val:b}))}},ax=class extends I{constructor(a,b){super(a),this.root.push(new O({val:"string"==typeof b?ar(b):am(b)}))}},ay=class extends I{},az=class extends I{constructor(a,b){super(a),this.root.push(new O({val:b}))}},aA=(a,b)=>new aD({name:a,attributes:{value:{key:"w:val",value:b}}}),aB=class extends I{constructor(a,b){super(a),this.root.push(new O({val:b}))}},aC=class extends I{constructor(a,b){super(a),this.root.push(b)}},aD=class extends I{constructor({name:a,attributes:b,children:c}){super(a),b&&this.root.push(new N(b)),c&&this.root.push(...c)}},aE={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"},aF=a=>new aD({name:"w:jc",attributes:{val:{key:"w:val",value:a}}}),aG={dark1:"dk1",light1:"lt1",dark2:"dk2",light2:"lt2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hyperlink:"hlink",followedHyperlink:"folHlink"},aH={dark2:"44546A",light2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hyperlink:"0563C1",followedHyperlink:"954F72"},aI={dark1:{value:"windowText",lastColor:"000000"},light1:{value:"window",lastColor:"FFFFFF"}},aJ=(a,b)=>{if("auto"===b)throw Error(`Invalid theme color ${a} 'auto'. Expected 6 digit hex value`);return as(b)},aK=(a={})=>Object.fromEntries(Object.keys(aG).map(b=>{let c=a[b],d="dark1"===b||"light1"===b?aI[b].lastColor:aH[b];return[b,void 0===c?d:aJ(b,c)]})),aL=new Set(["dark1","light1","dark2","light2","accent1","accent2","accent3","accent4","accent5","accent6","hyperlink","followedHyperlink"]),aM=new Map([["dk1","dark1"],["lt1","light1"],["dk2","dark2"],["lt2","light2"],["hlink","hyperlink"],["folHlink","followedHyperlink"],["text1","dark1"],["background1","light1"],["text2","dark2"],["background2","light2"]]),aN=(a,b)=>{if(!(a>=0&&a<=100))throw Error(`Invalid ${b} ${a}. Expected a number from 0 to 100`);return Math.round(255*(1-a/100))},aO=a=>void 0===a?void 0:a.toString(16).padStart(2,"0").toUpperCase(),aP=aK(),aQ=class extends E{constructor(a){super("_attr"),D(this,"attributes",void 0),this.attributes=a.map(a=>{let b;return"keys"in a?{keys:a.keys,color:void 0===a.color?void 0:"string"==typeof(b=a.color)?{type:"hex",value:as(b)}:{type:"theme",color:b,change:(({theme:a,lighter:b,darker:c})=>{if(!aL.has(a)){let b=aM.get(a);throw Error(`Invalid theme color "${a}". ${b?`Did you mean "${b}"?`:`Expected one of ${[...aL].join(", ")}`}`)}if(void 0!==b&&void 0!==c)throw Error("Invalid theme color. Expected lighter or darker, not both");let d=void 0===b?void 0:aN(b,"lighter"),e=void 0===c?void 0:aN(c,"darker");return{tint:255===d?void 0:d,shade:255===e?void 0:e}})(b)}}:a})}prepForXml(a){var b,c;let d=null!=(b=null==(c=a.file)||null==(c=c.Theme)?void 0:c.Colors)?b:aP;return{_attr:Object.fromEntries(this.attributes.flatMap(a=>{let b;if(!("keys"in a))return[[a.key,a.value]];if(void 0===a.color)return[];let{keys:c}=a,e=(b=a.color,"hex"===b.type?{color:b.value}:{color:((a,{tint:b,shade:c})=>{if(void 0===b&&void 0===c)return a;let d=(a=>{let[b,c,d]=[0,2,4].map(b=>parseInt(a.slice(b,b+2),16)/255),e=Math.max(b,c,d),f=Math.min(b,c,d),g=(e+f)/2,h=e-f;return 0===h?{hue:0,saturation:0,lightness:g}:{hue:(e===b?((c-d)/h+6)%6:e===c?(d-b)/h+2:(b-c)/h+4)*60,saturation:h/(1-Math.abs(2*g-1)),lightness:g}})(a),e=void 0===b?d.lightness*c/255:d.lightness*b/255+(1-b/255);return(({hue:a,saturation:b,lightness:c})=>{let d=(1-Math.abs(2*c-1))*b,e=d*(1-Math.abs(a/60%2-1)),[f,g,h]=a<60?[d,e,0]:a<120?[e,d,0]:a<180?[0,d,e]:a<240?[0,e,d]:a<300?[e,0,d]:[d,0,e],i=c-d/2;return[f,g,h].map(a=>Math.floor((a+i)*255+1e-9).toString(16).padStart(2,"0")).join("").toUpperCase()})(L(L({},d),{},{lightness:e}))})(d[b.color.theme],b.change),theme:b.color.theme,tint:aO(b.change.tint),shade:aO(b.change.shade)});return[[c.color,e.color],[c.theme,e.theme],[c.tint,e.tint],[c.shade,e.shade]]}).filter(([,a])=>void 0!==a))}}},aR=class extends I{constructor(a,b){super(a),this.root.push(new aQ(b))}},aS=(a,b)=>new aR(a,b),aT={color:"w:color",theme:"w:themeColor",tint:"w:themeTint",shade:"w:themeShade"},aU=(a,{color:b,size:c,space:d,style:e})=>aS(a,[{key:"w:val",value:e},{keys:aT,color:b},{key:"w:sz",value:void 0===c?void 0:am(c)},{key:"w:space",value:void 0===d?void 0:am(d)}]),aV="single",aW=class extends J{constructor(a){super("w:pBdr"),a.top&&this.root.push(aU("w:top",a.top)),a.left&&this.root.push(aU("w:left",a.left)),a.bottom&&this.root.push(aU("w:bottom",a.bottom)),a.right&&this.root.push(aU("w:right",a.right)),a.between&&this.root.push(aU("w:between",a.between))}},aX=class extends I{constructor(){super("w:pBdr");let a=aU("w:bottom",{color:"auto",space:1,style:aV,size:6});this.root.push(a)}},aY=()=>new aD({name:"w:br"}),aZ="begin",a$="separate",a_=(a,b,c)=>new aD({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:a},dirty:{key:"w:dirty",value:b},locked:{key:"w:fldLock",value:c}}}),a0=new WeakSet,a1=class extends aD{constructor(){super({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:aZ},dirty:{key:"w:dirty",value:!0}}})}prepForXml(a){let b=super.prepForXml(a);return a0.add(b),b}},a2=()=>new a1,a3="preserve",a4=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{space:"xml:space"})}},a5=class extends I{constructor(){super("w:instrText"),this.root.push(new a4({space:a3})),this.root.push("PAGE")}},a6=class extends I{constructor(){super("w:instrText"),this.root.push(new a4({space:a3})),this.root.push("NUMPAGES")}},a7=class extends I{constructor(){super("w:instrText"),this.root.push(new a4({space:a3})),this.root.push("SECTIONPAGES")}},a8=class extends I{constructor(){super("w:instrText"),this.root.push(new a4({space:a3})),this.root.push("SECTION")}},a9=({fill:a,color:b,type:c})=>aS("w:shd",[{keys:{color:"w:fill",theme:"w:themeFill",tint:"w:themeFillTint",shade:"w:themeFillShade"},color:a},{keys:aT,color:b},{key:"w:val",value:null!=c?c:ba.CLEAR}]),ba={CLEAR:"clear"},bb=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},bc=class extends I{constructor(a){super("w:del"),this.root.push(new bb({id:a.id,author:a.author,date:a.date}))}},bd=class extends I{constructor(a){super("w:ins"),this.root.push(new bb({id:a.id,author:a.author,date:a.date}))}},be={DOT:"dot"},bf=class extends I{constructor(a){super("w:spacing"),this.root.push(new O({val:at(a)}))}},bg=class extends I{constructor(a){super("w:color"),this.root.push(new aQ([{keys:L(L({},aT),{},{color:"w:val"}),color:a}]))}},bh=class extends I{constructor(a){super("w:highlight"),this.root.push(new O({val:a}))}},bi=(a,b)=>{if("string"==typeof a)return new aD({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:a},cs:{key:"w:cs",value:a},eastAsia:{key:"w:eastAsia",value:a},hAnsi:{key:"w:hAnsi",value:a},hint:{key:"w:hint",value:b}}});if("theme"in a){let b="headings"===a.theme?"major":"minor";return new aD({name:"w:rFonts",attributes:{ascii:{key:"w:asciiTheme",value:`${b}HAnsi`},eastAsia:{key:"w:eastAsiaTheme",value:`${b}EastAsia`},hAnsi:{key:"w:hAnsiTheme",value:`${b}HAnsi`},cs:{key:"w:cstheme",value:`${b}Bidi`}}})}return new aD({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:a.ascii},cs:{key:"w:cs",value:a.cs},eastAsia:{key:"w:eastAsia",value:a.eastAsia},hAnsi:{key:"w:hAnsi",value:a.hAnsi},hint:{key:"w:hint",value:a.hint}}})},bj=a=>new aD({name:"w:vertAlign",attributes:{val:{key:"w:val",value:a}}}),bk={SINGLE:"single"},bl=class extends J{constructor(a){var b,c;let d;if(super("w:rPr"),!a)return;a.style&&this.push(new az("w:rStyle",a.style)),a.font&&("string"==typeof a.font?this.push(bi(a.font)):"name"in a.font?this.push(bi(a.font.name,a.font.hint)):this.push(bi(a.font))),void 0!==a.bold&&this.push(new aw("w:b",a.bold)),(void 0===a.boldComplexScript&&void 0!==a.bold||a.boldComplexScript)&&this.push(new aw("w:bCs",null!=(b=a.boldComplexScript)?b:a.bold)),void 0!==a.italics&&this.push(new aw("w:i",a.italics)),(void 0===a.italicsComplexScript&&void 0!==a.italics||a.italicsComplexScript)&&this.push(new aw("w:iCs",null!=(c=a.italicsComplexScript)?c:a.italics)),void 0!==a.smallCaps?this.push(new aw("w:smallCaps",a.smallCaps)):void 0!==a.allCaps&&this.push(new aw("w:caps",a.allCaps)),void 0!==a.strike&&this.push(new aw("w:strike",a.strike)),void 0!==a.doubleStrike&&this.push(new aw("w:dstrike",a.doubleStrike)),void 0!==a.emboss&&this.push(new aw("w:emboss",a.emboss)),void 0!==a.imprint&&this.push(new aw("w:imprint",a.imprint)),void 0!==a.noProof&&this.push(new aw("w:noProof",a.noProof)),void 0!==a.snapToGrid&&this.push(new aw("w:snapToGrid",a.snapToGrid)),void 0!==a.vanish&&this.push(new aw("w:vanish",a.vanish)),a.color&&this.push(new bg(a.color)),a.characterSpacing&&this.push(new bf(a.characterSpacing)),void 0!==a.scale&&this.push(new aB("w:w",a.scale)),a.kern&&this.push(new ax("w:kern",a.kern)),a.position&&this.push(new az("w:position",a.position)),void 0!==a.size&&this.push(new ax("w:sz",a.size));let e=void 0===a.sizeComplexScript||!0===a.sizeComplexScript?a.size:a.sizeComplexScript;e&&this.push(new ax("w:szCs",e)),a.highlight&&this.push(new bh(a.highlight)),a.underline&&this.push(((a=bk.SINGLE,b)=>aS("w:u",[{key:"w:val",value:a},{keys:aT,color:b}]))(a.underline.type,a.underline.color)),a.effect&&this.push(new az("w:effect",a.effect)),a.border&&this.push(aU("w:bdr",a.border)),a.shading&&this.push(a9(a.shading)),a.subScript&&this.push(bj("subscript")),a.superScript&&this.push(bj("superscript")),void 0!==a.rightToLeft&&this.push(new aw("w:rtl",a.rightToLeft)),a.emphasisMark&&this.push(((a=be.DOT)=>new aD({name:"w:em",attributes:{val:{key:"w:val",value:a}}}))(a.emphasisMark.type)),a.language&&this.push(new aD({name:"w:lang",attributes:{value:{key:"w:val",value:(d=a.language).value},eastAsia:{key:"w:eastAsia",value:d.eastAsia},bidirectional:{key:"w:bidi",value:d.bidirectional}}})),a.eastAsianLayout&&this.push((({twoLinesInOne:a,brackets:b,horizontalInVertical:c,fitToLine:d,group:e})=>new aD({name:"w:eastAsianLayout",attributes:{id:{key:"w:id",value:void 0===e?void 0:al(e)},combine:{key:"w:combine",value:a},combineBrackets:{key:"w:combineBrackets",value:b},vert:{key:"w:vert",value:c},vertCompress:{key:"w:vertCompress",value:d}}}))(a.eastAsianLayout)),void 0!==a.specVanish&&this.push(new aw("w:specVanish",a.specVanish)),void 0!==a.math&&this.push(new aw("w:oMath",a.math)),a.revision&&this.push(new bn(a.revision))}push(a){this.root.push(a)}},bm=class extends bl{constructor(a){super(a),(null==a?void 0:a.insertion)&&this.push(new bd(a.insertion)),(null==a?void 0:a.deletion)&&this.push(new bc(a.deletion))}},bn=class extends I{constructor(a){super("w:rPrChange"),this.root.push(new bb({id:a.id,author:a.author,date:a.date})),this.addChildElement(new bl(a))}},bo=class extends I{constructor(a){if(super("w:t"),"string"==typeof a)this.root.push(new a4({space:a3})),this.root.push(a);else{var b;this.root.push(new a4({space:null!=(b=a.space)?b:"default"})),this.root.push(a.text)}}},bp=a=>{switch(a){case"CURRENT":return[a_(aZ,void 0,void 0),new a5,a_(a$,void 0),a_("end",void 0)];case"TOTAL_PAGES":return[a_(aZ,void 0,void 0),new a6,a_(a$,void 0),a_("end",void 0)];case"TOTAL_PAGES_IN_SECTION":return[a_(aZ,void 0,void 0),new a7,a_(a$,void 0),a_("end",void 0)];case"SECTION":return[a_(aZ,void 0,void 0),new a8,a_(a$,void 0),a_("end",void 0)];default:return}},bq=class a extends I{constructor(b){if(super("w:r"),D(this,"properties",void 0),D(this,"following",[]),this.properties=new bl(b),this.root.push(this.properties),b.break)for(let a=0;a<b.break;a++)this.root.push(aY());if(b.children)for(let[c,d]of b.children.entries()){if("w:r"===G(d)){let e=b.children.slice(c+1);this.following=[d,...e.length>0?[new a(L(L({},b),{},{break:void 0,children:e}))]:[]];break}if("string"==typeof d){let e=bp(d);if(e){let d=b.children.slice(c+1),f=c=>new a(L(L({},b),{},{break:void 0,children:c})),g=1===this.root.length;g&&this.root.push(e[0]);let h=g?e.slice(1):e;this.following=[...h.map(a=>f([a])),...d.length>0?[f(d)]:[]];break}this.root.push(new bo(d));continue}this.root.push(d)}else void 0!==b.text&&this.root.push(new bo(b.text))}get writtenAs(){return this.following.length>0?[this,...this.following.flatMap(a=>{var b;return null!=(b=a.writtenAs)?b:a})]:void 0}},br=class extends bq{constructor(a){super("string"==typeof a?{text:a}:a)}},bs=z((a,b)=>{function c(a,b){if(!a)throw Error(b||"Assertion failed")}b.exports=c,c.equal=function(a,b,c){if(a!=b)throw Error(c||"Assertion failed: "+a+" != "+b)}}),bt=z((a,b)=>{"function"==typeof Object.create?b.exports=function(a,b){b&&(a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:b.exports=function(a,b){if(b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}}}),bu=z(a=>{var b=bs();function c(a){return(a>>>24|a>>>8&65280|a<<8&0xff0000|(255&a)<<24)>>>0}function d(a){return 1===a.length?"0"+a:a}function e(a){if(7===a.length)return"0"+a;if(6===a.length)return"00"+a;if(5===a.length)return"000"+a;if(4===a.length)return"0000"+a;if(3===a.length)return"00000"+a;else if(2===a.length)return"000000"+a;else if(1===a.length)return"0000000"+a;else return a}a.inherits=bt(),a.toArray=function(a,b){if(Array.isArray(a))return a.slice();if(!a)return[];var c=[];if("string"==typeof a)if(b){if("hex"===b)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),e=0;e<a.length;e+=2)c.push(parseInt(a[e]+a[e+1],16))}else for(var d=0,e=0;e<a.length;e++){var f,g,h=a.charCodeAt(e);h<128?c[d++]=h:(h<2048?c[d++]=h>>6|192:((f=a,g=e,(64512&f.charCodeAt(g))!=55296||g<0||g+1>=f.length?1:(64512&f.charCodeAt(g+1))!=56320)?c[d++]=h>>12|224:(h=65536+((1023&h)<<10)+(1023&a.charCodeAt(++e)),c[d++]=h>>18|240,c[d++]=h>>12&63|128),c[d++]=h>>6&63|128),c[d++]=63&h|128)}else for(e=0;e<a.length;e++)c[e]=0|a[e];return c},a.toHex=function(a){for(var b="",c=0;c<a.length;c++)b+=d(a[c].toString(16));return b},a.htonl=c,a.toHex32=function(a,b){for(var d="",f=0;f<a.length;f++){var g=a[f];"little"===b&&(g=c(g)),d+=e(g.toString(16))}return d},a.zero2=d,a.zero8=e,a.join32=function(a,c,d,e){var f,g=d-c;b(g%4==0);for(var h=Array(g/4),i=0,j=c;i<h.length;i++,j+=4)f="big"===e?a[j]<<24|a[j+1]<<16|a[j+2]<<8|a[j+3]:a[j+3]<<24|a[j+2]<<16|a[j+1]<<8|a[j],h[i]=f>>>0;return h},a.split32=function(a,b){for(var c=Array(4*a.length),d=0,e=0;d<a.length;d++,e+=4){var f=a[d];"big"===b?(c[e]=f>>>24,c[e+1]=f>>>16&255,c[e+2]=f>>>8&255,c[e+3]=255&f):(c[e+3]=f>>>24,c[e+2]=f>>>16&255,c[e+1]=f>>>8&255,c[e]=255&f)}return c},a.rotr32=function(a,b){return a>>>b|a<<32-b},a.rotl32=function(a,b){return a<<b|a>>>32-b},a.sum32=function(a,b){return a+b>>>0},a.sum32_3=function(a,b,c){return a+b+c>>>0},a.sum32_4=function(a,b,c,d){return a+b+c+d>>>0},a.sum32_5=function(a,b,c,d,e){return a+b+c+d+e>>>0},a.sum64=function(a,b,c,d){var e=a[b],f=d+a[b+1]>>>0;a[b]=+(f<d)+c+e>>>0,a[b+1]=f},a.sum64_hi=function(a,b,c,d){return+(b+d>>>0<b)+a+c>>>0},a.sum64_lo=function(a,b,c,d){return b+d>>>0},a.sum64_4_hi=function(a,b,c,d,e,f,g,h){var i,j=b;return a+c+e+g+(i=0+ +((j=j+d>>>0)<b)+ +((j=j+f>>>0)<f)+ +((j=j+h>>>0)<h))>>>0},a.sum64_4_lo=function(a,b,c,d,e,f,g,h){return b+d+f+h>>>0},a.sum64_5_hi=function(a,b,c,d,e,f,g,h,i,j){var k,l=b;return a+c+e+g+i+(k=0+ +((l=l+d>>>0)<b)+ +((l=l+f>>>0)<f)+ +((l=l+h>>>0)<h)+ +((l=l+j>>>0)<j))>>>0},a.sum64_5_lo=function(a,b,c,d,e,f,g,h,i,j){return b+d+f+h+j>>>0},a.rotr64_hi=function(a,b,c){return(b<<32-c|a>>>c)>>>0},a.rotr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0},a.shr64_hi=function(a,b,c){return a>>>c},a.shr64_lo=function(a,b,c){return(a<<32-c|b>>>c)>>>0}}),bv=z(a=>{var b=bu(),c=bs();function d(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}a.BlockHash=d,d.prototype.update=function(a,c){if(a=b.toArray(a,c),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){var d=(a=this.pending).length%this._delta8;this.pending=a.slice(a.length-d,a.length),0===this.pending.length&&(this.pending=null),a=b.join32(a,0,a.length-d,this.endian);for(var e=0;e<a.length;e+=this._delta32)this._update(a,e,e+this._delta32)}return this},d.prototype.digest=function(a){return this.update(this._pad()),c(null===this.pending),this._digest(a)},d.prototype._pad=function(){var a=this.pendingTotal,b=this._delta8,c=b-(a+this.padLength)%b,d=Array(c+this.padLength);d[0]=128;for(var e=1;e<c;e++)d[e]=0;if(a<<=3,"big"===this.endian){for(var f=8;f<this.padLength;f++)d[e++]=0;d[e++]=0,d[e++]=0,d[e++]=0,d[e++]=0,d[e++]=a>>>24&255,d[e++]=a>>>16&255,d[e++]=a>>>8&255,d[e++]=255&a}else for(d[e++]=255&a,d[e++]=a>>>8&255,d[e++]=a>>>16&255,d[e++]=a>>>24&255,d[e++]=0,d[e++]=0,d[e++]=0,d[e++]=0,f=8;f<this.padLength;f++)d[e++]=0;return d}}),bw=z(a=>{var b=bu().rotr32;function c(a,b,c){return a&b^a&c^b&c}a.ft_1=function(a,b,d,e){var f;return 0===a?(f=b)&d^~f&e:1===a||3===a?b^d^e:2===a?c(b,d,e):void 0},a.ch32=function(a,b,c){return a&b^~a&c},a.maj32=c,a.p32=function(a,b,c){return a^b^c},a.s0_256=function(a){return b(a,2)^b(a,13)^b(a,22)},a.s1_256=function(a){return b(a,6)^b(a,11)^b(a,25)},a.g0_256=function(a){return b(a,7)^b(a,18)^a>>>3},a.g1_256=function(a){return b(a,17)^b(a,19)^a>>>10}}),bx=z((a,b)=>{var c=bu(),d=bv(),e=bw(),f=c.rotl32,g=c.sum32,h=c.sum32_5,i=e.ft_1,j=d.BlockHash,k=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function l(){if(!(this instanceof l))return new l;j.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}c.inherits(l,j),b.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(a,b){for(var c=this.W,d=0;d<16;d++)c[d]=a[b+d];for(;d<c.length;d++)c[d]=f(c[d-3]^c[d-8]^c[d-14]^c[d-16],1);var e=this.h[0],j=this.h[1],l=this.h[2],m=this.h[3],n=this.h[4];for(d=0;d<c.length;d++){var o=~~(d/20),p=h(f(e,5),i(o,j,l,m),n,c[d],k[o]);n=m,m=l,l=f(j,30),j=e,e=p}this.h[0]=g(this.h[0],e),this.h[1]=g(this.h[1],j),this.h[2]=g(this.h[2],l),this.h[3]=g(this.h[3],m),this.h[4]=g(this.h[4],n)},l.prototype._digest=function(a){return"hex"===a?c.toHex32(this.h,"big"):c.split32(this.h,"big")}}),by=z((a,b)=>{var c=bu(),d=bv(),e=bw(),f=bs(),g=c.sum32,h=c.sum32_4,i=c.sum32_5,j=e.ch32,k=e.maj32,l=e.s0_256,m=e.s1_256,n=e.g0_256,o=e.g1_256,p=d.BlockHash,q=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function r(){if(!(this instanceof r))return new r;p.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=q,this.W=Array(64)}c.inherits(r,p),b.exports=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(a,b){for(var c=this.W,d=0;d<16;d++)c[d]=a[b+d];for(;d<c.length;d++)c[d]=h(o(c[d-2]),c[d-7],n(c[d-15]),c[d-16]);var e=this.h[0],p=this.h[1],q=this.h[2],r=this.h[3],s=this.h[4],t=this.h[5],u=this.h[6],v=this.h[7];for(f(this.k.length===c.length),d=0;d<c.length;d++){var w=i(v,m(s),j(s,t,u),this.k[d],c[d]),x=g(l(e),k(e,p,q));v=u,u=t,t=s,s=g(r,w),r=q,q=p,p=e,e=g(w,x)}this.h[0]=g(this.h[0],e),this.h[1]=g(this.h[1],p),this.h[2]=g(this.h[2],q),this.h[3]=g(this.h[3],r),this.h[4]=g(this.h[4],s),this.h[5]=g(this.h[5],t),this.h[6]=g(this.h[6],u),this.h[7]=g(this.h[7],v)},r.prototype._digest=function(a){return"hex"===a?c.toHex32(this.h,"big"):c.split32(this.h,"big")}}),bz=z((a,b)=>{var c=bu(),d=by();function e(){if(!(this instanceof e))return new e;d.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}c.inherits(e,d),b.exports=e,e.blockSize=512,e.outSize=224,e.hmacStrength=192,e.padLength=64,e.prototype._digest=function(a){return"hex"===a?c.toHex32(this.h.slice(0,7),"big"):c.split32(this.h.slice(0,7),"big")}}),bA=z((a,b)=>{var c=bu(),d=bv(),e=bs(),f=c.rotr64_hi,g=c.rotr64_lo,h=c.shr64_hi,i=c.shr64_lo,j=c.sum64,k=c.sum64_hi,l=c.sum64_lo,m=c.sum64_4_hi,n=c.sum64_4_lo,o=c.sum64_5_hi,p=c.sum64_5_lo,q=d.BlockHash,r=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function s(){if(!(this instanceof s))return new s;q.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=r,this.W=Array(160)}c.inherits(s,q),b.exports=s,s.blockSize=1024,s.outSize=512,s.hmacStrength=192,s.padLength=128,s.prototype._prepareBlock=function(a,b){for(var c=this.W,d=0;d<32;d++)c[d]=a[b+d];for(;d<c.length;d+=2){var e=function(a,b){var c=f(a,b,19)^f(b,a,29)^h(a,b,6);return c<0&&(c+=0x100000000),c}(c[d-4],c[d-3]),j=function(a,b){var c=g(a,b,19)^g(b,a,29)^i(a,b,6);return c<0&&(c+=0x100000000),c}(c[d-4],c[d-3]),k=c[d-14],l=c[d-13],o=function(a,b){var c=f(a,b,1)^f(a,b,8)^h(a,b,7);return c<0&&(c+=0x100000000),c}(c[d-30],c[d-29]),p=function(a,b){var c=g(a,b,1)^g(a,b,8)^i(a,b,7);return c<0&&(c+=0x100000000),c}(c[d-30],c[d-29]),q=c[d-32],r=c[d-31];c[d]=m(e,j,k,l,o,p,q,r),c[d+1]=n(e,j,k,l,o,p,q,r)}},s.prototype._update=function(a,b){this._prepareBlock(a,b);var c=this.W,d=this.h[0],h=this.h[1],i=this.h[2],m=this.h[3],n=this.h[4],q=this.h[5],r=this.h[6],s=this.h[7],t=this.h[8],u=this.h[9],v=this.h[10],w=this.h[11],x=this.h[12],y=this.h[13],z=this.h[14],A=this.h[15];e(this.k.length===c.length);for(var B=0;B<c.length;B+=2){var C=z,D=A,E=function(a,b){var c=f(a,b,14)^f(a,b,18)^f(b,a,9);return c<0&&(c+=0x100000000),c}(t,u),F=function(a,b){var c=g(a,b,14)^g(a,b,18)^g(b,a,9);return c<0&&(c+=0x100000000),c}(t,u),G=function(a,b,c){var d=a&b^~a&c;return d<0&&(d+=0x100000000),d}(t,v,x),H=function(a,b,c){var d=a&b^~a&c;return d<0&&(d+=0x100000000),d}(u,w,y),I=this.k[B],J=this.k[B+1],K=c[B],L=c[B+1],M=o(C,D,E,F,G,H,I,J,K,L),N=p(C,D,E,F,G,H,I,J,K,L);C=function(a,b){var c=f(a,b,28)^f(b,a,2)^f(b,a,7);return c<0&&(c+=0x100000000),c}(d,h),D=function(a,b){var c=g(a,b,28)^g(b,a,2)^g(b,a,7);return c<0&&(c+=0x100000000),c}(d,h);var O=k(C,D,E=function(a,b,c){var d=a&b^a&c^b&c;return d<0&&(d+=0x100000000),d}(d,i,n),F=function(a,b,c){var d=a&b^a&c^b&c;return d<0&&(d+=0x100000000),d}(h,m,q)),P=l(C,D,E,F);z=x,A=y,x=v,y=w,v=t,w=u,t=k(r,s,M,N),u=l(s,s,M,N),r=n,s=q,n=i,q=m,i=d,m=h,d=k(M,N,O,P),h=l(M,N,O,P)}j(this.h,0,d,h),j(this.h,2,i,m),j(this.h,4,n,q),j(this.h,6,r,s),j(this.h,8,t,u),j(this.h,10,v,w),j(this.h,12,x,y),j(this.h,14,z,A)},s.prototype._digest=function(a){return"hex"===a?c.toHex32(this.h,"big"):c.split32(this.h,"big")}}),bB=z((a,b)=>{var c=bu(),d=bA();function e(){if(!(this instanceof e))return new e;d.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}c.inherits(e,d),b.exports=e,e.blockSize=1024,e.outSize=384,e.hmacStrength=192,e.padLength=128,e.prototype._digest=function(a){return"hex"===a?c.toHex32(this.h.slice(0,12),"big"):c.split32(this.h.slice(0,12),"big")}}),bC=z(a=>{a.sha1=bx(),a.sha224=bz(),a.sha256=by(),a.sha384=bB(),a.sha512=bA()}),bD=z(a=>{var b=bu(),c=bv(),d=b.rotl32,e=b.sum32,f=b.sum32_3,g=b.sum32_4,h=c.BlockHash;function i(){if(!(this instanceof i))return new i;h.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function j(a,b,c,d){return a<=15?b^c^d:a<=31?b&c|~b&d:a<=47?(b|~c)^d:a<=63?b&d|c&~d:b^(c|~d)}b.inherits(i,h),a.ripemd160=i,i.blockSize=512,i.outSize=160,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(a,b){for(var c=this.h[0],h=this.h[1],i=this.h[2],o=this.h[3],p=this.h[4],q=c,r=h,s=i,t=o,u=p,v=0;v<80;v++){var w,x,y=e(d(g(c,j(v,h,i,o),a[k[v]+b],(w=v)<=15?0:w<=31?0x5a827999:w<=47?0x6ed9eba1:w<=63?0x8f1bbcdc:0xa953fd4e),m[v]),p);c=p,p=o,o=d(i,10),i=h,h=y,y=e(d(g(q,j(79-v,r,s,t),a[l[v]+b],(x=v)<=15?0x50a28be6:x<=31?0x5c4dd124:x<=47?0x6d703ef3:0x7a6d76e9*!!(x<=63)),n[v]),u),q=u,u=t,t=d(s,10),s=r,r=y}y=f(this.h[1],i,t),this.h[1]=f(this.h[2],o,u),this.h[2]=f(this.h[3],p,q),this.h[3]=f(this.h[4],c,r),this.h[4]=f(this.h[0],h,s),this.h[0]=y},i.prototype._digest=function(a){return"hex"===a?b.toHex32(this.h,"little"):b.split32(this.h,"little")};var k=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],n=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}),bE=z((a,b)=>{var c=bu(),d=bs();function e(a,b,d){if(!(this instanceof e))return new e(a,b,d);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(c.toArray(b,d))}b.exports=e,e.prototype._init=function(a){a.length>this.blockSize&&(a=new this.Hash().update(a).digest()),d(a.length<=this.blockSize);for(var b=a.length;b<this.blockSize;b++)a.push(0);for(b=0;b<a.length;b++)a[b]^=54;for(this.inner=new this.Hash().update(a),b=0;b<a.length;b++)a[b]^=106;this.outer=new this.Hash().update(a)},e.prototype.update=function(a,b){return this.inner.update(a,b),this},e.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)}}),bF=A((z(a=>{a.utils=bu(),a.common=bv(),a.sha=bC(),a.ripemd=bD(),a.hmac=bE(),a.sha1=a.sha.sha1,a.sha256=a.sha.sha256,a.sha224=a.sha.sha224,a.sha384=a.sha.sha384,a.sha512=a.sha.sha512,a.ripemd160=a.ripemd.ripemd160}))(),1),bG=a=>Math.floor(72*a*20),bH=(a=0)=>{let b=a;return()=>++b},bI=bH(),bJ=bH(),bK=()=>((a=21)=>{let b="",c=0|a;for(;c-- >0;)b+="57X6y3wQZNzYjJB2L_10pxbackgroundhimselfUTF-8DEMOGRAPHICSVqvt4KW9"[64*Math.random()|0];return b})().toLowerCase(),bL=a=>bF.default.sha1().update(a instanceof ArrayBuffer?new Uint8Array(a):a).digest("hex"),bM=a=>((a,b=21)=>(c=b)=>{let d="",e=0|c;for(;e-- >0;)d+=a[Math.random()*a.length|0];return d})("1234567890abcdef",a)(),bN=a=>new Uint8Array(new TextEncoder().encode(a)),bO=a=>new aD({name:"wp:align",children:[a]}),bP=a=>new aD({name:"wp:posOffset",children:[a.toString()]}),bQ=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{cx:"cx",cy:"cy"})}},bR=class extends I{constructor(a,b){super("a:ext"),D(this,"attributes",void 0),this.attributes=new bQ({cx:a,cy:b}),this.root.push(this.attributes)}},bS=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{x:"x",y:"y"})}},bT=class extends I{constructor(a,b){super("a:off"),this.root.push(new bS({x:null!=a?a:0,y:null!=b?b:0}))}},bU=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}},bV=class extends I{constructor(a){var b,c,d,e;super("a:xfrm"),D(this,"extents",void 0),D(this,"offset",void 0),this.root.push(new bU({flipVertical:null==(b=a.flip)?void 0:b.vertical,flipHorizontal:null==(c=a.flip)?void 0:c.horizontal,rotation:a.rotation})),this.offset=new bT(null==(d=a.offset)||null==(d=d.emus)?void 0:d.x,null==(e=a.offset)||null==(e=e.emus)?void 0:e.y),this.extents=new bR(a.emus.x,a.emus.y),this.root.push(this.offset),this.root.push(this.extents)}},bW=()=>new aD({name:"a:noFill"}),bX=a=>new aD({name:"a:solidFill",children:[new aD("rgb"===a.type?{name:"a:srgbClr",attributes:{value:{key:"val",value:a.value}}}:{name:"a:schemeClr",attributes:{value:{key:"val",value:a.value}}})]}),bY={ROUND:"rnd",SQUARE:"sq",FLAT:"flat"},bZ={SINGLE:"sng",DOUBLE:"dbl",THICK_THIN:"thickThin",THIN_THICK:"thinThick",TRI:"tri"},b$={CENTER:"ctr",INSET:"in"},b_=class extends I{constructor(){super("a:avLst")}},b0=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{prst:"prst"})}},b1=class extends I{constructor(){super("a:prstGeom"),this.root.push(new b0({prst:"rect"})),this.root.push(new b_)}},b2=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{bwMode:"bwMode"})}},b3=class extends I{constructor({element:a,outline:b,solidFill:c,transform:d}){super(`${a}:spPr`),D(this,"form",void 0),this.root.push(new b2({bwMode:"auto"})),this.form=new bV(d),this.root.push(this.form),this.root.push(new b1),c?this.root.push(bX(c)):b&&this.root.push(bW()),b&&this.root.push(new aD({name:"a:ln",attributes:{width:{key:"w",value:b.width},cap:{key:"cap",value:void 0===b.cap?void 0:bY[b.cap]},compoundLine:{key:"cmpd",value:void 0===b.compoundLine?void 0:bZ[b.compoundLine]},align:{key:"algn",value:void 0===b.align?void 0:b$[b.align]}},children:["noFill"===b.type?bW():"rgb"===b.solidFillType?bX({type:"rgb",value:b.value}):bX({type:"scheme",value:b.value})]}))}},b4=a=>new aD({name:"wps:wsp",children:[((a={txBox:"1"})=>new aD({name:"wps:cNvSpPr",attributes:{txBox:{key:"txBox",value:a.txBox}}}))(a.nonVisualProperties),new b3({element:"wps",transform:a.transformation,outline:a.outline,solidFill:a.solidFill}),new aD({name:"wps:txbx",children:[new aD({name:"w:txbxContent",children:[...a.children]})]}),((a={})=>{var b,c,d,e;return new aD({name:"wps:bodyPr",attributes:{lIns:{key:"lIns",value:null==(b=a.margins)?void 0:b.left},rIns:{key:"rIns",value:null==(c=a.margins)?void 0:c.right},tIns:{key:"tIns",value:null==(d=a.margins)?void 0:d.top},bIns:{key:"bIns",value:null==(e=a.margins)?void 0:e.bottom},anchor:{key:"anchor",value:a.verticalAnchor}},children:[...a.noAutoFit?[new aw("a:noAutofit",a.noAutoFit)]:[]]})})(a.bodyProperties)]}),b5=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{uri:"uri"})}},b6=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{left:"l",top:"t",right:"r",bottom:"b"})}},b7=(a,b)=>{if(void 0!==a){if(!(a>=0&&a<=100))throw Error(`Invalid crop ${b} ${a}. Expected a number from 0 to 100`);return Math.round(1e3*a)}},b8=class extends I{constructor(a){super("a:srcRect"),a&&this.root.push(new b6({left:b7(a.left,"left"),top:b7(a.top,"top"),right:b7(a.right,"right"),bottom:b7(a.bottom,"bottom")}))}},b9=class extends I{constructor(){super("a:fillRect")}},ca=class extends I{constructor(){super("a:stretch"),this.root.push(new b9)}},cb=class extends I{constructor(a,b){super("pic:blipFill"),this.root.push(new aD({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${"svg"===a.type?a.fallback.fileName:a.fileName}}`},cstate:{key:"cstate",value:"none"}},children:"svg"===a.type?[new aD({name:"a:extLst",children:[new aD({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[new aD({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${a.fileName}}`}}})]})]})]:[]})),this.root.push(new b8(b)),this.root.push(new ca)}},cc=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}},cd=class extends I{constructor(){super("a:picLocks"),this.root.push(new cc({noChangeAspect:1,noChangeArrowheads:1}))}},ce=class extends I{constructor(){super("pic:cNvPicPr"),this.root.push(new cd)}},cf=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}},cg=class extends I{constructor(){super("pic:cNvPr"),this.root.push(new cf({id:0,name:"",descr:""}))}prepForXml(a){for(let b=a.stack.length-1;b>=0;b--){let c=a.stack[b];if(c instanceof dM){this.root.push(c.createDrawingClick(a,!1));break}}let b=super.prepForXml(a);return this.root.splice(1),b}},ch=class extends I{constructor(){super("pic:nvPicPr"),this.root.push(new cg),this.root.push(new ce)}},ci=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{xmlns:"xmlns:pic"})}},cj=class extends I{constructor({mediaData:a,transform:b,outline:c,solidFill:d,crop:e}){super("pic:pic"),this.root.push(new ci({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new ch),this.root.push(new cb(a,e)),this.root.push(new b3({element:"pic",transform:b,outline:c,solidFill:d}))}},ck=class extends I{constructor({mediaData:a,transform:b,outline:c,solidFill:d,crop:e}){if(super("a:graphicData"),"graphic"===a.type)this.root.push(new b5({uri:a.uri})),this.root.push(a.content);else if("wps"===a.type){this.root.push(new b5({uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));let e=b4(L(L({},a.data),{},{transformation:b,outline:c,solidFill:d}));this.root.push(e)}else if("wpg"===a.type){var f,g,h,i,j,k;this.root.push(new b5({uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"}));let c=(f={children:a.children.map(a=>"wps"===a.type?b4(L(L({},a.data),{},{transformation:a.transformation,outline:a.outline,solidFill:a.solidFill})):new cj({mediaData:a,transform:a.transformation,outline:a.outline,solidFill:a.solidFill})),transformation:b},new aD({name:"wpg:wgp",children:[new aD({name:"wpg:cNvGrpSpPr"}),new aD({name:"wpg:grpSpPr",children:[new aD({name:"a:xfrm",attributes:{flipVertical:{key:"flipV",value:null==(h=(g=f.transformation).flip)?void 0:h.vertical},flipHorizontal:{key:"flipH",value:null==(i=g.flip)?void 0:i.horizontal},rotation:{key:"rot",value:g.rotation}},children:[new bT(null==(j=g.offset)||null==(j=j.emus)?void 0:j.x,null==(k=g.offset)||null==(k=k.emus)?void 0:k.y),new bR(g.emus.x,g.emus.y),new aD({name:"a:chOff",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),new aD({name:"a:chExt",attributes:{x:{key:"cx",value:g.emus.x},y:{key:"cy",value:g.emus.y}}})]})]}),...f.children]}));this.root.push(c)}else{this.root.push(new b5({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"}));let f=new cj({mediaData:a,transform:b,outline:c,solidFill:d,crop:e});this.root.push(f)}}},cl=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{a:"xmlns:a"})}},cm=class extends I{constructor({mediaData:a,transform:b,outline:c,solidFill:d,crop:e}){super("a:graphic"),D(this,"data",void 0),this.root.push(new cl({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new ck({mediaData:a,transform:b,outline:c,solidFill:d,crop:e}),this.root.push(this.data)}},cn="bothSides",co=()=>new aD({name:"wp:wrapNone"}),cp=(a,{x:b,y:c})=>new aD({name:a,attributes:{x:{key:"x",value:b},y:{key:"y",value:c}}}),cq=(a,b={},c)=>{var d;return new aD({name:a,attributes:{wrapText:{key:"wrapText",value:null!=(d=null==c?void 0:c.side)?d:cn},distL:{key:"distL",value:b.left},distR:{key:"distR",value:b.right}},children:[new aD({name:"wp:wrapPolygon",attributes:{edited:{key:"edited",value:!1}},children:[cp("wp:start",{x:0,y:0}),cp("wp:lineTo",{x:0,y:21600}),cp("wp:lineTo",{x:21600,y:21600}),cp("wp:lineTo",{x:21600,y:0}),cp("wp:lineTo",{x:0,y:0})]})]})},cr="External",cs=(a,b)=>new aD({name:"a:hlinkClick",attributes:L(L({},b?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{},{id:{key:"r:id",value:`rId${a}`}})}),ct=class{constructor(a){D(this,"link",void 0),D(this,"linkId",bK()),D(this,"addedTo",new WeakSet),this.link=a}createClick(a){return cs(this.linkId,a)}addRelationship(a){let b=a.viewWrapper.Relationships;this.addedTo.has(b)||(this.addedTo.add(b),b.addRelationship(this.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",this.link,cr))}},cu=class extends I{constructor({name:a,description:b,title:c,id:d}={name:""},{link:e,decorative:f}={}){super("wp:docPr"),D(this,"link",void 0),D(this,"decorative",void 0);let g={id:{key:"id",value:null!=d?d:bI()},name:{key:"name",value:a}};b&&(g.description={key:"descr",value:b}),c&&(g.title={key:"title",value:c}),this.root.push(new N(g)),this.link=void 0===e?void 0:new ct(e),this.decorative=f}prepForXml(a){if(this.link)this.link.addRelationship(a),this.root.push(this.link.createClick(!0));else for(let b=a.stack.length-1;b>=0;b--){let c=a.stack[b];if(c instanceof dM){this.root.push(c.createDrawingClick(a,!0));break}}this.decorative&&this.root.push(new aD({name:"a:extLst",attributes:{namespace:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}},children:[new aD({name:"a:ext",attributes:{uri:{key:"uri",value:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[new aD({name:"adec:decorative",attributes:{namespace:{key:"xmlns:adec",value:"http://schemas.microsoft.com/office/drawing/2017/decorative"},value:{key:"val",value:1}}})]})]}));let b=super.prepForXml(a);return this.root.splice(1),b}},cv=({top:a,right:b,bottom:c,left:d})=>new aD({name:"wp:effectExtent",attributes:{top:{key:"t",value:a},right:{key:"r",value:b},bottom:{key:"b",value:c},left:{key:"l",value:d}}}),cw=(a,b)=>{if(void 0!==b&&b>0x7fffffff)throw Error(`Invalid drawing ${a} ${b} EMUs (${Math.round(b/9525)} pixels). Word won't open a drawing with a ${a} over 2147483647 EMUs (${Math.floor(0x7fffffff/9525)} pixels). Sizes such as an ImageRun's transformation are in pixels, not EMUs`);return b},cx=({x:a,y:b})=>new aD({name:"wp:extent",attributes:{x:{key:"cx",value:cw("width",a)},y:{key:"cy",value:cw("height",b)}}}),cy=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}},cz=class extends I{constructor(){super("a:graphicFrameLocks"),this.root.push(new cy({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}},cA=(a=!0)=>new aD({name:"wp:cNvGraphicFramePr",children:a?[new cz]:[]}),cB=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}},cC=class extends I{constructor({mediaData:a,transform:b,drawingOptions:c}){var d;super("wp:anchor");let e=L({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},c.floating);if(this.root.push(new cB({distT:e.margins&&e.margins.top||0,distB:e.margins&&e.margins.bottom||0,distL:e.margins&&e.margins.left||0,distR:e.margins&&e.margins.right||0,simplePos:"0",allowOverlap:!0===e.allowOverlap?"1":"0",behindDoc:!0===e.behindDocument?"1":"0",locked:!0===e.lockAnchor?"1":"0",layoutInCell:!0===e.layoutInCell?"1":"0",relativeHeight:e.zIndex?e.zIndex:b.emus.y})),this.root.push(new aD({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}})),this.root.push((({relative:a,align:b,offset:c})=>new aD({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:null!=a?a:"page"}},children:[(()=>{if(b)return bO(b);if(void 0!==c)return bP(c);throw Error("There is no configuration provided for floating position (Align or offset)")})()]}))(e.horizontalPosition)),this.root.push((({relative:a,align:b,offset:c})=>new aD({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:null!=a?a:"page"}},children:[(()=>{if(b)return bO(b);if(void 0!==c)return bP(c);throw Error("There is no configuration provided for floating position (Align or offset)")})()]}))(e.verticalPosition)),this.root.push(cx({x:b.emus.x,y:b.emus.y})),this.root.push(cv(null!=(d=c.effectExtent)?d:{top:0,right:0,bottom:0,left:0})),void 0!==c.floating&&void 0!==c.floating.wrap)switch(c.floating.wrap.type){case 1:this.root.push(((a,b={top:0,bottom:0,left:0,right:0})=>new aD({name:"wp:wrapSquare",attributes:{wrapText:{key:"wrapText",value:a.side||cn},distT:{key:"distT",value:b.top},distB:{key:"distB",value:b.bottom},distL:{key:"distL",value:b.left},distR:{key:"distR",value:b.right}}}))(c.floating.wrap,c.floating.margins));break;case 2:this.root.push(cq("wp:wrapTight",c.floating.margins,c.floating.wrap));break;case 4:this.root.push(cq("wp:wrapThrough",c.floating.margins,c.floating.wrap));break;case 3:this.root.push(((a={top:0,bottom:0})=>new aD({name:"wp:wrapTopAndBottom",attributes:{distT:{key:"distT",value:a.top},distB:{key:"distB",value:a.bottom}}}))(c.floating.margins));break;default:this.root.push(co())}else this.root.push(co());this.root.push(new cu(c.docProperties,{link:c.link,decorative:c.decorative})),this.root.push(cA("graphic"!==a.type||!1!==a.lockAspectRatio)),this.root.push(new cm({mediaData:a,transform:b,outline:c.outline,solidFill:c.solidFill,crop:c.crop}))}},cD=class extends I{constructor(a,b={}){super("w:drawing"),b.floating?this.root.push(new cC({mediaData:a,transform:a.transformation,drawingOptions:b})):this.root.push((({mediaData:a,transform:b,docProperties:c,outline:d,solidFill:e,crop:f,effectExtent:g,link:h,decorative:i})=>{var j,k,l,m;return new aD({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[cx({x:b.emus.x,y:b.emus.y}),cv(null!=g?g:d?{top:(null!=(j=d.width)?j:9525)*2,right:(null!=(k=d.width)?k:9525)*2,bottom:(null!=(l=d.width)?l:9525)*2,left:(null!=(m=d.width)?m:9525)*2}:{top:0,right:0,bottom:0,left:0}),new cu(c,{link:h,decorative:i}),cA("graphic"!==a.type||!1!==a.lockAspectRatio),new cm({mediaData:a,transform:b,outline:d,solidFill:e,crop:f})]})})({mediaData:a,transform:a.transformation,docProperties:b.docProperties,outline:b.outline,solidFill:b.solidFill,crop:b.crop,effectExtent:b.effectExtent,link:b.link,decorative:b.decorative}))}},cE=a=>{let b;return"string"==typeof a?(b=a.indexOf(";base64,"),new Uint8Array(atob(a.substring(-1===b?0:b+8)).split("").map(a=>a.charCodeAt(0)))):a},cF=[["png",[137,80,78,71,13,10,26,10]],["jpg",[255,216,255]],["gif",[71,73,70,56,55,97]],["gif",[71,73,70,56,57,97]],["bmp",[66,77]]],cG=(a,b)=>({data:cE(a.data),fileName:b,transformation:{pixels:{x:Math.round(a.transformation.width),y:Math.round(a.transformation.height)},emus:{x:Math.round(9525*a.transformation.width),y:Math.round(9525*a.transformation.height)},flip:a.transformation.flip,rotation:a.transformation.rotation?6e4*a.transformation.rotation:void 0}}),cH=(a,b,c)=>{let d=(({type:a,data:b},c)=>{if(void 0!==a)return a;let d=cE(b),e=ArrayBuffer.isView(d)?new Uint8Array(d.buffer,d.byteOffset,d.byteLength):new Uint8Array(d),f=cF.find(([,a])=>a.every((a,b)=>e[b]===a));if(void 0===f)throw Error(`${c}: type isn't given, and data isn't a PNG, JPEG, GIF or BMP file to read it from. Give its type`);return f[0]})(a,c);return L({type:d},cG(L(L({},a),{},{transformation:b}),`${bL(a.data)}.${d}`))},cI=class extends I{constructor(a){var b;let c="svg"===a.type?L(L({type:a.type},cG(a,`${bL(a.data)}.svg`)),{},{fallback:cH(a.fallback,a.transformation,"ImageRun fallback")}):cH(a,a.transformation,"ImageRun"),d=new cD(c,{floating:a.floating,docProperties:a.altText,outline:a.outline,solidFill:a.solidFill,crop:a.crop,link:a.link,decorative:a.decorative}),e=new bl(a.run),f=null!=(b=a.insertion)?b:a.deletion;if(super(a.insertion?"w:ins":a.deletion?"w:del":"w:r"),D(this,"imageData",void 0),f){this.root.push(new bb({id:f.id,author:f.author,date:f.date}));let b=new aD({name:"w:r",children:[e,d]});this.addChildElement(a.insertion&&a.deletion?(({id:a,author:b,date:c},d)=>new aD({name:"w:del",attributes:{id:{key:"w:id",value:a},author:{key:"w:author",value:b},date:{key:"w:date",value:c}},children:[d]}))(a.deletion,b):b)}else this.root.push(e),this.root.push(d);this.imageData=c}prepForXml(a){return a.file.Media.addImage(this.imageData.fileName,this.imageData),"svg"===this.imageData.type&&a.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(a)}},cJ=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],cK=a=>a<=32767?cJ.reduce(({rest:a,text:b},[c,d])=>({rest:a%c,text:b+d.repeat(Math.floor(a/c))}),{rest:a,text:""}).text:void 0,cL=a=>0===a?"":a<=780?String.fromCharCode(65+(a-1)%26).repeat(Math.ceil(a/26)):void 0,cM=a=>{let b=a.charAt(0)!==a.charAt(0).toUpperCase(),c=a=>c=>{var d;return b?null==(d=a(c))?void 0:d.toLowerCase():a(c)};switch(a.toLowerCase()){case"arabic":return String;case"roman":return c(cK);case"alphabetic":return c(cL);case"ordinal":return a=>{var b;return a>0?`${a}${a%100>=11&&a%100<=13?"th":null!=(b=["th","st","nd","rd"][a%10])?b:"th"}`:void 0};case"arabicdash":return a=>`- ${a} -`;default:return}},cN=new Set(["mergeformat","charformat","mergeformatinet"]),cO=new Set(["upper","lower","firstcap","caps"]),cP=a=>/^[#0,]*[#0][#0,]*$/.test(a),cQ=a=>RegExp("^\\s*TOC\\b.*\\\\s\\b","is").test(a),cR=(a,{enclosing:b,within:c,inTextBox:d},{estimate:e,sectionPageCount:f,blank:g,relativeTo:h})=>{let i,j=(a=>{var b;let c,d,e=RegExp("^\\s*(PAGEREF|NUMPAGES|SECTIONPAGES)\\b(.*)$","is").exec(a),f=(null==e?void 0:e[1].toUpperCase())==="PAGEREF"?RegExp('^\\s*("?)([^\\s"\\\\]+)\\1(.*)$',"s").exec(e[2]):void 0;if(!e||"PAGEREF"===e[1].toUpperCase()&&!f)return;let g=null!=(b=(f?f[3]:e[2]).match(/"[^"]*"|\S+/g))?b:[],h=[],i=!1,j=!0;for(let a=0;a<g.length;a++){let b=g[a],e=()=>{var c;return(b.length>2?b.slice(2):null!=(c=g[++a])?c:"").replace(/^"(.*)"$/,"$1")};if(/^\\p$/i.test(b))i=!0;else if(b.startsWith("\\#")){let a=e();j&&(j=void 0===d&&cP(a)),null!=d||(d=a)}else if(b.startsWith("\\*")){let a=e(),b=a.toLowerCase();cO.has(b)?h.push(b):""===a||cN.has(b)||(j&&(j=void 0===c&&void 0!==cM(a)),null!=c||(c=a))}}let k=L(L(L(L({},void 0===c?{}:{numberFormat:c}),void 0===d?{}:{picture:d}),0===h.length?{}:{capitals:h[0]}),{},{written:j&&h.length<=1&&"caps"!==h[0]&&(void 0===c||void 0===d)});return f?L({type:"pageReference",bookmark:f[2],relative:i},k):L({type:"pageCount",scope:"NUMPAGES"===e[1].toUpperCase()?"document":"section"},k)})(a);if(void 0===j)return;let{bookmarks:k,pageCount:l,bookmarkPageNumbers:m}=e,{numberFormat:n,picture:o,capitals:p,written:q}=j,r=void 0!==n||void 0!==o,s=a=>void 0===a?void 0:void 0===o?cM(null!=n?n:"arabic")(a):((a,b)=>{let c=[...b].filter(a=>"0"===a).length,d=c+[...b].filter(a=>"#"===a).length,e=String(a).padStart(c,"0");if(!(e.length<d)&&(0!==c||0!==a))return b.includes(",")?e.replace(/\B(?=(\d{3})+$)/g,","):e})(a,o),t="pageReference"===j.type&&j.relative&&"counted"===c&&!d?null==h?void 0:h(j.bookmark):void 0;return void 0===(i=q?"pageCount"===j.type?s("document"===j.scope?l:f):b.some(cQ)?void 0:r?s(null==m?void 0:m.get(j.bookmark)):j.relative?t:k.get(j.bookmark):void 0)?g?"":void 0:((a,b)=>{switch(b){case"upper":return a.toUpperCase();case"lower":return a.toLowerCase();case"firstcap":return a.charAt(0).toUpperCase()+a.slice(1);default:return a}})(i,p)},cS=(a,b)=>"mc:Fallback"===a||"fallback"===b?"fallback":"w:del"===a||"w:moveFrom"===a?"deleted":b,cT=(a,b,c,d,e="counted",f=!1)=>{for(let j=0;j<b.length;j++){var g,h,i;let k=b[j],l=a.nameOf(k);if(void 0===l)continue;let m=c[c.length-1];if("w:fldChar"===l){let g=a.attributeOf(k,"w:fldCharType");"begin"===g?c.push({begin:k,instruction:"",inResult:!1}):"separate"===g&&m?(a.writeClean(m.begin,m.instruction),m.inResult=!0,m.result=d.resultOf(m.instruction,{within:e,enclosing:c.slice(0,-1).map(a=>a.instruction),inTextBox:f}),void 0!==m.result&&(b.splice(j+1,0,a.textElement(m.result)),j++)):"end"===g&&c.pop()}else if("w:instrText"===l&&m&&!m.inResult)m.instruction+=a.textOf(k);else if(("w:t"===l||"w:tab"===l||"w:br"===l||"w:cr"===l)&&(null==m?void 0:m.result)!==void 0)b.splice(j,1),j--;else if("w:fldSimple"===l){let b=d.resultOf(String(a.attributeOf(k,"w:instr")),{within:e,enclosing:c.map(a=>a.instruction),inTextBox:f});void 0===b?cT(a,null!=(g=a.contentOf(k))?g:[],[],d,e,f):a.setSimpleFieldResult(k,b)}else"w:p"===l&&(null==(i=d.beforeParagraph)||i.call(d,k)),cT(a,null!=(h=a.contentOf(k))?h:[],c,d,cS(l,e),f||"w:txbxContent"===l),"w:p"===l&&d.afterParagraph(k)}},cU=(a,b)=>b.flatMap(b=>{var c;let d=a.nameOf(b);return void 0===d?[]:"w:sectPr"===d?[b]:cU(a,null!=(c=a.contentOf(b))?c:[])}),cV=(a,b,c,{blank:d})=>{let{sectionPageCounts:e=[],relativePositions:f}=c,g=0,h=new Map,i=a=>{var b,c;let d=null!=(b=h.get(a))?b:0;return h.set(a,d+1),null==f||null==(c=f.get(a))?void 0:c[d]};return cT(a,[b],[],{resultOf:(a,b)=>cR(a,b,{estimate:c,sectionPageCount:e[g],blank:d,relativeTo:i}),afterParagraph:b=>{var c;g+=+!!(null!=(c=a.contentOf(b))?c:[]).some(b=>{var c;return"w:pPr"===a.nameOf(b)&&(null!=(c=a.contentOf(b))?c:[]).some(b=>"w:sectPr"===a.nameOf(b))})}}),new Map([...cU(a,[b]).reduce((b,c)=>{var d,e;let f=(null!=(d=a.contentOf(c))?d:[]).flatMap(b=>{let c=a.nameOf(b);return"w:headerReference"===c||"w:footerReference"===c?[[`${c} ${String(a.attributeOf(b,"w:type"))}`,String(a.attributeOf(b,"r:id"))]]:[]});return[...b,new Map([...null!=(e=b[b.length-1])?e:[],...f])]},[]).reduce((a,b,c)=>{for(let f of b.values()){var d;a.set(f,[...null!=(d=a.get(f))?d:[],e[c]])}return a},new Map)].flatMap(([a,[b,...c]])=>void 0!==b&&c.every(a=>a===b)?[[a,b]]:[]))},cW=(a,b,c,{blank:d,sectionPageCount:e,notes:f=!1})=>{let g=a=>{let b=c.bookmarks.get(a);return void 0===b?void 0:`on page ${b}`};cT(a,[b],[],{resultOf:(a,b)=>cR(a,b,L({estimate:c,sectionPageCount:e,blank:d},f?{relativeTo:g}:{})),afterParagraph:()=>void 0})},cX=class extends I{constructor(a={}){super("w:instrText"),D(this,"properties",void 0),this.properties=a,this.root.push(new a4({space:a3}));let b="TOC";if(this.properties.captionLabel&&(b=`${b} \\a "${this.properties.captionLabel}"`),this.properties.entriesFromBookmark&&(b=`${b} \\b "${this.properties.entriesFromBookmark}"`),this.properties.captionLabelIncludingNumbers&&(b=`${b} \\c "${this.properties.captionLabelIncludingNumbers}"`),this.properties.sequenceAndPageNumbersSeparator&&(b=`${b} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`),this.properties.tcFieldIdentifier&&(b=`${b} \\f "${this.properties.tcFieldIdentifier}"`),this.properties.hyperlink&&(b=`${b} \\h`),this.properties.tcFieldLevelRange&&(b=`${b} \\l "${this.properties.tcFieldLevelRange}"`),this.properties.pageNumbersEntryLevelsRange&&(b=`${b} \\n "${this.properties.pageNumbersEntryLevelsRange}"`),this.properties.headingStyleRange&&(b=`${b} \\o "${this.properties.headingStyleRange}"`),this.properties.entryAndPageNumberSeparator&&(b=`${b} \\p "${this.properties.entryAndPageNumberSeparator}"`),this.properties.seqFieldIdentifierForPrefix&&(b=`${b} \\s "${this.properties.seqFieldIdentifierForPrefix}"`),this.properties.stylesWithLevels&&this.properties.stylesWithLevels.length){let a=this.properties.stylesWithLevels.map(a=>`${a.styleName},${a.level}`).join(",");b=`${b} \\t "${a}"`}this.properties.useAppliedParagraphOutlineLevel&&(b=`${b} \\u`),this.properties.preserveTabInEntries&&(b=`${b} \\w`),this.properties.preserveNewLineInEntries&&(b=`${b} \\x`),this.properties.hideTabAndPageNumbersInWebView&&(b=`${b} \\z`),this.root.push(b)}},cY=class extends I{constructor(){super("w:sdtContent")}},cZ=new WeakMap,c$=class{constructor(){D(this,"ids",[])}get(a){var b;return null!=(b=this.ids)[a]||(b[a]=bJ()),this.ids[a]}},c_=a=>"object"==typeof a&&null!==a?Object.keys(a)[0]:void 0,c0=a=>{let b=c_(a),c=void 0===b?void 0:a[b];return Array.isArray(c)?c:void 0===c?[]:[c]},c1=(a,b)=>c0(a).find(a=>c_(a)===b),c2=(a,b)=>{var c;return null==(c=c1(a,"_attr"))||null==(c=c._attr)?void 0:c[b]},c3=(a,b)=>{let c=c2(a,b);return void 0===c?void 0:Number(c)},c4=new Set(["w:tbl","w:tr","w:tc","w:sdt","w:sdtContent","w:customXml"]),c5=a=>a.flatMap(a=>{let b=c_(a);return"w:p"===b||cZ.has(a)?[a]:void 0!==b&&c4.has(b)?c5(c0(a)):[]}),c6=new Set(["w:r","w:hyperlink","w:ins","w:moveTo","w:smartTag","w:customXml","w:sdt","w:sdtContent","w:fldSimple","w:dir","w:bdo"]),c7=a=>{let b=c_(a);return"w:bookmarkStart"===b?[{start:!0,id:c2(a,"w:id"),name:c2(a,"w:name")}]:"w:bookmarkEnd"===b?[{start:!1,id:c2(a,"w:id")}]:void 0===b||"_attr"===b?[]:c0(a).flatMap(c7)},c8=a=>{var b;return new Map(c0(null==(b=a.file)||null==(b=b.Styles)?void 0:b.prepForXml(a)).filter(a=>"w:style"===c_(a)&&["paragraph",void 0].includes(c2(a,"w:type"))).map(a=>[c2(a,"w:styleId"),{name:c2(c1(a,"w:name"),"w:val"),basedOn:c2(c1(a,"w:basedOn"),"w:val"),outlineLevel:c3(c1(c1(a,"w:pPr"),"w:outlineLvl"),"w:val")}]))},c9=a=>{let b=/^\s*(\d+)\s*-\s*(\d+)\s*$/.exec(a);return b?[Number(b[1]),Number(b[2])]:void 0},da=(a,[b,c])=>a>=b&&a<=c,db=(a,b)=>{var c,d;if(void 0===a)return;let e=/^heading ?([1-9])$/i.exec(null!=(c=null==(d=b.get(a))?void 0:d.name)?c:a);return e?Number(e[1]):void 0},dc=(a,b,c=0)=>{var d;if(void 0===a||c>b.size)return;let e=b.get(a),f=db(a,b);return null!=(d=null==e?void 0:e.outlineLevel)?d:void 0===f?dc(null==e?void 0:e.basedOn,b,c+1):f-1},dd=(a,b)=>{var c;return null!=(c=a.outlineLevel)?c:dc(a.styleId,b)},de=(a,b,c,d)=>{let e=c0(a),f=e.findIndex(a=>"w:pPr"===c_(a))+1;a["w:p"]=[...e.slice(0,f),new dS(b,c).prepForXml(d),...e.slice(f),new dT(c).prepForXml(d)]},df=RegExp("^\\p{L}[\\p{L}\\p{N}_]*$","u"),dg=a=>{var b;let c=RegExp("^\\s*SEQ\\b(.*)$","is").exec(a);if(!c)return;let[d,...e]=null!=(b=c[1].match(/"[^"]*"|\S+/g))?b:[];if(void 0===d)return{};let f=d.replace(/^"(.*)"$/,"$1");return df.test(f)?{identifier:f,sequence:(a=>{var b,c,d,e;let f,g,h=!1,i=!1,j=!1;for(let b=0;b<a.length;b++){let c,k=a[b],l=null!=(d=a[b+1])?d:"";if(0!==b||k.startsWith("\\"))if("\\c"===k||"\\n"===k)c={type:"\\c"===k?"repeat":"next"};else if(("\\r"===k||"\\s"===k)&&/^\d+$/.test(l))b++,c="\\r"===k?{type:"reset",to:Number(l)}:{type:"heading",level:Number(l)};else if("\\h"===k)h=!0;else if("\\#"===k&&b+1<a.length)b++,j=!0;else{if("\\*"!==k||!(b+1<a.length))return;let c=a[++b];if(cO.has(c.toLowerCase()))i=!0;else if(!cN.has(c.toLowerCase())){if(void 0!==g)return;g=c}}else c={type:"bookmark"};if(c&&f)return;f=null!=(e=c)?e:f}if((null==f?void 0:f.type)==="bookmark"&&a.length>1)return;let k=!j&&!(i&&void 0!==g&&"arabic"!==g.toLowerCase());return{step:null!=(b=f)?b:{type:"next"},hidden:h&&void 0===g,format:k?null!=(c=g)?c:"ARABIC":""}})(e)}:{identifier:f}},dh=a=>"object"!=typeof a||null===a?[]:Array.isArray(a)?a.flatMap(dh):Object.entries(a).flatMap(([a,b])=>[...("w:instrText"===a&&Array.isArray(b)?b:"_attr"===a?[b["w:instr"]]:[]).flatMap(a=>{let b="string"==typeof a?dg(a):void 0;return(null==b?void 0:b.identifier)===void 0?[]:[b.identifier.toLowerCase()]}),...dh(b)]),di=a=>{let b="object"!=typeof a||null===a||Array.isArray(a)?void 0:Object.keys(a)[0];return"_attr"===b?void 0:b},dj=a=>({"w:t":[{_attr:{"xml:space":"preserve"}},a]}),dk={nameOf:di,contentOf:a=>{let b=a[di(a)];return Array.isArray(b)?b:void 0},attributeOf:(a,b)=>{var c;let d=a[di(a)],e=Array.isArray(d)?d.find(a=>"object"==typeof a&&null!==a&&"_attr"in a):d;return null==e||null==(c=e._attr)?void 0:c[b]},textOf:a=>dk.contentOf(a).filter(a=>"string"==typeof a).join(""),textElement:dj,writeClean:a=>{if("object"==typeof a&&null!==a&&a0.has(a)){let b=a["w:fldChar"]._attr;a["w:fldChar"]={_attr:Object.fromEntries(Object.entries(b).filter(([a])=>"w:dirty"!==a))}}},setSimpleFieldResult:(a,b)=>{let c=a["w:fldSimple"];a["w:fldSimple"]=[...(Array.isArray(c)?c:[c]).filter(a=>"object"==typeof a&&null!==a&&"_attr"in a),{"w:r":[dj(b)]}]}},dl=new WeakMap,dm=(a,b,c)=>{let d=b.file&&dl.get(b.file);if(!a||!d)return;let e=void 0===c?void 0:d.partPageCounts.get(`rId${c}`);cW(dk,a,d.estimate,{blank:!1,sectionPageCount:e,notes:"w:footnotes"in a||"w:endnotes"in a})},dn=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{xmlns:"xmlns"})}},dp=class a extends I{constructor(){super("Relationships"),this.root.push(new dn({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(a,b,c,d){this.root.push(new aD({name:"Relationship",attributes:{id:{key:"Id",value:`rId${a}`},type:{key:"Type",value:b},target:{key:"Target",value:c},targetMode:{key:"TargetMode",value:d}}}))}static copy(b){let c=new a;return c.root.push(...b.root.slice(1)),c}get RelationshipCount(){return this.root.length-1}},dq=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}},dr=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{"xmlns:wpc":"xmlns:wpc","xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps","mc:Ignorable":"mc:Ignorable"})}},ds=class extends I{constructor({id:a,initials:b,author:c,date:d=new Date,children:e},f){for(let g of(super("w:comment"),D(this,"paraId",void 0),this.paraId=f,this.root.push(new dq({id:a,initials:b,author:c,date:d.toISOString()})),e))this.root.push(g)}prepForXml(a){let b=super.prepForXml(a);if(!b||!this.paraId)return b;let c=b["w:comment"];if(!Array.isArray(c))return b;for(let a=c.length-1;a>=0;a--){let b=c[a];if(b&&"object"==typeof b&&"w:p"in b){let a=b["w:p"];Array.isArray(a)&&a.unshift({_attr:{"w14:paraId":this.paraId,"w14:textId":this.paraId}});break}}return b}},dt=class extends I{constructor({children:a}){super("w:comments"),D(this,"relationships",void 0),D(this,"threadData",void 0),D(this,"commentIdsData",void 0),D(this,"isEmpty",void 0),this.isEmpty=0===a.length,this.root.push(new dr({"xmlns:wpc":"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape","mc:Ignorable":"w14 w15 wp14"}));let b=a.some(a=>void 0!==a.parentId),c=a.some(a=>void 0!==a.durableId);if(b||c){let d=new Map(a.map(a=>[a.id,(a.id+1).toString(16).toUpperCase().padStart(8,"0")]));for(let b of a)this.root.push(new ds(b,d.get(b.id)));b&&(this.threadData=a.map(a=>({paraId:d.get(a.id),parentParaId:void 0!==a.parentId?d.get(a.parentId):void 0,done:a.resolved}))),c&&(this.commentIdsData=a.map(a=>{var b;return{paraId:d.get(a.id),durableId:null!=(b=a.durableId)?b:d.get(a.id)}}))}else for(let b of a)this.root.push(new ds(b));this.relationships=new dp}get Relationships(){return this.relationships}get ThreadData(){return this.threadData}get CommentIdsData(){return this.commentIdsData}get IsEmpty(){return this.isEmpty}prepForXml(a){let b=super.prepForXml(a);return dm(b,a),b}},du=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{"xmlns:wpc":"xmlns:wpc","xmlns:mc":"xmlns:mc","xmlns:w15":"xmlns:w15","mc:Ignorable":"mc:Ignorable"})}},dv=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{paraId:"w15:paraId",paraIdParent:"w15:paraIdParent",done:"w15:done"})}},dw=class extends I{constructor(a){super("w15:commentEx"),this.root.push(new dv({paraId:a.paraId,paraIdParent:a.parentParaId,done:void 0!==a.done?a.done?"1":"0":void 0}))}},dx=class extends I{constructor(a){for(let b of(super("w15:commentsEx"),this.root.push(new du({"xmlns:wpc":"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","mc:Ignorable":"w15"})),a))this.root.push(new dw(b))}},dy=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{paraId:"w16cid:paraId",durableId:"w16cid:durableId"})}},dz=class extends I{constructor(a){super("w16cid:commentId"),this.root.push(new dy({paraId:a.paraId,durableId:a.durableId}))}},dA=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{"xmlns:w16cid":"xmlns:w16cid","xmlns:mc":"xmlns:mc","mc:Ignorable":"mc:Ignorable"})}},dB=class extends I{constructor(a){for(let b of(super("w16cid:commentsIds"),this.root.push(new dA({"xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"w16cid"})),a))this.root.push(new dz(b))}},dC=class extends ay{constructor(){super("w:endnoteRef")}},dD=class extends ay{constructor(){super("w:tab")}},dE=class extends I{constructor(){super("w:pageBreakBefore")}},dF="auto",dG=a=>new aD({name:"w:pStyle",attributes:{val:{key:"w:val",value:a}}}),dH=class extends I{constructor(a,b){super("w:numPr"),this.root.push(new dI(b)),this.root.push(new dJ(a))}},dI=class extends I{constructor(a){if(super("w:ilvl"),a>9)throw Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new O({val:a}))}},dJ=class extends I{constructor(a){super("w:numId"),this.root.push(new O({val:"string"==typeof a?`{${a}}`:a}))}},dK=class extends I{constructor(...a){super(...a),D(this,"fileChild",Symbol())}},dL=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}},dM=class extends I{constructor(a,b,c,d){super("w:hyperlink"),D(this,"linkId",void 0),D(this,"drawingLink",void 0),this.linkId=b,this.drawingLink=c&&void 0!==d?new ct(d):void 0;let e=new dL({history:1,anchor:c||void 0,id:c&&void 0===d?void 0:`rId${this.linkId}`});this.root.push(e),a.forEach(a=>{this.root.push(a)})}createDrawingClick(a,b){return this.drawingLink?(this.drawingLink.addRelationship(a),this.drawingLink.createClick(b)):cs(this.linkId,b)}},dN=class extends dM{constructor(a){super(a.children,bK(),a.anchor)}},dO=class extends I{constructor(a){super("w:externalHyperlink"),D(this,"options",void 0),this.options=a}},dP=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{id:"w:id",name:"w:name"})}},dQ=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{id:"w:id"})}},dR=class a{constructor(a){D(this,"start",void 0),D(this,"children",void 0),D(this,"end",void 0);let b=bJ();this.start=new dS(a.id,b),this.children=a.children,this.end=new dT(b)}get writtenAs(){return[this.start,...this.children.flatMap(b=>b instanceof a?b.writtenAs:[b]),this.end]}},dS=class extends I{constructor(a,b){super("w:bookmarkStart");let c=new dP({name:a,id:b});this.root.push(c)}},dT=class extends I{constructor(a){super("w:bookmarkEnd");let b=new dQ({id:a});this.root.push(b)}},dU=class extends I{constructor(a,b={}){super("w:instrText"),this.root.push(new a4({space:a3}));let c=`PAGEREF ${a}`;b.hyperlink&&(c=`${c} \\h`),b.useRelativePosition&&(c=`${c} \\p`),this.root.push(c)}},dV=class extends bq{constructor(a,b={}){super({children:[a2(),new dU(a,b),a_(a$,void 0),a_("end",void 0)]})}},dW=a=>{let b=a.indexOf("#"),c=a.length-b-1;return b>0&&c>0&&c<=255?{target:a.slice(0,b),anchor:a.slice(b+1)}:{target:a}},dX=(a,b,c)=>void 0===c?`${a}-${b}`:`${a}-restart ${c}`,dY=({id:a,fontKey:b,subsetted:c},d)=>new aD({name:d,attributes:L({id:{key:"r:id",value:a}},b?{fontKey:{key:"w:fontKey",value:`{${b.toUpperCase()}}`}}:{}),children:[...c?[new aw("w:subsetted",c)]:[]]}),dZ=({name:a,characterSet:b,embedRegular:c,embedBold:d,embedItalic:e,embedBoldItalic:f})=>(({name:a,altName:b,panose1:c,charset:d,family:e,notTrueType:f,pitch:g,sig:h,embedRegular:i,embedBold:j,embedItalic:k,embedBoldItalic:l})=>new aD({name:"w:font",attributes:{name:{key:"w:name",value:a}},children:[...b?[aA("w:altName",b)]:[],...c?[aA("w:panose1",c)]:[],...d?[aA("w:charset",d)]:[],...e?[aA("w:family",e)]:[],...f?[new aw("w:notTrueType",f)]:[],...g?[aA("w:pitch",g)]:[],...h?[new aD({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:h.usb0},usb1:{key:"w:usb1",value:h.usb1},usb2:{key:"w:usb2",value:h.usb2},usb3:{key:"w:usb3",value:h.usb3},csb0:{key:"w:csb0",value:h.csb0},csb1:{key:"w:csb1",value:h.csb1}}})]:[],...i?[dY(i,"w:embedRegular")]:[],...j?[dY(j,"w:embedBold")]:[],...k?[dY(k,"w:embedItalic")]:[],...l?[dY(l,"w:embedBoldItalic")]:[]]}))({name:a,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:b,family:"auto",pitch:"variable",embedRegular:c,embedBold:d,embedItalic:e,embedBoldItalic:f}),d$=[{option:"data",element:"embedRegular",bold:!1,italic:!1},{option:"bold",element:"embedBold",bold:!0,italic:!1},{option:"italic",element:"embedItalic",bold:!1,italic:!0},{option:"boldItalic",element:"embedBoldItalic",bold:!0,italic:!0}],d_=class{constructor(a){D(this,"options",void 0),D(this,"fontTable",void 0),D(this,"relationships",void 0),D(this,"fontOptionsWithKey",[]),D(this,"files",[]),this.options=a;let b=a.map(a=>d$.flatMap(({option:b,element:c,bold:d,italic:e})=>{let f=a[b];return f?[{element:c,file:{name:a.name,data:f,bold:d,italic:e,fontKey:`${bM(8)}-${bM(4)}-${bM(4)}-${bM(4)}-${bM(12)}`}}]:[]}));this.files=b.flatMap(a=>a.map(({file:a})=>a)),this.fontOptionsWithKey=a.map((a,c)=>L(L({},a),{},{fontKey:b[c][0].file.fontKey})),this.fontTable=new aD({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:a.map((a,c)=>L({name:a.name,characterSet:a.characterSet},Object.fromEntries(b[c].map(({element:a,file:b})=>[a,{id:`rId${this.files.indexOf(b)+1}`,fontKey:b.fontKey}])))).map(dZ)}),this.relationships=new dp;for(let a=0;a<this.files.length;a++)this.relationships.addRelationship(a+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/font${a+1}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},d0=new WeakMap,d1=bH(),d2={left:"right",right:"left"},d3=class extends J{constructor(a,{implicitListParagraphStyle:b=!0,inListOrder:c=!0}={}){var d,e,f;if(super("w:pPr",null==a?void 0:a.includeIfEmpty),D(this,"numbering",void 0),D(this,"numberProperties",void 0),!a)return this;if(a.heading&&this.push(dG(a.heading)),b&&(a.bullet&&this.push(dG("ListParagraph")),!a.numbering||a.numbering.custom||a.style||a.heading||this.push(dG("ListParagraph"))),a.style&&this.push(dG(a.style)),void 0!==a.keepNext&&this.push(new aw("w:keepNext",a.keepNext)),void 0!==a.keepLines&&this.push(new aw("w:keepLines",a.keepLines)),a.pageBreakBefore&&this.push(new dE),a.frame&&this.push(new aD({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:(d=a.frame).anchorLock},dropCap:{key:"w:dropCap",value:d.dropCap},width:{key:"w:w",value:d.width},height:{key:"w:h",value:d.height},x:{key:"w:x",value:d.position?d.position.x:void 0},y:{key:"w:y",value:d.position?d.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:d.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:d.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:null==(e=d.space)?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:null==(f=d.space)?void 0:f.vertical},rule:{key:"w:hRule",value:d.rule},alignmentX:{key:"w:xAlign",value:d.alignment?d.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:d.alignment?d.alignment.y:void 0},lines:{key:"w:lines",value:d.lines},wrap:{key:"w:wrap",value:d.wrap}}})),void 0!==a.widowControl&&this.push(new aw("w:widowControl",a.widowControl)),a.bullet&&this.push(new dH(1,a.bullet.level)),a.numbering){let{reference:b,instance:d,level:e,restart:f}=a.numbering,g="string"==typeof b?b:b.reference,h=new dH(dX(g,null!=d?d:0),e);this.numbering={reference:g,level:e,instance:d,restartedListId:f&&c&&void 0===d?d1():void 0,definition:"string"==typeof b?void 0:b},this.numberProperties=h,this.push(h)}else!1===a.numbering&&this.push(new dH(0,0));a.border&&this.push(new aW(a.border)),a.thematicBreak&&this.push(new aX),a.shading&&this.push(a9(a.shading)),a.wordWrap&&this.push(new aD({name:"w:wordWrap",attributes:{val:{key:"w:val",value:0}}})),a.overflowPunctuation&&this.push(new aw("w:overflowPunct",a.overflowPunctuation));let g=[...void 0!==a.rightTabStop?[{type:"right",position:a.rightTabStop}]:[],...a.tabStops?a.tabStops:[],...void 0!==a.leftTabStop?[{type:"left",position:a.leftTabStop}]:[]];g.length>0&&this.push(new aD({name:"w:tabs",children:g.map(a=>(({type:a,position:b,leader:c})=>new aD({name:"w:tab",attributes:{val:{key:"w:val",value:a},pos:{key:"w:pos",value:at(b)},leader:{key:"w:leader",value:c}}}))(a))})),void 0!==a.bidirectional&&this.push(new aw("w:bidi",a.bidirectional)),a.spacing&&this.push((({after:a,before:b,line:c,lineRule:d,beforeAutoSpacing:e,afterAutoSpacing:f})=>new aD({name:"w:spacing",attributes:{after:{key:"w:after",value:a},before:{key:"w:before",value:b},line:{key:"w:line",value:c},lineRule:{key:"w:lineRule",value:d},beforeAutoSpacing:{key:"w:beforeAutospacing",value:e},afterAutoSpacing:{key:"w:afterAutospacing",value:f}}}))(a.spacing)),a.indent&&this.push((({start:a,end:b,left:c,right:d,hanging:e,firstLine:f,firstLineChars:g})=>new aD({name:"w:ind",attributes:{start:{key:"w:start",value:void 0===a?void 0:at(a)},end:{key:"w:end",value:void 0===b?void 0:at(b)},left:{key:"w:left",value:void 0===c?void 0:at(c)},right:{key:"w:right",value:void 0===d?void 0:at(d)},hanging:{key:"w:hanging",value:void 0===e?void 0:au(e)},firstLine:{key:"w:firstLine",value:void 0===f?void 0:au(f)},firstLineChars:{key:"w:firstLineChars",value:void 0===g?void 0:al(g)}}}))(a.indent)),void 0!==a.contextualSpacing&&this.push(new aw("w:contextualSpacing",a.contextualSpacing)),a.alignment&&this.push(aF(a.bidirectional&&d2[a.alignment]||a.alignment)),void 0!==a.outlineLevel&&this.push(new aD({name:"w:outlineLvl",attributes:{val:{key:"w:val",value:a.outlineLevel}}})),void 0!==a.suppressLineNumbers&&this.push(new aw("w:suppressLineNumbers",a.suppressLineNumbers)),void 0!==a.autoSpaceEastAsianText&&this.push(new aw("w:autoSpaceDN",a.autoSpaceEastAsianText)),a.run&&this.push(new bm(a.run)),a.revision&&this.push(new d4(a.revision))}push(a){this.root.push(a)}addSectionProperties(a){let b=this.root.findIndex(a=>a instanceof d4);-1===b?this.root.push(a):this.root.splice(b,0,a)}removeSectionProperties(a){let b=this.root.indexOf(a);-1!==b&&this.root.splice(b,1)}prepForXml(a){var b,c,d,e;if(this.numbering){let{reference:b,level:e,instance:f=0,definition:g}=this.numbering,h=void 0===this.numbering.instance?null!=(c=this.numbering.restartedListId)?c:null==(d=d0.get(a))?void 0:d.get(b):void 0;a.viewWrapper instanceof d_||a.file.Numbering.createConcreteNumberingInstance(b,f,g,h);let i=new dH(dX(b,f,h),e);this.root.splice(this.root.indexOf(this.numberProperties),1,i),this.numberProperties=i}let f=super.prepForXml(a);return(null==(b=this.numbering)?void 0:b.restartedListId)!==void 0&&d0.set(a,new Map([...null!=(e=d0.get(a))?e:[],[this.numbering.reference,this.numbering.restartedListId]])),f}},d4=class extends I{constructor(a){super("w:pPrChange"),this.root.push(new bb({id:a.id,author:a.author,date:a.date})),this.root.push(new d3(L(L({},a),{},{includeIfEmpty:!0}),{inListOrder:!1}))}},d5=class extends dK{constructor(a){if(super("w:p"),D(this,"properties",void 0),D(this,"alignment",void 0),"string"==typeof a)return this.alignment={},this.properties=new d3({}),this.root.push(this.properties),this.root.push(new br(a)),this;if(this.alignment={alignment:a.alignment,bidirectional:a.bidirectional},this.properties=new d3(a),this.root.push(this.properties),a.text&&this.root.push(new br(a.text)),a.children)for(let b of a.children){if(b instanceof dR){this.root.push(...b.writtenAs);continue}this.root.push(b)}}prepForXml(a){for(let b of this.root)if("w:externalHyperlink"===G(b)){let c=this.root.indexOf(b),{options:d}=b,{target:e,anchor:f}=dW(d.link),g=new dM(d.children,bK(),f,d.link);a.viewWrapper.Relationships.addRelationship(g.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e,cr),this.root[c]=g}return super.prepForXml(a)}addSectionProperties(a){this.properties.addSectionProperties(a)}removeSectionProperties(a){this.properties.removeSectionProperties(a)}get Alignment(){return this.alignment}addRunToFront(a){return this.root.splice(1,0,a),this}};L(L({},{TOP:"top",CENTER:"center",BOTTOM:"bottom"}),{},{BOTH:"both"});var d6=a=>new aD({name:"w:vAlign",attributes:{verticalAlign:{key:"w:val",value:a}}}),d7="default",d8=(a,b)=>new aD({name:a,attributes:{type:{key:"w:type",value:b.type||d7},id:{key:"r:id",value:`rId${b.id}`}}}),d9=({name:a,position:b,numberFormat:c,start:d,restart:e})=>new aD({name:a,children:[...void 0===b?[]:[new aD({name:"w:pos",attributes:{val:{key:"w:val",value:b}}})],...c?[new aD({name:"w:numFmt",attributes:{val:{key:"w:val",value:c.type},format:{key:"w:format",value:c.format}}})]:[],...void 0===d?[]:[new aD({name:"w:numStart",attributes:{val:{key:"w:val",value:al(d)}}})],...void 0===e?[]:[new aD({name:"w:numRestart",attributes:{val:{key:"w:val",value:e}}})]]}),ea=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},eb=class extends J{constructor(a){if(super("w:pgBorders"),!a)return this;a.pageBorders?this.root.push(new ea({display:a.pageBorders.display,offsetFrom:a.pageBorders.offsetFrom,zOrder:a.pageBorders.zOrder})):this.root.push(new ea({})),a.pageBorderTop&&this.root.push(aU("w:top",a.pageBorderTop)),a.pageBorderLeft&&this.root.push(aU("w:left",a.pageBorderLeft)),a.pageBorderBottom&&this.root.push(aU("w:bottom",a.pageBorderBottom)),a.pageBorderRight&&this.root.push(aU("w:right",a.pageBorderRight))}},ec="landscape",ed=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{val:"w:val"})}},ee=class extends I{constructor(a){super("w:textDirection"),this.root.push(new ed({val:a}))}},ef=class a extends I{constructor({page:{size:{width:b=11906,height:c=16838,orientation:d="portrait",code:e}={},margin:{top:f=1440,right:g=1440,bottom:h=1440,left:i=1440,header:j=708,footer:k=708,gutter:l=0}={},pageNumbers:m={},borders:n,textDirection:o}={},grid:{linePitch:p=360,charSpace:q,type:r}={},headerWrapperGroup:s={},footerWrapperGroup:t={},lineNumbers:u,titlePage:v,verticalAlign:w,column:x,type:y,footnoteProperties:z,endnoteProperties:A,revision:B}={}){super("w:sectPr"),D(this,"availableTextWidth",void 0),this.availableTextWidth=a.calculateAvailableTextWidth({pageWidth:d===ec?c:b,left:i,right:g,gutter:l,column:x}),this.addHeaderFooterGroup("w:headerReference",s),this.addHeaderFooterGroup("w:footerReference",t),z&&this.root.push(d9(L({name:"w:footnotePr"},z))),A&&this.root.push(d9(L({name:"w:endnotePr"},A))),y&&this.root.push(new aD({name:"w:type",attributes:{val:{key:"w:val",value:y}}})),this.root.push((({width:a,height:b,orientation:c,code:d})=>{let e=au(a),f=au(b);return new aD({name:"w:pgSz",attributes:{width:{key:"w:w",value:c===ec?f:e},height:{key:"w:h",value:c===ec?e:f},orientation:{key:"w:orient",value:c},code:{key:"w:code",value:d}}})})({width:b,height:c,orientation:d,code:e})),this.root.push(new aD({name:"w:pgMar",attributes:{top:{key:"w:top",value:at(f)},right:{key:"w:right",value:au(g)},bottom:{key:"w:bottom",value:at(h)},left:{key:"w:left",value:au(i)},header:{key:"w:header",value:au(j)},footer:{key:"w:footer",value:au(k)},gutter:{key:"w:gutter",value:au(l)}}})),n&&this.root.push(new eb(n)),u&&this.root.push((({countBy:a,start:b,restart:c,distance:d})=>new aD({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:void 0===a?void 0:al(a)},start:{key:"w:start",value:void 0===b?void 0:al(b)},restart:{key:"w:restart",value:c},distance:{key:"w:distance",value:void 0===d?void 0:au(d)}}}))(u)),this.root.push((({start:a,formatType:b,separator:c,chapterHeadingLevel:d})=>new aD({name:"w:pgNumType",attributes:{start:{key:"w:start",value:void 0===a?void 0:al(a)},formatType:{key:"w:fmt",value:b},separator:{key:"w:chapSep",value:"endash"===c?"enDash":c},chapterHeadingLevel:{key:"w:chapStyle",value:void 0===d?void 0:al(d)}}}))(m)),x&&this.root.push((({space:a,count:b,separate:c,equalWidth:d,children:e})=>new aD({name:"w:cols",attributes:{space:{key:"w:space",value:void 0===a?void 0:au(a)},count:{key:"w:num",value:void 0===b?void 0:al(b)},separate:{key:"w:sep",value:c},equalWidth:{key:"w:equalWidth",value:d}},children:!d&&e?e:void 0}))(x)),w&&this.root.push(d6(w)),void 0!==v&&this.root.push(new aw("w:titlePg",v)),o&&this.root.push(new ee(o)),this.root.push((({type:a,linePitch:b,charSpace:c})=>new aD({name:"w:docGrid",attributes:{type:{key:"w:type",value:a},linePitch:{key:"w:linePitch",value:al(b)},charSpace:{key:"w:charSpace",value:c?al(c):void 0}}}))({linePitch:p,charSpace:q,type:r})),B&&this.root.push(new eg(B))}get AvailableTextWidth(){return this.availableTextWidth}static calculateAvailableTextWidth({pageWidth:a,left:b,right:c,gutter:d,column:e}){var f,g;let h=aq(a)-aq(b)-aq(c)-aq(d),i=null!=(f=null==e?void 0:e.count)?f:1;return i<=1?h:(h-aq(null!=(g=null==e?void 0:e.space)?g:720)*(i-1))/i}addHeaderFooterGroup(a,b){b.default&&this.root.push(d8(a,{type:d7,id:b.default.View.ReferenceId})),b.first&&this.root.push(d8(a,{type:"first",id:b.first.View.ReferenceId})),b.even&&this.root.push(d8(a,{type:"even",id:b.even.View.ReferenceId}))}},eg=class extends I{constructor(a){super("w:sectPrChange"),this.root.push(new bb({id:a.id,author:a.author,date:a.date})),this.root.push(new ef(a))}},eh=class extends I{constructor({pageNumbers:a}={}){super("w:body"),D(this,"sections",[]),D(this,"sectionParagraphs",new Map),D(this,"headingBookmarkIds",new c$),D(this,"pageNumbers",void 0),this.pageNumbers=a}getSectionPropertiesFor(a){let b=a?Math.max(this.root.indexOf(a),0):0;for(let a=b;a<this.root.length;a++){let b=this.root[a];if(b instanceof ef)return b;let c=this.sectionParagraphs.get(b);if(c)return c}return this.sections[this.sections.length-1]}addSection(a){let b=this.sections.pop(),c=this.lastParagraphOfSection();if(b&&c)this.sectionParagraphs.set(c,b);else{let a=this.createSectionParagraph();this.root.push(a),b&&this.sectionParagraphs.set(a,b)}this.sections.push(new ef(a))}prepForXml(a){var b,c;let d;for(let[a,b]of(1===this.sections.length&&(this.root.splice(0,1),this.root.push(this.sections.pop())),this.sectionParagraphs))a.addSectionProperties(b);try{d=super.prepForXml(a)}finally{for(let[a,b]of this.sectionParagraphs)a.removeSectionProperties(b)}let e=null==(b=this.pageNumbers)?void 0:b.listNumbers;if(((a,b,c,d)=>{var e;let f,g,h=c5(c0(a)),i=h.flatMap(a=>{let b=cZ.get(a);return b?[[a,b]]:[]});if(0===i.length)return;let j=c8(b),k=i.some(([,{properties:a}])=>!!a.entriesFromBookmark),l=(e=h.filter(a=>"w:p"===c_(a)),g=k?(f=new Map,e.map(a=>{let b=c7(a),c=new Set([...f.values(),...b.flatMap(a=>a.start?[a.name]:[])]);for(let a of b)a.start?f.set(a.id,a.name):f.delete(a.id);return c})):[],e.map((a,b)=>{var c;let d,e,f=c1(a,"w:pPr");return{element:a,styleId:c2(c1(f,"w:pStyle"),"w:val"),outlineLevel:c3(c1(f,"w:outlineLvl"),"w:val"),text:(d=[],e=a=>{let b=c_(a);if(void 0!==b&&c6.has(b))return c0(a).map(e).join("");if("w:fldChar"===b){let b=c2(a,"w:fldCharType");return"begin"===b?d.push(!1):"separate"===b?d[d.length-1]=!0:d.pop(),""}return d.every(Boolean)?(a=>{switch(c_(a)){case"w:t":return c0(a).filter(a=>"string"==typeof a).join("");case"w:tab":return" ";case"w:br":return[void 0,"textWrapping"].includes(c2(a,"w:type"))?"\n":"";case"w:cr":return"\n";case"w:noBreakHyphen":return"-";default:return""}})(a):""},c0(a).map(e).join("")),bookmarks:null!=(c=g[b])?c:new Set}})).map(a=>({paragraph:a,levels:i.map(([,{properties:b}])=>((a,b,c)=>{var d;let{entriesFromBookmark:e,headingStyleRange:f,stylesWithLevels:g=[],useAppliedParagraphOutlineLevel:h}=a;if(""===b.text.trim()||e&&!b.bookmarks.has(e))return;let i=[b.styleId,void 0===b.styleId||null==(d=c.get(b.styleId))?void 0:d.name].filter(a=>void 0!==a).map(a=>a.toLowerCase()),j=g.find(a=>i.includes(a.styleName.toLowerCase()));if(j)return j.level;let k=!!f||g.length>0||!!h||!!a.tcFieldIdentifier||!!a.tcFieldLevelRange||!!a.captionLabel||!!a.captionLabelIncludingNumbers,l=f?c9(f):k?void 0:[1,9],m=db(b.styleId,c);if(l&&void 0!==m&&da(m,l))return m;let n=h?dd(b,c):void 0;return void 0!==n&&da(n+1,null!=l?l:[1,9])?n+1:void 0})(b,a,j))})).filter(({levels:a})=>a.some(a=>void 0!==a)).map((a,b)=>L(L({},a),{},{id:c.get(b)}));for(let{paragraph:a,id:c}of l)de(a.element,`_Toc${c}`,c,b);let m=l.length>0?null==d?void 0:d(a):void 0;i.forEach(([a,c],d)=>{let e=l.flatMap(({paragraph:a,levels:b,id:c})=>{let e=b[d],f=null==m?void 0:m.get(`_Toc${c}`);return void 0===e?[]:[L({title:a.text,level:e,bookmark:`_Toc${c}`},f?{listNumber:f}:{})]});0!==e.length&&(a["w:sdt"]=c0(a).map(a=>"w:sdtContent"===c_(a)?(({properties:a,beginDirty:b,textWidth:c},d,e,f)=>{var g;let h=a.pageNumbersEntryLevelsRange?null!=(g=c9(a.pageNumbersEntryLevelsRange))?g:[1,9]:void 0,i=new cY;return d.forEach((d,f)=>{var g,j,k,l;let m,n,o,p,q=void 0===h||!da(d.level,h),r=[...d.listNumber?(({text:a,separator:b})=>"tab"===b?[new br(a),new br({children:[new dD]})]:[new br(`${a} `)])(d.listNumber):[],...(j=d.title,m=a.preserveTabInEntries?j:j.replace(/\t/g," "),(a.preserveNewLineInEntries?m.split("\n"):[m.replace(/\n/g," ")]).map((a,b)=>new br({break:b>0?1:void 0,children:a.split(" ").flatMap((a,b)=>[...b>0?[new dD]:[],...""===a?[]:[a]])}))),...q?[new br({children:[a.entryAndPageNumberSeparator||new dD]}),new dV(d.bookmark,{hyperlink:a.hyperlink})]:[]],s=(k=d.level,o=null!=(n=null==(l=[...e].find(([,a])=>{var b;return(null==(b=a.name)?void 0:b.toLowerCase())===`toc ${k}`}))?void 0:l[0])?n:`TOC${k}`,void 0!==n||e.has(o)||1===k?{id:o}:{id:o,indent:(k-1)*220});i.addChildElement(new d5({style:s.id,indent:void 0===s.indent?void 0:{left:s.indent},tabStops:[...(null==(g=d.listNumber)?void 0:g.separator)==="tab"?[{type:"left",position:(p=240*(d.level-1)+d.listNumber.width+240)<=1920?240*Math.ceil(p/240):Math.round(p)}]:[],{type:"right",position:c,leader:"dot"}],children:[...0===f?[new bq({children:[void 0===b?a2():a_(aZ,b,void 0),new cX(a),a_(a$,void 0)]})]:[],...a.hyperlink?[new dN({anchor:d.bookmark,children:r})]:r]}))}),i.addChildElement(new d5({children:[new bq({children:[a_("end",void 0)]})]})),i.prepForXml(f)})(c,e,j,b):a))})})(d,a,this.headingBookmarkIds,e&&(b=>e(b,a))),this.pageNumbers){let b,e;((a,b)=>{var c;let d,e,f,g,h,i,j,k,{startParagraph:l,numberOf:m}=(f=(e=c8(c=b),a=>{let b=c1(a,"w:pPr"),c=c2(c1(b,"w:pStyle"),"w:val"),d=db(c,e),f=dd({styleId:c,outlineLevel:c3(c1(b,"w:outlineLvl"),"w:val")},e),g=void 0===f||f>=9?void 0:f+1;return void 0!==d&&(void 0===g||g===d)?d:void 0===g?void 0:"unclear"}),g=new Map,h=new Map,i=[],j=-1,k=-1,{startParagraph:a=>{k++;let b=f(a);"unclear"===b?j=k:void 0!==b&&(i[b]=k)},numberOf:(a,b)=>{var e,f,l,m;let n,o,p,{identifier:q,sequence:r}=dg(a);if(void 0===q||"fallback"===b)return;null!=d||(d=(a=>{var b;let c=null==(b=a.file)?void 0:b.Comments;if(!c)return new Set;let d={View:c,Relationships:c.Relationships};return new Set(dh(c.prepForXml(L(L({},a),{},{viewWrapper:d,stack:[]}))))})(c));let s=q.toLowerCase();if((null==r?void 0:r.step.type)==="bookmark"&&"counted"===b&&!d.has(s))return;let t=g.has(s)?g.get(s):0,u=d.has(s)||"deleted"===b||null==r?void 0:r.step,v=(null==u?void 0:u.type)==="reset"?u.to:(null==u?void 0:u.type)==="repeat"?t:(null==u?void 0:u.type)==="heading"?(l=u.level,n=Math.max(-1,...i.slice(1,l+1).filter(a=>void 0!==a)),p=(o=(null!=(m=h.get(s))?m:[]).filter(a=>a.paragraph>=n)).every(({step:a})=>(null==a?void 0:a.type)==="next"||(null==a?void 0:a.type)==="heading"&&a.level===l),j>n||!p?void 0:o.length+1):(null==u?void 0:u.type)==="next"&&void 0!==t?t+1:void 0;return g.set(s,v),h.set(s,[...null!=(e=h.get(s))?e:[],L({paragraph:k},void 0===v?{}:{step:u})]),void 0===v||void 0===r?void 0:r.hidden?"":null==(f=cM(r.format))?void 0:f(v)}});((a,b,{beforeParagraph:c,resultOf:d})=>cT(a,[b],[],{resultOf:(a,{within:b})=>d(a,b),beforeParagraph:c,afterParagraph:()=>void 0}))(dk,a,{beforeParagraph:a=>l(a),resultOf:(a,b)=>void 0!==dg(a)?m(a,b):void 0})})(d,a),c=d,b=(0,this.pageNumbers)(c,a),e=cV(dk,c,b,{blank:!1}),a.file&&dl.set(a.file,{estimate:b,partPageCounts:e})}return d}push(a){let b=a instanceof d5?this.sectionParagraphs.get(a):void 0;if(b){let c=this.createSectionParagraph();this.root.splice(this.root.indexOf(a)+1,0,c),this.sectionParagraphs.delete(a),this.sectionParagraphs.set(c,b)}this.root.push(a)}lastParagraphOfSection(){let a=this.root[this.root.length-1];return a instanceof d5&&a!==this.root[0]&&!this.sectionParagraphs.has(a)&&this.root.indexOf(a)===this.root.length-1?a:void 0}createSectionParagraph(){return new d5({})}},ei={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"},ej=(a,{type:b=ei.AUTO,size:c})=>{let d=c;return b===ei.PERCENTAGE&&"number"==typeof c&&(d=Math.round(50*c)),new aD({name:a,attributes:{type:{key:"w:type",value:b},size:{key:"w:w",value:av(d)}}})},ek=a=>new aD({name:"w:gridCol",attributes:void 0!==a?{width:{key:"w:w",value:au(a)}}:void 0}),el=class extends I{constructor(a,b){for(let b of(super("w:tblGrid"),a))this.root.push(ek(b));b&&this.root.push(new en(b))}},em=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{id:"w:id"})}},en=class extends I{constructor(a){super("w:tblGridChange"),this.root.push(new em({id:a.id})),this.root.push(new el(a.columnWidths))}},eo=class extends I{constructor(a){super("w:ins"),this.root.push(new bb({id:a.id,author:a.author,date:a.date}))}},ep=class extends I{constructor(a){super("w:del"),this.root.push(new bb({id:a.id,author:a.author,date:a.date}))}},eq=class extends I{constructor(a){super("w:cellIns"),this.root.push(new bb({id:a.id,author:a.author,date:a.date}))}},er=class extends I{constructor(a){super("w:cellDel"),this.root.push(new bb({id:a.id,author:a.author,date:a.date}))}},es=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date",verticalMerge:"w:vMerge",verticalMergeOriginal:"w:vMergeOrig"})}},et=class extends I{constructor(a){super("w:cellMerge"),this.root.push(new es(a))}},eu=({marginUnitType:a=ei.DXA,top:b,left:c,bottom:d,right:e})=>[{name:"w:top",size:b},{name:"w:left",size:c},{name:"w:bottom",size:d},{name:"w:right",size:e}].filter(a=>void 0!==a.size).map(({name:b,size:c})=>ej(b,{type:a,size:c})),ev=class extends J{constructor(a){super("w:tcBorders"),a.top&&this.root.push(aU("w:top",a.top)),a.start&&this.root.push(aU("w:start",a.start)),a.left&&this.root.push(aU("w:left",a.left)),a.bottom&&this.root.push(aU("w:bottom",a.bottom)),a.end&&this.root.push(aU("w:end",a.end)),a.right&&this.root.push(aU("w:right",a.right))}},ew=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{val:"w:val"})}},ex=class extends I{constructor(a){super("w:gridSpan"),this.root.push(new ew({val:al(a)}))}},ey=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{val:"w:val"})}},ez=class extends I{constructor(a){super("w:vMerge"),this.root.push(new ey({val:a}))}},eA=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{val:"w:val"})}},eB=class extends I{constructor(a){super("w:textDirection"),this.root.push(new eA({val:a}))}},eC=class extends J{constructor(a){if(super("w:tcPr",a.includeIfEmpty),D(this,"hasWidth",void 0),D(this,"hasColumnWidth",!1),this.hasWidth=void 0!==a.width,a.width&&this.root.push(ej("w:tcW",a.width)),a.columnSpan&&this.root.push(new ex(a.columnSpan)),a.verticalMerge?this.root.push(new ez(a.verticalMerge)):a.rowSpan&&a.rowSpan>1&&this.root.push(new ez("restart")),a.borders&&this.root.push(new ev(a.borders)),a.shading&&this.root.push(a9(a.shading)),a.margins){let b=(a=>{let b=eu(a);if(0!==b.length)return new aD({name:"w:tcMar",children:b})})(a.margins);b&&this.root.push(b)}a.textDirection&&this.root.push(new eB(a.textDirection)),a.verticalAlign&&this.root.push(d6(a.verticalAlign)),a.insertion&&this.root.push(new eq(a.insertion)),a.deletion&&this.root.push(new er(a.deletion)),a.cellMerge&&this.root.push(new et(a.cellMerge)),a.revision&&this.root.push(new eD(a.revision))}setColumnWidth(a){this.hasWidth||(this.root.splice(0,+!!this.hasColumnWidth,ej("w:tcW",{size:a,type:ei.DXA})),this.hasColumnWidth=!0)}},eD=class extends I{constructor(a){super("w:tcPrChange"),this.root.push(new bb({id:a.id,author:a.author,date:a.date})),this.root.push(new eC(L(L({},a),{},{includeIfEmpty:!0})))}},eE=(a,b)=>b?new aw(a):new az(a,"off"),eF={style:"none",size:0,color:"auto"},eG={style:aV,size:4,color:"auto"},eH=class extends J{constructor(a,{fillMissingSides:b=!0}={}){for(let[c,d]of(super("w:tblBorders"),[["w:top",a.top],["w:left",a.left],["w:bottom",a.bottom],["w:right",a.right],["w:insideH",a.insideHorizontal],["w:insideV",a.insideVertical]])){let a=null!=d?d:b?eG:void 0;a&&this.root.push(aU(c,a))}}};D(eH,"NONE",{top:eF,bottom:eF,left:eF,right:eF,insideHorizontal:eF,insideVertical:eF});var eI={DXA:"dxa"},eJ=({type:a=eI.DXA,value:b})=>new aD({name:"w:tblCellSpacing",attributes:{type:{key:"w:type",value:a},value:{key:"w:w",value:av(b)}}}),eK=class extends J{constructor(a){var b;if(super("w:tblPr",a.includeIfEmpty),a.style&&this.root.push(new az("w:tblStyle",a.style)),a.float&&this.root.push((({horizontalAnchor:a,verticalAnchor:b,absoluteHorizontalPosition:c,relativeHorizontalPosition:d,absoluteVerticalPosition:e,relativeVerticalPosition:f,bottomFromText:g,topFromText:h,leftFromText:i,rightFromText:j})=>new aD({name:"w:tblpPr",attributes:{leftFromText:{key:"w:leftFromText",value:void 0===i?void 0:au(i)},rightFromText:{key:"w:rightFromText",value:void 0===j?void 0:au(j)},topFromText:{key:"w:topFromText",value:void 0===h?void 0:au(h)},bottomFromText:{key:"w:bottomFromText",value:void 0===g?void 0:au(g)},absoluteHorizontalPosition:{key:"w:tblpX",value:void 0===c?void 0:at(c)},absoluteVerticalPosition:{key:"w:tblpY",value:void 0===e?void 0:at(e)},horizontalAnchor:{key:"w:horzAnchor",value:a},relativeHorizontalPosition:{key:"w:tblpXSpec",value:d},relativeVerticalPosition:{key:"w:tblpYSpec",value:f},verticalAnchor:{key:"w:vertAnchor",value:b}}}))(a.float)),(null==(b=a.float)?void 0:b.overlap)&&this.root.push(new aD({name:"w:tblOverlap",attributes:{val:{key:"w:val",value:a.float.overlap}}})),void 0!==a.visuallyRightToLeft&&this.root.push(eE("w:bidiVisual",a.visuallyRightToLeft)),a.width&&this.root.push(ej("w:tblW",a.width)),a.alignment&&this.root.push(aF(a.alignment)),a.cellSpacing&&this.root.push(eJ(a.cellSpacing)),a.indent&&this.root.push(ej("w:tblInd",a.indent)),a.borders&&this.root.push(new eH(a.borders,{fillMissingSides:!a.style})),a.shading&&this.root.push(a9(a.shading)),a.layout&&this.root.push(new aD({name:"w:tblLayout",attributes:{type:{key:"w:type",value:a.layout}}})),a.cellMargin){let b=(a=>{let b=eu(a);if(0!==b.length)return new aD({name:"w:tblCellMar",children:b})})(a.cellMargin);b&&this.root.push(b)}a.tableLook&&this.root.push((({firstRow:a,lastRow:b,firstColumn:c,lastColumn:d,noHBand:e,noVBand:f})=>new aD({name:"w:tblLook",attributes:{firstRow:{key:"w:firstRow",value:a},lastRow:{key:"w:lastRow",value:b},firstColumn:{key:"w:firstColumn",value:c},lastColumn:{key:"w:lastColumn",value:d},noHBand:{key:"w:noHBand",value:e},noVBand:{key:"w:noVBand",value:f}}}))(a.tableLook)),a.revision&&this.root.push(new eL(a.revision))}},eL=class extends I{constructor(a){super("w:tblPrChange"),this.root.push(new bb({id:a.id,author:a.author,date:a.date})),this.root.push(new eK(L(L({},a),{},{includeIfEmpty:!0})))}},eM=class extends J{constructor(a){let b,c;super("w:trPr",a.includeIfEmpty),void 0!==a.cantSplit&&this.root.push(eE("w:cantSplit",a.cantSplit)),void 0!==a.tableHeader&&this.root.push(eE("w:tblHeader",a.tableHeader)),a.height&&this.root.push((b=a.height.value,c=a.height.rule,new aD({name:"w:trHeight",attributes:{value:{key:"w:val",value:au(b)},rule:{key:"w:hRule",value:c}}}))),a.cellSpacing&&this.root.push(eJ(a.cellSpacing)),a.insertion&&this.root.push(new eo(a.insertion)),a.deletion&&this.root.push(new ep(a.deletion)),a.revision&&this.root.push(new eN(a.revision))}},eN=class extends I{constructor(a){super("w:trPrChange"),this.root.push(new bb({id:a.id,author:a.author,date:a.date})),this.root.push(new eM(L(L({},a),{},{includeIfEmpty:!0})))}},eO=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},eP=class extends I{constructor(){super("Properties"),this.root.push(new eO({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},eQ=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{xmlns:"xmlns"})}},eR=(a,b)=>new aD({name:"Default",attributes:{contentType:{key:"ContentType",value:a},extension:{key:"Extension",value:b}}}),eS=(a,b)=>new aD({name:"Override",attributes:{contentType:{key:"ContentType",value:a},partName:{key:"PartName",value:b}}}),eT=class extends I{constructor({macros:a=!1}={}){super("Types"),this.root.push(new eQ({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(eR("image/png","png")),this.root.push(eR("image/jpeg","jpeg")),this.root.push(eR("image/jpeg","jpg")),this.root.push(eR("image/bmp","bmp")),this.root.push(eR("image/gif","gif")),this.root.push(eR("image/svg+xml","svg")),this.root.push(eR("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(eR("application/xml","xml")),this.root.push(eR("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(eS(a?"application/vnd.ms-word.document.macroEnabled.main+xml":"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(eS("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml","/word/endnotes.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml")),this.root.push(eS("application/vnd.openxmlformats-officedocument.theme+xml","/word/theme/theme1.xml")),a&&this.root.push(eS("application/vnd.ms-office.vbaProject","/word/vbaProject.bin"))}addComments(){this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml"))}addCommentsExtended(){this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml","/word/commentsExtended.xml"))}addCommentsIds(){this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsIds+xml","/word/commentsIds.xml"))}addFooter(a){this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${a}.xml`))}addOverride(a,b){this.root.push(eS(a,b))}addHeader(a){this.root.push(eS("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${a}.xml`))}},eU={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},eV=class extends M{constructor(a,b){super(L({Ignorable:b},Object.fromEntries(a.map(a=>[a,eU[a]])))),D(this,"xmlKeys",L({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(eU).map(a=>[a,`xmlns:${a}`]))))}},eW=class extends I{constructor(a){super("cp:coreProperties"),this.root.push(new eV(["cp","dc","dcterms","dcmitype","xsi"])),a.title&&this.root.push(new aC("dc:title",a.title)),a.subject&&this.root.push(new aC("dc:subject",a.subject)),a.creator&&this.root.push(new aC("dc:creator",a.creator)),a.keywords&&this.root.push(new aC("cp:keywords",a.keywords)),a.description&&this.root.push(new aC("dc:description",a.description)),a.lastModifiedBy&&this.root.push(new aC("cp:lastModifiedBy",a.lastModifiedBy)),a.revision&&this.root.push(new aC("cp:revision",String(a.revision))),this.root.push(new eY("dcterms:created")),this.root.push(new eY("dcterms:modified"))}},eX=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{type:"xsi:type"})}},eY=class extends I{constructor(a){super(a),this.root.push(new eX({type:"dcterms:W3CDTF"})),this.root.push((new Date).toISOString())}},eZ=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},e$=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{formatId:"fmtid",pid:"pid",name:"name"})}},e_=class extends I{constructor(a,b){super("property"),this.root.push(new e$({formatId:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:a.toString(),name:b.name})),this.root.push(new e0(b.value))}},e0=class extends I{constructor(a){super("vt:lpwstr"),this.root.push(a)}},e1=class extends I{constructor(a){for(let b of(super("Properties"),D(this,"nextId",void 0),D(this,"properties",[]),this.root.push(new eZ({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2,a))this.addCustomProperty(b)}prepForXml(a){return this.root.splice(1,this.root.length-1,...this.properties),super.prepForXml(a)}addCustomProperty(a){this.properties.push(new e_(this.nextId++,a))}},e2={new:"wne:eventDocNew",open:"wne:eventDocOpen",close:"wne:eventDocClose",sync:"wne:eventDocSync",xmlAfterInsert:"wne:eventDocXmlAfterInsert",xmlBeforeDelete:"wne:eventDocXmlBeforeDelete",contentControlAfterAdd:"wne:eventDocContentControlAfterInsert",contentControlBeforeDelete:"wne:eventDocContentControlBeforeDelete",contentControlOnExit:"wne:eventDocContentControlOnExit",contentControlOnEnter:"wne:eventDocContentControlOnEnter",contentControlBeforeStoreUpdate:"wne:eventDocStoreUpdate",contentControlBeforeContentUpdate:"wne:eventDocContentControlContentUpdate",buildingBlockInsert:"wne:eventDocBuildingBlockAfterInsert"},e3=class extends I{constructor({color:a,themeColor:b,themeShade:c,themeTint:d}){if(super("w:background"),"object"==typeof a&&(void 0!==b||void 0!==c||void 0!==d))throw Error("Invalid background. Expected a theme color in color, or themeColor, themeShade and themeTint, not both");this.root.push(new aQ([{keys:aT,color:a},{key:"w:themeColor",value:b},{key:"w:themeShade",value:void 0===c?void 0:an(c,1)},{key:"w:themeTint",value:void 0===d?void 0:an(d,1)}]))}},e4=class extends I{constructor(a){super("w:document"),D(this,"body",void 0),this.root.push(new eV(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new eh({pageNumbers:a.pageNumbers}),a.background&&this.root.push(new e3(a.background)),this.root.push(this.body)}add(a){return this.body.push(a),this}get Body(){return this.body}},e5=class{constructor(a){D(this,"document",void 0),D(this,"relationships",void 0),this.document=new e4(a),this.relationships=new dp}get View(){return this.document}get Relationships(){return this.relationships}},e6=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},e7=class extends I{constructor(a,b){super("w:p"),D(this,"paragraph",void 0),D(this,"mark",void 0),this.paragraph=a,this.mark=b}prepForXml(a){let b=this.paragraph.prepForXml(a)["w:p"],c=Array.isArray(b)?b:[],d=+(c.length>0&&"w:pPr"in c[0]);return{"w:p":[...c.slice(0,d),this.mark.prepForXml(a),...c.slice(d)]}}},e8=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{type:"w:type",id:"w:id"})}},e9=class extends bq{constructor(){super({style:"EndnoteReference"}),this.root.push(new dC)}},fa=class extends I{constructor(a){for(let[b,c]of(super("w:endnote"),this.root.push(new e8({type:a.type,id:a.id})),a.children.entries()))this.root.push(0===b?new e7(c,new e9):c)}},fb=class extends I{constructor(){super("w:continuationSeparator")}},fc=class extends bq{constructor(){super({}),this.root.push(new fb)}},fd=class extends I{constructor(){super("w:separator")}},fe=class extends bq{constructor(){super({}),this.root.push(new fd)}},ff=class extends I{constructor(){super("w:endnotes"),D(this,"ownNotes",new Map),D(this,"highestId",0),this.root.push(new e6({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));let a=new fa({id:-1,type:"separator",children:[new d5({spacing:{after:0,line:240,lineRule:dF},children:[new fe]})]});this.root.push(a);let b=new fa({id:0,type:"continuationSeparator",children:[new d5({spacing:{after:0,line:240,lineRule:dF},children:[new fc]})]});this.root.push(b)}createEndnote(a,b){let c=new fa({id:a,children:b});this.root.push(c),Number.isFinite(a)&&(this.highestId=Math.max(this.highestId,Math.floor(a)))}idOf(a,b,c){if(c.viewWrapper!==c.file.Document)return;let d=this.ownNotes.get(a);if(void 0!==d)return d;let e=this.highestId+1;return this.createEndnote(e,b.children),this.ownNotes.set(a,e),e}prepForXml(a){let b=super.prepForXml(a);return dm(b,a),b}},fg=class{constructor(){D(this,"endnotes",void 0),D(this,"relationships",void 0),this.endnotes=new ff,this.relationships=new dp}get View(){return this.endnotes}get Relationships(){return this.relationships}},fh=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}},fi=class extends ak{constructor(a,b){super("w:ftr",b),D(this,"refId",void 0),this.refId=a,b||this.root.push(new fh({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(a){this.root.push(a)}prepForXml(a){let b=super.prepForXml(a);return dm(b,a,this.refId),b}},fj=class{constructor(a,b,c){D(this,"media",void 0),D(this,"footer",void 0),D(this,"relationships",void 0),this.media=a,this.footer=new fi(b,c),this.relationships=new dp}add(a){this.footer.add(a)}addChildElement(a){this.footer.addChildElement(a)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},fk=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{type:"w:type",id:"w:id"})}},fl=class extends I{constructor(){super("w:footnoteRef")}},fm=class extends bq{constructor(){super({style:"FootnoteReference"}),this.root.push(new fl)}},fn=class extends I{constructor(a){for(let[b,c]of(super("w:footnote"),this.root.push(new fk({type:a.type,id:a.id})),a.children.entries()))this.root.push(0===b?new e7(c,new fm):c)}},fo=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},fp=class extends I{constructor(){super("w:footnotes"),D(this,"ownNotes",new Map),D(this,"highestId",0),this.root.push(new fo({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));let a=new fn({id:-1,type:"separator",children:[new d5({spacing:{after:0,line:240,lineRule:dF},children:[new fe]})]});this.root.push(a);let b=new fn({id:0,type:"continuationSeparator",children:[new d5({spacing:{after:0,line:240,lineRule:dF},children:[new fc]})]});this.root.push(b)}createFootNote(a,b){let c=new fn({id:a,children:b});this.root.push(c),Number.isFinite(a)&&(this.highestId=Math.max(this.highestId,Math.floor(a)))}idOf(a,b,c){if(c.viewWrapper!==c.file.Document)return;let d=this.ownNotes.get(a);if(void 0!==d)return d;let e=this.highestId+1;return this.createFootNote(e,b.children),this.ownNotes.set(a,e),e}prepForXml(a){let b=super.prepForXml(a);return dm(b,a),b}},fq=class{constructor(){D(this,"footnotess",void 0),D(this,"relationships",void 0),this.footnotess=new fp,this.relationships=new dp}get View(){return this.footnotess}get Relationships(){return this.relationships}},fr=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}},fs=class extends ak{constructor(a,b){super("w:hdr",b),D(this,"refId",void 0),this.refId=a,b||this.root.push(new fr({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(a){this.root.push(a)}prepForXml(a){let b=super.prepForXml(a);return dm(b,a,this.refId),b}},ft=class{constructor(a,b,c){D(this,"media",void 0),D(this,"header",void 0),D(this,"relationships",void 0),this.media=a,this.header=new fs(b,c),this.relationships=new dp}add(a){return this.header.add(a),this}addChildElement(a){this.header.addChildElement(a)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},fu=class{constructor(){D(this,"map",void 0),this.map=new Map}addImage(a,b){this.map.set(a,b)}get Array(){return Array.from(this.map.values())}},fv="bullet",fw=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w:tentative"})}},fx=class extends I{constructor(a){super("w:numFmt"),this.root.push(new O({val:a}))}},fy=class extends I{constructor(a){super("w:lvlText"),this.root.push(new O({val:a}))}},fz=class extends I{constructor(a){super("w:lvlJc"),this.root.push(new O({val:(a=>{switch(a){case aE.CENTER:return"center";case aE.END:case aE.RIGHT:return"right";default:return"left"}})(a)}))}},fA=class extends I{constructor(a){super("w:suff"),this.root.push(new O({val:a}))}},fB=class extends I{constructor(){super("w:isLgl")}},fC=class extends I{constructor({level:a,format:b,text:c,alignment:d=aE.START,start:e=1,style:f,suffix:g,isLegalNumberingStyle:h}){if(super("w:lvl"),D(this,"paragraphProperties",void 0),D(this,"runProperties",void 0),this.root.push(new aB("w:start",al(e))),b&&this.root.push(new fx(b)),(null==f?void 0:f.style)&&this.root.push(dG(f.style)),h&&this.root.push(new fB),g&&this.root.push(new fA(g)),c&&this.root.push(new fy(c)),this.root.push(new fz(d)),this.paragraphProperties=new d3(f&&f.paragraph,{implicitListParagraphStyle:!1,inListOrder:!1}),this.runProperties=new bl((null==f?void 0:f.run)&&L(L({},f.run),{},{highlight:void 0,math:void 0,revision:void 0})),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),a>9)throw Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new fw({ilvl:al(a),tentative:1}))}},fD=class extends fC{},fE=class extends I{constructor(a){super("w:multiLevelType"),this.root.push(new O({val:a}))}},fF=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},fG=class extends I{constructor(a,b){for(let c of(super("w:abstractNum"),D(this,"id",void 0),this.root.push(new fF({abstractNumId:al(a),restartNumberingAfterBreak:0})),this.root.push(new fE("hybridMultilevel")),this.id=a,b))this.root.push(new fD(c))}},fH=class extends I{constructor(a){super("w:abstractNumId"),this.root.push(new O({val:a}))}},fI=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{numId:"w:numId"})}},fJ=class extends I{constructor(a){if(super("w:num"),D(this,"numId",void 0),D(this,"reference",void 0),D(this,"instance",void 0),D(this,"restartedListId",void 0),this.numId=a.numId,this.reference=a.reference,this.instance=a.instance,this.restartedListId=a.restartedListId,this.root.push(new fI({numId:al(a.numId)})),this.root.push(new fH(al(a.abstractNumId))),a.overrideLevels&&a.overrideLevels.length)for(let b of a.overrideLevels)this.root.push(new fL(b.num,b.start))}},fK=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{ilvl:"w:ilvl"})}},fL=class extends I{constructor(a,b){super("w:lvlOverride"),this.root.push(new fK({ilvl:a})),void 0!==b&&this.root.push(new fN(b))}},fM=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{val:"w:val"})}},fN=class extends I{constructor(a){super("w:startOverride"),this.root.push(new fM({val:a}))}},fO=class extends I{constructor(a){super("w:numbering"),D(this,"abstractNumberingMap",new Map),D(this,"concreteNumberingMap",new Map),D(this,"referenceConfigMap",new Map),D(this,"abstractNumUniqueNumericId",bH()),D(this,"concreteNumUniqueNumericId",bH(1)),this.root.push(new eV(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));let b=new fG(this.abstractNumUniqueNumericId(),[{level:0,format:fv,text:"●",alignment:aE.LEFT,style:{paragraph:{indent:{left:bG(.5),hanging:bG(.25)}}}},{level:1,format:fv,text:"○",alignment:aE.LEFT,style:{paragraph:{indent:{left:bG(1),hanging:bG(.25)}}}},{level:2,format:fv,text:"■",alignment:aE.LEFT,style:{paragraph:{indent:{left:2160,hanging:bG(.25)}}}},{level:3,format:fv,text:"●",alignment:aE.LEFT,style:{paragraph:{indent:{left:2880,hanging:bG(.25)}}}},{level:4,format:fv,text:"○",alignment:aE.LEFT,style:{paragraph:{indent:{left:3600,hanging:bG(.25)}}}},{level:5,format:fv,text:"■",alignment:aE.LEFT,style:{paragraph:{indent:{left:4320,hanging:bG(.25)}}}},{level:6,format:fv,text:"●",alignment:aE.LEFT,style:{paragraph:{indent:{left:5040,hanging:bG(.25)}}}},{level:7,format:fv,text:"●",alignment:aE.LEFT,style:{paragraph:{indent:{left:5760,hanging:bG(.25)}}}},{level:8,format:fv,text:"●",alignment:aE.LEFT,style:{paragraph:{indent:{left:6480,hanging:bG(.25)}}}}]);for(let c of(this.concreteNumberingMap.set("default-bullet-numbering",new fJ({numId:1,abstractNumId:b.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",b),a.config))this.abstractNumberingMap.set(c.reference,new fG(this.abstractNumUniqueNumericId(),c.levels)),this.referenceConfigMap.set(c.reference,c.levels)}prepForXml(a){return this.root.splice(1,this.root.length-1,...this.abstractNumberingMap.values(),...this.concreteNumberingMap.values()),super.prepForXml(a)}createConcreteNumberingInstance(a,b,c,d){var e;c&&!this.abstractNumberingMap.has(c.reference)&&(this.abstractNumberingMap.set(c.reference,new fG(this.abstractNumUniqueNumericId(),c.levels)),this.referenceConfigMap.set(c.reference,c.levels));let f=this.abstractNumberingMap.get(a);if(!f)return;let g=dX(a,b,d);if(this.concreteNumberingMap.has(g))return;let h=null!=(e=this.referenceConfigMap.get(a))?e:[{level:0}],i={numId:this.concreteNumUniqueNumericId(),abstractNumId:f.id,reference:a,instance:b,restartedListId:d,overrideLevels:h.map(({level:a,start:b=1})=>({num:a,start:al(b)}))};this.concreteNumberingMap.set(g,new fJ(i))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},fP=class{constructor(a,b=new Set){D(this,"contentTypes",void 0),D(this,"existingPaths",void 0),D(this,"paths",new Map),D(this,"folders",new WeakMap),this.contentTypes=a,this.existingPaths=b}add(a){let b=this.paths.get(a);if(void 0!==b)return b;let{folder:c,name:d,extension:e,contentType:f}=a.options,g=new Set([...this.existingPaths,...this.paths.values()]),h=1;for(;g.has(`${c}/${d}${h}.${e}`);)h++;let i=`${c}/${d}${h}.${e}`;return this.paths.set(a,i),this.contentTypes.addOverride(f,`/word/${i}`),i}get Array(){return[...this.paths].map(([a,b])=>({part:a,path:b}))}createRelationships(a){let b=new dp;return this.folders.set(b,a.slice(0,a.indexOf("/"))),b}getTarget(a,b){let c=this.folders.get(a);return void 0===c?b:b.startsWith(`${c}/`)?b.slice(c.length+1):`../${b}`}},fQ=class extends I{constructor(a){super("w:compat"),a.useSingleBorderforContiguousCells&&this.root.push(new aw("w:useSingleBorderforContiguousCells",a.useSingleBorderforContiguousCells)),a.wordPerfectJustification&&this.root.push(new aw("w:wpJustification",a.wordPerfectJustification)),a.noTabStopForHangingIndent&&this.root.push(new aw("w:noTabHangInd",a.noTabStopForHangingIndent)),a.noLeading&&this.root.push(new aw("w:noLeading",a.noLeading)),a.spaceForUnderline&&this.root.push(new aw("w:spaceForUL",a.spaceForUnderline)),a.noColumnBalance&&this.root.push(new aw("w:noColumnBalance",a.noColumnBalance)),a.balanceSingleByteDoubleByteWidth&&this.root.push(new aw("w:balanceSingleByteDoubleByteWidth",a.balanceSingleByteDoubleByteWidth)),a.noExtraLineSpacing&&this.root.push(new aw("w:noExtraLineSpacing",a.noExtraLineSpacing)),a.doNotLeaveBackslashAlone&&this.root.push(new aw("w:doNotLeaveBackslashAlone",a.doNotLeaveBackslashAlone)),a.underlineTrailingSpaces&&this.root.push(new aw("w:ulTrailSpace",a.underlineTrailingSpaces)),a.doNotExpandShiftReturn&&this.root.push(new aw("w:doNotExpandShiftReturn",a.doNotExpandShiftReturn)),a.spacingInWholePoints&&this.root.push(new aw("w:spacingInWholePoints",a.spacingInWholePoints)),a.lineWrapLikeWord6&&this.root.push(new aw("w:lineWrapLikeWord6",a.lineWrapLikeWord6)),a.printBodyTextBeforeHeader&&this.root.push(new aw("w:printBodyTextBeforeHeader",a.printBodyTextBeforeHeader)),a.printColorsBlack&&this.root.push(new aw("w:printColBlack",a.printColorsBlack)),a.spaceWidth&&this.root.push(new aw("w:wpSpaceWidth",a.spaceWidth)),a.showBreaksInFrames&&this.root.push(new aw("w:showBreaksInFrames",a.showBreaksInFrames)),a.subFontBySize&&this.root.push(new aw("w:subFontBySize",a.subFontBySize)),a.suppressBottomSpacing&&this.root.push(new aw("w:suppressBottomSpacing",a.suppressBottomSpacing)),a.suppressTopSpacing&&this.root.push(new aw("w:suppressTopSpacing",a.suppressTopSpacing)),a.suppressSpacingAtTopOfPage&&this.root.push(new aw("w:suppressSpacingAtTopOfPage",a.suppressSpacingAtTopOfPage)),a.suppressTopSpacingWP&&this.root.push(new aw("w:suppressTopSpacingWP",a.suppressTopSpacingWP)),a.suppressSpBfAfterPgBrk&&this.root.push(new aw("w:suppressSpBfAfterPgBrk",a.suppressSpBfAfterPgBrk)),a.swapBordersFacingPages&&this.root.push(new aw("w:swapBordersFacingPages",a.swapBordersFacingPages)),a.convertMailMergeEsc&&this.root.push(new aw("w:convMailMergeEsc",a.convertMailMergeEsc)),a.truncateFontHeightsLikeWP6&&this.root.push(new aw("w:truncateFontHeightsLikeWP6",a.truncateFontHeightsLikeWP6)),a.macWordSmallCaps&&this.root.push(new aw("w:mwSmallCaps",a.macWordSmallCaps)),a.usePrinterMetrics&&this.root.push(new aw("w:usePrinterMetrics",a.usePrinterMetrics)),a.doNotSuppressParagraphBorders&&this.root.push(new aw("w:doNotSuppressParagraphBorders",a.doNotSuppressParagraphBorders)),a.wrapTrailSpaces&&this.root.push(new aw("w:wrapTrailSpaces",a.wrapTrailSpaces)),a.footnoteLayoutLikeWW8&&this.root.push(new aw("w:footnoteLayoutLikeWW8",a.footnoteLayoutLikeWW8)),a.shapeLayoutLikeWW8&&this.root.push(new aw("w:shapeLayoutLikeWW8",a.shapeLayoutLikeWW8)),a.alignTablesRowByRow&&this.root.push(new aw("w:alignTablesRowByRow",a.alignTablesRowByRow)),a.forgetLastTabAlignment&&this.root.push(new aw("w:forgetLastTabAlignment",a.forgetLastTabAlignment)),a.adjustLineHeightInTable&&this.root.push(new aw("w:adjustLineHeightInTable",a.adjustLineHeightInTable)),a.autoSpaceLikeWord95&&this.root.push(new aw("w:autoSpaceLikeWord95",a.autoSpaceLikeWord95)),a.noSpaceRaiseLower&&this.root.push(new aw("w:noSpaceRaiseLower",a.noSpaceRaiseLower)),a.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new aw("w:doNotUseHTMLParagraphAutoSpacing",a.doNotUseHTMLParagraphAutoSpacing)),a.layoutRawTableWidth&&this.root.push(new aw("w:layoutRawTableWidth",a.layoutRawTableWidth)),a.layoutTableRowsApart&&this.root.push(new aw("w:layoutTableRowsApart",a.layoutTableRowsApart)),a.useWord97LineBreakRules&&this.root.push(new aw("w:useWord97LineBreakRules",a.useWord97LineBreakRules)),a.doNotBreakWrappedTables&&this.root.push(new aw("w:doNotBreakWrappedTables",a.doNotBreakWrappedTables)),a.doNotSnapToGridInCell&&this.root.push(new aw("w:doNotSnapToGridInCell",a.doNotSnapToGridInCell)),a.selectFieldWithFirstOrLastCharacter&&this.root.push(new aw("w:selectFldWithFirstOrLastChar",a.selectFieldWithFirstOrLastCharacter)),a.applyBreakingRules&&this.root.push(new aw("w:applyBreakingRules",a.applyBreakingRules)),a.doNotWrapTextWithPunctuation&&this.root.push(new aw("w:doNotWrapTextWithPunct",a.doNotWrapTextWithPunctuation)),a.doNotUseEastAsianBreakRules&&this.root.push(new aw("w:doNotUseEastAsianBreakRules",a.doNotUseEastAsianBreakRules)),a.useWord2002TableStyleRules&&this.root.push(new aw("w:useWord2002TableStyleRules",a.useWord2002TableStyleRules)),a.growAutofit&&this.root.push(new aw("w:growAutofit",a.growAutofit)),a.useFELayout&&this.root.push(new aw("w:useFELayout",a.useFELayout)),a.useNormalStyleForList&&this.root.push(new aw("w:useNormalStyleForList",a.useNormalStyleForList)),a.doNotUseIndentAsNumberingTabStop&&this.root.push(new aw("w:doNotUseIndentAsNumberingTabStop",a.doNotUseIndentAsNumberingTabStop)),a.useAlternateEastAsianLineBreakRules&&this.root.push(new aw("w:useAltKinsokuLineBreakRules",a.useAlternateEastAsianLineBreakRules)),a.allowSpaceOfSameStyleInTable&&this.root.push(new aw("w:allowSpaceOfSameStyleInTable",a.allowSpaceOfSameStyleInTable)),a.doNotSuppressIndentation&&this.root.push(new aw("w:doNotSuppressIndentation",a.doNotSuppressIndentation)),a.doNotAutofitConstrainedTables&&this.root.push(new aw("w:doNotAutofitConstrainedTables",a.doNotAutofitConstrainedTables)),a.autofitToFirstFixedWidthCell&&this.root.push(new aw("w:autofitToFirstFixedWidthCell",a.autofitToFirstFixedWidthCell)),a.underlineTabInNumberingList&&this.root.push(new aw("w:underlineTabInNumList",a.underlineTabInNumberingList)),a.displayHangulFixedWidth&&this.root.push(new aw("w:displayHangulFixedWidth",a.displayHangulFixedWidth)),a.splitPgBreakAndParaMark&&this.root.push(new aw("w:splitPgBreakAndParaMark",a.splitPgBreakAndParaMark)),a.doNotVerticallyAlignCellWithSp&&this.root.push(new aw("w:doNotVertAlignCellWithSp",a.doNotVerticallyAlignCellWithSp)),a.doNotBreakConstrainedForcedTable&&this.root.push(new aw("w:doNotBreakConstrainedForcedTable",a.doNotBreakConstrainedForcedTable)),a.ignoreVerticalAlignmentInTextboxes&&this.root.push(new aw("w:doNotVertAlignInTxbx",a.ignoreVerticalAlignmentInTextboxes)),a.useAnsiKerningPairs&&this.root.push(new aw("w:useAnsiKerningPairs",a.useAnsiKerningPairs)),a.cachedColumnBalance&&this.root.push(new aw("w:cachedColBalance",a.cachedColumnBalance)),a.version&&this.root.push(new aD({name:"w:compatSetting",attributes:{version:{key:"w:val",value:a.version},name:{key:"w:name",value:"compatibilityMode"},uri:{key:"w:uri",value:"http://schemas.microsoft.com/office/word"}}}))}},fR=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},fS=class extends I{constructor(a){var b,c,d,e,f,g,h,i;super("w:settings"),this.root.push(new fR({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new aw("w:displayBackgroundShape",!0)),void 0!==a.embedFonts&&this.root.push(new aw("w:embedTrueTypeFonts",a.embedFonts)),void 0!==a.trackRevisions&&this.root.push(new aw("w:trackRevisions",a.trackRevisions)),void 0!==a.defaultTabStop&&this.root.push(new aB("w:defaultTabStop",a.defaultTabStop)),(null==(b=a.hyphenation)?void 0:b.autoHyphenation)!==void 0&&this.root.push(new aw("w:autoHyphenation",a.hyphenation.autoHyphenation)),(null==(c=a.hyphenation)?void 0:c.consecutiveHyphenLimit)!==void 0&&this.root.push(new aB("w:consecutiveHyphenLimit",a.hyphenation.consecutiveHyphenLimit)),(null==(d=a.hyphenation)?void 0:d.hyphenationZone)!==void 0&&this.root.push(new aB("w:hyphenationZone",a.hyphenation.hyphenationZone)),(null==(e=a.hyphenation)?void 0:e.doNotHyphenateCaps)!==void 0&&this.root.push(new aw("w:doNotHyphenateCaps",a.hyphenation.doNotHyphenateCaps)),void 0!==a.evenAndOddHeaders&&this.root.push(new aw("w:evenAndOddHeaders",a.evenAndOddHeaders)),void 0!==a.updateFields&&this.root.push(new aw("w:updateFields",a.updateFields)),this.root.push(new fQ(L(L({},null!=(f=a.compatibility)?f:{}),{},{version:null!=(g=null!=(h=null==(i=a.compatibility)?void 0:i.version)?h:a.compatibilityModeVersion)?g:15})))}},fT=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{val:"w:val"})}},fU=class extends I{constructor(a){super("w:name"),this.root.push(new fT({val:a}))}},fV=class extends I{constructor(a){super("w:uiPriority"),this.root.push(new fT({val:al(a)}))}},fW=class extends M{constructor(...a){super(...a),D(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},fX=class extends I{constructor(a,b){super("w:style"),this.root.push(new fW(a)),b.name&&this.root.push(new fU(b.name)),b.basedOn&&b.basedOn!==a.styleId&&this.root.push(new az("w:basedOn",b.basedOn)),b.next&&this.root.push(new az("w:next",b.next)),b.link&&this.root.push(new az("w:link",b.link)),void 0!==b.uiPriority&&this.root.push(new fV(b.uiPriority)),void 0!==b.semiHidden&&this.root.push(new aw("w:semiHidden",b.semiHidden)),void 0!==b.unhideWhenUsed&&this.root.push(new aw("w:unhideWhenUsed",b.unhideWhenUsed)),void 0!==b.quickFormat&&this.root.push(new aw("w:qFormat",b.quickFormat))}},fY=class extends fX{constructor(a){super({type:"paragraph",styleId:a.id},a),D(this,"paragraphProperties",void 0),D(this,"runProperties",void 0),this.paragraphProperties=new d3(a.paragraph,{implicitListParagraphStyle:!1,inListOrder:!1}),this.runProperties=new bl(a.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},fZ=class extends fX{constructor(a){super({type:"character",styleId:a.id},L({uiPriority:99,unhideWhenUsed:!0},a)),D(this,"runProperties",void 0),this.runProperties=new bl(a.run),this.root.push(this.runProperties)}},f$=class extends fY{constructor(a){super(L({basedOn:"Normal",next:"Normal",quickFormat:!0},a))}},f_=class extends f${constructor(a){super(L({id:"Title",name:"Title"},a))}},f0=class extends f${constructor(a){super(L({id:"Heading1",name:"Heading 1"},a))}},f1=class extends f${constructor(a){super(L({id:"Heading2",name:"Heading 2"},a))}},f2=class extends f${constructor(a){super(L({id:"Heading3",name:"Heading 3"},a))}},f3=class extends f${constructor(a){super(L({id:"Heading4",name:"Heading 4"},a))}},f4=class extends f${constructor(a){super(L({id:"Heading5",name:"Heading 5"},a))}},f5=class extends f${constructor(a){super(L({id:"Heading6",name:"Heading 6"},a))}},f6=class extends f${constructor(a){super(L({id:"Strong",name:"Strong"},a))}},f7=class extends fY{constructor(a){super(L({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},a))}},f8=class extends fY{constructor(a){super(L({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:dF}},run:{size:20}},a))}},f9=class extends fZ{constructor(a){super(L({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},a))}},ga=class extends fZ{constructor(a){super(L({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},a))}},gb=class extends fY{constructor(a){super(L({id:"EndnoteText",name:"endnote text",link:"EndnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:dF}},run:{size:20}},a))}},gc=class extends fZ{constructor(a){super(L({id:"EndnoteReference",name:"endnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},a))}},gd=class extends fZ{constructor(a){super(L({id:"EndnoteTextChar",name:"Endnote Text Char",basedOn:"DefaultParagraphFont",link:"EndnoteText",semiHidden:!0,run:{size:20}},a))}},ge=class extends fZ{constructor(a){super(L({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:bk.SINGLE}}},a))}},gf=class extends fX{constructor(){super({type:"table",styleId:"TableNormal",default:!0},{name:"Normal Table",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0}),this.root.push(new eK({indent:{size:0,type:ei.DXA},cellMargin:{top:0,left:108,bottom:0,right:108}}))}},gg=a=>"object"==typeof a?Object.keys(a)[0]:void 0,gh=a=>{var b;return null==(b=[a["w:style"]].flat().find(a=>a._attr))?void 0:b._attr},gi=a=>{var b;return null==(b=gh(a))?void 0:b["w:styleId"]},gj=class extends I{constructor(a){if(super("w:styles"),a.initialStyles&&this.root.push(a.initialStyles),a.importedStyles)for(let b of a.importedStyles)this.root.push(b);if(a.paragraphStyles)for(let b of a.paragraphStyles)this.root.push(new fY(b));if(a.characterStyles)for(let b of a.characterStyles)this.root.push(new fZ(b))}prepForXml(a){let b=super.prepForXml(a),c=b["w:styles"];if(!Array.isArray(c))return b;let d=a=>c.filter(b=>gg(b)===a),e=c.map(a=>"w:style"===gg(a)?gi(a):void 0),f=c.filter((a,b)=>!["_attr","w:docDefaults","w:latentStyles"].includes(gg(a))&&(void 0===e[b]||e.lastIndexOf(e[b])===b)),g=f.some(a=>{var b;let c;return"w:style"===gg(a)&&(null!=(b=null==(c=gh(a))?void 0:c["w:type"])?b:"paragraph")==="paragraph"&&(null==c?void 0:c["w:default"])!==void 0&&!["0","false","off"].includes(String(c["w:default"]))})?f:f.map(a=>{var b,c;return"w:style"===gg(a)&&"Normal"===gi(a)&&(null!=(b=null==(c=gh(a))?void 0:c["w:type"])?b:"paragraph")==="paragraph"?{"w:style":[a["w:style"]].flat().map(a=>a._attr?{_attr:L(L({},a._attr),{},{"w:default":"1"})}:a)}:a});return{"w:styles":[...d("_attr"),...d("w:docDefaults").slice(-1),...d("w:latentStyles").slice(-1),...g]}}},gk=class extends I{constructor(a){super("w:pPrDefault"),this.root.push(new d3(a,{implicitListParagraphStyle:!1,inListOrder:!1}))}},gl=class extends I{constructor(a){super("w:rPrDefault"),this.root.push(new bl(a))}},gm=class extends I{constructor(a){super("w:docDefaults"),D(this,"runPropertiesDefaults",void 0),D(this,"paragraphPropertiesDefaults",void 0),this.runPropertiesDefaults=new gl(a.run),this.paragraphPropertiesDefaults=new gk(a.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},gn=class{newInstance(a){let b;for(let c of X(a).elements||[])"w:styles"===c.name&&(b=c);if(void 0===b)throw Error("can not find styles element");let c=b.elements||[];return{initialStyles:new aj(b.attributes),importedStyles:c.map(a=>ag(a))}}},go=(a={})=>{var b;return{normal:new fY({id:"Normal",name:"Normal",quickFormat:!0}),normalTable:new gf,document:new gm(null!=(b=a.document)?b:{}),title:new f_(L({run:{size:56}},a.title)),heading1:new f0(L({run:{color:"2E74B5",size:32}},a.heading1)),heading2:new f1(L({run:{color:"2E74B5",size:26}},a.heading2)),heading3:new f2(L({run:{color:"1F4D78",size:24}},a.heading3)),heading4:new f3(L({run:{color:"2E74B5",italics:!0}},a.heading4)),heading5:new f4(L({run:{color:"2E74B5"}},a.heading5)),heading6:new f5(L({run:{color:"1F4D78"}},a.heading6)),strong:new f6(L({run:{bold:!0}},a.strong)),listParagraph:new f7(a.listParagraph||{}),hyperlink:new ge(a.hyperlink||{}),footnoteReference:new f9(a.footnoteReference||{}),footnoteText:new f8(a.footnoteText||{}),footnoteTextChar:new ga(a.footnoteTextChar||{}),endnoteReference:new gc(a.endnoteReference||{}),endnoteText:new gb(a.endnoteText||{}),endnoteTextChar:new gd(a.endnoteTextChar||{})}},gp=class{newInstance(a={}){return{initialStyles:new eV(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:Object.values(go(a))}}},gq={headings:{latin:"Calibri Light",panose:"020F0302020204030204"},body:{latin:"Calibri",panose:"020F0502020204030204"}},gr=[["Jpan","游ゴシック Light","游明朝"],["Hang","맑은 고딕"],["Hans","等线 Light","等线"],["Hant","新細明體"],["Arab","Times New Roman","Arial"],["Hebr","Times New Roman","Arial"],["Thai","Angsana New","Cordia New"],["Ethi","Nyala"],["Beng","Vrinda"],["Gujr","Shruti"],["Khmr","MoolBoran","DaunPenh"],["Knda","Tunga"],["Guru","Raavi"],["Cans","Euphemia"],["Cher","Plantagenet Cherokee"],["Yiii","Microsoft Yi Baiti"],["Tibt","Microsoft Himalaya"],["Thaa","MV Boli"],["Deva","Mangal"],["Telu","Gautami"],["Taml","Latha"],["Syrc","Estrangelo Edessa"],["Orya","Kalinga"],["Mlym","Kartika"],["Laoo","DokChampa"],["Sinh","Iskoola Pota"],["Mong","Mongolian Baiti"],["Viet","Times New Roman","Arial"],["Uigh","Microsoft Uighur"],["Geor","Sylfaen"],["Armn","Arial"],["Bugi","Leelawadee UI"],["Bopo","Microsoft JhengHei"],["Java","Javanese Text"],["Lisu","Segoe UI"],["Mymr","Myanmar Text"],["Nkoo","Ebrima"],["Olck","Nirmala UI"],["Osma","Ebrima"],["Phag","Phagspa"],["Syrn","Estrangelo Edessa"],["Syrj","Estrangelo Edessa"],["Syre","Estrangelo Edessa"],["Sora","Nirmala UI"],["Tale","Microsoft Tai Le"],["Talu","Microsoft New Tai Lue"],["Tfng","Ebrima"]],gs=(a,b,c)=>new aD({name:a,attributes:{typeface:{key:"typeface",value:b},panose:{key:"panose",value:c}}}),gt=(a,b)=>{let c,d,e=b[a],{eastAsia:f="",complexScript:g=""}="object"==typeof e?e:{},h=null!=(d="string"==typeof(c=b[a])?c:null==c?void 0:c.latin)?d:gq[a].latin,i=gq[a];return new aD({name:"headings"===a?"a:majorFont":"a:minorFont",children:[gs("a:latin",h,h===i.latin?i.panose:void 0),gs("a:ea",f),gs("a:cs",g),...gr.map(([b,c,d=c])=>new aD({name:"a:font",attributes:{script:{key:"script",value:b},typeface:{key:"typeface",value:"headings"===a?c:d}}}))]})},gu=(a=[])=>new aD({name:"a:schemeClr",attributes:{value:{key:"val",value:"phClr"}},children:a.map(([a,b])=>new aD({name:`a:${a}`,attributes:{value:{key:"val",value:b}}}))}),gv=a=>new aD({name:"a:solidFill",children:[gu(a)]}),gw=a=>new aD({name:"a:gradFill",attributes:{rotateWithShape:{key:"rotWithShape",value:!0}},children:[new aD({name:"a:gsLst",children:a.map((a,b)=>new aD({name:"a:gs",attributes:{position:{key:"pos",value:5e4*b}},children:[gu(a)]}))}),new aD({name:"a:lin",attributes:{angle:{key:"ang",value:54e5},scaled:{key:"scaled",value:!1}}})]}),gx=a=>new aD({name:"a:ln",attributes:{width:{key:"w",value:a},cap:{key:"cap",value:"flat"},compound:{key:"cmpd",value:"sng"},alignment:{key:"algn",value:"ctr"}},children:[gv(),new aD({name:"a:prstDash",attributes:{value:{key:"val",value:"solid"}}}),new aD({name:"a:miter",attributes:{limit:{key:"lim",value:8e5}}})]}),gy=a=>new aD({name:"a:effectStyle",children:[new aD({name:"a:effectLst",children:a})]}),gz=class extends I{constructor({name:a="Office Theme",colors:b,fonts:c}={}){super("a:theme"),D(this,"colors",void 0),this.colors=aK(b),this.root.push(new N({namespace:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"},name:{key:"name",value:a}})),this.root.push(new aD({name:"a:themeElements",children:[((a,b={})=>new aD({name:"a:clrScheme",attributes:{name:{key:"name",value:a}},children:Object.keys(aG).map(a=>{var c;let d,e;return d=b[c=a],e="dark1"===c||"light1"===c?aI[c]:void 0,new aD({name:`a:${aG[c]}`,children:[new aD(void 0===d&&e?{name:"a:sysClr",attributes:{value:{key:"val",value:e.value},lastColor:{key:"lastClr",value:e.lastColor}}}:{name:"a:srgbClr",attributes:{value:{key:"val",value:aJ(c,null!=d?d:aH[c])}}})]})})}))(b?a:"Office",b),((a,b={})=>new aD({name:"a:fontScheme",attributes:{name:{key:"name",value:a}},children:[gt("headings",b),gt("body",b)]}))(c?a:"Office",c),new aD({name:"a:fmtScheme",attributes:{name:{key:"name",value:"Office"}},children:[new aD({name:"a:fillStyleLst",children:[gv(),gw([[["lumMod",11e4],["satMod",105e3],["tint",67e3]],[["lumMod",105e3],["satMod",103e3],["tint",73e3]],[["lumMod",105e3],["satMod",109e3],["tint",81e3]]]),gw([[["satMod",103e3],["lumMod",102e3],["tint",94e3]],[["satMod",11e4],["lumMod",1e5],["shade",1e5]],[["lumMod",99e3],["satMod",12e4],["shade",78e3]]])]}),new aD({name:"a:lnStyleLst",children:[gx(6350),gx(12700),gx(19050)]}),new aD({name:"a:effectStyleLst",children:[gy([]),gy([]),gy([new aD({name:"a:outerShdw",attributes:{blurRadius:{key:"blurRad",value:57150},distance:{key:"dist",value:19050},direction:{key:"dir",value:54e5},alignment:{key:"algn",value:"ctr"},rotateWithShape:{key:"rotWithShape",value:!1}},children:[new aD({name:"a:srgbClr",attributes:{value:{key:"val",value:"000000"}},children:[new aD({name:"a:alpha",attributes:{value:{key:"val",value:63e3}}})]})]})])]}),new aD({name:"a:bgFillStyleLst",children:[gv(),gv([["tint",95e3],["satMod",17e4]]),gw([[["tint",93e3],["satMod",15e4],["shade",98e3],["lumMod",102e3]],[["tint",98e3],["satMod",13e4],["shade",9e4],["lumMod",103e3]],[["shade",63e3],["satMod",12e4]]])]})]})]})),this.root.push(new aD({name:"a:objectDefaults"})),this.root.push(new aD({name:"a:extraClrSchemeLst"}))}get Colors(){return this.colors}},gA=[208,207,17,224,161,177,26,225],gB=class{constructor(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(D(this,"currentRelationshipId",1),D(this,"documentWrapper",void 0),D(this,"headers",[]),D(this,"footers",[]),D(this,"coreProperties",void 0),D(this,"numbering",void 0),D(this,"media",void 0),D(this,"fileRelationships",void 0),D(this,"footnotesWrapper",void 0),D(this,"endnotesWrapper",void 0),D(this,"settings",void 0),D(this,"contentTypes",void 0),D(this,"customProperties",void 0),D(this,"appProperties",void 0),D(this,"styles",void 0),D(this,"comments",void 0),D(this,"commentsExtended",void 0),D(this,"commentsIds",void 0),D(this,"fontWrapper",void 0),D(this,"theme",void 0),D(this,"packageParts",void 0),D(this,"macros",void 0),void 0!==a.macros){let{project:b,events:c=[]}=a.macros,d=b instanceof Uint8Array?b:new Uint8Array(b);if(!gA.every((a,b)=>d[b]===a))throw Error("macros.project isn't a VBA project. Use createMacros from docx/macros, or the word/vbaProject.bin in a .docm rather than the .docm itself");let e=new dp;c.length>0&&e.addRelationship(1,"http://schemas.microsoft.com/office/2006/relationships/wordVbaData","vbaData.xml"),this.macros={project:d,events:c.length>0?new aD({name:"wne:vbaSuppData",attributes:{namespace:{key:"xmlns:wne",value:"http://schemas.microsoft.com/office/word/2006/wordml"}},children:[new aD({name:"wne:docEvents",children:Object.entries(e2).filter(([a])=>c.includes(a)).map(([,a])=>new aD({name:a}))})]}):void 0,relationships:e}}if(this.coreProperties=new eW(L(L({},a),{},{creator:null!=(b=a.creator)?b:"Un-named",revision:null!=(c=a.revision)?c:1,lastModifiedBy:null!=(d=a.lastModifiedBy)?d:"Un-named"})),this.numbering=new fO(a.numbering?a.numbering:{config:[]}),this.comments=new dt(null!=(e=a.comments)?e:{children:[]}),this.comments.ThreadData&&(this.commentsExtended=new dx(this.comments.ThreadData)),this.comments.CommentIdsData&&(this.commentsIds=new dB(this.comments.CommentIdsData)),this.fileRelationships=new dp,this.customProperties=new e1(null!=(f=a.customProperties)?f:[]),this.appProperties=new eP,this.footnotesWrapper=new fq,this.endnotesWrapper=new fg,this.contentTypes=new eT({macros:void 0!==this.macros}),(null==(g=this.macros)?void 0:g.events)!==void 0&&this.contentTypes.addOverride("application/vnd.ms-word.vbaData+xml","/word/vbaData.xml"),this.packageParts=new fP(this.contentTypes),this.documentWrapper=new e5({background:a.background,pageNumbers:a.pageNumbers}),this.settings=new fS({compatibilityModeVersion:a.compatabilityModeVersion,compatibility:a.compatibility,evenAndOddHeaders:!!a.evenAndOddHeaderAndFooters,trackRevisions:null==(h=a.features)?void 0:h.trackRevisions,updateFields:null==(i=a.features)?void 0:i.updateFields,embedFonts:null!=(j=a.fonts)&&!!j.length||void 0,defaultTabStop:a.defaultTabStop,hyphenation:{autoHyphenation:null==(k=a.hyphenation)?void 0:k.autoHyphenation,hyphenationZone:null==(l=a.hyphenation)?void 0:l.hyphenationZone,consecutiveHyphenLimit:null==(m=a.hyphenation)?void 0:m.consecutiveHyphenLimit,doNotHyphenateCaps:null==(n=a.hyphenation)?void 0:n.doNotHyphenateCaps}}),this.media=new fu,void 0!==a.externalStyles){let b=null!=(p=null==(q=a.styles)?void 0:q.default)?p:{},c=Object.entries(go(b)),d=([a])=>void 0!==b[a],e=new gn().newInstance(a.externalStyles);this.styles=new gj(L(L({},e),{},{paragraphStyles:null==(r=a.styles)?void 0:r.paragraphStyles,characterStyles:null==(s=a.styles)?void 0:s.characterStyles,importedStyles:[...c.filter(a=>!d(a)).map(([,a])=>a),...e.importedStyles,...c.filter(d).map(([,a])=>a)]}))}else if(a.styles){let b=new gp().newInstance(a.styles.default);this.styles=new gj(L(L({},b),a.styles))}else{let a=new gp;this.styles=new gj(a.newInstance())}for(let b of(this.addDefaultRelationships(),a.sections))this.addSection(b);if(a.footnotes)for(let b in a.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(b),a.footnotes[b].children);if(a.endnotes)for(let b in a.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(b),a.endnotes[b].children);this.fontWrapper=new d_(null!=(o=a.fonts)?o:[]),this.theme=new gz(a.theme),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme","theme/theme1.xml"),void 0!==this.macros&&this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2006/relationships/vbaProject","vbaProject.bin")}addSection({headers:a={},footers:b={},children:c,properties:d}){for(let e of(this.documentWrapper.View.Body.addSection(L(L({},d),{},{headerWrapperGroup:{default:a.default?this.createHeader(a.default):void 0,first:a.first?this.createHeader(a.first):void 0,even:a.even?this.createHeader(a.even):void 0},footerWrapperGroup:{default:b.default?this.createFooter(b.default):void 0,first:b.first?this.createFooter(b.first):void 0,even:b.even?this.createFooter(b.even):void 0}})),c))this.documentWrapper.View.add(e)}createHeader(a){let b=new ft(this.media,this.currentRelationshipId++);for(let c of a.options.children)b.add(c);return this.addHeaderToDocument(b),b}createFooter(a){let b=new fj(this.media,this.currentRelationshipId++);for(let c of a.options.children)b.add(c);return this.addFooterToDocument(b),b}addHeaderToDocument(a,b=d7){this.headers.push({header:a,type:b}),this.documentWrapper.Relationships.addRelationship(a.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(a,b=d7){this.footers.push({footer:a,type:b}),this.documentWrapper.Relationships.addRelationship(a.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.addRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.addRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.addRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.addRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes","endnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.comments.IsEmpty||(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml"),this.contentTypes.addComments()),this.commentsExtended&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2011/relationships/commentsExtended","commentsExtended.xml"),this.contentTypes.addCommentsExtended()),this.commentsIds&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2016/09/relationships/commentsIds","commentsIds.xml"),this.contentTypes.addCommentsIds())}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(a=>a.header)}get Footers(){return this.footers.map(a=>a.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get CommentsExtended(){return this.commentsExtended}get CommentsIds(){return this.commentsIds}get FontTable(){return this.fontWrapper}get Theme(){return this.theme}get PackageParts(){return this.packageParts}get Macros(){return this.macros}},gC=z((a,b)=>{var c,d="object"==typeof Reflect?Reflect:null,e=d&&"function"==typeof d.apply?d.apply:function(a,b,c){return Function.prototype.apply.call(a,b,c)};c=d&&"function"==typeof d.ownKeys?d.ownKeys:Object.getOwnPropertySymbols?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:function(a){return Object.getOwnPropertyNames(a)};var f=Number.isNaN||function(a){return a!=a};function g(){g.init.call(this)}b.exports=g,b.exports.once=function(a,b){return new Promise(function(c,d){var e,f,g;function h(c){a.removeListener(b,i),d(c)}function i(){"function"==typeof a.removeListener&&a.removeListener("error",h),c([].slice.call(arguments))}q(a,b,i,{once:!0}),"error"!==b&&(e=a,f=h,g={once:!0},"function"==typeof e.on&&q(e,"error",f,g))})},g.EventEmitter=g,g.prototype._events=void 0,g.prototype._eventsCount=0,g.prototype._maxListeners=void 0;var h=10;function i(a){if("function"!=typeof a)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}function j(a){return void 0===a._maxListeners?g.defaultMaxListeners:a._maxListeners}function k(a,b,c,d){if(i(c),void 0===(f=a._events)?(f=a._events=Object.create(null),a._eventsCount=0):(void 0!==f.newListener&&(a.emit("newListener",b,c.listener?c.listener:c),f=a._events),g=f[b]),void 0===g)g=f[b]=c,++a._eventsCount;else if("function"==typeof g?g=f[b]=d?[c,g]:[g,c]:d?g.unshift(c):g.push(c),(e=j(a))>0&&g.length>e&&!g.warned){g.warned=!0;var e,f,g,h=Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(b)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=a,h.type=b,h.count=g.length,console&&console.warn&&console.warn(h)}return a}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(a,b,c){var d={fired:!1,wrapFn:void 0,target:a,type:b,listener:c},e=l.bind(d);return e.listener=c,d.wrapFn=e,e}function n(a,b,c){var d=a._events;if(void 0===d)return[];var e=d[b];return void 0===e?[]:"function"==typeof e?c?[e.listener||e]:[e]:c?function(a){for(var b=Array(a.length),c=0;c<b.length;++c)b[c]=a[c].listener||a[c];return b}(e):p(e,e.length)}function o(a){var b=this._events;if(void 0!==b){var c=b[a];if("function"==typeof c)return 1;if(void 0!==c)return c.length}return 0}function p(a,b){for(var c=Array(b),d=0;d<b;++d)c[d]=a[d];return c}function q(a,b,c,d){if("function"==typeof a.on)d.once?a.once(b,c):a.on(b,c);else if("function"==typeof a.addEventListener)a.addEventListener(b,function e(f){d.once&&a.removeEventListener(b,e),c(f)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof a)}Object.defineProperty(g,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(a){if("number"!=typeof a||a<0||f(a))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");h=a}}),g.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},g.prototype.setMaxListeners=function(a){if("number"!=typeof a||a<0||f(a))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+a+".");return this._maxListeners=a,this},g.prototype.getMaxListeners=function(){return j(this)},g.prototype.emit=function(a){for(var b=[],c=1;c<arguments.length;c++)b.push(arguments[c]);var d="error"===a,f=this._events;if(void 0!==f)d=d&&void 0===f.error;else if(!d)return!1;if(d){if(b.length>0&&(g=b[0]),g instanceof Error)throw g;var g,h=Error("Unhandled error."+(g?" ("+g.message+")":""));throw h.context=g,h}var i=f[a];if(void 0===i)return!1;if("function"==typeof i)e(i,this,b);else for(var j=i.length,k=p(i,j),c=0;c<j;++c)e(k[c],this,b);return!0},g.prototype.addListener=function(a,b){return k(this,a,b,!1)},g.prototype.on=g.prototype.addListener,g.prototype.prependListener=function(a,b){return k(this,a,b,!0)},g.prototype.once=function(a,b){return i(b),this.on(a,m(this,a,b)),this},g.prototype.prependOnceListener=function(a,b){return i(b),this.prependListener(a,m(this,a,b)),this},g.prototype.removeListener=function(a,b){var c,d,e,f,g;if(i(b),void 0===(d=this._events)||void 0===(c=d[a]))return this;if(c===b||c.listener===b)0==--this._eventsCount?this._events=Object.create(null):(delete d[a],d.removeListener&&this.emit("removeListener",a,c.listener||b));else if("function"!=typeof c){for(e=-1,f=c.length-1;f>=0;f--)if(c[f]===b||c[f].listener===b){g=c[f].listener,e=f;break}if(e<0)return this;0===e?c.shift():function(a,b){for(;b+1<a.length;b++)a[b]=a[b+1];a.pop()}(c,e),1===c.length&&(d[a]=c[0]),void 0!==d.removeListener&&this.emit("removeListener",a,g||b)}return this},g.prototype.off=g.prototype.removeListener,g.prototype.removeAllListeners=function(a){var b,c,d=this._events;if(void 0===d)return this;if(void 0===d.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==d[a]&&(0==--this._eventsCount?this._events=Object.create(null):delete d[a]),this;if(0==arguments.length){var e,f=Object.keys(d);for(c=0;c<f.length;++c)"removeListener"!==(e=f[c])&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(b=d[a]))this.removeListener(a,b);else if(void 0!==b)for(c=b.length-1;c>=0;c--)this.removeListener(a,b[c]);return this},g.prototype.listeners=function(a){return n(this,a,!0)},g.prototype.rawListeners=function(a){return n(this,a,!1)},g.listenerCount=function(a,b){return"function"==typeof a.listenerCount?a.listenerCount(b):o.call(a,b)},g.prototype.listenerCount=o,g.prototype.eventNames=function(){return this._eventsCount>0?c(this._events):[]}}),gD=y(()=>{i=globalThis||self});function gE(){throw Error("setTimeout has not been defined")}function gF(){throw Error("clearTimeout has not been defined")}function gG(a){if(l===setTimeout)return setTimeout(a,0);if((l===gE||!l)&&setTimeout)return l=setTimeout,setTimeout(a,0);try{return l(a,0)}catch(b){try{return l.call(null,a,0)}catch(b){return l.call(this,a,0)}}}function gH(){o&&p&&(o=!1,p.length?n=p.concat(n):q=-1,n.length&&gI())}function gI(){if(!o){var a=gG(gH);o=!0;for(var b=n.length;b;){for(p=n,n=[];++q<b;)p&&p[q].run();q=-1,b=n.length}p=null,o=!1,function(a){if(m===clearTimeout)return clearTimeout(a);if((m===gF||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(a);try{m(a)}catch(b){try{return m.call(null,a)}catch(b){return m.call(this,a)}}}(a)}}function gJ(a,b){this.fun=a,this.array=b}function gK(){}var gL=y(()=>{var a;k=(j={exports:{}}).exports={};try{l="function"==typeof setTimeout?setTimeout:gE}catch(a){l=gE}try{m="function"==typeof clearTimeout?clearTimeout:gF}catch(a){m=gF}n=[],o=!1,q=-1,k.nextTick=function(a){var b=Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];n.push(new gJ(a,b)),1!==n.length||o||gG(gI)},gJ.prototype.run=function(){this.fun.apply(null,this.array)},k.title="browser",k.browser=!0,k.env={},k.argv=[],k.version="",k.versions={},k.on=gK,k.addListener=gK,k.once=gK,k.off=gK,k.removeListener=gK,k.removeAllListeners=gK,k.emit=gK,k.prependListener=gK,k.prependOnceListener=gK,k.listeners=function(a){return[]},k.binding=function(a){throw Error("process.binding is not supported")},k.cwd=function(){return"/"},k.chdir=function(a){throw Error("process.chdir is not supported")},k.umask=function(){return 0},r=(a=j.exports)&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}),gM=z((a,b)=>{b.exports=gC().EventEmitter}),gN=z(a=>{a.byteLength=function(a){var b=h(a),c=b[0],d=b[1];return(c+d)*3/4-d},a.toByteArray=function(a){for(var b,e=h(a),f=e[0],g=e[1],i=new d((f+g)*3/4-g),j=0,k=g>0?f-4:f,l=0;l<k;l+=4)b=c[a.charCodeAt(l)]<<18|c[a.charCodeAt(l+1)]<<12|c[a.charCodeAt(l+2)]<<6|c[a.charCodeAt(l+3)],i[j++]=b>>16&255,i[j++]=b>>8&255,i[j++]=255&b;return 2===g&&(b=c[a.charCodeAt(l)]<<2|c[a.charCodeAt(l+1)]>>4,i[j++]=255&b),1===g&&(b=c[a.charCodeAt(l)]<<10|c[a.charCodeAt(l+1)]<<4|c[a.charCodeAt(l+2)]>>2,i[j++]=b>>8&255,i[j++]=255&b),i},a.fromByteArray=function(a){for(var c,d=a.length,e=d%3,f=[],g=0,h=d-e;g<h;g+=16383)f.push(function(a,c,d){for(var e,f=[],g=c;g<d;g+=3)e=(a[g]<<16&0xff0000)+(a[g+1]<<8&65280)+(255&a[g+2]),f.push(b[e>>18&63]+b[e>>12&63]+b[e>>6&63]+b[63&e]);return f.join("")}(a,g,g+16383>h?h:g+16383));return 1===e?f.push(b[(c=a[d-1])>>2]+b[c<<4&63]+"=="):2===e&&f.push(b[(c=(a[d-2]<<8)+a[d-1])>>10]+b[c>>4&63]+b[c<<2&63]+"="),f.join("")};for(var b=[],c=[],d="u">typeof Uint8Array?Uint8Array:Array,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=e.length;f<g;++f)b[f]=e[f],c[e.charCodeAt(f)]=f;function h(a){var b=a.length;if(b%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=a.indexOf("=");-1===c&&(c=b);var d=c===b?0:4-c%4;return[c,d]}c[45]=62,c[95]=63}),gO=z(a=>{a.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?0/0:(n?-1:1)*2e308;g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},a.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=5960464477539062e-23*(23===e),n=d?0:f-1,o=d?1:-1,p=+(b<0||0===b&&1/b<0);for(isNaN(b=Math.abs(b))||1/0===b?(h=+!!isNaN(b),g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),g+l>=1?b+=m/i:b+=m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}}),gP=z(a=>{var b=gN(),c=gO(),d="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function e(a){if(a>0x7fffffff)throw RangeError('The value "'+a+'" is invalid for option "size"');var b=new Uint8Array(a);return Object.setPrototypeOf(b,f.prototype),b}function f(a,b,c){if("number"==typeof a){if("string"==typeof b)throw TypeError('The "string" argument must be of type string. Received type number');return i(a)}return g(a,b,c)}function g(a,b,c){if("string"==typeof a){var d=a,g=b;if(("string"!=typeof g||""===g)&&(g="utf8"),!f.isEncoding(g))throw TypeError("Unknown encoding: "+g);var h=0|m(d,g),i=e(h),n=i.write(d,g);return n!==h&&(i=i.slice(0,n)),i}if(ArrayBuffer.isView(a)){var o=a;if(B(o,Uint8Array)){var p=new Uint8Array(o);return k(p.buffer,p.byteOffset,p.byteLength)}return j(o)}if(null==a)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);if(B(a,ArrayBuffer)||a&&B(a.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(B(a,SharedArrayBuffer)||a&&B(a.buffer,SharedArrayBuffer)))return k(a,b,c);if("number"==typeof a)throw TypeError('The "value" argument must not be of type number. Received type number');var q=a.valueOf&&a.valueOf();if(null!=q&&q!==a)return f.from(q,b,c);var r=function(a){if(f.isBuffer(a)){var b=0|l(a.length),c=e(b);return 0===c.length||a.copy(c,0,0,b),c}return void 0!==a.length?"number"!=typeof a.length||function(a){return a!=a}(a.length)?e(0):j(a):"Buffer"===a.type&&Array.isArray(a.data)?j(a.data):void 0}(a);if(r)return r;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof a[Symbol.toPrimitive])return f.from(a[Symbol.toPrimitive]("string"),b,c);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a)}function h(a){if("number"!=typeof a)throw TypeError('"size" argument must be of type number');if(a<0)throw RangeError('The value "'+a+'" is invalid for option "size"')}function i(a){return h(a),e(a<0?0:0|l(a))}function j(a){for(var b=a.length<0?0:0|l(a.length),c=e(b),d=0;d<b;d+=1)c[d]=255&a[d];return c}function k(a,b,c){var d;if(b<0||a.byteLength<b)throw RangeError('"offset" is outside of buffer bounds');if(a.byteLength<b+(c||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(d=void 0===b&&void 0===c?new Uint8Array(a):void 0===c?new Uint8Array(a,b):new Uint8Array(a,b,c),f.prototype),d}function l(a){if(a>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|a}function m(a,b){if(f.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||B(a,ArrayBuffer))return a.byteLength;if("string"!=typeof a)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof a);var c=a.length,d=arguments.length>2&&!0===arguments[2];if(!d&&0===c)return 0;for(var e=!1;;)switch(b){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return y(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return z(a).length;default:if(e)return d?-1:y(a).length;b=(""+b).toLowerCase(),e=!0}}function n(a,c,d){var e,f,g,h=!1;if((void 0===c||c<0)&&(c=0),c>this.length||((void 0===d||d>this.length)&&(d=this.length),d<=0||(d>>>=0)<=(c>>>=0)))return"";for(a||(a="utf8");;)switch(a){case"hex":return function(a,b,c){var d=a.length;(!b||b<0)&&(b=0),(!c||c<0||c>d)&&(c=d);for(var e="",f=b;f<c;++f)e+=C[a[f]];return e}(this,c,d);case"utf8":case"utf-8":return r(this,c,d);case"ascii":return function(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;e<c;++e)d+=String.fromCharCode(127&a[e]);return d}(this,c,d);case"latin1":case"binary":return function(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;e<c;++e)d+=String.fromCharCode(a[e]);return d}(this,c,d);case"base64":return e=this,f=c,g=d,0===f&&g===e.length?b.fromByteArray(e):b.fromByteArray(e.slice(f,g));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(a,b,c){for(var d=a.slice(b,c),e="",f=0;f<d.length-1;f+=2)e+=String.fromCharCode(d[f]+256*d[f+1]);return e}(this,c,d);default:if(h)throw TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),h=!0}}function o(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function p(a,b,c,d,e){var g;if(0===a.length)return -1;if("string"==typeof c?(d=c,c=0):c>0x7fffffff?c=0x7fffffff:c<-0x80000000&&(c=-0x80000000),(g=c*=1)!=g&&(c=e?0:a.length-1),c<0&&(c=a.length+c),c>=a.length)if(e)return -1;else c=a.length-1;else if(c<0)if(!e)return -1;else c=0;if("string"==typeof b&&(b=f.from(b,d)),f.isBuffer(b))return 0===b.length?-1:q(a,b,c,d,e);if("number"==typeof b){if(b&=255,"function"==typeof Uint8Array.prototype.indexOf)if(e)return Uint8Array.prototype.indexOf.call(a,b,c);else return Uint8Array.prototype.lastIndexOf.call(a,b,c);return q(a,[b],c,d,e)}throw TypeError("val must be string, number or Buffer")}function q(a,b,c,d,e){var f,g=1,h=a.length,i=b.length;if(void 0!==d&&("ucs2"===(d=String(d).toLowerCase())||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(a.length<2||b.length<2)return -1;g=2,h/=2,i/=2,c/=2}function j(a,b){return 1===g?a[b]:a.readUInt16BE(b*g)}if(e){var k=-1;for(f=c;f<h;f++)if(j(a,f)===j(b,-1===k?0:f-k)){if(-1===k&&(k=f),f-k+1===i)return k*g}else -1!==k&&(f-=f-k),k=-1}else for(c+i>h&&(c=h-i),f=c;f>=0;f--){for(var l=!0,m=0;m<i;m++)if(j(a,f+m)!==j(b,m)){l=!1;break}if(l)return f}return -1}function r(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;e<c;){var f,g,h,i,j=a[e],k=null,l=j>239?4:j>223?3:j>191?2:1;if(e+l<=c)switch(l){case 1:j<128&&(k=j);break;case 2:(192&(f=a[e+1]))==128&&(i=(31&j)<<6|63&f)>127&&(k=i);break;case 3:f=a[e+1],g=a[e+2],(192&f)==128&&(192&g)==128&&(i=(15&j)<<12|(63&f)<<6|63&g)>2047&&(i<55296||i>57343)&&(k=i);break;case 4:f=a[e+1],g=a[e+2],h=a[e+3],(192&f)==128&&(192&g)==128&&(192&h)==128&&(i=(15&j)<<18|(63&f)<<12|(63&g)<<6|63&h)>65535&&i<1114112&&(k=i)}null===k?(k=65533,l=1):k>65535&&(k-=65536,d.push(k>>>10&1023|55296),k=56320|1023&k),d.push(k),e+=l}var m=d,n=m.length;if(n<=4096)return String.fromCharCode.apply(String,m);for(var o="",p=0;p<n;)o+=String.fromCharCode.apply(String,m.slice(p,p+=4096));return o}function s(a,b,c){if(a%1!=0||a<0)throw RangeError("offset is not uint");if(a+b>c)throw RangeError("Trying to access beyond buffer length")}function t(a,b,c,d,e,g){if(!f.isBuffer(a))throw TypeError('"buffer" argument must be a Buffer instance');if(b>e||b<g)throw RangeError('"value" argument is out of bounds');if(c+d>a.length)throw RangeError("Index out of range")}function u(a,b,c,d,e,f){if(c+d>a.length||c<0)throw RangeError("Index out of range")}function v(a,b,d,e,f){return b*=1,d>>>=0,f||u(a,b,d,4,34028234663852886e22,-34028234663852886e22),c.write(a,b,d,e,23,4),d+4}function w(a,b,d,e,f){return b*=1,d>>>=0,f||u(a,b,d,8,17976931348623157e292,-17976931348623157e292),c.write(a,b,d,e,52,8),d+8}a.Buffer=f,a.SlowBuffer=function(a){return+a!=a&&(a=0),f.alloc(+a)},a.INSPECT_MAX_BYTES=50,a.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,Uint8Array.prototype),Object.setPrototypeOf(a,b),42===a.foo()}catch(a){return!1}}(),!f.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(a,b,c){return g(a,b,c)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(a,b,c){return(h(a),a<=0)?e(a):void 0!==b?"string"==typeof c?e(a).fill(b,c):e(a).fill(b):e(a)},f.allocUnsafe=function(a){return i(a)},f.allocUnsafeSlow=function(a){return i(a)},f.isBuffer=function(a){return null!=a&&!0===a._isBuffer&&a!==f.prototype},f.compare=function(a,b){if(B(a,Uint8Array)&&(a=f.from(a,a.offset,a.byteLength)),B(b,Uint8Array)&&(b=f.from(b,b.offset,b.byteLength)),!f.isBuffer(a)||!f.isBuffer(b))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);e<g;++e)if(a[e]!==b[e]){c=a[e],d=b[e];break}return c<d?-1:+(d<c)},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Array.isArray(a))throw TypeError('"list" argument must be an Array of Buffers');if(0===a.length)return f.alloc(0);if(void 0===b)for(c=0,b=0;c<a.length;++c)b+=a[c].length;var c,d=f.allocUnsafe(b),e=0;for(c=0;c<a.length;++c){var g=a[c];if(B(g,Uint8Array))e+g.length>d.length?f.from(g).copy(d,e):Uint8Array.prototype.set.call(d,g,e);else if(f.isBuffer(g))g.copy(d,e);else throw TypeError('"list" argument must be an Array of Buffers');e+=g.length}return d},f.byteLength=m,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var a=this.length;if(a%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var b=0;b<a;b+=2)o(this,b,b+1);return this},f.prototype.swap32=function(){var a=this.length;if(a%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var b=0;b<a;b+=4)o(this,b,b+3),o(this,b+1,b+2);return this},f.prototype.swap64=function(){var a=this.length;if(a%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var b=0;b<a;b+=8)o(this,b,b+7),o(this,b+1,b+6),o(this,b+2,b+5),o(this,b+3,b+4);return this},f.prototype.toString=function(){var a=this.length;return 0===a?"":0==arguments.length?r(this,0,a):n.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(a){if(!f.isBuffer(a))throw TypeError("Argument must be a Buffer");return this===a||0===f.compare(this,a)},f.prototype.inspect=function(){var b="",c=a.INSPECT_MAX_BYTES;return b=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(b+=" ... "),"<Buffer "+b+">"},d&&(f.prototype[d]=f.prototype.inspect),f.prototype.compare=function(a,b,c,d,e){if(B(a,Uint8Array)&&(a=f.from(a,a.offset,a.byteLength)),!f.isBuffer(a))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(void 0===b&&(b=0),void 0===c&&(c=a?a.length:0),void 0===d&&(d=0),void 0===e&&(e=this.length),b<0||c>a.length||d<0||e>this.length)throw RangeError("out of range index");if(d>=e&&b>=c)return 0;if(d>=e)return -1;if(b>=c)return 1;if(b>>>=0,c>>>=0,d>>>=0,e>>>=0,this===a)return 0;for(var g=e-d,h=c-b,i=Math.min(g,h),j=this.slice(d,e),k=a.slice(b,c),l=0;l<i;++l)if(j[l]!==k[l]){g=j[l],h=k[l];break}return g<h?-1:+(h<g)},f.prototype.includes=function(a,b,c){return -1!==this.indexOf(a,b,c)},f.prototype.indexOf=function(a,b,c){return p(this,a,b,c,!0)},f.prototype.lastIndexOf=function(a,b,c){return p(this,a,b,c,!1)},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b>>>=0,isFinite(c)?(c>>>=0,void 0===d&&(d="utf8")):(d=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var e,f,g,h,i,j,k,l,m=this.length-b;if((void 0===c||c>m)&&(c=m),a.length>0&&(c<0||b<0)||b>this.length)throw RangeError("Attempt to write outside buffer bounds");d||(d="utf8");for(var n=!1;;)switch(d){case"hex":return function(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d))>e&&(d=e):d=e;var f=b.length;d>f/2&&(d=f/2);for(var g=0;g<d;++g){var h,i=parseInt(b.substr(2*g,2),16);if((h=i)!=h)break;a[c+g]=i}return g}(this,a,b,c);case"utf8":case"utf-8":return e=b,f=c,A(y(a,this.length-e),this,e,f);case"ascii":case"latin1":case"binary":return g=b,h=c,A(function(a){for(var b=[],c=0;c<a.length;++c)b.push(255&a.charCodeAt(c));return b}(a),this,g,h);case"base64":return i=b,j=c,A(z(a),this,i,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k=b,l=c,A(function(a,b){for(var c,d,e=[],f=0;f<a.length&&!((b-=2)<0);++f)d=(c=a.charCodeAt(f))>>8,e.push(c%256),e.push(d);return e}(a,this.length-k),this,k,l);default:if(n)throw TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),n=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,a<0?(a+=c)<0&&(a=0):a>c&&(a=c),b<0?(b+=c)<0&&(b=0):b>c&&(b=c),b<a&&(b=a);var d=this.subarray(a,b);return Object.setPrototypeOf(d,f.prototype),d},f.prototype.readUintLE=f.prototype.readUIntLE=function(a,b,c){a>>>=0,b>>>=0,c||s(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return d},f.prototype.readUintBE=f.prototype.readUIntBE=function(a,b,c){a>>>=0,b>>>=0,c||s(a,b,this.length);for(var d=this[a+--b],e=1;b>0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUint8=f.prototype.readUInt8=function(a,b){return a>>>=0,b||s(a,1,this.length),this[a]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(a,b){return a>>>=0,b||s(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(a,b){return a>>>=0,b||s(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(a,b){return a>>>=0,b||s(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+0x1000000*this[a+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(a,b){return a>>>=0,b||s(a,4,this.length),0x1000000*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a>>>=0,b>>>=0,c||s(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return d>=(e*=128)&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a>>>=0,b>>>=0,c||s(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return f>=(e*=128)&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return(a>>>=0,b||s(a,1,this.length),128&this[a])?-((255-this[a]+1)*1):this[a]},f.prototype.readInt16LE=function(a,b){a>>>=0,b||s(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?0xffff0000|c:c},f.prototype.readInt16BE=function(a,b){a>>>=0,b||s(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?0xffff0000|c:c},f.prototype.readInt32LE=function(a,b){return a>>>=0,b||s(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return a>>>=0,b||s(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return a>>>=0,b||s(a,4,this.length),c.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return a>>>=0,b||s(a,4,this.length),c.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return a>>>=0,b||s(a,8,this.length),c.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return a>>>=0,b||s(a,8,this.length),c.read(this,a,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(a,b,c,d){if(a*=1,b>>>=0,c>>>=0,!d){var e=Math.pow(2,8*c)-1;t(this,a,b,c,e,0)}var f=1,g=0;for(this[b]=255&a;++g<c&&(f*=256);)this[b+g]=a/f&255;return b+c},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(a,b,c,d){if(a*=1,b>>>=0,c>>>=0,!d){var e=Math.pow(2,8*c)-1;t(this,a,b,c,e,0)}var f=c-1,g=1;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=a/g&255;return b+c},f.prototype.writeUint8=f.prototype.writeUInt8=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,1,255,0),this[b]=255&a,b+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,2,65535,0),this[b]=255&a,this[b+1]=a>>>8,b+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,2,65535,0),this[b]=a>>>8,this[b+1]=255&a,b+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,4,0xffffffff,0),this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a,b+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,4,0xffffffff,0),this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a,b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a*=1,b>>>=0,!d){var e=Math.pow(2,8*c-1);t(this,a,b,c,e-1,-e)}var f=0,g=1,h=0;for(this[b]=255&a;++f<c&&(g*=256);)a<0&&0===h&&0!==this[b+f-1]&&(h=1),this[b+f]=(a/g|0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a*=1,b>>>=0,!d){var e=Math.pow(2,8*c-1);t(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0;for(this[b+f]=255&a;--f>=0&&(g*=256);)a<0&&0===h&&0!==this[b+f+1]&&(h=1),this[b+f]=(a/g|0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,1,127,-128),a<0&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,2,32767,-32768),this[b]=255&a,this[b+1]=a>>>8,b+2},f.prototype.writeInt16BE=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,2,32767,-32768),this[b]=a>>>8,this[b+1]=255&a,b+2},f.prototype.writeInt32LE=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,4,0x7fffffff,-0x80000000),this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24,b+4},f.prototype.writeInt32BE=function(a,b,c){return a*=1,b>>>=0,c||t(this,a,b,4,0x7fffffff,-0x80000000),a<0&&(a=0xffffffff+a+1),this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a,b+4},f.prototype.writeFloatLE=function(a,b,c){return v(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return v(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return w(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return w(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(!f.isBuffer(a))throw TypeError("argument should be a Buffer");if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&d<c&&(d=c),d===c||0===a.length||0===this.length)return 0;if(b<0)throw RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw RangeError("Index out of range");if(d<0)throw RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c);var e=d-c;return this===a&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(b,c,d):Uint8Array.prototype.set.call(a,this.subarray(c,d),b),e},f.prototype.fill=function(a,b,c,d){if("string"==typeof a){if("string"==typeof b?(d=b,b=0,c=this.length):"string"==typeof c&&(d=c,c=this.length),void 0!==d&&"string"!=typeof d)throw TypeError("encoding must be a string");if("string"==typeof d&&!f.isEncoding(d))throw TypeError("Unknown encoding: "+d);if(1===a.length){var e,g=a.charCodeAt(0);("utf8"===d&&g<128||"latin1"===d)&&(a=g)}}else"number"==typeof a?a&=255:"boolean"==typeof a&&(a=Number(a));if(b<0||this.length<b||this.length<c)throw RangeError("Out of range index");if(c<=b)return this;if(b>>>=0,c=void 0===c?this.length:c>>>0,a||(a=0),"number"==typeof a)for(e=b;e<c;++e)this[e]=a;else{var h=f.isBuffer(a)?a:f.from(a,d),i=h.length;if(0===i)throw TypeError('The value "'+a+'" is invalid for argument "value"');for(e=0;e<c-b;++e)this[e+b]=h[e%i]}return this};var x=/[^+/0-9A-Za-z-_]/g;function y(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;g<d;++g){if((c=a.charCodeAt(g))>55295&&c<57344){if(!e){if(c>56319||g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(c<56320){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,c<128){if((b-=1)<0)break;f.push(c)}else if(c<2048){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(c<65536){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else if(c<1114112){if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}else throw Error("Invalid code point")}return f}function z(a){return b.toByteArray(function(a){if((a=(a=a.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;a.length%4!=0;)a+="=";return a}(a))}function A(a,b,c,d){for(var e=0;e<d&&!(e+c>=b.length)&&!(e>=a.length);++e)b[e+c]=a[e];return e}function B(a,b){return a instanceof b||null!=a&&null!=a.constructor&&null!=a.constructor.name&&a.constructor.name===b.name}var C=function(){for(var a="0123456789abcdef",b=Array(256),c=0;c<16;++c)for(var d=16*c,e=0;e<16;++e)b[d+e]=a[c]+a[e];return b}()}),gQ=z((a,b)=>{b.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var a={},b=Symbol("test"),c=Object(b);if("string"==typeof b||"[object Symbol]"!==Object.prototype.toString.call(b)||"[object Symbol]"!==Object.prototype.toString.call(c))return!1;for(var d in a[b]=42,a)return!1;if("function"==typeof Object.keys&&0!==Object.keys(a).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(a).length)return!1;var e=Object.getOwnPropertySymbols(a);if(1!==e.length||e[0]!==b||!Object.prototype.propertyIsEnumerable.call(a,b))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var f=Object.getOwnPropertyDescriptor(a,b);if(42!==f.value||!0!==f.enumerable)return!1}return!0}}),gR=z((a,b)=>{var c=gQ();b.exports=function(){return c()&&!!Symbol.toStringTag}}),gS=z((a,b)=>{b.exports=Object}),gT=z((a,b)=>{b.exports=Error}),gU=z((a,b)=>{b.exports=EvalError}),gV=z((a,b)=>{b.exports=RangeError}),gW=z((a,b)=>{b.exports=ReferenceError}),gX=z((a,b)=>{b.exports=SyntaxError}),gY=z((a,b)=>{b.exports=TypeError}),gZ=z((a,b)=>{b.exports=URIError}),g$=z((a,b)=>{b.exports=Math.abs}),g_=z((a,b)=>{b.exports=Math.floor}),g0=z((a,b)=>{b.exports=Math.max}),g1=z((a,b)=>{b.exports=Math.min}),g2=z((a,b)=>{b.exports=Math.pow}),g3=z((a,b)=>{b.exports=Math.round}),g4=z((a,b)=>{b.exports=Number.isNaN||function(a){return a!=a}}),g5=z((a,b)=>{var c=g4();b.exports=function(a){return c(a)||0===a?a:a<0?-1:1}}),g6=z((a,b)=>{b.exports=Object.getOwnPropertyDescriptor}),g7=z((a,b)=>{var c=g6();if(c)try{c([],"length")}catch(a){c=null}b.exports=c}),g8=z((a,b)=>{var c=Object.defineProperty||!1;if(c)try{c({},"a",{value:1})}catch(a){c=!1}b.exports=c}),g9=z((a,b)=>{var c="u">typeof Symbol&&Symbol,d=gQ();b.exports=function(){return"function"==typeof c&&"function"==typeof Symbol&&"symbol"==typeof c("foo")&&"symbol"==typeof Symbol("bar")&&d()}}),ha=z((a,b)=>{b.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null}),hb=z((a,b)=>{b.exports=gS().getPrototypeOf||null}),hc=z((a,b)=>{var c=Object.prototype.toString,d=Math.max,e=function(a,b){for(var c=[],d=0;d<a.length;d+=1)c[d]=a[d];for(var e=0;e<b.length;e+=1)c[e+a.length]=b[e];return c},f=function(a,b){for(var c=[],d=b||0,e=0;d<a.length;d+=1,e+=1)c[e]=a[d];return c},g=function(a,b){for(var c="",d=0;d<a.length;d+=1)c+=a[d],d+1<a.length&&(c+=b);return c};b.exports=function(a){var b,h=this;if("function"!=typeof h||"[object Function]"!==c.apply(h))throw TypeError("Function.prototype.bind called on incompatible "+h);for(var i=f(arguments,1),j=d(0,h.length-i.length),k=[],l=0;l<j;l++)k[l]="$"+l;if(b=Function("binder","return function ("+g(k,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof b){var c=h.apply(this,e(i,arguments));return Object(c)===c?c:this}return h.apply(a,e(i,arguments))}),h.prototype){var m=function(){};m.prototype=h.prototype,b.prototype=new m,m.prototype=null}return b}}),hd=z((a,b)=>{var c=hc();b.exports=Function.prototype.bind||c}),he=z((a,b)=>{b.exports=Function.prototype.call}),hf=z((a,b)=>{b.exports=Function.prototype.apply}),hg=z((a,b)=>{b.exports="u">typeof Reflect&&Reflect&&Reflect.apply}),hh=z((a,b)=>{var c=hd(),d=hf(),e=he();b.exports=hg()||c.call(e,d)}),hi=z((a,b)=>{var c=hd(),d=gY(),e=he(),f=hh();b.exports=function(a){if(a.length<1||"function"!=typeof a[0])throw new d("a function is required");return f(c,e,a)}}),hj=z((a,b)=>{var c,d=hi(),e=g7();try{c=[].__proto__===Array.prototype}catch(a){if(!a||"object"!=typeof a||!("code"in a)||"ERR_PROTO_ACCESS"!==a.code)throw a}var f=!!c&&e&&e(Object.prototype,"__proto__"),g=Object,h=g.getPrototypeOf;b.exports=f&&"function"==typeof f.get?d([f.get]):"function"==typeof h&&function(a){return h(null==a?a:g(a))}}),hk=z((a,b)=>{var c=ha(),d=hb(),e=hj();b.exports=c?function(a){return c(a)}:d?function(a){if(!a||"object"!=typeof a&&"function"!=typeof a)throw TypeError("getProto: not an object");return d(a)}:e?function(a){return e(a)}:null}),hl=z((a,b)=>{var c=Function.prototype.call,d=Object.prototype.hasOwnProperty;b.exports=hd().call(c,d)}),hm=z((a,b)=>{var c,d=gS(),e=gT(),f=gU(),g=gV(),h=gW(),i=gX(),j=gY(),k=gZ(),l=g$(),m=g_(),n=g0(),o=g1(),p=g2(),q=g3(),r=g5(),s=Function,t=function(a){try{return s('"use strict"; return ('+a+").constructor;")()}catch(a){}},u=g7(),v=g8(),w=function(){throw new j},x=u?function(){try{return arguments.callee,w}catch(a){try{return u(arguments,"callee").get}catch(a){return w}}}():w,y=g9()(),z=hk(),A=hb(),B=ha(),C=hf(),D=he(),E={},F="u">typeof Uint8Array&&z?z(Uint8Array):c,G={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?c:ArrayBuffer,"%ArrayIteratorPrototype%":y&&z?z([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":"u"<typeof Atomics?c:Atomics,"%BigInt%":"u"<typeof BigInt?c:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?c:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?c:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e,"%eval%":eval,"%EvalError%":f,"%Float16Array%":"u"<typeof Float16Array?c:Float16Array,"%Float32Array%":"u"<typeof Float32Array?c:Float32Array,"%Float64Array%":"u"<typeof Float64Array?c:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?c:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":E,"%Int8Array%":"u"<typeof Int8Array?c:Int8Array,"%Int16Array%":"u"<typeof Int16Array?c:Int16Array,"%Int32Array%":"u"<typeof Int32Array?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&z?z(z([][Symbol.iterator]())):c,"%JSON%":"object"==typeof JSON?JSON:c,"%Map%":"u"<typeof Map?c:Map,"%MapIteratorPrototype%":"u">typeof Map&&y&&z?z((new Map)[Symbol.iterator]()):c,"%Math%":Math,"%Number%":Number,"%Object%":d,"%Object.getOwnPropertyDescriptor%":u,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?c:Promise,"%Proxy%":"u"<typeof Proxy?c:Proxy,"%RangeError%":g,"%ReferenceError%":h,"%Reflect%":"u"<typeof Reflect?c:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?c:Set,"%SetIteratorPrototype%":"u">typeof Set&&y&&z?z((new Set)[Symbol.iterator]()):c,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&z?z(""[Symbol.iterator]()):c,"%Symbol%":y?Symbol:c,"%SyntaxError%":i,"%ThrowTypeError%":x,"%TypedArray%":F,"%TypeError%":j,"%Uint8Array%":"u"<typeof Uint8Array?c:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?c:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?c:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?c:Uint32Array,"%URIError%":k,"%WeakMap%":"u"<typeof WeakMap?c:WeakMap,"%WeakRef%":"u"<typeof WeakRef?c:WeakRef,"%WeakSet%":"u"<typeof WeakSet?c:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":C,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":A,"%Math.abs%":l,"%Math.floor%":m,"%Math.max%":n,"%Math.min%":o,"%Math.pow%":p,"%Math.round%":q,"%Math.sign%":r,"%Reflect.getPrototypeOf%":B};if(z)try{null.error}catch(a){G["%Error.prototype%"]=z(z(a))}var H=function a(b){var c;if("%AsyncFunction%"===b)c=t("async function () {}");else if("%GeneratorFunction%"===b)c=t("function* () {}");else if("%AsyncGeneratorFunction%"===b)c=t("async function* () {}");else if("%AsyncGenerator%"===b){var d=a("%AsyncGeneratorFunction%");d&&(c=d.prototype)}else if("%AsyncIteratorPrototype%"===b){var e=a("%AsyncGenerator%");e&&z&&(c=z(e.prototype))}return G[b]=c,c},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},J=hd(),K=hl(),L=J.call(D,Array.prototype.concat),M=J.call(C,Array.prototype.splice),N=J.call(D,String.prototype.replace),O=J.call(D,String.prototype.slice),P=J.call(D,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,S=function(a){var b=O(a,0,1),c=O(a,-1);if("%"===b&&"%"!==c)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===c&&"%"!==b)throw new i("invalid intrinsic syntax, expected opening `%`");var d=[];return N(a,Q,function(a,b,c,e){d[d.length]=c?N(e,R,"$1"):b||a}),d},T=function(a,b){var c,d=a;if(K(I,d)&&(d="%"+(c=I[d])[0]+"%"),K(G,d)){var e=G[d];if(e===E&&(e=H(d)),void 0===e&&!b)throw new j("intrinsic "+a+" exists, but is not available. Please file an issue!");return{alias:c,name:d,value:e}}throw new i("intrinsic "+a+" does not exist!")};b.exports=function(a,b){if("string"!=typeof a||0===a.length)throw new j("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof b)throw new j('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,a))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=S(a),d=c.length>0?c[0]:"",e=T("%"+d+"%",b),f=e.name,g=e.value,h=!1,k=e.alias;k&&(d=k[0],M(c,L([0,1],k)));for(var l=1,m=!0;l<c.length;l+=1){var n=c[l],o=O(n,0,1),p=O(n,-1);if(('"'===o||"'"===o||"`"===o||'"'===p||"'"===p||"`"===p)&&o!==p)throw new i("property names with quotes must have matching quotes");if("constructor"!==n&&m||(h=!0),d+="."+n,K(G,f="%"+d+"%"))g=G[f];else if(null!=g){if(!(n in g)){if(!b)throw new j("base intrinsic for "+a+" exists, but the property is not available.");return}if(u&&l+1>=c.length){var q=u(g,n);g=(m=!!q)&&"get"in q&&!("originalValue"in q.get)?q.get:g[n]}else m=K(g,n),g=g[n];m&&!h&&(G[f]=g)}}return g}}),hn=z((a,b)=>{var c=hm(),d=hi(),e=d([c("%String.prototype.indexOf%")]);b.exports=function(a,b){var f=c(a,!!b);return"function"==typeof f&&e(a,".prototype.")>-1?d([f]):f}}),ho=z((a,b)=>{var c=gR()(),d=hn()("Object.prototype.toString"),e=function(a){return(!c||!a||"object"!=typeof a||!(Symbol.toStringTag in a))&&"[object Arguments]"===d(a)},f=function(a){return!!e(a)||null!==a&&"object"==typeof a&&"length"in a&&"number"==typeof a.length&&a.length>=0&&"[object Array]"!==d(a)&&"callee"in a&&"[object Function]"===d(a.callee)},g=function(){return e(arguments)}();e.isLegacyArguments=f,b.exports=g?e:f}),hp=z((a,b)=>{var c,d=Object.prototype.toString,e=Function.prototype.toString,f=/^\s*(?:function)?\*/,g=gR()(),h=Object.getPrototypeOf,i=function(){if(!g)return!1;try{return Function("return function*() {}")()}catch(a){}};b.exports=function(a){if("function"!=typeof a)return!1;if(f.test(e.call(a)))return!0;if(!g)return"[object GeneratorFunction]"===d.call(a);if(!h)return!1;if(void 0===c){var b=i();c=!!b&&h(b)}return h(a)===c}}),hq=z((a,b)=>{var c,d,e=Function.prototype.toString,f="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof f&&"function"==typeof Object.defineProperty)try{c=Object.defineProperty({},"length",{get:function(){throw d}}),d={},f(function(){throw 42},null,c)}catch(a){a!==d&&(f=null)}else f=null;var g=/^\s*class\b/,h=function(a){try{var b=e.call(a);return g.test(b)}catch(a){return!1}},i=function(a){try{if(h(a))return!1;return e.call(a),!0}catch(a){return!1}},j=Object.prototype.toString,k="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),m=function(){return!1};if("object"==typeof document){var n=document.all;j.call(n)===j.call(document.all)&&(m=function(a){if((l||!a)&&(void 0===a||"object"==typeof a))try{var b=j.call(a);return("[object HTMLAllCollection]"===b||"[object HTML document.all class]"===b||"[object HTMLCollection]"===b||"[object Object]"===b)&&null==a("")}catch(a){}return!1})}b.exports=f?function(a){if(m(a))return!0;if(!a||"function"!=typeof a&&"object"!=typeof a)return!1;try{f(a,null,c)}catch(a){if(a!==d)return!1}return!h(a)&&i(a)}:function(a){if(m(a))return!0;if(!a||"function"!=typeof a&&"object"!=typeof a)return!1;if(k)return i(a);if(h(a))return!1;var b=j.call(a);return("[object Function]"===b||"[object GeneratorFunction]"===b||!!/^\[object HTML/.test(b))&&i(a)}}),hr=z((a,b)=>{var c=hq(),d=Object.prototype.toString,e=Object.prototype.hasOwnProperty,f=function(a,b,c){for(var d=0,f=a.length;d<f;d++)e.call(a,d)&&(null==c?b(a[d],d,a):b.call(c,a[d],d,a))},g=function(a,b,c){for(var d=0,e=a.length;d<e;d++)null==c?b(a.charAt(d),d,a):b.call(c,a.charAt(d),d,a)},h=function(a,b,c){for(var d in a)e.call(a,d)&&(null==c?b(a[d],d,a):b.call(c,a[d],d,a))};b.exports=function(a,b,e){var i;if(!c(b))throw TypeError("iterator must be a function");(arguments.length>=3&&(i=e),"[object Array]"===d.call(a))?f(a,b,i):"string"==typeof a?g(a,b,i):h(a,b,i)}}),hs=z((a,b)=>{b.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),ht=z((a,b)=>{gD();var c=hs(),d="u"<typeof globalThis?i:globalThis;b.exports=function(){for(var a=[],b=0;b<c.length;b++)"function"==typeof d[c[b]]&&(a[a.length]=c[b]);return a}}),hu=z((a,b)=>{var c=g8(),d=gX(),e=gY(),f=g7();b.exports=function(a,b,g){if(!a||"object"!=typeof a&&"function"!=typeof a)throw new e("`obj` must be an object or a function`");if("string"!=typeof b&&"symbol"!=typeof b)throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new e("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,j=arguments.length>5?arguments[5]:null,k=arguments.length>6&&arguments[6],l=!!f&&f(a,b);if(c)c(a,b,{configurable:null===j&&l?l.configurable:!j,enumerable:null===h&&l?l.enumerable:!h,value:g,writable:null===i&&l?l.writable:!i});else if(!k&&(h||i||j))throw new d("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else a[b]=g}}),hv=z((a,b)=>{var c=g8(),d=function(){return!!c};d.hasArrayLengthDefineBug=function(){if(!c)return null;try{return 1!==c([],"length",{value:1}).length}catch(a){return!0}},b.exports=d}),hw=z((a,b)=>{var c=hm(),d=hu(),e=hv()(),f=g7(),g=gY(),h=c("%Math.floor%");b.exports=function(a,b){if("function"!=typeof a)throw new g("`fn` is not a function");if("number"!=typeof b||b<0||b>0xffffffff||h(b)!==b)throw new g("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],i=!0,j=!0;if("length"in a&&f){var k=f(a,"length");k&&!k.configurable&&(i=!1),k&&!k.writable&&(j=!1)}return(i||j||!c)&&(e?d(a,"length",b,!0,!0):d(a,"length",b)),a}}),hx=z((a,b)=>{var c=hd(),d=hf(),e=hh();b.exports=function(){return e(c,d,arguments)}}),hy=z((a,b)=>{var c=hw(),d=g8(),e=hi(),f=hx();b.exports=function(a){var b=e(arguments),d=a.length-(arguments.length-1);return c(b,1+(d>0?d:0),!0)},d?d(b.exports,"apply",{value:f}):b.exports.apply=f}),hz=z((a,b)=>{gD();var c=hr(),d=ht(),e=hy(),f=hn(),g=g7(),h=hk(),j=f("Object.prototype.toString"),k=gR()(),l="u"<typeof globalThis?i:globalThis,m=d(),n=f("String.prototype.slice"),o=f("Array.prototype.indexOf",!0)||function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return c;return -1},p={__proto__:null};k&&g&&h?c(m,function(a){var b=new l[a];if(Symbol.toStringTag in b&&h){var c=h(b),d=g(c,Symbol.toStringTag);!d&&c&&(d=g(h(c),Symbol.toStringTag)),p["$"+a]=e(d.get)}}):c(m,function(a){var b=new l[a],c=b.slice||b.set;c&&(p["$"+a]=e(c))});var q=function(a){var b=!1;return c(p,function(c,d){if(!b)try{"$"+c(a)===d&&(b=n(d,1))}catch(a){}}),b},r=function(a){var b=!1;return c(p,function(c,d){if(!b)try{c(a),b=n(d,1)}catch(a){}}),b};b.exports=function(a){if(!a||"object"!=typeof a)return!1;if(!k){var b=n(j(a),8,-1);return o(m,b)>-1?b:"Object"===b&&r(a)}return g?q(a):null}}),hA=z((a,b)=>{var c=hz();b.exports=function(a){return!!c(a)}}),hB=z(a=>{var b=ho(),c=hp(),d=hz(),e=hA();function f(a){return a.call.bind(a)}var g="u">typeof BigInt,h="u">typeof Symbol,i=f(Object.prototype.toString),j=f(Number.prototype.valueOf),k=f(String.prototype.valueOf),l=f(Boolean.prototype.valueOf);if(g)var m=f(BigInt.prototype.valueOf);if(h)var n=f(Symbol.prototype.valueOf);function o(a,b){if("object"!=typeof a)return!1;try{return b(a),!0}catch(a){return!1}}function p(a){return"[object Map]"===i(a)}function q(a){return"[object Set]"===i(a)}function r(a){return"[object WeakMap]"===i(a)}function s(a){return"[object WeakSet]"===i(a)}function t(a){return"[object ArrayBuffer]"===i(a)}function u(a){return!("u"<typeof ArrayBuffer)&&(t.working?t(a):a instanceof ArrayBuffer)}function v(a){return"[object DataView]"===i(a)}function w(a){return!("u"<typeof DataView)&&(v.working?v(a):a instanceof DataView)}a.isArgumentsObject=b,a.isGeneratorFunction=c,a.isTypedArray=e,a.isPromise=function(a){return"u">typeof Promise&&a instanceof Promise||null!==a&&"object"==typeof a&&"function"==typeof a.then&&"function"==typeof a.catch},a.isArrayBufferView=function(a){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(a):e(a)||w(a)},a.isUint8Array=function(a){return"Uint8Array"===d(a)},a.isUint8ClampedArray=function(a){return"Uint8ClampedArray"===d(a)},a.isUint16Array=function(a){return"Uint16Array"===d(a)},a.isUint32Array=function(a){return"Uint32Array"===d(a)},a.isInt8Array=function(a){return"Int8Array"===d(a)},a.isInt16Array=function(a){return"Int16Array"===d(a)},a.isInt32Array=function(a){return"Int32Array"===d(a)},a.isFloat32Array=function(a){return"Float32Array"===d(a)},a.isFloat64Array=function(a){return"Float64Array"===d(a)},a.isBigInt64Array=function(a){return"BigInt64Array"===d(a)},a.isBigUint64Array=function(a){return"BigUint64Array"===d(a)},p.working="u">typeof Map&&p(new Map),a.isMap=function(a){return!("u"<typeof Map)&&(p.working?p(a):a instanceof Map)},q.working="u">typeof Set&&q(new Set),a.isSet=function(a){return!("u"<typeof Set)&&(q.working?q(a):a instanceof Set)},r.working="u">typeof WeakMap&&r(new WeakMap),a.isWeakMap=function(a){return!("u"<typeof WeakMap)&&(r.working?r(a):a instanceof WeakMap)},s.working="u">typeof WeakSet&&s(new WeakSet),a.isWeakSet=function(a){return s(a)},t.working="u">typeof ArrayBuffer&&t(new ArrayBuffer),a.isArrayBuffer=u,v.working="u">typeof ArrayBuffer&&"u">typeof DataView&&v(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=w;var x="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function y(a){return"[object SharedArrayBuffer]"===i(a)}function z(a){return void 0!==x&&(void 0===y.working&&(y.working=y(new x)),y.working?y(a):a instanceof x)}function A(a){return o(a,j)}function B(a){return o(a,k)}function C(a){return o(a,l)}function D(a){return g&&o(a,m)}function E(a){return h&&o(a,n)}a.isSharedArrayBuffer=z,a.isAsyncFunction=function(a){return"[object AsyncFunction]"===i(a)},a.isMapIterator=function(a){return"[object Map Iterator]"===i(a)},a.isSetIterator=function(a){return"[object Set Iterator]"===i(a)},a.isGeneratorObject=function(a){return"[object Generator]"===i(a)},a.isWebAssemblyCompiledModule=function(a){return"[object WebAssembly.Module]"===i(a)},a.isNumberObject=A,a.isStringObject=B,a.isBooleanObject=C,a.isBigIntObject=D,a.isSymbolObject=E,a.isBoxedPrimitive=function(a){return A(a)||B(a)||C(a)||D(a)||E(a)},a.isAnyArrayBuffer=function(a){return"u">typeof Uint8Array&&(u(a)||z(a))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(b){Object.defineProperty(a,b,{enumerable:!1,value:function(){throw Error(b+" is not supported in userland")}})})}),hC=z((a,b)=>{b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}}),hD=z(a=>{gL();var b=Object.getOwnPropertyDescriptors||function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++)c[b[d]]=Object.getOwnPropertyDescriptor(a,b[d]);return c},c=/%[sdj%]/g;a.format=function(a){if(!q(a)){for(var b=[],d=0;d<arguments.length;d++)b.push(g(arguments[d]));return b.join(" ")}for(var d=1,e=arguments,f=e.length,h=String(a).replace(c,function(a){if("%%"===a)return"%";if(d>=f)return a;switch(a){case"%s":return String(e[d++]);case"%d":return Number(e[d++]);case"%j":try{return JSON.stringify(e[d++])}catch(a){return"[Circular]"}default:return a}}),i=e[d];d<f;i=e[++d])o(i)||!u(i)?h+=" "+i:h+=" "+g(i);return h},a.deprecate=function(b,c){if(void 0!==r&&!0===r.noDeprecation)return b;if(void 0===r)return function(){return a.deprecate(b,c).apply(this,arguments)};var d=!1;return function(){if(!d){if(r.throwDeprecation)throw Error(c);r.traceDeprecation?console.trace(c):console.error(c),d=!0}return b.apply(this,arguments)}};var d={},e=/^$/;if(r.env.NODE_DEBUG){var f=r.env.NODE_DEBUG;e=RegExp("^"+(f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function g(b,c){var d={seen:[],stylize:i};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),n(c)?d.showHidden=c:c&&a._extend(d,c),s(d.showHidden)&&(d.showHidden=!1),s(d.depth)&&(d.depth=2),s(d.colors)&&(d.colors=!1),s(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=h),j(d,b,d.depth)}function h(a,b){var c=g.styles[b];return c?"\x1b["+g.colors[c][0]+"m"+a+"\x1b["+g.colors[c][1]+"m":a}function i(a,b){return a}function j(b,c,d){if(b.customInspect&&c&&x(c.inspect)&&c.inspect!==a.inspect&&!(c.constructor&&c.constructor.prototype===c)){var e,f,g,h,i,r,u=c.inspect(d,b);return q(u)||(u=j(b,u,d)),u}var y=function(a,b){if(s(b))return a.stylize("undefined","undefined");if(q(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return p(b)?a.stylize(""+b,"number"):n(b)?a.stylize(""+b,"boolean"):o(b)?a.stylize("null","null"):void 0}(b,c);if(y)return y;var z=Object.keys(c),A=(i={},z.forEach(function(a,b){i[a]=!0}),i);if(b.showHidden&&(z=Object.getOwnPropertyNames(c)),w(c)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return k(c);if(0===z.length){if(x(c)){var C=c.name?": "+c.name:"";return b.stylize("[Function"+C+"]","special")}if(t(c))return b.stylize(RegExp.prototype.toString.call(c),"regexp");if(v(c))return b.stylize(Date.prototype.toString.call(c),"date");if(w(c))return k(c)}var D="",E=!1,F=["{","}"];if(m(c)&&(E=!0,F=["[","]"]),x(c)&&(D=" [Function"+(c.name?": "+c.name:"")+"]"),t(c)&&(D=" "+RegExp.prototype.toString.call(c)),v(c)&&(D=" "+Date.prototype.toUTCString.call(c)),w(c)&&(D=" "+k(c)),0===z.length&&(!E||0==c.length))return F[0]+D+F[1];if(d<0)if(t(c))return b.stylize(RegExp.prototype.toString.call(c),"regexp");else return b.stylize("[Object]","special");return b.seen.push(c),r=E?function(a,b,c,d,e){for(var f=[],g=0,h=b.length;g<h;++g)B(b,String(g))?f.push(l(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(l(a,b,c,d,e,!0))}),f}(b,c,d,A,z):z.map(function(a){return l(b,c,d,A,a,E)}),b.seen.pop(),e=r,f=D,g=F,h=0,e.reduce(function(a,b){return h++,b.indexOf("\n")>=0&&h++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?g[0]+(""===f?"":f+"\n ")+" "+e.join(",\n ")+" "+g[1]:g[0]+f+" "+e.join(", ")+" "+g[1]}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e,f){var g,h,i=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]};if(i.get?h=i.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):i.set&&(h=a.stylize("[Setter]","special")),B(d,e)||(g="["+e+"]"),!h&&(0>a.seen.indexOf(i.value)?(h=o(c)?j(a,i.value,null):j(a,i.value,c-1)).indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").slice(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n")):h=a.stylize("[Circular]","special")),s(g)){if(f&&e.match(/^\d+$/))return h;(g=JSON.stringify(""+e)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.slice(1,-1),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function m(a){return Array.isArray(a)}function n(a){return"boolean"==typeof a}function o(a){return null===a}function p(a){return"number"==typeof a}function q(a){return"string"==typeof a}function s(a){return void 0===a}function t(a){return u(a)&&"[object RegExp]"===y(a)}function u(a){return"object"==typeof a&&null!==a}function v(a){return u(a)&&"[object Date]"===y(a)}function w(a){return u(a)&&("[object Error]"===y(a)||a instanceof Error)}function x(a){return"function"==typeof a}function y(a){return Object.prototype.toString.call(a)}function z(a){return a<10?"0"+a.toString(10):a.toString(10)}a.debuglog=function(b){if(!d[b=b.toUpperCase()])if(e.test(b)){var c=r.pid;d[b]=function(){var d=a.format.apply(a,arguments);console.error("%s %d: %s",b,c,d)}}else d[b]=function(){};return d[b]},a.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=hB(),a.isArray=m,a.isBoolean=n,a.isNull=o,a.isNullOrUndefined=function(a){return null==a},a.isNumber=p,a.isString=q,a.isSymbol=function(a){return"symbol"==typeof a},a.isUndefined=s,a.isRegExp=t,a.types.isRegExp=t,a.isObject=u,a.isDate=v,a.types.isDate=v,a.isError=w,a.types.isNativeError=w,a.isFunction=x,a.isPrimitive=function(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a},a.isBuffer=hC();var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(a,b){return Object.prototype.hasOwnProperty.call(a,b)}a.log=function(){var b,c;console.log("%s - %s",(c=[z((b=new Date).getHours()),z(b.getMinutes()),z(b.getSeconds())].join(":"),[b.getDate(),A[b.getMonth()],c].join(" ")),a.format.apply(a,arguments))},a.inherits=bt(),a._extend=function(a,b){if(!b||!u(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a};var C="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(a,b){if(!a){var c=Error("Promise was rejected with a falsy value");c.reason=a,a=c}return b(a)}a.promisify=function(a){if("function"!=typeof a)throw TypeError('The "original" argument must be of type Function');if(C&&a[C]){var c=a[C];if("function"!=typeof c)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(c,C,{value:c,enumerable:!1,writable:!1,configurable:!0}),c}function c(){for(var b,c,d=new Promise(function(a,d){b=a,c=d}),e=[],f=0;f<arguments.length;f++)e.push(arguments[f]);e.push(function(a,d){a?c(a):b(d)});try{a.apply(this,e)}catch(a){c(a)}return d}return Object.setPrototypeOf(c,Object.getPrototypeOf(a)),C&&Object.defineProperty(c,C,{value:c,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(c,b(a))},a.promisify.custom=C,a.callbackify=function(a){if("function"!=typeof a)throw TypeError('The "original" argument must be of type Function');function c(){for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);var d=b.pop();if("function"!=typeof d)throw TypeError("The last argument must be of type Function");var e=this,f=function(){return d.apply(e,arguments)};a.apply(this,b).then(function(a){r.nextTick(f.bind(null,null,a))},function(a){r.nextTick(D.bind(null,a,f))})}return Object.setPrototypeOf(c,Object.getPrototypeOf(a)),Object.defineProperties(c,b(a)),c}}),hE=z((a,b)=>{function c(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function d(a){for(var b=1;b<arguments.length;b++){var d=null!=arguments[b]?arguments[b]:{};b%2?c(Object(d),!0).forEach(function(b){var c,f,g;c=a,f=b,g=d[b],(f=e(f))in c?Object.defineProperty(c,f,{value:g,enumerable:!0,configurable:!0,writable:!0}):c[f]=g}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(d)):c(Object(d)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(d,b))})}return a}function e(a){var b=function(a,b){if("object"!=typeof a||null===a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=typeof d)return d;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}(a,"string");return"symbol"==typeof b?b:String(b)}var f=gP().Buffer,g=hD().inspect,h=g&&g.custom||"inspect";b.exports=function(){var a;function b(){if(!(this instanceof b))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return a=[{key:"push",value:function(a){var b={data:a,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(a){var b={data:a,next:this.head};0===this.length&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(0!==this.length){var a=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,a}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c}},{key:"concat",value:function(a){if(0===this.length)return f.alloc(0);for(var b,c,d=f.allocUnsafe(a>>>0),e=this.head,g=0;e;)b=e.data,c=g,f.prototype.copy.call(b,d,c),g+=e.data.length,e=e.next;return d}},{key:"consume",value:function(a,b){var c;return a<this.head.data.length?(c=this.head.data.slice(0,a),this.head.data=this.head.data.slice(a)):c=a===this.head.data.length?this.shift():b?this._getString(a):this._getBuffer(a),c}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(a){var b=this.head,c=1,d=b.data;for(a-=d.length;b=b.next;){var e=b.data,f=a>e.length?e.length:a;if(f===e.length?d+=e:d+=e.slice(0,a),0==(a-=f)){f===e.length?(++c,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=e.slice(f));break}++c}return this.length-=c,d}},{key:"_getBuffer",value:function(a){var b=f.allocUnsafe(a),c=this.head,d=1;for(c.data.copy(b),a-=c.data.length;c=c.next;){var e=c.data,g=a>e.length?e.length:a;if(e.copy(b,b.length-a,0,g),0==(a-=g)){g===e.length?(++d,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=e.slice(g));break}++d}return this.length-=d,b}},{key:h,value:function(a,b){return g(this,d(d({},b),{},{depth:0,customInspect:!1}))}}],function(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,e(d.key),d)}}(b.prototype,a),Object.defineProperty(b,"prototype",{writable:!1}),b}()}),hF=z((a,b)=>{function c(a,b){e(a,b),d(a)}function d(a){a._writableState&&!a._writableState.emitClose||(!a._readableState||a._readableState.emitClose)&&a.emit("close")}function e(a,b){a.emit("error",b)}gL(),b.exports={destroy:function(a,b){var f=this,g=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return g||h?b?b(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(e,this,a)):r.nextTick(e,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?f._writableState?f._writableState.errorEmitted?r.nextTick(d,f):(f._writableState.errorEmitted=!0,r.nextTick(c,f,a)):r.nextTick(c,f,a):b?(r.nextTick(d,f),b(a)):r.nextTick(d,f)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(a,b){var c=a._readableState,d=a._writableState;c&&c.autoDestroy||d&&d.autoDestroy?a.destroy(b):a.emit("error",b)}}}),hG=z((a,b)=>{var c={};function d(a,b,d){d||(d=Error);var e=function(a){function c(c,d,e){return a.call(this,"string"==typeof b?b:b(c,d,e))||this}return c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.__proto__=a,c}(d);e.prototype.name=d.name,e.prototype.code=a,c[a]=e}function e(a,b){if(!Array.isArray(a))return"of ".concat(b," ").concat(String(a));var c=a.length;return(a=a.map(function(a){return String(a)}),c>2)?"one of ".concat(b," ").concat(a.slice(0,c-1).join(", "),", or ")+a[c-1]:2===c?"one of ".concat(b," ").concat(a[0]," or ").concat(a[1]):"of ".concat(b," ").concat(a[0])}d("ERR_INVALID_OPT_VALUE",function(a,b){return'The value "'+b+'" is invalid for option "'+a+'"'},TypeError),d("ERR_INVALID_ARG_TYPE",function(a,b,c){if("string"==typeof b&&(d="not ",b.substr(0,d.length)===d)?(i="must not be",b=b.replace(/^not /,"")):i="must be",f=" argument",(void 0===g||g>a.length)&&(g=a.length),a.substring(g-f.length,g)===f)j="The ".concat(a," ").concat(i," ").concat(e(b,"type"));else{var d,f,g,h,i,j,k=("number"!=typeof h&&(h=0),h+1>a.length||-1===a.indexOf(".",h))?"argument":"property";j='The "'.concat(a,'" ').concat(k," ").concat(i," ").concat(e(b,"type"))}return j+". Received type ".concat(typeof c)},TypeError),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),d("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),d("ERR_STREAM_PREMATURE_CLOSE","Premature close"),d("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),d("ERR_STREAM_WRITE_AFTER_END","write after end"),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),b.exports.codes=c}),hH=z((a,b)=>{var c=hG().codes.ERR_INVALID_OPT_VALUE;b.exports={getHighWaterMark:function(a,b,d,e){var f=null!=b.highWaterMark?b.highWaterMark:e?b[d]:null;if(null!=f){if(!(isFinite(f)&&Math.floor(f)===f)||f<0)throw new c(e?d:"highWaterMark",f);return Math.floor(f)}return a.objectMode?16:16384}}}),hI=z((a,b)=>{gD(),b.exports=function(a,b){if(c("noDeprecation"))return a;var d=!1;return function(){if(!d){if(c("throwDeprecation"))throw Error(b);c("traceDeprecation")?console.trace(b):console.warn(b),d=!0}return a.apply(this,arguments)}};function c(a){try{if(!i.localStorage)return!1}catch(a){return!1}var b=i.localStorage[a];return null!=b&&"true"===String(b).toLowerCase()}}),hJ=z((a,b)=>{function c(a){var b=this;this.next=null,this.entry=null,this.finish=function(){var c=b,d=a,e=c.entry;for(c.entry=null;e;){var f=e.callback;d.pendingcb--,f(void 0),e=e.next}d.corkedRequestsFree.next=c}}gD(),gL(),b.exports=z,z.WritableState=y;var d,e,f={deprecate:hI()},g=gM(),h=gP().Buffer,j=(void 0!==i?i:"u">typeof self?self:{}).Uint8Array||function(){},k=hF(),l=hH().getHighWaterMark,m=hG().codes,n=m.ERR_INVALID_ARG_TYPE,o=m.ERR_METHOD_NOT_IMPLEMENTED,p=m.ERR_MULTIPLE_CALLBACK,q=m.ERR_STREAM_CANNOT_PIPE,s=m.ERR_STREAM_DESTROYED,t=m.ERR_STREAM_NULL_VALUES,u=m.ERR_STREAM_WRITE_AFTER_END,v=m.ERR_UNKNOWN_ENCODING,w=k.errorOrDestroy;function x(){}function y(a,b,e){d=d||hK(),a=a||{},"boolean"!=typeof e&&(e=b instanceof d),this.objectMode=!!a.objectMode,e&&(this.objectMode=this.objectMode||!!a.writableObjectMode),this.highWaterMark=l(this,a,"writableHighWaterMark",e),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===a.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){!function(a,b){var c=a._writableState,d=c.sync,e=c.writecb;if("function"!=typeof e)throw new p;if(c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0,b)--c.pendingcb,d?(r.nextTick(e,b),r.nextTick(F,a,c),a._writableState.errorEmitted=!0,w(a,b)):(e(b),a._writableState.errorEmitted=!0,w(a,b),F(a,c));else{var f=D(c)||a.destroyed;f||c.corked||c.bufferProcessing||!c.bufferedRequest||C(a,c),d?r.nextTick(B,a,c,f,e):B(a,c,f,e)}}(b,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==a.emitClose,this.autoDestroy=!!a.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}bt()(z,g),y.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b};try{Object.defineProperty(y.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(a){}function z(a){var b=this instanceof(d=d||hK());if(!b&&!e.call(z,this))return new z(a);this._writableState=new y(a,this,b),this.writable=!0,a&&("function"==typeof a.write&&(this._write=a.write),"function"==typeof a.writev&&(this._writev=a.writev),"function"==typeof a.destroy&&(this._destroy=a.destroy),"function"==typeof a.final&&(this._final=a.final)),g.call(this)}function A(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,b.destroyed?b.onwrite(new s("write")):c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function B(a,b,c,d){var e,f;c||(e=a,0===(f=b).length&&f.needDrain&&(f.needDrain=!1,e.emit("drain"))),b.pendingcb--,d(),F(a,b)}function C(a,b){b.bufferProcessing=!0;var d=b.bufferedRequest;if(a._writev&&d&&d.next){var e=Array(b.bufferedRequestCount),f=b.corkedRequestsFree;f.entry=d;for(var g=0,h=!0;d;)e[g]=d,d.isBuf||(h=!1),d=d.next,g+=1;e.allBuffers=h,A(a,b,!0,b.length,e,"",f.finish),b.pendingcb++,b.lastBufferedRequest=null,f.next?(b.corkedRequestsFree=f.next,f.next=null):b.corkedRequestsFree=new c(b),b.bufferedRequestCount=0}else{for(;d;){var i=d.chunk,j=d.encoding,k=d.callback;if(A(a,b,!1,b.objectMode?1:i.length,i,j,k),d=d.next,b.bufferedRequestCount--,b.writing)break}null===d&&(b.lastBufferedRequest=null)}b.bufferedRequest=d,b.bufferProcessing=!1}function D(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function E(a,b){a._final(function(c){b.pendingcb--,c&&w(a,c),b.prefinished=!0,a.emit("prefinish"),F(a,b)})}function F(a,b){var c=D(b);if(c&&(b.prefinished||b.finalCalled||("function"!=typeof a._final||b.destroyed?(b.prefinished=!0,a.emit("prefinish")):(b.pendingcb++,b.finalCalled=!0,r.nextTick(E,a,b))),0===b.pendingcb&&(b.finished=!0,a.emit("finish"),b.autoDestroy))){var d=a._readableState;(!d||d.autoDestroy&&d.endEmitted)&&a.destroy()}return c}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(e=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(a){return!!e.call(this,a)||this===z&&a&&a._writableState instanceof y}})):e=function(a){return a instanceof this},z.prototype.pipe=function(){w(this,new q)},z.prototype.write=function(a,b,c){var d,e,f,g,i,k,l,m=this._writableState,o=!1,p=!m.objectMode&&(d=a,h.isBuffer(d)||d instanceof j);return(p&&!h.isBuffer(a)&&(e=a,a=h.from(e)),"function"==typeof b&&(c=b,b=null),p?b="buffer":b||(b=m.defaultEncoding),"function"!=typeof c&&(c=x),m.ending)?(f=c,w(this,g=new u),r.nextTick(f,g)):(p||(i=a,k=c,null===i?l=new t:"string"==typeof i||m.objectMode||(l=new n("chunk",["string","Buffer"],i)),!l||(w(this,l),r.nextTick(k,l),0)))&&(m.pendingcb++,o=function(a,b,c,d,e,f){if(!c){var g,i,j=(g=d,i=e,b.objectMode||!1===b.decodeStrings||"string"!=typeof g||(g=h.from(g,i)),g);d!==j&&(c=!0,e="buffer",d=j)}var k=b.objectMode?1:d.length;b.length+=k;var l=b.length<b.highWaterMark;if(l||(b.needDrain=!0),b.writing||b.corked){var m=b.lastBufferedRequest;b.lastBufferedRequest={chunk:d,encoding:e,isBuf:c,callback:f,next:null},m?m.next=b.lastBufferedRequest:b.bufferedRequest=b.lastBufferedRequest,b.bufferedRequestCount+=1}else A(a,b,!1,k,d,e,f);return l}(this,m,p,a,b,c)),o},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.bufferProcessing||!a.bufferedRequest||C(this,a))},z.prototype.setDefaultEncoding=function(a){if("string"==typeof a&&(a=a.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((a+"").toLowerCase())>-1))throw new v(a);return this._writableState.defaultEncoding=a,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),z.prototype._write=function(a,b,c){c(new o("_write()"))},z.prototype._writev=null,z.prototype.end=function(a,b,c){var d,e,f,g=this._writableState;return"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!=a&&this.write(a,b),g.corked&&(g.corked=1,this.uncork()),g.ending||(d=this,e=g,f=c,e.ending=!0,F(d,e),f&&(e.finished?r.nextTick(f):d.once("finish",f)),e.ended=!0,d.writable=!1),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(a){this._writableState&&(this._writableState.destroyed=a)}}),z.prototype.destroy=k.destroy,z.prototype._undestroy=k.undestroy,z.prototype._destroy=function(a,b){b(a)}}),hK=z((a,b)=>{gL();var c=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};b.exports=i;var d=hQ(),e=hJ();bt()(i,d);for(var f=c(e.prototype),g=0;g<f.length;g++){var h=f[g];i.prototype[h]||(i.prototype[h]=e.prototype[h])}function i(a){if(!(this instanceof i))return new i(a);d.call(this,a),e.call(this,a),this.allowHalfOpen=!0,a&&(!1===a.readable&&(this.readable=!1),!1===a.writable&&(this.writable=!1),!1===a.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",j)))}function j(){this._writableState.ended||r.nextTick(k,this)}function k(a){a.end()}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(a){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=a,this._writableState.destroyed=a)}})}),hL=z((a,b)=>{var c=gP(),d=c.Buffer;function e(a,b){for(var c in a)b[c]=a[c]}function f(a,b,c){return d(a,b,c)}d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?b.exports=c:(e(c,a),a.Buffer=f),e(d,f),f.from=function(a,b,c){if("number"==typeof a)throw TypeError("Argument must not be a number");return d(a,b,c)},f.alloc=function(a,b,c){if("number"!=typeof a)throw TypeError("Argument must be a number");var e=d(a);return void 0!==b?"string"==typeof c?e.fill(b,c):e.fill(b):e.fill(0),e},f.allocUnsafe=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return d(a)},f.allocUnsafeSlow=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return c.SlowBuffer(a)}}),hM=z(a=>{var b=hL().Buffer,c=b.isEncoding||function(a){switch((a=""+a)&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function d(a){var d;switch(this.encoding=function(a){var d=function(a){var b;if(!a)return"utf8";for(;;)switch(a){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return a;default:if(b)return;a=(""+a).toLowerCase(),b=!0}}(a);if("string"!=typeof d&&(b.isEncoding===c||!c(a)))throw Error("Unknown encoding: "+a);return d||a}(a),this.encoding){case"utf16le":this.text=g,this.end=h,d=4;break;case"utf8":this.fillLast=f,d=4;break;case"base64":this.text=i,this.end=j,d=3;break;default:this.write=k,this.end=l;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(d)}function e(a){return a<=127?0:a>>5==6?2:a>>4==14?3:a>>3==30?4:a>>6==2?-1:-2}function f(a){var b=this.lastTotal-this.lastNeed,c=function(a,b){if((192&b[0])!=128)return a.lastNeed=0,"�";if(a.lastNeed>1&&b.length>1){if((192&b[1])!=128)return a.lastNeed=1,"�";if(a.lastNeed>2&&b.length>2&&(192&b[2])!=128)return a.lastNeed=2,"�"}}(this,a);return void 0!==c?c:this.lastNeed<=a.length?(a.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(a.copy(this.lastChar,b,0,a.length),this.lastNeed-=a.length)}function g(a,b){if((a.length-b)%2==0){var c=a.toString("utf16le",b);if(c){var d=c.charCodeAt(c.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",b,a.length-1)}function h(a){var b=a&&a.length?this.write(a):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,c)}return b}function i(a,b){var c=(a.length-b)%3;return 0===c?a.toString("base64",b):(this.lastNeed=3-c,this.lastTotal=3,1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",b,a.length-c))}function j(a){var b=a&&a.length?this.write(a):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function k(a){return a.toString(this.encoding)}function l(a){return a&&a.length?this.write(a):""}a.StringDecoder=d,d.prototype.write=function(a){var b,c;if(0===a.length)return"";if(this.lastNeed){if(void 0===(b=this.fillLast(a)))return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c<a.length?b?b+this.text(a,c):this.text(a,c):b||""},d.prototype.end=function(a){var b=a&&a.length?this.write(a):"";return this.lastNeed?b+"�":b},d.prototype.text=function(a,b){var c=function(a,b,c){var d=b.length-1;if(d<c)return 0;var f=e(b[d]);return f>=0?(f>0&&(a.lastNeed=f-1),f):--d<c||-2===f?0:(f=e(b[d]))>=0?(f>0&&(a.lastNeed=f-2),f):--d<c||-2===f?0:(f=e(b[d]))>=0?(f>0&&(2===f?f=0:a.lastNeed=f-3),f):0}(this,a,b);if(!this.lastNeed)return a.toString("utf8",b);this.lastTotal=c;var d=a.length-(c-this.lastNeed);return a.copy(this.lastChar,0,d),a.toString("utf8",b,d)},d.prototype.fillLast=function(a){if(this.lastNeed<=a.length)return a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),this.lastNeed-=a.length}}),hN=z((a,b)=>{var c=hG().codes.ERR_STREAM_PREMATURE_CLOSE;function d(){}b.exports=function a(b,e,f){if("function"==typeof e)return a(b,null,e);e||(e={}),g=f||d,h=!1,f=function(){if(!h){h=!0;for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];g.apply(this,b)}};var g,h,i=e.readable||!1!==e.readable&&b.readable,j=e.writable||!1!==e.writable&&b.writable,k=function(){b.writable||m()},l=b._writableState&&b._writableState.finished,m=function(){j=!1,l=!0,i||f.call(b)},n=b._readableState&&b._readableState.endEmitted,o=function(){i=!1,n=!0,j||f.call(b)},p=function(a){f.call(b,a)},q=function(){var a;return i&&!n?(b._readableState&&b._readableState.ended||(a=new c),f.call(b,a)):j&&!l?(b._writableState&&b._writableState.ended||(a=new c),f.call(b,a)):void 0},r=function(){b.req.on("finish",m)};return b.setHeader&&"function"==typeof b.abort?(b.on("complete",m),b.on("abort",q),b.req?r():b.on("request",r)):j&&!b._writableState&&(b.on("end",k),b.on("close",k)),b.on("end",o),b.on("finish",m),!1!==e.error&&b.on("error",p),b.on("close",q),function(){b.removeListener("complete",m),b.removeListener("abort",q),b.removeListener("request",r),b.req&&b.req.removeListener("finish",m),b.removeListener("end",k),b.removeListener("close",k),b.removeListener("finish",m),b.removeListener("end",o),b.removeListener("error",p),b.removeListener("close",q)}}}),hO=z((a,b)=>{function c(a,b,c){var d;return(b="symbol"==typeof(d=function(a,b){if("object"!=typeof a||null===a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=typeof d)return d;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}(b,"string"))?d:String(d))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}gL();var d,e=hN(),f=Symbol("lastResolve"),g=Symbol("lastReject"),h=Symbol("error"),i=Symbol("ended"),j=Symbol("lastPromise"),k=Symbol("handlePromise"),l=Symbol("stream");function m(a,b){return{value:a,done:b}}function n(a){var b=a[f];if(null!==b){var c=a[l].read();null!==c&&(a[j]=null,a[f]=null,a[g]=null,b(m(c,!1)))}}function o(a){r.nextTick(n,a)}var p=Object.getPrototypeOf(function(){}),q=Object.setPrototypeOf((c(d={get stream(){return this[l]},next:function(){var a,b,c=this,d=this[h];if(null!==d)return Promise.reject(d);if(this[i])return Promise.resolve(m(void 0,!0));if(this[l].destroyed)return new Promise(function(a,b){r.nextTick(function(){c[h]?b(c[h]):a(m(void 0,!0))})});var e=this[j];if(e)b=new Promise((a=this,function(b,c){e.then(function(){a[i]?b(m(void 0,!0)):a[k](b,c)},c)}));else{var f=this[l].read();if(null!==f)return Promise.resolve(m(f,!1));b=new Promise(this[k])}return this[j]=b,b}},Symbol.asyncIterator,function(){return this}),c(d,"return",function(){var a=this;return new Promise(function(b,c){a[l].destroy(null,function(a){a?c(a):b(m(void 0,!0))})})}),d),p);b.exports=function(a){var b,d=Object.create(q,(c(b={},l,{value:a,writable:!0}),c(b,f,{value:null,writable:!0}),c(b,g,{value:null,writable:!0}),c(b,h,{value:null,writable:!0}),c(b,i,{value:a._readableState.endEmitted,writable:!0}),c(b,k,{value:function(a,b){var c=d[l].read();c?(d[j]=null,d[f]=null,d[g]=null,a(m(c,!1))):(d[f]=a,d[g]=b)},writable:!0}),b));return d[j]=null,e(a,function(a){if(a&&"ERR_STREAM_PREMATURE_CLOSE"!==a.code){var b=d[g];null!==b&&(d[j]=null,d[f]=null,d[g]=null,b(a)),d[h]=a;return}var c=d[f];null!==c&&(d[j]=null,d[f]=null,d[g]=null,c(m(void 0,!0))),d[i]=!0}),a.on("readable",o.bind(null,d)),d}}),hP=z((a,b)=>{b.exports=function(){throw Error("Readable.from is not available in the browser")}}),hQ=z((a,b)=>{gD(),gL(),b.exports=z,z.ReadableState=y,gC().EventEmitter;var c,d,e,f,g,h=function(a,b){return a.listeners(b).length},j=gM(),k=gP().Buffer,l=(void 0!==i?i:"u">typeof self?self:{}).Uint8Array||function(){},m=hD();d=m&&m.debuglog?m.debuglog("stream"):function(){};var n=hE(),o=hF(),p=hH().getHighWaterMark,q=hG().codes,s=q.ERR_INVALID_ARG_TYPE,t=q.ERR_STREAM_PUSH_AFTER_EOF,u=q.ERR_METHOD_NOT_IMPLEMENTED,v=q.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;bt()(z,j);var w=o.errorOrDestroy,x=["error","close","destroy","pause","resume"];function y(a,b,d){c=c||hK(),a=a||{},"boolean"!=typeof d&&(d=b instanceof c),this.objectMode=!!a.objectMode,d&&(this.objectMode=this.objectMode||!!a.readableObjectMode),this.highWaterMark=p(this,a,"readableHighWaterMark",d),this.buffer=new n,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==a.emitClose,this.autoDestroy=!!a.autoDestroy,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(e||(e=hM().StringDecoder),this.decoder=new e(a.encoding),this.encoding=a.encoding)}function z(a){if(c=c||hK(),!(this instanceof z))return new z(a);var b=this instanceof c;this._readableState=new y(a,this,b),this.readable=!0,a&&("function"==typeof a.read&&(this._read=a.read),"function"==typeof a.destroy&&(this._destroy=a.destroy)),j.call(this)}function A(a,b,c,e,f){d("readableAddChunk",b);var g,h,i=a._readableState;if(null===b)i.reading=!1,function(a,b){if(d("onEofChunk"),!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,b.sync?D(a):(b.needReadable=!1,b.emittedReadable||(b.emittedReadable=!0,E(a)))}}(a,i);else if(f||(h=function(a,b){var c;return k.isBuffer(b)||b instanceof l||"string"==typeof b||void 0===b||a.objectMode||(c=new s("chunk",["string","Buffer","Uint8Array"],b)),c}(i,b)),h)w(a,h);else if(i.objectMode||b&&b.length>0)if("string"==typeof b||i.objectMode||Object.getPrototypeOf(b)===k.prototype||(g=b,b=k.from(g)),e)i.endEmitted?w(a,new v):B(a,i,b,!0);else if(i.ended)w(a,new t);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!c?(b=i.decoder.write(b),i.objectMode||0!==b.length?B(a,i,b,!1):F(a,i)):B(a,i,b,!1)}else e||(i.reading=!1,F(a,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function B(a,b,c,d){b.flowing&&0===b.length&&!b.sync?(b.awaitDrain=0,a.emit("data",c)):(b.length+=b.objectMode?1:c.length,d?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&D(a)),F(a,b)}function C(a,b){var c;if(a<=0||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!=a)if(b.flowing&&b.length)return b.buffer.head.data.length;else return b.length;return(a>b.highWaterMark&&((c=a)>=0x40000000?c=0x40000000:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++),b.highWaterMark=c),a<=b.length)?a:b.ended?b.length:(b.needReadable=!0,0)}function D(a){var b=a._readableState;d("emitReadable",b.needReadable,b.emittedReadable),b.needReadable=!1,b.emittedReadable||(d("emitReadable",b.flowing),b.emittedReadable=!0,r.nextTick(E,a))}function E(a){var b=a._readableState;d("emitReadable_",b.destroyed,b.length,b.ended),!b.destroyed&&(b.length||b.ended)&&(a.emit("readable"),b.emittedReadable=!1),b.needReadable=!b.flowing&&!b.ended&&b.length<=b.highWaterMark,K(a)}function F(a,b){b.readingMore||(b.readingMore=!0,r.nextTick(G,a,b))}function G(a,b){for(;!b.reading&&!b.ended&&(b.length<b.highWaterMark||b.flowing&&0===b.length);){var c=b.length;if(d("maybeReadMore read 0"),a.read(0),c===b.length)break}b.readingMore=!1}function H(a){var b=a._readableState;b.readableListening=a.listenerCount("readable")>0,b.resumeScheduled&&!b.paused?b.flowing=!0:a.listenerCount("data")>0&&a.resume()}function I(a){d("readable nexttick read 0"),a.read(0)}function J(a,b){d("resume",b.reading),b.reading||a.read(0),b.resumeScheduled=!1,a.emit("resume"),K(a),b.flowing&&!b.reading&&a.read(0)}function K(a){var b=a._readableState;for(d("flow",b.flowing);b.flowing&&null!==a.read(););}function L(a,b){var c;return 0===b.length?null:(b.objectMode?c=b.buffer.shift():!a||a>=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.first():b.buffer.concat(b.length),b.buffer.clear()):c=b.buffer.consume(a,b.decoder),c)}function M(a){var b=a._readableState;d("endReadable",b.endEmitted),b.endEmitted||(b.ended=!0,r.nextTick(N,b,a))}function N(a,b){if(d("endReadableNT",a.endEmitted,a.length),!a.endEmitted&&0===a.length&&(a.endEmitted=!0,b.readable=!1,b.emit("end"),a.autoDestroy)){var c=b._writableState;(!c||c.autoDestroy&&c.finished)&&b.destroy()}}function O(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return -1}Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(a){this._readableState&&(this._readableState.destroyed=a)}}),z.prototype.destroy=o.destroy,z.prototype._undestroy=o.undestroy,z.prototype._destroy=function(a,b){b(a)},z.prototype.push=function(a,b){var c,d=this._readableState;return d.objectMode?c=!0:"string"==typeof a&&((b=b||d.defaultEncoding)!==d.encoding&&(a=k.from(a,b),b=""),c=!0),A(this,a,b,!1,c)},z.prototype.unshift=function(a){return A(this,a,null,!0,!1)},z.prototype.isPaused=function(){return!1===this._readableState.flowing},z.prototype.setEncoding=function(a){e||(e=hM().StringDecoder);var b=new e(a);this._readableState.decoder=b,this._readableState.encoding=this._readableState.decoder.encoding;for(var c=this._readableState.buffer.head,d="";null!==c;)d+=b.write(c.data),c=c.next;return this._readableState.buffer.clear(),""!==d&&this._readableState.buffer.push(d),this._readableState.length=d.length,this},z.prototype.read=function(a){d("read",a),a=parseInt(a,10);var b,c=this._readableState,e=a;if(0!==a&&(c.emittedReadable=!1),0===a&&c.needReadable&&((0!==c.highWaterMark?c.length>=c.highWaterMark:c.length>0)||c.ended))return d("read: emitReadable",c.length,c.ended),0===c.length&&c.ended?M(this):D(this),null;if(0===(a=C(a,c))&&c.ended)return 0===c.length&&M(this),null;var f=c.needReadable;return d("need readable",f),(0===c.length||c.length-a<c.highWaterMark)&&d("length less than watermark",f=!0),c.ended||c.reading?d("reading or ended",f=!1):f&&(d("do read"),c.reading=!0,c.sync=!0,0===c.length&&(c.needReadable=!0),this._read(c.highWaterMark),c.sync=!1,c.reading||(a=C(e,c))),null===(b=a>0?L(a,c):null)?(c.needReadable=c.length<=c.highWaterMark,a=0):(c.length-=a,c.awaitDrain=0),0===c.length&&(c.ended||(c.needReadable=!0),e!==a&&c.ended&&M(this)),null!==b&&this.emit("data",b),b},z.prototype._read=function(a){w(this,new u("_read()"))},z.prototype.pipe=function(a,b){var c,e=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=a;break;case 1:f.pipes=[f.pipes,a];break;default:f.pipes.push(a)}f.pipesCount+=1,d("pipe count=%d opts=%j",f.pipesCount,b);var g=b&&!1===b.end||a===r.stdout||a===r.stderr?p:i;function i(){d("onend"),a.end()}f.endEmitted?r.nextTick(g):e.once("end",g),a.on("unpipe",function b(c,g){d("onunpipe"),c===e&&g&&!1===g.hasUnpiped&&(g.hasUnpiped=!0,d("cleanup"),a.removeListener("close",n),a.removeListener("finish",o),a.removeListener("drain",j),a.removeListener("error",m),a.removeListener("unpipe",b),e.removeListener("end",i),e.removeListener("end",p),e.removeListener("data",l),k=!0,f.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&j())});var j=(c=e,function(){var a=c._readableState;d("pipeOnDrain",a.awaitDrain),a.awaitDrain&&a.awaitDrain--,0===a.awaitDrain&&h(c,"data")&&(a.flowing=!0,K(c))});a.on("drain",j);var k=!1;function l(b){d("ondata");var c=a.write(b);d("dest.write",c),!1===c&&((1===f.pipesCount&&f.pipes===a||f.pipesCount>1&&-1!==O(f.pipes,a))&&!k&&(d("false write response, pause",f.awaitDrain),f.awaitDrain++),e.pause())}function m(b){d("onerror",b),p(),a.removeListener("error",m),0===h(a,"error")&&w(a,b)}function n(){a.removeListener("finish",o),p()}function o(){d("onfinish"),a.removeListener("close",n),p()}function p(){d("unpipe"),e.unpipe(a)}return e.on("data",l),!function(a,b,c){if("function"==typeof a.prependListener)return a.prependListener(b,c);a._events&&a._events[b]?Array.isArray(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]]:a.on(b,c)}(a,"error",m),a.once("close",n),a.once("finish",o),a.emit("pipe",e),f.flowing||(d("pipe resume"),e.resume()),a},z.prototype.unpipe=function(a){var b=this._readableState,c={hasUnpiped:!1};if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes||(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this,c)),this;if(!a){var d=b.pipes,e=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var f=0;f<e;f++)d[f].emit("unpipe",this,{hasUnpiped:!1});return this}var g=O(b.pipes,a);return -1===g||(b.pipes.splice(g,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this,c)),this},z.prototype.on=function(a,b){var c=j.prototype.on.call(this,a,b),e=this._readableState;return"data"===a?(e.readableListening=this.listenerCount("readable")>0,!1!==e.flowing&&this.resume()):"readable"!==a||e.endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.flowing=!1,e.emittedReadable=!1,d("on readable",e.length,e.reading),e.length?D(this):e.reading||r.nextTick(I,this)),c},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(a,b){var c=j.prototype.removeListener.call(this,a,b);return"readable"===a&&r.nextTick(H,this),c},z.prototype.removeAllListeners=function(a){var b=j.prototype.removeAllListeners.apply(this,arguments);return("readable"===a||void 0===a)&&r.nextTick(H,this),b},z.prototype.resume=function(){var a,b,c=this._readableState;return c.flowing||(d("resume"),c.flowing=!c.readableListening,a=this,(b=c).resumeScheduled||(b.resumeScheduled=!0,r.nextTick(J,a,b))),c.paused=!1,this},z.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},z.prototype.wrap=function(a){var b=this,c=this._readableState,e=!1;for(var f in a.on("end",function(){if(d("wrapped end"),c.decoder&&!c.ended){var a=c.decoder.end();a&&a.length&&b.push(a)}b.push(null)}),a.on("data",function(f){d("wrapped data"),c.decoder&&(f=c.decoder.write(f)),c.objectMode&&null==f||(c.objectMode||f&&f.length)&&(b.push(f)||(e=!0,a.pause()))}),a)void 0===this[f]&&"function"==typeof a[f]&&(this[f]=function(b){return function(){return a[b].apply(a,arguments)}}(f));for(var g=0;g<x.length;g++)a.on(x[g],this.emit.bind(this,x[g]));return this._read=function(b){d("wrapped _read",b),e&&(e=!1,a.resume())},this},"function"==typeof Symbol&&(z.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=hO()),f(this)}),Object.defineProperty(z.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(z.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(z.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(a){this._readableState&&(this._readableState.flowing=a)}}),z._fromList=L,Object.defineProperty(z.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(z.from=function(a,b){return void 0===g&&(g=hP()),g(z,a,b)})}),hR=z((a,b)=>{b.exports=j;var c=hG().codes,d=c.ERR_METHOD_NOT_IMPLEMENTED,e=c.ERR_MULTIPLE_CALLBACK,f=c.ERR_TRANSFORM_ALREADY_TRANSFORMING,g=c.ERR_TRANSFORM_WITH_LENGTH_0,h=hK();function i(a,b){var c=this._transformState;c.transforming=!1;var d=c.writecb;if(null===d)return this.emit("error",new e);c.writechunk=null,c.writecb=null,null!=b&&this.push(b),d(a);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function j(a){if(!(this instanceof j))return new j(a);h.call(this,a),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&("function"==typeof a.transform&&(this._transform=a.transform),"function"==typeof a.flush&&(this._flush=a.flush)),this.on("prefinish",k)}function k(){var a=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(b,c){l(a,b,c)})}function l(a,b,c){if(b)return a.emit("error",b);if(null!=c&&a.push(c),a._writableState.length)throw new g;if(a._transformState.transforming)throw new f;return a.push(null)}bt()(j,h),j.prototype.push=function(a,b){return this._transformState.needTransform=!1,h.prototype.push.call(this,a,b)},j.prototype._transform=function(a,b,c){c(new d("_transform()"))},j.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},j.prototype._read=function(a){var b=this._transformState;null===b.writechunk||b.transforming?b.needTransform=!0:(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform))},j.prototype._destroy=function(a,b){h.prototype._destroy.call(this,a,function(a){b(a)})}}),hS=z((a,b)=>{b.exports=d;var c=hR();function d(a){if(!(this instanceof d))return new d(a);c.call(this,a)}bt()(d,c),d.prototype._transform=function(a,b,c){c(null,a)}}),hT=z((a,b)=>{var c,d=hG().codes,e=d.ERR_MISSING_ARGS,f=d.ERR_STREAM_DESTROYED;function g(a){if(a)throw a}function h(a){a()}function i(a,b){return a.pipe(b)}b.exports=function(){for(var a,b,d=arguments.length,j=Array(d),k=0;k<d;k++)j[k]=arguments[k];var l=(a=j).length&&"function"==typeof a[a.length-1]?a.pop():g;if(Array.isArray(j[0])&&(j=j[0]),j.length<2)throw new e("streams");var m=j.map(function(a,d){var e,g,i,k,n,o,p=d<j.length-1;return e=d>0,i=g=function(a){b||(b=a),a&&m.forEach(h),p||(m.forEach(h),l(b))},k=!1,g=function(){k||(k=!0,i.apply(void 0,arguments))},n=!1,a.on("close",function(){n=!0}),void 0===c&&(c=hN()),c(a,{readable:p,writable:e},function(a){if(a)return g(a);n=!0,g()}),o=!1,function(b){if(!n&&!o){if(o=!0,a.setHeader&&"function"==typeof a.abort)return a.abort();if("function"==typeof a.destroy)return a.destroy();g(b||new f("pipe"))}}});return j.reduce(i)}}),hU=z((a,b)=>{b.exports=d;var c=gC().EventEmitter;function d(){c.call(this)}bt()(d,c),d.Readable=hQ(),d.Writable=hJ(),d.Duplex=hK(),d.Transform=hR(),d.PassThrough=hS(),d.finished=hN(),d.pipeline=hT(),d.Stream=d,d.prototype.pipe=function(a,b){var d=this;function e(b){a.writable&&!1===a.write(b)&&d.pause&&d.pause()}function f(){d.readable&&d.resume&&d.resume()}d.on("data",e),a.on("drain",f),a._isStdio||b&&!1===b.end||(d.on("end",h),d.on("close",i));var g=!1;function h(){g||(g=!0,a.end())}function i(){g||(g=!0,"function"==typeof a.destroy&&a.destroy())}function j(a){if(k(),0===c.listenerCount(this,"error"))throw a}function k(){d.removeListener("data",e),a.removeListener("drain",f),d.removeListener("end",h),d.removeListener("close",i),d.removeListener("error",j),a.removeListener("error",j),d.removeListener("end",k),d.removeListener("close",k),a.removeListener("close",k)}return d.on("error",j),a.on("error",j),d.on("end",k),d.on("close",k),a.on("close",k),a.emit("pipe",d),a}}),hV=z((b,c)=>{gD(),gL(),function(d){if("object"==typeof b&&void 0!==c)c.exports=d();else if("function"==typeof define&&define.amd){let b;void 0!==(b=d())&&a.v(b)}else(void 0!==i?i:"u">typeof self?self:this).JSZip=d()}(function(){return(function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof B&&B;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){return e(b[g][1][a]||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof B&&B,g=0;g<d.length;g++)e(d[g]);return e})({1:[function(a,b,c){var d=a("./utils"),e=a("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(a){for(var b,c,e,g,h,i,j,k=[],l=0,m=a.length,n=m,o="string"!==d.getTypeOf(a);l<a.length;)n=m-l,e=o?(b=a[l++],c=l<m?a[l++]:0,l<m?a[l++]:0):(b=a.charCodeAt(l++),c=l<m?a.charCodeAt(l++):0,l<m?a.charCodeAt(l++):0),g=b>>2,h=(3&b)<<4|c>>4,i=1<n?(15&c)<<2|e>>6:64,j=2<n?63&e:64,k.push(f.charAt(g)+f.charAt(h)+f.charAt(i)+f.charAt(j));return k.join("")},c.decode=function(a){var b,c,d,g,h,i,j=0,k=0,l="data:";if(a.substr(0,l.length)===l)throw Error("Invalid base64 input, it looks like a data url.");var m,n=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===f.charAt(64)&&n--,a.charAt(a.length-2)===f.charAt(64)&&n--,n%1!=0)throw Error("Invalid base64 input, bad content length.");for(m=e.uint8array?new Uint8Array(0|n):Array(0|n);j<a.length;)b=f.indexOf(a.charAt(j++))<<2|(g=f.indexOf(a.charAt(j++)))>>4,c=(15&g)<<4|(h=f.indexOf(a.charAt(j++)))>>2,d=(3&h)<<6|(i=f.indexOf(a.charAt(j++))),m[k++]=b,64!==h&&(m[k++]=c),64!==i&&(m[k++]=d);return m}},{"./support":30,"./utils":32}],2:[function(a,b,c){var d=a("./external"),e=a("./stream/DataWorker"),f=a("./stream/Crc32Probe"),g=a("./stream/DataLengthProbe");function h(a,b,c,d,e){this.compressedSize=a,this.uncompressedSize=b,this.crc32=c,this.compression=d,this.compressedContent=e}h.prototype={getContentWorker:function(){var a=new e(d.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),b=this;return a.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){return new e(d.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(a,b,c){return a.pipe(new f).pipe(new g("uncompressedSize")).pipe(b.compressWorker(c)).pipe(new g("compressedSize")).withStreamInfo("compression",b)},b.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,b,c){var d=a("./stream/GenericWorker");c.STORE={magic:"\0\0",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},c.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,b,c){var d=a("./utils"),e=function(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?0xedb88320^a>>>1:a>>>1;b[c]=a}return b}();b.exports=function(a,b){return void 0!==a&&a.length?"string"!==d.getTypeOf(a)?function(a,b,c){var d=0+c;a^=-1;for(var f=0;f<d;f++)a=a>>>8^e[255&(a^b[f])];return -1^a}(0|b,a,a.length):function(a,b,c){var d=0+c;a^=-1;for(var f=0;f<d;f++)a=a>>>8^e[255&(a^b.charCodeAt(f))];return -1^a}(0|b,a,a.length):0}},{"./utils":32}],5:[function(a,b,c){c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!0,c.date=null,c.compression=null,c.compressionOptions=null,c.comment=null,c.unixPermissions=null,c.dosPermissions=null},{}],6:[function(a,b,c){b.exports={Promise:"u">typeof Promise?Promise:a("lie")}},{lie:37}],7:[function(a,b,c){var d="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Uint32Array,e=a("pako"),f=a("./utils"),g=a("./stream/GenericWorker"),h=d?"uint8array":"array";function i(a,b){g.call(this,"FlateWorker/"+a),this._pako=null,this._pakoAction=a,this._pakoOptions=b,this.meta={}}c.magic="\b\0",f.inherits(i,g),i.prototype.processChunk=function(a){this.meta=a.meta,null===this._pako&&this._createPako(),this._pako.push(f.transformTo(h,a.data),!1)},i.prototype.flush=function(){g.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},i.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var a=this;this._pako.onData=function(b){a.push({data:b,meta:a.meta})}},c.compressWorker=function(a){return new i("Deflate",a)},c.uncompressWorker=function(){return new i("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,b,c){function d(a,b){var c,d="";for(c=0;c<b;c++)d+=String.fromCharCode(255&a),a>>>=8;return d}function e(a,b,c,e,g,k){var l,m,n,o,p=a.file,q=a.compression,r=k!==h.utf8encode,s=f.transformTo("string",k(p.name)),t=f.transformTo("string",h.utf8encode(p.name)),u=p.comment,v=f.transformTo("string",k(u)),w=f.transformTo("string",h.utf8encode(u)),x=t.length!==p.name.length,y=w.length!==u.length,z="",A="",B="",C=p.dir,D=p.date,E={crc32:0,compressedSize:0,uncompressedSize:0};b&&!c||(E.crc32=a.crc32,E.compressedSize=a.compressedSize,E.uncompressedSize=a.uncompressedSize);var F=0;b&&(F|=8),!r&&(x||y)&&(F|=2048);var G=0,H=0;C&&(G|=16),"UNIX"===g?(H=798,G|=(l=p.unixPermissions,m=l,l||(m=C?16893:33204),(65535&m)<<16)):(H=20,G|=63&(p.dosPermissions||0)),n=(D.getUTCHours()<<6|D.getUTCMinutes())<<5|D.getUTCSeconds()/2,o=(D.getUTCFullYear()-1980<<4|D.getUTCMonth()+1)<<5|D.getUTCDate(),x&&(A=d(1,1)+d(i(s),4)+t,z+="up"+d(A.length,2)+A),y&&(B=d(1,1)+d(i(v),4)+w,z+="uc"+d(B.length,2)+B);var I="";return I+="\n\0",I+=d(F,2),I+=q.magic,I+=d(n,2),I+=d(o,2),I+=d(E.crc32,4),I+=d(E.compressedSize,4),I+=d(E.uncompressedSize,4),I+=d(s.length,2),I+=d(z.length,2),{fileRecord:j.LOCAL_FILE_HEADER+I+s+z,dirRecord:j.CENTRAL_FILE_HEADER+d(H,2)+I+d(v.length,2)+"\0\0\0\0"+d(G,4)+d(e,4)+s+z+v}}var f=a("../utils"),g=a("../stream/GenericWorker"),h=a("../utf8"),i=a("../crc32"),j=a("../signature");function k(a,b,c,d){g.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=c,this.encodeFileName=d,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(k,g),k.prototype.push=function(a){var b=a.meta.percent||0,c=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,g.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:c?(b+100*(c-d-1))/c:100}}))},k.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var b=this.streamFiles&&!a.file.dir;if(b){var c=e(a,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(a){this.accumulate=!1;var b=this.streamFiles&&!a.file.dir,c=e(a,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),b)this.push({data:j.DATA_DESCRIPTOR+d(a.crc32,4)+d(a.compressedSize,4)+d(a.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var a,b,c,e,g=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var i=this.bytesWritten-g,k=(a=this.dirRecords.length,b=this.zipComment,c=this.encodeFileName,e=f.transformTo("string",c(b)),j.CENTRAL_DIRECTORY_END+"\0\0\0\0"+d(a,2)+d(a,2)+d(i,4)+d(g,4)+d(e.length,2)+e);this.push({data:k,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(a){this._sources.push(a);var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),a.on("error",function(a){b.error(a)}),this},k.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(a){var b=this._sources;if(!g.prototype.error.call(this,a))return!1;for(var c=0;c<b.length;c++)try{b[c].error(a)}catch(a){}return!0},k.prototype.lock=function(){g.prototype.lock.call(this);for(var a=this._sources,b=0;b<a.length;b++)a[b].lock()},b.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,b,c){var d=a("../compressions"),e=a("./ZipFileWorker");c.generateWorker=function(a,b,c){var f=new e(b.streamFiles,c,b.platform,b.encodeFileName),g=0;try{a.forEach(function(a,c){g++;var e=function(a,b){var c=a||b,e=d[c];if(!e)throw Error(c+" is not a valid compression method !");return e}(c.options.compression,b.compression),h=c.options.compressionOptions||b.compressionOptions||{},i=c.dir,j=c.date;c._compressWorker(e,h).withStreamInfo("file",{name:a,dir:i,date:j,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(f)}),f.entriesCount=g}catch(a){f.error(a)}return f}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,b,c){function d(){if(!(this instanceof d))return new d;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new d;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a}}(d.prototype=a("./object")).loadAsync=a("./load"),d.support=a("./support"),d.defaults=a("./defaults"),d.version="3.10.2",d.loadAsync=function(a,b){return new d().loadAsync(a,b)},d.external=a("./external"),b.exports=d},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,b,c){var d=a("./utils"),e=a("./external"),f=a("./utf8"),g=a("./zipEntries"),h=a("./stream/Crc32Probe"),i=a("./nodejsUtils");b.exports=function(a,b){var c=this;return b=d.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),i.isNode&&i.isStream(a)?e.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",a,!0,b.optimizedBinaryString,b.base64).then(function(a){var c=new g(b);return c.load(a),c}).then(function(a){var c=[e.Promise.resolve(a)],d=a.files;if(b.checkCRC32)for(var f=0;f<d.length;f++)c.push(function(a){return new e.Promise(function(b,c){var d=a.decompressed.getContentWorker().pipe(new h);d.on("error",function(a){c(a)}).on("end",function(){d.streamInfo.crc32!==a.decompressed.crc32?c(Error("Corrupted zip : CRC32 mismatch")):b()}).resume()})}(d[f]));return e.Promise.all(c)}).then(function(a){for(var e=a.shift(),f=e.files,g=0;g<f.length;g++){var h=f[g],i=h.fileNameStr,j=d.resolve(h.fileNameStr);c.file(j,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileCommentStr.length?h.fileCommentStr:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:b.createFolders}),h.dir||(c.file(j).unsafeOriginalName=i)}return e.zipComment.length&&(c.comment=e.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,b,c){var d=a("../utils"),e=a("../stream/GenericWorker");function f(a,b){e.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(b)}d.inherits(f,e),f.prototype._bindStream=function(a){var b=this;(this._stream=a).pause(),a.on("data",function(a){b.push({data:a,meta:{percent:0}})}).on("error",function(a){b.isPaused?this.generatedError=a:b.error(a)}).on("end",function(){b.isPaused?b._upstreamEnded=!0:b.end()})},f.prototype.pause=function(){return!!e.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},b.exports=f},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,b,c){var d=a("readable-stream").Readable;function e(a,b,c){d.call(this,b),this._helper=a;var e=this;a.on("data",function(a,b){e.push(a)||e._helper.pause(),c&&c(b)}).on("error",function(a){e.emit("error",a)}).on("end",function(){e.push(null)})}a("../utils").inherits(e,d),e.prototype._read=function(){this._helper.resume()},b.exports=e},{"../utils":32,"readable-stream":16}],14:[function(a,b,c){b.exports={isNode:"u">typeof Buffer,newBufferFrom:function(a,b){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,b);if("number"==typeof a)throw Error('The "data" argument must not be a number');return new Buffer(a,b)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var b=new Buffer(a);return b.fill(0),b},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},{}],15:[function(a,b,c){function d(a,b,c){var d,e=f.getTypeOf(b),h=f.extend(c||{},i);h.date=h.date||new Date,null!==h.compression&&(h.compression=h.compression.toUpperCase()),"string"==typeof h.unixPermissions&&(h.unixPermissions=parseInt(h.unixPermissions,8)),h.unixPermissions&&16384&h.unixPermissions&&(h.dir=!0),h.dosPermissions&&16&h.dosPermissions&&(h.dir=!0),h.dir&&(a=p(a)),h.createFolders&&(d=o(a))&&q.call(this,d,!0);var l="string"===e&&!1===h.binary&&!1===h.base64;c&&void 0!==c.binary||(h.binary=!l),(b instanceof j&&0===b.uncompressedSize||h.dir||!b||0===b.length)&&(h.base64=!1,h.binary=!0,b="",h.compression="STORE",e="string");var r=null;r=b instanceof j||b instanceof g?b:m.isNode&&m.isStream(b)?new n(a,b):f.prepareContent(a,b,h.binary,h.optimizedBinaryString,h.base64);var s=new k(a,r,h);this.files[a]=s}var e=a("./utf8"),f=a("./utils"),g=a("./stream/GenericWorker"),h=a("./stream/StreamHelper"),i=a("./defaults"),j=a("./compressedObject"),k=a("./zipObject"),l=a("./generate"),m=a("./nodejsUtils"),n=a("./nodejs/NodejsStreamInputAdapter"),o=function(a){"/"===a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return 0<b?a.substring(0,b):""},p=function(a){return"/"!==a.slice(-1)&&(a+="/"),a},q=function(a,b){return b=void 0!==b?b:i.createFolders,a=p(a),this.files[a]||d.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]};function r(a){return"[object RegExp]"===Object.prototype.toString.call(a)}b.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(a){var b,c,d;for(b in this.files)d=this.files[b],(c=b.slice(this.root.length,b.length))&&b.slice(0,this.root.length)===this.root&&a(c,d)},filter:function(a){var b=[];return this.forEach(function(c,d){a(c,d)&&b.push(d)}),b},file:function(a,b,c){if(1!=arguments.length)return a=this.root+a,d.call(this,a,b,c),this;if(r(a)){var e=a;return this.filter(function(a,b){return!b.dir&&e.test(a)})}var f=this.files[this.root+a];return f&&!f.dir?f:null},folder:function(a){if(!a)return this;if(r(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,c=q.call(this,b),d=this.clone();return d.root=c.name,d},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!==a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d<c.length;d++)delete this.files[c[d].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(a){var b,c={};try{if((c=f.extend(a||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:e.utf8encode})).type=c.type.toLowerCase(),c.compression=c.compression.toUpperCase(),"binarystring"===c.type&&(c.type="string"),!c.type)throw Error("No output type specified.");f.checkSupport(c.type),"darwin"!==c.platform&&"freebsd"!==c.platform&&"linux"!==c.platform&&"sunos"!==c.platform||(c.platform="UNIX"),"win32"===c.platform&&(c.platform="DOS");var d=c.comment||this.comment||"";b=l.generateWorker(this,c,d)}catch(a){(b=new g("error")).error(a)}return new h(b,c.type||"string",c.mimeType)},generateAsync:function(a,b){return this.generateInternalStream(a).accumulate(b)},generateNodeStream:function(a,b){return(a=a||{}).type||(a.type="nodebuffer"),this.generateInternalStream(a).toNodejsStream(b)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(a,b,c){b.exports=a("stream")},{stream:void 0}],17:[function(a,b,c){var d=a("./DataReader");function e(a){d.call(this,a);for(var b=0;b<this.data.length;b++)a[b]=255&a[b]}a("../utils").inherits(e,d),e.prototype.byteAt=function(a){return this.data[this.zero+a]},e.prototype.lastIndexOfSignature=function(a){for(var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f-this.zero;return -1},e.prototype.readAndCheckSignature=function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.readData(4);return b===f[0]&&c===f[1]&&d===f[2]&&e===f[3]},e.prototype.readData=function(a){if(this.checkOffset(a),0===a)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=e},{"../utils":32,"./DataReader":18}],18:[function(a,b,c){var d=a("../utils");function e(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}e.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},b.exports=e},{"../utils":32}],19:[function(a,b,c){var d=a("./Uint8ArrayReader");function e(a){d.call(this,a)}a("../utils").inherits(e,d),e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=e},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,b,c){var d=a("./DataReader");function e(a){d.call(this,a)}a("../utils").inherits(e,d),e.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},e.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},e.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=e},{"../utils":32,"./DataReader":18}],21:[function(a,b,c){var d=a("./ArrayReader");function e(a){d.call(this,a)}a("../utils").inherits(e,d),e.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},b.exports=e},{"../utils":32,"./ArrayReader":17}],22:[function(a,b,c){var d=a("../utils"),e=a("../support"),f=a("./ArrayReader"),g=a("./StringReader"),h=a("./NodeBufferReader"),i=a("./Uint8ArrayReader");b.exports=function(a){var b=d.getTypeOf(a);return d.checkSupport(b),"string"!==b||e.uint8array?"nodebuffer"===b?new h(a):e.uint8array?new i(d.transformTo("uint8array",a)):new f(d.transformTo("array",a)):new g(a)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,b,c){c.LOCAL_FILE_HEADER="PK\x03\x04",c.CENTRAL_FILE_HEADER="PK\x01\x02",c.CENTRAL_DIRECTORY_END="PK\x05\x06",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",c.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",c.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,b,c){var d=a("./GenericWorker"),e=a("../utils");function f(a){d.call(this,"ConvertWorker to "+a),this.destType=a}e.inherits(f,d),f.prototype.processChunk=function(a){this.push({data:e.transformTo(this.destType,a.data),meta:a.meta})},b.exports=f},{"../utils":32,"./GenericWorker":28}],25:[function(a,b,c){var d=a("./GenericWorker"),e=a("../crc32");function f(){d.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(f,d),f.prototype.processChunk=function(a){this.streamInfo.crc32=e(a.data,this.streamInfo.crc32||0),this.push(a)},b.exports=f},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,b,c){var d=a("../utils"),e=a("./GenericWorker");function f(a){e.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}d.inherits(f,e),f.prototype.processChunk=function(a){if(a){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+a.data.length}e.prototype.processChunk.call(this,a)},b.exports=f},{"../utils":32,"./GenericWorker":28}],27:[function(a,b,c){var d=a("../utils"),e=a("./GenericWorker");function f(a){e.call(this,"DataWorker");var b=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(a){b.dataIsReady=!0,b.data=a,b.max=a&&a.length||0,b.type=d.getTypeOf(a),b.isPaused||b._tickAndRepeat()},function(a){b.error(a)})}d.inherits(f,e),f.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,d.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(d.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,b=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,b);break;case"uint8array":a=this.data.subarray(this.index,b);break;case"array":case"nodebuffer":a=this.data.slice(this.index,b)}return this.index=b,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},b.exports=f},{"../utils":32,"./GenericWorker":28}],28:[function(a,b,c){function d(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}d.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,b){return this._listeners[a].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,b){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,b)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.end()}),a.on("error",function(a){b.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,b){return this.extraStreamInfo[a]=b,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},b.exports=d},{}],29:[function(a,b,c){var d=a("../utils"),e=a("./ConvertWorker"),f=a("./GenericWorker"),g=a("../base64"),h=a("../support"),i=a("../external"),j=null;if(h.nodestream)try{j=a("../nodejs/NodejsStreamOutputAdapter")}catch(a){}function k(a,b,c){var g=b;switch(b){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=b,this._mimeType=c,d.checkSupport(g),this._worker=a.pipe(new e(g)),a.lock()}catch(a){this._worker=new f("error"),this._worker.error(a)}}k.prototype={accumulate:function(a){var b;return b=this,new i.Promise(function(c,e){var f=[],h=b._internalType,i=b._outputType,j=b._mimeType;b.on("data",function(b,c){f.push(b),a&&a(c)}).on("error",function(a){f=[],e(a)}).on("end",function(){try{c(function(a,b,c){switch(a){case"blob":return d.newBlob(d.transformTo("arraybuffer",b),c);case"base64":return g.encode(b);default:return d.transformTo(a,b)}}(i,function(a,b){var c,d=0,e=null,f=0;for(c=0;c<b.length;c++)f+=b[c].length;switch(a){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(e=new Uint8Array(f),c=0;c<b.length;c++)e.set(b[c],d),d+=b[c].length;return e;case"nodebuffer":return Buffer.concat(b);default:throw Error("concat : unsupported type '"+a+"'")}}(h,f),j))}catch(a){e(a)}f=[]}).resume()})},on:function(a,b){var c=this;return"data"===a?this._worker.on(a,function(a){b.call(c,a.data,a.meta)}):this._worker.on(a,function(){d.delay(b,arguments,c)}),this},resume:function(){return d.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(a){if(d.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new j(this,{objectMode:"nodebuffer"!==this._outputType},a)}},b.exports=k},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,b,c){if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer="u">typeof ArrayBuffer&&"u">typeof Uint8Array,c.nodebuffer="u">typeof Buffer,c.uint8array="u">typeof Uint8Array,"u"<typeof ArrayBuffer)c.blob=!1;else{var d=new ArrayBuffer(0);try{c.blob=0===new Blob([d],{type:"application/zip"}).size}catch(a){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(d),c.blob=0===e.getBlob("application/zip").size}catch(a){c.blob=!1}}}try{c.nodestream=!!a("readable-stream").Readable}catch(a){c.nodestream=!1}},{"readable-stream":16}],31:[function(a,b,c){for(var d=a("./utils"),e=a("./support"),f=a("./nodejsUtils"),g=a("./stream/GenericWorker"),h=Array(256),i=0;i<256;i++)h[i]=252<=i?6:248<=i?5:240<=i?4:224<=i?3:192<=i?2:1;function j(){g.call(this,"utf-8 decode"),this.leftOver=null}function k(){g.call(this,"utf-8 encode")}h[254]=h[254]=1,c.utf8encode=function(a){return e.nodebuffer?f.newBufferFrom(a,"utf-8"):function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;f<h;f++)55296==(64512&(c=a.charCodeAt(f)))&&f+1<h&&56320==(64512&(d=a.charCodeAt(f+1)))&&(c=65536+(c-55296<<10)+(d-56320),f++),i+=c<128?1:c<2048?2:c<65536?3:4;for(b=e.uint8array?new Uint8Array(i):Array(i),f=g=0;g<i;f++)55296==(64512&(c=a.charCodeAt(f)))&&f+1<h&&56320==(64512&(d=a.charCodeAt(f+1)))&&(c=65536+(c-55296<<10)+(d-56320),f++),c<128?b[g++]=c:(c<2048?b[g++]=192|c>>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b}(a)},c.utf8decode=function(a){return e.nodebuffer?d.transformTo("nodebuffer",a).toString("utf-8"):function(a){var b,c,e,f,g=a.length,i=Array(2*g);for(b=c=0;b<g;)if((e=a[b++])<128)i[c++]=e;else if(4<(f=h[e]))i[c++]=65533,b+=f-1;else{for(e&=2===f?31:3===f?15:7;1<f&&b<g;)e=e<<6|63&a[b++],f--;1<f?i[c++]=65533:e<65536?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)}(a=d.transformTo(e.uint8array?"uint8array":"array",a))},d.inherits(j,g),j.prototype.processChunk=function(a){var b=d.transformTo(e.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var f=b;(b=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),b.set(f,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var g=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;0<=c&&128==(192&a[c]);)c--;return c<0||0===c?b:c+h[a[c]]>b?c:b}(b),i=b;g!==b.length&&(e.uint8array?(i=b.subarray(0,g),this.leftOver=b.subarray(g,b.length)):(i=b.slice(0,g),this.leftOver=b.slice(g,b.length))),this.push({data:c.utf8decode(i),meta:a.meta})},j.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:c.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},c.Utf8DecodeWorker=j,d.inherits(k,g),k.prototype.processChunk=function(a){this.push({data:c.utf8encode(a.data),meta:a.meta})},c.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,b,c){var d=a("./support"),e=a("./base64"),f=a("./nodejsUtils"),g=a("./external");function h(a){return a}function i(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);return b}a("setimmediate"),c.newBlob=function(a,b){c.checkSupport("blob");try{return new Blob([a],{type:b})}catch(c){try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(a),d.getBlob(b)}catch(a){throw Error("Bug : can't construct the Blob.")}}};var j={stringifyByChunk:function(a,b,c){var d=[],e=0,f=a.length;if(f<=c)return String.fromCharCode.apply(null,a);for(;e<f;)"array"===b||"nodebuffer"===b?d.push(String.fromCharCode.apply(null,a.slice(e,Math.min(e+c,f)))):d.push(String.fromCharCode.apply(null,a.subarray(e,Math.min(e+c,f)))),e+=c;return d.join("")},stringifyByChar:function(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);return b},applyCanBeUsed:{uint8array:function(){try{return d.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(a){return!1}}(),nodebuffer:function(){try{return d.nodebuffer&&1===String.fromCharCode.apply(null,f.allocBuffer(1)).length}catch(a){return!1}}()}};function k(a){var b=65536,d=c.getTypeOf(a),e=!0;if("uint8array"===d?e=j.applyCanBeUsed.uint8array:"nodebuffer"===d&&(e=j.applyCanBeUsed.nodebuffer),e)for(;1<b;)try{return j.stringifyByChunk(a,d,b)}catch(a){b=Math.floor(b/2)}return j.stringifyByChar(a)}function l(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}c.applyFromCharCode=k;var m={};m.string={string:h,array:function(a){return i(a,Array(a.length))},arraybuffer:function(a){return m.string.uint8array(a).buffer},uint8array:function(a){return i(a,new Uint8Array(a.length))},nodebuffer:function(a){return i(a,f.allocBuffer(a.length))}},m.array={string:k,array:h,arraybuffer:function(a){return new Uint8Array(a).buffer},uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return f.newBufferFrom(a)}},m.arraybuffer={string:function(a){return k(new Uint8Array(a))},array:function(a){return l(new Uint8Array(a),Array(a.byteLength))},arraybuffer:h,uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return f.newBufferFrom(new Uint8Array(a))}},m.uint8array={string:k,array:function(a){return l(a,Array(a.length))},arraybuffer:function(a){return a.buffer},uint8array:h,nodebuffer:function(a){return f.newBufferFrom(a)}},m.nodebuffer={string:k,array:function(a){return l(a,Array(a.length))},arraybuffer:function(a){return m.nodebuffer.uint8array(a).buffer},uint8array:function(a){return l(a,new Uint8Array(a.length))},nodebuffer:h},c.transformTo=function(a,b){return(b=b||"",a)?(c.checkSupport(a),m[c.getTypeOf(b)][a](b)):b},c.resolve=function(a){for(var b=a.split("/"),c=[],d=0;d<b.length;d++){var e=b[d];"."===e||""===e&&0!==d&&d!==b.length-1||(".."===e?c.pop():c.push(e))}return c.join("/")},c.getTypeOf=function(a){if("string"==typeof a)return"string";var b=Object.prototype.toString.call(a);return"[object Array]"===b?"array":d.nodebuffer&&f.isBuffer(a)?"nodebuffer":d.uint8array&&"[object Uint8Array]"===b?"uint8array":d.arraybuffer&&"[object ArrayBuffer]"===b?"arraybuffer":void 0},c.checkSupport=function(a){if(!d[a.toLowerCase()])throw Error(a+" is not supported by this platform")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(a){var b,c,d="";for(c=0;c<(a||"").length;c++)d+="\\x"+((b=a.charCodeAt(c))<16?"0":"")+b.toString(16).toUpperCase();return d},c.delay=function(a,b,c){setImmediate(function(){a.apply(c||null,b||[])})},c.inherits=function(a,b){function c(){}c.prototype=b.prototype,a.prototype=new c},c.extend=function(){var a,b,c={};for(a=0;a<arguments.length;a++)for(b in arguments[a])Object.prototype.hasOwnProperty.call(arguments[a],b)&&void 0===c[b]&&(c[b]=arguments[a][b]);return c},c.prepareContent=function(a,b,f,h,j){return g.Promise.resolve(b).then(function(b){return d.blob&&(b instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b)))?void 0!==Blob.prototype.arrayBuffer?b.arrayBuffer():"u">typeof FileReader?new g.Promise(function(a,c){var d=new FileReader;d.onload=function(b){a(b.target.result)},d.onerror=function(a){c(a.target.error)},d.readAsArrayBuffer(b)}):g.Promise.reject(Error(a+" is a Blob, but we have no way of reading it.")):b}).then(function(b){var k,l=c.getTypeOf(b);return l?("arraybuffer"===l?b=c.transformTo("uint8array",b):"string"===l&&(j?b=e.decode(b):f&&!0!==h&&(b=i(k=b,d.uint8array?new Uint8Array(k.length):Array(k.length)))),b):g.Promise.reject(Error("Can't read the data of '"+a+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(a,b,c){var d=a("./reader/readerFor"),e=a("./utils"),f=a("./signature"),g=a("./zipEntry"),h=a("./support");function i(a){this.files=[],this.loadOptions=a}i.prototype={checkSignature:function(a){if(!this.reader.readAndCheckSignature(a)){this.reader.index-=4;var b=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+e.pretty(b)+", expected "+e.pretty(a)+")")}},isSignature:function(a,b){var c=this.reader.index;this.reader.setIndex(a);var d=this.reader.readString(4)===b;return this.reader.setIndex(c),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),b=h.uint8array?"uint8array":"array",c=e.transformTo(b,a);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44;0<d;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readData(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var a,b=0;b<this.files.length;b++)a=this.files[b],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(a=new g({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(a);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(a<0)throw this.isSignature(0,f.LOCAL_FILE_HEADER)?Error("Corrupted zip: can't find end of central directory"):Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(a);var b=a;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===e.MAX_VALUE_16BITS||this.diskWithCentralDirStart===e.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===e.MAX_VALUE_16BITS||this.centralDirRecords===e.MAX_VALUE_16BITS||this.centralDirSize===e.MAX_VALUE_32BITS||this.centralDirOffset===e.MAX_VALUE_32BITS){if(this.zip64=!0,(a=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(a),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=b-c;if(0<d)this.isSignature(b,f.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(a){this.reader=d(a)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},b.exports=i},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(a,b,c){var d=a("./reader/readerFor"),e=a("./utils"),f=a("./compressedObject"),g=a("./crc32"),h=a("./utf8"),i=a("./compressions"),j=a("./support");function k(a,b){this.options=a,this.loadOptions=b}k.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(c),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(b=function(a){for(var b in i)if(Object.prototype.hasOwnProperty.call(i,b)&&i[b].magic===a)return i[b];return null}(this.compressionMethod)))throw Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");a.skip(b),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==a&&(this.dosPermissions=63&this.externalFileAttributes),3==a&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4<e;)b=a.readInt(2),c=a.readInt(2),d=a.readData(c),this.extraFields[b]={id:b,length:c,value:d};a.setIndex(e)},handleUTF8:function(){var a=j.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(null!==b)this.fileNameStr=b;else{var c=e.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(c)}var d=this.findExtraFieldUnicodeComment();if(null!==d)this.fileCommentStr=d;else{var f=e.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=d(a.value);return 1!==b.readInt(1)||g(this.fileName)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=d(a.value);return 1!==b.readInt(1)||g(this.fileComment)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null}},b.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,b,c){function d(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=b,this._dataBinary=c.binary,this.options={compression:c.compression,compressionOptions:c.compressionOptions}}var e=a("./stream/StreamHelper"),f=a("./stream/DataWorker"),g=a("./utf8"),h=a("./compressedObject"),i=a("./stream/GenericWorker");d.prototype={internalStream:function(a){var b=null,c="string";try{if(!a)throw Error("No output type specified.");var d="string"===(c=a.toLowerCase())||"text"===c;"binarystring"!==c&&"text"!==c||(c="string"),b=this._decompressWorker();var f=!this._dataBinary;f&&!d&&(b=b.pipe(new g.Utf8EncodeWorker)),!f&&d&&(b=b.pipe(new g.Utf8DecodeWorker))}catch(a){(b=new i("error")).error(a)}return new e(b,c,"")},async:function(a,b){return this.internalStream(a).accumulate(b)},nodeStream:function(a,b){return this.internalStream(a||"nodebuffer").toNodejsStream(b)},_compressWorker:function(a,b){if(this._data instanceof h&&this._data.compression.magic===a.magic)return this._data.getCompressedWorker();var c=this._decompressWorker();return this._dataBinary||(c=c.pipe(new g.Utf8EncodeWorker)),h.createWorkerFrom(c,a,b)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof i?this._data:new f(this._data)}};for(var j=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l<j.length;l++)d.prototype[j[l]]=k;b.exports=d},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,b,c){(function(a){var c,d,e=a.MutationObserver||a.WebKitMutationObserver;if(e){var f=0,g=new e(k),h=a.document.createTextNode("");g.observe(h,{characterData:!0}),c=function(){h.data=f=++f%2}}else if(a.setImmediate||void 0===a.MessageChannel)c="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var b=a.document.createElement("script");b.onreadystatechange=function(){k(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},a.document.documentElement.appendChild(b)}:function(){setTimeout(k,0)};else{var i=new a.MessageChannel;i.port1.onmessage=k,c=function(){i.port2.postMessage(0)}}var j=[];function k(){var a,b;d=!0;for(var c=j.length;c;){for(b=j,j=[],a=-1;++a<c;)b[a]();c=j.length}d=!1}b.exports=function(a){1!==j.push(a)||d||c()}}).call(this,void 0!==i?i:"u">typeof self?self:{})},{}],37:[function(a,b,c){var d=a("immediate");function e(){}var f={},g=["REJECTED"],h=["FULFILLED"],i=["PENDING"];function j(a){if("function"!=typeof a)throw TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,a!==e&&n(this,a)}function k(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function l(a,b,c){d(function(){var d;try{d=b(c)}catch(b){return f.reject(a,b)}d===a?f.reject(a,TypeError("Cannot resolve promise with itself")):f.resolve(a,d)})}function m(a){var b=a&&a.then;if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof b)return function(){b.apply(a,arguments)}}function n(a,b){var c=!1;function d(b){c||(c=!0,f.reject(a,b))}function e(b){c||(c=!0,f.resolve(a,b))}var g=o(function(){b(e,d)});"error"===g.status&&d(g.value)}function o(a,b){var c={};try{c.value=a(b),c.status="success"}catch(a){c.status="error",c.value=a}return c}(b.exports=j).prototype.finally=function(a){if("function"!=typeof a)return this;var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){throw c})})},j.prototype.catch=function(a){return this.then(null,a)},j.prototype.then=function(a,b){if("function"!=typeof a&&this.state===h||"function"!=typeof b&&this.state===g)return this;var c=new this.constructor(e);return this.state!==i?l(c,this.state===h?a:b,this.outcome):this.queue.push(new k(c,a,b)),c},k.prototype.callFulfilled=function(a){f.resolve(this.promise,a)},k.prototype.otherCallFulfilled=function(a){l(this.promise,this.onFulfilled,a)},k.prototype.callRejected=function(a){f.reject(this.promise,a)},k.prototype.otherCallRejected=function(a){l(this.promise,this.onRejected,a)},f.resolve=function(a,b){var c=o(m,b);if("error"===c.status)return f.reject(a,c.value);var d=c.value;if(d)n(a,d);else{a.state=h,a.outcome=b;for(var e=-1,g=a.queue.length;++e<g;)a.queue[e].callFulfilled(b)}return a},f.reject=function(a,b){a.state=g,a.outcome=b;for(var c=-1,d=a.queue.length;++c<d;)a.queue[c].callRejected(b);return a},j.resolve=function(a){return a instanceof this?a:f.resolve(new this(e),a)},j.reject=function(a){var b=new this(e);return f.reject(b,a)},j.all=function(a){var b=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(TypeError("must be an array"));var c=a.length,d=!1;if(!c)return this.resolve([]);for(var g=Array(c),h=0,i=-1,j=new this(e);++i<c;)!function(a,e){b.resolve(a).then(function(a){g[e]=a,++h!==c||d||(d=!0,f.resolve(j,g))},function(a){d||(d=!0,f.reject(j,a))})}(a[i],i);return j},j.race=function(a){if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(TypeError("must be an array"));var b,c=a.length,d=!1;if(!c)return this.resolve([]);for(var g=-1,h=new this(e);++g<c;)b=a[g],this.resolve(b).then(function(a){d||(d=!0,f.resolve(h,a))},function(a){d||(d=!0,f.reject(h,a))});return h}},{immediate:36}],38:[function(a,b,c){var d={};(0,a("./lib/utils/common").assign)(d,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),b.exports=d},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,b,c){var d=a("./zlib/deflate"),e=a("./utils/common"),f=a("./utils/strings"),g=a("./zlib/messages"),h=a("./zlib/zstream"),i=Object.prototype.toString;function j(a){if(!(this instanceof j))return new j(a);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var c=d.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(0!==c)throw Error(g[c]);if(b.header&&d.deflateSetHeader(this.strm,b.header),b.dictionary){var k="string"==typeof b.dictionary?f.string2buf(b.dictionary):"[object ArrayBuffer]"===i.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary;if(0!==(c=d.deflateSetDictionary(this.strm,k)))throw Error(g[c]);this._dict_set=!0}}function k(a,b){var c=new j(b);if(c.push(a,!0),c.err)throw c.msg||g[c.err];return c.result}j.prototype.push=function(a,b){var c,g,h=this.strm,j=this.options.chunkSize;if(this.ended)return!1;g=b===~~b?b:4*(!0===b),"string"==typeof a?h.input=f.string2buf(a):"[object ArrayBuffer]"===i.call(a)?h.input=new Uint8Array(a):h.input=a,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new e.Buf8(j),h.next_out=0,h.avail_out=j),1!==(c=d.deflate(h,g))&&0!==c)return this.onEnd(c),this.ended=!0,!1;0!==h.avail_out&&(0!==h.avail_in||4!==g&&2!==g)||("string"===this.options.to?this.onData(f.buf2binstring(e.shrinkBuf(h.output,h.next_out))):this.onData(e.shrinkBuf(h.output,h.next_out)))}while((0<h.avail_in||0===h.avail_out)&&1!==c)return 4===g?(c=d.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,0===c):2!==g||(this.onEnd(0),h.avail_out=0,!0)},j.prototype.onData=function(a){this.chunks.push(a)},j.prototype.onEnd=function(a){0===a&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Deflate=j,c.deflate=k,c.deflateRaw=function(a,b){return(b=b||{}).raw=!0,k(a,b)},c.gzip=function(a,b){return(b=b||{}).gzip=!0,k(a,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,b,c){var d=a("./zlib/inflate"),e=a("./utils/common"),f=a("./utils/strings"),g=a("./zlib/constants"),h=a("./zlib/messages"),i=a("./zlib/zstream"),j=a("./zlib/gzheader"),k=Object.prototype.toString;function l(a){if(!(this instanceof l))return new l(a);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&0<=b.windowBits&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(0<=b.windowBits&&b.windowBits<16)||a&&a.windowBits||(b.windowBits+=32),15<b.windowBits&&b.windowBits<48&&0==(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var c=d.inflateInit2(this.strm,b.windowBits);if(c!==g.Z_OK)throw Error(h[c]);this.header=new j,d.inflateGetHeader(this.strm,this.header)}function m(a,b){var c=new l(b);if(c.push(a,!0),c.err)throw c.msg||h[c.err];return c.result}l.prototype.push=function(a,b){var c,h,i,j,l,m,n=this.strm,o=this.options.chunkSize,p=this.options.dictionary,q=!1;if(this.ended)return!1;h=b===~~b?b:!0===b?g.Z_FINISH:g.Z_NO_FLUSH,"string"==typeof a?n.input=f.binstring2buf(a):"[object ArrayBuffer]"===k.call(a)?n.input=new Uint8Array(a):n.input=a,n.next_in=0,n.avail_in=n.input.length;do{if(0===n.avail_out&&(n.output=new e.Buf8(o),n.next_out=0,n.avail_out=o),(c=d.inflate(n,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&p&&(m="string"==typeof p?f.string2buf(p):"[object ArrayBuffer]"===k.call(p)?new Uint8Array(p):p,c=d.inflateSetDictionary(this.strm,m)),c===g.Z_BUF_ERROR&&!0===q&&(c=g.Z_OK,q=!1),c!==g.Z_STREAM_END&&c!==g.Z_OK)return this.onEnd(c),this.ended=!0,!1;n.next_out&&(0!==n.avail_out&&c!==g.Z_STREAM_END&&(0!==n.avail_in||h!==g.Z_FINISH&&h!==g.Z_SYNC_FLUSH)||("string"===this.options.to?(i=f.utf8border(n.output,n.next_out),j=n.next_out-i,l=f.buf2string(n.output,i),n.next_out=j,n.avail_out=o-j,j&&e.arraySet(n.output,n.output,i,j,0),this.onData(l)):this.onData(e.shrinkBuf(n.output,n.next_out)))),0===n.avail_in&&0===n.avail_out&&(q=!0)}while((0<n.avail_in||0===n.avail_out)&&c!==g.Z_STREAM_END)return c===g.Z_STREAM_END&&(h=g.Z_FINISH),h===g.Z_FINISH?(c=d.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===g.Z_OK):h!==g.Z_SYNC_FLUSH||(this.onEnd(g.Z_OK),n.avail_out=0,!0)},l.prototype.onData=function(a){this.chunks.push(a)},l.prototype.onEnd=function(a){a===g.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Inflate=l,c.inflate=m,c.inflateRaw=function(a,b){return(b=b||{}).raw=!0,m(a,b)},c.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(a,b,c){var d="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw TypeError(c+"must be non-object");for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var e={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f<d;f++)a[e+f]=b[c+f]},flattenChunks:function(a){for(var b,c,d,e,f=b=0,g=a.length;f<g;f++)b+=a[f].length;for(e=new Uint8Array(b),f=c=0,g=a.length;f<g;f++)d=a[f],e.set(d,c),c+=d.length;return e}},f={arraySet:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,e)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,f))},c.setTyped(d)},{}],42:[function(a,b,c){var d=a("./common"),e=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch(a){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(a){f=!1}for(var g=new d.Buf8(256),h=0;h<256;h++)g[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function i(a,b){if(b<65537&&(a.subarray&&f||!a.subarray&&e))return String.fromCharCode.apply(null,d.shrinkBuf(a,b));for(var c="",g=0;g<b;g++)c+=String.fromCharCode(a[g]);return c}g[254]=g[254]=1,c.string2buf=function(a){var b,c,e,f,g,h=a.length,i=0;for(f=0;f<h;f++)55296==(64512&(c=a.charCodeAt(f)))&&f+1<h&&56320==(64512&(e=a.charCodeAt(f+1)))&&(c=65536+(c-55296<<10)+(e-56320),f++),i+=c<128?1:c<2048?2:c<65536?3:4;for(b=new d.Buf8(i),f=g=0;g<i;f++)55296==(64512&(c=a.charCodeAt(f)))&&f+1<h&&56320==(64512&(e=a.charCodeAt(f+1)))&&(c=65536+(c-55296<<10)+(e-56320),f++),c<128?b[g++]=c:(c<2048?b[g++]=192|c>>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},c.buf2binstring=function(a){return i(a,a.length)},c.binstring2buf=function(a){for(var b=new d.Buf8(a.length),c=0,e=b.length;c<e;c++)b[c]=a.charCodeAt(c);return b},c.buf2string=function(a,b){var c,d,e,f,h=b||a.length,j=Array(2*h);for(c=d=0;c<h;)if((e=a[c++])<128)j[d++]=e;else if(4<(f=g[e]))j[d++]=65533,c+=f-1;else{for(e&=2===f?31:3===f?15:7;1<f&&c<h;)e=e<<6|63&a[c++],f--;1<f?j[d++]=65533:e<65536?j[d++]=e:(e-=65536,j[d++]=55296|e>>10&1023,j[d++]=56320|1023&e)}return i(j,d)},c.utf8border=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;0<=c&&128==(192&a[c]);)c--;return c<0||0===c?b:c+g[a[c]]>b?c:b}},{"./common":41}],43:[function(a,b,c){b.exports=function(a,b,c,d){for(var e=65535&a,f=a>>>16&65535,g=0;0!==c;){for(c-=g=2e3<c?2e3:c;f=f+(e=e+b[d++]|0)|0,--g;);e%=65521,f%=65521}return e|f<<16}},{}],44:[function(a,b,c){b.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(a,b,c){var d=function(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?0xedb88320^a>>>1:a>>>1;b[c]=a}return b}();b.exports=function(a,b,c,e){var f=e+c;a^=-1;for(var g=e;g<f;g++)a=a>>>8^d[255&(a^b[g])];return -1^a}},{}],46:[function(a,b,c){var d,e=a("../utils/common"),f=a("./trees"),g=a("./adler32"),h=a("./crc32"),i=a("./messages");function j(a,b){return a.msg=i[b],b}function k(a){return(a<<1)-9*(4<a)}function l(a){for(var b=a.length;0<=--b;)a[b]=0}function m(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(e.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function n(a,b){f._tr_flush_block(a,0<=a.block_start?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,m(a.strm)}function o(a,b){a.pending_buf[a.pending++]=b}function p(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function q(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+258,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(j[(c=b)+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&f<m)if(d=258-(m-f),f=m-258,g<d){if(a.match_start=b,h<=(g=d))break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!=--e)return g<=a.lookahead?g:a.lookahead}function r(a){var b,c,d,f,i,j,k,l,m,n,o=a.w_size;do{if(f=a.window_size-a.lookahead-a.strstart,a.strstart>=o+(o-262)){for(e.arraySet(a.window,a.window,o,o,0),a.match_start-=o,a.strstart-=o,a.block_start-=o,b=c=a.hash_size;d=a.head[--b],a.head[b]=o<=d?d-o:0,--c;);for(b=c=o;d=a.prev[--b],a.prev[b]=o<=d?d-o:0,--c;);f+=o}if(0===a.strm.avail_in)break;if(j=a.strm,k=a.window,l=a.strstart+a.lookahead,n=void 0,(m=f)<(n=j.avail_in)&&(n=m),c=0===n?0:(j.avail_in-=n,e.arraySet(k,j.input,j.next_in,n,l),1===j.state.wrap?j.adler=g(j.adler,k,n,l):2===j.state.wrap&&(j.adler=h(j.adler,k,n,l)),j.next_in+=n,j.total_in+=n,n),a.lookahead+=c,a.lookahead+a.insert>=3)for(i=a.strstart-a.insert,a.ins_h=a.window[i],a.ins_h=(a.ins_h<<a.hash_shift^a.window[i+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[i+3-1])&a.hash_mask,a.prev[i&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=i,i++,a.insert--,!(a.lookahead+a.insert<3)););}while(a.lookahead<262&&0!==a.strm.avail_in)}function s(a,b){for(var c,d;;){if(a.lookahead<262){if(r(a),a.lookahead<262&&0===b)return 1;if(0===a.lookahead)break}if(c=0,a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-262&&(a.match_length=q(a,c)),a.match_length>=3)if(d=f._tr_tally(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=3){for(a.match_length--;a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart,0!=--a.match_length;);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(n(a,!1),0===a.strm.avail_out))return 1}return a.insert=a.strstart<2?a.strstart:2,4===b?(n(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(n(a,!1),0===a.strm.avail_out)?1:2}function t(a,b){for(var c,d,e;;){if(a.lookahead<262){if(r(a),a.lookahead<262&&0===b)return 1;if(0===a.lookahead)break}if(c=0,a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=2,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-262&&(a.match_length=q(a,c),a.match_length<=5&&(1===a.strategy||3===a.match_length&&4096<a.strstart-a.match_start)&&(a.match_length=2)),a.prev_length>=3&&a.match_length<=a.prev_length){for(e=a.strstart+a.lookahead-3,d=f._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-3),a.lookahead-=a.prev_length-1,a.prev_length-=2;++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!=--a.prev_length;);if(a.match_available=0,a.match_length=2,a.strstart++,d&&(n(a,!1),0===a.strm.avail_out))return 1}else if(a.match_available){if((d=f._tr_tally(a,0,a.window[a.strstart-1]))&&n(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return 1}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(d=f._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<2?a.strstart:2,4===b?(n(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(n(a,!1),0===a.strm.avail_out)?1:2}function u(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e}function v(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(1146),this.dyn_dtree=new e.Buf16(122),this.bl_tree=new e.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(16),this.heap=new e.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function w(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=2,(b=a.state).pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?42:113,a.adler=+(2!==b.wrap),b.last_flush=0,f._tr_init(b),0):j(a,-2)}function x(a){var b,c=w(a);return 0===c&&((b=a.state).window_size=2*b.w_size,l(b.head),b.max_lazy_match=d[b.level].max_lazy,b.good_match=d[b.level].good_length,b.nice_match=d[b.level].nice_length,b.max_chain_length=d[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=2,b.match_available=0,b.ins_h=0),c}function y(a,b,c,d,f,g){if(!a)return -2;var h=1;if(-1===b&&(b=6),d<0?(h=0,d=-d):15<d&&(h=2,d-=16),f<1||9<f||8!==c||d<8||15<d||b<0||9<b||g<0||4<g)return j(a,-2);8===d&&(d=9);var i=new v;return(a.state=i).strm=a,i.wrap=h,i.gzhead=null,i.w_bits=d,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+3-1)/3),i.window=new e.Buf8(2*i.w_size),i.head=new e.Buf16(i.hash_size),i.prev=new e.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new e.Buf8(i.pending_buf_size),i.d_buf=+i.lit_bufsize,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,x(a)}d=[new u(0,0,0,0,function(a,b){var c=65535;for(65535>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(r(a),0===a.lookahead&&0===b)return 1;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,n(a,!1),0===a.strm.avail_out)||a.strstart-a.block_start>=a.w_size-262&&(n(a,!1),0===a.strm.avail_out))return 1}return a.insert=0,4===b?(n(a,!0),0===a.strm.avail_out?3:4):(a.strstart>a.block_start&&(n(a,!1),a.strm.avail_out),1)}),new u(4,4,8,4,s),new u(4,5,16,8,s),new u(4,6,32,32,s),new u(4,4,16,16,t),new u(8,16,32,32,t),new u(8,16,128,128,t),new u(8,32,128,256,t),new u(32,128,258,1024,t),new u(32,258,258,4096,t)],c.deflateInit=function(a,b){return y(a,b,8,15,8,0)},c.deflateInit2=y,c.deflateReset=x,c.deflateResetKeep=w,c.deflateSetHeader=function(a,b){return a&&a.state?2!==a.state.wrap?-2:(a.state.gzhead=b,0):-2},c.deflate=function(a,b){var c,e,g,i;if(!a||!a.state||5<b||b<0)return a?j(a,-2):-2;if(e=a.state,!a.output||!a.input&&0!==a.avail_in||666===e.status&&4!==b)return j(a,0===a.avail_out?-5:-2);if(e.strm=a,c=e.last_flush,e.last_flush=b,42===e.status)if(2===e.wrap)a.adler=0,o(e,31),o(e,139),o(e,8),e.gzhead?(o(e,+!!e.gzhead.text+2*!!e.gzhead.hcrc+4*!!e.gzhead.extra+8*!!e.gzhead.name+16*!!e.gzhead.comment),o(e,255&e.gzhead.time),o(e,e.gzhead.time>>8&255),o(e,e.gzhead.time>>16&255),o(e,e.gzhead.time>>24&255),o(e,9===e.level?2:4*(2<=e.strategy||e.level<2)),o(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(o(e,255&e.gzhead.extra.length),o(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(a.adler=h(a.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(o(e,0),o(e,0),o(e,0),o(e,0),o(e,0),o(e,9===e.level?2:4*(2<=e.strategy||e.level<2)),o(e,3),e.status=113);else{var q=8+(e.w_bits-8<<4)<<8;q|=(2<=e.strategy||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(q|=32),q+=31-q%31,e.status=113,p(e,q),0!==e.strstart&&(p(e,a.adler>>>16),p(e,65535&a.adler)),a.adler=1}if(69===e.status)if(e.gzhead.extra){for(g=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),m(a),g=e.pending,e.pending!==e.pending_buf_size));)o(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),m(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,o(e,i)}while(0!==i)e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),m(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,o(e,i)}while(0!==i)e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&m(a),e.pending+2<=e.pending_buf_size&&(o(e,255&a.adler),o(e,a.adler>>8&255),a.adler=0,e.status=113)):e.status=113),0!==e.pending){if(m(a),0===a.avail_out)return e.last_flush=-1,0}else if(0===a.avail_in&&k(b)<=k(c)&&4!==b)return j(a,-5);if(666===e.status&&0!==a.avail_in)return j(a,-5);if(0!==a.avail_in||0!==e.lookahead||0!==b&&666!==e.status){var s=2===e.strategy?function(a,b){for(var c;;){if(0===a.lookahead&&(r(a),0===a.lookahead)){if(0===b)return 1;break}if(a.match_length=0,c=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(n(a,!1),0===a.strm.avail_out))return 1}return a.insert=0,4===b?(n(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(n(a,!1),0===a.strm.avail_out)?1:2}(e,b):3===e.strategy?function(a,b){for(var c,d,e,g,h=a.window;;){if(a.lookahead<=258){if(r(a),a.lookahead<=258&&0===b)return 1;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=3&&0<a.strstart&&(d=h[e=a.strstart-1])===h[++e]&&d===h[++e]&&d===h[++e]){g=a.strstart+258;do;while(d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&e<g)a.match_length=258-(g-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=3?(c=f._tr_tally(a,1,a.match_length-3),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(n(a,!1),0===a.strm.avail_out))return 1}return a.insert=0,4===b?(n(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(n(a,!1),0===a.strm.avail_out)?1:2}(e,b):d[e.level].func(e,b);if(3!==s&&4!==s||(e.status=666),1===s||3===s)return 0===a.avail_out&&(e.last_flush=-1),0;if(2===s&&(1===b?f._tr_align(e):5!==b&&(f._tr_stored_block(e,0,0,!1),3===b&&(l(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),m(a),0===a.avail_out))return e.last_flush=-1,0}return 4!==b?0:e.wrap<=0?1:(2===e.wrap?(o(e,255&a.adler),o(e,a.adler>>8&255),o(e,a.adler>>16&255),o(e,a.adler>>24&255),o(e,255&a.total_in),o(e,a.total_in>>8&255),o(e,a.total_in>>16&255),o(e,a.total_in>>24&255)):(p(e,a.adler>>>16),p(e,65535&a.adler)),m(a),0<e.wrap&&(e.wrap=-e.wrap),+(0===e.pending))},c.deflateEnd=function(a){var b;return a&&a.state?42!==(b=a.state.status)&&69!==b&&73!==b&&91!==b&&103!==b&&113!==b&&666!==b?j(a,-2):(a.state=null,113===b?j(a,-3):0):-2},c.deflateSetDictionary=function(a,b){var c,d,f,h,i,j,k,m,n=b.length;if(!a||!a.state||2===(h=(c=a.state).wrap)||1===h&&42!==c.status||c.lookahead)return -2;for(1===h&&(a.adler=g(a.adler,b,n,0)),c.wrap=0,n>=c.w_size&&(0===h&&(l(c.head),c.strstart=0,c.block_start=0,c.insert=0),m=new e.Buf8(c.w_size),e.arraySet(m,b,n-c.w_size,c.w_size,0),b=m,n=c.w_size),i=a.avail_in,j=a.next_in,k=a.input,a.avail_in=n,a.next_in=0,a.input=b,r(c);c.lookahead>=3;){for(d=c.strstart,f=c.lookahead-2;c.ins_h=(c.ins_h<<c.hash_shift^c.window[d+3-1])&c.hash_mask,c.prev[d&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=d,d++,--f;);c.strstart=d,c.lookahead=2,r(c)}return c.strstart+=c.lookahead,c.block_start=c.strstart,c.insert=c.lookahead,c.lookahead=0,c.match_length=c.prev_length=2,c.match_available=0,a.next_in=j,a.input=k,a.avail_in=i,c.wrap=h,0},c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(a,b,c){b.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(a,b,c){b.exports=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=a.state,z=a.next_in,A=a.input;c=z+(a.avail_in-5),d=a.next_out,x=a.output,e=d-(b-a.avail_out),f=d+(a.avail_out-257),g=y.dmax,h=y.wsize,i=y.whave,j=y.wnext,k=y.window,l=y.hold,m=y.bits,n=y.lencode,o=y.distcode,p=(1<<y.lenbits)-1,q=(1<<y.distbits)-1;a:do for(m<15&&(l+=A[z++]<<m,m+=8,l+=A[z++]<<m,m+=8),r=n[l&p];;){if(l>>>=s=r>>>24,m-=s,0==(s=r>>>16&255))x[d++]=65535&r;else{if(!(16&s)){if(0==(64&s)){r=n[(65535&r)+(l&(1<<s)-1)];continue}if(32&s){y.mode=12;break a}a.msg="invalid literal/length code",y.mode=30;break a}for(t=65535&r,(s&=15)&&(m<s&&(l+=A[z++]<<m,m+=8),t+=l&(1<<s)-1,l>>>=s,m-=s),m<15&&(l+=A[z++]<<m,m+=8,l+=A[z++]<<m,m+=8),r=o[l&q];;){if(l>>>=s=r>>>24,m-=s,!(16&(s=r>>>16&255))){if(0==(64&s)){r=o[(65535&r)+(l&(1<<s)-1)];continue}a.msg="invalid distance code",y.mode=30;break a}if(u=65535&r,m<(s&=15)&&(l+=A[z++]<<m,(m+=8)<s&&(l+=A[z++]<<m,m+=8)),g<(u+=l&(1<<s)-1)){a.msg="invalid distance too far back",y.mode=30;break a}if(l>>>=s,m-=s,(s=d-e)<u){if(i<(s=u-s)&&y.sane){a.msg="invalid distance too far back",y.mode=30;break a}if(w=k,(v=0)===j){if(v+=h-s,s<t){for(t-=s;x[d++]=k[v++],--s;);v=d-u,w=x}}else if(j<s){if(v+=h+j-s,(s-=j)<t){for(t-=s;x[d++]=k[v++],--s;);if(v=0,j<t){for(t-=s=j;x[d++]=k[v++],--s;);v=d-u,w=x}}}else if(v+=j-s,s<t){for(t-=s;x[d++]=k[v++],--s;);v=d-u,w=x}for(;2<t;)x[d++]=w[v++],x[d++]=w[v++],x[d++]=w[v++],t-=3;t&&(x[d++]=w[v++],1<t&&(x[d++]=w[v++]))}else{for(v=d-u;x[d++]=x[v++],x[d++]=x[v++],x[d++]=x[v++],2<(t-=3););t&&(x[d++]=x[v++],1<t&&(x[d++]=x[v++]))}break}}break}while(z<c&&d<f)z-=t=m>>3,l&=(1<<(m-=t<<3))-1,a.next_in=z,a.next_out=d,a.avail_in=z<c?c-z+5:5-(z-c),a.avail_out=d<f?f-d+257:257-(d-f),y.hold=l,y.bits=m}},{}],49:[function(a,b,c){var d=a("../utils/common"),e=a("./adler32"),f=a("./crc32"),g=a("./inffast"),h=a("./inftrees");function i(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function j(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function k(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=1,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new d.Buf32(852),b.distcode=b.distdyn=new d.Buf32(592),b.sane=1,b.back=-1,0):-2}function l(a){var b;return a&&a.state?((b=a.state).wsize=0,b.whave=0,b.wnext=0,k(a)):-2}function m(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=1+(b>>4),b<48&&(b&=15)),b&&(b<8||15<b)?-2:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,l(a))):-2}function n(a,b){var c;return a?((a.state=new j).window=null,0!==(c=m(a,b))&&(a.state=null),c):-2}var o,p,q=!0;function r(a,b,c,e){var f,g=a.state;return null===g.window&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new d.Buf8(g.wsize)),e>=g.wsize?(d.arraySet(g.window,b,c-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):(e<(f=g.wsize-g.wnext)&&(f=e),d.arraySet(g.window,b,c-e,f,g.wnext),(e-=f)?(d.arraySet(g.window,b,c-e,e,0),g.wnext=e,g.whave=g.wsize):(g.wnext+=f,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=f))),0}c.inflateReset=l,c.inflateReset2=m,c.inflateResetKeep=k,c.inflateInit=function(a){return n(a,15)},c.inflateInit2=n,c.inflate=function(a,b){var c,j,k,l,m,n,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K=0,L=new d.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return -2;12===(c=a.state).mode&&(c.mode=13),m=a.next_out,k=a.output,s=a.avail_out,l=a.next_in,j=a.input,n=a.avail_in,t=c.hold,u=c.bits,v=n,w=s,H=0;a:for(;;)switch(c.mode){case 1:if(0===c.wrap){c.mode=13;break}for(;u<16;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(2&c.wrap&&35615===t){L[c.check=0]=255&t,L[1]=t>>>8&255,c.check=f(c.check,L,2,0),u=t=0,c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&t)<<8)+(t>>8))%31){a.msg="incorrect header check",c.mode=30;break}if(8!=(15&t)){a.msg="unknown compression method",c.mode=30;break}if(u-=4,G=8+(15&(t>>>=4)),0===c.wbits)c.wbits=G;else if(G>c.wbits){a.msg="invalid window size",c.mode=30;break}c.dmax=1<<G,a.adler=c.check=1,c.mode=512&t?10:12,u=t=0;break;case 2:for(;u<16;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(c.flags=t,8!=(255&c.flags)){a.msg="unknown compression method",c.mode=30;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=30;break}c.head&&(c.head.text=t>>8&1),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=f(c.check,L,2,0)),u=t=0,c.mode=3;case 3:for(;u<32;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}c.head&&(c.head.time=t),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,L[2]=t>>>16&255,L[3]=t>>>24&255,c.check=f(c.check,L,4,0)),u=t=0,c.mode=4;case 4:for(;u<16;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}c.head&&(c.head.xflags=255&t,c.head.os=t>>8),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=f(c.check,L,2,0)),u=t=0,c.mode=5;case 5:if(1024&c.flags){for(;u<16;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}c.length=t,c.head&&(c.head.extra_len=t),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=f(c.check,L,2,0)),u=t=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&(n<(x=c.length)&&(x=n),x&&(c.head&&(G=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),d.arraySet(c.head.extra,j,l,x,G)),512&c.flags&&(c.check=f(c.check,j,x,l)),n-=x,l+=x,c.length-=x),c.length))break a;c.length=0,c.mode=7;case 7:if(2048&c.flags){if(0===n)break a;for(x=0;G=j[l+x++],c.head&&G&&c.length<65536&&(c.head.name+=String.fromCharCode(G)),G&&x<n;);if(512&c.flags&&(c.check=f(c.check,j,x,l)),n-=x,l+=x,G)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=8;case 8:if(4096&c.flags){if(0===n)break a;for(x=0;G=j[l+x++],c.head&&G&&c.length<65536&&(c.head.comment+=String.fromCharCode(G)),G&&x<n;);if(512&c.flags&&(c.check=f(c.check,j,x,l)),n-=x,l+=x,G)break a}else c.head&&(c.head.comment=null);c.mode=9;case 9:if(512&c.flags){for(;u<16;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(t!==(65535&c.check)){a.msg="header crc mismatch",c.mode=30;break}u=t=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=12;break;case 10:for(;u<32;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}a.adler=c.check=i(t),u=t=0,c.mode=11;case 11:if(0===c.havedict)return a.next_out=m,a.avail_out=s,a.next_in=l,a.avail_in=n,c.hold=t,c.bits=u,2;a.adler=c.check=1,c.mode=12;case 12:if(5===b||6===b)break a;case 13:if(c.last){t>>>=7&u,u-=7&u,c.mode=27;break}for(;u<3;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}switch(c.last=1&t,u-=1,3&(t>>>=1)){case 0:c.mode=14;break;case 1:if(function(a){if(q){var b;for(o=new d.Buf32(512),p=new d.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(h(1,a.lens,0,288,o,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;h(2,a.lens,0,32,p,0,a.work,{bits:5}),q=!1}a.lencode=o,a.lenbits=9,a.distcode=p,a.distbits=5}(c),c.mode=20,6!==b)break;t>>>=2,u-=2;break a;case 2:c.mode=17;break;case 3:a.msg="invalid block type",c.mode=30}t>>>=2,u-=2;break;case 14:for(t>>>=7&u,u-=7&u;u<32;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if((65535&t)!=(t>>>16^65535)){a.msg="invalid stored block lengths",c.mode=30;break}if(c.length=65535&t,u=t=0,c.mode=15,6===b)break a;case 15:c.mode=16;case 16:if(x=c.length){if(n<x&&(x=n),s<x&&(x=s),0===x)break a;d.arraySet(k,j,l,x,m),n-=x,l+=x,s-=x,m+=x,c.length-=x;break}c.mode=12;break;case 17:for(;u<14;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(c.nlen=257+(31&t),u-=5,c.ndist=1+(31&(t>>>=5)),u-=5,c.ncode=4+(15&(t>>>=5)),t>>>=4,u-=4,286<c.nlen||30<c.ndist){a.msg="too many length or distance symbols",c.mode=30;break}c.have=0,c.mode=18;case 18:for(;c.have<c.ncode;){for(;u<3;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}c.lens[M[c.have++]]=7&t,t>>>=3,u-=3}for(;c.have<19;)c.lens[M[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,I={bits:c.lenbits},H=h(0,c.lens,0,19,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid code lengths set",c.mode=30;break}c.have=0,c.mode=19;case 19:for(;c.have<c.nlen+c.ndist;){for(;B=(K=c.lencode[t&(1<<c.lenbits)-1])>>>16&255,C=65535&K,!((A=K>>>24)<=u);){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(C<16)t>>>=A,u-=A,c.lens[c.have++]=C;else{if(16===C){for(J=A+2;u<J;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(t>>>=A,u-=A,0===c.have){a.msg="invalid bit length repeat",c.mode=30;break}G=c.lens[c.have-1],x=3+(3&t),t>>>=2,u-=2}else if(17===C){for(J=A+3;u<J;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}u-=A,G=0,x=3+(7&(t>>>=A)),t>>>=3,u-=3}else{for(J=A+7;u<J;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}u-=A,G=0,x=11+(127&(t>>>=A)),t>>>=7,u-=7}if(c.have+x>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=30;break}for(;x--;)c.lens[c.have++]=G}}if(30===c.mode)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=30;break}if(c.lenbits=9,I={bits:c.lenbits},H=h(1,c.lens,0,c.nlen,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid literal/lengths set",c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,I={bits:c.distbits},H=h(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,I),c.distbits=I.bits,H){a.msg="invalid distances set",c.mode=30;break}if(c.mode=20,6===b)break a;case 20:c.mode=21;case 21:if(6<=n&&258<=s){a.next_out=m,a.avail_out=s,a.next_in=l,a.avail_in=n,c.hold=t,c.bits=u,g(a,w),m=a.next_out,k=a.output,s=a.avail_out,l=a.next_in,j=a.input,n=a.avail_in,t=c.hold,u=c.bits,12===c.mode&&(c.back=-1);break}for(c.back=0;B=(K=c.lencode[t&(1<<c.lenbits)-1])>>>16&255,C=65535&K,!((A=K>>>24)<=u);){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(B&&0==(240&B)){for(D=A,E=B,F=C;B=(K=c.lencode[F+((t&(1<<D+E)-1)>>D)])>>>16&255,C=65535&K,!(D+(A=K>>>24)<=u);){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}t>>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,c.length=C,0===B){c.mode=26;break}if(32&B){c.back=-1,c.mode=12;break}if(64&B){a.msg="invalid literal/length code",c.mode=30;break}c.extra=15&B,c.mode=22;case 22:if(c.extra){for(J=c.extra;u<J;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}c.length+=t&(1<<c.extra)-1,t>>>=c.extra,u-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=23;case 23:for(;B=(K=c.distcode[t&(1<<c.distbits)-1])>>>16&255,C=65535&K,!((A=K>>>24)<=u);){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(0==(240&B)){for(D=A,E=B,F=C;B=(K=c.distcode[F+((t&(1<<D+E)-1)>>D)])>>>16&255,C=65535&K,!(D+(A=K>>>24)<=u);){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}t>>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,64&B){a.msg="invalid distance code",c.mode=30;break}c.offset=C,c.extra=15&B,c.mode=24;case 24:if(c.extra){for(J=c.extra;u<J;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}c.offset+=t&(1<<c.extra)-1,t>>>=c.extra,u-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=30;break}c.mode=25;case 25:if(0===s)break a;if(x=w-s,c.offset>x){if((x=c.offset-x)>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=30;break}y=x>c.wnext?(x-=c.wnext,c.wsize-x):c.wnext-x,x>c.length&&(x=c.length),z=c.window}else z=k,y=m-c.offset,x=c.length;for(s<x&&(x=s),s-=x,c.length-=x;k[m++]=z[y++],--x;);0===c.length&&(c.mode=21);break;case 26:if(0===s)break a;k[m++]=c.length,s--,c.mode=21;break;case 27:if(c.wrap){for(;u<32;){if(0===n)break a;n--,t|=j[l++]<<u,u+=8}if(w-=s,a.total_out+=w,c.total+=w,w&&(a.adler=c.check=c.flags?f(c.check,k,w,m-w):e(c.check,k,w,m-w)),w=s,(c.flags?t:i(t))!==c.check){a.msg="incorrect data check",c.mode=30;break}u=t=0}c.mode=28;case 28:if(c.wrap&&c.flags){for(;u<32;){if(0===n)break a;n--,t+=j[l++]<<u,u+=8}if(t!==(0|c.total)){a.msg="incorrect length check",c.mode=30;break}u=t=0}c.mode=29;case 29:H=1;break a;case 30:H=-3;break a;case 31:return -4;default:return -2}return a.next_out=m,a.avail_out=s,a.next_in=l,a.avail_in=n,c.hold=t,c.bits=u,(c.wsize||w!==a.avail_out&&c.mode<30&&(c.mode<27||4!==b))&&r(a,a.output,a.next_out,w-a.avail_out)?(c.mode=31,-4):(v-=a.avail_in,w-=a.avail_out,a.total_in+=v,a.total_out+=w,c.total+=w,c.wrap&&w&&(a.adler=c.check=c.flags?f(c.check,k,w,a.next_out-w):e(c.check,k,w,a.next_out-w)),a.data_type=c.bits+64*!!c.last+128*(12===c.mode)+256*(20===c.mode||15===c.mode),(0==v&&0===w||4===b)&&0===H&&(H=-5),H)},c.inflateEnd=function(a){if(!a||!a.state)return -2;var b=a.state;return b.window&&(b.window=null),a.state=null,0},c.inflateGetHeader=function(a,b){var c;return a&&a.state?0==(2&(c=a.state).wrap)?-2:((c.head=b).done=!1,0):-2},c.inflateSetDictionary=function(a,b){var c,d=b.length;return a&&a.state?0!==(c=a.state).wrap&&11!==c.mode?-2:11===c.mode&&e(1,b,d,0)!==c.check?-3:r(a,b,d,d)?(c.mode=31,-4):(c.havedict=1,0):-2},c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,b,c){var d=a("../utils/common"),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],g=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];b.exports=function(a,b,c,i,j,k,l,m){var n,o,p,q,r,s,t,u,v,w=m.bits,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=null,I=0,J=new d.Buf16(16),K=new d.Buf16(16),L=null,M=0;for(x=0;x<=15;x++)J[x]=0;for(y=0;y<i;y++)J[b[c+y]]++;for(B=w,A=15;1<=A&&0===J[A];A--);if(A<B&&(B=A),0===A)return j[k++]=0x1400000,j[k++]=0x1400000,m.bits=1,0;for(z=1;z<A&&0===J[z];z++);for(B<z&&(B=z),x=E=1;x<=15;x++)if(E<<=1,(E-=J[x])<0)return -1;if(0<E&&(0===a||1!==A))return -1;for(K[1]=0,x=1;x<15;x++)K[x+1]=K[x]+J[x];for(y=0;y<i;y++)0!==b[c+y]&&(l[K[b[c+y]]++]=y);if(s=0===a?(H=L=l,19):1===a?(H=e,I-=257,L=f,M-=257,256):(H=g,L=h,-1),x=z,r=k,D=y=G=0,p=-1,q=(F=1<<(C=B))-1,1===a&&852<F||2===a&&592<F)return 1;for(;;){for(t=x-D,v=l[y]<s?(u=0,l[y]):l[y]>s?(u=L[M+l[y]],H[I+l[y]]):(u=96,0),n=1<<x-D,z=o=1<<C;j[r+(G>>D)+(o-=n)]=t<<24|u<<16|v,0!==o;);for(n=1<<x-1;G&n;)n>>=1;if(0!==n?(G&=n-1,G+=n):G=0,y++,0==--J[x]){if(x===A)break;x=b[c+l[y]]}if(B<x&&(G&q)!==p){for(0===D&&(D=B),r+=z,E=1<<(C=x-D);C+D<A&&!((E-=J[C+D])<=0);)C++,E<<=1;if(F+=1<<C,1===a&&852<F||2===a&&592<F)return 1;j[p=G&q]=B<<24|C<<16|r-k}}return 0!==G&&(j[r+G]=x-D<<24|4194304),m.bits=B,0}},{"../utils/common":41}],51:[function(a,b,c){b.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(a,b,c){var d=a("../utils/common");function e(a){for(var b=a.length;0<=--b;)a[b]=0}var f=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],g=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],i=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(576);e(j);var k=Array(60);e(k);var l=Array(512);e(l);var m=Array(256);e(m);var n=Array(29);e(n);var o,p,q,r=Array(30);function s(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function t(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function u(a){return a<256?l[a]:l[256+(a>>>7)]}function v(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function w(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<<a.bi_valid&65535,v(a,a.bi_buf),a.bi_buf=b>>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function x(a,b,c){w(a,c[2*b],c[2*b+1])}function y(a,b){for(var c=0;c|=1&a,a>>>=1,c<<=1,0<--b;);return c>>>1}function z(a,b,c){var d,e,f=Array(16),g=0;for(d=1;d<=15;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2*e]=y(f[h]++,h))}}function A(a){for(var b=0;b<286;b++)a.dyn_ltree[2*b]=0;for(b=0;b<30;b++)a.dyn_dtree[2*b]=0;for(b=0;b<19;b++)a.bl_tree[2*b]=0;a.dyn_ltree[512]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function B(a){8<a.bi_valid?v(a,a.bi_buf):0<a.bi_valid&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function C(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function D(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&C(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!C(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function E(a,b,c){var d,e,h,i,j=0;if(0!==a.last_lit)for(;d=a.pending_buf[a.d_buf+2*j]<<8|a.pending_buf[a.d_buf+2*j+1],e=a.pending_buf[a.l_buf+j],j++,0===d?x(a,e,b):(x(a,(h=m[e])+256+1,b),0!==(i=f[h])&&w(a,e-=n[h],i),x(a,h=u(--d),c),0!==(i=g[h])&&w(a,d-=r[h],i)),j<a.last_lit;);x(a,256,b)}function F(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,i=b.stat_desc.elems,j=-1;for(a.heap_len=0,a.heap_max=573,c=0;c<i;c++)0!==f[2*c]?(a.heap[++a.heap_len]=j=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)f[2*(e=a.heap[++a.heap_len]=j<2?++j:0)]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=j,c=a.heap_len>>1;1<=c;c--)D(a,f,c);for(e=i;c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],D(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,D(a,f,1),2<=a.heap_len;);a.heap[--a.heap_max]=a.heap[1],function(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,n=b.stat_desc.extra_base,o=b.stat_desc.max_length,p=0;for(f=0;f<=15;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;c<573;c++)o<(f=i[2*i[2*(d=a.heap[c])+1]+1]+1)&&(f=o,p++),i[2*d+1]=f,j<d||(a.bl_count[f]++,g=0,n<=d&&(g=m[d-n]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==p){do{for(f=o-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[o]--,p-=2}while(0<p)for(f=o;0!==f;f--)for(d=a.bl_count[f];0!==d;)j<(e=a.heap[--c])||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}(a,b),z(f,j,a.bl_count)}function G(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;d<=c;d++)e=g,g=b[2*(d+1)+1],++h<i&&e===g||(h<j?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[32]++):h<=10?a.bl_tree[34]++:a.bl_tree[36]++,f=e,j=(h=0)===g?(i=138,3):e===g?(i=6,3):(i=7,4))}function H(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),d=0;d<=c;d++)if(e=g,g=b[2*(d+1)+1],!(++h<i&&e===g)){if(h<j)for(;x(a,e,a.bl_tree),0!=--h;);else 0!==e?(e!==f&&(x(a,e,a.bl_tree),h--),x(a,16,a.bl_tree),w(a,h-3,2)):h<=10?(x(a,17,a.bl_tree),w(a,h-3,3)):(x(a,18,a.bl_tree),w(a,h-11,7));f=e,j=(h=0)===g?(i=138,3):e===g?(i=6,3):(i=7,4)}}e(r);var I=!1;function J(a,b,c,e){w(a,0+ +!!e,3),B(a),v(a,c),v(a,~c),d.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}c._tr_init=function(a){I||(function(){var a,b,c,d,e,i=Array(16);for(d=c=0;d<28;d++)for(n[d]=c,a=0;a<1<<f[d];a++)m[c++]=d;for(m[c-1]=d,d=e=0;d<16;d++)for(r[d]=e,a=0;a<1<<g[d];a++)l[e++]=d;for(e>>=7;d<30;d++)for(r[d]=e<<7,a=0;a<1<<g[d]-7;a++)l[256+e++]=d;for(b=0;b<=15;b++)i[b]=0;for(a=0;a<=143;)j[2*a+1]=8,a++,i[8]++;for(;a<=255;)j[2*a+1]=9,a++,i[9]++;for(;a<=279;)j[2*a+1]=7,a++,i[7]++;for(;a<=287;)j[2*a+1]=8,a++,i[8]++;for(z(j,287,i),a=0;a<30;a++)k[2*a+1]=5,k[2*a]=y(a,5);o=new s(j,f,257,286,15),p=new s(k,g,0,30,15),q=new s([],h,0,19,7)}(),I=!0),a.l_desc=new t(a.dyn_ltree,o),a.d_desc=new t(a.dyn_dtree,p),a.bl_desc=new t(a.bl_tree,q),a.bi_buf=0,a.bi_valid=0,A(a)},c._tr_stored_block=J,c._tr_flush_block=function(a,b,c,d){var e,f,g=0;0<a.level?(2===a.strm.data_type&&(a.strm.data_type=function(a){var b,c=0xf3ffc07f;for(b=0;b<=31;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return 0;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return 1;for(b=32;b<256;b++)if(0!==a.dyn_ltree[2*b])return 1;return 0}(a)),F(a,a.l_desc),F(a,a.d_desc),g=function(a){var b;for(G(a,a.dyn_ltree,a.l_desc.max_code),G(a,a.dyn_dtree,a.d_desc.max_code),F(a,a.bl_desc),b=18;3<=b&&0===a.bl_tree[2*i[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}(a),e=a.opt_len+3+7>>>3,(f=a.static_len+3+7>>>3)<=e&&(e=f)):e=f=c+5,c+4<=e&&-1!==b?J(a,b,c,d):4===a.strategy||f===e?(w(a,2+ +!!d,3),E(a,j,k)):(w(a,4+ +!!d,3),function(a,b,c,d){var e;for(w(a,b-257,5),w(a,c-1,5),w(a,d-4,4),e=0;e<d;e++)w(a,a.bl_tree[2*i[e]+1],3);H(a,a.dyn_ltree,b-1),H(a,a.dyn_dtree,c-1)}(a,a.l_desc.max_code+1,a.d_desc.max_code+1,g+1),E(a,a.dyn_ltree,a.dyn_dtree)),A(a),d&&B(a)},c._tr_tally=function(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(m[c]+256+1)]++,a.dyn_dtree[2*u(b)]++),a.last_lit===a.lit_bufsize-1},c._tr_align=function(a){w(a,2,3),x(a,256,j),16===a.bi_valid?(v(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):8<=a.bi_valid&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}},{"../utils/common":41}],53:[function(a,b,c){b.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(a,b,c){(function(a){!function(a){if(!a.setImmediate){var b,c,d,e,f=1,g={},h=!1,i=a.document,j=Object.getPrototypeOf&&Object.getPrototypeOf(a);j=j&&j.setTimeout?j:a,b="[object process]"===({}).toString.call(a.process)?function(a){r.nextTick(function(){l(a)})}:!function(){if(a.postMessage&&!a.importScripts){var b=!0,c=a.onmessage;return a.onmessage=function(){b=!1},a.postMessage("","*"),a.onmessage=c,b}}()?a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(a){l(a.data)},function(a){d.port2.postMessage(a)}):i&&"onreadystatechange"in i.createElement("script")?(c=i.documentElement,function(a){var b=i.createElement("script");b.onreadystatechange=function(){l(a),b.onreadystatechange=null,c.removeChild(b),b=null},c.appendChild(b)}):function(a){setTimeout(l,0,a)}:(e="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",m,!1):a.attachEvent("onmessage",m),function(b){a.postMessage(e+b,"*")}),j.setImmediate=function(a){"function"!=typeof a&&(a=Function(""+a));for(var c=Array(arguments.length-1),d=0;d<c.length;d++)c[d]=arguments[d+1];return g[f]={callback:a,args:c},b(f),f++},j.clearImmediate=k}function k(a){delete g[a]}function l(a){if(h)setTimeout(l,0,a);else{var b=g[a];if(b){h=!0;try{var c=b.callback,d=b.args;switch(d.length){case 0:c();break;case 1:c(d[0]);break;case 2:c(d[0],d[1]);break;case 3:c(d[0],d[1],d[2]);break;default:c.apply(void 0,d)}}finally{k(a),h=!1}}}}function m(b){b.source===a&&"string"==typeof b.data&&0===b.data.indexOf(e)&&l(+b.data.slice(e.length))}}("u"<typeof self?void 0===a?this:a:self)}).call(this,void 0!==i?i:"u">typeof self?self:{})},{}]},{},[10])(10)})}),hW=hU(),hX=A(hV(),1),hY=(a,b)=>{let c=b.replace(/-/g,"");if(32!==c.length)throw Error(`Error: Cannot extract GUID from font filename: ${b}`);let d=c.replace(/(..)/g,"$1 ").trim().split(" ").map(a=>parseInt(a,16));d.reverse();let e=a.slice(0,32).map((a,b)=>a^d[b%d.length]),f=new Uint8Array(0+e.length+Math.max(0,a.length-32));return f.set(a.slice(0,0)),f.set(e,0),f.set(a.slice(32),0+e.length),f},hZ=class{format(a,b={stack:[]}){let c=a.prepForXml(b);if(c)return c;throw Error("XMLComponent did not format correctly")}},h$=/\{([^{}]+)\}/g,h_=(a,b)=>0===b.size?a:a.replace(h$,(a,c)=>{var d;return null!=(d=b.get(c))?d:a}),h0=class{replace(a,b,c){return h_(a,new Map(b.map((a,b)=>[a.fileName,(c+b).toString()])))}getMediaData(a,b){let c=new Set(Array.from(a.matchAll(h$),([,a])=>a));return b.Array.filter(a=>c.has(a.fileName))}},h1=class{replace(a,b){return h_(a,new Map(b.map(({reference:a,instance:b,restartedListId:c,numId:d})=>[dX(a,b,c),d.toString()])))}},h2=new hZ,h3=(a,b,c,d,e=!0)=>ac(h2.format(b,{viewWrapper:{View:b,Relationships:d},file:a,stack:[]}),{indent:c,declaration:e?{standalone:"yes",encoding:"UTF-8"}:{encoding:"UTF-8"}}),h4=(a,b,c=0)=>{let d=a.PackageParts.Array.slice(c);return 0===d.length?[]:[...d.flatMap(({part:c,path:d})=>((a,b,c,d)=>{let{content:e}=b.options;if(e instanceof Uint8Array)return[{data:e,path:`word/${c}`}];if("files"in e){let b=new hX.default;for(let{path:c,content:f}of e.files)b.file(c,f instanceof Uint8Array?f:bN(h3(a,f,d,new dp)));return[{data:b.generateAsync({type:"uint8array",compression:"DEFLATE"}),path:`word/${c}`}]}let f=a.PackageParts.createRelationships(c),g=h3(a,e,d,f),h=c.slice(0,c.lastIndexOf("/")),i=c.slice(c.lastIndexOf("/")+1);return[{data:g,path:`word/${c}`},...f.RelationshipCount>0?[{data:h3(a,f,d,f,!1),path:`word/${h}/_rels/${i}.rels`}]:[]]})(a,c,d,b)),...h4(a,b,c+d.length)]},h5=["PackageParts"],h6=class{constructor(){D(this,"formatter",void 0),D(this,"imageReplacer",void 0),D(this,"numberingReplacer",void 0),this.formatter=new hZ,this.imageReplacer=new h0,this.numberingReplacer=new h1}compile(a,b,c=[]){let d=new hX.default,e=this.xmlifyFile(a,b),{PackageParts:f}=e;for(let[,a]of new Map(Object.entries(P(e,h5))))if(Array.isArray(a))for(let b of a)d.file(b.path,bN(b.data));else d.file(a.path,bN(a.data));for(let{path:a,data:b}of f)d.file(a,"string"==typeof b?bN(b):b);for(let a of c)d.file(a.path,bN(a.data));for(let b of(void 0!==a.Macros&&d.file("word/vbaProject.bin",a.Macros.project),a.Media.Array))"svg"!==b.type?d.file(`word/media/${b.fileName}`,b.data):(d.file(`word/media/${b.fileName}`,b.data),d.file(`word/media/${b.fallback.fileName}`,b.fallback.data));for(let[b,{data:c,fontKey:e}]of a.FontTable.files.entries())d.file(`word/fonts/font${b+1}.odttf`,hY(c,e));return d}xmlifyFile(a,b){var c;let d,e,f,g,h,i,j,k,l,m=ac(this.formatter.format(a.Document.View,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),n=ac(this.formatter.format(a.Comments,{viewWrapper:{View:a.Comments,Relationships:a.Comments.Relationships},file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=ac(this.formatter.format(a.FootNotes.View,{viewWrapper:a.FootNotes,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),p=ac(this.formatter.format(a.Endnotes.View,{viewWrapper:a.Endnotes,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),q=a.Document.Relationships.RelationshipCount+1,r=a.Comments.Relationships.RelationshipCount+1,s=a.FootNotes.Relationships.RelationshipCount+1,t=a.Endnotes.Relationships.RelationshipCount+1,u=this.imageReplacer.getMediaData(m,a.Media),v=this.imageReplacer.getMediaData(n,a.Media),w=this.imageReplacer.getMediaData(o,a.Media),x=this.imageReplacer.getMediaData(p,a.Media);return L(L(L(L(L({Relationships:{data:(d=dp.copy(a.Document.Relationships),u.forEach((a,b)=>{d.addRelationship(q+b,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),d.addRelationship(d.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),ac(this.formatter.format(d,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(e=this.imageReplacer.replace(m,u,q),this.numberingReplacer.replace(e,a.Numbering.ConcreteNumbering)),path:"word/document.xml"},Styles:{data:(f=ac(this.formatter.format(a.Styles,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),this.numberingReplacer.replace(f,a.Numbering.ConcreteNumbering)),path:"word/styles.xml"},Properties:{data:ac(this.formatter.format(a.CoreProperties,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},FileRelationships:{data:ac(this.formatter.format(a.FileRelationships,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:a.Headers.map((c,d)=>{let e=ac(this.formatter.format(c.View,{viewWrapper:c,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),f=this.imageReplacer.getMediaData(e,a.Media),g=dp.copy(c.Relationships);return f.forEach((a,b)=>{g.addRelationship(b,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),{data:ac(this.formatter.format(g,{viewWrapper:c,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${d+1}.xml.rels`}}),FooterRelationships:a.Footers.map((c,d)=>{let e=ac(this.formatter.format(c.View,{viewWrapper:c,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),f=this.imageReplacer.getMediaData(e,a.Media),g=dp.copy(c.Relationships);return f.forEach((a,b)=>{g.addRelationship(b,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),{data:ac(this.formatter.format(g,{viewWrapper:c,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${d+1}.xml.rels`}}),Headers:a.Headers.map((c,d)=>{let e=ac(this.formatter.format(c.View,{viewWrapper:c,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),f=this.imageReplacer.getMediaData(e,a.Media),g=this.imageReplacer.replace(e,f,0);return{data:this.numberingReplacer.replace(g,a.Numbering.ConcreteNumbering),path:`word/header${d+1}.xml`}}),Footers:a.Footers.map((c,d)=>{let e=ac(this.formatter.format(c.View,{viewWrapper:c,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),f=this.imageReplacer.getMediaData(e,a.Media),g=this.imageReplacer.replace(e,f,0);return{data:this.numberingReplacer.replace(g,a.Numbering.ConcreteNumbering),path:`word/footer${d+1}.xml`}}),CustomProperties:{data:ac(this.formatter.format(a.CustomProperties,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:ac(this.formatter.format(a.AppProperties,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:(g=this.imageReplacer.replace(o,w,s),this.numberingReplacer.replace(g,a.Numbering.ConcreteNumbering)),path:"word/footnotes.xml"},FootNotesRelationships:{data:(h=dp.copy(a.FootNotes.Relationships),w.forEach((a,b)=>{h.addRelationship(s+b,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),ac(this.formatter.format(h,{viewWrapper:a.FootNotes,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}})),path:"word/_rels/footnotes.xml.rels"},Endnotes:{data:(i=this.imageReplacer.replace(p,x,t),this.numberingReplacer.replace(i,a.Numbering.ConcreteNumbering)),path:"word/endnotes.xml"},EndnotesRelationships:{data:(j=dp.copy(a.Endnotes.Relationships),x.forEach((a,b)=>{j.addRelationship(t+b,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),ac(this.formatter.format(j,{viewWrapper:a.Endnotes,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}})),path:"word/_rels/endnotes.xml.rels"},Settings:{data:ac(this.formatter.format(a.Settings,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"}},a.Comments.IsEmpty?{}:{Comments:{data:(k=this.imageReplacer.replace(n,v,r),this.numberingReplacer.replace(k,a.Numbering.ConcreteNumbering)),path:"word/comments.xml"},CommentsRelationships:{data:(l=dp.copy(a.Comments.Relationships),v.forEach((a,b)=>{l.addRelationship(r+b,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),ac(this.formatter.format(l,{viewWrapper:{View:a.Comments,Relationships:a.Comments.Relationships},file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"}}),a.CommentsExtended?{CommentsExtended:{data:ac(this.formatter.format(a.CommentsExtended,{viewWrapper:{View:a.CommentsExtended,Relationships:a.Comments.Relationships},file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/commentsExtended.xml"}}:{}),a.CommentsIds?{CommentsIds:{data:ac(this.formatter.format(a.CommentsIds,{viewWrapper:{View:a.CommentsIds,Relationships:a.Comments.Relationships},file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/commentsIds.xml"}}:{}),{},{FontTable:{data:ac(this.formatter.format(a.FontTable.View,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:ac(this.formatter.format(a.FontTable.Relationships,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"},Theme:{data:ac(this.formatter.format(a.Theme,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/theme/theme1.xml"}},(null==(c=a.Macros)?void 0:c.events)?{MacroEvents:{data:ac(this.formatter.format(a.Macros.events,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/vbaData.xml"},MacroRelationships:{data:ac(this.formatter.format(a.Macros.relationships,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),path:"word/_rels/vbaProject.bin.rels"}}:{}),{},{PackageParts:h4(a,b),Numbering:{data:ac(this.formatter.format(a.Numbering,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},ContentTypes:{data:ac(this.formatter.format(a.ContentTypes,{viewWrapper:a.Document,file:a,stack:[]}),{indent:b,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"}})}};function h7(a,b,c,d,e,f,g){try{var h=a[f](g),i=h.value}catch(a){c(a);return}h.done?b(i):Promise.resolve(i).then(d,e)}function h8(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){var f=a.apply(b,c);function g(a){h7(f,d,e,g,h,"next",a)}function h(a){h7(f,d,e,g,h,"throw",a)}g(void 0)})}}var h9=a=>!0===a?" ":!1===a?void 0:a,ia=a=>void 0===a.Macros?"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"application/vnd.ms-word.document.macroEnabled.12",ib=class a{static pack(a,b,c){var d=this;return h8(function*(a,b,c,e=[]){return d.compiler.compile(a,h9(c),e).generateAsync({type:b,mimeType:ia(a),compression:"DEFLATE"})}).apply(this,arguments)}static toString(b,c,d=[]){return a.pack(b,"string",c,d)}static toBuffer(b,c,d=[]){return a.pack(b,"nodebuffer",c,d)}static toBase64String(b,c,d=[]){return a.pack(b,"base64",c,d)}static toBlob(b,c,d=[]){return a.pack(b,"blob",c,d)}static toArrayBuffer(b,c,d=[]){return a.pack(b,"arraybuffer",c,d)}static toStream(a,b,c=[]){let d=new hW.Stream;return this.compiler.compile(a,h9(b),c).generateAsync({type:"nodebuffer",mimeType:ia(a),compression:"DEFLATE"}).then(a=>{d.emit("data",a),d.emit("end")}),d}};D(ib,"compiler",new h6);var ic=a=>{var b;if("w:bookmarkStart"!==a.name&&"w:bookmarkEnd"!==a.name)return;let c=Number(null==(b=a.attributes)?void 0:b["w:id"]);return Number.isInteger(c)?c:void 0},id=a=>{var b;let c=ic(a);return[...void 0===c?[]:[c],...(null!=(b=a.elements)?b:[]).flatMap(id)]},ie=new hZ,ig=a=>X(a,{keepWhitespaceText:!0}),ih=a=>{var b;return null!=(b=ig(ac(ie.format(new bo({text:a})))).elements[0].elements)?b:[]},ii=a=>L(L({},a),{},{attributes:{"xml:space":"preserve"}}),ij=(a,b)=>{var c;let d=null==(c=a.elements)?void 0:c.find(a=>a.name===b);return void 0===d?[]:(null!=d.elements||(d.elements=[]),d.elements)},ik=(a,b,c)=>{let d=ij(a,"Types");d.some(a=>{var d,e;return"element"===a.type&&"Default"===a.name&&(null==a||null==(d=a.attributes)?void 0:d.ContentType)===b&&(null==a||null==(e=a.attributes)?void 0:e.Extension)===c})||d.push({attributes:{ContentType:b,Extension:c},name:"Default",type:"element"})},il=(a,b,c)=>{let d=ij(a,"Types");d.some(a=>{var b;return"element"===a.type&&"Override"===a.name&&(null==(b=a.attributes)?void 0:b.PartName)===c})||d.push({attributes:{ContentType:b,PartName:c},name:"Override",type:"element"})},im=new Set(["wp:inline","wp:anchor"]),io=new Set(["wp:docPr","wps:cNvPr","wpg:cNvPr"]),ip=new Set(["a:stCxn","a:endCxn"]),iq=(a,b)=>{var c,d;if(!b.has(null!=(c=a.name)?c:""))return;let e=Number(null==(d=a.attributes)?void 0:d.id);return Number.isInteger(e)?e:void 0},ir=a=>{var b;let c=iq(a,io);return[...void 0===c?[]:[c],...(null!=(b=a.elements)?b:[]).flatMap(ir)]},is="file",it="tableRows",iu="drawing",iv=a=>ij(a,"Relationships").map(a=>{var b,c;let d;return isNaN(d=parseInt((null!=(b=null==(c=a.attributes)||null==(c=c.Id)?void 0:c.toString())?b:"").substring(3),10))?0:d}).reduce((a,b)=>Math.max(a,b),0)+1,iw=(a,b,c,d,e)=>{let f=ij(a,"Relationships");return f.push({attributes:{Id:`rId${b}`,Type:c,Target:d,TargetMode:e},name:"Relationship",type:"element"}),f},ix=()=>({declaration:{attributes:{version:"1.0",encoding:"UTF-8",standalone:"yes"}},elements:[{type:"element",name:"Relationships",attributes:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},elements:[]}]}),iy=new Map([["wp:inline","wp:docPr"],["wp:anchor","wp:docPr"],["wpg:graphicFrame","wpg:cNvPr"],["wpc:graphicFrame","wpg:cNvPr"]]),iz=a=>{var b;return(null!=(b=a.elements)?b:[]).flatMap(a=>{var b;let c=void 0===a.name?void 0:iy.get(a.name),d=void 0===c||null==(b=a.elements)?void 0:b.find(a=>a.name===c);return[...d?[{element:a,properties:d}]:[],...iz(a)]})},iA=a=>{var b,c;return[null==(b=a.attributes)?void 0:b.descr,null==(c=a.attributes)?void 0:c.title].flatMap(a=>void 0===a?[]:[String(a)])},iB=a=>{let b=a.lastIndexOf("/");return`${a.slice(0,b+1)}_rels/${a.slice(b+1)}.rels`},iC=a=>a.replace(/(^|\/)_rels\/([^/]*)\.rels$/,"$1$2"),iD=a=>a.slice(0,a.lastIndexOf("/")+1),iE=(a,b)=>{let c=b.replace(/\\/g,"/");return(c.startsWith("/")?c:`${iD(a)}${c}`).split("/").reduce((a,b)=>""===b||"."===b?a:".."===b?a.slice(0,-1):[...a,b],[]).join("/")},iF=(a,b)=>{let c=iD(a).split("/").filter(Boolean),d=b.split("/"),e=c.findIndex((a,b)=>b>=d.length-1||d[b]!==a),f=-1===e?c.length:e;return[...c.slice(f).map(()=>".."),...d.slice(f)].join("/")},iG="[Content_Types].xml",iH=(a,b,c,d)=>{let e=new hZ,f=c=>a.has(c)||b.has(c),g=(b,c)=>{let d=a.get(iB(b));return void 0===d?void 0:ij(d,"Relationships").find(a=>{var b;return"Relationship"===a.name&&(null==(b=a.attributes)?void 0:b.Id)===c})},h=(c,d)=>{var e,g;let h=null==(e=d.attributes)?void 0:e.Target;return(null==(g=d.attributes)?void 0:g.TargetMode)==="External"||void 0===h?void 0:(c=>{if(f(c))return c;let d=(()=>{try{return decodeURI(c)}catch(a){return}})();if(void 0!==d&&f(d))return d;let e=c.toLowerCase();return[...a.keys(),...b.keys()].find(a=>a.toLowerCase()===e)})(iE(c,String(h)))};return{getRelatedPart:(b,c)=>{let d=g(b.path,c),e=void 0===d?void 0:h(b.path,d);return void 0===e?void 0:{path:e,xml:a.get(e)}},replaceRelatedPart:(d,e,f)=>{var i,j,k,l,m;let n,o,p=`word/${c.PackageParts.add(f)}`,{relationshipType:q}=f.options,r=iF(d.path,p),s=void 0===e?void 0:g(d.path,e);if(void 0===s){let b=iB(d.path),c=null!=(i=a.get(b))?i:ix();a.set(b,c);let f=null!=e?e:`rId${iv(c)}`;return(!(null==(j=c.elements)?void 0:j.some(a=>"Relationships"===a.name))&&(c.elements=[...null!=(k=c.elements)?k:[],...ix().elements]),ij(c,"Relationships")).push({type:"element",name:"Relationship",attributes:{Id:f,Type:q,Target:r}}),f}let t=h(d.path,s);return s.attributes=L(L({},Object.fromEntries(Object.entries(s.attributes).filter(([a])=>"TargetMode"!==a))),{},{Type:q,Target:r}),void 0===t||t===d.path||t===iG||t.endsWith(".rels")||[...a].some(([a,b])=>a.endsWith(".rels")&&ij(b,"Relationships").some(b=>h(iC(a),b)===t))||(a.delete(t),b.delete(t),a.delete(iB(t)),void 0!==(n=a.get(iG))&&(l=`/${t}`,(null==(o=null==(m=n.elements)?void 0:m.find(a=>"Types"===a.name))?void 0:o.elements)!==void 0&&(o.elements=o.elements.filter(a=>{var b,c;return"Override"!==a.name||String(null!=(b=null==(c=a.attributes)?void 0:c.PartName)?b:"").toLowerCase()!==l.toLowerCase()})))),String(s.attributes.Id)},format:a=>ig(ac(e.format(a,d))).elements[0]}},iI=(b=h8(function*(a){return a instanceof hX.default?a:hX.default.loadAsync("object"==typeof a&&null!==a&&"on"in a&&"function"==typeof a.on?yield new Promise((b,c)=>{let d=[];a.on("data",a=>{ArrayBuffer.isView(a)?d.push(new Uint8Array(a.buffer,a.byteOffset,a.byteLength)):"number"==typeof a?d.push(a):c(TypeError(`A template stream must give bytes, but it gave a ${typeof a}. A stream with an encoding set gives text, so do not set one.`))}),a.on("error",c),a.on("end",()=>{let a=new Uint8Array(d.reduce((a,b)=>a+("number"==typeof b?1:b.length),0));d.reduce((b,c)=>"number"==typeof c?(a[b]=c,b+1):(a.set(c,b),b+c.length),0),b(a)})}):a)}),function(a){return b.apply(this,arguments)}),iJ=new hZ,iK="word/document.xml",iL={path:"word/footnotes.xml",rootName:"w:footnotes",noteName:"w:footnote",referenceName:"w:footnoteReference",contentType:"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml",relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",create:{part:()=>new fp,mark:()=>new fm,styles:()=>[new f8({}),new ga({}),new f9({})]}},iM={path:"word/endnotes.xml",rootName:"w:endnotes",noteName:"w:endnote",referenceName:"w:endnoteReference",contentType:"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml",relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",create:{part:()=>new ff,mark:()=>new e9,styles:()=>[new gb({}),new gd({}),new gc({})]}},iN=(a,b)=>ig(ac(iJ.format(a,b))).elements[0],iO=(a,b)=>{var c,d,e;let f=b.includes(null!=(c=a.name)?c:"")?Number(null==(d=a.attributes)?void 0:d["w:id"]):0/0;return[...Number.isInteger(f)?[f]:[],...(null!=(e=a.elements)?e:[]).flatMap(a=>iO(a,b))]},iP=(a,b,c,{createContext:d,addContentTypeOverride:e,renumberBookmarks:f,renumberDrawings:g,renumberLists:h,useStyles:i})=>{let j,k=new Map(Object.entries(b).map(([a,b])=>[Number(a),b])),l=new Map,m=[...k.keys()].filter(Number.isFinite).reduce((a,b)=>Math.max(a,Math.floor(b)),0),n=new Map,o=b=>{var d,e;let f=b.name===a.referenceName?k.get(Number(null==(d=b.attributes)?void 0:d["w:id"])):void 0;return void 0===f?void 0===b.elements?b:L(L({},b),{},{elements:b.elements.map(o)}):(j=(null!=(e=j)?e:[...c.values()].flatMap(b=>iO(b,[a.noteName,a.referenceName])).reduce((a,b)=>Math.max(a,b),0))+1,n.set(j,f),L(L({},b),{},{attributes:L(L({},b.attributes),{},{"w:id":String(j)})}))};return{renumber:a=>a.map(o),write:()=>{var b;let j,k;if(0===n.size)return;let l=(k=(j=ij(null!=(b=c.get(iB(iK)))?b:{},"Relationships").find(b=>{var c;return(null==(c=b.attributes)?void 0:c.Type)===a.relationshipType}))?iE(iK,String(j.attributes.Target)):a.path,c.has(k)||(c.set(k,{declaration:{attributes:{version:"1.0",encoding:"UTF-8",standalone:"yes"}},elements:[iN(a.create.part(),d(k))]}),e(a.contentType,`/${k}`)),j||d(iK).viewWrapper.Relationships.addRelationship(bK(),a.relationshipType,iF(iK,k)),k),m=d(l),o=new Map([...new Set(n.values())].map(b=>{let c=iN(a.create.mark(),m);return[b,i(h(f(b.children.map(a=>iN(a,m)).map((a,b)=>{var d,e;let f,g;return 0===b?(g=+((null==(e=(f=null!=(d=a.elements)?d:[])[0])?void 0:e.name)==="w:pPr"),L(L({},a),{},{elements:[...f.slice(0,g),c,...f.slice(g)]})):a}))))]}));ij(c.get(l),a.rootName).push(...[...n].map(([b,c])=>({type:"element",name:a.noteName,attributes:{"w:id":String(b)},elements:[...g(o.get(c))]})));let p=c.get("word/styles.xml");if(p){let b=ij(p,"w:styles"),c=new Set(b.map(a=>{var b;return null==(b=a.attributes)?void 0:b["w:styleId"]}));b.push(...a.create.styles().map(a=>iN(a,m)).filter(a=>{var b;return!c.has(null==(b=a.attributes)?void 0:b["w:styleId"])}))}},carry:(a,b)=>{let c=l.get(a);return void 0!==c?c:(m++,k.set(m,b),l.set(a,m),m)}}},iQ=new hZ,iR="word/document.xml",iS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",iT=a=>a.reduce((a,b)=>Math.max(a,b),0),iU={nameOf:a=>"element"===a.type?a.name:void 0,contentOf:a=>a.elements,attributeOf:(a,b)=>{var c;return null==(c=a.attributes)?void 0:c[b]},textOf:a=>{var b;return(null!=(b=a.elements)?b:[]).filter(({type:a})=>"text"===a).map(({text:a})=>String(a)).join("")},textElement:a=>({type:"element",name:"w:t",attributes:{"xml:space":"preserve"},elements:[{type:"text",text:a}]}),writeClean:(a,b)=>{var c;/^\s*(PAGEREF|TOC)\b/i.test(b)&&(null==(c=a.attributes)?void 0:c["w:dirty"])!==void 0&&(a.attributes=Object.fromEntries(Object.entries(a.attributes).filter(([a])=>"w:dirty"!==a)))},setSimpleFieldResult:(a,b)=>{a.elements=[{type:"element",name:"w:r",elements:[iU.textElement(b)]}]}},iV="word/document.xml",iW=[80,75,3,4],iX=(c=h8(function*(a){if(iW.every((b,c)=>a[c]===b))try{let b=yield hX.default.loadAsync(a),c=new Map,d=new Map;for(let[a,e]of Object.entries(b.files))e.dir||(/\.(xml|rels)$/.test(a)?c.set(a,ig((yield e.async("text")))):d.set(a,(yield e.async("uint8array"))));let e=yield iY(c,d);return L({parts:c,binaryParts:d},e.size>0?{importedDocuments:e}:{})}catch(a){return}}),function(a){return c.apply(this,arguments)}),iY=(d=h8(function*(a,b){let c=new Map;for(let[f,g]of a){var d,e;if(f.endsWith(".rels"))for(let{attributes:a={}}of null!=(d=null==(e=iZ(g))?void 0:e.elements)?d:[]){let d=iE(iC(f),String(a.Target)),e=b.get(d),g="http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk"===a.Type&&"External"!==a.TargetMode&&e?yield iX(e):void 0;g&&c.set(d,g)}}return c}),function(a,b){return d.apply(this,arguments)}),iZ=a=>{var b;return null==a||null==(b=a.elements)?void 0:b.find(({type:a})=>"element"===a)},i$=(e=h8(function*(a,b,c=new Map){var d,e;let f=iZ(a.get(iV));if(!f)return;let g=yield iY(a,c),h=b(L({parts:a,binaryParts:c},g.size>0?{importedDocuments:g}:{})),i=cV(iU,f,h,{blank:!0});for(let{attributes:b={}}of null!=(d=null==(e=iZ(a.get(iB(iV))))?void 0:e.elements)?d:[]){let c=/\/(header|footer)$/.test(String(b.Type))?iZ(a.get(iE(iV,String(b.Target)))):void 0;c&&cW(iU,c,h,{blank:!0,sectionPageCount:i.get(String(b.Id))})}}),function(a,b){return e.apply(this,arguments)}),i_=class extends Error{constructor(a){super(`Token ${a} not found`),this.name="TokenNotFoundError"}},i0=(a,b)=>(a.elements=ih(b),a),i1=a=>{if("w:p"!==a.element.name)throw Error(`Invalid node type: ${a.element.name}`);if(!a.element.elements)return{text:"",runs:[],index:-1,pathToParagraph:[]};let b=0,c=a.element.elements.map((a,b)=>({element:a,i:b})).filter(({element:a})=>"w:r"===a.name).map(({element:a,i:c})=>{let d=i2(a,c,b);return b+=d.text.length,d}).filter(a=>!!a);return{text:c.reduce((a,b)=>a+b.text,""),runs:c,index:a.index,pathToParagraph:i3(a)}},i2=(a,b,c)=>{if(!a.elements)return{text:"",parts:[],index:-1,start:c,end:c};let d=c,e=a.elements.map((a,b)=>{var c,e;if("w:t"!==a.name||!a.elements||0===a.elements.length)return;let f=null!=(c=null==(e=a.elements[0].text)?void 0:e.toString())?c:"",g=d;return d+=f.length,{text:f,index:b,start:g,end:g+f.length-1}}).filter(a=>!!a).map(a=>a);return{text:e.reduce((a,b)=>a+b.text,""),parts:e,index:b,start:c,end:e.length>0?e[e.length-1].end:c}},i3=a=>a.parent?[...i3(a.parent),a.index]:[a.index],i4=a=>{var b,c;return null!=(b=null==(c=a.element.elements)?void 0:c.map((b,c)=>({element:b,index:c,parent:a})))?b:[]},i5=a=>{let b,c=[],d=[...i4({element:a,index:0,parent:void 0})];for(;d.length>0;)"w:p"===(b=d.shift()).element.name&&(c=[...c,i1(b)]),d.push(...i4(b));return c},i6=(a,b)=>i5(a).filter(a=>a.text.includes(b)),i7=({json:a,patch:b,patchText:c,context:d,keepOriginalStyles:e=!0,recursive:f=!0,renumberIds:g=a=>a})=>{let h=i6(a,c);if(0===h.length)return{element:a,didFindOccurrence:!1};let i=[...h].reverse();for(let h of b.type===is?jf(i):i)if(b.type===is){var j;let c=jh(a,h.pathToParagraph),e=ji(h.pathToParagraph),f=i8(b,d,g),i="w:tc"===c.name&&e===c.elements.length-1&&(null==(j=f[f.length-1])?void 0:j.name)!=="w:p"?[{type:"element",name:"w:p"}]:[];c.elements.splice(e,1,...f,...i)}else{let i=jg(a,h.pathToParagraph),j=h,k=0;do{let a=i9({paragraphElement:i,renderedParagraph:j,patchText:c,fromIndex:k,children:i8(b,d,g),keepOriginalStyles:e});k=(j=i1({element:i,index:h.index,parent:void 0})).runs.filter(b=>b.index<a).reduce((a,b)=>a+b.text.length,0)}while(f&&j.text.includes(c,k))}return{element:a,didFindOccurrence:!0}},i8=(a,b,c)=>c(a.children.flatMap(a=>{var b;return null!=(b=a.writtenAs)?b:a}).flatMap(a=>{let c=a.prepForXml(b);return c?[ig(ac(c)).elements[0]]:[]})),i9=({paragraphElement:a,renderedParagraph:b,patchText:c,fromIndex:d,children:e,keepOriginalStyles:f})=>{var g,h;let i,j;(({paragraphElement:a,renderedParagraph:b,originalText:c,replacementText:d,fromIndex:e=0})=>{let f=b.text.indexOf(c,e),g=f+c.length-1,h=0;for(let c of b.runs)for(let{text:b,index:e,start:i,end:j}of c.parts)switch(h){case 0:if(f>=i&&f<=j){let k=f-i,l=Math.min(g,j)-i;if(""===b.substring(k,l+1))continue;let m=b.substring(0,k)+d+b.substring(l+1);i0(a.elements[c.index].elements[e],m),h=1;continue}break;case 1:if(g<=j){let d=b.substring(g-i+1);i0(a.elements[c.index].elements[e],d);let f=a.elements[c.index].elements[e];a.elements[c.index].elements[e]=ii(f),h=2}else i0(a.elements[c.index].elements[e],"")}})({paragraphElement:a,renderedParagraph:b,originalText:c,replacementText:"￿",fromIndex:d});let k=(a=>{var b,c,d,e;for(let f=0;f<(null!=(b=a.elements)?b:[]).length;f++){let b=a.elements[f];if("element"===b.type&&"w:r"===b.name){for(let a of(null!=(c=b.elements)?c:[]).filter(a=>"element"===a.type&&"w:t"===a.name))if((null==(d=a.elements)?void 0:d[0])&&(null==(e=a.elements[0].text)?void 0:e.includes("￿")))return f}}throw new i_("￿")})(a),l=a.elements[k],{left:m,right:n}=(i=-1,j=null!=(g=null==(h=l.elements)?void 0:h.map((a,b)=>{if(-1!==i||"element"!==a.type||"w:t"!==a.name)return a;{var c,d;let e=(null!=(c=null==(d=a.elements)||null==(d=d[0])?void 0:d.text)?c:"").split("￿"),f=e.map(b=>L(L(L({},a),ii(a)),{},{elements:ih(b)}));return e.length>1&&(i=b),f}}).flat())?g:[],{left:L(L({},JSON.parse(JSON.stringify(l))),{},{elements:j.slice(0,i+1)}),right:L(L({},JSON.parse(JSON.stringify(l))),{},{elements:j.slice(i+1)})}),o=l.elements.find(a=>"element"===a.type&&"w:rPr"===a.name),p=f&&o?e.map(a=>ja(a,o)):e,q=o?L(L({},n),{},{elements:[o,...n.elements]}):n;return a.elements.splice(k,1,m,...p,q),k+1+p.length},ja=(a,b)=>"w:r"===a.name?jb(a,b):a.elements?L(L({},a),{},{elements:a.elements.map(a=>ja(a,b))}):a,jb=(a,b)=>{let c=je(a).find(a=>"element"===a.type&&"w:rPr"===a.name);if(!c)return L(L({},a),{},{elements:[b,...je(a)]});let d=new Set(je(c).map(a=>a.name)),e=[...je(b).filter(a=>!d.has(a.name)),...je(c)],f=L(L({},c),{},{elements:[...e].sort((a,b)=>jd(a)-jd(b))});return L(L({},a),{},{elements:je(a).map(a=>a===c?f:a)})},jc=["w:rStyle","w:rFonts","w:b","w:bCs","w:i","w:iCs","w:caps","w:smallCaps","w:strike","w:dstrike","w:outline","w:shadow","w:emboss","w:imprint","w:noProof","w:snapToGrid","w:vanish","w:webHidden","w:color","w:spacing","w:w","w:kern","w:position","w:sz","w:szCs","w:highlight","w:u","w:effect","w:bdr","w:shd","w:fitText","w:vertAlign","w:rtl","w:cs","w:em","w:lang","w:eastAsianLayout","w:specVanish","w:oMath","w14:glow","w14:shadow","w14:reflection","w14:textOutline","w14:textFill","w14:scene3d","w14:props3d","w14:ligatures","w14:numForm","w14:numSpacing","w14:stylisticSets","w14:cntxtAlts"],jd=a=>{var b;if("w:rPrChange"===a.name)return jc.length+1;let c=jc.indexOf(null!=(b=a.name)?b:"");return -1===c?jc.length:c},je=a=>{var b;return null!=(b=a.elements)?b:[]},jf=a=>a.filter(b=>!a.some(a=>{let c,d;return c=b.pathToParagraph,d=a.pathToParagraph,c.length>d.length&&d.every((a,b)=>c[b]===a)})),jg=(a,b)=>{let c=a;for(let a=1;a<b.length;a++){let d=b[a];c=c.elements[d]}return c},jh=(a,b)=>jg(a,b.slice(0,b.length-1)),ji=a=>a[a.length-1],jj=new hZ,jk="word/styles.xml",jl=new Set(["w:pStyle","w:rStyle","w:tblStyle","w:basedOn","w:next","w:link"]),jm=a=>{var b;return String(null==(b=a.attributes)?void 0:b["w:styleId"])},jn=a=>{var b;let c=null==(b=a.elements)||null==(b=b.find(a=>"w:name"===a.name))||null==(b=b.attributes)?void 0:b["w:val"];return void 0===c?void 0:String(c).toLowerCase()},jo={type:"paragraph",children:[]},jp=({json:a,key:b,patch:c,delimiters:{start:d,end:e},patchPlaceholder:f,renumberDrawings:g})=>{let h=`${d}${b}.`;for(let d of jq(a,h)){let a=ju(d.elements,h,e),i=c.rows.flatMap((c,e)=>{let h={type:"element",name:"w:tbl",elements:[...0===e?d.elements.map(jv):g(jy(d.elements))]},i=new Map(Object.entries(c).flatMap(([a,b])=>void 0===b?[]:[[a,b]]));for(let[a,c]of i)f(h,`${b}.${a}`,c);for(let c of a.filter(a=>!i.has(a)))f(h,`${b}.${c}`,jo);return h.elements});d.parent.elements.splice(d.parent.elements.indexOf(d.elements[0]),d.elements.length,...i),d.table&&!jt(d.table.element)&&d.table.parent.elements.splice(d.table.parent.elements.indexOf(d.table.element),1)}},jq=(a,b)=>{let c=i6(a,b).flatMap(b=>{let c=jr(a,b.pathToParagraph);return c?[c]:[]}),d=c.filter(a=>!c.some(b=>js(a.path,b.path))).filter((a,b,c)=>c.findIndex(b=>b.row===a.row)===b);return[...new Set(d.map(a=>a.parent))].flatMap(a=>{let b=a.elements.filter(a=>"w:tr"===a.name),c=d.filter(b=>b.parent===a).map(a=>b.indexOf(a.row)).sort((a,b)=>a-b),{table:e}=d.find(b=>b.parent===a);return c.reduce((a,b)=>{let c=a[a.length-1];return(null==c?void 0:c[c.length-1])===b-1?[...a.slice(0,-1),[...c,b]]:[...a,[b]]},[]).map(c=>{let d=a.elements.indexOf(b[c[0]]),f=a.elements.indexOf(b[c[c.length-1]]);return{parent:a,table:e,elements:a.elements.slice(d,f+1)}})})},jr=(a,b)=>{let c,d,e=a;for(let a=1;a<b.length;a++){let f=e.elements[b[a]];"w:tbl"===f.name&&(d={element:f,parent:e}),"w:tr"===f.name&&(c={parent:e,table:d,row:f,path:b.slice(0,a+1)}),e=f}return c},js=(a,b)=>a.length>b.length&&b.every((b,c)=>a[c]===b),jt=a=>{var b;return(null!=(b=a.elements)?b:[]).some(a=>"w:tr"===a.name||"w:tblPr"!==a.name&&"w:tblGrid"!==a.name&&jt(a))},ju=(a,b,c)=>[...new Set(i6({elements:[...a]},b).flatMap(({text:a})=>a.split(b).slice(1).flatMap(a=>{let b=a.indexOf(c);return b>0?[a.slice(0,b)]:[]})))],jv=a=>JSON.parse(JSON.stringify(a)),jw=["w14:paraId","w14:textId"],jx=["w:bookmarkStart","w:bookmarkEnd"],jy=(a,b)=>a.filter(a=>{var c;return!jx.includes(null!=(c=a.name)?c:"")&&((null==b?void 0:b.name)!=="w:sdtPr"||"w:id"!==a.name)}).map(a=>L(L(L({},a),void 0===a.attributes?{}:{attributes:Object.fromEntries(Object.entries(a.attributes).filter(([a])=>!jw.includes(a)))}),void 0===a.elements?{}:{elements:[...jy(a.elements,a)]})),jz=new Map([["dk1","dark1"],["lt1","light1"],["dk2","dark2"],["lt2","light2"],["accent1","accent1"],["accent2","accent2"],["accent3","accent3"],["accent4","accent4"],["accent5","accent5"],["accent6","accent6"],["hlink","hyperlink"],["folHlink","followedHyperlink"]]),jA=a=>{var b;return null==(b=a.name)?void 0:b.slice(a.name.indexOf(":")+1)},jB=(a,b)=>{var c;return null==a||null==(c=a.elements)?void 0:c.find(a=>jA(a)===b)},jC=(f=h8(function*(a,b){let c=a.file(b);if(null!==c){let a;return 255===(a=yield c.async("uint8array"))[0]&&254===a[1]||254===a[0]&&255===a[1]?void 0:ig((yield c.async("text")))}}),function(a,b){return f.apply(this,arguments)}),jD=(g=h8(function*(a){var b,c;let d=null==(b=jB((yield jC(a,"word/_rels/document.xml.rels")),"Relationships"))||null==(b=b.elements)?void 0:b.find(a=>{var b;return(null==(b=a.attributes)?void 0:b.Type)==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),e=null==d||null==(c=d.attributes)?void 0:c.Target;return"string"==typeof e?jC(a,iE("word/document.xml",e)):void 0}),function(a){return g.apply(this,arguments)}),jE=(h=h8(function*(a){var b;let c=yield jD(a);if(void 0===c)return;let d=jB(jB(jB(c,"theme"),"themeElements"),"clrScheme");return aK(Object.fromEntries((null!=(b=null==d?void 0:d.elements)?b:[]).flatMap(a=>{var b,c;let d,e=jz.get(null!=(b=jA(a))?b:""),f="string"==typeof(d=null==(c=a.elements)?void 0:c.map(a=>{var b,c;return"srgbClr"===jA(a)?null==(b=a.attributes)?void 0:b.val:"sysClr"===jA(a)?null==(c=a.attributes)?void 0:c.lastClr:void 0}).find(a=>void 0!==a))&&/^[0-9A-Fa-f]{6}$/.test(d)?d.toUpperCase():void 0;return e&&f?[[e,f]]:[]})))}),function(a){return h.apply(this,arguments)}),jF=(a,b,{inTableRow:c})=>{if((null==b?void 0:b.type)===it&&Array.isArray(b.rows)){for(let c of b.rows){if("object"!=typeof c||null===c)throw Error(`Invalid patch "${a}". Expected each of its rows to be an object of patches, by the name of their field`);for(let[b,d]of Object.entries(c))void 0!==d&&jF(`${a}.${b}`,d,{inTableRow:!0})}return}if(!((null==b?void 0:b.type)===iu?!c&&"function"==typeof b.patch:(null==b?void 0:b.type)!==it&&Array.isArray(null==b?void 0:b.children)))throw Error(`Invalid patch "${a}". Expected { type: PatchType.PARAGRAPH or PatchType.DOCUMENT, children: [...] }, ${c?"or { type: PatchType.TABLE_ROWS, rows: [...] }":"{ type: PatchType.TABLE_ROWS, rows: [...] }, or a drawing patch such as ChartDataPatch from docx/charts"}`)},jG=new h0,jH=new Uint8Array([255,254]),jI=new Uint8Array([254,255]),jJ=(a,b)=>{if(a.length!==b.length)return!1;for(let c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0};h8(function*({outputType:a,data:b,patches:c,keepOriginalStyles:d,placeholderDelimiters:e={start:"{{",end:"}}"},recursive:f=!0,footnotes:g,endnotes:h,numbering:i={config:[]},pageNumbers:j}){var k,l,m,n,o,p;let q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F=yield iI(b),G=new Map,H=yield jE(F),I=[],J={Media:new fu,Numbering:new fO(i),Theme:H&&{Colors:H},FootNotes:{View:{idOf:(a,b,c)=>_("footnotes",a,b,c)}},Endnotes:{View:{idOf:(a,b,c)=>_("endnotes",a,b,c)}},PackageParts:new fP({addOverride:(a,b)=>I.push({contentType:a,partName:b})},new Set(Object.keys(F.files).filter(a=>a.startsWith("word/")).map(a=>a.slice(5))))},K=new Map,M=[],N=[],O=!1,P=new Map;if(!(null==e?void 0:e.start.trim())||!(null==e?void 0:e.end.trim()))throw Error("Both start and end delimiters must be non-empty strings.");let{start:Q,end:R}=e;for(let[a,b]of Object.entries(c))jF(a,b,{inTableRow:!1});for(let[a,b]of Object.entries(F.files)){let c=yield b.async("uint8array"),d=c.slice(0,2);if(jJ(d,jH)||jJ(d,jI)||!a.endsWith(".xml")&&!a.endsWith(".rels")){P.set(a,c);continue}let e=ig((yield b.async("text")));if("word/document.xml"===a){let a=null==(k=e.elements)?void 0:k.find(a=>"w:document"===a.name);if(a&&a.attributes){for(let b of["mc","wp","r","w15","m"])a.attributes[`xmlns:${b}`]=eU[b];a.attributes["mc:Ignorable"]=`${a.attributes["mc:Ignorable"]||""} w15`.trim()}}K.set(a,e)}let S=(q=new Set(n=[...K.values()].flatMap(id)),r=new Map,s=n.reduce((a,b)=>Math.max(a,b),0),t=a=>{let b=ic(a);return L(L(L({},a),void 0===b?{}:{attributes:L(L({},a.attributes),{},{"w:id":String((a=>{let b=r.get(a);if(void 0!==b)return b;let c=q.has(a)?s+1:a;return s=Math.max(s,c),q.add(c),r.set(a,c),c})(b))})}),void 0===a.elements?{}:{elements:a.elements.map(t)})},a=>a.map(t)),T=(u=new Set(o=[...K.values()].flatMap(ir)),v=o.reduce((a,b)=>Math.max(a,b),0),w=a=>{let b,c=new Map([...new Set((b=a=>{var c;let d=iq(a,io);return[...void 0===d?[]:[d],...(null!=(c=a.elements)?c:[]).flatMap(a=>{var c;return im.has(null!=(c=a.name)?c:"")?[]:b(a)})]})(a))].map(a=>{let b;return[a,(b=u.has(a)?v+1:a,v=Math.max(v,b),u.add(b),b)]})),d=b=>{var e,f;if(b!==a&&im.has(null!=(e=b.name)?e:""))return w(b);let g=null!=(f=iq(b,io))?f:iq(b,ip),h=void 0===g?void 0:c.get(g);return L(L(L({},b),void 0===h?{}:{attributes:L(L({},b.attributes),{},{id:String(h)})}),void 0===b.elements?{}:{elements:b.elements.map(d)})};return d(a)},x=a=>{var b;return im.has(null!=(b=a.name)?b:"")?w(a):L(L({},a),void 0===a.elements?{}:{elements:a.elements.map(x)})},a=>a.map(x)),U=new Map,V=a=>{let b=U.get(a);if(b)return b;let c={Relationships:{addRelationship:(b,c,d,e)=>{N.push({key:a,id:b,type:c,target:d,targetMode:e})}}};return U.set(a,c),c},W=a=>({file:J,viewWrapper:V(a),stack:[]}),X=(a,b)=>{I.push({contentType:a,partName:b})},Y=(A=new Set((z=ij(null!=(p=K.get(jk))?p:{},"w:styles").filter(a=>"w:style"===a.name)).map(jm)),B=a=>{let b;return null!=y||(b=W(jk),y=new Map(Object.values(go()).map(a=>ig(ac(jj.format(a,b))).elements[0]).filter(a=>"w:style"===a.name).map(a=>[jm(a),a]))),y.get(a)},C=new Set,D=new Map,E=a=>{var b,c;return jl.has(null!=(b=a.name)?b:"")?L(L({},a),{},{attributes:L(L({},a.attributes),{},{"w:val":(c=String(a.attributes["w:val"]),D.has(c)||D.set(c,(a=>{let b=A.has(a)?void 0:B(a);if(void 0===b)return a;let c=z.find(a=>{var c,d;return(null==(c=a.attributes)?void 0:c["w:type"])===(null==(d=b.attributes)?void 0:d["w:type"])&&jn(a)===jn(b)});return void 0!==c?jm(c):(C.add(a),a)})(c)),D.get(c))})}):void 0===a.elements?a:L(L({},a),{},{elements:a.elements.map(E)})},{use:a=>a.map(E),write:()=>{let a=K.get(jk);if(!a)return;let b=ij(a,"w:styles"),c=new Set(b.map(jm));for(let a of C)c.has(a)||(c.add(a),b.push(E(B(a))))}}),Z=((a,b,{createContext:c,addContentTypeOverride:d})=>{let e,f=new Map,g=()=>{var a;return ij(null!=(a=b.get(iB(iR)))?a:{},"Relationships").find(a=>{var b;return(null==(b=a.attributes)?void 0:b.Type)===iS})},h=(a=g())=>a?iE(iR,String(a.attributes.Target)):"word/numbering.xml",i=(a,c)=>{var d;return ij(null!=(d=b.get(h()))?d:{},"w:numbering").filter(b=>b.name===a).map(a=>Number(a.attributes[c]))},j=b=>{var c;let d,g="w:numId"===b.name?(b=>{if("1"===b)return a.ConcreteNumbering.find(({reference:a})=>"default-bullet-numbering"===a);if(!b.startsWith("{"))return;let c=a.ConcreteNumbering.find(({reference:a,instance:c})=>b===`{${a}-${c}}`);if(!c){let a=b.slice(1,-1).replace(/-\d+$/,"");throw Error(`A paragraph in a patch uses the numbering "${a}", which isn't in the numbering option of patchDocument. Add it there with its levels, as in a Document`)}return c})(String(b.attributes["w:val"])):void 0;return void 0===g?void 0===b.elements?b:L(L({},b),{},{elements:b.elements.map(j)}):L(L({},b),{},{attributes:L(L({},b.attributes),{},{"w:val":String(void 0!==(d=f.get(g.numId))?d:(e=(null!=(c=e)?c:iT(i("w:num","w:numId")))+1,f.set(g.numId,e),e))})})};return{renumber:a=>a.map(j),write:()=>{var e,j;let k,l,m;if(0===f.size)return;let n=(k=c(h()),ig(ac(iQ.format(a,k))).elements[0]),o=a=>Number(a.elements.find(a=>"w:abstractNumId"===a.name).attributes["w:val"]),p=n.elements.filter(a=>"w:num"===a.name&&f.has(Number(a.attributes["w:numId"]))),q=iT(i("w:abstractNum","w:abstractNumId")),r=new Map([...new Set(p.map(o))].map((a,b)=>[a,q+b+1])),s=n.elements.flatMap(a=>{let b="w:abstractNum"===a.name?r.get(Number(a.attributes["w:abstractNumId"])):void 0;return void 0===b?[]:[L(L({},a),{},{attributes:L(L({},a.attributes),{},{"w:abstractNumId":String(b)})})]}),t=(m=h(l=g()),b.has(m)||(b.set(m,{declaration:{attributes:{version:"1.0",encoding:"UTF-8",standalone:"yes"}},elements:[L(L({},n),{},{elements:[]})]}),d("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml",`/${m}`)),l||c(iR).viewWrapper.Relationships.addRelationship(bK(),iS,iF(iR,m)),m),u=b.get(t).elements.find(a=>"w:numbering"===a.name);u.attributes=L(L(L({},Object.fromEntries(Object.entries(n.attributes).filter(([a])=>a.startsWith("xmlns:")))),u.attributes),{},{"mc:Ignorable":[...new Set([...String(null!=(e=null==(j=u.attributes)?void 0:j["mc:Ignorable"])?e:"").split(" "),...String(n.attributes["mc:Ignorable"]).split(" ")])].filter(a=>""!==a).join(" ")});let v=ij(b.get(t),"w:numbering"),w=a=>{let b=v.findIndex(b=>a.includes(b.name));return -1===b?v.length:b};v.splice(w(["w:num","w:numIdMacAtCleanup"]),0,...s),v.splice(w(["w:numIdMacAtCleanup"]),0,...p.map(a=>L(L({},a),{},{attributes:L(L({},a.attributes),{},{"w:numId":String(f.get(Number(a.attributes["w:numId"])))}),elements:a.elements.map(b=>"w:abstractNumId"===b.name?L(L({},b),{},{attributes:{"w:val":String(r.get(o(a)))}}):b)})))}}})(J.Numbering,K,{createContext:W,addContentTypeOverride:X}),$=(({footnotes:a={},endnotes:b={}},c,d)=>{let e={footnotes:iP(iL,a,c,d),endnotes:iP(iM,b,c,d)};return{carry:(a,b,c)=>e[a].carry(b,c),renumber:a=>Object.values(e).reduce((a,b)=>b.renumber(a),a),write:()=>{for(let a of Object.values(e))a.write()}}})({footnotes:g,endnotes:h},K,{createContext:W,addContentTypeOverride:X,renumberBookmarks:S,renumberDrawings:T,renumberLists:Z.renumber,useStyles:Y.use}),_=(a,b,c,d)=>d.viewWrapper===V("word/document.xml")?$.carry(a,b,c):void 0;(({parts:a,binaryParts:b,file:c,patches:d,delimiters:e},f)=>{let g=d.map(([a,b])=>({placeholder:`${e.start}${a}${e.end}`,patch:b}));for(let{drawing:d,patch:e}of[...a].filter(([a])=>a.startsWith("word/")&&!a.endsWith(".rels")).flatMap(([a,b])=>iz(b).flatMap(c=>{let d=iA(c.properties),e=g.filter(({placeholder:a})=>d.some(b=>b.includes(a)));if(e.length>1){var f,h;throw Error(`The drawing "${null!=(f=null==(h=c.properties.attributes)?void 0:h.name)?f:""}" in ${a} has the placeholders ${e.map(({placeholder:a})=>a).join(" and ")} in its alt text. A drawing can only be patched once`)}return e.map(({placeholder:d,patch:e})=>({drawing:L(L({placeholder:d},c),{},{part:{path:a,xml:b}}),patch:e}))})))e.patch(d,iH(a,b,c,f(d.part.path)))})({parts:K,binaryParts:P,file:J,patches:Object.entries(c).flatMap(([a,b])=>b.type===iu?[[a,b]]:[]),delimiters:{start:Q,end:R}},W);let aa=Object.entries(c).flatMap(([a,b])=>b.type===iu?[]:[[a,b]]),ab=[...aa.filter(([,a])=>a.type===it),...aa.filter(([,a])=>a.type!==it)];for(let[a,b]of[...K]){if(!a.startsWith("word/")||a.endsWith(".xml.rels"))continue;let c=W(a);G.set(a,c);let e=(b,g,h)=>{if(h.type===it)return void jp({json:b,key:g,patch:h,delimiters:{start:Q,end:R},patchPlaceholder:e,renumberDrawings:T});let i=[],{didFindOccurrence:j}=i7({json:b,patch:L(L({},h),{},{children:h.children.flatMap(a=>a instanceof dR?a.writtenAs:[a]).map(b=>{if(!(b instanceof dO))return b;{let{target:c,anchor:d}=dW(b.options.link),e=new dM(b.options.children,bK(),d,b.options.link);return i.push({key:a,id:e.linkId,type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",target:c,targetMode:cr}),e}})}),patchText:`${Q}${g}${R}`,context:c,keepOriginalStyles:d,recursive:f,renumberIds:a=>Y.use(Z.renumber($.renumber(S(T(a)))))});j&&N.push(...i)};for(let[a,c]of ab)e(b,a,c)}for(let[a,b]of($.write(),Z.write(),Y.write(),K)){if(!a.startsWith("word/")||a.endsWith(".xml.rels"))continue;let c=jG.getMediaData(JSON.stringify(b),J.Media);c.length>0&&(O=!0,M.push({key:a,mediaDatas:c}))}for(let{key:a,mediaDatas:b}of M){let c=iB(a),d=null!=(l=K.get(c))?l:ix();K.set(c,d);let e=iv(d),f=jG.replace(JSON.stringify(K.get(a)),b,e);K.set(a,JSON.parse(f));for(let a=0;a<b.length;a++){let{fileName:c}=b[a];iw(d,e+a,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${c}`)}}for(let{key:a,id:b,type:c,target:d,targetMode:e}of N){let f=iB(a),g=null!=(m=K.get(f))?m:ix();K.set(f,g),iw(g,b,c,d,e)}j&&(yield i$(K,j,P));let ad=h4(J,void 0);if(O||I.length>0){let a=K.get("[Content_Types].xml");if(!a)throw Error("Could not find content types file");for(let{contentType:b,partName:c}of(O&&(ik(a,"image/png","png"),ik(a,"image/jpeg","jpeg"),ik(a,"image/jpeg","jpg"),ik(a,"image/bmp","bmp"),ik(a,"image/gif","gif"),ik(a,"image/svg+xml","svg")),I))il(a,b,c)}let ae=new hX.default;for(let[a,b]of K){let c=af(b);ae.file(a,bN(c))}for(let[a,b]of P)ae.file(a,b);for(let{data:a,fileName:b}of J.Media.Array)ae.file(`word/media/${b}`,a);for(let{path:a,data:b}of ad)ae.file(a,"string"==typeof b?bN(b):b);return ae.generateAsync({type:a,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}),h8(function*({data:a}){let b=yield iI(a),c=new Set;for(let[a,d]of Object.entries(b.files))if((a.endsWith(".xml")||a.endsWith(".rels"))&&a.startsWith("word/")&&!a.endsWith(".xml.rels")){let a=ig((yield d.async("text")));[...i5(a).map(a=>a.text),...iz(a).flatMap(({properties:a})=>iA(a))].forEach(a=>jK(a).forEach(a=>c.add(a)))}return Array.from(c)});var jK=a=>{var b;let c=RegExp("(?<=\\{\\{).+?(?=\\}\\})","gs");return null!=(b=a.match(c))?b:[]};a.s(["AlignmentType",0,aE,"Document",0,gB,"HeadingLevel",0,{HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"},"ImageRun",0,cI,"Packer",0,ib,"Paragraph",0,d5,"TextRun",0,br])}];
2
+
3
+ //# sourceMappingURL=node_modules_docx_dist_index_mjs_07znba89yz2vi._.js.map