@getflip/swirl-components-react 0.0.0-new-shell-20231128130728
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/README.md +4 -0
- package/dist/a11y-dialog.esm-d7a94c8c.bd6ae411.js +99 -0
- package/dist/bodyScrollLock.esm-ce6356d8.2c600fb9.js +93 -0
- package/dist/file-manager.entry.38457ac1.js +57 -0
- package/dist/floating-ui.dom.esm-ac7cc24e.79b318e4.js +780 -0
- package/dist/focus-trap.esm-37cd2d2b.724cca66.js +452 -0
- package/dist/index-d280dafb.186cdb0e.js +71 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.e5965a8a.js +2915 -0
- package/dist/maska-4866b970.5336f9cb.js +5420 -0
- package/dist/sortable.esm-8c3d5856.57c4f048.js +1229 -0
- package/dist/stencil-generated/index.d.ts +306 -0
- package/dist/stencil-generated/react-component-lib/createComponent.d.ts +10 -0
- package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/dist/stencil-generated/react-component-lib/index.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/interfaces.d.ts +29 -0
- package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +12 -0
- package/dist/stencil-generated/react-component-lib/utils/case.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/utils/index.d.ts +10 -0
- package/dist/swirl-accordion-item.entry.741527ea.js +38 -0
- package/dist/swirl-accordion.entry.783de61a.js +36 -0
- package/dist/swirl-action-list-section.entry.7884f6d3.js +15 -0
- package/dist/swirl-action-list_3.entry.336ba911.js +83 -0
- package/dist/swirl-app-bar.entry.1a137585.js +45 -0
- package/dist/swirl-app-icon.entry.0f5a2f97.js +23 -0
- package/dist/swirl-app-layout_6.entry.1521cc72.js +327 -0
- package/dist/swirl-autocomplete.entry.ffefda4d.js +115 -0
- package/dist/swirl-avatar-group.entry.99938460.js +28 -0
- package/dist/swirl-avatar.entry.63c9bc2f.js +48 -0
- package/dist/swirl-badge.entry.f831e3ba.js +19 -0
- package/dist/swirl-banner.entry.62b1b388.js +47 -0
- package/dist/swirl-box.entry.cef3da26.js +42 -0
- package/dist/swirl-button-group.entry.d1365437.js +19 -0
- package/dist/swirl-button.entry.6693fe19.js +61 -0
- package/dist/swirl-card.entry.139358ac.js +43 -0
- package/dist/swirl-carousel-slide.entry.e5aa75c8.js +19 -0
- package/dist/swirl-carousel.entry.022eb63c.js +69 -0
- package/dist/swirl-checkbox.entry.ac8e5f0c.js +30 -0
- package/dist/swirl-chip.entry.58d154bc.js +41 -0
- package/dist/swirl-color-input.entry.03d4a7b0.js +269 -0
- package/dist/swirl-columns.entry.af9bb8c8.js +18 -0
- package/dist/swirl-components-react.js +310 -0
- package/dist/swirl-components-react.umd.cjs +383 -0
- package/dist/swirl-console-layout.entry.da154330.js +68 -0
- package/dist/swirl-date-input.entry.be6f26aa.js +80 -0
- package/dist/swirl-date-picker_2.entry.77533bb6.js +37 -0
- package/dist/swirl-description-list-item.entry.474237ca.js +23 -0
- package/dist/swirl-description-list.entry.87bfbd2c.js +15 -0
- package/dist/swirl-dialog.entry.3406a45d.js +44 -0
- package/dist/swirl-emoji-clap.entry.dc03619c.js +17 -0
- package/dist/swirl-emoji-happy.entry.4f231b56.js +17 -0
- package/dist/swirl-emoji-idea.entry.4ec13295.js +17 -0
- package/dist/swirl-emoji-love.entry.c391767e.js +17 -0
- package/dist/swirl-emoji-sad.entry.59771260.js +17 -0
- package/dist/swirl-emoji-thumbs-up.entry.92b3728b.js +17 -0
- package/dist/swirl-emoji.entry.dcfa7e9a.js +16 -0
- package/dist/swirl-file-uploader.entry.611709a7.js +31 -0
- package/dist/swirl-file-viewer_7.entry.4256e623.js +16427 -0
- package/dist/swirl-form-control.entry.a98574c9.js +86 -0
- package/dist/swirl-form-group.entry.c0c3fc26.js +17 -0
- package/dist/swirl-heading.entry.479591c1.js +26 -0
- package/dist/swirl-icon-add-photo.entry.b56fbf0a.js +17 -0
- package/dist/swirl-icon-add-reaction.entry.bb763e26.js +17 -0
- package/dist/swirl-icon-add_6.entry.e88710ef.js +72 -0
- package/dist/swirl-icon-admin-panel-settings.entry.38529404.js +17 -0
- package/dist/swirl-icon-ai.entry.3947d9fd.js +17 -0
- package/dist/swirl-icon-apps.entry.43da29af.js +17 -0
- package/dist/swirl-icon-arrow-back_3.entry.0ec779cb.js +39 -0
- package/dist/swirl-icon-arrow-downward_2.entry.5db48d10.js +28 -0
- package/dist/swirl-icon-arrow-left_4.entry.a745156f.js +52 -0
- package/dist/swirl-icon-arrow-right-small.entry.f71957dd.js +17 -0
- package/dist/swirl-icon-attachment.entry.7ce2a377.js +17 -0
- package/dist/swirl-icon-bar-chart.entry.b6732a1c.js +17 -0
- package/dist/swirl-icon-block.entry.58cf215a.js +17 -0
- package/dist/swirl-icon-bookmark.entry.54da117b.js +17 -0
- package/dist/swirl-icon-cancel_4.entry.e736ca50.js +50 -0
- package/dist/swirl-icon-chat-bubble.entry.11e43296.js +17 -0
- package/dist/swirl-icon-chats-filled.entry.4ab449f2.js +17 -0
- package/dist/swirl-icon-chats-outlined.entry.a566fe1f.js +17 -0
- package/dist/swirl-icon-check-circle_2.entry.0916adac.js +28 -0
- package/dist/swirl-icon-check-small_3.entry.b0b595f2.js +72 -0
- package/dist/swirl-icon-check-strong.entry.fc27f45d.js +17 -0
- package/dist/swirl-icon-check.entry.1b4002c9.js +17 -0
- package/dist/swirl-icon-chevron-left.entry.1fc94453.js +17 -0
- package/dist/swirl-icon-chevron-right.entry.24f12c52.js +17 -0
- package/dist/swirl-icon-close-small.entry.c1b29419.js +17 -0
- package/dist/swirl-icon-close.entry.75c72236.js +17 -0
- package/dist/swirl-icon-cloud-upload.entry.ab76558e.js +17 -0
- package/dist/swirl-icon-column.entry.d03b751b.js +17 -0
- package/dist/swirl-icon-comment.entry.32016143.js +17 -0
- package/dist/swirl-icon-copy.entry.f61fee12.js +17 -0
- package/dist/swirl-icon-date-range.entry.361b08f0.js +17 -0
- package/dist/swirl-icon-delete.entry.30c5c1ee.js +17 -0
- package/dist/swirl-icon-description.entry.6abae0e8.js +17 -0
- package/dist/swirl-icon-discover.entry.ba59a44e.js +17 -0
- package/dist/swirl-icon-double-arrow-left.entry.a5fa2721.js +17 -0
- package/dist/swirl-icon-double-arrow-right.entry.c88ba872.js +17 -0
- package/dist/swirl-icon-download.entry.42721c06.js +17 -0
- package/dist/swirl-icon-edit.entry.27e2a29a.js +17 -0
- package/dist/swirl-icon-emoji-mood.entry.de2168fe.js +17 -0
- package/dist/swirl-icon-emoji-satisfied.entry.32e0db6e.js +17 -0
- package/dist/swirl-icon-error_3.entry.23cd435a.js +56 -0
- package/dist/swirl-icon-expand-more.entry.b3b48b42.js +17 -0
- package/dist/swirl-icon-filter.entry.03d15319.js +17 -0
- package/dist/swirl-icon-folder.entry.c6401970.js +17 -0
- package/dist/swirl-icon-format-h-one.entry.8cadd550.js +17 -0
- package/dist/swirl-icon-gif.entry.d7d560b9.js +17 -0
- package/dist/swirl-icon-group-add.entry.42f3927e.js +17 -0
- package/dist/swirl-icon-group-assign.entry.cdfc2a9a.js +17 -0
- package/dist/swirl-icon-groups-custom.entry.94cd54d4.js +17 -0
- package/dist/swirl-icon-groups-filled.entry.d2b299a0.js +17 -0
- package/dist/swirl-icon-groups-outlined.entry.68110f5f.js +17 -0
- package/dist/swirl-icon-groups.entry.7b52773f.js +17 -0
- package/dist/swirl-icon-help.entry.d117d224.js +17 -0
- package/dist/swirl-icon-highlight.entry.45458438.js +17 -0
- package/dist/swirl-icon-home.entry.ffea2643.js +17 -0
- package/dist/swirl-icon-image.entry.ebb22d57.js +17 -0
- package/dist/swirl-icon-improve-text.entry.87a5e492.js +17 -0
- package/dist/swirl-icon-info.entry.52c62ada.js +17 -0
- package/dist/swirl-icon-insert-below.entry.de696181.js +17 -0
- package/dist/swirl-icon-insert-on-top.entry.0cf765d3.js +17 -0
- package/dist/swirl-icon-inventory.entry.e7195625.js +17 -0
- package/dist/swirl-icon-like.entry.2e14ba9b.js +17 -0
- package/dist/swirl-icon-link.entry.bb5085a2.js +17 -0
- package/dist/swirl-icon-lock-person.entry.b8433731.js +17 -0
- package/dist/swirl-icon-lock.entry.d7281a35.js +17 -0
- package/dist/swirl-icon-logout.entry.a69beb85.js +17 -0
- package/dist/swirl-icon-long-text.entry.086fe906.js +17 -0
- package/dist/swirl-icon-mail.entry.90a3ccc4.js +17 -0
- package/dist/swirl-icon-manage-accounts.entry.dee2113c.js +17 -0
- package/dist/swirl-icon-mark-chat-read.entry.9498efd3.js +17 -0
- package/dist/swirl-icon-mark-chat-unread.entry.4f09c26a.js +17 -0
- package/dist/swirl-icon-mention.entry.a9f67c22.js +17 -0
- package/dist/swirl-icon-menu-filled.entry.e59223c8.js +17 -0
- package/dist/swirl-icon-menu-outlined.entry.de79a0b2.js +17 -0
- package/dist/swirl-icon-menu.entry.fc7bf22d.js +17 -0
- package/dist/swirl-icon-message.entry.b820c5a1.js +17 -0
- package/dist/swirl-icon-mic.entry.5822c59c.js +17 -0
- package/dist/swirl-icon-more-horizontal.entry.7d3a8710.js +17 -0
- package/dist/swirl-icon-news-filled.entry.4a5bf3ab.js +17 -0
- package/dist/swirl-icon-news-outlined.entry.7ac5345b.js +17 -0
- package/dist/swirl-icon-notifications-active.entry.c5e7bf02.js +17 -0
- package/dist/swirl-icon-notifications-off.entry.39f48267.js +17 -0
- package/dist/swirl-icon-notifications.entry.d1db0a12.js +17 -0
- package/dist/swirl-icon-open-in-full.entry.88f52ffe.js +17 -0
- package/dist/swirl-icon-open-in-new.entry.3c1c0e70.js +17 -0
- package/dist/swirl-icon-pause-circle.entry.cd2e5f9e.js +17 -0
- package/dist/swirl-icon-pause.entry.687dd24e.js +17 -0
- package/dist/swirl-icon-people-alt.entry.b76529d4.js +17 -0
- package/dist/swirl-icon-person-off.entry.2775268a.js +17 -0
- package/dist/swirl-icon-person.entry.57275ca5.js +17 -0
- package/dist/swirl-icon-phone.entry.c5f47f81.js +17 -0
- package/dist/swirl-icon-play-arrow.entry.26280a6b.js +17 -0
- package/dist/swirl-icon-poll.entry.24788fe9.js +17 -0
- package/dist/swirl-icon-print.entry.cf8aa941.js +17 -0
- package/dist/swirl-icon-recieved.entry.16fc1aa0.js +17 -0
- package/dist/swirl-icon-reply.entry.09bffb40.js +17 -0
- package/dist/swirl-icon-report.entry.803f0403.js +17 -0
- package/dist/swirl-icon-roadmap.entry.3ffab30d.js +17 -0
- package/dist/swirl-icon-search-strong.entry.5d2b23cb.js +17 -0
- package/dist/swirl-icon-search.entry.d68b61f9.js +17 -0
- package/dist/swirl-icon-secure.entry.8d4d2b9c.js +17 -0
- package/dist/swirl-icon-send.entry.2b82872e.js +17 -0
- package/dist/swirl-icon-settings.entry.1e929864.js +17 -0
- package/dist/swirl-icon-short-text.entry.73801734.js +17 -0
- package/dist/swirl-icon-simplify.entry.413061f3.js +17 -0
- package/dist/swirl-icon-spellcheck.entry.a946c908.js +17 -0
- package/dist/swirl-icon-stop.entry.0c8b21b3.js +17 -0
- package/dist/swirl-icon-sync.entry.6f002cab.js +17 -0
- package/dist/swirl-icon-tasks-filled.entry.905208ce.js +17 -0
- package/dist/swirl-icon-tasks-outlined.entry.69893e5a.js +17 -0
- package/dist/swirl-icon-time-filled.entry.5118c56c.js +17 -0
- package/dist/swirl-icon-time-outlined.entry.2289a356.js +17 -0
- package/dist/swirl-icon-translate.entry.bdba5fac.js +17 -0
- package/dist/swirl-icon-tree-structure.entry.43cd78ef.js +17 -0
- package/dist/swirl-icon-undo.entry.d7e7ea40.js +17 -0
- package/dist/swirl-icon-unlock-person.entry.245d9be9.js +17 -0
- package/dist/swirl-icon-user-add.entry.0054b073.js +17 -0
- package/dist/swirl-icon-user-assign.entry.d4e5543f.js +17 -0
- package/dist/swirl-icon-video-camera.entry.797b8e28.js +17 -0
- package/dist/swirl-icon-video-library.entry.4d2f0731.js +17 -0
- package/dist/swirl-icon-voice.entry.ce8471dd.js +17 -0
- package/dist/swirl-icon.entry.176c73f4.js +16 -0
- package/dist/swirl-image-grid-item.entry.1c92d9a1.js +19 -0
- package/dist/swirl-image-grid.entry.f759570d.js +25 -0
- package/dist/swirl-inline-notification.entry.2160dcb6.js +17 -0
- package/dist/swirl-inline-status.entry.5397827b.js +36 -0
- package/dist/swirl-lightbox.entry.1258a9dc.js +131 -0
- package/dist/swirl-link.entry.562be9b0.js +17 -0
- package/dist/swirl-list.entry.3533e6c1.js +18 -0
- package/dist/swirl-menu-item.entry.c987b0f9.js +76 -0
- package/dist/swirl-menu.entry.bb36d68d.js +166 -0
- package/dist/swirl-modal.entry.8545ad1c.js +118 -0
- package/dist/swirl-option-list-section.entry.c3ade3d4.js +15 -0
- package/dist/swirl-option-list_2.entry.bd00e9dc.js +210 -0
- package/dist/swirl-pagination.entry.471f5873.js +38 -0
- package/dist/swirl-pdf-reader.entry.dbd37982.js +98 -0
- package/dist/swirl-popover_2.entry.e45966ae.js +177 -0
- package/dist/swirl-progress-indicator.entry.244caaf6.js +17 -0
- package/dist/swirl-radio-group.entry.0ae54e53.js +35 -0
- package/dist/swirl-radio.entry.cdfac28b.js +29 -0
- package/dist/swirl-resource-list-file-item.entry.4c50dd4a.js +35 -0
- package/dist/swirl-search.entry.002c73f2.js +50 -0
- package/dist/swirl-select.entry.6467db20.js +79 -0
- package/dist/swirl-shell-layout.entry.62ba60c3.js +85 -0
- package/dist/swirl-shell-navigation-item.entry.91b49950.js +136 -0
- package/dist/swirl-skeleton-box.entry.5c0428ca.js +31 -0
- package/dist/swirl-skeleton-text.entry.924203e6.js +38 -0
- package/dist/swirl-stack.entry.bef2eb97.js +17 -0
- package/dist/swirl-status-indicator.entry.5fe381d5.js +17 -0
- package/dist/swirl-switch.entry.57a8e80c.js +55 -0
- package/dist/swirl-symbol-account-circle.entry.33ff8e3a.js +17 -0
- package/dist/swirl-symbol-alternate-email.entry.7da7c845.js +17 -0
- package/dist/swirl-symbol-android.entry.bf4bbe6b.js +17 -0
- package/dist/swirl-symbol-announcement.entry.8993582b.js +17 -0
- package/dist/swirl-symbol-backup.entry.8d96216d.js +17 -0
- package/dist/swirl-symbol-beach-access.entry.56b385aa.js +17 -0
- package/dist/swirl-symbol-bookmark.entry.538be734.js +17 -0
- package/dist/swirl-symbol-cloud.entry.a2e031c5.js +17 -0
- package/dist/swirl-symbol-coronavirus.entry.7b565347.js +17 -0
- package/dist/swirl-symbol-desktop-windows.entry.3b148f81.js +17 -0
- package/dist/swirl-symbol-directions-car-filled.entry.317ab14a.js +17 -0
- package/dist/swirl-symbol-edit-calendar.entry.d2a64bb9.js +17 -0
- package/dist/swirl-symbol-email.entry.9cfaa4d2.js +17 -0
- package/dist/swirl-symbol-emoji-food-beverage.entry.3f9c9e01.js +17 -0
- package/dist/swirl-symbol-event-menu.entry.54a2bf4e.js +17 -0
- package/dist/swirl-symbol-facebook.entry.4553184a.js +17 -0
- package/dist/swirl-symbol-favorite.entry.2c9c7a78.js +17 -0
- package/dist/swirl-symbol-fitness-center.entry.26364c64.js +17 -0
- package/dist/swirl-symbol-flag.entry.95bff9f4.js +17 -0
- package/dist/swirl-symbol-folder.entry.87817dd9.js +17 -0
- package/dist/swirl-symbol-globe.entry.dacfeb5a.js +17 -0
- package/dist/swirl-symbol-groups.entry.399985e4.js +17 -0
- package/dist/swirl-symbol-help.entry.d884a11e.js +17 -0
- package/dist/swirl-symbol-image.entry.a6e56ccf.js +17 -0
- package/dist/swirl-symbol-info-menu.entry.f809ed59.js +17 -0
- package/dist/swirl-symbol-instagram.entry.1512e9b3.js +17 -0
- package/dist/swirl-symbol-ios.entry.56949a46.js +17 -0
- package/dist/swirl-symbol-language.entry.b47fb5c1.js +17 -0
- package/dist/swirl-symbol-leaderboard.entry.2f74c121.js +17 -0
- package/dist/swirl-symbol-lightbulb.entry.3bb1d749.js +17 -0
- package/dist/swirl-symbol-linkedin.entry.ae55477b.js +17 -0
- package/dist/swirl-symbol-location-on.entry.ed4ba5c5.js +17 -0
- package/dist/swirl-symbol-loyalty.entry.74ef2180.js +17 -0
- package/dist/swirl-symbol-maps-home-work.entry.93df095c.js +17 -0
- package/dist/swirl-symbol-notifications.entry.d4dc1955.js +17 -0
- package/dist/swirl-symbol-open-in-new.entry.288d063a.js +17 -0
- package/dist/swirl-symbol-pedal-bike.entry.91c0a151.js +17 -0
- package/dist/swirl-symbol-pinterest.entry.6b83e6df.js +17 -0
- package/dist/swirl-symbol-policy.entry.b54305f1.js +17 -0
- package/dist/swirl-symbol-push-pin.entry.51183455.js +17 -0
- package/dist/swirl-symbol-redeem.entry.4e4e4309.js +17 -0
- package/dist/swirl-symbol-report-problem.entry.99c33202.js +17 -0
- package/dist/swirl-symbol-restaurant.entry.082d53e9.js +17 -0
- package/dist/swirl-symbol-roadmap.entry.3704828e.js +17 -0
- package/dist/swirl-symbol-room.entry.c1818bfb.js +17 -0
- package/dist/swirl-symbol-savings.entry.e881d2ac.js +17 -0
- package/dist/swirl-symbol-settings-voice.entry.47c52d64.js +17 -0
- package/dist/swirl-symbol-shopping-cart.entry.352b3b43.js +17 -0
- package/dist/swirl-symbol-smartphone.entry.9adf156e.js +17 -0
- package/dist/swirl-symbol-star.entry.bc31986d.js +17 -0
- package/dist/swirl-symbol-supervisor-account.entry.822989a8.js +17 -0
- package/dist/swirl-symbol-thumbs-up-down.entry.991030ac.js +17 -0
- package/dist/swirl-symbol-twitter.entry.cc122704.js +17 -0
- package/dist/swirl-symbol-wb-sunny.entry.85d7ceb7.js +17 -0
- package/dist/swirl-symbol-wechat.entry.d36b55ff.js +17 -0
- package/dist/swirl-symbol-weibo.entry.5e44d3d2.js +17 -0
- package/dist/swirl-symbol-work.entry.ceb7e06f.js +17 -0
- package/dist/swirl-symbol-xing.entry.c525dbdd.js +17 -0
- package/dist/swirl-symbol-youtube.entry.8e29b40e.js +17 -0
- package/dist/swirl-symbol.entry.d2bb6d18.js +16 -0
- package/dist/swirl-tab-bar.entry.5b121baa.js +33 -0
- package/dist/swirl-tab.entry.ce9ecb2f.js +17 -0
- package/dist/swirl-table-cell.entry.0786f246.js +15 -0
- package/dist/swirl-table-column.entry.d1695dea.js +28 -0
- package/dist/swirl-table-row-group.entry.847b500b.js +19 -0
- package/dist/swirl-table-row.entry.7e3632b7.js +27 -0
- package/dist/swirl-table.entry.45de7a03.js +133 -0
- package/dist/swirl-tabs.entry.fddd66a4.js +62 -0
- package/dist/swirl-text-input.entry.f491a11d.js +85 -0
- package/dist/swirl-text.entry.5dafa051.js +292 -0
- package/dist/swirl-theme-provider.entry.9e7b2687.js +89 -0
- package/dist/swirl-time-input.entry.f73e1530.js +77 -0
- package/dist/swirl-toast-provider.entry.bdedbabb.js +38 -0
- package/dist/swirl-toast.entry.da5981d7.js +50 -0
- package/dist/swirl-toolbar.entry.d3b712e4.js +56 -0
- package/dist/swirl-tooltip.entry.302000cf.js +95 -0
- package/dist/swirl-tree-navigation-item.entry.ed1a5937.js +25 -0
- package/dist/swirl-video-thumbnail.entry.370b16e1.js +88 -0
- package/dist/swirl-visually-hidden.entry.d86c6ecd.js +15 -0
- package/dist/utils-9f141e25.a4ae3adc.js +61 -0
- package/dist/v4-fa4bb814.196482d9.js +33 -0
- package/dist/vite-env.d.ts +1 -0
- package/dist/wc-datepicker.entry.0537b021.js +274 -0
- package/package.json +33 -0
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
function j(t) {
|
|
2
|
+
return t.split("-")[1];
|
|
3
|
+
}
|
|
4
|
+
function st(t) {
|
|
5
|
+
return t === "y" ? "height" : "width";
|
|
6
|
+
}
|
|
7
|
+
function T(t) {
|
|
8
|
+
return t.split("-")[0];
|
|
9
|
+
}
|
|
10
|
+
function I(t) {
|
|
11
|
+
return ["top", "bottom"].includes(T(t)) ? "x" : "y";
|
|
12
|
+
}
|
|
13
|
+
function Z(t, e, n) {
|
|
14
|
+
let {
|
|
15
|
+
reference: o,
|
|
16
|
+
floating: i
|
|
17
|
+
} = t;
|
|
18
|
+
const s = o.x + o.width / 2 - i.width / 2, r = o.y + o.height / 2 - i.height / 2, c = I(e), l = st(c), a = o[l] / 2 - i[l] / 2, g = T(e), f = c === "x";
|
|
19
|
+
let u;
|
|
20
|
+
switch (g) {
|
|
21
|
+
case "top":
|
|
22
|
+
u = {
|
|
23
|
+
x: s,
|
|
24
|
+
y: o.y - i.height
|
|
25
|
+
};
|
|
26
|
+
break;
|
|
27
|
+
case "bottom":
|
|
28
|
+
u = {
|
|
29
|
+
x: s,
|
|
30
|
+
y: o.y + o.height
|
|
31
|
+
};
|
|
32
|
+
break;
|
|
33
|
+
case "right":
|
|
34
|
+
u = {
|
|
35
|
+
x: o.x + o.width,
|
|
36
|
+
y: r
|
|
37
|
+
};
|
|
38
|
+
break;
|
|
39
|
+
case "left":
|
|
40
|
+
u = {
|
|
41
|
+
x: o.x - i.width,
|
|
42
|
+
y: r
|
|
43
|
+
};
|
|
44
|
+
break;
|
|
45
|
+
default:
|
|
46
|
+
u = {
|
|
47
|
+
x: o.x,
|
|
48
|
+
y: o.y
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
switch (j(e)) {
|
|
52
|
+
case "start":
|
|
53
|
+
u[c] -= a * (n && f ? -1 : 1);
|
|
54
|
+
break;
|
|
55
|
+
case "end":
|
|
56
|
+
u[c] += a * (n && f ? -1 : 1);
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
return u;
|
|
60
|
+
}
|
|
61
|
+
const ht = async (t, e, n) => {
|
|
62
|
+
const {
|
|
63
|
+
placement: o = "bottom",
|
|
64
|
+
strategy: i = "absolute",
|
|
65
|
+
middleware: s = [],
|
|
66
|
+
platform: r
|
|
67
|
+
} = n, c = s.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
68
|
+
let a = await r.getElementRects({
|
|
69
|
+
reference: t,
|
|
70
|
+
floating: e,
|
|
71
|
+
strategy: i
|
|
72
|
+
}), {
|
|
73
|
+
x: g,
|
|
74
|
+
y: f
|
|
75
|
+
} = Z(a, o, l), u = o, d = {}, h = 0;
|
|
76
|
+
for (let m = 0; m < c.length; m++) {
|
|
77
|
+
const {
|
|
78
|
+
name: p,
|
|
79
|
+
fn: x
|
|
80
|
+
} = c[m], {
|
|
81
|
+
x: y,
|
|
82
|
+
y: v,
|
|
83
|
+
data: L,
|
|
84
|
+
reset: w
|
|
85
|
+
} = await x({
|
|
86
|
+
x: g,
|
|
87
|
+
y: f,
|
|
88
|
+
initialPlacement: o,
|
|
89
|
+
placement: u,
|
|
90
|
+
strategy: i,
|
|
91
|
+
middlewareData: d,
|
|
92
|
+
rects: a,
|
|
93
|
+
platform: r,
|
|
94
|
+
elements: {
|
|
95
|
+
reference: t,
|
|
96
|
+
floating: e
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
if (g = y != null ? y : g, f = v != null ? v : f, d = {
|
|
100
|
+
...d,
|
|
101
|
+
[p]: {
|
|
102
|
+
...d[p],
|
|
103
|
+
...L
|
|
104
|
+
}
|
|
105
|
+
}, w && h <= 50) {
|
|
106
|
+
h++, typeof w == "object" && (w.placement && (u = w.placement), w.rects && (a = w.rects === !0 ? await r.getElementRects({
|
|
107
|
+
reference: t,
|
|
108
|
+
floating: e,
|
|
109
|
+
strategy: i
|
|
110
|
+
}) : w.rects), {
|
|
111
|
+
x: g,
|
|
112
|
+
y: f
|
|
113
|
+
} = Z(a, u, l)), m = -1;
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
x: g,
|
|
119
|
+
y: f,
|
|
120
|
+
placement: u,
|
|
121
|
+
strategy: i,
|
|
122
|
+
middlewareData: d
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
function pt(t) {
|
|
126
|
+
return {
|
|
127
|
+
top: 0,
|
|
128
|
+
right: 0,
|
|
129
|
+
bottom: 0,
|
|
130
|
+
left: 0,
|
|
131
|
+
...t
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function wt(t) {
|
|
135
|
+
return typeof t != "number" ? pt(t) : {
|
|
136
|
+
top: t,
|
|
137
|
+
right: t,
|
|
138
|
+
bottom: t,
|
|
139
|
+
left: t
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function $(t) {
|
|
143
|
+
return {
|
|
144
|
+
...t,
|
|
145
|
+
top: t.y,
|
|
146
|
+
left: t.x,
|
|
147
|
+
right: t.x + t.width,
|
|
148
|
+
bottom: t.y + t.height
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
async function rt(t, e) {
|
|
152
|
+
var n;
|
|
153
|
+
e === void 0 && (e = {});
|
|
154
|
+
const {
|
|
155
|
+
x: o,
|
|
156
|
+
y: i,
|
|
157
|
+
platform: s,
|
|
158
|
+
rects: r,
|
|
159
|
+
elements: c,
|
|
160
|
+
strategy: l
|
|
161
|
+
} = t, {
|
|
162
|
+
boundary: a = "clippingAncestors",
|
|
163
|
+
rootBoundary: g = "viewport",
|
|
164
|
+
elementContext: f = "floating",
|
|
165
|
+
altBoundary: u = !1,
|
|
166
|
+
padding: d = 0
|
|
167
|
+
} = e, h = wt(d), p = c[u ? f === "floating" ? "reference" : "floating" : f], x = $(await s.getClippingRect({
|
|
168
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(p))) == null || n ? p : p.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
169
|
+
boundary: a,
|
|
170
|
+
rootBoundary: g,
|
|
171
|
+
strategy: l
|
|
172
|
+
})), y = f === "floating" ? {
|
|
173
|
+
...r.floating,
|
|
174
|
+
x: o,
|
|
175
|
+
y: i
|
|
176
|
+
} : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), L = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
|
|
177
|
+
x: 1,
|
|
178
|
+
y: 1
|
|
179
|
+
} : {
|
|
180
|
+
x: 1,
|
|
181
|
+
y: 1
|
|
182
|
+
}, w = $(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
183
|
+
rect: y,
|
|
184
|
+
offsetParent: v,
|
|
185
|
+
strategy: l
|
|
186
|
+
}) : y);
|
|
187
|
+
return {
|
|
188
|
+
top: (x.top - w.top + h.top) / L.y,
|
|
189
|
+
bottom: (w.bottom - x.bottom + h.bottom) / L.y,
|
|
190
|
+
left: (x.left - w.left + h.left) / L.x,
|
|
191
|
+
right: (w.right - x.right + h.right) / L.x
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
const xt = Math.min, yt = Math.max;
|
|
195
|
+
function tt(t, e, n) {
|
|
196
|
+
return yt(t, xt(e, n));
|
|
197
|
+
}
|
|
198
|
+
const vt = {
|
|
199
|
+
left: "right",
|
|
200
|
+
right: "left",
|
|
201
|
+
bottom: "top",
|
|
202
|
+
top: "bottom"
|
|
203
|
+
};
|
|
204
|
+
function _(t) {
|
|
205
|
+
return t.replace(/left|right|bottom|top/g, (e) => vt[e]);
|
|
206
|
+
}
|
|
207
|
+
function bt(t, e, n) {
|
|
208
|
+
n === void 0 && (n = !1);
|
|
209
|
+
const o = j(t), i = I(t), s = st(i);
|
|
210
|
+
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
211
|
+
return e.reference[s] > e.floating[s] && (r = _(r)), {
|
|
212
|
+
main: r,
|
|
213
|
+
cross: _(r)
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
const At = {
|
|
217
|
+
start: "end",
|
|
218
|
+
end: "start"
|
|
219
|
+
};
|
|
220
|
+
function q(t) {
|
|
221
|
+
return t.replace(/start|end/g, (e) => At[e]);
|
|
222
|
+
}
|
|
223
|
+
function Rt(t) {
|
|
224
|
+
const e = _(t);
|
|
225
|
+
return [q(t), e, q(e)];
|
|
226
|
+
}
|
|
227
|
+
function Ct(t, e, n) {
|
|
228
|
+
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
229
|
+
switch (t) {
|
|
230
|
+
case "top":
|
|
231
|
+
case "bottom":
|
|
232
|
+
return n ? e ? i : o : e ? o : i;
|
|
233
|
+
case "left":
|
|
234
|
+
case "right":
|
|
235
|
+
return e ? s : r;
|
|
236
|
+
default:
|
|
237
|
+
return [];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function Et(t, e, n, o) {
|
|
241
|
+
const i = j(t);
|
|
242
|
+
let s = Ct(T(t), n === "start", o);
|
|
243
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(q)))), s;
|
|
244
|
+
}
|
|
245
|
+
const zt = function(t) {
|
|
246
|
+
return t === void 0 && (t = {}), {
|
|
247
|
+
name: "flip",
|
|
248
|
+
options: t,
|
|
249
|
+
async fn(e) {
|
|
250
|
+
var n;
|
|
251
|
+
const {
|
|
252
|
+
placement: o,
|
|
253
|
+
middlewareData: i,
|
|
254
|
+
rects: s,
|
|
255
|
+
initialPlacement: r,
|
|
256
|
+
platform: c,
|
|
257
|
+
elements: l
|
|
258
|
+
} = e, {
|
|
259
|
+
mainAxis: a = !0,
|
|
260
|
+
crossAxis: g = !0,
|
|
261
|
+
fallbackPlacements: f,
|
|
262
|
+
fallbackStrategy: u = "bestFit",
|
|
263
|
+
fallbackAxisSideDirection: d = "none",
|
|
264
|
+
flipAlignment: h = !0,
|
|
265
|
+
...m
|
|
266
|
+
} = t, p = T(o), x = T(r) === r, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), v = f || (x || !h ? [_(r)] : Rt(r));
|
|
267
|
+
!f && d !== "none" && v.push(...Et(r, h, d, y));
|
|
268
|
+
const L = [r, ...v], w = await rt(e, m), B = [];
|
|
269
|
+
let N = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
270
|
+
if (a && B.push(w[p]), g) {
|
|
271
|
+
const {
|
|
272
|
+
main: S,
|
|
273
|
+
cross: F
|
|
274
|
+
} = bt(o, s, y);
|
|
275
|
+
B.push(w[S], w[F]);
|
|
276
|
+
}
|
|
277
|
+
if (N = [...N, {
|
|
278
|
+
placement: o,
|
|
279
|
+
overflows: B
|
|
280
|
+
}], !B.every((S) => S <= 0)) {
|
|
281
|
+
var J, K;
|
|
282
|
+
const S = (((J = i.flip) == null ? void 0 : J.index) || 0) + 1, F = L[S];
|
|
283
|
+
if (F)
|
|
284
|
+
return {
|
|
285
|
+
data: {
|
|
286
|
+
index: S,
|
|
287
|
+
overflows: N
|
|
288
|
+
},
|
|
289
|
+
reset: {
|
|
290
|
+
placement: F
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
let W = (K = N.filter((V) => V.overflows[0] <= 0).sort((V, k) => V.overflows[1] - k.overflows[1])[0]) == null ? void 0 : K.placement;
|
|
294
|
+
if (!W)
|
|
295
|
+
switch (u) {
|
|
296
|
+
case "bestFit": {
|
|
297
|
+
var Q;
|
|
298
|
+
const V = (Q = N.map((k) => [k.placement, k.overflows.filter((M) => M > 0).reduce((M, gt) => M + gt, 0)]).sort((k, M) => k[1] - M[1])[0]) == null ? void 0 : Q[0];
|
|
299
|
+
V && (W = V);
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
case "initialPlacement":
|
|
303
|
+
W = r;
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
if (o !== W)
|
|
307
|
+
return {
|
|
308
|
+
reset: {
|
|
309
|
+
placement: W
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
return {};
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
async function Lt(t, e) {
|
|
318
|
+
const {
|
|
319
|
+
placement: n,
|
|
320
|
+
platform: o,
|
|
321
|
+
elements: i
|
|
322
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = T(n), c = j(n), l = I(n) === "x", a = ["left", "top"].includes(r) ? -1 : 1, g = s && l ? -1 : 1, f = typeof e == "function" ? e(t) : e;
|
|
323
|
+
let {
|
|
324
|
+
mainAxis: u,
|
|
325
|
+
crossAxis: d,
|
|
326
|
+
alignmentAxis: h
|
|
327
|
+
} = typeof f == "number" ? {
|
|
328
|
+
mainAxis: f,
|
|
329
|
+
crossAxis: 0,
|
|
330
|
+
alignmentAxis: null
|
|
331
|
+
} : {
|
|
332
|
+
mainAxis: 0,
|
|
333
|
+
crossAxis: 0,
|
|
334
|
+
alignmentAxis: null,
|
|
335
|
+
...f
|
|
336
|
+
};
|
|
337
|
+
return c && typeof h == "number" && (d = c === "end" ? h * -1 : h), l ? {
|
|
338
|
+
x: d * g,
|
|
339
|
+
y: u * a
|
|
340
|
+
} : {
|
|
341
|
+
x: u * a,
|
|
342
|
+
y: d * g
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
const Xt = function(t) {
|
|
346
|
+
return t === void 0 && (t = 0), {
|
|
347
|
+
name: "offset",
|
|
348
|
+
options: t,
|
|
349
|
+
async fn(e) {
|
|
350
|
+
const {
|
|
351
|
+
x: n,
|
|
352
|
+
y: o
|
|
353
|
+
} = e, i = await Lt(e, t);
|
|
354
|
+
return {
|
|
355
|
+
x: n + i.x,
|
|
356
|
+
y: o + i.y,
|
|
357
|
+
data: i
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
function Ot(t) {
|
|
363
|
+
return t === "x" ? "y" : "x";
|
|
364
|
+
}
|
|
365
|
+
const jt = function(t) {
|
|
366
|
+
return t === void 0 && (t = {}), {
|
|
367
|
+
name: "shift",
|
|
368
|
+
options: t,
|
|
369
|
+
async fn(e) {
|
|
370
|
+
const {
|
|
371
|
+
x: n,
|
|
372
|
+
y: o,
|
|
373
|
+
placement: i
|
|
374
|
+
} = e, {
|
|
375
|
+
mainAxis: s = !0,
|
|
376
|
+
crossAxis: r = !1,
|
|
377
|
+
limiter: c = {
|
|
378
|
+
fn: (p) => {
|
|
379
|
+
let {
|
|
380
|
+
x,
|
|
381
|
+
y
|
|
382
|
+
} = p;
|
|
383
|
+
return {
|
|
384
|
+
x,
|
|
385
|
+
y
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
...l
|
|
390
|
+
} = t, a = {
|
|
391
|
+
x: n,
|
|
392
|
+
y: o
|
|
393
|
+
}, g = await rt(e, l), f = I(T(i)), u = Ot(f);
|
|
394
|
+
let d = a[f], h = a[u];
|
|
395
|
+
if (s) {
|
|
396
|
+
const p = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", y = d + g[p], v = d - g[x];
|
|
397
|
+
d = tt(y, d, v);
|
|
398
|
+
}
|
|
399
|
+
if (r) {
|
|
400
|
+
const p = u === "y" ? "top" : "left", x = u === "y" ? "bottom" : "right", y = h + g[p], v = h - g[x];
|
|
401
|
+
h = tt(y, h, v);
|
|
402
|
+
}
|
|
403
|
+
const m = c.fn({
|
|
404
|
+
...e,
|
|
405
|
+
[f]: d,
|
|
406
|
+
[u]: h
|
|
407
|
+
});
|
|
408
|
+
return {
|
|
409
|
+
...m,
|
|
410
|
+
data: {
|
|
411
|
+
x: m.x - n,
|
|
412
|
+
y: m.y - o
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
function ct(t) {
|
|
419
|
+
return t && t.document && t.location && t.alert && t.setInterval;
|
|
420
|
+
}
|
|
421
|
+
function E(t) {
|
|
422
|
+
if (t == null)
|
|
423
|
+
return window;
|
|
424
|
+
if (!ct(t)) {
|
|
425
|
+
const e = t.ownerDocument;
|
|
426
|
+
return e && e.defaultView || window;
|
|
427
|
+
}
|
|
428
|
+
return t;
|
|
429
|
+
}
|
|
430
|
+
function b(t) {
|
|
431
|
+
return E(t).getComputedStyle(t);
|
|
432
|
+
}
|
|
433
|
+
function R(t) {
|
|
434
|
+
return ct(t) ? "" : t ? (t.nodeName || "").toLowerCase() : "";
|
|
435
|
+
}
|
|
436
|
+
function lt() {
|
|
437
|
+
const t = navigator.userAgentData;
|
|
438
|
+
return t != null && t.brands ? t.brands.map((e) => e.brand + "/" + e.version).join(" ") : navigator.userAgent;
|
|
439
|
+
}
|
|
440
|
+
function A(t) {
|
|
441
|
+
return t instanceof E(t).HTMLElement;
|
|
442
|
+
}
|
|
443
|
+
function O(t) {
|
|
444
|
+
return t instanceof E(t).Element;
|
|
445
|
+
}
|
|
446
|
+
function Pt(t) {
|
|
447
|
+
return t instanceof E(t).Node;
|
|
448
|
+
}
|
|
449
|
+
function D(t) {
|
|
450
|
+
if (typeof ShadowRoot > "u")
|
|
451
|
+
return !1;
|
|
452
|
+
const e = E(t).ShadowRoot;
|
|
453
|
+
return t instanceof e || t instanceof ShadowRoot;
|
|
454
|
+
}
|
|
455
|
+
function Y(t) {
|
|
456
|
+
const {
|
|
457
|
+
overflow: e,
|
|
458
|
+
overflowX: n,
|
|
459
|
+
overflowY: o
|
|
460
|
+
} = b(t);
|
|
461
|
+
return /auto|scroll|overlay|hidden/.test(e + o + n);
|
|
462
|
+
}
|
|
463
|
+
function Tt(t) {
|
|
464
|
+
return ["table", "td", "th"].includes(R(t));
|
|
465
|
+
}
|
|
466
|
+
function ft(t) {
|
|
467
|
+
const e = /firefox/i.test(lt()), n = b(t);
|
|
468
|
+
return n.transform !== "none" || n.perspective !== "none" || n.contain === "paint" || ["transform", "perspective"].includes(n.willChange) || e && n.willChange === "filter" || e && (n.filter ? n.filter !== "none" : !1);
|
|
469
|
+
}
|
|
470
|
+
function at() {
|
|
471
|
+
return !/^((?!chrome|android).)*safari/i.test(lt());
|
|
472
|
+
}
|
|
473
|
+
const et = Math.min, H = Math.max, z = Math.round;
|
|
474
|
+
function C(t, e, n) {
|
|
475
|
+
var o, i, s, r;
|
|
476
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
477
|
+
const c = t.getBoundingClientRect();
|
|
478
|
+
let l = 1, a = 1;
|
|
479
|
+
e && A(t) && (l = t.offsetWidth > 0 && z(c.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && z(c.height) / t.offsetHeight || 1);
|
|
480
|
+
const g = O(t) ? E(t) : window, f = !at() && n, u = (c.left + (f && (o = (i = g.visualViewport) == null ? void 0 : i.offsetLeft) != null ? o : 0)) / l, d = (c.top + (f && (s = (r = g.visualViewport) == null ? void 0 : r.offsetTop) != null ? s : 0)) / a, h = c.width / l, m = c.height / a;
|
|
481
|
+
return {
|
|
482
|
+
width: h,
|
|
483
|
+
height: m,
|
|
484
|
+
top: d,
|
|
485
|
+
right: u + h,
|
|
486
|
+
bottom: d + m,
|
|
487
|
+
left: u,
|
|
488
|
+
x: u,
|
|
489
|
+
y: d
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
function P(t) {
|
|
493
|
+
return ((Pt(t) ? t.ownerDocument : t.document) || window.document).documentElement;
|
|
494
|
+
}
|
|
495
|
+
function U(t) {
|
|
496
|
+
return O(t) ? {
|
|
497
|
+
scrollLeft: t.scrollLeft,
|
|
498
|
+
scrollTop: t.scrollTop
|
|
499
|
+
} : {
|
|
500
|
+
scrollLeft: t.pageXOffset,
|
|
501
|
+
scrollTop: t.pageYOffset
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
function ut(t) {
|
|
505
|
+
return C(P(t)).left + U(t).scrollLeft;
|
|
506
|
+
}
|
|
507
|
+
function St(t) {
|
|
508
|
+
const e = C(t);
|
|
509
|
+
return z(e.width) !== t.offsetWidth || z(e.height) !== t.offsetHeight;
|
|
510
|
+
}
|
|
511
|
+
function Vt(t, e, n) {
|
|
512
|
+
const o = A(e), i = P(e), s = C(
|
|
513
|
+
t,
|
|
514
|
+
o && St(e),
|
|
515
|
+
n === "fixed"
|
|
516
|
+
);
|
|
517
|
+
let r = {
|
|
518
|
+
scrollLeft: 0,
|
|
519
|
+
scrollTop: 0
|
|
520
|
+
};
|
|
521
|
+
const c = {
|
|
522
|
+
x: 0,
|
|
523
|
+
y: 0
|
|
524
|
+
};
|
|
525
|
+
if (o || !o && n !== "fixed")
|
|
526
|
+
if ((R(e) !== "body" || Y(i)) && (r = U(e)), A(e)) {
|
|
527
|
+
const l = C(e, !0);
|
|
528
|
+
c.x = l.x + e.clientLeft, c.y = l.y + e.clientTop;
|
|
529
|
+
} else
|
|
530
|
+
i && (c.x = ut(i));
|
|
531
|
+
return {
|
|
532
|
+
x: s.left + r.scrollLeft - c.x,
|
|
533
|
+
y: s.top + r.scrollTop - c.y,
|
|
534
|
+
width: s.width,
|
|
535
|
+
height: s.height
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
function dt(t) {
|
|
539
|
+
return R(t) === "html" ? t : t.assignedSlot || t.parentNode || (D(t) ? t.host : null) || P(t);
|
|
540
|
+
}
|
|
541
|
+
function nt(t) {
|
|
542
|
+
return !A(t) || b(t).position === "fixed" ? null : kt(t);
|
|
543
|
+
}
|
|
544
|
+
function kt(t) {
|
|
545
|
+
let {
|
|
546
|
+
offsetParent: e
|
|
547
|
+
} = t, n = t, o = !1;
|
|
548
|
+
for (; n && n !== e; ) {
|
|
549
|
+
const {
|
|
550
|
+
assignedSlot: i
|
|
551
|
+
} = n;
|
|
552
|
+
if (i) {
|
|
553
|
+
let s = i.offsetParent;
|
|
554
|
+
if (b(i).display === "contents") {
|
|
555
|
+
const r = i.hasAttribute("style"), c = i.style.display;
|
|
556
|
+
i.style.display = b(n).display, s = i.offsetParent, i.style.display = c, r || i.removeAttribute("style");
|
|
557
|
+
}
|
|
558
|
+
n = i, e !== s && (e = s, o = !0);
|
|
559
|
+
} else if (D(n) && n.host && o)
|
|
560
|
+
break;
|
|
561
|
+
n = D(n) && n.host || n.parentNode;
|
|
562
|
+
}
|
|
563
|
+
return e;
|
|
564
|
+
}
|
|
565
|
+
function Dt(t) {
|
|
566
|
+
let e = dt(t);
|
|
567
|
+
for (D(e) && (e = e.host); A(e) && !["html", "body"].includes(R(e)); ) {
|
|
568
|
+
if (ft(e))
|
|
569
|
+
return e;
|
|
570
|
+
{
|
|
571
|
+
const n = e.parentNode;
|
|
572
|
+
e = D(n) ? n.host : n;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
return null;
|
|
576
|
+
}
|
|
577
|
+
function G(t) {
|
|
578
|
+
const e = E(t);
|
|
579
|
+
let n = nt(t);
|
|
580
|
+
for (; n && Tt(n) && b(n).position === "static"; )
|
|
581
|
+
n = nt(n);
|
|
582
|
+
return n && (R(n) === "html" || R(n) === "body" && b(n).position === "static" && !ft(n)) ? e : n || Dt(t) || e;
|
|
583
|
+
}
|
|
584
|
+
function ot(t) {
|
|
585
|
+
if (A(t))
|
|
586
|
+
return {
|
|
587
|
+
width: t.offsetWidth,
|
|
588
|
+
height: t.offsetHeight
|
|
589
|
+
};
|
|
590
|
+
const e = C(t);
|
|
591
|
+
return {
|
|
592
|
+
width: e.width,
|
|
593
|
+
height: e.height
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
function Nt(t) {
|
|
597
|
+
let {
|
|
598
|
+
rect: e,
|
|
599
|
+
offsetParent: n,
|
|
600
|
+
strategy: o
|
|
601
|
+
} = t;
|
|
602
|
+
const i = A(n), s = P(n);
|
|
603
|
+
if (n === s)
|
|
604
|
+
return e;
|
|
605
|
+
let r = {
|
|
606
|
+
scrollLeft: 0,
|
|
607
|
+
scrollTop: 0
|
|
608
|
+
};
|
|
609
|
+
const c = {
|
|
610
|
+
x: 0,
|
|
611
|
+
y: 0
|
|
612
|
+
};
|
|
613
|
+
if ((i || !i && o !== "fixed") && ((R(n) !== "body" || Y(s)) && (r = U(n)), A(n))) {
|
|
614
|
+
const l = C(n, !0);
|
|
615
|
+
c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
|
|
616
|
+
}
|
|
617
|
+
return {
|
|
618
|
+
...e,
|
|
619
|
+
x: e.x - r.scrollLeft + c.x,
|
|
620
|
+
y: e.y - r.scrollTop + c.y
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
function Wt(t, e) {
|
|
624
|
+
const n = E(t), o = P(t), i = n.visualViewport;
|
|
625
|
+
let s = o.clientWidth, r = o.clientHeight, c = 0, l = 0;
|
|
626
|
+
if (i) {
|
|
627
|
+
s = i.width, r = i.height;
|
|
628
|
+
const a = at();
|
|
629
|
+
(a || !a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
630
|
+
}
|
|
631
|
+
return {
|
|
632
|
+
width: s,
|
|
633
|
+
height: r,
|
|
634
|
+
x: c,
|
|
635
|
+
y: l
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
function Mt(t) {
|
|
639
|
+
var e;
|
|
640
|
+
const n = P(t), o = U(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, s = H(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), r = H(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0);
|
|
641
|
+
let c = -o.scrollLeft + ut(t);
|
|
642
|
+
const l = -o.scrollTop;
|
|
643
|
+
return b(i || n).direction === "rtl" && (c += H(n.clientWidth, i ? i.clientWidth : 0) - s), {
|
|
644
|
+
width: s,
|
|
645
|
+
height: r,
|
|
646
|
+
x: c,
|
|
647
|
+
y: l
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
function mt(t) {
|
|
651
|
+
const e = dt(t);
|
|
652
|
+
return ["html", "body", "#document"].includes(R(e)) ? t.ownerDocument.body : A(e) && Y(e) ? e : mt(e);
|
|
653
|
+
}
|
|
654
|
+
function X(t, e) {
|
|
655
|
+
var n;
|
|
656
|
+
e === void 0 && (e = []);
|
|
657
|
+
const o = mt(t), i = o === ((n = t.ownerDocument) == null ? void 0 : n.body), s = E(o), r = i ? [s].concat(s.visualViewport || [], Y(o) ? o : []) : o, c = e.concat(r);
|
|
658
|
+
return i ? c : c.concat(X(r));
|
|
659
|
+
}
|
|
660
|
+
function Ht(t, e) {
|
|
661
|
+
const n = e.getRootNode == null ? void 0 : e.getRootNode();
|
|
662
|
+
if (t.contains(e))
|
|
663
|
+
return !0;
|
|
664
|
+
if (n && D(n)) {
|
|
665
|
+
let o = e;
|
|
666
|
+
do {
|
|
667
|
+
if (o && t === o)
|
|
668
|
+
return !0;
|
|
669
|
+
o = o.parentNode || o.host;
|
|
670
|
+
} while (o);
|
|
671
|
+
}
|
|
672
|
+
return !1;
|
|
673
|
+
}
|
|
674
|
+
function Bt(t, e) {
|
|
675
|
+
const n = C(t, !1, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft;
|
|
676
|
+
return {
|
|
677
|
+
top: o,
|
|
678
|
+
left: i,
|
|
679
|
+
x: i,
|
|
680
|
+
y: o,
|
|
681
|
+
right: i + t.clientWidth,
|
|
682
|
+
bottom: o + t.clientHeight,
|
|
683
|
+
width: t.clientWidth,
|
|
684
|
+
height: t.clientHeight
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
function it(t, e, n) {
|
|
688
|
+
return e === "viewport" ? $(Wt(t, n)) : O(e) ? Bt(e, n) : $(Mt(P(t)));
|
|
689
|
+
}
|
|
690
|
+
function Ft(t) {
|
|
691
|
+
const e = X(t), o = ["absolute", "fixed"].includes(b(t).position) && A(t) ? G(t) : t;
|
|
692
|
+
return O(o) ? e.filter((i) => O(i) && Ht(i, o) && R(i) !== "body") : [];
|
|
693
|
+
}
|
|
694
|
+
function $t(t) {
|
|
695
|
+
let {
|
|
696
|
+
element: e,
|
|
697
|
+
boundary: n,
|
|
698
|
+
rootBoundary: o,
|
|
699
|
+
strategy: i
|
|
700
|
+
} = t;
|
|
701
|
+
const r = [...n === "clippingAncestors" ? Ft(e) : [].concat(n), o], c = r[0], l = r.reduce((a, g) => {
|
|
702
|
+
const f = it(e, g, i);
|
|
703
|
+
return a.top = H(f.top, a.top), a.right = et(f.right, a.right), a.bottom = et(f.bottom, a.bottom), a.left = H(f.left, a.left), a;
|
|
704
|
+
}, it(e, c, i));
|
|
705
|
+
return {
|
|
706
|
+
width: l.right - l.left,
|
|
707
|
+
height: l.bottom - l.top,
|
|
708
|
+
x: l.left,
|
|
709
|
+
y: l.top
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
const _t = {
|
|
713
|
+
getClippingRect: $t,
|
|
714
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Nt,
|
|
715
|
+
isElement: O,
|
|
716
|
+
getDimensions: ot,
|
|
717
|
+
getOffsetParent: G,
|
|
718
|
+
getDocumentElement: P,
|
|
719
|
+
getElementRects: (t) => {
|
|
720
|
+
let {
|
|
721
|
+
reference: e,
|
|
722
|
+
floating: n,
|
|
723
|
+
strategy: o
|
|
724
|
+
} = t;
|
|
725
|
+
return {
|
|
726
|
+
reference: Vt(e, G(n), o),
|
|
727
|
+
floating: {
|
|
728
|
+
...ot(n),
|
|
729
|
+
x: 0,
|
|
730
|
+
y: 0
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
},
|
|
734
|
+
getClientRects: (t) => Array.from(t.getClientRects()),
|
|
735
|
+
isRTL: (t) => b(t).direction === "rtl"
|
|
736
|
+
};
|
|
737
|
+
function It(t, e, n, o) {
|
|
738
|
+
o === void 0 && (o = {});
|
|
739
|
+
const {
|
|
740
|
+
ancestorScroll: i = !0,
|
|
741
|
+
ancestorResize: s = !0,
|
|
742
|
+
elementResize: r = !0,
|
|
743
|
+
animationFrame: c = !1
|
|
744
|
+
} = o, l = i && !c, a = s && !c, g = l || a ? [...O(t) ? X(t) : [], ...X(e)] : [];
|
|
745
|
+
g.forEach((m) => {
|
|
746
|
+
l && m.addEventListener("scroll", n, {
|
|
747
|
+
passive: !0
|
|
748
|
+
}), a && m.addEventListener("resize", n);
|
|
749
|
+
});
|
|
750
|
+
let f = null;
|
|
751
|
+
if (r) {
|
|
752
|
+
let m = !0;
|
|
753
|
+
f = new ResizeObserver(() => {
|
|
754
|
+
m || n(), m = !1;
|
|
755
|
+
}), O(t) && !c && f.observe(t), f.observe(e);
|
|
756
|
+
}
|
|
757
|
+
let u, d = c ? C(t) : null;
|
|
758
|
+
c && h();
|
|
759
|
+
function h() {
|
|
760
|
+
const m = C(t);
|
|
761
|
+
d && (m.x !== d.x || m.y !== d.y || m.width !== d.width || m.height !== d.height) && n(), d = m, u = requestAnimationFrame(h);
|
|
762
|
+
}
|
|
763
|
+
return n(), () => {
|
|
764
|
+
var m;
|
|
765
|
+
g.forEach((p) => {
|
|
766
|
+
l && p.removeEventListener("scroll", n), a && p.removeEventListener("resize", n);
|
|
767
|
+
}), (m = f) == null || m.disconnect(), f = null, c && cancelAnimationFrame(u);
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
const Yt = (t, e, n) => ht(t, e, {
|
|
771
|
+
platform: _t,
|
|
772
|
+
...n
|
|
773
|
+
});
|
|
774
|
+
export {
|
|
775
|
+
It as a,
|
|
776
|
+
Yt as c,
|
|
777
|
+
zt as f,
|
|
778
|
+
Xt as o,
|
|
779
|
+
jt as s
|
|
780
|
+
};
|