@ionic/core 8.3.1-dev.11726172907.15a1af41 → 8.3.1-dev.11726258029.1014159b
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/animation.js +1 -1
- package/components/button.js +2 -1
- package/components/capacitor.js +1 -1
- package/components/data.js +1 -1
- package/components/focus-visible.js +1 -8
- package/components/hardware-back-button.js +115 -0
- package/components/index2.js +2 -1
- package/components/index4.js +4 -1
- package/components/index5.js +3 -27
- package/components/index6.js +20 -114
- package/components/index7.js +27 -163
- package/components/index8.js +128 -0
- package/components/index9.js +167 -0
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +2 -1
- package/components/ion-accordion-group.js +2 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-app.js +75 -6
- package/components/ion-back-button.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-datetime-button.js +2 -1
- package/components/ion-datetime.js +3 -2
- package/components/ion-fab-button.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-password-toggle.js +3 -2
- package/components/ion-input.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu.js +2 -1
- package/components/ion-modal.js +4 -2
- package/components/ion-nav.js +2 -1
- package/components/ion-picker-legacy.js +2 -1
- package/components/ion-range.js +3 -2
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-toast.js +3 -1
- package/components/ion-toggle.js +1 -1
- package/components/ionic-global.js +2 -219
- package/components/item.js +1 -1
- package/components/keyboard-controller.js +1 -1
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +4 -1
- package/components/picker-column.js +2 -1
- package/components/popover.js +2 -1
- package/components/status-tap.js +1 -1
- package/dist/cjs/{animation-f43e6366.js → animation-b4fdf128.js} +2 -2
- package/dist/cjs/{app-globals-aa7aec45.js → app-globals-9d795e44.js} +1 -1
- package/dist/cjs/{button-active-1164881e.js → button-active-4115dc12.js} +2 -2
- package/dist/cjs/{capacitor-094870c0.js → capacitor-c04564bf.js} +3 -3
- package/dist/cjs/{data-c6182804.js → data-21dc0f81.js} +3 -3
- package/dist/cjs/{focus-visible-ca81ce81.js → focus-visible-7a0ce04f.js} +0 -8
- package/dist/cjs/{haptic-188baa8e.js → haptic-f6b37aa3.js} +1 -1
- package/dist/cjs/hardware-back-button-35a9ebdb.js +122 -0
- package/dist/cjs/{index-afc28d19.js → index-248835d7.js} +9 -6
- package/dist/cjs/{index-b9e25ecd.js → index-42dd5e74.js} +8 -2
- package/dist/cjs/{index-23381b18.js → index-44dacdce.js} +8 -7
- package/dist/cjs/index-5915f9b3.js +38 -0
- package/dist/cjs/{index-b3550209.js → index-5b6a7459.js} +2 -2
- package/dist/cjs/{index-60f4c4b4.js → index-9509ecad.js} +6 -7
- package/dist/cjs/index-c8d52405.js +10 -0
- package/dist/cjs/index.cjs.js +11 -8
- package/dist/cjs/{input-shims-833981ee.js → input-shims-9e59ef62.js} +16 -16
- package/dist/cjs/{input.utils-a4020823.js → input.utils-611cde0b.js} +4 -3
- package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -7
- package/dist/cjs/ion-alert.cjs.entry.js +10 -7
- package/dist/cjs/ion-app_8.cjs.entry.js +91 -21
- 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 +6 -5
- 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 +8 -7
- package/dist/cjs/ion-datetime_3.cjs.entry.js +97 -94
- 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 +4 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +8 -7
- package/dist/cjs/ion-input.cjs.entry.js +6 -4
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -3
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +7 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +9 -6
- package/dist/cjs/ion-modal.cjs.entry.js +50 -47
- package/dist/cjs/ion-nav_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column.cjs.entry.js +6 -5
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +11 -8
- 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 +9 -8
- package/dist/cjs/ion-refresher_2.cjs.entry.js +8 -6
- package/dist/cjs/ion-reorder_2.cjs.entry.js +7 -5
- 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_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +7 -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 +6 -5
- 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 +6 -4
- package/dist/cjs/ion-toast.cjs.entry.js +32 -29
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -4
- package/dist/cjs/ionic-global-2fc6b860.js +237 -0
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-dac99bf0.js → ios.transition-c28ff3cc.js} +6 -4
- package/dist/cjs/{keyboard-6d170faf.js → keyboard-0272231f.js} +1 -1
- package/dist/cjs/{keyboard-c79a662b.js → keyboard-af1bb365.js} +3 -4
- package/dist/cjs/{keyboard-controller-a6533765.js → keyboard-controller-c05e747a.js} +9 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-65b7c8b6.js → md.transition-01295b30.js} +6 -4
- package/dist/cjs/{notch-controller-b33a54ec.js → notch-controller-d69150f5.js} +3 -3
- package/dist/cjs/{overlays-44027b72.js → overlays-76ac42e7.js} +12 -9
- package/dist/cjs/{status-tap-643bbfa4.js → status-tap-75c3a35d.js} +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/app/app.js +75 -5
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +1 -1
- package/dist/collection/global/ionic-global.js +1 -70
- package/dist/collection/utils/focus-visible.js +0 -7
- package/dist/docs.json +109 -109
- package/dist/esm/{animation-840e1209.js → animation-eab5a4ca.js} +1 -1
- package/dist/esm/{app-globals-537d56c1.js → app-globals-cef8aa6d.js} +1 -1
- package/dist/esm/{button-active-dba2328e.js → button-active-6700b8ee.js} +2 -2
- package/dist/esm/{capacitor-fcd09564.js → capacitor-59395cbd.js} +1 -1
- package/dist/esm/{data-8389220e.js → data-ae11fd43.js} +1 -1
- package/dist/esm/{focus-visible-b960316e.js → focus-visible-dd40d69f.js} +1 -8
- package/dist/esm/{haptic-6d16c679.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm/hardware-back-button-3dd2cf5a.js +116 -0
- package/dist/esm/{index-4e02bb5d.js → index-3ed04e6d.js} +8 -2
- package/dist/esm/{index-a4bd9891.js → index-42907296.js} +5 -4
- package/dist/esm/{index-40662748.js → index-5cc724f3.js} +1 -1
- package/dist/esm/{index-3f9b7dcc.js → index-79b30591.js} +1 -2
- package/dist/esm/index-9b0d46f4.js +34 -0
- package/dist/esm/index-a5d50daf.js +7 -0
- package/dist/esm/{index-07e10d19.js → index-deb1a83e.js} +5 -2
- package/dist/esm/index.js +11 -8
- package/dist/esm/{input-shims-d4681aea.js → input-shims-0314bbe5.js} +5 -5
- package/dist/esm/{input.utils-c7e363b4.js → input.utils-09c71bc7.js} +2 -1
- package/dist/esm/ion-accordion_2.entry.js +3 -2
- package/dist/esm/ion-action-sheet.entry.js +10 -7
- package/dist/esm/ion-alert.entry.js +10 -7
- package/dist/esm/ion-app_8.entry.js +81 -11
- 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 +3 -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 +4 -3
- package/dist/esm/ion-datetime_3.entry.js +11 -8
- 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 +4 -3
- package/dist/esm/ion-input-password-toggle.entry.js +3 -2
- package/dist/esm/ion-input.entry.js +6 -4
- package/dist/esm/ion-item-option_3.entry.js +4 -3
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +7 -4
- package/dist/esm/ion-menu_3.entry.js +8 -5
- package/dist/esm/ion-modal.entry.js +12 -9
- package/dist/esm/ion-nav_2.entry.js +4 -3
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +5 -4
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +8 -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 +4 -3
- package/dist/esm/ion-refresher_2.entry.js +8 -6
- package/dist/esm/ion-reorder_2.entry.js +7 -5
- 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_2.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +7 -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 +6 -5
- 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 +6 -4
- package/dist/esm/ion-toast.entry.js +7 -4
- package/dist/esm/ion-toggle.entry.js +5 -4
- package/dist/esm/ionic-global-aba82484.js +231 -0
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-e50705d1.js → ios.transition-903646a5.js} +6 -4
- package/dist/esm/{keyboard-630cb801.js → keyboard-52278bd7.js} +3 -4
- package/dist/esm/{keyboard-f89a5eae.js → keyboard-73175e24.js} +1 -1
- package/dist/esm/{keyboard-controller-00b92ab3.js → keyboard-controller-ec5c2bfa.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-58674b20.js → md.transition-92c7f8a6.js} +6 -4
- package/dist/esm/{notch-controller-e45ab374.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm/{overlays-a2dfa4a7.js → overlays-d1a2f8a8.js} +4 -1
- package/dist/esm/{status-tap-a9f0d61d.js → status-tap-97e323a9.js} +3 -3
- package/dist/esm-es5/animation-eab5a4ca.js +4 -0
- package/dist/esm-es5/app-globals-cef8aa6d.js +4 -0
- package/dist/esm-es5/{button-active-dba2328e.js → button-active-6700b8ee.js} +1 -1
- package/dist/esm-es5/capacitor-59395cbd.js +4 -0
- package/dist/esm-es5/data-ae11fd43.js +4 -0
- package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
- package/dist/esm-es5/{haptic-6d16c679.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm-es5/hardware-back-button-3dd2cf5a.js +4 -0
- package/dist/esm-es5/index-3ed04e6d.js +5 -0
- package/dist/esm-es5/index-42907296.js +4 -0
- package/dist/esm-es5/index-5cc724f3.js +4 -0
- package/dist/esm-es5/index-79b30591.js +4 -0
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/index-a5d50daf.js +4 -0
- package/dist/esm-es5/index-deb1a83e.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-0314bbe5.js +4 -0
- package/dist/esm-es5/input.utils-09c71bc7.js +4 -0
- 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_2.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-aba82484.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-903646a5.js +4 -0
- package/dist/esm-es5/keyboard-52278bd7.js +4 -0
- package/dist/esm-es5/{keyboard-f89a5eae.js → keyboard-73175e24.js} +1 -1
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-92c7f8a6.js +4 -0
- package/dist/esm-es5/notch-controller-55b09e11.js +4 -0
- package/dist/esm-es5/overlays-d1a2f8a8.js +4 -0
- package/dist/esm-es5/status-tap-97e323a9.js +4 -0
- package/dist/html.html-data.json +102 -102
- 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-0047371d.system.entry.js +4 -0
- package/dist/ionic/p-019fe44c.system.entry.js +4 -0
- package/dist/ionic/p-05399319.entry.js +4 -0
- package/dist/ionic/{p-de6fd4fb.system.entry.js → p-067db520.system.entry.js} +1 -1
- package/dist/ionic/{p-47c92e81.js → p-06e58c4e.js} +1 -1
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/p-0956b807.system.entry.js +4 -0
- package/dist/ionic/{p-6418a407.system.entry.js → p-0b2cb317.system.entry.js} +1 -1
- package/dist/ionic/p-0b61b67e.system.js +4 -0
- package/dist/ionic/p-0bfdb16f.system.js +4 -0
- package/dist/ionic/p-0c06e09b.system.js +4 -0
- package/dist/ionic/p-0dc1d769.entry.js +4 -0
- package/dist/ionic/p-0f9c24fe.system.js +4 -0
- package/dist/ionic/{p-3ef8ff43.entry.js → p-1350a9c2.entry.js} +1 -1
- package/dist/ionic/p-14616c10.system.entry.js +4 -0
- package/dist/ionic/p-149da974.system.js +4 -0
- package/dist/ionic/{p-ddd6d918.entry.js → p-16b7cfc2.entry.js} +1 -1
- package/dist/ionic/p-192e07b1.system.entry.js +4 -0
- package/dist/ionic/{p-00c9cfa0.entry.js → p-1955f63a.entry.js} +1 -1
- package/dist/ionic/{p-eae596b8.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/p-1ca23ae9.system.entry.js +4 -0
- package/dist/ionic/{p-ad4a3c01.system.js → p-1d524f20.system.js} +1 -1
- package/dist/ionic/{p-6c810800.system.js → p-1dfc11b3.system.js} +1 -1
- package/dist/ionic/p-1e4371bd.js +4 -0
- package/dist/ionic/p-2067d815.system.entry.js +4 -0
- package/dist/ionic/p-2583e966.js +4 -0
- package/dist/ionic/p-263a3f91.system.js +4 -0
- package/dist/ionic/p-2690b1de.js +4 -0
- package/dist/ionic/{p-845c8117.js → p-27281edd.js} +1 -1
- package/dist/ionic/{p-3eca6ffb.entry.js → p-2b2a48ed.entry.js} +1 -1
- package/dist/ionic/p-2b7827c7.js +4 -0
- package/dist/ionic/{p-11cf4ee1.entry.js → p-2b87a770.entry.js} +1 -1
- package/dist/ionic/{p-c1c1b3c1.system.entry.js → p-2e2c1a93.system.entry.js} +1 -1
- package/dist/ionic/p-2e5ee828.system.entry.js +4 -0
- package/dist/ionic/p-2e6cf7f2.js +4 -0
- package/dist/ionic/{p-7f85fd7d.system.entry.js → p-2f244b7c.system.entry.js} +1 -1
- package/dist/ionic/{p-bc088eb6.system.js → p-30482ed4.system.js} +1 -1
- package/dist/ionic/{p-cc35239f.entry.js → p-33fb4e9d.entry.js} +1 -1
- package/dist/ionic/p-3447e604.system.entry.js +4 -0
- package/dist/ionic/{p-809941d0.js → p-34b11c24.js} +1 -1
- package/dist/ionic/{p-861785a6.entry.js → p-3b2c0ca4.entry.js} +1 -1
- package/dist/ionic/p-3c8001c7.system.entry.js +4 -0
- package/dist/ionic/{p-ca2083bc.system.entry.js → p-3e4a7bd8.system.entry.js} +1 -1
- package/dist/ionic/{p-39ed01f6.system.entry.js → p-40277321.system.entry.js} +1 -1
- package/dist/ionic/p-4029255b.system.entry.js +4 -0
- package/dist/ionic/{p-39166cd5.entry.js → p-4205a4d9.entry.js} +1 -1
- package/dist/ionic/p-428db536.entry.js +4 -0
- package/dist/ionic/p-42f9a951.system.entry.js +4 -0
- package/dist/ionic/{p-3657cf1a.system.entry.js → p-44d98be5.system.entry.js} +1 -1
- package/dist/ionic/p-46bac798.entry.js +4 -0
- package/dist/ionic/{p-765a2b13.system.entry.js → p-488bc4e4.system.entry.js} +1 -1
- package/dist/ionic/p-49c26aa9.entry.js +4 -0
- package/dist/ionic/p-4ad055dc.system.entry.js +4 -0
- package/dist/ionic/{p-8c13b08d.entry.js → p-4b1364c9.entry.js} +1 -1
- package/dist/ionic/{p-d52f8930.entry.js → p-4bd23b81.entry.js} +1 -1
- package/dist/ionic/p-4d81423b.entry.js +4 -0
- package/dist/ionic/p-4e7b0cee.entry.js +4 -0
- package/dist/ionic/p-4fe468c2.entry.js +4 -0
- package/dist/ionic/p-51ae8a06.system.entry.js +4 -0
- package/dist/ionic/{p-1c6bb45f.entry.js → p-51d30486.entry.js} +1 -1
- package/dist/ionic/{p-e4f401d7.entry.js → p-52c20808.entry.js} +1 -1
- package/dist/ionic/p-56435093.js +4 -0
- package/dist/ionic/{p-b6fbbe81.system.entry.js → p-57f94155.system.entry.js} +1 -1
- package/dist/ionic/p-59a394ad.system.js +5 -0
- package/dist/ionic/{p-b760b2fa.system.entry.js → p-59cda258.system.entry.js} +1 -1
- package/dist/ionic/{p-91459095.entry.js → p-5d43e642.entry.js} +1 -1
- package/dist/ionic/p-5d5d5073.entry.js +4 -0
- package/dist/ionic/p-5d6c0bf8.system.js +4 -0
- package/dist/ionic/{p-0bee79fc.system.entry.js → p-5d7ea80a.system.entry.js} +1 -1
- package/dist/ionic/p-5e94453a.entry.js +4 -0
- package/dist/ionic/{p-7cbcee2c.system.entry.js → p-5e97855d.system.entry.js} +1 -1
- package/dist/ionic/{p-5a0f3c6f.entry.js → p-5ef51d63.entry.js} +1 -1
- package/dist/ionic/p-600a4ea0.js +4 -0
- package/dist/ionic/p-62b04b4c.entry.js +4 -0
- package/dist/ionic/p-663fe7c8.system.entry.js +4 -0
- package/dist/ionic/p-68da7fc8.system.js +4 -0
- package/dist/ionic/{p-d7bd9057.system.entry.js → p-6bbad9e4.system.entry.js} +1 -1
- package/dist/ionic/p-6ca2a6af.entry.js +4 -0
- package/dist/ionic/p-6f465cce.js +4 -0
- package/dist/ionic/{p-21a0f452.entry.js → p-70325536.entry.js} +1 -1
- package/dist/ionic/p-714841be.system.js +4 -0
- package/dist/ionic/p-72812e99.js +4 -0
- package/dist/ionic/p-7414228b.js +5 -0
- package/dist/ionic/{p-00cbf542.entry.js → p-76bb8eb2.entry.js} +1 -1
- package/dist/ionic/p-792919fd.system.js +4 -0
- package/dist/ionic/p-7b30edcc.js +4 -0
- package/dist/ionic/p-7e07fb64.entry.js +4 -0
- package/dist/ionic/p-7e497250.system.entry.js +4 -0
- package/dist/ionic/{p-dab508d0.system.js → p-8985cdb6.system.js} +1 -1
- package/dist/ionic/{p-4525cc2f.js → p-89b61afc.js} +1 -1
- package/dist/ionic/{p-0a7a7ab9.entry.js → p-89bd4ed2.entry.js} +1 -1
- package/dist/ionic/{p-0476b3cc.system.js → p-9146695e.system.js} +1 -1
- package/dist/ionic/{p-444c76ee.system.entry.js → p-91d713b7.system.entry.js} +1 -1
- package/dist/ionic/p-933e9e71.entry.js +4 -0
- package/dist/ionic/p-96cc4814.js +4 -0
- package/dist/ionic/{p-e00617fb.entry.js → p-99859f95.entry.js} +1 -1
- package/dist/ionic/{p-c9525721.system.js → p-9ea607bd.system.js} +2 -2
- package/dist/ionic/p-9f8740b2.entry.js +4 -0
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/p-a8775bf9.entry.js +4 -0
- package/dist/ionic/{p-abe01542.system.js → p-a93873de.system.js} +1 -1
- package/dist/ionic/p-abc5c0a4.system.entry.js +4 -0
- package/dist/ionic/p-abe101da.system.js +4 -0
- package/dist/ionic/p-aed9cc5b.entry.js +4 -0
- package/dist/ionic/{p-30c57db4.system.entry.js → p-aee3f804.system.entry.js} +1 -1
- package/dist/ionic/{p-5b6645a1.system.js → p-b06ac4a5.system.js} +1 -1
- package/dist/ionic/{p-eecf5384.system.entry.js → p-b2a2c6cf.system.entry.js} +1 -1
- package/dist/ionic/p-b69c1e65.system.entry.js +4 -0
- package/dist/ionic/p-b719790b.js +4 -0
- package/dist/ionic/{p-c0e7cab8.entry.js → p-b7836cec.entry.js} +1 -1
- package/dist/ionic/p-b8157bb5.system.entry.js +4 -0
- package/dist/ionic/p-bae531fb.system.entry.js +4 -0
- package/dist/ionic/{p-f41cce45.system.entry.js → p-bd9fd891.system.entry.js} +1 -1
- package/dist/ionic/{p-cf7d3a87.system.entry.js → p-c342dbdf.system.entry.js} +1 -1
- package/dist/ionic/p-c468af8a.system.js +4 -0
- package/dist/ionic/p-c57d792e.entry.js +4 -0
- package/dist/ionic/p-c61cc894.js +4 -0
- package/dist/ionic/{p-f3bc485f.system.entry.js → p-c76e43a2.system.entry.js} +1 -1
- package/dist/ionic/{p-60c38dee.js → p-c7e16491.js} +1 -1
- package/dist/ionic/p-c8e78b70.system.entry.js +4 -0
- package/dist/ionic/{p-cd6bd33e.entry.js → p-cb9da2a3.entry.js} +1 -1
- package/dist/ionic/p-cc3e2b52.entry.js +4 -0
- package/dist/ionic/{p-77cda5c7.entry.js → p-ce58e8e0.entry.js} +1 -1
- package/dist/ionic/p-d073ba84.entry.js +4 -0
- package/dist/ionic/p-d0f8d0aa.entry.js +4 -0
- package/dist/ionic/p-d47265c8.js +4 -0
- package/dist/ionic/{p-4ee57cf5.js → p-d60342e3.js} +1 -1
- package/dist/ionic/p-d65d9c9c.system.entry.js +4 -0
- package/dist/ionic/p-d6e463ee.system.entry.js +4 -0
- package/dist/ionic/{p-886a05f9.system.js → p-d75bce6a.system.js} +1 -1
- package/dist/ionic/p-d8ace0cb.entry.js +4 -0
- package/dist/ionic/p-d8dcfbf3.system.entry.js +4 -0
- package/dist/ionic/{p-84e08e08.system.entry.js → p-da5e7dbe.system.entry.js} +1 -1
- package/dist/ionic/{p-1253d402.entry.js → p-dc672c3a.entry.js} +1 -1
- package/dist/ionic/{p-9ced646a.system.js → p-dfb78785.system.js} +1 -1
- package/dist/ionic/p-e351e0e3.entry.js +4 -0
- package/dist/ionic/{p-2f8773b2.system.entry.js → p-e6e98f68.system.entry.js} +1 -1
- package/dist/ionic/{p-84030740.js → p-e8cc3bad.js} +1 -1
- package/dist/ionic/{p-9ea9eef2.entry.js → p-e9119176.entry.js} +1 -1
- package/dist/ionic/{p-d312edb3.system.entry.js → p-ed3f6648.system.entry.js} +1 -1
- package/dist/ionic/p-eec4b4ce.entry.js +4 -0
- package/dist/ionic/{p-aa037934.system.js → p-f08654ea.system.js} +1 -1
- package/dist/ionic/p-f22b3a75.js +4 -0
- package/dist/ionic/p-f367478b.js +4 -0
- package/dist/ionic/p-f36c9945.system.entry.js +4 -0
- package/dist/ionic/{p-8ff1e95d.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/p-fc9b4e5a.entry.js +4 -0
- package/dist/ionic/{p-6a95a932.system.entry.js → p-fdfa74cc.system.entry.js} +1 -1
- package/dist/ionic/p-fec56d82.js +4 -0
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/types/components/app/app.d.ts +2 -0
- package/dist/types/global/ionic-global.d.ts +0 -2
- package/dist/types/stencil-public-runtime.d.ts +4 -0
- package/dist/types/utils/focus-visible.d.ts +0 -1
- package/hydrate/index.d.ts +6 -0
- package/hydrate/index.js +502 -372
- package/hydrate/index.mjs +502 -372
- package/package.json +2 -2
- package/dist/cjs/ionic-global-4503ea83.js +0 -462
- package/dist/esm/ionic-global-b1979612.js +0 -448
- package/dist/esm-es5/animation-840e1209.js +0 -4
- package/dist/esm-es5/app-globals-537d56c1.js +0 -4
- package/dist/esm-es5/capacitor-fcd09564.js +0 -4
- package/dist/esm-es5/data-8389220e.js +0 -4
- package/dist/esm-es5/focus-visible-b960316e.js +0 -4
- package/dist/esm-es5/index-07e10d19.js +0 -4
- package/dist/esm-es5/index-3f9b7dcc.js +0 -4
- package/dist/esm-es5/index-40662748.js +0 -4
- package/dist/esm-es5/index-4e02bb5d.js +0 -5
- package/dist/esm-es5/index-a4bd9891.js +0 -4
- package/dist/esm-es5/input-shims-d4681aea.js +0 -4
- package/dist/esm-es5/input.utils-c7e363b4.js +0 -4
- package/dist/esm-es5/ionic-global-b1979612.js +0 -4
- package/dist/esm-es5/ios.transition-e50705d1.js +0 -4
- package/dist/esm-es5/keyboard-630cb801.js +0 -4
- package/dist/esm-es5/keyboard-controller-00b92ab3.js +0 -4
- package/dist/esm-es5/md.transition-58674b20.js +0 -4
- package/dist/esm-es5/notch-controller-e45ab374.js +0 -4
- package/dist/esm-es5/overlays-a2dfa4a7.js +0 -4
- package/dist/esm-es5/status-tap-a9f0d61d.js +0 -4
- package/dist/ionic/p-01b0e865.system.js +0 -4
- package/dist/ionic/p-073dacf3.entry.js +0 -4
- package/dist/ionic/p-07e807fb.js +0 -4
- package/dist/ionic/p-0a31c7b9.system.entry.js +0 -4
- package/dist/ionic/p-0f1ba402.entry.js +0 -4
- package/dist/ionic/p-16917861.system.js +0 -4
- package/dist/ionic/p-179c573b.system.entry.js +0 -4
- package/dist/ionic/p-20ffa318.entry.js +0 -4
- package/dist/ionic/p-23889fd8.entry.js +0 -4
- package/dist/ionic/p-25a2d298.js +0 -4
- package/dist/ionic/p-28b059c3.system.entry.js +0 -4
- package/dist/ionic/p-2d8341d0.system.js +0 -4
- package/dist/ionic/p-2f2fd67f.entry.js +0 -4
- package/dist/ionic/p-31f1eb81.entry.js +0 -4
- package/dist/ionic/p-37fbd57a.system.entry.js +0 -4
- package/dist/ionic/p-4175803c.system.js +0 -4
- package/dist/ionic/p-41ec2afd.entry.js +0 -4
- package/dist/ionic/p-460070eb.system.js +0 -4
- package/dist/ionic/p-466434d4.system.js +0 -4
- package/dist/ionic/p-46db4410.system.entry.js +0 -4
- package/dist/ionic/p-480cfc61.entry.js +0 -4
- package/dist/ionic/p-487a3ae7.system.js +0 -5
- package/dist/ionic/p-4a274d8d.entry.js +0 -4
- package/dist/ionic/p-4b528ed3.js +0 -5
- package/dist/ionic/p-4fbde654.js +0 -4
- package/dist/ionic/p-51b9d14a.js +0 -4
- package/dist/ionic/p-52371477.system.entry.js +0 -4
- package/dist/ionic/p-5328e386.system.entry.js +0 -4
- package/dist/ionic/p-57eb8bf5.entry.js +0 -4
- package/dist/ionic/p-58812aa8.system.entry.js +0 -4
- package/dist/ionic/p-5c456cd2.system.entry.js +0 -4
- package/dist/ionic/p-5e03c97e.system.entry.js +0 -4
- package/dist/ionic/p-5fb843ce.entry.js +0 -4
- package/dist/ionic/p-5fd711d1.entry.js +0 -4
- package/dist/ionic/p-67bb048a.system.entry.js +0 -4
- package/dist/ionic/p-69f80fd3.entry.js +0 -4
- package/dist/ionic/p-73216388.entry.js +0 -4
- package/dist/ionic/p-736d36fb.system.js +0 -4
- package/dist/ionic/p-73b45a64.entry.js +0 -4
- package/dist/ionic/p-7a86440f.entry.js +0 -4
- package/dist/ionic/p-82b38b14.system.js +0 -4
- package/dist/ionic/p-833104fe.system.entry.js +0 -4
- package/dist/ionic/p-86b6a057.system.entry.js +0 -4
- package/dist/ionic/p-877dee4e.system.entry.js +0 -4
- package/dist/ionic/p-902f1e0d.entry.js +0 -4
- package/dist/ionic/p-90b717c3.entry.js +0 -4
- package/dist/ionic/p-958d1ddf.entry.js +0 -4
- package/dist/ionic/p-9647f627.system.entry.js +0 -4
- package/dist/ionic/p-969bb0cd.system.entry.js +0 -4
- package/dist/ionic/p-98612ecd.system.entry.js +0 -4
- package/dist/ionic/p-99322726.js +0 -4
- package/dist/ionic/p-9a41931a.system.js +0 -4
- package/dist/ionic/p-9fa489bf.system.js +0 -4
- package/dist/ionic/p-9fb5d3f0.js +0 -4
- package/dist/ionic/p-a60688ea.system.entry.js +0 -4
- package/dist/ionic/p-a7c80b6e.js +0 -4
- package/dist/ionic/p-a97cc6e0.entry.js +0 -4
- package/dist/ionic/p-aa28a06a.system.entry.js +0 -4
- package/dist/ionic/p-ab51df52.js +0 -4
- package/dist/ionic/p-b84b226d.entry.js +0 -4
- package/dist/ionic/p-b95e719d.js +0 -4
- package/dist/ionic/p-b9d74da7.system.js +0 -4
- package/dist/ionic/p-bb816352.system.entry.js +0 -4
- package/dist/ionic/p-bc0d6e7d.system.entry.js +0 -4
- package/dist/ionic/p-bc60a88f.entry.js +0 -4
- package/dist/ionic/p-cf05bb26.entry.js +0 -4
- package/dist/ionic/p-d247bdc6.js +0 -4
- package/dist/ionic/p-d32dc2ca.system.entry.js +0 -4
- package/dist/ionic/p-df2f4a29.entry.js +0 -4
- package/dist/ionic/p-e079f4f4.system.entry.js +0 -4
- package/dist/ionic/p-e35fa668.js +0 -4
- package/dist/ionic/p-e44c11d0.entry.js +0 -4
- package/dist/ionic/p-e6867fc0.js +0 -4
- package/dist/ionic/p-efd6e0d2.system.entry.js +0 -4
- package/dist/ionic/p-f0e951e5.system.entry.js +0 -4
- package/dist/ionic/p-f4a57fb7.js +0 -4
- package/dist/ionic/p-f7f11c42.js +0 -4
- package/dist/ionic/p-f8234ebd.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
7
7
|
|
|
8
8
|
var stream = require('stream');
|
|
9
9
|
|
|
10
|
+
const modeResolutionChain = [];
|
|
11
|
+
|
|
10
12
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
11
13
|
var globalThis = $stencilWindow;
|
|
12
14
|
var self = $stencilWindow;
|
|
@@ -130,7 +132,7 @@ const NAMESPACE = 'ionic';
|
|
|
130
132
|
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
133
|
|
|
132
134
|
/*
|
|
133
|
-
Stencil Hydrate Platform v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
135
|
+
Stencil Hydrate Platform v4.21.0-dev.1726257631.b82b008 | MIT Licensed | https://stenciljs.com
|
|
134
136
|
*/
|
|
135
137
|
var __defProp = Object.defineProperty;
|
|
136
138
|
var __export = (target, all) => {
|
|
@@ -611,7 +613,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
611
613
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
612
614
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
613
615
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
614
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
|
616
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
615
617
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
616
618
|
} else if ("host" in styleContainerNode) {
|
|
617
619
|
styleContainerNode.prepend(styleElm);
|
|
@@ -2372,7 +2374,7 @@ var Build = {
|
|
|
2372
2374
|
isTesting: false
|
|
2373
2375
|
};
|
|
2374
2376
|
var styles = /* @__PURE__ */ new Map();
|
|
2375
|
-
|
|
2377
|
+
|
|
2376
2378
|
|
|
2377
2379
|
const transitionEndAsync = (el, expectedDuration = 0) => {
|
|
2378
2380
|
return new Promise((resolve) => {
|
|
@@ -2776,55 +2778,6 @@ class Config {
|
|
|
2776
2778
|
}
|
|
2777
2779
|
const config = /*@__PURE__*/ new Config();
|
|
2778
2780
|
|
|
2779
|
-
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
2780
|
-
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
2781
|
-
|
|
2782
|
-
/**
|
|
2783
|
-
* CloseWatcher is a newer API that lets
|
|
2784
|
-
* use detect the hardware back button event
|
|
2785
|
-
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
2786
|
-
* However, not every browser supports it yet.
|
|
2787
|
-
*
|
|
2788
|
-
* This needs to be a function so that we can
|
|
2789
|
-
* check the config once it has been set.
|
|
2790
|
-
* Otherwise, this code would be evaluated the
|
|
2791
|
-
* moment this file is evaluated which could be
|
|
2792
|
-
* before the config is set.
|
|
2793
|
-
*/
|
|
2794
|
-
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
2795
|
-
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
2796
|
-
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
2797
|
-
|
|
2798
|
-
/**
|
|
2799
|
-
* Logs a warning to the console with an Ionic prefix
|
|
2800
|
-
* to indicate the library that is warning the developer.
|
|
2801
|
-
*
|
|
2802
|
-
* @param message - The string message to be logged to the console.
|
|
2803
|
-
*/
|
|
2804
|
-
const printIonWarning = (message, ...params) => {
|
|
2805
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
2806
|
-
};
|
|
2807
|
-
/*
|
|
2808
|
-
* Logs an error to the console with an Ionic prefix
|
|
2809
|
-
* to indicate the library that is warning the developer.
|
|
2810
|
-
*
|
|
2811
|
-
* @param message - The string message to be logged to the console.
|
|
2812
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
2813
|
-
*/
|
|
2814
|
-
const printIonError = (message, ...params) => {
|
|
2815
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
2816
|
-
};
|
|
2817
|
-
/**
|
|
2818
|
-
* Prints an error informing developers that an implementation requires an element to be used
|
|
2819
|
-
* within a specific selector.
|
|
2820
|
-
*
|
|
2821
|
-
* @param el The web component element this is requiring the element.
|
|
2822
|
-
* @param targetSelectors The selector or selectors that were not found.
|
|
2823
|
-
*/
|
|
2824
|
-
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
2825
|
-
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
2826
|
-
};
|
|
2827
|
-
|
|
2828
2781
|
const getPlatforms = (win) => setupPlatforms(win);
|
|
2829
2782
|
const isPlatform = (winOrPlatform, platform) => {
|
|
2830
2783
|
if (typeof winOrPlatform === 'string') {
|
|
@@ -3265,6 +3218,36 @@ class Accordion {
|
|
|
3265
3218
|
}
|
|
3266
3219
|
let accordionIds = 0;
|
|
3267
3220
|
|
|
3221
|
+
/**
|
|
3222
|
+
* Logs a warning to the console with an Ionic prefix
|
|
3223
|
+
* to indicate the library that is warning the developer.
|
|
3224
|
+
*
|
|
3225
|
+
* @param message - The string message to be logged to the console.
|
|
3226
|
+
*/
|
|
3227
|
+
const printIonWarning = (message, ...params) => {
|
|
3228
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3229
|
+
};
|
|
3230
|
+
/*
|
|
3231
|
+
* Logs an error to the console with an Ionic prefix
|
|
3232
|
+
* to indicate the library that is warning the developer.
|
|
3233
|
+
*
|
|
3234
|
+
* @param message - The string message to be logged to the console.
|
|
3235
|
+
* @param params - Additional arguments to supply to the console.error.
|
|
3236
|
+
*/
|
|
3237
|
+
const printIonError = (message, ...params) => {
|
|
3238
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3239
|
+
};
|
|
3240
|
+
/**
|
|
3241
|
+
* Prints an error informing developers that an implementation requires an element to be used
|
|
3242
|
+
* within a specific selector.
|
|
3243
|
+
*
|
|
3244
|
+
* @param el The web component element this is requiring the element.
|
|
3245
|
+
* @param targetSelectors The selector or selectors that were not found.
|
|
3246
|
+
*/
|
|
3247
|
+
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
3248
|
+
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
3249
|
+
};
|
|
3250
|
+
|
|
3268
3251
|
const accordionGroupIosCss = ":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}";
|
|
3269
3252
|
var IonAccordionGroupIosStyle0 = accordionGroupIosCss;
|
|
3270
3253
|
|
|
@@ -3503,6 +3486,9 @@ class AccordionGroup {
|
|
|
3503
3486
|
}; }
|
|
3504
3487
|
}
|
|
3505
3488
|
|
|
3489
|
+
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
3490
|
+
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
3491
|
+
|
|
3506
3492
|
const getCapacitor = () => {
|
|
3507
3493
|
if (win$1 !== undefined) {
|
|
3508
3494
|
return win$1.Capacitor;
|
|
@@ -4477,6 +4463,22 @@ const focusElementInContext = (hostToFocus, fallbackElement) => {
|
|
|
4477
4463
|
}
|
|
4478
4464
|
};
|
|
4479
4465
|
|
|
4466
|
+
/**
|
|
4467
|
+
* CloseWatcher is a newer API that lets
|
|
4468
|
+
* use detect the hardware back button event
|
|
4469
|
+
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
4470
|
+
* However, not every browser supports it yet.
|
|
4471
|
+
*
|
|
4472
|
+
* This needs to be a function so that we can
|
|
4473
|
+
* check the config once it has been set.
|
|
4474
|
+
* Otherwise, this code would be evaluated the
|
|
4475
|
+
* moment this file is evaluated which could be
|
|
4476
|
+
* before the config is set.
|
|
4477
|
+
*/
|
|
4478
|
+
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
4479
|
+
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
4480
|
+
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
4481
|
+
|
|
4480
4482
|
// TODO(FW-2832): types
|
|
4481
4483
|
const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
4482
4484
|
var _a;
|
|
@@ -7301,84 +7303,6 @@ const buttonClass$2 = (button) => {
|
|
|
7301
7303
|
return Object.assign({ 'alert-button': true, 'ion-focusable': true, 'ion-activatable': true, [`alert-button-role-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
|
|
7302
7304
|
};
|
|
7303
7305
|
|
|
7304
|
-
const ION_FOCUSED = 'ion-focused';
|
|
7305
|
-
const ION_FOCUSABLE = 'ion-focusable';
|
|
7306
|
-
const FOCUS_KEYS = [
|
|
7307
|
-
'Tab',
|
|
7308
|
-
'ArrowDown',
|
|
7309
|
-
'Space',
|
|
7310
|
-
'Escape',
|
|
7311
|
-
' ',
|
|
7312
|
-
'Shift',
|
|
7313
|
-
'Enter',
|
|
7314
|
-
'ArrowLeft',
|
|
7315
|
-
'ArrowRight',
|
|
7316
|
-
'ArrowUp',
|
|
7317
|
-
'Home',
|
|
7318
|
-
'End',
|
|
7319
|
-
];
|
|
7320
|
-
let focusVisibleUtility = null;
|
|
7321
|
-
const initFocusVisibleUtility = () => {
|
|
7322
|
-
if (!focusVisibleUtility) {
|
|
7323
|
-
focusVisibleUtility = startFocusVisible();
|
|
7324
|
-
}
|
|
7325
|
-
return focusVisibleUtility;
|
|
7326
|
-
};
|
|
7327
|
-
const startFocusVisible = (rootEl) => {
|
|
7328
|
-
let currentFocus = [];
|
|
7329
|
-
let keyboardMode = true;
|
|
7330
|
-
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
7331
|
-
const root = rootEl ? rootEl : document.body;
|
|
7332
|
-
const setFocus = (elements) => {
|
|
7333
|
-
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
7334
|
-
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
7335
|
-
currentFocus = elements;
|
|
7336
|
-
};
|
|
7337
|
-
const pointerDown = () => {
|
|
7338
|
-
keyboardMode = false;
|
|
7339
|
-
setFocus([]);
|
|
7340
|
-
};
|
|
7341
|
-
const onKeydown = (ev) => {
|
|
7342
|
-
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
7343
|
-
if (!keyboardMode) {
|
|
7344
|
-
setFocus([]);
|
|
7345
|
-
}
|
|
7346
|
-
};
|
|
7347
|
-
const onFocusin = (ev) => {
|
|
7348
|
-
if (keyboardMode && ev.composedPath !== undefined) {
|
|
7349
|
-
const toFocus = ev.composedPath().filter((el) => {
|
|
7350
|
-
// TODO(FW-2832): type
|
|
7351
|
-
if (el.classList) {
|
|
7352
|
-
return el.classList.contains(ION_FOCUSABLE);
|
|
7353
|
-
}
|
|
7354
|
-
return false;
|
|
7355
|
-
});
|
|
7356
|
-
setFocus(toFocus);
|
|
7357
|
-
}
|
|
7358
|
-
};
|
|
7359
|
-
const onFocusout = () => {
|
|
7360
|
-
if (ref.activeElement === root) {
|
|
7361
|
-
setFocus([]);
|
|
7362
|
-
}
|
|
7363
|
-
};
|
|
7364
|
-
ref.addEventListener('keydown', onKeydown);
|
|
7365
|
-
ref.addEventListener('focusin', onFocusin);
|
|
7366
|
-
ref.addEventListener('focusout', onFocusout);
|
|
7367
|
-
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
7368
|
-
ref.addEventListener('mousedown', pointerDown);
|
|
7369
|
-
const destroy = () => {
|
|
7370
|
-
ref.removeEventListener('keydown', onKeydown);
|
|
7371
|
-
ref.removeEventListener('focusin', onFocusin);
|
|
7372
|
-
ref.removeEventListener('focusout', onFocusout);
|
|
7373
|
-
ref.removeEventListener('touchstart', pointerDown);
|
|
7374
|
-
ref.removeEventListener('mousedown', pointerDown);
|
|
7375
|
-
};
|
|
7376
|
-
return {
|
|
7377
|
-
destroy,
|
|
7378
|
-
setFocus,
|
|
7379
|
-
};
|
|
7380
|
-
};
|
|
7381
|
-
|
|
7382
7306
|
const appCss = "html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";
|
|
7383
7307
|
var IonAppStyle0 = appCss;
|
|
7384
7308
|
|
|
@@ -7386,6 +7310,8 @@ class App {
|
|
|
7386
7310
|
constructor(hostRef) {
|
|
7387
7311
|
registerInstance(this, hostRef);
|
|
7388
7312
|
}
|
|
7313
|
+
componentDidLoad() {
|
|
7314
|
+
}
|
|
7389
7315
|
/**
|
|
7390
7316
|
* @internal
|
|
7391
7317
|
* Used to set focus on an element that uses `ion-focusable`.
|
|
@@ -7397,12 +7323,13 @@ class App {
|
|
|
7397
7323
|
* presented as a result of keyboard action.)
|
|
7398
7324
|
*/
|
|
7399
7325
|
async setFocus(elements) {
|
|
7400
|
-
|
|
7401
|
-
|
|
7326
|
+
if (this.focusVisible) {
|
|
7327
|
+
this.focusVisible.setFocus(elements);
|
|
7328
|
+
}
|
|
7402
7329
|
}
|
|
7403
7330
|
render() {
|
|
7404
7331
|
const mode = getIonMode$1(this);
|
|
7405
|
-
return (hAsync(Host, { key: '
|
|
7332
|
+
return (hAsync(Host, { key: 'a562850f242d9d45573e35efdd4bd178254677ef', class: {
|
|
7406
7333
|
[mode]: true,
|
|
7407
7334
|
'ion-page': true,
|
|
7408
7335
|
'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),
|
|
@@ -9208,6 +9135,77 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
|
|
|
9208
9135
|
}
|
|
9209
9136
|
};
|
|
9210
9137
|
|
|
9138
|
+
const ION_FOCUSED = 'ion-focused';
|
|
9139
|
+
const ION_FOCUSABLE = 'ion-focusable';
|
|
9140
|
+
const FOCUS_KEYS = [
|
|
9141
|
+
'Tab',
|
|
9142
|
+
'ArrowDown',
|
|
9143
|
+
'Space',
|
|
9144
|
+
'Escape',
|
|
9145
|
+
' ',
|
|
9146
|
+
'Shift',
|
|
9147
|
+
'Enter',
|
|
9148
|
+
'ArrowLeft',
|
|
9149
|
+
'ArrowRight',
|
|
9150
|
+
'ArrowUp',
|
|
9151
|
+
'Home',
|
|
9152
|
+
'End',
|
|
9153
|
+
];
|
|
9154
|
+
const startFocusVisible = (rootEl) => {
|
|
9155
|
+
let currentFocus = [];
|
|
9156
|
+
let keyboardMode = true;
|
|
9157
|
+
const ref = rootEl ? rootEl.shadowRoot : document;
|
|
9158
|
+
const root = rootEl ? rootEl : document.body;
|
|
9159
|
+
const setFocus = (elements) => {
|
|
9160
|
+
currentFocus.forEach((el) => el.classList.remove(ION_FOCUSED));
|
|
9161
|
+
elements.forEach((el) => el.classList.add(ION_FOCUSED));
|
|
9162
|
+
currentFocus = elements;
|
|
9163
|
+
};
|
|
9164
|
+
const pointerDown = () => {
|
|
9165
|
+
keyboardMode = false;
|
|
9166
|
+
setFocus([]);
|
|
9167
|
+
};
|
|
9168
|
+
const onKeydown = (ev) => {
|
|
9169
|
+
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
|
9170
|
+
if (!keyboardMode) {
|
|
9171
|
+
setFocus([]);
|
|
9172
|
+
}
|
|
9173
|
+
};
|
|
9174
|
+
const onFocusin = (ev) => {
|
|
9175
|
+
if (keyboardMode && ev.composedPath !== undefined) {
|
|
9176
|
+
const toFocus = ev.composedPath().filter((el) => {
|
|
9177
|
+
// TODO(FW-2832): type
|
|
9178
|
+
if (el.classList) {
|
|
9179
|
+
return el.classList.contains(ION_FOCUSABLE);
|
|
9180
|
+
}
|
|
9181
|
+
return false;
|
|
9182
|
+
});
|
|
9183
|
+
setFocus(toFocus);
|
|
9184
|
+
}
|
|
9185
|
+
};
|
|
9186
|
+
const onFocusout = () => {
|
|
9187
|
+
if (ref.activeElement === root) {
|
|
9188
|
+
setFocus([]);
|
|
9189
|
+
}
|
|
9190
|
+
};
|
|
9191
|
+
ref.addEventListener('keydown', onKeydown);
|
|
9192
|
+
ref.addEventListener('focusin', onFocusin);
|
|
9193
|
+
ref.addEventListener('focusout', onFocusout);
|
|
9194
|
+
ref.addEventListener('touchstart', pointerDown, { passive: true });
|
|
9195
|
+
ref.addEventListener('mousedown', pointerDown);
|
|
9196
|
+
const destroy = () => {
|
|
9197
|
+
ref.removeEventListener('keydown', onKeydown);
|
|
9198
|
+
ref.removeEventListener('focusin', onFocusin);
|
|
9199
|
+
ref.removeEventListener('focusout', onFocusout);
|
|
9200
|
+
ref.removeEventListener('touchstart', pointerDown);
|
|
9201
|
+
ref.removeEventListener('mousedown', pointerDown);
|
|
9202
|
+
};
|
|
9203
|
+
return {
|
|
9204
|
+
destroy,
|
|
9205
|
+
setFocus,
|
|
9206
|
+
};
|
|
9207
|
+
};
|
|
9208
|
+
|
|
9211
9209
|
/**
|
|
9212
9210
|
* Returns true if the selected day is equal to the reference day
|
|
9213
9211
|
*/
|
|
@@ -33266,8 +33264,105 @@ exports.hydrateApp = hydrateApp;
|
|
|
33266
33264
|
hydrateAppClosure($stencilWindow);
|
|
33267
33265
|
}
|
|
33268
33266
|
|
|
33267
|
+
// src/app-data/index.ts
|
|
33268
|
+
var BUILD = {
|
|
33269
|
+
allRenderFn: false,
|
|
33270
|
+
cmpDidLoad: true,
|
|
33271
|
+
cmpDidUnload: false,
|
|
33272
|
+
cmpDidUpdate: true,
|
|
33273
|
+
cmpDidRender: true,
|
|
33274
|
+
cmpWillLoad: true,
|
|
33275
|
+
cmpWillUpdate: true,
|
|
33276
|
+
cmpWillRender: true,
|
|
33277
|
+
connectedCallback: true,
|
|
33278
|
+
disconnectedCallback: true,
|
|
33279
|
+
element: true,
|
|
33280
|
+
event: true,
|
|
33281
|
+
hasRenderFn: true,
|
|
33282
|
+
lifecycle: true,
|
|
33283
|
+
hostListener: true,
|
|
33284
|
+
hostListenerTargetWindow: true,
|
|
33285
|
+
hostListenerTargetDocument: true,
|
|
33286
|
+
hostListenerTargetBody: true,
|
|
33287
|
+
hostListenerTargetParent: false,
|
|
33288
|
+
hostListenerTarget: true,
|
|
33289
|
+
member: true,
|
|
33290
|
+
method: true,
|
|
33291
|
+
mode: true,
|
|
33292
|
+
observeAttribute: true,
|
|
33293
|
+
prop: true,
|
|
33294
|
+
propMutable: true,
|
|
33295
|
+
reflect: true,
|
|
33296
|
+
scoped: true,
|
|
33297
|
+
shadowDom: true,
|
|
33298
|
+
slot: true,
|
|
33299
|
+
cssAnnotations: true,
|
|
33300
|
+
state: true,
|
|
33301
|
+
style: true,
|
|
33302
|
+
formAssociated: false,
|
|
33303
|
+
svg: true,
|
|
33304
|
+
updatable: true,
|
|
33305
|
+
vdomAttribute: true,
|
|
33306
|
+
vdomXlink: true,
|
|
33307
|
+
vdomClass: true,
|
|
33308
|
+
vdomFunctional: true,
|
|
33309
|
+
vdomKey: true,
|
|
33310
|
+
vdomListener: true,
|
|
33311
|
+
vdomRef: true,
|
|
33312
|
+
vdomPropOrAttr: true,
|
|
33313
|
+
vdomRender: true,
|
|
33314
|
+
vdomStyle: true,
|
|
33315
|
+
vdomText: true,
|
|
33316
|
+
watchCallback: true,
|
|
33317
|
+
taskQueue: true,
|
|
33318
|
+
hotModuleReplacement: false,
|
|
33319
|
+
isDebug: false,
|
|
33320
|
+
isDev: false,
|
|
33321
|
+
isTesting: false,
|
|
33322
|
+
hydrateServerSide: false,
|
|
33323
|
+
hydrateClientSide: false,
|
|
33324
|
+
lifecycleDOMEvents: false,
|
|
33325
|
+
lazyLoad: false,
|
|
33326
|
+
profile: false,
|
|
33327
|
+
slotRelocation: true,
|
|
33328
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33329
|
+
appendChildSlotFix: false,
|
|
33330
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33331
|
+
cloneNodeFix: false,
|
|
33332
|
+
hydratedAttribute: false,
|
|
33333
|
+
hydratedClass: true,
|
|
33334
|
+
// TODO(STENCIL-1305): remove this option
|
|
33335
|
+
scriptDataOpts: false,
|
|
33336
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33337
|
+
scopedSlotTextContentFix: false,
|
|
33338
|
+
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
33339
|
+
shadowDomShim: false,
|
|
33340
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33341
|
+
slotChildNodesFix: false,
|
|
33342
|
+
invisiblePrehydration: true,
|
|
33343
|
+
propBoolean: true,
|
|
33344
|
+
propNumber: true,
|
|
33345
|
+
propString: true,
|
|
33346
|
+
constructableCSS: true,
|
|
33347
|
+
cmpShouldUpdate: true,
|
|
33348
|
+
devTools: false,
|
|
33349
|
+
shadowDelegatesFocus: true,
|
|
33350
|
+
initializeNextTick: false,
|
|
33351
|
+
asyncLoading: true,
|
|
33352
|
+
asyncQueue: false,
|
|
33353
|
+
transformTagName: false,
|
|
33354
|
+
attachStyles: true,
|
|
33355
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
33356
|
+
experimentalSlotFixes: false
|
|
33357
|
+
};
|
|
33358
|
+
var Env = {};
|
|
33359
|
+
var NAMESPACE = (
|
|
33360
|
+
/* default */
|
|
33361
|
+
"app"
|
|
33362
|
+
);
|
|
33363
|
+
|
|
33269
33364
|
/*
|
|
33270
|
-
Stencil Hydrate Runner v4.21.0 | MIT Licensed | https://stenciljs.com
|
|
33365
|
+
Stencil Hydrate Runner v4.21.0-dev.1726257631.b82b008 | MIT Licensed | https://stenciljs.com
|
|
33271
33366
|
*/
|
|
33272
33367
|
var __defProp = Object.defineProperty;
|
|
33273
33368
|
var __export = (target, all) => {
|
|
@@ -33588,8 +33683,8 @@ function jsCaseToCssCase(str) {
|
|
|
33588
33683
|
|
|
33589
33684
|
// src/mock-doc/custom-element-registry.ts
|
|
33590
33685
|
var MockCustomElementRegistry = class {
|
|
33591
|
-
constructor(
|
|
33592
|
-
this.win =
|
|
33686
|
+
constructor(win2) {
|
|
33687
|
+
this.win = win2;
|
|
33593
33688
|
}
|
|
33594
33689
|
define(tagName, cstr, options) {
|
|
33595
33690
|
if (tagName.toLowerCase() !== tagName) {
|
|
@@ -33611,19 +33706,19 @@ var MockCustomElementRegistry = class {
|
|
|
33611
33706
|
this.__whenDefined.delete(tagName);
|
|
33612
33707
|
}
|
|
33613
33708
|
}
|
|
33614
|
-
const
|
|
33615
|
-
if (
|
|
33616
|
-
const hosts =
|
|
33709
|
+
const doc2 = this.win.document;
|
|
33710
|
+
if (doc2 != null) {
|
|
33711
|
+
const hosts = doc2.querySelectorAll(tagName);
|
|
33617
33712
|
hosts.forEach((host) => {
|
|
33618
33713
|
if (upgradedElements.has(host) === false) {
|
|
33619
|
-
tempDisableCallbacks.add(
|
|
33620
|
-
const upgradedCmp = createCustomElement(this,
|
|
33714
|
+
tempDisableCallbacks.add(doc2);
|
|
33715
|
+
const upgradedCmp = createCustomElement(this, doc2, tagName);
|
|
33621
33716
|
for (let i = 0; i < host.childNodes.length; i++) {
|
|
33622
33717
|
const childNode = host.childNodes[i];
|
|
33623
33718
|
childNode.remove();
|
|
33624
33719
|
upgradedCmp.appendChild(childNode);
|
|
33625
33720
|
}
|
|
33626
|
-
tempDisableCallbacks.delete(
|
|
33721
|
+
tempDisableCallbacks.delete(doc2);
|
|
33627
33722
|
if (proxyElements.has(host)) {
|
|
33628
33723
|
proxyElements.set(host, upgradedCmp);
|
|
33629
33724
|
}
|
|
@@ -33677,8 +33772,8 @@ var MockCustomElementRegistry = class {
|
|
|
33677
33772
|
});
|
|
33678
33773
|
}
|
|
33679
33774
|
};
|
|
33680
|
-
function createCustomElement(
|
|
33681
|
-
const Cstr =
|
|
33775
|
+
function createCustomElement(customElements2, ownerDocument, tagName) {
|
|
33776
|
+
const Cstr = customElements2.get(tagName);
|
|
33682
33777
|
if (Cstr != null) {
|
|
33683
33778
|
const cmp = new Cstr(ownerDocument);
|
|
33684
33779
|
cmp.nodeName = tagName.toUpperCase();
|
|
@@ -33726,8 +33821,8 @@ function connectNode(ownerDocument, node) {
|
|
|
33726
33821
|
node.ownerDocument = ownerDocument;
|
|
33727
33822
|
if (node.nodeType === 1 /* ELEMENT_NODE */) {
|
|
33728
33823
|
if (ownerDocument != null && node.nodeName.includes("-")) {
|
|
33729
|
-
const
|
|
33730
|
-
if (
|
|
33824
|
+
const win2 = ownerDocument.defaultView;
|
|
33825
|
+
if (win2 != null && typeof node.connectedCallback === "function" && node.isConnected) {
|
|
33731
33826
|
fireConnectedCallback(node);
|
|
33732
33827
|
}
|
|
33733
33828
|
const shadowRoot = node.shadowRoot;
|
|
@@ -38135,7 +38230,7 @@ var OpenElementStack = class {
|
|
|
38135
38230
|
get currentTmplContentOrNode() {
|
|
38136
38231
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
38137
38232
|
}
|
|
38138
|
-
constructor(
|
|
38233
|
+
constructor(document2, treeAdapter, handler) {
|
|
38139
38234
|
this.treeAdapter = treeAdapter;
|
|
38140
38235
|
this.handler = handler;
|
|
38141
38236
|
this.items = [];
|
|
@@ -38143,7 +38238,7 @@ var OpenElementStack = class {
|
|
|
38143
38238
|
this.stackTop = -1;
|
|
38144
38239
|
this.tmplCount = 0;
|
|
38145
38240
|
this.currentTagId = TAG_ID.UNKNOWN;
|
|
38146
|
-
this.current =
|
|
38241
|
+
this.current = document2;
|
|
38147
38242
|
}
|
|
38148
38243
|
//Index of element
|
|
38149
38244
|
_indexOf(element) {
|
|
@@ -38560,8 +38655,8 @@ var defaultTreeAdapter = {
|
|
|
38560
38655
|
getTemplateContent(templateElement) {
|
|
38561
38656
|
return templateElement.content;
|
|
38562
38657
|
},
|
|
38563
|
-
setDocumentType(
|
|
38564
|
-
const doctypeNode =
|
|
38658
|
+
setDocumentType(document2, name, publicId, systemId) {
|
|
38659
|
+
const doctypeNode = document2.childNodes.find((node) => node.nodeName === "#documentType");
|
|
38565
38660
|
if (doctypeNode) {
|
|
38566
38661
|
doctypeNode.name = name;
|
|
38567
38662
|
doctypeNode.publicId = publicId;
|
|
@@ -38574,14 +38669,14 @@ var defaultTreeAdapter = {
|
|
|
38574
38669
|
systemId,
|
|
38575
38670
|
parentNode: null
|
|
38576
38671
|
};
|
|
38577
|
-
defaultTreeAdapter.appendChild(
|
|
38672
|
+
defaultTreeAdapter.appendChild(document2, node);
|
|
38578
38673
|
}
|
|
38579
38674
|
},
|
|
38580
|
-
setDocumentMode(
|
|
38581
|
-
|
|
38675
|
+
setDocumentMode(document2, mode) {
|
|
38676
|
+
document2.mode = mode;
|
|
38582
38677
|
},
|
|
38583
|
-
getDocumentMode(
|
|
38584
|
-
return
|
|
38678
|
+
getDocumentMode(document2) {
|
|
38679
|
+
return document2.mode;
|
|
38585
38680
|
},
|
|
38586
38681
|
detachNode(node) {
|
|
38587
38682
|
if (node.parentNode) {
|
|
@@ -39062,7 +39157,7 @@ var defaultParserOptions = {
|
|
|
39062
39157
|
onParseError: null
|
|
39063
39158
|
};
|
|
39064
39159
|
var Parser = class {
|
|
39065
|
-
constructor(options,
|
|
39160
|
+
constructor(options, document2, fragmentContext = null, scriptHandler = null) {
|
|
39066
39161
|
this.fragmentContext = fragmentContext;
|
|
39067
39162
|
this.scriptHandler = scriptHandler;
|
|
39068
39163
|
this.currentToken = null;
|
|
@@ -39087,7 +39182,7 @@ var Parser = class {
|
|
|
39087
39182
|
if (this.onParseError) {
|
|
39088
39183
|
this.options.sourceCodeLocationInfo = true;
|
|
39089
39184
|
}
|
|
39090
|
-
this.document =
|
|
39185
|
+
this.document = document2 !== null && document2 !== void 0 ? document2 : this.treeAdapter.createDocument();
|
|
39091
39186
|
this.tokenizer = new Tokenizer(this.options, this);
|
|
39092
39187
|
this.activeFormattingElements = new FormattingElementList(this.treeAdapter);
|
|
39093
39188
|
this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN;
|
|
@@ -42064,11 +42159,11 @@ function parseFragment(fragmentContext, html, options) {
|
|
|
42064
42159
|
// src/mock-doc/parse-util.ts
|
|
42065
42160
|
var docParser = /* @__PURE__ */ new WeakMap();
|
|
42066
42161
|
function parseDocumentUtil(ownerDocument, html) {
|
|
42067
|
-
const
|
|
42068
|
-
|
|
42069
|
-
|
|
42070
|
-
|
|
42071
|
-
return
|
|
42162
|
+
const doc2 = parse(html.trim(), getParser(ownerDocument));
|
|
42163
|
+
doc2.documentElement = doc2.firstElementChild;
|
|
42164
|
+
doc2.head = doc2.documentElement.firstElementChild;
|
|
42165
|
+
doc2.body = doc2.head.nextElementSibling;
|
|
42166
|
+
return doc2;
|
|
42072
42167
|
}
|
|
42073
42168
|
function parseFragmentUtil(ownerDocument, html) {
|
|
42074
42169
|
if (typeof html === "string") {
|
|
@@ -42086,9 +42181,9 @@ function getParser(ownerDocument) {
|
|
|
42086
42181
|
}
|
|
42087
42182
|
const treeAdapter = {
|
|
42088
42183
|
createDocument() {
|
|
42089
|
-
const
|
|
42090
|
-
|
|
42091
|
-
return
|
|
42184
|
+
const doc2 = ownerDocument.createElement("#document" /* DOCUMENT_NODE */);
|
|
42185
|
+
doc2["x-mode"] = "no-quirks";
|
|
42186
|
+
return doc2;
|
|
42092
42187
|
},
|
|
42093
42188
|
setNodeSourceCodeLocation(node, location2) {
|
|
42094
42189
|
node.sourceCodeLocation = location2;
|
|
@@ -42126,22 +42221,22 @@ function getParser(ownerDocument) {
|
|
|
42126
42221
|
getTemplateContent(templateElement) {
|
|
42127
42222
|
return templateElement.content;
|
|
42128
42223
|
},
|
|
42129
|
-
setDocumentType(
|
|
42130
|
-
let doctypeNode =
|
|
42224
|
+
setDocumentType(doc2, name, publicId, systemId) {
|
|
42225
|
+
let doctypeNode = doc2.childNodes.find((n) => n.nodeType === 10 /* DOCUMENT_TYPE_NODE */);
|
|
42131
42226
|
if (doctypeNode == null) {
|
|
42132
42227
|
doctypeNode = ownerDocument.createDocumentTypeNode();
|
|
42133
|
-
|
|
42228
|
+
doc2.insertBefore(doctypeNode, doc2.firstChild);
|
|
42134
42229
|
}
|
|
42135
42230
|
doctypeNode.nodeValue = "!DOCTYPE";
|
|
42136
42231
|
doctypeNode["x-name"] = name;
|
|
42137
42232
|
doctypeNode["x-publicId"] = publicId;
|
|
42138
42233
|
doctypeNode["x-systemId"] = systemId;
|
|
42139
42234
|
},
|
|
42140
|
-
setDocumentMode(
|
|
42141
|
-
|
|
42235
|
+
setDocumentMode(doc2, mode) {
|
|
42236
|
+
doc2["x-mode"] = mode;
|
|
42142
42237
|
},
|
|
42143
|
-
getDocumentMode(
|
|
42144
|
-
return
|
|
42238
|
+
getDocumentMode(doc2) {
|
|
42239
|
+
return doc2["x-mode"];
|
|
42145
42240
|
},
|
|
42146
42241
|
detachNode(node) {
|
|
42147
42242
|
node.remove();
|
|
@@ -42273,9 +42368,9 @@ var jquery_default = (
|
|
|
42273
42368
|
nodeName: "HTML"
|
|
42274
42369
|
}
|
|
42275
42370
|
}
|
|
42276
|
-
}, function(
|
|
42371
|
+
}, function(window2, noGlobal) {
|
|
42277
42372
|
"use strict";
|
|
42278
|
-
if (!
|
|
42373
|
+
if (!window2.document) {
|
|
42279
42374
|
throw new Error("jQuery requires a window with a document");
|
|
42280
42375
|
}
|
|
42281
42376
|
var arr = [];
|
|
@@ -42310,16 +42405,16 @@ var jquery_default = (
|
|
|
42310
42405
|
}
|
|
42311
42406
|
return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
|
|
42312
42407
|
}
|
|
42313
|
-
var
|
|
42408
|
+
var document2 = window2.document;
|
|
42314
42409
|
var preservedScriptAttributes = {
|
|
42315
42410
|
type: true,
|
|
42316
42411
|
src: true,
|
|
42317
42412
|
nonce: true,
|
|
42318
42413
|
noModule: true
|
|
42319
42414
|
};
|
|
42320
|
-
function DOMEval(code, node,
|
|
42321
|
-
|
|
42322
|
-
var i2, script =
|
|
42415
|
+
function DOMEval(code, node, doc2) {
|
|
42416
|
+
doc2 = doc2 || document2;
|
|
42417
|
+
var i2, script = doc2.createElement("script");
|
|
42323
42418
|
script.text = code;
|
|
42324
42419
|
if (node) {
|
|
42325
42420
|
for (i2 in preservedScriptAttributes) {
|
|
@@ -42328,7 +42423,7 @@ var jquery_default = (
|
|
|
42328
42423
|
}
|
|
42329
42424
|
}
|
|
42330
42425
|
}
|
|
42331
|
-
|
|
42426
|
+
doc2.head.appendChild(script).parentNode.removeChild(script);
|
|
42332
42427
|
}
|
|
42333
42428
|
const jQuery = {};
|
|
42334
42429
|
var version = "4.0.0-pre+9352011a7.dirty +selector", rhtmlSuffix = /HTML$/i, jQueryOrig = function(selector, context) {
|
|
@@ -42465,8 +42560,8 @@ var jquery_default = (
|
|
|
42465
42560
|
},
|
|
42466
42561
|
// Evaluates a script in a provided context; falls back to the global one
|
|
42467
42562
|
// if not specified.
|
|
42468
|
-
globalEval: function(code, options,
|
|
42469
|
-
DOMEval(code, { nonce: options && options.nonce },
|
|
42563
|
+
globalEval: function(code, options, doc2) {
|
|
42564
|
+
DOMEval(code, { nonce: options && options.nonce }, doc2);
|
|
42470
42565
|
},
|
|
42471
42566
|
each: function(obj, callback) {
|
|
42472
42567
|
var length, i2 = 0;
|
|
@@ -42593,9 +42688,9 @@ var jquery_default = (
|
|
|
42593
42688
|
}
|
|
42594
42689
|
var pop = arr.pop;
|
|
42595
42690
|
var whitespace = "[\\x20\\t\\r\\n\\f]";
|
|
42596
|
-
var isIE =
|
|
42691
|
+
var isIE = document2.documentMode;
|
|
42597
42692
|
try {
|
|
42598
|
-
|
|
42693
|
+
document2.querySelector(":has(*,:jqfake)");
|
|
42599
42694
|
support.cssHas = false;
|
|
42600
42695
|
} catch (e) {
|
|
42601
42696
|
support.cssHas = true;
|
|
@@ -42627,7 +42722,7 @@ var jquery_default = (
|
|
|
42627
42722
|
var rleadingCombinator = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*");
|
|
42628
42723
|
var rdescend = new RegExp(whitespace + "|>");
|
|
42629
42724
|
var rsibling = /[+~]/;
|
|
42630
|
-
var documentElement =
|
|
42725
|
+
var documentElement = document2.documentElement;
|
|
42631
42726
|
var matches2 = documentElement.matches || documentElement.msMatchesSelector;
|
|
42632
42727
|
function createCache() {
|
|
42633
42728
|
var keys = [];
|
|
@@ -42796,10 +42891,10 @@ var jquery_default = (
|
|
|
42796
42891
|
1
|
|
42797
42892
|
);
|
|
42798
42893
|
if (compare & 1) {
|
|
42799
|
-
if (a ==
|
|
42894
|
+
if (a == document2 || a.ownerDocument == document2 && jQuery.contains(document2, a)) {
|
|
42800
42895
|
return -1;
|
|
42801
42896
|
}
|
|
42802
|
-
if (b ==
|
|
42897
|
+
if (b == document2 || b.ownerDocument == document2 && jQuery.contains(document2, b)) {
|
|
42803
42898
|
return 1;
|
|
42804
42899
|
}
|
|
42805
42900
|
return 0;
|
|
@@ -42955,14 +43050,14 @@ var jquery_default = (
|
|
|
42955
43050
|
});
|
|
42956
43051
|
}
|
|
42957
43052
|
function setDocument(node) {
|
|
42958
|
-
var subWindow,
|
|
42959
|
-
if (
|
|
43053
|
+
var subWindow, doc2 = node ? node.ownerDocument || node : document2;
|
|
43054
|
+
if (doc2 == document$1 || doc2.nodeType !== 9) {
|
|
42960
43055
|
return;
|
|
42961
43056
|
}
|
|
42962
|
-
document$1 =
|
|
43057
|
+
document$1 = doc2;
|
|
42963
43058
|
documentElement$1 = document$1.documentElement;
|
|
42964
43059
|
documentIsHTML = !jQuery.isXMLDoc(document$1);
|
|
42965
|
-
if (isIE &&
|
|
43060
|
+
if (isIE && document2 != document$1 && (subWindow = document$1.defaultView) && subWindow.top !== subWindow) {
|
|
42966
43061
|
subWindow.addEventListener("unload", unloadHandler);
|
|
42967
43062
|
}
|
|
42968
43063
|
}
|
|
@@ -43193,7 +43288,7 @@ var jquery_default = (
|
|
|
43193
43288
|
}),
|
|
43194
43289
|
// Miscellaneous
|
|
43195
43290
|
target: function(elem) {
|
|
43196
|
-
var hash =
|
|
43291
|
+
var hash = window2.location && window2.location.hash;
|
|
43197
43292
|
return hash && hash.slice(1) === elem.id;
|
|
43198
43293
|
},
|
|
43199
43294
|
root: function(elem) {
|
|
@@ -45183,9 +45278,9 @@ function createElement(ownerDocument, tagName) {
|
|
|
45183
45278
|
return new MockUListElement(ownerDocument);
|
|
45184
45279
|
}
|
|
45185
45280
|
if (ownerDocument != null && tagName.includes("-")) {
|
|
45186
|
-
const
|
|
45187
|
-
if (
|
|
45188
|
-
return createCustomElement(
|
|
45281
|
+
const win2 = ownerDocument.defaultView;
|
|
45282
|
+
if (win2 != null && win2.customElements != null) {
|
|
45283
|
+
return createCustomElement(win2.customElements, ownerDocument, tagName);
|
|
45189
45284
|
}
|
|
45190
45285
|
}
|
|
45191
45286
|
return new MockHTMLElement(ownerDocument, tagName);
|
|
@@ -45607,9 +45702,9 @@ var CanvasRenderingContext = class {
|
|
|
45607
45702
|
}
|
|
45608
45703
|
clearRect() {
|
|
45609
45704
|
}
|
|
45610
|
-
getImageData(_, __, w,
|
|
45705
|
+
getImageData(_, __, w, h2) {
|
|
45611
45706
|
return {
|
|
45612
|
-
data: new Array(w *
|
|
45707
|
+
data: new Array(w * h2 * 4)
|
|
45613
45708
|
};
|
|
45614
45709
|
}
|
|
45615
45710
|
toDataURL() {
|
|
@@ -45671,9 +45766,9 @@ var MockCanvasElement = class extends MockHTMLElement {
|
|
|
45671
45766
|
function fullUrl(elm, attrName) {
|
|
45672
45767
|
const val = elm.getAttribute(attrName) || "";
|
|
45673
45768
|
if (elm.ownerDocument != null) {
|
|
45674
|
-
const
|
|
45675
|
-
if (
|
|
45676
|
-
const loc =
|
|
45769
|
+
const win2 = elm.ownerDocument.defaultView;
|
|
45770
|
+
if (win2 != null) {
|
|
45771
|
+
const loc = win2.location;
|
|
45677
45772
|
if (loc != null) {
|
|
45678
45773
|
try {
|
|
45679
45774
|
const url = new URL(val, loc.href);
|
|
@@ -46378,10 +46473,10 @@ var MockWindow = class {
|
|
|
46378
46473
|
}
|
|
46379
46474
|
get Document() {
|
|
46380
46475
|
if (this.__docCstr == null) {
|
|
46381
|
-
const
|
|
46476
|
+
const win2 = this;
|
|
46382
46477
|
this.__docCstr = class extends MockDocument {
|
|
46383
46478
|
constructor() {
|
|
46384
|
-
super(false,
|
|
46479
|
+
super(false, win2);
|
|
46385
46480
|
throw new Error("Illegal constructor: cannot construct Document");
|
|
46386
46481
|
}
|
|
46387
46482
|
};
|
|
@@ -46898,14 +46993,14 @@ var MockWindow = class {
|
|
|
46898
46993
|
}
|
|
46899
46994
|
};
|
|
46900
46995
|
addGlobalsToWindowPrototype(MockWindow.prototype);
|
|
46901
|
-
function resetWindowDefaults(
|
|
46902
|
-
|
|
46903
|
-
|
|
46904
|
-
|
|
46905
|
-
|
|
46906
|
-
|
|
46907
|
-
|
|
46908
|
-
|
|
46996
|
+
function resetWindowDefaults(win2) {
|
|
46997
|
+
win2.__clearInterval = nativeClearInterval;
|
|
46998
|
+
win2.__clearTimeout = nativeClearTimeout;
|
|
46999
|
+
win2.__setInterval = nativeSetInterval;
|
|
47000
|
+
win2.__setTimeout = nativeSetTimeout;
|
|
47001
|
+
win2.__maxTimeout = 3e4;
|
|
47002
|
+
win2.__allowInterval = true;
|
|
47003
|
+
win2.URL = nativeURL;
|
|
46909
47004
|
}
|
|
46910
47005
|
function cloneWindow(srcWin, opts = {}) {
|
|
46911
47006
|
if (srcWin == null) {
|
|
@@ -46924,72 +47019,72 @@ function cloneWindow(srcWin, opts = {}) {
|
|
|
46924
47019
|
}
|
|
46925
47020
|
return clonedWin;
|
|
46926
47021
|
}
|
|
46927
|
-
function constrainTimeouts(
|
|
46928
|
-
|
|
46929
|
-
|
|
47022
|
+
function constrainTimeouts(win2) {
|
|
47023
|
+
win2.__allowInterval = false;
|
|
47024
|
+
win2.__maxTimeout = 0;
|
|
46930
47025
|
}
|
|
46931
|
-
function resetWindow(
|
|
46932
|
-
if (
|
|
46933
|
-
if (
|
|
46934
|
-
|
|
47026
|
+
function resetWindow(win2) {
|
|
47027
|
+
if (win2 != null) {
|
|
47028
|
+
if (win2.__timeouts) {
|
|
47029
|
+
win2.__timeouts.forEach((timeoutId) => {
|
|
46935
47030
|
nativeClearInterval(timeoutId);
|
|
46936
47031
|
nativeClearTimeout(timeoutId);
|
|
46937
47032
|
});
|
|
46938
|
-
|
|
47033
|
+
win2.__timeouts.clear();
|
|
46939
47034
|
}
|
|
46940
|
-
if (
|
|
46941
|
-
|
|
47035
|
+
if (win2.customElements && win2.customElements.clear) {
|
|
47036
|
+
win2.customElements.clear();
|
|
46942
47037
|
}
|
|
46943
|
-
resetDocument(
|
|
46944
|
-
resetPerformance(
|
|
46945
|
-
for (const key in
|
|
46946
|
-
if (
|
|
46947
|
-
delete
|
|
47038
|
+
resetDocument(win2.document);
|
|
47039
|
+
resetPerformance(win2.performance);
|
|
47040
|
+
for (const key in win2) {
|
|
47041
|
+
if (win2.hasOwnProperty(key) && key !== "document" && key !== "performance" && key !== "customElements") {
|
|
47042
|
+
delete win2[key];
|
|
46948
47043
|
}
|
|
46949
47044
|
}
|
|
46950
|
-
resetWindowDefaults(
|
|
46951
|
-
resetWindowDimensions(
|
|
46952
|
-
resetEventListeners(
|
|
46953
|
-
if (
|
|
47045
|
+
resetWindowDefaults(win2);
|
|
47046
|
+
resetWindowDimensions(win2);
|
|
47047
|
+
resetEventListeners(win2);
|
|
47048
|
+
if (win2.document != null) {
|
|
46954
47049
|
try {
|
|
46955
|
-
|
|
47050
|
+
win2.document.defaultView = win2;
|
|
46956
47051
|
} catch (e) {
|
|
46957
47052
|
}
|
|
46958
47053
|
}
|
|
46959
|
-
|
|
46960
|
-
|
|
46961
|
-
|
|
46962
|
-
|
|
46963
|
-
|
|
47054
|
+
win2.fetch = null;
|
|
47055
|
+
win2.Headers = null;
|
|
47056
|
+
win2.Request = null;
|
|
47057
|
+
win2.Response = null;
|
|
47058
|
+
win2.FetchError = null;
|
|
46964
47059
|
}
|
|
46965
47060
|
}
|
|
46966
|
-
function resetWindowDimensions(
|
|
47061
|
+
function resetWindowDimensions(win2) {
|
|
46967
47062
|
try {
|
|
46968
|
-
|
|
46969
|
-
|
|
46970
|
-
|
|
46971
|
-
|
|
46972
|
-
|
|
46973
|
-
|
|
46974
|
-
|
|
46975
|
-
|
|
46976
|
-
|
|
46977
|
-
|
|
46978
|
-
|
|
46979
|
-
|
|
46980
|
-
availHeight:
|
|
47063
|
+
win2.devicePixelRatio = 1;
|
|
47064
|
+
win2.innerHeight = 768;
|
|
47065
|
+
win2.innerWidth = 1366;
|
|
47066
|
+
win2.pageXOffset = 0;
|
|
47067
|
+
win2.pageYOffset = 0;
|
|
47068
|
+
win2.screenLeft = 0;
|
|
47069
|
+
win2.screenTop = 0;
|
|
47070
|
+
win2.screenX = 0;
|
|
47071
|
+
win2.screenY = 0;
|
|
47072
|
+
win2.scrollX = 0;
|
|
47073
|
+
win2.scrollY = 0;
|
|
47074
|
+
win2.screen = {
|
|
47075
|
+
availHeight: win2.innerHeight,
|
|
46981
47076
|
availLeft: 0,
|
|
46982
47077
|
availTop: 0,
|
|
46983
|
-
availWidth:
|
|
47078
|
+
availWidth: win2.innerWidth,
|
|
46984
47079
|
colorDepth: 24,
|
|
46985
|
-
height:
|
|
47080
|
+
height: win2.innerHeight,
|
|
46986
47081
|
keepAwake: false,
|
|
46987
47082
|
orientation: {
|
|
46988
47083
|
angle: 0,
|
|
46989
47084
|
type: "portrait-primary"
|
|
46990
47085
|
},
|
|
46991
47086
|
pixelDepth: 24,
|
|
46992
|
-
width:
|
|
47087
|
+
width: win2.innerWidth
|
|
46993
47088
|
};
|
|
46994
47089
|
} catch (e) {
|
|
46995
47090
|
}
|
|
@@ -46997,11 +47092,11 @@ function resetWindowDimensions(win) {
|
|
|
46997
47092
|
|
|
46998
47093
|
// src/mock-doc/document.ts
|
|
46999
47094
|
var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
47000
|
-
constructor(html = null,
|
|
47095
|
+
constructor(html = null, win2 = null) {
|
|
47001
47096
|
super(null, null);
|
|
47002
47097
|
this.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
47003
47098
|
this.nodeType = 9 /* DOCUMENT_NODE */;
|
|
47004
|
-
this.defaultView =
|
|
47099
|
+
this.defaultView = win2;
|
|
47005
47100
|
this.cookie = "";
|
|
47006
47101
|
this.referrer = "";
|
|
47007
47102
|
this.appendChild(this.createDocumentTypeNode());
|
|
@@ -47148,10 +47243,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
47148
47243
|
}
|
|
47149
47244
|
createElement(tagName) {
|
|
47150
47245
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
47151
|
-
const
|
|
47152
|
-
|
|
47153
|
-
|
|
47154
|
-
return
|
|
47246
|
+
const doc2 = new _MockDocument(false);
|
|
47247
|
+
doc2.nodeName = tagName;
|
|
47248
|
+
doc2.parentNode = null;
|
|
47249
|
+
return doc2;
|
|
47155
47250
|
}
|
|
47156
47251
|
return createElement(this, tagName);
|
|
47157
47252
|
}
|
|
@@ -47191,10 +47286,10 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
47191
47286
|
title.textContent = value;
|
|
47192
47287
|
}
|
|
47193
47288
|
};
|
|
47194
|
-
function resetDocument(
|
|
47195
|
-
if (
|
|
47196
|
-
resetEventListeners(
|
|
47197
|
-
const documentElement =
|
|
47289
|
+
function resetDocument(doc2) {
|
|
47290
|
+
if (doc2 != null) {
|
|
47291
|
+
resetEventListeners(doc2);
|
|
47292
|
+
const documentElement = doc2.documentElement;
|
|
47198
47293
|
if (documentElement != null) {
|
|
47199
47294
|
resetElement(documentElement);
|
|
47200
47295
|
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
@@ -47203,25 +47298,25 @@ function resetDocument(doc) {
|
|
|
47203
47298
|
childNode.childNodes.length = 0;
|
|
47204
47299
|
}
|
|
47205
47300
|
}
|
|
47206
|
-
for (const key in
|
|
47207
|
-
if (
|
|
47208
|
-
delete
|
|
47301
|
+
for (const key in doc2) {
|
|
47302
|
+
if (doc2.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
47303
|
+
delete doc2[key];
|
|
47209
47304
|
}
|
|
47210
47305
|
}
|
|
47211
47306
|
try {
|
|
47212
|
-
|
|
47307
|
+
doc2.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
47213
47308
|
} catch (e) {
|
|
47214
47309
|
}
|
|
47215
47310
|
try {
|
|
47216
|
-
|
|
47311
|
+
doc2.nodeType = 9 /* DOCUMENT_NODE */;
|
|
47217
47312
|
} catch (e) {
|
|
47218
47313
|
}
|
|
47219
47314
|
try {
|
|
47220
|
-
|
|
47315
|
+
doc2.cookie = "";
|
|
47221
47316
|
} catch (e) {
|
|
47222
47317
|
}
|
|
47223
47318
|
try {
|
|
47224
|
-
|
|
47319
|
+
doc2.referrer = "";
|
|
47225
47320
|
} catch (e) {
|
|
47226
47321
|
}
|
|
47227
47322
|
}
|
|
@@ -47277,9 +47372,33 @@ function createWindowFromHtml(templateHtml, uniqueId) {
|
|
|
47277
47372
|
templateWindow = new MockWindow(templateHtml);
|
|
47278
47373
|
templateWindows.set(uniqueId, templateWindow);
|
|
47279
47374
|
}
|
|
47280
|
-
const
|
|
47281
|
-
return
|
|
47375
|
+
const win2 = cloneWindow(templateWindow);
|
|
47376
|
+
return win2;
|
|
47282
47377
|
}
|
|
47378
|
+
var Build = {
|
|
47379
|
+
isDev: BUILD.isDev ? true : false,
|
|
47380
|
+
isBrowser: true,
|
|
47381
|
+
isServer: false,
|
|
47382
|
+
isTesting: BUILD.isTesting ? true : false
|
|
47383
|
+
};
|
|
47384
|
+
var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
|
|
47385
|
+
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
47386
|
+
"%cstencil",
|
|
47387
|
+
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
47388
|
+
];
|
|
47389
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
47390
|
+
var doc = win.document || { head: {} };
|
|
47391
|
+
var H = win.HTMLElement || class {
|
|
47392
|
+
};
|
|
47393
|
+
var supportsShadow = BUILD.shadowDom;
|
|
47394
|
+
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
47395
|
+
try {
|
|
47396
|
+
new CSSStyleSheet();
|
|
47397
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
47398
|
+
} catch (e) {
|
|
47399
|
+
}
|
|
47400
|
+
return false;
|
|
47401
|
+
})() : false;
|
|
47283
47402
|
|
|
47284
47403
|
// src/utils/helpers.ts
|
|
47285
47404
|
var isString = (v) => typeof v === "string";
|
|
@@ -47371,15 +47490,20 @@ var unwrapErr = (result) => {
|
|
|
47371
47490
|
}
|
|
47372
47491
|
};
|
|
47373
47492
|
|
|
47493
|
+
// src/runtime/mode.ts
|
|
47494
|
+
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
47495
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
47496
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
47497
|
+
|
|
47374
47498
|
// src/compiler/html/canonical-link.ts
|
|
47375
|
-
var updateCanonicalLink = (
|
|
47499
|
+
var updateCanonicalLink = (doc2, href) => {
|
|
47376
47500
|
var _a2;
|
|
47377
|
-
let canonicalLinkElm =
|
|
47501
|
+
let canonicalLinkElm = doc2.head.querySelector('link[rel="canonical"]');
|
|
47378
47502
|
if (typeof href === "string") {
|
|
47379
47503
|
if (canonicalLinkElm == null) {
|
|
47380
|
-
canonicalLinkElm =
|
|
47504
|
+
canonicalLinkElm = doc2.createElement("link");
|
|
47381
47505
|
canonicalLinkElm.setAttribute("rel", "canonical");
|
|
47382
|
-
|
|
47506
|
+
doc2.head.appendChild(canonicalLinkElm);
|
|
47383
47507
|
}
|
|
47384
47508
|
canonicalLinkElm.setAttribute("href", href);
|
|
47385
47509
|
} else {
|
|
@@ -47393,11 +47517,11 @@ var updateCanonicalLink = (doc, href) => {
|
|
|
47393
47517
|
};
|
|
47394
47518
|
|
|
47395
47519
|
// src/compiler/html/relocate-meta-charset.ts
|
|
47396
|
-
var relocateMetaCharset = (
|
|
47397
|
-
const head =
|
|
47520
|
+
var relocateMetaCharset = (doc2) => {
|
|
47521
|
+
const head = doc2.head;
|
|
47398
47522
|
let charsetElm = head.querySelector("meta[charset]");
|
|
47399
47523
|
if (charsetElm == null) {
|
|
47400
|
-
charsetElm =
|
|
47524
|
+
charsetElm = doc2.createElement("meta");
|
|
47401
47525
|
charsetElm.setAttribute("charset", "utf-8");
|
|
47402
47526
|
} else {
|
|
47403
47527
|
charsetElm.remove();
|
|
@@ -47672,13 +47796,13 @@ var parseCss = (css, filePath) => {
|
|
|
47672
47796
|
const m = match(/^@([-\w]+)?document *([^{]+)/);
|
|
47673
47797
|
if (!m) return null;
|
|
47674
47798
|
const vendor = trim(m[1]);
|
|
47675
|
-
const
|
|
47799
|
+
const doc2 = trim(m[2]);
|
|
47676
47800
|
if (!open()) return error(`@document missing '{'`);
|
|
47677
47801
|
const style = comments().concat(rules());
|
|
47678
47802
|
if (!close()) return error(`@document missing '}'`);
|
|
47679
47803
|
return pos({
|
|
47680
47804
|
type: 3 /* Document */,
|
|
47681
|
-
document:
|
|
47805
|
+
document: doc2,
|
|
47682
47806
|
vendor,
|
|
47683
47807
|
rules: style
|
|
47684
47808
|
});
|
|
@@ -48004,11 +48128,11 @@ var serializeCssPage = (opts, node) => {
|
|
|
48004
48128
|
};
|
|
48005
48129
|
var serializeCssDocument = (opts, node) => {
|
|
48006
48130
|
const documentCss = serializeCssMapVisit(opts, node.rules);
|
|
48007
|
-
const
|
|
48131
|
+
const doc2 = "@" + (node.vendor || "") + "document " + node.document;
|
|
48008
48132
|
if (documentCss === "") {
|
|
48009
48133
|
return "";
|
|
48010
48134
|
}
|
|
48011
|
-
return
|
|
48135
|
+
return doc2 + "{" + documentCss + "}";
|
|
48012
48136
|
};
|
|
48013
48137
|
var serializeCssMapVisit = (opts, nodes) => {
|
|
48014
48138
|
let rtn = "";
|
|
@@ -48106,12 +48230,12 @@ var collectUsedSelectors = (usedSelectors, elm) => {
|
|
|
48106
48230
|
};
|
|
48107
48231
|
|
|
48108
48232
|
// src/compiler/html/remove-unused-styles.ts
|
|
48109
|
-
var removeUnusedStyles = (
|
|
48233
|
+
var removeUnusedStyles = (doc2, diagnostics) => {
|
|
48110
48234
|
try {
|
|
48111
|
-
const styleElms =
|
|
48235
|
+
const styleElms = doc2.head.querySelectorAll(`style[data-styles]`);
|
|
48112
48236
|
const styleLen = styleElms.length;
|
|
48113
48237
|
if (styleLen > 0) {
|
|
48114
|
-
const usedSelectors = getUsedSelectors(
|
|
48238
|
+
const usedSelectors = getUsedSelectors(doc2.documentElement);
|
|
48115
48239
|
for (let i = 0; i < styleLen; i++) {
|
|
48116
48240
|
removeUnusedStyleText(usedSelectors, diagnostics, styleElms[i]);
|
|
48117
48241
|
}
|
|
@@ -48244,49 +48368,49 @@ function collectAttributes(node) {
|
|
|
48244
48368
|
var SKIP_ATTRS = /* @__PURE__ */ new Set(["s-id", "c-id"]);
|
|
48245
48369
|
|
|
48246
48370
|
// src/hydrate/runner/patch-dom-implementation.ts
|
|
48247
|
-
function patchDomImplementation(
|
|
48248
|
-
let
|
|
48249
|
-
if (
|
|
48371
|
+
function patchDomImplementation(doc2, opts) {
|
|
48372
|
+
let win2;
|
|
48373
|
+
if (doc2.defaultView != null) {
|
|
48250
48374
|
opts.destroyWindow = true;
|
|
48251
|
-
patchWindow(
|
|
48252
|
-
|
|
48375
|
+
patchWindow(doc2.defaultView);
|
|
48376
|
+
win2 = doc2.defaultView;
|
|
48253
48377
|
} else {
|
|
48254
48378
|
opts.destroyWindow = true;
|
|
48255
48379
|
opts.destroyDocument = false;
|
|
48256
|
-
|
|
48380
|
+
win2 = new MockWindow(false);
|
|
48257
48381
|
}
|
|
48258
|
-
if (
|
|
48259
|
-
|
|
48382
|
+
if (win2.document !== doc2) {
|
|
48383
|
+
win2.document = doc2;
|
|
48260
48384
|
}
|
|
48261
|
-
if (
|
|
48262
|
-
|
|
48385
|
+
if (doc2.defaultView !== win2) {
|
|
48386
|
+
doc2.defaultView = win2;
|
|
48263
48387
|
}
|
|
48264
|
-
const
|
|
48265
|
-
if (typeof
|
|
48266
|
-
const elm =
|
|
48388
|
+
const HTMLElement2 = doc2.documentElement.constructor.prototype;
|
|
48389
|
+
if (typeof HTMLElement2.getRootNode !== "function") {
|
|
48390
|
+
const elm = doc2.createElement("unknown-element");
|
|
48267
48391
|
const HTMLUnknownElement = elm.constructor.prototype;
|
|
48268
48392
|
HTMLUnknownElement.getRootNode = getRootNode;
|
|
48269
48393
|
}
|
|
48270
|
-
if (typeof
|
|
48271
|
-
const
|
|
48272
|
-
if (
|
|
48273
|
-
|
|
48394
|
+
if (typeof doc2.createEvent === "function") {
|
|
48395
|
+
const CustomEvent2 = doc2.createEvent("CustomEvent").constructor;
|
|
48396
|
+
if (win2.CustomEvent !== CustomEvent2) {
|
|
48397
|
+
win2.CustomEvent = CustomEvent2;
|
|
48274
48398
|
}
|
|
48275
48399
|
}
|
|
48276
48400
|
try {
|
|
48277
|
-
|
|
48401
|
+
win2.__stencil_baseURI = doc2.baseURI;
|
|
48278
48402
|
} catch (e) {
|
|
48279
|
-
Object.defineProperty(
|
|
48403
|
+
Object.defineProperty(doc2, "baseURI", {
|
|
48280
48404
|
get() {
|
|
48281
|
-
const baseElm =
|
|
48405
|
+
const baseElm = doc2.querySelector("base[href]");
|
|
48282
48406
|
if (baseElm) {
|
|
48283
|
-
return new URL(baseElm.getAttribute("href"),
|
|
48407
|
+
return new URL(baseElm.getAttribute("href"), win2.location.href).href;
|
|
48284
48408
|
}
|
|
48285
|
-
return
|
|
48409
|
+
return win2.location.href;
|
|
48286
48410
|
}
|
|
48287
48411
|
});
|
|
48288
48412
|
}
|
|
48289
|
-
return
|
|
48413
|
+
return win2;
|
|
48290
48414
|
}
|
|
48291
48415
|
function getRootNode(opts) {
|
|
48292
48416
|
const isComposed = opts != null && opts.composed === true;
|
|
@@ -48439,10 +48563,10 @@ function renderCatchError(results, err2) {
|
|
|
48439
48563
|
}
|
|
48440
48564
|
|
|
48441
48565
|
// src/hydrate/runner/runtime-log.ts
|
|
48442
|
-
function runtimeLogging(
|
|
48566
|
+
function runtimeLogging(win2, opts, results) {
|
|
48443
48567
|
try {
|
|
48444
|
-
const pathname =
|
|
48445
|
-
|
|
48568
|
+
const pathname = win2.location.pathname;
|
|
48569
|
+
win2.console.error = (...msgs) => {
|
|
48446
48570
|
const errMsg = msgs.reduce((errMsg2, m) => {
|
|
48447
48571
|
if (m) {
|
|
48448
48572
|
if (m.stack != null) {
|
|
@@ -48462,7 +48586,7 @@ function runtimeLogging(win, opts, results) {
|
|
|
48462
48586
|
}
|
|
48463
48587
|
}
|
|
48464
48588
|
};
|
|
48465
|
-
|
|
48589
|
+
win2.console.debug = (...msgs) => {
|
|
48466
48590
|
renderBuildDiagnostic(results, "debug", "Hydrate Debug", [...msgs].join(", "));
|
|
48467
48591
|
if (opts.runtimeLogging) {
|
|
48468
48592
|
runtimeLog(pathname, "debug", msgs);
|
|
@@ -48470,7 +48594,7 @@ function runtimeLogging(win, opts, results) {
|
|
|
48470
48594
|
};
|
|
48471
48595
|
if (opts.runtimeLogging) {
|
|
48472
48596
|
["log", "warn", "assert", "info", "trace"].forEach((type) => {
|
|
48473
|
-
|
|
48597
|
+
win2.console[type] = (...msgs) => {
|
|
48474
48598
|
runtimeLog(pathname, type, msgs);
|
|
48475
48599
|
};
|
|
48476
48600
|
});
|
|
@@ -48484,58 +48608,58 @@ function runtimeLog(pathname, type, msgs) {
|
|
|
48484
48608
|
}
|
|
48485
48609
|
|
|
48486
48610
|
// src/hydrate/runner/window-initialize.ts
|
|
48487
|
-
function initializeWindow(
|
|
48611
|
+
function initializeWindow(win2, doc2, opts, results) {
|
|
48488
48612
|
if (typeof opts.url === "string") {
|
|
48489
48613
|
try {
|
|
48490
|
-
|
|
48614
|
+
win2.location.href = opts.url;
|
|
48491
48615
|
} catch (e) {
|
|
48492
48616
|
}
|
|
48493
48617
|
}
|
|
48494
48618
|
if (typeof opts.userAgent === "string") {
|
|
48495
48619
|
try {
|
|
48496
|
-
|
|
48620
|
+
win2.navigator.userAgent = opts.userAgent;
|
|
48497
48621
|
} catch (e) {
|
|
48498
48622
|
}
|
|
48499
48623
|
}
|
|
48500
48624
|
if (typeof opts.cookie === "string") {
|
|
48501
48625
|
try {
|
|
48502
|
-
|
|
48626
|
+
doc2.cookie = opts.cookie;
|
|
48503
48627
|
} catch (e) {
|
|
48504
48628
|
}
|
|
48505
48629
|
}
|
|
48506
48630
|
if (typeof opts.referrer === "string") {
|
|
48507
48631
|
try {
|
|
48508
|
-
|
|
48632
|
+
doc2.referrer = opts.referrer;
|
|
48509
48633
|
} catch (e) {
|
|
48510
48634
|
}
|
|
48511
48635
|
}
|
|
48512
48636
|
if (typeof opts.direction === "string") {
|
|
48513
48637
|
try {
|
|
48514
|
-
|
|
48638
|
+
doc2.documentElement.setAttribute("dir", opts.direction);
|
|
48515
48639
|
} catch (e) {
|
|
48516
48640
|
}
|
|
48517
48641
|
}
|
|
48518
48642
|
if (typeof opts.language === "string") {
|
|
48519
48643
|
try {
|
|
48520
|
-
|
|
48644
|
+
doc2.documentElement.setAttribute("lang", opts.language);
|
|
48521
48645
|
} catch (e) {
|
|
48522
48646
|
}
|
|
48523
48647
|
}
|
|
48524
48648
|
if (typeof opts.buildId === "string") {
|
|
48525
48649
|
try {
|
|
48526
|
-
|
|
48650
|
+
doc2.documentElement.setAttribute("data-stencil-build", opts.buildId);
|
|
48527
48651
|
} catch (e) {
|
|
48528
48652
|
}
|
|
48529
48653
|
}
|
|
48530
48654
|
try {
|
|
48531
|
-
|
|
48655
|
+
win2.customElements = null;
|
|
48532
48656
|
} catch (e) {
|
|
48533
48657
|
}
|
|
48534
48658
|
if (opts.constrainTimeouts) {
|
|
48535
|
-
constrainTimeouts(
|
|
48659
|
+
constrainTimeouts(win2);
|
|
48536
48660
|
}
|
|
48537
|
-
runtimeLogging(
|
|
48538
|
-
return
|
|
48661
|
+
runtimeLogging(win2, opts, results);
|
|
48662
|
+
return win2;
|
|
48539
48663
|
}
|
|
48540
48664
|
|
|
48541
48665
|
// src/hydrate/runner/render.ts
|
|
@@ -48552,44 +48676,44 @@ function renderToString(html, options, asStream) {
|
|
|
48552
48676
|
opts.constrainTimeouts = false;
|
|
48553
48677
|
return hydrateDocument(html, opts, asStream);
|
|
48554
48678
|
}
|
|
48555
|
-
function hydrateDocument(
|
|
48679
|
+
function hydrateDocument(doc2, options, asStream) {
|
|
48556
48680
|
const opts = normalizeHydrateOptions(options);
|
|
48557
|
-
let
|
|
48681
|
+
let win2 = null;
|
|
48558
48682
|
const results = generateHydrateResults(opts);
|
|
48559
48683
|
if (hasError(results.diagnostics)) {
|
|
48560
48684
|
return Promise.resolve(results);
|
|
48561
48685
|
}
|
|
48562
|
-
if (typeof
|
|
48686
|
+
if (typeof doc2 === "string") {
|
|
48563
48687
|
try {
|
|
48564
48688
|
opts.destroyWindow = true;
|
|
48565
48689
|
opts.destroyDocument = true;
|
|
48566
|
-
|
|
48690
|
+
win2 = new MockWindow(doc2);
|
|
48567
48691
|
if (!asStream) {
|
|
48568
|
-
return render(
|
|
48692
|
+
return render(win2, opts, results).then(() => results);
|
|
48569
48693
|
}
|
|
48570
|
-
return renderStream(
|
|
48694
|
+
return renderStream(win2, opts, results);
|
|
48571
48695
|
} catch (e) {
|
|
48572
|
-
if (
|
|
48573
|
-
|
|
48696
|
+
if (win2 && win2.close) {
|
|
48697
|
+
win2.close();
|
|
48574
48698
|
}
|
|
48575
|
-
|
|
48699
|
+
win2 = null;
|
|
48576
48700
|
renderCatchError(results, e);
|
|
48577
48701
|
return Promise.resolve(results);
|
|
48578
48702
|
}
|
|
48579
48703
|
}
|
|
48580
|
-
if (isValidDocument(
|
|
48704
|
+
if (isValidDocument(doc2)) {
|
|
48581
48705
|
try {
|
|
48582
48706
|
opts.destroyDocument = false;
|
|
48583
|
-
|
|
48707
|
+
win2 = patchDomImplementation(doc2, opts);
|
|
48584
48708
|
if (!asStream) {
|
|
48585
|
-
return render(
|
|
48709
|
+
return render(win2, opts, results).then(() => results);
|
|
48586
48710
|
}
|
|
48587
|
-
return renderStream(
|
|
48711
|
+
return renderStream(win2, opts, results);
|
|
48588
48712
|
} catch (e) {
|
|
48589
|
-
if (
|
|
48590
|
-
|
|
48713
|
+
if (win2 && win2.close) {
|
|
48714
|
+
win2.close();
|
|
48591
48715
|
}
|
|
48592
|
-
|
|
48716
|
+
win2 = null;
|
|
48593
48717
|
renderCatchError(results, e);
|
|
48594
48718
|
return Promise.resolve(results);
|
|
48595
48719
|
}
|
|
@@ -48597,75 +48721,81 @@ function hydrateDocument(doc, options, asStream) {
|
|
|
48597
48721
|
renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
|
|
48598
48722
|
return Promise.resolve(results);
|
|
48599
48723
|
}
|
|
48600
|
-
async function render(
|
|
48724
|
+
async function render(win2, opts, results) {
|
|
48601
48725
|
if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
|
|
48602
48726
|
process.__stencilErrors = true;
|
|
48603
48727
|
process.on("unhandledRejection", (e) => {
|
|
48604
48728
|
console.log("unhandledRejection", e);
|
|
48605
48729
|
});
|
|
48606
48730
|
}
|
|
48607
|
-
initializeWindow(
|
|
48731
|
+
initializeWindow(win2, win2.document, opts, results);
|
|
48608
48732
|
const beforeHydrateFn = typeof opts.beforeHydrate === "function" ? opts.beforeHydrate : NOOP;
|
|
48609
48733
|
try {
|
|
48610
|
-
await Promise.resolve(beforeHydrateFn(
|
|
48611
|
-
return new Promise((resolve) =>
|
|
48734
|
+
await Promise.resolve(beforeHydrateFn(win2.document));
|
|
48735
|
+
return new Promise((resolve) => {
|
|
48736
|
+
if (Array.isArray(opts.modes)) {
|
|
48737
|
+
modeResolutionChain.length = 0;
|
|
48738
|
+
opts.modes.forEach((mode) => setMode(mode));
|
|
48739
|
+
}
|
|
48740
|
+
return hydrateFactory(win2, opts, results, afterHydrate, resolve);
|
|
48741
|
+
});
|
|
48612
48742
|
} catch (e) {
|
|
48613
48743
|
renderCatchError(results, e);
|
|
48614
|
-
return finalizeHydrate(
|
|
48744
|
+
return finalizeHydrate(win2, win2.document, opts, results);
|
|
48615
48745
|
}
|
|
48616
48746
|
}
|
|
48617
|
-
function renderStream(
|
|
48747
|
+
function renderStream(win2, opts, results) {
|
|
48618
48748
|
async function* processRender() {
|
|
48619
|
-
const renderResult = await render(
|
|
48749
|
+
const renderResult = await render(win2, opts, results);
|
|
48620
48750
|
yield renderResult.html;
|
|
48621
48751
|
}
|
|
48622
48752
|
return stream.Readable.from(processRender());
|
|
48623
48753
|
}
|
|
48624
|
-
async function afterHydrate(
|
|
48754
|
+
async function afterHydrate(win2, opts, results, resolve) {
|
|
48625
48755
|
const afterHydrateFn = typeof opts.afterHydrate === "function" ? opts.afterHydrate : NOOP;
|
|
48626
48756
|
try {
|
|
48627
|
-
await Promise.resolve(afterHydrateFn(
|
|
48628
|
-
return resolve(finalizeHydrate(
|
|
48757
|
+
await Promise.resolve(afterHydrateFn(win2.document));
|
|
48758
|
+
return resolve(finalizeHydrate(win2, win2.document, opts, results));
|
|
48629
48759
|
} catch (e) {
|
|
48630
48760
|
renderCatchError(results, e);
|
|
48631
|
-
return resolve(finalizeHydrate(
|
|
48761
|
+
return resolve(finalizeHydrate(win2, win2.document, opts, results));
|
|
48632
48762
|
}
|
|
48633
48763
|
}
|
|
48634
|
-
function finalizeHydrate(
|
|
48764
|
+
function finalizeHydrate(win2, doc2, opts, results) {
|
|
48635
48765
|
try {
|
|
48636
|
-
inspectElement(results,
|
|
48766
|
+
inspectElement(results, doc2.documentElement, 0);
|
|
48637
48767
|
if (opts.removeUnusedStyles !== false) {
|
|
48638
48768
|
try {
|
|
48639
|
-
removeUnusedStyles(
|
|
48769
|
+
removeUnusedStyles(doc2, results.diagnostics);
|
|
48640
48770
|
} catch (e) {
|
|
48641
48771
|
renderCatchError(results, e);
|
|
48642
48772
|
}
|
|
48643
48773
|
}
|
|
48644
48774
|
if (typeof opts.title === "string") {
|
|
48645
48775
|
try {
|
|
48646
|
-
|
|
48776
|
+
doc2.title = opts.title;
|
|
48647
48777
|
} catch (e) {
|
|
48648
48778
|
renderCatchError(results, e);
|
|
48649
48779
|
}
|
|
48650
48780
|
}
|
|
48651
|
-
results.title =
|
|
48781
|
+
results.title = doc2.title;
|
|
48652
48782
|
if (opts.removeScripts) {
|
|
48653
|
-
removeScripts(
|
|
48783
|
+
removeScripts(doc2.documentElement);
|
|
48654
48784
|
}
|
|
48655
48785
|
try {
|
|
48656
|
-
updateCanonicalLink(
|
|
48786
|
+
updateCanonicalLink(doc2, opts.canonicalUrl);
|
|
48657
48787
|
} catch (e) {
|
|
48658
48788
|
renderCatchError(results, e);
|
|
48659
48789
|
}
|
|
48660
48790
|
try {
|
|
48661
|
-
relocateMetaCharset(
|
|
48791
|
+
relocateMetaCharset(doc2);
|
|
48662
48792
|
} catch (e) {
|
|
48663
48793
|
}
|
|
48664
48794
|
if (!hasError(results.diagnostics)) {
|
|
48665
48795
|
results.httpStatus = 200;
|
|
48666
48796
|
}
|
|
48667
48797
|
try {
|
|
48668
|
-
const metaStatus =
|
|
48798
|
+
const metaStatus = doc2.head.querySelector('meta[http-equiv="status"]');
|
|
48669
48799
|
if (metaStatus != null) {
|
|
48670
48800
|
const metaStatusContent = metaStatus.getAttribute("content");
|
|
48671
48801
|
if (metaStatusContent && metaStatusContent.length > 0) {
|
|
@@ -48675,35 +48805,35 @@ function finalizeHydrate(win, doc, opts, results) {
|
|
|
48675
48805
|
} catch (e) {
|
|
48676
48806
|
}
|
|
48677
48807
|
if (opts.clientHydrateAnnotations) {
|
|
48678
|
-
|
|
48808
|
+
doc2.documentElement.classList.add("hydrated");
|
|
48679
48809
|
}
|
|
48680
48810
|
if (opts.serializeToHtml) {
|
|
48681
|
-
results.html = serializeDocumentToString(
|
|
48811
|
+
results.html = serializeDocumentToString(doc2, opts);
|
|
48682
48812
|
}
|
|
48683
48813
|
} catch (e) {
|
|
48684
48814
|
renderCatchError(results, e);
|
|
48685
48815
|
}
|
|
48686
|
-
destroyWindow(
|
|
48816
|
+
destroyWindow(win2, doc2, opts, results);
|
|
48687
48817
|
return results;
|
|
48688
48818
|
}
|
|
48689
|
-
function destroyWindow(
|
|
48819
|
+
function destroyWindow(win2, doc2, opts, results) {
|
|
48690
48820
|
if (!opts.destroyWindow) {
|
|
48691
48821
|
return;
|
|
48692
48822
|
}
|
|
48693
48823
|
try {
|
|
48694
48824
|
if (!opts.destroyDocument) {
|
|
48695
|
-
|
|
48696
|
-
|
|
48825
|
+
win2.document = null;
|
|
48826
|
+
doc2.defaultView = null;
|
|
48697
48827
|
}
|
|
48698
|
-
if (
|
|
48699
|
-
|
|
48828
|
+
if (win2.close) {
|
|
48829
|
+
win2.close();
|
|
48700
48830
|
}
|
|
48701
48831
|
} catch (e) {
|
|
48702
48832
|
renderCatchError(results, e);
|
|
48703
48833
|
}
|
|
48704
48834
|
}
|
|
48705
|
-
function serializeDocumentToString(
|
|
48706
|
-
return serializeNodeToHtml(
|
|
48835
|
+
function serializeDocumentToString(doc2, opts) {
|
|
48836
|
+
return serializeNodeToHtml(doc2, {
|
|
48707
48837
|
approximateLineWidth: opts.approximateLineWidth,
|
|
48708
48838
|
outerHtml: false,
|
|
48709
48839
|
prettyHtml: opts.prettyHtml,
|
|
@@ -48715,8 +48845,8 @@ function serializeDocumentToString(doc, opts) {
|
|
|
48715
48845
|
fullDocument: opts.fullDocument
|
|
48716
48846
|
});
|
|
48717
48847
|
}
|
|
48718
|
-
function isValidDocument(
|
|
48719
|
-
return
|
|
48848
|
+
function isValidDocument(doc2) {
|
|
48849
|
+
return doc2 != null && doc2.nodeType === 9 && doc2.documentElement != null && doc2.documentElement.nodeType === 1 && doc2.body != null && doc2.body.nodeType === 1;
|
|
48720
48850
|
}
|
|
48721
48851
|
function removeScripts(elm) {
|
|
48722
48852
|
const children = elm.children;
|