@redhat-cloud-services/frontend-components-config-utilities 2.0.0-beta.1 → 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 +1 -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/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,1148 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(self["webpackChunkinsights_chrome"] = self["webpackChunkinsights_chrome"] || []).push([["vendors-node_modules_history_esm_history_js"],{
|
|
3
|
-
|
|
4
|
-
/***/ "./node_modules/history/esm/history.js":
|
|
5
|
-
/*!*********************************************!*\
|
|
6
|
-
!*** ./node_modules/history/esm/history.js ***!
|
|
7
|
-
\*********************************************/
|
|
8
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9
|
-
|
|
10
|
-
__webpack_require__.r(__webpack_exports__);
|
|
11
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
/* harmony export */ "createBrowserHistory": () => (/* binding */ createBrowserHistory),
|
|
13
|
-
/* harmony export */ "createHashHistory": () => (/* binding */ createHashHistory),
|
|
14
|
-
/* harmony export */ "createMemoryHistory": () => (/* binding */ createMemoryHistory),
|
|
15
|
-
/* harmony export */ "createLocation": () => (/* binding */ createLocation),
|
|
16
|
-
/* harmony export */ "locationsAreEqual": () => (/* binding */ locationsAreEqual),
|
|
17
|
-
/* harmony export */ "parsePath": () => (/* binding */ parsePath),
|
|
18
|
-
/* harmony export */ "createPath": () => (/* binding */ createPath)
|
|
19
|
-
/* harmony export */ });
|
|
20
|
-
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
21
|
-
/* harmony import */ var resolve_pathname__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! resolve-pathname */ "./node_modules/resolve-pathname/esm/resolve-pathname.js");
|
|
22
|
-
/* harmony import */ var value_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! value-equal */ "./node_modules/value-equal/esm/value-equal.js");
|
|
23
|
-
/* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tiny-warning */ "./node_modules/tiny-warning/dist/tiny-warning.esm.js");
|
|
24
|
-
/* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tiny-invariant */ "./node_modules/tiny-invariant/dist/tiny-invariant.esm.js");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function addLeadingSlash(path) {
|
|
32
|
-
return path.charAt(0) === '/' ? path : '/' + path;
|
|
33
|
-
}
|
|
34
|
-
function stripLeadingSlash(path) {
|
|
35
|
-
return path.charAt(0) === '/' ? path.substr(1) : path;
|
|
36
|
-
}
|
|
37
|
-
function hasBasename(path, prefix) {
|
|
38
|
-
return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
|
|
39
|
-
}
|
|
40
|
-
function stripBasename(path, prefix) {
|
|
41
|
-
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
|
42
|
-
}
|
|
43
|
-
function stripTrailingSlash(path) {
|
|
44
|
-
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
|
|
45
|
-
}
|
|
46
|
-
function parsePath(path) {
|
|
47
|
-
var pathname = path || '/';
|
|
48
|
-
var search = '';
|
|
49
|
-
var hash = '';
|
|
50
|
-
var hashIndex = pathname.indexOf('#');
|
|
51
|
-
|
|
52
|
-
if (hashIndex !== -1) {
|
|
53
|
-
hash = pathname.substr(hashIndex);
|
|
54
|
-
pathname = pathname.substr(0, hashIndex);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
var searchIndex = pathname.indexOf('?');
|
|
58
|
-
|
|
59
|
-
if (searchIndex !== -1) {
|
|
60
|
-
search = pathname.substr(searchIndex);
|
|
61
|
-
pathname = pathname.substr(0, searchIndex);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
pathname: pathname,
|
|
66
|
-
search: search === '?' ? '' : search,
|
|
67
|
-
hash: hash === '#' ? '' : hash
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function createPath(location) {
|
|
71
|
-
var pathname = location.pathname,
|
|
72
|
-
search = location.search,
|
|
73
|
-
hash = location.hash;
|
|
74
|
-
var path = pathname || '/';
|
|
75
|
-
if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
|
|
76
|
-
if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
|
|
77
|
-
return path;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function createLocation(path, state, key, currentLocation) {
|
|
81
|
-
var location;
|
|
82
|
-
|
|
83
|
-
if (typeof path === 'string') {
|
|
84
|
-
// Two-arg form: push(path, state)
|
|
85
|
-
location = parsePath(path);
|
|
86
|
-
location.state = state;
|
|
87
|
-
} else {
|
|
88
|
-
// One-arg form: push(location)
|
|
89
|
-
location = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)({}, path);
|
|
90
|
-
if (location.pathname === undefined) location.pathname = '';
|
|
91
|
-
|
|
92
|
-
if (location.search) {
|
|
93
|
-
if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
|
|
94
|
-
} else {
|
|
95
|
-
location.search = '';
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (location.hash) {
|
|
99
|
-
if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
|
|
100
|
-
} else {
|
|
101
|
-
location.hash = '';
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (state !== undefined && location.state === undefined) location.state = state;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
try {
|
|
108
|
-
location.pathname = decodeURI(location.pathname);
|
|
109
|
-
} catch (e) {
|
|
110
|
-
if (e instanceof URIError) {
|
|
111
|
-
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
|
|
112
|
-
} else {
|
|
113
|
-
throw e;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (key) location.key = key;
|
|
118
|
-
|
|
119
|
-
if (currentLocation) {
|
|
120
|
-
// Resolve incomplete/relative pathname relative to current location.
|
|
121
|
-
if (!location.pathname) {
|
|
122
|
-
location.pathname = currentLocation.pathname;
|
|
123
|
-
} else if (location.pathname.charAt(0) !== '/') {
|
|
124
|
-
location.pathname = (0,resolve_pathname__WEBPACK_IMPORTED_MODULE_1__.default)(location.pathname, currentLocation.pathname);
|
|
125
|
-
}
|
|
126
|
-
} else {
|
|
127
|
-
// When there is no prior location and pathname is empty, set it to /
|
|
128
|
-
if (!location.pathname) {
|
|
129
|
-
location.pathname = '/';
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return location;
|
|
134
|
-
}
|
|
135
|
-
function locationsAreEqual(a, b) {
|
|
136
|
-
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && (0,value_equal__WEBPACK_IMPORTED_MODULE_2__.default)(a.state, b.state);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function createTransitionManager() {
|
|
140
|
-
var prompt = null;
|
|
141
|
-
|
|
142
|
-
function setPrompt(nextPrompt) {
|
|
143
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(prompt == null, 'A history supports only one prompt at a time') : 0;
|
|
144
|
-
prompt = nextPrompt;
|
|
145
|
-
return function () {
|
|
146
|
-
if (prompt === nextPrompt) prompt = null;
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function confirmTransitionTo(location, action, getUserConfirmation, callback) {
|
|
151
|
-
// TODO: If another transition starts while we're still confirming
|
|
152
|
-
// the previous one, we may end up in a weird state. Figure out the
|
|
153
|
-
// best way to handle this.
|
|
154
|
-
if (prompt != null) {
|
|
155
|
-
var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
|
|
156
|
-
|
|
157
|
-
if (typeof result === 'string') {
|
|
158
|
-
if (typeof getUserConfirmation === 'function') {
|
|
159
|
-
getUserConfirmation(result, callback);
|
|
160
|
-
} else {
|
|
161
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : 0;
|
|
162
|
-
callback(true);
|
|
163
|
-
}
|
|
164
|
-
} else {
|
|
165
|
-
// Return false from a transition hook to cancel the transition.
|
|
166
|
-
callback(result !== false);
|
|
167
|
-
}
|
|
168
|
-
} else {
|
|
169
|
-
callback(true);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
var listeners = [];
|
|
174
|
-
|
|
175
|
-
function appendListener(fn) {
|
|
176
|
-
var isActive = true;
|
|
177
|
-
|
|
178
|
-
function listener() {
|
|
179
|
-
if (isActive) fn.apply(void 0, arguments);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
listeners.push(listener);
|
|
183
|
-
return function () {
|
|
184
|
-
isActive = false;
|
|
185
|
-
listeners = listeners.filter(function (item) {
|
|
186
|
-
return item !== listener;
|
|
187
|
-
});
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
function notifyListeners() {
|
|
192
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
193
|
-
args[_key] = arguments[_key];
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
listeners.forEach(function (listener) {
|
|
197
|
-
return listener.apply(void 0, args);
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return {
|
|
202
|
-
setPrompt: setPrompt,
|
|
203
|
-
confirmTransitionTo: confirmTransitionTo,
|
|
204
|
-
appendListener: appendListener,
|
|
205
|
-
notifyListeners: notifyListeners
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
210
|
-
function getConfirmation(message, callback) {
|
|
211
|
-
callback(window.confirm(message)); // eslint-disable-line no-alert
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Returns true if the HTML5 history API is supported. Taken from Modernizr.
|
|
215
|
-
*
|
|
216
|
-
* https://github.com/Modernizr/Modernizr/blob/master/LICENSE
|
|
217
|
-
* https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
|
|
218
|
-
* changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
|
|
219
|
-
*/
|
|
220
|
-
|
|
221
|
-
function supportsHistory() {
|
|
222
|
-
var ua = window.navigator.userAgent;
|
|
223
|
-
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
|
|
224
|
-
return window.history && 'pushState' in window.history;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Returns true if browser fires popstate on hash change.
|
|
228
|
-
* IE10 and IE11 do not.
|
|
229
|
-
*/
|
|
230
|
-
|
|
231
|
-
function supportsPopStateOnHashChange() {
|
|
232
|
-
return window.navigator.userAgent.indexOf('Trident') === -1;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Returns false if using go(n) with hash history causes a full page reload.
|
|
236
|
-
*/
|
|
237
|
-
|
|
238
|
-
function supportsGoWithoutReloadUsingHash() {
|
|
239
|
-
return window.navigator.userAgent.indexOf('Firefox') === -1;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Returns true if a given popstate event is an extraneous WebKit event.
|
|
243
|
-
* Accounts for the fact that Chrome on iOS fires real popstate events
|
|
244
|
-
* containing undefined state when pressing the back button.
|
|
245
|
-
*/
|
|
246
|
-
|
|
247
|
-
function isExtraneousPopstateEvent(event) {
|
|
248
|
-
return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
var PopStateEvent = 'popstate';
|
|
252
|
-
var HashChangeEvent = 'hashchange';
|
|
253
|
-
|
|
254
|
-
function getHistoryState() {
|
|
255
|
-
try {
|
|
256
|
-
return window.history.state || {};
|
|
257
|
-
} catch (e) {
|
|
258
|
-
// IE 11 sometimes throws when accessing window.history.state
|
|
259
|
-
// See https://github.com/ReactTraining/history/pull/289
|
|
260
|
-
return {};
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Creates a history object that uses the HTML5 history API including
|
|
265
|
-
* pushState, replaceState, and the popstate event.
|
|
266
|
-
*/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
function createBrowserHistory(props) {
|
|
270
|
-
if (props === void 0) {
|
|
271
|
-
props = {};
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
!canUseDOM ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_4__.default)(false, 'Browser history needs a DOM') : 0 : void 0;
|
|
275
|
-
var globalHistory = window.history;
|
|
276
|
-
var canUseHistory = supportsHistory();
|
|
277
|
-
var needsHashChangeListener = !supportsPopStateOnHashChange();
|
|
278
|
-
var _props = props,
|
|
279
|
-
_props$forceRefresh = _props.forceRefresh,
|
|
280
|
-
forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
|
|
281
|
-
_props$getUserConfirm = _props.getUserConfirmation,
|
|
282
|
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
|
283
|
-
_props$keyLength = _props.keyLength,
|
|
284
|
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
|
285
|
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
|
286
|
-
|
|
287
|
-
function getDOMLocation(historyState) {
|
|
288
|
-
var _ref = historyState || {},
|
|
289
|
-
key = _ref.key,
|
|
290
|
-
state = _ref.state;
|
|
291
|
-
|
|
292
|
-
var _window$location = window.location,
|
|
293
|
-
pathname = _window$location.pathname,
|
|
294
|
-
search = _window$location.search,
|
|
295
|
-
hash = _window$location.hash;
|
|
296
|
-
var path = pathname + search + hash;
|
|
297
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : 0;
|
|
298
|
-
if (basename) path = stripBasename(path, basename);
|
|
299
|
-
return createLocation(path, state, key);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
function createKey() {
|
|
303
|
-
return Math.random().toString(36).substr(2, keyLength);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
var transitionManager = createTransitionManager();
|
|
307
|
-
|
|
308
|
-
function setState(nextState) {
|
|
309
|
-
(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)(history, nextState);
|
|
310
|
-
|
|
311
|
-
history.length = globalHistory.length;
|
|
312
|
-
transitionManager.notifyListeners(history.location, history.action);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
function handlePopState(event) {
|
|
316
|
-
// Ignore extraneous popstate events in WebKit.
|
|
317
|
-
if (isExtraneousPopstateEvent(event)) return;
|
|
318
|
-
handlePop(getDOMLocation(event.state));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
function handleHashChange() {
|
|
322
|
-
handlePop(getDOMLocation(getHistoryState()));
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
var forceNextPop = false;
|
|
326
|
-
|
|
327
|
-
function handlePop(location) {
|
|
328
|
-
if (forceNextPop) {
|
|
329
|
-
forceNextPop = false;
|
|
330
|
-
setState();
|
|
331
|
-
} else {
|
|
332
|
-
var action = 'POP';
|
|
333
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
334
|
-
if (ok) {
|
|
335
|
-
setState({
|
|
336
|
-
action: action,
|
|
337
|
-
location: location
|
|
338
|
-
});
|
|
339
|
-
} else {
|
|
340
|
-
revertPop(location);
|
|
341
|
-
}
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
function revertPop(fromLocation) {
|
|
347
|
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
|
348
|
-
// keeping a list of keys we've seen in sessionStorage.
|
|
349
|
-
// Instead, we just default to 0 for keys we don't know.
|
|
350
|
-
|
|
351
|
-
var toIndex = allKeys.indexOf(toLocation.key);
|
|
352
|
-
if (toIndex === -1) toIndex = 0;
|
|
353
|
-
var fromIndex = allKeys.indexOf(fromLocation.key);
|
|
354
|
-
if (fromIndex === -1) fromIndex = 0;
|
|
355
|
-
var delta = toIndex - fromIndex;
|
|
356
|
-
|
|
357
|
-
if (delta) {
|
|
358
|
-
forceNextPop = true;
|
|
359
|
-
go(delta);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
var initialLocation = getDOMLocation(getHistoryState());
|
|
364
|
-
var allKeys = [initialLocation.key]; // Public interface
|
|
365
|
-
|
|
366
|
-
function createHref(location) {
|
|
367
|
-
return basename + createPath(location);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
function push(path, state) {
|
|
371
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : 0;
|
|
372
|
-
var action = 'PUSH';
|
|
373
|
-
var location = createLocation(path, state, createKey(), history.location);
|
|
374
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
375
|
-
if (!ok) return;
|
|
376
|
-
var href = createHref(location);
|
|
377
|
-
var key = location.key,
|
|
378
|
-
state = location.state;
|
|
379
|
-
|
|
380
|
-
if (canUseHistory) {
|
|
381
|
-
globalHistory.pushState({
|
|
382
|
-
key: key,
|
|
383
|
-
state: state
|
|
384
|
-
}, null, href);
|
|
385
|
-
|
|
386
|
-
if (forceRefresh) {
|
|
387
|
-
window.location.href = href;
|
|
388
|
-
} else {
|
|
389
|
-
var prevIndex = allKeys.indexOf(history.location.key);
|
|
390
|
-
var nextKeys = allKeys.slice(0, prevIndex + 1);
|
|
391
|
-
nextKeys.push(location.key);
|
|
392
|
-
allKeys = nextKeys;
|
|
393
|
-
setState({
|
|
394
|
-
action: action,
|
|
395
|
-
location: location
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
} else {
|
|
399
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : 0;
|
|
400
|
-
window.location.href = href;
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
function replace(path, state) {
|
|
406
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : 0;
|
|
407
|
-
var action = 'REPLACE';
|
|
408
|
-
var location = createLocation(path, state, createKey(), history.location);
|
|
409
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
410
|
-
if (!ok) return;
|
|
411
|
-
var href = createHref(location);
|
|
412
|
-
var key = location.key,
|
|
413
|
-
state = location.state;
|
|
414
|
-
|
|
415
|
-
if (canUseHistory) {
|
|
416
|
-
globalHistory.replaceState({
|
|
417
|
-
key: key,
|
|
418
|
-
state: state
|
|
419
|
-
}, null, href);
|
|
420
|
-
|
|
421
|
-
if (forceRefresh) {
|
|
422
|
-
window.location.replace(href);
|
|
423
|
-
} else {
|
|
424
|
-
var prevIndex = allKeys.indexOf(history.location.key);
|
|
425
|
-
if (prevIndex !== -1) allKeys[prevIndex] = location.key;
|
|
426
|
-
setState({
|
|
427
|
-
action: action,
|
|
428
|
-
location: location
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
} else {
|
|
432
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : 0;
|
|
433
|
-
window.location.replace(href);
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
function go(n) {
|
|
439
|
-
globalHistory.go(n);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
function goBack() {
|
|
443
|
-
go(-1);
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
function goForward() {
|
|
447
|
-
go(1);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
var listenerCount = 0;
|
|
451
|
-
|
|
452
|
-
function checkDOMListeners(delta) {
|
|
453
|
-
listenerCount += delta;
|
|
454
|
-
|
|
455
|
-
if (listenerCount === 1 && delta === 1) {
|
|
456
|
-
window.addEventListener(PopStateEvent, handlePopState);
|
|
457
|
-
if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
|
|
458
|
-
} else if (listenerCount === 0) {
|
|
459
|
-
window.removeEventListener(PopStateEvent, handlePopState);
|
|
460
|
-
if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
var isBlocked = false;
|
|
465
|
-
|
|
466
|
-
function block(prompt) {
|
|
467
|
-
if (prompt === void 0) {
|
|
468
|
-
prompt = false;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
var unblock = transitionManager.setPrompt(prompt);
|
|
472
|
-
|
|
473
|
-
if (!isBlocked) {
|
|
474
|
-
checkDOMListeners(1);
|
|
475
|
-
isBlocked = true;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
return function () {
|
|
479
|
-
if (isBlocked) {
|
|
480
|
-
isBlocked = false;
|
|
481
|
-
checkDOMListeners(-1);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
return unblock();
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
function listen(listener) {
|
|
489
|
-
var unlisten = transitionManager.appendListener(listener);
|
|
490
|
-
checkDOMListeners(1);
|
|
491
|
-
return function () {
|
|
492
|
-
checkDOMListeners(-1);
|
|
493
|
-
unlisten();
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
var history = {
|
|
498
|
-
length: globalHistory.length,
|
|
499
|
-
action: 'POP',
|
|
500
|
-
location: initialLocation,
|
|
501
|
-
createHref: createHref,
|
|
502
|
-
push: push,
|
|
503
|
-
replace: replace,
|
|
504
|
-
go: go,
|
|
505
|
-
goBack: goBack,
|
|
506
|
-
goForward: goForward,
|
|
507
|
-
block: block,
|
|
508
|
-
listen: listen
|
|
509
|
-
};
|
|
510
|
-
return history;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
var HashChangeEvent$1 = 'hashchange';
|
|
514
|
-
var HashPathCoders = {
|
|
515
|
-
hashbang: {
|
|
516
|
-
encodePath: function encodePath(path) {
|
|
517
|
-
return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
|
|
518
|
-
},
|
|
519
|
-
decodePath: function decodePath(path) {
|
|
520
|
-
return path.charAt(0) === '!' ? path.substr(1) : path;
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
noslash: {
|
|
524
|
-
encodePath: stripLeadingSlash,
|
|
525
|
-
decodePath: addLeadingSlash
|
|
526
|
-
},
|
|
527
|
-
slash: {
|
|
528
|
-
encodePath: addLeadingSlash,
|
|
529
|
-
decodePath: addLeadingSlash
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
|
|
533
|
-
function stripHash(url) {
|
|
534
|
-
var hashIndex = url.indexOf('#');
|
|
535
|
-
return hashIndex === -1 ? url : url.slice(0, hashIndex);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
function getHashPath() {
|
|
539
|
-
// We can't use window.location.hash here because it's not
|
|
540
|
-
// consistent across browsers - Firefox will pre-decode it!
|
|
541
|
-
var href = window.location.href;
|
|
542
|
-
var hashIndex = href.indexOf('#');
|
|
543
|
-
return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
function pushHashPath(path) {
|
|
547
|
-
window.location.hash = path;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
function replaceHashPath(path) {
|
|
551
|
-
window.location.replace(stripHash(window.location.href) + '#' + path);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
function createHashHistory(props) {
|
|
555
|
-
if (props === void 0) {
|
|
556
|
-
props = {};
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
!canUseDOM ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_4__.default)(false, 'Hash history needs a DOM') : 0 : void 0;
|
|
560
|
-
var globalHistory = window.history;
|
|
561
|
-
var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
|
|
562
|
-
var _props = props,
|
|
563
|
-
_props$getUserConfirm = _props.getUserConfirmation,
|
|
564
|
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
|
565
|
-
_props$hashType = _props.hashType,
|
|
566
|
-
hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
|
|
567
|
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
|
568
|
-
var _HashPathCoders$hashT = HashPathCoders[hashType],
|
|
569
|
-
encodePath = _HashPathCoders$hashT.encodePath,
|
|
570
|
-
decodePath = _HashPathCoders$hashT.decodePath;
|
|
571
|
-
|
|
572
|
-
function getDOMLocation() {
|
|
573
|
-
var path = decodePath(getHashPath());
|
|
574
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : 0;
|
|
575
|
-
if (basename) path = stripBasename(path, basename);
|
|
576
|
-
return createLocation(path);
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
var transitionManager = createTransitionManager();
|
|
580
|
-
|
|
581
|
-
function setState(nextState) {
|
|
582
|
-
(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)(history, nextState);
|
|
583
|
-
|
|
584
|
-
history.length = globalHistory.length;
|
|
585
|
-
transitionManager.notifyListeners(history.location, history.action);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
var forceNextPop = false;
|
|
589
|
-
var ignorePath = null;
|
|
590
|
-
|
|
591
|
-
function locationsAreEqual$$1(a, b) {
|
|
592
|
-
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
function handleHashChange() {
|
|
596
|
-
var path = getHashPath();
|
|
597
|
-
var encodedPath = encodePath(path);
|
|
598
|
-
|
|
599
|
-
if (path !== encodedPath) {
|
|
600
|
-
// Ensure we always have a properly-encoded hash.
|
|
601
|
-
replaceHashPath(encodedPath);
|
|
602
|
-
} else {
|
|
603
|
-
var location = getDOMLocation();
|
|
604
|
-
var prevLocation = history.location;
|
|
605
|
-
if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
|
|
606
|
-
|
|
607
|
-
if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
|
|
608
|
-
|
|
609
|
-
ignorePath = null;
|
|
610
|
-
handlePop(location);
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
function handlePop(location) {
|
|
615
|
-
if (forceNextPop) {
|
|
616
|
-
forceNextPop = false;
|
|
617
|
-
setState();
|
|
618
|
-
} else {
|
|
619
|
-
var action = 'POP';
|
|
620
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
621
|
-
if (ok) {
|
|
622
|
-
setState({
|
|
623
|
-
action: action,
|
|
624
|
-
location: location
|
|
625
|
-
});
|
|
626
|
-
} else {
|
|
627
|
-
revertPop(location);
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
function revertPop(fromLocation) {
|
|
634
|
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
|
635
|
-
// keeping a list of paths we've seen in sessionStorage.
|
|
636
|
-
// Instead, we just default to 0 for paths we don't know.
|
|
637
|
-
|
|
638
|
-
var toIndex = allPaths.lastIndexOf(createPath(toLocation));
|
|
639
|
-
if (toIndex === -1) toIndex = 0;
|
|
640
|
-
var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
|
|
641
|
-
if (fromIndex === -1) fromIndex = 0;
|
|
642
|
-
var delta = toIndex - fromIndex;
|
|
643
|
-
|
|
644
|
-
if (delta) {
|
|
645
|
-
forceNextPop = true;
|
|
646
|
-
go(delta);
|
|
647
|
-
}
|
|
648
|
-
} // Ensure the hash is encoded properly before doing anything else.
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
var path = getHashPath();
|
|
652
|
-
var encodedPath = encodePath(path);
|
|
653
|
-
if (path !== encodedPath) replaceHashPath(encodedPath);
|
|
654
|
-
var initialLocation = getDOMLocation();
|
|
655
|
-
var allPaths = [createPath(initialLocation)]; // Public interface
|
|
656
|
-
|
|
657
|
-
function createHref(location) {
|
|
658
|
-
var baseTag = document.querySelector('base');
|
|
659
|
-
var href = '';
|
|
660
|
-
|
|
661
|
-
if (baseTag && baseTag.getAttribute('href')) {
|
|
662
|
-
href = stripHash(window.location.href);
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
return href + '#' + encodePath(basename + createPath(location));
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
function push(path, state) {
|
|
669
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(state === undefined, 'Hash history cannot push state; it is ignored') : 0;
|
|
670
|
-
var action = 'PUSH';
|
|
671
|
-
var location = createLocation(path, undefined, undefined, history.location);
|
|
672
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
673
|
-
if (!ok) return;
|
|
674
|
-
var path = createPath(location);
|
|
675
|
-
var encodedPath = encodePath(basename + path);
|
|
676
|
-
var hashChanged = getHashPath() !== encodedPath;
|
|
677
|
-
|
|
678
|
-
if (hashChanged) {
|
|
679
|
-
// We cannot tell if a hashchange was caused by a PUSH, so we'd
|
|
680
|
-
// rather setState here and ignore the hashchange. The caveat here
|
|
681
|
-
// is that other hash histories in the page will consider it a POP.
|
|
682
|
-
ignorePath = path;
|
|
683
|
-
pushHashPath(encodedPath);
|
|
684
|
-
var prevIndex = allPaths.lastIndexOf(createPath(history.location));
|
|
685
|
-
var nextPaths = allPaths.slice(0, prevIndex + 1);
|
|
686
|
-
nextPaths.push(path);
|
|
687
|
-
allPaths = nextPaths;
|
|
688
|
-
setState({
|
|
689
|
-
action: action,
|
|
690
|
-
location: location
|
|
691
|
-
});
|
|
692
|
-
} else {
|
|
693
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : 0;
|
|
694
|
-
setState();
|
|
695
|
-
}
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
function replace(path, state) {
|
|
700
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(state === undefined, 'Hash history cannot replace state; it is ignored') : 0;
|
|
701
|
-
var action = 'REPLACE';
|
|
702
|
-
var location = createLocation(path, undefined, undefined, history.location);
|
|
703
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
704
|
-
if (!ok) return;
|
|
705
|
-
var path = createPath(location);
|
|
706
|
-
var encodedPath = encodePath(basename + path);
|
|
707
|
-
var hashChanged = getHashPath() !== encodedPath;
|
|
708
|
-
|
|
709
|
-
if (hashChanged) {
|
|
710
|
-
// We cannot tell if a hashchange was caused by a REPLACE, so we'd
|
|
711
|
-
// rather setState here and ignore the hashchange. The caveat here
|
|
712
|
-
// is that other hash histories in the page will consider it a POP.
|
|
713
|
-
ignorePath = path;
|
|
714
|
-
replaceHashPath(encodedPath);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
var prevIndex = allPaths.indexOf(createPath(history.location));
|
|
718
|
-
if (prevIndex !== -1) allPaths[prevIndex] = path;
|
|
719
|
-
setState({
|
|
720
|
-
action: action,
|
|
721
|
-
location: location
|
|
722
|
-
});
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
function go(n) {
|
|
727
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : 0;
|
|
728
|
-
globalHistory.go(n);
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
function goBack() {
|
|
732
|
-
go(-1);
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
function goForward() {
|
|
736
|
-
go(1);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
var listenerCount = 0;
|
|
740
|
-
|
|
741
|
-
function checkDOMListeners(delta) {
|
|
742
|
-
listenerCount += delta;
|
|
743
|
-
|
|
744
|
-
if (listenerCount === 1 && delta === 1) {
|
|
745
|
-
window.addEventListener(HashChangeEvent$1, handleHashChange);
|
|
746
|
-
} else if (listenerCount === 0) {
|
|
747
|
-
window.removeEventListener(HashChangeEvent$1, handleHashChange);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
var isBlocked = false;
|
|
752
|
-
|
|
753
|
-
function block(prompt) {
|
|
754
|
-
if (prompt === void 0) {
|
|
755
|
-
prompt = false;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
var unblock = transitionManager.setPrompt(prompt);
|
|
759
|
-
|
|
760
|
-
if (!isBlocked) {
|
|
761
|
-
checkDOMListeners(1);
|
|
762
|
-
isBlocked = true;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
return function () {
|
|
766
|
-
if (isBlocked) {
|
|
767
|
-
isBlocked = false;
|
|
768
|
-
checkDOMListeners(-1);
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
return unblock();
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
function listen(listener) {
|
|
776
|
-
var unlisten = transitionManager.appendListener(listener);
|
|
777
|
-
checkDOMListeners(1);
|
|
778
|
-
return function () {
|
|
779
|
-
checkDOMListeners(-1);
|
|
780
|
-
unlisten();
|
|
781
|
-
};
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
var history = {
|
|
785
|
-
length: globalHistory.length,
|
|
786
|
-
action: 'POP',
|
|
787
|
-
location: initialLocation,
|
|
788
|
-
createHref: createHref,
|
|
789
|
-
push: push,
|
|
790
|
-
replace: replace,
|
|
791
|
-
go: go,
|
|
792
|
-
goBack: goBack,
|
|
793
|
-
goForward: goForward,
|
|
794
|
-
block: block,
|
|
795
|
-
listen: listen
|
|
796
|
-
};
|
|
797
|
-
return history;
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
function clamp(n, lowerBound, upperBound) {
|
|
801
|
-
return Math.min(Math.max(n, lowerBound), upperBound);
|
|
802
|
-
}
|
|
803
|
-
/**
|
|
804
|
-
* Creates a history object that stores locations in memory.
|
|
805
|
-
*/
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
function createMemoryHistory(props) {
|
|
809
|
-
if (props === void 0) {
|
|
810
|
-
props = {};
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
var _props = props,
|
|
814
|
-
getUserConfirmation = _props.getUserConfirmation,
|
|
815
|
-
_props$initialEntries = _props.initialEntries,
|
|
816
|
-
initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
|
|
817
|
-
_props$initialIndex = _props.initialIndex,
|
|
818
|
-
initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
|
|
819
|
-
_props$keyLength = _props.keyLength,
|
|
820
|
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
|
821
|
-
var transitionManager = createTransitionManager();
|
|
822
|
-
|
|
823
|
-
function setState(nextState) {
|
|
824
|
-
(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.default)(history, nextState);
|
|
825
|
-
|
|
826
|
-
history.length = history.entries.length;
|
|
827
|
-
transitionManager.notifyListeners(history.location, history.action);
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
function createKey() {
|
|
831
|
-
return Math.random().toString(36).substr(2, keyLength);
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
var index = clamp(initialIndex, 0, initialEntries.length - 1);
|
|
835
|
-
var entries = initialEntries.map(function (entry) {
|
|
836
|
-
return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
|
|
837
|
-
}); // Public interface
|
|
838
|
-
|
|
839
|
-
var createHref = createPath;
|
|
840
|
-
|
|
841
|
-
function push(path, state) {
|
|
842
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : 0;
|
|
843
|
-
var action = 'PUSH';
|
|
844
|
-
var location = createLocation(path, state, createKey(), history.location);
|
|
845
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
846
|
-
if (!ok) return;
|
|
847
|
-
var prevIndex = history.index;
|
|
848
|
-
var nextIndex = prevIndex + 1;
|
|
849
|
-
var nextEntries = history.entries.slice(0);
|
|
850
|
-
|
|
851
|
-
if (nextEntries.length > nextIndex) {
|
|
852
|
-
nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
|
|
853
|
-
} else {
|
|
854
|
-
nextEntries.push(location);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
setState({
|
|
858
|
-
action: action,
|
|
859
|
-
location: location,
|
|
860
|
-
index: nextIndex,
|
|
861
|
-
entries: nextEntries
|
|
862
|
-
});
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
function replace(path, state) {
|
|
867
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_3__.default)(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : 0;
|
|
868
|
-
var action = 'REPLACE';
|
|
869
|
-
var location = createLocation(path, state, createKey(), history.location);
|
|
870
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
871
|
-
if (!ok) return;
|
|
872
|
-
history.entries[history.index] = location;
|
|
873
|
-
setState({
|
|
874
|
-
action: action,
|
|
875
|
-
location: location
|
|
876
|
-
});
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
function go(n) {
|
|
881
|
-
var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
|
|
882
|
-
var action = 'POP';
|
|
883
|
-
var location = history.entries[nextIndex];
|
|
884
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
885
|
-
if (ok) {
|
|
886
|
-
setState({
|
|
887
|
-
action: action,
|
|
888
|
-
location: location,
|
|
889
|
-
index: nextIndex
|
|
890
|
-
});
|
|
891
|
-
} else {
|
|
892
|
-
// Mimic the behavior of DOM histories by
|
|
893
|
-
// causing a render after a cancelled POP.
|
|
894
|
-
setState();
|
|
895
|
-
}
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
function goBack() {
|
|
900
|
-
go(-1);
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
function goForward() {
|
|
904
|
-
go(1);
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
function canGo(n) {
|
|
908
|
-
var nextIndex = history.index + n;
|
|
909
|
-
return nextIndex >= 0 && nextIndex < history.entries.length;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
function block(prompt) {
|
|
913
|
-
if (prompt === void 0) {
|
|
914
|
-
prompt = false;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
return transitionManager.setPrompt(prompt);
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
function listen(listener) {
|
|
921
|
-
return transitionManager.appendListener(listener);
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
var history = {
|
|
925
|
-
length: entries.length,
|
|
926
|
-
action: 'POP',
|
|
927
|
-
location: entries[index],
|
|
928
|
-
index: index,
|
|
929
|
-
entries: entries,
|
|
930
|
-
createHref: createHref,
|
|
931
|
-
push: push,
|
|
932
|
-
replace: replace,
|
|
933
|
-
go: go,
|
|
934
|
-
goBack: goBack,
|
|
935
|
-
goForward: goForward,
|
|
936
|
-
canGo: canGo,
|
|
937
|
-
block: block,
|
|
938
|
-
listen: listen
|
|
939
|
-
};
|
|
940
|
-
return history;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
/***/ }),
|
|
947
|
-
|
|
948
|
-
/***/ "./node_modules/resolve-pathname/esm/resolve-pathname.js":
|
|
949
|
-
/*!***************************************************************!*\
|
|
950
|
-
!*** ./node_modules/resolve-pathname/esm/resolve-pathname.js ***!
|
|
951
|
-
\***************************************************************/
|
|
952
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
953
|
-
|
|
954
|
-
__webpack_require__.r(__webpack_exports__);
|
|
955
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
956
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
957
|
-
/* harmony export */ });
|
|
958
|
-
function isAbsolute(pathname) {
|
|
959
|
-
return pathname.charAt(0) === '/';
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
// About 1.5x faster than the two-arg version of Array#splice()
|
|
963
|
-
function spliceOne(list, index) {
|
|
964
|
-
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
|
|
965
|
-
list[i] = list[k];
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
list.pop();
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
// This implementation is based heavily on node's url.parse
|
|
972
|
-
function resolvePathname(to, from) {
|
|
973
|
-
if (from === undefined) from = '';
|
|
974
|
-
|
|
975
|
-
var toParts = (to && to.split('/')) || [];
|
|
976
|
-
var fromParts = (from && from.split('/')) || [];
|
|
977
|
-
|
|
978
|
-
var isToAbs = to && isAbsolute(to);
|
|
979
|
-
var isFromAbs = from && isAbsolute(from);
|
|
980
|
-
var mustEndAbs = isToAbs || isFromAbs;
|
|
981
|
-
|
|
982
|
-
if (to && isAbsolute(to)) {
|
|
983
|
-
// to is absolute
|
|
984
|
-
fromParts = toParts;
|
|
985
|
-
} else if (toParts.length) {
|
|
986
|
-
// to is relative, drop the filename
|
|
987
|
-
fromParts.pop();
|
|
988
|
-
fromParts = fromParts.concat(toParts);
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
if (!fromParts.length) return '/';
|
|
992
|
-
|
|
993
|
-
var hasTrailingSlash;
|
|
994
|
-
if (fromParts.length) {
|
|
995
|
-
var last = fromParts[fromParts.length - 1];
|
|
996
|
-
hasTrailingSlash = last === '.' || last === '..' || last === '';
|
|
997
|
-
} else {
|
|
998
|
-
hasTrailingSlash = false;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
var up = 0;
|
|
1002
|
-
for (var i = fromParts.length; i >= 0; i--) {
|
|
1003
|
-
var part = fromParts[i];
|
|
1004
|
-
|
|
1005
|
-
if (part === '.') {
|
|
1006
|
-
spliceOne(fromParts, i);
|
|
1007
|
-
} else if (part === '..') {
|
|
1008
|
-
spliceOne(fromParts, i);
|
|
1009
|
-
up++;
|
|
1010
|
-
} else if (up) {
|
|
1011
|
-
spliceOne(fromParts, i);
|
|
1012
|
-
up--;
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');
|
|
1017
|
-
|
|
1018
|
-
if (
|
|
1019
|
-
mustEndAbs &&
|
|
1020
|
-
fromParts[0] !== '' &&
|
|
1021
|
-
(!fromParts[0] || !isAbsolute(fromParts[0]))
|
|
1022
|
-
)
|
|
1023
|
-
fromParts.unshift('');
|
|
1024
|
-
|
|
1025
|
-
var result = fromParts.join('/');
|
|
1026
|
-
|
|
1027
|
-
if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
|
|
1028
|
-
|
|
1029
|
-
return result;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (resolvePathname);
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
/***/ }),
|
|
1036
|
-
|
|
1037
|
-
/***/ "./node_modules/tiny-invariant/dist/tiny-invariant.esm.js":
|
|
1038
|
-
/*!****************************************************************!*\
|
|
1039
|
-
!*** ./node_modules/tiny-invariant/dist/tiny-invariant.esm.js ***!
|
|
1040
|
-
\****************************************************************/
|
|
1041
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1042
|
-
|
|
1043
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1044
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1045
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1046
|
-
/* harmony export */ });
|
|
1047
|
-
var isProduction = "development" === 'production';
|
|
1048
|
-
var prefix = 'Invariant failed';
|
|
1049
|
-
function invariant(condition, message) {
|
|
1050
|
-
if (condition) {
|
|
1051
|
-
return;
|
|
1052
|
-
}
|
|
1053
|
-
if (isProduction) {
|
|
1054
|
-
throw new Error(prefix);
|
|
1055
|
-
}
|
|
1056
|
-
throw new Error(prefix + ": " + (message || ''));
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (invariant);
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
/***/ }),
|
|
1063
|
-
|
|
1064
|
-
/***/ "./node_modules/tiny-warning/dist/tiny-warning.esm.js":
|
|
1065
|
-
/*!************************************************************!*\
|
|
1066
|
-
!*** ./node_modules/tiny-warning/dist/tiny-warning.esm.js ***!
|
|
1067
|
-
\************************************************************/
|
|
1068
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1069
|
-
|
|
1070
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1071
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1072
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1073
|
-
/* harmony export */ });
|
|
1074
|
-
var isProduction = "development" === 'production';
|
|
1075
|
-
function warning(condition, message) {
|
|
1076
|
-
if (!isProduction) {
|
|
1077
|
-
if (condition) {
|
|
1078
|
-
return;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
var text = "Warning: " + message;
|
|
1082
|
-
|
|
1083
|
-
if (typeof console !== 'undefined') {
|
|
1084
|
-
console.warn(text);
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
try {
|
|
1088
|
-
throw Error(text);
|
|
1089
|
-
} catch (x) {}
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (warning);
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
/***/ }),
|
|
1097
|
-
|
|
1098
|
-
/***/ "./node_modules/value-equal/esm/value-equal.js":
|
|
1099
|
-
/*!*****************************************************!*\
|
|
1100
|
-
!*** ./node_modules/value-equal/esm/value-equal.js ***!
|
|
1101
|
-
\*****************************************************/
|
|
1102
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1103
|
-
|
|
1104
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1105
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1106
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1107
|
-
/* harmony export */ });
|
|
1108
|
-
function valueOf(obj) {
|
|
1109
|
-
return obj.valueOf ? obj.valueOf() : Object.prototype.valueOf.call(obj);
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
function valueEqual(a, b) {
|
|
1113
|
-
// Test for strict equality first.
|
|
1114
|
-
if (a === b) return true;
|
|
1115
|
-
|
|
1116
|
-
// Otherwise, if either of them == null they are not equal.
|
|
1117
|
-
if (a == null || b == null) return false;
|
|
1118
|
-
|
|
1119
|
-
if (Array.isArray(a)) {
|
|
1120
|
-
return (
|
|
1121
|
-
Array.isArray(b) &&
|
|
1122
|
-
a.length === b.length &&
|
|
1123
|
-
a.every(function(item, index) {
|
|
1124
|
-
return valueEqual(item, b[index]);
|
|
1125
|
-
})
|
|
1126
|
-
);
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
if (typeof a === 'object' || typeof b === 'object') {
|
|
1130
|
-
var aValue = valueOf(a);
|
|
1131
|
-
var bValue = valueOf(b);
|
|
1132
|
-
|
|
1133
|
-
if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue);
|
|
1134
|
-
|
|
1135
|
-
return Object.keys(Object.assign({}, a, b)).every(function(key) {
|
|
1136
|
-
return valueEqual(a[key], b[key]);
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
return false;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (valueEqual);
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
/***/ })
|
|
1147
|
-
|
|
1148
|
-
}]);
|