renovate-log-parser 0.1.0 → 0.1.2

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 (299) hide show
  1. package/README.md +39 -27
  2. package/dist/commands/web.d.ts +2 -1
  3. package/dist/commands/web.js +23 -11
  4. package/dist/commands/web.js.map +1 -1
  5. package/dist/server/api.d.ts +16 -0
  6. package/dist/server/api.js +173 -0
  7. package/dist/server/api.js.map +1 -0
  8. package/dist/server/http-error.d.ts +18 -0
  9. package/dist/server/http-error.js +23 -0
  10. package/dist/server/http-error.js.map +1 -0
  11. package/dist/server/index.d.ts +34 -0
  12. package/dist/server/index.js +54 -0
  13. package/dist/server/index.js.map +1 -0
  14. package/dist/server/log-registry.d.ts +34 -0
  15. package/dist/server/log-registry.js +157 -0
  16. package/dist/server/log-registry.js.map +1 -0
  17. package/dist/server/server-main.d.ts +1 -0
  18. package/dist/server/server-main.js +31 -0
  19. package/dist/server/server-main.js.map +1 -0
  20. package/dist/server/translate-filters.d.ts +58 -0
  21. package/dist/server/translate-filters.js +119 -0
  22. package/dist/server/translate-filters.js.map +1 -0
  23. package/package.json +6 -3
  24. package/web/.output/public/200.html +1 -0
  25. package/web/.output/public/404.html +1 -0
  26. package/web/.output/public/_nuxt/{CGPWRqbc.js → B4JKWaDj.js} +1 -1
  27. package/web/.output/public/_nuxt/Bs-RnkRE.js +37 -0
  28. package/web/.output/public/_nuxt/{Sgtec1U0.js → DjtJytwR.js} +1 -1
  29. package/web/.output/public/_nuxt/{BgApMHS1.js → a71R3CFc.js} +1 -1
  30. package/web/.output/public/_nuxt/builds/latest.json +1 -1
  31. package/web/.output/public/_nuxt/builds/meta/bc129b23-5172-4e74-875d-2a24574a5dbe.json +1 -0
  32. package/web/.output/public/index.html +1 -0
  33. package/web/.output/nitro.json +0 -15
  34. package/web/.output/public/_nuxt/BWja8e3M.js +0 -37
  35. package/web/.output/public/_nuxt/builds/meta/c4723e49-0623-47af-ae79-9ab6428bdcc1.json +0 -1
  36. package/web/.output/server/chunks/_/error-500.mjs +0 -19
  37. package/web/.output/server/chunks/_/error-500.mjs.map +0 -1
  38. package/web/.output/server/chunks/_/icons.mjs +0 -6153
  39. package/web/.output/server/chunks/_/icons.mjs.map +0 -1
  40. package/web/.output/server/chunks/_/icons2.mjs +0 -11494
  41. package/web/.output/server/chunks/_/icons2.mjs.map +0 -1
  42. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +0 -10
  43. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +0 -1
  44. package/web/.output/server/chunks/build/client.precomputed.mjs +0 -4
  45. package/web/.output/server/chunks/build/client.precomputed.mjs.map +0 -1
  46. package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs +0 -106
  47. package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs.map +0 -1
  48. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +0 -8
  49. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +0 -1
  50. package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs +0 -89
  51. package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs.map +0 -1
  52. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +0 -8
  53. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +0 -1
  54. package/web/.output/server/chunks/build/index-88dXYOxO.mjs +0 -19675
  55. package/web/.output/server/chunks/build/index-88dXYOxO.mjs.map +0 -1
  56. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +0 -8
  57. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +0 -1
  58. package/web/.output/server/chunks/build/server.mjs +0 -7910
  59. package/web/.output/server/chunks/build/server.mjs.map +0 -1
  60. package/web/.output/server/chunks/build/styles.mjs +0 -10
  61. package/web/.output/server/chunks/build/styles.mjs.map +0 -1
  62. package/web/.output/server/chunks/nitro/nitro.mjs +0 -6944
  63. package/web/.output/server/chunks/nitro/nitro.mjs.map +0 -1
  64. package/web/.output/server/chunks/routes/api/fields.get.mjs +0 -27
  65. package/web/.output/server/chunks/routes/api/fields.get.mjs.map +0 -1
  66. package/web/.output/server/chunks/routes/api/findings.get.mjs +0 -30
  67. package/web/.output/server/chunks/routes/api/findings.get.mjs.map +0 -1
  68. package/web/.output/server/chunks/routes/api/log/contents.post.mjs +0 -29
  69. package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +0 -1
  70. package/web/.output/server/chunks/routes/api/log/path.post.mjs +0 -30
  71. package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +0 -1
  72. package/web/.output/server/chunks/routes/api/repositories.get.mjs +0 -27
  73. package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +0 -1
  74. package/web/.output/server/chunks/routes/api/rows.get.mjs +0 -48
  75. package/web/.output/server/chunks/routes/api/rows.get.mjs.map +0 -1
  76. package/web/.output/server/chunks/routes/renderer.mjs +0 -451
  77. package/web/.output/server/chunks/routes/renderer.mjs.map +0 -1
  78. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
  79. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
  80. package/web/.output/server/index.mjs +0 -16
  81. package/web/.output/server/index.mjs.map +0 -1
  82. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +0 -290
  83. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +0 -49
  84. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +0 -257
  85. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +0 -53
  86. package/web/.output/server/node_modules/@babel/parser/lib/index.js +0 -14599
  87. package/web/.output/server/node_modules/@babel/parser/package.json +0 -50
  88. package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -1038
  89. package/web/.output/server/node_modules/@floating-ui/core/package.json +0 -63
  90. package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -789
  91. package/web/.output/server/node_modules/@floating-ui/dom/package.json +0 -72
  92. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -165
  93. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -136
  94. package/web/.output/server/node_modules/@floating-ui/utils/package.json +0 -70
  95. package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -190
  96. package/web/.output/server/node_modules/@floating-ui/vue/package.json +0 -71
  97. package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +0 -295
  98. package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +0 -701
  99. package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +0 -75
  100. package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +0 -39
  101. package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +0 -47
  102. package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +0 -128
  103. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +0 -19
  104. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -13
  105. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +0 -17
  106. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +0 -16
  107. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +0 -30
  108. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +0 -78
  109. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +0 -100
  110. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +0 -28
  111. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +0 -58
  112. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +0 -48
  113. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +0 -203
  114. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +0 -33
  115. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +0 -132
  116. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +0 -165
  117. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +0 -79
  118. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +0 -92
  119. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +0 -26
  120. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +0 -76
  121. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +0 -66
  122. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +0 -45
  123. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +0 -103
  124. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +0 -36
  125. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +0 -92
  126. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +0 -62
  127. package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
  128. package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +0 -16
  129. package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +0 -57
  130. package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +0 -33
  131. package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +0 -12
  132. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +0 -125
  133. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +0 -19
  134. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -25
  135. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +0 -36
  136. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +0 -91
  137. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +0 -46
  138. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -23
  139. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +0 -42
  140. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +0 -123
  141. package/web/.output/server/node_modules/@iconify/utils/lib/index.js +0 -52
  142. package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +0 -30
  143. package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +0 -26
  144. package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +0 -27
  145. package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +0 -105
  146. package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +0 -26
  147. package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +0 -26
  148. package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +0 -9
  149. package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +0 -113
  150. package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +0 -31
  151. package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -13
  152. package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +0 -9
  153. package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +0 -41
  154. package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +0 -22
  155. package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +0 -67
  156. package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +0 -54
  157. package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +0 -27
  158. package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +0 -7
  159. package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +0 -22
  160. package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +0 -8
  161. package/web/.output/server/node_modules/@iconify/utils/package.json +0 -119
  162. package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1896
  163. package/web/.output/server/node_modules/@iconify/vue/package.json +0 -62
  164. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -1268
  165. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +0 -34
  166. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -74
  167. package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +0 -56
  168. package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +0 -66
  169. package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +0 -68
  170. package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6759
  171. package/web/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
  172. package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -689
  173. package/web/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
  174. package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1413
  175. package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
  176. package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +0 -2
  177. package/web/.output/server/node_modules/@vue/devtools-api/package.json +0 -34
  178. package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +0 -5670
  179. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +0 -290
  180. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +0 -49
  181. package/web/.output/server/node_modules/@vue/devtools-kit/package.json +0 -44
  182. package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +0 -239
  183. package/web/.output/server/node_modules/@vue/devtools-shared/package.json +0 -33
  184. package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1899
  185. package/web/.output/server/node_modules/@vue/reactivity/package.json +0 -55
  186. package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6940
  187. package/web/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
  188. package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1822
  189. package/web/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
  190. package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -896
  191. package/web/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
  192. package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -604
  193. package/web/.output/server/node_modules/@vue/shared/package.json +0 -47
  194. package/web/.output/server/node_modules/@vueuse/core/dist/index.js +0 -8464
  195. package/web/.output/server/node_modules/@vueuse/core/package.json +0 -49
  196. package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +0 -2013
  197. package/web/.output/server/node_modules/@vueuse/shared/package.json +0 -42
  198. package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +0 -174
  199. package/web/.output/server/node_modules/aria-hidden/package.json +0 -71
  200. package/web/.output/server/node_modules/birpc/dist/index.mjs +0 -291
  201. package/web/.output/server/node_modules/birpc/package.json +0 -57
  202. package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  203. package/web/.output/server/node_modules/consola/dist/core.mjs +0 -512
  204. package/web/.output/server/node_modules/consola/dist/index.mjs +0 -651
  205. package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  206. package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  207. package/web/.output/server/node_modules/consola/package.json +0 -136
  208. package/web/.output/server/node_modules/devalue/index.js +0 -4
  209. package/web/.output/server/node_modules/devalue/package.json +0 -40
  210. package/web/.output/server/node_modules/devalue/src/base64.js +0 -60
  211. package/web/.output/server/node_modules/devalue/src/constants.js +0 -12
  212. package/web/.output/server/node_modules/devalue/src/parse.js +0 -283
  213. package/web/.output/server/node_modules/devalue/src/stringify.js +0 -401
  214. package/web/.output/server/node_modules/devalue/src/uneval.js +0 -552
  215. package/web/.output/server/node_modules/devalue/src/utils.js +0 -160
  216. package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  217. package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +0 -568
  218. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
  219. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
  220. package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
  221. package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
  222. package/web/.output/server/node_modules/entities/dist/commonjs/package.json +0 -3
  223. package/web/.output/server/node_modules/entities/package.json +0 -120
  224. package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  225. package/web/.output/server/node_modules/estree-walker/package.json +0 -37
  226. package/web/.output/server/node_modules/hookable/dist/index.mjs +0 -257
  227. package/web/.output/server/node_modules/hookable/package.json +0 -53
  228. package/web/.output/server/node_modules/nostics/dist/index.mjs +0 -179
  229. package/web/.output/server/node_modules/nostics/package.json +0 -124
  230. package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +0 -89
  231. package/web/.output/server/node_modules/perfect-debounce/package.json +0 -41
  232. package/web/.output/server/node_modules/rou3/dist/index.mjs +0 -501
  233. package/web/.output/server/node_modules/rou3/package.json +0 -48
  234. package/web/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
  235. package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  236. package/web/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
  237. package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
  238. package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
  239. package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
  240. package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  241. package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  242. package/web/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
  243. package/web/.output/server/node_modules/source-map-js/lib/util.js +0 -594
  244. package/web/.output/server/node_modules/source-map-js/package.json +0 -71
  245. package/web/.output/server/node_modules/source-map-js/source-map.js +0 -8
  246. package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +0 -39
  247. package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +0 -56
  248. package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +0 -58
  249. package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +0 -134
  250. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +0 -15
  251. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +0 -75
  252. package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +0 -976
  253. package/web/.output/server/node_modules/srvx/package.json +0 -102
  254. package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -3365
  255. package/web/.output/server/node_modules/tailwind-merge/package.json +0 -93
  256. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -112
  257. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -269
  258. package/web/.output/server/node_modules/tailwind-variants/dist/index.js +0 -38
  259. package/web/.output/server/node_modules/tailwind-variants/package.json +0 -122
  260. package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +0 -1
  261. package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +0 -1
  262. package/web/.output/server/node_modules/tailwindcss/package.json +0 -89
  263. package/web/.output/server/node_modules/ufo/dist/index.mjs +0 -645
  264. package/web/.output/server/node_modules/ufo/package.json +0 -48
  265. package/web/.output/server/node_modules/unhead/dist/index.mjs +0 -9
  266. package/web/.output/server/node_modules/unhead/dist/parser.mjs +0 -508
  267. package/web/.output/server/node_modules/unhead/dist/plugins.mjs +0 -101
  268. package/web/.output/server/node_modules/unhead/dist/scripts.mjs +0 -30
  269. package/web/.output/server/node_modules/unhead/dist/server.mjs +0 -180
  270. package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +0 -207
  271. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +0 -43
  272. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +0 -269
  273. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +0 -182
  274. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +0 -71
  275. package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +0 -236
  276. package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +0 -196
  277. package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +0 -44
  278. package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +0 -166
  279. package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +0 -38
  280. package/web/.output/server/node_modules/unhead/dist/utils.mjs +0 -5
  281. package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +0 -257
  282. package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +0 -53
  283. package/web/.output/server/node_modules/unhead/package.json +0 -105
  284. package/web/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
  285. package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  286. package/web/.output/server/node_modules/vue/index.js +0 -7
  287. package/web/.output/server/node_modules/vue/index.mjs +0 -1
  288. package/web/.output/server/node_modules/vue/package.json +0 -112
  289. package/web/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
  290. package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -249
  291. package/web/.output/server/node_modules/vue-bundle-renderer/package.json +0 -57
  292. package/web/.output/server/node_modules/vue-demi/lib/index.mjs +0 -34
  293. package/web/.output/server/node_modules/vue-demi/package.json +0 -47
  294. package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +0 -1056
  295. package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +0 -436
  296. package/web/.output/server/node_modules/vue-router/dist/vue-router.js +0 -1543
  297. package/web/.output/server/node_modules/vue-router/package.json +0 -214
  298. package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +0 -2
  299. package/web/.output/server/package.json +0 -51
@@ -1,789 +0,0 @@
1
- import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';
2
- import { round, createCoords, max, min, floor } from '@floating-ui/utils';
3
- import { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';
4
- export { getOverflowAncestors } from '@floating-ui/utils/dom';
5
-
6
- function getCssDimensions(element) {
7
- const css = getComputedStyle$1(element);
8
- // In testing environments, the `width` and `height` properties are empty
9
- // strings for SVG elements, returning NaN. Fallback to `0` in this case.
10
- let width = parseFloat(css.width) || 0;
11
- let height = parseFloat(css.height) || 0;
12
- const hasOffset = isHTMLElement(element);
13
- const offsetWidth = hasOffset ? element.offsetWidth : width;
14
- const offsetHeight = hasOffset ? element.offsetHeight : height;
15
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
16
- if (shouldFallback) {
17
- width = offsetWidth;
18
- height = offsetHeight;
19
- }
20
- return {
21
- width,
22
- height,
23
- $: shouldFallback
24
- };
25
- }
26
-
27
- function unwrapElement(element) {
28
- return !isElement(element) ? element.contextElement : element;
29
- }
30
-
31
- function getScale(element) {
32
- const domElement = unwrapElement(element);
33
- if (!isHTMLElement(domElement)) {
34
- return createCoords(1);
35
- }
36
- const rect = domElement.getBoundingClientRect();
37
- const {
38
- width,
39
- height,
40
- $
41
- } = getCssDimensions(domElement);
42
- let x = ($ ? round(rect.width) : rect.width) / width;
43
- let y = ($ ? round(rect.height) : rect.height) / height;
44
-
45
- // 0, NaN, or Infinity should always fallback to 1.
46
-
47
- if (!x || !Number.isFinite(x)) {
48
- x = 1;
49
- }
50
- if (!y || !Number.isFinite(y)) {
51
- y = 1;
52
- }
53
- return {
54
- x,
55
- y
56
- };
57
- }
58
-
59
- const noOffsets = /*#__PURE__*/createCoords(0);
60
- function getVisualOffsets(element) {
61
- const win = getWindow(element);
62
- if (!isWebKit() || !win.visualViewport) {
63
- return noOffsets;
64
- }
65
- return {
66
- x: win.visualViewport.offsetLeft,
67
- y: win.visualViewport.offsetTop
68
- };
69
- }
70
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
71
- if (isFixed === void 0) {
72
- isFixed = false;
73
- }
74
- return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
75
- }
76
-
77
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
78
- if (includeScale === void 0) {
79
- includeScale = false;
80
- }
81
- if (isFixedStrategy === void 0) {
82
- isFixedStrategy = false;
83
- }
84
- const clientRect = element.getBoundingClientRect();
85
- const domElement = unwrapElement(element);
86
- let scale = createCoords(1);
87
- if (includeScale) {
88
- if (offsetParent) {
89
- if (isElement(offsetParent)) {
90
- scale = getScale(offsetParent);
91
- }
92
- } else {
93
- scale = getScale(element);
94
- }
95
- }
96
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
97
- let x = (clientRect.left + visualOffsets.x) / scale.x;
98
- let y = (clientRect.top + visualOffsets.y) / scale.y;
99
- let width = clientRect.width / scale.x;
100
- let height = clientRect.height / scale.y;
101
- if (domElement && offsetParent) {
102
- const win = getWindow(domElement);
103
- const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
104
- let currentWin = win;
105
- let currentIFrame = getFrameElement(currentWin);
106
- while (currentIFrame && offsetWin !== currentWin) {
107
- const iframeScale = getScale(currentIFrame);
108
- const iframeRect = currentIFrame.getBoundingClientRect();
109
- const css = getComputedStyle$1(currentIFrame);
110
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
111
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
112
- x *= iframeScale.x;
113
- y *= iframeScale.y;
114
- width *= iframeScale.x;
115
- height *= iframeScale.y;
116
- x += left;
117
- y += top;
118
- currentWin = getWindow(currentIFrame);
119
- currentIFrame = getFrameElement(currentWin);
120
- }
121
- }
122
- return rectToClientRect({
123
- width,
124
- height,
125
- x,
126
- y
127
- });
128
- }
129
-
130
- // If <html> has a CSS width greater than the viewport, then this will be
131
- // incorrect for RTL.
132
- function getWindowScrollBarX(element, rect) {
133
- const leftScroll = getNodeScroll(element).scrollLeft;
134
- if (!rect) {
135
- return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
136
- }
137
- return rect.left + leftScroll;
138
- }
139
-
140
- function getHTMLOffset(documentElement, scroll) {
141
- const htmlRect = documentElement.getBoundingClientRect();
142
- const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
143
- const y = htmlRect.top + scroll.scrollTop;
144
- return {
145
- x,
146
- y
147
- };
148
- }
149
-
150
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
151
- let {
152
- elements,
153
- rect,
154
- offsetParent,
155
- strategy
156
- } = _ref;
157
- const isFixed = strategy === 'fixed';
158
- const documentElement = getDocumentElement(offsetParent);
159
- const topLayer = elements ? isTopLayer(elements.floating) : false;
160
- if (offsetParent === documentElement || topLayer && isFixed) {
161
- return rect;
162
- }
163
- let scroll = {
164
- scrollLeft: 0,
165
- scrollTop: 0
166
- };
167
- let scale = createCoords(1);
168
- const offsets = createCoords(0);
169
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
170
- if (isOffsetParentAnElement || !isFixed) {
171
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
172
- scroll = getNodeScroll(offsetParent);
173
- }
174
- if (isOffsetParentAnElement) {
175
- const offsetRect = getBoundingClientRect(offsetParent);
176
- scale = getScale(offsetParent);
177
- offsets.x = offsetRect.x + offsetParent.clientLeft;
178
- offsets.y = offsetRect.y + offsetParent.clientTop;
179
- }
180
- }
181
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
182
- return {
183
- width: rect.width * scale.x,
184
- height: rect.height * scale.y,
185
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
186
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
187
- };
188
- }
189
-
190
- function getClientRects(element) {
191
- return element.getClientRects ? Array.from(element.getClientRects()) : [];
192
- }
193
-
194
- // Gets the entire size of the scrollable document area, even extending outside
195
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
196
- function getDocumentRect(html) {
197
- const scroll = getNodeScroll(html);
198
- const body = html.ownerDocument.body;
199
- const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
200
- const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
201
- let x = -scroll.scrollLeft + getWindowScrollBarX(html);
202
- const y = -scroll.scrollTop;
203
- if (getComputedStyle$1(body).direction === 'rtl') {
204
- x += max(html.clientWidth, body.clientWidth) - width;
205
- }
206
- return {
207
- width,
208
- height,
209
- x,
210
- y
211
- };
212
- }
213
-
214
- // Safety check: ensure the scrollbar space is reasonable in case this
215
- // calculation is affected by unusual styles.
216
- // Most scrollbars leave 15-18px of space.
217
- const SCROLLBAR_MAX = 25;
218
- function getViewportRect(element, strategy, rootBoundary) {
219
- if (rootBoundary === void 0) {
220
- rootBoundary = 'viewport';
221
- }
222
- const isLayoutViewport = rootBoundary === 'layoutViewport';
223
- const win = getWindow(element);
224
- const html = getDocumentElement(element);
225
- const visualViewport = win.visualViewport;
226
- let width = html.clientWidth;
227
- let height = html.clientHeight;
228
- let x = 0;
229
- let y = 0;
230
- if (visualViewport) {
231
- // Client coordinates are relative to the layout viewport, except in
232
- // WebKit with an `absolute` strategy, where they are relative to the
233
- // visual viewport.
234
- const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';
235
- if (isLayoutViewport) {
236
- if (!layoutRelativeClientCoords) {
237
- x = -visualViewport.offsetLeft;
238
- y = -visualViewport.offsetTop;
239
- }
240
- } else {
241
- width = visualViewport.width;
242
- height = visualViewport.height;
243
- if (layoutRelativeClientCoords) {
244
- x = visualViewport.offsetLeft;
245
- y = visualViewport.offsetTop;
246
- }
247
- }
248
- }
249
- const windowScrollbarX = getWindowScrollBarX(html);
250
- // `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks
251
- // the visual width but isn't reflected in `html.clientWidth`, so subtract it.
252
- // Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also
253
- // reserves an empty inline-start gutter that clips nothing, so exclude just
254
- // the one scrollbar-side gutter — halve the measured (two-gutter) total. A
255
- // left-side scrollbar (`windowScrollbarX > 0`) is already handled by
256
- // `getHTMLOffset`/`visualViewport.width`; skip it here.
257
- if (windowScrollbarX <= 0) {
258
- const doc = html.ownerDocument;
259
- const body = doc.body;
260
- const bodyStyles = getComputedStyle(body);
261
- const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
262
- const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
263
- const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;
264
- if (gutter <= SCROLLBAR_MAX) {
265
- width -= gutter;
266
- }
267
- }
268
- return {
269
- width,
270
- height,
271
- x,
272
- y
273
- };
274
- }
275
-
276
- // Returns the inner client rect, subtracting scrollbars if present.
277
- function getInnerBoundingClientRect(element, strategy) {
278
- const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
279
- const top = clientRect.top + element.clientTop;
280
- const left = clientRect.left + element.clientLeft;
281
- const scale = getScale(element);
282
- const width = element.clientWidth * scale.x;
283
- const height = element.clientHeight * scale.y;
284
- const x = left * scale.x;
285
- const y = top * scale.y;
286
- return {
287
- width,
288
- height,
289
- x,
290
- y
291
- };
292
- }
293
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
294
- let rect;
295
- if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {
296
- rect = getViewportRect(element, strategy, clippingAncestor);
297
- } else if (clippingAncestor === 'document') {
298
- rect = getDocumentRect(getDocumentElement(element));
299
- } else if (isElement(clippingAncestor)) {
300
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
301
- } else {
302
- const visualOffsets = getVisualOffsets(element);
303
- rect = {
304
- x: clippingAncestor.x - visualOffsets.x,
305
- y: clippingAncestor.y - visualOffsets.y,
306
- width: clippingAncestor.width,
307
- height: clippingAncestor.height
308
- };
309
- }
310
- return rectToClientRect(rect);
311
- }
312
-
313
- // A "clipping ancestor" is an `overflow` element with the characteristic of
314
- // clipping (or hiding) child elements. This returns all clipping ancestors
315
- // of the given element up the tree.
316
- function getClippingElementAncestors(element, cache) {
317
- const cachedResult = cache.get(element);
318
- if (cachedResult) {
319
- return cachedResult;
320
- }
321
- let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
322
- let lastKeptComputedStyle = null;
323
- const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
324
- let currentNode = elementIsFixed ? getParentNode(element) : element;
325
-
326
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
327
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
328
- const computedStyle = getComputedStyle$1(currentNode);
329
- const currentNodeIsContaining = isContainingBlock(currentNode);
330
- // Position of the containing block chain below the current node. A fixed
331
- // element whose containing block hasn't been found yet is a fixed chain.
332
- const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';
333
-
334
- // A non-containing ancestor does not clip the element when the chain
335
- // below it escapes it: a fixed chain escapes all ancestors up to the
336
- // next containing block, an absolute chain escapes static ancestors.
337
- const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');
338
- if (shouldDropCurrentNode) {
339
- // Drop non-containing blocks.
340
- result = result.filter(ancestor => ancestor !== currentNode);
341
- } else {
342
- // The kept node carries the chain position for the next iteration.
343
- lastKeptComputedStyle = computedStyle;
344
- }
345
- currentNode = getParentNode(currentNode);
346
- }
347
- cache.set(element, result);
348
- return result;
349
- }
350
-
351
- // Gets the maximum area that the element is visible in due to any number of
352
- // clipping ancestors.
353
- function getClippingRect(_ref) {
354
- let {
355
- element,
356
- boundary,
357
- rootBoundary,
358
- strategy
359
- } = _ref;
360
- const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
361
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
362
- const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
363
- let top = firstRect.top;
364
- let right = firstRect.right;
365
- let bottom = firstRect.bottom;
366
- let left = firstRect.left;
367
- for (let i = 1; i < clippingAncestors.length; i++) {
368
- const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
369
- top = max(rect.top, top);
370
- right = min(rect.right, right);
371
- bottom = min(rect.bottom, bottom);
372
- left = max(rect.left, left);
373
- }
374
- return {
375
- width: right - left,
376
- height: bottom - top,
377
- x: left,
378
- y: top
379
- };
380
- }
381
-
382
- function getDimensions(element) {
383
- const {
384
- width,
385
- height
386
- } = getCssDimensions(element);
387
- return {
388
- width,
389
- height
390
- };
391
- }
392
-
393
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
394
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
395
- const documentElement = getDocumentElement(offsetParent);
396
- const isFixed = strategy === 'fixed';
397
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
398
- let scroll = {
399
- scrollLeft: 0,
400
- scrollTop: 0
401
- };
402
- const offsets = createCoords(0);
403
- if (isOffsetParentAnElement || !isFixed) {
404
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
405
- scroll = getNodeScroll(offsetParent);
406
- }
407
- if (isOffsetParentAnElement) {
408
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
409
- offsets.x = offsetRect.x + offsetParent.clientLeft;
410
- offsets.y = offsetRect.y + offsetParent.clientTop;
411
- }
412
- }
413
-
414
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
415
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
416
- if (!isOffsetParentAnElement && documentElement) {
417
- offsets.x = getWindowScrollBarX(documentElement);
418
- }
419
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
420
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
421
- const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
422
- return {
423
- x,
424
- y,
425
- width: rect.width,
426
- height: rect.height
427
- };
428
- }
429
-
430
- function isStaticPositioned(element) {
431
- return getComputedStyle$1(element).position === 'static';
432
- }
433
-
434
- function getTrueOffsetParent(element, polyfill) {
435
- if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
436
- return null;
437
- }
438
- if (polyfill) {
439
- return polyfill(element);
440
- }
441
- let rawOffsetParent = element.offsetParent;
442
-
443
- // Firefox returns the <html> element as the offsetParent if it's non-static,
444
- // while Chrome and Safari return the <body> element. The <body> element must
445
- // be used to perform the correct calculations even if the <html> element is
446
- // non-static.
447
- if (getDocumentElement(element) === rawOffsetParent) {
448
- rawOffsetParent = rawOffsetParent.ownerDocument.body;
449
- }
450
- return rawOffsetParent;
451
- }
452
-
453
- // Gets the closest ancestor positioned element. Handles some edge cases,
454
- // such as table ancestors and cross browser bugs.
455
- function getOffsetParent(element, polyfill) {
456
- const win = getWindow(element);
457
- if (isTopLayer(element)) {
458
- return win;
459
- }
460
- if (!isHTMLElement(element)) {
461
- let svgOffsetParent = getParentNode(element);
462
- while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
463
- if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
464
- return svgOffsetParent;
465
- }
466
- svgOffsetParent = getParentNode(svgOffsetParent);
467
- }
468
- return win;
469
- }
470
- let offsetParent = getTrueOffsetParent(element, polyfill);
471
- while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
472
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
473
- }
474
- if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
475
- return win;
476
- }
477
- return offsetParent || getContainingBlock(element) || win;
478
- }
479
-
480
- const getElementRects = async function (data) {
481
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
482
- const getDimensionsFn = this.getDimensions;
483
- const floatingDimensions = await getDimensionsFn(data.floating);
484
- return {
485
- reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
486
- floating: {
487
- x: 0,
488
- y: 0,
489
- width: floatingDimensions.width,
490
- height: floatingDimensions.height
491
- }
492
- };
493
- };
494
-
495
- function isRTL(element) {
496
- return getComputedStyle$1(element).direction === 'rtl';
497
- }
498
-
499
- const platform = {
500
- convertOffsetParentRelativeRectToViewportRelativeRect,
501
- getDocumentElement,
502
- getClippingRect,
503
- getOffsetParent,
504
- getElementRects,
505
- getClientRects,
506
- getDimensions,
507
- getScale,
508
- isElement,
509
- isRTL
510
- };
511
-
512
- function rectsAreEqual(a, b) {
513
- return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
514
- }
515
-
516
- // https://samthor.au/2021/observing-dom/
517
- function observeMove(element, onMove, ancestorResize) {
518
- let io = null;
519
- let timeoutId;
520
- const root = getDocumentElement(element);
521
- function cleanup() {
522
- var _io;
523
- clearTimeout(timeoutId);
524
- (_io = io) == null || _io.disconnect();
525
- io = null;
526
- }
527
- function refresh(skip, threshold) {
528
- if (skip === void 0) {
529
- skip = false;
530
- }
531
- if (threshold === void 0) {
532
- threshold = 1;
533
- }
534
- cleanup();
535
- const elementRectForRootMargin = element.getBoundingClientRect();
536
- const {
537
- left,
538
- top,
539
- width,
540
- height
541
- } = elementRectForRootMargin;
542
- if (!skip) {
543
- onMove();
544
- }
545
- if (!width || !height) {
546
- return;
547
- }
548
- const insetTop = floor(top);
549
- const insetRight = floor(root.clientWidth - (left + width));
550
- const insetBottom = floor(root.clientHeight - (top + height));
551
- const insetLeft = floor(left);
552
- const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
553
- const options = {
554
- rootMargin,
555
- threshold: max(0, min(1, threshold)) || 1
556
- };
557
- let isFirstUpdate = true;
558
- function handleObserve(entries) {
559
- const ratio = entries[0].intersectionRatio;
560
-
561
- // The entry is a snapshot, so the reference may have moved since the
562
- // intersection was computed (under performance constraints, or between
563
- // consecutive frames of a multi-frame layout shift). The reported ratio
564
- // and the observed area are stale in that case and cannot be trusted to
565
- // detect subsequent movement, so refresh regardless of the ratio.
566
- if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
567
- return refresh();
568
- }
569
- if (ratio !== threshold) {
570
- if (!isFirstUpdate) {
571
- return refresh();
572
- }
573
- if (!ratio) {
574
- // If the reference is clipped in place, the ratio is 0. Throttle
575
- // the refresh to prevent an infinite loop of updates.
576
- timeoutId = setTimeout(() => {
577
- refresh(false, 1e-7);
578
- }, 1000);
579
- } else {
580
- refresh(false, ratio);
581
- }
582
- }
583
- isFirstUpdate = false;
584
- }
585
-
586
- // Older browsers don't support a `document` as the root and will throw an
587
- // error.
588
- try {
589
- io = new IntersectionObserver(handleObserve, {
590
- ...options,
591
- // Handle <iframe>s
592
- root: root.ownerDocument
593
- });
594
- } catch (_e) {
595
- io = new IntersectionObserver(handleObserve, options);
596
- }
597
- io.observe(element);
598
- }
599
- const win = getWindow(element);
600
- // The window is a resize ancestor, so when `ancestorResize` is enabled its
601
- // listener already runs the update on resize. Here we only need to rebuild
602
- // the `IntersectionObserver` for the new root size, skipping a redundant
603
- // update. When `ancestorResize` is disabled, this becomes the sole update.
604
- const handleResize = () => refresh(ancestorResize);
605
- win.addEventListener('resize', handleResize);
606
- refresh(true);
607
- return () => {
608
- win.removeEventListener('resize', handleResize);
609
- cleanup();
610
- };
611
- }
612
-
613
- /**
614
- * Automatically updates the position of the floating element when necessary.
615
- * Should only be called when the floating element is mounted on the DOM or
616
- * visible on the screen.
617
- * @returns cleanup function that should be invoked when the floating element is
618
- * removed from the DOM or hidden from the screen.
619
- * @see https://floating-ui.com/docs/autoUpdate
620
- */
621
- function autoUpdate(reference, floating, update, options) {
622
- if (options === void 0) {
623
- options = {};
624
- }
625
- const {
626
- ancestorScroll = true,
627
- ancestorResize = true,
628
- elementResize = typeof ResizeObserver === 'function',
629
- layoutShift = typeof IntersectionObserver === 'function',
630
- animationFrame = false
631
- } = options;
632
- const referenceEl = unwrapElement(reference);
633
- const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
634
- ancestors.forEach(ancestor => {
635
- ancestorScroll && ancestor.addEventListener('scroll', update);
636
- ancestorResize && ancestor.addEventListener('resize', update);
637
- });
638
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;
639
- let reobserveFrame = -1;
640
- let resizeObserver = null;
641
- if (elementResize) {
642
- resizeObserver = new ResizeObserver(_ref => {
643
- let [firstEntry] = _ref;
644
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
645
- // Prevent update loops when using the `size` middleware.
646
- // https://github.com/floating-ui/floating-ui/issues/1740
647
- resizeObserver.unobserve(floating);
648
- cancelAnimationFrame(reobserveFrame);
649
- reobserveFrame = requestAnimationFrame(() => {
650
- var _resizeObserver;
651
- (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
652
- });
653
- }
654
- update();
655
- });
656
- if (referenceEl && !animationFrame) {
657
- resizeObserver.observe(referenceEl);
658
- }
659
- if (floating) {
660
- resizeObserver.observe(floating);
661
- }
662
- }
663
- let frameId;
664
- let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
665
- if (animationFrame) {
666
- frameLoop();
667
- }
668
- function frameLoop() {
669
- const nextRefRect = getBoundingClientRect(reference);
670
- if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
671
- update();
672
- }
673
- prevRefRect = nextRefRect;
674
- frameId = requestAnimationFrame(frameLoop);
675
- }
676
- update();
677
- return () => {
678
- var _resizeObserver2;
679
- ancestors.forEach(ancestor => {
680
- ancestorScroll && ancestor.removeEventListener('scroll', update);
681
- ancestorResize && ancestor.removeEventListener('resize', update);
682
- });
683
- cleanupIo == null || cleanupIo();
684
- (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
685
- resizeObserver = null;
686
- if (animationFrame) {
687
- cancelAnimationFrame(frameId);
688
- }
689
- };
690
- }
691
-
692
- /**
693
- * Resolves with an object of overflow side offsets that determine how much the
694
- * element is overflowing a given clipping boundary on each side.
695
- * - positive = overflowing the boundary by that number of pixels
696
- * - negative = how many pixels left before it will overflow
697
- * - 0 = lies flush with the boundary
698
- * @see https://floating-ui.com/docs/detectOverflow
699
- */
700
- const detectOverflow = detectOverflow$1;
701
-
702
- /**
703
- * Modifies the placement by translating the floating element along the
704
- * specified axes.
705
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
706
- * object may be passed.
707
- * @see https://floating-ui.com/docs/offset
708
- */
709
- const offset = offset$1;
710
-
711
- /**
712
- * Optimizes the visibility of the floating element by choosing the placement
713
- * that has the most space available automatically, without needing to specify a
714
- * preferred placement. Alternative to `flip`.
715
- * @see https://floating-ui.com/docs/autoPlacement
716
- */
717
- const autoPlacement = autoPlacement$1;
718
-
719
- /**
720
- * Optimizes the visibility of the floating element by shifting it in order to
721
- * keep it in view when it will overflow the clipping boundary.
722
- * @see https://floating-ui.com/docs/shift
723
- */
724
- const shift = shift$1;
725
-
726
- /**
727
- * Optimizes the visibility of the floating element by flipping the `placement`
728
- * in order to keep it in view when the preferred placement(s) will overflow the
729
- * clipping boundary. Alternative to `autoPlacement`.
730
- * @see https://floating-ui.com/docs/flip
731
- */
732
- const flip = flip$1;
733
-
734
- /**
735
- * Provides data that allows you to change the size of the floating element —
736
- * for instance, prevent it from overflowing the clipping boundary or match the
737
- * width of the reference element.
738
- * @see https://floating-ui.com/docs/size
739
- */
740
- const size = size$1;
741
-
742
- /**
743
- * Provides data to hide the floating element in applicable situations, such as
744
- * when it is not in the same clipping context as the reference element.
745
- * @see https://floating-ui.com/docs/hide
746
- */
747
- const hide = hide$1;
748
-
749
- /**
750
- * Provides data to position an inner element of the floating element so that it
751
- * appears centered to the reference element.
752
- * @see https://floating-ui.com/docs/arrow
753
- */
754
- const arrow = arrow$1;
755
-
756
- /**
757
- * Provides improved positioning for inline reference elements that can span
758
- * over multiple lines, such as hyperlinks or range selections.
759
- * @see https://floating-ui.com/docs/inline
760
- */
761
- const inline = inline$1;
762
-
763
- /**
764
- * Built-in `limiter` that will stop `shift()` at a certain point.
765
- */
766
- const limitShift = limitShift$1;
767
-
768
- /**
769
- * Computes the `x` and `y` coordinates that will place the floating element
770
- * next to a given reference element.
771
- */
772
- const computePosition = (reference, floating, options) => {
773
- // This caches the expensive `getClippingElementAncestors` function so that
774
- // multiple lifecycle resets re-use the same result. It only lives for a
775
- // single call. If other functions become expensive, we can add them as well.
776
- const cache = new Map();
777
- const mergedOptions = options != null ? options : {};
778
- const platformWithCache = {
779
- ...platform,
780
- ...mergedOptions.platform,
781
- _c: cache
782
- };
783
- return computePosition$1(reference, floating, {
784
- ...mergedOptions,
785
- platform: platformWithCache
786
- });
787
- };
788
-
789
- export { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };