@malloy-publisher/server 0.0.97 → 0.0.99

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 (282) hide show
  1. package/dist/app/assets/index-CGCKhGuq.js +240 -0
  2. package/dist/app/assets/{index-D4eYZfPc.js → index-sRdDLm-N.js} +1 -1
  3. package/dist/app/assets/index.es23-BBjdzilP.js +2 -0
  4. package/dist/app/assets/{index.es126-CKC26ttZ.js → index.es248-BbnofNr_.js} +1 -1
  5. package/dist/app/assets/{index.es127-CBKpWhIe.js → index.es249-CHnp3pgu.js} +1 -1
  6. package/dist/app/assets/{index.es130-5z_n6lm6.js → index.es252-CHg5mTDB.js} +1 -1
  7. package/dist/app/assets/{index.es135-aJw1Xr-9.js → index.es257-C9wENz3l.js} +1 -1
  8. package/dist/app/assets/{index.es143-CAt8G2AV.js → index.es265-BntVFYmO.js} +1 -1
  9. package/dist/app/assets/{index.es144-CaWYrbVR.js → index.es266-DJiGb8ir.js} +1 -1
  10. package/dist/app/assets/{index.es147-B_4j3qbz.js → index.es269-BlNAgQRk.js} +1 -1
  11. package/dist/app/assets/{index.es151-Byg3j7QH.js → index.es273-BZa9C0_S.js} +1 -1
  12. package/dist/app/assets/{index.es154-D8PMiD5x.js → index.es276-Dm75OSI9.js} +1 -1
  13. package/dist/app/assets/{index.es157-qx6EMeW2.js → index.es279-DOueKgLW.js} +1 -1
  14. package/dist/app/assets/{index.es158-CJWvYXRx.js → index.es280-CxZDxKUo.js} +1 -1
  15. package/dist/app/assets/{index.es172-BamsV9CN.js → index.es294-CTbJ9vLR.js} +1 -1
  16. package/dist/app/assets/{index.es173-CXyGU58j.js → index.es295-DiA-SM4E.js} +1 -1
  17. package/dist/app/assets/{index.es174-C2o3B3o8.js → index.es296-CZ8C1F3L.js} +1 -1
  18. package/dist/app/assets/{index.es176-BB-1P5bb.js → index.es298-gjAJKRU1.js} +1 -1
  19. package/dist/app/assets/{index.es181-2PlTGcYG.js → index.es303-B34gU-g3.js} +1 -1
  20. package/dist/app/assets/{index.es183-DgoVwe-N.js → index.es305-K0bsFYUN.js} +1 -1
  21. package/dist/app/assets/{index.es184-Cmc38osU.js → index.es306-DyjbQFWh.js} +1 -1
  22. package/dist/app/assets/{index.es189-DuMu0KfI.js → index.es311-B1RhmG6z.js} +1 -1
  23. package/dist/app/assets/{index.es190-C117wYiK.js → index.es312-DP9VVTDA.js} +1 -1
  24. package/dist/app/assets/{index.es192-Bm2ZoxNH.js → index.es314-oqkmpbtc.js} +1 -1
  25. package/dist/app/assets/{index.es193-BBtnt1bZ.js → index.es315-Cry3G-vd.js} +1 -1
  26. package/dist/app/assets/{index.es194-CB2Nn3wg.js → index.es316-C4cIqlTU.js} +1 -1
  27. package/dist/app/assets/{index.es197-D91osx4R.js → index.es319-DnDYp8mI.js} +1 -1
  28. package/dist/app/assets/{index.es199-BtpESJSS.js → index.es321-8D69jX4a.js} +1 -1
  29. package/dist/app/assets/{index.es200-BeG9RRw_.js → index.es322--yjHxpYn.js} +1 -1
  30. package/dist/app/assets/{index.es201-k2nuCC3B.js → index.es323-CAnzK2pq.js} +1 -1
  31. package/dist/app/assets/{index.es207-C2uQegug.js → index.es329-pKsC3-g8.js} +1 -1
  32. package/dist/app/assets/{index.es208-BTucFWqR.js → index.es330-Boxjtls_.js} +1 -1
  33. package/dist/app/assets/{index.es209-4dK47W8o.js → index.es331-Dq2hbiQb.js} +1 -1
  34. package/dist/app/assets/{index.es210-DO6X3-kz.js → index.es332-_c-j6KJ7.js} +1 -1
  35. package/dist/app/assets/{index.es212-CFG-vrrr.js → index.es334-CiqPgm0u.js} +1 -1
  36. package/dist/app/assets/{index.es216-TWO3Mhor.js → index.es338-CcTqmj4Y.js} +1 -1
  37. package/dist/app/assets/{index.es217-0tHVUThG.js → index.es339-DpdXeVfL.js} +1 -1
  38. package/dist/app/assets/{index.es225-DHGKCs7a.js → index.es347-Huf3ll6E.js} +1 -1
  39. package/dist/app/assets/{index.es228-Bz0ZvI5L.js → index.es350-DJbtODnQ.js} +1 -1
  40. package/dist/app/assets/{index.es231-D1HdFvsl.js → index.es353-CZ1g2C4t.js} +1 -1
  41. package/dist/app/assets/{index.es234-1j9jt1V9.js → index.es356-DORxJG9x.js} +1 -1
  42. package/dist/app/assets/{index.es238-DBm7c9HR.js → index.es360-D_JGZUfP.js} +1 -1
  43. package/dist/app/assets/{index.es240-DCqDESzD.js → index.es362-SgvLbwKE.js} +1 -1
  44. package/dist/app/assets/{index.es248-BEYN2dFo.js → index.es370-CmNgHhZR.js} +1 -1
  45. package/dist/app/assets/{index.es249-DKdYiZA_.js → index.es371-Cs1lL0hA.js} +1 -1
  46. package/dist/app/assets/{index.es256-CgBAGaDx.js → index.es378-DLafTSmc.js} +1 -1
  47. package/dist/app/assets/{index.es257-DMI3dJGJ.js → index.es379-DvAUFL3j.js} +1 -1
  48. package/dist/app/assets/{index.es267-B5ei8o6D.js → index.es389-DLoaFSAg.js} +1 -1
  49. package/dist/app/assets/{index.es271-DDBsSlrj.js → index.es393-D2rZ0QpA.js} +1 -1
  50. package/dist/app/assets/{index.es277-aI_iYBJv.js → index.es399-CfJRcQ4n.js} +1 -1
  51. package/dist/app/assets/{index.es282-DZQyCurk.js → index.es404-BtfUL5QQ.js} +1 -1
  52. package/dist/app/assets/{index.es283-DRQxI154.js → index.es405-CgsGWDZA.js} +1 -1
  53. package/dist/app/assets/{index.es285-DrT3oe3D.js → index.es407-C_zMiwph.js} +1 -1
  54. package/dist/app/assets/{index.es289-CKYiktdr.js → index.es411-vZ0JeZmh.js} +1 -1
  55. package/dist/app/assets/{index.es291-BRH8qn2R.js → index.es413-CbVhl1jA.js} +1 -1
  56. package/dist/app/assets/{index.es293-B_x7Y2b5.js → index.es415-BcYlm_Ug.js} +1 -1
  57. package/dist/app/assets/{index.es296-CMhur-CK.js → index.es418-vuRuSeN9.js} +1 -1
  58. package/dist/app/assets/{index.es297-BY9kHC-p.js → index.es419-_2HbSMSa.js} +1 -1
  59. package/dist/app/assets/{index.es301-CmwjGLCv.js → index.es423-DzpSEUNI.js} +1 -1
  60. package/dist/app/assets/{index.es303-BOa5F89I.js → index.es425-D6X1TVim.js} +1 -1
  61. package/dist/app/assets/{index.es310-BF6kc0UE.js → index.es432-8bVDwFXM.js} +1 -1
  62. package/dist/app/assets/{index.es312-CoCT5fTV.js → index.es434-C9NHuXnM.js} +1 -1
  63. package/dist/app/assets/{index.es314-CMYE9lCS.js → index.es436-BTPPL0zS.js} +1 -1
  64. package/dist/app/assets/{index.es318-C2_Stmju.js → index.es440-ww1QoUAZ.js} +1 -1
  65. package/dist/app/assets/{index.es328-DxiHjjdV.js → index.es450-DBjXbu_P.js} +1 -1
  66. package/dist/app/assets/{index.es329-D4H4qJV5.js → index.es451-DHwELaFr.js} +1 -1
  67. package/dist/app/assets/{index.es336-DMBcHb9l.js → index.es458-webL2P4r.js} +1 -1
  68. package/dist/app/assets/{index.es337-BOcmfyvS.js → index.es459-huEmffFP.js} +1 -1
  69. package/dist/app/assets/mui-Bd3E_VmC.js +159 -0
  70. package/dist/app/index.html +2 -2
  71. package/package.json +1 -1
  72. package/dist/app/assets/index-BIibKHZO.js +0 -251
  73. package/dist/app/assets/index.es23-Cifiq2N-.js +0 -2
  74. package/dist/app/assets/mui-UpaxdnvH.js +0 -159
  75. /package/dist/app/assets/{index.es115-CG6Dc4jp.js → index.es237-CG6Dc4jp.js} +0 -0
  76. /package/dist/app/assets/{index.es123-DsBKuouk.js → index.es245-DsBKuouk.js} +0 -0
  77. /package/dist/app/assets/{index.es124-D_z4Izcz.js → index.es246-D_z4Izcz.js} +0 -0
  78. /package/dist/app/assets/{index.es125-727ZlQH0.js → index.es247-727ZlQH0.js} +0 -0
  79. /package/dist/app/assets/{index.es128-Dn00JSTd.js → index.es250-Dn00JSTd.js} +0 -0
  80. /package/dist/app/assets/{index.es129-COJ4H7py.js → index.es251-COJ4H7py.js} +0 -0
  81. /package/dist/app/assets/{index.es131-Bu5BbsvL.js → index.es253-Bu5BbsvL.js} +0 -0
  82. /package/dist/app/assets/{index.es132-7O62HKoU.js → index.es254-7O62HKoU.js} +0 -0
  83. /package/dist/app/assets/{index.es133-BPT9niGB.js → index.es255-BPT9niGB.js} +0 -0
  84. /package/dist/app/assets/{index.es134-Dhn9LcZ4.js → index.es256-Dhn9LcZ4.js} +0 -0
  85. /package/dist/app/assets/{index.es136-eg146-Ew.js → index.es258-eg146-Ew.js} +0 -0
  86. /package/dist/app/assets/{index.es137-Du268qiB.js → index.es259-Du268qiB.js} +0 -0
  87. /package/dist/app/assets/{index.es138-fje9CFhw.js → index.es260-fje9CFhw.js} +0 -0
  88. /package/dist/app/assets/{index.es139-BwXTMy5W.js → index.es261-BwXTMy5W.js} +0 -0
  89. /package/dist/app/assets/{index.es140-3xVqZejG.js → index.es262-3xVqZejG.js} +0 -0
  90. /package/dist/app/assets/{index.es141-xW4inM5L.js → index.es263-xW4inM5L.js} +0 -0
  91. /package/dist/app/assets/{index.es142-DHo0CJ0O.js → index.es264-DHo0CJ0O.js} +0 -0
  92. /package/dist/app/assets/{index.es145-C3t2pwGQ.js → index.es267-C3t2pwGQ.js} +0 -0
  93. /package/dist/app/assets/{index.es146-DNquZEk8.js → index.es268-DNquZEk8.js} +0 -0
  94. /package/dist/app/assets/{index.es148-BHOwM8T6.js → index.es270-BHOwM8T6.js} +0 -0
  95. /package/dist/app/assets/{index.es149-DxSadP1t.js → index.es271-DxSadP1t.js} +0 -0
  96. /package/dist/app/assets/{index.es150-DbXoA79R.js → index.es272-DbXoA79R.js} +0 -0
  97. /package/dist/app/assets/{index.es152-Bp6g37R7.js → index.es274-Bp6g37R7.js} +0 -0
  98. /package/dist/app/assets/{index.es153-sacFqUAJ.js → index.es275-sacFqUAJ.js} +0 -0
  99. /package/dist/app/assets/{index.es155-C7gG9l05.js → index.es277-C7gG9l05.js} +0 -0
  100. /package/dist/app/assets/{index.es156-Dsg_Bt_b.js → index.es278-Dsg_Bt_b.js} +0 -0
  101. /package/dist/app/assets/{index.es159-D9R-vmeu.js → index.es281-D9R-vmeu.js} +0 -0
  102. /package/dist/app/assets/{index.es160-BPhBrDlE.js → index.es282-BPhBrDlE.js} +0 -0
  103. /package/dist/app/assets/{index.es161-C-TU5hQ_.js → index.es283-C-TU5hQ_.js} +0 -0
  104. /package/dist/app/assets/{index.es162-DtFQj3wx.js → index.es284-DtFQj3wx.js} +0 -0
  105. /package/dist/app/assets/{index.es163-m2LEI-9-.js → index.es285-m2LEI-9-.js} +0 -0
  106. /package/dist/app/assets/{index.es164-BoXegm-a.js → index.es286-BoXegm-a.js} +0 -0
  107. /package/dist/app/assets/{index.es165-B9wLZaAG.js → index.es287-B9wLZaAG.js} +0 -0
  108. /package/dist/app/assets/{index.es166-ClGRhx96.js → index.es288-ClGRhx96.js} +0 -0
  109. /package/dist/app/assets/{index.es167-DEIpsLCJ.js → index.es289-DEIpsLCJ.js} +0 -0
  110. /package/dist/app/assets/{index.es168-BgYniUM_.js → index.es290-BgYniUM_.js} +0 -0
  111. /package/dist/app/assets/{index.es169-COcR7UxN.js → index.es291-COcR7UxN.js} +0 -0
  112. /package/dist/app/assets/{index.es170-BjQB5zDj.js → index.es292-BjQB5zDj.js} +0 -0
  113. /package/dist/app/assets/{index.es171-C-nORZOA.js → index.es293-C-nORZOA.js} +0 -0
  114. /package/dist/app/assets/{index.es175-BX77sIaO.js → index.es297-BX77sIaO.js} +0 -0
  115. /package/dist/app/assets/{index.es177-B-DoSBHF.js → index.es299-B-DoSBHF.js} +0 -0
  116. /package/dist/app/assets/{index.es178-bCA53EVm.js → index.es300-bCA53EVm.js} +0 -0
  117. /package/dist/app/assets/{index.es179-w-ucz2PV.js → index.es301-w-ucz2PV.js} +0 -0
  118. /package/dist/app/assets/{index.es180-Dayu4EKP.js → index.es302-Dayu4EKP.js} +0 -0
  119. /package/dist/app/assets/{index.es182-DKXYxT9g.js → index.es304-DKXYxT9g.js} +0 -0
  120. /package/dist/app/assets/{index.es185-DfxzS6Rs.js → index.es307-DfxzS6Rs.js} +0 -0
  121. /package/dist/app/assets/{index.es186-SKMF96pI.js → index.es308-SKMF96pI.js} +0 -0
  122. /package/dist/app/assets/{index.es187-ajMbGru0.js → index.es309-ajMbGru0.js} +0 -0
  123. /package/dist/app/assets/{index.es188--30QC5Em.js → index.es310--30QC5Em.js} +0 -0
  124. /package/dist/app/assets/{index.es191-B430Bg39.js → index.es313-B430Bg39.js} +0 -0
  125. /package/dist/app/assets/{index.es195-CM8KxXT1.js → index.es317-CM8KxXT1.js} +0 -0
  126. /package/dist/app/assets/{index.es196-B1SYOhNW.js → index.es318-B1SYOhNW.js} +0 -0
  127. /package/dist/app/assets/{index.es198-DkBy-JyN.js → index.es320-DkBy-JyN.js} +0 -0
  128. /package/dist/app/assets/{index.es202-BILxekzW.js → index.es324-BILxekzW.js} +0 -0
  129. /package/dist/app/assets/{index.es203-C5wWYbrZ.js → index.es325-C5wWYbrZ.js} +0 -0
  130. /package/dist/app/assets/{index.es204-HzYwdGDm.js → index.es326-HzYwdGDm.js} +0 -0
  131. /package/dist/app/assets/{index.es205-T-Tgc4AT.js → index.es327-T-Tgc4AT.js} +0 -0
  132. /package/dist/app/assets/{index.es206-ifBTmRxC.js → index.es328-ifBTmRxC.js} +0 -0
  133. /package/dist/app/assets/{index.es211-BMj5Y0dO.js → index.es333-BMj5Y0dO.js} +0 -0
  134. /package/dist/app/assets/{index.es213-BjABl1g7.js → index.es335-BjABl1g7.js} +0 -0
  135. /package/dist/app/assets/{index.es214-xI-RfyKK.js → index.es336-xI-RfyKK.js} +0 -0
  136. /package/dist/app/assets/{index.es215-ySlJ1b_l.js → index.es337-ySlJ1b_l.js} +0 -0
  137. /package/dist/app/assets/{index.es218-BQoSv7ci.js → index.es340-BQoSv7ci.js} +0 -0
  138. /package/dist/app/assets/{index.es219-w8dY5SsB.js → index.es341-w8dY5SsB.js} +0 -0
  139. /package/dist/app/assets/{index.es220-TU54ms6u.js → index.es342-TU54ms6u.js} +0 -0
  140. /package/dist/app/assets/{index.es221-DREVFZK8.js → index.es343-DREVFZK8.js} +0 -0
  141. /package/dist/app/assets/{index.es222-BfivnA6A.js → index.es344-BfivnA6A.js} +0 -0
  142. /package/dist/app/assets/{index.es223-P4WzXJd0.js → index.es345-P4WzXJd0.js} +0 -0
  143. /package/dist/app/assets/{index.es224-BAng5TT0.js → index.es346-BAng5TT0.js} +0 -0
  144. /package/dist/app/assets/{index.es226-B5lbUyaz.js → index.es348-B5lbUyaz.js} +0 -0
  145. /package/dist/app/assets/{index.es227-mebxcVVE.js → index.es349-mebxcVVE.js} +0 -0
  146. /package/dist/app/assets/{index.es229-XBlWyCtg.js → index.es351-XBlWyCtg.js} +0 -0
  147. /package/dist/app/assets/{index.es230-BfCpw3nA.js → index.es352-BfCpw3nA.js} +0 -0
  148. /package/dist/app/assets/{index.es232-Cc5clBb7.js → index.es354-Cc5clBb7.js} +0 -0
  149. /package/dist/app/assets/{index.es233-IuBKFhSY.js → index.es355-IuBKFhSY.js} +0 -0
  150. /package/dist/app/assets/{index.es235-Du5NY7AG.js → index.es357-Du5NY7AG.js} +0 -0
  151. /package/dist/app/assets/{index.es236-Bvotw-X0.js → index.es358-Bvotw-X0.js} +0 -0
  152. /package/dist/app/assets/{index.es237-UIAJJxZW.js → index.es359-UIAJJxZW.js} +0 -0
  153. /package/dist/app/assets/{index.es239-D9-PGadD.js → index.es361-D9-PGadD.js} +0 -0
  154. /package/dist/app/assets/{index.es241-sdHcTMYB.js → index.es363-sdHcTMYB.js} +0 -0
  155. /package/dist/app/assets/{index.es242-Ci6OQyBP.js → index.es364-Ci6OQyBP.js} +0 -0
  156. /package/dist/app/assets/{index.es243-BC5c_5Pe.js → index.es365-BC5c_5Pe.js} +0 -0
  157. /package/dist/app/assets/{index.es244-Tz6hzZYG.js → index.es366-Tz6hzZYG.js} +0 -0
  158. /package/dist/app/assets/{index.es245-DB_GagMm.js → index.es367-DB_GagMm.js} +0 -0
  159. /package/dist/app/assets/{index.es246-DLbgOhZU.js → index.es368-DLbgOhZU.js} +0 -0
  160. /package/dist/app/assets/{index.es247-B0XVJmRM.js → index.es369-B0XVJmRM.js} +0 -0
  161. /package/dist/app/assets/{index.es250-shcSOmrb.js → index.es372-shcSOmrb.js} +0 -0
  162. /package/dist/app/assets/{index.es251-D4Tzg5kh.js → index.es373-D4Tzg5kh.js} +0 -0
  163. /package/dist/app/assets/{index.es252-Deuh7S70.js → index.es374-Deuh7S70.js} +0 -0
  164. /package/dist/app/assets/{index.es253-BUEGK8hf.js → index.es375-BUEGK8hf.js} +0 -0
  165. /package/dist/app/assets/{index.es254-BNioltXt.js → index.es376-BNioltXt.js} +0 -0
  166. /package/dist/app/assets/{index.es255-JqZropPD.js → index.es377-JqZropPD.js} +0 -0
  167. /package/dist/app/assets/{index.es258-LKU2TuZ1.js → index.es380-LKU2TuZ1.js} +0 -0
  168. /package/dist/app/assets/{index.es259-BFLt1xDp.js → index.es381-BFLt1xDp.js} +0 -0
  169. /package/dist/app/assets/{index.es260-DKykz6zU.js → index.es382-DKykz6zU.js} +0 -0
  170. /package/dist/app/assets/{index.es261-B3ZDOciz.js → index.es383-B3ZDOciz.js} +0 -0
  171. /package/dist/app/assets/{index.es262-CSHBycmS.js → index.es384-CSHBycmS.js} +0 -0
  172. /package/dist/app/assets/{index.es263-BIEUsx6d.js → index.es385-BIEUsx6d.js} +0 -0
  173. /package/dist/app/assets/{index.es264-B48N-Iqd.js → index.es386-B48N-Iqd.js} +0 -0
  174. /package/dist/app/assets/{index.es265-BY-TUvya.js → index.es387-BY-TUvya.js} +0 -0
  175. /package/dist/app/assets/{index.es266-zocC4JxJ.js → index.es388-zocC4JxJ.js} +0 -0
  176. /package/dist/app/assets/{index.es268-Cza_XSSt.js → index.es390-Cza_XSSt.js} +0 -0
  177. /package/dist/app/assets/{index.es269-Bg-kzb6g.js → index.es391-Bg-kzb6g.js} +0 -0
  178. /package/dist/app/assets/{index.es270-DhUJRlN_.js → index.es392-DhUJRlN_.js} +0 -0
  179. /package/dist/app/assets/{index.es272-C8lEn-DE.js → index.es394-C8lEn-DE.js} +0 -0
  180. /package/dist/app/assets/{index.es273-DhMKtDLN.js → index.es395-DhMKtDLN.js} +0 -0
  181. /package/dist/app/assets/{index.es274-CwjWoCRV.js → index.es396-CwjWoCRV.js} +0 -0
  182. /package/dist/app/assets/{index.es275-CzouJOBO.js → index.es397-CzouJOBO.js} +0 -0
  183. /package/dist/app/assets/{index.es276-B1bQXN8T.js → index.es398-B1bQXN8T.js} +0 -0
  184. /package/dist/app/assets/{index.es278-5LuOXUq_.js → index.es400-5LuOXUq_.js} +0 -0
  185. /package/dist/app/assets/{index.es279-DWJ3fJO_.js → index.es401-DWJ3fJO_.js} +0 -0
  186. /package/dist/app/assets/{index.es280-DJlmqQ1C.js → index.es402-DJlmqQ1C.js} +0 -0
  187. /package/dist/app/assets/{index.es281-QhoSD0DR.js → index.es403-QhoSD0DR.js} +0 -0
  188. /package/dist/app/assets/{index.es284-Be6lgOlo.js → index.es406-Be6lgOlo.js} +0 -0
  189. /package/dist/app/assets/{index.es286-BJ4Li9vH.js → index.es408-BJ4Li9vH.js} +0 -0
  190. /package/dist/app/assets/{index.es287-DQVVAn-B.js → index.es409-DQVVAn-B.js} +0 -0
  191. /package/dist/app/assets/{index.es288-BJGe-b2p.js → index.es410-BJGe-b2p.js} +0 -0
  192. /package/dist/app/assets/{index.es290-BLhTXw86.js → index.es412-BLhTXw86.js} +0 -0
  193. /package/dist/app/assets/{index.es292-atvbtKCR.js → index.es414-atvbtKCR.js} +0 -0
  194. /package/dist/app/assets/{index.es294-DkLiglaE.js → index.es416-DkLiglaE.js} +0 -0
  195. /package/dist/app/assets/{index.es295-C1w2a3ep.js → index.es417-C1w2a3ep.js} +0 -0
  196. /package/dist/app/assets/{index.es298-Cf8iN4DR.js → index.es420-Cf8iN4DR.js} +0 -0
  197. /package/dist/app/assets/{index.es299-COK4E0Yg.js → index.es421-COK4E0Yg.js} +0 -0
  198. /package/dist/app/assets/{index.es300-BknIz3MU.js → index.es422-BknIz3MU.js} +0 -0
  199. /package/dist/app/assets/{index.es302-BeQkCIfX.js → index.es424-BeQkCIfX.js} +0 -0
  200. /package/dist/app/assets/{index.es304-BSxZ-RaX.js → index.es426-BSxZ-RaX.js} +0 -0
  201. /package/dist/app/assets/{index.es305-C7L56vO4.js → index.es427-C7L56vO4.js} +0 -0
  202. /package/dist/app/assets/{index.es306-CUnW07Te.js → index.es428-CUnW07Te.js} +0 -0
  203. /package/dist/app/assets/{index.es307-C1XDQQGZ.js → index.es429-C1XDQQGZ.js} +0 -0
  204. /package/dist/app/assets/{index.es308-CQjiPCtT.js → index.es430-CQjiPCtT.js} +0 -0
  205. /package/dist/app/assets/{index.es309-DQ1-QYvQ.js → index.es431-DQ1-QYvQ.js} +0 -0
  206. /package/dist/app/assets/{index.es311-BbSNqyBO.js → index.es433-BbSNqyBO.js} +0 -0
  207. /package/dist/app/assets/{index.es313-CB2ApiWb.js → index.es435-CB2ApiWb.js} +0 -0
  208. /package/dist/app/assets/{index.es315-B_m7g4N7.js → index.es437-B_m7g4N7.js} +0 -0
  209. /package/dist/app/assets/{index.es316-B6W0miNI.js → index.es438-B6W0miNI.js} +0 -0
  210. /package/dist/app/assets/{index.es317-BMR_PYu6.js → index.es439-BMR_PYu6.js} +0 -0
  211. /package/dist/app/assets/{index.es319-Dj6nwHGl.js → index.es441-Dj6nwHGl.js} +0 -0
  212. /package/dist/app/assets/{index.es320-BpWG_bgh.js → index.es442-BpWG_bgh.js} +0 -0
  213. /package/dist/app/assets/{index.es321-BVUVsWT6.js → index.es443-BVUVsWT6.js} +0 -0
  214. /package/dist/app/assets/{index.es322-CAQ2eGtk.js → index.es444-CAQ2eGtk.js} +0 -0
  215. /package/dist/app/assets/{index.es323-BFOHcciG.js → index.es445-BFOHcciG.js} +0 -0
  216. /package/dist/app/assets/{index.es324-CdO5JTpU.js → index.es446-CdO5JTpU.js} +0 -0
  217. /package/dist/app/assets/{index.es325-CJaU5se_.js → index.es447-CJaU5se_.js} +0 -0
  218. /package/dist/app/assets/{index.es326-DYoNaHQp.js → index.es448-DYoNaHQp.js} +0 -0
  219. /package/dist/app/assets/{index.es327-m4uW47V2.js → index.es449-m4uW47V2.js} +0 -0
  220. /package/dist/app/assets/{index.es330-nyqBNV6O.js → index.es452-nyqBNV6O.js} +0 -0
  221. /package/dist/app/assets/{index.es331-C6j12Q_x.js → index.es453-C6j12Q_x.js} +0 -0
  222. /package/dist/app/assets/{index.es332-7A4Fjokl.js → index.es454-7A4Fjokl.js} +0 -0
  223. /package/dist/app/assets/{index.es333-CB0Krxn9.js → index.es455-CB0Krxn9.js} +0 -0
  224. /package/dist/app/assets/{index.es334-DCE3LsBG.js → index.es456-DCE3LsBG.js} +0 -0
  225. /package/dist/app/assets/{index.es335-C3FkfJm5.js → index.es457-C3FkfJm5.js} +0 -0
  226. /package/dist/app/assets/{index.es338-CVw76BM1.js → index.es460-CVw76BM1.js} +0 -0
  227. /package/dist/app/assets/{index.es339-HnGAYVZD.js → index.es461-HnGAYVZD.js} +0 -0
  228. /package/dist/app/assets/{index.es340-BVz_zdnA.js → index.es462-BVz_zdnA.js} +0 -0
  229. /package/dist/app/assets/{index.es341-C3khCPGq.js → index.es463-C3khCPGq.js} +0 -0
  230. /package/dist/app/assets/{index.es342-D-2ljcwZ.js → index.es464-D-2ljcwZ.js} +0 -0
  231. /package/dist/app/assets/{index.es343-Cv9koXgw.js → index.es465-Cv9koXgw.js} +0 -0
  232. /package/dist/app/assets/{index.es344-CD_QflpE.js → index.es466-CD_QflpE.js} +0 -0
  233. /package/dist/app/assets/{index.es345-DRW-0cLl.js → index.es467-DRW-0cLl.js} +0 -0
  234. /package/dist/app/assets/{index.es346-C-_shW-Y.js → index.es468-C-_shW-Y.js} +0 -0
  235. /package/dist/app/assets/{index.es347-LGGdnPYs.js → index.es469-LGGdnPYs.js} +0 -0
  236. /package/dist/app/assets/{index.es348-C3mMm8J8.js → index.es470-C3mMm8J8.js} +0 -0
  237. /package/dist/app/assets/{index.es349-BzJJZx-M.js → index.es471-BzJJZx-M.js} +0 -0
  238. /package/dist/app/assets/{index.es350-BXkSAIEj.js → index.es472-BXkSAIEj.js} +0 -0
  239. /package/dist/app/assets/{index.es351-BgDCqdQA.js → index.es473-BgDCqdQA.js} +0 -0
  240. /package/dist/app/assets/{index.es352-C8M2exoo.js → index.es474-C8M2exoo.js} +0 -0
  241. /package/dist/app/assets/{index.es353-DHJKELXO.js → index.es475-DHJKELXO.js} +0 -0
  242. /package/dist/app/assets/{index.es354-Cuk6v7N8.js → index.es476-Cuk6v7N8.js} +0 -0
  243. /package/dist/app/assets/{index.es355-DH5Ifo-i.js → index.es477-DH5Ifo-i.js} +0 -0
  244. /package/dist/app/assets/{index.es356-E3gJ1_iC.js → index.es478-E3gJ1_iC.js} +0 -0
  245. /package/dist/app/assets/{index.es357-DAi9KRSo.js → index.es479-DAi9KRSo.js} +0 -0
  246. /package/dist/app/assets/{index.es358-D7oLnXFd.js → index.es480-D7oLnXFd.js} +0 -0
  247. /package/dist/app/assets/{index.es359-BfjtVDDH.js → index.es481-BfjtVDDH.js} +0 -0
  248. /package/dist/app/assets/{index.es360-DnULxvSX.js → index.es482-DnULxvSX.js} +0 -0
  249. /package/dist/app/assets/{index.es361-CkXjmgJE.js → index.es483-CkXjmgJE.js} +0 -0
  250. /package/dist/app/assets/{index.es362-CfQXZHmo.js → index.es484-CfQXZHmo.js} +0 -0
  251. /package/dist/app/assets/{index.es363-DWedfzmr.js → index.es485-DWedfzmr.js} +0 -0
  252. /package/dist/app/assets/{index.es364-DUszq2jm.js → index.es486-DUszq2jm.js} +0 -0
  253. /package/dist/app/assets/{index.es365-B7mTdjB0.js → index.es487-B7mTdjB0.js} +0 -0
  254. /package/dist/app/assets/{index.es366-D5KoaKCx.js → index.es488-D5KoaKCx.js} +0 -0
  255. /package/dist/app/assets/{index.es367-BfHTSMKl.js → index.es489-BfHTSMKl.js} +0 -0
  256. /package/dist/app/assets/{index.es368-B0m2ddpp.js → index.es490-B0m2ddpp.js} +0 -0
  257. /package/dist/app/assets/{index.es369-CyktbL80.js → index.es491-CyktbL80.js} +0 -0
  258. /package/dist/app/assets/{index.es370-Csfq5Kiy.js → index.es492-Csfq5Kiy.js} +0 -0
  259. /package/dist/app/assets/{index.es371-CafNBF8u.js → index.es493-CafNBF8u.js} +0 -0
  260. /package/dist/app/assets/{index.es372-CTRr51gU.js → index.es494-CTRr51gU.js} +0 -0
  261. /package/dist/app/assets/{index.es373-D4h5O-jR.js → index.es495-D4h5O-jR.js} +0 -0
  262. /package/dist/app/assets/{index.es374-C39BiMTA.js → index.es496-C39BiMTA.js} +0 -0
  263. /package/dist/app/assets/{index.es375-Ddv68eIx.js → index.es497-Ddv68eIx.js} +0 -0
  264. /package/dist/app/assets/{index.es376-GBQ2dnAY.js → index.es498-GBQ2dnAY.js} +0 -0
  265. /package/dist/app/assets/{index.es377-PoHY5YXO.js → index.es499-PoHY5YXO.js} +0 -0
  266. /package/dist/app/assets/{index.es378-3e1v2bzS.js → index.es500-3e1v2bzS.js} +0 -0
  267. /package/dist/app/assets/{index.es379-CS3Unz2-.js → index.es501-CS3Unz2-.js} +0 -0
  268. /package/dist/app/assets/{index.es380-bN70gL4F.js → index.es502-bN70gL4F.js} +0 -0
  269. /package/dist/app/assets/{index.es381-CmCqftbK.js → index.es503-CmCqftbK.js} +0 -0
  270. /package/dist/app/assets/{index.es382-Ds-gbosJ.js → index.es504-Ds-gbosJ.js} +0 -0
  271. /package/dist/app/assets/{index.es383-CjDtw9vr.js → index.es505-CjDtw9vr.js} +0 -0
  272. /package/dist/app/assets/{index.es384-BthQWCQV.js → index.es506-BthQWCQV.js} +0 -0
  273. /package/dist/app/assets/{index.es385-DqwNpetd.js → index.es507-DqwNpetd.js} +0 -0
  274. /package/dist/app/assets/{index.es386-Bw305WKR.js → index.es508-Bw305WKR.js} +0 -0
  275. /package/dist/app/assets/{index.es387-DXbdFlpD.js → index.es509-DXbdFlpD.js} +0 -0
  276. /package/dist/app/assets/{index.es388-L9t79GZl.js → index.es510-L9t79GZl.js} +0 -0
  277. /package/dist/app/assets/{index.es389-CbfX1IO0.js → index.es511-CbfX1IO0.js} +0 -0
  278. /package/dist/app/assets/{index.es390-DBQeEorK.js → index.es512-DBQeEorK.js} +0 -0
  279. /package/dist/app/assets/{index.es391-BEBZ7ncR.js → index.es513-BEBZ7ncR.js} +0 -0
  280. /package/dist/app/assets/{index.es392-Bkuqu6BP.js → index.es514-Bkuqu6BP.js} +0 -0
  281. /package/dist/app/assets/{index.es393-D0r3Knsf.js → index.es515-D0r3Knsf.js} +0 -0
  282. /package/dist/app/assets/{index.es394-CVO1_9PV.js → index.es516-CVO1_9PV.js} +0 -0
@@ -1,251 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es126-CKC26ttZ.js","assets/index.es207-C2uQegug.js","assets/index.es215-ySlJ1b_l.js","assets/index.es160-BPhBrDlE.js","assets/index.es127-CBKpWhIe.js","assets/index.es289-CKYiktdr.js","assets/index.es130-5z_n6lm6.js","assets/index.es336-DMBcHb9l.js","assets/index.es214-xI-RfyKK.js","assets/index.es218-BQoSv7ci.js","assets/index.es135-aJw1Xr-9.js","assets/index.es319-Dj6nwHGl.js","assets/index.es261-B3ZDOciz.js","assets/index.es143-CAt8G2AV.js","assets/index.es299-COK4E0Yg.js","assets/index.es144-CaWYrbVR.js","assets/index.es290-BLhTXw86.js","assets/index.es147-B_4j3qbz.js","assets/index.es270-DhUJRlN_.js","assets/index.es151-Byg3j7QH.js","assets/index.es154-D8PMiD5x.js","assets/index.es157-qx6EMeW2.js","assets/index.es279-DWJ3fJO_.js","assets/index.es194-CB2Nn3wg.js","assets/index.es145-C3t2pwGQ.js","assets/index.es158-CJWvYXRx.js","assets/index.es292-atvbtKCR.js","assets/index.es172-BamsV9CN.js","assets/index.es208-BTucFWqR.js","assets/index.es173-CXyGU58j.js","assets/index.es174-C2o3B3o8.js","assets/index.es176-BB-1P5bb.js","assets/index.es283-DRQxI154.js","assets/index.es200-BeG9RRw_.js","assets/index.es197-D91osx4R.js","assets/index.es224-BAng5TT0.js","assets/index.es316-B6W0miNI.js","assets/index.es234-1j9jt1V9.js","assets/index.es338-CVw76BM1.js","assets/index.es181-2PlTGcYG.js","assets/index.es182-DKXYxT9g.js","assets/index.es183-DgoVwe-N.js","assets/index.es237-UIAJJxZW.js","assets/index.es184-Cmc38osU.js","assets/index.es186-SKMF96pI.js","assets/index.es185-DfxzS6Rs.js","assets/index.es189-DuMu0KfI.js","assets/index.es168-BgYniUM_.js","assets/index.es190-C117wYiK.js","assets/index.es192-Bm2ZoxNH.js","assets/index.es193-BBtnt1bZ.js","assets/index.es199-BtpESJSS.js","assets/index.es201-k2nuCC3B.js","assets/index.es209-4dK47W8o.js","assets/index.es210-DO6X3-kz.js","assets/index.es203-C5wWYbrZ.js","assets/index.es212-CFG-vrrr.js","assets/index.es216-TWO3Mhor.js","assets/index.es217-0tHVUThG.js","assets/index.es225-DHGKCs7a.js","assets/index.es274-CwjWoCRV.js","assets/index.es228-Bz0ZvI5L.js","assets/index.es312-CoCT5fTV.js","assets/index.es231-D1HdFvsl.js","assets/index.es238-DBm7c9HR.js","assets/index.es230-BfCpw3nA.js","assets/index.es240-DCqDESzD.js","assets/index.es248-BEYN2dFo.js","assets/index.es249-DKdYiZA_.js","assets/index.es256-CgBAGaDx.js","assets/index.es257-DMI3dJGJ.js","assets/index.es267-B5ei8o6D.js","assets/index.es271-DDBsSlrj.js","assets/index.es277-aI_iYBJv.js","assets/index.es159-D9R-vmeu.js","assets/index.es282-DZQyCurk.js","assets/index.es150-DbXoA79R.js","assets/index.es285-DrT3oe3D.js","assets/index.es291-BRH8qn2R.js","assets/index.es206-ifBTmRxC.js","assets/index.es293-B_x7Y2b5.js","assets/index.es296-CMhur-CK.js","assets/index.es297-BY9kHC-p.js","assets/index.es317-BMR_PYu6.js","assets/index.es301-CmwjGLCv.js","assets/index.es303-BOa5F89I.js","assets/index.es310-BF6kc0UE.js","assets/index.es196-B1SYOhNW.js","assets/index.es314-CMYE9lCS.js","assets/index.es318-C2_Stmju.js","assets/index.es328-DxiHjjdV.js","assets/index.es329-D4H4qJV5.js","assets/index.es337-BOcmfyvS.js","assets/index-D4eYZfPc.js","assets/mui-UpaxdnvH.js","assets/vendor-c5ypKtDW.js","assets/index-SM0qJxoC.js","assets/index.umd-DknWdzGi.js","assets/index.es23-Cifiq2N-.js"])))=>i.map(i=>d[i]);
2
- import{r as N,a as $2,u as t4,c as n4,b as r4,s as a4,j as b,d as Ls,C as Ml,e as Pl,f as i4,T as Pe,B as ut,g as s4,h as F2,i as Lr,R as Ne,S as Ox,I as An,k as o4,F as l4,D as nr,L as dE,l as uh,m as Lu,G as gn,P as Nh,n as c4,o as u4,p as j2,q as Sn,t as fE,v as Ju,w as rp,x as ii,y as Ut,z as ed,A as Up,E as Hp,H as zp,J as d4,K as dh,M as hE,N as ji,O as f4,Q as h4,U as zt,V as Gp,W as Ui,X as B2,Y as p4,Z as bo,_ as U2,$ as ap,a0 as m4,a1 as g4,a2 as pE,a3 as y4,a4 as E4,a5 as b4,a6 as v4,a7 as T4,a8 as _4,a9 as x4,aa as A4,ab as S4}from"./mui-UpaxdnvH.js";import{r as C4,a as D4}from"./vendor-c5ypKtDW.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var H0={exports:{}},su={},z0={exports:{}},G0={};/**
3
- * @license React
4
- * scheduler.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var Lx;function k4(){return Lx||(Lx=1,function(e){function t(G,le){var oe=G.length;G.push(le);e:for(;0<oe;){var ye=oe-1>>>1,P=G[ye];if(0<a(P,le))G[ye]=le,G[oe]=P,oe=ye;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var le=G[0],oe=G.pop();if(oe!==le){G[0]=oe;e:for(var ye=0,P=G.length,Oe=P>>>1;ye<Oe;){var ce=2*(ye+1)-1,w=G[ce],te=ce+1,Ce=G[te];if(0>a(w,oe))te<P&&0>a(Ce,w)?(G[ye]=Ce,G[te]=oe,ye=te):(G[ye]=w,G[ce]=oe,ye=ce);else if(te<P&&0>a(Ce,oe))G[ye]=Ce,G[te]=oe,ye=te;else break e}}return le}function a(G,le){var oe=G.sortIndex-le.sortIndex;return oe!==0?oe:G.id-le.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,m=null,y=3,E=!1,T=!1,A=!1,C=!1,x=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function L(G){for(var le=n(f);le!==null;){if(le.callback===null)r(f);else if(le.startTime<=G)r(f),le.sortIndex=le.expirationTime,t(d,le);else break;le=n(f)}}function M(G){if(A=!1,L(G),!T)if(n(d)!==null)T=!0,I||(I=!0,Q());else{var le=n(f);le!==null&&me(M,le.startTime-G)}}var I=!1,V=-1,ne=5,K=-1;function k(){return C?!0:!(e.unstable_now()-K<ne)}function H(){if(C=!1,I){var G=e.unstable_now();K=G;var le=!0;try{e:{T=!1,A&&(A=!1,D(V),V=-1),E=!0;var oe=y;try{t:{for(L(G),m=n(d);m!==null&&!(m.expirationTime>G&&k());){var ye=m.callback;if(typeof ye=="function"){m.callback=null,y=m.priorityLevel;var P=ye(m.expirationTime<=G);if(G=e.unstable_now(),typeof P=="function"){m.callback=P,L(G),le=!0;break t}m===n(d)&&r(d),L(G)}else r(d);m=n(d)}if(m!==null)le=!0;else{var Oe=n(f);Oe!==null&&me(M,Oe.startTime-G),le=!1}}break e}finally{m=null,y=oe,E=!1}le=void 0}}finally{le?Q():I=!1}}}var Q;if(typeof S=="function")Q=function(){S(H)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,re=W.port2;W.port1.onmessage=H,Q=function(){re.postMessage(null)}}else Q=function(){x(H,0)};function me(G,le){V=x(function(){G(e.unstable_now())},le)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(G){switch(y){case 1:case 2:case 3:var le=3;break;default:le=y}var oe=y;y=le;try{return G()}finally{y=oe}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(G,le){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var oe=y;y=G;try{return le()}finally{y=oe}},e.unstable_scheduleCallback=function(G,le,oe){var ye=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ye+oe:ye):oe=ye,G){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=oe+P,G={id:p++,callback:le,priorityLevel:G,startTime:oe,expirationTime:P,sortIndex:-1},oe>ye?(G.sortIndex=oe,t(f,G),n(d)===null&&G===n(f)&&(A?(D(V),V=-1):A=!0,me(M,oe-ye))):(G.sortIndex=P,t(d,G),T||E||(T=!0,I||(I=!0,Q()))),G},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(G){var le=y;return function(){var oe=y;y=le;try{return G.apply(this,arguments)}finally{y=oe}}}}(G0)),G0}var Mx;function R4(){return Mx||(Mx=1,z0.exports=k4()),z0.exports}/**
11
- * @license React
12
- * react-dom-client.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var Px;function I4(){if(Px)return su;Px=1;var e=R4(),t=C4(),n=D4();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function c(i){if(s(i)!==i)throw Error(r(188))}function d(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var u=i,h=o;;){var g=u.return;if(g===null)break;var v=g.alternate;if(v===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===u)return c(g),i;if(v===h)return c(g),o;v=v.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=v;else{for(var R=!1,O=g.child;O;){if(O===u){R=!0,u=g,h=v;break}if(O===h){R=!0,h=g,u=v;break}O=O.sibling}if(!R){for(O=v.child;O;){if(O===u){R=!0,u=v,h=g;break}if(O===h){R=!0,h=v,u=g;break}O=O.sibling}if(!R)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:o}function f(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=f(i),o!==null)return o;i=i.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),S=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function Q(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var W=Symbol.for("react.client.reference");function re(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===W?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case M:return"Suspense";case I:return"SuspenseList";case K:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case E:return"Portal";case S:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case L:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case V:return o=i.displayName||null,o!==null?o:re(i.type)||"Memo";case ne:o=i._payload,i=i._init;try{return re(i(o))}catch{}}return null}var me=Array.isArray,G=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ye=[],P=-1;function Oe(i){return{current:i}}function ce(i){0>P||(i.current=ye[P],ye[P]=null,P--)}function w(i,o){P++,ye[P]=i.current,i.current=o}var te=Oe(null),Ce=Oe(null),Ie=Oe(null),Me=Oe(null);function Le(i,o){switch(w(Ie,o),w(Ce,i),w(te,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?ox(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=ox(o),i=lx(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ce(te),w(te,i)}function st(){ce(te),ce(Ce),ce(Ie)}function dt(i){i.memoizedState!==null&&w(Me,i);var o=te.current,u=lx(o,i.type);o!==u&&(w(Ce,i),w(te,u))}function Ue(i){Ce.current===i&&(ce(te),ce(Ce)),Me.current===i&&(ce(Me),tu._currentValue=oe)}var en=Object.prototype.hasOwnProperty,wt=e.unstable_scheduleCallback,$e=e.unstable_cancelCallback,sr=e.unstable_shouldYield,fn=e.unstable_requestPaint,Ve=e.unstable_now,Zn=e.unstable_getCurrentPriorityLevel,an=e.unstable_ImmediatePriority,on=e.unstable_UserBlockingPriority,Ye=e.unstable_NormalPriority,Ct=e.unstable_LowPriority,Sr=e.unstable_IdlePriority,Ua=e.log,Rt=e.unstable_setDisableYieldValue,ue=null,ve=null;function je(i){if(typeof Ua=="function"&&Rt(i),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ue,i)}catch{}}var nt=Math.clz32?Math.clz32:Vn,Dt=Math.log,Nt=Math.LN2;function Vn(i){return i>>>=0,i===0?32:31-(Dt(i)/Nt|0)|0}var yn=256,Cn=4194304;function _e(i){var o=i&42;if(o!==0)return o;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Te(i,o,u){var h=i.pendingLanes;if(h===0)return 0;var g=0,v=i.suspendedLanes,R=i.pingedLanes;i=i.warmLanes;var O=h&134217727;return O!==0?(h=O&~v,h!==0?g=_e(h):(R&=O,R!==0?g=_e(R):u||(u=O&~i,u!==0&&(g=_e(u))))):(O=h&~v,O!==0?g=_e(O):R!==0?g=_e(R):u||(u=h&~i,u!==0&&(g=_e(u)))),g===0?0:o!==0&&o!==g&&(o&v)===0&&(v=g&-g,u=o&-o,v>=u||v===32&&(u&4194048)!==0)?o:g}function it(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function We(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Dn(){var i=yn;return yn<<=1,(yn&4194048)===0&&(yn=256),i}function jr(){var i=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),i}function Er(i){for(var o=[],u=0;31>u;u++)o.push(i);return o}function or(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function lr(i,o,u,h,g,v){var R=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var O=i.entanglements,U=i.expirationTimes,ee=i.hiddenUpdates;for(u=R&~u;0<u;){var pe=31-nt(u),Ee=1<<pe;O[pe]=0,U[pe]=-1;var ae=ee[pe];if(ae!==null)for(ee[pe]=null,pe=0;pe<ae.length;pe++){var se=ae[pe];se!==null&&(se.lane&=-536870913)}u&=~Ee}h!==0&&Ha(i,h,0),v!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=v&~(R&~o))}function Ha(i,o,u){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-nt(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|u&4194090}function hn(i,o){var u=i.entangledLanes|=o;for(i=i.entanglements;u;){var h=31-nt(u),g=1<<h;g&o|i[h]&o&&(i[h]|=o),u&=~g}}function Br(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Ra(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function z(){var i=le.p;return i!==0?i:(i=window.event,i===void 0?32:Dx(i.type))}function X(i,o){var u=le.p;try{return le.p=i,o()}finally{le.p=u}}var ie=Math.random().toString(36).slice(2),be="__reactFiber$"+ie,De="__reactProps$"+ie,Be="__reactContainer$"+ie,Ge="__reactEvents$"+ie,He="__reactListeners$"+ie,Ke="__reactHandles$"+ie,Ze="__reactResources$"+ie,ze="__reactMarker$"+ie;function qe(i){delete i[be],delete i[De],delete i[Ge],delete i[He],delete i[Ke]}function pt(i){var o=i[be];if(o)return o;for(var u=i.parentNode;u;){if(o=u[Be]||u[be]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(i=fx(i);i!==null;){if(u=i[be])return u;i=fx(i)}return o}i=u,u=i.parentNode}return null}function Ot(i){if(i=i[be]||i[Be]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function En(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function bn(i){var o=i[Ze];return o||(o=i[Ze]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function ft(i){i[ze]=!0}var Pt=new Set,za={};function Ur(i,o){br(i,o),br(i+"Capture",o)}function br(i,o){for(za[i]=o,i=0;i<o.length;i++)Pt.add(o[i])}var aa=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Uo={},Yi={};function pi(i){return en.call(Yi,i)?!0:en.call(Uo,i)?!1:aa.test(i)?Yi[i]=!0:(Uo[i]=!0,!1)}function mi(i,o,u){if(pi(o))if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+u)}}function gi(i,o,u){if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+u)}}function gt(i,o,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(o,u,""+h)}}var Nn,Bs;function ia(i){if(Nn===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);Nn=o&&o[1]||"",Bs=-1<u.stack.indexOf(`
19
- at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
20
- `+Nn+i+Bs}var pn=!1;function Qi(i,o){if(!i||pn)return"";pn=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(se){var ae=se}Reflect.construct(i,[],Ee)}else{try{Ee.call()}catch(se){ae=se}i.call(Ee.prototype)}}else{try{throw Error()}catch(se){ae=se}(Ee=i())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(se){if(se&&ae&&typeof se.stack=="string")return[se.stack,ae.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=h.DetermineComponentFrameRoot(),R=v[0],O=v[1];if(R&&O){var U=R.split(`
21
- `),ee=O.split(`
22
- `);for(g=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===U.length||g===ee.length)for(h=U.length-1,g=ee.length-1;1<=h&&0<=g&&U[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(U[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||U[h]!==ee[g]){var pe=`
23
- `+U[h].replace(" at new "," at ");return i.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",i.displayName)),pe}while(1<=h&&0<=g);break}}}finally{pn=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?ia(u):""}function Jd(i){switch(i.tag){case 26:case 27:case 5:return ia(i.type);case 16:return ia("Lazy");case 13:return ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return Qi(i.type,!1);case 11:return Qi(i.type.render,!1);case 1:return Qi(i.type,!0);case 31:return ia("Activity");default:return""}}function ef(i){try{var o="";do o+=Jd(i),i=i.return;while(i);return o}catch(u){return`
24
- Error generating stack: `+u.message+`
25
- `+u.stack}}function sa(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function nv(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ww(i){var o=nv(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,v=u.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return g.call(this)},set:function(R){h=""+R,v.call(this,R)}}),Object.defineProperty(i,o,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(R){h=""+R},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function tf(i){i._valueTracker||(i._valueTracker=Ww(i))}function rv(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return i&&(h=nv(i)?i.checked?"true":"false":i.value),i=h,i!==u?(o.setValue(i),!0):!1}function nf(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var Xw=/[\n"\\]/g;function oa(i){return i.replace(Xw,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function jm(i,o,u,h,g,v,R,O){i.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.type=R:i.removeAttribute("type"),o!=null?R==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+sa(o)):i.value!==""+sa(o)&&(i.value=""+sa(o)):R!=="submit"&&R!=="reset"||i.removeAttribute("value"),o!=null?Bm(i,R,sa(o)):u!=null?Bm(i,R,sa(u)):h!=null&&i.removeAttribute("value"),g==null&&v!=null&&(i.defaultChecked=!!v),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?i.name=""+sa(O):i.removeAttribute("name")}function av(i,o,u,h,g,v,R,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(i.type=v),o!=null||u!=null){if(!(v!=="submit"&&v!=="reset"||o!=null))return;u=u!=null?""+sa(u):"",o=o!=null?""+sa(o):u,O||o===i.value||(i.value=o),i.defaultValue=o}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=O?i.checked:!!h,i.defaultChecked=!!h,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(i.name=R)}function Bm(i,o,u){o==="number"&&nf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Ho(i,o,u,h){if(i=i.options,o){o={};for(var g=0;g<u.length;g++)o["$"+u[g]]=!0;for(u=0;u<i.length;u++)g=o.hasOwnProperty("$"+i[u].value),i[u].selected!==g&&(i[u].selected=g),g&&h&&(i[u].defaultSelected=!0)}else{for(u=""+sa(u),o=null,g=0;g<i.length;g++){if(i[g].value===u){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}o!==null||i[g].disabled||(o=i[g])}o!==null&&(o.selected=!0)}}function iv(i,o,u){if(o!=null&&(o=""+sa(o),o!==i.value&&(i.value=o),u==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=u!=null?""+sa(u):""}function sv(i,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(me(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=sa(o),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h)}function zo(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var Zw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ov(i,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,u):typeof u!="number"||u===0||Zw.has(o)?o==="float"?i.cssFloat=u:i[o]=(""+u).trim():i[o]=u+"px"}function lv(i,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in o)h=o[g],o.hasOwnProperty(g)&&u[g]!==h&&ov(i,g,h)}else for(var v in o)o.hasOwnProperty(v)&&ov(i,v,o[v])}function Um(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),eN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function rf(i){return eN.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Hm=null;function zm(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Go=null,Vo=null;function cv(i){var o=Ot(i);if(o&&(i=o.stateNode)){var u=i[De]||null;e:switch(i=o.stateNode,o.type){case"input":if(jm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+oa(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==i&&h.form===i.form){var g=h[De]||null;if(!g)throw Error(r(90));jm(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===i.form&&rv(h)}break e;case"textarea":iv(i,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Ho(i,!!u.multiple,o,!1)}}}var Gm=!1;function uv(i,o,u){if(Gm)return i(o,u);Gm=!0;try{var h=i(o);return h}finally{if(Gm=!1,(Go!==null||Vo!==null)&&(zf(),Go&&(o=Go,i=Vo,Vo=Go=null,cv(o),i)))for(o=0;o<i.length;o++)cv(i[o])}}function pc(i,o){var u=i.stateNode;if(u===null)return null;var h=u[De]||null;if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vm=!1;if(yi)try{var mc={};Object.defineProperty(mc,"passive",{get:function(){Vm=!0}}),window.addEventListener("test",mc,mc),window.removeEventListener("test",mc,mc)}catch{Vm=!1}var Ki=null,qm=null,af=null;function dv(){if(af)return af;var i,o=qm,u=o.length,h,g="value"in Ki?Ki.value:Ki.textContent,v=g.length;for(i=0;i<u&&o[i]===g[i];i++);var R=u-i;for(h=1;h<=R&&o[u-h]===g[v-h];h++);return af=g.slice(i,1<h?1-h:void 0)}function sf(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function of(){return!0}function fv(){return!1}function Cr(i){function o(u,h,g,v,R){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=v,this.target=R,this.currentTarget=null;for(var O in i)i.hasOwnProperty(O)&&(u=i[O],this[O]=u?u(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?of:fv,this.isPropagationStopped=fv,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=of)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=of)},persist:function(){},isPersistent:of}),o}var Us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lf=Cr(Us),gc=p({},Us,{view:0,detail:0}),tN=Cr(gc),Ym,Qm,yc,cf=p({},gc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==yc&&(yc&&i.type==="mousemove"?(Ym=i.screenX-yc.screenX,Qm=i.screenY-yc.screenY):Qm=Ym=0,yc=i),Ym)},movementY:function(i){return"movementY"in i?i.movementY:Qm}}),hv=Cr(cf),nN=p({},cf,{dataTransfer:0}),rN=Cr(nN),aN=p({},gc,{relatedTarget:0}),Km=Cr(aN),iN=p({},Us,{animationName:0,elapsedTime:0,pseudoElement:0}),sN=Cr(iN),oN=p({},Us,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),lN=Cr(oN),cN=p({},Us,{data:0}),pv=Cr(cN),uN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dN={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hN(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=fN[i])?!!o[i]:!1}function Wm(){return hN}var pN=p({},gc,{key:function(i){if(i.key){var o=uN[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=sf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?dN[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wm,charCode:function(i){return i.type==="keypress"?sf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?sf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),mN=Cr(pN),gN=p({},cf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mv=Cr(gN),yN=p({},gc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wm}),EN=Cr(yN),bN=p({},Us,{propertyName:0,elapsedTime:0,pseudoElement:0}),vN=Cr(bN),TN=p({},cf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),_N=Cr(TN),xN=p({},Us,{newState:0,oldState:0}),AN=Cr(xN),SN=[9,13,27,32],Xm=yi&&"CompositionEvent"in window,Ec=null;yi&&"documentMode"in document&&(Ec=document.documentMode);var CN=yi&&"TextEvent"in window&&!Ec,gv=yi&&(!Xm||Ec&&8<Ec&&11>=Ec),yv=" ",Ev=!1;function bv(i,o){switch(i){case"keyup":return SN.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var qo=!1;function DN(i,o){switch(i){case"compositionend":return vv(o);case"keypress":return o.which!==32?null:(Ev=!0,yv);case"textInput":return i=o.data,i===yv&&Ev?null:i;default:return null}}function kN(i,o){if(qo)return i==="compositionend"||!Xm&&bv(i,o)?(i=dv(),af=qm=Ki=null,qo=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return gv&&o.locale!=="ko"?null:o.data;default:return null}}var RN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Tv(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!RN[i.type]:o==="textarea"}function _v(i,o,u,h){Go?Vo?Vo.push(h):Vo=[h]:Go=h,o=Kf(o,"onChange"),0<o.length&&(u=new lf("onChange","change",null,u,h),i.push({event:u,listeners:o}))}var bc=null,vc=null;function IN(i){nx(i,0)}function uf(i){var o=En(i);if(rv(o))return i}function xv(i,o){if(i==="change")return o}var Av=!1;if(yi){var Zm;if(yi){var Jm="oninput"in document;if(!Jm){var Sv=document.createElement("div");Sv.setAttribute("oninput","return;"),Jm=typeof Sv.oninput=="function"}Zm=Jm}else Zm=!1;Av=Zm&&(!document.documentMode||9<document.documentMode)}function Cv(){bc&&(bc.detachEvent("onpropertychange",Dv),vc=bc=null)}function Dv(i){if(i.propertyName==="value"&&uf(vc)){var o=[];_v(o,vc,i,zm(i)),uv(IN,o)}}function wN(i,o,u){i==="focusin"?(Cv(),bc=o,vc=u,bc.attachEvent("onpropertychange",Dv)):i==="focusout"&&Cv()}function NN(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return uf(vc)}function ON(i,o){if(i==="click")return uf(o)}function LN(i,o){if(i==="input"||i==="change")return uf(o)}function MN(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Hr=typeof Object.is=="function"?Object.is:MN;function Tc(i,o){if(Hr(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var u=Object.keys(i),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!en.call(o,g)||!Hr(i[g],o[g]))return!1}return!0}function kv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Rv(i,o){var u=kv(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=o&&h>=o)return{node:u,offset:o-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=kv(u)}}function Iv(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Iv(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function wv(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=nf(i.document);o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=nf(i.document)}return o}function eg(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var PN=yi&&"documentMode"in document&&11>=document.documentMode,Yo=null,tg=null,_c=null,ng=!1;function Nv(i,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;ng||Yo==null||Yo!==nf(h)||(h=Yo,"selectionStart"in h&&eg(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),_c&&Tc(_c,h)||(_c=h,h=Kf(tg,"onSelect"),0<h.length&&(o=new lf("onSelect","select",null,o,u),i.push({event:o,listeners:h}),o.target=Yo)))}function Hs(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}var Qo={animationend:Hs("Animation","AnimationEnd"),animationiteration:Hs("Animation","AnimationIteration"),animationstart:Hs("Animation","AnimationStart"),transitionrun:Hs("Transition","TransitionRun"),transitionstart:Hs("Transition","TransitionStart"),transitioncancel:Hs("Transition","TransitionCancel"),transitionend:Hs("Transition","TransitionEnd")},rg={},Ov={};yi&&(Ov=document.createElement("div").style,"AnimationEvent"in window||(delete Qo.animationend.animation,delete Qo.animationiteration.animation,delete Qo.animationstart.animation),"TransitionEvent"in window||delete Qo.transitionend.transition);function zs(i){if(rg[i])return rg[i];if(!Qo[i])return i;var o=Qo[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in Ov)return rg[i]=o[u];return i}var Lv=zs("animationend"),Mv=zs("animationiteration"),Pv=zs("animationstart"),$N=zs("transitionrun"),FN=zs("transitionstart"),jN=zs("transitioncancel"),$v=zs("transitionend"),Fv=new Map,ag="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ag.push("scrollEnd");function Ia(i,o){Fv.set(i,o),Ur(o,[i])}var jv=new WeakMap;function la(i,o){if(typeof i=="object"&&i!==null){var u=jv.get(i);return u!==void 0?u:(o={value:i,source:o,stack:ef(o)},jv.set(i,o),o)}return{value:i,source:o,stack:ef(o)}}var ca=[],Ko=0,ig=0;function df(){for(var i=Ko,o=ig=Ko=0;o<i;){var u=ca[o];ca[o++]=null;var h=ca[o];ca[o++]=null;var g=ca[o];ca[o++]=null;var v=ca[o];if(ca[o++]=null,h!==null&&g!==null){var R=h.pending;R===null?g.next=g:(g.next=R.next,R.next=g),h.pending=g}v!==0&&Bv(u,g,v)}}function ff(i,o,u,h){ca[Ko++]=i,ca[Ko++]=o,ca[Ko++]=u,ca[Ko++]=h,ig|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function sg(i,o,u,h){return ff(i,o,u,h),hf(i)}function Wo(i,o){return ff(i,null,null,o),hf(i)}function Bv(i,o,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var g=!1,v=i.return;v!==null;)v.childLanes|=u,h=v.alternate,h!==null&&(h.childLanes|=u),v.tag===22&&(i=v.stateNode,i===null||i._visibility&1||(g=!0)),i=v,v=v.return;return i.tag===3?(v=i.stateNode,g&&o!==null&&(g=31-nt(u),i=v.hiddenUpdates,h=i[g],h===null?i[g]=[o]:h.push(o),o.lane=u|536870912),v):null}function hf(i){if(50<Yc)throw Yc=0,f0=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Xo={};function BN(i,o,u,h){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zr(i,o,u,h){return new BN(i,o,u,h)}function og(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ei(i,o){var u=i.alternate;return u===null?(u=zr(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function Uv(i,o){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,o=u.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function pf(i,o,u,h,g,v){var R=0;if(h=i,typeof i=="function")og(i)&&(R=1);else if(typeof i=="string")R=HO(i,u,te.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case K:return i=zr(31,u,o,g),i.elementType=K,i.lanes=v,i;case T:return Gs(u.children,g,v,o);case A:R=8,g|=24;break;case C:return i=zr(12,u,o,g|2),i.elementType=C,i.lanes=v,i;case M:return i=zr(13,u,o,g),i.elementType=M,i.lanes=v,i;case I:return i=zr(19,u,o,g),i.elementType=I,i.lanes=v,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case x:case S:R=10;break e;case D:R=9;break e;case L:R=11;break e;case V:R=14;break e;case ne:R=16,h=null;break e}R=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=zr(R,u,o,g),o.elementType=i,o.type=h,o.lanes=v,o}function Gs(i,o,u,h){return i=zr(7,i,h,o),i.lanes=u,i}function lg(i,o,u){return i=zr(6,i,null,o),i.lanes=u,i}function cg(i,o,u){return o=zr(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var Zo=[],Jo=0,mf=null,gf=0,ua=[],da=0,Vs=null,bi=1,vi="";function qs(i,o){Zo[Jo++]=gf,Zo[Jo++]=mf,mf=i,gf=o}function Hv(i,o,u){ua[da++]=bi,ua[da++]=vi,ua[da++]=Vs,Vs=i;var h=bi;i=vi;var g=32-nt(h)-1;h&=~(1<<g),u+=1;var v=32-nt(o)+g;if(30<v){var R=g-g%5;v=(h&(1<<R)-1).toString(32),h>>=R,g-=R,bi=1<<32-nt(o)+g|u<<g|h,vi=v+i}else bi=1<<v|u<<g|h,vi=i}function ug(i){i.return!==null&&(qs(i,1),Hv(i,1,0))}function dg(i){for(;i===mf;)mf=Zo[--Jo],Zo[Jo]=null,gf=Zo[--Jo],Zo[Jo]=null;for(;i===Vs;)Vs=ua[--da],ua[da]=null,vi=ua[--da],ua[da]=null,bi=ua[--da],ua[da]=null}var vr=null,vn=null,It=!1,Ys=null,Ga=!1,fg=Error(r(519));function Qs(i){var o=Error(r(418,""));throw Sc(la(o,i)),fg}function zv(i){var o=i.stateNode,u=i.type,h=i.memoizedProps;switch(o[be]=i,o[De]=h,u){case"dialog":vt("cancel",o),vt("close",o);break;case"iframe":case"object":case"embed":vt("load",o);break;case"video":case"audio":for(u=0;u<Kc.length;u++)vt(Kc[u],o);break;case"source":vt("error",o);break;case"img":case"image":case"link":vt("error",o),vt("load",o);break;case"details":vt("toggle",o);break;case"input":vt("invalid",o),av(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),tf(o);break;case"select":vt("invalid",o);break;case"textarea":vt("invalid",o),sv(o,h.value,h.defaultValue,h.children),tf(o)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||h.suppressHydrationWarning===!0||sx(o.textContent,u)?(h.popover!=null&&(vt("beforetoggle",o),vt("toggle",o)),h.onScroll!=null&&vt("scroll",o),h.onScrollEnd!=null&&vt("scrollend",o),h.onClick!=null&&(o.onclick=Wf),o=!0):o=!1,o||Qs(i)}function Gv(i){for(vr=i.return;vr;)switch(vr.tag){case 5:case 13:Ga=!1;return;case 27:case 3:Ga=!0;return;default:vr=vr.return}}function xc(i){if(i!==vr)return!1;if(!It)return Gv(i),It=!0,!1;var o=i.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||k0(i.type,i.memoizedProps)),u=!u),u&&vn&&Qs(i),Gv(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(u=i.data,u==="/$"){if(o===0){vn=Na(i.nextSibling);break e}o--}else u!=="$"&&u!=="$!"&&u!=="$?"||o++;i=i.nextSibling}vn=null}}else o===27?(o=vn,ds(i.type)?(i=N0,N0=null,vn=i):vn=o):vn=vr?Na(i.stateNode.nextSibling):null;return!0}function Ac(){vn=vr=null,It=!1}function Vv(){var i=Ys;return i!==null&&(Rr===null?Rr=i:Rr.push.apply(Rr,i),Ys=null),i}function Sc(i){Ys===null?Ys=[i]:Ys.push(i)}var hg=Oe(null),Ks=null,Ti=null;function Wi(i,o,u){w(hg,o._currentValue),o._currentValue=u}function _i(i){i._currentValue=hg.current,ce(hg)}function pg(i,o,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===u)break;i=i.return}}function mg(i,o,u,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var v=g.dependencies;if(v!==null){var R=g.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=g;for(var U=0;U<o.length;U++)if(O.context===o[U]){v.lanes|=u,O=v.alternate,O!==null&&(O.lanes|=u),pg(v.return,u,i),h||(R=null);break e}v=O.next}}else if(g.tag===18){if(R=g.return,R===null)throw Error(r(341));R.lanes|=u,v=R.alternate,v!==null&&(v.lanes|=u),pg(R,u,i),R=null}else R=g.child;if(R!==null)R.return=g;else for(R=g;R!==null;){if(R===i){R=null;break}if(g=R.sibling,g!==null){g.return=R.return,R=g;break}R=R.return}g=R}}function Cc(i,o,u,h){i=null;for(var g=o,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var R=g.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var O=g.type;Hr(g.pendingProps.value,R.value)||(i!==null?i.push(O):i=[O])}}else if(g===Me.current){if(R=g.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(tu):i=[tu])}g=g.return}i!==null&&mg(o,i,u,h),o.flags|=262144}function yf(i){for(i=i.firstContext;i!==null;){if(!Hr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ws(i){Ks=i,Ti=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function cr(i){return qv(Ks,i)}function Ef(i,o){return Ks===null&&Ws(i),qv(i,o)}function qv(i,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},Ti===null){if(i===null)throw Error(r(308));Ti=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else Ti=Ti.next=o;return u}var UN=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(u){return u()})}},HN=e.unstable_scheduleCallback,zN=e.unstable_NormalPriority,jn={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gg(){return{controller:new UN,data:new Map,refCount:0}}function Dc(i){i.refCount--,i.refCount===0&&HN(zN,function(){i.controller.abort()})}var kc=null,yg=0,el=0,tl=null;function GN(i,o){if(kc===null){var u=kc=[];yg=0,el=b0(),tl={status:"pending",value:void 0,then:function(h){u.push(h)}}}return yg++,o.then(Yv,Yv),o}function Yv(){if(--yg===0&&kc!==null){tl!==null&&(tl.status="fulfilled");var i=kc;kc=null,el=0,tl=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function VN(i,o){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<u.length;g++)(0,u[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var Qv=G.S;G.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&GN(i,o),Qv!==null&&Qv(i,o)};var Xs=Oe(null);function Eg(){var i=Xs.current;return i!==null?i:tn.pooledCache}function bf(i,o){o===null?w(Xs,Xs.current):w(Xs,o.pool)}function Kv(){var i=Eg();return i===null?null:{parent:jn._currentValue,pool:i}}var Rc=Error(r(460)),Wv=Error(r(474)),vf=Error(r(542)),bg={then:function(){}};function Xv(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Tf(){}function Zv(i,o,u){switch(u=i[u],u===void 0?i.push(o):u!==o&&(o.then(Tf,Tf),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,eT(i),i;default:if(typeof o.status=="string")o.then(Tf,Tf);else{if(i=tn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,eT(i),i}throw Ic=o,Rc}}var Ic=null;function Jv(){if(Ic===null)throw Error(r(459));var i=Ic;return Ic=null,i}function eT(i){if(i===Rc||i===vf)throw Error(r(483))}var Xi=!1;function vg(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tg(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Zi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ji(i,o,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Lt&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=hf(i),Bv(i,null,u),o}return ff(i,h,o,u),hf(i)}function wc(i,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,hn(i,u)}}function _g(i,o){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,v=null;if(u=u.firstBaseUpdate,u!==null){do{var R={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};v===null?g=v=R:v=v.next=R,u=u.next}while(u!==null);v===null?g=v=o:v=v.next=o}else g=v=o;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}var xg=!1;function Nc(){if(xg){var i=tl;if(i!==null)throw i}}function Oc(i,o,u,h){xg=!1;var g=i.updateQueue;Xi=!1;var v=g.firstBaseUpdate,R=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var U=O,ee=U.next;U.next=null,R===null?v=ee:R.next=ee,R=U;var pe=i.alternate;pe!==null&&(pe=pe.updateQueue,O=pe.lastBaseUpdate,O!==R&&(O===null?pe.firstBaseUpdate=ee:O.next=ee,pe.lastBaseUpdate=U))}if(v!==null){var Ee=g.baseState;R=0,pe=ee=U=null,O=v;do{var ae=O.lane&-536870913,se=ae!==O.lane;if(se?(At&ae)===ae:(h&ae)===ae){ae!==0&&ae===el&&(xg=!0),pe!==null&&(pe=pe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var at=i,Je=O;ae=o;var jt=u;switch(Je.tag){case 1:if(at=Je.payload,typeof at=="function"){Ee=at.call(jt,Ee,ae);break e}Ee=at;break e;case 3:at.flags=at.flags&-65537|128;case 0:if(at=Je.payload,ae=typeof at=="function"?at.call(jt,Ee,ae):at,ae==null)break e;Ee=p({},Ee,ae);break e;case 2:Xi=!0}}ae=O.callback,ae!==null&&(i.flags|=64,se&&(i.flags|=8192),se=g.callbacks,se===null?g.callbacks=[ae]:se.push(ae))}else se={lane:ae,tag:O.tag,payload:O.payload,callback:O.callback,next:null},pe===null?(ee=pe=se,U=Ee):pe=pe.next=se,R|=ae;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;se=O,O=se.next,se.next=null,g.lastBaseUpdate=se,g.shared.pending=null}}while(!0);pe===null&&(U=Ee),g.baseState=U,g.firstBaseUpdate=ee,g.lastBaseUpdate=pe,v===null&&(g.shared.lanes=0),os|=R,i.lanes=R,i.memoizedState=Ee}}function tT(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function nT(i,o){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)tT(u[i],o)}var nl=Oe(null),_f=Oe(0);function rT(i,o){i=Ri,w(_f,i),w(nl,o),Ri=i|o.baseLanes}function Ag(){w(_f,Ri),w(nl,nl.current)}function Sg(){Ri=_f.current,ce(nl),ce(_f)}var es=0,mt=null,$t=null,On=null,xf=!1,rl=!1,Zs=!1,Af=0,Lc=0,al=null,qN=0;function kn(){throw Error(r(321))}function Cg(i,o){if(o===null)return!1;for(var u=0;u<o.length&&u<i.length;u++)if(!Hr(i[u],o[u]))return!1;return!0}function Dg(i,o,u,h,g,v){return es=v,mt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,G.H=i===null||i.memoizedState===null?BT:UT,Zs=!1,v=u(h,g),Zs=!1,rl&&(v=iT(o,u,h,g)),aT(i),v}function aT(i){G.H=If;var o=$t!==null&&$t.next!==null;if(es=0,On=$t=mt=null,xf=!1,Lc=0,al=null,o)throw Error(r(300));i===null||qn||(i=i.dependencies,i!==null&&yf(i)&&(qn=!0))}function iT(i,o,u,h){mt=i;var g=0;do{if(rl&&(al=null),Lc=0,rl=!1,25<=g)throw Error(r(301));if(g+=1,On=$t=null,i.updateQueue!=null){var v=i.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}G.H=JN,v=o(u,h)}while(rl);return v}function YN(){var i=G.H,o=i.useState()[0];return o=typeof o.then=="function"?Mc(o):o,i=i.useState()[0],($t!==null?$t.memoizedState:null)!==i&&(mt.flags|=1024),o}function kg(){var i=Af!==0;return Af=0,i}function Rg(i,o,u){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~u}function Ig(i){if(xf){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}xf=!1}es=0,On=$t=mt=null,rl=!1,Lc=Af=0,al=null}function Dr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return On===null?mt.memoizedState=On=i:On=On.next=i,On}function Ln(){if($t===null){var i=mt.alternate;i=i!==null?i.memoizedState:null}else i=$t.next;var o=On===null?mt.memoizedState:On.next;if(o!==null)On=o,$t=i;else{if(i===null)throw mt.alternate===null?Error(r(467)):Error(r(310));$t=i,i={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},On===null?mt.memoizedState=On=i:On=On.next=i}return On}function wg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mc(i){var o=Lc;return Lc+=1,al===null&&(al=[]),i=Zv(al,i,o),o=mt,(On===null?o.memoizedState:On.next)===null&&(o=o.alternate,G.H=o===null||o.memoizedState===null?BT:UT),i}function Sf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Mc(i);if(i.$$typeof===S)return cr(i)}throw Error(r(438,String(i)))}function Ng(i){var o=null,u=mt.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=mt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=wg(),mt.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(i),h=0;h<i;h++)u[h]=k;return o.index++,u}function xi(i,o){return typeof o=="function"?o(i):o}function Cf(i){var o=Ln();return Og(o,$t,i)}function Og(i,o,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=i.baseQueue,v=h.pending;if(v!==null){if(g!==null){var R=g.next;g.next=v.next,v.next=R}o.baseQueue=g=v,h.pending=null}if(v=i.baseState,g===null)i.memoizedState=v;else{o=g.next;var O=R=null,U=null,ee=o,pe=!1;do{var Ee=ee.lane&-536870913;if(Ee!==ee.lane?(At&Ee)===Ee:(es&Ee)===Ee){var ae=ee.revertLane;if(ae===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),Ee===el&&(pe=!0);else if((es&ae)===ae){ee=ee.next,ae===el&&(pe=!0);continue}else Ee={lane:0,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(O=U=Ee,R=v):U=U.next=Ee,mt.lanes|=ae,os|=ae;Ee=ee.action,Zs&&u(v,Ee),v=ee.hasEagerState?ee.eagerState:u(v,Ee)}else ae={lane:Ee,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(O=U=ae,R=v):U=U.next=ae,mt.lanes|=Ee,os|=Ee;ee=ee.next}while(ee!==null&&ee!==o);if(U===null?R=v:U.next=O,!Hr(v,i.memoizedState)&&(qn=!0,pe&&(u=tl,u!==null)))throw u;i.memoizedState=v,i.baseState=R,i.baseQueue=U,h.lastRenderedState=v}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Lg(i){var o=Ln(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,g=u.pending,v=o.memoizedState;if(g!==null){u.pending=null;var R=g=g.next;do v=i(v,R.action),R=R.next;while(R!==g);Hr(v,o.memoizedState)||(qn=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),u.lastRenderedState=v}return[v,h]}function sT(i,o,u){var h=mt,g=Ln(),v=It;if(v){if(u===void 0)throw Error(r(407));u=u()}else u=o();var R=!Hr(($t||g).memoizedState,u);R&&(g.memoizedState=u,qn=!0),g=g.queue;var O=cT.bind(null,h,g,i);if(Pc(2048,8,O,[i]),g.getSnapshot!==o||R||On!==null&&On.memoizedState.tag&1){if(h.flags|=2048,il(9,Df(),lT.bind(null,h,g,u,o),null),tn===null)throw Error(r(349));v||(es&124)!==0||oT(h,o,u)}return u}function oT(i,o,u){i.flags|=16384,i={getSnapshot:o,value:u},o=mt.updateQueue,o===null?(o=wg(),mt.updateQueue=o,o.stores=[i]):(u=o.stores,u===null?o.stores=[i]:u.push(i))}function lT(i,o,u,h){o.value=u,o.getSnapshot=h,uT(o)&&dT(i)}function cT(i,o,u){return u(function(){uT(o)&&dT(i)})}function uT(i){var o=i.getSnapshot;i=i.value;try{var u=o();return!Hr(i,u)}catch{return!0}}function dT(i){var o=Wo(i,2);o!==null&&Qr(o,i,2)}function Mg(i){var o=Dr();if(typeof i=="function"){var u=i;if(i=u(),Zs){je(!0);try{u()}finally{je(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:i},o}function fT(i,o,u,h){return i.baseState=u,Og(i,$t,typeof h=="function"?h:xi)}function QN(i,o,u,h,g){if(Rf(i))throw Error(r(485));if(i=o.action,i!==null){var v={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){v.listeners.push(R)}};G.T!==null?u(!0):v.isTransition=!1,h(v),u=o.pending,u===null?(v.next=o.pending=v,hT(o,v)):(v.next=u.next,o.pending=u.next=v)}}function hT(i,o){var u=o.action,h=o.payload,g=i.state;if(o.isTransition){var v=G.T,R={};G.T=R;try{var O=u(g,h),U=G.S;U!==null&&U(R,O),pT(i,o,O)}catch(ee){Pg(i,o,ee)}finally{G.T=v}}else try{v=u(g,h),pT(i,o,v)}catch(ee){Pg(i,o,ee)}}function pT(i,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){mT(i,o,h)},function(h){return Pg(i,o,h)}):mT(i,o,u)}function mT(i,o,u){o.status="fulfilled",o.value=u,gT(o),i.state=u,o=i.pending,o!==null&&(u=o.next,u===o?i.pending=null:(u=u.next,o.next=u,hT(i,u)))}function Pg(i,o,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,gT(o),o=o.next;while(o!==h)}i.action=null}function gT(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function yT(i,o){return o}function ET(i,o){if(It){var u=tn.formState;if(u!==null){e:{var h=mt;if(It){if(vn){t:{for(var g=vn,v=Ga;g.nodeType!==8;){if(!v){g=null;break t}if(g=Na(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){vn=Na(g.nextSibling),h=g.data==="F!";break e}}Qs(h)}h=!1}h&&(o=u[0])}}return u=Dr(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yT,lastRenderedState:o},u.queue=h,u=$T.bind(null,mt,h),h.dispatch=u,h=Mg(!1),v=Ug.bind(null,mt,!1,h.queue),h=Dr(),g={state:o,dispatch:null,action:i,pending:null},h.queue=g,u=QN.bind(null,mt,g,v,u),g.dispatch=u,h.memoizedState=i,[o,u,!1]}function bT(i){var o=Ln();return vT(o,$t,i)}function vT(i,o,u){if(o=Og(i,o,yT)[0],i=Cf(xi)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=Mc(o)}catch(R){throw R===Rc?vf:R}else h=o;o=Ln();var g=o.queue,v=g.dispatch;return u!==o.memoizedState&&(mt.flags|=2048,il(9,Df(),KN.bind(null,g,u),null)),[h,v,i]}function KN(i,o){i.action=o}function TT(i){var o=Ln(),u=$t;if(u!==null)return vT(o,u,i);Ln(),o=o.memoizedState,u=Ln();var h=u.queue.dispatch;return u.memoizedState=i,[o,h,!1]}function il(i,o,u,h){return i={tag:i,create:u,deps:h,inst:o,next:null},o=mt.updateQueue,o===null&&(o=wg(),mt.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,o.lastEffect=i),i}function Df(){return{destroy:void 0,resource:void 0}}function _T(){return Ln().memoizedState}function kf(i,o,u,h){var g=Dr();h=h===void 0?null:h,mt.flags|=i,g.memoizedState=il(1|o,Df(),u,h)}function Pc(i,o,u,h){var g=Ln();h=h===void 0?null:h;var v=g.memoizedState.inst;$t!==null&&h!==null&&Cg(h,$t.memoizedState.deps)?g.memoizedState=il(o,v,u,h):(mt.flags|=i,g.memoizedState=il(1|o,v,u,h))}function xT(i,o){kf(8390656,8,i,o)}function AT(i,o){Pc(2048,8,i,o)}function ST(i,o){return Pc(4,2,i,o)}function CT(i,o){return Pc(4,4,i,o)}function DT(i,o){if(typeof o=="function"){i=i();var u=o(i);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function kT(i,o,u){u=u!=null?u.concat([i]):null,Pc(4,4,DT.bind(null,o,i),u)}function $g(){}function RT(i,o){var u=Ln();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&Cg(o,h[1])?h[0]:(u.memoizedState=[i,o],i)}function IT(i,o){var u=Ln();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&Cg(o,h[1]))return h[0];if(h=i(),Zs){je(!0);try{i()}finally{je(!1)}}return u.memoizedState=[h,o],h}function Fg(i,o,u){return u===void 0||(es&1073741824)!==0?i.memoizedState=o:(i.memoizedState=u,i=O_(),mt.lanes|=i,os|=i,u)}function wT(i,o,u,h){return Hr(u,o)?u:nl.current!==null?(i=Fg(i,u,h),Hr(i,o)||(qn=!0),i):(es&42)===0?(qn=!0,i.memoizedState=u):(i=O_(),mt.lanes|=i,os|=i,o)}function NT(i,o,u,h,g){var v=le.p;le.p=v!==0&&8>v?v:8;var R=G.T,O={};G.T=O,Ug(i,!1,o,u);try{var U=g(),ee=G.S;if(ee!==null&&ee(O,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var pe=VN(U,h);$c(i,o,pe,Yr(i))}else $c(i,o,h,Yr(i))}catch(Ee){$c(i,o,{then:function(){},status:"rejected",reason:Ee},Yr())}finally{le.p=v,G.T=R}}function WN(){}function jg(i,o,u,h){if(i.tag!==5)throw Error(r(476));var g=OT(i).queue;NT(i,g,o,oe,u===null?WN:function(){return LT(i),u(h)})}function OT(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:oe},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:u},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function LT(i){var o=OT(i).next.queue;$c(i,o,{},Yr())}function Bg(){return cr(tu)}function MT(){return Ln().memoizedState}function PT(){return Ln().memoizedState}function XN(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var u=Yr();i=Zi(u);var h=Ji(o,i,u);h!==null&&(Qr(h,o,u),wc(h,o,u)),o={cache:gg()},i.payload=o;return}o=o.return}}function ZN(i,o,u){var h=Yr();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Rf(i)?FT(o,u):(u=sg(i,o,u,h),u!==null&&(Qr(u,i,h),jT(u,o,h)))}function $T(i,o,u){var h=Yr();$c(i,o,u,h)}function $c(i,o,u,h){var g={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Rf(i))FT(o,g);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var R=o.lastRenderedState,O=v(R,u);if(g.hasEagerState=!0,g.eagerState=O,Hr(O,R))return ff(i,o,g,0),tn===null&&df(),!1}catch{}finally{}if(u=sg(i,o,g,h),u!==null)return Qr(u,i,h),jT(u,o,h),!0}return!1}function Ug(i,o,u,h){if(h={lane:2,revertLane:b0(),action:h,hasEagerState:!1,eagerState:null,next:null},Rf(i)){if(o)throw Error(r(479))}else o=sg(i,u,h,2),o!==null&&Qr(o,i,2)}function Rf(i){var o=i.alternate;return i===mt||o!==null&&o===mt}function FT(i,o){rl=xf=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function jT(i,o,u){if((u&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,hn(i,u)}}var If={readContext:cr,use:Sf,useCallback:kn,useContext:kn,useEffect:kn,useImperativeHandle:kn,useLayoutEffect:kn,useInsertionEffect:kn,useMemo:kn,useReducer:kn,useRef:kn,useState:kn,useDebugValue:kn,useDeferredValue:kn,useTransition:kn,useSyncExternalStore:kn,useId:kn,useHostTransitionStatus:kn,useFormState:kn,useActionState:kn,useOptimistic:kn,useMemoCache:kn,useCacheRefresh:kn},BT={readContext:cr,use:Sf,useCallback:function(i,o){return Dr().memoizedState=[i,o===void 0?null:o],i},useContext:cr,useEffect:xT,useImperativeHandle:function(i,o,u){u=u!=null?u.concat([i]):null,kf(4194308,4,DT.bind(null,o,i),u)},useLayoutEffect:function(i,o){return kf(4194308,4,i,o)},useInsertionEffect:function(i,o){kf(4,2,i,o)},useMemo:function(i,o){var u=Dr();o=o===void 0?null:o;var h=i();if(Zs){je(!0);try{i()}finally{je(!1)}}return u.memoizedState=[h,o],h},useReducer:function(i,o,u){var h=Dr();if(u!==void 0){var g=u(o);if(Zs){je(!0);try{u(o)}finally{je(!1)}}}else g=o;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=ZN.bind(null,mt,i),[h.memoizedState,i]},useRef:function(i){var o=Dr();return i={current:i},o.memoizedState=i},useState:function(i){i=Mg(i);var o=i.queue,u=$T.bind(null,mt,o);return o.dispatch=u,[i.memoizedState,u]},useDebugValue:$g,useDeferredValue:function(i,o){var u=Dr();return Fg(u,i,o)},useTransition:function(){var i=Mg(!1);return i=NT.bind(null,mt,i.queue,!0,!1),Dr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,u){var h=mt,g=Dr();if(It){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),tn===null)throw Error(r(349));(At&124)!==0||oT(h,o,u)}g.memoizedState=u;var v={value:u,getSnapshot:o};return g.queue=v,xT(cT.bind(null,h,v,i),[i]),h.flags|=2048,il(9,Df(),lT.bind(null,h,v,u,o),null),u},useId:function(){var i=Dr(),o=tn.identifierPrefix;if(It){var u=vi,h=bi;u=(h&~(1<<32-nt(h)-1)).toString(32)+u,o="«"+o+"R"+u,u=Af++,0<u&&(o+="H"+u.toString(32)),o+="»"}else u=qN++,o="«"+o+"r"+u.toString(32)+"»";return i.memoizedState=o},useHostTransitionStatus:Bg,useFormState:ET,useActionState:ET,useOptimistic:function(i){var o=Dr();o.memoizedState=o.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=Ug.bind(null,mt,!0,u),u.dispatch=o,[i,o]},useMemoCache:Ng,useCacheRefresh:function(){return Dr().memoizedState=XN.bind(null,mt)}},UT={readContext:cr,use:Sf,useCallback:RT,useContext:cr,useEffect:AT,useImperativeHandle:kT,useInsertionEffect:ST,useLayoutEffect:CT,useMemo:IT,useReducer:Cf,useRef:_T,useState:function(){return Cf(xi)},useDebugValue:$g,useDeferredValue:function(i,o){var u=Ln();return wT(u,$t.memoizedState,i,o)},useTransition:function(){var i=Cf(xi)[0],o=Ln().memoizedState;return[typeof i=="boolean"?i:Mc(i),o]},useSyncExternalStore:sT,useId:MT,useHostTransitionStatus:Bg,useFormState:bT,useActionState:bT,useOptimistic:function(i,o){var u=Ln();return fT(u,$t,i,o)},useMemoCache:Ng,useCacheRefresh:PT},JN={readContext:cr,use:Sf,useCallback:RT,useContext:cr,useEffect:AT,useImperativeHandle:kT,useInsertionEffect:ST,useLayoutEffect:CT,useMemo:IT,useReducer:Lg,useRef:_T,useState:function(){return Lg(xi)},useDebugValue:$g,useDeferredValue:function(i,o){var u=Ln();return $t===null?Fg(u,i,o):wT(u,$t.memoizedState,i,o)},useTransition:function(){var i=Lg(xi)[0],o=Ln().memoizedState;return[typeof i=="boolean"?i:Mc(i),o]},useSyncExternalStore:sT,useId:MT,useHostTransitionStatus:Bg,useFormState:TT,useActionState:TT,useOptimistic:function(i,o){var u=Ln();return $t!==null?fT(u,$t,i,o):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Ng,useCacheRefresh:PT},sl=null,Fc=0;function wf(i){var o=Fc;return Fc+=1,sl===null&&(sl=[]),Zv(sl,i,o)}function jc(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Nf(i,o){throw o.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function HT(i){var o=i._init;return o(i._payload)}function zT(i){function o(Y,q){if(i){var Z=Y.deletions;Z===null?(Y.deletions=[q],Y.flags|=16):Z.push(q)}}function u(Y,q){if(!i)return null;for(;q!==null;)o(Y,q),q=q.sibling;return null}function h(Y){for(var q=new Map;Y!==null;)Y.key!==null?q.set(Y.key,Y):q.set(Y.index,Y),Y=Y.sibling;return q}function g(Y,q){return Y=Ei(Y,q),Y.index=0,Y.sibling=null,Y}function v(Y,q,Z){return Y.index=Z,i?(Z=Y.alternate,Z!==null?(Z=Z.index,Z<q?(Y.flags|=67108866,q):Z):(Y.flags|=67108866,q)):(Y.flags|=1048576,q)}function R(Y){return i&&Y.alternate===null&&(Y.flags|=67108866),Y}function O(Y,q,Z,ge){return q===null||q.tag!==6?(q=lg(Z,Y.mode,ge),q.return=Y,q):(q=g(q,Z),q.return=Y,q)}function U(Y,q,Z,ge){var Fe=Z.type;return Fe===T?pe(Y,q,Z.props.children,ge,Z.key):q!==null&&(q.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===ne&&HT(Fe)===q.type)?(q=g(q,Z.props),jc(q,Z),q.return=Y,q):(q=pf(Z.type,Z.key,Z.props,null,Y.mode,ge),jc(q,Z),q.return=Y,q)}function ee(Y,q,Z,ge){return q===null||q.tag!==4||q.stateNode.containerInfo!==Z.containerInfo||q.stateNode.implementation!==Z.implementation?(q=cg(Z,Y.mode,ge),q.return=Y,q):(q=g(q,Z.children||[]),q.return=Y,q)}function pe(Y,q,Z,ge,Fe){return q===null||q.tag!==7?(q=Gs(Z,Y.mode,ge,Fe),q.return=Y,q):(q=g(q,Z),q.return=Y,q)}function Ee(Y,q,Z){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=lg(""+q,Y.mode,Z),q.return=Y,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case y:return Z=pf(q.type,q.key,q.props,null,Y.mode,Z),jc(Z,q),Z.return=Y,Z;case E:return q=cg(q,Y.mode,Z),q.return=Y,q;case ne:var ge=q._init;return q=ge(q._payload),Ee(Y,q,Z)}if(me(q)||Q(q))return q=Gs(q,Y.mode,Z,null),q.return=Y,q;if(typeof q.then=="function")return Ee(Y,wf(q),Z);if(q.$$typeof===S)return Ee(Y,Ef(Y,q),Z);Nf(Y,q)}return null}function ae(Y,q,Z,ge){var Fe=q!==null?q.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Fe!==null?null:O(Y,q,""+Z,ge);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case y:return Z.key===Fe?U(Y,q,Z,ge):null;case E:return Z.key===Fe?ee(Y,q,Z,ge):null;case ne:return Fe=Z._init,Z=Fe(Z._payload),ae(Y,q,Z,ge)}if(me(Z)||Q(Z))return Fe!==null?null:pe(Y,q,Z,ge,null);if(typeof Z.then=="function")return ae(Y,q,wf(Z),ge);if(Z.$$typeof===S)return ae(Y,q,Ef(Y,Z),ge);Nf(Y,Z)}return null}function se(Y,q,Z,ge,Fe){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return Y=Y.get(Z)||null,O(q,Y,""+ge,Fe);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case y:return Y=Y.get(ge.key===null?Z:ge.key)||null,U(q,Y,ge,Fe);case E:return Y=Y.get(ge.key===null?Z:ge.key)||null,ee(q,Y,ge,Fe);case ne:var yt=ge._init;return ge=yt(ge._payload),se(Y,q,Z,ge,Fe)}if(me(ge)||Q(ge))return Y=Y.get(Z)||null,pe(q,Y,ge,Fe,null);if(typeof ge.then=="function")return se(Y,q,Z,wf(ge),Fe);if(ge.$$typeof===S)return se(Y,q,Z,Ef(q,ge),Fe);Nf(q,ge)}return null}function at(Y,q,Z,ge){for(var Fe=null,yt=null,Qe=q,tt=q=0,Qn=null;Qe!==null&&tt<Z.length;tt++){Qe.index>tt?(Qn=Qe,Qe=null):Qn=Qe.sibling;var kt=ae(Y,Qe,Z[tt],ge);if(kt===null){Qe===null&&(Qe=Qn);break}i&&Qe&&kt.alternate===null&&o(Y,Qe),q=v(kt,q,tt),yt===null?Fe=kt:yt.sibling=kt,yt=kt,Qe=Qn}if(tt===Z.length)return u(Y,Qe),It&&qs(Y,tt),Fe;if(Qe===null){for(;tt<Z.length;tt++)Qe=Ee(Y,Z[tt],ge),Qe!==null&&(q=v(Qe,q,tt),yt===null?Fe=Qe:yt.sibling=Qe,yt=Qe);return It&&qs(Y,tt),Fe}for(Qe=h(Qe);tt<Z.length;tt++)Qn=se(Qe,Y,tt,Z[tt],ge),Qn!==null&&(i&&Qn.alternate!==null&&Qe.delete(Qn.key===null?tt:Qn.key),q=v(Qn,q,tt),yt===null?Fe=Qn:yt.sibling=Qn,yt=Qn);return i&&Qe.forEach(function(gs){return o(Y,gs)}),It&&qs(Y,tt),Fe}function Je(Y,q,Z,ge){if(Z==null)throw Error(r(151));for(var Fe=null,yt=null,Qe=q,tt=q=0,Qn=null,kt=Z.next();Qe!==null&&!kt.done;tt++,kt=Z.next()){Qe.index>tt?(Qn=Qe,Qe=null):Qn=Qe.sibling;var gs=ae(Y,Qe,kt.value,ge);if(gs===null){Qe===null&&(Qe=Qn);break}i&&Qe&&gs.alternate===null&&o(Y,Qe),q=v(gs,q,tt),yt===null?Fe=gs:yt.sibling=gs,yt=gs,Qe=Qn}if(kt.done)return u(Y,Qe),It&&qs(Y,tt),Fe;if(Qe===null){for(;!kt.done;tt++,kt=Z.next())kt=Ee(Y,kt.value,ge),kt!==null&&(q=v(kt,q,tt),yt===null?Fe=kt:yt.sibling=kt,yt=kt);return It&&qs(Y,tt),Fe}for(Qe=h(Qe);!kt.done;tt++,kt=Z.next())kt=se(Qe,Y,tt,kt.value,ge),kt!==null&&(i&&kt.alternate!==null&&Qe.delete(kt.key===null?tt:kt.key),q=v(kt,q,tt),yt===null?Fe=kt:yt.sibling=kt,yt=kt);return i&&Qe.forEach(function(e4){return o(Y,e4)}),It&&qs(Y,tt),Fe}function jt(Y,q,Z,ge){if(typeof Z=="object"&&Z!==null&&Z.type===T&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case y:e:{for(var Fe=Z.key;q!==null;){if(q.key===Fe){if(Fe=Z.type,Fe===T){if(q.tag===7){u(Y,q.sibling),ge=g(q,Z.props.children),ge.return=Y,Y=ge;break e}}else if(q.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===ne&&HT(Fe)===q.type){u(Y,q.sibling),ge=g(q,Z.props),jc(ge,Z),ge.return=Y,Y=ge;break e}u(Y,q);break}else o(Y,q);q=q.sibling}Z.type===T?(ge=Gs(Z.props.children,Y.mode,ge,Z.key),ge.return=Y,Y=ge):(ge=pf(Z.type,Z.key,Z.props,null,Y.mode,ge),jc(ge,Z),ge.return=Y,Y=ge)}return R(Y);case E:e:{for(Fe=Z.key;q!==null;){if(q.key===Fe)if(q.tag===4&&q.stateNode.containerInfo===Z.containerInfo&&q.stateNode.implementation===Z.implementation){u(Y,q.sibling),ge=g(q,Z.children||[]),ge.return=Y,Y=ge;break e}else{u(Y,q);break}else o(Y,q);q=q.sibling}ge=cg(Z,Y.mode,ge),ge.return=Y,Y=ge}return R(Y);case ne:return Fe=Z._init,Z=Fe(Z._payload),jt(Y,q,Z,ge)}if(me(Z))return at(Y,q,Z,ge);if(Q(Z)){if(Fe=Q(Z),typeof Fe!="function")throw Error(r(150));return Z=Fe.call(Z),Je(Y,q,Z,ge)}if(typeof Z.then=="function")return jt(Y,q,wf(Z),ge);if(Z.$$typeof===S)return jt(Y,q,Ef(Y,Z),ge);Nf(Y,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,q!==null&&q.tag===6?(u(Y,q.sibling),ge=g(q,Z),ge.return=Y,Y=ge):(u(Y,q),ge=lg(Z,Y.mode,ge),ge.return=Y,Y=ge),R(Y)):u(Y,q)}return function(Y,q,Z,ge){try{Fc=0;var Fe=jt(Y,q,Z,ge);return sl=null,Fe}catch(Qe){if(Qe===Rc||Qe===vf)throw Qe;var yt=zr(29,Qe,null,Y.mode);return yt.lanes=ge,yt.return=Y,yt}finally{}}}var ol=zT(!0),GT=zT(!1),fa=Oe(null),Va=null;function ts(i){var o=i.alternate;w(Bn,Bn.current&1),w(fa,i),Va===null&&(o===null||nl.current!==null||o.memoizedState!==null)&&(Va=i)}function VT(i){if(i.tag===22){if(w(Bn,Bn.current),w(fa,i),Va===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(Va=i)}}else ns()}function ns(){w(Bn,Bn.current),w(fa,fa.current)}function Ai(i){ce(fa),Va===i&&(Va=null),ce(Bn)}var Bn=Oe(0);function Of(i){for(var o=i;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||w0(u)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function Hg(i,o,u,h){o=i.memoizedState,u=u(h,o),u=u==null?o:p({},o,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var zg={enqueueSetState:function(i,o,u){i=i._reactInternals;var h=Yr(),g=Zi(h);g.payload=o,u!=null&&(g.callback=u),o=Ji(i,g,h),o!==null&&(Qr(o,i,h),wc(o,i,h))},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var h=Yr(),g=Zi(h);g.tag=1,g.payload=o,u!=null&&(g.callback=u),o=Ji(i,g,h),o!==null&&(Qr(o,i,h),wc(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=Yr(),h=Zi(u);h.tag=2,o!=null&&(h.callback=o),o=Ji(i,h,u),o!==null&&(Qr(o,i,u),wc(o,i,u))}};function qT(i,o,u,h,g,v,R){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,v,R):o.prototype&&o.prototype.isPureReactComponent?!Tc(u,h)||!Tc(g,v):!0}function YT(i,o,u,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==i&&zg.enqueueReplaceState(o,o.state,null)}function Js(i,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(i=i.defaultProps){u===o&&(u=p({},u));for(var g in i)u[g]===void 0&&(u[g]=i[g])}return u}var Lf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function QT(i){Lf(i)}function KT(i){console.error(i)}function WT(i){Lf(i)}function Mf(i,o){try{var u=i.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function XT(i,o,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Gg(i,o,u){return u=Zi(u),u.tag=3,u.payload={element:null},u.callback=function(){Mf(i,o)},u}function ZT(i){return i=Zi(i),i.tag=3,i}function JT(i,o,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var v=h.value;i.payload=function(){return g(v)},i.callback=function(){XT(o,u,h)}}var R=u.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(i.callback=function(){XT(o,u,h),typeof g!="function"&&(ls===null?ls=new Set([this]):ls.add(this));var O=h.stack;this.componentDidCatch(h.value,{componentStack:O!==null?O:""})})}function eO(i,o,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&Cc(o,u,g,!0),u=fa.current,u!==null){switch(u.tag){case 13:return Va===null?p0():u.alternate===null&&Tn===0&&(Tn=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===bg?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),g0(i,h,g)),!1;case 22:return u.flags|=65536,h===bg?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([h]):u.add(h)),g0(i,h,g)),!1}throw Error(r(435,u.tag))}return g0(i,h,g),p0(),!1}if(It)return o=fa.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==fg&&(i=Error(r(422),{cause:h}),Sc(la(i,u)))):(h!==fg&&(o=Error(r(423),{cause:h}),Sc(la(o,u))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=la(h,u),g=Gg(i.stateNode,h,g),_g(i,g),Tn!==4&&(Tn=2)),!1;var v=Error(r(520),{cause:h});if(v=la(v,u),qc===null?qc=[v]:qc.push(v),Tn!==4&&(Tn=2),o===null)return!0;h=la(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,i=g&-g,u.lanes|=i,i=Gg(u.stateNode,h,i),_g(u,i),!1;case 1:if(o=u.type,v=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ls===null||!ls.has(v))))return u.flags|=65536,g&=-g,u.lanes|=g,g=ZT(g),JT(g,i,u,h),_g(u,g),!1}u=u.return}while(u!==null);return!1}var e_=Error(r(461)),qn=!1;function Jn(i,o,u,h){o.child=i===null?GT(o,null,u,h):ol(o,i.child,u,h)}function t_(i,o,u,h,g){u=u.render;var v=o.ref;if("ref"in h){var R={};for(var O in h)O!=="ref"&&(R[O]=h[O])}else R=h;return Ws(o),h=Dg(i,o,u,R,v,g),O=kg(),i!==null&&!qn?(Rg(i,o,g),Si(i,o,g)):(It&&O&&ug(o),o.flags|=1,Jn(i,o,h,g),o.child)}function n_(i,o,u,h,g){if(i===null){var v=u.type;return typeof v=="function"&&!og(v)&&v.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=v,r_(i,o,v,h,g)):(i=pf(u.type,null,h,o,o.mode,g),i.ref=o.ref,i.return=o,o.child=i)}if(v=i.child,!Zg(i,g)){var R=v.memoizedProps;if(u=u.compare,u=u!==null?u:Tc,u(R,h)&&i.ref===o.ref)return Si(i,o,g)}return o.flags|=1,i=Ei(v,h),i.ref=o.ref,i.return=o,o.child=i}function r_(i,o,u,h,g){if(i!==null){var v=i.memoizedProps;if(Tc(v,h)&&i.ref===o.ref)if(qn=!1,o.pendingProps=h=v,Zg(i,g))(i.flags&131072)!==0&&(qn=!0);else return o.lanes=i.lanes,Si(i,o,g)}return Vg(i,o,u,h,g)}function a_(i,o,u){var h=o.pendingProps,g=h.children,v=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((o.flags&128)!==0){if(h=v!==null?v.baseLanes|u:u,i!==null){for(g=o.child=i.child,v=0;g!==null;)v=v|g.lanes|g.childLanes,g=g.sibling;o.childLanes=v&~h}else o.childLanes=0,o.child=null;return i_(i,o,h,u)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&bf(o,v!==null?v.cachePool:null),v!==null?rT(o,v):Ag(),VT(o);else return o.lanes=o.childLanes=536870912,i_(i,o,v!==null?v.baseLanes|u:u,u)}else v!==null?(bf(o,v.cachePool),rT(o,v),ns(),o.memoizedState=null):(i!==null&&bf(o,null),Ag(),ns());return Jn(i,o,g,u),o.child}function i_(i,o,u,h){var g=Eg();return g=g===null?null:{parent:jn._currentValue,pool:g},o.memoizedState={baseLanes:u,cachePool:g},i!==null&&bf(o,null),Ag(),VT(o),i!==null&&Cc(i,o,h,!0),null}function Pf(i,o){var u=o.ref;if(u===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(o.flags|=4194816)}}function Vg(i,o,u,h,g){return Ws(o),u=Dg(i,o,u,h,void 0,g),h=kg(),i!==null&&!qn?(Rg(i,o,g),Si(i,o,g)):(It&&h&&ug(o),o.flags|=1,Jn(i,o,u,g),o.child)}function s_(i,o,u,h,g,v){return Ws(o),o.updateQueue=null,u=iT(o,h,u,g),aT(i),h=kg(),i!==null&&!qn?(Rg(i,o,v),Si(i,o,v)):(It&&h&&ug(o),o.flags|=1,Jn(i,o,u,v),o.child)}function o_(i,o,u,h,g){if(Ws(o),o.stateNode===null){var v=Xo,R=u.contextType;typeof R=="object"&&R!==null&&(v=cr(R)),v=new u(h,v),o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=zg,o.stateNode=v,v._reactInternals=o,v=o.stateNode,v.props=h,v.state=o.memoizedState,v.refs={},vg(o),R=u.contextType,v.context=typeof R=="object"&&R!==null?cr(R):Xo,v.state=o.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&(Hg(o,u,R,h),v.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(R=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),R!==v.state&&zg.enqueueReplaceState(v,v.state,null),Oc(o,h,v,g),Nc(),v.state=o.memoizedState),typeof v.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){v=o.stateNode;var O=o.memoizedProps,U=Js(u,O);v.props=U;var ee=v.context,pe=u.contextType;R=Xo,typeof pe=="object"&&pe!==null&&(R=cr(pe));var Ee=u.getDerivedStateFromProps;pe=typeof Ee=="function"||typeof v.getSnapshotBeforeUpdate=="function",O=o.pendingProps!==O,pe||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(O||ee!==R)&&YT(o,v,h,R),Xi=!1;var ae=o.memoizedState;v.state=ae,Oc(o,h,v,g),Nc(),ee=o.memoizedState,O||ae!==ee||Xi?(typeof Ee=="function"&&(Hg(o,u,Ee,h),ee=o.memoizedState),(U=Xi||qT(o,u,U,h,ae,ee,R))?(pe||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(o.flags|=4194308)):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=ee),v.props=h,v.state=ee,v.context=R,h=U):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{v=o.stateNode,Tg(i,o),R=o.memoizedProps,pe=Js(u,R),v.props=pe,Ee=o.pendingProps,ae=v.context,ee=u.contextType,U=Xo,typeof ee=="object"&&ee!==null&&(U=cr(ee)),O=u.getDerivedStateFromProps,(ee=typeof O=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R!==Ee||ae!==U)&&YT(o,v,h,U),Xi=!1,ae=o.memoizedState,v.state=ae,Oc(o,h,v,g),Nc();var se=o.memoizedState;R!==Ee||ae!==se||Xi||i!==null&&i.dependencies!==null&&yf(i.dependencies)?(typeof O=="function"&&(Hg(o,u,O,h),se=o.memoizedState),(pe=Xi||qT(o,u,pe,h,ae,se,U)||i!==null&&i.dependencies!==null&&yf(i.dependencies))?(ee||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(h,se,U),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(h,se,U)),typeof v.componentDidUpdate=="function"&&(o.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof v.componentDidUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=se),v.props=h,v.state=se,v.context=U,h=pe):(typeof v.componentDidUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(o.flags|=1024),h=!1)}return v=h,Pf(i,o),h=(o.flags&128)!==0,v||h?(v=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:v.render(),o.flags|=1,i!==null&&h?(o.child=ol(o,i.child,null,g),o.child=ol(o,null,u,g)):Jn(i,o,u,g),o.memoizedState=v.state,i=o.child):i=Si(i,o,g),i}function l_(i,o,u,h){return Ac(),o.flags|=256,Jn(i,o,u,h),o.child}var qg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yg(i){return{baseLanes:i,cachePool:Kv()}}function Qg(i,o,u){return i=i!==null?i.childLanes&~u:0,o&&(i|=ha),i}function c_(i,o,u){var h=o.pendingProps,g=!1,v=(o.flags&128)!==0,R;if((R=v)||(R=i!==null&&i.memoizedState===null?!1:(Bn.current&2)!==0),R&&(g=!0,o.flags&=-129),R=(o.flags&32)!==0,o.flags&=-33,i===null){if(It){if(g?ts(o):ns(),It){var O=vn,U;if(U=O){e:{for(U=O,O=Ga;U.nodeType!==8;){if(!O){O=null;break e}if(U=Na(U.nextSibling),U===null){O=null;break e}}O=U}O!==null?(o.memoizedState={dehydrated:O,treeContext:Vs!==null?{id:bi,overflow:vi}:null,retryLane:536870912,hydrationErrors:null},U=zr(18,null,null,0),U.stateNode=O,U.return=o,o.child=U,vr=o,vn=null,U=!0):U=!1}U||Qs(o)}if(O=o.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return w0(O)?o.lanes=32:o.lanes=536870912,null;Ai(o)}return O=h.children,h=h.fallback,g?(ns(),g=o.mode,O=$f({mode:"hidden",children:O},g),h=Gs(h,g,u,null),O.return=o,h.return=o,O.sibling=h,o.child=O,g=o.child,g.memoizedState=Yg(u),g.childLanes=Qg(i,R,u),o.memoizedState=qg,h):(ts(o),Kg(o,O))}if(U=i.memoizedState,U!==null&&(O=U.dehydrated,O!==null)){if(v)o.flags&256?(ts(o),o.flags&=-257,o=Wg(i,o,u)):o.memoizedState!==null?(ns(),o.child=i.child,o.flags|=128,o=null):(ns(),g=h.fallback,O=o.mode,h=$f({mode:"visible",children:h.children},O),g=Gs(g,O,u,null),g.flags|=2,h.return=o,g.return=o,h.sibling=g,o.child=h,ol(o,i.child,null,u),h=o.child,h.memoizedState=Yg(u),h.childLanes=Qg(i,R,u),o.memoizedState=qg,o=g);else if(ts(o),w0(O)){if(R=O.nextSibling&&O.nextSibling.dataset,R)var ee=R.dgst;R=ee,h=Error(r(419)),h.stack="",h.digest=R,Sc({value:h,source:null,stack:null}),o=Wg(i,o,u)}else if(qn||Cc(i,o,u,!1),R=(u&i.childLanes)!==0,qn||R){if(R=tn,R!==null&&(h=u&-u,h=(h&42)!==0?1:Br(h),h=(h&(R.suspendedLanes|u))!==0?0:h,h!==0&&h!==U.retryLane))throw U.retryLane=h,Wo(i,h),Qr(R,i,h),e_;O.data==="$?"||p0(),o=Wg(i,o,u)}else O.data==="$?"?(o.flags|=192,o.child=i.child,o=null):(i=U.treeContext,vn=Na(O.nextSibling),vr=o,It=!0,Ys=null,Ga=!1,i!==null&&(ua[da++]=bi,ua[da++]=vi,ua[da++]=Vs,bi=i.id,vi=i.overflow,Vs=o),o=Kg(o,h.children),o.flags|=4096);return o}return g?(ns(),g=h.fallback,O=o.mode,U=i.child,ee=U.sibling,h=Ei(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,ee!==null?g=Ei(ee,g):(g=Gs(g,O,u,null),g.flags|=2),g.return=o,h.return=o,h.sibling=g,o.child=h,h=g,g=o.child,O=i.child.memoizedState,O===null?O=Yg(u):(U=O.cachePool,U!==null?(ee=jn._currentValue,U=U.parent!==ee?{parent:ee,pool:ee}:U):U=Kv(),O={baseLanes:O.baseLanes|u,cachePool:U}),g.memoizedState=O,g.childLanes=Qg(i,R,u),o.memoizedState=qg,h):(ts(o),u=i.child,i=u.sibling,u=Ei(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,i!==null&&(R=o.deletions,R===null?(o.deletions=[i],o.flags|=16):R.push(i)),o.child=u,o.memoizedState=null,u)}function Kg(i,o){return o=$f({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function $f(i,o){return i=zr(22,i,null,o),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Wg(i,o,u){return ol(o,i.child,null,u),i=Kg(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function u_(i,o,u){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),pg(i.return,o,u)}function Xg(i,o,u,h,g){var v=i.memoizedState;v===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=h,v.tail=u,v.tailMode=g)}function d_(i,o,u){var h=o.pendingProps,g=h.revealOrder,v=h.tail;if(Jn(i,o,h.children,u),h=Bn.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&u_(i,u,o);else if(i.tag===19)u_(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(w(Bn,h),g){case"forwards":for(u=o.child,g=null;u!==null;)i=u.alternate,i!==null&&Of(i)===null&&(g=u),u=u.sibling;u=g,u===null?(g=o.child,o.child=null):(g=u.sibling,u.sibling=null),Xg(o,!1,g,u,v);break;case"backwards":for(u=null,g=o.child,o.child=null;g!==null;){if(i=g.alternate,i!==null&&Of(i)===null){o.child=g;break}i=g.sibling,g.sibling=u,u=g,g=i}Xg(o,!0,u,null,v);break;case"together":Xg(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Si(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),os|=o.lanes,(u&o.childLanes)===0)if(i!==null){if(Cc(i,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,u=Ei(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=Ei(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function Zg(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&yf(i)))}function tO(i,o,u){switch(o.tag){case 3:Le(o,o.stateNode.containerInfo),Wi(o,jn,i.memoizedState.cache),Ac();break;case 27:case 5:dt(o);break;case 4:Le(o,o.stateNode.containerInfo);break;case 10:Wi(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(ts(o),o.flags|=128,null):(u&o.child.childLanes)!==0?c_(i,o,u):(ts(o),i=Si(i,o,u),i!==null?i.sibling:null);ts(o);break;case 19:var g=(i.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(Cc(i,o,u,!1),h=(u&o.childLanes)!==0),g){if(h)return d_(i,o,u);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),w(Bn,Bn.current),h)break;return null;case 22:case 23:return o.lanes=0,a_(i,o,u);case 24:Wi(o,jn,i.memoizedState.cache)}return Si(i,o,u)}function f_(i,o,u){if(i!==null)if(i.memoizedProps!==o.pendingProps)qn=!0;else{if(!Zg(i,u)&&(o.flags&128)===0)return qn=!1,tO(i,o,u);qn=(i.flags&131072)!==0}else qn=!1,It&&(o.flags&1048576)!==0&&Hv(o,gf,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,g=h._init;if(h=g(h._payload),o.type=h,typeof h=="function")og(h)?(i=Js(h,i),o.tag=1,o=o_(null,o,h,i,u)):(o.tag=0,o=Vg(null,o,h,i,u));else{if(h!=null){if(g=h.$$typeof,g===L){o.tag=11,o=t_(null,o,h,i,u);break e}else if(g===V){o.tag=14,o=n_(null,o,h,i,u);break e}}throw o=re(h)||h,Error(r(306,o,""))}}return o;case 0:return Vg(i,o,o.type,o.pendingProps,u);case 1:return h=o.type,g=Js(h,o.pendingProps),o_(i,o,h,g,u);case 3:e:{if(Le(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var v=o.memoizedState;g=v.element,Tg(i,o),Oc(o,h,null,u);var R=o.memoizedState;if(h=R.cache,Wi(o,jn,h),h!==v.cache&&mg(o,[jn],u,!0),Nc(),h=R.element,v.isDehydrated)if(v={element:h,isDehydrated:!1,cache:R.cache},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){o=l_(i,o,h,u);break e}else if(h!==g){g=la(Error(r(424)),o),Sc(g),o=l_(i,o,h,u);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(vn=Na(i.firstChild),vr=o,It=!0,Ys=null,Ga=!0,u=GT(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ac(),h===g){o=Si(i,o,u);break e}Jn(i,o,h,u)}o=o.child}return o;case 26:return Pf(i,o),i===null?(u=gx(o.type,null,o.pendingProps,null))?o.memoizedState=u:It||(u=o.type,i=o.pendingProps,h=Xf(Ie.current).createElement(u),h[be]=o,h[De]=i,tr(h,u,i),ft(h),o.stateNode=h):o.memoizedState=gx(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return dt(o),i===null&&It&&(h=o.stateNode=hx(o.type,o.pendingProps,Ie.current),vr=o,Ga=!0,g=vn,ds(o.type)?(N0=g,vn=Na(h.firstChild)):vn=g),Jn(i,o,o.pendingProps.children,u),Pf(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&It&&((g=h=vn)&&(h=RO(h,o.type,o.pendingProps,Ga),h!==null?(o.stateNode=h,vr=o,vn=Na(h.firstChild),Ga=!1,g=!0):g=!1),g||Qs(o)),dt(o),g=o.type,v=o.pendingProps,R=i!==null?i.memoizedProps:null,h=v.children,k0(g,v)?h=null:R!==null&&k0(g,R)&&(o.flags|=32),o.memoizedState!==null&&(g=Dg(i,o,YN,null,null,u),tu._currentValue=g),Pf(i,o),Jn(i,o,h,u),o.child;case 6:return i===null&&It&&((i=u=vn)&&(u=IO(u,o.pendingProps,Ga),u!==null?(o.stateNode=u,vr=o,vn=null,i=!0):i=!1),i||Qs(o)),null;case 13:return c_(i,o,u);case 4:return Le(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=ol(o,null,h,u):Jn(i,o,h,u),o.child;case 11:return t_(i,o,o.type,o.pendingProps,u);case 7:return Jn(i,o,o.pendingProps,u),o.child;case 8:return Jn(i,o,o.pendingProps.children,u),o.child;case 12:return Jn(i,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Wi(o,o.type,h.value),Jn(i,o,h.children,u),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,Ws(o),g=cr(g),h=h(g),o.flags|=1,Jn(i,o,h,u),o.child;case 14:return n_(i,o,o.type,o.pendingProps,u);case 15:return r_(i,o,o.type,o.pendingProps,u);case 19:return d_(i,o,u);case 31:return h=o.pendingProps,u=o.mode,h={mode:h.mode,children:h.children},i===null?(u=$f(h,u),u.ref=o.ref,o.child=u,u.return=o,o=u):(u=Ei(i.child,h),u.ref=o.ref,o.child=u,u.return=o,o=u),o;case 22:return a_(i,o,u);case 24:return Ws(o),h=cr(jn),i===null?(g=Eg(),g===null&&(g=tn,v=gg(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=u),g=v),o.memoizedState={parent:h,cache:g},vg(o),Wi(o,jn,g)):((i.lanes&u)!==0&&(Tg(i,o),Oc(o,null,null,u),Nc()),g=i.memoizedState,v=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),Wi(o,jn,h)):(h=v.cache,Wi(o,jn,h),h!==g.cache&&mg(o,[jn],u,!0))),Jn(i,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Ci(i){i.flags|=4}function h_(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Tx(o)){if(o=fa.current,o!==null&&((At&4194048)===At?Va!==null:(At&62914560)!==At&&(At&536870912)===0||o!==Va))throw Ic=bg,Wv;i.flags|=8192}}function Ff(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?jr():536870912,i.lanes|=o,dl|=o)}function Bc(i,o){if(!It)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function mn(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(o)for(var g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=u,o}function nO(i,o,u){var h=o.pendingProps;switch(dg(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mn(o),null;case 1:return mn(o),null;case 3:return u=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),_i(jn),st(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(xc(o)?Ci(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Vv())),mn(o),null;case 26:return u=o.memoizedState,i===null?(Ci(o),u!==null?(mn(o),h_(o,u)):(mn(o),o.flags&=-16777217)):u?u!==i.memoizedState?(Ci(o),mn(o),h_(o,u)):(mn(o),o.flags&=-16777217):(i.memoizedProps!==h&&Ci(o),mn(o),o.flags&=-16777217),null;case 27:Ue(o),u=Ie.current;var g=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&Ci(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mn(o),null}i=te.current,xc(o)?zv(o):(i=hx(g,h,u),o.stateNode=i,Ci(o))}return mn(o),null;case 5:if(Ue(o),u=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&Ci(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mn(o),null}if(i=te.current,xc(o))zv(o);else{switch(g=Xf(Ie.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(u,{is:h.is}):g.createElement(u)}}i[be]=o,i[De]=h;e:for(g=o.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===o)break e;for(;g.sibling===null;){if(g.return===null||g.return===o)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}o.stateNode=i;e:switch(tr(i,u,h),u){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ci(o)}}return mn(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&Ci(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=Ie.current,xc(o)){if(i=o.stateNode,u=o.memoizedProps,h=null,g=vr,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[be]=o,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||sx(i.nodeValue,u)),i||Qs(o)}else i=Xf(i).createTextNode(h),i[be]=o,o.stateNode=i}return mn(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=xc(o),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[be]=o}else Ac(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mn(o),g=!1}else g=Vv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(Ai(o),o):(Ai(o),null)}if(Ai(o),(o.flags&128)!==0)return o.lanes=u,o;if(u=h!==null,i=i!==null&&i.memoizedState!==null,u){h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var v=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==g&&(h.flags|=2048)}return u!==i&&u&&(o.child.flags|=8192),Ff(o,o.updateQueue),mn(o),null;case 4:return st(),i===null&&x0(o.stateNode.containerInfo),mn(o),null;case 10:return _i(o.type),mn(o),null;case 19:if(ce(Bn),g=o.memoizedState,g===null)return mn(o),null;if(h=(o.flags&128)!==0,v=g.rendering,v===null)if(h)Bc(g,!1);else{if(Tn!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(v=Of(i),v!==null){for(o.flags|=128,Bc(g,!1),i=v.updateQueue,o.updateQueue=i,Ff(o,i),o.subtreeFlags=0,i=u,u=o.child;u!==null;)Uv(u,i),u=u.sibling;return w(Bn,Bn.current&1|2),o.child}i=i.sibling}g.tail!==null&&Ve()>Uf&&(o.flags|=128,h=!0,Bc(g,!1),o.lanes=4194304)}else{if(!h)if(i=Of(v),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,Ff(o,i),Bc(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!It)return mn(o),null}else 2*Ve()-g.renderingStartTime>Uf&&u!==536870912&&(o.flags|=128,h=!0,Bc(g,!1),o.lanes=4194304);g.isBackwards?(v.sibling=o.child,o.child=v):(i=g.last,i!==null?i.sibling=v:o.child=v,g.last=v)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=Ve(),o.sibling=null,i=Bn.current,w(Bn,h?i&1|2:i&1),o):(mn(o),null);case 22:case 23:return Ai(o),Sg(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(mn(o),o.subtreeFlags&6&&(o.flags|=8192)):mn(o),u=o.updateQueue,u!==null&&Ff(o,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),i!==null&&ce(Xs),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),_i(jn),mn(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function rO(i,o){switch(dg(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return _i(jn),st(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Ue(o),null;case 13:if(Ai(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Ac()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return ce(Bn),null;case 4:return st(),null;case 10:return _i(o.type),null;case 22:case 23:return Ai(o),Sg(),i!==null&&ce(Xs),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return _i(jn),null;case 25:return null;default:return null}}function p_(i,o){switch(dg(o),o.tag){case 3:_i(jn),st();break;case 26:case 27:case 5:Ue(o);break;case 4:st();break;case 13:Ai(o);break;case 19:ce(Bn);break;case 10:_i(o.type);break;case 22:case 23:Ai(o),Sg(),i!==null&&ce(Xs);break;case 24:_i(jn)}}function Uc(i,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&i)===i){h=void 0;var v=u.create,R=u.inst;h=v(),R.destroy=h}u=u.next}while(u!==g)}}catch(O){Gt(o,o.return,O)}}function rs(i,o,u){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var v=g.next;h=v;do{if((h.tag&i)===i){var R=h.inst,O=R.destroy;if(O!==void 0){R.destroy=void 0,g=o;var U=u,ee=O;try{ee()}catch(pe){Gt(g,U,pe)}}}h=h.next}while(h!==v)}}catch(pe){Gt(o,o.return,pe)}}function m_(i){var o=i.updateQueue;if(o!==null){var u=i.stateNode;try{nT(o,u)}catch(h){Gt(i,i.return,h)}}}function g_(i,o,u){u.props=Js(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){Gt(i,o,h)}}function Hc(i,o){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(g){Gt(i,o,g)}}function qa(i,o){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){Gt(i,o,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){Gt(i,o,g)}else u.current=null}function y_(i){var o=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){Gt(i,i.return,g)}}function Jg(i,o,u){try{var h=i.stateNode;AO(h,i.type,u,o),h[De]=o}catch(g){Gt(i,i.return,g)}}function E_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ds(i.type)||i.tag===4}function e0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||E_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ds(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function t0(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(i),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=Wf));else if(h!==4&&(h===27&&ds(i.type)&&(u=i.stateNode,o=null),i=i.child,i!==null))for(t0(i,o,u),i=i.sibling;i!==null;)t0(i,o,u),i=i.sibling}function jf(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(h!==4&&(h===27&&ds(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(jf(i,o,u),i=i.sibling;i!==null;)jf(i,o,u),i=i.sibling}function b_(i){var o=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,g=o.attributes;g.length;)o.removeAttributeNode(g[0]);tr(o,h,u),o[be]=i,o[De]=u}catch(v){Gt(i,i.return,v)}}var Di=!1,Rn=!1,n0=!1,v_=typeof WeakSet=="function"?WeakSet:Set,Yn=null;function aO(i,o){if(i=i.containerInfo,C0=rh,i=wv(i),eg(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,v=h.focusNode;h=h.focusOffset;try{u.nodeType,v.nodeType}catch{u=null;break e}var R=0,O=-1,U=-1,ee=0,pe=0,Ee=i,ae=null;t:for(;;){for(var se;Ee!==u||g!==0&&Ee.nodeType!==3||(O=R+g),Ee!==v||h!==0&&Ee.nodeType!==3||(U=R+h),Ee.nodeType===3&&(R+=Ee.nodeValue.length),(se=Ee.firstChild)!==null;)ae=Ee,Ee=se;for(;;){if(Ee===i)break t;if(ae===u&&++ee===g&&(O=R),ae===v&&++pe===h&&(U=R),(se=Ee.nextSibling)!==null)break;Ee=ae,ae=Ee.parentNode}Ee=se}u=O===-1||U===-1?null:{start:O,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(D0={focusedElem:i,selectionRange:u},rh=!1,Yn=o;Yn!==null;)if(o=Yn,i=o.child,(o.subtreeFlags&1024)!==0&&i!==null)i.return=o,Yn=i;else for(;Yn!==null;){switch(o=Yn,v=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&v!==null){i=void 0,u=o,g=v.memoizedProps,v=v.memoizedState,h=u.stateNode;try{var at=Js(u.type,g,u.elementType===u.type);i=h.getSnapshotBeforeUpdate(at,v),h.__reactInternalSnapshotBeforeUpdate=i}catch(Je){Gt(u,u.return,Je)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,u=i.nodeType,u===9)I0(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":I0(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,Yn=i;break}Yn=o.return}}function T_(i,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:as(i,u),h&4&&Uc(5,u);break;case 1:if(as(i,u),h&4)if(i=u.stateNode,o===null)try{i.componentDidMount()}catch(R){Gt(u,u.return,R)}else{var g=Js(u.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(g,o,i.__reactInternalSnapshotBeforeUpdate)}catch(R){Gt(u,u.return,R)}}h&64&&m_(u),h&512&&Hc(u,u.return);break;case 3:if(as(i,u),h&64&&(i=u.updateQueue,i!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{nT(i,o)}catch(R){Gt(u,u.return,R)}}break;case 27:o===null&&h&4&&b_(u);case 26:case 5:as(i,u),o===null&&h&4&&y_(u),h&512&&Hc(u,u.return);break;case 12:as(i,u);break;case 13:as(i,u),h&4&&A_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=hO.bind(null,u),wO(i,u))));break;case 22:if(h=u.memoizedState!==null||Di,!h){o=o!==null&&o.memoizedState!==null||Rn,g=Di;var v=Rn;Di=h,(Rn=o)&&!v?is(i,u,(u.subtreeFlags&8772)!==0):as(i,u),Di=g,Rn=v}break;case 30:break;default:as(i,u)}}function __(i){var o=i.alternate;o!==null&&(i.alternate=null,__(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&qe(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var ln=null,kr=!1;function ki(i,o,u){for(u=u.child;u!==null;)x_(i,o,u),u=u.sibling}function x_(i,o,u){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ue,u)}catch{}switch(u.tag){case 26:Rn||qa(u,o),ki(i,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Rn||qa(u,o);var h=ln,g=kr;ds(u.type)&&(ln=u.stateNode,kr=!1),ki(i,o,u),Xc(u.stateNode),ln=h,kr=g;break;case 5:Rn||qa(u,o);case 6:if(h=ln,g=kr,ln=null,ki(i,o,u),ln=h,kr=g,ln!==null)if(kr)try{(ln.nodeType===9?ln.body:ln.nodeName==="HTML"?ln.ownerDocument.body:ln).removeChild(u.stateNode)}catch(v){Gt(u,o,v)}else try{ln.removeChild(u.stateNode)}catch(v){Gt(u,o,v)}break;case 18:ln!==null&&(kr?(i=ln,dx(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),iu(i)):dx(ln,u.stateNode));break;case 4:h=ln,g=kr,ln=u.stateNode.containerInfo,kr=!0,ki(i,o,u),ln=h,kr=g;break;case 0:case 11:case 14:case 15:Rn||rs(2,u,o),Rn||rs(4,u,o),ki(i,o,u);break;case 1:Rn||(qa(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&g_(u,o,h)),ki(i,o,u);break;case 21:ki(i,o,u);break;case 22:Rn=(h=Rn)||u.memoizedState!==null,ki(i,o,u),Rn=h;break;default:ki(i,o,u)}}function A_(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{iu(i)}catch(u){Gt(o,o.return,u)}}function iO(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new v_),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new v_),o;default:throw Error(r(435,i.tag))}}function r0(i,o){var u=iO(i);o.forEach(function(h){var g=pO.bind(null,i,h);u.has(h)||(u.add(h),h.then(g,g))})}function Gr(i,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],v=i,R=o,O=R;e:for(;O!==null;){switch(O.tag){case 27:if(ds(O.type)){ln=O.stateNode,kr=!1;break e}break;case 5:ln=O.stateNode,kr=!1;break e;case 3:case 4:ln=O.stateNode.containerInfo,kr=!0;break e}O=O.return}if(ln===null)throw Error(r(160));x_(v,R,g),ln=null,kr=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)S_(o,i),o=o.sibling}var wa=null;function S_(i,o){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Gr(o,i),Vr(i),h&4&&(rs(3,i,i.return),Uc(3,i),rs(5,i,i.return));break;case 1:Gr(o,i),Vr(i),h&512&&(Rn||u===null||qa(u,u.return)),h&64&&Di&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=wa;if(Gr(o,i),Vr(i),h&512&&(Rn||u===null||qa(u,u.return)),h&4){var v=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":v=g.getElementsByTagName("title")[0],(!v||v[ze]||v[be]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(h),g.head.insertBefore(v,g.querySelector("head > title"))),tr(v,h,u),v[be]=i,ft(v),h=v;break e;case"link":var R=bx("link","href",g).get(h+(u.href||""));if(R){for(var O=0;O<R.length;O++)if(v=R[O],v.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&v.getAttribute("rel")===(u.rel==null?null:u.rel)&&v.getAttribute("title")===(u.title==null?null:u.title)&&v.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){R.splice(O,1);break t}}v=g.createElement(h),tr(v,h,u),g.head.appendChild(v);break;case"meta":if(R=bx("meta","content",g).get(h+(u.content||""))){for(O=0;O<R.length;O++)if(v=R[O],v.getAttribute("content")===(u.content==null?null:""+u.content)&&v.getAttribute("name")===(u.name==null?null:u.name)&&v.getAttribute("property")===(u.property==null?null:u.property)&&v.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&v.getAttribute("charset")===(u.charSet==null?null:u.charSet)){R.splice(O,1);break t}}v=g.createElement(h),tr(v,h,u),g.head.appendChild(v);break;default:throw Error(r(468,h))}v[be]=i,ft(v),h=v}i.stateNode=h}else vx(g,i.type,i.stateNode);else i.stateNode=Ex(g,h,i.memoizedProps);else v!==h?(v===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):v.count--,h===null?vx(g,i.type,i.stateNode):Ex(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Jg(i,i.memoizedProps,u.memoizedProps)}break;case 27:Gr(o,i),Vr(i),h&512&&(Rn||u===null||qa(u,u.return)),u!==null&&h&4&&Jg(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Gr(o,i),Vr(i),h&512&&(Rn||u===null||qa(u,u.return)),i.flags&32){g=i.stateNode;try{zo(g,"")}catch(se){Gt(i,i.return,se)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,Jg(i,g,u!==null?u.memoizedProps:g)),h&1024&&(n0=!0);break;case 6:if(Gr(o,i),Vr(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(se){Gt(i,i.return,se)}}break;case 3:if(eh=null,g=wa,wa=Zf(o.containerInfo),Gr(o,i),wa=g,Vr(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{iu(o.containerInfo)}catch(se){Gt(i,i.return,se)}n0&&(n0=!1,C_(i));break;case 4:h=wa,wa=Zf(i.stateNode.containerInfo),Gr(o,i),Vr(i),wa=h;break;case 12:Gr(o,i),Vr(i);break;case 13:Gr(o,i),Vr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(c0=Ve()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,r0(i,h)));break;case 22:g=i.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,ee=Di,pe=Rn;if(Di=ee||g,Rn=pe||U,Gr(o,i),Rn=pe,Di=ee,Vr(i),h&8192)e:for(o=i.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(u===null||U||Di||Rn||eo(i)),u=null,o=i;;){if(o.tag===5||o.tag===26){if(u===null){U=u=o;try{if(v=U.stateNode,g)R=v.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{O=U.stateNode;var Ee=U.memoizedProps.style,ae=Ee!=null&&Ee.hasOwnProperty("display")?Ee.display:null;O.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(se){Gt(U,U.return,se)}}}else if(o.tag===6){if(u===null){U=o;try{U.stateNode.nodeValue=g?"":U.memoizedProps}catch(se){Gt(U,U.return,se)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,r0(i,u))));break;case 19:Gr(o,i),Vr(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,r0(i,h)));break;case 30:break;case 21:break;default:Gr(o,i),Vr(i)}}function Vr(i){var o=i.flags;if(o&2){try{for(var u,h=i.return;h!==null;){if(E_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,v=e0(i);jf(i,v,g);break;case 5:var R=u.stateNode;u.flags&32&&(zo(R,""),u.flags&=-33);var O=e0(i);jf(i,O,R);break;case 3:case 4:var U=u.stateNode.containerInfo,ee=e0(i);t0(i,ee,U);break;default:throw Error(r(161))}}catch(pe){Gt(i,i.return,pe)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function C_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;C_(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function as(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)T_(i,o.alternate,o),o=o.sibling}function eo(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:rs(4,o,o.return),eo(o);break;case 1:qa(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&g_(o,o.return,u),eo(o);break;case 27:Xc(o.stateNode);case 26:case 5:qa(o,o.return),eo(o);break;case 22:o.memoizedState===null&&eo(o);break;case 30:eo(o);break;default:eo(o)}i=i.sibling}}function is(i,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=i,v=o,R=v.flags;switch(v.tag){case 0:case 11:case 15:is(g,v,u),Uc(4,v);break;case 1:if(is(g,v,u),h=v,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){Gt(h,h.return,ee)}if(h=v,g=h.updateQueue,g!==null){var O=h.stateNode;try{var U=g.shared.hiddenCallbacks;if(U!==null)for(g.shared.hiddenCallbacks=null,g=0;g<U.length;g++)tT(U[g],O)}catch(ee){Gt(h,h.return,ee)}}u&&R&64&&m_(v),Hc(v,v.return);break;case 27:b_(v);case 26:case 5:is(g,v,u),u&&h===null&&R&4&&y_(v),Hc(v,v.return);break;case 12:is(g,v,u);break;case 13:is(g,v,u),u&&R&4&&A_(g,v);break;case 22:v.memoizedState===null&&is(g,v,u),Hc(v,v.return);break;case 30:break;default:is(g,v,u)}o=o.sibling}}function a0(i,o){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Dc(u))}function i0(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Dc(i))}function Ya(i,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)D_(i,o,u,h),o=o.sibling}function D_(i,o,u,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Ya(i,o,u,h),g&2048&&Uc(9,o);break;case 1:Ya(i,o,u,h);break;case 3:Ya(i,o,u,h),g&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Dc(i)));break;case 12:if(g&2048){Ya(i,o,u,h),i=o.stateNode;try{var v=o.memoizedProps,R=v.id,O=v.onPostCommit;typeof O=="function"&&O(R,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(U){Gt(o,o.return,U)}}else Ya(i,o,u,h);break;case 13:Ya(i,o,u,h);break;case 23:break;case 22:v=o.stateNode,R=o.alternate,o.memoizedState!==null?v._visibility&2?Ya(i,o,u,h):zc(i,o):v._visibility&2?Ya(i,o,u,h):(v._visibility|=2,ll(i,o,u,h,(o.subtreeFlags&10256)!==0)),g&2048&&a0(R,o);break;case 24:Ya(i,o,u,h),g&2048&&i0(o.alternate,o);break;default:Ya(i,o,u,h)}}function ll(i,o,u,h,g){for(g=g&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var v=i,R=o,O=u,U=h,ee=R.flags;switch(R.tag){case 0:case 11:case 15:ll(v,R,O,U,g),Uc(8,R);break;case 23:break;case 22:var pe=R.stateNode;R.memoizedState!==null?pe._visibility&2?ll(v,R,O,U,g):zc(v,R):(pe._visibility|=2,ll(v,R,O,U,g)),g&&ee&2048&&a0(R.alternate,R);break;case 24:ll(v,R,O,U,g),g&&ee&2048&&i0(R.alternate,R);break;default:ll(v,R,O,U,g)}o=o.sibling}}function zc(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=i,h=o,g=h.flags;switch(h.tag){case 22:zc(u,h),g&2048&&a0(h.alternate,h);break;case 24:zc(u,h),g&2048&&i0(h.alternate,h);break;default:zc(u,h)}o=o.sibling}}var Gc=8192;function cl(i){if(i.subtreeFlags&Gc)for(i=i.child;i!==null;)k_(i),i=i.sibling}function k_(i){switch(i.tag){case 26:cl(i),i.flags&Gc&&i.memoizedState!==null&&GO(wa,i.memoizedState,i.memoizedProps);break;case 5:cl(i);break;case 3:case 4:var o=wa;wa=Zf(i.stateNode.containerInfo),cl(i),wa=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Gc,Gc=16777216,cl(i),Gc=o):cl(i));break;default:cl(i)}}function R_(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Vc(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Yn=h,w_(h,i)}R_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)I_(i),i=i.sibling}function I_(i){switch(i.tag){case 0:case 11:case 15:Vc(i),i.flags&2048&&rs(9,i,i.return);break;case 3:Vc(i);break;case 12:Vc(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,Bf(i)):Vc(i);break;default:Vc(i)}}function Bf(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Yn=h,w_(h,i)}R_(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:rs(8,o,o.return),Bf(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,Bf(o));break;default:Bf(o)}i=i.sibling}}function w_(i,o){for(;Yn!==null;){var u=Yn;switch(u.tag){case 0:case 11:case 15:rs(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Dc(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Yn=h;else e:for(u=i;Yn!==null;){h=Yn;var g=h.sibling,v=h.return;if(__(h),h===u){Yn=null;break e}if(g!==null){g.return=v,Yn=g;break e}Yn=v}}}var sO={getCacheForType:function(i){var o=cr(jn),u=o.data.get(i);return u===void 0&&(u=i(),o.data.set(i,u)),u}},oO=typeof WeakMap=="function"?WeakMap:Map,Lt=0,tn=null,bt=null,At=0,Mt=0,qr=null,ss=!1,ul=!1,s0=!1,Ri=0,Tn=0,os=0,to=0,o0=0,ha=0,dl=0,qc=null,Rr=null,l0=!1,c0=0,Uf=1/0,Hf=null,ls=null,er=0,cs=null,fl=null,hl=0,u0=0,d0=null,N_=null,Yc=0,f0=null;function Yr(){if((Lt&2)!==0&&At!==0)return At&-At;if(G.T!==null){var i=el;return i!==0?i:b0()}return z()}function O_(){ha===0&&(ha=(At&536870912)===0||It?Dn():536870912);var i=fa.current;return i!==null&&(i.flags|=32),ha}function Qr(i,o,u){(i===tn&&(Mt===2||Mt===9)||i.cancelPendingCommit!==null)&&(pl(i,0),us(i,At,ha,!1)),or(i,u),((Lt&2)===0||i!==tn)&&(i===tn&&((Lt&2)===0&&(to|=u),Tn===4&&us(i,At,ha,!1)),Qa(i))}function L_(i,o,u){if((Lt&6)!==0)throw Error(r(327));var h=!u&&(o&124)===0&&(o&i.expiredLanes)===0||it(i,o),g=h?uO(i,o):m0(i,o,!0),v=h;do{if(g===0){ul&&!h&&us(i,o,0,!1);break}else{if(u=i.current.alternate,v&&!lO(u)){g=m0(i,o,!1),v=!1;continue}if(g===2){if(v=o,i.errorRecoveryDisabledLanes&v)var R=0;else R=i.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){o=R;e:{var O=i;g=qc;var U=O.current.memoizedState.isDehydrated;if(U&&(pl(O,R).flags|=256),R=m0(O,R,!1),R!==2){if(s0&&!U){O.errorRecoveryDisabledLanes|=v,to|=v,g=4;break e}v=Rr,Rr=g,v!==null&&(Rr===null?Rr=v:Rr.push.apply(Rr,v))}g=R}if(v=!1,g!==2)continue}}if(g===1){pl(i,0),us(i,o,0,!0);break}e:{switch(h=i,v=g,v){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:us(h,o,ha,!ss);break e;case 2:Rr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(g=c0+300-Ve(),10<g)){if(us(h,o,ha,!ss),Te(h,0,!0)!==0)break e;h.timeoutHandle=cx(M_.bind(null,h,u,Rr,Hf,l0,o,ha,to,dl,ss,v,2,-0,0),g);break e}M_(h,u,Rr,Hf,l0,o,ha,to,dl,ss,v,0,-0,0)}}break}while(!0);Qa(i)}function M_(i,o,u,h,g,v,R,O,U,ee,pe,Ee,ae,se){if(i.timeoutHandle=-1,Ee=o.subtreeFlags,(Ee&8192||(Ee&16785408)===16785408)&&(eu={stylesheets:null,count:0,unsuspend:zO},k_(o),Ee=VO(),Ee!==null)){i.cancelPendingCommit=Ee(H_.bind(null,i,o,v,u,h,g,R,O,U,pe,1,ae,se)),us(i,v,R,!ee);return}H_(i,o,v,u,h,g,R,O,U)}function lO(i){for(var o=i;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],v=g.getSnapshot;g=g.value;try{if(!Hr(v(),g))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function us(i,o,u,h){o&=~o0,o&=~to,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var g=o;0<g;){var v=31-nt(g),R=1<<v;h[v]=-1,g&=~R}u!==0&&Ha(i,u,o)}function zf(){return(Lt&6)===0?(Qc(0),!1):!0}function h0(){if(bt!==null){if(Mt===0)var i=bt.return;else i=bt,Ti=Ks=null,Ig(i),sl=null,Fc=0,i=bt;for(;i!==null;)p_(i.alternate,i),i=i.return;bt=null}}function pl(i,o){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,CO(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),h0(),tn=i,bt=u=Ei(i.current,null),At=o,Mt=0,qr=null,ss=!1,ul=it(i,o),s0=!1,dl=ha=o0=to=os=Tn=0,Rr=qc=null,l0=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var g=31-nt(h),v=1<<g;o|=i[g],h&=~v}return Ri=o,df(),u}function P_(i,o){mt=null,G.H=If,o===Rc||o===vf?(o=Jv(),Mt=3):o===Wv?(o=Jv(),Mt=4):Mt=o===e_?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,qr=o,bt===null&&(Tn=1,Mf(i,la(o,i.current)))}function $_(){var i=G.H;return G.H=If,i===null?If:i}function F_(){var i=G.A;return G.A=sO,i}function p0(){Tn=4,ss||(At&4194048)!==At&&fa.current!==null||(ul=!0),(os&134217727)===0&&(to&134217727)===0||tn===null||us(tn,At,ha,!1)}function m0(i,o,u){var h=Lt;Lt|=2;var g=$_(),v=F_();(tn!==i||At!==o)&&(Hf=null,pl(i,o)),o=!1;var R=Tn;e:do try{if(Mt!==0&&bt!==null){var O=bt,U=qr;switch(Mt){case 8:h0(),R=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(o=!0);var ee=Mt;if(Mt=0,qr=null,ml(i,O,U,ee),u&&ul){R=0;break e}break;default:ee=Mt,Mt=0,qr=null,ml(i,O,U,ee)}}cO(),R=Tn;break}catch(pe){P_(i,pe)}while(!0);return o&&i.shellSuspendCounter++,Ti=Ks=null,Lt=h,G.H=g,G.A=v,bt===null&&(tn=null,At=0,df()),R}function cO(){for(;bt!==null;)j_(bt)}function uO(i,o){var u=Lt;Lt|=2;var h=$_(),g=F_();tn!==i||At!==o?(Hf=null,Uf=Ve()+500,pl(i,o)):ul=it(i,o);e:do try{if(Mt!==0&&bt!==null){o=bt;var v=qr;t:switch(Mt){case 1:Mt=0,qr=null,ml(i,o,v,1);break;case 2:case 9:if(Xv(v)){Mt=0,qr=null,B_(o);break}o=function(){Mt!==2&&Mt!==9||tn!==i||(Mt=7),Qa(i)},v.then(o,o);break e;case 3:Mt=7;break e;case 4:Mt=5;break e;case 7:Xv(v)?(Mt=0,qr=null,B_(o)):(Mt=0,qr=null,ml(i,o,v,7));break;case 5:var R=null;switch(bt.tag){case 26:R=bt.memoizedState;case 5:case 27:var O=bt;if(!R||Tx(R)){Mt=0,qr=null;var U=O.sibling;if(U!==null)bt=U;else{var ee=O.return;ee!==null?(bt=ee,Gf(ee)):bt=null}break t}}Mt=0,qr=null,ml(i,o,v,5);break;case 6:Mt=0,qr=null,ml(i,o,v,6);break;case 8:h0(),Tn=6;break e;default:throw Error(r(462))}}dO();break}catch(pe){P_(i,pe)}while(!0);return Ti=Ks=null,G.H=h,G.A=g,Lt=u,bt!==null?0:(tn=null,At=0,df(),Tn)}function dO(){for(;bt!==null&&!sr();)j_(bt)}function j_(i){var o=f_(i.alternate,i,Ri);i.memoizedProps=i.pendingProps,o===null?Gf(i):bt=o}function B_(i){var o=i,u=o.alternate;switch(o.tag){case 15:case 0:o=s_(u,o,o.pendingProps,o.type,void 0,At);break;case 11:o=s_(u,o,o.pendingProps,o.type.render,o.ref,At);break;case 5:Ig(o);default:p_(u,o),o=bt=Uv(o,Ri),o=f_(u,o,Ri)}i.memoizedProps=i.pendingProps,o===null?Gf(i):bt=o}function ml(i,o,u,h){Ti=Ks=null,Ig(o),sl=null,Fc=0;var g=o.return;try{if(eO(i,g,o,u,At)){Tn=1,Mf(i,la(u,i.current)),bt=null;return}}catch(v){if(g!==null)throw bt=g,v;Tn=1,Mf(i,la(u,i.current)),bt=null;return}o.flags&32768?(It||h===1?i=!0:ul||(At&536870912)!==0?i=!1:(ss=i=!0,(h===2||h===9||h===3||h===6)&&(h=fa.current,h!==null&&h.tag===13&&(h.flags|=16384))),U_(o,i)):Gf(o)}function Gf(i){var o=i;do{if((o.flags&32768)!==0){U_(o,ss);return}i=o.return;var u=nO(o.alternate,o,Ri);if(u!==null){bt=u;return}if(o=o.sibling,o!==null){bt=o;return}bt=o=i}while(o!==null);Tn===0&&(Tn=5)}function U_(i,o){do{var u=rO(i.alternate,i);if(u!==null){u.flags&=32767,bt=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(i=i.sibling,i!==null)){bt=i;return}bt=i=u}while(i!==null);Tn=6,bt=null}function H_(i,o,u,h,g,v,R,O,U){i.cancelPendingCommit=null;do Vf();while(er!==0);if((Lt&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(v=o.lanes|o.childLanes,v|=ig,lr(i,u,v,R,O,U),i===tn&&(bt=tn=null,At=0),fl=o,cs=i,hl=u,u0=v,d0=g,N_=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,mO(Ye,function(){return Y_(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=G.T,G.T=null,g=le.p,le.p=2,R=Lt,Lt|=4;try{aO(i,o,u)}finally{Lt=R,le.p=g,G.T=h}}er=1,z_(),G_(),V_()}}function z_(){if(er===1){er=0;var i=cs,o=fl,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=G.T,G.T=null;var h=le.p;le.p=2;var g=Lt;Lt|=4;try{S_(o,i);var v=D0,R=wv(i.containerInfo),O=v.focusedElem,U=v.selectionRange;if(R!==O&&O&&O.ownerDocument&&Iv(O.ownerDocument.documentElement,O)){if(U!==null&&eg(O)){var ee=U.start,pe=U.end;if(pe===void 0&&(pe=ee),"selectionStart"in O)O.selectionStart=ee,O.selectionEnd=Math.min(pe,O.value.length);else{var Ee=O.ownerDocument||document,ae=Ee&&Ee.defaultView||window;if(ae.getSelection){var se=ae.getSelection(),at=O.textContent.length,Je=Math.min(U.start,at),jt=U.end===void 0?Je:Math.min(U.end,at);!se.extend&&Je>jt&&(R=jt,jt=Je,Je=R);var Y=Rv(O,Je),q=Rv(O,jt);if(Y&&q&&(se.rangeCount!==1||se.anchorNode!==Y.node||se.anchorOffset!==Y.offset||se.focusNode!==q.node||se.focusOffset!==q.offset)){var Z=Ee.createRange();Z.setStart(Y.node,Y.offset),se.removeAllRanges(),Je>jt?(se.addRange(Z),se.extend(q.node,q.offset)):(Z.setEnd(q.node,q.offset),se.addRange(Z))}}}}for(Ee=[],se=O;se=se.parentNode;)se.nodeType===1&&Ee.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<Ee.length;O++){var ge=Ee[O];ge.element.scrollLeft=ge.left,ge.element.scrollTop=ge.top}}rh=!!C0,D0=C0=null}finally{Lt=g,le.p=h,G.T=u}}i.current=o,er=2}}function G_(){if(er===2){er=0;var i=cs,o=fl,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=G.T,G.T=null;var h=le.p;le.p=2;var g=Lt;Lt|=4;try{T_(i,o.alternate,o)}finally{Lt=g,le.p=h,G.T=u}}er=3}}function V_(){if(er===4||er===3){er=0,fn();var i=cs,o=fl,u=hl,h=N_;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?er=5:(er=0,fl=cs=null,q_(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(ls=null),Ra(u),o=o.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ue,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=G.T,g=le.p,le.p=2,G.T=null;try{for(var v=i.onRecoverableError,R=0;R<h.length;R++){var O=h[R];v(O.value,{componentStack:O.stack})}}finally{G.T=o,le.p=g}}(hl&3)!==0&&Vf(),Qa(i),g=i.pendingLanes,(u&4194090)!==0&&(g&42)!==0?i===f0?Yc++:(Yc=0,f0=i):Yc=0,Qc(0)}}function q_(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,Dc(o)))}function Vf(i){return z_(),G_(),V_(),Y_()}function Y_(){if(er!==5)return!1;var i=cs,o=u0;u0=0;var u=Ra(hl),h=G.T,g=le.p;try{le.p=32>u?32:u,G.T=null,u=d0,d0=null;var v=cs,R=hl;if(er=0,fl=cs=null,hl=0,(Lt&6)!==0)throw Error(r(331));var O=Lt;if(Lt|=4,I_(v.current),D_(v,v.current,R,u),Lt=O,Qc(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ue,v)}catch{}return!0}finally{le.p=g,G.T=h,q_(i,o)}}function Q_(i,o,u){o=la(u,o),o=Gg(i.stateNode,o,2),i=Ji(i,o,2),i!==null&&(or(i,2),Qa(i))}function Gt(i,o,u){if(i.tag===3)Q_(i,i,u);else for(;o!==null;){if(o.tag===3){Q_(o,i,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ls===null||!ls.has(h))){i=la(u,i),u=ZT(2),h=Ji(o,u,2),h!==null&&(JT(u,h,o,i),or(h,2),Qa(h));break}}o=o.return}}function g0(i,o,u){var h=i.pingCache;if(h===null){h=i.pingCache=new oO;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(u)||(s0=!0,g.add(u),i=fO.bind(null,i,o,u),o.then(i,i))}function fO(i,o,u){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,tn===i&&(At&u)===u&&(Tn===4||Tn===3&&(At&62914560)===At&&300>Ve()-c0?(Lt&2)===0&&pl(i,0):o0|=u,dl===At&&(dl=0)),Qa(i)}function K_(i,o){o===0&&(o=jr()),i=Wo(i,o),i!==null&&(or(i,o),Qa(i))}function hO(i){var o=i.memoizedState,u=0;o!==null&&(u=o.retryLane),K_(i,u)}function pO(i,o){var u=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),K_(i,u)}function mO(i,o){return wt(i,o)}var qf=null,gl=null,y0=!1,Yf=!1,E0=!1,no=0;function Qa(i){i!==gl&&i.next===null&&(gl===null?qf=gl=i:gl=gl.next=i),Yf=!0,y0||(y0=!0,yO())}function Qc(i,o){if(!E0&&Yf){E0=!0;do for(var u=!1,h=qf;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var v=0;else{var R=h.suspendedLanes,O=h.pingedLanes;v=(1<<31-nt(42|i)+1)-1,v&=g&~(R&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(u=!0,J_(h,v))}else v=At,v=Te(h,h===tn?v:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(v&3)===0||it(h,v)||(u=!0,J_(h,v));h=h.next}while(u);E0=!1}}function gO(){W_()}function W_(){Yf=y0=!1;var i=0;no!==0&&(SO()&&(i=no),no=0);for(var o=Ve(),u=null,h=qf;h!==null;){var g=h.next,v=X_(h,o);v===0?(h.next=null,u===null?qf=g:u.next=g,g===null&&(gl=u)):(u=h,(i!==0||(v&3)!==0)&&(Yf=!0)),h=g}Qc(i)}function X_(i,o){for(var u=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,v=i.pendingLanes&-62914561;0<v;){var R=31-nt(v),O=1<<R,U=g[R];U===-1?((O&u)===0||(O&h)!==0)&&(g[R]=We(O,o)):U<=o&&(i.expiredLanes|=O),v&=~O}if(o=tn,u=At,u=Te(i,i===o?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===o&&(Mt===2||Mt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&$e(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||it(i,u)){if(o=u&-u,o===i.callbackPriority)return o;switch(h!==null&&$e(h),Ra(u)){case 2:case 8:u=on;break;case 32:u=Ye;break;case 268435456:u=Sr;break;default:u=Ye}return h=Z_.bind(null,i),u=wt(u,h),i.callbackPriority=o,i.callbackNode=u,o}return h!==null&&h!==null&&$e(h),i.callbackPriority=2,i.callbackNode=null,2}function Z_(i,o){if(er!==0&&er!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Vf()&&i.callbackNode!==u)return null;var h=At;return h=Te(i,i===tn?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(L_(i,h,o),X_(i,Ve()),i.callbackNode!=null&&i.callbackNode===u?Z_.bind(null,i):null)}function J_(i,o){if(Vf())return null;L_(i,o,!0)}function yO(){DO(function(){(Lt&6)!==0?wt(an,gO):W_()})}function b0(){return no===0&&(no=Dn()),no}function ex(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:rf(""+i)}function tx(i,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,i.id&&u.setAttribute("form",i.id),o.parentNode.insertBefore(u,o),i=new FormData(i),u.parentNode.removeChild(u),i}function EO(i,o,u,h,g){if(o==="submit"&&u&&u.stateNode===g){var v=ex((g[De]||null).action),R=h.submitter;R&&(o=(o=R[De]||null)?ex(o.formAction):R.getAttribute("formAction"),o!==null&&(v=o,R=null));var O=new lf("action","action",null,h,g);i.push({event:O,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(no!==0){var U=R?tx(g,R):new FormData(g);jg(u,{pending:!0,data:U,method:g.method,action:v},null,U)}}else typeof v=="function"&&(O.preventDefault(),U=R?tx(g,R):new FormData(g),jg(u,{pending:!0,data:U,method:g.method,action:v},v,U))},currentTarget:g}]})}}for(var v0=0;v0<ag.length;v0++){var T0=ag[v0],bO=T0.toLowerCase(),vO=T0[0].toUpperCase()+T0.slice(1);Ia(bO,"on"+vO)}Ia(Lv,"onAnimationEnd"),Ia(Mv,"onAnimationIteration"),Ia(Pv,"onAnimationStart"),Ia("dblclick","onDoubleClick"),Ia("focusin","onFocus"),Ia("focusout","onBlur"),Ia($N,"onTransitionRun"),Ia(FN,"onTransitionStart"),Ia(jN,"onTransitionCancel"),Ia($v,"onTransitionEnd"),br("onMouseEnter",["mouseout","mouseover"]),br("onMouseLeave",["mouseout","mouseover"]),br("onPointerEnter",["pointerout","pointerover"]),br("onPointerLeave",["pointerout","pointerover"]),Ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ur("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),TO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kc));function nx(i,o){o=(o&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],g=h.event;h=h.listeners;e:{var v=void 0;if(o)for(var R=h.length-1;0<=R;R--){var O=h[R],U=O.instance,ee=O.currentTarget;if(O=O.listener,U!==v&&g.isPropagationStopped())break e;v=O,g.currentTarget=ee;try{v(g)}catch(pe){Lf(pe)}g.currentTarget=null,v=U}else for(R=0;R<h.length;R++){if(O=h[R],U=O.instance,ee=O.currentTarget,O=O.listener,U!==v&&g.isPropagationStopped())break e;v=O,g.currentTarget=ee;try{v(g)}catch(pe){Lf(pe)}g.currentTarget=null,v=U}}}}function vt(i,o){var u=o[Ge];u===void 0&&(u=o[Ge]=new Set);var h=i+"__bubble";u.has(h)||(rx(o,i,2,!1),u.add(h))}function _0(i,o,u){var h=0;o&&(h|=4),rx(u,i,h,o)}var Qf="_reactListening"+Math.random().toString(36).slice(2);function x0(i){if(!i[Qf]){i[Qf]=!0,Pt.forEach(function(u){u!=="selectionchange"&&(TO.has(u)||_0(u,!1,i),_0(u,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[Qf]||(o[Qf]=!0,_0("selectionchange",!1,o))}}function rx(i,o,u,h){switch(Dx(o)){case 2:var g=QO;break;case 8:g=KO;break;default:g=$0}u=g.bind(null,o,u,i),g=void 0,!Vm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(o,u,{capture:!0,passive:g}):i.addEventListener(o,u,!0):g!==void 0?i.addEventListener(o,u,{passive:g}):i.addEventListener(o,u,!1)}function A0(i,o,u,h,g){var v=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var R=h.tag;if(R===3||R===4){var O=h.stateNode.containerInfo;if(O===g)break;if(R===4)for(R=h.return;R!==null;){var U=R.tag;if((U===3||U===4)&&R.stateNode.containerInfo===g)return;R=R.return}for(;O!==null;){if(R=pt(O),R===null)return;if(U=R.tag,U===5||U===6||U===26||U===27){h=v=R;continue e}O=O.parentNode}}h=h.return}uv(function(){var ee=v,pe=zm(u),Ee=[];e:{var ae=Fv.get(i);if(ae!==void 0){var se=lf,at=i;switch(i){case"keypress":if(sf(u)===0)break e;case"keydown":case"keyup":se=mN;break;case"focusin":at="focus",se=Km;break;case"focusout":at="blur",se=Km;break;case"beforeblur":case"afterblur":se=Km;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=hv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=rN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=EN;break;case Lv:case Mv:case Pv:se=sN;break;case $v:se=vN;break;case"scroll":case"scrollend":se=tN;break;case"wheel":se=_N;break;case"copy":case"cut":case"paste":se=lN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=mv;break;case"toggle":case"beforetoggle":se=AN}var Je=(o&4)!==0,jt=!Je&&(i==="scroll"||i==="scrollend"),Y=Je?ae!==null?ae+"Capture":null:ae;Je=[];for(var q=ee,Z;q!==null;){var ge=q;if(Z=ge.stateNode,ge=ge.tag,ge!==5&&ge!==26&&ge!==27||Z===null||Y===null||(ge=pc(q,Y),ge!=null&&Je.push(Wc(q,ge,Z))),jt)break;q=q.return}0<Je.length&&(ae=new se(ae,at,null,u,pe),Ee.push({event:ae,listeners:Je}))}}if((o&7)===0){e:{if(ae=i==="mouseover"||i==="pointerover",se=i==="mouseout"||i==="pointerout",ae&&u!==Hm&&(at=u.relatedTarget||u.fromElement)&&(pt(at)||at[Be]))break e;if((se||ae)&&(ae=pe.window===pe?pe:(ae=pe.ownerDocument)?ae.defaultView||ae.parentWindow:window,se?(at=u.relatedTarget||u.toElement,se=ee,at=at?pt(at):null,at!==null&&(jt=s(at),Je=at.tag,at!==jt||Je!==5&&Je!==27&&Je!==6)&&(at=null)):(se=null,at=ee),se!==at)){if(Je=hv,ge="onMouseLeave",Y="onMouseEnter",q="mouse",(i==="pointerout"||i==="pointerover")&&(Je=mv,ge="onPointerLeave",Y="onPointerEnter",q="pointer"),jt=se==null?ae:En(se),Z=at==null?ae:En(at),ae=new Je(ge,q+"leave",se,u,pe),ae.target=jt,ae.relatedTarget=Z,ge=null,pt(pe)===ee&&(Je=new Je(Y,q+"enter",at,u,pe),Je.target=Z,Je.relatedTarget=jt,ge=Je),jt=ge,se&&at)t:{for(Je=se,Y=at,q=0,Z=Je;Z;Z=yl(Z))q++;for(Z=0,ge=Y;ge;ge=yl(ge))Z++;for(;0<q-Z;)Je=yl(Je),q--;for(;0<Z-q;)Y=yl(Y),Z--;for(;q--;){if(Je===Y||Y!==null&&Je===Y.alternate)break t;Je=yl(Je),Y=yl(Y)}Je=null}else Je=null;se!==null&&ax(Ee,ae,se,Je,!1),at!==null&&jt!==null&&ax(Ee,jt,at,Je,!0)}}e:{if(ae=ee?En(ee):window,se=ae.nodeName&&ae.nodeName.toLowerCase(),se==="select"||se==="input"&&ae.type==="file")var Fe=xv;else if(Tv(ae))if(Av)Fe=LN;else{Fe=NN;var yt=wN}else se=ae.nodeName,!se||se.toLowerCase()!=="input"||ae.type!=="checkbox"&&ae.type!=="radio"?ee&&Um(ee.elementType)&&(Fe=xv):Fe=ON;if(Fe&&(Fe=Fe(i,ee))){_v(Ee,Fe,u,pe);break e}yt&&yt(i,ae,ee),i==="focusout"&&ee&&ae.type==="number"&&ee.memoizedProps.value!=null&&Bm(ae,"number",ae.value)}switch(yt=ee?En(ee):window,i){case"focusin":(Tv(yt)||yt.contentEditable==="true")&&(Yo=yt,tg=ee,_c=null);break;case"focusout":_c=tg=Yo=null;break;case"mousedown":ng=!0;break;case"contextmenu":case"mouseup":case"dragend":ng=!1,Nv(Ee,u,pe);break;case"selectionchange":if(PN)break;case"keydown":case"keyup":Nv(Ee,u,pe)}var Qe;if(Xm)e:{switch(i){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else qo?bv(i,u)&&(tt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(tt="onCompositionStart");tt&&(gv&&u.locale!=="ko"&&(qo||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&qo&&(Qe=dv()):(Ki=pe,qm="value"in Ki?Ki.value:Ki.textContent,qo=!0)),yt=Kf(ee,tt),0<yt.length&&(tt=new pv(tt,i,null,u,pe),Ee.push({event:tt,listeners:yt}),Qe?tt.data=Qe:(Qe=vv(u),Qe!==null&&(tt.data=Qe)))),(Qe=CN?DN(i,u):kN(i,u))&&(tt=Kf(ee,"onBeforeInput"),0<tt.length&&(yt=new pv("onBeforeInput","beforeinput",null,u,pe),Ee.push({event:yt,listeners:tt}),yt.data=Qe)),EO(Ee,i,ee,u,pe)}nx(Ee,o)})}function Wc(i,o,u){return{instance:i,listener:o,currentTarget:u}}function Kf(i,o){for(var u=o+"Capture",h=[];i!==null;){var g=i,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=pc(i,u),g!=null&&h.unshift(Wc(i,g,v)),g=pc(i,o),g!=null&&h.push(Wc(i,g,v))),i.tag===3)return h;i=i.return}return[]}function yl(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function ax(i,o,u,h,g){for(var v=o._reactName,R=[];u!==null&&u!==h;){var O=u,U=O.alternate,ee=O.stateNode;if(O=O.tag,U!==null&&U===h)break;O!==5&&O!==26&&O!==27||ee===null||(U=ee,g?(ee=pc(u,v),ee!=null&&R.unshift(Wc(u,ee,U))):g||(ee=pc(u,v),ee!=null&&R.push(Wc(u,ee,U)))),u=u.return}R.length!==0&&i.push({event:o,listeners:R})}var _O=/\r\n?/g,xO=/\u0000|\uFFFD/g;function ix(i){return(typeof i=="string"?i:""+i).replace(_O,`
26
- `).replace(xO,"")}function sx(i,o){return o=ix(o),ix(i)===o}function Wf(){}function Ft(i,o,u,h,g,v){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||zo(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&zo(i,""+h);break;case"className":gi(i,"class",h);break;case"tabIndex":gi(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":gi(i,u,h);break;case"style":lv(i,h,v);break;case"data":if(o!=="object"){gi(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=rf(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(u==="formAction"?(o!=="input"&&Ft(i,o,"name",g.name,g,null),Ft(i,o,"formEncType",g.formEncType,g,null),Ft(i,o,"formMethod",g.formMethod,g,null),Ft(i,o,"formTarget",g.formTarget,g,null)):(Ft(i,o,"encType",g.encType,g,null),Ft(i,o,"method",g.method,g,null),Ft(i,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=rf(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=Wf);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=rf(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":vt("beforetoggle",i),vt("toggle",i),mi(i,"popover",h);break;case"xlinkActuate":gt(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":gt(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":gt(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":gt(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":gt(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":gt(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":gt(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":gt(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":gt(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":mi(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Jw.get(u)||u,mi(i,u,h))}}function S0(i,o,u,h,g,v){switch(u){case"style":lv(i,h,v);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?zo(i,h):(typeof h=="number"||typeof h=="bigint")&&zo(i,""+h);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Wf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!za.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),o=u.slice(2,g?u.length-7:void 0),v=i[De]||null,v=v!=null?v[u]:null,typeof v=="function"&&i.removeEventListener(o,v,g),typeof h=="function")){typeof v!="function"&&v!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(o,h,g);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):mi(i,u,h)}}}function tr(i,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",i),vt("load",i);var h=!1,g=!1,v;for(v in u)if(u.hasOwnProperty(v)){var R=u[v];if(R!=null)switch(v){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Ft(i,o,v,R,u,null)}}g&&Ft(i,o,"srcSet",u.srcSet,u,null),h&&Ft(i,o,"src",u.src,u,null);return;case"input":vt("invalid",i);var O=v=R=g=null,U=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var pe=u[h];if(pe!=null)switch(h){case"name":g=pe;break;case"type":R=pe;break;case"checked":U=pe;break;case"defaultChecked":ee=pe;break;case"value":v=pe;break;case"defaultValue":O=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,o));break;default:Ft(i,o,h,pe,u,null)}}av(i,v,O,U,ee,R,g,!1),tf(i);return;case"select":vt("invalid",i),h=R=v=null;for(g in u)if(u.hasOwnProperty(g)&&(O=u[g],O!=null))switch(g){case"value":v=O;break;case"defaultValue":R=O;break;case"multiple":h=O;default:Ft(i,o,g,O,u,null)}o=v,u=R,i.multiple=!!h,o!=null?Ho(i,!!h,o,!1):u!=null&&Ho(i,!!h,u,!0);return;case"textarea":vt("invalid",i),v=g=h=null;for(R in u)if(u.hasOwnProperty(R)&&(O=u[R],O!=null))switch(R){case"value":h=O;break;case"defaultValue":g=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:Ft(i,o,R,O,u,null)}sv(i,h,g,v),tf(i);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(h=u[U],h!=null))switch(U){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Ft(i,o,U,h,u,null)}return;case"dialog":vt("beforetoggle",i),vt("toggle",i),vt("cancel",i),vt("close",i);break;case"iframe":case"object":vt("load",i);break;case"video":case"audio":for(h=0;h<Kc.length;h++)vt(Kc[h],i);break;case"image":vt("error",i),vt("load",i);break;case"details":vt("toggle",i);break;case"embed":case"source":case"link":vt("error",i),vt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Ft(i,o,ee,h,u,null)}return;default:if(Um(o)){for(pe in u)u.hasOwnProperty(pe)&&(h=u[pe],h!==void 0&&S0(i,o,pe,h,u,void 0));return}}for(O in u)u.hasOwnProperty(O)&&(h=u[O],h!=null&&Ft(i,o,O,h,u,null))}function AO(i,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,R=null,O=null,U=null,ee=null,pe=null;for(se in u){var Ee=u[se];if(u.hasOwnProperty(se)&&Ee!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":U=Ee;default:h.hasOwnProperty(se)||Ft(i,o,se,null,h,Ee)}}for(var ae in h){var se=h[ae];if(Ee=u[ae],h.hasOwnProperty(ae)&&(se!=null||Ee!=null))switch(ae){case"type":v=se;break;case"name":g=se;break;case"checked":ee=se;break;case"defaultChecked":pe=se;break;case"value":R=se;break;case"defaultValue":O=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:se!==Ee&&Ft(i,o,ae,se,h,Ee)}}jm(i,R,O,U,ee,pe,v,g);return;case"select":se=R=O=ae=null;for(v in u)if(U=u[v],u.hasOwnProperty(v)&&U!=null)switch(v){case"value":break;case"multiple":se=U;default:h.hasOwnProperty(v)||Ft(i,o,v,null,h,U)}for(g in h)if(v=h[g],U=u[g],h.hasOwnProperty(g)&&(v!=null||U!=null))switch(g){case"value":ae=v;break;case"defaultValue":O=v;break;case"multiple":R=v;default:v!==U&&Ft(i,o,g,v,h,U)}o=O,u=R,h=se,ae!=null?Ho(i,!!u,ae,!1):!!h!=!!u&&(o!=null?Ho(i,!!u,o,!0):Ho(i,!!u,u?[]:"",!1));return;case"textarea":se=ae=null;for(O in u)if(g=u[O],u.hasOwnProperty(O)&&g!=null&&!h.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Ft(i,o,O,null,h,g)}for(R in h)if(g=h[R],v=u[R],h.hasOwnProperty(R)&&(g!=null||v!=null))switch(R){case"value":ae=g;break;case"defaultValue":se=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==v&&Ft(i,o,R,g,h,v)}iv(i,ae,se);return;case"option":for(var at in u)if(ae=u[at],u.hasOwnProperty(at)&&ae!=null&&!h.hasOwnProperty(at))switch(at){case"selected":i.selected=!1;break;default:Ft(i,o,at,null,h,ae)}for(U in h)if(ae=h[U],se=u[U],h.hasOwnProperty(U)&&ae!==se&&(ae!=null||se!=null))switch(U){case"selected":i.selected=ae&&typeof ae!="function"&&typeof ae!="symbol";break;default:Ft(i,o,U,ae,h,se)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Je in u)ae=u[Je],u.hasOwnProperty(Je)&&ae!=null&&!h.hasOwnProperty(Je)&&Ft(i,o,Je,null,h,ae);for(ee in h)if(ae=h[ee],se=u[ee],h.hasOwnProperty(ee)&&ae!==se&&(ae!=null||se!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,o));break;default:Ft(i,o,ee,ae,h,se)}return;default:if(Um(o)){for(var jt in u)ae=u[jt],u.hasOwnProperty(jt)&&ae!==void 0&&!h.hasOwnProperty(jt)&&S0(i,o,jt,void 0,h,ae);for(pe in h)ae=h[pe],se=u[pe],!h.hasOwnProperty(pe)||ae===se||ae===void 0&&se===void 0||S0(i,o,pe,ae,h,se);return}}for(var Y in u)ae=u[Y],u.hasOwnProperty(Y)&&ae!=null&&!h.hasOwnProperty(Y)&&Ft(i,o,Y,null,h,ae);for(Ee in h)ae=h[Ee],se=u[Ee],!h.hasOwnProperty(Ee)||ae===se||ae==null&&se==null||Ft(i,o,Ee,ae,h,se)}var C0=null,D0=null;function Xf(i){return i.nodeType===9?i:i.ownerDocument}function ox(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lx(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function k0(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var R0=null;function SO(){var i=window.event;return i&&i.type==="popstate"?i===R0?!1:(R0=i,!0):(R0=null,!1)}var cx=typeof setTimeout=="function"?setTimeout:void 0,CO=typeof clearTimeout=="function"?clearTimeout:void 0,ux=typeof Promise=="function"?Promise:void 0,DO=typeof queueMicrotask=="function"?queueMicrotask:typeof ux<"u"?function(i){return ux.resolve(null).then(i).catch(kO)}:cx;function kO(i){setTimeout(function(){throw i})}function ds(i){return i==="head"}function dx(i,o){var u=o,h=0,g=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"){if(0<h&&8>h){u=h;var R=i.ownerDocument;if(u&1&&Xc(R.documentElement),u&2&&Xc(R.body),u&4)for(u=R.head,Xc(u),R=u.firstChild;R;){var O=R.nextSibling,U=R.nodeName;R[ze]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&R.rel.toLowerCase()==="stylesheet"||u.removeChild(R),R=O}}if(g===0){i.removeChild(v),iu(o);return}g--}else u==="$"||u==="$?"||u==="$!"?g++:h=u.charCodeAt(0)-48;else h=0;u=v}while(u);iu(o)}function I0(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":I0(u),qe(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function RO(i,o,u,h){for(;i.nodeType===1;){var g=u;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[ze])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(v=i.getAttribute("rel"),v==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(v!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(v=i.getAttribute("src"),(v!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===v)return i}else return i;if(i=Na(i.nextSibling),i===null)break}return null}function IO(i,o,u){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Na(i.nextSibling),i===null))return null;return i}function w0(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function wO(i,o){var u=i.ownerDocument;if(i.data!=="$?"||u.readyState==="complete")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function Na(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}var N0=null;function fx(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return i;o--}else u==="/$"&&o++}i=i.previousSibling}return null}function hx(i,o,u){switch(o=Xf(u),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Xc(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);qe(i)}var pa=new Map,px=new Set;function Zf(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ii=le.d;le.d={f:NO,r:OO,D:LO,C:MO,L:PO,m:$O,X:jO,S:FO,M:BO};function NO(){var i=Ii.f(),o=zf();return i||o}function OO(i){var o=Ot(i);o!==null&&o.tag===5&&o.type==="form"?LT(o):Ii.r(i)}var El=typeof document>"u"?null:document;function mx(i,o,u){var h=El;if(h&&typeof o=="string"&&o){var g=oa(o);g='link[rel="'+i+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),px.has(g)||(px.add(g),i={rel:i,crossOrigin:u,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),tr(o,"link",i),ft(o),h.head.appendChild(o)))}}function LO(i){Ii.D(i),mx("dns-prefetch",i,null)}function MO(i,o){Ii.C(i,o),mx("preconnect",i,o)}function PO(i,o,u){Ii.L(i,o,u);var h=El;if(h&&i&&o){var g='link[rel="preload"][as="'+oa(o)+'"]';o==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+oa(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+oa(u.imageSizes)+'"]')):g+='[href="'+oa(i)+'"]';var v=g;switch(o){case"style":v=bl(i);break;case"script":v=vl(i)}pa.has(v)||(i=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),pa.set(v,i),h.querySelector(g)!==null||o==="style"&&h.querySelector(Zc(v))||o==="script"&&h.querySelector(Jc(v))||(o=h.createElement("link"),tr(o,"link",i),ft(o),h.head.appendChild(o)))}}function $O(i,o){Ii.m(i,o);var u=El;if(u&&i){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+oa(h)+'"][href="'+oa(i)+'"]',v=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=vl(i)}if(!pa.has(v)&&(i=p({rel:"modulepreload",href:i},o),pa.set(v,i),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Jc(v)))return}h=u.createElement("link"),tr(h,"link",i),ft(h),u.head.appendChild(h)}}}function FO(i,o,u){Ii.S(i,o,u);var h=El;if(h&&i){var g=bn(h).hoistableStyles,v=bl(i);o=o||"default";var R=g.get(v);if(!R){var O={loading:0,preload:null};if(R=h.querySelector(Zc(v)))O.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":o},u),(u=pa.get(v))&&O0(i,u);var U=R=h.createElement("link");ft(U),tr(U,"link",i),U._p=new Promise(function(ee,pe){U.onload=ee,U.onerror=pe}),U.addEventListener("load",function(){O.loading|=1}),U.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Jf(R,o,h)}R={type:"stylesheet",instance:R,count:1,state:O},g.set(v,R)}}}function jO(i,o){Ii.X(i,o);var u=El;if(u&&i){var h=bn(u).hoistableScripts,g=vl(i),v=h.get(g);v||(v=u.querySelector(Jc(g)),v||(i=p({src:i,async:!0},o),(o=pa.get(g))&&L0(i,o),v=u.createElement("script"),ft(v),tr(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function BO(i,o){Ii.M(i,o);var u=El;if(u&&i){var h=bn(u).hoistableScripts,g=vl(i),v=h.get(g);v||(v=u.querySelector(Jc(g)),v||(i=p({src:i,async:!0,type:"module"},o),(o=pa.get(g))&&L0(i,o),v=u.createElement("script"),ft(v),tr(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function gx(i,o,u,h){var g=(g=Ie.current)?Zf(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=bl(u.href),u=bn(g).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=bl(u.href);var v=bn(g).hoistableStyles,R=v.get(i);if(R||(g=g.ownerDocument||g,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(i,R),(v=g.querySelector(Zc(i)))&&!v._p&&(R.instance=v,R.state.loading=5),pa.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},pa.set(i,u),v||UO(g,i,u,R.state))),o&&h===null)throw Error(r(528,""));return R}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=vl(u),u=bn(g).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function bl(i){return'href="'+oa(i)+'"'}function Zc(i){return'link[rel="stylesheet"]['+i+"]"}function yx(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function UO(i,o,u,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),tr(o,"link",u),ft(o),i.head.appendChild(o))}function vl(i){return'[src="'+oa(i)+'"]'}function Jc(i){return"script[async]"+i}function Ex(i,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+oa(u.href)+'"]');if(h)return o.instance=h,ft(h),h;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),ft(h),tr(h,"style",g),Jf(h,u.precedence,i),o.instance=h;case"stylesheet":g=bl(u.href);var v=i.querySelector(Zc(g));if(v)return o.state.loading|=4,o.instance=v,ft(v),v;h=yx(u),(g=pa.get(g))&&O0(h,g),v=(i.ownerDocument||i).createElement("link"),ft(v);var R=v;return R._p=new Promise(function(O,U){R.onload=O,R.onerror=U}),tr(v,"link",h),o.state.loading|=4,Jf(v,u.precedence,i),o.instance=v;case"script":return v=vl(u.src),(g=i.querySelector(Jc(v)))?(o.instance=g,ft(g),g):(h=u,(g=pa.get(v))&&(h=p({},u),L0(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),ft(g),tr(g,"link",h),i.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,Jf(h,u.precedence,i));return o.instance}function Jf(i,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,v=g,R=0;R<h.length;R++){var O=h[R];if(O.dataset.precedence===o)v=O;else if(v!==g)break}v?v.parentNode.insertBefore(i,v.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(i,o.firstChild))}function O0(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function L0(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var eh=null;function bx(i,o,u){if(eh===null){var h=new Map,g=eh=new Map;g.set(u,h)}else g=eh,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),g=0;g<u.length;g++){var v=u[g];if(!(v[ze]||v[be]||i==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var R=v.getAttribute(o)||"";R=i+R;var O=h.get(R);O?O.push(v):h.set(R,[v])}}return h}function vx(i,o,u){i=i.ownerDocument||i,i.head.insertBefore(u,o==="title"?i.querySelector("head > title"):null)}function HO(i,o,u){if(u===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function Tx(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var eu=null;function zO(){}function GO(i,o,u){if(eu===null)throw Error(r(475));var h=eu;if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=bl(u.href),v=i.querySelector(Zc(g));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=th.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=v,ft(v);return}v=i.ownerDocument||i,u=yx(u),(g=pa.get(g))&&O0(u,g),v=v.createElement("link"),ft(v);var R=v;R._p=new Promise(function(O,U){R.onload=O,R.onerror=U}),tr(v,"link",u),o.instance=v}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=th.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function VO(){if(eu===null)throw Error(r(475));var i=eu;return i.stylesheets&&i.count===0&&M0(i,i.stylesheets),0<i.count?function(o){var u=setTimeout(function(){if(i.stylesheets&&M0(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(u)}}:null}function th(){if(this.count--,this.count===0){if(this.stylesheets)M0(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var nh=null;function M0(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,nh=new Map,o.forEach(qO,i),nh=null,th.call(i))}function qO(i,o){if(!(o.state.loading&4)){var u=nh.get(i);if(u)var h=u.get(null);else{u=new Map,nh.set(i,u);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var R=g[v];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(u.set(R.dataset.precedence,R),h=R)}h&&u.set(null,h)}g=o.instance,R=g.getAttribute("data-precedence"),v=u.get(R)||h,v===h&&u.set(null,g),u.set(R,g),this.count++,h=th.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),v?v.parentNode.insertBefore(g,v.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),o.state.loading|=4}}var tu={$$typeof:S,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function YO(i,o,u,h,g,v,R,O){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Er(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Er(0),this.hiddenUpdates=Er(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function _x(i,o,u,h,g,v,R,O,U,ee,pe,Ee){return i=new YO(i,o,u,R,O,U,ee,Ee),o=1,v===!0&&(o|=24),v=zr(3,null,null,o),i.current=v,v.stateNode=i,o=gg(),o.refCount++,i.pooledCache=o,o.refCount++,v.memoizedState={element:h,isDehydrated:u,cache:o},vg(v),i}function xx(i){return i?(i=Xo,i):Xo}function Ax(i,o,u,h,g,v){g=xx(g),h.context===null?h.context=g:h.pendingContext=g,h=Zi(o),h.payload={element:u},v=v===void 0?null:v,v!==null&&(h.callback=v),u=Ji(i,h,o),u!==null&&(Qr(u,i,o),wc(u,i,o))}function Sx(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function P0(i,o){Sx(i,o),(i=i.alternate)&&Sx(i,o)}function Cx(i){if(i.tag===13){var o=Wo(i,67108864);o!==null&&Qr(o,i,67108864),P0(i,67108864)}}var rh=!0;function QO(i,o,u,h){var g=G.T;G.T=null;var v=le.p;try{le.p=2,$0(i,o,u,h)}finally{le.p=v,G.T=g}}function KO(i,o,u,h){var g=G.T;G.T=null;var v=le.p;try{le.p=8,$0(i,o,u,h)}finally{le.p=v,G.T=g}}function $0(i,o,u,h){if(rh){var g=F0(h);if(g===null)A0(i,o,h,ah,u),kx(i,h);else if(XO(g,i,o,u,h))h.stopPropagation();else if(kx(i,h),o&4&&-1<WO.indexOf(i)){for(;g!==null;){var v=Ot(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var R=_e(v.pendingLanes);if(R!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;R;){var U=1<<31-nt(R);O.entanglements[1]|=U,R&=~U}Qa(v),(Lt&6)===0&&(Uf=Ve()+500,Qc(0))}}break;case 13:O=Wo(v,2),O!==null&&Qr(O,v,2),zf(),P0(v,2)}if(v=F0(h),v===null&&A0(i,o,h,ah,u),v===g)break;g=v}g!==null&&h.stopPropagation()}else A0(i,o,h,null,u)}}function F0(i){return i=zm(i),j0(i)}var ah=null;function j0(i){if(ah=null,i=pt(i),i!==null){var o=s(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=l(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return ah=i,null}function Dx(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Zn()){case an:return 2;case on:return 8;case Ye:case Ct:return 32;case Sr:return 268435456;default:return 32}default:return 32}}var B0=!1,fs=null,hs=null,ps=null,nu=new Map,ru=new Map,ms=[],WO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kx(i,o){switch(i){case"focusin":case"focusout":fs=null;break;case"dragenter":case"dragleave":hs=null;break;case"mouseover":case"mouseout":ps=null;break;case"pointerover":case"pointerout":nu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ru.delete(o.pointerId)}}function au(i,o,u,h,g,v){return i===null||i.nativeEvent!==v?(i={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:v,targetContainers:[g]},o!==null&&(o=Ot(o),o!==null&&Cx(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),i)}function XO(i,o,u,h,g){switch(o){case"focusin":return fs=au(fs,i,o,u,h,g),!0;case"dragenter":return hs=au(hs,i,o,u,h,g),!0;case"mouseover":return ps=au(ps,i,o,u,h,g),!0;case"pointerover":var v=g.pointerId;return nu.set(v,au(nu.get(v)||null,i,o,u,h,g)),!0;case"gotpointercapture":return v=g.pointerId,ru.set(v,au(ru.get(v)||null,i,o,u,h,g)),!0}return!1}function Rx(i){var o=pt(i.target);if(o!==null){var u=s(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){i.blockedOn=o,X(i.priority,function(){if(u.tag===13){var h=Yr();h=Br(h);var g=Wo(u,h);g!==null&&Qr(g,u,h),P0(u,h)}});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function ih(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=F0(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);Hm=h,u.target.dispatchEvent(h),Hm=null}else return o=Ot(u),o!==null&&Cx(o),i.blockedOn=u,!1;o.shift()}return!0}function Ix(i,o,u){ih(i)&&u.delete(o)}function ZO(){B0=!1,fs!==null&&ih(fs)&&(fs=null),hs!==null&&ih(hs)&&(hs=null),ps!==null&&ih(ps)&&(ps=null),nu.forEach(Ix),ru.forEach(Ix)}function sh(i,o){i.blockedOn===o&&(i.blockedOn=null,B0||(B0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ZO)))}var oh=null;function wx(i){oh!==i&&(oh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){oh===i&&(oh=null);for(var o=0;o<i.length;o+=3){var u=i[o],h=i[o+1],g=i[o+2];if(typeof h!="function"){if(j0(h||u)===null)continue;break}var v=Ot(u);v!==null&&(i.splice(o,3),o-=3,jg(v,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function iu(i){function o(U){return sh(U,i)}fs!==null&&sh(fs,i),hs!==null&&sh(hs,i),ps!==null&&sh(ps,i),nu.forEach(o),ru.forEach(o);for(var u=0;u<ms.length;u++){var h=ms[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ms.length&&(u=ms[0],u.blockedOn===null);)Rx(u),u.blockedOn===null&&ms.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],v=u[h+1],R=g[De]||null;if(typeof v=="function")R||wx(u);else if(R){var O=null;if(v&&v.hasAttribute("formAction")){if(g=v,R=v[De]||null)O=R.formAction;else if(j0(g)!==null)continue}else O=R.action;typeof O=="function"?u[h+1]=O:(u.splice(h,3),h-=3),wx(u)}}}function U0(i){this._internalRoot=i}lh.prototype.render=U0.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=Yr();Ax(u,h,i,o,null,null)},lh.prototype.unmount=U0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;Ax(i.current,2,null,i,null,null),zf(),o[Be]=null}};function lh(i){this._internalRoot=i}lh.prototype.unstable_scheduleHydration=function(i){if(i){var o=z();i={blockedOn:null,target:i,priority:o};for(var u=0;u<ms.length&&o!==0&&o<ms[u].priority;u++);ms.splice(u,0,i),u===0&&Rx(i)}};var Nx=t.version;if(Nx!=="19.1.1")throw Error(r(527,Nx,"19.1.1"));le.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var JO={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ch=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ch.isDisabled&&ch.supportsFiber)try{ue=ch.inject(JO),ve=ch}catch{}}return su.createRoot=function(i,o){if(!a(i))throw Error(r(299));var u=!1,h="",g=QT,v=KT,R=WT,O=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(R=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(O=o.unstable_transitionCallbacks)),o=_x(i,1,!1,null,null,u,h,g,v,R,O,null),i[Be]=o.current,x0(i),new U0(o)},su.hydrateRoot=function(i,o,u){if(!a(i))throw Error(r(299));var h=!1,g="",v=QT,R=KT,O=WT,U=null,ee=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(v=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(O=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(U=u.unstable_transitionCallbacks),u.formState!==void 0&&(ee=u.formState)),o=_x(i,1,!0,o,u??null,h,g,v,R,O,U,ee),o.context=xx(null),u=o.current,h=Yr(),h=Br(h),g=Zi(h),g.callback=null,Ji(u,g,h),u=h,o.current.lanes=u,or(o,u),Qa(o),i[Be]=o.current,x0(i),new lh(o)},su.version="19.1.1",su}var $x;function w4(){if($x)return H0.exports;$x=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(),H0.exports=I4(),H0.exports}var N4=w4();/**
27
- * react-router v7.7.1
28
- *
29
- * Copyright (c) Remix Software Inc.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE.md file in the root directory of this source tree.
33
- *
34
- * @license MIT
35
- */var H2=e=>{throw TypeError(e)},O4=(e,t,n)=>t.has(e)||H2("Cannot "+n),V0=(e,t,n)=>(O4(e,t,"read from private field"),n?n.call(e):t.get(e)),L4=(e,t,n)=>t.has(e)?H2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Fx="popstate";function M4(e={}){function t(r,a){let{pathname:s,search:l,hash:c}=r.location;return td("",{pathname:s,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Ns(a)}return $4(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Fn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function P4(){return Math.random().toString(36).substring(2,10)}function jx(e,t){return{usr:e.state,key:e.key,idx:t}}function td(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ms(t):t,state:n,key:t&&t.key||r||P4()}}function Ns({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function $4(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,c="POP",d=null,f=p();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function p(){return(l.state||{idx:null}).idx}function m(){c="POP";let C=p(),x=C==null?null:C-f;f=C,d&&d({action:c,location:A.location,delta:x})}function y(C,x){c="PUSH";let D=td(A.location,C,x);f=p()+1;let S=jx(D,f),L=A.createHref(D);try{l.pushState(S,"",L)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(L)}s&&d&&d({action:c,location:A.location,delta:1})}function E(C,x){c="REPLACE";let D=td(A.location,C,x);f=p();let S=jx(D,f),L=A.createHref(D);l.replaceState(S,"",L),s&&d&&d({action:c,location:A.location,delta:0})}function T(C){return z2(C)}let A={get action(){return c},get location(){return e(a,l)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Fx,m),d=C,()=>{a.removeEventListener(Fx,m),d=null}},createHref(C){return t(a,C)},createURL:T,encodeLocation(C){let x=T(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:y,replace:E,go(C){return l.go(C)}};return A}function z2(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ns(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Du,Bx=class{constructor(e){if(L4(this,Du,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(V0(this,Du).has(e))return V0(this,Du).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){V0(this,Du).set(e,t)}};Du=new WeakMap;var F4=new Set(["lazy","caseSensitive","path","id","index","children"]);function j4(e){return F4.has(e)}var B4=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function U4(e){return B4.has(e)}function H4(e){return e.index===!0}function nd(e,t,n=[],r={},a=!1){return e.map((s,l)=>{let c=[...n,String(l)],d=typeof s.id=="string"?s.id:c.join("-");if(Tt(s.index!==!0||!s.children,"Cannot specify children on an index route"),Tt(a||!r[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),H4(s)){let f={...s,...t(s),id:d};return r[d]=f,f}else{let f={...s,...t(s),id:d,children:void 0};return r[d]=f,s.children&&(f.children=nd(s.children,t,c,r,a)),f}})}function As(e,t,n="/"){return Oh(e,t,n,!1)}function Oh(e,t,n,r){let a=typeof t=="string"?Ms(t):t,s=Ca(a.pathname||"/",n);if(s==null)return null;let l=G2(e);G4(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let f=t5(s);c=J4(l[d],f,r)}return c}function z4(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}function G2(e,t=[],n=[],r=""){let a=(s,l,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(Tt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=si([r,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&(Tt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),G2(s.children,t,p,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:X4(f,s.index),routesMeta:p})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))a(s,l);else for(let c of V2(s.path))a(s,l,c)}),t}function V2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=V2(r.join("/")),c=[];return c.push(...l.map(d=>d===""?s:[s,d].join("/"))),a&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function G4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Z4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var V4=/^:[\w-]+$/,q4=3,Y4=2,Q4=1,K4=10,W4=-2,Ux=e=>e==="*";function X4(e,t){let n=e.split("/"),r=n.length;return n.some(Ux)&&(r+=W4),t&&(r+=Y4),n.filter(a=>!Ux(a)).reduce((a,s)=>a+(V4.test(s)?q4:s===""?Q4:K4),r)}function Z4(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function J4(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let c=0;c<r.length;++c){let d=r[c],f=c===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",m=ip({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),y=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=ip({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!m)return null;Object.assign(a,m.params),l.push({params:a,pathname:si([s,m.pathname]),pathnameBase:i5(si([s,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(s=si([s,m.pathnameBase]))}return l}function ip(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=e5(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:m},y)=>{if(p==="*"){let T=c[y]||"";l=s.slice(0,s.length-T.length).replace(/(.)\/+$/,"$1")}const E=c[y];return m&&!E?f[p]=void 0:f[p]=(E||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function e5(e,t=!1,n=!0){Fn(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 r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function t5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fn(!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 Ca(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function n5({basename:e,pathname:t}){return t==="/"?e:si([e,t])}function r5(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ms(e):e;return{pathname:n?n.startsWith("/")?n:a5(n,t):t,search:s5(r),hash:o5(a)}}function a5(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function q0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function q2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function mE(e){let t=q2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function gE(e,t,n,r=!1){let a;typeof e=="string"?a=Ms(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),q0("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),q0("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),q0("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),m-=1;a.pathname=y.join("/")}c=m>=0?t[m]:"/"}let d=r5(a,c),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var si=e=>e.join("/").replace(/\/\/+/g,"/"),i5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),s5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,o5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,sp=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function rd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Y2=["POST","PUT","PATCH","DELETE"],l5=new Set(Y2),c5=["GET",...Y2],u5=new Set(c5),d5=new Set([301,302,303,307,308]),f5=new Set([307,308]),Y0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},h5={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ou={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},p5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yE=e=>p5.test(e),m5=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Q2="remix-router-transitions",K2=Symbol("ResetLoaderData");function g5(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Tt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||m5,s={},l=nd(e.routes,a,void 0,s),c,d=e.basename||"/",f=e.dataStrategy||T5,p={unstable_middleware:!1,...e.future},m=null,y=new Set,E=null,T=null,A=null,C=e.hydrationData!=null,x=As(l,e.history.location,d),D=!1,S=null,L;if(x==null&&!e.patchRoutesOnNavigation){let z=ya(404,{pathname:e.history.location.pathname}),{matches:X,route:ie}=Jx(l);L=!0,x=X,S={[ie.id]:z}}else if(x&&!e.hydrationData&&Ha(x,l,e.history.location.pathname).active&&(x=null),x)if(x.some(z=>z.route.lazy))L=!1;else if(!x.some(z=>z.route.loader))L=!0;else{let z=e.hydrationData?e.hydrationData.loaderData:null,X=e.hydrationData?e.hydrationData.errors:null;if(X){let ie=x.findIndex(be=>X[be.route.id]!==void 0);L=x.slice(0,ie+1).every(be=>!ty(be.route,z,X))}else L=x.every(ie=>!ty(ie.route,z,X))}else{L=!1,x=[];let z=Ha(null,l,e.history.location.pathname);z.active&&z.matches&&(D=!0,x=z.matches)}let M,I={historyAction:e.history.action,location:e.history.location,matches:x,initialized:L,navigation:Y0,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||S,fetchers:new Map,blockers:new Map},V="POP",ne=!1,K,k=!1,H=new Map,Q=null,W=!1,re=!1,me=new Set,G=new Map,le=0,oe=-1,ye=new Map,P=new Set,Oe=new Map,ce=new Map,w=new Set,te=new Map,Ce,Ie=null;function Me(){if(m=e.history.listen(({action:z,location:X,delta:ie})=>{if(Ce){Ce(),Ce=void 0;return}Fn(te.size===0||ie!=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 be=We({currentLocation:I.location,nextLocation:X,historyAction:z});if(be&&ie!=null){let De=new Promise(Be=>{Ce=Be});e.history.go(ie*-1),it(be,{state:"blocked",location:X,proceed(){it(be,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),De.then(()=>e.history.go(ie))},reset(){let Be=new Map(I.blockers);Be.set(be,ou),dt({blockers:Be})}});return}return $e(z,X)}),n){N5(t,H);let z=()=>O5(t,H);t.addEventListener("pagehide",z),Q=()=>t.removeEventListener("pagehide",z)}return I.initialized||$e("POP",I.location,{initialHydration:!0}),M}function Le(){m&&m(),Q&&Q(),y.clear(),K&&K.abort(),I.fetchers.forEach((z,X)=>nt(X)),I.blockers.forEach((z,X)=>Te(X))}function st(z){return y.add(z),()=>y.delete(z)}function dt(z,X={}){z.matches&&(z.matches=z.matches.map(De=>{let Be=s[De.route.id],Ge=De.route;return Ge.element!==Be.element||Ge.errorElement!==Be.errorElement||Ge.hydrateFallbackElement!==Be.hydrateFallbackElement?{...De,route:Be}:De})),I={...I,...z};let ie=[],be=[];I.fetchers.forEach((De,Be)=>{De.state==="idle"&&(w.has(Be)?ie.push(Be):be.push(Be))}),w.forEach(De=>{!I.fetchers.has(De)&&!G.has(De)&&ie.push(De)}),[...y].forEach(De=>De(I,{deletedFetchers:ie,viewTransitionOpts:X.viewTransitionOpts,flushSync:X.flushSync===!0})),ie.forEach(De=>nt(De)),be.forEach(De=>I.fetchers.delete(De))}function Ue(z,X,{flushSync:ie}={}){let be=I.actionData!=null&&I.navigation.formMethod!=null&&Nr(I.navigation.formMethod)&&I.navigation.state==="loading"&&z.state?._isRedirect!==!0,De;X.actionData?Object.keys(X.actionData).length>0?De=X.actionData:De=null:be?De=I.actionData:De=null;let Be=X.loaderData?Xx(I.loaderData,X.loaderData,X.matches||[],X.errors):I.loaderData,Ge=I.blockers;Ge.size>0&&(Ge=new Map(Ge),Ge.forEach((ze,qe)=>Ge.set(qe,ou)));let He=W?!1:lr(z,X.matches||I.matches),Ke=ne===!0||I.navigation.formMethod!=null&&Nr(I.navigation.formMethod)&&z.state?._isRedirect!==!0;c&&(l=c,c=void 0),W||V==="POP"||(V==="PUSH"?e.history.push(z,z.state):V==="REPLACE"&&e.history.replace(z,z.state));let Ze;if(V==="POP"){let ze=H.get(I.location.pathname);ze&&ze.has(z.pathname)?Ze={currentLocation:I.location,nextLocation:z}:H.has(z.pathname)&&(Ze={currentLocation:z,nextLocation:I.location})}else if(k){let ze=H.get(I.location.pathname);ze?ze.add(z.pathname):(ze=new Set([z.pathname]),H.set(I.location.pathname,ze)),Ze={currentLocation:I.location,nextLocation:z}}dt({...X,actionData:De,loaderData:Be,historyAction:V,location:z,initialized:!0,navigation:Y0,revalidation:"idle",restoreScrollPosition:He,preventScrollReset:Ke,blockers:Ge},{viewTransitionOpts:Ze,flushSync:ie===!0}),V="POP",ne=!1,k=!1,W=!1,re=!1,Ie?.resolve(),Ie=null}async function en(z,X){if(typeof z=="number"){e.history.go(z);return}let ie=ey(I.location,I.matches,d,z,X?.fromRouteId,X?.relative),{path:be,submission:De,error:Be}=Hx(!1,ie,X),Ge=I.location,He=td(I.location,be,X&&X.state);He={...He,...e.history.encodeLocation(He)};let Ke=X&&X.replace!=null?X.replace:void 0,Ze="PUSH";Ke===!0?Ze="REPLACE":Ke===!1||De!=null&&Nr(De.formMethod)&&De.formAction===I.location.pathname+I.location.search&&(Ze="REPLACE");let ze=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,qe=(X&&X.flushSync)===!0,pt=We({currentLocation:Ge,nextLocation:He,historyAction:Ze});if(pt){it(pt,{state:"blocked",location:He,proceed(){it(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:He}),en(z,X)},reset(){let Ot=new Map(I.blockers);Ot.set(pt,ou),dt({blockers:Ot})}});return}await $e(Ze,He,{submission:De,pendingError:Be,preventScrollReset:ze,replace:X&&X.replace,enableViewTransition:X&&X.viewTransition,flushSync:qe})}function wt(){Ie||(Ie=L5()),Rt(),dt({revalidation:"loading"});let z=Ie.promise;return I.navigation.state==="submitting"?z:I.navigation.state==="idle"?($e(I.historyAction,I.location,{startUninterruptedRevalidation:!0}),z):($e(V||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:k===!0}),z)}async function $e(z,X,ie){K&&K.abort(),K=null,V=z,W=(ie&&ie.startUninterruptedRevalidation)===!0,or(I.location,I.matches),ne=(ie&&ie.preventScrollReset)===!0,k=(ie&&ie.enableViewTransition)===!0;let be=c||l,De=ie&&ie.overrideNavigation,Be=ie?.initialHydration&&I.matches&&I.matches.length>0&&!D?I.matches:As(be,X,d),Ge=(ie&&ie.flushSync)===!0;if(Be&&I.initialized&&!re&&D5(I.location,X)&&!(ie&&ie.submission&&Nr(ie.submission.formMethod))){Ue(X,{matches:Be},{flushSync:Ge});return}let He=Ha(Be,be,X.pathname);if(He.active&&He.matches&&(Be=He.matches),!Be){let{error:bn,notFoundMatches:ft,route:Pt}=Dn(X.pathname);Ue(X,{matches:ft,loaderData:{},errors:{[Pt.id]:bn}},{flushSync:Ge});return}K=new AbortController;let Ke=Nl(e.history,X,K.signal,ie&&ie.submission),Ze=new Bx(e.unstable_getContext?await e.unstable_getContext():void 0),ze;if(ie&&ie.pendingError)ze=[oo(Be).route.id,{type:"error",error:ie.pendingError}];else if(ie&&ie.submission&&Nr(ie.submission.formMethod)){let bn=await sr(Ke,X,ie.submission,Be,Ze,He.active,ie&&ie.initialHydration===!0,{replace:ie.replace,flushSync:Ge});if(bn.shortCircuited)return;if(bn.pendingActionResult){let[ft,Pt]=bn.pendingActionResult;if(Xr(Pt)&&rd(Pt.error)&&Pt.error.status===404){K=null,Ue(X,{matches:bn.matches,loaderData:{},errors:{[ft]:Pt.error}});return}}Be=bn.matches||Be,ze=bn.pendingActionResult,De=Q0(X,ie.submission),Ge=!1,He.active=!1,Ke=Nl(e.history,Ke.url,Ke.signal)}let{shortCircuited:qe,matches:pt,loaderData:Ot,errors:En}=await fn(Ke,X,Be,Ze,He.active,De,ie&&ie.submission,ie&&ie.fetcherSubmission,ie&&ie.replace,ie&&ie.initialHydration===!0,Ge,ze);qe||(K=null,Ue(X,{matches:pt||Be,...Zx(ze),loaderData:Ot,errors:En}))}async function sr(z,X,ie,be,De,Be,Ge,He={}){Rt();let Ke=I5(X,ie);if(dt({navigation:Ke},{flushSync:He.flushSync===!0}),Be){let qe=await hn(be,X.pathname,z.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let pt=oo(qe.partialMatches).route.id;return{matches:qe.partialMatches,pendingActionResult:[pt,{type:"error",error:qe.error}]}}else if(qe.matches)be=qe.matches;else{let{notFoundMatches:pt,error:Ot,route:En}=Dn(X.pathname);return{matches:pt,pendingActionResult:[En.id,{type:"error",error:Ot}]}}}let Ze,ze=Lh(be,X);if(!ze.route.action&&!ze.route.lazy)Ze={type:"error",error:ya(405,{method:z.method,pathname:X.pathname,routeId:ze.route.id})};else{let qe=jl(a,s,z,be,ze,Ge?[]:r,De),pt=await Sr(z,qe,De,null);if(Ze=pt[ze.route.id],!Ze){for(let Ot of be)if(pt[Ot.route.id]){Ze=pt[Ot.route.id];break}}if(z.signal.aborted)return{shortCircuited:!0}}if(uo(Ze)){let qe;return He&&He.replace!=null?qe=He.replace:qe=Qx(Ze.response.headers.get("Location"),new URL(z.url),d)===I.location.pathname+I.location.search,await Ct(z,Ze,!0,{submission:ie,replace:qe}),{shortCircuited:!0}}if(Xr(Ze)){let qe=oo(be,ze.route.id);return(He&&He.replace)!==!0&&(V="PUSH"),{matches:be,pendingActionResult:[qe.route.id,Ze,ze.route.id]}}return{matches:be,pendingActionResult:[ze.route.id,Ze]}}async function fn(z,X,ie,be,De,Be,Ge,He,Ke,Ze,ze,qe){let pt=Be||Q0(X,Ge),Ot=Ge||He||tA(pt),En=!W&&!Ze;if(De){if(En){let Nn=Ve(qe);dt({navigation:pt,...Nn!==void 0?{actionData:Nn}:{}},{flushSync:ze})}let gt=await hn(ie,X.pathname,z.signal);if(gt.type==="aborted")return{shortCircuited:!0};if(gt.type==="error"){let Nn=oo(gt.partialMatches).route.id;return{matches:gt.partialMatches,loaderData:{},errors:{[Nn]:gt.error}}}else if(gt.matches)ie=gt.matches;else{let{error:Nn,notFoundMatches:Bs,route:ia}=Dn(X.pathname);return{matches:Bs,loaderData:{},errors:{[ia.id]:Nn}}}}let bn=c||l,{dsMatches:ft,revalidatingFetchers:Pt}=zx(z,be,a,s,e.history,I,ie,Ot,X,Ze?[]:r,Ze===!0,re,me,w,Oe,P,bn,d,e.patchRoutesOnNavigation!=null,qe);if(oe=++le,!e.dataStrategy&&!ft.some(gt=>gt.shouldLoad)&&Pt.length===0){let gt=yn();return Ue(X,{matches:ie,loaderData:{},errors:qe&&Xr(qe[1])?{[qe[0]]:qe[1].error}:null,...Zx(qe),...gt?{fetchers:new Map(I.fetchers)}:{}},{flushSync:ze}),{shortCircuited:!0}}if(En){let gt={};if(!De){gt.navigation=pt;let Nn=Ve(qe);Nn!==void 0&&(gt.actionData=Nn)}Pt.length>0&&(gt.fetchers=Zn(Pt)),dt(gt,{flushSync:ze})}Pt.forEach(gt=>{Nt(gt.key),gt.controller&&G.set(gt.key,gt.controller)});let za=()=>Pt.forEach(gt=>Nt(gt.key));K&&K.signal.addEventListener("abort",za);let{loaderResults:Ur,fetcherResults:br}=await Ua(ft,Pt,z,be);if(z.signal.aborted)return{shortCircuited:!0};K&&K.signal.removeEventListener("abort",za),Pt.forEach(gt=>G.delete(gt.key));let aa=fh(Ur);if(aa)return await Ct(z,aa.result,!0,{replace:Ke}),{shortCircuited:!0};if(aa=fh(br),aa)return P.add(aa.key),await Ct(z,aa.result,!0,{replace:Ke}),{shortCircuited:!0};let{loaderData:Uo,errors:Yi}=Wx(I,ie,Ur,qe,Pt,br);Ze&&I.errors&&(Yi={...I.errors,...Yi});let pi=yn(),mi=Cn(oe),gi=pi||mi||Pt.length>0;return{matches:ie,loaderData:Uo,errors:Yi,...gi?{fetchers:new Map(I.fetchers)}:{}}}function Ve(z){if(z&&!Xr(z[1]))return{[z[0]]:z[1].data};if(I.actionData)return Object.keys(I.actionData).length===0?null:I.actionData}function Zn(z){return z.forEach(X=>{let ie=I.fetchers.get(X.key),be=lu(void 0,ie?ie.data:void 0);I.fetchers.set(X.key,be)}),new Map(I.fetchers)}async function an(z,X,ie,be){Nt(z);let De=(be&&be.flushSync)===!0,Be=c||l,Ge=ey(I.location,I.matches,d,ie,X,be?.relative),He=As(Be,Ge,d),Ke=Ha(He,Be,Ge);if(Ke.active&&Ke.matches&&(He=Ke.matches),!He){ve(z,X,ya(404,{pathname:Ge}),{flushSync:De});return}let{path:Ze,submission:ze,error:qe}=Hx(!0,Ge,be);if(qe){ve(z,X,qe,{flushSync:De});return}let pt=new Bx(e.unstable_getContext?await e.unstable_getContext():void 0),Ot=(be&&be.preventScrollReset)===!0;if(ze&&Nr(ze.formMethod)){await on(z,X,Ze,He,pt,Ke.active,De,Ot,ze);return}Oe.set(z,{routeId:X,path:Ze}),await Ye(z,X,Ze,He,pt,Ke.active,De,Ot,ze)}async function on(z,X,ie,be,De,Be,Ge,He,Ke){Rt(),Oe.delete(z);let Ze=I.fetchers.get(z);ue(z,w5(Ke,Ze),{flushSync:Ge});let ze=new AbortController,qe=Nl(e.history,ie,ze.signal,Ke);if(Be){let pn=await hn(be,new URL(qe.url).pathname,qe.signal,z);if(pn.type==="aborted")return;if(pn.type==="error"){ve(z,X,pn.error,{flushSync:Ge});return}else if(pn.matches)be=pn.matches;else{ve(z,X,ya(404,{pathname:ie}),{flushSync:Ge});return}}let pt=Lh(be,ie);if(!pt.route.action&&!pt.route.lazy){let pn=ya(405,{method:Ke.formMethod,pathname:ie,routeId:X});ve(z,X,pn,{flushSync:Ge});return}G.set(z,ze);let Ot=le,En=jl(a,s,qe,be,pt,r,De),ft=(await Sr(qe,En,De,z))[pt.route.id];if(qe.signal.aborted){G.get(z)===ze&&G.delete(z);return}if(w.has(z)){if(uo(ft)||Xr(ft)){ue(z,Ts(void 0));return}}else{if(uo(ft))if(G.delete(z),oe>Ot){ue(z,Ts(void 0));return}else return P.add(z),ue(z,lu(Ke)),Ct(qe,ft,!1,{fetcherSubmission:Ke,preventScrollReset:He});if(Xr(ft)){ve(z,X,ft.error);return}}let Pt=I.navigation.location||I.location,za=Nl(e.history,Pt,ze.signal),Ur=c||l,br=I.navigation.state!=="idle"?As(Ur,I.navigation.location,d):I.matches;Tt(br,"Didn't find any matches after fetcher action");let aa=++le;ye.set(z,aa);let Uo=lu(Ke,ft.data);I.fetchers.set(z,Uo);let{dsMatches:Yi,revalidatingFetchers:pi}=zx(za,De,a,s,e.history,I,br,Ke,Pt,r,!1,re,me,w,Oe,P,Ur,d,e.patchRoutesOnNavigation!=null,[pt.route.id,ft]);pi.filter(pn=>pn.key!==z).forEach(pn=>{let Qi=pn.key,Jd=I.fetchers.get(Qi),ef=lu(void 0,Jd?Jd.data:void 0);I.fetchers.set(Qi,ef),Nt(Qi),pn.controller&&G.set(Qi,pn.controller)}),dt({fetchers:new Map(I.fetchers)});let mi=()=>pi.forEach(pn=>Nt(pn.key));ze.signal.addEventListener("abort",mi);let{loaderResults:gi,fetcherResults:gt}=await Ua(Yi,pi,za,De);if(ze.signal.aborted)return;if(ze.signal.removeEventListener("abort",mi),ye.delete(z),G.delete(z),pi.forEach(pn=>G.delete(pn.key)),I.fetchers.has(z)){let pn=Ts(ft.data);I.fetchers.set(z,pn)}let Nn=fh(gi);if(Nn)return Ct(za,Nn.result,!1,{preventScrollReset:He});if(Nn=fh(gt),Nn)return P.add(Nn.key),Ct(za,Nn.result,!1,{preventScrollReset:He});let{loaderData:Bs,errors:ia}=Wx(I,br,gi,void 0,pi,gt);Cn(aa),I.navigation.state==="loading"&&aa>oe?(Tt(V,"Expected pending action"),K&&K.abort(),Ue(I.navigation.location,{matches:br,loaderData:Bs,errors:ia,fetchers:new Map(I.fetchers)})):(dt({errors:ia,loaderData:Xx(I.loaderData,Bs,br,ia),fetchers:new Map(I.fetchers)}),re=!1)}async function Ye(z,X,ie,be,De,Be,Ge,He,Ke){let Ze=I.fetchers.get(z);ue(z,lu(Ke,Ze?Ze.data:void 0),{flushSync:Ge});let ze=new AbortController,qe=Nl(e.history,ie,ze.signal);if(Be){let Pt=await hn(be,new URL(qe.url).pathname,qe.signal,z);if(Pt.type==="aborted")return;if(Pt.type==="error"){ve(z,X,Pt.error,{flushSync:Ge});return}else if(Pt.matches)be=Pt.matches;else{ve(z,X,ya(404,{pathname:ie}),{flushSync:Ge});return}}let pt=Lh(be,ie);G.set(z,ze);let Ot=le,En=jl(a,s,qe,be,pt,r,De),ft=(await Sr(qe,En,De,z))[pt.route.id];if(G.get(z)===ze&&G.delete(z),!qe.signal.aborted){if(w.has(z)){ue(z,Ts(void 0));return}if(uo(ft))if(oe>Ot){ue(z,Ts(void 0));return}else{P.add(z),await Ct(qe,ft,!1,{preventScrollReset:He});return}if(Xr(ft)){ve(z,X,ft.error);return}ue(z,Ts(ft.data))}}async function Ct(z,X,ie,{submission:be,fetcherSubmission:De,preventScrollReset:Be,replace:Ge}={}){X.response.headers.has("X-Remix-Revalidate")&&(re=!0);let He=X.response.headers.get("Location");Tt(He,"Expected a Location header on the redirect Response"),He=Qx(He,new URL(z.url),d);let Ke=td(I.location,He,{_isRedirect:!0});if(n){let En=!1;if(X.response.headers.has("X-Remix-Reload-Document"))En=!0;else if(yE(He)){const bn=z2(He,!0);En=bn.origin!==t.location.origin||Ca(bn.pathname,d)==null}if(En){Ge?t.location.replace(He):t.location.assign(He);return}}K=null;let Ze=Ge===!0||X.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ze,formAction:qe,formEncType:pt}=I.navigation;!be&&!De&&ze&&qe&&pt&&(be=tA(I.navigation));let Ot=be||De;if(f5.has(X.response.status)&&Ot&&Nr(Ot.formMethod))await $e(Ze,Ke,{submission:{...Ot,formAction:He},preventScrollReset:Be||ne,enableViewTransition:ie?k:void 0});else{let En=Q0(Ke,be);await $e(Ze,Ke,{overrideNavigation:En,fetcherSubmission:De,preventScrollReset:Be||ne,enableViewTransition:ie?k:void 0})}}async function Sr(z,X,ie,be){let De,Be={};try{De=await _5(f,z,X,be,ie,!1)}catch(Ge){return X.filter(He=>He.shouldLoad).forEach(He=>{Be[He.route.id]={type:"error",error:Ge}}),Be}if(z.signal.aborted)return Be;for(let[Ge,He]of Object.entries(De))if(k5(He)){let Ke=He.result;Be[Ge]={type:"redirect",response:S5(Ke,z,Ge,X,d)}}else Be[Ge]=await A5(He);return Be}async function Ua(z,X,ie,be){let De=Sr(ie,z,be,null),Be=Promise.all(X.map(async Ke=>{if(Ke.matches&&Ke.match&&Ke.request&&Ke.controller){let ze=(await Sr(Ke.request,Ke.matches,be,Ke.key))[Ke.match.route.id];return{[Ke.key]:ze}}else return Promise.resolve({[Ke.key]:{type:"error",error:ya(404,{pathname:Ke.path})}})})),Ge=await De,He=(await Be).reduce((Ke,Ze)=>Object.assign(Ke,Ze),{});return{loaderResults:Ge,fetcherResults:He}}function Rt(){re=!0,Oe.forEach((z,X)=>{G.has(X)&&me.add(X),Nt(X)})}function ue(z,X,ie={}){I.fetchers.set(z,X),dt({fetchers:new Map(I.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ve(z,X,ie,be={}){let De=oo(I.matches,X);nt(z),dt({errors:{[De.route.id]:ie},fetchers:new Map(I.fetchers)},{flushSync:(be&&be.flushSync)===!0})}function je(z){return ce.set(z,(ce.get(z)||0)+1),w.has(z)&&w.delete(z),I.fetchers.get(z)||h5}function nt(z){let X=I.fetchers.get(z);G.has(z)&&!(X&&X.state==="loading"&&ye.has(z))&&Nt(z),Oe.delete(z),ye.delete(z),P.delete(z),w.delete(z),me.delete(z),I.fetchers.delete(z)}function Dt(z){let X=(ce.get(z)||0)-1;X<=0?(ce.delete(z),w.add(z)):ce.set(z,X),dt({fetchers:new Map(I.fetchers)})}function Nt(z){let X=G.get(z);X&&(X.abort(),G.delete(z))}function Vn(z){for(let X of z){let ie=je(X),be=Ts(ie.data);I.fetchers.set(X,be)}}function yn(){let z=[],X=!1;for(let ie of P){let be=I.fetchers.get(ie);Tt(be,`Expected fetcher: ${ie}`),be.state==="loading"&&(P.delete(ie),z.push(ie),X=!0)}return Vn(z),X}function Cn(z){let X=[];for(let[ie,be]of ye)if(be<z){let De=I.fetchers.get(ie);Tt(De,`Expected fetcher: ${ie}`),De.state==="loading"&&(Nt(ie),ye.delete(ie),X.push(ie))}return Vn(X),X.length>0}function _e(z,X){let ie=I.blockers.get(z)||ou;return te.get(z)!==X&&te.set(z,X),ie}function Te(z){I.blockers.delete(z),te.delete(z)}function it(z,X){let ie=I.blockers.get(z)||ou;Tt(ie.state==="unblocked"&&X.state==="blocked"||ie.state==="blocked"&&X.state==="blocked"||ie.state==="blocked"&&X.state==="proceeding"||ie.state==="blocked"&&X.state==="unblocked"||ie.state==="proceeding"&&X.state==="unblocked",`Invalid blocker state transition: ${ie.state} -> ${X.state}`);let be=new Map(I.blockers);be.set(z,X),dt({blockers:be})}function We({currentLocation:z,nextLocation:X,historyAction:ie}){if(te.size===0)return;te.size>1&&Fn(!1,"A router only supports one blocker at a time");let be=Array.from(te.entries()),[De,Be]=be[be.length-1],Ge=I.blockers.get(De);if(!(Ge&&Ge.state==="proceeding")&&Be({currentLocation:z,nextLocation:X,historyAction:ie}))return De}function Dn(z){let X=ya(404,{pathname:z}),ie=c||l,{matches:be,route:De}=Jx(ie);return{notFoundMatches:be,route:De,error:X}}function jr(z,X,ie){if(E=z,A=X,T=ie||null,!C&&I.navigation===Y0){C=!0;let be=lr(I.location,I.matches);be!=null&&dt({restoreScrollPosition:be})}return()=>{E=null,A=null,T=null}}function Er(z,X){return T&&T(z,X.map(be=>z4(be,I.loaderData)))||z.key}function or(z,X){if(E&&A){let ie=Er(z,X);E[ie]=A()}}function lr(z,X){if(E){let ie=Er(z,X),be=E[ie];if(typeof be=="number")return be}return null}function Ha(z,X,ie){if(e.patchRoutesOnNavigation)if(z){if(Object.keys(z[0].params).length>0)return{active:!0,matches:Oh(X,ie,d,!0)}}else return{active:!0,matches:Oh(X,ie,d,!0)||[]};return{active:!1,matches:null}}async function hn(z,X,ie,be){if(!e.patchRoutesOnNavigation)return{type:"success",matches:z};let De=z;for(;;){let Be=c==null,Ge=c||l,He=s;try{await e.patchRoutesOnNavigation({signal:ie,path:X,matches:De,fetcherKey:be,patch:(ze,qe)=>{ie.aborted||Gx(ze,qe,Ge,He,a,!1)}})}catch(ze){return{type:"error",error:ze,partialMatches:De}}finally{Be&&!ie.aborted&&(l=[...l])}if(ie.aborted)return{type:"aborted"};let Ke=As(Ge,X,d);if(Ke)return{type:"success",matches:Ke};let Ze=Oh(Ge,X,d,!0);if(!Ze||De.length===Ze.length&&De.every((ze,qe)=>ze.route.id===Ze[qe].route.id))return{type:"success",matches:null};De=Ze}}function Br(z){s={},c=nd(z,a,void 0,s)}function Ra(z,X,ie=!1){let be=c==null;Gx(z,X,c||l,s,a,ie),be&&(l=[...l],dt({}))}return M={get basename(){return d},get future(){return p},get state(){return I},get routes(){return l},get window(){return t},initialize:Me,subscribe:st,enableScrollRestoration:jr,navigate:en,fetch:an,revalidate:wt,createHref:z=>e.history.createHref(z),encodeLocation:z=>e.history.encodeLocation(z),getFetcher:je,deleteFetcher:Dt,dispose:Le,getBlocker:_e,deleteBlocker:Te,patchRoutes:Ra,_internalFetchControllers:G,_internalSetRoutes:Br,_internalSetStateDoNotUseOrYouWillBreakYourApp(z){dt(z)}},M}function y5(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ey(e,t,n,r,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let d=gE(r||".",mE(l),Ca(e.pathname,n)||e.pathname,s==="path");if(r==null&&(d.search=e.search,d.hash=e.hash),(r==null||r===""||r===".")&&c){let f=EE(d.search);if(c.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(d.search),m=p.getAll("index");p.delete("index"),m.filter(E=>E).forEach(E=>p.append("index",E));let y=p.toString();d.search=y?`?${y}`:""}}return n!=="/"&&(d.pathname=n5({basename:n,pathname:d.pathname})),Ns(d)}function Hx(e,t,n){if(!n||!y5(n))return{path:t};if(n.formMethod&&!R5(n.formMethod))return{path:t,error:ya(405,{method:n.formMethod})};let r=()=>({path:t,error:ya(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),l=tD(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Nr(s))return r();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[E,T])=>`${y}${E}=${T}
36
- `,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!Nr(s))return r();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}Tt(typeof FormData=="function","FormData is not available in this environment");let c,d;if(n.formData)c=ry(n.formData),d=n.formData;else if(n.body instanceof FormData)c=ry(n.body),d=n.body;else if(n.body instanceof URLSearchParams)c=n.body,d=Kx(c);else if(n.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(n.body),d=Kx(c)}catch{return r()}let f={formMethod:s,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Nr(f.formMethod))return{path:t,submission:f};let p=Ms(t);return e&&p.search&&EE(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Ns(p),submission:f}}function zx(e,t,n,r,a,s,l,c,d,f,p,m,y,E,T,A,C,x,D,S){let L=S?Xr(S[1])?S[1].error:S[1].data:void 0,M=a.createURL(s.location),I=a.createURL(d),V;if(p&&s.errors){let W=Object.keys(s.errors)[0];V=l.findIndex(re=>re.route.id===W)}else if(S&&Xr(S[1])){let W=S[0];V=l.findIndex(re=>re.route.id===W)-1}let ne=S?S[1].statusCode:void 0,K=ne&&ne>=400,k={currentUrl:M,currentParams:s.matches[0]?.params||{},nextUrl:I,nextParams:l[0].params,...c,actionResult:L,actionStatus:ne},H=l.map((W,re)=>{let{route:me}=W,G=null;if(V!=null&&re>V?G=!1:me.lazy?G=!0:me.loader==null?G=!1:p?G=ty(me,s.loaderData,s.errors):E5(s.loaderData,s.matches[re],W)&&(G=!0),G!==null)return ny(n,r,e,W,f,t,G);let le=K?!1:m||M.pathname+M.search===I.pathname+I.search||M.search!==I.search||b5(s.matches[re],W),oe={...k,defaultShouldRevalidate:le},ye=op(W,oe);return ny(n,r,e,W,f,t,ye,oe)}),Q=[];return T.forEach((W,re)=>{if(p||!l.some(ce=>ce.route.id===W.routeId)||E.has(re))return;let me=s.fetchers.get(re),G=me&&me.state!=="idle"&&me.data===void 0,le=As(C,W.path,x);if(!le){if(D&&G)return;Q.push({key:re,routeId:W.routeId,path:W.path,matches:null,match:null,request:null,controller:null});return}if(A.has(re))return;let oe=Lh(le,W.path),ye=new AbortController,P=Nl(a,W.path,ye.signal),Oe=null;if(y.has(re))y.delete(re),Oe=jl(n,r,P,le,oe,f,t);else if(G)m&&(Oe=jl(n,r,P,le,oe,f,t));else{let ce={...k,defaultShouldRevalidate:K?!1:m};op(oe,ce)&&(Oe=jl(n,r,P,le,oe,f,t,ce))}Oe&&Q.push({key:re,routeId:W.routeId,path:W.path,matches:Oe,match:oe,request:P,controller:ye})}),{dsMatches:H,revalidatingFetchers:Q}}function ty(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function E5(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function b5(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function op(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Gx(e,t,n,r,a,s){let l;if(e){let f=r[e];Tt(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),l=f.children}else l=n;let c=[],d=[];if(t.forEach(f=>{let p=l.find(m=>W2(f,m));p?d.push({existingRoute:p,newRoute:f}):c.push(f)}),c.length>0){let f=nd(c,a,[e||"_","patch",String(l?.length||"0")],r);l.push(...f)}if(s&&d.length>0)for(let f=0;f<d.length;f++){let{existingRoute:p,newRoute:m}=d[f],y=p,[E]=nd([m],a,[],{},!0);Object.assign(y,{element:E.element?E.element:y.element,errorElement:E.errorElement?E.errorElement:y.errorElement,hydrateFallbackElement:E.hydrateFallbackElement?E.hydrateFallbackElement:y.hydrateFallbackElement})}}function W2(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((n,r)=>t.children?.some(a=>W2(n,a))):!1}var Vx=new WeakMap,X2=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(Tt(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let s=a.lazy[e];if(!s)return;let l=Vx.get(a);l||(l={},Vx.set(a,l));let c=l[e];if(c)return c;let d=(async()=>{let f=j4(e),m=a[e]!==void 0&&e!=="hasErrorBoundary";if(f)Fn(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(m)Fn(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await s();y!=null&&(Object.assign(a,{[e]:y}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(y=>y===void 0)&&(a.lazy=void 0))})();return l[e]=d,d},qx=new WeakMap;function v5(e,t,n,r,a){let s=n[e.id];if(Tt(s,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=qx.get(s);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let m=(async()=>{Tt(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),E={};for(let T in y){let A=y[T];if(A===void 0)continue;let C=U4(T),D=s[T]!==void 0&&T!=="hasErrorBoundary";C?Fn(!C,"Route property "+T+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?Fn(!D,`Route "${s.id}" has a static property "${T}" defined but its lazy function is also returning a value for this property. The lazy route property "${T}" will be ignored.`):E[T]=A}Object.assign(s,E),Object.assign(s,{...r(s),lazy:void 0})})();return qx.set(s,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let l=Object.keys(e.lazy),c=[],d;for(let p of l){if(a&&a.includes(p))continue;let m=X2({key:p,route:e,manifest:n,mapRouteProperties:r});m&&(c.push(m),p===t&&(d=m))}let f=c.length>0?Promise.all(c).then(()=>{}):void 0;return f?.catch(()=>{}),d?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:d}}async function Yx(e){let t=e.matches.filter(a=>a.shouldLoad),n={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,s)=>{n[t[s].route.id]=a}),n}async function T5(e){return e.matches.some(t=>t.route.unstable_middleware)?Z2(e,!1,()=>Yx(e),(t,n)=>({[n]:{type:"error",result:t}})):Yx(e)}async function Z2(e,t,n,r){let{matches:a,request:s,params:l,context:c}=e,d={handlerResult:void 0};try{let f=a.flatMap(m=>m.route.unstable_middleware?m.route.unstable_middleware.map(y=>[m.route.id,y]):[]),p=await J2({request:s,params:l,context:c},f,t,d,n);return t?p:d.handlerResult}catch(f){if(!d.middlewareError)throw f;let p=await r(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,p):p}}async function J2(e,t,n,r,a,s=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason?l.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${l.method} ${l.url}`);let c=t[s];if(!c)return r.handlerResult=await a(),r.handlerResult;let[d,f]=c,p=!1,m,y=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await J2(e,t,n,r,a,s+1)};try{let E=await f({request:e.request,params:e.params,context:e.context},y);return p?E===void 0?m:E:y()}catch(E){throw r.middlewareError?r.middlewareError.error!==E&&(r.middlewareError={routeId:d,error:E}):r.middlewareError={routeId:d,error:E},E}}function eD(e,t,n,r,a){let s=X2({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),l=v5(r.route,Nr(n.method)?"action":"loader",t,e,a);return{middleware:s,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function ny(e,t,n,r,a,s,l,c=null){let d=!1,f=eD(e,t,n,r,a);return{...r,_lazyPromises:f,shouldLoad:l,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return d=!0,c?typeof p=="boolean"?op(r,{...c,defaultShouldRevalidate:p}):op(r,c):l},resolve(p){return d||l||p&&!Nr(n.method)&&(r.route.lazy||r.route.loader)?x5({request:n,match:r,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:p,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function jl(e,t,n,r,a,s,l,c=null){return r.map(d=>d.route.id!==a.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:eD(e,t,n,d,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ny(e,t,n,d,s,l,!0,c))}async function _5(e,t,n,r,a,s){n.some(f=>f._lazyPromises?.middleware)&&await Promise.all(n.map(f=>f._lazyPromises?.middleware));let l={request:t,params:n[0].params,context:a,matches:n},d=await e({...l,fetcherKey:r,unstable_runClientMiddleware:f=>{let p=l;return Z2(p,!1,()=>f({...p,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(m,y)=>({[y]:{type:"error",result:m}}))}});try{await Promise.all(n.flatMap(f=>[f._lazyPromises?.handler,f._lazyPromises?.route]))}catch{}return d}async function x5({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:a,scopedContext:s}){let l,c,d=Nr(e.method),f=d?"action":"loader",p=m=>{let y,E=new Promise((C,x)=>y=x);c=()=>y(),e.signal.addEventListener("abort",c);let T=C=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${t.route.id}]`)):m({request:e,params:t.params,context:s},...C!==void 0?[C]:[]),A=(async()=>{try{return{type:"data",result:await(a?a(x=>T(x)):T())}}catch(C){return{type:"error",result:C}}})();return Promise.race([A,E])};try{let m=d?t.route.action:t.route.loader;if(n||r)if(m){let y,[E]=await Promise.all([p(m).catch(T=>{y=T}),n,r]);if(y!==void 0)throw y;l=E}else{await n;let y=d?t.route.action:t.route.loader;if(y)[l]=await Promise.all([p(y),r]);else if(f==="action"){let E=new URL(e.url),T=E.pathname+E.search;throw ya(405,{method:e.method,pathname:T,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(m)l=await p(m);else{let y=new URL(e.url),E=y.pathname+y.search;throw ya(404,{pathname:E})}}catch(m){return{type:"error",result:m}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function A5(e){let{result:t,type:n}=e;if(nD(t)){let r;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new sp(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?eA(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:new sp(t.init?.status||500,void 0,t.data),statusCode:rd(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:rd(t)?t.status:void 0}:eA(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 S5(e,t,n,r,a){let s=e.headers.get("Location");if(Tt(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!yE(s)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);s=ey(new URL(t.url),l,a,s),e.headers.set("Location",s)}return e}function Qx(e,t,n){if(yE(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=Ca(a.pathname,n)!=null;if(a.origin===t.origin&&s)return a.pathname+a.search+a.hash}return e}function Nl(e,t,n,r){let a=e.createURL(tD(t)).toString(),s={signal:n};if(r&&Nr(r.formMethod)){let{formMethod:l,formEncType:c}=r;s.method=l.toUpperCase(),c==="application/json"?(s.headers=new Headers({"Content-Type":c}),s.body=JSON.stringify(r.json)):c==="text/plain"?s.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?s.body=ry(r.formData):s.body=r.formData}return new Request(a,s)}function ry(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Kx(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function C5(e,t,n,r=!1,a=!1){let s={},l=null,c,d=!1,f={},p=n&&Xr(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let y=m.route.id,E=t[y];if(Tt(!uo(E),"Cannot handle redirect results in processLoaderData"),Xr(E)){let T=E.error;if(p!==void 0&&(T=p,p=void 0),l=l||{},a)l[y]=T;else{let A=oo(e,y);l[A.route.id]==null&&(l[A.route.id]=T)}r||(s[y]=K2),d||(d=!0,c=rd(E.error)?E.error.status:500),E.headers&&(f[y]=E.headers)}else s[y]=E.data,E.statusCode&&E.statusCode!==200&&!d&&(c=E.statusCode),E.headers&&(f[y]=E.headers)}),p!==void 0&&n&&(l={[n[0]]:p},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:l,statusCode:c||200,loaderHeaders:f}}function Wx(e,t,n,r,a,s){let{loaderData:l,errors:c}=C5(t,n,r);return a.filter(d=>!d.matches||d.matches.some(f=>f.shouldLoad)).forEach(d=>{let{key:f,match:p,controller:m}=d,y=s[f];if(Tt(y,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Xr(y)){let E=oo(e.matches,p?.route.id);c&&c[E.route.id]||(c={...c,[E.route.id]:y.error}),e.fetchers.delete(f)}else if(uo(y))Tt(!1,"Unhandled fetcher revalidation redirect");else{let E=Ts(y.data);e.fetchers.set(f,E)}}),{loaderData:l,errors:c}}function Xx(e,t,n,r){let a=Object.entries(t).filter(([,s])=>s!==K2).reduce((s,[l,c])=>(s[l]=c,s),{});for(let s of n){let l=s.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&s.route.loader&&(a[l]=e[l]),r&&r.hasOwnProperty(l))break}return a}function Zx(e){return e?Xr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function oo(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Jx(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ya(e,{pathname:t,routeId:n,method:r,type:a,message:s}={}){let l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(l="Not Found",c=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new sp(e||500,l,new Error(c),!0)}function fh(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(uo(a))return{key:r,result:a}}}function tD(e){let t=typeof e=="string"?Ms(e):e;return Ns({...t,hash:""})}function D5(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function k5(e){return nD(e.result)&&d5.has(e.result.status)}function Xr(e){return e.type==="error"}function uo(e){return(e&&e.type)==="redirect"}function eA(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function nD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function R5(e){return u5.has(e.toUpperCase())}function Nr(e){return l5.has(e.toUpperCase())}function EE(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Lh(e,t){let n=typeof t=="string"?Ms(t).search:t.search;if(e[e.length-1].route.index&&EE(n||""))return e[e.length-1];let r=q2(e);return r[r.length-1]}function tA(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:s,json:l}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Q0(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 I5(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 lu(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 w5(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 Ts(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 N5(e,t){try{let n=e.sessionStorage.getItem(Q2);if(n){let r=JSON.parse(n);for(let[a,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(a,new Set(s||[]))}}catch{}}function O5(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(Q2,JSON.stringify(n))}catch(r){Fn(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function L5(){let e,t,n=new Promise((r,a)=>{e=async s=>{r(s);try{await n}catch{}},t=async s=>{a(s);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Lo=N.createContext(null);Lo.displayName="DataRouter";var Dd=N.createContext(null);Dd.displayName="DataRouterState";N.createContext(!1);var bE=N.createContext({isTransitioning:!1});bE.displayName="ViewTransition";var rD=N.createContext(new Map);rD.displayName="Fetchers";var M5=N.createContext(null);M5.displayName="Await";var ui=N.createContext(null);ui.displayName="Navigation";var Vp=N.createContext(null);Vp.displayName="Location";var Fa=N.createContext({outlet:null,matches:[],isDataRoute:!1});Fa.displayName="Route";var vE=N.createContext(null);vE.displayName="RouteError";function P5(e,{relative:t}={}){Tt(kd(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=N.useContext(ui),{hash:a,pathname:s,search:l}=Id(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:si([n,s])),r.createHref({pathname:c,search:l,hash:a})}function kd(){return N.useContext(Vp)!=null}function Mo(){return Tt(kd(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(Vp).location}var aD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function iD(e){N.useContext(ui).static||N.useLayoutEffect(e)}function TE(){let{isDataRoute:e}=N.useContext(Fa);return e?W5():$5()}function $5(){Tt(kd(),"useNavigate() may be used only in the context of a <Router> component.");let e=N.useContext(Lo),{basename:t,navigator:n}=N.useContext(ui),{matches:r}=N.useContext(Fa),{pathname:a}=Mo(),s=JSON.stringify(mE(r)),l=N.useRef(!1);return iD(()=>{l.current=!0}),N.useCallback((d,f={})=>{if(Fn(l.current,aD),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=gE(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:si([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,s,a,e])}var F5=N.createContext(null);function j5(e){let t=N.useContext(Fa).outlet;return t&&N.createElement(F5.Provider,{value:e},t)}function Rd(){let{matches:e}=N.useContext(Fa),t=e[e.length-1];return t?t.params:{}}function Id(e,{relative:t}={}){let{matches:n}=N.useContext(Fa),{pathname:r}=Mo(),a=JSON.stringify(mE(n));return N.useMemo(()=>gE(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function B5(e,t,n,r){Tt(kd(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=N.useContext(ui),{matches:s}=N.useContext(Fa),l=s[s.length-1],c=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",p=l&&l.route;{let x=p&&p.path||"";oD(d,!p||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${x}">) 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.
37
-
38
- Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let m=Mo(),y;y=m;let E=y.pathname||"/",T=E;if(f!=="/"){let x=f.replace(/^\//,"").split("/");T="/"+E.replace(/^\//,"").split("/").slice(x.length).join("/")}let A=As(e,{pathname:T});return Fn(p||A!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Fn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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.`),V5(A&&A.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:si([f,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:si([f,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r)}function U5(){let e=sD(),t=rd(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:s},"ErrorBoundary")," or"," ",N.createElement("code",{style:s},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:a},n):null,l)}var H5=N.createElement(U5,null),z5=class extends N.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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?N.createElement(Fa.Provider,{value:this.props.routeContext},N.createElement(vE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function G5({routeContext:e,match:t,children:n}){let r=N.useContext(Lo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(Fa.Provider,{value:e},n)}function V5(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=n?.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);Tt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:m}=n,y=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!m||m[f.route.id]===void 0);if(f.route.lazy||y){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let m,y=!1,E=null,T=null;n&&(m=s&&f.route.id?s[f.route.id]:void 0,E=f.route.errorElement||H5,l&&(c<0&&p===0?(oD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,T=null):c===p&&(y=!0,T=f.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,p+1)),C=()=>{let x;return m?x=E:y?x=T:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(G5,{match:f,routeContext:{outlet:d,matches:A,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(z5,{location:n.location,revalidation:n.revalidation,component:E,error:m,children:C(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):C()},null)}function _E(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function q5(e){let t=N.useContext(Lo);return Tt(t,_E(e)),t}function Y5(e){let t=N.useContext(Dd);return Tt(t,_E(e)),t}function Q5(e){let t=N.useContext(Fa);return Tt(t,_E(e)),t}function xE(e){let t=Q5(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function K5(){return xE("useRouteId")}function sD(){let e=N.useContext(vE),t=Y5("useRouteError"),n=xE("useRouteError");return e!==void 0?e:t.errors?.[n]}function W5(){let{router:e}=q5("useNavigate"),t=xE("useNavigate"),n=N.useRef(!1);return iD(()=>{n.current=!0}),N.useCallback(async(a,s={})=>{Fn(n.current,aD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var nA={};function oD(e,t,n){!t&&!nA[e]&&(nA[e]=!0,Fn(!1,n))}var rA={};function aA(e,t){!e&&!rA[t]&&(rA[t]=!0,console.warn(t))}function X5(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Fn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:N.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Fn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Fn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Z5=["HydrateFallback","hydrateFallbackElement"],J5=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function e6({router:e,flushSync:t}){let[n,r]=N.useState(e.state),[a,s]=N.useState(),[l,c]=N.useState({isTransitioning:!1}),[d,f]=N.useState(),[p,m]=N.useState(),[y,E]=N.useState(),T=N.useRef(new Map),A=N.useCallback((S,{deletedFetchers:L,flushSync:M,viewTransitionOpts:I})=>{S.fetchers.forEach((ne,K)=>{ne.data!==void 0&&T.current.set(K,ne.data)}),L.forEach(ne=>T.current.delete(ne)),aA(M===!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 V=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(aA(I==null||V,"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."),!I||!V){t&&M?t(()=>r(S)):N.startTransition(()=>r(S));return}if(t&&M){t(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:I.currentLocation,nextLocation:I.nextLocation})});let ne=e.window.document.startViewTransition(()=>{t(()=>r(S))});ne.finished.finally(()=>{t(()=>{f(void 0),m(void 0),s(void 0),c({isTransitioning:!1})})}),t(()=>m(ne));return}p?(d&&d.resolve(),p.skipTransition(),E({state:S,currentLocation:I.currentLocation,nextLocation:I.nextLocation})):(s(S),c({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}))},[e.window,t,p,d]);N.useLayoutEffect(()=>e.subscribe(A),[e,A]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new J5)},[l]),N.useEffect(()=>{if(d&&a&&e.window){let S=a,L=d.promise,M=e.window.document.startViewTransition(async()=>{N.startTransition(()=>r(S)),await L});M.finished.finally(()=>{f(void 0),m(void 0),s(void 0),c({isTransitioning:!1})}),m(M)}},[a,d,e.window]),N.useEffect(()=>{d&&a&&n.location.key===a.location.key&&d.resolve()},[d,p,n.location,a]),N.useEffect(()=>{!l.isTransitioning&&y&&(s(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),E(void 0))},[l.isTransitioning,y]);let C=N.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:S=>e.navigate(S),push:(S,L,M)=>e.navigate(S,{state:L,preventScrollReset:M?.preventScrollReset}),replace:(S,L,M)=>e.navigate(S,{replace:!0,state:L,preventScrollReset:M?.preventScrollReset})}),[e]),x=e.basename||"/",D=N.useMemo(()=>({router:e,navigator:C,static:!1,basename:x}),[e,C,x]);return N.createElement(N.Fragment,null,N.createElement(Lo.Provider,{value:D},N.createElement(Dd.Provider,{value:n},N.createElement(rD.Provider,{value:T.current},N.createElement(bE.Provider,{value:l},N.createElement(a6,{basename:x,location:n.location,navigationType:n.historyAction,navigator:C},N.createElement(t6,{routes:e.routes,future:e.future,state:n})))))),null)}var t6=N.memo(n6);function n6({routes:e,future:t,state:n}){return B5(e,void 0,n,t)}function r6(e){return j5(e.context)}function a6({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){Tt(!kd(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Ms(n));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:y="default"}=n,E=N.useMemo(()=>{let T=Ca(d,l);return T==null?null:{location:{pathname:T,search:f,hash:p,state:m,key:y},navigationType:r}},[l,d,f,p,m,y,r]);return Fn(E!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:N.createElement(ui.Provider,{value:c},N.createElement(Vp.Provider,{children:t,value:E}))}var Mh="get",Ph="application/x-www-form-urlencoded";function qp(e){return e!=null&&typeof e.tagName=="string"}function i6(e){return qp(e)&&e.tagName.toLowerCase()==="button"}function s6(e){return qp(e)&&e.tagName.toLowerCase()==="form"}function o6(e){return qp(e)&&e.tagName.toLowerCase()==="input"}function l6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c6(e,t){return e.button===0&&(!t||t==="_self")&&!l6(e)}var hh=null;function u6(){if(hh===null)try{new FormData(document.createElement("form"),0),hh=!1}catch{hh=!0}return hh}var d6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function K0(e){return e!=null&&!d6.has(e)?(Fn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ph}"`),null):e}function f6(e,t){let n,r,a,s,l;if(s6(e)){let c=e.getAttribute("action");r=c?Ca(c,t):null,n=e.getAttribute("method")||Mh,a=K0(e.getAttribute("enctype"))||Ph,s=new FormData(e)}else if(i6(e)||o6(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Ca(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Mh,a=K0(e.getAttribute("formenctype"))||K0(c.getAttribute("enctype"))||Ph,s=new FormData(c,e),!u6()){let{name:f,type:p,value:m}=e;if(p==="image"){let y=f?`${f}.`:"";s.append(`${y}x`,"0"),s.append(`${y}y`,"0")}else f&&s.append(f,m)}}else{if(qp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Mh,r=null,a=Ph,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function AE(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function h6(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Ca(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function p6(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function m6(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 g6(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await p6(s,n);return l.links?l.links():[]}return[]}));return v6(r.flat(1).filter(m6).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function iA(e,t,n,r,a,s){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,c=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,f)=>l(d,f)||c(d,f)):s==="data"?t.filter((d,f)=>{let p=r.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(l(d,f)||c(d,f))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function y6(e,t,{includeHydrateFallback:n}={}){return E6(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function E6(e){return[...new Set(e)]}function b6(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function v6(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(b6(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function lD(){let e=N.useContext(Lo);return AE(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function T6(){let e=N.useContext(Dd);return AE(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var SE=N.createContext(void 0);SE.displayName="FrameworkContext";function cD(){let e=N.useContext(SE);return AE(e,"You must render this element inside a <HydratedRouter> element"),e}function _6(e,t){let n=N.useContext(SE),[r,a]=N.useState(!1),[s,l]=N.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:m}=t,y=N.useRef(null);N.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=x=>{x.forEach(D=>{l(D.isIntersecting)})},C=new IntersectionObserver(A,{threshold:.5});return y.current&&C.observe(y.current),()=>{C.disconnect()}}},[e]),N.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let E=()=>{a(!0)},T=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,y,{}]:[s,y,{onFocus:cu(c,E),onBlur:cu(d,T),onMouseEnter:cu(f,E),onMouseLeave:cu(p,T),onTouchStart:cu(m,E)}]:[!1,y,{}]}function cu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function x6({page:e,...t}){let{router:n}=lD(),r=N.useMemo(()=>As(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?N.createElement(S6,{page:e,matches:r,...t}):null}function A6(e){let{manifest:t,routeModules:n}=cD(),[r,a]=N.useState([]);return N.useEffect(()=>{let s=!1;return g6(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function S6({page:e,matches:t,...n}){let r=Mo(),{manifest:a,routeModules:s}=cD(),{basename:l}=lD(),{loaderData:c,matches:d}=T6(),f=N.useMemo(()=>iA(e,t,d,a,r,"data"),[e,t,d,a,r]),p=N.useMemo(()=>iA(e,t,d,a,r,"assets"),[e,t,d,a,r]),m=N.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,A=!1;if(t.forEach(x=>{let D=a.routes[x.route.id];!D||!D.hasLoader||(!f.some(S=>S.route.id===x.route.id)&&x.route.id in c&&s[x.route.id]?.shouldRevalidate||D.hasClientLoader?A=!0:T.add(x.route.id))}),T.size===0)return[];let C=h6(e,l,"data");return A&&T.size>0&&C.searchParams.set("_routes",t.filter(x=>T.has(x.route.id)).map(x=>x.route.id).join(",")),[C.pathname+C.search]},[l,c,r,a,f,t,e,s]),y=N.useMemo(()=>y6(p,a),[p,a]),E=A6(p);return N.createElement(N.Fragment,null,m.map(T=>N.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...n})),y.map(T=>N.createElement("link",{key:T,rel:"modulepreload",href:T,...n})),E.map(({key:T,link:A})=>N.createElement("link",{key:T,...A})))}function C6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var uD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{uD&&(window.__reactRouterVersion="7.7.1")}catch{}function D6(e,t){return g5({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:M4({window:t?.window}),hydrationData:k6(),routes:e,mapRouteProperties:X5,hydrationRouteProperties:Z5,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function k6(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:R6(e.errors)}),e}function R6(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new sp(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let s=window[a.__subType];if(typeof s=="function")try{let l=new s(a.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let s=new Error(a.message);s.stack="",n[r]=s}}else n[r]=a;return n}var dD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fD=N.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,state:c,target:d,to:f,preventScrollReset:p,viewTransition:m,...y},E){let{basename:T}=N.useContext(ui),A=typeof f=="string"&&dD.test(f),C,x=!1;if(typeof f=="string"&&A&&(C=f,uD))try{let K=new URL(window.location.href),k=f.startsWith("//")?new URL(K.protocol+f):new URL(f),H=Ca(k.pathname,T);k.origin===K.origin&&H!=null?f=H+k.search+k.hash:x=!0}catch{Fn(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=P5(f,{relative:a}),[S,L,M]=_6(r,y),I=O6(f,{replace:l,state:c,target:d,preventScrollReset:p,relative:a,viewTransition:m});function V(K){t&&t(K),K.defaultPrevented||I(K)}let ne=N.createElement("a",{...y,...M,href:C||D,onClick:x||s?t:V,ref:C6(E,L),target:d,"data-discover":!A&&n==="render"?"true":void 0});return S&&!A?N.createElement(N.Fragment,null,ne,N.createElement(x6,{page:D})):ne});fD.displayName="Link";var I6=N.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:c,children:d,...f},p){let m=Id(l,{relative:f.relative}),y=Mo(),E=N.useContext(Dd),{navigator:T,basename:A}=N.useContext(ui),C=E!=null&&F6(m)&&c===!0,x=T.encodeLocation?T.encodeLocation(m).pathname:m.pathname,D=y.pathname,S=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;n||(D=D.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&A&&(S=Ca(S,A)||S);const L=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let M=D===x||!a&&D.startsWith(x)&&D.charAt(L)==="/",I=S!=null&&(S===x||!a&&S.startsWith(x)&&S.charAt(x.length)==="/"),V={isActive:M,isPending:I,isTransitioning:C},ne=M?t:void 0,K;typeof r=="function"?K=r(V):K=[r,M?"active":null,I?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let k=typeof s=="function"?s(V):s;return N.createElement(fD,{...f,"aria-current":ne,className:K,ref:p,style:k,to:l,viewTransition:c},typeof d=="function"?d(V):d)});I6.displayName="NavLink";var w6=N.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=Mh,action:c,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:m,...y},E)=>{let T=P6(),A=$6(c,{relative:f}),C=l.toLowerCase()==="get"?"get":"post",x=typeof c=="string"&&dD.test(c),D=S=>{if(d&&d(S),S.defaultPrevented)return;S.preventDefault();let L=S.nativeEvent.submitter,M=L?.getAttribute("formmethod")||l;T(L||S.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:s,relative:f,preventScrollReset:p,viewTransition:m})};return N.createElement("form",{ref:E,method:C,action:A,onSubmit:r?d:D,...y,"data-discover":!x&&e==="render"?"true":void 0})});w6.displayName="Form";function N6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hD(e){let t=N.useContext(Lo);return Tt(t,N6(e)),t}function O6(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let c=TE(),d=Mo(),f=Id(e,{relative:s});return N.useCallback(p=>{if(c6(p,t)){p.preventDefault();let m=n!==void 0?n:Ns(d)===Ns(f);c(e,{replace:m,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[d,c,f,n,r,t,e,a,s,l])}var L6=0,M6=()=>`__${String(++L6)}__`;function P6(){let{router:e}=hD("useSubmit"),{basename:t}=N.useContext(ui),n=K5();return N.useCallback(async(r,a={})=>{let{action:s,method:l,encType:c,formData:d,body:f}=f6(r,t);if(a.navigate===!1){let p=a.fetcherKey||M6();await e.fetch(p,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function $6(e,{relative:t}={}){let{basename:n}=N.useContext(ui),r=N.useContext(Fa);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Id(e||".",{relative:t})},l=Mo();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(p=>p==="")){c.delete("index"),d.filter(m=>m).forEach(m=>c.append("index",m));let p=c.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:si([n,s.pathname])),Ns(s)}function F6(e,{relative:t}={}){let n=N.useContext(bE);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=hD("useViewTransitionState"),a=Id(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ca(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ca(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ip(a.pathname,l)!=null||ip(a.pathname,s)!=null}function j6(e){return N.createElement(e6,{flushSync:$2.flushSync,...e})}function pD(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=pD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function $n(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=pD(e))&&(r&&(r+=" "),r+=t);return r}const CE=t4,sA=e=>e,B6=()=>{let e=sA;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sA}}},U6=B6(),H6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ps(e,t,n="Mui"){const r=H6[t];return r?`${n}-${r}`:`${U6.generate(e)}-${t}`}function $s(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Ps(e,a,n)}),r}function z6(e){return Ps("MuiSvgIcon",e)}$s("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);function lp(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const s=a;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const l=e[s],c=t[s];if(!c)r[s]=l||{};else if(!l)r[s]=c;else{r[s]={...c};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const f=d;r[s][f]=lp(l[f],c[f],n)}}}else s==="className"&&n&&t.className?r.className=$n(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}const G6=N.createContext(void 0);function V6(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?lp(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?lp(a,r,t.components.mergeClassNameAndStyle):r}function q6({props:e,name:t}){const n=N.useContext(G6);return V6({props:e,name:t,theme:{components:n}})}function ec(e){return q6(e)}const ad={black:"#000",white:"#fff"},Y6={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Tl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},_l={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},uu={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},xl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Al={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Sl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var W0={exports:{}},Bt={};/**
39
- * @license React
40
- * react-is.production.js
41
- *
42
- * Copyright (c) Meta Platforms, Inc. and affiliates.
43
- *
44
- * This source code is licensed under the MIT license found in the
45
- * LICENSE file in the root directory of this source tree.
46
- */var oA;function Q6(){if(oA)return Bt;oA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function T(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case e:switch(A=A.type,A){case n:case a:case r:case d:case f:case y:return A;default:switch(A=A&&A.$$typeof,A){case l:case c:case m:case p:return A;case s:return A;default:return C}}case t:return C}}}return Bt.ContextConsumer=s,Bt.ContextProvider=l,Bt.Element=e,Bt.ForwardRef=c,Bt.Fragment=n,Bt.Lazy=m,Bt.Memo=p,Bt.Portal=t,Bt.Profiler=a,Bt.StrictMode=r,Bt.Suspense=d,Bt.SuspenseList=f,Bt.isContextConsumer=function(A){return T(A)===s},Bt.isContextProvider=function(A){return T(A)===l},Bt.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},Bt.isForwardRef=function(A){return T(A)===c},Bt.isFragment=function(A){return T(A)===n},Bt.isLazy=function(A){return T(A)===m},Bt.isMemo=function(A){return T(A)===p},Bt.isPortal=function(A){return T(A)===t},Bt.isProfiler=function(A){return T(A)===a},Bt.isStrictMode=function(A){return T(A)===r},Bt.isSuspense=function(A){return T(A)===d},Bt.isSuspenseList=function(A){return T(A)===f},Bt.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===a||A===r||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===p||A.$$typeof===l||A.$$typeof===s||A.$$typeof===c||A.$$typeof===E||A.getModuleId!==void 0)},Bt.typeOf=T,Bt}var lA;function K6(){return lA||(lA=1,W0.exports=Q6()),W0.exports}var mD=K6();function $i(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gD(e){if(N.isValidElement(e)||mD.isValidElementType(e)||!$i(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=gD(e[n])}),t}function ea(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return $i(e)&&$i(t)&&Object.keys(t).forEach(a=>{N.isValidElement(t[a])||mD.isValidElementType(t[a])?r[a]=t[a]:$i(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&$i(e[a])?r[a]=ea(e[a],t[a],n):n.clone?r[a]=$i(t[a])?gD(t[a]):t[a]:r[a]=t[a]}),r}function So(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function W6(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function DE(e,t=0,n=1){return W6(e,t,n)}function X6(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Os(e){if(e.type)return e;if(e.charAt(0)==="#")return Os(X6(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(So(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(So(10,a))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:a}}const Z6=e=>{const t=Os(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ku=(e,t)=>{try{return Z6(e)}catch{return e}};function Yp(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,s)=>s<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function yD(e){e=Os(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=(f,p=(f+n/30)%12)=>a-s*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Yp({type:c,values:d})}function ay(e){e=Os(e);let t=e.type==="hsl"||e.type==="hsla"?Os(yD(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function J6(e,t){const n=ay(e),r=ay(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function iy(e,t){return e=Os(e),t=DE(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yp(e)}function ph(e,t,n){try{return iy(e,t)}catch{return e}}function kE(e,t){if(e=Os(e),t=DE(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Yp(e)}function Vt(e,t,n){try{return kE(e,t)}catch{return e}}function RE(e,t){if(e=Os(e),t=DE(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Yp(e)}function qt(e,t,n){try{return RE(e,t)}catch{return e}}function eL(e,t=.15){return ay(e)>.5?kE(e,t):RE(e,t)}function mh(e,t,n){try{return eL(e,t)}catch{return e}}function ED(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ad.white,default:ad.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const tL=ED();function bD(){return{text:{primary:ad.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ad.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const cA=bD();function uA(e,t,n,r){const a=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=RE(e.main,a):t==="dark"&&(e.dark=kE(e.main,s)))}function nL(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[700],light:xl[400],dark:xl[800]}}function rL(e="light"){return e==="dark"?{main:Tl[200],light:Tl[50],dark:Tl[400]}:{main:Tl[500],light:Tl[300],dark:Tl[700]}}function aL(e="light"){return e==="dark"?{main:_l[500],light:_l[300],dark:_l[700]}:{main:_l[700],light:_l[400],dark:_l[800]}}function iL(e="light"){return e==="dark"?{main:Al[400],light:Al[300],dark:Al[700]}:{main:Al[700],light:Al[500],dark:Al[900]}}function sL(e="light"){return e==="dark"?{main:Sl[400],light:Sl[300],dark:Sl[700]}:{main:Sl[800],light:Sl[500],dark:Sl[900]}}function oL(e="light"){return e==="dark"?{main:uu[400],light:uu[300],dark:uu[700]}:{main:"#ed6c02",light:uu[500],dark:uu[900]}}function IE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,s=e.primary||nL(t),l=e.secondary||rL(t),c=e.error||aL(t),d=e.info||iL(t),f=e.success||sL(t),p=e.warning||oL(t);function m(T){return J6(T,cA.text.primary)>=n?cA.text.primary:tL.text.primary}const y=({color:T,name:A,mainShade:C=500,lightShade:x=300,darkShade:D=700})=>{if(T={...T},!T.main&&T[C]&&(T.main=T[C]),!T.hasOwnProperty("main"))throw new Error(So(11,A?` (${A})`:"",C));if(typeof T.main!="string")throw new Error(So(12,A?` (${A})`:"",JSON.stringify(T.main)));return uA(T,"light",x,r),uA(T,"dark",D,r),T.contrastText||(T.contrastText=m(T.main)),T};let E;return t==="light"?E=ED():t==="dark"&&(E=bD()),ea({common:{...ad},mode:t,primary:y({color:s,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:d,name:"info"}),success:y({color:f,name:"success"}),grey:Y6,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...E},a)}function lL(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function cL(e){return Math.round(e*1e5)/1e5}const dA={textTransform:"uppercase"},fA='"Roboto", "Helvetica", "Arial", sans-serif';function uL(e,t){const{fontFamily:n=fA,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:p,...m}=typeof t=="function"?t(e):t,y=r/14,E=p||(C=>`${C/d*y}rem`),T=(C,x,D,S,L)=>({fontFamily:n,fontWeight:C,fontSize:E(x),lineHeight:D,...n===fA?{letterSpacing:`${cL(S/x)}em`}:{},...L,...f}),A={h1:T(a,96,1.167,-1.5),h2:T(a,60,1.2,-.5),h3:T(s,48,1.167,0),h4:T(s,34,1.235,.25),h5:T(s,24,1.334,0),h6:T(l,20,1.6,.15),subtitle1:T(s,16,1.75,.15),subtitle2:T(l,14,1.57,.1),body1:T(s,16,1.5,.15),body2:T(s,14,1.43,.15),button:T(l,14,1.75,.4,dA),caption:T(s,12,1.66,.4),overline:T(s,12,2.66,1,dA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ea({htmlFontSize:d,pxToRem:E,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c,...A},m,{clone:!1})}function cn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(",")}const dL=["none",cn(0,2,1,-1,0,1,1,0,0,1,3,0),cn(0,3,1,-2,0,2,2,0,0,1,5,0),cn(0,3,3,-2,0,3,4,0,0,1,8,0),cn(0,2,4,-1,0,4,5,0,0,1,10,0),cn(0,3,5,-1,0,5,8,0,0,1,14,0),cn(0,3,5,-1,0,6,10,0,0,1,18,0),cn(0,4,5,-2,0,7,10,1,0,2,16,1),cn(0,5,5,-3,0,8,10,1,0,3,14,2),cn(0,5,6,-3,0,9,12,1,0,3,16,2),cn(0,6,6,-3,0,10,14,1,0,4,18,3),cn(0,6,7,-4,0,11,15,1,0,4,20,3),cn(0,7,8,-4,0,12,17,2,0,5,22,4),cn(0,7,8,-4,0,13,19,2,0,5,24,4),cn(0,7,9,-4,0,14,21,2,0,5,26,4),cn(0,8,9,-5,0,15,22,2,0,6,28,5),cn(0,8,10,-5,0,16,24,2,0,6,30,5),cn(0,8,11,-5,0,17,26,2,0,6,32,5),cn(0,9,11,-5,0,18,28,2,0,7,34,6),cn(0,9,12,-6,0,19,29,2,0,7,36,6),cn(0,10,13,-6,0,20,31,3,0,8,38,7),cn(0,10,13,-6,0,21,33,3,0,8,40,7),cn(0,10,14,-6,0,22,35,3,0,8,42,7),cn(0,11,14,-7,0,23,36,3,0,9,44,8),cn(0,11,15,-7,0,24,38,3,0,9,46,8)],fL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},vD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hA(e){return`${Math.round(e)}ms`}function hL(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function pL(e){const t={...fL,...e.easing},n={...vD,...e.duration};return{getAutoHeightDuration:hL,create:(r=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=a;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof s=="string"?s:hA(s)} ${l} ${typeof c=="string"?c:hA(c)}`).join(",")},...e,easing:t,duration:n}}const mL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function gL(e){return $i(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function TD(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let s=0;s<a.length;s++){const[l,c]=a[s];!gL(c)||l.startsWith("unstable_")?delete r[l]:$i(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
47
-
48
- const theme = ${JSON.stringify(t,null,2)};
49
-
50
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
51
- theme.transitions = createTransitions(theme.transitions || {});
52
-
53
- export default theme;`}const yL=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function EL(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,s=yL(t),l=Object.keys(s);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function f(y,E){const T=l.indexOf(E);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(T!==-1&&typeof t[l[T]]=="number"?t[l[T]]:E)-r/100}${n})`}function p(y){return l.indexOf(y)+1<l.length?f(y,l[l.indexOf(y)+1]):c(y)}function m(y){const E=l.indexOf(y);return E===0?c(l[1]):E===l.length-1?d(l[E]):f(y,l[l.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:c,down:d,between:f,only:p,not:m,unit:n,...a}}const bL={borderRadius:4};function pA(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(a.match(s)?.[1]||0)});return n.length?n.reduce((r,a)=>{const s=t[a];return delete r[a],r[a]=s,r},{...t}):t}function vL(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function TL(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(s)}function _L(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function n(s,l){s.up=(...c)=>t(e.breakpoints.up(...c),l),s.down=(...c)=>t(e.breakpoints.down(...c),l),s.between=(...c)=>t(e.breakpoints.between(...c),l),s.only=(...c)=>t(e.breakpoints.only(...c),l),s.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},a=s=>(n(r,s),r);return n(a),{...e,containerQueries:a}}const Qp={xs:0,sm:600,md:900,lg:1200,xl:1536},mA={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qp[e]}px)`},xL={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qp[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function zi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||mA;return t.reduce((s,l,c)=>(s[a.up(a.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const a=r.breakpoints||mA;return Object.keys(t).reduce((s,l)=>{if(vL(a.keys,l)){const c=TL(r.containerQueries?r:xL,l);c&&(s[c]=n(t[l],l))}else if(Object.keys(a.values||Qp).includes(l)){const c=a.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function AL(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function gA(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function Pa(e){if(typeof e!="string")throw new Error(So(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kp(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function cp(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Kp(e,n)||r,t&&(a=t(a,r,e)),a}function wn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,s=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,f=Kp(d,r)||{};return zi(l,c,p=>{let m=cp(f,a,p);return p===m&&typeof p=="string"&&(m=cp(f,a,`${t}${p==="default"?"":Pa(p)}`,p)),n===!1?m:{[n]:m}})};return s.propTypes={},s.filterProps=[t],s}function Mu(e,t){return t?ea(e,t,{clone:!1}):e}function SL(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const CL={m:"margin",p:"padding"},DL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yA={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kL=SL(e=>{if(e.length>2)if(yA[e])e=yA[e];else return[e];const[t,n]=e.split(""),r=CL[t],a=DL[n]||"";return Array.isArray(a)?a.map(s=>r+s):[r+a]}),wE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],NE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wE,...NE];function wd(e,t,n,r){const a=Kp(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const l=Math.abs(s),c=a[l];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function OE(e){return wd(e,"spacing",8)}function Nd(e,t){return typeof t=="string"||t==null?t:e(t)}function RL(e,t){return n=>e.reduce((r,a)=>(r[a]=Nd(t,n),r),{})}function IL(e,t,n,r){if(!t.includes(n))return null;const a=kL(n),s=RL(a,r),l=e[n];return zi(e,l,s)}function _D(e,t){const n=OE(e.theme);return Object.keys(e).map(r=>IL(e,t,r,n)).reduce(Mu,{})}function _n(e){return _D(e,wE)}_n.propTypes={};_n.filterProps=wE;function xn(e){return _D(e,NE)}xn.propTypes={};xn.filterProps=NE;function wL(e=8,t=OE({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Wp(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(s=>{r[s]=a}),r),{}),n=r=>Object.keys(r).reduce((a,s)=>t[s]?Mu(a,t[s](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Zr(e){return e<=1&&e!==0?`${e*100}%`:e}const NL=wn({prop:"width",transform:Zr}),LE=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Qp[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Zr(n)}};return zi(e,e.maxWidth,t)}return null};LE.filterProps=["maxWidth"];const OL=wn({prop:"minWidth",transform:Zr}),LL=wn({prop:"height",transform:Zr}),ML=wn({prop:"maxHeight",transform:Zr}),PL=wn({prop:"minHeight",transform:Zr});wn({prop:"size",cssProperty:"width",transform:Zr});wn({prop:"size",cssProperty:"height",transform:Zr});const $L=wn({prop:"boxSizing"});Wp(NL,LE,OL,LL,ML,PL,$L);const Xp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wd(e.theme,"spacing",8),n=r=>({gap:Nd(t,r)});return zi(e,e.gap,n)}return null};Xp.propTypes={};Xp.filterProps=["gap"];const Zp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wd(e.theme,"spacing",8),n=r=>({columnGap:Nd(t,r)});return zi(e,e.columnGap,n)}return null};Zp.propTypes={};Zp.filterProps=["columnGap"];const Jp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wd(e.theme,"spacing",8),n=r=>({rowGap:Nd(t,r)});return zi(e,e.rowGap,n)}return null};Jp.propTypes={};Jp.filterProps=["rowGap"];const FL=wn({prop:"gridColumn"}),jL=wn({prop:"gridRow"}),BL=wn({prop:"gridAutoFlow"}),UL=wn({prop:"gridAutoColumns"}),HL=wn({prop:"gridAutoRows"}),zL=wn({prop:"gridTemplateColumns"}),GL=wn({prop:"gridTemplateRows"}),VL=wn({prop:"gridTemplateAreas"}),qL=wn({prop:"gridArea"});Wp(Xp,Zp,Jp,FL,jL,BL,UL,HL,zL,GL,VL,qL);function Bl(e,t){return t==="grey"?t:e}const YL=wn({prop:"color",themeKey:"palette",transform:Bl}),QL=wn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bl}),KL=wn({prop:"backgroundColor",themeKey:"palette",transform:Bl});Wp(YL,QL,KL);function va(e){return typeof e!="number"?e:`${e}px solid`}function Da(e,t){return wn({prop:e,themeKey:"borders",transform:t})}const WL=Da("border",va),XL=Da("borderTop",va),ZL=Da("borderRight",va),JL=Da("borderBottom",va),eM=Da("borderLeft",va),tM=Da("borderColor"),nM=Da("borderTopColor"),rM=Da("borderRightColor"),aM=Da("borderBottomColor"),iM=Da("borderLeftColor"),sM=Da("outline",va),oM=Da("outlineColor"),em=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wd(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Nd(t,r)});return zi(e,e.borderRadius,n)}return null};em.propTypes={};em.filterProps=["borderRadius"];Wp(WL,XL,ZL,JL,eM,tM,nM,rM,aM,iM,em,sM,oM);const tm={border:{themeKey:"borders",transform:va},borderTop:{themeKey:"borders",transform:va},borderRight:{themeKey:"borders",transform:va},borderBottom:{themeKey:"borders",transform:va},borderLeft:{themeKey:"borders",transform:va},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:va},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:em},color:{themeKey:"palette",transform:Bl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bl},backgroundColor:{themeKey:"palette",transform:Bl},p:{style:xn},pt:{style:xn},pr:{style:xn},pb:{style:xn},pl:{style:xn},px:{style:xn},py:{style:xn},padding:{style:xn},paddingTop:{style:xn},paddingRight:{style:xn},paddingBottom:{style:xn},paddingLeft:{style:xn},paddingX:{style:xn},paddingY:{style:xn},paddingInline:{style:xn},paddingInlineStart:{style:xn},paddingInlineEnd:{style:xn},paddingBlock:{style:xn},paddingBlockStart:{style:xn},paddingBlockEnd:{style:xn},m:{style:_n},mt:{style:_n},mr:{style:_n},mb:{style:_n},ml:{style:_n},mx:{style:_n},my:{style:_n},margin:{style:_n},marginTop:{style:_n},marginRight:{style:_n},marginBottom:{style:_n},marginLeft:{style:_n},marginX:{style:_n},marginY:{style:_n},marginInline:{style:_n},marginInlineStart:{style:_n},marginInlineEnd:{style:_n},marginBlock:{style:_n},marginBlockStart:{style:_n},marginBlockEnd:{style:_n},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xp},rowGap:{style:Jp},columnGap:{style:Zp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zr},maxWidth:{style:LE},minWidth:{transform:Zr},height:{transform:Zr},maxHeight:{transform:Zr},minHeight:{transform:Zr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lM(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function cM(e,t){return typeof e=="function"?e(t):e}function uM(){function e(n,r,a,s){const l={[n]:r,theme:a},c=s[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:p,style:m}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const y=Kp(a,f)||{};return m?m(l):zi(l,r,E=>{let T=cp(y,p,E);return E===T&&typeof E=="string"&&(T=cp(y,p,`${n}${E==="default"?"":Pa(E)}`,E)),d===!1?T:{[d]:T}})}function t(n){const{sx:r,theme:a={},nested:s}=n||{};if(!r)return null;const l=a.unstable_sxConfig??tm;function c(d){let f=d;if(typeof d=="function")f=d(a);else if(typeof d!="object")return d;if(!f)return null;const p=AL(a.breakpoints),m=Object.keys(p);let y=p;return Object.keys(f).forEach(E=>{const T=cM(f[E],a);if(T!=null)if(typeof T=="object")if(l[E])y=Mu(y,e(E,T,a,l));else{const A=zi({theme:a},T,C=>({[E]:C}));lM(A,T)?y[E]=t({sx:T,theme:a,nested:!0}):y=Mu(y,A)}else y=Mu(y,e(E,T,a,l))}),!s&&a.modularCssLayers?{"@layer sx":pA(a,gA(m,y))}:pA(a,gA(m,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const Yl=uM();Yl.filterProps=["sx"];function dM(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function ME(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:s={},...l}=e,c=EL(n),d=wL(a);let f=ea({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...bL,...s}},l);return f=_L(f),f.applyStyles=dM,f=t.reduce((p,m)=>ea(p,m),f),f.unstable_sxConfig={...tm,...l?.unstable_sxConfig},f.unstable_sx=function(p){return Yl({sx:p,theme:this})},f}function sy(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:s={},transitions:l={},typography:c={},shape:d,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(So(20));const p=IE(s),m=ME(e);let y=ea(m,{mixins:lL(m.breakpoints,r),palette:p,shadows:dL.slice(),typography:uL(p,c),transitions:pL(l),zIndex:{...mL}});return y=ea(y,f),y=t.reduce((E,T)=>ea(E,T),y),y.unstable_sxConfig={...tm,...f?.unstable_sxConfig},y.unstable_sx=function(E){return Yl({sx:E,theme:this})},y.toRuntimeSource=TD,y}function fM(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const hM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=fM(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function xD(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function AD(e){return e==="dark"?hM:[]}function pM(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,s=IE(t);return{palette:s,opacity:{...xD(s.mode),...n},overlays:r||AD(s.mode),...a}}function mM(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const gM=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],yM=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let s=a;if(a==="class"&&(s=".%s"),a==="data"&&(s="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(s=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return gM(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:s?{[s.replace("%s",t)]:l,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function EM(e){const t={};return Object.entries(e).forEach(n=>{const[r,a]=n;typeof a=="object"&&(t[r]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const EA=(e,t,n,r=[])=>{let a=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(a)?a[Number(s)]=n:a&&typeof a=="object"&&(a[s]=n):a&&typeof a=="object"&&(a[s]||(a[s]=r.includes(s)?[]:{}),a=a[s])})},bM=(e,t,n)=>{function r(a,s=[],l=[]){Object.entries(a).forEach(([c,d])=>{(!n||n&&!n([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,c],Array.isArray(d)?[...l,c]:l):t([...s,c],d,l))})}r(e)},vM=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function X0(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},s={},l={};return bM(e,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const p=`--${n?`${n}-`:""}${c.join("-")}`,m=vM(c,d);Object.assign(a,{[p]:m}),EA(s,c,`var(${p})`,f),EA(l,c,`var(${p}, ${m})`,f)}},c=>c[0]==="vars"),{css:a,vars:s,varsWithDefaults:l}}function TM(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...d}=e,{vars:f,css:p,varsWithDefaults:m}=X0(d,t);let y=m;const E={},{[c]:T,...A}=s;if(Object.entries(A||{}).forEach(([x,D])=>{const{vars:S,css:L,varsWithDefaults:M}=X0(D,t);y=ea(y,M),E[x]={css:L,vars:S}}),T){const{css:x,vars:D,varsWithDefaults:S}=X0(T,t);y=ea(y,S),E[c]={css:x,vars:D}}function C(x,D){let S=a;if(a==="class"&&(S=".%s"),a==="data"&&(S="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(S=`[${a}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${s[x]?.palette?.mode||x})`]:{":root":D}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...f};return Object.entries(E).forEach(([,{vars:D}])=>{x=ea(x,D)}),x},generateStyleSheets:()=>{const x=[],D=e.defaultColorScheme||"light";function S(I,V){Object.keys(V).length&&x.push(typeof I=="string"?{[I]:{...V}}:I)}S(n(void 0,{...p}),p);const{[D]:L,...M}=E;if(L){const{css:I}=L,V=s[D]?.palette?.mode,ne=!r&&V?{colorScheme:V,...I}:{...I};S(n(D,{...ne}),ne)}return Object.entries(M).forEach(([I,{css:V}])=>{const ne=s[I]?.palette?.mode,K=!r&&ne?{colorScheme:ne,...V}:{...V};S(n(I,{...K}),K)}),x}}}function _M(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function xM(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function he(e,t,n){!e[t]&&n&&(e[t]=n)}function Ru(e){return typeof e!="string"||!e.startsWith("hsl")?e:yD(e)}function wi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ku(Ru(e[t])))}function AM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ka=e=>{try{return e()}catch{}},SM=(e="mui")=>n4(e);function Z0(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=pM({...t,palette:{mode:a,...t?.palette}});return}const{palette:s,...l}=sy({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:s,opacity:{...xD(a),...t?.opacity},overlays:t?.overlays||AD(a)},l}function CM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:l=mM,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),y=SM(s),{[m]:E,light:T,dark:A,...C}=n,x={...C};let D=E;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(So(21,m));const S=Z0(x,D,f,m);T&&!x.light&&Z0(x,T,void 0,"light"),A&&!x.dark&&Z0(x,A,void 0,"dark");let L={defaultColorScheme:m,...S,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:d,getCssVar:y,colorSchemes:x,font:{...EM(S.typography),...S.font},spacing:AM(f.spacing)};Object.keys(L.colorSchemes).forEach(K=>{const k=L.colorSchemes[K].palette,H=Q=>{const W=Q.split("-"),re=W[1],me=W[2];return y(Q,k[re][me])};if(k.mode==="light"&&(he(k.common,"background","#fff"),he(k.common,"onBackground","#000")),k.mode==="dark"&&(he(k.common,"background","#000"),he(k.common,"onBackground","#fff")),xM(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){he(k.Alert,"errorColor",Vt(k.error.light,.6)),he(k.Alert,"infoColor",Vt(k.info.light,.6)),he(k.Alert,"successColor",Vt(k.success.light,.6)),he(k.Alert,"warningColor",Vt(k.warning.light,.6)),he(k.Alert,"errorFilledBg",H("palette-error-main")),he(k.Alert,"infoFilledBg",H("palette-info-main")),he(k.Alert,"successFilledBg",H("palette-success-main")),he(k.Alert,"warningFilledBg",H("palette-warning-main")),he(k.Alert,"errorFilledColor",Ka(()=>k.getContrastText(k.error.main))),he(k.Alert,"infoFilledColor",Ka(()=>k.getContrastText(k.info.main))),he(k.Alert,"successFilledColor",Ka(()=>k.getContrastText(k.success.main))),he(k.Alert,"warningFilledColor",Ka(()=>k.getContrastText(k.warning.main))),he(k.Alert,"errorStandardBg",qt(k.error.light,.9)),he(k.Alert,"infoStandardBg",qt(k.info.light,.9)),he(k.Alert,"successStandardBg",qt(k.success.light,.9)),he(k.Alert,"warningStandardBg",qt(k.warning.light,.9)),he(k.Alert,"errorIconColor",H("palette-error-main")),he(k.Alert,"infoIconColor",H("palette-info-main")),he(k.Alert,"successIconColor",H("palette-success-main")),he(k.Alert,"warningIconColor",H("palette-warning-main")),he(k.AppBar,"defaultBg",H("palette-grey-100")),he(k.Avatar,"defaultBg",H("palette-grey-400")),he(k.Button,"inheritContainedBg",H("palette-grey-300")),he(k.Button,"inheritContainedHoverBg",H("palette-grey-A100")),he(k.Chip,"defaultBorder",H("palette-grey-400")),he(k.Chip,"defaultAvatarColor",H("palette-grey-700")),he(k.Chip,"defaultIconColor",H("palette-grey-700")),he(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),he(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),he(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),he(k.LinearProgress,"primaryBg",qt(k.primary.main,.62)),he(k.LinearProgress,"secondaryBg",qt(k.secondary.main,.62)),he(k.LinearProgress,"errorBg",qt(k.error.main,.62)),he(k.LinearProgress,"infoBg",qt(k.info.main,.62)),he(k.LinearProgress,"successBg",qt(k.success.main,.62)),he(k.LinearProgress,"warningBg",qt(k.warning.main,.62)),he(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.11)`),he(k.Slider,"primaryTrack",qt(k.primary.main,.62)),he(k.Slider,"secondaryTrack",qt(k.secondary.main,.62)),he(k.Slider,"errorTrack",qt(k.error.main,.62)),he(k.Slider,"infoTrack",qt(k.info.main,.62)),he(k.Slider,"successTrack",qt(k.success.main,.62)),he(k.Slider,"warningTrack",qt(k.warning.main,.62));const Q=mh(k.background.default,.8);he(k.SnackbarContent,"bg",Q),he(k.SnackbarContent,"color",Ka(()=>k.getContrastText(Q))),he(k.SpeedDialAction,"fabHoverBg",mh(k.background.paper,.15)),he(k.StepConnector,"border",H("palette-grey-400")),he(k.StepContent,"border",H("palette-grey-400")),he(k.Switch,"defaultColor",H("palette-common-white")),he(k.Switch,"defaultDisabledColor",H("palette-grey-100")),he(k.Switch,"primaryDisabledColor",qt(k.primary.main,.62)),he(k.Switch,"secondaryDisabledColor",qt(k.secondary.main,.62)),he(k.Switch,"errorDisabledColor",qt(k.error.main,.62)),he(k.Switch,"infoDisabledColor",qt(k.info.main,.62)),he(k.Switch,"successDisabledColor",qt(k.success.main,.62)),he(k.Switch,"warningDisabledColor",qt(k.warning.main,.62)),he(k.TableCell,"border",qt(ph(k.divider,1),.88)),he(k.Tooltip,"bg",ph(k.grey[700],.92))}if(k.mode==="dark"){he(k.Alert,"errorColor",qt(k.error.light,.6)),he(k.Alert,"infoColor",qt(k.info.light,.6)),he(k.Alert,"successColor",qt(k.success.light,.6)),he(k.Alert,"warningColor",qt(k.warning.light,.6)),he(k.Alert,"errorFilledBg",H("palette-error-dark")),he(k.Alert,"infoFilledBg",H("palette-info-dark")),he(k.Alert,"successFilledBg",H("palette-success-dark")),he(k.Alert,"warningFilledBg",H("palette-warning-dark")),he(k.Alert,"errorFilledColor",Ka(()=>k.getContrastText(k.error.dark))),he(k.Alert,"infoFilledColor",Ka(()=>k.getContrastText(k.info.dark))),he(k.Alert,"successFilledColor",Ka(()=>k.getContrastText(k.success.dark))),he(k.Alert,"warningFilledColor",Ka(()=>k.getContrastText(k.warning.dark))),he(k.Alert,"errorStandardBg",Vt(k.error.light,.9)),he(k.Alert,"infoStandardBg",Vt(k.info.light,.9)),he(k.Alert,"successStandardBg",Vt(k.success.light,.9)),he(k.Alert,"warningStandardBg",Vt(k.warning.light,.9)),he(k.Alert,"errorIconColor",H("palette-error-main")),he(k.Alert,"infoIconColor",H("palette-info-main")),he(k.Alert,"successIconColor",H("palette-success-main")),he(k.Alert,"warningIconColor",H("palette-warning-main")),he(k.AppBar,"defaultBg",H("palette-grey-900")),he(k.AppBar,"darkBg",H("palette-background-paper")),he(k.AppBar,"darkColor",H("palette-text-primary")),he(k.Avatar,"defaultBg",H("palette-grey-600")),he(k.Button,"inheritContainedBg",H("palette-grey-800")),he(k.Button,"inheritContainedHoverBg",H("palette-grey-700")),he(k.Chip,"defaultBorder",H("palette-grey-700")),he(k.Chip,"defaultAvatarColor",H("palette-grey-300")),he(k.Chip,"defaultIconColor",H("palette-grey-300")),he(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),he(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),he(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),he(k.LinearProgress,"primaryBg",Vt(k.primary.main,.5)),he(k.LinearProgress,"secondaryBg",Vt(k.secondary.main,.5)),he(k.LinearProgress,"errorBg",Vt(k.error.main,.5)),he(k.LinearProgress,"infoBg",Vt(k.info.main,.5)),he(k.LinearProgress,"successBg",Vt(k.success.main,.5)),he(k.LinearProgress,"warningBg",Vt(k.warning.main,.5)),he(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.13)`),he(k.Slider,"primaryTrack",Vt(k.primary.main,.5)),he(k.Slider,"secondaryTrack",Vt(k.secondary.main,.5)),he(k.Slider,"errorTrack",Vt(k.error.main,.5)),he(k.Slider,"infoTrack",Vt(k.info.main,.5)),he(k.Slider,"successTrack",Vt(k.success.main,.5)),he(k.Slider,"warningTrack",Vt(k.warning.main,.5));const Q=mh(k.background.default,.98);he(k.SnackbarContent,"bg",Q),he(k.SnackbarContent,"color",Ka(()=>k.getContrastText(Q))),he(k.SpeedDialAction,"fabHoverBg",mh(k.background.paper,.15)),he(k.StepConnector,"border",H("palette-grey-600")),he(k.StepContent,"border",H("palette-grey-600")),he(k.Switch,"defaultColor",H("palette-grey-300")),he(k.Switch,"defaultDisabledColor",H("palette-grey-600")),he(k.Switch,"primaryDisabledColor",Vt(k.primary.main,.55)),he(k.Switch,"secondaryDisabledColor",Vt(k.secondary.main,.55)),he(k.Switch,"errorDisabledColor",Vt(k.error.main,.55)),he(k.Switch,"infoDisabledColor",Vt(k.info.main,.55)),he(k.Switch,"successDisabledColor",Vt(k.success.main,.55)),he(k.Switch,"warningDisabledColor",Vt(k.warning.main,.55)),he(k.TableCell,"border",Vt(ph(k.divider,1),.68)),he(k.Tooltip,"bg",ph(k.grey[700],.92))}wi(k.background,"default"),wi(k.background,"paper"),wi(k.common,"background"),wi(k.common,"onBackground"),wi(k,"divider"),Object.keys(k).forEach(Q=>{const W=k[Q];Q!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&he(k[Q],"mainChannel",ku(Ru(W.main))),W.light&&he(k[Q],"lightChannel",ku(Ru(W.light))),W.dark&&he(k[Q],"darkChannel",ku(Ru(W.dark))),W.contrastText&&he(k[Q],"contrastTextChannel",ku(Ru(W.contrastText))),Q==="text"&&(wi(k[Q],"primary"),wi(k[Q],"secondary")),Q==="action"&&(W.active&&wi(k[Q],"active"),W.selected&&wi(k[Q],"selected")))})}),L=t.reduce((K,k)=>ea(K,k),L);const M={prefix:s,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:yM(L)},{vars:I,generateThemeVars:V,generateStyleSheets:ne}=TM(L,M);return L.vars=I,Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([K,k])=>{L[K]=k}),L.generateThemeVars=V,L.generateStyleSheets=ne,L.generateSpacing=function(){return r4(f.spacing,OE(this))},L.getColorSchemeSelector=_M(c),L.spacing=L.generateSpacing(),L.shouldSkipGeneratingVar=l,L.unstable_sxConfig={...tm,...f?.unstable_sxConfig},L.unstable_sx=function(K){return Yl({sx:K,theme:this})},L.toRuntimeSource=TD,L}function bA(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:IE({...n===!0?{}:n.palette,mode:t})})}function DM(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...l}=e,c=s||"light",d=a?.[c],f={...a,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return sy(e,...t);let p=n;"palette"in e||f[c]&&(f[c]!==!0?p=f[c].palette:c==="dark"&&(p={mode:"dark"}));const m=sy({...e,palette:p},...t);return m.defaultColorScheme=c,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},bA(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},bA(m,"light",f.light)),m}return!n&&!("light"in f)&&c==="light"&&(f.light=!0),CM({...l,colorSchemes:f,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const PE=DM(),$E="$$material";function kM(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const FE=e=>kM(e)&&e!=="classes";function RM(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var IM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function wM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var NM=/[A-Z]|^ms/g,OM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SD=function(e){return e.charCodeAt(1)===45},vA=function(e){return e!=null&&typeof e!="boolean"},J0=wM(function(e){return SD(e)?e:e.replace(NM,"-$&").toLowerCase()}),TA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(OM,function(n,r,a){return Ss={name:r,styles:a,next:Ss},r})}return IM[e]!==1&&!SD(e)&&typeof t=="number"&&t!==0?t+"px":t};function up(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Ss={name:a.name,styles:a.styles,next:Ss},a.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Ss={name:l.name,styles:l.styles,next:Ss},l=l.next;var c=s.styles+";";return c}return LM(e,t,n)}}var d=n;return d}function LM(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=up(e,t,n[a])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var c=l;vA(c)&&(r+=J0(s)+":"+TA(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var d=0;d<l.length;d++)vA(l[d])&&(r+=J0(s)+":"+TA(s,l[d])+";");else{var f=up(e,t,l);switch(s){case"animation":case"animationName":{r+=J0(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}return r}var _A=/label:\s*([^\s;{]+)\s*(;|$)/g,Ss;function MM(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Ss=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,a+=up(n,t,s);else{var l=s;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=up(n,t,e[c]),r){var d=s;a+=d[c]}_A.lastIndex=0;for(var f="",p;(p=_A.exec(a))!==null;)f+="-"+p[1];var m=RM(a)+f;return{name:m,styles:a,next:Ss}}function PM(e,t){return a4(e,t)}function $M(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const xA=[];function vo(e){return xA[0]=e,MM(xA)}function FM(e){const{variants:t,...n}=e,r={variants:t,style:vo(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=vo(a.style))}),r}const jM=ME();function Rs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function BM(e){return e?(t,n)=>n[e]:null}function UM(e,t,n){e.theme=zM(e.theme)?n:e.theme[t]||e.theme}function $h(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>$h(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?fo(r.style,n):r.style;else{const{variants:s,...l}=r;a=n?fo(vo(l),n):l}return CD(e,r.variants,[a],n)}return r?.isProcessed?n?fo(vo(r.style),n):r.style:n?fo(vo(r),n):r}function CD(e,t,n=[],r=void 0){let a;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(a))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?fo(vo(l.style(a)),r):l.style(a))):n.push(r?fo(vo(l.style),r):l.style)}return n}function HM(e={}){const{themeId:t,defaultTheme:n=jM,rootShouldForwardProp:r=Rs,slotShouldForwardProp:a=Rs}=e;function s(l){UM(l,t,n)}return(l,c={})=>{$M(l,M=>M.filter(I=>I!==Yl));const{name:d,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:y=BM(VM(f)),...E}=c,T=d&&d.startsWith("Mui")||f?"components":"custom",A=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,C=m||!1;let x=Rs;f==="Root"||f==="root"?x=r:f?x=a:GM(l)&&(x=void 0);const D=PM(l,{shouldForwardProp:x,label:void 0,...E}),S=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(I){return $h(I,M,I.theme.modularCssLayers?T:void 0)};if($i(M)){const I=FM(M);return function(V){return I.variants?$h(V,I,V.theme.modularCssLayers?T:void 0):V.theme.modularCssLayers?fo(I.style,T):I.style}}return M},L=(...M)=>{const I=[],V=M.map(S),ne=[];if(I.push(s),d&&y&&ne.push(function(H){const Q=H.theme.components?.[d]?.styleOverrides;if(!Q)return null;const W={};for(const re in Q)W[re]=$h(H,Q[re],H.theme.modularCssLayers?"theme":void 0);return y(H,W)}),d&&!A&&ne.push(function(H){const Q=H.theme?.components?.[d]?.variants;return Q?CD(H,Q,[],H.theme.modularCssLayers?"theme":void 0):null}),C||ne.push(Yl),Array.isArray(V[0])){const H=V.shift(),Q=new Array(I.length).fill(""),W=new Array(ne.length).fill("");let re;re=[...Q,...H,...W],re.raw=[...Q,...H.raw,...W],I.unshift(re)}const K=[...I,...V,...ne],k=D(...K);return l.muiName&&(k.muiName=l.muiName),k};return D.withConfig&&(L.withConfig=D.withConfig),L}}function zM(e){for(const t in e)return!1;return!0}function GM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function VM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const sn=HM({themeId:$E,defaultTheme:PE,rootShouldForwardProp:FE});function Po(e,t,n=void 0){const r={};for(const a in e){const s=e[a];let l="",c=!0;for(let d=0;d<s.length;d+=1){const f=s[d];f&&(l+=(c===!0?"":" ")+t(f),c=!1,n&&n[f]&&(l+=" "+n[f]))}r[a]=l}return r}const qM=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${Pa(t)}`,`fontSize${Pa(n)}`]};return Po(a,z6,r)},YM=sn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pa(n.color)}`],t[`fontSize${Pa(n.fontSize)}`]]}})(CE(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),oy=N.forwardRef(function(e,t){const n=ec({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...y}=n,E=N.isValidElement(r)&&r.type==="svg",T={...n,color:s,component:l,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:E},A={};f||(A.viewBox=m);const C=qM(T);return b.jsxs(YM,{as:l,className:$n(C.root,a),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...A,...y,...E&&r.props,ownerState:T,children:[E?r.props.children:r,p?b.jsx("title",{children:p}):null]})});oy.muiName="SvgIcon";function Jt(e,t){function n(r,a){return b.jsx(oy,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=oy.muiName,N.memo(N.forwardRef(n))}const nm=Jt(b.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),Od=Jt(b.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),QM="modulepreload",KM=function(e){return"/"+e},AA={},F=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");a=l(n.map(f=>{if(f=KM(f),f in AA)return;AA[f]=!0;const p=f.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":QM,p||(y.as="script"),y.crossOrigin="",y.href=f,d&&y.setAttribute("nonce",d),document.head.appendChild(y),p)return new Promise((E,T)=>{y.addEventListener("load",E),y.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return a.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},DD=[{id:"abap",name:"ABAP",import:()=>F(()=>import("./index.es123-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>F(()=>import("./index.es124-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>F(()=>import("./index.es125-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>F(()=>import("./index.es126-CKC26ttZ.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>F(()=>import("./index.es127-CBKpWhIe.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>F(()=>import("./index.es128-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>F(()=>import("./index.es129-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>F(()=>import("./index.es130-5z_n6lm6.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>F(()=>import("./index.es131-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>F(()=>import("./index.es132-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>F(()=>import("./index.es133-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>F(()=>import("./index.es134-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>F(()=>import("./index.es135-aJw1Xr-9.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>F(()=>import("./index.es136-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>F(()=>import("./index.es137-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>F(()=>import("./index.es138-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>F(()=>import("./index.es139-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>F(()=>import("./index.es140-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>F(()=>import("./index.es141-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>F(()=>import("./index.es142-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>F(()=>import("./index.es143-CAt8G2AV.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>F(()=>import("./index.es144-CaWYrbVR.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>F(()=>import("./index.es145-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>F(()=>import("./index.es146-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>F(()=>import("./index.es147-B_4j3qbz.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>F(()=>import("./index.es148-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>F(()=>import("./index.es149-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>F(()=>import("./index.es150-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>F(()=>import("./index.es151-Byg3j7QH.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>F(()=>import("./index.es152-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>F(()=>import("./index.es153-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>F(()=>import("./index.es154-D8PMiD5x.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>F(()=>import("./index.es155-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>F(()=>import("./index.es156-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>F(()=>import("./index.es157-qx6EMeW2.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>F(()=>import("./index.es158-CJWvYXRx.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>F(()=>import("./index.es159-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>F(()=>import("./index.es160-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>F(()=>import("./index.es161-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>F(()=>import("./index.es162-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>F(()=>import("./index.es163-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>F(()=>import("./index.es164-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>F(()=>import("./index.es165-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>F(()=>import("./index.es166-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>F(()=>import("./index.es167-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>F(()=>import("./index.es168-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>F(()=>import("./index.es169-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>F(()=>import("./index.es170-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>F(()=>import("./index.es171-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>F(()=>import("./index.es172-BamsV9CN.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>F(()=>import("./index.es173-CXyGU58j.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>F(()=>import("./index.es174-C2o3B3o8.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>F(()=>import("./index.es175-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>F(()=>import("./index.es176-BB-1P5bb.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>F(()=>import("./index.es177-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>F(()=>import("./index.es178-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>F(()=>import("./index.es179-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>F(()=>import("./index.es180-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>F(()=>import("./index.es181-2PlTGcYG.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>F(()=>import("./index.es182-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>F(()=>import("./index.es183-DgoVwe-N.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>F(()=>import("./index.es184-Cmc38osU.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>F(()=>import("./index.es185-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>F(()=>import("./index.es186-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>F(()=>import("./index.es187-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>F(()=>import("./index.es188--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>F(()=>import("./index.es189-DuMu0KfI.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>F(()=>import("./index.es190-C117wYiK.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>F(()=>import("./index.es191-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>F(()=>import("./index.es192-Bm2ZoxNH.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>F(()=>import("./index.es193-BBtnt1bZ.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>F(()=>import("./index.es194-CB2Nn3wg.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>F(()=>import("./index.es195-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>F(()=>import("./index.es196-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>F(()=>import("./index.es197-D91osx4R.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>F(()=>import("./index.es198-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>F(()=>import("./index.es199-BtpESJSS.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>F(()=>import("./index.es200-BeG9RRw_.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>F(()=>import("./index.es201-k2nuCC3B.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>F(()=>import("./index.es202-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>F(()=>import("./index.es203-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>F(()=>import("./index.es204-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>F(()=>import("./index.es205-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>F(()=>import("./index.es206-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>F(()=>import("./index.es207-C2uQegug.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>F(()=>import("./index.es208-BTucFWqR.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>F(()=>import("./index.es209-4dK47W8o.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>F(()=>import("./index.es210-DO6X3-kz.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>F(()=>import("./index.es211-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>F(()=>import("./index.es212-CFG-vrrr.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>F(()=>import("./index.es213-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>F(()=>import("./index.es214-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>F(()=>import("./index.es215-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>F(()=>import("./index.es216-TWO3Mhor.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>F(()=>import("./index.es217-0tHVUThG.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>F(()=>import("./index.es218-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>F(()=>import("./index.es219-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>F(()=>import("./index.es220-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>F(()=>import("./index.es221-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>F(()=>import("./index.es222-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>F(()=>import("./index.es223-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>F(()=>import("./index.es224-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>F(()=>import("./index.es225-DHGKCs7a.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>F(()=>import("./index.es226-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>F(()=>import("./index.es227-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>F(()=>import("./index.es228-Bz0ZvI5L.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>F(()=>import("./index.es229-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>F(()=>import("./index.es230-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>F(()=>import("./index.es231-D1HdFvsl.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>F(()=>import("./index.es232-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>F(()=>import("./index.es233-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>F(()=>import("./index.es234-1j9jt1V9.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>F(()=>import("./index.es235-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>F(()=>import("./index.es236-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>F(()=>import("./index.es237-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>F(()=>import("./index.es238-DBm7c9HR.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>F(()=>import("./index.es239-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>F(()=>import("./index.es240-DCqDESzD.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>F(()=>import("./index.es241-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>F(()=>import("./index.es242-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>F(()=>import("./index.es243-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>F(()=>import("./index.es244-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>F(()=>import("./index.es245-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>F(()=>import("./index.es246-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>F(()=>import("./index.es247-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>F(()=>import("./index.es248-BEYN2dFo.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>F(()=>import("./index.es249-DKdYiZA_.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>F(()=>import("./index.es250-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>F(()=>import("./index.es251-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>F(()=>import("./index.es252-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>F(()=>import("./index.es253-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>F(()=>import("./index.es254-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>F(()=>import("./index.es255-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>F(()=>import("./index.es256-CgBAGaDx.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>F(()=>import("./index.es257-DMI3dJGJ.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>F(()=>import("./index.es258-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>F(()=>import("./index.es259-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>F(()=>import("./index.es260-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>F(()=>import("./index.es261-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>F(()=>import("./index.es262-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>F(()=>import("./index.es263-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>F(()=>import("./index.es264-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>F(()=>import("./index.es265-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>F(()=>import("./index.es266-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>F(()=>import("./index.es267-B5ei8o6D.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>F(()=>import("./index.es268-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>F(()=>import("./index.es269-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>F(()=>import("./index.es270-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>F(()=>import("./index.es271-DDBsSlrj.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>F(()=>import("./index.es272-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>F(()=>import("./index.es273-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>F(()=>import("./index.es274-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>F(()=>import("./index.es275-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>F(()=>import("./index.es276-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>F(()=>import("./index.es277-aI_iYBJv.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>F(()=>import("./index.es278-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>F(()=>import("./index.es279-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>F(()=>import("./index.es280-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>F(()=>import("./index.es281-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>F(()=>import("./index.es282-DZQyCurk.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>F(()=>import("./index.es283-DRQxI154.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>F(()=>import("./index.es284-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>F(()=>import("./index.es285-DrT3oe3D.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>F(()=>import("./index.es286-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>F(()=>import("./index.es287-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>F(()=>import("./index.es288-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>F(()=>import("./index.es289-CKYiktdr.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>F(()=>import("./index.es290-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>F(()=>import("./index.es291-BRH8qn2R.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>F(()=>import("./index.es292-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>F(()=>import("./index.es293-B_x7Y2b5.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>F(()=>import("./index.es294-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>F(()=>import("./index.es295-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>F(()=>import("./index.es296-CMhur-CK.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>F(()=>import("./index.es297-BY9kHC-p.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>F(()=>import("./index.es298-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>F(()=>import("./index.es299-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>F(()=>import("./index.es300-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>F(()=>import("./index.es301-CmwjGLCv.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>F(()=>import("./index.es302-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>F(()=>import("./index.es303-BOa5F89I.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>F(()=>import("./index.es304-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>F(()=>import("./index.es305-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>F(()=>import("./index.es306-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>F(()=>import("./index.es307-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>F(()=>import("./index.es308-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>F(()=>import("./index.es309-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>F(()=>import("./index.es310-BF6kc0UE.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>F(()=>import("./index.es311-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>F(()=>import("./index.es312-CoCT5fTV.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>F(()=>import("./index.es313-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>F(()=>import("./index.es314-CMYE9lCS.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>F(()=>import("./index.es315-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>F(()=>import("./index.es316-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>F(()=>import("./index.es317-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>F(()=>import("./index.es318-C2_Stmju.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>F(()=>import("./index.es319-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>F(()=>import("./index.es320-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>F(()=>import("./index.es321-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>F(()=>import("./index.es322-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>F(()=>import("./index.es323-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>F(()=>import("./index.es324-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>F(()=>import("./index.es325-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>F(()=>import("./index.es326-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>F(()=>import("./index.es327-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>F(()=>import("./index.es328-DxiHjjdV.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>F(()=>import("./index.es329-D4H4qJV5.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>F(()=>import("./index.es330-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>F(()=>import("./index.es331-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>F(()=>import("./index.es332-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>F(()=>import("./index.es333-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>F(()=>import("./index.es334-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>F(()=>import("./index.es335-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>F(()=>import("./index.es336-DMBcHb9l.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>F(()=>import("./index.es337-BOcmfyvS.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>F(()=>import("./index.es338-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>F(()=>import("./index.es339-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>F(()=>import("./index.es340-BVz_zdnA.js"),[])}],WM=Object.fromEntries(DD.map(e=>[e.id,e.import])),XM=Object.fromEntries(DD.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),ZM={...WM,...XM},JM=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>F(()=>import("./index.es341-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>F(()=>import("./index.es342-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>F(()=>import("./index.es343-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>F(()=>import("./index.es344-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>F(()=>import("./index.es345-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>F(()=>import("./index.es346-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>F(()=>import("./index.es347-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>F(()=>import("./index.es348-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>F(()=>import("./index.es349-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>F(()=>import("./index.es350-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>F(()=>import("./index.es351-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>F(()=>import("./index.es352-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>F(()=>import("./index.es353-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>F(()=>import("./index.es354-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>F(()=>import("./index.es355-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>F(()=>import("./index.es356-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>F(()=>import("./index.es357-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>F(()=>import("./index.es358-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>F(()=>import("./index.es359-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>F(()=>import("./index.es360-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>F(()=>import("./index.es361-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>F(()=>import("./index.es362-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>F(()=>import("./index.es363-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>F(()=>import("./index.es364-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>F(()=>import("./index.es365-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>F(()=>import("./index.es366-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>F(()=>import("./index.es367-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>F(()=>import("./index.es368-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>F(()=>import("./index.es369-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>F(()=>import("./index.es370-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>F(()=>import("./index.es371-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>F(()=>import("./index.es372-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>F(()=>import("./index.es373-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>F(()=>import("./index.es374-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>F(()=>import("./index.es375-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>F(()=>import("./index.es376-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>F(()=>import("./index.es377-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>F(()=>import("./index.es378-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>F(()=>import("./index.es379-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>F(()=>import("./index.es380-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>F(()=>import("./index.es381-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>F(()=>import("./index.es382-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>F(()=>import("./index.es383-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>F(()=>import("./index.es384-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>F(()=>import("./index.es385-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>F(()=>import("./index.es386-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>F(()=>import("./index.es387-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>F(()=>import("./index.es388-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>F(()=>import("./index.es389-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>F(()=>import("./index.es390-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>F(()=>import("./index.es391-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>F(()=>import("./index.es392-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>F(()=>import("./index.es393-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>F(()=>import("./index.es394-CVO1_9PV.js"),[])}],eP=Object.fromEntries(JM.map(e=>[e.id,e.import]));let Hi=class extends Error{constructor(t){super(t),this.name="ShikiError"}},jE=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function tP(){return 2147483648}function nP(){return typeof performance<"u"?performance.now():Date.now()}const rP=(e,t)=>e+(t-e%t)%t;async function aP(e){let t,n;const r={};function a(E){n=E,r.HEAPU8=new Uint8Array(E),r.HEAPU32=new Uint32Array(E)}function s(E,T,A){r.HEAPU8.copyWithin(E,T,T+A)}function l(E){try{return t.grow(E-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(E){const T=r.HEAPU8.length;E=E>>>0;const A=tP();if(E>A)return!1;for(let C=1;C<=4;C*=2){let x=T*(1+.2/C);x=Math.min(x,E+100663296);const D=Math.min(A,rP(Math.max(E,x),65536));if(l(D))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(E,T,A=1024){const C=T+A;let x=T;for(;E[x]&&!(x>=C);)++x;if(x-T>16&&E.buffer&&d)return d.decode(E.subarray(T,x));let D="";for(;T<x;){let S=E[T++];if(!(S&128)){D+=String.fromCharCode(S);continue}const L=E[T++]&63;if((S&224)===192){D+=String.fromCharCode((S&31)<<6|L);continue}const M=E[T++]&63;if((S&240)===224?S=(S&15)<<12|L<<6|M:S=(S&7)<<18|L<<12|M<<6|E[T++]&63,S<65536)D+=String.fromCharCode(S);else{const I=S-65536;D+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return D}function p(E,T){return E?f(r.HEAPU8,E,T):""}const m={emscripten_get_now:nP,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function y(){const E=await e({env:m,wasi_snapshot_preview1:m});t=E.memory,a(t.buffer),Object.assign(r,E),r.UTF8ToString=p}return await y(),r}var iP=Object.defineProperty,sP=(e,t,n)=>t in e?iP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Un=(e,t,n)=>(sP(e,typeof t!="symbol"?t+"":t,n),n);let Wn=null;function oP(e){throw new jE(e.UTF8ToString(e.getLastOnigError()))}let kD=class RD{constructor(t){Un(this,"utf16Length"),Un(this,"utf8Length"),Un(this,"utf16Value"),Un(this,"utf8Value"),Un(this,"utf16OffsetToUtf8"),Un(this,"utf8OffsetToUtf16");const n=t.length,r=RD._utf8ByteLength(t),a=r!==n,s=a?new Uint32Array(n+1):null;a&&(s[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const c=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let m=p,y=!1;if(p>=55296&&p<=56319&&f+1<n){const E=t.charCodeAt(f+1);E>=56320&&E<=57343&&(m=(p-55296<<10)+65536|E-56320,y=!0)}a&&(s[f]=d,y&&(s[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),m<=127?c[d++]=m:m<=2047?(c[d++]=192|(m&1984)>>>6,c[d++]=128|(m&63)>>>0):m<=65535?(c[d++]=224|(m&61440)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0):(c[d++]=240|(m&1835008)>>>18,c[d++]=128|(m&258048)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0),y&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const s=t.charCodeAt(r);let l=s,c=!1;if(s>=55296&&s<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(s-55296<<10)+65536|d-56320,c=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const Ja=class{constructor(t){if(Un(this,"id",++Ja.LAST_ID),Un(this,"_onigBinding"),Un(this,"content"),Un(this,"utf16Length"),Un(this,"utf8Length"),Un(this,"utf16OffsetToUtf8"),Un(this,"utf8OffsetToUtf16"),Un(this,"ptr"),!Wn)throw new jE("Must invoke loadWasm first.");this._onigBinding=Wn,this.content=t;const n=new kD(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Ja._sharedPtrInUse?(Ja._sharedPtr||(Ja._sharedPtr=Wn.omalloc(1e4)),Ja._sharedPtrInUse=!0,Wn.HEAPU8.set(n.utf8Value,Ja._sharedPtr),this.ptr=Ja._sharedPtr):this.ptr=n.createString(Wn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Ja._sharedPtr?Ja._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Ld=Ja;Un(Ld,"LAST_ID",0);Un(Ld,"_sharedPtr",0);Un(Ld,"_sharedPtrInUse",!1);let lP=class{constructor(t){if(Un(this,"_onigBinding"),Un(this,"_ptr"),!Wn)throw new jE("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,d=t.length;c<d;c++){const f=new kD(t[c]);n[c]=f.createString(Wn),r[c]=f.utf8Length}const a=Wn.omalloc(4*t.length);Wn.HEAPU32.set(n,a/4);const s=Wn.omalloc(4*t.length);Wn.HEAPU32.set(r,s/4);const l=Wn.createOnigScanner(a,s,t.length);for(let c=0,d=t.length;c<d;c++)Wn.ofree(n[c]);Wn.ofree(s),Wn.ofree(a),l===0&&oP(Wn),this._onigBinding=Wn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new Ld(t);const s=this._findNextMatchSync(t,n,!1,a);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const s=this._onigBinding,l=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const c=s.HEAPU32;let d=l/4;const f=c[d++],p=c[d++],m=[];for(let y=0;y<p;y++){const E=t.convertUtf8OffsetToUtf16(c[d++]),T=t.convertUtf8OffsetToUtf16(c[d++]);m[y]={start:E,end:T,length:T-E}}return{index:f,captureIndices:m}}};function cP(e){return typeof e.instantiator=="function"}function uP(e){return typeof e.default=="function"}function dP(e){return typeof e.data<"u"}function fP(e){return typeof Response<"u"&&e instanceof Response}function hP(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let gh;function pP(e){if(gh)return gh;async function t(){Wn=await aP(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),cP(r)?r=await r.instantiator(n):uP(r)?r=await r.default(n):(dP(r)&&(r=r.data),fP(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await mP(r)(n):r=await gP(r)(n):hP(r)?r=await e1(r)(n):r instanceof WebAssembly.Module?r=await e1(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await e1(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return gh=t(),gh}function e1(e){return t=>WebAssembly.instantiate(e,t)}function mP(e){return t=>WebAssembly.instantiateStreaming(e,t)}function gP(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let yP;function EP(){return yP}async function ID(e){return e&&await pP(e),{createScanner(t){return new lP(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Ld(t)}}}function bP(e){return BE(e)}function BE(e){return Array.isArray(e)?vP(e):e instanceof RegExp?e:typeof e=="object"?TP(e):e}function vP(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=BE(e[n]);return t}function TP(e){let t={};for(let n in e)t[n]=BE(e[n]);return t}function wD(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function ND(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?ND(e.substring(0,e.length-1)):e.substr(~t+1)}var t1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,yh=class{static hasCaptures(t){return t===null?!1:(t1.lastIndex=0,t1.test(t))}static replaceCaptures(t,n,r){return t.replace(t1,(a,s,l,c)=>{let d=r[parseInt(s||l,10)];if(d){let f=n.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(c){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return a})}};function OD(e,t){return e<t?-1:e>t?1:0}function LD(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let s=OD(e[a],t[a]);if(s!==0)return s}return 0}return n-r}function SA(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function MD(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var PD=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},dp=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(AP(t),n)}static createFromParsedTheme(t,n){return CP(t,n)}_cachedMatchRoot=new PD(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>_P(t.parent,a.parentScopes));return r?new $D(r.fontStyle,r.foreground,r.background):null}},n1=class Fh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Fh(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Fh(n,t[r]);return n}push(t){return new Fh(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function _P(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!xP(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function xP(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var $D=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function AP(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,s=t.length;a<s;a++){let l=t[a];if(!l.settings)continue;let c;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(l.scope)?c=l.scope:c=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let y=0,E=m.length;y<E;y++)switch(m[y]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&SA(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&SA(l.settings.background)&&(p=l.settings.background);for(let m=0,y=c.length;m<y;m++){let E=c[m].trim().split(" "),T=E[E.length-1],A=null;E.length>1&&(A=E.slice(0,E.length-1),A.reverse()),n[r++]=new SP(T,A,a,d,f,p)}}return n}var SP=class{constructor(t,n,r,a,s,l){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=s,this.background=l}},Bi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Bi||{});function CP(e,t){e.sort((d,f)=>{let p=OD(d.scope,f.scope);return p!==0||(p=LD(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let s=new DP(t),l=new $D(n,s.getId(r),s.getId(a)),c=new RP(new ly(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];c.insert(0,p.scope,p.parentScopes,p.fontStyle,s.getId(p.foreground),s.getId(p.background))}return new dp(s,l,c)}var DP=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},kP=Object.freeze([]),ly=class FD{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,s){this.scopeDepth=t,this.parentScopes=n||kP,this.fontStyle=r,this.foreground=a,this.background=s}clone(){return new FD(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},RP=class cy{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const s=n.parentScopes[a].length-t.parentScopes[r].length;if(s!==0)return s;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,s;if(r===-1?(a=t,s=""):(a=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(cy._cmpBySpecificity),n}insert(t,n,r,a,s,l){if(n===""){this._doInsertHere(t,r,a,s,l);return}let c=n.indexOf("."),d,f;c===-1?(d=n,f=""):(d=n.substring(0,c),f=n.substring(c+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new cy(this._mainRule.clone(),ly.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,s,l)}_doInsertHere(t,n,r,a,s){if(n===null){this._mainRule.acceptOverwrite(t,r,a,s);return}for(let l=0,c=this._rulesWithParentScopes.length;l<c;l++){let d=this._rulesWithParentScopes[l];if(LD(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,s);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ly(t,n,r,a,s))}},Ql=class ma{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ma.getLanguageId(t),r=ma.getTokenType(t),a=ma.getFontStyle(t),s=ma.getForeground(t),l=ma.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:s,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,s,l,c){let d=ma.getLanguageId(t),f=ma.getTokenType(t),p=ma.containsBalancedBrackets(t)?1:0,m=ma.getFontStyle(t),y=ma.getForeground(t),E=ma.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),s!==-1&&(m=s),l!==0&&(y=l),c!==0&&(E=c),(d<<0|f<<8|p<<10|m<<11|y<<15|E<<24)>>>0}};function fp(e,t){const n=[],r=IP(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function s(){if(a==="-"){a=r.next();const d=s();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=c();return a===")"&&(a=r.next()),d}if(CA(a)){const d=[];do d.push(a),a=r.next();while(CA(a));return f=>t(d,f)}return null}function l(){const d=[];let f=s();for(;f;)d.push(f),f=s();return p=>d.every(m=>m(p))}function c(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(m=>m(p))}}function CA(e){return!!e&&!!e.match(/[\w\.:]+/)}function IP(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function jD(e){typeof e.dispose=="function"&&e.dispose()}var id=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},wP=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},NP=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},OP=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new id(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new NP;for(const r of t)LP(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof id){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function LP(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof id?jh({baseGrammar:s,selfGrammar:a},r):uy(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const c of l)r.add(new id(c))}function uy(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];hp([r],t,n)}}function jh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&hp(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&hp(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function hp(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?wD({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&hp(r.patterns,{...t,repository:a},n);const s=r.include;if(!s)continue;const l=BD(s);switch(l.kind){case 0:jh({...t,selfGrammar:t.baseGrammar},n);break;case 1:jh(t,n);break;case 2:uy(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const d={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};l.kind===4?uy(l.ruleName,d,n):jh(d,n)}else l.kind===4?n.add(new wP(l.scopeName,l.ruleName)):n.add(new id(l.scopeName));break}}}var MP=class{kind=0},PP=class{kind=1},$P=class{constructor(t){this.ruleName=t}kind=2},FP=class{constructor(t){this.scopeName=t}kind=3},jP=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function BD(e){if(e==="$base")return new MP;if(e==="$self")return new PP;const t=e.indexOf("#");if(t===-1)return new FP(e);if(t===0)return new $P(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new jP(n,r)}}var BP=/\\(\d+)/,DA=/\\(\d+)/g,UP=-1,UD=-2,Md=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=yh.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=yh.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${ND(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:yh.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:yh.replaceCaptures(this._contentName,t,n)}},HP=class extends Md{retokenizeCapturedWithRuleId;constructor(t,n,r,a,s){super(t,n,r,a),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},zP=class extends Md{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,s){super(t,n,r,null),this._match=new sd(a,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new od,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kA=class extends Md{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,s){super(t,n,r,a),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new od,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},dy=class extends Md{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,s,l,c,d,f,p){super(t,n,r,a),this._begin=new sd(s,this.id),this.beginCaptures=l,this._end=new sd(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=f||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new od;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},pp=class extends Md{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,s,l,c,d,f){super(t,n,r,a),this._begin=new sd(s,this.id),this.beginCaptures=l,this.whileCaptures=d,this._while=new sd(c,UD),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new od;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new od,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},HD=class ur{static createCaptureRule(t,n,r,a,s){return t.registerRule(l=>new HP(n,l,r,a,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new zP(t.$vscodeTextmateLocation,t.id,t.name,t.match,ur._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=wD({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new kA(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ur._compilePatterns(s,n,r))}return t.while?new pp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ur._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,ur._compileCaptures(t.whileCaptures||t.captures,n,r),ur._compilePatterns(t.patterns,n,r)):new dy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ur._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,ur._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,ur._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let s=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);c>s&&(s=c)}for(let l=0;l<=s;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);let d=0;t[l].patterns&&(d=ur.getCompiledRuleId(t[l],n,r)),a[c]=ur.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let s=0,l=t.length;s<l;s++){const c=t[s];let d=-1;if(c.include){const f=BD(c.include);switch(f.kind){case 0:case 1:d=ur.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=ur.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,y=f.kind===4?f.ruleName:null,E=n.getExternalGrammar(m,r);if(E)if(y){let T=E.repository[y];T&&(d=ur.getCompiledRuleId(T,n,E.repository))}else d=ur.getCompiledRuleId(E.repository.$self,n,E.repository);break}}else d=ur.getCompiledRuleId(c,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof kA||f instanceof dy||f instanceof pp)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},sd=class zD{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,s=[],l=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const d=t.charAt(c+1);d==="z"?(s.push(t.substring(a,c)),s.push("$(?!\\n)(?<!\\n)"),a=c+2):(d==="A"||d==="G")&&(l=!0),c++}this.hasAnchor=l,a===0?this.source=t:(s.push(t.substring(a,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=BP.test(this.source):this.hasBackReferences=!1}clone(){return new zD(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return DA.lastIndex=0,this.source.replace(DA,(a,s)=>MD(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],s,l,c,d;for(s=0,l=this.source.length;s<l;s++)c=this.source.charAt(s),t[s]=c,n[s]=c,r[s]=c,a[s]=c,c==="\\"&&s+1<l&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="￿",n[s+1]="￿",r[s+1]="A",a[s+1]="A"):d==="G"?(t[s+1]="￿",n[s+1]="G",r[s+1]="￿",a[s+1]="G"):(t[s+1]=d,n[s+1]=d,r[s+1]=d,a[s+1]=d),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},od=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new RA(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(s=>s.resolveAnchors(n,r));return new RA(t,a,this._items.map(s=>s.ruleId))}},RA=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
54
- `)}findNextMatchSync(t,n,r){const a=this.scanner.findNextMatchSync(t,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},r1=class{constructor(t,n){this.languageId=t,this.tokenType=n}},GP=class fy{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new r1(t,8),this._embeddedLanguagesMatcher=new VP(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?fy._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new r1(0,0);_getBasicScopeAttributes=new PD(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new r1(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(fy.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},VP=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,a])=>MD(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},IA=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function GD(e,t,n,r,a,s,l,c){const d=t.content.length;let f=!1,p=-1;if(l){const E=qP(e,t,n,r,a,s);a=E.stack,r=E.linePos,n=E.isFirstLine,p=E.anchorPosition}const m=Date.now();for(;!f;){if(c!==0&&Date.now()-m>c)return new IA(a,!0);y()}return new IA(a,!1);function y(){const E=YP(e,t,n,r,a,p);if(!E){s.produce(a,d),f=!0;return}const T=E.captureIndices,A=E.matchedRuleId,C=T&&T.length>0?T[0].end>r:!1;if(A===UP){const x=a.getRule(e);s.produce(a,T[0].start),a=a.withContentNameScopesList(a.nameScopesList),Iu(e,t,n,a,s,x.endCaptures,T),s.produce(a,T[0].end);const D=a;if(a=a.parent,p=D.getAnchorPos(),!C&&D.getEnterPos()===r){a=D,s.produce(a,d),f=!0;return}}else{const x=e.getRule(A);s.produce(a,T[0].start);const D=a,S=x.getName(t.content,T),L=a.contentNameScopesList.pushAttributed(S,e);if(a=a.push(A,r,p,T[0].end===d,null,L,L),x instanceof dy){const M=x;Iu(e,t,n,a,s,M.beginCaptures,T),s.produce(a,T[0].end),p=T[0].end;const I=M.getContentName(t.content,T),V=L.pushAttributed(I,e);if(a=a.withContentNameScopesList(V),M.endHasBackReferences&&(a=a.withEndRule(M.getEndWithResolvedBackReferences(t.content,T))),!C&&D.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(x instanceof pp){const M=x;Iu(e,t,n,a,s,M.beginCaptures,T),s.produce(a,T[0].end),p=T[0].end;const I=M.getContentName(t.content,T),V=L.pushAttributed(I,e);if(a=a.withContentNameScopesList(V),M.whileHasBackReferences&&(a=a.withEndRule(M.getWhileWithResolvedBackReferences(t.content,T))),!C&&D.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(Iu(e,t,n,a,s,x.captures,T),s.produce(a,T[0].end),a=a.pop(),!C){a=a.safePop(),s.produce(a,d),f=!0;return}}T[0].end>r&&(r=T[0].end,n=!1)}}function qP(e,t,n,r,a,s){let l=a.beginRuleCapturedEOL?0:-1;const c=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof pp&&c.push({rule:f,stack:d})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:f,findOptions:p}=WP(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==UD){a=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(d.stack,m.captureIndices[0].start),Iu(e,t,n,d.stack,s,d.rule.whileCaptures,m.captureIndices),s.produce(d.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function YP(e,t,n,r,a,s){const l=QP(e,t,n,r,a,s),c=e.getInjections();if(c.length===0)return l;const d=KP(c,e,t,n,r,a,s);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}function QP(e,t,n,r,a,s){const l=a.getRule(e),{ruleScanner:c,findOptions:d}=VD(l,e,a.endRule,n,r===s),f=c.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function KP(e,t,n,r,a,s,l){let c=Number.MAX_VALUE,d=null,f,p=0;const m=s.contentNameScopesList.getScopeNames();for(let y=0,E=e.length;y<E;y++){const T=e[y];if(!T.matcher(m))continue;const A=t.getRule(T.ruleId),{ruleScanner:C,findOptions:x}=VD(A,t,null,r,a===l),D=C.findNextMatchSync(n,a,x);if(!D)continue;const S=D.captureIndices[0].start;if(!(S>=c)&&(c=S,d=D.captureIndices,f=D.ruleId,p=T.priority,c===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function VD(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function WP(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Iu(e,t,n,r,a,s,l){if(s.length===0)return;const c=t.content,d=Math.min(s.length,l.length),f=[],p=l[0].end;for(let m=0;m<d;m++){const y=s[m];if(y===null)continue;const E=l[m];if(E.length===0)continue;if(E.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=E.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,E.start):a.produce(r,E.start),y.retokenizeCapturedWithRuleId){const A=y.getName(c,l),C=r.contentNameScopesList.pushAttributed(A,e),x=y.getContentName(c,l),D=C.pushAttributed(x,e),S=r.push(y.retokenizeCapturedWithRuleId,E.start,-1,!1,null,C,D),L=e.createOnigString(c.substring(0,E.end));GD(e,L,n&&E.start===0,E.start,S,a,!1,0),jD(L);continue}const T=y.getName(c,l);if(T!==null){const A=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(T,e);f.push(new XP(A,E.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var XP=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function ZP(e,t,n,r,a,s,l,c){return new e7(e,t,n,r,a,s,l,c)}function wA(e,t,n,r,a){const s=fp(t,mp),l=HD.getCompiledRuleId(n,r,a.repository);for(const c of s)e.push({debugSelector:t,matcher:c.matcher,ruleId:l,grammar:a,priority:c.priority})}function mp(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(JP(t[a],r))return n=a+1,!0;return!1})}function JP(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var e7=class{constructor(t,n,r,a,s,l,c,d){if(this._rootScopeName=t,this.balancedBracketSelectors=l,this._onigLib=d,this._basicScopeAttributesProvider=new GP(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=NA(n,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const f of Object.keys(s)){const p=fp(f,mp);for(const m of p)this._tokenTypeMatchers.push({matcher:m.matcher,type:s[f]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},n=[],r=this._rootScopeName,a=t.lookup(r);if(a){const s=a.injections;if(s)for(let c in s)wA(n,c,s[c],this,a);const l=this._grammarRepository.injections(r);l&&l.forEach(c=>{const d=this.getExternalGrammar(c);if(d){const f=d.injectionSelector;f&&wA(n,f,d,this,d)}})}return n.sort((s,l)=>s.priority-l.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=NA(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const a=this._tokenize(t,n,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(t,n,r=0){const a=this._tokenize(t,n,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(t,n,r,a){this._rootId===-1&&(this._rootId=HD.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!n||n===hy.NULL){s=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),y=Ql.set(0,p.languageId,p.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),E=this.getRule(this._rootId).getName(null,null);let T;E?T=Pu.createRootAndLookUpScopeName(E,y,this):T=Pu.createRoot("unknown",y),n=new hy(null,this._rootId,-1,-1,!1,null,T,T)}else s=!1,n.reset();t=t+`
55
- `;const l=this.createOnigString(t),c=l.content.length,d=new n7(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),f=GD(this,l,s,0,n,d,!0,a);return jD(l),{lineLength:c,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function NA(e,t){return e=bP(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Pu=class ei{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const s of n)a=n1.push(a,s.scopeNames),r=new ei(r,a,s.encodedTokenAttributes);return r}static createRoot(t,n){return new ei(null,new n1(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),s=new n1(null,t),l=r.themeProvider.themeMatch(s),c=ei.mergeAttributes(n,a,l);return new ei(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ei.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,s=0,l=0;return r!==null&&(a=r.fontStyle,s=r.foregroundId,l=r.backgroundId),Ql.set(t,n.languageId,n.tokenType,null,a,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ei._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const s of r)a=ei._pushAttributed(a,s,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),c=ei.mergeAttributes(t.tokenAttributes,a,l);return new ei(t,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},hy=class ao{constructor(t,n,r,a,s,l,c,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=l,this.nameScopesList=c,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new ao(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:ao._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Pu.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ao._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,s,l,c){return new ao(this,t,n,r,a,s,l,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ao(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Pu.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new ao(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Pu.fromExtension(r,n.contentNameScopesList))}},t7=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):fp(r,mp).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>fp(r,mp).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},n7=class{constructor(t,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=t?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=t?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(l)&&(a=Ql.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(l))}if(s&&(a=Ql.set(a,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,s=this._binaryTokens.length;a<s;a++)r[a]=this._binaryTokens[a];return r}},r7=class{constructor(t,n){this._onigLib=n,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,a,s){if(!this._grammars.has(t)){let l=this._rawGrammars.get(t);if(!l)return null;this._grammars.set(t,ZP(t,l,n,r,a,s,this,this._onigLib))}return this._grammars.get(t)}},a7=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new r7(dp.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(dp.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new t7(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,s){const l=new OP(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(c=>this._loadSingleGrammar(c.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,s)}},py=hy.NULL;const qD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Pd=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Pd.prototype.normal={};Pd.prototype.property={};Pd.prototype.space=void 0;function YD(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Pd(n,r,t)}function ld(e){return e.toLowerCase()}let Fr=class{constructor(t,n){this.attribute=n,this.property=t}};Fr.prototype.attribute="";Fr.prototype.booleanish=!1;Fr.prototype.boolean=!1;Fr.prototype.commaOrSpaceSeparated=!1;Fr.prototype.commaSeparated=!1;Fr.prototype.defined=!1;Fr.prototype.mustUseProperty=!1;Fr.prototype.number=!1;Fr.prototype.overloadedBoolean=!1;Fr.prototype.property="";Fr.prototype.spaceSeparated=!1;Fr.prototype.space=void 0;let i7=0;const ht=$o(),Mn=$o(),my=$o(),ke=$o(),nn=$o(),Ul=$o(),Kr=$o();function $o(){return 2**++i7}const gy=Object.freeze(Object.defineProperty({__proto__:null,boolean:ht,booleanish:Mn,commaOrSpaceSeparated:Kr,commaSeparated:Ul,number:ke,overloadedBoolean:my,spaceSeparated:nn},Symbol.toStringTag,{value:"Module"})),a1=Object.keys(gy);let UE=class extends Fr{constructor(t,n,r,a){let s=-1;if(super(t,n),OA(this,"space",a),typeof r=="number")for(;++s<a1.length;){const l=a1[s];OA(this,a1[s],(r&gy[l])===gy[l])}}};UE.prototype.defined=!0;function OA(e,t,n){n&&(e[t]=n)}function tc(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new UE(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[ld(r)]=r,n[ld(s.attribute)]=r}return new Pd(t,n,e.space)}const QD=tc({properties:{ariaActiveDescendant:null,ariaAtomic:Mn,ariaAutoComplete:null,ariaBusy:Mn,ariaChecked:Mn,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:nn,ariaCurrent:null,ariaDescribedBy:nn,ariaDetails:null,ariaDisabled:Mn,ariaDropEffect:nn,ariaErrorMessage:null,ariaExpanded:Mn,ariaFlowTo:nn,ariaGrabbed:Mn,ariaHasPopup:null,ariaHidden:Mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nn,ariaLevel:ke,ariaLive:null,ariaModal:Mn,ariaMultiLine:Mn,ariaMultiSelectable:Mn,ariaOrientation:null,ariaOwns:nn,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Mn,ariaReadOnly:Mn,ariaRelevant:null,ariaRequired:Mn,ariaRoleDescription:nn,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Mn,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function KD(e,t){return t in e?e[t]:t}function WD(e,t){return KD(e,t.toLowerCase())}const s7=tc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ul,acceptCharset:nn,accessKey:nn,action:null,allow:null,allowFullScreen:ht,allowPaymentRequest:ht,allowUserMedia:ht,alt:null,as:null,async:ht,autoCapitalize:null,autoComplete:nn,autoFocus:ht,autoPlay:ht,blocking:nn,capture:null,charSet:null,checked:ht,cite:null,className:nn,cols:ke,colSpan:null,content:null,contentEditable:Mn,controls:ht,controlsList:nn,coords:ke|Ul,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ht,defer:ht,dir:null,dirName:null,disabled:ht,download:my,draggable:Mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ht,formTarget:null,headers:nn,height:ke,hidden:my,high:ke,href:null,hrefLang:null,htmlFor:nn,httpEquiv:nn,id:null,imageSizes:null,imageSrcSet:null,inert:ht,inputMode:null,integrity:null,is:null,isMap:ht,itemId:null,itemProp:nn,itemRef:nn,itemScope:ht,itemType:nn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ht,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:ht,muted:ht,name:null,nonce:null,noModule:ht,noValidate:ht,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:ht,optimum:ke,pattern:null,ping:nn,placeholder:null,playsInline:ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ht,referrerPolicy:null,rel:nn,required:ht,reversed:ht,rows:ke,rowSpan:ke,sandbox:nn,scope:null,scoped:ht,seamless:ht,selected:ht,shadowRootClonable:ht,shadowRootDelegatesFocus:ht,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:Mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:ht,useMap:null,value:Mn,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nn,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ht,declare:ht,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:ht,noHref:ht,noShade:ht,noWrap:ht,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:Mn,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ht,disableRemotePlayback:ht,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:WD}),o7=tc({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:Kr,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:nn,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:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,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:Ul,g2:Ul,glyphName:Ul,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Kr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,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:ke,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:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kr,rev:Kr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kr,requiredFeatures:Kr,requiredFonts:Kr,requiredFormats:Kr,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:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Kr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kr,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:KD}),XD=tc({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()}}),ZD=tc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:WD}),JD=tc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nc=YD([QD,s7,XD,ZD,JD],"html"),Gi=YD([QD,o7,XD,ZD,JD],"svg"),LA={}.hasOwnProperty;function rm(e,t){const n=t||{};function r(a,...s){let l=r.invalid;const c=r.handlers;if(a&&LA.call(a,e)){const d=String(a[e]);l=LA.call(c,d)?c[d]:r.unknown}if(l)return l.call(this,a,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const l7=/["&'<>`]/g,c7=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u7=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,d7=/[|\\{}()[\]^$+*?.]/g,MA=new WeakMap;function f7(e,t){if(e=e.replace(t.subset?h7(t.subset):l7,r),t.subset||t.escapeOnly)return e;return e.replace(c7,n).replace(u7,r);function n(a,s,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(a,s,l){return t.format(a.charCodeAt(0),l.charCodeAt(s+1),t)}}function h7(e){let t=MA.get(e);return t||(t=p7(e),MA.set(e,t)),t}function p7(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(d7,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const m7=/[\dA-Fa-f]/;function g7(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!m7.test(String.fromCharCode(t))?r:r+";"}const y7=/\d/;function E7(e,t,n){const r="&#"+String(e);return n&&t&&!y7.test(String.fromCharCode(t))?r:r+";"}const b7=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],i1={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},v7=["cent","copy","divide","gt","lt","not","para","times"],ek={}.hasOwnProperty,yy={};let Eh;for(Eh in i1)ek.call(i1,Eh)&&(yy[i1[Eh]]=Eh);const T7=/[^\dA-Za-z]/;function _7(e,t,n,r){const a=String.fromCharCode(e);if(ek.call(yy,a)){const s=yy[a],l="&"+s;return n&&b7.includes(s)&&!v7.includes(s)&&(!r||t&&t!==61&&T7.test(String.fromCharCode(t)))?l:l+";"}return""}function x7(e,t,n){let r=g7(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=_7(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const s=E7(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Hl(e,t){return f7(e,Object.assign({format:x7},t))}const A7=/^>|^->|<!--|-->|--!>|<!-$/g,S7=[">"],C7=["<",">"];function D7(e,t,n,r){return r.settings.bogusComments?"<?"+Hl(e.value,Object.assign({},r.settings.characterReferences,{subset:S7}))+">":"<!--"+e.value.replace(A7,a)+"-->";function a(s){return Hl(s,Object.assign({},r.settings.characterReferences,{subset:C7}))}}function k7(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function gp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function Ey(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const l=n.slice(a,r).trim();(l||!s)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function am(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function by(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function im(e){return e.join(" ").trim()}const R7=/[ \t\n\f\r]/g;function $d(e){return typeof e=="object"?e.type==="text"?PA(e.value):!1:PA(e)}function PA(e){return e.replace(R7,"")===""}const Gn=nk(1),tk=nk(-1),I7=[];function nk(e){return t;function t(n,r,a){const s=n?n.children:I7;let l=(r||0)+e,c=s[l];if(!a)for(;c&&$d(c);)l+=e,c=s[l];return c}}const w7={}.hasOwnProperty;function rk(e){return t;function t(n,r,a){return w7.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const HE=rk({body:O7,caption:s1,colgroup:s1,dd:$7,dt:P7,head:s1,html:N7,li:M7,optgroup:F7,option:j7,p:L7,rp:$A,rt:$A,tbody:U7,td:FA,tfoot:H7,th:FA,thead:B7,tr:z7});function s1(e,t,n){const r=Gn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&$d(r.value.charAt(0)))}function N7(e,t,n){const r=Gn(n,t);return!r||r.type!=="comment"}function O7(e,t,n){const r=Gn(n,t);return!r||r.type!=="comment"}function L7(e,t,n){const r=Gn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function M7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function P7(e,t,n){const r=Gn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function $7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function $A(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function F7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function j7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function B7(e,t,n){const r=Gn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function U7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function H7(e,t,n){return!Gn(n,t)}function z7(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function FA(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const G7=rk({body:Y7,colgroup:Q7,head:q7,html:V7,tbody:K7});function V7(e){const t=Gn(e,-1);return!t||t.type!=="comment"}function q7(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Y7(e){const t=Gn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&$d(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Q7(e,t,n){const r=tk(n,t),a=Gn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&HE(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function K7(e,t,n){const r=tk(n,t),a=Gn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&HE(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const W7=/[A-Z]/g,jA=/-[a-z]/g,X7=/^data[-\w.:]+$/i;function Fd(e,t){const n=ld(t);let r=t,a=Fr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&X7.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(jA,J7);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!jA.test(s)){let l=s.replace(W7,Z7);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=UE}return new a(r,t)}function Z7(e){return"-"+e.toLowerCase()}function J7(e){return e.charAt(1).toUpperCase()}const bh={name:[[`
56
- \f\r &/=>`.split(""),`
57
- \f\r "&'/=>\``.split("")],[`\0
58
- \f\r "&'/<=>`.split(""),`\0
59
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
60
- \f\r &>`.split(""),`\0
61
- \f\r "&'<=>\``.split("")],[`\0
62
- \f\r "&'<=>\``.split(""),`\0
63
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function e$(e,t,n,r){const a=r.schema,s=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=Gi);const f=t$(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!s||!G7(e,t,n))&&(c.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!l&&(!s||!HE(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function t$(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const s=n$(e,a,t[a]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function n$(e,t,n){const r=Fd(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let l=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const d=Hl(r.attribute,Object.assign({},e.settings.characterReferences,{subset:bh.name[a][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?am:im)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(c=Hl(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:bh.unquoted[a][s]}))),c!==n&&(e.settings.quoteSmart&&gp(n,l)>gp(n,e.alternative)&&(l=e.alternative),c=l+Hl(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?bh.single:bh.double)[a][s],attribute:!0}))+l),d+(c&&"="+c))}const r$=["<","&"];function ak(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Hl(e.value,Object.assign({},r.settings.characterReferences,{subset:r$}))}function a$(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ak(e,t,n,r)}function i$(e,t,n,r){return r.all(e)}const s$=rm("type",{invalid:o$,unknown:l$,handlers:{comment:D7,doctype:k7,element:e$,raw:a$,root:i$,text:ak}});function o$(e){throw new Error("Expected node, not `"+e+"`")}function l$(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const c$={},u$={},d$=[];function f$(e,t){const n=c$,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:h$,all:p$,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||qD,characterReferences:n.characterReferences||u$,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Gi:nc,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function h$(e,t,n){return s$(e,t,n,this)}function p$(e){const t=[],n=e&&e.children||d$;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function m$(e){return Array.isArray(e)?e:[e]}function sm(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];a.push([l,r]),r+=n[s].length,r+=n[s+1]?.length||0}return a}function zE(e){return!e||["plaintext","txt","text","plain"].includes(e)}function ik(e){return e==="ansi"||zE(e)}function GE(e){return e==="none"}function sk(e){return GE(e)}function ok(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function g$(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function y$(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const s=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,c)=>l-c);return s.length?g$(a,s):a})):e}async function lk(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function yp(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[a]=s:a===r&&Object.assign(n,s);return n}function ho(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function ck(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Bi.Italic&&(t["font-style"]="italic"),e.fontStyle&Bi.Bold&&(t["font-weight"]="bold"),e.fontStyle&Bi.Underline&&(t["text-decoration"]="underline")),t}function E$(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function b$(e){const t=sm(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=a,l=0;for(const c of t){if(s<c.length)break;s-=c.length,l++}return{line:l,character:s}}function r(a,s){let l=0;for(let c=0;c<a;c++)l+=t[c].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}let _r=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const uk=new WeakMap;function om(e,t){uk.set(e,t)}function cd(e){return uk.get(e)}let lm=class dk{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new dk(Object.fromEntries(m$(n).map(r=>[r,py])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return BA(this._stacks[this.theme])}getScopes(t=this.theme){return BA(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function BA(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const s=a?.nameScopesList?.scopeName;s&&t.push(s),a.parent&&r(a.parent)}return r(e),t}function v$(e,t){if(!(e instanceof lm))throw new _r("Invalid grammar state");return e.getInternalStack(t)}function T$(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new _r(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const c=a.lines[l.line];if(c===void 0)throw new _r(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>c.length)throw new _r(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${c.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=b$(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));_$(s),e.set(n.meta,{decorations:s,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return y$(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new _r(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(p,m,y,E){const T=a[p];let A="",C=-1,x=-1;if(m===0&&(C=0),y===0&&(x=0),y===Number.POSITIVE_INFINITY&&(x=T.children.length),C===-1||x===-1)for(let S=0;S<T.children.length;S++)A+=fk(T.children[S]),C===-1&&A.length===m&&(C=S+1),x===-1&&A.length===y&&(x=S+1);if(C===-1)throw new _r(`Failed to find start index for decoration ${JSON.stringify(E.start)}`);if(x===-1)throw new _r(`Failed to find end index for decoration ${JSON.stringify(E.end)}`);const D=T.children.slice(C,x);if(!E.alwaysWrap&&D.length===T.children.length)c(T,E,"line");else if(!E.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],E,"token");else{const S={type:"element",tagName:"span",properties:{},children:D};c(S,E,"wrapper"),T.children.splice(C,D.length,S)}}function l(p,m){a[p]=c(a[p],m,"line")}function c(p,m,y){const E=m.properties||{},T=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,...E,class:p.properties.class},m.properties?.class&&ok(p,m.properties.class),p=T(p,y)||p,p}const d=[],f=r.decorations.sort((p,m)=>m.start.offset-p.start.offset);for(const p of f){const{start:m,end:y}=p;if(m.line===y.line)s(m.line,m.character,y.character,p);else if(m.line<y.line){s(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let E=m.line+1;E<y.line;E++)d.unshift(()=>l(E,p));s(y.line,0,y.character,p)}}d.forEach(p=>p())}}}function _$(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new _r(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],s=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,c=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(s||l||c||d){if(l&&l||c&&d)continue;throw new _r(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function fk(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(fk).join(""):""}const x$=[T$()];function Ep(e){return[...e.transformers||[],...x$]}var po=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],o1={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function A$(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function UA(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const s=[e[t+n++],e[t+n++],e[t+n]].map(l=>Number.parseInt(l));s.length===3&&!s.some(l=>Number.isNaN(l))&&(a={type:"rgb",rgb:s})}else if(r==="5"){const s=Number.parseInt(e[t+n]);Number.isNaN(s)||(a={type:"table",index:Number(s)})}return[n,a]}function S$(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)o1[a]&&t.push({type:"setDecoration",value:o1[a]});else if(a<=29){const s=o1[a-20];s&&t.push({type:"resetDecoration",value:s})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:po[a-30]}});else if(a===38){const[s,l]=UA(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=s}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:po[a-40]}});else if(a===48){const[s,l]=UA(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=s}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:po[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:po[a-100+8]}})}return t}function C$(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let s=0;do{const l=A$(r,s),c=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=S$(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}s=l.position}while(s<r.length);return a}}}var D$={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function k$(e=D$){function t(c){return e[c]}function n(c){return`#${c.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<po.length;f++)r.push(t(po[f]));let c=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)r.push(n([c[f],c[p],c[m]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function s(c){return a()[c]}function l(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return s(c.index)}}return{value:l}}function R$(e,t,n){const r=yp(e,n),a=sm(t),s=k$(Object.fromEntries(po.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),l=C$();return a.map(c=>l.parse(c[0]).map(d=>{let f,p;d.decorations.has("reverse")?(f=d.background?s.value(d.background):e.bg,p=d.foreground?s.value(d.foreground):e.fg):(f=d.foreground?s.value(d.foreground):e.fg,p=d.background?s.value(d.background):void 0),f=ho(f,r),p=ho(p,r),d.decorations.has("dim")&&(f=I$(f));let m=Bi.None;return d.decorations.has("bold")&&(m|=Bi.Bold),d.decorations.has("italic")&&(m|=Bi.Italic),d.decorations.has("underline")&&(m|=Bi.Underline),{content:d.value,offset:c[1],color:f,bgColor:p,fontStyle:m}}))}function I$(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function VE(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(zE(r)||GE(a))return sm(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:s,colorMap:l}=e.setTheme(a);if(r==="ansi")return R$(s,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Hi(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Hi(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return N$(t,c,s,l,n)}function w$(...e){if(e.length===2)return cd(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:s=t.getLoadedThemes()[0]}=r;if(zE(a)||GE(s))throw new Hi("Plain language does not have grammar state");if(a==="ansi")throw new Hi("ANSI language does not have grammar state");const{theme:l,colorMap:c}=t.setTheme(s),d=t.getLanguage(a);return new lm(bp(n,d,l,c,r).stateStack,d.name,l.name)}function N$(e,t,n,r,a){const s=bp(e,t,n,r,a),l=new lm(bp(e,t,n,r,a).stateStack,t.name,n.name);return om(s.tokens,l),s.tokens}function bp(e,t,n,r,a){const s=yp(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:c=500}=a,d=sm(e);let f=a.grammarState?v$(a.grammarState,n.name)??py:a.grammarContextCode!=null?bp(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:py,p=[];const m=[];for(let y=0,E=d.length;y<E;y++){const[T,A]=d[y];if(T===""){p=[],m.push([]);continue}if(l>0&&T.length>=l){p=[],m.push([{content:T,offset:A,color:"",fontStyle:0}]);continue}let C,x,D;a.includeExplanation&&(C=t.tokenizeLine(T,f),x=C.tokens,D=0);const S=t.tokenizeLine2(T,f,c),L=S.tokens.length/2;for(let M=0;M<L;M++){const I=S.tokens[2*M],V=M+1<L?S.tokens[2*M+2]:T.length;if(I===V)continue;const ne=S.tokens[2*M+1],K=ho(r[Ql.getForeground(ne)],s),k=Ql.getFontStyle(ne),H={content:T.substring(I,V),offset:A+I,color:K,fontStyle:k};if(a.includeExplanation){const Q=[];if(a.includeExplanation!=="scopeName")for(const re of n.settings){let me;switch(typeof re.scope){case"string":me=re.scope.split(/,/).map(G=>G.trim());break;case"object":me=re.scope;break;default:continue}Q.push({settings:re,selectors:me.map(G=>G.split(/ /))})}H.explanation=[];let W=0;for(;I+W<V;){const re=x[D],me=T.substring(re.startIndex,re.endIndex);W+=me.length,H.explanation.push({content:me,scopes:a.includeExplanation==="scopeName"?O$(re.scopes):L$(Q,re.scopes)}),D+=1}}p.push(H)}m.push(p),p=[],f=S.ruleStack}return{tokens:m,stateStack:f}}function O$(e){return e.map(t=>({scopeName:t}))}function L$(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const s=t[r];n[r]={scopeName:s,themeMatches:P$(e,s,t.slice(0,r))}}return n}function HA(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function M$(e,t,n){if(!HA(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)HA(e[r],n[a])&&(r-=1),a-=1;return r===-1}function P$(e,t,n){const r=[];for(const{selectors:a,settings:s}of e)for(const l of a)if(M$(l,t,n)){r.push(s);break}return r}function hk(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=VE(e,t,{...n,theme:d.theme}),p=cd(f),m=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:m}}),s=$$(...a.map(d=>d.tokens)),l=s[0].map((d,f)=>d.map((p,m)=>{const y={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=p.explanation),s.forEach((E,T)=>{const{content:A,explanation:C,offset:x,...D}=E[f][m];y.variants[r[T].color]=D}),y})),c=a[0].state?new lm(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return c&&om(l,c),l}function $$(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),s=t.map(()=>[]);t.forEach((d,f)=>d.push(s[f]));const l=a.map(()=>0),c=a.map(d=>d[0]);for(;c.every(d=>d);){const d=Math.min(...c.map(f=>f.content.length));for(let f=0;f<n;f++){const p=c[f];p.content.length===d?(s[f].push(p),l[f]+=1,c[f]=a[f][l[f]]):(s[f].push({...p,content:p.content.slice(0,d)}),c[f]={...p,content:p.content.slice(d),offset:p.offset+d})}}}return t}function vp(e,t,n){let r,a,s,l,c,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-"}=n,m=Object.entries(n.themes).filter(C=>C[1]).map(C=>({color:C[0],theme:C[1]})).sort((C,x)=>C.color===f?-1:x.color===f?1:0);if(m.length===0)throw new Hi("`themes` option must not be empty");const y=hk(e,t,n);if(d=cd(y),f&&!m.find(C=>C.color===f))throw new Hi(`\`themes\` option must contain the defaultColor key \`${f}\``);const E=m.map(C=>e.getTheme(C.theme)),T=m.map(C=>C.color);s=y.map(C=>C.map(x=>F$(x,T,p,f))),d&&om(s,d);const A=m.map(C=>yp(C.theme,n));a=m.map((C,x)=>(x===0&&f?"":`${p+C.color}:`)+(ho(E[x].fg,A[x])||"inherit")).join(";"),r=m.map((C,x)=>(x===0&&f?"":`${p+C.color}-bg:`)+(ho(E[x].bg,A[x])||"inherit")).join(";"),l=`shiki-themes ${E.map(C=>C.name).join(" ")}`,c=f?void 0:[a,r].join(";")}else if("theme"in n){const f=yp(n.theme,n);s=VE(e,t,n);const p=e.getTheme(n.theme);r=ho(p.bg,f),a=ho(p.fg,f),l=p.name,d=cd(s)}else throw new Hi("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:a,bg:r,themeName:l,rootStyle:c,grammarState:d}}function F$(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(d=>ck(e.variants[d])),l=new Set(s.flatMap(d=>Object.keys(d))),c={};return s.forEach((d,f)=>{for(const p of l){const m=d[p]||"inherit";if(f===0&&r)c[p]=m;else{const y=p==="color"?"":p==="background-color"?"-bg":`-${p}`,E=n+t[f]+(p==="color"?"":y);c[E]=m}}}),a.htmlStyle=c,a}function Tp(e,t,n,r={meta:{},options:n,codeToHast:(a,s)=>Tp(e,a,s),codeToTokens:(a,s)=>vp(e,a,s)}){let a=t;for(const E of Ep(n))a=E.preprocess?.call(r,a,n)||a;let{tokens:s,fg:l,bg:c,themeName:d,rootStyle:f,grammarState:p}=vp(e,a,n);const{mergeWhitespaces:m=!0}=n;m===!0?s=B$(s):m==="never"&&(s=U$(s));const y={...r,get source(){return a}};for(const E of Ep(n))s=E.tokens?.call(y,s)||s;return j$(s,{...n,fg:l,bg:c,themeName:d,rootStyle:f},y,p)}function j$(e,t,n,r=cd(e)){const a=Ep(t),s=[],l={type:"root",children:[]},{structure:c="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([T])=>!T.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:s};const m=[],y={...n,structure:c,addClassToHast:ok,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return p},get lines(){return m}};if(e.forEach((T,A)=>{A&&(c==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&s.push({type:"text",value:`
64
- `}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const D of T){let S={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const L=E$(D.htmlStyle||ck(D));L&&(S.properties.style=L);for(const M of a)S=M?.span?.call(y,S,A+1,x,C,D)||S;c==="inline"?l.children.push(S):c==="classic"&&C.children.push(S),x+=D.content.length}if(c==="classic"){for(const D of a)C=D?.line?.call(y,C,A+1)||C;m.push(C),s.push(C)}}),c==="classic"){for(const T of a)p=T?.code?.call(y,p)||p;f.children.push(p);for(const T of a)f=T?.pre?.call(y,f)||f;l.children.push(f)}let E=l;for(const T of a)E=T?.root?.call(y,E)||E;return r&&om(E,r),E}function B$(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((s,l)=>{const c=!(s.fontStyle&&s.fontStyle&Bi.Underline);c&&s.content.match(/^\s+$/)&&t[l+1]?(a||(a=s.offset),r+=s.content):r?(c?n.push({...s,offset:a,content:r+s.content}):n.push({content:r,offset:a},s),a=0,r=""):n.push(s)}),n})}function U$(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,s,l]=r;if(!a&&!l)return n;const c=[{...n,offset:n.offset+a.length,content:s}];return a&&c.unshift({content:a,offset:n.offset}),l&&c.push({content:l,offset:n.offset+a.length+s.length}),c}))}function H$(e,t,n){const r={meta:{},options:n,codeToHast:(s,l)=>Tp(e,s,l),codeToTokens:(s,l)=>vp(e,s,l)};let a=f$(Tp(e,t,n,r));for(const s of Ep(n))a=s.postprocess?.call(r,a,n)||a;return a}const zA={light:"#333333",dark:"#bbbbbb"},GA={light:"#fffffe",dark:"#1e1e1e"},VA="__shiki_resolved";function qE(e){if(e?.[VA])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?zA.light:zA.dark),n||(n=t.type==="light"?GA.light:GA.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const s=new Map;function l(c){if(s.has(c))return s.get(c);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(c):(s.set(c,d),d)}t.settings=t.settings.map(c=>{const d=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),f=c.settings?.background&&!c.settings.background.startsWith("#");if(!d&&!f)return c;const p={...c,settings:{...c.settings}};if(d){const m=l(c.settings.foreground);t.colorReplacements[m]=c.settings.foreground,p.settings.foreground=m}if(f){const m=l(c.settings.background);t.colorReplacements[m]=c.settings.background,p.settings.background=m}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const d=l(t.colors[c]);t.colorReplacements[d]=t.colors[c],t.colors[c]=d}return Object.defineProperty(t,VA,{enumerable:!1,writable:!1,value:!0}),t}async function pk(e){return Array.from(new Set((await Promise.all(e.filter(t=>!ik(t)).map(async t=>await lk(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function mk(e){return(await Promise.all(e.map(async t=>sk(t)?null:qE(await lk(t))))).filter(t=>!!t)}let z$=class extends a7{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=qE(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=dp.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new _r(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,s])=>!s);if(r.length){const a=n.filter(([s,l])=>l&&l.embeddedLangs?.some(c=>r.map(([d])=>d).includes(c))).filter(s=>!r.includes(s));throw new _r(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${a.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[a,s]of n)this._resolver.addLanguage(s);for(const[a,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}},G$=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const s=n.slice(0,a).join(".");r=[...r,...this._injections.get(s)||[]]}return r}},du=0;function V$(e){du+=1,e.warnings!==!1&&du>=10&&du%10===0&&console.warn(`[Shiki] ${du} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new _r("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(qE),a=new G$(e.engine,n),s=new z$(a,r,n,e.langAlias);let l;function c(D){C();const S=s.getGrammar(typeof D=="string"?D:D.name);if(!S)throw new _r(`Language \`${D}\` not found, you may need to load it first`);return S}function d(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const S=s.getTheme(D);if(!S)throw new _r(`Theme \`${D}\` not found, you may need to load it first`);return S}function f(D){C();const S=d(D);l!==D&&(s.setTheme(S),l=D);const L=s.getColorMap();return{theme:S,colorMap:L}}function p(){return C(),s.getLoadedThemes()}function m(){return C(),s.getLoadedLanguages()}function y(...D){C(),s.loadLanguages(D.flat(1))}async function E(...D){return y(await pk(D))}function T(...D){C();for(const S of D.flat(1))s.loadTheme(S)}async function A(...D){return C(),T(await mk(D))}function C(){if(t)throw new _r("Shiki instance has been disposed")}function x(){t||(t=!0,s.dispose(),du-=1)}return{setTheme:f,getTheme:d,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:E,loadLanguageSync:y,loadTheme:A,loadThemeSync:T,dispose:x,[Symbol.dispose]:x}}async function q$(e={}){e.loadWasm;const[t,n,r]=await Promise.all([mk(e.themes||[]),pk(e.langs||[]),e.engine||ID(e.loadWasm||EP())]);return V$({...e,themes:t,langs:n,engine:r})}async function Y$(e={}){const t=await q$(e);return{getLastGrammarState:(...n)=>w$(t,...n),codeToTokensBase:(n,r)=>VE(t,n,r),codeToTokensWithThemes:(n,r)=>hk(t,n,r),codeToTokens:(n,r)=>vp(t,n,r),codeToHast:(n,r)=>Tp(t,n,r),codeToHtml:(n,r)=>H$(t,n,r),...t,getInternalContext:()=>t}}function Q$(e,t,n){let r,a,s;{const c=e;r=c.langs,a=c.themes,s=c.engine}async function l(c){function d(E){if(typeof E=="string"){if(ik(E))return[];const T=r[E];if(!T)throw new Hi(`Language \`${E}\` is not included in this bundle. You may want to load it from external source.`);return T}return E}function f(E){if(sk(E))return"none";if(typeof E=="string"){const T=a[E];if(!T)throw new Hi(`Theme \`${E}\` is not included in this bundle. You may want to load it from external source.`);return T}return E}const p=(c.themes??[]).map(E=>f(E)),m=(c.langs??[]).map(E=>d(E)),y=await Y$({engine:c.engine??s(),...c,themes:p,langs:m});return{...y,loadLanguage(...E){return y.loadLanguage(...E.map(d))},loadTheme(...E){return y.loadTheme(...E.map(f))}}}return l}const K$=Q$({langs:ZM,themes:eP,engine:()=>ID(F(()=>import("./index.es115-CG6Dc4jp.js"),[]))}),l1={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},W$={...l1,patterns:[...l1.patterns,{include:"#docvar"}],repository:{...l1.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},X$={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},gk="catppuccin-latte",Z$=K$({themes:[gk],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...W$},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...X$}]});async function Co(e,t){return(await Z$).codeToHtml(e,{lang:t,theme:gk})}const zn=Ls(Ml)({display:"flex",flexDirection:"column",height:"100%"}),na=Ls(Pl)({display:"flex",flexDirection:"column",padding:"10px",flexGrow:1}),YE=Ls(i4)({padding:"10px"}),J$=Ls("div")({height:"100%"});Ls("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const yk=Ls("div")({height:"75vh",width:"100%",overflowY:"auto"});Ls("div")({position:"relative",height:"100%",flex:"0 0 auto"});function ar({error:e,context:t}){const n=e.data?.message||"Unknown Error";return b.jsxs(b.Fragment,{children:[t&&b.jsx(Pe,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),b.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function pr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:s=2,textVariant:l="body2"}){const c=b.jsxs(ut,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[b.jsx(s4,{size:t,color:n,thickness:r}),e&&b.jsx(Pe,{variant:l,color:"text.secondary",children:e})]});return a?b.jsx(ut,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const e8=Jt([b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"},"0"),b.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]);function Ek(e,t){return function(){return e.apply(t,arguments)}}const{toString:t8}=Object.prototype,{getPrototypeOf:QE}=Object,{iterator:cm,toStringTag:bk}=Symbol,um=(e=>t=>{const n=t8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ja=e=>(e=e.toLowerCase(),t=>um(t)===e),dm=e=>t=>typeof t===e,{isArray:rc}=Array,ud=dm("undefined");function jd(e){return e!==null&&!ud(e)&&e.constructor!==null&&!ud(e.constructor)&&Mr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vk=ja("ArrayBuffer");function n8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vk(e.buffer),t}const r8=dm("string"),Mr=dm("function"),Tk=dm("number"),Bd=e=>e!==null&&typeof e=="object",a8=e=>e===!0||e===!1,Bh=e=>{if(um(e)!=="object")return!1;const t=QE(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(bk in e)&&!(cm in e)},i8=e=>{if(!Bd(e)||jd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},s8=ja("Date"),o8=ja("File"),l8=ja("Blob"),c8=ja("FileList"),u8=e=>Bd(e)&&Mr(e.pipe),d8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mr(e.append)&&((t=um(e))==="formdata"||t==="object"&&Mr(e.toString)&&e.toString()==="[object FormData]"))},f8=ja("URLSearchParams"),[h8,p8,m8,g8]=["ReadableStream","Request","Response","Headers"].map(ja),y8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ud(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),rc(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(jd(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let c;for(r=0;r<l;r++)c=s[r],t.call(null,e[c],c,e)}}function _k(e,t){if(jd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xk=e=>!ud(e)&&e!==mo;function vy(){const{caseless:e}=xk(this)&&this||{},t={},n=(r,a)=>{const s=e&&_k(t,a)||a;Bh(t[s])&&Bh(r)?t[s]=vy(t[s],r):Bh(r)?t[s]=vy({},r):rc(r)?t[s]=r.slice():t[s]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Ud(arguments[r],n);return t}const E8=(e,t,n,{allOwnKeys:r}={})=>(Ud(t,(a,s)=>{n&&Mr(a)?e[s]=Ek(a,n):e[s]=a},{allOwnKeys:r}),e),b8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),v8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},T8=(e,t,n,r)=>{let a,s,l;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)l=a[s],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&QE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},x8=e=>{if(!e)return null;if(rc(e))return e;let t=e.length;if(!Tk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},A8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&QE(Uint8Array)),S8=(e,t)=>{const r=(e&&e[cm]).call(e);let a;for(;(a=r.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},C8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},D8=ja("HTMLFormElement"),k8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),qA=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),R8=ja("RegExp"),Ak=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ud(n,(a,s)=>{let l;(l=t(a,s,e))!==!1&&(r[s]=l||a)}),Object.defineProperties(e,r)},I8=e=>{Ak(e,(t,n)=>{if(Mr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},w8=(e,t)=>{const n={},r=a=>{a.forEach(s=>{n[s]=!0})};return rc(e)?r(e):r(String(e).split(t)),n},N8=()=>{},O8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function L8(e){return!!(e&&Mr(e.append)&&e[bk]==="FormData"&&e[cm])}const M8=e=>{const t=new Array(10),n=(r,a)=>{if(Bd(r)){if(t.indexOf(r)>=0)return;if(jd(r))return r;if(!("toJSON"in r)){t[a]=r;const s=rc(r)?[]:{};return Ud(r,(l,c)=>{const d=n(l,a+1);!ud(d)&&(s[c]=d)}),t[a]=void 0,s}}return r};return n(e,0)},P8=ja("AsyncFunction"),$8=e=>e&&(Bd(e)||Mr(e))&&Mr(e.then)&&Mr(e.catch),Sk=((e,t)=>e?setImmediate:t?((n,r)=>(mo.addEventListener("message",({source:a,data:s})=>{a===mo&&s===n&&r.length&&r.shift()()},!1),a=>{r.push(a),mo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Mr(mo.postMessage)),F8=typeof queueMicrotask<"u"?queueMicrotask.bind(mo):typeof process<"u"&&process.nextTick||Sk,j8=e=>e!=null&&Mr(e[cm]),de={isArray:rc,isArrayBuffer:vk,isBuffer:jd,isFormData:d8,isArrayBufferView:n8,isString:r8,isNumber:Tk,isBoolean:a8,isObject:Bd,isPlainObject:Bh,isEmptyObject:i8,isReadableStream:h8,isRequest:p8,isResponse:m8,isHeaders:g8,isUndefined:ud,isDate:s8,isFile:o8,isBlob:l8,isRegExp:R8,isFunction:Mr,isStream:u8,isURLSearchParams:f8,isTypedArray:A8,isFileList:c8,forEach:Ud,merge:vy,extend:E8,trim:y8,stripBOM:b8,inherits:v8,toFlatObject:T8,kindOf:um,kindOfTest:ja,endsWith:_8,toArray:x8,forEachEntry:S8,matchAll:C8,isHTMLForm:D8,hasOwnProperty:qA,hasOwnProp:qA,reduceDescriptors:Ak,freezeMethods:I8,toObjectSet:w8,toCamelCase:k8,noop:N8,toFiniteNumber:O8,findKey:_k,global:mo,isContextDefined:xk,isSpecCompliantForm:L8,toJSONObject:M8,isAsyncFn:P8,isThenable:$8,setImmediate:Sk,asap:F8,isIterable:j8};function ct(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}de.inherits(ct,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.status}}});const Ck=ct.prototype,Dk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Dk[e]={value:e}});Object.defineProperties(ct,Dk);Object.defineProperty(Ck,"isAxiosError",{value:!0});ct.from=(e,t,n,r,a,s)=>{const l=Object.create(Ck);return de.toFlatObject(e,l,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),ct.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const B8=null;function Ty(e){return de.isPlainObject(e)||de.isArray(e)}function kk(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function YA(e,t,n){return e?e.concat(t).map(function(a,s){return a=kk(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function U8(e){return de.isArray(e)&&!e.some(Ty)}const H8=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function fm(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,C){return!de.isUndefined(C[A])});const r=n.metaTokens,a=n.visitor||p,s=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(a))throw new TypeError("visitor must be a function");function f(T){if(T===null)return"";if(de.isDate(T))return T.toISOString();if(de.isBoolean(T))return T.toString();if(!d&&de.isBlob(T))throw new ct("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(T)||de.isTypedArray(T)?d&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function p(T,A,C){let x=T;if(T&&!C&&typeof T=="object"){if(de.endsWith(A,"{}"))A=r?A:A.slice(0,-2),T=JSON.stringify(T);else if(de.isArray(T)&&U8(T)||(de.isFileList(T)||de.endsWith(A,"[]"))&&(x=de.toArray(T)))return A=kk(A),x.forEach(function(S,L){!(de.isUndefined(S)||S===null)&&t.append(l===!0?YA([A],L,s):l===null?A:A+"[]",f(S))}),!1}return Ty(T)?!0:(t.append(YA(C,A,s),f(T)),!1)}const m=[],y=Object.assign(H8,{defaultVisitor:p,convertValue:f,isVisitable:Ty});function E(T,A){if(!de.isUndefined(T)){if(m.indexOf(T)!==-1)throw Error("Circular reference detected in "+A.join("."));m.push(T),de.forEach(T,function(x,D){(!(de.isUndefined(x)||x===null)&&a.call(t,x,de.isString(D)?D.trim():D,A,y))===!0&&E(x,A?A.concat(D):[D])}),m.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return E(e),t}function QA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function KE(e,t){this._pairs=[],e&&fm(e,this,t)}const Rk=KE.prototype;Rk.append=function(t,n){this._pairs.push([t,n])};Rk.toString=function(t){const n=t?function(r){return t.call(this,r,QA)}:QA;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function z8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ik(e,t,n){if(!t)return e;const r=n&&n.encode||z8;de.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=de.isURLSearchParams(t)?t.toString():new KE(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class KA{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G8=typeof URLSearchParams<"u"?URLSearchParams:KE,V8=typeof FormData<"u"?FormData:null,q8=typeof Blob<"u"?Blob:null,Y8={isBrowser:!0,classes:{URLSearchParams:G8,FormData:V8,Blob:q8},protocols:["http","https","file","blob","url","data"]},WE=typeof window<"u"&&typeof document<"u",_y=typeof navigator=="object"&&navigator||void 0,Q8=WE&&(!_y||["ReactNative","NativeScript","NS"].indexOf(_y.product)<0),K8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",W8=WE&&window.location.href||"http://localhost",X8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:WE,hasStandardBrowserEnv:Q8,hasStandardBrowserWebWorkerEnv:K8,navigator:_y,origin:W8},Symbol.toStringTag,{value:"Module"})),dr={...X8,...Y8};function Z8(e,t){return fm(e,new dr.classes.URLSearchParams,{visitor:function(n,r,a,s){return dr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function J8(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function e9(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}function Nk(e){function t(n,r,a,s){let l=n[s++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=s>=n.length;return l=!l&&de.isArray(a)?a.length:l,d?(de.hasOwnProp(a,l)?a[l]=[a[l],r]:a[l]=r,!c):((!a[l]||!de.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],s)&&de.isArray(a[l])&&(a[l]=e9(a[l])),!c)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,a)=>{t(J8(r),a,n,0)}),n}return null}function t9(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Hd={transitional:wk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,s=de.isObject(t);if(s&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return a?JSON.stringify(Nk(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Z8(t,this.formSerializer).toString();if((c=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return fm(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),t9(t)):t}],transformResponse:[function(t){const n=this.transitional||Hd.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?ct.from(c,ct.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dr.classes.FormData,Blob:dr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{Hd.headers[e]={}});const n9=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r9=e=>{const t={};let n,r,a;return e&&e.split(`
65
- `).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&n9[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},WA=Symbol("internals");function fu(e){return e&&String(e).trim().toLowerCase()}function Uh(e){return e===!1||e==null?e:de.isArray(e)?e.map(Uh):String(e)}function a9(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const i9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function c1(e,t,n,r,a){if(de.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function s9(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function o9(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,s,l){return this[r].call(this,t,a,s,l)},configurable:!0})})}let Pr=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function s(c,d,f){const p=fu(d);if(!p)throw new Error("header name must be a non-empty string");const m=de.findKey(a,p);(!m||a[m]===void 0||f===!0||f===void 0&&a[m]!==!1)&&(a[m||d]=Uh(c))}const l=(c,d)=>de.forEach(c,(f,p)=>s(f,p,d));if(de.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(de.isString(t)&&(t=t.trim())&&!i9(t))l(r9(t),n);else if(de.isObject(t)&&de.isIterable(t)){let c={},d,f;for(const p of t){if(!de.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[f=p[0]]=(d=c[f])?de.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}l(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=fu(t),t){const r=de.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return a9(a);if(de.isFunction(n))return n.call(this,a,r);if(de.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fu(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||c1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function s(l){if(l=fu(l),l){const c=de.findKey(r,l);c&&(!n||c1(r,r[c],c,n))&&(delete r[c],a=!0)}}return de.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const s=n[r];(!t||c1(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,r={};return de.forEach(this,(a,s)=>{const l=de.findKey(r,s);if(l){n[l]=Uh(a),delete n[s];return}const c=t?s9(s):String(s).trim();c!==s&&delete n[s],n[c]=Uh(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
66
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[WA]=this[WA]={accessors:{}}).accessors,a=this.prototype;function s(l){const c=fu(l);r[c]||(o9(a,l),r[c]=!0)}return de.isArray(t)?t.forEach(s):s(t),this}};Pr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(Pr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});de.freezeMethods(Pr);function u1(e,t){const n=this||Hd,r=t||n,a=Pr.from(r.headers);let s=r.data;return de.forEach(e,function(c){s=c.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function Ok(e){return!!(e&&e.__CANCEL__)}function ac(e,t,n){ct.call(this,e??"canceled",ct.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(ac,ct,{__CANCEL__:!0});function Lk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ct("Request failed with status code "+n.status,[ct.ERR_BAD_REQUEST,ct.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function l9(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function c9(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,s=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=r[s];l||(l=f),n[a]=d,r[a]=f;let m=s,y=0;for(;m!==a;)y+=n[m++],m=m%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),f-l<t)return;const E=p&&f-p;return E?Math.round(y*1e3/E):void 0}}function u9(e,t){let n=0,r=1e3/t,a,s;const l=(f,p=Date.now())=>{n=p,a=null,s&&(clearTimeout(s),s=null),e(...f)};return[(...f)=>{const p=Date.now(),m=p-n;m>=r?l(f,p):(a=f,s||(s=setTimeout(()=>{s=null,l(a)},r-m)))},()=>a&&l(a)]}const _p=(e,t,n=3)=>{let r=0;const a=c9(50,250);return u9(s=>{const l=s.loaded,c=s.lengthComputable?s.total:void 0,d=l-r,f=a(d),p=l<=c;r=l;const m={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&p?(c-l)/f:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},XA=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ZA=e=>(...t)=>de.asap(()=>e(...t)),d9=dr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,dr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(dr.origin),dr.navigator&&/(msie|trident)/i.test(dr.navigator.userAgent)):()=>!0,f9=dr.hasStandardBrowserEnv?{write(e,t,n,r,a,s){const l=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),de.isString(r)&&l.push("path="+r),de.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function h9(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function p9(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Mk(e,t,n){let r=!h9(t);return e&&(r||n==!1)?p9(e,t):t}const JA=e=>e instanceof Pr?{...e}:e;function Do(e,t){t=t||{};const n={};function r(f,p,m,y){return de.isPlainObject(f)&&de.isPlainObject(p)?de.merge.call({caseless:y},f,p):de.isPlainObject(p)?de.merge({},p):de.isArray(p)?p.slice():p}function a(f,p,m,y){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f,m,y)}else return r(f,p,m,y)}function s(f,p){if(!de.isUndefined(p))return r(void 0,p)}function l(f,p){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function c(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(f,p,m)=>a(JA(f),JA(p),m,!0)};return de.forEach(Object.keys({...e,...t}),function(p){const m=d[p]||a,y=m(e[p],t[p],p);de.isUndefined(y)&&m!==c||(n[p]=y)}),n}const Pk=e=>{const t=Do({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:l,auth:c}=t;t.headers=l=Pr.from(l),t.url=Ik(Mk(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(de.isFormData(n)){if(dr.hasStandardBrowserEnv||dr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[f,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(dr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&d9(t.url))){const f=a&&s&&f9.read(s);f&&l.set(a,f)}return t},m9=typeof XMLHttpRequest<"u",g9=m9&&function(e){return new Promise(function(n,r){const a=Pk(e);let s=a.data;const l=Pr.from(a.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=a,p,m,y,E,T;function A(){E&&E(),T&&T(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function x(){if(!C)return;const S=Pr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:S,config:e,request:C};Lk(function(V){n(V),A()},function(V){r(V),A()},M),C=null}"onloadend"in C?C.onloadend=x:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(x)},C.onabort=function(){C&&(r(new ct("Request aborted",ct.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new ct("Network Error",ct.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const M=a.transitional||wk;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),r(new ct(L,M.clarifyTimeoutError?ct.ETIMEDOUT:ct.ECONNABORTED,e,C)),C=null},s===void 0&&l.setContentType(null),"setRequestHeader"in C&&de.forEach(l.toJSON(),function(L,M){C.setRequestHeader(M,L)}),de.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),c&&c!=="json"&&(C.responseType=a.responseType),f&&([y,T]=_p(f,!0),C.addEventListener("progress",y)),d&&C.upload&&([m,E]=_p(d),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",E)),(a.cancelToken||a.signal)&&(p=S=>{C&&(r(!S||S.type?new ac(null,e,C):S),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=l9(a.url);if(D&&dr.protocols.indexOf(D)===-1){r(new ct("Unsupported protocol "+D+":",ct.ERR_BAD_REQUEST,e));return}C.send(s||null)})},y9=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const s=function(f){if(!a){a=!0,c();const p=f instanceof Error?f:this.reason;r.abort(p instanceof ct?p:new ac(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new ct(`timeout ${t} of ms exceeded`,ct.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>de.asap(c),d}},E9=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},b9=async function*(e,t){for await(const n of v9(e))yield*E9(n,t)},v9=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},eS=(e,t,n,r)=>{const a=b9(e,t);let s=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:p}=await a.next();if(f){c(),d.close();return}let m=p.byteLength;if(n){let y=s+=m;n(y)}d.enqueue(new Uint8Array(p))}catch(f){throw c(f),f}},cancel(d){return c(d),a.return()}},{highWaterMark:2})},hm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$k=hm&&typeof ReadableStream=="function",T9=hm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_9=$k&&Fk(()=>{let e=!1;const t=new Request(dr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tS=64*1024,xy=$k&&Fk(()=>de.isReadableStream(new Response("").body)),xp={stream:xy&&(e=>e.body)};hm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!xp[t]&&(xp[t]=de.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ct(`Response type '${t}' is not supported`,ct.ERR_NOT_SUPPORT,r)})})})(new Response);const x9=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(dr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await T9(e)).byteLength},A9=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return n??x9(t)},S9=hm&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:s,timeout:l,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:y}=Pk(e);f=f?(f+"").toLowerCase():"text";let E=y9([a,s&&s.toAbortSignal()],l),T;const A=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let C;try{if(d&&_9&&n!=="get"&&n!=="head"&&(C=await A9(p,r))!==0){let M=new Request(t,{method:"POST",body:r,duplex:"half"}),I;if(de.isFormData(r)&&(I=M.headers.get("content-type"))&&p.setContentType(I),M.body){const[V,ne]=XA(C,_p(ZA(d)));r=eS(M.body,tS,V,ne)}}de.isString(m)||(m=m?"include":"omit");const x="credentials"in Request.prototype;T=new Request(t,{...y,signal:E,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:x?m:void 0});let D=await fetch(T,y);const S=xy&&(f==="stream"||f==="response");if(xy&&(c||S&&A)){const M={};["status","statusText","headers"].forEach(K=>{M[K]=D[K]});const I=de.toFiniteNumber(D.headers.get("content-length")),[V,ne]=c&&XA(I,_p(ZA(c),!0))||[];D=new Response(eS(D.body,tS,V,()=>{ne&&ne(),A&&A()}),M)}f=f||"text";let L=await xp[de.findKey(xp,f)||"text"](D,e);return!S&&A&&A(),await new Promise((M,I)=>{Lk(M,I,{data:L,headers:Pr.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:T})})}catch(x){throw A&&A(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new ct("Network Error",ct.ERR_NETWORK,e,T),{cause:x.cause||x}):ct.from(x,x&&x.code,e,T)}}),Ay={http:B8,xhr:g9,fetch:S9};de.forEach(Ay,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nS=e=>`- ${e}`,C9=e=>de.isFunction(e)||e===null||e===!1,jk={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!C9(n)&&(r=Ay[(l=String(n)).toLowerCase()],r===void 0))throw new ct(`Unknown adapter '${l}'`);if(r)break;a[l||"#"+s]=r}if(!r){const s=Object.entries(a).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
67
- `+s.map(nS).join(`
68
- `):" "+nS(s[0]):"as no adapter specified";throw new ct("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Ay};function d1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ac(null,e)}function rS(e){return d1(e),e.headers=Pr.from(e.headers),e.data=u1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jk.getAdapter(e.adapter||Hd.adapter)(e).then(function(r){return d1(e),r.data=u1.call(e,e.transformResponse,r),r.headers=Pr.from(r.headers),r},function(r){return Ok(r)||(d1(e),r&&r.response&&(r.response.data=u1.call(e,e.transformResponse,r.response),r.response.headers=Pr.from(r.response.headers))),Promise.reject(r)})}const Bk="1.11.0",pm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const aS={};pm.transitional=function(t,n,r){function a(s,l){return"[Axios v"+Bk+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,c)=>{if(t===!1)throw new ct(a(l," has been removed"+(n?" in "+n:"")),ct.ERR_DEPRECATED);return n&&!aS[l]&&(aS[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,c):!0}};pm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function D9(e,t,n){if(typeof e!="object")throw new ct("options must be an object",ct.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],l=t[s];if(l){const c=e[s],d=c===void 0||l(c,s,e);if(d!==!0)throw new ct("option "+s+" must be "+d,ct.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ct("Unknown option "+s,ct.ERR_BAD_OPTION)}}const Hh={assertOptions:D9,validators:pm},Wa=Hh.validators;let To=class{constructor(t){this.defaults=t||{},this.interceptors={request:new KA,response:new KA}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
69
- `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Do(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&Hh.assertOptions(r,{silentJSONParsing:Wa.transitional(Wa.boolean),forcedJSONParsing:Wa.transitional(Wa.boolean),clarifyTimeoutError:Wa.transitional(Wa.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Hh.assertOptions(a,{encode:Wa.function,serialize:Wa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hh.assertOptions(n,{baseUrl:Wa.spelling("baseURL"),withXsrfToken:Wa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&de.merge(s.common,s[n.method]);s&&de.forEach(["delete","get","head","post","put","patch","common"],T=>{delete s[T]}),n.headers=Pr.concat(l,s);const c=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,c.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,y;if(!d){const T=[rS.bind(this),void 0];for(T.unshift(...c),T.push(...f),y=T.length,p=Promise.resolve(n);m<y;)p=p.then(T[m++],T[m++]);return p}y=c.length;let E=n;for(m=0;m<y;){const T=c[m++],A=c[m++];try{E=T(E)}catch(C){A.call(this,C);break}}try{p=rS.call(this,E)}catch(T){return Promise.reject(T)}for(m=0,y=f.length;m<y;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Do(this.defaults,t);const n=Mk(t.baseURL,t.url,t.allowAbsoluteUrls);return Ik(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){To.prototype[t]=function(n,r){return this.request(Do(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,c){return this.request(Do(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}To.prototype[t]=n(),To.prototype[t+"Form"]=n(!0)});let k9=class Uk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const l=new Promise(c=>{r.subscribe(c),s=c}).then(a);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,c){r.reason||(r.reason=new ac(s,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Uk(function(a){t=a}),cancel:t}}};function R9(e){return function(n){return e.apply(null,n)}}function I9(e){return de.isObject(e)&&e.isAxiosError===!0}const Sy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Sy).forEach(([e,t])=>{Sy[t]=e});function Hk(e){const t=new To(e),n=Ek(To.prototype.request,t);return de.extend(n,To.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Hk(Do(e,a))},n}const rt=Hk(Hd);rt.Axios=To;rt.CanceledError=ac;rt.CancelToken=k9;rt.isCancel=Ok;rt.VERSION=Bk;rt.toFormData=fm;rt.AxiosError=ct;rt.Cancel=rt.CanceledError;rt.all=function(t){return Promise.all(t)};rt.spread=R9;rt.isAxiosError=I9;rt.mergeConfig=Do;rt.AxiosHeaders=Pr;rt.formToJSON=e=>Nk(de.isHTMLForm(e)?new FormData(e):e);rt.getAdapter=jk.getAdapter;rt.HttpStatusCode=Sy;rt.default=rt;const{Axios:lae,AxiosError:cae,CanceledError:uae,isCancel:dae,CancelToken:fae,VERSION:hae,all:pae,Cancel:mae,isAxiosError:gae,spread:yae,toFormData:Eae,AxiosHeaders:bae,HttpStatusCode:vae,formToJSON:Tae,getAdapter:_ae,mergeConfig:xae}=rt,Ht="http://localhost/api/v0".replace(/\/+$/,"");let Fs=class{constructor(t,n=Ht,r=rt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},w9=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const Yt={},Qt="https://example.com",et=function(e,t,n){if(n==null)throw new w9(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Cy(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Cy(e,r,n)):Object.keys(t).forEach(r=>Cy(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Kt=function(e,...t){const n=new URLSearchParams(e.search);Cy(n,t),e.search=n.toString()},dd=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Wt=function(e){return e.pathname+e.search+e.hash},Xt=function(e,t,n,r){return(a=t,s=n)=>{const l={...e.options,url:(a.defaults.baseURL?"":r?.basePath??s)+e.url};return a.request(l)}},N9=function(e){return{getConnection:async(t,n,r={})=>{et("getConnection","projectName",t),et("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Kt(s,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Wt(s),options:c}},getQuerydata:async(t,n,r,a,s={})=>{et("getQuerydata","projectName",t),et("getQuerydata","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};r!==void 0&&(m.sqlStatement=r),a!==void 0&&(m.options=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...s.headers},{url:Wt(c),options:f}},getSqlsource:async(t,n,r,a={})=>{et("getSqlsource","projectName",t),et("getSqlsource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(s,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}},getTablesource:async(t,n,r,a,s={})=>{et("getTablesource","projectName",t),et("getTablesource","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};r!==void 0&&(m.tableKey=r),a!==void 0&&(m.tablePath=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...s.headers},{url:Wt(c),options:f}},getTemporarytable:async(t,n,r,a={})=>{et("getTemporarytable","projectName",t),et("getTemporarytable","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(s,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}},listConnections:async(t,n={})=>{et("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Qt);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...n},c={};Kt(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...n.headers},{url:Wt(a),options:l}},listSchemas:async(t,n,r={})=>{et("listSchemas","projectName",t),et("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Kt(s,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Wt(s),options:c}},listTables:async(t,n,r,a={})=>{et("listTables","projectName",t),et("listTables","connectionName",n),et("listTables","schemaName",r);const s="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),l=new URL(s,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={};Kt(l,{});let p=c&&c.headers?c.headers:{};return d.headers={...f,...p,...a.headers},{url:Wt(l),options:d}},testConnection:async(t,n,r={})=>{et("testConnection","projectName",t),et("testConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Kt(s,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Wt(s),options:c}},testConnectionConfiguration:async(t,n={})=>{et("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,Qt);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...n},c={},d={};c["Content-Type"]="application/json",Kt(a,d);let f=s&&s.headers?s.headers:{};return l.headers={...c,...f,...n.headers},l.data=dd(t,l,e),{url:Wt(a),options:l}}}},Xa=function(e){const t=N9(e);return{async getConnection(n,r,a){const s=await t.getConnection(n,r,a),l=e?.serverIndex??0,c=Yt["ConnectionsApi.getConnection"]?.[l]?.url;return(d,f)=>Xt(s,rt,Ht,e)(d,c||f)},async getQuerydata(n,r,a,s,l){const c=await t.getQuerydata(n,r,a,s,l),d=e?.serverIndex??0,f=Yt["ConnectionsApi.getQuerydata"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async getSqlsource(n,r,a,s){const l=await t.getSqlsource(n,r,a,s),c=e?.serverIndex??0,d=Yt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)},async getTablesource(n,r,a,s,l){const c=await t.getTablesource(n,r,a,s,l),d=e?.serverIndex??0,f=Yt["ConnectionsApi.getTablesource"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async getTemporarytable(n,r,a,s){const l=await t.getTemporarytable(n,r,a,s),c=e?.serverIndex??0,d=Yt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)},async listConnections(n,r){const a=await t.listConnections(n,r),s=e?.serverIndex??0,l=Yt["ConnectionsApi.listConnections"]?.[s]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)},async listSchemas(n,r,a){const s=await t.listSchemas(n,r,a),l=e?.serverIndex??0,c=Yt["ConnectionsApi.listSchemas"]?.[l]?.url;return(d,f)=>Xt(s,rt,Ht,e)(d,c||f)},async listTables(n,r,a,s){const l=await t.listTables(n,r,a,s),c=e?.serverIndex??0,d=Yt["ConnectionsApi.listTables"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)},async testConnection(n,r,a){const s=await t.testConnection(n,r,a),l=e?.serverIndex??0,c=Yt["ConnectionsApi.testConnection"]?.[l]?.url;return(d,f)=>Xt(s,rt,Ht,e)(d,c||f)},async testConnectionConfiguration(n,r){const a=await t.testConnectionConfiguration(n,r),s=e?.serverIndex??0,l=Yt["ConnectionsApi.testConnectionConfiguration"]?.[s]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)}}};let zk=class extends Fs{getConnection(t,n,r){return Xa(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,s){return Xa(this.configuration).getQuerydata(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Xa(this.configuration).getSqlsource(t,n,r,a).then(s=>s(this.axios,this.basePath))}getTablesource(t,n,r,a,s){return Xa(this.configuration).getTablesource(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Xa(this.configuration).getTemporarytable(t,n,r,a).then(s=>s(this.axios,this.basePath))}listConnections(t,n){return Xa(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Xa(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Xa(this.configuration).listTables(t,n,r,a).then(s=>s(this.axios,this.basePath))}testConnection(t,n,r){return Xa(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Xa(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const O9=function(e){return{listDatabases:async(t,n,r,a={})=>{et("listDatabases","projectName",t),et("listDatabases","packageName",n);const s="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}}}},L9=function(e){const t=O9(e);return{async listDatabases(n,r,a,s){const l=await t.listDatabases(n,r,a,s),c=e?.serverIndex??0,d=Yt["DatabasesApi.listDatabases"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let M9=class extends Fs{listDatabases(t,n,r,a){return L9(this.configuration).listDatabases(t,n,r,a).then(s=>s(this.axios,this.basePath))}};const P9=function(e){return{getModel:async(t,n,r,a,s={})=>{et("getModel","projectName",t),et("getModel","packageName",n),et("getModel","path",r);const l="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};a!==void 0&&(m.versionId=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...s.headers},{url:Wt(c),options:f}},listModels:async(t,n,r,a={})=>{et("listModels","projectName",t),et("listModels","packageName",n);const s="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}}}},iS=function(e){const t=P9(e);return{async getModel(n,r,a,s,l){const c=await t.getModel(n,r,a,s,l),d=e?.serverIndex??0,f=Yt["ModelsApi.getModel"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async listModels(n,r,a,s){const l=await t.listModels(n,r,a,s),c=e?.serverIndex??0,d=Yt["ModelsApi.listModels"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let mm=class extends Fs{getModel(t,n,r,a,s){return iS(this.configuration).getModel(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,a){return iS(this.configuration).listModels(t,n,r,a).then(s=>s(this.axios,this.basePath))}};const $9=function(e){return{getNotebook:async(t,n,r,a,s={})=>{et("getNotebook","projectName",t),et("getNotebook","packageName",n),et("getNotebook","path",r);const l="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};a!==void 0&&(m.versionId=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...s.headers},{url:Wt(c),options:f}},listNotebooks:async(t,n,r,a={})=>{et("listNotebooks","projectName",t),et("listNotebooks","packageName",n);const s="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}}}},sS=function(e){const t=$9(e);return{async getNotebook(n,r,a,s,l){const c=await t.getNotebook(n,r,a,s,l),d=e?.serverIndex??0,f=Yt["NotebooksApi.getNotebook"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async listNotebooks(n,r,a,s){const l=await t.listNotebooks(n,r,a,s),c=e?.serverIndex??0,d=Yt["NotebooksApi.listNotebooks"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let Gk=class extends Fs{getNotebook(t,n,r,a,s){return sS(this.configuration).getNotebook(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}listNotebooks(t,n,r,a){return sS(this.configuration).listNotebooks(t,n,r,a).then(s=>s(this.axios,this.basePath))}};const F9=function(e){return{createPackage:async(t,n,r={})=>{et("createPackage","projectName",t),et("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),s=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...r},d={},f={};d["Content-Type"]="application/json",Kt(s,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=dd(n,c,e),{url:Wt(s),options:c}},deletePackage:async(t,n,r={})=>{et("deletePackage","projectName",t),et("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...r},d={};Kt(s,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Wt(s),options:c}},getPackage:async(t,n,r,a,s={})=>{et("getPackage","projectName",t),et("getPackage","packageName",n);const l="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(l,Qt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};r!==void 0&&(m.versionId=r),a!==void 0&&(m.reload=a),Kt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...s.headers},{url:Wt(c),options:f}},listPackages:async(t,n={})=>{et("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Qt);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...n},c={};Kt(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...n.headers},{url:Wt(a),options:l}},updatePackage:async(t,n,r,a={})=>{et("updatePackage","projectName",t),et("updatePackage","packageName",n),et("updatePackage","body",r);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Qt);let c;e&&(c=e.baseOptions);const d={method:"PATCH",...c,...a},f={},p={};f["Content-Type"]="application/json",Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},d.data=dd(r,d,e),{url:Wt(l),options:d}}}},hu=function(e){const t=F9(e);return{async createPackage(n,r,a){const s=await t.createPackage(n,r,a),l=e?.serverIndex??0,c=Yt["PackagesApi.createPackage"]?.[l]?.url;return(d,f)=>Xt(s,rt,Ht,e)(d,c||f)},async deletePackage(n,r,a){const s=await t.deletePackage(n,r,a),l=e?.serverIndex??0,c=Yt["PackagesApi.deletePackage"]?.[l]?.url;return(d,f)=>Xt(s,rt,Ht,e)(d,c||f)},async getPackage(n,r,a,s,l){const c=await t.getPackage(n,r,a,s,l),d=e?.serverIndex??0,f=Yt["PackagesApi.getPackage"]?.[d]?.url;return(p,m)=>Xt(c,rt,Ht,e)(p,f||m)},async listPackages(n,r){const a=await t.listPackages(n,r),s=e?.serverIndex??0,l=Yt["PackagesApi.listPackages"]?.[s]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)},async updatePackage(n,r,a,s){const l=await t.updatePackage(n,r,a,s),c=e?.serverIndex??0,d=Yt["PackagesApi.updatePackage"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let Vk=class extends Fs{createPackage(t,n,r){return hu(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return hu(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,s){return hu(this.configuration).getPackage(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}listPackages(t,n){return hu(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return hu(this.configuration).updatePackage(t,n,r,a).then(s=>s(this.axios,this.basePath))}};const j9=function(e){return{createProject:async(t,n={})=>{et("createProject","body",t);const r="/projects",a=new URL(r,Qt);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...n},c={},d={};c["Content-Type"]="application/json",Kt(a,d);let f=s&&s.headers?s.headers:{};return l.headers={...c,...f,...n.headers},l.data=dd(t,l,e),{url:Wt(a),options:l}},deleteProject:async(t,n={})=>{et("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Qt);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...n},c={};Kt(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...n.headers},{url:Wt(a),options:l}},getProject:async(t,n,r={})=>{et("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),s=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={},f={};n!==void 0&&(f.reload=n),Kt(s,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},{url:Wt(s),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Qt);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...t},l={};Kt(r,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...t.headers},{url:Wt(r),options:s}},updateProject:async(t,n,r={})=>{et("updateProject","projectName",t),et("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),s=new URL(a,Qt);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...r},d={},f={};d["Content-Type"]="application/json",Kt(s,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=dd(n,c,e),{url:Wt(s),options:c}}}},pu=function(e){const t=j9(e);return{async createProject(n,r){const a=await t.createProject(n,r),s=e?.serverIndex??0,l=Yt["ProjectsApi.createProject"]?.[s]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)},async deleteProject(n,r){const a=await t.deleteProject(n,r),s=e?.serverIndex??0,l=Yt["ProjectsApi.deleteProject"]?.[s]?.url;return(c,d)=>Xt(a,rt,Ht,e)(c,l||d)},async getProject(n,r,a){const s=await t.getProject(n,r,a),l=e?.serverIndex??0,c=Yt["ProjectsApi.getProject"]?.[l]?.url;return(d,f)=>Xt(s,rt,Ht,e)(d,c||f)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,s=Yt["ProjectsApi.listProjects"]?.[a]?.url;return(l,c)=>Xt(r,rt,Ht,e)(l,s||c)},async updateProject(n,r,a){const s=await t.updateProject(n,r,a),l=e?.serverIndex??0,c=Yt["ProjectsApi.updateProject"]?.[l]?.url;return(d,f)=>Xt(s,rt,Ht,e)(d,c||f)}}};let qk=class extends Fs{createProject(t,n){return pu(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return pu(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return pu(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return pu(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return pu(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const B9=function(e){return{executeQuery:async(t,n,r,a,s,l,c,d={})=>{et("executeQuery","projectName",t),et("executeQuery","packageName",n),et("executeQuery","path",r);const f="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(f,Qt);let m;e&&(m=e.baseOptions);const y={method:"GET",...m,...d},E={},T={};a!==void 0&&(T.query=a),s!==void 0&&(T.sourceName=s),l!==void 0&&(T.queryName=l),c!==void 0&&(T.versionId=c),Kt(p,T);let A=m&&m.headers?m.headers:{};return y.headers={...E,...A,...d.headers},{url:Wt(p),options:y}}}},U9=function(e){const t=B9(e);return{async executeQuery(n,r,a,s,l,c,d,f){const p=await t.executeQuery(n,r,a,s,l,c,d,f),m=e?.serverIndex??0,y=Yt["QueryresultsApi.executeQuery"]?.[m]?.url;return(E,T)=>Xt(p,rt,Ht,e)(E,y||T)}}};let XE=class extends Fs{executeQuery(t,n,r,a,s,l,c,d){return U9(this.configuration).executeQuery(t,n,r,a,s,l,c,d).then(f=>f(this.axios,this.basePath))}};const H9=function(e){return{listSchedules:async(t,n,r,a={})=>{et("listSchedules","projectName",t),et("listSchedules","packageName",n);const s="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Qt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Kt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Wt(l),options:d}}}},z9=function(e){const t=H9(e);return{async listSchedules(n,r,a,s){const l=await t.listSchedules(n,r,a,s),c=e?.serverIndex??0,d=Yt["SchedulesApi.listSchedules"]?.[c]?.url;return(f,p)=>Xt(l,rt,Ht,e)(f,d||p)}}};let G9=class extends Fs{listSchedules(t,n,r,a){return z9(this.configuration).listSchedules(t,n,r,a).then(s=>s(this.axios,this.basePath))}},ir=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const Yk=N.createContext(void 0),Ap=({projectName:e,packageName:t,versionId:n,children:r})=>b.jsx(Yk.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function ra(e=!0){const t=N.useContext(Yk);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}var ic=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ko=typeof window>"u"||"Deno"in globalThis;function Tr(){}function V9(e,t){return typeof e=="function"?e(t):e}function Dy(e){return typeof e=="number"&&e>=0&&e!==1/0}function Qk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Is(e,t){return typeof e=="function"?e(t):e}function Ea(e,t){return typeof e=="function"?e(t):e}function oS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==ZE(l,t.options))return!1}else if(!fd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||s&&!s(t))}function lS(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ro(t.options.mutationKey)!==Ro(s))return!1}else if(!fd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function ZE(e,t){return(t?.queryKeyHashFn||Ro)(e)}function Ro(e){return JSON.stringify(e,(t,n)=>ky(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function fd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fd(e[n],t[n])):!1}function Kk(e,t){if(e===t)return e;const n=cS(e)&&cS(t);if(n||ky(e)&&ky(t)){const r=n?e:Object.keys(e),a=r.length,s=n?t:Object.keys(t),l=s.length,c=n?[]:{},d=new Set(r);let f=0;for(let p=0;p<l;p++){const m=n?p:s[p];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(c[m]=void 0,f++):(c[m]=Kk(e[m],t[m]),c[m]===e[m]&&e[m]!==void 0&&f++)}return a===l&&f===a?e:c}return t}function Sp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function cS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ky(e){if(!uS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!uS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function uS(e){return Object.prototype.toString.call(e)==="[object Object]"}function q9(e){return new Promise(t=>{setTimeout(t,e)})}function Ry(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Kk(e,t):t}function Y9(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Q9(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var JE=Symbol();function Wk(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===JE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Xk(e,t){return typeof e=="function"?e(...t):!!e}var K9=class extends ic{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!ko&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},eb=new K9,W9=class extends ic{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!ko&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},Cp=new W9;function Iy(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function X9(e){return Math.min(1e3*2**e,3e4)}function Zk(e){return(e??"online")==="online"?Cp.isOnline():!0}var Jk=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function f1(e){return e instanceof Jk}function e3(e){let t=!1,n=0,r=!1,a;const s=Iy(),l=A=>{r||(y(new Jk(A)),e.abort?.())},c=()=>{t=!0},d=()=>{t=!1},f=()=>eb.isFocused()&&(e.networkMode==="always"||Cp.isOnline())&&e.canRun(),p=()=>Zk(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),s.resolve(A))},y=A=>{r||(r=!0,e.onError?.(A),a?.(),s.reject(A))},E=()=>new Promise(A=>{a=C=>{(r||f())&&A(C)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),T=()=>{if(r)return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(x){A=Promise.reject(x)}Promise.resolve(A).then(m).catch(x=>{if(r)return;const D=e.retry??(ko?0:3),S=e.retryDelay??X9,L=typeof S=="function"?S(n,x):S,M=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,x);if(t||!M){y(x);return}n++,e.onFail?.(n,x),q9(L).then(()=>f()?void 0:E()).then(()=>{t?y(x):T()})})};return{promise:s,cancel:l,continue:()=>(a?.(),s),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?T():E().then(T),s)}}var Z9=e=>setTimeout(e,0);function J9(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=Z9;const s=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{s(()=>{c(...d)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var Hn=J9(),t3=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dy(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ko?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},eF=class extends t3{#t;#e;#n;#r;#a;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=tF(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Ry(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Tr).catch(Tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Ea(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===JE||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Is(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Qk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const d=Wk(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#o=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const c=d=>{f1(d)&&d.silent||this.#i({type:"error",error:d}),f1(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=e3({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(f){c(f);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,f)=>{this.#i({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...n3(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return f1(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Hn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function n3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function tF(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nF=class extends ic{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??ZE(r,t);let s=this.get(a);return s||(s=new eF({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Hn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>oS(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>oS(e,n)):t}notify(e){Hn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Hn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Hn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},rF=class extends t3{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||r3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=e3({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const s=await this.options.onMutate?.(e);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Hn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function r3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var aF=class extends ic{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new rF({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=vh(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=vh(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=vh(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=vh(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Hn.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>lS(t,n))}findAll(e={}){return this.getAll().filter(t=>lS(e,t))}notify(e){Hn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Hn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Tr))))}};function vh(e){return e.options.scope?.id}function dS(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const m=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=Wk(t.options,t.fetchOptions),E=async(T,A,C)=>{if(p)return Promise.reject();if(A==null&&T.pages.length)return Promise.resolve(T);const D=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(D),{maxPages:L}=t.options,M=C?Q9:Y9;return{pages:M(T.pages,S,L),pageParams:M(T.pageParams,A,L)}};if(a&&s.length){const T=a==="backward",A=T?iF:fS,C={pages:s,pageParams:l},x=A(r,C);c=await E(C,x,T)}else{const T=e??s.length;do{const A=d===0?l[0]??r.initialPageParam:fS(r,c);if(d>0&&A==null)break;c=await E(c,A),d++}while(d<T)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function fS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function iF(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var sF=class{#t;#e;#n;#r;#a;#s;#o;#i;constructor(e={}){this.#t=e.queryCache||new nF,this.#e=e.mutationCache||new aF,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=eb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Cp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Is(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(r.queryHash)?.state.data,l=V9(t,s);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Hn.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Hn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Hn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Hn.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Tr).catch(Tr)}invalidateQueries(e,t={}){return Hn.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Hn.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(Tr)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Tr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Is(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Tr).catch(Tr)}fetchInfiniteQuery(e){return e.behavior=dS(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Tr).catch(Tr)}ensureInfiniteQueryData(e){return e.behavior=dS(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cp.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{fd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{fd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ZE(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===JE&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},oF=class extends ic{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=Iy(),this.options.experimental_prefetchInRender||this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#s;#o;#i;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),hS(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wy(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wy(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#T(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ea(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!Sp(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&pS(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Ea(this.options.enabled,this.#e)!==Ea(t.enabled,this.#e)||Is(this.options.staleTime,this.#e)!==Is(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||Ea(this.options.enabled,this.#e)!==Ea(t.enabled,this.#e)||a!==this.#l)&&this.#E(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return cF(this,n)&&(this.#r=n,this.#s=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Tr)),t}#g(){this.#v();const e=Is(this.options.staleTime,this.#e);if(ko||this.#r.isStale||!Dy(e))return;const n=Qk(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#E(e){this.#T(),this.#l=e,!(ko||Ea(this.options.enabled,this.#e)===!1||!Dy(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||eb.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#E(this.#y())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,s=this.#a,l=this.#s,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,y;if(t._optimisticResults){const ne=this.hasListeners(),K=!ne&&hS(e,t),k=ne&&pS(e,n,t,r);(K||k)&&(p={...p,...n3(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:E,errorUpdatedAt:T,status:A}=p;y=p.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&A==="pending"){let ne;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(ne=a.data,C=!0):ne=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,ne!==void 0&&(A="success",y=Ry(a?.data,ne,t),m=!0)}if(t.select&&y!==void 0&&!C)if(a&&y===s?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=Ry(a?.data,y,t),this.#f=y,this.#i=null}catch(ne){this.#i=ne}this.#i&&(E=this.#i,y=this.#f,T=Date.now(),A="error");const x=p.fetchStatus==="fetching",D=A==="pending",S=A==="error",L=D&&x,M=y!==void 0,V={status:A,fetchStatus:p.fetchStatus,isPending:D,isSuccess:A==="success",isError:S,isInitialLoading:L,isLoading:L,data:y,dataUpdatedAt:p.dataUpdatedAt,error:E,errorUpdatedAt:T,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!D,isLoadingError:S&&!M,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&M,isStale:tb(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Ea(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ne=H=>{V.status==="error"?H.reject(V.error):V.data!==void 0&&H.resolve(V.data)},K=()=>{const H=this.#o=V.promise=Iy();ne(H)},k=this.#o;switch(k.status){case"pending":e.queryHash===n.queryHash&&ne(k);break;case"fulfilled":(V.status==="error"||V.data!==k.value)&&K();break;case"rejected":(V.status!=="error"||V.error!==k.reason)&&K();break}}return V}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#e),Sp(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const s=new Set(a??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&s.has(c)})};this.#x({listeners:n()})}#_(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){Hn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function lF(e,t){return Ea(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hS(e,t){return lF(e,t)||e.state.data!==void 0&&wy(e,t,t.refetchOnMount)}function wy(e,t,n){if(Ea(t.enabled,e)!==!1&&Is(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&tb(e,t)}return!1}function pS(e,t,n,r){return(e!==t||Ea(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&tb(e,n)}function tb(e,t){return Ea(t.enabled,e)!==!1&&e.isStaleByTime(Is(t.staleTime,e))}function cF(e,t){return!Sp(e.getCurrentResult(),t)}var uF=class extends ic{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Sp(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ro(n.mutationKey)!==Ro(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??r3();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){Hn.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},dF=N.createContext(void 0),a3=e=>{const t=N.useContext(dF);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i3=N.createContext(!1),fF=()=>N.useContext(i3);i3.Provider;function hF(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var pF=N.createContext(hF()),mF=()=>N.useContext(pF),gF=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},yF=e=>{N.useEffect(()=>{e.clearReset()},[e])},EF=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Xk(n,[e.error,r])),bF=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},vF=(e,t)=>e.isLoading&&e.isFetching&&!t,TF=(e,t)=>e?.suspense&&t.isPending,mS=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _F(e,t,n){const r=fF(),a=mF(),s=a3(n),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",bF(l),gF(l,a),yF(a);const c=!s.getQueryCache().get(l.queryHash),[d]=N.useState(()=>new t(s,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(m=>{const y=p?d.subscribe(Hn.batchCalls(m)):Tr;return d.updateResult(),y},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),N.useEffect(()=>{d.setOptions(l)},[l,d]),TF(l,f))throw mS(l,d,a);if(EF({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!ko&&vF(f,r)&&(c?mS(l,d,a):s.getQueryCache().get(l.queryHash)?.promise)?.catch(Tr).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function xF(e,t){return _F(e,oF,t)}function AF(e,t){const n=a3(t),[r]=N.useState(()=>new uF(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const a=N.useSyncExternalStore(N.useCallback(l=>r.subscribe(Hn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=N.useCallback((l,c)=>{r.mutate(l,c).catch(Tr)},[r]);if(a.error&&Xk(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const SF=new XE(new ir),CF=sn(F2)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),DF=sn(Lr)(({theme:e,selected:t})=>({minHeight:36,padding:e.spacing(.5,2),borderRadius:e.shape.borderRadius,background:t?e.palette.action.selected:"none",color:t?e.palette.primary.main:e.palette.text.primary,fontWeight:t?600:400,border:t?`1px solid ${e.palette.primary.main}`:"1px solid transparent",boxShadow:t?e.shadows[1]:"none",textTransform:"uppercase","&:hover":{background:e.palette.action.hover,border:`1px solid ${e.palette.primary.light}`}}));function s3({sourceAndPaths:e,existingQuery:t,existingSourceName:n,onQueryChange:r,onSourceChange:a}){const[s,l]=Ne.useState(n?e.findIndex(f=>f.sourceInfo.name===n):0),[c,d]=Ne.useState(t||$u());return Ne.useEffect(()=>{a&&a(s)},[s,a]),b.jsxs(zn,{variant:"outlined",children:[b.jsx(na,{children:b.jsx(Ox,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&b.jsx(CF,{children:e.map((f,p)=>b.jsx(DF,{selected:s===p,onClick:()=>l(p),children:f.sourceInfo.name||`Source ${p+1}`},f.sourceInfo.name||p))})})}),b.jsx(YE,{children:b.jsxs(Ox,{spacing:2,component:"section",children:[b.jsx(o3,{sourceAndPath:e[s],existingQuery:c,onChange:f=>{d(f),r&&r(f)}}),b.jsx(F2,{height:"5px"})]})})]})}function $u(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function kF({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a}){const[s,l]=Ne.useState(n||$u()),[c,d]=Ne.useState([]),{MalloyExplorerProvider:f,QueryPanel:p,ResizableCollapsiblePanel:m,ResultPanel:y,SourcePanel:E}=r;Ne.useEffect(()=>{t&&t(s)},[t,s]);const{projectName:T,packageName:A,versionId:C}=ra(),x=Vne({mutationFn:(M,I)=>{const V=new a.ASTQuery({source:e.sourceInfo,query:s?.malloyQuery}).toMalloy();return l({...s,query:V}),SF.executeQuery(T,A,e.modelPath,V,void 0,void 0,C,I)},onSuccess:M=>{if(M){const I=JSON.parse(M.data.result);l({...s,malloyResult:I})}}}),[D,S]=Ne.useState(e.sourceInfo.name);Ne.useEffect(()=>{D!==e.sourceInfo.name&&(S(e.sourceInfo.name),l($u()))},[e,D]);const L=Ne.useCallback(M=>{l({...s,malloyQuery:M,malloyResult:void 0})},[s]);return D!==e.sourceInfo.name?b.jsx("div",{children:"Loading..."}):b.jsx(yk,{children:b.jsx(f,{source:e.sourceInfo,query:s?.malloyQuery,onQueryChange:L,focusedNestViewPath:c,onFocusedNestViewPathChange:d,onDrill:M=>{console.info(M)},children:b.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[b.jsx(m,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:b.jsx(E,{onRefresh:()=>l($u())})}),b.jsx(m,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:b.jsx(p,{runQuery:()=>{x.mutate()}})}),b.jsx(y,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:M=>l({...s,malloyQuery:M}),submittedQuery:s?.malloyQuery?{executionState:x.isPending?"running":"finished",response:{result:s.malloyResult},query:s.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:x.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function o3(e){const[t,n]=N.useState(null),[r,a]=N.useState(null),[s,l]=N.useState(!0);return N.useEffect(()=>{let c=!0;return Promise.all([F(()=>import("./index-D4eYZfPc.js"),__vite__mapDeps([93,94,95,96,97])),F(()=>import("./index-SM0qJxoC.js").then(d=>d.i),__vite__mapDeps([96,95]))]).then(([d,f])=>{c&&(n(d),a(f),l(!1))}).catch(d=>{console.error("Failed to load Malloy components:",d),c&&l(!1)}),()=>{c=!1}},[]),s||!t||!r?b.jsx(J$,{children:b.jsx(yk,{children:b.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):b.jsx(kF,{...e,explorerComponents:t,QueryBuilder:r})}const RF=new mm(new ir);function l3(e,t){const{projectName:n,packageName:r,versionId:a}=ra(),s=t||a;return yr({queryKey:["package",n,r,e,s],queryFn:async l=>(await RF.getModel(n,r,e,s,l)).data})}const c3=Jt(b.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}));function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lo.apply(this,arguments)}const IF=["children","options"],gS=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),yS={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},wF=["style","script","pre"],NF=["src","href","data","formAction","srcDoc","action"],OF=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,LF=/mailto:/i,MF=/\n{2,}$/,ES=/^(\s*>[\s\S]*?)(?=\n\n|$)/,PF=/^ *> ?/gm,$F=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,FF=/^ {2,}\n/,jF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,bS=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,vS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,BF=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,UF=/^(?:\n *)*\n/,HF=/\r\n?/g,zF=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,GF=/^\[\^([^\]]+)]/,VF=/\f/g,qF=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,YF=/^\s*?\[(x|\s)\]/,TS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,_S=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,xS=/^([^\n]+)\n *(=|-){3,} *\n/,h1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,QF=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,AS=/^<!--[\s\S]*?(?:-->)/,KF=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,p1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,WF=/^\{.*\}$/,XF=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ZF=/^<([^ >]+@[^ >]+)>/,JF=/^<([^ >]+:\/[^ >]+)>/,ej=/-([a-z])?/gi,SS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,tj=/^[^\n]+(?: \n|\n{2,})/,nj=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,rj=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,aj=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ij=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sj=/\t/g,oj=/(^ *\||\| *$)/g,lj=/^ *:-+: *$/,cj=/^ *:-+ *$/,uj=/^ *-+: *$/,gm="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",dj=RegExp(`^([*_])\\1${gm}\\1\\1(?!\\1)`),fj=RegExp(`^([*_])${gm}\\1(?!\\1)`),hj=RegExp(`^(==)${gm}\\1`),pj=RegExp(`^(~~)${gm}\\1`),mj=/^(:[a-zA-Z0-9-_]+:)/,gj=/^\\([^0-9A-Za-z\s])/,yj=/\\([^0-9A-Za-z\s])/g,Ej=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,bj=/^\n+/,vj=/^([ \t]*)/,Tj=/(?:^|\n)( *)$/,nb="(?:\\d+\\.)",rb="(?:[*+-])";function u3(e){return"( *)("+(e===1?nb:rb)+") +"}const d3=u3(1),f3=u3(2);function h3(e){return RegExp("^"+(e===1?d3:f3))}const _j=h3(1),xj=h3(2);function p3(e){return RegExp("^"+(e===1?d3:f3)+"[^\\n]*(?:\\n(?!\\1"+(e===1?nb:rb)+" )[^\\n]*)*(\\n|$)","gm")}const Aj=p3(1),Sj=p3(2);function m3(e){const t=e===1?nb:rb;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const g3=m3(1),y3=m3(2);function CS(e,t){const n=t===1,r=n?g3:y3,a=n?Aj:Sj,s=n?_j:xj;return{t:l=>s.test(l),o:Kl(function(l,c){const d=Tj.exec(c.prevCapture);return d&&(c.list||!c.inline&&!c.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,c,d){const f=n?+l[2]:void 0,p=l[0].replace(MF,`
70
- `).match(a);let m=!1;return{items:p.map(function(y,E){const T=s.exec(y)[0].length,A=RegExp("^ {1,"+T+"}","gm"),C=y.replace(A,"").replace(s,""),x=E===p.length-1,D=C.indexOf(`
71
-
72
- `)!==-1||x&&m;m=D;const S=d.inline,L=d.list;let M;d.list=!0,D?(d.inline=!1,M=Fu(C)+`
73
-
74
- `):(d.inline=!0,M=Fu(C));const I=c(M,d);return d.inline=S,d.list=L,I}),ordered:n,start:f}},l:(l,c,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,p){return e("li",{key:p},c(f,d))}))}}const Cj=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Dj=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Fu(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function zh(e,t){return e.startsWith(t)}function kj(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(zh(e,n[r]))return!0;return!1}return n(e,t)}function mu(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Rj(e){return uj.test(e)?"right":lj.test(e)?"center":cj.test(e)?"left":null}function DS(e,t,n,r){const a=n.inTable;n.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,p)=>{d.trim()==="|"&&(c(),r)?f!==0&&f!==p.length-1&&s.push([]):l+=d}),c(),n.inTable=a,s}function Ij(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(oj,"").split("|").map(Rj):[],a=e[3]?function(l,c,d){return l.trim().split(`
75
- `).map(function(f){return DS(f,c,d,!0)})}(e[3],t,n):[],s=DS(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:s,type:"25"}:{children:s,type:"21"}}function kS(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Kl(e){return e.inline=1,e}function ys(e){return Kl(function(t,n){return n.inline?e.exec(t):null})}function Es(e){return Kl(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Ni(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Th(e){return Kl(function(t){return e.exec(t)})}const wj=/(javascript|vbscript|data(?!:image)):/i;function Nj(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(wj.test(t))return null}catch{return null}return e}function Za(e){return e&&e.replace(yj,"$1")}function Gh(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function Oj(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function Lj(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const m1=(e,t,n)=>({children:Gh(t,e[2],n)});function g1(){return{}}function y1(){return null}function Mj(...e){return e.filter(Boolean).join(" ")}function E1(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function Pj(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?lo({},yS,t.namedCodesToUnicode):yS;const n=t.slugify||mu,r=t.sanitizer||Nj,a=t.createElement||N.createElement,s=[ES,bS,vS,t.enforceAtxHeadings?_S:TS,xS,SS,g3,y3],l=[...s,tj,h1,AS,p1];function c(x,D,...S){const L=E1(t.overrides,x+".props",{});return a(function(M,I){const V=E1(I,M);return V?typeof V=="function"||typeof V=="object"&&"render"in V?V:E1(I,M+".component",M):M}(x,t.overrides),lo({},D,L,{className:Mj(D?.className,L.className)||void 0}),...S)}function d(x){x=x.replace(qF,"");let D=!1;t.forceInline?D=!0:t.forceBlock||(D=ij.test(x)===!1);const S=T(E(D?x:Fu(x).replace(bj,"")+`
76
-
77
- `,{inline:D}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const L=t.wrapper||(D?"span":"div");let M;if(S.length>1||t.forceWrapper)M=S;else{if(S.length===1)return M=S[0],typeof M=="string"?c("span",{key:"outer"},M):M;M=null}return a(L,{key:"outer"},M)}function f(x,D){if(!D||!D.trim())return null;const S=D.match(OF);return S?S.reduce(function(L,M){const I=M.indexOf("=");if(I!==-1){const V=function(H){return H.indexOf("-")!==-1&&H.match(KF)===null&&(H=H.replace(ej,function(Q,W){return W.toUpperCase()})),H}(M.slice(0,I)).trim(),ne=function(H){const Q=H[0];return(Q==='"'||Q==="'")&&H.length>=2&&H[H.length-1]===Q?H.slice(1,-1):H}(M.slice(I+1).trim()),K=gS[V]||V;if(K==="ref")return L;const k=L[K]=function(H,Q,W,re){return Q==="style"?function(me){const G=[];let le="",oe=!1,ye=!1,P="";if(!me)return G;for(let ce=0;ce<me.length;ce++){const w=me[ce];if(w!=='"'&&w!=="'"||oe||(ye?w===P&&(ye=!1,P=""):(ye=!0,P=w)),w==="("&&le.endsWith("url")?oe=!0:w===")"&&oe&&(oe=!1),w!==";"||ye||oe)le+=w;else{const te=le.trim();if(te){const Ce=te.indexOf(":");if(Ce>0){const Ie=te.slice(0,Ce).trim(),Me=te.slice(Ce+1).trim();G.push([Ie,Me])}}le=""}}const Oe=le.trim();if(Oe){const ce=Oe.indexOf(":");if(ce>0){const w=Oe.slice(0,ce).trim(),te=Oe.slice(ce+1).trim();G.push([w,te])}}return G}(W).reduce(function(me,[G,le]){return me[G.replace(/(-[a-z])/g,oe=>oe[1].toUpperCase())]=re(le,H,G),me},{}):NF.indexOf(Q)!==-1?re(Za(W),H,Q):(W.match(WF)&&(W=Za(W.slice(1,W.length-1))),W==="true"||W!=="false"&&W)}(x,V,ne,r);typeof k=="string"&&(h1.test(k)||p1.test(k))&&(L[K]=d(k.trim()))}else M!=="style"&&(L[gS[M]||M]=!0);return L},{}):null}const p=[],m={},y={0:{t:[">"],o:Ni(ES),i:1,u(x,D,S){const[,L,M]=x[0].replace(PF,"").match($F);return{alert:L,children:D(M,S)}},l(x,D,S){const L={key:S.key};return x.alert&&(L.className="markdown-alert-"+n(x.alert.toLowerCase(),mu),x.children.unshift({attrs:{},children:[{type:"27",text:x.alert}],noInnerParse:!0,type:"11",tag:"header"})),c("blockquote",L,D(x.children,S))}},1:{o:Th(FF),i:1,u:g1,l:(x,D,S)=>c("br",{key:S.key})},2:{t:x=>{const D=x[0];return D==="-"||D==="*"||D==="_"},o:Ni(jF),i:1,u:g1,l:(x,D,S)=>c("hr",{key:S.key})},3:{t:[" "],o:Ni(vS),i:0,u:x=>({lang:void 0,text:Za(Fu(x[0].replace(/^ {4}/gm,"")))}),l:(x,D,S)=>c("pre",{key:S.key},c("code",lo({},x.attrs,{className:x.lang?"lang-"+x.lang:""}),x.text))},4:{t:["```","~~~"],o:Ni(bS),i:0,u:x=>({attrs:f("code",x[3]||""),lang:x[2]||void 0,text:x[4],type:"3"})},5:{t:["`"],o:Es(BF),i:3,u:x=>({text:Za(x[2])}),l:(x,D,S)=>c("code",{key:S.key},x.text)},6:{t:["[^"],o:Ni(zF),i:0,u:x=>(p.push({footnote:x[2],identifier:x[1]}),{}),l:y1},7:{t:["[^"],o:ys(GF),i:1,u:x=>({target:"#"+n(x[1],mu),text:x[1]}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href")},c("sup",{key:S.key},x.text))},8:{t:["[ ]","[x]"],o:ys(YF),i:1,u:x=>({completed:x[1].toLowerCase()==="x"}),l:(x,D,S)=>c("input",{checked:x.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ni(t.enforceAtxHeadings?_S:TS),i:1,u:(x,D,S)=>({children:Gh(D,x[2],S),id:n(x[2],mu),level:x[1].length}),l:(x,D,S)=>c("h"+x.level,{id:x.id,key:S.key},D(x.children,S))},10:{o:Ni(xS),i:0,u:(x,D,S)=>({children:Gh(D,x[1],S),level:x[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Th(h1),i:1,u(x,D,S){const[,L]=x[3].match(vj),M=RegExp("^"+L,"gm"),I=x[3].replace(M,""),V=(ne=I,l.some(W=>W.test(ne))?Lj:Gh);var ne;const K=x[1].toLowerCase(),k=wF.indexOf(K)!==-1,H=(k?K:x[1]).trim(),Q={attrs:f(H,x[2]),noInnerParse:k,tag:H};if(S.inAnchor=S.inAnchor||K==="a",k)Q.text=x[3];else{const W=S.inHTML;S.inHTML=!0,Q.children=V(D,I,S),S.inHTML=W}return S.inAnchor=!1,Q},l:(x,D,S)=>c(x.tag,lo({key:S.key},x.attrs),x.text||(x.children?D(x.children,S):""))},13:{t:["<"],o:Th(p1),i:1,u(x){const D=x[1].trim();return{attrs:f(D,x[2]||""),tag:D}},l:(x,D,S)=>c(x.tag,lo({},x.attrs,{key:S.key}))},12:{t:["<!--"],o:Th(AS),i:1,u:()=>({}),l:y1},14:{t:["!["],o:Es(Dj),i:1,u:x=>({alt:Za(x[1]),target:Za(x[2]),title:Za(x[3])}),l:(x,D,S)=>c("img",{key:S.key,alt:x.alt||void 0,title:x.title||void 0,src:r(x.target,"img","src")})},15:{t:["["],o:ys(Cj),i:3,u:(x,D,S)=>({children:Oj(D,x[1],S),target:Za(x[2]),title:Za(x[3])}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href"),title:x.title},D(x.children,S))},16:{t:["<"],o:ys(JF),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],type:"15"})},17:{t:(x,D)=>!D.inAnchor&&!t.disableAutoLink&&(zh(x,"http://")||zh(x,"https://")),o:ys(XF),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],title:void 0,type:"15"})},18:{t:["<"],o:ys(ZF),i:0,u(x){let D=x[1],S=x[1];return LF.test(S)||(S="mailto:"+S),{children:[{text:D.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:CS(c,1),33:CS(c,2),19:{o:Ni(UF),i:3,u:g1,l:()=>`
78
- `},21:{o:Kl(function(x,D){if(D.inline||D.simple||D.inHTML&&x.indexOf(`
79
-
80
- `)===-1&&D.prevCapture.indexOf(`
81
-
82
- `)===-1)return null;let S="";x.split(`
83
- `).every(M=>(M+=`
84
- `,!s.some(I=>I.test(M))&&(S+=M,!!M.trim())));const L=Fu(S);return L===""?null:[S,,L]}),i:3,u:m1,l:(x,D,S)=>c("p",{key:S.key},D(x.children,S))},22:{t:["["],o:ys(nj),i:0,u:x=>(m[x[1]]={target:x[2],title:x[4]},{}),l:y1},23:{t:["!["],o:Es(rj),i:0,u:x=>({alt:x[1]?Za(x[1]):void 0,ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("img",{key:S.key,alt:x.alt,src:r(m[x.ref].target,"img","src"),title:m[x.ref].title}):null},24:{t:x=>x[0]==="["&&x.indexOf("](")===-1,o:ys(aj),i:0,u:(x,D,S)=>({children:D(x[1],S),fallbackChildren:x[0],ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("a",{key:S.key,href:r(m[x.ref].target,"a","href"),title:m[x.ref].title},D(x.children,S)):c("span",{key:S.key},x.fallbackChildren)},25:{t:["|"],o:Ni(SS),i:1,u:Ij,l(x,D,S){const L=x;return c("table",{key:S.key},c("thead",null,c("tr",null,L.header.map(function(M,I){return c("th",{key:I,style:kS(L,I)},D(M,S))}))),c("tbody",null,L.cells.map(function(M,I){return c("tr",{key:I},M.map(function(V,ne){return c("td",{key:ne,style:kS(L,ne)},D(V,S))}))})))}},27:{o:Kl(function(x,D){let S;return zh(x,":")&&(S=mj.exec(x)),S||Ej.exec(x)}),i:4,u(x){const D=x[0];return{text:D.indexOf("&")===-1?D:D.replace(QF,(S,L)=>t.namedCodesToUnicode[L]||S)}},l:x=>x.text},28:{t:["**","__"],o:Es(dj),i:2,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("strong",{key:S.key},D(x.children,S))},29:{t:x=>{const D=x[0];return(D==="*"||D==="_")&&x[1]!==D},o:Es(fj),i:3,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("em",{key:S.key},D(x.children,S))},30:{t:["\\"],o:Es(gj),i:1,u:x=>({text:x[1],type:"27"})},31:{t:["=="],o:Es(hj),i:3,u:m1,l:(x,D,S)=>c("mark",{key:S.key},D(x.children,S))},32:{t:["~~"],o:Es(pj),i:3,u:m1,l:(x,D,S)=>c("del",{key:S.key},D(x.children,S))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const E=function(x){var D=Object.keys(x);function S(L,M){var I=[];if(M.prevCapture=M.prevCapture||"",L.trim())for(;L;)for(var V=0;V<D.length;){var ne=D[V],K=x[ne];if(!K.t||kj(L,M,K.t)){var k=K.o(L,M);if(k&&k[0]){L=L.substring(k[0].length);var H=K.u(k,S,M);M.prevCapture+=k[0],H.type||(H.type=ne),I.push(H);break}V++}else V++}return M.prevCapture="",I}return D.sort(function(L,M){return x[L].i-x[M].i||(L<M?-1:1)}),function(L,M){return S(function(I){return I.replace(HF,`
85
- `).replace(VF,"").replace(sj," ")}(L),M)}}(y),T=(A=function(x,D){return function(S,L,M){const I=x[S.type].l;return D?D(()=>I(S,L,M),S,L,M):I(S,L,M)}}(y,t.renderRule),function x(D,S={}){if(Array.isArray(D)){const L=S.key,M=[];let I=!1;for(let V=0;V<D.length;V++){S.key=V;const ne=x(D[V],S),K=typeof ne=="string";K&&I?M[M.length-1]+=ne:ne!==null&&M.push(ne),I=K}return S.key=L,M}return A(D,x,S)});var A;const C=d(e);return p.length?c("div",null,C,c("footer",{key:"footer"},p.map(function(x){return c("div",{id:n(x.identifier,mu),key:x.identifier},x.identifier,T(E(x.footnote,{inline:!0})))}))):C}const ab=e=>{let{children:t="",options:n}=e,r=function(a,s){if(a==null)return{};var l,c,d={},f=Object.keys(a);for(c=0;c<f.length;c++)s.indexOf(l=f[c])>=0||(d[l]=a[l]);return d}(e,IF);return N.cloneElement(Pj(t,n),r)},$j=N.lazy(()=>F(()=>import("./index.es23-Cifiq2N-.js"),__vite__mapDeps([98,94,95])));function E3({result:e,minHeight:t,maxHeight:n}){const[r,a]=N.useState(!1),[s,l]=N.useState(0),[c,d]=N.useState(!1),f=N.useRef(null),p=N.useRef(null),[m,y]=N.useState(void 0),[E,T]=N.useState(!1),A=N.useCallback(()=>{const L=r;a(!r),L&&p.current&&setTimeout(()=>{p.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[r]),C=N.useCallback(L=>{l(L)},[]);if(N.useEffect(()=>{if(E){d(!0);return}if(s===0){d(!1);return}const L=t-20,M=s>L;s<L&&y(s+20),d(M)},[s,E,t]),!e)return null;const x=b.jsx(pr,{text:"Loading...",centered:!0,size:32}),D=E?r?n-40:t-40:void 0,S=m?{minHeight:`${m}px`,height:"100%"}:{height:"100%"};return b.jsx(b.Fragment,{children:b.jsxs(ut,{ref:p,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${r?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...S},children:[b.jsx(ut,{ref:f,sx:{flex:1,overflow:r?"auto":"hidden",p:0,pb:c?"40px":1},children:e&&b.jsx(N.Suspense,{fallback:x,children:b.jsx($j,{result:e,height:D,isFillElement:L=>{T(L)},onSizeChange:C})})||x}),c&&b.jsx(ut,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:b.jsx(An,{size:"small",onClick:A,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:r?"Collapse to original size":"Expand to full size",children:r?b.jsx(o4,{sx:{fontSize:30}}):b.jsx(l4,{sx:{fontSize:30}})})})]})})}const b3=Jt(b.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),Fj=new Vk(new ir);function jj(){const{projectName:e,packageName:t,versionId:n}=ra(),{data:r,isSuccess:a,isError:s,error:l}=yr({queryKey:["package",e,t,n],queryFn:c=>Fj.getPackage(e,t,n,!1,c)});return b.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Package Config"}),b.jsx(nr,{}),b.jsx(ut,{sx:{maxHeight:"200px",overflowY:"auto"},children:b.jsxs(dE,{dense:!0,disablePadding:!0,children:[b.jsx(uh,{dense:!0,disablePadding:!0,children:b.jsx(Lu,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!a&&!s&&b.jsx(uh,{children:b.jsx(pr,{text:"Fetching Package Metadata..."})}),a&&(r.data&&b.jsx(uh,{dense:!0,disablePadding:!0,children:b.jsx(Lu,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||b.jsxs(uh,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[b.jsx(b3,{sx:{color:"grey.600",mr:"10px"}}),b.jsx(Lu,{primary:"No package manifest"})]})),s&&b.jsx(ar,{error:l,context:`${e} > ${t} > ${n}`})]})})]})})}const Bj=Jt(b.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),Uj=new qk(new ir);function Hj(){const{projectName:e}=zd(),{data:t,isSuccess:n,isError:r,error:a}=yr({queryKey:["about",e],queryFn:s=>Uj.getProject(e,!1,s)});return b.jsxs(b.Fragment,{children:[!n&&!r&&b.jsx(pr,{text:"Fetching About..."}),n&&t.data?.readme&&b.jsxs(zn,{variant:"outlined",sx:{p:2},children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),b.jsx(zn,{sx:{p:1},children:b.jsx(ab,{children:t.data.readme})})]}),r&&b.jsx(ar,{error:a,context:`${e} > About`})]})}const zj=new Vk(new ir);function Gj({navigate:e}){const{projectName:t}=zd(),{data:n,isSuccess:r,isError:a,error:s}=yr({queryKey:["packages",t],queryFn:l=>zj.listPackages(t,l)});return b.jsxs(b.Fragment,{children:[!r&&!a&&b.jsx(pr,{text:"Fetching Packages..."}),r&&b.jsxs(zn,{variant:"outlined",sx:{p:2},children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),b.jsx(gn,{container:!0,spacing:2,columns:12,children:n.data.sort((l,c)=>l.name.localeCompare(c.name)).map(l=>b.jsx(gn,{size:{xs:12,sm:12,md:12,lg:4},children:b.jsx(zn,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",transform:"translateY(-2px)"}},onClick:c=>e(l.name,c),children:b.jsxs(na,{children:[b.jsx(Pe,{variant:"overline",color:"primary.main",children:l.name}),b.jsx(ut,{sx:{maxHeight:"120px",overflowY:"auto"},children:b.jsx(Pe,{variant:"body2",children:l.description})})]})})},l.name))})]}),a&&b.jsx(ar,{error:s,context:`${t} > Packages`})]})}const v3=N.createContext(void 0);function zd(){const e=N.useContext(v3);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function T3({children:e,projectName:t}){return b.jsx(v3.Provider,{value:{projectName:t},children:e})}function Vj({navigate:e}){return b.jsxs(gn,{container:!0,spacing:2,columns:12,children:[b.jsx(gn,{size:{xs:12,md:12},children:b.jsx(Gj,{navigate:e})}),b.jsx(gn,{size:{xs:12,md:12},children:b.jsx(Hj,{})})]})}const ib=new zk(new ir);function qj({connectionName:e,schema:t}){const{projectName:n}=zd(),[r,a]=Ne.useState(void 0),[s,l]=Ne.useState(t||null),[c,d]=Ne.useState(!1),{data:f,isSuccess:p,isError:m,error:y,isLoading:E}=yr({queryKey:["tablePath",n,e],queryFn:T=>ib.listSchemas(n,e,T)});return b.jsxs(gn,{container:!0,spacing:1,children:[!t&&b.jsx(gn,{size:{xs:12,md:4},children:b.jsxs(Nh,{sx:{p:1,m:0},children:[b.jsxs(ut,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),b.jsx(c4,{control:b.jsx(u4,{checked:c,onChange:T=>d(T.target.checked)}),label:"Hidden Schemas"})]}),b.jsx(nr,{sx:{mt:"2px"}}),b.jsxs(ut,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[E&&b.jsx(pr,{text:"Fetching Table Paths..."}),m&&b.jsx(ar,{error:y,context:`${n} > ${e}`}),p&&f.data.length===0&&b.jsx(Pe,{variant:"body2",children:"No Schemas"}),p&&f.data.length>0&&b.jsx(dE,{dense:!0,disablePadding:!0,children:f.data.filter(({isHidden:T})=>c||!T).sort((T,A)=>T.isDefault===A.isDefault?0:T.isDefault?-1:1).map(T=>{const A=(T.description||"").trim(),C=A!=="",x=C?A.split(/\r?\n/)[0]:void 0,D=b.jsx(j2,{selected:s===T.name,onClick:()=>l(T.name),children:b.jsx(Lu,{primary:T.name,secondary:x})},T.name);return C?b.jsx(Sn,{title:A,arrow:!0,children:D},T.name):D})})]})]})}),b.jsx(gn,{size:{xs:12,md:t?6:4},children:s&&b.jsx(Nh,{sx:{p:1,m:0},children:b.jsx(Qj,{connectionName:e,schemaName:s,onTableClick:T=>{a(T)}})})}),b.jsx(gn,{size:{xs:12,md:t?6:4},children:r&&s&&b.jsx(Nh,{sx:{p:1,m:0},children:b.jsx(Yj,{connectionName:e,schemaName:s,tableName:r})})})]})}function Yj({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=zd(),{data:a,isSuccess:s,isError:l,error:c,isLoading:d}=yr({queryKey:["tablePathSchema",r,e,t,n],queryFn:f=>ib.getTablesource(r,e,n,`${t}.${n}`,f)});return b.jsxs(b.Fragment,{children:[b.jsxs(Pe,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),b.jsx(nr,{}),b.jsxs(ut,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[d&&b.jsx(pr,{text:"Fetching Table Details..."}),l&&b.jsx(ar,{error:c,context:`${r} > ${e} > ${t}.${n}`}),s&&a&&b.jsx(fE,{children:b.jsxs(Ju,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[b.jsx(rp,{children:b.jsxs(ii,{children:[b.jsx(Ut,{children:"NAME"}),b.jsx(Ut,{children:"TYPE"})]})}),b.jsx(ed,{children:a.data.columns?.map(f=>b.jsxs(ii,{children:[b.jsx(Ut,{children:f.name}),b.jsx(Ut,{children:f.type})]},f.name))})]})})]})]})}function Qj({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=zd(),{data:a,isSuccess:s,isError:l,error:c,isLoading:d}=yr({queryKey:["tablesInSchema",r,e,t],queryFn:f=>ib.listTables(r,e,t,f)});return b.jsxs(b.Fragment,{children:[b.jsxs(Pe,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),b.jsx(nr,{}),b.jsxs(ut,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[d&&b.jsx(pr,{text:"Fetching Tables..."}),l&&b.jsx(ar,{error:c,context:`${r} > ${e} > ${t}`}),s&&a.data.length===0&&b.jsx(Pe,{variant:"body2",children:"No Tables"}),s&&a.data.length>0&&b.jsx(dE,{dense:!0,disablePadding:!0,children:a.data.map(f=>b.jsx(j2,{onClick:()=>n(f),children:b.jsx(Lu,{primary:f})},f))})]})]})}const Kj=new zk(new ir);function Wj({connection:e,onClick:t}){return b.jsxs(ii,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[b.jsx(Ut,{children:b.jsxs(ut,{sx:{display:"flex",alignItems:"center",gap:1},children:[b.jsx(Pe,{variant:"body2",children:e.name}),b.jsx(Bj,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),b.jsx(Ut,{children:b.jsx(Pe,{variant:"body2",children:e.type})})]},e.name)}function Xj(){const{projectName:e}=ra(),[t,n]=N.useState(null),{data:r,isSuccess:a,isError:s,error:l}=yr({queryKey:["connections",e],queryFn:f=>Kj.listConnections(e,f)}),c=f=>{n(f)},d=()=>{n(null)};return b.jsxs(T3,{projectName:e,children:[b.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),b.jsx(nr,{}),b.jsxs(ut,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!a&&!s&&b.jsx(Pe,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),a&&r.data.length>0&&b.jsx(Ju,{size:"small",children:b.jsxs(ed,{children:[b.jsxs(ii,{children:[b.jsx(Ut,{children:b.jsx(Pe,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),b.jsx(Ut,{children:b.jsx(Pe,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),r.data.map(f=>b.jsx(Wj,{connection:f,onClick:()=>c(f.name)},f.name))]})}),a&&r.data.length===0&&b.jsx(Pe,{variant:"body2",children:"No Connections"}),s&&b.jsx(ar,{error:l,context:`${e} > Connections`})]})]})}),b.jsxs(Up,{open:t!==null,onClose:d,maxWidth:"lg",fullWidth:!0,children:[b.jsxs(Hp,{children:["Connection Explorer: ",t,b.jsx(An,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:b.jsx(ut,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),b.jsx(zp,{children:t&&b.jsx(qj,{connectionName:t})})]})]})}const Zj=new M9(new ir);function Jj(){const{projectName:e,packageName:t,versionId:n}=ra(),[r,a]=Ne.useState(!1),[s,l]=Ne.useState(null),c=T=>{l(T),a(!0)},d=()=>{a(!1),l(null)},{data:f,isError:p,error:m,isSuccess:y}=yr({queryKey:["databases",e,t,n],queryFn:T=>Zj.listDatabases(e,t,n,T)}),E=T=>T>=1024*1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} T`:T>=1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} G`:T>=1024*1024?`${(T/(1024*1024)).toFixed(2)} M`:`${(T/1024).toFixed(2)} K`;return b.jsxs(b.Fragment,{children:[b.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),b.jsx(nr,{}),b.jsxs(ut,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!y&&!p&&b.jsx(pr,{text:"Fetching Databases..."}),p&&b.jsx(ar,{error:m,context:`${e} > ${t} > Databases`}),y&&f.data.length>0&&b.jsxs(Ju,{size:"small",children:[b.jsx(rp,{children:b.jsxs(ii,{children:[b.jsx(Ut,{children:"Name"}),b.jsx(Ut,{align:"right",children:"Rows"})]})}),b.jsx(ed,{children:f.data.map(T=>b.jsxs(ii,{onClick:()=>c(T),sx:{cursor:"pointer"},children:[b.jsx(Ut,{component:"th",scope:"row",children:T.path}),b.jsx(Ut,{align:"right",children:E(T.info.rowCount)})]},T.path))})]}),y&&f.data.length===0&&b.jsx(Pe,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),b.jsxs(Up,{open:r,onClose:d,maxWidth:"sm",fullWidth:!0,children:[b.jsx(Hp,{children:s?.path}),b.jsx(zp,{children:s?.info?.columns&&b.jsx(fE,{children:b.jsxs(Ju,{size:"small",children:[b.jsx(rp,{children:b.jsxs(ii,{children:[b.jsx(Ut,{children:"Column"}),b.jsx(Ut,{children:"Type"})]})}),b.jsx(ed,{children:s.info.columns.map(T=>b.jsxs(ii,{children:[b.jsx(Ut,{component:"th",scope:"row",children:T.name}),b.jsx(Ut,{children:T.type})]},T.name))})]})})})]})]})}function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(null,arguments)}const _3=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},x3=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(t);if(a===0)return n.parentId;let s=a-1;for(;!e.isItemNavigable(r[s])&&s>=0;)s-=1;if(s===-1)return n.parentId==null?null:x3(e,n.parentId);let l=r[s],c=_3(e,e.getItemOrderedChildrenIds(l));for(;e.isItemExpanded(l)&&c!=null;)l=c,c=e.getItemOrderedChildrenIds(l).find(e.isItemNavigable);return l},Vh=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(n.id);if(a<r.length-1){let s=a+1;for(;!e.isItemNavigable(r[s])&&s<r.length-1;)s+=1;if(e.isItemNavigable(r[s]))return r[s]}n=e.getItemMeta(n.parentId)}return null},A3=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=_3(e,n);if(r==null)return t;t=r}return t},hd=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),S3=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),a=e.getItemMeta(n);if(r.parentId===a.id||a.parentId===r.id)return a.parentId===r.id?[r.id,a.id]:[a.id,r.id];const s=[r.id],l=[a.id];let c=r.parentId,d=a.parentId,f=l.indexOf(c)!==-1,p=s.indexOf(d)!==-1,m=!0,y=!0;for(;!p&&!f;)m&&(s.push(c),f=l.indexOf(c)!==-1,m=c!==null,!f&&m&&(c=e.getItemMeta(c).parentId)),y&&!f&&(l.push(d),p=s.indexOf(d)!==-1,y=d!==null,!p&&y&&(d=e.getItemMeta(d).parentId));const E=f?c:d,T=e.getItemOrderedChildrenIds(E),A=s[s.indexOf(E)-1],C=l[l.indexOf(E)-1];return T.indexOf(A)<T.indexOf(C)?[t,n]:[n,t]},eB=(e,t,n)=>{const r=d=>{if(e.isItemExpandable(d)&&e.isItemExpanded(d))return e.getItemOrderedChildrenIds(d)[0];let f=e.getItemMeta(d);for(;f!=null;){const p=e.getItemOrderedChildrenIds(f.parentId),m=e.getItemIndex(f.id);if(m<p.length-1)return p[m+1];f=e.getItemMeta(f.parentId)}throw new Error("Invalid range")},[a,s]=S3(e,t,n),l=[a];let c=a;for(;c!==s;)c=r(c),e.isItemDisabled(c)||l.push(c);return l},tB=e=>{let t=hd(e);const n=[];for(;t!=null;)n.push(t),t=Vh(e,t);return n},pd=(e,t)=>t!==e.closest('*[role="treeitem"]');let RS=0;const nB=()=>(RS+=1,`mui-tree-view-${RS}`),sb=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,C3=N.createContext(null),Fo=()=>{const e=N.useContext(C3);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
86
- `));return e},ob=N.createContext(()=>-1),_o=(e,t)=>e.getAvailablePlugins().has(t),rB=({props:e})=>{const{instance:t}=Fo(),{label:n,itemId:r}=e,[a,s]=N.useState(n),l=t.isItemBeingEdited(r);return N.useEffect(()=>{l||s(n)},[l,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:d})=>t.isItemEditable(r)?{value:a??"","data-element":"labelInput",onChange:f=>{c.onChange?.(f),s(f.target.value)},onKeyDown:f=>{if(c.onKeyDown?.(f),f.defaultMuiPrevented)return;const p=f.target;f.key==="Enter"&&p.value?d.handleSaveItemLabel(f,p.value):f.key==="Escape"&&d.handleCancelItemLabelEditing(f)},onBlur:f=>{c.onBlur?.(f),!f.defaultMuiPrevented&&f.target.value&&d.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}},Sa=({instance:e,state:t,setState:n,params:r})=>{const a=N.useRef(t.editedItemId),s=m=>a.current===m,l=m=>{n(y=>Ae({},y,{editedItemId:m})),a.current=m},c=m=>m===t.editedItemId,d=!!r.isItemEditable,f=m=>{if(m==null||!d)return!1;const y=e.getItem(m);return y?typeof r.isItemEditable=="function"?r.isItemEditable(y):!!r.isItemEditable:!1},p=(m,y)=>{if(!y)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",m].join(`
87
- `));n(E=>{const T=E.items.itemMetaMap[m];return T.label!==y?Ae({},E,{items:Ae({},E.items,{itemMetaMap:Ae({},E.items.itemMetaMap,{[m]:Ae({},T,{label:y})})})}):E}),r.onItemLabelChange&&r.onItemLabelChange(m,y)};return{instance:{setEditedItemId:l,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:f,isTreeViewEditable:d,isItemBeingEditedRef:s},publicAPI:{updateItemLabel:p}}};Sa.itemPlugin=rB;Sa.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Ae({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};Sa.getInitialState=()=>({editedItemId:null});Sa.params={onItemLabelChange:!0,isItemEditable:!0};const D3=e=>Array.isArray(e)?e.length>0&&e.some(D3):!!e,aB=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=Fo(),s={expandable:D3(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},l=p=>{if(s.disabled)return;s.focused||n.focusItem(p,e);const m=r&&(p.shiftKey||p.ctrlKey||p.metaKey);s.expandable&&!(m&&n.isItemExpanded(e))&&n.toggleItemExpansion(p,e)},c=p=>{s.disabled||(!s.focused&&!s.editing&&n.focusItem(p,e),r&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:!0}):n.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},d=p=>{const m=p.nativeEvent.shiftKey;r&&m?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},f=()=>{_o(n,Sa)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:l,handleSelection:c,handleCheckboxSelection:d,toggleItemEditing:f,handleSaveItemLabel:(p,m)=>{_o(n,Sa)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,m),f(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{_o(n,Sa)&&n.isItemBeingEditedRef(e)&&(f(),n.focusItem(p,e))}},status:s,publicAPI:a}};function li(...e){const t=N.useRef(void 0),n=N.useCallback(r=>{const a=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const l=s,c=l(r);return typeof c=="function"?c:()=>{l(null)}}return s.current=r,()=>{s.current=null}});return()=>{a.forEach(s=>s?.())}},e);return N.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function ga(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}const iB=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:a},selection:{disableSelection:s,checkboxSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f,publicAPI:p}=Fo(),m=N.useContext(ob),{id:y,itemId:E,label:T,children:A,rootRef:C}=e,{rootRef:x,contentRef:D,propsEnhancers:S}=t(e),{interactions:L,status:M}=aB({itemId:E,children:A}),I=N.useRef(null),V=N.useRef(null),ne=li(C,x,I),K=li(D,V),k=N.useRef(null),H=sb({itemId:E,treeId:d,id:y}),Q=f.canItemBeTabbed(E)?0:-1,W={rootRefObject:I,contentRefObject:V,interactions:L},re=ce=>w=>{if(ce.onFocus?.(w),w.defaultMuiPrevented)return;const te=!M.disabled||r;!M.focused&&te&&w.currentTarget===w.target&&f.focusItem(w,E)},me=ce=>w=>{if(ce.onBlur?.(w),w.defaultMuiPrevented)return;const te=f.getItemDOMElement(E);M.editing||w.relatedTarget&&pd(w.relatedTarget,te)&&(w.target&&w.target?.dataset?.element==="labelInput"&&pd(w.target,te)||w.relatedTarget?.dataset?.element==="labelInput")||f.removeFocusedItem()},G=ce=>w=>{ce.onKeyDown?.(w),!(w.defaultMuiPrevented||w.target?.dataset?.element==="labelInput")&&f.handleItemKeyDown(w,E)},le=ce=>w=>{ce.onDoubleClick?.(w),!w.defaultMuiPrevented&&L.toggleItemEditing()},oe=ce=>w=>{ce.onClick?.(w),n?.(w,E),!(w.defaultMuiPrevented||k.current?.contains(w.target))&&(c==="content"&&L.handleExpansion(w),l||L.handleSelection(w))},ye=ce=>w=>{ce.onMouseDown?.(w),!w.defaultMuiPrevented&&(w.shiftKey||w.ctrlKey||w.metaKey||M.disabled)&&w.preventDefault()},P=ce=>w=>{ce.onChange?.(w),!w.defaultMuiPrevented&&(s||M.disabled||L.handleCheckboxSelection(w))},Oe=ce=>w=>{ce.onClick?.(w),!w.defaultMuiPrevented&&c==="iconContainer"&&L.handleExpansion(w)};return{getRootProps:(ce={})=>{const w=Ae({},ga(e),ga(ce));let te;M.selected?te=!0:s||M.disabled?te=void 0:te=!1;const Ce=Ae({},w,{ref:ne,role:"treeitem",tabIndex:Q,id:H,"aria-expanded":M.expandable?M.expanded:void 0,"aria-selected":te,"aria-disabled":M.disabled||void 0},ce,{onFocus:re(w),onBlur:me(w),onKeyDown:G(w)});a&&(Ce.style={"--TreeView-itemDepth":typeof m=="function"?m(E):m});const Ie=S.root?.(Ae({},W,{externalEventHandlers:w}))??{};return Ae({},Ce,Ie)},getContentProps:(ce={})=>{const w=ga(ce),te=Ae({},w,ce,{ref:K,onClick:oe(w),onMouseDown:ye(w),status:M});a&&(te.indentationAtItemLevel=!0);const Ce=S.content?.(Ae({},W,{externalEventHandlers:w}))??{};return Ae({},te,Ce)},getGroupTransitionProps:(ce={})=>{const w=ga(ce),te=Ae({},w,{unmountOnExit:!0,component:"ul",role:"group",in:M.expanded,children:A},ce);return a&&(te.indentationAtItemLevel=!0),te},getIconContainerProps:(ce={})=>{const w=ga(ce);return Ae({},w,ce,{onClick:Oe(w)})},getCheckboxProps:(ce={})=>{const w=ga(ce);return Ae({},w,{visible:l,ref:k,checked:M.selected,disabled:s||M.disabled,tabIndex:-1},ce,{onChange:P(w)})},getLabelProps:(ce={})=>{const w=Ae({},ga(ce)),te=Ae({},w,{children:T},ce,{onDoubleClick:le(w)});return f.isTreeViewEditable&&(te.editable=M.editable),te},getLabelInputProps:(ce={})=>{const w=ga(ce),te=S.labelInput?.({rootRefObject:I,contentRefObject:V,externalEventHandlers:w,interactions:L})??{};return Ae({},ce,te)},getDragAndDropOverlayProps:(ce={})=>{const w=ga(ce),te=S.dragAndDropOverlay?.(Ae({},W,{externalEventHandlers:w}))??{};return Ae({},ce,te)},rootRef:ne,status:M,publicAPI:p}},sB=iB,oB=Jt(b.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),lB=Jt([b.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),b.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]);var lb=Vd(),ot=e=>Gd(e,lb),cb=Vd();ot.write=e=>Gd(e,cb);var ym=Vd();ot.onStart=e=>Gd(e,ym);var ub=Vd();ot.onFrame=e=>Gd(e,ub);var db=Vd();ot.onFinish=e=>Gd(e,db);var zl=[];ot.setTimeout=(e,t)=>{const n=ot.now()+t,r=()=>{const s=zl.findIndex(l=>l.cancel==r);~s&&zl.splice(s,1),Ds-=~s?1:0},a={time:n,handler:e,cancel:r};return zl.splice(k3(n),0,a),Ds+=1,R3(),a};var k3=e=>~(~zl.findIndex(t=>t.time>e)||~zl.length);ot.cancel=e=>{ym.delete(e),ub.delete(e),db.delete(e),lb.delete(e),cb.delete(e)};ot.sync=e=>{Ny=!0,ot.batchedUpdates(e),Ny=!1};ot.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,ot.onStart(n)}return r.handler=e,r.cancel=()=>{ym.delete(n),t=null},r};var fb=typeof window<"u"?window.requestAnimationFrame:()=>{};ot.use=e=>fb=e;ot.now=typeof performance<"u"?()=>performance.now():Date.now;ot.batchedUpdates=e=>e();ot.catch=console.error;ot.frameLoop="always";ot.advance=()=>{ot.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):w3()};var Cs=-1,Ds=0,Ny=!1;function Gd(e,t){Ny?(t.delete(e),e(0)):(t.add(e),R3())}function R3(){Cs<0&&(Cs=0,ot.frameLoop!=="demand"&&fb(I3))}function cB(){Cs=-1}function I3(){~Cs&&(fb(I3),ot.batchedUpdates(w3))}function w3(){const e=Cs;Cs=ot.now();const t=k3(Cs);if(t&&(N3(zl.splice(0,t),n=>n.handler()),Ds-=t),!Ds){cB();return}ym.flush(),lb.flush(e?Math.min(64,Cs-e):16.667),ub.flush(),cb.flush(),db.flush()}function Vd(){let e=new Set,t=e;return{add(n){Ds+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Ds-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Ds-=t.size,N3(t,r=>r(n)&&e.add(r)),Ds+=e.size,t=e)}}}function N3(e,t){e.forEach(n=>{try{t(n)}catch(r){ot.catch(r)}})}var uB=Object.defineProperty,dB=(e,t)=>{for(var n in t)uB(e,n,{get:t[n],enumerable:!0})},$a={};dB($a,{assign:()=>hB,colors:()=>ws,createStringInterpolator:()=>pb,skipAnimation:()=>L3,to:()=>O3,willAdvance:()=>mb});function Oy(){}var fB=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),we={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Pi(e,t){if(we.arr(e)){if(!we.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var xt=(e,t)=>e.forEach(t);function ci(e,t,n){if(we.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Jr=e=>we.und(e)?[]:we.arr(e)?e:[e];function ju(e,t){if(e.size){const n=Array.from(e);e.clear(),xt(n,t)}}var wu=(e,...t)=>ju(e,n=>n(...t)),hb=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),pb,O3,ws=null,L3=!1,mb=Oy,hB=e=>{e.to&&(O3=e.to),e.now&&(ot.now=e.now),e.colors!==void 0&&(ws=e.colors),e.skipAnimation!=null&&(L3=e.skipAnimation),e.createStringInterpolator&&(pb=e.createStringInterpolator),e.requestAnimationFrame&&ot.use(e.requestAnimationFrame),e.batchedUpdates&&(ot.batchedUpdates=e.batchedUpdates),e.willAdvance&&(mb=e.willAdvance),e.frameLoop&&(ot.frameLoop=e.frameLoop)},Bu=new Set,Aa=[],b1=[],Dp=0,Em={get idle(){return!Bu.size&&!Aa.length},start(e){Dp>e.priority?(Bu.add(e),ot.onStart(pB)):(M3(e),ot(Ly))},advance:Ly,sort(e){if(Dp)ot.onFrame(()=>Em.sort(e));else{const t=Aa.indexOf(e);~t&&(Aa.splice(t,1),P3(e))}},clear(){Aa=[],Bu.clear()}};function pB(){Bu.forEach(M3),Bu.clear(),ot(Ly)}function M3(e){Aa.includes(e)||P3(e)}function P3(e){Aa.splice(mB(Aa,t=>t.priority>e.priority),0,e)}function Ly(e){const t=b1;for(let n=0;n<Aa.length;n++){const r=Aa[n];Dp=r.priority,r.idle||(mb(r),r.advance(e),r.idle||t.push(r))}return Dp=0,b1=Aa,b1.length=0,Aa=t,Aa.length>0}function mB(e,t){const n=e.findIndex(t);return n<0?e.length:n}var gB={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},La="[-+]?\\d*\\.?\\d+",kp=La+"%";function bm(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yB=new RegExp("rgb"+bm(La,La,La)),EB=new RegExp("rgba"+bm(La,La,La,La)),bB=new RegExp("hsl"+bm(La,kp,kp)),vB=new RegExp("hsla"+bm(La,kp,kp,La)),TB=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,_B=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xB=/^#([0-9a-fA-F]{6})$/,AB=/^#([0-9a-fA-F]{8})$/;function SB(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=xB.exec(e))?parseInt(t[1]+"ff",16)>>>0:ws&&ws[e]!==void 0?ws[e]:(t=yB.exec(e))?(Cl(t[1])<<24|Cl(t[2])<<16|Cl(t[3])<<8|255)>>>0:(t=EB.exec(e))?(Cl(t[1])<<24|Cl(t[2])<<16|Cl(t[3])<<8|NS(t[4]))>>>0:(t=TB.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=AB.exec(e))?parseInt(t[1],16)>>>0:(t=_B.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=bB.exec(e))?(IS(wS(t[1]),_h(t[2]),_h(t[3]))|255)>>>0:(t=vB.exec(e))?(IS(wS(t[1]),_h(t[2]),_h(t[3]))|NS(t[4]))>>>0:null}function v1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function IS(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,s=v1(a,r,e+1/3),l=v1(a,r,e),c=v1(a,r,e-1/3);return Math.round(s*255)<<24|Math.round(l*255)<<16|Math.round(c*255)<<8}function Cl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function wS(e){return(parseFloat(e)%360+360)%360/360}function NS(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function _h(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function OS(e){let t=SB(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${s})`}var md=(e,t,n)=>{if(we.fun(e))return e;if(we.arr(e))return md({range:e,output:t,extrapolate:n});if(we.str(e.output[0]))return pb(e);const r=e,a=r.output,s=r.range||[0,1],l=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(f=>f);return f=>{const p=DB(f,s);return CB(f,s[p],s[p+1],a[p],a[p+1],d,l,c,r.map)}};function CB(e,t,n,r,a,s,l,c,d){let f=d?d(e):e;if(f<t){if(l==="identity")return f;l==="clamp"&&(f=t)}if(f>n){if(c==="identity")return f;c==="clamp"&&(f=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=s(f),r===-1/0?f=-f:a===1/0?f=f+r:f=f*(a-r)+r,f)}function DB(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var kB={linear:e=>e},gd=Symbol.for("FluidValue.get"),Wl=Symbol.for("FluidValue.observers"),Ta=e=>!!(e&&e[gd]),Or=e=>e&&e[gd]?e[gd]():e,LS=e=>e[Wl]||null;function RB(e,t){e.eventObserved?e.eventObserved(t):e(t)}function yd(e,t){const n=e[Wl];n&&n.forEach(r=>{RB(r,t)})}var $3=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");IB(this,e)}},IB=(e,t)=>F3(e,gd,t);function sc(e,t){if(e[gd]){let n=e[Wl];n||F3(e,Wl,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ed(e,t){const n=e[Wl];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Wl]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var F3=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),qh=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,wB=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,MS=new RegExp(`(${qh.source})(%|[a-z]+)`,"i"),NB=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,vm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,j3=e=>{const[t,n]=OB(e);if(!t||hb())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&vm.test(n))return j3(n);if(n)return n}return e},OB=e=>{const t=vm.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},T1,LB=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,B3=e=>{T1||(T1=ws?new RegExp(`(${Object.keys(ws).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Or(s).replace(vm,j3).replace(wB,OS).replace(T1,OS)),n=t.map(s=>s.match(qh).map(Number)),a=n[0].map((s,l)=>n.map(c=>{if(!(l in c))throw Error('The arity of each "output" value must be equal');return c[l]})).map(s=>md({...e,output:s}));return s=>{const l=!MS.test(t[0])&&t.find(d=>MS.test(d))?.replace(qh,"");let c=0;return t[0].replace(qh,()=>`${a[c++](s)}${l||""}`).replace(NB,LB)}},gb="react-spring: ",U3=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${gb}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},MB=U3(console.warn);function PB(){MB(`${gb}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $B=U3(console.warn);function FB(){$B(`${gb}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Tm(e){return we.str(e)&&(e[0]=="#"||/\d/.test(e)||!hb()&&vm.test(e)||e in(ws||{}))}var yb=hb()?N.useEffect:N.useLayoutEffect,jB=()=>{const e=N.useRef(!1);return yb(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function H3(){const e=N.useState()[1],t=jB();return()=>{t.current&&e(Math.random())}}var z3=e=>N.useEffect(e,BB),BB=[];function PS(e){const t=N.useRef(void 0);return N.useEffect(()=>{t.current=e}),t.current}var bd=Symbol.for("Animated:node"),UB=e=>!!e&&e[bd]===e,ni=e=>e&&e[bd],Eb=(e,t)=>fB(e,bd,t),_m=e=>e&&e[bd]&&e[bd].getPayload(),G3=class{constructor(){Eb(this,this)}getPayload(){return this.payload||[]}},xm=class V3 extends G3{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,we.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new V3(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return we.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,we.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Rp=class q3 extends xm{constructor(t){super(0),this._string=null,this._toString=md({output:[t,t]})}static create(t){return new q3(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(we.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=md({output:[this.getValue(),t]})),this._value=0,super.reset()}},Ip={dependencies:null},Am=class extends G3{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return ci(this.source,(n,r)=>{UB(n)?t[r]=n.getValue(e):Ta(n)?t[r]=Or(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return ci(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ip.dependencies&&Ta(e)&&Ip.dependencies.add(e);const t=_m(e);t&&xt(t,n=>this.add(n))}},HB=class Y3 extends Am{constructor(t){super(t)}static create(t){return new Y3(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,a)=>r.setValue(t[a])).some(Boolean):(super.setValue(t.map(zB)),!0)}};function zB(e){return(Tm(e)?Rp:xm).create(e)}function My(e){const t=ni(e);return t?t.constructor:we.arr(e)?HB:Tm(e)?Rp:xm}var $S=(e,t)=>{const n=!we.fun(e)||e.prototype&&e.prototype.isReactComponent;return N.forwardRef((r,a)=>{const s=N.useRef(null),l=n&&N.useCallback(T=>{s.current=qB(a,T)},[a]),[c,d]=VB(r,t),f=H3(),p=()=>{const T=s.current;if(n&&!T)return;(T?t.applyAnimatedValues(T,c.getValue(!0)):!1)===!1&&f()},m=new GB(p,d),y=N.useRef(void 0);yb(()=>(y.current=m,xt(d,T=>sc(T,m)),()=>{y.current&&(xt(y.current.deps,T=>Ed(T,y.current)),ot.cancel(y.current.update))})),N.useEffect(p,[]),z3(()=>()=>{const T=y.current;xt(T.deps,A=>Ed(A,T))});const E=t.getComponentProps(c.getValue());return N.createElement(e,{...E,ref:l})})},GB=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&ot.write(this.update)}};function VB(e,t){const n=new Set;return Ip.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Am(e),Ip.dependencies=null,[e,n]}function qB(e,t){return e&&(we.fun(e)?e(t):e.current=t),t}var FS=Symbol.for("AnimatedComponent"),YB=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new Am(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=l=>{const c=jS(l)||"Anonymous";return we.str(l)?l=s[l]||(s[l]=$S(l,a)):l=l[FS]||(l[FS]=$S(l,a)),l.displayName=`Animated(${c})`,l};return ci(e,(l,c)=>{we.arr(e)&&(c=jS(l)),s[c]=s(l)}),{animated:s}},jS=e=>we.str(e)?e:e&&we.str(e.displayName)?e.displayName:we.fun(e)&&e.name||null;function co(e,...t){return we.fun(e)?e(...t):e}var Uu=(e,t)=>e===!0||!!(t&&e&&(we.fun(e)?e(t):Jr(e).includes(t))),Q3=(e,t)=>we.obj(e)?t&&e[t]:e,K3=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,QB=e=>e,bb=(e,t=QB)=>{let n=KB;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const s=t(e[a],a);we.und(s)||(r[a]=s)}return r},KB=["config","onProps","onStart","onChange","onPause","onResume","onRest"],WB={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function XB(e){const t={};let n=0;if(ci(e,(r,a)=>{WB[a]||(t[a]=r,n++)}),n)return t}function W3(e){const t=XB(e);if(t){const n={to:t};return ci(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function vd(e){return e=Or(e),we.arr(e)?e.map(vd):Tm(e)?$a.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ZB(e){for(const t in e)return!0;return!1}function Py(e){return we.fun(e)||we.arr(e)&&we.obj(e[0])}function JB(e,t){e.ref?.delete(e),t?.delete(e)}function eU(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var tU={default:{tension:170,friction:26}},$y={...tU.default,mass:1,damping:1,easing:kB.linear,clamp:!1},nU=class{constructor(){this.velocity=0,Object.assign(this,$y)}};function rU(e,t,n){n&&(n={...n},BS(n,t),t={...n,...t}),BS(e,t),Object.assign(e,t);for(const l in $y)e[l]==null&&(e[l]=$y[l]);let{frequency:r,damping:a}=e;const{mass:s}=e;return we.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*a*s/r),e}function BS(e,t){if(!we.und(t.decay))e.duration=void 0;else{const n=!we.und(t.tension)||!we.und(t.friction);(n||!we.und(t.frequency)||!we.und(t.damping)||!we.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var US=[],aU=class{constructor(){this.changed=!1,this.values=US,this.toValues=null,this.fromValues=US,this.config=new nU,this.immediate=!1}};function X3(e,{key:t,props:n,defaultProps:r,state:a,actions:s}){return new Promise((l,c)=>{let d,f,p=Uu(n.cancel??r?.cancel,t);if(p)E();else{we.und(n.pause)||(a.paused=Uu(n.pause,t));let T=r?.pause;T!==!0&&(T=a.paused||Uu(T,t)),d=co(n.delay||0,t),T?(a.resumeQueue.add(y),s.pause()):(s.resume(),y())}function m(){a.resumeQueue.add(y),a.timeouts.delete(f),f.cancel(),d=f.time-ot.now()}function y(){d>0&&!$a.skipAnimation?(a.delayed=!0,f=ot.setTimeout(E,d),a.pauseQueue.add(m),a.timeouts.add(f)):E()}function E(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(m),a.timeouts.delete(f),e<=(a.cancelId||0)&&(p=!0);try{s.start({...n,callId:e,cancel:p},l)}catch(T){c(T)}}})}var vb=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Gl(e.get()):t.every(n=>n.noop)?Z3(e.get()):Oa(e.get(),t.every(n=>n.finished)),Z3=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Oa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Gl=e=>({value:e,cancelled:!0,finished:!1});function J3(e,t,n,r){const{callId:a,parentId:s,onRest:l}=t,{asyncTo:c,promise:d}=n;return!s&&e===c&&!t.reset?d:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const f=bb(t,(C,x)=>x==="onRest"?void 0:C);let p,m;const y=new Promise((C,x)=>(p=C,m=x)),E=C=>{const x=a<=(n.cancelId||0)&&Gl(r)||a!==n.asyncId&&Oa(r,!1);if(x)throw C.result=x,m(C),C},T=(C,x)=>{const D=new HS,S=new zS;return(async()=>{if($a.skipAnimation)throw Td(n),S.result=Oa(r,!1),m(S),S;E(D);const L=we.obj(C)?{...C}:{...x,to:C};L.parentId=a,ci(f,(I,V)=>{we.und(L[V])&&(L[V]=I)});const M=await r.start(L);return E(D),n.paused&&await new Promise(I=>{n.resumeQueue.add(I)}),M})()};let A;if($a.skipAnimation)return Td(n),Oa(r,!1);try{let C;we.arr(e)?C=(async x=>{for(const D of x)await T(D)})(e):C=Promise.resolve(e(T,r.stop.bind(r))),await Promise.all([C.then(p),y]),A=Oa(r.get(),!0,!1)}catch(C){if(C instanceof HS)A=C.result;else if(C instanceof zS)A=C.result;else throw C}finally{a==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?d:void 0)}return we.fun(l)&&ot.batchedUpdates(()=>{l(A,r,r.item)}),A})()}function Td(e,t){ju(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var HS=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},zS=class extends Error{constructor(){super("SkipAnimationSignal")}},Fy=e=>e instanceof Tb,iU=1,Tb=class extends $3{constructor(){super(...arguments),this.id=iU++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ni(this);return e&&e.getValue()}to(...e){return $a.to(this,e)}interpolate(...e){return PB(),$a.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){yd(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Em.sort(this),yd(this,{type:"priority",parent:this,priority:e})}},Io=Symbol.for("SpringPhase"),eR=1,jy=2,By=4,_1=e=>(e[Io]&eR)>0,bs=e=>(e[Io]&jy)>0,gu=e=>(e[Io]&By)>0,GS=(e,t)=>t?e[Io]|=jy|eR:e[Io]&=~jy,VS=(e,t)=>t?e[Io]|=By:e[Io]&=~By,sU=class extends Tb{constructor(e,t){if(super(),this.animation=new aU,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!we.und(e)||!we.und(t)){const n=we.obj(e)?{...e}:{...t,from:e};we.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(bs(this)||this._state.asyncTo)||gu(this)}get goal(){return Or(this.animation.to)}get velocity(){const e=ni(this);return e instanceof xm?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return _1(this)}get isAnimating(){return bs(this)}get isPaused(){return gu(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:s}=r,l=_m(r.to);!l&&Ta(r.to)&&(a=Jr(Or(r.to))),r.values.forEach((f,p)=>{if(f.done)return;const m=f.constructor==Rp?1:l?l[p].lastPosition:a[p];let y=r.immediate,E=m;if(!y){if(E=f.lastPosition,s.tension<=0){f.done=!0;return}let T=f.elapsedTime+=e;const A=r.fromValues[p],C=f.v0!=null?f.v0:f.v0=we.arr(s.velocity)?s.velocity[p]:s.velocity;let x;const D=s.precision||(A==m?.005:Math.min(1,Math.abs(m-A)*.001));if(we.und(s.duration))if(s.decay){const S=s.decay===!0?.998:s.decay,L=Math.exp(-(1-S)*T);E=A+C/(1-S)*(1-L),y=Math.abs(f.lastPosition-E)<=D,x=C*L}else{x=f.lastVelocity==null?C:f.lastVelocity;const S=s.restVelocity||D/10,L=s.clamp?0:s.bounce,M=!we.und(L),I=A==m?f.v0>0:A<m;let V,ne=!1;const K=1,k=Math.ceil(e/K);for(let H=0;H<k&&(V=Math.abs(x)>S,!(!V&&(y=Math.abs(m-E)<=D,y)));++H){M&&(ne=E==m||E>m==I,ne&&(x=-x*L,E=m));const Q=-s.tension*1e-6*(E-m),W=-s.friction*.001*x,re=(Q+W)/s.mass;x=x+re*K,E=E+x*K}}else{let S=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,f.durationProgress>0&&(f.elapsedTime=s.duration*f.durationProgress,T=f.elapsedTime+=e)),S=(s.progress||0)+T/this._memoizedDuration,S=S>1?1:S<0?0:S,f.durationProgress=S),E=A+s.easing(S)*(m-A),x=(E-f.lastPosition)/e,y=S==1}f.lastVelocity=x,Number.isNaN(E)&&(console.warn("Got NaN while animating:",this),y=!0)}l&&!l[p].done&&(y=!1),y?f.done=!0:t=!1,f.setValue(E,s.round)&&(n=!0)});const c=ni(this),d=c.getValue();if(t){const f=Or(r.to);(d!==f||n)&&!s.decay?(c.setValue(f),this._onChange(f)):n&&s.decay&&this._onChange(d),this._stop()}else n&&this._onChange(d)}set(e){return ot.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(bs(this)){const{to:e,config:t}=this.animation;ot.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return we.und(e)?(n=this.queue||[],this.queue=[]):n=[we.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>vb(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Td(this._state,e&&this._lastCallId),ot.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=we.obj(n)?n[t]:n,(n==null||Py(n))&&(n=void 0),r=we.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return _1(this)||(e.reverse&&([n,r]=[r,n]),r=Or(r),we.und(r)?ni(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bb(e,(l,c)=>/^on/.test(c)?Q3(l,n):l)),YS(this,e,"onProps"),Eu(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return X3(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{gu(this)||(VS(this,!0),wu(s.pauseQueue),Eu(this,"onPause",Oa(this,yu(this,this.animation.to)),this))},resume:()=>{gu(this)&&(VS(this,!1),bs(this)&&this._resume(),wu(s.resumeQueue),Eu(this,"onResume",Oa(this,yu(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(l=>{if(e.loop&&l.finished&&!(t&&l.noop)){const c=tR(e);if(c)return this._update(c,!0)}return l})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Gl(this));const r=!we.und(e.to),a=!we.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Gl(this));const{key:s,defaultProps:l,animation:c}=this,{to:d,from:f}=c;let{to:p=d,from:m=f}=e;a&&!r&&(!t.default||we.und(p))&&(p=m),t.reverse&&([p,m]=[m,p]);const y=!Pi(m,f);y&&(c.from=m),m=Or(m);const E=!Pi(p,d);E&&this._focus(p);const T=Py(t.to),{config:A}=c,{decay:C,velocity:x}=A;(r||a)&&(A.velocity=0),t.config&&!T&&rU(A,co(t.config,s),t.config!==l.config?co(l.config,s):void 0);let D=ni(this);if(!D||we.und(p))return n(Oa(this,!0));const S=we.und(t.reset)?a&&!t.default:!we.und(m)&&Uu(t.reset,s),L=S?m:this.get(),M=vd(p),I=we.num(M)||we.arr(M)||Tm(M),V=!T&&(!I||Uu(l.immediate||t.immediate,s));if(E){const H=My(p);if(H!==D.constructor)if(V)D=this._set(M);else throw Error(`Cannot animate between ${D.constructor.name} and ${H.name}, as the "to" prop suggests`)}const ne=D.constructor;let K=Ta(p),k=!1;if(!K){const H=S||!_1(this)&&y;(E||H)&&(k=Pi(vd(L),M),K=!k),(!Pi(c.immediate,V)&&!V||!Pi(A.decay,C)||!Pi(A.velocity,x))&&(K=!0)}if(k&&bs(this)&&(c.changed&&!S?K=!0:K||this._stop(d)),!T&&((K||Ta(d))&&(c.values=D.getPayload(),c.toValues=Ta(p)?null:ne==Rp?[1]:Jr(M)),c.immediate!=V&&(c.immediate=V,!V&&!S&&this._set(d)),K)){const{onRest:H}=c;xt(lU,W=>YS(this,t,W));const Q=Oa(this,yu(this,d));wu(this._pendingCalls,Q),this._pendingCalls.add(n),c.changed&&ot.batchedUpdates(()=>{c.changed=!S,H?.(Q,this),S?co(l.onRest,Q):c.onStart?.(Q,this)})}S&&this._set(L),T?n(J3(t.to,t,this._state,this)):K?this._start():bs(this)&&!E?this._pendingCalls.add(n):n(Z3(L))}_focus(e){const t=this.animation;e!==t.to&&(LS(this)&&this._detach(),t.to=e,LS(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ta(t)&&(sc(t,this),Fy(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ta(e)&&Ed(e,this)}_set(e,t=!0){const n=Or(e);if(!we.und(n)){const r=ni(this);if(!r||!Pi(n,r.getValue())){const a=My(n);!r||r.constructor!=a?Eb(this,a.create(n)):r.setValue(n),r&&ot.batchedUpdates(()=>{this._onChange(n,t)})}}return ni(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Eu(this,"onStart",Oa(this,yu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),co(this.animation.onChange,e,this)),co(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ni(this).reset(Or(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),bs(this)||(GS(this,!0),gu(this)||this._resume())}_resume(){$a.skipAnimation?this.finish():Em.start(this)}_stop(e,t){if(bs(this)){GS(this,!1);const n=this.animation;xt(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yd(this,{type:"idle",parent:this});const r=t?Gl(this.get()):Oa(this.get(),yu(this,e??n.to));wu(this._pendingCalls,r),n.changed&&(n.changed=!1,Eu(this,"onRest",r,this))}}};function yu(e,t){const n=vd(t),r=vd(e.get());return Pi(r,n)}function tR(e,t=e.loop,n=e.to){const r=co(t);if(r){const a=r!==!0&&W3(r),s=(a||e).reverse,l=!a||a.reset;return _d({...e,loop:t,default:!1,pause:void 0,to:!s||Py(n)?n:void 0,from:l?e.from:void 0,reset:l,...a})}}function _d(e){const{to:t,from:n}=e=W3(e),r=new Set;return we.obj(t)&&qS(t,r),we.obj(n)&&qS(n,r),e.keys=r.size?Array.from(r):null,e}function oU(e){const t=_d(e);return we.und(t.default)&&(t.default=bb(t)),t}function qS(e,t){ci(e,(n,r)=>n!=null&&t.add(r))}var lU=["onStart","onRest","onChange","onPause","onResume"];function YS(e,t,n){e.animation[n]=t[n]!==K3(t,n)?Q3(t[n],e.key):void 0}function Eu(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var cU=["onStart","onChange","onRest"],uU=1,dU=class{constructor(e,t){this.id=uU++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];we.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_d(e)),this}start(e){let{queue:t}=this;return e?t=Jr(e).map(_d):this.queue=[],this._flush?this._flush(this,t):(sR(this,t),Uy(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xt(Jr(t),r=>n[r].stop(!!e))}else Td(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(we.und(e))this.start({pause:!0});else{const t=this.springs;xt(Jr(e),n=>t[n].pause())}return this}resume(e){if(we.und(e))this.start({pause:!1});else{const t=this.springs;xt(Jr(e),n=>t[n].resume())}return this}each(e){ci(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,ju(e,([c,d])=>{d.value=this.get(),c(d,this,this._item)}));const s=!r&&this._started,l=a||s&&n.size?this.get():null;a&&t.size&&ju(t,([c,d])=>{d.value=l,c(d,this,this._item)}),s&&(this._started=!1,ju(n,([c,d])=>{d.value=l,c(d,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;ot.onFrame(this._onFrame)}};function Uy(e,t){return Promise.all(t.map(n=>nR(e,n))).then(n=>vb(e,n))}async function nR(e,t,n){const{keys:r,to:a,from:s,loop:l,onRest:c,onResolve:d}=t,f=we.obj(t.default)&&t.default;l&&(t.loop=!1),a===!1&&(t.to=null),s===!1&&(t.from=null);const p=we.arr(a)||we.fun(a)?a:void 0;p?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):xt(cU,A=>{const C=t[A];if(we.fun(C)){const x=e._events[A];t[A]=({finished:D,cancelled:S})=>{const L=x.get(C);L?(D||(L.finished=!1),S&&(L.cancelled=!0)):x.set(C,{value:null,finished:D||!1,cancelled:S||!1})},f&&(f[A]=t[A])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,wu(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const y=(r||Object.keys(e.springs)).map(A=>e.springs[A].start(t)),E=t.cancel===!0||K3(t,"cancel")===!0;(p||E&&m.asyncId)&&y.push(X3(++e._lastAsyncId,{props:t,state:m,actions:{pause:Oy,resume:Oy,start(A,C){E?(Td(m,e._lastAsyncId),C(Gl(e))):(A.onRest=c,C(J3(p,A,m,e)))}}})),m.paused&&await new Promise(A=>{m.resumeQueue.add(A)});const T=vb(e,await Promise.all(y));if(l&&T.finished&&!(n&&T.noop)){const A=tR(t,l,a);if(A)return sR(e,[A]),nR(e,A,!0)}return d&&ot.batchedUpdates(()=>d(T,e,e.item)),T}function QS(e,t){const n={...e.springs};return t&&xt(Jr(t),r=>{we.und(r.keys)&&(r=_d(r)),we.obj(r.to)||(r={...r,to:void 0}),iR(n,r,a=>aR(a))}),rR(e,n),n}function rR(e,t){ci(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,sc(n,e))})}function aR(e,t){const n=new sU;return n.key=e,t&&sc(n,t),n}function iR(e,t,n){t.keys&&xt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function sR(e,t){xt(t,n=>{iR(e.springs,n,r=>aR(r,e))})}var fU=N.createContext({pause:!1,immediate:!1}),hU=()=>{const e=[],t=function(r){FB();const a=[];return xt(e,(s,l)=>{if(we.und(r))a.push(s.start());else{const c=n(r,s,l);c&&a.push(s.start(c))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return xt(e,r=>r.pause(...arguments)),this},t.resume=function(){return xt(e,r=>r.resume(...arguments)),this},t.set=function(r){xt(e,(a,s)=>{const l=we.fun(r)?r(s,a):r;l&&a.set(l)})},t.start=function(r){const a=[];return xt(e,(s,l)=>{if(we.und(r))a.push(s.start());else{const c=this._getProps(r,s,l);c&&a.push(s.start(c))}}),a},t.stop=function(){return xt(e,r=>r.stop(...arguments)),this},t.update=function(r){return xt(e,(a,s)=>a.update(this._getProps(r,a,s))),this};const n=function(r,a,s){return we.fun(r)?r(s,a):r};return t._getProps=n,t};function pU(e,t,n){const r=we.fun(t)&&t;r&&!n&&(n=[]);const a=N.useMemo(()=>r||arguments.length==3?hU():void 0,[]),s=N.useRef(0),l=H3(),c=N.useMemo(()=>({ctrls:[],queue:[],flush(x,D){const S=QS(x,D);return s.current>0&&!c.queue.length&&!Object.keys(S).some(M=>!x.springs[M])?Uy(x,D):new Promise(M=>{rR(x,S),c.queue.push(()=>{M(Uy(x,D))}),l()})}}),[]),d=N.useRef([...c.ctrls]),f=N.useRef([]),p=PS(e)||0;N.useMemo(()=>{xt(d.current.slice(e,p),x=>{JB(x,a),x.stop(!0)}),d.current.length=e,m(p,e)},[e]),N.useMemo(()=>{m(0,Math.min(p,e))},n);function m(x,D){for(let S=x;S<D;S++){const L=d.current[S]||(d.current[S]=new dU(null,c.flush)),M=r?r(S,L):t[S];M&&(f.current[S]=oU(M))}}const y=d.current.map((x,D)=>QS(x,f.current[D])),E=N.useContext(fU),T=PS(E),A=E!==T&&ZB(E);yb(()=>{s.current++,c.ctrls=d.current;const{queue:x}=c;x.length&&(c.queue=[],xt(x,D=>D())),xt(d.current,(D,S)=>{a?.add(D),A&&D.start({default:E});const L=f.current[S];L&&(eU(D,L.ref),D.ref?D.queue.push(L):D.start(L))})}),z3(()=>()=>{xt(c.ctrls,x=>x.stop(!0))});const C=y.map(x=>({...x}));return a?[C,a]:C}function mU(e,t){const n=we.fun(e),[[r],a]=pU(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var gU=class extends Tb{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=md(...t);const n=this._get(),r=My(n);Eb(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Pi(t,n)||(ni(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&KS(this._active)&&x1(this)}_get(){const e=we.arr(this.source)?this.source.map(Or):Jr(Or(this.source));return this.calc(...e)}_start(){this.idle&&!KS(this._active)&&(this.idle=!1,xt(_m(this),e=>{e.done=!1}),$a.skipAnimation?(ot.batchedUpdates(()=>this.advance()),x1(this)):Em.start(this))}_attach(){let e=1;xt(Jr(this.source),t=>{Ta(t)&&sc(t,this),Fy(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xt(Jr(this.source),e=>{Ta(e)&&Ed(e,this)}),this._active.clear(),x1(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Jr(this.source).reduce((t,n)=>Math.max(t,(Fy(n)?n.priority:0)+1),0))}};function yU(e){return e.idle!==!1}function KS(e){return!e.size||Array.from(e).every(yU)}function x1(e){e.idle||(e.idle=!0,xt(_m(e),t=>{t.done=!0}),yd(e,{type:"idle",parent:e}))}$a.assign({createStringInterpolator:B3,to:(e,t)=>new gU(e,t)});var oR=/^--/;function EU(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!oR.test(e)&&!(Hu.hasOwnProperty(e)&&Hu[e])?t+"px":(""+t).trim()}var WS={};function bU(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:s,scrollTop:l,scrollLeft:c,viewBox:d,...f}=t,p=Object.values(f),m=Object.keys(f).map(y=>n||e.hasAttribute(y)?y:WS[y]||(WS[y]=y.replace(/([A-Z])/g,E=>"-"+E.toLowerCase())));s!==void 0&&(e.textContent=s);for(const y in a)if(a.hasOwnProperty(y)){const E=EU(y,a[y]);oR.test(y)?e.style.setProperty(y,E):e.style[y]=E}m.forEach((y,E)=>{e.setAttribute(y,p[E])}),r!==void 0&&(e.className=r),l!==void 0&&(e.scrollTop=l),c!==void 0&&(e.scrollLeft=c),d!==void 0&&e.setAttribute("viewBox",d)}var Hu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vU=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),TU=["Webkit","Ms","Moz","O"];Hu=Object.keys(Hu).reduce((e,t)=>(TU.forEach(n=>e[vU(n,t)]=e[t]),e),Hu);var _U=/^(matrix|translate|scale|rotate|skew)/,xU=/^(translate)/,AU=/^(rotate|skew)/,A1=(e,t)=>we.num(e)&&e!==0?e+t:e,Yh=(e,t)=>we.arr(e)?e.every(n=>Yh(n,t)):we.num(e)?e===t:parseFloat(e)===t,SU=class extends Am{constructor({x:e,y:t,z:n,...r}){const a=[],s=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),s.push(l=>[`translate3d(${l.map(c=>A1(c,"px")).join(",")})`,Yh(l,0)])),ci(r,(l,c)=>{if(c==="transform")a.push([l||""]),s.push(d=>[d,d===""]);else if(_U.test(c)){if(delete r[c],we.und(l))return;const d=xU.test(c)?"px":AU.test(c)?"deg":"";a.push(Jr(l)),s.push(c==="rotate3d"?([f,p,m,y])=>[`rotate3d(${f},${p},${m},${A1(y,d)})`,Yh(y,0)]:f=>[`${c}(${f.map(p=>A1(p,d)).join(",")})`,Yh(f,c.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new CU(a,s)),super(r)}},CU=class extends $3{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return xt(this.inputs,(n,r)=>{const a=Or(n[0]),[s,l]=this.transforms[r](we.arr(a)?a:n.map(Or));e+=" "+s,t=t&&l}),t?"none":e}observerAdded(e){e==1&&xt(this.inputs,t=>xt(t,n=>Ta(n)&&sc(n,this)))}observerRemoved(e){e==0&&xt(this.inputs,t=>xt(t,n=>Ta(n)&&Ed(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),yd(this,e)}},DU=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];$a.assign({batchedUpdates:$2.unstable_batchedUpdates,createStringInterpolator:B3,colors:gB});var kU=YB(DU,{applyAnimatedValues:bU,createAnimatedStyle:e=>new SU(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),RU=kU.animated;const IU=Jt(b.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),wU=Jt(b.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function NU(){const e=d4(PE);return e[$E]||e}function XS(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function OU(e){return Ps("MuiCollapse",e)}$s("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function fr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Hy(e,t){return Hy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Hy(e,t)}function lR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hy(e,t)}const ZS={disabled:!1},wp=Ne.createContext(null);var LU=function(e){return e.scrollTop},Nu="unmounted",io="exited",so="entering",Ol="entered",zy="exiting",Vi=function(e){lR(t,e);function t(r,a){var s;s=e.call(this,r,a)||this;var l=a,c=l&&!l.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?c?(d=io,s.appearStatus=so):d=Ol:r.unmountOnExit||r.mountOnEnter?d=Nu:d=io,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,a){var s=r.in;return s&&a.status===Nu?{status:io}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==so&&s!==Ol&&(a=so):(s===so||s===Ol)&&(a=zy)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,s,l;return a=s=l=r,r!=null&&typeof r!="number"&&(a=r.exit,s=r.enter,l=r.appear!==void 0?r.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===so){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:dh.findDOMNode(this);s&&LU(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===io&&this.setState({status:Nu})},n.performEnter=function(r){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[dh.findDOMNode(this),l],d=c[0],f=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!r&&!s||ZS.disabled){this.safeSetState({status:Ol},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:so},function(){a.props.onEntering(d,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Ol},function(){a.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:dh.findDOMNode(this);if(!a||ZS.disabled){this.safeSetState({status:io},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:zy},function(){r.props.onExiting(l),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:io},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},n.setNextCallback=function(r){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,r(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(r,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:dh.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Nu)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=fr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ne.createElement(wp.Provider,{value:null},typeof s=="function"?s(r,l):Ne.cloneElement(Ne.Children.only(s),l))},t}(Ne.Component);Vi.contextType=wp;Vi.propTypes={};function Dl(){}Vi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dl,onEntering:Dl,onEntered:Dl,onExit:Dl,onExiting:Dl,onExited:Dl};Vi.UNMOUNTED=Nu;Vi.EXITED=io;Vi.ENTERING=so;Vi.ENTERED=Ol;Vi.EXITING=zy;const JS={};function cR(e,t){const n=N.useRef(JS);return n.current===JS&&(n.current=e(t)),n}const MU=[];function PU(e){N.useEffect(e,MU)}let $U=class uR{static create(){return new uR}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function dR(){const e=cR($U.create).current;return PU(e.disposeEffect),e}const FU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Po(r,OU,n)},jU=sn("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(CE(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),BU=sn("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),UU=sn("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xd=N.forwardRef(function(e,t){const n=ec({props:e,name:"MuiCollapse"}),{addEndListener:r,children:a,className:s,collapsedSize:l="0px",component:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:y,onExit:E,onExited:T,onExiting:A,orientation:C="vertical",style:x,timeout:D=vD.standard,TransitionComponent:S=Vi,...L}=n,M={...n,orientation:C,collapsedSize:l},I=FU(M),V=NU(),ne=dR(),K=N.useRef(null),k=N.useRef(),H=typeof l=="number"?`${l}px`:l,Q=C==="horizontal",W=Q?"width":"height",re=N.useRef(null),me=li(t,re),G=te=>Ce=>{if(te){const Ie=re.current;Ce===void 0?te(Ie):te(Ie,Ce)}},le=()=>K.current?K.current[Q?"clientWidth":"clientHeight"]:0,oe=G((te,Ce)=>{K.current&&Q&&(K.current.style.position="absolute"),te.style[W]=H,p&&p(te,Ce)}),ye=G((te,Ce)=>{const Ie=le();K.current&&Q&&(K.current.style.position="");const{duration:Me,easing:Le}=XS({style:x,timeout:D,easing:d},{mode:"enter"});if(D==="auto"){const st=V.transitions.getAutoHeightDuration(Ie);te.style.transitionDuration=`${st}ms`,k.current=st}else te.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;te.style[W]=`${Ie}px`,te.style.transitionTimingFunction=Le,y&&y(te,Ce)}),P=G((te,Ce)=>{te.style[W]="auto",m&&m(te,Ce)}),Oe=G(te=>{te.style[W]=`${le()}px`,E&&E(te)}),ce=G(T),w=G(te=>{const Ce=le(),{duration:Ie,easing:Me}=XS({style:x,timeout:D,easing:d},{mode:"exit"});if(D==="auto"){const Le=V.transitions.getAutoHeightDuration(Ce);te.style.transitionDuration=`${Le}ms`,k.current=Le}else te.style.transitionDuration=typeof Ie=="string"?Ie:`${Ie}ms`;te.style[W]=H,te.style.transitionTimingFunction=Me,A&&A(te)});return b.jsx(S,{in:f,onEnter:oe,onEntered:P,onEntering:ye,onExit:Oe,onExited:ce,onExiting:w,addEndListener:te=>{D==="auto"&&ne.start(k.current||0,te),r&&r(re.current,te)},nodeRef:re,timeout:D==="auto"?null:D,...L,children:(te,{ownerState:Ce,...Ie})=>b.jsx(jU,{as:c,className:$n(I.root,s,{entered:I.entered,exited:!f&&H==="0px"&&I.hidden}[te]),style:{[Q?"minWidth":"minHeight"]:H,...x},ref:me,ownerState:{...M,state:te},...Ie,children:b.jsx(BU,{ownerState:{...M,state:te},className:I.wrapper,ref:K,children:b.jsx(UU,{ownerState:{...M,state:te},className:I.wrapperInner,children:a})})})})});xd&&(xd.muiSupportAuto=!0);function Sm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S1={exports:{}},C1,eC;function HU(){if(eC)return C1;eC=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return C1=e,C1}var D1,tC;function zU(){if(tC)return D1;tC=1;var e=HU();function t(){}function n(){}return n.resetWarningCache=t,D1=function(){function r(l,c,d,f,p,m){if(m!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},D1}var nC;function GU(){return nC||(nC=1,S1.exports=zU()()),S1.exports}var VU=GU();const rC=Sm(VU);function _b(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=Fo();return r({children:t,itemId:n,instance:a})}_b.propTypes={children:rC.node,itemId:rC.string.isRequired};const qU=N.createContext(void 0);function YU(){return N.useContext(qU)}function QU(e){return Ps("PrivateSwitchBase",e)}$s("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function ri(e,t,n){return typeof e=="function"?e(t,n):e}function aC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function fR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:s}=e;if(!t){const E=$n(n?.className,s,a?.className,r?.className),T={...n?.style,...a?.style,...r?.style},A={...n,...a,...r};return E.length>0&&(A.className=E),Object.keys(T).length>0&&(A.style=T),{props:A,internalRef:void 0}}const l=ga({...a,...r}),c=aC(r),d=aC(a),f=t(l),p=$n(f?.className,n?.className,s,a?.className,r?.className),m={...f?.style,...n?.style,...a?.style,...r?.style},y={...f,...n,...d,...c};return p.length>0&&(y.className=p),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}function KU(e){return typeof e=="string"}function hR(e,t,n){return e===void 0||KU(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Gy(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:s,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...y}=s,E=p[e]||r,T=ri(m[e],a),{props:{component:A,...C},internalRef:x}=fR({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:T}),D=li(x,T?.ref,t.ref),S=e==="root"?A||f:A,L=hR(E,{...e==="root"&&!f&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...C,...S&&!c&&{as:S},...S&&c&&{component:S},ref:D},a);return[E,L]}function WU(e){const{controlled:t,default:n}=e,{current:r}=N.useRef(t!==void 0),[a,s]=N.useState(n),l=r?t:a,c=N.useCallback(d=>{r||s(d)},[]);return[l,c]}function XU(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:s,rippleSize:l,in:c,onExited:d,timeout:f}=e,[p,m]=N.useState(!1),y=$n(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),E={width:l,height:l,top:-(l/2)+s,left:-(l/2)+a},T=$n(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&m(!0),N.useEffect(()=>{if(!c&&d!=null){const A=setTimeout(d,f);return()=>{clearTimeout(A)}}},[d,c,f]),b.jsx("span",{className:y,style:E,children:b.jsx("span",{className:T})})}const ba=$s("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function ZU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xb(e,t){var n=function(a){return t&&N.isValidElement(a)?t(a):a},r=Object.create(null);return e&&N.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function JU(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),a=[];for(var s in e)s in t?a.length&&(r[s]=a,a=[]):a.push(s);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var f=r[d][l];c[r[d][l]]=n(f)}c[d]=n(d)}for(l=0;l<a.length;l++)c[a[l]]=n(a[l]);return c}function go(e,t,n){return n[t]!=null?n[t]:e.props[t]}function eH(e,t){return xb(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:go(n,"appear",e),enter:go(n,"enter",e),exit:go(n,"exit",e)})})}function tH(e,t,n){var r=xb(e.children),a=JU(t,r);return Object.keys(a).forEach(function(s){var l=a[s];if(N.isValidElement(l)){var c=s in t,d=s in r,f=t[s],p=N.isValidElement(f)&&!f.props.in;d&&(!c||p)?a[s]=N.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:go(l,"exit",e),enter:go(l,"enter",e)}):!d&&c&&!p?a[s]=N.cloneElement(l,{in:!1}):d&&c&&N.isValidElement(f)&&(a[s]=N.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:go(l,"exit",e),enter:go(l,"enter",e)}))}}),a}var nH=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rH={component:"div",childFactory:function(e){return e}},Ab=function(e){lR(t,e);function t(r,a){var s;s=e.call(this,r,a)||this;var l=s.handleExited.bind(ZU(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,a){var s=a.children,l=a.handleExited,c=a.firstRender;return{children:c?eH(r,l):tH(r,s,l),firstRender:!1}},n.handleExited=function(r,a){var s=xb(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(l){var c=Ae({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,s=r.childFactory,l=fr(r,["component","childFactory"]),c=this.state.contextValue,d=nH(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?Ne.createElement(wp.Provider,{value:c},d):Ne.createElement(wp.Provider,{value:c},Ne.createElement(a,l,d))},t}(Ne.Component);Ab.propTypes={};Ab.defaultProps=rH;const Vy=550,aH=80,iH=hE`
88
- 0% {
89
- transform: scale(0);
90
- opacity: 0.1;
91
- }
92
-
93
- 100% {
94
- transform: scale(1);
95
- opacity: 0.3;
96
- }
97
- `,sH=hE`
98
- 0% {
99
- opacity: 1;
100
- }
101
-
102
- 100% {
103
- opacity: 0;
104
- }
105
- `,oH=hE`
106
- 0% {
107
- transform: scale(1);
108
- }
109
-
110
- 50% {
111
- transform: scale(0.92);
112
- }
113
-
114
- 100% {
115
- transform: scale(1);
116
- }
117
- `,lH=sn("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cH=sn(XU,{name:"MuiTouchRipple",slot:"Ripple"})`
118
- opacity: 0;
119
- position: absolute;
120
-
121
- &.${ba.rippleVisible} {
122
- opacity: 0.3;
123
- transform: scale(1);
124
- animation-name: ${iH};
125
- animation-duration: ${Vy}ms;
126
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
127
- }
128
-
129
- &.${ba.ripplePulsate} {
130
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
131
- }
132
-
133
- & .${ba.child} {
134
- opacity: 1;
135
- display: block;
136
- width: 100%;
137
- height: 100%;
138
- border-radius: 50%;
139
- background-color: currentColor;
140
- }
141
-
142
- & .${ba.childLeaving} {
143
- opacity: 0;
144
- animation-name: ${sH};
145
- animation-duration: ${Vy}ms;
146
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
147
- }
148
-
149
- & .${ba.childPulsate} {
150
- position: absolute;
151
- /* @noflip */
152
- left: 0px;
153
- top: 0;
154
- animation-name: ${oH};
155
- animation-duration: 2500ms;
156
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
157
- animation-iteration-count: infinite;
158
- animation-delay: 200ms;
159
- }
160
- `,uH=N.forwardRef(function(e,t){const n=ec({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:s,...l}=n,[c,d]=N.useState([]),f=N.useRef(0),p=N.useRef(null);N.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=N.useRef(!1),y=dR(),E=N.useRef(null),T=N.useRef(null),A=N.useCallback(S=>{const{pulsate:L,rippleX:M,rippleY:I,rippleSize:V,cb:ne}=S;d(K=>[...K,b.jsx(cH,{classes:{ripple:$n(a.ripple,ba.ripple),rippleVisible:$n(a.rippleVisible,ba.rippleVisible),ripplePulsate:$n(a.ripplePulsate,ba.ripplePulsate),child:$n(a.child,ba.child),childLeaving:$n(a.childLeaving,ba.childLeaving),childPulsate:$n(a.childPulsate,ba.childPulsate)},timeout:Vy,pulsate:L,rippleX:M,rippleY:I,rippleSize:V},f.current)]),f.current+=1,p.current=ne},[a]),C=N.useCallback((S={},L={},M=()=>{})=>{const{pulsate:I=!1,center:V=r||L.pulsate,fakeElement:ne=!1}=L;if(S?.type==="mousedown"&&m.current){m.current=!1;return}S?.type==="touchstart"&&(m.current=!0);const K=ne?null:T.current,k=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,Q,W;if(V||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)H=Math.round(k.width/2),Q=Math.round(k.height/2);else{const{clientX:re,clientY:me}=S.touches&&S.touches.length>0?S.touches[0]:S;H=Math.round(re-k.left),Q=Math.round(me-k.top)}if(V)W=Math.sqrt((2*k.width**2+k.height**2)/3),W%2===0&&(W+=1);else{const re=Math.max(Math.abs((K?K.clientWidth:0)-H),H)*2+2,me=Math.max(Math.abs((K?K.clientHeight:0)-Q),Q)*2+2;W=Math.sqrt(re**2+me**2)}S?.touches?E.current===null&&(E.current=()=>{A({pulsate:I,rippleX:H,rippleY:Q,rippleSize:W,cb:M})},y.start(aH,()=>{E.current&&(E.current(),E.current=null)})):A({pulsate:I,rippleX:H,rippleY:Q,rippleSize:W,cb:M})},[r,A,y]),x=N.useCallback(()=>{C({},{pulsate:!0})},[C]),D=N.useCallback((S,L)=>{if(y.clear(),S?.type==="touchend"&&E.current){E.current(),E.current=null,y.start(0,()=>{D(S,L)});return}E.current=null,d(M=>M.length>0?M.slice(1):M),p.current=L},[y]);return N.useImperativeHandle(t,()=>({pulsate:x,start:C,stop:D}),[x,C,D]),b.jsx(lH,{className:$n(ba.root,a.root,s),ref:T,...l,children:b.jsx(Ab,{component:null,exit:!0,children:c})})});function dH(e){return Ps("MuiButtonBase",e)}const fH=$s("MuiButtonBase",["root","disabled","focusVisible"]);let hH=class qy{static create(){return new qy}static use(){const t=cR(qy.create).current,[n,r]=N.useState(!1);return t.shouldMount=n,t.setShouldMount=r,N.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=mH(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function pH(){return hH.use()}function mH(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}const gH=typeof window<"u"?N.useLayoutEffect:N.useEffect;function oi(e){const t=N.useRef(e);return gH(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function iC(e){try{return e.matches(":focus-visible")}catch{}return!1}const yH=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,s=Po({root:["root",t&&"disabled",n&&"focusVisible"]},dH,a);return n&&r&&(s.root+=` ${r}`),s},EH=sn("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),bH=N.forwardRef(function(e,t){const n=ec({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:s,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:E="a",onBlur:T,onClick:A,onContextMenu:C,onDragLeave:x,onFocus:D,onFocusVisible:S,onKeyDown:L,onKeyUp:M,onMouseDown:I,onMouseLeave:V,onMouseUp:ne,onTouchEnd:K,onTouchMove:k,onTouchStart:H,tabIndex:Q=0,TouchRippleProps:W,touchRippleRef:re,type:me,...G}=n,le=N.useRef(null),oe=pH(),ye=li(oe.ref,re),[P,Oe]=N.useState(!1);d&&P&&Oe(!1),N.useImperativeHandle(r,()=>({focusVisible:()=>{Oe(!0),le.current.focus()}}),[]);const ce=oe.shouldMount&&!f&&!d;N.useEffect(()=>{P&&m&&!f&&oe.pulsate()},[f,m,P,oe]);const w=Oi(oe,"start",I,p),te=Oi(oe,"stop",C,p),Ce=Oi(oe,"stop",x,p),Ie=Oi(oe,"stop",ne,p),Me=Oi(oe,"stop",Ye=>{P&&Ye.preventDefault(),V&&V(Ye)},p),Le=Oi(oe,"start",H,p),st=Oi(oe,"stop",K,p),dt=Oi(oe,"stop",k,p),Ue=Oi(oe,"stop",Ye=>{iC(Ye.target)||Oe(!1),T&&T(Ye)},!1),en=oi(Ye=>{le.current||(le.current=Ye.currentTarget),iC(Ye.target)&&(Oe(!0),S&&S(Ye)),D&&D(Ye)}),wt=()=>{const Ye=le.current;return c&&c!=="button"&&!(Ye.tagName==="A"&&Ye.href)},$e=oi(Ye=>{m&&!Ye.repeat&&P&&Ye.key===" "&&oe.stop(Ye,()=>{oe.start(Ye)}),Ye.target===Ye.currentTarget&&wt()&&Ye.key===" "&&Ye.preventDefault(),L&&L(Ye),Ye.target===Ye.currentTarget&&wt()&&Ye.key==="Enter"&&!d&&(Ye.preventDefault(),A&&A(Ye))}),sr=oi(Ye=>{m&&Ye.key===" "&&P&&!Ye.defaultPrevented&&oe.stop(Ye,()=>{oe.pulsate(Ye)}),M&&M(Ye),A&&Ye.target===Ye.currentTarget&&wt()&&Ye.key===" "&&!Ye.defaultPrevented&&A(Ye)});let fn=c;fn==="button"&&(G.href||G.to)&&(fn=E);const Ve={};fn==="button"?(Ve.type=me===void 0?"button":me,Ve.disabled=d):(!G.href&&!G.to&&(Ve.role="button"),d&&(Ve["aria-disabled"]=d));const Zn=li(t,le),an={...n,centerRipple:a,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:Q,focusVisible:P},on=yH(an);return b.jsxs(EH,{as:fn,className:$n(on.root,l),ownerState:an,onBlur:Ue,onClick:A,onContextMenu:te,onFocus:en,onKeyDown:$e,onKeyUp:sr,onMouseDown:w,onMouseLeave:Me,onMouseUp:Ie,onDragLeave:Ce,onTouchEnd:st,onTouchMove:dt,onTouchStart:Le,ref:Zn,tabIndex:d?-1:Q,type:me,...Ve,...G,children:[s,ce?b.jsx(uH,{ref:ye,center:a,...W}):null]})});function Oi(e,t,n,r=!1){return oi(a=>(n&&n(a),r||e[t](a),!0))}const vH=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,s={root:["root",n&&"checked",r&&"disabled",a&&`edge${Pa(a)}`],input:["input"]};return Po(s,QU,t)},TH=sn(bH,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),_H=sn("input",{name:"MuiSwitchBase",shouldForwardProp:FE})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),xH=N.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:y,name:E,onBlur:T,onChange:A,onFocus:C,readOnly:x,required:D=!1,tabIndex:S,type:L,value:M,slots:I={},slotProps:V={},...ne}=e,[K,k]=WU({controlled:r,default:!!s}),H=YU(),Q=te=>{C&&C(te),H&&H.onFocus&&H.onFocus(te)},W=te=>{T&&T(te),H&&H.onBlur&&H.onBlur(te)},re=te=>{if(te.nativeEvent.defaultPrevented)return;const Ce=te.target.checked;k(Ce),A&&A(te,Ce)};let me=l;H&&typeof me>"u"&&(me=H.disabled);const G=L==="checkbox"||L==="radio",le={...e,checked:K,disabled:me,disableFocusRipple:c,edge:d},oe=vH(le),ye={slots:I,slotProps:{input:m,...V}},[P,Oe]=Gy("root",{ref:t,elementType:TH,className:oe.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,component:"span",...ne},getSlotProps:te=>({...te,onFocus:Ce=>{te.onFocus?.(Ce),Q(Ce)},onBlur:Ce=>{te.onBlur?.(Ce),W(Ce)}}),ownerState:le,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:me,role:void 0,tabIndex:null}}),[ce,w]=Gy("input",{ref:y,elementType:_H,className:oe.input,externalForwardedProps:ye,getSlotProps:te=>({...te,onChange:Ce=>{te.onChange?.(Ce),re(Ce)}}),ownerState:le,additionalProps:{autoFocus:n,checked:r,defaultChecked:s,disabled:me,id:G?p:void 0,name:E,readOnly:x,required:D,tabIndex:S,type:L,...L==="checkbox"&&M===void 0?{}:{value:M}}});return b.jsxs(P,{...Oe,children:[b.jsx(ce,{...w}),K?a:f]})}),AH=Jt(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),SH=Jt(b.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),CH=Jt(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function DH(e){return Ps("MuiCheckbox",e)}const k1=$s("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function kH(e){return typeof e.main=="string"}function RH(e,t=[]){if(!kH(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function sC(e=[]){return([,t])=>t&&RH(t,e)}function IH(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function wH(e,t){if(!e)return t;function n(l,c){const d={};return Object.keys(c).forEach(f=>{IH(f,c[f])&&typeof l[f]=="function"&&(d[f]=(...p)=>{l[f](...p),c[f](...p)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,f=$n(l?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!f&&{className:f},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,a=n(e,r),s=$n(r?.className,e?.className);return{...t,...e,...a,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const NH=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,s={root:["root",n&&"indeterminate",`color${Pa(r)}`,`size${Pa(a)}`]},l=Po(s,DH,t);return{...t,...l}},OH=sn(xH,{shouldForwardProp:e=>FE(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Pa(n.size)}`],n.color!=="default"&&t[`color${Pa(n.color)}`]]}})(CE(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:iy(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(sC()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:iy(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(sC()).map(([t])=>({props:{color:t},style:{[`&.${k1.checked}, &.${k1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${k1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),LH=b.jsx(SH,{}),MH=b.jsx(AH,{}),PH=b.jsx(CH,{}),pR=N.forwardRef(function(e,t){const n=ec({props:e,name:"MuiCheckbox"}),{checkedIcon:r=LH,color:a="primary",icon:s=MH,indeterminate:l=!1,indeterminateIcon:c=PH,inputProps:d,size:f="medium",disableRipple:p=!1,className:m,slots:y={},slotProps:E={},...T}=n,A=l?c:s,C=l?c:r,x={...n,disableRipple:p,color:a,indeterminate:l,size:f},D=NH(x),S=E.input??d,[L,M]=Gy("root",{ref:t,elementType:OH,className:$n(D.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:E,...T},ownerState:x,additionalProps:{type:"checkbox",icon:N.cloneElement(A,{fontSize:A.props.fontSize??f}),checkedIcon:N.cloneElement(C,{fontSize:C.props.fontSize??f}),disableRipple:p,slots:y,slotProps:{input:wH(typeof S=="function"?S(x):S,{"data-indeterminate":l})}}});return b.jsx(L,{...M,classes:D})}),$H=["visible"],FH=sn("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),jH=sn("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Rs(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ji(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ji(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ji(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ji(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),BH=sn("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Rs(e)&&e!=="editable"})(({theme:e})=>Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),UH=sn("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});sn(xd,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Rs(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});sn(N.forwardRef((e,t)=>{const{visible:n}=e,r=fr(e,$H);return n?b.jsx(pR,Ae({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function yo(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...s}=e,l=a?{}:ri(n,r),{props:c,internalRef:d}=fR({...s,externalSlotProps:l}),f=li(d,l?.ref,e.additionalProps?.ref);return hR(t,{...c,ref:f},r)}const mR=Jt(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),gR=Jt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function HH(e){const{slots:t,slotProps:n,status:r}=e,a=Fo(),s=Ae({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??mR,collapseIcon:a.icons.slots.collapseIcon??gR}),l=a.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const d=t?.[c]??s[c],f=yo({elementType:d,externalSlotProps:p=>Ae({},ri(l[c],p),ri(n?.[c],p)),ownerState:{}});return d?b.jsx(d,Ae({},f)):null}function zH(e){return Ps("MuiRichTreeView",e)}$s("MuiRichTreeView",["root"]);function GH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:lp(t.components[n].defaultProps,r)}function VH(e){return Object.keys(e).length===0}function qH(e=null){const t=N.useContext(f4);return!t||VH(t)?e:t}const YH=ME();function QH(e=YH){return qH(e)}function KH({props:e,name:t,defaultTheme:n,themeId:r}){let a=QH(n);return a=a[r]||a,GH({theme:a,name:t,props:e})}function WH({props:e,name:t}){return KH({props:e,name:t,defaultTheme:PE,themeId:$E})}function yR(e){return WH}const XH=(e,t,n)=>{e.$$publishEvent(t,n)},$l="__TREE_VIEW_ROOT_PARENT_ID__",ZH=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},JH=["children"],ER=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},s={},l={[$l]:[]},c=(f,p,m)=>{const y=r?r(f):f.id;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(f)].join(`
161
- `));if(a[y]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${y}"`].join(`
162
- `));const E=n?n(f):f.label;if(E==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(f)].join(`
163
- `));a[y]={id:y,label:E,parentId:m,idAttribute:void 0,expandable:!!f.children?.length,disabled:t?t(f):!1,depth:p},s[y]=f;const T=m??$l;l[T]||(l[T]=[]),l[T].push(y),f.children?.forEach(A=>c(A,p+1,y))};e.forEach(f=>c(f,0,null));const d={};return Object.keys(l).forEach(f=>{d[f]=ZH(l[f])}),{itemMetaMap:a,itemMap:s,itemOrderedChildrenIds:l,itemChildrenIndexes:d}},qd=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const s=N.useCallback(C=>n.items.itemMetaMap[C],[n.items.itemMetaMap]),l=N.useCallback(C=>n.items.itemMap[C],[n.items.itemMap]),c=N.useCallback(()=>{const C=x=>{const D=n.items.itemMap[x],S=fr(D,JH),L=n.items.itemOrderedChildrenIds[x];return L&&(S.children=L.map(C)),S};return n.items.itemOrderedChildrenIds[$l].map(C)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),d=N.useCallback(C=>{if(C==null)return!1;let x=e.getItemMeta(C);if(!x)return!1;if(x.disabled)return!0;for(;x.parentId!=null;)if(x=e.getItemMeta(x.parentId),x.disabled)return!0;return!1},[e]),f=N.useCallback(C=>{const x=e.getItemMeta(C).parentId??$l;return n.items.itemChildrenIndexes[x][C]},[e,n.items.itemChildrenIndexes]),p=N.useCallback(C=>n.items.itemOrderedChildrenIds[C??$l]??[],[n.items.itemOrderedChildrenIds]),m=C=>{const x=e.getItemMeta(C);return x==null?null:document.getElementById(sb({treeId:n.id.treeId,itemId:C,id:x.idAttribute}))},y=C=>t.disabledItemsFocusable?!0:!e.isItemDisabled(C),E=N.useRef(!1),T=N.useCallback(()=>{E.current=!0},[]),A=N.useCallback(()=>E.current,[]);return N.useEffect(()=>{e.areItemUpdatesPrevented()||r(C=>{const x=ER({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(C.items.itemMetaMap).forEach(D=>{x.itemMetaMap[D.id]||XH(e,"removeItem",{id:D.id})}),Ae({},C,{items:x})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:l,getItemDOMElement:m,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:s,getItem:l,getItemTree:c,getItemsToRender:()=>{const C=x=>{const D=n.items.itemMetaMap[x];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[x]?.map(C)}};return n.items.itemOrderedChildrenIds[$l].map(C)},getItemIndex:f,getItemDOMElement:m,getItemOrderedChildrenIds:p,isItemDisabled:d,isItemNavigable:y,preventItemUpdates:T,areItemUpdatesPrevented:A},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};qd.getInitialState=e=>({items:ER({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});qd.getDefaultizedParams=({params:e})=>Ae({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});qd.wrapRoot=({children:e,instance:t})=>b.jsx(ob.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});qd.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Cm=({instance:e,params:t,models:n})=>{const r=N.useMemo(()=>{const m=new Map;return n.expandedItems.value.forEach(y=>{m.set(y,!0)}),m},[n.expandedItems.value]),a=(m,y)=>{t.onExpandedItemsChange?.(m,y),n.expandedItems.setControlledValue(y)},s=N.useCallback(m=>r.has(m),[r]),l=N.useCallback(m=>!!e.getItemMeta(m)?.expandable,[e]),c=oi((m,y)=>{const E=e.isItemExpanded(y);e.setItemExpansion(m,y,!E)}),d=oi((m,y,E)=>{if(e.isItemExpanded(y)===E)return;let T;E?T=[y].concat(n.expandedItems.value):T=n.expandedItems.value.filter(A=>A!==y),t.onItemExpansionToggle&&t.onItemExpansionToggle(m,y,E),a(m,T)}),f=(m,y)=>{const E=e.getItemMeta(y),T=e.getItemOrderedChildrenIds(E.parentId).filter(C=>e.isItemExpandable(C)&&!e.isItemExpanded(C)),A=n.expandedItems.value.concat(T);T.length>0&&(t.onItemExpansionToggle&&T.forEach(C=>{t.onItemExpansionToggle(m,C,!0)}),a(m,A))},p=N.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:d},instance:{isItemExpanded:s,isItemExpandable:l,setItemExpansion:d,toggleItemExpansion:c,expandAllSiblings:f},contextValue:{expansion:{expansionTrigger:p}}}};Cm.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const ez=[];Cm.getDefaultizedParams=({params:e})=>Ae({},e,{defaultExpandedItems:e.defaultExpandedItems??ez});Cm.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Qh=e=>Array.isArray(e)?e:e!=null?[e]:[],R1=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},Dm=({instance:e,params:t,models:n})=>{const r=N.useRef(null),a=N.useRef({}),s=N.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(m=>{p.set(m,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),l=(p,m)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const y=m.filter(T=>!e.isItemSelected(T)),E=n.selectedItems.value.filter(T=>!m.includes(T));y.forEach(T=>{t.onItemSelectionToggle(p,T,!0)}),E.forEach(T=>{t.onItemSelectionToggle(p,T,!1)})}else m!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),m!=null&&t.onItemSelectionToggle(p,m,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,m),n.selectedItems.setControlledValue(m)},c=p=>s.has(p),d=({event:p,itemId:m,keepExistingSelection:y=!1,shouldBeSelected:E})=>{if(t.disableSelection)return;let T;if(y){const A=Qh(n.selectedItems.value),C=e.isItemSelected(m);C&&(E===!1||E==null)?T=A.filter(x=>x!==m):!C&&(E===!0||E==null)?T=[m].concat(A):T=A}else E===!1||E==null&&e.isItemSelected(m)?T=t.multiSelect?[]:null:T=t.multiSelect?[m]:m;l(p,T),r.current=m,a.current={}},f=(p,[m,y])=>{if(t.disableSelection||!t.multiSelect)return;let E=Qh(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(E=E.filter(x=>!a.current[x]));const T=R1(E),A=eB(e,m,y),C=A.filter(x=>!T[x]);E=E.concat(C),l(p,E),a.current=R1(A)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:d},instance:{isItemSelected:c,selectItem:d,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const m=tB(e);l(p,m),a.current=R1(m)},expandSelectionRange:(p,m)=>{if(r.current!=null){const[y,E]=S3(e,m,r.current);f(p,[y,E])}},selectRangeFromStartToItem:(p,m)=>{f(p,[hd(e),m])},selectRangeFromItemToEnd:(p,m)=>{f(p,[m,A3(e)])},selectItemFromArrowNavigation:(p,m,y)=>{if(t.disableSelection||!t.multiSelect)return;let E=Qh(n.selectedItems.value).slice();Object.keys(a.current).length===0?(E.push(y),a.current={[m]:!0,[y]:!0}):(a.current[m]||(a.current={}),a.current[y]?(E=E.filter(T=>T!==m),delete a.current[m]):(E.push(y),a.current[y]=!0)),l(p,E)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};Dm.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const tz=[];Dm.getDefaultizedParams=({params:e})=>Ae({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?tz:null)});Dm.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let nz=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},rz=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},az=class{};function iz(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new rz:new nz);const[s]=N.useState(new az),l=N.useRef(null),c=N.useRef(void 0);c.current=a;const d=N.useRef(null);if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f),t+=1,d.current={cleanupToken:t},e.registry.register(s,()=>{l.current?.(),l.current=null,d.current=null},d.current)}else!c.current&&l.current&&(l.current(),l.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));N.useEffect(()=>{if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}const sz={registry:null},oz=iz(sz),bR=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?bR(t.shadowRoot):t:null};function lz(e){return e&&e.ownerDocument||document}const cz=(e,t)=>{let n=Qh(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=hd(e)),n},Sb=({instance:e,params:t,state:n,setState:r,models:a,rootRef:s})=>{const l=cz(e,a.selectedItems.value),c=oi(C=>{const x=typeof C=="function"?C(n.focusedItemId):C;n.focusedItemId!==x&&r(D=>Ae({},D,{focusedItemId:x}))}),d=N.useCallback(()=>!!s.current&&s.current.contains(bR(lz(s.current))),[s]),f=N.useCallback(C=>n.focusedItemId===C&&d(),[n.focusedItemId,d]),p=C=>{const x=e.getItemMeta(C);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},m=(C,x)=>{const D=e.getItemDOMElement(x);D&&D.focus(),c(x),t.onItemFocus&&t.onItemFocus(C,x)},y=oi((C,x)=>{p(x)&&m(C,x)}),E=oi(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const C=e.getItemDOMElement(n.focusedItemId);C&&C.blur()}c(null)}}),T=C=>C===l;oz(e,"removeItem",({id:C})=>{n.focusedItemId===C&&m(null,l)});const A=C=>x=>{C.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&m(x,l)};return{getRootProps:C=>({onFocus:A(C)}),publicAPI:{focusItem:y},instance:{isItemFocused:f,canItemBeTabbed:T,focusItem:y,removeFocusedItem:E}}};Sb.getInitialState=()=>({focusedItemId:null});Sb.params={onItemFocus:!0};const uz=N.createContext(),dz=()=>N.useContext(uz)??!1;function fz(e){return!!e&&e.length===1&&!!e.match(/\S/)}const vR=({instance:e,params:t,state:n})=>{const r=dz(),a=N.useRef({}),s=oi(f=>{a.current=f(a.current)});N.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=m=>{f[m.id]=m.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=f},[n.items.itemMetaMap,t.getItemId,e]);const l=(f,p)=>{const m=p.toLowerCase(),y=C=>{const x=Vh(e,C);return x===null?hd(e):x};let E=null,T=y(f);const A={};for(;E==null&&!A[T];)a.current[T]===m?E=T:(A[T]=!0,T=y(T));return E},c=f=>!t.disableSelection&&!e.isItemDisabled(f),d=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);return{instance:{updateFirstCharMap:s,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||pd(f.target,f.currentTarget))return;const m=f.ctrlKey||f.metaKey,y=f.key;switch(!0){case(y===" "&&c(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.expandSelectionRange(f,p):e.selectItem({event:f,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case y==="Enter":{_o(e,Sa)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):d(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):c(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem({event:f,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:f,itemId:p}),f.preventDefault()));break}case y==="ArrowDown":{const E=Vh(e,p);E&&(f.preventDefault(),e.focusItem(f,E),t.multiSelect&&f.shiftKey&&c(E)&&e.selectItemFromArrowNavigation(f,p,E));break}case y==="ArrowUp":{const E=x3(e,p);E&&(f.preventDefault(),e.focusItem(f,E),t.multiSelect&&f.shiftKey&&c(E)&&e.selectItemFromArrowNavigation(f,p,E));break}case(y==="ArrowRight"&&!r||y==="ArrowLeft"&&r):{if(m)return;if(e.isItemExpanded(p)){const E=Vh(e,p);E&&(e.focusItem(f,E),f.preventDefault())}else d(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(y==="ArrowLeft"&&!r||y==="ArrowRight"&&r):{if(m)return;if(d(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const E=e.getItemMeta(p).parentId;E&&(e.focusItem(f,E),f.preventDefault())}break}case y==="Home":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromStartToItem(f,p):e.focusItem(f,hd(e)),f.preventDefault();break}case y==="End":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromItemToEnd(f,p):e.focusItem(f,A3(e)),f.preventDefault();break}case y==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(String.fromCharCode(f.keyCode)==="A"&&m&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(f),f.preventDefault();break}case(!m&&!f.shiftKey&&fz(y)):{const E=l(p,y);E!=null&&(e.focusItem(f,E),f.preventDefault());break}}}}}};vR.params={};const TR=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});TR.params={};const hz=[qd,Cm,Dm,Sb,vR,TR,Sa];function _R(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:s},expansion:{expansionTrigger:l}}=Fo(),c=t.isItemExpandable(e),d=t.isItemExpanded(e),f=t.isItemFocused(e),p=t.isItemSelected(e),m=t.isItemDisabled(e),y=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,E=t.isItemEditable?t.isItemEditable(e):!1,T=S=>{if(!m){f||t.focusItem(S,e);const L=r&&(S.shiftKey||S.ctrlKey||S.metaKey);c&&!(L&&t.isItemExpanded(e))&&t.toggleItemExpansion(S,e)}},A=S=>{m||(!f&&!y&&t.focusItem(S,e),r&&(S.shiftKey||S.ctrlKey||S.metaKey)?S.shiftKey?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:!0}):t.selectItem({event:S,itemId:e,shouldBeSelected:!0}))},C=S=>{if(s||m)return;const L=S.nativeEvent.shiftKey;r&&L?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:r,shouldBeSelected:S.target.checked})},x=S=>{(S.shiftKey||S.ctrlKey||S.metaKey||m)&&S.preventDefault()},D=()=>{_o(t,Sa)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:m,expanded:d,selected:p,focused:f,editable:E,editing:y,disableSelection:s,checkboxSelection:a,handleExpansion:T,handleSelection:A,handleCheckboxSelection:C,handleContentClick:n,preventSelection:x,expansionTrigger:l,toggleItemEditing:D,handleSaveItemLabel:(S,L)=>{_o(t,Sa)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,L),D(),t.focusItem(S,e))},handleCancelItemLabelEditing:S=>{_o(t,Sa)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(S,e))}}}const pz=sn("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ae({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),mz=sn("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>h4(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:ji(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function gz(e){return e.action==null?null:b.jsx(mz,Ae({},e))}const yz=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],xR=N.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:s,icon:l,label:c,itemId:d,onClick:f,onMouseDown:p,dragAndDropOverlayProps:m,labelInputProps:y}=e,E=fr(e,yz),{disabled:T,expanded:A,selected:C,focused:x,editing:D,editable:S,disableSelection:L,checkboxSelection:M,handleExpansion:I,handleSelection:V,handleCheckboxSelection:ne,handleContentClick:K,preventSelection:k,expansionTrigger:H,toggleItemEditing:Q}=_R(d),W=l||s||a,re=N.useRef(null),me=oe=>{k(oe),p&&p(oe)},G=oe=>{K?.(oe,d),!re.current?.contains(oe.target)&&(H==="content"&&I(oe),M||V(oe),f&&f(oe))},le=oe=>{oe.defaultMuiPrevented||Q()};return b.jsxs("div",Ae({},E,{className:$n(n.root,r,A&&n.expanded,C&&n.selected,x&&n.focused,T&&n.disabled,D&&n.editing,S&&n.editable),onClick:G,onMouseDown:me,ref:t,children:[b.jsx("div",{className:n.iconContainer,children:W}),M&&b.jsx(pR,{className:n.checkbox,checked:C,onChange:ne,disabled:T||L,ref:re,tabIndex:-1}),D?b.jsx(pz,Ae({},y,{className:n.labelInput})):b.jsx("div",Ae({className:n.label},S&&{onDoubleClick:le},{children:c})),m&&b.jsx(gz,Ae({},m))]}))});function Ez(e){return Ps("MuiTreeItem",e)}const Li=$s("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),bz=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],vz=["ownerState"],Tz=["ownerState"],_z=["ownerState"],xz=yR(),Az=e=>{const{classes:t}=e;return Po({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},Ez,t)},Sz=sn("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Cz=sn(xR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Li.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Li.label}`]:t.label}],shouldForwardProp:e=>Rs(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Li.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Li.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Li.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ji(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ji(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ji(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Li.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ji(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Li.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Li.label}`]:Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Li.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Dz=sn(xd,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Rs(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),kz=N.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:s},selection:{disableSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f}=Fo(),p=N.useContext(ob),m=xz({props:e,name:"MuiTreeItem"}),{children:y,className:E,slots:T,slotProps:A,ContentComponent:C=xR,ContentProps:x,itemId:D,id:S,label:L,onClick:M,onMouseDown:I,onBlur:V,onKeyDown:ne}=m,K=fr(m,bz),{expanded:k,focused:H,selected:Q,disabled:W,editing:re,handleExpansion:me,handleCancelItemLabelEditing:G,handleSaveItemLabel:le}=_R(D),{contentRef:oe,rootRef:ye,propsEnhancers:P}=r(m),Oe=N.useRef(null),ce=N.useRef(null),w=li(t,ye,Oe),te=li(x?.ref,oe,ce),Ce={expandIcon:T?.expandIcon??n.slots.expandIcon??mR,collapseIcon:T?.collapseIcon??n.slots.collapseIcon??gR,endIcon:T?.endIcon??n.slots.endIcon,icon:T?.icon,groupTransition:T?.groupTransition},Ie=Te=>Array.isArray(Te)?Te.length>0&&Te.some(Ie):!!Te,Me=Ie(y),Le=Ae({},m,{expanded:k,focused:H,selected:Q,disabled:W,indentationAtItemLevel:s}),st=Az(Le),dt=Ce.groupTransition??void 0,Ue=yo({elementType:dt,ownerState:{},externalSlotProps:A?.groupTransition,additionalProps:Ae({unmountOnExit:!0,in:k,component:"ul",role:"group"},s?{indentationAtItemLevel:!0}:{}),className:st.groupTransition}),en=Te=>{c==="iconContainer"&&me(Te)},wt=k?Ce.collapseIcon:Ce.expandIcon,$e=yo({elementType:wt,ownerState:{},externalSlotProps:Te=>k?Ae({},ri(n.slotProps.collapseIcon,Te),ri(A?.collapseIcon,Te)):Ae({},ri(n.slotProps.expandIcon,Te),ri(A?.expandIcon,Te)),additionalProps:{onClick:en}}),sr=fr($e,vz),fn=Me&&wt?b.jsx(wt,Ae({},sr)):null,Ve=Me?void 0:Ce.endIcon,Zn=yo({elementType:Ve,ownerState:{},externalSlotProps:Te=>Me?{}:Ae({},ri(n.slotProps.endIcon,Te),ri(A?.endIcon,Te))}),an=fr(Zn,Tz),on=Ve?b.jsx(Ve,Ae({},an)):null,Ye=Ce.icon,Ct=yo({elementType:Ye,ownerState:{},externalSlotProps:A?.icon}),Sr=fr(Ct,_z),Ua=Ye?b.jsx(Ye,Ae({},Sr)):null;let Rt;Q?Rt=!0:l||W?Rt=void 0:Rt=!1;function ue(Te){!H&&(!W||a)&&Te.currentTarget===Te.target&&f.focusItem(Te,D)}function ve(Te){V?.(Te),!(re||Te.relatedTarget&&pd(Te.relatedTarget,Oe.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&pd(Te.target,Oe.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&f.removeFocusedItem()}const je=Te=>{ne?.(Te),Te.target?.dataset?.element!=="labelInput"&&f.handleItemKeyDown(Te,D)},nt=sb({itemId:D,treeId:d,id:S}),Dt=f.canItemBeTabbed(D)?0:-1,Nt={rootRefObject:Oe,contentRefObject:ce,interactions:{handleSaveItemLabel:le,handleCancelItemLabelEditing:G}},Vn=P.root?.(Ae({},Nt,{externalEventHandlers:ga(K)}))??{},yn=P.content?.(Ae({},Nt,{externalEventHandlers:ga(x)}))??{},Cn=P.dragAndDropOverlay?.(Ae({},Nt,{externalEventHandlers:{}}))??{},_e=P.labelInput?.(Ae({},Nt,{externalEventHandlers:{}}))??{};return b.jsx(_b,{itemId:D,children:b.jsxs(Sz,Ae({className:$n(st.root,E),role:"treeitem","aria-expanded":Me?k:void 0,"aria-selected":Rt,"aria-disabled":W||void 0,id:nt,tabIndex:Dt},K,{ownerState:Le,onFocus:ue,onBlur:ve,onKeyDown:je,ref:w,style:s?Ae({},K.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):K.style},Vn,{children:[b.jsx(Cz,Ae({as:C,classes:{root:st.content,expanded:st.expanded,selected:st.selected,focused:st.focused,disabled:st.disabled,editable:st.editable,editing:st.editing,iconContainer:st.iconContainer,label:st.label,labelInput:st.labelInput,checkbox:st.checkbox},label:L,itemId:D,onClick:M,onMouseDown:I,icon:Ua,expansionIcon:fn,displayIcon:on,ownerState:Le},x,yn,Cn.action==null?{}:{dragAndDropOverlayProps:Cn},_e.value==null?{}:{labelInputProps:_e},{ref:te})),y&&b.jsx(Dz,Ae({as:dt},Ue,{children:y}))]}))})}),Rz=["ownerState"];function Iz({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:s}){const l=e?.item??kz,c=yo({elementType:l,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),d=fr(c,Rz),f=N.useMemo(()=>s?b.jsx(AR,{itemsToRender:s,slots:e,slotProps:t}):null,[s,e,t]);return b.jsx(l,Ae({},d,{children:f}))}function AR(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return b.jsx(N.Fragment,{children:t.map(a=>b.jsx(Iz,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const wz=(e,t)=>{const n=N.useRef({}),[r,a]=N.useState(()=>{const s={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([c,d])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:d.getDefaultValue},s[c]=d.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,l])=>{const c=t[s]??r[s];return[s,{value:c,setControlledValue:d=>{l.isControlled||a(f=>Ae({},f,{[s]:d}))}}]}))},Nz=["slots","slotProps","apiRef","experimentalFeatures"],Oz=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:s}=e,l=fr(e.props,Nz);const c={};s.forEach(y=>{Object.assign(c,y.params)});const d={},f={};Object.keys(l).forEach(y=>{const E=l[y];c[y]?d[y]=E:f[y]=E});const p=a??{},m=s.reduce((y,E)=>E.getDefaultizedParams?E.getDefaultizedParams({params:y,experimentalFeatures:p}):y,d);return{apiRef:r,forwardedProps:f,pluginParams:m,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Lz=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let s=null,l=null;const c=[],d={};e.forEach(m=>{if(!m.itemPlugin)return;const y=m.itemPlugin({props:a,rootRef:s,contentRef:l});y?.rootRef&&(s=y.rootRef),y?.contentRef&&(l=y.contentRef),y?.propsEnhancers&&(c.push(y.propsEnhancers),Object.keys(y.propsEnhancers).forEach(E=>{d[E]=!0}))});const f=m=>y=>{const E={};return c.forEach(T=>{const A=T[m];A!=null&&Object.assign(E,A(y))}),E},p=Object.fromEntries(Object.keys(d).map(m=>[m,f(m)]));return{contentRef:l,rootRef:s,propsEnhancers:p}},wrapItem:({itemId:a,children:s})=>{let l=s;for(let c=e.length-1;c>=0;c-=1){const d=e[c];d.wrapItem&&(l=d.wrapItem({itemId:a,children:l,instance:t}))}return l},wrapRoot:({children:a})=>{let s=a;for(let l=e.length-1;l>=0;l-=1){const c=e[l];c.wrapRoot&&(s=c.wrapRoot({children:s,instance:t}))}return s},instance:t,rootRef:r,publicAPI:n});let Mz=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let l=a.length-1;l>=0;l-=1){const c=a[l];r.highPriority.has(c)&&c.apply(this,n)}for(let l=0;l<s.length;l+=1){const c=s[l];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...s){r.removeListener(t,a),n.apply(r,s)})}};const Pz=e=>e.isPropagationStopped!==void 0,SR=()=>{const[e]=N.useState(()=>new Mz),t=N.useCallback((...r)=>{const[a,s,l={}]=r;l.defaultMuiPrevented=!1,!(Pz(l)&&l.isPropagationStopped())&&e.emit(a,s,l)},[e]),n=N.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};SR.params={};const CR=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};CR.params={};const Cb=({params:e,state:t,setState:n})=>{N.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ae({},a,{id:Ae({},a.id,{treeId:e.id??nB()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};Cb.params={id:!0};Cb.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const $z=[SR,CR,Cb];function Fz(e){const t=N.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const jz=({plugins:e,rootRef:t,props:n})=>{const r=[...$z,...e],{pluginParams:a,forwardedProps:s,apiRef:l,experimentalFeatures:c,slots:d,slotProps:f}=Oz({plugins:r,props:n}),p=wz(r,a),m=N.useRef({}).current,y=Fz(l),E=N.useRef(null),T=li(E,t),A=Lz({plugins:r,instance:m,publicAPI:y,rootRef:E}),[C,x]=N.useState(()=>{const L={};return r.forEach(M=>{M.getInitialState&&Object.assign(L,M.getInitialState(a))}),L}),D=[],S=L=>{const M=L({instance:m,params:a,slots:d,slotProps:f,experimentalFeatures:c,state:C,setState:x,rootRef:E,models:p,plugins:r});M.getRootProps&&D.push(M.getRootProps),M.publicAPI&&Object.assign(y,M.publicAPI),M.instance&&Object.assign(m,M.instance),M.contextValue&&Object.assign(A,M.contextValue)};return r.forEach(S),{getRootProps:(L={})=>{const M=Ae({role:"tree"},s,L,{ref:T});return D.forEach(I=>{Object.assign(M,I(L))}),M},rootRef:T,contextValue:A,instance:m}};function Bz(e){const{value:t,children:n}=e;return b.jsx(C3.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Uz=yR(),Hz=e=>{const{classes:t}=e;return Po({root:["root"]},zH,t)},zz=sn("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Gz=N.forwardRef(function(e,t){const n=Uz({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:s}=jz({plugins:hz,rootRef:t,props:n}),{slots:l,slotProps:c}=n,d=Hz(n),f=l?.root??zz,p=yo({elementType:f,externalSlotProps:c?.root,className:d.root,getSlotProps:r,ownerState:n});return b.jsx(Bz,{value:a,children:b.jsx(f,Ae({},p,{children:b.jsx(AR,{slots:l,slotProps:c,itemsToRender:s.getItemsToRender()})}))})});function DR({items:e,defaultExpandedItems:t,navigate:n}){return b.jsx(Gz,{items:Kz(e,n),defaultExpandedItems:t,slots:{item:Qz}})}const Vz=RU(xd);function qz(e){const t=mU({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return b.jsx(Vz,{style:t,...e})}function Yz({item:e,...t}){const n=b.jsxs(BH,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&b.jsx(oB,{})||e.fileType==="notebook"&&b.jsx(lB,{})||e.fileType==="model"&&b.jsx(wU,{})||e.fileType=="database"&&b.jsx(IU,{})||b.jsx(b3,{}),b.jsx(Pe,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?b.jsx(Sn,{title:e.error,placement:"right",children:n}):n}const Qz=N.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:s,disabled:l,...c}=e,{getRootProps:d,getContentProps:f,getLabelProps:p,getIconContainerProps:m,getGroupTransitionProps:y,status:E,publicAPI:T}=sB({id:n,itemId:r,children:s,label:a,disabled:l,rootRef:t}),A=T.getItem(r);return E.selected=!1,E.focused=!1,b.jsx(_b,{itemId:r,children:b.jsxs(FH,{...d(c),children:[b.jsxs(jH,{...f(),...A.link&&{onClick:C=>A.link(C)},sx:{pointerEvents:!A.selectable&&"none"},children:[b.jsx(UH,{...m(),children:b.jsx(HH,{status:E})}),b.jsx(Yz,{...p({item:A})})]}),s&&b.jsx(qz,{...y()})]})})});function Kz(e,t){const n=new Map;return e.map(r=>{let a=n;const s=r.path.split("/");s.forEach((l,c)=>{c===s.length-1?a.set(l,r):(a.has(l)||a.set(l,new Map),a=a.get(l))})}),kR(n,"",t)}function kR(e,t,n){const r=[];return e.forEach((a,s)=>{const l=s.endsWith(".malloy")&&"model"||s.endsWith(".malloynb")&&"notebook"||s.endsWith(".parquet")&&"database"||"unknown";if(l!=="unknown"){const c=a;r.push({id:t+s,label:s,fileType:l,link:l==="model"||l==="notebook"?d=>n(t+s,d):void 0,selectable:l==="model"||l==="notebook",error:"error"in c?c.error:void 0})}else t+=`${s}/`,r.push({id:t,label:s,fileType:"directory",selectable:!0,link:void 0,children:kR(a,t,n)})}),r}const Wz=new mm(new ir),Xz=["notebooks/","models/"];function Zz({navigate:e}){const{projectName:t,packageName:n,versionId:r}=ra(),{data:a,isError:s,error:l,isSuccess:c}=yr({queryKey:["models",t,n,r],queryFn:d=>Wz.listModels(t,n,r,d)});return b.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),b.jsx(nr,{}),b.jsxs(ut,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!s&&b.jsx(pr,{text:"Fetching Models..."}),s&&b.jsx(ar,{error:l,context:`${t} > ${n} > Models`}),c&&a.data.length>0&&b.jsx(DR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),navigate:e,defaultExpandedItems:Xz}),c&&a.data.length===0&&b.jsx(Pe,{variant:"body2",children:"No models found"})]})]})})}const Jz=new Gk(new ir),eG=["notebooks/"];function tG({navigate:e}){const{projectName:t,packageName:n,versionId:r}=ra(),{data:a,isError:s,error:l,isSuccess:c}=yr({queryKey:["notebooks",t,n,r],queryFn:d=>Jz.listNotebooks(t,n,r,d)});return b.jsx(zn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),b.jsx(nr,{}),b.jsxs(ut,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!s&&b.jsx(pr,{text:"Fetching Notebooks..."}),s&&b.jsx(ar,{error:l,context:`${t} > ${n} > Notebooks`}),c&&a.data.length>0&&b.jsx(DR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),defaultExpandedItems:eG,navigate:e}),c&&a.data.length===0&&b.jsx(Pe,{variant:"body2",children:"No notebooks found"})]})]})})}const nG=new G9(new ir);function rG(){const{projectName:e,packageName:t,versionId:n}=ra(),{data:r,isError:a,isLoading:s,error:l}=yr({queryKey:["schedules",e,t,n],queryFn:c=>nG.listSchedules(e,t,n,c)});return s?b.jsx(pr,{text:"Fetching Schedules..."}):a?b.jsx(ar,{error:l,context:`${e} > ${t} > Schedules`}):r.data.length?b.jsx(zn,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:b.jsxs(na,{children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),b.jsx(nr,{}),b.jsx(ut,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:b.jsx(fE,{component:Nh,children:b.jsxs(Ju,{sx:{minWidth:300},size:"small",children:[b.jsx(rp,{children:b.jsxs(ii,{children:[b.jsx(Ut,{align:"left",children:"Resource"}),b.jsx(Ut,{align:"left",children:"Schedule"}),b.jsx(Ut,{align:"left",children:"Action"}),b.jsx(Ut,{align:"left",children:"Connection"}),b.jsx(Ut,{align:"left",children:"Last Run"}),b.jsx(Ut,{align:"left",children:"Status"})]})}),b.jsx(ed,{children:r.data.map(c=>b.jsxs(ii,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[b.jsx(Ut,{align:"left",children:c.resource}),b.jsx(Ut,{align:"left",children:c.schedule}),b.jsx(Ut,{align:"left",children:c.action}),b.jsx(Ut,{align:"left",children:c.connection}),b.jsx(Ut,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),b.jsx(Ut,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}const aG=`
164
- .code-display pre {
165
- margin: 0;
166
- padding: 0;
167
- }
168
- `;function iG({cell:e,notebookPath:t,expandCodeCell:n,hideCodeCellIcon:r,expandEmbedding:a,hideEmbeddingIcon:s}){const[l,c]=Ne.useState(n),[d,f]=Ne.useState(a),[p,m]=Ne.useState(),[y,E]=Ne.useState(),[T,A]=Ne.useState(!1),{packageName:C,projectName:x}=ra(),D=Kw({modelPath:t,query:e.text,optionalPackageName:C,optionalProjectName:x});return N.useEffect(()=>{e.type==="code"&&Co(e.text,"malloy").then(S=>{m(S)})},[e]),N.useEffect(()=>{Co(D,"typescript").then(S=>{E(S)})},[D]),e.type==="markdown"&&b.jsx(zn,{variant:"outlined",children:b.jsx(na,{children:b.jsx(ab,{children:e.text})})})||e.type==="code"&&b.jsxs(zn,{variant:"outlined",sx:{height:"auto"},children:[(!r||!s&&e.result)&&b.jsxs(zt,{sx:{flexDirection:"row",justifyContent:"space-between",ml:"8px"},children:[b.jsxs(zt,{sx:{flexDirection:"row"},children:[e.newSources&&e.newSources.length>0&&b.jsx(Pe,{variant:"overline",children:b.jsx("b",{children:"Data source"})}),e.result&&b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Results"})]}),b.jsx(zt,{sx:{flexDirection:"row"},children:b.jsxs(Gp,{sx:{padding:"0px 8px 0px 8px",mb:"auto",mt:"auto"},children:[e.newSources&&e.newSources.length>0&&b.jsx(Sn,{title:"Explore Data Sources",children:b.jsx(An,{size:"small",onClick:()=>{A(!T),f(!1),c(!1)},children:b.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",fill:"currentColor"})})})}),!r&&b.jsx(Sn,{title:l?"Hide Code":"View Code",children:b.jsx(An,{size:"small",onClick:()=>{c(!l)},children:b.jsx(c3,{})})}),!s&&e.result&&b.jsx(Sn,{title:d?"Hide Embedding":"View Embedding",children:b.jsx(An,{size:"small",onClick:()=>{f(!d)},children:b.jsx(Od,{})})})]})})]}),b.jsx(Ui,{in:d,timeout:"auto",unmountOnExit:!0,children:b.jsxs(zt,{sx:{p:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Pe,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:y}}),b.jsx(Sn,{title:"Copy Embeddable Code",children:b.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(D)},children:b.jsx(nm,{})})})]})}),b.jsxs(Ui,{in:l,timeout:"auto",unmountOnExit:!0,children:[b.jsx("style",{children:aG}),b.jsx(zt,{sx:{mx:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx("div",{className:"code-display",style:{fontSize:"12px",width:"800px",border:"1px solid rgb(220,220,220)"},dangerouslySetInnerHTML:{__html:p}})})]}),b.jsx(Ui,{in:T,timeout:"auto",unmountOnExit:!0,sx:{p:"5px"},children:b.jsx(s3,{sourceAndPaths:e.newSources.map(S=>({sourceInfo:JSON.parse(S),modelPath:t}))})}),e.result&&!T&&b.jsx(b.Fragment,{children:b.jsx(E3,{result:e.result,minHeight:300,maxHeight:700})})]})}const sG=new Gk(new ir);function RR({notebookPath:e,expandResults:t,hideResultIcons:n,expandEmbeddings:r,hideEmbeddingIcons:a}){const[s,l]=Ne.useState(!1),[c,d]=Ne.useState(),{projectName:f,packageName:p,versionId:m}=ra(),y=oG(e,!0);N.useEffect(()=>{Co(y,"typescript").then(x=>{d(x)})},[s,y]);const{data:E,isSuccess:T,isError:A,error:C}=yr({queryKey:["notebook",f,p,e,m],queryFn:async x=>(await sG.getNotebook(f,p,e,m,x)).data});return b.jsxs(zn,{variant:"outlined",children:[b.jsxs(na,{children:[b.jsxs(zt,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Pe,{variant:"overline",fontWeight:"bold",children:"Notebook"}),!a&&b.jsx(Gp,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:b.jsx(Sn,{title:s?"Hide Embedding":"View Embedding",children:b.jsx(An,{size:"small",onClick:()=>{l(!s)},children:b.jsx(Od,{})})})})]}),b.jsx(Ui,{in:s,timeout:"auto",unmountOnExit:!0,children:b.jsxs(zt,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Pe,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:c}})}),b.jsx(Sn,{title:"Copy Embeddable Code",children:b.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(y)},children:b.jsx(nm,{})})})]})})]}),b.jsx(YE,{children:b.jsxs(zt,{spacing:2,component:"section",children:[!T&&!A&&b.jsx(pr,{text:"Fetching Notebook..."}),T&&E.notebookCells?.map((x,D)=>b.jsx(iG,{cell:x,notebookPath:e,expandCodeCell:t,hideCodeCellIcon:n,expandEmbedding:r,hideEmbeddingIcon:a},D)),A&&C.status===404&&b.jsxs(Pe,{variant:"body2",children:[b.jsx("code",{children:`${f} > ${p} > ${e}`})," ","not found."]}),A&&C.status!==404&&b.jsx(ar,{error:C,context:`${f} > ${p} > ${e}`})]})})]})}function oG(e,t){return`<Notebook
169
- notebookPath="${e}"
170
- expandCodeCells={${t}}
171
- />`}const lG=Jt(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));let cG=class Kh{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Kh(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
172
- `+t.value:`>>>malloy
173
- import {${t.sourceName}}" from '${t.modelPath}'"
174
- `+t.value+`
175
- `).join(`
176
- `)}static newWorkbook(t){return new Kh(t,void 0)}static async loadWorkbook(t,n){let r;try{const a=await t.getWorkbook(n);a&&(r=JSON.parse(a))}catch{r={models:[],cells:[],workbookPath:n}}return new Kh(t,r)}};const IR=N.createContext(void 0),uG=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return b.jsx(IR.Provider,{value:r,children:n})},Db=()=>{const e=N.useContext(IR);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},xh=Jt(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),oC=Jt(b.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}));const km=function(e){if(e==null)return pG;if(typeof e=="function")return Rm(e);if(typeof e=="object")return Array.isArray(e)?dG(e):fG(e);if(typeof e=="string")return hG(e);throw new Error("Expected function, string, or object as test")};function dG(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=km(e[n]);return Rm(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function fG(e){const t=e;return Rm(n);function n(r){const a=r;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function hG(e){return Rm(t);function t(n){return n&&n.type===e}}function Rm(e){return t;function t(n,r,a){return!!(mG(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function pG(){return!0}function mG(e){return e!==null&&typeof e=="object"&&"type"in e}const wR=[],gG=!0,Np=!1,zu="skip";function NR(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const s=km(a),l=r?-1:1;c(e,void 0,[])();function c(d,f,p){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const E=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(d.type+(E?"<"+E+">":""))+")"})}return y;function y(){let E=wR,T,A,C;if((!t||s(d,f,p[p.length-1]||void 0))&&(E=yG(n(d,p)),E[0]===Np))return E;if("children"in d&&d.children){const x=d;if(x.children&&E[0]!==zu)for(A=(r?x.children.length:-1)+l,C=p.concat(x);A>-1&&A<x.children.length;){const D=x.children[A];if(T=c(D,A,C)(),T[0]===Np)return T;A=typeof T[1]=="number"?T[1]:A+l}}return E}}}function yG(e){return Array.isArray(e)?e:typeof e=="number"?[gG,e]:e==null?wR:[e]}function $r(e,t,n,r){let a,s,l;typeof t=="function"&&typeof n!="function"?(s=void 0,l=t,a=n):(s=t,l=n,a=r),NR(e,s,c,a);function c(d,f){const p=f[f.length-1],m=p?p.children.indexOf(d):void 0;return l(d,m,p)}}const EG=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,bG=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,vG=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{$r(n,"blockquote",(r,a,s)=>{let l="",c="",d=!0,f=r.children.map(p=>{if(d&&p.type==="paragraph"){const m=p.children[0],y=m.type==="text"?m.value:"",E=e?bG:EG,T=y.match(E);if(T&&(d=!1,l=T[1].toLocaleLowerCase(),c=e&&T[2]||l.toLocaleUpperCase(),y.includes(`
177
- `)&&(p.children[0]={type:"text",value:y.replace(E,"").replace(/^\n+/,"")}),!y.includes(`
178
- `))){const A=[];p.children.forEach((C,x)=>{x!=0&&(x==1&&C.type==="break"||A.push(C))}),p.children=[...A]}}return p});l&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${l}`,dir:"auto"}},f.unshift({type:"paragraph",children:[TG(l),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...f]})};function TG(e){let t=_G[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const _G={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function xG(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function OR(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?OR(t.parentElement):null}function AG(e){var t=n=>{var r=OR(n.target);r&&(r.classList.add("active"),xG(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};N.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}function ta(e,t,n,r){const a=e.length;let s=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a: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);s<r.length;)l=r.slice(s,s+1e4),l.unshift(t,0),e.splice(...l),s+=1e4,t+=1e4}function _a(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const lC={}.hasOwnProperty;function LR(e){const t={};let n=-1;for(;++n<e.length;)SG(t,e[n]);return t}function SG(e,t){let n;for(n in t){const r=(lC.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){lC.call(r,s)||(r[s]=[]);const l=a[s];CG(r[s],Array.isArray(l)?l:l?[l]:[])}}}function CG(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ta(e,0,0,r)}const xr=js(/[A-Za-z]/),hr=js(/[\dA-Za-z]/),DG=js(/[#-'*+\--9=?A-Z^-~]/);function Op(e){return e!==null&&(e<32||e===127)}const Yy=js(/\d/),kG=js(/[\dA-Fa-f]/),RG=js(/[!-/:-@[-`{-~]/);function Xe(e){return e!==null&&e<-2}function Zt(e){return e!==null&&(e<0||e===32)}function _t(e){return e===-2||e===-1||e===32}const Im=js(/\p{P}|\p{S}/u),wo=js(/\s/);function js(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const IG={tokenize:PG,partial:!0},MR={tokenize:$G,partial:!0},PR={tokenize:FG,partial:!0},$R={tokenize:jG,partial:!0},wG={tokenize:BG,partial:!0},FR={name:"wwwAutolink",tokenize:LG,previous:BR},jR={name:"protocolAutolink",tokenize:MG,previous:UR},qi={name:"emailAutolink",tokenize:OG,previous:HR},di={};function NG(){return{text:di}}let ro=48;for(;ro<123;)di[ro]=qi,ro++,ro===58?ro=65:ro===91&&(ro=97);di[43]=qi;di[45]=qi;di[46]=qi;di[95]=qi;di[72]=[qi,jR];di[104]=[qi,jR];di[87]=[qi,FR];di[119]=[qi,FR];function OG(e,t,n){const r=this;let a,s;return l;function l(m){return!Qy(m)||!HR.call(r,r.previous)||kb(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return Qy(m)?(e.consume(m),c):m===64?(e.consume(m),d):n(m)}function d(m){return m===46?e.check(wG,p,f)(m):m===45||m===95||hr(m)?(s=!0,e.consume(m),d):p(m)}function f(m){return e.consume(m),a=!0,d}function p(m){return s&&a&&xr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function LG(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!BR.call(r,r.previous)||kb(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(IG,e.attempt(MR,e.attempt(PR,s),n),n)(l))}function s(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function MG(e,t,n){const r=this;let a="",s=!1;return l;function l(m){return(m===72||m===104)&&UR.call(r,r.previous)&&!kb(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(xr(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const y=a.toLowerCase();if(y==="http"||y==="https")return e.consume(m),d}return n(m)}function d(m){return m===47?(e.consume(m),s?f:(s=!0,d)):n(m)}function f(m){return m===null||Op(m)||Zt(m)||wo(m)||Im(m)?n(m):e.attempt(MR,e.attempt(PR,p),n)(m)}function p(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function PG(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),s):n(l)}function s(l){return l===null?n(l):t(l)}}function $G(e,t,n){let r,a,s;return l;function l(f){return f===46||f===95?e.check($R,d,c)(f):f===null||Zt(f)||wo(f)||f!==45&&Im(f)?d(f):(s=!0,e.consume(f),l)}function c(f){return f===95?r=!0:(a=r,r=void 0),e.consume(f),l}function d(f){return a||r||!s?n(f):t(f)}}function FG(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?s(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check($R,t,s)(l):l===null||Zt(l)||wo(l)?t(l):(e.consume(l),a)}function s(l){return l===41&&r++,e.consume(l),a}}function jG(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),s):c===93?(e.consume(c),a):c===60||c===null||Zt(c)||wo(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||Zt(c)||wo(c)?t(c):r(c)}function s(c){return xr(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):xr(c)?(e.consume(c),l):n(c)}}function BG(e,t,n){return r;function r(s){return e.consume(s),a}function a(s){return hr(s)?n(s):t(s)}}function BR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Zt(e)}function UR(e){return!xr(e)}function HR(e){return!(e===47||Qy(e))}function Qy(e){return e===43||e===45||e===46||e===95||hr(e)}function kb(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function St(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return l;function l(d){return _t(d)?(e.enter(n),c(d)):t(d)}function c(d){return _t(d)&&s++<a?(e.consume(d),c):(e.exit(n),t(d))}}function Ma(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Yd={partial:!0,tokenize:UG};function UG(e,t,n){return r;function r(s){return _t(s)?St(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||Xe(s)?t(s):n(s)}}const HG={tokenize:WG,partial:!0};function zG(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:YG,continuation:{tokenize:QG},exit:KG}},text:{91:{name:"gfmFootnoteCall",tokenize:qG},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:GG,resolveTo:VG}}}}function GG(e,t,n){const r=this;let a=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!l||!l._balanced)return n(d);const f=Ma(r.sliceSerialize({start:l.end,end:r.now()}));return f.codePointAt(0)!==94||!s.includes(f.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function VG(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function qG(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,l;return c;function c(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(m){if(s>999||m===93&&!l||m===null||m===91||Zt(m))return n(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return a.includes(Ma(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return Zt(m)||(l=!0),s++,e.consume(m),m===92?p:f}function p(m){return m===91||m===92||m===93?(e.consume(m),s++,f):f(m)}}function YG(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,l=0,c;return d;function d(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(T)}function p(T){if(l>999||T===93&&!c||T===null||T===91||Zt(T))return n(T);if(T===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return s=Ma(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Zt(T)||(c=!0),l++,e.consume(T),T===92?m:p}function m(T){return T===91||T===92||T===93?(e.consume(T),l++,p):p(T)}function y(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),a.includes(s)||a.push(s),St(e,E,"gfmFootnoteDefinitionWhitespace")):n(T)}function E(T){return t(T)}}function QG(e,t,n){return e.check(Yd,t,e.attempt(HG,t,n))}function KG(e){e.exit("gfmFootnoteDefinition")}function WG(e,t,n){const r=this;return St(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(s):n(s)}}function Xl(e){if(e===null||Zt(e)||wo(e))return 1;if(Im(e))return 2}function wm(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}function XG(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(s,l){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let d=c;for(;d--;)if(s[d][0]==="exit"&&s[d][1].type==="strikethroughSequenceTemporary"&&s[d][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[d][1].end.offset-s[d][1].start.offset){s[c][1].type="strikethroughSequence",s[d][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[d][1].start),end:Object.assign({},s[c][1].end)},p={type:"strikethroughText",start:Object.assign({},s[d][1].end),end:Object.assign({},s[c][1].start)},m=[["enter",f,l],["enter",s[d][1],l],["exit",s[d][1],l],["enter",p,l]],y=l.parser.constructs.insideSpan.null;y&&ta(m,m.length,0,wm(y,s.slice(d+1,c),l)),ta(m,m.length,0,[["exit",p,l],["enter",s[c][1],l],["exit",s[c][1],l],["exit",f,l]]),ta(s,d-1,c-d+3,m),c=d+m.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function a(s,l,c){const d=this.previous,f=this.events;let p=0;return m;function m(E){return d===126&&f[f.length-1][1].type!=="characterEscape"?c(E):(s.enter("strikethroughSequenceTemporary"),y(E))}function y(E){const T=Xl(d);if(E===126)return p>1?c(E):(s.consume(E),p++,y);if(p<2&&!t)return c(E);const A=s.exit("strikethroughSequenceTemporary"),C=Xl(E);return A._open=!C||C===2&&!!T,A._close=!T||T===2&&!!C,l(E)}}}let ZG=class{constructor(){this.map=[]}add(t,n,r){JG(this,t,n,r)}consume(t){if(this.map.sort(function(s,l){return s[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const s of a)t.push(s);a=r.pop()}this.map.length=0}};function JG(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function eV(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function tV(){return{flow:{null:{name:"table",tokenize:nV,resolveAll:rV}}}}function nV(e,t,n){const r=this;let a=0,s=0,l;return c;function c(k){let H=r.events.length-1;for(;H>-1;){const re=r.events[H][1].type;if(re==="lineEnding"||re==="linePrefix")H--;else break}const Q=H>-1?r.events[H][1].type:null,W=Q==="tableHead"||Q==="tableRow"?I:d;return W===I&&r.parser.lazy[r.now().line]?n(k):W(k)}function d(k){return e.enter("tableHead"),e.enter("tableRow"),f(k)}function f(k){return k===124||(l=!0,s+=1),p(k)}function p(k){return k===null?n(k):Xe(k)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),E):n(k):_t(k)?St(e,p,"whitespace")(k):(s+=1,l&&(l=!1,a+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,p):(e.enter("data"),m(k)))}function m(k){return k===null||k===124||Zt(k)?(e.exit("data"),p(k)):(e.consume(k),k===92?y:m)}function y(k){return k===92||k===124?(e.consume(k),m):m(k)}function E(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,_t(k)?St(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):T(k))}function T(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),A):M(k)}function A(k){return _t(k)?St(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(s+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(s+=1,x(k)):k===null||Xe(k)?L(k):M(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),D(k)):M(k)}function D(k){return k===45?(e.consume(k),D):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return _t(k)?St(e,L,"whitespace")(k):L(k)}function L(k){return k===124?T(k):k===null||Xe(k)?!l||a!==s?M(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):M(k)}function M(k){return n(k)}function I(k){return e.enter("tableRow"),V(k)}function V(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),V):k===null||Xe(k)?(e.exit("tableRow"),t(k)):_t(k)?St(e,V,"whitespace")(k):(e.enter("data"),ne(k))}function ne(k){return k===null||k===124||Zt(k)?(e.exit("data"),V(k)):(e.consume(k),k===92?K:ne)}function K(k){return k===92||k===124?(e.consume(k),ne):ne(k)}}function rV(e,t){let n=-1,r=!0,a=0,s=[0,0,0,0],l=[0,0,0,0],c=!1,d=0,f,p,m;const y=new ZG;for(;++n<e.length;){const E=e[n],T=E[1];E[0]==="enter"?T.type==="tableHead"?(c=!1,d!==0&&(cC(y,t,d,f,p),p=void 0,d=0),f={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},y.add(n,0,[["enter",f,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(r=!0,m=void 0,s=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},y.add(n,0,[["enter",p,t]])),a=T.type==="tableDelimiterRow"?2:p?3:1):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(s[1]!==0&&(l[0]=l[1],m=Ah(y,t,s,a,void 0,m),s=[0,0,0,0]),l[2]=n)):T.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(l[0]=l[1],m=Ah(y,t,s,a,void 0,m)),s=l,l=[s[1],n,0,0])):T.type==="tableHead"?(c=!0,d=n):T.type==="tableRow"||T.type==="tableDelimiterRow"?(d=n,s[1]!==0?(l[0]=l[1],m=Ah(y,t,s,a,n,m)):l[1]!==0&&(m=Ah(y,t,l,a,n,m)),a=0):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&cC(y,t,d,f,p),y.consume(t.events),n=-1;++n<t.events.length;){const E=t.events[n];E[0]==="enter"&&E[1].type==="table"&&(E[1]._align=eV(t.events,n))}return e}function Ah(e,t,n,r,a,s){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(s.end=Object.assign({},Ll(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const d=Ll(t.events,n[1]);if(s={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const f=Ll(t.events,n[2]),p=Ll(t.events,n[3]),m={type:c,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const y=t.events[n[2]],E=t.events[n[3]];if(y[1].end=Object.assign({},E[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const T=n[2]+1,A=n[3]-n[2]-1;e.add(T,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(s.end=Object.assign({},Ll(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function cC(e,t,n,r,a){const s=[],l=Ll(t.events,n);a&&(a.end=Object.assign({},l),s.push(["exit",a,t])),r.end=Object.assign({},l),s.push(["exit",r,t]),e.add(n+1,0,s)}function Ll(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const aV={name:"tasklistCheck",tokenize:sV};function iV(){return{text:{91:aV}}}function sV(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return Zt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Xe(d)?t(d):_t(d)?e.check({tokenize:oV},t,n)(d):n(d)}}function oV(e,t,n){return St(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function lV(e){return LR([NG(),zG(),XG(e),tV(),iV()])}function cV(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function uV(e,t,n){const r=km((n||{}).ignore||[]),a=dV(t);let s=-1;for(;++s<a.length;)NR(e,"text",l);function l(d,f){let p=-1,m;for(;++p<f.length;){const y=f[p],E=m?m.children:void 0;if(r(y,E?E.indexOf(y):void 0,m))return;m=y}if(m)return c(d,f)}function c(d,f){const p=f[f.length-1],m=a[s][0],y=a[s][1];let E=0;const T=p.children.indexOf(d);let A=!1,C=[];m.lastIndex=0;let x=m.exec(d.value);for(;x;){const D=x.index,S={index:x.index,input:x.input,stack:[...f,d]};let L=y(...x,S);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?m.lastIndex=D+1:(E!==D&&C.push({type:"text",value:d.value.slice(E,D)}),Array.isArray(L)?C.push(...L):L&&C.push(L),E=D+x[0].length,A=!0),!m.global)break;x=m.exec(d.value)}return A?(E<d.value.length&&C.push({type:"text",value:d.value.slice(E)}),p.children.splice(T,1,...C)):C=[d],T+C.length}}function dV(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([fV(a[0]),hV(a[1])])}return t}function fV(e){return typeof e=="string"?new RegExp(cV(e),"g"):e}function hV(e){return typeof e=="function"?e:function(){return e}}const I1="phrasing",w1=["autolink","link","image","label"];function pV(){return{transforms:[TV],enter:{literalAutolink:gV,literalAutolinkEmail:N1,literalAutolinkHttp:N1,literalAutolinkWww:N1},exit:{literalAutolink:vV,literalAutolinkEmail:bV,literalAutolinkHttp:yV,literalAutolinkWww:EV}}}function mV(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:I1,notInConstruct:w1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:I1,notInConstruct:w1},{character:":",before:"[ps]",after:"\\/",inConstruct:I1,notInConstruct:w1}]}}function gV(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function N1(e){this.config.enter.autolinkProtocol.call(this,e)}function yV(e){this.config.exit.autolinkProtocol.call(this,e)}function EV(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function bV(e){this.config.exit.autolinkEmail.call(this,e)}function vV(e){this.exit(e)}function TV(e){uV(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_V],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,xV]],{ignore:["link","linkReference"]})}function _V(e,t,n,r,a){let s="";if(!zR(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!AV(n)))return!1;const l=SV(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:s+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function xV(e,t,n,r){return!zR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function AV(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function SV(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=gp(e,"(");let s=gp(e,")");for(;r!==-1&&a>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function zR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||wo(n)||Im(n))&&(!t||n!==47)}GR.peek=LV;function CV(){this.buffer()}function DV(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function kV(){this.buffer()}function RV(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function IV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),n.label=t}function wV(e){this.exit(e)}function NV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),n.label=t}function OV(e){this.exit(e)}function LV(){return"["}function GR(e,t,n,r){const a=n.createTracker(r);let s=a.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),c(),l(),s+=a.move("]"),s}function MV(){return{enter:{gfmFootnoteCallString:CV,gfmFootnoteCall:DV,gfmFootnoteDefinitionLabelString:kV,gfmFootnoteDefinition:RV},exit:{gfmFootnoteCallString:IV,gfmFootnoteCall:wV,gfmFootnoteDefinitionLabelString:NV,gfmFootnoteDefinition:OV}}}function PV(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:GR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,s,l){const c=s.createTracker(l);let d=c.move("[^");const f=s.enter("footnoteDefinition"),p=s.enter("label");return d+=c.move(s.safe(s.associationId(r),{before:d,after:"]"})),p(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
179
- `:" ")+s.indentLines(s.containerFlow(r,c.current()),t?VR:$V))),f(),d}}function $V(e,t,n){return t===0?e:VR(e,t,n)}function VR(e,t,n){return(n?"":" ")+e}const FV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qR.peek=zV;function jV(){return{canContainEols:["delete"],enter:{strikethrough:UV},exit:{strikethrough:HV}}}function BV(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:FV}],handlers:{delete:qR}}}function UV(e){this.enter({type:"delete",children:[]},e)}function HV(e){this.exit(e)}function qR(e,t,n,r){const a=n.createTracker(r),s=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),s(),l}function zV(){return"~"}function GV(e){return e.length}function VV(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||GV,s=[],l=[],c=[],d=[];let f=0,p=-1;for(;++p<e.length;){const A=[],C=[];let x=-1;for(e[p].length>f&&(f=e[p].length);++x<e[p].length;){const D=qV(e[p][x]);if(n.alignDelimiters!==!1){const S=a(D);C[x]=S,(d[x]===void 0||S>d[x])&&(d[x]=S)}A.push(D)}l[p]=A,c[p]=C}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<f;)s[m]=uC(r[m]);else{const A=uC(r);for(;++m<f;)s[m]=A}m=-1;const y=[],E=[];for(;++m<f;){const A=s[m];let C="",x="";A===99?(C=":",x=":"):A===108?C=":":A===114&&(x=":");let D=n.alignDelimiters===!1?1:Math.max(1,d[m]-C.length-x.length);const S=C+"-".repeat(D)+x;n.alignDelimiters!==!1&&(D=C.length+D+x.length,D>d[m]&&(d[m]=D),E[m]=D),y[m]=S}l.splice(1,0,y),c.splice(1,0,E),p=-1;const T=[];for(;++p<l.length;){const A=l[p],C=c[p];m=-1;const x=[];for(;++m<f;){const D=A[m]||"";let S="",L="";if(n.alignDelimiters!==!1){const M=d[m]-(C[m]||0),I=s[m];I===114?S=" ".repeat(M):I===99?M%2?(S=" ".repeat(M/2+.5),L=" ".repeat(M/2-.5)):(S=" ".repeat(M/2),L=S):L=" ".repeat(M)}n.delimiterStart!==!1&&!m&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||m)&&x.push(" "),n.alignDelimiters!==!1&&x.push(S),x.push(D),n.alignDelimiters!==!1&&x.push(L),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||m!==f-1)&&x.push("|")}T.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return T.join(`
180
- `)}function qV(e){return e==null?"":String(e)}function uC(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function YV(e,t,n,r){const a=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const l=n.indentLines(n.containerFlow(e,s.current()),QV);return a(),l}function QV(e,t,n){return">"+(n?"":" ")+e}function KV(e,t){return dC(e,t.inConstruct,!0)&&!dC(e,t.notInConstruct,!1)}function dC(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function fC(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
181
- `&&KV(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
182
- `}function WV(e,t){const n=String(e);let r=n.indexOf(t),a=r,s=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++s>l&&(l=s):s=1,a=r+t.length,r=n.indexOf(t,a);return l}function XV(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ZV(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function JV(e,t,n,r){const a=ZV(n),s=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(XV(e,n)){const m=n.enter("codeIndented"),y=n.indentLines(s,eq);return m(),y}const c=n.createTracker(r),d=a.repeat(Math.max(WV(s,a)+1,3)),f=n.enter("codeFenced");let p=c.move(d);if(e.lang){const m=n.enter(`codeFencedLang${l}`);p+=c.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${l}`);p+=c.move(" "),p+=c.move(n.safe(e.meta,{before:p,after:`
183
- `,encode:["`"],...c.current()})),m()}return p+=c.move(`
184
- `),s&&(p+=c.move(s+`
185
- `)),p+=c.move(d),f(),p}function eq(e,t,n){return(n?"":" ")+e}function Rb(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function tq(e,t,n,r){const a=Rb(n),s=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("[");return f+=d.move(n.safe(n.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":`
186
- `,...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),l(),f}function nq(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ad(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Lp(e,t,n){const r=Xl(e),a=Xl(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}YR.peek=rq;function YR(e,t,n,r){const a=nq(n),s=n.enter("emphasis"),l=n.createTracker(r),c=l.move(a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=Lp(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Ad(f)+d.slice(1));const m=d.charCodeAt(d.length-1),y=Lp(r.after.charCodeAt(0),m,a);y.inside&&(d=d.slice(0,-1)+Ad(m));const E=l.move(a);return s(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},c+d+E}function rq(e,t,n){return n.options.emphasis||"*"}const aq={};function Ib(e,t){const n=aq,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return QR(e,r,a)}function QR(e,t,n){if(iq(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 hC(e.children,t,n)}return Array.isArray(e)?hC(e,t,n):""}function hC(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=QR(e[a],t,n);return r.join("")}function iq(e){return!!(e&&typeof e=="object")}function sq(e,t){let n=!1;return $r(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Np}),!!((!e.depth||e.depth<3)&&Ib(e)&&(t.options.setext||n))}function oq(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(sq(e,n)){const p=n.enter("headingSetext"),m=n.enter("phrasing"),y=n.containerPhrasing(e,{...s.current(),before:`
187
- `,after:`
188
- `});return m(),p(),y+`
189
- `+(a===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
190
- `))+1))}const l="#".repeat(a),c=n.enter("headingAtx"),d=n.enter("phrasing");s.move(l+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
191
- `,...s.current()});return/^[\t ]/.test(f)&&(f=Ad(f.charCodeAt(0))+f.slice(1)),f=f?l+" "+f:l,n.options.closeAtx&&(f+=" "+l),d(),c(),f}KR.peek=lq;function KR(e){return e.value||""}function lq(){return"<"}WR.peek=cq;function WR(e,t,n,r){const a=Rb(n),s=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("![");return f+=d.move(n.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),f+=d.move(")"),l(),f}function cq(){return"!"}XR.peek=uq;function XR(e,t,n,r){const a=e.referenceType,s=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const f=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,s(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function uq(){return"!"}ZR.peek=dq;function ZR(e,t,n){let r=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const l=n.unsafe[s],c=n.compilePattern(l);let d;if(l.atBreak)for(;d=c.exec(r);){let f=d.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(d.index+1)}}return a+r+a}function dq(){return"`"}function JR(e,t){const n=Ib(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}eI.peek=fq;function eI(e,t,n,r){const a=Rb(n),s=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,d;if(JR(e,n)){const p=n.stack;n.stack=[],c=n.enter("autolink");let m=l.move("<");return m+=l.move(n.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),c(),n.stack=p,m}c=n.enter("link"),d=n.enter("label");let f=l.move("[");return f+=l.move(n.containerPhrasing(e,{before:f,after:"](",...l.current()})),f+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),f+=l.move("<"),f+=l.move(n.safe(e.url,{before:f,after:">",...l.current()})),f+=l.move(">")):(d=n.enter("destinationRaw"),f+=l.move(n.safe(e.url,{before:f,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${s}`),f+=l.move(" "+a),f+=l.move(n.safe(e.title,{before:f,after:a,...l.current()})),f+=l.move(a),d()),f+=l.move(")"),c(),f}function fq(e,t,n){return JR(e,n)?"<":"["}tI.peek=hq;function tI(e,t,n,r){const a=e.referenceType,s=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const f=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,s(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function hq(){return"["}function wb(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function pq(e){const t=wb(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function mq(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nI(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function gq(e,t,n,r){const a=n.enter("list"),s=n.bulletCurrent;let l=e.ordered?mq(n):wb(n);const c=e.ordered?l==="."?")":".":pq(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),nI(n)===l&&p){let m=-1;for(;++m<e.children.length;){const y=e.children[m];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=c),n.bulletCurrent=l;const f=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=s,a(),f}function yq(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Eq(e,t,n,r){const a=yq(n);let s=n.bulletCurrent||wb(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let l=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(s+" ".repeat(l-s.length)),c.shift(l);const d=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),p);return d(),f;function p(m,y,E){return y?(E?"":" ".repeat(l))+m:(E?s:s+" ".repeat(l-s.length))+m}}function bq(e,t,n,r){const a=n.enter("paragraph"),s=n.enter("phrasing"),l=n.containerPhrasing(e,r);return s(),a(),l}const vq=km(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tq(e,t,n,r){return(e.children.some(function(a){return vq(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function _q(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rI.peek=xq;function rI(e,t,n,r){const a=_q(n),s=n.enter("strong"),l=n.createTracker(r),c=l.move(a+a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=Lp(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Ad(f)+d.slice(1));const m=d.charCodeAt(d.length-1),y=Lp(r.after.charCodeAt(0),m,a);y.inside&&(d=d.slice(0,-1)+Ad(m));const E=l.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},c+d+E}function xq(e,t,n){return n.options.strong||"*"}function Aq(e,t,n,r){return n.safe(e.value,r)}function Sq(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Cq(e,t,n){const r=(nI(n)+(n.options.ruleSpaces?" ":"")).repeat(Sq(n));return n.options.ruleSpaces?r.slice(0,-1):r}const aI={blockquote:YV,break:fC,code:JV,definition:tq,emphasis:YR,hardBreak:fC,heading:oq,html:KR,image:WR,imageReference:XR,inlineCode:ZR,link:eI,linkReference:tI,list:gq,listItem:Eq,paragraph:bq,root:Tq,strong:rI,text:Aq,thematicBreak:Cq};function Dq(){return{enter:{table:kq,tableData:pC,tableHeader:pC,tableRow:Iq},exit:{codeText:wq,table:Rq,tableData:O1,tableHeader:O1,tableRow:O1}}}function kq(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Rq(e){this.exit(e),this.data.inTable=void 0}function Iq(e){this.enter({type:"tableRow",children:[]},e)}function O1(e){this.exit(e)}function pC(e){this.enter({type:"tableCell",children:[]},e)}function wq(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Nq));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Nq(e,t){return t==="|"?t:e}function Oq(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
192
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:l,tableCell:d,tableRow:c}};function l(E,T,A,C){return f(p(E,A,C),E.align)}function c(E,T,A,C){const x=m(E,A,C),D=f([x]);return D.slice(0,D.indexOf(`
193
- `))}function d(E,T,A,C){const x=A.enter("tableCell"),D=A.enter("phrasing"),S=A.containerPhrasing(E,{...C,before:s,after:s});return D(),x(),S}function f(E,T){return VV(E,{align:T,alignDelimiters:r,padding:n,stringLength:a})}function p(E,T,A){const C=E.children;let x=-1;const D=[],S=T.enter("table");for(;++x<C.length;)D[x]=m(C[x],T,A);return S(),D}function m(E,T,A){const C=E.children;let x=-1;const D=[],S=T.enter("tableRow");for(;++x<C.length;)D[x]=d(C[x],E,T,A);return S(),D}function y(E,T,A){let C=aI.inlineCode(E,T,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Lq(){return{exit:{taskListCheckValueChecked:mC,taskListCheckValueUnchecked:mC,paragraph:Pq}}}function Mq(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$q}}}function mC(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Pq(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let s=-1,l;for(;++s<a.length;){const c=a[s];if(c.type==="paragraph"){l=c;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function $q(e,t,n,r){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);s&&c.move(l);let d=aI.listItem(e,t,n,{...r,...c.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(p){return p+l}}function Fq(){return[pV(),MV(),jV(),Dq(),Lq()]}function jq(e){return{extensions:[mV(),PV(e),BV(),Oq(e),Mq()]}}const Bq={};function Uq(e){const t=this,n=e||Bq,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(lV(n)),s.push(Fq()),l.push(jq(n))}function gC(e){if(e)throw e}var L1,yC;function Hq(){if(yC)return L1;yC=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},s=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var f=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!f&&!p)return!1;var m;for(m in d);return typeof m>"u"||e.call(d,m)},l=function(d,f){n&&f.name==="__proto__"?n(d,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):d[f.name]=f.newValue},c=function(d,f){if(f==="__proto__")if(e.call(d,f)){if(r)return r(d,f).value}else return;return d[f]};return L1=function d(){var f,p,m,y,E,T,A=arguments[0],C=1,x=arguments.length,D=!1;for(typeof A=="boolean"&&(D=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<x;++C)if(f=arguments[C],f!=null)for(p in f)m=c(A,p),y=c(f,p),A!==y&&(D&&y&&(s(y)||(E=a(y)))?(E?(E=!1,T=m&&a(m)?m:[]):T=m&&s(m)?m:{},l(A,{name:p,newValue:d(D,T,y)})):typeof y<"u"&&l(A,{name:p,newValue:y}));return A},L1}var zq=Hq();const M1=Sm(zq);function Ky(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const Gq=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r};function Vq(){const e=[],t={run:n,use:r};return t;function n(...a){let s=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...a);function c(d,...f){const p=e[++s];let m=-1;if(d){l(d);return}for(;++m<a.length;)(f[m]===null||f[m]===void 0)&&(f[m]=a[m]);a=f,p?qq(p,c)(...f):l(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function qq(e,t){let n;return r;function r(...l){const c=e.length>l.length;let d;c&&l.push(a);try{d=e.apply(this,l)}catch(f){const p=f;if(c&&n)throw p;return a(p)}c||(d&&d.then&&typeof d.then=="function"?d.then(s,a):d instanceof Error?a(d):s(d))}function a(l,...c){n||(n=!0,t(l,...c))}function s(l){a(null,l)}}const ti={basename:Yq,dirname:Qq,extname:Kq,join:Wq,sep:"/"};function Yq(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Qd(e);let n=0,r=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else r<0&&(s=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else l<0&&(s=!0,l=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Qq(e){if(Qd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Kq(e){Qd(e);let t=e.length,n=-1,r=0,a=-1,s=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Wq(...e){let t=-1,n;for(;++t<e.length;)Qd(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Xq(n)}function Xq(e){Qd(e);const t=e.codePointAt(0)===47;let n=Zq(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Zq(e,t){let n="",r=0,a=-1,s=0,l=-1,c,d;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(a===l-1||s===1))if(a!==l-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=l,s=0;continue}}else if(n.length>0){n="",r=0,a=l,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,s=0}else c===46&&s>-1?s++:s=-1}return n}function Qd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Jq={cwd:eY};function eY(){return"/"}function Wy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tY(e){if(typeof e=="string")e=new URL(e);else if(!Wy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return nY(e)}function nY(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}function Gu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?EC(e.position):"start"in e||"end"in e?EC(e):"line"in e||"column"in e?Xy(e):""}function Xy(e){return bC(e&&e.line)+":"+bC(e&&e.column)}function EC(e){return Xy(e&&e.start)+"-"+Xy(e&&e.end)}function bC(e){return e&&typeof e=="number"?e:1}let mr=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",s={},l=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?a=t:!s.cause&&t&&(l=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?s.ruleId=r:(s.source=r.slice(0,d),s.ruleId=r.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=Gu(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=l&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};mr.prototype.file="";mr.prototype.name="";mr.prototype.reason="";mr.prototype.message="";mr.prototype.stack="";mr.prototype.column=void 0;mr.prototype.line=void 0;mr.prototype.ancestors=void 0;mr.prototype.cause=void 0;mr.prototype.fatal=void 0;mr.prototype.place=void 0;mr.prototype.ruleId=void 0;mr.prototype.source=void 0;const P1=["history","path","basename","stem","extname","dirname"];let iI=class{constructor(t){let n;t?Wy(t)?n={path:t}:typeof t=="string"||rY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Jq.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<P1.length;){const s=P1[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)P1.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ti.basename(this.path):void 0}set basename(t){F1(t,"basename"),$1(t,"basename"),this.path=ti.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ti.dirname(this.path):void 0}set dirname(t){vC(this.basename,"dirname"),this.path=ti.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ti.extname(this.path):void 0}set extname(t){if($1(t,"extname"),vC(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ti.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Wy(t)&&(t=tY(t)),F1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ti.basename(this.path,this.extname):void 0}set stem(t){F1(t,"stem"),$1(t,"stem"),this.path=ti.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new mr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function $1(e,t){if(e&&e.includes(ti.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ti.sep+"`")}function F1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function vC(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function rY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aY={}.hasOwnProperty;let iY=class sI extends Gq{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Vq()}copy(){const t=new sI;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(M1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(U1("data",this.frozen),this.namespace[t]=n,this):aY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(U1("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Sh(t),r=this.parser||this.Parser;return j1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),j1("process",this.parser||this.Parser),B1("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,l){const c=Sh(t),d=r.parse(c);r.run(d,c,function(p,m,y){if(p||!m||!y)return f(p);const E=m,T=r.stringify(E,y);lY(T)?y.value=T:y.result=T,f(p,y)});function f(p,m){p||!m?l(p):s?s(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),j1("processSync",this.parser||this.Parser),B1("processSync",this.compiler||this.Compiler),this.process(t,a),_C("processSync","process",n),r;function a(s,l){n=!0,gC(s),r=l}}run(t,n,r){TC(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(l,c){const d=Sh(n);a.run(t,d,f);function f(p,m,y){const E=m||t;p?c(p):l?l(E):r(void 0,E,y)}}}runSync(t,n){let r=!1,a;return this.run(t,n,s),_C("runSync","run",r),a;function s(l,c){gC(l),a=c,r=!0}}stringify(t,n){this.freeze();const r=Sh(n),a=this.compiler||this.Compiler;return B1("stringify",a),TC(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(U1("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...m]=f;d(p,m)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(f.plugins),f.settings&&(a.settings=M1(!0,a.settings,f.settings))}function c(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const m=f[p];s(m)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,p){let m=-1,y=-1;for(;++m<r.length;)if(r[m][0]===f){y=m;break}if(y===-1)r.push([f,...p]);else if(p.length>0){let[E,...T]=p;const A=r[y][1];Ky(A)&&Ky(E)&&(E=M1(!0,A,E)),r[y]=[f,E,...T]}}}};const sY=new iY().freeze();function j1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function B1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function U1(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function TC(e){if(!Ky(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _C(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Sh(e){return oY(e)?e:new iI(e)}function oY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function lY(e){return typeof e=="string"||cY(e)}function cY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function oI(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)}const xC=document.createElement("i");function Nb(e){const t="&"+e+";";xC.innerHTML=t;const n=xC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const uY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dY(e){return e.replace(uY,fY)}function fY(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return oI(n.slice(a?2:1),a?16:10)}return Nb(n)||e}let hY=class{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 a=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&bu(this.left,r),s.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),bu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bu(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);bu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bu(this.left,n.reverse())}}};function bu(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 lI(e){const t={};let n=-1,r,a,s,l,c,d,f;const p=new hY(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,pY(p,n)),n=t[n],f=!0);else if(r[1]._container){for(s=n,a=void 0;s--;)if(l=p.get(s),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=s);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...p.get(a)[1].start},c=p.slice(a,n),c.unshift(r),p.splice(a,n-a+1,c))}}return ta(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function pY(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const s=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,d=[],f={};let p,m,y=-1,E=n,T=0,A=0;const C=[A];for(;E;){for(;e.get(++a)[1]!==E;);s.push(a),E._tokenizer||(p=r.sliceStream(E),E.next||p.push(null),m&&l.defineSkip(E.start),E._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),E._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=E,E=E.next}for(E=n;++y<c.length;)c[y][0]==="exit"&&c[y-1][0]==="enter"&&c[y][1].type===c[y-1][1].type&&c[y][1].start.line!==c[y][1].end.line&&(A=y+1,C.push(A),E._tokenizer=void 0,E.previous=void 0,E=E.next);for(l.events=[],E?(E._tokenizer=void 0,E.previous=void 0):C.pop(),y=C.length;y--;){const x=c.slice(C[y],C[y+1]),D=s.pop();d.push([D,D+x.length-1]),e.splice(D,2,x)}for(d.reverse(),y=-1;++y<d.length;)f[T+d[y][0]]=T+d[y][1],T+=d[y][1]-d[y][0]-1;return f}function mY(e){for(;!lI(e););return e}const gY={tokenize:yY};function yY(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),St(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),s(c)}function s(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Xe(c)?(e.consume(c),e.exit("chunkText"),s):(e.consume(c),l)}}const EY={tokenize:bY},AC={tokenize:vY};function bY(e){const t=this,n=[];let r=0,a,s,l;return c;function c(S){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,d,f)(S)}return f(S)}function d(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&D();const L=t.events.length;let M=L,I;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){I=t.events[M][1].end;break}x(r);let V=L;for(;V<t.events.length;)t.events[V][1].end={...I},V++;return ta(t.events,M+1,0,t.events.slice(L)),t.events.length=V,f(S)}return c(S)}function f(S){if(r===n.length){if(!a)return y(S);if(a.currentConstruct&&a.currentConstruct.concrete)return T(S);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(AC,p,m)(S)}function p(S){return a&&D(),x(r),y(S)}function m(S){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,T(S)}function y(S){return t.containerState={},e.attempt(AC,E,T)(S)}function E(S){return r++,n.push([t.currentConstruct,t.containerState]),y(S)}function T(S){if(S===null){a&&D(),x(0),e.consume(S);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),A(S)}function A(S){if(S===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return Xe(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(S),A)}function C(S,L){const M=t.sliceStream(S);if(L&&M.push(null),S.previous=s,s&&(s.next=S),s=S,a.defineSkip(S.start),a.write(M),t.parser.lazy[S.start.line]){let I=a.events.length;for(;I--;)if(a.events[I][1].start.offset<l&&(!a.events[I][1].end||a.events[I][1].end.offset>l))return;const V=t.events.length;let ne=V,K,k;for(;ne--;)if(t.events[ne][0]==="exit"&&t.events[ne][1].type==="chunkFlow"){if(K){k=t.events[ne][1].end;break}K=!0}for(x(r),I=V;I<t.events.length;)t.events[I][1].end={...k},I++;ta(t.events,ne+1,0,t.events.slice(V)),t.events.length=I}}function x(S){let L=n.length;for(;L-- >S;){const M=n[L];t.containerState=M[1],M[0].exit.call(t,e)}n.length=S}function D(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function vY(e,t,n){return St(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const TY={resolve:xY,tokenize:AY},_Y={partial:!0,tokenize:SY};function xY(e){return lI(e),e}function AY(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?s(c):Xe(c)?e.check(_Y,l,s)(c):(e.consume(c),a)}function s(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function SY(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),St(e,s,"linePrefix")}function s(l){if(l===null||Xe(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}const CY={tokenize:DY};function DY(e){const t=this,n=e.attempt(Yd,r,e.attempt(this.parser.constructs.flowInitial,a,St(e,e.attempt(this.parser.constructs.flow,a,e.attempt(TY,a)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const kY={resolveAll:uI()},RY=cI("string"),IY=cI("text");function cI(e){return{resolveAll:uI(e==="text"?wY:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],s=n.attempt(a,l,c);return l;function l(p){return f(p)?s(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),d}function d(p){return f(p)?(n.exit("data"),s(p)):(n.consume(p),d)}function f(p){if(p===null)return!0;const m=a[p];let y=-1;if(m)for(;++y<m.length;){const E=m[y];if(!E.previous||E.previous.call(r,r.previous))return!0}return!1}}}function uI(e){return t;function t(n,r){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(n,r):n}}function wY(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],a=t.sliceStream(r);let s=a.length,l=-1,c=0,d;for(;s--;){const f=a[s];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(f===-2)d=!0,c++;else if(f!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?l:r.start._bufferIndex+l,_index:r.start._index+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const dI={continuation:{tokenize:OY},exit:LY,name:"blockQuote",tokenize:NY};function NY(e,t,n){const r=this;return a;function a(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),s}return n(l)}function s(l){return _t(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function OY(e,t,n){const r=this;return a;function a(l){return _t(l)?St(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):s(l)}function s(l){return e.attempt(dI,t,n)(l)}}function LY(e){e.exit("blockQuote")}const Wh={name:"thematicBreak",tokenize:MY};function MY(e,t,n){let r=0,a;return s;function s(f){return e.enter("thematicBreak"),l(f)}function l(f){return a=f,c(f)}function c(f){return f===a?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||Xe(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===a?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),_t(f)?St(e,c,"whitespace")(f):c(f))}}const wr={continuation:{tokenize:jY},exit:UY,name:"list",tokenize:FY},PY={partial:!0,tokenize:HY},$Y={partial:!0,tokenize:BY};function FY(e,t,n){const r=this,a=r.events[r.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return c;function c(E){const T=r.containerState.type||(E===42||E===43||E===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||E===r.containerState.marker:Yy(E)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),E===42||E===45?e.check(Wh,n,f)(E):f(E);if(!r.interrupt||E===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(E)}return n(E)}function d(E){return Yy(E)&&++l<10?(e.consume(E),d):(!r.interrupt||l<2)&&(r.containerState.marker?E===r.containerState.marker:E===41||E===46)?(e.exit("listItemValue"),f(E)):n(E)}function f(E){return e.enter("listItemMarker"),e.consume(E),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||E,e.check(Yd,r.interrupt?n:p,e.attempt(PY,y,m))}function p(E){return r.containerState.initialBlankLine=!0,s++,y(E)}function m(E){return _t(E)?(e.enter("listItemPrefixWhitespace"),e.consume(E),e.exit("listItemPrefixWhitespace"),y):n(E)}function y(E){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(E)}}function jY(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Yd,a,s);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,St(e,t,"listItemIndent",r.containerState.size+1)(c)}function s(c){return r.containerState.furtherBlankLines||!_t(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($Y,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,St(e,e.attempt(wr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function BY(e,t,n){const r=this;return St(e,a,"listItemIndent",r.containerState.size+1);function a(s){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(s):n(s)}}function UY(e){e.exit(this.containerState.type)}function HY(e,t,n){const r=this;return St(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const l=r.events[r.events.length-1];return!_t(s)&&l&&l[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}function fI(e,t,n,r,a,s,l,c,d){const f=d||Number.POSITIVE_INFINITY;let p=0;return m;function m(x){return x===60?(e.enter(r),e.enter(a),e.enter(s),e.consume(x),e.exit(s),y):x===null||x===32||x===41||Op(x)?n(x):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),A(x))}function y(x){return x===62?(e.enter(s),e.consume(x),e.exit(s),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),E(x))}function E(x){return x===62?(e.exit("chunkString"),e.exit(c),y(x)):x===null||x===60||Xe(x)?n(x):(e.consume(x),x===92?T:E)}function T(x){return x===60||x===62||x===92?(e.consume(x),E):E(x)}function A(x){return!p&&(x===null||x===41||Zt(x))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(x)):p<f&&x===40?(e.consume(x),p++,A):x===41?(e.consume(x),p--,A):x===null||x===32||x===40||Op(x)?n(x):(e.consume(x),x===92?C:A)}function C(x){return x===40||x===41||x===92?(e.consume(x),A):A(x)}}function hI(e,t,n,r,a,s){const l=this;let c=0,d;return f;function f(E){return e.enter(r),e.enter(a),e.consume(E),e.exit(a),e.enter(s),p}function p(E){return c>999||E===null||E===91||E===93&&!d||E===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(E):E===93?(e.exit(s),e.enter(a),e.consume(E),e.exit(a),e.exit(r),t):Xe(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===null||E===91||E===93||Xe(E)||c++>999?(e.exit("chunkString"),p(E)):(e.consume(E),d||(d=!_t(E)),E===92?y:m)}function y(E){return E===91||E===92||E===93?(e.consume(E),c++,m):m(E)}}function pI(e,t,n,r,a,s){let l;return c;function c(y){return y===34||y===39||y===40?(e.enter(r),e.enter(a),e.consume(y),e.exit(a),l=y===40?41:y,d):n(y)}function d(y){return y===l?(e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):(e.enter(s),f(y))}function f(y){return y===l?(e.exit(s),d(l)):y===null?n(y):Xe(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),St(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===l||y===null||Xe(y)?(e.exit("chunkString"),f(y)):(e.consume(y),y===92?m:p)}function m(y){return y===l||y===92?(e.consume(y),p):p(y)}}function Vu(e,t){let n;return r;function r(a){return Xe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):_t(a)?St(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const zY={name:"definition",tokenize:VY},GY={partial:!0,tokenize:qY};function VY(e,t,n){const r=this;let a;return s;function s(E){return e.enter("definition"),l(E)}function l(E){return hI.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function c(E){return a=Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),d):n(E)}function d(E){return Zt(E)?Vu(e,f)(E):f(E)}function f(E){return fI(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(E)}function p(E){return e.attempt(GY,m,m)(E)}function m(E){return _t(E)?St(e,y,"whitespace")(E):y(E)}function y(E){return E===null||Xe(E)?(e.exit("definition"),r.parser.defined.push(a),t(E)):n(E)}}function qY(e,t,n){return r;function r(c){return Zt(c)?Vu(e,a)(c):n(c)}function a(c){return pI(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return _t(c)?St(e,l,"whitespace")(c):l(c)}function l(c){return c===null||Xe(c)?t(c):n(c)}}const H1={name:"codeIndented",tokenize:QY},YY={partial:!0,tokenize:KY};function QY(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),St(e,s,"linePrefix",5)(f)}function s(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?d(f):Xe(f)?e.attempt(YY,l,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Xe(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function KY(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):Xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):St(e,s,"linePrefix",5)(l)}function s(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):Xe(l)?a(l):n(l)}}const SC={partial:!0,tokenize:XY},CC={concrete:!0,name:"codeFenced",tokenize:WY};function WY(e,t,n){const r=this,a={partial:!0,tokenize:M};let s=0,l=0,c;return d;function d(I){return f(I)}function f(I){const V=r.events[r.events.length-1];return s=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,c=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(I)}function p(I){return I===c?(l++,e.consume(I),p):l<3?n(I):(e.exit("codeFencedFenceSequence"),_t(I)?St(e,m,"whitespace")(I):m(I))}function m(I){return I===null||Xe(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(SC,A,L)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(I))}function y(I){return I===null||Xe(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(I)):_t(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),St(e,E,"whitespace")(I)):I===96&&I===c?n(I):(e.consume(I),y)}function E(I){return I===null||Xe(I)?m(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(I))}function T(I){return I===null||Xe(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(I)):I===96&&I===c?n(I):(e.consume(I),T)}function A(I){return e.attempt(a,L,C)(I)}function C(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return s>0&&_t(I)?St(e,D,"linePrefix",s+1)(I):D(I)}function D(I){return I===null||Xe(I)?e.check(SC,A,L)(I):(e.enter("codeFlowValue"),S(I))}function S(I){return I===null||Xe(I)?(e.exit("codeFlowValue"),D(I)):(e.consume(I),S)}function L(I){return e.exit("codeFenced"),t(I)}function M(I,V,ne){let K=0;return k;function k(me){return I.enter("lineEnding"),I.consume(me),I.exit("lineEnding"),H}function H(me){return I.enter("codeFencedFence"),_t(me)?St(I,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(me):Q(me)}function Q(me){return me===c?(I.enter("codeFencedFenceSequence"),W(me)):ne(me)}function W(me){return me===c?(K++,I.consume(me),W):K>=l?(I.exit("codeFencedFenceSequence"),_t(me)?St(I,re,"whitespace")(me):re(me)):ne(me)}function re(me){return me===null||Xe(me)?(I.exit("codeFencedFence"),V(me)):ne(me)}}}function XY(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s)}function s(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const DC={name:"setextUnderline",resolveTo:ZY,tokenize:JY};function ZY(e,t){let n=e.length,r,a,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",l,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function JY(e,t,n){const r=this;let a;return s;function s(f){let p=r.events.length,m;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){m=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===a?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),_t(f)?St(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Xe(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const eQ=["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"],kC=["pre","script","style","textarea"],tQ={concrete:!0,name:"htmlFlow",resolveTo:aQ,tokenize:iQ},nQ={partial:!0,tokenize:oQ},rQ={partial:!0,tokenize:sQ};function aQ(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 iQ(e,t,n){const r=this;let a,s,l,c,d;return f;function f(w){return p(w)}function p(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),m}function m(w){return w===33?(e.consume(w),y):w===47?(e.consume(w),s=!0,A):w===63?(e.consume(w),a=3,r.interrupt?t:P):xr(w)?(e.consume(w),l=String.fromCharCode(w),C):n(w)}function y(w){return w===45?(e.consume(w),a=2,E):w===91?(e.consume(w),a=5,c=0,T):xr(w)?(e.consume(w),a=4,r.interrupt?t:P):n(w)}function E(w){return w===45?(e.consume(w),r.interrupt?t:P):n(w)}function T(w){const te="CDATA[";return w===te.charCodeAt(c++)?(e.consume(w),c===te.length?r.interrupt?t:Q:T):n(w)}function A(w){return xr(w)?(e.consume(w),l=String.fromCharCode(w),C):n(w)}function C(w){if(w===null||w===47||w===62||Zt(w)){const te=w===47,Ce=l.toLowerCase();return!te&&!s&&kC.includes(Ce)?(a=1,r.interrupt?t(w):Q(w)):eQ.includes(l.toLowerCase())?(a=6,te?(e.consume(w),x):r.interrupt?t(w):Q(w)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):s?D(w):S(w))}return w===45||hr(w)?(e.consume(w),l+=String.fromCharCode(w),C):n(w)}function x(w){return w===62?(e.consume(w),r.interrupt?t:Q):n(w)}function D(w){return _t(w)?(e.consume(w),D):k(w)}function S(w){return w===47?(e.consume(w),k):w===58||w===95||xr(w)?(e.consume(w),L):_t(w)?(e.consume(w),S):k(w)}function L(w){return w===45||w===46||w===58||w===95||hr(w)?(e.consume(w),L):M(w)}function M(w){return w===61?(e.consume(w),I):_t(w)?(e.consume(w),M):S(w)}function I(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),d=w,V):_t(w)?(e.consume(w),I):ne(w)}function V(w){return w===d?(e.consume(w),d=null,K):w===null||Xe(w)?n(w):(e.consume(w),V)}function ne(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Zt(w)?M(w):(e.consume(w),ne)}function K(w){return w===47||w===62||_t(w)?S(w):n(w)}function k(w){return w===62?(e.consume(w),H):n(w)}function H(w){return w===null||Xe(w)?Q(w):_t(w)?(e.consume(w),H):n(w)}function Q(w){return w===45&&a===2?(e.consume(w),G):w===60&&a===1?(e.consume(w),le):w===62&&a===4?(e.consume(w),Oe):w===63&&a===3?(e.consume(w),P):w===93&&a===5?(e.consume(w),ye):Xe(w)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(nQ,ce,W)(w)):w===null||Xe(w)?(e.exit("htmlFlowData"),W(w)):(e.consume(w),Q)}function W(w){return e.check(rQ,re,ce)(w)}function re(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),me}function me(w){return w===null||Xe(w)?W(w):(e.enter("htmlFlowData"),Q(w))}function G(w){return w===45?(e.consume(w),P):Q(w)}function le(w){return w===47?(e.consume(w),l="",oe):Q(w)}function oe(w){if(w===62){const te=l.toLowerCase();return kC.includes(te)?(e.consume(w),Oe):Q(w)}return xr(w)&&l.length<8?(e.consume(w),l+=String.fromCharCode(w),oe):Q(w)}function ye(w){return w===93?(e.consume(w),P):Q(w)}function P(w){return w===62?(e.consume(w),Oe):w===45&&a===2?(e.consume(w),P):Q(w)}function Oe(w){return w===null||Xe(w)?(e.exit("htmlFlowData"),ce(w)):(e.consume(w),Oe)}function ce(w){return e.exit("htmlFlow"),t(w)}}function sQ(e,t,n){const r=this;return a;function a(l){return Xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):n(l)}function s(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function oQ(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Yd,t,n)}}const lQ={name:"headingAtx",resolve:cQ,tokenize:uQ};function cQ(e,t){let n=e.length-2,r=3,a,s;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&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ta(e,r,n-r+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function uQ(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&r++<6?(e.consume(p),l):p===null||Zt(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),d(p)):p===null||Xe(p)?(e.exit("atxHeading"),t(p)):_t(p)?St(e,c,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function d(p){return p===35?(e.consume(p),d):(e.exit("atxHeadingSequence"),c(p))}function f(p){return p===null||p===35||Zt(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),f)}}const mI={name:"characterEscape",tokenize:dQ};function dQ(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return RG(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const gI={name:"characterReference",tokenize:fQ};function fQ(e,t,n){const r=this;let a=0,s,l;return c;function c(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),s=31,l=hr,p(m))}function f(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,l=kG,p):(e.enter("characterReferenceValue"),s=7,l=Yy,p(m))}function p(m){if(m===59&&a){const y=e.exit("characterReferenceValue");return l===hr&&!Nb(r.sliceSerialize(y))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&a++<s?(e.consume(m),p):n(m)}}const hQ={name:"codeText",previous:mQ,resolve:pQ,tokenize:gQ};function pQ(e){let t=e.length-4,n=3,r,a;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;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function mQ(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function gQ(e,t,n){let r=0,a,s;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),c(m)}function c(m){return m===96?(e.consume(m),r++,c):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(s=e.enter("codeTextSequence"),a=0,p(m)):Xe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(m))}function f(m){return m===null||m===32||m===96||Xe(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),f)}function p(m){return m===96?(e.consume(m),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(s.type="codeTextData",f(m))}}const Zy={name:"attention",resolveAll:yQ,tokenize:EQ};function yQ(e,t){let n=-1,r,a,s,l,c,d,f,p;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;d=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 m={...e[r][1].end},y={...e[n][1].start};RC(m,-d),RC(y,d),l={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},s={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=_a(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=_a(f,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",s,t]]),f=_a(f,wm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=_a(f,[["exit",s,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=_a(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,ta(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function EQ(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Xl(r);let s;return l;function l(d){return s=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===s)return e.consume(d),c;const f=e.exit("attentionSequence"),p=Xl(d),m=!p||p===2&&a||n.includes(d),y=!a||a===2&&p||n.includes(r);return f._open=!!(s===42?m:m&&(a||!y)),f._close=!!(s===42?y:y&&(p||!m)),t(d)}}function RC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ob={name:"labelEnd",resolveAll:_Q,resolveTo:xQ,tokenize:AQ},bQ={tokenize:SQ},vQ={tokenize:CQ},TQ={tokenize:DQ};function _Q(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 a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&ta(e,0,e.length,n),e}function xQ(e,t){let n=e.length,r=0,a,s,l,c;for(;n--;)if(a=e[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[s][1].start},end:{...e[l][1].end}},p={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",d,t],["enter",f,t]],c=_a(c,e.slice(s+1,s+r+3)),c=_a(c,[["enter",p,t]]),c=_a(c,wm(t.parser.constructs.insideSpan.null,e.slice(s+r+4,l-3),t)),c=_a(c,[["exit",p,t],e[l-2],e[l-1],["exit",f,t]]),c=_a(c,e.slice(l+1)),c=_a(c,[["exit",d,t]]),ta(e,s,e.length,c),e}function AQ(e,t,n){const r=this;let a=r.events.length,s,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){s=r.events[a][1];break}return c;function c(y){return s?s._inactive?m(y):(l=r.parser.defined.includes(Ma(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),d):n(y)}function d(y){return y===40?e.attempt(bQ,p,l?p:m)(y):y===91?e.attempt(vQ,p,l?f:m)(y):l?p(y):m(y)}function f(y){return e.attempt(TQ,p,m)(y)}function p(y){return t(y)}function m(y){return s._balanced=!0,n(y)}}function SQ(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return Zt(m)?Vu(e,s)(m):s(m)}function s(m){return m===41?p(m):fI(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return Zt(m)?Vu(e,d)(m):p(m)}function c(m){return n(m)}function d(m){return m===34||m===39||m===40?pI(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function f(m){return Zt(m)?Vu(e,p)(m):p(m)}function p(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function CQ(e,t,n){const r=this;return a;function a(c){return hI.call(r,e,s,l,"reference","referenceMarker","referenceString")(c)}function s(c){return r.parser.defined.includes(Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function DQ(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const kQ={name:"hardBreakEscape",tokenize:RQ};function RQ(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return Xe(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const IQ={name:"labelStartLink",resolveAll:Ob.resolveAll,tokenize:wQ};function wQ(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),s}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const NQ={name:"autolink",tokenize:OQ};function OQ(e,t,n){let r=0;return a;function a(E){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(E){return xr(E)?(e.consume(E),l):E===64?n(E):f(E)}function l(E){return E===43||E===45||E===46||hr(E)?(r=1,c(E)):f(E)}function c(E){return E===58?(e.consume(E),r=0,d):(E===43||E===45||E===46||hr(E))&&r++<32?(e.consume(E),c):(r=0,f(E))}function d(E){return E===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),t):E===null||E===32||E===60||Op(E)?n(E):(e.consume(E),d)}function f(E){return E===64?(e.consume(E),p):DG(E)?(e.consume(E),f):n(E)}function p(E){return hr(E)?m(E):n(E)}function m(E){return E===46?(e.consume(E),r=0,p):E===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),t):y(E)}function y(E){if((E===45||hr(E))&&r++<63){const T=E===45?y:m;return e.consume(E),T}return n(E)}}const LQ={name:"htmlText",tokenize:MQ};function MQ(e,t,n){const r=this;let a,s,l;return c;function c(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),M):P===63?(e.consume(P),S):xr(P)?(e.consume(P),ne):n(P)}function f(P){return P===45?(e.consume(P),p):P===91?(e.consume(P),s=0,T):xr(P)?(e.consume(P),D):n(P)}function p(P){return P===45?(e.consume(P),E):n(P)}function m(P){return P===null?n(P):P===45?(e.consume(P),y):Xe(P)?(l=m,le(P)):(e.consume(P),m)}function y(P){return P===45?(e.consume(P),E):m(P)}function E(P){return P===62?G(P):P===45?y(P):m(P)}function T(P){const Oe="CDATA[";return P===Oe.charCodeAt(s++)?(e.consume(P),s===Oe.length?A:T):n(P)}function A(P){return P===null?n(P):P===93?(e.consume(P),C):Xe(P)?(l=A,le(P)):(e.consume(P),A)}function C(P){return P===93?(e.consume(P),x):A(P)}function x(P){return P===62?G(P):P===93?(e.consume(P),x):A(P)}function D(P){return P===null||P===62?G(P):Xe(P)?(l=D,le(P)):(e.consume(P),D)}function S(P){return P===null?n(P):P===63?(e.consume(P),L):Xe(P)?(l=S,le(P)):(e.consume(P),S)}function L(P){return P===62?G(P):S(P)}function M(P){return xr(P)?(e.consume(P),I):n(P)}function I(P){return P===45||hr(P)?(e.consume(P),I):V(P)}function V(P){return Xe(P)?(l=V,le(P)):_t(P)?(e.consume(P),V):G(P)}function ne(P){return P===45||hr(P)?(e.consume(P),ne):P===47||P===62||Zt(P)?K(P):n(P)}function K(P){return P===47?(e.consume(P),G):P===58||P===95||xr(P)?(e.consume(P),k):Xe(P)?(l=K,le(P)):_t(P)?(e.consume(P),K):G(P)}function k(P){return P===45||P===46||P===58||P===95||hr(P)?(e.consume(P),k):H(P)}function H(P){return P===61?(e.consume(P),Q):Xe(P)?(l=H,le(P)):_t(P)?(e.consume(P),H):K(P)}function Q(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),a=P,W):Xe(P)?(l=Q,le(P)):_t(P)?(e.consume(P),Q):(e.consume(P),re)}function W(P){return P===a?(e.consume(P),a=void 0,me):P===null?n(P):Xe(P)?(l=W,le(P)):(e.consume(P),W)}function re(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Zt(P)?K(P):(e.consume(P),re)}function me(P){return P===47||P===62||Zt(P)?K(P):n(P)}function G(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function le(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),oe}function oe(P){return _t(P)?St(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ye(P)}function ye(P){return e.enter("htmlTextData"),l(P)}}const PQ={name:"labelStartImage",resolveAll:Ob.resolveAll,tokenize:$Q};function $Q(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),s}function s(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const z1={name:"lineEnding",tokenize:FQ};function FQ(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),St(e,t,"linePrefix")}}const jQ={42:wr,43:wr,45:wr,48:wr,49:wr,50:wr,51:wr,52:wr,53:wr,54:wr,55:wr,56:wr,57:wr,62:dI},BQ={91:zY},UQ={[-2]:H1,[-1]:H1,32:H1},HQ={35:lQ,42:Wh,45:[DC,Wh],60:tQ,61:DC,95:Wh,96:CC,126:CC},zQ={38:gI,92:mI},GQ={[-5]:z1,[-4]:z1,[-3]:z1,33:PQ,38:gI,42:Zy,60:[NQ,LQ],91:IQ,92:[kQ,mI],93:Ob,95:Zy,96:hQ},VQ={null:[Zy,kY]},qQ={null:[42,95]},YQ={null:[]},QQ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:qQ,contentInitial:BQ,disable:YQ,document:jQ,flow:HQ,flowInitial:UQ,insideSpan:VQ,string:zQ,text:GQ},Symbol.toStringTag,{value:"Module"}));function KQ(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 a={},s=[];let l=[],c=[];const d={attempt:V(M),check:V(I),consume:D,enter:S,exit:L,interrupt:V(I,{interrupt:!0})},f={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:e,previous:null,sliceSerialize:y,sliceStream:E,write:m};let p=t.tokenize.call(f,d);return t.resolveAll&&s.push(t),f;function m(H){return l=_a(l,H),C(),l[l.length-1]!==null?[]:(ne(t,0),f.events=wm(s,f.events,f),f.events)}function y(H,Q){return XQ(E(H),Q)}function E(H){return WQ(l,H)}function T(){const{_bufferIndex:H,_index:Q,line:W,column:re,offset:me}=r;return{_bufferIndex:H,_index:Q,line:W,column:re,offset:me}}function A(H){a[H.line]=H.column,k()}function C(){let H;for(;r._index<l.length;){const Q=l[r._index];if(typeof Q=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<Q.length;)x(Q.charCodeAt(r._bufferIndex));else x(Q)}}function x(H){p=p(H)}function D(H){Xe(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,k()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=H}function S(H,Q){const W=Q||{};return W.type=H,W.start=T(),f.events.push(["enter",W,f]),c.push(W),W}function L(H){const Q=c.pop();return Q.end=T(),f.events.push(["exit",Q,f]),Q}function M(H,Q){ne(H,Q.from)}function I(H,Q){Q.restore()}function V(H,Q){return W;function W(re,me,G){let le,oe,ye,P;return Array.isArray(re)?ce(re):"tokenize"in re?ce([re]):Oe(re);function Oe(Ie){return Me;function Me(Le){const st=Le!==null&&Ie[Le],dt=Le!==null&&Ie.null,Ue=[...Array.isArray(st)?st:st?[st]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return ce(Ue)(Le)}}function ce(Ie){return le=Ie,oe=0,Ie.length===0?G:w(Ie[oe])}function w(Ie){return Me;function Me(Le){return P=K(),ye=Ie,Ie.partial||(f.currentConstruct=Ie),Ie.name&&f.parser.constructs.disable.null.includes(Ie.name)?Ce():Ie.tokenize.call(Q?Object.assign(Object.create(f),Q):f,d,te,Ce)(Le)}}function te(Ie){return H(ye,P),me}function Ce(Ie){return P.restore(),++oe<le.length?w(le[oe]):G}}}function ne(H,Q){H.resolveAll&&!s.includes(H)&&s.push(H),H.resolve&&ta(f.events,Q,f.events.length-Q,H.resolve(f.events.slice(Q),f)),H.resolveTo&&(f.events=H.resolveTo(f.events,f))}function K(){const H=T(),Q=f.previous,W=f.currentConstruct,re=f.events.length,me=Array.from(c);return{from:re,restore:G};function G(){r=H,f.previous=Q,f.currentConstruct=W,f.events.length=re,c=me,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function WQ(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,s)];else{if(l=e.slice(n,a),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}s>0&&l.push(e[a].slice(0,s))}return l}function XQ(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const s=e[n];let l;if(typeof s=="string")l=s;else switch(s){case-5:{l="\r";break}case-4:{l=`
194
- `;break}case-3:{l=`\r
195
- `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(s)}a=s===-2,r.push(l)}return r.join("")}function ZQ(e){const t={constructs:LR([QQ,...(e||{}).extensions||[]]),content:n(gY),defined:[],document:n(EY),flow:n(CY),lazy:{},string:n(RY),text:n(IY)};return t;function n(r){return a;function a(s){return KQ(t,r,s)}}}const IC=/[\0\t\n\r]/g;function JQ(){let e=1,t="",n=!0,r;return a;function a(s,l,c){const d=[];let f,p,m,y,E;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(l||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(IC.lastIndex=m,f=IC.exec(s),y=f&&f.index!==void 0?f.index:s.length,E=s.charCodeAt(y),!f){t=s.slice(m);break}if(E===10&&m===y&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),m<y&&(d.push(s.slice(m,y)),e+=y-m),E){case 0:{d.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,d.push(-2);e++<p;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}m=y+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const yI={}.hasOwnProperty;function eK(e,t,n){return typeof t!="string"&&(n=t,t=void 0),tK(n)(mY(ZQ(n).document().write(JQ()(e,t,!0))))}function tK(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(an),autolinkProtocol:K,autolinkEmail:K,atxHeading:s(sr),blockQuote:s(dt),characterEscape:K,characterReference:K,codeFenced:s(Ue),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Ue,l),codeText:s(en,l),codeTextData:K,data:K,codeFlowValue:K,definition:s(wt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s($e),hardBreakEscape:s(fn),hardBreakTrailing:s(fn),htmlFlow:s(Ve,l),htmlFlowData:K,htmlText:s(Ve,l),htmlTextData:K,image:s(Zn),label:l,link:s(an),listItem:s(Ye),listItemValue:y,listOrdered:s(on,m),listUnordered:s(on),paragraph:s(Ct),reference:w,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(sr),strong:s(Sr),thematicBreak:s(Rt)},exit:{atxHeading:d(),atxHeadingSequence:M,autolink:d(),autolinkEmail:st,autolinkProtocol:Le,blockQuote:d(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:Ie,characterReference:Me,codeFenced:d(C),codeFencedFence:A,codeFencedFenceInfo:E,codeFencedFenceMeta:T,codeFlowValue:k,codeIndented:d(x),codeText:d(me),codeTextData:k,data:k,definition:d(),definitionDestinationString:L,definitionLabelString:D,definitionTitleString:S,emphasis:d(),hardBreakEscape:d(Q),hardBreakTrailing:d(Q),htmlFlow:d(W),htmlFlowData:k,htmlText:d(re),htmlTextData:k,image:d(le),label:ye,labelText:oe,lineEnding:H,link:d(G),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:te,resourceDestinationString:P,resourceTitleString:Oe,resource:ce,setextHeading:d(ne),setextHeadingLineSequence:V,setextHeadingText:I,strong:d(),thematicBreak:d()}};EI(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ve={type:"root",children:[]};const je={stack:[ve],tokenStack:[],config:t,enter:c,exit:f,buffer:l,resume:p,data:n},nt=[];let Dt=-1;for(;++Dt<ue.length;)if(ue[Dt][1].type==="listOrdered"||ue[Dt][1].type==="listUnordered")if(ue[Dt][0]==="enter")nt.push(Dt);else{const Nt=nt.pop();Dt=a(ue,Nt,Dt)}for(Dt=-1;++Dt<ue.length;){const Nt=t[ue[Dt][0]];yI.call(Nt,ue[Dt][1].type)&&Nt[ue[Dt][1].type].call(Object.assign({sliceSerialize:ue[Dt][2].sliceSerialize},je),ue[Dt][1])}if(je.tokenStack.length>0){const Nt=je.tokenStack[je.tokenStack.length-1];(Nt[1]||wC).call(je,void 0,Nt[0])}for(ve.position={start:vs(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:vs(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt<t.transforms.length;)ve=t.transforms[Dt](ve)||ve;return ve}function a(ue,ve,je){let nt=ve-1,Dt=-1,Nt=!1,Vn,yn,Cn,_e;for(;++nt<=je;){const Te=ue[nt];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Dt++:Dt--,_e=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(Vn&&!_e&&!Dt&&!Cn&&(Cn=nt),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!Dt&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||Dt===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(Vn){let it=nt;for(yn=void 0;it--;){const We=ue[it];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;yn&&(ue[yn][1].type="lineEndingBlank",Nt=!0),We[1].type="lineEnding",yn=it}else if(!(We[1].type==="linePrefix"||We[1].type==="blockQuotePrefix"||We[1].type==="blockQuotePrefixWhitespace"||We[1].type==="blockQuoteMarker"||We[1].type==="listItemIndent"))break}Cn&&(!yn||Cn<yn)&&(Vn._spread=!0),Vn.end=Object.assign({},yn?ue[yn][1].start:Te[1].end),ue.splice(yn||nt,0,["exit",Vn,Te[2]]),nt++,je++}if(Te[1].type==="listItemPrefix"){const it={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};Vn=it,ue.splice(nt,0,["enter",it,Te[2]]),nt++,je++,Cn=void 0,_e=!0}}}return ue[ve][1]._spread=Nt,je}function s(ue,ve){return je;function je(nt){c.call(this,ue(nt),nt),ve&&ve.call(this,nt)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(ue,ve,je){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([ve,je||void 0]),ue.position={start:vs(ve.start),end:void 0}}function d(ue){return ve;function ve(je){ue&&ue.call(this,je),f.call(this,je)}}function f(ue,ve){const je=this.stack.pop(),nt=this.tokenStack.pop();if(nt)nt[0].type!==ue.type&&(ve?ve.call(this,ue,nt[0]):(nt[1]||wC).call(this,ue,nt[0]));else throw new Error("Cannot close `"+ue.type+"` ("+Gu({start:ue.start,end:ue.end})+"): it’s not open");je.position.end=vs(ue.end)}function p(){return Ib(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function y(ue){if(this.data.expectingFirstListItemValue){const ve=this.stack[this.stack.length-2];ve.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function E(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.lang=ue}function T(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.meta=ue}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/(\r?\n|\r)$/g,"")}function D(ue){const ve=this.resume(),je=this.stack[this.stack.length-1];je.label=ve,je.identifier=Ma(this.sliceSerialize(ue)).toLowerCase()}function S(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function L(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function M(ue){const ve=this.stack[this.stack.length-1];if(!ve.depth){const je=this.sliceSerialize(ue).length;ve.depth=je}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function V(ue){const ve=this.stack[this.stack.length-1];ve.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function K(ue){const ve=this.stack[this.stack.length-1].children;let je=ve[ve.length-1];(!je||je.type!=="text")&&(je=Ua(),je.position={start:vs(ue.start),end:void 0},ve.push(je)),this.stack.push(je)}function k(ue){const ve=this.stack.pop();ve.value+=this.sliceSerialize(ue),ve.position.end=vs(ue.end)}function H(ue){const ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const je=ve.children[ve.children.length-1];je.position.end=vs(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ve.type)&&(K.call(this,ue),k.call(this,ue))}function Q(){this.data.atHardBreak=!0}function W(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function re(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function me(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function G(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function le(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function oe(ue){const ve=this.sliceSerialize(ue),je=this.stack[this.stack.length-2];je.label=dY(ve),je.identifier=Ma(ve).toLowerCase()}function ye(){const ue=this.stack[this.stack.length-1],ve=this.resume(),je=this.stack[this.stack.length-1];if(this.data.inReference=!0,je.type==="link"){const nt=ue.children;je.children=nt}else je.alt=ve}function P(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function Oe(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function ce(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function te(ue){const ve=this.resume(),je=this.stack[this.stack.length-1];je.label=ve,je.identifier=Ma(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function Ce(ue){this.data.characterReferenceType=ue.type}function Ie(ue){const ve=this.sliceSerialize(ue),je=this.data.characterReferenceType;let nt;je?(nt=oI(ve,je==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):nt=Nb(ve);const Dt=this.stack[this.stack.length-1];Dt.value+=nt}function Me(ue){const ve=this.stack.pop();ve.position.end=vs(ue.end)}function Le(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url=this.sliceSerialize(ue)}function st(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url="mailto:"+this.sliceSerialize(ue)}function dt(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function en(){return{type:"inlineCode",value:""}}function wt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $e(){return{type:"emphasis",children:[]}}function sr(){return{type:"heading",depth:0,children:[]}}function fn(){return{type:"break"}}function Ve(){return{type:"html",value:""}}function Zn(){return{type:"image",title:null,url:"",alt:null}}function an(){return{type:"link",title:null,url:"",children:[]}}function on(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Ye(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function Sr(){return{type:"strong",children:[]}}function Ua(){return{type:"text",value:""}}function Rt(){return{type:"thematicBreak"}}}function vs(e){return{line:e.line,column:e.column,offset:e.offset}}function EI(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?EI(e,r):nK(e,r)}}function nK(e,t){let n;for(n in t)if(yI.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 wC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Gu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Gu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Gu({start:t.start,end:t.end})+") is still open")}function rK(e){const t=this;t.parser=n;function n(r){return eK(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const bI=-1,Nm=0,qu=1,Mp=2,Lb=3,Mb=4,Pb=5,$b=6,vI=7,TI=8,NC=typeof self=="object"?self:globalThis,aK=(e,t)=>{const n=(a,s)=>(e.set(s,a),a),r=a=>{if(e.has(a))return e.get(a);const[s,l]=t[a];switch(s){case Nm:case bI:return n(l,a);case qu:{const c=n([],a);for(const d of l)c.push(r(d));return c}case Mp:{const c=n({},a);for(const[d,f]of l)c[r(d)]=r(f);return c}case Lb:return n(new Date(l),a);case Mb:{const{source:c,flags:d}=l;return n(new RegExp(c,d),a)}case Pb:{const c=n(new Map,a);for(const[d,f]of l)c.set(r(d),r(f));return c}case $b:{const c=n(new Set,a);for(const d of l)c.add(r(d));return c}case vI:{const{name:c,message:d}=l;return n(new NC[c](d),a)}case TI:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new NC[s](l),a)};return r},OC=e=>aK(new Map,e)(0),kl="",{toString:iK}={},{keys:sK}=Object,vu=e=>{const t=typeof e;if(t!=="object"||!e)return[Nm,t];const n=iK.call(e).slice(8,-1);switch(n){case"Array":return[qu,kl];case"Object":return[Mp,kl];case"Date":return[Lb,kl];case"RegExp":return[Mb,kl];case"Map":return[Pb,kl];case"Set":return[$b,kl];case"DataView":return[qu,n]}return n.includes("Array")?[qu,n]:n.includes("Error")?[vI,n]:[Mp,n]},Ch=([e,t])=>e===Nm&&(t==="function"||t==="symbol"),oK=(e,t,n,r)=>{const a=(l,c)=>{const d=r.push(l)-1;return n.set(c,d),d},s=l=>{if(n.has(l))return n.get(l);let[c,d]=vu(l);switch(c){case Nm:{let p=l;switch(d){case"bigint":c=TI,p=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);p=null;break;case"undefined":return a([bI],l)}return a([c,p],l)}case qu:{if(d){let y=l;return d==="DataView"?y=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(y=new Uint8Array(l)),a([d,[...y]],l)}const p=[],m=a([c,p],l);for(const y of l)p.push(s(y));return m}case Mp:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return s(l.toJSON());const p=[],m=a([c,p],l);for(const y of sK(l))(e||!Ch(vu(l[y])))&&p.push([s(y),s(l[y])]);return m}case Lb:return a([c,l.toISOString()],l);case Mb:{const{source:p,flags:m}=l;return a([c,{source:p,flags:m}],l)}case Pb:{const p=[],m=a([c,p],l);for(const[y,E]of l)(e||!(Ch(vu(y))||Ch(vu(E))))&&p.push([s(y),s(E)]);return m}case $b:{const p=[],m=a([c,p],l);for(const y of l)(e||!Ch(vu(y)))&&p.push(s(y));return m}}const{message:f}=l;return a([c,{name:d,message:f}],l)};return s},LC=(e,{json:t,lossy:n}={})=>{const r=[];return oK(!(t||n),!!t,new Map,r)(e),r},No=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?OC(LC(e,t)):structuredClone(e):(e,t)=>OC(LC(e,t));function oc(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let l="";if(s===37&&hr(e.charCodeAt(n+1))&&hr(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(l=String.fromCharCode(s));else if(s>55295&&s<57344){const c=e.charCodeAt(n+1);s<56320&&c>56319&&c<57344?(l=String.fromCharCode(s,c),a=1):l="�"}else l=String.fromCharCode(s);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function lK(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function cK(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function uK(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lK,r=e.options.footnoteBackLabel||cK,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const p=e.all(f),m=String(f.identifier).toUpperCase(),y=oc(m.toLowerCase());let E=0;const T=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++E<=A;){T.length>0&&T.push({type:"text",value:" "});let D=typeof n=="string"?n:n(d,E);typeof D=="string"&&(D={type:"text",value:D}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(E>1?"-"+E:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,E),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const C=p[p.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const D=C.children[C.children.length-1];D&&D.type==="text"?D.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...T)}else p.push(...T);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(p,!0)};e.patch(f,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...No(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
196
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
197
- `}]}}function dK(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 fK(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
198
- `}]}function hK(e,t){const n=t.value?t.value+`
199
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function pK(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mK(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gK(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=oc(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=s+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function yK(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EK(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _I(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function bK(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _I(e,t);const a={src:oc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function vK(e,t){const n={src:oc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function TK(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function _K(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _I(e,t);const a={href:oc(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function xK(e,t){const n={href:oc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AK(e,t,n){const r=e.all(t),a=n?SK(n):xI(t),s={},l=[];if(typeof t.checked=="boolean"){const p=r[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const p=r[c];(a||c!==0||p.type!=="element"||p.tagName!=="p")&&l.push({type:"text",value:`
200
- `}),p.type==="element"&&p.tagName==="p"&&!a?l.push(...p.children):l.push(p)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
201
- `});const f={type:"element",tagName:"li",properties:s,children:l};return e.patch(t,f),e.applyData(t,f)}function SK(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=xI(n[r])}return t}function xI(e){return e.spread??e.children.length>1}function CK(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function DK(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kK(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function RK(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Om=AI("end"),fi=AI("start");function AI(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 IK(e){const t=fi(e),n=Om(e);if(t&&n)return{start:t,end:n}}function wK(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=fi(t.children[1]),d=Om(t.children[t.children.length-1]);c&&d&&(l.position={start:c,end:d}),a.push(l)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function NK(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:t.children.length;let c=-1;const d=[];for(;++c<l;){const p=t.children[c],m={},y=s?s[c]:void 0;y&&(m.align=y);let E={type:"element",tagName:a,properties:m,children:[]};p&&(E.children=e.all(p),e.patch(p,E),E=e.applyData(p,E)),d.push(E)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,f),e.applyData(t,f)}function OK(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function LK(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(MC(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(MC(t.slice(a),a>0,!1)),s.join("")}function MC(e,t,n){let r=0,a=e.length;if(t){let s=e.codePointAt(r);for(;s===9||s===32;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(a-1);for(;s===9||s===32;)a--,s=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function MK(e,t){const n={type:"text",value:LK(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function PK(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const $K={blockquote:dK,break:fK,code:hK,delete:pK,emphasis:mK,footnoteReference:gK,heading:yK,html:EK,imageReference:bK,image:vK,inlineCode:TK,linkReference:_K,link:xK,listItem:AK,list:CK,paragraph:DK,root:kK,strong:RK,table:wK,tableCell:OK,tableRow:NK,text:MK,thematicBreak:PK,toml:Dh,yaml:Dh,definition:Dh,footnoteDefinition:Dh};function Dh(){}const Jy={}.hasOwnProperty,FK={};function jK(e,t){const n=t||FK,r=new Map,a=new Map,s=new Map,l={...$K,...n.handlers},c={all:f,applyData:UK,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:l,one:d,options:n,patch:BK,wrap:zK};return $r(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const m=p.type==="definition"?r:a,y=String(p.identifier).toUpperCase();m.has(y)||m.set(y,p)}}),c;function d(p,m){const y=p.type,E=c.handlers[y];if(Jy.call(c.handlers,y)&&E)return E(c,p,m);if(c.options.passThrough&&c.options.passThrough.includes(y)){if("children"in p){const{children:T,...A}=p,C=No(A);return C.children=c.all(p),C}return No(p)}return(c.options.unknownHandler||HK)(c,p,m)}function f(p){const m=[];if("children"in p){const y=p.children;let E=-1;for(;++E<y.length;){const T=c.one(y[E],p);if(T){if(E&&y[E-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=PC(T.value)),!Array.isArray(T)&&T.type==="element")){const A=T.children[0];A&&A.type==="text"&&(A.value=PC(A.value))}Array.isArray(T)?m.push(...T):m.push(T)}}}return m}}function BK(e,t){e.position&&(t.position=IK(e))}function UK(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&s&&Object.assign(n.properties,No(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function HK(e,t){const n=t.data||{},r="value"in t&&!(Jy.call(n,"hProperties")||Jy.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zK(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
202
- `});++r<e.length;)r&&n.push({type:"text",value:`
203
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
204
- `}),n}function PC(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function $C(e,t){const n=jK(e,t),r=n.one(e,void 0),a=uK(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&s.children.push({type:"text",value:`
205
- `},a),s}function GK(e,t){return e&&"run"in e?async function(n,r){const a=$C(n,{file:r,...t});await e.run(a,r)}:function(n,r){return $C(n,{file:r,...e||t})}}var Rl={},G1,FC;function VK(){if(FC)return G1;FC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
206
- `,f="/",p="*",m="",y="comment",E="declaration";G1=function(A,C){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];C=C||{};var x=1,D=1;function S(W){var re=W.match(t);re&&(x+=re.length);var me=W.lastIndexOf(d);D=~me?W.length-me:D+W.length}function L(){var W={line:x,column:D};return function(re){return re.position=new M(W),ne(),re}}function M(W){this.start=W,this.end={line:x,column:D},this.source=C.source}M.prototype.content=A;function I(W){var re=new Error(C.source+":"+x+":"+D+": "+W);if(re.reason=W,re.filename=C.source,re.line=x,re.column=D,re.source=A,!C.silent)throw re}function V(W){var re=W.exec(A);if(re){var me=re[0];return S(me),A=A.slice(me.length),re}}function ne(){V(n)}function K(W){var re;for(W=W||[];re=k();)re!==!1&&W.push(re);return W}function k(){var W=L();if(!(f!=A.charAt(0)||p!=A.charAt(1))){for(var re=2;m!=A.charAt(re)&&(p!=A.charAt(re)||f!=A.charAt(re+1));)++re;if(re+=2,m===A.charAt(re-1))return I("End of comment missing");var me=A.slice(2,re-2);return D+=2,S(me),A=A.slice(re),D+=2,W({type:y,comment:me})}}function H(){var W=L(),re=V(r);if(re){if(k(),!V(a))return I("property missing ':'");var me=V(s),G=W({type:E,property:T(re[0].replace(e,m)),value:me?T(me[0].replace(e,m)):m});return V(l),G}}function Q(){var W=[];K(W);for(var re;re=H();)re!==!1&&(W.push(re),K(W));return W}return ne(),Q()};function T(A){return A?A.replace(c,m):m}return G1}var jC;function qK(){if(jC)return Rl;jC=1;var e=Rl&&Rl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=n;var t=e(VK());function n(r,a){var s=null;if(!r||typeof r!="string")return s;var l=(0,t.default)(r),c=typeof a=="function";return l.forEach(function(d){if(d.type==="declaration"){var f=d.property,p=d.value;c?a(f,p,d):p&&(s=s||{},s[f]=p)}}),s}return Rl}var Tu={},BC;function YK(){if(BC)return Tu;BC=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(f){return!f||n.test(f)||e.test(f)},l=function(f,p){return p.toUpperCase()},c=function(f,p){return"".concat(p,"-")},d=function(f,p){return p===void 0&&(p={}),s(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(a,c):f=f.replace(r,c),f.replace(t,l))};return Tu.camelCase=d,Tu}var _u,UC;function QK(){if(UC)return _u;UC=1;var e=_u&&_u.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(qK()),n=YK();function r(a,s){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(c,d){c&&d&&(l[(0,n.camelCase)(c,s)]=d)}),l}return r.default=r,_u=r,_u}var KK=QK();const WK=Sm(KK),XK=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZK=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JK={};function HC(e,t){return(JK.jsx?ZK:XK).test(e)}const eW={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"},Fb={}.hasOwnProperty,tW=new Map,nW=/[A-Z]/g,rW=new Set(["table","tbody","thead","tfoot","tr"]),aW=new Set(["td","th"]),SI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iW(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=hW(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=fW(n,t.jsx,t.jsxs)}const a={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"?Gi:nc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=CI(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function CI(e,t,n){if(t.type==="element")return sW(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return oW(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return cW(e,t,n);if(t.type==="mdxjsEsm")return lW(e,t);if(t.type==="root")return uW(e,t,n);if(t.type==="text")return dW(e,t)}function sW(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Gi,e.schema=a),e.ancestors.push(t);const s=kI(e,t.tagName,!1),l=pW(e,t);let c=Bb(e,t);return rW.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!$d(d):!0})),DI(e,l,s,t),jb(l,c),e.ancestors.pop(),e.schema=r,e.create(t,s,l,n)}function oW(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Sd(e,t.position)}function lW(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Sd(e,t.position)}function cW(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Gi,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:kI(e,t.name,!0),l=mW(e,t),c=Bb(e,t);return DI(e,l,s,t),jb(l,c),e.ancestors.pop(),e.schema=r,e.create(t,s,l,n)}function uW(e,t,n){const r={};return jb(r,Bb(e,t)),e.create(t,e.Fragment,r,n)}function dW(e,t){return t.value}function DI(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function jb(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function fW(e,t,n){return r;function r(a,s,l,c){const d=Array.isArray(l.children)?n:t;return c?d(s,l,c):d(s,l)}}function hW(e,t){return n;function n(r,a,s,l){const c=Array.isArray(s.children),d=fi(r);return t(a,s,l,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function pW(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Fb.call(t.properties,a)){const s=gW(e,a,t.properties[a]);if(s){const[l,c]=s;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&aW.has(t.tagName)?r=c:n[l]=c}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function mW(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const l=s.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Sd(e,t.position);else{const a=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,s=e.evaluater.evaluateExpression(l.expression)}else Sd(e,t.position);else s=r.value===null?!0:r.value;n[a]=s}return n}function Bb(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:tW;for(;++r<t.children.length;){const s=t.children[r];let l;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const f=a.get(d)||0;l=d+"-"+f,a.set(d,f+1)}}const c=CI(e,s,l);c!==void 0&&n.push(c)}return n}function gW(e,t,n){const r=Fd(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?am(n):im(n)),r.property==="style"){let a=typeof n=="object"?n:yW(e,String(n));return e.stylePropertyNameCase==="css"&&(a=EW(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?eW[r.property]||r.property:r.attribute,n]}}function yW(e,t){try{return WK(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new mr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=SI+"#cannot-parse-style-attribute",a}}function kI(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,l;for(;++s<a.length;){const c=HC(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}r=l}else r=HC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Fb.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Sd(e)}function Sd(e,t){const n=new mr("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=SI+"#cannot-handle-mdx-estrees-without-createevaluater",n}function EW(e){const t={};let n;for(n in e)Fb.call(e,n)&&(t[bW(n)]=e[n]);return t}function bW(e){let t=e.replace(nW,vW);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vW(e){return"-"+e.toLowerCase()}const V1={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"]},TW="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",zC=[],GC={allowDangerousHtml:!0},_W=/^(https?|ircs?|mailto|xmpp)$/i,xW=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function AW(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,s=e.components,l=e.disallowedElements,c=e.rehypePlugins||zC,d=e.remarkPlugins||zC,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...GC}:GC,p=e.skipHtml,m=e.unwrapDisallowed,y=e.urlTransform||SW,E=sY().use(rK).use(d).use(GK,f).use(c),T=new iI;typeof r=="string"&&(T.value=r);for(const D of xW)Object.hasOwn(e,D.from)&&(""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+TW+D.id,void 0);const A=E.parse(T);let C=E.runSync(A,T);return a&&(C={type:"element",tagName:"div",properties:{className:a},children:C.type==="root"?C.children:[C]}),$r(C,x),iW(C,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function x(D,S,L){if(D.type==="raw"&&L&&typeof S=="number")return p?L.children.splice(S,1):L.children[S]={type:"text",value:D.value},S;if(D.type==="element"){let M;for(M in V1)if(Object.hasOwn(V1,M)&&Object.hasOwn(D.properties,M)){const I=D.properties[M],V=V1[M];(V===null||V.includes(D.tagName))&&(D.properties[M]=y(String(I||""),M,D))}}if(D.type==="element"){let M=t?!t.includes(D.tagName):l?l.includes(D.tagName):!1;if(!M&&n&&typeof S=="number"&&(M=!n(D,S,L)),M&&L&&typeof S=="number")return m&&D.children?L.children.splice(S,1,...D.children):L.children.splice(S,1),S}}}function SW(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||_W.test(e.slice(0,t))?e:""}const CW=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),dn="�";var $;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})($||($={}));const Ir={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function RI(e){return e>=55296&&e<=57343}function DW(e){return e>=56320&&e<=57343}function kW(e,t){return(e-55296)*1024+9216+t}function II(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function wI(e){return e>=64976&&e<=65007||CW.has(e)}var fe;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(fe||(fe={}));const RW=65536;let IW=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=RW,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:s}=this,l=a+n,c=s+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(DW(n))return this.pos++,this._addGap(),kW(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$.EOF;return this._err(fe.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;const r=this.html.charCodeAt(n);return r===$.CARRIAGE_RETURN?$.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;let t=this.html.charCodeAt(this.pos);return t===$.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$.LINE_FEED):t===$.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,RI(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===$.LINE_FEED||t===$.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){II(t)?this._err(fe.controlCharacterInInputStream):wI(t)&&this._err(fe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var Et;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Et||(Et={}));function NI(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const wW=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function NW(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=wW.get(e))!==null&&t!==void 0?t:e}var Xn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Xn||(Xn={}));const OW=32;var ks;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ks||(ks={}));function eE(e){return e>=Xn.ZERO&&e<=Xn.NINE}function LW(e){return e>=Xn.UPPER_A&&e<=Xn.UPPER_F||e>=Xn.LOWER_A&&e<=Xn.LOWER_F}function MW(e){return e>=Xn.UPPER_A&&e<=Xn.UPPER_Z||e>=Xn.LOWER_A&&e<=Xn.LOWER_Z||eE(e)}function PW(e){return e===Xn.EQUALS||MW(e)}var Kn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Kn||(Kn={}));var Fi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Fi||(Fi={}));let $W=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Kn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Fi.Strict}startEntity(t){this.decodeMode=t,this.state=Kn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Kn.EntityStart:return t.charCodeAt(n)===Xn.NUM?(this.state=Kn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Kn.NamedEntity,this.stateNamedEntity(t,n));case Kn.NumericStart:return this.stateNumericStart(t,n);case Kn.NumericDecimal:return this.stateNumericDecimal(t,n);case Kn.NumericHex:return this.stateNumericHex(t,n);case Kn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|OW)===Xn.LOWER_X?(this.state=Kn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Kn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const s=r-n;this.result=this.result*Math.pow(a,s)+Number.parseInt(t.substr(n,s),a),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(eE(a)||LW(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(eE(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Xn.SEMI)this.consumed+=1;else if(this.decodeMode===Fi.Strict)return 0;return this.emitCodePoint(NW(this.result),this.consumed),this.errors&&(t!==Xn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],s=(a&ks.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=FW(r,a,this.treeIndex+Math.max(1,s),l),this.treeIndex<0)return this.result===0||this.decodeMode===Fi.Attribute&&(s===0||PW(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],s=(a&ks.VALUE_LENGTH)>>14,s!==0){if(l===Xn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Fi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&ks.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~ks.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Kn.NamedEntity:return this.result!==0&&(this.decodeMode!==Fi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Kn.NumericDecimal:return this.emitNumericEntity(0,2);case Kn.NumericHex:return this.emitNumericEntity(0,3);case Kn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Kn.EntityStart:return 0}}};function FW(e,t,n,r){const a=(t&ks.BRANCH_LENGTH)>>7,s=t&ks.JUMP_TABLE;if(a===0)return s!==0&&r===s?n:-1;if(s){const d=r-s;return d<0||d>=a?-1:e[n+d]-1}let l=n,c=l+a-1;for(;l<=c;){const d=l+c>>>1,f=e[d];if(f<r)l=d+1;else if(f>r)c=d-1;else return e[d+a]}return-1}var xe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(xe||(xe={}));var xo;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(xo||(xo={}));var xa;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(xa||(xa={}));var J;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(J||(J={}));var _;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(_||(_={}));const jW=new Map([[J.A,_.A],[J.ADDRESS,_.ADDRESS],[J.ANNOTATION_XML,_.ANNOTATION_XML],[J.APPLET,_.APPLET],[J.AREA,_.AREA],[J.ARTICLE,_.ARTICLE],[J.ASIDE,_.ASIDE],[J.B,_.B],[J.BASE,_.BASE],[J.BASEFONT,_.BASEFONT],[J.BGSOUND,_.BGSOUND],[J.BIG,_.BIG],[J.BLOCKQUOTE,_.BLOCKQUOTE],[J.BODY,_.BODY],[J.BR,_.BR],[J.BUTTON,_.BUTTON],[J.CAPTION,_.CAPTION],[J.CENTER,_.CENTER],[J.CODE,_.CODE],[J.COL,_.COL],[J.COLGROUP,_.COLGROUP],[J.DD,_.DD],[J.DESC,_.DESC],[J.DETAILS,_.DETAILS],[J.DIALOG,_.DIALOG],[J.DIR,_.DIR],[J.DIV,_.DIV],[J.DL,_.DL],[J.DT,_.DT],[J.EM,_.EM],[J.EMBED,_.EMBED],[J.FIELDSET,_.FIELDSET],[J.FIGCAPTION,_.FIGCAPTION],[J.FIGURE,_.FIGURE],[J.FONT,_.FONT],[J.FOOTER,_.FOOTER],[J.FOREIGN_OBJECT,_.FOREIGN_OBJECT],[J.FORM,_.FORM],[J.FRAME,_.FRAME],[J.FRAMESET,_.FRAMESET],[J.H1,_.H1],[J.H2,_.H2],[J.H3,_.H3],[J.H4,_.H4],[J.H5,_.H5],[J.H6,_.H6],[J.HEAD,_.HEAD],[J.HEADER,_.HEADER],[J.HGROUP,_.HGROUP],[J.HR,_.HR],[J.HTML,_.HTML],[J.I,_.I],[J.IMG,_.IMG],[J.IMAGE,_.IMAGE],[J.INPUT,_.INPUT],[J.IFRAME,_.IFRAME],[J.KEYGEN,_.KEYGEN],[J.LABEL,_.LABEL],[J.LI,_.LI],[J.LINK,_.LINK],[J.LISTING,_.LISTING],[J.MAIN,_.MAIN],[J.MALIGNMARK,_.MALIGNMARK],[J.MARQUEE,_.MARQUEE],[J.MATH,_.MATH],[J.MENU,_.MENU],[J.META,_.META],[J.MGLYPH,_.MGLYPH],[J.MI,_.MI],[J.MO,_.MO],[J.MN,_.MN],[J.MS,_.MS],[J.MTEXT,_.MTEXT],[J.NAV,_.NAV],[J.NOBR,_.NOBR],[J.NOFRAMES,_.NOFRAMES],[J.NOEMBED,_.NOEMBED],[J.NOSCRIPT,_.NOSCRIPT],[J.OBJECT,_.OBJECT],[J.OL,_.OL],[J.OPTGROUP,_.OPTGROUP],[J.OPTION,_.OPTION],[J.P,_.P],[J.PARAM,_.PARAM],[J.PLAINTEXT,_.PLAINTEXT],[J.PRE,_.PRE],[J.RB,_.RB],[J.RP,_.RP],[J.RT,_.RT],[J.RTC,_.RTC],[J.RUBY,_.RUBY],[J.S,_.S],[J.SCRIPT,_.SCRIPT],[J.SEARCH,_.SEARCH],[J.SECTION,_.SECTION],[J.SELECT,_.SELECT],[J.SOURCE,_.SOURCE],[J.SMALL,_.SMALL],[J.SPAN,_.SPAN],[J.STRIKE,_.STRIKE],[J.STRONG,_.STRONG],[J.STYLE,_.STYLE],[J.SUB,_.SUB],[J.SUMMARY,_.SUMMARY],[J.SUP,_.SUP],[J.TABLE,_.TABLE],[J.TBODY,_.TBODY],[J.TEMPLATE,_.TEMPLATE],[J.TEXTAREA,_.TEXTAREA],[J.TFOOT,_.TFOOT],[J.TD,_.TD],[J.TH,_.TH],[J.THEAD,_.THEAD],[J.TITLE,_.TITLE],[J.TR,_.TR],[J.TRACK,_.TRACK],[J.TT,_.TT],[J.U,_.U],[J.UL,_.UL],[J.SVG,_.SVG],[J.VAR,_.VAR],[J.WBR,_.WBR],[J.XMP,_.XMP]]);function lc(e){var t;return(t=jW.get(e))!==null&&t!==void 0?t:_.UNKNOWN}const Se=_,BW={[xe.HTML]:new Set([Se.ADDRESS,Se.APPLET,Se.AREA,Se.ARTICLE,Se.ASIDE,Se.BASE,Se.BASEFONT,Se.BGSOUND,Se.BLOCKQUOTE,Se.BODY,Se.BR,Se.BUTTON,Se.CAPTION,Se.CENTER,Se.COL,Se.COLGROUP,Se.DD,Se.DETAILS,Se.DIR,Se.DIV,Se.DL,Se.DT,Se.EMBED,Se.FIELDSET,Se.FIGCAPTION,Se.FIGURE,Se.FOOTER,Se.FORM,Se.FRAME,Se.FRAMESET,Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6,Se.HEAD,Se.HEADER,Se.HGROUP,Se.HR,Se.HTML,Se.IFRAME,Se.IMG,Se.INPUT,Se.LI,Se.LINK,Se.LISTING,Se.MAIN,Se.MARQUEE,Se.MENU,Se.META,Se.NAV,Se.NOEMBED,Se.NOFRAMES,Se.NOSCRIPT,Se.OBJECT,Se.OL,Se.P,Se.PARAM,Se.PLAINTEXT,Se.PRE,Se.SCRIPT,Se.SECTION,Se.SELECT,Se.SOURCE,Se.STYLE,Se.SUMMARY,Se.TABLE,Se.TBODY,Se.TD,Se.TEMPLATE,Se.TEXTAREA,Se.TFOOT,Se.TH,Se.THEAD,Se.TITLE,Se.TR,Se.TRACK,Se.UL,Se.WBR,Se.XMP]),[xe.MATHML]:new Set([Se.MI,Se.MO,Se.MN,Se.MS,Se.MTEXT,Se.ANNOTATION_XML]),[xe.SVG]:new Set([Se.TITLE,Se.FOREIGN_OBJECT,Se.DESC]),[xe.XLINK]:new Set,[xe.XML]:new Set,[xe.XMLNS]:new Set},tE=new Set([Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6]);J.STYLE,J.SCRIPT,J.XMP,J.IFRAME,J.NOEMBED,J.NOFRAMES,J.PLAINTEXT;const UW=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)));var j;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(j||(j={}));const In={DATA:j.DATA,RCDATA:j.RCDATA,RAWTEXT:j.RAWTEXT,SCRIPT_DATA:j.SCRIPT_DATA,PLAINTEXT:j.PLAINTEXT,CDATA_SECTION:j.CDATA_SECTION};function HW(e){return e>=$.DIGIT_0&&e<=$.DIGIT_9}function Ou(e){return e>=$.LATIN_CAPITAL_A&&e<=$.LATIN_CAPITAL_Z}function zW(e){return e>=$.LATIN_SMALL_A&&e<=$.LATIN_SMALL_Z}function _s(e){return zW(e)||Ou(e)}function VC(e){return _s(e)||HW(e)}function kh(e){return e+32}function OI(e){return e===$.SPACE||e===$.LINE_FEED||e===$.TABULATION||e===$.FORM_FEED}function qC(e){return OI(e)||e===$.SOLIDUS||e===$.GREATER_THAN_SIGN}function GW(e){return e===$.NULL?fe.nullCharacterReference:e>1114111?fe.characterReferenceOutsideUnicodeRange:RI(e)?fe.surrogateCharacterReference:wI(e)?fe.noncharacterCharacterReference:II(e)||e===$.CARRIAGE_RETURN?fe.controlCharacterReference:null}let VW=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=j.DATA,this.returnState=j.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new IW(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new $W(UW,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(fe.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(fe.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=GW(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Et.START_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Et.END_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Et.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Et.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(NI(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(fe.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=lc(t.tagName),t.type===Et.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(fe.endTagWithAttributes),t.selfClosing&&this._err(fe.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Et.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Et.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Et.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Et.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=OI(t)?Et.WHITESPACE_CHARACTER:t===$.NULL?Et.NULL_CHARACTER:Et.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Et.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=j.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Fi.Attribute:Fi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===j.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case j.DATA:{this._stateData(t);break}case j.RCDATA:{this._stateRcdata(t);break}case j.RAWTEXT:{this._stateRawtext(t);break}case j.SCRIPT_DATA:{this._stateScriptData(t);break}case j.PLAINTEXT:{this._statePlaintext(t);break}case j.TAG_OPEN:{this._stateTagOpen(t);break}case j.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case j.TAG_NAME:{this._stateTagName(t);break}case j.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case j.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case j.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case j.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case j.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case j.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case j.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case j.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case j.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case j.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case j.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case j.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case j.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case j.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case j.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case j.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case j.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case j.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case j.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case j.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case j.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case j.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case j.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case j.BOGUS_COMMENT:{this._stateBogusComment(t);break}case j.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case j.COMMENT_START:{this._stateCommentStart(t);break}case j.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case j.COMMENT:{this._stateComment(t);break}case j.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case j.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case j.COMMENT_END:{this._stateCommentEnd(t);break}case j.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case j.DOCTYPE:{this._stateDoctype(t);break}case j.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case j.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case j.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case j.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case j.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case j.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case j.CDATA_SECTION:{this._stateCdataSection(t);break}case j.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case j.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case j.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case j.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.TAG_OPEN;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitCodePoint(t);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case $.AMPERSAND:{this._startCharacterReference();break}case $.LESS_THAN_SIGN:{this.state=j.RCDATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.RAWTEXT_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_s(t))this._createStartTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case $.EXCLAMATION_MARK:{this.state=j.MARKUP_DECLARATION_OPEN;break}case $.SOLIDUS:{this.state=j.END_TAG_OPEN;break}case $.QUESTION_MARK:{this._err(fe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t);break}case $.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=j.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_s(t))this._createEndTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case $.GREATER_THAN_SIGN:{this._err(fe.missingEndTagName),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.tagName+=dn;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ou(t)?kh(t):t)}}_stateRcdataLessThanSign(t){t===$.SOLIDUS?this.state=j.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_s(t)?(this.state=j.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=j.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=j.BEFORE_ATTRIBUTE_NAME,!1;case $.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=j.SELF_CLOSING_START_TAG,!1;case $.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=j.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===$.SOLIDUS?this.state=j.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_s(t)?(this.state=j.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case $.SOLIDUS:{this.state=j.SCRIPT_DATA_END_TAG_OPEN;break}case $.EXCLAMATION_MARK:{this.state=j.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=j.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_s(t)?(this.state=j.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===$.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===$.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===$.SOLIDUS?this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_s(t)?(this._emitChars("<"),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_s(t)?(this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&qC(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ir.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(dn);break}case $.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===$.SOLIDUS?(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&qC(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ir.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._err(fe.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=j.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this._leaveAttrName(),this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._leaveAttrName(),this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:{this._err(fe.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.name+=dn;break}default:this.currentAttr.name+=String.fromCodePoint(Ou(t)?kh(t):t)}}_stateAfterAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case $.EQUALS_SIGN:{this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{this.state=j.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this.state=j.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingAttributeValue),this.state=j.DATA,this.emitCurrentTagToken();break}default:this.state=j.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case $.APOSTROPHE:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:case $.EQUALS_SIGN:case $.GRAVE_ACCENT:{this._err(fe.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this._leaveAttrValue(),this.state=j.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBetweenAttributes),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case $.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=j.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.unexpectedSolidusInTag),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=dn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ir.DASH_DASH,!0)?(this._createCommentToken(Ir.DASH_DASH.length+1),this.state=j.COMMENT_START):this._consumeSequenceIfMatch(Ir.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ir.DOCTYPE.length+1),this.state=j.DOCTYPE):this._consumeSequenceIfMatch(Ir.CDATA_START,!0)?this.inForeignNode?this.state=j.CDATA_SECTION:(this._err(fe.cdataInHtmlContent),this._createCommentToken(Ir.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=j.BOGUS_COMMENT):this._ensureHibernation()||(this._err(fe.incorrectlyOpenedComment),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_START_DASH;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=j.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END_DASH;break}case $.LESS_THAN_SIGN:{n.data+="<",this.state=j.COMMENT_LESS_THAN_SIGN;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=dn;break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case $.EXCLAMATION_MARK:{n.data+="!",this.state=j.COMMENT_LESS_THAN_SIGN_BANG;break}case $.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===$.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=j.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===$.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=j.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==$.GREATER_THAN_SIGN&&t!==$.EOF&&this._err(fe.nestedComment),this.state=j.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case $.EXCLAMATION_MARK:{this.state=j.COMMENT_END_BANG;break}case $.HYPHEN_MINUS:{n.data+="-";break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{n.data+="--!",this.state=j.COMMENT_END_DASH;break}case $.GREATER_THAN_SIGN:{this._err(fe.incorrectlyClosedComment),this.state=j.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=j.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case $.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBeforeDoctypeName),this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ou(t))this._createDoctypeToken(String.fromCharCode(kh(t))),this.state=j.DOCTYPE_NAME;else switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.NULL:{this._err(fe.unexpectedNullCharacter),this._createDoctypeToken(dn),this.state=j.DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=j.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.AFTER_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.name+=dn;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ou(t)?kh(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ir.PUBLIC,!1)?this.state=j.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ir.SYSTEM,!1)?this.state=j.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(fe.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=dn;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case $.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=dn;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case $.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=dn;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case $.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=dn;break}case $.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case $.NULL:{this._err(fe.unexpectedNullCharacter);break}case $.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case $.RIGHT_SQUARE_BRACKET:{this.state=j.CDATA_SECTION_BRACKET;break}case $.EOF:{this._err(fe.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===$.RIGHT_SQUARE_BRACKET?this.state=j.CDATA_SECTION_END:(this._emitChars("]"),this.state=j.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case $.GREATER_THAN_SIGN:{this.state=j.DATA;break}case $.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=j.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&VC(this.preprocessor.peek(1))?j.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){VC(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===$.SEMICOLON&&this._err(fe.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const LI=new Set([_.DD,_.DT,_.LI,_.OPTGROUP,_.OPTION,_.P,_.RB,_.RP,_.RT,_.RTC]),YC=new Set([...LI,_.CAPTION,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]),Pp=new Set([_.APPLET,_.CAPTION,_.HTML,_.MARQUEE,_.OBJECT,_.TABLE,_.TD,_.TEMPLATE,_.TH]),qW=new Set([...Pp,_.OL,_.UL]),YW=new Set([...Pp,_.BUTTON]),QC=new Set([_.ANNOTATION_XML,_.MI,_.MN,_.MO,_.MS,_.MTEXT]),KC=new Set([_.DESC,_.FOREIGN_OBJECT,_.TITLE]),QW=new Set([_.TR,_.TEMPLATE,_.HTML]),KW=new Set([_.TBODY,_.TFOOT,_.THEAD,_.TEMPLATE,_.HTML]),WW=new Set([_.TABLE,_.TEMPLATE,_.HTML]),XW=new Set([_.TD,_.TH]);let ZW=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=_.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===_.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===xe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==xe.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(tE,xe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(XW,xe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(WW,xe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(KW,xe.HTML)}clearBackToTableRowContext(){this.clearBackTo(QW,xe.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===_.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===_.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case xe.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case xe.SVG:{if(KC.has(a))return!1;break}case xe.MATHML:{if(QC.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Pp)}hasInListItemScope(t){return this.hasInDynamicScope(t,qW)}hasInButtonScope(t){return this.hasInDynamicScope(t,YW)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case xe.HTML:{if(tE.has(n))return!0;if(Pp.has(n))return!1;break}case xe.SVG:{if(KC.has(n))return!1;break}case xe.MATHML:{if(QC.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===xe.HTML)switch(this.tagIDs[t]){case _.TBODY:case _.THEAD:case _.TFOOT:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.OPTION:case _.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&LI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&YC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&YC.has(this.currentTagId);)this.pop()}};var ai;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ai||(ai={}));const WC={type:ai.Marker};let JW=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,s=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===ai.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===s&&this.treeAdapter.getNamespaceURI(f)===l){const p=this.treeAdapter.getAttrList(f);p.length===a&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const a=new Map(n.map(l=>[l.name,l.value]));let s=0;for(let l=0;l<r.length;l++){const c=r[l];c.attrs.every(d=>a.get(d.name)===d.value)&&(s+=1,s>=3&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(WC)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ai.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ai.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(WC);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ai.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ai.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ai.Element&&n.element===t)}};const xs={createDocument(){return{nodeName:"#document",mode:xa.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(s=>s.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};xs.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(xs.isTextNode(n)){n.value+=t;return}}xs.appendChild(e,xs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&xs.isTextNode(r)?r.value+=t:xs.insertBefore(e,xs.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},MI="html",eX="about:legacy-compat",tX="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",PI=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],nX=[...PI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],rX=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),$I=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],aX=[...$I,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function XC(e,t){return t.some(n=>e.startsWith(n))}function iX(e){return e.name===MI&&e.publicId===null&&(e.systemId===null||e.systemId===eX)}function sX(e){if(e.name!==MI)return xa.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===tX)return xa.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),rX.has(n))return xa.QUIRKS;let r=t===null?nX:PI;if(XC(n,r))return xa.QUIRKS;if(r=t===null?$I:aX,XC(n,r))return xa.LIMITED_QUIRKS}return xa.NO_QUIRKS}const ZC={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},oX="definitionurl",lX="definitionURL",cX=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),uX=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:xe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:xe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:xe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:xe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:xe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:xe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:xe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:xe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:xe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:xe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:xe.XMLNS}]]),dX=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),fX=new Set([_.B,_.BIG,_.BLOCKQUOTE,_.BODY,_.BR,_.CENTER,_.CODE,_.DD,_.DIV,_.DL,_.DT,_.EM,_.EMBED,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HR,_.I,_.IMG,_.LI,_.LISTING,_.MENU,_.META,_.NOBR,_.OL,_.P,_.PRE,_.RUBY,_.S,_.SMALL,_.SPAN,_.STRONG,_.STRIKE,_.SUB,_.SUP,_.TABLE,_.TT,_.U,_.UL,_.VAR]);function hX(e){const t=e.tagID;return t===_.FONT&&e.attrs.some(({name:n})=>n===xo.COLOR||n===xo.SIZE||n===xo.FACE)||fX.has(t)}function FI(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===oX){e.attrs[t].name=lX;break}}function jI(e){for(let t=0;t<e.attrs.length;t++){const n=cX.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Ub(e){for(let t=0;t<e.attrs.length;t++){const n=uX.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function pX(e){const t=dX.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=lc(e.tagName))}function mX(e,t){return t===xe.MATHML&&(e===_.MI||e===_.MO||e===_.MN||e===_.MS||e===_.MTEXT)}function gX(e,t,n){if(t===xe.MATHML&&e===_.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===xo.ENCODING){const a=n[r].value.toLowerCase();return a===ZC.TEXT_HTML||a===ZC.APPLICATION_XML}}return t===xe.SVG&&(e===_.FOREIGN_OBJECT||e===_.DESC||e===_.TITLE)}function yX(e,t,n,r){return(!r||r===xe.HTML)&&gX(e,t,n)||(!r||r===xe.MATHML)&&mX(e,t)}const EX="hidden",bX=8,vX=3;var B;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(B||(B={}));const TX={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},BI=new Set([_.TABLE,_.TBODY,_.TFOOT,_.THEAD,_.TR]),JC={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:xs,onParseError:null};class e2{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=B.INITIAL,this.originalInsertionMode=B.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...JC,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new VW(this.options,this),this.activeFormattingElements=new JW(this.treeAdapter),this.fragmentContextID=r?lc(this.treeAdapter.getTagName(r)):_.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new ZW(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...JC,...n};t??(t=r.treeAdapter.createElement(J.TEMPLATE,xe.HTML,[]));const a=r.treeAdapter.createElement("documentmock",xe.HTML,[]),s=new this(r,a,t);return s.fragmentContextID===_.TEMPLATE&&s.tmplInsertionModeStack.unshift(B.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const s=(a=t.location)!==null&&a!==void 0?a:TX,l={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(l)}onItemPush(t,n,r){var a,s;(s=(a=this.treeAdapter).onItemPush)===null||s===void 0||s.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let s,l;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,l=this.fragmentContextID):{current:s,currentTagId:l}=this.openElements,this._setContextModes(s,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===xe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,xe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=B.TEXT}switchToPlaintextParsing(){this.insertionMode=B.TEXT,this.originalInsertionMode=B.IN_BODY,this.tokenizer.state=In.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===J.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==xe.HTML))switch(this.fragmentContextID){case _.TITLE:case _.TEXTAREA:{this.tokenizer.state=In.RCDATA;break}case _.STYLE:case _.XMP:case _.IFRAME:case _.NOEMBED:case _.NOFRAMES:case _.NOSCRIPT:{this.tokenizer.state=In.RAWTEXT;break}case _.SCRIPT:{this.tokenizer.state=In.SCRIPT_DATA;break}case _.PLAINTEXT:{this.tokenizer.state=In.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,xe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,xe.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(J.HTML,xe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,_.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),s=r?a.lastIndexOf(r):a.length,l=a[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:d,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:d,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),s=n.type===Et.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===_.SVG&&this.treeAdapter.getTagName(n)===J.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===xe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===_.MGLYPH||t.tagID===_.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,xe.HTML)}_processToken(t){switch(t.type){case Et.CHARACTER:{this.onCharacter(t);break}case Et.NULL_CHARACTER:{this.onNullCharacter(t);break}case Et.COMMENT:{this.onComment(t);break}case Et.DOCTYPE:{this.onDoctype(t);break}case Et.START_TAG:{this._processStartTag(t);break}case Et.END_TAG:{this.onEndTag(t);break}case Et.EOF:{this.onEof(t);break}case Et.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return yX(t,a,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ai.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const s=this.activeFormattingElements.entries[a];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=B.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_.P),this.openElements.popUntilTagNamePopped(_.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case _.TR:{this.insertionMode=B.IN_ROW;return}case _.TBODY:case _.THEAD:case _.TFOOT:{this.insertionMode=B.IN_TABLE_BODY;return}case _.CAPTION:{this.insertionMode=B.IN_CAPTION;return}case _.COLGROUP:{this.insertionMode=B.IN_COLUMN_GROUP;return}case _.TABLE:{this.insertionMode=B.IN_TABLE;return}case _.BODY:{this.insertionMode=B.IN_BODY;return}case _.FRAMESET:{this.insertionMode=B.IN_FRAMESET;return}case _.SELECT:{this._resetInsertionModeForSelect(t);return}case _.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _.HTML:{this.insertionMode=this.headElement?B.AFTER_HEAD:B.BEFORE_HEAD;return}case _.TD:case _.TH:{if(t>0){this.insertionMode=B.IN_CELL;return}break}case _.HEAD:{if(t>0){this.insertionMode=B.IN_HEAD;return}break}}this.insertionMode=B.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===_.TEMPLATE)break;if(r===_.TABLE){this.insertionMode=B.IN_SELECT_IN_TABLE;return}}this.insertionMode=B.IN_SELECT}_isElementCausesFosterParenting(t){return BI.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case _.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===xe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case _.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return BW[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){XZ(this,t);return}switch(this.insertionMode){case B.INITIAL:{xu(this,t);break}case B.BEFORE_HTML:{Yu(this,t);break}case B.BEFORE_HEAD:{Qu(this,t);break}case B.IN_HEAD:{Ku(this,t);break}case B.IN_HEAD_NO_SCRIPT:{Wu(this,t);break}case B.AFTER_HEAD:{Xu(this,t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:{HI(this,t);break}case B.TEXT:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{q1(this,t);break}case B.IN_TABLE_TEXT:{QI(this,t);break}case B.IN_COLUMN_GROUP:{$p(this,t);break}case B.AFTER_BODY:{Fp(this,t);break}case B.AFTER_AFTER_BODY:{Xh(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){WZ(this,t);return}switch(this.insertionMode){case B.INITIAL:{xu(this,t);break}case B.BEFORE_HTML:{Yu(this,t);break}case B.BEFORE_HEAD:{Qu(this,t);break}case B.IN_HEAD:{Ku(this,t);break}case B.IN_HEAD_NO_SCRIPT:{Wu(this,t);break}case B.AFTER_HEAD:{Xu(this,t);break}case B.TEXT:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{q1(this,t);break}case B.IN_COLUMN_GROUP:{$p(this,t);break}case B.AFTER_BODY:{Fp(this,t);break}case B.AFTER_AFTER_BODY:{Xh(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){nE(this,t);return}switch(this.insertionMode){case B.INITIAL:case B.BEFORE_HTML:case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_TEMPLATE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{nE(this,t);break}case B.IN_TABLE_TEXT:{Au(this,t);break}case B.AFTER_BODY:{kX(this,t);break}case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{RX(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case B.INITIAL:{IX(this,t);break}case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:{this._err(t,fe.misplacedDoctype);break}case B.IN_TABLE_TEXT:{Au(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,fe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ZZ(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{xu(this,t);break}case B.BEFORE_HTML:{wX(this,t);break}case B.BEFORE_HEAD:{OX(this,t);break}case B.IN_HEAD:{Ba(this,t);break}case B.IN_HEAD_NO_SCRIPT:{PX(this,t);break}case B.AFTER_HEAD:{FX(this,t);break}case B.IN_BODY:{gr(this,t);break}case B.IN_TABLE:{Zl(this,t);break}case B.IN_TABLE_TEXT:{Au(this,t);break}case B.IN_CAPTION:{LZ(this,t);break}case B.IN_COLUMN_GROUP:{Gb(this,t);break}case B.IN_TABLE_BODY:{Pm(this,t);break}case B.IN_ROW:{$m(this,t);break}case B.IN_CELL:{$Z(this,t);break}case B.IN_SELECT:{XI(this,t);break}case B.IN_SELECT_IN_TABLE:{jZ(this,t);break}case B.IN_TEMPLATE:{UZ(this,t);break}case B.AFTER_BODY:{zZ(this,t);break}case B.IN_FRAMESET:{GZ(this,t);break}case B.AFTER_FRAMESET:{qZ(this,t);break}case B.AFTER_AFTER_BODY:{QZ(this,t);break}case B.AFTER_AFTER_FRAMESET:{KZ(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?JZ(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{xu(this,t);break}case B.BEFORE_HTML:{NX(this,t);break}case B.BEFORE_HEAD:{LX(this,t);break}case B.IN_HEAD:{MX(this,t);break}case B.IN_HEAD_NO_SCRIPT:{$X(this,t);break}case B.AFTER_HEAD:{jX(this,t);break}case B.IN_BODY:{Mm(this,t);break}case B.TEXT:{AZ(this,t);break}case B.IN_TABLE:{Cd(this,t);break}case B.IN_TABLE_TEXT:{Au(this,t);break}case B.IN_CAPTION:{MZ(this,t);break}case B.IN_COLUMN_GROUP:{PZ(this,t);break}case B.IN_TABLE_BODY:{rE(this,t);break}case B.IN_ROW:{WI(this,t);break}case B.IN_CELL:{FZ(this,t);break}case B.IN_SELECT:{ZI(this,t);break}case B.IN_SELECT_IN_TABLE:{BZ(this,t);break}case B.IN_TEMPLATE:{HZ(this,t);break}case B.AFTER_BODY:{ew(this,t);break}case B.IN_FRAMESET:{VZ(this,t);break}case B.AFTER_FRAMESET:{YZ(this,t);break}case B.AFTER_AFTER_BODY:{Xh(this,t);break}}}onEof(t){switch(this.insertionMode){case B.INITIAL:{xu(this,t);break}case B.BEFORE_HTML:{Yu(this,t);break}case B.BEFORE_HEAD:{Qu(this,t);break}case B.IN_HEAD:{Ku(this,t);break}case B.IN_HEAD_NO_SCRIPT:{Wu(this,t);break}case B.AFTER_HEAD:{Xu(this,t);break}case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{qI(this,t);break}case B.TEXT:{SZ(this,t);break}case B.IN_TABLE_TEXT:{Au(this,t);break}case B.IN_TEMPLATE:{JI(this,t);break}case B.AFTER_BODY:case B.IN_FRAMESET:case B.AFTER_FRAMESET:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{zb(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===$.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.TEXT:case B.IN_COLUMN_GROUP:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{this._insertCharacters(t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:case B.AFTER_BODY:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{UI(this,t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{q1(this,t);break}case B.IN_TABLE_TEXT:{YI(this,t);break}}}}function _X(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):VI(e,t),n}function xX(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function AX(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let s=0,l=a;l!==n;s++,l=a){a=e.openElements.getCommonAncestor(l);const c=e.activeFormattingElements.getElementEntry(l),d=c&&s>=vX;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=SX(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function SX(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function CX(e,t,n){const r=e.treeAdapter.getTagName(t),a=lc(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);a===_.TEMPLATE&&s===xe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function DX(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,s=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,a.tagID)}function Hb(e,t){for(let n=0;n<bX;n++){const r=_X(e,t);if(!r)break;const a=xX(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const s=AX(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),l&&CX(e,l,s),DX(e,a,r)}}function nE(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function kX(e,t){e._appendCommentNode(t,e.openElements.items[0])}function RX(e,t){e._appendCommentNode(t,e.document)}function zb(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(s);l&&!l.endTag&&e._setEndLocation(s,t)}}}}function IX(e,t){e._setDocumentType(t);const n=t.forceQuirks?xa.QUIRKS:sX(t);iX(t)||e._err(t,fe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=B.BEFORE_HTML}function xu(e,t){e._err(t,fe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,xa.QUIRKS),e.insertionMode=B.BEFORE_HTML,e._processToken(t)}function wX(e,t){t.tagID===_.HTML?(e._insertElement(t,xe.HTML),e.insertionMode=B.BEFORE_HEAD):Yu(e,t)}function NX(e,t){const n=t.tagID;(n===_.HTML||n===_.HEAD||n===_.BODY||n===_.BR)&&Yu(e,t)}function Yu(e,t){e._insertFakeRootElement(),e.insertionMode=B.BEFORE_HEAD,e._processToken(t)}function OX(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.HEAD:{e._insertElement(t,xe.HTML),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD;break}default:Qu(e,t)}}function LX(e,t){const n=t.tagID;n===_.HEAD||n===_.BODY||n===_.HTML||n===_.BR?Qu(e,t):e._err(t,fe.endTagWithoutMatchingOpenElement)}function Qu(e,t){e._insertFakeElement(J.HEAD,_.HEAD),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD,e._processToken(t)}function Ba(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.TITLE:{e._switchToTextParsing(t,In.RCDATA);break}case _.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,In.RAWTEXT):(e._insertElement(t,xe.HTML),e.insertionMode=B.IN_HEAD_NO_SCRIPT);break}case _.NOFRAMES:case _.STYLE:{e._switchToTextParsing(t,In.RAWTEXT);break}case _.SCRIPT:{e._switchToTextParsing(t,In.SCRIPT_DATA);break}case _.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=B.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(B.IN_TEMPLATE);break}case _.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:Ku(e,t)}}function MX(e,t){switch(t.tagID){case _.HEAD:{e.openElements.pop(),e.insertionMode=B.AFTER_HEAD;break}case _.BODY:case _.BR:case _.HTML:{Ku(e,t);break}case _.TEMPLATE:{jo(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function jo(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==_.TEMPLATE&&e._err(t,fe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,fe.endTagWithoutMatchingOpenElement)}function Ku(e,t){e.openElements.pop(),e.insertionMode=B.AFTER_HEAD,e._processToken(t)}function PX(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.BASEFONT:case _.BGSOUND:case _.HEAD:case _.LINK:case _.META:case _.NOFRAMES:case _.STYLE:{Ba(e,t);break}case _.NOSCRIPT:{e._err(t,fe.nestedNoscriptInHead);break}default:Wu(e,t)}}function $X(e,t){switch(t.tagID){case _.NOSCRIPT:{e.openElements.pop(),e.insertionMode=B.IN_HEAD;break}case _.BR:{Wu(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function Wu(e,t){const n=t.type===Et.EOF?fe.openElementsLeftAfterEof:fe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=B.IN_HEAD,e._processToken(t)}function FX(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.BODY:{e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=B.IN_BODY;break}case _.FRAMESET:{e._insertElement(t,xe.HTML),e.insertionMode=B.IN_FRAMESET;break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{e._err(t,fe.abandonedHeadElementChild),e.openElements.push(e.headElement,_.HEAD),Ba(e,t),e.openElements.remove(e.headElement);break}case _.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:Xu(e,t)}}function jX(e,t){switch(t.tagID){case _.BODY:case _.HTML:case _.BR:{Xu(e,t);break}case _.TEMPLATE:{jo(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function Xu(e,t){e._insertFakeElement(J.BODY,_.BODY),e.insertionMode=B.IN_BODY,Lm(e,t)}function Lm(e,t){switch(t.type){case Et.CHARACTER:{HI(e,t);break}case Et.WHITESPACE_CHARACTER:{UI(e,t);break}case Et.COMMENT:{nE(e,t);break}case Et.START_TAG:{gr(e,t);break}case Et.END_TAG:{Mm(e,t);break}case Et.EOF:{qI(e,t);break}}}function UI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function HI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function BX(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function UX(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function HX(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_FRAMESET)}function zX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function GX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&tE.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,xe.HTML)}function VX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function qX(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),n||(e.formElement=e.openElements.current))}function YX(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===_.LI&&a===_.LI||(n===_.DD||n===_.DT)&&(a===_.DD||a===_.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==_.ADDRESS&&a!==_.DIV&&a!==_.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function QX(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.tokenizer.state=In.PLAINTEXT}function KX(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1}function WX(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);n&&(Hb(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function XX(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ZX(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(Hb(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function JX(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function eZ(e,t){e.treeAdapter.getDocumentMode(e.document)!==xa.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=B.IN_TABLE}function zI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function GI(e){const t=NI(e,xo.TYPE);return t!=null&&t.toLowerCase()===EX}function tZ(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),GI(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function nZ(e,t){e._appendElement(t,xe.HTML),t.ackSelfClosing=!0}function rZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function aZ(e,t){t.tagName=J.IMG,t.tagID=_.IMG,zI(e,t)}function iZ(e,t){e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=In.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=B.TEXT}function sZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,In.RAWTEXT)}function oZ(e,t){e.framesetOk=!1,e._switchToTextParsing(t,In.RAWTEXT)}function t2(e,t){e._switchToTextParsing(t,In.RAWTEXT)}function lZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===B.IN_TABLE||e.insertionMode===B.IN_CAPTION||e.insertionMode===B.IN_TABLE_BODY||e.insertionMode===B.IN_ROW||e.insertionMode===B.IN_CELL?B.IN_SELECT_IN_TABLE:B.IN_SELECT}function cZ(e,t){e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function uZ(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,xe.HTML)}function dZ(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,xe.HTML)}function fZ(e,t){e._reconstructActiveFormattingElements(),FI(t),Ub(t),t.selfClosing?e._appendElement(t,xe.MATHML):e._insertElement(t,xe.MATHML),t.ackSelfClosing=!0}function hZ(e,t){e._reconstructActiveFormattingElements(),jI(t),Ub(t),t.selfClosing?e._appendElement(t,xe.SVG):e._insertElement(t,xe.SVG),t.ackSelfClosing=!0}function n2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function gr(e,t){switch(t.tagID){case _.I:case _.S:case _.B:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.SMALL:case _.STRIKE:case _.STRONG:{XX(e,t);break}case _.A:{WX(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{GX(e,t);break}case _.P:case _.DL:case _.OL:case _.UL:case _.DIV:case _.DIR:case _.NAV:case _.MAIN:case _.MENU:case _.ASIDE:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.DETAILS:case _.ADDRESS:case _.ARTICLE:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{zX(e,t);break}case _.LI:case _.DD:case _.DT:{YX(e,t);break}case _.BR:case _.IMG:case _.WBR:case _.AREA:case _.EMBED:case _.KEYGEN:{zI(e,t);break}case _.HR:{rZ(e,t);break}case _.RB:case _.RTC:{uZ(e,t);break}case _.RT:case _.RP:{dZ(e,t);break}case _.PRE:case _.LISTING:{VX(e,t);break}case _.XMP:{sZ(e,t);break}case _.SVG:{hZ(e,t);break}case _.HTML:{BX(e,t);break}case _.BASE:case _.LINK:case _.META:case _.STYLE:case _.TITLE:case _.SCRIPT:case _.BGSOUND:case _.BASEFONT:case _.TEMPLATE:{Ba(e,t);break}case _.BODY:{UX(e,t);break}case _.FORM:{qX(e,t);break}case _.NOBR:{ZX(e,t);break}case _.MATH:{fZ(e,t);break}case _.TABLE:{eZ(e,t);break}case _.INPUT:{tZ(e,t);break}case _.PARAM:case _.TRACK:case _.SOURCE:{nZ(e,t);break}case _.IMAGE:{aZ(e,t);break}case _.BUTTON:{KX(e,t);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{JX(e,t);break}case _.IFRAME:{oZ(e,t);break}case _.SELECT:{lZ(e,t);break}case _.OPTION:case _.OPTGROUP:{cZ(e,t);break}case _.NOEMBED:case _.NOFRAMES:{t2(e,t);break}case _.FRAMESET:{HX(e,t);break}case _.TEXTAREA:{iZ(e,t);break}case _.NOSCRIPT:{e.options.scriptingEnabled?t2(e,t):n2(e,t);break}case _.PLAINTEXT:{QX(e,t);break}case _.COL:case _.TH:case _.TD:case _.TR:case _.HEAD:case _.FRAME:case _.TBODY:case _.TFOOT:case _.THEAD:case _.CAPTION:case _.COLGROUP:break;default:n2(e,t)}}function pZ(e,t){if(e.openElements.hasInScope(_.BODY)&&(e.insertionMode=B.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function mZ(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=B.AFTER_BODY,ew(e,t))}function gZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function yZ(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):n&&e.openElements.remove(n))}function EZ(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(J.P,_.P),e._closePElement()}function bZ(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function vZ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function TZ(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _Z(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function xZ(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR,_.BR),e.openElements.pop(),e.framesetOk=!1}function VI(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==_.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(s,l))break}}function Mm(e,t){switch(t.tagID){case _.A:case _.B:case _.I:case _.S:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.NOBR:case _.SMALL:case _.STRIKE:case _.STRONG:{Hb(e,t);break}case _.P:{EZ(e);break}case _.DL:case _.UL:case _.OL:case _.DIR:case _.DIV:case _.NAV:case _.PRE:case _.MAIN:case _.MENU:case _.ASIDE:case _.BUTTON:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.ADDRESS:case _.ARTICLE:case _.DETAILS:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.LISTING:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{gZ(e,t);break}case _.LI:{bZ(e);break}case _.DD:case _.DT:{vZ(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{TZ(e);break}case _.BR:{xZ(e);break}case _.BODY:{pZ(e,t);break}case _.HTML:{mZ(e,t);break}case _.FORM:{yZ(e);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{_Z(e,t);break}case _.TEMPLATE:{jo(e,t);break}default:VI(e,t)}}function qI(e,t){e.tmplInsertionModeStack.length>0?JI(e,t):zb(e,t)}function AZ(e,t){var n;t.tagID===_.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function SZ(e,t){e._err(t,fe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function q1(e,t){if(e.openElements.currentTagId!==void 0&&BI.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=B.IN_TABLE_TEXT,t.type){case Et.CHARACTER:{QI(e,t);break}case Et.WHITESPACE_CHARACTER:{YI(e,t);break}}else Kd(e,t)}function CZ(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_CAPTION}function DZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_COLUMN_GROUP}function kZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP,_.COLGROUP),e.insertionMode=B.IN_COLUMN_GROUP,Gb(e,t)}function RZ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_TABLE_BODY}function IZ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY,_.TBODY),e.insertionMode=B.IN_TABLE_BODY,Pm(e,t)}function wZ(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function NZ(e,t){GI(t)?e._appendElement(t,xe.HTML):Kd(e,t),t.ackSelfClosing=!0}function OZ(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,xe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Zl(e,t){switch(t.tagID){case _.TD:case _.TH:case _.TR:{IZ(e,t);break}case _.STYLE:case _.SCRIPT:case _.TEMPLATE:{Ba(e,t);break}case _.COL:{kZ(e,t);break}case _.FORM:{OZ(e,t);break}case _.TABLE:{wZ(e,t);break}case _.TBODY:case _.TFOOT:case _.THEAD:{RZ(e,t);break}case _.INPUT:{NZ(e,t);break}case _.CAPTION:{CZ(e,t);break}case _.COLGROUP:{DZ(e,t);break}default:Kd(e,t)}}function Cd(e,t){switch(t.tagID){case _.TABLE:{e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode());break}case _.TEMPLATE:{jo(e,t);break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Kd(e,t)}}function Kd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Lm(e,t),e.fosterParentingEnabled=n}function YI(e,t){e.pendingCharacterTokens.push(t)}function QI(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Au(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Kd(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const KI=new Set([_.CAPTION,_.COL,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]);function LZ(e,t){const n=t.tagID;KI.has(n)?e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,Zl(e,t)):gr(e,t)}function MZ(e,t){const n=t.tagID;switch(n){case _.CAPTION:case _.TABLE:{e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,n===_.TABLE&&Cd(e,t));break}case _.BODY:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Mm(e,t)}}function Gb(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.COL:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.TEMPLATE:{Ba(e,t);break}default:$p(e,t)}}function PZ(e,t){switch(t.tagID){case _.COLGROUP:{e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case _.TEMPLATE:{jo(e,t);break}case _.COL:break;default:$p(e,t)}}function $p(e,t){e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE,e._processToken(t))}function Pm(e,t){switch(t.tagID){case _.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_ROW;break}case _.TH:case _.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(J.TR,_.TR),e.insertionMode=B.IN_ROW,$m(e,t);break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,Zl(e,t));break}default:Zl(e,t)}}function rE(e,t){const n=t.tagID;switch(t.tagID){case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case _.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,Cd(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:case _.TR:break;default:Cd(e,t)}}function $m(e,t){switch(t.tagID){case _.TH:case _.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,xe.HTML),e.insertionMode=B.IN_CELL,e.activeFormattingElements.insertMarker();break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,Pm(e,t));break}default:Zl(e,t)}}function WI(e,t){switch(t.tagID){case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY);break}case _.TABLE:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,rE(e,t));break}case _.TBODY:case _.TFOOT:case _.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,rE(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:break;default:Cd(e,t)}}function $Z(e,t){const n=t.tagID;KI.has(n)?(e.openElements.hasInTableScope(_.TD)||e.openElements.hasInTableScope(_.TH))&&(e._closeTableCell(),$m(e,t)):gr(e,t)}function FZ(e,t){const n=t.tagID;switch(n){case _.TD:case _.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_ROW);break}case _.TABLE:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),WI(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:break;default:Mm(e,t)}}function XI(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case _.OPTGROUP:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case _.HR:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.INPUT:case _.KEYGEN:case _.TEXTAREA:case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),t.tagID!==_.SELECT&&e._processStartTag(t));break}case _.SCRIPT:case _.TEMPLATE:{Ba(e,t);break}}}function ZI(e,t){switch(t.tagID){case _.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===_.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop();break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop();break}case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode());break}case _.TEMPLATE:{jo(e,t);break}}}function jZ(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e._processStartTag(t)):XI(e,t)}function BZ(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e.onEndTag(t)):ZI(e,t)}function UZ(e,t){switch(t.tagID){case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{Ba(e,t);break}case _.CAPTION:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.tmplInsertionModeStack[0]=B.IN_TABLE,e.insertionMode=B.IN_TABLE,Zl(e,t);break}case _.COL:{e.tmplInsertionModeStack[0]=B.IN_COLUMN_GROUP,e.insertionMode=B.IN_COLUMN_GROUP,Gb(e,t);break}case _.TR:{e.tmplInsertionModeStack[0]=B.IN_TABLE_BODY,e.insertionMode=B.IN_TABLE_BODY,Pm(e,t);break}case _.TD:case _.TH:{e.tmplInsertionModeStack[0]=B.IN_ROW,e.insertionMode=B.IN_ROW,$m(e,t);break}default:e.tmplInsertionModeStack[0]=B.IN_BODY,e.insertionMode=B.IN_BODY,gr(e,t)}}function HZ(e,t){t.tagID===_.TEMPLATE&&jo(e,t)}function JI(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):zb(e,t)}function zZ(e,t){t.tagID===_.HTML?gr(e,t):Fp(e,t)}function ew(e,t){var n;if(t.tagID===_.HTML){if(e.fragmentContext||(e.insertionMode=B.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Fp(e,t)}function Fp(e,t){e.insertionMode=B.IN_BODY,Lm(e,t)}function GZ(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.FRAMESET:{e._insertElement(t,xe.HTML);break}case _.FRAME:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.NOFRAMES:{Ba(e,t);break}}}function VZ(e,t){t.tagID===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==_.FRAMESET&&(e.insertionMode=B.AFTER_FRAMESET))}function qZ(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.NOFRAMES:{Ba(e,t);break}}}function YZ(e,t){t.tagID===_.HTML&&(e.insertionMode=B.AFTER_AFTER_FRAMESET)}function QZ(e,t){t.tagID===_.HTML?gr(e,t):Xh(e,t)}function Xh(e,t){e.insertionMode=B.IN_BODY,Lm(e,t)}function KZ(e,t){switch(t.tagID){case _.HTML:{gr(e,t);break}case _.NOFRAMES:{Ba(e,t);break}}}function WZ(e,t){t.chars=dn,e._insertCharacters(t)}function XZ(e,t){e._insertCharacters(t),e.framesetOk=!1}function tw(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==xe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ZZ(e,t){if(hX(t))tw(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===xe.MATHML?FI(t):r===xe.SVG&&(pX(t),jI(t)),Ub(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function JZ(e,t){if(t.tagID===_.P||t.tagID===_.BR){tw(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===xe.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}J.AREA,J.BASE,J.BASEFONT,J.BGSOUND,J.BR,J.COL,J.EMBED,J.FRAME,J.HR,J.IMG,J.INPUT,J.KEYGEN,J.LINK,J.META,J.PARAM,J.SOURCE,J.TRACK,J.WBR;const Eo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},r2=/[#.]/g;function eJ(e,t){const n=e||"",r={};let a=0,s,l;for(;a<n.length;){r2.lastIndex=a;const c=r2.exec(n),d=n.slice(a,c?c.index:n.length);d&&(s?s==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,a+=d.length),c&&(s=c[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function nw(e,t,n){const r=n?aJ(n):void 0;function a(s,l,...c){let d;if(s==null){d={type:"root",children:[]};const f=l;c.unshift(f)}else{d=eJ(s,t);const f=d.tagName.toLowerCase(),p=r?r.get(f):void 0;if(d.tagName=p||f,tJ(l))c.unshift(l);else for(const[m,y]of Object.entries(l))nJ(e,d.properties,m,y)}for(const f of c)aE(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function tJ(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const s=a;for(const l of s)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function nJ(e,t,n,r){const a=Fd(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=by(r):a.commaSeparated?s=Ey(r):a.commaOrSpaceSeparated?s=by(Ey(r).join(" ")):s=a2(a,a.property,r):Array.isArray(r)?s=[...r]:s=a.property==="style"?rJ(r):String(r);if(Array.isArray(s)){const l=[];for(const c of s)l.push(a2(a,a.property,c));s=l}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function aE(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)aE(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?aE(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function a2(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||ld(n)===ld(t)))return!0}return n}function rJ(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function aJ(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const iJ=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],sJ=nw(nc,"div"),oJ=nw(Gi,"g",iJ);function lJ(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let l=0;for(;;){let c=n[l];if(c===void 0){const d=i2(t,n[l-1]);c=d===-1?t.length+1:d+1,n[l]=c}if(c>s)return{line:l+1,column:s-(l>0?n[l-1]:0)+1,offset:s};l++}}}function a(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const c=n[n.length-1],d=i2(t,c),f=d===-1?t.length+1:d+1;if(c===f)break;n.push(f)}const l=(s.line>1?n[s.line-2]:0)+s.column-1;if(l<n[s.line-1])return l}}}function i2(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
207
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const rw={}.hasOwnProperty,cJ=Object.prototype;function uJ(e,t){const n=t||{};return Vb({file:n.file||void 0,location:!1,schema:n.space==="svg"?Gi:nc,verbose:n.verbose||!1},e)}function Vb(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Zh(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:aw(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const s=String(e.file),l=lJ(s),c=l.toPoint(0),d=l.toPoint(s.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Zh(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Zh(e,r,n),n}default:return n=dJ(e,t),n}}function aw(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Vb(e,t[n]);r.push(a)}return r}function dJ(e,t){const n=e.schema;e.schema=t.namespaceURI===Eo.svg?Gi:nc;let r=-1;const a={};for(;++r<t.attrs.length;){const l=t.attrs[r],c=(l.prefix?l.prefix+":":"")+l.name;rw.call(cJ,c)||(a[c]=l.value)}const s=(e.schema.space==="svg"?oJ:sJ)(t.tagName,a,aw(e,t.childNodes));if(Zh(e,t,s),s.tagName==="template"){const l=t,c=l.sourceCodeLocation,d=c&&c.startTag&&Fl(c.startTag),f=c&&c.endTag&&Fl(c.endTag),p=Vb(e,l.content);d&&f&&e.file&&(p.position={start:d.end,end:f.start}),s.content=p}return e.schema=n,s}function Zh(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=fJ(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function fJ(e,t,n){const r=Fl(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const s={};let l;if(n.attrs)for(l in n.attrs)rw.call(n.attrs,l)&&(s[Fd(e.schema,l).property]=Fl(n.attrs[l]));n.startTag;const c=Fl(n.startTag),d=n.endTag?Fl(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=s,t.data={position:f}}}return r}function Fl(e){const t=s2({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=s2({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function s2(e){return e.line&&e.column?e:void 0}let Wd=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Wd.prototype.property={};Wd.prototype.normal={};Wd.prototype.space=null;function iw(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Wd(n,r,t)}function iE(e){return e.toLowerCase()}let ka=class{constructor(t,n){this.property=t,this.attribute=n}};ka.prototype.space=null;ka.prototype.boolean=!1;ka.prototype.booleanish=!1;ka.prototype.overloadedBoolean=!1;ka.prototype.number=!1;ka.prototype.commaSeparated=!1;ka.prototype.spaceSeparated=!1;ka.prototype.commaOrSpaceSeparated=!1;ka.prototype.mustUseProperty=!1;ka.prototype.defined=!1;let hJ=0;const lt=Bo(),Pn=Bo(),sw=Bo(),Re=Bo(),rn=Bo(),Vl=Bo(),Wr=Bo();function Bo(){return 2**++hJ}const sE=Object.freeze(Object.defineProperty({__proto__:null,boolean:lt,booleanish:Pn,commaOrSpaceSeparated:Wr,commaSeparated:Vl,number:Re,overloadedBoolean:sw,spaceSeparated:rn},Symbol.toStringTag,{value:"Module"})),Y1=Object.keys(sE);let qb=class extends ka{constructor(t,n,r,a){let s=-1;if(super(t,n),o2(this,"space",a),typeof r=="number")for(;++s<Y1.length;){const l=Y1[s];o2(this,Y1[s],(r&sE[l])===sE[l])}}};qb.prototype.defined=!0;function o2(e,t,n){n&&(e[t]=n)}const pJ={}.hasOwnProperty;function cc(e){const t={},n={};let r;for(r in e.properties)if(pJ.call(e.properties,r)){const a=e.properties[r],s=new qb(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[iE(r)]=r,n[iE(s.attribute)]=r}return new Wd(t,n,e.space)}const ow=cc({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),lw=cc({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function cw(e,t){return t in e?e[t]:t}function uw(e,t){return cw(e,t.toLowerCase())}const dw=cc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:uw,properties:{xmlns:null,xmlnsXLink:null}}),fw=cc({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pn,ariaAutoComplete:null,ariaBusy:Pn,ariaChecked:Pn,ariaColCount:Re,ariaColIndex:Re,ariaColSpan:Re,ariaControls:rn,ariaCurrent:null,ariaDescribedBy:rn,ariaDetails:null,ariaDisabled:Pn,ariaDropEffect:rn,ariaErrorMessage:null,ariaExpanded:Pn,ariaFlowTo:rn,ariaGrabbed:Pn,ariaHasPopup:null,ariaHidden:Pn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rn,ariaLevel:Re,ariaLive:null,ariaModal:Pn,ariaMultiLine:Pn,ariaMultiSelectable:Pn,ariaOrientation:null,ariaOwns:rn,ariaPlaceholder:null,ariaPosInSet:Re,ariaPressed:Pn,ariaReadOnly:Pn,ariaRelevant:null,ariaRequired:Pn,ariaRoleDescription:rn,ariaRowCount:Re,ariaRowIndex:Re,ariaRowSpan:Re,ariaSelected:Pn,ariaSetSize:Re,ariaSort:null,ariaValueMax:Re,ariaValueMin:Re,ariaValueNow:Re,ariaValueText:null,role:null}}),mJ=cc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:uw,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vl,acceptCharset:rn,accessKey:rn,action:null,allow:null,allowFullScreen:lt,allowPaymentRequest:lt,allowUserMedia:lt,alt:null,as:null,async:lt,autoCapitalize:null,autoComplete:rn,autoFocus:lt,autoPlay:lt,blocking:rn,capture:null,charSet:null,checked:lt,cite:null,className:rn,cols:Re,colSpan:null,content:null,contentEditable:Pn,controls:lt,controlsList:rn,coords:Re|Vl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:lt,defer:lt,dir:null,dirName:null,disabled:lt,download:sw,draggable:Pn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:lt,formTarget:null,headers:rn,height:Re,hidden:lt,high:Re,href:null,hrefLang:null,htmlFor:rn,httpEquiv:rn,id:null,imageSizes:null,imageSrcSet:null,inert:lt,inputMode:null,integrity:null,is:null,isMap:lt,itemId:null,itemProp:rn,itemRef:rn,itemScope:lt,itemType:rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:lt,low:Re,manifest:null,max:null,maxLength:Re,media:null,method:null,min:null,minLength:Re,multiple:lt,muted:lt,name:null,nonce:null,noModule:lt,noValidate:lt,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:lt,optimum:Re,pattern:null,ping:rn,placeholder:null,playsInline:lt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:lt,referrerPolicy:null,rel:rn,required:lt,reversed:lt,rows:Re,rowSpan:Re,sandbox:rn,scope:null,scoped:lt,seamless:lt,selected:lt,shadowRootClonable:lt,shadowRootDelegatesFocus:lt,shadowRootMode:null,shape:null,size:Re,sizes:null,slot:null,span:Re,spellCheck:Pn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Re,step:null,style:null,tabIndex:Re,target:null,title:null,translate:null,type:null,typeMustMatch:lt,useMap:null,value:Pn,width:Re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rn,axis:null,background:null,bgColor:null,border:Re,borderColor:null,bottomMargin:Re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:lt,declare:lt,event:null,face:null,frame:null,frameBorder:null,hSpace:Re,leftMargin:Re,link:null,longDesc:null,lowSrc:null,marginHeight:Re,marginWidth:Re,noResize:lt,noHref:lt,noShade:lt,noWrap:lt,object:null,profile:null,prompt:null,rev:null,rightMargin:Re,rules:null,scheme:null,scrolling:Pn,standby:null,summary:null,text:null,topMargin:Re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:lt,disableRemotePlayback:lt,prefix:null,property:null,results:Re,security:null,unselectable:null}}),gJ=cc({space:"svg",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"},transform:cw,properties:{about:Wr,accentHeight:Re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Re,amplitude:Re,arabicForm:null,ascent:Re,attributeName:null,attributeType:null,azimuth:Re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Re,by:null,calcMode:null,capHeight:Re,className:rn,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:Re,diffuseConstant:Re,direction:null,display:null,dur:null,divisor:Re,dominantBaseline:null,download:lt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Re,enableBackground:null,end:null,event:null,exponent:Re,externalResourcesRequired:null,fill:null,fillOpacity:Re,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:Vl,g2:Vl,glyphName:Vl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Re,horizOriginX:Re,horizOriginY:Re,id:null,ideographic:Re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Re,k:Re,k1:Re,k2:Re,k3:Re,k4:Re,kernelMatrix:Wr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Re,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:Re,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:Re,overlineThickness:Re,paintOrder:null,panose1:null,path:null,pathLength:Re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Re,pointsAtY:Re,pointsAtZ:Re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wr,rev:Wr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wr,requiredFeatures:Wr,requiredFonts:Wr,requiredFormats:Wr,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:Re,specularExponent:Re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Re,strikethroughThickness:Re,string:null,stroke:null,strokeDashArray:Wr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Re,strokeOpacity:Re,strokeWidth:null,style:null,surfaceScale:Re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wr,tabIndex:Re,tableValues:null,target:null,targetX:Re,targetY:Re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Re,underlineThickness:Re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Re,values:null,vAlphabetic:Re,vMathematical:Re,vectorEffect:null,vHanging:Re,vIdeographic:Re,version:null,vertAdvY:Re,vertOriginX:Re,vertOriginY:Re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),yJ=iw([lw,ow,dw,fw,mJ],"html"),hw=iw([lw,ow,dw,fw,gJ],"svg"),EJ=/^data[-\w.:]+$/i,l2=/-[a-z]/g,bJ=/[A-Z]/g;function vJ(e,t){const n=iE(t);let r=t,a=ka;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&EJ.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(l2,_J);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!l2.test(s)){let l=s.replace(bJ,TJ);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=qb}return new a(r,t)}function TJ(e){return"-"+e.toLowerCase()}function _J(e){return e.charAt(1).toUpperCase()}const xJ={},AJ={}.hasOwnProperty,pw=rm("type",{handlers:{root:CJ,element:wJ,text:RJ,comment:IJ,doctype:kJ}});function SJ(e,t){const n=(t||xJ).space;return pw(e,n==="svg"?hw:yJ)}function CJ(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Yb(e.children,n,t),uc(e,n),n}function DJ(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Yb(e.children,n,t),uc(e,n),n}function kJ(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return uc(e,t),t}function RJ(e){const t={nodeName:"#text",value:e.value,parentNode:null};return uc(e,t),t}function IJ(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return uc(e,t),t}function wJ(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=hw);const a=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&AJ.call(e.properties,s)){const d=NJ(r,s,e.properties[s]);d&&a.push(d)}}const l=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Eo[l],childNodes:[],parentNode:null};return c.childNodes=Yb(e.children,c,r),uc(e,c),e.tagName==="template"&&e.content&&(c.content=DJ(e.content,r)),c}function NJ(e,t,n){const r=vJ(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?am(n):im(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=a.name.indexOf(":");s<0?a.prefix="":(a.name=a.name.slice(s+1),a.prefix=r.attribute.slice(0,s)),a.namespace=Eo[r.space]}return a}function Yb(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const s=pw(e[r],n);s.parentNode=t,a.push(s)}return a}function uc(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const OJ=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,LJ=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),c2={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function mw(e,t){const n=GJ(e),r=rm("type",{handlers:{root:MJ,element:PJ,text:$J,comment:yw,doctype:FJ,raw:BJ},unknown:UJ}),a={parser:n?new e2(c2):e2.getFragmentParser(void 0,c2),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),dc(a,fi());const s=n?a.parser.document:a.parser.getFragment(),l=uJ(s,{file:a.options.file});return a.stitches&&$r(l,"comment",function(c,d,f){const p=c;if(p.value.stitch&&f&&d!==void 0){const m=f.children;return m[d]=p.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function gw(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function MJ(e,t){gw(e.children,t)}function PJ(e,t){HJ(e,t),gw(e.children,t),zJ(e,t)}function $J(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Et.CHARACTER,chars:e.value,location:Xd(e)};dc(t,fi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function FJ(e,t){const n={type:Et.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Xd(e)};dc(t,fi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function jJ(e,t){t.stitches=!0;const n=VJ(e);if("children"in e&&"children"in n){const r=mw({type:"root",children:e.children},t.options);n.children=r.children}yw({type:"comment",value:{stitch:n}},t)}function yw(e,t){const n=e.value,r={type:Et.COMMENT,data:n,location:Xd(e)};dc(t,fi(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function BJ(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ew(t,fi(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(OJ,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function UJ(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))jJ(n,t);else{let r="";throw LJ.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function dc(e,t){Ew(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=In.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ew(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function HJ(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===In.PLAINTEXT)return;dc(t,fi(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Eo.html;a===Eo.html&&n==="svg"&&(a=Eo.svg);const s=SJ({...e,children:[]},{space:a===Eo.svg?"svg":"html"}),l={type:Et.START_TAG,tagName:n,tagID:lc(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:Xd(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function zJ(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&qD.includes(n)||t.parser.tokenizer.state===In.PLAINTEXT)return;dc(t,Om(e));const r={type:Et.END_TAG,tagName:n,tagID:lc(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Xd(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===In.RCDATA||t.parser.tokenizer.state===In.RAWTEXT||t.parser.tokenizer.state===In.SCRIPT_DATA)&&(t.parser.tokenizer.state=In.DATA)}function GJ(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Xd(e){const t=fi(e)||{line:void 0,column:void 0,offset:void 0},n=Om(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function VJ(e){return"children"in e?No({...e,children:[]}):No(e)}function qJ(e){return function(t,n){return mw(t,{...e,file:n})}}var YJ=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],QJ=e=>e;const KJ=Ne.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:s,disableCopy:l=!1,skipHtml:c=!0,onScroll:d,onMouseOver:f,pluginsFilter:p,wrapperElement:m={},warpperElement:y={},urlTransform:E}=e,T=fr(e,YJ),A=Ne.useRef(null);N.useImperativeHandle(t,()=>Ae({},e,{mdp:A}),[A,e]);var C=(n||"")+" "+(r||"");AG(A);var x=[...T.rehypePlugins||[]],D={allowElement:(M,I,V)=>T.allowElement?T.allowElement(M,I,V):/^[A-Za-z0-9]+$/.test(M.tagName)};c||x.push(qJ);var S=[vG,...T.remarkPlugins||[],Uq],L=Ae({},y,m);return b.jsx("div",Ae({ref:A,onScroll:d,onMouseOver:f},L,{className:C,style:s,children:b.jsx(AW,Ae({},D,T,{skipHtml:!c,urlTransform:E||QJ,rehypePlugins:p?p("rehype",x):x,remarkPlugins:p?p("remark",S):S,children:a||""}))}))});var Jh={},oE={};function WJ(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,s=e.charAt(r),l=n[s]||(n[s]={chars:{}});a&&(l.self=e),n=l.chars}}function u2(e){if(e.length===0)return Jh;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];WJ(a,t)}return t}function XJ(e){if(e.length===0)return oE;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var Rh={},d2={type:"String",optional:!0};function ZJ(e){var t={type:"NoArgument",optional:!1};function n(l){if(t.type&&t.type!==l&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(l,'".'));t.type=l}for(var r=0,a=e;r<a.length;r++){var s=a[r];s==="NoArgument"&&(t.optional=!0),s==="Formula"&&n("Formula"),s==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),s==="String"&&n("String"),s==="Selector"&&n("Selector")}return t}function JJ(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],s=e[a];if(s)for(var l=0,c=s;l<c.length;l++){var d=c[l];(t[d]||(t[d]=[])).push(a)}}return t}function f2(e){for(var t=JJ(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var s=a[r],l=t[s];l&&(n[s]=ZJ(l))}return n}var Jl=function(){return Jl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Jl.apply(this,arguments)},eee={},lE={wildcard:!0};function tee(e){return e?typeof e=="boolean"?lE:e:eee}function nee(e,t){return function(n,r){return t(e(n),e(r))}}function ree(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function h2(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Il(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=Jl({},t),a=0,s=Object.entries(n);a<s.length;a++){var l=s[a],c=l[0],d=l[1];if(c!=="latest"){var f=e[c];r[c]=f(t[c],d)}}return r}}function Mi(e,t){return t!==void 0?t:e}function Ih(e,t){return t?e?e.concat(t):t:e}function p2(e,t){if(!t)return e;if(!e)return t;for(var n=Jl({},e),r=0,a=Object.entries(t);r<a.length;r++){var s=a[r],l=s[0],c=s[1];if(!c){delete n[l];continue}var d=e[l];if(!d){n[l]=c;continue}n[l]=d.concat(c)}return n}var Ao=ree(Il({baseSyntax:Mi,modules:Ih,tag:h2(lE,Il({wildcard:Mi})),ids:Mi,classNames:Mi,namespace:h2(lE,Il({wildcard:Mi})),combinators:Ih,attributes:Il({operators:Ih,caseSensitivityModifiers:Ih,unknownCaseSensitivityModifiers:Mi}),pseudoClasses:Il({unknown:Mi,definitions:p2}),pseudoElements:Il({unknown:Mi,notation:Mi,definitions:nee(function(e){return Array.isArray(e)?{NoArgument:e}:e},p2)})})),bw={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},vw=Ao(bw,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),cE=Ao(vw,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),Tw=Ao(cE,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),jp={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},_w=Jl(Jl({},Tw),{modules:Object.entries(jp).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),aee=Ao(_w,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),uE={css1:bw,css2:vw,css3:cE,"selectors-3":cE,"selectors-4":Tw,latest:_w,progressive:aee};function iee(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],s=uE[a];if(s.pseudoClasses&&typeof s.pseudoClasses=="object"){var l=s.pseudoClasses.definitions;if(l)for(var c=0,d=Object.entries(l);c<d.length;c++)for(var f=d[c],p=f[1],m=0,y=p;m<y.length;m++){var E=y[m];e.pseudoClasses[E]||(e.pseudoClasses[E]=[]),e.pseudoClasses[E].includes(a)||e.pseudoClasses[E].push(a)}}if(s.pseudoElements&&typeof s.pseudoElements=="object"){var l=s.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var T=0,A=l;T<A.length;T++){var C=A[T];e.pseudoElements[C]||(e.pseudoElements[C]=[]),e.pseudoElements[C].includes(a)||e.pseudoElements[C].push(a)}else for(var x=0,D=Object.values(l);x<D.length;x++)for(var p=D[x],S=0,L=p;S<L.length;S++){var M=L[S];e.pseudoElements[M]||(e.pseudoElements[M]=[]),e.pseudoElements[M].includes(a)||e.pseudoElements[M].push(a)}}}for(var I=0,V=Object.entries(jp);I<V.length;I++){var ne=V[I],K=ne[0],k=ne[1];if(k.pseudoClasses&&typeof k.pseudoClasses=="object"){var l=k.pseudoClasses.definitions;if(l)for(var H=0,Q=Object.values(l);H<Q.length;H++)for(var p=Q[H],W=0,re=p;W<re.length;W++){var me=re[W];e.pseudoClasses[me]||(e.pseudoClasses[me]=[]),e.pseudoClasses[me].includes(K)||e.pseudoClasses[me].push(K)}}if(k.pseudoElements&&typeof k.pseudoElements=="object"){var l=k.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var G=0,le=l;G<le.length;G++){var oe=le[G];e.pseudoElements[oe]||(e.pseudoElements[oe]=[]),e.pseudoElements[oe].includes(K)||e.pseudoElements[oe].push(K)}else for(var ye=0,P=Object.values(l);ye<P.length;ye++)for(var p=P[ye],Oe=0,ce=p;Oe<ce.length;Oe++){var w=ce[Oe];e.pseudoElements[w]||(e.pseudoElements[w]=[]),e.pseudoElements[w].includes(K)||e.pseudoElements[w].push(K)}}}return e}var m2=iee();function Su(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function g2(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Cu(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var see={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},oee={'"':!0,"'":!0},Q1={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},lee=6,K1="css-selector-parser parse error: ";function cee(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,s=a===void 0?!0:a,l=e.modules,c=typeof n=="object"?n:uE[n];if(c.baseSyntax&&(c=Ao(uE[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var d=0,f=c.modules;d<f.length;d++){var p=f[d],m=jp[p];m&&(c=Ao(m,c))}if(l&&l.length>0)for(var y=0,E=l;y<E.length;y++){var T=E[y],m=jp[T];m&&(c=Ao(m,c))}var A=c.tag?[!0,!!tee(c.tag).wildcard]:[!1,!1],C=A[0],x=A[1],D=!!c.ids,S=!!c.classNames,L=!!c.namespace,M=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(L&&!C)throw new Error("".concat(K1,"Namespaces cannot be enabled while tags are disabled."));var I=!!r,V=c.combinators?u2(c.combinators):Jh,ne=c.attributes?[!0,c.attributes.operators?u2(c.attributes.operators):Jh,c.attributes.caseSensitivityModifiers?XJ(c.attributes.caseSensitivityModifiers):oE,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,Jh,oE,!1],K=ne[0],k=ne[1],H=ne[2],Q=ne[3],W=Q||Object.keys(H).length>0,re=c.pseudoClasses?[!0,c.pseudoClasses.definitions?f2(c.pseudoClasses.definitions):Rh,c.pseudoClasses.unknown==="accept"]:[!1,Rh,!1],me=re[0],G=re[1],le=re[2],oe=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?f2(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):Rh,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,Rh,!1],ye=oe[0],P=oe[1],Oe=oe[2],ce=oe[3],w=oe[4],te="",Ce=te.length,Ie=0,Me="",Le=function(_e){return Me===_e},st=function(){return Le("*")||Su(Me)},dt=function(_e){Ie=_e,Me=te.charAt(Ie)},Ue=function(){Ie++,Me=te.charAt(Ie)},en=function(){var _e=Me;return Ie++,Me=te.charAt(Ie),_e};function wt(_e){var Te=Math.min(Ce-1,Ie),it=new Error("".concat(K1).concat(_e," Pos: ").concat(Te,"."));throw it.position=Te,it.name="ParserError",it}function $e(_e,Te){if(!_e)return wt(Te)}var sr=function(){$e(Ie<Ce,"Unexpected end of input.")},fn=function(){return Ie>=Ce},Ve=function(_e){$e(Ie<Ce,'Expected "'.concat(_e,'" but end of input reached.')),$e(Me===_e,'Expected "'.concat(_e,'" but "').concat(Me,'" found.')),Ie++,Me=te.charAt(Ie)};function Zn(_e){var Te=an(_e,Ie);if(Te)return Ie+=Te.length,Me=te.charAt(Ie),Te}function an(_e,Te){var it=te.charAt(Te),We=_e[it];if(We){var Dn=an(We.chars,Te+1);if(Dn)return Dn;if(We.self)return We.self}}function on(){for(var _e=en(),Te=1;Cu(Me)&&Te<lee;)_e+=en(),Te++;return Ua(),String.fromCharCode(parseInt(_e,16))}function Ye(_e){var Te="";for(Ve(_e);Ie<Ce;){if(Le(_e))return Ue(),Te;Le("\\")?(Ue(),Le(_e)?(Te+=_e,Ue()):Me===`
208
- `||Me==="\f"?Ue():Me==="\r"?(Ue(),Le(`
209
- `)&&Ue()):Cu(Me)?Te+=on():(Te+=Me,Ue())):(Te+=Me,Ue())}return Te}function Ct(){if(!Su(Me))return null;for(var _e="";Le("-");)_e+=Me,Ue();for(_e==="-"&&!g2(Me)&&!Le("\\")&&wt("Identifiers cannot consist of a single hyphen."),s&&_e.length>=2&&wt("Identifiers cannot start with two hyphens with strict mode on."),Q1[Me]&&wt("Identifiers cannot start with hyphens followed by digits.");Ie<Ce;)if(g2(Me))_e+=en();else if(Le("\\"))Ue(),sr(),Cu(Me)?_e+=on():_e+=en();else break;return _e}function Sr(){for(var _e="";Ie<Ce&&!Le(")");)if(Le("\\")){if(Ue(),fn()&&!s)return(_e+"\\").trim();sr(),Cu(Me)?_e+=on():_e+=en()}else _e+=en();return _e.trim()}function Ua(){if(Me===" "||Me===" "||Me==="\f"||Me===`
210
- `){Ue();return}Me==="\r"&&Ue(),Me===`
211
- `&&Ue()}function Rt(){for(;see[Me];)Ue()}function ue(_e){_e===void 0&&(_e=!1),Rt();for(var Te=[Cn(_e)];Le(",");)Ue(),Rt(),Te.push(Cn(_e));return{type:"Selector",rules:Te}}function ve(){Ve("["),Rt();var _e;if(Le("|")){$e(L,"Namespaces are not enabled."),Ue();var Te=Ct();$e(Te,"Expected attribute name."),_e={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(Le("*")){$e(L,"Namespaces are not enabled."),$e(M,"Wildcard namespace is not enabled."),Ue(),Ve("|");var it=Ct();$e(it,"Expected attribute name."),_e={type:"Attribute",name:it,namespace:{type:"WildcardNamespace"}}}else{var We=Ct();if($e(We,"Expected attribute name."),_e={type:"Attribute",name:We},Le("|")){var Dn=Ie;if(Ue(),Su(Me)){$e(L,"Namespaces are not enabled.");var jr=Ct();$e(jr,"Expected attribute name."),_e={type:"Attribute",name:jr,namespace:{type:"NamespaceName",name:We}}}else dt(Dn)}}if($e(_e.name,"Expected attribute name."),Rt(),fn()&&!s)return _e;if(Le("]"))Ue();else{if(_e.operator=Zn(k),$e(_e.operator,"Expected a valid attribute selector operator."),Rt(),sr(),oee[Me])_e.value={type:"String",value:Ye(Me)};else if(I&&Le("$")){Ue();var Er=Ct();$e(Er,"Expected substitute name."),_e.value={type:"Substitution",name:Er}}else{var or=Ct();$e(or,"Expected attribute value."),_e.value={type:"String",value:or}}if(Rt(),fn()&&!s)return _e;if(!Le("]")){var lr=Ct();if($e(lr,"Expected end of attribute selector."),_e.caseSensitivityModifier=lr,$e(W,"Attribute case sensitivity modifiers are not enabled."),$e(Q||H[_e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Rt(),fn()&&!s)return _e}Ve("]")}return _e}function je(){for(var _e="";Q1[Me];)_e+=en();return $e(_e!=="","Formula parse error."),parseInt(_e)}var nt=function(){return Le("-")||Le("+")||Q1[Me]};function Dt(){if(Le("e")||Le("o")){var _e=Ct();if(_e==="even")return Rt(),[2,0];if(_e==="odd")return Rt(),[2,1]}var Te=null,it=1;if(Le("-")&&(Ue(),it=-1),nt()&&(Le("+")&&Ue(),Te=je(),!Le("\\")&&!Le("n")))return[0,Te*it];Te===null&&(Te=1),Te*=it;var We;if(Le("\\")?(Ue(),Cu(Me)?We=on():We=en()):We=en(),$e(We==="n",'Formula parse error: expected "n".'),Rt(),Le("+")||Le("-")){var Dn=Le("+")?1:-1;return Ue(),Rt(),[Te,Dn*je()]}else return[Te,0]}function Nt(_e,Te,it){var We;if(Le("(")){if(Ue(),Rt(),I&&Le("$")){Ue();var Dn=Ct();$e(Dn,"Expected substitute name."),We={type:"Substitution",name:Dn}}else if(it.type==="String")We={type:"String",value:Sr()},$e(We.value,"Expected ".concat(Te," argument value."));else if(it.type==="Selector")We=ue(!0);else if(it.type==="Formula"){var jr=Dt(),Er=jr[0],or=jr[1];if(We={type:"Formula",a:Er,b:or},it.ofSelector&&(Rt(),Le("o")||Le("\\"))){var lr=Ct();$e(lr==="of","Formula of selector parse error."),Rt(),We={type:"FormulaOfSelector",a:Er,b:or,selector:Cn()}}}else return wt("Invalid ".concat(Te," signature."));if(Rt(),fn()&&!s)return We;Ve(")")}else $e(it.optional,"Argument is required for ".concat(Te,' "').concat(_e,'".'));return We}function Vn(){if(Le("*"))return $e(x,"Wildcard tag name is not enabled."),Ue(),{type:"WildcardTag"};if(Su(Me)){$e(C,"Tag names are not enabled.");var _e=Ct();return $e(_e,"Expected tag name."),{type:"TagName",name:_e}}else return wt("Expected tag name.")}function yn(){if(Le("*")){var _e=Ie;if(Ue(),!Le("|")||(Ue(),!st()))return dt(_e),Vn();$e(L,"Namespaces are not enabled."),$e(M,"Wildcard namespace is not enabled.");var Te=Vn();return Te.namespace={type:"WildcardNamespace"},Te}else if(Le("|")){$e(L,"Namespaces are not enabled."),Ue();var Te=Vn();return Te.namespace={type:"NoNamespace"},Te}else if(Su(Me)){var it=Ct();if($e(it,"Expected tag name."),!Le("|"))return $e(C,"Tag names are not enabled."),{type:"TagName",name:it};var _e=Ie;if(Ue(),!st())return dt(_e),{type:"TagName",name:it};$e(L,"Namespaces are not enabled.");var Te=Vn();return Te.namespace={type:"NamespaceName",name:it},Te}else return wt("Expected tag name.")}function Cn(_e){var Te,it;_e===void 0&&(_e=!1);var We={type:"Rule",items:[]};if(_e){var Dn=Zn(V);Dn&&(We.combinator=Dn,Rt())}for(;Ie<Ce;)if(st())$e(We.items.length===0,"Unexpected tag/namespace start."),We.items.push(yn());else if(Le("|")){var jr=Ie;if(Ue(),st())$e(We.items.length===0,"Unexpected tag/namespace start."),dt(jr),We.items.push(yn());else{dt(jr);break}}else if(Le(".")){$e(S,"Class names are not enabled."),Ue();var Er=Ct();$e(Er,"Expected class name."),We.items.push({type:"ClassName",name:Er})}else if(Le("#")){$e(D,"IDs are not enabled."),Ue();var or=Ct();$e(or,"Expected ID name."),We.items.push({type:"Id",name:or})}else if(Le("["))$e(K,"Attributes are not enabled."),We.items.push(ve());else if(Le(":")){var lr=!1,Ha=!1;Ue(),Le(":")&&($e(ye,"Pseudo elements are not enabled."),$e(Oe,"Pseudo elements double colon notation is not enabled."),lr=!0,Ue());var hn=Ct();if($e(lr||hn,"Expected pseudo-class name."),$e(!lr||hn,"Expected pseudo-element name."),$e(hn,"Expected pseudo-class name."),!(!lr||w||Object.prototype.hasOwnProperty.call(ce,hn))){var Br=m2.pseudoElements[hn],Ra='Unknown pseudo-element "'.concat(hn,'"');Br&&Br.length>0&&(Ra+=". It is defined in: ".concat(Br.join(", "))),wt(Ra+".")}if(Ha=ye&&(lr||!lr&&P&&Object.prototype.hasOwnProperty.call(ce,hn)),Ha){var z=(Te=ce[hn])!==null&&Te!==void 0?Te:w&&d2,X={type:"PseudoElement",name:hn},ie=Nt(hn,"pseudo-element",z);ie&&($e(ie.type!=="Formula"&&ie.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),X.argument=ie),We.items.push(X)}else{$e(me,"Pseudo-classes are not enabled.");var z=(it=G[hn])!==null&&it!==void 0?it:le&&d2;if(!z){var Br=m2.pseudoClasses[hn],Ra='Unknown pseudo-class: "'.concat(hn,'"');Br&&Br.length>0&&(Ra+=". It is defined in: ".concat(Br.join(", "))),wt(Ra+".")}var ie=Nt(hn,"pseudo-class",z),be={type:"PseudoClass",name:hn};ie&&(be.argument=ie),We.items.push(be)}}else break;if(We.items.length===0)return fn()?wt("Expected rule but end of input reached."):wt('Expected rule but "'.concat(Me,'" found.'));if(Rt(),!fn()&&!Le(",")&&!Le(")")){var Dn=Zn(V);Rt(),We.nestedRule=Cn(),We.nestedRule.combinator=Dn}return We}return function(_e){if(typeof _e!="string")throw new Error("".concat(K1,"Expected string input."));return te=_e,Ce=te.length,Ie=0,Me=te.charAt(0),ue()}}const uee=cee({syntax:"selectors-4"});function dee(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return uee(e)}const xw="֑-߿יִ-﷽ﹰ-ﻼ",Aw="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",fee=new RegExp("^[^"+Aw+"]*["+xw+"]"),hee=new RegExp("^[^"+xw+"]*["+Aw+"]");function pee(e){const t=String(e||"");return fee.test(t)?"rtl":hee.test(t)?"ltr":"neutral"}function Sw(e){return"children"in e?Cw(e):"value"in e?e.value:""}function mee(e){return e.type==="text"?e.value:"children"in e?Cw(e):""}function Cw(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=mee(e.children[t]);return n.join("")}function gee(e,t){const n=e.schema,r=e.language,a=e.direction,s=e.editableOrEditingHost;let l;if(t.type==="element"){const f=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",m=y2(t);f!=null&&(e.language=String(f)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Gi),m==="rtl"?l=m:m==="ltr"||m!=="auto"&&t.tagName==="html"||m!=="auto"&&t.tagName==="input"&&p==="tel"?l="ltr":(m==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?l=W1(Sw(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?l=t.properties.value?W1(String(t.properties.value)):"ltr":$r(t,d)),l&&(e.direction=l)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=s}function d(f){if(f.type==="text")return l=W1(f.value),l?Np:void 0;if(f!==t&&f.type==="element"&&(f.tagName==="bdi"||f.tagName==="script"||f.tagName==="style"||f.tagName==="textare"||y2(f)))return zu}}function W1(e){const t=pee(e);return t==="neutral"?void 0:t}function y2(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function yee(e,t,n){const r=Fd(n,e.name),a=t.properties[r.property];let s=Eee(a,r);if(!e.value)return s!==void 0;e.value.type;let l=e.value.value;if(e.caseSensitivityModifier==="i"&&(l=l.toLowerCase(),s&&(s=s.toLowerCase())),s!==void 0)switch(e.operator){case"=":return l===s;case"$=":return l===s.slice(-l.length);case"*=":return s.includes(l);case"^=":return l===s.slice(0,l.length);case"|=":return l===s||l===s.slice(0,l.length)&&s.charAt(l.length)==="-";case"~=":return l===s||by(s).includes(l)}return!1}function Eee(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?am:im)(e)}else return String(e)}const bee=[];function vee(e,t){return(t.properties.className||bee).includes(e.name)}function Tee(e,t){return t.properties.id===e.name}function _ee(e,t){return e.name===t.tagName}function xee(e,t){return function(n,r){let a=E2(n,"tag");const s=E2(r??"*","range"),l=[];let c=-1;for(;++c<s.length;){const d=s[c].toLowerCase();let f=-1;const p=[];for(;++f<a.length;)e(a[f].toLowerCase(),d)?l.push(a[f]):p.push(a[f]);a=p}return l}}const Aee=xee(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,s=0;if(r[s]!=="*"&&n[a]!==r[s])return!1;for(a++,s++;s<r.length;){if(r[s]==="*"){s++;continue}if(!n[a])return!1;if(n[a]===r[s]){a++,s++;continue}if(n[a].length===1)return!1;a++}return!0});function E2(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const See=new Set([9,10,12,13,32]),b2=48,Cee=57;function Dee(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=s(),a=l();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),c(),t<e.length?(r=s(),c(),a=l()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function l(){const d=t;let f=0;for(;t<e.length&&e.charCodeAt(t)>=b2&&e.charCodeAt(t)<=Cee;)f=f*10+(e.charCodeAt(t)-b2),t++;return t===d?null:f}function c(){for(;t<e.length&&See.has(e.charCodeAt(t));)t++}}var v2,T2;function kee(){return T2||(T2=1,v2={trueFunc:function(){return!0},falseFunc:function(){return!1}}),v2}var Ree=kee();const _2=Sm(Ree);function Iee(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return _2.falseFunc;if(t===-1)return s=>s<=n;if(t===0)return s=>s===n;if(t===1)return n<0?_2.trueFunc:s=>s>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?s=>s>=n&&s%r===a:s=>s<=n&&s%r===a}function x2(e){return Iee(Dee(e))}const wee={}.hasOwnProperty;function Oo(e,t){const n=e.type==="element"&&wee.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const Nee=x2.default||x2,Oee=rm("name",{handlers:{"any-link":Lee,blank:Mee,checked:Pee,dir:$ee,disabled:Dw,empty:Fee,enabled:jee,"first-child":Bee,"first-of-type":Uee,has:Hee,is:kw,lang:Gee,"last-child":Vee,"last-of-type":qee,not:Yee,"nth-child":Qee,"nth-last-child":Kee,"nth-last-of-type":Wee,"nth-of-type":Xee,"only-child":Zee,"only-of-type":Jee,optional:ete,"read-only":tte,"read-write":Rw,required:Iw,root:nte,scope:rte},invalid:zee,unknown:ate});function Lee(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Oo(t,"href")}function hi(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Mee(e,t){return!ww(t,n);function n(r){return r.type==="element"||r.type==="text"&&!$d(r)}}function Pee(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Oo(t,"checked")):t.tagName==="option"?Oo(t,"selected"):!1}function $ee(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function Dw(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&Oo(t,"disabled")}function Fee(e,t){return!ww(t,n);function n(r){return r.type==="element"||r.type==="text"}}function jee(e,t){return!Dw(e,t)}function Bee(e,t,n,r,a){return hi(a,e),a.elementIndex===0}function Uee(e,t,n,r,a){return hi(a,e),a.typeIndex===0}function Fm(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Nee(n.a+"n+"+n.b),e._cachedFn=t}return t}function Hee(e,t,n,r,a){e.argument,e.argument.type;const s={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Qb(s,{type:"root",children:t.children}),s.results.length>0}function zee(){}function kw(e,t,n,r,a){e.argument,e.argument.type;const s={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Qb(s,t),s.results[0]===t}function Gee(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&Aee(a.language,Ey(e.argument.value)).length>0}function Vee(e,t,n,r,a){return hi(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function qee(e,t,n,r,a){return hi(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function Yee(e,t,n,r,a){return!kw(e,t,n,r,a)}function Qee(e,t,n,r,a){const s=Fm(e);return hi(a,e),typeof a.elementIndex=="number"&&s(a.elementIndex)}function Kee(e,t,n,r,a){const s=Fm(e);return hi(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&s(a.elementCount-a.elementIndex-1))}function Wee(e,t,n,r,a){const s=Fm(e);return hi(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&s(a.typeCount-1-a.typeIndex)}function Xee(e,t,n,r,a){const s=Fm(e);return hi(a,e),typeof a.typeIndex=="number"&&s(a.typeIndex)}function Zee(e,t,n,r,a){return hi(a,e),a.elementCount===1}function Jee(e,t,n,r,a){return hi(a,e),a.typeCount===1}function ete(e,t){return!Iw(e,t)}function tte(e,t,n,r,a){return!Rw(e,t,n,r,a)}function Rw(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!Oo(t,"readOnly")&&!Oo(t,"disabled"):!!a.editableOrEditingHost}function Iw(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Oo(t,"required")}function nte(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function rte(e,t,n,r,a){return a.scopeElements.includes(t)}function ww(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function ate(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function ite(e,t,n,r,a){for(const s of e.items)if(s.type==="Attribute"){if(!yee(s,t,a.schema))return!1}else if(s.type==="Id"){if(!Tee(s,t))return!1}else if(s.type==="ClassName"){if(!vee(s,t))return!1}else if(s.type==="PseudoClass"){if(!Oee(s,t,n,r,a))return!1}else{if(s.type==="PseudoElement")throw new Error("Invalid selector: `::"+s.name+"`");if(s.type==="TagName"&&!_ee(s,t))return!1}return!0}const ste=[];function Qb(e,t){t&&Nw(e,[],t,void 0,void 0,t)}function X1(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function ote(e,t,n,r){const a=ep(t.descendant,t.directChild);let s,l=-1;const c={count:0,types:new Map},d={count:0,types:new Map};for(;++l<n.children.length;)A2(c,n.children[l]);for(l=-1;++l<n.children.length;){const f=n.children[l],p=f.type==="element"?f.tagName.toUpperCase():void 0;if(e.elementIndex=d.count,e.typeIndex=p&&d.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in f){const m=ep(a,s),y=Nw(e,m,n.children[l],l,n,r);s=ep(y.generalSibling,y.adjacentSibling)}if(e.one&&e.found)break;A2(d,n.children[l])}}function lte(e,t,n,r,a){const s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let l=-1;for(;++l<t.length;){const c=t[l];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(ite(c,n,r,a,e)){const d=c.nestedRule;if(d){const f=d.combinator==="+"?"adjacentSibling":d.combinator==="~"?"generalSibling":d.combinator===">"?"directChild":"descendant";X1(s,f,d)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?X1(s,"descendant",c):c.combinator==="~"&&X1(s,"generalSibling",c)}return s}function ep(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:ste}function A2(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function Nw(e,t,n,r,a,s){let l={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=gee(e,n);if(n.type==="element"){let d=e.rootQuery.rules;a&&a!==s&&(d=e.rootQuery.rules.filter(f=>f.combinator===void 0||f.combinator===">"&&a===s)),l=lte(e,ep(t,d),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&ote(e,l,n,s),c(),l}function cte(e,t,n){const r=ute(e,t);return Qb(r,t||void 0),r.results}function ute(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:dee(e),schema:nc,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Ow=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Ow(n.children))}),t),dte=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=cte(t,r);a&&a.length>0&&$r(r,a,(s,l,c)=>{n(s,l,c)});return}$r(r,(a,s,l)=>{n(a,s,l)})}}},fte=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),hte=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},Lw=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const s=e[a];if(s&&s.value&&s.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return s.tagName===n?s:void 0}else{const s=e[a];if(!s||s.type==="element"||s.type==="text"&&s.value.replace(/(\n|\s)/g,"")!=="")return;if(s.type&&/^(comment|raw)$/ig.test(s.type))return s.value&&!/^rehype:/.test(s.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?Lw(e,a,"pre",r)?void 0:(s.value=(s.value||"").replace(/^(\n|\s)+/,""),s):(s.value=(s.value||"").replace(/^(\n|\s)+/,""),s)}},S2=({value:e=""})=>{const t=fte(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},C2=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},pte=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{$r(r,"element",(a,s,l)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&l&&Array.isArray(l.children)&&l.children.length>1){const c=a.children[0];if(c&&c.tagName==="code"&&typeof s=="number"){const d=hte(l.children,s);if(d){const f=S2(d);Object.keys(f).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=C2(c.properties,f,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(a.tagName)&&l&&Array.isArray(l.children)&&typeof s=="number"){const c=Lw(l.children,s,"",n);if(c){const d=S2(c);Object.keys(d).length>0&&(a.properties=C2(a.properties,d,t))}}})}};var mte=function(e){return t=>{$r(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ae({},n.properties,{"data-meta":String(n.data.meta)}))})}},gte=function(e){return t=>{$r(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const yte=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{$r(r,(a,s,l)=>{if(a.type==="element"||a.type==="root"){let c=!1;a.children=a.children.filter(d=>{if(d.type==="raw"||d.type==="comment"){let f=(d.value||"").trim();if(f=f.replace(/^<!--(.*?)-->/,"$1"),f===t)return c=!0,!1;if(f===n)return c=!1,!1}return!c})}})}};var Ete={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function bte(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}const vte=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Tte=Object.hasOwnProperty;let _te=class{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=xte(t,n===!0);const s=a;for(;Tte.call(r.occurrences,a);)r.occurrences[s]++,a=s+"-"+r.occurrences[s];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};function xte(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(vte,"").replace(/ /g,"-"))}function Mw(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Ate={},D2=new _te;function Ste(e){const t=(e||Ate).prefix||"";return function(n){D2.reset(),$r(n,"element",function(r){Mw(r)&&!r.properties.id&&(r.properties.id=t+D2.slug(Sw(r)))})}}const Pw=function(e){if(e==null)return kte;if(typeof e=="string")return Dte(e);if(typeof e=="object")return Cte(e);if(typeof e=="function")return Kb(e);throw new Error("Expected function, string, or array as `test`")};function Cte(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Pw(e[n]);return Kb(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function Dte(e){return Kb(t);function t(n){return n.tagName===e}}function Kb(e){return t;function t(n,r,a){return!!(Rte(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function kte(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Rte(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const k2={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},Ite={};function wte(e){const t=e||Ite;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",s=t.content,l=t.group,c=Pw(t.test);let d;return a==="after"||a==="before"?d=p:a==="wrap"?d=m:(d=f,n||(n={ariaHidden:"true",tabIndex:-1})),function(y){$r(y,"element",function(E,T,A){if(Mw(E)&&E.properties.id&&c(E,T,A))return Object.assign(E.properties,wh(r,E)),d(E,T,A)})};function f(y){const E=R2(s||k2,y);return y.children[a==="prepend"?"unshift":"push"](Z1(y,wh(n,y),E)),[zu]}function p(y,E,T){if(typeof E!="number"||!T)return;const A=R2(s||k2,y),C=Z1(y,wh(n,y),A);let x=a==="before"?[C,y]:[y,C];if(l){const D=$w(l,y);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=x,x=[D])}return T.children.splice(E,1,...x),[zu,E+x.length]}function m(y){let E=y.children,T=[];return typeof s=="function"?(E=[],T=s(y)):s&&(T=Wb(s)),y.children=[Z1(y,wh(n,y),Array.isArray(T)?[...E,...T]:[...E,T])],[zu]}}function Wb(e){return No(e)}function Z1(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function R2(e,t){const n=$w(e,t);return Array.isArray(n)?n:[n]}function $w(e,t){return typeof e=="function"?e(t):Wb(e)}function wh(e,t){return typeof e=="function"?e(t):e?Wb(e):{}}var Nte=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var s=n.children&&n.children[0];s&&s.properties&&s.properties.ariaHidden==="true"&&(s.properties=Ae({class:"anchor"},s.properties),s.children=[Ete])}if(n.type==="element"&&n.tagName==="pre"&&!e){var l=Ow(n.children);n.children.push(bte(l))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},Ote=[Ste,wte,yte];const Fw=Ne.forwardRef((e,t)=>{var n,r=[mte,gte,...Ote,[dte,{rewrite:Nte((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[pte,{properties:"attr"}],...e.rehypePlugins||[]];return b.jsx(KJ,Ae({},e,{rehypePlugins:r,ref:t}))});function Lte(e,t){return Ae({},e,t)}var fc=Ne.createContext({markdown:""});function jw(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ae({},t,jw(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function Bw(e,t,n,r,a){t===void 0&&(t=[]);var s=jw(t||[]),l=[];if(e.altKey&&l.push("alt"),e.shiftKey&&l.push("shift"),e.metaKey&&l.push("cmd"),e.ctrlKey&&l.push("ctrl"),l.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&l.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&l.push("escape"),!(l.length<1)){var c=!!s[l.join("+")],d=c?s[l.join("+")]:void 0;if(Object.keys(s).forEach(f=>{var p=f.split("+").every(m=>/ctrlcmd/.test(m)?l.includes("ctrl")||l.includes("cmd"):l.includes(m));p&&(d=s[f])}),d&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(d,r,a,l);return}}}var J1;function I2(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof J1>"u"){var t=document.createElement("textarea");t.value="1",J1=!!t.firstChild}return J1}function ql(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,s=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var l=document.createRange(),c=document.createTextNode(t);if(I2(e)){var d=e.firstChild;if(!d)e.appendChild(c);else{for(var f=0,p=null,m=null;d&&(p===null||m===null);){var y=d.nodeValue.length;a>=f&&a<=f+y&&l.setStart(p=d,a-f),s>=f&&s<=f+y&&l.setEnd(m=d,s-f),f+=y,d=d.nextSibling}a!==s&&l.deleteContents()}}if(I2(e)&&l.commonAncestorContainer.nodeName==="#text")l.insertNode(c);else{var E=e.value;e.value=E.slice(0,a)+t+E.slice(s)}}e.setSelectionRange(a+t.length,a+t.length);var T=document.createEvent("UIEvent");T.initEvent("input",!0,!1),e.dispatchEvent(T)}}function Ar(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,s=n;if(t&&t.length&&n.start===n.end&&(s=Mte(t,n.start)),s.start>=r.length&&s.end<=t.length-a.length){var l=t.slice(s.start-r.length,s.end+a.length);if(l.startsWith(r)&&l.endsWith(a))return{start:s.start-r.length,end:s.end+a.length}}return s}function Zu(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
212
- `)+1,a=t.slice(n.end).indexOf(`
213
- `)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function Uw(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function Hw(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function Mte(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=c=>c===" "||c.charCodeAt(0)===10,r=0,a=e.length,s=t;s-1>-1;s--)if(n(e[s-1])){r=s;break}for(var l=t;l<e.length;l++)if(n(e[l])){a=l;break}return{start:r,end:a}}function rr(e){var{api:t,selectedText:n,selection:r,prefix:a,suffix:s=a}=e;n.length>=a.length+s.length&&n.startsWith(a)&&n.endsWith(s)?(t.replaceSelection(n.slice(a.length,s.length?-s.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+s),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function Xb(e,t){var n=e.split(/\n/),r=0,a=n.map((s,l)=>{if(typeof t=="string")return s.startsWith(t)?(r-=t.length,s.slice(t.length)):(r+=t.length,t+s);if(typeof t=="function"){if(s.startsWith(t(s,l)))return r-=t(s,l).length,s.slice(t(s,l).length);var c=t(s,l);return r+=c.length,t(s,l)+s}throw Error("insertion is expected to be either a string or a function")}).join(`
214
- `);return{modifiedText:a,insertionLength:r}}var Pte={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:b.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:b.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},zw={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:b.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:b.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",s="\n```\n";r.selectedText.length>=a.length+s.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(s)?(a="```\n",s="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
215
- `||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
216
- `||r.selection.end===e.text.length)&&(s="\n```"));var l=Ar({text:e.text,selection:e.selection,prefix:a,suffix:s}),c=t.setSelectionRange(l);rr({api:t,selectedText:c.selectedText,selection:e.selection,prefix:a,suffix:s})}},$te={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:b.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:b.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
217
- `)===-1){var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else zw.execute(e,t)}},Fte={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:b.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:b.jsxs("g",{fill:"none",fillRule:"evenodd",children:[b.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),b.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),b.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},tp={keyCommand:"divider"},jte={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({fullscreen:!r.fullscreen})}};function Bte(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var Ute=(e,t)=>{var n=Ae({children:e,icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var a=Ae({},(Bte(r),r));return a.parent=n,Ae({},a)})),n},Hte={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
218
-
219
- ---
220
- `,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:b.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},zte={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"![image](",suffix:")",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:b.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:b.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=Ar({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![image",suffix:"](url)"}):rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},Gte={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:b.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:b.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Vte={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:b.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:b.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=Ar({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},Zb=(e,t,n)=>{var r=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),s=Uw(a.text,a.selection.start),l=Array(s+1).join(`
221
- `),c=Hw(a.text,a.selection.end),d=Array(c+1).join(`
222
- `),{modifiedText:f,insertionLength:p}=Xb(a.selectedText,n);if(p<0){var m=a.selection.start,y=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
223
- `&&(m-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
224
- `&&(y+=1),t.setSelectionRange({start:m,end:y}),t.replaceSelection(""+f),t.setSelectionRange({start:m,end:m+f.length})}else{t.replaceSelection(""+l+f+d);var E=a.selection.start+s,T=E+f.length;t.setSelectionRange({start:E,end:T})}},qte={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:b.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:b.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{Zb(e,t,"- ")}},Yte={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:b.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{Zb(e,t,(n,r)=>r+1+". ")}},Qte={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:b.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{Zb(e,t,(n,r)=>"- [ ] ")}},Kte={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),b.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"preview"})}},Wte={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),b.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"edit"})}},Xte={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),b.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"live"})}},Zte={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=Uw(r.text,r.selection.start),s=Array(a+1).join(`
225
- `),l=Hw(r.text,r.selection.end),c=Array(l+1).join(`
226
- `),d=Xb(r.selectedText,e.command.prefix);t.replaceSelection(""+s+d.modifiedText+c);var f=r.selection.start+a,p=f+d.modifiedText.length;t.setSelectionRange({start:f,end:p})}},Jte={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:b.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Gw={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:b.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{hc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},ene=Gw;function hc(e){var{state:t,api:n,prefix:r,suffix:a=r}=e,s=Zu({text:t.text,selection:t.selection}),l=n.setSelectionRange(s);rr({api:n,selectedText:l.selectedText,selection:t.selection,prefix:r,suffix:a})}Ae({},Gw,{icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var tne={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:b.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{hc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},nne=tne,rne={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:b.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{hc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},ane=rne,ine={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:b.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{hc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},sne=ine,one={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:b.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{hc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},lne=one,cne={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:b.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{hc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},une=cne,dne={name:"table",keyCommand:"table",prefix:`
227
- | Header | Header |
228
- |--------|--------|
229
- | Cell | Cell |
230
- | Cell | Cell |
231
- | Cell | Cell |
232
-
233
- `,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:b.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:b.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=Ar({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),rr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},fne={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:b.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:b.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},hne=()=>[Pte,Gte,Jte,Hte,Ute([ene,nne,ane,sne,lne,une],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),tp,Vte,Zte,$te,zw,Fte,zte,dne,tp,qte,Yte,Qte,tp,fne],pne=()=>[Wte,Xte,Kte,tp,jte];function Bp(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}let Jb=class{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return ql(this.textArea,t),Bp(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,Bp(this.textArea)}};class ev{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new Jb(t)}getState(){return this.textArea?Bp(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(Ae({command:t},Bp(this.textArea)),this.textApi,n,r,a)}}function np(e){e.stopPropagation(),e.preventDefault()}function w2(e,t){np(e);var n=e.target,r=new Jb(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=Zu({text:n.value,selection:a}),!(t<0&&a.start<=0||t>0&&a.end>=n.value.length)){var s=n.value.slice(a.start,a.end);if(t<0){var l=Zu({text:n.value,selection:{start:a.start-1,end:a.start-1}}),c=n.value.slice(l.start,l.end);r.setSelectionRange({start:l.start,end:a.end}),ql(n,s+`
234
- `+c),r.setSelectionRange({start:l.start,end:l.start+s.length})}else{var d=Zu({text:n.value,selection:{start:a.end+1,end:a.end+1}}),f=n.value.slice(d.start,d.end);r.setSelectionRange({start:a.start,end:d.end}),ql(n,f+`
235
- `+s),r.setSelectionRange({start:d.end-s.length,end:d.end})}}}function mne(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,a=r.value.substr(0,r.selectionStart),s=a.split(`
236
- `),l=s[s.length-1],c=new Jb(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){np(e);var d=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var f=r.value.substring(0,r.selectionStart).split(`
237
- `),p=r.value.substring(0,r.selectionEnd).split(`
238
- `),m=[];p.forEach((V,ne)=>{V!==f[ne]&&m.push(V)});var y=m.join(`
239
- `),E=r.value.substring(r.selectionStart,r.selectionEnd),T=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(y),end:r.selectionEnd});var A=Xb(y,e.shiftKey?"":d),C=A.modifiedText;e.shiftKey&&(C=C.split(`
240
- `).map(V=>V.replace(new RegExp("^"+d),"")).join(`
241
- `)),c.replaceSelection(C);var x=e.shiftKey?-t:t,D=e.shiftKey?-m.length*t:m.length*t;c.setSelectionRange({start:T+x,end:T+E.length+D})}else return ql(r,d)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(l)||/^\d+.\s/.test(l))&&!e.shiftKey){np(e);var S=`
242
- - `;return l.startsWith("*")&&(S=`
243
- * `),(l.startsWith("- [ ]")||l.startsWith("- [X]")||l.startsWith("- [x]"))&&(S=`
244
- - [ ] `),/^\d+.\s/.test(l)&&(S=`
245
- `+(parseInt(l)+1)+". "),ql(r,S)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){np(e);var L={start:r.selectionStart,end:r.selectionEnd},M=L;L=Zu({text:r.value,selection:L});var I=r.value.slice(L.start,L.end);c.setSelectionRange({start:L.end,end:L.end}),ql(r,`
246
- `+I),c.setSelectionRange({start:M.start,end:M.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?w2(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&w2(e,1)}var gne=["prefixCls","onChange"],yne=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function Ene(e){var{prefixCls:t,onChange:n}=e,r=fr(e,gne),a=N.useContext(fc),{markdown:s,commands:l,fullscreen:c,preview:d,highlightEnable:f,extraCommands:p,tabSize:m,defaultTabEnable:y,autoFocusEnd:E,textareaWarp:T,dispatch:A}=a;fr(a,yne);var C=Ne.useRef(null),x=Ne.useRef(),D=Ne.useRef({fullscreen:c,preview:d});N.useEffect(()=>{D.current={fullscreen:c,preview:d,highlightEnable:f}},[c,d,f]),N.useEffect(()=>{if(C.current&&A){var L=new ev(C.current);x.current=L,A({textarea:C.current,commandOrchestrator:L})}},[]),N.useEffect(()=>{if(E&&C.current&&T){C.current.focus();var L=C.current.value.length;C.current.setSelectionRange(L,L),setTimeout(()=>{T&&(T.scrollTop=T.scrollHeight),C.current&&(C.current.scrollTop=C.current.scrollHeight)},0)}},[T]);var S=L=>{mne(L,m,y),Bw(L,[...l||[],...p||[]],x.current,A,D.current)};return N.useEffect(()=>(C.current&&C.current.addEventListener("keydown",S),()=>{C.current&&C.current.removeEventListener("keydown",S)}),[]),b.jsx("textarea",Ae({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:C,className:t+"-text-input "+(r.className?r.className:""),value:s,onChange:L=>{A&&A({markdown:L.target.value}),n&&n(L)}}))}var bne=["prefixCls","className","onScroll","renderTextarea"];function vne(e){var t=e||{},{prefixCls:n,className:r,onScroll:a,renderTextarea:s}=t,l=fr(t,bne),{markdown:c,scrollTop:d,commands:f,extraCommands:p,dispatch:m}=N.useContext(fc),y=Ne.useRef(null),E=Ne.useRef(),T=Ne.createRef();N.useEffect(()=>{var C={};T.current&&(C.textareaWarp=T.current||void 0,T.current.scrollTop=d||0),m&&m(Ae({},C))},[]),N.useEffect(()=>{if(y.current&&m){var C=new ev(y.current);E.current=C,m({textarea:y.current,commandOrchestrator:C})}},[]);var A={WebkitTextFillColor:"initial",overflow:"auto"};return b.jsx("div",{ref:T,className:n+"-area "+(r||""),onScroll:a,children:b.jsx("div",{className:n+"-text",children:s?Ne.cloneElement(s(Ae({},l,{value:c,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:m,onChange:l.onChange,shortcuts:Bw,useContext:{commands:f,extraCommands:p,commandOrchestrator:E.current}}),{ref:y}):b.jsx(N.Fragment,{children:b.jsx(Ene,Ae({prefixCls:n},l,{style:A}))})})})}function Tne(e){var{prefixCls:t,groupName:n,commands:r,children:a}=e||{},{barPopup:s={}}=N.useContext(fc);return N.useMemo(()=>b.jsx("div",{className:t+"-toolbar-child "+(n&&s[n]?"active":""),onClick:l=>l.stopPropagation(),children:Array.isArray(r)?b.jsx(Vw,Ae({commands:r},e,{isChild:!0})):a}),[r,s,n,t])}function N2(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:a,barPopup:s={},components:l,commandOrchestrator:c,dispatch:d}=N.useContext(fc),f=N.useRef("");function p(m,y){if(d){var E={barPopup:Ae({},s)};m.keyCommand==="preview"&&(E.preview=m.value),m.keyCommand==="fullscreen"&&(E.fullscreen=!r),e.commands&&m.keyCommand==="group"?e.commands.forEach(T=>{y===T.groupName?E.barPopup[y]=!0:T.keyCommand&&(E.barPopup[T.groupName]=!1)}):(y||m.parent)&&Object.keys(E.barPopup||{}).forEach(T=>{E.barPopup[T]=!1}),Object.keys(E).length&&d(Ae({},E)),c&&c.executeCommand(m)}}return N.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(f.current||(f.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=f.current))},[r,f,n]),b.jsx("ul",{children:(e.commands||[]).map((m,y)=>{if(m.keyCommand==="divider")return b.jsx("li",Ae({},m.liProps,{className:t+"-toolbar-divider"}),y);if(!m.keyCommand)return b.jsx(N.Fragment,{},y);var E=r&&m.keyCommand==="fullscreen"||m.keyCommand==="preview"&&a===m.value,T=m.children&&typeof m.children=="function"?m.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>p({},m.groupName),execute:()=>p({execute:m.execute}),dispatch:d}):void 0,A=s&&a&&a==="preview"&&!/(preview|fullscreen)/.test(m.keyCommand),C=l?.toolbar||m.render,x=C&&typeof C=="function"?C(m,!!A,p,y):null;return b.jsxs("li",Ae({},m.liProps,{className:E?"active":"",children:[x&&Ne.isValidElement(x)&&x,!x&&!m.buttonProps&&m.icon,!x&&m.buttonProps&&Ne.createElement("button",Ae({type:"button",key:y,disabled:A,"data-name":m.name},m.buttonProps,{onClick:D=>{D.stopPropagation(),p(m,m.groupName)}}),m.icon),m.children&&b.jsx(Tne,{overflow:n,groupName:m.groupName,prefixCls:t,children:T,commands:Array.isArray(m.children)?m.children:void 0})]}),y)})})}function Vw(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:a,extraCommands:s}=N.useContext(fc);return b.jsxs("div",{className:t+"-toolbar "+r,children:[b.jsx(N2,Ae({},e,{commands:e.commands||a||[]})),!n&&b.jsx(N2,Ae({},e,{commands:s||[]}))]})}function O2(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:a,prefixCls:s}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var l=n?"bottom":"";return b.jsx(Vw,{prefixCls:s,overflow:a,className:l})}var _ne=e=>{var{prefixCls:t,onChange:n}=e||{},r=N.useRef(null),a=N.useRef(),s=N.useRef(e.height);N.useEffect(()=>{s.current!==e.height&&(s.current=e.height)},[e.height]);function l(p){if(a.current){var m,y=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY),E=a.current.height+y-a.current.dragY;E>=e.minHeight&&E<=e.maxHeight&&n&&n(a.current.height+(y-a.current.dragY))}}function c(){var p,m;a.current=void 0,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),(p=r.current)==null||p.removeEventListener("touchmove",l),(m=r.current)==null||m.removeEventListener("touchend",c)}function d(p){var m,y,E;p.preventDefault();var T=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY);a.current={height:s.current,dragY:T},document.addEventListener("mousemove",l),document.addEventListener("mouseup",c),(y=r.current)==null||y.addEventListener("touchmove",l,{passive:!1}),(E=r.current)==null||E.addEventListener("touchend",c,{passive:!1})}N.useEffect(()=>{if(document){var p,m;(p=r.current)==null||p.addEventListener("touchstart",d,{passive:!1}),(m=r.current)==null||m.addEventListener("mousedown",d)}return()=>{if(document){var y;(y=r.current)==null||y.removeEventListener("touchstart",d),document.removeEventListener("mousemove",l)}}},[]);var f=N.useMemo(()=>b.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:b.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return b.jsx("div",{className:t+"-bar",ref:r,children:f})},xne=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function Ane(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var Sne=Ne.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:a,value:s,commands:l=hne(),commandsFilter:c,direction:d,extraCommands:f=pne(),height:p=200,enableScroll:m=!0,visibleDragbar:y=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:E=!0,preview:T="live",fullscreen:A=!1,overflow:C=!0,previewOptions:x={},textareaProps:D,maxHeight:S=1200,minHeight:L=100,autoFocus:M,autoFocusEnd:I=!1,tabSize:V=2,defaultTabEnable:ne=!1,onChange:K,onStatistics:k,onHeightChange:H,hideToolbar:Q,toolbarBottom:W=!1,components:re,renderTextarea:me}=n,G=fr(n,xne),le=l.map(Ve=>c?c(Ve,!1):Ve).filter(Boolean),oe=f.map(Ve=>c?c(Ve,!0):Ve).filter(Boolean),[ye,P]=N.useReducer(Lte,{markdown:s,preview:T,components:re,height:p,minHeight:L,highlightEnable:E,tabSize:V,defaultTabEnable:ne,scrollTop:0,scrollTopPreview:0,commands:le,extraCommands:oe,fullscreen:A,barPopup:{}}),Oe=N.useRef(null),ce=N.useRef(null),w=N.useRef(m);N.useImperativeHandle(t,()=>Ae({},ye,{container:Oe.current,dispatch:P})),N.useMemo(()=>w.current=m,[m]),N.useEffect(()=>{var Ve={};Oe.current&&(Ve.container=Oe.current||void 0),Ve.markdown=s||"",Ve.barPopup={},P&&P(Ae({},ye,Ve))},[]);var te=[a,"wmde-markdown-var",d?r+"-"+d:null,r,ye.preview?r+"-show-"+ye.preview:null,ye.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();N.useMemo(()=>s!==ye.markdown&&P({markdown:s||""}),[s,ye.markdown]),N.useMemo(()=>T!==ye.preview&&P({preview:T}),[T]),N.useMemo(()=>V!==ye.tabSize&&P({tabSize:V}),[V]),N.useMemo(()=>E!==ye.highlightEnable&&P({highlightEnable:E}),[E]),N.useMemo(()=>M!==ye.autoFocus&&P({autoFocus:M}),[M]),N.useMemo(()=>I!==ye.autoFocusEnd&&P({autoFocusEnd:I}),[I]),N.useMemo(()=>A!==ye.fullscreen&&P({fullscreen:A}),[A]),N.useMemo(()=>p!==ye.height&&P({height:p}),[p]),N.useMemo(()=>p!==ye.height&&H&&H(ye.height,p,ye),[p,H,ye]),N.useMemo(()=>l!==ye.commands&&P({commands:le}),[e.commands]),N.useMemo(()=>f!==ye.extraCommands&&P({extraCommands:oe}),[e.extraCommands]);var Ce=N.useRef(),Ie=N.useRef("preview"),Me=N.useRef(!1);N.useMemo(()=>{Ce.current=ye.textareaWarp,ye.textareaWarp&&(ye.textareaWarp.addEventListener("mouseover",()=>{Ie.current="text"}),ye.textareaWarp.addEventListener("mouseleave",()=>{Ie.current="preview"}))},[ye.textareaWarp]);var Le=(Ve,Zn)=>{if(w.current){var an=Ce.current,on=ce.current?ce.current:void 0;if(Me.current||(Ie.current=Zn,Me.current=!0),an&&on){var Ye=(an.scrollHeight-an.offsetHeight)/(on.scrollHeight-on.offsetHeight);Ve.target===an&&Ie.current==="text"&&(on.scrollTop=an.scrollTop/Ye),Ve.target===on&&Ie.current==="preview"&&(an.scrollTop=on.scrollTop*Ye);var Ct=0;Ie.current==="text"?Ct=an.scrollTop||0:Ie.current==="preview"&&(Ct=on.scrollTop||0),P({scrollTop:Ct})}}},st=r+"-preview "+(x.className||""),dt=Ve=>Le(Ve,"preview"),Ue=N.useMemo(()=>b.jsx("div",{ref:ce,className:st,children:b.jsx(Fw,Ae({},x,{onScroll:dt,source:ye.markdown||""}))}),[st,x,ye.markdown]),en=re?.preview&&re?.preview(ye.markdown||"",ye,P);en&&Ne.isValidElement(en)&&(Ue=b.jsx("div",{className:st,ref:ce,onScroll:dt,children:en}));var wt=Ae({},G.style,{height:ye.height||"100%"}),$e=()=>P({barPopup:Ae({},Ane(ye.barPopup))}),sr=Ve=>P({height:Ve}),fn=Ve=>{if(K&&K(Ve.target.value,Ve,ye),D&&D.onChange&&D.onChange(Ve),ye.textarea&&ye.textarea instanceof HTMLTextAreaElement&&k){var Zn=new ev(ye.textarea),an=Zn.getState()||{};k(Ae({},an,{lineCount:Ve.target.value.split(`
247
- `).length,length:Ve.target.value.length}))}};return b.jsx(fc.Provider,{value:Ae({},ye,{dispatch:P}),children:b.jsxs("div",Ae({ref:Oe,className:te},G,{onClick:$e,style:wt,children:[b.jsx(O2,{hideToolbar:Q,toolbarBottom:W,prefixCls:r,overflow:C,placement:"top"}),b.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(ye.preview||"")&&b.jsx(vne,Ae({className:r+"-input",prefixCls:r,autoFocus:M},D,{onChange:fn,renderTextarea:re?.textarea||me,onScroll:Ve=>Le(Ve,"text")})),/(live|preview)/.test(ye.preview||"")&&Ue]}),y&&!ye.fullscreen&&b.jsx(_ne,{prefixCls:r,height:ye.height,maxHeight:S,minHeight:L,onChange:sr}),b.jsx(O2,{hideToolbar:Q,toolbarBottom:W,prefixCls:r,overflow:C,placement:"bottom"})]}))})}),qw=Sne;qw.Markdown=Fw;function Cne({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const a={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0,sourceName:e.sourceName,modelPath:e.modelPath};return b.jsx(s3,{sourceAndPaths:t,existingQuery:a,existingSourceName:e.sourceName,onQueryChange:n,onSourceChange:r})}function Dne({cell:e,expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMalloy:a,editingMarkdown:s,sourceAndPaths:l,onCellChange:c,onClose:d,onEdit:f,onDelete:p,addButtonCallback:m}){const[y,E]=N.useState(e.value),[T,A]=Ne.useState(t),[C,x]=Ne.useState(n),[D,S]=Ne.useState(),[L]=Ne.useState(),[M,I]=Ne.useState($u()),[V,ne]=Ne.useState(!1),[K,k]=Ne.useState(e.sourceName?l.findIndex(w=>w.sourceInfo.name===e.sourceName):0);N.useEffect(()=>{e.isMarkdown||Co(e.value,"malloy").then(w=>{S(w)})},[e]),Ne.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[H,Q]=N.useState(!1),W=()=>{p(),Q(!1)},re=l.length===0,me=Ne.useCallback(()=>{const w=l[K],te=w?.modelPath||e.modelPath||"",Ce=w?.sourceInfo.name||e.sourceName||"";c({...e,value:e.isMarkdown?y:M.query,result:M.malloyResult?JSON.stringify(M.malloyResult):void 0,queryInfo:M.malloyQuery?JSON.stringify(M.malloyQuery):void 0,sourceName:Ce,modelPath:te})},[e,y,M,c,K,l]),G=b.jsx(Sn,{title:"Delete Cell",children:b.jsx(An,{size:"small",onClick:()=>Q(!0),children:b.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),le=b.jsxs(Up,{open:H,onClose:()=>Q(!1),children:[b.jsx(Hp,{children:"Confirm Delete"}),b.jsx(zp,{children:b.jsx(Pe,{children:"Are you sure you want to delete this cell?"})}),b.jsxs(B2,{children:[b.jsx(Lr,{onClick:()=>Q(!1),children:"Cancel"}),b.jsx(Lr,{onClick:W,color:"error",children:"Delete"})]})]}),oe=()=>{me(),d()},ye=e.isMarkdown?b.jsxs(b.Fragment,{children:[s?b.jsx(Sn,{title:"Save",children:b.jsx(An,{size:"small",onClick:oe,children:b.jsx(xh,{})})}):b.jsx(Sn,{title:"Edit",children:b.jsx(An,{size:"small",onClick:f,children:b.jsx(oC,{})})}),!s&&G]}):b.jsxs(b.Fragment,{children:[!a&&b.jsx(Sn,{title:T?"Hide Code":"View Code",children:b.jsx(An,{size:"small",onClick:()=>{A(!T)},children:b.jsx(c3,{})})}),!r&&!a&&e.result&&b.jsx(Sn,{title:C?"Hide Embedding":"View Embedding",children:b.jsx(An,{size:"small",onClick:()=>{x(!C)},children:b.jsx(Od,{})})}),a&&b.jsx(Sn,{title:"Save",children:b.jsx(An,{size:"small",onClick:oe,children:b.jsx(xh,{})})}),!a&&b.jsx(Sn,{title:"Edit",children:b.jsx(An,{size:"small",onClick:f,children:b.jsx(oC,{})})}),!a&&G]}),P=a||s,Oe=s?b.jsx(Sn,{title:"Save",children:b.jsx(An,{size:"small",onClick:oe,children:b.jsx(xh,{})})}):a?b.jsx(Sn,{title:"Save",children:b.jsx(An,{size:"small",onClick:oe,children:b.jsx(xh,{})})}):null,ce=V&&b.jsx(ut,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!P&&b.jsxs(b.Fragment,{children:[m(!0),m(!1),ye]})||Oe});return b.jsxs(zn,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>ne(!0),onMouseLeave:()=>{ne(!1)},children:[ce,e.isMarkdown?b.jsx(b.Fragment,{children:s?b.jsx(qw,{value:y,preview:"edit",autoFocus:!0,onChange:w=>{E(w),c({...e,value:w})},onBlur:()=>{me(),V||oe()}}):b.jsx(ut,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:e.value?b.jsx(ut,{onClick:f,sx:{cursor:"pointer"},children:b.jsx(ab,{children:e.value})}):b.jsxs(ut,{onClick:f,sx:{cursor:"pointer"},children:[b.jsx(Pe,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),b.jsx(Pe,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):b.jsxs(b.Fragment,{children:[b.jsx(Ui,{in:C,timeout:"auto",unmountOnExit:!0,children:b.jsx(zt,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Pe,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:L}})})}),b.jsx(Ui,{in:T,timeout:"auto",unmountOnExit:!0,children:b.jsx(zt,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Pe,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:D}})})}),a&&(re?b.jsxs(b.Fragment,{children:[b.jsx(Pe,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),b.jsx(Pe,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):b.jsx(Cne,{sourceAndPaths:l,onQueryChange:w=>{I(w)},cell:e,onSourceChange:k})),!a&&e.result&&b.jsx(zn,{variant:"outlined",sx:{borderRadius:0},children:b.jsx(E3,{result:e.result,minHeight:300,maxHeight:800})}),!a&&!e.result&&b.jsxs(ut,{onClick:f,sx:{cursor:"pointer"},children:[b.jsx(Pe,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),b.jsx(Pe,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),H&&le]})}const Yw=N.createContext(void 0);function kne({children:e,workbookStorage:t}){const n=N.useMemo(()=>({workbookStorage:t}),[t]);return b.jsx(Yw.Provider,{value:n,children:e})}function Rne(){const e=N.useContext(Yw);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const Ine=Jt(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),wne=Jt(b.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),Nne=new mm(new ir);function One({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:a}=ra(),{data:s,isLoading:l,isSuccess:c,isError:d,error:f}=yr({queryKey:["models",n,r,a],queryFn:x=>Nne.listModels(n,r,a,x)}),[p,m]=Ne.useState(e||[]),[y,E]=Ne.useState(null);Ne.useEffect(()=>{m(e||[])},[e]);const T=x=>{const D=p.filter(S=>S!==x);m(D),t(D)},A=x=>{const D=[...p,x];m(D),t(D),E(null)};let C=[];return c&&s?.data&&(C=s.data.filter(x=>!p.includes(x.path)).map(x=>x.path)),d?b.jsx(ar,{error:f,context:`${n} > ${r} > Model Picker`}):b.jsxs(b.Fragment,{children:[b.jsxs(p4,{fullWidth:!0,children:[l&&b.jsx(Pe,{children:"Loading..."}),b.jsxs(zt,{direction:"row",spacing:1,children:[p.map(x=>b.jsx(bo,{label:x,onDelete:()=>T(x),deleteIcon:b.jsx(Ine,{}),sx:{marginBottom:"5px"}},x)),b.jsx(Lr,{size:"small",startIcon:b.jsx(wne,{}),onClick:x=>E(x.currentTarget),disabled:l||d||C.length===0,children:"Add Model"})]})]}),b.jsxs(U2,{anchorEl:y,open:!!y,onClose:()=>E(null),children:[b.jsx(Pe,{variant:"subtitle2",sx:{ml:1},children:"Models"}),b.jsx(nr,{}),C.length===0?b.jsx(ap,{disabled:!0,children:"No models available"}):C.map(x=>b.jsx(ap,{onClick:()=>A(x),children:b.jsx(Pe,{variant:"body2",children:x})},x))]})]})}function Zd(){const e=TE();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}const wl=m4({createStyledComponent:sn("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ec({props:e,name:"MuiStack"})}),Lne=new mm(new ir);function Mne({workbookPath:e,expandCodeCells:t,expandEmbeddings:n,hideEmbeddingIcons:r,defaultProjectName:a,defaultPackageName:s}){const l=Zd(),{server:c,getAccessToken:d}=Db(),{workbookStorage:f}=Rne(),[p,m]=Ne.useState(void 0),[y,E]=Ne.useState(void 0);if(!f)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[T,A]=Ne.useState(),[C,x]=Ne.useState(),[D,S]=Ne.useState(),[L,M]=Ne.useState([]),[I,V]=Ne.useState(null),[ne,K]=Ne.useState(null),k=!!I,H=()=>{V(null),K(null)},Q=(ce,w)=>{T&&(A(T.insertCell(w,{isMarkdown:ce,value:""})),ce?S(w):x(w),H(),console.log("handleAddCell",ce,w))},[W,re]=Ne.useState(!1),me=()=>{re(!0)},G=async()=>{e&&f&&await f.deleteWorkbook(e).then(()=>{E(void 0),m(void 0)}).catch(ce=>{E(`Error deleting workbook: ${ce.message}`),m(void 0)}),re(!1),l(`/${a}/${s}`)},le=()=>{re(!1)},oe=Ne.useCallback(async()=>{if(!T){console.log("No workbook data ref");return}try{A(await T.saveWorkbook()),E(void 0),m("Workbook saved")}catch(ce){E(`Error saving workbook: ${ce.message}`),m(void 0)}},[T]);if(Ne.useEffect(()=>{T&&(async()=>{const ce=new Map(L.map(({modelPath:Ce,sourceInfos:Ie})=>[Ce,Ie])),w=[],te=[];for(const Ce of T.getModels())ce.has(Ce)?w.push({modelPath:Ce,sourceInfos:ce.get(Ce)}):(console.log("Fetching model from Publisher",Ce),te.push(Lne.getModel(a,s,Ce,void 0,await tv(c,d)).then(Ie=>({modelPath:Ce,sourceInfos:Ie.data.sourceInfos.map(Me=>JSON.parse(Me))}))));if(te.length>0){const Ce=await Promise.all(te);M([...w,...Ce])}else M(w)})()},[d,T,s,a,c]),Ne.useEffect(()=>{e&&cG.loadWorkbook(f,e).then(ce=>{A(ce)})},[e,f]),!T)return b.jsx("div",{children:"Loading..."});const ye=ce=>{const w=[];for(const te of ce)for(const Ce of te.sourceInfos)w.push({modelPath:te.modelPath,sourceInfo:Ce});return w},P=(ce,w)=>b.jsx(Lr,{size:"small",startIcon:b.jsx(lG,{}),onClick:()=>Q(ce,w),variant:"contained",sx:{backgroundColor:"#fff",color:te=>te.palette.mode==="dark"?te.palette.grey[100]:te.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:te=>te.palette.mode==="dark"?te.palette.grey[500]:te.palette.grey[300],boxShadow:"none"}},children:ce?"Markdown":"Explore"}),Oe=b.jsxs(ut,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[P(!1,T.getCells().length),P(!0,T.getCells().length)]});return b.jsxs(zn,{variant:"outlined",children:[b.jsxs(na,{children:[b.jsx(ut,{sx:{mb:2},children:b.jsx(ut,{sx:{minHeight:"24px"},children:y?b.jsx(Pe,{color:"error",variant:"body2",children:y}):p?b.jsx(Pe,{color:"success",variant:"body2",children:p}):b.jsx("span",{children:" "})})}),b.jsxs(wl,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[b.jsxs(wl,{direction:"row",spacing:1,alignItems:"center",children:[b.jsx(Pe,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),b.jsx(Pe,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),b.jsxs(wl,{sx:{display:"flex",flexDirection:"row",gap:1},children:[b.jsx(ut,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:b.jsx(Pne,{workbookData:T})}),b.jsxs(ut,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[b.jsx(Lr,{color:"error",onClick:me,size:"small",children:"Delete"}),b.jsxs(Up,{open:W,onClose:le,children:[b.jsx(Hp,{children:"Delete Workbook"}),b.jsx(zp,{children:b.jsxs(g4,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),b.jsxs(B2,{children:[b.jsx(Lr,{onClick:le,color:"primary",size:"small",children:"Cancel"}),b.jsx(Lr,{onClick:G,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),b.jsx(nr,{}),b.jsxs(wl,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[b.jsx(ut,{sx:{flex:1},children:b.jsx(One,{initialSelectedModels:T.getModels(),onModelChange:ce=>{A(T.setModels(ce)),oe()}})}),b.jsx(ut,{sx:{flex:1}})]})]}),b.jsx(YE,{children:b.jsxs(wl,{children:[T.getCells().length===0&&b.jsxs(b.Fragment,{children:[b.jsx(Pe,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),b.jsx(Pe,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),T.getCells().map((ce,w)=>b.jsx(Ne.Fragment,{children:b.jsx(Dne,{cell:ce,addButtonCallback:te=>P(te,w),sourceAndPaths:ye(L),expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMarkdown:D===w,editingMalloy:C===w,onDelete:()=>{A(T.deleteCell(w)),oe()},onCellChange:te=>{A(T.setCell(w,te))},onEdit:()=>{ce.isMarkdown?S(w):x(w)},onClose:()=>{ce.isMarkdown?S(void 0):x(void 0),oe()}},`${w}-${ce.isMarkdown}-${e.workspace}-${e.path}`)},`${w}-${T.getCells().length}`)),Oe,b.jsxs(U2,{anchorEl:I,open:k,onClose:H,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[b.jsx(ap,{onClick:()=>Q(!0,ne??0),children:"Add Markdown"}),b.jsx(ap,{onClick:()=>Q(!1,ne??0),children:"Add Malloy"})]}),b.jsx(wl,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function Pne({workbookData:e}){const[t,n]=Ne.useState(!1);return b.jsx(Lr,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyWorkbook();try{await navigator.clipboard.writeText(r),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}const $ne=Jt(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),Fne=Jt(b.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),L2=Jt(b.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),jne=Jt(b.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),Bne=Jt(b.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),Une=Jt([b.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),b.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),M2=Jt(b.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),Hne=new qk(new ir),zne=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[0]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."};function Gne({navigate:e}){const{data:t,isSuccess:n,isError:r,error:a}=yr({queryKey:["projects"],queryFn:s=>Hne.listProjects(s)});return r?b.jsx(ar,{error:a,context:"Projects List"}):n?b.jsxs(pE,{maxWidth:"lg",sx:{py:4},children:[b.jsxs(ut,{sx:{textAlign:"center",mb:6},children:[b.jsxs(zt,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(L2,{sx:{fontSize:32,color:"primary.main"}}),b.jsx(Pe,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),b.jsx(Pe,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),b.jsx(Pe,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),b.jsxs(gn,{container:!0,spacing:3,sx:{mb:6},children:[b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(Ml,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:b.jsxs(Pl,{sx:{p:3},children:[b.jsxs(zt,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx($ne,{sx:{color:"info.main",fontSize:28}}),b.jsx(Pe,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),b.jsx(Pe,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),b.jsx(bo,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(Ml,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:b.jsxs(Pl,{sx:{p:3},children:[b.jsxs(zt,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(jne,{sx:{color:"warning.main",fontSize:28}}),b.jsx(Pe,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),b.jsx(Pe,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),b.jsx(bo,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(Ml,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:b.jsxs(Pl,{sx:{p:3},children:[b.jsxs(zt,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(Une,{sx:{color:"success.main",fontSize:28}}),b.jsx(Pe,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),b.jsx(Pe,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),b.jsx(bo,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),b.jsx(nr,{sx:{my:4}}),t.data.length>0?b.jsxs(b.Fragment,{children:[b.jsxs(ut,{sx:{textAlign:"center",mb:4},children:[b.jsxs(zt,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(M2,{sx:{color:"primary.main",fontSize:24}}),b.jsx(Pe,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),b.jsx(Pe,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),b.jsx(gn,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(s=>b.jsx(gn,{size:{xs:12,sm:6,md:4},children:b.jsx(Ml,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:l=>e(`/${s.name}/`,l),children:b.jsxs(Pl,{sx:{p:3,textAlign:"center"},children:[b.jsx(Bne,{sx:{fontSize:48,color:"primary.main",mb:2}}),b.jsx(Pe,{variant:"h6",fontWeight:600,gutterBottom:!0,children:s.name}),b.jsx(Pe,{variant:"body2",color:"text.secondary",sx:{mb:2},children:zne(s.readme)}),b.jsx(Lr,{variant:"contained",color:"secondary",endIcon:b.jsx(Fne,{}),fullWidth:!0,children:"Open Project"})]})})},s.name))})]}):b.jsxs(ut,{sx:{textAlign:"center",mb:4},children:[b.jsxs(zt,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(M2,{sx:{color:"primary.main",fontSize:24}}),b.jsx(Pe,{variant:"h4",fontWeight:600,children:"Get Started"})]}),b.jsx(Pe,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),b.jsx(Lr,{variant:"contained",size:"large",color:"primary",startIcon:b.jsx(L2,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),b.jsx(ut,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:b.jsxs(Pe,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",b.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):b.jsx(pr,{text:"Loading projects..."})}const Qw=new sF({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),tv=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function yr(e){const{server:t,getAccessToken:n}=Db(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const a=await tv(t,n);return await e.queryFn(a)}catch(a){if(a&&typeof a=="object"&&"response"in a){const s=a;if(s.response?.data){const l=new Error(s.response.data.message||s.message);throw l.status=s.response.status,l.data=s.response.data,l}}throw a}},retry:!1,throwOnError:!1};return xF(r,Qw)}function Vne(e){const{server:t,getAccessToken:n}=Db(),r={...e,mutationFn:async a=>{try{const s=await tv(t,n);return await e.mutationFn(a,s)}catch(s){if(s&&typeof s=="object"&&"response"in s){const l=s;if(l.response?.data){const c=new Error(l.response.data.message||l.message);throw c.status=l.response.status,c.data=l.response.data,c}}throw s}},retry:!1,throwOnError:!1};return AF(r,Qw)}const qne=N.lazy(()=>F(()=>import("./index.es23-Cifiq2N-.js"),__vite__mapDeps([98,94,95]))),Yne=new XE(new ir);function Kw(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Qne({modelPath:e,query:t,sourceName:n,queryName:r,optionalProjectName:a,optionalPackageName:s,optionalVersionId:l}){const c=ra(!1),d=a||c?.projectName,f=s||c?.packageName,p=l||c?.versionId;if(!d||!f)throw new Error("No project or package name provided. Must be set in props or via PackageProvider");const{data:m,isSuccess:y,isError:E,error:T}=yr({queryKey:["queryResult",d,f,e,p,t,n,r],queryFn:A=>Yne.executeQuery(d,f,e,t,n,r,p,A)});return b.jsxs(b.Fragment,{children:[!y&&!E&&b.jsx(pr,{text:"Fetching Query Results..."}),y&&b.jsx(N.Suspense,{fallback:b.jsx("div",{children:"Loading..."}),children:b.jsx(qne,{result:m.data.result})}),E&&b.jsx(ar,{context:`${d} > ${f} > ${e}`,error:T})]})}const Kne=Ls(Ml)({display:"flex",flexDirection:"column",height:"100%"});function Wne({modelPath:e,sourceName:t,queryName:n,expandResult:r,hideResultIcon:a,expandEmbedding:s,hideEmbeddingIcon:l,noView:c,annotations:d}){const[f,p]=Ne.useState(r),[m,y]=Ne.useState(s),[E,T]=Ne.useState(),[A,C]=Ne.useState(),{packageName:x,projectName:D}=ra(),S=Kw({modelPath:e,sourceName:t,queryName:n,optionalPackageName:x,optionalProjectName:D});return N.useEffect(()=>{Co(S,"typescript").then(L=>{T(L)})},[m,S]),N.useEffect(()=>{if(d&&d.length>0){const L=d.map(M=>`// ${M}`).join(`
248
- `);Co(L,"typescript").then(M=>{C(M)})}},[d]),b.jsx(b.Fragment,{children:b.jsxs(Kne,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[b.jsxs(zt,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[b.jsx(Pe,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${c?"":"View >"} ${n}`}),b.jsxs(Gp,{sx:{padding:"0px"},children:[!a&&b.jsx(Sn,{title:f?"Hide Results":"Show Results",children:b.jsx(An,{size:"small",onClick:()=>{p(!f)},children:b.jsx(e8,{})})}),!l&&b.jsx(Sn,{title:m?"Hide Sharing":"Show Sharing",children:b.jsx(An,{size:"small",onClick:()=>{y(!m)},children:b.jsx(Od,{})})})]})]}),b.jsxs(Ui,{in:m,timeout:"auto",unmountOnExit:!0,children:[b.jsx(nr,{}),b.jsxs(zt,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Pe,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:E}})}),b.jsx(Sn,{title:"Copy Embeddable Code",children:b.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(S)},children:b.jsx(nm,{})})})]})]}),b.jsxs(Ui,{in:f,timeout:"auto",unmountOnExit:!0,children:[b.jsx(nr,{sx:{mb:"4px"}}),A&&b.jsxs(b.Fragment,{children:[b.jsx(zt,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Pe,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:A}})})}),b.jsx(nr,{sx:{mb:"4px"}})]}),b.jsx(Pl,{children:b.jsx(Qne,{modelPath:e,sourceName:t,queryName:n})})]})]})})}function Xne({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:s,onChange:l}){const[c,d]=Ne.useState(0),{data:f,isError:p,isLoading:m,error:y}=l3(e,t);return m?b.jsx(pr,{text:"Fetching Model..."}):p?(console.log("error",y),b.jsx(ar,{error:y,context:`ModelExplorer > ${e}`})):b.jsxs(zt,{spacing:2,component:"section",children:[Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&b.jsx(zt,{sx:{flexDirection:"row",justifyContent:"flex-start"},children:b.jsx(y4,{value:c,onChange:(E,T)=>d(T),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:f.sourceInfos.map((E,T)=>{let A;try{A=JSON.parse(E)}catch{A={name:String(T)}}return b.jsx(E4,{label:A.name||`Source ${T+1}`,sx:{minHeight:36}},A.name||T)})})}),Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&b.jsx(o3,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(f.sourceInfos[c])},onChange:l}),f.queries?.length>0&&b.jsxs(zn,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[b.jsx(na,{sx:{p:"10px"},children:b.jsx(Pe,{variant:"subtitle1",children:"Named Queries"})}),b.jsx(zt,{spacing:1,component:"section",children:f.queries.map(E=>b.jsx(Wne,{modelPath:e,queryName:E.name,expandResult:n,hideResultIcon:r,expandEmbedding:a,hideEmbeddingIcon:s,noView:!0,annotations:E.annotations},E.name))}),b.jsx(ut,{height:"10px"})]}),b.jsx(ut,{height:"5px"})]})}function Zne({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:s,onChange:l}){const[c,d]=Ne.useState(!1),[f,p]=Ne.useState(),{isError:m,isLoading:y,error:E}=l3(e,t),T=Jne(e);return N.useEffect(()=>{Co(T,"typescript").then(A=>{p(A)})},[c,T]),y?b.jsx(pr,{text:"Fetching Model..."}):m?(console.log("error",E),b.jsx(ar,{error:E,context:`Model > ${e}`})):b.jsxs(zn,{variant:"outlined",children:[b.jsxs(na,{children:[b.jsx(zt,{sx:{flexDirection:"row",justifyContent:"flex-end"},children:!s&&b.jsx(Gp,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:b.jsx(Sn,{title:c?"Hide Embedding":"View Embedding",children:b.jsx(An,{size:"small",onClick:()=>{d(!c)},children:b.jsx(Od,{})})})})}),b.jsxs(Ui,{in:c,timeout:"auto",unmountOnExit:!0,children:[b.jsx(nr,{}),b.jsxs(zt,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Pe,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:f}})}),b.jsx(Sn,{title:"Copy Embeddable Code",children:b.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(T)},children:b.jsx(nm,{})})})]})]}),b.jsx(nr,{})]}),b.jsx(Xne,{modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:s,onChange:l})]})}function Jne(e){return`<Model
249
- modelPath="${e}"
250
- accessToken={accessToken}
251
- />`}const P2="Local";class ere{async listWorkspaces(t){return Promise.resolve([{name:P2,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);n.push({path:a,workspace:P2})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}}const tre="README.malloynb";function nre({navigate:e}){return e||(e=t=>{window.location.href=t}),b.jsxs(gn,{container:!0,spacing:2,columns:12,children:[b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(jj,{})}),b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(tG,{navigate:e})}),b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(Zz,{navigate:e})}),b.jsx(gn,{size:{xs:12,md:6},children:b.jsx(Jj,{})}),b.jsx(gn,{size:{xs:12,md:6},children:b.jsx(Xj,{})}),b.jsx(gn,{size:{xs:12,md:12},children:b.jsx(rG,{})}),b.jsx(gn,{size:{xs:12,md:12},children:b.jsx(RR,{notebookPath:tre,hideEmbeddingIcons:!0})})]})}new XE(new ir);rt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function rre(){const e=Zd();return b.jsx(Gne,{navigate:e})}function are(){const e=Rd(),t=e["*"],n=Zd();return b.jsx(ut,{sx:{display:"flex",alignItems:"center"},children:b.jsxs(b4,{"aria-label":"breadcrumb",separator:b.jsx(v4,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&b.jsx(bo,{onClick:r=>n(`/${e.projectName}/`,r),label:e.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&b.jsx(bo,{onClick:r=>n(`/${e.projectName}/${e.packageName}/`,r),label:e.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&b.jsx(bo,{onClick:r=>n(`/${e.projectName}/${e.packageName}/${t}`,r),label:t,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function ire({logoHeader:e,endCap:t}){const n=TE();return b.jsx(T4,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:b.jsxs(_4,{sx:{justifyContent:"space-between"},children:[b.jsxs(zt,{direction:"row",spacing:2,alignItems:"center",children:[e||b.jsxs(ut,{sx:{display:"flex",alignItems:"center",gap:1},children:[b.jsx(ut,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),b.jsx(Pe,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),b.jsx(are,{})]}),b.jsxs(zt,{direction:"row",spacing:2,alignItems:"center",children:[!e&&b.jsxs(b.Fragment,{children:[b.jsx(Lr,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),b.jsx(Lr,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),b.jsx(Lr,{href:"/api-doc.html",children:"Publisher API"})]}),t]})]})})}function sre({headerProps:e}){return b.jsxs(ut,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[b.jsx(ire,{...e}),b.jsx(pE,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:b.jsx(ut,{sx:{flex:1},children:b.jsx(r6,{})})})]})}function ore(){const e=Rd(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?b.jsx(Ap,{projectName:e.projectName,packageName:e.packageName,children:b.jsx(Zne,{modelPath:t,hideEmbeddingIcons:!1})}):t?.endsWith(".malloynb")?b.jsx(Ap,{projectName:e.projectName,packageName:e.packageName,children:b.jsx(RR,{notebookPath:t,hideEmbeddingIcons:!1,expandResults:!1})}):b.jsx("div",{children:b.jsxs("h2",{children:["Unrecognized file type: ",t]})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function lre(){const{projectName:e,packageName:t}=Rd(),n=Zd();return e?t?b.jsx(Ap,{projectName:e,packageName:t,children:b.jsx(nre,{navigate:n})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function cre(){const e=Zd(),{projectName:t}=Rd();return t?b.jsx(T3,{projectName:t,children:b.jsx(Vj,{navigate:e})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function ure(){const e=sD();return console.error(e),b.jsx(pE,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:b.jsxs(zt,{sx:{m:"auto",flexDirection:"column"},children:[b.jsx(ut,{sx:{height:"300px"}}),b.jsx("img",{src:"/error.png"}),b.jsx(Pe,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function dre(){const{workspace:e,workbookPath:t,projectName:n,packageName:r}=Rd();return e?t?n?r?b.jsx(Ap,{projectName:n,packageName:r,children:b.jsx(Mne,{defaultProjectName:n,defaultPackageName:r,workbookPath:{path:t,workspace:e},hideEmbeddingIcons:!0},`${t}`)}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing workbook path"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing workspace"})})}const un={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},fre=x4({palette:{mode:"light",primary:un.primary,secondary:un.secondary,grey:un.grey,success:un.success,warning:un.warning,error:un.error,info:un.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:un.grey[900],secondary:un.grey[600]},divider:un.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${un.grey[300]} ${un.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:un.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:un.grey[300],borderRadius:"4px","&:hover":{background:un.grey[400]}},"&::-webkit-scrollbar-corner":{background:un.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${un.grey[300]} ${un.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:un.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:un.grey[300],borderRadius:"4px","&:hover":{background:un.grey[400]}},"&::-webkit-scrollbar-corner":{background:un.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:un.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:un.grey[200]}},defaultProps:{sx:{my:1}}}}}),hre=(e="/",t,n,r,a)=>D6([{path:e,element:b.jsx(uG,{server:r,getAccessToken:a,children:b.jsx(kne,{workbookStorage:t,children:b.jsxs(A4,{theme:fre,children:[b.jsx(S4,{}),b.jsx(sre,{headerProps:n})]})})}),errorElement:b.jsx(ure,{}),children:[{path:"",element:b.jsx(rre,{})},{path:":projectName",element:b.jsx(cre,{})},{path:":projectName/:packageName",element:b.jsx(lre,{})},{path:":projectName/:packageName/*",element:b.jsx(ore,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:b.jsx(dre,{})}]}]),pre=`${window.location.protocol}//${window.location.host}/api/v0`,mre=hre("/",new ere,void 0,pre);N4.createRoot(document.getElementById("root")).render(b.jsx(N.StrictMode,{children:b.jsx(j6,{router:mre})}));export{F as _};