promptfoo 0.120.24 → 0.120.26

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 (304) hide show
  1. package/README.md +35 -22
  2. package/dist/src/{ListApp-55OAHww3.js → ListApp-D3DG0F8h.js} +1 -1
  3. package/dist/src/{accounts-BwVGYllP.cjs → accounts-BzEY8H3v.cjs} +5 -5
  4. package/dist/src/{accounts-BOlMHrvn.js → accounts-DHHiXsy6.js} +6 -6
  5. package/dist/src/{accounts-DxR9x_En.js → accounts-R3gfCR_g.js} +5 -5
  6. package/dist/src/{agentic-utils-t9-1raty.js → agentic-utils-D6_gzOUF.js} +3 -3
  7. package/dist/src/{agents-DMpQ860j.cjs → agents-C7BiinFI.cjs} +7 -7
  8. package/dist/src/{agents-9Z7pO8yx.js → agents-Cao4i7AX.js} +8 -8
  9. package/dist/src/{agents-DjExVR3v.js → agents-Cnph5GLD.js} +2 -2
  10. package/dist/src/{agents-CI0Ad69d.cjs → agents-CwM7re15.cjs} +5 -5
  11. package/dist/src/{agents-BwI-Tm5m.js → agents-DETIQHqF.js} +7 -7
  12. package/dist/src/{agents-CRAmwjo-.js → agents-DYIT-hQy.js} +6 -6
  13. package/dist/src/{agents-BbIpDhgp.js → agents-GiUianme.js} +5 -5
  14. package/dist/src/{agents-yL5DzIKY.js → agents-v4cW_ZgC.js} +2 -2
  15. package/dist/src/{aimlapi-xHHqwNg8.js → aimlapi-CMJpKK-B.js} +13 -13
  16. package/dist/src/{aimlapi-BM9P45Bp.js → aimlapi-DMF6v_vb.js} +15 -15
  17. package/dist/src/{aimlapi-DKo7IxJg.cjs → aimlapi-DoGLcQW_.cjs} +14 -14
  18. package/dist/src/{aimlapi-ivzDkqbs.js → aimlapi-DtSf1ykJ.js} +2 -2
  19. package/dist/src/app/assets/index-BOgkICuY.css +1 -0
  20. package/dist/src/app/assets/index-CSgqn_Vd.js +428 -0
  21. package/dist/src/app/assets/{vendor-charts-DnwydkkY.js → vendor-charts-CYyo8R8v.js} +1 -1
  22. package/dist/src/app/assets/{vendor-markdown-DjKAU15k.js → vendor-markdown-DSmzq4Jh.js} +1 -1
  23. package/dist/src/app/assets/vendor-react-AtKqiNEf.js +4 -0
  24. package/dist/src/app/assets/{vendor-syntax-Dc86c4Bu.js → vendor-syntax-D06x6TQF.js} +1 -1
  25. package/dist/src/app/index.html +6 -6
  26. package/dist/src/app/tsconfig.app.tsbuildinfo +1 -1
  27. package/dist/src/{audio-B3QGL6Nl.cjs → audio-BWjyvHn9.cjs} +4 -4
  28. package/dist/src/{audio-C-1oBiVZ.js → audio-BrJBFN2b.js} +4 -4
  29. package/dist/src/{audio-DnfDVjhL.js → audio-DUH4q0Xq.js} +5 -5
  30. package/dist/src/{audio-DQWHfAr8.js → audio-U580w8jM.js} +2 -2
  31. package/dist/src/{base-DHam07ip.js → base-BaXmtXYp.js} +3 -3
  32. package/dist/src/{base-BjsgxJp9.js → base-Dtp8b4_N.js} +3 -3
  33. package/dist/src/{base-Bso8ccGu.cjs → base-f71xxWai.cjs} +3 -3
  34. package/dist/src/{blobs-DOdc-E8L.cjs → blobs-673H0jCl.cjs} +3 -3
  35. package/dist/src/{blobs-Dcm272OH.js → blobs-C9J2mVgo.js} +3 -3
  36. package/dist/src/{blobs-MlVQyoSc.js → blobs-kt8v3UyH.js} +3 -3
  37. package/dist/src/{cache-KNsTJLKP.cjs → cache-7xULbvt3.cjs} +35 -8
  38. package/dist/src/{cache-BMl3AIo5.js → cache-BLLayYEN.js} +24 -9
  39. package/dist/src/{cache-B0ptF7sO.js → cache-BUPcq0Ad.js} +3 -3
  40. package/dist/src/cache-CVfRb-HD.cjs +6 -0
  41. package/dist/src/{cache-DPztwHxt.js → cache-O4EuX2JV.js} +4 -4
  42. package/dist/src/{cache-DHm8Pc8l.js → cache-mIszOnuz.js} +5 -22
  43. package/dist/src/{chat-DOQIJx7O.cjs → chat-C4zqjObh.cjs} +10 -10
  44. package/dist/src/{chat-DDGU7Tik.js → chat-C8Ei4f87.js} +9 -9
  45. package/dist/src/{chat-BnzIuoTQ.js → chat-CgyGj2hC.js} +12 -12
  46. package/dist/src/{chat-BRMJOuCv.js → chat-Cpz3O-Xl.js} +14 -14
  47. package/dist/src/{chat-CVOyOBYk.js → chat-DIywASPG.js} +11 -11
  48. package/dist/src/{chat-CrnXMbvh.cjs → chat-Fl6TZJRS.cjs} +13 -13
  49. package/dist/src/{chat-D8GcWK9l.js → chat-XPN9YHhr.js} +2 -2
  50. package/dist/src/{chatkit-IWIuhxFE.js → chatkit-DEls11hE.js} +4 -4
  51. package/dist/src/{chatkit-DlOZ-eNb.js → chatkit-DIrJX8xk.js} +4 -4
  52. package/dist/src/{chatkit-CcktkleS.js → chatkit-Dpxrq4eD.js} +2 -2
  53. package/dist/src/{chatkit-yeVtURUi.cjs → chatkit-e25Ziu17.cjs} +4 -4
  54. package/dist/src/{claude-agent-sdk-BiMgSH9g.js → claude-agent-sdk-6-xTaLwM.js} +48 -19
  55. package/dist/src/{claude-agent-sdk-Yj9Hq0cH.cjs → claude-agent-sdk-BzxF6NIJ.cjs} +48 -19
  56. package/dist/src/{claude-agent-sdk-rVqlUIJl.js → claude-agent-sdk-CmkTnKGH.js} +49 -20
  57. package/dist/src/{claude-agent-sdk-yid1kGsL.js → claude-agent-sdk-rXCBLK_o.js} +40 -11
  58. package/dist/src/{cloud-ByJVRSQI.js → cloud-BMbRVJFw.js} +3 -3
  59. package/dist/src/cloud-CZ4hytdm.js +5 -0
  60. package/dist/src/{cloudflare-ai-DmJZcvVx.cjs → cloudflare-ai-BAQ0u_dg.cjs} +14 -14
  61. package/dist/src/{cloudflare-ai-CWKYPCCF.js → cloudflare-ai-CUg4BTcj.js} +13 -13
  62. package/dist/src/{cloudflare-ai-goDJ5bwr.js → cloudflare-ai-CobxMTR4.js} +15 -15
  63. package/dist/src/{cloudflare-ai-CdKv38f6.js → cloudflare-ai-Z9X219gp.js} +2 -2
  64. package/dist/src/{cloudflare-gateway-BW8hcdB0.cjs → cloudflare-gateway-C0sgfr_z.cjs} +15 -15
  65. package/dist/src/{cloudflare-gateway-CDCOS1Os.js → cloudflare-gateway-D2_yi-Fh.js} +16 -16
  66. package/dist/src/{cloudflare-gateway-Dz_HCMGY.js → cloudflare-gateway-Djf3F3_H.js} +2 -2
  67. package/dist/src/{cloudflare-gateway-gzmTsXcd.js → cloudflare-gateway-_itGuXry.js} +14 -14
  68. package/dist/src/{codex-sdk-BlvhxMr0.js → codex-sdk-BASDNkIl.js} +90 -34
  69. package/dist/src/{codex-sdk-BC5qbCjh.js → codex-sdk-dSnGdgIp.js} +92 -36
  70. package/dist/src/{codex-sdk-CBpm53B8.js → codex-sdk-ibXwdglL.js} +91 -35
  71. package/dist/src/{codex-sdk-Cf5_CQch.cjs → codex-sdk-wTEpMM_X.cjs} +92 -36
  72. package/dist/src/{cometapi-DoaO5SLq.js → cometapi-B01btbfb.js} +16 -16
  73. package/dist/src/{cometapi-BUKGSUCw.js → cometapi-ChAaRjg5.js} +14 -14
  74. package/dist/src/{cometapi-C6BSw9k3.js → cometapi-DHUAH6nK.js} +2 -2
  75. package/dist/src/{cometapi-B3TzpkNI.cjs → cometapi-JbvOJSCO.cjs} +15 -15
  76. package/dist/src/{completion-BLe7SUA4.js → completion-BBJ6zmG3.js} +6 -6
  77. package/dist/src/{completion-1RAiLcwi.js → completion-D9_MDlnd.js} +6 -6
  78. package/dist/src/{completion-D6BTVt6e.cjs → completion-DDyL3Cb2.cjs} +6 -6
  79. package/dist/src/{docker-CkOzlD1W.js → docker-BuButc4D.js} +15 -15
  80. package/dist/src/{docker-BWsSX8Pn.cjs → docker-Ckw-j7Rr.cjs} +14 -14
  81. package/dist/src/{docker-CMf5SGLq.js → docker-JAAubMw3.js} +13 -13
  82. package/dist/src/{docker-C0AzMsuf.js → docker-vnOg96gi.js} +2 -2
  83. package/dist/src/errors-DnGCbnx8.js +36 -0
  84. package/dist/src/{esm-gWVPXn3r.cjs → esm-BQkx5roy.cjs} +2 -2
  85. package/dist/src/{esm-Lh6czAFT.js → esm-CYhseqj4.js} +2 -2
  86. package/dist/src/{esm-D40XsWlR.js → esm-rDtG_2rg.js} +2 -2
  87. package/dist/src/eval-CKHWqG9f.js +16 -0
  88. package/dist/src/{eval-WaSg64w3.js → eval-CYrbG57o.js} +106 -29
  89. package/dist/src/{evalResult-CGrGU_cG.js → evalResult-6JaUIStC.js} +7 -7
  90. package/dist/src/{evalResult-C_UM63nn.js → evalResult-COsVttMA.js} +7 -7
  91. package/dist/src/evalResult-CxTP-LMm.cjs +11 -0
  92. package/dist/src/evalResult-CzLURDcP.js +13 -0
  93. package/dist/src/{evalResult-BU4huold.cjs → evalResult-DlRfu_Rq.cjs} +7 -7
  94. package/dist/src/evalResult-DyttNQ_G.js +11 -0
  95. package/dist/src/evaluator-0PvfeBYh.js +38 -0
  96. package/dist/src/{evaluator-gmF3Vddp.js → evaluator-3EJCMTs0.js} +75 -49
  97. package/dist/src/{extractor-D-RM2m6A.cjs → extractor-DbhlYEeo.cjs} +23 -6
  98. package/dist/src/{extractor-Da8IxCeS.js → extractor-Hs7la_19.js} +23 -6
  99. package/dist/src/{extractor-BA90EtLq.js → extractor-LSYjrhK0.js} +23 -6
  100. package/dist/src/{fetch-BIfcW-Fd.js → fetch-18MuNu9i.js} +21 -7
  101. package/dist/src/{fetch-CW9GabAi.js → fetch-Bi0o-fdp.js} +2 -2
  102. package/dist/src/fetch-CMptBDVg.cjs +4 -0
  103. package/dist/src/fetch-DAZkv3gV.js +6 -0
  104. package/dist/src/{fetch-Mb7SbeM-.js → fetch-SRsE6Ctl.js} +21 -7
  105. package/dist/src/{fetch-MvWxCS5U.cjs → fetch-ZMn_oemb.cjs} +21 -7
  106. package/dist/src/{fileExtensions-CzcPkiKZ.js → fileExtensions-BpuMmaFL.js} +1 -1
  107. package/dist/src/{formatDuration-CCiZ-wBY.js → formatDuration-Doo0xq-z.js} +1 -1
  108. package/dist/src/{genaiTracer-BQ8AmajD.cjs → genaiTracer-CQlpZkrp.cjs} +2 -2
  109. package/dist/src/{genaiTracer-foKtbVa2.js → genaiTracer-CqNnnXrE.js} +1 -1
  110. package/dist/src/graders-BCytzXrb.js +34 -0
  111. package/dist/src/{graders-CwtelA9k.js → graders-BaMCwIKp.js} +212 -91
  112. package/dist/src/graders-CGZQShfJ.cjs +33 -0
  113. package/dist/src/{graders-2dabIkXs.cjs → graders-DzUUnUjC.cjs} +212 -91
  114. package/dist/src/{graders-BscQ6O1Q.js → graders-QsALpIdy.js} +211 -90
  115. package/dist/src/graders-spkuVC-E.js +36 -0
  116. package/dist/src/{image-Dv0o-Ab7.js → image-BXt_7u0v.js} +4 -4
  117. package/dist/src/{image-B6TV9l0v.js → image-BiEVdpdP.js} +7 -7
  118. package/dist/src/{image-DS9hlgSc.cjs → image-C3BjJUAU.cjs} +7 -7
  119. package/dist/src/{image-_jKUeeh9.js → image-COCWy5dX.js} +2 -2
  120. package/dist/src/{image-DqElR73O.cjs → image-D10zEe1f.cjs} +4 -4
  121. package/dist/src/{image-BVEVjrwl.js → image-DB4sHxdJ.js} +5 -5
  122. package/dist/src/{image-C1i3NoZo.js → image-mhAGP07h.js} +7 -7
  123. package/dist/src/index.cjs +305 -112
  124. package/dist/src/index.d.cts +137 -3
  125. package/dist/src/index.d.ts +137 -3
  126. package/dist/src/index.js +304 -111
  127. package/dist/src/{interactiveCheck-CjK2R4rB.js → interactiveCheck-DU-MAhp5.js} +2 -2
  128. package/dist/src/{knowledgeBase-K5fJN2kC.cjs → knowledgeBase-Bnb00xKs.cjs} +8 -8
  129. package/dist/src/{knowledgeBase-D-xthvn0.js → knowledgeBase-CMvMlLZR.js} +9 -9
  130. package/dist/src/{knowledgeBase-DJZHeJqg.js → knowledgeBase-DotRBzUE.js} +2 -2
  131. package/dist/src/{knowledgeBase-BSs2ldSR.js → knowledgeBase-XJQ0Qyez.js} +8 -8
  132. package/dist/src/{litellm-kPhaZkzz.js → litellm-BECdjOTx.js} +3 -3
  133. package/dist/src/{litellm-uRLukY7s.cjs → litellm-BrnZhMcL.cjs} +15 -15
  134. package/dist/src/{litellm-DH_rVIOd.js → litellm-CHrRmPAe.js} +16 -16
  135. package/dist/src/{litellm-DoXGHlpD.js → litellm-CrLJrPIm.js} +14 -14
  136. package/dist/src/{logger-CMp-NS-e.cjs → logger-BdZ-IqBc.cjs} +5 -2
  137. package/dist/src/{logger-Bzi5o47S.js → logger-BotXmWKW.js} +5 -2
  138. package/dist/src/{logger-q5I8CByj.js → logger-w8Ozp0Td.js} +5 -2
  139. package/dist/src/{luma-ray-B3GiVpuq.js → luma-ray-BOeX-h0M.js} +10 -10
  140. package/dist/src/{luma-ray-CPISsLu-.js → luma-ray-C-w6EsJm.js} +2 -2
  141. package/dist/src/{luma-ray-BrWrKIIB.cjs → luma-ray-C0RkI3lt.cjs} +10 -10
  142. package/dist/src/{luma-ray-gyI_GEy2.js → luma-ray-DgKLS0BF.js} +11 -11
  143. package/dist/src/main.js +3260 -2537
  144. package/dist/src/{messages-CJgEjRQF.js → messages-CDZYGNlS.js} +13 -10
  145. package/dist/src/{messages-BMkwrfmt.js → messages-D61tPFQo.js} +14 -11
  146. package/dist/src/{messages-B5HsO_dM.cjs → messages-DXV3Qh8_.cjs} +14 -11
  147. package/dist/src/{meteor-CBciquOS.js → meteor-Dj8cTkU_.js} +1 -1
  148. package/dist/src/{meteor-0cLf9TIn.js → meteor-P2rUE-Uz.js} +1 -1
  149. package/dist/src/{meteor-BQ6Ws9k2.js → meteor-SLNTgmXm.js} +2 -2
  150. package/dist/src/{meteor-DRuEfzuQ.cjs → meteor-odmwVbyG.cjs} +1 -1
  151. package/dist/src/{nova-reel-B5SOonY2.js → nova-reel-Bk5npr2q.js} +11 -11
  152. package/dist/src/{nova-reel-CT9ZuhJ3.js → nova-reel-C2LFfVTf.js} +2 -2
  153. package/dist/src/{nova-reel-ByTx85ed.cjs → nova-reel-D9FXq3Mt.cjs} +10 -10
  154. package/dist/src/{nova-reel-ChM7WaHR.js → nova-reel-DtCjbD5O.js} +10 -10
  155. package/dist/src/{nova-sonic-D4M3kKYu.js → nova-sonic-BXRfQyF-.js} +8 -8
  156. package/dist/src/{nova-sonic-C-H3eDvL.cjs → nova-sonic-BoRSY_U6.cjs} +7 -7
  157. package/dist/src/{nova-sonic-DgifpOKF.js → nova-sonic-CgaWLDM1.js} +7 -7
  158. package/dist/src/{nova-sonic-BqP59oOu.js → nova-sonic-D_qERM-K.js} +2 -2
  159. package/dist/src/{openai-BjpdxIOG.cjs → openai-Bigwjgo1.cjs} +2 -2
  160. package/dist/src/{openai-Cv9pEKxp.js → openai-CT5fwbve.js} +2 -2
  161. package/dist/src/{openai-CitF-gEN.js → openai-Dz3surb_.js} +2 -2
  162. package/dist/src/openclaw-B6XY2kUf.js +526 -0
  163. package/dist/src/openclaw-CpPrXwf6.js +524 -0
  164. package/dist/src/openclaw-DDSfq5fp.cjs +528 -0
  165. package/dist/src/openclaw-dHLcXUWZ.js +511 -0
  166. package/dist/src/{opencode-sdk-Dakn4QMp.js → opencode-sdk-CImWVqy9.js} +7 -7
  167. package/dist/src/{opencode-sdk-BcLvVMV-.js → opencode-sdk-CuCztr4P.js} +6 -6
  168. package/dist/src/{opencode-sdk-z7KKOCdB.js → opencode-sdk-DhcfRbBH.js} +3 -3
  169. package/dist/src/{opencode-sdk-Cqszt4br.cjs → opencode-sdk-mqF-Oj3f.cjs} +6 -6
  170. package/dist/src/{otlpReceiver-BvmMgacx.cjs → otlpReceiver-B6Xo4KZM.cjs} +6 -6
  171. package/dist/src/{otlpReceiver-DRNetlJH.js → otlpReceiver-BO0rbDzh.js} +6 -6
  172. package/dist/src/{otlpReceiver-Bhj_vnzl.js → otlpReceiver-Dg817agV.js} +6 -6
  173. package/dist/src/{otlpReceiver-Cpnk-Hjf.js → otlpReceiver-DmRb0NBj.js} +2 -2
  174. package/dist/src/{providerRegistry-D32Lt9vp.js → providerRegistry-Xf0qdqGQ.js} +2 -2
  175. package/dist/src/{providerRegistry-HGQd2MF6.cjs → providerRegistry-lc7a7utN.cjs} +2 -2
  176. package/dist/src/{providerRegistry-BdKWcUa8.js → providerRegistry-wCWd7sKQ.js} +2 -2
  177. package/dist/src/providers-BMZZmPBJ.cjs +32 -0
  178. package/dist/src/{providers-BWoVY_Wz.cjs → providers-BNKVY53V.cjs} +294 -782
  179. package/dist/src/{providers-Co_FGgH8.js → providers-BiNq_Iyc.js} +281 -769
  180. package/dist/src/{providers-CUCHJCHD.js → providers-BlEhY5mi.js} +286 -779
  181. package/dist/src/providers-CQQrNaJk.js +32 -0
  182. package/dist/src/providers-Ck8HyrC-.js +34 -0
  183. package/dist/src/{pythonUtils-rOCm9w_5.cjs → pythonUtils-DZ6EbdY4.cjs} +3 -3
  184. package/dist/src/{pythonUtils-B9JA-gsC.js → pythonUtils-r1uBuA0n.js} +3 -3
  185. package/dist/src/{pythonUtils-eNq6Wsfr.js → pythonUtils-vMlk9Qp5.js} +3 -3
  186. package/dist/src/{quiverai-BpWtOEQZ.cjs → quiverai-BNfIwKCO.cjs} +13 -13
  187. package/dist/src/{quiverai-Cj-PUa3p.js → quiverai-BQigKdIH.js} +14 -14
  188. package/dist/src/{quiverai-BN8OVvDE.js → quiverai-Bfy2WnE2.js} +12 -12
  189. package/dist/src/{quiverai-D5MSsd2c.js → quiverai-CedIP0PJ.js} +2 -2
  190. package/dist/src/{render-D2710HbA.js → render-CAZvKKkB.js} +4 -4
  191. package/dist/src/responses-DLLjADw5.js +653 -0
  192. package/dist/src/responses-TsdODUpm.js +654 -0
  193. package/dist/src/responses-zOtKtnY_.cjs +671 -0
  194. package/dist/src/{rubyUtils-Dn6MGcsk.js → rubyUtils-BtjlqyXt.js} +3 -3
  195. package/dist/src/{rubyUtils-LBsk3zIm.js → rubyUtils-Cs35SDYa.js} +3 -3
  196. package/dist/src/rubyUtils-D7--T12C.js +6 -0
  197. package/dist/src/{rubyUtils-rnCVDgH-.cjs → rubyUtils-DCVaJ3mc.cjs} +3 -3
  198. package/dist/src/rubyUtils-DRRiMFV2.js +5 -0
  199. package/dist/src/rubyUtils-vb8OYFC-.cjs +5 -0
  200. package/dist/src/{sagemaker-C8MeZIkH.js → sagemaker-BcgLu0U4.js} +18 -18
  201. package/dist/src/{sagemaker-4ukMNSN0.js → sagemaker-CLdUAv5z.js} +17 -17
  202. package/dist/src/{sagemaker-DyVHy2BW.js → sagemaker-Du4LIR97.js} +2 -2
  203. package/dist/src/{sagemaker-DB3Eojau.cjs → sagemaker-DwNnEVYt.cjs} +17 -17
  204. package/dist/src/{scanner-C28XVEq2.js → scanner-Dyw21Wg_.js} +12 -12
  205. package/dist/src/server/index.js +1818 -605
  206. package/dist/src/server-BUbS0Qfh.js +6 -0
  207. package/dist/src/{server-BF3HkMhe.js → server-CbMTRQkg.js} +8 -6
  208. package/dist/src/{server-CSbLW-UI.cjs → server-CgUQ25qW.cjs} +8 -6
  209. package/dist/src/{server-mycZbUH8.js → server-DWmZLfCy.js} +10 -7
  210. package/dist/src/server-XpGXFHkS.cjs +6 -0
  211. package/dist/src/server-gfOx5Zrk.js +8 -0
  212. package/dist/src/{signal-DM_SPNmi.js → signal-Bl32q42d.js} +3 -3
  213. package/dist/src/{slack-Ed1yyt_j.js → slack-BfdBx2tO.js} +2 -2
  214. package/dist/src/{slack-D1F9Y7CH.cjs → slack-BtMkB6xP.cjs} +2 -2
  215. package/dist/src/{slack-DkAF58Tr.js → slack-DPqj42Ts.js} +2 -2
  216. package/dist/src/{slack-BK312SXM.js → slack-OZYxoVON.js} +2 -2
  217. package/dist/src/{store-CT_e5OZX.js → store-2ocbYY9D.js} +3 -3
  218. package/dist/src/store-5u2yriTV.js +7 -0
  219. package/dist/src/{store-BpumNYCl.cjs → store-BqwfFEyF.cjs} +3 -3
  220. package/dist/src/{store-BFLqwuc_.js → store-D4gdn9ih.js} +3 -3
  221. package/dist/src/store-D_lq_8oQ.js +6 -0
  222. package/dist/src/store-m5KT6Ly7.cjs +6 -0
  223. package/dist/src/{tables-Dansasnu.cjs → tables-B9E1kRp-.cjs} +3 -3
  224. package/dist/src/{tables-BjaApSAB.js → tables-C7TT2XVn.js} +3 -3
  225. package/dist/src/{tables-Dwexr5Z6.js → tables-D-NSwNIb.js} +3 -3
  226. package/dist/src/telemetry-5RHFoCJh.js +6 -0
  227. package/dist/src/{telemetry-MVkZQxt9.js → telemetry-BXyVqyAg.js} +5 -4
  228. package/dist/src/{telemetry-DFDFKdnr.cjs → telemetry-D0_yFdtU.cjs} +5 -4
  229. package/dist/src/{telemetry-Ds5Nn81l.js → telemetry-DZ_7PaVq.js} +5 -4
  230. package/dist/src/telemetry-Do8wMnA-.js +8 -0
  231. package/dist/src/telemetry-LojxPoFq.cjs +6 -0
  232. package/dist/src/{text-PYISqVm1.cjs → text-DF2hMKdg.cjs} +1 -1
  233. package/dist/src/{text-DuYSUYPB.js → text-DgMr_tiM.js} +1 -1
  234. package/dist/src/{text-Dx0GJOCN.js → text-Dm78AVGG.js} +1 -1
  235. package/dist/src/{tokenUsageUtils-BtZd3sP7.cjs → tokenUsageUtils-CXhxVj72.cjs} +9 -4
  236. package/dist/src/{tokenUsageUtils-DoinwgKF.js → tokenUsageUtils-DmZSD2eU.js} +9 -4
  237. package/dist/src/{tokenUsageUtils-cFdLMERB.js → tokenUsageUtils-FZd5O_4A.js} +9 -4
  238. package/dist/src/{transcription-Cp19m_Mt.js → transcription-C-M81iDA.js} +2 -2
  239. package/dist/src/{transcription-CLRpAg07.js → transcription-CYuY5sFO.js} +10 -10
  240. package/dist/src/{transcription-D8ifIKOv.js → transcription-Ch7S-LWw.js} +11 -11
  241. package/dist/src/{transcription-CXXFEVM_.cjs → transcription-FNIz3YOe.cjs} +10 -10
  242. package/dist/src/transform-8eGmaH-7.js +7 -0
  243. package/dist/src/transform-BRVvWaG4.cjs +6 -0
  244. package/dist/src/{transform-Bn-lgBE2.js → transform-CoP2bJ7P.js} +44 -5
  245. package/dist/src/{transform-BFPYuBaW.js → transform-CqTFr7KR.js} +5 -5
  246. package/dist/src/{transform-DvQWeBSR.js → transform-D8dILpfZ.js} +4 -4
  247. package/dist/src/{transform-BUrxadlA.js → transform-DMaxQwDx.js} +44 -5
  248. package/dist/src/transform-GybT0X0u.js +8 -0
  249. package/dist/src/{transform-DshYLyBq.cjs → transform-Kd6u-oNm.cjs} +4 -4
  250. package/dist/src/{transform-Bw1IstDE.cjs → transform-ivxEY4f7.cjs} +55 -4
  251. package/dist/src/{transformersAvailability-BaoWHpu1.cjs → transformersAvailability-Bkep3ka7.cjs} +1 -1
  252. package/dist/src/{transformersAvailability-Dhh45n5P.js → transformersAvailability-DEU2naS1.js} +1 -1
  253. package/dist/src/{transformersAvailability-DtpwoeFC.js → transformersAvailability-DkAWaK5B.js} +1 -1
  254. package/dist/src/{transformersAvailability-O2YaCv9Z.js → transformersAvailability-DwmezkVe.js} +1 -1
  255. package/dist/src/{types-B-XUqfNs.cjs → types-BIfttHrT.cjs} +22 -2
  256. package/dist/src/{types-BsU_PxR3.js → types-DMVjYLpx.js} +16 -2
  257. package/dist/src/{types-CgrxBFgm.js → types-t52w-XsS.js} +19 -3
  258. package/dist/src/{util-M2MoNCUR.js → util-BSh4a_Q8.js} +7 -7
  259. package/dist/src/{util-DTJWKLkl.cjs → util-C08Kns6-.cjs} +18 -4
  260. package/dist/src/{util-DHBpsbZE.js → util-CUEt0Vum.js} +18 -4
  261. package/dist/src/{util-Bnw6EyZN.js → util-Cl0zfT3V.js} +18 -4
  262. package/dist/src/{util-C7A-PlKK.cjs → util-DUYOvxAy.cjs} +6 -6
  263. package/dist/src/{util-WYC3rB_p.js → util-DiCePfDu.js} +6 -6
  264. package/dist/src/{util-CV99ps44.cjs → util-DkFTvieG.cjs} +17 -5
  265. package/dist/src/{util-CfepsNVK.js → util-mJ58qbbw.js} +17 -5
  266. package/dist/src/{util-BZaMVBMq.js → util-vjscpUzy.js} +17 -5
  267. package/dist/src/{utils-BryuD3vq.js → utils-CVzb4YiI.js} +3 -3
  268. package/dist/src/{utils-Dezi3MBH.cjs → utils-DFaZa6Rf.cjs} +3 -3
  269. package/dist/src/{utils-GiyI2K4P.js → utils-JaY9veb5.js} +3 -3
  270. package/dist/tsconfig.tsbuildinfo +1 -1
  271. package/package.json +75 -77
  272. package/dist/src/app/assets/index-07dbAcWK.js +0 -427
  273. package/dist/src/app/assets/index-DnEcCQgk.css +0 -1
  274. package/dist/src/app/assets/vendor-react-DHoaNLma.js +0 -4
  275. package/dist/src/cache-BujOdYlc.cjs +0 -6
  276. package/dist/src/cloud-BHYz0XkH.js +0 -5
  277. package/dist/src/eval-0IFf8hON.js +0 -16
  278. package/dist/src/evalResult-BCCv6FXj.js +0 -13
  279. package/dist/src/evalResult-C8iVgVvr.js +0 -11
  280. package/dist/src/evalResult-CqFeWKYx.cjs +0 -11
  281. package/dist/src/evaluator-DwS5NAEj.js +0 -37
  282. package/dist/src/fetch-BH9KSaUC.cjs +0 -4
  283. package/dist/src/fetch-BL6kqunF.js +0 -6
  284. package/dist/src/graders-BK3LuhJ8.cjs +0 -32
  285. package/dist/src/graders-Bpjtip-E.js +0 -35
  286. package/dist/src/graders-KIf6Uej3.js +0 -33
  287. package/dist/src/providers-41mSodR_.js +0 -31
  288. package/dist/src/providers-CiZCpIxz.cjs +0 -31
  289. package/dist/src/providers-G531909f.js +0 -33
  290. package/dist/src/rubyUtils-BLd6EE1u.cjs +0 -5
  291. package/dist/src/rubyUtils-CVELPvUH.js +0 -6
  292. package/dist/src/rubyUtils-_t9Gmf7U.js +0 -5
  293. package/dist/src/server-Bc4T4XDt.cjs +0 -6
  294. package/dist/src/server-CMyxJ7ct.js +0 -6
  295. package/dist/src/server-D9FuxNYE.js +0 -8
  296. package/dist/src/store-CrMinjmN.cjs +0 -6
  297. package/dist/src/store-EaWZOoxz.js +0 -7
  298. package/dist/src/store-KXWnHB15.js +0 -6
  299. package/dist/src/telemetry-BXD2mCyr.cjs +0 -6
  300. package/dist/src/telemetry-CYiBm56v.js +0 -8
  301. package/dist/src/telemetry-lICYKIMB.js +0 -6
  302. package/dist/src/transform-DZI2t8-9.js +0 -8
  303. package/dist/src/transform-DZUV3qpO.js +0 -7
  304. package/dist/src/transform-XcotjzZX.cjs +0 -6
@@ -1,4 +1,4 @@
1
- import{g as wr}from"./vendor-react-DHoaNLma.js";var yn={exports:{}},Be={};var St;function Bi(){if(St)return Be;St=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return Be.Fragment=t,Be.jsx=n,Be.jsxs=n,Be}var Ct;function ji(){return Ct||(Ct=1,yn.exports=Bi()),yn.exports}var xn=ji();function $i(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Hi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui={};function Et(e,t){return(Ui.jsx?qi:Hi).test(e)}const Vi=/[ \t\n\f\r]/g;function Wi(e){return typeof e=="object"?e.type==="text"?It(e.value):!1:It(e)}function It(e){return e.replace(Vi,"")===""}class Ze{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ze.prototype.normal={};Ze.prototype.property={};Ze.prototype.space=void 0;function Sr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ze(n,r,t)}function Mn(e){return e.toLowerCase()}class J{constructor(t,n){this.attribute=n,this.property=t}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Yi=0;const R=Ce(),W=Ce(),Nn=Ce(),E=Ce(),U=Ce(),ze=Ce(),K=Ce();function Ce(){return 2**++Yi}const Bn=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:W,commaOrSpaceSeparated:K,commaSeparated:ze,number:E,overloadedBoolean:Nn,spaceSeparated:U},Symbol.toStringTag,{value:"Module"})),bn=Object.keys(Bn);class Gn extends J{constructor(t,n,r,i){let o=-1;if(super(t,n),At(this,"space",i),typeof r=="number")for(;++o<bn.length;){const l=bn[o];At(this,bn[o],(r&Bn[l])===Bn[l])}}}Gn.prototype.defined=!0;function At(e,t,n){n&&(e[t]=n)}function Fe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Gn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Mn(r)]=r,n[Mn(o.attribute)]=r}return new Ze(t,n,e.space)}const Cr=Fe({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:W,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:U,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:E,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:U,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:W,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Er(e,t){return t in e?e[t]:t}function Ir(e,t){return Er(e,t.toLowerCase())}const Xi=Fe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ze,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:U,autoFocus:R,autoPlay:R,blocking:U,capture:null,charSet:null,checked:R,cite:null,className:U,cols:E,colSpan:null,content:null,contentEditable:W,controls:R,controlsList:U,coords:E|ze,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:Nn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:U,height:E,hidden:Nn,high:E,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:U,itemRef:U,itemScope:R,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:R,optimum:E,pattern:null,ping:U,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:U,required:R,reversed:R,rows:E,rowSpan:E,sandbox:U,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:W,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:R,disableRemotePlayback:R,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:Ir}),Qi=Fe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:K,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:U,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ze,g2:ze,glyphName:ze,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:K,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:K,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:K,rev:K,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:K,requiredFeatures:K,requiredFonts:K,requiredFormats:K,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:K,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:K,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:K,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Er}),Ar=Fe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Tr=Fe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ir}),Pr=Fe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gi={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ji=/[A-Z]/g,Tt=/-[a-z]/g,Zi=/^data[-\w.:]+$/i;function Ki(e,t){const n=Mn(t);let r=t,i=J;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Zi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Tt,nl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Tt.test(o)){let l=o.replace(Ji,el);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Gn}return new i(r,t)}function el(e){return"-"+e.toLowerCase()}function nl(e){return e.charAt(1).toUpperCase()}const tl=Sr([Cr,Xi,Ar,Tr,Pr],"html"),Jn=Sr([Cr,Qi,Ar,Tr,Pr],"svg");function rl(e){return e.join(" ").trim()}var Te={},wn,Pt;function il(){if(Pt)return wn;Pt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,a=`
1
+ import{g as wr}from"./vendor-react-AtKqiNEf.js";var yn={exports:{}},Be={};var St;function Bi(){if(St)return Be;St=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return Be.Fragment=t,Be.jsx=n,Be.jsxs=n,Be}var Ct;function ji(){return Ct||(Ct=1,yn.exports=Bi()),yn.exports}var xn=ji();function $i(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Hi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui={};function Et(e,t){return(Ui.jsx?qi:Hi).test(e)}const Vi=/[ \t\n\f\r]/g;function Wi(e){return typeof e=="object"?e.type==="text"?It(e.value):!1:It(e)}function It(e){return e.replace(Vi,"")===""}class Ze{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ze.prototype.normal={};Ze.prototype.property={};Ze.prototype.space=void 0;function Sr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ze(n,r,t)}function Mn(e){return e.toLowerCase()}class J{constructor(t,n){this.attribute=n,this.property=t}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Yi=0;const R=Ce(),W=Ce(),Nn=Ce(),E=Ce(),U=Ce(),ze=Ce(),K=Ce();function Ce(){return 2**++Yi}const Bn=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:W,commaOrSpaceSeparated:K,commaSeparated:ze,number:E,overloadedBoolean:Nn,spaceSeparated:U},Symbol.toStringTag,{value:"Module"})),bn=Object.keys(Bn);class Gn extends J{constructor(t,n,r,i){let o=-1;if(super(t,n),At(this,"space",i),typeof r=="number")for(;++o<bn.length;){const l=bn[o];At(this,bn[o],(r&Bn[l])===Bn[l])}}}Gn.prototype.defined=!0;function At(e,t,n){n&&(e[t]=n)}function Fe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Gn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Mn(r)]=r,n[Mn(o.attribute)]=r}return new Ze(t,n,e.space)}const Cr=Fe({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:W,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:U,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:E,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:U,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:W,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Er(e,t){return t in e?e[t]:t}function Ir(e,t){return Er(e,t.toLowerCase())}const Xi=Fe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ze,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:U,autoFocus:R,autoPlay:R,blocking:U,capture:null,charSet:null,checked:R,cite:null,className:U,cols:E,colSpan:null,content:null,contentEditable:W,controls:R,controlsList:U,coords:E|ze,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:Nn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:U,height:E,hidden:Nn,high:E,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:U,itemRef:U,itemScope:R,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:R,optimum:E,pattern:null,ping:U,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:U,required:R,reversed:R,rows:E,rowSpan:E,sandbox:U,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:W,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:R,disableRemotePlayback:R,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:Ir}),Qi=Fe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:K,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:U,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ze,g2:ze,glyphName:ze,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:K,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:K,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:K,rev:K,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:K,requiredFeatures:K,requiredFonts:K,requiredFormats:K,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:K,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:K,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:K,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Er}),Ar=Fe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Tr=Fe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ir}),Pr=Fe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gi={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ji=/[A-Z]/g,Tt=/-[a-z]/g,Zi=/^data[-\w.:]+$/i;function Ki(e,t){const n=Mn(t);let r=t,i=J;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Zi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Tt,nl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Tt.test(o)){let l=o.replace(Ji,el);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Gn}return new i(r,t)}function el(e){return"-"+e.toLowerCase()}function nl(e){return e.charAt(1).toUpperCase()}const tl=Sr([Cr,Xi,Ar,Tr,Pr],"html"),Jn=Sr([Cr,Qi,Ar,Tr,Pr],"svg");function rl(e){return e.join(" ").trim()}var Te={},wn,Pt;function il(){if(Pt)return wn;Pt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,a=`
2
2
  `,s="/",f="*",c="",p="comment",h="declaration";function d(S,k){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];k=k||{};var I=1,C=1;function D(z){var T=z.match(t);T&&(I+=T.length);var H=z.lastIndexOf(a);C=~H?z.length-H:C+z.length}function F(){var z={line:I,column:C};return function(T){return T.position=new b(z),N(),T}}function b(z){this.start=z,this.end={line:I,column:C},this.source=k.source}b.prototype.content=S;function O(z){var T=new Error(k.source+":"+I+":"+C+": "+z);if(T.reason=z,T.filename=k.source,T.line=I,T.column=C,T.source=S,!k.silent)throw T}function B(z){var T=z.exec(S);if(T){var H=T[0];return D(H),S=S.slice(H.length),T}}function N(){B(n)}function y(z){var T;for(z=z||[];T=P();)T!==!1&&z.push(T);return z}function P(){var z=F();if(!(s!=S.charAt(0)||f!=S.charAt(1))){for(var T=2;c!=S.charAt(T)&&(f!=S.charAt(T)||s!=S.charAt(T+1));)++T;if(T+=2,c===S.charAt(T-1))return O("End of comment missing");var H=S.slice(2,T-2);return C+=2,D(H),S=S.slice(T),C+=2,z({type:p,comment:H})}}function v(){var z=F(),T=B(r);if(T){if(P(),!B(i))return O("property missing ':'");var H=B(o),Y=z({type:h,property:w(T[0].replace(e,c)),value:H?w(H[0].replace(e,c)):c});return B(l),Y}}function j(){var z=[];y(z);for(var T;T=v();)T!==!1&&(z.push(T),y(z));return z}return N(),j()}function w(S){return S?S.replace(u,c):c}return wn=d,wn}var vt;function ll(){if(vt)return Te;vt=1;var e=Te&&Te.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=n;const t=e(il());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),u=typeof i=="function";return l.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:f}=a;u?i(s,f,a):f&&(o=o||{},o[s]=f)}),o}return Te}var je={},zt;function ol(){if(zt)return je;zt=1,Object.defineProperty(je,"__esModule",{value:!0}),je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||n.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},u=function(s,f){return"".concat(f,"-")},a=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,u):s=s.replace(r,u),s.replace(t,l))};return je.camelCase=a,je}var $e,Lt;function ul(){if(Lt)return $e;Lt=1;var e=$e&&$e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ll()),n=ol();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(u,a){u&&a&&(l[(0,n.camelCase)(u,o)]=a)}),l}return r.default=r,$e=r,$e}var al=ul();const sl=wr(al),vr=zr("end"),Zn=zr("start");function zr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function cl(e){const t=Zn(e),n=vr(e);if(t&&n)return{start:t,end:n}}function Ve(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Dt(e.position):"start"in e||"end"in e?Dt(e):"line"in e||"column"in e?jn(e):""}function jn(e){return Ft(e&&e.line)+":"+Ft(e&&e.column)}function Dt(e){return jn(e&&e.start)+"-"+jn(e&&e.end)}function Ft(e){return e&&typeof e=="number"?e:1}class Q extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Ve(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="";Q.prototype.name="";Q.prototype.reason="";Q.prototype.message="";Q.prototype.stack="";Q.prototype.column=void 0;Q.prototype.line=void 0;Q.prototype.ancestors=void 0;Q.prototype.cause=void 0;Q.prototype.fatal=void 0;Q.prototype.place=void 0;Q.prototype.ruleId=void 0;Q.prototype.source=void 0;const Kn={}.hasOwnProperty,fl=new Map,hl=/[A-Z]/g,pl=new Set(["table","tbody","thead","tfoot","tr"]),ml=new Set(["td","th"]),Lr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gl(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Cl(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Sl(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Jn:tl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Dr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Dr(e,t,n){if(t.type==="element")return dl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return kl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return xl(e,t,n);if(t.type==="mdxjsEsm")return yl(e,t);if(t.type==="root")return bl(e,t,n);if(t.type==="text")return wl(e,t)}function dl(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Jn,e.schema=i),e.ancestors.push(t);const o=Rr(e,t.tagName,!1),l=El(e,t);let u=nt(e,t);return pl.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!Wi(a):!0})),Fr(e,l,o,t),et(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function kl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xe(e,t.position)}function yl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xe(e,t.position)}function xl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Jn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Rr(e,t.name,!0),l=Il(e,t),u=nt(e,t);return Fr(e,l,o,t),et(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function bl(e,t,n){const r={};return et(r,nt(e,t)),e.create(t,e.Fragment,r,n)}function wl(e,t){return t.value}function Fr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function et(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Sl(e,t,n){return r;function r(i,o,l,u){const s=Array.isArray(l.children)?n:t;return u?s(o,l,u):s(o,l)}}function Cl(e,t){return n;function n(r,i,o,l){const u=Array.isArray(o.children),a=Zn(r);return t(i,o,l,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function El(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Kn.call(t.properties,i)){const o=Al(e,i,t.properties[i]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&ml.has(t.tagName)?r=u:n[l]=u}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Il(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Xe(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Xe(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function nt(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:fl;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const s=i.get(a)||0;l=a+"-"+s,i.set(a,s+1)}}const u=Dr(e,o,l);u!==void 0&&n.push(u)}return n}function Al(e,t,n){const r=Ki(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?$i(n):rl(n)),r.property==="style"){let i=typeof n=="object"?n:Tl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Pl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Gi[r.property]||r.property:r.attribute,n]}}function Tl(e,t){try{return sl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Lr+"#cannot-parse-style-attribute",i}}function Rr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const u=Et(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=l}else r=Et(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Kn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,t){const n=new Q("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Lr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Pl(e){const t={};let n;for(n in e)Kn.call(e,n)&&(t[vl(n)]=e[n]);return t}function vl(e){let t=e.replace(hl,zl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function zl(e){return"-"+e.toLowerCase()}const Sn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ll={};function tt(e,t){const n=Ll,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _r(e,r,i)}function _r(e,t,n){if(Dl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Rt(e.children,t,n)}return Array.isArray(e)?Rt(e,t,n):""}function Rt(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=_r(e[i],t,n);return r.join("")}function Dl(e){return!!(e&&typeof e=="object")}const _t=document.createElement("i");function rt(e){const t="&"+e+";";_t.innerHTML=t;const n=_t.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ee(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function ne(e,t){return e.length>0?(ee(e,e.length,0,t),e):t}const Ot={}.hasOwnProperty;function Or(e){const t={};let n=-1;for(;++n<e.length;)Fl(t,e[n]);return t}function Fl(e,t){let n;for(n in t){const i=(Ot.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Ot.call(i,l)||(i[l]=[]);const u=o[l];Rl(i[l],Array.isArray(u)?u:u?[u]:[])}}}function Rl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ee(e,0,0,r)}function Mr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Mt=_l(/[\dA-Za-z]/);function _l(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Re(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Mt(e.charCodeAt(n+1))&&Mt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function it(e){return e!==null&&e<-2}function Nt(e){return e===-2||e===-1||e===32}function lt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return Nt(a)?(e.enter(n),u(a)):t(a)}function u(a){return Nt(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}const Ol={tokenize:Ml};function Ml(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),lt(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return it(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}const Nl={tokenize:Bl},Bt={tokenize:jl};function Bl(e){const t=this,n=[];let r=0,i,o,l;return u;function u(C){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,a,s)(C)}return s(C)}function a(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const D=t.events.length;let F=D,b;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){b=t.events[F][1].end;break}k(r);let O=D;for(;O<t.events.length;)t.events[O][1].end={...b},O++;return ee(t.events,F+1,0,t.events.slice(D)),t.events.length=O,s(C)}return u(C)}function s(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return d(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Bt,f,c)(C)}function f(C){return i&&I(),k(r),p(C)}function c(C){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(C)}function p(C){return t.containerState={},e.attempt(Bt,h,d)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function d(C){if(C===null){i&&I(),k(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(C)}function w(C){if(C===null){S(e.exit("chunkFlow"),!0),k(0),e.consume(C);return}return it(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(C),w)}function S(C,D){const F=t.sliceStream(C);if(D&&F.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(F),t.parser.lazy[C.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const O=t.events.length;let B=O,N,y;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(N){y=t.events[B][1].end;break}N=!0}for(k(r),b=O;b<t.events.length;)t.events[b][1].end={...y},b++;ee(t.events,B+1,0,t.events.slice(O)),t.events.length=b}}function k(C){let D=n.length;for(;D-- >C;){const F=n[D];t.containerState=F[1],F[0].exit.call(t,e)}n.length=C}function I(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function jl(e,t,n){return lt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $l(e){return e!==null&&(e<0||e===32)}const Hl=Nr(new RegExp("\\p{P}|\\p{S}","u")),ql=Nr(/\s/);function Nr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Le(e){if(e===null||$l(e)||ql(e))return 1;if(Hl(e))return 2}function pn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const $n={name:"attention",resolveAll:Ul,tokenize:Vl};function Ul(e,t){let n=-1,r,i,o,l,u,a,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};jt(c,-a),jt(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[n][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=ne(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=ne(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=ne(s,pn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=ne(s,[["exit",o,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=ne(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ee(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Vl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Le(r);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const s=e.exit("attentionSequence"),f=Le(a),c=!f||f===2&&i||n.includes(a),p=!i||i===2&&f||n.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),t(a)}}function jt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ce=_e(/[A-Za-z]/),ue=_e(/[\dA-Za-z]/),Wl=_e(/[#-'*+\--9=?A-Z^-~]/);function Yl(e){return e!==null&&(e<32||e===127)}const Hn=_e(/\d/),Xl=_e(/[\dA-Fa-f]/),Ql=_e(/[!-/:-@[-`{-~]/);function _(e){return e!==null&&e<-2}function te(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}function _e(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const Gl={name:"autolink",tokenize:Jl};function Jl(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return ce(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||ue(h)?(r=1,u(h)):s(h)}function u(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||ue(h))&&r++<32?(e.consume(h),u):(r=0,s(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Yl(h)?n(h):(e.consume(h),a)}function s(h){return h===64?(e.consume(h),f):Wl(h)?(e.consume(h),s):n(h)}function f(h){return ue(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||ue(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return n(h)}}function V(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return $(a)?(e.enter(n),u(a)):t(a)}function u(a){return $(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}const Ke={partial:!0,tokenize:Zl};function Zl(e,t,n){return r;function r(o){return $(o)?V(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||_(o)?t(o):n(o)}}const Br={continuation:{tokenize:eo},exit:no,name:"blockQuote",tokenize:Kl};function Kl(e,t,n){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return $(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function eo(e,t,n){const r=this;return i;function i(l){return $(l)?V(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Br,t,n)(l)}}function no(e){e.exit("blockQuote")}const jr={name:"characterEscape",tokenize:to};function to(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Ql(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const $r={name:"characterReference",tokenize:ro};function ro(e,t,n){const r=this;let i=0,o,l;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),a}function a(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=ue,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Xl,f):(e.enter("characterReferenceValue"),o=7,l=Hn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===ue&&!rt(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const $t={partial:!0,tokenize:lo},Ht={concrete:!0,name:"codeFenced",tokenize:io};function io(e,t,n){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,u;return a;function a(b){return s(b)}function s(b){const O=r.events[r.events.length-1];return o=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,u=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===u?(l++,e.consume(b),f):l<3?n(b):(e.exit("codeFencedFenceSequence"),$(b)?V(e,c,"whitespace")(b):c(b))}function c(b){return b===null||_(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check($t,w,D)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||_(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):$(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),V(e,h,"whitespace")(b)):b===96&&b===u?n(b):(e.consume(b),p)}function h(b){return b===null||_(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||_(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===u?n(b):(e.consume(b),d)}function w(b){return e.attempt(i,D,S)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),k}function k(b){return o>0&&$(b)?V(e,I,"linePrefix",o+1)(b):I(b)}function I(b){return b===null||_(b)?e.check($t,w,D)(b):(e.enter("codeFlowValue"),C(b))}function C(b){return b===null||_(b)?(e.exit("codeFlowValue"),I(b)):(e.consume(b),C)}function D(b){return e.exit("codeFenced"),t(b)}function F(b,O,B){let N=0;return y;function y(T){return b.enter("lineEnding"),b.consume(T),b.exit("lineEnding"),P}function P(T){return b.enter("codeFencedFence"),$(T)?V(b,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):v(T)}function v(T){return T===u?(b.enter("codeFencedFenceSequence"),j(T)):B(T)}function j(T){return T===u?(N++,b.consume(T),j):N>=l?(b.exit("codeFencedFenceSequence"),$(T)?V(b,z,"whitespace")(T):z(T)):B(T)}function z(T){return T===null||_(T)?(b.exit("codeFencedFence"),O(T)):B(T)}}}function lo(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Cn={name:"codeIndented",tokenize:uo},oo={partial:!0,tokenize:ao};function uo(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),V(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?a(s):_(s)?e.attempt(oo,l,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||_(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),t(s)}}function ao(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):_(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):V(e,o,"linePrefix",5)(l)}function o(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):_(l)?i(l):n(l)}}const so={name:"codeText",previous:fo,resolve:co,tokenize:ho};function co(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function fo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ho(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),a(c))}function a(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),a):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):_(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||_(c)?(e.exit("codeTextData"),a(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}class po{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),He(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);He(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);He(this.left,n.reverse())}}}function He(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Hr(e){const t={};let n=-1,r,i,o,l,u,a,s;const f=new po(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,mo(f,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,n),u.unshift(r),f.splice(i,n-i+1,u))}}return ee(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function mo(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,a=[],s={};let f,c,p=-1,h=n,d=0,w=0;const S=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(w=p+1,S.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const k=u.slice(S[p],S[p+1]),I=o.pop();a.push([I,I+k.length-1]),e.splice(I,2,k)}for(a.reverse(),p=-1;++p<a.length;)s[d+a[p][0]]=d+a[p][1],d+=a[p][1]-a[p][0]-1;return s}const go={resolve:yo,tokenize:xo},ko={partial:!0,tokenize:bo};function yo(e){return Hr(e),e}function xo(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):_(u)?e.check(ko,l,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function bo(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),V(e,o,"linePrefix")}function o(l){if(l===null||_(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function qt(e){return e!==null&&(e<32||e===127)}function wo(e){return e!==null&&e<-2}function So(e){return e!==null&&(e<0||e===32)}function qr(e,t,n,r,i,o,l,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(k){return k===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(k),e.exit(o),p):k===null||k===32||k===41||qt(k)?n(k):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),w(k))}function p(k){return k===62?(e.enter(o),e.consume(k),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===62?(e.exit("chunkString"),e.exit(u),p(k)):k===null||k===60||wo(k)?n(k):(e.consume(k),k===92?d:h)}function d(k){return k===60||k===62||k===92?(e.consume(k),h):h(k)}function w(k){return!f&&(k===null||k===41||So(k))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(k)):f<s&&k===40?(e.consume(k),f++,w):k===41?(e.consume(k),f--,w):k===null||k===32||k===40||qt(k)?n(k):(e.consume(k),k===92?S:w)}function S(k){return k===40||k===41||k===92?(e.consume(k),w):w(k)}}function Ut(e){return e!==null&&e<-2}function Co(e){return e===-2||e===-1||e===32}function Ur(e,t,n,r,i,o){const l=this;let u=0,a;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return u>999||h===null||h===91||h===93&&!a||h===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Ut(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||Ut(h)||u++>999?(e.exit("chunkString"),f(h)):(e.consume(h),a||(a=!Co(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),u++,c):c(h)}}function Vt(e){return e!==null&&e<-2}function Wt(e){return e===-2||e===-1||e===32}function Eo(e,t,n,r){const i=Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return Wt(a)?(e.enter(n),u(a)):t(a)}function u(a){return Wt(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}function Vr(e,t,n,r,i,o){let l;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,a):n(p)}function a(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),a(l)):p===null?n(p):Vt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Eo(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||Vt(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Io(e){return e!==null&&e<-2}function qn(e){return e===-2||e===-1||e===32}function Ao(e,t,n,r){const i=Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return qn(a)?(e.enter(n),u(a)):t(a)}function u(a){return qn(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}function We(e,t){let n;return r;function r(i){return Io(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):qn(i)?Ao(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const To={name:"definition",tokenize:vo},Po={partial:!0,tokenize:zo};function vo(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Ur.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function u(h){return i=ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return te(h)?We(e,s)(h):s(h)}function s(h){return qr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Po,c,c)(h)}function c(h){return $(h)?V(e,p,"whitespace")(h):p(h)}function p(h){return h===null||_(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function zo(e,t,n){return r;function r(u){return te(u)?We(e,i)(u):n(u)}function i(u){return Vr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return $(u)?V(e,l,"whitespace")(u):l(u)}function l(u){return u===null||_(u)?t(u):n(u)}}const Lo={name:"hardBreakEscape",tokenize:Do};function Do(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return _(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Fo={name:"headingAtx",resolve:Ro,tokenize:_o};function Ro(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ee(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function _o(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||te(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||_(f)?(e.exit("atxHeading"),t(f)):$(f)?V(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||te(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const Oo=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Yt=["pre","script","style","textarea"],Mo={concrete:!0,name:"htmlFlow",resolveTo:jo,tokenize:$o},No={partial:!0,tokenize:qo},Bo={partial:!0,tokenize:Ho};function jo(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $o(e,t,n){const r=this;let i,o,l,u,a;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?t:m):ce(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,u=0,d):ce(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const le="CDATA[";return g===le.charCodeAt(u++)?(e.consume(g),u===le.length?r.interrupt?t:v:d):n(g)}function w(g){return ce(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function S(g){if(g===null||g===47||g===62||te(g)){const le=g===47,xe=l.toLowerCase();return!le&&!o&&Yt.includes(xe)?(i=1,r.interrupt?t(g):v(g)):Oo.includes(l.toLowerCase())?(i=6,le?(e.consume(g),k):r.interrupt?t(g):v(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?I(g):C(g))}return g===45||ue(g)?(e.consume(g),l+=String.fromCharCode(g),S):n(g)}function k(g){return g===62?(e.consume(g),r.interrupt?t:v):n(g)}function I(g){return $(g)?(e.consume(g),I):y(g)}function C(g){return g===47?(e.consume(g),y):g===58||g===95||ce(g)?(e.consume(g),D):$(g)?(e.consume(g),C):y(g)}function D(g){return g===45||g===46||g===58||g===95||ue(g)?(e.consume(g),D):F(g)}function F(g){return g===61?(e.consume(g),b):$(g)?(e.consume(g),F):C(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),a=g,O):$(g)?(e.consume(g),b):B(g)}function O(g){return g===a?(e.consume(g),a=null,N):g===null||_(g)?n(g):(e.consume(g),O)}function B(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||te(g)?F(g):(e.consume(g),B)}function N(g){return g===47||g===62||$(g)?C(g):n(g)}function y(g){return g===62?(e.consume(g),P):n(g)}function P(g){return g===null||_(g)?v(g):$(g)?(e.consume(g),P):n(g)}function v(g){return g===45&&i===2?(e.consume(g),H):g===60&&i===1?(e.consume(g),Y):g===62&&i===4?(e.consume(g),ie):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),he):_(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(No,pe,j)(g)):g===null||_(g)?(e.exit("htmlFlowData"),j(g)):(e.consume(g),v)}function j(g){return e.check(Bo,z,pe)(g)}function z(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),T}function T(g){return g===null||_(g)?j(g):(e.enter("htmlFlowData"),v(g))}function H(g){return g===45?(e.consume(g),m):v(g)}function Y(g){return g===47?(e.consume(g),l="",re):v(g)}function re(g){if(g===62){const le=l.toLowerCase();return Yt.includes(le)?(e.consume(g),ie):v(g)}return ce(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),re):v(g)}function he(g){return g===93?(e.consume(g),m):v(g)}function m(g){return g===62?(e.consume(g),ie):g===45&&i===2?(e.consume(g),m):v(g)}function ie(g){return g===null||_(g)?(e.exit("htmlFlowData"),pe(g)):(e.consume(g),ie)}function pe(g){return e.exit("htmlFlow"),t(g)}}function Ho(e,t,n){const r=this;return i;function i(l){return _(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function qo(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ke,t,n)}}const Uo={name:"htmlText",tokenize:Vo};function Vo(e,t,n){const r=this;let i,o,l;return u;function u(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),a}function a(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),F):m===63?(e.consume(m),C):ce(m)?(e.consume(m),B):n(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):ce(m)?(e.consume(m),I):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):_(m)?(l=c,Y(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?H(m):m===45?p(m):c(m)}function d(m){const ie="CDATA[";return m===ie.charCodeAt(o++)?(e.consume(m),o===ie.length?w:d):n(m)}function w(m){return m===null?n(m):m===93?(e.consume(m),S):_(m)?(l=w,Y(m)):(e.consume(m),w)}function S(m){return m===93?(e.consume(m),k):w(m)}function k(m){return m===62?H(m):m===93?(e.consume(m),k):w(m)}function I(m){return m===null||m===62?H(m):_(m)?(l=I,Y(m)):(e.consume(m),I)}function C(m){return m===null?n(m):m===63?(e.consume(m),D):_(m)?(l=C,Y(m)):(e.consume(m),C)}function D(m){return m===62?H(m):C(m)}function F(m){return ce(m)?(e.consume(m),b):n(m)}function b(m){return m===45||ue(m)?(e.consume(m),b):O(m)}function O(m){return _(m)?(l=O,Y(m)):$(m)?(e.consume(m),O):H(m)}function B(m){return m===45||ue(m)?(e.consume(m),B):m===47||m===62||te(m)?N(m):n(m)}function N(m){return m===47?(e.consume(m),H):m===58||m===95||ce(m)?(e.consume(m),y):_(m)?(l=N,Y(m)):$(m)?(e.consume(m),N):H(m)}function y(m){return m===45||m===46||m===58||m===95||ue(m)?(e.consume(m),y):P(m)}function P(m){return m===61?(e.consume(m),v):_(m)?(l=P,Y(m)):$(m)?(e.consume(m),P):N(m)}function v(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,j):_(m)?(l=v,Y(m)):$(m)?(e.consume(m),v):(e.consume(m),z)}function j(m){return m===i?(e.consume(m),i=void 0,T):m===null?n(m):_(m)?(l=j,Y(m)):(e.consume(m),j)}function z(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||te(m)?N(m):(e.consume(m),z)}function T(m){return m===47||m===62||te(m)?N(m):n(m)}function H(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function Y(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),re}function re(m){return $(m)?V(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):he(m)}function he(m){return e.enter("htmlTextData"),l(m)}}const ot={name:"labelEnd",resolveAll:Qo,resolveTo:Go,tokenize:Jo},Wo={tokenize:Zo},Yo={tokenize:Ko},Xo={tokenize:eu};function Qo(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ee(e,0,e.length,n),e}function Go(e,t){let n=e.length,r=0,i,o,l,u;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",a,t],["enter",s,t]],u=ne(u,e.slice(o+1,o+r+3)),u=ne(u,[["enter",f,t]]),u=ne(u,pn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),u=ne(u,[["exit",f,t],e[l-2],e[l-1],["exit",s,t]]),u=ne(u,e.slice(l+1)),u=ne(u,[["exit",a,t]]),ee(e,o,e.length,u),e}function Jo(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(ae(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(Wo,f,l?f:c)(p):p===91?e.attempt(Yo,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Xo,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function Zo(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return te(c)?We(e,o)(c):o(c)}function o(c){return c===41?f(c):qr(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return te(c)?We(e,a)(c):f(c)}function u(c){return n(c)}function a(c){return c===34||c===39||c===40?Vr(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return te(c)?We(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Ko(e,t,n){const r=this;return i;function i(u){return Ur.call(r,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function eu(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const nu={name:"labelStartImage",resolveAll:ot.resolveAll,tokenize:tu};function tu(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const ru={name:"labelStartLink",resolveAll:ot.resolveAll,tokenize:iu};function iu(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const En={name:"lineEnding",tokenize:lu};function lu(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),V(e,t,"linePrefix")}}const an={name:"thematicBreak",tokenize:ou};function ou(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,u(s)}function u(s){return s===i?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(s===null||_(s))?(e.exit("thematicBreak"),t(s)):n(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),$(s)?V(e,u,"whitespace")(s):u(s))}}const G={continuation:{tokenize:cu},exit:hu,name:"list",tokenize:su},uu={partial:!0,tokenize:pu},au={partial:!0,tokenize:fu};function su(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return u;function u(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Hn(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(an,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return Hn(h)&&++l<10?(e.consume(h),a):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ke,r.interrupt?n:f,e.attempt(uu,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return $(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function cu(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ke,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,V(e,t,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!$(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(au,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,V(e,e.attempt(G,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function fu(e,t,n){const r=this;return V(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function hu(e){e.exit(this.containerState.type)}function pu(e,t,n){const r=this;return V(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!$(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Xt={name:"setextUnderline",resolveTo:mu,tokenize:gu};function mu(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function gu(e,t,n){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),$(s)?V(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||_(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const du={tokenize:ku};function ku(e){const t=this,n=e.attempt(Ke,r,e.attempt(this.parser.constructs.flowInitial,i,lt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(go,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const yu={resolveAll:Yr()},xu=Wr("string"),bu=Wr("text");function Wr(e){return{resolveAll:Yr(e==="text"?wu:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,u);return l;function l(f){return s(f)?o(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Yr(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function wu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,u=0,a;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(s===-2)a=!0,u++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const s={type:n===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const Su={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Br},Cu={91:To},Eu={[-2]:Cn,[-1]:Cn,32:Cn},Iu={35:Fo,42:an,45:[Xt,an],60:Mo,61:Xt,95:an,96:Ht,126:Ht},Au={38:$r,92:jr},Tu={[-5]:En,[-4]:En,[-3]:En,33:nu,38:$r,42:$n,60:[Gl,Uo],91:ru,92:[Lo,jr],93:ot,95:$n,96:so},Pu={null:[$n,yu]},vu={null:[42,95]},zu={null:[]},Lu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vu,contentInitial:Cu,disable:zu,document:Su,flow:Iu,flowInitial:Eu,insideSpan:Pu,string:Au,text:Tu},Symbol.toStringTag,{value:"Module"}));function Du(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],u=[];const a={attempt:O(F),check:O(b),consume:I,enter:C,exit:D,interrupt:O(b,{interrupt:!0})},s={code:null,containerState:{},defineSkip:w,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(s,a);return t.resolveAll&&o.push(t),s;function c(P){return l=ne(l,P),S(),l[l.length-1]!==null?[]:(B(t,0),s.events=pn(o,s.events,s),s.events)}function p(P,v){return Ru(h(P),v)}function h(P){return Fu(l,P)}function d(){const{_bufferIndex:P,_index:v,line:j,column:z,offset:T}=r;return{_bufferIndex:P,_index:v,line:j,column:z,offset:T}}function w(P){i[P.line]=P.column,y()}function S(){let P;for(;r._index<l.length;){const v=l[r._index];if(typeof v=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<v.length;)k(v.charCodeAt(r._bufferIndex));else k(v)}}function k(P){f=f(P)}function I(P){it(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,y()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=P}function C(P,v){const j=v||{};return j.type=P,j.start=d(),s.events.push(["enter",j,s]),u.push(j),j}function D(P){const v=u.pop();return v.end=d(),s.events.push(["exit",v,s]),v}function F(P,v){B(P,v.from)}function b(P,v){v.restore()}function O(P,v){return j;function j(z,T,H){let Y,re,he,m;return Array.isArray(z)?pe(z):"tokenize"in z?pe([z]):ie(z);function ie(X){return Oe;function Oe(ke){const Ee=ke!==null&&X[ke],Ie=ke!==null&&X.null,nn=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(Ie)?Ie:Ie?[Ie]:[]];return pe(nn)(ke)}}function pe(X){return Y=X,re=0,X.length===0?H:g(X[re])}function g(X){return Oe;function Oe(ke){return m=N(),he=X,X.partial||(s.currentConstruct=X),X.name&&s.parser.constructs.disable.null.includes(X.name)?xe():X.tokenize.call(v?Object.assign(Object.create(s),v):s,a,le,xe)(ke)}}function le(X){return P(he,m),T}function xe(X){return m.restore(),++re<Y.length?g(Y[re]):H}}}function B(P,v){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&ee(s.events,v,s.events.length-v,P.resolve(s.events.slice(v),s)),P.resolveTo&&(s.events=P.resolveTo(s.events,s))}function N(){const P=d(),v=s.previous,j=s.currentConstruct,z=s.events.length,T=Array.from(u);return{from:z,restore:H};function H(){r=P,s.previous=v,s.currentConstruct=j,s.events.length=z,u=T,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Fu(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Ru(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3
3
  `;break}case-3:{l=`\r
4
4
  `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function _u(e){const r={constructs:Or([Lu,...(e||{}).extensions||[]]),content:i(Ol),defined:[],document:i(Nl),flow:i(du),lazy:{},string:i(xu),text:i(bu)};return r;function i(o){return l;function l(u){return Du(r,o,u)}}}function Ou(e){for(;!Hr(e););return e}const Qt=/[\0\t\n\r]/g;function Mu(){let e=1,t="",n=!0,r;return i;function i(o,l,u){const a=[];let s,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Qt.lastIndex=c,s=Qt.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(c);break}if(h===10&&c===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<p&&(a.push(o.slice(c,p)),e+=p-c),h){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return u&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Nu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Bu(e){return e.replace(Nu,ju)}function ju(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Mr(n.slice(o?2:1),o?16:10)}return rt(n)||e}const Xr={}.hasOwnProperty;function $u(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Hu(n)(Ou(_u(n).document().write(Mu()(e,t,!0))))}function Hu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(bt),autolinkProtocol:N,autolinkEmail:N,atxHeading:o(kt),blockQuote:o(Ie),characterEscape:N,characterReference:N,codeFenced:o(nn),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(nn,l),codeText:o(zi,l),codeTextData:N,data:N,codeFlowValue:N,definition:o(Li),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Di),hardBreakEscape:o(yt),hardBreakTrailing:o(yt),htmlFlow:o(xt,l),htmlFlowData:N,htmlText:o(xt,l),htmlTextData:N,image:o(Fi),label:l,link:o(bt),listItem:o(Ri),listItemValue:p,listOrdered:o(wt,c),listUnordered:o(wt),paragraph:o(_i),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(kt),strong:o(Oi),thematicBreak:o(Ni)},exit:{atxHeading:a(),atxHeadingSequence:F,autolink:a(),autolinkEmail:Ee,autolinkProtocol:ke,blockQuote:a(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:X,characterReference:Oe,codeFenced:a(S),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:y,codeIndented:a(k),codeText:a(T),codeTextData:y,data:y,definition:a(),definitionDestinationString:D,definitionLabelString:I,definitionTitleString:C,emphasis:a(),hardBreakEscape:a(v),hardBreakTrailing:a(v),htmlFlow:a(j),htmlFlowData:y,htmlText:a(z),htmlTextData:y,image:a(Y),label:he,labelText:re,lineEnding:P,link:a(H),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:le,resourceDestinationString:m,resourceTitleString:ie,resource:pe,setextHeading:a(B),setextHeadingLineSequence:O,setextHeadingText:b,strong:a(),thematicBreak:a()}};Qr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(x){let A={type:"root",children:[]};const L={stack:[A],tokenStack:[],config:t,enter:u,exit:s,buffer:l,resume:f,data:n},M=[];let q=-1;for(;++q<x.length;)if(x[q][1].type==="listOrdered"||x[q][1].type==="listUnordered")if(x[q][0]==="enter")M.push(q);else{const oe=M.pop();q=i(x,oe,q)}for(q=-1;++q<x.length;){const oe=t[x[q][0]];Xr.call(oe,x[q][1].type)&&oe[x[q][1].type].call(Object.assign({sliceSerialize:x[q][2].sliceSerialize},L),x[q][1])}if(L.tokenStack.length>0){const oe=L.tokenStack[L.tokenStack.length-1];(oe[1]||Gt).call(L,void 0,oe[0])}for(A.position={start:ye(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:ye(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q<t.transforms.length;)A=t.transforms[q](A)||A;return A}function i(x,A,L){let M=A-1,q=-1,oe=!1,be,me,Me,Ne;for(;++M<=L;){const Z=x[M];switch(Z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Z[0]==="enter"?q++:q--,Ne=void 0;break}case"lineEndingBlank":{Z[0]==="enter"&&(be&&!Ne&&!q&&!Me&&(Me=M),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!q&&Z[0]==="enter"&&Z[1].type==="listItemPrefix"||q===-1&&Z[0]==="exit"&&(Z[1].type==="listUnordered"||Z[1].type==="listOrdered")){if(be){let Ae=M;for(me=void 0;Ae--;){const ge=x[Ae];if(ge[1].type==="lineEnding"||ge[1].type==="lineEndingBlank"){if(ge[0]==="exit")continue;me&&(x[me][1].type="lineEndingBlank",oe=!0),ge[1].type="lineEnding",me=Ae}else if(!(ge[1].type==="linePrefix"||ge[1].type==="blockQuotePrefix"||ge[1].type==="blockQuotePrefixWhitespace"||ge[1].type==="blockQuoteMarker"||ge[1].type==="listItemIndent"))break}Me&&(!me||Me<me)&&(be._spread=!0),be.end=Object.assign({},me?x[me][1].start:Z[1].end),x.splice(me||M,0,["exit",be,Z[2]]),M++,L++}if(Z[1].type==="listItemPrefix"){const Ae={type:"listItem",_spread:!1,start:Object.assign({},Z[1].start),end:void 0};be=Ae,x.splice(M,0,["enter",Ae,Z[2]]),M++,L++,Me=void 0,Ne=!0}}}return x[A][1]._spread=oe,L}function o(x,A){return L;function L(M){u.call(this,x(M),M),A&&A.call(this,M)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(x,A,L){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([A,L||void 0]),x.position={start:ye(A.start),end:void 0}}function a(x){return A;function A(L){x&&x.call(this,L),s.call(this,L)}}function s(x,A){const L=this.stack.pop(),M=this.tokenStack.pop();if(M)M[0].type!==x.type&&(A?A.call(this,x,M[0]):(M[1]||Gt).call(this,x,M[0]));else throw new Error("Cannot close `"+x.type+"` ("+Ve({start:x.start,end:x.end})+"): it’s not open");L.position.end=ye(x.end)}function f(){return tt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(x){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function h(){const x=this.resume(),A=this.stack[this.stack.length-1];A.lang=x}function d(){const x=this.resume(),A=this.stack[this.stack.length-1];A.meta=x}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/(\r?\n|\r)$/g,"")}function I(x){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=ae(this.sliceSerialize(x)).toLowerCase()}function C(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function D(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function F(x){const A=this.stack[this.stack.length-1];if(!A.depth){const L=this.sliceSerialize(x).length;A.depth=L}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function O(x){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function N(x){const L=this.stack[this.stack.length-1].children;let M=L[L.length-1];(!M||M.type!=="text")&&(M=Mi(),M.position={start:ye(x.start),end:void 0},L.push(M)),this.stack.push(M)}function y(x){const A=this.stack.pop();A.value+=this.sliceSerialize(x),A.position.end=ye(x.end)}function P(x){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=A.children[A.children.length-1];L.position.end=ye(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(N.call(this,x),y.call(this,x))}function v(){this.data.atHardBreak=!0}function j(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function z(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function T(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function H(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function Y(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function re(x){const A=this.sliceSerialize(x),L=this.stack[this.stack.length-2];L.label=Bu(A),L.identifier=ae(A).toLowerCase()}function he(){const x=this.stack[this.stack.length-1],A=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const M=x.children;L.children=M}else L.alt=A}function m(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function ie(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function pe(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function le(x){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=ae(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function xe(x){this.data.characterReferenceType=x.type}function X(x){const A=this.sliceSerialize(x),L=this.data.characterReferenceType;let M;L?(M=Mr(A,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):M=rt(A);const q=this.stack[this.stack.length-1];q.value+=M}function Oe(x){const A=this.stack.pop();A.position.end=ye(x.end)}function ke(x){y.call(this,x);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(x)}function Ee(x){y.call(this,x);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(x)}function Ie(){return{type:"blockquote",children:[]}}function nn(){return{type:"code",lang:null,meta:null,value:""}}function zi(){return{type:"inlineCode",value:""}}function Li(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Di(){return{type:"emphasis",children:[]}}function kt(){return{type:"heading",depth:0,children:[]}}function yt(){return{type:"break"}}function xt(){return{type:"html",value:""}}function Fi(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function wt(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function Ri(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function _i(){return{type:"paragraph",children:[]}}function Oi(){return{type:"strong",children:[]}}function Mi(){return{type:"text",value:""}}function Ni(){return{type:"thematicBreak"}}}function ye(e){return{line:e.line,column:e.column,offset:e.offset}}function Qr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Qr(e,r):qu(e,r)}}function qu(e,t){let n;for(n in t)if(Xr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Gt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ve({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ve({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ve({start:t.start,end:t.end})+") is still open")}function Uu(e){const t=this;t.parser=n;function n(r){return $u(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Vu(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Wu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -0,0 +1,4 @@
1
+ function Ja(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const o=Object.getOwnPropertyDescriptor(a,n);o&&Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nt={exports:{}},j={};var Rr;function Xa(){if(Rr)return j;Rr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),g=Symbol.iterator;function R(d){return d===null||typeof d!="object"?null:(d=g&&d[g]||d["@@iterator"],typeof d=="function"?d:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,b={};function L(d,w,T){this.props=d,this.context=w,this.refs=b,this.updater=T||S}L.prototype.isReactComponent={},L.prototype.setState=function(d,w){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,w,"setState")},L.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function _(){}_.prototype=L.prototype;function k(d,w,T){this.props=d,this.context=w,this.refs=b,this.updater=T||S}var X=k.prototype=new _;X.constructor=k,C(X,L.prototype),X.isPureReactComponent=!0;var B=Array.isArray;function Q(){}var $={H:null,A:null,T:null,S:null},y=Object.prototype.hasOwnProperty;function G(d,w,T){var M=T.ref;return{$$typeof:e,type:d,key:w,ref:M!==void 0?M:null,props:T}}function Z(d,w){return G(d.type,w,d.props)}function le(d){return typeof d=="object"&&d!==null&&d.$$typeof===e}function q(d){var w={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(T){return w[T]})}var de=/\/+/g;function ee(d,w){return typeof d=="object"&&d!==null&&d.key!=null?q(""+d.key):w.toString(36)}function W(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Q,Q):(d.status="pending",d.then(function(w){d.status==="pending"&&(d.status="fulfilled",d.value=w)},function(w){d.status==="pending"&&(d.status="rejected",d.reason=w)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function re(d,w,T,M,I){var H=typeof d;(H==="undefined"||H==="boolean")&&(d=null);var V=!1;if(d===null)V=!0;else switch(H){case"bigint":case"string":case"number":V=!0;break;case"object":switch(d.$$typeof){case e:case t:V=!0;break;case p:return V=d._init,re(V(d._payload),w,T,M,I)}}if(V)return I=I(d),V=M===""?"."+ee(d,0):M,B(I)?(T="",V!=null&&(T=V.replace(de,"$&/")+"/"),re(I,w,T,"",function(Mt){return Mt})):I!=null&&(le(I)&&(I=Z(I,T+(I.key==null||d&&d.key===I.key?"":(""+I.key).replace(de,"$&/")+"/")+V)),w.push(I)),1;V=0;var ge=M===""?".":M+":";if(B(d))for(var ue=0;ue<d.length;ue++)M=d[ue],H=ge+ee(M,ue),V+=re(M,w,T,H,I);else if(ue=R(d),typeof ue=="function")for(d=ue.call(d),ue=0;!(M=d.next()).done;)M=M.value,H=ge+ee(M,ue++),V+=re(M,w,T,H,I);else if(H==="object"){if(typeof d.then=="function")return re(W(d),w,T,M,I);throw w=String(d),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return V}function se(d,w,T){if(d==null)return d;var M=[],I=0;return re(d,M,"","",function(H){return w.call(T,H,I++)}),M}function fe(d){if(d._status===-1){var w=d._result;w=w(),w.then(function(T){(d._status===0||d._status===-1)&&(d._status=1,d._result=T)},function(T){(d._status===0||d._status===-1)&&(d._status=2,d._result=T)}),d._status===-1&&(d._status=0,d._result=w)}if(d._status===1)return d._result.default;throw d._result}var Y=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},ve={map:se,forEach:function(d,w,T){se(d,function(){w.apply(this,arguments)},T)},count:function(d){var w=0;return se(d,function(){w++}),w},toArray:function(d){return se(d,function(w){return w})||[]},only:function(d){if(!le(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return j.Activity=h,j.Children=ve,j.Component=L,j.Fragment=r,j.Profiler=n,j.PureComponent=k,j.StrictMode=a,j.Suspense=s,j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,j.__COMPILER_RUNTIME={__proto__:null,c:function(d){return $.H.useMemoCache(d)}},j.cache=function(d){return function(){return d.apply(null,arguments)}},j.cacheSignal=function(){return null},j.cloneElement=function(d,w,T){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var M=C({},d.props),I=d.key;if(w!=null)for(H in w.key!==void 0&&(I=""+w.key),w)!y.call(w,H)||H==="key"||H==="__self"||H==="__source"||H==="ref"&&w.ref===void 0||(M[H]=w[H]);var H=arguments.length-2;if(H===1)M.children=T;else if(1<H){for(var V=Array(H),ge=0;ge<H;ge++)V[ge]=arguments[ge+2];M.children=V}return G(d.type,I,M)},j.createContext=function(d){return d={$$typeof:i,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:o,_context:d},d},j.createElement=function(d,w,T){var M,I={},H=null;if(w!=null)for(M in w.key!==void 0&&(H=""+w.key),w)y.call(w,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(I[M]=w[M]);var V=arguments.length-2;if(V===1)I.children=T;else if(1<V){for(var ge=Array(V),ue=0;ue<V;ue++)ge[ue]=arguments[ue+2];I.children=ge}if(d&&d.defaultProps)for(M in V=d.defaultProps,V)I[M]===void 0&&(I[M]=V[M]);return G(d,H,I)},j.createRef=function(){return{current:null}},j.forwardRef=function(d){return{$$typeof:u,render:d}},j.isValidElement=le,j.lazy=function(d){return{$$typeof:p,_payload:{_status:-1,_result:d},_init:fe}},j.memo=function(d,w){return{$$typeof:l,type:d,compare:w===void 0?null:w}},j.startTransition=function(d){var w=$.T,T={};$.T=T;try{var M=d(),I=$.S;I!==null&&I(T,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(Q,Y)}catch(H){Y(H)}finally{w!==null&&T.types!==null&&(w.types=T.types),$.T=w}},j.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},j.use=function(d){return $.H.use(d)},j.useActionState=function(d,w,T){return $.H.useActionState(d,w,T)},j.useCallback=function(d,w){return $.H.useCallback(d,w)},j.useContext=function(d){return $.H.useContext(d)},j.useDebugValue=function(){},j.useDeferredValue=function(d,w){return $.H.useDeferredValue(d,w)},j.useEffect=function(d,w){return $.H.useEffect(d,w)},j.useEffectEvent=function(d){return $.H.useEffectEvent(d)},j.useId=function(){return $.H.useId()},j.useImperativeHandle=function(d,w,T){return $.H.useImperativeHandle(d,w,T)},j.useInsertionEffect=function(d,w){return $.H.useInsertionEffect(d,w)},j.useLayoutEffect=function(d,w){return $.H.useLayoutEffect(d,w)},j.useMemo=function(d,w){return $.H.useMemo(d,w)},j.useOptimistic=function(d,w){return $.H.useOptimistic(d,w)},j.useReducer=function(d,w,T){return $.H.useReducer(d,w,T)},j.useRef=function(d){return $.H.useRef(d)},j.useState=function(d){return $.H.useState(d)},j.useSyncExternalStore=function(d,w,T){return $.H.useSyncExternalStore(d,w,T)},j.useTransition=function(){return $.H.useTransition()},j.version="19.2.4",j}var wr;function Zr(){return wr||(wr=1,Nt.exports=Xa()),Nt.exports}var m=Zr();const Qa=Qr(m),Za=Ja({__proto__:null,default:Qa},[m]);var Ut={exports:{}},me={};var Er;function en(){if(Er)return me;Er=1;var e=Zr();function t(s){var l="https://react.dev/errors/"+s;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},n=Symbol.for("react.portal");function o(s,l,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:s,containerInfo:l,implementation:p}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(s,l){if(s==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,me.createPortal=function(s,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(t(299));return o(s,l,null,p)},me.flushSync=function(s){var l=i.T,p=a.p;try{if(i.T=null,a.p=2,s)return s()}finally{i.T=l,a.p=p,a.d.f()}},me.preconnect=function(s,l){typeof s=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,a.d.C(s,l))},me.prefetchDNS=function(s){typeof s=="string"&&a.d.D(s)},me.preinit=function(s,l){if(typeof s=="string"&&l&&typeof l.as=="string"){var p=l.as,h=u(p,l.crossOrigin),g=typeof l.integrity=="string"?l.integrity:void 0,R=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;p==="style"?a.d.S(s,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:R}):p==="script"&&a.d.X(s,{crossOrigin:h,integrity:g,fetchPriority:R,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},me.preinitModule=function(s,l){if(typeof s=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var p=u(l.as,l.crossOrigin);a.d.M(s,{crossOrigin:p,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&a.d.M(s)},me.preload=function(s,l){if(typeof s=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var p=l.as,h=u(p,l.crossOrigin);a.d.L(s,p,{crossOrigin:h,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},me.preloadModule=function(s,l){if(typeof s=="string")if(l){var p=u(l.as,l.crossOrigin);a.d.m(s,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:p,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else a.d.m(s)},me.requestFormReset=function(s){a.d.r(s)},me.unstable_batchedUpdates=function(s,l){return s(l)},me.useFormState=function(s,l,p){return i.H.useFormState(s,l,p)},me.useFormStatus=function(){return i.H.useHostTransitionStatus()},me.version="19.2.4",me}var br;function tn(){if(br)return Ut.exports;br=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ut.exports=en(),Ut.exports}var ea=e=>{throw TypeError(e)},rn=(e,t,r)=>t.has(e)||ea("Cannot "+r),$t=(e,t,r)=>(rn(e,t,"read from private field"),r?r.call(e):t.get(e)),an=(e,t,r)=>t.has(e)?ea("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Sr="popstate";function Pr(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function nn(e={}){function t(a,n){let o=n.state?.masked,{pathname:i,search:u,hash:s}=o||a.location;return lt("",{pathname:i,search:u,hash:s},n.state&&n.state.usr||null,n.state&&n.state.key||"default",o?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,n){return typeof n=="string"?n:_e(n)}return ln(t,r,null,e)}function z(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ie(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function on(){return Math.random().toString(36).substring(2,10)}function Cr(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function lt(e,t,r=null,a,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ae(t):t,state:r,key:t&&t.key||a||on(),unstable_mask:n}}function _e({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ae(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function ln(e,t,r,a={}){let{window:n=document.defaultView,v5Compat:o=!1}=a,i=n.history,u="POP",s=null,l=p();l==null&&(l=0,i.replaceState({...i.state,idx:l},""));function p(){return(i.state||{idx:null}).idx}function h(){u="POP";let b=p(),L=b==null?null:b-l;l=b,s&&s({action:u,location:C.location,delta:L})}function g(b,L){u="PUSH";let _=Pr(b)?b:lt(C.location,b,L);l=p()+1;let k=Cr(_,l),X=C.createHref(_.unstable_mask||_);try{i.pushState(k,"",X)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;n.location.assign(X)}o&&s&&s({action:u,location:C.location,delta:1})}function R(b,L){u="REPLACE";let _=Pr(b)?b:lt(C.location,b,L);l=p();let k=Cr(_,l),X=C.createHref(_.unstable_mask||_);i.replaceState(k,"",X),o&&s&&s({action:u,location:C.location,delta:0})}function S(b){return ta(b)}let C={get action(){return u},get location(){return e(n,i)},listen(b){if(s)throw new Error("A history only accepts one active listener");return n.addEventListener(Sr,h),s=b,()=>{n.removeEventListener(Sr,h),s=null}},createHref(b){return t(n,b)},createURL:S,encodeLocation(b){let L=S(b);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:g,replace:R,go(b){return i.go(b)}};return C}function ta(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),z(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:_e(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}var nt,xr=class{constructor(e){if(an(this,nt,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if($t(this,nt).has(e))return $t(this,nt).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){$t(this,nt).set(e,t)}};nt=new WeakMap;var sn=new Set(["lazy","caseSensitive","path","id","index","children"]);function un(e){return sn.has(e)}var cn=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function dn(e){return cn.has(e)}function fn(e){return e.index===!0}function st(e,t,r=[],a={},n=!1){return e.map((o,i)=>{let u=[...r,String(i)],s=typeof o.id=="string"?o.id:u.join("-");if(z(o.index!==!0||!o.children,"Cannot specify children on an index route"),z(n||!a[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),fn(o)){let l={...o,id:s};return a[s]=Lr(l,t(l)),l}else{let l={...o,id:s,children:void 0};return a[s]=Lr(l,t(l)),o.children&&(l.children=st(o.children,t,u,a,n)),l}})}function Lr(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Ne(e,t,r="/"){return ot(e,t,r,!1)}function ot(e,t,r,a){let n=typeof t=="string"?Ae(t):t,o=Pe(n.pathname||"/",r);if(o==null)return null;let i=ra(e);pn(i);let u=null;for(let s=0;u==null&&s<i.length;++s){let l=Cn(o);u=Sn(i[s],l,a)}return u}function hn(e,t){let{route:r,pathname:a,params:n}=e;return{id:r.id,pathname:a,params:n,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function ra(e,t=[],r=[],a="",n=!1){let o=(i,u,s=n,l)=>{let p={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:u,route:i};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(a)&&s)return;z(p.relativePath.startsWith(a),`Absolute route path "${p.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(a.length)}let h=xe([a,p.relativePath]),g=r.concat(p);i.children&&i.children.length>0&&(z(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),ra(i.children,t,g,h,s)),!(i.path==null&&!i.index)&&t.push({path:h,score:En(h,i.index),routesMeta:g})};return e.forEach((i,u)=>{if(i.path===""||!i.path?.includes("?"))o(i,u);else for(let s of aa(i.path))o(i,u,!0,s)}),t}function aa(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return n?[o,""]:[o];let i=aa(a.join("/")),u=[];return u.push(...i.map(s=>s===""?o:[o,s].join("/"))),n&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function pn(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:bn(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var mn=/^:[\w-]+$/,yn=3,vn=2,gn=1,Rn=10,wn=-2,_r=e=>e==="*";function En(e,t){let r=e.split("/"),a=r.length;return r.some(_r)&&(a+=wn),t&&(a+=vn),r.filter(n=>!_r(n)).reduce((n,o)=>n+(mn.test(o)?yn:o===""?gn:Rn),a)}function bn(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function Sn(e,t,r=!1){let{routesMeta:a}=e,n={},o="/",i=[];for(let u=0;u<a.length;++u){let s=a[u],l=u===a.length-1,p=o==="/"?t:t.slice(o.length)||"/",h=Lt({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},p),g=s.route;if(!h&&l&&r&&!a[a.length-1].route.index&&(h=Lt({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},p)),!h)return null;Object.assign(n,h.params),i.push({params:n,pathname:xe([o,h.pathname]),pathnameBase:_n(xe([o,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(o=xe([o,h.pathnameBase]))}return i}function Lt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=Pn(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let o=n[0],i=o.replace(/(.)\/+$/,"$1"),u=n.slice(1);return{params:a.reduce((l,{paramName:p,isOptional:h},g)=>{if(p==="*"){let S=u[g]||"";i=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const R=u[g];return h&&!R?l[p]=void 0:l[p]=(R||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function Pn(e,t=!1,r=!0){ie(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,s,l,p)=>{if(a.push({paramName:u,isOptional:s!=null}),s){let h=p.charAt(l+i.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function Cn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ie(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Pe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function xn({basename:e,pathname:t}){return t==="/"?e:xe([e,t])}var na=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=e=>na.test(e);function Ln(e,t="/"){let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?Ae(e):e,o;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?o=Dr(r.substring(1),"/"):o=Dr(r,t)):o=t,{pathname:o,search:Dn(a),hash:Tn(n)}}function Dr(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function jt(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function oa(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _t(e){let t=oa(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function ct(e,t,r,a=!1){let n;typeof e=="string"?n=Ae(e):(n={...e},z(!n.pathname||!n.pathname.includes("?"),jt("?","pathname","search",n)),z(!n.pathname||!n.pathname.includes("#"),jt("#","pathname","hash",n)),z(!n.search||!n.search.includes("#"),jt("#","search","hash",n)));let o=e===""||n.pathname==="",i=o?"/":n.pathname,u;if(i==null)u=r;else{let h=t.length-1;if(!a&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),h-=1;n.pathname=g.join("/")}u=h>=0?t[h]:"/"}let s=Ln(n,u),l=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(l||p)&&(s.pathname+="/"),s}var xe=e=>e.join("/").replace(/\/\/+/g,"/"),_n=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dn=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Tn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,dt=class{constructor(e,t,r,a=!1){this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ut(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function ft(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ia=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function la(e,t){let r=e;if(typeof r!="string"||!na.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,n=!1;if(ia)try{let o=new URL(window.location.href),i=r.startsWith("//")?new URL(o.protocol+r):new URL(r),u=Pe(i.pathname,t);i.origin===o.origin&&u!=null?r=u+i.search+i.hash:n=!0}catch{ie(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:r}}var $e=Symbol("Uninstrumented");function Mn(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(n=>n({id:t.id,index:t.index,path:t.path,instrument(o){let i=Object.keys(r);for(let u of i)o[u]&&r[u].push(o[u])}}));let a={};if(typeof t.lazy=="function"&&r.lazy.length>0){let n=qe(r.lazy,t.lazy,()=>{});n&&(a.lazy=n)}if(typeof t.lazy=="object"){let n=t.lazy;["middleware","loader","action"].forEach(o=>{let i=n[o],u=r[`lazy.${o}`];if(typeof i=="function"&&u.length>0){let s=qe(u,i,()=>{});s&&(a.lazy=Object.assign(a.lazy||{},{[o]:s}))}})}return["loader","action"].forEach(n=>{let o=t[n];if(typeof o=="function"&&r[n].length>0){let i=o[$e]??o,u=qe(r[n],i,(...s)=>Tr(s[0]));u&&(n==="loader"&&i.hydrate===!0&&(u.hydrate=!0),u[$e]=i,a[n]=u)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(a.middleware=t.middleware.map(n=>{let o=n[$e]??n,i=qe(r.middleware,o,(...u)=>Tr(u[0]));return i?(i[$e]=o,i):n})),a}function On(e,t){let r={navigate:[],fetch:[]};if(t.forEach(a=>a({instrument(n){let o=Object.keys(n);for(let i of o)n[i]&&r[i].push(n[i])}})),r.navigate.length>0){let a=e.navigate[$e]??e.navigate,n=qe(r.navigate,a,(...o)=>{let[i,u]=o;return{to:typeof i=="number"||typeof i=="string"?i:i?_e(i):".",...Mr(e,u??{})}});n&&(n[$e]=a,e.navigate=n)}if(r.fetch.length>0){let a=e.fetch[$e]??e.fetch,n=qe(r.fetch,a,(...o)=>{let[i,,u,s]=o;return{href:u??".",fetcherKey:i,...Mr(e,s??{})}});n&&(n[$e]=a,e.fetch=n)}return e}function qe(e,t,r){return e.length===0?null:async(...a)=>{let n=await sa(e,r(...a),()=>t(...a),e.length-1);if(n.type==="error")throw n.value;return n.value}}async function sa(e,t,r,a){let n=e[a],o;if(n){let i,u=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=sa(e,t,r,a-1),o=await i,z(o,"Expected a result"),o.type==="error"&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await n(u,t)}catch(s){console.error("An instrumentation function threw an error:",s)}i||await u(),await i}else try{o={type:"success",value:await r()}}catch(i){o={type:"error",value:i}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Tr(e){let{request:t,context:r,params:a,unstable_pattern:n}=e;return{request:Fn(t),params:{...a},unstable_pattern:n,context:An(r)}}function Mr(e,t){return{currentUrl:_e(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function Fn(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function An(e){if(Nn(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var kn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Nn(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===kn}var ua=["POST","PUT","PATCH","DELETE"],Un=new Set(ua),$n=["GET",...ua],jn=new Set($n),ca=new Set([301,302,303,307,308]),zn=new Set([307,308]),zt={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},In={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tt={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Hn=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),da="remix-router-transitions",fa=Symbol("ResetLoaderData");function Bn(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";z(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a=e.hydrationRouteProperties||[],n=e.mapRouteProperties||Hn,o=n;if(e.unstable_instrumentations){let c=e.unstable_instrumentations;o=f=>({...n(f),...Mn(c.map(v=>v.route).filter(Boolean),f)})}let i={},u=st(e.routes,o,void 0,i),s,l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let p=e.dataStrategy||Gn,h={...e.future},g=null,R=new Set,S=null,C=null,b=null,L=e.hydrationData!=null,_=Ne(u,e.history.location,l),k=!1,X=null,B,Q;if(_==null&&!e.patchRoutesOnNavigation){let c=Se(404,{pathname:e.history.location.pathname}),{matches:f,route:v}=Et(u);B=!0,Q=!B,_=f,X={[v.id]:c}}else if(_&&!e.hydrationData&&yt(_,u,e.history.location.pathname).active&&(_=null),_)if(_.some(c=>c.route.lazy))B=!1,Q=!B;else if(!_.some(c=>Jt(c.route)))B=!0,Q=!B;else{let c=e.hydrationData?e.hydrationData.loaderData:null,f=e.hydrationData?e.hydrationData.errors:null,v=_;if(f){let E=_.findIndex(P=>f[P.route.id]!==void 0);v=v.slice(0,E+1)}Q=!1,B=v.every(E=>{let P=ha(E.route,c,f);return Q=Q||P.renderFallback,!P.shouldLoad})}else{B=!1,Q=!B,_=[];let c=yt(null,u,e.history.location.pathname);c.active&&c.matches&&(k=!0,_=c.matches)}let $,y={historyAction:e.history.action,location:e.history.location,matches:_,initialized:B,renderFallback:Q,navigation:zt,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||X,fetchers:new Map,blockers:new Map},G="POP",Z=null,le=!1,q,de=!1,ee=new Map,W=null,re=!1,se=!1,fe=new Set,Y=new Map,ve=0,d=-1,w=new Map,T=new Set,M=new Map,I=new Map,H=new Set,V=new Map,ge,ue=null;function Mt(){if(g=e.history.listen(({action:c,location:f,delta:v})=>{if(ge){ge(),ge=void 0;return}ie(V.size===0||v!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let E=pr({currentLocation:y.location,nextLocation:f,historyAction:c});if(E&&v!=null){let P=new Promise(O=>{ge=O});e.history.go(v*-1),mt(E,{state:"blocked",location:f,proceed(){mt(E,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),P.then(()=>e.history.go(v))},reset(){let O=new Map(y.blockers);O.set(E,tt),he({blockers:O})}}),Z?.resolve(),Z=null;return}return je(c,f)}),r){ho(t,ee);let c=()=>po(t,ee);t.addEventListener("pagehide",c),W=()=>t.removeEventListener("pagehide",c)}return y.initialized||je("POP",y.location,{initialHydration:!0}),$}function Fa(){g&&g(),W&&W(),R.clear(),q&&q.abort(),y.fetchers.forEach((c,f)=>Ft(f)),y.blockers.forEach((c,f)=>hr(f))}function Aa(c){return R.add(c),()=>R.delete(c)}function he(c,f={}){c.matches&&(c.matches=c.matches.map(P=>{let O=i[P.route.id],x=P.route;return x.element!==O.element||x.errorElement!==O.errorElement||x.hydrateFallbackElement!==O.hydrateFallbackElement?{...P,route:O}:P})),y={...y,...c};let v=[],E=[];y.fetchers.forEach((P,O)=>{P.state==="idle"&&(H.has(O)?v.push(O):E.push(O))}),H.forEach(P=>{!y.fetchers.has(P)&&!Y.has(P)&&v.push(P)}),[...R].forEach(P=>P(y,{deletedFetchers:v,newErrors:c.errors??null,viewTransitionOpts:f.viewTransitionOpts,flushSync:f.flushSync===!0})),v.forEach(P=>Ft(P)),E.forEach(P=>y.fetchers.delete(P))}function Ve(c,f,{flushSync:v}={}){let E=y.actionData!=null&&y.navigation.formMethod!=null&&ye(y.navigation.formMethod)&&y.navigation.state==="loading"&&c.state?._isRedirect!==!0,P;f.actionData?Object.keys(f.actionData).length>0?P=f.actionData:P=null:E?P=y.actionData:P=null;let O=f.loaderData?Ir(y.loaderData,f.loaderData,f.matches||[],f.errors):y.loaderData,x=y.blockers;x.size>0&&(x=new Map(x),x.forEach((U,F)=>x.set(F,tt)));let A=re?!1:yr(c,f.matches||y.matches),D=le===!0||y.navigation.formMethod!=null&&ye(y.navigation.formMethod)&&c.state?._isRedirect!==!0;s&&(u=s,s=void 0),re||G==="POP"||(G==="PUSH"?e.history.push(c,c.state):G==="REPLACE"&&e.history.replace(c,c.state));let N;if(G==="POP"){let U=ee.get(y.location.pathname);U&&U.has(c.pathname)?N={currentLocation:y.location,nextLocation:c}:ee.has(c.pathname)&&(N={currentLocation:c,nextLocation:y.location})}else if(de){let U=ee.get(y.location.pathname);U?U.add(c.pathname):(U=new Set([c.pathname]),ee.set(y.location.pathname,U)),N={currentLocation:y.location,nextLocation:c}}he({...f,actionData:P,loaderData:O,historyAction:G,location:c,initialized:!0,renderFallback:!1,navigation:zt,revalidation:"idle",restoreScrollPosition:A,preventScrollReset:D,blockers:x},{viewTransitionOpts:N,flushSync:v===!0}),G="POP",le=!1,de=!1,re=!1,se=!1,Z?.resolve(),Z=null,ue?.resolve(),ue=null}async function ir(c,f){if(Z?.resolve(),Z=null,typeof c=="number"){Z||(Z=Yr());let ne=Z.promise;return e.history.go(c),ne}let v=Wt(y.location,y.matches,l,c,f?.fromRouteId,f?.relative),{path:E,submission:P,error:O}=Or(!1,v,f),x;f?.unstable_mask&&(x={pathname:"",search:"",hash:"",...typeof f.unstable_mask=="string"?Ae(f.unstable_mask):{...y.location.unstable_mask,...f.unstable_mask}});let A=y.location,D=lt(A,E,f&&f.state,void 0,x);D={...D,...e.history.encodeLocation(D)};let N=f&&f.replace!=null?f.replace:void 0,U="PUSH";N===!0?U="REPLACE":N===!1||P!=null&&ye(P.formMethod)&&P.formAction===y.location.pathname+y.location.search&&(U="REPLACE");let F=f&&"preventScrollReset"in f?f.preventScrollReset===!0:void 0,te=(f&&f.flushSync)===!0,J=pr({currentLocation:A,nextLocation:D,historyAction:U});if(J){mt(J,{state:"blocked",location:D,proceed(){mt(J,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),ir(c,f)},reset(){let ne=new Map(y.blockers);ne.set(J,tt),he({blockers:ne})}});return}await je(U,D,{submission:P,pendingError:O,preventScrollReset:F,replace:f&&f.replace,enableViewTransition:f&&f.viewTransition,flushSync:te,callSiteDefaultShouldRevalidate:f&&f.unstable_defaultShouldRevalidate})}function ka(){ue||(ue=Yr()),Ot(),he({revalidation:"loading"});let c=ue.promise;return y.navigation.state==="submitting"?c:y.navigation.state==="idle"?(je(y.historyAction,y.location,{startUninterruptedRevalidation:!0}),c):(je(G||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation,enableViewTransition:de===!0}),c)}async function je(c,f,v){q&&q.abort(),q=null,G=c,re=(v&&v.startUninterruptedRevalidation)===!0,Va(y.location,y.matches),le=(v&&v.preventScrollReset)===!0,de=(v&&v.enableViewTransition)===!0;let E=s||u,P=v&&v.overrideNavigation,O=v?.initialHydration&&y.matches&&y.matches.length>0&&!k?y.matches:Ne(E,f,l),x=(v&&v.flushSync)===!0;if(O&&y.initialized&&!se&&ro(y.location,f)&&!(v&&v.submission&&ye(v.submission.formMethod))){Ve(f,{matches:O},{flushSync:x});return}let A=yt(O,E,f.pathname);if(A.active&&A.matches&&(O=A.matches),!O){let{error:ce,notFoundMatches:Re,route:ae}=At(f.pathname);Ve(f,{matches:Re,loaderData:{},errors:{[ae.id]:ce}},{flushSync:x});return}q=new AbortController;let D=Ge(e.history,f,q.signal,v&&v.submission),N=e.getContext?await e.getContext():new xr,U;if(v&&v.pendingError)U=[Ue(O).route.id,{type:"error",error:v.pendingError}];else if(v&&v.submission&&ye(v.submission.formMethod)){let ce=await Na(D,f,v.submission,O,N,A.active,v&&v.initialHydration===!0,{replace:v.replace,flushSync:x});if(ce.shortCircuited)return;if(ce.pendingActionResult){let[Re,ae]=ce.pendingActionResult;if(we(ae)&&ut(ae.error)&&ae.error.status===404){q=null,Ve(f,{matches:ce.matches,loaderData:{},errors:{[Re]:ae.error}});return}}O=ce.matches||O,U=ce.pendingActionResult,P=It(f,v.submission),x=!1,A.active=!1,D=Ge(e.history,D.url,D.signal)}let{shortCircuited:F,matches:te,loaderData:J,errors:ne}=await Ua(D,f,O,N,A.active,P,v&&v.submission,v&&v.fetcherSubmission,v&&v.replace,v&&v.initialHydration===!0,x,U,v&&v.callSiteDefaultShouldRevalidate);F||(q=null,Ve(f,{matches:te||O,...Hr(U),loaderData:J,errors:ne}))}async function Na(c,f,v,E,P,O,x,A={}){Ot();let D=co(f,v);if(he({navigation:D},{flushSync:A.flushSync===!0}),O){let F=await vt(E,f.pathname,c.signal);if(F.type==="aborted")return{shortCircuited:!0};if(F.type==="error"){if(F.partialMatches.length===0){let{matches:J,route:ne}=Et(u);return{matches:J,pendingActionResult:[ne.id,{type:"error",error:F.error}]}}let te=Ue(F.partialMatches).route.id;return{matches:F.partialMatches,pendingActionResult:[te,{type:"error",error:F.error}]}}else if(F.matches)E=F.matches;else{let{notFoundMatches:te,error:J,route:ne}=At(f.pathname);return{matches:te,pendingActionResult:[ne.id,{type:"error",error:J}]}}}let N,U=Pt(E,f);if(!U.route.action&&!U.route.lazy)N={type:"error",error:Se(405,{method:c.method,pathname:f.pathname,routeId:U.route.id})};else{let F=Je(o,i,c,E,U,x?[]:a,P),te=await Qe(c,F,P,null);if(N=te[U.route.id],!N){for(let J of E)if(te[J.route.id]){N=te[J.route.id];break}}if(c.signal.aborted)return{shortCircuited:!0}}if(We(N)){let F;return A&&A.replace!=null?F=A.replace:F=$r(N.response.headers.get("Location"),new URL(c.url),l,e.history)===y.location.pathname+y.location.search,await ze(c,N,!0,{submission:v,replace:F}),{shortCircuited:!0}}if(we(N)){let F=Ue(E,U.route.id);return(A&&A.replace)!==!0&&(G="PUSH"),{matches:E,pendingActionResult:[F.route.id,N,U.route.id]}}return{matches:E,pendingActionResult:[U.route.id,N]}}async function Ua(c,f,v,E,P,O,x,A,D,N,U,F,te){let J=O||It(f,x),ne=x||A||Wr(J),ce=!re&&!N;if(P){if(ce){let pe=lr(F);he({navigation:J,...pe!==void 0?{actionData:pe}:{}},{flushSync:U})}let K=await vt(v,f.pathname,c.signal);if(K.type==="aborted")return{shortCircuited:!0};if(K.type==="error"){if(K.partialMatches.length===0){let{matches:Ke,route:Be}=Et(u);return{matches:Ke,loaderData:{},errors:{[Be.id]:K.error}}}let pe=Ue(K.partialMatches).route.id;return{matches:K.partialMatches,loaderData:{},errors:{[pe]:K.error}}}else if(K.matches)v=K.matches;else{let{error:pe,notFoundMatches:Ke,route:Be}=At(f.pathname);return{matches:Ke,loaderData:{},errors:{[Be.id]:pe}}}}let Re=s||u,{dsMatches:ae,revalidatingFetchers:be}=Fr(c,E,o,i,e.history,y,v,ne,f,N?[]:a,N===!0,se,fe,H,M,T,Re,l,e.patchRoutesOnNavigation!=null,F,te);if(d=++ve,!e.dataStrategy&&!ae.some(K=>K.shouldLoad)&&!ae.some(K=>K.route.middleware&&K.route.middleware.length>0)&&be.length===0){let K=dr();return Ve(f,{matches:v,loaderData:{},errors:F&&we(F[1])?{[F[0]]:F[1].error}:null,...Hr(F),...K?{fetchers:new Map(y.fetchers)}:{}},{flushSync:U}),{shortCircuited:!0}}if(ce){let K={};if(!P){K.navigation=J;let pe=lr(F);pe!==void 0&&(K.actionData=pe)}be.length>0&&(K.fetchers=$a(be)),he(K,{flushSync:U})}be.forEach(K=>{Oe(K.key),K.controller&&Y.set(K.key,K.controller)});let Ie=()=>be.forEach(K=>Oe(K.key));q&&q.signal.addEventListener("abort",Ie);let{loaderResults:Ze,fetcherResults:ke}=await sr(ae,be,c,E);if(c.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",Ie),be.forEach(K=>Y.delete(K.key));let Le=bt(Ze);if(Le)return await ze(c,Le.result,!0,{replace:D}),{shortCircuited:!0};if(Le=bt(ke),Le)return T.add(Le.key),await ze(c,Le.result,!0,{replace:D}),{shortCircuited:!0};let{loaderData:kt,errors:et}=zr(y,v,Ze,F,be,ke);N&&y.errors&&(et={...y.errors,...et});let He=dr(),gt=fr(d),Rt=He||gt||be.length>0;return{matches:v,loaderData:kt,errors:et,...Rt?{fetchers:new Map(y.fetchers)}:{}}}function lr(c){if(c&&!we(c[1]))return{[c[0]]:c[1].data};if(y.actionData)return Object.keys(y.actionData).length===0?null:y.actionData}function $a(c){return c.forEach(f=>{let v=y.fetchers.get(f.key),E=rt(void 0,v?v.data:void 0);y.fetchers.set(f.key,E)}),new Map(y.fetchers)}async function ja(c,f,v,E){Oe(c);let P=(E&&E.flushSync)===!0,O=s||u,x=Wt(y.location,y.matches,l,v,f,E?.relative),A=Ne(O,x,l),D=yt(A,O,x);if(D.active&&D.matches&&(A=D.matches),!A){Me(c,f,Se(404,{pathname:x}),{flushSync:P});return}let{path:N,submission:U,error:F}=Or(!0,x,E);if(F){Me(c,f,F,{flushSync:P});return}let te=e.getContext?await e.getContext():new xr,J=(E&&E.preventScrollReset)===!0;if(U&&ye(U.formMethod)){await za(c,f,N,A,te,D.active,P,J,U,E&&E.unstable_defaultShouldRevalidate);return}M.set(c,{routeId:f,path:N}),await Ia(c,f,N,A,te,D.active,P,J,U)}async function za(c,f,v,E,P,O,x,A,D,N){Ot(),M.delete(c);let U=y.fetchers.get(c);Te(c,fo(D,U),{flushSync:x});let F=new AbortController,te=Ge(e.history,v,F.signal,D);if(O){let oe=await vt(E,new URL(te.url).pathname,te.signal,c);if(oe.type==="aborted")return;if(oe.type==="error"){Me(c,f,oe.error,{flushSync:x});return}else if(oe.matches)E=oe.matches;else{Me(c,f,Se(404,{pathname:v}),{flushSync:x});return}}let J=Pt(E,v);if(!J.route.action&&!J.route.lazy){let oe=Se(405,{method:D.formMethod,pathname:v,routeId:f});Me(c,f,oe,{flushSync:x});return}Y.set(c,F);let ne=ve,ce=Je(o,i,te,E,J,a,P),Re=await Qe(te,ce,P,c),ae=Re[J.route.id];if(!ae){for(let oe of ce)if(Re[oe.route.id]){ae=Re[oe.route.id];break}}if(te.signal.aborted){Y.get(c)===F&&Y.delete(c);return}if(H.has(c)){if(We(ae)||we(ae)){Te(c,Fe(void 0));return}}else{if(We(ae))if(Y.delete(c),d>ne){Te(c,Fe(void 0));return}else return T.add(c),Te(c,rt(D)),ze(te,ae,!1,{fetcherSubmission:D,preventScrollReset:A});if(we(ae)){Me(c,f,ae.error);return}}let be=y.navigation.location||y.location,Ie=Ge(e.history,be,F.signal),Ze=s||u,ke=y.navigation.state!=="idle"?Ne(Ze,y.navigation.location,l):y.matches;z(ke,"Didn't find any matches after fetcher action");let Le=++ve;w.set(c,Le);let kt=rt(D,ae.data);y.fetchers.set(c,kt);let{dsMatches:et,revalidatingFetchers:He}=Fr(Ie,P,o,i,e.history,y,ke,D,be,a,!1,se,fe,H,M,T,Ze,l,e.patchRoutesOnNavigation!=null,[J.route.id,ae],N);He.filter(oe=>oe.key!==c).forEach(oe=>{let wt=oe.key,gr=y.fetchers.get(wt),qa=rt(void 0,gr?gr.data:void 0);y.fetchers.set(wt,qa),Oe(wt),oe.controller&&Y.set(wt,oe.controller)}),he({fetchers:new Map(y.fetchers)});let gt=()=>He.forEach(oe=>Oe(oe.key));F.signal.addEventListener("abort",gt);let{loaderResults:Rt,fetcherResults:K}=await sr(et,He,Ie,P);if(F.signal.aborted)return;if(F.signal.removeEventListener("abort",gt),w.delete(c),Y.delete(c),He.forEach(oe=>Y.delete(oe.key)),y.fetchers.has(c)){let oe=Fe(ae.data);y.fetchers.set(c,oe)}let pe=bt(Rt);if(pe)return ze(Ie,pe.result,!1,{preventScrollReset:A});if(pe=bt(K),pe)return T.add(pe.key),ze(Ie,pe.result,!1,{preventScrollReset:A});let{loaderData:Ke,errors:Be}=zr(y,ke,Rt,void 0,He,K);fr(Le),y.navigation.state==="loading"&&Le>d?(z(G,"Expected pending action"),q&&q.abort(),Ve(y.navigation.location,{matches:ke,loaderData:Ke,errors:Be,fetchers:new Map(y.fetchers)})):(he({errors:Be,loaderData:Ir(y.loaderData,Ke,ke,Be),fetchers:new Map(y.fetchers)}),se=!1)}async function Ia(c,f,v,E,P,O,x,A,D){let N=y.fetchers.get(c);Te(c,rt(D,N?N.data:void 0),{flushSync:x});let U=new AbortController,F=Ge(e.history,v,U.signal);if(O){let ae=await vt(E,new URL(F.url).pathname,F.signal,c);if(ae.type==="aborted")return;if(ae.type==="error"){Me(c,f,ae.error,{flushSync:x});return}else if(ae.matches)E=ae.matches;else{Me(c,f,Se(404,{pathname:v}),{flushSync:x});return}}let te=Pt(E,v);Y.set(c,U);let J=ve,ne=Je(o,i,F,E,te,a,P),Re=(await Qe(F,ne,P,c))[te.route.id];if(Y.get(c)===U&&Y.delete(c),!F.signal.aborted){if(H.has(c)){Te(c,Fe(void 0));return}if(We(Re))if(d>J){Te(c,Fe(void 0));return}else{T.add(c),await ze(F,Re,!1,{preventScrollReset:A});return}if(we(Re)){Me(c,f,Re.error);return}Te(c,Fe(Re.data))}}async function ze(c,f,v,{submission:E,fetcherSubmission:P,preventScrollReset:O,replace:x}={}){v||(Z?.resolve(),Z=null),f.response.headers.has("X-Remix-Revalidate")&&(se=!0);let A=f.response.headers.get("Location");z(A,"Expected a Location header on the redirect Response"),A=$r(A,new URL(c.url),l,e.history);let D=lt(y.location,A,{_isRedirect:!0});if(r){let ne=!1;if(f.response.headers.has("X-Remix-Reload-Document"))ne=!0;else if(qt(A)){const ce=ta(A,!0);ne=ce.origin!==t.location.origin||Pe(ce.pathname,l)==null}if(ne){x?t.location.replace(A):t.location.assign(A);return}}q=null;let N=x===!0||f.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:U,formAction:F,formEncType:te}=y.navigation;!E&&!P&&U&&F&&te&&(E=Wr(y.navigation));let J=E||P;if(zn.has(f.response.status)&&J&&ye(J.formMethod))await je(N,D,{submission:{...J,formAction:A},preventScrollReset:O||le,enableViewTransition:v?de:void 0});else{let ne=It(D,E);await je(N,D,{overrideNavigation:ne,fetcherSubmission:P,preventScrollReset:O||le,enableViewTransition:v?de:void 0})}}async function Qe(c,f,v,E){let P,O={};try{P=await Jn(p,c,f,E,v,!1)}catch(x){return f.filter(A=>A.shouldLoad).forEach(A=>{O[A.route.id]={type:"error",error:x}}),O}if(c.signal.aborted)return O;if(!ye(c.method))for(let x of f){if(P[x.route.id]?.type==="error")break;!P.hasOwnProperty(x.route.id)&&!y.loaderData.hasOwnProperty(x.route.id)&&(!y.errors||!y.errors.hasOwnProperty(x.route.id))&&x.shouldCallHandler()&&(P[x.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${x.route.id}`)})}for(let[x,A]of Object.entries(P))if(io(A)){let D=A.result;O[x]={type:"redirect",response:eo(D,c,x,f,l)}}else O[x]=await Zn(A);return O}async function sr(c,f,v,E){let P=Qe(v,c,E,null),O=Promise.all(f.map(async D=>{if(D.matches&&D.match&&D.request&&D.controller){let U=(await Qe(D.request,D.matches,E,D.key))[D.match.route.id];return{[D.key]:U}}else return Promise.resolve({[D.key]:{type:"error",error:Se(404,{pathname:D.path})}})})),x=await P,A=(await O).reduce((D,N)=>Object.assign(D,N),{});return{loaderResults:x,fetcherResults:A}}function Ot(){se=!0,M.forEach((c,f)=>{Y.has(f)&&fe.add(f),Oe(f)})}function Te(c,f,v={}){y.fetchers.set(c,f),he({fetchers:new Map(y.fetchers)},{flushSync:(v&&v.flushSync)===!0})}function Me(c,f,v,E={}){let P=Ue(y.matches,f);Ft(c),he({errors:{[P.route.id]:v},fetchers:new Map(y.fetchers)},{flushSync:(E&&E.flushSync)===!0})}function ur(c){return I.set(c,(I.get(c)||0)+1),H.has(c)&&H.delete(c),y.fetchers.get(c)||In}function Ha(c,f){Oe(c,f?.reason),Te(c,Fe(null))}function Ft(c){let f=y.fetchers.get(c);Y.has(c)&&!(f&&f.state==="loading"&&w.has(c))&&Oe(c),M.delete(c),w.delete(c),T.delete(c),H.delete(c),fe.delete(c),y.fetchers.delete(c)}function Ba(c){let f=(I.get(c)||0)-1;f<=0?(I.delete(c),H.add(c)):I.set(c,f),he({fetchers:new Map(y.fetchers)})}function Oe(c,f){let v=Y.get(c);v&&(v.abort(f),Y.delete(c))}function cr(c){for(let f of c){let v=ur(f),E=Fe(v.data);y.fetchers.set(f,E)}}function dr(){let c=[],f=!1;for(let v of T){let E=y.fetchers.get(v);z(E,`Expected fetcher: ${v}`),E.state==="loading"&&(T.delete(v),c.push(v),f=!0)}return cr(c),f}function fr(c){let f=[];for(let[v,E]of w)if(E<c){let P=y.fetchers.get(v);z(P,`Expected fetcher: ${v}`),P.state==="loading"&&(Oe(v),w.delete(v),f.push(v))}return cr(f),f.length>0}function Wa(c,f){let v=y.blockers.get(c)||tt;return V.get(c)!==f&&V.set(c,f),v}function hr(c){y.blockers.delete(c),V.delete(c)}function mt(c,f){let v=y.blockers.get(c)||tt;z(v.state==="unblocked"&&f.state==="blocked"||v.state==="blocked"&&f.state==="blocked"||v.state==="blocked"&&f.state==="proceeding"||v.state==="blocked"&&f.state==="unblocked"||v.state==="proceeding"&&f.state==="unblocked",`Invalid blocker state transition: ${v.state} -> ${f.state}`);let E=new Map(y.blockers);E.set(c,f),he({blockers:E})}function pr({currentLocation:c,nextLocation:f,historyAction:v}){if(V.size===0)return;V.size>1&&ie(!1,"A router only supports one blocker at a time");let E=Array.from(V.entries()),[P,O]=E[E.length-1],x=y.blockers.get(P);if(!(x&&x.state==="proceeding")&&O({currentLocation:c,nextLocation:f,historyAction:v}))return P}function At(c){let f=Se(404,{pathname:c}),v=s||u,{matches:E,route:P}=Et(v);return{notFoundMatches:E,route:P,error:f}}function Ya(c,f,v){if(S=c,b=f,C=v||null,!L&&y.navigation===zt){L=!0;let E=yr(y.location,y.matches);E!=null&&he({restoreScrollPosition:E})}return()=>{S=null,b=null,C=null}}function mr(c,f){return C&&C(c,f.map(E=>hn(E,y.loaderData)))||c.key}function Va(c,f){if(S&&b){let v=mr(c,f);S[v]=b()}}function yr(c,f){if(S){let v=mr(c,f),E=S[v];if(typeof E=="number")return E}return null}function yt(c,f,v){if(e.patchRoutesOnNavigation)if(c){if(Object.keys(c[0].params).length>0)return{active:!0,matches:ot(f,v,l,!0)}}else return{active:!0,matches:ot(f,v,l,!0)||[]};return{active:!1,matches:null}}async function vt(c,f,v,E){if(!e.patchRoutesOnNavigation)return{type:"success",matches:c};let P=c;for(;;){let O=s==null,x=s||u,A=i;try{await e.patchRoutesOnNavigation({signal:v,path:f,matches:P,fetcherKey:E,patch:(U,F)=>{v.aborted||Ar(U,F,x,A,o,!1)}})}catch(U){return{type:"error",error:U,partialMatches:P}}finally{O&&!v.aborted&&(u=[...u])}if(v.aborted)return{type:"aborted"};let D=Ne(x,f,l),N=null;if(D){if(Object.keys(D[0].params).length===0)return{type:"success",matches:D};if(N=ot(x,f,l,!0),!(N&&P.length<N.length&&vr(P,N.slice(0,P.length))))return{type:"success",matches:D}}if(N||(N=ot(x,f,l,!0)),!N||vr(P,N))return{type:"success",matches:null};P=N}}function vr(c,f){return c.length===f.length&&c.every((v,E)=>v.route.id===f[E].route.id)}function Ka(c){i={},s=st(c,o,void 0,i)}function Ga(c,f,v=!1){let E=s==null;Ar(c,f,s||u,i,o,v),E&&(u=[...u],he({}))}return $={get basename(){return l},get future(){return h},get state(){return y},get routes(){return u},get window(){return t},initialize:Mt,subscribe:Aa,enableScrollRestoration:Ya,navigate:ir,fetch:ja,revalidate:ka,createHref:c=>e.history.createHref(c),encodeLocation:c=>e.history.encodeLocation(c),getFetcher:ur,resetFetcher:Ha,deleteFetcher:Ba,dispose:Fa,getBlocker:Wa,deleteBlocker:hr,patchRoutes:Ga,_internalFetchControllers:Y,_internalSetRoutes:Ka,_internalSetStateDoNotUseOrYouWillBreakYourApp(c){he(c)}},e.unstable_instrumentations&&($=On($,e.unstable_instrumentations.map(c=>c.router).filter(Boolean))),$}function Wn(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Wt(e,t,r,a,n,o){let i,u;if(n){i=[];for(let l of t)if(i.push(l),l.route.id===n){u=l;break}}else i=t,u=t[t.length-1];let s=ct(a||".",_t(i),Pe(e.pathname,r)||e.pathname,o==="path");if(a==null&&(s.search=e.search,s.hash=e.hash),(a==null||a===""||a===".")&&u){let l=Qt(s.search);if(u.route.index&&!l)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&l){let p=new URLSearchParams(s.search),h=p.getAll("index");p.delete("index"),h.filter(R=>R).forEach(R=>p.append("index",R));let g=p.toString();s.search=g?`?${g}`:""}}return r!=="/"&&(s.pathname=xn({basename:r,pathname:s.pathname})),_e(s)}function Or(e,t,r){if(!r||!Wn(r))return{path:t};if(r.formMethod&&!uo(r.formMethod))return{path:t,error:Se(405,{method:r.formMethod})};let a=()=>({path:t,error:Se(400,{type:"invalid-body"})}),o=(r.formMethod||"get").toUpperCase(),i=Ra(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ye(o))return a();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,[R,S])=>`${g}${R}=${S}
2
+ `,""):String(r.body);return{path:t,submission:{formMethod:o,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!ye(o))return a();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:o,formAction:i,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return a()}}}z(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Vt(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Vt(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=jr(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=jr(u)}catch{return a()}let l={formMethod:o,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(ye(l.formMethod))return{path:t,submission:l};let p=Ae(t);return e&&p.search&&Qt(p.search)&&u.append("index",""),p.search=`?${u}`,{path:_e(p),submission:l}}function Fr(e,t,r,a,n,o,i,u,s,l,p,h,g,R,S,C,b,L,_,k,X){let B=k?we(k[1])?k[1].error:k[1].data:void 0,Q=n.createURL(o.location),$=n.createURL(s),y;if(p&&o.errors){let W=Object.keys(o.errors)[0];y=i.findIndex(re=>re.route.id===W)}else if(k&&we(k[1])){let W=k[0];y=i.findIndex(re=>re.route.id===W)-1}let G=k?k[1].statusCode:void 0,Z=G&&G>=400,le={currentUrl:Q,currentParams:o.matches[0]?.params||{},nextUrl:$,nextParams:i[0].params,...u,actionResult:B,actionStatus:G},q=ft(i),de=i.map((W,re)=>{let{route:se}=W,fe=null;if(y!=null&&re>y)fe=!1;else if(se.lazy)fe=!0;else if(!Jt(se))fe=!1;else if(p){let{shouldLoad:w}=ha(se,o.loaderData,o.errors);fe=w}else Yn(o.loaderData,o.matches[re],W)&&(fe=!0);if(fe!==null)return Yt(r,a,e,q,W,l,t,fe);let Y=!1;typeof X=="boolean"?Y=X:Z?Y=!1:(h||Q.pathname+Q.search===$.pathname+$.search||Q.search!==$.search||Vn(o.matches[re],W))&&(Y=!0);let ve={...le,defaultShouldRevalidate:Y},d=it(W,ve);return Yt(r,a,e,q,W,l,t,d,ve,X)}),ee=[];return S.forEach((W,re)=>{if(p||!i.some(M=>M.route.id===W.routeId)||R.has(re))return;let se=o.fetchers.get(re),fe=se&&se.state!=="idle"&&se.data===void 0,Y=Ne(b,W.path,L);if(!Y){if(_&&fe)return;ee.push({key:re,routeId:W.routeId,path:W.path,matches:null,match:null,request:null,controller:null});return}if(C.has(re))return;let ve=Pt(Y,W.path),d=new AbortController,w=Ge(n,W.path,d.signal),T=null;if(g.has(re))g.delete(re),T=Je(r,a,w,Y,ve,l,t);else if(fe)h&&(T=Je(r,a,w,Y,ve,l,t));else{let M;typeof X=="boolean"?M=X:Z?M=!1:M=h;let I={...le,defaultShouldRevalidate:M};it(ve,I)&&(T=Je(r,a,w,Y,ve,l,t,I))}T&&ee.push({key:re,routeId:W.routeId,path:W.path,matches:T,match:ve,request:w,controller:d})}),{dsMatches:de,revalidatingFetchers:ee}}function Jt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function ha(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Jt(e))return{shouldLoad:!1,renderFallback:!1};let a=t!=null&&e.id in t,n=r!=null&&r[e.id]!==void 0;if(!a&&n)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!a};let o=!a&&!n;return{shouldLoad:o,renderFallback:o}}function Yn(e,t,r){let a=!t||r.route.id!==t.route.id,n=!e.hasOwnProperty(r.route.id);return a||n}function Vn(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function it(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Ar(e,t,r,a,n,o){let i;if(e){let l=a[e];z(l,`No route found to patch children into: routeId = ${e}`),l.children||(l.children=[]),i=l.children}else i=r;let u=[],s=[];if(t.forEach(l=>{let p=i.find(h=>pa(l,h));p?s.push({existingRoute:p,newRoute:l}):u.push(l)}),u.length>0){let l=st(u,n,[e||"_","patch",String(i?.length||"0")],a);i.push(...l)}if(o&&s.length>0)for(let l=0;l<s.length;l++){let{existingRoute:p,newRoute:h}=s[l],g=p,[R]=st([h],n,[],{},!0);Object.assign(g,{element:R.element?R.element:g.element,errorElement:R.errorElement?R.errorElement:g.errorElement,hydrateFallbackElement:R.hydrateFallbackElement?R.hydrateFallbackElement:g.hydrateFallbackElement})}}function pa(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((r,a)=>t.children?.some(n=>pa(r,n)))??!1:!1}var kr=new WeakMap,ma=({key:e,route:t,manifest:r,mapRouteProperties:a})=>{let n=r[t.id];if(z(n,"No route found in manifest"),!n.lazy||typeof n.lazy!="object")return;let o=n.lazy[e];if(!o)return;let i=kr.get(n);i||(i={},kr.set(n,i));let u=i[e];if(u)return u;let s=(async()=>{let l=un(e),h=n[e]!==void 0&&e!=="hasErrorBoundary";if(l)ie(!l,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(h)ie(!1,`Route "${n.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let g=await o();g!=null&&(Object.assign(n,{[e]:g}),Object.assign(n,a(n)))}typeof n.lazy=="object"&&(n.lazy[e]=void 0,Object.values(n.lazy).every(g=>g===void 0)&&(n.lazy=void 0))})();return i[e]=s,s},Nr=new WeakMap;function Kn(e,t,r,a,n){let o=r[e.id];if(z(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=Nr.get(o);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{z(typeof e.lazy=="function","No lazy route function found");let g=await e.lazy(),R={};for(let S in g){let C=g[S];if(C===void 0)continue;let b=dn(S),_=o[S]!==void 0&&S!=="hasErrorBoundary";b?ie(!b,"Route property "+S+" is not a supported property to be returned from a lazy route function. This property will be ignored."):_?ie(!_,`Route "${o.id}" has a static property "${S}" defined but its lazy function is also returning a value for this property. The lazy route property "${S}" will be ignored.`):R[S]=C}Object.assign(o,R),Object.assign(o,{...a(o),lazy:void 0})})();return Nr.set(o,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let i=Object.keys(e.lazy),u=[],s;for(let p of i){if(n&&n.includes(p))continue;let h=ma({key:p,route:e,manifest:r,mapRouteProperties:a});h&&(u.push(h),p===t&&(s=h))}let l=u.length>0?Promise.all(u).then(()=>{}):void 0;return l?.catch(()=>{}),s?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:s}}async function Ur(e){let t=e.matches.filter(n=>n.shouldLoad),r={};return(await Promise.all(t.map(n=>n.resolve()))).forEach((n,o)=>{r[t[o].route.id]=n}),r}async function Gn(e){return e.matches.some(t=>t.route.middleware)?ya(e,()=>Ur(e)):Ur(e)}function ya(e,t){return qn(e,t,a=>{if(so(a))throw a;return a},no,r);function r(a,n,o){if(o)return Promise.resolve(Object.assign(o.value,{[n]:{type:"error",result:a}}));{let{matches:i}=e,u=Math.min(Math.max(i.findIndex(l=>l.route.id===n),0),Math.max(i.findIndex(l=>l.shouldCallHandler()),0)),s=Ue(i,i[u].route.id).route.id;return Promise.resolve({[s]:{type:"error",result:a}})}}}async function qn(e,t,r,a,n){let{matches:o,request:i,params:u,context:s,unstable_pattern:l}=e,p=o.flatMap(g=>g.route.middleware?g.route.middleware.map(R=>[g.route.id,R]):[]);return await va({request:i,params:u,context:s,unstable_pattern:l},p,t,r,a,n)}async function va(e,t,r,a,n,o,i=0){let{request:u}=e;if(u.signal.aborted)throw u.signal.reason??new Error(`Request aborted: ${u.method} ${u.url}`);let s=t[i];if(!s)return await r();let[l,p]=s,h,g=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");try{return h={value:await va(e,t,r,a,n,o,i+1)},h.value}catch(R){return h={value:await o(R,l,h)},h.value}};try{let R=await p(e,g),S=R!=null?a(R):void 0;return n(S)?S:h?S??h.value:(h={value:await g()},h.value)}catch(R){return await o(R,l,h)}}function ga(e,t,r,a,n){let o=ma({key:"middleware",route:a.route,manifest:t,mapRouteProperties:e}),i=Kn(a.route,ye(r.method)?"action":"loader",t,e,n);return{middleware:o,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Yt(e,t,r,a,n,o,i,u,s=null,l){let p=!1,h=ga(e,t,r,n,o);return{...n,_lazyPromises:h,shouldLoad:u,shouldRevalidateArgs:s,shouldCallHandler(g){return p=!0,s?typeof l=="boolean"?it(n,{...s,defaultShouldRevalidate:l}):typeof g=="boolean"?it(n,{...s,defaultShouldRevalidate:g}):it(n,s):u},resolve(g){let{lazy:R,loader:S,middleware:C}=n.route,b=p||u||g&&!ye(r.method)&&(R||S),L=C&&C.length>0&&!S&&!R;return b&&(ye(r.method)||!L)?Xn({request:r,unstable_pattern:a,match:n,lazyHandlerPromise:h?.handler,lazyRoutePromise:h?.route,handlerOverride:g,scopedContext:i}):Promise.resolve({type:"data",result:void 0})}}}function Je(e,t,r,a,n,o,i,u=null){return a.map(s=>s.route.id!==n.route.id?{...s,shouldLoad:!1,shouldRevalidateArgs:u,shouldCallHandler:()=>!1,_lazyPromises:ga(e,t,r,s,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Yt(e,t,r,ft(a),s,o,i,!0,u))}async function Jn(e,t,r,a,n,o){r.some(l=>l._lazyPromises?.middleware)&&await Promise.all(r.map(l=>l._lazyPromises?.middleware));let i={request:t,unstable_pattern:ft(r),params:r[0].params,context:n,matches:r},s=await e({...i,fetcherKey:a,runClientMiddleware:l=>{let p=i;return ya(p,()=>l({...p,fetcherKey:a,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(l=>[l._lazyPromises?.handler,l._lazyPromises?.route]))}catch{}return s}async function Xn({request:e,unstable_pattern:t,match:r,lazyHandlerPromise:a,lazyRoutePromise:n,handlerOverride:o,scopedContext:i}){let u,s,l=ye(e.method),p=l?"action":"loader",h=g=>{let R,S=new Promise((L,_)=>R=_);s=()=>R(),e.signal.addEventListener("abort",s);let C=L=>typeof g!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${p}" [routeId: ${r.route.id}]`)):g({request:e,unstable_pattern:t,params:r.params,context:i},...L!==void 0?[L]:[]),b=(async()=>{try{return{type:"data",result:await(o?o(_=>C(_)):C())}}catch(L){return{type:"error",result:L}}})();return Promise.race([b,S])};try{let g=l?r.route.action:r.route.loader;if(a||n)if(g){let R,[S]=await Promise.all([h(g).catch(C=>{R=C}),a,n]);if(R!==void 0)throw R;u=S}else{await a;let R=l?r.route.action:r.route.loader;if(R)[u]=await Promise.all([h(R),n]);else if(p==="action"){let S=new URL(e.url),C=S.pathname+S.search;throw Se(405,{method:e.method,pathname:C,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(g)u=await h(g);else{let R=new URL(e.url),S=R.pathname+R.search;throw Se(404,{pathname:S})}}catch(g){return{type:"error",result:g}}finally{s&&e.signal.removeEventListener("abort",s)}return u}async function Qn(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Zn(e){let{result:t,type:r}=e;if(Xt(t)){let a;try{a=await Qn(t)}catch(n){return{type:"error",error:n}}return r==="error"?{type:"error",error:new dt(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:"data",data:a,statusCode:t.status,headers:t.headers}}return r==="error"?Br(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:ao(t),statusCode:ut(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ut(t)?t.status:void 0}:Br(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function eo(e,t,r,a,n){let o=e.headers.get("Location");if(z(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!qt(o)){let i=a.slice(0,a.findIndex(u=>u.route.id===r)+1);o=Wt(new URL(t.url),i,n,o),e.headers.set("Location",o)}return e}function $r(e,t,r,a){let n=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(qt(e)){let o=e,i=o.startsWith("//")?new URL(t.protocol+o):new URL(o);if(n.includes(i.protocol))throw new Error("Invalid redirect location");let u=Pe(i.pathname,r)!=null;if(i.origin===t.origin&&u)return i.pathname+i.search+i.hash}try{let o=a.createURL(e);if(n.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Ge(e,t,r,a){let n=e.createURL(Ra(t)).toString(),o={signal:r};if(a&&ye(a.formMethod)){let{formMethod:i,formEncType:u}=a;o.method=i.toUpperCase(),u==="application/json"?(o.headers=new Headers({"Content-Type":u}),o.body=JSON.stringify(a.json)):u==="text/plain"?o.body=a.text:u==="application/x-www-form-urlencoded"&&a.formData?o.body=Vt(a.formData):o.body=a.formData}return new Request(n,o)}function Vt(e){let t=new URLSearchParams;for(let[r,a]of e.entries())t.append(r,typeof a=="string"?a:a.name);return t}function jr(e){let t=new FormData;for(let[r,a]of e.entries())t.append(r,a);return t}function to(e,t,r,a=!1,n=!1){let o={},i=null,u,s=!1,l={},p=r&&we(r[1])?r[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let g=h.route.id,R=t[g];if(z(!We(R),"Cannot handle redirect results in processLoaderData"),we(R)){let S=R.error;if(p!==void 0&&(S=p,p=void 0),i=i||{},n)i[g]=S;else{let C=Ue(e,g);i[C.route.id]==null&&(i[C.route.id]=S)}a||(o[g]=fa),s||(s=!0,u=ut(R.error)?R.error.status:500),R.headers&&(l[g]=R.headers)}else o[g]=R.data,R.statusCode&&R.statusCode!==200&&!s&&(u=R.statusCode),R.headers&&(l[g]=R.headers)}),p!==void 0&&r&&(i={[r[0]]:p},r[2]&&(o[r[2]]=void 0)),{loaderData:o,errors:i,statusCode:u||200,loaderHeaders:l}}function zr(e,t,r,a,n,o){let{loaderData:i,errors:u}=to(t,r,a);return n.filter(s=>!s.matches||s.matches.some(l=>l.shouldLoad)).forEach(s=>{let{key:l,match:p,controller:h}=s;if(h&&h.signal.aborted)return;let g=o[l];if(z(g,"Did not find corresponding fetcher result"),we(g)){let R=Ue(e.matches,p?.route.id);u&&u[R.route.id]||(u={...u,[R.route.id]:g.error}),e.fetchers.delete(l)}else if(We(g))z(!1,"Unhandled fetcher revalidation redirect");else{let R=Fe(g.data);e.fetchers.set(l,R)}}),{loaderData:i,errors:u}}function Ir(e,t,r,a){let n=Object.entries(t).filter(([,o])=>o!==fa).reduce((o,[i,u])=>(o[i]=u,o),{});for(let o of r){let i=o.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&o.route.loader&&(n[i]=e[i]),a&&a.hasOwnProperty(i))break}return n}function Hr(e){return e?we(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ue(e,t){return(t?e.slice(0,e.findIndex(a=>a.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function Et(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Se(e,{pathname:t,routeId:r,method:a,type:n,message:o}={}){let i="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(i="Bad Request",a&&t&&r?u=`You made a ${a} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:n==="invalid-body"&&(u="Unable to encode submission body")):e===403?(i="Forbidden",u=`Route "${r}" does not match URL "${t}"`):e===404?(i="Not Found",u=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",a&&t&&r?u=`You made a ${a.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:a&&(u=`Invalid request method "${a.toUpperCase()}"`)),new dt(e||500,i,new Error(u),!0)}function bt(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[a,n]=t[r];if(We(n))return{key:a,result:n}}}function Ra(e){let t=typeof e=="string"?Ae(e):e;return _e({...t,hash:""})}function ro(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ao(e){return new dt(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function no(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&oo(r))}function oo(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function io(e){return Xt(e.result)&&ca.has(e.result.status)}function we(e){return e.type==="error"}function We(e){return(e&&e.type)==="redirect"}function Br(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Xt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function lo(e){return ca.has(e)}function so(e){return Xt(e)&&lo(e.status)&&e.headers.has("Location")}function uo(e){return jn.has(e.toUpperCase())}function ye(e){return Un.has(e.toUpperCase())}function Qt(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Pt(e,t){let r=typeof t=="string"?Ae(t).search:t.search;if(e[e.length-1].route.index&&Qt(r||""))return e[e.length-1];let a=oa(e);return a[a.length-1]}function Wr(e){let{formMethod:t,formAction:r,formEncType:a,text:n,formData:o,json:i}=e;if(!(!t||!r||!a)){if(n!=null)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:void 0,text:n};if(o!=null)return{formMethod:t,formAction:r,formEncType:a,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:i,text:void 0}}}function It(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function co(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function rt(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function fo(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Fe(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ho(e,t){try{let r=e.sessionStorage.getItem(da);if(r){let a=JSON.parse(r);for(let[n,o]of Object.entries(a||{}))o&&Array.isArray(o)&&t.set(n,new Set(o||[]))}}catch{}}function po(e,t){if(t.size>0){let r={};for(let[a,n]of t)r[a]=[...n];try{e.sessionStorage.setItem(da,JSON.stringify(r))}catch(a){ie(!1,`Failed to save applied view transitions in sessionStorage (${a}).`)}}}function Yr(){let e,t,r=new Promise((a,n)=>{e=async o=>{a(o);try{await r}catch{}},t=async o=>{n(o);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var Ye=m.createContext(null);Ye.displayName="DataRouter";var ht=m.createContext(null);ht.displayName="DataRouterState";var wa=m.createContext(!1);function mo(){return m.useContext(wa)}var Zt=m.createContext({isTransitioning:!1});Zt.displayName="ViewTransition";var Ea=m.createContext(new Map);Ea.displayName="Fetchers";var yo=m.createContext(null);yo.displayName="Await";var Ee=m.createContext(null);Ee.displayName="Navigation";var Dt=m.createContext(null);Dt.displayName="Location";var Ce=m.createContext({outlet:null,matches:[],isDataRoute:!1});Ce.displayName="Route";var er=m.createContext(null);er.displayName="RouteError";var ba="REACT_ROUTER_ERROR",vo="REDIRECT",go="ROUTE_ERROR_RESPONSE";function Ro(e){if(e.startsWith(`${ba}:${vo}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function wo(e){if(e.startsWith(`${ba}:${go}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new dt(t.status,t.statusText,t.data)}catch{}}function Eo(e,{relative:t}={}){z(Xe(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=m.useContext(Ee),{hash:n,pathname:o,search:i}=pt(e,{relative:t}),u=o;return r!=="/"&&(u=o==="/"?r:xe([r,o])),a.createHref({pathname:u,search:i,hash:n})}function Xe(){return m.useContext(Dt)!=null}function De(){return z(Xe(),"useLocation() may be used only in the context of a <Router> component."),m.useContext(Dt).location}var Sa="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Pa(e){m.useContext(Ee).static||m.useLayoutEffect(e)}function tr(){let{isDataRoute:e}=m.useContext(Ce);return e?No():bo()}function bo(){z(Xe(),"useNavigate() may be used only in the context of a <Router> component.");let e=m.useContext(Ye),{basename:t,navigator:r}=m.useContext(Ee),{matches:a}=m.useContext(Ce),{pathname:n}=De(),o=JSON.stringify(_t(a)),i=m.useRef(!1);return Pa(()=>{i.current=!0}),m.useCallback((s,l={})=>{if(ie(i.current,Sa),!i.current)return;if(typeof s=="number"){r.go(s);return}let p=ct(s,JSON.parse(o),n,l.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:xe([t,p.pathname])),(l.replace?r.replace:r.push)(p,l.state,l)},[t,r,o,n,e])}var So=m.createContext(null);function Po(e){let t=m.useContext(Ce).outlet;return m.useMemo(()=>t&&m.createElement(So.Provider,{value:e},t),[t,e])}function Ti(){let{matches:e}=m.useContext(Ce),t=e[e.length-1];return t?t.params:{}}function pt(e,{relative:t}={}){let{matches:r}=m.useContext(Ce),{pathname:a}=De(),n=JSON.stringify(_t(r));return m.useMemo(()=>ct(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function Co(e,t,r){z(Xe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=m.useContext(Ee),{matches:n}=m.useContext(Ce),o=n[n.length-1],i=o?o.params:{},u=o?o.pathname:"/",s=o?o.pathnameBase:"/",l=o&&o.route;{let b=l&&l.path||"";xa(u,!l||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
3
+
4
+ Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let p=De(),h;h=p;let g=h.pathname||"/",R=g;if(s!=="/"){let b=s.replace(/^\//,"").split("/");R="/"+g.replace(/^\//,"").split("/").slice(b.length).join("/")}let S=Ne(e,{pathname:R});return ie(l||S!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),ie(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),To(S&&S.map(b=>Object.assign({},b,{params:Object.assign({},i,b.params),pathname:xe([s,a.encodeLocation?a.encodeLocation(b.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:xe([s,a.encodeLocation?a.encodeLocation(b.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),n,r)}function xo(){let e=ko(),t=ut(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:o},"ErrorBoundary")," or"," ",m.createElement("code",{style:o},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),r?m.createElement("pre",{style:n},r):null,i)}var Lo=m.createElement(xo,null),Ca=class extends m.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=wo(e.digest);r&&(e=r)}let t=e!==void 0?m.createElement(Ce.Provider,{value:this.props.routeContext},m.createElement(er.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?m.createElement(_o,{error:e},t):t}};Ca.contextType=wa;var Ht=new WeakMap;function _o({children:e,error:t}){let{basename:r}=m.useContext(Ee);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Ro(t.digest);if(a){let n=Ht.get(t);if(n)throw n;let o=la(a.location,r);if(ia&&!Ht.get(t))if(o.isExternal||a.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw Ht.set(t,i),i}return m.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Do({routeContext:e,match:t,children:r}){let a=m.useContext(Ye);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),m.createElement(Ce.Provider,{value:e},r)}function To(e,t=[],r){let a=r?.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let n=e,o=a?.errors;if(o!=null){let p=n.findIndex(h=>h.route.id&&o?.[h.route.id]!==void 0);z(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),n=n.slice(0,Math.min(n.length,p+1))}let i=!1,u=-1;if(r&&a){i=a.renderFallback;for(let p=0;p<n.length;p++){let h=n[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=p),h.route.id){let{loaderData:g,errors:R}=a,S=h.route.loader&&!g.hasOwnProperty(h.route.id)&&(!R||R[h.route.id]===void 0);if(h.route.lazy||S){r.isStatic&&(i=!0),u>=0?n=n.slice(0,u+1):n=[n[0]];break}}}}let s=r?.onError,l=a&&s?(p,h)=>{s(p,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:ft(a.matches),errorInfo:h})}:void 0;return n.reduceRight((p,h,g)=>{let R,S=!1,C=null,b=null;a&&(R=o&&h.route.id?o[h.route.id]:void 0,C=h.route.errorElement||Lo,i&&(u<0&&g===0?(xa("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,b=null):u===g&&(S=!0,b=h.route.hydrateFallbackElement||null)));let L=t.concat(n.slice(0,g+1)),_=()=>{let k;return R?k=C:S?k=b:h.route.Component?k=m.createElement(h.route.Component,null):h.route.element?k=h.route.element:k=p,m.createElement(Do,{match:h,routeContext:{outlet:p,matches:L,isDataRoute:a!=null},children:k})};return a&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?m.createElement(Ca,{location:a.location,revalidation:a.revalidation,component:C,error:R,children:_(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:l}):_()},null)}function rr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mo(e){let t=m.useContext(Ye);return z(t,rr(e)),t}function Oo(e){let t=m.useContext(ht);return z(t,rr(e)),t}function Fo(e){let t=m.useContext(Ce);return z(t,rr(e)),t}function ar(e){let t=Fo(e),r=t.matches[t.matches.length-1];return z(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Ao(){return ar("useRouteId")}function ko(){let e=m.useContext(er),t=Oo("useRouteError"),r=ar("useRouteError");return e!==void 0?e:t.errors?.[r]}function No(){let{router:e}=Mo("useNavigate"),t=ar("useNavigate"),r=m.useRef(!1);return Pa(()=>{r.current=!0}),m.useCallback(async(n,o={})=>{ie(r.current,Sa),r.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t])}var Vr={};function xa(e,t,r){!t&&!Vr[e]&&(Vr[e]=!0,ie(!1,r))}var Kr={};function Gr(e,t){!e&&!Kr[t]&&(Kr[t]=!0,console.warn(t))}var Uo="useOptimistic",qr=Za[Uo],$o=()=>{};function jo(e){return qr?qr(e):[e,$o]}function zo(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&ie(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:m.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&ie(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&ie(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Io=["HydrateFallback","hydrateFallbackElement"],Ho=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function Bo({router:e,flushSync:t,onError:r,unstable_useTransitions:a}){a=mo()||a;let[o,i]=m.useState(e.state),[u,s]=jo(o),[l,p]=m.useState(),[h,g]=m.useState({isTransitioning:!1}),[R,S]=m.useState(),[C,b]=m.useState(),[L,_]=m.useState(),k=m.useRef(new Map),X=m.useCallback((y,{deletedFetchers:G,newErrors:Z,flushSync:le,viewTransitionOpts:q})=>{Z&&r&&Object.values(Z).forEach(ee=>r(ee,{location:y.location,params:y.matches[0]?.params??{},unstable_pattern:ft(y.matches)})),y.fetchers.forEach((ee,W)=>{ee.data!==void 0&&k.current.set(W,ee.data)}),G.forEach(ee=>k.current.delete(ee)),Gr(le===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let de=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Gr(q==null||de,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!q||!de){t&&le?t(()=>i(y)):a===!1?i(y):m.startTransition(()=>{a===!0&&s(ee=>Jr(ee,y)),i(y)});return}if(t&&le){t(()=>{C&&(R?.resolve(),C.skipTransition()),g({isTransitioning:!0,flushSync:!0,currentLocation:q.currentLocation,nextLocation:q.nextLocation})});let ee=e.window.document.startViewTransition(()=>{t(()=>i(y))});ee.finished.finally(()=>{t(()=>{S(void 0),b(void 0),p(void 0),g({isTransitioning:!1})})}),t(()=>b(ee));return}C?(R?.resolve(),C.skipTransition(),_({state:y,currentLocation:q.currentLocation,nextLocation:q.nextLocation})):(p(y),g({isTransitioning:!0,flushSync:!1,currentLocation:q.currentLocation,nextLocation:q.nextLocation}))},[e.window,t,C,R,a,s,r]);m.useLayoutEffect(()=>e.subscribe(X),[e,X]),m.useEffect(()=>{h.isTransitioning&&!h.flushSync&&S(new Ho)},[h]),m.useEffect(()=>{if(R&&l&&e.window){let y=l,G=R.promise,Z=e.window.document.startViewTransition(async()=>{a===!1?i(y):m.startTransition(()=>{a===!0&&s(le=>Jr(le,y)),i(y)}),await G});Z.finished.finally(()=>{S(void 0),b(void 0),p(void 0),g({isTransitioning:!1})}),b(Z)}},[l,R,e.window,a,s]),m.useEffect(()=>{R&&l&&u.location.key===l.location.key&&R.resolve()},[R,C,u.location,l]),m.useEffect(()=>{!h.isTransitioning&&L&&(p(L.state),g({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}),_(void 0))},[h.isTransitioning,L]);let B=m.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:y=>e.navigate(y),push:(y,G,Z)=>e.navigate(y,{state:G,preventScrollReset:Z?.preventScrollReset}),replace:(y,G,Z)=>e.navigate(y,{replace:!0,state:G,preventScrollReset:Z?.preventScrollReset})}),[e]),Q=e.basename||"/",$=m.useMemo(()=>({router:e,navigator:B,static:!1,basename:Q,onError:r}),[e,B,Q,r]);return m.createElement(m.Fragment,null,m.createElement(Ye.Provider,{value:$},m.createElement(ht.Provider,{value:u},m.createElement(Ea.Provider,{value:k.current},m.createElement(Zt.Provider,{value:h},m.createElement(Ko,{basename:Q,location:u.location,navigationType:u.historyAction,navigator:B,unstable_useTransitions:a},m.createElement(Wo,{routes:e.routes,future:e.future,state:u,isStatic:!1,onError:r})))))),null)}function Jr(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var Wo=m.memo(Yo);function Yo({routes:e,future:t,state:r,isStatic:a,onError:n}){return Co(e,void 0,{state:r,isStatic:a,onError:n})}function Mi({to:e,replace:t,state:r,relative:a}){z(Xe(),"<Navigate> may be used only in the context of a <Router> component.");let{static:n}=m.useContext(Ee);ie(!n,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=m.useContext(Ce),{pathname:i}=De(),u=tr(),s=ct(e,_t(o),i,a==="path"),l=JSON.stringify(s);return m.useEffect(()=>{u(JSON.parse(l),{replace:t,state:r,relative:a})},[u,l,a,t,r]),null}function Oi(e){return Po(e.context)}function Vo(e){z(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ko({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:n,static:o=!1,unstable_useTransitions:i}){z(!Xe(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),s=m.useMemo(()=>({basename:u,navigator:n,static:o,unstable_useTransitions:i,future:{}}),[u,n,o,i]);typeof r=="string"&&(r=Ae(r));let{pathname:l="/",search:p="",hash:h="",state:g=null,key:R="default",unstable_mask:S}=r,C=m.useMemo(()=>{let b=Pe(l,u);return b==null?null:{location:{pathname:b,search:p,hash:h,state:g,key:R,unstable_mask:S},navigationType:a}},[u,l,p,h,g,R,a,S]);return ie(C!=null,`<Router basename="${u}"> is not able to match the URL "${l}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:m.createElement(Ee.Provider,{value:s},m.createElement(Dt.Provider,{children:t,value:C}))}function Kt(e,t=[]){let r=[];return m.Children.forEach(e,(a,n)=>{if(!m.isValidElement(a))return;let o=[...t,n];if(a.type===m.Fragment){r.push.apply(r,Kt(a.props.children,o));return}z(a.type===Vo,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),z(!a.props.index||!a.props.children,"An index route cannot have child routes.");let i={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=Kt(a.props.children,o)),r.push(i)}),r}var Fi=Kt,Ct="get",xt="application/x-www-form-urlencoded";function Tt(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Go(e){return Tt(e)&&e.tagName.toLowerCase()==="button"}function qo(e){return Tt(e)&&e.tagName.toLowerCase()==="form"}function Jo(e){return Tt(e)&&e.tagName.toLowerCase()==="input"}function Xo(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Qo(e,t){return e.button===0&&(!t||t==="_self")&&!Xo(e)}function Gt(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let a=e[r];return t.concat(Array.isArray(a)?a.map(n=>[r,n]):[[r,a]])},[]))}function Zo(e,t){let r=Gt(e);return t&&t.forEach((a,n)=>{r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)})}),r}var St=null;function ei(){if(St===null)try{new FormData(document.createElement("form"),0),St=!1}catch{St=!0}return St}var ti=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bt(e){return e!=null&&!ti.has(e)?(ie(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xt}"`),null):e}function ri(e,t){let r,a,n,o,i;if(qo(e)){let u=e.getAttribute("action");a=u?Pe(u,t):null,r=e.getAttribute("method")||Ct,n=Bt(e.getAttribute("enctype"))||xt,o=new FormData(e)}else if(Go(e)||Jo(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||u.getAttribute("action");if(a=s?Pe(s,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||Ct,n=Bt(e.getAttribute("formenctype"))||Bt(u.getAttribute("enctype"))||xt,o=new FormData(u,e),!ei()){let{name:l,type:p,value:h}=e;if(p==="image"){let g=l?`${l}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else l&&o.append(l,h)}}else{if(Tt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ct,a=null,n=xt,i=e}return o&&n==="text/plain"&&(i=o,o=void 0),{action:a,method:r.toLowerCase(),encType:n,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ai(e,t,r,a){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${a}`:n.pathname=`${n.pathname}.${a}`:n.pathname==="/"?n.pathname=`_root.${a}`:t&&Pe(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${a}`,n}async function ni(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function oi(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function ii(e,t,r){let a=await Promise.all(e.map(async n=>{let o=t.routes[n.route.id];if(o){let i=await ni(o,r);return i.links?i.links():[]}return[]}));return ci(a.flat(1).filter(oi).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function Xr(e,t,r,a,n,o){let i=(s,l)=>r[l]?s.route.id!==r[l].route.id:!0,u=(s,l)=>r[l].pathname!==s.pathname||r[l].route.path?.endsWith("*")&&r[l].params["*"]!==s.params["*"];return o==="assets"?t.filter((s,l)=>i(s,l)||u(s,l)):o==="data"?t.filter((s,l)=>{let p=a.routes[s.route.id];if(!p||!p.hasLoader)return!1;if(i(s,l)||u(s,l))return!0;if(s.route.shouldRevalidate){let h=s.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function li(e,t,{includeHydrateFallback:r}={}){return si(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1))}function si(e){return[...new Set(e)]}function ui(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function ci(e,t){let r=new Set;return new Set(t),e.reduce((a,n)=>{let o=JSON.stringify(ui(n));return r.has(o)||(r.add(o),a.push({key:o,link:n})),a},[])}function La(){let e=m.useContext(Ye);return nr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function di(){let e=m.useContext(ht);return nr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var or=m.createContext(void 0);or.displayName="FrameworkContext";function _a(){let e=m.useContext(or);return nr(e,"You must render this element inside a <HydratedRouter> element"),e}function fi(e,t){let r=m.useContext(or),[a,n]=m.useState(!1),[o,i]=m.useState(!1),{onFocus:u,onBlur:s,onMouseEnter:l,onMouseLeave:p,onTouchStart:h}=t,g=m.useRef(null);m.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let C=L=>{L.forEach(_=>{i(_.isIntersecting)})},b=new IntersectionObserver(C,{threshold:.5});return g.current&&b.observe(g.current),()=>{b.disconnect()}}},[e]),m.useEffect(()=>{if(a){let C=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(C)}}},[a]);let R=()=>{n(!0)},S=()=>{n(!1),i(!1)};return r?e!=="intent"?[o,g,{}]:[o,g,{onFocus:at(u,R),onBlur:at(s,S),onMouseEnter:at(l,R),onMouseLeave:at(p,S),onTouchStart:at(h,R)}]:[!1,g,{}]}function at(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function hi({page:e,...t}){let{router:r}=La(),a=m.useMemo(()=>Ne(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?m.createElement(mi,{page:e,matches:a,...t}):null}function pi(e){let{manifest:t,routeModules:r}=_a(),[a,n]=m.useState([]);return m.useEffect(()=>{let o=!1;return ii(e,t,r).then(i=>{o||n(i)}),()=>{o=!0}},[e,t,r]),a}function mi({page:e,matches:t,...r}){let a=De(),{future:n,manifest:o,routeModules:i}=_a(),{basename:u}=La(),{loaderData:s,matches:l}=di(),p=m.useMemo(()=>Xr(e,t,l,o,a,"data"),[e,t,l,o,a]),h=m.useMemo(()=>Xr(e,t,l,o,a,"assets"),[e,t,l,o,a]),g=m.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let C=new Set,b=!1;if(t.forEach(_=>{let k=o.routes[_.route.id];!k||!k.hasLoader||(!p.some(X=>X.route.id===_.route.id)&&_.route.id in s&&i[_.route.id]?.shouldRevalidate||k.hasClientLoader?b=!0:C.add(_.route.id))}),C.size===0)return[];let L=ai(e,u,n.unstable_trailingSlashAwareDataRequests,"data");return b&&C.size>0&&L.searchParams.set("_routes",t.filter(_=>C.has(_.route.id)).map(_=>_.route.id).join(",")),[L.pathname+L.search]},[u,n.unstable_trailingSlashAwareDataRequests,s,a,o,p,t,e,i]),R=m.useMemo(()=>li(h,o),[h,o]),S=pi(h);return m.createElement(m.Fragment,null,g.map(C=>m.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...r})),R.map(C=>m.createElement("link",{key:C,rel:"modulepreload",href:C,...r})),S.map(({key:C,link:b})=>m.createElement("link",{key:C,nonce:r.nonce,...b,crossOrigin:b.crossOrigin??r.crossOrigin})))}function yi(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var vi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vi&&(window.__reactRouterVersion="7.13.1")}catch{}function Ai(e,t){return Bn({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:nn({window:t?.window}),hydrationData:t?.hydrationData||gi(),routes:e,mapRouteProperties:zo,hydrationRouteProperties:Io,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function gi(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Ri(e.errors)}),e}function Ri(e){if(!e)return null;let t=Object.entries(e),r={};for(let[a,n]of t)if(n&&n.__type==="RouteErrorResponse")r[a]=new dt(n.status,n.statusText,n.data,n.internal===!0);else if(n&&n.__type==="Error"){if(n.__subType){let o=window[n.__subType];if(typeof o=="function")try{let i=new o(n.message);i.stack="",r[a]=i}catch{}}if(r[a]==null){let o=new Error(n.message);o.stack="",r[a]=o}}else r[a]=n;return r}var Da=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ta=m.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:n,reloadDocument:o,replace:i,unstable_mask:u,state:s,target:l,to:p,preventScrollReset:h,viewTransition:g,unstable_defaultShouldRevalidate:R,...S},C){let{basename:b,navigator:L,unstable_useTransitions:_}=m.useContext(Ee),k=typeof p=="string"&&Da.test(p),X=la(p,b);p=X.to;let B=Eo(p,{relative:n}),Q=De(),$=null;if(u){let W=ct(u,[],Q.unstable_mask?Q.unstable_mask.pathname:"/",!0);b!=="/"&&(W.pathname=W.pathname==="/"?b:xe([b,W.pathname])),$=L.createHref(W)}let[y,G,Z]=fi(a,S),le=Si(p,{replace:i,unstable_mask:u,state:s,target:l,preventScrollReset:h,relative:n,viewTransition:g,unstable_defaultShouldRevalidate:R,unstable_useTransitions:_});function q(W){t&&t(W),W.defaultPrevented||le(W)}let de=!(X.isExternal||o),ee=m.createElement("a",{...S,...Z,href:(de?$:void 0)||X.absoluteURL||B,onClick:de?q:t,ref:yi(C,G),target:l,"data-discover":!k&&r==="render"?"true":void 0});return y&&!k?m.createElement(m.Fragment,null,ee,m.createElement(hi,{page:B})):ee});Ta.displayName="Link";var wi=m.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:n=!1,style:o,to:i,viewTransition:u,children:s,...l},p){let h=pt(i,{relative:l.relative}),g=De(),R=m.useContext(ht),{navigator:S,basename:C}=m.useContext(Ee),b=R!=null&&_i(h)&&u===!0,L=S.encodeLocation?S.encodeLocation(h).pathname:h.pathname,_=g.pathname,k=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;r||(_=_.toLowerCase(),k=k?k.toLowerCase():null,L=L.toLowerCase()),k&&C&&(k=Pe(k,C)||k);const X=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let B=_===L||!n&&_.startsWith(L)&&_.charAt(X)==="/",Q=k!=null&&(k===L||!n&&k.startsWith(L)&&k.charAt(L.length)==="/"),$={isActive:B,isPending:Q,isTransitioning:b},y=B?t:void 0,G;typeof a=="function"?G=a($):G=[a,B?"active":null,Q?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let Z=typeof o=="function"?o($):o;return m.createElement(Ta,{...l,"aria-current":y,className:G,ref:p,style:Z,to:i,viewTransition:u},typeof s=="function"?s($):s)});wi.displayName="NavLink";var Ei=m.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:n,state:o,method:i=Ct,action:u,onSubmit:s,relative:l,preventScrollReset:p,viewTransition:h,unstable_defaultShouldRevalidate:g,...R},S)=>{let{unstable_useTransitions:C}=m.useContext(Ee),b=xi(),L=Li(u,{relative:l}),_=i.toLowerCase()==="get"?"get":"post",k=typeof u=="string"&&Da.test(u),X=B=>{if(s&&s(B),B.defaultPrevented)return;B.preventDefault();let Q=B.nativeEvent.submitter,$=Q?.getAttribute("formmethod")||i,y=()=>b(Q||B.currentTarget,{fetcherKey:t,method:$,navigate:r,replace:n,state:o,relative:l,preventScrollReset:p,viewTransition:h,unstable_defaultShouldRevalidate:g});C&&r!==!1?m.startTransition(()=>y()):y()};return m.createElement("form",{ref:S,method:_,action:L,onSubmit:a?s:X,...R,"data-discover":!k&&e==="render"?"true":void 0})});Ei.displayName="Form";function bi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ma(e){let t=m.useContext(Ye);return z(t,bi(e)),t}function Si(e,{target:t,replace:r,unstable_mask:a,state:n,preventScrollReset:o,relative:i,viewTransition:u,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let p=tr(),h=De(),g=pt(e,{relative:i});return m.useCallback(R=>{if(Qo(R,t)){R.preventDefault();let S=r!==void 0?r:_e(h)===_e(g),C=()=>p(e,{replace:S,unstable_mask:a,state:n,preventScrollReset:o,relative:i,viewTransition:u,unstable_defaultShouldRevalidate:s});l?m.startTransition(()=>C()):C()}},[h,p,g,r,a,n,t,e,o,i,u,s,l])}function ki(e){ie(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=m.useRef(Gt(e)),r=m.useRef(!1),a=De(),n=m.useMemo(()=>Zo(a.search,r.current?null:t.current),[a.search]),o=tr(),i=m.useCallback((u,s)=>{const l=Gt(typeof u=="function"?u(new URLSearchParams(n)):u);r.current=!0,o("?"+l,s)},[o,n]);return[n,i]}var Pi=0,Ci=()=>`__${String(++Pi)}__`;function xi(){let{router:e}=Ma("useSubmit"),{basename:t}=m.useContext(Ee),r=Ao(),a=e.fetch,n=e.navigate;return m.useCallback(async(o,i={})=>{let{action:u,method:s,encType:l,formData:p,body:h}=ri(o,t);if(i.navigate===!1){let g=i.fetcherKey||Ci();await a(g,r,i.action||u,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:p,body:h,formMethod:i.method||s,formEncType:i.encType||l,flushSync:i.flushSync})}else await n(i.action||u,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:p,body:h,formMethod:i.method||s,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[a,n,t,r])}function Li(e,{relative:t}={}){let{basename:r}=m.useContext(Ee),a=m.useContext(Ce);z(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),o={...pt(e||".",{relative:t})},i=De();if(e==null){o.search=i.search;let u=new URLSearchParams(o.search),s=u.getAll("index");if(s.some(p=>p==="")){u.delete("index"),s.filter(h=>h).forEach(h=>u.append("index",h));let p=u.toString();o.search=p?`?${p}`:""}}return(!e||e===".")&&n.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:xe([r,o.pathname])),_e(o)}function _i(e,{relative:t}={}){let r=m.useContext(Zt);z(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Ma("useViewTransitionState"),n=pt(e,{relative:t});if(!r.isTransitioning)return!1;let o=Pe(r.currentLocation.pathname,a)||r.currentLocation.pathname,i=Pe(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Lt(n.pathname,i)!=null||Lt(n.pathname,o)!=null}var Oa=tn();const Ni=Qr(Oa);function Ui(e){return m.createElement(Bo,{flushSync:Oa.flushSync,...e})}export{Ta as L,Mi as N,Oi as O,Za as R,Zr as a,Oa as b,Di as c,tn as d,Qa as e,Ni as f,Qr as g,ki as h,tr as i,Ti as j,Ai as k,Fi as l,Vo as m,Ui as n,m as r,De as u};