@selvajs/selva 2.0.0

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 (769) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/build/client/_app/immutable/assets/0.B0phAlf7.css +1 -0
  4. package/build/client/_app/immutable/assets/0.B0phAlf7.css.br +0 -0
  5. package/build/client/_app/immutable/assets/0.B0phAlf7.css.gz +0 -0
  6. package/build/client/_app/immutable/assets/20.DzF5JyuX.css +1 -0
  7. package/build/client/_app/immutable/assets/20.DzF5JyuX.css.br +0 -0
  8. package/build/client/_app/immutable/assets/20.DzF5JyuX.css.gz +0 -0
  9. package/build/client/_app/immutable/assets/index.CV-KWLNP.css +1 -0
  10. package/build/client/_app/immutable/assets/index.CV-KWLNP.css.br +1 -0
  11. package/build/client/_app/immutable/assets/index.CV-KWLNP.css.gz +0 -0
  12. package/build/client/_app/immutable/chunks/1s2jTHrf.js +1 -0
  13. package/build/client/_app/immutable/chunks/1s2jTHrf.js.br +0 -0
  14. package/build/client/_app/immutable/chunks/1s2jTHrf.js.gz +0 -0
  15. package/build/client/_app/immutable/chunks/2XlIPTRw.js +1 -0
  16. package/build/client/_app/immutable/chunks/2XlIPTRw.js.br +1 -0
  17. package/build/client/_app/immutable/chunks/2XlIPTRw.js.gz +0 -0
  18. package/build/client/_app/immutable/chunks/2_FEXmq1.js +9 -0
  19. package/build/client/_app/immutable/chunks/2_FEXmq1.js.br +0 -0
  20. package/build/client/_app/immutable/chunks/2_FEXmq1.js.gz +0 -0
  21. package/build/client/_app/immutable/chunks/2dX6Wjni.js +1 -0
  22. package/build/client/_app/immutable/chunks/2dX6Wjni.js.br +0 -0
  23. package/build/client/_app/immutable/chunks/2dX6Wjni.js.gz +0 -0
  24. package/build/client/_app/immutable/chunks/4tskcAVN.js +1 -0
  25. package/build/client/_app/immutable/chunks/4tskcAVN.js.br +0 -0
  26. package/build/client/_app/immutable/chunks/4tskcAVN.js.gz +0 -0
  27. package/build/client/_app/immutable/chunks/4y4xLOS_.js +1 -0
  28. package/build/client/_app/immutable/chunks/4y4xLOS_.js.br +0 -0
  29. package/build/client/_app/immutable/chunks/4y4xLOS_.js.gz +0 -0
  30. package/build/client/_app/immutable/chunks/AEyooZaf.js +1 -0
  31. package/build/client/_app/immutable/chunks/AEyooZaf.js.br +0 -0
  32. package/build/client/_app/immutable/chunks/AEyooZaf.js.gz +0 -0
  33. package/build/client/_app/immutable/chunks/B1aRL9Hz.js +1 -0
  34. package/build/client/_app/immutable/chunks/B1aRL9Hz.js.br +0 -0
  35. package/build/client/_app/immutable/chunks/B1aRL9Hz.js.gz +0 -0
  36. package/build/client/_app/immutable/chunks/B8uG8z2c.js +1 -0
  37. package/build/client/_app/immutable/chunks/B8uG8z2c.js.br +0 -0
  38. package/build/client/_app/immutable/chunks/B8uG8z2c.js.gz +0 -0
  39. package/build/client/_app/immutable/chunks/B8zY50Bc.js +1 -0
  40. package/build/client/_app/immutable/chunks/B8zY50Bc.js.br +5 -0
  41. package/build/client/_app/immutable/chunks/B8zY50Bc.js.gz +0 -0
  42. package/build/client/_app/immutable/chunks/BCse3N0b.js +1 -0
  43. package/build/client/_app/immutable/chunks/BCse3N0b.js.br +0 -0
  44. package/build/client/_app/immutable/chunks/BCse3N0b.js.gz +0 -0
  45. package/build/client/_app/immutable/chunks/BFXFuY-o.js +3 -0
  46. package/build/client/_app/immutable/chunks/BFXFuY-o.js.br +0 -0
  47. package/build/client/_app/immutable/chunks/BFXFuY-o.js.gz +0 -0
  48. package/build/client/_app/immutable/chunks/BGxzXVpM.js +1 -0
  49. package/build/client/_app/immutable/chunks/BGxzXVpM.js.br +0 -0
  50. package/build/client/_app/immutable/chunks/BGxzXVpM.js.gz +0 -0
  51. package/build/client/_app/immutable/chunks/BM4_iXSA.js +1 -0
  52. package/build/client/_app/immutable/chunks/BM4_iXSA.js.br +0 -0
  53. package/build/client/_app/immutable/chunks/BM4_iXSA.js.gz +0 -0
  54. package/build/client/_app/immutable/chunks/BMGykAfL.js +2 -0
  55. package/build/client/_app/immutable/chunks/BMGykAfL.js.br +0 -0
  56. package/build/client/_app/immutable/chunks/BMGykAfL.js.gz +0 -0
  57. package/build/client/_app/immutable/chunks/BNScKugQ.js +1 -0
  58. package/build/client/_app/immutable/chunks/BNScKugQ.js.br +0 -0
  59. package/build/client/_app/immutable/chunks/BNScKugQ.js.gz +0 -0
  60. package/build/client/_app/immutable/chunks/BNzEBMy8.js +1 -0
  61. package/build/client/_app/immutable/chunks/BNzEBMy8.js.br +0 -0
  62. package/build/client/_app/immutable/chunks/BNzEBMy8.js.gz +0 -0
  63. package/build/client/_app/immutable/chunks/BU9URCkw.js +1 -0
  64. package/build/client/_app/immutable/chunks/BU9URCkw.js.br +0 -0
  65. package/build/client/_app/immutable/chunks/BU9URCkw.js.gz +0 -0
  66. package/build/client/_app/immutable/chunks/BW4xleRz.js +1 -0
  67. package/build/client/_app/immutable/chunks/BW4xleRz.js.br +0 -0
  68. package/build/client/_app/immutable/chunks/BW4xleRz.js.gz +0 -0
  69. package/build/client/_app/immutable/chunks/BZmrLQwT.js +1 -0
  70. package/build/client/_app/immutable/chunks/BZmrLQwT.js.br +0 -0
  71. package/build/client/_app/immutable/chunks/BZmrLQwT.js.gz +0 -0
  72. package/build/client/_app/immutable/chunks/B_Lmgh7q.js +1 -0
  73. package/build/client/_app/immutable/chunks/B_Lmgh7q.js.br +0 -0
  74. package/build/client/_app/immutable/chunks/B_Lmgh7q.js.gz +0 -0
  75. package/build/client/_app/immutable/chunks/BapAUJpM.js +1 -0
  76. package/build/client/_app/immutable/chunks/BapAUJpM.js.br +0 -0
  77. package/build/client/_app/immutable/chunks/BapAUJpM.js.gz +0 -0
  78. package/build/client/_app/immutable/chunks/Bb9xebuT.js +1 -0
  79. package/build/client/_app/immutable/chunks/Bb9xebuT.js.br +0 -0
  80. package/build/client/_app/immutable/chunks/Bb9xebuT.js.gz +0 -0
  81. package/build/client/_app/immutable/chunks/BjkQG7dw.js +1 -0
  82. package/build/client/_app/immutable/chunks/BjkQG7dw.js.br +0 -0
  83. package/build/client/_app/immutable/chunks/BjkQG7dw.js.gz +0 -0
  84. package/build/client/_app/immutable/chunks/Bmz9gLBz.js +1 -0
  85. package/build/client/_app/immutable/chunks/Bmz9gLBz.js.br +0 -0
  86. package/build/client/_app/immutable/chunks/Bmz9gLBz.js.gz +0 -0
  87. package/build/client/_app/immutable/chunks/Bnpwcepm.js +1 -0
  88. package/build/client/_app/immutable/chunks/Bnpwcepm.js.br +0 -0
  89. package/build/client/_app/immutable/chunks/Bnpwcepm.js.gz +0 -0
  90. package/build/client/_app/immutable/chunks/BoR6OKl6.js +1 -0
  91. package/build/client/_app/immutable/chunks/BoR6OKl6.js.br +0 -0
  92. package/build/client/_app/immutable/chunks/BoR6OKl6.js.gz +0 -0
  93. package/build/client/_app/immutable/chunks/Br5bpmJC.js +1 -0
  94. package/build/client/_app/immutable/chunks/Br5bpmJC.js.br +0 -0
  95. package/build/client/_app/immutable/chunks/Br5bpmJC.js.gz +0 -0
  96. package/build/client/_app/immutable/chunks/BxCHY0iG.js +1 -0
  97. package/build/client/_app/immutable/chunks/BxCHY0iG.js.br +0 -0
  98. package/build/client/_app/immutable/chunks/BxCHY0iG.js.gz +0 -0
  99. package/build/client/_app/immutable/chunks/C1Sz0rtw.js +1 -0
  100. package/build/client/_app/immutable/chunks/C1Sz0rtw.js.br +0 -0
  101. package/build/client/_app/immutable/chunks/C1Sz0rtw.js.gz +0 -0
  102. package/build/client/_app/immutable/chunks/C1aQuqo_.js +2 -0
  103. package/build/client/_app/immutable/chunks/C1aQuqo_.js.br +0 -0
  104. package/build/client/_app/immutable/chunks/C1aQuqo_.js.gz +0 -0
  105. package/build/client/_app/immutable/chunks/C26nmevH.js +1 -0
  106. package/build/client/_app/immutable/chunks/C26nmevH.js.br +0 -0
  107. package/build/client/_app/immutable/chunks/C26nmevH.js.gz +0 -0
  108. package/build/client/_app/immutable/chunks/C8ko2SLk.js +1 -0
  109. package/build/client/_app/immutable/chunks/C8ko2SLk.js.br +0 -0
  110. package/build/client/_app/immutable/chunks/C8ko2SLk.js.gz +0 -0
  111. package/build/client/_app/immutable/chunks/CAMhfNhW.js +1 -0
  112. package/build/client/_app/immutable/chunks/CAMhfNhW.js.br +0 -0
  113. package/build/client/_app/immutable/chunks/CAMhfNhW.js.gz +0 -0
  114. package/build/client/_app/immutable/chunks/CEnIp_6Y.js +1 -0
  115. package/build/client/_app/immutable/chunks/CEnIp_6Y.js.br +3 -0
  116. package/build/client/_app/immutable/chunks/CEnIp_6Y.js.gz +0 -0
  117. package/build/client/_app/immutable/chunks/CMjc_m7Z.js +1 -0
  118. package/build/client/_app/immutable/chunks/CMjc_m7Z.js.br +0 -0
  119. package/build/client/_app/immutable/chunks/CMjc_m7Z.js.gz +0 -0
  120. package/build/client/_app/immutable/chunks/CRRzXoPz.js +5 -0
  121. package/build/client/_app/immutable/chunks/CRRzXoPz.js.br +0 -0
  122. package/build/client/_app/immutable/chunks/CRRzXoPz.js.gz +0 -0
  123. package/build/client/_app/immutable/chunks/CXh1ITwj.js +1 -0
  124. package/build/client/_app/immutable/chunks/CXh1ITwj.js.br +0 -0
  125. package/build/client/_app/immutable/chunks/CXh1ITwj.js.gz +0 -0
  126. package/build/client/_app/immutable/chunks/CZ1oTCKP.js +1 -0
  127. package/build/client/_app/immutable/chunks/CZ1oTCKP.js.br +0 -0
  128. package/build/client/_app/immutable/chunks/CZ1oTCKP.js.gz +0 -0
  129. package/build/client/_app/immutable/chunks/Cbu9Tg11.js +1 -0
  130. package/build/client/_app/immutable/chunks/Cbu9Tg11.js.br +0 -0
  131. package/build/client/_app/immutable/chunks/Cbu9Tg11.js.gz +0 -0
  132. package/build/client/_app/immutable/chunks/CcYNc8-G.js +1 -0
  133. package/build/client/_app/immutable/chunks/CcYNc8-G.js.br +0 -0
  134. package/build/client/_app/immutable/chunks/CcYNc8-G.js.gz +0 -0
  135. package/build/client/_app/immutable/chunks/Cdcajer6.js +1 -0
  136. package/build/client/_app/immutable/chunks/Cdcajer6.js.br +0 -0
  137. package/build/client/_app/immutable/chunks/Cdcajer6.js.gz +0 -0
  138. package/build/client/_app/immutable/chunks/Ce2MupFq.js +1 -0
  139. package/build/client/_app/immutable/chunks/Ce2MupFq.js.br +0 -0
  140. package/build/client/_app/immutable/chunks/Ce2MupFq.js.gz +0 -0
  141. package/build/client/_app/immutable/chunks/CfP1DoGT.js +1 -0
  142. package/build/client/_app/immutable/chunks/CfP1DoGT.js.br +0 -0
  143. package/build/client/_app/immutable/chunks/CfP1DoGT.js.gz +0 -0
  144. package/build/client/_app/immutable/chunks/CfhPDo21.js +1 -0
  145. package/build/client/_app/immutable/chunks/CfhPDo21.js.br +1 -0
  146. package/build/client/_app/immutable/chunks/CfhPDo21.js.gz +0 -0
  147. package/build/client/_app/immutable/chunks/ChSMnQMB.js +2 -0
  148. package/build/client/_app/immutable/chunks/ChSMnQMB.js.br +0 -0
  149. package/build/client/_app/immutable/chunks/ChSMnQMB.js.gz +0 -0
  150. package/build/client/_app/immutable/chunks/CkW8YtSm.js +1 -0
  151. package/build/client/_app/immutable/chunks/CkW8YtSm.js.br +0 -0
  152. package/build/client/_app/immutable/chunks/CkW8YtSm.js.gz +0 -0
  153. package/build/client/_app/immutable/chunks/CoR7xVWs.js +1 -0
  154. package/build/client/_app/immutable/chunks/CoR7xVWs.js.br +0 -0
  155. package/build/client/_app/immutable/chunks/CoR7xVWs.js.gz +0 -0
  156. package/build/client/_app/immutable/chunks/CpGv0MSX.js +1 -0
  157. package/build/client/_app/immutable/chunks/CpGv0MSX.js.br +0 -0
  158. package/build/client/_app/immutable/chunks/CpGv0MSX.js.gz +0 -0
  159. package/build/client/_app/immutable/chunks/Cvr8AlQE.js +1 -0
  160. package/build/client/_app/immutable/chunks/Cvr8AlQE.js.br +0 -0
  161. package/build/client/_app/immutable/chunks/Cvr8AlQE.js.gz +0 -0
  162. package/build/client/_app/immutable/chunks/D0QMYypb.js +1 -0
  163. package/build/client/_app/immutable/chunks/D0QMYypb.js.br +0 -0
  164. package/build/client/_app/immutable/chunks/D0QMYypb.js.gz +0 -0
  165. package/build/client/_app/immutable/chunks/D40b34QZ.js +1 -0
  166. package/build/client/_app/immutable/chunks/D40b34QZ.js.br +0 -0
  167. package/build/client/_app/immutable/chunks/D40b34QZ.js.gz +0 -0
  168. package/build/client/_app/immutable/chunks/D6MI_dhi.js +1 -0
  169. package/build/client/_app/immutable/chunks/D6MI_dhi.js.br +0 -0
  170. package/build/client/_app/immutable/chunks/D6MI_dhi.js.gz +0 -0
  171. package/build/client/_app/immutable/chunks/D7PHp8xb.js +1 -0
  172. package/build/client/_app/immutable/chunks/D7PHp8xb.js.br +0 -0
  173. package/build/client/_app/immutable/chunks/D7PHp8xb.js.gz +0 -0
  174. package/build/client/_app/immutable/chunks/D7l1JayF.js +1 -0
  175. package/build/client/_app/immutable/chunks/D7l1JayF.js.br +0 -0
  176. package/build/client/_app/immutable/chunks/D7l1JayF.js.gz +0 -0
  177. package/build/client/_app/immutable/chunks/D99uXqZb.js +1 -0
  178. package/build/client/_app/immutable/chunks/D99uXqZb.js.br +0 -0
  179. package/build/client/_app/immutable/chunks/D99uXqZb.js.gz +0 -0
  180. package/build/client/_app/immutable/chunks/DEBBEmC0.js +1 -0
  181. package/build/client/_app/immutable/chunks/DEBBEmC0.js.br +0 -0
  182. package/build/client/_app/immutable/chunks/DEBBEmC0.js.gz +0 -0
  183. package/build/client/_app/immutable/chunks/DHWrMZkd.js +1 -0
  184. package/build/client/_app/immutable/chunks/DHWrMZkd.js.br +0 -0
  185. package/build/client/_app/immutable/chunks/DHWrMZkd.js.gz +0 -0
  186. package/build/client/_app/immutable/chunks/DNsLImlA.js +64 -0
  187. package/build/client/_app/immutable/chunks/DNsLImlA.js.br +0 -0
  188. package/build/client/_app/immutable/chunks/DNsLImlA.js.gz +0 -0
  189. package/build/client/_app/immutable/chunks/DRDjLZb3.js +1 -0
  190. package/build/client/_app/immutable/chunks/DRDjLZb3.js.br +3 -0
  191. package/build/client/_app/immutable/chunks/DRDjLZb3.js.gz +0 -0
  192. package/build/client/_app/immutable/chunks/DTJeGfAL.js +1 -0
  193. package/build/client/_app/immutable/chunks/DTJeGfAL.js.br +0 -0
  194. package/build/client/_app/immutable/chunks/DTJeGfAL.js.gz +0 -0
  195. package/build/client/_app/immutable/chunks/DZFqETAQ.js +1 -0
  196. package/build/client/_app/immutable/chunks/DZFqETAQ.js.br +0 -0
  197. package/build/client/_app/immutable/chunks/DZFqETAQ.js.gz +0 -0
  198. package/build/client/_app/immutable/chunks/D_wr-JLf.js +1 -0
  199. package/build/client/_app/immutable/chunks/D_wr-JLf.js.br +0 -0
  200. package/build/client/_app/immutable/chunks/D_wr-JLf.js.gz +0 -0
  201. package/build/client/_app/immutable/chunks/DdaJZmuM.js +1 -0
  202. package/build/client/_app/immutable/chunks/DdaJZmuM.js.br +0 -0
  203. package/build/client/_app/immutable/chunks/DdaJZmuM.js.gz +0 -0
  204. package/build/client/_app/immutable/chunks/Dl4WTuMB.js +1 -0
  205. package/build/client/_app/immutable/chunks/Dl4WTuMB.js.br +0 -0
  206. package/build/client/_app/immutable/chunks/Dl4WTuMB.js.gz +0 -0
  207. package/build/client/_app/immutable/chunks/Doks8ISn.js +1 -0
  208. package/build/client/_app/immutable/chunks/Doks8ISn.js.br +0 -0
  209. package/build/client/_app/immutable/chunks/Doks8ISn.js.gz +0 -0
  210. package/build/client/_app/immutable/chunks/DsnmJJEf.js +1 -0
  211. package/build/client/_app/immutable/chunks/DsnmJJEf.js.br +2 -0
  212. package/build/client/_app/immutable/chunks/DsnmJJEf.js.gz +0 -0
  213. package/build/client/_app/immutable/chunks/E3yOQTT0.js +1 -0
  214. package/build/client/_app/immutable/chunks/E3yOQTT0.js.br +0 -0
  215. package/build/client/_app/immutable/chunks/E3yOQTT0.js.gz +0 -0
  216. package/build/client/_app/immutable/chunks/Gxlzmh6y.js +1 -0
  217. package/build/client/_app/immutable/chunks/Gxlzmh6y.js.br +0 -0
  218. package/build/client/_app/immutable/chunks/Gxlzmh6y.js.gz +0 -0
  219. package/build/client/_app/immutable/chunks/Ib-7xmHT.js +1 -0
  220. package/build/client/_app/immutable/chunks/Ib-7xmHT.js.br +0 -0
  221. package/build/client/_app/immutable/chunks/Ib-7xmHT.js.gz +0 -0
  222. package/build/client/_app/immutable/chunks/P4Np3c9O.js +1 -0
  223. package/build/client/_app/immutable/chunks/P4Np3c9O.js.br +0 -0
  224. package/build/client/_app/immutable/chunks/P4Np3c9O.js.gz +0 -0
  225. package/build/client/_app/immutable/chunks/Zf7VV5ZB.js +1 -0
  226. package/build/client/_app/immutable/chunks/Zf7VV5ZB.js.br +0 -0
  227. package/build/client/_app/immutable/chunks/Zf7VV5ZB.js.gz +0 -0
  228. package/build/client/_app/immutable/chunks/_OLpdTiI.js +1 -0
  229. package/build/client/_app/immutable/chunks/_OLpdTiI.js.br +0 -0
  230. package/build/client/_app/immutable/chunks/_OLpdTiI.js.gz +0 -0
  231. package/build/client/_app/immutable/chunks/azBeeLR0.js +1 -0
  232. package/build/client/_app/immutable/chunks/azBeeLR0.js.br +0 -0
  233. package/build/client/_app/immutable/chunks/azBeeLR0.js.gz +0 -0
  234. package/build/client/_app/immutable/chunks/gMllmzma.js +1 -0
  235. package/build/client/_app/immutable/chunks/gMllmzma.js.br +0 -0
  236. package/build/client/_app/immutable/chunks/gMllmzma.js.gz +0 -0
  237. package/build/client/_app/immutable/chunks/hRoV10UM.js +1 -0
  238. package/build/client/_app/immutable/chunks/hRoV10UM.js.br +0 -0
  239. package/build/client/_app/immutable/chunks/hRoV10UM.js.gz +0 -0
  240. package/build/client/_app/immutable/chunks/iEBlyxZv.js +1 -0
  241. package/build/client/_app/immutable/chunks/iEBlyxZv.js.br +0 -0
  242. package/build/client/_app/immutable/chunks/iEBlyxZv.js.gz +0 -0
  243. package/build/client/_app/immutable/chunks/jFKgkeON.js +1 -0
  244. package/build/client/_app/immutable/chunks/jFKgkeON.js.br +0 -0
  245. package/build/client/_app/immutable/chunks/jFKgkeON.js.gz +0 -0
  246. package/build/client/_app/immutable/chunks/ooPBmYPj.js +1 -0
  247. package/build/client/_app/immutable/chunks/ooPBmYPj.js.br +0 -0
  248. package/build/client/_app/immutable/chunks/ooPBmYPj.js.gz +0 -0
  249. package/build/client/_app/immutable/chunks/pRg-f8xU.js +1 -0
  250. package/build/client/_app/immutable/chunks/pRg-f8xU.js.br +0 -0
  251. package/build/client/_app/immutable/chunks/pRg-f8xU.js.gz +0 -0
  252. package/build/client/_app/immutable/chunks/uINs3xv3.js +1 -0
  253. package/build/client/_app/immutable/chunks/uINs3xv3.js.br +0 -0
  254. package/build/client/_app/immutable/chunks/uINs3xv3.js.gz +0 -0
  255. package/build/client/_app/immutable/chunks/wamM80bu.js +1 -0
  256. package/build/client/_app/immutable/chunks/wamM80bu.js.br +0 -0
  257. package/build/client/_app/immutable/chunks/wamM80bu.js.gz +0 -0
  258. package/build/client/_app/immutable/entry/app.CY1cyDxx.js +2 -0
  259. package/build/client/_app/immutable/entry/app.CY1cyDxx.js.br +0 -0
  260. package/build/client/_app/immutable/entry/app.CY1cyDxx.js.gz +0 -0
  261. package/build/client/_app/immutable/entry/start.ByTVZFMZ.js +1 -0
  262. package/build/client/_app/immutable/entry/start.ByTVZFMZ.js.br +2 -0
  263. package/build/client/_app/immutable/entry/start.ByTVZFMZ.js.gz +0 -0
  264. package/build/client/_app/immutable/nodes/0.CQbbSrko.js +1 -0
  265. package/build/client/_app/immutable/nodes/0.CQbbSrko.js.br +0 -0
  266. package/build/client/_app/immutable/nodes/0.CQbbSrko.js.gz +0 -0
  267. package/build/client/_app/immutable/nodes/1.WcE6FOcF.js +1 -0
  268. package/build/client/_app/immutable/nodes/1.WcE6FOcF.js.br +0 -0
  269. package/build/client/_app/immutable/nodes/1.WcE6FOcF.js.gz +0 -0
  270. package/build/client/_app/immutable/nodes/10.Bl4yPogx.js +3 -0
  271. package/build/client/_app/immutable/nodes/10.Bl4yPogx.js.br +0 -0
  272. package/build/client/_app/immutable/nodes/10.Bl4yPogx.js.gz +0 -0
  273. package/build/client/_app/immutable/nodes/11.kVvSmSNV.js +2 -0
  274. package/build/client/_app/immutable/nodes/11.kVvSmSNV.js.br +0 -0
  275. package/build/client/_app/immutable/nodes/11.kVvSmSNV.js.gz +0 -0
  276. package/build/client/_app/immutable/nodes/12.BoPfAFdi.js +1 -0
  277. package/build/client/_app/immutable/nodes/12.BoPfAFdi.js.br +0 -0
  278. package/build/client/_app/immutable/nodes/12.BoPfAFdi.js.gz +0 -0
  279. package/build/client/_app/immutable/nodes/13.JyGUEsdb.js +2 -0
  280. package/build/client/_app/immutable/nodes/13.JyGUEsdb.js.br +0 -0
  281. package/build/client/_app/immutable/nodes/13.JyGUEsdb.js.gz +0 -0
  282. package/build/client/_app/immutable/nodes/14.BbJglRXt.js +2 -0
  283. package/build/client/_app/immutable/nodes/14.BbJglRXt.js.br +0 -0
  284. package/build/client/_app/immutable/nodes/14.BbJglRXt.js.gz +0 -0
  285. package/build/client/_app/immutable/nodes/15.94-Zje0s.js +13 -0
  286. package/build/client/_app/immutable/nodes/15.94-Zje0s.js.br +0 -0
  287. package/build/client/_app/immutable/nodes/15.94-Zje0s.js.gz +0 -0
  288. package/build/client/_app/immutable/nodes/16.DRADdurD.js +6 -0
  289. package/build/client/_app/immutable/nodes/16.DRADdurD.js.br +0 -0
  290. package/build/client/_app/immutable/nodes/16.DRADdurD.js.gz +0 -0
  291. package/build/client/_app/immutable/nodes/17.DOsqdwdd.js +2 -0
  292. package/build/client/_app/immutable/nodes/17.DOsqdwdd.js.br +0 -0
  293. package/build/client/_app/immutable/nodes/17.DOsqdwdd.js.gz +0 -0
  294. package/build/client/_app/immutable/nodes/18.BpVlwZ30.js +1 -0
  295. package/build/client/_app/immutable/nodes/18.BpVlwZ30.js.br +0 -0
  296. package/build/client/_app/immutable/nodes/18.BpVlwZ30.js.gz +0 -0
  297. package/build/client/_app/immutable/nodes/19.S2J54AdY.js +2 -0
  298. package/build/client/_app/immutable/nodes/19.S2J54AdY.js.br +0 -0
  299. package/build/client/_app/immutable/nodes/19.S2J54AdY.js.gz +0 -0
  300. package/build/client/_app/immutable/nodes/2.CKVtP2Ky.js +1 -0
  301. package/build/client/_app/immutable/nodes/2.CKVtP2Ky.js.br +0 -0
  302. package/build/client/_app/immutable/nodes/2.CKVtP2Ky.js.gz +0 -0
  303. package/build/client/_app/immutable/nodes/20.BCasu2g4.js +4116 -0
  304. package/build/client/_app/immutable/nodes/20.BCasu2g4.js.br +0 -0
  305. package/build/client/_app/immutable/nodes/20.BCasu2g4.js.gz +0 -0
  306. package/build/client/_app/immutable/nodes/21.C1aTaoAB.js +3 -0
  307. package/build/client/_app/immutable/nodes/21.C1aTaoAB.js.br +0 -0
  308. package/build/client/_app/immutable/nodes/21.C1aTaoAB.js.gz +0 -0
  309. package/build/client/_app/immutable/nodes/23.DP5Be3HR.js +16 -0
  310. package/build/client/_app/immutable/nodes/23.DP5Be3HR.js.br +0 -0
  311. package/build/client/_app/immutable/nodes/23.DP5Be3HR.js.gz +0 -0
  312. package/build/client/_app/immutable/nodes/24.BB6fXxnh.js +6 -0
  313. package/build/client/_app/immutable/nodes/24.BB6fXxnh.js.br +0 -0
  314. package/build/client/_app/immutable/nodes/24.BB6fXxnh.js.gz +0 -0
  315. package/build/client/_app/immutable/nodes/25.oeBaWIUn.js +1 -0
  316. package/build/client/_app/immutable/nodes/25.oeBaWIUn.js.br +0 -0
  317. package/build/client/_app/immutable/nodes/25.oeBaWIUn.js.gz +0 -0
  318. package/build/client/_app/immutable/nodes/26.lPx5SjN1.js +3 -0
  319. package/build/client/_app/immutable/nodes/26.lPx5SjN1.js.br +0 -0
  320. package/build/client/_app/immutable/nodes/26.lPx5SjN1.js.gz +0 -0
  321. package/build/client/_app/immutable/nodes/27.DB7PVQXo.js +4 -0
  322. package/build/client/_app/immutable/nodes/27.DB7PVQXo.js.br +0 -0
  323. package/build/client/_app/immutable/nodes/27.DB7PVQXo.js.gz +0 -0
  324. package/build/client/_app/immutable/nodes/28.Cf2R7A3f.js +4 -0
  325. package/build/client/_app/immutable/nodes/28.Cf2R7A3f.js.br +0 -0
  326. package/build/client/_app/immutable/nodes/28.Cf2R7A3f.js.gz +0 -0
  327. package/build/client/_app/immutable/nodes/29.CyJS5sye.js +2 -0
  328. package/build/client/_app/immutable/nodes/29.CyJS5sye.js.br +0 -0
  329. package/build/client/_app/immutable/nodes/29.CyJS5sye.js.gz +0 -0
  330. package/build/client/_app/immutable/nodes/3.DWyky0UV.js +1 -0
  331. package/build/client/_app/immutable/nodes/3.DWyky0UV.js.br +0 -0
  332. package/build/client/_app/immutable/nodes/3.DWyky0UV.js.gz +0 -0
  333. package/build/client/_app/immutable/nodes/30.BFpYKBJh.js +2 -0
  334. package/build/client/_app/immutable/nodes/30.BFpYKBJh.js.br +0 -0
  335. package/build/client/_app/immutable/nodes/30.BFpYKBJh.js.gz +0 -0
  336. package/build/client/_app/immutable/nodes/31.DKnO7o1W.js +2 -0
  337. package/build/client/_app/immutable/nodes/31.DKnO7o1W.js.br +0 -0
  338. package/build/client/_app/immutable/nodes/31.DKnO7o1W.js.gz +0 -0
  339. package/build/client/_app/immutable/nodes/32.D4xYDWvG.js +3 -0
  340. package/build/client/_app/immutable/nodes/32.D4xYDWvG.js.br +0 -0
  341. package/build/client/_app/immutable/nodes/32.D4xYDWvG.js.gz +0 -0
  342. package/build/client/_app/immutable/nodes/4.0a-qdY5B.js +1 -0
  343. package/build/client/_app/immutable/nodes/4.0a-qdY5B.js.br +0 -0
  344. package/build/client/_app/immutable/nodes/4.0a-qdY5B.js.gz +0 -0
  345. package/build/client/_app/immutable/nodes/5.BzQBSRbS.js +1 -0
  346. package/build/client/_app/immutable/nodes/5.BzQBSRbS.js.br +0 -0
  347. package/build/client/_app/immutable/nodes/5.BzQBSRbS.js.gz +0 -0
  348. package/build/client/_app/immutable/nodes/6.gJ2nhxWc.js +1 -0
  349. package/build/client/_app/immutable/nodes/6.gJ2nhxWc.js.br +0 -0
  350. package/build/client/_app/immutable/nodes/6.gJ2nhxWc.js.gz +0 -0
  351. package/build/client/_app/immutable/nodes/7.tBTDolnc.js +1 -0
  352. package/build/client/_app/immutable/nodes/7.tBTDolnc.js.br +0 -0
  353. package/build/client/_app/immutable/nodes/7.tBTDolnc.js.gz +0 -0
  354. package/build/client/_app/immutable/nodes/8.BJK9n85D.js +2 -0
  355. package/build/client/_app/immutable/nodes/8.BJK9n85D.js.br +0 -0
  356. package/build/client/_app/immutable/nodes/8.BJK9n85D.js.gz +0 -0
  357. package/build/client/_app/immutable/nodes/9.un0j6nRP.js +1 -0
  358. package/build/client/_app/immutable/nodes/9.un0j6nRP.js.br +0 -0
  359. package/build/client/_app/immutable/nodes/9.un0j6nRP.js.gz +0 -0
  360. package/build/client/_app/version.json +1 -0
  361. package/build/client/_app/version.json.br +1 -0
  362. package/build/client/_app/version.json.gz +0 -0
  363. package/build/client/baseHDR.hdr +0 -0
  364. package/build/client/favicon/apple-touch-icon.png +0 -0
  365. package/build/client/favicon/favicon-96x96.png +0 -0
  366. package/build/client/favicon/favicon.ico +0 -0
  367. package/build/client/favicon/favicon.svg +1 -0
  368. package/build/client/favicon/favicon.svg.br +0 -0
  369. package/build/client/favicon/favicon.svg.gz +0 -0
  370. package/build/client/favicon/site.webmanifest +21 -0
  371. package/build/client/favicon/web-app-manifest-192x192.png +0 -0
  372. package/build/client/favicon/web-app-manifest-512x512.png +0 -0
  373. package/build/client/robots.txt +3 -0
  374. package/build/client/robots.txt.br +0 -0
  375. package/build/client/robots.txt.gz +0 -0
  376. package/build/env.js +94 -0
  377. package/build/handler.js +1494 -0
  378. package/build/index.js +345 -0
  379. package/build/server/chunks/0-BRU03dEw.js +55 -0
  380. package/build/server/chunks/0-BRU03dEw.js.map +1 -0
  381. package/build/server/chunks/1-m_oCIIXD.js +9 -0
  382. package/build/server/chunks/1-m_oCIIXD.js.map +1 -0
  383. package/build/server/chunks/10-J_ZMrbXX.js +220 -0
  384. package/build/server/chunks/10-J_ZMrbXX.js.map +1 -0
  385. package/build/server/chunks/11-Dz77N9MO.js +57 -0
  386. package/build/server/chunks/11-Dz77N9MO.js.map +1 -0
  387. package/build/server/chunks/12-CrOqT0Q5.js +52 -0
  388. package/build/server/chunks/12-CrOqT0Q5.js.map +1 -0
  389. package/build/server/chunks/13-DQGOyx8W.js +56 -0
  390. package/build/server/chunks/13-DQGOyx8W.js.map +1 -0
  391. package/build/server/chunks/14-Dl5jyPyO.js +99 -0
  392. package/build/server/chunks/14-Dl5jyPyO.js.map +1 -0
  393. package/build/server/chunks/15-CNzxJkd-.js +38 -0
  394. package/build/server/chunks/15-CNzxJkd-.js.map +1 -0
  395. package/build/server/chunks/16-5ZcnQNjK.js +83 -0
  396. package/build/server/chunks/16-5ZcnQNjK.js.map +1 -0
  397. package/build/server/chunks/17-C4Zpziyd.js +9 -0
  398. package/build/server/chunks/17-C4Zpziyd.js.map +1 -0
  399. package/build/server/chunks/18-DFxW4YE_.js +74 -0
  400. package/build/server/chunks/18-DFxW4YE_.js.map +1 -0
  401. package/build/server/chunks/19-C8RtlFzY.js +92 -0
  402. package/build/server/chunks/19-C8RtlFzY.js.map +1 -0
  403. package/build/server/chunks/2-tPIqsVg3.js +40 -0
  404. package/build/server/chunks/2-tPIqsVg3.js.map +1 -0
  405. package/build/server/chunks/20-DLtIYsB6.js +172 -0
  406. package/build/server/chunks/20-DLtIYsB6.js.map +1 -0
  407. package/build/server/chunks/21-Bs7WlXoO.js +74 -0
  408. package/build/server/chunks/21-Bs7WlXoO.js.map +1 -0
  409. package/build/server/chunks/22-Bweil5nd.js +23 -0
  410. package/build/server/chunks/22-Bweil5nd.js.map +1 -0
  411. package/build/server/chunks/23-dTtOINB8.js +136 -0
  412. package/build/server/chunks/23-dTtOINB8.js.map +1 -0
  413. package/build/server/chunks/24-DFoVUKXD.js +144 -0
  414. package/build/server/chunks/24-DFoVUKXD.js.map +1 -0
  415. package/build/server/chunks/25-DstWRI72.js +51 -0
  416. package/build/server/chunks/25-DstWRI72.js.map +1 -0
  417. package/build/server/chunks/26-CI8uo3hW.js +9 -0
  418. package/build/server/chunks/26-CI8uo3hW.js.map +1 -0
  419. package/build/server/chunks/27-CpQEotb7.js +57 -0
  420. package/build/server/chunks/27-CpQEotb7.js.map +1 -0
  421. package/build/server/chunks/28-B-G5uvxa.js +68 -0
  422. package/build/server/chunks/28-B-G5uvxa.js.map +1 -0
  423. package/build/server/chunks/29-BFo4HkLa.js +55 -0
  424. package/build/server/chunks/29-BFo4HkLa.js.map +1 -0
  425. package/build/server/chunks/3-BU-Ucrf8.js +9 -0
  426. package/build/server/chunks/3-BU-Ucrf8.js.map +1 -0
  427. package/build/server/chunks/30-zdVVQ-al.js +57 -0
  428. package/build/server/chunks/30-zdVVQ-al.js.map +1 -0
  429. package/build/server/chunks/31-Cba3pMW9.js +42 -0
  430. package/build/server/chunks/31-Cba3pMW9.js.map +1 -0
  431. package/build/server/chunks/32-BmfoNY4G.js +34 -0
  432. package/build/server/chunks/32-BmfoNY4G.js.map +1 -0
  433. package/build/server/chunks/4-rU40n2rV.js +9 -0
  434. package/build/server/chunks/4-rU40n2rV.js.map +1 -0
  435. package/build/server/chunks/5-CsoWfpGS.js +32 -0
  436. package/build/server/chunks/5-CsoWfpGS.js.map +1 -0
  437. package/build/server/chunks/6-D7wR-syA.js +40 -0
  438. package/build/server/chunks/6-D7wR-syA.js.map +1 -0
  439. package/build/server/chunks/7-uEz6AFkY.js +19 -0
  440. package/build/server/chunks/7-uEz6AFkY.js.map +1 -0
  441. package/build/server/chunks/8-BF-aCqND.js +130 -0
  442. package/build/server/chunks/8-BF-aCqND.js.map +1 -0
  443. package/build/server/chunks/9-BSxBuZbd.js +46 -0
  444. package/build/server/chunks/9-BSxBuZbd.js.map +1 -0
  445. package/build/server/chunks/AppHeader-BGs-cVxu.js +270 -0
  446. package/build/server/chunks/AppHeader-BGs-cVxu.js.map +1 -0
  447. package/build/server/chunks/DataTable-Calmth3f.js +26 -0
  448. package/build/server/chunks/DataTable-Calmth3f.js.map +1 -0
  449. package/build/server/chunks/DefinitionCard-p4VxRESg.js +257 -0
  450. package/build/server/chunks/DefinitionCard-p4VxRESg.js.map +1 -0
  451. package/build/server/chunks/EmptyState-Vs823elu.js +53 -0
  452. package/build/server/chunks/EmptyState-Vs823elu.js.map +1 -0
  453. package/build/server/chunks/ErrorScreen-Btv-WHiu.js +131 -0
  454. package/build/server/chunks/ErrorScreen-Btv-WHiu.js.map +1 -0
  455. package/build/server/chunks/FilterableDropdown-B2_HPO_D.js +61 -0
  456. package/build/server/chunks/FilterableDropdown-B2_HPO_D.js.map +1 -0
  457. package/build/server/chunks/SectionHeader-C1XxBz32.js +32 -0
  458. package/build/server/chunks/SectionHeader-C1XxBz32.js.map +1 -0
  459. package/build/server/chunks/SideNav-B8LeM-P_.js +87 -0
  460. package/build/server/chunks/SideNav-B8LeM-P_.js.map +1 -0
  461. package/build/server/chunks/StatCard--Plm6nsA.js +50 -0
  462. package/build/server/chunks/StatCard--Plm6nsA.js.map +1 -0
  463. package/build/server/chunks/UserAvatar-CaOe1AcR.js +13 -0
  464. package/build/server/chunks/UserAvatar-CaOe1AcR.js.map +1 -0
  465. package/build/server/chunks/UserChip-vdJXrk99.js +1113 -0
  466. package/build/server/chunks/UserChip-vdJXrk99.js.map +1 -0
  467. package/build/server/chunks/_error.svelte-Bifw6LEZ.js +27 -0
  468. package/build/server/chunks/_error.svelte-Bifw6LEZ.js.map +1 -0
  469. package/build/server/chunks/_error.svelte-C2KGldTD.js +29 -0
  470. package/build/server/chunks/_error.svelte-C2KGldTD.js.map +1 -0
  471. package/build/server/chunks/_layout.svelte-1of9r1N3.js +42 -0
  472. package/build/server/chunks/_layout.svelte-1of9r1N3.js.map +1 -0
  473. package/build/server/chunks/_layout.svelte-CGIvkx7D.js +152 -0
  474. package/build/server/chunks/_layout.svelte-CGIvkx7D.js.map +1 -0
  475. package/build/server/chunks/_layout.svelte-CyAPRqZR.js +10 -0
  476. package/build/server/chunks/_layout.svelte-CyAPRqZR.js.map +1 -0
  477. package/build/server/chunks/_layout.svelte-Czx3WsTK.js +795 -0
  478. package/build/server/chunks/_layout.svelte-Czx3WsTK.js.map +1 -0
  479. package/build/server/chunks/_layout.svelte-HGSVxA0R.js +105 -0
  480. package/build/server/chunks/_layout.svelte-HGSVxA0R.js.map +1 -0
  481. package/build/server/chunks/_page.svelte-4090fhI5.js +83 -0
  482. package/build/server/chunks/_page.svelte-4090fhI5.js.map +1 -0
  483. package/build/server/chunks/_page.svelte-5X2iRv32.js +711 -0
  484. package/build/server/chunks/_page.svelte-5X2iRv32.js.map +1 -0
  485. package/build/server/chunks/_page.svelte-BO2coOCw.js +10510 -0
  486. package/build/server/chunks/_page.svelte-BO2coOCw.js.map +1 -0
  487. package/build/server/chunks/_page.svelte-BfQQ6DpG.js +276 -0
  488. package/build/server/chunks/_page.svelte-BfQQ6DpG.js.map +1 -0
  489. package/build/server/chunks/_page.svelte-Br3YjZJA.js +595 -0
  490. package/build/server/chunks/_page.svelte-Br3YjZJA.js.map +1 -0
  491. package/build/server/chunks/_page.svelte-BvG__sle.js +119 -0
  492. package/build/server/chunks/_page.svelte-BvG__sle.js.map +1 -0
  493. package/build/server/chunks/_page.svelte-C2Pa9XCr.js +119 -0
  494. package/build/server/chunks/_page.svelte-C2Pa9XCr.js.map +1 -0
  495. package/build/server/chunks/_page.svelte-C48Yzxtt.js +330 -0
  496. package/build/server/chunks/_page.svelte-C48Yzxtt.js.map +1 -0
  497. package/build/server/chunks/_page.svelte-C4V_xDVU.js +329 -0
  498. package/build/server/chunks/_page.svelte-C4V_xDVU.js.map +1 -0
  499. package/build/server/chunks/_page.svelte-CFbpEr-L.js +249 -0
  500. package/build/server/chunks/_page.svelte-CFbpEr-L.js.map +1 -0
  501. package/build/server/chunks/_page.svelte-CGuEBnqj.js +168 -0
  502. package/build/server/chunks/_page.svelte-CGuEBnqj.js.map +1 -0
  503. package/build/server/chunks/_page.svelte-CWJ99QbZ.js +500 -0
  504. package/build/server/chunks/_page.svelte-CWJ99QbZ.js.map +1 -0
  505. package/build/server/chunks/_page.svelte-CX9DKxIH.js +520 -0
  506. package/build/server/chunks/_page.svelte-CX9DKxIH.js.map +1 -0
  507. package/build/server/chunks/_page.svelte-Cn6-gBTd.js +56 -0
  508. package/build/server/chunks/_page.svelte-Cn6-gBTd.js.map +1 -0
  509. package/build/server/chunks/_page.svelte-D2rnbrpK.js +423 -0
  510. package/build/server/chunks/_page.svelte-D2rnbrpK.js.map +1 -0
  511. package/build/server/chunks/_page.svelte-DIgP7KVt.js +549 -0
  512. package/build/server/chunks/_page.svelte-DIgP7KVt.js.map +1 -0
  513. package/build/server/chunks/_page.svelte-DMn46_VU.js +301 -0
  514. package/build/server/chunks/_page.svelte-DMn46_VU.js.map +1 -0
  515. package/build/server/chunks/_page.svelte-DQeDu6UN.js +146 -0
  516. package/build/server/chunks/_page.svelte-DQeDu6UN.js.map +1 -0
  517. package/build/server/chunks/_page.svelte-DSpONoJg.js +252 -0
  518. package/build/server/chunks/_page.svelte-DSpONoJg.js.map +1 -0
  519. package/build/server/chunks/_page.svelte-DciqGYJp.js +609 -0
  520. package/build/server/chunks/_page.svelte-DciqGYJp.js.map +1 -0
  521. package/build/server/chunks/_page.svelte-DfCFSzaO.js +3847 -0
  522. package/build/server/chunks/_page.svelte-DfCFSzaO.js.map +1 -0
  523. package/build/server/chunks/_page.svelte-DtUlWJaB.js +113 -0
  524. package/build/server/chunks/_page.svelte-DtUlWJaB.js.map +1 -0
  525. package/build/server/chunks/_page.svelte-KapMJV5_.js +452 -0
  526. package/build/server/chunks/_page.svelte-KapMJV5_.js.map +1 -0
  527. package/build/server/chunks/_page.svelte-wsvtYRRE.js +69 -0
  528. package/build/server/chunks/_page.svelte-wsvtYRRE.js.map +1 -0
  529. package/build/server/chunks/_page.svelte-zL7ihDzp.js +13 -0
  530. package/build/server/chunks/_page.svelte-zL7ihDzp.js.map +1 -0
  531. package/build/server/chunks/_server.ts-0ncRaWJ_.js +39 -0
  532. package/build/server/chunks/_server.ts-0ncRaWJ_.js.map +1 -0
  533. package/build/server/chunks/_server.ts-7hKc3tb_.js +28 -0
  534. package/build/server/chunks/_server.ts-7hKc3tb_.js.map +1 -0
  535. package/build/server/chunks/_server.ts-B0wiCYbB.js +36 -0
  536. package/build/server/chunks/_server.ts-B0wiCYbB.js.map +1 -0
  537. package/build/server/chunks/_server.ts-BJWFkEuu.js +94 -0
  538. package/build/server/chunks/_server.ts-BJWFkEuu.js.map +1 -0
  539. package/build/server/chunks/_server.ts-BLHjzdRp.js +30 -0
  540. package/build/server/chunks/_server.ts-BLHjzdRp.js.map +1 -0
  541. package/build/server/chunks/_server.ts-BUc1sqlR.js +58 -0
  542. package/build/server/chunks/_server.ts-BUc1sqlR.js.map +1 -0
  543. package/build/server/chunks/_server.ts-B_MVq_5r.js +72 -0
  544. package/build/server/chunks/_server.ts-B_MVq_5r.js.map +1 -0
  545. package/build/server/chunks/_server.ts-Bb3Kpo0Y.js +38 -0
  546. package/build/server/chunks/_server.ts-Bb3Kpo0Y.js.map +1 -0
  547. package/build/server/chunks/_server.ts-BemU6FO1.js +64 -0
  548. package/build/server/chunks/_server.ts-BemU6FO1.js.map +1 -0
  549. package/build/server/chunks/_server.ts-BkKg2yyC.js +75 -0
  550. package/build/server/chunks/_server.ts-BkKg2yyC.js.map +1 -0
  551. package/build/server/chunks/_server.ts-BpAINcOs.js +276 -0
  552. package/build/server/chunks/_server.ts-BpAINcOs.js.map +1 -0
  553. package/build/server/chunks/_server.ts-BpkR7TzP.js +30 -0
  554. package/build/server/chunks/_server.ts-BpkR7TzP.js.map +1 -0
  555. package/build/server/chunks/_server.ts-BrZXNFlK.js +78 -0
  556. package/build/server/chunks/_server.ts-BrZXNFlK.js.map +1 -0
  557. package/build/server/chunks/_server.ts-C-XniPo8.js +41 -0
  558. package/build/server/chunks/_server.ts-C-XniPo8.js.map +1 -0
  559. package/build/server/chunks/_server.ts-C0F30GT4.js +61 -0
  560. package/build/server/chunks/_server.ts-C0F30GT4.js.map +1 -0
  561. package/build/server/chunks/_server.ts-C4WRZSco.js +32 -0
  562. package/build/server/chunks/_server.ts-C4WRZSco.js.map +1 -0
  563. package/build/server/chunks/_server.ts-CAcgx11J.js +37 -0
  564. package/build/server/chunks/_server.ts-CAcgx11J.js.map +1 -0
  565. package/build/server/chunks/_server.ts-CFIgn6q6.js +293 -0
  566. package/build/server/chunks/_server.ts-CFIgn6q6.js.map +1 -0
  567. package/build/server/chunks/_server.ts-CaHe7mo6.js +81 -0
  568. package/build/server/chunks/_server.ts-CaHe7mo6.js.map +1 -0
  569. package/build/server/chunks/_server.ts-CcQbKaET.js +38 -0
  570. package/build/server/chunks/_server.ts-CcQbKaET.js.map +1 -0
  571. package/build/server/chunks/_server.ts-Ch_RLYHQ.js +48 -0
  572. package/build/server/chunks/_server.ts-Ch_RLYHQ.js.map +1 -0
  573. package/build/server/chunks/_server.ts-CkXnisqg.js +85 -0
  574. package/build/server/chunks/_server.ts-CkXnisqg.js.map +1 -0
  575. package/build/server/chunks/_server.ts-CmGWhrdf.js +110 -0
  576. package/build/server/chunks/_server.ts-CmGWhrdf.js.map +1 -0
  577. package/build/server/chunks/_server.ts-CmUr8pln.js +37 -0
  578. package/build/server/chunks/_server.ts-CmUr8pln.js.map +1 -0
  579. package/build/server/chunks/_server.ts-D-QkfF2o.js +106 -0
  580. package/build/server/chunks/_server.ts-D-QkfF2o.js.map +1 -0
  581. package/build/server/chunks/_server.ts-D1AD48e8.js +81 -0
  582. package/build/server/chunks/_server.ts-D1AD48e8.js.map +1 -0
  583. package/build/server/chunks/_server.ts-DBh0rJrm.js +86 -0
  584. package/build/server/chunks/_server.ts-DBh0rJrm.js.map +1 -0
  585. package/build/server/chunks/_server.ts-DJUYnHrj.js +49 -0
  586. package/build/server/chunks/_server.ts-DJUYnHrj.js.map +1 -0
  587. package/build/server/chunks/_server.ts-DNPb5zS6.js +76 -0
  588. package/build/server/chunks/_server.ts-DNPb5zS6.js.map +1 -0
  589. package/build/server/chunks/_server.ts-DXPhlUCi.js +101 -0
  590. package/build/server/chunks/_server.ts-DXPhlUCi.js.map +1 -0
  591. package/build/server/chunks/_server.ts-Dmo73WWA.js +42 -0
  592. package/build/server/chunks/_server.ts-Dmo73WWA.js.map +1 -0
  593. package/build/server/chunks/_server.ts-DxKERFAd.js +35 -0
  594. package/build/server/chunks/_server.ts-DxKERFAd.js.map +1 -0
  595. package/build/server/chunks/_server.ts-MOiQ4br_.js +31 -0
  596. package/build/server/chunks/_server.ts-MOiQ4br_.js.map +1 -0
  597. package/build/server/chunks/_server.ts-Z87uowZI.js +71 -0
  598. package/build/server/chunks/_server.ts-Z87uowZI.js.map +1 -0
  599. package/build/server/chunks/_server.ts-_NTv7i9z.js +94 -0
  600. package/build/server/chunks/_server.ts-_NTv7i9z.js.map +1 -0
  601. package/build/server/chunks/_server.ts-gic0t4mu.js +52 -0
  602. package/build/server/chunks/_server.ts-gic0t4mu.js.map +1 -0
  603. package/build/server/chunks/_server.ts-la-ySldK.js +39 -0
  604. package/build/server/chunks/_server.ts-la-ySldK.js.map +1 -0
  605. package/build/server/chunks/_server.ts-pDmNGXOa.js +70 -0
  606. package/build/server/chunks/_server.ts-pDmNGXOa.js.map +1 -0
  607. package/build/server/chunks/access.server-GvriCjXN.js +389 -0
  608. package/build/server/chunks/access.server-GvriCjXN.js.map +1 -0
  609. package/build/server/chunks/activity-5BrQjmZv.js +18 -0
  610. package/build/server/chunks/activity-5BrQjmZv.js.map +1 -0
  611. package/build/server/chunks/admin-auth.server-CdTfBMI5.js +78 -0
  612. package/build/server/chunks/admin-auth.server-CdTfBMI5.js.map +1 -0
  613. package/build/server/chunks/alert-description-CJHDA62x.js +59 -0
  614. package/build/server/chunks/alert-description-CJHDA62x.js.map +1 -0
  615. package/build/server/chunks/api-errors-Dk5z97zb.js +36 -0
  616. package/build/server/chunks/api-errors-Dk5z97zb.js.map +1 -0
  617. package/build/server/chunks/arrow-left-Bg-KTjhY.js +14 -0
  618. package/build/server/chunks/arrow-left-Bg-KTjhY.js.map +1 -0
  619. package/build/server/chunks/arrow-right-BvyjMBhI.js +14 -0
  620. package/build/server/chunks/arrow-right-BvyjMBhI.js.map +1 -0
  621. package/build/server/chunks/auth-bootstrap.server-CfD5CPTj.js +38 -0
  622. package/build/server/chunks/auth-bootstrap.server-CfD5CPTj.js.map +1 -0
  623. package/build/server/chunks/badge-DP8t-wkc.js +50 -0
  624. package/build/server/chunks/badge-DP8t-wkc.js.map +1 -0
  625. package/build/server/chunks/bootHealth.server-Bn7taneH.js +58 -0
  626. package/build/server/chunks/bootHealth.server-Bn7taneH.js.map +1 -0
  627. package/build/server/chunks/building-2-DzHZbdjX.js +22 -0
  628. package/build/server/chunks/building-2-DzHZbdjX.js.map +1 -0
  629. package/build/server/chunks/button-5YNnSoty.js +73 -0
  630. package/build/server/chunks/button-5YNnSoty.js.map +1 -0
  631. package/build/server/chunks/card-content-PfaaTs7O.js +46 -0
  632. package/build/server/chunks/card-content-PfaaTs7O.js.map +1 -0
  633. package/build/server/chunks/card-description-BfE_PWv4.js +26 -0
  634. package/build/server/chunks/card-description-BfE_PWv4.js.map +1 -0
  635. package/build/server/chunks/card-title-CV7CjSMp.js +46 -0
  636. package/build/server/chunks/card-title-CV7CjSMp.js.map +1 -0
  637. package/build/server/chunks/check-6xLpsphW.js +11 -0
  638. package/build/server/chunks/check-6xLpsphW.js.map +1 -0
  639. package/build/server/chunks/chevron-down-DdRkfYjQ.js +11 -0
  640. package/build/server/chunks/chevron-down-DdRkfYjQ.js.map +1 -0
  641. package/build/server/chunks/chevron-right-yB_oBTHp.js +11 -0
  642. package/build/server/chunks/chevron-right-yB_oBTHp.js.map +1 -0
  643. package/build/server/chunks/chevron-up-CskoDtlM.js +11 -0
  644. package/build/server/chunks/chevron-up-CskoDtlM.js.map +1 -0
  645. package/build/server/chunks/circle-CcD9wKGy.js +11 -0
  646. package/build/server/chunks/circle-CcD9wKGy.js.map +1 -0
  647. package/build/server/chunks/circle-alert-DKo6GQWU.js +18 -0
  648. package/build/server/chunks/circle-alert-DKo6GQWU.js.map +1 -0
  649. package/build/server/chunks/client-CUfa2kzY.js +39 -0
  650. package/build/server/chunks/client-CUfa2kzY.js.map +1 -0
  651. package/build/server/chunks/computeLimits-FIJ-Mzn4.js +26 -0
  652. package/build/server/chunks/computeLimits-FIJ-Mzn4.js.map +1 -0
  653. package/build/server/chunks/context-9tV9WxQ5.js +134 -0
  654. package/build/server/chunks/context-9tV9WxQ5.js.map +1 -0
  655. package/build/server/chunks/copy-B82RxBlo.js +29 -0
  656. package/build/server/chunks/copy-B82RxBlo.js.map +1 -0
  657. package/build/server/chunks/create-id-BYuAt6fp.js +653 -0
  658. package/build/server/chunks/create-id-BYuAt6fp.js.map +1 -0
  659. package/build/server/chunks/dialog-description-Cp1dB1if.js +523 -0
  660. package/build/server/chunks/dialog-description-Cp1dB1if.js.map +1 -0
  661. package/build/server/chunks/events-Dh5zddQQ.js +119 -0
  662. package/build/server/chunks/events-Dh5zddQQ.js.map +1 -0
  663. package/build/server/chunks/folder-kanban-srfqpNh0.js +21 -0
  664. package/build/server/chunks/folder-kanban-srfqpNh0.js.map +1 -0
  665. package/build/server/chunks/folder-open-LjMDYW2a.js +18 -0
  666. package/build/server/chunks/folder-open-LjMDYW2a.js.map +1 -0
  667. package/build/server/chunks/folders-BMeWz5-X.js +24 -0
  668. package/build/server/chunks/folders-BMeWz5-X.js.map +1 -0
  669. package/build/server/chunks/footerContext.svelte-QTotPOm_.js +523 -0
  670. package/build/server/chunks/footerContext.svelte-QTotPOm_.js.map +1 -0
  671. package/build/server/chunks/hooks.server-CMWyl1Gd.js +197 -0
  672. package/build/server/chunks/hooks.server-CMWyl1Gd.js.map +1 -0
  673. package/build/server/chunks/html-FW6Ia4bL.js +8 -0
  674. package/build/server/chunks/html-FW6Ia4bL.js.map +1 -0
  675. package/build/server/chunks/index-DwB9DMAB.js +28 -0
  676. package/build/server/chunks/index-DwB9DMAB.js.map +1 -0
  677. package/build/server/chunks/index-server-DMc-UvjC.js +19 -0
  678. package/build/server/chunks/index-server-DMc-UvjC.js.map +1 -0
  679. package/build/server/chunks/index2-olcdaqbX.js +4379 -0
  680. package/build/server/chunks/index2-olcdaqbX.js.map +1 -0
  681. package/build/server/chunks/index3-Ye-aF_FM.js +541 -0
  682. package/build/server/chunks/index3-Ye-aF_FM.js.map +1 -0
  683. package/build/server/chunks/input-BIyn3mzZ.js +53 -0
  684. package/build/server/chunks/input-BIyn3mzZ.js.map +1 -0
  685. package/build/server/chunks/label-CTvvOsnE.js +112 -0
  686. package/build/server/chunks/label-CTvvOsnE.js.map +1 -0
  687. package/build/server/chunks/link-2-DyFf_-Tu.js +15 -0
  688. package/build/server/chunks/link-2-DyFf_-Tu.js.map +1 -0
  689. package/build/server/chunks/mail-DS_q8hHt.js +17 -0
  690. package/build/server/chunks/mail-DS_q8hHt.js.map +1 -0
  691. package/build/server/chunks/noop-CzO8kTeB.js +138 -0
  692. package/build/server/chunks/noop-CzO8kTeB.js.map +1 -0
  693. package/build/server/chunks/permissions-compat.server-DSV7bClF.js +19 -0
  694. package/build/server/chunks/permissions-compat.server-DSV7bClF.js.map +1 -0
  695. package/build/server/chunks/permissions.server-Co6VKW9f.js +8 -0
  696. package/build/server/chunks/permissions.server-Co6VKW9f.js.map +1 -0
  697. package/build/server/chunks/plus-kUAGz2vQ.js +11 -0
  698. package/build/server/chunks/plus-kUAGz2vQ.js.map +1 -0
  699. package/build/server/chunks/providers.server-C32WKtDL.js +4486 -0
  700. package/build/server/chunks/providers.server-C32WKtDL.js.map +1 -0
  701. package/build/server/chunks/randomId-8gj3Lbuq.js +25 -0
  702. package/build/server/chunks/randomId-8gj3Lbuq.js.map +1 -0
  703. package/build/server/chunks/renderer-BFEBS3DQ.js +3757 -0
  704. package/build/server/chunks/renderer-BFEBS3DQ.js.map +1 -0
  705. package/build/server/chunks/resolve.server-DYsU4jL3.js +11 -0
  706. package/build/server/chunks/resolve.server-DYsU4jL3.js.map +1 -0
  707. package/build/server/chunks/resolve.server2-Co65XNMI.js +50 -0
  708. package/build/server/chunks/resolve.server2-Co65XNMI.js.map +1 -0
  709. package/build/server/chunks/root-DfWNVuNE.js +1134 -0
  710. package/build/server/chunks/root-DfWNVuNE.js.map +1 -0
  711. package/build/server/chunks/rotate-ccw-BhVSWSeP.js +17 -0
  712. package/build/server/chunks/rotate-ccw-BhVSWSeP.js.map +1 -0
  713. package/build/server/chunks/scroll-lock-BNv9iOMl.js +1558 -0
  714. package/build/server/chunks/scroll-lock-BNv9iOMl.js.map +1 -0
  715. package/build/server/chunks/scroll-text-DqHQWAWm.js +21 -0
  716. package/build/server/chunks/scroll-text-DqHQWAWm.js.map +1 -0
  717. package/build/server/chunks/server-CtTftue_.js +36 -0
  718. package/build/server/chunks/server-CtTftue_.js.map +1 -0
  719. package/build/server/chunks/settings-DUGFWkVU.js +19 -0
  720. package/build/server/chunks/settings-DUGFWkVU.js.map +1 -0
  721. package/build/server/chunks/shared-server-DaWdgxVh.js +11 -0
  722. package/build/server/chunks/shared-server-DaWdgxVh.js.map +1 -0
  723. package/build/server/chunks/shield-DcFe9IEC.js +18 -0
  724. package/build/server/chunks/shield-DcFe9IEC.js.map +1 -0
  725. package/build/server/chunks/shield-check-BpiYOxKK.js +19 -0
  726. package/build/server/chunks/shield-check-BpiYOxKK.js.map +1 -0
  727. package/build/server/chunks/slug-BGuFQjqe.js +6 -0
  728. package/build/server/chunks/slug-BGuFQjqe.js.map +1 -0
  729. package/build/server/chunks/star-CyFkn9su.js +18 -0
  730. package/build/server/chunks/star-CyFkn9su.js.map +1 -0
  731. package/build/server/chunks/stores-r9x46ujW.js +31 -0
  732. package/build/server/chunks/stores-r9x46ujW.js.map +1 -0
  733. package/build/server/chunks/textarea-BCZD0juO.js +685 -0
  734. package/build/server/chunks/textarea-BCZD0juO.js.map +1 -0
  735. package/build/server/chunks/toast-state.svelte-CW-nObZ9.js +185 -0
  736. package/build/server/chunks/toast-state.svelte-CW-nObZ9.js.map +1 -0
  737. package/build/server/chunks/token.server-B8XVPI0F.js +25 -0
  738. package/build/server/chunks/token.server-B8XVPI0F.js.map +1 -0
  739. package/build/server/chunks/token.server2-D0Z99lBB.js +22 -0
  740. package/build/server/chunks/token.server2-D0Z99lBB.js.map +1 -0
  741. package/build/server/chunks/trash-2-DWN_oRG7.js +17 -0
  742. package/build/server/chunks/trash-2-DWN_oRG7.js.map +1 -0
  743. package/build/server/chunks/triangle-alert-DYYSX_Mf.js +444 -0
  744. package/build/server/chunks/triangle-alert-DYYSX_Mf.js.map +1 -0
  745. package/build/server/chunks/types-DxzJoaA4.js +11 -0
  746. package/build/server/chunks/types-DxzJoaA4.js.map +1 -0
  747. package/build/server/chunks/types2-DdHhYSMF.js +4 -0
  748. package/build/server/chunks/types2-DdHhYSMF.js.map +1 -0
  749. package/build/server/chunks/upload-DREoObmA.js +62 -0
  750. package/build/server/chunks/upload-DREoObmA.js.map +1 -0
  751. package/build/server/chunks/user-plus-Nb35DNnT.js +16 -0
  752. package/build/server/chunks/user-plus-Nb35DNnT.js.map +1 -0
  753. package/build/server/chunks/users-DMh0XDYp.js +16 -0
  754. package/build/server/chunks/users-DMh0XDYp.js.map +1 -0
  755. package/build/server/chunks/utils2-Sy-_rI-0.js +56 -0
  756. package/build/server/chunks/utils2-Sy-_rI-0.js.map +1 -0
  757. package/build/server/chunks/utils3-AZ8FPfBW.js +80 -0
  758. package/build/server/chunks/utils3-AZ8FPfBW.js.map +1 -0
  759. package/build/server/chunks/x-wRP5erhc.js +14 -0
  760. package/build/server/chunks/x-wRP5erhc.js.map +1 -0
  761. package/build/server/index.js +5380 -0
  762. package/build/server/index.js.map +1 -0
  763. package/build/server/manifest.js +517 -0
  764. package/build/server/manifest.js.map +1 -0
  765. package/build/shims.js +32 -0
  766. package/package.json +57 -0
  767. package/templates/.env.example +339 -0
  768. package/templates/ecosystem.config.cjs +52 -0
  769. package/templates/selva.config.example.js +338 -0
@@ -0,0 +1,1558 @@
1
+ import 'clsx';
2
+ import { w as watch, n as noop, C as Context, i as isBrowser, a as ESCAPE, b as isHTMLElement$1, c as isIOS, d as isElementOrSVGElement } from './noop-CzO8kTeB.js';
3
+ import { av as ssr_context, aw as getAllContexts, ax as lifecycle_function_unavailable, _ as derived } from './renderer-BFEBS3DQ.js';
4
+ import { b as boxWith, s as simpleBox, c as createBitsAttrs, i as executeCallbacks, j as composeHandlers, k as isObject } from './create-id-BYuAt6fp.js';
5
+ import { o as on } from './events-Dh5zddQQ.js';
6
+ import { S as SvelteMap } from './index-server-DMc-UvjC.js';
7
+
8
+ function onDestroy(fn) {
9
+ /** @type {SSRContext} */
10
+ ssr_context.r.on_destroy(fn);
11
+ }
12
+ function mount() {
13
+ lifecycle_function_unavailable("mount");
14
+ }
15
+ function unmount() {
16
+ lifecycle_function_unavailable("unmount");
17
+ }
18
+ async function tick() {
19
+ }
20
+ function afterSleep(ms, cb) {
21
+ return setTimeout(cb, ms);
22
+ }
23
+ function afterTick(fn) {
24
+ tick().then(fn);
25
+ }
26
+ const ELEMENT_NODE = 1;
27
+ const DOCUMENT_NODE = 9;
28
+ const DOCUMENT_FRAGMENT_NODE = 11;
29
+ function isHTMLElement(node) {
30
+ return isObject(node) && node.nodeType === ELEMENT_NODE && typeof node.nodeName === "string";
31
+ }
32
+ function isDocument(node) {
33
+ return isObject(node) && node.nodeType === DOCUMENT_NODE;
34
+ }
35
+ function isWindow(node) {
36
+ return isObject(node) && node.constructor?.name === "VisualViewport";
37
+ }
38
+ function isNode(node) {
39
+ return isObject(node) && node.nodeType !== void 0;
40
+ }
41
+ function isShadowRoot(node) {
42
+ return isNode(node) && node.nodeType === DOCUMENT_FRAGMENT_NODE && "host" in node;
43
+ }
44
+ function contains(parent, child) {
45
+ if (!parent || !child)
46
+ return false;
47
+ if (!isHTMLElement(parent) || !isHTMLElement(child))
48
+ return false;
49
+ const rootNode = child.getRootNode?.();
50
+ if (parent === child)
51
+ return true;
52
+ if (parent.contains(child))
53
+ return true;
54
+ if (rootNode && isShadowRoot(rootNode)) {
55
+ let next = child;
56
+ while (next) {
57
+ if (parent === next)
58
+ return true;
59
+ next = next.parentNode || next.host;
60
+ }
61
+ }
62
+ return false;
63
+ }
64
+ function getDocument(node) {
65
+ if (isDocument(node))
66
+ return node;
67
+ if (isWindow(node))
68
+ return node.document;
69
+ return node?.ownerDocument ?? document;
70
+ }
71
+ function getWindow(node) {
72
+ if (isShadowRoot(node))
73
+ return getWindow(node.host);
74
+ if (isDocument(node))
75
+ return node.defaultView ?? window;
76
+ if (isHTMLElement(node))
77
+ return node.ownerDocument?.defaultView ?? window;
78
+ return window;
79
+ }
80
+ function getActiveElement(rootNode) {
81
+ let activeElement = rootNode.activeElement;
82
+ while (activeElement?.shadowRoot) {
83
+ const el = activeElement.shadowRoot.activeElement;
84
+ if (el === activeElement)
85
+ break;
86
+ else
87
+ activeElement = el;
88
+ }
89
+ return activeElement;
90
+ }
91
+ class DOMContext {
92
+ element;
93
+ #root = derived(() => {
94
+ if (!this.element.current) return document;
95
+ const rootNode = this.element.current.getRootNode() ?? document;
96
+ return rootNode;
97
+ });
98
+ get root() {
99
+ return this.#root();
100
+ }
101
+ set root($$value) {
102
+ return this.#root($$value);
103
+ }
104
+ constructor(element) {
105
+ if (typeof element === "function") {
106
+ this.element = boxWith(element);
107
+ } else {
108
+ this.element = element;
109
+ }
110
+ }
111
+ getDocument = () => {
112
+ return getDocument(this.root);
113
+ };
114
+ getWindow = () => {
115
+ return this.getDocument().defaultView ?? window;
116
+ };
117
+ getActiveElement = () => {
118
+ return getActiveElement(this.root);
119
+ };
120
+ isActiveElement = (node) => {
121
+ return node === this.getActiveElement();
122
+ };
123
+ getElementById(id) {
124
+ return this.root.getElementById(id);
125
+ }
126
+ querySelector = (selector) => {
127
+ if (!this.root) return null;
128
+ return this.root.querySelector(selector);
129
+ };
130
+ querySelectorAll = (selector) => {
131
+ if (!this.root) return [];
132
+ return this.root.querySelectorAll(selector);
133
+ };
134
+ setTimeout = (callback, delay) => {
135
+ return this.getWindow().setTimeout(callback, delay);
136
+ };
137
+ clearTimeout = (timeoutId) => {
138
+ return this.getWindow().clearTimeout(timeoutId);
139
+ };
140
+ }
141
+ class AnimationsComplete {
142
+ #opts;
143
+ #currentFrame = null;
144
+ #observer = null;
145
+ #runId = 0;
146
+ constructor(opts) {
147
+ this.#opts = opts;
148
+ }
149
+ #cleanup() {
150
+ if (this.#currentFrame !== null) {
151
+ window.cancelAnimationFrame(this.#currentFrame);
152
+ this.#currentFrame = null;
153
+ }
154
+ this.#observer?.disconnect();
155
+ this.#observer = null;
156
+ this.#runId++;
157
+ }
158
+ run(fn) {
159
+ this.#cleanup();
160
+ const node = this.#opts.ref.current;
161
+ if (!node)
162
+ return;
163
+ if (typeof node.getAnimations !== "function") {
164
+ this.#executeCallback(fn);
165
+ return;
166
+ }
167
+ const runId = this.#runId;
168
+ const executeIfCurrent = () => {
169
+ if (runId !== this.#runId)
170
+ return;
171
+ this.#executeCallback(fn);
172
+ };
173
+ const waitForAnimations = () => {
174
+ if (runId !== this.#runId)
175
+ return;
176
+ const animations = node.getAnimations();
177
+ if (animations.length === 0) {
178
+ executeIfCurrent();
179
+ return;
180
+ }
181
+ Promise.all(animations.map((animation) => animation.finished)).then(() => {
182
+ executeIfCurrent();
183
+ }).catch(() => {
184
+ if (runId !== this.#runId)
185
+ return;
186
+ const currentAnimations = node.getAnimations();
187
+ const hasRunningAnimations = currentAnimations.some((animation) => animation.pending || animation.playState !== "finished");
188
+ if (hasRunningAnimations) {
189
+ waitForAnimations();
190
+ return;
191
+ }
192
+ executeIfCurrent();
193
+ });
194
+ };
195
+ const requestWaitForAnimations = () => {
196
+ this.#currentFrame = window.requestAnimationFrame(() => {
197
+ this.#currentFrame = null;
198
+ waitForAnimations();
199
+ });
200
+ };
201
+ if (!this.#opts.afterTick.current) {
202
+ requestWaitForAnimations();
203
+ return;
204
+ }
205
+ this.#currentFrame = window.requestAnimationFrame(() => {
206
+ this.#currentFrame = null;
207
+ const startingStyleAttr = "data-starting-style";
208
+ if (!node.hasAttribute(startingStyleAttr)) {
209
+ requestWaitForAnimations();
210
+ return;
211
+ }
212
+ this.#observer = new MutationObserver(() => {
213
+ if (runId !== this.#runId)
214
+ return;
215
+ if (node.hasAttribute(startingStyleAttr))
216
+ return;
217
+ this.#observer?.disconnect();
218
+ this.#observer = null;
219
+ requestWaitForAnimations();
220
+ });
221
+ this.#observer.observe(node, {
222
+ attributes: true,
223
+ attributeFilter: [startingStyleAttr]
224
+ });
225
+ });
226
+ }
227
+ #executeCallback(fn) {
228
+ const execute = () => {
229
+ fn();
230
+ };
231
+ if (this.#opts.afterTick) {
232
+ afterTick(execute);
233
+ } else {
234
+ execute();
235
+ }
236
+ }
237
+ }
238
+ class PresenceManager {
239
+ #opts;
240
+ #enabled;
241
+ #afterAnimations;
242
+ #shouldRender = false;
243
+ #transitionStatus = void 0;
244
+ #hasMounted = false;
245
+ #transitionFrame = null;
246
+ constructor(opts) {
247
+ this.#opts = opts;
248
+ this.#shouldRender = opts.open.current;
249
+ this.#enabled = opts.enabled ?? true;
250
+ this.#afterAnimations = new AnimationsComplete({ ref: this.#opts.ref, afterTick: this.#opts.open });
251
+ watch(() => this.#opts.open.current, (isOpen) => {
252
+ if (!this.#hasMounted) {
253
+ this.#hasMounted = true;
254
+ return;
255
+ }
256
+ this.#clearTransitionFrame();
257
+ if (!isOpen && this.#opts.shouldSkipExitAnimation?.()) {
258
+ this.#shouldRender = false;
259
+ this.#transitionStatus = void 0;
260
+ this.#opts.onComplete?.();
261
+ return;
262
+ }
263
+ if (isOpen) this.#shouldRender = true;
264
+ this.#transitionStatus = isOpen ? "starting" : "ending";
265
+ if (isOpen) {
266
+ this.#transitionFrame = window.requestAnimationFrame(() => {
267
+ this.#transitionFrame = null;
268
+ if (this.#opts.open.current) {
269
+ this.#transitionStatus = void 0;
270
+ }
271
+ });
272
+ }
273
+ if (!this.#enabled) {
274
+ if (!isOpen) {
275
+ this.#shouldRender = false;
276
+ }
277
+ this.#transitionStatus = void 0;
278
+ this.#opts.onComplete?.();
279
+ return;
280
+ }
281
+ this.#afterAnimations.run(() => {
282
+ if (isOpen === this.#opts.open.current) {
283
+ if (!this.#opts.open.current) {
284
+ this.#shouldRender = false;
285
+ }
286
+ this.#transitionStatus = void 0;
287
+ this.#opts.onComplete?.();
288
+ }
289
+ });
290
+ });
291
+ }
292
+ get shouldRender() {
293
+ return this.#shouldRender;
294
+ }
295
+ get transitionStatus() {
296
+ return this.#transitionStatus;
297
+ }
298
+ #clearTransitionFrame() {
299
+ if (this.#transitionFrame === null) return;
300
+ window.cancelAnimationFrame(this.#transitionFrame);
301
+ this.#transitionFrame = null;
302
+ }
303
+ }
304
+ const BitsConfigContext = new Context("BitsConfig");
305
+ function getBitsConfig() {
306
+ const fallback = new BitsConfigState(null, {});
307
+ return BitsConfigContext.getOr(fallback).opts;
308
+ }
309
+ class BitsConfigState {
310
+ opts;
311
+ constructor(parent, opts) {
312
+ const resolveConfigOption = createConfigResolver(parent, opts);
313
+ this.opts = {
314
+ defaultPortalTo: resolveConfigOption((config) => config.defaultPortalTo),
315
+ defaultLocale: resolveConfigOption((config) => config.defaultLocale)
316
+ };
317
+ }
318
+ }
319
+ function createConfigResolver(parent, currentOpts) {
320
+ return (getter) => {
321
+ const configOption = boxWith(() => {
322
+ const value = getter(currentOpts)?.current;
323
+ if (value !== void 0)
324
+ return value;
325
+ if (parent === null)
326
+ return void 0;
327
+ return getter(parent.opts)?.current;
328
+ });
329
+ return configOption;
330
+ };
331
+ }
332
+ function createPropResolver(configOption, fallback) {
333
+ return (getProp) => {
334
+ const config = getBitsConfig();
335
+ return boxWith(() => {
336
+ const propValue = getProp();
337
+ if (propValue !== void 0)
338
+ return propValue;
339
+ const option = configOption(config).current;
340
+ if (option !== void 0)
341
+ return option;
342
+ return fallback;
343
+ });
344
+ };
345
+ }
346
+ const resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, "body");
347
+ function Portal($$renderer, $$props) {
348
+ $$renderer.component(($$renderer2) => {
349
+ let { to: toProp, children, disabled } = $$props;
350
+ const to = resolvePortalToProp(() => toProp);
351
+ getAllContexts();
352
+ let target = derived(getTarget);
353
+ function getTarget() {
354
+ if (!isBrowser || disabled) return null;
355
+ let localTarget = null;
356
+ if (typeof to.current === "string") {
357
+ const target2 = document.querySelector(to.current);
358
+ localTarget = target2;
359
+ } else {
360
+ localTarget = to.current;
361
+ }
362
+ return localTarget;
363
+ }
364
+ let instance;
365
+ function unmountInstance() {
366
+ if (instance) {
367
+ unmount();
368
+ instance = null;
369
+ }
370
+ }
371
+ watch([() => target(), () => disabled], ([target2, disabled2]) => {
372
+ if (!target2 || disabled2) {
373
+ unmountInstance();
374
+ return;
375
+ }
376
+ instance = mount();
377
+ return () => {
378
+ unmountInstance();
379
+ };
380
+ });
381
+ if (disabled) {
382
+ $$renderer2.push("<!--[0-->");
383
+ children?.($$renderer2);
384
+ $$renderer2.push(`<!---->`);
385
+ } else {
386
+ $$renderer2.push("<!--[-1-->");
387
+ }
388
+ $$renderer2.push(`<!--]-->`);
389
+ });
390
+ }
391
+ function debounce(fn, wait = 500) {
392
+ let timeout = null;
393
+ const debounced = (...args) => {
394
+ if (timeout !== null) {
395
+ clearTimeout(timeout);
396
+ }
397
+ timeout = setTimeout(() => {
398
+ fn(...args);
399
+ }, wait);
400
+ };
401
+ debounced.destroy = () => {
402
+ if (timeout !== null) {
403
+ clearTimeout(timeout);
404
+ timeout = null;
405
+ }
406
+ };
407
+ return debounced;
408
+ }
409
+ function isOrContainsTarget(node, target) {
410
+ return node === target || node.contains(target);
411
+ }
412
+ function getOwnerDocument(el) {
413
+ return el?.ownerDocument ?? document;
414
+ }
415
+ function isClickTrulyOutside(event, contentNode) {
416
+ const { clientX, clientY } = event;
417
+ const rect = contentNode.getBoundingClientRect();
418
+ return clientX < rect.left || clientX > rect.right || clientY < rect.top || clientY > rect.bottom;
419
+ }
420
+ var candidateSelectors = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"];
421
+ var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
422
+ var NoElement = typeof Element === "undefined";
423
+ var matches = NoElement ? function() {
424
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
425
+ var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
426
+ var _element$getRootNode;
427
+ return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
428
+ } : function(element) {
429
+ return element === null || element === void 0 ? void 0 : element.ownerDocument;
430
+ };
431
+ var _isInert = function isInert(node, lookUp) {
432
+ var _node$getAttribute;
433
+ if (lookUp === void 0) {
434
+ lookUp = true;
435
+ }
436
+ var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
437
+ var inert = inertAtt === "" || inertAtt === "true";
438
+ var result = inert || lookUp && node && // closest does not exist on shadow roots, so we fall back to a manual
439
+ // lookup upward, in case it is not defined.
440
+ (typeof node.closest === "function" ? node.closest("[inert]") : _isInert(node.parentNode));
441
+ return result;
442
+ };
443
+ var isContentEditable = function isContentEditable2(node) {
444
+ var _node$getAttribute2;
445
+ var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
446
+ return attValue === "" || attValue === "true";
447
+ };
448
+ var getCandidates = function getCandidates2(el, includeContainer, filter) {
449
+ if (_isInert(el)) {
450
+ return [];
451
+ }
452
+ var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
453
+ if (includeContainer && matches.call(el, candidateSelector)) {
454
+ candidates.unshift(el);
455
+ }
456
+ candidates = candidates.filter(filter);
457
+ return candidates;
458
+ };
459
+ var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
460
+ var candidates = [];
461
+ var elementsToCheck = Array.from(elements);
462
+ while (elementsToCheck.length) {
463
+ var element = elementsToCheck.shift();
464
+ if (_isInert(element, false)) {
465
+ continue;
466
+ }
467
+ if (element.tagName === "SLOT") {
468
+ var assigned = element.assignedElements();
469
+ var content = assigned.length ? assigned : element.children;
470
+ var nestedCandidates = _getCandidatesIteratively(content, true, options);
471
+ if (options.flatten) {
472
+ candidates.push.apply(candidates, nestedCandidates);
473
+ } else {
474
+ candidates.push({
475
+ scopeParent: element,
476
+ candidates: nestedCandidates
477
+ });
478
+ }
479
+ } else {
480
+ var validCandidate = matches.call(element, candidateSelector);
481
+ if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
482
+ candidates.push(element);
483
+ }
484
+ var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
485
+ typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
486
+ var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
487
+ if (shadowRoot && validShadowRoot) {
488
+ var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
489
+ if (options.flatten) {
490
+ candidates.push.apply(candidates, _nestedCandidates);
491
+ } else {
492
+ candidates.push({
493
+ scopeParent: element,
494
+ candidates: _nestedCandidates
495
+ });
496
+ }
497
+ } else {
498
+ elementsToCheck.unshift.apply(elementsToCheck, element.children);
499
+ }
500
+ }
501
+ }
502
+ return candidates;
503
+ };
504
+ var hasTabIndex = function hasTabIndex2(node) {
505
+ return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
506
+ };
507
+ var getTabIndex = function getTabIndex2(node) {
508
+ if (!node) {
509
+ throw new Error("No node provided");
510
+ }
511
+ if (node.tabIndex < 0) {
512
+ if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
513
+ return 0;
514
+ }
515
+ }
516
+ return node.tabIndex;
517
+ };
518
+ var getSortOrderTabIndex = function getSortOrderTabIndex2(node, isScope) {
519
+ var tabIndex = getTabIndex(node);
520
+ if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
521
+ return 0;
522
+ }
523
+ return tabIndex;
524
+ };
525
+ var sortOrderedTabbables = function sortOrderedTabbables2(a, b) {
526
+ return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
527
+ };
528
+ var isInput = function isInput2(node) {
529
+ return node.tagName === "INPUT";
530
+ };
531
+ var isHiddenInput = function isHiddenInput2(node) {
532
+ return isInput(node) && node.type === "hidden";
533
+ };
534
+ var isDetailsWithSummary = function isDetailsWithSummary2(node) {
535
+ var r = node.tagName === "DETAILS" && Array.prototype.slice.apply(node.children).some(function(child) {
536
+ return child.tagName === "SUMMARY";
537
+ });
538
+ return r;
539
+ };
540
+ var getCheckedRadio = function getCheckedRadio2(nodes, form) {
541
+ for (var i = 0; i < nodes.length; i++) {
542
+ if (nodes[i].checked && nodes[i].form === form) {
543
+ return nodes[i];
544
+ }
545
+ }
546
+ };
547
+ var isTabbableRadio = function isTabbableRadio2(node) {
548
+ if (!node.name) {
549
+ return true;
550
+ }
551
+ var radioScope = node.form || getRootNode(node);
552
+ var queryRadios = function queryRadios2(name) {
553
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
554
+ };
555
+ var radioSet;
556
+ if (typeof window !== "undefined" && typeof window.CSS !== "undefined" && typeof window.CSS.escape === "function") {
557
+ radioSet = queryRadios(window.CSS.escape(node.name));
558
+ } else {
559
+ try {
560
+ radioSet = queryRadios(node.name);
561
+ } catch (err) {
562
+ console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", err.message);
563
+ return false;
564
+ }
565
+ }
566
+ var checked = getCheckedRadio(radioSet, node.form);
567
+ return !checked || checked === node;
568
+ };
569
+ var isRadio = function isRadio2(node) {
570
+ return isInput(node) && node.type === "radio";
571
+ };
572
+ var isNonTabbableRadio = function isNonTabbableRadio2(node) {
573
+ return isRadio(node) && !isTabbableRadio(node);
574
+ };
575
+ var isNodeAttached = function isNodeAttached2(node) {
576
+ var _nodeRoot;
577
+ var nodeRoot = node && getRootNode(node);
578
+ var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
579
+ var attached = false;
580
+ if (nodeRoot && nodeRoot !== node) {
581
+ var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
582
+ attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
583
+ while (!attached && nodeRootHost) {
584
+ var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
585
+ nodeRoot = getRootNode(nodeRootHost);
586
+ nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
587
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
588
+ }
589
+ }
590
+ return attached;
591
+ };
592
+ var isZeroArea = function isZeroArea2(node) {
593
+ var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
594
+ return width === 0 && height === 0;
595
+ };
596
+ var isHidden = function isHidden2(node, _ref) {
597
+ var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
598
+ if (displayCheck === "full-native") {
599
+ if ("checkVisibility" in node) {
600
+ var visible = node.checkVisibility({
601
+ // Checking opacity might be desirable for some use cases, but natively,
602
+ // opacity zero elements _are_ focusable and tabbable.
603
+ checkOpacity: false,
604
+ opacityProperty: false,
605
+ contentVisibilityAuto: true,
606
+ visibilityProperty: true,
607
+ // This is an alias for `visibilityProperty`. Contemporary browsers
608
+ // support both. However, this alias has wider browser support (Chrome
609
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
610
+ // we include it anyway.
611
+ checkVisibilityCSS: true
612
+ });
613
+ return !visible;
614
+ }
615
+ }
616
+ if (getComputedStyle(node).visibility === "hidden") {
617
+ return true;
618
+ }
619
+ var isDirectSummary = matches.call(node, "details>summary:first-of-type");
620
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
621
+ if (matches.call(nodeUnderDetails, "details:not([open]) *")) {
622
+ return true;
623
+ }
624
+ if (!displayCheck || displayCheck === "full" || // full-native can run this branch when it falls through in case
625
+ // Element#checkVisibility is unsupported
626
+ displayCheck === "full-native" || displayCheck === "legacy-full") {
627
+ if (typeof getShadowRoot === "function") {
628
+ var originalNode = node;
629
+ while (node) {
630
+ var parentElement = node.parentElement;
631
+ var rootNode = getRootNode(node);
632
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) {
633
+ return isZeroArea(node);
634
+ } else if (node.assignedSlot) {
635
+ node = node.assignedSlot;
636
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
637
+ node = rootNode.host;
638
+ } else {
639
+ node = parentElement;
640
+ }
641
+ }
642
+ node = originalNode;
643
+ }
644
+ if (isNodeAttached(node)) {
645
+ return !node.getClientRects().length;
646
+ }
647
+ if (displayCheck !== "legacy-full") {
648
+ return true;
649
+ }
650
+ } else if (displayCheck === "non-zero-area") {
651
+ return isZeroArea(node);
652
+ }
653
+ return false;
654
+ };
655
+ var isDisabledFromFieldset = function isDisabledFromFieldset2(node) {
656
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
657
+ var parentNode = node.parentElement;
658
+ while (parentNode) {
659
+ if (parentNode.tagName === "FIELDSET" && parentNode.disabled) {
660
+ for (var i = 0; i < parentNode.children.length; i++) {
661
+ var child = parentNode.children.item(i);
662
+ if (child.tagName === "LEGEND") {
663
+ return matches.call(parentNode, "fieldset[disabled] *") ? true : !child.contains(node);
664
+ }
665
+ }
666
+ return true;
667
+ }
668
+ parentNode = parentNode.parentElement;
669
+ }
670
+ }
671
+ return false;
672
+ };
673
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {
674
+ if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
675
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
676
+ return false;
677
+ }
678
+ return true;
679
+ };
680
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {
681
+ if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
682
+ return false;
683
+ }
684
+ return true;
685
+ };
686
+ var isShadowRootTabbable = function isShadowRootTabbable2(shadowHostNode) {
687
+ var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
688
+ if (isNaN(tabIndex) || tabIndex >= 0) {
689
+ return true;
690
+ }
691
+ return false;
692
+ };
693
+ var _sortByOrder = function sortByOrder(candidates) {
694
+ var regularTabbables = [];
695
+ var orderedTabbables = [];
696
+ candidates.forEach(function(item, i) {
697
+ var isScope = !!item.scopeParent;
698
+ var element = isScope ? item.scopeParent : item;
699
+ var candidateTabindex = getSortOrderTabIndex(element, isScope);
700
+ var elements = isScope ? _sortByOrder(item.candidates) : element;
701
+ if (candidateTabindex === 0) {
702
+ isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
703
+ } else {
704
+ orderedTabbables.push({
705
+ documentOrder: i,
706
+ tabIndex: candidateTabindex,
707
+ item,
708
+ isScope,
709
+ content: elements
710
+ });
711
+ }
712
+ });
713
+ return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {
714
+ sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
715
+ return acc;
716
+ }, []).concat(regularTabbables);
717
+ };
718
+ var tabbable = function tabbable2(container, options) {
719
+ options = options || {};
720
+ var candidates;
721
+ if (options.getShadowRoot) {
722
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
723
+ filter: isNodeMatchingSelectorTabbable.bind(null, options),
724
+ flatten: false,
725
+ getShadowRoot: options.getShadowRoot,
726
+ shadowRootFilter: isShadowRootTabbable
727
+ });
728
+ } else {
729
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
730
+ }
731
+ return _sortByOrder(candidates);
732
+ };
733
+ var focusable = function focusable2(container, options) {
734
+ options = options || {};
735
+ var candidates;
736
+ if (options.getShadowRoot) {
737
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
738
+ filter: isNodeMatchingSelectorFocusable.bind(null, options),
739
+ flatten: true,
740
+ getShadowRoot: options.getShadowRoot
741
+ });
742
+ } else {
743
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
744
+ }
745
+ return candidates;
746
+ };
747
+ var focusableCandidateSelector = /* @__PURE__ */ candidateSelectors.concat("iframe:not([inert]):not([inert] *)").join(",");
748
+ var isFocusable = function isFocusable2(node, options) {
749
+ options = options || {};
750
+ if (!node) {
751
+ throw new Error("No node provided");
752
+ }
753
+ if (matches.call(node, focusableCandidateSelector) === false) {
754
+ return false;
755
+ }
756
+ return isNodeMatchingSelectorFocusable(options, node);
757
+ };
758
+ const CONTEXT_MENU_TRIGGER_ATTR = "data-context-menu-trigger";
759
+ const CONTEXT_MENU_CONTENT_ATTR = "data-context-menu-content";
760
+ createBitsAttrs({
761
+ component: "menu",
762
+ parts: [
763
+ "trigger",
764
+ "content",
765
+ "sub-trigger",
766
+ "item",
767
+ "group",
768
+ "group-heading",
769
+ "checkbox-group",
770
+ "checkbox-item",
771
+ "radio-group",
772
+ "radio-item",
773
+ "separator",
774
+ "sub-content",
775
+ "arrow"
776
+ ]
777
+ });
778
+ globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
779
+ class DismissibleLayerState {
780
+ static create(opts) {
781
+ return new DismissibleLayerState(opts);
782
+ }
783
+ opts;
784
+ #interactOutsideProp;
785
+ #behaviorType;
786
+ #interceptedEvents = { pointerdown: false };
787
+ #isResponsibleLayer = false;
788
+ #isFocusInsideDOMTree = false;
789
+ #documentObj = void 0;
790
+ #onFocusOutside;
791
+ #unsubClickListener = noop;
792
+ constructor(opts) {
793
+ this.opts = opts;
794
+ this.#behaviorType = opts.interactOutsideBehavior;
795
+ this.#interactOutsideProp = opts.onInteractOutside;
796
+ this.#onFocusOutside = opts.onFocusOutside;
797
+ let unsubEvents = noop;
798
+ const cleanup = () => {
799
+ this.#resetState();
800
+ globalThis.bitsDismissableLayers.delete(this);
801
+ this.#handleInteractOutside.destroy();
802
+ unsubEvents();
803
+ };
804
+ watch([() => this.opts.enabled.current, () => this.opts.ref.current], () => {
805
+ if (!this.opts.enabled.current || !this.opts.ref.current) return;
806
+ afterSleep(1, () => {
807
+ if (!this.opts.ref.current) return;
808
+ globalThis.bitsDismissableLayers.set(this, this.#behaviorType);
809
+ unsubEvents();
810
+ unsubEvents = this.#addEventListeners();
811
+ });
812
+ return cleanup;
813
+ });
814
+ }
815
+ #handleFocus = (event) => {
816
+ if (event.defaultPrevented) return;
817
+ if (!this.opts.ref.current) return;
818
+ afterTick(() => {
819
+ if (!this.opts.ref.current || this.#isTargetWithinLayer(event.target)) return;
820
+ if (event.target && !this.#isFocusInsideDOMTree) {
821
+ this.#onFocusOutside.current?.(event);
822
+ }
823
+ });
824
+ };
825
+ #addEventListeners() {
826
+ return executeCallbacks(
827
+ /**
828
+ * CAPTURE INTERACTION START
829
+ * mark interaction-start event as intercepted.
830
+ * mark responsible layer during interaction start
831
+ * to avoid checking if is responsible layer during interaction end
832
+ * when a new floating element may have been opened.
833
+ */
834
+ on(this.#documentObj, "pointerdown", executeCallbacks(this.#markInterceptedEvent, this.#markResponsibleLayer), { capture: true }),
835
+ /**
836
+ * BUBBLE INTERACTION START
837
+ * Mark interaction-start event as non-intercepted. Debounce `onInteractOutsideStart`
838
+ * to avoid prematurely checking if other events were intercepted.
839
+ */
840
+ on(this.#documentObj, "pointerdown", executeCallbacks(this.#markNonInterceptedEvent, this.#handleInteractOutside)),
841
+ /**
842
+ * HANDLE FOCUS OUTSIDE
843
+ */
844
+ on(this.#documentObj, "focusin", this.#handleFocus)
845
+ );
846
+ }
847
+ #handleDismiss = (e) => {
848
+ let event = e;
849
+ if (event.defaultPrevented) {
850
+ event = createWrappedEvent(e);
851
+ }
852
+ this.#interactOutsideProp.current(e);
853
+ };
854
+ #handleInteractOutside = debounce(
855
+ (e) => {
856
+ if (!this.opts.ref.current) {
857
+ this.#unsubClickListener();
858
+ return;
859
+ }
860
+ const isEventValid = this.opts.isValidEvent.current(e, this.opts.ref.current) || isValidEvent(e, this.opts.ref.current);
861
+ if (!this.#isResponsibleLayer || this.#isAnyEventIntercepted() || !isEventValid) {
862
+ this.#unsubClickListener();
863
+ return;
864
+ }
865
+ let event = e;
866
+ if (event.defaultPrevented) {
867
+ event = createWrappedEvent(event);
868
+ }
869
+ if (this.#behaviorType.current !== "close" && this.#behaviorType.current !== "defer-otherwise-close") {
870
+ this.#unsubClickListener();
871
+ return;
872
+ }
873
+ if (e.pointerType === "touch") {
874
+ this.#unsubClickListener();
875
+ this.#unsubClickListener = on(this.#documentObj, "click", this.#handleDismiss, { once: true });
876
+ } else {
877
+ this.#interactOutsideProp.current(event);
878
+ }
879
+ },
880
+ 10
881
+ );
882
+ #markInterceptedEvent = (e) => {
883
+ this.#interceptedEvents[e.type] = true;
884
+ };
885
+ #markNonInterceptedEvent = (e) => {
886
+ this.#interceptedEvents[e.type] = false;
887
+ };
888
+ #markResponsibleLayer = () => {
889
+ if (!this.opts.ref.current) return;
890
+ this.#isResponsibleLayer = isResponsibleLayer(this.opts.ref.current);
891
+ };
892
+ #isTargetWithinLayer = (target) => {
893
+ if (!this.opts.ref.current) return false;
894
+ return isOrContainsTarget(this.opts.ref.current, target);
895
+ };
896
+ #resetState = debounce(
897
+ () => {
898
+ for (const eventType in this.#interceptedEvents) {
899
+ this.#interceptedEvents[eventType] = false;
900
+ }
901
+ this.#isResponsibleLayer = false;
902
+ },
903
+ 20
904
+ );
905
+ #isAnyEventIntercepted() {
906
+ const i = Object.values(this.#interceptedEvents).some(Boolean);
907
+ return i;
908
+ }
909
+ #onfocuscapture = () => {
910
+ this.#isFocusInsideDOMTree = true;
911
+ };
912
+ #onblurcapture = () => {
913
+ this.#isFocusInsideDOMTree = false;
914
+ };
915
+ props = {
916
+ onfocuscapture: this.#onfocuscapture,
917
+ onblurcapture: this.#onblurcapture
918
+ };
919
+ }
920
+ function getTopMostDismissableLayer(layersArr = [...globalThis.bitsDismissableLayers]) {
921
+ return layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
922
+ }
923
+ function isResponsibleLayer(node) {
924
+ const layersArr = [...globalThis.bitsDismissableLayers];
925
+ const topMostLayer = getTopMostDismissableLayer(layersArr);
926
+ if (topMostLayer) return topMostLayer[0].opts.ref.current === node;
927
+ const [firstLayerNode] = layersArr[0];
928
+ return firstLayerNode.opts.ref.current === node;
929
+ }
930
+ function isValidEvent(e, node) {
931
+ const target = e.target;
932
+ if (!isElementOrSVGElement(target)) return false;
933
+ const targetIsContextMenuTrigger = Boolean(target.closest(`[${CONTEXT_MENU_TRIGGER_ATTR}]`));
934
+ const nodeIsContextMenu = Boolean(node.closest(`[${CONTEXT_MENU_CONTENT_ATTR}]`));
935
+ if ("button" in e && e.button > 0 && !targetIsContextMenuTrigger) return false;
936
+ if ("button" in e && e.button === 0 && targetIsContextMenuTrigger && nodeIsContextMenu) {
937
+ return true;
938
+ }
939
+ if (targetIsContextMenuTrigger && nodeIsContextMenu) return false;
940
+ const ownerDocument = getOwnerDocument(target);
941
+ const isValid = ownerDocument.documentElement.contains(target) && !isOrContainsTarget(node, target) && isClickTrulyOutside(e, node);
942
+ return isValid;
943
+ }
944
+ function createWrappedEvent(e) {
945
+ const capturedCurrentTarget = e.currentTarget;
946
+ const capturedTarget = e.target;
947
+ let newEvent;
948
+ if (e instanceof PointerEvent) {
949
+ newEvent = new PointerEvent(e.type, e);
950
+ } else {
951
+ newEvent = new PointerEvent("pointerdown", e);
952
+ }
953
+ let isPrevented = false;
954
+ const wrappedEvent = new Proxy(newEvent, {
955
+ get: (target, prop) => {
956
+ if (prop === "currentTarget") {
957
+ return capturedCurrentTarget;
958
+ }
959
+ if (prop === "target") {
960
+ return capturedTarget;
961
+ }
962
+ if (prop === "preventDefault") {
963
+ return () => {
964
+ isPrevented = true;
965
+ if (typeof target.preventDefault === "function") {
966
+ target.preventDefault();
967
+ }
968
+ };
969
+ }
970
+ if (prop === "defaultPrevented") {
971
+ return isPrevented;
972
+ }
973
+ if (prop in target) {
974
+ return target[prop];
975
+ }
976
+ return e[prop];
977
+ }
978
+ });
979
+ return wrappedEvent;
980
+ }
981
+ function Dismissible_layer($$renderer, $$props) {
982
+ $$renderer.component(($$renderer2) => {
983
+ let {
984
+ interactOutsideBehavior = "close",
985
+ onInteractOutside = noop,
986
+ onFocusOutside = noop,
987
+ id,
988
+ children,
989
+ enabled,
990
+ isValidEvent: isValidEvent2 = () => false,
991
+ ref
992
+ } = $$props;
993
+ const dismissibleLayerState = DismissibleLayerState.create({
994
+ id: boxWith(() => id),
995
+ interactOutsideBehavior: boxWith(() => interactOutsideBehavior),
996
+ onInteractOutside: boxWith(() => onInteractOutside),
997
+ enabled: boxWith(() => enabled),
998
+ onFocusOutside: boxWith(() => onFocusOutside),
999
+ isValidEvent: boxWith(() => isValidEvent2),
1000
+ ref
1001
+ });
1002
+ children?.($$renderer2, { props: dismissibleLayerState.props });
1003
+ $$renderer2.push(`<!---->`);
1004
+ });
1005
+ }
1006
+ globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
1007
+ class EscapeLayerState {
1008
+ static create(opts) {
1009
+ return new EscapeLayerState(opts);
1010
+ }
1011
+ opts;
1012
+ domContext;
1013
+ constructor(opts) {
1014
+ this.opts = opts;
1015
+ this.domContext = new DOMContext(this.opts.ref);
1016
+ let unsubEvents = noop;
1017
+ watch(() => opts.enabled.current, (enabled) => {
1018
+ if (enabled) {
1019
+ globalThis.bitsEscapeLayers.set(this, opts.escapeKeydownBehavior);
1020
+ unsubEvents = this.#addEventListener();
1021
+ }
1022
+ return () => {
1023
+ unsubEvents();
1024
+ globalThis.bitsEscapeLayers.delete(this);
1025
+ };
1026
+ });
1027
+ }
1028
+ #addEventListener = () => {
1029
+ return on(this.domContext.getDocument(), "keydown", this.#onkeydown, { passive: false });
1030
+ };
1031
+ #onkeydown = (e) => {
1032
+ if (e.key !== ESCAPE || !isResponsibleEscapeLayer(this)) return;
1033
+ const clonedEvent = new KeyboardEvent(e.type, e);
1034
+ e.preventDefault();
1035
+ const behaviorType = this.opts.escapeKeydownBehavior.current;
1036
+ if (behaviorType !== "close" && behaviorType !== "defer-otherwise-close") return;
1037
+ this.opts.onEscapeKeydown.current(clonedEvent);
1038
+ };
1039
+ }
1040
+ function isResponsibleEscapeLayer(instance) {
1041
+ const layersArr = [...globalThis.bitsEscapeLayers];
1042
+ const topMostLayer = layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
1043
+ if (topMostLayer) return topMostLayer[0] === instance;
1044
+ const [firstLayerNode] = layersArr[0];
1045
+ return firstLayerNode === instance;
1046
+ }
1047
+ function Escape_layer($$renderer, $$props) {
1048
+ $$renderer.component(($$renderer2) => {
1049
+ let {
1050
+ escapeKeydownBehavior = "close",
1051
+ onEscapeKeydown = noop,
1052
+ children,
1053
+ enabled,
1054
+ ref
1055
+ } = $$props;
1056
+ EscapeLayerState.create({
1057
+ escapeKeydownBehavior: boxWith(() => escapeKeydownBehavior),
1058
+ onEscapeKeydown: boxWith(() => onEscapeKeydown),
1059
+ enabled: boxWith(() => enabled),
1060
+ ref
1061
+ });
1062
+ children?.($$renderer2);
1063
+ $$renderer2.push(`<!---->`);
1064
+ });
1065
+ }
1066
+ class FocusScopeManager {
1067
+ static instance;
1068
+ #scopeStack = simpleBox([]);
1069
+ #focusHistory = /* @__PURE__ */ new WeakMap();
1070
+ #preFocusHistory = /* @__PURE__ */ new WeakMap();
1071
+ static getInstance() {
1072
+ if (!this.instance) {
1073
+ this.instance = new FocusScopeManager();
1074
+ }
1075
+ return this.instance;
1076
+ }
1077
+ register(scope) {
1078
+ const current = this.getActive();
1079
+ if (current && current !== scope) {
1080
+ current.pause();
1081
+ }
1082
+ const activeElement = document.activeElement;
1083
+ if (activeElement && activeElement !== document.body) {
1084
+ this.#preFocusHistory.set(scope, activeElement);
1085
+ }
1086
+ this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);
1087
+ this.#scopeStack.current.unshift(scope);
1088
+ }
1089
+ unregister(scope) {
1090
+ this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);
1091
+ const next = this.getActive();
1092
+ if (next) {
1093
+ next.resume();
1094
+ }
1095
+ }
1096
+ getActive() {
1097
+ return this.#scopeStack.current[0];
1098
+ }
1099
+ setFocusMemory(scope, element) {
1100
+ this.#focusHistory.set(scope, element);
1101
+ }
1102
+ getFocusMemory(scope) {
1103
+ return this.#focusHistory.get(scope);
1104
+ }
1105
+ isActiveScope(scope) {
1106
+ return this.getActive() === scope;
1107
+ }
1108
+ setPreFocusMemory(scope, element) {
1109
+ this.#preFocusHistory.set(scope, element);
1110
+ }
1111
+ getPreFocusMemory(scope) {
1112
+ return this.#preFocusHistory.get(scope);
1113
+ }
1114
+ clearPreFocusMemory(scope) {
1115
+ this.#preFocusHistory.delete(scope);
1116
+ }
1117
+ }
1118
+ class FocusScope {
1119
+ #paused = false;
1120
+ #container = null;
1121
+ #manager = FocusScopeManager.getInstance();
1122
+ #cleanupFns = [];
1123
+ #opts;
1124
+ constructor(opts) {
1125
+ this.#opts = opts;
1126
+ }
1127
+ get paused() {
1128
+ return this.#paused;
1129
+ }
1130
+ pause() {
1131
+ this.#paused = true;
1132
+ }
1133
+ resume() {
1134
+ this.#paused = false;
1135
+ }
1136
+ #cleanup() {
1137
+ for (const fn of this.#cleanupFns) {
1138
+ fn();
1139
+ }
1140
+ this.#cleanupFns = [];
1141
+ }
1142
+ mount(container) {
1143
+ if (this.#container) {
1144
+ this.unmount();
1145
+ }
1146
+ this.#container = container;
1147
+ this.#manager.register(this);
1148
+ this.#setupEventListeners();
1149
+ this.#handleOpenAutoFocus();
1150
+ }
1151
+ unmount() {
1152
+ if (!this.#container) return;
1153
+ this.#cleanup();
1154
+ this.#handleCloseAutoFocus();
1155
+ this.#manager.unregister(this);
1156
+ this.#manager.clearPreFocusMemory(this);
1157
+ this.#container = null;
1158
+ }
1159
+ #handleOpenAutoFocus() {
1160
+ if (!this.#container) return;
1161
+ const event = new CustomEvent("focusScope.onOpenAutoFocus", { bubbles: false, cancelable: true });
1162
+ this.#opts.onOpenAutoFocus.current(event);
1163
+ if (!event.defaultPrevented) {
1164
+ requestAnimationFrame(() => {
1165
+ if (!this.#container) return;
1166
+ const firstTabbable = this.#getFirstTabbable();
1167
+ if (firstTabbable) {
1168
+ firstTabbable.focus();
1169
+ this.#manager.setFocusMemory(this, firstTabbable);
1170
+ } else {
1171
+ this.#container.focus();
1172
+ }
1173
+ });
1174
+ }
1175
+ }
1176
+ #handleCloseAutoFocus() {
1177
+ const event = new CustomEvent("focusScope.onCloseAutoFocus", { bubbles: false, cancelable: true });
1178
+ this.#opts.onCloseAutoFocus.current?.(event);
1179
+ if (!event.defaultPrevented) {
1180
+ const preFocusedElement = this.#manager.getPreFocusMemory(this);
1181
+ if (preFocusedElement && document.contains(preFocusedElement)) {
1182
+ try {
1183
+ preFocusedElement.focus();
1184
+ } catch {
1185
+ document.body.focus();
1186
+ }
1187
+ }
1188
+ }
1189
+ }
1190
+ #setupEventListeners() {
1191
+ if (!this.#container || !this.#opts.trap.current) return;
1192
+ const container = this.#container;
1193
+ const doc = container.ownerDocument;
1194
+ const handleFocus = (e) => {
1195
+ if (this.#paused || !this.#manager.isActiveScope(this)) return;
1196
+ const target = e.target;
1197
+ if (!target) return;
1198
+ const isInside = container.contains(target);
1199
+ if (isInside) {
1200
+ this.#manager.setFocusMemory(this, target);
1201
+ } else {
1202
+ const lastFocused = this.#manager.getFocusMemory(this);
1203
+ if (lastFocused && container.contains(lastFocused) && isFocusable(lastFocused)) {
1204
+ e.preventDefault();
1205
+ lastFocused.focus();
1206
+ } else {
1207
+ const firstTabbable = this.#getFirstTabbable();
1208
+ const firstFocusable = this.#getAllFocusables()[0];
1209
+ (firstTabbable || firstFocusable || container).focus();
1210
+ }
1211
+ }
1212
+ };
1213
+ const handleKeydown = (e) => {
1214
+ if (!this.#opts.loop || this.#paused || e.key !== "Tab") return;
1215
+ if (!this.#manager.isActiveScope(this)) return;
1216
+ const tabbables = this.#getTabbables();
1217
+ if (tabbables.length === 0) return;
1218
+ const first = tabbables[0];
1219
+ const last = tabbables[tabbables.length - 1];
1220
+ if (!e.shiftKey && doc.activeElement === last) {
1221
+ e.preventDefault();
1222
+ first.focus();
1223
+ } else if (e.shiftKey && doc.activeElement === first) {
1224
+ e.preventDefault();
1225
+ last.focus();
1226
+ }
1227
+ };
1228
+ this.#cleanupFns.push(on(doc, "focusin", handleFocus, { capture: true }), on(container, "keydown", handleKeydown));
1229
+ const observer = new MutationObserver(() => {
1230
+ const lastFocused = this.#manager.getFocusMemory(this);
1231
+ if (lastFocused && !container.contains(lastFocused)) {
1232
+ const firstTabbable = this.#getFirstTabbable();
1233
+ const firstFocusable = this.#getAllFocusables()[0];
1234
+ const elementToFocus = firstTabbable || firstFocusable;
1235
+ if (elementToFocus) {
1236
+ elementToFocus.focus();
1237
+ this.#manager.setFocusMemory(this, elementToFocus);
1238
+ } else {
1239
+ container.focus();
1240
+ }
1241
+ }
1242
+ });
1243
+ observer.observe(container, { childList: true, subtree: true });
1244
+ this.#cleanupFns.push(() => observer.disconnect());
1245
+ }
1246
+ #getTabbables() {
1247
+ if (!this.#container) return [];
1248
+ return tabbable(this.#container, { includeContainer: false, getShadowRoot: true });
1249
+ }
1250
+ #getFirstTabbable() {
1251
+ const tabbables = this.#getTabbables();
1252
+ return tabbables[0] || null;
1253
+ }
1254
+ #getAllFocusables() {
1255
+ if (!this.#container) return [];
1256
+ return focusable(this.#container, { includeContainer: false, getShadowRoot: true });
1257
+ }
1258
+ static use(opts) {
1259
+ let scope = null;
1260
+ watch([() => opts.ref.current, () => opts.enabled.current], ([ref, enabled]) => {
1261
+ if (ref && enabled) {
1262
+ if (!scope) {
1263
+ scope = new FocusScope(opts);
1264
+ }
1265
+ scope.mount(ref);
1266
+ } else if (scope) {
1267
+ scope.unmount();
1268
+ scope = null;
1269
+ }
1270
+ });
1271
+ return {
1272
+ get props() {
1273
+ return { tabindex: -1 };
1274
+ }
1275
+ };
1276
+ }
1277
+ }
1278
+ function Focus_scope($$renderer, $$props) {
1279
+ $$renderer.component(($$renderer2) => {
1280
+ let {
1281
+ enabled = false,
1282
+ trapFocus = false,
1283
+ loop = false,
1284
+ onCloseAutoFocus = noop,
1285
+ onOpenAutoFocus = noop,
1286
+ focusScope,
1287
+ ref
1288
+ } = $$props;
1289
+ const focusScopeState = FocusScope.use({
1290
+ enabled: boxWith(() => enabled),
1291
+ trap: boxWith(() => trapFocus),
1292
+ loop,
1293
+ onCloseAutoFocus: boxWith(() => onCloseAutoFocus),
1294
+ onOpenAutoFocus: boxWith(() => onOpenAutoFocus),
1295
+ ref
1296
+ });
1297
+ focusScope?.($$renderer2, { props: focusScopeState.props });
1298
+ $$renderer2.push(`<!---->`);
1299
+ });
1300
+ }
1301
+ const noopPointer = () => {
1302
+ };
1303
+ globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
1304
+ class TextSelectionLayerState {
1305
+ static create(opts) {
1306
+ return new TextSelectionLayerState(opts);
1307
+ }
1308
+ opts;
1309
+ domContext;
1310
+ #unsubSelectionLock = noop;
1311
+ #enabledSnapshot = false;
1312
+ #onPointerDownSnapshot = noopPointer;
1313
+ #onPointerUpSnapshot = noopPointer;
1314
+ constructor(opts) {
1315
+ this.opts = opts;
1316
+ this.domContext = new DOMContext(opts.ref);
1317
+ let unsubEvents = noop;
1318
+ watch(
1319
+ () => [
1320
+ this.opts.enabled.current,
1321
+ this.opts.onPointerDown.current,
1322
+ this.opts.onPointerUp.current
1323
+ ],
1324
+ ([enabled, onPointerDown, onPointerUp]) => {
1325
+ this.#enabledSnapshot = enabled;
1326
+ this.#onPointerDownSnapshot = onPointerDown;
1327
+ this.#onPointerUpSnapshot = onPointerUp;
1328
+ if (enabled) {
1329
+ globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled);
1330
+ unsubEvents();
1331
+ unsubEvents = this.#addEventListeners();
1332
+ }
1333
+ return () => {
1334
+ this.#enabledSnapshot = false;
1335
+ unsubEvents();
1336
+ this.#resetSelectionLock();
1337
+ globalThis.bitsTextSelectionLayers.delete(this);
1338
+ };
1339
+ }
1340
+ );
1341
+ }
1342
+ #addEventListeners() {
1343
+ return executeCallbacks(on(this.domContext.getDocument(), "pointerdown", this.#pointerdown), on(this.domContext.getDocument(), "pointerup", composeHandlers(this.#resetSelectionLock, this.#pointerupUserHandler)));
1344
+ }
1345
+ #pointerupUserHandler = (e) => {
1346
+ this.#onPointerUpSnapshot(e);
1347
+ };
1348
+ #pointerdown = (e) => {
1349
+ const node = this.opts.ref.current;
1350
+ const target = e.target;
1351
+ if (!isHTMLElement$1(node) || !isHTMLElement$1(target) || !this.#enabledSnapshot) return;
1352
+ if (!isHighestLayer(this) || !contains(node, target)) return;
1353
+ this.#onPointerDownSnapshot(e);
1354
+ if (e.defaultPrevented) return;
1355
+ this.#unsubSelectionLock = preventTextSelectionOverflow(node, this.domContext.getDocument().body);
1356
+ };
1357
+ #resetSelectionLock = () => {
1358
+ this.#unsubSelectionLock();
1359
+ this.#unsubSelectionLock = noop;
1360
+ };
1361
+ }
1362
+ const getUserSelect = (node) => node.style.userSelect || node.style.webkitUserSelect;
1363
+ function preventTextSelectionOverflow(node, body) {
1364
+ const originalBodyUserSelect = getUserSelect(body);
1365
+ const originalNodeUserSelect = getUserSelect(node);
1366
+ setUserSelect(body, "none");
1367
+ setUserSelect(node, "text");
1368
+ return () => {
1369
+ setUserSelect(body, originalBodyUserSelect);
1370
+ setUserSelect(node, originalNodeUserSelect);
1371
+ };
1372
+ }
1373
+ function setUserSelect(node, value) {
1374
+ node.style.userSelect = value;
1375
+ node.style.webkitUserSelect = value;
1376
+ }
1377
+ function isHighestLayer(instance) {
1378
+ const layersArr = [...globalThis.bitsTextSelectionLayers];
1379
+ if (!layersArr.length) return false;
1380
+ const highestLayer = layersArr.at(-1);
1381
+ if (!highestLayer) return false;
1382
+ return highestLayer[0] === instance;
1383
+ }
1384
+ function Text_selection_layer($$renderer, $$props) {
1385
+ $$renderer.component(($$renderer2) => {
1386
+ let {
1387
+ preventOverflowTextSelection = true,
1388
+ onPointerDown = noop,
1389
+ onPointerUp = noop,
1390
+ id,
1391
+ children,
1392
+ enabled,
1393
+ ref
1394
+ } = $$props;
1395
+ TextSelectionLayerState.create({
1396
+ id: boxWith(() => id),
1397
+ onPointerDown: boxWith(() => onPointerDown),
1398
+ onPointerUp: boxWith(() => onPointerUp),
1399
+ enabled: boxWith(() => enabled && preventOverflowTextSelection),
1400
+ ref
1401
+ });
1402
+ children?.($$renderer2);
1403
+ $$renderer2.push(`<!---->`);
1404
+ });
1405
+ }
1406
+ globalThis.bitsIdCounter ??= { current: 0 };
1407
+ function useId(prefix = "bits") {
1408
+ globalThis.bitsIdCounter.current++;
1409
+ return `${prefix}-${globalThis.bitsIdCounter.current}`;
1410
+ }
1411
+ class SharedState {
1412
+ #factory;
1413
+ #subscribers = 0;
1414
+ #state;
1415
+ #scope;
1416
+ constructor(factory) {
1417
+ this.#factory = factory;
1418
+ }
1419
+ #dispose() {
1420
+ this.#subscribers -= 1;
1421
+ if (this.#scope && this.#subscribers <= 0) {
1422
+ this.#scope();
1423
+ this.#state = void 0;
1424
+ this.#scope = void 0;
1425
+ }
1426
+ }
1427
+ get(...args) {
1428
+ this.#subscribers += 1;
1429
+ if (this.#state === void 0) {
1430
+ this.#scope = () => {
1431
+ };
1432
+ }
1433
+ return this.#state;
1434
+ }
1435
+ }
1436
+ const lockMap = new SvelteMap();
1437
+ let initialBodyStyle = null;
1438
+ let cleanupTimeoutId = null;
1439
+ let isInCleanupTransition = false;
1440
+ const anyLocked = boxWith(() => {
1441
+ for (const value of lockMap.values()) {
1442
+ if (value) return true;
1443
+ }
1444
+ return false;
1445
+ });
1446
+ let cleanupScheduledAt = null;
1447
+ const bodyLockStackCount = new SharedState(() => {
1448
+ function resetBodyStyle() {
1449
+ return;
1450
+ }
1451
+ function cancelPendingCleanup() {
1452
+ if (cleanupTimeoutId === null) return;
1453
+ window.clearTimeout(cleanupTimeoutId);
1454
+ cleanupTimeoutId = null;
1455
+ }
1456
+ function scheduleCleanupIfNoNewLocks(delay, callback) {
1457
+ cancelPendingCleanup();
1458
+ isInCleanupTransition = true;
1459
+ cleanupScheduledAt = Date.now();
1460
+ const currentCleanupId = cleanupScheduledAt;
1461
+ const cleanupFn = () => {
1462
+ cleanupTimeoutId = null;
1463
+ if (cleanupScheduledAt !== currentCleanupId) return;
1464
+ if (!isAnyLocked(lockMap)) {
1465
+ isInCleanupTransition = false;
1466
+ callback();
1467
+ } else {
1468
+ isInCleanupTransition = false;
1469
+ }
1470
+ };
1471
+ const actualDelay = delay === null ? 24 : delay;
1472
+ cleanupTimeoutId = window.setTimeout(cleanupFn, actualDelay);
1473
+ }
1474
+ function ensureInitialStyleCaptured() {
1475
+ if (initialBodyStyle === null && lockMap.size === 0 && !isInCleanupTransition) {
1476
+ initialBodyStyle = document.body.getAttribute("style");
1477
+ }
1478
+ }
1479
+ watch(() => anyLocked.current, () => {
1480
+ if (!anyLocked.current) return;
1481
+ ensureInitialStyleCaptured();
1482
+ isInCleanupTransition = false;
1483
+ const htmlStyle = getComputedStyle(document.documentElement);
1484
+ const bodyStyle = getComputedStyle(document.body);
1485
+ const hasStableGutter = htmlStyle.scrollbarGutter?.includes("stable") || bodyStyle.scrollbarGutter?.includes("stable");
1486
+ const verticalScrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
1487
+ const paddingRight = Number.parseInt(bodyStyle.paddingRight ?? "0", 10);
1488
+ const config = {
1489
+ padding: paddingRight + verticalScrollbarWidth,
1490
+ margin: Number.parseInt(bodyStyle.marginRight ?? "0", 10)
1491
+ };
1492
+ if (verticalScrollbarWidth > 0 && !hasStableGutter) {
1493
+ document.body.style.paddingRight = `${config.padding}px`;
1494
+ document.body.style.marginRight = `${config.margin}px`;
1495
+ document.body.style.setProperty("--scrollbar-width", `${verticalScrollbarWidth}px`);
1496
+ }
1497
+ document.body.style.overflow = "hidden";
1498
+ if (isIOS) {
1499
+ on(
1500
+ document,
1501
+ "touchmove",
1502
+ (e) => {
1503
+ if (e.target !== document.documentElement) return;
1504
+ if (e.touches.length > 1) return;
1505
+ e.preventDefault();
1506
+ },
1507
+ { passive: false }
1508
+ );
1509
+ }
1510
+ afterTick(() => {
1511
+ document.body.style.pointerEvents = "none";
1512
+ document.body.style.overflow = "hidden";
1513
+ });
1514
+ });
1515
+ return {
1516
+ get lockMap() {
1517
+ return lockMap;
1518
+ },
1519
+ resetBodyStyle,
1520
+ scheduleCleanupIfNoNewLocks,
1521
+ cancelPendingCleanup,
1522
+ ensureInitialStyleCaptured
1523
+ };
1524
+ });
1525
+ class BodyScrollLock {
1526
+ #id = useId();
1527
+ #initialState;
1528
+ #restoreScrollDelay = () => null;
1529
+ #countState;
1530
+ locked;
1531
+ constructor(initialState, restoreScrollDelay = () => null) {
1532
+ this.#initialState = initialState;
1533
+ this.#restoreScrollDelay = restoreScrollDelay;
1534
+ this.#countState = bodyLockStackCount.get();
1535
+ if (!this.#countState) return;
1536
+ this.#countState.cancelPendingCleanup();
1537
+ this.#countState.ensureInitialStyleCaptured();
1538
+ this.#countState.lockMap.set(this.#id, this.#initialState ?? false);
1539
+ this.locked = boxWith(() => this.#countState.lockMap.get(this.#id) ?? false, (v) => this.#countState.lockMap.set(this.#id, v));
1540
+ }
1541
+ }
1542
+ function isAnyLocked(map) {
1543
+ for (const [_, value] of map) {
1544
+ if (value) return true;
1545
+ }
1546
+ return false;
1547
+ }
1548
+ function Scroll_lock($$renderer, $$props) {
1549
+ $$renderer.component(($$renderer2) => {
1550
+ let { preventScroll = true, restoreScrollDelay = null } = $$props;
1551
+ if (preventScroll) {
1552
+ new BodyScrollLock(preventScroll, () => restoreScrollDelay);
1553
+ }
1554
+ });
1555
+ }
1556
+
1557
+ export { AnimationsComplete as A, Dismissible_layer as D, Escape_layer as E, Focus_scope as F, PresenceManager as P, Scroll_lock as S, Text_selection_layer as T, afterTick as a, Portal as b, DOMContext as c, afterSleep as d, getWindow as g, onDestroy as o, tick as t, useId as u };
1558
+ //# sourceMappingURL=scroll-lock-BNv9iOMl.js.map