@modern-js/module-tools-docs 2.0.2 → 2.2.0-beta.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/doc_build/html/main/index.html +1 -1
- package/doc_build/static/css/main.css +267 -660
- package/doc_build/static/css/main.css.map +1 -1
- package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css +6 -23
- package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css.map +1 -1
- package/doc_build/static/js/async/en_api_config_build-config.js +79 -36
- package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -1
- package/doc_build/static/js/async/en_api_config_build-preset.js +40 -20
- package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -1
- package/doc_build/static/js/async/en_api_config_design-system.js +33800 -2340
- package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -1
- package/doc_build/static/js/async/en_api_config_plugins.js +15 -19
- package/doc_build/static/js/async/en_api_config_testing.js +26 -24
- package/doc_build/static/js/async/en_api_config_testing.js.map +1 -1
- package/doc_build/static/js/async/{en_api_.js → en_api_index.js} +10 -14
- package/doc_build/static/js/async/en_api_index.js.map +1 -0
- package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +24 -26
- package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_asset.js +16 -41
- package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_build-umd.js +20 -24
- package/doc_build/static/js/async/en_guide_advance_copy.js +25 -23
- package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_external-dependency.js +15 -19
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +352 -94
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +11 -15
- package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -1
- package/doc_build/static/js/async/en_guide_advance_theme-config.js +26 -24
- package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +275 -88
- package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_command-preview.js +45 -33
- package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +274 -196
- package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +18 -20
- package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_test-your-project.js +27 -32
- package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +33 -15
- package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -1
- package/doc_build/static/js/async/en_guide_basic_using-storybook.js +24 -63
- package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -1
- package/doc_build/static/js/async/en_guide_best-practices_components.js +39 -27
- package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -1
- package/doc_build/static/js/async/en_guide_intro_getting-started.js +288 -45
- package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -1
- package/doc_build/static/js/async/en_guide_intro_welcome.js +27 -13
- package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -1
- package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +16 -12
- package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -1
- package/doc_build/static/js/async/{en_.js → en_index.js} +12 -16
- package/doc_build/static/js/async/en_index.js.map +1 -0
- package/doc_build/static/js/async/en_plugins_guide_getting-started.js +17 -21
- package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +20 -24
- package/doc_build/static/js/async/en_plugins_guide_setup-function.js +19 -23
- package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -1
- package/doc_build/static/js/async/en_plugins_official-list_overview.js +8 -12
- package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +166 -367
- package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -1
- package/doc_build/static/js/async/{api_config_build-config.js → zh_api_config_build-config.js} +80 -35
- package/doc_build/static/js/async/{api_config_build-config.js.map → zh_api_config_build-config.js.map} +1 -1
- package/doc_build/static/js/async/{api_config_build-preset.js → zh_api_config_build-preset.js} +39 -21
- package/doc_build/static/js/async/{api_config_build-preset.js.map → zh_api_config_build-preset.js.map} +1 -1
- package/doc_build/static/js/async/{api_config_design-system.js → zh_api_config_design-system.js} +27 -23
- package/doc_build/static/js/async/{api_config_design-system.js.map → zh_api_config_design-system.js.map} +1 -1
- package/doc_build/static/js/async/{api_config_plugins.js → zh_api_config_plugins.js} +17 -21
- package/doc_build/static/js/async/{api_config_plugins.js.map → zh_api_config_plugins.js.map} +1 -1
- package/doc_build/static/js/async/{api_config_testing.js → zh_api_config_testing.js} +28 -26
- package/doc_build/static/js/async/{api_config_testing.js.map → zh_api_config_testing.js.map} +1 -1
- package/doc_build/static/js/async/{api_.js → zh_api_index.js} +10 -14
- package/doc_build/static/js/async/zh_api_index.js.map +1 -0
- package/doc_build/static/js/async/{api_plugin-api_plugin-hooks.js → zh_api_plugin-api_plugin-hooks.js} +25 -27
- package/doc_build/static/js/async/{api_plugin-api_plugin-hooks.js.map → zh_api_plugin-api_plugin-hooks.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_asset.js → zh_guide_advance_asset.js} +18 -43
- package/doc_build/static/js/async/{guide_advance_asset.js.map → zh_guide_advance_asset.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_build-umd.js → zh_guide_advance_build-umd.js} +22 -26
- package/doc_build/static/js/async/{guide_advance_build-umd.js.map → zh_guide_advance_build-umd.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_copy.js → zh_guide_advance_copy.js} +26 -24
- package/doc_build/static/js/async/{guide_advance_copy.js.map → zh_guide_advance_copy.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_external-dependency.js → zh_guide_advance_external-dependency.js} +17 -21
- package/doc_build/static/js/async/{guide_advance_external-dependency.js.map → zh_guide_advance_external-dependency.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_in-depth-about-build.js → zh_guide_advance_in-depth-about-build.js} +353 -95
- package/doc_build/static/js/async/{guide_advance_in-depth-about-build.js.map → zh_guide_advance_in-depth-about-build.js.map} +1 -1
- package/doc_build/static/js/async/{guide_advance_in-depth-about-dev-command.js → zh_guide_advance_in-depth-about-dev-command.js} +16 -18
- package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js.map +1 -0
- package/doc_build/static/js/async/{guide_advance_theme-config.js → zh_guide_advance_theme-config.js} +24 -22
- package/doc_build/static/js/async/{guide_advance_theme-config.js.map → zh_guide_advance_theme-config.js.map} +1 -1
- package/doc_build/static/js/async/{guide_basic_before-getting-started.js → zh_guide_basic_before-getting-started.js} +272 -85
- package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js.map +1 -0
- package/doc_build/static/js/async/{guide_basic_command-preview.js → zh_guide_basic_command-preview.js} +47 -35
- package/doc_build/static/js/async/zh_guide_basic_command-preview.js.map +1 -0
- package/doc_build/static/js/async/{guide_basic_modify-output-product.js → zh_guide_basic_modify-output-product.js} +203 -88
- package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js.map +1 -0
- package/doc_build/static/js/async/{guide_basic_publish-your-project.js → zh_guide_basic_publish-your-project.js} +20 -22
- package/doc_build/static/js/async/{guide_basic_publish-your-project.js.map → zh_guide_basic_publish-your-project.js.map} +1 -1
- package/doc_build/static/js/async/{guide_basic_test-your-project.js → zh_guide_basic_test-your-project.js} +30 -35
- package/doc_build/static/js/async/{guide_basic_test-your-project.js.map → zh_guide_basic_test-your-project.js.map} +1 -1
- package/doc_build/static/js/async/{guide_basic_use-micro-generator.js → zh_guide_basic_use-micro-generator.js} +40 -20
- package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js.map +1 -0
- package/doc_build/static/js/async/{guide_basic_using-storybook.js → zh_guide_basic_using-storybook.js} +78 -171
- package/doc_build/static/js/async/{guide_basic_using-storybook.js.map → zh_guide_basic_using-storybook.js.map} +1 -1
- package/doc_build/static/js/async/{guide_best-practices_components.js → zh_guide_best-practices_components.js} +41 -29
- package/doc_build/static/js/async/{guide_best-practices_components.js.map → zh_guide_best-practices_components.js.map} +1 -1
- package/doc_build/static/js/async/{guide_intro_getting-started.js → zh_guide_intro_getting-started.js} +291 -42
- package/doc_build/static/js/async/{guide_intro_getting-started.js.map → zh_guide_intro_getting-started.js.map} +1 -1
- package/doc_build/static/js/async/{guide_intro_welcome.js → zh_guide_intro_welcome.js} +28 -14
- package/doc_build/static/js/async/zh_guide_intro_welcome.js.map +1 -0
- package/doc_build/static/js/async/{guide_intro_why-module-engineering-solution.js → zh_guide_intro_why-module-engineering-solution.js} +18 -14
- package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js.map +1 -0
- package/doc_build/static/js/async/{index.js → zh_index.js} +11 -15
- package/doc_build/static/js/async/zh_index.js.map +1 -0
- package/doc_build/static/js/async/{plugins_guide_getting-started.js → zh_plugins_guide_getting-started.js} +19 -23
- package/doc_build/static/js/async/{plugins_guide_getting-started.js.map → zh_plugins_guide_getting-started.js.map} +1 -1
- package/doc_build/static/js/async/{plugins_guide_plugin-object.js → zh_plugins_guide_plugin-object.js} +22 -26
- package/doc_build/static/js/async/{plugins_guide_plugin-object.js.map → zh_plugins_guide_plugin-object.js.map} +1 -1
- package/doc_build/static/js/async/{plugins_guide_setup-function.js → zh_plugins_guide_setup-function.js} +21 -25
- package/doc_build/static/js/async/{plugins_guide_setup-function.js.map → zh_plugins_guide_setup-function.js.map} +1 -1
- package/doc_build/static/js/async/{plugins_official-list_overview.js → zh_plugins_official-list_overview.js} +10 -14
- package/doc_build/static/js/async/zh_plugins_official-list_overview.js.map +1 -0
- package/doc_build/static/js/builder-runtime.js +1 -1
- package/doc_build/static/js/builder-runtime.js.map +1 -1
- package/doc_build/static/js/lib-polyfill.js +3433 -16355
- package/doc_build/static/js/lib-polyfill.js.map +1 -1
- package/doc_build/static/js/main.js +2073 -2700
- package/doc_build/static/js/main.js.map +1 -1
- package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js +485 -1689
- package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js.map +1 -1
- package/doc_build/static/search_index.json +1 -0
- package/docs/.island/dist/404.html +41 -0
- package/docs/.island/dist/assets/asset.26aea654.js +160 -0
- package/docs/.island/dist/assets/asset.36e3d3c9.js +160 -0
- package/docs/.island/dist/assets/before-getting-started.0e863740.js +87 -0
- package/docs/.island/dist/assets/before-getting-started.2c6e6b8a.js +87 -0
- package/docs/.island/dist/assets/build-config.460d11d9.js +804 -0
- package/docs/.island/dist/assets/build-config.e155e534.js +854 -0
- package/docs/.island/dist/assets/build-preset.6c2c6c62.js +256 -0
- package/docs/.island/dist/assets/build-preset.d3da921d.js +256 -0
- package/docs/.island/dist/assets/build-umd.ba00f028.js +264 -0
- package/docs/.island/dist/assets/build-umd.edb9d163.js +273 -0
- package/docs/.island/dist/assets/command-preview.1dc93921.js +264 -0
- package/docs/.island/dist/assets/command-preview.ef7a9d01.js +264 -0
- package/docs/.island/dist/assets/components.esm.03560353.js +9 -0
- package/docs/.island/dist/assets/copy.28dc4d5f.js +277 -0
- package/docs/.island/dist/assets/copy.f4625565.js +277 -0
- package/docs/.island/dist/assets/design-system.8993234c.js +1254 -0
- package/docs/.island/dist/assets/design-system.b0ba163f.js +639 -0
- package/docs/.island/dist/assets/dev.b373b152.js +37 -0
- package/docs/.island/dist/assets/dev.b39fd42a.js +37 -0
- package/docs/.island/dist/assets/down.f35427d3.svg +1 -0
- package/docs/.island/dist/assets/extension.4bf3526b.js +1 -0
- package/docs/.island/dist/assets/extension.d64ed0b8.js +469 -0
- package/docs/.island/dist/assets/external-dependency.2ede7532.js +156 -0
- package/docs/.island/dist/assets/external-dependency.92ca89e0.js +156 -0
- package/docs/.island/dist/assets/getting-started.822cf0b2.js +117 -0
- package/docs/.island/dist/assets/getting-started.e2764829.js +114 -0
- package/docs/.island/dist/assets/github.3bf8ccee.svg +1 -0
- package/docs/.island/dist/assets/in-depth-about-build.94cc902d.js +375 -0
- package/docs/.island/dist/assets/in-depth-about-build.aa74de10.js +374 -0
- package/docs/.island/dist/assets/in-depth-about-dev-command.877bdb83.js +33 -0
- package/docs/.island/dist/assets/in-depth-about-dev-command.9736befd.js +39 -0
- package/docs/.island/dist/assets/index.01786ba7.js +30 -0
- package/docs/.island/dist/assets/index.6cef6f5f.js +4 -0
- package/docs/.island/dist/assets/index.cb118238.js +36 -0
- package/docs/.island/dist/assets/index.ccb6ce27.js +4 -0
- package/docs/.island/dist/assets/island_inject.69495876.js +1 -0
- package/docs/.island/dist/assets/island_inject.cdfb22d9.js +1 -0
- package/docs/.island/dist/assets/loading.8c9bb911.svg +1 -0
- package/docs/.island/dist/assets/modify-output-product.9e2394d7.js +100 -0
- package/docs/.island/dist/assets/modify-output-product.f363845a.js +100 -0
- package/docs/.island/dist/assets/moon.6b705924.svg +3 -0
- package/docs/.island/dist/assets/plugin.70a61997.js +42 -0
- package/docs/.island/dist/assets/plugin.80b12ee2.js +42 -0
- package/docs/.island/dist/assets/publish-your-project.7321c10e.js +164 -0
- package/docs/.island/dist/assets/publish-your-project.7326359f.js +166 -0
- package/docs/.island/dist/assets/right.89674cd7.svg +1 -0
- package/docs/.island/dist/assets/search.0aea6901.svg +1 -0
- package/docs/.island/dist/assets/search.11353245.js +222 -0
- package/docs/.island/dist/assets/search.a1b1cff3.js +3 -0
- package/docs/.island/dist/assets/search.f9025ced.js +3 -0
- package/docs/.island/dist/assets/style.09015a4b.css +1 -0
- package/docs/.island/dist/assets/style.2e5f7bc2.css +1970 -0
- package/docs/.island/dist/assets/sun.841dac10.svg +11 -0
- package/docs/.island/dist/assets/test-your-project.8ab2809e.js +190 -0
- package/docs/.island/dist/assets/test-your-project.9ae2a49e.js +190 -0
- package/docs/.island/dist/assets/test.2bfe276b.js +66 -0
- package/docs/.island/dist/assets/test.a2c00a3f.js +67 -0
- package/docs/.island/dist/assets/translator.b1077c44.svg +1 -0
- package/docs/.island/dist/assets/use-micro-generator.13c1a09f.js +60 -0
- package/docs/.island/dist/assets/use-micro-generator.dfe877f6.js +60 -0
- package/docs/.island/dist/assets/using-storybook.adb88cb8.js +260 -0
- package/docs/.island/dist/assets/using-storybook.b8e7dd04.js +260 -0
- package/docs/.island/dist/assets/welcome.94880043.js +13 -0
- package/docs/.island/dist/assets/welcome.b2140e7e.js +13 -0
- package/docs/.island/dist/assets/why-module-engineering-solution.bfe7981a.js +26 -0
- package/docs/.island/dist/assets/why-module-engineering-solution.e31cd19f.js +26 -0
- package/docs/.island/dist/chunk-COLCRJ2V.js +1 -0
- package/docs/.island/dist/chunk-K5FMOYDC.js +10 -0
- package/docs/.island/dist/chunk-WE42KMYS.js +26 -0
- package/docs/.island/dist/client-entry.js +3 -0
- package/docs/.island/dist/en/api/build-config.html +344 -0
- package/docs/.island/dist/en/api/build-preset.html +82 -0
- package/docs/.island/dist/en/api/design-system.html +155 -0
- package/docs/.island/dist/en/api/dev.html +45 -0
- package/docs/.island/dist/en/api/index.html +41 -0
- package/docs/.island/dist/en/api/plugin.html +48 -0
- package/docs/.island/dist/en/api/test.html +58 -0
- package/docs/.island/dist/en/guide/advance/asset.html +68 -0
- package/docs/.island/dist/en/guide/advance/build-umd.html +72 -0
- package/docs/.island/dist/en/guide/advance/copy.html +82 -0
- package/docs/.island/dist/en/guide/advance/extension.html +41 -0
- package/docs/.island/dist/en/guide/advance/external-dependency.html +71 -0
- package/docs/.island/dist/en/guide/advance/in-depth-about-build.html +148 -0
- package/docs/.island/dist/en/guide/advance/in-depth-about-dev-command.html +51 -0
- package/docs/.island/dist/en/guide/basic/before-getting-started.html +127 -0
- package/docs/.island/dist/en/guide/basic/command-preview.html +100 -0
- package/docs/.island/dist/en/guide/basic/modify-output-product.html +140 -0
- package/docs/.island/dist/en/guide/basic/publish-your-project.html +91 -0
- package/docs/.island/dist/en/guide/basic/test-your-project.html +72 -0
- package/docs/.island/dist/en/guide/basic/use-micro-generator.html +65 -0
- package/docs/.island/dist/en/guide/basic/using-storybook.html +113 -0
- package/docs/.island/dist/en/guide/intro/getting-started.html +76 -0
- package/docs/.island/dist/en/guide/intro/welcome.html +53 -0
- package/docs/.island/dist/en/guide/intro/why-module-engineering-solution.html +49 -0
- package/docs/.island/dist/en/index.html +42 -0
- package/docs/.island/dist/react-dom.js +1 -0
- package/docs/.island/dist/react-dom_client.js +1 -0
- package/docs/.island/dist/react.js +1 -0
- package/docs/.island/dist/react_jsx-runtime.js +10 -0
- package/docs/.island/dist/ssr-manifest.json +57 -0
- package/docs/.island/dist/test-result.png +0 -0
- package/docs/.island/dist/why-module-solution.png +0 -0
- package/docs/.island/dist/zh/api/build-config.html +361 -0
- package/docs/.island/dist/zh/api/build-preset.html +82 -0
- package/docs/.island/dist/zh/api/design-system.html +149 -0
- package/docs/.island/dist/zh/api/dev.html +46 -0
- package/docs/.island/dist/zh/api/index.html +41 -0
- package/docs/.island/dist/zh/api/plugin.html +48 -0
- package/docs/.island/dist/zh/api/test.html +59 -0
- package/docs/.island/dist/zh/guide/advance/asset.html +68 -0
- package/docs/.island/dist/zh/guide/advance/build-umd.html +72 -0
- package/docs/.island/dist/zh/guide/advance/copy.html +82 -0
- package/docs/.island/dist/zh/guide/advance/extension.html +127 -0
- package/docs/.island/dist/zh/guide/advance/external-dependency.html +71 -0
- package/docs/.island/dist/zh/guide/advance/in-depth-about-build.html +148 -0
- package/docs/.island/dist/zh/guide/advance/in-depth-about-dev-command.html +53 -0
- package/docs/.island/dist/zh/guide/basic/before-getting-started.html +127 -0
- package/docs/.island/dist/zh/guide/basic/command-preview.html +100 -0
- package/docs/.island/dist/zh/guide/basic/modify-output-product.html +140 -0
- package/docs/.island/dist/zh/guide/basic/publish-your-project.html +92 -0
- package/docs/.island/dist/zh/guide/basic/test-your-project.html +72 -0
- package/docs/.island/dist/zh/guide/basic/use-micro-generator.html +65 -0
- package/docs/.island/dist/zh/guide/basic/using-storybook.html +114 -0
- package/docs/.island/dist/zh/guide/intro/getting-started.html +79 -0
- package/docs/.island/dist/zh/guide/intro/welcome.html +53 -0
- package/docs/.island/dist/zh/guide/intro/why-module-engineering-solution.html +49 -0
- package/docs/.island/dist/zh/index.html +42 -0
- package/docs/en/api/config/build-config.md +15 -5
- package/docs/en/api/config/build-preset.md +3 -2
- package/docs/en/api/config/design-system.md +623 -615
- package/docs/en/api/config/plugins.md +2 -2
- package/docs/en/api/config/testing.md +2 -1
- package/docs/en/guide/advance/asset.mdx +0 -4
- package/docs/en/guide/advance/build-umd.mdx +3 -3
- package/docs/en/guide/advance/in-depth-about-build.md +14 -13
- package/docs/en/guide/advance/in-depth-about-dev-command.md +2 -1
- package/docs/en/guide/basic/before-getting-started.md +16 -9
- package/docs/en/guide/basic/command-preview.md +2 -2
- package/docs/en/guide/basic/modify-output-product.md +65 -69
- package/docs/en/guide/basic/test-your-project.mdx +1 -3
- package/docs/en/guide/basic/use-micro-generator.md +4 -0
- package/docs/en/guide/basic/using-storybook.mdx +1 -13
- package/docs/en/guide/intro/getting-started.md +16 -7
- package/docs/en/plugins/guide/getting-started.mdx +2 -2
- package/docs/en/plugins/guide/plugin-object.mdx +5 -5
- package/docs/zh/api/config/build-config.md +18 -6
- package/docs/zh/api/config/build-preset.md +3 -2
- package/docs/zh/api/config/design-system.md +2 -2
- package/docs/zh/api/config/plugins.md +2 -2
- package/docs/zh/api/config/testing.md +3 -2
- package/docs/zh/guide/advance/asset.mdx +0 -5
- package/docs/zh/guide/advance/build-umd.mdx +3 -3
- package/docs/zh/guide/advance/in-depth-about-build.md +14 -13
- package/docs/zh/guide/advance/in-depth-about-dev-command.md +2 -1
- package/docs/zh/guide/basic/before-getting-started.md +15 -8
- package/docs/zh/guide/basic/command-preview.md +2 -2
- package/docs/zh/guide/basic/modify-output-product.md +17 -19
- package/docs/zh/guide/basic/test-your-project.mdx +1 -3
- package/docs/zh/guide/basic/use-micro-generator.md +5 -1
- package/docs/zh/guide/basic/using-storybook.mdx +9 -19
- package/docs/zh/guide/intro/getting-started.md +17 -11
- package/docs/zh/plugins/guide/getting-started.mdx +2 -2
- package/docs/zh/plugins/guide/plugin-object.mdx +5 -5
- package/modern.config.ts +11 -5
- package/package.json +4 -4
- package/doc_build/static/js/async/api_.js.map +0 -1
- package/doc_build/static/js/async/en_.js.map +0 -1
- package/doc_build/static/js/async/en_api_.js.map +0 -1
- package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js.map +0 -1
- package/doc_build/static/js/async/guide_basic_before-getting-started.js.map +0 -1
- package/doc_build/static/js/async/guide_basic_command-preview.js.map +0 -1
- package/doc_build/static/js/async/guide_basic_modify-output-product.js.map +0 -1
- package/doc_build/static/js/async/guide_basic_use-micro-generator.js.map +0 -1
- package/doc_build/static/js/async/guide_intro_welcome.js.map +0 -1
- package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js.map +0 -1
- package/doc_build/static/js/async/index.js.map +0 -1
- package/doc_build/static/js/async/plugins_official-list_overview.js.map +0 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import{jsx as t,jsxs as o,Fragment as c}from"react/jsx-runtime";import{a as d,C as u}from"./components.esm.03560353.js";import"react";import"react-dom";const r={annotations:d,Code:u},a={staticMediaQuery:"not screen, (max-width: 768px)",theme:{name:"nord",type:"dark",semanticHighlighting:!0,colors:{focusBorder:"#3b4252",foreground:"#d8dee9","activityBar.background":"#2e3440","activityBar.dropBackground":"#3b4252","activityBar.foreground":"#d8dee9","activityBar.activeBorder":"#88c0d0","activityBar.activeBackground":"#3b4252","activityBarBadge.background":"#88c0d0","activityBarBadge.foreground":"#2e3440","badge.foreground":"#2e3440","badge.background":"#88c0d0","button.background":"#88c0d0ee","button.foreground":"#2e3440","button.hoverBackground":"#88c0d0","button.secondaryBackground":"#434c5e","button.secondaryForeground":"#d8dee9","button.secondaryHoverBackground":"#4c566a","charts.red":"#bf616a","charts.blue":"#81a1c1","charts.yellow":"#ebcb8b","charts.orange":"#d08770","charts.green":"#a3be8c","charts.purple":"#b48ead","charts.foreground":"#d8dee9","charts.lines":"#88c0d0","debugConsole.infoForeground":"#88c0d0","debugConsole.warningForeground":"#ebcb8b","debugConsole.errorForeground":"#bf616a","debugConsole.sourceForeground":"#616e88","debugConsoleInputIcon.foreground":"#81a1c1","debugExceptionWidget.background":"#4c566a","debugExceptionWidget.border":"#2e3440","debugToolBar.background":"#3b4252",descriptionForeground:"#d8dee9e6","diffEditor.insertedTextBackground":"#81a1c133","diffEditor.removedTextBackground":"#bf616a4d","dropdown.background":"#3b4252","dropdown.border":"#3b4252","dropdown.foreground":"#d8dee9","editorActiveLineNumber.foreground":"#d8dee9cc","editorCursor.foreground":"#d8dee9","editorHint.border":"#ebcb8b00","editorHint.foreground":"#ebcb8b","editorIndentGuide.background":"#434c5eb3","editorIndentGuide.activeBackground":"#4c566a","editorInlayHint.background":"#434c5e","editorInlayHint.foreground":"#d8dee9","editorLineNumber.foreground":"#4c566a","editorLineNumber.activeForeground":"#d8dee9","editorWhitespace.foreground":"#4c566ab3","editorWidget.background":"#2e3440","editorWidget.border":"#3b4252","editor.background":"#2e3440","editor.foreground":"#d8dee9","editor.hoverHighlightBackground":"#3b4252","editor.findMatchBackground":"#88c0d066","editor.findMatchHighlightBackground":"#88c0d033","editor.findRangeHighlightBackground":"#88c0d033","editor.lineHighlightBackground":"#3b4252","editor.lineHighlightBorder":"#3b4252","editor.inactiveSelectionBackground":"#434c5ecc","editor.inlineValuesBackground":"#4c566a","editor.inlineValuesForeground":"#eceff4","editor.selectionBackground":"#434c5ecc","editor.selectionHighlightBackground":"#434c5ecc","editor.rangeHighlightBackground":"#434c5e52","editor.wordHighlightBackground":"#81a1c166","editor.wordHighlightStrongBackground":"#81a1c199","editor.stackFrameHighlightBackground":"#5e81ac","editor.focusedStackFrameHighlightBackground":"#5e81ac","editorError.foreground":"#bf616a","editorError.border":"#bf616a00","editorWarning.foreground":"#ebcb8b","editorWarning.border":"#ebcb8b00","editorBracketMatch.background":"#2e344000","editorBracketMatch.border":"#88c0d0","editorBracketHighlight.foreground1":"#8fbcbb","editorBracketHighlight.foreground2":"#88c0d0","editorBracketHighlight.foreground3":"#81a1c1","editorBracketHighlight.foreground4":"#5e81ac","editorBracketHighlight.foreground5":"#8fbcbb","editorBracketHighlight.foreground6":"#88c0d0","editorBracketHighlight.unexpectedBracket.foreground":"#bf616a","editorCodeLens.foreground":"#4c566a","editorGroup.background":"#2e3440","editorGroup.border":"#3b425201","editorGroup.dropBackground":"#3b425299","editorGroupHeader.border":"#3b425200","editorGroupHeader.noTabsBackground":"#2e3440","editorGroupHeader.tabsBackground":"#2e3440","editorGroupHeader.tabsBorder":"#3b425200","editorGutter.background":"#2e3440","editorGutter.modifiedBackground":"#ebcb8b","editorGutter.addedBackground":"#a3be8c","editorGutter.deletedBackground":"#bf616a","editorHoverWidget.background":"#3b4252","editorHoverWidget.border":"#3b4252","editorLink.activeForeground":"#88c0d0","editorMarkerNavigation.background":"#5e81acc0","editorMarkerNavigationError.background":"#bf616ac0","editorMarkerNavigationWarning.background":"#ebcb8bc0","editorOverviewRuler.border":"#3b4252","editorOverviewRuler.currentContentForeground":"#3b4252","editorOverviewRuler.incomingContentForeground":"#3b4252","editorOverviewRuler.findMatchForeground":"#88c0d066","editorOverviewRuler.rangeHighlightForeground":"#88c0d066","editorOverviewRuler.selectionHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightStrongForeground":"#88c0d066","editorOverviewRuler.modifiedForeground":"#ebcb8b","editorOverviewRuler.addedForeground":"#a3be8c","editorOverviewRuler.deletedForeground":"#bf616a","editorOverviewRuler.errorForeground":"#bf616a","editorOverviewRuler.warningForeground":"#ebcb8b","editorOverviewRuler.infoForeground":"#81a1c1","editorRuler.foreground":"#434c5e","editorSuggestWidget.background":"#2e3440","editorSuggestWidget.border":"#3b4252","editorSuggestWidget.foreground":"#d8dee9","editorSuggestWidget.focusHighlightForeground":"#88c0d0","editorSuggestWidget.highlightForeground":"#88c0d0","editorSuggestWidget.selectedBackground":"#434c5e","editorSuggestWidget.selectedForeground":"#d8dee9","extensionButton.prominentForeground":"#d8dee9","extensionButton.prominentBackground":"#434c5e","extensionButton.prominentHoverBackground":"#4c566a",errorForeground:"#bf616a","gitDecoration.modifiedResourceForeground":"#ebcb8b","gitDecoration.deletedResourceForeground":"#bf616a","gitDecoration.untrackedResourceForeground":"#a3be8c","gitDecoration.ignoredResourceForeground":"#d8dee966","gitDecoration.conflictingResourceForeground":"#5e81ac","gitDecoration.submoduleResourceForeground":"#8fbcbb","gitDecoration.stageDeletedResourceForeground":"#bf616a","gitDecoration.stageModifiedResourceForeground":"#ebcb8b","input.background":"#3b4252","input.foreground":"#d8dee9","input.placeholderForeground":"#d8dee999","input.border":"#3b4252","inputOption.activeBackground":"#5e81ac","inputOption.activeBorder":"#5e81ac","inputOption.activeForeground":"#eceff4","inputValidation.errorBackground":"#bf616a","inputValidation.errorBorder":"#bf616a","inputValidation.infoBackground":"#81a1c1","inputValidation.infoBorder":"#81a1c1","inputValidation.warningBackground":"#d08770","inputValidation.warningBorder":"#d08770","keybindingLabel.background":"#4c566a","keybindingLabel.border":"#4c566a","keybindingLabel.bottomBorder":"#4c566a","keybindingLabel.foreground":"#d8dee9","list.activeSelectionBackground":"#88c0d0","list.activeSelectionForeground":"#2e3440","list.inactiveSelectionBackground":"#434c5e","list.inactiveSelectionForeground":"#d8dee9","list.inactiveFocusBackground":"#434c5ecc","list.hoverForeground":"#eceff4","list.focusForeground":"#d8dee9","list.focusBackground":"#88c0d099","list.focusHighlightForeground":"#eceff4","list.hoverBackground":"#3b4252","list.dropBackground":"#88c0d099","list.highlightForeground":"#88c0d0","list.errorForeground":"#bf616a","list.warningForeground":"#ebcb8b","merge.currentHeaderBackground":"#81a1c166","merge.currentContentBackground":"#81a1c14d","merge.incomingHeaderBackground":"#8fbcbb66","merge.incomingContentBackground":"#8fbcbb4d","merge.border":"#3b425200","minimap.background":"#2e3440","minimap.errorHighlight":"#bf616acc","minimap.findMatchHighlight":"#88c0d0","minimap.selectionHighlight":"#88c0d0cc","minimap.warningHighlight":"#ebcb8bcc","minimapGutter.addedBackground":"#a3be8c","minimapGutter.deletedBackground":"#bf616a","minimapGutter.modifiedBackground":"#ebcb8b","minimapSlider.activeBackground":"#434c5eaa","minimapSlider.background":"#434c5e99","minimapSlider.hoverBackground":"#434c5eaa","notification.background":"#3b4252","notification.buttonBackground":"#434c5e","notification.buttonForeground":"#d8dee9","notification.buttonHoverBackground":"#4c566a","notification.errorBackground":"#bf616a","notification.errorForeground":"#2e3440","notification.foreground":"#d8dee9","notification.infoBackground":"#88c0d0","notification.infoForeground":"#2e3440","notification.warningBackground":"#ebcb8b","notification.warningForeground":"#2e3440","notificationCenter.border":"#3b425200","notificationCenterHeader.background":"#2e3440","notificationCenterHeader.foreground":"#88c0d0","notificationLink.foreground":"#88c0d0","notifications.background":"#3b4252","notifications.border":"#2e3440","notifications.foreground":"#d8dee9","notificationToast.border":"#3b425200","panel.background":"#2e3440","panel.border":"#3b4252","panelTitle.activeBorder":"#88c0d000","panelTitle.activeForeground":"#88c0d0","panelTitle.inactiveForeground":"#d8dee9","peekView.border":"#4c566a","peekViewEditor.background":"#2e3440","peekViewEditorGutter.background":"#2e3440","peekViewEditor.matchHighlightBackground":"#88c0d04d","peekViewResult.background":"#2e3440","peekViewResult.fileForeground":"#88c0d0","peekViewResult.lineForeground":"#d8dee966","peekViewResult.matchHighlightBackground":"#88c0d0cc","peekViewResult.selectionBackground":"#434c5e","peekViewResult.selectionForeground":"#d8dee9","peekViewTitle.background":"#3b4252","peekViewTitleDescription.foreground":"#d8dee9","peekViewTitleLabel.foreground":"#88c0d0","pickerGroup.border":"#3b4252","pickerGroup.foreground":"#88c0d0","progressBar.background":"#88c0d0","quickInputList.focusBackground":"#88c0d0","quickInputList.focusForeground":"#2e3440","sash.hoverBorder":"#88c0d0","scrollbar.shadow":"#00000066","scrollbarSlider.activeBackground":"#434c5eaa","scrollbarSlider.background":"#434c5e99","scrollbarSlider.hoverBackground":"#434c5eaa","selection.background":"#88c0d099","sideBar.background":"#2e3440","sideBar.foreground":"#d8dee9","sideBar.border":"#3b4252","sideBarSectionHeader.background":"#3b4252","sideBarSectionHeader.foreground":"#d8dee9","sideBarTitle.foreground":"#d8dee9","statusBar.background":"#3b4252","statusBar.debuggingBackground":"#5e81ac","statusBar.debuggingForeground":"#d8dee9","statusBar.noFolderForeground":"#d8dee9","statusBar.noFolderBackground":"#3b4252","statusBar.foreground":"#d8dee9","statusBarItem.activeBackground":"#4c566a","statusBarItem.hoverBackground":"#434c5e","statusBarItem.prominentBackground":"#3b4252","statusBarItem.prominentHoverBackground":"#434c5e","statusBarItem.errorBackground":"#3b4252","statusBarItem.errorForeground":"#bf616a","statusBarItem.warningBackground":"#ebcb8b","statusBarItem.warningForeground":"#2e3440","statusBar.border":"#3b425200","tab.activeBackground":"#3b4252","tab.activeForeground":"#d8dee9","tab.border":"#3b425200","tab.activeBorder":"#88c0d000","tab.unfocusedActiveBorder":"#88c0d000","tab.inactiveBackground":"#2e3440","tab.inactiveForeground":"#d8dee966","tab.unfocusedActiveForeground":"#d8dee999","tab.unfocusedInactiveForeground":"#d8dee966","tab.hoverBackground":"#3b4252cc","tab.unfocusedHoverBackground":"#3b4252b3","tab.hoverBorder":"#88c0d000","tab.unfocusedHoverBorder":"#88c0d000","tab.activeBorderTop":"#88c0d000","tab.unfocusedActiveBorderTop":"#88c0d000","tab.lastPinnedBorder":"#4c566a","terminal.background":"#2e3440","terminal.foreground":"#d8dee9","terminal.ansiBlack":"#3b4252","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#ebcb8b","terminal.ansiBlue":"#81a1c1","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0","terminal.ansiBrightBlack":"#4c566a","terminal.ansiBrightRed":"#bf616a","terminal.ansiBrightGreen":"#a3be8c","terminal.ansiBrightYellow":"#ebcb8b","terminal.ansiBrightBlue":"#81a1c1","terminal.ansiBrightMagenta":"#b48ead","terminal.ansiBrightCyan":"#8fbcbb","terminal.ansiBrightWhite":"#eceff4","terminal.tab.activeBorder":"#88c0d0","textBlockQuote.background":"#3b4252","textBlockQuote.border":"#81a1c1","textCodeBlock.background":"#4c566a","textLink.activeForeground":"#88c0d0","textLink.foreground":"#88c0d0","textPreformat.foreground":"#8fbcbb","textSeparator.foreground":"#eceff4","titleBar.activeBackground":"#2e3440","titleBar.activeForeground":"#d8dee9","titleBar.border":"#2e344000","titleBar.inactiveBackground":"#2e3440","titleBar.inactiveForeground":"#d8dee966","tree.indentGuidesStroke":"#616e88","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonBackground":"#434c5e","welcomePage.buttonHoverBackground":"#4c566a","widget.shadow":"#00000066"},tokenColors:[{settings:{foreground:"#d8dee9ff",background:"#2e3440ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{name:"Comment",scope:"comment",settings:{foreground:"#616E88"}},{name:"Constant Character",scope:"constant.character",settings:{foreground:"#EBCB8B"}},{name:"Constant Character Escape",scope:"constant.character.escape",settings:{foreground:"#EBCB8B"}},{name:"Constant Language",scope:"constant.language",settings:{foreground:"#81A1C1"}},{name:"Constant Numeric",scope:"constant.numeric",settings:{foreground:"#B48EAD"}},{name:"Constant Regexp",scope:"constant.regexp",settings:{foreground:"#EBCB8B"}},{name:"Entity Name Class/Type",scope:["entity.name.class","entity.name.type.class"],settings:{foreground:"#8FBCBB"}},{name:"Entity Name Function",scope:"entity.name.function",settings:{foreground:"#88C0D0"}},{name:"Entity Name Tag",scope:"entity.name.tag",settings:{foreground:"#81A1C1"}},{name:"Entity Other Attribute Name",scope:"entity.other.attribute-name",settings:{foreground:"#8FBCBB"}},{name:"Entity Other Inherited Class",scope:"entity.other.inherited-class",settings:{fontStyle:"bold",foreground:"#8FBCBB"}},{name:"Invalid Deprecated",scope:"invalid.deprecated",settings:{foreground:"#D8DEE9",background:"#EBCB8B"}},{name:"Invalid Illegal",scope:"invalid.illegal",settings:{foreground:"#D8DEE9",background:"#BF616A"}},{name:"Keyword",scope:"keyword",settings:{foreground:"#81A1C1"}},{name:"Keyword Operator",scope:"keyword.operator",settings:{foreground:"#81A1C1"}},{name:"Keyword Other New",scope:"keyword.other.new",settings:{foreground:"#81A1C1"}},{name:"Markup Bold",scope:"markup.bold",settings:{fontStyle:"bold"}},{name:"Markup Changed",scope:"markup.changed",settings:{foreground:"#EBCB8B"}},{name:"Markup Deleted",scope:"markup.deleted",settings:{foreground:"#BF616A"}},{name:"Markup Inserted",scope:"markup.inserted",settings:{foreground:"#A3BE8C"}},{name:"Meta Preprocessor",scope:"meta.preprocessor",settings:{foreground:"#5E81AC"}},{name:"Punctuation",scope:"punctuation",settings:{foreground:"#ECEFF4"}},{name:"Punctuation Definition Parameters",scope:["punctuation.definition.method-parameters","punctuation.definition.function-parameters","punctuation.definition.parameters"],settings:{foreground:"#ECEFF4"}},{name:"Punctuation Definition Tag",scope:"punctuation.definition.tag",settings:{foreground:"#81A1C1"}},{name:"Punctuation Definition Comment",scope:["punctuation.definition.comment","punctuation.end.definition.comment","punctuation.start.definition.comment"],settings:{foreground:"#616E88"}},{name:"Punctuation Section",scope:"punctuation.section",settings:{foreground:"#ECEFF4"}},{name:"Punctuation Section Embedded",scope:["punctuation.section.embedded.begin","punctuation.section.embedded.end"],settings:{foreground:"#81A1C1"}},{name:"Punctuation Terminator",scope:"punctuation.terminator",settings:{foreground:"#81A1C1"}},{name:"Punctuation Variable",scope:"punctuation.definition.variable",settings:{foreground:"#81A1C1"}},{name:"Storage",scope:"storage",settings:{foreground:"#81A1C1"}},{name:"String",scope:"string",settings:{foreground:"#A3BE8C"}},{name:"String Regexp",scope:"string.regexp",settings:{foreground:"#EBCB8B"}},{name:"Support Class",scope:"support.class",settings:{foreground:"#8FBCBB"}},{name:"Support Constant",scope:"support.constant",settings:{foreground:"#81A1C1"}},{name:"Support Function",scope:"support.function",settings:{foreground:"#88C0D0"}},{name:"Support Function Construct",scope:"support.function.construct",settings:{foreground:"#81A1C1"}},{name:"Support Type",scope:"support.type",settings:{foreground:"#8FBCBB"}},{name:"Support Type Exception",scope:"support.type.exception",settings:{foreground:"#8FBCBB"}},{name:"Token Debug",scope:"token.debug-token",settings:{foreground:"#b48ead"}},{name:"Token Error",scope:"token.error-token",settings:{foreground:"#bf616a"}},{name:"Token Info",scope:"token.info-token",settings:{foreground:"#88c0d0"}},{name:"Token Warning",scope:"token.warn-token",settings:{foreground:"#ebcb8b"}},{name:"Variable",scope:"variable.other",settings:{foreground:"#D8DEE9"}},{name:"Variable Language",scope:"variable.language",settings:{foreground:"#81A1C1"}},{name:"Variable Parameter",scope:"variable.parameter",settings:{foreground:"#D8DEE9"}},{name:"[C/CPP] Punctuation Separator Pointer-Access",scope:"punctuation.separator.pointer-access.c",settings:{foreground:"#81A1C1"}},{name:"[C/CPP] Meta Preprocessor Include",scope:["source.c meta.preprocessor.include","source.c string.quoted.other.lt-gt.include"],settings:{foreground:"#8FBCBB"}},{name:"[C/CPP] Conditional Directive",scope:["source.cpp keyword.control.directive.conditional","source.cpp punctuation.definition.directive","source.c keyword.control.directive.conditional","source.c punctuation.definition.directive"],settings:{foreground:"#5E81AC",fontStyle:"bold"}},{name:"[CSS] Constant Other Color RGB Value",scope:"source.css constant.other.color.rgb-value",settings:{foreground:"#B48EAD"}},{name:"[CSS](Function) Meta Property-Value",scope:"source.css meta.property-value",settings:{foreground:"#88C0D0"}},{name:"[CSS] Media Queries",scope:["source.css keyword.control.at-rule.media","source.css keyword.control.at-rule.media punctuation.definition.keyword"],settings:{foreground:"#D08770"}},{name:"[CSS] Punctuation Definition Keyword",scope:"source.css punctuation.definition.keyword",settings:{foreground:"#81A1C1"}},{name:"[CSS] Support Type Property Name",scope:"source.css support.type.property-name",settings:{foreground:"#D8DEE9"}},{name:"[diff] Meta Range Context",scope:"source.diff meta.diff.range.context",settings:{foreground:"#8FBCBB"}},{name:"[diff] Meta Header From-File",scope:"source.diff meta.diff.header.from-file",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition From-File",scope:"source.diff punctuation.definition.from-file",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition Range",scope:"source.diff punctuation.definition.range",settings:{foreground:"#8FBCBB"}},{name:"[diff] Punctuation Definition Separator",scope:"source.diff punctuation.definition.separator",settings:{foreground:"#81A1C1"}},{name:"[Elixir](JakeBecker.elixir-ls) module names",scope:"entity.name.type.module.elixir",settings:{foreground:"#8FBCBB"}},{name:"[Elixir](JakeBecker.elixir-ls) module attributes",scope:"variable.other.readwrite.module.elixir",settings:{foreground:"#D8DEE9",fontStyle:"bold"}},{name:"[Elixir](JakeBecker.elixir-ls) atoms",scope:"constant.other.symbol.elixir",settings:{foreground:"#D8DEE9",fontStyle:"bold"}},{name:"[Elixir](JakeBecker.elixir-ls) modules",scope:"variable.other.constant.elixir",settings:{foreground:"#8FBCBB"}},{name:"[Go] String Format Placeholder",scope:"source.go constant.other.placeholder.go",settings:{foreground:"#EBCB8B"}},{name:"[Java](JavaDoc) Comment Block Documentation HTML Entities",scope:"source.java comment.block.documentation.javadoc punctuation.definition.entity.html",settings:{foreground:"#81A1C1"}},{name:"[Java](JavaDoc) Constant Other",scope:"source.java constant.other",settings:{foreground:"#D8DEE9"}},{name:"[Java](JavaDoc) Keyword Other Documentation",scope:"source.java keyword.other.documentation",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation Author",scope:"source.java keyword.other.documentation.author.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation Directive/Custom",scope:["source.java keyword.other.documentation.directive","source.java keyword.other.documentation.custom"],settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Keyword Other Documentation See",scope:"source.java keyword.other.documentation.see.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java] Meta Method-Call",scope:"source.java meta.method-call meta.method",settings:{foreground:"#88C0D0"}},{name:"[Java](JavaDoc) Meta Tag Template Link",scope:["source.java meta.tag.template.link.javadoc","source.java string.other.link.title.javadoc"],settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Meta Tag Template Value",scope:"source.java meta.tag.template.value.javadoc",settings:{foreground:"#88C0D0"}},{name:"[Java](JavaDoc) Punctuation Definition Keyword",scope:"source.java punctuation.definition.keyword.javadoc",settings:{foreground:"#8FBCBB"}},{name:"[Java](JavaDoc) Punctuation Definition Tag",scope:["source.java punctuation.definition.tag.begin.javadoc","source.java punctuation.definition.tag.end.javadoc"],settings:{foreground:"#616E88"}},{name:"[Java] Storage Modifier Import",scope:"source.java storage.modifier.import",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Modifier Package",scope:"source.java storage.modifier.package",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type",scope:"source.java storage.type",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type Annotation",scope:"source.java storage.type.annotation",settings:{foreground:"#D08770"}},{name:"[Java] Storage Type Generic",scope:"source.java storage.type.generic",settings:{foreground:"#8FBCBB"}},{name:"[Java] Storage Type Primitive",scope:"source.java storage.type.primitive",settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Decorator",scope:["source.js punctuation.decorator","source.js meta.decorator variable.other.readwrite","source.js meta.decorator entity.name.function"],settings:{foreground:"#D08770"}},{name:"[JavaScript] Meta Object-Literal Key",scope:"source.js meta.object-literal.key",settings:{foreground:"#88C0D0"}},{name:"[JavaScript](JSDoc) Storage Type Class",scope:"source.js storage.type.class.jsdoc",settings:{foreground:"#8FBCBB"}},{name:"[JavaScript] String Template Literals Punctuation",scope:["source.js string.quoted.template punctuation.quasi.element.begin","source.js string.quoted.template punctuation.quasi.element.end","source.js string.template punctuation.definition.template-expression"],settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Interpolated String Template Punctuation Functions",scope:"source.js string.quoted.template meta.method-call.with-arguments",settings:{foreground:"#ECEFF4"}},{name:"[JavaScript] String Template Literal Variable",scope:["source.js string.template meta.template.expression support.variable.property","source.js string.template meta.template.expression variable.other.object"],settings:{foreground:"#D8DEE9"}},{name:"[JavaScript] Support Type Primitive",scope:"source.js support.type.primitive",settings:{foreground:"#81A1C1"}},{name:"[JavaScript] Variable Other Object",scope:"source.js variable.other.object",settings:{foreground:"#D8DEE9"}},{name:"[JavaScript] Variable Other Read-Write Alias",scope:"source.js variable.other.readwrite.alias",settings:{foreground:"#8FBCBB"}},{name:"[JavaScript] Parentheses in Template Strings",scope:["source.js meta.embedded.line meta.brace.square","source.js meta.embedded.line meta.brace.round","source.js string.quoted.template meta.brace.square","source.js string.quoted.template meta.brace.round"],settings:{foreground:"#ECEFF4"}},{name:"[HTML] Constant Character Entity",scope:"text.html.basic constant.character.entity.html",settings:{foreground:"#EBCB8B"}},{name:"[HTML] Constant Other Inline-Data",scope:"text.html.basic constant.other.inline-data",settings:{foreground:"#D08770",fontStyle:"italic"}},{name:"[HTML] Meta Tag SGML Doctype",scope:"text.html.basic meta.tag.sgml.doctype",settings:{foreground:"#5E81AC"}},{name:"[HTML] Punctuation Definition Entity",scope:"text.html.basic punctuation.definition.entity",settings:{foreground:"#81A1C1"}},{name:"[INI] Entity Name Section Group-Title",scope:"source.properties entity.name.section.group-title.ini",settings:{foreground:"#88C0D0"}},{name:"[INI] Punctuation Separator Key-Value",scope:"source.properties punctuation.separator.key-value.ini",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Fenced Code Block",scope:["text.html.markdown markup.fenced_code.block","text.html.markdown markup.fenced_code.block punctuation.definition"],settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Heading",scope:"markup.heading",settings:{foreground:"#88C0D0"}},{name:"[Markdown] Markup Inline",scope:["text.html.markdown markup.inline.raw","text.html.markdown markup.inline.raw punctuation.definition.raw"],settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Italic",scope:"text.html.markdown markup.italic",settings:{fontStyle:"italic"}},{name:"[Markdown] Markup Link",scope:"text.html.markdown markup.underline.link",settings:{fontStyle:"underline"}},{name:"[Markdown] Markup List Numbered/Unnumbered",scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Quote Punctuation Definition",scope:"text.html.markdown beginning.punctuation.definition.quote",settings:{foreground:"#8FBCBB"}},{name:"[Markdown] Markup Quote Punctuation Definition",scope:"text.html.markdown markup.quote",settings:{foreground:"#616E88"}},{name:"[Markdown] Markup Math Constant",scope:"text.html.markdown constant.character.math.tex",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Markup Math Definition Marker",scope:["text.html.markdown punctuation.definition.math.begin","text.html.markdown punctuation.definition.math.end"],settings:{foreground:"#5E81AC"}},{name:"[Markdown] Markup Math Function Definition Marker",scope:"text.html.markdown punctuation.definition.function.math.tex",settings:{foreground:"#88C0D0"}},{name:"[Markdown] Markup Math Operator",scope:"text.html.markdown punctuation.math.operator.latex",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Punctuation Definition Heading",scope:"text.html.markdown punctuation.definition.heading",settings:{foreground:"#81A1C1"}},{name:"[Markdown] Punctuation Definition Constant/String",scope:["text.html.markdown punctuation.definition.constant","text.html.markdown punctuation.definition.string"],settings:{foreground:"#81A1C1"}},{name:"[Markdown] String Other Link Description/Title",scope:["text.html.markdown constant.other.reference.link","text.html.markdown string.other.link.description","text.html.markdown string.other.link.title"],settings:{foreground:"#88C0D0"}},{name:"[Perl] Perl Sigils",scope:"source.perl punctuation.definition.variable",settings:{foreground:"#D8DEE9"}},{name:"[PHP] Meta Function-Call Object",scope:["source.php meta.function-call","source.php meta.function-call.object"],settings:{foreground:"#88C0D0"}},{name:"[Python] Decorator",scope:["source.python entity.name.function.decorator","source.python meta.function.decorator support.type"],settings:{foreground:"#D08770"}},{name:"[Python] Function Call",scope:"source.python meta.function-call.generic",settings:{foreground:"#88C0D0"}},{name:"[Python] Support Type",scope:"source.python support.type",settings:{foreground:"#88C0D0"}},{name:"[Python] Function Parameter",scope:["source.python variable.parameter.function.language"],settings:{foreground:"#D8DEE9"}},{name:"[Python] Function Parameter Special",scope:["source.python meta.function.parameters variable.parameter.function.language.special.self"],settings:{foreground:"#81A1C1"}},{name:"[Rust] Entity types",scope:"source.rust entity.name.type",settings:{foreground:"#8FBCBB"}},{name:"[Rust] Macro",scope:"source.rust meta.macro entity.name.function",settings:{fontStyle:"bold",foreground:"#88C0D0"}},{name:"[Rust] Attributes",scope:["source.rust meta.attribute","source.rust meta.attribute punctuation","source.rust meta.attribute keyword.operator"],settings:{foreground:"#5E81AC"}},{name:"[Rust] Traits",scope:"source.rust entity.name.type.trait",settings:{fontStyle:"bold"}},{name:"[Rust] Interpolation Bracket Curly",scope:"source.rust punctuation.definition.interpolation",settings:{foreground:"#EBCB8B"}},{name:"[SCSS] Punctuation Definition Interpolation Bracket Curly",scope:["source.css.scss punctuation.definition.interpolation.begin.bracket.curly","source.css.scss punctuation.definition.interpolation.end.bracket.curly"],settings:{foreground:"#81A1C1"}},{name:"[SCSS] Variable Interpolation",scope:"source.css.scss variable.interpolation",settings:{foreground:"#D8DEE9",fontStyle:"italic"}},{name:"[TypeScript] Decorators",scope:["source.ts punctuation.decorator","source.ts meta.decorator variable.other.readwrite","source.ts meta.decorator entity.name.function","source.tsx punctuation.decorator","source.tsx meta.decorator variable.other.readwrite","source.tsx meta.decorator entity.name.function"],settings:{foreground:"#D08770"}},{name:"[TypeScript] Object-literal keys",scope:["source.ts meta.object-literal.key","source.tsx meta.object-literal.key"],settings:{foreground:"#D8DEE9"}},{name:"[TypeScript] Object-literal functions",scope:["source.ts meta.object-literal.key entity.name.function","source.tsx meta.object-literal.key entity.name.function"],settings:{foreground:"#88C0D0"}},{name:"[TypeScript] Type/Class",scope:["source.ts support.class","source.ts support.type","source.ts entity.name.type","source.ts entity.name.class","source.tsx support.class","source.tsx support.type","source.tsx entity.name.type","source.tsx entity.name.class"],settings:{foreground:"#8FBCBB"}},{name:"[TypeScript] Static Class Support",scope:["source.ts support.constant.math","source.ts support.constant.dom","source.ts support.constant.json","source.tsx support.constant.math","source.tsx support.constant.dom","source.tsx support.constant.json"],settings:{foreground:"#8FBCBB"}},{name:"[TypeScript] Variables",scope:["source.ts support.variable","source.tsx support.variable"],settings:{foreground:"#D8DEE9"}},{name:"[TypeScript] Parentheses in Template Strings",scope:["source.ts meta.embedded.line meta.brace.square","source.ts meta.embedded.line meta.brace.round","source.tsx meta.embedded.line meta.brace.square","source.tsx meta.embedded.line meta.brace.round"],settings:{foreground:"#ECEFF4"}},{name:"[XML] Entity Name Tag Namespace",scope:"text.xml entity.name.tag.namespace",settings:{foreground:"#8FBCBB"}},{name:"[XML] Keyword Other Doctype",scope:"text.xml keyword.other.doctype",settings:{foreground:"#5E81AC"}},{name:"[XML] Meta Tag Preprocessor",scope:"text.xml meta.tag.preprocessor entity.name.tag",settings:{foreground:"#5E81AC"}},{name:"[XML] Entity Name Tag Namespace",scope:["text.xml string.unquoted.cdata","text.xml string.unquoted.cdata punctuation.definition.string"],settings:{foreground:"#D08770",fontStyle:"italic"}},{name:"[YAML] Entity Name Tag",scope:"source.yaml entity.name.tag",settings:{foreground:"#8FBCBB"}}]},autoImport:!0,showCopyButton:!0,enableSpa:!0,skipLanguages:[],filepath:"/Users/targeral/github/targeral-modern-js/website/module-tools/docs/en/guide/basic/publish-your-project.md"},h=void 0,f=[{id:"tracking-changes",text:"Tracking changes",depth:2},{id:"version-update",text:"Version update",depth:2},{id:"publish",text:"Publish",depth:2},{id:"pre-releases",text:"Pre-releases",depth:2}],b="Versioning and Publishing";function i(n){const e=Object.assign({h1:"h1",a:"a",p:"p",ul:"ul",li:"li",h2:"h2",strong:"strong",code:"code",blockquote:"blockquote"},n.components);return r||s("CH",!1),r.Code||s("CH.Code",!0),o(c,{children:[o(e.h1,{id:"versioning-and-publishing",children:[t(e.a,{className:"header-anchor","aria-hidden":"true",href:"#versioning-and-publishing",children:"#"}),"Versioning and Publishing"]}),`
|
|
2
|
+
`,t(e.p,{children:"An npm-type module project release process consists of two phases."}),`
|
|
3
|
+
`,o(e.ul,{children:[`
|
|
4
|
+
`,t(e.li,{children:"The first phase is during development, where the developer needs to provide a change file to record changes that need to be released."}),`
|
|
5
|
+
`,o(e.li,{children:["The second phase is during release, where Module Tools can collect all the change files to update the version, update the release log, and release new packages to the ",t(e.a,{href:"https://www.npmjs.com/",target:"_blank",rel:"nofollow",children:"npm Registry"}),"."]}),`
|
|
6
|
+
`]}),`
|
|
7
|
+
`,o(e.h2,{id:"tracking-changes",children:[t(e.a,{className:"header-anchor","aria-hidden":"true",href:"#tracking-changes",children:"#"}),"Tracking changes"]}),`
|
|
8
|
+
`,o(e.p,{children:[t(e.strong,{children:"Changes need to be logged when they happen to the project"}),". Changes that occur in a project are typically."]}),`
|
|
9
|
+
`,o(e.ul,{children:[`
|
|
10
|
+
`,t(e.li,{children:"New features"}),`
|
|
11
|
+
`,t(e.li,{children:"Fixes to issues"}),`
|
|
12
|
+
`,t(e.li,{children:"Configuration file changes"}),`
|
|
13
|
+
`,t(e.li,{children:"..."}),`
|
|
14
|
+
`]}),`
|
|
15
|
+
`,t(e.p,{children:"Once these changes have been made, the current changes need to be documented with the following command."}),`
|
|
16
|
+
`,o(e.ul,{children:[`
|
|
17
|
+
`,t(e.li,{children:t(e.a,{href:"/zh/guide/command-preview.html#modern-change",children:t(e.code,{children:"modern change"})})}),`
|
|
18
|
+
`]}),`
|
|
19
|
+
`,o(e.p,{children:["Executing the ",t(e.code,{children:"modern change"})," command asks the developer several questions and generates a change log based on the developer's answers. The changelog file contains the type of change and its description, and is committed to the git repository."]}),`
|
|
20
|
+
`,t(r.Code,{codeConfig:a,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"$ npx modern change",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} What kind of change is this ",props:{style:{color:"#D8DEE9FF"}}},{content:"for",props:{style:{color:"#81A1C1"}}},{content:" module-example",props:{style:{color:"#D8DEE9FF"}}},{content:"?",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"(",props:{style:{color:"#ECEFF4"}}},{content:"current version is 0.1.0",props:{style:{color:"#D8DEE9FF"}}},{content:")",props:{style:{color:"#ECEFF4"}}},{content:" - patch",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} Please enter a summary ",props:{style:{color:"#D8DEE9FF"}}},{content:"for",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"this change (this will be",props:{style:{color:"#D8DEE9"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"in",props:{style:{color:"#81A1C1"}}},{content:" the changelogs). Submit empty line to open external editor",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} Summary - publish ",props:{style:{color:"#D8DEE9FF"}}},{content:"test",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"\u{1F98B} === Releasing the following packages ===",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} ",props:{style:{color:"#D8DEE9FF"}}},{content:"[",props:{style:{color:"#ECEFF4"}}},{content:"Patch",props:{style:{color:"#D8DEE9FF"}}},{content:"]",props:{style:{color:"#ECEFF4"}}}]},{tokens:[{content:"\u{1F98B} module",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} Is this your desired changeset",props:{style:{color:"#D8DEE9FF"}}},{content:"?",props:{style:{color:"#81A1C1"}}},{content:" ",props:{style:{color:"#D8DEE9FF"}}},{content:"(",props:{style:{color:"#ECEFF4"}}},{content:"Y/n",props:{style:{color:"#D8DEE9FF"}}},{content:")",props:{style:{color:"#ECEFF4"}}},{content:" - ",props:{style:{color:"#D8DEE9FF"}}},{content:"true",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"\u{1F98B} Changeset added",props:{style:{color:"#D8DEE9FF"}}},{content:"!",props:{style:{color:"#81A1C1"}}},{content:" - you can now commit it",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B}",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} If you want to modify or expand on the changeset summary, you can find it here",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} info /xxxxxx/module/.changeset/brave-dryers-agree.md",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"bash"},annotations:[]}]}),`
|
|
21
|
+
`,o(e.p,{children:["When executed successfully, the resulting Markdown file containing the change log is saved in the project's ",t(e.code,{children:".changeset"})," directory. The contents will look like the following."]}),`
|
|
22
|
+
`,t(r.Code,{codeConfig:a,northPanel:{tabs:[".changeset/brave-dryers-agree.md"],active:".changeset/brave-dryers-agree.md",heightRatio:1},files:[{name:".changeset/brave-dryers-agree.md",focus:"",code:{lines:[{tokens:[{content:"---",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:'"',props:{style:{color:"#81A1C1"}}},{content:"``module-example'': patch",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"---",props:{style:{color:"#A3BE8C"}}}]},{tokens:[]},{tokens:[{content:"publish test",props:{style:{color:"#A3BE8C"}}}]}],lang:"markdown"},annotations:[]}]}),`
|
|
23
|
+
`,o(e.h2,{id:"version-update",children:[t(e.a,{className:"header-anchor","aria-hidden":"true",href:"#version-update",children:"#"}),"Version update"]}),`
|
|
24
|
+
`,t(e.p,{children:"When the project version needs to be updated, execute the following command."}),`
|
|
25
|
+
`,o(e.ul,{children:[`
|
|
26
|
+
`,t(e.li,{children:t(e.a,{href:"/zh/guide/command-preview.html#modern-bump",children:t(e.code,{children:"modern bump"})})}),`
|
|
27
|
+
`]}),`
|
|
28
|
+
`,o(e.p,{children:["Executing ",t(e.code,{children:"modern bump"})," will modify the version number in ",t(e.code,{children:"package.json"})," based on the contents of the Markdown file in the ",t(e.code,{children:".changeset/"})," directory where the changes were recorded, and generate the ",t(e.code,{children:"CHANGELOG.md"})," file. ",t(e.strong,{children:'These Markdown files are also deleted when the version update is complete, so they are "consumed "'}),"."]}),`
|
|
29
|
+
`,t(r.Code,{codeConfig:a,northPanel:{tabs:["CHANGELOG.md"],active:"CHANGELOG.md",heightRatio:1},files:[{name:"CHANGELOG.md",focus:"",code:{lines:[{tokens:[{content:"#",props:{style:{color:"#81A1C1"}}},{content:" module",props:{style:{color:"#88C0D0"}}}]},{tokens:[]},{tokens:[{content:"##",props:{style:{color:"#81A1C1"}}},{content:" 0.1.1",props:{style:{color:"#88C0D0"}}}]},{tokens:[{content:"###",props:{style:{color:"#81A1C1"}}},{content:" Patch Changes",props:{style:{color:"#88C0D0"}}}]},{tokens:[]},{tokens:[{content:"-",props:{style:{color:"#ECEFF4"}}},{content:" publish test",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"markdown"},annotations:[]}]}),`
|
|
30
|
+
`,o(e.h2,{id:"publish",children:[t(e.a,{className:"header-anchor","aria-hidden":"true",href:"#publish",children:"#"}),"Publish"]}),`
|
|
31
|
+
`,t(e.p,{children:"To publish a project, you can execute the following command."}),`
|
|
32
|
+
`,o(e.ul,{children:[`
|
|
33
|
+
`,t(e.li,{children:t(e.a,{href:"/zh/guide/command-preview.html#modern-release",children:t(e.code,{children:"modern publish"})})}),`
|
|
34
|
+
`]}),`
|
|
35
|
+
`,o(e.p,{children:["The ",t(e.code,{children:"modern release"})," command publishes the project to the npm Registry."]}),`
|
|
36
|
+
`,o(e.p,{children:["The release is the ",t(e.code,{children:"latest"})," version, which is also the official version. If you want to change the ",t(e.code,{children:"dist-tag"}),", you can specify it with the ",t(e.code,{children:"modern release --tag"})," command. For example."]}),`
|
|
37
|
+
`,t(r.Code,{codeConfig:a,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"modern release --tag beta",props:{style:{color:"#D8DEE9FF"}}}]}],lang:"bash"},annotations:[]}]}),`
|
|
38
|
+
`,o(e.p,{children:["However, if you want to change the version number of the current project to a pre-release as well, you need to use the ",t(e.code,{children:"modern pre"})," command."]}),`
|
|
39
|
+
`,o(e.blockquote,{children:[`
|
|
40
|
+
`,o(e.p,{children:[t(e.code,{children:"dist-tag"})," can be understood as: tagging the current release. Generally speaking, the ",t(e.code,{children:"dist-tag"})," for the default release is ",t(e.code,{children:"latest"}),", so you can consider ",t(e.code,{children:"latest"})," as the ",t(e.code,{children:"dist-tag"})," for the official release."]}),`
|
|
41
|
+
`]}),`
|
|
42
|
+
`,o(e.h2,{id:"pre-releases",children:[t(e.a,{className:"header-anchor","aria-hidden":"true",href:"#pre-releases",children:"#"}),"Pre-releases"]}),`
|
|
43
|
+
`,t(e.p,{children:"When a pre-release is needed before the official release, the following command is executed."}),`
|
|
44
|
+
`,o(e.ul,{children:[`
|
|
45
|
+
`,t(e.li,{children:t(e.a,{href:"/zh/guide/command-preview.html#modern-pre",children:t(e.code,{children:"modern pre"})})}),`
|
|
46
|
+
`]}),`
|
|
47
|
+
`,o(e.p,{children:["First ",t(e.code,{children:"modern pre enter <tag>"})," to enter pre-release mode, ",t(e.code,{children:"<tag>"})," can be the same as the ",t(e.code,{children:"tag"})," specified with the ",t(e.code,{children:"modern release --tag"})," command when releasing the project."]}),`
|
|
48
|
+
`,t(r.Code,{codeConfig:a,northPanel:{tabs:[""],active:"",heightRatio:1},files:[{name:"",focus:"",code:{lines:[{tokens:[{content:"$ npx modern pre enter next",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} success Entered pre mode with tag next",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u{1F98B} info Run ",props:{style:{color:"#D8DEE9FF"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:"changeset version",props:{style:{color:"#A3BE8C"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:" to version packages with prerelease versions",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"\u2728 Done ",props:{style:{color:"#D8DEE9FF"}}},{content:"in",props:{style:{color:"#81A1C1"}}},{content:" 5.30s.",props:{style:{color:"#D8DEE9FF"}}}]},{tokens:[{content:"Done ",props:{style:{color:"#D8DEE9FF"}}},{content:"in",props:{style:{color:"#81A1C1"}}},{content:" 5.30s. ",props:{style:{color:"#D8DEE9FF"}}},{content:"```",props:{style:{color:"#ECEFF4"}}}]},{tokens:[]},{tokens:[{content:"Then you can update the specific version number with the ",props:{style:{color:"#A3BE8C"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:"modern bump",props:{style:{color:"#D8DEE9FF"}}},{content:"`",props:{style:{color:"#ECEFF4"}}},{content:" command, ",props:{style:{color:"#A3BE8C"}}},{content:"**",props:{style:{color:"#81A1C1"}}},{content:"which doesn",props:{style:{color:"#A3BE8C"}}},{content:"'",props:{style:{color:"#ECEFF4"}}},{content:'t actually "consume" the Markdown file that records the changes**: ``` bash',props:{style:{color:"#A3BE8C"}}}]},{tokens:[]},{tokens:[{content:"``` bash",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"$ npx modern bump",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"\u{1F98B} warn ===============================IMPORTANT!===============================",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"\u{1F98B} warn You are in prerelease mode",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"\u{1F98B} warn If you meant to do a normal release you should revert these changes and run `changeset pre exit`",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"\u{1F98B} warn You can then run `changeset version` again to do a normal release",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"\u{1F98B} warn ----------------------------------------------------------------------",props:{style:{color:"#A3BE8C"}}}]},{tokens:[{content:"\u{1F98B} All files have been updated. review them and commit at your leisure",props:{style:{color:"#A3BE8C"}}}]}],lang:"bash"},annotations:[]}]}),`
|
|
49
|
+
`,o(e.p,{children:["Then you can see that the updated version number in ",t(e.code,{children:"package.json"})," will look like this: ",t(e.code,{children:"0.1.2-next.0"}),"."]}),`
|
|
50
|
+
`,o(e.p,{children:["Finally, ",o(e.strong,{children:["if you don't need to do a pre-release anymore, be sure to run the ",t(e.code,{children:"modern pre exit"})," command"]})," to exit the pre-release state and to release the official version when you run the ",t(e.code,{children:"modern bump"})," command again."]}),`
|
|
51
|
+
`,o(e.p,{children:["Translated with ",t(e.a,{href:"http://www.DeepL.com/Translator",target:"_blank",rel:"nofollow",children:"www.DeepL.com/Translator"})," (free version)"]})]})}function k(n={}){const{wrapper:e}=n.components||{};return e?t(e,Object.assign({},n,{children:t(i,n)})):i(n)}function s(n,e){throw new Error("Expected "+(e?"component":"object")+" `"+n+"` to be defined: you likely forgot to import, pass, or provide it.")}const y="2022/12/15 18:01:48",B=`# Versioning and Publishing
|
|
52
|
+
|
|
53
|
+
An npm-type module project release process consists of two phases.
|
|
54
|
+
|
|
55
|
+
* The first phase is during development, where the developer needs to provide a change file to record changes that need to be released.
|
|
56
|
+
* The second phase is during release, where Module Tools can collect all the change files to update the version, update the release log, and release new packages to the [npm Registry](https://www.npmjs.com/).
|
|
57
|
+
|
|
58
|
+
## Tracking changes
|
|
59
|
+
|
|
60
|
+
**Changes need to be logged when they happen to the project**. Changes that occur in a project are typically.
|
|
61
|
+
|
|
62
|
+
* New features
|
|
63
|
+
* Fixes to issues
|
|
64
|
+
* Configuration file changes
|
|
65
|
+
* ...
|
|
66
|
+
|
|
67
|
+
Once these changes have been made, the current changes need to be documented with the following command.
|
|
68
|
+
|
|
69
|
+
* [\`modern change\`](/zh/guide/command-preview#modern-change)
|
|
70
|
+
|
|
71
|
+
Executing the \`modern change\` command asks the developer several questions and generates a change log based on the developer's answers. The changelog file contains the type of change and its description, and is committed to the git repository.
|
|
72
|
+
|
|
73
|
+
\`\`\` bash
|
|
74
|
+
$ npx modern change
|
|
75
|
+
\u{1F98B} What kind of change is this for module-example? (current version is 0.1.0) - patch
|
|
76
|
+
\u{1F98B} Please enter a summary for this change (this will be in the changelogs). Submit empty line to open external editor
|
|
77
|
+
\u{1F98B} Summary - publish test
|
|
78
|
+
\u{1F98B} === Releasing the following packages ===
|
|
79
|
+
\u{1F98B} [Patch]
|
|
80
|
+
\u{1F98B} module
|
|
81
|
+
\u{1F98B} Is this your desired changeset? (Y/n) - true
|
|
82
|
+
\u{1F98B} Changeset added! - you can now commit it
|
|
83
|
+
\u{1F98B}
|
|
84
|
+
\u{1F98B} If you want to modify or expand on the changeset summary, you can find it here
|
|
85
|
+
\u{1F98B} info /xxxxxx/module/.changeset/brave-dryers-agree.md
|
|
86
|
+
\`\`\`
|
|
87
|
+
|
|
88
|
+
When executed successfully, the resulting Markdown file containing the change log is saved in the project's \`.changeset\` directory. The contents will look like the following.
|
|
89
|
+
|
|
90
|
+
\`\`\` markdown .changeset/brave-dryers-agree.md
|
|
91
|
+
---
|
|
92
|
+
"\`\`module-example'': patch
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
publish test
|
|
96
|
+
\`\`\`
|
|
97
|
+
|
|
98
|
+
## Version update
|
|
99
|
+
|
|
100
|
+
When the project version needs to be updated, execute the following command.
|
|
101
|
+
|
|
102
|
+
* [\`modern bump\`](/zh/guide/command-preview#modern-bump)
|
|
103
|
+
|
|
104
|
+
Executing \`modern bump\` will modify the version number in \`package.json\` based on the contents of the Markdown file in the \`.changeset/\` directory where the changes were recorded, and generate the \`CHANGELOG.md\` file. **These Markdown files are also deleted when the version update is complete, so they are "consumed "**.
|
|
105
|
+
|
|
106
|
+
\`\`\` markdown CHANGELOG.md
|
|
107
|
+
# module
|
|
108
|
+
|
|
109
|
+
## 0.1.1
|
|
110
|
+
### Patch Changes
|
|
111
|
+
|
|
112
|
+
- publish test
|
|
113
|
+
\`\`\`
|
|
114
|
+
|
|
115
|
+
## Publish
|
|
116
|
+
|
|
117
|
+
To publish a project, you can execute the following command.
|
|
118
|
+
|
|
119
|
+
* [\`modern publish\`](/zh/guide/command-preview#modern-release)
|
|
120
|
+
|
|
121
|
+
The \`modern release\` command publishes the project to the npm Registry.
|
|
122
|
+
|
|
123
|
+
The release is the \`latest\` version, which is also the official version. If you want to change the \`dist-tag\`, you can specify it with the \`modern release --tag\` command. For example.
|
|
124
|
+
|
|
125
|
+
\`\`\` bash
|
|
126
|
+
modern release --tag beta
|
|
127
|
+
\`\`\`
|
|
128
|
+
|
|
129
|
+
However, if you want to change the version number of the current project to a pre-release as well, you need to use the \`modern pre\` command.
|
|
130
|
+
|
|
131
|
+
> \`dist-tag\` can be understood as: tagging the current release. Generally speaking, the \`dist-tag\` for the default release is \`latest\`, so you can consider \`latest\` as the \`dist-tag\` for the official release.
|
|
132
|
+
|
|
133
|
+
## Pre-releases
|
|
134
|
+
|
|
135
|
+
When a pre-release is needed before the official release, the following command is executed.
|
|
136
|
+
|
|
137
|
+
* [\`modern pre\`](/zh/guide/command-preview#modern-pre)
|
|
138
|
+
|
|
139
|
+
First \`modern pre enter <tag>\` to enter pre-release mode, \`<tag>\` can be the same as the \`tag\` specified with the \`modern release --tag\` command when releasing the project.
|
|
140
|
+
|
|
141
|
+
\`\`\` bash
|
|
142
|
+
$ npx modern pre enter next
|
|
143
|
+
\u{1F98B} success Entered pre mode with tag next
|
|
144
|
+
\u{1F98B} info Run \`changeset version\` to version packages with prerelease versions
|
|
145
|
+
\u2728 Done in 5.30s.
|
|
146
|
+
Done in 5.30s. \`\`\`
|
|
147
|
+
|
|
148
|
+
Then you can update the specific version number with the \`modern bump\` command, **which doesn't actually "consume" the Markdown file that records the changes**: \`\`\` bash
|
|
149
|
+
|
|
150
|
+
\`\`\` bash
|
|
151
|
+
$ npx modern bump
|
|
152
|
+
\u{1F98B} warn ===============================IMPORTANT!===============================
|
|
153
|
+
\u{1F98B} warn You are in prerelease mode
|
|
154
|
+
\u{1F98B} warn If you meant to do a normal release you should revert these changes and run \`changeset pre exit\`
|
|
155
|
+
\u{1F98B} warn You can then run \`changeset version\` again to do a normal release
|
|
156
|
+
\u{1F98B} warn ----------------------------------------------------------------------
|
|
157
|
+
\u{1F98B} All files have been updated. review them and commit at your leisure
|
|
158
|
+
\`\`\`
|
|
159
|
+
|
|
160
|
+
Then you can see that the updated version number in \`package.json\` will look like this: \`0.1.2-next.0\`.
|
|
161
|
+
|
|
162
|
+
Finally, **if you don't need to do a pre-release anymore, be sure to run the \`modern pre exit\` command** to exit the pre-release state and to release the official version when you run the \`modern bump\` command again.
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
Translated with www.DeepL.com/Translator (free version)
|
|
166
|
+
`;export{r as CH,a as chCodeConfig,B as content,k as default,h as frontmatter,y as lastUpdatedTime,b as title,f as toc};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32"><path fill="currentColor" d="M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6H10z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32"><path fill="#888888" d="m29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9Z"/></svg>
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
var __accessCheck = (obj, member, msg) => {
|
|
2
|
+
if (!member.has(obj))
|
|
3
|
+
throw TypeError("Cannot " + msg);
|
|
4
|
+
};
|
|
5
|
+
var __privateGet = (obj, member, getter) => {
|
|
6
|
+
__accessCheck(obj, member, "read from private field");
|
|
7
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
8
|
+
};
|
|
9
|
+
var __privateAdd = (obj, member, value) => {
|
|
10
|
+
if (member.has(obj))
|
|
11
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
12
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
13
|
+
};
|
|
14
|
+
var __privateSet = (obj, member, value, setter) => {
|
|
15
|
+
__accessCheck(obj, member, "write to private field");
|
|
16
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
17
|
+
return value;
|
|
18
|
+
};
|
|
19
|
+
var __privateMethod = (obj, member, method) => {
|
|
20
|
+
__accessCheck(obj, member, "access private method");
|
|
21
|
+
return method;
|
|
22
|
+
};
|
|
23
|
+
var _index, _cjkIndex, _headerToIdMap, _langRoutePrefix, _matchHeader, matchHeader_fn, _matchContent, matchContent_fn, _normalizeStatement, normalizeStatement_fn;
|
|
24
|
+
import FlexSearch from "flexsearch";
|
|
25
|
+
import { uniqBy } from "lodash-es";
|
|
26
|
+
import "react";
|
|
27
|
+
import "react/jsx-runtime";
|
|
28
|
+
import { g as getAllPages, n as normalizeHref, w as withBase } from "../ssr-entry.mjs";
|
|
29
|
+
import "react-dom/server";
|
|
30
|
+
import "react-router-dom";
|
|
31
|
+
import "@code-hike/mdx/dist/components.cjs.js";
|
|
32
|
+
import "copy-to-clipboard";
|
|
33
|
+
import "body-scroll-lock";
|
|
34
|
+
import "react-helmet-async";
|
|
35
|
+
import "b-tween";
|
|
36
|
+
import "react-router-dom/server.mjs";
|
|
37
|
+
function backTrackHeaders(rawHeaders, index) {
|
|
38
|
+
let current = rawHeaders[index];
|
|
39
|
+
let currentIndex = index;
|
|
40
|
+
const res = [current];
|
|
41
|
+
while (current && current.depth > 2) {
|
|
42
|
+
let matchedParent = false;
|
|
43
|
+
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
44
|
+
const header = rawHeaders[i];
|
|
45
|
+
if (header.depth > 1 && header.depth === current.depth - 1) {
|
|
46
|
+
current = header;
|
|
47
|
+
currentIndex = i;
|
|
48
|
+
res.unshift(current);
|
|
49
|
+
matchedParent = true;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (!matchedParent) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return res;
|
|
58
|
+
}
|
|
59
|
+
const THRESHOLD_CONTENT_LENGTH = 100;
|
|
60
|
+
const cjkRegex = /[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]|[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d]|[\u3041-\u3096]|[\u30A1-\u30FA]/giu;
|
|
61
|
+
const WHITE_PAGE_TYPES = ["home", "api", "404", "custom"];
|
|
62
|
+
class PageSearcher {
|
|
63
|
+
constructor(langRoutePrefix = "") {
|
|
64
|
+
__privateAdd(this, _matchHeader);
|
|
65
|
+
__privateAdd(this, _matchContent);
|
|
66
|
+
__privateAdd(this, _normalizeStatement);
|
|
67
|
+
__privateAdd(this, _index, void 0);
|
|
68
|
+
__privateAdd(this, _cjkIndex, void 0);
|
|
69
|
+
__privateAdd(this, _headerToIdMap, {});
|
|
70
|
+
__privateAdd(this, _langRoutePrefix, void 0);
|
|
71
|
+
__privateSet(this, _langRoutePrefix, langRoutePrefix);
|
|
72
|
+
}
|
|
73
|
+
async init(options = {}) {
|
|
74
|
+
const pages = await getAllPages((route) => route.path.startsWith(withBase(__privateGet(this, _langRoutePrefix))));
|
|
75
|
+
const pagesForSearch = pages.filter((page) => {
|
|
76
|
+
var _a;
|
|
77
|
+
return !WHITE_PAGE_TYPES.includes(((_a = page.frontmatter) == null ? void 0 : _a.pageType) || "");
|
|
78
|
+
}).map((page) => ({
|
|
79
|
+
title: page.title,
|
|
80
|
+
headers: (page.toc || []).map((header) => header.text),
|
|
81
|
+
content: page.content || "",
|
|
82
|
+
path: page.routePath,
|
|
83
|
+
rawHeaders: page.toc || []
|
|
84
|
+
}));
|
|
85
|
+
__privateSet(this, _headerToIdMap, pages.reduce((acc, page) => {
|
|
86
|
+
(page.toc || []).forEach((header) => {
|
|
87
|
+
acc[page.routePath + header.text] = header.id;
|
|
88
|
+
});
|
|
89
|
+
return acc;
|
|
90
|
+
}, {}));
|
|
91
|
+
const createOptions = {
|
|
92
|
+
encode: "simple",
|
|
93
|
+
tokenize: "forward",
|
|
94
|
+
split: /\W+/,
|
|
95
|
+
async: true,
|
|
96
|
+
doc: {
|
|
97
|
+
id: "path",
|
|
98
|
+
field: ["title", "headers", "content"]
|
|
99
|
+
},
|
|
100
|
+
...options
|
|
101
|
+
};
|
|
102
|
+
__privateSet(this, _index, FlexSearch.create(createOptions));
|
|
103
|
+
__privateSet(this, _cjkIndex, FlexSearch.create({
|
|
104
|
+
...createOptions,
|
|
105
|
+
encode: false,
|
|
106
|
+
tokenize(str) {
|
|
107
|
+
const cjkWords = [];
|
|
108
|
+
let m = null;
|
|
109
|
+
do {
|
|
110
|
+
m = cjkRegex.exec(str);
|
|
111
|
+
if (m) {
|
|
112
|
+
cjkWords.push(m[0]);
|
|
113
|
+
}
|
|
114
|
+
} while (m);
|
|
115
|
+
return cjkWords;
|
|
116
|
+
}
|
|
117
|
+
}));
|
|
118
|
+
__privateGet(this, _index).add(pagesForSearch);
|
|
119
|
+
__privateGet(this, _cjkIndex).add(pagesForSearch);
|
|
120
|
+
}
|
|
121
|
+
async match(query, limit = 7) {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
const searchResult = await Promise.all([(_a = __privateGet(this, _index)) == null ? void 0 : _a.search({
|
|
124
|
+
query,
|
|
125
|
+
limit
|
|
126
|
+
}), (_b = __privateGet(this, _cjkIndex)) == null ? void 0 : _b.search(query, limit)]);
|
|
127
|
+
const flattenSearchResult = searchResult.flat(2).filter(Boolean);
|
|
128
|
+
const matchedResult = [];
|
|
129
|
+
flattenSearchResult.forEach((item) => {
|
|
130
|
+
const matchedHeader = __privateMethod(this, _matchHeader, matchHeader_fn).call(this, item, query, matchedResult);
|
|
131
|
+
if (matchedHeader) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
__privateMethod(this, _matchContent, matchContent_fn).call(this, item, query, matchedResult);
|
|
135
|
+
});
|
|
136
|
+
const res = uniqBy(matchedResult, "link");
|
|
137
|
+
return res;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
_index = new WeakMap();
|
|
141
|
+
_cjkIndex = new WeakMap();
|
|
142
|
+
_headerToIdMap = new WeakMap();
|
|
143
|
+
_langRoutePrefix = new WeakMap();
|
|
144
|
+
_matchHeader = new WeakSet();
|
|
145
|
+
matchHeader_fn = function(item, query, matchedResult) {
|
|
146
|
+
const {
|
|
147
|
+
headers,
|
|
148
|
+
rawHeaders
|
|
149
|
+
} = item;
|
|
150
|
+
for (const [index, header] of headers.entries()) {
|
|
151
|
+
if (header.includes(query)) {
|
|
152
|
+
const headerAnchor = __privateGet(this, _headerToIdMap)[item.path + header];
|
|
153
|
+
const headerGroup = backTrackHeaders(rawHeaders, index);
|
|
154
|
+
const headerStr = headerGroup.map((item2) => item2.text).join(" > ");
|
|
155
|
+
matchedResult.push({
|
|
156
|
+
type: "header",
|
|
157
|
+
title: item.title,
|
|
158
|
+
header: headerStr,
|
|
159
|
+
headerHighlightIndex: headerStr.indexOf(query),
|
|
160
|
+
link: `${normalizeHref(item.path)}#${headerAnchor}`
|
|
161
|
+
});
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return false;
|
|
166
|
+
};
|
|
167
|
+
_matchContent = new WeakSet();
|
|
168
|
+
matchContent_fn = function(item, query, matchedResult) {
|
|
169
|
+
var _a;
|
|
170
|
+
const {
|
|
171
|
+
content,
|
|
172
|
+
headers
|
|
173
|
+
} = item;
|
|
174
|
+
const queryIndex = content.indexOf(query);
|
|
175
|
+
if (queryIndex === -1) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const headersIndex = headers.map((h) => content.indexOf(h));
|
|
179
|
+
const currentHeaderIndex = headersIndex.findIndex((hIndex, position) => {
|
|
180
|
+
if (position < headers.length - 1) {
|
|
181
|
+
const next = headersIndex[position + 1];
|
|
182
|
+
if (hIndex <= queryIndex && next >= queryIndex) {
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
} else {
|
|
186
|
+
return hIndex < queryIndex;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
const currentHeader = (_a = headers[currentHeaderIndex]) != null ? _a : item.title;
|
|
190
|
+
let statementStartIndex = content.slice(0, queryIndex).lastIndexOf("\n");
|
|
191
|
+
statementStartIndex = statementStartIndex === -1 ? 0 : statementStartIndex;
|
|
192
|
+
const statementEndIndex = content.indexOf("\n", queryIndex + query.length);
|
|
193
|
+
let statement = content.slice(statementStartIndex, statementEndIndex);
|
|
194
|
+
if (statement.length > THRESHOLD_CONTENT_LENGTH) {
|
|
195
|
+
statement = __privateMethod(this, _normalizeStatement, normalizeStatement_fn).call(this, statement, query);
|
|
196
|
+
}
|
|
197
|
+
matchedResult.push({
|
|
198
|
+
type: "content",
|
|
199
|
+
title: item.title,
|
|
200
|
+
header: currentHeader,
|
|
201
|
+
statement,
|
|
202
|
+
statementHighlightIndex: statement.indexOf(query),
|
|
203
|
+
link: `${normalizeHref(item.path)}#${currentHeader}`
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
_normalizeStatement = new WeakSet();
|
|
207
|
+
normalizeStatement_fn = function(statement, query) {
|
|
208
|
+
const queryIndex = statement.indexOf(query);
|
|
209
|
+
const maxPrefixOrSuffix = Math.floor((THRESHOLD_CONTENT_LENGTH - query.length) / 2);
|
|
210
|
+
let prefix = statement.slice(0, queryIndex);
|
|
211
|
+
if (prefix.length > maxPrefixOrSuffix) {
|
|
212
|
+
prefix = "..." + statement.slice(queryIndex - maxPrefixOrSuffix + 3, queryIndex);
|
|
213
|
+
}
|
|
214
|
+
let suffix = statement.slice(queryIndex + query.length);
|
|
215
|
+
if (suffix.length > maxPrefixOrSuffix) {
|
|
216
|
+
suffix = statement.slice(queryIndex + query.length, queryIndex + maxPrefixOrSuffix - 3) + "...";
|
|
217
|
+
}
|
|
218
|
+
return prefix + query + suffix;
|
|
219
|
+
};
|
|
220
|
+
export {
|
|
221
|
+
PageSearcher
|
|
222
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var Nt=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var st=(t,e,s)=>(Nt(t,e,"read from private field"),s?s.call(t):e.get(t)),rt=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},gt=(t,e,s,a)=>(Nt(t,e,"write to private field"),a?a.call(t,s):e.set(t,s),s);var Et=(t,e,s)=>(Nt(t,e,"access private method"),s);import"react";import"react/jsx-runtime";import{S as Ct,i as Jt,a as Xt,b as Tt,r as nt,c as vt,f as tr,g as er,n as ie,w as rr}from"./island_inject.cdfb22d9.js";function nr(t,e){for(var s=-1,a=t==null?0:t.length,u=Array(a);++s<a;)u[s]=e(t[s],s,t);return u}var ir=Array.isArray;const q=ir;var sr=1/0,se=Ct?Ct.prototype:void 0,oe=se?se.toString:void 0;function Ee(t){if(typeof t=="string")return t;if(q(t))return nr(t,Ee)+"";if(Jt(t))return oe?oe.call(t):"";var e=t+"";return e=="0"&&1/t==-sr?"-0":e}function or(t){return t}var fr="[object AsyncFunction]",ar="[object Function]",ur="[object GeneratorFunction]",hr="[object Proxy]";function Se(t){if(!Xt(t))return!1;var e=Tt(t);return e==ar||e==ur||e==fr||e==hr}var lr=nt["__core-js_shared__"];const Bt=lr;var fe=function(){var t=/[^.]+$/.exec(Bt&&Bt.keys&&Bt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function cr(t){return!!fe&&fe in t}var dr=Function.prototype,pr=dr.toString;function at(t){if(t!=null){try{return pr.call(t)}catch{}try{return t+""}catch{}}return""}var gr=/[\\^$.*+?()[\]{}|]/g,yr=/^\[object .+?Constructor\]$/,vr=Function.prototype,_r=Object.prototype,wr=vr.toString,xr=_r.hasOwnProperty,Ar=RegExp("^"+wr.call(xr).replace(gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Or(t){if(!Xt(t)||cr(t))return!1;var e=Se(t)?Ar:yr;return e.test(at(t))}function Tr(t,e){return t==null?void 0:t[e]}function dt(t,e){var s=Tr(t,e);return Or(s)?s:void 0}var Pr=dt(nt,"WeakMap");const bt=Pr;function $r(){}function Ir(t,e,s,a){for(var u=t.length,l=s+(a?1:-1);a?l--:++l<u;)if(e(t[l],l,t))return l;return-1}function mr(t){return t!==t}function Er(t,e,s){for(var a=s-1,u=t.length;++a<u;)if(t[a]===e)return a;return-1}function Sr(t,e,s){return e===e?Er(t,e,s):Ir(t,mr,s)}function Cr(t,e){var s=t==null?0:t.length;return!!s&&Sr(t,e,0)>-1}var jr=9007199254740991,Mr=/^(?:0|[1-9]\d*)$/;function Ce(t,e){var s=typeof t;return e=e==null?jr:e,!!e&&(s=="number"||s!="symbol"&&Mr.test(t))&&t>-1&&t%1==0&&t<e}function je(t,e){return t===e||t!==t&&e!==e}var Rr=9007199254740991;function Zt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Rr}function Fr(t){return t!=null&&Zt(t.length)&&!Se(t)}var Lr=Object.prototype;function Dr(t){var e=t&&t.constructor,s=typeof e=="function"&&e.prototype||Lr;return t===s}function Gr(t,e){for(var s=-1,a=Array(t);++s<t;)a[s]=e(s);return a}var Hr="[object Arguments]";function ae(t){return vt(t)&&Tt(t)==Hr}var Me=Object.prototype,Nr=Me.hasOwnProperty,Br=Me.propertyIsEnumerable,Ur=ae(function(){return arguments}())?ae:function(t){return vt(t)&&Nr.call(t,"callee")&&!Br.call(t,"callee")};const Re=Ur;function zr(){return!1}var Fe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ue=Fe&&typeof module=="object"&&module&&!module.nodeType&&module,br=ue&&ue.exports===Fe,he=br?nt.Buffer:void 0,Wr=he?he.isBuffer:void 0,Kr=Wr||zr;const Wt=Kr;var Yr="[object Arguments]",Jr="[object Array]",Xr="[object Boolean]",Zr="[object Date]",Qr="[object Error]",Vr="[object Function]",qr="[object Map]",kr="[object Number]",tn="[object Object]",en="[object RegExp]",rn="[object Set]",nn="[object String]",sn="[object WeakMap]",on="[object ArrayBuffer]",fn="[object DataView]",an="[object Float32Array]",un="[object Float64Array]",hn="[object Int8Array]",ln="[object Int16Array]",cn="[object Int32Array]",dn="[object Uint8Array]",pn="[object Uint8ClampedArray]",gn="[object Uint16Array]",yn="[object Uint32Array]",j={};j[an]=j[un]=j[hn]=j[ln]=j[cn]=j[dn]=j[pn]=j[gn]=j[yn]=!0;j[Yr]=j[Jr]=j[on]=j[Xr]=j[fn]=j[Zr]=j[Qr]=j[Vr]=j[qr]=j[kr]=j[tn]=j[en]=j[rn]=j[nn]=j[sn]=!1;function vn(t){return vt(t)&&Zt(t.length)&&!!j[Tt(t)]}function _n(t){return function(e){return t(e)}}var Le=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yt=Le&&typeof module=="object"&&module&&!module.nodeType&&module,wn=yt&&yt.exports===Le,Ut=wn&&tr.process,xn=function(){try{var t=yt&&yt.require&&yt.require("util").types;return t||Ut&&Ut.binding&&Ut.binding("util")}catch{}}();const le=xn;var ce=le&&le.isTypedArray,An=ce?_n(ce):vn;const De=An;var On=Object.prototype,Tn=On.hasOwnProperty;function Pn(t,e){var s=q(t),a=!s&&Re(t),u=!s&&!a&&Wt(t),l=!s&&!a&&!u&&De(t),_=s||a||u||l,x=_?Gr(t.length,String):[],T=x.length;for(var I in t)(e||Tn.call(t,I))&&!(_&&(I=="length"||u&&(I=="offset"||I=="parent")||l&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||Ce(I,T)))&&x.push(I);return x}function $n(t,e){return function(s){return t(e(s))}}var In=$n(Object.keys,Object);const mn=In;var En=Object.prototype,Sn=En.hasOwnProperty;function Cn(t){if(!Dr(t))return mn(t);var e=[];for(var s in Object(t))Sn.call(t,s)&&s!="constructor"&&e.push(s);return e}function Ge(t){return Fr(t)?Pn(t):Cn(t)}var jn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mn=/^\w*$/;function Qt(t,e){if(q(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Jt(t)?!0:Mn.test(t)||!jn.test(t)||e!=null&&t in Object(e)}var Rn=dt(Object,"create");const _t=Rn;function Fn(){this.__data__=_t?_t(null):{},this.size=0}function Ln(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Dn="__lodash_hash_undefined__",Gn=Object.prototype,Hn=Gn.hasOwnProperty;function Nn(t){var e=this.__data__;if(_t){var s=e[t];return s===Dn?void 0:s}return Hn.call(e,t)?e[t]:void 0}var Bn=Object.prototype,Un=Bn.hasOwnProperty;function zn(t){var e=this.__data__;return _t?e[t]!==void 0:Un.call(e,t)}var bn="__lodash_hash_undefined__";function Wn(t,e){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=_t&&e===void 0?bn:e,this}function ft(t){var e=-1,s=t==null?0:t.length;for(this.clear();++e<s;){var a=t[e];this.set(a[0],a[1])}}ft.prototype.clear=Fn;ft.prototype.delete=Ln;ft.prototype.get=Nn;ft.prototype.has=zn;ft.prototype.set=Wn;function Kn(){this.__data__=[],this.size=0}function Ft(t,e){for(var s=t.length;s--;)if(je(t[s][0],e))return s;return-1}var Yn=Array.prototype,Jn=Yn.splice;function Xn(t){var e=this.__data__,s=Ft(e,t);if(s<0)return!1;var a=e.length-1;return s==a?e.pop():Jn.call(e,s,1),--this.size,!0}function Zn(t){var e=this.__data__,s=Ft(e,t);return s<0?void 0:e[s][1]}function Qn(t){return Ft(this.__data__,t)>-1}function Vn(t,e){var s=this.__data__,a=Ft(s,t);return a<0?(++this.size,s.push([t,e])):s[a][1]=e,this}function k(t){var e=-1,s=t==null?0:t.length;for(this.clear();++e<s;){var a=t[e];this.set(a[0],a[1])}}k.prototype.clear=Kn;k.prototype.delete=Xn;k.prototype.get=Zn;k.prototype.has=Qn;k.prototype.set=Vn;var qn=dt(nt,"Map");const wt=qn;function kn(){this.size=0,this.__data__={hash:new ft,map:new(wt||k),string:new ft}}function ti(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Lt(t,e){var s=t.__data__;return ti(e)?s[typeof e=="string"?"string":"hash"]:s.map}function ei(t){var e=Lt(this,t).delete(t);return this.size-=e?1:0,e}function ri(t){return Lt(this,t).get(t)}function ni(t){return Lt(this,t).has(t)}function ii(t,e){var s=Lt(this,t),a=s.size;return s.set(t,e),this.size+=s.size==a?0:1,this}function tt(t){var e=-1,s=t==null?0:t.length;for(this.clear();++e<s;){var a=t[e];this.set(a[0],a[1])}}tt.prototype.clear=kn;tt.prototype.delete=ei;tt.prototype.get=ri;tt.prototype.has=ni;tt.prototype.set=ii;var si="Expected a function";function Vt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(si);var s=function(){var a=arguments,u=e?e.apply(this,a):a[0],l=s.cache;if(l.has(u))return l.get(u);var _=t.apply(this,a);return s.cache=l.set(u,_)||l,_};return s.cache=new(Vt.Cache||tt),s}Vt.Cache=tt;var oi=500;function fi(t){var e=Vt(t,function(a){return s.size===oi&&s.clear(),a}),s=e.cache;return e}var ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ui=/\\(\\)?/g,hi=fi(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ai,function(s,a,u,l){e.push(u?l.replace(ui,"$1"):a||s)}),e});const li=hi;function ci(t){return t==null?"":Ee(t)}function He(t,e){return q(t)?t:Qt(t,e)?[t]:li(ci(t))}var di=1/0;function Dt(t){if(typeof t=="string"||Jt(t))return t;var e=t+"";return e=="0"&&1/t==-di?"-0":e}function Ne(t,e){e=He(e,t);for(var s=0,a=e.length;t!=null&&s<a;)t=t[Dt(e[s++])];return s&&s==a?t:void 0}function pi(t,e,s){var a=t==null?void 0:Ne(t,e);return a===void 0?s:a}function gi(t,e){for(var s=-1,a=e.length,u=t.length;++s<a;)t[u+s]=e[s];return t}function yi(){this.__data__=new k,this.size=0}function vi(t){var e=this.__data__,s=e.delete(t);return this.size=e.size,s}function _i(t){return this.__data__.get(t)}function wi(t){return this.__data__.has(t)}var xi=200;function Ai(t,e){var s=this.__data__;if(s instanceof k){var a=s.__data__;if(!wt||a.length<xi-1)return a.push([t,e]),this.size=++s.size,this;s=this.__data__=new tt(a)}return s.set(t,e),this.size=s.size,this}function V(t){var e=this.__data__=new k(t);this.size=e.size}V.prototype.clear=yi;V.prototype.delete=vi;V.prototype.get=_i;V.prototype.has=wi;V.prototype.set=Ai;function Oi(t,e){for(var s=-1,a=t==null?0:t.length,u=0,l=[];++s<a;){var _=t[s];e(_,s,t)&&(l[u++]=_)}return l}function Ti(){return[]}var Pi=Object.prototype,$i=Pi.propertyIsEnumerable,de=Object.getOwnPropertySymbols,Ii=de?function(t){return t==null?[]:(t=Object(t),Oi(de(t),function(e){return $i.call(t,e)}))}:Ti;const mi=Ii;function Ei(t,e,s){var a=e(t);return q(t)?a:gi(a,s(t))}function pe(t){return Ei(t,Ge,mi)}var Si=dt(nt,"DataView");const Kt=Si;var Ci=dt(nt,"Promise");const Yt=Ci;var ji=dt(nt,"Set");const ht=ji;var ge="[object Map]",Mi="[object Object]",ye="[object Promise]",ve="[object Set]",_e="[object WeakMap]",we="[object DataView]",Ri=at(Kt),Fi=at(wt),Li=at(Yt),Di=at(ht),Gi=at(bt),ot=Tt;(Kt&&ot(new Kt(new ArrayBuffer(1)))!=we||wt&&ot(new wt)!=ge||Yt&&ot(Yt.resolve())!=ye||ht&&ot(new ht)!=ve||bt&&ot(new bt)!=_e)&&(ot=function(t){var e=Tt(t),s=e==Mi?t.constructor:void 0,a=s?at(s):"";if(a)switch(a){case Ri:return we;case Fi:return ge;case Li:return ye;case Di:return ve;case Gi:return _e}return e});const xe=ot;var Hi=nt.Uint8Array;const Ae=Hi;var Ni="__lodash_hash_undefined__";function Bi(t){return this.__data__.set(t,Ni),this}function Ui(t){return this.__data__.has(t)}function xt(t){var e=-1,s=t==null?0:t.length;for(this.__data__=new tt;++e<s;)this.add(t[e])}xt.prototype.add=xt.prototype.push=Bi;xt.prototype.has=Ui;function zi(t,e){for(var s=-1,a=t==null?0:t.length;++s<a;)if(e(t[s],s,t))return!0;return!1}function Be(t,e){return t.has(e)}var bi=1,Wi=2;function Ue(t,e,s,a,u,l){var _=s&bi,x=t.length,T=e.length;if(x!=T&&!(_&&T>x))return!1;var I=l.get(t),v=l.get(e);if(I&&v)return I==e&&v==t;var S=-1,E=!0,N=s&Wi?new xt:void 0;for(l.set(t,e),l.set(e,t);++S<x;){var L=t[S],B=e[S];if(a)var K=_?a(B,L,S,e,t,l):a(L,B,S,t,e,l);if(K!==void 0){if(K)continue;E=!1;break}if(N){if(!zi(e,function(Z,b){if(!Be(N,b)&&(L===Z||u(L,Z,s,a,l)))return N.push(b)})){E=!1;break}}else if(!(L===B||u(L,B,s,a,l))){E=!1;break}}return l.delete(t),l.delete(e),E}function Ki(t){var e=-1,s=Array(t.size);return t.forEach(function(a,u){s[++e]=[u,a]}),s}function qt(t){var e=-1,s=Array(t.size);return t.forEach(function(a){s[++e]=a}),s}var Yi=1,Ji=2,Xi="[object Boolean]",Zi="[object Date]",Qi="[object Error]",Vi="[object Map]",qi="[object Number]",ki="[object RegExp]",ts="[object Set]",es="[object String]",rs="[object Symbol]",ns="[object ArrayBuffer]",is="[object DataView]",Oe=Ct?Ct.prototype:void 0,zt=Oe?Oe.valueOf:void 0;function ss(t,e,s,a,u,l,_){switch(s){case is:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ns:return!(t.byteLength!=e.byteLength||!l(new Ae(t),new Ae(e)));case Xi:case Zi:case qi:return je(+t,+e);case Qi:return t.name==e.name&&t.message==e.message;case ki:case es:return t==e+"";case Vi:var x=Ki;case ts:var T=a&Yi;if(x||(x=qt),t.size!=e.size&&!T)return!1;var I=_.get(t);if(I)return I==e;a|=Ji,_.set(t,e);var v=Ue(x(t),x(e),a,u,l,_);return _.delete(t),v;case rs:if(zt)return zt.call(t)==zt.call(e)}return!1}var os=1,fs=Object.prototype,as=fs.hasOwnProperty;function us(t,e,s,a,u,l){var _=s&os,x=pe(t),T=x.length,I=pe(e),v=I.length;if(T!=v&&!_)return!1;for(var S=T;S--;){var E=x[S];if(!(_?E in e:as.call(e,E)))return!1}var N=l.get(t),L=l.get(e);if(N&&L)return N==e&&L==t;var B=!0;l.set(t,e),l.set(e,t);for(var K=_;++S<T;){E=x[S];var Z=t[E],b=e[E];if(a)var pt=_?a(b,Z,E,e,t,l):a(Z,b,E,t,e,l);if(!(pt===void 0?Z===b||u(Z,b,s,a,l):pt)){B=!1;break}K||(K=E=="constructor")}if(B&&!K){var U=t.constructor,G=e.constructor;U!=G&&"constructor"in t&&"constructor"in e&&!(typeof U=="function"&&U instanceof U&&typeof G=="function"&&G instanceof G)&&(B=!1)}return l.delete(t),l.delete(e),B}var hs=1,Te="[object Arguments]",Pe="[object Array]",St="[object Object]",ls=Object.prototype,$e=ls.hasOwnProperty;function cs(t,e,s,a,u,l){var _=q(t),x=q(e),T=_?Pe:xe(t),I=x?Pe:xe(e);T=T==Te?St:T,I=I==Te?St:I;var v=T==St,S=I==St,E=T==I;if(E&&Wt(t)){if(!Wt(e))return!1;_=!0,v=!1}if(E&&!v)return l||(l=new V),_||De(t)?Ue(t,e,s,a,u,l):ss(t,e,T,s,a,u,l);if(!(s&hs)){var N=v&&$e.call(t,"__wrapped__"),L=S&&$e.call(e,"__wrapped__");if(N||L){var B=N?t.value():t,K=L?e.value():e;return l||(l=new V),u(B,K,s,a,l)}}return E?(l||(l=new V),us(t,e,s,a,u,l)):!1}function kt(t,e,s,a,u){return t===e?!0:t==null||e==null||!vt(t)&&!vt(e)?t!==t&&e!==e:cs(t,e,s,a,kt,u)}var ds=1,ps=2;function gs(t,e,s,a){var u=s.length,l=u,_=!a;if(t==null)return!l;for(t=Object(t);u--;){var x=s[u];if(_&&x[2]?x[1]!==t[x[0]]:!(x[0]in t))return!1}for(;++u<l;){x=s[u];var T=x[0],I=t[T],v=x[1];if(_&&x[2]){if(I===void 0&&!(T in t))return!1}else{var S=new V;if(a)var E=a(I,v,T,t,e,S);if(!(E===void 0?kt(v,I,ds|ps,a,S):E))return!1}}return!0}function ze(t){return t===t&&!Xt(t)}function ys(t){for(var e=Ge(t),s=e.length;s--;){var a=e[s],u=t[a];e[s]=[a,u,ze(u)]}return e}function be(t,e){return function(s){return s==null?!1:s[t]===e&&(e!==void 0||t in Object(s))}}function vs(t){var e=ys(t);return e.length==1&&e[0][2]?be(e[0][0],e[0][1]):function(s){return s===t||gs(s,t,e)}}function _s(t,e){return t!=null&&e in Object(t)}function ws(t,e,s){e=He(e,t);for(var a=-1,u=e.length,l=!1;++a<u;){var _=Dt(e[a]);if(!(l=t!=null&&s(t,_)))break;t=t[_]}return l||++a!=u?l:(u=t==null?0:t.length,!!u&&Zt(u)&&Ce(_,u)&&(q(t)||Re(t)))}function xs(t,e){return t!=null&&ws(t,e,_s)}var As=1,Os=2;function Ts(t,e){return Qt(t)&&ze(e)?be(Dt(t),e):function(s){var a=pi(s,t);return a===void 0&&a===e?xs(s,t):kt(e,a,As|Os)}}function Ps(t){return function(e){return e==null?void 0:e[t]}}function $s(t){return function(e){return Ne(e,t)}}function Is(t){return Qt(t)?Ps(Dt(t)):$s(t)}function ms(t){return typeof t=="function"?t:t==null?or:typeof t=="object"?q(t)?Ts(t[0],t[1]):vs(t):Is(t)}function Es(t,e,s){for(var a=-1,u=t==null?0:t.length;++a<u;)if(s(e,t[a]))return!0;return!1}var Ss=1/0,Cs=ht&&1/qt(new ht([,-0]))[1]==Ss?function(t){return new ht(t)}:$r;const js=Cs;var Ms=200;function Rs(t,e,s){var a=-1,u=Cr,l=t.length,_=!0,x=[],T=x;if(s)_=!1,u=Es;else if(l>=Ms){var I=e?null:js(t);if(I)return qt(I);_=!1,u=Be,T=new xt}else T=e?[]:x;t:for(;++a<l;){var v=t[a],S=e?e(v):v;if(v=s||v!==0?v:0,_&&S===S){for(var E=T.length;E--;)if(T[E]===S)continue t;e&&T.push(S),x.push(v)}else u(T,S,s)||(T!==x&&T.push(S),x.push(v))}return x}function Fs(t,e){return t&&t.length?Rs(t,ms(e)):[]}var Ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},We={exports:{}};(function(t,e){(function(s,a,u){let l;(l=u.define)&&l.amd?l([],function(){return a}):(l=u.modules)?l[s.toLowerCase()]=a:t.exports=a})("FlexSearch",function s(a){function u(r,i){const n=i?i.id:r&&r.id;this.id=n||n===0?n:Qe++,this.init(r,i),I(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),I(this,"length",function(){return this.index.length})}function l(r,i,n,o){return this.u!==this.g&&(this.o=this.o.concat(n),this.u++,o&&this.o.length>=o&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(i,this.o),this.F&&this.F(this.o))),this}function _(r){const i=D();for(const n in r)if(r.hasOwnProperty(n)){const o=r[n];G(o)?i[n]=o.slice(0):Y(o)?i[n]=_(o):i[n]=o}return i}function x(r,i){const n=r.length,o=it(i),f=[];for(let h=0,d=0;h<n;h++){const c=r[h];(o&&i(c)||!o&&!i[c])&&(f[d++]=c)}return f}function T(r,i,n,o,f,h,d,c,p,g){n=pt(n,d?0:f,c,h,i,p,g);let A;if(c&&(c=n.page,A=n.next,n=n.result),d)i=this.where(d,null,f,n);else{for(i=n,n=this.l,f=i.length,h=Array(f),d=0;d<f;d++)h[d]=n[i[d]];i=h}return n=i,o&&(it(o)||(Q=o.split(":"),1<Q.length?o=Z:(Q=Q[0],o=K)),n.sort(o)),n=b(c,A,n),this.cache&&this.j.set(r,n),n}function I(r,i,n){Object.defineProperty(r,i,{get:n})}function v(r){return new RegExp(r,"g")}function S(r,i){for(let n=0;n<i.length;n+=2)r=r.replace(i[n],i[n+1]);return r}function E(r,i,n,o,f,h,d,c){return i[n]?i[n]:(f=f?(c-(d||c/1.5))*h+(d||c/1.5)*f:h,i[n]=f,f>=d&&(r=r[c-(f+.5>>0)],r=r[n]||(r[n]=[]),r[r.length]=o),f)}function N(r,i){if(r){const n=Object.keys(r);for(let o=0,f=n.length;o<f;o++){const h=n[o],d=r[h];if(d)for(let c=0,p=d.length;c<p;c++)if(d[c]===i){p===1?delete r[h]:d.splice(c,1);break}else Y(d[c])&&N(d[c],i)}}}function L(r){let i="",n="";var o="";for(let f=0;f<r.length;f++){const h=r[f];h!==n&&(f&&h==="h"?(o=o==="a"||o==="e"||o==="i"||o==="o"||o==="u"||o==="y",((n==="a"||n==="e"||n==="i"||n==="o"||n==="u"||n==="y")&&o||n===" ")&&(i+=h)):i+=h),o=f===r.length-1?"":r[f+1],n=h}return i}function B(r,i){return r=r.length-i.length,0>r?1:r?-1:0}function K(r,i){return r=r[Q],i=i[Q],r<i?-1:r>i?1:0}function Z(r,i){const n=Q.length;for(let o=0;o<n;o++)r=r[Q[o]],i=i[Q[o]];return r<i?-1:r>i?1:0}function b(r,i,n){return r?{page:r,next:i?""+i:null,result:n}:n}function pt(r,i,n,o,f,h,d){let c,p=[];if(n===!0){n="0";var g=""}else g=n&&n.split(":");const A=r.length;if(1<A){const R=D(),$=[];let m,C;var w=0,y;let X;var P=!0;let z,W=0,et,Gt,$t,Ht;if(g&&(g.length===2?($t=g,g=!1):g=Ht=parseInt(g[0],10)),d){for(m=D();w<A;w++)if(f[w]==="not")for(C=r[w],X=C.length,y=0;y<X;y++)m["@"+C[y]]=1;else Gt=w+1;if(H(Gt))return b(n,c,p);w=0}else et=U(f)&&f;let It;for(;w<A;w++){const ke=w===(Gt||A)-1;if(!et||!w)if((y=et||f&&f[w])&&y!=="and")if(y==="or")It=!1;else continue;else It=h=!0;if(C=r[w],X=C.length){if(P)if(z){var O=z.length;for(y=0;y<O;y++){P=z[y];var F="@"+P;d&&m[F]||(R[F]=1,h||(p[W++]=P))}z=null,P=!1}else{z=C;continue}for(F=!1,y=0;y<X;y++){O=C[y];var M="@"+O;const mt=h?R[M]||0:w;if(!(!mt&&!o||d&&m[M]||!h&&R[M]))if(mt===w){if(ke){if((!Ht||--Ht<W)&&(p[W++]=O,i&&W===i))return b(n,W+(g||0),p)}else R[M]=w+1;F=!0}else o&&(M=$[mt]||($[mt]=[]),M[M.length]=O)}if(It&&!F&&!o)break}else if(It&&!o)return b(n,c,C)}if(z)if(w=z.length,d)for(y=g?parseInt(g,10):0;y<w;y++)r=z[y],m["@"+r]||(p[W++]=r);else p=z;if(o){for(W=p.length,$t?(w=parseInt($t[0],10)+1,y=parseInt($t[1],10)+1):(w=$.length,y=0);w--;)if(O=$[w]){for(X=O.length;y<X;y++)if(o=O[y],(!d||!m["@"+o])&&(p[W++]=o,i&&W===i))return b(n,w+":"+y,p);y=0}}}else!A||f&&f[0]==="not"||(p=r[0],g&&(g=parseInt(g[0],10)));return i&&(d=p.length,g&&g>d&&(g=0),g=g||0,c=g+i,c<d?p=p.slice(g,c):(c=0,g&&(p=p.slice(g)))),b(n,c,p)}function U(r){return typeof r=="string"}function G(r){return r.constructor===Array}function it(r){return typeof r=="function"}function Y(r){return typeof r=="object"}function H(r){return typeof r>"u"}function te(r){const i=Array(r);for(let n=0;n<r;n++)i[n]=D();return i}function D(){return Object.create(null)}function Xe(){let r,i;self.onmessage=function(n){if(n=n.data)if(n.search){const o=i.search(n.content,n.threshold?{limit:n.limit,threshold:n.threshold,where:n.where}:n.limit);self.postMessage({id:r,content:n.content,limit:n.limit,result:o})}else n.add?i.add(n.id,n.content):n.update?i.update(n.id,n.content):n.remove?i.remove(n.id):n.clear?i.clear():n.info?(n=i.info(),n.worker=r,console.log(n)):n.register&&(r=n.id,n.options.cache=!1,n.options.async=!1,n.options.worker=!1,i=new Function(n.register.substring(n.register.indexOf("{")+1,n.register.lastIndexOf("}")))(),i=new i(n.options))}}function Ze(r,i,n,o){r=a("flexsearch","id"+r,Xe,function(h){(h=h.data)&&h.result&&o(h.id,h.content,h.result,h.limit,h.where,h.cursor,h.suggest)},i);const f=s.toString();return n.id=i,r.postMessage({register:f,options:n,id:i}),r}const J={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},ee={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},Pt=[];let Qe=0;const re={},ne={};u.create=function(r,i){return new u(r,i)},u.registerMatcher=function(r){for(const i in r)r.hasOwnProperty(i)&&Pt.push(v(i),r[i]);return this},u.registerEncoder=function(r,i){return ut[r]=i.bind(ut),this},u.registerLanguage=function(r,i){return re[r]=i.filter,ne[r]=i.stemmer,this},u.encode=function(r,i){return ut[r](i)},u.prototype.init=function(r,i){if(this.v=[],i){var n=i.preset;r=i}else r||(r=J),n=r.preset;if(i={},U(r)?(i=ee[r],r={}):n&&(i=ee[n]),n=r.worker)if(typeof Worker>"u")r.worker=!1,this.m=null;else{var o=parseInt(n,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(o);for(var f=0;f<o;f++)this.m[f]=Ze(this.id,f,r,l.bind(this))}if(this.f=r.tokenize||i.f||this.f||J.f,this.split=H(n=r.split)?this.split||J.split:U(n)?v(n):n,this.D=r.rtl||this.D||J.D,this.async=typeof Promise>"u"||H(n=r.async)?this.async||J.async:n,this.g=H(n=r.worker)?this.g||J.g:n,this.threshold=H(n=r.threshold)?i.threshold||this.threshold||J.threshold:n,this.b=H(n=r.resolution)?n=i.b||this.b||J.b:n,n<=this.threshold&&(this.b=this.threshold+1),this.depth=this.f!=="strict"||H(n=r.depth)?i.depth||this.depth||J.depth:n,this.w=(n=H(n=r.encode)?i.encode||J.encode:n)&&ut[n]&&ut[n].bind(ut)||(it(n)?n:this.w||!1),(n=r.matcher)&&this.addMatcher(n),n=(i=r.lang)||r.filter){if(U(n)&&(n=re[n]),G(n)){o=this.w,f=D();for(var h=0;h<n.length;h++){var d=o?o(n[h]):n[h];f[d]=1}n=f}this.filter=n}if(n=i||r.stemmer){var c;i=U(n)?ne[n]:n,o=this.w,f=[];for(c in i)i.hasOwnProperty(c)&&(h=o?o(c):c,f.push(v(h+"($|\\W)"),o?o(i[c]):i[c]));this.stemmer=c=f}if(this.a=f=(n=r.doc)?_(n):this.a||J.a,this.i=te(this.b-(this.threshold||0)),this.h=D(),this.c=D(),f){if(this.l=D(),r.doc=null,c=f.index={},i=f.keys=[],o=f.field,h=f.tag,d=f.store,G(f.id)||(f.id=f.id.split(":")),d){var p=D();if(U(d))p[d]=1;else if(G(d))for(let g=0;g<d.length;g++)p[d[g]]=1;else Y(d)&&(p=d);f.store=p}if(h){if(this.G=D(),d=D(),o)if(U(o))d[o]=r;else if(G(o))for(p=0;p<o.length;p++)d[o[p]]=r;else Y(o)&&(d=o);for(G(h)||(f.tag=h=[h]),o=0;o<h.length;o++)this.G[h[o]]=D();this.I=h,o=d}if(o){let g;for(G(o)||(Y(o)?(g=o,f.field=o=Object.keys(o)):f.field=o=[o]),f=0;f<o.length;f++)h=o[f],G(h)||(g&&(r=g[h]),i[f]=h,o[f]=h.split(":")),c[h]=new u(r)}r.doc=n}return this.B=!0,this.j=(this.cache=n=H(n=r.cache)?this.cache||J.cache:n)?new qe(n):!1,this},u.prototype.encode=function(r){return r&&(Pt.length&&(r=S(r,Pt)),this.v.length&&(r=S(r,this.v)),this.w&&(r=this.w(r)),this.stemmer&&(r=S(r,this.stemmer))),r},u.prototype.addMatcher=function(r){const i=this.v;for(const n in r)r.hasOwnProperty(n)&&i.push(v(n),r[n]);return this},u.prototype.add=function(r,i,n,o,f){if(this.a&&Y(r))return this.A("add",r,i);if(i&&U(i)&&(r||r===0)){var h="@"+r;if(this.c[h]&&!o)return this.update(r,i);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:r,content:i}),this.c[h]=""+this.C,n&&n(),this;if(!f){if(this.async&&typeof importScripts!="function"){let $=this;if(h=new Promise(function(m){setTimeout(function(){$.add(r,i,null,o,!0),$=null,m()})}),n)h.then(n);else return h;return this}if(n)return this.add(r,i,null,o,!0),n(),this}if(i=this.encode(i),!i.length)return this;n=this.f,f=it(n)?n(i):i.split(this.split),this.filter&&(f=x(f,this.filter));const w=D();w._ctx=D();const y=f.length,P=this.threshold,O=this.depth,F=this.b,M=this.i,R=this.D;for(let $=0;$<y;$++){var d=f[$];if(d){var c=d.length,p=(R?$+1:y-$)/y,g="";switch(n){case"reverse":case"both":for(var A=c;--A;)g=d[A]+g,E(M,w,g,r,R?1:(c-A)/c,p,P,F-1);g="";case"forward":for(A=0;A<c;A++)g+=d[A],E(M,w,g,r,R?(A+1)/c:1,p,P,F-1);break;case"full":for(A=0;A<c;A++){const m=(R?A+1:c-A)/c;for(let C=c;C>A;C--)g=d.substring(A,C),E(M,w,g,r,m,p,P,F-1)}break;default:if(c=E(M,w,d,r,1,p,P,F-1),O&&1<y&&c>=P)for(c=w._ctx[d]||(w._ctx[d]=D()),d=this.h[d]||(this.h[d]=te(F-(P||0))),p=$-O,g=$+O+1,0>p&&(p=0),g>y&&(g=y);p<g;p++)p!==$&&E(d,c,f[p],r,0,F-(p<$?$-p:p-$),P,F-1)}}}this.c[h]=1,this.B=!1}return this},u.prototype.A=function(r,i,n){if(G(i)){var o=i.length;if(o--){for(var f=0;f<o;f++)this.A(r,i[f]);return this.A(r,i[o],n)}}else{var h=this.a.index,d=this.a.keys,c=this.a.tag;f=this.a.store;var p,g=this.a.id;o=i;for(var A=0;A<g.length;A++)o=o[g[A]];if(r==="remove"&&(delete this.l[o],g=d.length,g--)){for(i=0;i<g;i++)h[d[i]].remove(o);return h[d[g]].remove(o,n)}if(c){for(p=0;p<c.length;p++){var w=c[p],y=i;for(g=w.split(":"),A=0;A<g.length;A++)y=y[g[A]];y="@"+y}p=this.G[w],p=p[y]||(p[y]=[])}g=this.a.field;for(let P=0,O=g.length;P<O;P++){for(w=g[P],c=i,y=0;y<w.length;y++)c=c[w[y]];w=h[d[P]],y=r==="add"?w.add:w.update,P===O-1?y.call(w,o,c,n):y.call(w,o,c)}if(f){for(n=Object.keys(f),r=D(),h=0;h<n.length;h++)if(d=n[h],f[d]){d=d.split(":");let P,O;for(g=0;g<d.length;g++)c=d[g],P=(P||i)[c],O=(O||r)[c]=P}i=r}p&&(p[p.length]=i),this.l[o]=i}return this},u.prototype.update=function(r,i,n){return this.a&&Y(r)?this.A("update",r,i):(this.c["@"+r]&&U(i)&&(this.remove(r),this.add(r,i,n,!0)),this)},u.prototype.remove=function(r,i,n){if(this.a&&Y(r))return this.A("remove",r,i);var o="@"+r;if(this.c[o]){if(this.g)return this.m[this.c[o]].postMessage({remove:!0,id:r}),delete this.c[o],i&&i(),this;if(!n){if(this.async&&typeof importScripts!="function"){let f=this;if(o=new Promise(function(h){setTimeout(function(){f.remove(r,null,!0),f=null,h()})}),i)o.then(i);else return o;return this}if(i)return this.remove(r,null,!0),i(),this}for(i=0;i<this.b-(this.threshold||0);i++)N(this.i[i],r);this.depth&&N(this.h,r),delete this.c[o],this.B=!1}return this};let Q;u.prototype.search=function(r,i,n,o){if(Y(i)){if(G(i))for(var f=0;f<i.length;f++)i[f].query=r;else i.query=r;r=i,i=1e3}else i&&it(i)?(n=i,i=1e3):i||i===0||(i=1e3);if(this.g){this.F=n,this.u=0,this.o=[];for(var h=0;h<this.g;h++)this.m[h].postMessage({search:!0,limit:i,content:r})}else{var d=[],c=r;if(Y(r)&&!G(r)){n||(n=r.callback)&&(c.callback=null);var p=r.sort,g=r.page;i=r.limit,h=r.threshold;var A=r.suggest;r=r.query}if(this.a){h=this.a.index;const R=c.where;var w=c.bool||"or",y=c.field;let $=w,m,C;if(y)G(y)||(y=[y]);else if(G(c)){var P=c;y=[],$=[];for(var O=0;O<c.length;O++)o=c[O],f=o.bool||w,y[O]=o.field,$[O]=f,f==="not"?m=!0:f==="and"&&(C=!0)}else y=this.a.keys;for(w=y.length,O=0;O<w;O++)P&&(c=P[O]),g&&!U(c)&&(c.page=null,c.limit=0),d[O]=h[y[O]].search(c,0);if(n)return n(T.call(this,r,$,d,p,i,A,R,g,C,m));if(this.async){const X=this;return new Promise(function(z){Promise.all(d).then(function(W){z(T.call(X,r,$,W,p,i,A,R,g,C,m))})})}return T.call(this,r,$,d,p,i,A,R,g,C,m)}if(h||(h=this.threshold||0),!o){if(this.async&&typeof importScripts!="function"){let R=this;if(h=new Promise(function($){setTimeout(function(){$(R.search(c,i,null,!0)),R=null})}),n)h.then(n);else return h;return this}if(n)return n(this.search(c,i,null,!0)),this}if(!r||!U(r))return d;if(c=r,this.cache)if(this.B){if(n=this.j.get(r))return n}else this.j.clear(),this.B=!0;if(c=this.encode(c),!c.length)return d;n=this.f,n=it(n)?n(c):c.split(this.split),this.filter&&(n=x(n,this.filter)),P=n.length,o=!0,f=[];var F=D(),M=0;if(1<P&&(this.depth&&this.f==="strict"?w=!0:n.sort(B)),!w||(O=this.h)){const R=this.b;for(;M<P;M++){let $=n[M];if($){if(w){if(!y){if(O[$])y=$,F[$]=1;else if(!A)return d}if(A&&M===P-1&&!f.length)w=!1,$=y||$,F[$]=0;else if(!y)continue}if(!F[$]){const m=[];let C=!1,X=0;const z=w?O[y]:this.i;if(z){let W;for(let et=0;et<R-h;et++)(W=z[et]&&z[et][$])&&(m[X++]=W,C=!0)}if(C)y=$,f[f.length]=1<X?m.concat.apply([],m):m[0];else if(!A){o=!1;break}F[$]=1}}}}else o=!1;return o&&(d=pt(f,i,g,A)),this.cache&&this.j.set(r,d),d}},u.prototype.find=function(r,i){return this.where(r,i,1)[0]||null},u.prototype.where=function(r,i,n,o){const f=this.l,h=[];let d=0,c;var p;let g;if(Y(r)){n||(n=i);var A=Object.keys(r),w=A.length;if(c=!1,w===1&&A[0]==="id")return[f[r.id]];if((p=this.I)&&!o)for(var y=0;y<p.length;y++){var P=p[y],O=r[P];if(!H(O)){if(g=this.G[P]["@"+O],--w===0)return g;A.splice(A.indexOf(P),1),delete r[P];break}}for(p=Array(w),y=0;y<w;y++)p[y]=A[y].split(":")}else{if(it(r)){for(i=o||Object.keys(f),n=i.length,A=0;A<n;A++)w=f[i[A]],r(w)&&(h[d++]=w);return h}if(H(i))return[f[r]];if(r==="id")return[f[i]];A=[r],w=1,p=[r.split(":")],c=!0}for(o=g||o||Object.keys(f),y=o.length,P=0;P<y;P++){O=g?o[P]:f[o[P]];let F=!0;for(let M=0;M<w;M++){c||(i=r[A[M]]);const R=p[M],$=R.length;let m=O;if(1<$)for(let C=0;C<$;C++)m=m[R[C]];else m=m[R[0]];if(m!==i){F=!1;break}}if(F&&(h[d++]=O,n&&d===n))break}return h},u.prototype.info=function(){if(this.g)for(let r=0;r<this.g;r++)this.m[r].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.s?this.cache.s.length:!1,matcher:Pt.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&this.f==="strict"}},u.prototype.clear=function(){return this.destroy().init()},u.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){const r=this.a.keys;for(let i=0;i<r.length;i++)this.a.index[r[i]].destroy();this.a=this.l=null}return this},u.prototype.export=function(r){const i=!r||H(r.serialize)||r.serialize;if(this.a){const o=!r||H(r.doc)||r.doc;var n=!r||H(r.index)||r.index;r=[];let f=0;if(n)for(n=this.a.keys;f<n.length;f++){const h=this.a.index[n[f]];r[f]=[h.i,h.h,Object.keys(h.c)]}o&&(r[f]=this.l)}else r=[this.i,this.h,Object.keys(this.c)];return i&&(r=JSON.stringify(r)),r},u.prototype.import=function(r,i){(!i||H(i.serialize)||i.serialize)&&(r=JSON.parse(r));const n=D();if(this.a){var o=!i||H(i.doc)||i.doc,f=0;if(!i||H(i.index)||i.index){i=this.a.keys;const d=i.length;for(var h=r[0][2];f<h.length;f++)n[h[f]]=1;for(f=0;f<d;f++){h=this.a.index[i[f]];const c=r[f];c&&(h.i=c[0],h.h=c[1],h.c=n)}}o&&(this.l=Y(o)?o:r[f])}else{for(o=r[2],f=0;f<o.length;f++)n[o[f]]=1;this.i=r[0],this.h=r[1],this.c=n}};const Ve=function(){const r=v("\\s+"),i=v("[^a-z0-9 ]"),n=[v("[-/]")," ",i,"",r," "];return function(o){return L(S(o.toLowerCase(),n))}}(),ut={icase:function(r){return r.toLowerCase()},simple:function(){const r=v("\\s+"),i=v("[^a-z0-9 ]"),n=v("[-/]"),o=v("[\xE0\xE1\xE2\xE3\xE4\xE5]"),f=v("[\xE8\xE9\xEA\xEB]"),h=v("[\xEC\xED\xEE\xEF]"),d=v("[\xF2\xF3\xF4\xF5\xF6\u0151]"),c=v("[\xF9\xFA\xFB\xFC\u0171]"),p=v("[\xFD\u0177\xFF]"),g=v("\xF1"),A=v("[\xE7c]"),w=v("\xDF"),y=v(" & "),P=[o,"a",f,"e",h,"i",d,"o",c,"u",p,"y",g,"n",A,"k",w,"s",y," and ",n," ",i,"",r," "];return function(O){return O=S(O.toLowerCase(),P),O===" "?"":O}}(),advanced:function(){const r=v("ae"),i=v("ai"),n=v("ay"),o=v("ey"),f=v("oe"),h=v("ue"),d=v("ie"),c=v("sz"),p=v("zs"),g=v("ck"),A=v("cc"),w=v("sh"),y=v("th"),P=v("dt"),O=v("ph"),F=v("pf"),M=v("ou"),R=v("uo"),$=[r,"a",i,"ei",n,"ei",o,"ei",f,"o",h,"u",d,"i",c,"s",p,"s",w,"s",g,"k",A,"k",y,"t",P,"t",O,"f",F,"f",M,"o",R,"u"];return function(m,C){return m&&(m=this.simple(m),2<m.length&&(m=S(m,$)),C||1<m.length&&(m=L(m)),m)}}(),extra:function(){const r=v("p"),i=v("z"),n=v("[cgq]"),o=v("n"),f=v("d"),h=v("[vw]"),d=v("[aeiouy]"),c=[r,"b",i,"s",n,"k",o,"m",f,"t",h,"f",d,""];return function(p){if(!p)return p;if(p=this.advanced(p,!0),1<p.length){p=p.split(" ");for(let g=0;g<p.length;g++){const A=p[g];1<A.length&&(p[g]=A[0]+S(A.substring(1),c))}p=p.join(" "),p=L(p)}return p}}(),balance:Ve},qe=function(){function r(i){this.clear(),this.H=i!==!0&&i}return r.prototype.clear=function(){this.cache=D(),this.count=D(),this.index=D(),this.s=[]},r.prototype.set=function(i,n){if(this.H&&H(this.cache[i])){let o=this.s.length;if(o===this.H){o--;const f=this.s[o];delete this.cache[f],delete this.count[f],delete this.index[f]}this.index[i]=o,this.s[o]=i,this.count[i]=-1,this.cache[i]=n,this.get(i)}else this.cache[i]=n},r.prototype.get=function(i){const n=this.cache[i];if(this.H&&n){var o=++this.count[i];const h=this.index;let d=h[i];if(0<d){const c=this.s;for(var f=d;this.count[c[--d]]<=o&&d!==-1;);if(d++,d!==f){for(o=f;o>d;o--)f=c[o-1],c[o]=f,h[f]=o;c[d]=i,h[i]=d}}}return n},r}();return u}(function(){const s={},a=typeof Blob<"u"&&typeof URL<"u"&&URL.createObjectURL;return function(u,l,_,x,T){return _=a?URL.createObjectURL(new Blob(["("+_.toString()+")()"],{type:"text/javascript"})):u+".min.js",u+="-"+l,s[u]||(s[u]=[]),s[u][T]=new Worker(_),s[u][T].onmessage=x,s[u][T]}}()),Ls)})(We);const Ie=We.exports;function Ds(t,e){let s=t[e],a=e;const u=[s];for(;s&&s.depth>2;){let l=!1;for(let _=a-1;_>=0;_--){const x=t[_];if(x.depth>1&&x.depth===s.depth-1){s=x,a=_,u.unshift(s),l=!0;break}}if(!l)break}return u}const me=100,Gs=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]|[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d]|[\u3041-\u3096]|[\u30A1-\u30FA]/giu,Hs=["home","api","404","custom"];var lt,ct,At,Ot,jt,Ke,Mt,Ye,Rt,Je;class bs{constructor(e=""){rt(this,jt);rt(this,Mt);rt(this,Rt);rt(this,lt,void 0);rt(this,ct,void 0);rt(this,At,{});rt(this,Ot,void 0);gt(this,Ot,e)}async init(e={}){const s=await er(l=>l.path.startsWith(rr(st(this,Ot)))),a=s.filter(l=>{var _;return!Hs.includes(((_=l.frontmatter)==null?void 0:_.pageType)||"")}).map(l=>({title:l.title,headers:(l.toc||[]).map(_=>_.text),content:l.content||"",path:l.routePath,rawHeaders:l.toc||[]}));gt(this,At,s.reduce((l,_)=>((_.toc||[]).forEach(x=>{l[_.routePath+x.text]=x.id}),l),{}));const u={encode:"simple",tokenize:"forward",split:/\W+/,async:!0,doc:{id:"path",field:["title","headers","content"]},...e};gt(this,lt,Ie.create(u)),gt(this,ct,Ie.create({...u,encode:!1,tokenize(l){const _=[];let x=null;do x=Gs.exec(l),x&&_.push(x[0]);while(x);return _}})),st(this,lt).add(a),st(this,ct).add(a)}async match(e,s=7){var x,T;const u=(await Promise.all([(x=st(this,lt))==null?void 0:x.search({query:e,limit:s}),(T=st(this,ct))==null?void 0:T.search(e,s)])).flat(2).filter(Boolean),l=[];return u.forEach(I=>{Et(this,jt,Ke).call(this,I,e,l)||Et(this,Mt,Ye).call(this,I,e,l)}),Fs(l,"link")}}lt=new WeakMap,ct=new WeakMap,At=new WeakMap,Ot=new WeakMap,jt=new WeakSet,Ke=function(e,s,a){const{headers:u,rawHeaders:l}=e;for(const[_,x]of u.entries())if(x.includes(s)){const T=st(this,At)[e.path+x],v=Ds(l,_).map(S=>S.text).join(" > ");return a.push({type:"header",title:e.title,header:v,headerHighlightIndex:v.indexOf(s),link:`${ie(e.path)}#${T}`}),!0}return!1},Mt=new WeakSet,Ye=function(e,s,a){var N;const{content:u,headers:l}=e,_=u.indexOf(s);if(_===-1)return;const x=l.map(L=>u.indexOf(L)),T=x.findIndex((L,B)=>{if(B<l.length-1){const K=x[B+1];if(L<=_&&K>=_)return!0}else return L<_}),I=(N=l[T])!=null?N:e.title;let v=u.slice(0,_).lastIndexOf(`
|
|
2
|
+
`);v=v===-1?0:v;const S=u.indexOf(`
|
|
3
|
+
`,_+s.length);let E=u.slice(v,S);E.length>me&&(E=Et(this,Rt,Je).call(this,E,s)),a.push({type:"content",title:e.title,header:I,statement:E,statementHighlightIndex:E.indexOf(s),link:`${ie(e.path)}#${I}`})},Rt=new WeakSet,Je=function(e,s){const a=e.indexOf(s),u=Math.floor((me-s.length)/2);let l=e.slice(0,a);l.length>u&&(l="..."+e.slice(a-u+3,a));let _=e.slice(a+s.length);return _.length>u&&(_=e.slice(a+s.length,a+u-3)+"..."),l+s+_};export{bs as PageSearcher};
|