renovate-log-parser 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +402 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +30 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/analyze.d.ts +24 -0
- package/dist/commands/analyze.js +114 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/detect-errors.d.ts +17 -0
- package/dist/commands/detect-errors.js +119 -0
- package/dist/commands/detect-errors.js.map +1 -0
- package/dist/commands/install-analyze-skill.d.ts +27 -0
- package/dist/commands/install-analyze-skill.js +181 -0
- package/dist/commands/install-analyze-skill.js.map +1 -0
- package/dist/commands/web.d.ts +12 -0
- package/dist/commands/web.js +103 -0
- package/dist/commands/web.js.map +1 -0
- package/dist/core/analyzer.d.ts +89 -0
- package/dist/core/analyzer.js +179 -0
- package/dist/core/analyzer.js.map +1 -0
- package/dist/core/error-detector.d.ts +56 -0
- package/dist/core/error-detector.js +236 -0
- package/dist/core/error-detector.js.map +1 -0
- package/dist/core/filters.d.ts +136 -0
- package/dist/core/filters.js +95 -0
- package/dist/core/filters.js.map +1 -0
- package/dist/core/ignore-file.d.ts +52 -0
- package/dist/core/ignore-file.js +104 -0
- package/dist/core/ignore-file.js.map +1 -0
- package/dist/core/levels.d.ts +33 -0
- package/dist/core/levels.js +35 -0
- package/dist/core/levels.js.map +1 -0
- package/dist/core/parser.d.ts +57 -0
- package/dist/core/parser.js +201 -0
- package/dist/core/parser.js.map +1 -0
- package/dist/core/query-builder.d.ts +47 -0
- package/dist/core/query-builder.js +155 -0
- package/dist/core/query-builder.js.map +1 -0
- package/dist/core/skill-template.d.ts +34 -0
- package/dist/core/skill-template.js +259 -0
- package/dist/core/skill-template.js.map +1 -0
- package/package.json +68 -0
- package/web/.output/nitro.json +15 -0
- package/web/.output/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
- package/web/.output/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
- package/web/.output/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
- package/web/.output/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
- package/web/.output/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
- package/web/.output/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
- package/web/.output/public/_nuxt/BWja8e3M.js +37 -0
- package/web/.output/public/_nuxt/BgApMHS1.js +1 -0
- package/web/.output/public/_nuxt/CGPWRqbc.js +1 -0
- package/web/.output/public/_nuxt/DlAUqK2U.js +1 -0
- package/web/.output/public/_nuxt/Sgtec1U0.js +1 -0
- package/web/.output/public/_nuxt/builds/latest.json +1 -0
- package/web/.output/public/_nuxt/builds/meta/c4723e49-0623-47af-ae79-9ab6428bdcc1.json +1 -0
- package/web/.output/public/_nuxt/entry.9mB-pyEY.css +1 -0
- package/web/.output/public/_nuxt/error-404.B_PvSG-P.css +1 -0
- package/web/.output/public/_nuxt/error-500.CghkKCEr.css +1 -0
- package/web/.output/public/_nuxt/index.BlvAG7F6.css +1 -0
- package/web/.output/public/favicon.ico +0 -0
- package/web/.output/server/chunks/_/error-500.mjs +19 -0
- package/web/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/web/.output/server/chunks/_/icons.mjs +6153 -0
- package/web/.output/server/chunks/_/icons.mjs.map +1 -0
- package/web/.output/server/chunks/_/icons2.mjs +11494 -0
- package/web/.output/server/chunks/_/icons2.mjs.map +1 -0
- package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +10 -0
- package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +1 -0
- package/web/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/web/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs +106 -0
- package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs.map +1 -0
- package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +8 -0
- package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +1 -0
- package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs +89 -0
- package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs.map +1 -0
- package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +8 -0
- package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +1 -0
- package/web/.output/server/chunks/build/index-88dXYOxO.mjs +19675 -0
- package/web/.output/server/chunks/build/index-88dXYOxO.mjs.map +1 -0
- package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +8 -0
- package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +1 -0
- package/web/.output/server/chunks/build/server.mjs +7910 -0
- package/web/.output/server/chunks/build/server.mjs.map +1 -0
- package/web/.output/server/chunks/build/styles.mjs +10 -0
- package/web/.output/server/chunks/build/styles.mjs.map +1 -0
- package/web/.output/server/chunks/nitro/nitro.mjs +6944 -0
- package/web/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/fields.get.mjs +27 -0
- package/web/.output/server/chunks/routes/api/fields.get.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/findings.get.mjs +30 -0
- package/web/.output/server/chunks/routes/api/findings.get.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/log/contents.post.mjs +29 -0
- package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/log/path.post.mjs +30 -0
- package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/repositories.get.mjs +27 -0
- package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +1 -0
- package/web/.output/server/chunks/routes/api/rows.get.mjs +48 -0
- package/web/.output/server/chunks/routes/api/rows.get.mjs.map +1 -0
- package/web/.output/server/chunks/routes/renderer.mjs +451 -0
- package/web/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/web/.output/server/index.mjs +16 -0
- package/web/.output/server/index.mjs.map +1 -0
- package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +290 -0
- package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
- package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
- package/web/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
- package/web/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
- package/web/.output/server/node_modules/@floating-ui/core/package.json +63 -0
- package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
- package/web/.output/server/node_modules/@floating-ui/dom/package.json +72 -0
- package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
- package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
- package/web/.output/server/node_modules/@floating-ui/utils/package.json +70 -0
- package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +190 -0
- package/web/.output/server/node_modules/@floating-ui/vue/package.json +71 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
- package/web/.output/server/node_modules/@iconify/utils/package.json +119 -0
- package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1896 -0
- package/web/.output/server/node_modules/@iconify/vue/package.json +62 -0
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +1268 -0
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +34 -0
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +74 -0
- package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +56 -0
- package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +66 -0
- package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +68 -0
- package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
- package/web/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/web/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +2 -0
- package/web/.output/server/node_modules/@vue/devtools-api/package.json +34 -0
- package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +5670 -0
- package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +290 -0
- package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +49 -0
- package/web/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
- package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +239 -0
- package/web/.output/server/node_modules/@vue/devtools-shared/package.json +33 -0
- package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
- package/web/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
- package/web/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
- package/web/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
- package/web/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/web/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/web/.output/server/node_modules/@vueuse/core/dist/index.js +8464 -0
- package/web/.output/server/node_modules/@vueuse/core/package.json +49 -0
- package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +2013 -0
- package/web/.output/server/node_modules/@vueuse/shared/package.json +42 -0
- package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +174 -0
- package/web/.output/server/node_modules/aria-hidden/package.json +71 -0
- package/web/.output/server/node_modules/birpc/dist/index.mjs +291 -0
- package/web/.output/server/node_modules/birpc/package.json +57 -0
- package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/web/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/web/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/web/.output/server/node_modules/consola/package.json +136 -0
- package/web/.output/server/node_modules/devalue/index.js +4 -0
- package/web/.output/server/node_modules/devalue/package.json +40 -0
- package/web/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/web/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/web/.output/server/node_modules/devalue/src/parse.js +283 -0
- package/web/.output/server/node_modules/devalue/src/stringify.js +401 -0
- package/web/.output/server/node_modules/devalue/src/uneval.js +552 -0
- package/web/.output/server/node_modules/devalue/src/utils.js +160 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/web/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/web/.output/server/node_modules/entities/package.json +120 -0
- package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/web/.output/server/node_modules/estree-walker/package.json +37 -0
- package/web/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/web/.output/server/node_modules/hookable/package.json +53 -0
- package/web/.output/server/node_modules/nostics/dist/index.mjs +179 -0
- package/web/.output/server/node_modules/nostics/package.json +124 -0
- package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
- package/web/.output/server/node_modules/perfect-debounce/package.json +41 -0
- package/web/.output/server/node_modules/rou3/dist/index.mjs +501 -0
- package/web/.output/server/node_modules/rou3/package.json +48 -0
- package/web/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/web/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/web/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/web/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/web/.output/server/node_modules/source-map-js/package.json +71 -0
- package/web/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +39 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +56 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +58 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +134 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +15 -0
- package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +75 -0
- package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +976 -0
- package/web/.output/server/node_modules/srvx/package.json +102 -0
- package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +3365 -0
- package/web/.output/server/node_modules/tailwind-merge/package.json +93 -0
- package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +112 -0
- package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +269 -0
- package/web/.output/server/node_modules/tailwind-variants/dist/index.js +38 -0
- package/web/.output/server/node_modules/tailwind-variants/package.json +122 -0
- package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
- package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/web/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/web/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/web/.output/server/node_modules/ufo/package.json +48 -0
- package/web/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/web/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/web/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/web/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/web/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/web/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +257 -0
- package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +53 -0
- package/web/.output/server/node_modules/unhead/package.json +105 -0
- package/web/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/web/.output/server/node_modules/vue/index.js +7 -0
- package/web/.output/server/node_modules/vue/index.mjs +1 -0
- package/web/.output/server/node_modules/vue/package.json +112 -0
- package/web/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
- package/web/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
- package/web/.output/server/node_modules/vue-demi/lib/index.mjs +34 -0
- package/web/.output/server/node_modules/vue-demi/package.json +47 -0
- package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +1056 -0
- package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +436 -0
- package/web/.output/server/node_modules/vue-router/dist/vue-router.js +1543 -0
- package/web/.output/server/node_modules/vue-router/package.json +214 -0
- package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/web/.output/server/package.json +51 -0
|
@@ -0,0 +1,789 @@
|
|
|
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 };
|