nc-lib-gui-daily 0.251.3-pr-9140-20240807-1322 → 0.251.3-pr-9140-20240807-1349

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 (418) hide show
  1. package/lib/dist/200.html +78 -78
  2. package/lib/dist/404.html +78 -78
  3. package/lib/dist/_nuxt/{BECNAICj.js → -4t4xnv8.js} +1 -1
  4. package/lib/dist/_nuxt/{B9wWUMeH.js → 0i0s40zL.js} +1 -1
  5. package/lib/dist/_nuxt/{ClrSNVKi.js → 2DrjKvbb.js} +1 -1
  6. package/lib/dist/_nuxt/{BWYKlc03.js → 3joeZ-MH.js} +1 -1
  7. package/lib/dist/_nuxt/{BjOAkC1I.js → 3v3fVjjF.js} +2 -2
  8. package/lib/dist/_nuxt/{C0Gqhynn.js → 4TzZ_5zC.js} +1 -1
  9. package/lib/dist/_nuxt/{CQPSFno8.js → 4XAL69Ip.js} +1 -1
  10. package/lib/dist/_nuxt/{Bu5HFIT4.js → 5d2JKIpI.js} +2 -2
  11. package/lib/dist/_nuxt/{CaoTQXu2.js → 5nCkSrke.js} +1 -1
  12. package/lib/dist/_nuxt/{Ek7a6tav.js → 5wn80Wdx.js} +1 -1
  13. package/lib/dist/_nuxt/6U1p19-U.js +1 -0
  14. package/lib/dist/_nuxt/{Bu9W_1Kn.js → 75R1pBVU.js} +2 -2
  15. package/lib/dist/_nuxt/{WDDKUx4k.js → 7_p21RjN.js} +1 -1
  16. package/lib/dist/_nuxt/{CZztu25l.js → 8K2eSNBm.js} +3 -3
  17. package/lib/dist/_nuxt/8YSh_QYU.js +1 -0
  18. package/lib/dist/_nuxt/{CLa-GND5.js → 9ZzieOOa.js} +1 -1
  19. package/lib/dist/_nuxt/{DGmT4XJW.js → 9j5A48K7.js} +1 -1
  20. package/lib/dist/_nuxt/{Cf37dmb0.js → A1VS529Y.js} +2 -2
  21. package/lib/dist/_nuxt/{CnUzkPPI.js → AoMdM-MP.js} +1 -1
  22. package/lib/dist/_nuxt/{5dTVPtqf.js → B-MIOvj6.js} +1 -1
  23. package/lib/dist/_nuxt/{Xvj7w1oq.js → B0gfXKmM.js} +1 -1
  24. package/lib/dist/_nuxt/{DBfDNbQe.js → B0y7Q991.js} +2 -2
  25. package/lib/dist/_nuxt/{COSuR5gX.js → B12ilfKh.js} +1 -1
  26. package/lib/dist/_nuxt/{DLcCozgP.js → B1R2-rCU.js} +2 -2
  27. package/lib/dist/_nuxt/{CMITlXbV.js → B1h49W-1.js} +2 -2
  28. package/lib/dist/_nuxt/{CkCKzP-b.js → B2NO182c.js} +1 -1
  29. package/lib/dist/_nuxt/{DKgzeeDD.js → B33qDdnq.js} +1 -1
  30. package/lib/dist/_nuxt/{Dr_t1CQX.js → B3AUipTz.js} +1 -1
  31. package/lib/dist/_nuxt/{CVmH__0I.js → B3JDEiCa.js} +2 -2
  32. package/lib/dist/_nuxt/{BUd0o8q2.js → B3TBCQg9.js} +1 -1
  33. package/lib/dist/_nuxt/{CHRxsLpF.js → B4rH_4ZN.js} +1 -1
  34. package/lib/dist/_nuxt/{M4L2Leg7.js → B4rimoYw.js} +1 -1
  35. package/lib/dist/_nuxt/{BnbA25UM.js → B5FLXBR1.js} +1 -1
  36. package/lib/dist/_nuxt/{CqcwF_4v.js → B5NtOENv.js} +1 -1
  37. package/lib/dist/_nuxt/{BaaPy9e4.js → B74kAxrX.js} +2 -2
  38. package/lib/dist/_nuxt/{Cf4R9mtz.js → B78zylNk.js} +1 -1
  39. package/lib/dist/_nuxt/{CqFm4PeH.js → B8Ch0bfd.js} +2 -2
  40. package/lib/dist/_nuxt/{BbFx5cgg.js → B9aNdXy_.js} +2 -2
  41. package/lib/dist/_nuxt/{DEWywo6s.js → B9dOhF-2.js} +1 -1
  42. package/lib/dist/_nuxt/{BOYXVEfo.js → BBA0nfaW.js} +1 -1
  43. package/lib/dist/_nuxt/{C9TR8pMm.js → BBW1h0ks.js} +1 -1
  44. package/lib/dist/_nuxt/{EohHWhQi.js → BC6xG-3q.js} +1 -1
  45. package/lib/dist/_nuxt/{D-3pY83G.js → BDlHzTvk.js} +1 -1
  46. package/lib/dist/_nuxt/{DglPsyiE.js → BE4MlnZf.js} +1 -1
  47. package/lib/dist/_nuxt/{DQRX9Xt5.js → BEZkcRcL.js} +1 -1
  48. package/lib/dist/_nuxt/{CDbcx2MC.js → BGugcrMS.js} +1 -1
  49. package/lib/dist/_nuxt/{DkSSi9ve.js → BHNEB9HJ.js} +1 -1
  50. package/lib/dist/_nuxt/{_fB9sOmQ.js → BHXU4B_2.js} +2 -2
  51. package/lib/dist/_nuxt/{BaXP97h1.js → BIHLSlqp.js} +1 -1
  52. package/lib/dist/_nuxt/BIo3okPc.js +1 -0
  53. package/lib/dist/_nuxt/{CokApUov.js → BLBtvxjT.js} +1 -1
  54. package/lib/dist/_nuxt/{CaoUireh.js → BLJJDzIX.js} +3 -3
  55. package/lib/dist/_nuxt/{wogaDWws.js → BLNSv8WU.js} +1 -1
  56. package/lib/dist/_nuxt/{BSnfz81Y.js → BMpULef7.js} +2 -2
  57. package/lib/dist/_nuxt/{CYG3uB4k.js → BNhTB5D3.js} +1 -1
  58. package/lib/dist/_nuxt/{D5LCiDa8.js → BNv598XD.js} +1 -1
  59. package/lib/dist/_nuxt/{CaKL5hX5.js → BPBo3uNz.js} +1 -1
  60. package/lib/dist/_nuxt/{tuC3W76x.js → BPS1H-Sz.js} +1 -1
  61. package/lib/dist/_nuxt/{DRPzkOuH.js → BPXkp7pR.js} +1 -1
  62. package/lib/dist/_nuxt/{CEaqjIiA.js → BPaH70bH.js} +1 -1
  63. package/lib/dist/_nuxt/{DQvo0yED.js → BPfa9v3p.js} +1 -1
  64. package/lib/dist/_nuxt/{DpJilvje.js → BPxXddiW.js} +1 -1
  65. package/lib/dist/_nuxt/{K69OaLqe.js → BQTbXctc.js} +1 -1
  66. package/lib/dist/_nuxt/{DQrwfJfV.js → BT6OdjOC.js} +1 -1
  67. package/lib/dist/_nuxt/{BtbkYOXM.js → BTPzUNVG.js} +1 -1
  68. package/lib/dist/_nuxt/{CZqfRZSO.js → BTX_9KaN.js} +2 -2
  69. package/lib/dist/_nuxt/{BF-z5sdC.js → BUWWmS1v.js} +1 -1
  70. package/lib/dist/_nuxt/{DSt1bB14.js → BUa3Jukl.js} +1 -1
  71. package/lib/dist/_nuxt/{Dpt9sRgQ.js → BUjHox0o.js} +2 -2
  72. package/lib/dist/_nuxt/{DEqhUnZ-.js → BV-KNIgj.js} +1 -1
  73. package/lib/dist/_nuxt/BV0H6cZy.js +2 -0
  74. package/lib/dist/_nuxt/{DFA4S6bS.js → BV5fkeNl.js} +1 -1
  75. package/lib/dist/_nuxt/{CgIyTi2b.js → BW3iYn6v.js} +1 -1
  76. package/lib/dist/_nuxt/{DvN7jpPi.js → BWALYZJv.js} +1 -1
  77. package/lib/dist/_nuxt/{D3V1uXBy.js → BWgRi_b3.js} +1 -1
  78. package/lib/dist/_nuxt/{D5LgkGGj.js → BWn3cSKa.js} +1 -1
  79. package/lib/dist/_nuxt/{Csj74Kwp.js → BWsrBkPc.js} +2 -2
  80. package/lib/dist/_nuxt/{CHMw6lkg.js → BXoKLvWd.js} +2 -2
  81. package/lib/dist/_nuxt/{CDnEKjsz.js → BXzZkUYy.js} +1 -1
  82. package/lib/dist/_nuxt/{DmDx5TyZ.js → BZdJF2g5.js} +1 -1
  83. package/lib/dist/_nuxt/{BipOdpcd.js → BZfcRRAG.js} +1 -1
  84. package/lib/dist/_nuxt/{D3pPrsLQ.js → B_FyKctL.js} +1 -1
  85. package/lib/dist/_nuxt/B_LFFdI9.js +1 -0
  86. package/lib/dist/_nuxt/{DPUW3H0R.js → BadBS-yn.js} +2 -2
  87. package/lib/dist/_nuxt/{BmApFhTv.js → BbCrTQHD.js} +1 -1
  88. package/lib/dist/_nuxt/{DCn9KvFr.js → BcquqdOq.js} +1 -1
  89. package/lib/dist/_nuxt/{Cadw426x.js → Bdxi8XdN.js} +2 -2
  90. package/lib/dist/_nuxt/{BTEJrFxq.js → Be6wJwW7.js} +1 -1
  91. package/lib/dist/_nuxt/{Dgf6zkFW.js → Bey_B0Pg.js} +1 -1
  92. package/lib/dist/_nuxt/{ov8xLaHe.js → Bf-Jn9fN.js} +1 -1
  93. package/lib/dist/_nuxt/{DPPtI03V.js → Bf_oJAxP.js} +1 -1
  94. package/lib/dist/_nuxt/{uUj38y4-.js → BgtuIwr8.js} +1 -1
  95. package/lib/dist/_nuxt/{CiBbHMre.js → Bh7NKnnJ.js} +1 -1
  96. package/lib/dist/_nuxt/{D1_wgH1i.js → Bh8L_8vr.js} +1 -1
  97. package/lib/dist/_nuxt/{CGTkNfNg.js → BhE3_y96.js} +1 -1
  98. package/lib/dist/_nuxt/{DMRRjwxM.js → BhLSFmBI.js} +2 -2
  99. package/lib/dist/_nuxt/BhZrVUuE.js +1 -0
  100. package/lib/dist/_nuxt/{3jIF1AyF.js → Bi74c53l.js} +2 -2
  101. package/lib/dist/_nuxt/{Wfb3YMK3.js → BjIWxehG.js} +1 -1
  102. package/lib/dist/_nuxt/{BKIlBt-6.js → Bjh8Jc00.js} +2 -2
  103. package/lib/dist/_nuxt/{CYDrr8e0.js → BkA6Hv4O.js} +1 -1
  104. package/lib/dist/_nuxt/{tEU5SOvF.js → Bn3JgSEE.js} +1 -1
  105. package/lib/dist/_nuxt/{BhRzGy_7.js → BnhkHttA.js} +1 -1
  106. package/lib/dist/_nuxt/{yUmIs97a.js → BnjAp9hj.js} +1 -1
  107. package/lib/dist/_nuxt/{DdiY6i5M.js → Bp5oHXSc.js} +1 -1
  108. package/lib/dist/_nuxt/{CZPLvSl2.js → BpLvq4Ij.js} +2 -2
  109. package/lib/dist/_nuxt/{B0oPZzHj.js → Bpjzp6Vo.js} +1 -1
  110. package/lib/dist/_nuxt/{Bj3GBQrH.js → BqKbedJW.js} +1 -1
  111. package/lib/dist/_nuxt/{CP29yz9Z.js → BqjTSgjN.js} +1 -1
  112. package/lib/dist/_nuxt/{CXqu_veX.js → Bqoh1mnx.js} +1 -1
  113. package/lib/dist/_nuxt/{Ccy4fxMp.js → Br4sW-aN.js} +2 -2
  114. package/lib/dist/_nuxt/{DsK9Oi2B.js → BsNs6tYV.js} +1 -1
  115. package/lib/dist/_nuxt/{CjnsQ0f3.js → BsdyC_c2.js} +1 -1
  116. package/lib/dist/_nuxt/{izr94Pxw.js → BsepGfVv.js} +2 -2
  117. package/lib/dist/_nuxt/{BSOsTxoF.js → BtRkeQ7z.js} +1 -1
  118. package/lib/dist/_nuxt/{45BtyJEq.js → BtYrspp1.js} +1 -1
  119. package/lib/dist/_nuxt/{DqQodY25.js → BtzsCl9b.js} +1 -1
  120. package/lib/dist/_nuxt/{BLd8XNte.js → BuNVIA4o.js} +1 -1
  121. package/lib/dist/_nuxt/{BIs2Ub4q.js → BuvUqaUR.js} +1 -1
  122. package/lib/dist/_nuxt/{BmZeKA3g.js → BvJHFs9-.js} +1 -1
  123. package/lib/dist/_nuxt/{SUjsexOK.js → BvdnmSRl.js} +1 -1
  124. package/lib/dist/_nuxt/{DU4YOMw-.js → BxlEsFh4.js} +2 -2
  125. package/lib/dist/_nuxt/{C10-KGd5.js → ByJ4I0p_.js} +1 -1
  126. package/lib/dist/_nuxt/{CxCKV_Px.js → BycyOgkZ.js} +1 -1
  127. package/lib/dist/_nuxt/{BVTg5uiQ.js → C-_nHsP3.js} +2 -2
  128. package/lib/dist/_nuxt/{DoClxtqO.js → C0Cjsdmx.js} +1 -1
  129. package/lib/dist/_nuxt/{BFdtwV5O.js → C0aGyUZt.js} +1 -1
  130. package/lib/dist/_nuxt/{BTBhJ3yz.js → C0cVOb1Y.js} +1 -1
  131. package/lib/dist/_nuxt/{DzBWyRMo.js → C0mEOfI4.js} +1 -1
  132. package/lib/dist/_nuxt/{BwxlFrx3.js → C0o-ksvC.js} +1 -1
  133. package/lib/dist/_nuxt/{CXPckVUD.js → C0vKFrOr.js} +1 -1
  134. package/lib/dist/_nuxt/{CQ3cJtsQ.js → C0x2Mtrn.js} +2 -2
  135. package/lib/dist/_nuxt/{DSo-2nFJ.js → C17-0Owd.js} +1 -1
  136. package/lib/dist/_nuxt/{C77-d5Nm.js → C24V68J3.js} +1 -1
  137. package/lib/dist/_nuxt/{UJDZNh8e.js → C2y2A27G.js} +1 -1
  138. package/lib/dist/_nuxt/{BPWyQanZ.js → C4FX_vFj.js} +1 -1
  139. package/lib/dist/_nuxt/{DVJ1H8-2.js → C4NvFsmx.js} +1 -1
  140. package/lib/dist/_nuxt/{Dj7AODgl.js → C5Fh5dLw.js} +1 -1
  141. package/lib/dist/_nuxt/{DGN1FUOe.js → C5LZc7bi.js} +1 -1
  142. package/lib/dist/_nuxt/{TGNXCWG6.js → C5YDuKgZ.js} +1 -1
  143. package/lib/dist/_nuxt/{DHL8lIZa.js → C6c9Dspn.js} +1 -1
  144. package/lib/dist/_nuxt/{Bj1Tr8na.js → C8Qc_SsI.js} +1 -1
  145. package/lib/dist/_nuxt/{C5QeThbn.js → C8UZPp3_.js} +1 -1
  146. package/lib/dist/_nuxt/{DcjeHTDt.js → C8_ndKXt.js} +2 -2
  147. package/lib/dist/_nuxt/{D31WRIha.js → C9Uj1v8v.js} +1 -1
  148. package/lib/dist/_nuxt/{BUCNUONm.js → CB02C89T.js} +1 -1
  149. package/lib/dist/_nuxt/{C7hcWPKb.js → CB3a7P0t.js} +2 -2
  150. package/lib/dist/_nuxt/{Dy33QHkd.js → CCIDjjGj.js} +3 -3
  151. package/lib/dist/_nuxt/CCSHPfQT.js +1 -0
  152. package/lib/dist/_nuxt/{DXGgVe0f.js → CDptPd_U.js} +3 -3
  153. package/lib/dist/_nuxt/{B82t3bcZ.js → CEZpXdoB.js} +1 -1
  154. package/lib/dist/_nuxt/{Cv1taij4.js → CFW-eKdT.js} +2 -2
  155. package/lib/dist/_nuxt/{DHbZD8lm.js → CGJkgYAS.js} +1 -1
  156. package/lib/dist/_nuxt/{C1P8Zhm3.js → CHf2540r.js} +1 -1
  157. package/lib/dist/_nuxt/{BJTGqbe7.js → CI_vGZBR.js} +1 -1
  158. package/lib/dist/_nuxt/{bCkRhWD-.js → CJFAfeQm.js} +1 -1
  159. package/lib/dist/_nuxt/{DourgGBB.js → CJnTHSo6.js} +1 -1
  160. package/lib/dist/_nuxt/{eM235LmA.js → CKjn3He-.js} +1 -1
  161. package/lib/dist/_nuxt/{BswdcBt-.js → CM94AsjQ.js} +1 -1
  162. package/lib/dist/_nuxt/{CrYOZ6xG.js → CMLvVVCa.js} +2 -2
  163. package/lib/dist/_nuxt/{scxxAgRq.js → CNurVxTA.js} +1 -1
  164. package/lib/dist/_nuxt/{BeT-kB3R.js → COR1mRIv.js} +1 -1
  165. package/lib/dist/_nuxt/{B0Sm2Utn.js → CPghe2bF.js} +2 -2
  166. package/lib/dist/_nuxt/{_dwjyJHh.js → CPmrHRfD.js} +1 -1
  167. package/lib/dist/_nuxt/{Cwun9h-Y.js → CPq1MIkE.js} +2 -2
  168. package/lib/dist/_nuxt/{DjcxKpIM.js → CQaV3CAE.js} +1 -1
  169. package/lib/dist/_nuxt/{CD37t5Sv.js → CS3cYx35.js} +2 -2
  170. package/lib/dist/_nuxt/{BbQblmCC.js → CTrYGv0V.js} +1 -1
  171. package/lib/dist/_nuxt/{CAp-kO3G.js → CU2qgEB0.js} +2 -2
  172. package/lib/dist/_nuxt/{Cnd_RIW1.js → CVNIqWCz.js} +2 -2
  173. package/lib/dist/_nuxt/{BwNtMX7v.js → CVziAYYM.js} +1 -1
  174. package/lib/dist/_nuxt/{xVsvxyFN.js → CXV9y0ij.js} +1 -1
  175. package/lib/dist/_nuxt/{Bmo45vb1.js → CXjFiOva.js} +1 -1
  176. package/lib/dist/_nuxt/{COzZ75BE.js → CYRe9VEh.js} +1 -1
  177. package/lib/dist/_nuxt/{Dy7Fxfea.js → CZfW7u7e.js} +1 -1
  178. package/lib/dist/_nuxt/C_0MCAHg.js +2 -0
  179. package/lib/dist/_nuxt/{DHhzMvUY.js → C_KncATK.js} +1 -1
  180. package/lib/dist/_nuxt/{BHvFET_1.js → C_r_z2w4.js} +1 -1
  181. package/lib/dist/_nuxt/{DuTGHMTZ.js → Ca68hr9N.js} +1 -1
  182. package/lib/dist/_nuxt/{B5XOKBjI.js → CaQmYARh.js} +1 -1
  183. package/lib/dist/_nuxt/{B4w8tHEf.js → Caap6ad5.js} +1 -1
  184. package/lib/dist/_nuxt/Can5iqu7.js +1 -0
  185. package/lib/dist/_nuxt/{CumiqXf7.js → CbXnLsg7.js} +1 -1
  186. package/lib/dist/_nuxt/{BkVBsUs7.js → Cc8KviHt.js} +2 -2
  187. package/lib/dist/_nuxt/{C2LFvZUN.js → CcKY7-rX.js} +2 -2
  188. package/lib/dist/_nuxt/{BqrLXvNe.js → Ccf8GJao.js} +1 -1
  189. package/lib/dist/_nuxt/{CLuKe_fT.js → Cd87RhmG.js} +1 -1
  190. package/lib/dist/_nuxt/{CGoFBv-S.js → CdAW-Pmn.js} +1 -1
  191. package/lib/dist/_nuxt/{CoJTDitE.js → CeOTGq8S.js} +2 -2
  192. package/lib/dist/_nuxt/{CpYnnah9.js → CeUvd5CG.js} +1 -1
  193. package/lib/dist/_nuxt/{CYpSrlPh.js → Ch8L35kx.js} +1 -1
  194. package/lib/dist/_nuxt/{DeiJLuN8.js → ChOVvzZi.js} +1 -1
  195. package/lib/dist/_nuxt/{DS9TSCsw.js → ChvF81cy.js} +1 -1
  196. package/lib/dist/_nuxt/{Bnayetoi.js → CjJR9ku8.js} +1 -1
  197. package/lib/dist/_nuxt/{qcgVJISv.js → CjLxSPxU.js} +1 -1
  198. package/lib/dist/_nuxt/{CUiPrnOA.js → CjiyXwOk.js} +1 -1
  199. package/lib/dist/_nuxt/{4p5F9hBn.js → Ck8SavWn.js} +1 -1
  200. package/lib/dist/_nuxt/{CY-umpv2.js → Ckrtr2Si.js} +1 -1
  201. package/lib/dist/_nuxt/{BvZfIYOw.js → ClgX2jSX.js} +1 -1
  202. package/lib/dist/_nuxt/{DxP-nfEC.js → CmHIFce4.js} +1 -1
  203. package/lib/dist/_nuxt/{BiyCj6F9.js → Cmi92uvW.js} +4 -4
  204. package/lib/dist/_nuxt/{Tog_yjwe.js → Cno1xGGH.js} +1 -1
  205. package/lib/dist/_nuxt/{DTIgeuov.js → CoIVRkRs.js} +2 -2
  206. package/lib/dist/_nuxt/{Dp03Bz--.js → CpVxdhe3.js} +1 -1
  207. package/lib/dist/_nuxt/{3fdRvCCy.js → CpWeSecD.js} +1 -1
  208. package/lib/dist/_nuxt/CpydMTRh.js +2 -0
  209. package/lib/dist/_nuxt/{BDWmjfg6.js → CqocAHnv.js} +1 -1
  210. package/lib/dist/_nuxt/CrsolQNu.js +2 -0
  211. package/lib/dist/_nuxt/{DID7jAGh.js → CsMB6UJB.js} +1 -1
  212. package/lib/dist/_nuxt/{CjWKi8WI.js → CtiXmthf.js} +1 -1
  213. package/lib/dist/_nuxt/{BiKFdSE2.js → CtrRzeqn.js} +2 -2
  214. package/lib/dist/_nuxt/{DYOpadwh.js → CvJ6cBZg.js} +1 -1
  215. package/lib/dist/_nuxt/{BLZezBti.js → CvJQycOH.js} +1 -1
  216. package/lib/dist/_nuxt/{RgrGrVar.js → CveN6MY0.js} +1 -1
  217. package/lib/dist/_nuxt/{BdAcoDOD.js → Cvf4IlAF.js} +1 -1
  218. package/lib/dist/_nuxt/{COkSW75E.js → CwXGZkgw.js} +1 -1
  219. package/lib/dist/_nuxt/{BfcNiwJm.js → Cwg1qVG3.js} +2 -2
  220. package/lib/dist/_nuxt/{lA0REAhs.js → CwglIeux.js} +1 -1
  221. package/lib/dist/_nuxt/{CnxZEFWN.js → CwzcEVHI.js} +1 -1
  222. package/lib/dist/_nuxt/{cjY5Hf50.js → Cx74SJIJ.js} +2 -2
  223. package/lib/dist/_nuxt/{DxIWAeh5.js → CyEUDpIZ.js} +1 -1
  224. package/lib/dist/_nuxt/{yluqkvFW.js → CzuZWkKi.js} +2 -2
  225. package/lib/dist/_nuxt/{BsCG6_t5.js → D-ULZAvr.js} +1 -1
  226. package/lib/dist/_nuxt/{Bg5wwbYB.js → D0MWYD9u.js} +2 -2
  227. package/lib/dist/_nuxt/{B_u_YqcL.js → D0MdXf-I.js} +1 -1
  228. package/lib/dist/_nuxt/{Vezsq5pc.js → D0lTgCiL.js} +1 -1
  229. package/lib/dist/_nuxt/D13Jpe71.js +1 -0
  230. package/lib/dist/_nuxt/{DAjBmuY8.js → D1WSfdBz.js} +2 -2
  231. package/lib/dist/_nuxt/{BzA-S3rc.js → D2hUzAIJ.js} +1 -1
  232. package/lib/dist/_nuxt/{DfZdmYLx.js → D2v4gSXy.js} +3 -3
  233. package/lib/dist/_nuxt/{C9siHYBR.js → D3yE50jn.js} +2 -2
  234. package/lib/dist/_nuxt/{BMcEsnd8.js → D4XRaUrE.js} +1 -1
  235. package/lib/dist/_nuxt/{BLXy3y_A.js → D58OV0x2.js} +1 -1
  236. package/lib/dist/_nuxt/{BuhJ4rY4.js → D7raIqCw.js} +1 -1
  237. package/lib/dist/_nuxt/{CRMJPIbJ.js → D86M42wR.js} +2 -2
  238. package/lib/dist/_nuxt/{B8QKymay.js → D87Esdzw.js} +1 -1
  239. package/lib/dist/_nuxt/{OslaI-1o.js → D8KkEwuG.js} +2 -2
  240. package/lib/dist/_nuxt/{BDxJYdK6.js → D8mGg8p3.js} +2 -2
  241. package/lib/dist/_nuxt/D8y_QymV.js +1 -0
  242. package/lib/dist/_nuxt/{D9eajlYc.js → DAE0H6cn.js} +2 -2
  243. package/lib/dist/_nuxt/DANQtblt.js +2 -0
  244. package/lib/dist/_nuxt/{BP0PseId.js → DAYX7_s6.js} +1 -1
  245. package/lib/dist/_nuxt/{DJ1Y7z-I.js → DBEHU1i8.js} +1 -1
  246. package/lib/dist/_nuxt/{BcwBv9GB.js → DDUq96bI.js} +1 -1
  247. package/lib/dist/_nuxt/{o2Vywl-H.js → DDncg9QB.js} +1 -1
  248. package/lib/dist/_nuxt/{DsJrb1nI.js → DEDBCwhz.js} +1 -1
  249. package/lib/dist/_nuxt/{CjEhR2ws.js → DEpLw3WP.js} +2 -2
  250. package/lib/dist/_nuxt/DEwjid9p.js +1 -0
  251. package/lib/dist/_nuxt/{Cr8Q8tPu.js → DFLo1Tyf.js} +1 -1
  252. package/lib/dist/_nuxt/{Dt1XZ-dT.js → DHne9z0s.js} +1 -1
  253. package/lib/dist/_nuxt/{B-IoKwno.js → DHwwmVq4.js} +1 -1
  254. package/lib/dist/_nuxt/{DeLYsJ35.js → DIwUs3Ba.js} +1 -1
  255. package/lib/dist/_nuxt/{D9V7WJRV.js → DIxWEKmp.js} +2 -2
  256. package/lib/dist/_nuxt/{BOjB8Iur.js → DKZtAEbi.js} +1 -1
  257. package/lib/dist/_nuxt/{N5zD6OYu.js → DK_LjI_d.js} +2 -2
  258. package/lib/dist/_nuxt/{DCyCGspM.js → DLgZMh7k.js} +2 -2
  259. package/lib/dist/_nuxt/{DNyOCYge.js → DNVg-DAK.js} +2 -2
  260. package/lib/dist/_nuxt/DOhAGoXx.js +1 -0
  261. package/lib/dist/_nuxt/{wE2b238O.js → DOhTCpLP.js} +1 -1
  262. package/lib/dist/_nuxt/DPIrVNpu.js +2 -0
  263. package/lib/dist/_nuxt/{BFGeur5y.js → DPiZHWmv.js} +1 -1
  264. package/lib/dist/_nuxt/{DhCfdE-S.js → DPvwYIe4.js} +2 -2
  265. package/lib/dist/_nuxt/{DQYlfQhI.js → DR3-ZZ6f.js} +2 -2
  266. package/lib/dist/_nuxt/DRw_Dh4U.js +1 -0
  267. package/lib/dist/_nuxt/{yd4iXUAH.js → DShHkyiK.js} +1 -1
  268. package/lib/dist/_nuxt/{CgemNdgi.js → DTBGgeX5.js} +1 -1
  269. package/lib/dist/_nuxt/{DgWM9QND.js → DTWPCMsX.js} +1 -1
  270. package/lib/dist/_nuxt/{BYeAlzmH.js → DThQY4jW.js} +2 -2
  271. package/lib/dist/_nuxt/{kHdMm7Ia.js → DV4c1hol.js} +1 -1
  272. package/lib/dist/_nuxt/{DhjCIkTM.js → DVo2fInm.js} +1 -1
  273. package/lib/dist/_nuxt/{Cf9rATwN.js → DW2SxN4U.js} +1 -1
  274. package/lib/dist/_nuxt/{Cyv2J_Eh.js → DW4mS2-E.js} +1 -1
  275. package/lib/dist/_nuxt/{Dm22wCnj.js → DWgfP12k.js} +2 -2
  276. package/lib/dist/_nuxt/{BWiEf5Q8.js → DWhMxXig.js} +1 -1
  277. package/lib/dist/_nuxt/{BcAgrix2.js → DYHT9W45.js} +2 -2
  278. package/lib/dist/_nuxt/{8nelJp1H.js → DYk50ONW.js} +1 -1
  279. package/lib/dist/_nuxt/{CW0qxcUd.js → DZ3fQXBC.js} +2 -2
  280. package/lib/dist/_nuxt/{DK5KFoxg.js → DZg_OLF6.js} +1 -1
  281. package/lib/dist/_nuxt/{ClM36jHa.js → D_bFc41P.js} +2 -2
  282. package/lib/dist/_nuxt/{D_qsPe1a.js → DaSR3TNr.js} +2 -2
  283. package/lib/dist/_nuxt/{DEtZQrqc.js → DaZBDg2f.js} +1 -1
  284. package/lib/dist/_nuxt/{B5Tmc1nh.js → DauyJKz3.js} +1 -1
  285. package/lib/dist/_nuxt/{DrHVm0_b.js → DbCVM54P.js} +3 -3
  286. package/lib/dist/_nuxt/{DLdhkiR1.js → DbGbCtZA.js} +1 -1
  287. package/lib/dist/_nuxt/{CjhAMb0e.js → DbQ8PEQZ.js} +1 -1
  288. package/lib/dist/_nuxt/{Doul1WC1.js → DePuxtA_.js} +1 -1
  289. package/lib/dist/_nuxt/{D0Ixu-2d.js → De_R8rrE.js} +1 -1
  290. package/lib/dist/_nuxt/{CdEISqkr.js → De_RKAA3.js} +2 -2
  291. package/lib/dist/_nuxt/{Du4GQqsD.js → DgD9_KW9.js} +2 -2
  292. package/lib/dist/_nuxt/{DmMnX8Ap.js → DgkuvGlL.js} +2 -2
  293. package/lib/dist/_nuxt/{Dl7beGcU.js → Diky6b8B.js} +1 -1
  294. package/lib/dist/_nuxt/{CR_iTixR.js → DjFxLMdW.js} +1 -1
  295. package/lib/dist/_nuxt/{C8D7ZQoo.js → DkhnRb2B.js} +1 -1
  296. package/lib/dist/_nuxt/{BzcRdSjL.js → Dl_k7PcY.js} +1 -1
  297. package/lib/dist/_nuxt/{Cyvv3q_1.js → Dl_zFQLa.js} +1 -1
  298. package/lib/dist/_nuxt/{CmrZvHjC.js → Dm1YWlhs.js} +1 -1
  299. package/lib/dist/_nuxt/{BEWPFIwa.js → Dm6wi6No.js} +1 -1
  300. package/lib/dist/_nuxt/{BE7ip4Qt.js → Dme6Ir5a.js} +2 -2
  301. package/lib/dist/_nuxt/{BmoKdN2h.js → DnFxlRi4.js} +1 -1
  302. package/lib/dist/_nuxt/{MmcLEC5o.js → DqHVb7w6.js} +1 -1
  303. package/lib/dist/_nuxt/{BLJLyCJW.js → Dqd3UFGy.js} +1 -1
  304. package/lib/dist/_nuxt/{D7y3R7Ve.js → DqyL5Uhs.js} +1 -1
  305. package/lib/dist/_nuxt/{DrKBqNbB.js → DsHvRxpH.js} +1 -1
  306. package/lib/dist/_nuxt/{BBl0m-42.js → DsURLYvZ.js} +2 -2
  307. package/lib/dist/_nuxt/{C4JQ9OHi.js → DtawBFI-.js} +2 -2
  308. package/lib/dist/_nuxt/{CxsGCxm3.js → DvgZT7js.js} +1 -1
  309. package/lib/dist/_nuxt/{nK1_ybEV.js → DvnUxboW.js} +1 -1
  310. package/lib/dist/_nuxt/{zErPCtcB.js → DxRO0DFU.js} +1 -1
  311. package/lib/dist/_nuxt/{Buq-jeAD.js → Dy4meA85.js} +1 -1
  312. package/lib/dist/_nuxt/{280IOBLC.js → DyjEoH9B.js} +2 -2
  313. package/lib/dist/_nuxt/{Dovr4y_N.js → Dz5Y7G3v.js} +1 -1
  314. package/lib/dist/_nuxt/{CfSPTPvX.js → EsjoHwle.js} +1 -1
  315. package/lib/dist/_nuxt/{Dw6QZof-.js → FJzXgD1q.js} +1 -1
  316. package/lib/dist/_nuxt/HgF9ENQO.js +1 -0
  317. package/lib/dist/_nuxt/{O2LGllLZ.js → INibGBS3.js} +1 -1
  318. package/lib/dist/_nuxt/{C-Bnpd2e.js → IyW17NS0.js} +1 -1
  319. package/lib/dist/_nuxt/{u2QnTgop.js → J2s5CnRS.js} +1 -1
  320. package/lib/dist/_nuxt/{CP1s9025.js → KY60TpFQ.js} +1 -1
  321. package/lib/dist/_nuxt/{Bg-tZGz_.js → L9TIwNpK.js} +1 -1
  322. package/lib/dist/_nuxt/{BPu-in_i.js → LAEswO5v.js} +1 -1
  323. package/lib/dist/_nuxt/{QpmejnYJ.js → LAiD9eOm.js} +1 -1
  324. package/lib/dist/_nuxt/{BWKx5AMV.js → LK2GcfhS.js} +3 -3
  325. package/lib/dist/_nuxt/{CKkNNjlN.js → LLghMu9r.js} +1 -1
  326. package/lib/dist/_nuxt/{_xiY6FSW.js → LMDDbn5I.js} +1 -1
  327. package/lib/dist/_nuxt/{VwKRn_Ub.js → LMIBhNmZ.js} +2 -2
  328. package/lib/dist/_nuxt/{CJL5s59L.js → LrQ3PXSl.js} +1 -1
  329. package/lib/dist/_nuxt/{Dty0Z0z-.js → Lu06hHio.js} +1 -1
  330. package/lib/dist/_nuxt/{CE_eotpK.js → Lv_gHbcP.js} +2 -2
  331. package/lib/dist/_nuxt/{M_38KAtu.js → MWyA65x_.js} +1 -1
  332. package/lib/dist/_nuxt/{D0skW1jq.js → NHZFd8bQ.js} +6 -6
  333. package/lib/dist/_nuxt/{CieNK_Hy.js → NuKLqi_C.js} +1 -1
  334. package/lib/dist/_nuxt/{B9joLcm_.js → P0QkPGdf.js} +2 -2
  335. package/lib/dist/_nuxt/{CSqy6vht.js → P1U7Y6XL.js} +1 -1
  336. package/lib/dist/_nuxt/{C4ETrJi7.js → QWjz_-lm.js} +1 -1
  337. package/lib/dist/_nuxt/QujOlhZj.js +2 -0
  338. package/lib/dist/_nuxt/{BSzJ4FxO.js → RCSYvIJN.js} +1 -1
  339. package/lib/dist/_nuxt/{Bx6zLbPy.js → ReAu2ibT.js} +1 -1
  340. package/lib/dist/_nuxt/{BTW1NQFl.js → TlYMG5Lb.js} +7 -7
  341. package/lib/dist/_nuxt/U6Yv1qW2.js +2 -0
  342. package/lib/dist/_nuxt/{BmU5H8v_.js → X3VQ5PkD.js} +2 -2
  343. package/lib/dist/_nuxt/{ugJET5xs.js → XZK4lLIj.js} +1 -1
  344. package/lib/dist/_nuxt/{DOx4axN9.js → Y45Pvb6W.js} +1 -1
  345. package/lib/dist/_nuxt/{BIgDKQss.js → ZJoY4cv8.js} +1 -1
  346. package/lib/dist/_nuxt/{CZK_s1tg.js → Zbz8jq1G.js} +1 -1
  347. package/lib/dist/_nuxt/aCruzJXG.js +1 -0
  348. package/lib/dist/_nuxt/{Bw11haZJ.js → aJ7vL21_.js} +1 -1
  349. package/lib/dist/_nuxt/{DOtEMrYm.js → bQDfPeIU.js} +1 -1
  350. package/lib/dist/_nuxt/builds/latest.json +1 -1
  351. package/lib/dist/_nuxt/builds/meta/4d3455d9-8566-4611-8871-432defb7e328.json +1 -0
  352. package/lib/dist/_nuxt/{C2Y5XRar.js → cBorlqEK.js} +2 -2
  353. package/lib/dist/_nuxt/{D48FTZfZ.js → cI3AFhs3.js} +1 -1
  354. package/lib/dist/_nuxt/{aDq49son.js → d-tLNYlP.js} +1 -1
  355. package/lib/dist/_nuxt/{CDSEzxpf.js → dHKlbiDl.js} +1 -1
  356. package/lib/dist/_nuxt/{C8vzQM9F.js → eKjPor-g.js} +2 -2
  357. package/lib/dist/_nuxt/{43F7ME7I.js → eskGEf7B.js} +1 -1
  358. package/lib/dist/_nuxt/{CxqNjWIa.js → euJqEUdj.js} +1 -1
  359. package/lib/dist/_nuxt/{CZ1dfjxk.js → gfY1oWFn.js} +1 -1
  360. package/lib/dist/_nuxt/{jdd8DREa.js → gkkS3OdB.js} +1 -1
  361. package/lib/dist/_nuxt/{BIaf71U6.js → hK_vol2i.js} +1 -1
  362. package/lib/dist/_nuxt/{Dyq8wlm2.js → iP1ZjiJa.js} +2 -2
  363. package/lib/dist/_nuxt/{BVg_3UXa.js → iSAFOGha.js} +2 -2
  364. package/lib/dist/_nuxt/{xZsSy3RW.js → ijWpAKHL.js} +1 -1
  365. package/lib/dist/_nuxt/{D5ELxc-k.js → jxmEYLWk.js} +1 -1
  366. package/lib/dist/_nuxt/{DUyMuvWw.js → kMYqkelq.js} +1 -1
  367. package/lib/dist/_nuxt/kgA_spNm.js +1 -0
  368. package/lib/dist/_nuxt/{Dyb0u-HW.js → kv4-NDtx.js} +3 -3
  369. package/lib/dist/_nuxt/{clwBgde6.js → l2p4hKoB.js} +1 -1
  370. package/lib/dist/_nuxt/{ClX7IuYy.js → lt6VDLdz.js} +1 -1
  371. package/lib/dist/_nuxt/{BkeBYOsG.js → m-_0Ui4u.js} +1 -1
  372. package/lib/dist/_nuxt/{EPaHYVRO.js → m9SI53XN.js} +1 -1
  373. package/lib/dist/_nuxt/{LWWX4jJK.js → mFTJNPpO.js} +2 -2
  374. package/lib/dist/_nuxt/{ebEXfNSo.js → natIdR_4.js} +1 -1
  375. package/lib/dist/_nuxt/{COU5RsPn.js → nhJGrFyW.js} +1 -1
  376. package/lib/dist/_nuxt/{tryzmhi-.js → oU1_jzX3.js} +2 -2
  377. package/lib/dist/_nuxt/{l5kmItbI.js → qMnjxg1z.js} +2 -2
  378. package/lib/dist/_nuxt/{D3xcU-9s.js → qUZV8ckr.js} +1 -1
  379. package/lib/dist/_nuxt/{BGeyVyh0.js → qq4q0aR6.js} +1 -1
  380. package/lib/dist/_nuxt/{Czkqqtnx.js → rLJJko6s.js} +2 -2
  381. package/lib/dist/_nuxt/{mMZq6K4Q.js → rNQe47vo.js} +1 -1
  382. package/lib/dist/_nuxt/{Ct1oIb_4.js → s-MsS4iB.js} +1 -1
  383. package/lib/dist/_nuxt/{DXFidnjK.js → s0RDr8Yh.js} +1 -1
  384. package/lib/dist/_nuxt/{BlXcT63I.js → tIh8AlSR.js} +1 -1
  385. package/lib/dist/_nuxt/{CWxOTqy6.js → uzC90Djt.js} +1 -1
  386. package/lib/dist/_nuxt/{Cupjn1oo.js → vLzSHf6u.js} +1 -1
  387. package/lib/dist/_nuxt/{CdLRqnlg.js → vMzl2isH.js} +2 -2
  388. package/lib/dist/_nuxt/{CA9orR1m.js → w_XtQjYV.js} +1 -1
  389. package/lib/dist/_nuxt/{spkU7cBe.js → wlN_Lind.js} +1 -1
  390. package/lib/dist/_nuxt/{DQ_P5qhG.js → xrjPLgbZ.js} +2 -2
  391. package/lib/dist/_nuxt/{BBNdAyDm.js → yYBIpa2d.js} +2 -2
  392. package/lib/dist/_nuxt/{CGnFnNNP.js → yvNBUCYV.js} +2 -2
  393. package/lib/dist/index.html +78 -78
  394. package/package.json +1 -1
  395. package/lib/dist/_nuxt/5k15r58b.js +0 -2
  396. package/lib/dist/_nuxt/6hwpPwDU.js +0 -1
  397. package/lib/dist/_nuxt/BOcIFZYZ.js +0 -1
  398. package/lib/dist/_nuxt/BRDmg5de.js +0 -1
  399. package/lib/dist/_nuxt/BWn7t3Vo.js +0 -1
  400. package/lib/dist/_nuxt/BieqjKAc.js +0 -1
  401. package/lib/dist/_nuxt/BkmIs3tY.js +0 -1
  402. package/lib/dist/_nuxt/C-eSTurT.js +0 -1
  403. package/lib/dist/_nuxt/CCLf8Ov5.js +0 -1
  404. package/lib/dist/_nuxt/CJLrQ8Hb.js +0 -2
  405. package/lib/dist/_nuxt/CPE_7hUe.js +0 -1
  406. package/lib/dist/_nuxt/CZhg4TfM.js +0 -2
  407. package/lib/dist/_nuxt/Cde3ly4N.js +0 -1
  408. package/lib/dist/_nuxt/Cng_fVI_.js +0 -1
  409. package/lib/dist/_nuxt/D64AfRxx.js +0 -1
  410. package/lib/dist/_nuxt/D7AJ3OTd.js +0 -1
  411. package/lib/dist/_nuxt/DG6rkk6h.js +0 -2
  412. package/lib/dist/_nuxt/DaW8Mwua.js +0 -1
  413. package/lib/dist/_nuxt/KYUg3rcO.js +0 -1
  414. package/lib/dist/_nuxt/VaTSRx_Q.js +0 -2
  415. package/lib/dist/_nuxt/builds/meta/78ffa04d-dc42-4d55-af86-caabed101676.json +0 -1
  416. package/lib/dist/_nuxt/mkTWPTBO.js +0 -2
  417. package/lib/dist/_nuxt/nQ8h8-3-.js +0 -2
  418. package/lib/dist/_nuxt/pBpIB2qI.js +0 -2
@@ -1,4 +1,4 @@
1
- var lc=Object.defineProperty;var ac=(n,e,t)=>e in n?lc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ao=(n,e,t)=>(ac(n,typeof e!="symbol"?e+"":e,t),t);import{e as ps,r as kt,w as uc,aZ as cc,p as ze,o as ms,am as Hn,cJ as dc,aP as hc,$ as Ql,bJ as fc,fL as pc,g as mc,fm as gc,aM as yc,b as bc,f as kc,k as uo,l as xc,m as yt,a8 as wc,c6 as Ac,a9 as co,z as bt,b_ as Cc,aS as ho,aU as Ec,b1 as Sc,bs as Zl,e3 as vc,aV as Dc,aW as Tc,aX as Nc}from"./D0skW1jq.js";import{t as Mc}from"./Cy50pBgZ.js";import"./DglPsyiE.js";import{I as Oc}from"./CJL5s59L.js";function X(n){this.content=n}X.prototype={constructor:X,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new X(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new X(t)},addToStart:function(n,e){return new X([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new X(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new X(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=X.from(n),n.size?new X(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=X.from(n),n.size?new X(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=X.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};X.from=function(n){if(n instanceof X)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new X(e)};function Xl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)t++;return t}if(i.content.size||s.content.size){let o=Xl(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function ea(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let u=0,c=Math.min(o.text.length,l.text.length);for(;u<c&&o.text[o.text.length-u-1]==l.text[l.text.length-u-1];)u++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let u=ea(o.content,l.content,t-1,r-1);if(u)return u}t-=a,r-=a}}class x{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,l=0;l<t;o++){let a=this.content[o],u=l+a.nodeSize;if(u>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,e-c),Math.min(a.content.size,t-c),r,i+c)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let u=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=u},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new x(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new x(r,i)}cutByIndex(e,t){return e==t?x.empty:e==0&&t==this.content.length?this:new x(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new x(i,s)}addToStart(e){return new x([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new x(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return Xl(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return ea(this,e,t,r)}findIndex(e,t=-1){if(e==0)return On(0,e);if(e==this.size)return On(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let s=this.child(r),o=i+s.nodeSize;if(o>=e)return o==e||t>0?On(r+1,o):On(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return x.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new x(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return x.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new x(t||e,r)}static from(e){if(!e)return x.empty;if(e instanceof x)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new x([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}x.empty=new x([],0);const oi={index:0,offset:0};function On(n,e){return oi.index=n,oi.offset=e,oi}function Gn(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Gn(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Gn(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let q=class Fi{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Gn(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Fi.none;if(e instanceof Fi)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};q.none=[];class Yn extends Error{}class C{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=na(this.content,e+this.openStart,t);return r&&new C(r,this.openStart,this.openEnd)}removeBetween(e,t){return new C(ta(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return C.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new C(x.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new C(e,r,i)}}C.empty=new C(x.empty,0,0);function ta(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(ta(s.content,e-i-1,t-i-1)))}function na(n,e,t,r){let{index:i,offset:s}=n.findIndex(e),o=n.maybeChild(i);if(s==e||o.isText)return n.cut(0,e).append(t).append(n.cut(e));let l=na(o.content,e-s-1,t);return l&&n.replaceChild(i,o.copy(l))}function Bc(n,e,t){if(t.openStart>n.depth)throw new Yn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Yn("Inconsistent open depths");return ra(n,e,t,0)}function ra(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=ra(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return Dt(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=Rc(t,n);return Dt(s,sa(n,o,l,e,r))}else return Dt(s,Qn(n,e,r))}function ia(n,e){if(!e.type.compatibleContent(n.type))throw new Yn("Cannot join "+e.type.name+" onto "+n.type.name)}function qi(n,e,t){let r=n.node(t);return ia(r,e.node(t)),r}function vt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function dn(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(vt(n.nodeAfter,r),s++));for(let l=s;l<o;l++)vt(i.child(l),r);e&&e.depth==t&&e.textOffset&&vt(e.nodeBefore,r)}function Dt(n,e){return n.type.checkContent(e),n.copy(e)}function sa(n,e,t,r,i){let s=n.depth>i&&qi(n,e,i+1),o=r.depth>i&&qi(t,r,i+1),l=[];return dn(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(ia(s,o),vt(Dt(s,sa(n,e,t,r,i+1)),l)):(s&&vt(Dt(s,Qn(n,e,i+1)),l),dn(e,t,i,l),o&&vt(Dt(o,Qn(t,r,i+1)),l)),dn(r,null,i,l),new x(l)}function Qn(n,e,t){let r=[];if(dn(null,n,t,r),n.depth>t){let i=qi(n,e,t+1);vt(Dt(i,Qn(n,e,t+1)),r)}return dn(e,null,t,r),new x(r)}function Rc(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(x.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class bn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return q.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Zn(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),u=s-a;if(r.push(o,l,i+a),!u||(o=o.child(l),o.isText))break;s=u-1,i+=a+1}return new bn(t,r,s)}static resolveCached(e,t){for(let i=0;i<li.length;i++){let s=li[i];if(s.pos==t&&s.doc==e)return s}let r=li[ai]=bn.resolve(e,t);return ai=(ai+1)%Lc,r}}let li=[],ai=0,Lc=12;class Zn{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Ic=Object.create(null);let Tt=class zi{constructor(e,t,r,i=q.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||x.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&Gn(this.attrs,t||e.defaultAttrs||Ic)&&q.sameSet(this.marks,r||q.none)}copy(e=null){return e==this.content?this:new zi(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new zi(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return C.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),l=i.start(o),u=i.node(o).content.cut(i.pos-l,s.pos-l);return new C(u,i.depth-o,s.depth-o)}replace(e,t,r){return Bc(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return bn.resolveCached(this,e)}resolveNoCache(e){return bn.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),oa(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=x.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=q.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!q.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=x.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};Tt.prototype.text=void 0;class Xn extends Tt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oa(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Xn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Xn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function oa(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Ot{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Pc(e,t);if(r.next==null)return Ot.empty;let i=la(r);r.next&&r.err("Unexpected trailing text");let s=_c($c(i));return Uc(s,r),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return x.from(l.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:c,next:d}=o.next[u];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let h=s(d,l.concat(c));if(h)return h}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
1
+ var lc=Object.defineProperty;var ac=(n,e,t)=>e in n?lc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ao=(n,e,t)=>(ac(n,typeof e!="symbol"?e+"":e,t),t);import{e as ps,r as kt,w as uc,aZ as cc,p as ze,o as ms,am as Hn,cJ as dc,aP as hc,$ as Ql,bJ as fc,fL as pc,g as mc,fm as gc,aM as yc,b as bc,f as kc,k as uo,l as xc,m as yt,a8 as wc,c6 as Ac,a9 as co,z as bt,b_ as Cc,aS as ho,aU as Ec,b1 as Sc,bs as Zl,e3 as vc,aV as Dc,aW as Tc,aX as Nc}from"./NHZFd8bQ.js";import{t as Mc}from"./Cy50pBgZ.js";import"./BE4MlnZf.js";import{I as Oc}from"./LrQ3PXSl.js";function X(n){this.content=n}X.prototype={constructor:X,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new X(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new X(t)},addToStart:function(n,e){return new X([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new X(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new X(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=X.from(n),n.size?new X(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=X.from(n),n.size?new X(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=X.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};X.from=function(n){if(n instanceof X)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new X(e)};function Xl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)t++;return t}if(i.content.size||s.content.size){let o=Xl(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function ea(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let u=0,c=Math.min(o.text.length,l.text.length);for(;u<c&&o.text[o.text.length-u-1]==l.text[l.text.length-u-1];)u++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let u=ea(o.content,l.content,t-1,r-1);if(u)return u}t-=a,r-=a}}class x{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,l=0;l<t;o++){let a=this.content[o],u=l+a.nodeSize;if(u>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,e-c),Math.min(a.content.size,t-c),r,i+c)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let u=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=u},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new x(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new x(r,i)}cutByIndex(e,t){return e==t?x.empty:e==0&&t==this.content.length?this:new x(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new x(i,s)}addToStart(e){return new x([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new x(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return Xl(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return ea(this,e,t,r)}findIndex(e,t=-1){if(e==0)return On(0,e);if(e==this.size)return On(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let s=this.child(r),o=i+s.nodeSize;if(o>=e)return o==e||t>0?On(r+1,o):On(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return x.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new x(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return x.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new x(t||e,r)}static from(e){if(!e)return x.empty;if(e instanceof x)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new x([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}x.empty=new x([],0);const oi={index:0,offset:0};function On(n,e){return oi.index=n,oi.offset=e,oi}function Gn(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Gn(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Gn(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let q=class Fi{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Gn(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Fi.none;if(e instanceof Fi)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};q.none=[];class Yn extends Error{}class C{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=na(this.content,e+this.openStart,t);return r&&new C(r,this.openStart,this.openEnd)}removeBetween(e,t){return new C(ta(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return C.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new C(x.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new C(e,r,i)}}C.empty=new C(x.empty,0,0);function ta(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(ta(s.content,e-i-1,t-i-1)))}function na(n,e,t,r){let{index:i,offset:s}=n.findIndex(e),o=n.maybeChild(i);if(s==e||o.isText)return n.cut(0,e).append(t).append(n.cut(e));let l=na(o.content,e-s-1,t);return l&&n.replaceChild(i,o.copy(l))}function Bc(n,e,t){if(t.openStart>n.depth)throw new Yn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Yn("Inconsistent open depths");return ra(n,e,t,0)}function ra(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=ra(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return Dt(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=Rc(t,n);return Dt(s,sa(n,o,l,e,r))}else return Dt(s,Qn(n,e,r))}function ia(n,e){if(!e.type.compatibleContent(n.type))throw new Yn("Cannot join "+e.type.name+" onto "+n.type.name)}function qi(n,e,t){let r=n.node(t);return ia(r,e.node(t)),r}function vt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function dn(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(vt(n.nodeAfter,r),s++));for(let l=s;l<o;l++)vt(i.child(l),r);e&&e.depth==t&&e.textOffset&&vt(e.nodeBefore,r)}function Dt(n,e){return n.type.checkContent(e),n.copy(e)}function sa(n,e,t,r,i){let s=n.depth>i&&qi(n,e,i+1),o=r.depth>i&&qi(t,r,i+1),l=[];return dn(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(ia(s,o),vt(Dt(s,sa(n,e,t,r,i+1)),l)):(s&&vt(Dt(s,Qn(n,e,i+1)),l),dn(e,t,i,l),o&&vt(Dt(o,Qn(t,r,i+1)),l)),dn(r,null,i,l),new x(l)}function Qn(n,e,t){let r=[];if(dn(null,n,t,r),n.depth>t){let i=qi(n,e,t+1);vt(Dt(i,Qn(n,e,t+1)),r)}return dn(e,null,t,r),new x(r)}function Rc(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(x.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class bn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return q.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Zn(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),u=s-a;if(r.push(o,l,i+a),!u||(o=o.child(l),o.isText))break;s=u-1,i+=a+1}return new bn(t,r,s)}static resolveCached(e,t){for(let i=0;i<li.length;i++){let s=li[i];if(s.pos==t&&s.doc==e)return s}let r=li[ai]=bn.resolve(e,t);return ai=(ai+1)%Lc,r}}let li=[],ai=0,Lc=12;class Zn{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Ic=Object.create(null);let Tt=class zi{constructor(e,t,r,i=q.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||x.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&Gn(this.attrs,t||e.defaultAttrs||Ic)&&q.sameSet(this.marks,r||q.none)}copy(e=null){return e==this.content?this:new zi(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new zi(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return C.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),l=i.start(o),u=i.node(o).content.cut(i.pos-l,s.pos-l);return new C(u,i.depth-o,s.depth-o)}replace(e,t,r){return Bc(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return bn.resolveCached(this,e)}resolveNoCache(e){return bn.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),oa(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=x.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=q.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!q.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=x.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};Tt.prototype.text=void 0;class Xn extends Tt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oa(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Xn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Xn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function oa(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Ot{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Pc(e,t);if(r.next==null)return Ot.empty;let i=la(r);r.next&&r.err("Unexpected trailing text");let s=_c($c(i));return Uc(s,r),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return x.from(l.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:c,next:d}=o.next[u];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let h=s(d,l.concat(c));if(h)return h}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
2
2
  `)}}Ot.empty=new Ot(!0);class Pc{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function la(n){let e=[];do e.push(Fc(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Fc(n){let e=[];do e.push(qc(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function qc(n){let e=Hc(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=zc(n,e);else break;return e}function fo(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function zc(n,e){let t=fo(n),r=t;return n.eat(",")&&(n.next!="}"?r=fo(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function Vc(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let s in t){let o=t[s];o.groups.indexOf(e)>-1&&i.push(o)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function Hc(n){if(n.eat("(")){let e=la(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=Vc(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function $c(n){let e=[[]];return i(s(n,0),t()),e;function t(){return e.push([])-1}function r(o,l,a){let u={term:a,to:l};return e[o].push(u),u}function i(o,l){o.forEach(a=>a.to=l)}function s(o,l){if(o.type=="choice")return o.exprs.reduce((a,u)=>a.concat(s(u,l)),[]);if(o.type=="seq")for(let a=0;;a++){let u=s(o.exprs[a],l);if(a==o.exprs.length-1)return u;i(u,l=t())}else if(o.type=="star"){let a=t();return r(l,a),i(s(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=t();return i(s(o.expr,l),a),i(s(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let a=l;for(let u=0;u<o.min;u++){let c=t();i(s(o.expr,a),c),a=c}if(o.max==-1)i(s(o.expr,a),a);else for(let u=o.min;u<o.max;u++){let c=t();r(a,c),i(s(o.expr,a),c),a=c}return[r(a)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function aa(n,e){return e-n}function po(n,e){let t=[];return r(e),t.sort(aa);function r(i){let s=n[i];if(s.length==1&&!s[0].term)return r(s[0].to);t.push(i);for(let o=0;o<s.length;o++){let{term:l,to:a}=s[o];!l&&t.indexOf(a)==-1&&r(a)}}}function _c(n){let e=Object.create(null);return t(po(n,0));function t(r){let i=[];r.forEach(o=>{n[o].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c<i.length;c++)i[c][0]==l&&(u=i[c][1]);po(n,a).forEach(c=>{u||i.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let s=e[r.join(",")]=new Ot(r.indexOf(n.length-1)>-1);for(let o=0;o<i.length;o++){let l=i[o][1].sort(aa);s.next.push({type:i[o][0],next:e[l.join(",")]||t(l)})}return s}}function Uc(n,e){for(let t=0,r=[n];t<r.length;t++){let i=r[t],s=!i.validEnd,o=[];for(let l=0;l<i.next.length;l++){let{type:a,next:u}=i.next[l];o.push(a.name),s&&!(a.isText||a.hasRequiredAttrs())&&(s=!1),r.indexOf(u)==-1&&r.push(u)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function ua(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function ca(n,e){let t=Object.create(null);for(let r in n){let i=e&&e[r];if(i===void 0){let s=n[r];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=i}return t}function da(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new jc(n[t]);return e}let mo=class ha{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=da(r.attrs),this.defaultAttrs=ua(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ot.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ca(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Tt(this,this.computeAttrs(e),x.from(t),q.setFrom(r))}createChecked(e=null,t,r){return t=x.from(t),this.checkContent(t),new Tt(this,this.computeAttrs(e),t,q.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=x.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),s=i&&i.fillBefore(x.empty,!0);return s?new Tt(this,e,t.append(s),q.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:q.none:e}static compile(e,t){let r=Object.create(null);e.forEach((s,o)=>r[s]=new ha(s,t,o));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class jc{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class _r{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=da(i.attrs),this.excluded=null;let s=ua(this.attrs);this.instance=s?new q(this,s):null}create(e=null){return!e&&this.instance?this.instance:new q(this,ca(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new _r(s,i++,t,o)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class Wc{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=X.from(e.nodes),t.marks=X.from(e.marks||{}),this.nodes=mo.compile(this.spec.nodes,this),this.marks=_r.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;s.contentMatch=r[o]||(r[o]=Ot.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.markSet=l=="_"?null:l?go(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:go(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof mo){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new Xn(r,r.defaultAttrs,e,q.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Tt.fromJSON(this,e)}markFromJSON(e){return q.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function go(n,e){let t=[];for(let r=0;r<e.length;r++){let i=e[r],s=n.marks[i],o=s;if(s)t.push(s);else for(let l in n.marks){let a=n.marks[l];(i=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(i)>-1)&&t.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}class Bt{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let r=new bo(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new bo(this,t,!0);return r.addAll(e,t.from,t.to),C.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(Gc(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||t.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,t,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let t=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<t.length;o++){let l=t[o];if((l.priority==null?50:l.priority)<s)break}t.splice(o,0,i)}for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=ko(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=ko(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Bt(e,Bt.schemaRules(e)))}}const fa={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Kc={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},pa={ol:!0,ul:!0},er=1,tr=2,hn=4;function yo(n,e,t){return e!=null?(e?er:0)|(e==="full"?tr:0):n&&n.whitespace=="pre"?er|tr:t&~hn}class Bn{constructor(e,t,r,i,s,o,l){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=i,this.solid=s,this.options=l,this.content=[],this.activeMarks=q.none,this.stashMarks=[],this.match=o||(l&hn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(x.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&er)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let t=x.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(x.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;t<r.length;t++){let i=r[t];(this.type?this.type.allowsMarkType(i.type):Qc(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!fa.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class bo{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let i=t.topNode,s,o=yo(null,t.preserveWhitespace,0)|(r?hn:0);i?s=new Bn(i.type,i.attrs,q.none,q.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new Bn(null,null,q.none,q.none,!0,null,o):s=new Bn(e.schema.topNodeType,null,q.none,q.none,!0,null,o),this.nodes=[s],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,t){let r=e.getAttribute("style");if(!r)return t();let i=this.readStyles(Yc(r));if(!i)return;let[s,o]=i,l=this.top;for(let a=0;a<o.length;a++)this.removePendingMark(o[a],l);for(let a=0;a<s.length;a++)this.addPendingMark(s[a]);t();for(let a=0;a<s.length;a++)this.removePendingMark(s[a],l);for(let a=0;a<o.length;a++)this.addPendingMark(o[a])}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&tr||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&er)r.options&tr?t=t.replace(/\r\n?/g,`
3
3
  `):t=t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],s=e.previousSibling;(!i||s&&s.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r=e.nodeName.toLowerCase(),i;pa.hasOwnProperty(r)&&this.parser.normalizeLists&&Jc(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,t));if(s?s.ignore:Kc.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let o,l=this.top,a=this.needsBlock;if(fa.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),o=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}s&&s.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),o&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,s,s.consuming===!1?i:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
4
  `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=q.none,r=q.none;for(let i=0;i<e.length;i+=2)for(let s=void 0;;){let o=this.parser.matchStyle(e[i],e[i+1],this,s);if(!o)break;if(o.ignore)return null;if(o.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{o.clearMark(l)&&(r=l.addToSet(r))}):t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),o.consuming===!1)s=o;else break}return[t,r]}addElementByRule(e,t,r){let i,s,o;t.node?(s=this.parser.schema.nodes[t.node],s.isLeaf?this.insertNode(s.create(t.attrs))||this.leafFallback(e):i=this.enter(s,t.attrs||null,t.preserveWhitespace)):(o=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(o));let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a)}i&&this.sync(l)&&this.open--,o&&this.removePendingMark(o,l)}addAll(e,t,r){let i=t||0;for(let s=t?e.childNodes[t]:e.firstChild,o=r==null?null:e.childNodes[r];s!=o;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s);this.findAtPoint(e,i)}findPlace(e){let t,r;for(let i=this.open;i>=0;i--){let s=this.nodes[i],o=s.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,r=s,!o.length)||s.solid)break}if(!t)return!1;this.sync(r);for(let i=0;i<t.length;i++)this.enterInner(t[i],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let r=t.activeMarks;for(let i=0;i<e.marks.length;i++)(!t.type||t.type.allowsMarkType(e.marks[i].type))&&(r=e.marks[i].addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r){let i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,r),i}enterInner(e,t=null,r=!1,i){this.closeExtra();let s=this.top;s.applyPending(e),s.match=s.match&&s.match.matchType(e);let o=yo(e,i,s.options);s.options&hn&&s.content.length==0&&(o|=hn),this.nodes.push(new Bn(e,t,s.activeMarks,s.pendingMarks,r,null,o)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(l,a)=>{for(;l>=0;l--){let u=t[l];if(u==""){if(l==t.length-1||l==0)continue;for(;a>=s;a--)if(o(l-1,a))return!0;return!1}else{let c=a>0||a==0&&i?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-1)return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let t=Zc(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let i=this.nodes[r];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);let o=i.popFromStashMark(e);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==t)break}}}function Jc(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&pa.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Gc(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Yc(n){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,t,r=[];for(;t=e.exec(n);)r.push(t[1],t[2].trim());return r}function ko(n){let e={};for(let t in n)e[t]=n[t];return e}function Qc(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let s=[],o=l=>{s.push(l);for(let a=0;a<l.edgeCount;a++){let{type:u,next:c}=l.edge(a);if(u==e||s.indexOf(c)<0&&o(c))return!0}};if(o(i.contentMatch))return!0}}function Zc(n,e){for(let t=0;t<e.length;t++)if(n.eq(e[t]))return e[t]}class Re{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=ui(t).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let l=0,a=0;for(;l<s.length&&a<o.marks.length;){let u=o.marks[a];if(!this.marks[u.type.name]){a++;continue}if(!u.eq(s[l][0])||u.type.spec.spanning===!1)break;l++,a++}for(;l<s.length;)i=s.pop()[1];for(;a<o.marks.length;){let u=o.marks[a++],c=this.serializeMark(u,o.isInline,t);c&&(s.push([u,i]),i.appendChild(c.dom),i=c.contentDOM||c.dom)}}i.appendChild(this.serializeNodeInner(o,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:i}=Re.renderSpec(ui(t),this.nodes[e.type.name](e));if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&Re.renderSpec(ui(r),i(e,t))}static renderSpec(e,t,r=null){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],s=i.indexOf(" ");s>0&&(r=i.slice(0,s),i=i.slice(s+1));let o,l=r?e.createElementNS(r,i):e.createElement(i),a=t[1],u=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){u=2;for(let c in a)if(a[c]!=null){let d=c.indexOf(" ");d>0?l.setAttributeNS(c.slice(0,d),c.slice(d+1),a[c]):l.setAttribute(c,a[c])}}for(let c=u;c<t.length;c++){let d=t[c];if(d===0){if(c<t.length-1||c>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:f}=Re.renderSpec(e,d,r);if(l.appendChild(h),f){if(o)throw new RangeError("Multiple content holes");o=f}}}return{dom:l,contentDOM:o}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Re(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=xo(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return xo(e.marks)}}function xo(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function ui(n){return n.document||window.document}const ma=65535,ga=Math.pow(2,16);function Xc(n,e){return n+e*ga}function wo(n){return n&ma}function ed(n){return(n-(n&ma))/ga}const ya=1,ba=2,$n=4,ka=8;class Vi{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&ka)>0}get deletedBefore(){return(this.delInfo&(ya|$n))>0}get deletedAfter(){return(this.delInfo&(ba|$n))>0}get deletedAcross(){return(this.delInfo&$n)>0}}class fe{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&fe.empty)return fe.empty}recover(e){let t=0,r=wo(e);if(!this.inverted)for(let i=0;i<r;i++)t+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+t+ed(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?i:0);if(a>e)break;let u=this.ranges[l+s],c=this.ranges[l+o],d=a+u;if(e<=d){let h=u?e==a?-1:e==d?1:t:t,f=a+i+(h<0?0:c);if(r)return f;let p=e==(t<0?a:d)?null:Xc(l/3,e-a),m=e==a?ba:e==d?ya:$n;return(t<0?e!=a:e!=d)&&(m|=ka),new Vi(f,m,p)}i+=c-u}return r?e+i:new Vi(e+i,0,null)}touches(e,t){let r=0,i=wo(t),s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let u=this.ranges[l+s],c=a+u;if(e<=c&&l==i*3)return!0;r+=this.ranges[l+o]-u}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],l=o-(this.inverted?s:0),a=o+(this.inverted?0:s),u=this.ranges[i+t],c=this.ranges[i+r];e(l,l+u,a,a+c),s+=c-u}}invert(){return new fe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?fe.empty:new fe(e<0?[0,-e,0]:[0,0,e])}}fe.empty=new fe([]);class Kt{constructor(e=[],t,r=0,i=e.length){this.maps=e,this.mirror=t,this.from=r,this.to=i}slice(e=0,t=this.maps.length){return new Kt(this.maps,this.mirror,e,t)}copy(){return new Kt(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),t!=null&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,r=this.maps.length;t<e.maps.length;t++){let i=e.getMirror(t);this.appendMap(e.maps[t],i!=null&&i<t?r+i:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this.maps.length+e.maps.length;t>=0;t--){let i=e.getMirror(t);this.appendMap(e.maps[t].invert(),i!=null&&i>t?r-i-1:void 0)}}invert(){let e=new Kt;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let i=0;for(let s=this.from;s<this.to;s++){let o=this.maps[s],l=o.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(s);if(a!=null&&a>s&&a<this.to){s=a,e=this.maps[a].recover(l.recover);continue}}i|=l.delInfo,e=l.pos}return r?e:new Vi(e,i,null)}}const ci=Object.create(null);class ie{getMap(){return fe.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=ci[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in ci)throw new RangeError("Duplicate use of step JSON ID "+e);return ci[e]=t,t.prototype.jsonID=e,t}}class W{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new W(e,null)}static fail(e){return new W(null,e)}static fromReplace(e,t,r,i){try{return W.ok(e.replace(t,r,i))}catch(s){if(s instanceof Yn)return W.fail(s.message);throw s}}}function gs(n,e,t){let r=[];for(let i=0;i<n.childCount;i++){let s=n.child(i);s.content.size&&(s=s.copy(gs(s.content,e,s))),s.isInline&&(s=e(s,t,i)),r.push(s)}return x.fromArray(r)}class et extends ie{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new C(gs(t.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),t.openStart,t.openEnd);return W.fromReplace(e,this.from,this.to,s)}invert(){return new Le(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new et(t.pos,r.pos,this.mark)}merge(e){return e instanceof et&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new et(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new et(t.from,t.to,e.markFromJSON(t.mark))}}ie.jsonID("addMark",et);class Le extends ie{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new C(gs(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return W.fromReplace(e,this.from,this.to,r)}invert(){return new et(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Le(t.pos,r.pos,this.mark)}merge(e){return e instanceof Le&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Le(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Le(t.from,t.to,e.markFromJSON(t.mark))}}ie.jsonID("removeMark",Le);class tt extends ie{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return W.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return W.fromReplace(e,this.pos,this.pos+1,new C(x.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(r))return new tt(this.pos,t.marks[i]);return new tt(this.pos,this.mark)}}return new Qt(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new tt(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new tt(t.pos,e.markFromJSON(t.mark))}}ie.jsonID("addNodeMark",tt);class Qt extends ie{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return W.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return W.fromReplace(e,this.pos,this.pos+1,new C(x.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new tt(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Qt(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Qt(t.pos,e.markFromJSON(t.mark))}}ie.jsonID("removeNodeMark",Qt);class J extends ie{constructor(e,t,r,i=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=i}apply(e){return this.structure&&Hi(e,this.from,this.to)?W.fail("Structure replace would overwrite content"):W.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new fe([this.from,this.to-this.from,this.slice.size])}invert(e){return new J(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new J(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof J)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?C.empty:new C(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new J(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?C.empty:new C(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new J(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new J(t.from,t.to,C.fromJSON(e,t.slice),!!t.structure)}}ie.jsonID("replace",J);class G extends ie{constructor(e,t,r,i,s,o,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=l}apply(e){if(this.structure&&(Hi(e,this.from,this.gapFrom)||Hi(e,this.gapTo,this.to)))return W.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return W.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?W.fromReplace(e,this.from,this.to,r):W.fail("Content does not fit in gap")}getMap(){return new fe([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new G(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=e.map(this.gapFrom,-1),s=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||i<t.pos||s>r.pos?null:new G(t.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new G(t.from,t.to,t.gapFrom,t.gapTo,C.fromJSON(e,t.slice),t.insert,!!t.structure)}}ie.jsonID("replaceAround",G);function Hi(n,e,t){let r=n.resolve(e),i=t-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function td(n,e,t,r){let i=[],s=[],o,l;n.doc.nodesBetween(e,t,(a,u,c)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let h=Math.max(u,e),f=Math.min(u+a.nodeSize,t),p=r.addToSet(d);for(let m=0;m<d.length;m++)d[m].isInSet(p)||(o&&o.to==h&&o.mark.eq(d[m])?o.to=f:i.push(o=new Le(h,f,d[m])));l&&l.to==h?l.to=f:s.push(l=new et(h,f,r))}}),i.forEach(a=>n.step(a)),s.forEach(a=>n.step(a))}function nd(n,e,t,r){let i=[],s=0;n.doc.nodesBetween(e,t,(o,l)=>{if(!o.isInline)return;s++;let a=null;if(r instanceof _r){let u=o.marks,c;for(;c=r.isInSet(u);)(a||(a=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let u=Math.min(l+o.nodeSize,t);for(let c=0;c<a.length;c++){let d=a[c],h;for(let f=0;f<i.length;f++){let p=i[f];p.step==s-1&&d.eq(i[f].style)&&(h=p)}h?(h.to=u,h.step=s):i.push({style:d,from:Math.max(l,e),to:u,step:s})}}}),i.forEach(o=>n.step(new Le(o.from,o.to,o.style)))}function rd(n,e,t,r=t.contentMatch){let i=n.doc.nodeAt(e),s=[],o=e+1;for(let l=0;l<i.childCount;l++){let a=i.child(l),u=o+a.nodeSize,c=r.matchType(a.type);if(!c)s.push(new J(o,u,C.empty));else{r=c;for(let d=0;d<a.marks.length;d++)t.allowsMarkType(a.marks[d].type)||n.step(new Le(o,u,a.marks[d]));if(a.isText&&!t.spec.code){let d,h=/\r?\n|\r/g,f;for(;d=h.exec(a.text);)f||(f=new C(x.from(t.schema.text(" ",t.allowedMarks(a.marks))),0,0)),s.push(new J(o+d.index,o+d.index+d[0].length,f))}}o=u}if(!r.validEnd){let l=r.fillBefore(x.empty,!0);n.replace(o,o,new C(l,0,0))}for(let l=s.length-1;l>=0;l--)n.step(s[l])}function id(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function rn(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let i=n.$from.node(r),s=n.$from.index(r),o=n.$to.indexAfter(r);if(r<n.depth&&i.canReplace(s,o,t))return r;if(r==0||i.type.spec.isolating||!id(i,s,o))break}return null}function sd(n,e,t){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),l=i.after(s+1),a=o,u=l,c=x.empty,d=0;for(let p=s,m=!1;p>t;p--)m||r.index(p)>0?(m=!0,c=x.from(r.node(p).copy(c)),d++):a--;let h=x.empty,f=0;for(let p=s,m=!1;p>t;p--)m||i.after(p+1)<i.end(p)?(m=!0,h=x.from(i.node(p).copy(h)),f++):u++;n.step(new G(a,u,o,l,new C(c.append(h),d,f),c.size-d,!0))}function ys(n,e,t=null,r=n){let i=od(n,e),s=i&&ld(r,e);return s?i.map(Ao).concat({type:e,attrs:t}).concat(s.map(Ao)):null}function Ao(n){return{type:n,attrs:null}}function od(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return t.canReplaceWith(r,i,o)?s:null}function ld(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let a=(o.length?o[o.length-1]:e).contentMatch;for(let u=r;a&&u<i;u++)a=a.matchType(t.child(u).type);return!a||!a.validEnd?null:o}function ad(n,e,t){let r=x.empty;for(let o=t.length-1;o>=0;o--){if(r.size){let l=t[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=x.from(t[o].type.create(t[o].attrs,r))}let i=e.start,s=e.end;n.step(new G(i,s,i,s,new C(r,0,0),t.length,!0))}function ud(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(o,l)=>{if(o.isTextblock&&!o.hasMarkup(r,i)&&cd(n.doc,n.mapping.slice(s).map(l),r)){n.clearIncompatible(n.mapping.slice(s).map(l,1),r);let a=n.mapping.slice(s),u=a.map(l,1),c=a.map(l+o.nodeSize,1);return n.step(new G(u,c,u+1,c-1,new C(x.from(r.create(i,null,o.marks)),0,0),1,!0)),!1}})}function cd(n,e,t){let r=n.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,t)}function dd(n,e,t,r,i){let s=n.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");t||(t=s.type);let o=t.create(r,null,i||s.marks);if(s.isLeaf)return n.replaceWith(e,e+s.nodeSize,o);if(!t.validContent(s.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new G(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new C(x.from(o),0,0),1,!0))}function Jt(n,e,t=1,r){let i=n.resolve(e),s=i.depth-t,o=r&&r[r.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,c=t-2;u>s;u--,c--){let d=i.node(u),h=i.index(u);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(h,d.childCount),p=r&&r[c+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[c]||d;if(!d.canReplace(h+1,d.childCount)||!m.type.validContent(f))return!1}let l=i.indexAfter(s),a=r&&r[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function hd(n,e,t=1,r){let i=n.doc.resolve(e),s=x.empty,o=x.empty;for(let l=i.depth,a=i.depth-t,u=t-1;l>a;l--,u--){s=x.from(i.node(l).copy(s));let c=r&&r[u];o=x.from(c?c.type.create(c.attrs,o):i.node(l).copy(o))}n.step(new J(e,e,new C(s.append(o),t,t),!0))}function dt(n,e){let t=n.resolve(e),r=t.index();return xa(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function xa(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function Ur(n,e,t=-1){let r=n.resolve(e);for(let i=r.depth;;i--){let s,o,l=r.index(i);if(i==r.depth?(s=r.nodeBefore,o=r.nodeAfter):t>0?(s=r.node(i+1),l++,o=r.node(i).maybeChild(l)):(s=r.node(i).maybeChild(l-1),o=r.node(i+1)),s&&!s.isTextblock&&xa(s,o)&&r.node(i).canReplace(l,l+1))return e;if(i==0)break;e=t<0?r.before(i):r.after(i)}}function fd(n,e,t){let r=new J(e-t,e+t,C.empty,!0);n.step(r)}function pd(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let s=r.index(i);if(r.node(i).canReplaceWith(s,s,t))return r.before(i+1);if(s>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let s=r.indexAfter(i);if(r.node(i).canReplaceWith(s,s,t))return r.after(i+1);if(s<r.node(i).childCount)return null}return null}function wa(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let i=t.content;for(let s=0;s<t.openStart;s++)i=i.firstChild.content;for(let s=1;s<=(t.openStart==0&&t.size?2:1);s++)for(let o=r.depth;o>=0;o--){let l=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,a=r.index(o)+(l>0?1:0),u=r.node(o),c=!1;if(s==1)c=u.canReplace(a,a,i);else{let d=u.contentMatchAt(a).findWrapping(i.firstChild.type);c=d&&u.canReplaceWith(a,a,d[0])}if(c)return l==0?r.pos:l<0?r.before(o+1):r.after(o+1)}return null}function jr(n,e,t=e,r=C.empty){if(e==t&&!r.size)return null;let i=n.resolve(e),s=n.resolve(t);return Aa(i,s,r)?new J(e,t,r):new md(i,s,r).fit()}function Aa(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class md{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=x.empty;for(let i=0;i<=e.depth;i++){let s=e.node(i);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=x.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,l=i.depth;for(;o&&l&&s.childCount==1;)s=s.firstChild.content,o--,l--;let a=new C(s,o,l);return e>-1?new G(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new J(r.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let s=t.firstChild;if(t.childCount>1&&(i=0),s.type.spec.isolating&&i<=r){e=r;break}t=s.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let i,s=null;r?(s=di(this.unplaced.content,r-1).firstChild,i=s.content):i=this.unplaced.content;let o=i.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:u}=this.frontier[l],c,d=null;if(t==1&&(o?u.matchType(o.type)||(d=u.fillBefore(x.from(o),!1)):s&&a.compatibleContent(s.type)))return{sliceDepth:r,frontierDepth:l,parent:s,inject:d};if(t==2&&o&&(c=u.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:l,parent:s,wrap:c};if(s&&u.matchType(s.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=di(e,t);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new C(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=di(e,t);if(i.childCount<=1&&t>0){let s=e.size-t<=t+i.size;this.unplaced=new C(an(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new C(an(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let m=0;m<s.length;m++)this.openFrontierNode(s[m]);let o=this.unplaced,l=r?r.content:o.content,a=o.openStart-e,u=0,c=[],{match:d,type:h}=this.frontier[t];if(i){for(let m=0;m<i.childCount;m++)c.push(i.child(m));d=d.matchFragment(i)}let f=l.size+e-(o.content.size-o.openEnd);for(;u<l.childCount;){let m=l.child(u),g=d.matchType(m.type);if(!g)break;u++,(u>1||a==0||m.content.size)&&(d=g,c.push(Ca(m.mark(h.allowedMarks(m.marks)),u==1?a:0,u==l.childCount?f:-1)))}let p=u==l.childCount;p||(f=-1),this.placed=un(this.placed,t,x.from(c)),this.frontier[t].match=d,p&&f<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=l;m<f;m++){let y=g.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),g=y.content}this.unplaced=p?e==0?C.empty:new C(an(o.content,e-1,1),e-1,f<0?o.openEnd:e-1):new C(an(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!hi(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:i}=this.frontier[t],s=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=hi(e,t,i,r,s);if(o){for(let l=t-1;l>=0;l--){let{match:a,type:u}=this.frontier[l],c=hi(e,l,u,a,!0);if(!c||c.childCount)continue e}return{depth:t,fit:o,move:s?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=un(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let i=e.node(r),s=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,s)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=un(this.placed,this.depth,x.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(x.empty,!0);t.childCount&&(this.placed=un(this.placed,this.frontier.length,t))}}function an(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(an(n.firstChild.content,e-1,t)))}function un(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(un(n.lastChild.content,e-1,t)))}function di(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function Ca(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,Ca(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(x.empty,!0)))),n.copy(r)}function hi(n,e,t,r,i){let s=n.node(e),o=i?n.indexAfter(e):n.index(e);if(o==s.childCount&&!t.compatibleContent(s.type))return null;let l=r.fillBefore(s.content,!0,o);return l&&!gd(t,s.content,o)?l:null}function gd(n,e,t){for(let r=t;r<e.childCount;r++)if(!n.allowsMarks(e.child(r).marks))return!0;return!1}function yd(n){return n.spec.defining||n.spec.definingForContent}function bd(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let i=n.doc.resolve(e),s=n.doc.resolve(t);if(Aa(i,s,r))return n.step(new J(e,t,r));let o=Sa(i,n.doc.resolve(t));o[o.length-1]==0&&o.pop();let l=-(i.depth+1);o.unshift(l);for(let h=i.depth,f=i.pos-1;h>0;h--,f--){let p=i.node(h).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;o.indexOf(h)>-1?l=h:i.before(h)==f&&o.splice(1,0,-h)}let a=o.indexOf(l),u=[],c=r.openStart;for(let h=r.content,f=0;;f++){let p=h.firstChild;if(u.push(p),f==r.openStart)break;h=p.content}for(let h=c-1;h>=0;h--){let f=u[h],p=yd(f.type);if(p&&!f.sameMarkup(i.node(Math.abs(l)-1)))c=h;else if(p||!f.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let f=(h+c+1)%(r.openStart+1),p=u[f];if(p)for(let m=0;m<o.length;m++){let g=o[(m+a)%o.length],y=!0;g<0&&(y=!1,g=-g);let k=i.node(g-1),v=i.index(g-1);if(k.canReplaceWith(v,v,p.type,p.marks))return n.replace(i.before(g),y?s.after(g):t,new C(Ea(r.content,0,r.openStart,f),f,r.openEnd))}}let d=n.steps.length;for(let h=o.length-1;h>=0&&(n.replace(e,t,r),!(n.steps.length>d));h--){let f=o[h];f<0||(e=i.before(f),t=s.after(f))}}function Ea(n,e,t,r,i){if(e<t){let s=n.firstChild;n=n.replaceChild(0,s.copy(Ea(s.content,e+1,t,r,s)))}if(e>r){let s=i.contentMatchAt(0),o=s.fillBefore(n).append(n);n=o.append(s.matchFragment(o).fillBefore(x.empty,!0))}return n}function kd(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let i=pd(n.doc,e,r.type);i!=null&&(e=t=i)}n.replaceRange(e,t,new C(x.from(r),0,0))}function xd(n,e,t){let r=n.doc.resolve(e),i=n.doc.resolve(t),s=Sa(r,i);for(let o=0;o<s.length;o++){let l=s[o],a=o==s.length-1;if(a&&l==0||r.node(l).type.contentMatch.validEnd)return n.delete(r.start(l),i.end(l));if(l>0&&(a||r.node(l-1).canReplace(r.index(l-1),i.indexAfter(l-1))))return n.delete(r.before(l),i.after(l))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(e-r.start(o)==r.depth-o&&t>r.end(o)&&i.end(o)-t!=i.depth-o)return n.delete(r.before(o),t);n.delete(e,t)}function Sa(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let i=r;i>=0;i--){let s=n.start(i);if(s<n.pos-(n.depth-i)||e.end(i)>e.pos+(e.depth-i)||n.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(s==e.start(i)||i==n.depth&&i==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==s-1)&&t.push(i)}return t}class Gt extends ie{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return W.fail("No node at attribute step's position");let r=Object.create(null);for(let s in t.attrs)r[s]=t.attrs[s];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return W.fromReplace(e,this.pos,this.pos+1,new C(x.from(i),0,t.isLeaf?0:1))}getMap(){return fe.empty}invert(e){return new Gt(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Gt(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Gt(t.pos,t.attr,t.value)}}ie.jsonID("attr",Gt);class kn extends ie{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let i in e.attrs)t[i]=e.attrs[i];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return W.ok(r)}getMap(){return fe.empty}invert(e){return new kn(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new kn(t.attr,t.value)}}ie.jsonID("docAttr",kn);let Zt=class extends Error{};Zt=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t};Zt.prototype=Object.create(Error.prototype);Zt.prototype.constructor=Zt;Zt.prototype.name="TransformError";class va{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Kt}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Zt(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=C.empty){let i=jr(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new C(x.from(r),0,0))}delete(e,t){return this.replace(e,t,C.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return bd(this,e,t,r),this}replaceRangeWith(e,t,r){return kd(this,e,t,r),this}deleteRange(e,t){return xd(this,e,t),this}lift(e,t){return sd(this,e,t),this}join(e,t=1){return fd(this,e,t),this}wrap(e,t){return ad(this,e,t),this}setBlockType(e,t=e,r,i=null){return ud(this,e,t,r,i),this}setNodeMarkup(e,t,r=null,i){return dd(this,e,t,r,i),this}setNodeAttribute(e,t,r){return this.step(new Gt(e,t,r)),this}setDocAttribute(e,t){return this.step(new kn(e,t)),this}addNodeMark(e,t){return this.step(new tt(e,t)),this}removeNodeMark(e,t){if(!(t instanceof q)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t=t.isInSet(r.marks),!t)return this}return this.step(new Qt(e,t)),this}split(e,t=1,r){return hd(this,e,t,r),this}addMark(e,t,r){return td(this,e,t,r),this}removeMark(e,t,r){return nd(this,e,t,r),this}clearIncompatible(e,t,r){return rd(this,e,t,r),this}}const fi=Object.create(null);class P{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new wd(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=C.empty){let r=t.content.lastChild,i=null;for(let l=0;l<t.openEnd;l++)i=r,r=r.lastChild;let s=e.steps.length,o=this.ranges;for(let l=0;l<o.length;l++){let{$from:a,$to:u}=o[l],c=e.mapping.slice(s);e.replaceRange(c.map(a.pos),c.map(u.pos),l?C.empty:t),l==0&&So(e,s,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){let{$from:o,$to:l}=i[s],a=e.mapping.slice(r),u=a.map(o.pos),c=a.map(l.pos);s?e.deleteRange(u,c):(e.replaceRangeWith(u,c,t),So(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let i=e.parent.inlineContent?new R(e):$t(e.node(0),e.parent,e.pos,e.index(),t,r);if(i)return i;for(let s=e.depth-1;s>=0;s--){let o=t<0?$t(e.node(0),e.node(s),e.before(s+1),e.index(s),t,r):$t(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,t,r);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new ve(e.node(0))}static atStart(e){return $t(e,e,0,0,1)||new ve(e)}static atEnd(e){return $t(e,e,e.content.size,e.childCount,-1)||new ve(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=fi[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in fi)throw new RangeError("Duplicate use of selection JSON ID "+e);return fi[e]=t,t.prototype.jsonID=e,t}getBookmark(){return R.between(this.$anchor,this.$head).getBookmark()}}P.prototype.visible=!0;class wd{constructor(e,t){this.$from=e,this.$to=t}}let Co=!1;function Eo(n){!Co&&!n.parent.inlineContent&&(Co=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class R extends P{constructor(e,t=e){Eo(e),Eo(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return P.near(r);let i=e.resolve(t.map(this.anchor));return new R(i.parent.inlineContent?i:r,r)}replace(e,t=C.empty){if(super.replace(e,t),t==C.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof R&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Wr(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new R(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let i=e.resolve(t);return new this(i,r==t?i:e.resolve(r))}static between(e,t,r){let i=e.pos-t.pos;if((!r||i)&&(r=i>=0?1:-1),!t.parent.inlineContent){let s=P.findFrom(t,r,!0)||P.findFrom(t,-r,!0);if(s)t=s.$head;else return P.near(t,r)}return e.parent.inlineContent||(i==0?e=t:(e=(P.findFrom(e,-r,!0)||P.findFrom(e,r,!0)).$anchor,e.pos<t.pos!=i<0&&(e=t))),new R(e,t)}}P.jsonID("text",R);class Wr{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Wr(e.map(this.anchor),e.map(this.head))}resolve(e){return R.between(e.resolve(this.anchor),e.resolve(this.head))}}class T extends P{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:i}=t.mapResult(this.anchor),s=e.resolve(i);return r?P.near(s):new T(s)}content(){return new C(x.from(this.node),0,0)}eq(e){return e instanceof T&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new bs(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new T(e.resolve(t.anchor))}static create(e,t){return new T(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}T.prototype.visible=!1;P.jsonID("node",T);class bs{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Wr(r,r):new bs(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&T.isSelectable(r)?new T(t):P.near(t)}}class ve extends P{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=C.empty){if(t==C.empty){e.delete(0,e.doc.content.size);let r=P.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new ve(e)}map(e){return new ve(e)}eq(e){return e instanceof ve}getBookmark(){return Ad}}P.jsonID("all",ve);const Ad={map(){return this},resolve(n){return new ve(n)}};function $t(n,e,t,r,i,s=!1){if(e.inlineContent)return R.create(n,t);for(let o=r-(i>0?0:1);i>0?o<e.childCount:o>=0;o+=i){let l=e.child(o);if(l.isAtom){if(!s&&T.isSelectable(l))return T.create(n,t-(i<0?l.nodeSize:0))}else{let a=$t(n,l,t+i,i<0?l.childCount:0,i,s);if(a)return a}t+=l.nodeSize*i}return null}function So(n,e,t){let r=n.steps.length-1;if(r<e)return;let i=n.steps[r];if(!(i instanceof J||i instanceof G))return;let s=n.mapping.maps[r],o;s.forEach((l,a,u,c)=>{o==null&&(o=c)}),n.setSelection(P.near(n.doc.resolve(o),t))}const vo=1,Rn=2,Do=4;class Cd extends va{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|vo)&~Rn,this.storedMarks=null,this}get selectionSet(){return(this.updated&vo)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Rn,this}ensureMarks(e){return q.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Rn)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Rn,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||q.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let i=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=t),r=r??t,!e)return this.deleteRange(t,r);let s=this.storedMarks;if(!s){let o=this.doc.resolve(t);s=r==t?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,i.text(e,s)),this.selection.empty||this.setSelection(P.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Do,this}get scrolledIntoView(){return(this.updated&Do)>0}}function To(n,e){return!e||!n?n:n.bind(e)}class cn{constructor(e,t,r){this.name=e,this.init=To(t.init,r),this.apply=To(t.apply,r)}}const Ed=[new cn("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new cn("selection",{init(n,e){return n.selection||P.atStart(e.doc)},apply(n){return n.selection}}),new cn("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new cn("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class pi{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Ed.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new cn(r.key,r.spec.state,r))})}}class jt{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),i=null;for(;;){let s=!1;for(let o=0;o<this.config.plugins.length;o++){let l=this.config.plugins[o];if(l.spec.appendTransaction){let a=i?i[o].n:0,u=i?i[o].state:this,c=a<t.length&&l.spec.appendTransaction.call(l,a?t.slice(a):t,u,r);if(c&&r.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<o?{state:r,n:t.length}:{state:this,n:0})}t.push(c),r=r.applyInner(c),s=!0}i&&(i[o]={state:r,n:t.length})}}if(!s)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new jt(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let s=r[i];t[s.name]=s.apply(e,this[s.name],this,t)}return t}get tr(){return new Cd(this)}static create(e){let t=new pi(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new jt(t);for(let i=0;i<t.fields.length;i++)r[t.fields[i].name]=t.fields[i].init(e,r);return r}reconfigure(e){let t=new pi(this.schema,e.plugins),r=t.fields,i=new jt(t);for(let s=0;s<r.length;s++){let o=r[s].name;i[o]=this.hasOwnProperty(o)?this[o]:r[s].init(e,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],s=i.spec.state;s&&s.toJSON&&(t[r]=s.toJSON.call(i,this[i.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new pi(e.schema,e.plugins),s=new jt(i);return i.fields.forEach(o=>{if(o.name=="doc")s.doc=Tt.fromJSON(e.schema,t.doc);else if(o.name=="selection")s.selection=P.fromJSON(s.doc,t.selection);else if(o.name=="storedMarks")t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let a=r[l],u=a.spec.state;if(a.key==o.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){s[o.name]=u.fromJSON.call(a,e,t[l],s);return}}s[o.name]=o.init(e,s)}}),s}}function Da(n,e,t){for(let r in n){let i=n[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=Da(i,e,{})),t[r]=i}return t}class Z{constructor(e){this.spec=e,this.props={},e.props&&Da(e.props,this,this.props),this.key=e.key?e.key.key:Ta("plugin")}getState(e){return e[this.key]}}const mi=Object.create(null);function Ta(n){return n in mi?n+"$"+ ++mi[n]:(mi[n]=0,n+"$")}class me{constructor(e="key"){this.key=Ta(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const oe=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},xn=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let No=null;const He=function(n,e,t){let r=No||(No=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},Rt=function(n,e,t,r){return t&&(Mo(n,e,t,r,-1)||Mo(n,e,t,r,1))},Sd=/^(img|br|input|textarea|hr)$/i;function Mo(n,e,t,r,i){for(;;){if(n==t&&e==r)return!0;if(e==(i<0?0:Be(n))){let s=n.parentNode;if(!s||s.nodeType!=1||ks(n)||Sd.test(n.nodeName)||n.contentEditable=="false")return!1;e=oe(n)+(i<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[e+(i<0?-1:0)],n.contentEditable=="false")return!1;e=i<0?Be(n):0}else return!1}}function Be(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function vd(n,e,t){for(let r=e==0,i=e==Be(n);r||i;){if(n==t)return!0;let s=oe(n);if(n=n.parentNode,!n)return!1;r=r&&s==0,i=i&&s==Be(n)}}function ks(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const Kr=function(n){return n.focusNode&&Rt(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function xt(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function Dd(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Td(n,e,t){if(n.caretPositionFromPoint)try{let r=n.caretPositionFromPoint(e,t);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(n.caretRangeFromPoint){let r=n.caretRangeFromPoint(e,t);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Ie=typeof navigator<"u"?navigator:null,Oo=typeof document<"u"?document:null,ht=Ie&&Ie.userAgent||"",$i=/Edge\/(\d+)/.exec(ht),Na=/MSIE \d/.exec(ht),_i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ht),he=!!(Na||_i||$i),rt=Na?document.documentMode:_i?+_i[1]:$i?+$i[1]:0,De=!he&&/gecko\/(\d+)/i.test(ht);De&&+(/Firefox\/(\d+)/.exec(ht)||[0,0])[1];const Ui=!he&&/Chrome\/(\d+)/.exec(ht),re=!!Ui,Nd=Ui?+Ui[1]:0,le=!he&&!!Ie&&/Apple Computer/.test(Ie.vendor),Xt=le&&(/Mobile\/\w+/.test(ht)||!!Ie&&Ie.maxTouchPoints>2),ke=Xt||(Ie?/Mac/.test(Ie.platform):!1),Md=Ie?/Win/.test(Ie.platform):!1,Ee=/Android \d/.test(ht),Nn=!!Oo&&"webkitFontSmoothing"in Oo.documentElement.style,Od=Nn?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Bd(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function qe(n,e){return typeof n=="number"?n:n[e]}function Rd(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function Bo(n,e,t){let r=n.someProp("scrollThreshold")||0,i=n.someProp("scrollMargin")||5,s=n.dom.ownerDocument;for(let o=t||n.dom;o;o=xn(o)){if(o.nodeType!=1)continue;let l=o,a=l==s.body,u=a?Bd(s):Rd(l),c=0,d=0;if(e.top<u.top+qe(r,"top")?d=-(u.top-e.top+qe(i,"top")):e.bottom>u.bottom-qe(r,"bottom")&&(d=e.bottom-e.top>u.bottom-u.top?e.top+qe(i,"top")-u.top:e.bottom-u.bottom+qe(i,"bottom")),e.left<u.left+qe(r,"left")?c=-(u.left-e.left+qe(i,"left")):e.right>u.right-qe(r,"right")&&(c=e.right-u.right+qe(i,"right")),c||d)if(a)s.defaultView.scrollBy(c,d);else{let h=l.scrollLeft,f=l.scrollTop;d&&(l.scrollTop+=d),c&&(l.scrollLeft+=c);let p=l.scrollLeft-h,m=l.scrollTop-f;e={left:e.left-p,top:e.top-m,right:e.right-p,bottom:e.bottom-m}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(o).position))break}}function Ld(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,i;for(let s=(e.left+e.right)/2,o=t+1;o<Math.min(innerHeight,e.bottom);o+=5){let l=n.root.elementFromPoint(s,o);if(!l||l==n.dom||!n.dom.contains(l))continue;let a=l.getBoundingClientRect();if(a.top>=t-20){r=l,i=a.top;break}}return{refDOM:r,refTop:i,stack:Ma(n.dom)}}function Ma(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=xn(r));return e}function Id({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;Oa(t,r==0?0:r-e)}function Oa(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:i,left:s}=n[t];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=s&&(r.scrollLeft=s)}}let zt=null;function Pd(n){if(n.setActive)return n.setActive();if(zt)return n.focus(zt);let e=Ma(n);n.focus(zt==null?{get preventScroll(){return zt={preventScroll:!0},!0}}:void 0),zt||(zt=!1,Oa(e,0))}function Ba(n,e){let t,r=2e8,i,s=0,o=e.top,l=e.top,a,u;for(let c=n.firstChild,d=0;c;c=c.nextSibling,d++){let h;if(c.nodeType==1)h=c.getClientRects();else if(c.nodeType==3)h=He(c).getClientRects();else continue;for(let f=0;f<h.length;f++){let p=h[f];if(p.top<=o&&p.bottom>=l){o=Math.max(p.bottom,o),l=Math.min(p.top,l);let m=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(m<r){t=c,r=m,i=m&&t.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,c.nodeType==1&&m&&(s=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!a&&p.left<=e.left&&p.right>=e.left&&(a=c,u={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!t&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(s=d+1)}}return!t&&a&&(t=a,i=u,r=0),t&&t.nodeType==3?Fd(t,i):!t||r&&t.nodeType==1?{node:n,offset:s}:Ba(t,i)}function Fd(n,e){let t=n.nodeValue.length,r=document.createRange();for(let i=0;i<t;i++){r.setEnd(n,i+1),r.setStart(n,i);let s=Je(r,1);if(s.top!=s.bottom&&xs(e,s))return{node:n,offset:i+(e.left>=(s.left+s.right)/2?1:0)}}return{node:n,offset:0}}function xs(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function qd(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function zd(n,e,t){let{node:r,offset:i}=Ba(e,t),s=-1;if(r.nodeType==1&&!r.firstChild){let o=r.getBoundingClientRect();s=o.left!=o.right&&t.left>(o.left+o.right)/2?1:-1}return n.docView.posFromDOM(r,i,s)}function Vd(n,e,t,r){let i=-1;for(let s=e,o=!1;s!=n.dom;){let l=n.docView.nearestDesc(s,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!o||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!o&&(o=!0,a.left>r.left||a.top>r.top?i=l.posBefore:(a.right<r.left||a.bottom<r.top)&&(i=l.posAfter)),!l.contentDOM&&i<0&&!l.node.isText)return(l.node.isBlock?r.top<(a.top+a.bottom)/2:r.left<(a.left+a.right)/2)?l.posBefore:l.posAfter}s=l.dom.parentNode}return i>-1?i:n.docView.posFromDOM(e,t,-1)}function Ra(n,e,t){let r=n.childNodes.length;if(r&&t.top<t.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-t.top)/(t.bottom-t.top))-2)),s=i;;){let o=n.childNodes[s];if(o.nodeType==1){let l=o.getClientRects();for(let a=0;a<l.length;a++){let u=l[a];if(xs(e,u))return Ra(o,e,u)}}if((s=(s+1)%r)==i)break}return n}function Hd(n,e){let t=n.dom.ownerDocument,r,i=0,s=Td(t,e.left,e.top);s&&({node:r,offset:i}=s);let o=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),l;if(!o||!n.dom.contains(o.nodeType!=1?o.parentNode:o)){let u=n.dom.getBoundingClientRect();if(!xs(e,u)||(o=Ra(n.dom,e,u),!o))return null}if(le)for(let u=o;r&&u;u=xn(u))u.draggable&&(r=void 0);if(o=qd(o,e),r){if(De&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let c=r.childNodes[i],d;c.nodeName=="IMG"&&(d=c.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&i++}let u;Nn&&i&&r.nodeType==1&&(u=r.childNodes[i-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&i--,r==n.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=n.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(l=Vd(n,r,i,e))}l==null&&(l=zd(n,o,e));let a=n.docView.nearestDesc(o,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function Ro(n){return n.top<n.bottom||n.left<n.right}function Je(n,e){let t=n.getClientRects();if(t.length){let r=t[e<0?0:t.length-1];if(Ro(r))return r}return Array.prototype.find.call(t,Ro)||n.getBoundingClientRect()}const $d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function La(n,e,t){let{node:r,offset:i,atom:s}=n.docView.domFromPos(e,t<0?-1:1),o=Nn||De;if(r.nodeType==3)if(o&&($d.test(r.nodeValue)||(t<0?!i:i==r.nodeValue.length))){let a=Je(He(r,i,i),t);if(De&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let u=Je(He(r,i-1,i-1),-1);if(u.top==a.top){let c=Je(He(r,i,i+1),-1);if(c.top!=a.top)return on(c,c.left<u.left)}}return a}else{let a=i,u=i,c=t<0?1:-1;return t<0&&!i?(u++,c=-1):t>=0&&i==r.nodeValue.length?(a--,c=1):t<0?a--:u++,on(Je(He(r,a,u),c),c<0)}if(!n.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&i&&(t<0||i==Be(r))){let a=r.childNodes[i-1];if(a.nodeType==1)return gi(a.getBoundingClientRect(),!1)}if(s==null&&i<Be(r)){let a=r.childNodes[i];if(a.nodeType==1)return gi(a.getBoundingClientRect(),!0)}return gi(r.getBoundingClientRect(),t>=0)}if(s==null&&i&&(t<0||i==Be(r))){let a=r.childNodes[i-1],u=a.nodeType==3?He(a,Be(a)-(o?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(u)return on(Je(u,1),!1)}if(s==null&&i<Be(r)){let a=r.childNodes[i];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let u=a?a.nodeType==3?He(a,0,o?0:1):a.nodeType==1?a:null:null;if(u)return on(Je(u,-1),!0)}return on(Je(r.nodeType==3?He(r):r,-t),t>=0)}function on(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function gi(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function Ia(n,e,t){let r=n.state,i=n.root.activeElement;r!=e&&n.updateState(e),i!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),i!=n.dom&&i&&i.focus()}}function _d(n,e,t){let r=e.selection,i=t=="up"?r.$from:r.$to;return Ia(n,e,()=>{let{node:s}=n.docView.domFromPos(i.pos,t=="up"?-1:1);for(;;){let l=n.docView.nearestDesc(s,!0);if(!l)break;if(l.node.isBlock){s=l.contentDOM||l.dom;break}s=l.dom.parentNode}let o=La(n,i.pos,1);for(let l=s.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=He(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;u<a.length;u++){let c=a[u];if(c.bottom>c.top+1&&(t=="up"?o.top-c.top>(c.bottom-o.top)*2:c.bottom-o.bottom>(o.bottom-c.top)*2))return!1}}return!0})}const Ud=/[\u0590-\u08ac]/;function jd(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,s=!i,o=i==r.parent.content.size,l=n.domSelection();return!Ud.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?s:o:Ia(n,e,()=>{let{focusNode:a,focusOffset:u,anchorNode:c,anchorOffset:d}=n.domSelectionRange(),h=l.caretBidiLevel;l.modify("move",t,"character");let f=r.depth?n.docView.domAfterPos(r.before()):n.dom,{focusNode:p,focusOffset:m}=n.domSelectionRange(),g=p&&!f.contains(p.nodeType==1?p:p.parentNode)||a==p&&u==m;try{l.collapse(c,d),a&&(a!=c||u!=d)&&l.extend&&l.extend(a,u)}catch{}return h!=null&&(l.caretBidiLevel=h),g})}let Lo=null,Io=null,Po=!1;function Wd(n,e,t){return Lo==e&&Io==t?Po:(Lo=e,Io=t,Po=t=="up"||t=="down"?_d(n,e,t):jd(n,e,t))}const we=0,Fo=1,At=2,Pe=3;class Mn{constructor(e,t,r,i){this.parent=e,this.children=t,this.dom=r,this.contentDOM=i,this.dirty=we,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let i=this.children[t];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let s,o;if(e==this.contentDOM)s=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.previousSibling}for(;s&&!((o=s.pmViewDesc)&&o.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(o)+o.size:this.posAtStart}else{let s,o;if(e==this.contentDOM)s=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.nextSibling}for(;s&&!((o=s.pmViewDesc)&&o.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(o):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=t>oe(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let s=e;;s=s.parentNode){if(s==this.dom){i=!1;break}if(s.previousSibling)break}if(i==null&&t==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){i=!0;break}if(s.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,i=e;i;i=i.parentNode){let s=this.getDesc(i),o;if(s&&(!t||s.node))if(r&&(o=s.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))r=!1;else return s}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let i=e;i;i=i.parentNode){let s=this.getDesc(i);if(s)return s.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let i=this.children[t],s=r+i.size;if(r==e&&s!=r){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<s)return i.descAt(e-r-i.border);r=s}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let s=0;r<this.children.length;r++){let o=this.children[r],l=s+o.size;if(l>e||o instanceof Fa){i=e-s;break}s=l}if(i)return this.children[r].domFromPos(i-this.children[r].border,t);for(let s;r&&!(s=this.children[r-1]).size&&s instanceof Pa&&s.side>=0;r--);if(t<=0){let s,o=!0;for(;s=r?this.children[r-1]:null,!(!s||s.dom.parentNode==this.contentDOM);r--,o=!1);return s&&t&&o&&!s.border&&!s.domAtom?s.domFromPos(s.size,t):{node:this.contentDOM,offset:s?oe(s.dom)+1:0}}else{let s,o=!0;for(;s=r<this.children.length?this.children[r]:null,!(!s||s.dom.parentNode==this.contentDOM);r++,o=!1);return s&&o&&!s.border&&!s.domAtom?s.domFromPos(0,t):{node:this.contentDOM,offset:s?oe(s.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,s=-1;for(let o=r,l=0;;l++){let a=this.children[l],u=o+a.size;if(i==-1&&e<=u){let c=o+a.border;if(e>=c&&t<=u-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,c);e=o;for(let d=l;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){i=oe(h.dom)+1;break}e-=h.size}i==-1&&(i=0)}if(i>-1&&(u>t||l==this.children.length-1)){t=u;for(let c=l+1;c<this.children.length;c++){let d=this.children[c];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){s=oe(d.dom);break}t+=d.size}s==-1&&(s=this.contentDOM.childNodes.length);break}o=u}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:s}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(t.nodeType!=1||r==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,i=!1){let s=Math.min(e,t),o=Math.max(e,t);for(let h=0,f=0;h<this.children.length;h++){let p=this.children[h],m=f+p.size;if(s>f&&o<m)return p.setSelection(e-f-p.border,t-f-p.border,r,i);f=m}let l=this.domFromPos(e,e?-1:1),a=t==e?l:this.domFromPos(t,t?-1:1),u=r.getSelection(),c=!1;if((De||le)&&e==t){let{node:h,offset:f}=l;if(h.nodeType==3){if(c=!!(f&&h.nodeValue[f-1]==`
@@ -1,2 +1,2 @@
1
- const __vite__fileDeps=["./BaXP97h1.js","./D0skW1jq.js","./entry.6uu-XYG8.css","./C8D7ZQoo.js","./Video.DgABShGy.css","./BmApFhTv.js","./BLXy3y_A.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{e as Te,k as P,a8 as J,n as Be,aU as Re,b_ as Ee,aP as ot,$ as $e,o as Et,b as st,eR as Lt,r as fe,a9 as Z,cp as Tt,p as x,fO as At,fz as Pt,S as Ct,c3 as Mt,bF as Ot,bJ as Dt,ds as Ft,c7 as zt,a1 as Nt,l as R,m as $,z as Q,c6 as rt,aB as me,aC as ge,aT as ve,ay as it,bA as ct,b1 as ue,aS as Ne,aD as Ae,aA as Pe,aW as Vt,aV as jt,aX as Bt,bx as Rt,by as $t,aZ as Gt,aQ as Ht}from"./D0skW1jq.js";import{_ as Ut}from"./DEWywo6s.js";import{_ as qt}from"./BDWmjfg6.js";import{u as Kt}from"./Dp03Bz--.js";import{u as Qt}from"./ugJET5xs.js";import{i as lt,a as at,b as ut,c as Jt}from"./C00NHga8.js";import{u as Xt}from"./DXGgVe0f.js";import"./D7y3R7Ve.js";import"./3fdRvCCy.js";import"./TGNXCWG6.js";import"./clwBgde6.js";import"./DRPzkOuH.js";import"./DKgzeeDD.js";import"./boyBAVNN.js";import"./D5LgkGGj.js";import"./CDbcx2MC.js";import"./DOx4axN9.js";import"./Wfb3YMK3.js";import"./BnbA25UM.js";import"./DglPsyiE.js";import"./CJL5s59L.js";import"./BQQOEPN4.js";import"./BipOdpcd.js";import"./DFA4S6bS.js";import"./CHRxsLpF.js";import"./CY-umpv2.js";import"./DSo-2nFJ.js";import"./D-3pY83G.js";import"./D64AfRxx.js";import"./CxsGCxm3.js";import"./C0-Qcoum.js";const Yt=Te({__name:"Item",props:{class:{}},setup(e){const t=e;return(s,r)=>(P(),J("div",{role:"group","aria-roledescription":"slide",class:Re([{[t.class]:t.class},"min-w-0 shrink-0 flex justify-center items-center embla__slide h-full grow-0 basis-full"])},[Be(s.$slots,"default")],2))}});function Zt(e){return Object.prototype.toString.call(e)==="[object Object]"}function ft(e){return Zt(e)||Array.isArray(e)}function Wt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ge(e,t){const s=Object.keys(e),r=Object.keys(t);if(s.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),n=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==n?!1:s.every(o=>{const l=e[o],c=t[o];return typeof l=="function"?`${l}`==`${c}`:!ft(l)||!ft(c)?l===c:Ge(l,c)})}function dt(e){return e.concat().sort((t,s)=>t.name>s.name?1:-1).map(t=>t.options)}function en(e,t){if(e.length!==t.length)return!1;const s=dt(e),r=dt(t);return s.every((i,n)=>{const o=r[n];return Ge(i,o)})}function He(e){return typeof e=="number"}function Ve(e){return typeof e=="string"}function Ue(e){return typeof e=="boolean"}function pt(e){return Object.prototype.toString.call(e)==="[object Object]"}function F(e){return Math.abs(e)}function qe(e){return Math.sign(e)}function xe(e,t){return F(e-t)}function tn(e,t){if(e===0||t===0||F(e)<=F(t))return 0;const s=xe(F(e),F(t));return F(s/e)}function Se(e){return _e(e).map(Number)}function te(e){return e[ke(e)]}function ke(e){return Math.max(0,e.length-1)}function Ke(e,t){return t===ke(e)}function mt(e,t=0){return Array.from(Array(e),(s,r)=>t+r)}function _e(e){return Object.keys(e)}function gt(e,t){return[e,t].reduce((s,r)=>(_e(r).forEach(i=>{const n=s[i],o=r[i],l=pt(n)&&pt(o);s[i]=l?gt(n,o):o}),s),{})}function je(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function nn(e,t){const s={start:r,center:i,end:n};function r(){return 0}function i(c){return n(c)/2}function n(c){return t-c}function o(c,u){return Ve(e)?s[e](c):e(t,c,u)}return{measure:o}}function we(){let e=[];function t(i,n,o,l={passive:!0}){let c;if("addEventListener"in i)i.addEventListener(n,o,l),c=()=>i.removeEventListener(n,o,l);else{const u=i;u.addListener(o),c=()=>u.removeListener(o)}return e.push(c),r}function s(){e=e.filter(i=>i())}const r={add:t,clear:s};return r}function on(e,t,s,r){const i=we(),n=1e3/60;let o=null,l=0,c=0;function u(){i.add(e,"visibilitychange",()=>{e.hidden&&f()})}function h(){y(),i.clear()}function a(v){if(!c)return;o||(o=v);const d=v-o;for(o=v,l+=d;l>=n;)s(n),l-=n;const b=l/n;r(b),c&&t.requestAnimationFrame(a)}function g(){c||(c=t.requestAnimationFrame(a))}function y(){t.cancelAnimationFrame(c),o=null,l=0,c=0}function f(){o=null,l=0}return{init:u,destroy:h,start:g,stop:y,update:()=>s(n),render:r}}function sn(e,t){const s=t==="rtl",r=e==="y",i=r?"y":"x",n=r?"x":"y",o=!r&&s?-1:1,l=h(),c=a();function u(f){const{height:p,width:v}=f;return r?p:v}function h(){return r?"top":s?"right":"left"}function a(){return r?"bottom":s?"left":"right"}function g(f){return f*o}return{scroll:i,cross:n,startEdge:l,endEdge:c,measureSize:u,direction:g}}function he(e=0,t=0){const s=F(e-t);function r(u){return u<e}function i(u){return u>t}function n(u){return r(u)||i(u)}function o(u){return n(u)?r(u)?e:t:u}function l(u){return s?u-s*Math.ceil((u-t)/s):u}return{length:s,max:t,min:e,constrain:o,reachedAny:n,reachedMax:i,reachedMin:r,removeOffset:l}}function ht(e,t,s){const{constrain:r}=he(0,e),i=e+1;let n=o(t);function o(g){return s?F((i+g)%i):r(g)}function l(){return n}function c(g){return n=o(g),a}function u(g){return h().set(l()+g)}function h(){return ht(e,l(),s)}const a={get:l,set:c,add:u,clone:h};return a}function rn(e,t,s,r,i,n,o,l,c,u,h,a,g,y,f,p,v,d,b){const{cross:_,direction:E}=e,O=["INPUT","SELECT","TEXTAREA"],A={passive:!1},I=we(),L=we(),T=he(50,225).constrain(y.measure(20)),C={mouse:300,touch:400},m={mouse:500,touch:600},k=f?43:25;let B=!1,V=0,D=0,X=!1,U=!1,q=!1,Y=!1;function ne(S){if(!b)return;function M(G){(Ue(b)||b(S,G))&&H(G)}const j=t;I.add(j,"dragstart",G=>G.preventDefault(),A).add(j,"touchmove",()=>{},A).add(j,"touchend",()=>{}).add(j,"touchstart",M).add(j,"mousedown",M).add(j,"touchcancel",z).add(j,"contextmenu",z).add(j,"click",pe,!0)}function K(){I.clear(),L.clear()}function oe(){const S=Y?s:t;L.add(S,"touchmove",w,A).add(S,"touchend",z).add(S,"mousemove",w,A).add(S,"mouseup",z)}function W(S){const M=S.nodeName||"";return O.includes(M)}function de(){return(f?m:C)[Y?"mouse":"touch"]}function se(S,M){const j=a.add(qe(S)*-1),G=h.byDistance(S,!f).distance;return f||F(S)<T?G:v&&M?G*.5:h.byIndex(j.get(),0).distance}function H(S){const M=je(S,r);Y=M,q=f&&M&&!S.buttons&&B,B=xe(i.get(),o.get())>=2,!(M&&S.button!==0)&&(W(S.target)||(X=!0,n.pointerDown(S),u.useFriction(0).useDuration(0),i.set(o),oe(),V=n.readPoint(S),D=n.readPoint(S,_),g.emit("pointerDown")))}function w(S){if(!je(S,r)&&S.touches.length>=2)return z(S);const j=n.readPoint(S),G=n.readPoint(S,_),re=xe(j,V),ce=xe(G,D);if(!U&&!Y&&(!S.cancelable||(U=re>ce,!U)))return z(S);const ie=n.pointerMove(S);re>p&&(q=!0),u.useFriction(.3).useDuration(.75),l.start(),i.add(E(ie)),S.preventDefault()}function z(S){const j=h.byDistance(0,!1).index!==a.get(),G=n.pointerUp(S)*de(),re=se(E(G),j),ce=tn(G,re),ie=k-10*ce,le=d+ce/50;U=!1,X=!1,L.clear(),u.useDuration(ie).useFriction(le),c.distance(re,!f),Y=!1,g.emit("pointerUp")}function pe(S){q&&(S.stopPropagation(),S.preventDefault(),q=!1)}function ee(){return X}return{init:ne,destroy:K,pointerDown:ee}}function cn(e,t){let r,i;function n(a){return a.timeStamp}function o(a,g){const f=`client${(g||e.scroll)==="x"?"X":"Y"}`;return(je(a,t)?a:a.touches[0])[f]}function l(a){return r=a,i=a,o(a)}function c(a){const g=o(a)-o(i),y=n(a)-n(r)>170;return i=a,y&&(r=a),g}function u(a){if(!r||!i)return 0;const g=o(i)-o(r),y=n(a)-n(r),f=n(a)-n(i)>170,p=g/y;return y&&!f&&F(p)>.1?p:0}return{pointerDown:l,pointerMove:c,pointerUp:u,readPoint:o}}function ln(){function e(s){const{offsetTop:r,offsetLeft:i,offsetWidth:n,offsetHeight:o}=s;return{top:r,right:i+n,bottom:r+o,left:i,width:n,height:o}}return{measure:e}}function an(e){function t(r){return e*(r/100)}return{measure:t}}function un(e,t,s,r,i,n,o){let l,c,u=[],h=!1;function a(p){return i.measureSize(o.measure(p))}function g(p){if(!n)return;c=a(e),u=r.map(a);function v(b){for(const _ of b){const E=_.target===e,O=r.indexOf(_.target),A=E?c:u[O],I=a(E?e:r[O]);if(F(I-A)>=.5){s.requestAnimationFrame(()=>{p.reInit(),t.emit("resize")});break}}}l=new ResizeObserver(b=>{h||(Ue(n)||n(p,b))&&v(b)}),[e].concat(r).forEach(b=>l.observe(b))}function y(){l&&l.disconnect(),h=!0}return{init:g,destroy:y}}function fn(e,t,s,r,i,n){let o=0,l=0,c=i,u=n,h=e.get(),a=0;function g(A){const I=A/1e3,L=c*I,T=r.get()-e.get(),C=!c;let m=0;return C?(o=0,s.set(r),e.set(r),m=T):(s.set(e),o+=T/L,o*=u,h+=o,e.add(o*I),m=h-a),l=qe(m),a=h,O}function y(){const A=r.get()-t.get();return F(A)<.001}function f(){return c}function p(){return l}function v(){return o}function d(){return _(i)}function b(){return E(n)}function _(A){return c=A,O}function E(A){return u=A,O}const O={direction:p,duration:f,velocity:v,seek:g,settled:y,useBaseFriction:b,useBaseDuration:d,useFriction:E,useDuration:_};return O}function dn(e,t,s,r,i){const n=i.measure(10),o=i.measure(50),l=he(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(s.get())||!e.reachedAny(t.get()))}function h(y){if(!u())return;const f=e.reachedMin(t.get())?"min":"max",p=F(e[f]-t.get()),v=s.get()-t.get(),d=l.constrain(p/o);s.subtract(v*d),!y&&F(v)<n&&(s.set(e.constrain(s.get())),r.useDuration(25).useBaseFriction())}function a(y){c=!y}return{shouldConstrain:u,constrain:h,toggleActive:a}}function pn(e,t,s,r,i){const n=he(-t+e,0),o=a(),l=h(),c=g();function u(f,p){return xe(f,p)<1}function h(){const f=o[0],p=te(o),v=o.lastIndexOf(f),d=o.indexOf(p)+1;return he(v,d)}function a(){return s.map((f,p)=>{const{min:v,max:d}=n,b=n.constrain(f),_=!p,E=Ke(s,p);return _?d:E||u(v,b)?v:u(d,b)?d:b}).map(f=>parseFloat(f.toFixed(3)))}function g(){if(t<=e+i)return[n.max];if(r==="keepSnaps")return o;const{min:f,max:p}=l;return o.slice(f,p)}return{snapsContained:c,scrollContainLimit:l}}function mn(e,t,s){const r=t[0],i=s?r-e:te(t);return{limit:he(i,r)}}function gn(e,t,s,r){const n=t.min+.1,o=t.max+.1,{reachedMin:l,reachedMax:c}=he(n,o);function u(g){return g===1?c(s.get()):g===-1?l(s.get()):!1}function h(g){if(!u(g))return;const y=e*(g*-1);r.forEach(f=>f.add(y))}return{loop:h}}function hn(e){const{max:t,length:s}=e;function r(n){const o=n-t;return s?o/-s:0}return{get:r}}function vn(e,t,s,r,i){const{startEdge:n,endEdge:o}=e,{groupSlides:l}=i,c=a().map(t.measure),u=g(),h=y();function a(){return l(r).map(p=>te(p)[o]-p[0][n]).map(F)}function g(){return r.map(p=>s[n]-p[n]).map(p=>-F(p))}function y(){return l(u).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:u,snapsAligned:h}}function yn(e,t,s,r,i,n){const{groupSlides:o}=i,{min:l,max:c}=r,u=h();function h(){const g=o(n),y=!e||t==="keepSnaps";return s.length===1?[n]:y?g:g.slice(l,c).map((f,p,v)=>{const d=!p,b=Ke(v,p);if(d){const _=te(v[0])+1;return mt(_)}if(b){const _=ke(n)-te(v)[0]+1;return mt(_,te(v)[0])}return f})}return{slideRegistry:u}}function bn(e,t,s,r,i){const{reachedAny:n,removeOffset:o,constrain:l}=r;function c(f){return f.concat().sort((p,v)=>F(p)-F(v))[0]}function u(f){const p=e?o(f):l(f),v=t.map((b,_)=>({diff:h(b-p,0),index:_})).sort((b,_)=>F(b.diff)-F(_.diff)),{index:d}=v[0];return{index:d,distance:p}}function h(f,p){const v=[f,f+s,f-s];if(!e)return f;if(!p)return c(v);const d=v.filter(b=>qe(b)===p);return d.length?c(d):te(v)-s}function a(f,p){const v=t[f]-i.get(),d=h(v,p);return{index:f,distance:d}}function g(f,p){const v=i.get()+f,{index:d,distance:b}=u(v),_=!e&&n(v);if(!p||_)return{index:d,distance:f};const E=t[d]-b,O=f+h(E,0);return{index:d,distance:O}}return{byDistance:g,byIndex:a,shortcut:h}}function xn(e,t,s,r,i,n,o){function l(a){const g=a.distance,y=a.index!==t.get();n.add(g),g&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(s.set(t.get()),t.set(a.index),o.emit("select"))}function c(a,g){const y=i.byDistance(a,g);l(y)}function u(a,g){const y=t.clone().set(a),f=i.byIndex(y.get(),g);l(f)}return{distance:c,index:u}}function Sn(e,t,s,r,i,n,o){let l=0;function c(){n.add(document,"keydown",u,!1),t.forEach(h)}function u(g){g.code==="Tab"&&(l=new Date().getTime())}function h(g){const y=()=>{if(new Date().getTime()-l>10)return;e.scrollLeft=0;const v=t.indexOf(g),d=s.findIndex(b=>b.includes(v));He(d)&&(i.useDuration(0),r.index(d,0),o.emit("slideFocus"))};n.add(g,"focus",y,{passive:!0,capture:!0})}return{init:c}}function be(e){let t=e;function s(){return t}function r(c){t=o(c)}function i(c){t+=o(c)}function n(c){t-=o(c)}function o(c){return He(c)?c:c.get()}return{get:s,set:r,add:i,subtract:n}}function vt(e,t){const s=e.scroll==="x"?n:o,r=t.style;let i=!1;function n(a){return`translate3d(${a}px,0px,0px)`}function o(a){return`translate3d(0px,${a}px,0px)`}function l(a){i||(r.transform=s(e.direction(a)))}function c(a){i=!a}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function _n(e,t,s,r,i,n,o,l,c){const h=Se(i),a=Se(i).reverse(),g=d().concat(b());function y(I,L){return I.reduce((T,C)=>T-i[C],L)}function f(I,L){return I.reduce((T,C)=>y(T,L)>0?T.concat([C]):T,[])}function p(I){return n.map((L,T)=>({start:L-r[T]+.5+I,end:L+t-.5+I}))}function v(I,L,T){const C=p(L);return I.map(m=>{const k=T?0:-s,B=T?s:0,V=T?"end":"start",D=C[m][V];return{index:m,loopPoint:D,slideLocation:be(-1),translate:vt(e,c[m]),target:()=>l.get()>D?k:B}})}function d(){const I=o[0],L=f(a,I);return v(L,s,!1)}function b(){const I=t-o[0]-1,L=f(h,I);return v(L,-s,!0)}function _(){return g.every(({index:I})=>{const L=h.filter(T=>T!==I);return y(L,t)<=.1})}function E(){g.forEach(I=>{const{target:L,translate:T,slideLocation:C}=I,m=L();m!==C.get()&&(T.to(m),C.set(m))})}function O(){g.forEach(I=>I.translate.clear())}return{canLoop:_,clear:O,loop:E,loopPoints:g}}function wn(e,t,s){let r,i=!1;function n(c){if(!s)return;function u(h){for(const a of h)if(a.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(h=>{i||(Ue(s)||s(c,h))&&u(h)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:n,destroy:o}}function kn(e,t,s,r){const i={};let n=null,o=null,l,c=!1;function u(){l=new IntersectionObserver(f=>{c||(f.forEach(p=>{const v=t.indexOf(p.target);i[v]=p}),n=null,o=null,s.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(f=>l.observe(f))}function h(){l&&l.disconnect(),c=!0}function a(f){return _e(i).reduce((p,v)=>{const d=parseInt(v),{isIntersecting:b}=i[d];return(f&&b||!f&&!b)&&p.push(d),p},[])}function g(f=!0){if(f&&n)return n;if(!f&&o)return o;const p=a(f);return f&&(n=p),f||(o=p),p}return{init:u,destroy:h,get:g}}function In(e,t,s,r,i,n){const{measureSize:o,startEdge:l,endEdge:c}=e,u=s[0]&&i,h=f(),a=p(),g=s.map(o),y=v();function f(){if(!u)return 0;const b=s[0];return F(t[l]-b[l])}function p(){if(!u)return 0;const b=n.getComputedStyle(te(r));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return s.map((b,_,E)=>{const O=!_,A=Ke(E,_);return O?g[_]+h:A?g[_]+a:E[_+1][l]-b[l]}).map(F)}return{slideSizes:g,slideSizesWithGaps:y,startGap:h,endGap:a}}function En(e,t,s,r,i,n,o,l,c){const{startEdge:u,endEdge:h,direction:a}=e,g=He(s);function y(d,b){return Se(d).filter(_=>_%b===0).map(_=>d.slice(_,_+b))}function f(d){return d.length?Se(d).reduce((b,_,E)=>{const O=te(b)||0,A=O===0,I=_===ke(d),L=i[u]-n[O][u],T=i[u]-n[_][h],C=!r&&A?a(o):0,m=!r&&I?a(l):0,k=F(T-m-(L+C));return E&&k>t+c&&b.push(_),I&&b.push(d.length),b},[]).map((b,_,E)=>{const O=Math.max(E[_-1]||0);return d.slice(O,b)}):[]}function p(d){return g?y(d,s):f(d)}return{groupSlides:p}}function Ln(e,t,s,r,i,n,o){const{align:l,axis:c,direction:u,startIndex:h,loop:a,duration:g,dragFree:y,dragThreshold:f,inViewThreshold:p,slidesToScroll:v,skipSnaps:d,containScroll:b,watchResize:_,watchSlides:E,watchDrag:O}=n,A=2,I=ln(),L=I.measure(t),T=s.map(I.measure),C=sn(c,u),m=C.measureSize(L),k=an(m),B=nn(l,m),V=!a&&!!b,D=a||!!b,{slideSizes:X,slideSizesWithGaps:U,startGap:q,endGap:Y}=In(C,L,T,s,D,i),ne=En(C,m,v,a,L,T,q,Y,A),{snaps:K,snapsAligned:oe}=vn(C,B,L,T,ne),W=-te(K)+te(U),{snapsContained:de,scrollContainLimit:se}=pn(m,W,oe,b,A),H=V?de:oe,{limit:w}=mn(W,H,a),z=ht(ke(H),h,a),pe=z.clone(),ee=Se(s),N=({dragHandler:ae,scrollBody:De,scrollBounds:Fe,options:{loop:Ie}},ze)=>{Ie||Fe.constrain(ae.pointerDown()),De.seek(ze)},S=({scrollBody:ae,translate:De,location:Fe,offsetLocation:Ie,scrollLooper:ze,slideLooper:xt,dragHandler:St,animation:_t,eventHandler:Ze,scrollBounds:wt,options:{loop:We}},et)=>{const tt=ae.settled(),kt=!wt.shouldConstrain(),nt=We?tt:tt&&kt;nt&&!St.pointerDown()&&(_t.stop(),Ze.emit("settle")),nt||Ze.emit("scroll");const It=Fe.get()*et+ce.get()*(1-et);Ie.set(It),We&&(ze.loop(ae.direction()),xt.loop()),De.to(Ie.get())},M=on(r,i,ae=>N(Oe,ae),ae=>S(Oe,ae)),j=.68,G=H[z.get()],re=be(G),ce=be(G),ie=be(G),le=be(G),ye=fn(re,ie,ce,le,g,j),Ce=bn(a,H,W,w,le),Me=xn(M,z,pe,ye,Ce,le,o),Je=hn(w),Xe=we(),yt=kn(t,s,o,p),{slideRegistry:Ye}=yn(V,b,H,se,ne,ee),bt=Sn(e,s,Ye,Me,ye,Xe,o),Oe={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:L,slideRects:T,animation:M,axis:C,dragHandler:rn(C,e,r,i,le,cn(C,i),re,M,Me,ye,Ce,z,o,k,y,f,d,j,O),eventStore:Xe,percentOfView:k,index:z,indexPrevious:pe,limit:w,location:re,offsetLocation:ie,previousLocation:ce,options:n,resizeHandler:un(t,o,i,s,C,_,I),scrollBody:ye,scrollBounds:dn(w,ie,le,ye,k),scrollLooper:gn(W,w,ie,[re,ie,ce,le]),scrollProgress:Je,scrollSnapList:H.map(Je.get),scrollSnaps:H,scrollTarget:Ce,scrollTo:Me,slideLooper:_n(C,m,W,X,U,K,H,ie,s),slideFocus:bt,slidesHandler:wn(t,o,E),slidesInView:yt,slideIndexes:ee,slideRegistry:Ye,slidesToScroll:ne,target:le,translate:vt(C,t)};return Oe}function Tn(){let e={},t;function s(u){t=u}function r(u){return e[u]||[]}function i(u){return r(u).forEach(h=>h(t,u)),c}function n(u,h){return e[u]=r(u).concat([h]),c}function o(u,h){return e[u]=r(u).filter(a=>a!==h),c}function l(){e={}}const c={init:s,emit:i,off:o,on:n,clear:l};return c}const An={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function Pn(e){function t(n,o){return gt(n,o||{})}function s(n){const o=n.breakpoints||{},l=_e(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,u)=>t(c,u),{});return t(n,l)}function r(n){return n.map(o=>_e(o.breakpoints||{})).reduce((o,l)=>o.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:s,optionsMediaQueries:r}}function Cn(e){let t=[];function s(n,o){return t=o.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(n,e)),o.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(n=>n.destroy())}return{init:s,destroy:r}}function Le(e,t,s){const r=e.ownerDocument,i=r.defaultView,n=Pn(i),o=Cn(n),l=we(),c=Tn(),{mergeOptions:u,optionsAtMedia:h,optionsMediaQueries:a}=n,{on:g,off:y,emit:f}=c,p=m;let v=!1,d,b=u(An,Le.globalOptions),_=u(b),E=[],O,A,I;function L(){const{container:N,slides:S}=_;A=(Ve(N)?e.querySelector(N):N)||e.children[0];const j=Ve(S)?A.querySelectorAll(S):S;I=[].slice.call(j||A.children)}function T(N){const S=Ln(e,A,I,r,i,N,c);if(N.loop&&!S.slideLooper.canLoop()){const M=Object.assign({},N,{loop:!1});return T(M)}return S}function C(N,S){v||(b=u(b,N),_=h(b),E=S||E,L(),d=T(_),a([b,...E.map(({options:M})=>M)]).forEach(M=>l.add(M,"change",m)),_.active&&(d.translate.to(d.location.get()),d.animation.init(),d.slidesInView.init(),d.slideFocus.init(),d.eventHandler.init(ee),d.resizeHandler.init(ee),d.slidesHandler.init(ee),d.options.loop&&d.slideLooper.loop(),A.offsetParent&&I.length&&d.dragHandler.init(ee),O=o.init(ee,E)))}function m(N,S){const M=K();k(),C(u({startIndex:M},N),S),c.emit("reInit")}function k(){d.dragHandler.destroy(),d.eventStore.clear(),d.translate.clear(),d.slideLooper.clear(),d.resizeHandler.destroy(),d.slidesHandler.destroy(),d.slidesInView.destroy(),d.animation.destroy(),o.destroy(),l.clear()}function B(){v||(v=!0,l.clear(),k(),c.emit("destroy"),c.clear())}function V(N,S,M){!_.active||v||(d.scrollBody.useBaseFriction().useDuration(S===!0?0:_.duration),d.scrollTo.index(N,M||0))}function D(N){const S=d.index.add(1).get();V(S,N,-1)}function X(N){const S=d.index.add(-1).get();V(S,N,1)}function U(){return d.index.add(1).get()!==K()}function q(){return d.index.add(-1).get()!==K()}function Y(){return d.scrollSnapList}function ne(){return d.scrollProgress.get(d.location.get())}function K(){return d.index.get()}function oe(){return d.indexPrevious.get()}function W(){return d.slidesInView.get()}function de(){return d.slidesInView.get(!1)}function se(){return O}function H(){return d}function w(){return e}function z(){return A}function pe(){return I}const ee={canScrollNext:U,canScrollPrev:q,containerNode:z,internalEngine:H,destroy:B,off:y,on:g,emit:f,plugins:se,previousScrollSnap:oe,reInit:p,rootNode:w,scrollNext:D,scrollPrev:X,scrollProgress:ne,scrollSnapList:Y,scrollTo:V,selectedScrollSnap:K,slideNodes:pe,slidesInView:W,slidesNotInView:de};return C(t,s),setTimeout(()=>c.emit("init"),0),ee}Le.globalOptions=void 0;function Qe(e={},t=[]){const s=Ee(e),r=Ee(t);let i=s?e.value:e,n=r?t.value:t;const o=ot(),l=ot();function c(){l.value&&l.value.reInit(i,n)}return $e(()=>{!Wt()||!o.value||(Le.globalOptions=Qe.globalOptions,l.value=Le(o.value,i,n))}),Et(()=>{l.value&&l.value.destroy()}),s&&st(e,u=>{Ge(i,u)||(i=u,c())}),r&&st(t,u=>{en(n,u)||(n=u,c())}),[o,l]}Qe.globalOptions=void 0;const[Mn,On]=Lt(({opts:e,orientation:t,plugins:s},r)=>{const[i,n]=Qe({...e,axis:t==="horizontal"?"x":"y"},s);function o(){var a;(a=n.value)==null||a.scrollPrev()}function l(){var a;(a=n.value)==null||a.scrollNext()}const c=fe(!1),u=fe(!1);function h(a){c.value=(a==null?void 0:a.canScrollNext())||!1,u.value=(a==null?void 0:a.canScrollPrev())||!1}return $e(()=>{var a,g,y;n.value&&((a=n.value)==null||a.on("init",h),(g=n.value)==null||g.on("reInit",h),(y=n.value)==null||y.on("select",h),r("init-api",n.value))}),{carouselRef:i,carouselApi:n,canScrollPrev:u,canScrollNext:c,scrollPrev:o,scrollNext:l,orientation:t}});function Dn(){const e=On();if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Fn=Te({inheritAttrs:!1,__name:"Content",props:{class:{}},setup(e){const t=e,{carouselRef:s,orientation:r}=Dn();return(i,n)=>(P(),J("div",{ref_key:"carouselRef",ref:s,class:"overflow-hidden carousel-container"},[Z("div",Tt({class:[{"flex-col":x(r)==="vertical",[t.class]:t.class},"flex embla__container"]},i.$attrs),[Be(i.$slots,"default")],16)],512))}}),zn=Te({__name:"index",props:{opts:{},plugins:{},orientation:{default:"horizontal"},class:{}},emits:["init-api"],setup(e,{expose:t,emit:s}){const r=e,n=Mn(r,s);return t(n),(o,l)=>(P(),J("div",{class:Re([{[r.class]:r.class},"relative embla !focus-visible:outline-none"]),role:"region","aria-roledescription":"carousel",tabindex:"0"},[Be(o.$slots,"default",At(Pt(x(n))))],2))}}),Nn=Ae(()=>Pe(()=>import("./BaXP97h1.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.default||e)),Vn=Ae(()=>Pe(()=>import("./C8D7ZQoo.js"),__vite__mapDeps([3,1,2,4]),import.meta.url).then(e=>e.default||e)),jn=Ae(()=>Pe(()=>import("./BmApFhTv.js"),__vite__mapDeps([5,1,2]),import.meta.url).then(e=>e.default||e)),Bn=Ae(()=>Pe(()=>import("./BLXy3y_A.js"),__vite__mapDeps([6,1,2]),import.meta.url).then(e=>e.default||e)),Rn=e=>(Rt("data-v-c2e7b398"),e=e(),$t(),e),$n={class:"flex w-full h-full"},Gn={class:"keep-open select-none absolute top-5 pointer-events-none inset-x-0 mx-auto group flex items-center justify-center leading-8 inline-block text-center rounded shadow"},Hn={key:0,class:"justify-center w-full h-full flex items-center"},Un={key:4,class:"bg-white h-full flex flex-col justify-center rounded-md gap-1 items-center w-full"},qn={class:"text-gray-800 text-sm"},Kn=Rn(()=>Z("div",{class:"text-white absolute right-2 top-2 cursor-pointer"},null,-1)),Qn={class:"absolute w-full !bottom-2 max-h-18 z-30 flex items-center justify-center"},Jn={class:"flex items-center justify-center"},Xn={key:1,class:"h-full flex items-center h-6 justify-center rounded-md px-2 py-1 border-1 border-gray-200"},Yn={key:2,class:"h-full flex items-center h-6 justify-center rounded-md px-2 py-1 border-1 border-gray-200"},Zn={key:3,class:"h-full flex items-center h-6 justify-center rounded-md px-2 py-1 border-1 border-gray-200"},Wn={class:"absolute keep-open right-2 z-30 bottom-3 transition-all gap-3 transition-ease-in-out !h-6 flex items-center"},eo={class:"flex flex-row items-center py-2.25 px-2.5 bg-gray-50 rounded-lg text-gray-700 mb-4"},to={class:"capitalize text-ellipsis overflow-hidden select-none w-full pl-1.75",style:{wordBreak:"keep-all",whiteSpace:"nowrap",display:"inline"}},no=Te({__name:"Carousel",setup(e){const{selectedFile:t,visibleItems:s,downloadAttachment:r,removeFile:i,renameFile:n,isPublic:o,isReadonly:l,isRenameModalOpen:c}=Xt(),u=Ct(Mt,fe(!1)),{isSharedForm:h}=Kt(),{isUIAllowed:a}=Ot(),g=fe(null),y=fe(),f=fe(),p=fe(),v=Dt({title:"",i:0}),d=fe(!1);function b(m,k){d.value=!0,v.title=m,v.i=k}const _=m=>{i(m),d.value=!1,v.i=0,v.title=""},{getPossibleAttachmentSrc:E}=Qt();Ft(g,"click",m=>{const k=m.target;!k.closest(".keep-open")&&!k.closest(".nc-button")&&!k.closest("img")&&!k.closest("video")&&(t.value=!1)});const O=m=>{!y.value||!f.value||(y.value.scrollTo(m),f.value.scrollTo(m))},A=()=>{if(!y.value||!f.value)return;const m=y.value.selectedScrollSnap();p.value=m,t.value=s.value[m],f.value.scrollTo(m)},I=()=>{!y.value||!f.value||(y.value.scrollPrev(),f.value.scrollPrev())},L=()=>{!y.value||!f.value||(y.value.scrollNext(),f.value.scrollNext())};zt(y,async m=>{var k,B;m&&((k=g.value)==null||k.focus(),(B=f.value)==null||B.on("reInit",A),m.on("select",A),await Gt(()=>{if(!p.value){const V=s.value.findIndex(D=>{var X,U,q;return(X=t.value)!=null&&X.path?(D==null?void 0:D.path)===t.value.path:(U=t.value)!=null&&U.url?(D==null?void 0:D.url)===t.value.url:((q=t.value)==null?void 0:q.title)===(D==null?void 0:D.title)});p.value=V,m.scrollTo(V)}}))}),$e(()=>{document.addEventListener("keydown",T)}),Nt(()=>{document.removeEventListener("keydown",T)});function T(m){var V,D;if(c.value)return;const k=["ArrowLeft","Left","a","A"],B=["ArrowRight","Right","d","D"];if(k.includes(m.key)){m.preventDefault(),(V=y.value)==null||V.scrollPrev();return}B.includes(m.key)&&(m.preventDefault(),(D=y.value)==null||D.scrollNext())}const C=m=>{y.value=m};return(m,k)=>{const B=Vt,V=Nn,D=Vn,X=jn,U=Bn,q=Yt,Y=Fn,ne=zn,K=jt,oe=Bt,W=Ut,de=qt;return P(),R(de,{modelValue:x(t),"onUpdate:modelValue":k[7]||(k[7]=se=>Ee(t)?t.value=se:null),transition:"","z-index":x(u)?1e3:50,class:"bg-black bg-opacity-90"},{default:$(()=>{var se,H;return[Z("div",$n,[x(t)?(P(),J("div",{key:0,ref_key:"container",ref:g,class:"flex w-full overflow-hidden justify-center text-center relative h-screen items-center"},[Q(B,{class:"top-5 !absolute cursor-pointer !z-30 !hover:bg-transparent left-5",size:"xsmall",type:"text",onClick:k[0]||(k[0]=rt(w=>t.value=!1,["stop"]))},{default:$(()=>[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).close),{class:"text-white"}))]),_:1}),Z("div",Gn,[Z("h3",{style:{width:"max-content"},class:"hover:underline pointer-events-auto font-semibold cursor-pointer text-white",onClick:k[1]||(k[1]=rt(w=>x(r)(x(t)),["stop"]))},ve(x(t)&&x(t).title),1)]),Q(ne,{class:"!absolute inset-y-16 inset-x-24 keep-open flex justify-center items-center",onInitApi:C},{default:$(()=>[Q(Y,null,{default:$(()=>[(P(!0),J(it,null,ct(x(s),(w,z)=>(P(),R(q,{key:z},{default:$(()=>[x(p)===z?(P(),J("div",Hn,[("isImage"in m?m.isImage:x(lt))(w.title,w.mimeType)?(P(),R(V,{key:0,class:"nc-attachment-img-wrapper","object-fit":"contain",alt:w.title,srcs:x(E)(w)},null,8,["alt","srcs"])):("isVideo"in m?m.isVideo:x(at))(w.title,w.mimeType)?(P(),R(D,{key:1,class:"flex items-center w-full","mime-type":w.mimeType,title:w.title,src:x(E)(w)},null,8,["mime-type","title","src"])):("isPdf"in m?m.isPdf:x(ut))(w.title,w.mimeType)?(P(),R(X,{key:2,class:"keep-open",src:x(E)(w)},null,8,["src"])):x(Jt)(w.title,w.mimeType)?(P(),R(U,{key:3,class:"keep-open",src:x(E)(w)},null,8,["src"])):(P(),J("div",Un,[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).file),{class:"text-gray-600 w-20 h-20"})),Z("div",qn,ve(w.title),1)]))])):ue("",!0)]),_:2},1024))),128))]),_:1})]),_:1}),(se=x(y))!=null&&se.canScrollPrev()?(P(),J("div",{key:x(p),class:"left-2 carousel-navigation keep-open",onClick:I},[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).arrowLeft),{class:"text-7xl"}))])):ue("",!0),(H=x(y))!=null&&H.canScrollNext()?(P(),J("div",{key:x(p),class:"right-2 carousel-navigation keep-open",onClick:L},[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).arrowRight),{class:"text-7xl"}))])):ue("",!0),Kn,Z("div",Qn,[Q(ne,{class:"absolute max-w-sm",onInitApi:k[2]||(k[2]=w=>f.value=w)},{default:$(()=>[Q(Y,{class:"!flex !gap-2"},{default:$(()=>[(P(!0),J(it,null,ct(x(s),(w,z)=>(P(),R(q,{key:z,class:Re([{"!opacity-100":z===x(p),"!basis-1/4":x(s).length>=4,"!basis-1/3":x(s).length===3,"!basis-1/2":x(s).length===2},"px-2 keep-open opacity-50 cursor-pointer"]),onClick:pe=>O(z)},{default:$(()=>[Z("div",Jn,[("isImage"in m?m.isImage:x(lt))(w.title,w.mimeType)?(P(),R(V,{key:0,class:"nc-attachment-img-wrapper h-12","object-fit":"contain",alt:w.title,srcs:x(E)(w,"tiny")},null,8,["alt","srcs"])):("isVideo"in m?m.isVideo:x(at))(w.title,w.mimeType)?(P(),J("div",Xn,[Q(K,{class:"text-white",icon:"play"})])):("isPdf"in m?m.isPdf:x(ut))(w.title,w.mimeType)?(P(),J("div",Yn,[Q(K,{class:"text-white",icon:"pdfFile"})])):(P(),J("div",Zn,[Q(K,{class:"text-white",icon:"file"})]))])]),_:2},1032,["class","onClick"]))),128))]),_:1})]),_:1})]),Z("div",Wn,[!x(h)||!x(l)&&x(a)("dataEdit")&&!x(o)?(P(),R(oe,{key:0,color:"light",placement:"bottom"},{title:$(()=>[Ne(ve(m.$t("title.renameFile")),1)]),default:$(()=>[Q(B,{size:"xsmall",class:"nc-attachment-rename !hover:text-gray-400 !hover:bg-transparent !text-white",type:"text",onClick:k[3]||(k[3]=w=>x(n)(x(t),x(p),!0))},{default:$(()=>[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).rename),{class:"!hover:text-gray-400"}))]),_:1})]),_:1})):ue("",!0),x(l)?ue("",!0):(P(),R(oe,{key:1,color:"light",placement:"bottom"},{title:$(()=>[Ne(ve(m.$t("title.downloadFile")),1)]),default:$(()=>[Q(B,{class:"!hover:bg-transparent !text-white",size:"xsmall",type:"text",onClick:k[4]||(k[4]=w=>x(r)(x(t)))},{default:$(()=>[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).download),{class:"!hover:text-gray-400"}))]),_:1})]),_:1})),x(l)?ue("",!0):(P(),R(oe,{key:2,color:"light",placement:"bottom"},{title:$(()=>[Ne(ve(m.$t("title.removeFile")),1)]),default:$(()=>[Q(B,{class:"!hover:bg-transparent !text-white",size:"xsmall",type:"text",onClick:k[5]||(k[5]=w=>b(x(t).title,x(p)))},{default:$(()=>[x(h)||x(a)("dataEdit")&&!x(o)?(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).delete),{key:0,class:"!hover:text-gray-400"})):ue("",!0)]),_:1})]),_:1}))]),Q(W,{visible:x(d),"onUpdate:visible":k[6]||(k[6]=w=>Ee(d)?d.value=w:null),"entity-name":"File","on-delete":()=>_(x(v).i)},{"entity-preview":$(()=>[Z("span",null,[Z("div",eo,[Q(K,{icon:"file",class:"nc-view-icon"}),Z("div",to,ve(x(v).title),1)])])]),_:1},8,["visible","on-delete"])],512)):ue("",!0)])]}),_:1},8,["modelValue","z-index"])}}}),Fo=Ht(no,[["__scopeId","data-v-c2e7b398"]]);export{Fo as default};
1
+ const __vite__fileDeps=["./BIHLSlqp.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./DkhnRb2B.js","./Video.DgABShGy.css","./BbCrTQHD.js","./D58OV0x2.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{e as Te,k as P,a8 as J,n as Be,aU as Re,b_ as Ee,aP as ot,$ as $e,o as Et,b as st,eR as Lt,r as fe,a9 as Z,cp as Tt,p as x,fO as At,fz as Pt,S as Ct,c3 as Mt,bF as Ot,bJ as Dt,ds as Ft,c7 as zt,a1 as Nt,l as R,m as $,z as Q,c6 as rt,aB as me,aC as ge,aT as ve,ay as it,bA as ct,b1 as ue,aS as Ne,aD as Ae,aA as Pe,aW as Vt,aV as jt,aX as Bt,bx as Rt,by as $t,aZ as Gt,aQ as Ht}from"./NHZFd8bQ.js";import{_ as Ut}from"./B9dOhF-2.js";import{_ as qt}from"./CqocAHnv.js";import{u as Kt}from"./CpVxdhe3.js";import{u as Qt}from"./XZK4lLIj.js";import{i as lt,a as at,b as ut,c as Jt}from"./C00NHga8.js";import{u as Xt}from"./CDptPd_U.js";import"./DqyL5Uhs.js";import"./CpWeSecD.js";import"./C5YDuKgZ.js";import"./l2p4hKoB.js";import"./BPXkp7pR.js";import"./B33qDdnq.js";import"./boyBAVNN.js";import"./BWn3cSKa.js";import"./BGugcrMS.js";import"./Y45Pvb6W.js";import"./BjIWxehG.js";import"./B5FLXBR1.js";import"./BE4MlnZf.js";import"./LrQ3PXSl.js";import"./BQQOEPN4.js";import"./BZfcRRAG.js";import"./BV5fkeNl.js";import"./B4rH_4ZN.js";import"./Ckrtr2Si.js";import"./C17-0Owd.js";import"./BDlHzTvk.js";import"./B_LFFdI9.js";import"./DvgZT7js.js";import"./C0-Qcoum.js";const Yt=Te({__name:"Item",props:{class:{}},setup(e){const t=e;return(s,r)=>(P(),J("div",{role:"group","aria-roledescription":"slide",class:Re([{[t.class]:t.class},"min-w-0 shrink-0 flex justify-center items-center embla__slide h-full grow-0 basis-full"])},[Be(s.$slots,"default")],2))}});function Zt(e){return Object.prototype.toString.call(e)==="[object Object]"}function ft(e){return Zt(e)||Array.isArray(e)}function Wt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ge(e,t){const s=Object.keys(e),r=Object.keys(t);if(s.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),n=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==n?!1:s.every(o=>{const l=e[o],c=t[o];return typeof l=="function"?`${l}`==`${c}`:!ft(l)||!ft(c)?l===c:Ge(l,c)})}function dt(e){return e.concat().sort((t,s)=>t.name>s.name?1:-1).map(t=>t.options)}function en(e,t){if(e.length!==t.length)return!1;const s=dt(e),r=dt(t);return s.every((i,n)=>{const o=r[n];return Ge(i,o)})}function He(e){return typeof e=="number"}function Ve(e){return typeof e=="string"}function Ue(e){return typeof e=="boolean"}function pt(e){return Object.prototype.toString.call(e)==="[object Object]"}function F(e){return Math.abs(e)}function qe(e){return Math.sign(e)}function xe(e,t){return F(e-t)}function tn(e,t){if(e===0||t===0||F(e)<=F(t))return 0;const s=xe(F(e),F(t));return F(s/e)}function Se(e){return _e(e).map(Number)}function te(e){return e[ke(e)]}function ke(e){return Math.max(0,e.length-1)}function Ke(e,t){return t===ke(e)}function mt(e,t=0){return Array.from(Array(e),(s,r)=>t+r)}function _e(e){return Object.keys(e)}function gt(e,t){return[e,t].reduce((s,r)=>(_e(r).forEach(i=>{const n=s[i],o=r[i],l=pt(n)&&pt(o);s[i]=l?gt(n,o):o}),s),{})}function je(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function nn(e,t){const s={start:r,center:i,end:n};function r(){return 0}function i(c){return n(c)/2}function n(c){return t-c}function o(c,u){return Ve(e)?s[e](c):e(t,c,u)}return{measure:o}}function we(){let e=[];function t(i,n,o,l={passive:!0}){let c;if("addEventListener"in i)i.addEventListener(n,o,l),c=()=>i.removeEventListener(n,o,l);else{const u=i;u.addListener(o),c=()=>u.removeListener(o)}return e.push(c),r}function s(){e=e.filter(i=>i())}const r={add:t,clear:s};return r}function on(e,t,s,r){const i=we(),n=1e3/60;let o=null,l=0,c=0;function u(){i.add(e,"visibilitychange",()=>{e.hidden&&f()})}function h(){y(),i.clear()}function a(v){if(!c)return;o||(o=v);const d=v-o;for(o=v,l+=d;l>=n;)s(n),l-=n;const b=l/n;r(b),c&&t.requestAnimationFrame(a)}function g(){c||(c=t.requestAnimationFrame(a))}function y(){t.cancelAnimationFrame(c),o=null,l=0,c=0}function f(){o=null,l=0}return{init:u,destroy:h,start:g,stop:y,update:()=>s(n),render:r}}function sn(e,t){const s=t==="rtl",r=e==="y",i=r?"y":"x",n=r?"x":"y",o=!r&&s?-1:1,l=h(),c=a();function u(f){const{height:p,width:v}=f;return r?p:v}function h(){return r?"top":s?"right":"left"}function a(){return r?"bottom":s?"left":"right"}function g(f){return f*o}return{scroll:i,cross:n,startEdge:l,endEdge:c,measureSize:u,direction:g}}function he(e=0,t=0){const s=F(e-t);function r(u){return u<e}function i(u){return u>t}function n(u){return r(u)||i(u)}function o(u){return n(u)?r(u)?e:t:u}function l(u){return s?u-s*Math.ceil((u-t)/s):u}return{length:s,max:t,min:e,constrain:o,reachedAny:n,reachedMax:i,reachedMin:r,removeOffset:l}}function ht(e,t,s){const{constrain:r}=he(0,e),i=e+1;let n=o(t);function o(g){return s?F((i+g)%i):r(g)}function l(){return n}function c(g){return n=o(g),a}function u(g){return h().set(l()+g)}function h(){return ht(e,l(),s)}const a={get:l,set:c,add:u,clone:h};return a}function rn(e,t,s,r,i,n,o,l,c,u,h,a,g,y,f,p,v,d,b){const{cross:_,direction:E}=e,O=["INPUT","SELECT","TEXTAREA"],A={passive:!1},I=we(),L=we(),T=he(50,225).constrain(y.measure(20)),C={mouse:300,touch:400},m={mouse:500,touch:600},k=f?43:25;let B=!1,V=0,D=0,X=!1,U=!1,q=!1,Y=!1;function ne(S){if(!b)return;function M(G){(Ue(b)||b(S,G))&&H(G)}const j=t;I.add(j,"dragstart",G=>G.preventDefault(),A).add(j,"touchmove",()=>{},A).add(j,"touchend",()=>{}).add(j,"touchstart",M).add(j,"mousedown",M).add(j,"touchcancel",z).add(j,"contextmenu",z).add(j,"click",pe,!0)}function K(){I.clear(),L.clear()}function oe(){const S=Y?s:t;L.add(S,"touchmove",w,A).add(S,"touchend",z).add(S,"mousemove",w,A).add(S,"mouseup",z)}function W(S){const M=S.nodeName||"";return O.includes(M)}function de(){return(f?m:C)[Y?"mouse":"touch"]}function se(S,M){const j=a.add(qe(S)*-1),G=h.byDistance(S,!f).distance;return f||F(S)<T?G:v&&M?G*.5:h.byIndex(j.get(),0).distance}function H(S){const M=je(S,r);Y=M,q=f&&M&&!S.buttons&&B,B=xe(i.get(),o.get())>=2,!(M&&S.button!==0)&&(W(S.target)||(X=!0,n.pointerDown(S),u.useFriction(0).useDuration(0),i.set(o),oe(),V=n.readPoint(S),D=n.readPoint(S,_),g.emit("pointerDown")))}function w(S){if(!je(S,r)&&S.touches.length>=2)return z(S);const j=n.readPoint(S),G=n.readPoint(S,_),re=xe(j,V),ce=xe(G,D);if(!U&&!Y&&(!S.cancelable||(U=re>ce,!U)))return z(S);const ie=n.pointerMove(S);re>p&&(q=!0),u.useFriction(.3).useDuration(.75),l.start(),i.add(E(ie)),S.preventDefault()}function z(S){const j=h.byDistance(0,!1).index!==a.get(),G=n.pointerUp(S)*de(),re=se(E(G),j),ce=tn(G,re),ie=k-10*ce,le=d+ce/50;U=!1,X=!1,L.clear(),u.useDuration(ie).useFriction(le),c.distance(re,!f),Y=!1,g.emit("pointerUp")}function pe(S){q&&(S.stopPropagation(),S.preventDefault(),q=!1)}function ee(){return X}return{init:ne,destroy:K,pointerDown:ee}}function cn(e,t){let r,i;function n(a){return a.timeStamp}function o(a,g){const f=`client${(g||e.scroll)==="x"?"X":"Y"}`;return(je(a,t)?a:a.touches[0])[f]}function l(a){return r=a,i=a,o(a)}function c(a){const g=o(a)-o(i),y=n(a)-n(r)>170;return i=a,y&&(r=a),g}function u(a){if(!r||!i)return 0;const g=o(i)-o(r),y=n(a)-n(r),f=n(a)-n(i)>170,p=g/y;return y&&!f&&F(p)>.1?p:0}return{pointerDown:l,pointerMove:c,pointerUp:u,readPoint:o}}function ln(){function e(s){const{offsetTop:r,offsetLeft:i,offsetWidth:n,offsetHeight:o}=s;return{top:r,right:i+n,bottom:r+o,left:i,width:n,height:o}}return{measure:e}}function an(e){function t(r){return e*(r/100)}return{measure:t}}function un(e,t,s,r,i,n,o){let l,c,u=[],h=!1;function a(p){return i.measureSize(o.measure(p))}function g(p){if(!n)return;c=a(e),u=r.map(a);function v(b){for(const _ of b){const E=_.target===e,O=r.indexOf(_.target),A=E?c:u[O],I=a(E?e:r[O]);if(F(I-A)>=.5){s.requestAnimationFrame(()=>{p.reInit(),t.emit("resize")});break}}}l=new ResizeObserver(b=>{h||(Ue(n)||n(p,b))&&v(b)}),[e].concat(r).forEach(b=>l.observe(b))}function y(){l&&l.disconnect(),h=!0}return{init:g,destroy:y}}function fn(e,t,s,r,i,n){let o=0,l=0,c=i,u=n,h=e.get(),a=0;function g(A){const I=A/1e3,L=c*I,T=r.get()-e.get(),C=!c;let m=0;return C?(o=0,s.set(r),e.set(r),m=T):(s.set(e),o+=T/L,o*=u,h+=o,e.add(o*I),m=h-a),l=qe(m),a=h,O}function y(){const A=r.get()-t.get();return F(A)<.001}function f(){return c}function p(){return l}function v(){return o}function d(){return _(i)}function b(){return E(n)}function _(A){return c=A,O}function E(A){return u=A,O}const O={direction:p,duration:f,velocity:v,seek:g,settled:y,useBaseFriction:b,useBaseDuration:d,useFriction:E,useDuration:_};return O}function dn(e,t,s,r,i){const n=i.measure(10),o=i.measure(50),l=he(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(s.get())||!e.reachedAny(t.get()))}function h(y){if(!u())return;const f=e.reachedMin(t.get())?"min":"max",p=F(e[f]-t.get()),v=s.get()-t.get(),d=l.constrain(p/o);s.subtract(v*d),!y&&F(v)<n&&(s.set(e.constrain(s.get())),r.useDuration(25).useBaseFriction())}function a(y){c=!y}return{shouldConstrain:u,constrain:h,toggleActive:a}}function pn(e,t,s,r,i){const n=he(-t+e,0),o=a(),l=h(),c=g();function u(f,p){return xe(f,p)<1}function h(){const f=o[0],p=te(o),v=o.lastIndexOf(f),d=o.indexOf(p)+1;return he(v,d)}function a(){return s.map((f,p)=>{const{min:v,max:d}=n,b=n.constrain(f),_=!p,E=Ke(s,p);return _?d:E||u(v,b)?v:u(d,b)?d:b}).map(f=>parseFloat(f.toFixed(3)))}function g(){if(t<=e+i)return[n.max];if(r==="keepSnaps")return o;const{min:f,max:p}=l;return o.slice(f,p)}return{snapsContained:c,scrollContainLimit:l}}function mn(e,t,s){const r=t[0],i=s?r-e:te(t);return{limit:he(i,r)}}function gn(e,t,s,r){const n=t.min+.1,o=t.max+.1,{reachedMin:l,reachedMax:c}=he(n,o);function u(g){return g===1?c(s.get()):g===-1?l(s.get()):!1}function h(g){if(!u(g))return;const y=e*(g*-1);r.forEach(f=>f.add(y))}return{loop:h}}function hn(e){const{max:t,length:s}=e;function r(n){const o=n-t;return s?o/-s:0}return{get:r}}function vn(e,t,s,r,i){const{startEdge:n,endEdge:o}=e,{groupSlides:l}=i,c=a().map(t.measure),u=g(),h=y();function a(){return l(r).map(p=>te(p)[o]-p[0][n]).map(F)}function g(){return r.map(p=>s[n]-p[n]).map(p=>-F(p))}function y(){return l(u).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:u,snapsAligned:h}}function yn(e,t,s,r,i,n){const{groupSlides:o}=i,{min:l,max:c}=r,u=h();function h(){const g=o(n),y=!e||t==="keepSnaps";return s.length===1?[n]:y?g:g.slice(l,c).map((f,p,v)=>{const d=!p,b=Ke(v,p);if(d){const _=te(v[0])+1;return mt(_)}if(b){const _=ke(n)-te(v)[0]+1;return mt(_,te(v)[0])}return f})}return{slideRegistry:u}}function bn(e,t,s,r,i){const{reachedAny:n,removeOffset:o,constrain:l}=r;function c(f){return f.concat().sort((p,v)=>F(p)-F(v))[0]}function u(f){const p=e?o(f):l(f),v=t.map((b,_)=>({diff:h(b-p,0),index:_})).sort((b,_)=>F(b.diff)-F(_.diff)),{index:d}=v[0];return{index:d,distance:p}}function h(f,p){const v=[f,f+s,f-s];if(!e)return f;if(!p)return c(v);const d=v.filter(b=>qe(b)===p);return d.length?c(d):te(v)-s}function a(f,p){const v=t[f]-i.get(),d=h(v,p);return{index:f,distance:d}}function g(f,p){const v=i.get()+f,{index:d,distance:b}=u(v),_=!e&&n(v);if(!p||_)return{index:d,distance:f};const E=t[d]-b,O=f+h(E,0);return{index:d,distance:O}}return{byDistance:g,byIndex:a,shortcut:h}}function xn(e,t,s,r,i,n,o){function l(a){const g=a.distance,y=a.index!==t.get();n.add(g),g&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(s.set(t.get()),t.set(a.index),o.emit("select"))}function c(a,g){const y=i.byDistance(a,g);l(y)}function u(a,g){const y=t.clone().set(a),f=i.byIndex(y.get(),g);l(f)}return{distance:c,index:u}}function Sn(e,t,s,r,i,n,o){let l=0;function c(){n.add(document,"keydown",u,!1),t.forEach(h)}function u(g){g.code==="Tab"&&(l=new Date().getTime())}function h(g){const y=()=>{if(new Date().getTime()-l>10)return;e.scrollLeft=0;const v=t.indexOf(g),d=s.findIndex(b=>b.includes(v));He(d)&&(i.useDuration(0),r.index(d,0),o.emit("slideFocus"))};n.add(g,"focus",y,{passive:!0,capture:!0})}return{init:c}}function be(e){let t=e;function s(){return t}function r(c){t=o(c)}function i(c){t+=o(c)}function n(c){t-=o(c)}function o(c){return He(c)?c:c.get()}return{get:s,set:r,add:i,subtract:n}}function vt(e,t){const s=e.scroll==="x"?n:o,r=t.style;let i=!1;function n(a){return`translate3d(${a}px,0px,0px)`}function o(a){return`translate3d(0px,${a}px,0px)`}function l(a){i||(r.transform=s(e.direction(a)))}function c(a){i=!a}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function _n(e,t,s,r,i,n,o,l,c){const h=Se(i),a=Se(i).reverse(),g=d().concat(b());function y(I,L){return I.reduce((T,C)=>T-i[C],L)}function f(I,L){return I.reduce((T,C)=>y(T,L)>0?T.concat([C]):T,[])}function p(I){return n.map((L,T)=>({start:L-r[T]+.5+I,end:L+t-.5+I}))}function v(I,L,T){const C=p(L);return I.map(m=>{const k=T?0:-s,B=T?s:0,V=T?"end":"start",D=C[m][V];return{index:m,loopPoint:D,slideLocation:be(-1),translate:vt(e,c[m]),target:()=>l.get()>D?k:B}})}function d(){const I=o[0],L=f(a,I);return v(L,s,!1)}function b(){const I=t-o[0]-1,L=f(h,I);return v(L,-s,!0)}function _(){return g.every(({index:I})=>{const L=h.filter(T=>T!==I);return y(L,t)<=.1})}function E(){g.forEach(I=>{const{target:L,translate:T,slideLocation:C}=I,m=L();m!==C.get()&&(T.to(m),C.set(m))})}function O(){g.forEach(I=>I.translate.clear())}return{canLoop:_,clear:O,loop:E,loopPoints:g}}function wn(e,t,s){let r,i=!1;function n(c){if(!s)return;function u(h){for(const a of h)if(a.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(h=>{i||(Ue(s)||s(c,h))&&u(h)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:n,destroy:o}}function kn(e,t,s,r){const i={};let n=null,o=null,l,c=!1;function u(){l=new IntersectionObserver(f=>{c||(f.forEach(p=>{const v=t.indexOf(p.target);i[v]=p}),n=null,o=null,s.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(f=>l.observe(f))}function h(){l&&l.disconnect(),c=!0}function a(f){return _e(i).reduce((p,v)=>{const d=parseInt(v),{isIntersecting:b}=i[d];return(f&&b||!f&&!b)&&p.push(d),p},[])}function g(f=!0){if(f&&n)return n;if(!f&&o)return o;const p=a(f);return f&&(n=p),f||(o=p),p}return{init:u,destroy:h,get:g}}function In(e,t,s,r,i,n){const{measureSize:o,startEdge:l,endEdge:c}=e,u=s[0]&&i,h=f(),a=p(),g=s.map(o),y=v();function f(){if(!u)return 0;const b=s[0];return F(t[l]-b[l])}function p(){if(!u)return 0;const b=n.getComputedStyle(te(r));return parseFloat(b.getPropertyValue(`margin-${c}`))}function v(){return s.map((b,_,E)=>{const O=!_,A=Ke(E,_);return O?g[_]+h:A?g[_]+a:E[_+1][l]-b[l]}).map(F)}return{slideSizes:g,slideSizesWithGaps:y,startGap:h,endGap:a}}function En(e,t,s,r,i,n,o,l,c){const{startEdge:u,endEdge:h,direction:a}=e,g=He(s);function y(d,b){return Se(d).filter(_=>_%b===0).map(_=>d.slice(_,_+b))}function f(d){return d.length?Se(d).reduce((b,_,E)=>{const O=te(b)||0,A=O===0,I=_===ke(d),L=i[u]-n[O][u],T=i[u]-n[_][h],C=!r&&A?a(o):0,m=!r&&I?a(l):0,k=F(T-m-(L+C));return E&&k>t+c&&b.push(_),I&&b.push(d.length),b},[]).map((b,_,E)=>{const O=Math.max(E[_-1]||0);return d.slice(O,b)}):[]}function p(d){return g?y(d,s):f(d)}return{groupSlides:p}}function Ln(e,t,s,r,i,n,o){const{align:l,axis:c,direction:u,startIndex:h,loop:a,duration:g,dragFree:y,dragThreshold:f,inViewThreshold:p,slidesToScroll:v,skipSnaps:d,containScroll:b,watchResize:_,watchSlides:E,watchDrag:O}=n,A=2,I=ln(),L=I.measure(t),T=s.map(I.measure),C=sn(c,u),m=C.measureSize(L),k=an(m),B=nn(l,m),V=!a&&!!b,D=a||!!b,{slideSizes:X,slideSizesWithGaps:U,startGap:q,endGap:Y}=In(C,L,T,s,D,i),ne=En(C,m,v,a,L,T,q,Y,A),{snaps:K,snapsAligned:oe}=vn(C,B,L,T,ne),W=-te(K)+te(U),{snapsContained:de,scrollContainLimit:se}=pn(m,W,oe,b,A),H=V?de:oe,{limit:w}=mn(W,H,a),z=ht(ke(H),h,a),pe=z.clone(),ee=Se(s),N=({dragHandler:ae,scrollBody:De,scrollBounds:Fe,options:{loop:Ie}},ze)=>{Ie||Fe.constrain(ae.pointerDown()),De.seek(ze)},S=({scrollBody:ae,translate:De,location:Fe,offsetLocation:Ie,scrollLooper:ze,slideLooper:xt,dragHandler:St,animation:_t,eventHandler:Ze,scrollBounds:wt,options:{loop:We}},et)=>{const tt=ae.settled(),kt=!wt.shouldConstrain(),nt=We?tt:tt&&kt;nt&&!St.pointerDown()&&(_t.stop(),Ze.emit("settle")),nt||Ze.emit("scroll");const It=Fe.get()*et+ce.get()*(1-et);Ie.set(It),We&&(ze.loop(ae.direction()),xt.loop()),De.to(Ie.get())},M=on(r,i,ae=>N(Oe,ae),ae=>S(Oe,ae)),j=.68,G=H[z.get()],re=be(G),ce=be(G),ie=be(G),le=be(G),ye=fn(re,ie,ce,le,g,j),Ce=bn(a,H,W,w,le),Me=xn(M,z,pe,ye,Ce,le,o),Je=hn(w),Xe=we(),yt=kn(t,s,o,p),{slideRegistry:Ye}=yn(V,b,H,se,ne,ee),bt=Sn(e,s,Ye,Me,ye,Xe,o),Oe={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:L,slideRects:T,animation:M,axis:C,dragHandler:rn(C,e,r,i,le,cn(C,i),re,M,Me,ye,Ce,z,o,k,y,f,d,j,O),eventStore:Xe,percentOfView:k,index:z,indexPrevious:pe,limit:w,location:re,offsetLocation:ie,previousLocation:ce,options:n,resizeHandler:un(t,o,i,s,C,_,I),scrollBody:ye,scrollBounds:dn(w,ie,le,ye,k),scrollLooper:gn(W,w,ie,[re,ie,ce,le]),scrollProgress:Je,scrollSnapList:H.map(Je.get),scrollSnaps:H,scrollTarget:Ce,scrollTo:Me,slideLooper:_n(C,m,W,X,U,K,H,ie,s),slideFocus:bt,slidesHandler:wn(t,o,E),slidesInView:yt,slideIndexes:ee,slideRegistry:Ye,slidesToScroll:ne,target:le,translate:vt(C,t)};return Oe}function Tn(){let e={},t;function s(u){t=u}function r(u){return e[u]||[]}function i(u){return r(u).forEach(h=>h(t,u)),c}function n(u,h){return e[u]=r(u).concat([h]),c}function o(u,h){return e[u]=r(u).filter(a=>a!==h),c}function l(){e={}}const c={init:s,emit:i,off:o,on:n,clear:l};return c}const An={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function Pn(e){function t(n,o){return gt(n,o||{})}function s(n){const o=n.breakpoints||{},l=_e(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,u)=>t(c,u),{});return t(n,l)}function r(n){return n.map(o=>_e(o.breakpoints||{})).reduce((o,l)=>o.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:s,optionsMediaQueries:r}}function Cn(e){let t=[];function s(n,o){return t=o.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(n,e)),o.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(n=>n.destroy())}return{init:s,destroy:r}}function Le(e,t,s){const r=e.ownerDocument,i=r.defaultView,n=Pn(i),o=Cn(n),l=we(),c=Tn(),{mergeOptions:u,optionsAtMedia:h,optionsMediaQueries:a}=n,{on:g,off:y,emit:f}=c,p=m;let v=!1,d,b=u(An,Le.globalOptions),_=u(b),E=[],O,A,I;function L(){const{container:N,slides:S}=_;A=(Ve(N)?e.querySelector(N):N)||e.children[0];const j=Ve(S)?A.querySelectorAll(S):S;I=[].slice.call(j||A.children)}function T(N){const S=Ln(e,A,I,r,i,N,c);if(N.loop&&!S.slideLooper.canLoop()){const M=Object.assign({},N,{loop:!1});return T(M)}return S}function C(N,S){v||(b=u(b,N),_=h(b),E=S||E,L(),d=T(_),a([b,...E.map(({options:M})=>M)]).forEach(M=>l.add(M,"change",m)),_.active&&(d.translate.to(d.location.get()),d.animation.init(),d.slidesInView.init(),d.slideFocus.init(),d.eventHandler.init(ee),d.resizeHandler.init(ee),d.slidesHandler.init(ee),d.options.loop&&d.slideLooper.loop(),A.offsetParent&&I.length&&d.dragHandler.init(ee),O=o.init(ee,E)))}function m(N,S){const M=K();k(),C(u({startIndex:M},N),S),c.emit("reInit")}function k(){d.dragHandler.destroy(),d.eventStore.clear(),d.translate.clear(),d.slideLooper.clear(),d.resizeHandler.destroy(),d.slidesHandler.destroy(),d.slidesInView.destroy(),d.animation.destroy(),o.destroy(),l.clear()}function B(){v||(v=!0,l.clear(),k(),c.emit("destroy"),c.clear())}function V(N,S,M){!_.active||v||(d.scrollBody.useBaseFriction().useDuration(S===!0?0:_.duration),d.scrollTo.index(N,M||0))}function D(N){const S=d.index.add(1).get();V(S,N,-1)}function X(N){const S=d.index.add(-1).get();V(S,N,1)}function U(){return d.index.add(1).get()!==K()}function q(){return d.index.add(-1).get()!==K()}function Y(){return d.scrollSnapList}function ne(){return d.scrollProgress.get(d.location.get())}function K(){return d.index.get()}function oe(){return d.indexPrevious.get()}function W(){return d.slidesInView.get()}function de(){return d.slidesInView.get(!1)}function se(){return O}function H(){return d}function w(){return e}function z(){return A}function pe(){return I}const ee={canScrollNext:U,canScrollPrev:q,containerNode:z,internalEngine:H,destroy:B,off:y,on:g,emit:f,plugins:se,previousScrollSnap:oe,reInit:p,rootNode:w,scrollNext:D,scrollPrev:X,scrollProgress:ne,scrollSnapList:Y,scrollTo:V,selectedScrollSnap:K,slideNodes:pe,slidesInView:W,slidesNotInView:de};return C(t,s),setTimeout(()=>c.emit("init"),0),ee}Le.globalOptions=void 0;function Qe(e={},t=[]){const s=Ee(e),r=Ee(t);let i=s?e.value:e,n=r?t.value:t;const o=ot(),l=ot();function c(){l.value&&l.value.reInit(i,n)}return $e(()=>{!Wt()||!o.value||(Le.globalOptions=Qe.globalOptions,l.value=Le(o.value,i,n))}),Et(()=>{l.value&&l.value.destroy()}),s&&st(e,u=>{Ge(i,u)||(i=u,c())}),r&&st(t,u=>{en(n,u)||(n=u,c())}),[o,l]}Qe.globalOptions=void 0;const[Mn,On]=Lt(({opts:e,orientation:t,plugins:s},r)=>{const[i,n]=Qe({...e,axis:t==="horizontal"?"x":"y"},s);function o(){var a;(a=n.value)==null||a.scrollPrev()}function l(){var a;(a=n.value)==null||a.scrollNext()}const c=fe(!1),u=fe(!1);function h(a){c.value=(a==null?void 0:a.canScrollNext())||!1,u.value=(a==null?void 0:a.canScrollPrev())||!1}return $e(()=>{var a,g,y;n.value&&((a=n.value)==null||a.on("init",h),(g=n.value)==null||g.on("reInit",h),(y=n.value)==null||y.on("select",h),r("init-api",n.value))}),{carouselRef:i,carouselApi:n,canScrollPrev:u,canScrollNext:c,scrollPrev:o,scrollNext:l,orientation:t}});function Dn(){const e=On();if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Fn=Te({inheritAttrs:!1,__name:"Content",props:{class:{}},setup(e){const t=e,{carouselRef:s,orientation:r}=Dn();return(i,n)=>(P(),J("div",{ref_key:"carouselRef",ref:s,class:"overflow-hidden carousel-container"},[Z("div",Tt({class:[{"flex-col":x(r)==="vertical",[t.class]:t.class},"flex embla__container"]},i.$attrs),[Be(i.$slots,"default")],16)],512))}}),zn=Te({__name:"index",props:{opts:{},plugins:{},orientation:{default:"horizontal"},class:{}},emits:["init-api"],setup(e,{expose:t,emit:s}){const r=e,n=Mn(r,s);return t(n),(o,l)=>(P(),J("div",{class:Re([{[r.class]:r.class},"relative embla !focus-visible:outline-none"]),role:"region","aria-roledescription":"carousel",tabindex:"0"},[Be(o.$slots,"default",At(Pt(x(n))))],2))}}),Nn=Ae(()=>Pe(()=>import("./BIHLSlqp.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.default||e)),Vn=Ae(()=>Pe(()=>import("./DkhnRb2B.js"),__vite__mapDeps([3,1,2,4]),import.meta.url).then(e=>e.default||e)),jn=Ae(()=>Pe(()=>import("./BbCrTQHD.js"),__vite__mapDeps([5,1,2]),import.meta.url).then(e=>e.default||e)),Bn=Ae(()=>Pe(()=>import("./D58OV0x2.js"),__vite__mapDeps([6,1,2]),import.meta.url).then(e=>e.default||e)),Rn=e=>(Rt("data-v-c2e7b398"),e=e(),$t(),e),$n={class:"flex w-full h-full"},Gn={class:"keep-open select-none absolute top-5 pointer-events-none inset-x-0 mx-auto group flex items-center justify-center leading-8 inline-block text-center rounded shadow"},Hn={key:0,class:"justify-center w-full h-full flex items-center"},Un={key:4,class:"bg-white h-full flex flex-col justify-center rounded-md gap-1 items-center w-full"},qn={class:"text-gray-800 text-sm"},Kn=Rn(()=>Z("div",{class:"text-white absolute right-2 top-2 cursor-pointer"},null,-1)),Qn={class:"absolute w-full !bottom-2 max-h-18 z-30 flex items-center justify-center"},Jn={class:"flex items-center justify-center"},Xn={key:1,class:"h-full flex items-center h-6 justify-center rounded-md px-2 py-1 border-1 border-gray-200"},Yn={key:2,class:"h-full flex items-center h-6 justify-center rounded-md px-2 py-1 border-1 border-gray-200"},Zn={key:3,class:"h-full flex items-center h-6 justify-center rounded-md px-2 py-1 border-1 border-gray-200"},Wn={class:"absolute keep-open right-2 z-30 bottom-3 transition-all gap-3 transition-ease-in-out !h-6 flex items-center"},eo={class:"flex flex-row items-center py-2.25 px-2.5 bg-gray-50 rounded-lg text-gray-700 mb-4"},to={class:"capitalize text-ellipsis overflow-hidden select-none w-full pl-1.75",style:{wordBreak:"keep-all",whiteSpace:"nowrap",display:"inline"}},no=Te({__name:"Carousel",setup(e){const{selectedFile:t,visibleItems:s,downloadAttachment:r,removeFile:i,renameFile:n,isPublic:o,isReadonly:l,isRenameModalOpen:c}=Xt(),u=Ct(Mt,fe(!1)),{isSharedForm:h}=Kt(),{isUIAllowed:a}=Ot(),g=fe(null),y=fe(),f=fe(),p=fe(),v=Dt({title:"",i:0}),d=fe(!1);function b(m,k){d.value=!0,v.title=m,v.i=k}const _=m=>{i(m),d.value=!1,v.i=0,v.title=""},{getPossibleAttachmentSrc:E}=Qt();Ft(g,"click",m=>{const k=m.target;!k.closest(".keep-open")&&!k.closest(".nc-button")&&!k.closest("img")&&!k.closest("video")&&(t.value=!1)});const O=m=>{!y.value||!f.value||(y.value.scrollTo(m),f.value.scrollTo(m))},A=()=>{if(!y.value||!f.value)return;const m=y.value.selectedScrollSnap();p.value=m,t.value=s.value[m],f.value.scrollTo(m)},I=()=>{!y.value||!f.value||(y.value.scrollPrev(),f.value.scrollPrev())},L=()=>{!y.value||!f.value||(y.value.scrollNext(),f.value.scrollNext())};zt(y,async m=>{var k,B;m&&((k=g.value)==null||k.focus(),(B=f.value)==null||B.on("reInit",A),m.on("select",A),await Gt(()=>{if(!p.value){const V=s.value.findIndex(D=>{var X,U,q;return(X=t.value)!=null&&X.path?(D==null?void 0:D.path)===t.value.path:(U=t.value)!=null&&U.url?(D==null?void 0:D.url)===t.value.url:((q=t.value)==null?void 0:q.title)===(D==null?void 0:D.title)});p.value=V,m.scrollTo(V)}}))}),$e(()=>{document.addEventListener("keydown",T)}),Nt(()=>{document.removeEventListener("keydown",T)});function T(m){var V,D;if(c.value)return;const k=["ArrowLeft","Left","a","A"],B=["ArrowRight","Right","d","D"];if(k.includes(m.key)){m.preventDefault(),(V=y.value)==null||V.scrollPrev();return}B.includes(m.key)&&(m.preventDefault(),(D=y.value)==null||D.scrollNext())}const C=m=>{y.value=m};return(m,k)=>{const B=Vt,V=Nn,D=Vn,X=jn,U=Bn,q=Yt,Y=Fn,ne=zn,K=jt,oe=Bt,W=Ut,de=qt;return P(),R(de,{modelValue:x(t),"onUpdate:modelValue":k[7]||(k[7]=se=>Ee(t)?t.value=se:null),transition:"","z-index":x(u)?1e3:50,class:"bg-black bg-opacity-90"},{default:$(()=>{var se,H;return[Z("div",$n,[x(t)?(P(),J("div",{key:0,ref_key:"container",ref:g,class:"flex w-full overflow-hidden justify-center text-center relative h-screen items-center"},[Q(B,{class:"top-5 !absolute cursor-pointer !z-30 !hover:bg-transparent left-5",size:"xsmall",type:"text",onClick:k[0]||(k[0]=rt(w=>t.value=!1,["stop"]))},{default:$(()=>[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).close),{class:"text-white"}))]),_:1}),Z("div",Gn,[Z("h3",{style:{width:"max-content"},class:"hover:underline pointer-events-auto font-semibold cursor-pointer text-white",onClick:k[1]||(k[1]=rt(w=>x(r)(x(t)),["stop"]))},ve(x(t)&&x(t).title),1)]),Q(ne,{class:"!absolute inset-y-16 inset-x-24 keep-open flex justify-center items-center",onInitApi:C},{default:$(()=>[Q(Y,null,{default:$(()=>[(P(!0),J(it,null,ct(x(s),(w,z)=>(P(),R(q,{key:z},{default:$(()=>[x(p)===z?(P(),J("div",Hn,[("isImage"in m?m.isImage:x(lt))(w.title,w.mimeType)?(P(),R(V,{key:0,class:"nc-attachment-img-wrapper","object-fit":"contain",alt:w.title,srcs:x(E)(w)},null,8,["alt","srcs"])):("isVideo"in m?m.isVideo:x(at))(w.title,w.mimeType)?(P(),R(D,{key:1,class:"flex items-center w-full","mime-type":w.mimeType,title:w.title,src:x(E)(w)},null,8,["mime-type","title","src"])):("isPdf"in m?m.isPdf:x(ut))(w.title,w.mimeType)?(P(),R(X,{key:2,class:"keep-open",src:x(E)(w)},null,8,["src"])):x(Jt)(w.title,w.mimeType)?(P(),R(U,{key:3,class:"keep-open",src:x(E)(w)},null,8,["src"])):(P(),J("div",Un,[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).file),{class:"text-gray-600 w-20 h-20"})),Z("div",qn,ve(w.title),1)]))])):ue("",!0)]),_:2},1024))),128))]),_:1})]),_:1}),(se=x(y))!=null&&se.canScrollPrev()?(P(),J("div",{key:x(p),class:"left-2 carousel-navigation keep-open",onClick:I},[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).arrowLeft),{class:"text-7xl"}))])):ue("",!0),(H=x(y))!=null&&H.canScrollNext()?(P(),J("div",{key:x(p),class:"right-2 carousel-navigation keep-open",onClick:L},[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).arrowRight),{class:"text-7xl"}))])):ue("",!0),Kn,Z("div",Qn,[Q(ne,{class:"absolute max-w-sm",onInitApi:k[2]||(k[2]=w=>f.value=w)},{default:$(()=>[Q(Y,{class:"!flex !gap-2"},{default:$(()=>[(P(!0),J(it,null,ct(x(s),(w,z)=>(P(),R(q,{key:z,class:Re([{"!opacity-100":z===x(p),"!basis-1/4":x(s).length>=4,"!basis-1/3":x(s).length===3,"!basis-1/2":x(s).length===2},"px-2 keep-open opacity-50 cursor-pointer"]),onClick:pe=>O(z)},{default:$(()=>[Z("div",Jn,[("isImage"in m?m.isImage:x(lt))(w.title,w.mimeType)?(P(),R(V,{key:0,class:"nc-attachment-img-wrapper h-12","object-fit":"contain",alt:w.title,srcs:x(E)(w,"tiny")},null,8,["alt","srcs"])):("isVideo"in m?m.isVideo:x(at))(w.title,w.mimeType)?(P(),J("div",Xn,[Q(K,{class:"text-white",icon:"play"})])):("isPdf"in m?m.isPdf:x(ut))(w.title,w.mimeType)?(P(),J("div",Yn,[Q(K,{class:"text-white",icon:"pdfFile"})])):(P(),J("div",Zn,[Q(K,{class:"text-white",icon:"file"})]))])]),_:2},1032,["class","onClick"]))),128))]),_:1})]),_:1})]),Z("div",Wn,[!x(h)||!x(l)&&x(a)("dataEdit")&&!x(o)?(P(),R(oe,{key:0,color:"light",placement:"bottom"},{title:$(()=>[Ne(ve(m.$t("title.renameFile")),1)]),default:$(()=>[Q(B,{size:"xsmall",class:"nc-attachment-rename !hover:text-gray-400 !hover:bg-transparent !text-white",type:"text",onClick:k[3]||(k[3]=w=>x(n)(x(t),x(p),!0))},{default:$(()=>[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).rename),{class:"!hover:text-gray-400"}))]),_:1})]),_:1})):ue("",!0),x(l)?ue("",!0):(P(),R(oe,{key:1,color:"light",placement:"bottom"},{title:$(()=>[Ne(ve(m.$t("title.downloadFile")),1)]),default:$(()=>[Q(B,{class:"!hover:bg-transparent !text-white",size:"xsmall",type:"text",onClick:k[4]||(k[4]=w=>x(r)(x(t)))},{default:$(()=>[(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).download),{class:"!hover:text-gray-400"}))]),_:1})]),_:1})),x(l)?ue("",!0):(P(),R(oe,{key:2,color:"light",placement:"bottom"},{title:$(()=>[Ne(ve(m.$t("title.removeFile")),1)]),default:$(()=>[Q(B,{class:"!hover:bg-transparent !text-white",size:"xsmall",type:"text",onClick:k[5]||(k[5]=w=>b(x(t).title,x(p)))},{default:$(()=>[x(h)||x(a)("dataEdit")&&!x(o)?(P(),R(me(("iconMap"in m?m.iconMap:x(ge)).delete),{key:0,class:"!hover:text-gray-400"})):ue("",!0)]),_:1})]),_:1}))]),Q(W,{visible:x(d),"onUpdate:visible":k[6]||(k[6]=w=>Ee(d)?d.value=w:null),"entity-name":"File","on-delete":()=>_(x(v).i)},{"entity-preview":$(()=>[Z("span",null,[Z("div",eo,[Q(K,{icon:"file",class:"nc-view-icon"}),Z("div",to,ve(x(v).title),1)])])]),_:1},8,["visible","on-delete"])],512)):ue("",!0)])]}),_:1},8,["modelValue","z-index"])}}}),Fo=Ht(no,[["__scopeId","data-v-c2e7b398"]]);export{Fo as default};
@@ -1 +1 @@
1
- import{ad as v,af as w,ae as p,aY as M,aF as d,ag as L,r as s,b as l,ai as O,aZ as T}from"./D0skW1jq.js";import{u as g}from"./CKkNNjlN.js";const h=v("configStore",()=>{const{isMobileMode:c}=w(),{width:b}=p(),t=g(),u=M(),{activeViewTitleOrId:a}=d(u),m=L(),{activeTableId:i}=d(m),o=()=>b.value<O,f=s(!1),e=s(o()),S=s("allTable"),n=()=>{e.value=o()};window.addEventListener("DOMContentLoaded",n),window.addEventListener("resize",n),l(e,()=>{c.value=e.value,document.documentElement.style.setProperty("--topbar-height",e.value?"3.25rem":"3.1rem"),e.value?(document.body.classList.add("mobile"),document.body.classList.remove("desktop")):(document.body.classList.add("desktop"),document.body.classList.remove("mobile"))},{immediate:!0});const r=()=>{o()&&(!a&&!i?T(()=>{t.isLeftSidebarOpen=!0}):t.isLeftSidebarOpen=!1)};return l([a,i],()=>{r()}),{isMobileMode:e,isViewPortMobile:o,handleSidebarOpenOnMobileForNonViews:r,projectPageTab:S,isExpandedFormCommentMode:f}});export{h as u};
1
+ import{ad as v,af as w,ae as p,aY as M,aF as d,ag as L,r as s,b as l,ai as O,aZ as T}from"./NHZFd8bQ.js";import{u as g}from"./LLghMu9r.js";const h=v("configStore",()=>{const{isMobileMode:c}=w(),{width:b}=p(),t=g(),u=M(),{activeViewTitleOrId:a}=d(u),m=L(),{activeTableId:i}=d(m),o=()=>b.value<O,f=s(!1),e=s(o()),S=s("allTable"),n=()=>{e.value=o()};window.addEventListener("DOMContentLoaded",n),window.addEventListener("resize",n),l(e,()=>{c.value=e.value,document.documentElement.style.setProperty("--topbar-height",e.value?"3.25rem":"3.1rem"),e.value?(document.body.classList.add("mobile"),document.body.classList.remove("desktop")):(document.body.classList.add("desktop"),document.body.classList.remove("mobile"))},{immediate:!0});const r=()=>{o()&&(!a&&!i?T(()=>{t.isLeftSidebarOpen=!0}):t.isLeftSidebarOpen=!1)};return l([a,i],()=>{r()}),{isMobileMode:e,isViewPortMobile:o,handleSidebarOpenOnMobileForNonViews:r,projectPageTab:S,isExpandedFormCommentMode:f}});export{h as u};
@@ -1 +1 @@
1
- import{e as t,k as a,a8 as o,a9 as s,l as n,aB as c,p as r,aC as i,aS as l}from"./D0skW1jq.js";const p={class:"bg-primary bg-opacity-5 w-full h-full flex flex-col justify-center items-center text-4xl gap-12"},f={class:"text-gray-400 flex gap-4 items-center"},u=t({__name:"404",setup(m){return(e,_)=>(a(),o("div",p,[s("div",f,[(a(),n(c(("iconMap"in e?e.iconMap:r(i)).warning))),l(" Page Not Found ")])]))}});export{u as default};
1
+ import{e as t,k as a,a8 as o,a9 as s,l as n,aB as c,p as r,aC as i,aS as l}from"./NHZFd8bQ.js";const p={class:"bg-primary bg-opacity-5 w-full h-full flex flex-col justify-center items-center text-4xl gap-12"},f={class:"text-gray-400 flex gap-4 items-center"},u=t({__name:"404",setup(m){return(e,_)=>(a(),o("div",p,[s("div",f,[(a(),n(c(("iconMap"in e?e.iconMap:r(i)).warning))),l(" Page Not Found ")])]))}});export{u as default};
@@ -1 +1 @@
1
- import{e as K,S as Z,cH as l,bf as V,bd as tt,t as rt,aF as T,aG as B,be as st,r as nt,f as it,k as et,a8 as at,aT as ut,p as ft,aU as ct,cS as ot,cT as pt,bi as d,W as f,X as _t,Y as mt,aQ as dt}from"./D0skW1jq.js";import{c as yt}from"./C9Sjn86N.js";import{e as gt,j as bt,h as kt,F as Dt,c as St,l as Yt,d as Nt,m as ht,t as At,u as Tt,s as Bt,w as Mt,p as $t,x as Ct,b as Ut,o as jt}from"./Wfb3YMK3.js";import{e as Ft,d as Ot,f as Ht,g as Lt,h as Rt}from"./DKgzeeDD.js";const It=K({__name:"PlainCell",props:{column:{},modelValue:{},bold:{type:[Number,Boolean,null]},italic:{type:[Number,Boolean,null]},underline:{type:[Number,Boolean,null]}},setup(M){var N,h,A;const $=M,e=Z(l),{t:k}=V(),{metas:D}=tt(),p=rt($,"column"),{sqlUis:g}=T(B()),C=st(),{basesUser:U}=T(C),{isXcdbBase:j,isMssql:F,isMysql:O}=B(),H=nt((N=p.value)!=null&&N.source_id&&g.value[(h=p.value)==null?void 0:h.source_id]?g.value[(A=p.value)==null?void 0:A.source_id]:Object.values(g.value)[0]),_=it(()=>p.value&&H.value.getAbstractType(p.value)),L=t=>!!t&&t!=="0"&&t!==0&&t!=="false",R=(t,r)=>t?t?Array.isArray(t)?t.join(", "):t.toString():O(r.source_id)?t.toString().split(",").join(", "):t.split(", "):"",S=(t,r,s)=>{var i;const n=s?"YYYY-MM-DD HH:mm:ss":((i=d(r.meta))==null?void 0:i.date_format)??"YYYY-MM-DD";return!t||!f(t).isValid()?"":f(/^\d+$/.test(String(t))?+t:t).format(n)},I=t=>t&&f(t).isValid()?f(t.toString(),"YYYY").format("YYYY"):"",x=(t,r)=>{var u,c;if(!t||!f(t).isValid())return"";const s=((u=d(r==null?void 0:r.meta))==null?void 0:u.date_format)??_t[0],n=((c=d(r==null?void 0:r.meta))==null?void 0:c.time_format)??mt[0],i=`${s} ${n}`;return j(r.source_id)?F(r.source_id)?f(t,i).format(i):f(t).utc().local().format(i):f(/^\d+$/.test(t)?+t:t,i).format(i)},P=t=>{if(!t)return"";let r=f(t);return r.isValid()||(r=f(t,"HH:mm:ss")),r.isValid()||(r=f(`1999-01-01 ${t}`)),r.isValid()?r.format("HH:mm"):""},q=(t,r)=>{var n;const s=((n=d(r.meta))==null?void 0:n.duration)||0;return yt(t,s)},J=t=>t?`${t}%`:"",X=(t,r)=>{const s={currency_locale:"en-US",currency_code:"USD",...d(r.meta)};try{return t==null||isNaN(t)?t??"":new Intl.NumberFormat(s.currency_locale||"en-US",{style:"currency",currency:s.currency_code||"USD"}).format(+t)}catch{return t}},Y=t=>{if(!t)return"";const r=e!=null&&e.value.base_id?U.value.get(e==null?void 0:e.value.base_id)||[]:[];return typeof t=="string"?t.split(",").map(n=>{const i=r.find(a=>a.id===n||a.email===n);return i?i.display_name||i.email:n.id}).join(", "):Array.isArray(t)?t.map(s=>{const n=r.find(i=>i.id===s.id||i.email===s.email);return n?n.display_name||n.email:s.id}).join(", "):t?t.display_name||t.email:""},w=(t,r)=>{if(!t||isNaN(Number(t)))return"";const s=d(r.meta);return Number(t).toFixed((s==null?void 0:s.precision)??1)},G=t=>!t||isNaN(Number(t))?"":Number(t),z=(t,r)=>{var n;return(typeof r.meta=="string"?JSON.parse(r.meta).richMode:(n=r.meta)==null?void 0:n.richMode)?(t==null?void 0:t.replace(/[*_~\[\]]|<\/?[^>]+(>|$)/g,""))||"":t||""},E=(t,r)=>{var i,a,u;const s=r.colOptions;if(["count","avg","sum","countDistinct","sumDistinct","avgDistinct"].includes(s.rollup_function))return t;{const c=s.fk_relation_column_id?(a=(i=e==null?void 0:e.value.columns)==null?void 0:i.find(b=>b.id===s.fk_relation_column_id))==null?void 0:a.colOptions:null,m=(c==null?void 0:c.fk_related_model_id)&&((u=D.value)==null?void 0:u[c.fk_related_model_id]),o=m==null?void 0:m.columns.find(b=>b.id===s.fk_rollup_column_id);return y(t,o)}},Q=(t,r)=>{var u,c,m;const s=r.colOptions,n=s.fk_relation_column_id?(c=(u=e==null?void 0:e.value.columns)==null?void 0:u.find(o=>o.id===s.fk_relation_column_id))==null?void 0:c.colOptions:null,i=(n==null?void 0:n.fk_related_model_id)&&((m=D.value)==null?void 0:m[n.fk_related_model_id]),a=i==null?void 0:i.columns.find(o=>o.id===s.fk_lookup_column_id);return Array.isArray(t)?t.map(o=>y(o,a)).join(", "):y(t,a)},W=t=>Array.isArray(t)?t.map(r=>`${r.title}`).join(", "):t,v=(t,r)=>{var n,i;typeof r.meta=="string"&&(r.meta=JSON.parse(r.meta));const s=+t||0;return s?s===1?`1 ${((n=r==null?void 0:r.meta)==null?void 0:n.singular)||k("general.link")}`:`${s} ${((i=r==null?void 0:r.meta)==null?void 0:i.plural)||k("general.links")}`:""},y=(t,r)=>{var s,n,i;if(!r)return"";if(gt(r)){const[a,u]=(t||"").split(";");return a&&u?`${a}; ${u}`:t}return bt(r)?z(t,r):kt(r,_)?L(t)?"Checked":"Unchecked":Dt(r)?R(t,r):St(r,_)?S(t,r):Yt(r,_)?I(t):Nt(r,_)?x(t,r):ht(r,_)?P(t):At(r)?q(t,r):Tt(r)?J(t):Bt(r)?X(t,r):Mt(r)?Y(t):$t(r)?w(t,r):Ct(r,_)?G(t):Ut(r)?JSON.stringify(t,null,2):Ft(r)?E(t,r):Ot(r)||Ht(r.uidt,r.colOptions)?Q(t,r):ot(r)?S(t,r,!0):pt(r)?Y(t):jt(r)?W(t):Lt(r)?v(t,r):Rt(r)&&((s=r==null?void 0:r.meta)!=null&&s.display_type)?y(t,{uidt:(n=r==null?void 0:r.meta)==null?void 0:n.display_type,...(i=r==null?void 0:r.meta)==null?void 0:i.display_column_meta}):t};return(t,r)=>(et(),at("span",{class:ct(["plain-cell before:px-1",{"!font-bold":t.bold,italic:t.italic,underline:t.underline}]),"data-testid":"nc-plain-cell"},ut(y(t.modelValue,ft(p))),3))}}),Xt=dt(It,[["__scopeId","data-v-81ca85b4"]]);export{Xt as default};
1
+ import{e as K,S as Z,cH as l,bf as V,bd as tt,t as rt,aF as T,aG as B,be as st,r as nt,f as it,k as et,a8 as at,aT as ut,p as ft,aU as ct,cS as ot,cT as pt,bi as d,W as f,X as _t,Y as mt,aQ as dt}from"./NHZFd8bQ.js";import{c as yt}from"./C9Sjn86N.js";import{e as gt,j as bt,h as kt,F as Dt,c as St,l as Yt,d as Nt,m as ht,t as At,u as Tt,s as Bt,w as Mt,p as $t,x as Ct,b as Ut,o as jt}from"./BjIWxehG.js";import{e as Ft,d as Ot,f as Ht,g as Lt,h as Rt}from"./B33qDdnq.js";const It=K({__name:"PlainCell",props:{column:{},modelValue:{},bold:{type:[Number,Boolean,null]},italic:{type:[Number,Boolean,null]},underline:{type:[Number,Boolean,null]}},setup(M){var N,h,A;const $=M,e=Z(l),{t:k}=V(),{metas:D}=tt(),p=rt($,"column"),{sqlUis:g}=T(B()),C=st(),{basesUser:U}=T(C),{isXcdbBase:j,isMssql:F,isMysql:O}=B(),H=nt((N=p.value)!=null&&N.source_id&&g.value[(h=p.value)==null?void 0:h.source_id]?g.value[(A=p.value)==null?void 0:A.source_id]:Object.values(g.value)[0]),_=it(()=>p.value&&H.value.getAbstractType(p.value)),L=t=>!!t&&t!=="0"&&t!==0&&t!=="false",R=(t,r)=>t?t?Array.isArray(t)?t.join(", "):t.toString():O(r.source_id)?t.toString().split(",").join(", "):t.split(", "):"",S=(t,r,s)=>{var i;const n=s?"YYYY-MM-DD HH:mm:ss":((i=d(r.meta))==null?void 0:i.date_format)??"YYYY-MM-DD";return!t||!f(t).isValid()?"":f(/^\d+$/.test(String(t))?+t:t).format(n)},I=t=>t&&f(t).isValid()?f(t.toString(),"YYYY").format("YYYY"):"",x=(t,r)=>{var u,c;if(!t||!f(t).isValid())return"";const s=((u=d(r==null?void 0:r.meta))==null?void 0:u.date_format)??_t[0],n=((c=d(r==null?void 0:r.meta))==null?void 0:c.time_format)??mt[0],i=`${s} ${n}`;return j(r.source_id)?F(r.source_id)?f(t,i).format(i):f(t).utc().local().format(i):f(/^\d+$/.test(t)?+t:t,i).format(i)},P=t=>{if(!t)return"";let r=f(t);return r.isValid()||(r=f(t,"HH:mm:ss")),r.isValid()||(r=f(`1999-01-01 ${t}`)),r.isValid()?r.format("HH:mm"):""},q=(t,r)=>{var n;const s=((n=d(r.meta))==null?void 0:n.duration)||0;return yt(t,s)},J=t=>t?`${t}%`:"",X=(t,r)=>{const s={currency_locale:"en-US",currency_code:"USD",...d(r.meta)};try{return t==null||isNaN(t)?t??"":new Intl.NumberFormat(s.currency_locale||"en-US",{style:"currency",currency:s.currency_code||"USD"}).format(+t)}catch{return t}},Y=t=>{if(!t)return"";const r=e!=null&&e.value.base_id?U.value.get(e==null?void 0:e.value.base_id)||[]:[];return typeof t=="string"?t.split(",").map(n=>{const i=r.find(a=>a.id===n||a.email===n);return i?i.display_name||i.email:n.id}).join(", "):Array.isArray(t)?t.map(s=>{const n=r.find(i=>i.id===s.id||i.email===s.email);return n?n.display_name||n.email:s.id}).join(", "):t?t.display_name||t.email:""},w=(t,r)=>{if(!t||isNaN(Number(t)))return"";const s=d(r.meta);return Number(t).toFixed((s==null?void 0:s.precision)??1)},G=t=>!t||isNaN(Number(t))?"":Number(t),z=(t,r)=>{var n;return(typeof r.meta=="string"?JSON.parse(r.meta).richMode:(n=r.meta)==null?void 0:n.richMode)?(t==null?void 0:t.replace(/[*_~\[\]]|<\/?[^>]+(>|$)/g,""))||"":t||""},E=(t,r)=>{var i,a,u;const s=r.colOptions;if(["count","avg","sum","countDistinct","sumDistinct","avgDistinct"].includes(s.rollup_function))return t;{const c=s.fk_relation_column_id?(a=(i=e==null?void 0:e.value.columns)==null?void 0:i.find(b=>b.id===s.fk_relation_column_id))==null?void 0:a.colOptions:null,m=(c==null?void 0:c.fk_related_model_id)&&((u=D.value)==null?void 0:u[c.fk_related_model_id]),o=m==null?void 0:m.columns.find(b=>b.id===s.fk_rollup_column_id);return y(t,o)}},Q=(t,r)=>{var u,c,m;const s=r.colOptions,n=s.fk_relation_column_id?(c=(u=e==null?void 0:e.value.columns)==null?void 0:u.find(o=>o.id===s.fk_relation_column_id))==null?void 0:c.colOptions:null,i=(n==null?void 0:n.fk_related_model_id)&&((m=D.value)==null?void 0:m[n.fk_related_model_id]),a=i==null?void 0:i.columns.find(o=>o.id===s.fk_lookup_column_id);return Array.isArray(t)?t.map(o=>y(o,a)).join(", "):y(t,a)},W=t=>Array.isArray(t)?t.map(r=>`${r.title}`).join(", "):t,v=(t,r)=>{var n,i;typeof r.meta=="string"&&(r.meta=JSON.parse(r.meta));const s=+t||0;return s?s===1?`1 ${((n=r==null?void 0:r.meta)==null?void 0:n.singular)||k("general.link")}`:`${s} ${((i=r==null?void 0:r.meta)==null?void 0:i.plural)||k("general.links")}`:""},y=(t,r)=>{var s,n,i;if(!r)return"";if(gt(r)){const[a,u]=(t||"").split(";");return a&&u?`${a}; ${u}`:t}return bt(r)?z(t,r):kt(r,_)?L(t)?"Checked":"Unchecked":Dt(r)?R(t,r):St(r,_)?S(t,r):Yt(r,_)?I(t):Nt(r,_)?x(t,r):ht(r,_)?P(t):At(r)?q(t,r):Tt(r)?J(t):Bt(r)?X(t,r):Mt(r)?Y(t):$t(r)?w(t,r):Ct(r,_)?G(t):Ut(r)?JSON.stringify(t,null,2):Ft(r)?E(t,r):Ot(r)||Ht(r.uidt,r.colOptions)?Q(t,r):ot(r)?S(t,r,!0):pt(r)?Y(t):jt(r)?W(t):Lt(r)?v(t,r):Rt(r)&&((s=r==null?void 0:r.meta)!=null&&s.display_type)?y(t,{uidt:(n=r==null?void 0:r.meta)==null?void 0:n.display_type,...(i=r==null?void 0:r.meta)==null?void 0:i.display_column_meta}):t};return(t,r)=>(et(),at("span",{class:ct(["plain-cell before:px-1",{"!font-bold":t.bold,italic:t.italic,underline:t.underline}]),"data-testid":"nc-plain-cell"},ut(y(t.modelValue,ft(p))),3))}}),Xt=dt(It,[["__scopeId","data-v-81ca85b4"]]);export{Xt as default};
@@ -1,2 +1,2 @@
1
- const __vite__fileDeps=["./3jIF1AyF.js","./D0skW1jq.js","./entry.6uu-XYG8.css","./clwBgde6.js","./TGNXCWG6.js","./DRPzkOuH.js","./DKgzeeDD.js","./boyBAVNN.js","./D5LgkGGj.js","./Wfb3YMK3.js","./Cell.DfaUiQpP.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{e as D,R as I,r as u,c0 as M,u as y,$,b as B,p as t,k as c,a8 as V,z as p,m as S,a9 as l,aT as m,c6 as E,aI as s,l as N,aB as R,aC as T,b1 as z,aD as P,aA as U,aV as A,aW as L}from"./D0skW1jq.js";import{u as j}from"./clwBgde6.js";import"./TGNXCWG6.js";import"./DRPzkOuH.js";import"./DKgzeeDD.js";import"./boyBAVNN.js";import"./D5LgkGGj.js";const F=P(()=>U(()=>import("./3jIF1AyF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(n=>n.default||n)),G={key:0},O={class:"flex items-center gap-2"},W={key:1},Y={class:"w-full flex items-center gap-2 mb-2"},q={class:"text-small leading-[18px] flex-1 text-gray-700"},H={class:"flex flex-row gap-2"},J={class:"nc-default-value-wrapper border-1 flex items-center w-full px-3 border-gray-300 rounded-lg sm:min-h-[32px] xs:min-h-13 flex items-center focus-within:border-brand-500 focus-within:shadow-selected focus-within:ring-0 transition-all duration-0.3s"},oe=D({__name:"DefaultValue",props:{value:{},isVisibleDefaultValueInput:{type:Boolean}},emits:["update:value","update:isVisibleDefaultValueInput"],setup(n,{emit:b}){var w;const f=n,v=b;I(M,u(!0));const o=y(f,"value",v),_=y(f,"isVisibleDefaultValueInput",v),x=u({row:{},oldRow:{},rowMeta:{isUpdatedFromCopyNPaste:[(w=o.value)==null?void 0:w.title]}});j(x);const r=u(null),h=u(!1),d=e=>{o.value={...o.value,cdf:e},r.value=e};return $(()=>{var e;d(((e=o.value)==null?void 0:e.cdf)??null)}),B(()=>o.value.cdf,e=>{r.value=e}),(e,a)=>{const g=A,C=L,k=F;return t(_)?(c(),V("div",W,[l("div",Y,[l("div",q,m(e.$t("placeholder.defaultValue")),1)]),l("div",H,[l("div",J,[p(k,{"edit-enabled":!0,"model-value":t(r),column:t(o),class:"!border-none h-auto my-auto","onUpdate:cdf":d,"onUpdate:editEnabled":a[1]||(a[1]=i=>h.value=i),onClick:a[2]||(a[2]=i=>h.value=!0)},null,8,["model-value","column"]),[t(s).Year,t(s).Date,t(s).Time,t(s).DateTime,t(s).SingleSelect,t(s).MultiSelect].includes(t(o).uidt)?z("",!0):(c(),N(R(("iconMap"in e?e.iconMap:t(T)).close),{key:0,class:"w-4 h-4 cursor-pointer rounded-full !text-black-500 text-gray-500 cursor-pointer hover:bg-gray-50",onClick:a[3]||(a[3]=i=>d(null))}))])])])):(c(),V("div",G,[p(C,{size:"small",type:"text",class:"!text-gray-500 !hover:text-gray-700","data-testid":"nc-show-default-value-btn",onClick:a[0]||(a[0]=E(i=>_.value=!0,["stop"]))},{default:S(()=>[l("div",O,[l("span",null,m(e.$t("general.set"))+" "+m(e.$t("placeholder.defaultValue").toLowerCase()),1),p(g,{icon:"plus",class:"flex-none h-4 w-4"})])]),_:1})]))}}});export{oe as default};
1
+ const __vite__fileDeps=["./Bi74c53l.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./l2p4hKoB.js","./C5YDuKgZ.js","./BPXkp7pR.js","./B33qDdnq.js","./boyBAVNN.js","./BWn3cSKa.js","./BjIWxehG.js","./Cell.DfaUiQpP.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{e as D,R as I,r as u,c0 as M,u as y,$,b as B,p as t,k as c,a8 as V,z as p,m as S,a9 as l,aT as m,c6 as E,aI as s,l as N,aB as R,aC as T,b1 as z,aD as P,aA as U,aV as A,aW as L}from"./NHZFd8bQ.js";import{u as j}from"./l2p4hKoB.js";import"./C5YDuKgZ.js";import"./BPXkp7pR.js";import"./B33qDdnq.js";import"./boyBAVNN.js";import"./BWn3cSKa.js";const F=P(()=>U(()=>import("./Bi74c53l.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(n=>n.default||n)),G={key:0},O={class:"flex items-center gap-2"},W={key:1},Y={class:"w-full flex items-center gap-2 mb-2"},q={class:"text-small leading-[18px] flex-1 text-gray-700"},H={class:"flex flex-row gap-2"},J={class:"nc-default-value-wrapper border-1 flex items-center w-full px-3 border-gray-300 rounded-lg sm:min-h-[32px] xs:min-h-13 flex items-center focus-within:border-brand-500 focus-within:shadow-selected focus-within:ring-0 transition-all duration-0.3s"},oe=D({__name:"DefaultValue",props:{value:{},isVisibleDefaultValueInput:{type:Boolean}},emits:["update:value","update:isVisibleDefaultValueInput"],setup(n,{emit:b}){var w;const f=n,v=b;I(M,u(!0));const o=y(f,"value",v),_=y(f,"isVisibleDefaultValueInput",v),x=u({row:{},oldRow:{},rowMeta:{isUpdatedFromCopyNPaste:[(w=o.value)==null?void 0:w.title]}});j(x);const r=u(null),h=u(!1),d=e=>{o.value={...o.value,cdf:e},r.value=e};return $(()=>{var e;d(((e=o.value)==null?void 0:e.cdf)??null)}),B(()=>o.value.cdf,e=>{r.value=e}),(e,a)=>{const g=A,C=L,k=F;return t(_)?(c(),V("div",W,[l("div",Y,[l("div",q,m(e.$t("placeholder.defaultValue")),1)]),l("div",H,[l("div",J,[p(k,{"edit-enabled":!0,"model-value":t(r),column:t(o),class:"!border-none h-auto my-auto","onUpdate:cdf":d,"onUpdate:editEnabled":a[1]||(a[1]=i=>h.value=i),onClick:a[2]||(a[2]=i=>h.value=!0)},null,8,["model-value","column"]),[t(s).Year,t(s).Date,t(s).Time,t(s).DateTime,t(s).SingleSelect,t(s).MultiSelect].includes(t(o).uidt)?z("",!0):(c(),N(R(("iconMap"in e?e.iconMap:t(T)).close),{key:0,class:"w-4 h-4 cursor-pointer rounded-full !text-black-500 text-gray-500 cursor-pointer hover:bg-gray-50",onClick:a[3]||(a[3]=i=>d(null))}))])])])):(c(),V("div",G,[p(C,{size:"small",type:"text",class:"!text-gray-500 !hover:text-gray-700","data-testid":"nc-show-default-value-btn",onClick:a[0]||(a[0]=E(i=>_.value=!0,["stop"]))},{default:S(()=>[l("div",O,[l("span",null,m(e.$t("general.set"))+" "+m(e.$t("placeholder.defaultValue").toLowerCase()),1),p(g,{icon:"plus",class:"flex-none h-4 w-4"})])]),_:1})]))}}});export{oe as default};
@@ -1 +1 @@
1
- import{ad as T,r as l,f as b,az as t}from"./D0skW1jq.js";const $=T("tabStore",()=>{const e=l([]),i=b({get(){return 0},set(a){}}),s=b(()=>({})),d=async a=>{};return{tabs:e,addTab:d,activeTabIndex:i,activeTab:s,clearTabs:()=>{e.value=[]},closeTab:async a=>{},updateTab:(a,n)=>{},addErdTab:async(a,n)=>d({id:`${t.ERD}-${a==null?void 0:a.id}`,type:t.ERD,title:`ERD${a!=null&&a.alias?` (${a.alias})`:`(${n})`}`,tabMeta:{source:a},baseId:a.base_id}),addSqlEditorTab:async a=>d({id:`${t.SQL}-${a.id}`,type:t.SQL,title:`SQL Editor (${a.title})`,tabMeta:{base:a},baseId:a.id})}});export{$ as u};
1
+ import{ad as T,r as l,f as b,az as t}from"./NHZFd8bQ.js";const $=T("tabStore",()=>{const e=l([]),i=b({get(){return 0},set(a){}}),s=b(()=>({})),d=async a=>{};return{tabs:e,addTab:d,activeTabIndex:i,activeTab:s,clearTabs:()=>{e.value=[]},closeTab:async a=>{},updateTab:(a,n)=>{},addErdTab:async(a,n)=>d({id:`${t.ERD}-${a==null?void 0:a.id}`,type:t.ERD,title:`ERD${a!=null&&a.alias?` (${a.alias})`:`(${n})`}`,tabMeta:{source:a},baseId:a.base_id}),addSqlEditorTab:async a=>d({id:`${t.SQL}-${a.id}`,type:t.SQL,title:`SQL Editor (${a.title})`,tabMeta:{base:a},baseId:a.id})}});export{$ as u};
@@ -1,2 +1,2 @@
1
- const __vite__fileDeps=["./scxxAgRq.js","./D0skW1jq.js","./entry.6uu-XYG8.css","./DHL8lIZa.js","./DeleteModal.SEMJ_gSK.css","./DSo-2nFJ.js","./D-3pY83G.js","./D64AfRxx.js","./BipOdpcd.js","./CxsGCxm3.js","./CY-umpv2.js","./CJL5s59L.js","./BQQOEPN4.js","./VaTSRx_Q.js","./BzcRdSjL.js","./TGNXCWG6.js","./DRPzkOuH.js","./DKgzeeDD.js","./boyBAVNN.js","./D5LgkGGj.js","./Dp03Bz--.js","./Cr8Q8tPu.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{e as f,bg as V,bE as h,r as v,cE as l,bo as E,p as n,k as i,a8 as k,z as x,b_ as A,bO as b,l as L,aD as p,bq as R,aA as u}from"./D0skW1jq.js";const z=p(()=>u(()=>import("./scxxAgRq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(e=>e.default||e)),P=p(()=>u(()=>import("./VaTSRx_Q.js"),__vite__mapDeps([13,1,2,14,15,16,17,18,19,20,21]),import.meta.url).then(e=>e.default||e)),S={key:0},C=f({__name:"index",async setup(e){var r;let t,s;const d=V(),{loadSharedView:c}=h(),a=v(!1);try{[t,s]=l(()=>c(d.params.viewId)),await t,s()}catch(o){((r=o==null?void 0:o.response)==null?void 0:r.status)===403?a.value=!0:E.error(([t,s]=l(()=>R(o)),t=await t,s(),t))}return(o,_)=>{const m=z,w=P;return n(a)?(i(),k("div",S,[x(m,{modelValue:n(a),"onUpdate:modelValue":_[0]||(_[0]=y=>A(a)?a.value=y:null),"view-type":n(b).GALLERY},null,8,["modelValue","view-type"])])):(i(),L(w,{key:1}))}}});export{C as default};
1
+ const __vite__fileDeps=["./CNurVxTA.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./C6c9Dspn.js","./DeleteModal.SEMJ_gSK.css","./C17-0Owd.js","./BDlHzTvk.js","./B_LFFdI9.js","./BZfcRRAG.js","./DvgZT7js.js","./Ckrtr2Si.js","./LrQ3PXSl.js","./BQQOEPN4.js","./BV0H6cZy.js","./Dl_k7PcY.js","./C5YDuKgZ.js","./BPXkp7pR.js","./B33qDdnq.js","./boyBAVNN.js","./BWn3cSKa.js","./CpVxdhe3.js","./DFLo1Tyf.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{e as f,bg as V,bE as h,r as v,cE as l,bo as E,p as n,k as i,a8 as k,z as x,b_ as A,bO as b,l as L,aD as p,bq as R,aA as u}from"./NHZFd8bQ.js";const z=p(()=>u(()=>import("./CNurVxTA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(e=>e.default||e)),P=p(()=>u(()=>import("./BV0H6cZy.js"),__vite__mapDeps([13,1,2,14,15,16,17,18,19,20,21]),import.meta.url).then(e=>e.default||e)),S={key:0},C=f({__name:"index",async setup(e){var r;let t,s;const d=V(),{loadSharedView:c}=h(),a=v(!1);try{[t,s]=l(()=>c(d.params.viewId)),await t,s()}catch(o){((r=o==null?void 0:o.response)==null?void 0:r.status)===403?a.value=!0:E.error(([t,s]=l(()=>R(o)),t=await t,s(),t))}return(o,_)=>{const m=z,w=P;return n(a)?(i(),k("div",S,[x(m,{modelValue:n(a),"onUpdate:modelValue":_[0]||(_[0]=y=>A(a)?a.value=y:null),"view-type":n(b).GALLERY},null,8,["modelValue","view-type"])])):(i(),L(w,{key:1}))}}});export{C as default};