@esri/solutions-components 0.10.48 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ExpandToggle-44886935.js +115 -0
- package/dist/cjs/FloatingArrow-d7ea2b0f.js +48 -0
- package/dist/cjs/Heading-ee0aa171.js +25 -0
- package/dist/cjs/IdentityManager-d84c82f1.js +2047 -0
- package/dist/cjs/Validation-9515ef0c.js +20 -0
- package/dist/cjs/app-globals-03a6ab9b.js +67 -0
- package/dist/cjs/ar-180cd9b0.js +106 -0
- package/dist/cjs/asyncToGenerator-c7fc3ee4.js +92 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +37 -12
- package/dist/cjs/bg-fd095c86.js +84 -0
- package/dist/cjs/browser-717f77af.js +35 -0
- package/dist/cjs/bs-11fa6f0d.js +53 -0
- package/dist/cjs/buffer-tools_3.cjs.entry.js +6 -6
- package/dist/cjs/ca-0685b1cc.js +73 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action-bar.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-alert_2.cjs.entry.js +500 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block-section.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_5.cjs.entry.js +17 -17
- package/dist/cjs/calcite-button-de2c2e75.js +282 -0
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-carousel_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/calcite-chip-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-chip_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-color-picker.cjs.entry.js +7 -7
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +66 -20
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-dialog-a5c288bb.js +5876 -0
- package/dist/cjs/calcite-dialog.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-fab.cjs.entry.js +4 -4
- package/dist/cjs/calcite-filter_5.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow-item_5.cjs.entry.js +1752 -0
- package/dist/cjs/calcite-flow_4.cjs.entry.js +12 -12
- package/dist/cjs/calcite-graph_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-icon_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-945ec162.js +1001 -0
- package/dist/cjs/calcite-input-number.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker-3aeef2d4.js +1870 -0
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-label-e7b67a86.js +111 -0
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +4 -4
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/calcite-menu.cjs.entry.js +6 -6
- package/dist/cjs/calcite-meter.cjs.entry.js +6 -6
- package/dist/cjs/calcite-modal_4.cjs.entry.js +972 -0
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
- package/dist/cjs/calcite-navigation.cjs.entry.js +3 -3
- package/dist/cjs/calcite-notice-a48cc9e7.js +261 -0
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-pagination.cjs.entry.js +6 -6
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- package/dist/cjs/calcite-scrim.cjs.entry.js +5 -5
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-sheet.cjs.entry.js +7 -7
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +6 -6
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +24 -24
- package/dist/cjs/calcite-shell.cjs.entry.js +4 -4
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +4 -4
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-stepper.cjs.entry.js +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-table-row.cjs.entry.js +2 -2
- package/dist/cjs/calcite-table.cjs.entry.js +6 -6
- package/dist/cjs/calcite-text-area.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tile-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +4 -4
- package/dist/cjs/calcite-time-picker.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +5 -5
- package/dist/cjs/card-manager_3.cjs.entry.js +194 -51
- package/dist/cjs/common-10d11a29.js +37 -0
- package/dist/cjs/component-69260f95.js +1073 -0
- package/dist/cjs/conditionalSlot-130cce71.js +54 -0
- package/dist/cjs/config-c999f8fc.js +40 -0
- package/dist/cjs/consent-manager.cjs.entry.js +7914 -45
- package/dist/cjs/crowdsource-manager.cjs.entry.js +6 -6
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +3 -3
- package/dist/cjs/cs-70e8ba01.js +149 -0
- package/dist/cjs/da-e8eb9ff4.js +69 -0
- package/dist/cjs/date-40a80298.js +264 -0
- package/dist/cjs/de-4b8310d2.js +93 -0
- package/dist/cjs/de-at-dc8ed8c3.js +92 -0
- package/dist/cjs/de-ch-c5971940.js +92 -0
- package/dist/cjs/deduct-calculator.cjs.entry.js +2 -2
- package/dist/cjs/downloadUtils-b6490537.js +3223 -0
- package/dist/cjs/el-a70d9f12.js +68 -0
- package/dist/cjs/en-au-88ddb80f.js +68 -0
- package/dist/cjs/en-ca-5a29b95b.js +67 -0
- package/dist/cjs/en-gb-3c763a84.js +71 -0
- package/dist/cjs/es-e83e8ff5.js +68 -0
- package/dist/cjs/es-mx-2ea879ef.js +67 -0
- package/dist/cjs/et-7b00c80d.js +94 -0
- package/dist/cjs/feature-list.cjs.entry.js +12 -10
- package/dist/cjs/fi-92ca007b.js +117 -0
- package/dist/cjs/floating-ui-7fa9e006.js +2413 -0
- package/dist/cjs/focusTrapComponent-a7cfa6da.js +1013 -0
- package/dist/cjs/form-dd5380da.js +370 -0
- package/dist/cjs/form-f2a43327.js +381 -0
- package/dist/cjs/fr-a1f5dfd4.js +70 -0
- package/dist/cjs/fr-ch-8a4a9d67.js +68 -0
- package/dist/cjs/he-38b2b883.js +107 -0
- package/dist/cjs/helpers-47465fc2.js +940 -0
- package/dist/cjs/hi-a517b1a8.js +67 -0
- package/dist/cjs/hr-c1e34de1.js +82 -0
- package/dist/cjs/hu-e46e8ae7.js +90 -0
- package/dist/cjs/icon-f45e7fbb.js +979 -0
- package/dist/cjs/id-bfc376d8.js +68 -0
- package/dist/cjs/index-1ab17699.js +201 -0
- package/dist/cjs/index-3bae5121.js +1789 -0
- package/dist/cjs/index-5d8d6ae2.js +2157 -0
- package/dist/cjs/index.es-5fc7bebc.js +11221 -0
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +16 -20
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +13 -13
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-splash.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +5 -59
- package/dist/cjs/interactive-b59e6294.js +86 -0
- package/dist/cjs/interactive-e1c3ccf2.js +85 -0
- package/dist/cjs/it-6d8c8360.js +68 -0
- package/dist/cjs/it-ch-2b05812c.js +68 -0
- package/dist/cjs/ja-eb46f963.js +74 -0
- package/dist/cjs/ko-dbe28d19.js +74 -0
- package/dist/cjs/label-7f519bd9.js +186 -0
- package/dist/cjs/languageSwitcher-bca9ab2c.js +52 -0
- package/dist/cjs/loadable-19ab5827.js +98 -0
- package/dist/cjs/loader-97bb6b45.js +176 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-3a817e03.js +1488 -0
- package/dist/cjs/locale-80aff4b9.js +605 -0
- package/dist/cjs/locale-a79da367.js +160 -0
- package/dist/cjs/logger-780b61e8.js +61 -0
- package/dist/cjs/lt-651bfa9c.js +99 -0
- package/dist/cjs/lv-f6fe37a3.js +68 -0
- package/dist/cjs/map-select-tools_3.cjs.entry.js +15 -13
- package/dist/cjs/mk-1f0ffdf6.js +68 -0
- package/dist/cjs/nb-8b7b39ed.js +69 -0
- package/dist/cjs/nl-27515721.js +69 -0
- package/dist/cjs/observers-902ebe13.js +58 -0
- package/dist/cjs/openCloseComponent-039ee139.js +65 -0
- package/dist/cjs/openCloseComponent-e8e50700.js +66 -0
- package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
- package/dist/cjs/pl-d2098514.js +116 -0
- package/dist/cjs/popupUtils-72d48968.js +121 -0
- package/dist/cjs/pt-a3304010.js +69 -0
- package/dist/cjs/pt-br-09d60ba8.js +67 -0
- package/dist/cjs/public-notification.cjs.entry.js +12 -10
- package/dist/cjs/publicNotificationStore-04b6837d.js +47 -0
- package/dist/cjs/request-19fdbaaa.js +21 -0
- package/dist/cjs/restHelpersGet-e4639890.js +507 -0
- package/dist/cjs/ro-2ea54b1c.js +68 -0
- package/dist/cjs/ru-f94ee202.js +128 -0
- package/dist/cjs/shared-list-render-fb08b2af.js +361 -0
- package/dist/cjs/sk-3cdf67d8.js +150 -0
- package/dist/cjs/sl-075daf42.js +170 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +53 -53
- package/dist/cjs/solution-contents_3.cjs.entry.js +11 -11
- package/dist/cjs/solution-item-accordion.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-icon.cjs.entry.js +2 -2
- package/dist/cjs/solution-resource-d0a2f7fe.js +1845 -0
- package/dist/cjs/solution-store-4e602251.js +1105 -0
- package/dist/cjs/solutions-components.cjs.js +6 -6
- package/dist/cjs/spatial-ref.cjs.entry.js +5 -6
- package/dist/cjs/sr-2f08967b.js +103 -0
- package/dist/cjs/store-manager.cjs.entry.js +7 -7
- package/dist/cjs/sv-65f0e21c.js +73 -0
- package/dist/cjs/t9n-0195f685.js +108 -0
- package/dist/cjs/templates-1e84847a.js +407 -0
- package/dist/cjs/th-db63e592.js +67 -0
- package/dist/cjs/time-caa0abbe.js +301 -0
- package/dist/cjs/tr-b6401cac.js +68 -0
- package/dist/cjs/typeof-2a7e2dec.js +28 -0
- package/dist/cjs/uk-d00c351d.js +106 -0
- package/dist/cjs/update-243ea407.js +783 -0
- package/dist/cjs/utils-7eb34f90.js +153 -0
- package/dist/cjs/utils-d2bcba4f.js +79 -0
- package/dist/cjs/vi-efe4ad72.js +72 -0
- package/dist/cjs/zh-cn-63f07390.js +96 -0
- package/dist/cjs/zh-hk-84a86ab9.js +94 -0
- package/dist/cjs/zh-tw-894f1adf.js +94 -0
- package/dist/collection/assets/t9n/consent-manager/resources.json +3 -10
- package/dist/collection/assets/t9n/consent-manager/resources_en.json +3 -10
- package/dist/collection/collection-manifest.json +2 -4
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/consent-manager/consent-manager.js +113 -37
- package/dist/collection/components/create-feature/create-feature.js +2 -2
- package/dist/collection/components/create-related-feature/create-related-feature.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +3 -3
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
- package/dist/collection/components/delete-button/delete-button.js +2 -2
- package/dist/collection/components/delete-dialog/delete-dialog.js +1 -1
- package/dist/collection/components/edit-card/edit-card.js +26 -2
- package/dist/collection/components/feature-details/feature-details.js +6 -6
- package/dist/collection/components/feature-list/feature-list.js +3 -3
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +224 -47
- package/dist/collection/components/map-card/map-card.js +2 -2
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +121 -5
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +53 -4
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +3 -3
- package/dist/collection/components/map-tools/map-tools.js +2 -2
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +2 -2
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/consent-manager.html +56 -0
- package/dist/collection/utils/interfaces.ts +14 -0
- package/dist/components/IdentityManager.js +339 -0
- package/dist/components/asyncToGenerator.js +88 -0
- package/dist/components/basemap-gallery2.js +1 -1
- package/dist/components/buffer-tools2.js +1 -1
- package/dist/components/calcite-button2.js +273 -0
- package/dist/components/calcite-dialog.js +1 -663
- package/dist/components/calcite-dialog2.js +5867 -0
- package/dist/components/calcite-input2.js +992 -0
- package/dist/components/calcite-label2.js +100 -0
- package/dist/components/calcite-notice2.js +251 -0
- package/dist/components/card-manager2.js +10 -10
- package/dist/components/common.js +0 -1
- package/dist/components/component2.js +1048 -0
- package/dist/components/consent-manager.js +8053 -203
- package/dist/components/create-feature2.js +2 -2
- package/dist/components/create-related-feature2.js +1 -1
- package/dist/components/crowdsource-manager.js +37 -37
- package/dist/components/crowdsource-reporter.js +28 -28
- package/dist/components/deduct-calculator2.js +1 -1
- package/dist/components/delete-button2.js +29 -11
- package/dist/components/delete-dialog2.js +33 -9
- package/dist/components/dialog.js +670 -0
- package/dist/components/downloadUtils.js +10 -26
- package/dist/components/edit-card2.js +7 -2
- package/dist/components/feature-details2.js +23 -23
- package/dist/components/feature-list2.js +3 -3
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/form2.js +362 -0
- package/dist/components/icon2.js +960 -0
- package/dist/components/index.es.js +25 -104
- package/dist/components/index2.js +6 -5
- package/dist/components/info-card2.js +9 -9
- package/dist/components/instant-apps-language-switcher.js +6 -10
- package/dist/components/instant-apps-language-translator2.js +2 -809
- package/dist/components/instant-apps-time-filter.js +3 -57
- package/dist/components/interactive2.js +83 -0
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/label3.js +179 -0
- package/dist/components/layer-table2.js +212 -69
- package/dist/components/loader2.js +173 -0
- package/dist/components/locale3.js +1311 -3
- package/dist/components/map-card2.js +2 -2
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +53 -5
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +28 -3
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +3 -3
- package/dist/components/map-tools2.js +2 -2
- package/dist/components/openCloseComponent2.js +64 -0
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +2 -2
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/request.js +14 -0
- package/dist/components/restHelpersGet.js +74 -557
- package/dist/components/solution-configuration.js +27 -28
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-accordion.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -2
- package/dist/components/solution-resource.js +1701 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-store.js +36 -285
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/components/templates.js +0 -1
- package/dist/components/typeof.js +25 -0
- package/dist/components/update.js +773 -0
- package/dist/esm/ExpandToggle-324f556e.js +108 -0
- package/dist/esm/FloatingArrow-cd37b366.js +46 -0
- package/dist/esm/Heading-b6b7a8a6.js +22 -0
- package/dist/esm/IdentityManager-6880e890.js +2012 -0
- package/dist/esm/Validation-b62abebe.js +18 -0
- package/dist/esm/app-globals-b6ef4076.js +65 -0
- package/dist/esm/ar-aa347a04.js +104 -0
- package/dist/esm/asyncToGenerator-96b2368d.js +88 -0
- package/dist/esm/basemap-gallery_7.entry.js +37 -12
- package/dist/esm/bg-b56e89f6.js +82 -0
- package/dist/esm/browser-e42b9848.js +32 -0
- package/dist/esm/bs-62486009.js +51 -0
- package/dist/esm/buffer-tools_3.entry.js +7 -7
- package/dist/esm/ca-db6a81f3.js +71 -0
- package/dist/esm/calcite-accordion_2.entry.js +6 -6
- package/dist/esm/calcite-action-bar.entry.js +9 -9
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu_2.entry.js +10 -10
- package/dist/esm/calcite-action-pad_2.entry.js +9 -9
- package/dist/esm/calcite-action_2.entry.js +14 -14
- package/dist/esm/calcite-alert_2.entry.js +495 -0
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block-section.entry.js +7 -7
- package/dist/esm/calcite-block_5.entry.js +19 -19
- package/dist/esm/calcite-button-e86d99b3.js +279 -0
- package/dist/esm/calcite-button.entry.js +10 -10
- package/dist/esm/calcite-card-group.entry.js +5 -5
- package/dist/esm/calcite-card.entry.js +8 -8
- package/dist/esm/calcite-carousel_2.entry.js +8 -8
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip-group.entry.js +5 -5
- package/dist/esm/calcite-chip_2.entry.js +10 -10
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +4 -4
- package/dist/esm/calcite-color-picker.entry.js +8 -8
- package/dist/esm/calcite-combobox-item-group.entry.js +4 -4
- package/dist/esm/calcite-combobox_3.entry.js +68 -22
- package/dist/esm/calcite-date-picker-day_3.entry.js +9 -9
- package/dist/esm/calcite-dialog-f5f9cfea.js +5873 -0
- package/dist/esm/calcite-dialog.entry.js +10 -10
- package/dist/esm/calcite-dropdown_2.entry.js +8 -8
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter_5.entry.js +8 -8
- package/dist/esm/calcite-flow-item_5.entry.js +1744 -0
- package/dist/esm/calcite-flow_4.entry.js +12 -12
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-icon_2.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +9 -9
- package/dist/esm/calcite-input-1f12bce0.js +998 -0
- package/dist/esm/calcite-input-number.entry.js +11 -11
- package/dist/esm/calcite-input-text.entry.js +11 -11
- package/dist/esm/calcite-input-time-picker-07db9ed7.js +1867 -0
- package/dist/esm/calcite-input-time-picker.entry.js +15 -15
- package/dist/esm/calcite-input-time-zone.entry.js +10 -10
- package/dist/esm/calcite-input_2.entry.js +11 -11
- package/dist/esm/calcite-label-d80f6f1c.js +108 -0
- package/dist/esm/calcite-label.entry.js +3 -3
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list-item-group.entry.js +2 -2
- package/dist/esm/calcite-menu-item.entry.js +7 -7
- package/dist/esm/calcite-menu.entry.js +7 -7
- package/dist/esm/calcite-meter.entry.js +7 -7
- package/dist/esm/calcite-modal_4.entry.js +965 -0
- package/dist/esm/calcite-navigation-logo.entry.js +4 -4
- package/dist/esm/calcite-navigation-user.entry.js +3 -3
- package/dist/esm/calcite-navigation.entry.js +4 -4
- package/dist/esm/calcite-notice-acc12411.js +258 -0
- package/dist/esm/calcite-notice.entry.js +9 -9
- package/dist/esm/calcite-option-group.entry.js +1 -1
- package/dist/esm/calcite-option_2.entry.js +9 -9
- package/dist/esm/calcite-pagination.entry.js +7 -7
- package/dist/esm/calcite-pick-list-group.entry.js +8 -8
- package/dist/esm/calcite-pick-list-item.entry.js +11 -11
- package/dist/esm/calcite-pick-list.entry.js +9 -9
- package/dist/esm/calcite-radio-button-group.entry.js +6 -6
- package/dist/esm/calcite-radio-button.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +10 -10
- package/dist/esm/calcite-scrim.entry.js +6 -6
- package/dist/esm/calcite-segmented-control_2.entry.js +8 -8
- package/dist/esm/calcite-sheet.entry.js +8 -8
- package/dist/esm/calcite-shell-center-row.entry.js +7 -7
- package/dist/esm/calcite-shell-panel_14.entry.js +25 -25
- package/dist/esm/calcite-shell.entry.js +5 -5
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper-item.entry.js +8 -8
- package/dist/esm/calcite-stepper.entry.js +6 -6
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-table-cell_2.entry.js +8 -8
- package/dist/esm/calcite-table-row.entry.js +3 -3
- package/dist/esm/calcite-table.entry.js +7 -7
- package/dist/esm/calcite-text-area.entry.js +11 -11
- package/dist/esm/calcite-tile-group.entry.js +5 -5
- package/dist/esm/calcite-tile-select-group.entry.js +4 -4
- package/dist/esm/calcite-tile-select.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +5 -5
- package/dist/esm/calcite-time-picker.entry.js +8 -8
- package/dist/esm/calcite-tip-group.entry.js +3 -3
- package/dist/esm/calcite-tip-manager.entry.js +9 -9
- package/dist/esm/calcite-tip.entry.js +10 -10
- package/dist/esm/calcite-tooltip.entry.js +6 -6
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/card-manager_3.entry.js +194 -51
- package/dist/esm/common-c8dc0e85.js +35 -0
- package/dist/esm/component-85f22c99.js +1048 -0
- package/dist/esm/conditionalSlot-2e16b206.js +51 -0
- package/dist/esm/config-e6645458.js +36 -0
- package/dist/esm/consent-manager.entry.js +7910 -41
- package/dist/esm/crowdsource-manager.entry.js +6 -6
- package/dist/esm/crowdsource-reporter.entry.js +3 -3
- package/dist/esm/cs-250e21c6.js +147 -0
- package/dist/esm/da-bab8eb4e.js +67 -0
- package/dist/esm/date-272939fd.js +248 -0
- package/dist/esm/de-808a43dc.js +91 -0
- package/dist/esm/de-at-9c396c81.js +90 -0
- package/dist/esm/de-ch-415303cf.js +90 -0
- package/dist/esm/deduct-calculator.entry.js +2 -2
- package/dist/esm/dom-66c5cd46.js +1165 -0
- package/dist/esm/downloadUtils-8ba094d7.js +3217 -0
- package/dist/esm/el-3d1eaeb8.js +66 -0
- package/dist/esm/en-au-e6b00a93.js +66 -0
- package/dist/esm/en-ca-29b94ea2.js +65 -0
- package/dist/esm/en-gb-09267176.js +69 -0
- package/dist/esm/es-95fef748.js +66 -0
- package/dist/esm/es-mx-9b70cfc9.js +65 -0
- package/dist/esm/et-08cbe214.js +92 -0
- package/dist/esm/feature-list.entry.js +12 -10
- package/dist/esm/fi-e850e58b.js +115 -0
- package/dist/esm/floating-ui-1a431a21.js +2404 -0
- package/dist/esm/focusTrapComponent-e80b8863.js +1008 -0
- package/dist/esm/form-1528db83.js +362 -0
- package/dist/esm/form-99398da6.js +372 -0
- package/dist/esm/fr-c71b6844.js +68 -0
- package/dist/esm/fr-ch-7ac7a7eb.js +66 -0
- package/dist/esm/he-311cb5ba.js +105 -0
- package/dist/esm/helpers-f52a734a.js +913 -0
- package/dist/esm/hi-c41f0938.js +65 -0
- package/dist/esm/hr-f42cc721.js +80 -0
- package/dist/esm/hu-d1d33b21.js +88 -0
- package/dist/esm/icon-18c0eb17.js +959 -0
- package/dist/esm/id-1867967d.js +66 -0
- package/dist/esm/index-38bde943.js +199 -0
- package/dist/esm/index-d233c7a2.js +1753 -0
- package/dist/esm/index-d88c3eb6.js +2155 -0
- package/dist/esm/index.es-d286eecc.js +11134 -0
- package/dist/esm/instant-apps-app-guide.entry.js +2 -2
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-create.entry.js +2 -2
- package/dist/esm/instant-apps-export-views.entry.js +2 -2
- package/dist/esm/instant-apps-export.entry.js +2 -2
- package/dist/esm/instant-apps-header.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +9 -13
- package/dist/esm/instant-apps-language-translator.entry.js +5 -5
- package/dist/esm/instant-apps-measurement.entry.js +2 -2
- package/dist/esm/instant-apps-popover.entry.js +2 -2
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
- package/dist/esm/instant-apps-sign-in.entry.js +2 -2
- package/dist/esm/instant-apps-splash.entry.js +3 -3
- package/dist/esm/instant-apps-time-filter.entry.js +3 -57
- package/dist/esm/interactive-5139f8d7.js +83 -0
- package/dist/esm/interactive-cad37709.js +82 -0
- package/dist/esm/it-6a7495d8.js +66 -0
- package/dist/esm/it-ch-89fa3c82.js +66 -0
- package/dist/esm/ja-f87a1f44.js +72 -0
- package/dist/esm/ko-0f4c7a11.js +72 -0
- package/dist/esm/label-56002f24.js +179 -0
- package/dist/esm/label-7f52ca53.js +179 -0
- package/dist/esm/languageSwitcher-d0ca5d6f.js +49 -0
- package/dist/esm/loadable-dc3f24a8.js +93 -0
- package/dist/esm/loader-bae2aa52.js +173 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/locale-586d9375.js +155 -0
- package/dist/esm/locale-911eca09.js +591 -0
- package/dist/esm/locale-be7fd298.js +1423 -0
- package/dist/esm/logger-ff14b12f.js +59 -0
- package/dist/esm/lt-a4b14416.js +97 -0
- package/dist/esm/lv-3901862d.js +66 -0
- package/dist/esm/map-select-tools_3.entry.js +15 -13
- package/dist/esm/mk-886d280d.js +66 -0
- package/dist/esm/nb-b667a0e1.js +67 -0
- package/dist/esm/nl-d357a092.js +67 -0
- package/dist/esm/observers-ab3d6528.js +56 -0
- package/dist/esm/openCloseComponent-0e1e6768.js +64 -0
- package/dist/esm/openCloseComponent-c3f79463.js +63 -0
- package/dist/esm/pci-calculator.entry.js +2 -2
- package/dist/esm/pl-75d54069.js +114 -0
- package/dist/esm/popupUtils-ddb1f6fa.js +119 -0
- package/dist/esm/pt-32bd5da2.js +67 -0
- package/dist/esm/pt-br-6f32314d.js +65 -0
- package/dist/esm/public-notification.entry.js +12 -10
- package/dist/esm/publicNotificationStore-8b54bf6f.js +45 -0
- package/dist/esm/request-2dbb152a.js +19 -0
- package/dist/esm/restHelpersGet-a7fda344.js +493 -0
- package/dist/esm/ro-d238055e.js +66 -0
- package/dist/esm/ru-ef7165ff.js +126 -0
- package/dist/esm/shared-list-render-5f202c55.js +339 -0
- package/dist/esm/sk-959dbca1.js +148 -0
- package/dist/esm/sl-96436015.js +168 -0
- package/dist/esm/solution-configuration.entry.js +34 -34
- package/dist/esm/solution-contents_3.entry.js +11 -11
- package/dist/esm/solution-item-accordion.entry.js +3 -3
- package/dist/esm/solution-item-icon.entry.js +2 -2
- package/dist/esm/solution-resource-30a29505.js +1842 -0
- package/dist/esm/solution-store-f252cb74.js +1103 -0
- package/dist/esm/solutions-components.js +7 -7
- package/dist/esm/spatial-ref.entry.js +5 -6
- package/dist/esm/sr-73033c89.js +101 -0
- package/dist/esm/store-manager.entry.js +7 -7
- package/dist/esm/sv-b1153aa8.js +71 -0
- package/dist/esm/t9n-1698878e.js +103 -0
- package/dist/esm/templates-60f33938.js +401 -0
- package/dist/esm/th-e1a074e2.js +65 -0
- package/dist/esm/time-bca5f70b.js +286 -0
- package/dist/esm/tr-1350f529.js +66 -0
- package/dist/esm/typeof-ef2a007d.js +25 -0
- package/dist/esm/uk-18ded66c.js +104 -0
- package/dist/esm/update-ad0b88fa.js +773 -0
- package/dist/esm/utils-0da093e1.js +142 -0
- package/dist/esm/utils-30c4c8ca.js +66 -0
- package/dist/esm/vi-cee99413.js +70 -0
- package/dist/esm/zh-cn-6e204128.js +94 -0
- package/dist/esm/zh-hk-ffb02673.js +92 -0
- package/dist/esm/zh-tw-0f52dd8c.js +92 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources.json +3 -10
- package/dist/solutions-components/assets/t9n/consent-manager/resources_en.json +3 -10
- package/dist/solutions-components/demos/consent-manager.html +56 -0
- package/dist/solutions-components/p-0094924f.entry.js +6 -0
- package/dist/solutions-components/p-00ea0ccc.entry.js +11 -0
- package/dist/solutions-components/p-018d1f95.entry.js +6 -0
- package/dist/solutions-components/p-025af0b3.entry.js +21 -0
- package/dist/solutions-components/p-0549a65c.js +6 -0
- package/dist/solutions-components/p-058d0542.js +17 -0
- package/dist/solutions-components/p-0668e30d.js +34 -0
- package/dist/solutions-components/p-066fc169.js +6 -0
- package/dist/solutions-components/p-067e36b2.entry.js +6 -0
- package/dist/solutions-components/p-0681b29b.entry.js +11 -0
- package/dist/solutions-components/p-0691d1af.entry.js +22 -0
- package/dist/solutions-components/p-088a5dca.js +67 -0
- package/dist/solutions-components/p-097b80df.js +6 -0
- package/dist/solutions-components/p-0a0902c4.entry.js +6 -0
- package/dist/solutions-components/p-0a71f549.entry.js +29 -0
- package/dist/solutions-components/p-0ac9cc4a.entry.js +21 -0
- package/dist/solutions-components/p-0b1fb6ae.js +36 -0
- package/dist/solutions-components/p-0d82ed7b.entry.js +11 -0
- package/dist/solutions-components/p-0e307601.entry.js +11 -0
- package/dist/solutions-components/p-0ece17fc.entry.js +6 -0
- package/dist/solutions-components/p-0f58bb3a.entry.js +11 -0
- package/dist/solutions-components/p-0f9f7528.entry.js +11 -0
- package/dist/solutions-components/p-135b2aba.js +16 -0
- package/dist/solutions-components/p-13bdb2c0.js +6 -0
- package/dist/solutions-components/p-14519a8a.entry.js +11 -0
- package/dist/solutions-components/p-1482f3cf.js +20 -0
- package/dist/solutions-components/p-1492bb6d.js +6 -0
- package/dist/solutions-components/p-1664573a.entry.js +6 -0
- package/dist/solutions-components/p-1900f9b1.js +11 -0
- package/dist/solutions-components/p-1984f2c7.entry.js +17 -0
- package/dist/solutions-components/p-1c1842b0.entry.js +6 -0
- package/dist/solutions-components/p-1f9d927b.entry.js +6 -0
- package/dist/solutions-components/p-1fb3756b.js +6 -0
- package/dist/solutions-components/p-208b5cc4.entry.js +6 -0
- package/dist/solutions-components/p-20cda8ef.entry.js +6 -0
- package/dist/solutions-components/p-2130a063.entry.js +17 -0
- package/dist/solutions-components/p-21f90019.js +21 -0
- package/dist/solutions-components/p-230f7315.entry.js +6 -0
- package/dist/solutions-components/p-24b42859.entry.js +47 -0
- package/dist/solutions-components/p-26f9f9c8.js +11 -0
- package/dist/solutions-components/p-270ca219.entry.js +6 -0
- package/dist/solutions-components/p-27a91364.entry.js +17 -0
- package/dist/solutions-components/p-28498868.entry.js +11 -0
- package/dist/solutions-components/p-2a5a5bfd.entry.js +11 -0
- package/dist/solutions-components/p-2ac553f6.js +6 -0
- package/dist/solutions-components/p-2b1e6acb.entry.js +6 -0
- package/dist/solutions-components/p-2bc98cb0.js +30 -0
- package/dist/solutions-components/p-2d96fdb9.js +6 -0
- package/dist/solutions-components/p-2dd8e49c.js +11 -0
- package/dist/solutions-components/p-30a16b7e.entry.js +11 -0
- package/dist/solutions-components/p-3212300b.entry.js +6 -0
- package/dist/solutions-components/p-35245316.entry.js +6 -0
- package/dist/solutions-components/p-3643a87a.entry.js +6 -0
- package/dist/solutions-components/p-3708cbdc.entry.js +6 -0
- package/dist/solutions-components/p-3828e77b.js +11 -0
- package/dist/solutions-components/p-38e0f88b.js +17 -0
- package/dist/solutions-components/p-3b3bfba5.entry.js +6 -0
- package/dist/solutions-components/p-3ba80c7c.js +6 -0
- package/dist/solutions-components/p-3d1f0434.js +21 -0
- package/dist/solutions-components/p-3ffc4738.js +6 -0
- package/dist/solutions-components/p-409401ce.js +11 -0
- package/dist/solutions-components/p-419df1ac.js +11 -0
- package/dist/solutions-components/p-46159285.js +6 -0
- package/dist/solutions-components/p-49a67314.entry.js +6 -0
- package/dist/solutions-components/p-4cbdea35.js +129 -0
- package/dist/solutions-components/p-4dfc2fc4.js +11 -0
- package/dist/solutions-components/p-4f236b5d.js +43 -0
- package/dist/solutions-components/p-4f50385f.js +16 -0
- package/dist/solutions-components/p-4fe489cf.js +6 -0
- package/dist/solutions-components/p-50239e15.entry.js +6 -0
- package/dist/solutions-components/p-531f66c7.entry.js +6 -0
- package/dist/solutions-components/p-570754a4.js +6 -0
- package/dist/solutions-components/p-570b13d9.js +67 -0
- package/dist/solutions-components/p-58d53a46.entry.js +6 -0
- package/dist/solutions-components/p-59970898.js +6 -0
- package/dist/solutions-components/p-59d02697.entry.js +11 -0
- package/dist/solutions-components/p-5b2ae6c4.js +6 -0
- package/dist/solutions-components/p-5b9783e6.entry.js +23 -0
- package/dist/solutions-components/p-5c5cbe3c.js +6 -0
- package/dist/solutions-components/p-5c692ed6.entry.js +11 -0
- package/dist/solutions-components/p-5cfa35f8.js +6 -0
- package/dist/solutions-components/p-5d581b7e.entry.js +6 -0
- package/dist/solutions-components/p-5df09fe4.js +31 -0
- package/dist/solutions-components/p-5ee359f1.entry.js +11 -0
- package/dist/solutions-components/p-5f099cd2.js +6 -0
- package/dist/solutions-components/p-60123545.js +6 -0
- package/dist/solutions-components/p-6148468f.js +11 -0
- package/dist/solutions-components/p-617d2160.js +6 -0
- package/dist/solutions-components/p-619a1ad0.js +6 -0
- package/dist/solutions-components/p-61d2582e.entry.js +6 -0
- package/dist/solutions-components/p-662cf7fa.entry.js +11 -0
- package/dist/solutions-components/p-6708060e.js +11 -0
- package/dist/solutions-components/p-676a2d60.entry.js +6 -0
- package/dist/solutions-components/p-68b5ec37.js +11 -0
- package/dist/solutions-components/p-68cf5134.entry.js +12 -0
- package/dist/solutions-components/p-694cfe4c.js +6 -0
- package/dist/solutions-components/p-6bcde3c4.js +6 -0
- package/dist/solutions-components/p-6c73f067.js +16 -0
- package/dist/solutions-components/p-6d56f75e.js +11 -0
- package/dist/solutions-components/p-6db88e16.entry.js +11 -0
- package/dist/solutions-components/p-6f93ec3e.entry.js +6 -0
- package/dist/solutions-components/p-7053b20e.entry.js +6 -0
- package/dist/solutions-components/p-741151d4.js +6 -0
- package/dist/solutions-components/p-749fe711.js +6 -0
- package/dist/solutions-components/p-7518e92a.js +6 -0
- package/dist/solutions-components/p-7802efa1.entry.js +11 -0
- package/dist/solutions-components/p-782c71a7.js +6 -0
- package/dist/solutions-components/p-78aa10b0.js +6 -0
- package/dist/solutions-components/p-7a8edc01.entry.js +11 -0
- package/dist/solutions-components/p-7a9e773b.js +6 -0
- package/dist/solutions-components/p-7aa5b402.entry.js +11 -0
- package/dist/solutions-components/p-7aafba66.js +11 -0
- package/dist/solutions-components/p-7d619b04.entry.js +11 -0
- package/dist/solutions-components/p-7dc37540.js +11 -0
- package/dist/solutions-components/p-7e3a6a0b.entry.js +11 -0
- package/dist/solutions-components/p-7fd55161.entry.js +6 -0
- package/dist/solutions-components/p-80168ff4.entry.js +11 -0
- package/dist/solutions-components/p-823684a3.js +6 -0
- package/dist/solutions-components/p-825ef4a7.js +6 -0
- package/dist/solutions-components/p-82d93164.js +11 -0
- package/dist/solutions-components/p-82f661c7.entry.js +11 -0
- package/dist/solutions-components/p-8378852e.js +6 -0
- package/dist/solutions-components/p-85bb5908.js +11 -0
- package/dist/solutions-components/p-866a2fad.js +11 -0
- package/dist/solutions-components/p-8744fe2a.entry.js +6 -0
- package/dist/solutions-components/p-8850bd21.js +21 -0
- package/dist/solutions-components/p-896a5fce.entry.js +11 -0
- package/dist/solutions-components/p-8df5939f.js +6 -0
- package/dist/solutions-components/p-8ec56f08.entry.js +11 -0
- package/dist/solutions-components/p-8ff2cba2.entry.js +11 -0
- package/dist/solutions-components/p-8ff4b2aa.js +488 -0
- package/dist/solutions-components/p-926e65eb.js +6 -0
- package/dist/solutions-components/p-94ad391c.js +40 -0
- package/dist/solutions-components/p-958c68c2.js +61 -0
- package/dist/solutions-components/p-95fcb607.js +6 -0
- package/dist/solutions-components/p-97df5300.js +27 -0
- package/dist/solutions-components/p-98079396.js +21 -0
- package/dist/solutions-components/p-98b1c057.entry.js +6 -0
- package/dist/solutions-components/p-9d4f62ca.js +6 -0
- package/dist/solutions-components/p-9d733373.entry.js +17 -0
- package/dist/solutions-components/p-9d9df87f.entry.js +6 -0
- package/dist/solutions-components/p-9e5d59aa.entry.js +11 -0
- package/dist/solutions-components/p-9f89901b.entry.js +6 -0
- package/dist/solutions-components/p-9fa8da35.entry.js +11 -0
- package/dist/solutions-components/p-a28502ac.entry.js +6 -0
- package/dist/solutions-components/p-a5df8093.entry.js +11 -0
- package/dist/solutions-components/p-a757bf75.js +16 -0
- package/dist/solutions-components/p-a7eded8f.entry.js +11 -0
- package/dist/solutions-components/p-a91fc014.entry.js +6 -0
- package/dist/solutions-components/p-aa6656f0.js +6 -0
- package/dist/solutions-components/p-abe60b81.entry.js +6 -0
- package/dist/solutions-components/p-ad66b010.entry.js +11 -0
- package/dist/solutions-components/p-adb57e25.entry.js +6 -0
- package/dist/solutions-components/p-add122e7.js +6 -0
- package/dist/solutions-components/p-ae357552.entry.js +11 -0
- package/dist/solutions-components/p-af4f2d4a.js +11 -0
- package/dist/solutions-components/p-b0d0022c.entry.js +11 -0
- package/dist/solutions-components/p-b14d2423.entry.js +11 -0
- package/dist/solutions-components/p-b1546c15.js +17 -0
- package/dist/solutions-components/p-b1c45ef8.entry.js +6 -0
- package/dist/solutions-components/p-b1f3c713.js +6 -0
- package/dist/solutions-components/p-b22046db.js +11 -0
- package/dist/solutions-components/p-b290affa.js +17 -0
- package/dist/solutions-components/p-b3b70f6b.entry.js +12 -0
- package/dist/solutions-components/p-b4a94ffe.entry.js +6 -0
- package/dist/solutions-components/p-b62871c3.entry.js +11 -0
- package/dist/solutions-components/p-b6a36bfe.js +6 -0
- package/dist/solutions-components/p-b915029b.js +6 -0
- package/dist/solutions-components/p-b98e9479.js +11 -0
- package/dist/solutions-components/p-b9bc3e7b.entry.js +17 -0
- package/dist/solutions-components/p-ba539e5a.entry.js +11 -0
- package/dist/solutions-components/p-bad614c0.entry.js +11 -0
- package/dist/solutions-components/p-bb158785.entry.js +11 -0
- package/dist/solutions-components/p-bc281e3b.js +6 -0
- package/dist/solutions-components/p-bc2b747e.js +6 -0
- package/dist/solutions-components/p-be78bc15.entry.js +6 -0
- package/dist/solutions-components/p-bf154e41.js +6 -0
- package/dist/solutions-components/p-c0f30138.entry.js +11 -0
- package/dist/solutions-components/p-c109e720.js +6 -0
- package/dist/solutions-components/p-c115215d.entry.js +6 -0
- package/dist/solutions-components/p-c433cc38.js +6 -0
- package/dist/solutions-components/p-c43fdf49.entry.js +16 -0
- package/dist/solutions-components/p-c5e0e5ef.js +6 -0
- package/dist/solutions-components/p-c766823c.entry.js +11 -0
- package/dist/solutions-components/p-c8a2c326.entry.js +29 -0
- package/dist/solutions-components/p-c8b26c56.js +6 -0
- package/dist/solutions-components/p-c900e9e8.entry.js +17 -0
- package/dist/solutions-components/p-c9dae6fb.entry.js +6 -0
- package/dist/solutions-components/p-cbf0769a.entry.js +11 -0
- package/dist/solutions-components/p-cc7d784e.entry.js +6 -0
- package/dist/solutions-components/p-ce8a69ef.entry.js +11 -0
- package/dist/solutions-components/p-cea51591.js +16 -0
- package/dist/solutions-components/p-d0b1d33f.js +6 -0
- package/dist/solutions-components/p-d0b36f2e.entry.js +6 -0
- package/dist/solutions-components/p-d2a6e970.js +6 -0
- package/dist/solutions-components/p-d2dc7d65.entry.js +11 -0
- package/dist/solutions-components/p-d60dc1f1.entry.js +11 -0
- package/dist/solutions-components/p-d654b676.entry.js +11 -0
- package/dist/solutions-components/p-d65f8b73.js +6 -0
- package/dist/solutions-components/p-d82ee2f9.entry.js +6 -0
- package/dist/solutions-components/p-d96fe526.entry.js +22 -0
- package/dist/solutions-components/p-da0cb140.entry.js +11 -0
- package/dist/solutions-components/p-da36faca.entry.js +6 -0
- package/dist/solutions-components/p-daf6a012.entry.js +6 -0
- package/dist/solutions-components/p-dba4704c.js +11 -0
- package/dist/solutions-components/p-dd16d94e.js +6 -0
- package/dist/solutions-components/p-dd689226.js +11 -0
- package/dist/solutions-components/p-dd6a34c6.entry.js +17 -0
- package/dist/solutions-components/p-df4bfe45.js +6 -0
- package/dist/solutions-components/p-dfe18931.js +6 -0
- package/dist/solutions-components/p-e2570a80.js +11 -0
- package/dist/solutions-components/p-ea9e0a79.js +6 -0
- package/dist/solutions-components/p-eb88fddc.js +6 -0
- package/dist/solutions-components/p-ed4fb4a1.entry.js +6 -0
- package/dist/solutions-components/p-ef0c43dc.js +6 -0
- package/dist/solutions-components/p-f05bbd82.entry.js +11 -0
- package/dist/solutions-components/p-f0ceb675.entry.js +11 -0
- package/dist/solutions-components/p-f1f356f0.js +7 -0
- package/dist/solutions-components/p-f46f7da7.entry.js +12 -0
- package/dist/solutions-components/p-f6e3d19a.entry.js +11 -0
- package/dist/solutions-components/p-f6e81cf8.js +22 -0
- package/dist/solutions-components/p-f7085e9e.entry.js +17 -0
- package/dist/solutions-components/p-f8ea8e73.js +6 -0
- package/dist/solutions-components/p-fb6ca6dd.entry.js +11 -0
- package/dist/solutions-components/p-fdaf1290.entry.js +11 -0
- package/dist/solutions-components/p-fe719f16.entry.js +6 -0
- package/dist/solutions-components/p-feebdac9.entry.js +17 -0
- package/dist/solutions-components/p-ff15447c.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +14 -0
- package/dist/types/components/consent-manager/consent-manager.d.ts +23 -20
- package/dist/types/components/delete-button/delete-button.d.ts +1 -1
- package/dist/types/components/edit-card/edit-card.d.ts +4 -0
- package/dist/types/components/layer-table/layer-table.d.ts +55 -7
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +18 -2
- package/dist/types/components/map-picker/map-picker.d.ts +10 -2
- package/dist/types/components.d.ts +67 -34
- package/dist/types/preact.d.ts +6 -7
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/utils/interfaces.d.ts +12 -0
- package/package.json +13 -13
- package/dist/cjs/ExpandToggle-c5e409ce.js +0 -115
- package/dist/cjs/FloatingArrow-c2b50d47.js +0 -48
- package/dist/cjs/Heading-3e2d46fd.js +0 -25
- package/dist/cjs/Validation-c065b988.js +0 -20
- package/dist/cjs/app-globals-09eb9eb5.js +0 -67
- package/dist/cjs/ar-0afb390b.js +0 -106
- package/dist/cjs/arcgis-login.cjs.entry.js +0 -61
- package/dist/cjs/bg-b1be4ef3.js +0 -84
- package/dist/cjs/browser-0bedacf5.js +0 -35
- package/dist/cjs/bs-a314390f.js +0 -53
- package/dist/cjs/ca-b8e89e47.js +0 -73
- package/dist/cjs/calcite-alert_6.cjs.entry.js +0 -2105
- package/dist/cjs/calcite-input-time-picker-42ed419f.js +0 -1870
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -393
- package/dist/cjs/common-eee0c33f.js +0 -38
- package/dist/cjs/conditionalSlot-003e6975.js +0 -54
- package/dist/cjs/config-2282fdac.js +0 -40
- package/dist/cjs/constants-bed33322.js +0 -860
- package/dist/cjs/cs-f14626e8.js +0 -149
- package/dist/cjs/da-2fce32d4.js +0 -69
- package/dist/cjs/date-e763caec.js +0 -264
- package/dist/cjs/de-2c1fce6f.js +0 -93
- package/dist/cjs/de-at-94de293d.js +0 -92
- package/dist/cjs/de-ch-d42f4faf.js +0 -92
- package/dist/cjs/delete-dialog.cjs.entry.js +0 -131
- package/dist/cjs/downloadUtils-76bc7e30.js +0 -3240
- package/dist/cjs/el-8092eeb9.js +0 -68
- package/dist/cjs/en-au-9bc4467f.js +0 -68
- package/dist/cjs/en-ca-d9140239.js +0 -67
- package/dist/cjs/en-gb-f5e2af8e.js +0 -71
- package/dist/cjs/es-4b6327d7.js +0 -68
- package/dist/cjs/es-mx-f729412a.js +0 -67
- package/dist/cjs/et-ec115eb3.js +0 -94
- package/dist/cjs/fi-95701850.js +0 -117
- package/dist/cjs/floating-ui-a8693586.js +0 -2413
- package/dist/cjs/focusTrapComponent-48fdd3f6.js +0 -1013
- package/dist/cjs/form-a36bd0e5.js +0 -381
- package/dist/cjs/fr-ch-a231f229.js +0 -68
- package/dist/cjs/fr-e22a2684.js +0 -70
- package/dist/cjs/he-d0070eb9.js +0 -107
- package/dist/cjs/helpers-0493759d.js +0 -940
- package/dist/cjs/hi-04615e27.js +0 -67
- package/dist/cjs/hr-27fefb6d.js +0 -82
- package/dist/cjs/hu-63da9819.js +0 -90
- package/dist/cjs/id-d4fe65cd.js +0 -68
- package/dist/cjs/index-2b13a4d5.js +0 -201
- package/dist/cjs/index-4b68e4b4.js +0 -1770
- package/dist/cjs/index-f052f656.js +0 -2156
- package/dist/cjs/index.es-8336efed.js +0 -11307
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +0 -590
- package/dist/cjs/interactive-7ccdd728.js +0 -85
- package/dist/cjs/it-418a53bf.js +0 -68
- package/dist/cjs/it-ch-7f4632ab.js +0 -68
- package/dist/cjs/ja-6c5d5c7d.js +0 -74
- package/dist/cjs/ko-e4154b91.js +0 -74
- package/dist/cjs/loadable-f3fe73a2.js +0 -98
- package/dist/cjs/locale-339b55f0.js +0 -160
- package/dist/cjs/locale-4b820602.js +0 -120
- package/dist/cjs/locale-7eb2f603.js +0 -605
- package/dist/cjs/logger-912d7f26.js +0 -61
- package/dist/cjs/lt-d6dae6fd.js +0 -99
- package/dist/cjs/lv-bcf9724a.js +0 -68
- package/dist/cjs/mk-171505d2.js +0 -68
- package/dist/cjs/nb-0dcee19c.js +0 -69
- package/dist/cjs/nl-dace5864.js +0 -69
- package/dist/cjs/observers-affd684f.js +0 -58
- package/dist/cjs/openCloseComponent-044883e4.js +0 -65
- package/dist/cjs/pl-7755a609.js +0 -116
- package/dist/cjs/popupUtils-bc762034.js +0 -121
- package/dist/cjs/pt-3121cc39.js +0 -69
- package/dist/cjs/pt-br-67b16e3a.js +0 -67
- package/dist/cjs/publicNotificationStore-570204c1.js +0 -47
- package/dist/cjs/restHelpersGet-5c2245a3.js +0 -991
- package/dist/cjs/ro-7f726306.js +0 -68
- package/dist/cjs/ru-fc11963d.js +0 -128
- package/dist/cjs/share-item.cjs.entry.js +0 -61
- package/dist/cjs/shared-list-render-3d6ec3ca.js +0 -361
- package/dist/cjs/sk-e85b9c15.js +0 -150
- package/dist/cjs/sl-9eb375c2.js +0 -170
- package/dist/cjs/solution-resource-40e70253.js +0 -145
- package/dist/cjs/solution-store-4de89072.js +0 -1354
- package/dist/cjs/sr-1d2513be.js +0 -103
- package/dist/cjs/sv-f7693c9f.js +0 -73
- package/dist/cjs/t9n-64df74f3.js +0 -108
- package/dist/cjs/templates-0b7f886f.js +0 -408
- package/dist/cjs/th-0d2328bb.js +0 -67
- package/dist/cjs/time-513586eb.js +0 -301
- package/dist/cjs/tr-2c074411.js +0 -68
- package/dist/cjs/uk-5e16db67.js +0 -106
- package/dist/cjs/utils-3f10ea6b.js +0 -153
- package/dist/cjs/utils-d0049d76.js +0 -79
- package/dist/cjs/vi-2a4d8334.js +0 -72
- package/dist/cjs/zh-cn-126bcbc0.js +0 -96
- package/dist/cjs/zh-hk-aeeba861.js +0 -94
- package/dist/cjs/zh-tw-0cfb6e20.js +0 -94
- package/dist/collection/components/arcgis-login/arcgis-login.css +0 -19
- package/dist/collection/components/arcgis-login/arcgis-login.js +0 -80
- package/dist/collection/components/share-item/share-item.css +0 -19
- package/dist/collection/components/share-item/share-item.js +0 -80
- package/dist/components/arcgis-login.d.ts +0 -11
- package/dist/components/arcgis-login.js +0 -76
- package/dist/components/share-item.d.ts +0 -11
- package/dist/components/share-item.js +0 -76
- package/dist/esm/ExpandToggle-d2cde0b5.js +0 -108
- package/dist/esm/FloatingArrow-1ba04e83.js +0 -46
- package/dist/esm/Heading-82d9e017.js +0 -22
- package/dist/esm/Validation-594a63f5.js +0 -18
- package/dist/esm/app-globals-177bd1cd.js +0 -65
- package/dist/esm/ar-a85b5d05.js +0 -104
- package/dist/esm/arcgis-login.entry.js +0 -57
- package/dist/esm/bg-def28c6d.js +0 -82
- package/dist/esm/browser-e3f463e1.js +0 -32
- package/dist/esm/bs-86bb2bcb.js +0 -51
- package/dist/esm/ca-823e6ba8.js +0 -71
- package/dist/esm/calcite-alert_6.entry.js +0 -2096
- package/dist/esm/calcite-input-time-picker-c45e1964.js +0 -1867
- package/dist/esm/calcite-modal.entry.js +0 -389
- package/dist/esm/common-c3bbba83.js +0 -36
- package/dist/esm/conditionalSlot-720a3c33.js +0 -51
- package/dist/esm/config-3af0e436.js +0 -36
- package/dist/esm/constants-637a40f5.js +0 -856
- package/dist/esm/cs-87414fd8.js +0 -147
- package/dist/esm/da-f7060594.js +0 -67
- package/dist/esm/date-8f6c3f50.js +0 -248
- package/dist/esm/de-18aa2195.js +0 -91
- package/dist/esm/de-at-00f0ce55.js +0 -90
- package/dist/esm/de-ch-2bf886c0.js +0 -90
- package/dist/esm/delete-dialog.entry.js +0 -127
- package/dist/esm/dom-6f6759df.js +0 -1165
- package/dist/esm/downloadUtils-bc7a4ba1.js +0 -3233
- package/dist/esm/el-0c5df4ce.js +0 -66
- package/dist/esm/en-au-947d067e.js +0 -66
- package/dist/esm/en-ca-d80eb647.js +0 -65
- package/dist/esm/en-gb-78272f13.js +0 -69
- package/dist/esm/es-6b8b399b.js +0 -66
- package/dist/esm/es-mx-4f12df51.js +0 -65
- package/dist/esm/et-11aeba76.js +0 -92
- package/dist/esm/fi-c44d11d6.js +0 -115
- package/dist/esm/floating-ui-d21020a0.js +0 -2404
- package/dist/esm/focusTrapComponent-1ddc67c5.js +0 -1008
- package/dist/esm/form-e9b1ad9a.js +0 -372
- package/dist/esm/fr-cac28d20.js +0 -68
- package/dist/esm/fr-ch-a324bd02.js +0 -66
- package/dist/esm/he-eab95e66.js +0 -105
- package/dist/esm/helpers-91ca0f44.js +0 -913
- package/dist/esm/hi-cefe2a7e.js +0 -65
- package/dist/esm/hr-f863024d.js +0 -80
- package/dist/esm/hu-2921d1d5.js +0 -88
- package/dist/esm/id-4e25c1e7.js +0 -66
- package/dist/esm/index-39bc2e6d.js +0 -199
- package/dist/esm/index-904bc599.js +0 -1736
- package/dist/esm/index-e14fade9.js +0 -2154
- package/dist/esm/index.es-0d189a34.js +0 -11220
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +0 -584
- package/dist/esm/interactive-949b348f.js +0 -82
- package/dist/esm/it-1f2ce2fc.js +0 -66
- package/dist/esm/it-ch-fa4f6a28.js +0 -66
- package/dist/esm/ja-dd6ac9b5.js +0 -72
- package/dist/esm/ko-3c269b4f.js +0 -72
- package/dist/esm/label-1ef4763d.js +0 -179
- package/dist/esm/loadable-421e634e.js +0 -93
- package/dist/esm/locale-0d06fca0.js +0 -155
- package/dist/esm/locale-77038bee.js +0 -115
- package/dist/esm/locale-a75d14ff.js +0 -591
- package/dist/esm/logger-5c7a2fec.js +0 -59
- package/dist/esm/lt-8f5fd3eb.js +0 -97
- package/dist/esm/lv-d1afc7ed.js +0 -66
- package/dist/esm/mk-794650fc.js +0 -66
- package/dist/esm/nb-800989aa.js +0 -67
- package/dist/esm/nl-634b9b85.js +0 -67
- package/dist/esm/observers-2d4fa9e3.js +0 -56
- package/dist/esm/openCloseComponent-4621d4ae.js +0 -63
- package/dist/esm/pl-45fb968c.js +0 -114
- package/dist/esm/popupUtils-03dc398a.js +0 -119
- package/dist/esm/pt-bd7887a6.js +0 -67
- package/dist/esm/pt-br-d9181dce.js +0 -65
- package/dist/esm/publicNotificationStore-8f6b0f93.js +0 -45
- package/dist/esm/restHelpersGet-48113381.js +0 -976
- package/dist/esm/ro-31fe0dcc.js +0 -66
- package/dist/esm/ru-e73bc075.js +0 -126
- package/dist/esm/share-item.entry.js +0 -57
- package/dist/esm/shared-list-render-83bb7274.js +0 -339
- package/dist/esm/sk-e7e24146.js +0 -148
- package/dist/esm/sl-ad96d047.js +0 -168
- package/dist/esm/solution-resource-f5809979.js +0 -142
- package/dist/esm/solution-store-ff13861b.js +0 -1352
- package/dist/esm/sr-785166a3.js +0 -101
- package/dist/esm/sv-9f422817.js +0 -71
- package/dist/esm/t9n-23649a4a.js +0 -103
- package/dist/esm/templates-0b442208.js +0 -402
- package/dist/esm/th-7e8b3dad.js +0 -65
- package/dist/esm/time-5ca488ba.js +0 -286
- package/dist/esm/tr-1b1dd6db.js +0 -66
- package/dist/esm/uk-13d0afbf.js +0 -104
- package/dist/esm/utils-0a78d3c9.js +0 -142
- package/dist/esm/utils-a564ca55.js +0 -66
- package/dist/esm/vi-82ec876c.js +0 -70
- package/dist/esm/zh-cn-c4181895.js +0 -94
- package/dist/esm/zh-hk-752cc263.js +0 -92
- package/dist/esm/zh-tw-e653ba6c.js +0 -92
- package/dist/solutions-components/p-053effee.entry.js +0 -6
- package/dist/solutions-components/p-05ae2b11.entry.js +0 -6
- package/dist/solutions-components/p-087c3740.entry.js +0 -6
- package/dist/solutions-components/p-08c18450.js +0 -11
- package/dist/solutions-components/p-09543b4e.js +0 -6
- package/dist/solutions-components/p-09d34b2b.entry.js +0 -11
- package/dist/solutions-components/p-0af967af.js +0 -6
- package/dist/solutions-components/p-0f8241d2.entry.js +0 -6
- package/dist/solutions-components/p-10a158fd.entry.js +0 -11
- package/dist/solutions-components/p-115af8e4.entry.js +0 -11
- package/dist/solutions-components/p-11c2426d.entry.js +0 -20
- package/dist/solutions-components/p-1336a071.entry.js +0 -6
- package/dist/solutions-components/p-1588fad8.entry.js +0 -6
- package/dist/solutions-components/p-177b4cbc.js +0 -16
- package/dist/solutions-components/p-184b270d.entry.js +0 -11
- package/dist/solutions-components/p-191f30e1.entry.js +0 -11
- package/dist/solutions-components/p-19e89591.entry.js +0 -12
- package/dist/solutions-components/p-1afc5947.entry.js +0 -11
- package/dist/solutions-components/p-1b1ff60a.entry.js +0 -6
- package/dist/solutions-components/p-1e8af7ed.js +0 -6
- package/dist/solutions-components/p-1f65aed7.js +0 -6
- package/dist/solutions-components/p-1fafdc23.entry.js +0 -11
- package/dist/solutions-components/p-20ed3f7f.entry.js +0 -11
- package/dist/solutions-components/p-2105e658.entry.js +0 -6
- package/dist/solutions-components/p-25f30972.entry.js +0 -11
- package/dist/solutions-components/p-26ba0cc7.js +0 -17
- package/dist/solutions-components/p-2714a658.entry.js +0 -6
- package/dist/solutions-components/p-2714ede8.entry.js +0 -16
- package/dist/solutions-components/p-274aa753.entry.js +0 -6
- package/dist/solutions-components/p-294cd25c.js +0 -6
- package/dist/solutions-components/p-2b9f9f7d.js +0 -16
- package/dist/solutions-components/p-2d9072d8.entry.js +0 -11
- package/dist/solutions-components/p-2e0aea4e.entry.js +0 -11
- package/dist/solutions-components/p-2e42f34c.js +0 -6
- package/dist/solutions-components/p-2f1ef41d.entry.js +0 -6
- package/dist/solutions-components/p-2f784608.entry.js +0 -6
- package/dist/solutions-components/p-351c7cbf.entry.js +0 -6
- package/dist/solutions-components/p-368902f1.entry.js +0 -6
- package/dist/solutions-components/p-39e21b70.js +0 -6
- package/dist/solutions-components/p-3aee989b.js +0 -11
- package/dist/solutions-components/p-3af39767.entry.js +0 -6
- package/dist/solutions-components/p-3ba388b6.entry.js +0 -17
- package/dist/solutions-components/p-3d999f0f.entry.js +0 -6
- package/dist/solutions-components/p-3e44cfab.entry.js +0 -6
- package/dist/solutions-components/p-3e87c19c.js +0 -6
- package/dist/solutions-components/p-3f9ec755.js +0 -6
- package/dist/solutions-components/p-3fe6c230.entry.js +0 -6
- package/dist/solutions-components/p-41503b16.entry.js +0 -6
- package/dist/solutions-components/p-4416d650.entry.js +0 -17
- package/dist/solutions-components/p-443be7fe.js +0 -6
- package/dist/solutions-components/p-44dc3dec.entry.js +0 -6
- package/dist/solutions-components/p-4695cfab.js +0 -6
- package/dist/solutions-components/p-499489c5.entry.js +0 -6
- package/dist/solutions-components/p-49df6eb3.entry.js +0 -11
- package/dist/solutions-components/p-4a665563.js +0 -6
- package/dist/solutions-components/p-4b15f4a4.entry.js +0 -11
- package/dist/solutions-components/p-4b47caf1.entry.js +0 -11
- package/dist/solutions-components/p-4d6e359e.entry.js +0 -11
- package/dist/solutions-components/p-4e3a18b1.js +0 -6
- package/dist/solutions-components/p-4e6eb06e.js +0 -7
- package/dist/solutions-components/p-4ff35ed4.js +0 -6
- package/dist/solutions-components/p-5104cc98.js +0 -6
- package/dist/solutions-components/p-51c6e6fe.js +0 -21
- package/dist/solutions-components/p-545a48dc.entry.js +0 -11
- package/dist/solutions-components/p-55bbfdbc.entry.js +0 -6
- package/dist/solutions-components/p-5804e6e1.entry.js +0 -22
- package/dist/solutions-components/p-58cff07f.entry.js +0 -11
- package/dist/solutions-components/p-592ab45c.js +0 -6
- package/dist/solutions-components/p-592f2000.entry.js +0 -6
- package/dist/solutions-components/p-5b5b78c0.js +0 -6
- package/dist/solutions-components/p-5e71e72a.js +0 -21
- package/dist/solutions-components/p-614a66c4.entry.js +0 -11
- package/dist/solutions-components/p-6166d8b4.js +0 -16
- package/dist/solutions-components/p-61cc2efe.js +0 -6
- package/dist/solutions-components/p-62c10928.entry.js +0 -6
- package/dist/solutions-components/p-63d334b2.entry.js +0 -6
- package/dist/solutions-components/p-677db47a.js +0 -6
- package/dist/solutions-components/p-68375137.js +0 -6
- package/dist/solutions-components/p-6a3f2249.entry.js +0 -6
- package/dist/solutions-components/p-6acd19c5.entry.js +0 -12
- package/dist/solutions-components/p-6b5b52c1.entry.js +0 -21
- package/dist/solutions-components/p-6cad2a22.js +0 -6
- package/dist/solutions-components/p-6f606cdb.js +0 -61
- package/dist/solutions-components/p-7059fc40.js +0 -6
- package/dist/solutions-components/p-70eba636.entry.js +0 -6
- package/dist/solutions-components/p-71f31d39.js +0 -6
- package/dist/solutions-components/p-74720d2b.js +0 -6
- package/dist/solutions-components/p-7530a02f.js +0 -30
- package/dist/solutions-components/p-764ff506.entry.js +0 -11
- package/dist/solutions-components/p-76a1236d.entry.js +0 -6
- package/dist/solutions-components/p-770a5a64.js +0 -11
- package/dist/solutions-components/p-77865541.entry.js +0 -11
- package/dist/solutions-components/p-78b6d3fe.entry.js +0 -6
- package/dist/solutions-components/p-78df7603.entry.js +0 -11
- package/dist/solutions-components/p-78e09c03.js +0 -6
- package/dist/solutions-components/p-7a7951bd.entry.js +0 -11
- package/dist/solutions-components/p-7bcfe068.entry.js +0 -6
- package/dist/solutions-components/p-7cc8e95a.js +0 -11
- package/dist/solutions-components/p-7d5d1b0a.js +0 -11
- package/dist/solutions-components/p-7eee9aa8.js +0 -11
- package/dist/solutions-components/p-7f68e6a4.js +0 -11
- package/dist/solutions-components/p-7fb51464.entry.js +0 -17
- package/dist/solutions-components/p-80ff858b.js +0 -6
- package/dist/solutions-components/p-8304ce4b.js +0 -17
- package/dist/solutions-components/p-85c068fd.js +0 -6
- package/dist/solutions-components/p-85c3237c.js +0 -11
- package/dist/solutions-components/p-860099d5.js +0 -6
- package/dist/solutions-components/p-86a5caf8.js +0 -6
- package/dist/solutions-components/p-86db882f.js +0 -6
- package/dist/solutions-components/p-872986ce.entry.js +0 -11
- package/dist/solutions-components/p-8a2ccb1e.js +0 -6
- package/dist/solutions-components/p-8cb9ecf6.js +0 -6
- package/dist/solutions-components/p-8d811472.js +0 -6
- package/dist/solutions-components/p-8dc9d5b6.entry.js +0 -6
- package/dist/solutions-components/p-8f8c7045.entry.js +0 -6
- package/dist/solutions-components/p-8ff43000.entry.js +0 -11
- package/dist/solutions-components/p-91a83986.entry.js +0 -47
- package/dist/solutions-components/p-928f0b5e.entry.js +0 -6
- package/dist/solutions-components/p-93d03bf0.js +0 -11
- package/dist/solutions-components/p-94e51621.entry.js +0 -6
- package/dist/solutions-components/p-977c099e.js +0 -11
- package/dist/solutions-components/p-9bb44f57.js +0 -65
- package/dist/solutions-components/p-9c25ee2c.entry.js +0 -6
- package/dist/solutions-components/p-9c5d5171.js +0 -11
- package/dist/solutions-components/p-9ce8e34f.js +0 -11
- package/dist/solutions-components/p-9d86dd68.js +0 -6
- package/dist/solutions-components/p-9d9e0e74.entry.js +0 -6
- package/dist/solutions-components/p-9e8d7c1d.entry.js +0 -17
- package/dist/solutions-components/p-9e996faa.js +0 -6
- package/dist/solutions-components/p-a1473254.entry.js +0 -11
- package/dist/solutions-components/p-a1ed15b8.entry.js +0 -11
- package/dist/solutions-components/p-a329f05c.entry.js +0 -6
- package/dist/solutions-components/p-a52fa87b.entry.js +0 -11
- package/dist/solutions-components/p-a5f6a4b9.entry.js +0 -23
- package/dist/solutions-components/p-a6790373.entry.js +0 -11
- package/dist/solutions-components/p-a693aa25.entry.js +0 -17
- package/dist/solutions-components/p-a7d249d9.js +0 -6
- package/dist/solutions-components/p-a7d4b1a4.js +0 -6
- package/dist/solutions-components/p-ac9c4111.entry.js +0 -12
- package/dist/solutions-components/p-acc4d847.entry.js +0 -11
- package/dist/solutions-components/p-adabe68e.entry.js +0 -6
- package/dist/solutions-components/p-ae5ea416.entry.js +0 -6
- package/dist/solutions-components/p-b138a65e.js +0 -11
- package/dist/solutions-components/p-b49e1a78.js +0 -6
- package/dist/solutions-components/p-b5a5da41.entry.js +0 -17
- package/dist/solutions-components/p-b6d50640.entry.js +0 -6
- package/dist/solutions-components/p-b8d1b57a.entry.js +0 -6
- package/dist/solutions-components/p-b90978d2.js +0 -6
- package/dist/solutions-components/p-b95968fa.entry.js +0 -6
- package/dist/solutions-components/p-bab47a85.entry.js +0 -29
- package/dist/solutions-components/p-bd35725f.js +0 -6
- package/dist/solutions-components/p-be6cd650.entry.js +0 -11
- package/dist/solutions-components/p-c0ceb17a.js +0 -6
- package/dist/solutions-components/p-c2ceb29c.js +0 -6
- package/dist/solutions-components/p-c350eacb.js +0 -143
- package/dist/solutions-components/p-c399f2b8.entry.js +0 -6
- package/dist/solutions-components/p-c604728b.js +0 -6
- package/dist/solutions-components/p-c63451e1.entry.js +0 -11
- package/dist/solutions-components/p-c7f86f73.entry.js +0 -6
- package/dist/solutions-components/p-c8e22575.entry.js +0 -22
- package/dist/solutions-components/p-c9422007.js +0 -6
- package/dist/solutions-components/p-c9715704.entry.js +0 -11
- package/dist/solutions-components/p-cb8d90d1.js +0 -11
- package/dist/solutions-components/p-cc6f6e41.entry.js +0 -17
- package/dist/solutions-components/p-cd482a33.js +0 -21
- package/dist/solutions-components/p-cdc63710.entry.js +0 -11
- package/dist/solutions-components/p-ce7b0b1a.entry.js +0 -11
- package/dist/solutions-components/p-cf2947f6.entry.js +0 -11
- package/dist/solutions-components/p-d02fb95c.entry.js +0 -17
- package/dist/solutions-components/p-d031cf50.entry.js +0 -11
- package/dist/solutions-components/p-d0d020a5.js +0 -37
- package/dist/solutions-components/p-d0ebd10d.js +0 -6
- package/dist/solutions-components/p-d154b5a1.entry.js +0 -11
- package/dist/solutions-components/p-d1b2484b.entry.js +0 -17
- package/dist/solutions-components/p-d2c2a105.entry.js +0 -11
- package/dist/solutions-components/p-d2f8d8a8.entry.js +0 -6
- package/dist/solutions-components/p-d37a68f7.entry.js +0 -6
- package/dist/solutions-components/p-d390df76.entry.js +0 -11
- package/dist/solutions-components/p-d3e1cc81.js +0 -6
- package/dist/solutions-components/p-d851b11e.js +0 -6
- package/dist/solutions-components/p-d9d25da8.entry.js +0 -11
- package/dist/solutions-components/p-d9e9fe80.js +0 -16
- package/dist/solutions-components/p-d9f3778e.js +0 -6
- package/dist/solutions-components/p-daae2ae7.js +0 -6
- package/dist/solutions-components/p-db7d5db8.entry.js +0 -6
- package/dist/solutions-components/p-dc9d4be3.js +0 -6
- package/dist/solutions-components/p-ddb37cba.entry.js +0 -11
- package/dist/solutions-components/p-df062602.entry.js +0 -11
- package/dist/solutions-components/p-e29e57db.entry.js +0 -6
- package/dist/solutions-components/p-e2fd2e29.js +0 -6
- package/dist/solutions-components/p-e3111b70.js +0 -6
- package/dist/solutions-components/p-e37e117f.js +0 -11
- package/dist/solutions-components/p-e4be63b6.entry.js +0 -11
- package/dist/solutions-components/p-e4e7add2.js +0 -11
- package/dist/solutions-components/p-e625aa69.entry.js +0 -6
- package/dist/solutions-components/p-e93a531c.entry.js +0 -11
- package/dist/solutions-components/p-e9a0d2f3.entry.js +0 -6
- package/dist/solutions-components/p-e9d3365f.js +0 -22
- package/dist/solutions-components/p-e9fcc194.entry.js +0 -6
- package/dist/solutions-components/p-ee487e75.entry.js +0 -11
- package/dist/solutions-components/p-ef773a13.js +0 -11
- package/dist/solutions-components/p-f09744aa.entry.js +0 -6
- package/dist/solutions-components/p-f3119757.entry.js +0 -11
- package/dist/solutions-components/p-f4aadb3b.js +0 -36
- package/dist/solutions-components/p-f5789e08.entry.js +0 -29
- package/dist/solutions-components/p-f57978f3.entry.js +0 -6
- package/dist/solutions-components/p-f6cc1cf8.entry.js +0 -17
- package/dist/solutions-components/p-f845da58.js +0 -6
- package/dist/solutions-components/p-fbf63d14.entry.js +0 -6
- package/dist/solutions-components/p-fc7c88c8.js +0 -6
- package/dist/solutions-components/p-fd019d15.js +0 -11
- package/dist/solutions-components/p-fd40d066.js +0 -6
- package/dist/solutions-components/p-febf9f75.entry.js +0 -11
- package/dist/solutions-components/p-ff9e28d1.js +0 -488
- package/dist/types/components/arcgis-login/arcgis-login.d.ts +0 -19
- package/dist/types/components/share-item/share-item.d.ts +0 -19
@@ -0,0 +1,2012 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { r as r$6, t as t$7, n as n$c, l as l$3, j as j$2, e as r$7, f as a$3, h as t$8, i as e$a, k as b$3, m as L$1, u as u$3, o as b$4, p as m$4, q as e$b, v as m$5, w as l$4, x as r$8, y as e$c, z as w$2, N as N$1, A as a$4, B as a$5, C as v$3, D as t$9, E as w$3, F as o$7, P, G as l$5, _, H as n$d, I as k$1, J as s$9, K as f$4, M as f$5, O as u$4, Q as t$a, R as g$3, S as h$6, T as n$e, U as o$8, V as f$6, W as I, X as l$6, s as s$a, Y as c$7, Z as F, $ as x$3, a0 as U$1, a1 as A$4, a2 as et, a3 as v$4, a4 as a$6, a5 as r$9, a6 as s$b, a7 as K, a8 as T, a9 as Et, aa as i$7, ab as n$f } from './locale-be7fd298.js';
|
7
|
+
import { S as Sanitizer } from './index-d88c3eb6.js';
|
8
|
+
import { B as BUILD, N as NAMESPACE } from './index-d233c7a2.js';
|
9
|
+
|
10
|
+
/*
|
11
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
12
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
13
|
+
*/
|
14
|
+
const i$6=()=>n$c.getLogger("esri.intl.substitute");function s$8(t,r,n={}){const{format:o={}}=n;return r$6(t,(t=>u$2(t,r,o)))}function u$2(t,e,n){let o,i;const s=t.indexOf(":");if(-1===s?o=t.trim():(o=t.slice(0,s).trim(),i=t.slice(s+1).trim()),!o)return "";const u=t$7(o,e);if(null==u)return "";const m=(i?n?.[i]:null)??n?.[o];return m?c$6(u,m):i?a$2(u,i):f$3(u)}function c$6(t,r){switch(r.type){case"date":return j$2(t,r.intlOptions);case"number":return l$3(t,r.intlOptions);default:return i$6().warn("missing format descriptor for key {key}"),f$3(t)}}function a$2(t,r){switch(r.toLowerCase()){case"dateformat":return j$2(t);case"numberformat":return l$3(t);default:return i$6().warn(`inline format is unsupported since 4.12: ${r}`),/^(dateformat|datestring)/i.test(r)?j$2(t):/^numberformat/i.test(r)?l$3(t):f$3(t)}}function f$3(t){switch(typeof t){case"string":return t;case"number":return l$3(t);case"boolean":return ""+t;default:return t instanceof Date?j$2(t):""}}
|
15
|
+
|
16
|
+
/*
|
17
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
18
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
19
|
+
*/
|
20
|
+
class i$5{constructor(){this._emitter=new i$5.EventEmitter(this);}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(o){class c{constructor(e=null){this._target=e,this._listenersMap=null;}clear(){this._listenersMap?.clear(),this._listenersMap=null;}destroy(){this.clear();}emit(e,t){let r=this._listenersMap?.get(e);if(!r)return !1;const s=this._target||this;let n=!1;for(const i of r.slice()){const e="deref"in i?i.deref():i;e?e?.call(s,t):n=!0;}return n&&(r=r.filter((e=>!("deref"in e)||null!=e.deref())),this._listenersMap.set(e,r)),r.length>0}on(e,t){if(Array.isArray(e)){const s=e.map((e=>this.on(e,t)));return t$8(s)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),e$a((()=>{const r=this._listenersMap?.get(e),s=r?.indexOf(t)??-1;s>=0&&r.splice(s,1);}))}once(e,t){const r=this.on(e,(e=>{r.remove();const s="deref"in t?t.deref():t;s?.call(null,e);}));return r}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}o.EventEmitter=c,o.EventedMixin=t=>{let r=class extends t{constructor(){super(...arguments),this._emitter=new c;}destroy(){this._emitter.clear();}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=r$7([a$3("esri.core.Evented")],r),r};let l=class extends b$3{constructor(){super(...arguments),this._emitter=new i$5.EventEmitter(this);}destroy(){this._emitter.clear();}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};l=r$7([a$3("esri.core.Evented.EventedAccessor")],l),o.EventedAccessor=l;}(i$5||(i$5={}));const o$6=i$5;
|
21
|
+
|
22
|
+
/*
|
23
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
24
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
25
|
+
*/
|
26
|
+
function n$b(n){return "string"==typeof n?document.getElementById(n):n??null}
|
27
|
+
|
28
|
+
/*
|
29
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
30
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
31
|
+
*/
|
32
|
+
var l$2;!function(s){s[s.PENDING=0]="PENDING",s[s.RESOLVED=1]="RESOLVED",s[s.REJECTED=2]="REJECTED";}(l$2||(l$2={}));class h$5{constructor(){this._resolver=L$1(),this._status=l$2.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=l$2.RESOLVED,this._cleanUp();}),(()=>{this._status=l$2.REJECTED,this._cleanUp();})),this.promise=this._resolver.promise;}destroy(){this._cleanUp();}addResolvingPromise(s){this._resolvingPromises.push(s),this._tryResolve();}isResolved(){return this._status===l$2.RESOLVED}isRejected(){return this._status===l$2.REJECTED}isFulfilled(){return this._status!==l$2.PENDING}abort(){this._resolver.reject(u$3());}_cleanUp(){this._allPromise=null,this._resolvingPromises=null;}_tryResolve(){if(this.isFulfilled())return;const s=L$1(),e=[...this._resolvingPromises,s.promise],i=this._allPromise=Promise.all(e);i.then((()=>{this.isFulfilled()||this._allPromise!==i||this._resolver.resolve();}),(s=>{this.isFulfilled()||this._allPromise!==i||b$4(s)||this._resolver.reject(s);})),s.resolve();}}const n$a=e=>{let r=class extends e{constructor(...s){super(...s),this._promiseProps=new h$5,this.addResolvingPromise(Promise.resolve());}destroy(){this._promiseProps.destroy();}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(s,e){return this._promiseProps.promise.then((()=>this)).then(s,e)}catch(s){return this.when(null,s)}addResolvingPromise(s){s&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in s?s.when():s);}};return r=r$7([a$3("esri.core.Promise")],r),r};let m$3=class extends(n$a(b$3)){};m$3=r$7([a$3("esri.core.Promise")],m$3);
|
33
|
+
|
34
|
+
/*
|
35
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
36
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
37
|
+
*/
|
38
|
+
function c$5(r){return {ok:!0,value:r}}function h$4(r){return {ok:!1,error:r}}function m$2(r){return null!=r&&!0===r.ok?r.value:null}function f$2(r){return null!=r&&!1===r.ok?r.error:null}let v$2=class extends b$3{get value(){return m$2(this._result)}get error(){return f$2(this._result)}get finished(){return null!=this._result}constructor(r,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=e$b(this._abortController);},this.remove=this.abort,this._abortController=new AbortController;const{signal:e}=this._abortController;this.promise=r(e),this.promise.then((r=>{this._result=c$5(r),this._cleanup();}),(r=>{this._result=h$4(r),this._cleanup();})),this._abortHandle=m$5(t,this.abort);}normalizeCtorArgs(){return {}}destroy(){this.abort();}_cleanup(){this._abortHandle=l$4(this._abortHandle),this._abortController=null;}};r$7([m$4()],v$2.prototype,"value",null),r$7([m$4()],v$2.prototype,"error",null),r$7([m$4()],v$2.prototype,"finished",null),r$7([m$4()],v$2.prototype,"promise",void 0),r$7([m$4()],v$2.prototype,"_result",void 0),v$2=r$7([a$3("esri.core.asyncUtils.ReactiveTask")],v$2);
|
39
|
+
|
40
|
+
/*
|
41
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
42
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
43
|
+
*/
|
44
|
+
var E$2;!function(E){E[E.ADD=1]="ADD",E[E.REMOVE=2]="REMOVE",E[E.MOVE=4]="MOVE";}(E$2||(E$2={}));
|
45
|
+
|
46
|
+
/*
|
47
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
48
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
49
|
+
*/
|
50
|
+
function n$9(n){return (r,t)=>{r[t]=n;}}
|
51
|
+
|
52
|
+
/*
|
53
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
54
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
55
|
+
*/
|
56
|
+
class s$7 extends r$8{notify(){const o=this._observers;if(o&&o.length>0){const s=o.slice();for(const o of s)o.onInvalidated(),o.onCommitted();}}}
|
57
|
+
|
58
|
+
/*
|
59
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
60
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
61
|
+
*/
|
62
|
+
var g$2;class d$7{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0;}preventDefault(){this.cancellable&&(this.defaultPrevented=!0);}reset(e){this.defaultPrevented=!1,this.item=e;}}class p$5{constructor(e,t,s,i,r){this.target=e,this.added=t,this.removed=s,this.start=i,this.deleteCount=r;}}const b$2=new e$c(d$7,void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1;}));function v$1(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy();}function y$3(e){return e?e instanceof R$1?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function E$1(e){if(e?.length)return e[0]}function A$3(e,t,s,i){const r=Math.min(e.length-s,t.length-i);let n=0;for(;n<r&&e[s+n]===t[i+n];)n++;return n}function C$2(e,t,s,i){t&&t.forEach(((t,r,n)=>{e.push(t),C$2(e,s.call(i,t,r,n),s,i);}));}const O$1=new Set,M$1=new Set,D$1=new Set,x$2=new Map;let j$1=0,R$1=g$2=class extends o$6.EventedAccessor{static isCollection(e){return null!=e&&e instanceof g$2}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new s$7,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:j$1++});}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof g$2?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null;}*[Symbol.iterator](){yield*this.items;}get items(){return a$4(this._observable),this._items}set items(e){this._emitBeforeChanges(E$2.ADD)||(this._splice(0,this.length,y$3(e)),this._emitAfterChanges(E$2.ADD));}hasEventListener(e){return !this.destroyed&&("change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return e$a();if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),e$a((()=>{s.removed=!0,e.splice(e.indexOf(s),1);}))}return this._emitter.on(e,t)}once(e,t){const s="deref"in t?()=>t.deref():()=>t,i=this.on(e,(e=>{s()?.call(null,e),i.remove();}));return i}add(e,t){if(a$4(this._observable),this._emitBeforeChanges(E$2.ADD))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(E$2.ADD),this}addMany(e,t=this._items.length){if(a$4(this._observable),!e?.length)return this;if(this._emitBeforeChanges(E$2.ADD))return this;const s=this.getNextIndex(t);return this._splice(s,0,y$3(e)),this._emitAfterChanges(E$2.ADD),this}at(e){if(a$4(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(a$4(this._observable),!this.length||this._emitBeforeChanges(E$2.REMOVE))return [];const e=this._removeAllRaw();return this._emitAfterChanges(E$2.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return a$4(this._observable),this._createNewInstance({items:this._items.map(a$5)})}concat(...e){a$4(this._observable);const t=e.map(y$3);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(a$4(this._observable),!this.length||this._emitBeforeChanges(E$2.REMOVE))return;const s=this._splice(0,this.length),i=s.length;for(let r=0;r<i;r++)e.call(t,s[r],r,s);this._emitAfterChanges(E$2.REMOVE);}destroyAll(){this.drain(v$1);}destroyMany(e){const t=this.removeMany(e);return t.forEach(v$1),t}every(e,t){return a$4(this._observable),this._items.every(e,t)}filter(e,t){let s;return a$4(this._observable),s=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:s})}find(e,t){return a$4(this._observable),this._items.find(e,t)}findIndex(e,t){return a$4(this._observable),this._items.findIndex(e,t)}flatten(e,t){a$4(this._observable);const s=[];return C$2(s,this,e,t),new g$2(s)}forEach(e,t){return a$4(this._observable),this._items.forEach(e,t)}getItemAt(e){return a$4(this._observable),this._items[e]}getNextIndex(e){a$4(this._observable);const t=this.length;return (e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return a$4(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return a$4(this._observable),this._items.indexOf(e,t)}join(e=","){return a$4(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return a$4(this._observable),this._items.lastIndexOf(e,t)}map(e,t){a$4(this._observable);const s=this._items.map(e,t);return new g$2({items:s})}reorder(e,t=this.length-1){a$4(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(E$2.MOVE))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(E$2.MOVE);}return e}}pop(){if(a$4(this._observable),!this.length||this._emitBeforeChanges(E$2.REMOVE))return;const e=E$1(this._splice(this.length-1,1));return this._emitAfterChanges(E$2.REMOVE),e}push(...e){return a$4(this._observable),this._emitBeforeChanges(E$2.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(E$2.ADD)),this.length}reduce(e,t){a$4(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){a$4(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return a$4(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(a$4(this._observable),e<0||e>=this.length||this._emitBeforeChanges(E$2.REMOVE))return;const t=E$1(this._splice(e,1));return this._emitAfterChanges(E$2.REMOVE),t}removeMany(e){if(a$4(this._observable),!e?.length||this._emitBeforeChanges(E$2.REMOVE))return [];const t=e instanceof g$2?e.toArray():e,s=this._items,i=[],r=t.length;for(let n=0;n<r;n++){const e=t[n],r=s.indexOf(e);if(r>-1){const e=1+A$3(t,s,n+1,r+1),h=this._splice(r,e);h&&h.length>0&&i.push.apply(i,h),n+=e-1;}}return this._emitAfterChanges(E$2.REMOVE),i}reverse(){if(a$4(this._observable),this._emitBeforeChanges(E$2.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(E$2.MOVE),this}shift(){if(a$4(this._observable),!this.length||this._emitBeforeChanges(E$2.REMOVE))return;const e=E$1(this._splice(0,1));return this._emitAfterChanges(E$2.REMOVE),e}slice(e=0,t=this.length){return a$4(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return a$4(this._observable),this._items.some(e,t)}sort(e){if(a$4(this._observable),!this.length||this._emitBeforeChanges(E$2.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(E$2.MOVE),this}splice(e,t,...s){a$4(this._observable);const i=(t?E$2.REMOVE:0)|(s.length?E$2.ADD:0);if(this._emitBeforeChanges(i))return [];const r=this._splice(e,t,s)||[];return this._emitAfterChanges(i),r}toArray(){return a$4(this._observable),this._items.slice()}toJSON(){return a$4(this._observable),this.toArray()}toLocaleString(){return a$4(this._observable),this._items.toLocaleString()}toString(){return a$4(this._observable),this._items.toString()}unshift(...e){return a$4(this._observable),!e.length||this._emitBeforeChanges(E$2.ADD)||(this._splice(0,0,e),this._emitAfterChanges(E$2.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const i=this._items,r=this.itemType;let n,h;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=v$3((()=>this._dispatchChange()))),e<0&&(e+=this.length),t){if(h=i.splice(e,t),this.hasEventListener("before-remove")){const t=b$2.acquire();t.target=this,t.cancellable=!0;for(let s=0,r=h.length;s<r;s++)n=h[s],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(h.splice(s,1),i.splice(e,0,n),e+=1,s-=1,r-=1);b$2.release(t);}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b$2.acquire();e.target=this,e.cancellable=!1;const t=h.length;for(let s=0;s<t;s++)e.reset(h[s]),this.emit("after-remove",e);b$2.release(e);}}if(s?.length){if(r){const e=[];for(const t of s){const s=r.ensureType(t);null==s&&null!=t||e.push(s);}s=e;}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),h=e===this.length;if(t||n){const r=b$2.acquire();r.target=this,r.cancellable=!0;const o=b$2.acquire();o.target=this,o.cancellable=!1;for(const l of s)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(h?i.push(l):i.splice(e++,0,l),this._set("length",i.length),n&&(o.reset(l),this.emit("after-add",o)))):(h?i.push(l):i.splice(e++,0,l),this._set("length",i.length),o.reset(l),this.emit("after-add",o));b$2.release(o),b$2.release(r);}else {if(h)for(const e of s)i.push(e);else i.splice(e,0,...s);this._set("length",i.length);}}if((s?.length||h?.length)&&this._notifyChangeEvent(s,h),this.hasEventListener("after-splice")){const i=new p$5(this,s,h,e,t);this.emit("after-splice",i);}return h}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=b$2.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,b$2.release(s);}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b$2.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b$2.release(t);}this._observable.notify();}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t});}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const s of e){const e=s.changes;O$1.clear(),M$1.clear(),D$1.clear();for(const{added:t,removed:s}of e){if(t)if(0===D$1.size&&0===M$1.size)for(const e of t)O$1.add(e);else for(const e of t)M$1.has(e)?(D$1.add(e),M$1.delete(e)):D$1.has(e)||O$1.add(e);if(s)if(0===D$1.size&&0===O$1.size)for(const e of s)M$1.add(e);else for(const e of s)O$1.has(e)?O$1.delete(e):(D$1.delete(e),M$1.add(e));}const i=t$9.acquire();O$1.forEach((e=>{i.push(e);}));const r=t$9.acquire();M$1.forEach((e=>{r.push(e);}));const n=this._items,h=s.items,o=t$9.acquire();if(D$1.forEach((e=>{h.indexOf(e)!==n.indexOf(e)&&o.push(e);})),s.listeners&&(i.length||r.length||o.length)){const e={target:this,added:i,removed:r,moved:o},t=s.listeners.length;for(let i=0;i<t;i++){const t=s.listeners[i];t.removed||t.callback.call(this,e);}}t$9.release(i),t$9.release(r),t$9.release(o);}O$1.clear(),M$1.clear(),D$1.clear();}};R$1.ofType=t=>{if(!t)return g$2;if(x$2.has(t))return x$2.get(t);let s=null;if("function"==typeof t)s=t.prototype.declaredClass;else if(t.base)s=t.base.prototype.declaredClass;else for(const e in t.typeMap){const i=t.typeMap[e].prototype.declaredClass;s?s+=` | ${i}`:s=i;}let i=class extends g$2{};return r$7([n$9({Type:t,ensureType:"function"==typeof t?w$2(t):N$1(t)})],i.prototype,"itemType",void 0),i=r$7([a$3(`esri.core.Collection<${s}>`)],i),x$2.set(t,i),i},r$7([m$4()],R$1.prototype,"_updating",void 0),r$7([m$4()],R$1.prototype,"length",void 0),r$7([m$4()],R$1.prototype,"items",null),r$7([m$4({readOnly:!0})],R$1.prototype,"updating",null),R$1=g$2=r$7([a$3("esri.core.Collection")],R$1);
|
63
|
+
|
64
|
+
/*
|
65
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
66
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
67
|
+
*/
|
68
|
+
function d$6(n,e,t={}){return y$2(n,e,t,L)}function p$4(n,e,t={}){return y$2(n,e,t,M)}function y$2(n,e,t={},o){let r=null;const s=t.once?(n,t)=>{o(n)&&(l$4(r),e(n,t));}:(n,t)=>{o(n)&&e(n,t);};if(r=w$3(n,s,t.sync,t.equals),t.initial){const e=n();s(e,e);}return r}function L(n){return !0}function M(n){return !!n}const A$2={sync:!0,initial:!0};
|
69
|
+
|
70
|
+
/*
|
71
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
72
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
73
|
+
*/
|
74
|
+
const t$6="randomUUID"in crypto;function n$8(){if(t$6)return crypto.randomUUID();const n=crypto.getRandomValues(new Uint16Array(8));n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;const r=t=>n[t].toString(16).padStart(4,"0");return r(0)+r(1)+"-"+r(2)+"-"+r(3)+"-"+r(4)+"-"+r(5)+r(6)+r(7)}
|
75
|
+
|
76
|
+
/*
|
77
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
78
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
79
|
+
*/
|
80
|
+
const r$5=Object.prototype.toString;function o$5(n){const r="__accessorMetadata__"in n?w$2(n):n;return function(...t){if(t.push(r),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return e$9.apply(this,t)}}function e$9(t,r,o,e){o$7(t,r).cast=e;}function i$4(t){return (r,o)=>{o$7(r,t).cast=r[o];}}function s$6(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===r$5.call(t[0])?o$5(t[0]):1===t.length&&"string"==typeof t[0]?i$4(t[0]):void 0}
|
81
|
+
|
82
|
+
/*
|
83
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
84
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
85
|
+
*/
|
86
|
+
const n$7=new Map;function t$5(){n$7.clear();}function e$8(t){return n$7.get(t)}function c$4(t,e){n$7.set(t,e);}function o$4(t){n$7.delete(t);}
|
87
|
+
|
88
|
+
/*
|
89
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
90
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
91
|
+
*/
|
92
|
+
function l$1(...e){const r=t$9.acquire();for(let t=0;t<e.length;t++){const o=e[t],n=typeof o;if("string"===n)r.push(o);else if(Array.isArray(o))r.push.apply(r,o);else if("object"===n)for(const e in o)o[e]&&r.push(e);}const o=r.join(" ");return t$9.release(r),o}(()=>{const e=new Map,t=new ResizeObserver((t=>{t$5();for(const r of t)e.get(r.target)?.(r);})),n=(r,n,s)=>(e.set(r,n),t.observe(r,s),e$a((()=>{t.unobserve(r),e.delete(r);})));return (e,t,a)=>{let c=null;return t$8([d$6((()=>"function"==typeof e?e():e),(e=>{c?.remove(),e&&(c=n(e,t,a));}),A$2),e$a((()=>c?.remove()))])}})();const d$5=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",...["animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"]],g$1=d$5.reduce(((e,t)=>(e[t]=[],e)),{}),h$3=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],y$1=new Sanitizer({whiteList:g$1,onTagAttr:(e,t,r)=>{const o=`${t}="${r}"`;if(h$3.includes(t))return o},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);async function w$1(e,t){await P(l$5(t));const r="function"==typeof e?e():e;r&&("setFocus"in r&&"function"==typeof r.setFocus?await r.setFocus():r instanceof HTMLElement&&r.focus());}
|
93
|
+
|
94
|
+
/*
|
95
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
96
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
97
|
+
*/
|
98
|
+
const t$4="http://www.w3.org/",r$4=`${t$4}2000/svg`,o$3=`${t$4}1999/xlink`;let i$3=[],n$6=(e,t)=>{let r={};return Object.keys(e).forEach((t=>{r[t]=e[t];})),t&&Object.keys(t).forEach((e=>{r[e]=t[e];})),r},s$5=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),l=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},p$3=(e,t,r)=>{if(""!==t.vnodeSelector)for(let o=r;o<e.length;o++)if(s$5(e[o],t))return o;return -1},d$4=(e,t,r,o)=>{let i=e[t];if(""===i.vnodeSelector)return;let n=i.properties;if(!(n?void 0===n.key?n.bind:n.key:void 0))for(let l=0;l<e.length;l++)if(l!==t){let t=e[l];if(s$5(t,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${"added"===o?o:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},a$1=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties);}},f$1=[],c$3=!1,u$1=e=>{(e.children||[]).forEach(u$1),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode]);},m$1=()=>{c$3=!1,f$1.forEach(u$1),f$1.length=0;},h$2=e=>{f$1.push(e),c$3||(c$3=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(m$1,{timeout:16}):setTimeout(m$1,16));},v=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";let o=()=>{t.parentNode&&(t.parentNode.removeChild(t),h$2(e));};return void r(t,o,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),h$2(e));},y=(t,i,n)=>{if(!i)return;let s=n.eventHandlerInterceptor,p=Object.keys(i),d=p.length;for(let a=0;a<d;a++){let d=p[a],f=i[d];if("className"===d)throw new Error('Property "className" is not supported, use "class".');if("class"===d)k(t,f,!0);else if("classes"===d){let e=Object.keys(f),r=e.length;for(let o=0;o<r;o++){let r=e[o];f[r]&&t.classList.add(r);}}else if("styles"===d){let e=Object.keys(f),r=e.length;for(let o=0;o<r;o++){let r=e[o],i=f[r];i&&(l(i),n.styleApplyer(t,r,i));}}else if("key"!==d&&null!=f){let l=typeof f;"function"===l?(0===d.lastIndexOf("on",0)&&(s&&(f=s(d,f,t,i)),"oninput"===d&&function(){let e=f;f=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value;};}()),t[d]=f):n.namespace===r$4?"href"===d?t.setAttributeNS(o$3,d,f):t.setAttribute(d,f):"string"===l&&"value"!==d?"innerHTML"===d?t[d]=y$1.sanitize(f):g(t)&&d in t?t[d]=f:t.setAttribute(d,f):t[d]=f;}}};function g(e){if(!(e instanceof Element&&e.tagName.includes("-")))return !1;const t=window.customElements.get(e.tagName.toLowerCase());return !!t&&e instanceof t}let N,b$1=(e,t,r)=>{if(t)for(let o of t)x$1(o,e,void 0,r);},w=(e,t,r)=>{b$1(e,t.children,r),t.text&&(e.textContent=t.text),y(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children]);},x$1=(e,t,o,i)=>{let s,l=0,p=e.vnodeSelector,d=t.ownerDocument;if(""===p)s=e.domNode=d.createTextNode(e.text),void 0!==o?t.insertBefore(s,o):t.appendChild(s);else {for(let a=0;a<=p.length;++a){let f=p.charAt(a);if(a===p.length||"."===f||"#"===f){let f=p.charAt(l-1),c=p.slice(l,a);"."===f?s.classList.add(c):"#"===f?s.id=c:("svg"===c&&(i=n$6(i,{namespace:r$4})),void 0!==i.namespace?s=e.domNode=d.createElementNS(i.namespace,c):(s=e.domNode=e.domNode||d.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&s.setAttribute("type",e.properties.type)),void 0!==o?t.insertBefore(s,o):s.parentNode!==t&&t.appendChild(s)),l=a+1;}}w(s,e,i);}},k=(e,t,r)=>{t&&t.split(" ").forEach((t=>{t&&e.classList.toggle(t,r);}));},A$1=(t,i,n,s)=>{if(!n)return;let p=!1,d=Object.keys(n),a=d.length;for(let f=0;f<a;f++){let a=d[f],c=n[a],u=i[a];if("class"===a)u!==c&&(k(t,u,!1),k(t,c,!0));else if("classes"===a){let e=t.classList,r=Object.keys(c),o=r.length;for(let t=0;t<o;t++){let o=r[t],i=!!c[o];i!==!!u[o]&&(p=!0,i?e.add(o):e.remove(o));}}else if("styles"===a){let e=Object.keys(c),r=e.length;for(let o=0;o<r;o++){let r=e[o],i=c[r];i!==u[r]&&(p=!0,i?(l(i),s.styleApplyer(t,r,i)):s.styleApplyer(t,r,""));}}else if(c||"string"!=typeof u||(c=""),"value"!==a||g(t)){if(c!==u){let i=typeof c;"function"===i&&s.eventHandlerInterceptor||(s.namespace===r$4?"href"===a?t.setAttributeNS(o$3,a,c):t.setAttribute(a,c):"string"===i?"innerHTML"===a?t[a]=y$1.sanitize(c):"role"===a&&""===c?t.removeAttribute(a):g(t)&&a in t?t[a]=c:t.setAttribute(a,c):t[a]!==c&&(t[a]=c),p=!0);}}else {let e=t[a];e!==c&&(t["oninput-value"]?e===t["oninput-value"]:c!==u)&&(t[a]=c,t["oninput-value"]=void 0),c!==u&&(p=!0);}}return p},S=(e,t,r,o,n)=>{if(r===o)return !1;o=o||i$3;let l,f=(r=r||i$3).length,c=o.length,u=0,m=0,h=!1;for(;m<c;){let i=u<f?r[u]:void 0,c=o[m];if(void 0!==i&&s$5(i,c))h=N(i,c,n)||h,u++;else {let i=p$3(r,c,u+1);if(i>=0){for(l=u;l<i;l++)v(r[l]),d$4(r,l,e,"removed");h=N(r[i],c,n)||h,u=i+1;}else x$1(c,t,u<f?r[u].domNode:void 0,n),a$1(c),d$4(o,m,e,"added");}m++;}if(f>u)for(l=u;l<f;l++)v(r[l]),d$4(r,l,e,"removed");return h};N=(e,t,o)=>{let i=e.domNode,s=!1;if(e===t)return !1;let l=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=i.ownerDocument.createTextNode(t.text);return i.parentNode.replaceChild(e,i),t.domNode=e,s=!0,s}t.domNode=i;}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(o=n$6(o,{namespace:r$4})),e.text!==t.text&&(l=!0,void 0===t.text?i.removeChild(i.firstChild):i.textContent=t.text),t.domNode=i,l=S(t,i,e.children,t.children,o)||l,l=A$1(i,e.properties,t.properties,o)||l,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[i,o,t.vnodeSelector,t.properties,t.children]);return l&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(i,t.properties,e.properties),s};let C$1=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let o=e;e=r,N(o,r,t);},domNode:e.domNode});
|
99
|
+
|
100
|
+
/*
|
101
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
102
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
103
|
+
*/
|
104
|
+
const p$2={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,r,o)=>{"-"===r.charAt(0)?e.style.setProperty(r,o):e.style[r]=o;}};let d$3=r=>n$6(p$2,r),n$5={create:(e,t)=>(t=d$3(t),x$1(e,document.createElement("div"),void 0,t),C$1(e,t)),append:(e,t,p)=>(p=d$3(p),x$1(t,e,void 0,p),C$1(t,p)),insertBefore:(e,t,p)=>(p=d$3(p),x$1(t,e.parentNode,e,p),C$1(t,p)),merge:(e,r,p)=>(p=d$3(p),r.domNode=e,w(e,r,p),C$1(r,p)),replace:(e,t,p)=>(p=d$3(p),x$1(t,e.parentNode,e,p),e.parentNode.removeChild(e),C$1(t,p))};
|
105
|
+
|
106
|
+
/*
|
107
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
108
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
109
|
+
*/
|
110
|
+
const e$7={handleInterceptedEvent:(e,p,t,n)=>(e.scheduleRender(),p.properties[`on${n.type}`].apply(p.properties.bind||t,[n]))};
|
111
|
+
|
112
|
+
/*
|
113
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
114
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
115
|
+
*/
|
116
|
+
const e$6={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,r,t)=>{"-"===r.charAt(0)?e.style.setProperty(r,t):e.style[r]=t;}},r$3=r=>({...e$6,...r});
|
117
|
+
|
118
|
+
/*
|
119
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
120
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
121
|
+
*/
|
122
|
+
const o$2=(e,r)=>{const t=[];for(;e&&e!==r;)t.push(e),e=e.parentNode;return t},n$4=(e,r)=>e.find(r),d$2=(e,r,t=!1)=>{let o=e;return r.forEach(((e,d)=>{const s=o?.children?n$4(o.children,(r=>r.domNode===e)):void 0;t&&!s&&d!==r.length-1||(o=s);})),o},s$4=n=>{let s;const c={...e$7,...n},i=r$3(c),a=i.performanceLogger;let m,p=!0,l=!1;const f=[],u=[],h=(e,r,t)=>{let n;i.eventHandlerInterceptor=(e,r,t,i)=>function(e){let r;a("domEvent",e);const t=o$2(e.currentTarget,n.domNode),i=t.some((e=>customElements.get(e?.tagName?.toLowerCase())));if(e.eventPhase===Event.CAPTURING_PHASE||!i)t.reverse(),r=d$2(n.getLastRender(),t);else {const t=e.composedPath(),o=t.slice(t.indexOf(e.currentTarget),t.indexOf(n.domNode)).reverse();r=d$2(n.getLastRender(),o,!0);}let m;return r&&(m=c.handleInterceptedEvent(s,r,this,e)),a("domEventProcessed",e),m},c.postProcessProjectionOptions?.(i);const m=t();n=e(r,m,i),i.eventHandlerInterceptor=void 0,f.push(n),u.push(t),c.afterFirstVNodeRendered&&c.afterFirstVNodeRendered(n,m);};let v=()=>{if(m=void 0,p){p=!1,a("renderStart",void 0);for(let r=0;r<f.length;r++){const t=u[r]();a("rendered",void 0);try{f[r].update(t);}catch(e){console.error(e);}a("patched",void 0);}a("renderDone",void 0),p=!0;}};return c.modifyDoRenderImplementation&&(v=c.modifyDoRenderImplementation(v,f,u)),s={renderNow:v,scheduleRender:()=>{m||l||(m=requestAnimationFrame(v));},stop:()=>{m&&(cancelAnimationFrame(m),m=void 0),l=!0;},resume:()=>{l=!1,p=!0,s.scheduleRender();},append:(r,t)=>{h(n$5.append,r,t);},insertBefore:(r,t)=>{h(n$5.insertBefore,r,t);},merge:(r,t)=>{h(n$5.merge,r,t);},replace:(r,t)=>{h(n$5.replace,r,t);},detach:e=>{for(let r=0;r<u.length;r++)if(u[r]===e)return u.splice(r,1),f.splice(r,1)[0];throw new Error("renderFunction was not found")}},s};
|
123
|
+
|
124
|
+
/*!
|
125
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
126
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
127
|
+
* v2.13.2
|
128
|
+
*/
|
129
|
+
const autoMode = "calcite-mode-auto";
|
130
|
+
const darkMode = "calcite-mode-dark";
|
131
|
+
const lightMode = "calcite-mode-light";
|
132
|
+
const CSS_UTILITY = {
|
133
|
+
autoMode,
|
134
|
+
darkMode,
|
135
|
+
lightMode,
|
136
|
+
rtl: "calcite--rtl",
|
137
|
+
calciteAnimate: "calcite-animate",
|
138
|
+
calciteAnimateIn: "calcite-animate__in",
|
139
|
+
calciteAnimateInUp: "calcite-animate__in-up",
|
140
|
+
calciteAnimateInDown: "calcite-animate__in-down",
|
141
|
+
calciteAnimateInRight: "calcite-animate__in-right",
|
142
|
+
calciteAnimateInLeft: "calcite-animate__in-left",
|
143
|
+
calciteAnimateInScale: "calcite-animate__in-scale",
|
144
|
+
};
|
145
|
+
const DEBOUNCE = {
|
146
|
+
filter: 250,
|
147
|
+
nextTick: 0,
|
148
|
+
resize: 150,
|
149
|
+
reposition: 100,
|
150
|
+
};
|
151
|
+
|
152
|
+
/*
|
153
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
154
|
+
*/
|
155
|
+
var __defProp = Object.defineProperty;
|
156
|
+
var __export = (target, all) => {
|
157
|
+
for (var name in all)
|
158
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
159
|
+
};
|
160
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
161
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
162
|
+
var registerHost = (hostElement, cmpMeta) => {
|
163
|
+
const hostRef = {
|
164
|
+
$flags$: 0,
|
165
|
+
$hostElement$: hostElement,
|
166
|
+
$cmpMeta$: cmpMeta,
|
167
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
168
|
+
};
|
169
|
+
{
|
170
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
171
|
+
}
|
172
|
+
{
|
173
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
174
|
+
hostElement["s-p"] = [];
|
175
|
+
hostElement["s-rc"] = [];
|
176
|
+
}
|
177
|
+
return hostRefs.set(hostElement, hostRef);
|
178
|
+
};
|
179
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
180
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
181
|
+
|
182
|
+
// src/client/client-load-module.ts
|
183
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
184
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
185
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
186
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
187
|
+
if (!bundleId) {
|
188
|
+
return void 0;
|
189
|
+
}
|
190
|
+
const module = cmpModules.get(bundleId) ;
|
191
|
+
if (module) {
|
192
|
+
return module[exportName];
|
193
|
+
}
|
194
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
195
|
+
return import(
|
196
|
+
/* @vite-ignore */
|
197
|
+
/* webpackInclude: /\.entry\.js$/ */
|
198
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
199
|
+
/* webpackMode: "lazy" */
|
200
|
+
`./${bundleId}.entry.js${""}`
|
201
|
+
).then((importedModule) => {
|
202
|
+
{
|
203
|
+
cmpModules.set(bundleId, importedModule);
|
204
|
+
}
|
205
|
+
return importedModule[exportName];
|
206
|
+
}, consoleError);
|
207
|
+
};
|
208
|
+
|
209
|
+
// src/client/client-style.ts
|
210
|
+
var styles = /* @__PURE__ */ new Map();
|
211
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
212
|
+
var win = typeof window !== "undefined" ? window : {};
|
213
|
+
var doc = win.document || { head: {} };
|
214
|
+
var H = win.HTMLElement || class {
|
215
|
+
};
|
216
|
+
var plt = {
|
217
|
+
$flags$: 0,
|
218
|
+
$resourcesUrl$: "",
|
219
|
+
jmp: (h2) => h2(),
|
220
|
+
raf: (h2) => requestAnimationFrame(h2),
|
221
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
222
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
223
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
224
|
+
};
|
225
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
226
|
+
let supportsListenerOptions2 = false;
|
227
|
+
try {
|
228
|
+
doc.addEventListener(
|
229
|
+
"e",
|
230
|
+
null,
|
231
|
+
Object.defineProperty({}, "passive", {
|
232
|
+
get() {
|
233
|
+
supportsListenerOptions2 = true;
|
234
|
+
}
|
235
|
+
})
|
236
|
+
);
|
237
|
+
} catch (e) {
|
238
|
+
}
|
239
|
+
return supportsListenerOptions2;
|
240
|
+
})();
|
241
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
242
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
243
|
+
try {
|
244
|
+
new CSSStyleSheet();
|
245
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
246
|
+
} catch (e) {
|
247
|
+
}
|
248
|
+
return false;
|
249
|
+
})() ;
|
250
|
+
var queuePending = false;
|
251
|
+
var queueDomReads = [];
|
252
|
+
var queueDomWrites = [];
|
253
|
+
var queueTask = (queue, write) => (cb) => {
|
254
|
+
queue.push(cb);
|
255
|
+
if (!queuePending) {
|
256
|
+
queuePending = true;
|
257
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
258
|
+
nextTick(flush);
|
259
|
+
} else {
|
260
|
+
plt.raf(flush);
|
261
|
+
}
|
262
|
+
}
|
263
|
+
};
|
264
|
+
var consume = (queue) => {
|
265
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
266
|
+
try {
|
267
|
+
queue[i2](performance.now());
|
268
|
+
} catch (e) {
|
269
|
+
consoleError(e);
|
270
|
+
}
|
271
|
+
}
|
272
|
+
queue.length = 0;
|
273
|
+
};
|
274
|
+
var flush = () => {
|
275
|
+
consume(queueDomReads);
|
276
|
+
{
|
277
|
+
consume(queueDomWrites);
|
278
|
+
if (queuePending = queueDomReads.length > 0) {
|
279
|
+
plt.raf(flush);
|
280
|
+
}
|
281
|
+
}
|
282
|
+
};
|
283
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
284
|
+
var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
|
285
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
286
|
+
|
287
|
+
// src/runtime/asset-path.ts
|
288
|
+
var getAssetPath = (path) => {
|
289
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
290
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
291
|
+
};
|
292
|
+
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
293
|
+
|
294
|
+
// src/utils/constants.ts
|
295
|
+
var EMPTY_OBJ = {};
|
296
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
297
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
298
|
+
|
299
|
+
// src/utils/helpers.ts
|
300
|
+
var isDef = (v) => v != null;
|
301
|
+
var isComplexType = (o) => {
|
302
|
+
o = typeof o;
|
303
|
+
return o === "object" || o === "function";
|
304
|
+
};
|
305
|
+
|
306
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
307
|
+
function queryNonceMetaTagContent(doc2) {
|
308
|
+
var _a, _b, _c;
|
309
|
+
return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
310
|
+
}
|
311
|
+
|
312
|
+
// src/utils/result.ts
|
313
|
+
var result_exports = {};
|
314
|
+
__export(result_exports, {
|
315
|
+
err: () => err,
|
316
|
+
map: () => map,
|
317
|
+
ok: () => ok,
|
318
|
+
unwrap: () => unwrap,
|
319
|
+
unwrapErr: () => unwrapErr
|
320
|
+
});
|
321
|
+
var ok = (value) => ({
|
322
|
+
isOk: true,
|
323
|
+
isErr: false,
|
324
|
+
value
|
325
|
+
});
|
326
|
+
var err = (value) => ({
|
327
|
+
isOk: false,
|
328
|
+
isErr: true,
|
329
|
+
value
|
330
|
+
});
|
331
|
+
function map(result, fn) {
|
332
|
+
if (result.isOk) {
|
333
|
+
const val = fn(result.value);
|
334
|
+
if (val instanceof Promise) {
|
335
|
+
return val.then((newVal) => ok(newVal));
|
336
|
+
} else {
|
337
|
+
return ok(val);
|
338
|
+
}
|
339
|
+
}
|
340
|
+
if (result.isErr) {
|
341
|
+
const value = result.value;
|
342
|
+
return err(value);
|
343
|
+
}
|
344
|
+
throw "should never get here";
|
345
|
+
}
|
346
|
+
var unwrap = (result) => {
|
347
|
+
if (result.isOk) {
|
348
|
+
return result.value;
|
349
|
+
} else {
|
350
|
+
throw result.value;
|
351
|
+
}
|
352
|
+
};
|
353
|
+
var unwrapErr = (result) => {
|
354
|
+
if (result.isErr) {
|
355
|
+
return result.value;
|
356
|
+
} else {
|
357
|
+
throw result.value;
|
358
|
+
}
|
359
|
+
};
|
360
|
+
var createTime = (fnName, tagName = "") => {
|
361
|
+
{
|
362
|
+
return () => {
|
363
|
+
return;
|
364
|
+
};
|
365
|
+
}
|
366
|
+
};
|
367
|
+
var uniqueTime = (key, measureText) => {
|
368
|
+
{
|
369
|
+
return () => {
|
370
|
+
return;
|
371
|
+
};
|
372
|
+
}
|
373
|
+
};
|
374
|
+
var h$1 = (nodeName, vnodeData, ...children) => {
|
375
|
+
let child = null;
|
376
|
+
let key = null;
|
377
|
+
let slotName = null;
|
378
|
+
let simple = false;
|
379
|
+
let lastSimple = false;
|
380
|
+
const vNodeChildren = [];
|
381
|
+
const walk = (c) => {
|
382
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
383
|
+
child = c[i2];
|
384
|
+
if (Array.isArray(child)) {
|
385
|
+
walk(child);
|
386
|
+
} else if (child != null && typeof child !== "boolean") {
|
387
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
388
|
+
child = String(child);
|
389
|
+
}
|
390
|
+
if (simple && lastSimple) {
|
391
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
392
|
+
} else {
|
393
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
394
|
+
}
|
395
|
+
lastSimple = simple;
|
396
|
+
}
|
397
|
+
}
|
398
|
+
};
|
399
|
+
walk(children);
|
400
|
+
if (vnodeData) {
|
401
|
+
if (vnodeData.key) {
|
402
|
+
key = vnodeData.key;
|
403
|
+
}
|
404
|
+
if (vnodeData.name) {
|
405
|
+
slotName = vnodeData.name;
|
406
|
+
}
|
407
|
+
{
|
408
|
+
const classData = vnodeData.className || vnodeData.class;
|
409
|
+
if (classData) {
|
410
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
411
|
+
}
|
412
|
+
}
|
413
|
+
}
|
414
|
+
if (typeof nodeName === "function") {
|
415
|
+
return nodeName(
|
416
|
+
vnodeData === null ? {} : vnodeData,
|
417
|
+
vNodeChildren,
|
418
|
+
vdomFnUtils
|
419
|
+
);
|
420
|
+
}
|
421
|
+
const vnode = newVNode(nodeName, null);
|
422
|
+
vnode.$attrs$ = vnodeData;
|
423
|
+
if (vNodeChildren.length > 0) {
|
424
|
+
vnode.$children$ = vNodeChildren;
|
425
|
+
}
|
426
|
+
{
|
427
|
+
vnode.$key$ = key;
|
428
|
+
}
|
429
|
+
{
|
430
|
+
vnode.$name$ = slotName;
|
431
|
+
}
|
432
|
+
return vnode;
|
433
|
+
};
|
434
|
+
var newVNode = (tag, text) => {
|
435
|
+
const vnode = {
|
436
|
+
$flags$: 0,
|
437
|
+
$tag$: tag,
|
438
|
+
$text$: text,
|
439
|
+
$elm$: null,
|
440
|
+
$children$: null
|
441
|
+
};
|
442
|
+
{
|
443
|
+
vnode.$attrs$ = null;
|
444
|
+
}
|
445
|
+
{
|
446
|
+
vnode.$key$ = null;
|
447
|
+
}
|
448
|
+
{
|
449
|
+
vnode.$name$ = null;
|
450
|
+
}
|
451
|
+
return vnode;
|
452
|
+
};
|
453
|
+
var Host = {};
|
454
|
+
var isHost = (node) => node && node.$tag$ === Host;
|
455
|
+
var vdomFnUtils = {
|
456
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
457
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
458
|
+
};
|
459
|
+
var convertToPublic = (node) => ({
|
460
|
+
vattrs: node.$attrs$,
|
461
|
+
vchildren: node.$children$,
|
462
|
+
vkey: node.$key$,
|
463
|
+
vname: node.$name$,
|
464
|
+
vtag: node.$tag$,
|
465
|
+
vtext: node.$text$
|
466
|
+
});
|
467
|
+
var convertToPrivate = (node) => {
|
468
|
+
if (typeof node.vtag === "function") {
|
469
|
+
const vnodeData = { ...node.vattrs };
|
470
|
+
if (node.vkey) {
|
471
|
+
vnodeData.key = node.vkey;
|
472
|
+
}
|
473
|
+
if (node.vname) {
|
474
|
+
vnodeData.name = node.vname;
|
475
|
+
}
|
476
|
+
return h$1(node.vtag, vnodeData, ...node.vchildren || []);
|
477
|
+
}
|
478
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
479
|
+
vnode.$attrs$ = node.vattrs;
|
480
|
+
vnode.$children$ = node.vchildren;
|
481
|
+
vnode.$key$ = node.vkey;
|
482
|
+
vnode.$name$ = node.vname;
|
483
|
+
return vnode;
|
484
|
+
};
|
485
|
+
var parsePropertyValue = (propValue, propType) => {
|
486
|
+
if (propValue != null && !isComplexType(propValue)) {
|
487
|
+
if (propType & 4 /* Boolean */) {
|
488
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
489
|
+
}
|
490
|
+
if (propType & 2 /* Number */) {
|
491
|
+
return parseFloat(propValue);
|
492
|
+
}
|
493
|
+
if (propType & 1 /* String */) {
|
494
|
+
return String(propValue);
|
495
|
+
}
|
496
|
+
return propValue;
|
497
|
+
}
|
498
|
+
return propValue;
|
499
|
+
};
|
500
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
501
|
+
|
502
|
+
// src/runtime/event-emitter.ts
|
503
|
+
var createEvent = (ref, name, flags) => {
|
504
|
+
const elm = getElement(ref);
|
505
|
+
return {
|
506
|
+
emit: (detail) => {
|
507
|
+
return emitEvent(elm, name, {
|
508
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
509
|
+
composed: !!(flags & 2 /* Composed */),
|
510
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
511
|
+
detail
|
512
|
+
});
|
513
|
+
}
|
514
|
+
};
|
515
|
+
};
|
516
|
+
var emitEvent = (elm, name, opts) => {
|
517
|
+
const ev = plt.ce(name, opts);
|
518
|
+
elm.dispatchEvent(ev);
|
519
|
+
return ev;
|
520
|
+
};
|
521
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
522
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
523
|
+
let style = styles.get(scopeId2);
|
524
|
+
if (supportsConstructableStylesheets && allowCS) {
|
525
|
+
style = style || new CSSStyleSheet();
|
526
|
+
if (typeof style === "string") {
|
527
|
+
style = cssText;
|
528
|
+
} else {
|
529
|
+
style.replaceSync(cssText);
|
530
|
+
}
|
531
|
+
} else {
|
532
|
+
style = cssText;
|
533
|
+
}
|
534
|
+
styles.set(scopeId2, style);
|
535
|
+
};
|
536
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
537
|
+
var _a;
|
538
|
+
const scopeId2 = getScopeId(cmpMeta);
|
539
|
+
const style = styles.get(scopeId2);
|
540
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
541
|
+
if (style) {
|
542
|
+
if (typeof style === "string") {
|
543
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
544
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
545
|
+
let styleElm;
|
546
|
+
if (!appliedStyles) {
|
547
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
548
|
+
}
|
549
|
+
if (!appliedStyles.has(scopeId2)) {
|
550
|
+
{
|
551
|
+
styleElm = doc.createElement("style");
|
552
|
+
styleElm.innerHTML = style;
|
553
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
554
|
+
if (nonce != null) {
|
555
|
+
styleElm.setAttribute("nonce", nonce);
|
556
|
+
}
|
557
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
558
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
559
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
560
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
561
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
562
|
+
} else if ("host" in styleContainerNode) {
|
563
|
+
if (supportsConstructableStylesheets) {
|
564
|
+
const stylesheet = new CSSStyleSheet();
|
565
|
+
stylesheet.replaceSync(style);
|
566
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
567
|
+
} else {
|
568
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
569
|
+
if (existingStyleContainer) {
|
570
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
571
|
+
} else {
|
572
|
+
styleContainerNode.prepend(styleElm);
|
573
|
+
}
|
574
|
+
}
|
575
|
+
} else {
|
576
|
+
styleContainerNode.append(styleElm);
|
577
|
+
}
|
578
|
+
}
|
579
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
580
|
+
styleContainerNode.insertBefore(styleElm, null);
|
581
|
+
}
|
582
|
+
}
|
583
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
584
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
585
|
+
}
|
586
|
+
if (appliedStyles) {
|
587
|
+
appliedStyles.add(scopeId2);
|
588
|
+
}
|
589
|
+
}
|
590
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
591
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
592
|
+
}
|
593
|
+
}
|
594
|
+
return scopeId2;
|
595
|
+
};
|
596
|
+
var attachStyles = (hostRef) => {
|
597
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
598
|
+
const elm = hostRef.$hostElement$;
|
599
|
+
const flags = cmpMeta.$flags$;
|
600
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
601
|
+
const scopeId2 = addStyle(
|
602
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
603
|
+
cmpMeta);
|
604
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
605
|
+
elm["s-sc"] = scopeId2;
|
606
|
+
elm.classList.add(scopeId2 + "-h");
|
607
|
+
if (flags & 2 /* scopedCssEncapsulation */) {
|
608
|
+
elm.classList.add(scopeId2 + "-s");
|
609
|
+
}
|
610
|
+
}
|
611
|
+
endAttachStyles();
|
612
|
+
};
|
613
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
614
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
615
|
+
if (oldValue !== newValue) {
|
616
|
+
let isProp = isMemberInElement(elm, memberName);
|
617
|
+
let ln = memberName.toLowerCase();
|
618
|
+
if (memberName === "class") {
|
619
|
+
const classList = elm.classList;
|
620
|
+
const oldClasses = parseClassList(oldValue);
|
621
|
+
const newClasses = parseClassList(newValue);
|
622
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
623
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
624
|
+
} else if (memberName === "style") {
|
625
|
+
{
|
626
|
+
for (const prop in oldValue) {
|
627
|
+
if (!newValue || newValue[prop] == null) {
|
628
|
+
if (prop.includes("-")) {
|
629
|
+
elm.style.removeProperty(prop);
|
630
|
+
} else {
|
631
|
+
elm.style[prop] = "";
|
632
|
+
}
|
633
|
+
}
|
634
|
+
}
|
635
|
+
}
|
636
|
+
for (const prop in newValue) {
|
637
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
638
|
+
if (prop.includes("-")) {
|
639
|
+
elm.style.setProperty(prop, newValue[prop]);
|
640
|
+
} else {
|
641
|
+
elm.style[prop] = newValue[prop];
|
642
|
+
}
|
643
|
+
}
|
644
|
+
}
|
645
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
646
|
+
if (newValue) {
|
647
|
+
newValue(elm);
|
648
|
+
}
|
649
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
650
|
+
if (memberName[2] === "-") {
|
651
|
+
memberName = memberName.slice(3);
|
652
|
+
} else if (isMemberInElement(win, ln)) {
|
653
|
+
memberName = ln.slice(2);
|
654
|
+
} else {
|
655
|
+
memberName = ln[2] + memberName.slice(3);
|
656
|
+
}
|
657
|
+
if (oldValue || newValue) {
|
658
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
659
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
660
|
+
if (oldValue) {
|
661
|
+
plt.rel(elm, memberName, oldValue, capture);
|
662
|
+
}
|
663
|
+
if (newValue) {
|
664
|
+
plt.ael(elm, memberName, newValue, capture);
|
665
|
+
}
|
666
|
+
}
|
667
|
+
} else {
|
668
|
+
const isComplex = isComplexType(newValue);
|
669
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
670
|
+
try {
|
671
|
+
if (!elm.tagName.includes("-")) {
|
672
|
+
const n = newValue == null ? "" : newValue;
|
673
|
+
if (memberName === "list") {
|
674
|
+
isProp = false;
|
675
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
676
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
677
|
+
elm[memberName] = n;
|
678
|
+
} else {
|
679
|
+
elm.setAttribute(memberName, n);
|
680
|
+
}
|
681
|
+
}
|
682
|
+
} else {
|
683
|
+
elm[memberName] = newValue;
|
684
|
+
}
|
685
|
+
} catch (e) {
|
686
|
+
}
|
687
|
+
}
|
688
|
+
if (newValue == null || newValue === false) {
|
689
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
690
|
+
{
|
691
|
+
elm.removeAttribute(memberName);
|
692
|
+
}
|
693
|
+
}
|
694
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
695
|
+
newValue = newValue === true ? "" : newValue;
|
696
|
+
{
|
697
|
+
elm.setAttribute(memberName, newValue);
|
698
|
+
}
|
699
|
+
}
|
700
|
+
}
|
701
|
+
}
|
702
|
+
};
|
703
|
+
var parseClassListRegex = /\s/;
|
704
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
705
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
706
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
707
|
+
|
708
|
+
// src/runtime/vdom/update-element.ts
|
709
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
710
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
711
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
712
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
713
|
+
{
|
714
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
715
|
+
if (!(memberName in newVnodeAttrs)) {
|
716
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
717
|
+
}
|
718
|
+
}
|
719
|
+
}
|
720
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
721
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
722
|
+
}
|
723
|
+
};
|
724
|
+
function sortedAttrNames(attrNames) {
|
725
|
+
return attrNames.includes("ref") ? (
|
726
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
727
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
728
|
+
) : (
|
729
|
+
// no need to sort, return the original array
|
730
|
+
attrNames
|
731
|
+
);
|
732
|
+
}
|
733
|
+
|
734
|
+
// src/runtime/vdom/vdom-render.ts
|
735
|
+
var scopeId;
|
736
|
+
var contentRef;
|
737
|
+
var hostTagName;
|
738
|
+
var useNativeShadowDom = false;
|
739
|
+
var checkSlotFallbackVisibility = false;
|
740
|
+
var checkSlotRelocate = false;
|
741
|
+
var isSvgMode = false;
|
742
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
743
|
+
var _a;
|
744
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
745
|
+
let i2 = 0;
|
746
|
+
let elm;
|
747
|
+
let childNode;
|
748
|
+
let oldVNode;
|
749
|
+
if (!useNativeShadowDom) {
|
750
|
+
checkSlotRelocate = true;
|
751
|
+
if (newVNode2.$tag$ === "slot") {
|
752
|
+
if (scopeId) {
|
753
|
+
parentElm.classList.add(scopeId + "-s");
|
754
|
+
}
|
755
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
756
|
+
// slot element has fallback content
|
757
|
+
// still create an element that "mocks" the slot element
|
758
|
+
2 /* isSlotFallback */
|
759
|
+
) : (
|
760
|
+
// slot element does not have fallback content
|
761
|
+
// create an html comment we'll use to always reference
|
762
|
+
// where actual slot content should sit next to
|
763
|
+
1 /* isSlotReference */
|
764
|
+
);
|
765
|
+
}
|
766
|
+
}
|
767
|
+
if (newVNode2.$text$ !== null) {
|
768
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
769
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
770
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
771
|
+
} else {
|
772
|
+
if (!isSvgMode) {
|
773
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
774
|
+
}
|
775
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
776
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
777
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
778
|
+
) ;
|
779
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
780
|
+
isSvgMode = false;
|
781
|
+
}
|
782
|
+
{
|
783
|
+
updateElement(null, newVNode2, isSvgMode);
|
784
|
+
}
|
785
|
+
const rootNode = elm.getRootNode();
|
786
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
787
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
788
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
789
|
+
}
|
790
|
+
{
|
791
|
+
updateElementScopeIds(elm, parentElm);
|
792
|
+
}
|
793
|
+
if (newVNode2.$children$) {
|
794
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
795
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
796
|
+
if (childNode) {
|
797
|
+
elm.appendChild(childNode);
|
798
|
+
}
|
799
|
+
}
|
800
|
+
}
|
801
|
+
{
|
802
|
+
if (newVNode2.$tag$ === "svg") {
|
803
|
+
isSvgMode = false;
|
804
|
+
} else if (elm.tagName === "foreignObject") {
|
805
|
+
isSvgMode = true;
|
806
|
+
}
|
807
|
+
}
|
808
|
+
}
|
809
|
+
elm["s-hn"] = hostTagName;
|
810
|
+
{
|
811
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
812
|
+
elm["s-sr"] = true;
|
813
|
+
elm["s-cr"] = contentRef;
|
814
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
815
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
816
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
817
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
818
|
+
{
|
819
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
820
|
+
}
|
821
|
+
}
|
822
|
+
}
|
823
|
+
}
|
824
|
+
return elm;
|
825
|
+
};
|
826
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
827
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
828
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
829
|
+
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
830
|
+
let node = parentElm;
|
831
|
+
while (node = node.nextSibling) {
|
832
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
833
|
+
oldSlotChildNodes.push(node);
|
834
|
+
}
|
835
|
+
}
|
836
|
+
}
|
837
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
838
|
+
const childNode = oldSlotChildNodes[i2];
|
839
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
840
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
841
|
+
childNode["s-ol"].remove();
|
842
|
+
childNode["s-ol"] = void 0;
|
843
|
+
childNode["s-sh"] = void 0;
|
844
|
+
checkSlotRelocate = true;
|
845
|
+
}
|
846
|
+
if (recursive) {
|
847
|
+
putBackInOriginalLocation(childNode, recursive);
|
848
|
+
}
|
849
|
+
}
|
850
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
851
|
+
};
|
852
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
853
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
854
|
+
let childNode;
|
855
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
856
|
+
containerElm = containerElm.shadowRoot;
|
857
|
+
}
|
858
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
859
|
+
if (vnodes[startIdx]) {
|
860
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
861
|
+
if (childNode) {
|
862
|
+
vnodes[startIdx].$elm$ = childNode;
|
863
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
864
|
+
}
|
865
|
+
}
|
866
|
+
}
|
867
|
+
};
|
868
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
869
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
870
|
+
const vnode = vnodes[index];
|
871
|
+
if (vnode) {
|
872
|
+
const elm = vnode.$elm$;
|
873
|
+
nullifyVNodeRefs(vnode);
|
874
|
+
if (elm) {
|
875
|
+
{
|
876
|
+
checkSlotFallbackVisibility = true;
|
877
|
+
if (elm["s-ol"]) {
|
878
|
+
elm["s-ol"].remove();
|
879
|
+
} else {
|
880
|
+
putBackInOriginalLocation(elm, true);
|
881
|
+
}
|
882
|
+
}
|
883
|
+
elm.remove();
|
884
|
+
}
|
885
|
+
}
|
886
|
+
}
|
887
|
+
};
|
888
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
889
|
+
let oldStartIdx = 0;
|
890
|
+
let newStartIdx = 0;
|
891
|
+
let idxInOld = 0;
|
892
|
+
let i2 = 0;
|
893
|
+
let oldEndIdx = oldCh.length - 1;
|
894
|
+
let oldStartVnode = oldCh[0];
|
895
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
896
|
+
let newEndIdx = newCh.length - 1;
|
897
|
+
let newStartVnode = newCh[0];
|
898
|
+
let newEndVnode = newCh[newEndIdx];
|
899
|
+
let node;
|
900
|
+
let elmToMove;
|
901
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
902
|
+
if (oldStartVnode == null) {
|
903
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
904
|
+
} else if (oldEndVnode == null) {
|
905
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
906
|
+
} else if (newStartVnode == null) {
|
907
|
+
newStartVnode = newCh[++newStartIdx];
|
908
|
+
} else if (newEndVnode == null) {
|
909
|
+
newEndVnode = newCh[--newEndIdx];
|
910
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
911
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
912
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
913
|
+
newStartVnode = newCh[++newStartIdx];
|
914
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
915
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
916
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
917
|
+
newEndVnode = newCh[--newEndIdx];
|
918
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
919
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
920
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
921
|
+
}
|
922
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
923
|
+
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
924
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
925
|
+
newEndVnode = newCh[--newEndIdx];
|
926
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
927
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
928
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
929
|
+
}
|
930
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
931
|
+
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
932
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
933
|
+
newStartVnode = newCh[++newStartIdx];
|
934
|
+
} else {
|
935
|
+
idxInOld = -1;
|
936
|
+
{
|
937
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
938
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
939
|
+
idxInOld = i2;
|
940
|
+
break;
|
941
|
+
}
|
942
|
+
}
|
943
|
+
}
|
944
|
+
if (idxInOld >= 0) {
|
945
|
+
elmToMove = oldCh[idxInOld];
|
946
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
947
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
948
|
+
} else {
|
949
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
950
|
+
oldCh[idxInOld] = void 0;
|
951
|
+
node = elmToMove.$elm$;
|
952
|
+
}
|
953
|
+
newStartVnode = newCh[++newStartIdx];
|
954
|
+
} else {
|
955
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
956
|
+
newStartVnode = newCh[++newStartIdx];
|
957
|
+
}
|
958
|
+
if (node) {
|
959
|
+
{
|
960
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
961
|
+
}
|
962
|
+
}
|
963
|
+
}
|
964
|
+
}
|
965
|
+
if (oldStartIdx > oldEndIdx) {
|
966
|
+
addVnodes(
|
967
|
+
parentElm,
|
968
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
969
|
+
newVNode2,
|
970
|
+
newCh,
|
971
|
+
newStartIdx,
|
972
|
+
newEndIdx
|
973
|
+
);
|
974
|
+
} else if (newStartIdx > newEndIdx) {
|
975
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
976
|
+
}
|
977
|
+
};
|
978
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
979
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
980
|
+
if (leftVNode.$tag$ === "slot") {
|
981
|
+
if (
|
982
|
+
// The component gets hydrated and no VDOM has been initialized.
|
983
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
984
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
985
|
+
// hydration comments to be removed
|
986
|
+
leftVNode.$elm$.nodeType !== 8
|
987
|
+
) {
|
988
|
+
return false;
|
989
|
+
}
|
990
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
991
|
+
}
|
992
|
+
if (!isInitialRender) {
|
993
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
994
|
+
}
|
995
|
+
return true;
|
996
|
+
}
|
997
|
+
return false;
|
998
|
+
};
|
999
|
+
var referenceNode = (node) => {
|
1000
|
+
return node && node["s-ol"] || node;
|
1001
|
+
};
|
1002
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
1003
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
1004
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
1005
|
+
const oldChildren = oldVNode.$children$;
|
1006
|
+
const newChildren = newVNode2.$children$;
|
1007
|
+
const tag = newVNode2.$tag$;
|
1008
|
+
const text = newVNode2.$text$;
|
1009
|
+
let defaultHolder;
|
1010
|
+
if (text === null) {
|
1011
|
+
{
|
1012
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
1013
|
+
}
|
1014
|
+
{
|
1015
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
1016
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
1017
|
+
}
|
1018
|
+
}
|
1019
|
+
if (oldChildren !== null && newChildren !== null) {
|
1020
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
1021
|
+
} else if (newChildren !== null) {
|
1022
|
+
if (oldVNode.$text$ !== null) {
|
1023
|
+
elm.textContent = "";
|
1024
|
+
}
|
1025
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
1026
|
+
} else if (
|
1027
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
1028
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
1029
|
+
) {
|
1030
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
1031
|
+
}
|
1032
|
+
if (isSvgMode && tag === "svg") {
|
1033
|
+
isSvgMode = false;
|
1034
|
+
}
|
1035
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
1036
|
+
defaultHolder.parentNode.textContent = text;
|
1037
|
+
} else if (oldVNode.$text$ !== text) {
|
1038
|
+
elm.data = text;
|
1039
|
+
}
|
1040
|
+
};
|
1041
|
+
var updateFallbackSlotVisibility = (elm) => {
|
1042
|
+
const childNodes = elm.childNodes;
|
1043
|
+
for (const childNode of childNodes) {
|
1044
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
1045
|
+
if (childNode["s-sr"]) {
|
1046
|
+
const slotName = childNode["s-sn"];
|
1047
|
+
childNode.hidden = false;
|
1048
|
+
for (const siblingNode of childNodes) {
|
1049
|
+
if (siblingNode !== childNode) {
|
1050
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
1051
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
1052
|
+
childNode.hidden = true;
|
1053
|
+
break;
|
1054
|
+
}
|
1055
|
+
} else {
|
1056
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
1057
|
+
childNode.hidden = true;
|
1058
|
+
break;
|
1059
|
+
}
|
1060
|
+
}
|
1061
|
+
}
|
1062
|
+
}
|
1063
|
+
}
|
1064
|
+
updateFallbackSlotVisibility(childNode);
|
1065
|
+
}
|
1066
|
+
}
|
1067
|
+
};
|
1068
|
+
var relocateNodes = [];
|
1069
|
+
var markSlotContentForRelocation = (elm) => {
|
1070
|
+
let node;
|
1071
|
+
let hostContentNodes;
|
1072
|
+
let j;
|
1073
|
+
for (const childNode of elm.childNodes) {
|
1074
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
1075
|
+
hostContentNodes = node.parentNode.childNodes;
|
1076
|
+
const slotName = childNode["s-sn"];
|
1077
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
1078
|
+
node = hostContentNodes[j];
|
1079
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
1080
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
1081
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
1082
|
+
checkSlotFallbackVisibility = true;
|
1083
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
1084
|
+
if (relocateNodeData) {
|
1085
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
1086
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
1087
|
+
} else {
|
1088
|
+
node["s-sh"] = childNode["s-hn"];
|
1089
|
+
relocateNodes.push({
|
1090
|
+
$slotRefNode$: childNode,
|
1091
|
+
$nodeToRelocate$: node
|
1092
|
+
});
|
1093
|
+
}
|
1094
|
+
if (node["s-sr"]) {
|
1095
|
+
relocateNodes.map((relocateNode) => {
|
1096
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
1097
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
1098
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
1099
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
1100
|
+
}
|
1101
|
+
}
|
1102
|
+
});
|
1103
|
+
}
|
1104
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
1105
|
+
relocateNodes.push({
|
1106
|
+
$nodeToRelocate$: node
|
1107
|
+
});
|
1108
|
+
}
|
1109
|
+
}
|
1110
|
+
}
|
1111
|
+
}
|
1112
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
1113
|
+
markSlotContentForRelocation(childNode);
|
1114
|
+
}
|
1115
|
+
}
|
1116
|
+
};
|
1117
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
1118
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
1119
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
1120
|
+
return true;
|
1121
|
+
}
|
1122
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
1123
|
+
return true;
|
1124
|
+
}
|
1125
|
+
return false;
|
1126
|
+
}
|
1127
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
1128
|
+
return true;
|
1129
|
+
}
|
1130
|
+
return slotName === "";
|
1131
|
+
};
|
1132
|
+
var nullifyVNodeRefs = (vNode) => {
|
1133
|
+
{
|
1134
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
1135
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
1136
|
+
}
|
1137
|
+
};
|
1138
|
+
var insertBefore = (parent, newNode, reference) => {
|
1139
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
1140
|
+
{
|
1141
|
+
updateElementScopeIds(newNode, parent);
|
1142
|
+
}
|
1143
|
+
return inserted;
|
1144
|
+
};
|
1145
|
+
var findScopeIds = (element) => {
|
1146
|
+
const scopeIds = [];
|
1147
|
+
if (element) {
|
1148
|
+
scopeIds.push(
|
1149
|
+
...element["s-scs"] || [],
|
1150
|
+
element["s-si"],
|
1151
|
+
element["s-sc"],
|
1152
|
+
...findScopeIds(element.parentElement)
|
1153
|
+
);
|
1154
|
+
}
|
1155
|
+
return scopeIds;
|
1156
|
+
};
|
1157
|
+
var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
1158
|
+
var _a;
|
1159
|
+
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
1160
|
+
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
1161
|
+
if (scopeIds.size) {
|
1162
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
1163
|
+
if (element["s-ol"] || iterateChildNodes) {
|
1164
|
+
for (const childNode of Array.from(element.childNodes)) {
|
1165
|
+
updateElementScopeIds(childNode, element, true);
|
1166
|
+
}
|
1167
|
+
}
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
};
|
1171
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
1172
|
+
var _a, _b, _c, _d;
|
1173
|
+
const hostElm = hostRef.$hostElement$;
|
1174
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
1175
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
1176
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h$1(null, null, renderFnResults);
|
1177
|
+
hostTagName = hostElm.tagName;
|
1178
|
+
if (cmpMeta.$attrsToReflect$) {
|
1179
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
1180
|
+
cmpMeta.$attrsToReflect$.map(
|
1181
|
+
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
1182
|
+
);
|
1183
|
+
}
|
1184
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
1185
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
1186
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
1187
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
1188
|
+
}
|
1189
|
+
}
|
1190
|
+
}
|
1191
|
+
rootVnode.$tag$ = null;
|
1192
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
1193
|
+
hostRef.$vnode$ = rootVnode;
|
1194
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
1195
|
+
{
|
1196
|
+
scopeId = hostElm["s-sc"];
|
1197
|
+
}
|
1198
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
1199
|
+
{
|
1200
|
+
contentRef = hostElm["s-cr"];
|
1201
|
+
checkSlotFallbackVisibility = false;
|
1202
|
+
}
|
1203
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
1204
|
+
{
|
1205
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
1206
|
+
if (checkSlotRelocate) {
|
1207
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
1208
|
+
for (const relocateData of relocateNodes) {
|
1209
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
1210
|
+
if (!nodeToRelocate["s-ol"]) {
|
1211
|
+
const orgLocationNode = doc.createTextNode("");
|
1212
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
1213
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
1214
|
+
}
|
1215
|
+
}
|
1216
|
+
for (const relocateData of relocateNodes) {
|
1217
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
1218
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
1219
|
+
if (slotRefNode) {
|
1220
|
+
const parentNodeRef = slotRefNode.parentNode;
|
1221
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
1222
|
+
{
|
1223
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
1224
|
+
while (orgLocationNode) {
|
1225
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
1226
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
1227
|
+
refNode = refNode.nextSibling;
|
1228
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
1229
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
1230
|
+
}
|
1231
|
+
if (!refNode || !refNode["s-nr"]) {
|
1232
|
+
insertBeforeNode = refNode;
|
1233
|
+
break;
|
1234
|
+
}
|
1235
|
+
}
|
1236
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
1237
|
+
}
|
1238
|
+
}
|
1239
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
1240
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
1241
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
1242
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
1243
|
+
}
|
1244
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
1245
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
1246
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
1247
|
+
}
|
1248
|
+
}
|
1249
|
+
}
|
1250
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
1251
|
+
} else {
|
1252
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
1253
|
+
if (isInitialLoad) {
|
1254
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
1255
|
+
}
|
1256
|
+
nodeToRelocate.hidden = true;
|
1257
|
+
}
|
1258
|
+
}
|
1259
|
+
}
|
1260
|
+
}
|
1261
|
+
if (checkSlotFallbackVisibility) {
|
1262
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
1263
|
+
}
|
1264
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
1265
|
+
relocateNodes.length = 0;
|
1266
|
+
}
|
1267
|
+
contentRef = void 0;
|
1268
|
+
};
|
1269
|
+
|
1270
|
+
// src/runtime/update-component.ts
|
1271
|
+
var attachToAncestor = (hostRef, ancestorComponent) => {
|
1272
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
1273
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
1274
|
+
}
|
1275
|
+
};
|
1276
|
+
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
1277
|
+
{
|
1278
|
+
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
1279
|
+
}
|
1280
|
+
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
1281
|
+
hostRef.$flags$ |= 512 /* needsRerender */;
|
1282
|
+
return;
|
1283
|
+
}
|
1284
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
1285
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
1286
|
+
return writeTask(dispatch) ;
|
1287
|
+
};
|
1288
|
+
var dispatchHooks = (hostRef, isInitialLoad) => {
|
1289
|
+
const elm = hostRef.$hostElement$;
|
1290
|
+
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
1291
|
+
const instance = hostRef.$lazyInstance$ ;
|
1292
|
+
if (!instance) {
|
1293
|
+
throw new Error(
|
1294
|
+
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
1295
|
+
);
|
1296
|
+
}
|
1297
|
+
let maybePromise;
|
1298
|
+
if (isInitialLoad) {
|
1299
|
+
{
|
1300
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
1301
|
+
if (hostRef.$queuedListeners$) {
|
1302
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
1303
|
+
hostRef.$queuedListeners$ = void 0;
|
1304
|
+
}
|
1305
|
+
}
|
1306
|
+
{
|
1307
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
1308
|
+
}
|
1309
|
+
} else {
|
1310
|
+
{
|
1311
|
+
maybePromise = safeCall(instance, "componentWillUpdate");
|
1312
|
+
}
|
1313
|
+
}
|
1314
|
+
{
|
1315
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
1316
|
+
}
|
1317
|
+
endSchedule();
|
1318
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
1319
|
+
};
|
1320
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
1321
|
+
console.error(err2);
|
1322
|
+
fn();
|
1323
|
+
}) : fn();
|
1324
|
+
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
1325
|
+
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
1326
|
+
var _a;
|
1327
|
+
const elm = hostRef.$hostElement$;
|
1328
|
+
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
1329
|
+
const rc = elm["s-rc"];
|
1330
|
+
if (isInitialLoad) {
|
1331
|
+
attachStyles(hostRef);
|
1332
|
+
}
|
1333
|
+
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
1334
|
+
{
|
1335
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
1336
|
+
}
|
1337
|
+
if (rc) {
|
1338
|
+
rc.map((cb) => cb());
|
1339
|
+
elm["s-rc"] = void 0;
|
1340
|
+
}
|
1341
|
+
endRender();
|
1342
|
+
endUpdate();
|
1343
|
+
{
|
1344
|
+
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
1345
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
1346
|
+
if (childrenPromises.length === 0) {
|
1347
|
+
postUpdate();
|
1348
|
+
} else {
|
1349
|
+
Promise.all(childrenPromises).then(postUpdate);
|
1350
|
+
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
1351
|
+
childrenPromises.length = 0;
|
1352
|
+
}
|
1353
|
+
}
|
1354
|
+
};
|
1355
|
+
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
1356
|
+
try {
|
1357
|
+
instance = instance.render() ;
|
1358
|
+
{
|
1359
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
1360
|
+
}
|
1361
|
+
{
|
1362
|
+
hostRef.$flags$ |= 2 /* hasRendered */;
|
1363
|
+
}
|
1364
|
+
{
|
1365
|
+
{
|
1366
|
+
{
|
1367
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
1368
|
+
}
|
1369
|
+
}
|
1370
|
+
}
|
1371
|
+
} catch (e) {
|
1372
|
+
consoleError(e, hostRef.$hostElement$);
|
1373
|
+
}
|
1374
|
+
return null;
|
1375
|
+
};
|
1376
|
+
var postUpdateComponent = (hostRef) => {
|
1377
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
1378
|
+
const elm = hostRef.$hostElement$;
|
1379
|
+
const endPostUpdate = createTime("postUpdate", tagName);
|
1380
|
+
const instance = hostRef.$lazyInstance$ ;
|
1381
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
1382
|
+
{
|
1383
|
+
safeCall(instance, "componentDidRender");
|
1384
|
+
}
|
1385
|
+
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
1386
|
+
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
1387
|
+
{
|
1388
|
+
addHydratedFlag(elm);
|
1389
|
+
}
|
1390
|
+
{
|
1391
|
+
safeCall(instance, "componentDidLoad");
|
1392
|
+
}
|
1393
|
+
endPostUpdate();
|
1394
|
+
{
|
1395
|
+
hostRef.$onReadyResolve$(elm);
|
1396
|
+
if (!ancestorComponent) {
|
1397
|
+
appDidLoad();
|
1398
|
+
}
|
1399
|
+
}
|
1400
|
+
} else {
|
1401
|
+
{
|
1402
|
+
safeCall(instance, "componentDidUpdate");
|
1403
|
+
}
|
1404
|
+
endPostUpdate();
|
1405
|
+
}
|
1406
|
+
{
|
1407
|
+
hostRef.$onInstanceResolve$(elm);
|
1408
|
+
}
|
1409
|
+
{
|
1410
|
+
if (hostRef.$onRenderResolve$) {
|
1411
|
+
hostRef.$onRenderResolve$();
|
1412
|
+
hostRef.$onRenderResolve$ = void 0;
|
1413
|
+
}
|
1414
|
+
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
1415
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
1416
|
+
}
|
1417
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
1418
|
+
}
|
1419
|
+
};
|
1420
|
+
var forceUpdate = (ref) => {
|
1421
|
+
{
|
1422
|
+
const hostRef = getHostRef(ref);
|
1423
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
1424
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
1425
|
+
scheduleUpdate(hostRef, false);
|
1426
|
+
}
|
1427
|
+
return isConnected;
|
1428
|
+
}
|
1429
|
+
};
|
1430
|
+
var appDidLoad = (who) => {
|
1431
|
+
{
|
1432
|
+
addHydratedFlag(doc.documentElement);
|
1433
|
+
}
|
1434
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
1435
|
+
};
|
1436
|
+
var safeCall = (instance, method, arg) => {
|
1437
|
+
if (instance && instance[method]) {
|
1438
|
+
try {
|
1439
|
+
return instance[method](arg);
|
1440
|
+
} catch (e) {
|
1441
|
+
consoleError(e);
|
1442
|
+
}
|
1443
|
+
}
|
1444
|
+
return void 0;
|
1445
|
+
};
|
1446
|
+
var addHydratedFlag = (elm) => {
|
1447
|
+
var _a;
|
1448
|
+
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
1449
|
+
};
|
1450
|
+
|
1451
|
+
// src/runtime/set-value.ts
|
1452
|
+
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
1453
|
+
var setValue = (ref, propName, newVal, cmpMeta) => {
|
1454
|
+
const hostRef = getHostRef(ref);
|
1455
|
+
if (!hostRef) {
|
1456
|
+
throw new Error(
|
1457
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
1458
|
+
);
|
1459
|
+
}
|
1460
|
+
const elm = hostRef.$hostElement$ ;
|
1461
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
1462
|
+
const flags = hostRef.$flags$;
|
1463
|
+
const instance = hostRef.$lazyInstance$ ;
|
1464
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
1465
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
1466
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
1467
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
1468
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
1469
|
+
if (instance) {
|
1470
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
1471
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
1472
|
+
if (watchMethods) {
|
1473
|
+
watchMethods.map((watchMethodName) => {
|
1474
|
+
try {
|
1475
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
1476
|
+
} catch (e) {
|
1477
|
+
consoleError(e, elm);
|
1478
|
+
}
|
1479
|
+
});
|
1480
|
+
}
|
1481
|
+
}
|
1482
|
+
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
1483
|
+
if (instance.componentShouldUpdate) {
|
1484
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
1485
|
+
return;
|
1486
|
+
}
|
1487
|
+
}
|
1488
|
+
scheduleUpdate(hostRef, false);
|
1489
|
+
}
|
1490
|
+
}
|
1491
|
+
}
|
1492
|
+
};
|
1493
|
+
|
1494
|
+
// src/runtime/proxy-component.ts
|
1495
|
+
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
1496
|
+
var _a, _b;
|
1497
|
+
const prototype = Cstr.prototype;
|
1498
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
1499
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
1500
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
1501
|
+
}
|
1502
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
1503
|
+
members.map(([memberName, [memberFlags]]) => {
|
1504
|
+
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
1505
|
+
Object.defineProperty(prototype, memberName, {
|
1506
|
+
get() {
|
1507
|
+
return getValue(this, memberName);
|
1508
|
+
},
|
1509
|
+
set(newValue) {
|
1510
|
+
setValue(this, memberName, newValue, cmpMeta);
|
1511
|
+
},
|
1512
|
+
configurable: true,
|
1513
|
+
enumerable: true
|
1514
|
+
});
|
1515
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
1516
|
+
Object.defineProperty(prototype, memberName, {
|
1517
|
+
value(...args) {
|
1518
|
+
var _a2;
|
1519
|
+
const ref = getHostRef(this);
|
1520
|
+
return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
|
1521
|
+
var _a3;
|
1522
|
+
return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
1523
|
+
});
|
1524
|
+
}
|
1525
|
+
});
|
1526
|
+
}
|
1527
|
+
});
|
1528
|
+
if ((flags & 1 /* isElementConstructor */)) {
|
1529
|
+
const attrNameToPropName = /* @__PURE__ */ new Map();
|
1530
|
+
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
1531
|
+
plt.jmp(() => {
|
1532
|
+
var _a2;
|
1533
|
+
const propName = attrNameToPropName.get(attrName);
|
1534
|
+
if (this.hasOwnProperty(propName)) {
|
1535
|
+
newValue = this[propName];
|
1536
|
+
delete this[propName];
|
1537
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
1538
|
+
this[propName] == newValue) {
|
1539
|
+
return;
|
1540
|
+
} else if (propName == null) {
|
1541
|
+
const hostRef = getHostRef(this);
|
1542
|
+
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
1543
|
+
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
1544
|
+
const instance = hostRef.$lazyInstance$ ;
|
1545
|
+
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
1546
|
+
entry == null ? void 0 : entry.forEach((callbackName) => {
|
1547
|
+
if (instance[callbackName] != null) {
|
1548
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
1549
|
+
}
|
1550
|
+
});
|
1551
|
+
}
|
1552
|
+
return;
|
1553
|
+
}
|
1554
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
1555
|
+
});
|
1556
|
+
};
|
1557
|
+
Cstr.observedAttributes = Array.from(
|
1558
|
+
/* @__PURE__ */ new Set([
|
1559
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
1560
|
+
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
1561
|
+
var _a2;
|
1562
|
+
const attrName = m[1] || propName;
|
1563
|
+
attrNameToPropName.set(attrName, propName);
|
1564
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
1565
|
+
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
1566
|
+
}
|
1567
|
+
return attrName;
|
1568
|
+
})
|
1569
|
+
])
|
1570
|
+
);
|
1571
|
+
}
|
1572
|
+
}
|
1573
|
+
return Cstr;
|
1574
|
+
};
|
1575
|
+
|
1576
|
+
// src/runtime/initialize-component.ts
|
1577
|
+
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
1578
|
+
let Cstr;
|
1579
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
1580
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
1581
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
1582
|
+
if (bundleId) {
|
1583
|
+
const CstrImport = loadModule(cmpMeta);
|
1584
|
+
if (CstrImport && "then" in CstrImport) {
|
1585
|
+
const endLoad = uniqueTime();
|
1586
|
+
Cstr = await CstrImport;
|
1587
|
+
endLoad();
|
1588
|
+
} else {
|
1589
|
+
Cstr = CstrImport;
|
1590
|
+
}
|
1591
|
+
if (!Cstr) {
|
1592
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
1593
|
+
}
|
1594
|
+
if (!Cstr.isProxied) {
|
1595
|
+
{
|
1596
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
1597
|
+
}
|
1598
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
1599
|
+
Cstr.isProxied = true;
|
1600
|
+
}
|
1601
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
1602
|
+
{
|
1603
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
1604
|
+
}
|
1605
|
+
try {
|
1606
|
+
new Cstr(hostRef);
|
1607
|
+
} catch (e) {
|
1608
|
+
consoleError(e);
|
1609
|
+
}
|
1610
|
+
{
|
1611
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
1612
|
+
}
|
1613
|
+
{
|
1614
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
1615
|
+
}
|
1616
|
+
endNewInstance();
|
1617
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
1618
|
+
} else {
|
1619
|
+
Cstr = elm.constructor;
|
1620
|
+
const cmpTag = elm.localName;
|
1621
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
1622
|
+
}
|
1623
|
+
if (Cstr && Cstr.style) {
|
1624
|
+
let style;
|
1625
|
+
if (typeof Cstr.style === "string") {
|
1626
|
+
style = Cstr.style;
|
1627
|
+
}
|
1628
|
+
const scopeId2 = getScopeId(cmpMeta);
|
1629
|
+
if (!styles.has(scopeId2)) {
|
1630
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
1631
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
1632
|
+
endRegisterStyles();
|
1633
|
+
}
|
1634
|
+
}
|
1635
|
+
}
|
1636
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
1637
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
1638
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
1639
|
+
ancestorComponent["s-rc"].push(schedule);
|
1640
|
+
} else {
|
1641
|
+
schedule();
|
1642
|
+
}
|
1643
|
+
};
|
1644
|
+
var fireConnectedCallback = (instance) => {
|
1645
|
+
{
|
1646
|
+
safeCall(instance, "connectedCallback");
|
1647
|
+
}
|
1648
|
+
};
|
1649
|
+
|
1650
|
+
// src/runtime/connected-callback.ts
|
1651
|
+
var connectedCallback = (elm) => {
|
1652
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
1653
|
+
const hostRef = getHostRef(elm);
|
1654
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
1655
|
+
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
1656
|
+
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
1657
|
+
hostRef.$flags$ |= 1 /* hasConnected */;
|
1658
|
+
{
|
1659
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
1660
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
1661
|
+
setContentReference(elm);
|
1662
|
+
}
|
1663
|
+
}
|
1664
|
+
{
|
1665
|
+
let ancestorComponent = elm;
|
1666
|
+
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
1667
|
+
if (ancestorComponent["s-p"]) {
|
1668
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
1669
|
+
break;
|
1670
|
+
}
|
1671
|
+
}
|
1672
|
+
}
|
1673
|
+
if (cmpMeta.$members$) {
|
1674
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
1675
|
+
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
1676
|
+
const value = elm[memberName];
|
1677
|
+
delete elm[memberName];
|
1678
|
+
elm[memberName] = value;
|
1679
|
+
}
|
1680
|
+
});
|
1681
|
+
}
|
1682
|
+
{
|
1683
|
+
initializeComponent(elm, hostRef, cmpMeta);
|
1684
|
+
}
|
1685
|
+
} else {
|
1686
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
1687
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
1688
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
1689
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1690
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
1691
|
+
}
|
1692
|
+
}
|
1693
|
+
endConnected();
|
1694
|
+
}
|
1695
|
+
};
|
1696
|
+
var setContentReference = (elm) => {
|
1697
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
1698
|
+
""
|
1699
|
+
);
|
1700
|
+
contentRefElm["s-cn"] = true;
|
1701
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
1702
|
+
};
|
1703
|
+
var disconnectInstance = (instance) => {
|
1704
|
+
{
|
1705
|
+
safeCall(instance, "disconnectedCallback");
|
1706
|
+
}
|
1707
|
+
};
|
1708
|
+
var disconnectedCallback = async (elm) => {
|
1709
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
1710
|
+
const hostRef = getHostRef(elm);
|
1711
|
+
{
|
1712
|
+
if (hostRef.$rmListeners$) {
|
1713
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
1714
|
+
hostRef.$rmListeners$ = void 0;
|
1715
|
+
}
|
1716
|
+
}
|
1717
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
1718
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
1719
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1720
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
1721
|
+
}
|
1722
|
+
}
|
1723
|
+
};
|
1724
|
+
var proxyCustomElement = (Cstr, compactMeta) => {
|
1725
|
+
const cmpMeta = {
|
1726
|
+
$flags$: compactMeta[0],
|
1727
|
+
$tagName$: compactMeta[1]
|
1728
|
+
};
|
1729
|
+
{
|
1730
|
+
cmpMeta.$members$ = compactMeta[2];
|
1731
|
+
}
|
1732
|
+
{
|
1733
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
1734
|
+
}
|
1735
|
+
{
|
1736
|
+
cmpMeta.$watchers$ = Cstr.$watchers$;
|
1737
|
+
}
|
1738
|
+
{
|
1739
|
+
cmpMeta.$attrsToReflect$ = [];
|
1740
|
+
}
|
1741
|
+
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
1742
|
+
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
1743
|
+
let hasHostListenerAttached = false;
|
1744
|
+
Object.assign(Cstr.prototype, {
|
1745
|
+
__registerHost() {
|
1746
|
+
registerHost(this, cmpMeta);
|
1747
|
+
},
|
1748
|
+
connectedCallback() {
|
1749
|
+
if (!hasHostListenerAttached) {
|
1750
|
+
const hostRef = getHostRef(this);
|
1751
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
1752
|
+
hasHostListenerAttached = true;
|
1753
|
+
}
|
1754
|
+
connectedCallback(this);
|
1755
|
+
if (originalConnectedCallback) {
|
1756
|
+
originalConnectedCallback.call(this);
|
1757
|
+
}
|
1758
|
+
},
|
1759
|
+
disconnectedCallback() {
|
1760
|
+
disconnectedCallback(this);
|
1761
|
+
if (originalDisconnectedCallback) {
|
1762
|
+
originalDisconnectedCallback.call(this);
|
1763
|
+
}
|
1764
|
+
},
|
1765
|
+
__attachShadow() {
|
1766
|
+
{
|
1767
|
+
if (!this.shadowRoot) {
|
1768
|
+
{
|
1769
|
+
this.attachShadow({
|
1770
|
+
mode: "open",
|
1771
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
1772
|
+
});
|
1773
|
+
}
|
1774
|
+
} else {
|
1775
|
+
if (this.shadowRoot.mode !== "open") {
|
1776
|
+
throw new Error(
|
1777
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
1778
|
+
);
|
1779
|
+
}
|
1780
|
+
}
|
1781
|
+
}
|
1782
|
+
}
|
1783
|
+
});
|
1784
|
+
Cstr.is = cmpMeta.$tagName$;
|
1785
|
+
return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
|
1786
|
+
};
|
1787
|
+
|
1788
|
+
// src/runtime/fragment.ts
|
1789
|
+
var Fragment = (_, children) => children;
|
1790
|
+
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
1791
|
+
if (listeners) {
|
1792
|
+
listeners.map(([flags, name, method]) => {
|
1793
|
+
const target = getHostListenerTarget(elm, flags) ;
|
1794
|
+
const handler = hostListenerProxy(hostRef, method);
|
1795
|
+
const opts = hostListenerOpts(flags);
|
1796
|
+
plt.ael(target, name, handler, opts);
|
1797
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
1798
|
+
});
|
1799
|
+
}
|
1800
|
+
};
|
1801
|
+
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
1802
|
+
var _a;
|
1803
|
+
try {
|
1804
|
+
{
|
1805
|
+
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
1806
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
1807
|
+
} else {
|
1808
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
1809
|
+
}
|
1810
|
+
}
|
1811
|
+
} catch (e) {
|
1812
|
+
consoleError(e);
|
1813
|
+
}
|
1814
|
+
};
|
1815
|
+
var getHostListenerTarget = (elm, flags) => {
|
1816
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
1817
|
+
if (flags & 8 /* TargetWindow */) return win;
|
1818
|
+
if (flags & 16 /* TargetBody */) return doc.body;
|
1819
|
+
return elm;
|
1820
|
+
};
|
1821
|
+
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
1822
|
+
passive: (flags & 1 /* Passive */) !== 0,
|
1823
|
+
capture: (flags & 2 /* Capture */) !== 0
|
1824
|
+
} : (flags & 2 /* Capture */) !== 0;
|
1825
|
+
|
1826
|
+
/*!
|
1827
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1828
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
1829
|
+
* v2.13.2
|
1830
|
+
*/
|
1831
|
+
|
1832
|
+
/**
|
1833
|
+
* This module allows custom configuration for components.
|
1834
|
+
*/
|
1835
|
+
const existingConfig = globalThis["calciteConfig"];
|
1836
|
+
const focusTrapStack = existingConfig?.focusTrapStack || [];
|
1837
|
+
// the following placeholders are replaced by the build
|
1838
|
+
const version = "2.13.2";
|
1839
|
+
const buildDate = "2024-10-24";
|
1840
|
+
const revision = "e38e2977d";
|
1841
|
+
/**
|
1842
|
+
* Stamp the version onto the global config.
|
1843
|
+
*/
|
1844
|
+
function stampVersion() {
|
1845
|
+
if (existingConfig && existingConfig.version) {
|
1846
|
+
return;
|
1847
|
+
}
|
1848
|
+
console.info(`Using Calcite Components ${version} [Date: ${buildDate}, Revision: ${revision}]`);
|
1849
|
+
const target = existingConfig || globalThis["calciteConfig"] || {};
|
1850
|
+
Object.defineProperty(target, "version", {
|
1851
|
+
value: version,
|
1852
|
+
writable: false,
|
1853
|
+
});
|
1854
|
+
globalThis["calciteConfig"] = target;
|
1855
|
+
}
|
1856
|
+
|
1857
|
+
/*!
|
1858
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1859
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
1860
|
+
* v2.13.2
|
1861
|
+
*/
|
1862
|
+
|
1863
|
+
const isBrowser = () => typeof navigator !== "undefined" &&
|
1864
|
+
typeof window !== "undefined" &&
|
1865
|
+
typeof location !== "undefined" &&
|
1866
|
+
typeof document !== "undefined" &&
|
1867
|
+
window.location === location &&
|
1868
|
+
window.document === document;
|
1869
|
+
|
1870
|
+
/*!
|
1871
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1872
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
1873
|
+
* v2.13.2
|
1874
|
+
*/
|
1875
|
+
|
1876
|
+
/**
|
1877
|
+
* Emits when the mode is dynamically toggled between light and dark on <body> or in OS preferences.
|
1878
|
+
*/
|
1879
|
+
function initModeChangeEvent() {
|
1880
|
+
const { classList } = document.body;
|
1881
|
+
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
1882
|
+
const getMode = () => classList.contains(darkMode) || (classList.contains(autoMode) && prefersDark) ? "dark" : "light";
|
1883
|
+
const emitModeChange = (mode) => document.body.dispatchEvent(new CustomEvent("calciteModeChange", { bubbles: true, detail: { mode } }));
|
1884
|
+
const modeChangeHandler = (newMode) => {
|
1885
|
+
currentMode !== newMode && emitModeChange(newMode);
|
1886
|
+
currentMode = newMode;
|
1887
|
+
};
|
1888
|
+
let currentMode = getMode();
|
1889
|
+
// emits event on page load
|
1890
|
+
emitModeChange(currentMode);
|
1891
|
+
// emits event when changing OS mode preferences
|
1892
|
+
window
|
1893
|
+
.matchMedia("(prefers-color-scheme: dark)")
|
1894
|
+
.addEventListener("change", (event) => modeChangeHandler(event.matches ? "dark" : "light"));
|
1895
|
+
// emits event when toggling between mode classes on <body>
|
1896
|
+
new MutationObserver(() => modeChangeHandler(getMode())).observe(document.body, {
|
1897
|
+
attributes: true,
|
1898
|
+
attributeFilter: ["class"],
|
1899
|
+
});
|
1900
|
+
}
|
1901
|
+
|
1902
|
+
/**
|
1903
|
+
* This file is imported in Stencil's `globalScript` config option.
|
1904
|
+
*
|
1905
|
+
* @see {@link https://stenciljs.com/docs/config#globalscript}
|
1906
|
+
*/
|
1907
|
+
function appGlobalScript () {
|
1908
|
+
if (isBrowser()) {
|
1909
|
+
if (document.readyState === "interactive") {
|
1910
|
+
initModeChangeEvent();
|
1911
|
+
}
|
1912
|
+
else {
|
1913
|
+
document.addEventListener("DOMContentLoaded", () => initModeChangeEvent(), { once: true });
|
1914
|
+
}
|
1915
|
+
}
|
1916
|
+
stampVersion();
|
1917
|
+
}
|
1918
|
+
|
1919
|
+
const globalScripts = appGlobalScript;
|
1920
|
+
|
1921
|
+
globalScripts();
|
1922
|
+
|
1923
|
+
/*
|
1924
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1925
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1926
|
+
*/
|
1927
|
+
let c$2;function n$3(){try{getAssetPath(".");}catch{setAssetPath(_(n$d(c$2)));}}function r$2(t){const o=[];for(const s of Object.keys(t))customElements.get(`calcite-${s}`)||o.push(t[s]?.());return o.length>0?Promise.all(o):null}c$2="components/assets";
|
1928
|
+
|
1929
|
+
/*
|
1930
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1931
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1932
|
+
*/
|
1933
|
+
const t$3=Symbol("widget"),e$5=Symbol("widget-test-data");
|
1934
|
+
|
1935
|
+
/*
|
1936
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1937
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1938
|
+
*/
|
1939
|
+
const o$1=[],n$2={},i$2=new WeakMap;function d$1(e,t){let r=t.children;if(r?.length)for(let o=0;o<r.length;++o)r[o]=d$1(e,r[o]);else r=o$1;const i=t.vnodeSelector;if(f(i)){const o=t.properties||n$2,d=o.key||i,f={key:d,afterCreate:c$1,afterUpdate:s$3,afterRemoved:a,parentWidget:e,widgetConstructor:i,widgetProperties:{...o,key:d,children:r}};return {vnodeSelector:i.vnodeSelector,properties:f,children:void 0,text:void 0,domNode:null}}return t}function c$1(r,o,n,{parentWidget:d,widgetConstructor:c,widgetProperties:s}){const f=new c(s);f.container=r,i$2.set(r,f),f.afterCreate?.(f,r),d.addHandles(e$a((()=>a(r)))),queueMicrotask((()=>{f[e$5].projector.renderNow();}));}function s$3(e,t,r,{widgetProperties:o}){const n=i$2.get(e);n&&(n.set(o),n.afterUpdate?.(n,e));}function a(e){const t=i$2.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),i$2.delete(e));}function f(e){return "function"==typeof e&&e[t$3]}
|
1940
|
+
|
1941
|
+
/*
|
1942
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1943
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1944
|
+
*/
|
1945
|
+
const e$4=new Set;function n$1(n){e$4.add(n),n.finally((()=>e$4.delete(n)));}
|
1946
|
+
|
1947
|
+
/*
|
1948
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1949
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1950
|
+
*/
|
1951
|
+
var $;const U="esri.widgets.Widget";let z=0;function W(e,t){const r=Object.prototype.hasOwnProperty;for(const s in t)r.call(t,s)&&r.call(e,s)&&(null!=e[s]&&null!=t[s]&&"object"==typeof e[s]&&"object"==typeof t[s]?W(e[s],t[s]):e[s]=t[s]);return e}const x=s$4({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(e,s,o,i)=>{const n=t?.(e,s,o,i),a=r.test(e);if(!((e=e.replace(r,"")).toLowerCase()in o)||a){const t=e[2].toLowerCase()+e.slice(3),r=e=>n?.call(o,e);o.addEventListener(t,r,a);const s=()=>o.removeEventListener(t,r,a),d=i.afterRemoved;i.afterRemoved=e=>{d?.(e),s();};}return n};},handleInterceptedEvent(e,t,r,s){const{eventPhase:o,type:i}=s,n=o===Event.CAPTURING_PHASE;let a=`on${i}${n?"capture":""}`;const d=t.properties;(d&&a in d||(a=`on${i[0].toUpperCase()}${i.slice(1)}${n?"Capture":""}`,d&&a in d))&&(t$5(),e.scheduleRender(),d[a].call(d.bind||r,s));}});let A=!1,O=class extends(n$a(o$6.EventedAccessor)){constructor(e,t){super(e,t),this._attached=!1,this._projector=x,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=k$1((async()=>{if(this._messageBundleProps?.length){const e=await Promise.allSettled(this._messageBundleProps.map((async({bundlePath:e,propertyName:t})=>{if(this.destroyed)return;let r=await h$6(e);this.uiStrings&&Object.keys(this.uiStrings)&&(r=W(a$5(r),this.uiStrings)),this[t]=r;})));if(this.destroyed)return;for(const t of e)"rejected"===t.status&&n$c.getLogger(this).error("widget-intl:locale-error",this.declaredClass,t.reason);}await this.loadLocale();})),n$3();const r="esri-widget-uid-"+n$8(),s=this.render.bind(this);this._trackingTarget=new s$9((()=>{this.autoRenderingEnabled&&this.scheduleRender();}));const o=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),i=()=>{if(!this._readyForTrueRender||this.destroyed)return null;const e=s()??o(),t=e.properties??={};if(t.key??=r,f(e.vnodeSelector)){if(!this.visible)return o()}else this.visible?t.styles||(t.styles={}):(t.class="",t.styles={display:"none"}),t.styles.display??="";let i=0;return e.children?.forEach((e=>{f(e.vnodeSelector)||(e.properties??={},e.properties.key??=`${this.id}--${i++}`);})),d$1(this,e)};this.render=()=>{if(A)return i();let e=e$8(this)??null;if(e)return e;this._trackingTarget.clear(),A=!0;try{e=f$4(this._trackingTarget,i);}catch(t){throw n$c.getLogger(this).error(t),t}finally{A=!1;}return e&&c$4(this,e),e};const d=this.beforeFirstRender();d?this._resourcesFetch=d.then((()=>{this._readyForTrueRender=!0,this._postInitialize();})):(this._resourcesFetch=Promise.resolve().then((()=>{this._postInitialize();})),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),n$1(this._resourcesFetch);}normalizeCtorArgs(e,t){const r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){const e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then((()=>{})).catch(f$5):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(u$4(this._trackingTarget),u$4(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,o$4(this));}set container(e){this._get("container")||this._set("container",e);}castContainer(e){return n$b(e)}get domNode(){return this.container}set domNode(e){this.container=e;}get icon(){return null}set icon(e){this._overrideIfSome("icon",e);}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+z++}set id(e){e&&this._set("id",e);}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e);}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e);}get[($=t$3,e$5)](){return {projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(o$4(this),this._projector.scheduleRender());}own(e){t$a(n$c.getLogger(this),"`Widget.own()` is deprecated in favor of 'Widget.addHandles()'",{replacement:"Widget.addHandles()",version:"4.28"}),this.addHandles(e);}classes(...e){return l$1.apply(this,e)}renderNow(){o$4(this),this._projector.renderNow();}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(d$6((()=>this.viewModel),((e,t)=>{t&&this.removeHandles("delegated-events"),e&&n$e(e)&&this.addHandles(this._delegatedEventNames.map((t=>o$8(e,t,(e=>{this.emit(t,e);})))),"delegated-events");}),A$2)),this.postInitialize();const e=async()=>{await this._loadLocale().catch(f$5),this.scheduleRender();};this.addHandles([g$3(e),d$6((()=>this.uiStrings),e),p$4((()=>this.container),(e=>{this.destroyed||this._attach(e);}),{initial:!0,once:!0})]);}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0);}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e);}};O[$]=!0,O.vnodeSelector="div",r$7([m$4()],O.prototype,"_readyForTrueRender",void 0),r$7([m$4({value:null})],O.prototype,"container",null),r$7([s$6("container")],O.prototype,"castContainer",null),r$7([m$4()],O.prototype,"icon",null),r$7([m$4()],O.prototype,"id",null),r$7([m$4()],O.prototype,"label",null),r$7([m$4()],O.prototype,"renderable",null),r$7([m$4()],O.prototype,"uiStrings",void 0),r$7([m$4()],O.prototype,"viewModel",void 0),r$7([m$4({value:!0})],O.prototype,"visible",null),r$7([m$4()],O.prototype,"key",void 0),r$7([m$4()],O.prototype,"children",void 0),r$7([m$4()],O.prototype,"afterCreate",void 0),r$7([m$4()],O.prototype,"afterUpdate",void 0),r$7([m$4()],O.prototype,"afterRemoved",void 0),O=r$7([a$3(U)],O);const B=O;
|
1952
|
+
|
1953
|
+
/*
|
1954
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1955
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1956
|
+
*/
|
1957
|
+
function e$3(e){return (s,r)=>{s.hasOwnProperty("_messageBundleProps")||(s._messageBundleProps=s._messageBundleProps?s._messageBundleProps.slice():[]);s._messageBundleProps.push({bundlePath:e,propertyName:r});}}
|
1958
|
+
|
1959
|
+
/*
|
1960
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1961
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1962
|
+
*/
|
1963
|
+
var e$2=function(r){return {vnodeSelector:"",properties:void 0,children:void 0,text:r.toString(),domNode:null}},o=function(r,t){for(var n=0,i=r.length;n<i;n++){var d=r[n];Array.isArray(d)?o(d,t):null!=d&&!1!==d&&(d.hasOwnProperty("vnodeSelector")||(d=e$2(d)),t.push(d));}},t$2=function(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];if(1===t.length&&"string"==typeof t[0])return {vnodeSelector:r,properties:e||void 0,children:void 0,text:t[0],domNode:null};var i=[];return o(t,i),{vnodeSelector:r,properties:e||void 0,children:i,text:void 0,domNode:null}};function n(e,o,...n){return "function"!=typeof e||f(e)?t$2(e,o,...n):e(o,...n)}
|
1964
|
+
|
1965
|
+
/*
|
1966
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1967
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1968
|
+
*/
|
1969
|
+
const t$1="calcite-mode-";function e$1(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function r$1(){return e$1().startsWith("dark")}function c(){return `${t$1}${r$1()?"dark":"light"}`}
|
1970
|
+
|
1971
|
+
/*
|
1972
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1973
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1974
|
+
*/
|
1975
|
+
const p$1="esri-identity-modal",u={base:p$1,info:`${p$1}__info`,notice:`${p$1}__notice`},d="ArcGIS Online";let m=class extends B{constructor(t,e){super(t,e),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container);}loadDependencies(){return r$2({button:()=>import('./calcite-button-e86d99b3.js'),dialog:()=>import('./calcite-dialog-f5f9cfea.js'),input:()=>import('./calcite-input-1f12bce0.js'),label:()=>import('./calcite-label-d80f6f1c.js'),notice:()=>import('./calcite-notice-acc12411.js')})}get title(){return this.commonMessages?.auth.signIn}render(){const{open:t,title:e,messages:s,signingIn:o,oAuthPrompt:i,server:n$1,resource:r,error:p}=this,{info:m,oAuthInfo:h,lblItem:g,invalidUser:b,noAuthService:f,lblUser:v,lblPwd:_,lblCancel:y,lblSigning:I,lblOk:j}=s;return n("div",{class:this.classes(u.base,c())},n("form",{bind:this,onsubmit:this._submit},n("calcite-dialog",{bind:this,heading:e,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},n("div",{class:u.info},s$8(i?h:m,{server:n$1&&/\.arcgis\.com/i.test(n$1)?d:n$1,resource:`(${r||g})`})),p?n("calcite-notice",{class:u.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},n("div",{slot:"message"},p.details?.httpStatus?b:f)):null,i?null:[n("calcite-label",null,v,n("calcite-input",{afterCreate:t=>this._usernameInputNode=t,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),n("calcite-label",null,_,n("calcite-input",{afterCreate:t=>this._passwordInputNode=t,bind:this,name:"password",required:!0,type:"password",value:""}))],n("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},y),n("calcite-button",{loading:!!o,slot:"footer-end",type:"submit"},o?I:j))))}_focusUsernameInput(){return w$1((()=>this._usernameInputNode))}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel");}_submit(t){t.preventDefault(),this._set("signingIn",!0);const e=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",e);}};r$7([m$4({readOnly:!0})],m.prototype,"container",void 0),r$7([m$4(),e$3("esri/t9n/common")],m.prototype,"commonMessages",void 0),r$7([m$4()],m.prototype,"error",void 0),r$7([m$4(),e$3("esri/identity/t9n/identity")],m.prototype,"messages",void 0),r$7([m$4()],m.prototype,"oAuthPrompt",void 0),r$7([m$4()],m.prototype,"open",void 0),r$7([m$4()],m.prototype,"signingIn",void 0),r$7([m$4()],m.prototype,"server",void 0),r$7([m$4({readOnly:!0})],m.prototype,"title",null),r$7([m$4()],m.prototype,"resource",void 0),m=r$7([a$3("esri.identity.IdentityModal")],m);const h=m;
|
1976
|
+
|
1977
|
+
/*
|
1978
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1979
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1980
|
+
*/
|
1981
|
+
const t="esriJSAPIOAuth";class e{constructor(t,e){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=t,this.storage=e,this._init();}isValid(){let t=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==this.expires&&this.refreshToken)t=!0;else if(this.expires){const e=Date.now();if(this.expires>e){(this.expires-e)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(t=!0);}}return t}save(){if(!this.storage)return !1;const e=this._load(),s=this.oAuthInfo;if(s?.authNamespace&&s.portalUrl){let r=e[s.authNamespace];r||(r=e[s.authNamespace]={}),this.appId||(this.appId=s.appId),r[s.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(t,JSON.stringify(e));}catch(i){return console.warn(i),!1}return !0}return !1}destroy(){const e=this._load(),s=this.oAuthInfo;if(s?.appId&&s?.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){const t=s.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",e=new FormData;if(e.append("f","json"),e.append("auth_token",this.refreshToken||this.token),e.append("client_id",s.appId),e.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(t,e);else {const s=new XMLHttpRequest;s.open("POST",t),s.send(e);}}if(s?.authNamespace&&s.portalUrl&&this.storage){const r=e[s.authNamespace];if(r){delete r[s.portalUrl];try{this.storage.setItem(t,JSON.stringify(e));}catch(i){console.log(i);}}}s&&(s._oAuthCred=null,this.oAuthInfo=null);}_init(){const t=this._load(),e=this.oAuthInfo;if(e?.authNamespace&&e.portalUrl){let s=t[e.authNamespace];s&&(s=s[e.portalUrl],s&&(this.appId=s.appId,this.codeVerifier=s.codeVerifier,this.expires=s.expires,this.refreshToken=s.refreshToken,this.ssl=s.ssl,this.stateUID=s.stateUID,this.token=s.token,this.userId=s.userId));}}_load(){let e={};if(this.storage){const i=this.storage.getItem(t);if(i)try{e=JSON.parse(i);}catch(s){console.warn(s);}}return e}}e.prototype.declaredClass="esri.identity.OAuthCredential";
|
1982
|
+
|
1983
|
+
/*
|
1984
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1985
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1986
|
+
*/
|
1987
|
+
var p;let s$2=p=class extends f$6{constructor(o){super(o),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null;}clone(){return p.fromJSON(this.toJSON())}};r$7([m$4({json:{write:!0}})],s$2.prototype,"appId",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"authNamespace",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"expiration",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"flowType",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"forceLogin",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"forceUserId",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"locale",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"minTimeUntilExpiration",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"popup",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"popupCallbackUrl",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"popupWindowFeatures",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"portalUrl",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"preserveUrlHash",void 0),r$7([m$4({json:{write:!0}})],s$2.prototype,"userId",void 0),s$2=p=r$7([a$3("esri.identity.OAuthInfo")],s$2);const i$1=s$2;
|
1988
|
+
|
1989
|
+
/*
|
1990
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1991
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1992
|
+
*/
|
1993
|
+
let i=class extends f$6{constructor(o){super(o),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null;}};r$7([m$4({json:{write:!0}})],i.prototype,"adminTokenServiceUrl",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"currentVersion",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"hasPortal",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"hasServer",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"owningSystemUrl",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"owningTenant",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"server",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"shortLivedTokenValidity",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"tokenServiceUrl",void 0),r$7([m$4({json:{write:!0}})],i.prototype,"webTierAuth",void 0),i=r$7([a$3("esri.identity.ServerInfo")],i);const s$1=i;
|
1994
|
+
|
1995
|
+
/*
|
1996
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
1997
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
1998
|
+
*/
|
1999
|
+
const R={},C=e=>{const t=new x$3(e.owningSystemUrl).host,r=new x$3(e.server).host,s=/.+\.arcgis\.com$/i;return s.test(t)&&s.test(r)},D=(e,t)=>!!(C(e)&&t&&t.some((t=>t.test(e.server))));let b=null,q=null;try{b=window.localStorage,q=window.sessionStorage;}catch{}class j extends o$6{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=I(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",(e=>{this._pageShowHandler(e);}));}registerServers(e){const t=this.serverInfos;t?(e=e.filter((e=>!this.findServerInfo(e.server))),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach((e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server);}));}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const r of e){const e=this.findOAuthInfo(r.portalUrl);e&&t.splice(t.indexOf(e),1);}this.oAuthInfos=t.concat(e);}else this.oAuthInfos=e;}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),r=this._isServerRsrc(t);let s,i=this.findServerInfo(t),o=!0;i||(i=new s$1,i.server=this._getServerInstanceRoot(t),r?i.hasServer=!0:(i.tokenServiceUrl=this._getTokenSvcUrl(t),i.hasPortal=!0),this.registerServers([i])),s=this._findCredential(t),s?(delete e.server,Object.assign(s,e),o=!1):(s=new E({userId:e.userId,server:i.server??void 0,token:e.token,expires:e.expires,ssl:e.ssl,scope:r?"server":"portal"}),s.resources=[t],this.credentials.push(s)),s.emitTokenChange(!1),o||s.refreshServerTokens();}toJSON(){return l$6({serverInfos:this.serverInfos.map((e=>e.toJSON())),oAuthInfos:this.oAuthInfos.map((e=>e.toJSON())),credentials:this.credentials.map((e=>e.toJSON()))})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,r=e.oAuthInfos,s=e.credentials;if(t){const e=[];t.forEach((t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new s$1(t));})),e.length&&this.registerServers(e);}if(r){const e=[];r.forEach((t=>{t.appId&&e.push(t.declaredClass?t:new i$1(t));})),e.length&&this.registerOAuthInfos(e);}s&&s.forEach((e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new E(e)).emitTokenChange(),this.credentials.push(e));}));}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){if(!e)return;let r;e=this._sanitizeUrl(e);const s=this._isServerRsrc(e)?"server":"portal";if(t){for(const i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&t===i.userId&&i.scope===s){r=i;break}}else for(const i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&-1!==this._getIdenticalSvcIdx(e,i)&&i.scope===s){r=i;break}return r}getCredential(e,t){let r,s,o=!0;t&&(r=!!t.token,s=t.error,o=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const n=new AbortController,a=L$1();if(t.signal&&m$5(t.signal,(()=>{n.abort();})),m$5(n,(()=>{a.reject(new s$a("identity-manager:user-aborted","ABORTED"));})),c$7(n))return a.promise;t.signal=n.signal;const h=this._isAdminResource(e),u=r?this.findCredential(e):null;let _;if(u&&s&&s.details&&498===s.details.httpStatus)u.destroy();else if(u)return _=new s$a("identity-manager:not-authorized","You are currently signed in as: '"+u.userId+"'. You do not have access to this resource: "+e,{error:s}),a.reject(_),a.promise;const f=this._findCredential(e,t);if(f)return a.resolve(f),a.promise;let g=this.findServerInfo(e);if(g)!g.hasPortal&&g.server&&g.owningSystemUrl&&this._hasSameServerInstance(g.server,g.owningSystemUrl)&&(g.hasPortal=!0),!g.hasServer&&this._isServerRsrc(e)&&(g._restInfoPms=this._getTokenSvcUrl(e),g.hasServer=!0);else {const t=this._getTokenSvcUrl(e);if(!t)return _=new s$a("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),a.reject(_),a.promise;g=new s$1,g.server=this._getServerInstanceRoot(e),"string"==typeof t?(g.tokenServiceUrl=t,g.hasPortal=!0):(g._restInfoPms=t,g.hasServer=!0),this.registerServers([g]);}return g.hasPortal&&void 0===g._selfReq&&(o||F(g.tokenServiceUrl,this._appOrigin)||this._gwDomains.some((e=>e.tokenServiceUrl===g.tokenServiceUrl)))&&(g._selfReq={owningTenant:t?.owningTenant,selfDfd:this._getPortalSelf(g.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,g,t,a,h)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){const o=this._rePortalTokenSvc.test(e.tokenServiceUrl),n=new x$3(this._appOrigin),a=e.shortLivedTokenValidity;let h,l,c,d,u,f,g,m;t&&(m=this.tokenValidity||a||this._defaultTokenValidity,m>a&&a>0&&(m=a)),r&&(h=r.isAdmin,l=r.serverUrl,c=r.token,f=r.signal,g=r.ssl,e.customParameters=r.customParameters),h?d=e.adminTokenServiceUrl:(d=e.tokenServiceUrl,u=new x$3(d.toLowerCase()),e.webTierAuth&&r?.serverUrl&&!g&&"http"===n.scheme&&(F(n.uri,d,!0)||"https"===u.scheme&&n.host===u.host&&"7080"===n.port&&"7443"===u.port)&&(d=d.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const v={query:{request:"getToken",username:t?.username,password:t?.password,serverUrl:l,token:c,expiration:m,referer:h||o?this._appOrigin:null,client:h?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:f,...r?.ioArgs};o||(v.withCredentials=!1);return U$1(d,v).then((r=>{const s=r.data;if(!s?.token)return new s$a("identity-manager:authentication-failed","Unable to generate token");const o=e.server;return R[o]||(R[o]={}),t&&(R[o][t.username]=t.password),s.validity=m,s}))}isBusy(){return !!this._busy}async checkSignInStatus(e){return (await this.checkAppAccess(e,"")).credential}checkAppAccess(e,t,r){let o=!1;return this.getCredential(e,{prompt:!1}).then((n=>{let a;const h={f:"json"};if("portal"===n.scope)if(t&&(this._doPortalSignIn(e)||r?.force))a=n.server+"/sharing/rest/oauth2/validateAppAccess",h.client_id=t;else {if(!n.token)return {credential:n};a=n.server+"/sharing/rest";}else {if(!n.token)return {credential:n};a=n.server+"/rest/services";}return n.token&&(h.token=n.token),U$1(a,{query:h,authMode:"anonymous"}).then((e=>{if(!1===e.data.valid)throw new s$a("identity-manager:not-authorized",`You are currently signed in as: '${n.userId}'.`,e.data);return o=!!e.data.viewOnlyUserTypeApp,{credential:n}})).catch((e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details?.httpStatus;if(498===t)throw n.destroy(),new s$a("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new s$a("identity-manager:invalid-request");return {credential:n}}))})).then((e=>({credential:e.credential,viewOnly:o})))}setOAuthResponseHash(e){e&&("#"===e.charAt(0)&&(e=e.slice(1)),this._processOAuthPopupParams(A$4(e)));}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e;}setProtocolErrorHandler(e){this._protocolFunc=e;}signIn(e,t,r={}){const s=L$1(),o=()=>{h$1?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=h$1=d=null;},n=()=>{o(),this._oAuthDfd=null,s.reject(new s$a("identity-manager:user-aborted","ABORTED"));};r.signal&&m$5(r.signal,(()=>{n();}));const a=new h({open:!0,resource:this.getResourceName(e),server:t.server});this.dialog=a,this.emit("dialog-create");let h$1=a.on("cancel",n),d=a.on("submit",(e=>{this.generateToken(t,e,{isAdmin:r.isAdmin,signal:r.signal}).then((i=>{o();const n=new E({userId:e.username,server:t.server??void 0,token:i.token,expires:null!=i.expires?Number(i.expires):null,ssl:!!i.ssl,isAdmin:r.isAdmin,validity:i.validity});s.resolve(n);})).catch((e=>{a.error=e,a.signingIn=!1;}));}));return s.promise}oAuthSignIn(e,t,r,s){this._oAuthDfd=L$1();const o=this._oAuthDfd;let n;s?.signal&&m$5(s.signal,(()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&u();})),o.resUrl_=e,o.sinfo_=t,o.oinfo_=r;const a=r._oAuthCred;if(a.storage&&("authorization-code"===r.flowType||"auto"===r.flowType&&t.currentVersion>=8.4)){let e=crypto.getRandomValues(new Uint8Array(32));n=et(e),a.codeVerifier=n,e=crypto.getRandomValues(new Uint8Array(32)),a.stateUID=et(e),a.save()||(a.codeVerifier=n=null);}else a.codeVerifier=null;let h$1,d;this._getCodeChallenge(n).then((i=>{const o=!s||!1!==s.oAuthPopupConfirmation;if(!r.popup||!o)return void this._doOAuthSignIn(e,t,r,i);const n=new h({oAuthPrompt:!0,server:t.server,open:!0});this.dialog=n,this.emit("dialog-create"),h$1=n.on("cancel",u),d=n.on("submit",(()=>{p(),this._doOAuthSignIn(e,t,r,i);}));}));const u=()=>{p(),this._oAuthDfd=null,o.reject(new s$a("identity-manager:user-aborted","ABORTED"));},p=()=>{h$1?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null;};return o.promise}destroyCredentials(){if(this.credentials){this.credentials.slice().forEach((e=>{e.destroy();}));}this.emit("credentials-destroy");}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=o$8(window,"message",(t=>{if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===t.data?.type){const r=t.source;this.getCredential(e).then((e=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin);})).catch((e=>{r.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin);}));}}));}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null);}_getOAuthLocationParams(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.slice(1));const t=A$4(e);let r=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),t.state.portalUrl&&(this._oAuthLocationParams=t,r=!0);}catch{}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(r=!0,t.state)))try{t.state=JSON.parse(t.state);}catch{}r&&(window.location.hash=t.state?.hash||"");}let t=window.location.search;if(t){"?"===t.charAt(0)&&(t=t.slice(1));const e=A$4(t);let r=!1;if(e.code&&e.state)try{e.state=JSON.parse(e.state),e.state.portalUrl&&e.state.uid&&(this._oAuthLocationParams=e,r=!0);}catch{}else if(e.error&&e.error_description&&(console.log("IdentityManager OAuth Error: ",e.error," - ",e.error_description),"access_denied"===e.error&&(r=!0,e.state)))try{e.state=JSON.parse(e.state);}catch{}if(r){const t={...e};["code","error","error_description","message_code","persist","state"].forEach((e=>{delete t[e];}));const r=v$4(t),s=window.location.pathname+(r?`?${r}`:"")+(e.state?.hash||"");window.history.replaceState(window.history.state,"",s);}}}_getOAuthToken(e,t,r,i,o){return e=e.replace(/^http:/i,"https:"),U$1(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:t,redirect_uri:i,client_id:r,code_verifier:o}:{grant_type:"refresh_token",refresh_token:t,client_id:r}}).then((e=>e.data))}async _getCodeChallenge(e){if(e&&globalThis.isSecureContext){const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t);return et(new Uint8Array(r))}return null}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new s$a("identity-manager:user-aborted","ABORTED");this._errbackFunc(e);}}_findCredential(e,t){let r,s,i,o,n=-1;const a=t?.token,h=t?.resource,l=this._isServerRsrc(e)?"server":"portal",c=this.credentials.filter((t=>this._hasSameServerInstance(t.server,e)&&t.scope===l));if(e=h||e,c.length)if(1===c.length){if(r=c[0],i=this.findServerInfo(r.server),s=i?.owningSystemUrl,o=s?this.findCredential(s,r.userId):void 0,n=this._getIdenticalSvcIdx(e,r),!a)return -1===n&&r.resources.push(e),this._addResource(e,o),r;-1!==n&&(r.resources.splice(n,1),this._removeResource(e,o));}else {let t,r;if(c.some((a=>(r=this._getIdenticalSvcIdx(e,a),-1!==r&&(t=a,i=this.findServerInfo(t.server),s=i?.owningSystemUrl,o=s?this.findCredential(s,t.userId):void 0,n=r,!0)))),a)t&&(t.resources.splice(n,1),this._removeResource(e,o));else if(t)return this._addResource(e,o),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e);}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1));}_useProxy(e,t){return t?.isAdmin&&!F(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!F(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new x$3(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let r=t.indexOf(this._agsRest);return -1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1!==r||a$6(t)||(r=t.indexOf("/sharing")),-1===r&&t.endsWith("/")&&(r=t.length-1),r>-1?e.slice(0,r):e}_hasSameServerInstance(e,t){return e.endsWith("/")&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=r$9(e),t=r$9(t),(e=e.slice(Math.max(0,e.indexOf(":"))))===(t=t.slice(Math.max(0,t.indexOf(":"))))}_sanitizeUrl(e){const r=(s$b.request.proxyUrl||"").toLowerCase(),s=r?e.toLowerCase().indexOf(r+"?"):-1;return -1!==s&&(e=e.slice(s+r.length+1)),e=K(e),I(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r=!1;if(this._isRESTService(e)&&this._isRESTService(t)){const s=this._getSuffix(e).toLowerCase(),i=this._getSuffix(t).toLowerCase();if(r=s===i,!r){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=s.replaceAll(e,"$1")===i.replaceAll(e,"$1");}}else this._isAdminResource(e)&&this._isAdminResource(t)?r=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(r=!0);return r}_isPortalDomain(e){const r=new x$3(e.toLowerCase()),s=this._portalConfig;let i=this._gwDomains.some((e=>e.regex.test(r.uri)));return !i&&s&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(s.restBaseUrl),r.uri)),i||s$b.portalUrl&&(i=F(r,s$b.portalUrl,!0)),i||(i=this._portals.some((e=>this._hasSameServerInstance(e,r.uri)))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(e,t){let r=-1,s=-1;this._gwDomains.forEach(((i,o)=>{-1===r&&i.regex.test(e)&&(r=o),-1===s&&i.regex.test(t)&&(s=o);}));let i=!1;if(r>-1&&s>-1&&(0===r||4===r?0!==s&&4!==s||(i=!0):1===r?1!==s&&2!==s||(i=!0):2===r?2===s&&(i=!0):3===r&&3===s&&(i=!0)),!i){const r=this.findServerInfo(t),s=r?.owningSystemUrl;s&&C(r)&&this._isPortalDomain(s)&&this._isIdProvider(e,s)&&(i=!0);}return i}_getIdenticalSvcIdx(e,t){let r=-1;for(let s=0;s<t.resources.length;s++){const i=t.resources[s];if(this._isIdenticalService(e,i)){r=s;break}}return r}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,r,i;if(this._isRESTService(e)||this._isAdminResource(e)){const i=this._getServerInstanceRoot(e);return t=i+"/admin/generateToken",r=U$1(e=i+"/rest/info",{query:{f:"json"}}).then((e=>e.data)),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some((r=>(r.regex.test(e)&&(t=r.tokenServiceUrl),!!t))),t||this._portals.some((r=>(this._hasSameServerInstance(r,e)&&(t=r+this._gwTokenUrl),!!t))),t||(i=e.toLowerCase().indexOf("/sharing"),-1!==i&&(t=e.slice(0,i)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const r=new x$3(e).port;/^http:\/\//i.test(e)&&"7080"===r&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:");}return t}}_processOAuthResponseParams(e,t,r){const s=t._oAuthCred;if(e.code){const i=s.codeVerifier;return s.codeVerifier=null,s.stateUID=null,s.save(),this._getOAuthToken(r.server,e.code,t.appId,this._getRedirectURI(t,!0),i).then((i=>{const o=new E({userId:i.username,server:r.server??void 0,token:i.access_token,expires:Date.now()+1e3*i.expires_in,ssl:i.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=o.userId,s.storage=i.persist?b:q,s.refreshToken=i.refresh_token,s.token=null,s.expires=i.refresh_token_expires_in?Date.now()+1e3*i.refresh_token_expires_in:null,s.userId=o.userId,s.ssl=o.ssl,s.save(),o}))}const i=new E({userId:e.username,server:r.server??void 0,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=i.userId,s.storage=e.persist?b:q,s.refreshToken=null,s.token=i.token,s.expires=i.expires,s.userId=i.userId,s.ssl=i.ssl,s.save(),Promise.resolve(i)}_processOAuthPopupParams(e){const t=this._oAuthDfd;if(this._oAuthDfd=null,t)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){const r="access_denied"===e.error,s=new s$a(r?"identity-manager:user-aborted":"identity-manager:authentication-failed",r?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);t.reject(s);}else this._processOAuthResponseParams(e,t.oinfo_,t.sinfo_).then((e=>{t.resolve(e);})).catch((e=>{t.reject(e);}));}_setOAuthResponseQueryString(e){e&&("?"===e.charAt(0)&&(e=e.slice(1)),this._processOAuthPopupParams(A$4(e)));}async _exchangeToken(e,t,r){return (await U$1(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}})).data.token}async _getPlatformSelf(e,t){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];e=e.replace(/^http:/i,"https:");try{const r=await U$1(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,r.data}catch(r){throw "OAUTH_0066"===r.details?.messageCode&&(this._getPlatformSelfError=[r,Date.now()]),r}}_getPortalSelf(e,t){let r;if(this._gwDomains.some((t=>(t.regex.test(e)&&(r=t.customBaseUrl),!!r))),r)return Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0});this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080"));return U$1(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then((e=>e.data))}_doPortalSignIn(e){const t=this._portalConfig,r=window.location.href,s=this.findServerInfo(e);return !(!t&&!this._isPortalDomain(r)||!(s?s.hasPortal||s.owningSystemUrl&&this._isPortalDomain(s.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||F(r,e,!0)))}_checkProtocol(e,t,r,s){let o=!0;const n=s?t.adminTokenServiceUrl:t.tokenServiceUrl;if(n.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&T(n)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!o)){r(new s$a("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection."));}return o}_enqueue(e,t,r,s,i,o){return s||(s=L$1()),s.resUrl_=e,s.sinfo_=t,s.options_=r,s.admin_=i,s.refresh_=o,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(s)):this._xoReqs.push(s):this._doSignIn(s),s.promise}_doSignIn(e$1){this._busy=e$1,this._rejectOnPersistedPageShow=!1;const t=t=>{const r=e$1.options_?.resource,s=e$1.resUrl_,i=e$1.refresh_;let o=!1;this.credentials.includes(t)||(i&&this.credentials.includes(i)?(i.userId=t.userId,i.token=t.token,i.expires=t.expires,i.validity=t.validity,i.ssl=t.ssl,i.creationTime=t.creationTime,o=!0,t=i):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.includes(r||s)||t.resources.push(r||s),t.scope=this._isServerRsrc(s)?"server":"portal",t.emitTokenChange();const n=this._soReqs,a={};this._soReqs=[],n.forEach((e=>{if(!this._isIdenticalService(s,e.resUrl_)){const r=this._getSuffix(e.resUrl_);a[r]||(a[r]=!0,t.resources.push(e.resUrl_));}})),e$1.resolve(t),n.forEach((e=>{this._hasSameServerInstance(this._getServerInstanceRoot(s),e.resUrl_)?e.resolve(t):this._soReqs.push(e);})),this._busy=e$1.resUrl_=e$1.sinfo_=e$1.refresh_=null,o||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift());},r=t=>{e$1.reject(t),this._busy=e$1.resUrl_=e$1.sinfo_=e$1.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift());},s=(o,a,h,l)=>{const d=e$1.sinfo_,u=!e$1.options_||!1!==e$1.options_.prompt,_=d.hasPortal&&this._findOAuthInfo(e$1.resUrl_);let f,g;if(o)t(new E({userId:o,server:d.server??void 0,token:h??void 0,expires:null!=l?Number(l):null,ssl:!!a}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e$1.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const s=o$8(window,"message",(e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(s.remove(),e.data.credential.expires<Date.now()?r(new s$a("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new E(e.data.credential))):"arcgis:auth:error"===e.data.type&&(s.remove(),"tokenExpiredError"===e.data.error.name?r(new s$a("identity-manager:credential-request-failed","Parent application's token has expired.")):r(s$a.fromJSON(e.data.error))));}));m$5(e$1.options_?.signal,(()=>{s.remove();}));}else if(_){let o=_._oAuthCred;if(!o){const e$1=new e(_,b),t=new e(_,q);e$1.isValid()&&t.isValid()?e$1.expires>t.expires?(o=e$1,t.destroy()):(o=t,e$1.destroy()):o=e$1.isValid()?e$1:t,_._oAuthCred=o;}if(o.isValid()){f=new E({userId:o.userId??void 0,server:d.server??void 0,token:o.token??void 0,expires:o.expires,ssl:o.ssl??void 0,_oAuthCred:o});const i=_.appId!==o.appId&&this._doPortalSignIn(e$1.resUrl_);i||o.refreshToken?(e$1._pendingDfd=o.refreshToken?this._getOAuthToken(d.server,o.refreshToken,o.appId).then((e=>(f.expires=Date.now()+1e3*e.expires_in,f.token=e.access_token,f))):Promise.resolve(f),e$1._pendingDfd.then((e=>i?this._exchangeToken(e.server,_.appId,e.token).then((t=>(e.token=t,e))).catch((()=>e)):e)).then((e=>{t(e);})).catch((e=>{const t=e.details?.httpStatus;t>0&&404!==t?(o.destroy(),s()):r(e);}))):t(f);}else if(this._oAuthLocationParams&&this._hasSameServerInstance(_.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===o.stateUID&&o.codeVerifier)){const s=this._oAuthLocationParams;this._oAuthLocationParams=null,e$1._pendingDfd=this._processOAuthResponseParams(s,_,d).then((e=>{t(e);})).catch(r);}else {const s=()=>{u?e$1._pendingDfd=this.oAuthSignIn(e$1.resUrl_,d,_,e$1.options_).then(t,r):(g=new s$a("identity-manager:not-authenticated","User is not signed in."),r(g));};this._doPortalSignIn(e$1.resUrl_)?e$1._pendingDfd=this._getPlatformSelf(d.server,_.appId).then((e=>{F(e.portalUrl,this._appOrigin,!0)?(f=new E({userId:e.username,server:d.server??void 0,expires:Date.now()+1e3*e.expires_in,token:e.token}),t(f)):s();})).catch(s):s();}}else if(u){if(this._checkProtocol(e$1.resUrl_,d,r,e$1.admin_)){let s=e$1.options_;e$1.admin_&&(s=s||{},s.isAdmin=!0),e$1._pendingDfd=this.signIn(e$1.resUrl_,d,s).then(t,r);}}else g=new s$a("identity-manager:not-authenticated","User is not signed in."),r(g);},o=()=>{const s=e$1.sinfo_,i=s.owningSystemUrl,o=e$1.options_;let n,a,h,l;if(o&&(n=o.token,a=o.error,h=o.prompt),l=this._findCredential(i,{token:n,resource:e$1.resUrl_}),!l)for(const e of this.credentials)if(this._isIdProvider(i,e.server)){l=e;break}if(l){const i=this.findCredential(e$1.resUrl_,l.userId);if(i)t(i);else if(D(s,this._legacyFed)){const e=l.toJSON();e.server=s.server,e.resources=null,t(new E(e));}else {(e$1._pendingDfd=this.generateToken(this.findServerInfo(l.server),null,{serverUrl:e$1.resUrl_,token:l.token,signal:e$1.options_.signal,ssl:l.ssl})).then((r=>{t(new E({userId:l?.userId,server:s.server??void 0,token:r.token,expires:null!=r.expires?Number(r.expires):null,ssl:!!r.ssl,isAdmin:e$1.admin_,validity:r.validity}));}),r);}}else {this._busy=null,n&&(e$1.options_.token=null);(e$1._pendingDfd=this.getCredential(i.replace(/\/?$/,"/sharing"),{resource:e$1.resUrl_,owningTenant:s.owningTenant,signal:e$1.options_.signal,token:n,error:a,prompt:h})).then((()=>{this._enqueue(e$1.resUrl_,e$1.sinfo_,e$1.options_,e$1,e$1.admin_);}),(t=>{e$1.resUrl_=e$1.sinfo_=e$1.refresh_=null,e$1.reject(t);}));}};this._errbackFunc=r;const a=e$1.sinfo_.owningSystemUrl,l=this._isServerRsrc(e$1.resUrl_),d=e$1.sinfo_._restInfoPms;d?d.promise.then((t=>{const r=e$1.sinfo_;if(r._restInfoPms){r.adminTokenServiceUrl=r._restInfoPms.adminUrl,r._restInfoPms=null,r.tokenServiceUrl=(t$7("authInfo.tokenServicesUrl",t)||t$7("authInfo.tokenServiceUrl",t)||t$7("tokenServiceUrl",t))??null,r.shortLivedTokenValidity=t$7("authInfo.shortLivedTokenValidity",t)??null,r.currentVersion=t.currentVersion,r.owningTenant=t.owningTenant;const e=r.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e);}l&&r.owningSystemUrl?o():s();}),(()=>{e$1.sinfo_._restInfoPms=null;const t=new s$a("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(t);})):l&&a?o():e$1.sinfo_._selfReq?e$1.sinfo_._selfReq.selfDfd.then((t=>{const r={};let s,i,o,n;return t&&(s=t.user?.username,r.username=s,r.allSSL=t.allSSL,i=t.supportsOAuth,n=parseFloat(t.currentVersion),"multitenant"===t.portalMode&&(o=t.customBaseUrl),e$1.sinfo_.currentVersion=n),e$1.sinfo_.webTierAuth=!!s,s&&this.normalizeWebTierAuth?this.generateToken(e$1.sinfo_,null,{ssl:r.allSSL}).catch((()=>null)).then((e=>(r.portalToken=e?.token,r.tokenExpiration=e?.expires,r))):!s&&i&&n>=4.4&&!this._findOAuthInfo(e$1.resUrl_)?this._generateOAuthInfo({portalUrl:e$1.sinfo_.server,customBaseUrl:o,owningTenant:e$1.sinfo_._selfReq.owningTenant}).catch((()=>null)).then((()=>r)):r})).catch((()=>null)).then((t=>{e$1.sinfo_._selfReq=null,t?s(t.username,t.allSSL,t.portalToken,t.tokenExpiration):s();})):s();}_generateOAuthInfo(e){let t,r=null,i=e.portalUrl;const o=e.customBaseUrl,n=e.owningTenant,a=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){r=window.location.href;let e=r.indexOf("?");e>-1&&(r=r.slice(0,e)),e=r.search(/\/(apps|home)\//),r=e>-1?r.slice(0,e):null;}return a&&r?(this._hasTestedIfAppIsOnPortal=!0,t=U$1(r+"/sharing/rest",{query:{f:"json"}}).then((()=>{this._defaultOAuthInfo=new i$1({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"});}))):t=Promise.resolve(),t.then((()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),U$1(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:n,client_id:this._defaultOAuthInfo.appId,redirect_uri:_(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then((e=>{if(e.data.valid){const t=this._defaultOAuthInfo.clone();e.data.urlKey&&o?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+o:t.portalUrl=i,t.popup=window!==window.top||!(F(i,this._appOrigin)||this._gwDomains.some((e=>e.regex.test(i)&&e.regex.test(this._appOrigin)))),this.oAuthInfos.push(t);}}))}))}_doOAuthSignIn(e,t,r,s){const o=r._oAuthCred,a={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(a.hash=window.location.hash),o.stateUID&&(a.uid=o.stateUID);const h={client_id:r.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(a),expiration:r.expiration,locale:r.locale,redirect_uri:this._getRedirectURI(r,!!o.codeVerifier)};r.forceLogin&&(h.force_login=!0),r.forceUserId&&r.userId&&(h.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(h.redirectToUserOrgUrl=!0),o.codeVerifier&&(h.code_challenge=s||o.codeVerifier,h.code_challenge_method=s?"S256":"plain");const l=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",c=l+"?"+v$4(h);if(r.popup){const e=window.open(c,"esriJSAPIOAuth",r.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval((()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();const e=this._oAuthDfd;if(e){const t=new s$a("identity-manager:user-aborted","ABORTED");e.reject(t);}}}),500),this._oAuthOnPopupHandle=o$8(window,["arcgis:auth:hash","arcgis:auth:location:search"],(e=>{"arcgis:auth:hash"===e.type?this.setOAuthResponseHash(e.detail):this._setOAuthResponseQueryString(e.detail);}));else {const e=new s$a("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e);}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:h,authorizeUrl:l,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=c;}_getRedirectURI(e,t){const r=window.location.href.replace(/#.*$/,"");if(e.popup)return _(e.popupCallbackUrl);if(t){const e=I(r);return e.query&&["code","error","error_description","message_code","persist","state"].forEach((t=>{delete e.query[t];})),Et(e.path,e.query)}return r}}j.prototype.declaredClass="esri.identity.IdentityManagerBase";let E=class extends o$6.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred);}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now());}refreshToken(){const e=i$7,t=e.findServerInfo(this.server),s=t?.owningSystemUrl,i=!!s&&"server"===this.scope,o=i&&D(t,e._legacyFed),n=t.webTierAuth,a=n&&e.normalizeWebTierAuth,h=R[this.server],l=h?.[this.userId];let c,d=this.resources&&this.resources[0],u=i?e.findServerInfo(s):null,p={username:this.userId,password:l};if(n&&!a)return;i&&!u&&e.serverInfos.some((t=>(e._isIdProvider(s,t.server)&&(u=t),!!u)));const _=u?e.findCredential(u.server,this.userId):null;if(!i||_){if(!o){if(i)c={serverUrl:d,token:_?.token,ssl:_?.ssl};else if(a)p=null,c={ssl:this.ssl};else {if(!l){let r;return d&&(d=e._sanitizeUrl(d),this._enqueued=1,r=e._enqueue(d,t,null,null,this.isAdmin,this),r.then((()=>{this._enqueued=0,this.refreshServerTokens();})).catch((()=>{this._enqueued=0;}))),r}this.isAdmin&&(c={isAdmin:!0});}return e.generateToken(i?u:t,i?null:p,c).then((e=>{this.token=e.token,this.expires=null!=e.expires?Number(e.expires):null,this.creationTime=Date.now(),this.validity=e.validity,this.emitTokenChange(),this.refreshServerTokens();})).catch((()=>{}))}_?.refreshToken();}}refreshServerTokens(){if("portal"===this.scope){const e=i$7;e.credentials.forEach((t=>{const r=e.findServerInfo(t.server),s=r?.owningSystemUrl;t!==this&&t.userId===this.userId&&s&&"server"===t.scope&&(e._hasSameServerInstance(this.server,s)||e._isIdProvider(s,this.server))&&(D(r,e._legacyFed)?(t.token=this.token,t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.emitTokenChange()):t.refreshToken());}));}}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=i$7,s=this.server?t.findServerInfo(this.server):null,i=s?.owningSystemUrl,o=i?t.findServerInfo(i):null;!1===e||i&&"portal"!==this.scope&&(!o?.webTierAuth||t.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change");}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=i$7,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy");}toJSON(){const e=l$6({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r);}};r$7([m$4()],E.prototype,"creationTime",void 0),r$7([m$4()],E.prototype,"expires",void 0),r$7([m$4()],E.prototype,"isAdmin",void 0),r$7([m$4()],E.prototype,"oAuthState",void 0),r$7([m$4()],E.prototype,"resources",void 0),r$7([m$4()],E.prototype,"scope",void 0),r$7([m$4()],E.prototype,"server",void 0),r$7([m$4()],E.prototype,"ssl",void 0),r$7([m$4()],E.prototype,"token",void 0),r$7([m$4()],E.prototype,"tokenRefreshBuffer",void 0),r$7([m$4()],E.prototype,"userId",void 0),r$7([m$4()],E.prototype,"validity",void 0),E=r$7([a$3("esri.identity.Credential")],E);
|
2000
|
+
|
2001
|
+
/*
|
2002
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
2003
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
2004
|
+
*/
|
2005
|
+
class r extends j{}r.prototype.declaredClass="esri.identity.IdentityManager";const s=new r;n$f(s);
|
2006
|
+
|
2007
|
+
const IdentityManager = /*#__PURE__*/Object.freeze({
|
2008
|
+
__proto__: null,
|
2009
|
+
'default': s
|
2010
|
+
});
|
2011
|
+
|
2012
|
+
export { CSS_UTILITY as C, DEBOUNCE as D, Fragment as F, H, IdentityManager as I, Host as a, focusTrapStack as b, createEvent as c, forceUpdate as f, getAssetPath as g, h$1 as h, isBrowser as i, proxyCustomElement as p, readTask as r };
|