@chrisjowen/wheelhouse 0.3.0 → 0.5.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 (1157) hide show
  1. package/README.md +8 -14
  2. package/build/client/_app/immutable/assets/0.Dts_kSYF.css +1 -0
  3. package/build/client/_app/immutable/assets/0.Dts_kSYF.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.Dts_kSYF.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/2.CzzIqOIS.css +1 -0
  6. package/build/client/_app/immutable/assets/2.CzzIqOIS.css.br +3 -0
  7. package/build/client/_app/immutable/assets/2.CzzIqOIS.css.gz +0 -0
  8. package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css +1 -0
  9. package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css.br +0 -0
  10. package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css.gz +0 -0
  11. package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css +1 -0
  12. package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css.br +0 -0
  13. package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css.gz +0 -0
  14. package/build/client/_app/immutable/assets/dm-sans-latin-ext-wght-italic.DUE6_iCb.woff2 +0 -0
  15. package/build/client/_app/immutable/assets/dm-sans-latin-ext-wght-normal.BOFOeGcA.woff2 +0 -0
  16. package/build/client/_app/immutable/assets/dm-sans-latin-wght-italic.Cz4n9dED.woff2 +0 -0
  17. package/build/client/_app/immutable/assets/dm-sans-latin-wght-normal.Xz1IZZA0.woff2 +0 -0
  18. package/build/client/_app/immutable/assets/instrument-serif-latin-400-italic.DKMiL14s.woff2 +0 -0
  19. package/build/client/_app/immutable/assets/instrument-serif-latin-400-italic.u__WvvIK.woff +0 -0
  20. package/build/client/_app/immutable/assets/instrument-serif-latin-400-normal.BVbkICAY.woff +0 -0
  21. package/build/client/_app/immutable/assets/instrument-serif-latin-400-normal.DnYpCC2O.woff2 +0 -0
  22. package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-italic.C9HzH3YL.woff2 +0 -0
  23. package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-italic.D7-lnxEk.woff +0 -0
  24. package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-normal.C2je3j2s.woff2 +0 -0
  25. package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-normal.CFCUzsTy.woff +0 -0
  26. package/build/client/_app/immutable/chunks/2EjJV7Ut.js +1 -0
  27. package/build/client/_app/immutable/chunks/2EjJV7Ut.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/2EjJV7Ut.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/3Du01Jqv.js +1 -0
  30. package/build/client/_app/immutable/chunks/3Du01Jqv.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/3Du01Jqv.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/7CAxhLNo.js +1 -0
  33. package/build/client/_app/immutable/chunks/7CAxhLNo.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/7CAxhLNo.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/A87jk0Q_.js +1 -0
  36. package/build/client/_app/immutable/chunks/A87jk0Q_.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/A87jk0Q_.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/AuD8JoYA.js +1 -0
  39. package/build/client/_app/immutable/chunks/AuD8JoYA.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/AuD8JoYA.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/B6vY4CXx.js +1 -0
  42. package/build/client/_app/immutable/chunks/B6vY4CXx.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/B6vY4CXx.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/BGLZG4iA.js +1 -0
  45. package/build/client/_app/immutable/chunks/BGLZG4iA.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/BGLZG4iA.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/BGlB5gNb.js +1 -0
  48. package/build/client/_app/immutable/chunks/BGlB5gNb.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/BGlB5gNb.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/BH6a_FWw.js +1 -0
  51. package/build/client/_app/immutable/chunks/BH6a_FWw.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/BH6a_FWw.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/BOHkB3dg.js +1 -0
  54. package/build/client/_app/immutable/chunks/BOHkB3dg.js.br +1 -0
  55. package/build/client/_app/immutable/chunks/BOHkB3dg.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/BOPlc6SC.js +1 -0
  57. package/build/client/_app/immutable/chunks/BOPlc6SC.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/BOPlc6SC.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/BPPnR44u.js +1 -0
  60. package/build/client/_app/immutable/chunks/BPPnR44u.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/BPPnR44u.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/BPpteEm-.js +1 -0
  63. package/build/client/_app/immutable/chunks/BPpteEm-.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/BPpteEm-.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/BSg7AZAN.js +2 -0
  66. package/build/client/_app/immutable/chunks/BSg7AZAN.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/BSg7AZAN.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/BUM18Vio.js +1 -0
  69. package/build/client/_app/immutable/chunks/BUM18Vio.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/BUM18Vio.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/BWiLWMsP.js +1 -0
  72. package/build/client/_app/immutable/chunks/BWiLWMsP.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/BWiLWMsP.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/BXN538J3.js +1 -0
  75. package/build/client/_app/immutable/chunks/BXN538J3.js.br +2 -0
  76. package/build/client/_app/immutable/chunks/BXN538J3.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/BY5XjwMm.js +1 -0
  78. package/build/client/_app/immutable/chunks/BY5XjwMm.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/BY5XjwMm.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/Baw6RQZI.js +1 -0
  81. package/build/client/_app/immutable/chunks/Baw6RQZI.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/Baw6RQZI.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/Bc5hMax7.js +1 -0
  84. package/build/client/_app/immutable/chunks/Bc5hMax7.js.br +0 -0
  85. package/build/client/_app/immutable/chunks/Bc5hMax7.js.gz +0 -0
  86. package/build/client/_app/immutable/chunks/Bc7Ax2k8.js +1 -0
  87. package/build/client/_app/immutable/chunks/Bc7Ax2k8.js.br +0 -0
  88. package/build/client/_app/immutable/chunks/Bc7Ax2k8.js.gz +0 -0
  89. package/build/client/_app/immutable/chunks/BdveifH1.js +1 -0
  90. package/build/client/_app/immutable/chunks/BdveifH1.js.br +0 -0
  91. package/build/client/_app/immutable/chunks/BdveifH1.js.gz +0 -0
  92. package/build/client/_app/immutable/chunks/Bez7sKgF.js +2 -0
  93. package/build/client/_app/immutable/chunks/Bez7sKgF.js.br +0 -0
  94. package/build/client/_app/immutable/chunks/Bez7sKgF.js.gz +0 -0
  95. package/build/client/_app/immutable/chunks/BmPcpuNW.js +1 -0
  96. package/build/client/_app/immutable/chunks/BmPcpuNW.js.br +0 -0
  97. package/build/client/_app/immutable/chunks/BmPcpuNW.js.gz +0 -0
  98. package/build/client/_app/immutable/chunks/BnO3dw9K.js +1 -0
  99. package/build/client/_app/immutable/chunks/BnO3dw9K.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/BnO3dw9K.js.gz +0 -0
  101. package/build/client/_app/immutable/chunks/BnbnQq8I.js +1 -0
  102. package/build/client/_app/immutable/chunks/BnbnQq8I.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/BnbnQq8I.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/Bo5P6Wsq.js +1 -0
  105. package/build/client/_app/immutable/chunks/Bo5P6Wsq.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/Bo5P6Wsq.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/BrERyq0H.js +1 -0
  108. package/build/client/_app/immutable/chunks/BrERyq0H.js.br +0 -0
  109. package/build/client/_app/immutable/chunks/BrERyq0H.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/BuPPYEyE.js +1 -0
  111. package/build/client/_app/immutable/chunks/BuPPYEyE.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/BuPPYEyE.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/BwD_Dg5N.js +1 -0
  114. package/build/client/_app/immutable/chunks/BwD_Dg5N.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/BwD_Dg5N.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/BxUI0v0C.js +1 -0
  117. package/build/client/_app/immutable/chunks/BxUI0v0C.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/BxUI0v0C.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/ByL6RYpC.js +1 -0
  120. package/build/client/_app/immutable/chunks/ByL6RYpC.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/ByL6RYpC.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/C50HDirP.js +1 -0
  123. package/build/client/_app/immutable/chunks/C50HDirP.js.br +0 -0
  124. package/build/client/_app/immutable/chunks/C50HDirP.js.gz +0 -0
  125. package/build/client/_app/immutable/chunks/C66QDSwd.js +1 -0
  126. package/build/client/_app/immutable/chunks/C66QDSwd.js.br +0 -0
  127. package/build/client/_app/immutable/chunks/C66QDSwd.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/CCWNleLp.js +1 -0
  129. package/build/client/_app/immutable/chunks/CCWNleLp.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/CCWNleLp.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/CCz4Nk0V.js +1 -0
  132. package/build/client/_app/immutable/chunks/CCz4Nk0V.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/CCz4Nk0V.js.gz +0 -0
  134. package/build/client/_app/immutable/chunks/CGBjNqYG.js +1 -0
  135. package/build/client/_app/immutable/chunks/CGBjNqYG.js.br +2 -0
  136. package/build/client/_app/immutable/chunks/CGBjNqYG.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/CIAui2pR.js +1 -0
  138. package/build/client/_app/immutable/chunks/CIAui2pR.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/CIAui2pR.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/CMAkb8GS.js +1 -0
  141. package/build/client/_app/immutable/chunks/CMAkb8GS.js.br +0 -0
  142. package/build/client/_app/immutable/chunks/CMAkb8GS.js.gz +0 -0
  143. package/build/client/_app/immutable/chunks/CQ-ixhwd.js +1 -0
  144. package/build/client/_app/immutable/chunks/CQ-ixhwd.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/CQ-ixhwd.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/CQUBPk_4.js +1 -0
  147. package/build/client/_app/immutable/chunks/CQUBPk_4.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/CQUBPk_4.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/CQbHvgoi.js +1 -0
  150. package/build/client/_app/immutable/chunks/CQbHvgoi.js.br +0 -0
  151. package/build/client/_app/immutable/chunks/CQbHvgoi.js.gz +0 -0
  152. package/build/client/_app/immutable/chunks/CTHD30FL.js +1 -0
  153. package/build/client/_app/immutable/chunks/CTHD30FL.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/CTHD30FL.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/CVzwUhTG.js +1 -0
  156. package/build/client/_app/immutable/chunks/CVzwUhTG.js.br +0 -0
  157. package/build/client/_app/immutable/chunks/CVzwUhTG.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/CW2Ovnl0.js +3 -0
  159. package/build/client/_app/immutable/chunks/CW2Ovnl0.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/CW2Ovnl0.js.gz +0 -0
  161. package/build/client/_app/immutable/chunks/CXwBnOE9.js +1 -0
  162. package/build/client/_app/immutable/chunks/CXwBnOE9.js.br +1 -0
  163. package/build/client/_app/immutable/chunks/CXwBnOE9.js.gz +0 -0
  164. package/build/client/_app/immutable/chunks/C_4BzEag.js +1 -0
  165. package/build/client/_app/immutable/chunks/C_4BzEag.js.br +0 -0
  166. package/build/client/_app/immutable/chunks/C_4BzEag.js.gz +0 -0
  167. package/build/client/_app/immutable/chunks/CbBoCW29.js +1 -0
  168. package/build/client/_app/immutable/chunks/CbBoCW29.js.br +0 -0
  169. package/build/client/_app/immutable/chunks/CbBoCW29.js.gz +0 -0
  170. package/build/client/_app/immutable/chunks/CcCgYs-R.js +1 -0
  171. package/build/client/_app/immutable/chunks/CcCgYs-R.js.br +0 -0
  172. package/build/client/_app/immutable/chunks/CcCgYs-R.js.gz +0 -0
  173. package/build/client/_app/immutable/chunks/CfoNxwsz.js +1 -0
  174. package/build/client/_app/immutable/chunks/CfoNxwsz.js.br +0 -0
  175. package/build/client/_app/immutable/chunks/CfoNxwsz.js.gz +0 -0
  176. package/build/client/_app/immutable/chunks/ClsjySa8.js +1 -0
  177. package/build/client/_app/immutable/chunks/ClsjySa8.js.br +0 -0
  178. package/build/client/_app/immutable/chunks/ClsjySa8.js.gz +0 -0
  179. package/build/client/_app/immutable/chunks/CoaeqTa_.js +1 -0
  180. package/build/client/_app/immutable/chunks/CoaeqTa_.js.br +0 -0
  181. package/build/client/_app/immutable/chunks/CoaeqTa_.js.gz +0 -0
  182. package/build/client/_app/immutable/chunks/Cup7Sx9t.js +1 -0
  183. package/build/client/_app/immutable/chunks/Cup7Sx9t.js.br +0 -0
  184. package/build/client/_app/immutable/chunks/Cup7Sx9t.js.gz +0 -0
  185. package/build/client/_app/immutable/chunks/CxC96GTM.js +2 -0
  186. package/build/client/_app/immutable/chunks/CxC96GTM.js.br +0 -0
  187. package/build/client/_app/immutable/chunks/CxC96GTM.js.gz +0 -0
  188. package/build/client/_app/immutable/chunks/D3c133E-.js +6 -0
  189. package/build/client/_app/immutable/chunks/D3c133E-.js.br +0 -0
  190. package/build/client/_app/immutable/chunks/D3c133E-.js.gz +0 -0
  191. package/build/client/_app/immutable/chunks/D44YeCHd.js +1 -0
  192. package/build/client/_app/immutable/chunks/D44YeCHd.js.br +0 -0
  193. package/build/client/_app/immutable/chunks/D44YeCHd.js.gz +0 -0
  194. package/build/client/_app/immutable/chunks/D4mORKzH.js +1 -0
  195. package/build/client/_app/immutable/chunks/D4mORKzH.js.br +0 -0
  196. package/build/client/_app/immutable/chunks/D4mORKzH.js.gz +0 -0
  197. package/build/client/_app/immutable/chunks/DFxmhm_G.js +1 -0
  198. package/build/client/_app/immutable/chunks/DFxmhm_G.js.br +0 -0
  199. package/build/client/_app/immutable/chunks/DFxmhm_G.js.gz +0 -0
  200. package/build/client/_app/immutable/chunks/DHMhHeVH.js +1 -0
  201. package/build/client/_app/immutable/chunks/DHMhHeVH.js.br +0 -0
  202. package/build/client/_app/immutable/chunks/DHMhHeVH.js.gz +0 -0
  203. package/build/client/_app/immutable/chunks/DIorvK89.js +2 -0
  204. package/build/client/_app/immutable/chunks/DIorvK89.js.br +0 -0
  205. package/build/client/_app/immutable/chunks/DIorvK89.js.gz +0 -0
  206. package/build/client/_app/immutable/chunks/DJNADPa5.js +1 -0
  207. package/build/client/_app/immutable/chunks/DJNADPa5.js.br +0 -0
  208. package/build/client/_app/immutable/chunks/DJNADPa5.js.gz +0 -0
  209. package/build/client/_app/immutable/chunks/DKK3Ytks.js +5 -0
  210. package/build/client/_app/immutable/chunks/DKK3Ytks.js.br +0 -0
  211. package/build/client/_app/immutable/chunks/DKK3Ytks.js.gz +0 -0
  212. package/build/client/_app/immutable/chunks/DKQe4Tss.js +1 -0
  213. package/build/client/_app/immutable/chunks/DKQe4Tss.js.br +0 -0
  214. package/build/client/_app/immutable/chunks/DKQe4Tss.js.gz +0 -0
  215. package/build/client/_app/immutable/chunks/DLEyUk0D.js +1 -0
  216. package/build/client/_app/immutable/chunks/DLEyUk0D.js.br +0 -0
  217. package/build/client/_app/immutable/chunks/DLEyUk0D.js.gz +0 -0
  218. package/build/client/_app/immutable/chunks/DNdCwnwU.js +62 -0
  219. package/build/client/_app/immutable/chunks/DNdCwnwU.js.br +0 -0
  220. package/build/client/_app/immutable/chunks/DNdCwnwU.js.gz +0 -0
  221. package/build/client/_app/immutable/chunks/DRD7W95q.js +1 -0
  222. package/build/client/_app/immutable/chunks/DRD7W95q.js.br +0 -0
  223. package/build/client/_app/immutable/chunks/DRD7W95q.js.gz +0 -0
  224. package/build/client/_app/immutable/chunks/DVBYW73Q.js +5 -0
  225. package/build/client/_app/immutable/chunks/DVBYW73Q.js.br +0 -0
  226. package/build/client/_app/immutable/chunks/DVBYW73Q.js.gz +0 -0
  227. package/build/client/_app/immutable/chunks/DVpJ_eyr.js +1 -0
  228. package/build/client/_app/immutable/chunks/DVpJ_eyr.js.br +0 -0
  229. package/build/client/_app/immutable/chunks/DVpJ_eyr.js.gz +0 -0
  230. package/build/client/_app/immutable/chunks/DYnl8SY7.js +2 -0
  231. package/build/client/_app/immutable/chunks/DYnl8SY7.js.br +0 -0
  232. package/build/client/_app/immutable/chunks/DYnl8SY7.js.gz +0 -0
  233. package/build/client/_app/immutable/chunks/DaJnYk4A.js +3 -0
  234. package/build/client/_app/immutable/chunks/DaJnYk4A.js.br +0 -0
  235. package/build/client/_app/immutable/chunks/DaJnYk4A.js.gz +0 -0
  236. package/build/client/_app/immutable/chunks/De0cNRkf.js +1 -0
  237. package/build/client/_app/immutable/chunks/De0cNRkf.js.br +0 -0
  238. package/build/client/_app/immutable/chunks/De0cNRkf.js.gz +0 -0
  239. package/build/client/_app/immutable/chunks/Do0sdwXq.js +1 -0
  240. package/build/client/_app/immutable/chunks/Do0sdwXq.js.br +0 -0
  241. package/build/client/_app/immutable/chunks/Do0sdwXq.js.gz +0 -0
  242. package/build/client/_app/immutable/chunks/Dpw0f7ug.js +1 -0
  243. package/build/client/_app/immutable/chunks/Dpw0f7ug.js.br +2 -0
  244. package/build/client/_app/immutable/chunks/Dpw0f7ug.js.gz +0 -0
  245. package/build/client/_app/immutable/chunks/DrHik0xm.js +4 -0
  246. package/build/client/_app/immutable/chunks/DrHik0xm.js.br +0 -0
  247. package/build/client/_app/immutable/chunks/DrHik0xm.js.gz +0 -0
  248. package/build/client/_app/immutable/chunks/DwsTz5RI.js +1 -0
  249. package/build/client/_app/immutable/chunks/DwsTz5RI.js.br +0 -0
  250. package/build/client/_app/immutable/chunks/DwsTz5RI.js.gz +0 -0
  251. package/build/client/_app/immutable/chunks/Dwy0VzV-.js +1 -0
  252. package/build/client/_app/immutable/chunks/Dwy0VzV-.js.br +0 -0
  253. package/build/client/_app/immutable/chunks/Dwy0VzV-.js.gz +0 -0
  254. package/build/client/_app/immutable/chunks/FngjHabD.js +1 -0
  255. package/build/client/_app/immutable/chunks/FngjHabD.js.br +0 -0
  256. package/build/client/_app/immutable/chunks/FngjHabD.js.gz +0 -0
  257. package/build/client/_app/immutable/chunks/HRKf5gNi.js +1 -0
  258. package/build/client/_app/immutable/chunks/HRKf5gNi.js.br +0 -0
  259. package/build/client/_app/immutable/chunks/HRKf5gNi.js.gz +0 -0
  260. package/build/client/_app/immutable/chunks/Lgjk9zvZ.js +1 -0
  261. package/build/client/_app/immutable/chunks/Lgjk9zvZ.js.br +0 -0
  262. package/build/client/_app/immutable/chunks/Lgjk9zvZ.js.gz +0 -0
  263. package/build/client/_app/immutable/chunks/NuPgyWGU.js +1 -0
  264. package/build/client/_app/immutable/chunks/NuPgyWGU.js.br +0 -0
  265. package/build/client/_app/immutable/chunks/NuPgyWGU.js.gz +0 -0
  266. package/build/client/_app/immutable/chunks/PFaZuA9u.js +1 -0
  267. package/build/client/_app/immutable/chunks/PFaZuA9u.js.br +0 -0
  268. package/build/client/_app/immutable/chunks/PFaZuA9u.js.gz +0 -0
  269. package/build/client/_app/immutable/chunks/RMavvDTm.js +1 -0
  270. package/build/client/_app/immutable/chunks/RMavvDTm.js.br +0 -0
  271. package/build/client/_app/immutable/chunks/RMavvDTm.js.gz +0 -0
  272. package/build/client/_app/immutable/chunks/ZaiibzMt.js +6 -0
  273. package/build/client/_app/immutable/chunks/ZaiibzMt.js.br +0 -0
  274. package/build/client/_app/immutable/chunks/ZaiibzMt.js.gz +0 -0
  275. package/build/client/_app/immutable/chunks/bK8qeGyY.js +1 -0
  276. package/build/client/_app/immutable/chunks/bK8qeGyY.js.br +0 -0
  277. package/build/client/_app/immutable/chunks/bK8qeGyY.js.gz +0 -0
  278. package/build/client/_app/immutable/chunks/cAfuCUf-.js +1 -0
  279. package/build/client/_app/immutable/chunks/cAfuCUf-.js.br +0 -0
  280. package/build/client/_app/immutable/chunks/cAfuCUf-.js.gz +0 -0
  281. package/build/client/_app/immutable/chunks/eCEdyNo9.js +1 -0
  282. package/build/client/_app/immutable/chunks/eCEdyNo9.js.br +0 -0
  283. package/build/client/_app/immutable/chunks/eCEdyNo9.js.gz +0 -0
  284. package/build/client/_app/immutable/chunks/hxhxtxcx.js +1 -0
  285. package/build/client/_app/immutable/chunks/hxhxtxcx.js.br +0 -0
  286. package/build/client/_app/immutable/chunks/hxhxtxcx.js.gz +0 -0
  287. package/build/client/_app/immutable/chunks/iGDeWXtR.js +6 -0
  288. package/build/client/_app/immutable/chunks/iGDeWXtR.js.br +0 -0
  289. package/build/client/_app/immutable/chunks/iGDeWXtR.js.gz +0 -0
  290. package/build/client/_app/immutable/chunks/j64anhl0.js +1 -0
  291. package/build/client/_app/immutable/chunks/j64anhl0.js.br +0 -0
  292. package/build/client/_app/immutable/chunks/j64anhl0.js.gz +0 -0
  293. package/build/client/_app/immutable/chunks/lqt3PSz0.js +1 -0
  294. package/build/client/_app/immutable/chunks/lqt3PSz0.js.br +0 -0
  295. package/build/client/_app/immutable/chunks/lqt3PSz0.js.gz +0 -0
  296. package/build/client/_app/immutable/chunks/nOIbjKpZ.js +1 -0
  297. package/build/client/_app/immutable/chunks/nOIbjKpZ.js.br +0 -0
  298. package/build/client/_app/immutable/chunks/nOIbjKpZ.js.gz +0 -0
  299. package/build/client/_app/immutable/chunks/qTZ8qQLi.js +1 -0
  300. package/build/client/_app/immutable/chunks/qTZ8qQLi.js.br +0 -0
  301. package/build/client/_app/immutable/chunks/qTZ8qQLi.js.gz +0 -0
  302. package/build/client/_app/immutable/chunks/wob-Hxeu.js +1 -0
  303. package/build/client/_app/immutable/chunks/wob-Hxeu.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/wob-Hxeu.js.gz +0 -0
  305. package/build/client/_app/immutable/entry/app.CZVAY_oj.js +2 -0
  306. package/build/client/_app/immutable/entry/app.CZVAY_oj.js.br +0 -0
  307. package/build/client/_app/immutable/entry/app.CZVAY_oj.js.gz +0 -0
  308. package/build/client/_app/immutable/entry/start.rMI4vKXS.js +1 -0
  309. package/build/client/_app/immutable/entry/start.rMI4vKXS.js.br +0 -0
  310. package/build/client/_app/immutable/entry/start.rMI4vKXS.js.gz +0 -0
  311. package/build/client/_app/immutable/nodes/0.CQmuD1Zv.js +8 -0
  312. package/build/client/_app/immutable/nodes/0.CQmuD1Zv.js.br +0 -0
  313. package/build/client/_app/immutable/nodes/0.CQmuD1Zv.js.gz +0 -0
  314. package/build/client/_app/immutable/nodes/1.DdpgO7Ka.js +1 -0
  315. package/build/client/_app/immutable/nodes/1.DdpgO7Ka.js.br +0 -0
  316. package/build/client/_app/immutable/nodes/1.DdpgO7Ka.js.gz +0 -0
  317. package/build/client/_app/immutable/nodes/10.DJUD8eVq.js +3 -0
  318. package/build/client/_app/immutable/nodes/10.DJUD8eVq.js.br +0 -0
  319. package/build/client/_app/immutable/nodes/10.DJUD8eVq.js.gz +0 -0
  320. package/build/client/_app/immutable/nodes/11.DKFA_o9V.js +1 -0
  321. package/build/client/_app/immutable/nodes/11.DKFA_o9V.js.br +0 -0
  322. package/build/client/_app/immutable/nodes/11.DKFA_o9V.js.gz +0 -0
  323. package/build/client/_app/immutable/nodes/12.CTM_OTV_.js +14 -0
  324. package/build/client/_app/immutable/nodes/12.CTM_OTV_.js.br +0 -0
  325. package/build/client/_app/immutable/nodes/12.CTM_OTV_.js.gz +0 -0
  326. package/build/client/_app/immutable/nodes/13.Krih4WLD.js +150 -0
  327. package/build/client/_app/immutable/nodes/13.Krih4WLD.js.br +0 -0
  328. package/build/client/_app/immutable/nodes/13.Krih4WLD.js.gz +0 -0
  329. package/build/client/_app/immutable/nodes/14.B7r3723N.js +4 -0
  330. package/build/client/_app/immutable/nodes/14.B7r3723N.js.br +0 -0
  331. package/build/client/_app/immutable/nodes/14.B7r3723N.js.gz +0 -0
  332. package/build/client/_app/immutable/nodes/16.BY8GismA.js +9 -0
  333. package/build/client/_app/immutable/nodes/16.BY8GismA.js.br +0 -0
  334. package/build/client/_app/immutable/nodes/16.BY8GismA.js.gz +0 -0
  335. package/build/client/_app/immutable/nodes/17.B69G_kwu.js +11 -0
  336. package/build/client/_app/immutable/nodes/17.B69G_kwu.js.br +0 -0
  337. package/build/client/_app/immutable/nodes/17.B69G_kwu.js.gz +0 -0
  338. package/build/client/_app/immutable/nodes/18.CjWRF7kX.js +6 -0
  339. package/build/client/_app/immutable/nodes/18.CjWRF7kX.js.br +0 -0
  340. package/build/client/_app/immutable/nodes/18.CjWRF7kX.js.gz +0 -0
  341. package/build/client/_app/immutable/nodes/19.CkRDiGpy.js +2 -0
  342. package/build/client/_app/immutable/nodes/19.CkRDiGpy.js.br +0 -0
  343. package/build/client/_app/immutable/nodes/19.CkRDiGpy.js.gz +0 -0
  344. package/build/client/_app/immutable/nodes/2.BUlKFUC-.js +27 -0
  345. package/build/client/_app/immutable/nodes/2.BUlKFUC-.js.br +0 -0
  346. package/build/client/_app/immutable/nodes/2.BUlKFUC-.js.gz +0 -0
  347. package/build/client/_app/immutable/nodes/20.FUFWu3Qe.js +4 -0
  348. package/build/client/_app/immutable/nodes/20.FUFWu3Qe.js.br +0 -0
  349. package/build/client/_app/immutable/nodes/20.FUFWu3Qe.js.gz +0 -0
  350. package/build/client/_app/immutable/nodes/21.BamctJ47.js +12 -0
  351. package/build/client/_app/immutable/nodes/21.BamctJ47.js.br +0 -0
  352. package/build/client/_app/immutable/nodes/21.BamctJ47.js.gz +0 -0
  353. package/build/client/_app/immutable/nodes/22.NWBur8bJ.js +4 -0
  354. package/build/client/_app/immutable/nodes/22.NWBur8bJ.js.br +0 -0
  355. package/build/client/_app/immutable/nodes/22.NWBur8bJ.js.gz +0 -0
  356. package/build/client/_app/immutable/nodes/23.DhTZj0my.js +1 -0
  357. package/build/client/_app/immutable/nodes/23.DhTZj0my.js.br +0 -0
  358. package/build/client/_app/immutable/nodes/23.DhTZj0my.js.gz +0 -0
  359. package/build/client/_app/immutable/nodes/24.BoP3zfB0.js +6 -0
  360. package/build/client/_app/immutable/nodes/24.BoP3zfB0.js.br +0 -0
  361. package/build/client/_app/immutable/nodes/24.BoP3zfB0.js.gz +0 -0
  362. package/build/client/_app/immutable/nodes/3.1G4EIrSs.js +5 -0
  363. package/build/client/_app/immutable/nodes/3.1G4EIrSs.js.br +0 -0
  364. package/build/client/_app/immutable/nodes/3.1G4EIrSs.js.gz +0 -0
  365. package/build/client/_app/immutable/nodes/4.DdtsG66Q.js +1 -0
  366. package/build/client/_app/immutable/nodes/4.DdtsG66Q.js.br +0 -0
  367. package/build/client/_app/immutable/nodes/4.DdtsG66Q.js.gz +0 -0
  368. package/build/client/_app/immutable/nodes/5.DyccoAxy.js +2 -0
  369. package/build/client/_app/immutable/nodes/5.DyccoAxy.js.br +0 -0
  370. package/build/client/_app/immutable/nodes/5.DyccoAxy.js.gz +0 -0
  371. package/build/client/_app/immutable/nodes/6.DVqnmOqx.js +7 -0
  372. package/build/client/_app/immutable/nodes/6.DVqnmOqx.js.br +0 -0
  373. package/build/client/_app/immutable/nodes/6.DVqnmOqx.js.gz +0 -0
  374. package/build/client/_app/immutable/nodes/7.E71a9WIZ.js +5 -0
  375. package/build/client/_app/immutable/nodes/7.E71a9WIZ.js.br +0 -0
  376. package/build/client/_app/immutable/nodes/7.E71a9WIZ.js.gz +0 -0
  377. package/build/client/_app/immutable/nodes/9.FCHGbUMu.js +1 -0
  378. package/build/client/_app/immutable/nodes/9.FCHGbUMu.js.br +0 -0
  379. package/build/client/_app/immutable/nodes/9.FCHGbUMu.js.gz +0 -0
  380. package/build/client/_app/version.json +1 -1
  381. package/build/client/_app/version.json.br +0 -0
  382. package/build/client/_app/version.json.gz +0 -0
  383. package/build/handler.js +6 -6
  384. package/build/index.js +6 -6
  385. package/build/server/chunks/chunks/DecisionCard.js-cpsCwUqQ.js +1527 -0
  386. package/build/server/chunks/chunks/DocSheet.js-DjbE7UvD.js +50 -0
  387. package/build/server/chunks/chunks/EtaLine.js-VQ3hGVe_.js +98 -0
  388. package/build/server/chunks/chunks/EveryProjectSwitch.js-qyiXe4b6.js +160 -0
  389. package/build/server/chunks/chunks/Icon.js-jn6AqrcV.js +129 -0
  390. package/build/server/chunks/chunks/InsightsNav.js-lLDiX0XL.js +18 -0
  391. package/build/server/chunks/chunks/InstallFromGitHub.js-C9yJRBNR.js +1271 -0
  392. package/build/server/chunks/chunks/InstallPlugin.js-DgwSKRe6.js +18 -0
  393. package/build/server/chunks/chunks/LinkedText.js-DX5TcH8Y.js +24 -0
  394. package/build/server/chunks/chunks/MateHealthPill.js-DaPIp_mR.js +22 -0
  395. package/build/server/chunks/chunks/MicButton.svelte_svelte_type_style_lang.js-DLtwjooT.js +168 -0
  396. package/build/server/chunks/chunks/ProjectBanner.js-BJPTsURg.js +111 -0
  397. package/build/server/chunks/chunks/ProjectStateMark.js-DPFiZGmv.js +41 -0
  398. package/build/server/chunks/chunks/QuestionList.js-Bd_b28D3.js +187 -0
  399. package/build/server/chunks/chunks/ResizableRail.js-Do0DGmgJ.js +90 -0
  400. package/build/server/chunks/chunks/SettingsNav.js-jQQyTrJy.js +24 -0
  401. package/build/server/chunks/chunks/SlotContent.js-B1Er92ZM.js +701 -0
  402. package/build/server/chunks/chunks/Switch.js-BhybKefp.js +66 -0
  403. package/build/server/chunks/chunks/TimeBar.js-CLjHuPqO.js +32 -0
  404. package/build/server/chunks/chunks/TimeLegend.js-BjY2v8B-.js +29 -0
  405. package/build/server/chunks/chunks/WhereBadge.js-CRKBExDi.js +117 -0
  406. package/build/server/chunks/chunks/addresses.js-DmMJzvLK.js +52 -0
  407. package/build/server/chunks/chunks/aliases.svelte.js-B_fcvoi7.js +138 -0
  408. package/build/server/chunks/chunks/arrow-down.js-Ci4S_D7b.js +18 -0
  409. package/build/server/chunks/chunks/arrow-left.js-Cg_-lrc-.js +18 -0
  410. package/build/server/chunks/chunks/arrow-right.js-CxUHlP9f.js +18 -0
  411. package/build/server/chunks/chunks/arrow-up-right.js-N7FEdMTQ.js +18 -0
  412. package/build/server/chunks/chunks/arrow-up.js-PmeZF98V.js +18 -0
  413. package/build/server/chunks/chunks/berths.js-B282QffH.js +270 -0
  414. package/build/server/chunks/chunks/book-open.js-CNW88M_l.js +23 -0
  415. package/build/server/chunks/chunks/bridge.js-C93awzgB.js +3816 -0
  416. package/build/server/chunks/chunks/brief.js-DyAlUufG.js +152 -0
  417. package/build/server/chunks/chunks/buildlog.js-BCKtSKOt.js +55 -0
  418. package/build/server/chunks/chunks/button.js-BHe5gXSS.js +4027 -0
  419. package/build/server/chunks/chunks/chat.svelte.js-D0GIrFIC.js +744 -0
  420. package/build/server/chunks/chunks/check.js-4JbwdHsv.js +15 -0
  421. package/build/server/chunks/chunks/checks.js-DGdGhp1G.js +258 -0
  422. package/build/server/chunks/chunks/chevron-down.js-DmTyzEbB.js +15 -0
  423. package/build/server/chunks/chunks/chevron-left.js-VvIqRgu-.js +15 -0
  424. package/build/server/chunks/chunks/chevron-right.js-B9uO-JHb.js +15 -0
  425. package/build/server/chunks/chunks/circle-alert.js-BFRVFclW.js +23 -0
  426. package/build/server/chunks/chunks/circle-arrow-up.js-DKZNxUNH.js +20 -0
  427. package/build/server/chunks/chunks/circle-check.js-Dvfipbd4.js +19 -0
  428. package/build/server/chunks/chunks/circle-dashed.js-YHwLNBch.js +24 -0
  429. package/build/server/chunks/chunks/circle-dot.js-Ch-n2Rlg.js +18 -0
  430. package/build/server/chunks/chunks/client.js-CB4UPOdE.js +24 -0
  431. package/build/server/chunks/chunks/clock.js-B3IMuOfM.js +18 -0
  432. package/build/server/chunks/chunks/cloud.js-Cpm1aqak.js +29 -0
  433. package/build/server/chunks/chunks/config.js-E2-TrXNJ.js +185 -0
  434. package/build/server/chunks/chunks/copy.js-73MxeEL2.js +33 -0
  435. package/build/server/chunks/chunks/detail.js-CVM_vUy5.js +146 -0
  436. package/build/server/chunks/chunks/external-link.js-WNZYonko.js +24 -0
  437. package/build/server/chunks/chunks/eye.js-8rR2rjfO.js +23 -0
  438. package/build/server/chunks/chunks/feedback.js-CulH4qzJ.js +67 -0
  439. package/build/server/chunks/chunks/format.js-D3lWEg6U.js +70 -0
  440. package/build/server/chunks/chunks/git-pull-request.js-BQ2omkf6.js +20 -0
  441. package/build/server/chunks/chunks/hand.js-DiJeXYrq.js +25 -0
  442. package/build/server/chunks/chunks/index-server.js-VQAqdywx.js +17 -0
  443. package/build/server/chunks/chunks/index.js-jKxghqQY.js +1524 -0
  444. package/build/server/chunks/chunks/index2.js-BKxRGjDB.js +46 -0
  445. package/build/server/chunks/chunks/internal.js-w6vkkwRD.js +146 -0
  446. package/build/server/chunks/chunks/keychain.js-BqzLDz60.js +51 -0
  447. package/build/server/chunks/chunks/live.svelte.js-Djgmj46r.js +241 -0
  448. package/build/server/chunks/chunks/loader-circle.js-CJDbB9eu.js +16 -0
  449. package/build/server/chunks/chunks/local.js-BRE2JcCw.js +321 -0
  450. package/build/server/chunks/chunks/lock.js-WFfZ7A2H.js +48 -0
  451. package/build/server/chunks/chunks/markdown.js-BpxlEiHu.js +2656 -0
  452. package/build/server/chunks/chunks/message-square.js-Dm6R7CNs.js +22 -0
  453. package/build/server/chunks/chunks/messages-square.js-CVp0zrku.js +47 -0
  454. package/build/server/chunks/chunks/minus.js-BM2anquT.js +15 -0
  455. package/build/server/chunks/chunks/plus.js-DXxrgEhj.js +15 -0
  456. package/build/server/chunks/chunks/previewhelper2.js-C84SWZwf.js +165 -0
  457. package/build/server/chunks/chunks/previewnote.js-DB6VK2fp.js +56 -0
  458. package/build/server/chunks/chunks/pullrequests.js-CCzk2sqm.js +12 -0
  459. package/build/server/chunks/chunks/refresh-cw.js-RN9HWdUi.js +26 -0
  460. package/build/server/chunks/chunks/remote.js-HXu5FbWd.js +12 -0
  461. package/build/server/chunks/chunks/repo.js-U-HvnI1L.js +33 -0
  462. package/build/server/chunks/chunks/root.js-B4TT3ryq.js +3105 -0
  463. package/build/server/chunks/chunks/rotate-cw.js-CFMEeLFy.js +21 -0
  464. package/build/server/chunks/chunks/runtime.js-C9_vMeNI.js +17834 -0
  465. package/build/server/chunks/chunks/scale.js-BtckAplV.js +21 -0
  466. package/build/server/chunks/chunks/scroll-lock.js-KJygphA1.js +2776 -0
  467. package/build/server/chunks/chunks/service.js-B1hdOaDN.js +917 -0
  468. package/build/server/chunks/chunks/service2.js-BTWa2jZr.js +996 -0
  469. package/build/server/chunks/chunks/settings.js-DPuzmbc5.js +694 -0
  470. package/build/server/chunks/chunks/shield-check.js-B6kC206T.js +23 -0
  471. package/build/server/chunks/chunks/ship.js-qXRIImyl.js +31 -0
  472. package/build/server/chunks/chunks/sparkles.js-BBC6X28O.js +26 -0
  473. package/build/server/chunks/chunks/square-terminal.js-CH-qdAR-.js +30 -0
  474. package/build/server/chunks/chunks/terminal.js-BckfZrAP.js +71 -0
  475. package/build/server/chunks/chunks/tone.js-Dxsl-adt.js +31 -0
  476. package/build/server/chunks/chunks/triangle-alert.js-CT6ph0Pz.js +25 -0
  477. package/build/server/chunks/chunks/urls.js-CM6aklCF.js +8 -0
  478. package/build/server/chunks/chunks/utils3.js-BzaceEcr.js +3290 -0
  479. package/build/server/chunks/chunks/vault.js-DZFWbeCU.js +162 -0
  480. package/build/server/chunks/chunks/view.js-D-j8Xe4i.js +76 -0
  481. package/build/server/chunks/chunks/words.js-DoCiNU5f.js +53 -0
  482. package/build/server/chunks/chunks/x.js-Dui6bz7r.js +18 -0
  483. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-ClWDeX-O.js +96 -0
  484. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-D0ZxlpyT.js +100 -0
  485. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CzR9HxUz.js +43 -0
  486. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-D6Von-oI.js +106 -0
  487. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BBeioKBD.js +55 -0
  488. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-8YXmzsbj.js +89 -0
  489. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-IcMxnWTH.js +125 -0
  490. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-BX86Nv_f.js +51 -0
  491. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-CwCZaVxq.js +57 -0
  492. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DAIjFBQ6.js +50 -0
  493. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-Bp0i1TSf.js +97 -0
  494. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-x-ZN1v8u.js +60 -0
  495. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-CrhejJqg.js +71 -0
  496. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DARrnWLV.js +50 -0
  497. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-C21482Qj.js +42 -0
  498. package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-AZBAjFk5.js +106 -0
  499. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-K5a5fYS2.js +42 -0
  500. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-2p7O3IsC.js +66 -0
  501. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-C4Nf9iAq.js +57 -0
  502. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-DxO2RM1h.js +42 -0
  503. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-Ba_r2yZV.js +77 -0
  504. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-B-zbKKZl.js +66 -0
  505. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BP5jKHJd.js +61 -0
  506. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DCoeTXfs.js +58 -0
  507. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-DNAX_6do.js +25 -0
  508. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BA9kzCW7.js +65 -0
  509. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-_FRBb9ud.js +37 -0
  510. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DXS9KEsU.js +42 -0
  511. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-DkkLcUAV.js +37 -0
  512. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Di2Gi4nB.js +40 -0
  513. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-CCW9lm9E.js +25 -0
  514. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BFJ5KbW7.js +65 -0
  515. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-kTs2YfQY.js +47 -0
  516. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-CdfrIT07.js +56 -0
  517. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BsUrjHJ8.js +68 -0
  518. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-DXJ8AJ2U.js +55 -0
  519. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CcNKahjE.js +78 -0
  520. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-68i_0avS.js +61 -0
  521. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-CiOf-mL2.js +51 -0
  522. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DQQCFyv7.js +61 -0
  523. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-VJjaPDdY.js +100 -0
  524. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CR4Gcf9_.js +50 -0
  525. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-DltGIE9L.js +47 -0
  526. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BDd9G5oE.js +66 -0
  527. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-pMEofVTc.js +59 -0
  528. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-DO_4lX74.js +107 -0
  529. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BQoQsU0p.js +61 -0
  530. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-DDYoFcHJ.js +64 -0
  531. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-Zg58kzoY.js +68 -0
  532. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-B5gS-34U.js +25 -0
  533. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-7p-utTq-.js +25 -0
  534. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-q1B59Uk1.js +46 -0
  535. package/build/server/chunks/entries/fallbacks/error.svelte.js-BNWK_exe.js +15 -0
  536. package/build/server/chunks/entries/hooks.server.js-CWn0ng54.js +79 -0
  537. package/build/server/chunks/entries/pages/_layout.server.ts.js-BKXSrpSe.js +27 -0
  538. package/build/server/chunks/entries/pages/_layout.svelte.js-BuXMMFDC.js +5454 -0
  539. package/build/server/chunks/entries/pages/_page.server.ts.js-BRGNF6k_.js +16 -0
  540. package/build/server/chunks/entries/pages/_page.svelte.js-AsmQz_JL.js +3907 -0
  541. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-DmvdMfYo.js +11 -0
  542. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-C-af49k8.js +202 -0
  543. package/build/server/chunks/entries/pages/files/_page.server.ts.js-rZt0XMSd.js +17 -0
  544. package/build/server/chunks/entries/pages/files/_page.svelte.js-_L04ewQE.js +60 -0
  545. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-PFo8Vfbo.js +46 -0
  546. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-CVRdIgJ8.js +750 -0
  547. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DutA9E7E.js +11 -0
  548. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-DsoPeyml.js +183 -0
  549. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DqWEpFI-.js +11 -0
  550. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-B6UvwR4D.js +187 -0
  551. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BK7K-Ceh.js +16 -0
  552. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DWyawMgs.js +56 -0
  553. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BtFm_m-G.js +23 -0
  554. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-BysaJZTm.js +981 -0
  555. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DKFJY-r0.js +21 -0
  556. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Cxjvoa4A.js +78 -0
  557. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DMJBBYoR.js +27 -0
  558. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-Dcp2JU41.js +419 -0
  559. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CUct6yy5.js +15 -0
  560. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-BX-QnnUD.js +1881 -0
  561. package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-WE0an3Bj.js +221 -0
  562. package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-CamoAZbV.js +14 -0
  563. package/build/server/chunks/entries/pages/settings/cloud/_page.svelte.js-DZArF-9x.js +220 -0
  564. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-rXRKJGmI.js +11 -0
  565. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-BDe-2GRf.js +209 -0
  566. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-rtpQsgMF.js +19 -0
  567. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-DMusjNR_.js +611 -0
  568. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BLXp3lDA.js +17 -0
  569. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-DBMtln02.js +229 -0
  570. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-CbjFRPVY.js +11 -0
  571. package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-ABeTOB0c.js +55 -0
  572. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-wdyYV3qf.js +18 -0
  573. package/build/server/chunks/entries/pages/setup/_page.svelte.js-7M9RVZo5.js +917 -0
  574. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BBftBg-k.js +25 -0
  575. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dy9JaYCa.js +2751 -0
  576. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BScwvgVc.js +24 -0
  577. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-D0yTdBar.js +79 -0
  578. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CYvux-3H.js +11 -0
  579. package/build/server/chunks/entries/pages/time/_page.svelte.js-CrEVYnzn.js +108 -0
  580. package/build/server/chunks/handler-F_cpDHNU.js +1474 -0
  581. package/build/server/chunks/index.js-BUHkADXw.js +4296 -0
  582. package/build/server/chunks/manifest.js-B8bCR5q6.js +603 -0
  583. package/build/server/chunks/nodes/0.js-Dowvt9F9.js +49 -0
  584. package/build/server/chunks/nodes/1.js-DF5Y9be5.js +9 -0
  585. package/build/server/chunks/nodes/10.js-dixIyGz8.js +49 -0
  586. package/build/server/chunks/nodes/11.js-CdZnnFi5.js +48 -0
  587. package/build/server/chunks/nodes/12.js-DvK5i9DI.js +49 -0
  588. package/build/server/chunks/nodes/13.js-BDecNWzn.js +48 -0
  589. package/build/server/chunks/nodes/14.js-B-DRrca8.js +9 -0
  590. package/build/server/chunks/nodes/16.js-BUpQAAcE.js +22 -0
  591. package/build/server/chunks/nodes/17.js-DSsio5sq.js +47 -0
  592. package/build/server/chunks/nodes/18.js-DUhWP1lx.js +47 -0
  593. package/build/server/chunks/nodes/19.js-DaHeHJsB.js +50 -0
  594. package/build/server/chunks/nodes/2.js-D8Wak2_d.js +47 -0
  595. package/build/server/chunks/nodes/20.js-C2I6HzZg.js +49 -0
  596. package/build/server/chunks/nodes/21.js-CjZTWpEa.js +51 -0
  597. package/build/server/chunks/nodes/22.js-BWtAFeRm.js +48 -0
  598. package/build/server/chunks/nodes/23.js-BxVguke7.js +48 -0
  599. package/build/server/chunks/nodes/24.js-BVvVkNwL.js +47 -0
  600. package/build/server/chunks/nodes/3.js-CZTW-LPi.js +47 -0
  601. package/build/server/chunks/nodes/4.js-BkH70LZu.js +47 -0
  602. package/build/server/chunks/nodes/5.js-B0Eb_9jQ.js +51 -0
  603. package/build/server/chunks/nodes/6.js-gEI0qySH.js +47 -0
  604. package/build/server/chunks/nodes/7.js-BXgRjdNB.js +47 -0
  605. package/build/server/chunks/nodes/9.js-jOBHnWP1.js +47 -0
  606. package/dist/cli.js +2081 -280
  607. package/dist/wh-vault.js +1 -1
  608. package/package.json +3 -2
  609. package/plugins/shared-review/.wheelhouse-plugin/plugin.json +2 -1
  610. package/plugins/shared-review/README.md +3 -1
  611. package/plugins/shared-review/wheelhouse/server/index.js +11 -2
  612. package/plugins/shared-review/wheelhouse/ui/index.js +278 -2
  613. package/plugins/vault/wheelhouse/icon.svg +1 -1
  614. package/build/client/_app/immutable/assets/0.BUKP25sU.css +0 -1
  615. package/build/client/_app/immutable/assets/0.BUKP25sU.css.br +0 -0
  616. package/build/client/_app/immutable/assets/0.BUKP25sU.css.gz +0 -0
  617. package/build/client/_app/immutable/assets/2.DvyEOdRq.css +0 -1
  618. package/build/client/_app/immutable/assets/2.DvyEOdRq.css.br +0 -0
  619. package/build/client/_app/immutable/assets/2.DvyEOdRq.css.gz +0 -0
  620. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css +0 -1
  621. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.br +0 -0
  622. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.gz +0 -0
  623. package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-italic.B5xAaiFk.woff2 +0 -0
  624. package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
  625. package/build/client/_app/immutable/assets/inter-cyrillic-wght-italic.DzZdc28x.woff2 +0 -0
  626. package/build/client/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
  627. package/build/client/_app/immutable/assets/inter-greek-ext-wght-italic.DcOpz6Lw.woff2 +0 -0
  628. package/build/client/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
  629. package/build/client/_app/immutable/assets/inter-greek-wght-italic.CILZdfAp.woff2 +0 -0
  630. package/build/client/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
  631. package/build/client/_app/immutable/assets/inter-latin-ext-wght-italic.0pjOp8NU.woff2 +0 -0
  632. package/build/client/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
  633. package/build/client/_app/immutable/assets/inter-latin-wght-italic.DpCbqKDY.woff2 +0 -0
  634. package/build/client/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
  635. package/build/client/_app/immutable/assets/inter-vietnamese-wght-italic.K3WlGtc8.woff2 +0 -0
  636. package/build/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
  637. package/build/client/_app/immutable/chunks/-8jzdSzV.js +0 -1
  638. package/build/client/_app/immutable/chunks/-8jzdSzV.js.br +0 -0
  639. package/build/client/_app/immutable/chunks/-8jzdSzV.js.gz +0 -0
  640. package/build/client/_app/immutable/chunks/1WRcPxqg.js +0 -1
  641. package/build/client/_app/immutable/chunks/1WRcPxqg.js.br +0 -0
  642. package/build/client/_app/immutable/chunks/1WRcPxqg.js.gz +0 -0
  643. package/build/client/_app/immutable/chunks/2u5U2sv5.js +0 -1
  644. package/build/client/_app/immutable/chunks/2u5U2sv5.js.br +0 -2
  645. package/build/client/_app/immutable/chunks/2u5U2sv5.js.gz +0 -0
  646. package/build/client/_app/immutable/chunks/4VJeJzd5.js +0 -1
  647. package/build/client/_app/immutable/chunks/4VJeJzd5.js.br +0 -0
  648. package/build/client/_app/immutable/chunks/4VJeJzd5.js.gz +0 -0
  649. package/build/client/_app/immutable/chunks/6x5fl0iw.js +0 -1
  650. package/build/client/_app/immutable/chunks/6x5fl0iw.js.br +0 -0
  651. package/build/client/_app/immutable/chunks/6x5fl0iw.js.gz +0 -0
  652. package/build/client/_app/immutable/chunks/6x9f8OOX.js +0 -1
  653. package/build/client/_app/immutable/chunks/6x9f8OOX.js.br +0 -0
  654. package/build/client/_app/immutable/chunks/6x9f8OOX.js.gz +0 -0
  655. package/build/client/_app/immutable/chunks/8WOVm7DO.js +0 -3
  656. package/build/client/_app/immutable/chunks/8WOVm7DO.js.br +0 -0
  657. package/build/client/_app/immutable/chunks/8WOVm7DO.js.gz +0 -0
  658. package/build/client/_app/immutable/chunks/8xWr9jxY.js +0 -1
  659. package/build/client/_app/immutable/chunks/8xWr9jxY.js.br +0 -0
  660. package/build/client/_app/immutable/chunks/8xWr9jxY.js.gz +0 -0
  661. package/build/client/_app/immutable/chunks/B3j8X7eP.js +0 -1
  662. package/build/client/_app/immutable/chunks/B3j8X7eP.js.br +0 -0
  663. package/build/client/_app/immutable/chunks/B3j8X7eP.js.gz +0 -0
  664. package/build/client/_app/immutable/chunks/BBWR4qW2.js +0 -1
  665. package/build/client/_app/immutable/chunks/BBWR4qW2.js.br +0 -0
  666. package/build/client/_app/immutable/chunks/BBWR4qW2.js.gz +0 -0
  667. package/build/client/_app/immutable/chunks/BBk8ftHo.js +0 -1
  668. package/build/client/_app/immutable/chunks/BBk8ftHo.js.br +0 -0
  669. package/build/client/_app/immutable/chunks/BBk8ftHo.js.gz +0 -0
  670. package/build/client/_app/immutable/chunks/BH_GqTtA.js +0 -1
  671. package/build/client/_app/immutable/chunks/BH_GqTtA.js.br +0 -0
  672. package/build/client/_app/immutable/chunks/BH_GqTtA.js.gz +0 -0
  673. package/build/client/_app/immutable/chunks/BHu5PcTV.js +0 -1
  674. package/build/client/_app/immutable/chunks/BHu5PcTV.js.br +0 -0
  675. package/build/client/_app/immutable/chunks/BHu5PcTV.js.gz +0 -0
  676. package/build/client/_app/immutable/chunks/BKSx-wDn.js +0 -1
  677. package/build/client/_app/immutable/chunks/BKSx-wDn.js.br +0 -0
  678. package/build/client/_app/immutable/chunks/BKSx-wDn.js.gz +0 -0
  679. package/build/client/_app/immutable/chunks/BOY9WARo.js +0 -2
  680. package/build/client/_app/immutable/chunks/BOY9WARo.js.br +0 -0
  681. package/build/client/_app/immutable/chunks/BOY9WARo.js.gz +0 -0
  682. package/build/client/_app/immutable/chunks/BQle5rwK.js +0 -1
  683. package/build/client/_app/immutable/chunks/BQle5rwK.js.br +0 -0
  684. package/build/client/_app/immutable/chunks/BQle5rwK.js.gz +0 -0
  685. package/build/client/_app/immutable/chunks/BRuDnHyc.js +0 -2
  686. package/build/client/_app/immutable/chunks/BRuDnHyc.js.br +0 -0
  687. package/build/client/_app/immutable/chunks/BRuDnHyc.js.gz +0 -0
  688. package/build/client/_app/immutable/chunks/BSMH3sl_.js +0 -1
  689. package/build/client/_app/immutable/chunks/BSMH3sl_.js.br +0 -0
  690. package/build/client/_app/immutable/chunks/BSMH3sl_.js.gz +0 -0
  691. package/build/client/_app/immutable/chunks/BV-FSL0u.js +0 -1
  692. package/build/client/_app/immutable/chunks/BV-FSL0u.js.br +0 -0
  693. package/build/client/_app/immutable/chunks/BV-FSL0u.js.gz +0 -0
  694. package/build/client/_app/immutable/chunks/BW_FwdyU.js +0 -2
  695. package/build/client/_app/immutable/chunks/BW_FwdyU.js.br +0 -0
  696. package/build/client/_app/immutable/chunks/BW_FwdyU.js.gz +0 -0
  697. package/build/client/_app/immutable/chunks/BXF1nDhR.js +0 -1
  698. package/build/client/_app/immutable/chunks/BXF1nDhR.js.br +0 -0
  699. package/build/client/_app/immutable/chunks/BXF1nDhR.js.gz +0 -0
  700. package/build/client/_app/immutable/chunks/BXk5dy03.js +0 -5
  701. package/build/client/_app/immutable/chunks/BXk5dy03.js.br +0 -0
  702. package/build/client/_app/immutable/chunks/BXk5dy03.js.gz +0 -0
  703. package/build/client/_app/immutable/chunks/BbU5AsRD.js +0 -1
  704. package/build/client/_app/immutable/chunks/BbU5AsRD.js.br +0 -0
  705. package/build/client/_app/immutable/chunks/BbU5AsRD.js.gz +0 -0
  706. package/build/client/_app/immutable/chunks/BkoErw_r.js +0 -1
  707. package/build/client/_app/immutable/chunks/BkoErw_r.js.br +0 -0
  708. package/build/client/_app/immutable/chunks/BkoErw_r.js.gz +0 -0
  709. package/build/client/_app/immutable/chunks/Blj84s6L.js +0 -1
  710. package/build/client/_app/immutable/chunks/Blj84s6L.js.br +0 -0
  711. package/build/client/_app/immutable/chunks/Blj84s6L.js.gz +0 -0
  712. package/build/client/_app/immutable/chunks/Bo1SMwPt.js +0 -1
  713. package/build/client/_app/immutable/chunks/Bo1SMwPt.js.br +0 -0
  714. package/build/client/_app/immutable/chunks/Bo1SMwPt.js.gz +0 -0
  715. package/build/client/_app/immutable/chunks/BqqZcEbm.js +0 -1
  716. package/build/client/_app/immutable/chunks/BqqZcEbm.js.br +0 -2
  717. package/build/client/_app/immutable/chunks/BqqZcEbm.js.gz +0 -0
  718. package/build/client/_app/immutable/chunks/BsFN-acf.js +0 -1
  719. package/build/client/_app/immutable/chunks/BsFN-acf.js.br +0 -0
  720. package/build/client/_app/immutable/chunks/BsFN-acf.js.gz +0 -0
  721. package/build/client/_app/immutable/chunks/BudxWdUe.js +0 -1
  722. package/build/client/_app/immutable/chunks/BudxWdUe.js.br +0 -0
  723. package/build/client/_app/immutable/chunks/BudxWdUe.js.gz +0 -0
  724. package/build/client/_app/immutable/chunks/BunvDGPC.js +0 -3
  725. package/build/client/_app/immutable/chunks/BunvDGPC.js.br +0 -0
  726. package/build/client/_app/immutable/chunks/BunvDGPC.js.gz +0 -0
  727. package/build/client/_app/immutable/chunks/BvCDG8Dd.js +0 -1
  728. package/build/client/_app/immutable/chunks/BvCDG8Dd.js.br +0 -0
  729. package/build/client/_app/immutable/chunks/BvCDG8Dd.js.gz +0 -0
  730. package/build/client/_app/immutable/chunks/BwLAIydi.js +0 -1
  731. package/build/client/_app/immutable/chunks/BwLAIydi.js.br +0 -0
  732. package/build/client/_app/immutable/chunks/BwLAIydi.js.gz +0 -0
  733. package/build/client/_app/immutable/chunks/Bxc9WZZR.js +0 -1
  734. package/build/client/_app/immutable/chunks/Bxc9WZZR.js.br +0 -0
  735. package/build/client/_app/immutable/chunks/Bxc9WZZR.js.gz +0 -0
  736. package/build/client/_app/immutable/chunks/Byamhp7O.js +0 -1
  737. package/build/client/_app/immutable/chunks/Byamhp7O.js.br +0 -0
  738. package/build/client/_app/immutable/chunks/Byamhp7O.js.gz +0 -0
  739. package/build/client/_app/immutable/chunks/BzYzevxb.js +0 -1
  740. package/build/client/_app/immutable/chunks/BzYzevxb.js.br +0 -0
  741. package/build/client/_app/immutable/chunks/BzYzevxb.js.gz +0 -0
  742. package/build/client/_app/immutable/chunks/C03wrLr6.js +0 -1
  743. package/build/client/_app/immutable/chunks/C03wrLr6.js.br +0 -0
  744. package/build/client/_app/immutable/chunks/C03wrLr6.js.gz +0 -0
  745. package/build/client/_app/immutable/chunks/C0nIjZ3F.js +0 -1
  746. package/build/client/_app/immutable/chunks/C0nIjZ3F.js.br +0 -0
  747. package/build/client/_app/immutable/chunks/C0nIjZ3F.js.gz +0 -0
  748. package/build/client/_app/immutable/chunks/C6yJKLJE.js +0 -6
  749. package/build/client/_app/immutable/chunks/C6yJKLJE.js.br +0 -0
  750. package/build/client/_app/immutable/chunks/C6yJKLJE.js.gz +0 -0
  751. package/build/client/_app/immutable/chunks/CDGwSysF.js +0 -1
  752. package/build/client/_app/immutable/chunks/CDGwSysF.js.br +0 -0
  753. package/build/client/_app/immutable/chunks/CDGwSysF.js.gz +0 -0
  754. package/build/client/_app/immutable/chunks/CEbzGOE-.js +0 -1
  755. package/build/client/_app/immutable/chunks/CEbzGOE-.js.br +0 -0
  756. package/build/client/_app/immutable/chunks/CEbzGOE-.js.gz +0 -0
  757. package/build/client/_app/immutable/chunks/CLeVtrv1.js +0 -1
  758. package/build/client/_app/immutable/chunks/CLeVtrv1.js.br +0 -3
  759. package/build/client/_app/immutable/chunks/CLeVtrv1.js.gz +0 -0
  760. package/build/client/_app/immutable/chunks/CLsVEPfB.js +0 -1
  761. package/build/client/_app/immutable/chunks/CLsVEPfB.js.br +0 -0
  762. package/build/client/_app/immutable/chunks/CLsVEPfB.js.gz +0 -0
  763. package/build/client/_app/immutable/chunks/CLubIfWE.js +0 -1
  764. package/build/client/_app/immutable/chunks/CLubIfWE.js.br +0 -0
  765. package/build/client/_app/immutable/chunks/CLubIfWE.js.gz +0 -0
  766. package/build/client/_app/immutable/chunks/CMFVi0Kq.js +0 -6
  767. package/build/client/_app/immutable/chunks/CMFVi0Kq.js.br +0 -0
  768. package/build/client/_app/immutable/chunks/CMFVi0Kq.js.gz +0 -0
  769. package/build/client/_app/immutable/chunks/CNcEb8rI.js +0 -1
  770. package/build/client/_app/immutable/chunks/CNcEb8rI.js.br +0 -0
  771. package/build/client/_app/immutable/chunks/CNcEb8rI.js.gz +0 -0
  772. package/build/client/_app/immutable/chunks/CaaP7Cfy.js +0 -1
  773. package/build/client/_app/immutable/chunks/CaaP7Cfy.js.br +0 -0
  774. package/build/client/_app/immutable/chunks/CaaP7Cfy.js.gz +0 -0
  775. package/build/client/_app/immutable/chunks/CbGZd9iT.js +0 -1
  776. package/build/client/_app/immutable/chunks/CbGZd9iT.js.br +0 -0
  777. package/build/client/_app/immutable/chunks/CbGZd9iT.js.gz +0 -0
  778. package/build/client/_app/immutable/chunks/CdUf0vBw.js +0 -1
  779. package/build/client/_app/immutable/chunks/CdUf0vBw.js.br +0 -0
  780. package/build/client/_app/immutable/chunks/CdUf0vBw.js.gz +0 -0
  781. package/build/client/_app/immutable/chunks/Ce7qVCDI.js +0 -1
  782. package/build/client/_app/immutable/chunks/Ce7qVCDI.js.br +0 -0
  783. package/build/client/_app/immutable/chunks/Ce7qVCDI.js.gz +0 -0
  784. package/build/client/_app/immutable/chunks/CrPP6AgN.js +0 -1
  785. package/build/client/_app/immutable/chunks/CrPP6AgN.js.br +0 -0
  786. package/build/client/_app/immutable/chunks/CrPP6AgN.js.gz +0 -0
  787. package/build/client/_app/immutable/chunks/CyhrvZ9i.js +0 -1
  788. package/build/client/_app/immutable/chunks/CyhrvZ9i.js.br +0 -0
  789. package/build/client/_app/immutable/chunks/CyhrvZ9i.js.gz +0 -0
  790. package/build/client/_app/immutable/chunks/D1pI6A8q.js +0 -1
  791. package/build/client/_app/immutable/chunks/D1pI6A8q.js.br +0 -0
  792. package/build/client/_app/immutable/chunks/D1pI6A8q.js.gz +0 -0
  793. package/build/client/_app/immutable/chunks/D5M74L1e.js +0 -2
  794. package/build/client/_app/immutable/chunks/D5M74L1e.js.br +0 -0
  795. package/build/client/_app/immutable/chunks/D5M74L1e.js.gz +0 -0
  796. package/build/client/_app/immutable/chunks/D6hXuNzR.js +0 -1
  797. package/build/client/_app/immutable/chunks/D6hXuNzR.js.br +0 -1
  798. package/build/client/_app/immutable/chunks/D6hXuNzR.js.gz +0 -0
  799. package/build/client/_app/immutable/chunks/D8Hr8rhb.js +0 -1
  800. package/build/client/_app/immutable/chunks/D8Hr8rhb.js.br +0 -0
  801. package/build/client/_app/immutable/chunks/D8Hr8rhb.js.gz +0 -0
  802. package/build/client/_app/immutable/chunks/D8s8J8Og.js +0 -1
  803. package/build/client/_app/immutable/chunks/D8s8J8Og.js.br +0 -0
  804. package/build/client/_app/immutable/chunks/D8s8J8Og.js.gz +0 -0
  805. package/build/client/_app/immutable/chunks/DB2Frr3y.js +0 -1
  806. package/build/client/_app/immutable/chunks/DB2Frr3y.js.br +0 -0
  807. package/build/client/_app/immutable/chunks/DB2Frr3y.js.gz +0 -0
  808. package/build/client/_app/immutable/chunks/DCbu051o.js +0 -1
  809. package/build/client/_app/immutable/chunks/DCbu051o.js.br +0 -2
  810. package/build/client/_app/immutable/chunks/DCbu051o.js.gz +0 -0
  811. package/build/client/_app/immutable/chunks/DDUWrtWf.js +0 -1
  812. package/build/client/_app/immutable/chunks/DDUWrtWf.js.br +0 -0
  813. package/build/client/_app/immutable/chunks/DDUWrtWf.js.gz +0 -0
  814. package/build/client/_app/immutable/chunks/DEIc6x-v.js +0 -1
  815. package/build/client/_app/immutable/chunks/DEIc6x-v.js.br +0 -0
  816. package/build/client/_app/immutable/chunks/DEIc6x-v.js.gz +0 -0
  817. package/build/client/_app/immutable/chunks/DHMHvrUA.js +0 -1
  818. package/build/client/_app/immutable/chunks/DHMHvrUA.js.br +0 -0
  819. package/build/client/_app/immutable/chunks/DHMHvrUA.js.gz +0 -0
  820. package/build/client/_app/immutable/chunks/DMefFkCx.js +0 -1
  821. package/build/client/_app/immutable/chunks/DMefFkCx.js.br +0 -0
  822. package/build/client/_app/immutable/chunks/DMefFkCx.js.gz +0 -0
  823. package/build/client/_app/immutable/chunks/DRK9oYED.js +0 -1
  824. package/build/client/_app/immutable/chunks/DRK9oYED.js.br +0 -0
  825. package/build/client/_app/immutable/chunks/DRK9oYED.js.gz +0 -0
  826. package/build/client/_app/immutable/chunks/DU2mz-vL.js +0 -1
  827. package/build/client/_app/immutable/chunks/DU2mz-vL.js.br +0 -0
  828. package/build/client/_app/immutable/chunks/DU2mz-vL.js.gz +0 -0
  829. package/build/client/_app/immutable/chunks/DWlSINHC.js +0 -1
  830. package/build/client/_app/immutable/chunks/DWlSINHC.js.br +0 -0
  831. package/build/client/_app/immutable/chunks/DWlSINHC.js.gz +0 -0
  832. package/build/client/_app/immutable/chunks/DXt4vIK0.js +0 -1
  833. package/build/client/_app/immutable/chunks/DXt4vIK0.js.br +0 -0
  834. package/build/client/_app/immutable/chunks/DXt4vIK0.js.gz +0 -0
  835. package/build/client/_app/immutable/chunks/DZJnY8Nx.js +0 -1
  836. package/build/client/_app/immutable/chunks/DZJnY8Nx.js.br +0 -0
  837. package/build/client/_app/immutable/chunks/DZJnY8Nx.js.gz +0 -0
  838. package/build/client/_app/immutable/chunks/D_nVtLM5.js +0 -1
  839. package/build/client/_app/immutable/chunks/D_nVtLM5.js.br +0 -0
  840. package/build/client/_app/immutable/chunks/D_nVtLM5.js.gz +0 -0
  841. package/build/client/_app/immutable/chunks/DdRufa9N.js +0 -1
  842. package/build/client/_app/immutable/chunks/DdRufa9N.js.br +0 -0
  843. package/build/client/_app/immutable/chunks/DdRufa9N.js.gz +0 -0
  844. package/build/client/_app/immutable/chunks/DgOhqfdF.js +0 -1
  845. package/build/client/_app/immutable/chunks/DgOhqfdF.js.br +0 -0
  846. package/build/client/_app/immutable/chunks/DgOhqfdF.js.gz +0 -0
  847. package/build/client/_app/immutable/chunks/Dhv6iBq8.js +0 -1
  848. package/build/client/_app/immutable/chunks/Dhv6iBq8.js.br +0 -0
  849. package/build/client/_app/immutable/chunks/Dhv6iBq8.js.gz +0 -0
  850. package/build/client/_app/immutable/chunks/DkG1ReNq.js +0 -1
  851. package/build/client/_app/immutable/chunks/DkG1ReNq.js.br +0 -0
  852. package/build/client/_app/immutable/chunks/DkG1ReNq.js.gz +0 -0
  853. package/build/client/_app/immutable/chunks/DlcOqcbg.js +0 -1
  854. package/build/client/_app/immutable/chunks/DlcOqcbg.js.br +0 -0
  855. package/build/client/_app/immutable/chunks/DlcOqcbg.js.gz +0 -0
  856. package/build/client/_app/immutable/chunks/DnDesMxN.js +0 -1
  857. package/build/client/_app/immutable/chunks/DnDesMxN.js.br +0 -0
  858. package/build/client/_app/immutable/chunks/DnDesMxN.js.gz +0 -0
  859. package/build/client/_app/immutable/chunks/DnQR8b1d.js +0 -62
  860. package/build/client/_app/immutable/chunks/DnQR8b1d.js.br +0 -0
  861. package/build/client/_app/immutable/chunks/DnQR8b1d.js.gz +0 -0
  862. package/build/client/_app/immutable/chunks/DqZ9Wm2M.js +0 -1
  863. package/build/client/_app/immutable/chunks/DqZ9Wm2M.js.br +0 -0
  864. package/build/client/_app/immutable/chunks/DqZ9Wm2M.js.gz +0 -0
  865. package/build/client/_app/immutable/chunks/DybGBkO1.js +0 -5
  866. package/build/client/_app/immutable/chunks/DybGBkO1.js.br +0 -0
  867. package/build/client/_app/immutable/chunks/DybGBkO1.js.gz +0 -0
  868. package/build/client/_app/immutable/chunks/He17Vv5l.js +0 -1
  869. package/build/client/_app/immutable/chunks/He17Vv5l.js.br +0 -0
  870. package/build/client/_app/immutable/chunks/He17Vv5l.js.gz +0 -0
  871. package/build/client/_app/immutable/chunks/IQRNVWsw.js +0 -2
  872. package/build/client/_app/immutable/chunks/IQRNVWsw.js.br +0 -0
  873. package/build/client/_app/immutable/chunks/IQRNVWsw.js.gz +0 -0
  874. package/build/client/_app/immutable/chunks/KWgz7qtz.js +0 -6
  875. package/build/client/_app/immutable/chunks/KWgz7qtz.js.br +0 -0
  876. package/build/client/_app/immutable/chunks/KWgz7qtz.js.gz +0 -0
  877. package/build/client/_app/immutable/chunks/OermLIIb.js +0 -2
  878. package/build/client/_app/immutable/chunks/OermLIIb.js.br +0 -0
  879. package/build/client/_app/immutable/chunks/OermLIIb.js.gz +0 -0
  880. package/build/client/_app/immutable/chunks/TcIaLKEO.js +0 -1
  881. package/build/client/_app/immutable/chunks/TcIaLKEO.js.br +0 -0
  882. package/build/client/_app/immutable/chunks/TcIaLKEO.js.gz +0 -0
  883. package/build/client/_app/immutable/chunks/WKkbnawS.js +0 -1
  884. package/build/client/_app/immutable/chunks/WKkbnawS.js.br +0 -0
  885. package/build/client/_app/immutable/chunks/WKkbnawS.js.gz +0 -0
  886. package/build/client/_app/immutable/chunks/Z8zDEyti.js +0 -1
  887. package/build/client/_app/immutable/chunks/Z8zDEyti.js.br +0 -0
  888. package/build/client/_app/immutable/chunks/Z8zDEyti.js.gz +0 -0
  889. package/build/client/_app/immutable/chunks/kE4zxzFD.js +0 -1
  890. package/build/client/_app/immutable/chunks/kE4zxzFD.js.br +0 -0
  891. package/build/client/_app/immutable/chunks/kE4zxzFD.js.gz +0 -0
  892. package/build/client/_app/immutable/chunks/kWmJZSyZ.js +0 -1
  893. package/build/client/_app/immutable/chunks/kWmJZSyZ.js.br +0 -0
  894. package/build/client/_app/immutable/chunks/kWmJZSyZ.js.gz +0 -0
  895. package/build/client/_app/immutable/entry/app.CL8a8HZ0.js +0 -2
  896. package/build/client/_app/immutable/entry/app.CL8a8HZ0.js.br +0 -0
  897. package/build/client/_app/immutable/entry/app.CL8a8HZ0.js.gz +0 -0
  898. package/build/client/_app/immutable/entry/start.DY5Zh3I7.js +0 -1
  899. package/build/client/_app/immutable/entry/start.DY5Zh3I7.js.br +0 -0
  900. package/build/client/_app/immutable/entry/start.DY5Zh3I7.js.gz +0 -0
  901. package/build/client/_app/immutable/nodes/0.Bmtc68EX.js +0 -8
  902. package/build/client/_app/immutable/nodes/0.Bmtc68EX.js.br +0 -0
  903. package/build/client/_app/immutable/nodes/0.Bmtc68EX.js.gz +0 -0
  904. package/build/client/_app/immutable/nodes/1.BRLMR7fm.js +0 -1
  905. package/build/client/_app/immutable/nodes/1.BRLMR7fm.js.br +0 -0
  906. package/build/client/_app/immutable/nodes/1.BRLMR7fm.js.gz +0 -0
  907. package/build/client/_app/immutable/nodes/10.Ctk2N--v.js +0 -3
  908. package/build/client/_app/immutable/nodes/10.Ctk2N--v.js.br +0 -0
  909. package/build/client/_app/immutable/nodes/10.Ctk2N--v.js.gz +0 -0
  910. package/build/client/_app/immutable/nodes/11.DzDPmeKc.js +0 -1
  911. package/build/client/_app/immutable/nodes/11.DzDPmeKc.js.br +0 -0
  912. package/build/client/_app/immutable/nodes/11.DzDPmeKc.js.gz +0 -0
  913. package/build/client/_app/immutable/nodes/12.BUO7L3_c.js +0 -14
  914. package/build/client/_app/immutable/nodes/12.BUO7L3_c.js.br +0 -0
  915. package/build/client/_app/immutable/nodes/12.BUO7L3_c.js.gz +0 -0
  916. package/build/client/_app/immutable/nodes/13.sQe1BX9E.js +0 -150
  917. package/build/client/_app/immutable/nodes/13.sQe1BX9E.js.br +0 -0
  918. package/build/client/_app/immutable/nodes/13.sQe1BX9E.js.gz +0 -0
  919. package/build/client/_app/immutable/nodes/14.C6lWut9y.js +0 -4
  920. package/build/client/_app/immutable/nodes/14.C6lWut9y.js.br +0 -0
  921. package/build/client/_app/immutable/nodes/14.C6lWut9y.js.gz +0 -0
  922. package/build/client/_app/immutable/nodes/16.B9dAe-zO.js +0 -11
  923. package/build/client/_app/immutable/nodes/16.B9dAe-zO.js.br +0 -0
  924. package/build/client/_app/immutable/nodes/16.B9dAe-zO.js.gz +0 -0
  925. package/build/client/_app/immutable/nodes/17.BjYq-nHX.js +0 -9
  926. package/build/client/_app/immutable/nodes/17.BjYq-nHX.js.br +0 -0
  927. package/build/client/_app/immutable/nodes/17.BjYq-nHX.js.gz +0 -0
  928. package/build/client/_app/immutable/nodes/18.C7MQG7kY.js +0 -2
  929. package/build/client/_app/immutable/nodes/18.C7MQG7kY.js.br +0 -0
  930. package/build/client/_app/immutable/nodes/18.C7MQG7kY.js.gz +0 -0
  931. package/build/client/_app/immutable/nodes/19.CGPxCxa4.js +0 -3
  932. package/build/client/_app/immutable/nodes/19.CGPxCxa4.js.br +0 -0
  933. package/build/client/_app/immutable/nodes/19.CGPxCxa4.js.gz +0 -0
  934. package/build/client/_app/immutable/nodes/2.DSEV6dyX.js +0 -27
  935. package/build/client/_app/immutable/nodes/2.DSEV6dyX.js.br +0 -0
  936. package/build/client/_app/immutable/nodes/2.DSEV6dyX.js.gz +0 -0
  937. package/build/client/_app/immutable/nodes/20.UmQnK0mP.js +0 -1
  938. package/build/client/_app/immutable/nodes/20.UmQnK0mP.js.br +0 -0
  939. package/build/client/_app/immutable/nodes/20.UmQnK0mP.js.gz +0 -0
  940. package/build/client/_app/immutable/nodes/21.kMxNjh5n.js +0 -6
  941. package/build/client/_app/immutable/nodes/21.kMxNjh5n.js.br +0 -0
  942. package/build/client/_app/immutable/nodes/21.kMxNjh5n.js.gz +0 -0
  943. package/build/client/_app/immutable/nodes/3.HvyFWmuR.js +0 -5
  944. package/build/client/_app/immutable/nodes/3.HvyFWmuR.js.br +0 -0
  945. package/build/client/_app/immutable/nodes/3.HvyFWmuR.js.gz +0 -0
  946. package/build/client/_app/immutable/nodes/4.cOsP7AQT.js +0 -1
  947. package/build/client/_app/immutable/nodes/4.cOsP7AQT.js.br +0 -0
  948. package/build/client/_app/immutable/nodes/4.cOsP7AQT.js.gz +0 -0
  949. package/build/client/_app/immutable/nodes/5.WTA0USqX.js +0 -2
  950. package/build/client/_app/immutable/nodes/5.WTA0USqX.js.br +0 -0
  951. package/build/client/_app/immutable/nodes/5.WTA0USqX.js.gz +0 -0
  952. package/build/client/_app/immutable/nodes/6.DVgxxTkD.js +0 -7
  953. package/build/client/_app/immutable/nodes/6.DVgxxTkD.js.br +0 -0
  954. package/build/client/_app/immutable/nodes/6.DVgxxTkD.js.gz +0 -0
  955. package/build/client/_app/immutable/nodes/7.Djk2ljG8.js +0 -5
  956. package/build/client/_app/immutable/nodes/7.Djk2ljG8.js.br +0 -0
  957. package/build/client/_app/immutable/nodes/7.Djk2ljG8.js.gz +0 -0
  958. package/build/client/_app/immutable/nodes/9.C0za5N1P.js +0 -1
  959. package/build/client/_app/immutable/nodes/9.C0za5N1P.js.br +0 -0
  960. package/build/client/_app/immutable/nodes/9.C0za5N1P.js.gz +0 -0
  961. package/build/server/chunks/chunks/DecisionCard.js-CXR2Tqq9.js +0 -586
  962. package/build/server/chunks/chunks/DocSheet.js-COU85_s3.js +0 -50
  963. package/build/server/chunks/chunks/EtaLine.js-CGeZKC7J.js +0 -98
  964. package/build/server/chunks/chunks/EveryProjectSwitch.js-BRDpCeoH.js +0 -200
  965. package/build/server/chunks/chunks/Icon.js-CHJ2UHjC.js +0 -129
  966. package/build/server/chunks/chunks/InsightsNav.js-6PnqzaPk.js +0 -18
  967. package/build/server/chunks/chunks/InstallPlugin.js-Cs1ZrPAp.js +0 -45
  968. package/build/server/chunks/chunks/LinkedText.js-W4YG6iJR.js +0 -34
  969. package/build/server/chunks/chunks/MateHealthPill.js-BNEGFwH8.js +0 -22
  970. package/build/server/chunks/chunks/OpenDecision.js-ogSBclda.js +0 -1596
  971. package/build/server/chunks/chunks/ProjectBanner.js-DFoHRlbH.js +0 -111
  972. package/build/server/chunks/chunks/ProjectStateMark.js-Dnky_g-x.js +0 -41
  973. package/build/server/chunks/chunks/QuestionList.js-BXYtAgRG.js +0 -51
  974. package/build/server/chunks/chunks/ResizableRail.js-C0NBHdjG.js +0 -50
  975. package/build/server/chunks/chunks/SettingsNav.js-hmRmEglt.js +0 -22
  976. package/build/server/chunks/chunks/SlotContent.js-DvHCWpDg.js +0 -738
  977. package/build/server/chunks/chunks/TaskOverview.js-BLbSjSGh.js +0 -568
  978. package/build/server/chunks/chunks/TimeBar.js-D3XrZtTh.js +0 -32
  979. package/build/server/chunks/chunks/TimeLegend.js-B5rkpGtG.js +0 -29
  980. package/build/server/chunks/chunks/WhereBadge.js-CT4hViFh.js +0 -131
  981. package/build/server/chunks/chunks/addresses.js-DMekVPad.js +0 -52
  982. package/build/server/chunks/chunks/aliases.svelte.js-D80jyNJf.js +0 -138
  983. package/build/server/chunks/chunks/arrow-down.js-DUgKe53e.js +0 -18
  984. package/build/server/chunks/chunks/arrow-left.js-Cq9_JtOh.js +0 -18
  985. package/build/server/chunks/chunks/arrow-right.js-AjYDyUqN.js +0 -18
  986. package/build/server/chunks/chunks/arrow-up-right.js-BXDKmOw9.js +0 -18
  987. package/build/server/chunks/chunks/arrow-up.js-Cd_TyexB.js +0 -18
  988. package/build/server/chunks/chunks/berths.js-DAg2ReUw.js +0 -270
  989. package/build/server/chunks/chunks/brief.js-TS-K0lZ6.js +0 -54
  990. package/build/server/chunks/chunks/buildlog.js-BGIHToGa.js +0 -55
  991. package/build/server/chunks/chunks/button.js-Q4mS-EA8.js +0 -7311
  992. package/build/server/chunks/chunks/changes.js-DLL6A8OG.js +0 -40
  993. package/build/server/chunks/chunks/check.js-LVN_jfQU.js +0 -15
  994. package/build/server/chunks/chunks/checks.js-CIo8HrSt.js +0 -221
  995. package/build/server/chunks/chunks/chevron-left.js-DhF4v3Pt.js +0 -15
  996. package/build/server/chunks/chunks/chevron-right.js-D4fnSNoh.js +0 -15
  997. package/build/server/chunks/chunks/circle-alert.js-CTc53lLB.js +0 -23
  998. package/build/server/chunks/chunks/circle-arrow-up.js-v-nE3jR0.js +0 -20
  999. package/build/server/chunks/chunks/circle-dashed.js-QwLaO9U2.js +0 -24
  1000. package/build/server/chunks/chunks/circle-dot.js-DMNxPdVx.js +0 -18
  1001. package/build/server/chunks/chunks/client.js-BSbbAByJ.js +0 -24
  1002. package/build/server/chunks/chunks/clock.js-hPyOuzjG.js +0 -18
  1003. package/build/server/chunks/chunks/detail.js-DmSONkJE.js +0 -146
  1004. package/build/server/chunks/chunks/external-link.js-BuWBxV8H.js +0 -24
  1005. package/build/server/chunks/chunks/eye.js-BvS4v0oz.js +0 -23
  1006. package/build/server/chunks/chunks/feedback.js-yXFmBh67.js +0 -67
  1007. package/build/server/chunks/chunks/format.js-DKnw8oWK.js +0 -70
  1008. package/build/server/chunks/chunks/git-pull-request.js-CXtks_Ym.js +0 -20
  1009. package/build/server/chunks/chunks/hand.js-CJ13vqPn.js +0 -25
  1010. package/build/server/chunks/chunks/index-server.js-BY3oucHa.js +0 -17
  1011. package/build/server/chunks/chunks/index.js-C2v29IkD.js +0 -1524
  1012. package/build/server/chunks/chunks/index2.js-DDKi-jKB.js +0 -46
  1013. package/build/server/chunks/chunks/internal.js-wAeB3IT1.js +0 -146
  1014. package/build/server/chunks/chunks/live.svelte.js-D1hNGw9_.js +0 -241
  1015. package/build/server/chunks/chunks/loader-circle.js-CNbdxSQ6.js +0 -16
  1016. package/build/server/chunks/chunks/markdown.js-0thJlxxD.js +0 -2656
  1017. package/build/server/chunks/chunks/message-square.js-Ct7UUpHZ.js +0 -22
  1018. package/build/server/chunks/chunks/messages-square.js-S0CnYLu0.js +0 -47
  1019. package/build/server/chunks/chunks/minus.js-B7GNC6Bd.js +0 -15
  1020. package/build/server/chunks/chunks/plain.js-Dc97sYaJ.js +0 -101
  1021. package/build/server/chunks/chunks/plus.js-Dbawo5bL.js +0 -15
  1022. package/build/server/chunks/chunks/previewhelper2.js-DH3wSLnQ.js +0 -165
  1023. package/build/server/chunks/chunks/pullrequests.js-BobjerQv.js +0 -152
  1024. package/build/server/chunks/chunks/pullrequests2.js-CCzk2sqm.js +0 -12
  1025. package/build/server/chunks/chunks/repo.js-CeNEGGXM.js +0 -33
  1026. package/build/server/chunks/chunks/review.js-DoWJxV0D.js +0 -141
  1027. package/build/server/chunks/chunks/root.js-iNMFn-Yg.js +0 -3105
  1028. package/build/server/chunks/chunks/rotate-cw.js-BPzrB4So.js +0 -21
  1029. package/build/server/chunks/chunks/runtime.js-CpuENBbt.js +0 -17683
  1030. package/build/server/chunks/chunks/scale.js-CkXtBARG.js +0 -21
  1031. package/build/server/chunks/chunks/scroll-lock.js-C4Fj1gEY.js +0 -2797
  1032. package/build/server/chunks/chunks/service.js-CxgO_lGX.js +0 -916
  1033. package/build/server/chunks/chunks/settings.js-BEOX97g7.js +0 -869
  1034. package/build/server/chunks/chunks/shield-check.js-MP-IWW55.js +0 -23
  1035. package/build/server/chunks/chunks/sparkles.js-Cr_IjWR_.js +0 -26
  1036. package/build/server/chunks/chunks/square-terminal.js-DLBEkPpa.js +0 -30
  1037. package/build/server/chunks/chunks/tone.js-oubilaK8.js +0 -59
  1038. package/build/server/chunks/chunks/topics.js-CPoxwdi2.js +0 -3715
  1039. package/build/server/chunks/chunks/triangle-alert.js-DGSV_5I9.js +0 -25
  1040. package/build/server/chunks/chunks/urls.js-BrlC6XZ8.js +0 -8
  1041. package/build/server/chunks/chunks/vault.js-CTaWe09z.js +0 -162
  1042. package/build/server/chunks/chunks/view.js-I8j3JaZ5.js +0 -76
  1043. package/build/server/chunks/chunks/words.js-eWWIwMKr.js +0 -52
  1044. package/build/server/chunks/chunks/x.js-Dhp-BHl8.js +0 -18
  1045. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-tV5UVoX_.js +0 -94
  1046. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-Bqe7aUbi.js +0 -104
  1047. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-DfpyY_Bq.js +0 -53
  1048. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-CN8b5ccO.js +0 -87
  1049. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CqcpAXMO.js +0 -123
  1050. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-BMv_VOat.js +0 -49
  1051. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DX45ccQL.js +0 -55
  1052. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DPfYkpxV.js +0 -48
  1053. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DwrpzrvE.js +0 -95
  1054. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BLyU7Xmy.js +0 -58
  1055. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-CwCkNQH1.js +0 -69
  1056. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-QgfVKhEv.js +0 -48
  1057. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-Dluitk4S.js +0 -40
  1058. package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-DBrzK7aF.js +0 -104
  1059. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BPOs6Ua5.js +0 -40
  1060. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CXR8ln41.js +0 -64
  1061. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-fMts5LEq.js +0 -55
  1062. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-CgoR3ZaT.js +0 -40
  1063. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-DN0zHwSr.js +0 -75
  1064. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-DawD1VtO.js +0 -64
  1065. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-C8jp0FUx.js +0 -59
  1066. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-jSPhFhMn.js +0 -56
  1067. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CDslqmcw.js +0 -24
  1068. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BJawocE3.js +0 -63
  1069. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-Be2NAmCy.js +0 -36
  1070. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-C-avUWCg.js +0 -40
  1071. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-DKAa2Uxw.js +0 -36
  1072. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-CotqjP2F.js +0 -39
  1073. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-DCvVjqLZ.js +0 -24
  1074. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-CpZ1W-A7.js +0 -45
  1075. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Cp8plIYs.js +0 -54
  1076. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-Dak56Rg1.js +0 -66
  1077. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-WZe9B5X3.js +0 -53
  1078. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-U5nJ9f0g.js +0 -76
  1079. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-30yUhJz3.js +0 -59
  1080. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-tg4vTM3A.js +0 -49
  1081. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-BsJnf3m0.js +0 -59
  1082. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-D-Wnq4C0.js +0 -48
  1083. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-De9Q8wd8.js +0 -45
  1084. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BqscYuWP.js +0 -64
  1085. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-Do8o7_-0.js +0 -57
  1086. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-gaLKbuL7.js +0 -105
  1087. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-wcXCXMkT.js +0 -59
  1088. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-kzTN6YxA.js +0 -62
  1089. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DJiB_mf7.js +0 -66
  1090. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-BjJU6JWj.js +0 -24
  1091. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-l3foNNok.js +0 -24
  1092. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DsxJ0us4.js +0 -44
  1093. package/build/server/chunks/entries/fallbacks/error.svelte.js-CB4I_wOd.js +0 -15
  1094. package/build/server/chunks/entries/hooks.server.js-B6m3Dpkx.js +0 -58
  1095. package/build/server/chunks/entries/pages/_layout.server.ts.js-CrW4p_Q2.js +0 -24
  1096. package/build/server/chunks/entries/pages/_layout.svelte.js-LKAACh49.js +0 -5475
  1097. package/build/server/chunks/entries/pages/_page.server.ts.js-CF_c0nNn.js +0 -16
  1098. package/build/server/chunks/entries/pages/_page.svelte.js-DhcYaGNL.js +0 -3817
  1099. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-B7uZVbX4.js +0 -11
  1100. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-DcczyFUP.js +0 -201
  1101. package/build/server/chunks/entries/pages/files/_page.server.ts.js-C9YB1gJL.js +0 -17
  1102. package/build/server/chunks/entries/pages/files/_page.svelte.js-BIMqSkgM.js +0 -60
  1103. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-BfPMxhei.js +0 -46
  1104. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-BHMB8PKC.js +0 -749
  1105. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-D1wZDsVf.js +0 -11
  1106. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-Yw5NZV8k.js +0 -183
  1107. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-woHdHibC.js +0 -11
  1108. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BffukCNo.js +0 -175
  1109. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-XcXW0Uve.js +0 -16
  1110. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DLxqhull.js +0 -53
  1111. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-wLr_tgjL.js +0 -23
  1112. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-Doi5pyAo.js +0 -980
  1113. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DMOW6iPG.js +0 -21
  1114. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Cr__zX_O.js +0 -76
  1115. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BJZyFsqL.js +0 -27
  1116. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CkM6pjKK.js +0 -418
  1117. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DB_UVBbI.js +0 -15
  1118. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-CN-WwfgH.js +0 -1880
  1119. package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-CO4DG7gS.js +0 -221
  1120. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DfWW-CQh.js +0 -11
  1121. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-DuleT8BP.js +0 -208
  1122. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-CshPvaAs.js +0 -19
  1123. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-BUmIRIz2.js +0 -1854
  1124. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-9JK7K_z9.js +0 -17
  1125. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-B5PSrA4H.js +0 -227
  1126. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-Cvp9xMG4.js +0 -25
  1127. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-ChQv02MF.js +0 -2194
  1128. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-C1DtiAVs.js +0 -24
  1129. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-QzwiMik4.js +0 -79
  1130. package/build/server/chunks/entries/pages/time/_page.server.ts.js-DlJqn5ve.js +0 -11
  1131. package/build/server/chunks/entries/pages/time/_page.svelte.js-D0Z16ExE.js +0 -108
  1132. package/build/server/chunks/handler-Bs_CCC30.js +0 -1474
  1133. package/build/server/chunks/index.js-Cs5HOQvf.js +0 -4296
  1134. package/build/server/chunks/manifest.js-BDRywlKi.js +0 -551
  1135. package/build/server/chunks/nodes/0.js-CsWq-jPD.js +0 -45
  1136. package/build/server/chunks/nodes/1.js-CTC_MshV.js +0 -9
  1137. package/build/server/chunks/nodes/10.js-CZq28G3f.js +0 -47
  1138. package/build/server/chunks/nodes/11.js-BtlSUZdl.js +0 -46
  1139. package/build/server/chunks/nodes/12.js-D0o_nkGH.js +0 -47
  1140. package/build/server/chunks/nodes/13.js-BIIG5wG0.js +0 -46
  1141. package/build/server/chunks/nodes/14.js-B3MoJ0Ck.js +0 -9
  1142. package/build/server/chunks/nodes/16.js-DL5dm8m7.js +0 -45
  1143. package/build/server/chunks/nodes/17.js-BItMe09V.js +0 -45
  1144. package/build/server/chunks/nodes/18.js-BqNFJ6VI.js +0 -48
  1145. package/build/server/chunks/nodes/19.js-DWlhtpN2.js +0 -46
  1146. package/build/server/chunks/nodes/2.js-Biys3XVB.js +0 -45
  1147. package/build/server/chunks/nodes/20.js-tYMJBMgr.js +0 -46
  1148. package/build/server/chunks/nodes/21.js-DB94vZQt.js +0 -45
  1149. package/build/server/chunks/nodes/3.js-CsnKNLDN.js +0 -45
  1150. package/build/server/chunks/nodes/4.js-l8re1d64.js +0 -45
  1151. package/build/server/chunks/nodes/5.js-B0eRP6zR.js +0 -49
  1152. package/build/server/chunks/nodes/6.js-BWv2xVyz.js +0 -45
  1153. package/build/server/chunks/nodes/7.js-C4YSw2xL.js +0 -45
  1154. package/build/server/chunks/nodes/9.js-CWW789qH.js +0 -45
  1155. /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css → PreviewStudio.Dga9zAug.css} +0 -0
  1156. /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css.br → PreviewStudio.Dga9zAug.css.br} +0 -0
  1157. /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css.gz → PreviewStudio.Dga9zAug.css.gz} +0 -0
@@ -0,0 +1,3816 @@
1
+ import { ac as spread_props, a7 as bind_props, aj as props_id, _ as derived, a5 as attributes } from './index.js-jKxghqQY.js';
2
+ import { I as Icon } from './Icon.js-jn6AqrcV.js';
3
+ import { n as noop, b as boxWith, C as Context, P as PresenceManager, w as watch, s as simpleBox, c as createBitsAttrs, a as createId, d as attachRef, D as DOMContext, i as isTouch, E as ENTER, S as SPACE, g as getDataOpenClosed, e as boolToStr, f as boxFrom, h as isElement$1, j as isTabbable, k as getDataTransitionAttrs, m as mergeProps, l as getDocument, u as useId, o as cssToStyleObj, p as isNotNull, q as styleToString, r as getWindow$1, t as defaultWindow, v as Scroll_lock, F as Focus_scope, x as Escape_layer, y as Dismissible_layer, T as Text_selection_layer } from './scroll-lock.js-KJygphA1.js';
4
+ import { c as createSubscriber } from './index-server2.js-DsObimPA.js';
5
+ import { o as on } from './root.js-B4TT3ryq.js';
6
+ import { l as linkedPreviews, a as pageOf, i as isBoard } from './previewnote.js-DB6VK2fp.js';
7
+ import { e as extractUrls } from './urls.js-CM6aklCF.js';
8
+ import { n as needsYou } from './harbour.js-D3N7u1_p.js';
9
+
10
+ /**
11
+ * Custom positioning reference element.
12
+ * @see https://floating-ui.com/docs/virtual-elements
13
+ */
14
+
15
+ const sides = ['top', 'right', 'bottom', 'left'];
16
+ const min = Math.min;
17
+ const max = Math.max;
18
+ const round = Math.round;
19
+ const createCoords = v => ({
20
+ x: v,
21
+ y: v
22
+ });
23
+ const oppositeSideMap = {
24
+ left: 'right',
25
+ right: 'left',
26
+ bottom: 'top',
27
+ top: 'bottom'
28
+ };
29
+ function clamp(start, value, end) {
30
+ return max(start, min(value, end));
31
+ }
32
+ function evaluate(value, param) {
33
+ return typeof value === 'function' ? value(param) : value;
34
+ }
35
+ function getSide$1(placement) {
36
+ return placement.split('-')[0];
37
+ }
38
+ function getAlignment(placement) {
39
+ return placement.split('-')[1];
40
+ }
41
+ function getOppositeAxis(axis) {
42
+ return axis === 'x' ? 'y' : 'x';
43
+ }
44
+ function getAxisLength(axis) {
45
+ return axis === 'y' ? 'height' : 'width';
46
+ }
47
+ function getSideAxis(placement) {
48
+ const firstChar = placement[0];
49
+ return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
50
+ }
51
+ function getAlignmentAxis(placement) {
52
+ return getOppositeAxis(getSideAxis(placement));
53
+ }
54
+ function getAlignmentSides(placement, rects, rtl) {
55
+ if (rtl === void 0) {
56
+ rtl = false;
57
+ }
58
+ const alignment = getAlignment(placement);
59
+ const alignmentAxis = getAlignmentAxis(placement);
60
+ const length = getAxisLength(alignmentAxis);
61
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
62
+ if (rects.reference[length] > rects.floating[length]) {
63
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
64
+ }
65
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
66
+ }
67
+ function getExpandedPlacements(placement) {
68
+ const oppositePlacement = getOppositePlacement(placement);
69
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
70
+ }
71
+ function getOppositeAlignmentPlacement(placement) {
72
+ return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
73
+ }
74
+ const lrPlacement = ['left', 'right'];
75
+ const rlPlacement = ['right', 'left'];
76
+ const tbPlacement = ['top', 'bottom'];
77
+ const btPlacement = ['bottom', 'top'];
78
+ function getSideList(side, isStart, rtl) {
79
+ switch (side) {
80
+ case 'top':
81
+ case 'bottom':
82
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
83
+ return isStart ? lrPlacement : rlPlacement;
84
+ case 'left':
85
+ case 'right':
86
+ return isStart ? tbPlacement : btPlacement;
87
+ default:
88
+ return [];
89
+ }
90
+ }
91
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
92
+ const alignment = getAlignment(placement);
93
+ let list = getSideList(getSide$1(placement), direction === 'start', rtl);
94
+ if (alignment) {
95
+ list = list.map(side => side + "-" + alignment);
96
+ if (flipAlignment) {
97
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
98
+ }
99
+ }
100
+ return list;
101
+ }
102
+ function getOppositePlacement(placement) {
103
+ const side = getSide$1(placement);
104
+ return oppositeSideMap[side] + placement.slice(side.length);
105
+ }
106
+ function expandPaddingObject(padding) {
107
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
108
+ return {
109
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
110
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
111
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
112
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
113
+ };
114
+ }
115
+ function getPaddingObject(padding) {
116
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
117
+ top: padding,
118
+ right: padding,
119
+ bottom: padding,
120
+ left: padding
121
+ };
122
+ }
123
+ function rectToClientRect(rect) {
124
+ const {
125
+ x,
126
+ y,
127
+ width,
128
+ height
129
+ } = rect;
130
+ return {
131
+ width,
132
+ height,
133
+ top: y,
134
+ left: x,
135
+ right: x + width,
136
+ bottom: y + height,
137
+ x,
138
+ y
139
+ };
140
+ }
141
+
142
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
143
+ let {
144
+ reference,
145
+ floating
146
+ } = _ref;
147
+ const sideAxis = getSideAxis(placement);
148
+ const alignmentAxis = getAlignmentAxis(placement);
149
+ const alignLength = getAxisLength(alignmentAxis);
150
+ const side = getSide$1(placement);
151
+ const isVertical = sideAxis === 'y';
152
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
153
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
154
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
155
+ let coords;
156
+ switch (side) {
157
+ case 'top':
158
+ coords = {
159
+ x: commonX,
160
+ y: reference.y - floating.height
161
+ };
162
+ break;
163
+ case 'bottom':
164
+ coords = {
165
+ x: commonX,
166
+ y: reference.y + reference.height
167
+ };
168
+ break;
169
+ case 'right':
170
+ coords = {
171
+ x: reference.x + reference.width,
172
+ y: commonY
173
+ };
174
+ break;
175
+ case 'left':
176
+ coords = {
177
+ x: reference.x - floating.width,
178
+ y: commonY
179
+ };
180
+ break;
181
+ default:
182
+ coords = {
183
+ x: reference.x,
184
+ y: reference.y
185
+ };
186
+ }
187
+ const alignment = getAlignment(placement);
188
+ if (alignment) {
189
+ coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);
190
+ }
191
+ return coords;
192
+ }
193
+
194
+ /**
195
+ * Resolves with an object of overflow side offsets that determine how much the
196
+ * element is overflowing a given clipping boundary on each side.
197
+ * - positive = overflowing the boundary by that number of pixels
198
+ * - negative = how many pixels left before it will overflow
199
+ * - 0 = lies flush with the boundary
200
+ * @see https://floating-ui.com/docs/detectOverflow
201
+ */
202
+ async function detectOverflow(state, options) {
203
+ var _await$platform$isEle;
204
+ if (options === void 0) {
205
+ options = {};
206
+ }
207
+ const {
208
+ x,
209
+ y,
210
+ platform,
211
+ rects,
212
+ elements,
213
+ strategy
214
+ } = state;
215
+ const {
216
+ boundary = 'clippingAncestors',
217
+ rootBoundary = 'viewport',
218
+ elementContext = 'floating',
219
+ altBoundary = false,
220
+ padding = 0
221
+ } = evaluate(options, state);
222
+ const paddingObject = getPaddingObject(padding);
223
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
224
+ const element = elements[altBoundary ? altContext : elementContext];
225
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
226
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
227
+ boundary,
228
+ rootBoundary,
229
+ strategy
230
+ }));
231
+ const rect = elementContext === 'floating' ? {
232
+ x,
233
+ y,
234
+ width: rects.floating.width,
235
+ height: rects.floating.height
236
+ } : rects.reference;
237
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
238
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
239
+ x: 1,
240
+ y: 1
241
+ };
242
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
243
+ elements,
244
+ rect,
245
+ offsetParent,
246
+ strategy
247
+ }) : rect);
248
+ return {
249
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
250
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
251
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
252
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
253
+ };
254
+ }
255
+
256
+ // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
257
+ const MAX_RESET_COUNT = 50;
258
+
259
+ /**
260
+ * Computes the `x` and `y` coordinates that will place the floating element
261
+ * next to a given reference element.
262
+ *
263
+ * This export does not have any `platform` interface logic. You will need to
264
+ * write one for the platform you are using Floating UI with.
265
+ */
266
+ const computePosition$1 = async (reference, floating, config) => {
267
+ const {
268
+ placement = 'bottom',
269
+ strategy = 'absolute',
270
+ middleware = [],
271
+ platform
272
+ } = config;
273
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
274
+ ...platform,
275
+ detectOverflow
276
+ };
277
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
278
+ let rects = await platform.getElementRects({
279
+ reference,
280
+ floating,
281
+ strategy
282
+ });
283
+ let {
284
+ x,
285
+ y
286
+ } = computeCoordsFromPlacement(rects, placement, rtl);
287
+ let statefulPlacement = placement;
288
+ let resetCount = 0;
289
+ const middlewareData = {};
290
+ for (let i = 0; i < middleware.length; i++) {
291
+ const currentMiddleware = middleware[i];
292
+ if (!currentMiddleware) {
293
+ continue;
294
+ }
295
+ const {
296
+ name,
297
+ fn
298
+ } = currentMiddleware;
299
+ const {
300
+ x: nextX,
301
+ y: nextY,
302
+ data,
303
+ reset
304
+ } = await fn({
305
+ x,
306
+ y,
307
+ initialPlacement: placement,
308
+ placement: statefulPlacement,
309
+ strategy,
310
+ middlewareData,
311
+ rects,
312
+ platform: platformWithDetectOverflow,
313
+ elements: {
314
+ reference,
315
+ floating
316
+ }
317
+ });
318
+ x = nextX != null ? nextX : x;
319
+ y = nextY != null ? nextY : y;
320
+ middlewareData[name] = {
321
+ ...middlewareData[name],
322
+ ...data
323
+ };
324
+ if (reset && resetCount < MAX_RESET_COUNT) {
325
+ resetCount++;
326
+ if (typeof reset === 'object') {
327
+ if (reset.placement) {
328
+ statefulPlacement = reset.placement;
329
+ }
330
+ if (reset.rects) {
331
+ rects = reset.rects === true ? await platform.getElementRects({
332
+ reference,
333
+ floating,
334
+ strategy
335
+ }) : reset.rects;
336
+ }
337
+ ({
338
+ x,
339
+ y
340
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
341
+ }
342
+ i = -1;
343
+ }
344
+ }
345
+ return {
346
+ x,
347
+ y,
348
+ placement: statefulPlacement,
349
+ strategy,
350
+ middlewareData
351
+ };
352
+ };
353
+
354
+ /**
355
+ * Provides data to position an inner element of the floating element so that it
356
+ * appears centered to the reference element.
357
+ * @see https://floating-ui.com/docs/arrow
358
+ */
359
+ const arrow$1 = options => ({
360
+ name: 'arrow',
361
+ options,
362
+ async fn(state) {
363
+ const {
364
+ x,
365
+ y,
366
+ placement,
367
+ rects,
368
+ platform,
369
+ elements,
370
+ middlewareData
371
+ } = state;
372
+ // Since `element` is required, we don't Partial<> the type.
373
+ const {
374
+ element,
375
+ padding = 0
376
+ } = evaluate(options, state) || {};
377
+ if (element == null) {
378
+ return {};
379
+ }
380
+ const paddingObject = getPaddingObject(padding);
381
+ const coords = {
382
+ x,
383
+ y
384
+ };
385
+ const axis = getAlignmentAxis(placement);
386
+ const length = getAxisLength(axis);
387
+ const arrowDimensions = await platform.getDimensions(element);
388
+ const isYAxis = axis === 'y';
389
+ const minProp = isYAxis ? 'top' : 'left';
390
+ const maxProp = isYAxis ? 'bottom' : 'right';
391
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
392
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
393
+ const startDiff = coords[axis] - rects.reference[axis];
394
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
395
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
396
+
397
+ // DOM platform can return `window` as the `offsetParent`.
398
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
399
+ clientSize = elements.floating[clientProp] || rects.floating[length];
400
+ }
401
+ const centerToReference = endDiff / 2 - startDiff / 2;
402
+
403
+ // If the padding is large enough that it causes the arrow to no longer be
404
+ // centered, modify the padding so that it is centered.
405
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
406
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
407
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
408
+
409
+ // Make sure the arrow doesn't overflow the floating element if the center
410
+ // point is outside the floating element's bounds.
411
+ const max = clientSize - arrowDimensions[length] - maxPadding;
412
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
413
+ const offset = clamp(minPadding, center, max);
414
+
415
+ // If the reference is small enough that the arrow's padding causes it to
416
+ // to point to nothing for an aligned placement, adjust the offset of the
417
+ // floating element itself. To ensure `shift()` continues to take action,
418
+ // a single reset is performed when this is true.
419
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
420
+ const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
421
+ return {
422
+ [axis]: coords[axis] + alignmentOffset,
423
+ data: {
424
+ [axis]: offset,
425
+ centerOffset: center - offset - alignmentOffset,
426
+ ...(shouldAddOffset && {
427
+ alignmentOffset
428
+ })
429
+ },
430
+ reset: shouldAddOffset
431
+ };
432
+ }
433
+ });
434
+
435
+ /**
436
+ * Optimizes the visibility of the floating element by flipping the `placement`
437
+ * in order to keep it in view when the preferred placement(s) will overflow the
438
+ * clipping boundary. Alternative to `autoPlacement`.
439
+ * @see https://floating-ui.com/docs/flip
440
+ */
441
+ const flip$1 = function (options) {
442
+ if (options === void 0) {
443
+ options = {};
444
+ }
445
+ return {
446
+ name: 'flip',
447
+ options,
448
+ async fn(state) {
449
+ var _middlewareData$arrow, _middlewareData$flip;
450
+ const {
451
+ placement,
452
+ middlewareData,
453
+ rects,
454
+ initialPlacement,
455
+ platform,
456
+ elements
457
+ } = state;
458
+ const {
459
+ mainAxis: checkMainAxis = true,
460
+ crossAxis: checkCrossAxis = true,
461
+ fallbackPlacements: specifiedFallbackPlacements,
462
+ fallbackStrategy = 'bestFit',
463
+ fallbackAxisSideDirection = 'none',
464
+ flipAlignment = true,
465
+ ...detectOverflowOptions
466
+ } = evaluate(options, state);
467
+
468
+ // If a reset by the arrow was caused due to an alignment offset being
469
+ // added, we should skip any logic now since `flip()` has already done its
470
+ // work.
471
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
472
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
473
+ return {};
474
+ }
475
+ const side = getSide$1(placement);
476
+ const initialSideAxis = getSideAxis(initialPlacement);
477
+ const isBasePlacement = getSide$1(initialPlacement) === initialPlacement;
478
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
479
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
480
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
481
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
482
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
483
+ }
484
+ const placements = [initialPlacement, ...fallbackPlacements];
485
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
486
+ const overflows = [];
487
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
488
+ if (checkMainAxis) {
489
+ overflows.push(overflow[side]);
490
+ }
491
+ if (checkCrossAxis) {
492
+ const sides = getAlignmentSides(placement, rects, rtl);
493
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
494
+ }
495
+ overflowsData = [...overflowsData, {
496
+ placement,
497
+ overflows
498
+ }];
499
+
500
+ // One or more sides is overflowing.
501
+ if (!overflows.every(side => side <= 0)) {
502
+ var _middlewareData$flip2, _overflowsData$filter;
503
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
504
+ const nextPlacement = placements[nextIndex];
505
+ if (nextPlacement) {
506
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
507
+ if (!ignoreCrossAxisOverflow ||
508
+ // We leave the current main axis only if every placement on that axis
509
+ // overflows the main axis.
510
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
511
+ // Try next placement and re-run the lifecycle.
512
+ return {
513
+ data: {
514
+ index: nextIndex,
515
+ overflows: overflowsData
516
+ },
517
+ reset: {
518
+ placement: nextPlacement
519
+ }
520
+ };
521
+ }
522
+ }
523
+
524
+ // First, find the candidates that fit on the mainAxis side of overflow,
525
+ // then find the placement that fits the best on the main crossAxis side.
526
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
527
+
528
+ // Otherwise fallback.
529
+ if (!resetPlacement) {
530
+ switch (fallbackStrategy) {
531
+ case 'bestFit':
532
+ {
533
+ var _overflowsData$filter2;
534
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
535
+ if (hasFallbackAxisSideDirection) {
536
+ const currentSideAxis = getSideAxis(d.placement);
537
+ return currentSideAxis === initialSideAxis ||
538
+ // Create a bias to the `y` side axis due to horizontal
539
+ // reading directions favoring greater width.
540
+ currentSideAxis === 'y';
541
+ }
542
+ return true;
543
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
544
+ if (placement) {
545
+ resetPlacement = placement;
546
+ }
547
+ break;
548
+ }
549
+ case 'initialPlacement':
550
+ resetPlacement = initialPlacement;
551
+ break;
552
+ }
553
+ }
554
+ if (placement !== resetPlacement) {
555
+ return {
556
+ reset: {
557
+ placement: resetPlacement
558
+ }
559
+ };
560
+ }
561
+ }
562
+ return {};
563
+ }
564
+ };
565
+ };
566
+
567
+ function getSideOffsets(overflow, rect) {
568
+ return {
569
+ top: overflow.top - rect.height,
570
+ right: overflow.right - rect.width,
571
+ bottom: overflow.bottom - rect.height,
572
+ left: overflow.left - rect.width
573
+ };
574
+ }
575
+ function isAnySideFullyClipped(overflow) {
576
+ return sides.some(side => overflow[side] >= 0);
577
+ }
578
+ /**
579
+ * Provides data to hide the floating element in applicable situations, such as
580
+ * when it is not in the same clipping context as the reference element.
581
+ * @see https://floating-ui.com/docs/hide
582
+ */
583
+ const hide$1 = function (options) {
584
+ if (options === void 0) {
585
+ options = {};
586
+ }
587
+ return {
588
+ name: 'hide',
589
+ options,
590
+ async fn(state) {
591
+ const {
592
+ rects,
593
+ platform
594
+ } = state;
595
+ const {
596
+ strategy = 'referenceHidden',
597
+ ...detectOverflowOptions
598
+ } = evaluate(options, state);
599
+ switch (strategy) {
600
+ case 'referenceHidden':
601
+ {
602
+ const overflow = await platform.detectOverflow(state, {
603
+ ...detectOverflowOptions,
604
+ elementContext: 'reference'
605
+ });
606
+ const offsets = getSideOffsets(overflow, rects.reference);
607
+ return {
608
+ data: {
609
+ referenceHiddenOffsets: offsets,
610
+ referenceHidden: isAnySideFullyClipped(offsets)
611
+ }
612
+ };
613
+ }
614
+ case 'escaped':
615
+ {
616
+ const overflow = await platform.detectOverflow(state, {
617
+ ...detectOverflowOptions,
618
+ altBoundary: true
619
+ });
620
+ const offsets = getSideOffsets(overflow, rects.floating);
621
+ return {
622
+ data: {
623
+ escapedOffsets: offsets,
624
+ escaped: isAnySideFullyClipped(offsets)
625
+ }
626
+ };
627
+ }
628
+ default:
629
+ {
630
+ return {};
631
+ }
632
+ }
633
+ }
634
+ };
635
+ };
636
+
637
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
638
+
639
+ // For type backwards-compatibility, the `OffsetOptions` type was also
640
+ // Derivable.
641
+
642
+ async function convertValueToCoords(state, options) {
643
+ const {
644
+ placement,
645
+ platform,
646
+ elements
647
+ } = state;
648
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
649
+ const side = getSide$1(placement);
650
+ const alignment = getAlignment(placement);
651
+ const isVertical = getSideAxis(placement) === 'y';
652
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
653
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
654
+ const rawValue = evaluate(options, state);
655
+
656
+ // eslint-disable-next-line prefer-const
657
+ let {
658
+ mainAxis,
659
+ crossAxis,
660
+ alignmentAxis
661
+ } = typeof rawValue === 'number' ? {
662
+ mainAxis: rawValue,
663
+ crossAxis: 0,
664
+ alignmentAxis: null
665
+ } : {
666
+ mainAxis: rawValue.mainAxis || 0,
667
+ crossAxis: rawValue.crossAxis || 0,
668
+ alignmentAxis: rawValue.alignmentAxis
669
+ };
670
+ if (alignment && typeof alignmentAxis === 'number') {
671
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
672
+ }
673
+ return isVertical ? {
674
+ x: crossAxis * crossAxisMulti,
675
+ y: mainAxis * mainAxisMulti
676
+ } : {
677
+ x: mainAxis * mainAxisMulti,
678
+ y: crossAxis * crossAxisMulti
679
+ };
680
+ }
681
+
682
+ /**
683
+ * Modifies the placement by translating the floating element along the
684
+ * specified axes.
685
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
686
+ * object may be passed.
687
+ * @see https://floating-ui.com/docs/offset
688
+ */
689
+ const offset$1 = function (options) {
690
+ if (options === void 0) {
691
+ options = 0;
692
+ }
693
+ return {
694
+ name: 'offset',
695
+ options,
696
+ async fn(state) {
697
+ var _middlewareData$offse, _middlewareData$arrow;
698
+ const {
699
+ x,
700
+ y,
701
+ placement,
702
+ middlewareData
703
+ } = state;
704
+ const diffCoords = await convertValueToCoords(state, options);
705
+
706
+ // If the placement is the same and the arrow caused an alignment offset
707
+ // then we don't need to change the positioning coordinates.
708
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
709
+ return {};
710
+ }
711
+ return {
712
+ x: x + diffCoords.x,
713
+ y: y + diffCoords.y,
714
+ data: {
715
+ ...diffCoords,
716
+ placement
717
+ }
718
+ };
719
+ }
720
+ };
721
+ };
722
+
723
+ /**
724
+ * Optimizes the visibility of the floating element by shifting it in order to
725
+ * keep it in view when it will overflow the clipping boundary.
726
+ * @see https://floating-ui.com/docs/shift
727
+ */
728
+ const shift$1 = function (options) {
729
+ if (options === void 0) {
730
+ options = {};
731
+ }
732
+ return {
733
+ name: 'shift',
734
+ options,
735
+ async fn(state) {
736
+ const {
737
+ x,
738
+ y,
739
+ placement,
740
+ platform
741
+ } = state;
742
+ const {
743
+ mainAxis: checkMainAxis = true,
744
+ crossAxis: checkCrossAxis = false,
745
+ limiter = {
746
+ fn: _ref => {
747
+ let {
748
+ x,
749
+ y
750
+ } = _ref;
751
+ return {
752
+ x,
753
+ y
754
+ };
755
+ }
756
+ },
757
+ ...detectOverflowOptions
758
+ } = evaluate(options, state);
759
+ const coords = {
760
+ x,
761
+ y
762
+ };
763
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
764
+ const crossAxis = getSideAxis(placement);
765
+ const mainAxis = getOppositeAxis(crossAxis);
766
+ let mainAxisCoord = coords[mainAxis];
767
+ let crossAxisCoord = coords[crossAxis];
768
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);
769
+ if (checkMainAxis) {
770
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
771
+ }
772
+ if (checkCrossAxis) {
773
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
774
+ }
775
+ const limitedCoords = limiter.fn({
776
+ ...state,
777
+ [mainAxis]: mainAxisCoord,
778
+ [crossAxis]: crossAxisCoord
779
+ });
780
+ return {
781
+ ...limitedCoords,
782
+ data: {
783
+ x: limitedCoords.x - x,
784
+ y: limitedCoords.y - y,
785
+ enabled: {
786
+ [mainAxis]: checkMainAxis,
787
+ [crossAxis]: checkCrossAxis
788
+ }
789
+ }
790
+ };
791
+ }
792
+ };
793
+ };
794
+ /**
795
+ * Built-in `limiter` that will stop `shift()` at a certain point.
796
+ */
797
+ const limitShift$1 = function (options) {
798
+ if (options === void 0) {
799
+ options = {};
800
+ }
801
+ return {
802
+ options,
803
+ fn(state) {
804
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
805
+ const {
806
+ x,
807
+ y,
808
+ placement,
809
+ rects,
810
+ middlewareData
811
+ } = state;
812
+ const {
813
+ offset = 0,
814
+ mainAxis: checkMainAxis = true,
815
+ crossAxis: checkCrossAxis = true
816
+ } = evaluate(options, state);
817
+ const coords = {
818
+ x,
819
+ y
820
+ };
821
+ const crossAxis = getSideAxis(placement);
822
+ const mainAxis = getOppositeAxis(crossAxis);
823
+ let mainAxisCoord = coords[mainAxis];
824
+ let crossAxisCoord = coords[crossAxis];
825
+ const rawOffset = evaluate(offset, state);
826
+ const computedOffset = typeof rawOffset === 'number' ? {
827
+ mainAxis: rawOffset,
828
+ crossAxis: 0
829
+ } : {
830
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
831
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
832
+ };
833
+ if (checkMainAxis) {
834
+ const len = mainAxis === 'y' ? 'height' : 'width';
835
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
836
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
837
+ if (mainAxisCoord < limitMin) {
838
+ mainAxisCoord = limitMin;
839
+ } else if (mainAxisCoord > limitMax) {
840
+ mainAxisCoord = limitMax;
841
+ }
842
+ }
843
+ if (checkCrossAxis) {
844
+ var _middlewareData$offse, _middlewareData$offse2;
845
+ const len = mainAxis === 'y' ? 'width' : 'height';
846
+ const isOriginSide = originSides.has(getSide$1(placement));
847
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
848
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
849
+ if (crossAxisCoord < limitMin) {
850
+ crossAxisCoord = limitMin;
851
+ } else if (crossAxisCoord > limitMax) {
852
+ crossAxisCoord = limitMax;
853
+ }
854
+ }
855
+ return {
856
+ [mainAxis]: mainAxisCoord,
857
+ [crossAxis]: crossAxisCoord
858
+ };
859
+ }
860
+ };
861
+ };
862
+
863
+ // Method syntax keeps callback parameters bivariant, but expressing the
864
+ // explicit `| undefined` required by `exactOptionalPropertyTypes` needs
865
+ // property syntax, which is contravariant under `strictFunctionTypes`.
866
+ // Extracting the function from a method position restores that bivariance so
867
+ // consumers can still assign callbacks with narrower parameter types.
868
+
869
+ /**
870
+ * Provides data that allows you to change the size of the floating element —
871
+ * for instance, prevent it from overflowing the clipping boundary or match the
872
+ * width of the reference element.
873
+ * @see https://floating-ui.com/docs/size
874
+ */
875
+ const size$1 = function (options) {
876
+ if (options === void 0) {
877
+ options = {};
878
+ }
879
+ return {
880
+ name: 'size',
881
+ options,
882
+ async fn(state) {
883
+ const {
884
+ placement,
885
+ rects,
886
+ platform,
887
+ elements
888
+ } = state;
889
+ const {
890
+ apply = () => {},
891
+ ...detectOverflowOptions
892
+ } = evaluate(options, state);
893
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
894
+ const side = getSide$1(placement);
895
+ const alignment = getAlignment(placement);
896
+ const isYAxis = getSideAxis(placement) === 'y';
897
+ const {
898
+ width,
899
+ height
900
+ } = rects.floating;
901
+ let heightSide;
902
+ let widthSide;
903
+ if (side === 'top' || side === 'bottom') {
904
+ heightSide = side;
905
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
906
+ } else {
907
+ widthSide = side;
908
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
909
+ }
910
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
911
+ const maximumClippingWidth = width - overflow.left - overflow.right;
912
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
913
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
914
+ const shiftData = state.middlewareData.shift;
915
+ const noShift = !shiftData;
916
+ let availableHeight = overflowAvailableHeight;
917
+ let availableWidth = overflowAvailableWidth;
918
+ if (shiftData != null && shiftData.enabled.x) {
919
+ availableWidth = maximumClippingWidth;
920
+ }
921
+ if (shiftData != null && shiftData.enabled.y) {
922
+ availableHeight = maximumClippingHeight;
923
+ }
924
+ if (noShift && !alignment) {
925
+ if (isYAxis) {
926
+ availableWidth = width - 2 * max(overflow.left, overflow.right);
927
+ } else {
928
+ availableHeight = height - 2 * max(overflow.top, overflow.bottom);
929
+ }
930
+ }
931
+ await apply({
932
+ ...state,
933
+ availableWidth,
934
+ availableHeight
935
+ });
936
+ const nextDimensions = await platform.getDimensions(elements.floating);
937
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
938
+ return {
939
+ reset: {
940
+ rects: true
941
+ }
942
+ };
943
+ }
944
+ return {};
945
+ }
946
+ };
947
+ };
948
+
949
+ function hasWindow() {
950
+ return typeof window !== 'undefined';
951
+ }
952
+ function getNodeName(node) {
953
+ if (isNode(node)) {
954
+ return (node.nodeName || '').toLowerCase();
955
+ }
956
+ // Mocked nodes in testing environments may not be instances of Node. By
957
+ // returning `#document` an infinite loop won't occur.
958
+ // https://github.com/floating-ui/floating-ui/issues/2317
959
+ return '#document';
960
+ }
961
+ function getWindow(node) {
962
+ var _node$ownerDocument;
963
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
964
+ }
965
+ function getDocumentElement(node) {
966
+ var _ref;
967
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
968
+ }
969
+ function isNode(value) {
970
+ if (!hasWindow()) {
971
+ return false;
972
+ }
973
+ return value instanceof Node || value instanceof getWindow(value).Node;
974
+ }
975
+ function isElement(value) {
976
+ if (!hasWindow()) {
977
+ return false;
978
+ }
979
+ return value instanceof Element || value instanceof getWindow(value).Element;
980
+ }
981
+ function isHTMLElement(value) {
982
+ if (!hasWindow()) {
983
+ return false;
984
+ }
985
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
986
+ }
987
+ function isShadowRoot(value) {
988
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
989
+ return false;
990
+ }
991
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
992
+ }
993
+ function isOverflowElement(element) {
994
+ const {
995
+ overflow,
996
+ overflowX,
997
+ overflowY,
998
+ display
999
+ } = getComputedStyle$1(element);
1000
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
1001
+ }
1002
+ function isTableElement(element) {
1003
+ return /^(table|td|th)$/.test(getNodeName(element));
1004
+ }
1005
+ function isTopLayer(element) {
1006
+ try {
1007
+ if (element.matches(':popover-open')) {
1008
+ return true;
1009
+ }
1010
+ } catch (_e) {
1011
+ // no-op
1012
+ }
1013
+ try {
1014
+ return element.matches(':modal');
1015
+ } catch (_e) {
1016
+ return false;
1017
+ }
1018
+ }
1019
+ const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
1020
+ const containRe = /paint|layout|strict|content/;
1021
+ const isNotNone = value => !!value && value !== 'none';
1022
+ let isWebKitValue;
1023
+ function isContainingBlock(elementOrCss) {
1024
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
1025
+
1026
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1027
+ // https://drafts.csswg.org/css-transforms-2/#individual-transforms
1028
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
1029
+ }
1030
+ function getContainingBlock(element) {
1031
+ let currentNode = getParentNode(element);
1032
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1033
+ if (isContainingBlock(currentNode)) {
1034
+ return currentNode;
1035
+ } else if (isTopLayer(currentNode)) {
1036
+ return null;
1037
+ }
1038
+ currentNode = getParentNode(currentNode);
1039
+ }
1040
+ return null;
1041
+ }
1042
+ function isWebKit() {
1043
+ if (isWebKitValue == null) {
1044
+ isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
1045
+ }
1046
+ return isWebKitValue;
1047
+ }
1048
+ function isLastTraversableNode(node) {
1049
+ return /^(html|body|#document)$/.test(getNodeName(node));
1050
+ }
1051
+ function getComputedStyle$1(element) {
1052
+ return getWindow(element).getComputedStyle(element);
1053
+ }
1054
+ function getNodeScroll(element) {
1055
+ if (isElement(element)) {
1056
+ return {
1057
+ scrollLeft: element.scrollLeft,
1058
+ scrollTop: element.scrollTop
1059
+ };
1060
+ }
1061
+ return {
1062
+ scrollLeft: element.scrollX,
1063
+ scrollTop: element.scrollY
1064
+ };
1065
+ }
1066
+ function getParentNode(node) {
1067
+ if (getNodeName(node) === 'html') {
1068
+ return node;
1069
+ }
1070
+ const result =
1071
+ // Step into the shadow DOM of the parent of a slotted node.
1072
+ node.assignedSlot ||
1073
+ // DOM Element detected.
1074
+ node.parentNode ||
1075
+ // ShadowRoot detected.
1076
+ isShadowRoot(node) && node.host ||
1077
+ // Fallback.
1078
+ getDocumentElement(node);
1079
+ return isShadowRoot(result) ? result.host : result;
1080
+ }
1081
+ function getNearestOverflowAncestor(node) {
1082
+ const parentNode = getParentNode(node);
1083
+ if (isLastTraversableNode(parentNode)) {
1084
+ return (node.ownerDocument || node).body;
1085
+ }
1086
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1087
+ return parentNode;
1088
+ }
1089
+ return getNearestOverflowAncestor(parentNode);
1090
+ }
1091
+ function getOverflowAncestors(node, list, traverseIframes) {
1092
+ var _node$ownerDocument2;
1093
+ if (list === void 0) {
1094
+ list = [];
1095
+ }
1096
+ const scrollableAncestor = getNearestOverflowAncestor(node);
1097
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1098
+ const win = getWindow(scrollableAncestor);
1099
+ if (isBody) {
1100
+ getFrameElement(win);
1101
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], []);
1102
+ } else {
1103
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));
1104
+ }
1105
+ }
1106
+ function getFrameElement(win) {
1107
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
1108
+ }
1109
+
1110
+ function getCssDimensions(element) {
1111
+ const css = getComputedStyle$1(element);
1112
+ // In testing environments, the `width` and `height` properties are empty
1113
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
1114
+ let width = parseFloat(css.width) || 0;
1115
+ let height = parseFloat(css.height) || 0;
1116
+ const hasOffset = isHTMLElement(element);
1117
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
1118
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
1119
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
1120
+ if (shouldFallback) {
1121
+ width = offsetWidth;
1122
+ height = offsetHeight;
1123
+ }
1124
+ return {
1125
+ width,
1126
+ height,
1127
+ $: shouldFallback
1128
+ };
1129
+ }
1130
+
1131
+ function unwrapElement(element) {
1132
+ return !isElement(element) ? element.contextElement : element;
1133
+ }
1134
+
1135
+ function getScale(element) {
1136
+ const domElement = unwrapElement(element);
1137
+ if (!isHTMLElement(domElement)) {
1138
+ return createCoords(1);
1139
+ }
1140
+ const rect = domElement.getBoundingClientRect();
1141
+ const {
1142
+ width,
1143
+ height,
1144
+ $
1145
+ } = getCssDimensions(domElement);
1146
+ let x = ($ ? round(rect.width) : rect.width) / width;
1147
+ let y = ($ ? round(rect.height) : rect.height) / height;
1148
+
1149
+ // 0, NaN, or Infinity should always fallback to 1.
1150
+
1151
+ if (!x || !Number.isFinite(x)) {
1152
+ x = 1;
1153
+ }
1154
+ if (!y || !Number.isFinite(y)) {
1155
+ y = 1;
1156
+ }
1157
+ return {
1158
+ x,
1159
+ y
1160
+ };
1161
+ }
1162
+
1163
+ const noOffsets = /*#__PURE__*/createCoords(0);
1164
+ function getVisualOffsets(element) {
1165
+ const win = getWindow(element);
1166
+ if (!isWebKit() || !win.visualViewport) {
1167
+ return noOffsets;
1168
+ }
1169
+ return {
1170
+ x: win.visualViewport.offsetLeft,
1171
+ y: win.visualViewport.offsetTop
1172
+ };
1173
+ }
1174
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1175
+ if (isFixed === void 0) {
1176
+ isFixed = false;
1177
+ }
1178
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
1179
+ }
1180
+
1181
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1182
+ if (includeScale === void 0) {
1183
+ includeScale = false;
1184
+ }
1185
+ if (isFixedStrategy === void 0) {
1186
+ isFixedStrategy = false;
1187
+ }
1188
+ const clientRect = element.getBoundingClientRect();
1189
+ const domElement = unwrapElement(element);
1190
+ let scale = createCoords(1);
1191
+ if (includeScale) {
1192
+ if (offsetParent) {
1193
+ if (isElement(offsetParent)) {
1194
+ scale = getScale(offsetParent);
1195
+ }
1196
+ } else {
1197
+ scale = getScale(element);
1198
+ }
1199
+ }
1200
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1201
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
1202
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
1203
+ let width = clientRect.width / scale.x;
1204
+ let height = clientRect.height / scale.y;
1205
+ if (domElement && offsetParent) {
1206
+ const win = getWindow(domElement);
1207
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1208
+ let currentWin = win;
1209
+ let currentIFrame = getFrameElement(currentWin);
1210
+ while (currentIFrame && offsetWin !== currentWin) {
1211
+ const iframeScale = getScale(currentIFrame);
1212
+ const iframeRect = currentIFrame.getBoundingClientRect();
1213
+ const css = getComputedStyle$1(currentIFrame);
1214
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1215
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1216
+ x *= iframeScale.x;
1217
+ y *= iframeScale.y;
1218
+ width *= iframeScale.x;
1219
+ height *= iframeScale.y;
1220
+ x += left;
1221
+ y += top;
1222
+ currentWin = getWindow(currentIFrame);
1223
+ currentIFrame = getFrameElement(currentWin);
1224
+ }
1225
+ }
1226
+ return rectToClientRect({
1227
+ width,
1228
+ height,
1229
+ x,
1230
+ y
1231
+ });
1232
+ }
1233
+
1234
+ // If <html> has a CSS width greater than the viewport, then this will be
1235
+ // incorrect for RTL.
1236
+ function getWindowScrollBarX(element, rect) {
1237
+ const leftScroll = getNodeScroll(element).scrollLeft;
1238
+ if (!rect) {
1239
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1240
+ }
1241
+ return rect.left + leftScroll;
1242
+ }
1243
+
1244
+ function getHTMLOffset(documentElement, scroll) {
1245
+ const htmlRect = documentElement.getBoundingClientRect();
1246
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
1247
+ const y = htmlRect.top + scroll.scrollTop;
1248
+ return {
1249
+ x,
1250
+ y
1251
+ };
1252
+ }
1253
+
1254
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1255
+ let {
1256
+ elements,
1257
+ rect,
1258
+ offsetParent,
1259
+ strategy
1260
+ } = _ref;
1261
+ const isFixed = strategy === 'fixed';
1262
+ const documentElement = getDocumentElement(offsetParent);
1263
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
1264
+ if (offsetParent === documentElement || topLayer && isFixed) {
1265
+ return rect;
1266
+ }
1267
+ let scroll = {
1268
+ scrollLeft: 0,
1269
+ scrollTop: 0
1270
+ };
1271
+ let scale = createCoords(1);
1272
+ const offsets = createCoords(0);
1273
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1274
+ if (isOffsetParentAnElement || !isFixed) {
1275
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1276
+ scroll = getNodeScroll(offsetParent);
1277
+ }
1278
+ if (isOffsetParentAnElement) {
1279
+ const offsetRect = getBoundingClientRect(offsetParent);
1280
+ scale = getScale(offsetParent);
1281
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1282
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1283
+ }
1284
+ }
1285
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1286
+ return {
1287
+ width: rect.width * scale.x,
1288
+ height: rect.height * scale.y,
1289
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1290
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1291
+ };
1292
+ }
1293
+
1294
+ function getClientRects(element) {
1295
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
1296
+ }
1297
+
1298
+ // Gets the entire size of the scrollable document area, even extending outside
1299
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1300
+ function getDocumentRect(html) {
1301
+ const scroll = getNodeScroll(html);
1302
+ const body = html.ownerDocument.body;
1303
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1304
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1305
+ let x = -scroll.scrollLeft + getWindowScrollBarX(html);
1306
+ const y = -scroll.scrollTop;
1307
+ if (getComputedStyle$1(body).direction === 'rtl') {
1308
+ x += max(html.clientWidth, body.clientWidth) - width;
1309
+ }
1310
+ return {
1311
+ width,
1312
+ height,
1313
+ x,
1314
+ y
1315
+ };
1316
+ }
1317
+
1318
+ // Safety check: ensure the scrollbar space is reasonable in case this
1319
+ // calculation is affected by unusual styles.
1320
+ // Most scrollbars leave 15-18px of space.
1321
+ const SCROLLBAR_MAX = 25;
1322
+ function getViewportRect(element, strategy, rootBoundary) {
1323
+ if (rootBoundary === void 0) {
1324
+ rootBoundary = 'viewport';
1325
+ }
1326
+ const isLayoutViewport = rootBoundary === 'layoutViewport';
1327
+ const win = getWindow(element);
1328
+ const html = getDocumentElement(element);
1329
+ const visualViewport = win.visualViewport;
1330
+ let width = html.clientWidth;
1331
+ let height = html.clientHeight;
1332
+ let x = 0;
1333
+ let y = 0;
1334
+ if (visualViewport) {
1335
+ // Client coordinates are relative to the layout viewport, except in
1336
+ // WebKit with an `absolute` strategy, where they are relative to the
1337
+ // visual viewport.
1338
+ const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';
1339
+ if (isLayoutViewport) {
1340
+ if (!layoutRelativeClientCoords) {
1341
+ x = -visualViewport.offsetLeft;
1342
+ y = -visualViewport.offsetTop;
1343
+ }
1344
+ } else {
1345
+ width = visualViewport.width;
1346
+ height = visualViewport.height;
1347
+ if (layoutRelativeClientCoords) {
1348
+ x = visualViewport.offsetLeft;
1349
+ y = visualViewport.offsetTop;
1350
+ }
1351
+ }
1352
+ }
1353
+ const windowScrollbarX = getWindowScrollBarX(html);
1354
+ // `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks
1355
+ // the visual width but isn't reflected in `html.clientWidth`, so subtract it.
1356
+ // Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also
1357
+ // reserves an empty inline-start gutter that clips nothing, so exclude just
1358
+ // the one scrollbar-side gutter — halve the measured (two-gutter) total. A
1359
+ // left-side scrollbar (`windowScrollbarX > 0`) is already handled by
1360
+ // `getHTMLOffset`/`visualViewport.width`; skip it here.
1361
+ if (windowScrollbarX <= 0) {
1362
+ const doc = html.ownerDocument;
1363
+ const body = doc.body;
1364
+ const bodyStyles = getComputedStyle(body);
1365
+ const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
1366
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
1367
+ const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;
1368
+ if (gutter <= SCROLLBAR_MAX) {
1369
+ width -= gutter;
1370
+ }
1371
+ }
1372
+ return {
1373
+ width,
1374
+ height,
1375
+ x,
1376
+ y
1377
+ };
1378
+ }
1379
+
1380
+ // Returns the inner client rect, subtracting scrollbars if present.
1381
+ function getInnerBoundingClientRect(element, strategy) {
1382
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1383
+ const top = clientRect.top + element.clientTop;
1384
+ const left = clientRect.left + element.clientLeft;
1385
+ const scale = getScale(element);
1386
+ const width = element.clientWidth * scale.x;
1387
+ const height = element.clientHeight * scale.y;
1388
+ const x = left * scale.x;
1389
+ const y = top * scale.y;
1390
+ return {
1391
+ width,
1392
+ height,
1393
+ x,
1394
+ y
1395
+ };
1396
+ }
1397
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1398
+ let rect;
1399
+ if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {
1400
+ rect = getViewportRect(element, strategy, clippingAncestor);
1401
+ } else if (clippingAncestor === 'document') {
1402
+ rect = getDocumentRect(getDocumentElement(element));
1403
+ } else if (isElement(clippingAncestor)) {
1404
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1405
+ } else {
1406
+ const visualOffsets = getVisualOffsets(element);
1407
+ rect = {
1408
+ x: clippingAncestor.x - visualOffsets.x,
1409
+ y: clippingAncestor.y - visualOffsets.y,
1410
+ width: clippingAncestor.width,
1411
+ height: clippingAncestor.height
1412
+ };
1413
+ }
1414
+ return rectToClientRect(rect);
1415
+ }
1416
+
1417
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
1418
+ // clipping (or hiding) child elements. This returns all clipping ancestors
1419
+ // of the given element up the tree.
1420
+ function getClippingElementAncestors(element, cache) {
1421
+ const cachedResult = cache.get(element);
1422
+ if (cachedResult) {
1423
+ return cachedResult;
1424
+ }
1425
+ let result = getOverflowAncestors(element, []).filter(el => isElement(el) && getNodeName(el) !== 'body');
1426
+ let lastKeptComputedStyle = null;
1427
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1428
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
1429
+
1430
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1431
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1432
+ const computedStyle = getComputedStyle$1(currentNode);
1433
+ const currentNodeIsContaining = isContainingBlock(currentNode);
1434
+ // Position of the containing block chain below the current node. A fixed
1435
+ // element whose containing block hasn't been found yet is a fixed chain.
1436
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';
1437
+
1438
+ // A non-containing ancestor does not clip the element when the chain
1439
+ // below it escapes it: a fixed chain escapes all ancestors up to the
1440
+ // next containing block, an absolute chain escapes static ancestors.
1441
+ const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');
1442
+ if (shouldDropCurrentNode) {
1443
+ // Drop non-containing blocks.
1444
+ result = result.filter(ancestor => ancestor !== currentNode);
1445
+ } else {
1446
+ // The kept node carries the chain position for the next iteration.
1447
+ lastKeptComputedStyle = computedStyle;
1448
+ }
1449
+ currentNode = getParentNode(currentNode);
1450
+ }
1451
+ cache.set(element, result);
1452
+ return result;
1453
+ }
1454
+
1455
+ // Gets the maximum area that the element is visible in due to any number of
1456
+ // clipping ancestors.
1457
+ function getClippingRect(_ref) {
1458
+ let {
1459
+ element,
1460
+ boundary,
1461
+ rootBoundary,
1462
+ strategy
1463
+ } = _ref;
1464
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1465
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1466
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
1467
+ let top = firstRect.top;
1468
+ let right = firstRect.right;
1469
+ let bottom = firstRect.bottom;
1470
+ let left = firstRect.left;
1471
+ for (let i = 1; i < clippingAncestors.length; i++) {
1472
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
1473
+ top = max(rect.top, top);
1474
+ right = min(rect.right, right);
1475
+ bottom = min(rect.bottom, bottom);
1476
+ left = max(rect.left, left);
1477
+ }
1478
+ return {
1479
+ width: right - left,
1480
+ height: bottom - top,
1481
+ x: left,
1482
+ y: top
1483
+ };
1484
+ }
1485
+
1486
+ function getDimensions(element) {
1487
+ const {
1488
+ width,
1489
+ height
1490
+ } = getCssDimensions(element);
1491
+ return {
1492
+ width,
1493
+ height
1494
+ };
1495
+ }
1496
+
1497
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1498
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1499
+ const documentElement = getDocumentElement(offsetParent);
1500
+ const isFixed = strategy === 'fixed';
1501
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1502
+ let scroll = {
1503
+ scrollLeft: 0,
1504
+ scrollTop: 0
1505
+ };
1506
+ const offsets = createCoords(0);
1507
+ if (isOffsetParentAnElement || !isFixed) {
1508
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1509
+ scroll = getNodeScroll(offsetParent);
1510
+ }
1511
+ if (isOffsetParentAnElement) {
1512
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1513
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1514
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1515
+ }
1516
+ }
1517
+
1518
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1519
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1520
+ if (!isOffsetParentAnElement && documentElement) {
1521
+ offsets.x = getWindowScrollBarX(documentElement);
1522
+ }
1523
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1524
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1525
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1526
+ return {
1527
+ x,
1528
+ y,
1529
+ width: rect.width,
1530
+ height: rect.height
1531
+ };
1532
+ }
1533
+
1534
+ function isStaticPositioned(element) {
1535
+ return getComputedStyle$1(element).position === 'static';
1536
+ }
1537
+
1538
+ function getTrueOffsetParent(element, polyfill) {
1539
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1540
+ return null;
1541
+ }
1542
+ if (polyfill) {
1543
+ return polyfill(element);
1544
+ }
1545
+ let rawOffsetParent = element.offsetParent;
1546
+
1547
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
1548
+ // while Chrome and Safari return the <body> element. The <body> element must
1549
+ // be used to perform the correct calculations even if the <html> element is
1550
+ // non-static.
1551
+ if (getDocumentElement(element) === rawOffsetParent) {
1552
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
1553
+ }
1554
+ return rawOffsetParent;
1555
+ }
1556
+
1557
+ // Gets the closest ancestor positioned element. Handles some edge cases,
1558
+ // such as table ancestors and cross browser bugs.
1559
+ function getOffsetParent(element, polyfill) {
1560
+ const win = getWindow(element);
1561
+ if (isTopLayer(element)) {
1562
+ return win;
1563
+ }
1564
+ if (!isHTMLElement(element)) {
1565
+ let svgOffsetParent = getParentNode(element);
1566
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1567
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1568
+ return svgOffsetParent;
1569
+ }
1570
+ svgOffsetParent = getParentNode(svgOffsetParent);
1571
+ }
1572
+ return win;
1573
+ }
1574
+ let offsetParent = getTrueOffsetParent(element, polyfill);
1575
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1576
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1577
+ }
1578
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1579
+ return win;
1580
+ }
1581
+ return offsetParent || getContainingBlock(element) || win;
1582
+ }
1583
+
1584
+ const getElementRects = async function (data) {
1585
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1586
+ const getDimensionsFn = this.getDimensions;
1587
+ const floatingDimensions = await getDimensionsFn(data.floating);
1588
+ return {
1589
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1590
+ floating: {
1591
+ x: 0,
1592
+ y: 0,
1593
+ width: floatingDimensions.width,
1594
+ height: floatingDimensions.height
1595
+ }
1596
+ };
1597
+ };
1598
+
1599
+ function isRTL(element) {
1600
+ return getComputedStyle$1(element).direction === 'rtl';
1601
+ }
1602
+
1603
+ const platform = {
1604
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1605
+ getDocumentElement,
1606
+ getClippingRect,
1607
+ getOffsetParent,
1608
+ getElementRects,
1609
+ getClientRects,
1610
+ getDimensions,
1611
+ getScale,
1612
+ isElement,
1613
+ isRTL
1614
+ };
1615
+
1616
+ /**
1617
+ * Modifies the placement by translating the floating element along the
1618
+ * specified axes.
1619
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
1620
+ * object may be passed.
1621
+ * @see https://floating-ui.com/docs/offset
1622
+ */
1623
+ const offset = offset$1;
1624
+
1625
+ /**
1626
+ * Optimizes the visibility of the floating element by shifting it in order to
1627
+ * keep it in view when it will overflow the clipping boundary.
1628
+ * @see https://floating-ui.com/docs/shift
1629
+ */
1630
+ const shift = shift$1;
1631
+
1632
+ /**
1633
+ * Optimizes the visibility of the floating element by flipping the `placement`
1634
+ * in order to keep it in view when the preferred placement(s) will overflow the
1635
+ * clipping boundary. Alternative to `autoPlacement`.
1636
+ * @see https://floating-ui.com/docs/flip
1637
+ */
1638
+ const flip = flip$1;
1639
+
1640
+ /**
1641
+ * Provides data that allows you to change the size of the floating element —
1642
+ * for instance, prevent it from overflowing the clipping boundary or match the
1643
+ * width of the reference element.
1644
+ * @see https://floating-ui.com/docs/size
1645
+ */
1646
+ const size = size$1;
1647
+
1648
+ /**
1649
+ * Provides data to hide the floating element in applicable situations, such as
1650
+ * when it is not in the same clipping context as the reference element.
1651
+ * @see https://floating-ui.com/docs/hide
1652
+ */
1653
+ const hide = hide$1;
1654
+
1655
+ /**
1656
+ * Provides data to position an inner element of the floating element so that it
1657
+ * appears centered to the reference element.
1658
+ * @see https://floating-ui.com/docs/arrow
1659
+ */
1660
+ const arrow = arrow$1;
1661
+
1662
+ /**
1663
+ * Built-in `limiter` that will stop `shift()` at a certain point.
1664
+ */
1665
+ const limitShift = limitShift$1;
1666
+
1667
+ /**
1668
+ * Computes the `x` and `y` coordinates that will place the floating element
1669
+ * next to a given reference element.
1670
+ */
1671
+ const computePosition = (reference, floating, options) => {
1672
+ // This caches the expensive `getClippingElementAncestors` function so that
1673
+ // multiple lifecycle resets re-use the same result. It only lives for a
1674
+ // single call. If other functions become expensive, we can add them as well.
1675
+ const cache = new Map();
1676
+ const mergedOptions = options != null ? options : {};
1677
+ const platformWithCache = {
1678
+ ...platform,
1679
+ ...mergedOptions.platform,
1680
+ _c: cache
1681
+ };
1682
+ return computePosition$1(reference, floating, {
1683
+ ...mergedOptions,
1684
+ platform: platformWithCache
1685
+ });
1686
+ };
1687
+
1688
+ function Bell($$renderer, $$props) {
1689
+ let { $$slots, $$events, ...props } = $$props;
1690
+ const iconData = {
1691
+ "name": "bell",
1692
+ "size": 24,
1693
+ "node": [
1694
+ ["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }],
1695
+ [
1696
+ "path",
1697
+ {
1698
+ "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"
1699
+ }
1700
+ ]
1701
+ ]
1702
+ };
1703
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
1704
+ }
1705
+ function Gauge($$renderer, $$props) {
1706
+ let { $$slots, $$events, ...props } = $$props;
1707
+ const iconData = {
1708
+ "name": "gauge",
1709
+ "size": 24,
1710
+ "node": [
1711
+ ["path", { "d": "m12 14 4-4" }],
1712
+ ["path", { "d": "M3.34 19a10 10 0 1 1 17.32 0" }]
1713
+ ]
1714
+ };
1715
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
1716
+ }
1717
+ function Puzzle($$renderer, $$props) {
1718
+ let { $$slots, $$events, ...props } = $$props;
1719
+ const iconData = {
1720
+ "name": "puzzle",
1721
+ "size": 24,
1722
+ "node": [
1723
+ [
1724
+ "path",
1725
+ {
1726
+ "d": "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"
1727
+ }
1728
+ ]
1729
+ ]
1730
+ };
1731
+ Icon($$renderer, spread_props([props, { icon: iconData }]));
1732
+ }
1733
+ function isFunction(value) {
1734
+ return typeof value === "function";
1735
+ }
1736
+ function get$1(value) {
1737
+ if (isFunction(value)) {
1738
+ return value();
1739
+ }
1740
+ return value;
1741
+ }
1742
+ class ElementSize {
1743
+ // no need to use `$state` here since we are using createSubscriber
1744
+ #size = { width: 0, height: 0 };
1745
+ #observed = false;
1746
+ #options;
1747
+ #node;
1748
+ #window;
1749
+ // we use a derived here to extract the width so that if the width doesn't change we don't get a state update
1750
+ // which we would get if we would just use a getter since the version of the subscriber will be changing
1751
+ #width = derived(() => {
1752
+ this.#subscribe()?.();
1753
+ return this.getSize().width;
1754
+ });
1755
+ // we use a derived here to extract the height so that if the height doesn't change we don't get a state update
1756
+ // which we would get if we would just use a getter since the version of the subscriber will be changing
1757
+ #height = derived(() => {
1758
+ this.#subscribe()?.();
1759
+ return this.getSize().height;
1760
+ });
1761
+ // we need to use a derived here because the class will be created before the node is bound to the ref
1762
+ #subscribe = derived(() => {
1763
+ const node$ = get$1(this.#node);
1764
+ if (!node$) return;
1765
+ return createSubscriber();
1766
+ });
1767
+ constructor(node, options = { box: "border-box" }) {
1768
+ this.#window = options.window ?? defaultWindow;
1769
+ this.#options = options;
1770
+ this.#node = node;
1771
+ this.#size = { width: 0, height: 0 };
1772
+ }
1773
+ calculateSize() {
1774
+ const element = get$1(this.#node);
1775
+ if (!element || !this.#window) {
1776
+ return;
1777
+ }
1778
+ const offsetWidth = element.offsetWidth;
1779
+ const offsetHeight = element.offsetHeight;
1780
+ if (this.#options.box === "border-box") {
1781
+ return { width: offsetWidth, height: offsetHeight };
1782
+ }
1783
+ const style = this.#window.getComputedStyle(element);
1784
+ const paddingWidth = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
1785
+ const paddingHeight = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);
1786
+ const borderWidth = parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
1787
+ const borderHeight = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
1788
+ const contentWidth = offsetWidth - paddingWidth - borderWidth;
1789
+ const contentHeight = offsetHeight - paddingHeight - borderHeight;
1790
+ return { width: contentWidth, height: contentHeight };
1791
+ }
1792
+ getSize() {
1793
+ return this.#observed ? this.#size : this.calculateSize() ?? this.#size;
1794
+ }
1795
+ get current() {
1796
+ this.#subscribe()?.();
1797
+ return this.getSize();
1798
+ }
1799
+ get width() {
1800
+ return this.#width();
1801
+ }
1802
+ get height() {
1803
+ return this.#height();
1804
+ }
1805
+ }
1806
+ const FloatingRootContext = new Context("Floating.Root");
1807
+ const FloatingTooltipRootContext = new Context("Floating.Root");
1808
+ class FloatingRootState {
1809
+ static create(tooltip = false) {
1810
+ return tooltip ? FloatingTooltipRootContext.set(new FloatingRootState()) : FloatingRootContext.set(new FloatingRootState());
1811
+ }
1812
+ anchorNode = simpleBox(null);
1813
+ customAnchorNode = simpleBox(null);
1814
+ triggerNode = simpleBox(null);
1815
+ constructor() {
1816
+ }
1817
+ }
1818
+ class FloatingAnchorState {
1819
+ static create(opts, tooltip = false) {
1820
+ return tooltip ? new FloatingAnchorState(opts, FloatingTooltipRootContext.get()) : new FloatingAnchorState(opts, FloatingRootContext.get());
1821
+ }
1822
+ opts;
1823
+ root;
1824
+ constructor(opts, root) {
1825
+ this.opts = opts;
1826
+ this.root = root;
1827
+ if (opts.virtualEl && opts.virtualEl.current) {
1828
+ root.triggerNode = boxFrom(opts.virtualEl.current);
1829
+ } else {
1830
+ root.triggerNode = opts.ref;
1831
+ }
1832
+ }
1833
+ }
1834
+ function Floating_layer($$renderer, $$props) {
1835
+ $$renderer.component(($$renderer2) => {
1836
+ let { children, tooltip = false } = $$props;
1837
+ FloatingRootState.create(tooltip);
1838
+ children?.($$renderer2);
1839
+ $$renderer2.push(`<!---->`);
1840
+ });
1841
+ }
1842
+ function get(valueOrGetValue) {
1843
+ return typeof valueOrGetValue === "function" ? valueOrGetValue() : valueOrGetValue;
1844
+ }
1845
+ function getDPR(element) {
1846
+ if (typeof window === "undefined") return 1;
1847
+ const win = element.ownerDocument.defaultView || window;
1848
+ return win.devicePixelRatio || 1;
1849
+ }
1850
+ function roundByDPR(element, value) {
1851
+ const dpr = getDPR(element);
1852
+ return Math.round(value * dpr) / dpr;
1853
+ }
1854
+ function getFloatingContentCSSVars(name) {
1855
+ return {
1856
+ [`--bits-${name}-content-transform-origin`]: `var(--bits-floating-transform-origin)`,
1857
+ [`--bits-${name}-content-available-width`]: `var(--bits-floating-available-width)`,
1858
+ [`--bits-${name}-content-available-height`]: `var(--bits-floating-available-height)`,
1859
+ [`--bits-${name}-anchor-width`]: `var(--bits-floating-anchor-width)`,
1860
+ [`--bits-${name}-anchor-height`]: `var(--bits-floating-anchor-height)`
1861
+ };
1862
+ }
1863
+ function Floating_layer_anchor($$renderer, $$props) {
1864
+ $$renderer.component(($$renderer2) => {
1865
+ let { id, children, virtualEl, ref, tooltip = false } = $$props;
1866
+ FloatingAnchorState.create(
1867
+ {
1868
+ id: boxWith(() => id),
1869
+ virtualEl: boxWith(() => virtualEl),
1870
+ ref
1871
+ },
1872
+ tooltip
1873
+ );
1874
+ children?.($$renderer2);
1875
+ $$renderer2.push(`<!---->`);
1876
+ });
1877
+ }
1878
+ function useFloating(options) {
1879
+ const openOption = derived(() => get(options.open) ?? true);
1880
+ const middlewareOption = derived(() => get(options.middleware));
1881
+ const transformOption = derived(() => get(options.transform) ?? true);
1882
+ const placementOption = derived(() => get(options.placement) ?? "bottom");
1883
+ const strategyOption = derived(() => get(options.strategy) ?? "absolute");
1884
+ const sideOffsetOption = derived(() => get(options.sideOffset) ?? 0);
1885
+ const alignOffsetOption = derived(() => get(options.alignOffset) ?? 0);
1886
+ const reference = options.reference;
1887
+ let x = 0;
1888
+ let y = 0;
1889
+ const floating = simpleBox(null);
1890
+ let strategy = strategyOption();
1891
+ let placement = placementOption();
1892
+ let middlewareData = {};
1893
+ let isPositioned = false;
1894
+ let updateRequestId = 0;
1895
+ const floatingStyles = derived(() => {
1896
+ const xVal = floating.current ? roundByDPR(floating.current, x) : x;
1897
+ const yVal = floating.current ? roundByDPR(floating.current, y) : y;
1898
+ if (transformOption()) {
1899
+ return {
1900
+ position: strategy,
1901
+ left: "0",
1902
+ top: "0",
1903
+ transform: `translate(${xVal}px, ${yVal}px)`,
1904
+ ...floating.current && getDPR(floating.current) >= 1.5 && { willChange: "transform" }
1905
+ };
1906
+ }
1907
+ return { position: strategy, left: `${xVal}px`, top: `${yVal}px` };
1908
+ });
1909
+ function update() {
1910
+ if (reference.current === null || floating.current === null) return;
1911
+ const referenceNode = reference.current;
1912
+ const floatingNode = floating.current;
1913
+ const requestId = ++updateRequestId;
1914
+ computePosition(referenceNode, floatingNode, {
1915
+ middleware: middlewareOption(),
1916
+ placement: placementOption(),
1917
+ strategy: strategyOption()
1918
+ }).then((position) => {
1919
+ if (requestId !== updateRequestId) return;
1920
+ if (reference.current !== referenceNode || floating.current !== floatingNode) return;
1921
+ const referenceHidden = isReferenceHidden(referenceNode);
1922
+ if (referenceHidden) {
1923
+ middlewareData = {
1924
+ ...middlewareData,
1925
+ hide: {
1926
+ // oxlint-disable-next-line no-explicit-any
1927
+ ...middlewareData.hide,
1928
+ referenceHidden: true
1929
+ }
1930
+ };
1931
+ return;
1932
+ }
1933
+ if (!openOption() && x !== 0 && y !== 0) {
1934
+ const maxExpectedOffset = Math.max(Math.abs(sideOffsetOption()), Math.abs(alignOffsetOption()), 15);
1935
+ if (position.x <= maxExpectedOffset && position.y <= maxExpectedOffset) return;
1936
+ }
1937
+ x = position.x;
1938
+ y = position.y;
1939
+ strategy = position.strategy;
1940
+ placement = position.placement;
1941
+ middlewareData = position.middlewareData;
1942
+ isPositioned = true;
1943
+ });
1944
+ }
1945
+ return {
1946
+ floating,
1947
+ reference,
1948
+ get strategy() {
1949
+ return strategy;
1950
+ },
1951
+ get placement() {
1952
+ return placement;
1953
+ },
1954
+ get middlewareData() {
1955
+ return middlewareData;
1956
+ },
1957
+ get isPositioned() {
1958
+ return isPositioned;
1959
+ },
1960
+ get floatingStyles() {
1961
+ return floatingStyles();
1962
+ },
1963
+ get update() {
1964
+ return update;
1965
+ }
1966
+ };
1967
+ }
1968
+ function isReferenceHidden(node) {
1969
+ if (!(node instanceof Element)) return false;
1970
+ if (!node.isConnected) return true;
1971
+ if (node instanceof HTMLElement && node.hidden) return true;
1972
+ return node.getClientRects().length === 0;
1973
+ }
1974
+ const OPPOSITE_SIDE = { top: "bottom", right: "left", bottom: "top", left: "right" };
1975
+ const FloatingContentContext = new Context("Floating.Content");
1976
+ class FloatingContentState {
1977
+ static create(opts, tooltip = false) {
1978
+ return tooltip ? FloatingContentContext.set(new FloatingContentState(opts, FloatingTooltipRootContext.get())) : FloatingContentContext.set(new FloatingContentState(opts, FloatingRootContext.get()));
1979
+ }
1980
+ opts;
1981
+ root;
1982
+ // nodes
1983
+ contentRef = simpleBox(null);
1984
+ wrapperRef = simpleBox(null);
1985
+ arrowRef = simpleBox(null);
1986
+ contentAttachment = attachRef(this.contentRef);
1987
+ wrapperAttachment = attachRef(this.wrapperRef);
1988
+ arrowAttachment = attachRef(this.arrowRef);
1989
+ // ids
1990
+ arrowId = simpleBox(useId());
1991
+ #transformedStyle = derived(() => {
1992
+ if (typeof this.opts.style === "string") return cssToStyleObj(this.opts.style);
1993
+ if (!this.opts.style) return {};
1994
+ });
1995
+ #updatePositionStrategy = void 0;
1996
+ #arrowSize = new ElementSize(() => this.arrowRef.current ?? void 0);
1997
+ #arrowWidth = derived(() => this.#arrowSize?.width ?? 0);
1998
+ #arrowHeight = derived(() => this.#arrowSize?.height ?? 0);
1999
+ #desiredPlacement = derived(() => this.opts.side?.current + (this.opts.align.current !== "center" ? `-${this.opts.align.current}` : ""));
2000
+ #boundary = derived(() => Array.isArray(this.opts.collisionBoundary.current) ? this.opts.collisionBoundary.current : [this.opts.collisionBoundary.current]);
2001
+ #hasExplicitBoundaries = derived(() => this.#boundary().length > 0);
2002
+ get hasExplicitBoundaries() {
2003
+ return this.#hasExplicitBoundaries();
2004
+ }
2005
+ set hasExplicitBoundaries($$value) {
2006
+ return this.#hasExplicitBoundaries($$value);
2007
+ }
2008
+ #detectOverflowOptions = derived(() => ({
2009
+ padding: this.opts.collisionPadding.current,
2010
+ boundary: this.#boundary().filter(isNotNull),
2011
+ altBoundary: this.hasExplicitBoundaries
2012
+ }));
2013
+ get detectOverflowOptions() {
2014
+ return this.#detectOverflowOptions();
2015
+ }
2016
+ set detectOverflowOptions($$value) {
2017
+ return this.#detectOverflowOptions($$value);
2018
+ }
2019
+ #availableWidth = void 0;
2020
+ #availableHeight = void 0;
2021
+ #anchorWidth = void 0;
2022
+ #anchorHeight = void 0;
2023
+ #middleware = derived(() => [
2024
+ offset({
2025
+ mainAxis: this.opts.sideOffset.current + this.#arrowHeight(),
2026
+ alignmentAxis: this.opts.alignOffset.current
2027
+ }),
2028
+ this.opts.avoidCollisions.current && shift({
2029
+ mainAxis: true,
2030
+ crossAxis: false,
2031
+ limiter: this.opts.sticky.current === "partial" ? limitShift() : void 0,
2032
+ ...this.detectOverflowOptions
2033
+ }),
2034
+ this.opts.avoidCollisions.current && flip({ ...this.detectOverflowOptions }),
2035
+ size({
2036
+ ...this.detectOverflowOptions,
2037
+ apply: ({ rects, availableWidth, availableHeight }) => {
2038
+ const { width: anchorWidth, height: anchorHeight } = rects.reference;
2039
+ this.#availableWidth = availableWidth;
2040
+ this.#availableHeight = availableHeight;
2041
+ this.#anchorWidth = anchorWidth;
2042
+ this.#anchorHeight = anchorHeight;
2043
+ }
2044
+ }),
2045
+ this.arrowRef.current && arrow({
2046
+ element: this.arrowRef.current,
2047
+ padding: this.opts.arrowPadding.current
2048
+ }),
2049
+ transformOrigin({
2050
+ arrowWidth: this.#arrowWidth(),
2051
+ arrowHeight: this.#arrowHeight()
2052
+ }),
2053
+ this.opts.hideWhenDetached.current && hide({ strategy: "referenceHidden", ...this.detectOverflowOptions })
2054
+ ].filter(Boolean));
2055
+ get middleware() {
2056
+ return this.#middleware();
2057
+ }
2058
+ set middleware($$value) {
2059
+ return this.#middleware($$value);
2060
+ }
2061
+ floating;
2062
+ #placedSide = derived(() => getSideFromPlacement(this.floating.placement));
2063
+ get placedSide() {
2064
+ return this.#placedSide();
2065
+ }
2066
+ set placedSide($$value) {
2067
+ return this.#placedSide($$value);
2068
+ }
2069
+ #placedAlign = derived(() => getAlignFromPlacement(this.floating.placement));
2070
+ get placedAlign() {
2071
+ return this.#placedAlign();
2072
+ }
2073
+ set placedAlign($$value) {
2074
+ return this.#placedAlign($$value);
2075
+ }
2076
+ #arrowX = derived(() => this.floating.middlewareData.arrow?.x ?? 0);
2077
+ get arrowX() {
2078
+ return this.#arrowX();
2079
+ }
2080
+ set arrowX($$value) {
2081
+ return this.#arrowX($$value);
2082
+ }
2083
+ #arrowY = derived(() => this.floating.middlewareData.arrow?.y ?? 0);
2084
+ get arrowY() {
2085
+ return this.#arrowY();
2086
+ }
2087
+ set arrowY($$value) {
2088
+ return this.#arrowY($$value);
2089
+ }
2090
+ #cannotCenterArrow = derived(() => this.floating.middlewareData.arrow?.centerOffset !== 0);
2091
+ get cannotCenterArrow() {
2092
+ return this.#cannotCenterArrow();
2093
+ }
2094
+ set cannotCenterArrow($$value) {
2095
+ return this.#cannotCenterArrow($$value);
2096
+ }
2097
+ contentZIndex;
2098
+ #arrowBaseSide = derived(() => OPPOSITE_SIDE[this.placedSide]);
2099
+ get arrowBaseSide() {
2100
+ return this.#arrowBaseSide();
2101
+ }
2102
+ set arrowBaseSide($$value) {
2103
+ return this.#arrowBaseSide($$value);
2104
+ }
2105
+ #wrapperProps = derived(() => ({
2106
+ id: this.opts.wrapperId.current,
2107
+ "data-bits-floating-content-wrapper": "",
2108
+ style: {
2109
+ ...this.floating.floatingStyles,
2110
+ transform: this.floating.isPositioned ? this.floating.floatingStyles.transform : "translate(0, -200%)",
2111
+ minWidth: "max-content",
2112
+ zIndex: this.contentZIndex,
2113
+ "--bits-floating-transform-origin": `${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,
2114
+ "--bits-floating-available-width": `${this.#availableWidth}px`,
2115
+ "--bits-floating-available-height": `${this.#availableHeight}px`,
2116
+ "--bits-floating-anchor-width": `${this.#anchorWidth}px`,
2117
+ "--bits-floating-anchor-height": `${this.#anchorHeight}px`,
2118
+ ...this.floating.middlewareData.hide?.referenceHidden && { visibility: "hidden", "pointer-events": "none" },
2119
+ ...this.#transformedStyle()
2120
+ },
2121
+ dir: this.opts.dir.current,
2122
+ ...this.wrapperAttachment
2123
+ }));
2124
+ get wrapperProps() {
2125
+ return this.#wrapperProps();
2126
+ }
2127
+ set wrapperProps($$value) {
2128
+ return this.#wrapperProps($$value);
2129
+ }
2130
+ #props = derived(() => ({
2131
+ "data-side": this.placedSide,
2132
+ "data-align": this.placedAlign,
2133
+ style: styleToString({ ...this.#transformedStyle() }),
2134
+ ...this.contentAttachment
2135
+ }));
2136
+ get props() {
2137
+ return this.#props();
2138
+ }
2139
+ set props($$value) {
2140
+ return this.#props($$value);
2141
+ }
2142
+ #arrowStyle = derived(() => ({
2143
+ position: "absolute",
2144
+ left: this.arrowX ? `${this.arrowX}px` : void 0,
2145
+ top: this.arrowY ? `${this.arrowY}px` : void 0,
2146
+ [this.arrowBaseSide]: 0,
2147
+ "transform-origin": { top: "", right: "0 0", bottom: "center 0", left: "100% 0" }[this.placedSide],
2148
+ transform: {
2149
+ top: "translateY(100%)",
2150
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
2151
+ bottom: "rotate(180deg)",
2152
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
2153
+ }[this.placedSide],
2154
+ visibility: this.cannotCenterArrow ? "hidden" : void 0
2155
+ }));
2156
+ get arrowStyle() {
2157
+ return this.#arrowStyle();
2158
+ }
2159
+ set arrowStyle($$value) {
2160
+ return this.#arrowStyle($$value);
2161
+ }
2162
+ constructor(opts, root) {
2163
+ this.opts = opts;
2164
+ this.root = root;
2165
+ this.#updatePositionStrategy = opts.updatePositionStrategy;
2166
+ if (opts.customAnchor) {
2167
+ this.root.customAnchorNode.current = opts.customAnchor.current;
2168
+ }
2169
+ watch(() => opts.customAnchor.current, (customAnchor) => {
2170
+ this.root.customAnchorNode.current = customAnchor;
2171
+ });
2172
+ this.floating = useFloating({
2173
+ strategy: () => this.opts.strategy.current,
2174
+ placement: () => this.#desiredPlacement(),
2175
+ middleware: () => this.middleware,
2176
+ reference: this.root.anchorNode,
2177
+ open: () => this.opts.enabled.current,
2178
+ sideOffset: () => this.opts.sideOffset.current,
2179
+ alignOffset: () => this.opts.alignOffset.current
2180
+ });
2181
+ watch(() => this.contentRef.current, (contentNode) => {
2182
+ if (!contentNode || !this.opts.enabled.current) return;
2183
+ const win = getWindow$1(contentNode);
2184
+ const rafId = win.requestAnimationFrame(() => {
2185
+ if (this.contentRef.current !== contentNode || !this.opts.enabled.current) return;
2186
+ const zIndex = win.getComputedStyle(contentNode).zIndex;
2187
+ if (zIndex !== this.contentZIndex) {
2188
+ this.contentZIndex = zIndex;
2189
+ }
2190
+ });
2191
+ return () => {
2192
+ win.cancelAnimationFrame(rafId);
2193
+ };
2194
+ });
2195
+ }
2196
+ }
2197
+ class FloatingArrowState {
2198
+ static create(opts) {
2199
+ return new FloatingArrowState(opts, FloatingContentContext.get());
2200
+ }
2201
+ opts;
2202
+ content;
2203
+ constructor(opts, content) {
2204
+ this.opts = opts;
2205
+ this.content = content;
2206
+ }
2207
+ #props = derived(() => ({
2208
+ id: this.opts.id.current,
2209
+ style: this.content.arrowStyle,
2210
+ "data-side": this.content.placedSide,
2211
+ ...this.content.arrowAttachment
2212
+ }));
2213
+ get props() {
2214
+ return this.#props();
2215
+ }
2216
+ set props($$value) {
2217
+ return this.#props($$value);
2218
+ }
2219
+ }
2220
+ function transformOrigin(options) {
2221
+ return {
2222
+ name: "transformOrigin",
2223
+ options,
2224
+ fn(data) {
2225
+ const { placement, rects, middlewareData } = data;
2226
+ const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
2227
+ const isArrowHidden = cannotCenterArrow;
2228
+ const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
2229
+ const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
2230
+ const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
2231
+ const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
2232
+ const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
2233
+ const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
2234
+ let x = "";
2235
+ let y = "";
2236
+ if (placedSide === "bottom") {
2237
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
2238
+ y = `${-arrowHeight}px`;
2239
+ } else if (placedSide === "top") {
2240
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
2241
+ y = `${rects.floating.height + arrowHeight}px`;
2242
+ } else if (placedSide === "right") {
2243
+ x = `${-arrowHeight}px`;
2244
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
2245
+ } else if (placedSide === "left") {
2246
+ x = `${rects.floating.width + arrowHeight}px`;
2247
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
2248
+ }
2249
+ return { data: { x, y } };
2250
+ }
2251
+ };
2252
+ }
2253
+ function getSideAndAlignFromPlacement(placement) {
2254
+ const [side, align = "center"] = placement.split("-");
2255
+ return [side, align];
2256
+ }
2257
+ function getSideFromPlacement(placement) {
2258
+ return getSideAndAlignFromPlacement(placement)[0];
2259
+ }
2260
+ function getAlignFromPlacement(placement) {
2261
+ return getSideAndAlignFromPlacement(placement)[1];
2262
+ }
2263
+ function Floating_layer_content($$renderer, $$props) {
2264
+ $$renderer.component(($$renderer2) => {
2265
+ let {
2266
+ content,
2267
+ side = "bottom",
2268
+ sideOffset = 0,
2269
+ align = "center",
2270
+ alignOffset = 0,
2271
+ id,
2272
+ arrowPadding = 0,
2273
+ avoidCollisions = true,
2274
+ collisionBoundary = [],
2275
+ collisionPadding = 0,
2276
+ hideWhenDetached = false,
2277
+ onPlaced = () => {
2278
+ },
2279
+ sticky = "partial",
2280
+ updatePositionStrategy = "optimized",
2281
+ strategy = "fixed",
2282
+ dir = "ltr",
2283
+ style = {},
2284
+ wrapperId = useId(),
2285
+ customAnchor = null,
2286
+ enabled,
2287
+ tooltip = false
2288
+ } = $$props;
2289
+ const contentState = FloatingContentState.create(
2290
+ {
2291
+ side: boxWith(() => side),
2292
+ sideOffset: boxWith(() => sideOffset),
2293
+ align: boxWith(() => align),
2294
+ alignOffset: boxWith(() => alignOffset),
2295
+ id: boxWith(() => id),
2296
+ arrowPadding: boxWith(() => arrowPadding),
2297
+ avoidCollisions: boxWith(() => avoidCollisions),
2298
+ collisionBoundary: boxWith(() => collisionBoundary),
2299
+ collisionPadding: boxWith(() => collisionPadding),
2300
+ hideWhenDetached: boxWith(() => hideWhenDetached),
2301
+ onPlaced: boxWith(() => onPlaced),
2302
+ sticky: boxWith(() => sticky),
2303
+ updatePositionStrategy: boxWith(() => updatePositionStrategy),
2304
+ strategy: boxWith(() => strategy),
2305
+ dir: boxWith(() => dir),
2306
+ style: boxWith(() => style),
2307
+ enabled: boxWith(() => enabled),
2308
+ wrapperId: boxWith(() => wrapperId),
2309
+ customAnchor: boxWith(() => customAnchor)
2310
+ },
2311
+ tooltip
2312
+ );
2313
+ const mergedProps = derived(() => mergeProps(contentState.wrapperProps, { style: { pointerEvents: "auto" } }));
2314
+ content?.($$renderer2, { props: contentState.props, wrapperProps: mergedProps() });
2315
+ $$renderer2.push(`<!---->`);
2316
+ });
2317
+ }
2318
+ function Floating_layer_content_static($$renderer, $$props) {
2319
+ $$renderer.component(($$renderer2) => {
2320
+ let { content } = $$props;
2321
+ content?.($$renderer2, { props: {}, wrapperProps: {} });
2322
+ $$renderer2.push(`<!---->`);
2323
+ });
2324
+ }
2325
+ function Popper_content($$renderer, $$props) {
2326
+ let {
2327
+ content,
2328
+ isStatic = false,
2329
+ onPlaced,
2330
+ $$slots,
2331
+ $$events,
2332
+ ...restProps
2333
+ } = $$props;
2334
+ if (isStatic) {
2335
+ $$renderer.push("<!--[0-->");
2336
+ Floating_layer_content_static($$renderer, { content });
2337
+ } else {
2338
+ $$renderer.push("<!--[-1-->");
2339
+ Floating_layer_content($$renderer, spread_props([{ content, onPlaced }, restProps]));
2340
+ }
2341
+ $$renderer.push(`<!--]-->`);
2342
+ }
2343
+ function Popper_layer_inner($$renderer, $$props) {
2344
+ $$renderer.component(($$renderer2) => {
2345
+ let {
2346
+ popper,
2347
+ onEscapeKeydown,
2348
+ escapeKeydownBehavior,
2349
+ preventOverflowTextSelection,
2350
+ id,
2351
+ onPointerDown,
2352
+ onPointerUp,
2353
+ side,
2354
+ sideOffset,
2355
+ align,
2356
+ alignOffset,
2357
+ arrowPadding,
2358
+ avoidCollisions,
2359
+ collisionBoundary,
2360
+ collisionPadding,
2361
+ sticky,
2362
+ hideWhenDetached,
2363
+ updatePositionStrategy,
2364
+ strategy,
2365
+ dir,
2366
+ preventScroll,
2367
+ wrapperId,
2368
+ style,
2369
+ onPlaced,
2370
+ onInteractOutside,
2371
+ onCloseAutoFocus,
2372
+ onOpenAutoFocus,
2373
+ onFocusOutside,
2374
+ interactOutsideBehavior = "close",
2375
+ loop,
2376
+ trapFocus = true,
2377
+ isValidEvent = () => false,
2378
+ customAnchor = null,
2379
+ isStatic = false,
2380
+ enabled,
2381
+ forceMount,
2382
+ ref,
2383
+ tooltip = false,
2384
+ contentPointerEvents = "auto",
2385
+ $$slots,
2386
+ $$events,
2387
+ ...restProps
2388
+ } = $$props;
2389
+ const resolvedPreventScroll = derived(() => preventScroll ?? true);
2390
+ const effectiveStrategy = derived(() => strategy ?? (resolvedPreventScroll() ? "fixed" : "absolute"));
2391
+ {
2392
+ let content = function($$renderer3, { props: floatingProps, wrapperProps }) {
2393
+ if (forceMount && enabled) {
2394
+ $$renderer3.push("<!--[0-->");
2395
+ Scroll_lock($$renderer3, { preventScroll: resolvedPreventScroll() });
2396
+ } else if (!forceMount) {
2397
+ $$renderer3.push("<!--[1-->");
2398
+ Scroll_lock($$renderer3, { preventScroll: resolvedPreventScroll() });
2399
+ } else {
2400
+ $$renderer3.push("<!--[-1-->");
2401
+ }
2402
+ $$renderer3.push(`<!--]--> `);
2403
+ {
2404
+ let focusScope = function($$renderer4, { props: focusScopeProps }) {
2405
+ Escape_layer($$renderer4, {
2406
+ onEscapeKeydown,
2407
+ escapeKeydownBehavior,
2408
+ enabled,
2409
+ ref,
2410
+ children: ($$renderer5) => {
2411
+ {
2412
+ let children = function($$renderer6, { props: dismissibleProps }) {
2413
+ Text_selection_layer($$renderer6, {
2414
+ id,
2415
+ preventOverflowTextSelection,
2416
+ onPointerDown,
2417
+ onPointerUp,
2418
+ enabled,
2419
+ ref,
2420
+ children: ($$renderer7) => {
2421
+ popper?.($$renderer7, {
2422
+ props: mergeProps(restProps, floatingProps, dismissibleProps, focusScopeProps, { id, style: { pointerEvents: contentPointerEvents } }),
2423
+ wrapperProps
2424
+ });
2425
+ $$renderer7.push(`<!---->`);
2426
+ }
2427
+ });
2428
+ };
2429
+ Dismissible_layer($$renderer5, {
2430
+ id,
2431
+ onInteractOutside,
2432
+ onFocusOutside,
2433
+ interactOutsideBehavior,
2434
+ isValidEvent,
2435
+ enabled,
2436
+ ref,
2437
+ children
2438
+ });
2439
+ }
2440
+ }
2441
+ });
2442
+ };
2443
+ Focus_scope($$renderer3, {
2444
+ onOpenAutoFocus,
2445
+ onCloseAutoFocus,
2446
+ loop,
2447
+ enabled,
2448
+ trapFocus,
2449
+ ref,
2450
+ focusScope
2451
+ });
2452
+ }
2453
+ $$renderer3.push(`<!---->`);
2454
+ };
2455
+ Popper_content($$renderer2, {
2456
+ isStatic,
2457
+ id,
2458
+ side,
2459
+ sideOffset,
2460
+ align,
2461
+ alignOffset,
2462
+ arrowPadding,
2463
+ avoidCollisions,
2464
+ collisionBoundary,
2465
+ collisionPadding,
2466
+ sticky,
2467
+ hideWhenDetached,
2468
+ updatePositionStrategy,
2469
+ strategy: effectiveStrategy(),
2470
+ dir,
2471
+ wrapperId,
2472
+ style,
2473
+ onPlaced,
2474
+ customAnchor,
2475
+ enabled,
2476
+ tooltip,
2477
+ content,
2478
+ $$slots: { content: true }
2479
+ });
2480
+ }
2481
+ });
2482
+ }
2483
+ function Popper_layer($$renderer, $$props) {
2484
+ let {
2485
+ popper,
2486
+ open,
2487
+ onEscapeKeydown,
2488
+ escapeKeydownBehavior,
2489
+ preventOverflowTextSelection,
2490
+ id,
2491
+ onPointerDown,
2492
+ onPointerUp,
2493
+ side,
2494
+ sideOffset,
2495
+ align,
2496
+ alignOffset,
2497
+ arrowPadding,
2498
+ avoidCollisions,
2499
+ collisionBoundary,
2500
+ collisionPadding,
2501
+ sticky,
2502
+ hideWhenDetached,
2503
+ updatePositionStrategy,
2504
+ strategy,
2505
+ dir,
2506
+ preventScroll,
2507
+ wrapperId,
2508
+ style,
2509
+ onPlaced,
2510
+ onInteractOutside,
2511
+ onCloseAutoFocus,
2512
+ onOpenAutoFocus,
2513
+ onFocusOutside,
2514
+ interactOutsideBehavior = "close",
2515
+ loop,
2516
+ trapFocus = true,
2517
+ isValidEvent = () => false,
2518
+ customAnchor = null,
2519
+ isStatic = false,
2520
+ ref,
2521
+ shouldRender,
2522
+ $$slots,
2523
+ $$events,
2524
+ ...restProps
2525
+ } = $$props;
2526
+ if (shouldRender) {
2527
+ $$renderer.push("<!--[0-->");
2528
+ Popper_layer_inner($$renderer, spread_props([
2529
+ {
2530
+ popper,
2531
+ onEscapeKeydown,
2532
+ escapeKeydownBehavior,
2533
+ preventOverflowTextSelection,
2534
+ id,
2535
+ onPointerDown,
2536
+ onPointerUp,
2537
+ side,
2538
+ sideOffset,
2539
+ align,
2540
+ alignOffset,
2541
+ arrowPadding,
2542
+ avoidCollisions,
2543
+ collisionBoundary,
2544
+ collisionPadding,
2545
+ sticky,
2546
+ hideWhenDetached,
2547
+ updatePositionStrategy,
2548
+ strategy,
2549
+ dir,
2550
+ preventScroll,
2551
+ wrapperId,
2552
+ style,
2553
+ onPlaced,
2554
+ customAnchor,
2555
+ isStatic,
2556
+ enabled: open,
2557
+ onInteractOutside,
2558
+ onCloseAutoFocus,
2559
+ onOpenAutoFocus,
2560
+ interactOutsideBehavior,
2561
+ loop,
2562
+ trapFocus,
2563
+ isValidEvent,
2564
+ onFocusOutside,
2565
+ forceMount: false,
2566
+ ref
2567
+ },
2568
+ restProps
2569
+ ]));
2570
+ } else {
2571
+ $$renderer.push("<!--[-1-->");
2572
+ }
2573
+ $$renderer.push(`<!--]-->`);
2574
+ }
2575
+ function Popper_layer_force_mount($$renderer, $$props) {
2576
+ let {
2577
+ popper,
2578
+ onEscapeKeydown,
2579
+ escapeKeydownBehavior,
2580
+ preventOverflowTextSelection,
2581
+ id,
2582
+ onPointerDown,
2583
+ onPointerUp,
2584
+ side,
2585
+ sideOffset,
2586
+ align,
2587
+ alignOffset,
2588
+ arrowPadding,
2589
+ avoidCollisions,
2590
+ collisionBoundary,
2591
+ collisionPadding,
2592
+ sticky,
2593
+ hideWhenDetached,
2594
+ updatePositionStrategy,
2595
+ strategy,
2596
+ dir,
2597
+ preventScroll,
2598
+ wrapperId,
2599
+ style,
2600
+ onPlaced,
2601
+ onInteractOutside,
2602
+ onCloseAutoFocus,
2603
+ onOpenAutoFocus,
2604
+ onFocusOutside,
2605
+ interactOutsideBehavior = "close",
2606
+ loop,
2607
+ trapFocus = true,
2608
+ isValidEvent = () => false,
2609
+ customAnchor = null,
2610
+ isStatic = false,
2611
+ enabled,
2612
+ $$slots,
2613
+ $$events,
2614
+ ...restProps
2615
+ } = $$props;
2616
+ Popper_layer_inner($$renderer, spread_props([
2617
+ {
2618
+ popper,
2619
+ onEscapeKeydown,
2620
+ escapeKeydownBehavior,
2621
+ preventOverflowTextSelection,
2622
+ id,
2623
+ onPointerDown,
2624
+ onPointerUp,
2625
+ side,
2626
+ sideOffset,
2627
+ align,
2628
+ alignOffset,
2629
+ arrowPadding,
2630
+ avoidCollisions,
2631
+ collisionBoundary,
2632
+ collisionPadding,
2633
+ sticky,
2634
+ hideWhenDetached,
2635
+ updatePositionStrategy,
2636
+ strategy,
2637
+ dir,
2638
+ preventScroll,
2639
+ wrapperId,
2640
+ style,
2641
+ onPlaced,
2642
+ customAnchor,
2643
+ isStatic,
2644
+ enabled,
2645
+ onInteractOutside,
2646
+ onCloseAutoFocus,
2647
+ onOpenAutoFocus,
2648
+ interactOutsideBehavior,
2649
+ loop,
2650
+ trapFocus,
2651
+ isValidEvent,
2652
+ onFocusOutside
2653
+ },
2654
+ restProps,
2655
+ { forceMount: true }
2656
+ ]));
2657
+ }
2658
+ function isPointInPolygon(point, polygon) {
2659
+ const [x, y] = point;
2660
+ let isInside = false;
2661
+ const length = polygon.length;
2662
+ for (let i = 0, j = length - 1; i < length; j = i++) {
2663
+ const [xi, yi] = polygon[i] ?? [0, 0];
2664
+ const [xj, yj] = polygon[j] ?? [0, 0];
2665
+ const intersect = yi >= y !== yj >= y && x <= (xj - xi) * (y - yi) / (yj - yi) + xi;
2666
+ if (intersect) {
2667
+ isInside = !isInside;
2668
+ }
2669
+ }
2670
+ return isInside;
2671
+ }
2672
+ function isInsideRect(point, rect) {
2673
+ return point[0] >= rect.left && point[0] <= rect.right && point[1] >= rect.top && point[1] <= rect.bottom;
2674
+ }
2675
+ function getSide(triggerRect, contentRect) {
2676
+ const triggerCenterX = triggerRect.left + triggerRect.width / 2;
2677
+ const triggerCenterY = triggerRect.top + triggerRect.height / 2;
2678
+ const contentCenterX = contentRect.left + contentRect.width / 2;
2679
+ const contentCenterY = contentRect.top + contentRect.height / 2;
2680
+ const deltaX = contentCenterX - triggerCenterX;
2681
+ const deltaY = contentCenterY - triggerCenterY;
2682
+ if (Math.abs(deltaX) > Math.abs(deltaY)) {
2683
+ return deltaX > 0 ? "right" : "left";
2684
+ }
2685
+ return deltaY > 0 ? "bottom" : "top";
2686
+ }
2687
+ class SafePolygon {
2688
+ #opts;
2689
+ #buffer;
2690
+ #transitIntentTimeout;
2691
+ // tracks the cursor position when leaving trigger or content
2692
+ #exitPoint = null;
2693
+ // tracks what we're moving toward: "content" when leaving trigger, "trigger" when leaving content
2694
+ #exitTarget = null;
2695
+ #transitTargets = [];
2696
+ #trackedTriggerNode = null;
2697
+ #leaveFallbackRafId = null;
2698
+ #transitIntentTimeoutId = null;
2699
+ #cancelLeaveFallback() {
2700
+ if (this.#leaveFallbackRafId !== null) {
2701
+ cancelAnimationFrame(this.#leaveFallbackRafId);
2702
+ this.#leaveFallbackRafId = null;
2703
+ }
2704
+ }
2705
+ #scheduleLeaveFallback() {
2706
+ this.#cancelLeaveFallback();
2707
+ this.#leaveFallbackRafId = requestAnimationFrame(() => {
2708
+ this.#leaveFallbackRafId = null;
2709
+ if (!this.#exitPoint || !this.#exitTarget) return;
2710
+ this.#clearTracking();
2711
+ this.#opts.onPointerExit();
2712
+ });
2713
+ }
2714
+ #cancelTransitIntentTimeout() {
2715
+ if (this.#transitIntentTimeoutId !== null) {
2716
+ clearTimeout(this.#transitIntentTimeoutId);
2717
+ this.#transitIntentTimeoutId = null;
2718
+ }
2719
+ }
2720
+ #scheduleTransitIntentTimeout() {
2721
+ if (this.#transitIntentTimeout === null) return;
2722
+ this.#cancelTransitIntentTimeout();
2723
+ this.#transitIntentTimeoutId = window.setTimeout(
2724
+ () => {
2725
+ this.#transitIntentTimeoutId = null;
2726
+ if (!this.#exitPoint || !this.#exitTarget) return;
2727
+ this.#clearTracking();
2728
+ this.#opts.onPointerExit();
2729
+ },
2730
+ this.#transitIntentTimeout
2731
+ );
2732
+ }
2733
+ constructor(opts) {
2734
+ this.#opts = opts;
2735
+ this.#buffer = opts.buffer ?? 1;
2736
+ const transitIntentTimeout = opts.transitIntentTimeout;
2737
+ this.#transitIntentTimeout = typeof transitIntentTimeout === "number" && transitIntentTimeout > 0 ? transitIntentTimeout : null;
2738
+ watch([opts.triggerNode, opts.contentNode, opts.enabled], ([triggerNode, contentNode, enabled]) => {
2739
+ if (!triggerNode || !contentNode || !enabled) {
2740
+ this.#trackedTriggerNode = null;
2741
+ this.#clearTracking();
2742
+ return;
2743
+ }
2744
+ if (this.#trackedTriggerNode && this.#trackedTriggerNode !== triggerNode) {
2745
+ this.#clearTracking();
2746
+ }
2747
+ this.#trackedTriggerNode = triggerNode;
2748
+ const doc = getDocument(triggerNode);
2749
+ const handlePointerMove = (e) => {
2750
+ this.#onPointerMove([e.clientX, e.clientY], triggerNode, contentNode);
2751
+ };
2752
+ const handleTriggerLeave = (e) => {
2753
+ const target = e.relatedTarget;
2754
+ if (isElement$1(target) && contentNode.contains(target)) {
2755
+ return;
2756
+ }
2757
+ const ignoredTargets = this.#opts.ignoredTargets?.() ?? [];
2758
+ if (isElement$1(target) && ignoredTargets.some((n) => n === target || n.contains(target))) {
2759
+ return;
2760
+ }
2761
+ this.#transitTargets = isElement$1(target) && ignoredTargets.length > 0 ? ignoredTargets.filter((n) => target.contains(n)) : [];
2762
+ this.#exitPoint = [e.clientX, e.clientY];
2763
+ this.#exitTarget = "content";
2764
+ this.#scheduleLeaveFallback();
2765
+ };
2766
+ const handleTriggerEnter = () => {
2767
+ this.#clearTracking();
2768
+ };
2769
+ const handleContentEnter = () => {
2770
+ this.#clearTracking();
2771
+ };
2772
+ const handleContentLeave = (e) => {
2773
+ const target = e.relatedTarget;
2774
+ if (isElement$1(target) && triggerNode.contains(target)) {
2775
+ return;
2776
+ }
2777
+ this.#exitPoint = [e.clientX, e.clientY];
2778
+ this.#exitTarget = "trigger";
2779
+ this.#scheduleLeaveFallback();
2780
+ };
2781
+ return [
2782
+ on(doc, "pointermove", handlePointerMove),
2783
+ on(triggerNode, "pointerleave", handleTriggerLeave),
2784
+ on(triggerNode, "pointerenter", handleTriggerEnter),
2785
+ on(contentNode, "pointerenter", handleContentEnter),
2786
+ on(contentNode, "pointerleave", handleContentLeave)
2787
+ ].reduce(
2788
+ (acc, cleanup) => () => {
2789
+ acc();
2790
+ cleanup();
2791
+ },
2792
+ () => {
2793
+ }
2794
+ );
2795
+ });
2796
+ }
2797
+ #onPointerMove(clientPoint, triggerNode, contentNode) {
2798
+ if (!this.#exitPoint || !this.#exitTarget) return;
2799
+ this.#cancelLeaveFallback();
2800
+ this.#scheduleTransitIntentTimeout();
2801
+ const triggerRect = triggerNode.getBoundingClientRect();
2802
+ const contentRect = contentNode.getBoundingClientRect();
2803
+ if (this.#exitTarget === "content" && isInsideRect(clientPoint, contentRect)) {
2804
+ this.#clearTracking();
2805
+ return;
2806
+ }
2807
+ if (this.#exitTarget === "trigger" && isInsideRect(clientPoint, triggerRect)) {
2808
+ this.#clearTracking();
2809
+ return;
2810
+ }
2811
+ if (this.#exitTarget === "content" && this.#transitTargets.length > 0) {
2812
+ for (const transitTarget of this.#transitTargets) {
2813
+ const transitRect = transitTarget.getBoundingClientRect();
2814
+ if (isInsideRect(clientPoint, transitRect)) return;
2815
+ const transitSide = getSide(triggerRect, transitRect);
2816
+ const transitCorridor = this.#getCorridorPolygon(triggerRect, transitRect, transitSide);
2817
+ if (transitCorridor && isPointInPolygon(clientPoint, transitCorridor)) return;
2818
+ }
2819
+ }
2820
+ const side = getSide(triggerRect, contentRect);
2821
+ const corridorPoly = this.#getCorridorPolygon(triggerRect, contentRect, side);
2822
+ if (corridorPoly && isPointInPolygon(clientPoint, corridorPoly)) {
2823
+ return;
2824
+ }
2825
+ const targetRect = this.#exitTarget === "content" ? contentRect : triggerRect;
2826
+ const safePoly = this.#getSafePolygon(this.#exitPoint, targetRect, side, this.#exitTarget);
2827
+ if (isPointInPolygon(clientPoint, safePoly)) {
2828
+ return;
2829
+ }
2830
+ this.#clearTracking();
2831
+ this.#opts.onPointerExit();
2832
+ }
2833
+ #clearTracking() {
2834
+ this.#exitPoint = null;
2835
+ this.#exitTarget = null;
2836
+ this.#transitTargets = [];
2837
+ this.#cancelLeaveFallback();
2838
+ this.#cancelTransitIntentTimeout();
2839
+ }
2840
+ /**
2841
+ * Creates a rectangular corridor between trigger and content
2842
+ * This prevents closing when cursor is in the gap between them
2843
+ */
2844
+ #getCorridorPolygon(triggerRect, contentRect, side) {
2845
+ const buffer = this.#buffer;
2846
+ switch (side) {
2847
+ case "top":
2848
+ return [
2849
+ [
2850
+ Math.min(triggerRect.left, contentRect.left) - buffer,
2851
+ triggerRect.top
2852
+ ],
2853
+ [
2854
+ Math.min(triggerRect.left, contentRect.left) - buffer,
2855
+ contentRect.bottom
2856
+ ],
2857
+ [
2858
+ Math.max(triggerRect.right, contentRect.right) + buffer,
2859
+ contentRect.bottom
2860
+ ],
2861
+ [
2862
+ Math.max(triggerRect.right, contentRect.right) + buffer,
2863
+ triggerRect.top
2864
+ ]
2865
+ ];
2866
+ case "bottom":
2867
+ return [
2868
+ [
2869
+ Math.min(triggerRect.left, contentRect.left) - buffer,
2870
+ triggerRect.bottom
2871
+ ],
2872
+ [
2873
+ Math.min(triggerRect.left, contentRect.left) - buffer,
2874
+ contentRect.top
2875
+ ],
2876
+ [
2877
+ Math.max(triggerRect.right, contentRect.right) + buffer,
2878
+ contentRect.top
2879
+ ],
2880
+ [
2881
+ Math.max(triggerRect.right, contentRect.right) + buffer,
2882
+ triggerRect.bottom
2883
+ ]
2884
+ ];
2885
+ case "left":
2886
+ return [
2887
+ [
2888
+ triggerRect.left,
2889
+ Math.min(triggerRect.top, contentRect.top) - buffer
2890
+ ],
2891
+ [
2892
+ contentRect.right,
2893
+ Math.min(triggerRect.top, contentRect.top) - buffer
2894
+ ],
2895
+ [
2896
+ contentRect.right,
2897
+ Math.max(triggerRect.bottom, contentRect.bottom) + buffer
2898
+ ],
2899
+ [
2900
+ triggerRect.left,
2901
+ Math.max(triggerRect.bottom, contentRect.bottom) + buffer
2902
+ ]
2903
+ ];
2904
+ case "right":
2905
+ return [
2906
+ [
2907
+ triggerRect.right,
2908
+ Math.min(triggerRect.top, contentRect.top) - buffer
2909
+ ],
2910
+ [
2911
+ contentRect.left,
2912
+ Math.min(triggerRect.top, contentRect.top) - buffer
2913
+ ],
2914
+ [
2915
+ contentRect.left,
2916
+ Math.max(triggerRect.bottom, contentRect.bottom) + buffer
2917
+ ],
2918
+ [
2919
+ triggerRect.right,
2920
+ Math.max(triggerRect.bottom, contentRect.bottom) + buffer
2921
+ ]
2922
+ ];
2923
+ }
2924
+ }
2925
+ /**
2926
+ * Creates a triangular/trapezoidal safe zone from the exit point to the target
2927
+ */
2928
+ #getSafePolygon(exitPoint, targetRect, side, exitTarget) {
2929
+ const buffer = this.#buffer * 4;
2930
+ const [x, y] = exitPoint;
2931
+ const effectiveSide = exitTarget === "trigger" ? this.#flipSide(side) : side;
2932
+ switch (effectiveSide) {
2933
+ case "top":
2934
+ return [
2935
+ [x - buffer, y + buffer],
2936
+ [x + buffer, y + buffer],
2937
+ [targetRect.right + buffer, targetRect.bottom],
2938
+ [targetRect.right + buffer, targetRect.top],
2939
+ [targetRect.left - buffer, targetRect.top],
2940
+ [targetRect.left - buffer, targetRect.bottom]
2941
+ ];
2942
+ case "bottom":
2943
+ return [
2944
+ [x - buffer, y - buffer],
2945
+ [x + buffer, y - buffer],
2946
+ [targetRect.right + buffer, targetRect.top],
2947
+ [targetRect.right + buffer, targetRect.bottom],
2948
+ [targetRect.left - buffer, targetRect.bottom],
2949
+ [targetRect.left - buffer, targetRect.top]
2950
+ ];
2951
+ case "left":
2952
+ return [
2953
+ [x + buffer, y - buffer],
2954
+ [x + buffer, y + buffer],
2955
+ [targetRect.right, targetRect.bottom + buffer],
2956
+ [targetRect.left, targetRect.bottom + buffer],
2957
+ [targetRect.left, targetRect.top - buffer],
2958
+ [targetRect.right, targetRect.top - buffer]
2959
+ ];
2960
+ case "right":
2961
+ return [
2962
+ [x - buffer, y - buffer],
2963
+ [x - buffer, y + buffer],
2964
+ [targetRect.left, targetRect.bottom + buffer],
2965
+ [targetRect.right, targetRect.bottom + buffer],
2966
+ [targetRect.right, targetRect.top - buffer],
2967
+ [targetRect.left, targetRect.top - buffer]
2968
+ ];
2969
+ }
2970
+ }
2971
+ #flipSide(side) {
2972
+ switch (side) {
2973
+ case "top":
2974
+ return "bottom";
2975
+ case "bottom":
2976
+ return "top";
2977
+ case "left":
2978
+ return "right";
2979
+ case "right":
2980
+ return "left";
2981
+ }
2982
+ }
2983
+ }
2984
+ const popoverAttrs = createBitsAttrs({
2985
+ component: "popover",
2986
+ parts: ["root", "trigger", "content", "close", "overlay"]
2987
+ });
2988
+ const PopoverRootContext = new Context("Popover.Root");
2989
+ class PopoverRootState {
2990
+ static create(opts) {
2991
+ return PopoverRootContext.set(new PopoverRootState(opts));
2992
+ }
2993
+ opts;
2994
+ contentNode = null;
2995
+ contentPresence;
2996
+ triggerNode = null;
2997
+ overlayNode = null;
2998
+ overlayPresence;
2999
+ // hover tracking state
3000
+ openedViaHover = false;
3001
+ hasInteractedWithContent = false;
3002
+ hoverCooldown = false;
3003
+ closeDelay = 0;
3004
+ #closeTimeout = null;
3005
+ #domContext = null;
3006
+ constructor(opts) {
3007
+ this.opts = opts;
3008
+ this.contentPresence = new PresenceManager({
3009
+ ref: boxWith(() => this.contentNode),
3010
+ open: this.opts.open,
3011
+ onComplete: () => {
3012
+ this.opts.onOpenChangeComplete.current(this.opts.open.current);
3013
+ }
3014
+ });
3015
+ this.overlayPresence = new PresenceManager({ ref: boxWith(() => this.overlayNode), open: this.opts.open });
3016
+ watch(() => this.opts.open.current, (isOpen) => {
3017
+ if (!isOpen) {
3018
+ this.openedViaHover = false;
3019
+ this.hasInteractedWithContent = false;
3020
+ this.#clearCloseTimeout();
3021
+ }
3022
+ });
3023
+ }
3024
+ setDomContext(ctx) {
3025
+ this.#domContext = ctx;
3026
+ }
3027
+ #clearCloseTimeout() {
3028
+ if (this.#closeTimeout !== null && this.#domContext) {
3029
+ this.#domContext.clearTimeout(this.#closeTimeout);
3030
+ this.#closeTimeout = null;
3031
+ }
3032
+ }
3033
+ toggleOpen() {
3034
+ this.#clearCloseTimeout();
3035
+ this.opts.open.current = !this.opts.open.current;
3036
+ }
3037
+ handleClose() {
3038
+ this.#clearCloseTimeout();
3039
+ if (!this.opts.open.current) return;
3040
+ this.opts.open.current = false;
3041
+ }
3042
+ handleHoverOpen() {
3043
+ this.#clearCloseTimeout();
3044
+ if (this.opts.open.current) return;
3045
+ this.openedViaHover = true;
3046
+ this.opts.open.current = true;
3047
+ }
3048
+ handleHoverClose() {
3049
+ if (!this.opts.open.current) return;
3050
+ if (this.openedViaHover && !this.hasInteractedWithContent) {
3051
+ this.opts.open.current = false;
3052
+ }
3053
+ }
3054
+ handleDelayedHoverClose() {
3055
+ if (!this.opts.open.current) return;
3056
+ if (!this.openedViaHover || this.hasInteractedWithContent) return;
3057
+ this.#clearCloseTimeout();
3058
+ if (this.closeDelay <= 0) {
3059
+ this.opts.open.current = false;
3060
+ } else if (this.#domContext) {
3061
+ this.#closeTimeout = this.#domContext.setTimeout(
3062
+ () => {
3063
+ if (this.openedViaHover && !this.hasInteractedWithContent) {
3064
+ this.opts.open.current = false;
3065
+ }
3066
+ this.#closeTimeout = null;
3067
+ },
3068
+ this.closeDelay
3069
+ );
3070
+ }
3071
+ }
3072
+ cancelDelayedClose() {
3073
+ this.#clearCloseTimeout();
3074
+ }
3075
+ markInteraction() {
3076
+ this.hasInteractedWithContent = true;
3077
+ this.#clearCloseTimeout();
3078
+ }
3079
+ }
3080
+ class PopoverTriggerState {
3081
+ static create(opts) {
3082
+ return new PopoverTriggerState(opts, PopoverRootContext.get());
3083
+ }
3084
+ opts;
3085
+ root;
3086
+ attachment;
3087
+ domContext;
3088
+ #openTimeout = null;
3089
+ #closeTimeout = null;
3090
+ #isHovering = false;
3091
+ constructor(opts, root) {
3092
+ this.opts = opts;
3093
+ this.root = root;
3094
+ this.attachment = attachRef(this.opts.ref, (v) => this.root.triggerNode = v);
3095
+ this.domContext = new DOMContext(opts.ref);
3096
+ this.root.setDomContext(this.domContext);
3097
+ this.onclick = this.onclick.bind(this);
3098
+ this.onkeydown = this.onkeydown.bind(this);
3099
+ this.onpointerenter = this.onpointerenter.bind(this);
3100
+ this.onpointerleave = this.onpointerleave.bind(this);
3101
+ watch(() => this.opts.closeDelay.current, (delay) => {
3102
+ this.root.closeDelay = delay;
3103
+ });
3104
+ }
3105
+ #clearOpenTimeout() {
3106
+ if (this.#openTimeout !== null) {
3107
+ this.domContext.clearTimeout(this.#openTimeout);
3108
+ this.#openTimeout = null;
3109
+ }
3110
+ }
3111
+ #clearCloseTimeout() {
3112
+ if (this.#closeTimeout !== null) {
3113
+ this.domContext.clearTimeout(this.#closeTimeout);
3114
+ this.#closeTimeout = null;
3115
+ }
3116
+ }
3117
+ #clearAllTimeouts() {
3118
+ this.#clearOpenTimeout();
3119
+ this.#clearCloseTimeout();
3120
+ }
3121
+ onpointerenter(e) {
3122
+ if (this.opts.disabled.current) return;
3123
+ if (!this.opts.openOnHover.current) return;
3124
+ if (isTouch(e)) return;
3125
+ this.#isHovering = true;
3126
+ this.#clearCloseTimeout();
3127
+ this.root.cancelDelayedClose();
3128
+ if (this.root.opts.open.current || this.root.hoverCooldown) return;
3129
+ const delay = this.opts.openDelay.current;
3130
+ if (delay <= 0) {
3131
+ this.root.handleHoverOpen();
3132
+ } else {
3133
+ this.#openTimeout = this.domContext.setTimeout(
3134
+ () => {
3135
+ this.root.handleHoverOpen();
3136
+ this.#openTimeout = null;
3137
+ },
3138
+ delay
3139
+ );
3140
+ }
3141
+ }
3142
+ onpointerleave(e) {
3143
+ if (this.opts.disabled.current) return;
3144
+ if (!this.opts.openOnHover.current) return;
3145
+ if (isTouch(e)) return;
3146
+ this.#isHovering = false;
3147
+ this.#clearOpenTimeout();
3148
+ this.root.hoverCooldown = false;
3149
+ }
3150
+ onclick(e) {
3151
+ if (this.opts.disabled.current) return;
3152
+ if (e.button !== 0) return;
3153
+ this.#clearAllTimeouts();
3154
+ if (this.#isHovering && this.root.opts.open.current && this.root.openedViaHover) {
3155
+ this.root.openedViaHover = false;
3156
+ this.root.hasInteractedWithContent = true;
3157
+ return;
3158
+ }
3159
+ if (this.#isHovering && this.opts.openOnHover.current && this.root.opts.open.current) {
3160
+ this.root.hoverCooldown = true;
3161
+ }
3162
+ if (this.root.hoverCooldown && !this.root.opts.open.current) {
3163
+ this.root.hoverCooldown = false;
3164
+ }
3165
+ this.root.toggleOpen();
3166
+ }
3167
+ onkeydown(e) {
3168
+ if (this.opts.disabled.current) return;
3169
+ if (!(e.key === ENTER || e.key === SPACE)) return;
3170
+ e.preventDefault();
3171
+ this.#clearAllTimeouts();
3172
+ this.root.toggleOpen();
3173
+ }
3174
+ #getAriaControls() {
3175
+ if (this.root.opts.open.current && this.root.contentNode?.id) {
3176
+ return this.root.contentNode?.id;
3177
+ }
3178
+ }
3179
+ #props = derived(() => ({
3180
+ id: this.opts.id.current,
3181
+ "aria-haspopup": "dialog",
3182
+ "aria-expanded": boolToStr(this.root.opts.open.current),
3183
+ "data-state": getDataOpenClosed(this.root.opts.open.current),
3184
+ "aria-controls": this.#getAriaControls(),
3185
+ [popoverAttrs.trigger]: "",
3186
+ disabled: this.opts.disabled.current,
3187
+ //
3188
+ onkeydown: this.onkeydown,
3189
+ onclick: this.onclick,
3190
+ onpointerenter: this.onpointerenter,
3191
+ onpointerleave: this.onpointerleave,
3192
+ ...this.attachment
3193
+ }));
3194
+ get props() {
3195
+ return this.#props();
3196
+ }
3197
+ set props($$value) {
3198
+ return this.#props($$value);
3199
+ }
3200
+ }
3201
+ class PopoverContentState {
3202
+ static create(opts) {
3203
+ return new PopoverContentState(opts, PopoverRootContext.get());
3204
+ }
3205
+ opts;
3206
+ root;
3207
+ attachment;
3208
+ constructor(opts, root) {
3209
+ this.opts = opts;
3210
+ this.root = root;
3211
+ this.attachment = attachRef(this.opts.ref, (v) => this.root.contentNode = v);
3212
+ this.onpointerdown = this.onpointerdown.bind(this);
3213
+ this.onfocusin = this.onfocusin.bind(this);
3214
+ this.onpointerenter = this.onpointerenter.bind(this);
3215
+ this.onpointerleave = this.onpointerleave.bind(this);
3216
+ new SafePolygon({
3217
+ triggerNode: () => this.root.triggerNode,
3218
+ contentNode: () => this.root.contentNode,
3219
+ enabled: () => this.root.opts.open.current && this.root.openedViaHover && !this.root.hasInteractedWithContent,
3220
+ onPointerExit: () => {
3221
+ this.root.handleDelayedHoverClose();
3222
+ }
3223
+ });
3224
+ }
3225
+ onpointerdown(_) {
3226
+ this.root.markInteraction();
3227
+ }
3228
+ onfocusin(e) {
3229
+ const target = e.target;
3230
+ if (isElement$1(target) && isTabbable(target)) {
3231
+ this.root.markInteraction();
3232
+ }
3233
+ }
3234
+ onpointerenter(e) {
3235
+ if (isTouch(e)) return;
3236
+ this.root.cancelDelayedClose();
3237
+ }
3238
+ onpointerleave(e) {
3239
+ if (isTouch(e)) return;
3240
+ }
3241
+ onInteractOutside = (e) => {
3242
+ this.opts.onInteractOutside.current(e);
3243
+ if (e.defaultPrevented) return;
3244
+ if (!isElement$1(e.target)) return;
3245
+ const closestTrigger = e.target.closest(popoverAttrs.selector("trigger"));
3246
+ if (closestTrigger && closestTrigger === this.root.triggerNode) return;
3247
+ if (this.opts.customAnchor.current) {
3248
+ if (isElement$1(this.opts.customAnchor.current)) {
3249
+ if (this.opts.customAnchor.current.contains(e.target)) return;
3250
+ } else if (typeof this.opts.customAnchor.current === "string") {
3251
+ const el = document.querySelector(this.opts.customAnchor.current);
3252
+ if (el && el.contains(e.target)) return;
3253
+ }
3254
+ }
3255
+ this.root.handleClose();
3256
+ };
3257
+ onEscapeKeydown = (e) => {
3258
+ this.opts.onEscapeKeydown.current(e);
3259
+ if (e.defaultPrevented) return;
3260
+ this.root.handleClose();
3261
+ };
3262
+ get shouldRender() {
3263
+ return this.root.contentPresence.shouldRender;
3264
+ }
3265
+ get shouldTrapFocus() {
3266
+ if (this.root.openedViaHover && !this.root.hasInteractedWithContent) return false;
3267
+ return true;
3268
+ }
3269
+ #snippetProps = derived(() => ({ open: this.root.opts.open.current }));
3270
+ get snippetProps() {
3271
+ return this.#snippetProps();
3272
+ }
3273
+ set snippetProps($$value) {
3274
+ return this.#snippetProps($$value);
3275
+ }
3276
+ #props = derived(() => ({
3277
+ id: this.opts.id.current,
3278
+ tabindex: -1,
3279
+ "data-state": getDataOpenClosed(this.root.opts.open.current),
3280
+ ...getDataTransitionAttrs(this.root.contentPresence.transitionStatus),
3281
+ [popoverAttrs.content]: "",
3282
+ style: { pointerEvents: "auto", contain: "layout style" },
3283
+ onpointerdown: this.onpointerdown,
3284
+ onfocusin: this.onfocusin,
3285
+ onpointerenter: this.onpointerenter,
3286
+ onpointerleave: this.onpointerleave,
3287
+ ...this.attachment
3288
+ }));
3289
+ get props() {
3290
+ return this.#props();
3291
+ }
3292
+ set props($$value) {
3293
+ return this.#props($$value);
3294
+ }
3295
+ popperProps = {
3296
+ onInteractOutside: this.onInteractOutside,
3297
+ onEscapeKeydown: this.onEscapeKeydown
3298
+ };
3299
+ }
3300
+ function Popover_content($$renderer, $$props) {
3301
+ $$renderer.component(($$renderer2) => {
3302
+ const uid = props_id($$renderer2);
3303
+ let {
3304
+ child,
3305
+ children,
3306
+ ref = null,
3307
+ id = createId(uid),
3308
+ forceMount = false,
3309
+ onOpenAutoFocus = noop,
3310
+ onCloseAutoFocus = noop,
3311
+ onEscapeKeydown = noop,
3312
+ onInteractOutside = noop,
3313
+ trapFocus = true,
3314
+ preventScroll = false,
3315
+ customAnchor = null,
3316
+ style,
3317
+ $$slots,
3318
+ $$events,
3319
+ ...restProps
3320
+ } = $$props;
3321
+ const contentState = PopoverContentState.create({
3322
+ id: boxWith(() => id),
3323
+ ref: boxWith(() => ref, (v) => ref = v),
3324
+ onInteractOutside: boxWith(() => onInteractOutside),
3325
+ onEscapeKeydown: boxWith(() => onEscapeKeydown),
3326
+ customAnchor: boxWith(() => customAnchor)
3327
+ });
3328
+ const mergedProps = derived(() => mergeProps(restProps, contentState.props));
3329
+ const effectiveTrapFocus = derived(() => trapFocus && contentState.shouldTrapFocus);
3330
+ function handleOpenAutoFocus(e) {
3331
+ if (!contentState.shouldTrapFocus) {
3332
+ e.preventDefault();
3333
+ }
3334
+ onOpenAutoFocus(e);
3335
+ }
3336
+ if (forceMount) {
3337
+ $$renderer2.push("<!--[0-->");
3338
+ {
3339
+ let popper = function($$renderer3, { props, wrapperProps }) {
3340
+ const finalProps = mergeProps(props, { style: getFloatingContentCSSVars("popover") }, { style });
3341
+ if (child) {
3342
+ $$renderer3.push("<!--[0-->");
3343
+ child($$renderer3, {
3344
+ props: finalProps,
3345
+ wrapperProps,
3346
+ ...contentState.snippetProps
3347
+ });
3348
+ $$renderer3.push(`<!---->`);
3349
+ } else {
3350
+ $$renderer3.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
3351
+ children?.($$renderer3);
3352
+ $$renderer3.push(`<!----></div></div>`);
3353
+ }
3354
+ $$renderer3.push(`<!--]-->`);
3355
+ };
3356
+ Popper_layer_force_mount($$renderer2, spread_props([
3357
+ mergedProps(),
3358
+ contentState.popperProps,
3359
+ {
3360
+ ref: contentState.opts.ref,
3361
+ enabled: contentState.root.opts.open.current,
3362
+ id,
3363
+ trapFocus: effectiveTrapFocus(),
3364
+ preventScroll,
3365
+ loop: true,
3366
+ forceMount: true,
3367
+ customAnchor,
3368
+ onOpenAutoFocus: handleOpenAutoFocus,
3369
+ onCloseAutoFocus,
3370
+ shouldRender: contentState.shouldRender,
3371
+ popper,
3372
+ $$slots: { popper: true }
3373
+ }
3374
+ ]));
3375
+ }
3376
+ } else if (!forceMount) {
3377
+ $$renderer2.push("<!--[1-->");
3378
+ {
3379
+ let popper = function($$renderer3, { props, wrapperProps }) {
3380
+ const finalProps = mergeProps(props, { style: getFloatingContentCSSVars("popover") }, { style });
3381
+ if (child) {
3382
+ $$renderer3.push("<!--[0-->");
3383
+ child($$renderer3, {
3384
+ props: finalProps,
3385
+ wrapperProps,
3386
+ ...contentState.snippetProps
3387
+ });
3388
+ $$renderer3.push(`<!---->`);
3389
+ } else {
3390
+ $$renderer3.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
3391
+ children?.($$renderer3);
3392
+ $$renderer3.push(`<!----></div></div>`);
3393
+ }
3394
+ $$renderer3.push(`<!--]-->`);
3395
+ };
3396
+ Popper_layer($$renderer2, spread_props([
3397
+ mergedProps(),
3398
+ contentState.popperProps,
3399
+ {
3400
+ ref: contentState.opts.ref,
3401
+ open: contentState.root.opts.open.current,
3402
+ id,
3403
+ trapFocus: effectiveTrapFocus(),
3404
+ preventScroll,
3405
+ loop: true,
3406
+ forceMount: false,
3407
+ customAnchor,
3408
+ onOpenAutoFocus: handleOpenAutoFocus,
3409
+ onCloseAutoFocus,
3410
+ shouldRender: contentState.shouldRender,
3411
+ popper,
3412
+ $$slots: { popper: true }
3413
+ }
3414
+ ]));
3415
+ }
3416
+ } else {
3417
+ $$renderer2.push("<!--[-1-->");
3418
+ }
3419
+ $$renderer2.push(`<!--]-->`);
3420
+ bind_props($$props, { ref });
3421
+ });
3422
+ }
3423
+ function Popover_trigger($$renderer, $$props) {
3424
+ $$renderer.component(($$renderer2) => {
3425
+ const uid = props_id($$renderer2);
3426
+ let {
3427
+ children,
3428
+ child,
3429
+ id = createId(uid),
3430
+ ref = null,
3431
+ type = "button",
3432
+ disabled = false,
3433
+ openOnHover = false,
3434
+ openDelay = 700,
3435
+ closeDelay = 300,
3436
+ $$slots,
3437
+ $$events,
3438
+ ...restProps
3439
+ } = $$props;
3440
+ const triggerState = PopoverTriggerState.create({
3441
+ id: boxWith(() => id),
3442
+ ref: boxWith(() => ref, (v) => ref = v),
3443
+ disabled: boxWith(() => Boolean(disabled)),
3444
+ openOnHover: boxWith(() => openOnHover),
3445
+ openDelay: boxWith(() => openDelay),
3446
+ closeDelay: boxWith(() => closeDelay)
3447
+ });
3448
+ const mergedProps = derived(() => mergeProps(restProps, triggerState.props, { type }));
3449
+ Floating_layer_anchor($$renderer2, {
3450
+ id,
3451
+ ref: triggerState.opts.ref,
3452
+ children: ($$renderer3) => {
3453
+ if (child) {
3454
+ $$renderer3.push("<!--[0-->");
3455
+ child($$renderer3, { props: mergedProps() });
3456
+ $$renderer3.push(`<!---->`);
3457
+ } else {
3458
+ $$renderer3.push(`<!--[-1--><button${attributes({ ...mergedProps() })}>`);
3459
+ children?.($$renderer3);
3460
+ $$renderer3.push(`<!----></button>`);
3461
+ }
3462
+ $$renderer3.push(`<!--]-->`);
3463
+ }
3464
+ });
3465
+ bind_props($$props, { ref });
3466
+ });
3467
+ }
3468
+ function Popover($$renderer, $$props) {
3469
+ $$renderer.component(($$renderer2) => {
3470
+ let {
3471
+ open = false,
3472
+ onOpenChange = noop,
3473
+ onOpenChangeComplete = noop,
3474
+ children
3475
+ } = $$props;
3476
+ PopoverRootState.create({
3477
+ open: boxWith(() => open, (v) => {
3478
+ open = v;
3479
+ onOpenChange(v);
3480
+ }),
3481
+ onOpenChangeComplete: boxWith(() => onOpenChangeComplete)
3482
+ });
3483
+ Floating_layer($$renderer2, {
3484
+ children: ($$renderer3) => {
3485
+ children?.($$renderer3);
3486
+ $$renderer3.push(`<!---->`);
3487
+ }
3488
+ });
3489
+ bind_props($$props, { open });
3490
+ });
3491
+ }
3492
+ const SLACK_MS = 2 * 6e4;
3493
+ const MAX_LINKED = 3;
3494
+ const escape = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3495
+ const taskPages = (task) => [task.preview?.url, task.board?.url].filter((u) => !!u).map(pageOf);
3496
+ const urlIn = (text, u) => new RegExp(`${escape(u)}(?![\\w-])`).test(text);
3497
+ const time = (s) => {
3498
+ const t = s ? Date.parse(s) : NaN;
3499
+ return Number.isNaN(t) ? null : t;
3500
+ };
3501
+ function underWay(task, at) {
3502
+ if (task.status !== "landed") return true;
3503
+ const merged = time(task.mergedAt);
3504
+ return merged !== null && at !== null && at < merged;
3505
+ }
3506
+ function linksTask(text, task) {
3507
+ const pages = taskPages(task);
3508
+ return extractUrls(text).some((u) => pages.includes(pageOf(u)));
3509
+ }
3510
+ function names(text, task) {
3511
+ const ids = [task.id];
3512
+ if (task.secondMate) ids.push(task.id.replace(/@[^@]*$/, ""));
3513
+ if (ids.some((id) => new RegExp(`(?<![\\w-])${escape(id)}(?![\\w@-])`).test(text))) return true;
3514
+ return !!task.pr?.url && urlIn(text, task.pr.url.replace(/\/+$/, ""));
3515
+ }
3516
+ function mentions(text, task) {
3517
+ return names(text, task) || linksTask(text, task);
3518
+ }
3519
+ const shownUrl = (task) => task.preview?.url ?? task.board?.url ?? null;
3520
+ function ownedBy(url, at, tasks) {
3521
+ const page = pageOf(url);
3522
+ return tasks.some((t) => underWay(t, at) && taskPages(t).includes(page));
3523
+ }
3524
+ function add(out, anchor, card) {
3525
+ out.set(anchor, [...out.get(anchor) ?? [], card]);
3526
+ }
3527
+ function previewCards(items, tasks, ownPort = null) {
3528
+ const out = /* @__PURE__ */ new Map();
3529
+ const seen = tasks.filter((t) => t.preview || t.board);
3530
+ const carded = /* @__PURE__ */ new Map();
3531
+ for (const task of seen) {
3532
+ const url = shownUrl(task);
3533
+ const reported = time(task.preview?.reportedAt ?? task.board?.reportedAt);
3534
+ const landed = task.status === "landed";
3535
+ const merged = landed ? time(task.mergedAt) : null;
3536
+ let first = null;
3537
+ let linked = null;
3538
+ let since = null;
3539
+ for (const it of items) {
3540
+ if (it.kind !== "turn") continue;
3541
+ const at = time(it.at);
3542
+ if (reported !== null && (at === null || at < reported - SLACK_MS)) continue;
3543
+ const links = (text) => underWay(task, at) && linksTask(text, task);
3544
+ const part = it.parts.find(
3545
+ (p) => p.kind === "text" && (names(p.text, task) || links(p.text))
3546
+ );
3547
+ if (!part || part.kind !== "text") continue;
3548
+ first ??= part.id;
3549
+ if (links(part.text)) linked = part.id;
3550
+ if (landed && (merged === null || at !== null && at >= merged - SLACK_MS)) {
3551
+ since = part.id;
3552
+ break;
3553
+ }
3554
+ }
3555
+ const anchor = since ?? linked ?? first;
3556
+ if (!anchor) continue;
3557
+ add(out, anchor, { task, url, board: !task.preview, landed });
3558
+ carded.set(anchor, [...carded.get(anchor) ?? [], ...taskPages(task)]);
3559
+ }
3560
+ const latest = /* @__PURE__ */ new Map();
3561
+ for (const it of items) {
3562
+ if (it.kind !== "turn") continue;
3563
+ const at = time(it.at);
3564
+ for (const p of it.parts) {
3565
+ if (p.kind !== "text") continue;
3566
+ const origins = /* @__PURE__ */ new Set();
3567
+ let n = 0;
3568
+ for (const url of linkedPreviews(p.text, ownPort)) {
3569
+ const origin = URL.parse(url).origin;
3570
+ const key = pageOf(url);
3571
+ if (carded.get(p.id)?.includes(key)) {
3572
+ latest.delete(key);
3573
+ continue;
3574
+ }
3575
+ if (origins.has(origin) || ownedBy(url, at, seen) || n >= MAX_LINKED) continue;
3576
+ origins.add(origin);
3577
+ n++;
3578
+ latest.delete(key);
3579
+ latest.set(key, { anchor: p.id, url });
3580
+ }
3581
+ }
3582
+ }
3583
+ for (const { anchor, url } of latest.values())
3584
+ add(out, anchor, { task: null, url, board: isBoard(url), landed: false });
3585
+ return out;
3586
+ }
3587
+ function chipLabel(r, max = 34) {
3588
+ const title = r.title.length > max ? `${r.title.slice(0, max - 1)}…` : r.title;
3589
+ const num = r.url?.match(/\/pull\/(\d+)/)?.[1];
3590
+ return r.kind === "pr" ? `PR${num ? ` #${num}` : ""} ${title}` : `# ${title}`;
3591
+ }
3592
+ const EXPANDED = /\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;
3593
+ function parseRefs(text) {
3594
+ const out = [];
3595
+ let at = 0;
3596
+ for (const m of text.matchAll(EXPANDED)) {
3597
+ if (m.index > at) out.push(text.slice(at, m.index));
3598
+ out.push({
3599
+ kind: m[1] ? "pr" : "task",
3600
+ id: m[3] ? `${m[2]}@${m[3]}` : m[2],
3601
+ title: m[4].trim(),
3602
+ project: null,
3603
+ url: m[1] ?? null
3604
+ });
3605
+ at = m.index + m[0].length;
3606
+ }
3607
+ if (at < text.length) out.push(text.slice(at));
3608
+ return out;
3609
+ }
3610
+ const SNIPPET_MAX = 140;
3611
+ function plain(text) {
3612
+ const md = text.replace(/```[^\n]*\n([\s\S]*?)```/g, "$1").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm, "").replace(/(\*\*|__|~~|`)/g, "").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g, "$1$2");
3613
+ return parseRefs(md).map((p) => typeof p === "string" ? p : chipLabel(p, 60)).join("").replace(/\s+/g, " ").trim();
3614
+ }
3615
+ function snippetOf(text, max = SNIPPET_MAX) {
3616
+ const line = plain(text);
3617
+ if (line.length <= max) return line;
3618
+ const cut = line.slice(0, max - 1);
3619
+ const space = cut.lastIndexOf(" ");
3620
+ return `${(space > max / 2 ? cut.slice(0, space) : cut).replace(/[\s.,;:]+$/, "")}…`;
3621
+ }
3622
+ const QUOTED = /^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;
3623
+ function parseReply(text) {
3624
+ const m = text.replace(/\r\n?/g, "\n").match(QUOTED);
3625
+ if (!m || !m[3].trim()) return { to: null, body: text };
3626
+ return {
3627
+ to: { who: m[1] === "Firstmate" ? "firstmate" : "captain", snippet: m[2] },
3628
+ body: m[3]
3629
+ };
3630
+ }
3631
+ function quotes(to, text) {
3632
+ const line = plain(text);
3633
+ if (!line) return false;
3634
+ const s = to.snippet.endsWith("…") ? to.snippet.slice(0, -1) : to.snippet;
3635
+ return to.snippet.endsWith("…") ? line.startsWith(s) : line === s;
3636
+ }
3637
+ const UNSORTED = "unsorted";
3638
+ const UNSORTED_TAG = { topic: UNSORTED, source: null };
3639
+ const MARKER = /^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i;
3640
+ const FENCE = /^\s{0,3}(`{3,}|~{3,})/;
3641
+ function parseMarkers(text) {
3642
+ const out = [];
3643
+ let slug = null;
3644
+ let lines = [];
3645
+ let fence = null;
3646
+ const flush = () => {
3647
+ const t = lines.join("\n").trim();
3648
+ if (t) out.push({ slug, text: t });
3649
+ lines = [];
3650
+ };
3651
+ for (const line of text.split("\n")) {
3652
+ const f = line.match(FENCE)?.[1];
3653
+ if (f && (!fence || f[0] === fence[0])) fence = fence ? null : f;
3654
+ const m = fence ? null : line.match(MARKER);
3655
+ if (m) {
3656
+ flush();
3657
+ slug = m[1];
3658
+ } else lines.push(line);
3659
+ }
3660
+ flush();
3661
+ if (!out.length && !text.trim()) return [];
3662
+ return out.length ? out : [{ slug, text: "" }];
3663
+ }
3664
+ const PREFIX = /^\[project ([^\]\s]+)\][ \u00a0]?/;
3665
+ function parseThread(text) {
3666
+ const m = text.match(PREFIX);
3667
+ return m ? { topic: m[1], text: text.slice(m[0].length) } : { topic: null, text };
3668
+ }
3669
+ const slugify = (s) => s.trim().toLowerCase().replace(/[^a-z0-9.]+/g, "-").replace(/^-+|-+$/g, "");
3670
+ function resolveTopic(slug, projects) {
3671
+ const s = slug.trim().toLowerCase();
3672
+ const key = slugify(slug);
3673
+ const p = projects.find((x) => x.id.toLowerCase() === s) ?? projects.find((x) => x.name.toLowerCase() === s) ?? projects.find((x) => slugify(x.id) === key || slugify(x.name) === key);
3674
+ return p ? p.id : key || UNSORTED;
3675
+ }
3676
+ function topicName(slug) {
3677
+ const words = slug.replace(/[-_]+/g, " ").trim();
3678
+ return words ? words[0].toUpperCase() + words.slice(1) : slug;
3679
+ }
3680
+ function guessed(text, tasks) {
3681
+ let found = null;
3682
+ for (const t of tasks) {
3683
+ if (!t.projectId || t.projectId === "unassigned" || t.projectId === found) continue;
3684
+ if (!mentions(text, t)) continue;
3685
+ if (found) return null;
3686
+ found = t.projectId;
3687
+ }
3688
+ return found;
3689
+ }
3690
+ function tagChat(items, tasks, projects, retags = {}) {
3691
+ const users = /* @__PURE__ */ new Map();
3692
+ const parts = /* @__PURE__ */ new Map();
3693
+ const turns = /* @__PURE__ */ new Map();
3694
+ const guess = (text) => {
3695
+ const p = guessed(text, tasks);
3696
+ return p ? { topic: p, source: "guess" } : null;
3697
+ };
3698
+ const own = (key, tag) => retags[key] ? { topic: retags[key], source: retags[key] === UNSORTED ? null : "you" } : tag;
3699
+ let lastCaptain = null;
3700
+ for (const it of items) {
3701
+ if (it.kind === "user") {
3702
+ const sent = parseThread(parseReply(it.text).body);
3703
+ const tag = sent.topic ? { topic: resolveTopic(sent.topic, projects), source: "thread" } : guess(sent.text) ?? UNSORTED_TAG;
3704
+ const final = own(it.id, tag);
3705
+ users.set(it.id, final);
3706
+ lastCaptain = final;
3707
+ continue;
3708
+ }
3709
+ if (it.kind !== "turn") continue;
3710
+ let carry = null;
3711
+ const asked = it.trigger === "captain" && lastCaptain?.source ? lastCaptain : null;
3712
+ for (const part of it.parts) {
3713
+ if (part.kind !== "text") continue;
3714
+ const sections = parseMarkers(part.text);
3715
+ const out = sections.map((s, i) => {
3716
+ let tag;
3717
+ if (s.slug) tag = { topic: resolveTopic(s.slug, projects), source: "marker" };
3718
+ else if (carry?.source === "marker") tag = carry;
3719
+ else
3720
+ tag = guess(s.text) ?? carry ?? (asked && { ...asked, source: "guess" }) ?? UNSORTED_TAG;
3721
+ if (tag.source) carry = tag;
3722
+ const intro = i === 0 && !s.slug && sections.length > 1;
3723
+ return { key: i ? `${part.id}#${i}` : part.id, text: s.text, tag, intro };
3724
+ });
3725
+ const final = out.map((s) => ({ ...s, tag: own(s.key, s.tag) }));
3726
+ parts.set(part.id, final);
3727
+ const lead = final.find((x) => !x.intro);
3728
+ if (!turns.has(it.id) && lead) turns.set(it.id, lead.tag);
3729
+ }
3730
+ if (!turns.has(it.id))
3731
+ turns.set(it.id, own(`turn:${it.id}`, asked ? { ...asked, source: "guess" } : UNSORTED_TAG));
3732
+ }
3733
+ return { users, parts, turns };
3734
+ }
3735
+ function cardTag(key, projectId, source, retags = {}) {
3736
+ const mine = retags[key];
3737
+ if (mine) return { topic: mine, source: mine === UNSORTED ? null : "you" };
3738
+ return projectId && projectId !== "unassigned" ? { topic: projectId, source } : UNSORTED_TAG;
3739
+ }
3740
+ function threadRows(entries, keep = null) {
3741
+ const rows = /* @__PURE__ */ new Map();
3742
+ for (const e of entries) {
3743
+ const at = e.at ? Date.parse(e.at) : NaN;
3744
+ for (const topic of new Set(e.topics)) {
3745
+ const r = rows.get(topic) ?? { topic, count: 0, needs: 0, last: 0 };
3746
+ r.count++;
3747
+ if (e.needs) r.needs++;
3748
+ if (!Number.isNaN(at)) r.last = Math.max(r.last, at);
3749
+ rows.set(topic, r);
3750
+ }
3751
+ }
3752
+ if (keep && !rows.has(keep)) rows.set(keep, { topic: keep, count: 0, needs: 0, last: 0 });
3753
+ return [...rows.values()].sort(
3754
+ (a, b) => Number(a.topic === UNSORTED) - Number(b.topic === UNSORTED) || b.last - a.last || a.topic.localeCompare(b.topic)
3755
+ );
3756
+ }
3757
+ function foldRuns(entries, thread) {
3758
+ const out = /* @__PURE__ */ new Map();
3759
+ let run = null;
3760
+ for (const e of entries) {
3761
+ if (e.topics.includes(thread)) {
3762
+ run = null;
3763
+ continue;
3764
+ }
3765
+ if (!run) run = { first: e.key, count: 0, topics: [], from: e.at, to: e.at };
3766
+ run.count++;
3767
+ run.to = e.at ?? run.to;
3768
+ for (const t of e.topics) if (!run.topics.includes(t)) run.topics.push(t);
3769
+ out.set(e.key, run);
3770
+ }
3771
+ return out;
3772
+ }
3773
+ function homeLabel(home) {
3774
+ const name = home?.replace(/[\\/]+$/, "").split(/[\\/]/).pop()?.trim();
3775
+ return name || null;
3776
+ }
3777
+ function initials(id) {
3778
+ const words = id.split(/[^\p{L}\p{N}]+/u).filter(Boolean);
3779
+ if (!words.length) return "?";
3780
+ if (words.length === 1) return words[0].slice(0, 2).toUpperCase();
3781
+ return (words[0][0] + words[1][0]).toUpperCase();
3782
+ }
3783
+ function hueOf(id) {
3784
+ let h = 0;
3785
+ for (const c of id) h = h * 31 + c.codePointAt(0) >>> 0;
3786
+ return h % 6;
3787
+ }
3788
+ const inPlay = (t) => t.status !== "queued" && t.status !== "landed" && t.status !== "closed";
3789
+ const failing = (t) => t.status === "failed" || t.status === "blocked" || t.status === "lost" || t.pipeline?.outcome === "failed" || t.passage.steps.some((s) => s.failed);
3790
+ function checksShare(tasks) {
3791
+ const playing = tasks.filter(inPlay);
3792
+ const bad = playing.filter(failing).length;
3793
+ return {
3794
+ percent: playing.length ? Math.round((playing.length - bad) / playing.length * 100) : 100,
3795
+ failing: bad,
3796
+ inPlay: playing.length
3797
+ };
3798
+ }
3799
+ function glance(projects, tasks, limit = 4) {
3800
+ return projects.map((p) => {
3801
+ const ts = tasks.filter((t) => t.projectId === p.id);
3802
+ const needs = ts.some(needsYou);
3803
+ const busy = ts.some((t) => t.busy || inPlay(t) && t.status === "working");
3804
+ return {
3805
+ id: p.id,
3806
+ name: p.name,
3807
+ landed: ts.length ? Math.round(ts.filter((t) => t.status === "landed").length / ts.length * 100) : 0,
3808
+ word: needs ? "Needs you" : busy ? "Working" : "Quiet",
3809
+ tone: needs ? "needs" : busy ? "busy" : "quiet",
3810
+ tasks: ts.length
3811
+ };
3812
+ }).filter((r) => r.tasks > 0).sort((a, b) => b.tasks - a.tasks || a.name.localeCompare(b.name)).slice(0, limit);
3813
+ }
3814
+
3815
+ export { checksShare as A, Bell as B, glance as C, Floating_layer as F, Gauge as G, Puzzle as P, SafePolygon as S, UNSORTED as U, Popover as a, Popover_trigger as b, Popover_content as c, Floating_layer_anchor as d, Popper_layer_force_mount as e, Popper_layer as f, getFloatingContentCSSVars as g, homeLabel as h, inPlay as i, FloatingArrowState as j, hueOf as k, initials as l, parseThread as m, UNSORTED_TAG as n, foldRuns as o, parseReply as p, tagChat as q, quotes as r, parseRefs as s, topicName as t, chipLabel as u, parseMarkers as v, previewCards as w, cardTag as x, threadRows as y, snippetOf as z };
3816
+ //# sourceMappingURL=bridge.js-C93awzgB.js.map