@ionic/core 8.4.2-dev.11736265112.120bf7af → 8.4.2-dev.11736277041.14f34ba1
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/components/focus-visible.js +4 -34
- package/dist/cjs/{app-globals-16893c1e.js → app-globals-21afee77.js} +1 -1
- package/dist/cjs/{button-active-ec3d9ca2.js → button-active-3f2f60b4.js} +1 -1
- package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-8657bbbf.js} +4 -34
- package/dist/cjs/{hardware-back-button-5a19da86.js → hardware-back-button-9e8a2c4f.js} +2 -2
- package/dist/cjs/{index-55b6245a.js → index-73f75efb.js} +756 -1129
- package/dist/cjs/{index-2b28acc8.js → index-8e789962.js} +2 -2
- package/dist/cjs/{index-29ad8b24.js → index-f05acd21.js} +4 -4
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -5
- package/dist/cjs/ion-alert.cjs.entry.js +5 -5
- package/dist/cjs/ion-app_8.cjs.entry.js +7 -7
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +4 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-modal.cjs.entry.js +5 -5
- package/dist/cjs/ion-nav_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +5 -5
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +4 -4
- package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{ionic-global-aa46b97c.js → ionic-global-d9a8bb5b.js} +1 -1
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-9820d3dc.js → ios.transition-cf40433b.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-a35e0839.js → md.transition-ededf99f.js} +3 -3
- package/dist/cjs/{overlays-43ae7e1d.js → overlays-aa669eb8.js} +2 -2
- package/dist/cjs/{status-tap-f98e43a0.js → status-tap-37681226.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.js +0 -10
- package/dist/collection/components/accordion-group/accordion-group.js +0 -12
- package/dist/collection/components/action-sheet/action-sheet.js +4 -36
- package/dist/collection/components/alert/alert.js +4 -40
- package/dist/collection/components/back-button/back-button.js +1 -15
- package/dist/collection/components/backdrop/backdrop.js +0 -6
- package/dist/collection/components/badge/badge.js +0 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -27
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +0 -8
- package/dist/collection/components/button/button.js +1 -33
- package/dist/collection/components/buttons/buttons.js +0 -2
- package/dist/collection/components/card/card.js +1 -21
- package/dist/collection/components/card-header/card-header.js +0 -4
- package/dist/collection/components/card-subtitle/card-subtitle.js +0 -2
- package/dist/collection/components/card-title/card-title.js +0 -2
- package/dist/collection/components/checkbox/checkbox.js +0 -18
- package/dist/collection/components/chip/chip.js +0 -6
- package/dist/collection/components/col/col.js +0 -48
- package/dist/collection/components/content/content.js +0 -14
- package/dist/collection/components/datetime/datetime.js +4 -64
- package/dist/collection/components/datetime-button/datetime-button.js +0 -6
- package/dist/collection/components/fab/fab.js +0 -8
- package/dist/collection/components/fab-button/fab-button.js +1 -29
- package/dist/collection/components/fab-list/fab-list.js +0 -4
- package/dist/collection/components/footer/footer.js +0 -4
- package/dist/collection/components/grid/grid.js +0 -2
- package/dist/collection/components/header/header.js +0 -4
- package/dist/collection/components/img/img.js +0 -4
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +0 -6
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +0 -4
- package/dist/collection/components/input/input.js +1 -69
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +0 -8
- package/dist/collection/components/item/item.js +1 -27
- package/dist/collection/components/item-divider/item-divider.js +0 -4
- package/dist/collection/components/item-option/item-option.js +0 -16
- package/dist/collection/components/item-options/item-options.js +0 -2
- package/dist/collection/components/item-sliding/item-sliding.js +0 -2
- package/dist/collection/components/label/label.js +0 -4
- package/dist/collection/components/list/list.js +0 -4
- package/dist/collection/components/list-header/list-header.js +0 -4
- package/dist/collection/components/loading/loading.js +4 -38
- package/dist/collection/components/menu/menu.js +0 -14
- package/dist/collection/components/menu-button/menu-button.js +0 -10
- package/dist/collection/components/menu-toggle/menu-toggle.js +0 -4
- package/dist/collection/components/modal/modal.js +7 -55
- package/dist/collection/components/nav/nav.js +3 -15
- package/dist/collection/components/nav-link/nav-link.js +2 -10
- package/dist/collection/components/note/note.js +0 -2
- package/dist/collection/components/picker-column/picker-column.js +0 -8
- package/dist/collection/components/picker-column-option/picker-column-option.js +0 -6
- package/dist/collection/components/picker-legacy/picker.js +4 -36
- package/dist/collection/components/picker-legacy-column/picker-column.js +1 -3
- package/dist/collection/components/popover/popover.js +5 -59
- package/dist/collection/components/progress-bar/progress-bar.js +0 -10
- package/dist/collection/components/radio/radio.js +0 -14
- package/dist/collection/components/radio-group/radio-group.js +0 -8
- package/dist/collection/components/range/range.js +0 -32
- package/dist/collection/components/refresher/refresher.js +0 -12
- package/dist/collection/components/refresher-content/refresher-content.js +0 -8
- package/dist/collection/components/reorder-group/reorder-group.js +0 -2
- package/dist/collection/components/ripple-effect/ripple-effect.js +0 -2
- package/dist/collection/components/route/route.js +3 -13
- package/dist/collection/components/route-redirect/route-redirect.js +0 -4
- package/dist/collection/components/router/router.js +0 -4
- package/dist/collection/components/router-link/router-link.js +1 -13
- package/dist/collection/components/router-outlet/router-outlet.js +3 -13
- package/dist/collection/components/searchbar/searchbar.js +0 -44
- package/dist/collection/components/segment/segment.js +0 -12
- package/dist/collection/components/segment-button/segment-button.js +0 -10
- package/dist/collection/components/segment-view/segment-view.js +0 -2
- package/dist/collection/components/select/select.js +0 -38
- package/dist/collection/components/select-modal/select-modal.js +0 -6
- package/dist/collection/components/select-option/select-option.js +0 -4
- package/dist/collection/components/select-popover/select-popover.js +0 -10
- package/dist/collection/components/skeleton-text/skeleton-text.js +0 -2
- package/dist/collection/components/spinner/spinner.js +0 -8
- package/dist/collection/components/split-pane/split-pane.js +0 -6
- package/dist/collection/components/tab/tab.js +1 -9
- package/dist/collection/components/tab-bar/tab-bar.js +0 -6
- package/dist/collection/components/tab-button/tab-button.js +0 -16
- package/dist/collection/components/tabs/tabs.js +0 -2
- package/dist/collection/components/text/text.js +0 -2
- package/dist/collection/components/textarea/textarea.js +1 -57
- package/dist/collection/components/title/title.js +0 -4
- package/dist/collection/components/toast/toast.js +5 -49
- package/dist/collection/components/toggle/toggle.js +0 -18
- package/dist/collection/components/toolbar/toolbar.js +0 -2
- package/dist/collection/utils/focus-visible.js +4 -34
- package/dist/docs.d.ts +0 -8
- package/dist/docs.json +572 -1710
- package/dist/esm/{app-globals-32740a0d.js → app-globals-5dbb61a5.js} +1 -1
- package/dist/esm/{button-active-0e590bc4.js → button-active-f6503382.js} +1 -1
- package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-ea5a37bc.js} +4 -34
- package/dist/esm/{hardware-back-button-18d38325.js → hardware-back-button-06ef3c3e.js} +2 -2
- package/dist/esm/{index-7bdf1ee6.js → index-24b48b06.js} +2 -2
- package/dist/esm/{index-0f61352c.js → index-28849c61.js} +756 -1129
- package/dist/esm/{index-4f0570f4.js → index-3ad7f18b.js} +4 -4
- package/dist/esm/index.js +8 -8
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +5 -5
- package/dist/esm/ion-alert.entry.js +5 -5
- package/dist/esm/ion-app_8.entry.js +7 -7
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +5 -5
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input-password-toggle.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +4 -4
- package/dist/esm/ion-menu_3.entry.js +5 -5
- package/dist/esm/ion-modal.entry.js +5 -5
- package/dist/esm/ion-nav_2.entry.js +3 -3
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +2 -2
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +5 -5
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +2 -2
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +2 -2
- package/dist/esm/ion-select-modal.entry.js +4 -4
- package/dist/esm/ion-select_3.entry.js +4 -4
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +2 -2
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +4 -4
- package/dist/esm/ion-toggle.entry.js +2 -2
- package/dist/esm/{ionic-global-35cabcff.js → ionic-global-c81d82ab.js} +1 -1
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-72ec83a8.js → ios.transition-4ee1a3af.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-1f612b9f.js → md.transition-5106a0d2.js} +3 -3
- package/dist/esm/{overlays-cba25d39.js → overlays-e7b9d6d9.js} +2 -2
- package/dist/esm/{status-tap-a7026a46.js → status-tap-f472b09f.js} +1 -1
- package/dist/esm-es5/app-globals-5dbb61a5.js +4 -0
- package/dist/esm-es5/{button-active-0e590bc4.js → button-active-f6503382.js} +1 -1
- package/dist/esm-es5/focus-visible-ea5a37bc.js +4 -0
- package/dist/esm-es5/{hardware-back-button-18d38325.js → hardware-back-button-06ef3c3e.js} +1 -1
- package/dist/esm-es5/{index-7bdf1ee6.js → index-24b48b06.js} +1 -1
- package/dist/esm-es5/index-28849c61.js +5 -0
- package/dist/esm-es5/{index-4f0570f4.js → index-3ad7f18b.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/{ionic-global-35cabcff.js → ionic-global-c81d82ab.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-72ec83a8.js → ios.transition-4ee1a3af.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{md.transition-1f612b9f.js → md.transition-5106a0d2.js} +1 -1
- package/dist/esm-es5/{overlays-cba25d39.js → overlays-e7b9d6d9.js} +1 -1
- package/dist/esm-es5/{status-tap-a7026a46.js → status-tap-f472b09f.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-255d9087.system.entry.js → p-01186920.system.entry.js} +1 -1
- package/dist/ionic/p-021c1da5.js +4 -0
- package/dist/ionic/{p-a772be95.js → p-0303d0f8.js} +1 -1
- package/dist/ionic/{p-e46ba5cd.js → p-0574e87e.js} +1 -1
- package/dist/ionic/{p-d8d37758.entry.js → p-081a4ce4.entry.js} +1 -1
- package/dist/ionic/{p-8b2d8ddb.system.js → p-0aa833fb.system.js} +1 -1
- package/dist/ionic/{p-d737a7d9.entry.js → p-0bf0e55c.entry.js} +1 -1
- package/dist/ionic/{p-979f352d.system.entry.js → p-0c786bdf.system.entry.js} +1 -1
- package/dist/ionic/{p-6a131e4b.system.entry.js → p-1046866e.system.entry.js} +1 -1
- package/dist/ionic/{p-e896891b.system.entry.js → p-12a722b8.system.entry.js} +1 -1
- package/dist/ionic/{p-64b0068b.entry.js → p-141f79c7.entry.js} +1 -1
- package/dist/ionic/{p-e3c8fb01.entry.js → p-14be4015.entry.js} +1 -1
- package/dist/ionic/{p-e3f626ea.system.entry.js → p-14e159ea.system.entry.js} +1 -1
- package/dist/ionic/{p-75be4567.entry.js → p-15e76dd1.entry.js} +1 -1
- package/dist/ionic/{p-047eabc5.entry.js → p-16188af7.entry.js} +1 -1
- package/dist/ionic/p-16799667.system.entry.js +4 -0
- package/dist/ionic/p-16bfb979.system.entry.js +4 -0
- package/dist/ionic/{p-6f04bf2f.system.js → p-17474161.system.js} +1 -1
- package/dist/ionic/{p-fb7b7319.entry.js → p-19ec4f42.entry.js} +1 -1
- package/dist/ionic/{p-afe932a1.system.entry.js → p-1e010627.system.entry.js} +1 -1
- package/dist/ionic/{p-81494564.system.entry.js → p-1e67b266.system.entry.js} +1 -1
- package/dist/ionic/{p-43febc77.system.entry.js → p-2172893e.system.entry.js} +1 -1
- package/dist/ionic/p-21e5e7e4.js +4 -0
- package/dist/ionic/{p-f8a8295c.system.entry.js → p-2507278c.system.entry.js} +1 -1
- package/dist/ionic/p-25180df3.system.js +5 -0
- package/dist/ionic/{p-a3bea030.system.entry.js → p-2799c6d3.system.entry.js} +1 -1
- package/dist/ionic/{p-a8cf7e93.system.entry.js → p-2abae1cc.system.entry.js} +1 -1
- package/dist/ionic/{p-45e4a1e3.system.entry.js → p-2b838f86.system.entry.js} +1 -1
- package/dist/ionic/{p-93bc2080.entry.js → p-2b9b78c7.entry.js} +1 -1
- package/dist/ionic/{p-56667886.system.entry.js → p-2bd0ae94.system.entry.js} +2 -2
- package/dist/ionic/{p-d83d0d32.system.entry.js → p-2e46590d.system.entry.js} +1 -1
- package/dist/ionic/{p-876d7e0d.entry.js → p-2fc0dafe.entry.js} +1 -1
- package/dist/ionic/{p-8ceead8f.system.js → p-322c5fb4.system.js} +1 -1
- package/dist/ionic/{p-99658fa2.entry.js → p-33a8a71b.entry.js} +1 -1
- package/dist/ionic/{p-04f14c79.system.js → p-372ae7f4.system.js} +1 -1
- package/dist/ionic/{p-38dac839.system.entry.js → p-37cb43bd.system.entry.js} +1 -1
- package/dist/ionic/{p-2564d9b9.system.js → p-3c8e5c23.system.js} +1 -1
- package/dist/ionic/{p-84827719.system.entry.js → p-424eb140.system.entry.js} +1 -1
- package/dist/ionic/{p-e837530a.entry.js → p-4439fc2a.entry.js} +1 -1
- package/dist/ionic/{p-4a57dd17.entry.js → p-45693d7e.entry.js} +1 -1
- package/dist/ionic/p-49a0e74c.entry.js +4 -0
- package/dist/ionic/{p-35f02a74.entry.js → p-4ec778aa.entry.js} +1 -1
- package/dist/ionic/{p-7fa854a7.entry.js → p-508d024a.entry.js} +1 -1
- package/dist/ionic/{p-e4966716.entry.js → p-52d7a191.entry.js} +1 -1
- package/dist/ionic/{p-dcad1a3d.system.entry.js → p-567de071.system.entry.js} +1 -1
- package/dist/ionic/{p-9c4f4367.system.entry.js → p-5823babc.system.entry.js} +1 -1
- package/dist/ionic/{p-085dbcb4.system.entry.js → p-58d5df0c.system.entry.js} +1 -1
- package/dist/ionic/{p-e5c69948.entry.js → p-5ab1b709.entry.js} +1 -1
- package/dist/ionic/{p-dddb317f.entry.js → p-5b932840.entry.js} +1 -1
- package/dist/ionic/{p-2f9f5bea.system.js → p-5da94421.system.js} +1 -1
- package/dist/ionic/{p-735f093b.system.entry.js → p-5fce0c0b.system.entry.js} +1 -1
- package/dist/ionic/{p-d09b25f9.system.entry.js → p-626fd66d.system.entry.js} +1 -1
- package/dist/ionic/{p-b2ef1bb0.entry.js → p-62af944c.entry.js} +1 -1
- package/dist/ionic/{p-bf9210c7.system.entry.js → p-63b0abde.system.entry.js} +1 -1
- package/dist/ionic/{p-53ad8ff4.system.entry.js → p-6499df44.system.entry.js} +1 -1
- package/dist/ionic/{p-12f711f4.system.entry.js → p-66640ff7.system.entry.js} +1 -1
- package/dist/ionic/p-69066a53.js +4 -0
- package/dist/ionic/{p-c4dc27a0.system.entry.js → p-69666e8a.system.entry.js} +1 -1
- package/dist/ionic/{p-6d350e1f.entry.js → p-6b280620.entry.js} +1 -1
- package/dist/ionic/{p-ae2e0f50.entry.js → p-6d32975a.entry.js} +1 -1
- package/dist/ionic/{p-5ae14e75.entry.js → p-6d6cedc5.entry.js} +1 -1
- package/dist/ionic/{p-6c29e51f.entry.js → p-73dc4950.entry.js} +1 -1
- package/dist/ionic/{p-c2496925.system.entry.js → p-7458862e.system.entry.js} +1 -1
- package/dist/ionic/{p-84a6d0da.system.entry.js → p-797eeea8.system.entry.js} +1 -1
- package/dist/ionic/{p-99c5a3a0.entry.js → p-7b9a2b23.entry.js} +1 -1
- package/dist/ionic/{p-0ba102ec.system.entry.js → p-7ddc46c3.system.entry.js} +1 -1
- package/dist/ionic/{p-08c16f05.system.entry.js → p-7ed1657c.system.entry.js} +1 -1
- package/dist/ionic/{p-19bfac92.js → p-88e63c7d.js} +1 -1
- package/dist/ionic/{p-b50c6cd6.system.entry.js → p-8a5b9491.system.entry.js} +1 -1
- package/dist/ionic/{p-e8784b73.entry.js → p-8b8be2fd.entry.js} +1 -1
- package/dist/ionic/{p-e11ef2b7.entry.js → p-908d6080.entry.js} +1 -1
- package/dist/ionic/{p-11330967.entry.js → p-937a7e21.entry.js} +1 -1
- package/dist/ionic/{p-3e2c05a8.entry.js → p-942b5e13.entry.js} +1 -1
- package/dist/ionic/{p-b7027235.entry.js → p-95775830.entry.js} +1 -1
- package/dist/ionic/{p-6b6ccc63.entry.js → p-982315a6.entry.js} +1 -1
- package/dist/ionic/{p-a915830c.system.entry.js → p-98231c01.system.entry.js} +1 -1
- package/dist/ionic/{p-add1b61c.system.entry.js → p-985a7e17.system.entry.js} +1 -1
- package/dist/ionic/{p-41cabce4.entry.js → p-98ff6b32.entry.js} +1 -1
- package/dist/ionic/{p-d18dc399.entry.js → p-9df2c6fb.entry.js} +1 -1
- package/dist/ionic/{p-265d65cb.entry.js → p-9ee1e8a6.entry.js} +1 -1
- package/dist/ionic/p-9f3008d4.system.js +4 -0
- package/dist/ionic/{p-4ab93cfa.entry.js → p-9fa07aec.entry.js} +1 -1
- package/dist/ionic/{p-32e1825e.entry.js → p-a43467d8.entry.js} +1 -1
- package/dist/ionic/{p-78067282.system.js → p-a4565eb5.system.js} +1 -1
- package/dist/ionic/{p-a64f199d.system.entry.js → p-a49378bb.system.entry.js} +1 -1
- package/dist/ionic/{p-57f92640.entry.js → p-a61cba41.entry.js} +1 -1
- package/dist/ionic/{p-cf110b0b.system.js → p-a69b9fc5.system.js} +1 -1
- package/dist/ionic/{p-43679a42.entry.js → p-afecb188.entry.js} +1 -1
- package/dist/ionic/{p-52f6a5cc.system.entry.js → p-b2272f51.system.entry.js} +1 -1
- package/dist/ionic/{p-b52ddc18.system.entry.js → p-b335ffed.system.entry.js} +1 -1
- package/dist/ionic/{p-8c9954a1.entry.js → p-b79ba17c.entry.js} +1 -1
- package/dist/ionic/p-b82d4cab.js +4 -0
- package/dist/ionic/{p-1179c304.entry.js → p-b9d7015f.entry.js} +1 -1
- package/dist/ionic/{p-c60e41c7.entry.js → p-bb0db172.entry.js} +1 -1
- package/dist/ionic/{p-2e396991.system.entry.js → p-bc36ad98.system.entry.js} +1 -1
- package/dist/ionic/{p-cb37f97d.entry.js → p-bdad26e3.entry.js} +1 -1
- package/dist/ionic/{p-89b075f4.system.entry.js → p-c29f8157.system.entry.js} +1 -1
- package/dist/ionic/{p-2e520289.entry.js → p-c41ac815.entry.js} +1 -1
- package/dist/ionic/{p-b6c8f5dc.system.js → p-c449820c.system.js} +1 -1
- package/dist/ionic/{p-c505bde7.system.entry.js → p-c4b53b16.system.entry.js} +1 -1
- package/dist/ionic/{p-17290742.entry.js → p-c9f3a539.entry.js} +1 -1
- package/dist/ionic/{p-a2e5c294.system.entry.js → p-ca065903.system.entry.js} +1 -1
- package/dist/ionic/{p-6e1c1cf1.system.entry.js → p-cac0e0b3.system.entry.js} +1 -1
- package/dist/ionic/{p-86bc3e6f.entry.js → p-cdc83025.entry.js} +1 -1
- package/dist/ionic/p-cf130350.system.js +4 -0
- package/dist/ionic/{p-07d1dbe2.system.entry.js → p-d18ab582.system.entry.js} +2 -2
- package/dist/ionic/{p-e9bd3df9.js → p-d6841eac.js} +1 -1
- package/dist/ionic/{p-de758235.js → p-d743e981.js} +1 -1
- package/dist/ionic/{p-78841a31.entry.js → p-d7aa6b00.entry.js} +1 -1
- package/dist/ionic/p-d836d43e.js +5 -0
- package/dist/ionic/{p-f2986b60.entry.js → p-da074ff7.entry.js} +1 -1
- package/dist/ionic/{p-0c64a077.entry.js → p-de930745.entry.js} +1 -1
- package/dist/ionic/{p-67d3729b.system.entry.js → p-e4ee80be.system.entry.js} +1 -1
- package/dist/ionic/{p-65774bef.system.entry.js → p-e4f69534.system.entry.js} +1 -1
- package/dist/ionic/{p-ea2ee20f.entry.js → p-e563a35c.entry.js} +1 -1
- package/dist/ionic/{p-938a029f.js → p-e6635685.js} +1 -1
- package/dist/ionic/{p-bb750ac0.system.js → p-e7ed4a7f.system.js} +1 -1
- package/dist/ionic/{p-6d9fa95e.system.entry.js → p-e85d901b.system.entry.js} +1 -1
- package/dist/ionic/{p-6828136c.entry.js → p-eba29931.entry.js} +1 -1
- package/dist/ionic/{p-ce32a54b.system.entry.js → p-ebf042e0.system.entry.js} +1 -1
- package/dist/ionic/{p-39539749.js → p-ecceeb90.js} +1 -1
- package/dist/ionic/{p-00751c2a.system.entry.js → p-ed75fcfb.system.entry.js} +1 -1
- package/dist/ionic/{p-eb717568.entry.js → p-efaffe74.entry.js} +1 -1
- package/dist/ionic/{p-b2f788b9.system.entry.js → p-f1acf541.system.entry.js} +1 -1
- package/dist/ionic/{p-27e81076.system.entry.js → p-f3102647.system.entry.js} +1 -1
- package/dist/ionic/{p-d37524be.system.js → p-f9a53abb.system.js} +1 -1
- package/dist/ionic/{p-0c093fae.system.entry.js → p-fca6ef5f.system.entry.js} +1 -1
- package/dist/ionic/{p-05562a80.entry.js → p-fec61c32.entry.js} +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/hydrate/index.d.ts +4 -10
- package/hydrate/index.js +746 -1388
- package/hydrate/index.mjs +746 -1388
- package/package.json +2 -2
- package/dist/esm-es5/app-globals-32740a0d.js +0 -4
- package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
- package/dist/esm-es5/index-0f61352c.js +0 -5
- package/dist/ionic/p-024da823.js +0 -4
- package/dist/ionic/p-18094a7c.system.entry.js +0 -4
- package/dist/ionic/p-2e78561b.js +0 -5
- package/dist/ionic/p-30019f0b.system.js +0 -4
- package/dist/ionic/p-6d7a98cc.system.entry.js +0 -4
- package/dist/ionic/p-711fd7fc.js +0 -4
- package/dist/ionic/p-779acec8.entry.js +0 -4
- package/dist/ionic/p-8e8839c4.system.js +0 -5
- package/dist/ionic/p-c468af8a.system.js +0 -4
- package/dist/ionic/p-d47265c8.js +0 -4
- package/dist/ionic/p-e85e6e02.js +0 -4
package/hydrate/index.mjs
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Readable } from 'stream';
|
|
5
5
|
|
|
6
|
-
const modeResolutionChain = [];
|
|
7
|
-
|
|
8
6
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
9
7
|
var globalThis = $stencilWindow;
|
|
10
8
|
var self = $stencilWindow;
|
|
@@ -36,7 +34,6 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
36
34
|
var CSS = $stencilWindow.CSS;
|
|
37
35
|
var CustomEvent = $stencilWindow.CustomEvent;
|
|
38
36
|
var Document = $stencilWindow.Document;
|
|
39
|
-
var ShadowRoot = $stencilWindow.ShadowRoot;
|
|
40
37
|
var DocumentFragment = $stencilWindow.DocumentFragment;
|
|
41
38
|
var DocumentType = $stencilWindow.DocumentType;
|
|
42
39
|
var DOMTokenList = $stencilWindow.DOMTokenList;
|
|
@@ -57,7 +54,6 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
57
54
|
var HTMLTemplateElement = $stencilWindow.HTMLTemplateElement;
|
|
58
55
|
var HTMLTitleElement = $stencilWindow.HTMLTitleElement;
|
|
59
56
|
var IntersectionObserver = $stencilWindow.IntersectionObserver;
|
|
60
|
-
var ResizeObserver = $stencilWindow.ResizeObserver;
|
|
61
57
|
var KeyboardEvent = $stencilWindow.KeyboardEvent;
|
|
62
58
|
var MouseEvent = $stencilWindow.MouseEvent;
|
|
63
59
|
var Node = $stencilWindow.Node;
|
|
@@ -129,235 +125,8 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
129
125
|
const NAMESPACE = 'ionic';
|
|
130
126
|
const BUILD = /* ionic */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
131
127
|
|
|
132
|
-
// TODO(FW-2832): types
|
|
133
|
-
class Config {
|
|
134
|
-
constructor() {
|
|
135
|
-
this.m = new Map();
|
|
136
|
-
}
|
|
137
|
-
reset(configObj) {
|
|
138
|
-
this.m = new Map(Object.entries(configObj));
|
|
139
|
-
}
|
|
140
|
-
get(key, fallback) {
|
|
141
|
-
const value = this.m.get(key);
|
|
142
|
-
return value !== undefined ? value : fallback;
|
|
143
|
-
}
|
|
144
|
-
getBoolean(key, fallback = false) {
|
|
145
|
-
const val = this.m.get(key);
|
|
146
|
-
if (val === undefined) {
|
|
147
|
-
return fallback;
|
|
148
|
-
}
|
|
149
|
-
if (typeof val === 'string') {
|
|
150
|
-
return val === 'true';
|
|
151
|
-
}
|
|
152
|
-
return !!val;
|
|
153
|
-
}
|
|
154
|
-
getNumber(key, fallback) {
|
|
155
|
-
const val = parseFloat(this.m.get(key));
|
|
156
|
-
return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
|
|
157
|
-
}
|
|
158
|
-
set(key, value) {
|
|
159
|
-
this.m.set(key, value);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
const config = /*@__PURE__*/ new Config();
|
|
163
|
-
const configFromSession = (win) => {
|
|
164
|
-
try {
|
|
165
|
-
const configStr = win.sessionStorage.getItem(IONIC_SESSION_KEY);
|
|
166
|
-
return configStr !== null ? JSON.parse(configStr) : {};
|
|
167
|
-
}
|
|
168
|
-
catch (e) {
|
|
169
|
-
return {};
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
const saveConfig = (win, c) => {
|
|
173
|
-
try {
|
|
174
|
-
win.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(c));
|
|
175
|
-
}
|
|
176
|
-
catch (e) {
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
const configFromURL = (win) => {
|
|
181
|
-
const configObj = {};
|
|
182
|
-
win.location.search
|
|
183
|
-
.slice(1)
|
|
184
|
-
.split('&')
|
|
185
|
-
.map((entry) => entry.split('='))
|
|
186
|
-
.map(([key, value]) => {
|
|
187
|
-
try {
|
|
188
|
-
return [decodeURIComponent(key), decodeURIComponent(value)];
|
|
189
|
-
}
|
|
190
|
-
catch (e) {
|
|
191
|
-
return ['', ''];
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
.filter(([key]) => startsWith(key, IONIC_PREFIX))
|
|
195
|
-
.map(([key, value]) => [key.slice(IONIC_PREFIX.length), value])
|
|
196
|
-
.forEach(([key, value]) => {
|
|
197
|
-
configObj[key] = value;
|
|
198
|
-
});
|
|
199
|
-
return configObj;
|
|
200
|
-
};
|
|
201
|
-
const startsWith = (input, search) => {
|
|
202
|
-
return input.substr(0, search.length) === search;
|
|
203
|
-
};
|
|
204
|
-
const IONIC_PREFIX = 'ionic:';
|
|
205
|
-
const IONIC_SESSION_KEY = 'ionic-persist-config';
|
|
206
|
-
|
|
207
|
-
const getPlatforms = (win) => setupPlatforms(win);
|
|
208
|
-
const isPlatform = (winOrPlatform, platform) => {
|
|
209
|
-
if (typeof winOrPlatform === 'string') {
|
|
210
|
-
platform = winOrPlatform;
|
|
211
|
-
winOrPlatform = undefined;
|
|
212
|
-
}
|
|
213
|
-
return getPlatforms(winOrPlatform).includes(platform);
|
|
214
|
-
};
|
|
215
|
-
const setupPlatforms = (win = window) => {
|
|
216
|
-
if (typeof win === 'undefined') {
|
|
217
|
-
return [];
|
|
218
|
-
}
|
|
219
|
-
win.Ionic = win.Ionic || {};
|
|
220
|
-
let platforms = win.Ionic.platforms;
|
|
221
|
-
if (platforms == null) {
|
|
222
|
-
platforms = win.Ionic.platforms = detectPlatforms(win);
|
|
223
|
-
platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
|
|
224
|
-
}
|
|
225
|
-
return platforms;
|
|
226
|
-
};
|
|
227
|
-
const detectPlatforms = (win) => {
|
|
228
|
-
const customPlatformMethods = config.get('platform');
|
|
229
|
-
return Object.keys(PLATFORMS_MAP).filter((p) => {
|
|
230
|
-
const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
|
|
231
|
-
return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
|
|
232
|
-
});
|
|
233
|
-
};
|
|
234
|
-
const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
|
|
235
|
-
const isIpad = (win) => {
|
|
236
|
-
// iOS 12 and below
|
|
237
|
-
if (testUserAgent(win, /iPad/i)) {
|
|
238
|
-
return true;
|
|
239
|
-
}
|
|
240
|
-
// iOS 13+
|
|
241
|
-
if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
|
|
242
|
-
return true;
|
|
243
|
-
}
|
|
244
|
-
return false;
|
|
245
|
-
};
|
|
246
|
-
const isIphone = (win) => testUserAgent(win, /iPhone/i);
|
|
247
|
-
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
|
248
|
-
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
|
249
|
-
const isAndroidTablet = (win) => {
|
|
250
|
-
return isAndroid(win) && !testUserAgent(win, /mobile/i);
|
|
251
|
-
};
|
|
252
|
-
const isPhablet = (win) => {
|
|
253
|
-
const width = win.innerWidth;
|
|
254
|
-
const height = win.innerHeight;
|
|
255
|
-
const smallest = Math.min(width, height);
|
|
256
|
-
const largest = Math.max(width, height);
|
|
257
|
-
return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
|
|
258
|
-
};
|
|
259
|
-
const isTablet = (win) => {
|
|
260
|
-
const width = win.innerWidth;
|
|
261
|
-
const height = win.innerHeight;
|
|
262
|
-
const smallest = Math.min(width, height);
|
|
263
|
-
const largest = Math.max(width, height);
|
|
264
|
-
return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
|
|
265
|
-
};
|
|
266
|
-
const isMobile = (win) => matchMedia$1(win, '(any-pointer:coarse)');
|
|
267
|
-
const isDesktop = (win) => !isMobile(win);
|
|
268
|
-
const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
|
269
|
-
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
270
|
-
const isCapacitorNative = (win) => {
|
|
271
|
-
const capacitor = win['Capacitor'];
|
|
272
|
-
return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative);
|
|
273
|
-
};
|
|
274
|
-
const isElectron = (win) => testUserAgent(win, /electron/i);
|
|
275
|
-
const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
|
|
276
|
-
const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
|
|
277
|
-
const matchMedia$1 = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
|
|
278
|
-
const PLATFORMS_MAP = {
|
|
279
|
-
ipad: isIpad,
|
|
280
|
-
iphone: isIphone,
|
|
281
|
-
ios: isIOS,
|
|
282
|
-
android: isAndroid,
|
|
283
|
-
phablet: isPhablet,
|
|
284
|
-
tablet: isTablet,
|
|
285
|
-
cordova: isCordova,
|
|
286
|
-
capacitor: isCapacitorNative,
|
|
287
|
-
electron: isElectron,
|
|
288
|
-
pwa: isPWA,
|
|
289
|
-
mobile: isMobile,
|
|
290
|
-
mobileweb: isMobileWeb,
|
|
291
|
-
desktop: isDesktop,
|
|
292
|
-
hybrid: isHybrid,
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
// TODO(FW-2832): types
|
|
296
|
-
let defaultMode;
|
|
297
|
-
const getIonMode$1 = (ref) => {
|
|
298
|
-
return (ref && getMode(ref)) || defaultMode;
|
|
299
|
-
};
|
|
300
|
-
const initialize = (userConfig = {}) => {
|
|
301
|
-
if (typeof window === 'undefined') {
|
|
302
|
-
return;
|
|
303
|
-
}
|
|
304
|
-
const doc = window.document;
|
|
305
|
-
const win = window;
|
|
306
|
-
const Ionic = (win.Ionic = win.Ionic || {});
|
|
307
|
-
const platformHelpers = {};
|
|
308
|
-
if (userConfig._ael) {
|
|
309
|
-
platformHelpers.ael = userConfig._ael;
|
|
310
|
-
}
|
|
311
|
-
if (userConfig._rel) {
|
|
312
|
-
platformHelpers.rel = userConfig._rel;
|
|
313
|
-
}
|
|
314
|
-
if (userConfig._ce) {
|
|
315
|
-
platformHelpers.ce = userConfig._ce;
|
|
316
|
-
}
|
|
317
|
-
setPlatformHelpers(platformHelpers);
|
|
318
|
-
// create the Ionic.config from raw config object (if it exists)
|
|
319
|
-
// and convert Ionic.config into a ConfigApi that has a get() fn
|
|
320
|
-
const configObj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), { persistConfig: false }), Ionic.config), configFromURL(win)), userConfig);
|
|
321
|
-
config.reset(configObj);
|
|
322
|
-
if (config.getBoolean('persistConfig')) {
|
|
323
|
-
saveConfig(win, configObj);
|
|
324
|
-
}
|
|
325
|
-
// Setup platforms
|
|
326
|
-
setupPlatforms(win);
|
|
327
|
-
// first see if the mode was set as an attribute on <html>
|
|
328
|
-
// which could have been set by the user, or by pre-rendering
|
|
329
|
-
// otherwise get the mode via config settings, and fallback to md
|
|
330
|
-
Ionic.config = config;
|
|
331
|
-
Ionic.mode = defaultMode = config.get('mode', doc.documentElement.getAttribute('mode') || (isPlatform(win, 'ios') ? 'ios' : 'md'));
|
|
332
|
-
config.set('mode', defaultMode);
|
|
333
|
-
doc.documentElement.setAttribute('mode', defaultMode);
|
|
334
|
-
doc.documentElement.classList.add(defaultMode);
|
|
335
|
-
if (config.getBoolean('_testing')) {
|
|
336
|
-
config.set('animated', false);
|
|
337
|
-
}
|
|
338
|
-
const isIonicElement = (elm) => { var _a; return (_a = elm.tagName) === null || _a === void 0 ? void 0 : _a.startsWith('ION-'); };
|
|
339
|
-
const isAllowedIonicModeValue = (elmMode) => ['ios', 'md'].includes(elmMode);
|
|
340
|
-
setMode((elm) => {
|
|
341
|
-
while (elm) {
|
|
342
|
-
const elmMode = elm.mode || elm.getAttribute('mode');
|
|
343
|
-
if (elmMode) {
|
|
344
|
-
if (isAllowedIonicModeValue(elmMode)) {
|
|
345
|
-
return elmMode;
|
|
346
|
-
}
|
|
347
|
-
else if (isIonicElement(elm)) {
|
|
348
|
-
console.warn('Invalid ionic mode: "' + elmMode + '", expected: "ios" or "md"');
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
elm = elm.parentElement;
|
|
352
|
-
}
|
|
353
|
-
return defaultMode;
|
|
354
|
-
});
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
const globalScripts = initialize;
|
|
358
|
-
|
|
359
128
|
/*
|
|
360
|
-
Stencil Hydrate Platform v4.
|
|
129
|
+
Stencil Hydrate Platform v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
361
130
|
*/
|
|
362
131
|
var __defProp = Object.defineProperty;
|
|
363
132
|
var __export = (target, all) => {
|
|
@@ -431,22 +200,29 @@ var unwrapErr = (result) => {
|
|
|
431
200
|
throw result.value;
|
|
432
201
|
}
|
|
433
202
|
};
|
|
203
|
+
var createTime = (fnName, tagName = "") => {
|
|
204
|
+
{
|
|
205
|
+
return () => {
|
|
206
|
+
return;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
var uniqueTime = (key, measureText) => {
|
|
211
|
+
{
|
|
212
|
+
return () => {
|
|
213
|
+
return;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
};
|
|
434
217
|
|
|
435
218
|
// src/runtime/runtime-constants.ts
|
|
436
219
|
var CONTENT_REF_ID = "r";
|
|
437
220
|
var ORG_LOCATION_ID = "o";
|
|
438
221
|
var SLOT_NODE_ID = "s";
|
|
439
222
|
var TEXT_NODE_ID = "t";
|
|
440
|
-
var COMMENT_NODE_ID = "c";
|
|
441
223
|
var HYDRATE_ID = "s-id";
|
|
442
224
|
var HYDRATED_STYLE_ID = "sty-id";
|
|
443
225
|
var HYDRATE_CHILD_ID = "c-id";
|
|
444
|
-
var STENCIL_DOC_DATA = "_stencilDocData";
|
|
445
|
-
var DEFAULT_DOC_DATA = {
|
|
446
|
-
hostIds: 0,
|
|
447
|
-
rootLevelIds: 0,
|
|
448
|
-
staticComponents: /* @__PURE__ */ new Set()
|
|
449
|
-
};
|
|
450
226
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
451
227
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
452
228
|
var h = (nodeName, vnodeData, ...children) => {
|
|
@@ -560,6 +336,318 @@ var convertToPrivate = (node) => {
|
|
|
560
336
|
vnode.$name$ = node.vname;
|
|
561
337
|
return vnode;
|
|
562
338
|
};
|
|
339
|
+
|
|
340
|
+
// src/runtime/client-hydrate.ts
|
|
341
|
+
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
342
|
+
const endHydrate = createTime("hydrateClient", tagName);
|
|
343
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
344
|
+
const childRenderNodes = [];
|
|
345
|
+
const slotNodes = [];
|
|
346
|
+
const shadowRootNodes = shadowRoot ? [] : null;
|
|
347
|
+
const vnode = hostRef.$vnode$ = newVNode(tagName, null);
|
|
348
|
+
if (!plt.$orgLocNodes$) {
|
|
349
|
+
initializeDocumentHydrate(doc$1.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
350
|
+
}
|
|
351
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
352
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
353
|
+
clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
|
|
354
|
+
childRenderNodes.map((c) => {
|
|
355
|
+
const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
|
|
356
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
357
|
+
const node = c.$elm$;
|
|
358
|
+
if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
|
|
359
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
360
|
+
}
|
|
361
|
+
if (!shadowRoot) {
|
|
362
|
+
node["s-hn"] = tagName;
|
|
363
|
+
if (orgLocationNode) {
|
|
364
|
+
node["s-ol"] = orgLocationNode;
|
|
365
|
+
node["s-ol"]["s-nr"] = node;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
369
|
+
});
|
|
370
|
+
if (shadowRoot) {
|
|
371
|
+
shadowRootNodes.map((shadowRootNode) => {
|
|
372
|
+
if (shadowRootNode) {
|
|
373
|
+
shadowRoot.appendChild(shadowRootNode);
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
endHydrate();
|
|
378
|
+
};
|
|
379
|
+
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
|
|
380
|
+
let childNodeType;
|
|
381
|
+
let childIdSplt;
|
|
382
|
+
let childVNode;
|
|
383
|
+
let i2;
|
|
384
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
385
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
386
|
+
if (childNodeType) {
|
|
387
|
+
childIdSplt = childNodeType.split(".");
|
|
388
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
389
|
+
childVNode = {
|
|
390
|
+
$flags$: 0,
|
|
391
|
+
$hostId$: childIdSplt[0],
|
|
392
|
+
$nodeId$: childIdSplt[1],
|
|
393
|
+
$depth$: childIdSplt[2],
|
|
394
|
+
$index$: childIdSplt[3],
|
|
395
|
+
$tag$: node.tagName.toLowerCase(),
|
|
396
|
+
$elm$: node,
|
|
397
|
+
$attrs$: null,
|
|
398
|
+
$children$: null,
|
|
399
|
+
$key$: null,
|
|
400
|
+
$name$: null,
|
|
401
|
+
$text$: null
|
|
402
|
+
};
|
|
403
|
+
childRenderNodes.push(childVNode);
|
|
404
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
405
|
+
if (!parentVNode.$children$) {
|
|
406
|
+
parentVNode.$children$ = [];
|
|
407
|
+
}
|
|
408
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
409
|
+
parentVNode = childVNode;
|
|
410
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
411
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
if (node.shadowRoot) {
|
|
416
|
+
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
417
|
+
clientHydrate(
|
|
418
|
+
parentVNode,
|
|
419
|
+
childRenderNodes,
|
|
420
|
+
slotNodes,
|
|
421
|
+
shadowRootNodes,
|
|
422
|
+
hostElm,
|
|
423
|
+
node.shadowRoot.childNodes[i2],
|
|
424
|
+
hostId
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
|
|
429
|
+
clientHydrate(
|
|
430
|
+
parentVNode,
|
|
431
|
+
childRenderNodes,
|
|
432
|
+
slotNodes,
|
|
433
|
+
shadowRootNodes,
|
|
434
|
+
hostElm,
|
|
435
|
+
node.childNodes[i2],
|
|
436
|
+
hostId
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
440
|
+
childIdSplt = node.nodeValue.split(".");
|
|
441
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
442
|
+
childNodeType = childIdSplt[0];
|
|
443
|
+
childVNode = {
|
|
444
|
+
$flags$: 0,
|
|
445
|
+
$hostId$: childIdSplt[1],
|
|
446
|
+
$nodeId$: childIdSplt[2],
|
|
447
|
+
$depth$: childIdSplt[3],
|
|
448
|
+
$index$: childIdSplt[4],
|
|
449
|
+
$elm$: node,
|
|
450
|
+
$attrs$: null,
|
|
451
|
+
$children$: null,
|
|
452
|
+
$key$: null,
|
|
453
|
+
$name$: null,
|
|
454
|
+
$tag$: null,
|
|
455
|
+
$text$: null
|
|
456
|
+
};
|
|
457
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
458
|
+
childVNode.$elm$ = node.nextSibling;
|
|
459
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
460
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
461
|
+
childRenderNodes.push(childVNode);
|
|
462
|
+
node.remove();
|
|
463
|
+
if (!parentVNode.$children$) {
|
|
464
|
+
parentVNode.$children$ = [];
|
|
465
|
+
}
|
|
466
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
467
|
+
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
468
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
} else if (childVNode.$hostId$ === hostId) {
|
|
472
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
473
|
+
childVNode.$tag$ = "slot";
|
|
474
|
+
if (childIdSplt[5]) {
|
|
475
|
+
node["s-sn"] = childVNode.$name$ = childIdSplt[5];
|
|
476
|
+
} else {
|
|
477
|
+
node["s-sn"] = "";
|
|
478
|
+
}
|
|
479
|
+
node["s-sr"] = true;
|
|
480
|
+
if (shadowRootNodes) {
|
|
481
|
+
childVNode.$elm$ = doc$1.createElement(childVNode.$tag$);
|
|
482
|
+
if (childVNode.$name$) {
|
|
483
|
+
childVNode.$elm$.setAttribute("name", childVNode.$name$);
|
|
484
|
+
}
|
|
485
|
+
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
486
|
+
node.remove();
|
|
487
|
+
if (childVNode.$depth$ === "0") {
|
|
488
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
slotNodes.push(childVNode);
|
|
492
|
+
if (!parentVNode.$children$) {
|
|
493
|
+
parentVNode.$children$ = [];
|
|
494
|
+
}
|
|
495
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
496
|
+
} else if (childNodeType === CONTENT_REF_ID) {
|
|
497
|
+
if (shadowRootNodes) {
|
|
498
|
+
node.remove();
|
|
499
|
+
} else {
|
|
500
|
+
hostElm["s-cr"] = node;
|
|
501
|
+
node["s-cn"] = true;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
507
|
+
const vnode = newVNode(null, node.textContent);
|
|
508
|
+
vnode.$elm$ = node;
|
|
509
|
+
vnode.$index$ = "0";
|
|
510
|
+
parentVNode.$children$ = [vnode];
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
514
|
+
if (node.nodeType === 1 /* ElementNode */) {
|
|
515
|
+
let i2 = 0;
|
|
516
|
+
if (node.shadowRoot) {
|
|
517
|
+
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
518
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
for (i2 = 0; i2 < node.childNodes.length; i2++) {
|
|
522
|
+
initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
|
|
523
|
+
}
|
|
524
|
+
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
525
|
+
const childIdSplt = node.nodeValue.split(".");
|
|
526
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
527
|
+
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
528
|
+
node.nodeValue = "";
|
|
529
|
+
node["s-en"] = childIdSplt[3];
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
// src/runtime/mode.ts
|
|
535
|
+
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
536
|
+
var getMode = (ref) => getHostRef(ref).$modeName$;
|
|
537
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
538
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
539
|
+
if (propType & 4 /* Boolean */) {
|
|
540
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
541
|
+
}
|
|
542
|
+
if (propType & 2 /* Number */) {
|
|
543
|
+
return parseFloat(propValue);
|
|
544
|
+
}
|
|
545
|
+
if (propType & 1 /* String */) {
|
|
546
|
+
return String(propValue);
|
|
547
|
+
}
|
|
548
|
+
return propValue;
|
|
549
|
+
}
|
|
550
|
+
return propValue;
|
|
551
|
+
};
|
|
552
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
553
|
+
|
|
554
|
+
// src/runtime/event-emitter.ts
|
|
555
|
+
var createEvent = (ref, name, flags) => {
|
|
556
|
+
const elm = getElement(ref);
|
|
557
|
+
return {
|
|
558
|
+
emit: (detail) => {
|
|
559
|
+
return emitEvent(elm, name, {
|
|
560
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
561
|
+
composed: !!(flags & 2 /* Composed */),
|
|
562
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
563
|
+
detail
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
var emitEvent = (elm, name, opts) => {
|
|
569
|
+
const ev = plt.ce(name, opts);
|
|
570
|
+
elm.dispatchEvent(ev);
|
|
571
|
+
return ev;
|
|
572
|
+
};
|
|
573
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
574
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
575
|
+
let style = styles.get(scopeId2);
|
|
576
|
+
{
|
|
577
|
+
style = cssText;
|
|
578
|
+
}
|
|
579
|
+
styles.set(scopeId2, style);
|
|
580
|
+
};
|
|
581
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
582
|
+
var _a;
|
|
583
|
+
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
584
|
+
const style = styles.get(scopeId2);
|
|
585
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc$1;
|
|
586
|
+
if (style) {
|
|
587
|
+
if (typeof style === "string") {
|
|
588
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
589
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
590
|
+
let styleElm;
|
|
591
|
+
if (!appliedStyles) {
|
|
592
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
593
|
+
}
|
|
594
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
595
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
596
|
+
styleElm.innerHTML = style;
|
|
597
|
+
} else {
|
|
598
|
+
styleElm = doc$1.createElement("style");
|
|
599
|
+
styleElm.innerHTML = style;
|
|
600
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc$1);
|
|
601
|
+
if (nonce != null) {
|
|
602
|
+
styleElm.setAttribute("nonce", nonce);
|
|
603
|
+
}
|
|
604
|
+
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
605
|
+
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
606
|
+
}
|
|
607
|
+
const injectStyle = (
|
|
608
|
+
/**
|
|
609
|
+
* we render a scoped component
|
|
610
|
+
*/
|
|
611
|
+
!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
|
|
612
|
+
* we are using shadow dom and render the style tag within the shadowRoot
|
|
613
|
+
*/
|
|
614
|
+
cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
|
|
615
|
+
);
|
|
616
|
+
if (injectStyle) {
|
|
617
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
621
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
622
|
+
}
|
|
623
|
+
if (appliedStyles) {
|
|
624
|
+
appliedStyles.add(scopeId2);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return scopeId2;
|
|
630
|
+
};
|
|
631
|
+
var attachStyles = (hostRef) => {
|
|
632
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
633
|
+
const elm = hostRef.$hostElement$;
|
|
634
|
+
const flags = cmpMeta.$flags$;
|
|
635
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
636
|
+
const scopeId2 = addStyle(
|
|
637
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
638
|
+
cmpMeta,
|
|
639
|
+
hostRef.$modeName$
|
|
640
|
+
);
|
|
641
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
642
|
+
elm["s-sc"] = scopeId2;
|
|
643
|
+
elm.classList.add(scopeId2 + "-h");
|
|
644
|
+
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
645
|
+
elm.classList.add(scopeId2 + "-s");
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
endAttachStyles();
|
|
649
|
+
};
|
|
650
|
+
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
563
651
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
564
652
|
if (oldValue !== newValue) {
|
|
565
653
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -568,9 +656,6 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
568
656
|
const classList = elm.classList;
|
|
569
657
|
const oldClasses = parseClassList(oldValue);
|
|
570
658
|
const newClasses = parseClassList(newValue);
|
|
571
|
-
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
|
572
|
-
newClasses.push(elm["s-si"]);
|
|
573
|
-
}
|
|
574
659
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
575
660
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
576
661
|
} else if (memberName === "style") {
|
|
@@ -621,11 +706,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
621
706
|
if (memberName === "list") {
|
|
622
707
|
isProp = false;
|
|
623
708
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
624
|
-
|
|
625
|
-
elm[memberName] = n;
|
|
626
|
-
} else {
|
|
627
|
-
elm.setAttribute(memberName, n);
|
|
628
|
-
}
|
|
709
|
+
elm[memberName] = n;
|
|
629
710
|
}
|
|
630
711
|
} else {
|
|
631
712
|
elm[memberName] = newValue;
|
|
@@ -660,15 +741,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
660
741
|
}
|
|
661
742
|
};
|
|
662
743
|
var parseClassListRegex = /\s/;
|
|
663
|
-
var parseClassList = (value) =>
|
|
664
|
-
if (typeof value === "object" && "baseVal" in value) {
|
|
665
|
-
value = value.baseVal;
|
|
666
|
-
}
|
|
667
|
-
if (!value) {
|
|
668
|
-
return [];
|
|
669
|
-
}
|
|
670
|
-
return value.split(parseClassListRegex);
|
|
671
|
-
};
|
|
744
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
672
745
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
673
746
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
674
747
|
|
|
@@ -792,7 +865,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
792
865
|
};
|
|
793
866
|
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
794
867
|
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
795
|
-
const oldSlotChildNodes = Array.from(parentElm.
|
|
868
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
796
869
|
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
797
870
|
let node = parentElm;
|
|
798
871
|
while (node = node.nextSibling) {
|
|
@@ -1006,7 +1079,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1006
1079
|
}
|
|
1007
1080
|
};
|
|
1008
1081
|
var updateFallbackSlotVisibility = (elm) => {
|
|
1009
|
-
const childNodes = elm.
|
|
1082
|
+
const childNodes = elm.childNodes;
|
|
1010
1083
|
for (const childNode of childNodes) {
|
|
1011
1084
|
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1012
1085
|
if (childNode["s-sr"]) {
|
|
@@ -1019,7 +1092,7 @@ var updateFallbackSlotVisibility = (elm) => {
|
|
|
1019
1092
|
childNode.hidden = true;
|
|
1020
1093
|
break;
|
|
1021
1094
|
}
|
|
1022
|
-
} else
|
|
1095
|
+
} else {
|
|
1023
1096
|
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
1024
1097
|
childNode.hidden = true;
|
|
1025
1098
|
break;
|
|
@@ -1037,10 +1110,9 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1037
1110
|
let node;
|
|
1038
1111
|
let hostContentNodes;
|
|
1039
1112
|
let j;
|
|
1040
|
-
const
|
|
1041
|
-
for (const childNode of children) {
|
|
1113
|
+
for (const childNode of elm.childNodes) {
|
|
1042
1114
|
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1043
|
-
hostContentNodes = node.parentNode.
|
|
1115
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
1044
1116
|
const slotName = childNode["s-sn"];
|
|
1045
1117
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1046
1118
|
node = hostContentNodes[j];
|
|
@@ -1127,9 +1199,9 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
|
1127
1199
|
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
1128
1200
|
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
1129
1201
|
if (scopeIds.size) {
|
|
1130
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] =
|
|
1202
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
|
|
1131
1203
|
if (element["s-ol"] || iterateChildNodes) {
|
|
1132
|
-
for (const childNode of Array.from(element.
|
|
1204
|
+
for (const childNode of Array.from(element.childNodes)) {
|
|
1133
1205
|
updateElementScopeIds(childNode, element, true);
|
|
1134
1206
|
}
|
|
1135
1207
|
}
|
|
@@ -1240,519 +1312,6 @@ var slotReferenceDebugNode = (slotVNode) => doc$1.createComment(
|
|
|
1240
1312
|
var originalLocationDebugNode = (nodeToRelocate) => doc$1.createComment(
|
|
1241
1313
|
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
1242
1314
|
);
|
|
1243
|
-
var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
1244
|
-
let slottedNodeLocation;
|
|
1245
|
-
if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
|
|
1246
|
-
slottedNodeLocation = newChild["s-ol"];
|
|
1247
|
-
} else {
|
|
1248
|
-
slottedNodeLocation = document.createTextNode("");
|
|
1249
|
-
slottedNodeLocation["s-nr"] = newChild;
|
|
1250
|
-
}
|
|
1251
|
-
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
1252
|
-
const parent = slotNode["s-cr"].parentNode;
|
|
1253
|
-
const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
|
|
1254
|
-
if (typeof position !== "undefined") {
|
|
1255
|
-
{
|
|
1256
|
-
slottedNodeLocation["s-oo"] = position;
|
|
1257
|
-
const childNodes = parent.__childNodes || parent.childNodes;
|
|
1258
|
-
const slotRelocateNodes = [slottedNodeLocation];
|
|
1259
|
-
childNodes.forEach((n) => {
|
|
1260
|
-
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
1261
|
-
});
|
|
1262
|
-
slotRelocateNodes.sort((a, b) => {
|
|
1263
|
-
if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
|
|
1264
|
-
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
1265
|
-
return 0;
|
|
1266
|
-
});
|
|
1267
|
-
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
1268
|
-
}
|
|
1269
|
-
} else {
|
|
1270
|
-
appendMethod.call(parent, slottedNodeLocation);
|
|
1271
|
-
}
|
|
1272
|
-
newChild["s-ol"] = slottedNodeLocation;
|
|
1273
|
-
newChild["s-sh"] = slotNode["s-hn"];
|
|
1274
|
-
};
|
|
1275
|
-
var createTime = (fnName, tagName = "") => {
|
|
1276
|
-
{
|
|
1277
|
-
return () => {
|
|
1278
|
-
return;
|
|
1279
|
-
};
|
|
1280
|
-
}
|
|
1281
|
-
};
|
|
1282
|
-
var uniqueTime = (key, measureText) => {
|
|
1283
|
-
{
|
|
1284
|
-
return () => {
|
|
1285
|
-
return;
|
|
1286
|
-
};
|
|
1287
|
-
}
|
|
1288
|
-
};
|
|
1289
|
-
|
|
1290
|
-
// src/runtime/client-hydrate.ts
|
|
1291
|
-
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1292
|
-
const endHydrate = createTime("hydrateClient", tagName);
|
|
1293
|
-
const shadowRoot = hostElm.shadowRoot;
|
|
1294
|
-
const childRenderNodes = [];
|
|
1295
|
-
const slotNodes = [];
|
|
1296
|
-
const slottedNodes = [];
|
|
1297
|
-
const shadowRootNodes = shadowRoot ? [] : null;
|
|
1298
|
-
const vnode = newVNode(tagName, null);
|
|
1299
|
-
vnode.$elm$ = hostElm;
|
|
1300
|
-
if (!plt.$orgLocNodes$) {
|
|
1301
|
-
initializeDocumentHydrate(doc$1.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
1302
|
-
}
|
|
1303
|
-
hostElm[HYDRATE_ID] = hostId;
|
|
1304
|
-
hostElm.removeAttribute(HYDRATE_ID);
|
|
1305
|
-
hostRef.$vnode$ = clientHydrate(
|
|
1306
|
-
vnode,
|
|
1307
|
-
childRenderNodes,
|
|
1308
|
-
slotNodes,
|
|
1309
|
-
shadowRootNodes,
|
|
1310
|
-
hostElm,
|
|
1311
|
-
hostElm,
|
|
1312
|
-
hostId,
|
|
1313
|
-
slottedNodes
|
|
1314
|
-
);
|
|
1315
|
-
let crIndex = 0;
|
|
1316
|
-
const crLength = childRenderNodes.length;
|
|
1317
|
-
let childRenderNode;
|
|
1318
|
-
for (crIndex; crIndex < crLength; crIndex++) {
|
|
1319
|
-
childRenderNode = childRenderNodes[crIndex];
|
|
1320
|
-
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
1321
|
-
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1322
|
-
const node = childRenderNode.$elm$;
|
|
1323
|
-
if (!shadowRoot) {
|
|
1324
|
-
node["s-hn"] = tagName.toUpperCase();
|
|
1325
|
-
if (childRenderNode.$tag$ === "slot") {
|
|
1326
|
-
node["s-cr"] = hostElm["s-cr"];
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1330
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1331
|
-
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1332
|
-
}
|
|
1333
|
-
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
1334
|
-
if (!shadowRoot) {
|
|
1335
|
-
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1339
|
-
}
|
|
1340
|
-
const hosts = [];
|
|
1341
|
-
let snIndex = 0;
|
|
1342
|
-
const snLen = slottedNodes.length;
|
|
1343
|
-
let slotGroup;
|
|
1344
|
-
let snGroupIdx;
|
|
1345
|
-
let snGroupLen;
|
|
1346
|
-
let slottedItem;
|
|
1347
|
-
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1348
|
-
slotGroup = slottedNodes[snIndex];
|
|
1349
|
-
if (!slotGroup || !slotGroup.length) continue;
|
|
1350
|
-
snGroupLen = slotGroup.length;
|
|
1351
|
-
snGroupIdx = 0;
|
|
1352
|
-
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1353
|
-
slottedItem = slotGroup[snGroupIdx];
|
|
1354
|
-
if (!hosts[slottedItem.hostId]) {
|
|
1355
|
-
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
1356
|
-
}
|
|
1357
|
-
if (!hosts[slottedItem.hostId]) continue;
|
|
1358
|
-
const hostEle = hosts[slottedItem.hostId];
|
|
1359
|
-
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1360
|
-
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1361
|
-
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1362
|
-
slottedItem.slot["s-cr"] = hostEle;
|
|
1363
|
-
} else {
|
|
1364
|
-
const hostChildren = hostEle.__childNodes || hostEle.childNodes;
|
|
1365
|
-
slottedItem.slot["s-cr"] = hostChildren[0];
|
|
1366
|
-
}
|
|
1367
|
-
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1368
|
-
}
|
|
1369
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1370
|
-
hostEle.appendChild(slottedItem.node);
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
if (shadowRoot) {
|
|
1375
|
-
let rnIdex = 0;
|
|
1376
|
-
const rnLen = shadowRootNodes.length;
|
|
1377
|
-
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1378
|
-
shadowRoot.appendChild(shadowRootNodes[rnIdex]);
|
|
1379
|
-
}
|
|
1380
|
-
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1381
|
-
if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
|
|
1382
|
-
node.parentNode.removeChild(node);
|
|
1383
|
-
}
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
hostRef.$hostElement$ = hostElm;
|
|
1387
|
-
endHydrate();
|
|
1388
|
-
};
|
|
1389
|
-
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
|
|
1390
|
-
let childNodeType;
|
|
1391
|
-
let childIdSplt;
|
|
1392
|
-
let childVNode;
|
|
1393
|
-
let i2;
|
|
1394
|
-
const scopeId2 = hostElm["s-sc"];
|
|
1395
|
-
if (node.nodeType === 1 /* ElementNode */) {
|
|
1396
|
-
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1397
|
-
if (childNodeType) {
|
|
1398
|
-
childIdSplt = childNodeType.split(".");
|
|
1399
|
-
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1400
|
-
childVNode = createSimpleVNode({
|
|
1401
|
-
$flags$: 0,
|
|
1402
|
-
$hostId$: childIdSplt[0],
|
|
1403
|
-
$nodeId$: childIdSplt[1],
|
|
1404
|
-
$depth$: childIdSplt[2],
|
|
1405
|
-
$index$: childIdSplt[3],
|
|
1406
|
-
$tag$: node.tagName.toLowerCase(),
|
|
1407
|
-
$elm$: node,
|
|
1408
|
-
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
|
|
1409
|
-
// client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
|
|
1410
|
-
$attrs$: { class: node.className }
|
|
1411
|
-
});
|
|
1412
|
-
childRenderNodes.push(childVNode);
|
|
1413
|
-
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1414
|
-
if (!parentVNode.$children$) {
|
|
1415
|
-
parentVNode.$children$ = [];
|
|
1416
|
-
}
|
|
1417
|
-
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1418
|
-
if (typeof slotName === "string") {
|
|
1419
|
-
if (childVNode.$tag$ === "slot-fb") {
|
|
1420
|
-
addSlot(
|
|
1421
|
-
slotName,
|
|
1422
|
-
childIdSplt[2],
|
|
1423
|
-
childVNode,
|
|
1424
|
-
node,
|
|
1425
|
-
parentVNode,
|
|
1426
|
-
childRenderNodes,
|
|
1427
|
-
slotNodes,
|
|
1428
|
-
shadowRootNodes,
|
|
1429
|
-
slottedNodes
|
|
1430
|
-
);
|
|
1431
|
-
}
|
|
1432
|
-
childVNode.$elm$["s-sn"] = slotName;
|
|
1433
|
-
childVNode.$elm$.removeAttribute("s-sn");
|
|
1434
|
-
}
|
|
1435
|
-
if (childVNode.$index$ !== void 0) {
|
|
1436
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1437
|
-
}
|
|
1438
|
-
if (scopeId2) node["s-si"] = scopeId2;
|
|
1439
|
-
parentVNode = childVNode;
|
|
1440
|
-
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1441
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
if (node.shadowRoot) {
|
|
1446
|
-
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
1447
|
-
clientHydrate(
|
|
1448
|
-
parentVNode,
|
|
1449
|
-
childRenderNodes,
|
|
1450
|
-
slotNodes,
|
|
1451
|
-
shadowRootNodes,
|
|
1452
|
-
hostElm,
|
|
1453
|
-
node.shadowRoot.childNodes[i2],
|
|
1454
|
-
hostId,
|
|
1455
|
-
slottedNodes
|
|
1456
|
-
);
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1460
|
-
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
1461
|
-
clientHydrate(
|
|
1462
|
-
parentVNode,
|
|
1463
|
-
childRenderNodes,
|
|
1464
|
-
slotNodes,
|
|
1465
|
-
shadowRootNodes,
|
|
1466
|
-
hostElm,
|
|
1467
|
-
nonShadowNodes[i2],
|
|
1468
|
-
hostId,
|
|
1469
|
-
slottedNodes
|
|
1470
|
-
);
|
|
1471
|
-
}
|
|
1472
|
-
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1473
|
-
childIdSplt = node.nodeValue.split(".");
|
|
1474
|
-
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
1475
|
-
childNodeType = childIdSplt[0];
|
|
1476
|
-
childVNode = createSimpleVNode({
|
|
1477
|
-
$hostId$: childIdSplt[1],
|
|
1478
|
-
$nodeId$: childIdSplt[2],
|
|
1479
|
-
$depth$: childIdSplt[3],
|
|
1480
|
-
$index$: childIdSplt[4] || "0",
|
|
1481
|
-
$elm$: node,
|
|
1482
|
-
$attrs$: null,
|
|
1483
|
-
$children$: null,
|
|
1484
|
-
$key$: null,
|
|
1485
|
-
$name$: null,
|
|
1486
|
-
$tag$: null,
|
|
1487
|
-
$text$: null
|
|
1488
|
-
});
|
|
1489
|
-
if (childNodeType === TEXT_NODE_ID) {
|
|
1490
|
-
childVNode.$elm$ = node.nextSibling;
|
|
1491
|
-
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1492
|
-
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1493
|
-
childRenderNodes.push(childVNode);
|
|
1494
|
-
node.remove();
|
|
1495
|
-
if (hostId === childVNode.$hostId$) {
|
|
1496
|
-
if (!parentVNode.$children$) {
|
|
1497
|
-
parentVNode.$children$ = [];
|
|
1498
|
-
}
|
|
1499
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1500
|
-
}
|
|
1501
|
-
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1502
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1506
|
-
childVNode.$elm$ = node.nextSibling;
|
|
1507
|
-
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1508
|
-
childRenderNodes.push(childVNode);
|
|
1509
|
-
node.remove();
|
|
1510
|
-
}
|
|
1511
|
-
} else if (childVNode.$hostId$ === hostId) {
|
|
1512
|
-
if (childNodeType === SLOT_NODE_ID) {
|
|
1513
|
-
childVNode.$tag$ = "slot";
|
|
1514
|
-
const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
|
|
1515
|
-
addSlot(
|
|
1516
|
-
slotName,
|
|
1517
|
-
childIdSplt[2],
|
|
1518
|
-
childVNode,
|
|
1519
|
-
node,
|
|
1520
|
-
parentVNode,
|
|
1521
|
-
childRenderNodes,
|
|
1522
|
-
slotNodes,
|
|
1523
|
-
shadowRootNodes,
|
|
1524
|
-
slottedNodes
|
|
1525
|
-
);
|
|
1526
|
-
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1527
|
-
if (shadowRootNodes) {
|
|
1528
|
-
node.remove();
|
|
1529
|
-
} else {
|
|
1530
|
-
hostElm["s-cr"] = node;
|
|
1531
|
-
node["s-cn"] = true;
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
1537
|
-
const vnode = newVNode(null, node.textContent);
|
|
1538
|
-
vnode.$elm$ = node;
|
|
1539
|
-
vnode.$index$ = "0";
|
|
1540
|
-
parentVNode.$children$ = [vnode];
|
|
1541
|
-
}
|
|
1542
|
-
return parentVNode;
|
|
1543
|
-
};
|
|
1544
|
-
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1545
|
-
if (node.nodeType === 1 /* ElementNode */) {
|
|
1546
|
-
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1547
|
-
if (componentId) {
|
|
1548
|
-
orgLocNodes.set(componentId, node);
|
|
1549
|
-
}
|
|
1550
|
-
let i2 = 0;
|
|
1551
|
-
if (node.shadowRoot) {
|
|
1552
|
-
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1553
|
-
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1557
|
-
for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
|
|
1558
|
-
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
1559
|
-
}
|
|
1560
|
-
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1561
|
-
const childIdSplt = node.nodeValue.split(".");
|
|
1562
|
-
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1563
|
-
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
1564
|
-
node.nodeValue = "";
|
|
1565
|
-
node["s-en"] = childIdSplt[3];
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
|
-
var createSimpleVNode = (vnode) => {
|
|
1570
|
-
const defaultVNode = {
|
|
1571
|
-
$flags$: 0,
|
|
1572
|
-
$hostId$: null,
|
|
1573
|
-
$nodeId$: null,
|
|
1574
|
-
$depth$: null,
|
|
1575
|
-
$index$: "0",
|
|
1576
|
-
$elm$: null,
|
|
1577
|
-
$attrs$: null,
|
|
1578
|
-
$children$: null,
|
|
1579
|
-
$key$: null,
|
|
1580
|
-
$name$: null,
|
|
1581
|
-
$tag$: null,
|
|
1582
|
-
$text$: null
|
|
1583
|
-
};
|
|
1584
|
-
return { ...defaultVNode, ...vnode };
|
|
1585
|
-
};
|
|
1586
|
-
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1587
|
-
node["s-sr"] = true;
|
|
1588
|
-
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1589
|
-
if (shadowRootNodes) {
|
|
1590
|
-
const slot = childVNode.$elm$ = doc$1.createElement(childVNode.$tag$);
|
|
1591
|
-
if (childVNode.$name$) {
|
|
1592
|
-
childVNode.$elm$.setAttribute("name", slotName);
|
|
1593
|
-
}
|
|
1594
|
-
if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1595
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1596
|
-
} else {
|
|
1597
|
-
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
1598
|
-
}
|
|
1599
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1600
|
-
node.remove();
|
|
1601
|
-
if (childVNode.$depth$ === "0") {
|
|
1602
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1603
|
-
}
|
|
1604
|
-
} else {
|
|
1605
|
-
const slot = childVNode.$elm$;
|
|
1606
|
-
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1607
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1608
|
-
if (shouldMove) {
|
|
1609
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1610
|
-
}
|
|
1611
|
-
childRenderNodes.push(childVNode);
|
|
1612
|
-
}
|
|
1613
|
-
slotNodes.push(childVNode);
|
|
1614
|
-
if (!parentVNode.$children$) {
|
|
1615
|
-
parentVNode.$children$ = [];
|
|
1616
|
-
}
|
|
1617
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1618
|
-
}
|
|
1619
|
-
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1620
|
-
let slottedNode = slotNode.nextSibling;
|
|
1621
|
-
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1622
|
-
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1623
|
-
slottedNode["s-sn"] = slotName;
|
|
1624
|
-
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1625
|
-
slottedNode = slottedNode.nextSibling;
|
|
1626
|
-
}
|
|
1627
|
-
};
|
|
1628
|
-
|
|
1629
|
-
// src/runtime/mode.ts
|
|
1630
|
-
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
1631
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
1632
|
-
var getMode = (ref) => getHostRef(ref).$modeName$;
|
|
1633
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
1634
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
1635
|
-
if (propType & 4 /* Boolean */) {
|
|
1636
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1637
|
-
}
|
|
1638
|
-
if (propType & 2 /* Number */) {
|
|
1639
|
-
return parseFloat(propValue);
|
|
1640
|
-
}
|
|
1641
|
-
if (propType & 1 /* String */) {
|
|
1642
|
-
return String(propValue);
|
|
1643
|
-
}
|
|
1644
|
-
return propValue;
|
|
1645
|
-
}
|
|
1646
|
-
return propValue;
|
|
1647
|
-
};
|
|
1648
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
1649
|
-
|
|
1650
|
-
// src/runtime/event-emitter.ts
|
|
1651
|
-
var createEvent = (ref, name, flags) => {
|
|
1652
|
-
const elm = getElement(ref);
|
|
1653
|
-
return {
|
|
1654
|
-
emit: (detail) => {
|
|
1655
|
-
return emitEvent(elm, name, {
|
|
1656
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1657
|
-
composed: !!(flags & 2 /* Composed */),
|
|
1658
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1659
|
-
detail
|
|
1660
|
-
});
|
|
1661
|
-
}
|
|
1662
|
-
};
|
|
1663
|
-
};
|
|
1664
|
-
var emitEvent = (elm, name, opts) => {
|
|
1665
|
-
const ev = plt.ce(name, opts);
|
|
1666
|
-
elm.dispatchEvent(ev);
|
|
1667
|
-
return ev;
|
|
1668
|
-
};
|
|
1669
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1670
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1671
|
-
let style = styles.get(scopeId2);
|
|
1672
|
-
{
|
|
1673
|
-
style = cssText;
|
|
1674
|
-
}
|
|
1675
|
-
styles.set(scopeId2, style);
|
|
1676
|
-
};
|
|
1677
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1678
|
-
var _a;
|
|
1679
|
-
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
1680
|
-
const style = styles.get(scopeId2);
|
|
1681
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc$1;
|
|
1682
|
-
if (style) {
|
|
1683
|
-
if (typeof style === "string") {
|
|
1684
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1685
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1686
|
-
let styleElm;
|
|
1687
|
-
if (!appliedStyles) {
|
|
1688
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1689
|
-
}
|
|
1690
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1691
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1692
|
-
styleElm.innerHTML = style;
|
|
1693
|
-
} else {
|
|
1694
|
-
styleElm = doc$1.createElement("style");
|
|
1695
|
-
styleElm.innerHTML = style;
|
|
1696
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc$1);
|
|
1697
|
-
if (nonce != null) {
|
|
1698
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1699
|
-
}
|
|
1700
|
-
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
1701
|
-
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1702
|
-
}
|
|
1703
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1704
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1705
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1706
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1707
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
1708
|
-
} else if ("host" in styleContainerNode) {
|
|
1709
|
-
{
|
|
1710
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1711
|
-
if (existingStyleContainer) {
|
|
1712
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1713
|
-
} else {
|
|
1714
|
-
styleContainerNode.prepend(styleElm);
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
} else {
|
|
1718
|
-
styleContainerNode.append(styleElm);
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
1722
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1726
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1727
|
-
}
|
|
1728
|
-
if (appliedStyles) {
|
|
1729
|
-
appliedStyles.add(scopeId2);
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
return scopeId2;
|
|
1735
|
-
};
|
|
1736
|
-
var attachStyles = (hostRef) => {
|
|
1737
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1738
|
-
const elm = hostRef.$hostElement$;
|
|
1739
|
-
const flags = cmpMeta.$flags$;
|
|
1740
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1741
|
-
const scopeId2 = addStyle(
|
|
1742
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1743
|
-
cmpMeta,
|
|
1744
|
-
hostRef.$modeName$
|
|
1745
|
-
);
|
|
1746
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
1747
|
-
elm["s-sc"] = scopeId2;
|
|
1748
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1749
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
1750
|
-
elm.classList.add(scopeId2 + "-s");
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
endAttachStyles();
|
|
1754
|
-
};
|
|
1755
|
-
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
1756
1315
|
|
|
1757
1316
|
// src/runtime/update-component.ts
|
|
1758
1317
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -1999,62 +1558,16 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1999
1558
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
2000
1559
|
members.map(([memberName, [memberFlags]]) => {
|
|
2001
1560
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
});
|
|
2013
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
2014
|
-
{
|
|
2015
|
-
Object.defineProperty(prototype, memberName, {
|
|
2016
|
-
get() {
|
|
2017
|
-
const ref = getHostRef(this);
|
|
2018
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
2019
|
-
if (!instance) return;
|
|
2020
|
-
return instance[memberName];
|
|
2021
|
-
},
|
|
2022
|
-
configurable: true,
|
|
2023
|
-
enumerable: true
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
if (memberFlags & 4096 /* Setter */) {
|
|
2027
|
-
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
|
2028
|
-
Object.defineProperty(prototype, memberName, {
|
|
2029
|
-
set(newValue) {
|
|
2030
|
-
const ref = getHostRef(this);
|
|
2031
|
-
if (origSetter) {
|
|
2032
|
-
const currentValue = ref.$hostElement$[memberName];
|
|
2033
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2034
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2035
|
-
}
|
|
2036
|
-
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
|
2037
|
-
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
|
2038
|
-
return;
|
|
2039
|
-
}
|
|
2040
|
-
if (!ref) return;
|
|
2041
|
-
const setterSetVal = () => {
|
|
2042
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
2043
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2044
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2045
|
-
}
|
|
2046
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
2047
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2048
|
-
};
|
|
2049
|
-
if (ref.$lazyInstance$) {
|
|
2050
|
-
setterSetVal();
|
|
2051
|
-
} else {
|
|
2052
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
2053
|
-
}
|
|
2054
|
-
}
|
|
2055
|
-
});
|
|
2056
|
-
}
|
|
2057
|
-
}
|
|
1561
|
+
Object.defineProperty(prototype, memberName, {
|
|
1562
|
+
get() {
|
|
1563
|
+
return getValue(this, memberName);
|
|
1564
|
+
},
|
|
1565
|
+
set(newValue) {
|
|
1566
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1567
|
+
},
|
|
1568
|
+
configurable: true,
|
|
1569
|
+
enumerable: true
|
|
1570
|
+
});
|
|
2058
1571
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
2059
1572
|
Object.defineProperty(prototype, memberName, {
|
|
2060
1573
|
value(...args) {
|
|
@@ -2094,10 +1607,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2094
1607
|
}
|
|
2095
1608
|
return;
|
|
2096
1609
|
}
|
|
2097
|
-
|
|
2098
|
-
if (!propDesc.get || !!propDesc.set) {
|
|
2099
|
-
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2100
|
-
}
|
|
1610
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2101
1611
|
});
|
|
2102
1612
|
};
|
|
2103
1613
|
Cstr.observedAttributes = Array.from(
|
|
@@ -2216,9 +1726,6 @@ var connectedCallback = (elm) => {
|
|
|
2216
1726
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2217
1727
|
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
|
|
2218
1728
|
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2219
|
-
} else if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
2220
|
-
const scopeId2 = getScopeId(cmpMeta, elm.getAttribute("s-mode") );
|
|
2221
|
-
elm["s-sc"] = scopeId2;
|
|
2222
1729
|
}
|
|
2223
1730
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
2224
1731
|
}
|
|
@@ -2294,8 +1801,11 @@ var hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
|
2294
1801
|
// src/runtime/vdom/vdom-annotations.ts
|
|
2295
1802
|
var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
2296
1803
|
if (doc2 != null) {
|
|
2297
|
-
const docData =
|
|
2298
|
-
|
|
1804
|
+
const docData = {
|
|
1805
|
+
hostIds: 0,
|
|
1806
|
+
rootLevelIds: 0,
|
|
1807
|
+
staticComponents: new Set(staticComponents)
|
|
1808
|
+
};
|
|
2299
1809
|
const orgLocationNodes = [];
|
|
2300
1810
|
parseVNodeAnnotations(doc2, doc2.body, docData, orgLocationNodes);
|
|
2301
1811
|
orgLocationNodes.forEach((orgLocationNode) => {
|
|
@@ -2312,9 +1822,6 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
2312
1822
|
childId = `${hostId}.${nodeId}`;
|
|
2313
1823
|
if (nodeRef.nodeType === 1 /* ElementNode */) {
|
|
2314
1824
|
nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
|
|
2315
|
-
if (typeof nodeRef["s-sn"] === "string" && !nodeRef.getAttribute("slot")) {
|
|
2316
|
-
nodeRef.setAttribute("s-sn", nodeRef["s-sn"]);
|
|
2317
|
-
}
|
|
2318
1825
|
} else if (nodeRef.nodeType === 3 /* TextNode */) {
|
|
2319
1826
|
if (hostId === 0) {
|
|
2320
1827
|
const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
|
|
@@ -2326,10 +1833,6 @@ var insertVdomAnnotations = (doc2, staticComponents) => {
|
|
|
2326
1833
|
const commentBeforeTextNode = doc2.createComment(childId);
|
|
2327
1834
|
commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
|
|
2328
1835
|
insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
|
|
2329
|
-
} else if (nodeRef.nodeType === 8 /* CommentNode */) {
|
|
2330
|
-
const commentBeforeTextNode = doc2.createComment(childId);
|
|
2331
|
-
commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;
|
|
2332
|
-
nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);
|
|
2333
1836
|
}
|
|
2334
1837
|
}
|
|
2335
1838
|
let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
|
|
@@ -2410,9 +1913,6 @@ var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, ind
|
|
|
2410
1913
|
childElm["s-node-id"] = nodeId;
|
|
2411
1914
|
if (childElm.nodeType === 1 /* ElementNode */) {
|
|
2412
1915
|
childElm.setAttribute(HYDRATE_CHILD_ID, childId);
|
|
2413
|
-
if (typeof childElm["s-sn"] === "string" && !childElm.getAttribute("slot")) {
|
|
2414
|
-
childElm.setAttribute("s-sn", childElm["s-sn"]);
|
|
2415
|
-
}
|
|
2416
1916
|
} else if (childElm.nodeType === 3 /* TextNode */) {
|
|
2417
1917
|
const parentNode = childElm.parentNode;
|
|
2418
1918
|
const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
|
|
@@ -2614,7 +2114,6 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
|
|
|
2614
2114
|
};
|
|
2615
2115
|
tmrId = globalThis.setTimeout(timeoutExceeded, opts.timeout);
|
|
2616
2116
|
plt.$resourcesUrl$ = new URL(opts.resourcesUrl || "./", doc$1.baseURI).href;
|
|
2617
|
-
globalScripts();
|
|
2618
2117
|
patchChild2(win2.document.body);
|
|
2619
2118
|
waitLoop2().then(hydratedComplete).catch(hydratedError);
|
|
2620
2119
|
} catch (e) {
|
|
@@ -2838,9 +2337,7 @@ var plt = {
|
|
|
2838
2337
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2839
2338
|
ce: (eventName, opts) => new win$2.CustomEvent(eventName, opts)
|
|
2840
2339
|
};
|
|
2841
|
-
var
|
|
2842
|
-
Object.assign(plt, helpers);
|
|
2843
|
-
};
|
|
2340
|
+
var supportsShadow = BUILD.shadowDom;
|
|
2844
2341
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
2845
2342
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
2846
2343
|
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
@@ -2865,7 +2362,7 @@ var Build = {
|
|
|
2865
2362
|
isTesting: false
|
|
2866
2363
|
};
|
|
2867
2364
|
var styles = /* @__PURE__ */ new Map();
|
|
2868
|
-
|
|
2365
|
+
var modeResolutionChain = [];
|
|
2869
2366
|
|
|
2870
2367
|
const transitionEndAsync = (el, expectedDuration = 0) => {
|
|
2871
2368
|
return new Promise((resolve) => {
|
|
@@ -3237,6 +2734,132 @@ const reorderTwoSharp = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2
|
|
|
3237
2734
|
const searchOutline = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>";
|
|
3238
2735
|
const searchSharp = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M464 428L339.92 303.9a160.48 160.48 0 0030.72-94.58C370.64 120.37 298.27 48 209.32 48S48 120.37 48 209.32s72.37 161.32 161.32 161.32a160.48 160.48 0 0094.58-30.72L428 464zM209.32 319.69a110.38 110.38 0 11110.37-110.37 110.5 110.5 0 01-110.37 110.37z'/></svg>";
|
|
3239
2736
|
|
|
2737
|
+
// TODO(FW-2832): types
|
|
2738
|
+
class Config {
|
|
2739
|
+
constructor() {
|
|
2740
|
+
this.m = new Map();
|
|
2741
|
+
}
|
|
2742
|
+
reset(configObj) {
|
|
2743
|
+
this.m = new Map(Object.entries(configObj));
|
|
2744
|
+
}
|
|
2745
|
+
get(key, fallback) {
|
|
2746
|
+
const value = this.m.get(key);
|
|
2747
|
+
return value !== undefined ? value : fallback;
|
|
2748
|
+
}
|
|
2749
|
+
getBoolean(key, fallback = false) {
|
|
2750
|
+
const val = this.m.get(key);
|
|
2751
|
+
if (val === undefined) {
|
|
2752
|
+
return fallback;
|
|
2753
|
+
}
|
|
2754
|
+
if (typeof val === 'string') {
|
|
2755
|
+
return val === 'true';
|
|
2756
|
+
}
|
|
2757
|
+
return !!val;
|
|
2758
|
+
}
|
|
2759
|
+
getNumber(key, fallback) {
|
|
2760
|
+
const val = parseFloat(this.m.get(key));
|
|
2761
|
+
return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
|
|
2762
|
+
}
|
|
2763
|
+
set(key, value) {
|
|
2764
|
+
this.m.set(key, value);
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
const config = /*@__PURE__*/ new Config();
|
|
2768
|
+
|
|
2769
|
+
const getPlatforms = (win) => setupPlatforms(win);
|
|
2770
|
+
const isPlatform = (winOrPlatform, platform) => {
|
|
2771
|
+
if (typeof winOrPlatform === 'string') {
|
|
2772
|
+
platform = winOrPlatform;
|
|
2773
|
+
winOrPlatform = undefined;
|
|
2774
|
+
}
|
|
2775
|
+
return getPlatforms(winOrPlatform).includes(platform);
|
|
2776
|
+
};
|
|
2777
|
+
const setupPlatforms = (win = window) => {
|
|
2778
|
+
if (typeof win === 'undefined') {
|
|
2779
|
+
return [];
|
|
2780
|
+
}
|
|
2781
|
+
win.Ionic = win.Ionic || {};
|
|
2782
|
+
let platforms = win.Ionic.platforms;
|
|
2783
|
+
if (platforms == null) {
|
|
2784
|
+
platforms = win.Ionic.platforms = detectPlatforms(win);
|
|
2785
|
+
platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
|
|
2786
|
+
}
|
|
2787
|
+
return platforms;
|
|
2788
|
+
};
|
|
2789
|
+
const detectPlatforms = (win) => {
|
|
2790
|
+
const customPlatformMethods = config.get('platform');
|
|
2791
|
+
return Object.keys(PLATFORMS_MAP).filter((p) => {
|
|
2792
|
+
const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
|
|
2793
|
+
return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
|
|
2794
|
+
});
|
|
2795
|
+
};
|
|
2796
|
+
const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
|
|
2797
|
+
const isIpad = (win) => {
|
|
2798
|
+
// iOS 12 and below
|
|
2799
|
+
if (testUserAgent(win, /iPad/i)) {
|
|
2800
|
+
return true;
|
|
2801
|
+
}
|
|
2802
|
+
// iOS 13+
|
|
2803
|
+
if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
|
|
2804
|
+
return true;
|
|
2805
|
+
}
|
|
2806
|
+
return false;
|
|
2807
|
+
};
|
|
2808
|
+
const isIphone = (win) => testUserAgent(win, /iPhone/i);
|
|
2809
|
+
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
|
2810
|
+
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
|
2811
|
+
const isAndroidTablet = (win) => {
|
|
2812
|
+
return isAndroid(win) && !testUserAgent(win, /mobile/i);
|
|
2813
|
+
};
|
|
2814
|
+
const isPhablet = (win) => {
|
|
2815
|
+
const width = win.innerWidth;
|
|
2816
|
+
const height = win.innerHeight;
|
|
2817
|
+
const smallest = Math.min(width, height);
|
|
2818
|
+
const largest = Math.max(width, height);
|
|
2819
|
+
return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
|
|
2820
|
+
};
|
|
2821
|
+
const isTablet = (win) => {
|
|
2822
|
+
const width = win.innerWidth;
|
|
2823
|
+
const height = win.innerHeight;
|
|
2824
|
+
const smallest = Math.min(width, height);
|
|
2825
|
+
const largest = Math.max(width, height);
|
|
2826
|
+
return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
|
|
2827
|
+
};
|
|
2828
|
+
const isMobile = (win) => matchMedia$1(win, '(any-pointer:coarse)');
|
|
2829
|
+
const isDesktop = (win) => !isMobile(win);
|
|
2830
|
+
const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
|
2831
|
+
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
2832
|
+
const isCapacitorNative = (win) => {
|
|
2833
|
+
const capacitor = win['Capacitor'];
|
|
2834
|
+
return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative);
|
|
2835
|
+
};
|
|
2836
|
+
const isElectron = (win) => testUserAgent(win, /electron/i);
|
|
2837
|
+
const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
|
|
2838
|
+
const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
|
|
2839
|
+
const matchMedia$1 = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
|
|
2840
|
+
const PLATFORMS_MAP = {
|
|
2841
|
+
ipad: isIpad,
|
|
2842
|
+
iphone: isIphone,
|
|
2843
|
+
ios: isIOS,
|
|
2844
|
+
android: isAndroid,
|
|
2845
|
+
phablet: isPhablet,
|
|
2846
|
+
tablet: isTablet,
|
|
2847
|
+
cordova: isCordova,
|
|
2848
|
+
capacitor: isCapacitorNative,
|
|
2849
|
+
electron: isElectron,
|
|
2850
|
+
pwa: isPWA,
|
|
2851
|
+
mobile: isMobile,
|
|
2852
|
+
mobileweb: isMobileWeb,
|
|
2853
|
+
desktop: isDesktop,
|
|
2854
|
+
hybrid: isHybrid,
|
|
2855
|
+
};
|
|
2856
|
+
|
|
2857
|
+
// TODO(FW-2832): types
|
|
2858
|
+
let defaultMode;
|
|
2859
|
+
const getIonMode$1 = (ref) => {
|
|
2860
|
+
return (ref && getMode(ref)) || defaultMode;
|
|
2861
|
+
};
|
|
2862
|
+
|
|
3240
2863
|
const accordionIosCss = ":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}";
|
|
3241
2864
|
var IonAccordionIosStyle0 = accordionIosCss;
|
|
3242
2865
|
|
|
@@ -4655,9 +4278,9 @@ const now = (ev) => {
|
|
|
4655
4278
|
};
|
|
4656
4279
|
|
|
4657
4280
|
var index = /*#__PURE__*/Object.freeze({
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4281
|
+
__proto__: null,
|
|
4282
|
+
createGesture: createGesture,
|
|
4283
|
+
GESTURE_CONTROLLER: GESTURE_CONTROLLER
|
|
4661
4284
|
});
|
|
4662
4285
|
|
|
4663
4286
|
const createButtonActiveGesture = (el, isButton) => {
|
|
@@ -9576,23 +9199,8 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
|
|
|
9576
9199
|
|
|
9577
9200
|
const ION_FOCUSED = 'ion-focused';
|
|
9578
9201
|
const ION_FOCUSABLE = 'ion-focusable';
|
|
9579
|
-
const FOCUS_KEYS = [
|
|
9580
|
-
'Tab',
|
|
9581
|
-
'ArrowDown',
|
|
9582
|
-
'Space',
|
|
9583
|
-
'Escape',
|
|
9584
|
-
' ',
|
|
9585
|
-
'Shift',
|
|
9586
|
-
'Enter',
|
|
9587
|
-
'ArrowLeft',
|
|
9588
|
-
'ArrowRight',
|
|
9589
|
-
'ArrowUp',
|
|
9590
|
-
'Home',
|
|
9591
|
-
'End',
|
|
9592
|
-
];
|
|
9593
9202
|
const startFocusVisible = (rootEl) => {
|
|
9594
9203
|
let currentFocus = [];
|
|
9595
|
-
let keyboardMode = true;
|
|
9596
9204
|
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
9597
9205
|
const root = rootEl ? rootEl : document.body;
|
|
9598
9206
|
const setFocus = (elements) => {
|
|
@@ -9601,39 +9209,24 @@ const startFocusVisible = (rootEl) => {
|
|
|
9601
9209
|
currentFocus = elements;
|
|
9602
9210
|
};
|
|
9603
9211
|
const pointerDown = () => {
|
|
9604
|
-
keyboardMode = false;
|
|
9605
9212
|
setFocus([]);
|
|
9606
9213
|
};
|
|
9607
|
-
const onKeydown = (ev) => {
|
|
9608
|
-
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
9609
|
-
if (!keyboardMode) {
|
|
9610
|
-
setFocus([]);
|
|
9611
|
-
}
|
|
9612
|
-
};
|
|
9613
9214
|
const onFocusin = (ev) => {
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
return el.classList.contains(ION_FOCUSABLE);
|
|
9619
|
-
}
|
|
9620
|
-
return false;
|
|
9621
|
-
});
|
|
9622
|
-
setFocus(toFocus);
|
|
9623
|
-
}
|
|
9215
|
+
const toFocus = ev.composedPath().filter((el) => {
|
|
9216
|
+
return el instanceof HTMLElement && el.classList.contains(ION_FOCUSABLE);
|
|
9217
|
+
});
|
|
9218
|
+
setFocus(toFocus);
|
|
9624
9219
|
};
|
|
9625
9220
|
const onFocusout = () => {
|
|
9626
9221
|
if (ref.activeElement === root) {
|
|
9627
9222
|
setFocus([]);
|
|
9628
9223
|
}
|
|
9629
9224
|
};
|
|
9630
|
-
ref.addEventListener('keydown', onKeydown);
|
|
9631
9225
|
ref.addEventListener('focusin', onFocusin);
|
|
9632
9226
|
ref.addEventListener('focusout', onFocusout);
|
|
9633
9227
|
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
9634
9228
|
ref.addEventListener('mousedown', pointerDown);
|
|
9635
9229
|
const destroy = () => {
|
|
9636
|
-
ref.removeEventListener('keydown', onKeydown);
|
|
9637
9230
|
ref.removeEventListener('focusin', onFocusin);
|
|
9638
9231
|
ref.removeEventListener('focusout', onFocusout);
|
|
9639
9232
|
ref.removeEventListener('touchstart', pointerDown);
|
|
@@ -34050,9 +33643,9 @@ const iosTransitionAnimation = (navEl, opts) => {
|
|
|
34050
33643
|
const LARGE_TITLE_SIZE_OFFSET = 10;
|
|
34051
33644
|
|
|
34052
33645
|
var ios_transition = /*#__PURE__*/Object.freeze({
|
|
34053
|
-
|
|
34054
|
-
|
|
34055
|
-
|
|
33646
|
+
__proto__: null,
|
|
33647
|
+
shadow: shadow,
|
|
33648
|
+
iosTransitionAnimation: iosTransitionAnimation
|
|
34056
33649
|
});
|
|
34057
33650
|
|
|
34058
33651
|
const mdTransitionAnimation = (_, opts) => {
|
|
@@ -34103,8 +33696,8 @@ const mdTransitionAnimation = (_, opts) => {
|
|
|
34103
33696
|
};
|
|
34104
33697
|
|
|
34105
33698
|
var md_transition = /*#__PURE__*/Object.freeze({
|
|
34106
|
-
|
|
34107
|
-
|
|
33699
|
+
__proto__: null,
|
|
33700
|
+
mdTransitionAnimation: mdTransitionAnimation
|
|
34108
33701
|
});
|
|
34109
33702
|
|
|
34110
33703
|
const createSwipeBackGesture = (el, canStartHandler, onStartHandler, onMoveHandler, onEndHandler) => {
|
|
@@ -34178,8 +33771,8 @@ const createSwipeBackGesture = (el, canStartHandler, onStartHandler, onMoveHandl
|
|
|
34178
33771
|
};
|
|
34179
33772
|
|
|
34180
33773
|
var swipeBack = /*#__PURE__*/Object.freeze({
|
|
34181
|
-
|
|
34182
|
-
|
|
33774
|
+
__proto__: null,
|
|
33775
|
+
createSwipeBackGesture: createSwipeBackGesture
|
|
34183
33776
|
});
|
|
34184
33777
|
|
|
34185
33778
|
exports.hydrateApp = hydrateApp;
|
|
@@ -34192,105 +33785,8 @@ exports.hydrateApp = hydrateApp;
|
|
|
34192
33785
|
hydrateAppClosure($stencilWindow);
|
|
34193
33786
|
}
|
|
34194
33787
|
|
|
34195
|
-
// src/app-data/index.ts
|
|
34196
|
-
var BUILD = {
|
|
34197
|
-
allRenderFn: false,
|
|
34198
|
-
cmpDidLoad: true,
|
|
34199
|
-
cmpDidUnload: false,
|
|
34200
|
-
cmpDidUpdate: true,
|
|
34201
|
-
cmpDidRender: true,
|
|
34202
|
-
cmpWillLoad: true,
|
|
34203
|
-
cmpWillUpdate: true,
|
|
34204
|
-
cmpWillRender: true,
|
|
34205
|
-
connectedCallback: true,
|
|
34206
|
-
disconnectedCallback: true,
|
|
34207
|
-
element: true,
|
|
34208
|
-
event: true,
|
|
34209
|
-
hasRenderFn: true,
|
|
34210
|
-
lifecycle: true,
|
|
34211
|
-
hostListener: true,
|
|
34212
|
-
hostListenerTargetWindow: true,
|
|
34213
|
-
hostListenerTargetDocument: true,
|
|
34214
|
-
hostListenerTargetBody: true,
|
|
34215
|
-
hostListenerTargetParent: false,
|
|
34216
|
-
hostListenerTarget: true,
|
|
34217
|
-
member: true,
|
|
34218
|
-
method: true,
|
|
34219
|
-
mode: true,
|
|
34220
|
-
observeAttribute: true,
|
|
34221
|
-
prop: true,
|
|
34222
|
-
propMutable: true,
|
|
34223
|
-
reflect: true,
|
|
34224
|
-
scoped: true,
|
|
34225
|
-
shadowDom: true,
|
|
34226
|
-
slot: true,
|
|
34227
|
-
cssAnnotations: true,
|
|
34228
|
-
state: true,
|
|
34229
|
-
style: true,
|
|
34230
|
-
formAssociated: false,
|
|
34231
|
-
svg: true,
|
|
34232
|
-
updatable: true,
|
|
34233
|
-
vdomAttribute: true,
|
|
34234
|
-
vdomXlink: true,
|
|
34235
|
-
vdomClass: true,
|
|
34236
|
-
vdomFunctional: true,
|
|
34237
|
-
vdomKey: true,
|
|
34238
|
-
vdomListener: true,
|
|
34239
|
-
vdomRef: true,
|
|
34240
|
-
vdomPropOrAttr: true,
|
|
34241
|
-
vdomRender: true,
|
|
34242
|
-
vdomStyle: true,
|
|
34243
|
-
vdomText: true,
|
|
34244
|
-
watchCallback: true,
|
|
34245
|
-
taskQueue: true,
|
|
34246
|
-
hotModuleReplacement: false,
|
|
34247
|
-
isDebug: false,
|
|
34248
|
-
isDev: false,
|
|
34249
|
-
isTesting: false,
|
|
34250
|
-
hydrateServerSide: false,
|
|
34251
|
-
hydrateClientSide: false,
|
|
34252
|
-
lifecycleDOMEvents: false,
|
|
34253
|
-
lazyLoad: false,
|
|
34254
|
-
profile: false,
|
|
34255
|
-
slotRelocation: true,
|
|
34256
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
34257
|
-
appendChildSlotFix: false,
|
|
34258
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
34259
|
-
cloneNodeFix: false,
|
|
34260
|
-
hydratedAttribute: false,
|
|
34261
|
-
hydratedClass: true,
|
|
34262
|
-
// TODO(STENCIL-1305): remove this option
|
|
34263
|
-
scriptDataOpts: false,
|
|
34264
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
34265
|
-
scopedSlotTextContentFix: false,
|
|
34266
|
-
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
34267
|
-
shadowDomShim: false,
|
|
34268
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
34269
|
-
slotChildNodesFix: false,
|
|
34270
|
-
invisiblePrehydration: true,
|
|
34271
|
-
propBoolean: true,
|
|
34272
|
-
propNumber: true,
|
|
34273
|
-
propString: true,
|
|
34274
|
-
constructableCSS: true,
|
|
34275
|
-
cmpShouldUpdate: true,
|
|
34276
|
-
devTools: false,
|
|
34277
|
-
shadowDelegatesFocus: true,
|
|
34278
|
-
initializeNextTick: false,
|
|
34279
|
-
asyncLoading: true,
|
|
34280
|
-
asyncQueue: false,
|
|
34281
|
-
transformTagName: false,
|
|
34282
|
-
attachStyles: true,
|
|
34283
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
34284
|
-
experimentalSlotFixes: false
|
|
34285
|
-
};
|
|
34286
|
-
var Env = {};
|
|
34287
|
-
var NAMESPACE = (
|
|
34288
|
-
/* default */
|
|
34289
|
-
"app"
|
|
34290
|
-
);
|
|
34291
|
-
|
|
34292
33788
|
/*
|
|
34293
|
-
Stencil Hydrate Runner v4.
|
|
33789
|
+
Stencil Hydrate Runner v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
34294
33790
|
*/
|
|
34295
33791
|
var __defProp = Object.defineProperty;
|
|
34296
33792
|
var __export = (target, all) => {
|
|
@@ -34303,8 +33799,6 @@ var CONTENT_REF_ID = "r";
|
|
|
34303
33799
|
var ORG_LOCATION_ID = "o";
|
|
34304
33800
|
var SLOT_NODE_ID = "s";
|
|
34305
33801
|
var TEXT_NODE_ID = "t";
|
|
34306
|
-
var HYDRATE_ID = "s-id";
|
|
34307
|
-
var STENCIL_DOC_DATA = "_stencilDocData";
|
|
34308
33802
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
34309
33803
|
|
|
34310
33804
|
// src/mock-doc/attribute.ts
|
|
@@ -34613,8 +34107,8 @@ function jsCaseToCssCase(str) {
|
|
|
34613
34107
|
|
|
34614
34108
|
// src/mock-doc/custom-element-registry.ts
|
|
34615
34109
|
var MockCustomElementRegistry = class {
|
|
34616
|
-
constructor(
|
|
34617
|
-
this.win =
|
|
34110
|
+
constructor(win) {
|
|
34111
|
+
this.win = win;
|
|
34618
34112
|
}
|
|
34619
34113
|
define(tagName, cstr, options) {
|
|
34620
34114
|
if (tagName.toLowerCase() !== tagName) {
|
|
@@ -34636,19 +34130,19 @@ var MockCustomElementRegistry = class {
|
|
|
34636
34130
|
this.__whenDefined.delete(tagName);
|
|
34637
34131
|
}
|
|
34638
34132
|
}
|
|
34639
|
-
const
|
|
34640
|
-
if (
|
|
34641
|
-
const hosts =
|
|
34133
|
+
const doc = this.win.document;
|
|
34134
|
+
if (doc != null) {
|
|
34135
|
+
const hosts = doc.querySelectorAll(tagName);
|
|
34642
34136
|
hosts.forEach((host) => {
|
|
34643
34137
|
if (upgradedElements.has(host) === false) {
|
|
34644
|
-
tempDisableCallbacks.add(
|
|
34645
|
-
const upgradedCmp = createCustomElement(this,
|
|
34138
|
+
tempDisableCallbacks.add(doc);
|
|
34139
|
+
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
34646
34140
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
34647
34141
|
const childNode = host.childNodes[i];
|
|
34648
34142
|
childNode.remove();
|
|
34649
34143
|
upgradedCmp.appendChild(childNode);
|
|
34650
34144
|
}
|
|
34651
|
-
tempDisableCallbacks.delete(
|
|
34145
|
+
tempDisableCallbacks.delete(doc);
|
|
34652
34146
|
if (proxyElements.has(host)) {
|
|
34653
34147
|
proxyElements.set(host, upgradedCmp);
|
|
34654
34148
|
}
|
|
@@ -34702,8 +34196,8 @@ var MockCustomElementRegistry = class {
|
|
|
34702
34196
|
});
|
|
34703
34197
|
}
|
|
34704
34198
|
};
|
|
34705
|
-
function createCustomElement(
|
|
34706
|
-
const Cstr =
|
|
34199
|
+
function createCustomElement(customElements, ownerDocument, tagName) {
|
|
34200
|
+
const Cstr = customElements.get(tagName);
|
|
34707
34201
|
if (Cstr != null) {
|
|
34708
34202
|
const cmp = new Cstr(ownerDocument);
|
|
34709
34203
|
cmp.nodeName = tagName.toUpperCase();
|
|
@@ -34751,8 +34245,8 @@ function connectNode(ownerDocument, node) {
|
|
|
34751
34245
|
node.ownerDocument = ownerDocument;
|
|
34752
34246
|
if (node.nodeType === 1 /* ELEMENT_NODE */) {
|
|
34753
34247
|
if (ownerDocument != null && node.nodeName.includes("-")) {
|
|
34754
|
-
const
|
|
34755
|
-
if (
|
|
34248
|
+
const win = ownerDocument.defaultView;
|
|
34249
|
+
if (win != null && typeof node.connectedCallback === "function" && node.isConnected) {
|
|
34756
34250
|
fireConnectedCallback(node);
|
|
34757
34251
|
}
|
|
34758
34252
|
const shadowRoot = node.shadowRoot;
|
|
@@ -39160,7 +38654,7 @@ var OpenElementStack = class {
|
|
|
39160
38654
|
get currentTmplContentOrNode() {
|
|
39161
38655
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
39162
38656
|
}
|
|
39163
|
-
constructor(
|
|
38657
|
+
constructor(document, treeAdapter, handler) {
|
|
39164
38658
|
this.treeAdapter = treeAdapter;
|
|
39165
38659
|
this.handler = handler;
|
|
39166
38660
|
this.items = [];
|
|
@@ -39168,7 +38662,7 @@ var OpenElementStack = class {
|
|
|
39168
38662
|
this.stackTop = -1;
|
|
39169
38663
|
this.tmplCount = 0;
|
|
39170
38664
|
this.currentTagId = TAG_ID.UNKNOWN;
|
|
39171
|
-
this.current =
|
|
38665
|
+
this.current = document;
|
|
39172
38666
|
}
|
|
39173
38667
|
//Index of element
|
|
39174
38668
|
_indexOf(element) {
|
|
@@ -39585,8 +39079,8 @@ var defaultTreeAdapter = {
|
|
|
39585
39079
|
getTemplateContent(templateElement) {
|
|
39586
39080
|
return templateElement.content;
|
|
39587
39081
|
},
|
|
39588
|
-
setDocumentType(
|
|
39589
|
-
const doctypeNode =
|
|
39082
|
+
setDocumentType(document, name, publicId, systemId) {
|
|
39083
|
+
const doctypeNode = document.childNodes.find((node) => node.nodeName === "#documentType");
|
|
39590
39084
|
if (doctypeNode) {
|
|
39591
39085
|
doctypeNode.name = name;
|
|
39592
39086
|
doctypeNode.publicId = publicId;
|
|
@@ -39599,14 +39093,14 @@ var defaultTreeAdapter = {
|
|
|
39599
39093
|
systemId,
|
|
39600
39094
|
parentNode: null
|
|
39601
39095
|
};
|
|
39602
|
-
defaultTreeAdapter.appendChild(
|
|
39096
|
+
defaultTreeAdapter.appendChild(document, node);
|
|
39603
39097
|
}
|
|
39604
39098
|
},
|
|
39605
|
-
setDocumentMode(
|
|
39606
|
-
|
|
39099
|
+
setDocumentMode(document, mode) {
|
|
39100
|
+
document.mode = mode;
|
|
39607
39101
|
},
|
|
39608
|
-
getDocumentMode(
|
|
39609
|
-
return
|
|
39102
|
+
getDocumentMode(document) {
|
|
39103
|
+
return document.mode;
|
|
39610
39104
|
},
|
|
39611
39105
|
detachNode(node) {
|
|
39612
39106
|
if (node.parentNode) {
|
|
@@ -40087,7 +39581,7 @@ var defaultParserOptions = {
|
|
|
40087
39581
|
onParseError: null
|
|
40088
39582
|
};
|
|
40089
39583
|
var Parser = class {
|
|
40090
|
-
constructor(options,
|
|
39584
|
+
constructor(options, document, fragmentContext = null, scriptHandler = null) {
|
|
40091
39585
|
this.fragmentContext = fragmentContext;
|
|
40092
39586
|
this.scriptHandler = scriptHandler;
|
|
40093
39587
|
this.currentToken = null;
|
|
@@ -40112,7 +39606,7 @@ var Parser = class {
|
|
|
40112
39606
|
if (this.onParseError) {
|
|
40113
39607
|
this.options.sourceCodeLocationInfo = true;
|
|
40114
39608
|
}
|
|
40115
|
-
this.document =
|
|
39609
|
+
this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();
|
|
40116
39610
|
this.tokenizer = new Tokenizer(this.options, this);
|
|
40117
39611
|
this.activeFormattingElements = new FormattingElementList(this.treeAdapter);
|
|
40118
39612
|
this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN;
|
|
@@ -43089,11 +42583,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
43089
42583
|
// src/mock-doc/parse-util.ts
|
|
43090
42584
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
43091
42585
|
function parseDocumentUtil(ownerDocument, html) {
|
|
43092
|
-
const
|
|
43093
|
-
|
|
43094
|
-
|
|
43095
|
-
|
|
43096
|
-
return
|
|
42586
|
+
const doc = parse(html.trim(), getParser(ownerDocument));
|
|
42587
|
+
doc.documentElement = doc.firstElementChild;
|
|
42588
|
+
doc.head = doc.documentElement.firstElementChild;
|
|
42589
|
+
doc.body = doc.head.nextElementSibling;
|
|
42590
|
+
return doc;
|
|
43097
42591
|
}
|
|
43098
42592
|
function parseFragmentUtil(ownerDocument, html) {
|
|
43099
42593
|
if (typeof html === "string") {
|
|
@@ -43111,9 +42605,9 @@ function getParser(ownerDocument) {
|
|
|
43111
42605
|
}
|
|
43112
42606
|
const treeAdapter = {
|
|
43113
42607
|
createDocument() {
|
|
43114
|
-
const
|
|
43115
|
-
|
|
43116
|
-
return
|
|
42608
|
+
const doc = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
42609
|
+
doc["x-mode"] = "no-quirks";
|
|
42610
|
+
return doc;
|
|
43117
42611
|
},
|
|
43118
42612
|
setNodeSourceCodeLocation(node, location2) {
|
|
43119
42613
|
node.sourceCodeLocation = location2;
|
|
@@ -43151,22 +42645,22 @@ function getParser(ownerDocument) {
|
|
|
43151
42645
|
getTemplateContent(templateElement) {
|
|
43152
42646
|
return templateElement.content;
|
|
43153
42647
|
},
|
|
43154
|
-
setDocumentType(
|
|
43155
|
-
let doctypeNode =
|
|
42648
|
+
setDocumentType(doc, name, publicId, systemId) {
|
|
42649
|
+
let doctypeNode = doc.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
43156
42650
|
if (doctypeNode == null) {
|
|
43157
42651
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
43158
|
-
|
|
42652
|
+
doc.insertBefore(doctypeNode, doc.firstChild);
|
|
43159
42653
|
}
|
|
43160
42654
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
43161
42655
|
doctypeNode["x-name"] = name;
|
|
43162
42656
|
doctypeNode["x-publicId"] = publicId;
|
|
43163
42657
|
doctypeNode["x-systemId"] = systemId;
|
|
43164
42658
|
},
|
|
43165
|
-
setDocumentMode(
|
|
43166
|
-
|
|
42659
|
+
setDocumentMode(doc, mode) {
|
|
42660
|
+
doc["x-mode"] = mode;
|
|
43167
42661
|
},
|
|
43168
|
-
getDocumentMode(
|
|
43169
|
-
return
|
|
42662
|
+
getDocumentMode(doc) {
|
|
42663
|
+
return doc["x-mode"];
|
|
43170
42664
|
},
|
|
43171
42665
|
detachNode(node) {
|
|
43172
42666
|
node.remove();
|
|
@@ -43298,9 +42792,9 @@ var jquery_default = (
|
|
|
43298
42792
|
nodeName: "HTML"
|
|
43299
42793
|
}
|
|
43300
42794
|
}
|
|
43301
|
-
}, function(
|
|
42795
|
+
}, function(window, noGlobal) {
|
|
43302
42796
|
"use strict";
|
|
43303
|
-
if (!
|
|
42797
|
+
if (!window.document) {
|
|
43304
42798
|
throw new Error("jQuery requires a window with a document");
|
|
43305
42799
|
}
|
|
43306
42800
|
var arr = [];
|
|
@@ -43335,16 +42829,16 @@ var jquery_default = (
|
|
|
43335
42829
|
}
|
|
43336
42830
|
return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
|
|
43337
42831
|
}
|
|
43338
|
-
var
|
|
42832
|
+
var document = window.document;
|
|
43339
42833
|
var preservedScriptAttributes = {
|
|
43340
42834
|
type: true,
|
|
43341
42835
|
src: true,
|
|
43342
42836
|
nonce: true,
|
|
43343
42837
|
noModule: true
|
|
43344
42838
|
};
|
|
43345
|
-
function DOMEval(code, node,
|
|
43346
|
-
|
|
43347
|
-
var i2, script =
|
|
42839
|
+
function DOMEval(code, node, doc) {
|
|
42840
|
+
doc = doc || document;
|
|
42841
|
+
var i2, script = doc.createElement("script");
|
|
43348
42842
|
script.text = code;
|
|
43349
42843
|
if (node) {
|
|
43350
42844
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -43353,7 +42847,7 @@ var jquery_default = (
|
|
|
43353
42847
|
}
|
|
43354
42848
|
}
|
|
43355
42849
|
}
|
|
43356
|
-
|
|
42850
|
+
doc.head.appendChild(script).parentNode.removeChild(script);
|
|
43357
42851
|
}
|
|
43358
42852
|
const jQuery = {};
|
|
43359
42853
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -43490,8 +42984,8 @@ var jquery_default = (
|
|
|
43490
42984
|
},
|
|
43491
42985
|
// Evaluates a script in a provided context; falls back to the global one
|
|
43492
42986
|
// if not specified.
|
|
43493
|
-
globalEval: function(code, options,
|
|
43494
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
42987
|
+
globalEval: function(code, options, doc) {
|
|
42988
|
+
DOMEval(code, { nonce: options && options.nonce }, doc);
|
|
43495
42989
|
},
|
|
43496
42990
|
each: function(obj, callback) {
|
|
43497
42991
|
var length, i2 = 0;
|
|
@@ -43618,9 +43112,9 @@ var jquery_default = (
|
|
|
43618
43112
|
}
|
|
43619
43113
|
var pop = arr.pop;
|
|
43620
43114
|
var whitespace = "[\\x20\\t\\r\\n\\f]";
|
|
43621
|
-
var isIE =
|
|
43115
|
+
var isIE = document.documentMode;
|
|
43622
43116
|
try {
|
|
43623
|
-
|
|
43117
|
+
document.querySelector(":has(*,:jqfake)");
|
|
43624
43118
|
support.cssHas = false;
|
|
43625
43119
|
} catch (e) {
|
|
43626
43120
|
support.cssHas = true;
|
|
@@ -43652,7 +43146,7 @@ var jquery_default = (
|
|
|
43652
43146
|
var rleadingCombinator = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*");
|
|
43653
43147
|
var rdescend = new RegExp(whitespace + "|>");
|
|
43654
43148
|
var rsibling = /[+~]/;
|
|
43655
|
-
var documentElement =
|
|
43149
|
+
var documentElement = document.documentElement;
|
|
43656
43150
|
var matches2 = documentElement.matches || documentElement.msMatchesSelector;
|
|
43657
43151
|
function createCache() {
|
|
43658
43152
|
var keys = [];
|
|
@@ -43821,10 +43315,10 @@ var jquery_default = (
|
|
|
43821
43315
|
1
|
|
43822
43316
|
);
|
|
43823
43317
|
if (compare & 1) {
|
|
43824
|
-
if (a ==
|
|
43318
|
+
if (a == document || a.ownerDocument == document && jQuery.contains(document, a)) {
|
|
43825
43319
|
return -1;
|
|
43826
43320
|
}
|
|
43827
|
-
if (b ==
|
|
43321
|
+
if (b == document || b.ownerDocument == document && jQuery.contains(document, b)) {
|
|
43828
43322
|
return 1;
|
|
43829
43323
|
}
|
|
43830
43324
|
return 0;
|
|
@@ -43980,14 +43474,14 @@ var jquery_default = (
|
|
|
43980
43474
|
});
|
|
43981
43475
|
}
|
|
43982
43476
|
function setDocument(node) {
|
|
43983
|
-
var subWindow,
|
|
43984
|
-
if (
|
|
43477
|
+
var subWindow, doc = node ? node.ownerDocument || node : document;
|
|
43478
|
+
if (doc == document$1 || doc.nodeType !== 9) {
|
|
43985
43479
|
return;
|
|
43986
43480
|
}
|
|
43987
|
-
document$1 =
|
|
43481
|
+
document$1 = doc;
|
|
43988
43482
|
documentElement$1 = document$1.documentElement;
|
|
43989
43483
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
43990
|
-
if (isIE &&
|
|
43484
|
+
if (isIE && document != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
43991
43485
|
subWindow.addEventListener("unload", unloadHandler);
|
|
43992
43486
|
}
|
|
43993
43487
|
}
|
|
@@ -44218,7 +43712,7 @@ var jquery_default = (
|
|
|
44218
43712
|
}),
|
|
44219
43713
|
// Miscellaneous
|
|
44220
43714
|
target: function(elem) {
|
|
44221
|
-
var hash =
|
|
43715
|
+
var hash = window.location && window.location.hash;
|
|
44222
43716
|
return hash && hash.slice(1) === elem.id;
|
|
44223
43717
|
},
|
|
44224
43718
|
root: function(elem) {
|
|
@@ -44720,7 +44214,7 @@ function serializeNodeToHtml(elm, serializationOptions = {}) {
|
|
|
44720
44214
|
text: []
|
|
44721
44215
|
};
|
|
44722
44216
|
let renderedNode = "";
|
|
44723
|
-
const children = !opts.fullDocument && elm.body ? Array.from(elm.body.childNodes) : opts.outerHtml ? [elm] : Array.from(
|
|
44217
|
+
const children = !opts.fullDocument && elm.body ? Array.from(elm.body.childNodes) : opts.outerHtml ? [elm] : Array.from(elm.childNodes);
|
|
44724
44218
|
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
44725
44219
|
const child = children[i];
|
|
44726
44220
|
const chunks = Array.from(streamToHtml(child, opts, output));
|
|
@@ -44753,10 +44247,7 @@ function* streamToHtml(node, opts, output) {
|
|
|
44753
44247
|
const tag = tagName === shadowRootTag ? "template" : tagName;
|
|
44754
44248
|
yield "<" + tag;
|
|
44755
44249
|
output.currentLineWidth += tag.length + 1;
|
|
44756
|
-
if (tag === "template"
|
|
44757
|
-
* If the node is a shadow root, we want to add the `shadowrootmode` attribute
|
|
44758
|
-
*/
|
|
44759
|
-
("host" in node || node.nodeName.toLocaleLowerCase() === shadowRootTag)) {
|
|
44250
|
+
if (tag === "template") {
|
|
44760
44251
|
const mode = ` shadowrootmode="open"`;
|
|
44761
44252
|
yield mode;
|
|
44762
44253
|
output.currentLineWidth += mode.length;
|
|
@@ -44840,8 +44331,7 @@ style="${cssText}">`;
|
|
|
44840
44331
|
output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
|
|
44841
44332
|
yield* streamToHtml(shadowRoot, opts, output);
|
|
44842
44333
|
output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
|
|
44843
|
-
|
|
44844
|
-
if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
|
|
44334
|
+
if (opts.newLines && (node.childNodes.length === 0 || node.childNodes.length === 1 && node.childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = node.childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
|
|
44845
44335
|
yield "\n";
|
|
44846
44336
|
output.currentLineWidth = 0;
|
|
44847
44337
|
for (let i = 0; i < output.indent; i++) {
|
|
@@ -44852,7 +44342,7 @@ style="${cssText}">`;
|
|
|
44852
44342
|
}
|
|
44853
44343
|
if (opts.excludeTagContent == null || opts.excludeTagContent.includes(tagName) === false) {
|
|
44854
44344
|
const tag = tagName === shadowRootTag ? "template" : tagName;
|
|
44855
|
-
const childNodes = tagName === "template" ? node.content.childNodes :
|
|
44345
|
+
const childNodes = tagName === "template" ? node.content.childNodes : node.childNodes;
|
|
44856
44346
|
const childNodeLength = childNodes.length;
|
|
44857
44347
|
if (childNodeLength > 0) {
|
|
44858
44348
|
if (childNodeLength === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && (typeof childNodes[0].nodeValue !== "string" || childNodes[0].nodeValue.trim() === "")) {
|
|
@@ -44862,13 +44352,6 @@ style="${cssText}">`;
|
|
|
44862
44352
|
output.indent = output.indent + ((_h = opts.indentSpaces) != null ? _h : 0);
|
|
44863
44353
|
}
|
|
44864
44354
|
for (let i = 0; i < childNodeLength; i++) {
|
|
44865
|
-
const sId = node.attributes.getNamedItem(HYDRATE_ID);
|
|
44866
|
-
const isStencilDeclarativeShadowDOM = childNodes[i].nodeName.toLowerCase() === "template" && sId;
|
|
44867
|
-
if (isStencilDeclarativeShadowDOM) {
|
|
44868
|
-
yield `
|
|
44869
|
-
${" ".repeat(output.indent)}<!--r.${sId.value}-->`;
|
|
44870
|
-
continue;
|
|
44871
|
-
}
|
|
44872
44355
|
yield* streamToHtml(childNodes[i], opts, output);
|
|
44873
44356
|
}
|
|
44874
44357
|
if (ignoreTag === false) {
|
|
@@ -45025,9 +44508,6 @@ function isWithinWhitespaceSensitive(node) {
|
|
|
45025
44508
|
}
|
|
45026
44509
|
return false;
|
|
45027
44510
|
}
|
|
45028
|
-
function getChildNodes(node) {
|
|
45029
|
-
return node.__childNodes || node.childNodes;
|
|
45030
|
-
}
|
|
45031
44511
|
var NON_ESCAPABLE_CONTENT = /* @__PURE__ */ new Set([
|
|
45032
44512
|
"STYLE",
|
|
45033
44513
|
"SCRIPT",
|
|
@@ -45297,12 +44777,10 @@ var MockElement = class extends MockNode2 {
|
|
|
45297
44777
|
attachInternals() {
|
|
45298
44778
|
return new Proxy({}, {
|
|
45299
44779
|
get: function(_target, prop, _receiver) {
|
|
45300
|
-
|
|
45301
|
-
|
|
45302
|
-
|
|
45303
|
-
|
|
45304
|
-
);
|
|
45305
|
-
}
|
|
44780
|
+
console.error(
|
|
44781
|
+
`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
|
|
44782
|
+
Testing components with ElementInternals is fully supported in e2e tests.`
|
|
44783
|
+
);
|
|
45306
44784
|
}
|
|
45307
44785
|
});
|
|
45308
44786
|
}
|
|
@@ -46224,9 +45702,9 @@ function createElement(ownerDocument, tagName) {
|
|
|
46224
45702
|
return new MockUListElement(ownerDocument);
|
|
46225
45703
|
}
|
|
46226
45704
|
if (ownerDocument != null && tagName.includes("-")) {
|
|
46227
|
-
const
|
|
46228
|
-
if (
|
|
46229
|
-
return createCustomElement(
|
|
45705
|
+
const win = ownerDocument.defaultView;
|
|
45706
|
+
if (win != null && win.customElements != null) {
|
|
45707
|
+
return createCustomElement(win.customElements, ownerDocument, tagName);
|
|
46230
45708
|
}
|
|
46231
45709
|
}
|
|
46232
45710
|
return new MockHTMLElement(ownerDocument, tagName);
|
|
@@ -46272,9 +45750,6 @@ var MockAnchorElement = class extends MockHTMLElement {
|
|
|
46272
45750
|
this.setAttribute("href", value);
|
|
46273
45751
|
}
|
|
46274
45752
|
get pathname() {
|
|
46275
|
-
if (!this.href) {
|
|
46276
|
-
return "";
|
|
46277
|
-
}
|
|
46278
45753
|
return new URL(this.href).pathname;
|
|
46279
45754
|
}
|
|
46280
45755
|
};
|
|
@@ -46292,11 +45767,6 @@ patchPropAttributes(
|
|
|
46292
45767
|
type: "submit"
|
|
46293
45768
|
}
|
|
46294
45769
|
);
|
|
46295
|
-
Object.defineProperty(MockButtonElement.prototype, "form", {
|
|
46296
|
-
get() {
|
|
46297
|
-
return this.hasAttribute("form") ? this.getAttribute("form") : null;
|
|
46298
|
-
}
|
|
46299
|
-
});
|
|
46300
45770
|
var MockImageElement = class extends MockHTMLElement {
|
|
46301
45771
|
constructor(ownerDocument) {
|
|
46302
45772
|
super(ownerDocument, "img");
|
|
@@ -46651,9 +46121,9 @@ var CanvasRenderingContext = class {
|
|
|
46651
46121
|
}
|
|
46652
46122
|
clearRect() {
|
|
46653
46123
|
}
|
|
46654
|
-
getImageData(_, __, w,
|
|
46124
|
+
getImageData(_, __, w, h) {
|
|
46655
46125
|
return {
|
|
46656
|
-
data: new Array(w *
|
|
46126
|
+
data: new Array(w * h * 4)
|
|
46657
46127
|
};
|
|
46658
46128
|
}
|
|
46659
46129
|
toDataURL() {
|
|
@@ -46715,9 +46185,9 @@ var MockCanvasElement = class extends MockHTMLElement {
|
|
|
46715
46185
|
function fullUrl(elm, attrName) {
|
|
46716
46186
|
const val = elm.getAttribute(attrName) || "";
|
|
46717
46187
|
if (elm.ownerDocument != null) {
|
|
46718
|
-
const
|
|
46719
|
-
if (
|
|
46720
|
-
const loc =
|
|
46188
|
+
const win = elm.ownerDocument.defaultView;
|
|
46189
|
+
if (win != null) {
|
|
46190
|
+
const loc = win.location;
|
|
46721
46191
|
if (loc != null) {
|
|
46722
46192
|
try {
|
|
46723
46193
|
const url = new URL(val, loc.href);
|
|
@@ -47322,71 +46792,6 @@ function resetPerformance(perf) {
|
|
|
47322
46792
|
}
|
|
47323
46793
|
}
|
|
47324
46794
|
|
|
47325
|
-
// src/mock-doc/resize-observer.ts
|
|
47326
|
-
var MockResizeObserver = class {
|
|
47327
|
-
constructor() {
|
|
47328
|
-
}
|
|
47329
|
-
disconnect() {
|
|
47330
|
-
}
|
|
47331
|
-
observe() {
|
|
47332
|
-
}
|
|
47333
|
-
takeRecords() {
|
|
47334
|
-
return [];
|
|
47335
|
-
}
|
|
47336
|
-
unobserve() {
|
|
47337
|
-
}
|
|
47338
|
-
};
|
|
47339
|
-
|
|
47340
|
-
// src/mock-doc/shadow-root.ts
|
|
47341
|
-
var MockShadowRoot = class extends MockDocumentFragment {
|
|
47342
|
-
get activeElement() {
|
|
47343
|
-
return null;
|
|
47344
|
-
}
|
|
47345
|
-
set adoptedStyleSheets(_adoptedStyleSheets) {
|
|
47346
|
-
throw new Error("Unimplemented");
|
|
47347
|
-
}
|
|
47348
|
-
get adoptedStyleSheets() {
|
|
47349
|
-
return [];
|
|
47350
|
-
}
|
|
47351
|
-
get cloneable() {
|
|
47352
|
-
return false;
|
|
47353
|
-
}
|
|
47354
|
-
get delegatesFocus() {
|
|
47355
|
-
return false;
|
|
47356
|
-
}
|
|
47357
|
-
get fullscreenElement() {
|
|
47358
|
-
return null;
|
|
47359
|
-
}
|
|
47360
|
-
get host() {
|
|
47361
|
-
let parent = this.parentElement();
|
|
47362
|
-
while (parent) {
|
|
47363
|
-
if (parent.nodeType === 11) {
|
|
47364
|
-
return parent;
|
|
47365
|
-
}
|
|
47366
|
-
parent = parent.parentElement();
|
|
47367
|
-
}
|
|
47368
|
-
return null;
|
|
47369
|
-
}
|
|
47370
|
-
get mode() {
|
|
47371
|
-
return "open";
|
|
47372
|
-
}
|
|
47373
|
-
get pictureInPictureElement() {
|
|
47374
|
-
return null;
|
|
47375
|
-
}
|
|
47376
|
-
get pointerLockElement() {
|
|
47377
|
-
return null;
|
|
47378
|
-
}
|
|
47379
|
-
get serializable() {
|
|
47380
|
-
return false;
|
|
47381
|
-
}
|
|
47382
|
-
get slotAssignment() {
|
|
47383
|
-
return "named";
|
|
47384
|
-
}
|
|
47385
|
-
get styleSheets() {
|
|
47386
|
-
return [];
|
|
47387
|
-
}
|
|
47388
|
-
};
|
|
47389
|
-
|
|
47390
46795
|
// src/mock-doc/storage.ts
|
|
47391
46796
|
var MockStorage = class {
|
|
47392
46797
|
constructor() {
|
|
@@ -47416,11 +46821,11 @@ var MockStorage = class {
|
|
|
47416
46821
|
};
|
|
47417
46822
|
|
|
47418
46823
|
// src/mock-doc/window.ts
|
|
47419
|
-
var nativeClearInterval =
|
|
47420
|
-
var nativeClearTimeout =
|
|
47421
|
-
var nativeSetInterval =
|
|
47422
|
-
var nativeSetTimeout =
|
|
47423
|
-
var nativeURL =
|
|
46824
|
+
var nativeClearInterval = clearInterval;
|
|
46825
|
+
var nativeClearTimeout = clearTimeout;
|
|
46826
|
+
var nativeSetInterval = setInterval;
|
|
46827
|
+
var nativeSetTimeout = setTimeout;
|
|
46828
|
+
var nativeURL = URL;
|
|
47424
46829
|
var nativeWindow = globalThis.window;
|
|
47425
46830
|
var MockWindow = class {
|
|
47426
46831
|
constructor(html = null) {
|
|
@@ -47487,10 +46892,10 @@ var MockWindow = class {
|
|
|
47487
46892
|
}
|
|
47488
46893
|
get Document() {
|
|
47489
46894
|
if (this.__docCstr == null) {
|
|
47490
|
-
const
|
|
46895
|
+
const win = this;
|
|
47491
46896
|
this.__docCstr = class extends MockDocument {
|
|
47492
46897
|
constructor() {
|
|
47493
|
-
super(false,
|
|
46898
|
+
super(false, win);
|
|
47494
46899
|
throw new Error("Illegal constructor: cannot construct Document");
|
|
47495
46900
|
}
|
|
47496
46901
|
};
|
|
@@ -47515,9 +46920,6 @@ var MockWindow = class {
|
|
|
47515
46920
|
set DocumentFragment(docFragCstr) {
|
|
47516
46921
|
this.__docFragCstr = docFragCstr;
|
|
47517
46922
|
}
|
|
47518
|
-
get ShadowRoot() {
|
|
47519
|
-
return MockShadowRoot;
|
|
47520
|
-
}
|
|
47521
46923
|
get DocumentType() {
|
|
47522
46924
|
if (this.__docTypeCstr == null) {
|
|
47523
46925
|
const ownerDocument = this.document;
|
|
@@ -47629,9 +47031,6 @@ var MockWindow = class {
|
|
|
47629
47031
|
get IntersectionObserver() {
|
|
47630
47032
|
return MockIntersectionObserver;
|
|
47631
47033
|
}
|
|
47632
|
-
get ResizeObserver() {
|
|
47633
|
-
return MockResizeObserver;
|
|
47634
|
-
}
|
|
47635
47034
|
get localStorage() {
|
|
47636
47035
|
if (this.__localStorage == null) {
|
|
47637
47036
|
this.__localStorage = new MockStorage();
|
|
@@ -48013,14 +47412,14 @@ var MockWindow = class {
|
|
|
48013
47412
|
}
|
|
48014
47413
|
};
|
|
48015
47414
|
addGlobalsToWindowPrototype(MockWindow.prototype);
|
|
48016
|
-
function resetWindowDefaults(
|
|
48017
|
-
|
|
48018
|
-
|
|
48019
|
-
|
|
48020
|
-
|
|
48021
|
-
|
|
48022
|
-
|
|
48023
|
-
|
|
47415
|
+
function resetWindowDefaults(win) {
|
|
47416
|
+
win.__clearInterval = nativeClearInterval;
|
|
47417
|
+
win.__clearTimeout = nativeClearTimeout;
|
|
47418
|
+
win.__setInterval = nativeSetInterval;
|
|
47419
|
+
win.__setTimeout = nativeSetTimeout;
|
|
47420
|
+
win.__maxTimeout = 3e4;
|
|
47421
|
+
win.__allowInterval = true;
|
|
47422
|
+
win.URL = nativeURL;
|
|
48024
47423
|
}
|
|
48025
47424
|
function cloneWindow(srcWin, opts = {}) {
|
|
48026
47425
|
if (srcWin == null) {
|
|
@@ -48039,72 +47438,72 @@ function cloneWindow(srcWin, opts = {}) {
|
|
|
48039
47438
|
}
|
|
48040
47439
|
return clonedWin;
|
|
48041
47440
|
}
|
|
48042
|
-
function constrainTimeouts(
|
|
48043
|
-
|
|
48044
|
-
|
|
47441
|
+
function constrainTimeouts(win) {
|
|
47442
|
+
win.__allowInterval = false;
|
|
47443
|
+
win.__maxTimeout = 0;
|
|
48045
47444
|
}
|
|
48046
|
-
function resetWindow(
|
|
48047
|
-
if (
|
|
48048
|
-
if (
|
|
48049
|
-
|
|
47445
|
+
function resetWindow(win) {
|
|
47446
|
+
if (win != null) {
|
|
47447
|
+
if (win.__timeouts) {
|
|
47448
|
+
win.__timeouts.forEach((timeoutId) => {
|
|
48050
47449
|
nativeClearInterval(timeoutId);
|
|
48051
47450
|
nativeClearTimeout(timeoutId);
|
|
48052
47451
|
});
|
|
48053
|
-
|
|
47452
|
+
win.__timeouts.clear();
|
|
48054
47453
|
}
|
|
48055
|
-
if (
|
|
48056
|
-
|
|
47454
|
+
if (win.customElements && win.customElements.clear) {
|
|
47455
|
+
win.customElements.clear();
|
|
48057
47456
|
}
|
|
48058
|
-
resetDocument(
|
|
48059
|
-
resetPerformance(
|
|
48060
|
-
for (const key in
|
|
48061
|
-
if (
|
|
48062
|
-
delete
|
|
47457
|
+
resetDocument(win.document);
|
|
47458
|
+
resetPerformance(win.performance);
|
|
47459
|
+
for (const key in win) {
|
|
47460
|
+
if (win.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
|
|
47461
|
+
delete win[key];
|
|
48063
47462
|
}
|
|
48064
47463
|
}
|
|
48065
|
-
resetWindowDefaults(
|
|
48066
|
-
resetWindowDimensions(
|
|
48067
|
-
resetEventListeners(
|
|
48068
|
-
if (
|
|
47464
|
+
resetWindowDefaults(win);
|
|
47465
|
+
resetWindowDimensions(win);
|
|
47466
|
+
resetEventListeners(win);
|
|
47467
|
+
if (win.document != null) {
|
|
48069
47468
|
try {
|
|
48070
|
-
|
|
47469
|
+
win.document.defaultView = win;
|
|
48071
47470
|
} catch (e) {
|
|
48072
47471
|
}
|
|
48073
47472
|
}
|
|
48074
|
-
|
|
48075
|
-
|
|
48076
|
-
|
|
48077
|
-
|
|
48078
|
-
|
|
47473
|
+
win.fetch = null;
|
|
47474
|
+
win.Headers = null;
|
|
47475
|
+
win.Request = null;
|
|
47476
|
+
win.Response = null;
|
|
47477
|
+
win.FetchError = null;
|
|
48079
47478
|
}
|
|
48080
47479
|
}
|
|
48081
|
-
function resetWindowDimensions(
|
|
47480
|
+
function resetWindowDimensions(win) {
|
|
48082
47481
|
try {
|
|
48083
|
-
|
|
48084
|
-
|
|
48085
|
-
|
|
48086
|
-
|
|
48087
|
-
|
|
48088
|
-
|
|
48089
|
-
|
|
48090
|
-
|
|
48091
|
-
|
|
48092
|
-
|
|
48093
|
-
|
|
48094
|
-
|
|
48095
|
-
availHeight:
|
|
47482
|
+
win.devicePixelRatio = 1;
|
|
47483
|
+
win.innerHeight = 768;
|
|
47484
|
+
win.innerWidth = 1366;
|
|
47485
|
+
win.pageXOffset = 0;
|
|
47486
|
+
win.pageYOffset = 0;
|
|
47487
|
+
win.screenLeft = 0;
|
|
47488
|
+
win.screenTop = 0;
|
|
47489
|
+
win.screenX = 0;
|
|
47490
|
+
win.screenY = 0;
|
|
47491
|
+
win.scrollX = 0;
|
|
47492
|
+
win.scrollY = 0;
|
|
47493
|
+
win.screen = {
|
|
47494
|
+
availHeight: win.innerHeight,
|
|
48096
47495
|
availLeft: 0,
|
|
48097
47496
|
availTop: 0,
|
|
48098
|
-
availWidth:
|
|
47497
|
+
availWidth: win.innerWidth,
|
|
48099
47498
|
colorDepth: 24,
|
|
48100
|
-
height:
|
|
47499
|
+
height: win.innerHeight,
|
|
48101
47500
|
keepAwake: false,
|
|
48102
47501
|
orientation: {
|
|
48103
47502
|
angle: 0,
|
|
48104
47503
|
type: "portrait-primary"
|
|
48105
47504
|
},
|
|
48106
47505
|
pixelDepth: 24,
|
|
48107
|
-
width:
|
|
47506
|
+
width: win.innerWidth
|
|
48108
47507
|
};
|
|
48109
47508
|
} catch (e) {
|
|
48110
47509
|
}
|
|
@@ -48112,11 +47511,11 @@ function resetWindowDimensions(win2) {
|
|
|
48112
47511
|
|
|
48113
47512
|
// src/mock-doc/document.ts
|
|
48114
47513
|
var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
48115
|
-
constructor(html = null,
|
|
47514
|
+
constructor(html = null, win = null) {
|
|
48116
47515
|
super(null, null);
|
|
48117
47516
|
this.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
48118
47517
|
this.nodeType = 9 /* DOCUMENT_NODE */;
|
|
48119
|
-
this.defaultView =
|
|
47518
|
+
this.defaultView = win;
|
|
48120
47519
|
this.cookie = "";
|
|
48121
47520
|
this.referrer = "";
|
|
48122
47521
|
this.appendChild(this.createDocumentTypeNode());
|
|
@@ -48263,10 +47662,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
48263
47662
|
}
|
|
48264
47663
|
createElement(tagName) {
|
|
48265
47664
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
48266
|
-
const
|
|
48267
|
-
|
|
48268
|
-
|
|
48269
|
-
return
|
|
47665
|
+
const doc = new _MockDocument(false);
|
|
47666
|
+
doc.nodeName = tagName;
|
|
47667
|
+
doc.parentNode = null;
|
|
47668
|
+
return doc;
|
|
48270
47669
|
}
|
|
48271
47670
|
return createElement(this, tagName);
|
|
48272
47671
|
}
|
|
@@ -48306,10 +47705,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
48306
47705
|
title.textContent = value;
|
|
48307
47706
|
}
|
|
48308
47707
|
};
|
|
48309
|
-
function resetDocument(
|
|
48310
|
-
if (
|
|
48311
|
-
resetEventListeners(
|
|
48312
|
-
const documentElement =
|
|
47708
|
+
function resetDocument(doc) {
|
|
47709
|
+
if (doc != null) {
|
|
47710
|
+
resetEventListeners(doc);
|
|
47711
|
+
const documentElement = doc.documentElement;
|
|
48313
47712
|
if (documentElement != null) {
|
|
48314
47713
|
resetElement(documentElement);
|
|
48315
47714
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -48318,25 +47717,25 @@ function resetDocument(doc2) {
|
|
|
48318
47717
|
childNode.childNodes.length = 0;
|
|
48319
47718
|
}
|
|
48320
47719
|
}
|
|
48321
|
-
for (const key in
|
|
48322
|
-
if (
|
|
48323
|
-
delete
|
|
47720
|
+
for (const key in doc) {
|
|
47721
|
+
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
47722
|
+
delete doc[key];
|
|
48324
47723
|
}
|
|
48325
47724
|
}
|
|
48326
47725
|
try {
|
|
48327
|
-
|
|
47726
|
+
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
48328
47727
|
} catch (e) {
|
|
48329
47728
|
}
|
|
48330
47729
|
try {
|
|
48331
|
-
|
|
47730
|
+
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
48332
47731
|
} catch (e) {
|
|
48333
47732
|
}
|
|
48334
47733
|
try {
|
|
48335
|
-
|
|
47734
|
+
doc.cookie = "";
|
|
48336
47735
|
} catch (e) {
|
|
48337
47736
|
}
|
|
48338
47737
|
try {
|
|
48339
|
-
|
|
47738
|
+
doc.referrer = "";
|
|
48340
47739
|
} catch (e) {
|
|
48341
47740
|
}
|
|
48342
47741
|
}
|
|
@@ -48392,33 +47791,9 @@ function createWindowFromHtml(templateHtml, uniqueId) {
|
|
|
48392
47791
|
templateWindow = new MockWindow(templateHtml);
|
|
48393
47792
|
templateWindows.set(uniqueId, templateWindow);
|
|
48394
47793
|
}
|
|
48395
|
-
const
|
|
48396
|
-
return
|
|
47794
|
+
const win = cloneWindow(templateWindow);
|
|
47795
|
+
return win;
|
|
48397
47796
|
}
|
|
48398
|
-
var Build = {
|
|
48399
|
-
isDev: BUILD.isDev ? true : false,
|
|
48400
|
-
isBrowser: true,
|
|
48401
|
-
isServer: false,
|
|
48402
|
-
isTesting: BUILD.isTesting ? true : false
|
|
48403
|
-
};
|
|
48404
|
-
var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
|
|
48405
|
-
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
48406
|
-
"%cstencil",
|
|
48407
|
-
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
48408
|
-
];
|
|
48409
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
48410
|
-
var doc = win.document || { head: {} };
|
|
48411
|
-
var H = win.HTMLElement || class {
|
|
48412
|
-
};
|
|
48413
|
-
var supportsShadow = BUILD.shadowDom;
|
|
48414
|
-
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
48415
|
-
try {
|
|
48416
|
-
new CSSStyleSheet();
|
|
48417
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
48418
|
-
} catch (e) {
|
|
48419
|
-
}
|
|
48420
|
-
return false;
|
|
48421
|
-
})() : false;
|
|
48422
47797
|
|
|
48423
47798
|
// src/utils/helpers.ts
|
|
48424
47799
|
var isString = (v) => typeof v === "string";
|
|
@@ -48509,21 +47884,16 @@ var unwrapErr = (result) => {
|
|
|
48509
47884
|
throw result.value;
|
|
48510
47885
|
}
|
|
48511
47886
|
};
|
|
48512
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
48513
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
48514
|
-
|
|
48515
|
-
// src/runtime/mode.ts
|
|
48516
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
48517
47887
|
|
|
48518
47888
|
// src/compiler/html/canonical-link.ts
|
|
48519
|
-
var updateCanonicalLink = (
|
|
47889
|
+
var updateCanonicalLink = (doc, href) => {
|
|
48520
47890
|
var _a2;
|
|
48521
|
-
let canonicalLinkElm =
|
|
47891
|
+
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
48522
47892
|
if (typeof href === "string") {
|
|
48523
47893
|
if (canonicalLinkElm == null) {
|
|
48524
|
-
canonicalLinkElm =
|
|
47894
|
+
canonicalLinkElm = doc.createElement("link");
|
|
48525
47895
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
48526
|
-
|
|
47896
|
+
doc.head.appendChild(canonicalLinkElm);
|
|
48527
47897
|
}
|
|
48528
47898
|
canonicalLinkElm.setAttribute("href", href);
|
|
48529
47899
|
} else {
|
|
@@ -48537,11 +47907,11 @@ var updateCanonicalLink = (doc2, href) => {
|
|
|
48537
47907
|
};
|
|
48538
47908
|
|
|
48539
47909
|
// src/compiler/html/relocate-meta-charset.ts
|
|
48540
|
-
var relocateMetaCharset = (
|
|
48541
|
-
const head =
|
|
47910
|
+
var relocateMetaCharset = (doc) => {
|
|
47911
|
+
const head = doc.head;
|
|
48542
47912
|
let charsetElm = head.querySelector("meta[charset]");
|
|
48543
47913
|
if (charsetElm == null) {
|
|
48544
|
-
charsetElm =
|
|
47914
|
+
charsetElm = doc.createElement("meta");
|
|
48545
47915
|
charsetElm.setAttribute("charset", "utf-8");
|
|
48546
47916
|
} else {
|
|
48547
47917
|
charsetElm.remove();
|
|
@@ -48816,13 +48186,13 @@ var parseCss = (css, filePath) => {
|
|
|
48816
48186
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
48817
48187
|
if (!m) return null;
|
|
48818
48188
|
const vendor = trim(m[1]);
|
|
48819
|
-
const
|
|
48189
|
+
const doc = trim(m[2]);
|
|
48820
48190
|
if (!open()) return error(`@document missing '{'`);
|
|
48821
48191
|
const style = comments().concat(rules());
|
|
48822
48192
|
if (!close()) return error(`@document missing '}'`);
|
|
48823
48193
|
return pos({
|
|
48824
48194
|
type: 3 /* Document */,
|
|
48825
|
-
document:
|
|
48195
|
+
document: doc,
|
|
48826
48196
|
vendor,
|
|
48827
48197
|
rules: style
|
|
48828
48198
|
});
|
|
@@ -49148,11 +48518,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
49148
48518
|
};
|
|
49149
48519
|
var serializeCssDocument = (opts, node) => {
|
|
49150
48520
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
49151
|
-
const
|
|
48521
|
+
const doc = "@" + (node.vendor || "") + "document " + node.document;
|
|
49152
48522
|
if (documentCss === "") {
|
|
49153
48523
|
return "";
|
|
49154
48524
|
}
|
|
49155
|
-
return
|
|
48525
|
+
return doc + "{" + documentCss + "}";
|
|
49156
48526
|
};
|
|
49157
48527
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
49158
48528
|
let rtn = "";
|
|
@@ -49250,12 +48620,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
49250
48620
|
};
|
|
49251
48621
|
|
|
49252
48622
|
// src/compiler/html/remove-unused-styles.ts
|
|
49253
|
-
var removeUnusedStyles = (
|
|
48623
|
+
var removeUnusedStyles = (doc, diagnostics) => {
|
|
49254
48624
|
try {
|
|
49255
|
-
const styleElms =
|
|
48625
|
+
const styleElms = doc.head.querySelectorAll(`style[data-styles]`);
|
|
49256
48626
|
const styleLen = styleElms.length;
|
|
49257
48627
|
if (styleLen > 0) {
|
|
49258
|
-
const usedSelectors = getUsedSelectors(
|
|
48628
|
+
const usedSelectors = getUsedSelectors(doc.documentElement);
|
|
49259
48629
|
for (let i = 0; i < styleLen; i++) {
|
|
49260
48630
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
49261
48631
|
}
|
|
@@ -49388,49 +48758,49 @@ function collectAttributes(node) {
|
|
|
49388
48758
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
49389
48759
|
|
|
49390
48760
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
49391
|
-
function patchDomImplementation(
|
|
49392
|
-
let
|
|
49393
|
-
if (
|
|
48761
|
+
function patchDomImplementation(doc, opts) {
|
|
48762
|
+
let win;
|
|
48763
|
+
if (doc.defaultView != null) {
|
|
49394
48764
|
opts.destroyWindow = true;
|
|
49395
|
-
patchWindow(
|
|
49396
|
-
|
|
48765
|
+
patchWindow(doc.defaultView);
|
|
48766
|
+
win = doc.defaultView;
|
|
49397
48767
|
} else {
|
|
49398
48768
|
opts.destroyWindow = true;
|
|
49399
48769
|
opts.destroyDocument = false;
|
|
49400
|
-
|
|
48770
|
+
win = new MockWindow(false);
|
|
49401
48771
|
}
|
|
49402
|
-
if (
|
|
49403
|
-
|
|
48772
|
+
if (win.document !== doc) {
|
|
48773
|
+
win.document = doc;
|
|
49404
48774
|
}
|
|
49405
|
-
if (
|
|
49406
|
-
|
|
48775
|
+
if (doc.defaultView !== win) {
|
|
48776
|
+
doc.defaultView = win;
|
|
49407
48777
|
}
|
|
49408
|
-
const
|
|
49409
|
-
if (typeof
|
|
49410
|
-
const elm =
|
|
48778
|
+
const HTMLElement = doc.documentElement.constructor.prototype;
|
|
48779
|
+
if (typeof HTMLElement.getRootNode !== "function") {
|
|
48780
|
+
const elm = doc.createElement("unknown-element");
|
|
49411
48781
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
49412
48782
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
49413
48783
|
}
|
|
49414
|
-
if (typeof
|
|
49415
|
-
const
|
|
49416
|
-
if (
|
|
49417
|
-
|
|
48784
|
+
if (typeof doc.createEvent === "function") {
|
|
48785
|
+
const CustomEvent = doc.createEvent("CustomEvent").constructor;
|
|
48786
|
+
if (win.CustomEvent !== CustomEvent) {
|
|
48787
|
+
win.CustomEvent = CustomEvent;
|
|
49418
48788
|
}
|
|
49419
48789
|
}
|
|
49420
48790
|
try {
|
|
49421
|
-
|
|
48791
|
+
win.__stencil_baseURI = doc.baseURI;
|
|
49422
48792
|
} catch (e) {
|
|
49423
|
-
Object.defineProperty(
|
|
48793
|
+
Object.defineProperty(doc, "baseURI", {
|
|
49424
48794
|
get() {
|
|
49425
|
-
const baseElm =
|
|
48795
|
+
const baseElm = doc.querySelector("base[href]");
|
|
49426
48796
|
if (baseElm) {
|
|
49427
|
-
return new URL(baseElm.getAttribute("href"),
|
|
48797
|
+
return new URL(baseElm.getAttribute("href"), win.location.href).href;
|
|
49428
48798
|
}
|
|
49429
|
-
return
|
|
48799
|
+
return win.location.href;
|
|
49430
48800
|
}
|
|
49431
48801
|
});
|
|
49432
48802
|
}
|
|
49433
|
-
return
|
|
48803
|
+
return win;
|
|
49434
48804
|
}
|
|
49435
48805
|
function getRootNode(opts) {
|
|
49436
48806
|
const isComposed = opts != null && opts.composed === true;
|
|
@@ -49583,10 +48953,10 @@ function renderCatchError(results, err2) {
|
|
|
49583
48953
|
}
|
|
49584
48954
|
|
|
49585
48955
|
// src/hydrate/runner/runtime-log.ts
|
|
49586
|
-
function runtimeLogging(
|
|
48956
|
+
function runtimeLogging(win, opts, results) {
|
|
49587
48957
|
try {
|
|
49588
|
-
const pathname =
|
|
49589
|
-
|
|
48958
|
+
const pathname = win.location.pathname;
|
|
48959
|
+
win.console.error = (...msgs) => {
|
|
49590
48960
|
const errMsg = msgs.reduce((errMsg2, m) => {
|
|
49591
48961
|
if (m) {
|
|
49592
48962
|
if (m.stack != null) {
|
|
@@ -49606,7 +48976,7 @@ function runtimeLogging(win2, opts, results) {
|
|
|
49606
48976
|
}
|
|
49607
48977
|
}
|
|
49608
48978
|
};
|
|
49609
|
-
|
|
48979
|
+
win.console.debug = (...msgs) => {
|
|
49610
48980
|
renderBuildDiagnostic(results, "debug", "Hydrate Debug", [...msgs].join(", "));
|
|
49611
48981
|
if (opts.runtimeLogging) {
|
|
49612
48982
|
runtimeLog(pathname, "debug", msgs);
|
|
@@ -49614,7 +48984,7 @@ function runtimeLogging(win2, opts, results) {
|
|
|
49614
48984
|
};
|
|
49615
48985
|
if (opts.runtimeLogging) {
|
|
49616
48986
|
["log", "warn", "assert", "info", "trace"].forEach((type) => {
|
|
49617
|
-
|
|
48987
|
+
win.console[type] = (...msgs) => {
|
|
49618
48988
|
runtimeLog(pathname, type, msgs);
|
|
49619
48989
|
};
|
|
49620
48990
|
});
|
|
@@ -49628,64 +48998,58 @@ function runtimeLog(pathname, type, msgs) {
|
|
|
49628
48998
|
}
|
|
49629
48999
|
|
|
49630
49000
|
// src/hydrate/runner/window-initialize.ts
|
|
49631
|
-
|
|
49632
|
-
hostIds: 0,
|
|
49633
|
-
rootLevelIds: 0,
|
|
49634
|
-
staticComponents: /* @__PURE__ */ new Set()
|
|
49635
|
-
};
|
|
49636
|
-
function initializeWindow(win2, doc2, opts, results) {
|
|
49001
|
+
function initializeWindow(win, doc, opts, results) {
|
|
49637
49002
|
if (typeof opts.url === "string") {
|
|
49638
49003
|
try {
|
|
49639
|
-
|
|
49004
|
+
win.location.href = opts.url;
|
|
49640
49005
|
} catch (e) {
|
|
49641
49006
|
}
|
|
49642
49007
|
}
|
|
49643
49008
|
if (typeof opts.userAgent === "string") {
|
|
49644
49009
|
try {
|
|
49645
|
-
|
|
49010
|
+
win.navigator.userAgent = opts.userAgent;
|
|
49646
49011
|
} catch (e) {
|
|
49647
49012
|
}
|
|
49648
49013
|
}
|
|
49649
49014
|
if (typeof opts.cookie === "string") {
|
|
49650
49015
|
try {
|
|
49651
|
-
|
|
49016
|
+
doc.cookie = opts.cookie;
|
|
49652
49017
|
} catch (e) {
|
|
49653
49018
|
}
|
|
49654
49019
|
}
|
|
49655
49020
|
if (typeof opts.referrer === "string") {
|
|
49656
49021
|
try {
|
|
49657
|
-
|
|
49022
|
+
doc.referrer = opts.referrer;
|
|
49658
49023
|
} catch (e) {
|
|
49659
49024
|
}
|
|
49660
49025
|
}
|
|
49661
49026
|
if (typeof opts.direction === "string") {
|
|
49662
49027
|
try {
|
|
49663
|
-
|
|
49028
|
+
doc.documentElement.setAttribute("dir", opts.direction);
|
|
49664
49029
|
} catch (e) {
|
|
49665
49030
|
}
|
|
49666
49031
|
}
|
|
49667
49032
|
if (typeof opts.language === "string") {
|
|
49668
49033
|
try {
|
|
49669
|
-
|
|
49034
|
+
doc.documentElement.setAttribute("lang", opts.language);
|
|
49670
49035
|
} catch (e) {
|
|
49671
49036
|
}
|
|
49672
49037
|
}
|
|
49673
49038
|
if (typeof opts.buildId === "string") {
|
|
49674
49039
|
try {
|
|
49675
|
-
|
|
49040
|
+
doc.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
49676
49041
|
} catch (e) {
|
|
49677
49042
|
}
|
|
49678
49043
|
}
|
|
49679
49044
|
try {
|
|
49680
|
-
|
|
49045
|
+
win.customElements = null;
|
|
49681
49046
|
} catch (e) {
|
|
49682
49047
|
}
|
|
49683
49048
|
if (opts.constrainTimeouts) {
|
|
49684
|
-
constrainTimeouts(
|
|
49049
|
+
constrainTimeouts(win);
|
|
49685
49050
|
}
|
|
49686
|
-
runtimeLogging(
|
|
49687
|
-
|
|
49688
|
-
return win2;
|
|
49051
|
+
runtimeLogging(win, opts, results);
|
|
49052
|
+
return win;
|
|
49689
49053
|
}
|
|
49690
49054
|
|
|
49691
49055
|
// src/hydrate/runner/render.ts
|
|
@@ -49702,44 +49066,44 @@ function renderToString(html, options, asStream) {
|
|
|
49702
49066
|
opts.constrainTimeouts = false;
|
|
49703
49067
|
return hydrateDocument(html, opts, asStream);
|
|
49704
49068
|
}
|
|
49705
|
-
function hydrateDocument(
|
|
49069
|
+
function hydrateDocument(doc, options, asStream) {
|
|
49706
49070
|
const opts = normalizeHydrateOptions(options);
|
|
49707
|
-
let
|
|
49071
|
+
let win = null;
|
|
49708
49072
|
const results = generateHydrateResults(opts);
|
|
49709
49073
|
if (hasError(results.diagnostics)) {
|
|
49710
49074
|
return Promise.resolve(results);
|
|
49711
49075
|
}
|
|
49712
|
-
if (typeof
|
|
49076
|
+
if (typeof doc === "string") {
|
|
49713
49077
|
try {
|
|
49714
49078
|
opts.destroyWindow = true;
|
|
49715
49079
|
opts.destroyDocument = true;
|
|
49716
|
-
|
|
49080
|
+
win = new MockWindow(doc);
|
|
49717
49081
|
if (!asStream) {
|
|
49718
|
-
return render(
|
|
49082
|
+
return render(win, opts, results).then(() => results);
|
|
49719
49083
|
}
|
|
49720
|
-
return renderStream(
|
|
49084
|
+
return renderStream(win, opts, results);
|
|
49721
49085
|
} catch (e) {
|
|
49722
|
-
if (
|
|
49723
|
-
|
|
49086
|
+
if (win && win.close) {
|
|
49087
|
+
win.close();
|
|
49724
49088
|
}
|
|
49725
|
-
|
|
49089
|
+
win = null;
|
|
49726
49090
|
renderCatchError(results, e);
|
|
49727
49091
|
return Promise.resolve(results);
|
|
49728
49092
|
}
|
|
49729
49093
|
}
|
|
49730
|
-
if (isValidDocument(
|
|
49094
|
+
if (isValidDocument(doc)) {
|
|
49731
49095
|
try {
|
|
49732
49096
|
opts.destroyDocument = false;
|
|
49733
|
-
|
|
49097
|
+
win = patchDomImplementation(doc, opts);
|
|
49734
49098
|
if (!asStream) {
|
|
49735
|
-
return render(
|
|
49099
|
+
return render(win, opts, results).then(() => results);
|
|
49736
49100
|
}
|
|
49737
|
-
return renderStream(
|
|
49101
|
+
return renderStream(win, opts, results);
|
|
49738
49102
|
} catch (e) {
|
|
49739
|
-
if (
|
|
49740
|
-
|
|
49103
|
+
if (win && win.close) {
|
|
49104
|
+
win.close();
|
|
49741
49105
|
}
|
|
49742
|
-
|
|
49106
|
+
win = null;
|
|
49743
49107
|
renderCatchError(results, e);
|
|
49744
49108
|
return Promise.resolve(results);
|
|
49745
49109
|
}
|
|
@@ -49747,81 +49111,75 @@ function hydrateDocument(doc2, options, asStream) {
|
|
|
49747
49111
|
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
49748
49112
|
return Promise.resolve(results);
|
|
49749
49113
|
}
|
|
49750
|
-
async function render(
|
|
49114
|
+
async function render(win, opts, results) {
|
|
49751
49115
|
if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
|
|
49752
49116
|
process.__stencilErrors = true;
|
|
49753
49117
|
process.on("unhandledRejection", (e) => {
|
|
49754
49118
|
console.log("unhandledRejection", e);
|
|
49755
49119
|
});
|
|
49756
49120
|
}
|
|
49757
|
-
initializeWindow(
|
|
49121
|
+
initializeWindow(win, win.document, opts, results);
|
|
49758
49122
|
const beforeHydrateFn = typeof opts.beforeHydrate === "function" ? opts.beforeHydrate : NOOP;
|
|
49759
49123
|
try {
|
|
49760
|
-
await Promise.resolve(beforeHydrateFn(
|
|
49761
|
-
return new Promise((resolve) =>
|
|
49762
|
-
if (Array.isArray(opts.modes)) {
|
|
49763
|
-
modeResolutionChain.length = 0;
|
|
49764
|
-
opts.modes.forEach((mode) => setMode(mode));
|
|
49765
|
-
}
|
|
49766
|
-
return hydrateFactory(win2, opts, results, afterHydrate, resolve);
|
|
49767
|
-
});
|
|
49124
|
+
await Promise.resolve(beforeHydrateFn(win.document));
|
|
49125
|
+
return new Promise((resolve) => hydrateFactory(win, opts, results, afterHydrate, resolve));
|
|
49768
49126
|
} catch (e) {
|
|
49769
49127
|
renderCatchError(results, e);
|
|
49770
|
-
return finalizeHydrate(
|
|
49128
|
+
return finalizeHydrate(win, win.document, opts, results);
|
|
49771
49129
|
}
|
|
49772
49130
|
}
|
|
49773
|
-
function renderStream(
|
|
49131
|
+
function renderStream(win, opts, results) {
|
|
49774
49132
|
async function* processRender() {
|
|
49775
|
-
const renderResult = await render(
|
|
49133
|
+
const renderResult = await render(win, opts, results);
|
|
49776
49134
|
yield renderResult.html;
|
|
49777
49135
|
}
|
|
49778
49136
|
return Readable.from(processRender());
|
|
49779
49137
|
}
|
|
49780
|
-
async function afterHydrate(
|
|
49138
|
+
async function afterHydrate(win, opts, results, resolve) {
|
|
49781
49139
|
const afterHydrateFn = typeof opts.afterHydrate === "function" ? opts.afterHydrate : NOOP;
|
|
49782
49140
|
try {
|
|
49783
|
-
await Promise.resolve(afterHydrateFn(
|
|
49784
|
-
return resolve(finalizeHydrate(
|
|
49141
|
+
await Promise.resolve(afterHydrateFn(win.document));
|
|
49142
|
+
return resolve(finalizeHydrate(win, win.document, opts, results));
|
|
49785
49143
|
} catch (e) {
|
|
49786
49144
|
renderCatchError(results, e);
|
|
49787
|
-
return resolve(finalizeHydrate(
|
|
49145
|
+
return resolve(finalizeHydrate(win, win.document, opts, results));
|
|
49788
49146
|
}
|
|
49789
49147
|
}
|
|
49790
|
-
function finalizeHydrate(
|
|
49148
|
+
function finalizeHydrate(win, doc, opts, results) {
|
|
49791
49149
|
try {
|
|
49792
|
-
inspectElement(results,
|
|
49150
|
+
inspectElement(results, doc.documentElement, 0);
|
|
49793
49151
|
if (opts.removeUnusedStyles !== false) {
|
|
49794
49152
|
try {
|
|
49795
|
-
removeUnusedStyles(
|
|
49153
|
+
removeUnusedStyles(doc, results.diagnostics);
|
|
49796
49154
|
} catch (e) {
|
|
49797
49155
|
renderCatchError(results, e);
|
|
49798
49156
|
}
|
|
49799
49157
|
}
|
|
49800
49158
|
if (typeof opts.title === "string") {
|
|
49801
49159
|
try {
|
|
49802
|
-
|
|
49160
|
+
doc.title = opts.title;
|
|
49803
49161
|
} catch (e) {
|
|
49804
49162
|
renderCatchError(results, e);
|
|
49805
49163
|
}
|
|
49806
49164
|
}
|
|
49807
|
-
results.title =
|
|
49165
|
+
results.title = doc.title;
|
|
49808
49166
|
if (opts.removeScripts) {
|
|
49809
|
-
removeScripts(
|
|
49167
|
+
removeScripts(doc.documentElement);
|
|
49810
49168
|
}
|
|
49811
49169
|
try {
|
|
49812
|
-
updateCanonicalLink(
|
|
49170
|
+
updateCanonicalLink(doc, opts.canonicalUrl);
|
|
49813
49171
|
} catch (e) {
|
|
49814
49172
|
renderCatchError(results, e);
|
|
49815
49173
|
}
|
|
49816
49174
|
try {
|
|
49817
|
-
relocateMetaCharset(
|
|
49175
|
+
relocateMetaCharset(doc);
|
|
49818
49176
|
} catch (e) {
|
|
49819
49177
|
}
|
|
49820
49178
|
if (!hasError(results.diagnostics)) {
|
|
49821
49179
|
results.httpStatus = 200;
|
|
49822
49180
|
}
|
|
49823
49181
|
try {
|
|
49824
|
-
const metaStatus =
|
|
49182
|
+
const metaStatus = doc.head.querySelector('meta[http-equiv="status"]');
|
|
49825
49183
|
if (metaStatus != null) {
|
|
49826
49184
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
49827
49185
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -49831,35 +49189,35 @@ function finalizeHydrate(win2, doc2, opts, results) {
|
|
|
49831
49189
|
} catch (e) {
|
|
49832
49190
|
}
|
|
49833
49191
|
if (opts.clientHydrateAnnotations) {
|
|
49834
|
-
|
|
49192
|
+
doc.documentElement.classList.add("hydrated");
|
|
49835
49193
|
}
|
|
49836
49194
|
if (opts.serializeToHtml) {
|
|
49837
|
-
results.html = serializeDocumentToString(
|
|
49195
|
+
results.html = serializeDocumentToString(doc, opts);
|
|
49838
49196
|
}
|
|
49839
49197
|
} catch (e) {
|
|
49840
49198
|
renderCatchError(results, e);
|
|
49841
49199
|
}
|
|
49842
|
-
destroyWindow(
|
|
49200
|
+
destroyWindow(win, doc, opts, results);
|
|
49843
49201
|
return results;
|
|
49844
49202
|
}
|
|
49845
|
-
function destroyWindow(
|
|
49203
|
+
function destroyWindow(win, doc, opts, results) {
|
|
49846
49204
|
if (!opts.destroyWindow) {
|
|
49847
49205
|
return;
|
|
49848
49206
|
}
|
|
49849
49207
|
try {
|
|
49850
49208
|
if (!opts.destroyDocument) {
|
|
49851
|
-
|
|
49852
|
-
|
|
49209
|
+
win.document = null;
|
|
49210
|
+
doc.defaultView = null;
|
|
49853
49211
|
}
|
|
49854
|
-
if (
|
|
49855
|
-
|
|
49212
|
+
if (win.close) {
|
|
49213
|
+
win.close();
|
|
49856
49214
|
}
|
|
49857
49215
|
} catch (e) {
|
|
49858
49216
|
renderCatchError(results, e);
|
|
49859
49217
|
}
|
|
49860
49218
|
}
|
|
49861
|
-
function serializeDocumentToString(
|
|
49862
|
-
return serializeNodeToHtml(
|
|
49219
|
+
function serializeDocumentToString(doc, opts) {
|
|
49220
|
+
return serializeNodeToHtml(doc, {
|
|
49863
49221
|
approximateLineWidth: opts.approximateLineWidth,
|
|
49864
49222
|
outerHtml: false,
|
|
49865
49223
|
prettyHtml: opts.prettyHtml,
|
|
@@ -49871,8 +49229,8 @@ function serializeDocumentToString(doc2, opts) {
|
|
|
49871
49229
|
fullDocument: opts.fullDocument
|
|
49872
49230
|
});
|
|
49873
49231
|
}
|
|
49874
|
-
function isValidDocument(
|
|
49875
|
-
return
|
|
49232
|
+
function isValidDocument(doc) {
|
|
49233
|
+
return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
|
|
49876
49234
|
}
|
|
49877
49235
|
function removeScripts(elm) {
|
|
49878
49236
|
const children = elm.children;
|