blue-chestnut-solar-expert 0.0.67 → 0.0.68
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/stencil-library/assets/tutorial4.mp4 +0 -0
- package/dist/{collection/config.js → stencil-library/config-CWfV1nKn.js} +10 -4
- package/dist/stencil-library/config-CWfV1nKn.js.map +1 -0
- package/dist/stencil-library/constants-hboFofU4.js +1522 -0
- package/dist/stencil-library/constants-hboFofU4.js.map +1 -0
- package/dist/stencil-library/decoder-DNOvLSaS.js +39 -0
- package/dist/stencil-library/decoder-DNOvLSaS.js.map +1 -0
- package/dist/stencil-library/deflate-0Vdd6-55.js +21 -0
- package/dist/{esm/deflate-DHgPf9CO.js.map → stencil-library/deflate-0Vdd6-55.js.map} +1 -1
- package/dist/stencil-library/eraser-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-CL74Q4VR.js → stencil-library/eraser-icon.entry.js} +9 -27
- package/dist/stencil-library/eraser-icon.entry.js.map +1 -0
- package/dist/stencil-library/house-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-D8w3bTPO.js → stencil-library/house-icon.entry.js} +9 -27
- package/dist/stencil-library/house-icon.entry.js.map +1 -0
- package/dist/{components/loading-widget.js → stencil-library/icon-selector.entry.esm.js.map} +1 -38
- package/dist/stencil-library/icon-selector.entry.js +47 -0
- package/dist/stencil-library/icon-selector.entry.js.map +1 -0
- package/dist/stencil-library/index-CChkgM3J.js +414 -0
- package/dist/stencil-library/index-CChkgM3J.js.map +1 -0
- package/dist/stencil-library/index-ICfDNUMe.js +4172 -0
- package/dist/stencil-library/index-ICfDNUMe.js.map +1 -0
- package/dist/stencil-library/index.esm.js +13 -1
- package/dist/stencil-library/index.esm.js.map +1 -1
- package/dist/{esm/jpeg-CJLm1GkA.js → stencil-library/jpeg-Dd5nnHR5.js} +11 -3
- package/dist/stencil-library/jpeg-Dd5nnHR5.js.map +1 -0
- package/dist/{components/p-BcVa4_YP.js → stencil-library/lerc-7W4E8EBs.js} +27 -1981
- package/dist/stencil-library/lerc-7W4E8EBs.js.map +1 -0
- package/dist/{esm → stencil-library}/loading-widget.entry.js +3 -3
- package/dist/{components/p-P28NBglk.js.map → stencil-library/loading-widget.entry.js.map} +1 -1
- package/dist/{esm/lzw-DaOzWJUD.js → stencil-library/lzw--P4c0ZHH.js} +10 -4
- package/dist/stencil-library/lzw--P4c0ZHH.js.map +1 -0
- package/dist/stencil-library/map-draw-Cx9WZoKH.js +25567 -0
- package/dist/stencil-library/map-draw-Cx9WZoKH.js.map +1 -0
- package/dist/stencil-library/map-draw.entry.esm.js.map +1 -0
- package/dist/stencil-library/map-draw.entry.js +12 -0
- package/dist/stencil-library/map-draw.entry.js.map +1 -0
- package/dist/stencil-library/map-selector.entry.esm.js.map +1 -0
- package/dist/{components/p-C5QieOat.js → stencil-library/map-selector.entry.js} +164 -96
- package/dist/stencil-library/map-selector.entry.js.map +1 -0
- package/dist/{components/loading-widget.js.map → stencil-library/marker-icon.entry.esm.js.map} +1 -1
- package/dist/{components/p-Umz6nJIv.js → stencil-library/marker-icon.entry.js} +9 -27
- package/dist/stencil-library/marker-icon.entry.js.map +1 -0
- package/dist/stencil-library/move-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-FdEV2qPo.js → stencil-library/move-icon.entry.js} +9 -27
- package/dist/stencil-library/move-icon.entry.js.map +1 -0
- package/dist/{components/p-DTXeHbuh.js.map → stencil-library/octagon-minus-icon.entry.esm.js.map} +1 -1
- package/dist/{components/p-BJLO76Yi.js → stencil-library/octagon-minus-icon.entry.js} +9 -27
- package/dist/stencil-library/octagon-minus-icon.entry.js.map +1 -0
- package/dist/{components/p-ByX6QP-E.js → stencil-library/packbits-X3R_utTs.js} +9 -3
- package/dist/stencil-library/packbits-X3R_utTs.js.map +1 -0
- package/dist/stencil-library/pako.esm-CPorU236.js +6881 -0
- package/dist/{esm/pako.esm-B5WTRCh8.js.map → stencil-library/pako.esm-CPorU236.js.map} +1 -1
- package/dist/{components/p-B4X-RCW0.js.map → stencil-library/polygon-buttons.entry.esm.js.map} +1 -1
- package/dist/{cjs/loading-widget.cjs.entry.js → stencil-library/polygon-buttons.entry.js} +16 -10
- package/dist/stencil-library/polygon-buttons.entry.js.map +1 -0
- package/dist/{cjs/loading-widget.cjs.entry.js.map → stencil-library/polygon-information.entry.esm.js.map} +1 -1
- package/dist/{components/p-BFJHTJPM.js → stencil-library/polygon-information.entry.js} +13 -70
- package/dist/stencil-library/polygon-information.entry.js.map +1 -0
- package/dist/stencil-library/raw-BxukYehy.js +20 -0
- package/dist/stencil-library/raw-BxukYehy.js.map +1 -0
- package/dist/stencil-library/search-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-DBwr8xSB.js → stencil-library/search-icon.entry.js} +9 -27
- package/dist/stencil-library/{p-ab0f2031.entry.js → search-icon.entry.js.map} +1 -2
- package/dist/stencil-library/settings-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-DTXeHbuh.js → stencil-library/settings-icon.entry.js} +9 -27
- package/dist/stencil-library/settings-icon.entry.js.map +1 -0
- package/dist/stencil-library/settings-modal.entry.esm.js.map +1 -0
- package/dist/{components/p-B4X-RCW0.js → stencil-library/settings-modal.entry.js} +20 -38
- package/dist/stencil-library/settings-modal.entry.js.map +1 -0
- package/dist/stencil-library/solar-expert.entry.esm.js.map +1 -0
- package/dist/{components/solar-expert.js → stencil-library/solar-expert.entry.js} +14 -150
- package/dist/{components/p-i1uLweD0.js.map → stencil-library/solar-expert.entry.js.map} +1 -1
- package/dist/stencil-library/solar-system-form.entry.esm.js.map +1 -0
- package/dist/stencil-library/solar-system-form.entry.js +553 -0
- package/dist/stencil-library/solar-system-form.entry.js.map +1 -0
- package/dist/stencil-library/stencil-library.esm.js +52 -1
- package/dist/stencil-library/stencil-library.esm.js.map +1 -1
- package/dist/{components/p-eDwaXClX.js → stencil-library/store-CcqrFuBK.js} +24 -3
- package/dist/stencil-library/store-CcqrFuBK.js.map +1 -0
- package/dist/stencil-library/toast-notification.entry.esm.js.map +1 -0
- package/dist/{components/p-P28NBglk.js → stencil-library/toast-notification.entry.js} +9 -30
- package/dist/stencil-library/toast-notification.entry.js.map +1 -0
- package/dist/stencil-library/tool-box.entry.esm.js.map +1 -0
- package/dist/{components/p-i1uLweD0.js → stencil-library/tool-box.entry.js} +27 -35
- package/dist/stencil-library/tool-box.entry.js.map +1 -0
- package/dist/{collection/utils/render/tools.js → stencil-library/tools-BNYKV5H5.js} +14 -8
- package/dist/stencil-library/tools-BNYKV5H5.js.map +1 -0
- package/dist/stencil-library/tutorial-component.entry.esm.js.map +1 -0
- package/dist/{components/p-Dzl6kfPI.js → stencil-library/tutorial-component.entry.js} +42 -35
- package/dist/stencil-library/tutorial-component.entry.js.map +1 -0
- package/dist/stencil-library/undo-icon.entry.esm.js.map +1 -0
- package/dist/{components/p-waOPoUcA.js → stencil-library/undo-icon.entry.js} +9 -27
- package/dist/stencil-library/undo-icon.entry.js.map +1 -0
- package/dist/{collection/utils/utils.js → stencil-library/utils-BCUZxI9u.js} +9 -3
- package/dist/stencil-library/utils-BCUZxI9u.js.map +1 -0
- package/dist/{esm/webimage-BiHardhv.js → stencil-library/webimage-CBrfoxHM.js} +9 -3
- package/dist/{esm/webimage-BiHardhv.js.map → stencil-library/webimage-CBrfoxHM.js.map} +1 -1
- package/dist/types/components/map-draw/map-draw.d.ts +5 -0
- package/dist/types/components/map-draw/tutorial-component.d.ts +7 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/types/lang.d.ts +7 -0
- package/package.json +1 -1
- package/dist/cjs/app-globals-I24yU8do.js +0 -10
- package/dist/cjs/app-globals-I24yU8do.js.map +0 -1
- package/dist/cjs/basedecoder-CQuzfSgz.js +0 -116
- package/dist/cjs/basedecoder-CQuzfSgz.js.map +0 -1
- package/dist/cjs/deflate-AzGzQSW2.js +0 -17
- package/dist/cjs/deflate-AzGzQSW2.js.map +0 -1
- package/dist/cjs/eraser-icon_19.cjs.entry.js +0 -31
- package/dist/cjs/eraser-icon_19.cjs.entry.js.map +0 -1
- package/dist/cjs/index-HgRXF6kp.js +0 -1470
- package/dist/cjs/index-HgRXF6kp.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -7
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/jpeg-Bx3bTm32.js +0 -904
- package/dist/cjs/jpeg-Bx3bTm32.js.map +0 -1
- package/dist/cjs/lerc-v64rYVDy.js +0 -4427
- package/dist/cjs/lerc-v64rYVDy.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -18
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/loading-widget.entry.cjs.js.map +0 -1
- package/dist/cjs/lzw-BmFug486.js +0 -140
- package/dist/cjs/lzw-BmFug486.js.map +0 -1
- package/dist/cjs/packbits-CYx9fB0v.js +0 -35
- package/dist/cjs/packbits-CYx9fB0v.js.map +0 -1
- package/dist/cjs/pako.esm-0mKI6Jik.js +0 -3243
- package/dist/cjs/pako.esm-0mKI6Jik.js.map +0 -1
- package/dist/cjs/raw-DC82yoyr.js +0 -16
- package/dist/cjs/raw-DC82yoyr.js.map +0 -1
- package/dist/cjs/stencil-library.cjs.js +0 -30
- package/dist/cjs/stencil-library.cjs.js.map +0 -1
- package/dist/cjs/webimage-Dc0t2xAB.js +0 -49
- package/dist/cjs/webimage-Dc0t2xAB.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -31
- package/dist/collection/components/icons/eraser.js +0 -64
- package/dist/collection/components/icons/eraser.js.map +0 -1
- package/dist/collection/components/icons/house.js +0 -64
- package/dist/collection/components/icons/house.js.map +0 -1
- package/dist/collection/components/icons/icon.js +0 -108
- package/dist/collection/components/icons/icon.js.map +0 -1
- package/dist/collection/components/icons/marker.js +0 -64
- package/dist/collection/components/icons/marker.js.map +0 -1
- package/dist/collection/components/icons/move.js +0 -64
- package/dist/collection/components/icons/move.js.map +0 -1
- package/dist/collection/components/icons/octagonMinus.js +0 -64
- package/dist/collection/components/icons/octagonMinus.js.map +0 -1
- package/dist/collection/components/icons/search.js +0 -64
- package/dist/collection/components/icons/search.js.map +0 -1
- package/dist/collection/components/icons/settings.js +0 -64
- package/dist/collection/components/icons/settings.js.map +0 -1
- package/dist/collection/components/icons/undo.js +0 -64
- package/dist/collection/components/icons/undo.js.map +0 -1
- package/dist/collection/components/map-draw/map-draw.js +0 -795
- package/dist/collection/components/map-draw/map-draw.js.map +0 -1
- package/dist/collection/components/map-draw/map-selector.js +0 -246
- package/dist/collection/components/map-draw/map-selector.js.map +0 -1
- package/dist/collection/components/map-draw/polygon-buttons.js +0 -86
- package/dist/collection/components/map-draw/polygon-buttons.js.map +0 -1
- package/dist/collection/components/map-draw/polygon-information.js +0 -211
- package/dist/collection/components/map-draw/polygon-information.js.map +0 -1
- package/dist/collection/components/map-draw/tool-box.js +0 -108
- package/dist/collection/components/map-draw/tool-box.js.map +0 -1
- package/dist/collection/components/map-draw/tutorial-component.js +0 -151
- package/dist/collection/components/map-draw/tutorial-component.js.map +0 -1
- package/dist/collection/components/settings/settings.js +0 -127
- package/dist/collection/components/settings/settings.js.map +0 -1
- package/dist/collection/components/solar-expert/solar-expert.js +0 -241
- package/dist/collection/components/solar-expert/solar-expert.js.map +0 -1
- package/dist/collection/components/solar-system-form/solar-system-form.js +0 -596
- package/dist/collection/components/solar-system-form/solar-system-form.js.map +0 -1
- package/dist/collection/components/widgets/loading-widget.js +0 -18
- package/dist/collection/components/widgets/loading-widget.js.map +0 -1
- package/dist/collection/components/widgets/toast-notification.js +0 -133
- package/dist/collection/components/widgets/toast-notification.js.map +0 -1
- package/dist/collection/config.js.map +0 -1
- package/dist/collection/constants.js +0 -90
- package/dist/collection/constants.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/output.css +0 -1126
- package/dist/collection/store.js +0 -43
- package/dist/collection/store.js.map +0 -1
- package/dist/collection/types/lang.js +0 -2
- package/dist/collection/types/lang.js.map +0 -1
- package/dist/collection/types/shapes.js +0 -2
- package/dist/collection/types/shapes.js.map +0 -1
- package/dist/collection/utils/api.js +0 -93
- package/dist/collection/utils/api.js.map +0 -1
- package/dist/collection/utils/images.js +0 -2
- package/dist/collection/utils/images.js.map +0 -1
- package/dist/collection/utils/lang/english.js +0 -157
- package/dist/collection/utils/lang/english.js.map +0 -1
- package/dist/collection/utils/lang/general.js +0 -30
- package/dist/collection/utils/lang/general.js.map +0 -1
- package/dist/collection/utils/lang/german.js +0 -157
- package/dist/collection/utils/lang/german.js.map +0 -1
- package/dist/collection/utils/lang/spanish.js +0 -157
- package/dist/collection/utils/lang/spanish.js.map +0 -1
- package/dist/collection/utils/render/tools.js.map +0 -1
- package/dist/collection/utils/solar.js +0 -136
- package/dist/collection/utils/solar.js.map +0 -1
- package/dist/collection/utils/theme.js +0 -97
- package/dist/collection/utils/theme.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/eraser-icon.js +0 -11
- package/dist/components/eraser-icon.js.map +0 -1
- package/dist/components/house-icon.js +0 -11
- package/dist/components/house-icon.js.map +0 -1
- package/dist/components/icon-selector.js +0 -11
- package/dist/components/icon-selector.js.map +0 -1
- package/dist/components/index.js +0 -1269
- package/dist/components/index.js.map +0 -1
- package/dist/components/map-draw.js +0 -11
- package/dist/components/map-draw.js.map +0 -1
- package/dist/components/map-selector.js +0 -11
- package/dist/components/map-selector.js.map +0 -1
- package/dist/components/marker-icon.js +0 -11
- package/dist/components/marker-icon.js.map +0 -1
- package/dist/components/move-icon.js +0 -11
- package/dist/components/move-icon.js.map +0 -1
- package/dist/components/octagon-minus-icon.js +0 -11
- package/dist/components/octagon-minus-icon.js.map +0 -1
- package/dist/components/p-B54Ul0nf.js +0 -15
- package/dist/components/p-B54Ul0nf.js.map +0 -1
- package/dist/components/p-B5WTRCh8.js +0 -3241
- package/dist/components/p-B5WTRCh8.js.map +0 -1
- package/dist/components/p-BFJHTJPM.js.map +0 -1
- package/dist/components/p-BGoSj_DR.js +0 -902
- package/dist/components/p-BGoSj_DR.js.map +0 -1
- package/dist/components/p-BJLO76Yi.js.map +0 -1
- package/dist/components/p-BcVa4_YP.js.map +0 -1
- package/dist/components/p-Bopprtc7.js +0 -623
- package/dist/components/p-Bopprtc7.js.map +0 -1
- package/dist/components/p-ByX6QP-E.js.map +0 -1
- package/dist/components/p-C5QieOat.js.map +0 -1
- package/dist/components/p-CL74Q4VR.js.map +0 -1
- package/dist/components/p-Cgchl6bA.js +0 -47
- package/dist/components/p-Cgchl6bA.js.map +0 -1
- package/dist/components/p-D8w3bTPO.js.map +0 -1
- package/dist/components/p-DBwr8xSB.js.map +0 -1
- package/dist/components/p-DWirjxpO.js +0 -163
- package/dist/components/p-DWirjxpO.js.map +0 -1
- package/dist/components/p-DlNHVTGB.js +0 -15949
- package/dist/components/p-DlNHVTGB.js.map +0 -1
- package/dist/components/p-Dzl6kfPI.js.map +0 -1
- package/dist/components/p-FdEV2qPo.js.map +0 -1
- package/dist/components/p-PkMjF2if.js +0 -1985
- package/dist/components/p-PkMjF2if.js.map +0 -1
- package/dist/components/p-Umz6nJIv.js.map +0 -1
- package/dist/components/p-WmcSqXD8.js +0 -14
- package/dist/components/p-WmcSqXD8.js.map +0 -1
- package/dist/components/p-eDwaXClX.js.map +0 -1
- package/dist/components/p-j-vOrhhh.js +0 -114
- package/dist/components/p-j-vOrhhh.js.map +0 -1
- package/dist/components/p-q8auDIJ2.js +0 -138
- package/dist/components/p-q8auDIJ2.js.map +0 -1
- package/dist/components/p-waOPoUcA.js.map +0 -1
- package/dist/components/polygon-buttons.js +0 -11
- package/dist/components/polygon-buttons.js.map +0 -1
- package/dist/components/polygon-information.js +0 -11
- package/dist/components/polygon-information.js.map +0 -1
- package/dist/components/search-icon.js +0 -11
- package/dist/components/search-icon.js.map +0 -1
- package/dist/components/settings-icon.js +0 -11
- package/dist/components/settings-icon.js.map +0 -1
- package/dist/components/settings-modal.js +0 -11
- package/dist/components/settings-modal.js.map +0 -1
- package/dist/components/solar-expert.js.map +0 -1
- package/dist/components/solar-system-form.js +0 -11
- package/dist/components/solar-system-form.js.map +0 -1
- package/dist/components/toast-notification.js +0 -11
- package/dist/components/toast-notification.js.map +0 -1
- package/dist/components/tool-box.js +0 -11
- package/dist/components/tool-box.js.map +0 -1
- package/dist/components/tutorial-component.js +0 -11
- package/dist/components/tutorial-component.js.map +0 -1
- package/dist/components/undo-icon.js +0 -11
- package/dist/components/undo-icon.js.map +0 -1
- package/dist/esm/basedecoder-j-vOrhhh.js +0 -114
- package/dist/esm/basedecoder-j-vOrhhh.js.map +0 -1
- package/dist/esm/deflate-DHgPf9CO.js +0 -15
- package/dist/esm/eraser-icon_19.entry.js +0 -7
- package/dist/esm/eraser-icon_19.entry.js.map +0 -1
- package/dist/esm/index-C2JRBB5c.js +0 -1458
- package/dist/esm/index-C2JRBB5c.js.map +0 -1
- package/dist/esm/index.js +0 -5
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/jpeg-CJLm1GkA.js.map +0 -1
- package/dist/esm/lerc-CAiDQjTu.js +0 -4424
- package/dist/esm/lerc-CAiDQjTu.js.map +0 -1
- package/dist/esm/loader.js +0 -16
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/loading-widget.entry.js.map +0 -1
- package/dist/esm/lzw-DaOzWJUD.js.map +0 -1
- package/dist/esm/packbits-CZPyx9kx.js +0 -33
- package/dist/esm/packbits-CZPyx9kx.js.map +0 -1
- package/dist/esm/pako.esm-B5WTRCh8.js +0 -3241
- package/dist/esm/raw-pqeeWc2_.js +0 -14
- package/dist/esm/raw-pqeeWc2_.js.map +0 -1
- package/dist/esm/stencil-library.js +0 -26
- package/dist/esm/stencil-library.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil-library/p-B54Ul0nf.js +0 -2
- package/dist/stencil-library/p-B54Ul0nf.js.map +0 -1
- package/dist/stencil-library/p-B5WTRCh8.js +0 -2
- package/dist/stencil-library/p-B5WTRCh8.js.map +0 -1
- package/dist/stencil-library/p-BBtmpSUK.js +0 -2
- package/dist/stencil-library/p-BBtmpSUK.js.map +0 -1
- package/dist/stencil-library/p-BGoSj_DR.js +0 -2
- package/dist/stencil-library/p-BGoSj_DR.js.map +0 -1
- package/dist/stencil-library/p-ByX6QP-E.js +0 -2
- package/dist/stencil-library/p-ByX6QP-E.js.map +0 -1
- package/dist/stencil-library/p-C2JRBB5c.js +0 -3
- package/dist/stencil-library/p-C2JRBB5c.js.map +0 -1
- package/dist/stencil-library/p-CX8V3eiN.js +0 -2
- package/dist/stencil-library/p-CX8V3eiN.js.map +0 -1
- package/dist/stencil-library/p-Cgchl6bA.js +0 -2
- package/dist/stencil-library/p-Cgchl6bA.js.map +0 -1
- package/dist/stencil-library/p-WmcSqXD8.js +0 -2
- package/dist/stencil-library/p-WmcSqXD8.js.map +0 -1
- package/dist/stencil-library/p-ab0f2031.entry.js.map +0 -1
- package/dist/stencil-library/p-cAuhy_jT.js +0 -10
- package/dist/stencil-library/p-cAuhy_jT.js.map +0 -1
- package/dist/stencil-library/p-e7b94dbb.entry.js +0 -2
- package/dist/stencil-library/p-e7b94dbb.entry.js.map +0 -1
- package/dist/stencil-library/p-j-vOrhhh.js +0 -2
- package/dist/stencil-library/p-j-vOrhhh.js.map +0 -1
- package/dist/stencil-library/p-q8auDIJ2.js +0 -2
- package/dist/stencil-library/p-q8auDIJ2.js.map +0 -1
- /package/dist/{esm → stencil-library}/app-globals-CX8V3eiN.js +0 -0
- /package/dist/{esm → stencil-library}/app-globals-CX8V3eiN.js.map +0 -0
|
@@ -1,1458 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
if (typeof global === "undefined") { var global = globalThis || window || self; }
|
|
3
|
-
const NAMESPACE = 'stencil-library';
|
|
4
|
-
const BUILD = /* stencil-library */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
|
|
5
|
-
const Env = /* stencil-library */ {"GOOGLE_MAPS_API_KEY":"AIzaSyBAXSsmO_QaiP3Z-M7pj5WVG2uQ97O6c-c"};
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
Stencil Client Platform v4.31.0 | MIT Licensed | https://stenciljs.com
|
|
9
|
-
*/
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __export = (target, all) => {
|
|
12
|
-
for (var name in all)
|
|
13
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
// src/utils/constants.ts
|
|
17
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
18
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
19
|
-
|
|
20
|
-
// src/utils/es2022-rewire-class-members.ts
|
|
21
|
-
var reWireGetterSetter = (instance, hostRef) => {
|
|
22
|
-
var _a;
|
|
23
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
24
|
-
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
25
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
26
|
-
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
27
|
-
const ogValue = instance[memberName];
|
|
28
|
-
const ogDescriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(instance), memberName);
|
|
29
|
-
Object.defineProperty(instance, memberName, {
|
|
30
|
-
get() {
|
|
31
|
-
return ogDescriptor.get.call(this);
|
|
32
|
-
},
|
|
33
|
-
set(newValue) {
|
|
34
|
-
ogDescriptor.set.call(this, newValue);
|
|
35
|
-
},
|
|
36
|
-
configurable: true,
|
|
37
|
-
enumerable: true
|
|
38
|
-
});
|
|
39
|
-
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// src/client/client-host-ref.ts
|
|
45
|
-
var getHostRef = (ref) => {
|
|
46
|
-
if (ref.__stencil__getHostRef) {
|
|
47
|
-
return ref.__stencil__getHostRef();
|
|
48
|
-
}
|
|
49
|
-
return void 0;
|
|
50
|
-
};
|
|
51
|
-
var registerInstance = (lazyInstance, hostRef) => {
|
|
52
|
-
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
53
|
-
hostRef.$lazyInstance$ = lazyInstance;
|
|
54
|
-
{
|
|
55
|
-
reWireGetterSetter(lazyInstance, hostRef);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
59
|
-
const hostRef = {
|
|
60
|
-
$flags$: 0,
|
|
61
|
-
$hostElement$: hostElement,
|
|
62
|
-
$cmpMeta$: cmpMeta,
|
|
63
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
64
|
-
};
|
|
65
|
-
{
|
|
66
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
67
|
-
hostElement["s-p"] = [];
|
|
68
|
-
hostElement["s-rc"] = [];
|
|
69
|
-
}
|
|
70
|
-
const ref = hostRef;
|
|
71
|
-
hostElement.__stencil__getHostRef = () => ref;
|
|
72
|
-
return ref;
|
|
73
|
-
};
|
|
74
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
75
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
76
|
-
|
|
77
|
-
// src/client/client-load-module.ts
|
|
78
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
79
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
80
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
81
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
82
|
-
if (!bundleId) {
|
|
83
|
-
return void 0;
|
|
84
|
-
}
|
|
85
|
-
const module = cmpModules.get(bundleId) ;
|
|
86
|
-
if (module) {
|
|
87
|
-
return module[exportName];
|
|
88
|
-
}
|
|
89
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
90
|
-
return import(
|
|
91
|
-
/* @vite-ignore */
|
|
92
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
93
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
94
|
-
/* webpackMode: "lazy" */
|
|
95
|
-
`./${bundleId}.entry.js${""}`
|
|
96
|
-
).then(
|
|
97
|
-
(importedModule) => {
|
|
98
|
-
{
|
|
99
|
-
cmpModules.set(bundleId, importedModule);
|
|
100
|
-
}
|
|
101
|
-
return importedModule[exportName];
|
|
102
|
-
},
|
|
103
|
-
(e) => {
|
|
104
|
-
consoleError(e, hostRef.$hostElement$);
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
// src/client/client-style.ts
|
|
110
|
-
var styles = /* @__PURE__ */ new Map();
|
|
111
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
112
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
113
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
114
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
115
|
-
var plt = {
|
|
116
|
-
$flags$: 0,
|
|
117
|
-
$resourcesUrl$: "",
|
|
118
|
-
jmp: (h2) => h2(),
|
|
119
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
120
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
121
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
122
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
123
|
-
};
|
|
124
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
125
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
126
|
-
try {
|
|
127
|
-
new CSSStyleSheet();
|
|
128
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
129
|
-
} catch (e) {
|
|
130
|
-
}
|
|
131
|
-
return false;
|
|
132
|
-
})() ;
|
|
133
|
-
var queuePending = false;
|
|
134
|
-
var queueDomReads = [];
|
|
135
|
-
var queueDomWrites = [];
|
|
136
|
-
var queueTask = (queue, write) => (cb) => {
|
|
137
|
-
queue.push(cb);
|
|
138
|
-
if (!queuePending) {
|
|
139
|
-
queuePending = true;
|
|
140
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
141
|
-
nextTick(flush);
|
|
142
|
-
} else {
|
|
143
|
-
plt.raf(flush);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
var consume = (queue) => {
|
|
148
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
149
|
-
try {
|
|
150
|
-
queue[i2](performance.now());
|
|
151
|
-
} catch (e) {
|
|
152
|
-
consoleError(e);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
queue.length = 0;
|
|
156
|
-
};
|
|
157
|
-
var flush = () => {
|
|
158
|
-
consume(queueDomReads);
|
|
159
|
-
{
|
|
160
|
-
consume(queueDomWrites);
|
|
161
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
162
|
-
plt.raf(flush);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
167
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
168
|
-
|
|
169
|
-
// src/runtime/asset-path.ts
|
|
170
|
-
var getAssetPath = (path) => {
|
|
171
|
-
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
172
|
-
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
173
|
-
};
|
|
174
|
-
var isComplexType = (o) => {
|
|
175
|
-
o = typeof o;
|
|
176
|
-
return o === "object" || o === "function";
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
180
|
-
function queryNonceMetaTagContent(doc) {
|
|
181
|
-
var _a, _b, _c;
|
|
182
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// src/utils/regular-expression.ts
|
|
186
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
187
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
// src/utils/result.ts
|
|
191
|
-
var result_exports = {};
|
|
192
|
-
__export(result_exports, {
|
|
193
|
-
err: () => err,
|
|
194
|
-
map: () => map,
|
|
195
|
-
ok: () => ok,
|
|
196
|
-
unwrap: () => unwrap,
|
|
197
|
-
unwrapErr: () => unwrapErr
|
|
198
|
-
});
|
|
199
|
-
var ok = (value) => ({
|
|
200
|
-
isOk: true,
|
|
201
|
-
isErr: false,
|
|
202
|
-
value
|
|
203
|
-
});
|
|
204
|
-
var err = (value) => ({
|
|
205
|
-
isOk: false,
|
|
206
|
-
isErr: true,
|
|
207
|
-
value
|
|
208
|
-
});
|
|
209
|
-
function map(result, fn) {
|
|
210
|
-
if (result.isOk) {
|
|
211
|
-
const val = fn(result.value);
|
|
212
|
-
if (val instanceof Promise) {
|
|
213
|
-
return val.then((newVal) => ok(newVal));
|
|
214
|
-
} else {
|
|
215
|
-
return ok(val);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
if (result.isErr) {
|
|
219
|
-
const value = result.value;
|
|
220
|
-
return err(value);
|
|
221
|
-
}
|
|
222
|
-
throw "should never get here";
|
|
223
|
-
}
|
|
224
|
-
var unwrap = (result) => {
|
|
225
|
-
if (result.isOk) {
|
|
226
|
-
return result.value;
|
|
227
|
-
} else {
|
|
228
|
-
throw result.value;
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
var unwrapErr = (result) => {
|
|
232
|
-
if (result.isErr) {
|
|
233
|
-
return result.value;
|
|
234
|
-
} else {
|
|
235
|
-
throw result.value;
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
var createTime = (fnName, tagName = "") => {
|
|
239
|
-
{
|
|
240
|
-
return () => {
|
|
241
|
-
return;
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
var uniqueTime = (key, measureText) => {
|
|
246
|
-
{
|
|
247
|
-
return () => {
|
|
248
|
-
return;
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
var h = (nodeName, vnodeData, ...children) => {
|
|
253
|
-
let child = null;
|
|
254
|
-
let key = null;
|
|
255
|
-
let simple = false;
|
|
256
|
-
let lastSimple = false;
|
|
257
|
-
const vNodeChildren = [];
|
|
258
|
-
const walk = (c) => {
|
|
259
|
-
for (let i2 = 0; i2 < c.length; i2++) {
|
|
260
|
-
child = c[i2];
|
|
261
|
-
if (Array.isArray(child)) {
|
|
262
|
-
walk(child);
|
|
263
|
-
} else if (child != null && typeof child !== "boolean") {
|
|
264
|
-
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
265
|
-
child = String(child);
|
|
266
|
-
}
|
|
267
|
-
if (simple && lastSimple) {
|
|
268
|
-
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
269
|
-
} else {
|
|
270
|
-
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
271
|
-
}
|
|
272
|
-
lastSimple = simple;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
walk(children);
|
|
277
|
-
if (vnodeData) {
|
|
278
|
-
if (vnodeData.key) {
|
|
279
|
-
key = vnodeData.key;
|
|
280
|
-
}
|
|
281
|
-
{
|
|
282
|
-
const classData = vnodeData.className || vnodeData.class;
|
|
283
|
-
if (classData) {
|
|
284
|
-
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
if (typeof nodeName === "function") {
|
|
289
|
-
return nodeName(
|
|
290
|
-
vnodeData === null ? {} : vnodeData,
|
|
291
|
-
vNodeChildren,
|
|
292
|
-
vdomFnUtils
|
|
293
|
-
);
|
|
294
|
-
}
|
|
295
|
-
const vnode = newVNode(nodeName, null);
|
|
296
|
-
vnode.$attrs$ = vnodeData;
|
|
297
|
-
if (vNodeChildren.length > 0) {
|
|
298
|
-
vnode.$children$ = vNodeChildren;
|
|
299
|
-
}
|
|
300
|
-
{
|
|
301
|
-
vnode.$key$ = key;
|
|
302
|
-
}
|
|
303
|
-
return vnode;
|
|
304
|
-
};
|
|
305
|
-
var newVNode = (tag, text) => {
|
|
306
|
-
const vnode = {
|
|
307
|
-
$flags$: 0,
|
|
308
|
-
$tag$: tag,
|
|
309
|
-
$text$: text,
|
|
310
|
-
$elm$: null,
|
|
311
|
-
$children$: null
|
|
312
|
-
};
|
|
313
|
-
{
|
|
314
|
-
vnode.$attrs$ = null;
|
|
315
|
-
}
|
|
316
|
-
{
|
|
317
|
-
vnode.$key$ = null;
|
|
318
|
-
}
|
|
319
|
-
return vnode;
|
|
320
|
-
};
|
|
321
|
-
var Host = {};
|
|
322
|
-
var isHost = (node) => node && node.$tag$ === Host;
|
|
323
|
-
var vdomFnUtils = {
|
|
324
|
-
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
325
|
-
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
326
|
-
};
|
|
327
|
-
var convertToPublic = (node) => ({
|
|
328
|
-
vattrs: node.$attrs$,
|
|
329
|
-
vchildren: node.$children$,
|
|
330
|
-
vkey: node.$key$,
|
|
331
|
-
vname: node.$name$,
|
|
332
|
-
vtag: node.$tag$,
|
|
333
|
-
vtext: node.$text$
|
|
334
|
-
});
|
|
335
|
-
var convertToPrivate = (node) => {
|
|
336
|
-
if (typeof node.vtag === "function") {
|
|
337
|
-
const vnodeData = { ...node.vattrs };
|
|
338
|
-
if (node.vkey) {
|
|
339
|
-
vnodeData.key = node.vkey;
|
|
340
|
-
}
|
|
341
|
-
if (node.vname) {
|
|
342
|
-
vnodeData.name = node.vname;
|
|
343
|
-
}
|
|
344
|
-
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
345
|
-
}
|
|
346
|
-
const vnode = newVNode(node.vtag, node.vtext);
|
|
347
|
-
vnode.$attrs$ = node.vattrs;
|
|
348
|
-
vnode.$children$ = node.vchildren;
|
|
349
|
-
vnode.$key$ = node.vkey;
|
|
350
|
-
vnode.$name$ = node.vname;
|
|
351
|
-
return vnode;
|
|
352
|
-
};
|
|
353
|
-
var createSupportsRuleRe = (selector) => {
|
|
354
|
-
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
355
|
-
return new RegExp(
|
|
356
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
357
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
358
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
359
|
-
"g"
|
|
360
|
-
);
|
|
361
|
-
};
|
|
362
|
-
createSupportsRuleRe("::slotted");
|
|
363
|
-
createSupportsRuleRe(":host");
|
|
364
|
-
createSupportsRuleRe(":host-context");
|
|
365
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
366
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
367
|
-
if (propType & 4 /* Boolean */) {
|
|
368
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
369
|
-
}
|
|
370
|
-
if (propType & 2 /* Number */) {
|
|
371
|
-
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
372
|
-
}
|
|
373
|
-
if (propType & 1 /* String */) {
|
|
374
|
-
return String(propValue);
|
|
375
|
-
}
|
|
376
|
-
return propValue;
|
|
377
|
-
}
|
|
378
|
-
return propValue;
|
|
379
|
-
};
|
|
380
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
381
|
-
|
|
382
|
-
// src/runtime/event-emitter.ts
|
|
383
|
-
var createEvent = (ref, name, flags) => {
|
|
384
|
-
const elm = getElement(ref);
|
|
385
|
-
return {
|
|
386
|
-
emit: (detail) => {
|
|
387
|
-
return emitEvent(elm, name, {
|
|
388
|
-
bubbles: true,
|
|
389
|
-
composed: true,
|
|
390
|
-
cancelable: true,
|
|
391
|
-
detail
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
var emitEvent = (elm, name, opts) => {
|
|
397
|
-
const ev = plt.ce(name, opts);
|
|
398
|
-
elm.dispatchEvent(ev);
|
|
399
|
-
return ev;
|
|
400
|
-
};
|
|
401
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
402
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
403
|
-
let style = styles.get(scopeId2);
|
|
404
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
405
|
-
style = style || new CSSStyleSheet();
|
|
406
|
-
if (typeof style === "string") {
|
|
407
|
-
style = cssText;
|
|
408
|
-
} else {
|
|
409
|
-
style.replaceSync(cssText);
|
|
410
|
-
}
|
|
411
|
-
} else {
|
|
412
|
-
style = cssText;
|
|
413
|
-
}
|
|
414
|
-
styles.set(scopeId2, style);
|
|
415
|
-
};
|
|
416
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
417
|
-
var _a;
|
|
418
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
419
|
-
const style = styles.get(scopeId2);
|
|
420
|
-
if (!win.document) {
|
|
421
|
-
return scopeId2;
|
|
422
|
-
}
|
|
423
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
424
|
-
if (style) {
|
|
425
|
-
if (typeof style === "string") {
|
|
426
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
427
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
428
|
-
let styleElm;
|
|
429
|
-
if (!appliedStyles) {
|
|
430
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
431
|
-
}
|
|
432
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
433
|
-
{
|
|
434
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
435
|
-
styleElm.innerHTML = style;
|
|
436
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
437
|
-
if (nonce != null) {
|
|
438
|
-
styleElm.setAttribute("nonce", nonce);
|
|
439
|
-
}
|
|
440
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
441
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
442
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
443
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
444
|
-
styleContainerNode.insertBefore(
|
|
445
|
-
styleElm,
|
|
446
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
447
|
-
);
|
|
448
|
-
} else if ("host" in styleContainerNode) {
|
|
449
|
-
if (supportsConstructableStylesheets) {
|
|
450
|
-
const stylesheet = new CSSStyleSheet();
|
|
451
|
-
stylesheet.replaceSync(style);
|
|
452
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
453
|
-
} else {
|
|
454
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
455
|
-
if (existingStyleContainer) {
|
|
456
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
457
|
-
} else {
|
|
458
|
-
styleContainerNode.prepend(styleElm);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
} else {
|
|
462
|
-
styleContainerNode.append(styleElm);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
466
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
470
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
471
|
-
}
|
|
472
|
-
if (appliedStyles) {
|
|
473
|
-
appliedStyles.add(scopeId2);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
477
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
return scopeId2;
|
|
481
|
-
};
|
|
482
|
-
var attachStyles = (hostRef) => {
|
|
483
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
484
|
-
const elm = hostRef.$hostElement$;
|
|
485
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
486
|
-
addStyle(
|
|
487
|
-
elm.getRootNode(),
|
|
488
|
-
cmpMeta);
|
|
489
|
-
endAttachStyles();
|
|
490
|
-
};
|
|
491
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
492
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
493
|
-
if (oldValue === newValue) {
|
|
494
|
-
return;
|
|
495
|
-
}
|
|
496
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
497
|
-
let ln = memberName.toLowerCase();
|
|
498
|
-
if (memberName === "class") {
|
|
499
|
-
const classList = elm.classList;
|
|
500
|
-
const oldClasses = parseClassList(oldValue);
|
|
501
|
-
let newClasses = parseClassList(newValue);
|
|
502
|
-
{
|
|
503
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
504
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
505
|
-
}
|
|
506
|
-
} else if (memberName === "style") {
|
|
507
|
-
{
|
|
508
|
-
for (const prop in oldValue) {
|
|
509
|
-
if (!newValue || newValue[prop] == null) {
|
|
510
|
-
if (prop.includes("-")) {
|
|
511
|
-
elm.style.removeProperty(prop);
|
|
512
|
-
} else {
|
|
513
|
-
elm.style[prop] = "";
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
for (const prop in newValue) {
|
|
519
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
520
|
-
if (prop.includes("-")) {
|
|
521
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
522
|
-
} else {
|
|
523
|
-
elm.style[prop] = newValue[prop];
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
528
|
-
if (newValue) {
|
|
529
|
-
newValue(elm);
|
|
530
|
-
}
|
|
531
|
-
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
532
|
-
if (memberName[2] === "-") {
|
|
533
|
-
memberName = memberName.slice(3);
|
|
534
|
-
} else if (isMemberInElement(win, ln)) {
|
|
535
|
-
memberName = ln.slice(2);
|
|
536
|
-
} else {
|
|
537
|
-
memberName = ln[2] + memberName.slice(3);
|
|
538
|
-
}
|
|
539
|
-
if (oldValue || newValue) {
|
|
540
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
541
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
542
|
-
if (oldValue) {
|
|
543
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
544
|
-
}
|
|
545
|
-
if (newValue) {
|
|
546
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
} else {
|
|
550
|
-
const isComplex = isComplexType(newValue);
|
|
551
|
-
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
552
|
-
try {
|
|
553
|
-
if (!elm.tagName.includes("-")) {
|
|
554
|
-
const n = newValue == null ? "" : newValue;
|
|
555
|
-
if (memberName === "list") {
|
|
556
|
-
isProp = false;
|
|
557
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
|
558
|
-
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
559
|
-
elm[memberName] = n;
|
|
560
|
-
} else {
|
|
561
|
-
elm.setAttribute(memberName, n);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
} else if (elm[memberName] !== newValue) {
|
|
565
|
-
elm[memberName] = newValue;
|
|
566
|
-
}
|
|
567
|
-
} catch (e) {
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
if (newValue == null || newValue === false) {
|
|
571
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
572
|
-
{
|
|
573
|
-
elm.removeAttribute(memberName);
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
577
|
-
newValue = newValue === true ? "" : newValue;
|
|
578
|
-
{
|
|
579
|
-
elm.setAttribute(memberName, newValue);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
var parseClassListRegex = /\s/;
|
|
585
|
-
var parseClassList = (value) => {
|
|
586
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
587
|
-
value = value.baseVal;
|
|
588
|
-
}
|
|
589
|
-
if (!value || typeof value !== "string") {
|
|
590
|
-
return [];
|
|
591
|
-
}
|
|
592
|
-
return value.split(parseClassListRegex);
|
|
593
|
-
};
|
|
594
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
595
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
596
|
-
|
|
597
|
-
// src/runtime/vdom/update-element.ts
|
|
598
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
599
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
600
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
601
|
-
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
602
|
-
{
|
|
603
|
-
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
604
|
-
if (!(memberName in newVnodeAttrs)) {
|
|
605
|
-
setAccessor(
|
|
606
|
-
elm,
|
|
607
|
-
memberName,
|
|
608
|
-
oldVnodeAttrs[memberName],
|
|
609
|
-
void 0,
|
|
610
|
-
isSvgMode2,
|
|
611
|
-
newVnode.$flags$);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
616
|
-
setAccessor(
|
|
617
|
-
elm,
|
|
618
|
-
memberName,
|
|
619
|
-
oldVnodeAttrs[memberName],
|
|
620
|
-
newVnodeAttrs[memberName],
|
|
621
|
-
isSvgMode2,
|
|
622
|
-
newVnode.$flags$);
|
|
623
|
-
}
|
|
624
|
-
};
|
|
625
|
-
function sortedAttrNames(attrNames) {
|
|
626
|
-
return attrNames.includes("ref") ? (
|
|
627
|
-
// we need to sort these to ensure that `'ref'` is the last attr
|
|
628
|
-
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
629
|
-
) : (
|
|
630
|
-
// no need to sort, return the original array
|
|
631
|
-
attrNames
|
|
632
|
-
);
|
|
633
|
-
}
|
|
634
|
-
var hostTagName;
|
|
635
|
-
var isSvgMode = false;
|
|
636
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
637
|
-
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
638
|
-
let i2 = 0;
|
|
639
|
-
let elm;
|
|
640
|
-
let childNode;
|
|
641
|
-
if (newVNode2.$text$ !== null) {
|
|
642
|
-
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
643
|
-
} else {
|
|
644
|
-
if (!isSvgMode) {
|
|
645
|
-
isSvgMode = newVNode2.$tag$ === "svg";
|
|
646
|
-
}
|
|
647
|
-
if (!win.document) {
|
|
648
|
-
throw new Error(
|
|
649
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
650
|
-
);
|
|
651
|
-
}
|
|
652
|
-
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
653
|
-
isSvgMode ? SVG_NS : HTML_NS,
|
|
654
|
-
newVNode2.$tag$
|
|
655
|
-
) ;
|
|
656
|
-
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
657
|
-
isSvgMode = false;
|
|
658
|
-
}
|
|
659
|
-
{
|
|
660
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
661
|
-
}
|
|
662
|
-
if (newVNode2.$children$) {
|
|
663
|
-
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
664
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
665
|
-
if (childNode) {
|
|
666
|
-
elm.appendChild(childNode);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
{
|
|
671
|
-
if (newVNode2.$tag$ === "svg") {
|
|
672
|
-
isSvgMode = false;
|
|
673
|
-
} else if (elm.tagName === "foreignObject") {
|
|
674
|
-
isSvgMode = true;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
elm["s-hn"] = hostTagName;
|
|
679
|
-
return elm;
|
|
680
|
-
};
|
|
681
|
-
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
682
|
-
let containerElm = parentElm;
|
|
683
|
-
let childNode;
|
|
684
|
-
for (; startIdx <= endIdx; ++startIdx) {
|
|
685
|
-
if (vnodes[startIdx]) {
|
|
686
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
687
|
-
if (childNode) {
|
|
688
|
-
vnodes[startIdx].$elm$ = childNode;
|
|
689
|
-
insertBefore(containerElm, childNode, before);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
695
|
-
for (let index = startIdx; index <= endIdx; ++index) {
|
|
696
|
-
const vnode = vnodes[index];
|
|
697
|
-
if (vnode) {
|
|
698
|
-
const elm = vnode.$elm$;
|
|
699
|
-
nullifyVNodeRefs(vnode);
|
|
700
|
-
if (elm) {
|
|
701
|
-
elm.remove();
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
707
|
-
let oldStartIdx = 0;
|
|
708
|
-
let newStartIdx = 0;
|
|
709
|
-
let idxInOld = 0;
|
|
710
|
-
let i2 = 0;
|
|
711
|
-
let oldEndIdx = oldCh.length - 1;
|
|
712
|
-
let oldStartVnode = oldCh[0];
|
|
713
|
-
let oldEndVnode = oldCh[oldEndIdx];
|
|
714
|
-
let newEndIdx = newCh.length - 1;
|
|
715
|
-
let newStartVnode = newCh[0];
|
|
716
|
-
let newEndVnode = newCh[newEndIdx];
|
|
717
|
-
let node;
|
|
718
|
-
let elmToMove;
|
|
719
|
-
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
720
|
-
if (oldStartVnode == null) {
|
|
721
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
722
|
-
} else if (oldEndVnode == null) {
|
|
723
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
724
|
-
} else if (newStartVnode == null) {
|
|
725
|
-
newStartVnode = newCh[++newStartIdx];
|
|
726
|
-
} else if (newEndVnode == null) {
|
|
727
|
-
newEndVnode = newCh[--newEndIdx];
|
|
728
|
-
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
729
|
-
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
730
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
731
|
-
newStartVnode = newCh[++newStartIdx];
|
|
732
|
-
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
733
|
-
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
734
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
735
|
-
newEndVnode = newCh[--newEndIdx];
|
|
736
|
-
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
737
|
-
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
738
|
-
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
739
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
740
|
-
newEndVnode = newCh[--newEndIdx];
|
|
741
|
-
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
742
|
-
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
743
|
-
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
744
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
745
|
-
newStartVnode = newCh[++newStartIdx];
|
|
746
|
-
} else {
|
|
747
|
-
idxInOld = -1;
|
|
748
|
-
{
|
|
749
|
-
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
750
|
-
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
751
|
-
idxInOld = i2;
|
|
752
|
-
break;
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
if (idxInOld >= 0) {
|
|
757
|
-
elmToMove = oldCh[idxInOld];
|
|
758
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
759
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
760
|
-
} else {
|
|
761
|
-
patch(elmToMove, newStartVnode, isInitialRender);
|
|
762
|
-
oldCh[idxInOld] = void 0;
|
|
763
|
-
node = elmToMove.$elm$;
|
|
764
|
-
}
|
|
765
|
-
newStartVnode = newCh[++newStartIdx];
|
|
766
|
-
} else {
|
|
767
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
768
|
-
newStartVnode = newCh[++newStartIdx];
|
|
769
|
-
}
|
|
770
|
-
if (node) {
|
|
771
|
-
{
|
|
772
|
-
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
if (oldStartIdx > oldEndIdx) {
|
|
778
|
-
addVnodes(
|
|
779
|
-
parentElm,
|
|
780
|
-
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
781
|
-
newVNode2,
|
|
782
|
-
newCh,
|
|
783
|
-
newStartIdx,
|
|
784
|
-
newEndIdx
|
|
785
|
-
);
|
|
786
|
-
} else if (newStartIdx > newEndIdx) {
|
|
787
|
-
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
791
|
-
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
792
|
-
if (!isInitialRender) {
|
|
793
|
-
return leftVNode.$key$ === rightVNode.$key$;
|
|
794
|
-
}
|
|
795
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
796
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
797
|
-
}
|
|
798
|
-
return true;
|
|
799
|
-
}
|
|
800
|
-
return false;
|
|
801
|
-
};
|
|
802
|
-
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
803
|
-
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
804
|
-
const oldChildren = oldVNode.$children$;
|
|
805
|
-
const newChildren = newVNode2.$children$;
|
|
806
|
-
const tag = newVNode2.$tag$;
|
|
807
|
-
const text = newVNode2.$text$;
|
|
808
|
-
if (text === null) {
|
|
809
|
-
{
|
|
810
|
-
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
811
|
-
}
|
|
812
|
-
{
|
|
813
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
814
|
-
}
|
|
815
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
816
|
-
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
817
|
-
} else if (newChildren !== null) {
|
|
818
|
-
if (oldVNode.$text$ !== null) {
|
|
819
|
-
elm.textContent = "";
|
|
820
|
-
}
|
|
821
|
-
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
822
|
-
} else if (
|
|
823
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
824
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
825
|
-
) {
|
|
826
|
-
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
827
|
-
}
|
|
828
|
-
if (isSvgMode && tag === "svg") {
|
|
829
|
-
isSvgMode = false;
|
|
830
|
-
}
|
|
831
|
-
} else if (oldVNode.$text$ !== text) {
|
|
832
|
-
elm.data = text;
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
var nullifyVNodeRefs = (vNode) => {
|
|
836
|
-
{
|
|
837
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
838
|
-
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
var insertBefore = (parent, newNode, reference) => {
|
|
842
|
-
{
|
|
843
|
-
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
847
|
-
const hostElm = hostRef.$hostElement$;
|
|
848
|
-
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
849
|
-
const isHostElement = isHost(renderFnResults);
|
|
850
|
-
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
851
|
-
hostTagName = hostElm.tagName;
|
|
852
|
-
if (isInitialLoad && rootVnode.$attrs$) {
|
|
853
|
-
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
854
|
-
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
855
|
-
rootVnode.$attrs$[key] = hostElm[key];
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
rootVnode.$tag$ = null;
|
|
860
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
861
|
-
hostRef.$vnode$ = rootVnode;
|
|
862
|
-
rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
|
|
863
|
-
patch(oldVNode, rootVnode, isInitialLoad);
|
|
864
|
-
};
|
|
865
|
-
|
|
866
|
-
// src/runtime/update-component.ts
|
|
867
|
-
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
868
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
869
|
-
const index = ancestorComponent["s-p"].push(
|
|
870
|
-
new Promise(
|
|
871
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
872
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
873
|
-
r();
|
|
874
|
-
}
|
|
875
|
-
)
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
|
-
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
880
|
-
{
|
|
881
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
882
|
-
}
|
|
883
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
884
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
888
|
-
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
889
|
-
return writeTask(dispatch) ;
|
|
890
|
-
};
|
|
891
|
-
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
892
|
-
const elm = hostRef.$hostElement$;
|
|
893
|
-
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
894
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
895
|
-
if (!instance) {
|
|
896
|
-
throw new Error(
|
|
897
|
-
`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`
|
|
898
|
-
);
|
|
899
|
-
}
|
|
900
|
-
let maybePromise;
|
|
901
|
-
if (isInitialLoad) {
|
|
902
|
-
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
903
|
-
} else {
|
|
904
|
-
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
905
|
-
}
|
|
906
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
907
|
-
endSchedule();
|
|
908
|
-
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
909
|
-
};
|
|
910
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
911
|
-
console.error(err2);
|
|
912
|
-
fn();
|
|
913
|
-
}) : fn();
|
|
914
|
-
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
915
|
-
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
916
|
-
var _a;
|
|
917
|
-
const elm = hostRef.$hostElement$;
|
|
918
|
-
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
919
|
-
const rc = elm["s-rc"];
|
|
920
|
-
if (isInitialLoad) {
|
|
921
|
-
attachStyles(hostRef);
|
|
922
|
-
}
|
|
923
|
-
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
924
|
-
{
|
|
925
|
-
callRender(hostRef, instance, elm, isInitialLoad);
|
|
926
|
-
}
|
|
927
|
-
if (rc) {
|
|
928
|
-
rc.map((cb) => cb());
|
|
929
|
-
elm["s-rc"] = void 0;
|
|
930
|
-
}
|
|
931
|
-
endRender();
|
|
932
|
-
endUpdate();
|
|
933
|
-
{
|
|
934
|
-
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
935
|
-
const postUpdate = () => postUpdateComponent(hostRef);
|
|
936
|
-
if (childrenPromises.length === 0) {
|
|
937
|
-
postUpdate();
|
|
938
|
-
} else {
|
|
939
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
940
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
941
|
-
childrenPromises.length = 0;
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
var renderingRef = null;
|
|
946
|
-
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
947
|
-
try {
|
|
948
|
-
renderingRef = instance;
|
|
949
|
-
instance = instance.render() ;
|
|
950
|
-
{
|
|
951
|
-
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
952
|
-
}
|
|
953
|
-
{
|
|
954
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
955
|
-
}
|
|
956
|
-
{
|
|
957
|
-
{
|
|
958
|
-
{
|
|
959
|
-
renderVdom(hostRef, instance, isInitialLoad);
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
} catch (e) {
|
|
964
|
-
consoleError(e, hostRef.$hostElement$);
|
|
965
|
-
}
|
|
966
|
-
renderingRef = null;
|
|
967
|
-
return null;
|
|
968
|
-
};
|
|
969
|
-
var getRenderingRef = () => renderingRef;
|
|
970
|
-
var postUpdateComponent = (hostRef) => {
|
|
971
|
-
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
972
|
-
const elm = hostRef.$hostElement$;
|
|
973
|
-
const endPostUpdate = createTime("postUpdate", tagName);
|
|
974
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
975
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
976
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
977
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
978
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
979
|
-
{
|
|
980
|
-
addHydratedFlag(elm);
|
|
981
|
-
}
|
|
982
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
983
|
-
endPostUpdate();
|
|
984
|
-
{
|
|
985
|
-
hostRef.$onReadyResolve$(elm);
|
|
986
|
-
if (!ancestorComponent) {
|
|
987
|
-
appDidLoad();
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
} else {
|
|
991
|
-
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
992
|
-
endPostUpdate();
|
|
993
|
-
}
|
|
994
|
-
{
|
|
995
|
-
if (hostRef.$onRenderResolve$) {
|
|
996
|
-
hostRef.$onRenderResolve$();
|
|
997
|
-
hostRef.$onRenderResolve$ = void 0;
|
|
998
|
-
}
|
|
999
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1000
|
-
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1001
|
-
}
|
|
1002
|
-
hostRef.$flags$ &= -517;
|
|
1003
|
-
}
|
|
1004
|
-
};
|
|
1005
|
-
var forceUpdate = (ref) => {
|
|
1006
|
-
{
|
|
1007
|
-
const hostRef = getHostRef(ref);
|
|
1008
|
-
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1009
|
-
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1010
|
-
scheduleUpdate(hostRef, false);
|
|
1011
|
-
}
|
|
1012
|
-
return isConnected;
|
|
1013
|
-
}
|
|
1014
|
-
};
|
|
1015
|
-
var appDidLoad = (who) => {
|
|
1016
|
-
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1017
|
-
};
|
|
1018
|
-
var safeCall = (instance, method, arg, elm) => {
|
|
1019
|
-
if (instance && instance[method]) {
|
|
1020
|
-
try {
|
|
1021
|
-
return instance[method](arg);
|
|
1022
|
-
} catch (e) {
|
|
1023
|
-
consoleError(e, elm);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
return void 0;
|
|
1027
|
-
};
|
|
1028
|
-
var addHydratedFlag = (elm) => {
|
|
1029
|
-
var _a;
|
|
1030
|
-
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
1031
|
-
};
|
|
1032
|
-
|
|
1033
|
-
// src/runtime/set-value.ts
|
|
1034
|
-
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1035
|
-
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1036
|
-
const hostRef = getHostRef(ref);
|
|
1037
|
-
if (!hostRef) {
|
|
1038
|
-
throw new Error(
|
|
1039
|
-
`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/stenciljs/core/issues/5457).`
|
|
1040
|
-
);
|
|
1041
|
-
}
|
|
1042
|
-
const elm = hostRef.$hostElement$ ;
|
|
1043
|
-
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1044
|
-
const flags = hostRef.$flags$;
|
|
1045
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1046
|
-
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1047
|
-
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1048
|
-
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1049
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1050
|
-
hostRef.$instanceValues$.set(propName, newVal);
|
|
1051
|
-
if (instance) {
|
|
1052
|
-
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1053
|
-
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1054
|
-
if (watchMethods) {
|
|
1055
|
-
watchMethods.map((watchMethodName) => {
|
|
1056
|
-
try {
|
|
1057
|
-
instance[watchMethodName](newVal, oldVal, propName);
|
|
1058
|
-
} catch (e) {
|
|
1059
|
-
consoleError(e, elm);
|
|
1060
|
-
}
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1065
|
-
if (instance.componentShouldUpdate) {
|
|
1066
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1067
|
-
return;
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
scheduleUpdate(hostRef, false);
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
};
|
|
1075
|
-
|
|
1076
|
-
// src/runtime/proxy-component.ts
|
|
1077
|
-
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1078
|
-
var _a, _b;
|
|
1079
|
-
const prototype = Cstr.prototype;
|
|
1080
|
-
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1081
|
-
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1082
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1083
|
-
}
|
|
1084
|
-
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1085
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
1086
|
-
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1087
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1088
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1089
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1090
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1091
|
-
Object.defineProperty(prototype, memberName, {
|
|
1092
|
-
get() {
|
|
1093
|
-
{
|
|
1094
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1095
|
-
return getValue(this, memberName);
|
|
1096
|
-
}
|
|
1097
|
-
const ref = getHostRef(this);
|
|
1098
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1099
|
-
if (!instance) return;
|
|
1100
|
-
return instance[memberName];
|
|
1101
|
-
}
|
|
1102
|
-
},
|
|
1103
|
-
configurable: true,
|
|
1104
|
-
enumerable: true
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
Object.defineProperty(prototype, memberName, {
|
|
1108
|
-
set(newValue) {
|
|
1109
|
-
const ref = getHostRef(this);
|
|
1110
|
-
if (origSetter) {
|
|
1111
|
-
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1112
|
-
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1113
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1114
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1115
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1116
|
-
}
|
|
1117
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1118
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1119
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1120
|
-
return;
|
|
1121
|
-
}
|
|
1122
|
-
{
|
|
1123
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1124
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1125
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1126
|
-
ref.$onReadyPromise$.then(() => {
|
|
1127
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1128
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1129
|
-
}
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
return;
|
|
1133
|
-
}
|
|
1134
|
-
const setterSetVal = () => {
|
|
1135
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1136
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1137
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1138
|
-
}
|
|
1139
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1140
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1141
|
-
};
|
|
1142
|
-
if (ref.$lazyInstance$) {
|
|
1143
|
-
setterSetVal();
|
|
1144
|
-
} else {
|
|
1145
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
});
|
|
1152
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1153
|
-
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1154
|
-
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1155
|
-
plt.jmp(() => {
|
|
1156
|
-
var _a2;
|
|
1157
|
-
const propName = attrNameToPropName.get(attrName);
|
|
1158
|
-
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1159
|
-
newValue = this[propName];
|
|
1160
|
-
delete this[propName];
|
|
1161
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1162
|
-
this[propName] == newValue) {
|
|
1163
|
-
return;
|
|
1164
|
-
} else if (propName == null) {
|
|
1165
|
-
const hostRef = getHostRef(this);
|
|
1166
|
-
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1167
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1168
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1169
|
-
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1170
|
-
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
1171
|
-
if (instance[callbackName] != null) {
|
|
1172
|
-
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1173
|
-
}
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
return;
|
|
1177
|
-
}
|
|
1178
|
-
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1179
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1180
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1181
|
-
this[propName] = newValue;
|
|
1182
|
-
}
|
|
1183
|
-
});
|
|
1184
|
-
};
|
|
1185
|
-
Cstr.observedAttributes = Array.from(
|
|
1186
|
-
/* @__PURE__ */ new Set([
|
|
1187
|
-
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1188
|
-
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
1189
|
-
const attrName = m[1] || propName;
|
|
1190
|
-
attrNameToPropName.set(attrName, propName);
|
|
1191
|
-
return attrName;
|
|
1192
|
-
})
|
|
1193
|
-
])
|
|
1194
|
-
);
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
return Cstr;
|
|
1198
|
-
};
|
|
1199
|
-
|
|
1200
|
-
// src/runtime/initialize-component.ts
|
|
1201
|
-
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1202
|
-
let Cstr;
|
|
1203
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1204
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1205
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1206
|
-
if (bundleId) {
|
|
1207
|
-
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1208
|
-
if (CstrImport && "then" in CstrImport) {
|
|
1209
|
-
const endLoad = uniqueTime();
|
|
1210
|
-
Cstr = await CstrImport;
|
|
1211
|
-
endLoad();
|
|
1212
|
-
} else {
|
|
1213
|
-
Cstr = CstrImport;
|
|
1214
|
-
}
|
|
1215
|
-
if (!Cstr) {
|
|
1216
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1217
|
-
}
|
|
1218
|
-
if (!Cstr.isProxied) {
|
|
1219
|
-
{
|
|
1220
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1221
|
-
}
|
|
1222
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1223
|
-
Cstr.isProxied = true;
|
|
1224
|
-
}
|
|
1225
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1226
|
-
{
|
|
1227
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1228
|
-
}
|
|
1229
|
-
try {
|
|
1230
|
-
new Cstr(hostRef);
|
|
1231
|
-
} catch (e) {
|
|
1232
|
-
consoleError(e, elm);
|
|
1233
|
-
}
|
|
1234
|
-
{
|
|
1235
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1236
|
-
}
|
|
1237
|
-
{
|
|
1238
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1239
|
-
}
|
|
1240
|
-
endNewInstance();
|
|
1241
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1242
|
-
} else {
|
|
1243
|
-
Cstr = elm.constructor;
|
|
1244
|
-
const cmpTag = elm.localName;
|
|
1245
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1246
|
-
}
|
|
1247
|
-
if (Cstr && Cstr.style) {
|
|
1248
|
-
let style;
|
|
1249
|
-
if (typeof Cstr.style === "string") {
|
|
1250
|
-
style = Cstr.style;
|
|
1251
|
-
}
|
|
1252
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1253
|
-
if (!styles.has(scopeId2)) {
|
|
1254
|
-
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1255
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1256
|
-
endRegisterStyles();
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1261
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1262
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1263
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1264
|
-
} else {
|
|
1265
|
-
schedule();
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
var fireConnectedCallback = (instance, elm) => {
|
|
1269
|
-
{
|
|
1270
|
-
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1271
|
-
}
|
|
1272
|
-
};
|
|
1273
|
-
|
|
1274
|
-
// src/runtime/connected-callback.ts
|
|
1275
|
-
var connectedCallback = (elm) => {
|
|
1276
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1277
|
-
const hostRef = getHostRef(elm);
|
|
1278
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1279
|
-
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1280
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1281
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1282
|
-
{
|
|
1283
|
-
let ancestorComponent = elm;
|
|
1284
|
-
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1285
|
-
if (ancestorComponent["s-p"]) {
|
|
1286
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1287
|
-
break;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
if (cmpMeta.$members$) {
|
|
1292
|
-
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1293
|
-
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1294
|
-
const value = elm[memberName];
|
|
1295
|
-
delete elm[memberName];
|
|
1296
|
-
elm[memberName] = value;
|
|
1297
|
-
}
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
{
|
|
1301
|
-
initializeComponent(elm, hostRef, cmpMeta);
|
|
1302
|
-
}
|
|
1303
|
-
} else {
|
|
1304
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1305
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1306
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1307
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
endConnected();
|
|
1311
|
-
}
|
|
1312
|
-
};
|
|
1313
|
-
var disconnectInstance = (instance, elm) => {
|
|
1314
|
-
{
|
|
1315
|
-
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1316
|
-
}
|
|
1317
|
-
};
|
|
1318
|
-
var disconnectedCallback = async (elm) => {
|
|
1319
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1320
|
-
const hostRef = getHostRef(elm);
|
|
1321
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1322
|
-
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1323
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1324
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1328
|
-
rootAppliedStyles.delete(elm);
|
|
1329
|
-
}
|
|
1330
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1331
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1332
|
-
}
|
|
1333
|
-
};
|
|
1334
|
-
|
|
1335
|
-
// src/runtime/bootstrap-lazy.ts
|
|
1336
|
-
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1337
|
-
var _a;
|
|
1338
|
-
if (!win.document) {
|
|
1339
|
-
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1340
|
-
return;
|
|
1341
|
-
}
|
|
1342
|
-
const endBootstrap = createTime();
|
|
1343
|
-
const cmpTags = [];
|
|
1344
|
-
const exclude = options.exclude || [];
|
|
1345
|
-
const customElements2 = win.customElements;
|
|
1346
|
-
const head = win.document.head;
|
|
1347
|
-
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1348
|
-
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1349
|
-
const deferredConnectedCallbacks = [];
|
|
1350
|
-
let appLoadFallback;
|
|
1351
|
-
let isBootstrapping = true;
|
|
1352
|
-
Object.assign(plt, options);
|
|
1353
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1354
|
-
let hasSlotRelocation = false;
|
|
1355
|
-
lazyBundles.map((lazyBundle) => {
|
|
1356
|
-
lazyBundle[1].map((compactMeta) => {
|
|
1357
|
-
var _a2;
|
|
1358
|
-
const cmpMeta = {
|
|
1359
|
-
$flags$: compactMeta[0],
|
|
1360
|
-
$tagName$: compactMeta[1],
|
|
1361
|
-
$members$: compactMeta[2],
|
|
1362
|
-
$listeners$: compactMeta[3]
|
|
1363
|
-
};
|
|
1364
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1365
|
-
hasSlotRelocation = true;
|
|
1366
|
-
}
|
|
1367
|
-
{
|
|
1368
|
-
cmpMeta.$members$ = compactMeta[2];
|
|
1369
|
-
}
|
|
1370
|
-
{
|
|
1371
|
-
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1372
|
-
}
|
|
1373
|
-
const tagName = cmpMeta.$tagName$;
|
|
1374
|
-
const HostElement = class extends HTMLElement {
|
|
1375
|
-
// StencilLazyHost
|
|
1376
|
-
constructor(self) {
|
|
1377
|
-
super(self);
|
|
1378
|
-
this.hasRegisteredEventListeners = false;
|
|
1379
|
-
self = this;
|
|
1380
|
-
registerHost(self, cmpMeta);
|
|
1381
|
-
}
|
|
1382
|
-
connectedCallback() {
|
|
1383
|
-
getHostRef(this);
|
|
1384
|
-
if (!this.hasRegisteredEventListeners) {
|
|
1385
|
-
this.hasRegisteredEventListeners = true;
|
|
1386
|
-
}
|
|
1387
|
-
if (appLoadFallback) {
|
|
1388
|
-
clearTimeout(appLoadFallback);
|
|
1389
|
-
appLoadFallback = null;
|
|
1390
|
-
}
|
|
1391
|
-
if (isBootstrapping) {
|
|
1392
|
-
deferredConnectedCallbacks.push(this);
|
|
1393
|
-
} else {
|
|
1394
|
-
plt.jmp(() => connectedCallback(this));
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
disconnectedCallback() {
|
|
1398
|
-
plt.jmp(() => disconnectedCallback(this));
|
|
1399
|
-
plt.raf(() => {
|
|
1400
|
-
var _a3;
|
|
1401
|
-
const hostRef = getHostRef(this);
|
|
1402
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1403
|
-
if (i2 > -1) {
|
|
1404
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1405
|
-
}
|
|
1406
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1407
|
-
delete hostRef.$vnode$.$elm$;
|
|
1408
|
-
}
|
|
1409
|
-
});
|
|
1410
|
-
}
|
|
1411
|
-
componentOnReady() {
|
|
1412
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1413
|
-
}
|
|
1414
|
-
};
|
|
1415
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1416
|
-
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
1417
|
-
cmpTags.push(tagName);
|
|
1418
|
-
customElements2.define(
|
|
1419
|
-
tagName,
|
|
1420
|
-
proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
|
|
1421
|
-
);
|
|
1422
|
-
}
|
|
1423
|
-
});
|
|
1424
|
-
});
|
|
1425
|
-
if (cmpTags.length > 0) {
|
|
1426
|
-
if (hasSlotRelocation) {
|
|
1427
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
1428
|
-
}
|
|
1429
|
-
{
|
|
1430
|
-
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1431
|
-
}
|
|
1432
|
-
if (dataStyles.innerHTML.length) {
|
|
1433
|
-
dataStyles.setAttribute("data-styles", "");
|
|
1434
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1435
|
-
if (nonce != null) {
|
|
1436
|
-
dataStyles.setAttribute("nonce", nonce);
|
|
1437
|
-
}
|
|
1438
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
isBootstrapping = false;
|
|
1442
|
-
if (deferredConnectedCallbacks.length) {
|
|
1443
|
-
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1444
|
-
} else {
|
|
1445
|
-
{
|
|
1446
|
-
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
endBootstrap();
|
|
1450
|
-
};
|
|
1451
|
-
|
|
1452
|
-
// src/runtime/nonce.ts
|
|
1453
|
-
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1454
|
-
|
|
1455
|
-
export { Env as E, getElement as a, bootstrapLazy as b, getAssetPath as c, createEvent as d, forceUpdate as f, getRenderingRef as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1456
|
-
//# sourceMappingURL=index-C2JRBB5c.js.map
|
|
1457
|
-
|
|
1458
|
-
//# sourceMappingURL=index-C2JRBB5c.js.map
|