@aussieljk/forkbook 0.0.1-4 → 0.0.1-5

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 (246) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +35 -53
  3. package/dist/_browser-chunks/{Color-KRDPNBZS.js → Color-GTF4GM7L.js} +3 -3
  4. package/dist/_browser-chunks/{WithTooltip-523JD6VH.js → WithTooltip-V55S6YCY.js} +1 -1
  5. package/dist/_browser-chunks/{chunk-BZGX2THJ.js → chunk-HOSBMS2F.js} +3 -3
  6. package/dist/_browser-chunks/{chunk-LXQPPHMD.js → chunk-MJY6ITYT.js} +27 -27
  7. package/dist/_node-chunks/{attached-runtime-CYMSKF3A.js → attached-runtime-IOE3BXIY.js} +29 -29
  8. package/dist/_node-chunks/{builder-manager-RMLSIO45.js → builder-manager-GDFEGD72.js} +170 -215
  9. package/dist/_node-chunks/{chunk-M2UZP5GC.js → chunk-2GY2FKLH.js} +7 -7
  10. package/dist/_node-chunks/{chunk-UAALLQAQ.js → chunk-3DCJB2D4.js} +6 -6
  11. package/dist/_node-chunks/{chunk-ILFIERUB.js → chunk-3DX6THMV.js} +8 -8
  12. package/dist/_node-chunks/{chunk-IBO346NQ.js → chunk-45LRLOYO.js} +23 -23
  13. package/dist/_node-chunks/{chunk-CGWACHNW.js → chunk-4WO3GNZQ.js} +6 -6
  14. package/dist/_node-chunks/{chunk-ESZVID7Q.js → chunk-5KAJVK4E.js} +7 -7
  15. package/dist/_node-chunks/{chunk-QU5ANYM7.js → chunk-5LE7GXEC.js} +6 -6
  16. package/dist/_node-chunks/{chunk-F2N6BJRH.js → chunk-6DOJKR3V.js} +10 -10
  17. package/dist/_node-chunks/{chunk-RNF3Z4ZJ.js → chunk-6QQTZT3Z.js} +6 -6
  18. package/dist/_node-chunks/{chunk-GZBUCUF7.js → chunk-7TUSIVWS.js} +6 -6
  19. package/dist/_node-chunks/{chunk-VPOJCHKM.js → chunk-7XUQM6SR.js} +14 -14
  20. package/dist/_node-chunks/{chunk-2QWFS23O.js → chunk-A4XRNDN4.js} +7 -7
  21. package/dist/_node-chunks/{chunk-GEMKJCEE.js → chunk-AAAUVDWT.js} +10 -10
  22. package/dist/_node-chunks/{chunk-POXTROIX.js → chunk-AX2ALHBK.js} +6 -6
  23. package/dist/_node-chunks/{chunk-P6QAFJ5M.js → chunk-AXG3EMKS.js} +6 -6
  24. package/dist/_node-chunks/{chunk-NAYTBC72.js → chunk-AXJJB2K6.js} +8 -8
  25. package/dist/_node-chunks/{chunk-SQMCVWOR.js → chunk-AXQ6LLSE.js} +8 -8
  26. package/dist/_node-chunks/{chunk-AY6B2C46.js → chunk-B2IOB2V3.js} +7 -7
  27. package/dist/_node-chunks/{chunk-4LPAWP5S.js → chunk-BBD2KUV4.js} +19 -19
  28. package/dist/_node-chunks/{chunk-DVLFCSDG.js → chunk-BFZG4UTW.js} +7 -7
  29. package/dist/_node-chunks/{chunk-SSZ5REKS.js → chunk-BRD332PB.js} +8 -8
  30. package/dist/_node-chunks/{chunk-B5VFV3ZW.js → chunk-BTFSFATC.js} +7 -7
  31. package/dist/_node-chunks/{chunk-FNGLVURC.js → chunk-BV3QRFE6.js} +6 -6
  32. package/dist/_node-chunks/{chunk-FJDJE7XC.js → chunk-CGXW2HFE.js} +6 -6
  33. package/dist/_node-chunks/{chunk-XD5SYXAU.js → chunk-CK4EHW3K.js} +23 -23
  34. package/dist/_node-chunks/{chunk-RMLENEZC.js → chunk-D6B2DRQZ.js} +8 -8
  35. package/dist/_node-chunks/{chunk-K3I3G4VL.js → chunk-E2XKJLXK.js} +7 -7
  36. package/dist/_node-chunks/{chunk-DD2S4BFV.js → chunk-E4C2H45J.js} +6 -6
  37. package/dist/_node-chunks/{chunk-74IEHSIR.js → chunk-E4TBS4MV.js} +8 -8
  38. package/dist/_node-chunks/{chunk-WBTLBIED.js → chunk-E6KXSYWR.js} +6 -6
  39. package/dist/_node-chunks/{chunk-KN2S7JF2.js → chunk-ES5QZBSB.js} +6 -6
  40. package/dist/_node-chunks/{chunk-DIUBMAMV.js → chunk-EWAGCBER.js} +8 -8
  41. package/dist/_node-chunks/{chunk-MZMPFII2.js → chunk-F2LQJXAB.js} +6 -6
  42. package/dist/_node-chunks/{chunk-BOUA7OB7.js → chunk-F4Q7OCCN.js} +8 -8
  43. package/dist/_node-chunks/{chunk-YYIZ2PC4.js → chunk-FA36CEN4.js} +6 -6
  44. package/dist/_node-chunks/{chunk-7XCJ7RAJ.js → chunk-GR65OLAH.js} +7 -7
  45. package/dist/_node-chunks/{chunk-2IJCISIB.js → chunk-GS4VNNSS.js} +6 -6
  46. package/dist/_node-chunks/{chunk-YU2WFBFL.js → chunk-HCX5R46Q.js} +7 -7
  47. package/dist/_node-chunks/{chunk-LGUMVMBA.js → chunk-HWY2CAUH.js} +6 -6
  48. package/dist/_node-chunks/{chunk-B3LK7C7B.js → chunk-I3DKGHVD.js} +9 -9
  49. package/dist/_node-chunks/{chunk-NHIRHARE.js → chunk-J64XMUPF.js} +10 -10
  50. package/dist/_node-chunks/{chunk-KZBZYQTZ.js → chunk-JJNO3SFI.js} +9 -9
  51. package/dist/_node-chunks/{chunk-X2KWNNFB.js → chunk-KCAPE7OJ.js} +6 -6
  52. package/dist/_node-chunks/{chunk-X3E55W5S.js → chunk-KQFHT7SW.js} +6 -6
  53. package/dist/_node-chunks/{chunk-4GD7MMLJ.js → chunk-L5CY6HKG.js} +7 -7
  54. package/dist/_node-chunks/{chunk-JEEXR245.js → chunk-LCXIUTOU.js} +7 -7
  55. package/dist/_node-chunks/{chunk-6Y6RBJD7.js → chunk-LSP54OYM.js} +8 -8
  56. package/dist/_node-chunks/{chunk-5ZLOPVTG.js → chunk-M2QB5ALN.js} +6 -6
  57. package/dist/_node-chunks/{chunk-2NWHHNNI.js → chunk-MCZZMBPA.js} +6 -6
  58. package/dist/_node-chunks/{chunk-V2JDVM46.js → chunk-MDGNN3FJ.js} +6 -6
  59. package/dist/_node-chunks/{chunk-MRZD5SBV.js → chunk-MHDKWHOA.js} +6 -6
  60. package/dist/_node-chunks/{chunk-NYRUWAL3.js → chunk-MMFUHYSU.js} +6 -6
  61. package/dist/_node-chunks/{chunk-FAZ3MUOI.js → chunk-N4FLP7AO.js} +7 -7
  62. package/dist/_node-chunks/{chunk-UIFLXDUL.js → chunk-NDGTNFUN.js} +12 -12
  63. package/dist/_node-chunks/{chunk-STRSG3GT.js → chunk-NYWD5LYM.js} +6 -6
  64. package/dist/_node-chunks/{chunk-WHZWLJGO.js → chunk-OB2XHL53.js} +27 -27
  65. package/dist/_node-chunks/{chunk-HP5UY6OY.js → chunk-OSJFTZ5N.js} +6 -6
  66. package/dist/_node-chunks/{chunk-3XDIBUGD.js → chunk-OTFIQXHR.js} +8 -8
  67. package/dist/_node-chunks/{chunk-QDLR4JF5.js → chunk-PHXCOTMO.js} +10 -10
  68. package/dist/_node-chunks/{chunk-OS5LQEC6.js → chunk-Q33BYVLY.js} +7 -7
  69. package/dist/_node-chunks/{chunk-KINEBDMM.js → chunk-QQXFB4YA.js} +9 -9
  70. package/dist/_node-chunks/{chunk-AU3SF2WM.js → chunk-QZVFIEOM.js} +6 -6
  71. package/dist/_node-chunks/{chunk-2APY2YSW.js → chunk-RCPKLP3X.js} +7 -7
  72. package/dist/_node-chunks/{chunk-OQ4NCWE4.js → chunk-RECGEABN.js} +7 -7
  73. package/dist/_node-chunks/{chunk-653BSJIX.js → chunk-SAAQFJL4.js} +6 -6
  74. package/dist/_node-chunks/{chunk-UMZSNFWM.js → chunk-SDXU22OH.js} +6 -6
  75. package/dist/_node-chunks/{chunk-XBXGLD3K.js → chunk-SJZQ44OR.js} +6 -6
  76. package/dist/_node-chunks/{chunk-A4YELYR3.js → chunk-SR3BCYEH.js} +6 -6
  77. package/dist/_node-chunks/{chunk-INEYTOWF.js → chunk-SUJXQU74.js} +8 -8
  78. package/dist/_node-chunks/{chunk-A2UMIN5B.js → chunk-T2I453AJ.js} +7 -7
  79. package/dist/_node-chunks/{chunk-XH6TDVML.js → chunk-TYCDPVIH.js} +6 -6
  80. package/dist/_node-chunks/{chunk-WS367FSJ.js → chunk-TZ2TZW2K.js} +6 -6
  81. package/dist/_node-chunks/{chunk-SBQT3LMM.js → chunk-U47PBQZ3.js} +10 -10
  82. package/dist/_node-chunks/chunk-UGFY5LEG.js +18 -0
  83. package/dist/_node-chunks/{chunk-U5QMVW3H.js → chunk-UKEJISQU.js} +7 -7
  84. package/dist/_node-chunks/{chunk-YGXJOSRU.js → chunk-UM5G27IC.js} +7 -7
  85. package/dist/_node-chunks/{chunk-WEW23EEE.js → chunk-UO5ZOCSQ.js} +8 -8
  86. package/dist/_node-chunks/{chunk-HUFAUSEX.js → chunk-UW35FCXF.js} +6 -6
  87. package/dist/_node-chunks/{chunk-MOITZTEA.js → chunk-V45RRBTK.js} +8 -8
  88. package/dist/_node-chunks/{chunk-OIIORQX5.js → chunk-VBSVLIXU.js} +6 -6
  89. package/dist/_node-chunks/{chunk-7JA2DMCJ.js → chunk-VJSOHPVD.js} +6 -6
  90. package/dist/_node-chunks/{chunk-EGS2SAD2.js → chunk-VMUXW2E2.js} +12 -12
  91. package/dist/_node-chunks/{chunk-IR34HUSL.js → chunk-VN3A5CEH.js} +7 -7
  92. package/dist/_node-chunks/{chunk-XWQEWRFD.js → chunk-VNXE7UJL.js} +6 -6
  93. package/dist/_node-chunks/chunk-VRJJ43P2.js +11 -0
  94. package/dist/_node-chunks/{chunk-HENM5ZK3.js → chunk-WCJUS7OC.js} +7 -7
  95. package/dist/_node-chunks/{chunk-UXW4I2CN.js → chunk-WHDCECIV.js} +7 -7
  96. package/dist/_node-chunks/{chunk-GKTCJPLL.js → chunk-WMBMSNB7.js} +6 -6
  97. package/dist/_node-chunks/{chunk-KXDJ77EW.js → chunk-WMQ2VCTF.js} +7 -7
  98. package/dist/_node-chunks/{chunk-AFKKN27O.js → chunk-XUHEL63G.js} +6 -6
  99. package/dist/_node-chunks/{chunk-5TPSYG4L.js → chunk-YLKS7U3M.js} +8 -8
  100. package/dist/_node-chunks/{chunk-TLVEPWBN.js → chunk-YTBTCM22.js} +6 -6
  101. package/dist/_node-chunks/{chunk-NYAWUR6L.js → chunk-YV2QBXU6.js} +8 -8
  102. package/dist/_node-chunks/{chunk-J3M3X7GO.js → chunk-ZPPVG262.js} +6 -6
  103. package/dist/_node-chunks/{chunk-PDCSUZ4L.js → chunk-ZZNBVMBU.js} +7 -7
  104. package/dist/_node-chunks/dist-VFUGPNLK.js +16 -0
  105. package/dist/_node-chunks/{globby-HRQV5N3V.js → globby-N7LO32D3.js} +10 -10
  106. package/dist/_node-chunks/{jiti-WE7NHS2Y.js → jiti-SJDZ7LQB.js} +7 -7
  107. package/dist/_node-chunks/{lib-7MVA6CTW.js → lib-4HD6QL5R.js} +7 -7
  108. package/dist/_node-chunks/{local-runtime-KTI3DH6X.js → local-runtime-RW6AAWSX.js} +20 -20
  109. package/dist/_node-chunks/{mdx-plugin-2E3SW5TL.js → mdx-plugin-BKWCT6CB.js} +14 -14
  110. package/dist/_node-chunks/{monorepo-MWAMFHKY.js → monorepo-ZFJ6HM34.js} +11 -11
  111. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-MGORG6W7.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js} +11 -11
  112. package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +22 -0
  113. package/dist/_node-chunks/{pattern-copy-play-QTQOY7E7.js → pattern-copy-play-2ZMJNCBS.js} +9 -9
  114. package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +20 -0
  115. package/dist/_node-chunks/{rehype-external-links-T7DZNKMB.js → rehype-external-links-RT5Z62RV.js} +9 -9
  116. package/dist/_node-chunks/{rehype-slug-CSHI5WYI.js → rehype-slug-H5TWHJ6G.js} +9 -9
  117. package/dist/_node-chunks/{relaxed-limits-RAZD36YR.js → relaxed-limits-DYLWZGE4.js} +11 -11
  118. package/dist/_node-chunks/{run-S6XSLPEB.js → run-65LLGSVR.js} +13 -13
  119. package/dist/_node-chunks/{run-KJ3Z2TTY.js → run-BQQLK454.js} +17 -17
  120. package/dist/_node-chunks/session-id-6Z2RXBTG.js +23 -0
  121. package/dist/_node-chunks/{setup-35J66GFB.js → setup-NEO7XX66.js} +8 -8
  122. package/dist/_node-chunks/{vitest.config.4.template-Z7OCRDKD.js → vitest.config.4.template-6P3FZQTY.js} +7 -7
  123. package/dist/addon-a11y/manager.js +24 -18
  124. package/dist/addon-a11y/preset.js +7 -7
  125. package/dist/addon-docs/blocks.js +28 -21
  126. package/dist/addon-docs/manager.js +1 -1
  127. package/dist/addon-docs/preset.js +10 -10
  128. package/dist/addon-links/preview.d.ts +1 -1
  129. package/dist/addon-mcp/preset.js +8 -8
  130. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +2 -2
  131. package/dist/addon-pseudo-states/manager.js +2 -2
  132. package/dist/addon-pseudo-states/preview.d.ts +1 -1
  133. package/dist/addon-themes/manager.js +1 -1
  134. package/dist/addon-themes/postinstall.js +7 -7
  135. package/dist/addon-vitest/constants.js +8 -8
  136. package/dist/addon-vitest/manager.js +7 -7
  137. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  138. package/dist/addon-vitest/node/vitest.js +16 -16
  139. package/dist/addon-vitest/postinstall.js +10 -10
  140. package/dist/addon-vitest/preset.js +14 -14
  141. package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
  142. package/dist/addon-vitest/vitest-plugin/index.js +13 -13
  143. package/dist/babel/index.js +12 -12
  144. package/dist/bin/core.js +58 -58
  145. package/dist/bin/dispatcher.js +10 -10
  146. package/dist/bin/loader.js +8 -8
  147. package/dist/builder-vite/index.js +15 -15
  148. package/dist/builder-vite/preset.js +13 -13
  149. package/dist/{chunk-BYnH2sbb.d.ts → chunk-CZHsX9Zo.d.ts} +1 -1
  150. package/dist/{chunk-DvufcbCc.d.ts → chunk-Ce6uhJuR.d.ts} +1 -1
  151. package/dist/{chunk-B2xylxt5.d.ts → chunk-DROZ9oel.d.ts} +7 -271
  152. package/dist/{chunk-DIz17UEJ.d.ts → chunk-DpljNJTz.d.ts} +1 -1
  153. package/dist/{chunk-DF6btpT3.d.ts → chunk-Jf7j2Ot0.d.ts} +1 -1
  154. package/dist/cli/index.d.ts +1 -1
  155. package/dist/cli/index.js +24 -24
  156. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  157. package/dist/cli/tools/sdk/child-host.js +17 -17
  158. package/dist/cli/tools/sdk/index.d.ts +1 -1
  159. package/dist/cli/tools/sdk/index.js +18 -18
  160. package/dist/cli-commands/bin/index.js +7 -7
  161. package/dist/common/index.d.ts +2 -2
  162. package/dist/common/index.js +37 -37
  163. package/dist/components/index.js +40 -40
  164. package/dist/core-events/index.d.ts +1 -1
  165. package/dist/core-server/index.d.ts +2 -2
  166. package/dist/core-server/index.js +71 -71
  167. package/dist/core-server/presets/common-manager.js +43 -37
  168. package/dist/core-server/presets/common-override-preset.js +9 -9
  169. package/dist/core-server/presets/common-preset.js +40 -40
  170. package/dist/create/bin/index.js +7 -7
  171. package/dist/create/index.js +15 -15
  172. package/dist/csf/index.d.ts +2 -2
  173. package/dist/csf-tools/index.js +12 -12
  174. package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-ALpzCL93.js} +2 -2
  175. package/dist/manager/_manager-chunks/globals-runtime-BMCaBukU.js +413 -0
  176. package/dist/manager/_manager-chunks/globals-runtime-BcNHymiF.js +1960 -0
  177. package/dist/manager/_manager-chunks/globals-runtime-BgVwdR45.js +1396 -0
  178. package/dist/manager/_manager-chunks/globals-runtime-Bke4A4DG.js +2093 -0
  179. package/dist/manager/_manager-chunks/{globals-runtime-DkAPXCvc.js → globals-runtime-Bon7UvQk.js} +1 -1
  180. package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-CF4o9_wT.js} +1 -1
  181. package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-CTB3rhS1.js} +4 -4
  182. package/dist/manager/_manager-chunks/globals-runtime-CUBVmgcG.js +3414 -0
  183. package/dist/manager/_manager-chunks/{globals-runtime-C9P2ZbMM.js → globals-runtime-CXKb33hg.js} +10 -10
  184. package/dist/manager/_manager-chunks/globals-runtime-CiLcg4q9.js +41 -0
  185. package/dist/manager/_manager-chunks/{globals-runtime-dKGpUUSb.js → globals-runtime-Cr3nYYcT.js} +241 -16
  186. package/dist/manager/_manager-chunks/globals-runtime-DCOX9nD5.js +462 -0
  187. package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +1584 -0
  188. package/dist/manager/_manager-chunks/{globals-runtime-q5R9dawi.js → globals-runtime-DMvB3-IM.js} +89 -88
  189. package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-DW1HVuLt.js} +4 -4
  190. package/dist/manager/_manager-chunks/{globals-runtime-ZHrQFa3-.js → globals-runtime-D_YKR9nf.js} +3 -3
  191. package/dist/manager/_manager-chunks/{globals-runtime-8HkdnU2F.js → globals-runtime-DqNrRmOM.js} +4 -4
  192. package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-m07udJ_K.js} +2 -2
  193. package/dist/manager/_manager-chunks/{globals-runtime-DuLFjsF4.js → globals-runtime-zVfMhZAt.js} +1 -1
  194. package/dist/manager/_manager-chunks/runtime-B-eSQdxk.js +691 -0
  195. package/dist/manager/_manager-chunks/{runtime-DdCaBowH.js → runtime-Bldwclun.js} +6 -6
  196. package/dist/manager/_manager-chunks/{runtime-CE2sHVqs.js → runtime-Cdz2BHhM.js} +31 -31
  197. package/dist/manager/_manager-chunks/{runtime-BdLdsHca.js → runtime-Cmu7D8A0.js} +210 -235
  198. package/dist/manager/_manager-chunks/{runtime-CKP1i0--.js → runtime-CuJiHYCp.js} +1 -1
  199. package/dist/manager/_manager-chunks/runtime-DFhLVh8q.js +456 -0
  200. package/dist/manager/_manager-chunks/{runtime-50_aob4S.js → runtime-DGHNKNQl.js} +2 -2
  201. package/dist/manager/_manager-chunks/{runtime-BGvLm94o.js → runtime-DrjpEyLM.js} +3 -3
  202. package/dist/manager/_manager-chunks/{runtime-B9QzcYO3.js → runtime-a5zd7km2.js} +3 -3
  203. package/dist/manager/globals-runtime.js +1 -1
  204. package/dist/manager/globals.d.ts +1 -1
  205. package/dist/manager/globals.js +1 -1
  206. package/dist/manager/runtime.js +1 -1
  207. package/dist/manager-api/index.d.ts +1 -1
  208. package/dist/manager-api/index.js +2 -2
  209. package/dist/manager-errors.d.ts +1 -1
  210. package/dist/mcp/index.js +8 -8
  211. package/dist/mocking-utils/index.js +9 -9
  212. package/dist/nextjs-vite/node/index.js +7 -7
  213. package/dist/nextjs-vite/preset.js +11 -11
  214. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  215. package/dist/nextjs-vite-plugin/index.js +8 -8
  216. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  217. package/dist/node-logger/index.js +9 -9
  218. package/dist/oxc-parser/index.js +10 -10
  219. package/dist/oxc-parser/worker.js +10 -10
  220. package/dist/preview-api/index.d.ts +1 -1
  221. package/dist/preview-errors.d.ts +1 -1
  222. package/dist/react/docgen/docgen-worker.js +12 -12
  223. package/dist/react/preset.js +14 -14
  224. package/dist/react-native/bin/get-stories.js +8 -8
  225. package/dist/react-native/metro/node.js +9 -9
  226. package/dist/react-native/metro/withStorybook.js +10 -10
  227. package/dist/react-native/scripts/generate.js +8 -8
  228. package/dist/react-vite/node/index.js +7 -7
  229. package/dist/react-vite/preset.js +7 -7
  230. package/dist/server-errors.d.ts +1 -1
  231. package/dist/server-errors.js +9 -9
  232. package/dist/shared/open-service/index.d.ts +1 -1
  233. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  234. package/dist/telemetry/index.js +45 -45
  235. package/dist/types/index.d.ts +1 -1
  236. package/package.json +2 -2
  237. package/dist/_node-chunks/chunk-7XCEKQGV.js +0 -18
  238. package/dist/_node-chunks/chunk-HQM4ISVU.js +0 -11
  239. package/dist/_node-chunks/dist-CNA633FI.js +0 -16
  240. package/dist/_node-chunks/optimized-tests-IAX6YURR.js +0 -22
  241. package/dist/_node-chunks/postinstallAddon-ROH2TBJX.js +0 -20
  242. package/dist/_node-chunks/session-id-GM226DGP.js +0 -23
  243. package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
  244. package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
  245. package/dist/manager/_manager-chunks/runtime-89Cb0A8U.js +0 -998
  246. package/dist/manager/_manager-chunks/runtime-wL4UO7YO.js +0 -452
@@ -0,0 +1,1396 @@
1
+ import { a as __toESM, n as __esmMin } from "./globals-runtime-BdGkqNEt.js";
2
+ import { A as require_react_dom, j as require_react } from "./globals-runtime-D_YKR9nf.js";
3
+ //#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
4
+ function hasWindow() {
5
+ return typeof window !== "undefined";
6
+ }
7
+ function getNodeName(node) {
8
+ if (isNode(node)) return (node.nodeName || "").toLowerCase();
9
+ return "#document";
10
+ }
11
+ function getWindow(node) {
12
+ var _node$ownerDocument;
13
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
14
+ }
15
+ function getDocumentElement(node) {
16
+ var _ref;
17
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
18
+ }
19
+ function isNode(value) {
20
+ if (!hasWindow()) return false;
21
+ return value instanceof Node || value instanceof getWindow(value).Node;
22
+ }
23
+ function isElement(value) {
24
+ if (!hasWindow()) return false;
25
+ return value instanceof Element || value instanceof getWindow(value).Element;
26
+ }
27
+ function isHTMLElement(value) {
28
+ if (!hasWindow()) return false;
29
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
30
+ }
31
+ function isShadowRoot(value) {
32
+ if (!hasWindow() || typeof ShadowRoot === "undefined") return false;
33
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
34
+ }
35
+ function isOverflowElement(element) {
36
+ const { overflow, overflowX, overflowY, display } = getComputedStyle$1(element);
37
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
38
+ }
39
+ function isTableElement(element) {
40
+ return /^(table|td|th)$/.test(getNodeName(element));
41
+ }
42
+ function isTopLayer(element) {
43
+ try {
44
+ if (element.matches(":popover-open")) return true;
45
+ } catch (_e) {}
46
+ try {
47
+ return element.matches(":modal");
48
+ } catch (_e) {
49
+ return false;
50
+ }
51
+ }
52
+ function isContainingBlock(elementOrCss) {
53
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
54
+ 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 || "");
55
+ }
56
+ function getContainingBlock(element) {
57
+ let currentNode = getParentNode(element);
58
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
59
+ if (isContainingBlock(currentNode)) return currentNode;
60
+ else if (isTopLayer(currentNode)) return null;
61
+ currentNode = getParentNode(currentNode);
62
+ }
63
+ return null;
64
+ }
65
+ function isWebKit() {
66
+ if (isWebKitValue == null) isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
67
+ return isWebKitValue;
68
+ }
69
+ function isLastTraversableNode(node) {
70
+ return /^(html|body|#document)$/.test(getNodeName(node));
71
+ }
72
+ function getComputedStyle$1(element) {
73
+ return getWindow(element).getComputedStyle(element);
74
+ }
75
+ function getNodeScroll(element) {
76
+ if (isElement(element)) return {
77
+ scrollLeft: element.scrollLeft,
78
+ scrollTop: element.scrollTop
79
+ };
80
+ return {
81
+ scrollLeft: element.scrollX,
82
+ scrollTop: element.scrollY
83
+ };
84
+ }
85
+ function getParentNode(node) {
86
+ if (getNodeName(node) === "html") return node;
87
+ const result = node.assignedSlot || node.parentNode || isShadowRoot(node) && node.host || getDocumentElement(node);
88
+ return isShadowRoot(result) ? result.host : result;
89
+ }
90
+ function getNearestOverflowAncestor(node) {
91
+ const parentNode = getParentNode(node);
92
+ if (isLastTraversableNode(parentNode)) return (node.ownerDocument || node).body;
93
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) return parentNode;
94
+ return getNearestOverflowAncestor(parentNode);
95
+ }
96
+ function getOverflowAncestors(node, list, traverseIframes) {
97
+ var _node$ownerDocument2;
98
+ if (list === void 0) list = [];
99
+ if (traverseIframes === void 0) traverseIframes = true;
100
+ const scrollableAncestor = getNearestOverflowAncestor(node);
101
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
102
+ const win = getWindow(scrollableAncestor);
103
+ if (isBody) {
104
+ const frameElement = getFrameElement(win);
105
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
106
+ } else return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
107
+ }
108
+ function getFrameElement(win) {
109
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
110
+ }
111
+ var willChangeRe, containRe, isNotNone, isWebKitValue;
112
+ function init_floating_ui_utils_dom() {
113
+ return (init_floating_ui_utils_dom = __esmMin((() => {
114
+ willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
115
+ containRe = /paint|layout|strict|content/;
116
+ isNotNone = (value) => !!value && value !== "none";
117
+ })))();
118
+ }
119
+ //#endregion
120
+ //#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
121
+ function clamp(start, value, end) {
122
+ return max(start, min(value, end));
123
+ }
124
+ function evaluate(value, param) {
125
+ return typeof value === "function" ? value(param) : value;
126
+ }
127
+ function getSide(placement) {
128
+ return placement.split("-")[0];
129
+ }
130
+ function getAlignment(placement) {
131
+ return placement.split("-")[1];
132
+ }
133
+ function getOppositeAxis(axis) {
134
+ return axis === "x" ? "y" : "x";
135
+ }
136
+ function getAxisLength(axis) {
137
+ return axis === "y" ? "height" : "width";
138
+ }
139
+ function getSideAxis(placement) {
140
+ const firstChar = placement[0];
141
+ return firstChar === "t" || firstChar === "b" ? "y" : "x";
142
+ }
143
+ function getAlignmentAxis(placement) {
144
+ return getOppositeAxis(getSideAxis(placement));
145
+ }
146
+ function getAlignmentSides(placement, rects, rtl) {
147
+ if (rtl === void 0) rtl = false;
148
+ const alignment = getAlignment(placement);
149
+ const alignmentAxis = getAlignmentAxis(placement);
150
+ const length = getAxisLength(alignmentAxis);
151
+ let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
152
+ if (rects.reference[length] > rects.floating[length]) mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
153
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
154
+ }
155
+ function getExpandedPlacements(placement) {
156
+ const oppositePlacement = getOppositePlacement(placement);
157
+ return [
158
+ getOppositeAlignmentPlacement(placement),
159
+ oppositePlacement,
160
+ getOppositeAlignmentPlacement(oppositePlacement)
161
+ ];
162
+ }
163
+ function getOppositeAlignmentPlacement(placement) {
164
+ return placement.includes("start") ? placement.replace("start", "end") : placement.replace("end", "start");
165
+ }
166
+ function getSideList(side, isStart, rtl) {
167
+ switch (side) {
168
+ case "top":
169
+ case "bottom":
170
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
171
+ return isStart ? lrPlacement : rlPlacement;
172
+ case "left":
173
+ case "right": return isStart ? tbPlacement : btPlacement;
174
+ default: return [];
175
+ }
176
+ }
177
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
178
+ const alignment = getAlignment(placement);
179
+ let list = getSideList(getSide(placement), direction === "start", rtl);
180
+ if (alignment) {
181
+ list = list.map((side) => side + "-" + alignment);
182
+ if (flipAlignment) list = list.concat(list.map(getOppositeAlignmentPlacement));
183
+ }
184
+ return list;
185
+ }
186
+ function getOppositePlacement(placement) {
187
+ const side = getSide(placement);
188
+ return oppositeSideMap[side] + placement.slice(side.length);
189
+ }
190
+ function expandPaddingObject(padding) {
191
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
192
+ return {
193
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
194
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
195
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
196
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
197
+ };
198
+ }
199
+ function getPaddingObject(padding) {
200
+ return typeof padding !== "number" ? expandPaddingObject(padding) : {
201
+ top: padding,
202
+ right: padding,
203
+ bottom: padding,
204
+ left: padding
205
+ };
206
+ }
207
+ function rectToClientRect(rect) {
208
+ const { x, y, width, height } = rect;
209
+ return {
210
+ width,
211
+ height,
212
+ top: y,
213
+ left: x,
214
+ right: x + width,
215
+ bottom: y + height,
216
+ x,
217
+ y
218
+ };
219
+ }
220
+ var min, max, round, floor, createCoords, oppositeSideMap, lrPlacement, rlPlacement, tbPlacement, btPlacement;
221
+ function init_floating_ui_utils() {
222
+ return (init_floating_ui_utils = __esmMin((() => {
223
+ min = Math.min;
224
+ max = Math.max;
225
+ round = Math.round;
226
+ floor = Math.floor;
227
+ createCoords = (v) => ({
228
+ x: v,
229
+ y: v
230
+ });
231
+ oppositeSideMap = {
232
+ left: "right",
233
+ right: "left",
234
+ bottom: "top",
235
+ top: "bottom"
236
+ };
237
+ lrPlacement = ["left", "right"];
238
+ rlPlacement = ["right", "left"];
239
+ tbPlacement = ["top", "bottom"];
240
+ btPlacement = ["bottom", "top"];
241
+ })))();
242
+ }
243
+ //#endregion
244
+ //#region ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
245
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
246
+ let { reference, floating } = _ref;
247
+ const sideAxis = getSideAxis(placement);
248
+ const alignmentAxis = getAlignmentAxis(placement);
249
+ const alignLength = getAxisLength(alignmentAxis);
250
+ const side = getSide(placement);
251
+ const isVertical = sideAxis === "y";
252
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
253
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
254
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
255
+ let coords;
256
+ switch (side) {
257
+ case "top":
258
+ coords = {
259
+ x: commonX,
260
+ y: reference.y - floating.height
261
+ };
262
+ break;
263
+ case "bottom":
264
+ coords = {
265
+ x: commonX,
266
+ y: reference.y + reference.height
267
+ };
268
+ break;
269
+ case "right":
270
+ coords = {
271
+ x: reference.x + reference.width,
272
+ y: commonY
273
+ };
274
+ break;
275
+ case "left":
276
+ coords = {
277
+ x: reference.x - floating.width,
278
+ y: commonY
279
+ };
280
+ break;
281
+ default: coords = {
282
+ x: reference.x,
283
+ y: reference.y
284
+ };
285
+ }
286
+ const alignment = getAlignment(placement);
287
+ if (alignment) coords[alignmentAxis] += commonAlign * (alignment === "end" ? 1 : -1) * (rtl && isVertical ? -1 : 1);
288
+ return coords;
289
+ }
290
+ /**
291
+ * Resolves with an object of overflow side offsets that determine how much the
292
+ * element is overflowing a given clipping boundary on each side.
293
+ * - positive = overflowing the boundary by that number of pixels
294
+ * - negative = how many pixels left before it will overflow
295
+ * - 0 = lies flush with the boundary
296
+ * @see https://floating-ui.com/docs/detectOverflow
297
+ */
298
+ async function detectOverflow(state, options) {
299
+ var _await$platform$isEle;
300
+ if (options === void 0) options = {};
301
+ const { x, y, platform, rects, elements, strategy } = state;
302
+ const { boundary = "clippingAncestors", rootBoundary = "viewport", elementContext = "floating", altBoundary = false, padding = 0 } = evaluate(options, state);
303
+ const paddingObject = getPaddingObject(padding);
304
+ const element = elements[altBoundary ? elementContext === "floating" ? "reference" : "floating" : elementContext];
305
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
306
+ 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)),
307
+ boundary,
308
+ rootBoundary,
309
+ strategy
310
+ }));
311
+ const rect = elementContext === "floating" ? {
312
+ x,
313
+ y,
314
+ width: rects.floating.width,
315
+ height: rects.floating.height
316
+ } : rects.reference;
317
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
318
+ const offsetScale = await (platform.isElement == null ? void 0 : platform.isElement(offsetParent)) && await (platform.getScale == null ? void 0 : platform.getScale(offsetParent)) || {
319
+ x: 1,
320
+ y: 1
321
+ };
322
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
323
+ elements,
324
+ rect,
325
+ offsetParent,
326
+ strategy
327
+ }) : rect);
328
+ return {
329
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
330
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
331
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
332
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
333
+ };
334
+ }
335
+ async function convertValueToCoords(state, options) {
336
+ const { placement, platform, elements } = state;
337
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
338
+ const side = getSide(placement);
339
+ const alignment = getAlignment(placement);
340
+ const isVertical = getSideAxis(placement) === "y";
341
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
342
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
343
+ const rawValue = evaluate(options, state);
344
+ let { mainAxis, crossAxis, alignmentAxis } = typeof rawValue === "number" ? {
345
+ mainAxis: rawValue,
346
+ crossAxis: 0,
347
+ alignmentAxis: null
348
+ } : {
349
+ mainAxis: rawValue.mainAxis || 0,
350
+ crossAxis: rawValue.crossAxis || 0,
351
+ alignmentAxis: rawValue.alignmentAxis
352
+ };
353
+ if (alignment && typeof alignmentAxis === "number") crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
354
+ return isVertical ? {
355
+ x: crossAxis * crossAxisMulti,
356
+ y: mainAxis * mainAxisMulti
357
+ } : {
358
+ x: mainAxis * mainAxisMulti,
359
+ y: crossAxis * crossAxisMulti
360
+ };
361
+ }
362
+ var MAX_RESET_COUNT, computePosition$1, flip$1, originSides, offset$1, shift$1, limitShift$1, size$1;
363
+ function init_floating_ui_core() {
364
+ return (init_floating_ui_core = __esmMin((() => {
365
+ init_floating_ui_utils();
366
+ MAX_RESET_COUNT = 50;
367
+ computePosition$1 = async (reference, floating, config) => {
368
+ const { placement = "bottom", strategy = "absolute", middleware = [], platform } = config;
369
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
370
+ ...platform,
371
+ detectOverflow
372
+ };
373
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
374
+ let rects = await platform.getElementRects({
375
+ reference,
376
+ floating,
377
+ strategy
378
+ });
379
+ let { x, y } = computeCoordsFromPlacement(rects, placement, rtl);
380
+ let statefulPlacement = placement;
381
+ let resetCount = 0;
382
+ const middlewareData = {};
383
+ for (let i = 0; i < middleware.length; i++) {
384
+ const currentMiddleware = middleware[i];
385
+ if (!currentMiddleware) continue;
386
+ const { name, fn } = currentMiddleware;
387
+ const { x: nextX, y: nextY, data, reset } = await fn({
388
+ x,
389
+ y,
390
+ initialPlacement: placement,
391
+ placement: statefulPlacement,
392
+ strategy,
393
+ middlewareData,
394
+ rects,
395
+ platform: platformWithDetectOverflow,
396
+ elements: {
397
+ reference,
398
+ floating
399
+ }
400
+ });
401
+ x = nextX != null ? nextX : x;
402
+ y = nextY != null ? nextY : y;
403
+ middlewareData[name] = {
404
+ ...middlewareData[name],
405
+ ...data
406
+ };
407
+ if (reset && resetCount < MAX_RESET_COUNT) {
408
+ resetCount++;
409
+ if (typeof reset === "object") {
410
+ if (reset.placement) statefulPlacement = reset.placement;
411
+ if (reset.rects) rects = reset.rects === true ? await platform.getElementRects({
412
+ reference,
413
+ floating,
414
+ strategy
415
+ }) : reset.rects;
416
+ ({x, y} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
417
+ }
418
+ i = -1;
419
+ }
420
+ }
421
+ return {
422
+ x,
423
+ y,
424
+ placement: statefulPlacement,
425
+ strategy,
426
+ middlewareData
427
+ };
428
+ };
429
+ flip$1 = function(options) {
430
+ if (options === void 0) options = {};
431
+ return {
432
+ name: "flip",
433
+ options,
434
+ async fn(state) {
435
+ var _middlewareData$arrow, _middlewareData$flip;
436
+ const { placement, middlewareData, rects, initialPlacement, platform, elements } = state;
437
+ const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = true, fallbackPlacements: specifiedFallbackPlacements, fallbackStrategy = "bestFit", fallbackAxisSideDirection = "none", flipAlignment = true, ...detectOverflowOptions } = evaluate(options, state);
438
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
439
+ const side = getSide(placement);
440
+ const initialSideAxis = getSideAxis(initialPlacement);
441
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
442
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
443
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
444
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
445
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
446
+ const placements = [initialPlacement, ...fallbackPlacements];
447
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
448
+ const overflows = [];
449
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
450
+ if (checkMainAxis) overflows.push(overflow[side]);
451
+ if (checkCrossAxis) {
452
+ const sides = getAlignmentSides(placement, rects, rtl);
453
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
454
+ }
455
+ overflowsData = [...overflowsData, {
456
+ placement,
457
+ overflows
458
+ }];
459
+ if (!overflows.every((side) => side <= 0)) {
460
+ var _middlewareData$flip2, _overflowsData$filter;
461
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
462
+ const nextPlacement = placements[nextIndex];
463
+ if (nextPlacement) {
464
+ if (!(checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false) || overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) return {
465
+ data: {
466
+ index: nextIndex,
467
+ overflows: overflowsData
468
+ },
469
+ reset: { placement: nextPlacement }
470
+ };
471
+ }
472
+ 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;
473
+ if (!resetPlacement) switch (fallbackStrategy) {
474
+ case "bestFit": {
475
+ var _overflowsData$filter2;
476
+ const placement = (_overflowsData$filter2 = overflowsData.filter((d) => {
477
+ if (hasFallbackAxisSideDirection) {
478
+ const currentSideAxis = getSideAxis(d.placement);
479
+ return currentSideAxis === initialSideAxis || currentSideAxis === "y";
480
+ }
481
+ return true;
482
+ }).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];
483
+ if (placement) resetPlacement = placement;
484
+ break;
485
+ }
486
+ case "initialPlacement": resetPlacement = initialPlacement;
487
+ }
488
+ if (placement !== resetPlacement) return { reset: { placement: resetPlacement } };
489
+ }
490
+ return {};
491
+ }
492
+ };
493
+ };
494
+ originSides = /*#__PURE__*/ new Set(["left", "top"]);
495
+ offset$1 = function(options) {
496
+ if (options === void 0) options = 0;
497
+ return {
498
+ name: "offset",
499
+ options,
500
+ async fn(state) {
501
+ var _middlewareData$offse, _middlewareData$arrow;
502
+ const { x, y, placement, middlewareData } = state;
503
+ const diffCoords = await convertValueToCoords(state, options);
504
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
505
+ return {
506
+ x: x + diffCoords.x,
507
+ y: y + diffCoords.y,
508
+ data: {
509
+ ...diffCoords,
510
+ placement
511
+ }
512
+ };
513
+ }
514
+ };
515
+ };
516
+ shift$1 = function(options) {
517
+ if (options === void 0) options = {};
518
+ return {
519
+ name: "shift",
520
+ options,
521
+ async fn(state) {
522
+ const { x, y, placement, platform } = state;
523
+ const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = false, limiter = { fn: (_ref) => {
524
+ let { x, y } = _ref;
525
+ return {
526
+ x,
527
+ y
528
+ };
529
+ } }, ...detectOverflowOptions } = evaluate(options, state);
530
+ const coords = {
531
+ x,
532
+ y
533
+ };
534
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
535
+ const crossAxis = getSideAxis(placement);
536
+ const mainAxis = getOppositeAxis(crossAxis);
537
+ let mainAxisCoord = coords[mainAxis];
538
+ let crossAxisCoord = coords[crossAxis];
539
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === "y" ? "top" : "left"], coord, coord - overflow[axis === "y" ? "bottom" : "right"]);
540
+ if (checkMainAxis) mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
541
+ if (checkCrossAxis) crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
542
+ const limitedCoords = limiter.fn({
543
+ ...state,
544
+ [mainAxis]: mainAxisCoord,
545
+ [crossAxis]: crossAxisCoord
546
+ });
547
+ return {
548
+ ...limitedCoords,
549
+ data: {
550
+ x: limitedCoords.x - x,
551
+ y: limitedCoords.y - y,
552
+ enabled: {
553
+ [mainAxis]: checkMainAxis,
554
+ [crossAxis]: checkCrossAxis
555
+ }
556
+ }
557
+ };
558
+ }
559
+ };
560
+ };
561
+ limitShift$1 = function(options) {
562
+ if (options === void 0) options = {};
563
+ return {
564
+ options,
565
+ fn(state) {
566
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
567
+ const { x, y, placement, rects, middlewareData } = state;
568
+ const { offset = 0, mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = true } = evaluate(options, state);
569
+ const coords = {
570
+ x,
571
+ y
572
+ };
573
+ const crossAxis = getSideAxis(placement);
574
+ const mainAxis = getOppositeAxis(crossAxis);
575
+ let mainAxisCoord = coords[mainAxis];
576
+ let crossAxisCoord = coords[crossAxis];
577
+ const rawOffset = evaluate(offset, state);
578
+ const computedOffset = typeof rawOffset === "number" ? {
579
+ mainAxis: rawOffset,
580
+ crossAxis: 0
581
+ } : {
582
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
583
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
584
+ };
585
+ if (checkMainAxis) {
586
+ const len = mainAxis === "y" ? "height" : "width";
587
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
588
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
589
+ if (mainAxisCoord < limitMin) mainAxisCoord = limitMin;
590
+ else if (mainAxisCoord > limitMax) mainAxisCoord = limitMax;
591
+ }
592
+ if (checkCrossAxis) {
593
+ var _middlewareData$offse, _middlewareData$offse2;
594
+ const len = mainAxis === "y" ? "width" : "height";
595
+ const isOriginSide = originSides.has(getSide(placement));
596
+ 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);
597
+ 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);
598
+ if (crossAxisCoord < limitMin) crossAxisCoord = limitMin;
599
+ else if (crossAxisCoord > limitMax) crossAxisCoord = limitMax;
600
+ }
601
+ return {
602
+ [mainAxis]: mainAxisCoord,
603
+ [crossAxis]: crossAxisCoord
604
+ };
605
+ }
606
+ };
607
+ };
608
+ size$1 = function(options) {
609
+ if (options === void 0) options = {};
610
+ return {
611
+ name: "size",
612
+ options,
613
+ async fn(state) {
614
+ const { placement, rects, platform, elements } = state;
615
+ const { apply = () => {}, ...detectOverflowOptions } = evaluate(options, state);
616
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
617
+ const side = getSide(placement);
618
+ const alignment = getAlignment(placement);
619
+ const isYAxis = getSideAxis(placement) === "y";
620
+ const { width, height } = rects.floating;
621
+ let heightSide;
622
+ let widthSide;
623
+ if (side === "top" || side === "bottom") {
624
+ heightSide = side;
625
+ widthSide = alignment === (await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
626
+ } else {
627
+ widthSide = side;
628
+ heightSide = alignment === "end" ? "top" : "bottom";
629
+ }
630
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
631
+ const maximumClippingWidth = width - overflow.left - overflow.right;
632
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
633
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
634
+ const shiftData = state.middlewareData.shift;
635
+ const noShift = !shiftData;
636
+ let availableHeight = overflowAvailableHeight;
637
+ let availableWidth = overflowAvailableWidth;
638
+ if (shiftData != null && shiftData.enabled.x) availableWidth = maximumClippingWidth;
639
+ if (shiftData != null && shiftData.enabled.y) availableHeight = maximumClippingHeight;
640
+ if (noShift && !alignment) {
641
+ if (isYAxis) availableWidth = width - 2 * max(overflow.left, overflow.right);
642
+ else availableHeight = height - 2 * max(overflow.top, overflow.bottom);
643
+ }
644
+ await apply({
645
+ ...state,
646
+ availableWidth,
647
+ availableHeight
648
+ });
649
+ const nextDimensions = await platform.getDimensions(elements.floating);
650
+ if (width !== nextDimensions.width || height !== nextDimensions.height) return { reset: { rects: true } };
651
+ return {};
652
+ }
653
+ };
654
+ };
655
+ })))();
656
+ }
657
+ //#endregion
658
+ //#region ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
659
+ function getCssDimensions(element) {
660
+ const css = getComputedStyle$1(element);
661
+ let width = parseFloat(css.width) || 0;
662
+ let height = parseFloat(css.height) || 0;
663
+ const hasOffset = isHTMLElement(element);
664
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
665
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
666
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
667
+ if (shouldFallback) {
668
+ width = offsetWidth;
669
+ height = offsetHeight;
670
+ }
671
+ return {
672
+ width,
673
+ height,
674
+ $: shouldFallback
675
+ };
676
+ }
677
+ function unwrapElement(element) {
678
+ return !isElement(element) ? element.contextElement : element;
679
+ }
680
+ function getScale(element) {
681
+ const domElement = unwrapElement(element);
682
+ if (!isHTMLElement(domElement)) return createCoords(1);
683
+ const rect = domElement.getBoundingClientRect();
684
+ const { width, height, $ } = getCssDimensions(domElement);
685
+ let x = ($ ? round(rect.width) : rect.width) / width;
686
+ let y = ($ ? round(rect.height) : rect.height) / height;
687
+ if (!x || !Number.isFinite(x)) x = 1;
688
+ if (!y || !Number.isFinite(y)) y = 1;
689
+ return {
690
+ x,
691
+ y
692
+ };
693
+ }
694
+ function getVisualOffsets(element) {
695
+ const win = getWindow(element);
696
+ if (!isWebKit() || !win.visualViewport) return noOffsets;
697
+ return {
698
+ x: win.visualViewport.offsetLeft,
699
+ y: win.visualViewport.offsetTop
700
+ };
701
+ }
702
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
703
+ if (isFixed === void 0) isFixed = false;
704
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
705
+ }
706
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
707
+ if (includeScale === void 0) includeScale = false;
708
+ if (isFixedStrategy === void 0) isFixedStrategy = false;
709
+ const clientRect = element.getBoundingClientRect();
710
+ const domElement = unwrapElement(element);
711
+ let scale = createCoords(1);
712
+ if (includeScale) {
713
+ if (offsetParent) {
714
+ if (isElement(offsetParent)) scale = getScale(offsetParent);
715
+ } else scale = getScale(element);
716
+ }
717
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
718
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
719
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
720
+ let width = clientRect.width / scale.x;
721
+ let height = clientRect.height / scale.y;
722
+ if (domElement && offsetParent) {
723
+ const win = getWindow(domElement);
724
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
725
+ let currentWin = win;
726
+ let currentIFrame = getFrameElement(currentWin);
727
+ while (currentIFrame && offsetWin !== currentWin) {
728
+ const iframeScale = getScale(currentIFrame);
729
+ const iframeRect = currentIFrame.getBoundingClientRect();
730
+ const css = getComputedStyle$1(currentIFrame);
731
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
732
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
733
+ x *= iframeScale.x;
734
+ y *= iframeScale.y;
735
+ width *= iframeScale.x;
736
+ height *= iframeScale.y;
737
+ x += left;
738
+ y += top;
739
+ currentWin = getWindow(currentIFrame);
740
+ currentIFrame = getFrameElement(currentWin);
741
+ }
742
+ }
743
+ return rectToClientRect({
744
+ width,
745
+ height,
746
+ x,
747
+ y
748
+ });
749
+ }
750
+ function getWindowScrollBarX(element, rect) {
751
+ const leftScroll = getNodeScroll(element).scrollLeft;
752
+ if (!rect) return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
753
+ return rect.left + leftScroll;
754
+ }
755
+ function getHTMLOffset(documentElement, scroll) {
756
+ const htmlRect = documentElement.getBoundingClientRect();
757
+ return {
758
+ x: htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect),
759
+ y: htmlRect.top + scroll.scrollTop
760
+ };
761
+ }
762
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
763
+ let { elements, rect, offsetParent, strategy } = _ref;
764
+ const isFixed = strategy === "fixed";
765
+ const documentElement = getDocumentElement(offsetParent);
766
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
767
+ if (offsetParent === documentElement || topLayer && isFixed) return rect;
768
+ let scroll = {
769
+ scrollLeft: 0,
770
+ scrollTop: 0
771
+ };
772
+ let scale = createCoords(1);
773
+ const offsets = createCoords(0);
774
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
775
+ if (isOffsetParentAnElement || !isFixed) {
776
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) scroll = getNodeScroll(offsetParent);
777
+ if (isOffsetParentAnElement) {
778
+ const offsetRect = getBoundingClientRect(offsetParent);
779
+ scale = getScale(offsetParent);
780
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
781
+ offsets.y = offsetRect.y + offsetParent.clientTop;
782
+ }
783
+ }
784
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
785
+ return {
786
+ width: rect.width * scale.x,
787
+ height: rect.height * scale.y,
788
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
789
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
790
+ };
791
+ }
792
+ function getClientRects(element) {
793
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
794
+ }
795
+ function getDocumentRect(html) {
796
+ const scroll = getNodeScroll(html);
797
+ const body = html.ownerDocument.body;
798
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
799
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
800
+ let x = -scroll.scrollLeft + getWindowScrollBarX(html);
801
+ const y = -scroll.scrollTop;
802
+ if (getComputedStyle$1(body).direction === "rtl") x += max(html.clientWidth, body.clientWidth) - width;
803
+ return {
804
+ width,
805
+ height,
806
+ x,
807
+ y
808
+ };
809
+ }
810
+ function getViewportRect(element, strategy, rootBoundary) {
811
+ if (rootBoundary === void 0) rootBoundary = "viewport";
812
+ const isLayoutViewport = rootBoundary === "layoutViewport";
813
+ const win = getWindow(element);
814
+ const html = getDocumentElement(element);
815
+ const visualViewport = win.visualViewport;
816
+ let width = html.clientWidth;
817
+ let height = html.clientHeight;
818
+ let x = 0;
819
+ let y = 0;
820
+ if (visualViewport) {
821
+ const layoutRelativeClientCoords = !isWebKit() || strategy === "fixed";
822
+ if (isLayoutViewport) {
823
+ if (!layoutRelativeClientCoords) {
824
+ x = -visualViewport.offsetLeft;
825
+ y = -visualViewport.offsetTop;
826
+ }
827
+ } else {
828
+ width = visualViewport.width;
829
+ height = visualViewport.height;
830
+ if (layoutRelativeClientCoords) {
831
+ x = visualViewport.offsetLeft;
832
+ y = visualViewport.offsetTop;
833
+ }
834
+ }
835
+ }
836
+ if (getWindowScrollBarX(html) <= 0) {
837
+ const doc = html.ownerDocument;
838
+ const body = doc.body;
839
+ const bodyStyles = getComputedStyle(body);
840
+ const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
841
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
842
+ const gutter = getComputedStyle(html).scrollbarGutter === "stable both-edges" ? reservedWidth / 2 : reservedWidth;
843
+ if (gutter <= SCROLLBAR_MAX) width -= gutter;
844
+ }
845
+ return {
846
+ width,
847
+ height,
848
+ x,
849
+ y
850
+ };
851
+ }
852
+ function getInnerBoundingClientRect(element, strategy) {
853
+ const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
854
+ const top = clientRect.top + element.clientTop;
855
+ const left = clientRect.left + element.clientLeft;
856
+ const scale = getScale(element);
857
+ return {
858
+ width: element.clientWidth * scale.x,
859
+ height: element.clientHeight * scale.y,
860
+ x: left * scale.x,
861
+ y: top * scale.y
862
+ };
863
+ }
864
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
865
+ let rect;
866
+ if (clippingAncestor === "viewport" || clippingAncestor === "layoutViewport") rect = getViewportRect(element, strategy, clippingAncestor);
867
+ else if (clippingAncestor === "document") rect = getDocumentRect(getDocumentElement(element));
868
+ else if (isElement(clippingAncestor)) rect = getInnerBoundingClientRect(clippingAncestor, strategy);
869
+ else {
870
+ const visualOffsets = getVisualOffsets(element);
871
+ rect = {
872
+ x: clippingAncestor.x - visualOffsets.x,
873
+ y: clippingAncestor.y - visualOffsets.y,
874
+ width: clippingAncestor.width,
875
+ height: clippingAncestor.height
876
+ };
877
+ }
878
+ return rectToClientRect(rect);
879
+ }
880
+ function getClippingElementAncestors(element, cache) {
881
+ const cachedResult = cache.get(element);
882
+ if (cachedResult) return cachedResult;
883
+ let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
884
+ let lastKeptComputedStyle = null;
885
+ const elementIsFixed = getComputedStyle$1(element).position === "fixed";
886
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
887
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
888
+ const computedStyle = getComputedStyle$1(currentNode);
889
+ const currentNodeIsContaining = isContainingBlock(currentNode);
890
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? "fixed" : "";
891
+ if (!currentNodeIsContaining && (lastPosition === "fixed" || lastPosition === "absolute" && computedStyle.position === "static")) result = result.filter((ancestor) => ancestor !== currentNode);
892
+ else lastKeptComputedStyle = computedStyle;
893
+ currentNode = getParentNode(currentNode);
894
+ }
895
+ cache.set(element, result);
896
+ return result;
897
+ }
898
+ function getClippingRect(_ref) {
899
+ let { element, boundary, rootBoundary, strategy } = _ref;
900
+ const clippingAncestors = [...boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary), rootBoundary];
901
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
902
+ let top = firstRect.top;
903
+ let right = firstRect.right;
904
+ let bottom = firstRect.bottom;
905
+ let left = firstRect.left;
906
+ for (let i = 1; i < clippingAncestors.length; i++) {
907
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
908
+ top = max(rect.top, top);
909
+ right = min(rect.right, right);
910
+ bottom = min(rect.bottom, bottom);
911
+ left = max(rect.left, left);
912
+ }
913
+ return {
914
+ width: right - left,
915
+ height: bottom - top,
916
+ x: left,
917
+ y: top
918
+ };
919
+ }
920
+ function getDimensions(element) {
921
+ const { width, height } = getCssDimensions(element);
922
+ return {
923
+ width,
924
+ height
925
+ };
926
+ }
927
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
928
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
929
+ const documentElement = getDocumentElement(offsetParent);
930
+ const isFixed = strategy === "fixed";
931
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
932
+ let scroll = {
933
+ scrollLeft: 0,
934
+ scrollTop: 0
935
+ };
936
+ const offsets = createCoords(0);
937
+ if (isOffsetParentAnElement || !isFixed) {
938
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) scroll = getNodeScroll(offsetParent);
939
+ if (isOffsetParentAnElement) {
940
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
941
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
942
+ offsets.y = offsetRect.y + offsetParent.clientTop;
943
+ }
944
+ }
945
+ if (!isOffsetParentAnElement && documentElement) offsets.x = getWindowScrollBarX(documentElement);
946
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
947
+ return {
948
+ x: rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x,
949
+ y: rect.top + scroll.scrollTop - offsets.y - htmlOffset.y,
950
+ width: rect.width,
951
+ height: rect.height
952
+ };
953
+ }
954
+ function isStaticPositioned(element) {
955
+ return getComputedStyle$1(element).position === "static";
956
+ }
957
+ function getTrueOffsetParent(element, polyfill) {
958
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") return null;
959
+ if (polyfill) return polyfill(element);
960
+ let rawOffsetParent = element.offsetParent;
961
+ if (getDocumentElement(element) === rawOffsetParent) rawOffsetParent = rawOffsetParent.ownerDocument.body;
962
+ return rawOffsetParent;
963
+ }
964
+ function getOffsetParent(element, polyfill) {
965
+ const win = getWindow(element);
966
+ if (isTopLayer(element)) return win;
967
+ if (!isHTMLElement(element)) {
968
+ let svgOffsetParent = getParentNode(element);
969
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
970
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) return svgOffsetParent;
971
+ svgOffsetParent = getParentNode(svgOffsetParent);
972
+ }
973
+ return win;
974
+ }
975
+ let offsetParent = getTrueOffsetParent(element, polyfill);
976
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) offsetParent = getTrueOffsetParent(offsetParent, polyfill);
977
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) return win;
978
+ return offsetParent || getContainingBlock(element) || win;
979
+ }
980
+ function isRTL(element) {
981
+ return getComputedStyle$1(element).direction === "rtl";
982
+ }
983
+ function rectsAreEqual(a, b) {
984
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
985
+ }
986
+ function observeMove(element, onMove, ancestorResize) {
987
+ let io = null;
988
+ let timeoutId;
989
+ const root = getDocumentElement(element);
990
+ function cleanup() {
991
+ var _io;
992
+ clearTimeout(timeoutId);
993
+ (_io = io) == null || _io.disconnect();
994
+ io = null;
995
+ }
996
+ function refresh(skip, threshold) {
997
+ if (skip === void 0) skip = false;
998
+ if (threshold === void 0) threshold = 1;
999
+ cleanup();
1000
+ const elementRectForRootMargin = element.getBoundingClientRect();
1001
+ const { left, top, width, height } = elementRectForRootMargin;
1002
+ if (!skip) onMove();
1003
+ if (!width || !height) return;
1004
+ const insetTop = floor(top);
1005
+ const insetRight = floor(root.clientWidth - (left + width));
1006
+ const insetBottom = floor(root.clientHeight - (top + height));
1007
+ const insetLeft = floor(left);
1008
+ const options = {
1009
+ rootMargin: -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px",
1010
+ threshold: max(0, min(1, threshold)) || 1
1011
+ };
1012
+ let isFirstUpdate = true;
1013
+ function handleObserve(entries) {
1014
+ const ratio = entries[0].intersectionRatio;
1015
+ if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) return refresh();
1016
+ if (ratio !== threshold) {
1017
+ if (!isFirstUpdate) return refresh();
1018
+ if (!ratio) timeoutId = setTimeout(() => {
1019
+ refresh(false, 1e-7);
1020
+ }, 1e3);
1021
+ else refresh(false, ratio);
1022
+ }
1023
+ isFirstUpdate = false;
1024
+ }
1025
+ try {
1026
+ io = new IntersectionObserver(handleObserve, {
1027
+ ...options,
1028
+ root: root.ownerDocument
1029
+ });
1030
+ } catch (_e) {
1031
+ io = new IntersectionObserver(handleObserve, options);
1032
+ }
1033
+ io.observe(element);
1034
+ }
1035
+ const win = getWindow(element);
1036
+ const handleResize = () => refresh(ancestorResize);
1037
+ win.addEventListener("resize", handleResize);
1038
+ refresh(true);
1039
+ return () => {
1040
+ win.removeEventListener("resize", handleResize);
1041
+ cleanup();
1042
+ };
1043
+ }
1044
+ /**
1045
+ * Automatically updates the position of the floating element when necessary.
1046
+ * Should only be called when the floating element is mounted on the DOM or
1047
+ * visible on the screen.
1048
+ * @returns cleanup function that should be invoked when the floating element is
1049
+ * removed from the DOM or hidden from the screen.
1050
+ * @see https://floating-ui.com/docs/autoUpdate
1051
+ */
1052
+ function autoUpdate(reference, floating, update, options) {
1053
+ if (options === void 0) options = {};
1054
+ const { ancestorScroll = true, ancestorResize = true, elementResize = typeof ResizeObserver === "function", layoutShift = typeof IntersectionObserver === "function", animationFrame = false } = options;
1055
+ const referenceEl = unwrapElement(reference);
1056
+ const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
1057
+ ancestors.forEach((ancestor) => {
1058
+ ancestorScroll && ancestor.addEventListener("scroll", update);
1059
+ ancestorResize && ancestor.addEventListener("resize", update);
1060
+ });
1061
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;
1062
+ let reobserveFrame = -1;
1063
+ let resizeObserver = null;
1064
+ if (elementResize) {
1065
+ resizeObserver = new ResizeObserver((_ref) => {
1066
+ let [firstEntry] = _ref;
1067
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
1068
+ resizeObserver.unobserve(floating);
1069
+ cancelAnimationFrame(reobserveFrame);
1070
+ reobserveFrame = requestAnimationFrame(() => {
1071
+ var _resizeObserver;
1072
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
1073
+ });
1074
+ }
1075
+ update();
1076
+ });
1077
+ if (referenceEl && !animationFrame) resizeObserver.observe(referenceEl);
1078
+ if (floating) resizeObserver.observe(floating);
1079
+ }
1080
+ let frameId;
1081
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1082
+ if (animationFrame) frameLoop();
1083
+ function frameLoop() {
1084
+ const nextRefRect = getBoundingClientRect(reference);
1085
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) update();
1086
+ prevRefRect = nextRefRect;
1087
+ frameId = requestAnimationFrame(frameLoop);
1088
+ }
1089
+ update();
1090
+ return () => {
1091
+ var _resizeObserver2;
1092
+ ancestors.forEach((ancestor) => {
1093
+ ancestorScroll && ancestor.removeEventListener("scroll", update);
1094
+ ancestorResize && ancestor.removeEventListener("resize", update);
1095
+ });
1096
+ cleanupIo?.();
1097
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
1098
+ resizeObserver = null;
1099
+ if (animationFrame) cancelAnimationFrame(frameId);
1100
+ };
1101
+ }
1102
+ var noOffsets, SCROLLBAR_MAX, getElementRects, platform, offset$2, shift$2, flip$2, size$2, limitShift$2, computePosition;
1103
+ function init_floating_ui_dom() {
1104
+ return (init_floating_ui_dom = __esmMin((() => {
1105
+ init_floating_ui_core();
1106
+ init_floating_ui_utils();
1107
+ init_floating_ui_utils_dom();
1108
+ noOffsets = /*#__PURE__*/ createCoords(0);
1109
+ SCROLLBAR_MAX = 25;
1110
+ getElementRects = async function(data) {
1111
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1112
+ const getDimensionsFn = this.getDimensions;
1113
+ const floatingDimensions = await getDimensionsFn(data.floating);
1114
+ return {
1115
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1116
+ floating: {
1117
+ x: 0,
1118
+ y: 0,
1119
+ width: floatingDimensions.width,
1120
+ height: floatingDimensions.height
1121
+ }
1122
+ };
1123
+ };
1124
+ platform = {
1125
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1126
+ getDocumentElement,
1127
+ getClippingRect,
1128
+ getOffsetParent,
1129
+ getElementRects,
1130
+ getClientRects,
1131
+ getDimensions,
1132
+ getScale,
1133
+ isElement,
1134
+ isRTL
1135
+ };
1136
+ offset$2 = offset$1;
1137
+ shift$2 = shift$1;
1138
+ flip$2 = flip$1;
1139
+ size$2 = size$1;
1140
+ limitShift$2 = limitShift$1;
1141
+ computePosition = (reference, floating, options) => {
1142
+ const cache = /* @__PURE__ */ new Map();
1143
+ const mergedOptions = options != null ? options : {};
1144
+ const platformWithCache = {
1145
+ ...platform,
1146
+ ...mergedOptions.platform,
1147
+ _c: cache
1148
+ };
1149
+ return computePosition$1(reference, floating, {
1150
+ ...mergedOptions,
1151
+ platform: platformWithCache
1152
+ });
1153
+ };
1154
+ })))();
1155
+ }
1156
+ //#endregion
1157
+ //#region ../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
1158
+ function deepEqual(a, b) {
1159
+ if (a === b) return true;
1160
+ if (typeof a !== typeof b) return false;
1161
+ if (typeof a === "function" && a.toString() === b.toString()) return true;
1162
+ let length;
1163
+ let i;
1164
+ let keys;
1165
+ if (a && b && typeof a === "object") {
1166
+ if (Array.isArray(a)) {
1167
+ length = a.length;
1168
+ if (length !== b.length) return false;
1169
+ for (i = length; i-- !== 0;) if (!deepEqual(a[i], b[i])) return false;
1170
+ return true;
1171
+ }
1172
+ keys = Object.keys(a);
1173
+ length = keys.length;
1174
+ if (length !== Object.keys(b).length) return false;
1175
+ for (i = length; i-- !== 0;) if (!{}.hasOwnProperty.call(b, keys[i])) return false;
1176
+ for (i = length; i-- !== 0;) {
1177
+ const key = keys[i];
1178
+ if (key === "_owner" && a.$$typeof) continue;
1179
+ if (!deepEqual(a[key], b[key])) return false;
1180
+ }
1181
+ return true;
1182
+ }
1183
+ return a !== a && b !== b;
1184
+ }
1185
+ function getDPR(element) {
1186
+ if (typeof window === "undefined") return 1;
1187
+ return (element.ownerDocument.defaultView || window).devicePixelRatio || 1;
1188
+ }
1189
+ function roundByDPR(element, value) {
1190
+ const dpr = getDPR(element);
1191
+ return Math.round(value * dpr) / dpr;
1192
+ }
1193
+ function useLatestRef(value) {
1194
+ const ref = import_react.useRef(value);
1195
+ index(() => {
1196
+ ref.current = value;
1197
+ });
1198
+ return ref;
1199
+ }
1200
+ /**
1201
+ * Provides data to position a floating element.
1202
+ * @see https://floating-ui.com/docs/useFloating
1203
+ */
1204
+ function useFloating(options) {
1205
+ if (options === void 0) options = {};
1206
+ const { placement = "bottom", strategy = "absolute", middleware = [], platform, elements: { reference: externalReference, floating: externalFloating } = {}, transform = true, whileElementsMounted, open } = options;
1207
+ const [data, setData] = import_react.useState({
1208
+ x: 0,
1209
+ y: 0,
1210
+ strategy,
1211
+ placement,
1212
+ middlewareData: {},
1213
+ isPositioned: false
1214
+ });
1215
+ const [latestMiddleware, setLatestMiddleware] = import_react.useState(middleware);
1216
+ if (!deepEqual(latestMiddleware, middleware)) setLatestMiddleware(middleware);
1217
+ const [_reference, _setReference] = import_react.useState(null);
1218
+ const [_floating, _setFloating] = import_react.useState(null);
1219
+ const setReference = import_react.useCallback((node) => {
1220
+ if (node !== referenceRef.current) {
1221
+ referenceRef.current = node;
1222
+ _setReference(node);
1223
+ }
1224
+ }, []);
1225
+ const setFloating = import_react.useCallback((node) => {
1226
+ if (node !== floatingRef.current) {
1227
+ floatingRef.current = node;
1228
+ _setFloating(node);
1229
+ }
1230
+ }, []);
1231
+ const referenceEl = externalReference || _reference;
1232
+ const floatingEl = externalFloating || _floating;
1233
+ const referenceRef = import_react.useRef(null);
1234
+ const floatingRef = import_react.useRef(null);
1235
+ const dataRef = import_react.useRef(data);
1236
+ const hasWhileElementsMounted = whileElementsMounted != null;
1237
+ const whileElementsMountedRef = useLatestRef(whileElementsMounted);
1238
+ const platformRef = useLatestRef(platform);
1239
+ const openRef = useLatestRef(open);
1240
+ const update = import_react.useCallback(() => {
1241
+ if (!referenceRef.current || !floatingRef.current) return;
1242
+ const config = {
1243
+ placement,
1244
+ strategy,
1245
+ middleware: latestMiddleware
1246
+ };
1247
+ if (platformRef.current) config.platform = platformRef.current;
1248
+ computePosition(referenceRef.current, floatingRef.current, config).then((data) => {
1249
+ const fullData = {
1250
+ ...data,
1251
+ isPositioned: openRef.current !== false
1252
+ };
1253
+ if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
1254
+ dataRef.current = fullData;
1255
+ import_react_dom.flushSync(() => {
1256
+ setData(fullData);
1257
+ });
1258
+ }
1259
+ });
1260
+ }, [
1261
+ latestMiddleware,
1262
+ placement,
1263
+ strategy,
1264
+ platformRef,
1265
+ openRef
1266
+ ]);
1267
+ index(() => {
1268
+ if (open === false && dataRef.current.isPositioned) {
1269
+ dataRef.current.isPositioned = false;
1270
+ setData((data) => ({
1271
+ ...data,
1272
+ isPositioned: false
1273
+ }));
1274
+ }
1275
+ }, [open]);
1276
+ const isMountedRef = import_react.useRef(false);
1277
+ index(() => {
1278
+ isMountedRef.current = true;
1279
+ return () => {
1280
+ isMountedRef.current = false;
1281
+ };
1282
+ }, []);
1283
+ index(() => {
1284
+ if (referenceEl) referenceRef.current = referenceEl;
1285
+ if (floatingEl) floatingRef.current = floatingEl;
1286
+ if (referenceEl && floatingEl) {
1287
+ if (whileElementsMountedRef.current) return whileElementsMountedRef.current(referenceEl, floatingEl, update);
1288
+ update();
1289
+ }
1290
+ }, [
1291
+ referenceEl,
1292
+ floatingEl,
1293
+ update,
1294
+ whileElementsMountedRef,
1295
+ hasWhileElementsMounted
1296
+ ]);
1297
+ const refs = import_react.useMemo(() => ({
1298
+ reference: referenceRef,
1299
+ floating: floatingRef,
1300
+ setReference,
1301
+ setFloating
1302
+ }), [setReference, setFloating]);
1303
+ const elements = import_react.useMemo(() => ({
1304
+ reference: referenceEl,
1305
+ floating: floatingEl
1306
+ }), [referenceEl, floatingEl]);
1307
+ const floatingStyles = import_react.useMemo(() => {
1308
+ const initialStyles = {
1309
+ position: strategy,
1310
+ left: 0,
1311
+ top: 0
1312
+ };
1313
+ if (!elements.floating) return initialStyles;
1314
+ const x = roundByDPR(elements.floating, data.x);
1315
+ const y = roundByDPR(elements.floating, data.y);
1316
+ if (transform) return {
1317
+ ...initialStyles,
1318
+ transform: "translate(" + x + "px, " + y + "px)",
1319
+ ...getDPR(elements.floating) >= 1.5 && { willChange: "transform" }
1320
+ };
1321
+ return {
1322
+ position: strategy,
1323
+ left: x,
1324
+ top: y
1325
+ };
1326
+ }, [
1327
+ strategy,
1328
+ transform,
1329
+ elements.floating,
1330
+ data.x,
1331
+ data.y
1332
+ ]);
1333
+ return import_react.useMemo(() => ({
1334
+ ...data,
1335
+ update,
1336
+ refs,
1337
+ elements,
1338
+ floatingStyles
1339
+ }), [
1340
+ data,
1341
+ update,
1342
+ refs,
1343
+ elements,
1344
+ floatingStyles
1345
+ ]);
1346
+ }
1347
+ var import_react, import_react$1, import_react_dom, index, offset, shift, limitShift, flip, size;
1348
+ function init_floating_ui_react_dom() {
1349
+ return (init_floating_ui_react_dom = __esmMin((() => {
1350
+ init_floating_ui_dom();
1351
+ import_react = /* @__PURE__ */ __toESM(require_react(), 1);
1352
+ import_react$1 = require_react();
1353
+ import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
1354
+ index = typeof document !== "undefined" ? import_react$1.useLayoutEffect : function noop() {};
1355
+ offset = (options, deps) => {
1356
+ const result = offset$2(options);
1357
+ return {
1358
+ name: result.name,
1359
+ fn: result.fn,
1360
+ options: [options, deps]
1361
+ };
1362
+ };
1363
+ shift = (options, deps) => {
1364
+ const result = shift$2(options);
1365
+ return {
1366
+ name: result.name,
1367
+ fn: result.fn,
1368
+ options: [options, deps]
1369
+ };
1370
+ };
1371
+ limitShift = (options, deps) => {
1372
+ return {
1373
+ fn: limitShift$2(options).fn,
1374
+ options: [options, deps]
1375
+ };
1376
+ };
1377
+ flip = (options, deps) => {
1378
+ const result = flip$2(options);
1379
+ return {
1380
+ name: result.name,
1381
+ fn: result.fn,
1382
+ options: [options, deps]
1383
+ };
1384
+ };
1385
+ size = (options, deps) => {
1386
+ const result = size$2(options);
1387
+ return {
1388
+ name: result.name,
1389
+ fn: result.fn,
1390
+ options: [options, deps]
1391
+ };
1392
+ };
1393
+ })))();
1394
+ }
1395
+ //#endregion
1396
+ export { init_floating_ui_utils_dom as C, isNode as D, isLastTraversableNode as E, isOverflowElement as O, getWindow as S, isHTMLElement as T, getSideAxis as _, shift as a, getNodeName as b, autoUpdate as c, evaluate as d, getAlignment as f, getSide as g, getPaddingObject as h, offset as i, isShadowRoot as k, init_floating_ui_dom as l, getAxisLength as m, init_floating_ui_react_dom as n, size as o, getAlignmentAxis as p, limitShift as r, useFloating as s, flip as t, clamp as u, init_floating_ui_utils as v, isElement as w, getParentNode as x, getComputedStyle$1 as y };