@redhat-cloud-services/frontend-components-config-utilities 2.0.0-beta.0 → 2.0.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/federated-modules.js +4 -2
- package/package.json +2 -1
- package/repos/insights-chrome-build/58231b16fdee45a03a4ee3cf94a9f2c3 +3 -6
- package/repos/insights-chrome-build/app.info.json +5 -5
- package/repos/insights-chrome-build/index.html +4 -4
- package/repos/insights-chrome-build/js/79c835ddc356c3ef.woff +0 -0
- package/repos/insights-chrome-build/js/8f3e80eba644e3ec.svg +33 -0
- package/repos/insights-chrome-build/js/{_e6c7-_c8e2-_e6f2-_f5f0-_baa3-_f5b3-_9609-_7327-_e64b-_1dc3-_5da5-_cf22-_9531-_be8c-_50cd-_d0-cdab65.c1dc7ccd468c8c55255f.js → _c74b-_e0c3-_9cf0-_3467-_8add-_2900-_a7bc-_70d9-_eea3-_8afc-_d73e-_1a3c-_2385-_85ca-_5c4f-_0f-35898c0.b3f9836f62184986.js} +95 -95
- package/repos/insights-chrome-build/js/_c74b-_e0c3-_9cf0-_3467-_8add-_2900-_a7bc-_70d9-_eea3-_8afc-_d73e-_1a3c-_2385-_85ca-_5c4f-_0f-35898c1.b3f9836f62184986.js +943 -0
- package/repos/insights-chrome-build/js/ajs-destination.b3f9836f62184986.js +594 -0
- package/repos/insights-chrome-build/js/{auto-track.c1dc7ccd468c8c55255f.js → auto-track.b3f9836f62184986.js} +3 -3
- package/repos/insights-chrome-build/js/cb827f53cc6d6dcf.woff2 +0 -0
- package/repos/insights-chrome-build/js/{chrome.c1dc7ccd468c8c55255f.js → chrome-root.b3f9836f62184986.js} +10486 -90
- package/repos/insights-chrome-build/js/{chrome-root.c1dc7ccd468c8c55255f.js → chrome.b3f9836f62184986.js} +112 -102
- package/repos/insights-chrome-build/js/fed-mods.json +7 -10
- package/repos/insights-chrome-build/js/{main.c1dc7ccd468c8c55255f.css → main.b3f9836f62184986.css} +841 -1094
- package/repos/insights-chrome-build/js/node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js.b3f9836f62184986.js +323 -0
- package/repos/insights-chrome-build/js/node_modules_lodash_isEqual_js.b3f9836f62184986.js +48 -0
- package/repos/insights-chrome-build/js/{node_modules_patternfly_react-icons_dist_js_icons_bars-icon_js-node_modules_patternfly_react--73ba53.c1dc7ccd468c8c55255f.js → node_modules_patternfly_react-icons_dist_js_icons_bars-icon_js-node_modules_patternfly_react--0a3495.b3f9836f62184986.js} +91 -7
- package/repos/insights-chrome-build/js/{queryString.c1dc7ccd468c8c55255f.js → queryString.b3f9836f62184986.js} +49 -5
- package/repos/insights-chrome-build/js/quick-start.b3f9836f62184986.js +47 -0
- package/repos/insights-chrome-build/js/{schemaFilter.c1dc7ccd468c8c55255f.js → schemaFilter.b3f9836f62184986.js} +4 -2
- package/repos/insights-chrome-build/js/src_bootstrap_tsx-src_moduleOverrides_unfetch_ts-node_modules_redhat-cloud-services_frontend--275e6e.b3f9836f62184986.css +27041 -0
- package/repos/insights-chrome-build/js/src_bootstrap_tsx-src_moduleOverrides_unfetch_ts-node_modules_redhat-cloud-services_frontend--275e6e.b3f9836f62184986.js +20468 -0
- package/repos/insights-chrome-build/js/src_components_Debugger_index_ts.b3f9836f62184986.css +52 -0
- package/repos/insights-chrome-build/js/src_components_Debugger_index_ts.b3f9836f62184986.js +512 -0
- package/repos/insights-chrome-build/js/src_components_FavoriteServices_EmptyState_tsx-src_hooks_useFavoritedServices_ts.b3f9836f62184986.css +8664 -0
- package/repos/insights-chrome-build/js/src_components_FavoriteServices_EmptyState_tsx-src_hooks_useFavoritedServices_ts.b3f9836f62184986.js +5098 -0
- package/repos/insights-chrome-build/js/src_components_FavoriteServices_LandingNavFavorites_tsx-src_utils_common_ts.b3f9836f62184986.css +8662 -0
- package/repos/insights-chrome-build/js/src_components_FavoriteServices_LandingNavFavorites_tsx-src_utils_common_ts.b3f9836f62184986.js +898 -0
- package/repos/insights-chrome-build/js/src_components_NotEntitledModal_index_tsx.b3f9836f62184986.css +30 -0
- package/repos/insights-chrome-build/js/src_components_NotEntitledModal_index_tsx.b3f9836f62184986.js +237 -0
- package/repos/insights-chrome-build/js/src_components_QuickstartsCatalogRoute_index_ts.b3f9836f62184986.js +106 -0
- package/repos/insights-chrome-build/js/{src_js_App_Stratosphere_ProductSelection_tsx.c1dc7ccd468c8c55255f.css → src_components_Stratosphere_ProductSelection_tsx.b3f9836f62184986.css} +105 -1375
- package/repos/insights-chrome-build/js/src_components_Stratosphere_ProductSelection_tsx.b3f9836f62184986.js +335 -0
- package/repos/insights-chrome-build/js/src_moduleOverrides_chart-utils-override_js-src_pdf_DownloadButton_tsx-webpack_sharing_consum-3a44a6.b3f9836f62184986.js +91 -0
- package/repos/insights-chrome-build/js/{ajs-destination.c1dc7ccd468c8c55255f.js → tsub-middleware.b3f9836f62184986.js} +800 -820
- package/repos/insights-chrome-build/js/vendors-node_modules_buffer_index_js-node_modules_lodash__baseFlatten_js-node_modules_lodash_-1de864.b3f9836f62184986.js +2552 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js-node_modules-c053fb.b3f9836f62184986.js +1761 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_inherits_inherits_browser_js-node_modules_lodash__baseMerge_js-node_modu-5ed1a1.b3f9836f62184986.js +1113 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_base64-js_index_js-node_modules_lodash__baseFlatten_js-node_modules_loda-c4069d.c1dc7ccd468c8c55255f.js → vendors-node_modules_lodash__baseForOwn_js-node_modules_lodash__baseIteratee_js-node_modules_-167437.b3f9836f62184986.js} +1 -425
- package/repos/insights-chrome-build/js/vendors-node_modules_openshift_dynamic-plugin-sdk_dist_index_js.b3f9836f62184986.js +17197 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_patternfly_quickstarts_dist_index_es_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_quickstarts_dist_index_es_js.b3f9836f62184986.js} +220 -242
- package/repos/insights-chrome-build/js/{vendors-node_modules_redhat-cloud-services_frontend-components-pdf-generator_dist_esm_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_react-charts_dist_esm_components_ChartUtils_chart-theme_js-no-998b15.b3f9836f62184986.js} +138718 -121207
- package/repos/insights-chrome-build/js/{vendors-node_modules_patternfly_react-core_dist_esm_components_Spinner_Spinner_js-node_module-1e699f.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_react-core_dist_esm_components_Button_Button_js-node_modules_-6763c7.b3f9836f62184986.js} +2130 -266
- package/repos/insights-chrome-build/js/{vendors-node_modules_patternfly_react-core_dist_esm_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_react-core_dist_esm_index_js.b3f9836f62184986.js} +3266 -3190
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_next_components_Select_Select_js-node_modules_patt-da466d.b3f9836f62184986.js +4946 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_patternfly_react-icons_dist_esm_icons_external-link-alt-icon_js-node_mod-b94988.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_react-icons_dist_esm_icons_bell-slash-icon_js-node_modules_pa-6de3ff.b3f9836f62184986.js} +66729 -43554
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-icons_dist_esm_icons_star-icon_js-node_modules_axios_in-5a9fd5.b3f9836f62184986.js +2881 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_prop-types_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_prop-types_index_js.b3f9836f62184986.js} +0 -208
- package/repos/insights-chrome-build/js/{vendors-node_modules_react-redux_es_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_react-redux_es_index_js.b3f9836f62184986.js} +1131 -955
- package/repos/insights-chrome-build/js/vendors-node_modules_react-router-dom_dist_index_js.b3f9836f62184986.js +6691 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_classnames_index_js-node_modules_react_jsx-runtime_js-node_modules_babel-163bf5.c1dc7ccd468c8c55255f.js → vendors-node_modules_react_jsx-runtime_js.b3f9836f62184986.js} +3 -164
- package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_chrome_esm_index_js.b3f9836f62184986.js +708 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_frontend-components-utilities_esm_interceptors_int-b5fffe.b3f9836f62184986.js +21636 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_scalprum_core_dist_esm_index_js.b3f9836f62184986.js +363 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_scalprum_react-core_dist_esm_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_scalprum_react-core_dist_esm_index_js.b3f9836f62184986.js} +258 -442
- package/repos/insights-chrome-build/js/{vendors-node_modules_tslib_tslib_es6_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_tslib_tslib_es6_js.b3f9836f62184986.js} +16 -16
- package/repos/insights-chrome-build/js/{vendors-node_modules_unleash_proxy-client-react_dist_index_browser_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_unleash_proxy-client-react_dist_index_browser_js.b3f9836f62184986.js} +174 -123
- package/search-ignored-styles.js +26 -9
- package/repos/insights-chrome-build/js/0140846175072d73db39.woff +0 -0
- package/repos/insights-chrome-build/js/e888fa788db9794c334f.woff2 +0 -0
- package/repos/insights-chrome-build/js/middleware.c1dc7ccd468c8c55255f.js +0 -138
- package/repos/insights-chrome-build/js/node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js-node_modules_babel_r-4097d5.c1dc7ccd468c8c55255f.js +0 -195
- package/repos/insights-chrome-build/js/quick-start.c1dc7ccd468c8c55255f.js +0 -33
- package/repos/insights-chrome-build/js/src_js_App_Routes_QuickstartsCatalogRoute_js.c1dc7ccd468c8c55255f.js +0 -79
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_LandingNav_js.c1dc7ccd468c8c55255f.css +0 -17
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_LandingNav_js.c1dc7ccd468c8c55255f.js +0 -129
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_Navigation_componentMapper_js.c1dc7ccd468c8c55255f.js +0 -750
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_Navigation_index_js.c1dc7ccd468c8c55255f.js +0 -416
- package/repos/insights-chrome-build/js/src_js_App_Stratosphere_ProductSelection_tsx.c1dc7ccd468c8c55255f.js +0 -283
- package/repos/insights-chrome-build/js/src_js_bootstrap_js-src_js_unfetch_index_js-node_modules_redhat-cloud-services_frontend-compo-d86d1e.c1dc7ccd468c8c55255f.css +0 -921
- package/repos/insights-chrome-build/js/src_js_bootstrap_js-src_js_unfetch_index_js-node_modules_redhat-cloud-services_frontend-compo-d86d1e.c1dc7ccd468c8c55255f.js +0 -8466
- package/repos/insights-chrome-build/js/src_js_inventory_modules_AppInfo_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_DetailWrapper_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryDetailHead_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryDetail_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryTable_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_TagWithDialog_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_jwt_insights_offline_ts-src_js_jwt_jwt_ts.c1dc7ccd468c8c55255f.js +0 -1589
- package/repos/insights-chrome-build/js/src_js_jwt_modules_useChromeAuth_ts.c1dc7ccd468c8c55255f.js +0 -64
- package/repos/insights-chrome-build/js/src_js_overrides_chart-utils-override_js-src_js_pdf_DownloadButton_js-webpack_sharing_consume-5c7286.c1dc7ccd468c8c55255f.js +0 -119
- package/repos/insights-chrome-build/js/vendors-node_modules_babel_runtime_regenerator_index_js-node_modules_buffer_index_js-node_mod-aceb88.c1dc7ccd468c8c55255f.js +0 -5787
- package/repos/insights-chrome-build/js/vendors-node_modules_history_esm_history_js.c1dc7ccd468c8c55255f.js +0 -1148
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_components_Button_Button_js-node_modules_-6fa0b5.c1dc7ccd468c8c55255f.js +0 -1346
- package/repos/insights-chrome-build/js/vendors-node_modules_react-router-dom_esm_react-router-dom_js.c1dc7ccd468c8c55255f.js +0 -360
- package/repos/insights-chrome-build/js/vendors-node_modules_react-router_esm_react-router_js.c1dc7ccd468c8c55255f.js +0 -1466
- package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_entitlements-client_dist_index_js-node_modules_red-0a1887.c1dc7ccd468c8c55255f.js +0 -27710
- /package/repos/insights-chrome-build/js/{4e58e730f447f9d6a422.woff2 → 00e10699d4604274.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{54b2e33870ba270ba774.woff2 → 03be9971fdd08ef3.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{ab4371a522c3fce8ad2d.woff2 → 05294d67f8e33aab.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{60cc25d4be2d99536ede.woff2 → 091b27e83c831713.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{164a0ab4c909b911c99b.woff → 0d54864d782470c6.woff} +0 -0
- /package/repos/insights-chrome-build/js/{65deba23a8337b21a451.woff2 → 0d5f5f4e3bbf47e1.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{732b5ddbe8d56f5462b6.woff → 1039d3d8000f2c4b.woff} +0 -0
- /package/repos/insights-chrome-build/js/{246cf166b6945bf1c584.woff2 → 13f6558f31b2ee0f.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{d6b6f0c7a2af826d139d.woff → 1412957e204a8a1a.woff} +0 -0
- /package/repos/insights-chrome-build/js/{0239b22511e2cbe0741a.woff → 17802e9fb8c2dd3c.woff} +0 -0
- /package/repos/insights-chrome-build/js/{23fc486b36786bafb3d3.woff → 1be1bd18c67d1ac8.woff} +0 -0
- /package/repos/insights-chrome-build/js/{cf06a52fa81e76cc6b01.woff2 → 26409b4397ab88cc.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{59058fe454d37a189fb9.woff2 → 278473d290fcbf3b.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{549231141115a61fa57d.woff → 2a96d5b208c56fa6.woff} +0 -0
- /package/repos/insights-chrome-build/js/{269ca6c83388f975ccfa.woff2 → 2baac3a5d7ab7a15.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{ac4ae66cc059959cf8b7.woff → 316d3d41de174f24.woff} +0 -0
- /package/repos/insights-chrome-build/js/{323f30b3399fdc516b30.woff2 → 3239d74dcb174610.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{1904b4e1c18b4fc19778.woff → 326f107b61d32769.woff} +0 -0
- /package/repos/insights-chrome-build/js/{69bf841bb989a0010972.woff2 → 49ee635c956449ea.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{e693bff1704e699eb7e2.woff2 → 4ace320f5eaa7ee9.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{44d0c66e3d5040be8378.woff2 → 4b0d8eeb01c2f27e.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{8192be77a1809074aa20.svg → 4df2ca3d94d759b3.svg} +0 -0
- /package/repos/insights-chrome-build/js/{4a43a00f1c0c63f396ee.woff2 → 52f482efb5487bba.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{9db3d5976ae23546bbec.woff2 → 64b9a14b3398824f.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{95fdf61ffc45f12737c2.woff2 → 66309a34eac8b284.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{7150021df2ae6bcf6c17.woff2 → 6e30b223886d1eef.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{9abd7afa35218a435d29.woff2 → 6fb4e4e104bb886f.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{7799d9401910e36d7bb2.woff → 703c721f27900006.woff} +0 -0
- /package/repos/insights-chrome-build/js/{e7bea4af7086ce0144fc.woff → 7a0809e40bf8e79a.woff} +0 -0
- /package/repos/insights-chrome-build/js/{09bac349bc9aa9b72bbe.woff2 → 7a9fb47c5b35e50d.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{77929aa7a8bd4b667229.woff → 7bb3ddb0583cc7a5.woff} +0 -0
- /package/repos/insights-chrome-build/js/{3cd11726d843ff40c40b.woff → 7bf300b28414f3ad.woff} +0 -0
- /package/repos/insights-chrome-build/js/{e3438b1458a26c814ae6.woff2 → 7d9b027229967149.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{e9d4a1e9285e4454ef7e.woff → 81245ab8c867ea09.woff} +0 -0
- /package/repos/insights-chrome-build/js/{800277ea3e98b616b60f.woff → 830dcb2cc707ae4c.woff} +0 -0
- /package/repos/insights-chrome-build/js/{c0276d79b017a9c2476b.woff → 835112a9ba0d676e.woff} +0 -0
- /package/repos/insights-chrome-build/js/{7b7bb91c0af148738090.woff2 → 8f765508913b945e.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{817d3df17057373e2c46.woff → 91bbac2b6e0eb739.woff} +0 -0
- /package/repos/insights-chrome-build/js/{89a09f63411d174b18ea.woff2 → 96971d99ef5f2ef7.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{8d723ad7cfca2dfffacb.woff → a14c79bac597c758.woff} +0 -0
- /package/repos/insights-chrome-build/js/{c2b7c03209f0d3558e85.woff2 → a86c2bca47a21ff0.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{db4223ab0faaec898da7.woff → ad4d1e278d4d13cb.woff} +0 -0
- /package/repos/insights-chrome-build/js/{2c5bc263ad288d815bd3.woff2 → b0ebda5f4f12f761.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{675eb11fb9e055cea6a4.woff2 → b97a3321aaf7e87a.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{11855d3f3f99709dfac5.woff2 → ba04b02b7da08f3d.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{99464515aba730eab16c.woff2 → bb85876a67d3e7e7.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{8aae586c8c4d72be50c1.woff → bbe18aee9c88166d.woff} +0 -0
- /package/repos/insights-chrome-build/js/{190776b0696119b93c71.woff2 → c3ab7be4146884a3.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{bc0502ffc24dc33b8c5a.woff → c49edc34d14553e4.woff} +0 -0
- /package/repos/insights-chrome-build/js/{3278ae4a3a97d92b639c.woff2 → c8b06bb52b20081e.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{ac78b4f2e64edfb5859a.woff → c99e50723fcf0166.woff} +0 -0
- /package/repos/insights-chrome-build/js/{0227c8bb038eaf0264f7.woff2 → cd1824ff99b9ef33.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{9ed5a0180961e3930d44.woff2 → ce63a8f6be94c7cd.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{8584d6d2426caac44a12.woff2 → d004dc9f8c955767.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{06037ca2cf8525d353a1.woff2 → d19c89c249d7f751.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{61142d93d0198cb3c160.woff2 → d2a095f5996e5014.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{88ade95ac9a035be7168.woff → d2ce043298f5c972.woff} +0 -0
- /package/repos/insights-chrome-build/js/{24515e9b56a0ccb45480.woff → d2cf7e795db09bc7.woff} +0 -0
- /package/repos/insights-chrome-build/js/{d7d2238f0d64e36cd533.svg → d6083bde9a964ab4.svg} +0 -0
- /package/repos/insights-chrome-build/js/{2aa8547fdf2f790c2cb9.woff2 → dd18fb6c0b7048e8.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{909a870fdb828007557f.woff2 → df8a52d2494e1e03.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{3be6f9a55c75aaa6f25a.woff2 → e5c7a27047a83d24.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{f32577e5a5f1d27244a3.woff2 → e693e4f9d9c75499.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{35d01efdc213d0af0d00.woff → e8ec1c41a82bd354.woff} +0 -0
- /package/repos/insights-chrome-build/js/{81aade5a7b362566b199.woff → f66882bad34e5c9f.woff} +0 -0
- /package/repos/insights-chrome-build/js/{47a03d213b0b35080e32.woff → f830d4d01f5e4497.woff} +0 -0
- /package/repos/insights-chrome-build/js/{legacyVideos.c1dc7ccd468c8c55255f.js → legacyVideos.b3f9836f62184986.js} +0 -0
- /package/repos/insights-chrome-build/js/{remoteMiddleware.c1dc7ccd468c8c55255f.js → remoteMiddleware.b3f9836f62184986.js} +0 -0
- /package/repos/insights-chrome-build/js/{vendors-node_modules_lodash__baseIsEqual_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_lodash__baseIsEqual_js.b3f9836f62184986.js} +0 -0
- /package/repos/insights-chrome-build/js/{vendors-node_modules_segment_analytics_js-video-plugins_dist_index_umd_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_segment_analytics_js-video-plugins_dist_index_umd_js.b3f9836f62184986.js} +0 -0
|
@@ -1,651 +1,4 @@
|
|
|
1
|
-
(self["webpackChunkinsights_chrome"] = self["webpackChunkinsights_chrome"] || []).push([["
|
|
2
|
-
|
|
3
|
-
/***/ "./node_modules/@segment/analytics-next/dist/pkg/lib/is-plan-event-enabled.js":
|
|
4
|
-
/*!************************************************************************************!*\
|
|
5
|
-
!*** ./node_modules/@segment/analytics-next/dist/pkg/lib/is-plan-event-enabled.js ***!
|
|
6
|
-
\************************************************************************************/
|
|
7
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
-
|
|
9
|
-
"use strict";
|
|
10
|
-
__webpack_require__.r(__webpack_exports__);
|
|
11
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
/* harmony export */ "isPlanEventEnabled": () => (/* binding */ isPlanEventEnabled)
|
|
13
|
-
/* harmony export */ });
|
|
14
|
-
/**
|
|
15
|
-
* Determines whether a track event is allowed to be sent based on the
|
|
16
|
-
* user's tracking plan.
|
|
17
|
-
* If the user does not have a tracking plan or the event is allowed based
|
|
18
|
-
* on the tracking plan configuration, returns true.
|
|
19
|
-
*/
|
|
20
|
-
function isPlanEventEnabled(plan, planEvent) {
|
|
21
|
-
var _a, _b;
|
|
22
|
-
// Always prioritize the event's `enabled` status
|
|
23
|
-
if (typeof (planEvent === null || planEvent === void 0 ? void 0 : planEvent.enabled) === 'boolean') {
|
|
24
|
-
return planEvent.enabled;
|
|
25
|
-
}
|
|
26
|
-
// Assume absence of a tracking plan means events are enabled
|
|
27
|
-
return (_b = (_a = plan === null || plan === void 0 ? void 0 : plan.__default) === null || _a === void 0 ? void 0 : _a.enabled) !== null && _b !== void 0 ? _b : true;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=is-plan-event-enabled.js.map
|
|
30
|
-
|
|
31
|
-
/***/ }),
|
|
32
|
-
|
|
33
|
-
/***/ "./node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/index.js":
|
|
34
|
-
/*!****************************************************************************************!*\
|
|
35
|
-
!*** ./node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/index.js ***!
|
|
36
|
-
\****************************************************************************************/
|
|
37
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
38
|
-
|
|
39
|
-
"use strict";
|
|
40
|
-
__webpack_require__.r(__webpack_exports__);
|
|
41
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42
|
-
/* harmony export */ "LegacyDestination": () => (/* binding */ LegacyDestination),
|
|
43
|
-
/* harmony export */ "ajsDestinations": () => (/* binding */ ajsDestinations)
|
|
44
|
-
/* harmony export */ });
|
|
45
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/@segment/analytics-next/node_modules/tslib/tslib.es6.js");
|
|
46
|
-
/* harmony import */ var _segment_facade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @segment/facade */ "./node_modules/@segment/facade/dist/index.js");
|
|
47
|
-
/* harmony import */ var _segment_facade__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_segment_facade__WEBPACK_IMPORTED_MODULE_0__);
|
|
48
|
-
/* harmony import */ var _core_connection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../core/connection */ "./node_modules/@segment/analytics-next/dist/pkg/core/connection/index.js");
|
|
49
|
-
/* harmony import */ var _core_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../core/context */ "./node_modules/@segment/analytics-next/dist/pkg/core/context/index.js");
|
|
50
|
-
/* harmony import */ var _core_environment__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../core/environment */ "./node_modules/@segment/analytics-next/dist/pkg/core/environment/index.js");
|
|
51
|
-
/* harmony import */ var _core_queue_delivery__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../core/queue/delivery */ "./node_modules/@segment/analytics-next/dist/pkg/core/queue/delivery.js");
|
|
52
|
-
/* harmony import */ var _lib_as_promise__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../lib/as-promise */ "./node_modules/@segment/analytics-next/dist/pkg/lib/as-promise.js");
|
|
53
|
-
/* harmony import */ var _lib_is_plan_event_enabled__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../lib/is-plan-event-enabled */ "./node_modules/@segment/analytics-next/dist/pkg/lib/is-plan-event-enabled.js");
|
|
54
|
-
/* harmony import */ var _lib_merged_options__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../lib/merged-options */ "./node_modules/@segment/analytics-next/dist/pkg/lib/merged-options.js");
|
|
55
|
-
/* harmony import */ var _lib_p_while__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/p-while */ "./node_modules/@segment/analytics-next/dist/pkg/lib/p-while.js");
|
|
56
|
-
/* harmony import */ var _lib_priority_queue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lib/priority-queue */ "./node_modules/@segment/analytics-next/dist/pkg/lib/priority-queue/index.js");
|
|
57
|
-
/* harmony import */ var _lib_priority_queue_persisted__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../lib/priority-queue/persisted */ "./node_modules/@segment/analytics-next/dist/pkg/lib/priority-queue/persisted.js");
|
|
58
|
-
/* harmony import */ var _middleware__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../middleware */ "./node_modules/@segment/analytics-next/dist/pkg/plugins/middleware/index.js");
|
|
59
|
-
/* harmony import */ var _routing_middleware__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../routing-middleware */ "./node_modules/@segment/analytics-next/dist/pkg/plugins/routing-middleware/index.js");
|
|
60
|
-
/* harmony import */ var _loader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./loader */ "./node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/loader.js");
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
var klona = function (evt) {
|
|
77
|
-
return JSON.parse(JSON.stringify(evt));
|
|
78
|
-
};
|
|
79
|
-
function flushQueue(xt, queue) {
|
|
80
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
|
|
81
|
-
var failedQueue;
|
|
82
|
-
var _this = this;
|
|
83
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
|
|
84
|
-
switch (_a.label) {
|
|
85
|
-
case 0:
|
|
86
|
-
failedQueue = [];
|
|
87
|
-
if ((0,_core_connection__WEBPACK_IMPORTED_MODULE_2__.isOffline)()) {
|
|
88
|
-
return [2 /*return*/, queue];
|
|
89
|
-
}
|
|
90
|
-
return [4 /*yield*/, (0,_lib_p_while__WEBPACK_IMPORTED_MODULE_3__.pWhile)(function () { return queue.length > 0 && (0,_core_connection__WEBPACK_IMPORTED_MODULE_2__.isOnline)(); }, function () { return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(_this, void 0, void 0, function () {
|
|
91
|
-
var ctx, result, success;
|
|
92
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
|
|
93
|
-
switch (_a.label) {
|
|
94
|
-
case 0:
|
|
95
|
-
ctx = queue.pop();
|
|
96
|
-
if (!ctx) {
|
|
97
|
-
return [2 /*return*/];
|
|
98
|
-
}
|
|
99
|
-
return [4 /*yield*/, (0,_core_queue_delivery__WEBPACK_IMPORTED_MODULE_4__.attempt)(ctx, xt)];
|
|
100
|
-
case 1:
|
|
101
|
-
result = _a.sent();
|
|
102
|
-
success = result instanceof _core_context__WEBPACK_IMPORTED_MODULE_5__.Context;
|
|
103
|
-
if (!success) {
|
|
104
|
-
failedQueue.push(ctx);
|
|
105
|
-
}
|
|
106
|
-
return [2 /*return*/];
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}); })
|
|
110
|
-
// re-add failed tasks
|
|
111
|
-
];
|
|
112
|
-
case 1:
|
|
113
|
-
_a.sent();
|
|
114
|
-
// re-add failed tasks
|
|
115
|
-
failedQueue.map(function (failed) { return queue.pushWithBackoff(failed); });
|
|
116
|
-
return [2 /*return*/, queue];
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
var LegacyDestination = /** @class */ (function () {
|
|
122
|
-
function LegacyDestination(name, version, settings, options) {
|
|
123
|
-
if (settings === void 0) { settings = {}; }
|
|
124
|
-
this.options = {};
|
|
125
|
-
this.type = 'destination';
|
|
126
|
-
this.middleware = [];
|
|
127
|
-
this._ready = false;
|
|
128
|
-
this._initialized = false;
|
|
129
|
-
this.flushing = false;
|
|
130
|
-
this.name = name;
|
|
131
|
-
this.version = version;
|
|
132
|
-
this.settings = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({}, settings);
|
|
133
|
-
// AJS-Renderer sets an extraneous `type` setting that clobbers
|
|
134
|
-
// existing type defaults. We need to remove it if it's present
|
|
135
|
-
if (this.settings['type'] && this.settings['type'] === 'browser') {
|
|
136
|
-
delete this.settings['type'];
|
|
137
|
-
}
|
|
138
|
-
this.options = options;
|
|
139
|
-
this.buffer = options.disableClientPersistence
|
|
140
|
-
? new _lib_priority_queue__WEBPACK_IMPORTED_MODULE_6__.PriorityQueue(4, [])
|
|
141
|
-
: new _lib_priority_queue_persisted__WEBPACK_IMPORTED_MODULE_7__.PersistedPriorityQueue(4, "dest-".concat(name));
|
|
142
|
-
this.scheduleFlush();
|
|
143
|
-
}
|
|
144
|
-
LegacyDestination.prototype.isLoaded = function () {
|
|
145
|
-
return this._ready;
|
|
146
|
-
};
|
|
147
|
-
LegacyDestination.prototype.ready = function () {
|
|
148
|
-
var _a;
|
|
149
|
-
return (_a = this.onReady) !== null && _a !== void 0 ? _a : Promise.resolve();
|
|
150
|
-
};
|
|
151
|
-
LegacyDestination.prototype.load = function (ctx, analyticsInstance) {
|
|
152
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
|
|
153
|
-
var _a;
|
|
154
|
-
var _this = this;
|
|
155
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_b) {
|
|
156
|
-
switch (_b.label) {
|
|
157
|
-
case 0:
|
|
158
|
-
if (this._ready || this.onReady !== undefined) {
|
|
159
|
-
return [2 /*return*/];
|
|
160
|
-
}
|
|
161
|
-
_a = this;
|
|
162
|
-
return [4 /*yield*/, (0,_loader__WEBPACK_IMPORTED_MODULE_8__.loadIntegration)(ctx, analyticsInstance, this.name, this.version, this.settings, this.options.obfuscate)];
|
|
163
|
-
case 1:
|
|
164
|
-
_a.integration = _b.sent();
|
|
165
|
-
this.onReady = new Promise(function (resolve) {
|
|
166
|
-
var onReadyFn = function () {
|
|
167
|
-
_this._ready = true;
|
|
168
|
-
resolve(true);
|
|
169
|
-
};
|
|
170
|
-
_this.integration.once('ready', onReadyFn);
|
|
171
|
-
});
|
|
172
|
-
this.onInitialize = new Promise(function (resolve) {
|
|
173
|
-
var onInit = function () {
|
|
174
|
-
_this._initialized = true;
|
|
175
|
-
resolve(true);
|
|
176
|
-
};
|
|
177
|
-
_this.integration.on('initialize', onInit);
|
|
178
|
-
});
|
|
179
|
-
try {
|
|
180
|
-
ctx.stats.increment('analytics_js.integration.invoke', 1, [
|
|
181
|
-
"method:initialize",
|
|
182
|
-
"integration_name:".concat(this.name),
|
|
183
|
-
]);
|
|
184
|
-
this.integration.initialize();
|
|
185
|
-
}
|
|
186
|
-
catch (error) {
|
|
187
|
-
ctx.stats.increment('analytics_js.integration.invoke.error', 1, [
|
|
188
|
-
"method:initialize",
|
|
189
|
-
"integration_name:".concat(this.name),
|
|
190
|
-
]);
|
|
191
|
-
throw error;
|
|
192
|
-
}
|
|
193
|
-
return [2 /*return*/];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
LegacyDestination.prototype.unload = function (_ctx, _analyticsInstance) {
|
|
199
|
-
return (0,_loader__WEBPACK_IMPORTED_MODULE_8__.unloadIntegration)(this.name, this.version, this.options.obfuscate);
|
|
200
|
-
};
|
|
201
|
-
LegacyDestination.prototype.addMiddleware = function () {
|
|
202
|
-
var _a;
|
|
203
|
-
var fn = [];
|
|
204
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
205
|
-
fn[_i] = arguments[_i];
|
|
206
|
-
}
|
|
207
|
-
this.middleware = (_a = this.middleware).concat.apply(_a, fn);
|
|
208
|
-
};
|
|
209
|
-
LegacyDestination.prototype.shouldBuffer = function (ctx) {
|
|
210
|
-
return (
|
|
211
|
-
// page events can't be buffered because of destinations that automatically add page views
|
|
212
|
-
ctx.event.type !== 'page' &&
|
|
213
|
-
((0,_core_connection__WEBPACK_IMPORTED_MODULE_2__.isOffline)() || this._ready === false || this._initialized === false));
|
|
214
|
-
};
|
|
215
|
-
LegacyDestination.prototype.send = function (ctx, clz, eventType) {
|
|
216
|
-
var _a, _b;
|
|
217
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
|
|
218
|
-
var plan, ev, planEvent, afterMiddleware, event, err_1;
|
|
219
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_c) {
|
|
220
|
-
switch (_c.label) {
|
|
221
|
-
case 0:
|
|
222
|
-
if (this.shouldBuffer(ctx)) {
|
|
223
|
-
this.buffer.push(ctx);
|
|
224
|
-
this.scheduleFlush();
|
|
225
|
-
return [2 /*return*/, ctx];
|
|
226
|
-
}
|
|
227
|
-
plan = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.plan) === null || _b === void 0 ? void 0 : _b.track;
|
|
228
|
-
ev = ctx.event.event;
|
|
229
|
-
if (plan && ev && this.name !== 'Segment.io') {
|
|
230
|
-
planEvent = plan[ev];
|
|
231
|
-
if (!(0,_lib_is_plan_event_enabled__WEBPACK_IMPORTED_MODULE_9__.isPlanEventEnabled)(plan, planEvent)) {
|
|
232
|
-
ctx.updateEvent('integrations', (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({}, ctx.event.integrations), { All: false, 'Segment.io': true }));
|
|
233
|
-
ctx.cancel(new _core_context__WEBPACK_IMPORTED_MODULE_5__.ContextCancelation({
|
|
234
|
-
retry: false,
|
|
235
|
-
reason: "Event ".concat(ev, " disabled for integration ").concat(this.name, " in tracking plan"),
|
|
236
|
-
type: 'Dropped by plan',
|
|
237
|
-
}));
|
|
238
|
-
return [2 /*return*/, ctx];
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
ctx.updateEvent('integrations', (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)((0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({}, ctx.event.integrations), planEvent === null || planEvent === void 0 ? void 0 : planEvent.integrations));
|
|
242
|
-
}
|
|
243
|
-
if ((planEvent === null || planEvent === void 0 ? void 0 : planEvent.enabled) && (planEvent === null || planEvent === void 0 ? void 0 : planEvent.integrations[this.name]) === false) {
|
|
244
|
-
ctx.cancel(new _core_context__WEBPACK_IMPORTED_MODULE_5__.ContextCancelation({
|
|
245
|
-
retry: false,
|
|
246
|
-
reason: "Event ".concat(ev, " disabled for integration ").concat(this.name, " in tracking plan"),
|
|
247
|
-
type: 'Dropped by plan',
|
|
248
|
-
}));
|
|
249
|
-
return [2 /*return*/, ctx];
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
return [4 /*yield*/, (0,_middleware__WEBPACK_IMPORTED_MODULE_10__.applyDestinationMiddleware)(this.name, klona(ctx.event), this.middleware)];
|
|
253
|
-
case 1:
|
|
254
|
-
afterMiddleware = _c.sent();
|
|
255
|
-
if (afterMiddleware === null) {
|
|
256
|
-
return [2 /*return*/, ctx];
|
|
257
|
-
}
|
|
258
|
-
event = new clz(afterMiddleware, {});
|
|
259
|
-
ctx.stats.increment('analytics_js.integration.invoke', 1, [
|
|
260
|
-
"method:".concat(eventType),
|
|
261
|
-
"integration_name:".concat(this.name),
|
|
262
|
-
]);
|
|
263
|
-
_c.label = 2;
|
|
264
|
-
case 2:
|
|
265
|
-
_c.trys.push([2, 5, , 6]);
|
|
266
|
-
if (!this.integration) return [3 /*break*/, 4];
|
|
267
|
-
return [4 /*yield*/, (0,_lib_as_promise__WEBPACK_IMPORTED_MODULE_11__.asPromise)(this.integration.invoke.call(this.integration, eventType, event))];
|
|
268
|
-
case 3:
|
|
269
|
-
_c.sent();
|
|
270
|
-
_c.label = 4;
|
|
271
|
-
case 4: return [3 /*break*/, 6];
|
|
272
|
-
case 5:
|
|
273
|
-
err_1 = _c.sent();
|
|
274
|
-
ctx.stats.increment('analytics_js.integration.invoke.error', 1, [
|
|
275
|
-
"method:".concat(eventType),
|
|
276
|
-
"integration_name:".concat(this.name),
|
|
277
|
-
]);
|
|
278
|
-
throw err_1;
|
|
279
|
-
case 6: return [2 /*return*/, ctx];
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
});
|
|
283
|
-
};
|
|
284
|
-
LegacyDestination.prototype.track = function (ctx) {
|
|
285
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
|
|
286
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
|
|
287
|
-
return [2 /*return*/, this.send(ctx, _segment_facade__WEBPACK_IMPORTED_MODULE_0__.Track, 'track')];
|
|
288
|
-
});
|
|
289
|
-
});
|
|
290
|
-
};
|
|
291
|
-
LegacyDestination.prototype.page = function (ctx) {
|
|
292
|
-
var _a;
|
|
293
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
|
|
294
|
-
var _this = this;
|
|
295
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_b) {
|
|
296
|
-
if (((_a = this.integration) === null || _a === void 0 ? void 0 : _a._assumesPageview) && !this._initialized) {
|
|
297
|
-
this.integration.initialize();
|
|
298
|
-
}
|
|
299
|
-
return [2 /*return*/, this.onInitialize.then(function () {
|
|
300
|
-
return _this.send(ctx, _segment_facade__WEBPACK_IMPORTED_MODULE_0__.Page, 'page');
|
|
301
|
-
})];
|
|
302
|
-
});
|
|
303
|
-
});
|
|
304
|
-
};
|
|
305
|
-
LegacyDestination.prototype.identify = function (ctx) {
|
|
306
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
|
|
307
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
|
|
308
|
-
return [2 /*return*/, this.send(ctx, _segment_facade__WEBPACK_IMPORTED_MODULE_0__.Identify, 'identify')];
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
};
|
|
312
|
-
LegacyDestination.prototype.alias = function (ctx) {
|
|
313
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
|
|
314
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
|
|
315
|
-
return [2 /*return*/, this.send(ctx, _segment_facade__WEBPACK_IMPORTED_MODULE_0__.Alias, 'alias')];
|
|
316
|
-
});
|
|
317
|
-
});
|
|
318
|
-
};
|
|
319
|
-
LegacyDestination.prototype.group = function (ctx) {
|
|
320
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
|
|
321
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
|
|
322
|
-
return [2 /*return*/, this.send(ctx, _segment_facade__WEBPACK_IMPORTED_MODULE_0__.Group, 'group')];
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
};
|
|
326
|
-
LegacyDestination.prototype.scheduleFlush = function () {
|
|
327
|
-
var _this = this;
|
|
328
|
-
if (this.flushing) {
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
332
|
-
setTimeout(function () { return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(_this, void 0, void 0, function () {
|
|
333
|
-
var _a;
|
|
334
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_b) {
|
|
335
|
-
switch (_b.label) {
|
|
336
|
-
case 0:
|
|
337
|
-
this.flushing = true;
|
|
338
|
-
_a = this;
|
|
339
|
-
return [4 /*yield*/, flushQueue(this, this.buffer)];
|
|
340
|
-
case 1:
|
|
341
|
-
_a.buffer = _b.sent();
|
|
342
|
-
this.flushing = false;
|
|
343
|
-
if (this.buffer.todo > 0) {
|
|
344
|
-
this.scheduleFlush();
|
|
345
|
-
}
|
|
346
|
-
return [2 /*return*/];
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
}); }, Math.random() * 5000);
|
|
350
|
-
};
|
|
351
|
-
return LegacyDestination;
|
|
352
|
-
}());
|
|
353
|
-
|
|
354
|
-
function ajsDestinations(settings, globalIntegrations, options) {
|
|
355
|
-
var _a, _b;
|
|
356
|
-
if (globalIntegrations === void 0) { globalIntegrations = {}; }
|
|
357
|
-
if (options === void 0) { options = {}; }
|
|
358
|
-
if ((0,_core_environment__WEBPACK_IMPORTED_MODULE_12__.isServer)()) {
|
|
359
|
-
return [];
|
|
360
|
-
}
|
|
361
|
-
if (settings.plan) {
|
|
362
|
-
options = options !== null && options !== void 0 ? options : {};
|
|
363
|
-
options.plan = settings.plan;
|
|
364
|
-
}
|
|
365
|
-
var routingRules = (_b = (_a = settings.middlewareSettings) === null || _a === void 0 ? void 0 : _a.routingRules) !== null && _b !== void 0 ? _b : [];
|
|
366
|
-
var routingMiddleware = (0,_routing_middleware__WEBPACK_IMPORTED_MODULE_13__.tsubMiddleware)(routingRules);
|
|
367
|
-
// merged remote CDN settings with user provided options
|
|
368
|
-
var integrationOptions = (0,_lib_merged_options__WEBPACK_IMPORTED_MODULE_14__.mergedOptions)(settings, options !== null && options !== void 0 ? options : {});
|
|
369
|
-
return Object.entries(settings.integrations)
|
|
370
|
-
.map(function (_a) {
|
|
371
|
-
var _b;
|
|
372
|
-
var name = _a[0], integrationSettings = _a[1];
|
|
373
|
-
if (name.startsWith('Segment')) {
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
var allDisableAndNotDefined = globalIntegrations.All === false &&
|
|
377
|
-
globalIntegrations[name] === undefined;
|
|
378
|
-
if (globalIntegrations[name] === false || allDisableAndNotDefined) {
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
var type = integrationSettings.type, bundlingStatus = integrationSettings.bundlingStatus, versionSettings = integrationSettings.versionSettings;
|
|
382
|
-
// We use `!== 'unbundled'` (versus `=== 'bundled'`) to be inclusive of
|
|
383
|
-
// destinations without a defined value for `bundlingStatus`
|
|
384
|
-
var deviceMode = bundlingStatus !== 'unbundled' &&
|
|
385
|
-
(type === 'browser' ||
|
|
386
|
-
((_b = versionSettings === null || versionSettings === void 0 ? void 0 : versionSettings.componentTypes) === null || _b === void 0 ? void 0 : _b.includes('browser')));
|
|
387
|
-
// checking for iterable is a quick fix we need in place to prevent
|
|
388
|
-
// errors showing Iterable as a failed destiantion. Ideally, we should
|
|
389
|
-
// fix the Iterable metadata instead, but that's a longer process.
|
|
390
|
-
if ((!deviceMode && name !== 'Segment.io') || name === 'Iterable') {
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
var version = (0,_loader__WEBPACK_IMPORTED_MODULE_8__.resolveVersion)(integrationSettings);
|
|
394
|
-
var destination = new LegacyDestination(name, version, integrationOptions[name], options);
|
|
395
|
-
var routing = routingRules.filter(function (rule) { return rule.destinationName === name; });
|
|
396
|
-
if (routing.length > 0) {
|
|
397
|
-
destination.addMiddleware(routingMiddleware);
|
|
398
|
-
}
|
|
399
|
-
return destination;
|
|
400
|
-
})
|
|
401
|
-
.filter(function (xt) { return xt !== undefined; });
|
|
402
|
-
}
|
|
403
|
-
//# sourceMappingURL=index.js.map
|
|
404
|
-
|
|
405
|
-
/***/ }),
|
|
406
|
-
|
|
407
|
-
/***/ "./node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/loader.js":
|
|
408
|
-
/*!*****************************************************************************************!*\
|
|
409
|
-
!*** ./node_modules/@segment/analytics-next/dist/pkg/plugins/ajs-destination/loader.js ***!
|
|
410
|
-
\*****************************************************************************************/
|
|
411
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
412
|
-
|
|
413
|
-
"use strict";
|
|
414
|
-
__webpack_require__.r(__webpack_exports__);
|
|
415
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
416
|
-
/* harmony export */ "loadIntegration": () => (/* binding */ loadIntegration),
|
|
417
|
-
/* harmony export */ "unloadIntegration": () => (/* binding */ unloadIntegration),
|
|
418
|
-
/* harmony export */ "resolveVersion": () => (/* binding */ resolveVersion)
|
|
419
|
-
/* harmony export */ });
|
|
420
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/@segment/analytics-next/node_modules/tslib/tslib.es6.js");
|
|
421
|
-
/* harmony import */ var _lib_parse_cdn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/parse-cdn */ "./node_modules/@segment/analytics-next/dist/pkg/lib/parse-cdn.js");
|
|
422
|
-
/* harmony import */ var _lib_load_script__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/load-script */ "./node_modules/@segment/analytics-next/dist/pkg/lib/load-script.js");
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
function normalizeName(name) {
|
|
427
|
-
return name.toLowerCase().replace('.', '').replace(/\s+/g, '-');
|
|
428
|
-
}
|
|
429
|
-
function obfuscatePathName(pathName, obfuscate) {
|
|
430
|
-
if (obfuscate === void 0) { obfuscate = false; }
|
|
431
|
-
return obfuscate ? btoa(pathName).replace(/=/g, '') : undefined;
|
|
432
|
-
}
|
|
433
|
-
function recordLoadMetrics(fullPath, ctx, name) {
|
|
434
|
-
var _a, _b, _c;
|
|
435
|
-
try {
|
|
436
|
-
var metric = ((_c = (_b = (_a = __webpack_require__.g.window) === null || _a === void 0 ? void 0 : _a.performance) === null || _b === void 0 ? void 0 : _b.getEntriesByName(fullPath, 'resource')) !== null && _c !== void 0 ? _c : [])[0];
|
|
437
|
-
// we assume everything that took under 100ms is cached
|
|
438
|
-
metric &&
|
|
439
|
-
ctx.stats.gauge('legacy_destination_time', Math.round(metric.duration), (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__spreadArray)([
|
|
440
|
-
name
|
|
441
|
-
], (metric.duration < 100 ? ['cached'] : []), true));
|
|
442
|
-
}
|
|
443
|
-
catch (_) {
|
|
444
|
-
// not available
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
function loadIntegration(ctx, analyticsInstance, name, version, settings, obfuscate) {
|
|
448
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function () {
|
|
449
|
-
var pathName, obfuscatedPathName, path, fullPath, err_1, deps, integrationBuilder, analyticsStub, integration;
|
|
450
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__generator)(this, function (_a) {
|
|
451
|
-
switch (_a.label) {
|
|
452
|
-
case 0:
|
|
453
|
-
pathName = normalizeName(name);
|
|
454
|
-
obfuscatedPathName = obfuscatePathName(pathName, obfuscate);
|
|
455
|
-
path = (0,_lib_parse_cdn__WEBPACK_IMPORTED_MODULE_1__.getNextIntegrationsURL)();
|
|
456
|
-
fullPath = "".concat(path, "/integrations/").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, "/").concat(version, "/").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, ".dynamic.js.gz");
|
|
457
|
-
_a.label = 1;
|
|
458
|
-
case 1:
|
|
459
|
-
_a.trys.push([1, 3, , 4]);
|
|
460
|
-
return [4 /*yield*/, (0,_lib_load_script__WEBPACK_IMPORTED_MODULE_2__.loadScript)(fullPath)];
|
|
461
|
-
case 2:
|
|
462
|
-
_a.sent();
|
|
463
|
-
recordLoadMetrics(fullPath, ctx, name);
|
|
464
|
-
return [3 /*break*/, 4];
|
|
465
|
-
case 3:
|
|
466
|
-
err_1 = _a.sent();
|
|
467
|
-
ctx.stats.gauge('legacy_destination_time', -1, ["plugin:".concat(name), "failed"]);
|
|
468
|
-
throw err_1;
|
|
469
|
-
case 4:
|
|
470
|
-
deps = window["".concat(pathName, "Deps")];
|
|
471
|
-
return [4 /*yield*/, Promise.all(deps.map(function (dep) { return (0,_lib_load_script__WEBPACK_IMPORTED_MODULE_2__.loadScript)(path + dep + '.gz'); }))
|
|
472
|
-
// @ts-ignore
|
|
473
|
-
];
|
|
474
|
-
case 5:
|
|
475
|
-
_a.sent();
|
|
476
|
-
// @ts-ignore
|
|
477
|
-
window["".concat(pathName, "Loader")]();
|
|
478
|
-
integrationBuilder = window["".concat(pathName, "Integration")];
|
|
479
|
-
// GA and Appcues use a different interface to instantiating integrations
|
|
480
|
-
if (integrationBuilder.Integration) {
|
|
481
|
-
analyticsStub = {
|
|
482
|
-
user: function () { return analyticsInstance.user(); },
|
|
483
|
-
addIntegration: function () { },
|
|
484
|
-
};
|
|
485
|
-
integrationBuilder(analyticsStub);
|
|
486
|
-
integrationBuilder = integrationBuilder.Integration;
|
|
487
|
-
}
|
|
488
|
-
integration = new integrationBuilder(settings);
|
|
489
|
-
integration.analytics = analyticsInstance;
|
|
490
|
-
return [2 /*return*/, integration];
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
function unloadIntegration(name, version, obfuscate) {
|
|
496
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function () {
|
|
497
|
-
var path, pathName, obfuscatedPathName, fullPath;
|
|
498
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__generator)(this, function (_a) {
|
|
499
|
-
path = (0,_lib_parse_cdn__WEBPACK_IMPORTED_MODULE_1__.getNextIntegrationsURL)();
|
|
500
|
-
pathName = normalizeName(name);
|
|
501
|
-
obfuscatedPathName = obfuscatePathName(name, obfuscate);
|
|
502
|
-
fullPath = "".concat(path, "/integrations/").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, "/").concat(version, "/").concat(obfuscatedPathName !== null && obfuscatedPathName !== void 0 ? obfuscatedPathName : pathName, ".dynamic.js.gz");
|
|
503
|
-
return [2 /*return*/, (0,_lib_load_script__WEBPACK_IMPORTED_MODULE_2__.unloadScript)(fullPath)];
|
|
504
|
-
});
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
function resolveVersion(settings) {
|
|
508
|
-
var _a, _b, _c, _d;
|
|
509
|
-
return ((_d = (_b = (_a = settings.versionSettings) === null || _a === void 0 ? void 0 : _a.override) !== null && _b !== void 0 ? _b : (_c = settings.versionSettings) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : 'latest');
|
|
510
|
-
}
|
|
511
|
-
//# sourceMappingURL=loader.js.map
|
|
512
|
-
|
|
513
|
-
/***/ }),
|
|
514
|
-
|
|
515
|
-
/***/ "./node_modules/@segment/analytics-next/dist/pkg/plugins/middleware/index.js":
|
|
516
|
-
/*!***********************************************************************************!*\
|
|
517
|
-
!*** ./node_modules/@segment/analytics-next/dist/pkg/plugins/middleware/index.js ***!
|
|
518
|
-
\***********************************************************************************/
|
|
519
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
520
|
-
|
|
521
|
-
"use strict";
|
|
522
|
-
__webpack_require__.r(__webpack_exports__);
|
|
523
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
524
|
-
/* harmony export */ "applyDestinationMiddleware": () => (/* binding */ applyDestinationMiddleware),
|
|
525
|
-
/* harmony export */ "sourceMiddlewarePlugin": () => (/* binding */ sourceMiddlewarePlugin)
|
|
526
|
-
/* harmony export */ });
|
|
527
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/@segment/analytics-next/node_modules/tslib/tslib.es6.js");
|
|
528
|
-
/* harmony import */ var _core_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/context */ "./node_modules/@segment/analytics-next/dist/pkg/core/context/index.js");
|
|
529
|
-
/* harmony import */ var _lib_as_promise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/as-promise */ "./node_modules/@segment/analytics-next/dist/pkg/lib/as-promise.js");
|
|
530
|
-
/* harmony import */ var _lib_to_facade__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/to-facade */ "./node_modules/@segment/analytics-next/dist/pkg/lib/to-facade.js");
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
function applyDestinationMiddleware(destination, evt, middleware) {
|
|
536
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function () {
|
|
537
|
-
function applyMiddleware(event, fn) {
|
|
538
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function () {
|
|
539
|
-
var nextCalled, returnedEvent;
|
|
540
|
-
var _a;
|
|
541
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__generator)(this, function (_b) {
|
|
542
|
-
switch (_b.label) {
|
|
543
|
-
case 0:
|
|
544
|
-
nextCalled = false;
|
|
545
|
-
returnedEvent = null;
|
|
546
|
-
return [4 /*yield*/, (0,_lib_as_promise__WEBPACK_IMPORTED_MODULE_1__.asPromise)(fn({
|
|
547
|
-
payload: (0,_lib_to_facade__WEBPACK_IMPORTED_MODULE_2__.toFacade)(event, {
|
|
548
|
-
clone: true,
|
|
549
|
-
traverse: false,
|
|
550
|
-
}),
|
|
551
|
-
integration: destination,
|
|
552
|
-
next: function (evt) {
|
|
553
|
-
nextCalled = true;
|
|
554
|
-
if (evt === null) {
|
|
555
|
-
returnedEvent = null;
|
|
556
|
-
}
|
|
557
|
-
if (evt) {
|
|
558
|
-
returnedEvent = evt.obj;
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
}))];
|
|
562
|
-
case 1:
|
|
563
|
-
_b.sent();
|
|
564
|
-
if (!nextCalled && returnedEvent !== null) {
|
|
565
|
-
returnedEvent = returnedEvent;
|
|
566
|
-
returnedEvent.integrations = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)((0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, event.integrations), (_a = {}, _a[destination] = false, _a));
|
|
567
|
-
}
|
|
568
|
-
return [2 /*return*/, returnedEvent];
|
|
569
|
-
}
|
|
570
|
-
});
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
var _i, middleware_1, md, result;
|
|
574
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__generator)(this, function (_a) {
|
|
575
|
-
switch (_a.label) {
|
|
576
|
-
case 0:
|
|
577
|
-
_i = 0, middleware_1 = middleware;
|
|
578
|
-
_a.label = 1;
|
|
579
|
-
case 1:
|
|
580
|
-
if (!(_i < middleware_1.length)) return [3 /*break*/, 4];
|
|
581
|
-
md = middleware_1[_i];
|
|
582
|
-
return [4 /*yield*/, applyMiddleware(evt, md)];
|
|
583
|
-
case 2:
|
|
584
|
-
result = _a.sent();
|
|
585
|
-
if (result === null) {
|
|
586
|
-
return [2 /*return*/, null];
|
|
587
|
-
}
|
|
588
|
-
evt = result;
|
|
589
|
-
_a.label = 3;
|
|
590
|
-
case 3:
|
|
591
|
-
_i++;
|
|
592
|
-
return [3 /*break*/, 1];
|
|
593
|
-
case 4: return [2 /*return*/, evt];
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
function sourceMiddlewarePlugin(fn, integrations) {
|
|
599
|
-
function apply(ctx) {
|
|
600
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function () {
|
|
601
|
-
var nextCalled;
|
|
602
|
-
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__generator)(this, function (_a) {
|
|
603
|
-
switch (_a.label) {
|
|
604
|
-
case 0:
|
|
605
|
-
nextCalled = false;
|
|
606
|
-
return [4 /*yield*/, (0,_lib_as_promise__WEBPACK_IMPORTED_MODULE_1__.asPromise)(fn({
|
|
607
|
-
payload: (0,_lib_to_facade__WEBPACK_IMPORTED_MODULE_2__.toFacade)(ctx.event, {
|
|
608
|
-
clone: true,
|
|
609
|
-
traverse: false,
|
|
610
|
-
}),
|
|
611
|
-
integrations: integrations !== null && integrations !== void 0 ? integrations : {},
|
|
612
|
-
next: function (evt) {
|
|
613
|
-
nextCalled = true;
|
|
614
|
-
if (evt) {
|
|
615
|
-
ctx.event = evt.obj;
|
|
616
|
-
}
|
|
617
|
-
},
|
|
618
|
-
}))];
|
|
619
|
-
case 1:
|
|
620
|
-
_a.sent();
|
|
621
|
-
if (!nextCalled) {
|
|
622
|
-
throw new _core_context__WEBPACK_IMPORTED_MODULE_3__.ContextCancelation({
|
|
623
|
-
retry: false,
|
|
624
|
-
type: 'middleware_cancellation',
|
|
625
|
-
reason: 'Middleware `next` function skipped',
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
return [2 /*return*/, ctx];
|
|
629
|
-
}
|
|
630
|
-
});
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
return {
|
|
634
|
-
name: "Source Middleware ".concat(fn.name),
|
|
635
|
-
type: 'before',
|
|
636
|
-
version: '0.1.0',
|
|
637
|
-
isLoaded: function () { return true; },
|
|
638
|
-
load: function (ctx) { return Promise.resolve(ctx); },
|
|
639
|
-
track: apply,
|
|
640
|
-
page: apply,
|
|
641
|
-
identify: apply,
|
|
642
|
-
alias: apply,
|
|
643
|
-
group: apply,
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
//# sourceMappingURL=index.js.map
|
|
647
|
-
|
|
648
|
-
/***/ }),
|
|
1
|
+
(self["webpackChunkinsights_chrome"] = self["webpackChunkinsights_chrome"] || []).push([["tsub-middleware"],{
|
|
649
2
|
|
|
650
3
|
/***/ "./node_modules/@segment/analytics-next/dist/pkg/plugins/routing-middleware/index.js":
|
|
651
4
|
/*!*******************************************************************************************!*\
|
|
@@ -733,7 +86,7 @@ function matches(event, matcher) {
|
|
|
733
86
|
throw new Error("Matcher of type ".concat(matcher.type, " unsupported."));
|
|
734
87
|
}
|
|
735
88
|
}
|
|
736
|
-
exports
|
|
89
|
+
exports["default"] = matches;
|
|
737
90
|
function all() {
|
|
738
91
|
return true;
|
|
739
92
|
}
|
|
@@ -795,6 +148,9 @@ function fqlEvaluate(ir, event) {
|
|
|
795
148
|
case '>=':
|
|
796
149
|
// Compare the two values with the given operator.
|
|
797
150
|
return compareNumbers(getValue(ir[1], event), getValue(ir[2], event), item, event);
|
|
151
|
+
// item in [list]' => Checks whether item is in list
|
|
152
|
+
case 'in':
|
|
153
|
+
return checkInList(getValue(ir[1], event), getValue(ir[2], event), event);
|
|
798
154
|
/*** Functions ***/
|
|
799
155
|
// 'contains(str1, str2)' => The first string has a substring of the second string
|
|
800
156
|
case 'contains':
|
|
@@ -833,6 +189,9 @@ function getValue(item, event) {
|
|
|
833
189
|
// Otherwise, it's an event path, e.g. "properties.email"
|
|
834
190
|
return (0, dlv_1.default)(event, item);
|
|
835
191
|
}
|
|
192
|
+
function checkInList(item, list, event) {
|
|
193
|
+
return list.find(function (it) { return getValue(it, event) === item; }) !== undefined;
|
|
194
|
+
}
|
|
836
195
|
function compareNumbers(first, second, operator, event) {
|
|
837
196
|
// Check if it's more IR (such as a length() function)
|
|
838
197
|
if (isIR(first)) {
|
|
@@ -1151,7 +510,7 @@ var Store = /** @class */ (function () {
|
|
|
1151
510
|
};
|
|
1152
511
|
return Store;
|
|
1153
512
|
}());
|
|
1154
|
-
exports
|
|
513
|
+
exports["default"] = Store;
|
|
1155
514
|
//# sourceMappingURL=store.js.map
|
|
1156
515
|
|
|
1157
516
|
/***/ }),
|
|
@@ -1203,7 +562,7 @@ function transform(payload, transformers) {
|
|
|
1203
562
|
}
|
|
1204
563
|
return transformedPayload;
|
|
1205
564
|
}
|
|
1206
|
-
exports
|
|
565
|
+
exports["default"] = transform;
|
|
1207
566
|
// dropProperties removes all specified props from the object.
|
|
1208
567
|
function dropProperties(payload, config) {
|
|
1209
568
|
for (var key in config.drop) {
|
|
@@ -3773,6 +3132,73 @@ var FLOAT64_EXPONENT_BIAS = 1023|0; // asm type annotation
|
|
|
3773
3132
|
module.exports = FLOAT64_EXPONENT_BIAS;
|
|
3774
3133
|
|
|
3775
3134
|
|
|
3135
|
+
/***/ }),
|
|
3136
|
+
|
|
3137
|
+
/***/ "./node_modules/@stdlib/constants-float64-high-word-abs-mask/lib/index.js":
|
|
3138
|
+
/*!********************************************************************************!*\
|
|
3139
|
+
!*** ./node_modules/@stdlib/constants-float64-high-word-abs-mask/lib/index.js ***!
|
|
3140
|
+
\********************************************************************************/
|
|
3141
|
+
/***/ ((module) => {
|
|
3142
|
+
|
|
3143
|
+
"use strict";
|
|
3144
|
+
/**
|
|
3145
|
+
* @license Apache-2.0
|
|
3146
|
+
*
|
|
3147
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
3148
|
+
*
|
|
3149
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3150
|
+
* you may not use this file except in compliance with the License.
|
|
3151
|
+
* You may obtain a copy of the License at
|
|
3152
|
+
*
|
|
3153
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3154
|
+
*
|
|
3155
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3156
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3157
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3158
|
+
* See the License for the specific language governing permissions and
|
|
3159
|
+
* limitations under the License.
|
|
3160
|
+
*/
|
|
3161
|
+
|
|
3162
|
+
|
|
3163
|
+
|
|
3164
|
+
/**
|
|
3165
|
+
* High word mask for excluding the sign bit of a double-precision floating-point number.
|
|
3166
|
+
*
|
|
3167
|
+
* @module @stdlib/constants-float64-high-word-abs-mask
|
|
3168
|
+
* @type {uinteger32}
|
|
3169
|
+
*
|
|
3170
|
+
* @example
|
|
3171
|
+
* var FLOAT64_HIGH_WORD_ABS_MASK = require( '@stdlib/constants-float64-high-word-abs-mask' );
|
|
3172
|
+
* // returns 2147483647
|
|
3173
|
+
*/
|
|
3174
|
+
|
|
3175
|
+
|
|
3176
|
+
// MAIN //
|
|
3177
|
+
|
|
3178
|
+
/**
|
|
3179
|
+
* High word mask for excluding the sign bit of a double-precision floating-point number.
|
|
3180
|
+
*
|
|
3181
|
+
* ## Notes
|
|
3182
|
+
*
|
|
3183
|
+
* The high word mask for excluding the sign bit of a double-precision floating-point number is an unsigned 32-bit integer with the value \\( 2147483647 \\), which corresponds to the bit sequence
|
|
3184
|
+
*
|
|
3185
|
+
* ```binarystring
|
|
3186
|
+
* 0 11111111111 11111111111111111111
|
|
3187
|
+
* ```
|
|
3188
|
+
*
|
|
3189
|
+
* @constant
|
|
3190
|
+
* @type {uinteger32}
|
|
3191
|
+
* @default 0x7fffffff
|
|
3192
|
+
* @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985}
|
|
3193
|
+
*/
|
|
3194
|
+
var FLOAT64_HIGH_WORD_ABS_MASK = 0x7fffffff>>>0; // eslint-disable-line id-length
|
|
3195
|
+
|
|
3196
|
+
|
|
3197
|
+
// EXPORTS //
|
|
3198
|
+
|
|
3199
|
+
module.exports = FLOAT64_HIGH_WORD_ABS_MASK;
|
|
3200
|
+
|
|
3201
|
+
|
|
3776
3202
|
/***/ }),
|
|
3777
3203
|
|
|
3778
3204
|
/***/ "./node_modules/@stdlib/constants-float64-high-word-exponent-mask/lib/index.js":
|
|
@@ -3840,6 +3266,73 @@ var FLOAT64_HIGH_WORD_EXPONENT_MASK = 0x7ff00000;
|
|
|
3840
3266
|
module.exports = FLOAT64_HIGH_WORD_EXPONENT_MASK;
|
|
3841
3267
|
|
|
3842
3268
|
|
|
3269
|
+
/***/ }),
|
|
3270
|
+
|
|
3271
|
+
/***/ "./node_modules/@stdlib/constants-float64-high-word-sign-mask/lib/index.js":
|
|
3272
|
+
/*!*********************************************************************************!*\
|
|
3273
|
+
!*** ./node_modules/@stdlib/constants-float64-high-word-sign-mask/lib/index.js ***!
|
|
3274
|
+
\*********************************************************************************/
|
|
3275
|
+
/***/ ((module) => {
|
|
3276
|
+
|
|
3277
|
+
"use strict";
|
|
3278
|
+
/**
|
|
3279
|
+
* @license Apache-2.0
|
|
3280
|
+
*
|
|
3281
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
3282
|
+
*
|
|
3283
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3284
|
+
* you may not use this file except in compliance with the License.
|
|
3285
|
+
* You may obtain a copy of the License at
|
|
3286
|
+
*
|
|
3287
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3288
|
+
*
|
|
3289
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3290
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3291
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3292
|
+
* See the License for the specific language governing permissions and
|
|
3293
|
+
* limitations under the License.
|
|
3294
|
+
*/
|
|
3295
|
+
|
|
3296
|
+
|
|
3297
|
+
|
|
3298
|
+
/**
|
|
3299
|
+
* High word mask for the sign bit of a double-precision floating-point number.
|
|
3300
|
+
*
|
|
3301
|
+
* @module @stdlib/constants-float64-high-word-sign-mask
|
|
3302
|
+
* @type {uinteger32}
|
|
3303
|
+
*
|
|
3304
|
+
* @example
|
|
3305
|
+
* var FLOAT64_HIGH_WORD_SIGN_MASK = require( '@stdlib/constants-float64-high-word-sign-mask' );
|
|
3306
|
+
* // returns 2147483648
|
|
3307
|
+
*/
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
// MAIN //
|
|
3311
|
+
|
|
3312
|
+
/**
|
|
3313
|
+
* High word mask for the sign bit of a double-precision floating-point number.
|
|
3314
|
+
*
|
|
3315
|
+
* ## Notes
|
|
3316
|
+
*
|
|
3317
|
+
* The high word mask for the sign bot of a double-precision floating-point number is an unsigned 32-bit integer with the value \\( 2147483648 \\), which corresponds to the bit sequence
|
|
3318
|
+
*
|
|
3319
|
+
* ```binarystring
|
|
3320
|
+
* 1 00000000000 00000000000000000000
|
|
3321
|
+
* ```
|
|
3322
|
+
*
|
|
3323
|
+
* @constant
|
|
3324
|
+
* @type {uinteger32}
|
|
3325
|
+
* @default 0x80000000
|
|
3326
|
+
* @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985}
|
|
3327
|
+
*/
|
|
3328
|
+
var FLOAT64_HIGH_WORD_SIGN_MASK = 0x80000000>>>0; // eslint-disable-line id-length
|
|
3329
|
+
|
|
3330
|
+
|
|
3331
|
+
// EXPORTS //
|
|
3332
|
+
|
|
3333
|
+
module.exports = FLOAT64_HIGH_WORD_SIGN_MASK;
|
|
3334
|
+
|
|
3335
|
+
|
|
3843
3336
|
/***/ }),
|
|
3844
3337
|
|
|
3845
3338
|
/***/ "./node_modules/@stdlib/constants-float64-max-base2-exponent-subnormal/lib/index.js":
|
|
@@ -4924,6 +4417,8 @@ module.exports = main;
|
|
|
4924
4417
|
|
|
4925
4418
|
// MODULES //
|
|
4926
4419
|
|
|
4420
|
+
var SIGN_MASK = __webpack_require__( /*! @stdlib/constants-float64-high-word-sign-mask */ "./node_modules/@stdlib/constants-float64-high-word-sign-mask/lib/index.js" );
|
|
4421
|
+
var ABS_MASK = __webpack_require__( /*! @stdlib/constants-float64-high-word-abs-mask */ "./node_modules/@stdlib/constants-float64-high-word-abs-mask/lib/index.js" );
|
|
4927
4422
|
var toWords = __webpack_require__( /*! @stdlib/number-float64-base-to-words */ "./node_modules/@stdlib/number-float64-base-to-words/lib/index.js" );
|
|
4928
4423
|
var getHighWord = __webpack_require__( /*! @stdlib/number-float64-base-get-high-word */ "./node_modules/@stdlib/number-float64-base-get-high-word/lib/index.js" );
|
|
4929
4424
|
var fromWords = __webpack_require__( /*! @stdlib/number-float64-base-from-words */ "./node_modules/@stdlib/number-float64-base-from-words/lib/index.js" );
|
|
@@ -4931,12 +4426,6 @@ var fromWords = __webpack_require__( /*! @stdlib/number-float64-base-from-words
|
|
|
4931
4426
|
|
|
4932
4427
|
// VARIABLES //
|
|
4933
4428
|
|
|
4934
|
-
// 10000000000000000000000000000000 => 2147483648 => 0x80000000
|
|
4935
|
-
var SIGN_MASK = 0x80000000>>>0; // asm type annotation
|
|
4936
|
-
|
|
4937
|
-
// 01111111111111111111111111111111 => 2147483647 => 0x7fffffff
|
|
4938
|
-
var MAGNITUDE_MASK = 0x7fffffff|0; // asm type annotation
|
|
4939
|
-
|
|
4940
4429
|
// High/low words workspace:
|
|
4941
4430
|
var WORDS = [ 0, 0 ];
|
|
4942
4431
|
|
|
@@ -4975,11 +4464,11 @@ function copysign( x, y ) {
|
|
|
4975
4464
|
var hy;
|
|
4976
4465
|
|
|
4977
4466
|
// Split `x` into higher and lower order words:
|
|
4978
|
-
toWords( WORDS,
|
|
4467
|
+
toWords.assign( x, WORDS, 1, 0 );
|
|
4979
4468
|
hx = WORDS[ 0 ];
|
|
4980
4469
|
|
|
4981
4470
|
// Turn off the sign bit of `x`:
|
|
4982
|
-
hx &=
|
|
4471
|
+
hx &= ABS_MASK;
|
|
4983
4472
|
|
|
4984
4473
|
// Extract the higher order word from `y`:
|
|
4985
4474
|
hy = getHighWord( y );
|
|
@@ -5916,10 +5405,10 @@ module.exports = getHighWord;
|
|
|
5916
5405
|
|
|
5917
5406
|
/***/ }),
|
|
5918
5407
|
|
|
5919
|
-
/***/ "./node_modules/@stdlib/number-float64-base-normalize/lib/
|
|
5920
|
-
|
|
5921
|
-
!*** ./node_modules/@stdlib/number-float64-base-normalize/lib/
|
|
5922
|
-
|
|
5408
|
+
/***/ "./node_modules/@stdlib/number-float64-base-normalize/lib/assign.js":
|
|
5409
|
+
/*!**************************************************************************!*\
|
|
5410
|
+
!*** ./node_modules/@stdlib/number-float64-base-normalize/lib/assign.js ***!
|
|
5411
|
+
\**************************************************************************/
|
|
5923
5412
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5924
5413
|
|
|
5925
5414
|
"use strict";
|
|
@@ -5943,8 +5432,116 @@ module.exports = getHighWord;
|
|
|
5943
5432
|
|
|
5944
5433
|
|
|
5945
5434
|
|
|
5946
|
-
|
|
5947
|
-
|
|
5435
|
+
// MODULES //
|
|
5436
|
+
|
|
5437
|
+
var FLOAT64_SMALLEST_NORMAL = __webpack_require__( /*! @stdlib/constants-float64-smallest-normal */ "./node_modules/@stdlib/constants-float64-smallest-normal/lib/index.js" );
|
|
5438
|
+
var isInfinite = __webpack_require__( /*! @stdlib/math-base-assert-is-infinite */ "./node_modules/@stdlib/math-base-assert-is-infinite/lib/index.js" );
|
|
5439
|
+
var isnan = __webpack_require__( /*! @stdlib/math-base-assert-is-nan */ "./node_modules/@stdlib/math-base-assert-is-nan/lib/index.js" );
|
|
5440
|
+
var abs = __webpack_require__( /*! @stdlib/math-base-special-abs */ "./node_modules/@stdlib/math-base-special-abs/lib/index.js" );
|
|
5441
|
+
|
|
5442
|
+
|
|
5443
|
+
// VARIABLES //
|
|
5444
|
+
|
|
5445
|
+
// (1<<52)
|
|
5446
|
+
var SCALAR = 4503599627370496;
|
|
5447
|
+
|
|
5448
|
+
|
|
5449
|
+
// MAIN //
|
|
5450
|
+
|
|
5451
|
+
/**
|
|
5452
|
+
* Returns a normal number `y` and exponent `exp` satisfying \\(x = y \cdot 2^\mathrm{exp}\\) and assigns results to a provided output array.
|
|
5453
|
+
*
|
|
5454
|
+
* @param {number} x - input value
|
|
5455
|
+
* @param {Collection} out - output array
|
|
5456
|
+
* @param {integer} stride - output array stride
|
|
5457
|
+
* @param {NonNegativeInteger} offset - output array index offset
|
|
5458
|
+
* @returns {Collection} output array
|
|
5459
|
+
*
|
|
5460
|
+
* @example
|
|
5461
|
+
* var pow = require( '@stdlib/math-base-special-pow' );
|
|
5462
|
+
*
|
|
5463
|
+
* var out = normalize( 3.14e-319, [ 0.0, 0 ], 1, 0 );
|
|
5464
|
+
* // returns [ 1.4141234400356668e-303, -52 ]
|
|
5465
|
+
*
|
|
5466
|
+
* var y = out[ 0 ];
|
|
5467
|
+
* var exp = out[ 1 ];
|
|
5468
|
+
*
|
|
5469
|
+
* var bool = ( y*pow(2.0,exp) === 3.14e-319 );
|
|
5470
|
+
* // returns true
|
|
5471
|
+
*
|
|
5472
|
+
* @example
|
|
5473
|
+
* var out = normalize( 0.0, [ 0.0, 0 ], 1, 0 );
|
|
5474
|
+
* // returns [ 0.0, 0 ];
|
|
5475
|
+
*
|
|
5476
|
+
* @example
|
|
5477
|
+
* var PINF = require( '@stdlib/constants-float64-pinf' );
|
|
5478
|
+
*
|
|
5479
|
+
* var out = normalize( PINF, [ 0.0, 0 ], 1, 0 );
|
|
5480
|
+
* // returns [ Infinity, 0 ]
|
|
5481
|
+
*
|
|
5482
|
+
* @example
|
|
5483
|
+
* var NINF = require( '@stdlib/constants-float64-ninf' );
|
|
5484
|
+
*
|
|
5485
|
+
* var out = normalize( NINF, [ 0.0, 0 ], 1, 0 );
|
|
5486
|
+
* // returns [ -Infinity, 0 ]
|
|
5487
|
+
*
|
|
5488
|
+
* @example
|
|
5489
|
+
* var out = normalize( NaN, [ 0.0, 0 ], 1, 0 );
|
|
5490
|
+
* // returns [ NaN, 0 ]
|
|
5491
|
+
*/
|
|
5492
|
+
function normalize( x, out, stride, offset ) {
|
|
5493
|
+
if ( isnan( x ) || isInfinite( x ) ) {
|
|
5494
|
+
out[ offset ] = x;
|
|
5495
|
+
out[ offset + stride ] = 0;
|
|
5496
|
+
return out;
|
|
5497
|
+
}
|
|
5498
|
+
if ( x !== 0.0 && abs( x ) < FLOAT64_SMALLEST_NORMAL ) {
|
|
5499
|
+
out[ offset ] = x * SCALAR;
|
|
5500
|
+
out[ offset + stride ] = -52;
|
|
5501
|
+
return out;
|
|
5502
|
+
}
|
|
5503
|
+
out[ offset ] = x;
|
|
5504
|
+
out[ offset + stride ] = 0;
|
|
5505
|
+
return out;
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
|
|
5509
|
+
// EXPORTS //
|
|
5510
|
+
|
|
5511
|
+
module.exports = normalize;
|
|
5512
|
+
|
|
5513
|
+
|
|
5514
|
+
/***/ }),
|
|
5515
|
+
|
|
5516
|
+
/***/ "./node_modules/@stdlib/number-float64-base-normalize/lib/index.js":
|
|
5517
|
+
/*!*************************************************************************!*\
|
|
5518
|
+
!*** ./node_modules/@stdlib/number-float64-base-normalize/lib/index.js ***!
|
|
5519
|
+
\*************************************************************************/
|
|
5520
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5521
|
+
|
|
5522
|
+
"use strict";
|
|
5523
|
+
/**
|
|
5524
|
+
* @license Apache-2.0
|
|
5525
|
+
*
|
|
5526
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
5527
|
+
*
|
|
5528
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5529
|
+
* you may not use this file except in compliance with the License.
|
|
5530
|
+
* You may obtain a copy of the License at
|
|
5531
|
+
*
|
|
5532
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5533
|
+
*
|
|
5534
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5535
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5536
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5537
|
+
* See the License for the specific language governing permissions and
|
|
5538
|
+
* limitations under the License.
|
|
5539
|
+
*/
|
|
5540
|
+
|
|
5541
|
+
|
|
5542
|
+
|
|
5543
|
+
/**
|
|
5544
|
+
* Return a normal number `y` and exponent `exp` satisfying \\(x = y \cdot 2^\mathrm{exp}\\).
|
|
5948
5545
|
*
|
|
5949
5546
|
* @module @stdlib/number-float64-base-normalize
|
|
5950
5547
|
*
|
|
@@ -5958,7 +5555,7 @@ module.exports = getHighWord;
|
|
|
5958
5555
|
* var y = out[ 0 ];
|
|
5959
5556
|
* var exp = out[ 1 ];
|
|
5960
5557
|
*
|
|
5961
|
-
* var bool = ( y*pow(2.0,exp) === 3.14e-319 );
|
|
5558
|
+
* var bool = ( y*pow(2.0, exp) === 3.14e-319 );
|
|
5962
5559
|
* // returns true
|
|
5963
5560
|
*
|
|
5964
5561
|
* @example
|
|
@@ -5967,7 +5564,7 @@ module.exports = getHighWord;
|
|
|
5967
5564
|
*
|
|
5968
5565
|
* var out = new Float64Array( 2 );
|
|
5969
5566
|
*
|
|
5970
|
-
* var v = normalize(
|
|
5567
|
+
* var v = normalize.assign( 3.14e-319, out, 1, 0 );
|
|
5971
5568
|
* // returns <Float64Array>[ 1.4141234400356668e-303, -52 ]
|
|
5972
5569
|
*
|
|
5973
5570
|
* var bool = ( v === out );
|
|
@@ -5976,12 +5573,19 @@ module.exports = getHighWord;
|
|
|
5976
5573
|
|
|
5977
5574
|
// MODULES //
|
|
5978
5575
|
|
|
5979
|
-
var
|
|
5576
|
+
var setReadOnly = __webpack_require__( /*! @stdlib/utils-define-nonenumerable-read-only-property */ "./node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/index.js" );
|
|
5577
|
+
var main = __webpack_require__( /*! ./main.js */ "./node_modules/@stdlib/number-float64-base-normalize/lib/main.js" );
|
|
5578
|
+
var assign = __webpack_require__( /*! ./assign.js */ "./node_modules/@stdlib/number-float64-base-normalize/lib/assign.js" );
|
|
5579
|
+
|
|
5580
|
+
|
|
5581
|
+
// MAIN //
|
|
5582
|
+
|
|
5583
|
+
setReadOnly( main, 'assign', assign );
|
|
5980
5584
|
|
|
5981
5585
|
|
|
5982
5586
|
// EXPORTS //
|
|
5983
5587
|
|
|
5984
|
-
module.exports =
|
|
5588
|
+
module.exports = main;
|
|
5985
5589
|
|
|
5986
5590
|
|
|
5987
5591
|
/***/ }),
|
|
@@ -6015,7 +5619,7 @@ module.exports = normalize;
|
|
|
6015
5619
|
|
|
6016
5620
|
// MODULES //
|
|
6017
5621
|
|
|
6018
|
-
var fcn = __webpack_require__( /*! ./
|
|
5622
|
+
var fcn = __webpack_require__( /*! ./assign.js */ "./node_modules/@stdlib/number-float64-base-normalize/lib/assign.js" );
|
|
6019
5623
|
|
|
6020
5624
|
|
|
6021
5625
|
// MAIN //
|
|
@@ -6023,14 +5627,13 @@ var fcn = __webpack_require__( /*! ./normalize.js */ "./node_modules/@stdlib/num
|
|
|
6023
5627
|
/**
|
|
6024
5628
|
* Returns a normal number `y` and exponent `exp` satisfying \\(x = y \cdot 2^\mathrm{exp}\\).
|
|
6025
5629
|
*
|
|
6026
|
-
* @param {(Array|TypedArray|Object)} [out] - output array
|
|
6027
5630
|
* @param {number} x - input value
|
|
6028
|
-
* @returns {
|
|
5631
|
+
* @returns {NumberArray} output array
|
|
6029
5632
|
*
|
|
6030
5633
|
* @example
|
|
6031
5634
|
* var pow = require( '@stdlib/math-base-special-pow' );
|
|
6032
5635
|
*
|
|
6033
|
-
* var out = normalize(
|
|
5636
|
+
* var out = normalize( 3.14e-319 );
|
|
6034
5637
|
* // returns [ 1.4141234400356668e-303, -52 ]
|
|
6035
5638
|
*
|
|
6036
5639
|
* var y = out[ 0 ];
|
|
@@ -6040,38 +5643,27 @@ var fcn = __webpack_require__( /*! ./normalize.js */ "./node_modules/@stdlib/num
|
|
|
6040
5643
|
* // returns true
|
|
6041
5644
|
*
|
|
6042
5645
|
* @example
|
|
6043
|
-
* var
|
|
6044
|
-
* var pow = require( '@stdlib/math-base-special-pow' );
|
|
6045
|
-
*
|
|
6046
|
-
* var out = new Float64Array( 2 );
|
|
6047
|
-
*
|
|
6048
|
-
* var v = normalize( out, 3.14e-319 );
|
|
6049
|
-
* // returns <Float64Array>[ 1.4141234400356668e-303, -52 ]
|
|
6050
|
-
*
|
|
6051
|
-
* var bool = ( v === out );
|
|
6052
|
-
* // returns true
|
|
6053
|
-
*
|
|
6054
|
-
* @example
|
|
6055
|
-
* var out = normalize( [ 0.0, 0 ], 0.0 );
|
|
5646
|
+
* var out = normalize( 0.0 );
|
|
6056
5647
|
* // returns [ 0.0, 0 ]
|
|
6057
5648
|
*
|
|
6058
5649
|
* @example
|
|
6059
|
-
* var
|
|
5650
|
+
* var PINF = require( '@stdlib/constants-float64-pinf' );
|
|
5651
|
+
*
|
|
5652
|
+
* var out = normalize( PINF );
|
|
6060
5653
|
* // returns [ Infinity, 0 ]
|
|
6061
5654
|
*
|
|
6062
5655
|
* @example
|
|
6063
|
-
* var
|
|
5656
|
+
* var NINF = require( '@stdlib/constants-float64-ninf' );
|
|
5657
|
+
*
|
|
5658
|
+
* var out = normalize( NINF );
|
|
6064
5659
|
* // returns [ -Infinity, 0 ]
|
|
6065
5660
|
*
|
|
6066
5661
|
* @example
|
|
6067
|
-
* var out = normalize(
|
|
5662
|
+
* var out = normalize( NaN );
|
|
6068
5663
|
* // returns [ NaN, 0 ]
|
|
6069
5664
|
*/
|
|
6070
|
-
function normalize(
|
|
6071
|
-
|
|
6072
|
-
return fcn( [ 0.0, 0 ], out );
|
|
6073
|
-
}
|
|
6074
|
-
return fcn( out, x );
|
|
5665
|
+
function normalize( x ) {
|
|
5666
|
+
return fcn( x, [ 0.0, 0 ], 1, 0 );
|
|
6075
5667
|
}
|
|
6076
5668
|
|
|
6077
5669
|
|
|
@@ -6082,10 +5674,10 @@ module.exports = normalize;
|
|
|
6082
5674
|
|
|
6083
5675
|
/***/ }),
|
|
6084
5676
|
|
|
6085
|
-
/***/ "./node_modules/@stdlib/number-float64-base-
|
|
6086
|
-
|
|
6087
|
-
!*** ./node_modules/@stdlib/number-float64-base-
|
|
6088
|
-
|
|
5677
|
+
/***/ "./node_modules/@stdlib/number-float64-base-to-words/lib/assign.js":
|
|
5678
|
+
/*!*************************************************************************!*\
|
|
5679
|
+
!*** ./node_modules/@stdlib/number-float64-base-to-words/lib/assign.js ***!
|
|
5680
|
+
\*************************************************************************/
|
|
6089
5681
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6090
5682
|
|
|
6091
5683
|
"use strict";
|
|
@@ -6111,76 +5703,93 @@ module.exports = normalize;
|
|
|
6111
5703
|
|
|
6112
5704
|
// MODULES //
|
|
6113
5705
|
|
|
6114
|
-
var
|
|
6115
|
-
var
|
|
6116
|
-
var
|
|
6117
|
-
var abs = __webpack_require__( /*! @stdlib/math-base-special-abs */ "./node_modules/@stdlib/math-base-special-abs/lib/index.js" );
|
|
5706
|
+
var Uint32Array = __webpack_require__( /*! @stdlib/array-uint32 */ "./node_modules/@stdlib/array-uint32/lib/index.js" );
|
|
5707
|
+
var Float64Array = __webpack_require__( /*! @stdlib/array-float64 */ "./node_modules/@stdlib/array-float64/lib/index.js" );
|
|
5708
|
+
var indices = __webpack_require__( /*! ./indices.js */ "./node_modules/@stdlib/number-float64-base-to-words/lib/indices.js" );
|
|
6118
5709
|
|
|
6119
5710
|
|
|
6120
5711
|
// VARIABLES //
|
|
6121
5712
|
|
|
6122
|
-
|
|
6123
|
-
var
|
|
5713
|
+
var FLOAT64_VIEW = new Float64Array( 1 );
|
|
5714
|
+
var UINT32_VIEW = new Uint32Array( FLOAT64_VIEW.buffer );
|
|
5715
|
+
|
|
5716
|
+
var HIGH = indices.HIGH;
|
|
5717
|
+
var LOW = indices.LOW;
|
|
6124
5718
|
|
|
6125
5719
|
|
|
6126
5720
|
// MAIN //
|
|
6127
5721
|
|
|
6128
5722
|
/**
|
|
6129
|
-
*
|
|
5723
|
+
* Splits a double-precision floating-point number into a higher order word (unsigned 32-bit integer) and a lower order word (unsigned 32-bit integer).
|
|
6130
5724
|
*
|
|
6131
|
-
*
|
|
6132
|
-
* @param {(Array|TypedArray|Object)} out - output array
|
|
6133
|
-
* @param {number} x - input value
|
|
6134
|
-
* @returns {(Array|TypedArray|Object)} output array
|
|
5725
|
+
* ## Notes
|
|
6135
5726
|
*
|
|
6136
|
-
*
|
|
6137
|
-
*
|
|
5727
|
+
* ```text
|
|
5728
|
+
* float64 (64 bits)
|
|
5729
|
+
* f := fraction (significand/mantissa) (52 bits)
|
|
5730
|
+
* e := exponent (11 bits)
|
|
5731
|
+
* s := sign bit (1 bit)
|
|
6138
5732
|
*
|
|
6139
|
-
*
|
|
6140
|
-
*
|
|
5733
|
+
* |-------- -------- -------- -------- -------- -------- -------- --------|
|
|
5734
|
+
* | Float64 |
|
|
5735
|
+
* |-------- -------- -------- -------- -------- -------- -------- --------|
|
|
5736
|
+
* | Uint32 | Uint32 |
|
|
5737
|
+
* |-------- -------- -------- -------- -------- -------- -------- --------|
|
|
5738
|
+
* ```
|
|
6141
5739
|
*
|
|
6142
|
-
*
|
|
6143
|
-
* var exp = out[ 1 ];
|
|
5740
|
+
* If little endian (more significant bits last):
|
|
6144
5741
|
*
|
|
6145
|
-
*
|
|
6146
|
-
*
|
|
5742
|
+
* ```text
|
|
5743
|
+
* <-- lower higher -->
|
|
5744
|
+
* | f7 f6 f5 f4 f3 f2 e2 | f1 |s| e1 |
|
|
5745
|
+
* ```
|
|
6147
5746
|
*
|
|
6148
|
-
*
|
|
6149
|
-
* var out = normalize( [ 0.0, 0 ], 0.0 );
|
|
6150
|
-
* // returns [ 0.0, 0 ];
|
|
5747
|
+
* If big endian (more significant bits first):
|
|
6151
5748
|
*
|
|
6152
|
-
*
|
|
6153
|
-
*
|
|
6154
|
-
*
|
|
5749
|
+
* ```text
|
|
5750
|
+
* <-- higher lower -->
|
|
5751
|
+
* |s| e1 e2 | f1 f2 f3 f4 f5 f6 f7 |
|
|
5752
|
+
* ```
|
|
6155
5753
|
*
|
|
6156
|
-
*
|
|
6157
|
-
*
|
|
6158
|
-
*
|
|
5754
|
+
* In which Uint32 can we find the higher order bits? If little endian, the second; if big endian, the first.
|
|
5755
|
+
*
|
|
5756
|
+
*
|
|
5757
|
+
* ## References
|
|
5758
|
+
*
|
|
5759
|
+
* - [Open Group][1]
|
|
5760
|
+
*
|
|
5761
|
+
* [1]: http://pubs.opengroup.org/onlinepubs/9629399/chap14.htm
|
|
5762
|
+
*
|
|
5763
|
+
*
|
|
5764
|
+
* @private
|
|
5765
|
+
* @param {number} x - input value
|
|
5766
|
+
* @param {Collection} out - output array
|
|
5767
|
+
* @param {integer} stride - output array stride
|
|
5768
|
+
* @param {NonNegativeInteger} offset - output array index offset
|
|
5769
|
+
* @returns {Collection} output array
|
|
6159
5770
|
*
|
|
6160
5771
|
* @example
|
|
6161
|
-
* var
|
|
6162
|
-
*
|
|
5772
|
+
* var Uint32Array = require( '@stdlib/array-uint32' );
|
|
5773
|
+
*
|
|
5774
|
+
* var out = new Uint32Array( 2 );
|
|
5775
|
+
*
|
|
5776
|
+
* var w = toWords( 3.14e201, out, 1, 0 );
|
|
5777
|
+
* // returns <Uint32Array>[ 1774486211, 2479577218 ]
|
|
5778
|
+
*
|
|
5779
|
+
* var bool = ( w === out );
|
|
5780
|
+
* // returns true
|
|
6163
5781
|
*/
|
|
6164
|
-
function
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
return out;
|
|
6169
|
-
}
|
|
6170
|
-
if ( x !== 0.0 && abs( x ) < FLOAT64_SMALLEST_NORMAL ) {
|
|
6171
|
-
out[ 0 ] = x * SCALAR;
|
|
6172
|
-
out[ 1 ] = -52;
|
|
6173
|
-
return out;
|
|
6174
|
-
}
|
|
6175
|
-
out[ 0 ] = x;
|
|
6176
|
-
out[ 1 ] = 0;
|
|
5782
|
+
function toWords( x, out, stride, offset ) {
|
|
5783
|
+
FLOAT64_VIEW[ 0 ] = x;
|
|
5784
|
+
out[ offset ] = UINT32_VIEW[ HIGH ];
|
|
5785
|
+
out[ offset + stride ] = UINT32_VIEW[ LOW ];
|
|
6177
5786
|
return out;
|
|
6178
5787
|
}
|
|
6179
5788
|
|
|
6180
5789
|
|
|
6181
5790
|
// EXPORTS //
|
|
6182
5791
|
|
|
6183
|
-
module.exports =
|
|
5792
|
+
module.exports = toWords;
|
|
6184
5793
|
|
|
6185
5794
|
|
|
6186
5795
|
/***/ }),
|
|
@@ -6229,7 +5838,7 @@ module.exports = normalize;
|
|
|
6229
5838
|
*
|
|
6230
5839
|
* var out = new Uint32Array( 2 );
|
|
6231
5840
|
*
|
|
6232
|
-
* var w = toWords(
|
|
5841
|
+
* var w = toWords.assign( 3.14e201, out, 1, 0 );
|
|
6233
5842
|
* // returns <Uint32Array>[ 1774486211, 2479577218 ]
|
|
6234
5843
|
*
|
|
6235
5844
|
* var bool = ( w === out );
|
|
@@ -6238,12 +5847,19 @@ module.exports = normalize;
|
|
|
6238
5847
|
|
|
6239
5848
|
// MODULES //
|
|
6240
5849
|
|
|
6241
|
-
var
|
|
5850
|
+
var setReadOnly = __webpack_require__( /*! @stdlib/utils-define-nonenumerable-read-only-property */ "./node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/index.js" );
|
|
5851
|
+
var main = __webpack_require__( /*! ./main.js */ "./node_modules/@stdlib/number-float64-base-to-words/lib/main.js" );
|
|
5852
|
+
var assign = __webpack_require__( /*! ./assign.js */ "./node_modules/@stdlib/number-float64-base-to-words/lib/assign.js" );
|
|
5853
|
+
|
|
5854
|
+
|
|
5855
|
+
// MAIN //
|
|
5856
|
+
|
|
5857
|
+
setReadOnly( main, 'assign', assign );
|
|
6242
5858
|
|
|
6243
5859
|
|
|
6244
5860
|
// EXPORTS //
|
|
6245
5861
|
|
|
6246
|
-
module.exports =
|
|
5862
|
+
module.exports = main;
|
|
6247
5863
|
|
|
6248
5864
|
|
|
6249
5865
|
/***/ }),
|
|
@@ -6335,7 +5951,7 @@ module.exports = indices;
|
|
|
6335
5951
|
|
|
6336
5952
|
// MODULES //
|
|
6337
5953
|
|
|
6338
|
-
var fcn = __webpack_require__( /*! ./
|
|
5954
|
+
var fcn = __webpack_require__( /*! ./assign.js */ "./node_modules/@stdlib/number-float64-base-to-words/lib/assign.js" );
|
|
6339
5955
|
|
|
6340
5956
|
|
|
6341
5957
|
// MAIN //
|
|
@@ -6343,30 +5959,15 @@ var fcn = __webpack_require__( /*! ./to_words.js */ "./node_modules/@stdlib/numb
|
|
|
6343
5959
|
/**
|
|
6344
5960
|
* Splits a double-precision floating-point number into a higher order word (unsigned 32-bit integer) and a lower order word (unsigned 32-bit integer).
|
|
6345
5961
|
*
|
|
6346
|
-
* @param {(Array|TypedArray|Object)} [out] - output array
|
|
6347
5962
|
* @param {number} x - input value
|
|
6348
|
-
* @returns {
|
|
5963
|
+
* @returns {Array<number>} output array
|
|
6349
5964
|
*
|
|
6350
5965
|
* @example
|
|
6351
5966
|
* var w = toWords( 3.14e201 );
|
|
6352
5967
|
* // returns [ 1774486211, 2479577218 ]
|
|
6353
|
-
*
|
|
6354
|
-
* @example
|
|
6355
|
-
* var Uint32Array = require( '@stdlib/array-uint32' );
|
|
6356
|
-
*
|
|
6357
|
-
* var out = new Uint32Array( 2 );
|
|
6358
|
-
*
|
|
6359
|
-
* var w = toWords( out, 3.14e201 );
|
|
6360
|
-
* // returns <Uint32Array>[ 1774486211, 2479577218 ]
|
|
6361
|
-
*
|
|
6362
|
-
* var bool = ( w === out );
|
|
6363
|
-
* // returns true
|
|
6364
5968
|
*/
|
|
6365
|
-
function toWords(
|
|
6366
|
-
|
|
6367
|
-
return fcn( [ 0, 0 ], out );
|
|
6368
|
-
}
|
|
6369
|
-
return fcn( out, x );
|
|
5969
|
+
function toWords( x ) {
|
|
5970
|
+
return fcn( x, [ 0>>>0, 0>>>0 ], 1, 0 );
|
|
6370
5971
|
}
|
|
6371
5972
|
|
|
6372
5973
|
|
|
@@ -6377,10 +5978,10 @@ module.exports = toWords;
|
|
|
6377
5978
|
|
|
6378
5979
|
/***/ }),
|
|
6379
5980
|
|
|
6380
|
-
/***/ "./node_modules/@stdlib/
|
|
6381
|
-
|
|
6382
|
-
!*** ./node_modules/@stdlib/
|
|
6383
|
-
|
|
5981
|
+
/***/ "./node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/index.js":
|
|
5982
|
+
/*!*****************************************************************************************!*\
|
|
5983
|
+
!*** ./node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/index.js ***!
|
|
5984
|
+
\*****************************************************************************************/
|
|
6384
5985
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6385
5986
|
|
|
6386
5987
|
"use strict";
|
|
@@ -6404,93 +6005,472 @@ module.exports = toWords;
|
|
|
6404
6005
|
|
|
6405
6006
|
|
|
6406
6007
|
|
|
6008
|
+
/**
|
|
6009
|
+
* Define a non-enumerable read-only property.
|
|
6010
|
+
*
|
|
6011
|
+
* @module @stdlib/utils-define-nonenumerable-read-only-property
|
|
6012
|
+
*
|
|
6013
|
+
* @example
|
|
6014
|
+
* var setNonEnumerableReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );
|
|
6015
|
+
*
|
|
6016
|
+
* var obj = {};
|
|
6017
|
+
*
|
|
6018
|
+
* setNonEnumerableReadOnly( obj, 'foo', 'bar' );
|
|
6019
|
+
*
|
|
6020
|
+
* try {
|
|
6021
|
+
* obj.foo = 'boop';
|
|
6022
|
+
* } catch ( err ) {
|
|
6023
|
+
* console.error( err.message );
|
|
6024
|
+
* }
|
|
6025
|
+
*/
|
|
6026
|
+
|
|
6407
6027
|
// MODULES //
|
|
6408
6028
|
|
|
6409
|
-
var
|
|
6410
|
-
var Float64Array = __webpack_require__( /*! @stdlib/array-float64 */ "./node_modules/@stdlib/array-float64/lib/index.js" );
|
|
6411
|
-
var indices = __webpack_require__( /*! ./indices.js */ "./node_modules/@stdlib/number-float64-base-to-words/lib/indices.js" );
|
|
6029
|
+
var setNonEnumerableReadOnly = __webpack_require__( /*! ./main.js */ "./node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/main.js" );
|
|
6412
6030
|
|
|
6413
6031
|
|
|
6414
|
-
//
|
|
6032
|
+
// EXPORTS //
|
|
6415
6033
|
|
|
6416
|
-
|
|
6417
|
-
var UINT32_VIEW = new Uint32Array( FLOAT64_VIEW.buffer );
|
|
6034
|
+
module.exports = setNonEnumerableReadOnly;
|
|
6418
6035
|
|
|
6419
|
-
var HIGH = indices.HIGH;
|
|
6420
|
-
var LOW = indices.LOW;
|
|
6421
6036
|
|
|
6037
|
+
/***/ }),
|
|
6422
6038
|
|
|
6423
|
-
|
|
6039
|
+
/***/ "./node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/main.js":
|
|
6040
|
+
/*!****************************************************************************************!*\
|
|
6041
|
+
!*** ./node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/main.js ***!
|
|
6042
|
+
\****************************************************************************************/
|
|
6043
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6424
6044
|
|
|
6045
|
+
"use strict";
|
|
6425
6046
|
/**
|
|
6426
|
-
*
|
|
6427
|
-
*
|
|
6428
|
-
* ## Notes
|
|
6047
|
+
* @license Apache-2.0
|
|
6429
6048
|
*
|
|
6430
|
-
*
|
|
6431
|
-
* float64 (64 bits)
|
|
6432
|
-
* f := fraction (significand/mantissa) (52 bits)
|
|
6433
|
-
* e := exponent (11 bits)
|
|
6434
|
-
* s := sign bit (1 bit)
|
|
6049
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
6435
6050
|
*
|
|
6436
|
-
*
|
|
6437
|
-
*
|
|
6438
|
-
*
|
|
6439
|
-
* | Uint32 | Uint32 |
|
|
6440
|
-
* |-------- -------- -------- -------- -------- -------- -------- --------|
|
|
6441
|
-
* ```
|
|
6051
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6052
|
+
* you may not use this file except in compliance with the License.
|
|
6053
|
+
* You may obtain a copy of the License at
|
|
6442
6054
|
*
|
|
6443
|
-
*
|
|
6055
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6444
6056
|
*
|
|
6445
|
-
*
|
|
6446
|
-
*
|
|
6447
|
-
*
|
|
6448
|
-
*
|
|
6057
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6058
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6059
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6060
|
+
* See the License for the specific language governing permissions and
|
|
6061
|
+
* limitations under the License.
|
|
6062
|
+
*/
|
|
6063
|
+
|
|
6064
|
+
|
|
6065
|
+
|
|
6066
|
+
// MODULES //
|
|
6067
|
+
|
|
6068
|
+
var defineProperty = __webpack_require__( /*! @stdlib/utils-define-property */ "./node_modules/@stdlib/utils-define-property/lib/index.js" );
|
|
6069
|
+
|
|
6070
|
+
|
|
6071
|
+
// MAIN //
|
|
6072
|
+
|
|
6073
|
+
/**
|
|
6074
|
+
* Defines a non-enumerable read-only property.
|
|
6449
6075
|
*
|
|
6450
|
-
*
|
|
6076
|
+
* @param {Object} obj - object on which to define the property
|
|
6077
|
+
* @param {(string|symbol)} prop - property name
|
|
6078
|
+
* @param {*} value - value to set
|
|
6451
6079
|
*
|
|
6452
|
-
*
|
|
6453
|
-
*
|
|
6454
|
-
* |s| e1 e2 | f1 f2 f3 f4 f5 f6 f7 |
|
|
6455
|
-
* ```
|
|
6080
|
+
* @example
|
|
6081
|
+
* var obj = {};
|
|
6456
6082
|
*
|
|
6457
|
-
*
|
|
6083
|
+
* setNonEnumerableReadOnly( obj, 'foo', 'bar' );
|
|
6458
6084
|
*
|
|
6085
|
+
* try {
|
|
6086
|
+
* obj.foo = 'boop';
|
|
6087
|
+
* } catch ( err ) {
|
|
6088
|
+
* console.error( err.message );
|
|
6089
|
+
* }
|
|
6090
|
+
*/
|
|
6091
|
+
function setNonEnumerableReadOnly( obj, prop, value ) {
|
|
6092
|
+
defineProperty( obj, prop, {
|
|
6093
|
+
'configurable': false,
|
|
6094
|
+
'enumerable': false,
|
|
6095
|
+
'writable': false,
|
|
6096
|
+
'value': value
|
|
6097
|
+
});
|
|
6098
|
+
}
|
|
6099
|
+
|
|
6100
|
+
|
|
6101
|
+
// EXPORTS //
|
|
6102
|
+
|
|
6103
|
+
module.exports = setNonEnumerableReadOnly;
|
|
6104
|
+
|
|
6105
|
+
|
|
6106
|
+
/***/ }),
|
|
6107
|
+
|
|
6108
|
+
/***/ "./node_modules/@stdlib/utils-define-property/lib/builtin.js":
|
|
6109
|
+
/*!*******************************************************************!*\
|
|
6110
|
+
!*** ./node_modules/@stdlib/utils-define-property/lib/builtin.js ***!
|
|
6111
|
+
\*******************************************************************/
|
|
6112
|
+
/***/ ((module) => {
|
|
6113
|
+
|
|
6114
|
+
"use strict";
|
|
6115
|
+
/**
|
|
6116
|
+
* @license Apache-2.0
|
|
6459
6117
|
*
|
|
6460
|
-
*
|
|
6118
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
6461
6119
|
*
|
|
6462
|
-
*
|
|
6120
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6121
|
+
* you may not use this file except in compliance with the License.
|
|
6122
|
+
* You may obtain a copy of the License at
|
|
6463
6123
|
*
|
|
6464
|
-
*
|
|
6124
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6125
|
+
*
|
|
6126
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6127
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6128
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6129
|
+
* See the License for the specific language governing permissions and
|
|
6130
|
+
* limitations under the License.
|
|
6131
|
+
*/
|
|
6132
|
+
|
|
6133
|
+
|
|
6134
|
+
|
|
6135
|
+
// MAIN //
|
|
6136
|
+
|
|
6137
|
+
/**
|
|
6138
|
+
* Defines (or modifies) an object property.
|
|
6139
|
+
*
|
|
6140
|
+
* ## Notes
|
|
6141
|
+
*
|
|
6142
|
+
* - Property descriptors come in two flavors: **data descriptors** and **accessor descriptors**. A data descriptor is a property that has a value, which may or may not be writable. An accessor descriptor is a property described by a getter-setter function pair. A descriptor must be one of these two flavors and cannot be both.
|
|
6143
|
+
*
|
|
6144
|
+
* @name defineProperty
|
|
6145
|
+
* @type {Function}
|
|
6146
|
+
* @param {Object} obj - object on which to define the property
|
|
6147
|
+
* @param {(string|symbol)} prop - property name
|
|
6148
|
+
* @param {Object} descriptor - property descriptor
|
|
6149
|
+
* @param {boolean} [descriptor.configurable=false] - boolean indicating if property descriptor can be changed and if the property can be deleted from the provided object
|
|
6150
|
+
* @param {boolean} [descriptor.enumerable=false] - boolean indicating if the property shows up when enumerating object properties
|
|
6151
|
+
* @param {boolean} [descriptor.writable=false] - boolean indicating if the value associated with the property can be changed with an assignment operator
|
|
6152
|
+
* @param {*} [descriptor.value] - property value
|
|
6153
|
+
* @param {(Function|void)} [descriptor.get=undefined] - function which serves as a getter for the property, or, if no getter, undefined. When the property is accessed, a getter function is called without arguments and with the `this` context set to the object through which the property is accessed (which may not be the object on which the property is defined due to inheritance). The return value will be used as the property value.
|
|
6154
|
+
* @param {(Function|void)} [descriptor.set=undefined] - function which serves as a setter for the property, or, if no setter, undefined. When assigning a property value, a setter function is called with one argument (the value being assigned to the property) and with the `this` context set to the object through which the property is assigned.
|
|
6155
|
+
* @throws {TypeError} first argument must be an object
|
|
6156
|
+
* @throws {TypeError} third argument must be an object
|
|
6157
|
+
* @throws {Error} property descriptor cannot have both a value and a setter and/or getter
|
|
6158
|
+
* @returns {Object} object with added property
|
|
6159
|
+
*
|
|
6160
|
+
* @example
|
|
6161
|
+
* var obj = {};
|
|
6162
|
+
*
|
|
6163
|
+
* defineProperty( obj, 'foo', {
|
|
6164
|
+
* 'value': 'bar'
|
|
6165
|
+
* });
|
|
6166
|
+
*
|
|
6167
|
+
* var str = obj.foo;
|
|
6168
|
+
* // returns 'bar'
|
|
6169
|
+
*/
|
|
6170
|
+
var defineProperty = Object.defineProperty;
|
|
6171
|
+
|
|
6172
|
+
|
|
6173
|
+
// EXPORTS //
|
|
6174
|
+
|
|
6175
|
+
module.exports = defineProperty;
|
|
6176
|
+
|
|
6177
|
+
|
|
6178
|
+
/***/ }),
|
|
6179
|
+
|
|
6180
|
+
/***/ "./node_modules/@stdlib/utils-define-property/lib/define_property.js":
|
|
6181
|
+
/*!***************************************************************************!*\
|
|
6182
|
+
!*** ./node_modules/@stdlib/utils-define-property/lib/define_property.js ***!
|
|
6183
|
+
\***************************************************************************/
|
|
6184
|
+
/***/ ((module) => {
|
|
6185
|
+
|
|
6186
|
+
"use strict";
|
|
6187
|
+
/**
|
|
6188
|
+
* @license Apache-2.0
|
|
6189
|
+
*
|
|
6190
|
+
* Copyright (c) 2021 The Stdlib Authors.
|
|
6191
|
+
*
|
|
6192
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6193
|
+
* you may not use this file except in compliance with the License.
|
|
6194
|
+
* You may obtain a copy of the License at
|
|
6195
|
+
*
|
|
6196
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6197
|
+
*
|
|
6198
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6199
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6200
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6201
|
+
* See the License for the specific language governing permissions and
|
|
6202
|
+
* limitations under the License.
|
|
6203
|
+
*/
|
|
6204
|
+
|
|
6205
|
+
|
|
6206
|
+
|
|
6207
|
+
// MAIN //
|
|
6208
|
+
|
|
6209
|
+
var main = ( typeof Object.defineProperty === 'function' ) ? Object.defineProperty : null;
|
|
6210
|
+
|
|
6211
|
+
|
|
6212
|
+
// EXPORTS //
|
|
6213
|
+
|
|
6214
|
+
module.exports = main;
|
|
6215
|
+
|
|
6216
|
+
|
|
6217
|
+
/***/ }),
|
|
6218
|
+
|
|
6219
|
+
/***/ "./node_modules/@stdlib/utils-define-property/lib/has_define_property_support.js":
|
|
6220
|
+
/*!***************************************************************************************!*\
|
|
6221
|
+
!*** ./node_modules/@stdlib/utils-define-property/lib/has_define_property_support.js ***!
|
|
6222
|
+
\***************************************************************************************/
|
|
6223
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6224
|
+
|
|
6225
|
+
"use strict";
|
|
6226
|
+
/**
|
|
6227
|
+
* @license Apache-2.0
|
|
6228
|
+
*
|
|
6229
|
+
* Copyright (c) 2021 The Stdlib Authors.
|
|
6230
|
+
*
|
|
6231
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6232
|
+
* you may not use this file except in compliance with the License.
|
|
6233
|
+
* You may obtain a copy of the License at
|
|
6465
6234
|
*
|
|
6235
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6236
|
+
*
|
|
6237
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6238
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6239
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6240
|
+
* See the License for the specific language governing permissions and
|
|
6241
|
+
* limitations under the License.
|
|
6242
|
+
*/
|
|
6243
|
+
|
|
6244
|
+
|
|
6245
|
+
|
|
6246
|
+
// MODULES //
|
|
6247
|
+
|
|
6248
|
+
var defineProperty = __webpack_require__( /*! ./define_property.js */ "./node_modules/@stdlib/utils-define-property/lib/define_property.js" );
|
|
6249
|
+
|
|
6250
|
+
|
|
6251
|
+
// MAIN //
|
|
6252
|
+
|
|
6253
|
+
/**
|
|
6254
|
+
* Tests for `Object.defineProperty` support.
|
|
6466
6255
|
*
|
|
6467
6256
|
* @private
|
|
6468
|
-
* @
|
|
6469
|
-
* @param {number} x - input value
|
|
6470
|
-
* @returns {(Array|TypedArray|Object)} output array
|
|
6257
|
+
* @returns {boolean} boolean indicating if an environment has `Object.defineProperty` support
|
|
6471
6258
|
*
|
|
6472
6259
|
* @example
|
|
6473
|
-
* var
|
|
6260
|
+
* var bool = hasDefinePropertySupport();
|
|
6261
|
+
* // returns <boolean>
|
|
6262
|
+
*/
|
|
6263
|
+
function hasDefinePropertySupport() {
|
|
6264
|
+
// Test basic support...
|
|
6265
|
+
try {
|
|
6266
|
+
defineProperty( {}, 'x', {} );
|
|
6267
|
+
return true;
|
|
6268
|
+
} catch ( err ) { // eslint-disable-line no-unused-vars
|
|
6269
|
+
return false;
|
|
6270
|
+
}
|
|
6271
|
+
}
|
|
6272
|
+
|
|
6273
|
+
|
|
6274
|
+
// EXPORTS //
|
|
6275
|
+
|
|
6276
|
+
module.exports = hasDefinePropertySupport;
|
|
6277
|
+
|
|
6278
|
+
|
|
6279
|
+
/***/ }),
|
|
6280
|
+
|
|
6281
|
+
/***/ "./node_modules/@stdlib/utils-define-property/lib/index.js":
|
|
6282
|
+
/*!*****************************************************************!*\
|
|
6283
|
+
!*** ./node_modules/@stdlib/utils-define-property/lib/index.js ***!
|
|
6284
|
+
\*****************************************************************/
|
|
6285
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6286
|
+
|
|
6287
|
+
"use strict";
|
|
6288
|
+
/**
|
|
6289
|
+
* @license Apache-2.0
|
|
6474
6290
|
*
|
|
6475
|
-
*
|
|
6291
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
6476
6292
|
*
|
|
6477
|
-
*
|
|
6478
|
-
*
|
|
6293
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6294
|
+
* you may not use this file except in compliance with the License.
|
|
6295
|
+
* You may obtain a copy of the License at
|
|
6479
6296
|
*
|
|
6480
|
-
*
|
|
6481
|
-
*
|
|
6297
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6298
|
+
*
|
|
6299
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6300
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6301
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6302
|
+
* See the License for the specific language governing permissions and
|
|
6303
|
+
* limitations under the License.
|
|
6482
6304
|
*/
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6305
|
+
|
|
6306
|
+
|
|
6307
|
+
|
|
6308
|
+
/**
|
|
6309
|
+
* Define (or modify) an object property.
|
|
6310
|
+
*
|
|
6311
|
+
* @module @stdlib/utils-define-property
|
|
6312
|
+
*
|
|
6313
|
+
* @example
|
|
6314
|
+
* var defineProperty = require( '@stdlib/utils-define-property' );
|
|
6315
|
+
*
|
|
6316
|
+
* var obj = {};
|
|
6317
|
+
* defineProperty( obj, 'foo', {
|
|
6318
|
+
* 'value': 'bar',
|
|
6319
|
+
* 'writable': false,
|
|
6320
|
+
* 'configurable': false,
|
|
6321
|
+
* 'enumerable': false
|
|
6322
|
+
* });
|
|
6323
|
+
* obj.foo = 'boop'; // => throws
|
|
6324
|
+
*/
|
|
6325
|
+
|
|
6326
|
+
// MODULES //
|
|
6327
|
+
|
|
6328
|
+
var hasDefinePropertySupport = __webpack_require__( /*! ./has_define_property_support.js */ "./node_modules/@stdlib/utils-define-property/lib/has_define_property_support.js" );
|
|
6329
|
+
var builtin = __webpack_require__( /*! ./builtin.js */ "./node_modules/@stdlib/utils-define-property/lib/builtin.js" );
|
|
6330
|
+
var polyfill = __webpack_require__( /*! ./polyfill.js */ "./node_modules/@stdlib/utils-define-property/lib/polyfill.js" );
|
|
6331
|
+
|
|
6332
|
+
|
|
6333
|
+
// MAIN //
|
|
6334
|
+
|
|
6335
|
+
var defineProperty;
|
|
6336
|
+
if ( hasDefinePropertySupport() ) {
|
|
6337
|
+
defineProperty = builtin;
|
|
6338
|
+
} else {
|
|
6339
|
+
defineProperty = polyfill;
|
|
6488
6340
|
}
|
|
6489
6341
|
|
|
6490
6342
|
|
|
6491
6343
|
// EXPORTS //
|
|
6492
6344
|
|
|
6493
|
-
module.exports =
|
|
6345
|
+
module.exports = defineProperty;
|
|
6346
|
+
|
|
6347
|
+
|
|
6348
|
+
/***/ }),
|
|
6349
|
+
|
|
6350
|
+
/***/ "./node_modules/@stdlib/utils-define-property/lib/polyfill.js":
|
|
6351
|
+
/*!********************************************************************!*\
|
|
6352
|
+
!*** ./node_modules/@stdlib/utils-define-property/lib/polyfill.js ***!
|
|
6353
|
+
\********************************************************************/
|
|
6354
|
+
/***/ ((module) => {
|
|
6355
|
+
|
|
6356
|
+
"use strict";
|
|
6357
|
+
/**
|
|
6358
|
+
* @license Apache-2.0
|
|
6359
|
+
*
|
|
6360
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
6361
|
+
*
|
|
6362
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6363
|
+
* you may not use this file except in compliance with the License.
|
|
6364
|
+
* You may obtain a copy of the License at
|
|
6365
|
+
*
|
|
6366
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6367
|
+
*
|
|
6368
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6369
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6370
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6371
|
+
* See the License for the specific language governing permissions and
|
|
6372
|
+
* limitations under the License.
|
|
6373
|
+
*/
|
|
6374
|
+
|
|
6375
|
+
/* eslint-disable no-underscore-dangle, no-proto */
|
|
6376
|
+
|
|
6377
|
+
|
|
6378
|
+
|
|
6379
|
+
// VARIABLES //
|
|
6380
|
+
|
|
6381
|
+
var objectProtoype = Object.prototype;
|
|
6382
|
+
var toStr = objectProtoype.toString;
|
|
6383
|
+
var defineGetter = objectProtoype.__defineGetter__;
|
|
6384
|
+
var defineSetter = objectProtoype.__defineSetter__;
|
|
6385
|
+
var lookupGetter = objectProtoype.__lookupGetter__;
|
|
6386
|
+
var lookupSetter = objectProtoype.__lookupSetter__;
|
|
6387
|
+
|
|
6388
|
+
|
|
6389
|
+
// MAIN //
|
|
6390
|
+
|
|
6391
|
+
/**
|
|
6392
|
+
* Defines (or modifies) an object property.
|
|
6393
|
+
*
|
|
6394
|
+
* ## Notes
|
|
6395
|
+
*
|
|
6396
|
+
* - Property descriptors come in two flavors: **data descriptors** and **accessor descriptors**. A data descriptor is a property that has a value, which may or may not be writable. An accessor descriptor is a property described by a getter-setter function pair. A descriptor must be one of these two flavors and cannot be both.
|
|
6397
|
+
*
|
|
6398
|
+
* @param {Object} obj - object on which to define the property
|
|
6399
|
+
* @param {string} prop - property name
|
|
6400
|
+
* @param {Object} descriptor - property descriptor
|
|
6401
|
+
* @param {boolean} [descriptor.configurable=false] - boolean indicating if property descriptor can be changed and if the property can be deleted from the provided object
|
|
6402
|
+
* @param {boolean} [descriptor.enumerable=false] - boolean indicating if the property shows up when enumerating object properties
|
|
6403
|
+
* @param {boolean} [descriptor.writable=false] - boolean indicating if the value associated with the property can be changed with an assignment operator
|
|
6404
|
+
* @param {*} [descriptor.value] - property value
|
|
6405
|
+
* @param {(Function|void)} [descriptor.get=undefined] - function which serves as a getter for the property, or, if no getter, undefined. When the property is accessed, a getter function is called without arguments and with the `this` context set to the object through which the property is accessed (which may not be the object on which the property is defined due to inheritance). The return value will be used as the property value.
|
|
6406
|
+
* @param {(Function|void)} [descriptor.set=undefined] - function which serves as a setter for the property, or, if no setter, undefined. When assigning a property value, a setter function is called with one argument (the value being assigned to the property) and with the `this` context set to the object through which the property is assigned.
|
|
6407
|
+
* @throws {TypeError} first argument must be an object
|
|
6408
|
+
* @throws {TypeError} third argument must be an object
|
|
6409
|
+
* @throws {Error} property descriptor cannot have both a value and a setter and/or getter
|
|
6410
|
+
* @returns {Object} object with added property
|
|
6411
|
+
*
|
|
6412
|
+
* @example
|
|
6413
|
+
* var obj = {};
|
|
6414
|
+
*
|
|
6415
|
+
* defineProperty( obj, 'foo', {
|
|
6416
|
+
* 'value': 'bar'
|
|
6417
|
+
* });
|
|
6418
|
+
*
|
|
6419
|
+
* var str = obj.foo;
|
|
6420
|
+
* // returns 'bar'
|
|
6421
|
+
*/
|
|
6422
|
+
function defineProperty( obj, prop, descriptor ) {
|
|
6423
|
+
var prototype;
|
|
6424
|
+
var hasValue;
|
|
6425
|
+
var hasGet;
|
|
6426
|
+
var hasSet;
|
|
6427
|
+
|
|
6428
|
+
if ( typeof obj !== 'object' || obj === null || toStr.call( obj ) === '[object Array]' ) {
|
|
6429
|
+
throw new TypeError( 'invalid argument. First argument must be an object. Value: `' + obj + '`.' );
|
|
6430
|
+
}
|
|
6431
|
+
if ( typeof descriptor !== 'object' || descriptor === null || toStr.call( descriptor ) === '[object Array]' ) {
|
|
6432
|
+
throw new TypeError( 'invalid argument. Property descriptor must be an object. Value: `' + descriptor + '`.' );
|
|
6433
|
+
}
|
|
6434
|
+
hasValue = ( 'value' in descriptor );
|
|
6435
|
+
if ( hasValue ) {
|
|
6436
|
+
if (
|
|
6437
|
+
lookupGetter.call( obj, prop ) ||
|
|
6438
|
+
lookupSetter.call( obj, prop )
|
|
6439
|
+
) {
|
|
6440
|
+
// Override `__proto__` to avoid touching inherited accessors:
|
|
6441
|
+
prototype = obj.__proto__;
|
|
6442
|
+
obj.__proto__ = objectProtoype;
|
|
6443
|
+
|
|
6444
|
+
// Delete property as existing getters/setters prevent assigning value to specified property:
|
|
6445
|
+
delete obj[ prop ];
|
|
6446
|
+
obj[ prop ] = descriptor.value;
|
|
6447
|
+
|
|
6448
|
+
// Restore original prototype:
|
|
6449
|
+
obj.__proto__ = prototype;
|
|
6450
|
+
} else {
|
|
6451
|
+
obj[ prop ] = descriptor.value;
|
|
6452
|
+
}
|
|
6453
|
+
}
|
|
6454
|
+
hasGet = ( 'get' in descriptor );
|
|
6455
|
+
hasSet = ( 'set' in descriptor );
|
|
6456
|
+
|
|
6457
|
+
if ( hasValue && ( hasGet || hasSet ) ) {
|
|
6458
|
+
throw new Error( 'invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.' );
|
|
6459
|
+
}
|
|
6460
|
+
|
|
6461
|
+
if ( hasGet && defineGetter ) {
|
|
6462
|
+
defineGetter.call( obj, prop, descriptor.get );
|
|
6463
|
+
}
|
|
6464
|
+
if ( hasSet && defineSetter ) {
|
|
6465
|
+
defineSetter.call( obj, prop, descriptor.set );
|
|
6466
|
+
}
|
|
6467
|
+
return obj;
|
|
6468
|
+
}
|
|
6469
|
+
|
|
6470
|
+
|
|
6471
|
+
// EXPORTS //
|
|
6472
|
+
|
|
6473
|
+
module.exports = defineProperty;
|
|
6494
6474
|
|
|
6495
6475
|
|
|
6496
6476
|
/***/ }),
|