groove-dev 0.26.17 → 0.26.19
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/node_modules/@groove-dev/daemon/src/api.js +61 -23
- package/node_modules/@groove-dev/daemon/src/index.js +19 -26
- package/node_modules/@groove-dev/daemon/src/process.js +17 -11
- package/node_modules/@groove-dev/daemon/src/teams.js +4 -0
- package/{packages/gui/dist/assets/index-GisjgmsR.js → node_modules/@groove-dev/gui/dist/assets/index-CBgUozrt.js} +135 -135
- package/node_modules/@groove-dev/gui/dist/assets/index-CHRPn_ls.css +1 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/src/app.css +18 -0
- package/node_modules/@groove-dev/gui/src/components/agents/agent-chat.jsx +4 -1
- package/node_modules/@groove-dev/gui/src/components/agents/agent-feed.jsx +18 -2
- package/node_modules/@groove-dev/gui/src/components/ui/thinking-indicator.jsx +63 -22
- package/node_modules/@groove-dev/gui/src/stores/groove.js +1 -0
- package/node_modules/@groove-dev/gui/src/views/agents.jsx +7 -3
- package/package.json +1 -1
- package/packages/daemon/src/api.js +61 -23
- package/packages/daemon/src/index.js +19 -26
- package/packages/daemon/src/process.js +17 -11
- package/packages/daemon/src/teams.js +4 -0
- package/{node_modules/@groove-dev/gui/dist/assets/index-GisjgmsR.js → packages/gui/dist/assets/index-CBgUozrt.js} +135 -135
- package/packages/gui/dist/assets/index-CHRPn_ls.css +1 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/node_modules/.vite/deps/@codemirror_autocomplete.js +68 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_autocomplete.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_commands.js +1420 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_commands.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-css.js +17 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-css.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-html.js +22 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-html.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-javascript.js +34 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-javascript.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-json.js +101 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-json.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-markdown.js +2534 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-markdown.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-python.js +789 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_lang-python.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_language.js +115 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_language.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_search.js +1136 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_search.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_state.js +63 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_state.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_theme-one-dark.js +179 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_theme-one-dark.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_view.js +104 -0
- package/packages/gui/node_modules/.vite/deps/@codemirror_view.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-dialog.js +1446 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-dialog.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-scroll-area.js +757 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-scroll-area.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tabs.js +502 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tabs.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tooltip.js +2825 -0
- package/packages/gui/node_modules/.vite/deps/@radix-ui_react-tooltip.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_addon-fit.js +46 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_addon-fit.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_addon-web-links.js +121 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_addon-web-links.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_xterm.js +9237 -0
- package/packages/gui/node_modules/.vite/deps/@xterm_xterm.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/@xyflow_react.js +9934 -0
- package/packages/gui/node_modules/.vite/deps/@xyflow_react.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/_metadata.json +244 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3EE34IFC.js +5169 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3EE34IFC.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3IB5EUP7.js +2000 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3IB5EUP7.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3LBP22MX.js +1115 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3LBP22MX.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3Q7HT7ZF.js +701 -0
- package/packages/gui/node_modules/.vite/deps/chunk-3Q7HT7ZF.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-44CLUOQE.js +1776 -0
- package/packages/gui/node_modules/.vite/deps/chunk-44CLUOQE.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-ACEP5X2F.js +292 -0
- package/packages/gui/node_modules/.vite/deps/chunk-ACEP5X2F.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-CDLO3JFW.js +1004 -0
- package/packages/gui/node_modules/.vite/deps/chunk-CDLO3JFW.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-HPXOV7QR.js +23 -0
- package/packages/gui/node_modules/.vite/deps/chunk-HPXOV7QR.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-HVFOBSCQ.js +1062 -0
- package/packages/gui/node_modules/.vite/deps/chunk-HVFOBSCQ.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-J6DMOQWP.js +105 -0
- package/packages/gui/node_modules/.vite/deps/chunk-J6DMOQWP.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-KXLIKZFX.js +434 -0
- package/packages/gui/node_modules/.vite/deps/chunk-KXLIKZFX.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-PR4QN5HX.js +42 -0
- package/packages/gui/node_modules/.vite/deps/chunk-PR4QN5HX.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-RE2FU7ZU.js +10985 -0
- package/packages/gui/node_modules/.vite/deps/chunk-RE2FU7ZU.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-WYSQD5ZG.js +264 -0
- package/packages/gui/node_modules/.vite/deps/chunk-WYSQD5ZG.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-YAD7VOVN.js +280 -0
- package/packages/gui/node_modules/.vite/deps/chunk-YAD7VOVN.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/chunk-YYJMNVCJ.js +3459 -0
- package/packages/gui/node_modules/.vite/deps/chunk-YYJMNVCJ.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/clsx.js +22 -0
- package/packages/gui/node_modules/.vite/deps/clsx.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/framer-motion.js +12732 -0
- package/packages/gui/node_modules/.vite/deps/framer-motion.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/lucide-react.js +29653 -0
- package/packages/gui/node_modules/.vite/deps/lucide-react.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/package.json +3 -0
- package/packages/gui/node_modules/.vite/deps/react-dom.js +6 -0
- package/packages/gui/node_modules/.vite/deps/react-dom.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/react-dom_client.js +20217 -0
- package/packages/gui/node_modules/.vite/deps/react-dom_client.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/react.js +5 -0
- package/packages/gui/node_modules/.vite/deps/react.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/react_jsx-dev-runtime.js +278 -0
- package/packages/gui/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/react_jsx-runtime.js +6 -0
- package/packages/gui/node_modules/.vite/deps/react_jsx-runtime.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/tailwind-merge.js +3263 -0
- package/packages/gui/node_modules/.vite/deps/tailwind-merge.js.map +7 -0
- package/packages/gui/node_modules/.vite/deps/zustand.js +56 -0
- package/packages/gui/node_modules/.vite/deps/zustand.js.map +7 -0
- package/packages/gui/src/app.css +18 -0
- package/packages/gui/src/components/agents/agent-chat.jsx +4 -1
- package/packages/gui/src/components/agents/agent-feed.jsx +18 -2
- package/packages/gui/src/components/ui/thinking-indicator.jsx +63 -22
- package/packages/gui/src/stores/groove.js +1 -0
- package/packages/gui/src/views/agents.jsx +7 -3
- package/GROOVE_AI_PITCH_DECK_OUTLINE.docx +0 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-DAy5FSuv.css +0 -1
- package/packages/gui/dist/assets/index-DAy5FSuv.css +0 -1
- package/pitch-deck-groove/convert-slides.js +0 -795
- package/pitch-deck-groove/deck.pptx +0 -0
- package/pitch-deck-groove/node_modules/.package-lock.json +0 -755
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/.github/workflows/codeql.yml +0 -74
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +0 -510
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/LICENSE +0 -27
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/README.md +0 -742
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp +0 -4
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/contributing.md +0 -10
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/build.js +0 -51
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/clean.js +0 -31
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/configure.js +0 -52
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/info.js +0 -38
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/install.js +0 -235
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/main.js +0 -125
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +0 -309
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/package.js +0 -73
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +0 -34
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/publish.js +0 -81
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js +0 -20
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js +0 -19
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/reveal.js +0 -32
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js +0 -79
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js +0 -53
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js +0 -41
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +0 -2602
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js +0 -93
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -102
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +0 -205
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +0 -163
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +0 -335
- package/pitch-deck-groove/node_modules/@mapbox/node-pre-gyp/package.json +0 -62
- package/pitch-deck-groove/node_modules/@types/node/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/@types/node/README.md +0 -15
- package/pitch-deck-groove/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/pitch-deck-groove/node_modules/@types/node/assert.d.ts +0 -1005
- package/pitch-deck-groove/node_modules/@types/node/async_hooks.d.ts +0 -586
- package/pitch-deck-groove/node_modules/@types/node/buffer.buffer.d.ts +0 -457
- package/pitch-deck-groove/node_modules/@types/node/buffer.d.ts +0 -1901
- package/pitch-deck-groove/node_modules/@types/node/child_process.d.ts +0 -1453
- package/pitch-deck-groove/node_modules/@types/node/cluster.d.ts +0 -578
- package/pitch-deck-groove/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/pitch-deck-groove/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/pitch-deck-groove/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/pitch-deck-groove/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/pitch-deck-groove/node_modules/@types/node/console.d.ts +0 -452
- package/pitch-deck-groove/node_modules/@types/node/constants.d.ts +0 -21
- package/pitch-deck-groove/node_modules/@types/node/crypto.d.ts +0 -4504
- package/pitch-deck-groove/node_modules/@types/node/dgram.d.ts +0 -596
- package/pitch-deck-groove/node_modules/@types/node/diagnostics_channel.d.ts +0 -551
- package/pitch-deck-groove/node_modules/@types/node/dns/promises.d.ts +0 -477
- package/pitch-deck-groove/node_modules/@types/node/dns.d.ts +0 -860
- package/pitch-deck-groove/node_modules/@types/node/domain.d.ts +0 -170
- package/pitch-deck-groove/node_modules/@types/node/events.d.ts +0 -863
- package/pitch-deck-groove/node_modules/@types/node/fs/promises.d.ts +0 -1208
- package/pitch-deck-groove/node_modules/@types/node/fs.d.ts +0 -4332
- package/pitch-deck-groove/node_modules/@types/node/globals.d.ts +0 -170
- package/pitch-deck-groove/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/pitch-deck-groove/node_modules/@types/node/http.d.ts +0 -1919
- package/pitch-deck-groove/node_modules/@types/node/http2.d.ts +0 -2580
- package/pitch-deck-groove/node_modules/@types/node/https.d.ts +0 -549
- package/pitch-deck-groove/node_modules/@types/node/index.d.ts +0 -92
- package/pitch-deck-groove/node_modules/@types/node/inspector.generated.d.ts +0 -2775
- package/pitch-deck-groove/node_modules/@types/node/module.d.ts +0 -503
- package/pitch-deck-groove/node_modules/@types/node/net.d.ts +0 -924
- package/pitch-deck-groove/node_modules/@types/node/os.d.ts +0 -480
- package/pitch-deck-groove/node_modules/@types/node/package.json +0 -145
- package/pitch-deck-groove/node_modules/@types/node/path.d.ts +0 -191
- package/pitch-deck-groove/node_modules/@types/node/perf_hooks.d.ts +0 -860
- package/pitch-deck-groove/node_modules/@types/node/process.d.ts +0 -1632
- package/pitch-deck-groove/node_modules/@types/node/punycode.d.ts +0 -117
- package/pitch-deck-groove/node_modules/@types/node/querystring.d.ts +0 -140
- package/pitch-deck-groove/node_modules/@types/node/readline/promises.d.ts +0 -154
- package/pitch-deck-groove/node_modules/@types/node/readline.d.ts +0 -715
- package/pitch-deck-groove/node_modules/@types/node/repl.d.ts +0 -430
- package/pitch-deck-groove/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/pitch-deck-groove/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/pitch-deck-groove/node_modules/@types/node/stream/web.d.ts +0 -527
- package/pitch-deck-groove/node_modules/@types/node/stream.d.ts +0 -1680
- package/pitch-deck-groove/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/pitch-deck-groove/node_modules/@types/node/test.d.ts +0 -1208
- package/pitch-deck-groove/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/pitch-deck-groove/node_modules/@types/node/timers.d.ts +0 -286
- package/pitch-deck-groove/node_modules/@types/node/tls.d.ts +0 -1204
- package/pitch-deck-groove/node_modules/@types/node/trace_events.d.ts +0 -171
- package/pitch-deck-groove/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -455
- package/pitch-deck-groove/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/pitch-deck-groove/node_modules/@types/node/ts5.6/index.d.ts +0 -92
- package/pitch-deck-groove/node_modules/@types/node/tty.d.ts +0 -206
- package/pitch-deck-groove/node_modules/@types/node/url.d.ts +0 -957
- package/pitch-deck-groove/node_modules/@types/node/util.d.ts +0 -2083
- package/pitch-deck-groove/node_modules/@types/node/v8.d.ts +0 -753
- package/pitch-deck-groove/node_modules/@types/node/vm.d.ts +0 -704
- package/pitch-deck-groove/node_modules/@types/node/wasi.d.ts +0 -160
- package/pitch-deck-groove/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/pitch-deck-groove/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/pitch-deck-groove/node_modules/@types/node/web-globals/events.d.ts +0 -81
- package/pitch-deck-groove/node_modules/@types/node/web-globals/fetch.d.ts +0 -38
- package/pitch-deck-groove/node_modules/@types/node/worker_threads.d.ts +0 -698
- package/pitch-deck-groove/node_modules/@types/node/zlib.d.ts +0 -517
- package/pitch-deck-groove/node_modules/abbrev/LICENSE +0 -46
- package/pitch-deck-groove/node_modules/abbrev/README.md +0 -23
- package/pitch-deck-groove/node_modules/abbrev/abbrev.js +0 -61
- package/pitch-deck-groove/node_modules/abbrev/package.json +0 -21
- package/pitch-deck-groove/node_modules/agent-base/README.md +0 -145
- package/pitch-deck-groove/node_modules/agent-base/dist/src/index.d.ts +0 -78
- package/pitch-deck-groove/node_modules/agent-base/dist/src/index.js +0 -203
- package/pitch-deck-groove/node_modules/agent-base/dist/src/index.js.map +0 -1
- package/pitch-deck-groove/node_modules/agent-base/dist/src/promisify.d.ts +0 -4
- package/pitch-deck-groove/node_modules/agent-base/dist/src/promisify.js +0 -18
- package/pitch-deck-groove/node_modules/agent-base/dist/src/promisify.js.map +0 -1
- package/pitch-deck-groove/node_modules/agent-base/package.json +0 -64
- package/pitch-deck-groove/node_modules/agent-base/src/index.ts +0 -345
- package/pitch-deck-groove/node_modules/agent-base/src/promisify.ts +0 -33
- package/pitch-deck-groove/node_modules/ansi-regex/index.d.ts +0 -37
- package/pitch-deck-groove/node_modules/ansi-regex/index.js +0 -10
- package/pitch-deck-groove/node_modules/ansi-regex/license +0 -9
- package/pitch-deck-groove/node_modules/ansi-regex/package.json +0 -55
- package/pitch-deck-groove/node_modules/ansi-regex/readme.md +0 -78
- package/pitch-deck-groove/node_modules/aproba/LICENSE +0 -14
- package/pitch-deck-groove/node_modules/aproba/README.md +0 -94
- package/pitch-deck-groove/node_modules/aproba/index.js +0 -105
- package/pitch-deck-groove/node_modules/aproba/package.json +0 -35
- package/pitch-deck-groove/node_modules/are-we-there-yet/LICENSE.md +0 -18
- package/pitch-deck-groove/node_modules/are-we-there-yet/README.md +0 -208
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/index.js +0 -4
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/tracker-base.js +0 -11
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/tracker-group.js +0 -116
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -36
- package/pitch-deck-groove/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/pitch-deck-groove/node_modules/are-we-there-yet/package.json +0 -53
- package/pitch-deck-groove/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/pitch-deck-groove/node_modules/balanced-match/LICENSE.md +0 -21
- package/pitch-deck-groove/node_modules/balanced-match/README.md +0 -97
- package/pitch-deck-groove/node_modules/balanced-match/index.js +0 -62
- package/pitch-deck-groove/node_modules/balanced-match/package.json +0 -48
- package/pitch-deck-groove/node_modules/brace-expansion/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/brace-expansion/README.md +0 -129
- package/pitch-deck-groove/node_modules/brace-expansion/index.js +0 -203
- package/pitch-deck-groove/node_modules/brace-expansion/package.json +0 -50
- package/pitch-deck-groove/node_modules/canvas/CHANGELOG.md +0 -1052
- package/pitch-deck-groove/node_modules/canvas/Readme.md +0 -600
- package/pitch-deck-groove/node_modules/canvas/binding.gyp +0 -230
- package/pitch-deck-groove/node_modules/canvas/browser.js +0 -35
- package/pitch-deck-groove/node_modules/canvas/build/Makefile +0 -352
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/canvas-postbuild.node.d +0 -1
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/canvas.node.d +0 -1
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Backends.o.d +0 -490
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Canvas.o.d +0 -503
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d +0 -474
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d +0 -485
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d +0 -496
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Image.o.d +0 -484
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/ImageData.o.d +0 -152
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d +0 -162
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d +0 -164
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d +0 -488
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d +0 -488
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d +0 -5
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/closure.o.d +0 -483
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/color.o.d +0 -4
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/init.o.d +0 -520
- package/pitch-deck-groove/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/register_font.o.d +0 -357
- package/pitch-deck-groove/node_modules/canvas/build/Release/canvas-postbuild.node +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/canvas.node +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/Backends.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/Canvas.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasGradient.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasPattern.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasRenderingContext2d.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/Image.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/ImageData.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/backend/Backend.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/backend/ImageBackend.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/backend/PdfBackend.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/backend/SvgBackend.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/bmp/BMPParser.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/closure.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/color.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/init.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/Release/obj.target/canvas/src/register_font.o +0 -0
- package/pitch-deck-groove/node_modules/canvas/build/binding.Makefile +0 -6
- package/pitch-deck-groove/node_modules/canvas/build/canvas-postbuild.target.mk +0 -51
- package/pitch-deck-groove/node_modules/canvas/build/canvas.target.mk +0 -272
- package/pitch-deck-groove/node_modules/canvas/build/gyp-mac-tool +0 -772
- package/pitch-deck-groove/node_modules/canvas/changes +0 -19
- package/pitch-deck-groove/node_modules/canvas/index.js +0 -94
- package/pitch-deck-groove/node_modules/canvas/lib/DOMMatrix.js +0 -620
- package/pitch-deck-groove/node_modules/canvas/lib/bindings.js +0 -13
- package/pitch-deck-groove/node_modules/canvas/lib/canvas.js +0 -113
- package/pitch-deck-groove/node_modules/canvas/lib/context2d.js +0 -14
- package/pitch-deck-groove/node_modules/canvas/lib/image.js +0 -96
- package/pitch-deck-groove/node_modules/canvas/lib/jpegstream.js +0 -41
- package/pitch-deck-groove/node_modules/canvas/lib/parse-font.js +0 -101
- package/pitch-deck-groove/node_modules/canvas/lib/pattern.js +0 -17
- package/pitch-deck-groove/node_modules/canvas/lib/pdfstream.js +0 -35
- package/pitch-deck-groove/node_modules/canvas/lib/pngstream.js +0 -42
- package/pitch-deck-groove/node_modules/canvas/package.json +0 -72
- package/pitch-deck-groove/node_modules/canvas/src/Backends.cc +0 -18
- package/pitch-deck-groove/node_modules/canvas/src/Backends.h +0 -10
- package/pitch-deck-groove/node_modules/canvas/src/Canvas.cc +0 -965
- package/pitch-deck-groove/node_modules/canvas/src/Canvas.h +0 -96
- package/pitch-deck-groove/node_modules/canvas/src/CanvasError.h +0 -23
- package/pitch-deck-groove/node_modules/canvas/src/CanvasGradient.cc +0 -123
- package/pitch-deck-groove/node_modules/canvas/src/CanvasGradient.h +0 -22
- package/pitch-deck-groove/node_modules/canvas/src/CanvasPattern.cc +0 -136
- package/pitch-deck-groove/node_modules/canvas/src/CanvasPattern.h +0 -37
- package/pitch-deck-groove/node_modules/canvas/src/CanvasRenderingContext2d.cc +0 -3360
- package/pitch-deck-groove/node_modules/canvas/src/CanvasRenderingContext2d.h +0 -225
- package/pitch-deck-groove/node_modules/canvas/src/Image.cc +0 -1434
- package/pitch-deck-groove/node_modules/canvas/src/Image.h +0 -127
- package/pitch-deck-groove/node_modules/canvas/src/ImageData.cc +0 -146
- package/pitch-deck-groove/node_modules/canvas/src/ImageData.h +0 -27
- package/pitch-deck-groove/node_modules/canvas/src/InstanceData.h +0 -8
- package/pitch-deck-groove/node_modules/canvas/src/JPEGStream.h +0 -167
- package/pitch-deck-groove/node_modules/canvas/src/PNG.h +0 -292
- package/pitch-deck-groove/node_modules/canvas/src/Point.h +0 -11
- package/pitch-deck-groove/node_modules/canvas/src/Util.h +0 -9
- package/pitch-deck-groove/node_modules/canvas/src/backend/Backend.cc +0 -112
- package/pitch-deck-groove/node_modules/canvas/src/backend/Backend.h +0 -69
- package/pitch-deck-groove/node_modules/canvas/src/backend/ImageBackend.cc +0 -74
- package/pitch-deck-groove/node_modules/canvas/src/backend/ImageBackend.h +0 -26
- package/pitch-deck-groove/node_modules/canvas/src/backend/PdfBackend.cc +0 -53
- package/pitch-deck-groove/node_modules/canvas/src/backend/PdfBackend.h +0 -24
- package/pitch-deck-groove/node_modules/canvas/src/backend/SvgBackend.cc +0 -61
- package/pitch-deck-groove/node_modules/canvas/src/backend/SvgBackend.h +0 -24
- package/pitch-deck-groove/node_modules/canvas/src/bmp/BMPParser.cc +0 -457
- package/pitch-deck-groove/node_modules/canvas/src/bmp/BMPParser.h +0 -60
- package/pitch-deck-groove/node_modules/canvas/src/bmp/LICENSE.md +0 -24
- package/pitch-deck-groove/node_modules/canvas/src/closure.cc +0 -26
- package/pitch-deck-groove/node_modules/canvas/src/closure.h +0 -81
- package/pitch-deck-groove/node_modules/canvas/src/color.cc +0 -779
- package/pitch-deck-groove/node_modules/canvas/src/color.h +0 -30
- package/pitch-deck-groove/node_modules/canvas/src/dll_visibility.h +0 -20
- package/pitch-deck-groove/node_modules/canvas/src/init.cc +0 -94
- package/pitch-deck-groove/node_modules/canvas/src/register_font.cc +0 -408
- package/pitch-deck-groove/node_modules/canvas/src/register_font.h +0 -7
- package/pitch-deck-groove/node_modules/canvas/types/Readme.md +0 -3
- package/pitch-deck-groove/node_modules/canvas/types/index.d.ts +0 -484
- package/pitch-deck-groove/node_modules/canvas/util/has_lib.js +0 -119
- package/pitch-deck-groove/node_modules/canvas/util/win_jpeg_lookup.js +0 -21
- package/pitch-deck-groove/node_modules/chownr/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/chownr/README.md +0 -3
- package/pitch-deck-groove/node_modules/chownr/chownr.js +0 -167
- package/pitch-deck-groove/node_modules/chownr/package.json +0 -32
- package/pitch-deck-groove/node_modules/color-support/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/color-support/README.md +0 -129
- package/pitch-deck-groove/node_modules/color-support/bin.js +0 -3
- package/pitch-deck-groove/node_modules/color-support/browser.js +0 -14
- package/pitch-deck-groove/node_modules/color-support/index.js +0 -134
- package/pitch-deck-groove/node_modules/color-support/package.json +0 -36
- package/pitch-deck-groove/node_modules/concat-map/.travis.yml +0 -4
- package/pitch-deck-groove/node_modules/concat-map/LICENSE +0 -18
- package/pitch-deck-groove/node_modules/concat-map/README.markdown +0 -62
- package/pitch-deck-groove/node_modules/concat-map/example/map.js +0 -6
- package/pitch-deck-groove/node_modules/concat-map/index.js +0 -13
- package/pitch-deck-groove/node_modules/concat-map/package.json +0 -43
- package/pitch-deck-groove/node_modules/concat-map/test/map.js +0 -39
- package/pitch-deck-groove/node_modules/console-control-strings/LICENSE +0 -13
- package/pitch-deck-groove/node_modules/console-control-strings/README.md +0 -145
- package/pitch-deck-groove/node_modules/console-control-strings/README.md~ +0 -140
- package/pitch-deck-groove/node_modules/console-control-strings/index.js +0 -125
- package/pitch-deck-groove/node_modules/console-control-strings/package.json +0 -27
- package/pitch-deck-groove/node_modules/core-util-is/LICENSE +0 -19
- package/pitch-deck-groove/node_modules/core-util-is/README.md +0 -3
- package/pitch-deck-groove/node_modules/core-util-is/lib/util.js +0 -107
- package/pitch-deck-groove/node_modules/core-util-is/package.json +0 -38
- package/pitch-deck-groove/node_modules/debug/LICENSE +0 -20
- package/pitch-deck-groove/node_modules/debug/README.md +0 -481
- package/pitch-deck-groove/node_modules/debug/package.json +0 -64
- package/pitch-deck-groove/node_modules/debug/src/browser.js +0 -272
- package/pitch-deck-groove/node_modules/debug/src/common.js +0 -292
- package/pitch-deck-groove/node_modules/debug/src/index.js +0 -10
- package/pitch-deck-groove/node_modules/debug/src/node.js +0 -263
- package/pitch-deck-groove/node_modules/decompress-response/index.d.ts +0 -29
- package/pitch-deck-groove/node_modules/decompress-response/index.js +0 -40
- package/pitch-deck-groove/node_modules/decompress-response/license +0 -9
- package/pitch-deck-groove/node_modules/decompress-response/package.json +0 -50
- package/pitch-deck-groove/node_modules/decompress-response/readme.md +0 -52
- package/pitch-deck-groove/node_modules/delegates/History.md +0 -22
- package/pitch-deck-groove/node_modules/delegates/License +0 -20
- package/pitch-deck-groove/node_modules/delegates/Makefile +0 -8
- package/pitch-deck-groove/node_modules/delegates/Readme.md +0 -94
- package/pitch-deck-groove/node_modules/delegates/index.js +0 -121
- package/pitch-deck-groove/node_modules/delegates/package.json +0 -13
- package/pitch-deck-groove/node_modules/delegates/test/index.js +0 -94
- package/pitch-deck-groove/node_modules/detect-libc/LICENSE +0 -201
- package/pitch-deck-groove/node_modules/detect-libc/README.md +0 -163
- package/pitch-deck-groove/node_modules/detect-libc/index.d.ts +0 -14
- package/pitch-deck-groove/node_modules/detect-libc/lib/detect-libc.js +0 -313
- package/pitch-deck-groove/node_modules/detect-libc/lib/elf.js +0 -39
- package/pitch-deck-groove/node_modules/detect-libc/lib/filesystem.js +0 -51
- package/pitch-deck-groove/node_modules/detect-libc/lib/process.js +0 -24
- package/pitch-deck-groove/node_modules/detect-libc/package.json +0 -44
- package/pitch-deck-groove/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/pitch-deck-groove/node_modules/emoji-regex/README.md +0 -73
- package/pitch-deck-groove/node_modules/emoji-regex/es2015/index.js +0 -6
- package/pitch-deck-groove/node_modules/emoji-regex/es2015/text.js +0 -6
- package/pitch-deck-groove/node_modules/emoji-regex/index.d.ts +0 -23
- package/pitch-deck-groove/node_modules/emoji-regex/index.js +0 -6
- package/pitch-deck-groove/node_modules/emoji-regex/package.json +0 -50
- package/pitch-deck-groove/node_modules/emoji-regex/text.js +0 -6
- package/pitch-deck-groove/node_modules/fs-minipass/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/fs-minipass/README.md +0 -70
- package/pitch-deck-groove/node_modules/fs-minipass/index.js +0 -422
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/README.md +0 -728
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/index.d.ts +0 -155
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/index.js +0 -649
- package/pitch-deck-groove/node_modules/fs-minipass/node_modules/minipass/package.json +0 -56
- package/pitch-deck-groove/node_modules/fs-minipass/package.json +0 -39
- package/pitch-deck-groove/node_modules/fs.realpath/LICENSE +0 -43
- package/pitch-deck-groove/node_modules/fs.realpath/README.md +0 -33
- package/pitch-deck-groove/node_modules/fs.realpath/index.js +0 -66
- package/pitch-deck-groove/node_modules/fs.realpath/old.js +0 -303
- package/pitch-deck-groove/node_modules/fs.realpath/package.json +0 -26
- package/pitch-deck-groove/node_modules/gauge/CHANGELOG.md +0 -163
- package/pitch-deck-groove/node_modules/gauge/LICENSE +0 -13
- package/pitch-deck-groove/node_modules/gauge/README.md +0 -402
- package/pitch-deck-groove/node_modules/gauge/base-theme.js +0 -14
- package/pitch-deck-groove/node_modules/gauge/error.js +0 -24
- package/pitch-deck-groove/node_modules/gauge/has-color.js +0 -4
- package/pitch-deck-groove/node_modules/gauge/index.js +0 -233
- package/pitch-deck-groove/node_modules/gauge/package.json +0 -66
- package/pitch-deck-groove/node_modules/gauge/plumbing.js +0 -48
- package/pitch-deck-groove/node_modules/gauge/process.js +0 -3
- package/pitch-deck-groove/node_modules/gauge/progress-bar.js +0 -35
- package/pitch-deck-groove/node_modules/gauge/render-template.js +0 -178
- package/pitch-deck-groove/node_modules/gauge/set-immediate.js +0 -7
- package/pitch-deck-groove/node_modules/gauge/set-interval.js +0 -3
- package/pitch-deck-groove/node_modules/gauge/spin.js +0 -5
- package/pitch-deck-groove/node_modules/gauge/template-item.js +0 -72
- package/pitch-deck-groove/node_modules/gauge/theme-set.js +0 -114
- package/pitch-deck-groove/node_modules/gauge/themes.js +0 -56
- package/pitch-deck-groove/node_modules/gauge/wide-truncate.js +0 -25
- package/pitch-deck-groove/node_modules/glob/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/glob/README.md +0 -378
- package/pitch-deck-groove/node_modules/glob/common.js +0 -238
- package/pitch-deck-groove/node_modules/glob/glob.js +0 -790
- package/pitch-deck-groove/node_modules/glob/package.json +0 -55
- package/pitch-deck-groove/node_modules/glob/sync.js +0 -486
- package/pitch-deck-groove/node_modules/has-unicode/LICENSE +0 -14
- package/pitch-deck-groove/node_modules/has-unicode/README.md +0 -43
- package/pitch-deck-groove/node_modules/has-unicode/index.js +0 -16
- package/pitch-deck-groove/node_modules/has-unicode/package.json +0 -30
- package/pitch-deck-groove/node_modules/https/package.json +0 -15
- package/pitch-deck-groove/node_modules/https-proxy-agent/README.md +0 -137
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/agent.d.ts +0 -30
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/agent.js +0 -177
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/index.d.ts +0 -23
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/index.js +0 -14
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -66
- package/pitch-deck-groove/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/pitch-deck-groove/node_modules/https-proxy-agent/package.json +0 -56
- package/pitch-deck-groove/node_modules/image-size/LICENSE +0 -9
- package/pitch-deck-groove/node_modules/image-size/Readme.md +0 -184
- package/pitch-deck-groove/node_modules/image-size/bin/image-size.js +0 -53
- package/pitch-deck-groove/node_modules/image-size/dist/detector.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/detector.js +0 -30
- package/pitch-deck-groove/node_modules/image-size/dist/index.d.ts +0 -10
- package/pitch-deck-groove/node_modules/image-size/dist/index.js +0 -129
- package/pitch-deck-groove/node_modules/image-size/dist/types/bmp.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/bmp.js +0 -11
- package/pitch-deck-groove/node_modules/image-size/dist/types/cur.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/cur.js +0 -17
- package/pitch-deck-groove/node_modules/image-size/dist/types/dds.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/dds.js +0 -11
- package/pitch-deck-groove/node_modules/image-size/dist/types/gif.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/gif.js +0 -12
- package/pitch-deck-groove/node_modules/image-size/dist/types/heif.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/heif.js +0 -40
- package/pitch-deck-groove/node_modules/image-size/dist/types/icns.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/icns.js +0 -101
- package/pitch-deck-groove/node_modules/image-size/dist/types/ico.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/ico.js +0 -68
- package/pitch-deck-groove/node_modules/image-size/dist/types/index.d.ts +0 -23
- package/pitch-deck-groove/node_modules/image-size/dist/types/index.js +0 -46
- package/pitch-deck-groove/node_modules/image-size/dist/types/interface.d.ts +0 -13
- package/pitch-deck-groove/node_modules/image-size/dist/types/interface.js +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/j2c.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/j2c.js +0 -12
- package/pitch-deck-groove/node_modules/image-size/dist/types/jp2.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/jp2.js +0 -27
- package/pitch-deck-groove/node_modules/image-size/dist/types/jpg.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/jpg.js +0 -123
- package/pitch-deck-groove/node_modules/image-size/dist/types/jxl-stream.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/jxl-stream.js +0 -45
- package/pitch-deck-groove/node_modules/image-size/dist/types/jxl.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/jxl.js +0 -59
- package/pitch-deck-groove/node_modules/image-size/dist/types/ktx.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/ktx.js +0 -19
- package/pitch-deck-groove/node_modules/image-size/dist/types/png.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/png.js +0 -35
- package/pitch-deck-groove/node_modules/image-size/dist/types/pnm.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/pnm.js +0 -72
- package/pitch-deck-groove/node_modules/image-size/dist/types/psd.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/psd.js +0 -11
- package/pitch-deck-groove/node_modules/image-size/dist/types/svg.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/svg.js +0 -90
- package/pitch-deck-groove/node_modules/image-size/dist/types/tga.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/tga.js +0 -15
- package/pitch-deck-groove/node_modules/image-size/dist/types/tiff.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/tiff.js +0 -95
- package/pitch-deck-groove/node_modules/image-size/dist/types/utils.d.ts +0 -15
- package/pitch-deck-groove/node_modules/image-size/dist/types/utils.js +0 -75
- package/pitch-deck-groove/node_modules/image-size/dist/types/webp.d.ts +0 -2
- package/pitch-deck-groove/node_modules/image-size/dist/types/webp.js +0 -60
- package/pitch-deck-groove/node_modules/image-size/dist/utils/bit-reader.d.ts +0 -10
- package/pitch-deck-groove/node_modules/image-size/dist/utils/bit-reader.js +0 -44
- package/pitch-deck-groove/node_modules/image-size/package.json +0 -81
- package/pitch-deck-groove/node_modules/immediate/LICENSE.txt +0 -20
- package/pitch-deck-groove/node_modules/immediate/README.md +0 -93
- package/pitch-deck-groove/node_modules/immediate/dist/immediate.js +0 -75
- package/pitch-deck-groove/node_modules/immediate/dist/immediate.min.js +0 -1
- package/pitch-deck-groove/node_modules/immediate/lib/browser.js +0 -69
- package/pitch-deck-groove/node_modules/immediate/lib/index.js +0 -73
- package/pitch-deck-groove/node_modules/immediate/package.json +0 -42
- package/pitch-deck-groove/node_modules/inflight/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/inflight/README.md +0 -37
- package/pitch-deck-groove/node_modules/inflight/inflight.js +0 -54
- package/pitch-deck-groove/node_modules/inflight/package.json +0 -29
- package/pitch-deck-groove/node_modules/inherits/LICENSE +0 -16
- package/pitch-deck-groove/node_modules/inherits/README.md +0 -42
- package/pitch-deck-groove/node_modules/inherits/inherits.js +0 -9
- package/pitch-deck-groove/node_modules/inherits/inherits_browser.js +0 -27
- package/pitch-deck-groove/node_modules/inherits/package.json +0 -29
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/license +0 -9
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/pitch-deck-groove/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/pitch-deck-groove/node_modules/isarray/.travis.yml +0 -4
- package/pitch-deck-groove/node_modules/isarray/Makefile +0 -6
- package/pitch-deck-groove/node_modules/isarray/README.md +0 -60
- package/pitch-deck-groove/node_modules/isarray/component.json +0 -19
- package/pitch-deck-groove/node_modules/isarray/index.js +0 -5
- package/pitch-deck-groove/node_modules/isarray/package.json +0 -45
- package/pitch-deck-groove/node_modules/isarray/test.js +0 -20
- package/pitch-deck-groove/node_modules/jszip/.codeclimate.yml +0 -16
- package/pitch-deck-groove/node_modules/jszip/.editorconfig +0 -8
- package/pitch-deck-groove/node_modules/jszip/.eslintrc.js +0 -43
- package/pitch-deck-groove/node_modules/jszip/.github/workflows/pr.yaml +0 -58
- package/pitch-deck-groove/node_modules/jszip/.jekyll-metadata +0 -0
- package/pitch-deck-groove/node_modules/jszip/.travis.yml +0 -17
- package/pitch-deck-groove/node_modules/jszip/CHANGES.md +0 -204
- package/pitch-deck-groove/node_modules/jszip/LICENSE.markdown +0 -651
- package/pitch-deck-groove/node_modules/jszip/README.markdown +0 -33
- package/pitch-deck-groove/node_modules/jszip/deps.js +0 -37
- package/pitch-deck-groove/node_modules/jszip/dist/jszip.js +0 -11577
- package/pitch-deck-groove/node_modules/jszip/dist/jszip.min.js +0 -13
- package/pitch-deck-groove/node_modules/jszip/graph.svg +0 -601
- package/pitch-deck-groove/node_modules/jszip/index.d.ts +0 -330
- package/pitch-deck-groove/node_modules/jszip/lib/base64.js +0 -106
- package/pitch-deck-groove/node_modules/jszip/lib/compressedObject.js +0 -74
- package/pitch-deck-groove/node_modules/jszip/lib/compressions.js +0 -14
- package/pitch-deck-groove/node_modules/jszip/lib/crc32.js +0 -77
- package/pitch-deck-groove/node_modules/jszip/lib/defaults.js +0 -11
- package/pitch-deck-groove/node_modules/jszip/lib/external.js +0 -18
- package/pitch-deck-groove/node_modules/jszip/lib/flate.js +0 -85
- package/pitch-deck-groove/node_modules/jszip/lib/generate/ZipFileWorker.js +0 -539
- package/pitch-deck-groove/node_modules/jszip/lib/generate/index.js +0 -57
- package/pitch-deck-groove/node_modules/jszip/lib/index.js +0 -55
- package/pitch-deck-groove/node_modules/jszip/lib/license_header.js +0 -11
- package/pitch-deck-groove/node_modules/jszip/lib/load.js +0 -88
- package/pitch-deck-groove/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
- package/pitch-deck-groove/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -42
- package/pitch-deck-groove/node_modules/jszip/lib/nodejsUtils.js +0 -57
- package/pitch-deck-groove/node_modules/jszip/lib/object.js +0 -384
- package/pitch-deck-groove/node_modules/jszip/lib/readable-stream-browser.js +0 -10
- package/pitch-deck-groove/node_modules/jszip/lib/reader/ArrayReader.js +0 -57
- package/pitch-deck-groove/node_modules/jszip/lib/reader/DataReader.js +0 -116
- package/pitch-deck-groove/node_modules/jszip/lib/reader/NodeBufferReader.js +0 -19
- package/pitch-deck-groove/node_modules/jszip/lib/reader/StringReader.js +0 -38
- package/pitch-deck-groove/node_modules/jszip/lib/reader/Uint8ArrayReader.js +0 -22
- package/pitch-deck-groove/node_modules/jszip/lib/reader/readerFor.js +0 -28
- package/pitch-deck-groove/node_modules/jszip/lib/signature.js +0 -7
- package/pitch-deck-groove/node_modules/jszip/lib/stream/ConvertWorker.js +0 -26
- package/pitch-deck-groove/node_modules/jszip/lib/stream/Crc32Probe.js +0 -24
- package/pitch-deck-groove/node_modules/jszip/lib/stream/DataLengthProbe.js +0 -29
- package/pitch-deck-groove/node_modules/jszip/lib/stream/DataWorker.js +0 -116
- package/pitch-deck-groove/node_modules/jszip/lib/stream/GenericWorker.js +0 -263
- package/pitch-deck-groove/node_modules/jszip/lib/stream/StreamHelper.js +0 -214
- package/pitch-deck-groove/node_modules/jszip/lib/support.js +0 -38
- package/pitch-deck-groove/node_modules/jszip/lib/utf8.js +0 -275
- package/pitch-deck-groove/node_modules/jszip/lib/utils.js +0 -501
- package/pitch-deck-groove/node_modules/jszip/lib/zipEntries.js +0 -261
- package/pitch-deck-groove/node_modules/jszip/lib/zipEntry.js +0 -293
- package/pitch-deck-groove/node_modules/jszip/lib/zipObject.js +0 -133
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/.travis.yml +0 -34
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/LICENSE +0 -47
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/README.md +0 -58
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/duplex-browser.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/duplex.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/package.json +0 -52
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/passthrough.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/readable-browser.js +0 -7
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/readable.js +0 -19
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/transform.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/writable-browser.js +0 -1
- package/pitch-deck-groove/node_modules/jszip/node_modules/readable-stream/writable.js +0 -8
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/README.md +0 -584
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/index.d.ts +0 -187
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/index.js +0 -62
- package/pitch-deck-groove/node_modules/jszip/node_modules/safe-buffer/package.json +0 -37
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/.travis.yml +0 -50
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/LICENSE +0 -48
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/README.md +0 -47
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/pitch-deck-groove/node_modules/jszip/node_modules/string_decoder/package.json +0 -31
- package/pitch-deck-groove/node_modules/jszip/package.json +0 -67
- package/pitch-deck-groove/node_modules/jszip/sponsors.md +0 -21
- package/pitch-deck-groove/node_modules/jszip/tsconfig.json +0 -101
- package/pitch-deck-groove/node_modules/jszip/vendor/FileSaver.js +0 -247
- package/pitch-deck-groove/node_modules/lie/README.md +0 -62
- package/pitch-deck-groove/node_modules/lie/dist/lie.js +0 -350
- package/pitch-deck-groove/node_modules/lie/dist/lie.min.js +0 -1
- package/pitch-deck-groove/node_modules/lie/dist/lie.polyfill.js +0 -358
- package/pitch-deck-groove/node_modules/lie/dist/lie.polyfill.min.js +0 -1
- package/pitch-deck-groove/node_modules/lie/lib/browser.js +0 -273
- package/pitch-deck-groove/node_modules/lie/lib/index.js +0 -298
- package/pitch-deck-groove/node_modules/lie/license.md +0 -7
- package/pitch-deck-groove/node_modules/lie/lie.d.ts +0 -244
- package/pitch-deck-groove/node_modules/lie/package.json +0 -69
- package/pitch-deck-groove/node_modules/lie/polyfill.js +0 -4
- package/pitch-deck-groove/node_modules/make-dir/index.d.ts +0 -66
- package/pitch-deck-groove/node_modules/make-dir/index.js +0 -156
- package/pitch-deck-groove/node_modules/make-dir/license +0 -9
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/README.md +0 -443
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/bin/semver.js +0 -174
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/package.json +0 -38
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/range.bnf +0 -16
- package/pitch-deck-groove/node_modules/make-dir/node_modules/semver/semver.js +0 -1643
- package/pitch-deck-groove/node_modules/make-dir/package.json +0 -59
- package/pitch-deck-groove/node_modules/make-dir/readme.md +0 -125
- package/pitch-deck-groove/node_modules/mimic-response/index.d.ts +0 -17
- package/pitch-deck-groove/node_modules/mimic-response/index.js +0 -38
- package/pitch-deck-groove/node_modules/mimic-response/license +0 -9
- package/pitch-deck-groove/node_modules/mimic-response/package.json +0 -42
- package/pitch-deck-groove/node_modules/mimic-response/readme.md +0 -57
- package/pitch-deck-groove/node_modules/minimatch/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/minimatch/README.md +0 -267
- package/pitch-deck-groove/node_modules/minimatch/minimatch.js +0 -1005
- package/pitch-deck-groove/node_modules/minimatch/package.json +0 -33
- package/pitch-deck-groove/node_modules/minipass/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/minipass/README.md +0 -769
- package/pitch-deck-groove/node_modules/minipass/index.d.ts +0 -152
- package/pitch-deck-groove/node_modules/minipass/index.js +0 -702
- package/pitch-deck-groove/node_modules/minipass/index.mjs +0 -702
- package/pitch-deck-groove/node_modules/minipass/package.json +0 -76
- package/pitch-deck-groove/node_modules/minizlib/LICENSE +0 -26
- package/pitch-deck-groove/node_modules/minizlib/README.md +0 -60
- package/pitch-deck-groove/node_modules/minizlib/constants.js +0 -115
- package/pitch-deck-groove/node_modules/minizlib/index.js +0 -348
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/README.md +0 -728
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/index.d.ts +0 -155
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/index.js +0 -649
- package/pitch-deck-groove/node_modules/minizlib/node_modules/minipass/package.json +0 -56
- package/pitch-deck-groove/node_modules/minizlib/package.json +0 -42
- package/pitch-deck-groove/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/pitch-deck-groove/node_modules/mkdirp/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/mkdirp/bin/cmd.js +0 -68
- package/pitch-deck-groove/node_modules/mkdirp/index.js +0 -31
- package/pitch-deck-groove/node_modules/mkdirp/lib/find-made.js +0 -29
- package/pitch-deck-groove/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- package/pitch-deck-groove/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- package/pitch-deck-groove/node_modules/mkdirp/lib/opts-arg.js +0 -23
- package/pitch-deck-groove/node_modules/mkdirp/lib/path-arg.js +0 -29
- package/pitch-deck-groove/node_modules/mkdirp/lib/use-native.js +0 -10
- package/pitch-deck-groove/node_modules/mkdirp/package.json +0 -44
- package/pitch-deck-groove/node_modules/mkdirp/readme.markdown +0 -266
- package/pitch-deck-groove/node_modules/ms/index.js +0 -162
- package/pitch-deck-groove/node_modules/ms/license.md +0 -21
- package/pitch-deck-groove/node_modules/ms/package.json +0 -38
- package/pitch-deck-groove/node_modules/ms/readme.md +0 -59
- package/pitch-deck-groove/node_modules/nan/.github/workflows/ci.yml +0 -52
- package/pitch-deck-groove/node_modules/nan/.pre-commit-config.yaml +0 -8
- package/pitch-deck-groove/node_modules/nan/CHANGELOG.md +0 -599
- package/pitch-deck-groove/node_modules/nan/CMakeLists.txt +0 -138
- package/pitch-deck-groove/node_modules/nan/LICENSE.md +0 -9
- package/pitch-deck-groove/node_modules/nan/README.md +0 -456
- package/pitch-deck-groove/node_modules/nan/doc/asyncworker.md +0 -146
- package/pitch-deck-groove/node_modules/nan/doc/buffers.md +0 -54
- package/pitch-deck-groove/node_modules/nan/doc/callback.md +0 -76
- package/pitch-deck-groove/node_modules/nan/doc/converters.md +0 -41
- package/pitch-deck-groove/node_modules/nan/doc/errors.md +0 -226
- package/pitch-deck-groove/node_modules/nan/doc/json.md +0 -62
- package/pitch-deck-groove/node_modules/nan/doc/maybe_types.md +0 -583
- package/pitch-deck-groove/node_modules/nan/doc/methods.md +0 -689
- package/pitch-deck-groove/node_modules/nan/doc/new.md +0 -147
- package/pitch-deck-groove/node_modules/nan/doc/node_misc.md +0 -123
- package/pitch-deck-groove/node_modules/nan/doc/object_wrappers.md +0 -263
- package/pitch-deck-groove/node_modules/nan/doc/persistent.md +0 -296
- package/pitch-deck-groove/node_modules/nan/doc/scopes.md +0 -73
- package/pitch-deck-groove/node_modules/nan/doc/script.md +0 -58
- package/pitch-deck-groove/node_modules/nan/doc/string_bytes.md +0 -81
- package/pitch-deck-groove/node_modules/nan/doc/v8_internals.md +0 -199
- package/pitch-deck-groove/node_modules/nan/doc/v8_misc.md +0 -85
- package/pitch-deck-groove/node_modules/nan/include_dirs.js +0 -1
- package/pitch-deck-groove/node_modules/nan/nan.h +0 -3202
- package/pitch-deck-groove/node_modules/nan/nan_callbacks.h +0 -141
- package/pitch-deck-groove/node_modules/nan/nan_callbacks_12_inl.h +0 -690
- package/pitch-deck-groove/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -524
- package/pitch-deck-groove/node_modules/nan/nan_converters.h +0 -72
- package/pitch-deck-groove/node_modules/nan/nan_converters_43_inl.h +0 -68
- package/pitch-deck-groove/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
- package/pitch-deck-groove/node_modules/nan/nan_define_own_property_helper.h +0 -29
- package/pitch-deck-groove/node_modules/nan/nan_implementation_12_inl.h +0 -430
- package/pitch-deck-groove/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
- package/pitch-deck-groove/node_modules/nan/nan_json.h +0 -166
- package/pitch-deck-groove/node_modules/nan/nan_maybe_43_inl.h +0 -360
- package/pitch-deck-groove/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
- package/pitch-deck-groove/node_modules/nan/nan_new.h +0 -340
- package/pitch-deck-groove/node_modules/nan/nan_object_wrap.h +0 -156
- package/pitch-deck-groove/node_modules/nan/nan_persistent_12_inl.h +0 -132
- package/pitch-deck-groove/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
- package/pitch-deck-groove/node_modules/nan/nan_private.h +0 -73
- package/pitch-deck-groove/node_modules/nan/nan_scriptorigin.h +0 -97
- package/pitch-deck-groove/node_modules/nan/nan_string_bytes.h +0 -305
- package/pitch-deck-groove/node_modules/nan/nan_typedarray_contents.h +0 -96
- package/pitch-deck-groove/node_modules/nan/nan_weak.h +0 -453
- package/pitch-deck-groove/node_modules/nan/package.json +0 -38
- package/pitch-deck-groove/node_modules/nan/tools/1to2.js +0 -412
- package/pitch-deck-groove/node_modules/nan/tools/README.md +0 -14
- package/pitch-deck-groove/node_modules/nan/tools/package.json +0 -19
- package/pitch-deck-groove/node_modules/node-fetch/LICENSE.md +0 -22
- package/pitch-deck-groove/node_modules/node-fetch/README.md +0 -634
- package/pitch-deck-groove/node_modules/node-fetch/browser.js +0 -25
- package/pitch-deck-groove/node_modules/node-fetch/lib/index.es.js +0 -1777
- package/pitch-deck-groove/node_modules/node-fetch/lib/index.js +0 -1787
- package/pitch-deck-groove/node_modules/node-fetch/lib/index.mjs +0 -1775
- package/pitch-deck-groove/node_modules/node-fetch/package.json +0 -89
- package/pitch-deck-groove/node_modules/nopt/CHANGELOG.md +0 -58
- package/pitch-deck-groove/node_modules/nopt/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/nopt/README.md +0 -213
- package/pitch-deck-groove/node_modules/nopt/bin/nopt.js +0 -54
- package/pitch-deck-groove/node_modules/nopt/lib/nopt.js +0 -441
- package/pitch-deck-groove/node_modules/nopt/package.json +0 -34
- package/pitch-deck-groove/node_modules/npmlog/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/npmlog/README.md +0 -216
- package/pitch-deck-groove/node_modules/npmlog/log.js +0 -403
- package/pitch-deck-groove/node_modules/npmlog/package.json +0 -33
- package/pitch-deck-groove/node_modules/object-assign/index.js +0 -90
- package/pitch-deck-groove/node_modules/object-assign/license +0 -21
- package/pitch-deck-groove/node_modules/object-assign/package.json +0 -42
- package/pitch-deck-groove/node_modules/object-assign/readme.md +0 -61
- package/pitch-deck-groove/node_modules/once/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/once/README.md +0 -79
- package/pitch-deck-groove/node_modules/once/once.js +0 -42
- package/pitch-deck-groove/node_modules/once/package.json +0 -33
- package/pitch-deck-groove/node_modules/pako/CHANGELOG.md +0 -164
- package/pitch-deck-groove/node_modules/pako/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/pako/README.md +0 -191
- package/pitch-deck-groove/node_modules/pako/dist/pako.js +0 -6818
- package/pitch-deck-groove/node_modules/pako/dist/pako.min.js +0 -1
- package/pitch-deck-groove/node_modules/pako/dist/pako_deflate.js +0 -3997
- package/pitch-deck-groove/node_modules/pako/dist/pako_deflate.min.js +0 -1
- package/pitch-deck-groove/node_modules/pako/dist/pako_inflate.js +0 -3300
- package/pitch-deck-groove/node_modules/pako/dist/pako_inflate.min.js +0 -1
- package/pitch-deck-groove/node_modules/pako/index.js +0 -14
- package/pitch-deck-groove/node_modules/pako/lib/deflate.js +0 -400
- package/pitch-deck-groove/node_modules/pako/lib/inflate.js +0 -423
- package/pitch-deck-groove/node_modules/pako/lib/utils/common.js +0 -105
- package/pitch-deck-groove/node_modules/pako/lib/utils/strings.js +0 -187
- package/pitch-deck-groove/node_modules/pako/lib/zlib/README +0 -59
- package/pitch-deck-groove/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/pitch-deck-groove/node_modules/pako/lib/zlib/constants.js +0 -68
- package/pitch-deck-groove/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/pitch-deck-groove/node_modules/pako/lib/zlib/deflate.js +0 -1874
- package/pitch-deck-groove/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/pitch-deck-groove/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/pitch-deck-groove/node_modules/pako/lib/zlib/inflate.js +0 -1556
- package/pitch-deck-groove/node_modules/pako/lib/zlib/inftrees.js +0 -343
- package/pitch-deck-groove/node_modules/pako/lib/zlib/messages.js +0 -32
- package/pitch-deck-groove/node_modules/pako/lib/zlib/trees.js +0 -1222
- package/pitch-deck-groove/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/pitch-deck-groove/node_modules/pako/package.json +0 -44
- package/pitch-deck-groove/node_modules/path-is-absolute/index.js +0 -20
- package/pitch-deck-groove/node_modules/path-is-absolute/license +0 -21
- package/pitch-deck-groove/node_modules/path-is-absolute/package.json +0 -43
- package/pitch-deck-groove/node_modules/path-is-absolute/readme.md +0 -59
- package/pitch-deck-groove/node_modules/pptxgenjs/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/pptxgenjs/README.md +0 -284
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.bundle.js +0 -3
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.bundle.js.map +0 -1
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.cjs.js +0 -7445
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.es.js +0 -7439
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.min.js +0 -3
- package/pitch-deck-groove/node_modules/pptxgenjs/dist/pptxgen.min.js.map +0 -1
- package/pitch-deck-groove/node_modules/pptxgenjs/package.json +0 -89
- package/pitch-deck-groove/node_modules/pptxgenjs/types/index.d.ts +0 -2670
- package/pitch-deck-groove/node_modules/process-nextick-args/index.js +0 -45
- package/pitch-deck-groove/node_modules/process-nextick-args/license.md +0 -19
- package/pitch-deck-groove/node_modules/process-nextick-args/package.json +0 -25
- package/pitch-deck-groove/node_modules/process-nextick-args/readme.md +0 -18
- package/pitch-deck-groove/node_modules/queue/LICENSE +0 -8
- package/pitch-deck-groove/node_modules/queue/index.d.ts +0 -173
- package/pitch-deck-groove/node_modules/queue/index.js +0 -195
- package/pitch-deck-groove/node_modules/queue/package.json +0 -43
- package/pitch-deck-groove/node_modules/queue/readme.md +0 -221
- package/pitch-deck-groove/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/pitch-deck-groove/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/pitch-deck-groove/node_modules/readable-stream/LICENSE +0 -47
- package/pitch-deck-groove/node_modules/readable-stream/README.md +0 -106
- package/pitch-deck-groove/node_modules/readable-stream/errors-browser.js +0 -127
- package/pitch-deck-groove/node_modules/readable-stream/errors.js +0 -116
- package/pitch-deck-groove/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/pitch-deck-groove/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/pitch-deck-groove/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/pitch-deck-groove/node_modules/readable-stream/package.json +0 -68
- package/pitch-deck-groove/node_modules/readable-stream/readable-browser.js +0 -9
- package/pitch-deck-groove/node_modules/readable-stream/readable.js +0 -16
- package/pitch-deck-groove/node_modules/rimraf/CHANGELOG.md +0 -65
- package/pitch-deck-groove/node_modules/rimraf/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/rimraf/README.md +0 -101
- package/pitch-deck-groove/node_modules/rimraf/bin.js +0 -68
- package/pitch-deck-groove/node_modules/rimraf/package.json +0 -32
- package/pitch-deck-groove/node_modules/rimraf/rimraf.js +0 -360
- package/pitch-deck-groove/node_modules/safe-buffer/LICENSE +0 -21
- package/pitch-deck-groove/node_modules/safe-buffer/README.md +0 -584
- package/pitch-deck-groove/node_modules/safe-buffer/index.d.ts +0 -187
- package/pitch-deck-groove/node_modules/safe-buffer/index.js +0 -65
- package/pitch-deck-groove/node_modules/safe-buffer/package.json +0 -51
- package/pitch-deck-groove/node_modules/semver/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/semver/README.md +0 -665
- package/pitch-deck-groove/node_modules/semver/bin/semver.js +0 -191
- package/pitch-deck-groove/node_modules/semver/classes/comparator.js +0 -143
- package/pitch-deck-groove/node_modules/semver/classes/index.js +0 -7
- package/pitch-deck-groove/node_modules/semver/classes/range.js +0 -557
- package/pitch-deck-groove/node_modules/semver/classes/semver.js +0 -333
- package/pitch-deck-groove/node_modules/semver/functions/clean.js +0 -8
- package/pitch-deck-groove/node_modules/semver/functions/cmp.js +0 -54
- package/pitch-deck-groove/node_modules/semver/functions/coerce.js +0 -62
- package/pitch-deck-groove/node_modules/semver/functions/compare-build.js +0 -9
- package/pitch-deck-groove/node_modules/semver/functions/compare-loose.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/compare.js +0 -7
- package/pitch-deck-groove/node_modules/semver/functions/diff.js +0 -60
- package/pitch-deck-groove/node_modules/semver/functions/eq.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/gt.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/gte.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/inc.js +0 -21
- package/pitch-deck-groove/node_modules/semver/functions/lt.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/lte.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/major.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/minor.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/neq.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/parse.js +0 -18
- package/pitch-deck-groove/node_modules/semver/functions/patch.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/prerelease.js +0 -8
- package/pitch-deck-groove/node_modules/semver/functions/rcompare.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/rsort.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/satisfies.js +0 -12
- package/pitch-deck-groove/node_modules/semver/functions/sort.js +0 -5
- package/pitch-deck-groove/node_modules/semver/functions/valid.js +0 -8
- package/pitch-deck-groove/node_modules/semver/index.js +0 -91
- package/pitch-deck-groove/node_modules/semver/internal/constants.js +0 -37
- package/pitch-deck-groove/node_modules/semver/internal/debug.js +0 -11
- package/pitch-deck-groove/node_modules/semver/internal/identifiers.js +0 -29
- package/pitch-deck-groove/node_modules/semver/internal/lrucache.js +0 -42
- package/pitch-deck-groove/node_modules/semver/internal/parse-options.js +0 -17
- package/pitch-deck-groove/node_modules/semver/internal/re.js +0 -223
- package/pitch-deck-groove/node_modules/semver/package.json +0 -78
- package/pitch-deck-groove/node_modules/semver/preload.js +0 -4
- package/pitch-deck-groove/node_modules/semver/range.bnf +0 -16
- package/pitch-deck-groove/node_modules/semver/ranges/gtr.js +0 -6
- package/pitch-deck-groove/node_modules/semver/ranges/intersects.js +0 -9
- package/pitch-deck-groove/node_modules/semver/ranges/ltr.js +0 -6
- package/pitch-deck-groove/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/pitch-deck-groove/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/pitch-deck-groove/node_modules/semver/ranges/min-version.js +0 -63
- package/pitch-deck-groove/node_modules/semver/ranges/outside.js +0 -82
- package/pitch-deck-groove/node_modules/semver/ranges/simplify.js +0 -49
- package/pitch-deck-groove/node_modules/semver/ranges/subset.js +0 -249
- package/pitch-deck-groove/node_modules/semver/ranges/to-comparators.js +0 -10
- package/pitch-deck-groove/node_modules/semver/ranges/valid.js +0 -13
- package/pitch-deck-groove/node_modules/set-blocking/CHANGELOG.md +0 -26
- package/pitch-deck-groove/node_modules/set-blocking/LICENSE.txt +0 -14
- package/pitch-deck-groove/node_modules/set-blocking/README.md +0 -31
- package/pitch-deck-groove/node_modules/set-blocking/index.js +0 -7
- package/pitch-deck-groove/node_modules/set-blocking/package.json +0 -42
- package/pitch-deck-groove/node_modules/setimmediate/LICENSE.txt +0 -20
- package/pitch-deck-groove/node_modules/setimmediate/package.json +0 -30
- package/pitch-deck-groove/node_modules/setimmediate/setImmediate.js +0 -186
- package/pitch-deck-groove/node_modules/signal-exit/LICENSE.txt +0 -16
- package/pitch-deck-groove/node_modules/signal-exit/README.md +0 -39
- package/pitch-deck-groove/node_modules/signal-exit/index.js +0 -202
- package/pitch-deck-groove/node_modules/signal-exit/package.json +0 -38
- package/pitch-deck-groove/node_modules/signal-exit/signals.js +0 -53
- package/pitch-deck-groove/node_modules/simple-concat/.travis.yml +0 -3
- package/pitch-deck-groove/node_modules/simple-concat/LICENSE +0 -20
- package/pitch-deck-groove/node_modules/simple-concat/README.md +0 -44
- package/pitch-deck-groove/node_modules/simple-concat/index.js +0 -15
- package/pitch-deck-groove/node_modules/simple-concat/package.json +0 -47
- package/pitch-deck-groove/node_modules/simple-concat/test/basic.js +0 -41
- package/pitch-deck-groove/node_modules/simple-get/LICENSE +0 -20
- package/pitch-deck-groove/node_modules/simple-get/README.md +0 -319
- package/pitch-deck-groove/node_modules/simple-get/index.js +0 -107
- package/pitch-deck-groove/node_modules/simple-get/package.json +0 -53
- package/pitch-deck-groove/node_modules/string-width/index.d.ts +0 -29
- package/pitch-deck-groove/node_modules/string-width/index.js +0 -47
- package/pitch-deck-groove/node_modules/string-width/license +0 -9
- package/pitch-deck-groove/node_modules/string-width/package.json +0 -56
- package/pitch-deck-groove/node_modules/string-width/readme.md +0 -50
- package/pitch-deck-groove/node_modules/string_decoder/LICENSE +0 -48
- package/pitch-deck-groove/node_modules/string_decoder/README.md +0 -47
- package/pitch-deck-groove/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/pitch-deck-groove/node_modules/string_decoder/package.json +0 -34
- package/pitch-deck-groove/node_modules/strip-ansi/index.d.ts +0 -17
- package/pitch-deck-groove/node_modules/strip-ansi/index.js +0 -4
- package/pitch-deck-groove/node_modules/strip-ansi/license +0 -9
- package/pitch-deck-groove/node_modules/strip-ansi/package.json +0 -54
- package/pitch-deck-groove/node_modules/strip-ansi/readme.md +0 -46
- package/pitch-deck-groove/node_modules/tar/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/tar/README.md +0 -1080
- package/pitch-deck-groove/node_modules/tar/index.js +0 -18
- package/pitch-deck-groove/node_modules/tar/lib/create.js +0 -111
- package/pitch-deck-groove/node_modules/tar/lib/extract.js +0 -113
- package/pitch-deck-groove/node_modules/tar/lib/get-write-flag.js +0 -20
- package/pitch-deck-groove/node_modules/tar/lib/header.js +0 -304
- package/pitch-deck-groove/node_modules/tar/lib/high-level-opt.js +0 -29
- package/pitch-deck-groove/node_modules/tar/lib/large-numbers.js +0 -104
- package/pitch-deck-groove/node_modules/tar/lib/list.js +0 -139
- package/pitch-deck-groove/node_modules/tar/lib/mkdir.js +0 -229
- package/pitch-deck-groove/node_modules/tar/lib/mode-fix.js +0 -27
- package/pitch-deck-groove/node_modules/tar/lib/normalize-unicode.js +0 -12
- package/pitch-deck-groove/node_modules/tar/lib/normalize-windows-path.js +0 -8
- package/pitch-deck-groove/node_modules/tar/lib/pack.js +0 -432
- package/pitch-deck-groove/node_modules/tar/lib/parse.js +0 -552
- package/pitch-deck-groove/node_modules/tar/lib/path-reservations.js +0 -156
- package/pitch-deck-groove/node_modules/tar/lib/pax.js +0 -150
- package/pitch-deck-groove/node_modules/tar/lib/read-entry.js +0 -107
- package/pitch-deck-groove/node_modules/tar/lib/replace.js +0 -246
- package/pitch-deck-groove/node_modules/tar/lib/strip-absolute-path.js +0 -24
- package/pitch-deck-groove/node_modules/tar/lib/strip-trailing-slashes.js +0 -13
- package/pitch-deck-groove/node_modules/tar/lib/types.js +0 -44
- package/pitch-deck-groove/node_modules/tar/lib/unpack.js +0 -923
- package/pitch-deck-groove/node_modules/tar/lib/update.js +0 -40
- package/pitch-deck-groove/node_modules/tar/lib/warn-mixin.js +0 -24
- package/pitch-deck-groove/node_modules/tar/lib/winchars.js +0 -23
- package/pitch-deck-groove/node_modules/tar/lib/write-entry.js +0 -546
- package/pitch-deck-groove/node_modules/tar/package.json +0 -70
- package/pitch-deck-groove/node_modules/tr46/index.js +0 -193
- package/pitch-deck-groove/node_modules/tr46/lib/.gitkeep +0 -0
- package/pitch-deck-groove/node_modules/tr46/lib/mappingTable.json +0 -1
- package/pitch-deck-groove/node_modules/tr46/package.json +0 -31
- package/pitch-deck-groove/node_modules/undici-types/README.md +0 -6
- package/pitch-deck-groove/node_modules/undici-types/agent.d.ts +0 -31
- package/pitch-deck-groove/node_modules/undici-types/api.d.ts +0 -43
- package/pitch-deck-groove/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/pitch-deck-groove/node_modules/undici-types/cache.d.ts +0 -36
- package/pitch-deck-groove/node_modules/undici-types/client.d.ts +0 -97
- package/pitch-deck-groove/node_modules/undici-types/connector.d.ts +0 -34
- package/pitch-deck-groove/node_modules/undici-types/content-type.d.ts +0 -21
- package/pitch-deck-groove/node_modules/undici-types/cookies.d.ts +0 -28
- package/pitch-deck-groove/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/pitch-deck-groove/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/pitch-deck-groove/node_modules/undici-types/errors.d.ts +0 -128
- package/pitch-deck-groove/node_modules/undici-types/fetch.d.ts +0 -209
- package/pitch-deck-groove/node_modules/undici-types/file.d.ts +0 -39
- package/pitch-deck-groove/node_modules/undici-types/filereader.d.ts +0 -54
- package/pitch-deck-groove/node_modules/undici-types/formdata.d.ts +0 -108
- package/pitch-deck-groove/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/pitch-deck-groove/node_modules/undici-types/global-origin.d.ts +0 -7
- package/pitch-deck-groove/node_modules/undici-types/handlers.d.ts +0 -9
- package/pitch-deck-groove/node_modules/undici-types/header.d.ts +0 -4
- package/pitch-deck-groove/node_modules/undici-types/index.d.ts +0 -63
- package/pitch-deck-groove/node_modules/undici-types/interceptors.d.ts +0 -5
- package/pitch-deck-groove/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/pitch-deck-groove/node_modules/undici-types/mock-client.d.ts +0 -25
- package/pitch-deck-groove/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/pitch-deck-groove/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/pitch-deck-groove/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/pitch-deck-groove/node_modules/undici-types/package.json +0 -55
- package/pitch-deck-groove/node_modules/undici-types/patch.d.ts +0 -71
- package/pitch-deck-groove/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/pitch-deck-groove/node_modules/undici-types/pool.d.ts +0 -28
- package/pitch-deck-groove/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/pitch-deck-groove/node_modules/undici-types/readable.d.ts +0 -61
- package/pitch-deck-groove/node_modules/undici-types/webidl.d.ts +0 -220
- package/pitch-deck-groove/node_modules/undici-types/websocket.d.ts +0 -131
- package/pitch-deck-groove/node_modules/util-deprecate/History.md +0 -16
- package/pitch-deck-groove/node_modules/util-deprecate/LICENSE +0 -24
- package/pitch-deck-groove/node_modules/util-deprecate/README.md +0 -53
- package/pitch-deck-groove/node_modules/util-deprecate/browser.js +0 -67
- package/pitch-deck-groove/node_modules/util-deprecate/node.js +0 -6
- package/pitch-deck-groove/node_modules/util-deprecate/package.json +0 -27
- package/pitch-deck-groove/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/pitch-deck-groove/node_modules/webidl-conversions/README.md +0 -53
- package/pitch-deck-groove/node_modules/webidl-conversions/lib/index.js +0 -189
- package/pitch-deck-groove/node_modules/webidl-conversions/package.json +0 -23
- package/pitch-deck-groove/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/pitch-deck-groove/node_modules/whatwg-url/README.md +0 -67
- package/pitch-deck-groove/node_modules/whatwg-url/lib/URL-impl.js +0 -200
- package/pitch-deck-groove/node_modules/whatwg-url/lib/URL.js +0 -196
- package/pitch-deck-groove/node_modules/whatwg-url/lib/public-api.js +0 -11
- package/pitch-deck-groove/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
- package/pitch-deck-groove/node_modules/whatwg-url/lib/utils.js +0 -20
- package/pitch-deck-groove/node_modules/whatwg-url/package.json +0 -32
- package/pitch-deck-groove/node_modules/wide-align/LICENSE +0 -14
- package/pitch-deck-groove/node_modules/wide-align/README.md +0 -47
- package/pitch-deck-groove/node_modules/wide-align/align.js +0 -65
- package/pitch-deck-groove/node_modules/wide-align/package.json +0 -33
- package/pitch-deck-groove/node_modules/wrappy/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/wrappy/README.md +0 -36
- package/pitch-deck-groove/node_modules/wrappy/package.json +0 -29
- package/pitch-deck-groove/node_modules/wrappy/wrappy.js +0 -33
- package/pitch-deck-groove/node_modules/yallist/LICENSE +0 -15
- package/pitch-deck-groove/node_modules/yallist/README.md +0 -204
- package/pitch-deck-groove/node_modules/yallist/iterator.js +0 -8
- package/pitch-deck-groove/node_modules/yallist/package.json +0 -29
- package/pitch-deck-groove/node_modules/yallist/yallist.js +0 -426
- package/pitch-deck-groove/package-lock.json +0 -763
- package/pitch-deck-groove/package.json +0 -13
- package/pitch-deck-groove/slides.json +0 -239
|
@@ -0,0 +1,2825 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DismissableLayer,
|
|
4
|
+
Portal
|
|
5
|
+
} from "./chunk-WYSQD5ZG.js";
|
|
6
|
+
import {
|
|
7
|
+
useControllableState,
|
|
8
|
+
useId
|
|
9
|
+
} from "./chunk-J6DMOQWP.js";
|
|
10
|
+
import {
|
|
11
|
+
Presence,
|
|
12
|
+
Primitive,
|
|
13
|
+
composeEventHandlers,
|
|
14
|
+
createContextScope,
|
|
15
|
+
createSlottable,
|
|
16
|
+
useCallbackRef,
|
|
17
|
+
useComposedRefs,
|
|
18
|
+
useLayoutEffect2
|
|
19
|
+
} from "./chunk-KXLIKZFX.js";
|
|
20
|
+
import {
|
|
21
|
+
require_react_dom
|
|
22
|
+
} from "./chunk-YAD7VOVN.js";
|
|
23
|
+
import {
|
|
24
|
+
require_jsx_runtime
|
|
25
|
+
} from "./chunk-ACEP5X2F.js";
|
|
26
|
+
import {
|
|
27
|
+
require_react
|
|
28
|
+
} from "./chunk-CDLO3JFW.js";
|
|
29
|
+
import {
|
|
30
|
+
__toESM
|
|
31
|
+
} from "./chunk-PR4QN5HX.js";
|
|
32
|
+
|
|
33
|
+
// ../../node_modules/@radix-ui/react-tooltip/dist/index.mjs
|
|
34
|
+
var React6 = __toESM(require_react(), 1);
|
|
35
|
+
|
|
36
|
+
// ../../node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
37
|
+
var React4 = __toESM(require_react(), 1);
|
|
38
|
+
|
|
39
|
+
// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
40
|
+
var sides = ["top", "right", "bottom", "left"];
|
|
41
|
+
var alignments = ["start", "end"];
|
|
42
|
+
var placements = sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
43
|
+
var min = Math.min;
|
|
44
|
+
var max = Math.max;
|
|
45
|
+
var round = Math.round;
|
|
46
|
+
var floor = Math.floor;
|
|
47
|
+
var createCoords = (v) => ({
|
|
48
|
+
x: v,
|
|
49
|
+
y: v
|
|
50
|
+
});
|
|
51
|
+
var oppositeSideMap = {
|
|
52
|
+
left: "right",
|
|
53
|
+
right: "left",
|
|
54
|
+
bottom: "top",
|
|
55
|
+
top: "bottom"
|
|
56
|
+
};
|
|
57
|
+
function clamp(start, value, end) {
|
|
58
|
+
return max(start, min(value, end));
|
|
59
|
+
}
|
|
60
|
+
function evaluate(value, param) {
|
|
61
|
+
return typeof value === "function" ? value(param) : value;
|
|
62
|
+
}
|
|
63
|
+
function getSide(placement) {
|
|
64
|
+
return placement.split("-")[0];
|
|
65
|
+
}
|
|
66
|
+
function getAlignment(placement) {
|
|
67
|
+
return placement.split("-")[1];
|
|
68
|
+
}
|
|
69
|
+
function getOppositeAxis(axis) {
|
|
70
|
+
return axis === "x" ? "y" : "x";
|
|
71
|
+
}
|
|
72
|
+
function getAxisLength(axis) {
|
|
73
|
+
return axis === "y" ? "height" : "width";
|
|
74
|
+
}
|
|
75
|
+
function getSideAxis(placement) {
|
|
76
|
+
const firstChar = placement[0];
|
|
77
|
+
return firstChar === "t" || firstChar === "b" ? "y" : "x";
|
|
78
|
+
}
|
|
79
|
+
function getAlignmentAxis(placement) {
|
|
80
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
81
|
+
}
|
|
82
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
83
|
+
if (rtl === void 0) {
|
|
84
|
+
rtl = false;
|
|
85
|
+
}
|
|
86
|
+
const alignment = getAlignment(placement);
|
|
87
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
88
|
+
const length = getAxisLength(alignmentAxis);
|
|
89
|
+
let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
90
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
91
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
92
|
+
}
|
|
93
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
94
|
+
}
|
|
95
|
+
function getExpandedPlacements(placement) {
|
|
96
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
97
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
98
|
+
}
|
|
99
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
100
|
+
return placement.includes("start") ? placement.replace("start", "end") : placement.replace("end", "start");
|
|
101
|
+
}
|
|
102
|
+
var lrPlacement = ["left", "right"];
|
|
103
|
+
var rlPlacement = ["right", "left"];
|
|
104
|
+
var tbPlacement = ["top", "bottom"];
|
|
105
|
+
var btPlacement = ["bottom", "top"];
|
|
106
|
+
function getSideList(side, isStart, rtl) {
|
|
107
|
+
switch (side) {
|
|
108
|
+
case "top":
|
|
109
|
+
case "bottom":
|
|
110
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
111
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
112
|
+
case "left":
|
|
113
|
+
case "right":
|
|
114
|
+
return isStart ? tbPlacement : btPlacement;
|
|
115
|
+
default:
|
|
116
|
+
return [];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
120
|
+
const alignment = getAlignment(placement);
|
|
121
|
+
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
122
|
+
if (alignment) {
|
|
123
|
+
list = list.map((side) => side + "-" + alignment);
|
|
124
|
+
if (flipAlignment) {
|
|
125
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return list;
|
|
129
|
+
}
|
|
130
|
+
function getOppositePlacement(placement) {
|
|
131
|
+
const side = getSide(placement);
|
|
132
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
133
|
+
}
|
|
134
|
+
function expandPaddingObject(padding) {
|
|
135
|
+
return {
|
|
136
|
+
top: 0,
|
|
137
|
+
right: 0,
|
|
138
|
+
bottom: 0,
|
|
139
|
+
left: 0,
|
|
140
|
+
...padding
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function getPaddingObject(padding) {
|
|
144
|
+
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
|
145
|
+
top: padding,
|
|
146
|
+
right: padding,
|
|
147
|
+
bottom: padding,
|
|
148
|
+
left: padding
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function rectToClientRect(rect) {
|
|
152
|
+
const {
|
|
153
|
+
x,
|
|
154
|
+
y,
|
|
155
|
+
width,
|
|
156
|
+
height
|
|
157
|
+
} = rect;
|
|
158
|
+
return {
|
|
159
|
+
width,
|
|
160
|
+
height,
|
|
161
|
+
top: y,
|
|
162
|
+
left: x,
|
|
163
|
+
right: x + width,
|
|
164
|
+
bottom: y + height,
|
|
165
|
+
x,
|
|
166
|
+
y
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
171
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
172
|
+
let {
|
|
173
|
+
reference,
|
|
174
|
+
floating
|
|
175
|
+
} = _ref;
|
|
176
|
+
const sideAxis = getSideAxis(placement);
|
|
177
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
178
|
+
const alignLength = getAxisLength(alignmentAxis);
|
|
179
|
+
const side = getSide(placement);
|
|
180
|
+
const isVertical = sideAxis === "y";
|
|
181
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
182
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
183
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
184
|
+
let coords;
|
|
185
|
+
switch (side) {
|
|
186
|
+
case "top":
|
|
187
|
+
coords = {
|
|
188
|
+
x: commonX,
|
|
189
|
+
y: reference.y - floating.height
|
|
190
|
+
};
|
|
191
|
+
break;
|
|
192
|
+
case "bottom":
|
|
193
|
+
coords = {
|
|
194
|
+
x: commonX,
|
|
195
|
+
y: reference.y + reference.height
|
|
196
|
+
};
|
|
197
|
+
break;
|
|
198
|
+
case "right":
|
|
199
|
+
coords = {
|
|
200
|
+
x: reference.x + reference.width,
|
|
201
|
+
y: commonY
|
|
202
|
+
};
|
|
203
|
+
break;
|
|
204
|
+
case "left":
|
|
205
|
+
coords = {
|
|
206
|
+
x: reference.x - floating.width,
|
|
207
|
+
y: commonY
|
|
208
|
+
};
|
|
209
|
+
break;
|
|
210
|
+
default:
|
|
211
|
+
coords = {
|
|
212
|
+
x: reference.x,
|
|
213
|
+
y: reference.y
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
switch (getAlignment(placement)) {
|
|
217
|
+
case "start":
|
|
218
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
219
|
+
break;
|
|
220
|
+
case "end":
|
|
221
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
return coords;
|
|
225
|
+
}
|
|
226
|
+
async function detectOverflow(state, options) {
|
|
227
|
+
var _await$platform$isEle;
|
|
228
|
+
if (options === void 0) {
|
|
229
|
+
options = {};
|
|
230
|
+
}
|
|
231
|
+
const {
|
|
232
|
+
x,
|
|
233
|
+
y,
|
|
234
|
+
platform: platform2,
|
|
235
|
+
rects,
|
|
236
|
+
elements,
|
|
237
|
+
strategy
|
|
238
|
+
} = state;
|
|
239
|
+
const {
|
|
240
|
+
boundary = "clippingAncestors",
|
|
241
|
+
rootBoundary = "viewport",
|
|
242
|
+
elementContext = "floating",
|
|
243
|
+
altBoundary = false,
|
|
244
|
+
padding = 0
|
|
245
|
+
} = evaluate(options, state);
|
|
246
|
+
const paddingObject = getPaddingObject(padding);
|
|
247
|
+
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
248
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
249
|
+
const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
|
|
250
|
+
element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
251
|
+
boundary,
|
|
252
|
+
rootBoundary,
|
|
253
|
+
strategy
|
|
254
|
+
}));
|
|
255
|
+
const rect = elementContext === "floating" ? {
|
|
256
|
+
x,
|
|
257
|
+
y,
|
|
258
|
+
width: rects.floating.width,
|
|
259
|
+
height: rects.floating.height
|
|
260
|
+
} : rects.reference;
|
|
261
|
+
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
262
|
+
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
263
|
+
x: 1,
|
|
264
|
+
y: 1
|
|
265
|
+
} : {
|
|
266
|
+
x: 1,
|
|
267
|
+
y: 1
|
|
268
|
+
};
|
|
269
|
+
const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
270
|
+
elements,
|
|
271
|
+
rect,
|
|
272
|
+
offsetParent,
|
|
273
|
+
strategy
|
|
274
|
+
}) : rect);
|
|
275
|
+
return {
|
|
276
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
277
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
278
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
279
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
var MAX_RESET_COUNT = 50;
|
|
283
|
+
var computePosition = async (reference, floating, config) => {
|
|
284
|
+
const {
|
|
285
|
+
placement = "bottom",
|
|
286
|
+
strategy = "absolute",
|
|
287
|
+
middleware = [],
|
|
288
|
+
platform: platform2
|
|
289
|
+
} = config;
|
|
290
|
+
const platformWithDetectOverflow = platform2.detectOverflow ? platform2 : {
|
|
291
|
+
...platform2,
|
|
292
|
+
detectOverflow
|
|
293
|
+
};
|
|
294
|
+
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
295
|
+
let rects = await platform2.getElementRects({
|
|
296
|
+
reference,
|
|
297
|
+
floating,
|
|
298
|
+
strategy
|
|
299
|
+
});
|
|
300
|
+
let {
|
|
301
|
+
x,
|
|
302
|
+
y
|
|
303
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
304
|
+
let statefulPlacement = placement;
|
|
305
|
+
let resetCount = 0;
|
|
306
|
+
const middlewareData = {};
|
|
307
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
308
|
+
const currentMiddleware = middleware[i];
|
|
309
|
+
if (!currentMiddleware) {
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
const {
|
|
313
|
+
name,
|
|
314
|
+
fn
|
|
315
|
+
} = currentMiddleware;
|
|
316
|
+
const {
|
|
317
|
+
x: nextX,
|
|
318
|
+
y: nextY,
|
|
319
|
+
data,
|
|
320
|
+
reset
|
|
321
|
+
} = await fn({
|
|
322
|
+
x,
|
|
323
|
+
y,
|
|
324
|
+
initialPlacement: placement,
|
|
325
|
+
placement: statefulPlacement,
|
|
326
|
+
strategy,
|
|
327
|
+
middlewareData,
|
|
328
|
+
rects,
|
|
329
|
+
platform: platformWithDetectOverflow,
|
|
330
|
+
elements: {
|
|
331
|
+
reference,
|
|
332
|
+
floating
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
x = nextX != null ? nextX : x;
|
|
336
|
+
y = nextY != null ? nextY : y;
|
|
337
|
+
middlewareData[name] = {
|
|
338
|
+
...middlewareData[name],
|
|
339
|
+
...data
|
|
340
|
+
};
|
|
341
|
+
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
342
|
+
resetCount++;
|
|
343
|
+
if (typeof reset === "object") {
|
|
344
|
+
if (reset.placement) {
|
|
345
|
+
statefulPlacement = reset.placement;
|
|
346
|
+
}
|
|
347
|
+
if (reset.rects) {
|
|
348
|
+
rects = reset.rects === true ? await platform2.getElementRects({
|
|
349
|
+
reference,
|
|
350
|
+
floating,
|
|
351
|
+
strategy
|
|
352
|
+
}) : reset.rects;
|
|
353
|
+
}
|
|
354
|
+
({
|
|
355
|
+
x,
|
|
356
|
+
y
|
|
357
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
358
|
+
}
|
|
359
|
+
i = -1;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return {
|
|
363
|
+
x,
|
|
364
|
+
y,
|
|
365
|
+
placement: statefulPlacement,
|
|
366
|
+
strategy,
|
|
367
|
+
middlewareData
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
var arrow = (options) => ({
|
|
371
|
+
name: "arrow",
|
|
372
|
+
options,
|
|
373
|
+
async fn(state) {
|
|
374
|
+
const {
|
|
375
|
+
x,
|
|
376
|
+
y,
|
|
377
|
+
placement,
|
|
378
|
+
rects,
|
|
379
|
+
platform: platform2,
|
|
380
|
+
elements,
|
|
381
|
+
middlewareData
|
|
382
|
+
} = state;
|
|
383
|
+
const {
|
|
384
|
+
element,
|
|
385
|
+
padding = 0
|
|
386
|
+
} = evaluate(options, state) || {};
|
|
387
|
+
if (element == null) {
|
|
388
|
+
return {};
|
|
389
|
+
}
|
|
390
|
+
const paddingObject = getPaddingObject(padding);
|
|
391
|
+
const coords = {
|
|
392
|
+
x,
|
|
393
|
+
y
|
|
394
|
+
};
|
|
395
|
+
const axis = getAlignmentAxis(placement);
|
|
396
|
+
const length = getAxisLength(axis);
|
|
397
|
+
const arrowDimensions = await platform2.getDimensions(element);
|
|
398
|
+
const isYAxis = axis === "y";
|
|
399
|
+
const minProp = isYAxis ? "top" : "left";
|
|
400
|
+
const maxProp = isYAxis ? "bottom" : "right";
|
|
401
|
+
const clientProp = isYAxis ? "clientHeight" : "clientWidth";
|
|
402
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
403
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
404
|
+
const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
|
|
405
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
406
|
+
if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
|
|
407
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
408
|
+
}
|
|
409
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
410
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
411
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
412
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
413
|
+
const min$1 = minPadding;
|
|
414
|
+
const max2 = clientSize - arrowDimensions[length] - maxPadding;
|
|
415
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
416
|
+
const offset4 = clamp(min$1, center, max2);
|
|
417
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset4 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
418
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
|
|
419
|
+
return {
|
|
420
|
+
[axis]: coords[axis] + alignmentOffset,
|
|
421
|
+
data: {
|
|
422
|
+
[axis]: offset4,
|
|
423
|
+
centerOffset: center - offset4 - alignmentOffset,
|
|
424
|
+
...shouldAddOffset && {
|
|
425
|
+
alignmentOffset
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
reset: shouldAddOffset
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
var flip = function(options) {
|
|
433
|
+
if (options === void 0) {
|
|
434
|
+
options = {};
|
|
435
|
+
}
|
|
436
|
+
return {
|
|
437
|
+
name: "flip",
|
|
438
|
+
options,
|
|
439
|
+
async fn(state) {
|
|
440
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
441
|
+
const {
|
|
442
|
+
placement,
|
|
443
|
+
middlewareData,
|
|
444
|
+
rects,
|
|
445
|
+
initialPlacement,
|
|
446
|
+
platform: platform2,
|
|
447
|
+
elements
|
|
448
|
+
} = state;
|
|
449
|
+
const {
|
|
450
|
+
mainAxis: checkMainAxis = true,
|
|
451
|
+
crossAxis: checkCrossAxis = true,
|
|
452
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
453
|
+
fallbackStrategy = "bestFit",
|
|
454
|
+
fallbackAxisSideDirection = "none",
|
|
455
|
+
flipAlignment = true,
|
|
456
|
+
...detectOverflowOptions
|
|
457
|
+
} = evaluate(options, state);
|
|
458
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
459
|
+
return {};
|
|
460
|
+
}
|
|
461
|
+
const side = getSide(placement);
|
|
462
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
463
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
464
|
+
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
465
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
466
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
467
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
468
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
469
|
+
}
|
|
470
|
+
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
471
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
472
|
+
const overflows = [];
|
|
473
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
474
|
+
if (checkMainAxis) {
|
|
475
|
+
overflows.push(overflow[side]);
|
|
476
|
+
}
|
|
477
|
+
if (checkCrossAxis) {
|
|
478
|
+
const sides2 = getAlignmentSides(placement, rects, rtl);
|
|
479
|
+
overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
|
|
480
|
+
}
|
|
481
|
+
overflowsData = [...overflowsData, {
|
|
482
|
+
placement,
|
|
483
|
+
overflows
|
|
484
|
+
}];
|
|
485
|
+
if (!overflows.every((side2) => side2 <= 0)) {
|
|
486
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
487
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
488
|
+
const nextPlacement = placements2[nextIndex];
|
|
489
|
+
if (nextPlacement) {
|
|
490
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
491
|
+
if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
|
|
492
|
+
// overflows the main axis.
|
|
493
|
+
overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
494
|
+
return {
|
|
495
|
+
data: {
|
|
496
|
+
index: nextIndex,
|
|
497
|
+
overflows: overflowsData
|
|
498
|
+
},
|
|
499
|
+
reset: {
|
|
500
|
+
placement: nextPlacement
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
506
|
+
if (!resetPlacement) {
|
|
507
|
+
switch (fallbackStrategy) {
|
|
508
|
+
case "bestFit": {
|
|
509
|
+
var _overflowsData$filter2;
|
|
510
|
+
const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
|
|
511
|
+
if (hasFallbackAxisSideDirection) {
|
|
512
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
513
|
+
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
514
|
+
// reading directions favoring greater width.
|
|
515
|
+
currentSideAxis === "y";
|
|
516
|
+
}
|
|
517
|
+
return true;
|
|
518
|
+
}).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
519
|
+
if (placement2) {
|
|
520
|
+
resetPlacement = placement2;
|
|
521
|
+
}
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
case "initialPlacement":
|
|
525
|
+
resetPlacement = initialPlacement;
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
if (placement !== resetPlacement) {
|
|
530
|
+
return {
|
|
531
|
+
reset: {
|
|
532
|
+
placement: resetPlacement
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return {};
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
function getSideOffsets(overflow, rect) {
|
|
542
|
+
return {
|
|
543
|
+
top: overflow.top - rect.height,
|
|
544
|
+
right: overflow.right - rect.width,
|
|
545
|
+
bottom: overflow.bottom - rect.height,
|
|
546
|
+
left: overflow.left - rect.width
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
function isAnySideFullyClipped(overflow) {
|
|
550
|
+
return sides.some((side) => overflow[side] >= 0);
|
|
551
|
+
}
|
|
552
|
+
var hide = function(options) {
|
|
553
|
+
if (options === void 0) {
|
|
554
|
+
options = {};
|
|
555
|
+
}
|
|
556
|
+
return {
|
|
557
|
+
name: "hide",
|
|
558
|
+
options,
|
|
559
|
+
async fn(state) {
|
|
560
|
+
const {
|
|
561
|
+
rects,
|
|
562
|
+
platform: platform2
|
|
563
|
+
} = state;
|
|
564
|
+
const {
|
|
565
|
+
strategy = "referenceHidden",
|
|
566
|
+
...detectOverflowOptions
|
|
567
|
+
} = evaluate(options, state);
|
|
568
|
+
switch (strategy) {
|
|
569
|
+
case "referenceHidden": {
|
|
570
|
+
const overflow = await platform2.detectOverflow(state, {
|
|
571
|
+
...detectOverflowOptions,
|
|
572
|
+
elementContext: "reference"
|
|
573
|
+
});
|
|
574
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
|
575
|
+
return {
|
|
576
|
+
data: {
|
|
577
|
+
referenceHiddenOffsets: offsets,
|
|
578
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
case "escaped": {
|
|
583
|
+
const overflow = await platform2.detectOverflow(state, {
|
|
584
|
+
...detectOverflowOptions,
|
|
585
|
+
altBoundary: true
|
|
586
|
+
});
|
|
587
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
|
588
|
+
return {
|
|
589
|
+
data: {
|
|
590
|
+
escapedOffsets: offsets,
|
|
591
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
default: {
|
|
596
|
+
return {};
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
var originSides = /* @__PURE__ */ new Set(["left", "top"]);
|
|
603
|
+
async function convertValueToCoords(state, options) {
|
|
604
|
+
const {
|
|
605
|
+
placement,
|
|
606
|
+
platform: platform2,
|
|
607
|
+
elements
|
|
608
|
+
} = state;
|
|
609
|
+
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
610
|
+
const side = getSide(placement);
|
|
611
|
+
const alignment = getAlignment(placement);
|
|
612
|
+
const isVertical = getSideAxis(placement) === "y";
|
|
613
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
614
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
615
|
+
const rawValue = evaluate(options, state);
|
|
616
|
+
let {
|
|
617
|
+
mainAxis,
|
|
618
|
+
crossAxis,
|
|
619
|
+
alignmentAxis
|
|
620
|
+
} = typeof rawValue === "number" ? {
|
|
621
|
+
mainAxis: rawValue,
|
|
622
|
+
crossAxis: 0,
|
|
623
|
+
alignmentAxis: null
|
|
624
|
+
} : {
|
|
625
|
+
mainAxis: rawValue.mainAxis || 0,
|
|
626
|
+
crossAxis: rawValue.crossAxis || 0,
|
|
627
|
+
alignmentAxis: rawValue.alignmentAxis
|
|
628
|
+
};
|
|
629
|
+
if (alignment && typeof alignmentAxis === "number") {
|
|
630
|
+
crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
|
|
631
|
+
}
|
|
632
|
+
return isVertical ? {
|
|
633
|
+
x: crossAxis * crossAxisMulti,
|
|
634
|
+
y: mainAxis * mainAxisMulti
|
|
635
|
+
} : {
|
|
636
|
+
x: mainAxis * mainAxisMulti,
|
|
637
|
+
y: crossAxis * crossAxisMulti
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
var offset = function(options) {
|
|
641
|
+
if (options === void 0) {
|
|
642
|
+
options = 0;
|
|
643
|
+
}
|
|
644
|
+
return {
|
|
645
|
+
name: "offset",
|
|
646
|
+
options,
|
|
647
|
+
async fn(state) {
|
|
648
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
649
|
+
const {
|
|
650
|
+
x,
|
|
651
|
+
y,
|
|
652
|
+
placement,
|
|
653
|
+
middlewareData
|
|
654
|
+
} = state;
|
|
655
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
656
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
657
|
+
return {};
|
|
658
|
+
}
|
|
659
|
+
return {
|
|
660
|
+
x: x + diffCoords.x,
|
|
661
|
+
y: y + diffCoords.y,
|
|
662
|
+
data: {
|
|
663
|
+
...diffCoords,
|
|
664
|
+
placement
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
var shift = function(options) {
|
|
671
|
+
if (options === void 0) {
|
|
672
|
+
options = {};
|
|
673
|
+
}
|
|
674
|
+
return {
|
|
675
|
+
name: "shift",
|
|
676
|
+
options,
|
|
677
|
+
async fn(state) {
|
|
678
|
+
const {
|
|
679
|
+
x,
|
|
680
|
+
y,
|
|
681
|
+
placement,
|
|
682
|
+
platform: platform2
|
|
683
|
+
} = state;
|
|
684
|
+
const {
|
|
685
|
+
mainAxis: checkMainAxis = true,
|
|
686
|
+
crossAxis: checkCrossAxis = false,
|
|
687
|
+
limiter = {
|
|
688
|
+
fn: (_ref) => {
|
|
689
|
+
let {
|
|
690
|
+
x: x2,
|
|
691
|
+
y: y2
|
|
692
|
+
} = _ref;
|
|
693
|
+
return {
|
|
694
|
+
x: x2,
|
|
695
|
+
y: y2
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
...detectOverflowOptions
|
|
700
|
+
} = evaluate(options, state);
|
|
701
|
+
const coords = {
|
|
702
|
+
x,
|
|
703
|
+
y
|
|
704
|
+
};
|
|
705
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
706
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
707
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
708
|
+
let mainAxisCoord = coords[mainAxis];
|
|
709
|
+
let crossAxisCoord = coords[crossAxis];
|
|
710
|
+
if (checkMainAxis) {
|
|
711
|
+
const minSide = mainAxis === "y" ? "top" : "left";
|
|
712
|
+
const maxSide = mainAxis === "y" ? "bottom" : "right";
|
|
713
|
+
const min2 = mainAxisCoord + overflow[minSide];
|
|
714
|
+
const max2 = mainAxisCoord - overflow[maxSide];
|
|
715
|
+
mainAxisCoord = clamp(min2, mainAxisCoord, max2);
|
|
716
|
+
}
|
|
717
|
+
if (checkCrossAxis) {
|
|
718
|
+
const minSide = crossAxis === "y" ? "top" : "left";
|
|
719
|
+
const maxSide = crossAxis === "y" ? "bottom" : "right";
|
|
720
|
+
const min2 = crossAxisCoord + overflow[minSide];
|
|
721
|
+
const max2 = crossAxisCoord - overflow[maxSide];
|
|
722
|
+
crossAxisCoord = clamp(min2, crossAxisCoord, max2);
|
|
723
|
+
}
|
|
724
|
+
const limitedCoords = limiter.fn({
|
|
725
|
+
...state,
|
|
726
|
+
[mainAxis]: mainAxisCoord,
|
|
727
|
+
[crossAxis]: crossAxisCoord
|
|
728
|
+
});
|
|
729
|
+
return {
|
|
730
|
+
...limitedCoords,
|
|
731
|
+
data: {
|
|
732
|
+
x: limitedCoords.x - x,
|
|
733
|
+
y: limitedCoords.y - y,
|
|
734
|
+
enabled: {
|
|
735
|
+
[mainAxis]: checkMainAxis,
|
|
736
|
+
[crossAxis]: checkCrossAxis
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
var limitShift = function(options) {
|
|
744
|
+
if (options === void 0) {
|
|
745
|
+
options = {};
|
|
746
|
+
}
|
|
747
|
+
return {
|
|
748
|
+
options,
|
|
749
|
+
fn(state) {
|
|
750
|
+
const {
|
|
751
|
+
x,
|
|
752
|
+
y,
|
|
753
|
+
placement,
|
|
754
|
+
rects,
|
|
755
|
+
middlewareData
|
|
756
|
+
} = state;
|
|
757
|
+
const {
|
|
758
|
+
offset: offset4 = 0,
|
|
759
|
+
mainAxis: checkMainAxis = true,
|
|
760
|
+
crossAxis: checkCrossAxis = true
|
|
761
|
+
} = evaluate(options, state);
|
|
762
|
+
const coords = {
|
|
763
|
+
x,
|
|
764
|
+
y
|
|
765
|
+
};
|
|
766
|
+
const crossAxis = getSideAxis(placement);
|
|
767
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
768
|
+
let mainAxisCoord = coords[mainAxis];
|
|
769
|
+
let crossAxisCoord = coords[crossAxis];
|
|
770
|
+
const rawOffset = evaluate(offset4, state);
|
|
771
|
+
const computedOffset = typeof rawOffset === "number" ? {
|
|
772
|
+
mainAxis: rawOffset,
|
|
773
|
+
crossAxis: 0
|
|
774
|
+
} : {
|
|
775
|
+
mainAxis: 0,
|
|
776
|
+
crossAxis: 0,
|
|
777
|
+
...rawOffset
|
|
778
|
+
};
|
|
779
|
+
if (checkMainAxis) {
|
|
780
|
+
const len = mainAxis === "y" ? "height" : "width";
|
|
781
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
782
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
783
|
+
if (mainAxisCoord < limitMin) {
|
|
784
|
+
mainAxisCoord = limitMin;
|
|
785
|
+
} else if (mainAxisCoord > limitMax) {
|
|
786
|
+
mainAxisCoord = limitMax;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
if (checkCrossAxis) {
|
|
790
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
|
791
|
+
const len = mainAxis === "y" ? "width" : "height";
|
|
792
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
793
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
794
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
795
|
+
if (crossAxisCoord < limitMin) {
|
|
796
|
+
crossAxisCoord = limitMin;
|
|
797
|
+
} else if (crossAxisCoord > limitMax) {
|
|
798
|
+
crossAxisCoord = limitMax;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
return {
|
|
802
|
+
[mainAxis]: mainAxisCoord,
|
|
803
|
+
[crossAxis]: crossAxisCoord
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
var size = function(options) {
|
|
809
|
+
if (options === void 0) {
|
|
810
|
+
options = {};
|
|
811
|
+
}
|
|
812
|
+
return {
|
|
813
|
+
name: "size",
|
|
814
|
+
options,
|
|
815
|
+
async fn(state) {
|
|
816
|
+
var _state$middlewareData, _state$middlewareData2;
|
|
817
|
+
const {
|
|
818
|
+
placement,
|
|
819
|
+
rects,
|
|
820
|
+
platform: platform2,
|
|
821
|
+
elements
|
|
822
|
+
} = state;
|
|
823
|
+
const {
|
|
824
|
+
apply = () => {
|
|
825
|
+
},
|
|
826
|
+
...detectOverflowOptions
|
|
827
|
+
} = evaluate(options, state);
|
|
828
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
829
|
+
const side = getSide(placement);
|
|
830
|
+
const alignment = getAlignment(placement);
|
|
831
|
+
const isYAxis = getSideAxis(placement) === "y";
|
|
832
|
+
const {
|
|
833
|
+
width,
|
|
834
|
+
height
|
|
835
|
+
} = rects.floating;
|
|
836
|
+
let heightSide;
|
|
837
|
+
let widthSide;
|
|
838
|
+
if (side === "top" || side === "bottom") {
|
|
839
|
+
heightSide = side;
|
|
840
|
+
widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
|
|
841
|
+
} else {
|
|
842
|
+
widthSide = side;
|
|
843
|
+
heightSide = alignment === "end" ? "top" : "bottom";
|
|
844
|
+
}
|
|
845
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
846
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
847
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
848
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
849
|
+
const noShift = !state.middlewareData.shift;
|
|
850
|
+
let availableHeight = overflowAvailableHeight;
|
|
851
|
+
let availableWidth = overflowAvailableWidth;
|
|
852
|
+
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
|
|
853
|
+
availableWidth = maximumClippingWidth;
|
|
854
|
+
}
|
|
855
|
+
if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
|
|
856
|
+
availableHeight = maximumClippingHeight;
|
|
857
|
+
}
|
|
858
|
+
if (noShift && !alignment) {
|
|
859
|
+
const xMin = max(overflow.left, 0);
|
|
860
|
+
const xMax = max(overflow.right, 0);
|
|
861
|
+
const yMin = max(overflow.top, 0);
|
|
862
|
+
const yMax = max(overflow.bottom, 0);
|
|
863
|
+
if (isYAxis) {
|
|
864
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
865
|
+
} else {
|
|
866
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
await apply({
|
|
870
|
+
...state,
|
|
871
|
+
availableWidth,
|
|
872
|
+
availableHeight
|
|
873
|
+
});
|
|
874
|
+
const nextDimensions = await platform2.getDimensions(elements.floating);
|
|
875
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
876
|
+
return {
|
|
877
|
+
reset: {
|
|
878
|
+
rects: true
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
return {};
|
|
883
|
+
}
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
888
|
+
function hasWindow() {
|
|
889
|
+
return typeof window !== "undefined";
|
|
890
|
+
}
|
|
891
|
+
function getNodeName(node) {
|
|
892
|
+
if (isNode(node)) {
|
|
893
|
+
return (node.nodeName || "").toLowerCase();
|
|
894
|
+
}
|
|
895
|
+
return "#document";
|
|
896
|
+
}
|
|
897
|
+
function getWindow(node) {
|
|
898
|
+
var _node$ownerDocument;
|
|
899
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
900
|
+
}
|
|
901
|
+
function getDocumentElement(node) {
|
|
902
|
+
var _ref;
|
|
903
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
904
|
+
}
|
|
905
|
+
function isNode(value) {
|
|
906
|
+
if (!hasWindow()) {
|
|
907
|
+
return false;
|
|
908
|
+
}
|
|
909
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
910
|
+
}
|
|
911
|
+
function isElement(value) {
|
|
912
|
+
if (!hasWindow()) {
|
|
913
|
+
return false;
|
|
914
|
+
}
|
|
915
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
916
|
+
}
|
|
917
|
+
function isHTMLElement(value) {
|
|
918
|
+
if (!hasWindow()) {
|
|
919
|
+
return false;
|
|
920
|
+
}
|
|
921
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
922
|
+
}
|
|
923
|
+
function isShadowRoot(value) {
|
|
924
|
+
if (!hasWindow() || typeof ShadowRoot === "undefined") {
|
|
925
|
+
return false;
|
|
926
|
+
}
|
|
927
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
928
|
+
}
|
|
929
|
+
function isOverflowElement(element) {
|
|
930
|
+
const {
|
|
931
|
+
overflow,
|
|
932
|
+
overflowX,
|
|
933
|
+
overflowY,
|
|
934
|
+
display
|
|
935
|
+
} = getComputedStyle2(element);
|
|
936
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
|
|
937
|
+
}
|
|
938
|
+
function isTableElement(element) {
|
|
939
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
940
|
+
}
|
|
941
|
+
function isTopLayer(element) {
|
|
942
|
+
try {
|
|
943
|
+
if (element.matches(":popover-open")) {
|
|
944
|
+
return true;
|
|
945
|
+
}
|
|
946
|
+
} catch (_e) {
|
|
947
|
+
}
|
|
948
|
+
try {
|
|
949
|
+
return element.matches(":modal");
|
|
950
|
+
} catch (_e) {
|
|
951
|
+
return false;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
var willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
955
|
+
var containRe = /paint|layout|strict|content/;
|
|
956
|
+
var isNotNone = (value) => !!value && value !== "none";
|
|
957
|
+
var isWebKitValue;
|
|
958
|
+
function isContainingBlock(elementOrCss) {
|
|
959
|
+
const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
|
|
960
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || "");
|
|
961
|
+
}
|
|
962
|
+
function getContainingBlock(element) {
|
|
963
|
+
let currentNode = getParentNode(element);
|
|
964
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
965
|
+
if (isContainingBlock(currentNode)) {
|
|
966
|
+
return currentNode;
|
|
967
|
+
} else if (isTopLayer(currentNode)) {
|
|
968
|
+
return null;
|
|
969
|
+
}
|
|
970
|
+
currentNode = getParentNode(currentNode);
|
|
971
|
+
}
|
|
972
|
+
return null;
|
|
973
|
+
}
|
|
974
|
+
function isWebKit() {
|
|
975
|
+
if (isWebKitValue == null) {
|
|
976
|
+
isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
|
|
977
|
+
}
|
|
978
|
+
return isWebKitValue;
|
|
979
|
+
}
|
|
980
|
+
function isLastTraversableNode(node) {
|
|
981
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
982
|
+
}
|
|
983
|
+
function getComputedStyle2(element) {
|
|
984
|
+
return getWindow(element).getComputedStyle(element);
|
|
985
|
+
}
|
|
986
|
+
function getNodeScroll(element) {
|
|
987
|
+
if (isElement(element)) {
|
|
988
|
+
return {
|
|
989
|
+
scrollLeft: element.scrollLeft,
|
|
990
|
+
scrollTop: element.scrollTop
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
return {
|
|
994
|
+
scrollLeft: element.scrollX,
|
|
995
|
+
scrollTop: element.scrollY
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
function getParentNode(node) {
|
|
999
|
+
if (getNodeName(node) === "html") {
|
|
1000
|
+
return node;
|
|
1001
|
+
}
|
|
1002
|
+
const result = (
|
|
1003
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
1004
|
+
node.assignedSlot || // DOM Element detected.
|
|
1005
|
+
node.parentNode || // ShadowRoot detected.
|
|
1006
|
+
isShadowRoot(node) && node.host || // Fallback.
|
|
1007
|
+
getDocumentElement(node)
|
|
1008
|
+
);
|
|
1009
|
+
return isShadowRoot(result) ? result.host : result;
|
|
1010
|
+
}
|
|
1011
|
+
function getNearestOverflowAncestor(node) {
|
|
1012
|
+
const parentNode = getParentNode(node);
|
|
1013
|
+
if (isLastTraversableNode(parentNode)) {
|
|
1014
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
1015
|
+
}
|
|
1016
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
1017
|
+
return parentNode;
|
|
1018
|
+
}
|
|
1019
|
+
return getNearestOverflowAncestor(parentNode);
|
|
1020
|
+
}
|
|
1021
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
1022
|
+
var _node$ownerDocument2;
|
|
1023
|
+
if (list === void 0) {
|
|
1024
|
+
list = [];
|
|
1025
|
+
}
|
|
1026
|
+
if (traverseIframes === void 0) {
|
|
1027
|
+
traverseIframes = true;
|
|
1028
|
+
}
|
|
1029
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
1030
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
1031
|
+
const win = getWindow(scrollableAncestor);
|
|
1032
|
+
if (isBody) {
|
|
1033
|
+
const frameElement = getFrameElement(win);
|
|
1034
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
1035
|
+
} else {
|
|
1036
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
function getFrameElement(win) {
|
|
1040
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
// ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1044
|
+
function getCssDimensions(element) {
|
|
1045
|
+
const css = getComputedStyle2(element);
|
|
1046
|
+
let width = parseFloat(css.width) || 0;
|
|
1047
|
+
let height = parseFloat(css.height) || 0;
|
|
1048
|
+
const hasOffset = isHTMLElement(element);
|
|
1049
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
1050
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
1051
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
1052
|
+
if (shouldFallback) {
|
|
1053
|
+
width = offsetWidth;
|
|
1054
|
+
height = offsetHeight;
|
|
1055
|
+
}
|
|
1056
|
+
return {
|
|
1057
|
+
width,
|
|
1058
|
+
height,
|
|
1059
|
+
$: shouldFallback
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
function unwrapElement(element) {
|
|
1063
|
+
return !isElement(element) ? element.contextElement : element;
|
|
1064
|
+
}
|
|
1065
|
+
function getScale(element) {
|
|
1066
|
+
const domElement = unwrapElement(element);
|
|
1067
|
+
if (!isHTMLElement(domElement)) {
|
|
1068
|
+
return createCoords(1);
|
|
1069
|
+
}
|
|
1070
|
+
const rect = domElement.getBoundingClientRect();
|
|
1071
|
+
const {
|
|
1072
|
+
width,
|
|
1073
|
+
height,
|
|
1074
|
+
$
|
|
1075
|
+
} = getCssDimensions(domElement);
|
|
1076
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
1077
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
1078
|
+
if (!x || !Number.isFinite(x)) {
|
|
1079
|
+
x = 1;
|
|
1080
|
+
}
|
|
1081
|
+
if (!y || !Number.isFinite(y)) {
|
|
1082
|
+
y = 1;
|
|
1083
|
+
}
|
|
1084
|
+
return {
|
|
1085
|
+
x,
|
|
1086
|
+
y
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
var noOffsets = createCoords(0);
|
|
1090
|
+
function getVisualOffsets(element) {
|
|
1091
|
+
const win = getWindow(element);
|
|
1092
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
1093
|
+
return noOffsets;
|
|
1094
|
+
}
|
|
1095
|
+
return {
|
|
1096
|
+
x: win.visualViewport.offsetLeft,
|
|
1097
|
+
y: win.visualViewport.offsetTop
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1101
|
+
if (isFixed === void 0) {
|
|
1102
|
+
isFixed = false;
|
|
1103
|
+
}
|
|
1104
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
1105
|
+
return false;
|
|
1106
|
+
}
|
|
1107
|
+
return isFixed;
|
|
1108
|
+
}
|
|
1109
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1110
|
+
if (includeScale === void 0) {
|
|
1111
|
+
includeScale = false;
|
|
1112
|
+
}
|
|
1113
|
+
if (isFixedStrategy === void 0) {
|
|
1114
|
+
isFixedStrategy = false;
|
|
1115
|
+
}
|
|
1116
|
+
const clientRect = element.getBoundingClientRect();
|
|
1117
|
+
const domElement = unwrapElement(element);
|
|
1118
|
+
let scale = createCoords(1);
|
|
1119
|
+
if (includeScale) {
|
|
1120
|
+
if (offsetParent) {
|
|
1121
|
+
if (isElement(offsetParent)) {
|
|
1122
|
+
scale = getScale(offsetParent);
|
|
1123
|
+
}
|
|
1124
|
+
} else {
|
|
1125
|
+
scale = getScale(element);
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
1129
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
1130
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
1131
|
+
let width = clientRect.width / scale.x;
|
|
1132
|
+
let height = clientRect.height / scale.y;
|
|
1133
|
+
if (domElement) {
|
|
1134
|
+
const win = getWindow(domElement);
|
|
1135
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1136
|
+
let currentWin = win;
|
|
1137
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
1138
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
1139
|
+
const iframeScale = getScale(currentIFrame);
|
|
1140
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1141
|
+
const css = getComputedStyle2(currentIFrame);
|
|
1142
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1143
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1144
|
+
x *= iframeScale.x;
|
|
1145
|
+
y *= iframeScale.y;
|
|
1146
|
+
width *= iframeScale.x;
|
|
1147
|
+
height *= iframeScale.y;
|
|
1148
|
+
x += left;
|
|
1149
|
+
y += top;
|
|
1150
|
+
currentWin = getWindow(currentIFrame);
|
|
1151
|
+
currentIFrame = getFrameElement(currentWin);
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
return rectToClientRect({
|
|
1155
|
+
width,
|
|
1156
|
+
height,
|
|
1157
|
+
x,
|
|
1158
|
+
y
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
function getWindowScrollBarX(element, rect) {
|
|
1162
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
1163
|
+
if (!rect) {
|
|
1164
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
1165
|
+
}
|
|
1166
|
+
return rect.left + leftScroll;
|
|
1167
|
+
}
|
|
1168
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
1169
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
1170
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
1171
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
1172
|
+
return {
|
|
1173
|
+
x,
|
|
1174
|
+
y
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1178
|
+
let {
|
|
1179
|
+
elements,
|
|
1180
|
+
rect,
|
|
1181
|
+
offsetParent,
|
|
1182
|
+
strategy
|
|
1183
|
+
} = _ref;
|
|
1184
|
+
const isFixed = strategy === "fixed";
|
|
1185
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1186
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
1187
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
1188
|
+
return rect;
|
|
1189
|
+
}
|
|
1190
|
+
let scroll = {
|
|
1191
|
+
scrollLeft: 0,
|
|
1192
|
+
scrollTop: 0
|
|
1193
|
+
};
|
|
1194
|
+
let scale = createCoords(1);
|
|
1195
|
+
const offsets = createCoords(0);
|
|
1196
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1197
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1198
|
+
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
1199
|
+
scroll = getNodeScroll(offsetParent);
|
|
1200
|
+
}
|
|
1201
|
+
if (isOffsetParentAnElement) {
|
|
1202
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1203
|
+
scale = getScale(offsetParent);
|
|
1204
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1205
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1209
|
+
return {
|
|
1210
|
+
width: rect.width * scale.x,
|
|
1211
|
+
height: rect.height * scale.y,
|
|
1212
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
1213
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
function getClientRects(element) {
|
|
1217
|
+
return Array.from(element.getClientRects());
|
|
1218
|
+
}
|
|
1219
|
+
function getDocumentRect(element) {
|
|
1220
|
+
const html = getDocumentElement(element);
|
|
1221
|
+
const scroll = getNodeScroll(element);
|
|
1222
|
+
const body = element.ownerDocument.body;
|
|
1223
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1224
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1225
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1226
|
+
const y = -scroll.scrollTop;
|
|
1227
|
+
if (getComputedStyle2(body).direction === "rtl") {
|
|
1228
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1229
|
+
}
|
|
1230
|
+
return {
|
|
1231
|
+
width,
|
|
1232
|
+
height,
|
|
1233
|
+
x,
|
|
1234
|
+
y
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
var SCROLLBAR_MAX = 25;
|
|
1238
|
+
function getViewportRect(element, strategy) {
|
|
1239
|
+
const win = getWindow(element);
|
|
1240
|
+
const html = getDocumentElement(element);
|
|
1241
|
+
const visualViewport = win.visualViewport;
|
|
1242
|
+
let width = html.clientWidth;
|
|
1243
|
+
let height = html.clientHeight;
|
|
1244
|
+
let x = 0;
|
|
1245
|
+
let y = 0;
|
|
1246
|
+
if (visualViewport) {
|
|
1247
|
+
width = visualViewport.width;
|
|
1248
|
+
height = visualViewport.height;
|
|
1249
|
+
const visualViewportBased = isWebKit();
|
|
1250
|
+
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
1251
|
+
x = visualViewport.offsetLeft;
|
|
1252
|
+
y = visualViewport.offsetTop;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
1256
|
+
if (windowScrollbarX <= 0) {
|
|
1257
|
+
const doc = html.ownerDocument;
|
|
1258
|
+
const body = doc.body;
|
|
1259
|
+
const bodyStyles = getComputedStyle(body);
|
|
1260
|
+
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
1261
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
1262
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
1263
|
+
width -= clippingStableScrollbarWidth;
|
|
1264
|
+
}
|
|
1265
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
1266
|
+
width += windowScrollbarX;
|
|
1267
|
+
}
|
|
1268
|
+
return {
|
|
1269
|
+
width,
|
|
1270
|
+
height,
|
|
1271
|
+
x,
|
|
1272
|
+
y
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
1276
|
+
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
1277
|
+
const top = clientRect.top + element.clientTop;
|
|
1278
|
+
const left = clientRect.left + element.clientLeft;
|
|
1279
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1280
|
+
const width = element.clientWidth * scale.x;
|
|
1281
|
+
const height = element.clientHeight * scale.y;
|
|
1282
|
+
const x = left * scale.x;
|
|
1283
|
+
const y = top * scale.y;
|
|
1284
|
+
return {
|
|
1285
|
+
width,
|
|
1286
|
+
height,
|
|
1287
|
+
x,
|
|
1288
|
+
y
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1292
|
+
let rect;
|
|
1293
|
+
if (clippingAncestor === "viewport") {
|
|
1294
|
+
rect = getViewportRect(element, strategy);
|
|
1295
|
+
} else if (clippingAncestor === "document") {
|
|
1296
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
1297
|
+
} else if (isElement(clippingAncestor)) {
|
|
1298
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1299
|
+
} else {
|
|
1300
|
+
const visualOffsets = getVisualOffsets(element);
|
|
1301
|
+
rect = {
|
|
1302
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
1303
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
1304
|
+
width: clippingAncestor.width,
|
|
1305
|
+
height: clippingAncestor.height
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
return rectToClientRect(rect);
|
|
1309
|
+
}
|
|
1310
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
1311
|
+
const parentNode = getParentNode(element);
|
|
1312
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1313
|
+
return false;
|
|
1314
|
+
}
|
|
1315
|
+
return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1316
|
+
}
|
|
1317
|
+
function getClippingElementAncestors(element, cache) {
|
|
1318
|
+
const cachedResult = cache.get(element);
|
|
1319
|
+
if (cachedResult) {
|
|
1320
|
+
return cachedResult;
|
|
1321
|
+
}
|
|
1322
|
+
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
1323
|
+
let currentContainingBlockComputedStyle = null;
|
|
1324
|
+
const elementIsFixed = getComputedStyle2(element).position === "fixed";
|
|
1325
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1326
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1327
|
+
const computedStyle = getComputedStyle2(currentNode);
|
|
1328
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1329
|
+
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
|
1330
|
+
currentContainingBlockComputedStyle = null;
|
|
1331
|
+
}
|
|
1332
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1333
|
+
if (shouldDropCurrentNode) {
|
|
1334
|
+
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
1335
|
+
} else {
|
|
1336
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
1337
|
+
}
|
|
1338
|
+
currentNode = getParentNode(currentNode);
|
|
1339
|
+
}
|
|
1340
|
+
cache.set(element, result);
|
|
1341
|
+
return result;
|
|
1342
|
+
}
|
|
1343
|
+
function getClippingRect(_ref) {
|
|
1344
|
+
let {
|
|
1345
|
+
element,
|
|
1346
|
+
boundary,
|
|
1347
|
+
rootBoundary,
|
|
1348
|
+
strategy
|
|
1349
|
+
} = _ref;
|
|
1350
|
+
const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1351
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1352
|
+
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
1353
|
+
let top = firstRect.top;
|
|
1354
|
+
let right = firstRect.right;
|
|
1355
|
+
let bottom = firstRect.bottom;
|
|
1356
|
+
let left = firstRect.left;
|
|
1357
|
+
for (let i = 1; i < clippingAncestors.length; i++) {
|
|
1358
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
|
|
1359
|
+
top = max(rect.top, top);
|
|
1360
|
+
right = min(rect.right, right);
|
|
1361
|
+
bottom = min(rect.bottom, bottom);
|
|
1362
|
+
left = max(rect.left, left);
|
|
1363
|
+
}
|
|
1364
|
+
return {
|
|
1365
|
+
width: right - left,
|
|
1366
|
+
height: bottom - top,
|
|
1367
|
+
x: left,
|
|
1368
|
+
y: top
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
function getDimensions(element) {
|
|
1372
|
+
const {
|
|
1373
|
+
width,
|
|
1374
|
+
height
|
|
1375
|
+
} = getCssDimensions(element);
|
|
1376
|
+
return {
|
|
1377
|
+
width,
|
|
1378
|
+
height
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1382
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1383
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1384
|
+
const isFixed = strategy === "fixed";
|
|
1385
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1386
|
+
let scroll = {
|
|
1387
|
+
scrollLeft: 0,
|
|
1388
|
+
scrollTop: 0
|
|
1389
|
+
};
|
|
1390
|
+
const offsets = createCoords(0);
|
|
1391
|
+
function setLeftRTLScrollbarOffset() {
|
|
1392
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1393
|
+
}
|
|
1394
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1395
|
+
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
1396
|
+
scroll = getNodeScroll(offsetParent);
|
|
1397
|
+
}
|
|
1398
|
+
if (isOffsetParentAnElement) {
|
|
1399
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1400
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1401
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1402
|
+
} else if (documentElement) {
|
|
1403
|
+
setLeftRTLScrollbarOffset();
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
1407
|
+
setLeftRTLScrollbarOffset();
|
|
1408
|
+
}
|
|
1409
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1410
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
1411
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
1412
|
+
return {
|
|
1413
|
+
x,
|
|
1414
|
+
y,
|
|
1415
|
+
width: rect.width,
|
|
1416
|
+
height: rect.height
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
function isStaticPositioned(element) {
|
|
1420
|
+
return getComputedStyle2(element).position === "static";
|
|
1421
|
+
}
|
|
1422
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
1423
|
+
if (!isHTMLElement(element) || getComputedStyle2(element).position === "fixed") {
|
|
1424
|
+
return null;
|
|
1425
|
+
}
|
|
1426
|
+
if (polyfill) {
|
|
1427
|
+
return polyfill(element);
|
|
1428
|
+
}
|
|
1429
|
+
let rawOffsetParent = element.offsetParent;
|
|
1430
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
|
1431
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
1432
|
+
}
|
|
1433
|
+
return rawOffsetParent;
|
|
1434
|
+
}
|
|
1435
|
+
function getOffsetParent(element, polyfill) {
|
|
1436
|
+
const win = getWindow(element);
|
|
1437
|
+
if (isTopLayer(element)) {
|
|
1438
|
+
return win;
|
|
1439
|
+
}
|
|
1440
|
+
if (!isHTMLElement(element)) {
|
|
1441
|
+
let svgOffsetParent = getParentNode(element);
|
|
1442
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1443
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1444
|
+
return svgOffsetParent;
|
|
1445
|
+
}
|
|
1446
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1447
|
+
}
|
|
1448
|
+
return win;
|
|
1449
|
+
}
|
|
1450
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1451
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1452
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1453
|
+
}
|
|
1454
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1455
|
+
return win;
|
|
1456
|
+
}
|
|
1457
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
1458
|
+
}
|
|
1459
|
+
var getElementRects = async function(data) {
|
|
1460
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1461
|
+
const getDimensionsFn = this.getDimensions;
|
|
1462
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1463
|
+
return {
|
|
1464
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1465
|
+
floating: {
|
|
1466
|
+
x: 0,
|
|
1467
|
+
y: 0,
|
|
1468
|
+
width: floatingDimensions.width,
|
|
1469
|
+
height: floatingDimensions.height
|
|
1470
|
+
}
|
|
1471
|
+
};
|
|
1472
|
+
};
|
|
1473
|
+
function isRTL(element) {
|
|
1474
|
+
return getComputedStyle2(element).direction === "rtl";
|
|
1475
|
+
}
|
|
1476
|
+
var platform = {
|
|
1477
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1478
|
+
getDocumentElement,
|
|
1479
|
+
getClippingRect,
|
|
1480
|
+
getOffsetParent,
|
|
1481
|
+
getElementRects,
|
|
1482
|
+
getClientRects,
|
|
1483
|
+
getDimensions,
|
|
1484
|
+
getScale,
|
|
1485
|
+
isElement,
|
|
1486
|
+
isRTL
|
|
1487
|
+
};
|
|
1488
|
+
function rectsAreEqual(a, b) {
|
|
1489
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1490
|
+
}
|
|
1491
|
+
function observeMove(element, onMove) {
|
|
1492
|
+
let io = null;
|
|
1493
|
+
let timeoutId;
|
|
1494
|
+
const root = getDocumentElement(element);
|
|
1495
|
+
function cleanup() {
|
|
1496
|
+
var _io;
|
|
1497
|
+
clearTimeout(timeoutId);
|
|
1498
|
+
(_io = io) == null || _io.disconnect();
|
|
1499
|
+
io = null;
|
|
1500
|
+
}
|
|
1501
|
+
function refresh(skip, threshold) {
|
|
1502
|
+
if (skip === void 0) {
|
|
1503
|
+
skip = false;
|
|
1504
|
+
}
|
|
1505
|
+
if (threshold === void 0) {
|
|
1506
|
+
threshold = 1;
|
|
1507
|
+
}
|
|
1508
|
+
cleanup();
|
|
1509
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
1510
|
+
const {
|
|
1511
|
+
left,
|
|
1512
|
+
top,
|
|
1513
|
+
width,
|
|
1514
|
+
height
|
|
1515
|
+
} = elementRectForRootMargin;
|
|
1516
|
+
if (!skip) {
|
|
1517
|
+
onMove();
|
|
1518
|
+
}
|
|
1519
|
+
if (!width || !height) {
|
|
1520
|
+
return;
|
|
1521
|
+
}
|
|
1522
|
+
const insetTop = floor(top);
|
|
1523
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
1524
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1525
|
+
const insetLeft = floor(left);
|
|
1526
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1527
|
+
const options = {
|
|
1528
|
+
rootMargin,
|
|
1529
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
1530
|
+
};
|
|
1531
|
+
let isFirstUpdate = true;
|
|
1532
|
+
function handleObserve(entries) {
|
|
1533
|
+
const ratio = entries[0].intersectionRatio;
|
|
1534
|
+
if (ratio !== threshold) {
|
|
1535
|
+
if (!isFirstUpdate) {
|
|
1536
|
+
return refresh();
|
|
1537
|
+
}
|
|
1538
|
+
if (!ratio) {
|
|
1539
|
+
timeoutId = setTimeout(() => {
|
|
1540
|
+
refresh(false, 1e-7);
|
|
1541
|
+
}, 1e3);
|
|
1542
|
+
} else {
|
|
1543
|
+
refresh(false, ratio);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1547
|
+
refresh();
|
|
1548
|
+
}
|
|
1549
|
+
isFirstUpdate = false;
|
|
1550
|
+
}
|
|
1551
|
+
try {
|
|
1552
|
+
io = new IntersectionObserver(handleObserve, {
|
|
1553
|
+
...options,
|
|
1554
|
+
// Handle <iframe>s
|
|
1555
|
+
root: root.ownerDocument
|
|
1556
|
+
});
|
|
1557
|
+
} catch (_e) {
|
|
1558
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
1559
|
+
}
|
|
1560
|
+
io.observe(element);
|
|
1561
|
+
}
|
|
1562
|
+
refresh(true);
|
|
1563
|
+
return cleanup;
|
|
1564
|
+
}
|
|
1565
|
+
function autoUpdate(reference, floating, update, options) {
|
|
1566
|
+
if (options === void 0) {
|
|
1567
|
+
options = {};
|
|
1568
|
+
}
|
|
1569
|
+
const {
|
|
1570
|
+
ancestorScroll = true,
|
|
1571
|
+
ancestorResize = true,
|
|
1572
|
+
elementResize = typeof ResizeObserver === "function",
|
|
1573
|
+
layoutShift = typeof IntersectionObserver === "function",
|
|
1574
|
+
animationFrame = false
|
|
1575
|
+
} = options;
|
|
1576
|
+
const referenceEl = unwrapElement(reference);
|
|
1577
|
+
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
|
|
1578
|
+
ancestors.forEach((ancestor) => {
|
|
1579
|
+
ancestorScroll && ancestor.addEventListener("scroll", update, {
|
|
1580
|
+
passive: true
|
|
1581
|
+
});
|
|
1582
|
+
ancestorResize && ancestor.addEventListener("resize", update);
|
|
1583
|
+
});
|
|
1584
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1585
|
+
let reobserveFrame = -1;
|
|
1586
|
+
let resizeObserver = null;
|
|
1587
|
+
if (elementResize) {
|
|
1588
|
+
resizeObserver = new ResizeObserver((_ref) => {
|
|
1589
|
+
let [firstEntry] = _ref;
|
|
1590
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
1591
|
+
resizeObserver.unobserve(floating);
|
|
1592
|
+
cancelAnimationFrame(reobserveFrame);
|
|
1593
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
1594
|
+
var _resizeObserver;
|
|
1595
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
update();
|
|
1599
|
+
});
|
|
1600
|
+
if (referenceEl && !animationFrame) {
|
|
1601
|
+
resizeObserver.observe(referenceEl);
|
|
1602
|
+
}
|
|
1603
|
+
if (floating) {
|
|
1604
|
+
resizeObserver.observe(floating);
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
let frameId;
|
|
1608
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1609
|
+
if (animationFrame) {
|
|
1610
|
+
frameLoop();
|
|
1611
|
+
}
|
|
1612
|
+
function frameLoop() {
|
|
1613
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
1614
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
1615
|
+
update();
|
|
1616
|
+
}
|
|
1617
|
+
prevRefRect = nextRefRect;
|
|
1618
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
1619
|
+
}
|
|
1620
|
+
update();
|
|
1621
|
+
return () => {
|
|
1622
|
+
var _resizeObserver2;
|
|
1623
|
+
ancestors.forEach((ancestor) => {
|
|
1624
|
+
ancestorScroll && ancestor.removeEventListener("scroll", update);
|
|
1625
|
+
ancestorResize && ancestor.removeEventListener("resize", update);
|
|
1626
|
+
});
|
|
1627
|
+
cleanupIo == null || cleanupIo();
|
|
1628
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
1629
|
+
resizeObserver = null;
|
|
1630
|
+
if (animationFrame) {
|
|
1631
|
+
cancelAnimationFrame(frameId);
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
var offset2 = offset;
|
|
1636
|
+
var shift2 = shift;
|
|
1637
|
+
var flip2 = flip;
|
|
1638
|
+
var size2 = size;
|
|
1639
|
+
var hide2 = hide;
|
|
1640
|
+
var arrow2 = arrow;
|
|
1641
|
+
var limitShift2 = limitShift;
|
|
1642
|
+
var computePosition2 = (reference, floating, options) => {
|
|
1643
|
+
const cache = /* @__PURE__ */ new Map();
|
|
1644
|
+
const mergedOptions = {
|
|
1645
|
+
platform,
|
|
1646
|
+
...options
|
|
1647
|
+
};
|
|
1648
|
+
const platformWithCache = {
|
|
1649
|
+
...mergedOptions.platform,
|
|
1650
|
+
_c: cache
|
|
1651
|
+
};
|
|
1652
|
+
return computePosition(reference, floating, {
|
|
1653
|
+
...mergedOptions,
|
|
1654
|
+
platform: platformWithCache
|
|
1655
|
+
});
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1658
|
+
// ../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
1659
|
+
var React = __toESM(require_react(), 1);
|
|
1660
|
+
var import_react = __toESM(require_react(), 1);
|
|
1661
|
+
var ReactDOM = __toESM(require_react_dom(), 1);
|
|
1662
|
+
var isClient = typeof document !== "undefined";
|
|
1663
|
+
var noop = function noop2() {
|
|
1664
|
+
};
|
|
1665
|
+
var index = isClient ? import_react.useLayoutEffect : noop;
|
|
1666
|
+
function deepEqual(a, b) {
|
|
1667
|
+
if (a === b) {
|
|
1668
|
+
return true;
|
|
1669
|
+
}
|
|
1670
|
+
if (typeof a !== typeof b) {
|
|
1671
|
+
return false;
|
|
1672
|
+
}
|
|
1673
|
+
if (typeof a === "function" && a.toString() === b.toString()) {
|
|
1674
|
+
return true;
|
|
1675
|
+
}
|
|
1676
|
+
let length;
|
|
1677
|
+
let i;
|
|
1678
|
+
let keys;
|
|
1679
|
+
if (a && b && typeof a === "object") {
|
|
1680
|
+
if (Array.isArray(a)) {
|
|
1681
|
+
length = a.length;
|
|
1682
|
+
if (length !== b.length) return false;
|
|
1683
|
+
for (i = length; i-- !== 0; ) {
|
|
1684
|
+
if (!deepEqual(a[i], b[i])) {
|
|
1685
|
+
return false;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
return true;
|
|
1689
|
+
}
|
|
1690
|
+
keys = Object.keys(a);
|
|
1691
|
+
length = keys.length;
|
|
1692
|
+
if (length !== Object.keys(b).length) {
|
|
1693
|
+
return false;
|
|
1694
|
+
}
|
|
1695
|
+
for (i = length; i-- !== 0; ) {
|
|
1696
|
+
if (!{}.hasOwnProperty.call(b, keys[i])) {
|
|
1697
|
+
return false;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
for (i = length; i-- !== 0; ) {
|
|
1701
|
+
const key = keys[i];
|
|
1702
|
+
if (key === "_owner" && a.$$typeof) {
|
|
1703
|
+
continue;
|
|
1704
|
+
}
|
|
1705
|
+
if (!deepEqual(a[key], b[key])) {
|
|
1706
|
+
return false;
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
return true;
|
|
1710
|
+
}
|
|
1711
|
+
return a !== a && b !== b;
|
|
1712
|
+
}
|
|
1713
|
+
function getDPR(element) {
|
|
1714
|
+
if (typeof window === "undefined") {
|
|
1715
|
+
return 1;
|
|
1716
|
+
}
|
|
1717
|
+
const win = element.ownerDocument.defaultView || window;
|
|
1718
|
+
return win.devicePixelRatio || 1;
|
|
1719
|
+
}
|
|
1720
|
+
function roundByDPR(element, value) {
|
|
1721
|
+
const dpr = getDPR(element);
|
|
1722
|
+
return Math.round(value * dpr) / dpr;
|
|
1723
|
+
}
|
|
1724
|
+
function useLatestRef(value) {
|
|
1725
|
+
const ref = React.useRef(value);
|
|
1726
|
+
index(() => {
|
|
1727
|
+
ref.current = value;
|
|
1728
|
+
});
|
|
1729
|
+
return ref;
|
|
1730
|
+
}
|
|
1731
|
+
function useFloating(options) {
|
|
1732
|
+
if (options === void 0) {
|
|
1733
|
+
options = {};
|
|
1734
|
+
}
|
|
1735
|
+
const {
|
|
1736
|
+
placement = "bottom",
|
|
1737
|
+
strategy = "absolute",
|
|
1738
|
+
middleware = [],
|
|
1739
|
+
platform: platform2,
|
|
1740
|
+
elements: {
|
|
1741
|
+
reference: externalReference,
|
|
1742
|
+
floating: externalFloating
|
|
1743
|
+
} = {},
|
|
1744
|
+
transform = true,
|
|
1745
|
+
whileElementsMounted,
|
|
1746
|
+
open
|
|
1747
|
+
} = options;
|
|
1748
|
+
const [data, setData] = React.useState({
|
|
1749
|
+
x: 0,
|
|
1750
|
+
y: 0,
|
|
1751
|
+
strategy,
|
|
1752
|
+
placement,
|
|
1753
|
+
middlewareData: {},
|
|
1754
|
+
isPositioned: false
|
|
1755
|
+
});
|
|
1756
|
+
const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
|
|
1757
|
+
if (!deepEqual(latestMiddleware, middleware)) {
|
|
1758
|
+
setLatestMiddleware(middleware);
|
|
1759
|
+
}
|
|
1760
|
+
const [_reference, _setReference] = React.useState(null);
|
|
1761
|
+
const [_floating, _setFloating] = React.useState(null);
|
|
1762
|
+
const setReference = React.useCallback((node) => {
|
|
1763
|
+
if (node !== referenceRef.current) {
|
|
1764
|
+
referenceRef.current = node;
|
|
1765
|
+
_setReference(node);
|
|
1766
|
+
}
|
|
1767
|
+
}, []);
|
|
1768
|
+
const setFloating = React.useCallback((node) => {
|
|
1769
|
+
if (node !== floatingRef.current) {
|
|
1770
|
+
floatingRef.current = node;
|
|
1771
|
+
_setFloating(node);
|
|
1772
|
+
}
|
|
1773
|
+
}, []);
|
|
1774
|
+
const referenceEl = externalReference || _reference;
|
|
1775
|
+
const floatingEl = externalFloating || _floating;
|
|
1776
|
+
const referenceRef = React.useRef(null);
|
|
1777
|
+
const floatingRef = React.useRef(null);
|
|
1778
|
+
const dataRef = React.useRef(data);
|
|
1779
|
+
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
1780
|
+
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
1781
|
+
const platformRef = useLatestRef(platform2);
|
|
1782
|
+
const openRef = useLatestRef(open);
|
|
1783
|
+
const update = React.useCallback(() => {
|
|
1784
|
+
if (!referenceRef.current || !floatingRef.current) {
|
|
1785
|
+
return;
|
|
1786
|
+
}
|
|
1787
|
+
const config = {
|
|
1788
|
+
placement,
|
|
1789
|
+
strategy,
|
|
1790
|
+
middleware: latestMiddleware
|
|
1791
|
+
};
|
|
1792
|
+
if (platformRef.current) {
|
|
1793
|
+
config.platform = platformRef.current;
|
|
1794
|
+
}
|
|
1795
|
+
computePosition2(referenceRef.current, floatingRef.current, config).then((data2) => {
|
|
1796
|
+
const fullData = {
|
|
1797
|
+
...data2,
|
|
1798
|
+
// The floating element's position may be recomputed while it's closed
|
|
1799
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
1800
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1801
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
1802
|
+
isPositioned: openRef.current !== false
|
|
1803
|
+
};
|
|
1804
|
+
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
1805
|
+
dataRef.current = fullData;
|
|
1806
|
+
ReactDOM.flushSync(() => {
|
|
1807
|
+
setData(fullData);
|
|
1808
|
+
});
|
|
1809
|
+
}
|
|
1810
|
+
});
|
|
1811
|
+
}, [latestMiddleware, placement, strategy, platformRef, openRef]);
|
|
1812
|
+
index(() => {
|
|
1813
|
+
if (open === false && dataRef.current.isPositioned) {
|
|
1814
|
+
dataRef.current.isPositioned = false;
|
|
1815
|
+
setData((data2) => ({
|
|
1816
|
+
...data2,
|
|
1817
|
+
isPositioned: false
|
|
1818
|
+
}));
|
|
1819
|
+
}
|
|
1820
|
+
}, [open]);
|
|
1821
|
+
const isMountedRef = React.useRef(false);
|
|
1822
|
+
index(() => {
|
|
1823
|
+
isMountedRef.current = true;
|
|
1824
|
+
return () => {
|
|
1825
|
+
isMountedRef.current = false;
|
|
1826
|
+
};
|
|
1827
|
+
}, []);
|
|
1828
|
+
index(() => {
|
|
1829
|
+
if (referenceEl) referenceRef.current = referenceEl;
|
|
1830
|
+
if (floatingEl) floatingRef.current = floatingEl;
|
|
1831
|
+
if (referenceEl && floatingEl) {
|
|
1832
|
+
if (whileElementsMountedRef.current) {
|
|
1833
|
+
return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
1834
|
+
}
|
|
1835
|
+
update();
|
|
1836
|
+
}
|
|
1837
|
+
}, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
|
|
1838
|
+
const refs = React.useMemo(() => ({
|
|
1839
|
+
reference: referenceRef,
|
|
1840
|
+
floating: floatingRef,
|
|
1841
|
+
setReference,
|
|
1842
|
+
setFloating
|
|
1843
|
+
}), [setReference, setFloating]);
|
|
1844
|
+
const elements = React.useMemo(() => ({
|
|
1845
|
+
reference: referenceEl,
|
|
1846
|
+
floating: floatingEl
|
|
1847
|
+
}), [referenceEl, floatingEl]);
|
|
1848
|
+
const floatingStyles = React.useMemo(() => {
|
|
1849
|
+
const initialStyles = {
|
|
1850
|
+
position: strategy,
|
|
1851
|
+
left: 0,
|
|
1852
|
+
top: 0
|
|
1853
|
+
};
|
|
1854
|
+
if (!elements.floating) {
|
|
1855
|
+
return initialStyles;
|
|
1856
|
+
}
|
|
1857
|
+
const x = roundByDPR(elements.floating, data.x);
|
|
1858
|
+
const y = roundByDPR(elements.floating, data.y);
|
|
1859
|
+
if (transform) {
|
|
1860
|
+
return {
|
|
1861
|
+
...initialStyles,
|
|
1862
|
+
transform: "translate(" + x + "px, " + y + "px)",
|
|
1863
|
+
...getDPR(elements.floating) >= 1.5 && {
|
|
1864
|
+
willChange: "transform"
|
|
1865
|
+
}
|
|
1866
|
+
};
|
|
1867
|
+
}
|
|
1868
|
+
return {
|
|
1869
|
+
position: strategy,
|
|
1870
|
+
left: x,
|
|
1871
|
+
top: y
|
|
1872
|
+
};
|
|
1873
|
+
}, [strategy, transform, elements.floating, data.x, data.y]);
|
|
1874
|
+
return React.useMemo(() => ({
|
|
1875
|
+
...data,
|
|
1876
|
+
update,
|
|
1877
|
+
refs,
|
|
1878
|
+
elements,
|
|
1879
|
+
floatingStyles
|
|
1880
|
+
}), [data, update, refs, elements, floatingStyles]);
|
|
1881
|
+
}
|
|
1882
|
+
var arrow$1 = (options) => {
|
|
1883
|
+
function isRef(value) {
|
|
1884
|
+
return {}.hasOwnProperty.call(value, "current");
|
|
1885
|
+
}
|
|
1886
|
+
return {
|
|
1887
|
+
name: "arrow",
|
|
1888
|
+
options,
|
|
1889
|
+
fn(state) {
|
|
1890
|
+
const {
|
|
1891
|
+
element,
|
|
1892
|
+
padding
|
|
1893
|
+
} = typeof options === "function" ? options(state) : options;
|
|
1894
|
+
if (element && isRef(element)) {
|
|
1895
|
+
if (element.current != null) {
|
|
1896
|
+
return arrow2({
|
|
1897
|
+
element: element.current,
|
|
1898
|
+
padding
|
|
1899
|
+
}).fn(state);
|
|
1900
|
+
}
|
|
1901
|
+
return {};
|
|
1902
|
+
}
|
|
1903
|
+
if (element) {
|
|
1904
|
+
return arrow2({
|
|
1905
|
+
element,
|
|
1906
|
+
padding
|
|
1907
|
+
}).fn(state);
|
|
1908
|
+
}
|
|
1909
|
+
return {};
|
|
1910
|
+
}
|
|
1911
|
+
};
|
|
1912
|
+
};
|
|
1913
|
+
var offset3 = (options, deps) => {
|
|
1914
|
+
const result = offset2(options);
|
|
1915
|
+
return {
|
|
1916
|
+
name: result.name,
|
|
1917
|
+
fn: result.fn,
|
|
1918
|
+
options: [options, deps]
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
var shift3 = (options, deps) => {
|
|
1922
|
+
const result = shift2(options);
|
|
1923
|
+
return {
|
|
1924
|
+
name: result.name,
|
|
1925
|
+
fn: result.fn,
|
|
1926
|
+
options: [options, deps]
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1929
|
+
var limitShift3 = (options, deps) => {
|
|
1930
|
+
const result = limitShift2(options);
|
|
1931
|
+
return {
|
|
1932
|
+
fn: result.fn,
|
|
1933
|
+
options: [options, deps]
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1936
|
+
var flip3 = (options, deps) => {
|
|
1937
|
+
const result = flip2(options);
|
|
1938
|
+
return {
|
|
1939
|
+
name: result.name,
|
|
1940
|
+
fn: result.fn,
|
|
1941
|
+
options: [options, deps]
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
var size3 = (options, deps) => {
|
|
1945
|
+
const result = size2(options);
|
|
1946
|
+
return {
|
|
1947
|
+
name: result.name,
|
|
1948
|
+
fn: result.fn,
|
|
1949
|
+
options: [options, deps]
|
|
1950
|
+
};
|
|
1951
|
+
};
|
|
1952
|
+
var hide3 = (options, deps) => {
|
|
1953
|
+
const result = hide2(options);
|
|
1954
|
+
return {
|
|
1955
|
+
name: result.name,
|
|
1956
|
+
fn: result.fn,
|
|
1957
|
+
options: [options, deps]
|
|
1958
|
+
};
|
|
1959
|
+
};
|
|
1960
|
+
var arrow3 = (options, deps) => {
|
|
1961
|
+
const result = arrow$1(options);
|
|
1962
|
+
return {
|
|
1963
|
+
name: result.name,
|
|
1964
|
+
fn: result.fn,
|
|
1965
|
+
options: [options, deps]
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1968
|
+
|
|
1969
|
+
// ../../node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
1970
|
+
var React2 = __toESM(require_react(), 1);
|
|
1971
|
+
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
1972
|
+
var NAME = "Arrow";
|
|
1973
|
+
var Arrow = React2.forwardRef((props, forwardedRef) => {
|
|
1974
|
+
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
1975
|
+
return (0, import_jsx_runtime.jsx)(
|
|
1976
|
+
Primitive.svg,
|
|
1977
|
+
{
|
|
1978
|
+
...arrowProps,
|
|
1979
|
+
ref: forwardedRef,
|
|
1980
|
+
width,
|
|
1981
|
+
height,
|
|
1982
|
+
viewBox: "0 0 30 10",
|
|
1983
|
+
preserveAspectRatio: "none",
|
|
1984
|
+
children: props.asChild ? children : (0, import_jsx_runtime.jsx)("polygon", { points: "0,0 30,0 15,10" })
|
|
1985
|
+
}
|
|
1986
|
+
);
|
|
1987
|
+
});
|
|
1988
|
+
Arrow.displayName = NAME;
|
|
1989
|
+
var Root = Arrow;
|
|
1990
|
+
|
|
1991
|
+
// ../../node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
1992
|
+
var React3 = __toESM(require_react(), 1);
|
|
1993
|
+
function useSize(element) {
|
|
1994
|
+
const [size4, setSize] = React3.useState(void 0);
|
|
1995
|
+
useLayoutEffect2(() => {
|
|
1996
|
+
if (element) {
|
|
1997
|
+
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
1998
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
1999
|
+
if (!Array.isArray(entries)) {
|
|
2000
|
+
return;
|
|
2001
|
+
}
|
|
2002
|
+
if (!entries.length) {
|
|
2003
|
+
return;
|
|
2004
|
+
}
|
|
2005
|
+
const entry = entries[0];
|
|
2006
|
+
let width;
|
|
2007
|
+
let height;
|
|
2008
|
+
if ("borderBoxSize" in entry) {
|
|
2009
|
+
const borderSizeEntry = entry["borderBoxSize"];
|
|
2010
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
2011
|
+
width = borderSize["inlineSize"];
|
|
2012
|
+
height = borderSize["blockSize"];
|
|
2013
|
+
} else {
|
|
2014
|
+
width = element.offsetWidth;
|
|
2015
|
+
height = element.offsetHeight;
|
|
2016
|
+
}
|
|
2017
|
+
setSize({ width, height });
|
|
2018
|
+
});
|
|
2019
|
+
resizeObserver.observe(element, { box: "border-box" });
|
|
2020
|
+
return () => resizeObserver.unobserve(element);
|
|
2021
|
+
} else {
|
|
2022
|
+
setSize(void 0);
|
|
2023
|
+
}
|
|
2024
|
+
}, [element]);
|
|
2025
|
+
return size4;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
// ../../node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
2029
|
+
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
2030
|
+
var POPPER_NAME = "Popper";
|
|
2031
|
+
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
2032
|
+
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
2033
|
+
var Popper = (props) => {
|
|
2034
|
+
const { __scopePopper, children } = props;
|
|
2035
|
+
const [anchor, setAnchor] = React4.useState(null);
|
|
2036
|
+
return (0, import_jsx_runtime2.jsx)(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
2037
|
+
};
|
|
2038
|
+
Popper.displayName = POPPER_NAME;
|
|
2039
|
+
var ANCHOR_NAME = "PopperAnchor";
|
|
2040
|
+
var PopperAnchor = React4.forwardRef(
|
|
2041
|
+
(props, forwardedRef) => {
|
|
2042
|
+
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
2043
|
+
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
2044
|
+
const ref = React4.useRef(null);
|
|
2045
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
2046
|
+
const anchorRef = React4.useRef(null);
|
|
2047
|
+
React4.useEffect(() => {
|
|
2048
|
+
const previousAnchor = anchorRef.current;
|
|
2049
|
+
anchorRef.current = (virtualRef == null ? void 0 : virtualRef.current) || ref.current;
|
|
2050
|
+
if (previousAnchor !== anchorRef.current) {
|
|
2051
|
+
context.onAnchorChange(anchorRef.current);
|
|
2052
|
+
}
|
|
2053
|
+
});
|
|
2054
|
+
return virtualRef ? null : (0, import_jsx_runtime2.jsx)(Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
2055
|
+
}
|
|
2056
|
+
);
|
|
2057
|
+
PopperAnchor.displayName = ANCHOR_NAME;
|
|
2058
|
+
var CONTENT_NAME = "PopperContent";
|
|
2059
|
+
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
|
|
2060
|
+
var PopperContent = React4.forwardRef(
|
|
2061
|
+
(props, forwardedRef) => {
|
|
2062
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2063
|
+
const {
|
|
2064
|
+
__scopePopper,
|
|
2065
|
+
side = "bottom",
|
|
2066
|
+
sideOffset = 0,
|
|
2067
|
+
align = "center",
|
|
2068
|
+
alignOffset = 0,
|
|
2069
|
+
arrowPadding = 0,
|
|
2070
|
+
avoidCollisions = true,
|
|
2071
|
+
collisionBoundary = [],
|
|
2072
|
+
collisionPadding: collisionPaddingProp = 0,
|
|
2073
|
+
sticky = "partial",
|
|
2074
|
+
hideWhenDetached = false,
|
|
2075
|
+
updatePositionStrategy = "optimized",
|
|
2076
|
+
onPlaced,
|
|
2077
|
+
...contentProps
|
|
2078
|
+
} = props;
|
|
2079
|
+
const context = usePopperContext(CONTENT_NAME, __scopePopper);
|
|
2080
|
+
const [content, setContent] = React4.useState(null);
|
|
2081
|
+
const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
2082
|
+
const [arrow4, setArrow] = React4.useState(null);
|
|
2083
|
+
const arrowSize = useSize(arrow4);
|
|
2084
|
+
const arrowWidth = (arrowSize == null ? void 0 : arrowSize.width) ?? 0;
|
|
2085
|
+
const arrowHeight = (arrowSize == null ? void 0 : arrowSize.height) ?? 0;
|
|
2086
|
+
const desiredPlacement = side + (align !== "center" ? "-" + align : "");
|
|
2087
|
+
const collisionPadding = typeof collisionPaddingProp === "number" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };
|
|
2088
|
+
const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];
|
|
2089
|
+
const hasExplicitBoundaries = boundary.length > 0;
|
|
2090
|
+
const detectOverflowOptions = {
|
|
2091
|
+
padding: collisionPadding,
|
|
2092
|
+
boundary: boundary.filter(isNotNull),
|
|
2093
|
+
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2094
|
+
altBoundary: hasExplicitBoundaries
|
|
2095
|
+
};
|
|
2096
|
+
const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
|
|
2097
|
+
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2098
|
+
strategy: "fixed",
|
|
2099
|
+
placement: desiredPlacement,
|
|
2100
|
+
whileElementsMounted: (...args) => {
|
|
2101
|
+
const cleanup = autoUpdate(...args, {
|
|
2102
|
+
animationFrame: updatePositionStrategy === "always"
|
|
2103
|
+
});
|
|
2104
|
+
return cleanup;
|
|
2105
|
+
},
|
|
2106
|
+
elements: {
|
|
2107
|
+
reference: context.anchor
|
|
2108
|
+
},
|
|
2109
|
+
middleware: [
|
|
2110
|
+
offset3({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),
|
|
2111
|
+
avoidCollisions && shift3({
|
|
2112
|
+
mainAxis: true,
|
|
2113
|
+
crossAxis: false,
|
|
2114
|
+
limiter: sticky === "partial" ? limitShift3() : void 0,
|
|
2115
|
+
...detectOverflowOptions
|
|
2116
|
+
}),
|
|
2117
|
+
avoidCollisions && flip3({ ...detectOverflowOptions }),
|
|
2118
|
+
size3({
|
|
2119
|
+
...detectOverflowOptions,
|
|
2120
|
+
apply: ({ elements, rects, availableWidth, availableHeight }) => {
|
|
2121
|
+
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
2122
|
+
const contentStyle = elements.floating.style;
|
|
2123
|
+
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
2124
|
+
contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
|
|
2125
|
+
contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
|
|
2126
|
+
contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
|
|
2127
|
+
}
|
|
2128
|
+
}),
|
|
2129
|
+
arrow4 && arrow3({ element: arrow4, padding: arrowPadding }),
|
|
2130
|
+
transformOrigin({ arrowWidth, arrowHeight }),
|
|
2131
|
+
hideWhenDetached && hide3({ strategy: "referenceHidden", ...detectOverflowOptions })
|
|
2132
|
+
]
|
|
2133
|
+
});
|
|
2134
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
2135
|
+
const handlePlaced = useCallbackRef(onPlaced);
|
|
2136
|
+
useLayoutEffect2(() => {
|
|
2137
|
+
if (isPositioned) {
|
|
2138
|
+
handlePlaced == null ? void 0 : handlePlaced();
|
|
2139
|
+
}
|
|
2140
|
+
}, [isPositioned, handlePlaced]);
|
|
2141
|
+
const arrowX = (_a = middlewareData.arrow) == null ? void 0 : _a.x;
|
|
2142
|
+
const arrowY = (_b = middlewareData.arrow) == null ? void 0 : _b.y;
|
|
2143
|
+
const cannotCenterArrow = ((_c = middlewareData.arrow) == null ? void 0 : _c.centerOffset) !== 0;
|
|
2144
|
+
const [contentZIndex, setContentZIndex] = React4.useState();
|
|
2145
|
+
useLayoutEffect2(() => {
|
|
2146
|
+
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
2147
|
+
}, [content]);
|
|
2148
|
+
return (0, import_jsx_runtime2.jsx)(
|
|
2149
|
+
"div",
|
|
2150
|
+
{
|
|
2151
|
+
ref: refs.setFloating,
|
|
2152
|
+
"data-radix-popper-content-wrapper": "",
|
|
2153
|
+
style: {
|
|
2154
|
+
...floatingStyles,
|
|
2155
|
+
transform: isPositioned ? floatingStyles.transform : "translate(0, -200%)",
|
|
2156
|
+
// keep off the page when measuring
|
|
2157
|
+
minWidth: "max-content",
|
|
2158
|
+
zIndex: contentZIndex,
|
|
2159
|
+
["--radix-popper-transform-origin"]: [
|
|
2160
|
+
(_d = middlewareData.transformOrigin) == null ? void 0 : _d.x,
|
|
2161
|
+
(_e = middlewareData.transformOrigin) == null ? void 0 : _e.y
|
|
2162
|
+
].join(" "),
|
|
2163
|
+
// hide the content if using the hide middleware and should be hidden
|
|
2164
|
+
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2165
|
+
// as if the PopperContent isn't there at all
|
|
2166
|
+
...((_f = middlewareData.hide) == null ? void 0 : _f.referenceHidden) && {
|
|
2167
|
+
visibility: "hidden",
|
|
2168
|
+
pointerEvents: "none"
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
2171
|
+
dir: props.dir,
|
|
2172
|
+
children: (0, import_jsx_runtime2.jsx)(
|
|
2173
|
+
PopperContentProvider,
|
|
2174
|
+
{
|
|
2175
|
+
scope: __scopePopper,
|
|
2176
|
+
placedSide,
|
|
2177
|
+
onArrowChange: setArrow,
|
|
2178
|
+
arrowX,
|
|
2179
|
+
arrowY,
|
|
2180
|
+
shouldHideArrow: cannotCenterArrow,
|
|
2181
|
+
children: (0, import_jsx_runtime2.jsx)(
|
|
2182
|
+
Primitive.div,
|
|
2183
|
+
{
|
|
2184
|
+
"data-side": placedSide,
|
|
2185
|
+
"data-align": placedAlign,
|
|
2186
|
+
...contentProps,
|
|
2187
|
+
ref: composedRefs,
|
|
2188
|
+
style: {
|
|
2189
|
+
...contentProps.style,
|
|
2190
|
+
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2191
|
+
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2192
|
+
animation: !isPositioned ? "none" : void 0
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
)
|
|
2196
|
+
}
|
|
2197
|
+
)
|
|
2198
|
+
}
|
|
2199
|
+
);
|
|
2200
|
+
}
|
|
2201
|
+
);
|
|
2202
|
+
PopperContent.displayName = CONTENT_NAME;
|
|
2203
|
+
var ARROW_NAME = "PopperArrow";
|
|
2204
|
+
var OPPOSITE_SIDE = {
|
|
2205
|
+
top: "bottom",
|
|
2206
|
+
right: "left",
|
|
2207
|
+
bottom: "top",
|
|
2208
|
+
left: "right"
|
|
2209
|
+
};
|
|
2210
|
+
var PopperArrow = React4.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
2211
|
+
const { __scopePopper, ...arrowProps } = props;
|
|
2212
|
+
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
2213
|
+
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
2214
|
+
return (
|
|
2215
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2216
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
2217
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2218
|
+
(0, import_jsx_runtime2.jsx)(
|
|
2219
|
+
"span",
|
|
2220
|
+
{
|
|
2221
|
+
ref: contentContext.onArrowChange,
|
|
2222
|
+
style: {
|
|
2223
|
+
position: "absolute",
|
|
2224
|
+
left: contentContext.arrowX,
|
|
2225
|
+
top: contentContext.arrowY,
|
|
2226
|
+
[baseSide]: 0,
|
|
2227
|
+
transformOrigin: {
|
|
2228
|
+
top: "",
|
|
2229
|
+
right: "0 0",
|
|
2230
|
+
bottom: "center 0",
|
|
2231
|
+
left: "100% 0"
|
|
2232
|
+
}[contentContext.placedSide],
|
|
2233
|
+
transform: {
|
|
2234
|
+
top: "translateY(100%)",
|
|
2235
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
2236
|
+
bottom: `rotate(180deg)`,
|
|
2237
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
2238
|
+
}[contentContext.placedSide],
|
|
2239
|
+
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
2240
|
+
},
|
|
2241
|
+
children: (0, import_jsx_runtime2.jsx)(
|
|
2242
|
+
Root,
|
|
2243
|
+
{
|
|
2244
|
+
...arrowProps,
|
|
2245
|
+
ref: forwardedRef,
|
|
2246
|
+
style: {
|
|
2247
|
+
...arrowProps.style,
|
|
2248
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
2249
|
+
display: "block"
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
)
|
|
2253
|
+
}
|
|
2254
|
+
)
|
|
2255
|
+
);
|
|
2256
|
+
});
|
|
2257
|
+
PopperArrow.displayName = ARROW_NAME;
|
|
2258
|
+
function isNotNull(value) {
|
|
2259
|
+
return value !== null;
|
|
2260
|
+
}
|
|
2261
|
+
var transformOrigin = (options) => ({
|
|
2262
|
+
name: "transformOrigin",
|
|
2263
|
+
options,
|
|
2264
|
+
fn(data) {
|
|
2265
|
+
var _a, _b, _c;
|
|
2266
|
+
const { placement, rects, middlewareData } = data;
|
|
2267
|
+
const cannotCenterArrow = ((_a = middlewareData.arrow) == null ? void 0 : _a.centerOffset) !== 0;
|
|
2268
|
+
const isArrowHidden = cannotCenterArrow;
|
|
2269
|
+
const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
|
|
2270
|
+
const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
|
|
2271
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
2272
|
+
const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
|
|
2273
|
+
const arrowXCenter = (((_b = middlewareData.arrow) == null ? void 0 : _b.x) ?? 0) + arrowWidth / 2;
|
|
2274
|
+
const arrowYCenter = (((_c = middlewareData.arrow) == null ? void 0 : _c.y) ?? 0) + arrowHeight / 2;
|
|
2275
|
+
let x = "";
|
|
2276
|
+
let y = "";
|
|
2277
|
+
if (placedSide === "bottom") {
|
|
2278
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
2279
|
+
y = `${-arrowHeight}px`;
|
|
2280
|
+
} else if (placedSide === "top") {
|
|
2281
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
2282
|
+
y = `${rects.floating.height + arrowHeight}px`;
|
|
2283
|
+
} else if (placedSide === "right") {
|
|
2284
|
+
x = `${-arrowHeight}px`;
|
|
2285
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
2286
|
+
} else if (placedSide === "left") {
|
|
2287
|
+
x = `${rects.floating.width + arrowHeight}px`;
|
|
2288
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
2289
|
+
}
|
|
2290
|
+
return { data: { x, y } };
|
|
2291
|
+
}
|
|
2292
|
+
});
|
|
2293
|
+
function getSideAndAlignFromPlacement(placement) {
|
|
2294
|
+
const [side, align = "center"] = placement.split("-");
|
|
2295
|
+
return [side, align];
|
|
2296
|
+
}
|
|
2297
|
+
var Root2 = Popper;
|
|
2298
|
+
var Anchor = PopperAnchor;
|
|
2299
|
+
var Content = PopperContent;
|
|
2300
|
+
var Arrow2 = PopperArrow;
|
|
2301
|
+
|
|
2302
|
+
// ../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
2303
|
+
var React5 = __toESM(require_react(), 1);
|
|
2304
|
+
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
2305
|
+
var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
2306
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
2307
|
+
position: "absolute",
|
|
2308
|
+
border: 0,
|
|
2309
|
+
width: 1,
|
|
2310
|
+
height: 1,
|
|
2311
|
+
padding: 0,
|
|
2312
|
+
margin: -1,
|
|
2313
|
+
overflow: "hidden",
|
|
2314
|
+
clip: "rect(0, 0, 0, 0)",
|
|
2315
|
+
whiteSpace: "nowrap",
|
|
2316
|
+
wordWrap: "normal"
|
|
2317
|
+
});
|
|
2318
|
+
var NAME2 = "VisuallyHidden";
|
|
2319
|
+
var VisuallyHidden = React5.forwardRef(
|
|
2320
|
+
(props, forwardedRef) => {
|
|
2321
|
+
return (0, import_jsx_runtime3.jsx)(
|
|
2322
|
+
Primitive.span,
|
|
2323
|
+
{
|
|
2324
|
+
...props,
|
|
2325
|
+
ref: forwardedRef,
|
|
2326
|
+
style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }
|
|
2327
|
+
}
|
|
2328
|
+
);
|
|
2329
|
+
}
|
|
2330
|
+
);
|
|
2331
|
+
VisuallyHidden.displayName = NAME2;
|
|
2332
|
+
var Root3 = VisuallyHidden;
|
|
2333
|
+
|
|
2334
|
+
// ../../node_modules/@radix-ui/react-tooltip/dist/index.mjs
|
|
2335
|
+
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
2336
|
+
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
2337
|
+
createPopperScope
|
|
2338
|
+
]);
|
|
2339
|
+
var usePopperScope = createPopperScope();
|
|
2340
|
+
var PROVIDER_NAME = "TooltipProvider";
|
|
2341
|
+
var DEFAULT_DELAY_DURATION = 700;
|
|
2342
|
+
var TOOLTIP_OPEN = "tooltip.open";
|
|
2343
|
+
var [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME);
|
|
2344
|
+
var TooltipProvider = (props) => {
|
|
2345
|
+
const {
|
|
2346
|
+
__scopeTooltip,
|
|
2347
|
+
delayDuration = DEFAULT_DELAY_DURATION,
|
|
2348
|
+
skipDelayDuration = 300,
|
|
2349
|
+
disableHoverableContent = false,
|
|
2350
|
+
children
|
|
2351
|
+
} = props;
|
|
2352
|
+
const isOpenDelayedRef = React6.useRef(true);
|
|
2353
|
+
const isPointerInTransitRef = React6.useRef(false);
|
|
2354
|
+
const skipDelayTimerRef = React6.useRef(0);
|
|
2355
|
+
React6.useEffect(() => {
|
|
2356
|
+
const skipDelayTimer = skipDelayTimerRef.current;
|
|
2357
|
+
return () => window.clearTimeout(skipDelayTimer);
|
|
2358
|
+
}, []);
|
|
2359
|
+
return (0, import_jsx_runtime4.jsx)(
|
|
2360
|
+
TooltipProviderContextProvider,
|
|
2361
|
+
{
|
|
2362
|
+
scope: __scopeTooltip,
|
|
2363
|
+
isOpenDelayedRef,
|
|
2364
|
+
delayDuration,
|
|
2365
|
+
onOpen: React6.useCallback(() => {
|
|
2366
|
+
window.clearTimeout(skipDelayTimerRef.current);
|
|
2367
|
+
isOpenDelayedRef.current = false;
|
|
2368
|
+
}, []),
|
|
2369
|
+
onClose: React6.useCallback(() => {
|
|
2370
|
+
window.clearTimeout(skipDelayTimerRef.current);
|
|
2371
|
+
skipDelayTimerRef.current = window.setTimeout(
|
|
2372
|
+
() => isOpenDelayedRef.current = true,
|
|
2373
|
+
skipDelayDuration
|
|
2374
|
+
);
|
|
2375
|
+
}, [skipDelayDuration]),
|
|
2376
|
+
isPointerInTransitRef,
|
|
2377
|
+
onPointerInTransitChange: React6.useCallback((inTransit) => {
|
|
2378
|
+
isPointerInTransitRef.current = inTransit;
|
|
2379
|
+
}, []),
|
|
2380
|
+
disableHoverableContent,
|
|
2381
|
+
children
|
|
2382
|
+
}
|
|
2383
|
+
);
|
|
2384
|
+
};
|
|
2385
|
+
TooltipProvider.displayName = PROVIDER_NAME;
|
|
2386
|
+
var TOOLTIP_NAME = "Tooltip";
|
|
2387
|
+
var [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME);
|
|
2388
|
+
var Tooltip = (props) => {
|
|
2389
|
+
const {
|
|
2390
|
+
__scopeTooltip,
|
|
2391
|
+
children,
|
|
2392
|
+
open: openProp,
|
|
2393
|
+
defaultOpen,
|
|
2394
|
+
onOpenChange,
|
|
2395
|
+
disableHoverableContent: disableHoverableContentProp,
|
|
2396
|
+
delayDuration: delayDurationProp
|
|
2397
|
+
} = props;
|
|
2398
|
+
const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);
|
|
2399
|
+
const popperScope = usePopperScope(__scopeTooltip);
|
|
2400
|
+
const [trigger, setTrigger] = React6.useState(null);
|
|
2401
|
+
const contentId = useId();
|
|
2402
|
+
const openTimerRef = React6.useRef(0);
|
|
2403
|
+
const disableHoverableContent = disableHoverableContentProp ?? providerContext.disableHoverableContent;
|
|
2404
|
+
const delayDuration = delayDurationProp ?? providerContext.delayDuration;
|
|
2405
|
+
const wasOpenDelayedRef = React6.useRef(false);
|
|
2406
|
+
const [open, setOpen] = useControllableState({
|
|
2407
|
+
prop: openProp,
|
|
2408
|
+
defaultProp: defaultOpen ?? false,
|
|
2409
|
+
onChange: (open2) => {
|
|
2410
|
+
if (open2) {
|
|
2411
|
+
providerContext.onOpen();
|
|
2412
|
+
document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN));
|
|
2413
|
+
} else {
|
|
2414
|
+
providerContext.onClose();
|
|
2415
|
+
}
|
|
2416
|
+
onOpenChange == null ? void 0 : onOpenChange(open2);
|
|
2417
|
+
},
|
|
2418
|
+
caller: TOOLTIP_NAME
|
|
2419
|
+
});
|
|
2420
|
+
const stateAttribute = React6.useMemo(() => {
|
|
2421
|
+
return open ? wasOpenDelayedRef.current ? "delayed-open" : "instant-open" : "closed";
|
|
2422
|
+
}, [open]);
|
|
2423
|
+
const handleOpen = React6.useCallback(() => {
|
|
2424
|
+
window.clearTimeout(openTimerRef.current);
|
|
2425
|
+
openTimerRef.current = 0;
|
|
2426
|
+
wasOpenDelayedRef.current = false;
|
|
2427
|
+
setOpen(true);
|
|
2428
|
+
}, [setOpen]);
|
|
2429
|
+
const handleClose = React6.useCallback(() => {
|
|
2430
|
+
window.clearTimeout(openTimerRef.current);
|
|
2431
|
+
openTimerRef.current = 0;
|
|
2432
|
+
setOpen(false);
|
|
2433
|
+
}, [setOpen]);
|
|
2434
|
+
const handleDelayedOpen = React6.useCallback(() => {
|
|
2435
|
+
window.clearTimeout(openTimerRef.current);
|
|
2436
|
+
openTimerRef.current = window.setTimeout(() => {
|
|
2437
|
+
wasOpenDelayedRef.current = true;
|
|
2438
|
+
setOpen(true);
|
|
2439
|
+
openTimerRef.current = 0;
|
|
2440
|
+
}, delayDuration);
|
|
2441
|
+
}, [delayDuration, setOpen]);
|
|
2442
|
+
React6.useEffect(() => {
|
|
2443
|
+
return () => {
|
|
2444
|
+
if (openTimerRef.current) {
|
|
2445
|
+
window.clearTimeout(openTimerRef.current);
|
|
2446
|
+
openTimerRef.current = 0;
|
|
2447
|
+
}
|
|
2448
|
+
};
|
|
2449
|
+
}, []);
|
|
2450
|
+
return (0, import_jsx_runtime4.jsx)(Root2, { ...popperScope, children: (0, import_jsx_runtime4.jsx)(
|
|
2451
|
+
TooltipContextProvider,
|
|
2452
|
+
{
|
|
2453
|
+
scope: __scopeTooltip,
|
|
2454
|
+
contentId,
|
|
2455
|
+
open,
|
|
2456
|
+
stateAttribute,
|
|
2457
|
+
trigger,
|
|
2458
|
+
onTriggerChange: setTrigger,
|
|
2459
|
+
onTriggerEnter: React6.useCallback(() => {
|
|
2460
|
+
if (providerContext.isOpenDelayedRef.current) handleDelayedOpen();
|
|
2461
|
+
else handleOpen();
|
|
2462
|
+
}, [providerContext.isOpenDelayedRef, handleDelayedOpen, handleOpen]),
|
|
2463
|
+
onTriggerLeave: React6.useCallback(() => {
|
|
2464
|
+
if (disableHoverableContent) {
|
|
2465
|
+
handleClose();
|
|
2466
|
+
} else {
|
|
2467
|
+
window.clearTimeout(openTimerRef.current);
|
|
2468
|
+
openTimerRef.current = 0;
|
|
2469
|
+
}
|
|
2470
|
+
}, [handleClose, disableHoverableContent]),
|
|
2471
|
+
onOpen: handleOpen,
|
|
2472
|
+
onClose: handleClose,
|
|
2473
|
+
disableHoverableContent,
|
|
2474
|
+
children
|
|
2475
|
+
}
|
|
2476
|
+
) });
|
|
2477
|
+
};
|
|
2478
|
+
Tooltip.displayName = TOOLTIP_NAME;
|
|
2479
|
+
var TRIGGER_NAME = "TooltipTrigger";
|
|
2480
|
+
var TooltipTrigger = React6.forwardRef(
|
|
2481
|
+
(props, forwardedRef) => {
|
|
2482
|
+
const { __scopeTooltip, ...triggerProps } = props;
|
|
2483
|
+
const context = useTooltipContext(TRIGGER_NAME, __scopeTooltip);
|
|
2484
|
+
const providerContext = useTooltipProviderContext(TRIGGER_NAME, __scopeTooltip);
|
|
2485
|
+
const popperScope = usePopperScope(__scopeTooltip);
|
|
2486
|
+
const ref = React6.useRef(null);
|
|
2487
|
+
const composedRefs = useComposedRefs(forwardedRef, ref, context.onTriggerChange);
|
|
2488
|
+
const isPointerDownRef = React6.useRef(false);
|
|
2489
|
+
const hasPointerMoveOpenedRef = React6.useRef(false);
|
|
2490
|
+
const handlePointerUp = React6.useCallback(() => isPointerDownRef.current = false, []);
|
|
2491
|
+
React6.useEffect(() => {
|
|
2492
|
+
return () => document.removeEventListener("pointerup", handlePointerUp);
|
|
2493
|
+
}, [handlePointerUp]);
|
|
2494
|
+
return (0, import_jsx_runtime4.jsx)(Anchor, { asChild: true, ...popperScope, children: (0, import_jsx_runtime4.jsx)(
|
|
2495
|
+
Primitive.button,
|
|
2496
|
+
{
|
|
2497
|
+
"aria-describedby": context.open ? context.contentId : void 0,
|
|
2498
|
+
"data-state": context.stateAttribute,
|
|
2499
|
+
...triggerProps,
|
|
2500
|
+
ref: composedRefs,
|
|
2501
|
+
onPointerMove: composeEventHandlers(props.onPointerMove, (event) => {
|
|
2502
|
+
if (event.pointerType === "touch") return;
|
|
2503
|
+
if (!hasPointerMoveOpenedRef.current && !providerContext.isPointerInTransitRef.current) {
|
|
2504
|
+
context.onTriggerEnter();
|
|
2505
|
+
hasPointerMoveOpenedRef.current = true;
|
|
2506
|
+
}
|
|
2507
|
+
}),
|
|
2508
|
+
onPointerLeave: composeEventHandlers(props.onPointerLeave, () => {
|
|
2509
|
+
context.onTriggerLeave();
|
|
2510
|
+
hasPointerMoveOpenedRef.current = false;
|
|
2511
|
+
}),
|
|
2512
|
+
onPointerDown: composeEventHandlers(props.onPointerDown, () => {
|
|
2513
|
+
if (context.open) {
|
|
2514
|
+
context.onClose();
|
|
2515
|
+
}
|
|
2516
|
+
isPointerDownRef.current = true;
|
|
2517
|
+
document.addEventListener("pointerup", handlePointerUp, { once: true });
|
|
2518
|
+
}),
|
|
2519
|
+
onFocus: composeEventHandlers(props.onFocus, () => {
|
|
2520
|
+
if (!isPointerDownRef.current) context.onOpen();
|
|
2521
|
+
}),
|
|
2522
|
+
onBlur: composeEventHandlers(props.onBlur, context.onClose),
|
|
2523
|
+
onClick: composeEventHandlers(props.onClick, context.onClose)
|
|
2524
|
+
}
|
|
2525
|
+
) });
|
|
2526
|
+
}
|
|
2527
|
+
);
|
|
2528
|
+
TooltipTrigger.displayName = TRIGGER_NAME;
|
|
2529
|
+
var PORTAL_NAME = "TooltipPortal";
|
|
2530
|
+
var [PortalProvider, usePortalContext] = createTooltipContext(PORTAL_NAME, {
|
|
2531
|
+
forceMount: void 0
|
|
2532
|
+
});
|
|
2533
|
+
var TooltipPortal = (props) => {
|
|
2534
|
+
const { __scopeTooltip, forceMount, children, container } = props;
|
|
2535
|
+
const context = useTooltipContext(PORTAL_NAME, __scopeTooltip);
|
|
2536
|
+
return (0, import_jsx_runtime4.jsx)(PortalProvider, { scope: __scopeTooltip, forceMount, children: (0, import_jsx_runtime4.jsx)(Presence, { present: forceMount || context.open, children: (0, import_jsx_runtime4.jsx)(Portal, { asChild: true, container, children }) }) });
|
|
2537
|
+
};
|
|
2538
|
+
TooltipPortal.displayName = PORTAL_NAME;
|
|
2539
|
+
var CONTENT_NAME2 = "TooltipContent";
|
|
2540
|
+
var TooltipContent = React6.forwardRef(
|
|
2541
|
+
(props, forwardedRef) => {
|
|
2542
|
+
const portalContext = usePortalContext(CONTENT_NAME2, props.__scopeTooltip);
|
|
2543
|
+
const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
|
|
2544
|
+
const context = useTooltipContext(CONTENT_NAME2, props.__scopeTooltip);
|
|
2545
|
+
return (0, import_jsx_runtime4.jsx)(Presence, { present: forceMount || context.open, children: context.disableHoverableContent ? (0, import_jsx_runtime4.jsx)(TooltipContentImpl, { side, ...contentProps, ref: forwardedRef }) : (0, import_jsx_runtime4.jsx)(TooltipContentHoverable, { side, ...contentProps, ref: forwardedRef }) });
|
|
2546
|
+
}
|
|
2547
|
+
);
|
|
2548
|
+
var TooltipContentHoverable = React6.forwardRef((props, forwardedRef) => {
|
|
2549
|
+
const context = useTooltipContext(CONTENT_NAME2, props.__scopeTooltip);
|
|
2550
|
+
const providerContext = useTooltipProviderContext(CONTENT_NAME2, props.__scopeTooltip);
|
|
2551
|
+
const ref = React6.useRef(null);
|
|
2552
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
2553
|
+
const [pointerGraceArea, setPointerGraceArea] = React6.useState(null);
|
|
2554
|
+
const { trigger, onClose } = context;
|
|
2555
|
+
const content = ref.current;
|
|
2556
|
+
const { onPointerInTransitChange } = providerContext;
|
|
2557
|
+
const handleRemoveGraceArea = React6.useCallback(() => {
|
|
2558
|
+
setPointerGraceArea(null);
|
|
2559
|
+
onPointerInTransitChange(false);
|
|
2560
|
+
}, [onPointerInTransitChange]);
|
|
2561
|
+
const handleCreateGraceArea = React6.useCallback(
|
|
2562
|
+
(event, hoverTarget) => {
|
|
2563
|
+
const currentTarget = event.currentTarget;
|
|
2564
|
+
const exitPoint = { x: event.clientX, y: event.clientY };
|
|
2565
|
+
const exitSide = getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());
|
|
2566
|
+
const paddedExitPoints = getPaddedExitPoints(exitPoint, exitSide);
|
|
2567
|
+
const hoverTargetPoints = getPointsFromRect(hoverTarget.getBoundingClientRect());
|
|
2568
|
+
const graceArea = getHull([...paddedExitPoints, ...hoverTargetPoints]);
|
|
2569
|
+
setPointerGraceArea(graceArea);
|
|
2570
|
+
onPointerInTransitChange(true);
|
|
2571
|
+
},
|
|
2572
|
+
[onPointerInTransitChange]
|
|
2573
|
+
);
|
|
2574
|
+
React6.useEffect(() => {
|
|
2575
|
+
return () => handleRemoveGraceArea();
|
|
2576
|
+
}, [handleRemoveGraceArea]);
|
|
2577
|
+
React6.useEffect(() => {
|
|
2578
|
+
if (trigger && content) {
|
|
2579
|
+
const handleTriggerLeave = (event) => handleCreateGraceArea(event, content);
|
|
2580
|
+
const handleContentLeave = (event) => handleCreateGraceArea(event, trigger);
|
|
2581
|
+
trigger.addEventListener("pointerleave", handleTriggerLeave);
|
|
2582
|
+
content.addEventListener("pointerleave", handleContentLeave);
|
|
2583
|
+
return () => {
|
|
2584
|
+
trigger.removeEventListener("pointerleave", handleTriggerLeave);
|
|
2585
|
+
content.removeEventListener("pointerleave", handleContentLeave);
|
|
2586
|
+
};
|
|
2587
|
+
}
|
|
2588
|
+
}, [trigger, content, handleCreateGraceArea, handleRemoveGraceArea]);
|
|
2589
|
+
React6.useEffect(() => {
|
|
2590
|
+
if (pointerGraceArea) {
|
|
2591
|
+
const handleTrackPointerGrace = (event) => {
|
|
2592
|
+
const target = event.target;
|
|
2593
|
+
const pointerPosition = { x: event.clientX, y: event.clientY };
|
|
2594
|
+
const hasEnteredTarget = (trigger == null ? void 0 : trigger.contains(target)) || (content == null ? void 0 : content.contains(target));
|
|
2595
|
+
const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, pointerGraceArea);
|
|
2596
|
+
if (hasEnteredTarget) {
|
|
2597
|
+
handleRemoveGraceArea();
|
|
2598
|
+
} else if (isPointerOutsideGraceArea) {
|
|
2599
|
+
handleRemoveGraceArea();
|
|
2600
|
+
onClose();
|
|
2601
|
+
}
|
|
2602
|
+
};
|
|
2603
|
+
document.addEventListener("pointermove", handleTrackPointerGrace);
|
|
2604
|
+
return () => document.removeEventListener("pointermove", handleTrackPointerGrace);
|
|
2605
|
+
}
|
|
2606
|
+
}, [trigger, content, pointerGraceArea, onClose, handleRemoveGraceArea]);
|
|
2607
|
+
return (0, import_jsx_runtime4.jsx)(TooltipContentImpl, { ...props, ref: composedRefs });
|
|
2608
|
+
});
|
|
2609
|
+
var [VisuallyHiddenContentContextProvider, useVisuallyHiddenContentContext] = createTooltipContext(TOOLTIP_NAME, { isInside: false });
|
|
2610
|
+
var Slottable = createSlottable("TooltipContent");
|
|
2611
|
+
var TooltipContentImpl = React6.forwardRef(
|
|
2612
|
+
(props, forwardedRef) => {
|
|
2613
|
+
const {
|
|
2614
|
+
__scopeTooltip,
|
|
2615
|
+
children,
|
|
2616
|
+
"aria-label": ariaLabel,
|
|
2617
|
+
onEscapeKeyDown,
|
|
2618
|
+
onPointerDownOutside,
|
|
2619
|
+
...contentProps
|
|
2620
|
+
} = props;
|
|
2621
|
+
const context = useTooltipContext(CONTENT_NAME2, __scopeTooltip);
|
|
2622
|
+
const popperScope = usePopperScope(__scopeTooltip);
|
|
2623
|
+
const { onClose } = context;
|
|
2624
|
+
React6.useEffect(() => {
|
|
2625
|
+
document.addEventListener(TOOLTIP_OPEN, onClose);
|
|
2626
|
+
return () => document.removeEventListener(TOOLTIP_OPEN, onClose);
|
|
2627
|
+
}, [onClose]);
|
|
2628
|
+
React6.useEffect(() => {
|
|
2629
|
+
if (context.trigger) {
|
|
2630
|
+
const handleScroll = (event) => {
|
|
2631
|
+
const target = event.target;
|
|
2632
|
+
if (target == null ? void 0 : target.contains(context.trigger)) onClose();
|
|
2633
|
+
};
|
|
2634
|
+
window.addEventListener("scroll", handleScroll, { capture: true });
|
|
2635
|
+
return () => window.removeEventListener("scroll", handleScroll, { capture: true });
|
|
2636
|
+
}
|
|
2637
|
+
}, [context.trigger, onClose]);
|
|
2638
|
+
return (0, import_jsx_runtime4.jsx)(
|
|
2639
|
+
DismissableLayer,
|
|
2640
|
+
{
|
|
2641
|
+
asChild: true,
|
|
2642
|
+
disableOutsidePointerEvents: false,
|
|
2643
|
+
onEscapeKeyDown,
|
|
2644
|
+
onPointerDownOutside,
|
|
2645
|
+
onFocusOutside: (event) => event.preventDefault(),
|
|
2646
|
+
onDismiss: onClose,
|
|
2647
|
+
children: (0, import_jsx_runtime4.jsxs)(
|
|
2648
|
+
Content,
|
|
2649
|
+
{
|
|
2650
|
+
"data-state": context.stateAttribute,
|
|
2651
|
+
...popperScope,
|
|
2652
|
+
...contentProps,
|
|
2653
|
+
ref: forwardedRef,
|
|
2654
|
+
style: {
|
|
2655
|
+
...contentProps.style,
|
|
2656
|
+
// re-namespace exposed content custom properties
|
|
2657
|
+
...{
|
|
2658
|
+
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
2659
|
+
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
2660
|
+
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
2661
|
+
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2662
|
+
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2663
|
+
}
|
|
2664
|
+
},
|
|
2665
|
+
children: [
|
|
2666
|
+
(0, import_jsx_runtime4.jsx)(Slottable, { children }),
|
|
2667
|
+
(0, import_jsx_runtime4.jsx)(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: (0, import_jsx_runtime4.jsx)(Root3, { id: context.contentId, role: "tooltip", children: ariaLabel || children }) })
|
|
2668
|
+
]
|
|
2669
|
+
}
|
|
2670
|
+
)
|
|
2671
|
+
}
|
|
2672
|
+
);
|
|
2673
|
+
}
|
|
2674
|
+
);
|
|
2675
|
+
TooltipContent.displayName = CONTENT_NAME2;
|
|
2676
|
+
var ARROW_NAME2 = "TooltipArrow";
|
|
2677
|
+
var TooltipArrow = React6.forwardRef(
|
|
2678
|
+
(props, forwardedRef) => {
|
|
2679
|
+
const { __scopeTooltip, ...arrowProps } = props;
|
|
2680
|
+
const popperScope = usePopperScope(__scopeTooltip);
|
|
2681
|
+
const visuallyHiddenContentContext = useVisuallyHiddenContentContext(
|
|
2682
|
+
ARROW_NAME2,
|
|
2683
|
+
__scopeTooltip
|
|
2684
|
+
);
|
|
2685
|
+
return visuallyHiddenContentContext.isInside ? null : (0, import_jsx_runtime4.jsx)(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
2686
|
+
}
|
|
2687
|
+
);
|
|
2688
|
+
TooltipArrow.displayName = ARROW_NAME2;
|
|
2689
|
+
function getExitSideFromRect(point, rect) {
|
|
2690
|
+
const top = Math.abs(rect.top - point.y);
|
|
2691
|
+
const bottom = Math.abs(rect.bottom - point.y);
|
|
2692
|
+
const right = Math.abs(rect.right - point.x);
|
|
2693
|
+
const left = Math.abs(rect.left - point.x);
|
|
2694
|
+
switch (Math.min(top, bottom, right, left)) {
|
|
2695
|
+
case left:
|
|
2696
|
+
return "left";
|
|
2697
|
+
case right:
|
|
2698
|
+
return "right";
|
|
2699
|
+
case top:
|
|
2700
|
+
return "top";
|
|
2701
|
+
case bottom:
|
|
2702
|
+
return "bottom";
|
|
2703
|
+
default:
|
|
2704
|
+
throw new Error("unreachable");
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
|
|
2708
|
+
const paddedExitPoints = [];
|
|
2709
|
+
switch (exitSide) {
|
|
2710
|
+
case "top":
|
|
2711
|
+
paddedExitPoints.push(
|
|
2712
|
+
{ x: exitPoint.x - padding, y: exitPoint.y + padding },
|
|
2713
|
+
{ x: exitPoint.x + padding, y: exitPoint.y + padding }
|
|
2714
|
+
);
|
|
2715
|
+
break;
|
|
2716
|
+
case "bottom":
|
|
2717
|
+
paddedExitPoints.push(
|
|
2718
|
+
{ x: exitPoint.x - padding, y: exitPoint.y - padding },
|
|
2719
|
+
{ x: exitPoint.x + padding, y: exitPoint.y - padding }
|
|
2720
|
+
);
|
|
2721
|
+
break;
|
|
2722
|
+
case "left":
|
|
2723
|
+
paddedExitPoints.push(
|
|
2724
|
+
{ x: exitPoint.x + padding, y: exitPoint.y - padding },
|
|
2725
|
+
{ x: exitPoint.x + padding, y: exitPoint.y + padding }
|
|
2726
|
+
);
|
|
2727
|
+
break;
|
|
2728
|
+
case "right":
|
|
2729
|
+
paddedExitPoints.push(
|
|
2730
|
+
{ x: exitPoint.x - padding, y: exitPoint.y - padding },
|
|
2731
|
+
{ x: exitPoint.x - padding, y: exitPoint.y + padding }
|
|
2732
|
+
);
|
|
2733
|
+
break;
|
|
2734
|
+
}
|
|
2735
|
+
return paddedExitPoints;
|
|
2736
|
+
}
|
|
2737
|
+
function getPointsFromRect(rect) {
|
|
2738
|
+
const { top, right, bottom, left } = rect;
|
|
2739
|
+
return [
|
|
2740
|
+
{ x: left, y: top },
|
|
2741
|
+
{ x: right, y: top },
|
|
2742
|
+
{ x: right, y: bottom },
|
|
2743
|
+
{ x: left, y: bottom }
|
|
2744
|
+
];
|
|
2745
|
+
}
|
|
2746
|
+
function isPointInPolygon(point, polygon) {
|
|
2747
|
+
const { x, y } = point;
|
|
2748
|
+
let inside = false;
|
|
2749
|
+
for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
|
|
2750
|
+
const ii = polygon[i];
|
|
2751
|
+
const jj = polygon[j];
|
|
2752
|
+
const xi = ii.x;
|
|
2753
|
+
const yi = ii.y;
|
|
2754
|
+
const xj = jj.x;
|
|
2755
|
+
const yj = jj.y;
|
|
2756
|
+
const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;
|
|
2757
|
+
if (intersect) inside = !inside;
|
|
2758
|
+
}
|
|
2759
|
+
return inside;
|
|
2760
|
+
}
|
|
2761
|
+
function getHull(points) {
|
|
2762
|
+
const newPoints = points.slice();
|
|
2763
|
+
newPoints.sort((a, b) => {
|
|
2764
|
+
if (a.x < b.x) return -1;
|
|
2765
|
+
else if (a.x > b.x) return 1;
|
|
2766
|
+
else if (a.y < b.y) return -1;
|
|
2767
|
+
else if (a.y > b.y) return 1;
|
|
2768
|
+
else return 0;
|
|
2769
|
+
});
|
|
2770
|
+
return getHullPresorted(newPoints);
|
|
2771
|
+
}
|
|
2772
|
+
function getHullPresorted(points) {
|
|
2773
|
+
if (points.length <= 1) return points.slice();
|
|
2774
|
+
const upperHull = [];
|
|
2775
|
+
for (let i = 0; i < points.length; i++) {
|
|
2776
|
+
const p = points[i];
|
|
2777
|
+
while (upperHull.length >= 2) {
|
|
2778
|
+
const q = upperHull[upperHull.length - 1];
|
|
2779
|
+
const r = upperHull[upperHull.length - 2];
|
|
2780
|
+
if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) upperHull.pop();
|
|
2781
|
+
else break;
|
|
2782
|
+
}
|
|
2783
|
+
upperHull.push(p);
|
|
2784
|
+
}
|
|
2785
|
+
upperHull.pop();
|
|
2786
|
+
const lowerHull = [];
|
|
2787
|
+
for (let i = points.length - 1; i >= 0; i--) {
|
|
2788
|
+
const p = points[i];
|
|
2789
|
+
while (lowerHull.length >= 2) {
|
|
2790
|
+
const q = lowerHull[lowerHull.length - 1];
|
|
2791
|
+
const r = lowerHull[lowerHull.length - 2];
|
|
2792
|
+
if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) lowerHull.pop();
|
|
2793
|
+
else break;
|
|
2794
|
+
}
|
|
2795
|
+
lowerHull.push(p);
|
|
2796
|
+
}
|
|
2797
|
+
lowerHull.pop();
|
|
2798
|
+
if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) {
|
|
2799
|
+
return upperHull;
|
|
2800
|
+
} else {
|
|
2801
|
+
return upperHull.concat(lowerHull);
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
var Provider = TooltipProvider;
|
|
2805
|
+
var Root32 = Tooltip;
|
|
2806
|
+
var Trigger = TooltipTrigger;
|
|
2807
|
+
var Portal2 = TooltipPortal;
|
|
2808
|
+
var Content2 = TooltipContent;
|
|
2809
|
+
var Arrow22 = TooltipArrow;
|
|
2810
|
+
export {
|
|
2811
|
+
Arrow22 as Arrow,
|
|
2812
|
+
Content2 as Content,
|
|
2813
|
+
Portal2 as Portal,
|
|
2814
|
+
Provider,
|
|
2815
|
+
Root32 as Root,
|
|
2816
|
+
Tooltip,
|
|
2817
|
+
TooltipArrow,
|
|
2818
|
+
TooltipContent,
|
|
2819
|
+
TooltipPortal,
|
|
2820
|
+
TooltipProvider,
|
|
2821
|
+
TooltipTrigger,
|
|
2822
|
+
Trigger,
|
|
2823
|
+
createTooltipScope
|
|
2824
|
+
};
|
|
2825
|
+
//# sourceMappingURL=@radix-ui_react-tooltip.js.map
|