reactive-md 0.6.1 → 0.8.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/CHANGELOG-ch.md +66 -0
- package/CHANGELOG.md +66 -0
- package/CONTRIBUTING-ch.md +6 -62
- package/CONTRIBUTING.md +5 -63
- package/README-ch.md +232 -67
- package/README-en.md +209 -71
- package/README.md +209 -71
- package/SECURITY-ch.md +3 -1
- package/SECURITY.md +3 -1
- package/THIRD_PARTY_NOTICES.md +1909 -87
- package/cli/args.mjs +33 -1
- package/cli/build.mjs +62 -1
- package/cli/check.mjs +444 -0
- package/cli/help.mjs +181 -3
- package/cli/init.mjs +1577 -0
- package/cli/main.mjs +11 -1
- package/cli/package-loader.mjs +41 -0
- package/dist-library/LocalDocumentView-6trX7xJc.js +97920 -0
- package/dist-library/{authoring-BEVyth5X.js → authoring-BsfSwQRm.js} +237 -209
- package/dist-library/compiler--ea2CKQF.js +61 -0
- package/dist-library/compiler-core-kPiH-gOV.js +11805 -0
- package/dist-library/component-state-Cq2K5gkS.js +490 -0
- package/dist-library/component-state-D_cw_EHe.js +54 -0
- package/dist-library/config-validation-DXTynAw7.js +3005 -0
- package/dist-library/default-components-Z_YMio5P.js +2346 -0
- package/dist-library/identity-MYJXKSkB.js +1443 -0
- package/dist-library/math-display-BJz4gbFc.js +24000 -0
- package/dist-library/math-sample-BGEW49zY.js +1124 -0
- package/dist-library/options-CX5m5n-J.js +115 -0
- package/dist-library/parser-standard-DlCk7sLo.js +10122 -0
- package/dist-library/props-DGlBk0e5.js +183 -0
- package/dist-library/react-ByOHunUW.js +122 -0
- package/dist-library/reactive-md-authoring.js +712 -1077
- package/dist-library/reactive-md-build.js +7966 -0
- package/dist-library/reactive-md-compiler-standard.js +33 -0
- package/dist-library/reactive-md-compiler.js +22 -0
- package/dist-library/reactive-md-default-packs.js +71 -0
- package/dist-library/reactive-md-default-preset.js +10 -0
- package/dist-library/reactive-md-export.js +111 -0
- package/dist-library/reactive-md-print.css +18 -3
- package/dist-library/reactive-md-react-runtime.js +251 -0
- package/dist-library/reactive-md-react-server.js +55 -0
- package/dist-library/reactive-md-react-unstyled.js +9 -1
- package/dist-library/reactive-md-react.js +9 -1
- package/dist-library/reactive-md-runtime-browser.js +51 -0
- package/dist-library/reactive-md-runtime.js +3 -0
- package/dist-library/reactive-md-sdk.js +6 -0
- package/dist-library/reactive-md-standalone-host.js +442 -0
- package/dist-library/reactive-md-testing-browser.js +523 -0
- package/dist-library/reactive-md-testing-react.js +221 -0
- package/dist-library/reactive-md-testing.js +638 -0
- package/dist-library/reactive-md-vite.js +959 -0
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +1080 -795
- package/dist-library/registry-B9Jc3FVe.js +1174 -0
- package/dist-library/resources-BGt8mpDA.js +204 -0
- package/dist-library/runtime-C-sbfpOX.js +1157 -0
- package/dist-library/runtime-Dkq7ldyg.js +172 -0
- package/dist-library/schema-ZFufO8V0.js +39 -0
- package/dist-library/shareable-DDVL4Fi9.js +844 -0
- package/dist-library/types/authoring/catalog.d.ts +168 -0
- package/dist-library/types/authoring/conformance.d.ts +24 -0
- package/dist-library/types/{editor → authoring}/editor-i18n.d.ts +3 -24
- package/dist-library/types/authoring/extensions.d.ts +13 -0
- package/dist-library/types/authoring/index.d.ts +14 -11
- package/dist-library/types/authoring/insert.d.ts +16 -0
- package/dist-library/types/{editor → authoring}/native-components.d.ts +19 -2
- package/dist-library/types/authoring/templates.d.ts +65 -0
- package/dist-library/types/build/diagnostics.d.ts +8 -0
- package/dist-library/types/build/digest.d.ts +5 -0
- package/dist-library/types/build/entry.d.ts +9 -0
- package/dist-library/types/build/host.d.ts +36 -0
- package/dist-library/types/build/index.d.ts +99 -0
- package/dist-library/types/build/notices.d.ts +29 -0
- package/dist-library/types/build/resources.d.ts +60 -0
- package/dist-library/types/build/vite.d.ts +15 -0
- package/dist-library/types/compiler/index.d.ts +22 -0
- package/dist-library/types/compiler/result.d.ts +30 -0
- package/dist-library/types/compiler/standard.d.ts +16 -0
- package/dist-library/types/compiler/types.d.ts +69 -0
- package/dist-library/types/components/chart-motion.d.ts +12 -0
- package/dist-library/types/components/controls.d.ts +21 -0
- package/dist-library/types/{local → components}/data-table.d.ts +10 -24
- package/dist-library/types/components/default-chart-types.d.ts +22 -0
- package/dist-library/types/components/default-chart.d.ts +2 -0
- package/dist-library/types/components/default-preset.d.ts +10 -0
- package/dist-library/types/components/diagram-inspector.d.ts +24 -0
- package/dist-library/types/components/gallery.d.ts +6 -0
- package/dist-library/types/components/layout.d.ts +23 -0
- package/dist-library/types/components/mafs-plot-grid.d.ts +57 -0
- package/dist-library/types/components/mafs-visuals.d.ts +40 -0
- package/dist-library/types/components/numeric-sliders.d.ts +3 -0
- package/dist-library/types/components/uiarc/calendar/calendar.d.ts +26 -0
- package/dist-library/types/components/uiarc/date-picker/date-picker.d.ts +29 -0
- package/dist-library/types/components/uiarc/lib/motion-tokens.d.ts +2 -0
- package/dist-library/types/components/uiarc/lib/use-today.d.ts +2 -0
- package/dist-library/types/components/uiarc/motion-tokens.d.ts +60 -0
- package/dist-library/types/components/uiarc/rmd-motion.d.ts +12 -0
- package/dist-library/types/components/uiarc/select/select.d.ts +21 -0
- package/dist-library/types/components/uiarc/slider/slider.d.ts +53 -0
- package/dist-library/types/components/use-hydrated.d.ts +6 -0
- package/dist-library/types/components/visuals.d.ts +13 -0
- package/dist-library/types/export/component-state.d.ts +39 -0
- package/dist-library/types/export/index.d.ts +47 -0
- package/dist-library/types/export/requirements.d.ts +23 -0
- package/dist-library/types/export/resources.d.ts +8 -0
- package/dist-library/types/export/restoration.d.ts +52 -0
- package/dist-library/types/index.d.ts +1 -0
- package/dist-library/types/local/compilation/compiler-core.d.ts +16 -0
- package/dist-library/types/local/compilation/compiler-services.d.ts +64 -0
- package/dist-library/types/local/compilation/compiler-structure.d.ts +46 -0
- package/dist-library/types/local/compilation/compiler-values.d.ts +9 -0
- package/dist-library/types/local/compilation/compiler.d.ts +34 -0
- package/dist-library/types/local/compilation/component-kernel.d.ts +487 -0
- package/dist-library/types/local/{dependencies.d.ts → compilation/dependencies.d.ts} +4 -3
- package/dist-library/types/local/{diagnostics.d.ts → configuration/diagnostic-messages.d.ts} +193 -65
- package/dist-library/types/local/configuration/diagnostics.d.ts +58 -0
- package/dist-library/types/local/{limits.d.ts → configuration/limits.d.ts} +15 -2
- package/dist-library/types/local/configuration/options-core.d.ts +120 -0
- package/dist-library/types/local/configuration/options.d.ts +17 -0
- package/dist-library/types/local/configuration/portable-options.d.ts +3 -0
- package/dist-library/types/local/configuration/schema-core.d.ts +32 -0
- package/dist-library/types/local/configuration/schema.d.ts +12 -0
- package/dist-library/types/local/contracts/types.d.ts +519 -0
- package/dist-library/types/local/{version.d.ts → contracts/version.d.ts} +1 -1
- package/dist-library/types/local/{computations.d.ts → evaluation/computations.d.ts} +6 -3
- package/dist-library/types/local/{expression.d.ts → evaluation/expression.d.ts} +2 -2
- package/dist-library/types/local/{math-display.d.ts → evaluation/math-display.d.ts} +2 -16
- package/dist-library/types/local/evaluation/math-sample.d.ts +23 -0
- package/dist-library/types/local/evaluation/math.d.ts +73 -0
- package/dist-library/types/local/{validation.d.ts → evaluation/validation.d.ts} +1 -1
- package/dist-library/types/local/html/html-details.d.ts +16 -0
- package/dist-library/types/local/html/html-entities.d.ts +7 -0
- package/dist-library/types/local/html/html-policy.d.ts +43 -0
- package/dist-library/types/local/html/html-recovery.d.ts +16 -0
- package/dist-library/types/local/html/html-table-names.d.ts +9 -0
- package/dist-library/types/local/{html-table.d.ts → html/html-table.d.ts} +2 -6
- package/dist-library/types/local/{html.d.ts → html/html.d.ts} +1 -1
- package/dist-library/types/local/index.d.ts +31 -24
- package/dist-library/types/local/markdown/fast-markdown.d.ts +137 -0
- package/dist-library/types/local/{footnotes.d.ts → markdown/footnotes.d.ts} +1 -1
- package/dist-library/types/local/{heading-anchors.d.ts → markdown/heading-anchors.d.ts} +12 -2
- package/dist-library/types/local/markdown/markdown-blocks.d.ts +55 -0
- package/dist-library/types/local/markdown/markdown-structure.d.ts +3 -0
- package/dist-library/types/local/markdown/plain-paragraphs.d.ts +10 -0
- package/dist-library/types/local/parsing/lexical.d.ts +21 -0
- package/dist-library/types/local/parsing/parse-budget.d.ts +67 -0
- package/dist-library/types/local/parsing/parser-capabilities.d.ts +42 -0
- package/dist-library/types/local/parsing/parser-core.d.ts +65 -0
- package/dist-library/types/local/parsing/parser-standard.d.ts +7 -0
- package/dist-library/types/local/parsing/parser.d.ts +16 -0
- package/dist-library/types/local/parsing/rmd-recovery.d.ts +48 -0
- package/dist-library/types/local/{LocalDocumentView.d.ts → rendering/LocalDocumentView.d.ts} +67 -24
- package/dist-library/types/local/rendering/legacy-component-adapter.d.ts +36 -0
- package/dist-library/types/local/rendering/render-types.d.ts +57 -0
- package/dist-library/types/local/rendering/view-revision.d.ts +75 -0
- package/dist-library/types/local/{retention.d.ts → runtime/retention.d.ts} +1 -1
- package/dist-library/types/local/runtime/runtime.d.ts +34 -0
- package/dist-library/types/local/{state.d.ts → runtime/state.d.ts} +4 -4
- package/dist-library/types/local/session/compiler-cache.d.ts +44 -0
- package/dist-library/types/local/session/incremental.d.ts +48 -0
- package/dist-library/types/local/session/parse-session.d.ts +62 -0
- package/dist-library/types/local/session/row-reuse.d.ts +46 -0
- package/dist-library/types/local/{authoring.d.ts → source/authoring.d.ts} +11 -3
- package/dist-library/types/local/source/node-walk.d.ts +3 -0
- package/dist-library/types/local/source/source-context.d.ts +63 -0
- package/dist-library/types/local/{source-migration.d.ts → source/source-migration.d.ts} +2 -2
- package/dist-library/types/local/{i18n.d.ts → theme/i18n.d.ts} +2 -2
- package/dist-library/types/local/theme/theme-name.d.ts +3 -0
- package/dist-library/types/local/{theme.d.ts → theme/theme.d.ts} +3 -3
- package/dist-library/types/local/transport/compile-patch.d.ts +127 -0
- package/dist-library/types/local/{compiled-data.d.ts → transport/compiled-data.d.ts} +1 -1
- package/dist-library/types/local/transport/flat-compiled-data.d.ts +17 -0
- package/dist-library/types/local/transport/shared-data.d.ts +10 -0
- package/dist-library/types/local/transport/worker.d.ts +265 -0
- package/dist-library/types/local/widgets/visuals.d.ts +25 -0
- package/dist-library/types/presets/default-authoring.d.ts +50 -0
- package/dist-library/types/presets/default-components.d.ts +4 -0
- package/dist-library/types/presets/default-semantics.d.ts +8 -0
- package/dist-library/types/presets/default.d.ts +11 -0
- package/dist-library/types/presets/identity.d.ts +7 -0
- package/dist-library/types/presets/packs.d.ts +4 -0
- package/dist-library/types/react/component-api.d.ts +260 -0
- package/dist-library/types/react/component-primitives.d.ts +21 -0
- package/dist-library/types/react/component-utils.d.ts +125 -0
- package/dist-library/types/react/default-theme.d.ts +6 -0
- package/dist-library/types/react/field-validation.d.ts +11 -0
- package/dist-library/types/react/index.d.ts +17 -5
- package/dist-library/types/react/overflow-text-tooltip.d.ts +6 -0
- package/dist-library/types/react/package.d.ts +69 -0
- package/dist-library/types/react/runtime/common.d.ts +4 -0
- package/dist-library/types/react/runtime/index.d.ts +8 -0
- package/dist-library/types/react/runtime/useComponentState.d.ts +30 -0
- package/dist-library/types/react/runtime/useKeys.d.ts +16 -0
- package/dist-library/types/react/runtime/useSwipe.d.ts +27 -0
- package/dist-library/types/react/runtime/useTicker.d.ts +17 -0
- package/dist-library/types/react/sdk.d.ts +110 -0
- package/dist-library/types/react/server.d.ts +15 -0
- package/dist-library/types/react/tooltip-layer.d.ts +10 -0
- package/dist-library/types/react/use-draft-field.d.ts +17 -0
- package/dist-library/types/runtime-services/browser/index.d.ts +63 -0
- package/dist-library/types/runtime-services/component-state.d.ts +152 -0
- package/dist-library/types/runtime-services/identity.d.ts +41 -0
- package/dist-library/types/runtime-services/index.d.ts +10 -0
- package/dist-library/types/runtime-services/random.d.ts +42 -0
- package/dist-library/types/runtime-services/runtime.d.ts +51 -0
- package/dist-library/types/runtime-services/scheduler.d.ts +44 -0
- package/dist-library/types/sdk/assembly.d.ts +73 -0
- package/dist-library/types/sdk/compat-profile.d.ts +57 -0
- package/dist-library/types/sdk/compiler-config.d.ts +33 -0
- package/dist-library/types/sdk/config-validation.d.ts +33 -0
- package/dist-library/types/sdk/config.d.ts +35 -0
- package/dist-library/types/sdk/hash.d.ts +9 -0
- package/dist-library/types/sdk/index.d.ts +10 -0
- package/dist-library/types/sdk/manifest.d.ts +49 -0
- package/dist-library/types/sdk/pattern.d.ts +11 -0
- package/dist-library/types/sdk/preset-core.d.ts +11 -0
- package/dist-library/types/sdk/preset.d.ts +9 -0
- package/dist-library/types/sdk/props.d.ts +33 -0
- package/dist-library/types/sdk/registry-core.d.ts +16 -0
- package/dist-library/types/sdk/registry.d.ts +18 -0
- package/dist-library/types/sdk/theme.d.ts +73 -0
- package/dist-library/types/sdk/types.d.ts +221 -0
- package/dist-library/types/sdk/version.d.ts +49 -0
- package/dist-library/types/shareable.d.ts +29 -3
- package/dist-library/types/standalone/diagnostics.d.ts +16 -0
- package/dist-library/types/standalone/events.d.ts +4 -0
- package/dist-library/types/standalone/library.d.ts +6 -0
- package/dist-library/types/standalone/payload.d.ts +15 -0
- package/dist-library/types/standalone/prepare.d.ts +21 -0
- package/dist-library/types/standalone/session.d.ts +68 -0
- package/dist-library/types/standalone/version.d.ts +7 -0
- package/dist-library/types/testing/behavior.d.ts +19 -0
- package/dist-library/types/testing/browser.d.ts +126 -0
- package/dist-library/types/testing/cases.d.ts +16 -0
- package/dist-library/types/testing/index.d.ts +13 -0
- package/dist-library/types/testing/manifest.d.ts +10 -0
- package/dist-library/types/testing/react.d.ts +45 -0
- package/dist-library/types/testing/report.d.ts +20 -0
- package/dist-library/types/testing/types.d.ts +125 -0
- package/dist-library/types/testing/values.d.ts +22 -0
- package/dist-library/types/vite/client.d.ts +36 -0
- package/dist-library/types/vite/discovery.d.ts +51 -0
- package/dist-library/types/vite/index.d.ts +31 -0
- package/dist-library/types/vite/registration.d.ts +109 -0
- package/dist-library/types-BFCrMrg0.js +52 -0
- package/dist-library/validation-W-bmny-x.js +2253 -0
- package/dist-library/values-CIt8AjiU.js +134 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +591 -95
- package/docs/README-ch.md +90 -0
- package/docs/README.md +87 -81
- package/docs/compatibility/compatibility-ch.md +22 -14
- package/docs/compatibility/compatibility-en.md +22 -14
- package/docs/compatibility/source-versioning-ch.md +15 -12
- package/docs/compatibility/source-versioning-en.md +16 -13
- package/docs/development/component-development-ch.md +51 -195
- package/docs/development/component-development-en.md +51 -195
- package/docs/development/component-development-reference-ch.md +253 -0
- package/docs/development/component-development-reference-en.md +238 -0
- package/docs/development/component-protocol-ch.md +51 -50
- package/docs/development/component-protocol-en.md +52 -49
- package/docs/development/local-module-layout-ch.md +59 -0
- package/docs/development/local-module-layout-en.md +59 -0
- package/docs/development/performance-overview-ch.md +402 -0
- package/docs/development/performance-overview-en.md +402 -0
- package/docs/development/releasing-ch.md +8 -104
- package/docs/development/releasing-en.md +8 -104
- package/docs/guides/local-guide-ch.md +28 -9
- package/docs/guides/local-guide-en.md +31 -12
- package/docs/integration/author-tools-ch.md +4 -2
- package/docs/integration/author-tools-en.md +4 -2
- package/docs/integration/codemirror-ch.md +52 -0
- package/docs/integration/codemirror-en.md +29 -0
- package/docs/integration/compiler-ch.md +47 -0
- package/docs/integration/compiler-en.md +34 -0
- package/docs/integration/directory-discovery-ch.md +53 -0
- package/docs/integration/directory-discovery-en.md +31 -0
- package/docs/integration/editor-ch.md +48 -21
- package/docs/integration/editor-en.md +48 -21
- package/docs/integration/extension-sdk-ch.md +392 -0
- package/docs/integration/extension-sdk-en.md +377 -0
- package/docs/integration/local-integration-ch.md +63 -9
- package/docs/integration/local-integration-en.md +89 -13
- package/docs/integration/repository-split-ch.md +40 -0
- package/docs/integration/repository-split-en.md +23 -0
- package/docs/integration/shareable-export-ch.md +46 -2
- package/docs/integration/shareable-export-en.md +46 -2
- package/docs/reference/computations-formatting-ch.md +4 -2
- package/docs/reference/computations-formatting-en.md +4 -2
- package/docs/reference/constraints-collections-ch.md +21 -1
- package/docs/reference/constraints-collections-en.md +21 -1
- package/docs/reference/diagnostics-counting-ch.md +1 -1
- package/docs/reference/diagnostics-counting-en.md +1 -1
- package/docs/reference/html-compatibility-ch.md +4 -0
- package/docs/reference/html-compatibility-en.md +4 -0
- package/docs/reference/local-components-v2-ch.md +2 -0
- package/docs/reference/local-components-v2-en.md +2 -0
- package/docs/reference/local-interaction-syntax-ch.md +51 -15
- package/docs/reference/local-interaction-syntax-en.md +58 -14
- package/docs/reference/theme-protocol-ch.md +79 -7
- package/docs/reference/theme-protocol-en.md +79 -7
- package/docs/reference/tolerance-ch.md +64 -0
- package/docs/reference/tolerance-en.md +57 -0
- package/docs/releases/release-0.4.0-ch.md +2 -0
- package/docs/releases/release-0.4.0-en.md +2 -0
- package/docs/releases/release-0.4.1-ch.md +2 -0
- package/docs/releases/release-0.4.1-en.md +2 -0
- package/docs/releases/release-0.5.0-ch.md +2 -0
- package/docs/releases/release-0.5.0-en.md +2 -0
- package/docs/releases/release-0.5.1-ch.md +2 -0
- package/docs/releases/release-0.5.1-en.md +2 -0
- package/docs/releases/release-0.5.2-ch.md +2 -0
- package/docs/releases/release-0.5.2-en.md +2 -0
- package/docs/releases/release-0.5.3-ch.md +2 -0
- package/docs/releases/release-0.5.3-en.md +2 -0
- package/docs/releases/release-0.6.0-ch.md +2 -0
- package/docs/releases/release-0.6.0-en.md +2 -0
- package/docs/releases/release-0.6.1-ch.md +2 -0
- package/docs/releases/release-0.6.1-en.md +2 -0
- package/docs/releases/release-0.7.0-ch.md +86 -0
- package/docs/releases/release-0.7.0-en.md +86 -0
- package/docs/releases/release-0.8.0-ch.md +126 -0
- package/docs/releases/release-0.8.0-en.md +126 -0
- package/examples/component-package/LICENSE +21 -0
- package/examples/component-package/NOTICES.md +12 -0
- package/examples/component-package/README-ch.md +101 -0
- package/examples/component-package/README.md +133 -0
- package/examples/component-package/package.json +35 -0
- package/examples/component-package/sample/document.reactive.md +14 -0
- package/examples/component-package/scripts/build-export.mjs +44 -0
- package/examples/component-package/scripts/build.mjs +130 -0
- package/examples/component-package/scripts/verify.mjs +257 -0
- package/examples/component-package/src/assets/notice.svg +4 -0
- package/examples/component-package/src/component.css +40 -0
- package/examples/component-package/src/components.tsx +105 -0
- package/examples/component-package/src/harness.tsx +34 -0
- package/examples/component-package/src/manifests.ts +71 -0
- package/examples/component-package/src/node-entry.ts +18 -0
- package/examples/component-package/src/sample.ts +4 -0
- package/examples/component-package/src/theme.css +44 -0
- package/examples/component-package/src/theme.ts +22 -0
- package/examples/component-package/tsconfig.json +15 -0
- package/examples/conformance/README-ch.md +55 -0
- package/examples/conformance/README.md +2 -0
- package/examples/conformance/local-draft-3.json +296 -0
- package/examples/game-2048-package/LICENSE +21 -0
- package/examples/game-2048-package/NOTICES.md +11 -0
- package/examples/game-2048-package/README-ch.md +97 -0
- package/examples/game-2048-package/README.md +102 -0
- package/examples/game-2048-package/package.json +35 -0
- package/examples/game-2048-package/sample/document.reactive.md +17 -0
- package/examples/game-2048-package/scripts/build-export.mjs +44 -0
- package/examples/game-2048-package/scripts/build.mjs +130 -0
- package/examples/game-2048-package/scripts/verify.mjs +180 -0
- package/examples/game-2048-package/src/component.css +161 -0
- package/examples/game-2048-package/src/components.tsx +326 -0
- package/examples/game-2048-package/src/game-engine.ts +228 -0
- package/examples/game-2048-package/src/harness.tsx +34 -0
- package/examples/game-2048-package/src/manifest.ts +85 -0
- package/examples/game-2048-package/src/node-entry.ts +30 -0
- package/examples/game-2048-package/src/sample.ts +4 -0
- package/examples/game-2048-package/tsconfig.json +15 -0
- package/examples/integration/README-ch.md +63 -0
- package/examples/integration/README.md +17 -1
- package/examples/integration/extension-sdk/README-ch.md +24 -0
- package/examples/integration/extension-sdk/README.md +24 -0
- package/examples/integration/extension-sdk/advanced-standalone.ts +6 -0
- package/examples/integration/extension-sdk/advanced.tsx +101 -0
- package/examples/integration/extension-sdk/env.d.ts +2 -0
- package/examples/integration/extension-sdk/extensions.tsx +97 -0
- package/examples/integration/extension-sdk/index.html +3 -0
- package/examples/integration/extension-sdk/main.tsx +10 -0
- package/examples/integration/extension-sdk/package.json +6 -0
- package/examples/integration/extension-sdk/standalone.ts +7 -0
- package/examples/integration/extension-sdk/tsconfig.json +8 -0
- package/examples/integration/react-comprehensive/index.html +12 -0
- package/examples/integration/react-comprehensive/main.jsx +123 -0
- package/examples/integration/react-comprehensive/package.json +18 -0
- package/examples/local/README-ch.md +76 -0
- package/examples/local/README.md +4 -2
- package/examples/local/scenarios/blog-zh.reactive.md +71 -0
- package/examples/local/scenarios/blog.reactive.md +71 -0
- package/examples/local/scenarios/classroom-zh.reactive.md +97 -0
- package/examples/local/scenarios/classroom.reactive.md +97 -0
- package/examples/local/scenarios/proposal-zh.reactive.md +79 -0
- package/examples/local/scenarios/proposal.reactive.md +79 -0
- package/examples/local/scenarios/survey-zh.reactive.md +74 -0
- package/examples/local/scenarios/survey.reactive.md +74 -0
- package/examples/local/showcase/README-ch.md +22 -0
- package/examples/local/showcase/README.md +9 -3
- package/examples/local/showcase/features.reactive.md +637 -0
- package/examples/local/showcase/zh/features.reactive.md +637 -0
- package/examples/sci-fi-theme/README-ch.md +131 -0
- package/examples/sci-fi-theme/README.md +146 -0
- package/examples/sci-fi-theme/demo/demo.css +532 -0
- package/examples/sci-fi-theme/demo/document.reactive.md +185 -0
- package/examples/sci-fi-theme/demo/index.html +13 -0
- package/examples/sci-fi-theme/demo/main.tsx +180 -0
- package/examples/sci-fi-theme/docs/design-system-ch.md +245 -0
- package/examples/sci-fi-theme/docs/design-system.md +474 -0
- package/examples/sci-fi-theme/package.json +27 -0
- package/examples/sci-fi-theme/scripts/screenshot.mjs +98 -0
- package/examples/sci-fi-theme/src/components.css +1460 -0
- package/examples/sci-fi-theme/src/index.ts +6 -0
- package/examples/sci-fi-theme/src/sci-fi.css +5 -0
- package/examples/sci-fi-theme/src/theme.ts +37 -0
- package/examples/sci-fi-theme/src/tokens.css +408 -0
- package/examples/sci-fi-theme/tsconfig.json +20 -0
- package/examples/sci-fi-theme/vite.config.ts +24 -0
- package/examples/tetris-package/LICENSE +21 -0
- package/examples/tetris-package/NOTICES.md +11 -0
- package/examples/tetris-package/README-ch.md +91 -0
- package/examples/tetris-package/README.md +95 -0
- package/examples/tetris-package/package.json +35 -0
- package/examples/tetris-package/sample/document.reactive.md +16 -0
- package/examples/tetris-package/scripts/build-export.mjs +44 -0
- package/examples/tetris-package/scripts/build.mjs +130 -0
- package/examples/tetris-package/scripts/verify.mjs +173 -0
- package/examples/tetris-package/src/component.css +145 -0
- package/examples/tetris-package/src/components.tsx +334 -0
- package/examples/tetris-package/src/harness.tsx +34 -0
- package/examples/tetris-package/src/manifests.ts +93 -0
- package/examples/tetris-package/src/node-entry.ts +16 -0
- package/examples/tetris-package/src/sample.ts +4 -0
- package/examples/tetris-package/src/tetris-engine.ts +325 -0
- package/examples/tetris-package/tsconfig.json +15 -0
- package/package.json +98 -44
- package/dist-library/compiler-Cm3ppMxG.js +0 -46044
- package/dist-library/react-Bh7_oxZp.js +0 -59655
- package/dist-library/reactive-md-editor.css +0 -2
- package/dist-library/reactive-md-editor.js +0 -3853
- package/dist-library/runtime-DlFYQ4s_.js +0 -498
- package/dist-library/types/editor/ReactiveMarkdownEditor.d.ts +0 -7
- package/dist-library/types/editor/editor-toolbar.d.ts +0 -24
- package/dist-library/types/editor/editor-view-bar.d.ts +0 -11
- package/dist-library/types/editor/extended-native-components.d.ts +0 -58
- package/dist-library/types/editor/index.d.ts +0 -9
- package/dist-library/types/editor/locale.d.ts +0 -13
- package/dist-library/types/editor/source-authoring.d.ts +0 -59
- package/dist-library/types/editor/types.d.ts +0 -48
- package/dist-library/types/editor/use-gutter-metrics.d.ts +0 -5
- package/dist-library/types/editor/use-source-history.d.ts +0 -16
- package/dist-library/types/local/compiler.d.ts +0 -4
- package/dist-library/types/local/math.d.ts +0 -48
- package/dist-library/types/local/options.d.ts +0 -36
- package/dist-library/types/local/parser.d.ts +0 -13
- package/dist-library/types/local/render-types.d.ts +0 -27
- package/dist-library/types/local/runtime.d.ts +0 -2
- package/dist-library/types/local/schema.d.ts +0 -77
- package/dist-library/types/local/types.d.ts +0 -263
- package/dist-library/types/local/visuals.d.ts +0 -12
- package/dist-library/types/local/worker.d.ts +0 -98
- package/docs/development/performance-ch.md +0 -76
- package/docs/development/performance-en.md +0 -76
- /package/dist-library/types/{editor → authoring}/command-types.d.ts +0 -0
- /package/dist-library/types/{editor → authoring}/editor-commands.d.ts +0 -0
- /package/dist-library/types/local/{locale.d.ts → contracts/locale.d.ts} +0 -0
- /package/dist-library/types/local/{collection-functions.d.ts → evaluation/collection-functions.d.ts} +0 -0
- /package/dist-library/types/local/{data-functions.d.ts → evaluation/data-functions.d.ts} +0 -0
- /package/dist-library/types/local/{dates.d.ts → evaluation/dates.d.ts} +0 -0
- /package/dist-library/types/local/{formatting.d.ts → evaluation/formatting.d.ts} +0 -0
- /package/dist-library/types/local/{html-names.d.ts → html/html-names.d.ts} +0 -0
- /package/dist-library/types/local/{text-length.d.ts → source/text-length.d.ts} +0 -0
- /package/dist-library/types/local/{colors.d.ts → theme/colors.d.ts} +0 -0
- /package/dist-library/types/local/{code-block.d.ts → widgets/code-block.d.ts} +0 -0
- /package/dist-library/types/local/{code-languages.d.ts → widgets/code-languages.d.ts} +0 -0
- /package/dist-library/types/local/{diagram-layout.d.ts → widgets/diagram-layout.d.ts} +0 -0
- /package/dist-library/types/local/{image-view.d.ts → widgets/image-view.d.ts} +0 -0
- /package/dist-library/types/local/{math-view.d.ts → widgets/math-view.d.ts} +0 -0
- /package/dist-library/types/local/{table-surface.d.ts → widgets/table-surface.d.ts} +0 -0
|
@@ -0,0 +1,3005 @@
|
|
|
1
|
+
import { A as e, D as t, F as n, G as r, H as i, M as a, O as o, P as s, Q as c, W as l, a as u, i as d, j as f, ot as ee, q as p, rt as te, z as m } from "./identity-MYJXKSkB.js";
|
|
2
|
+
// src/local/configuration/diagnostic-messages.ts
|
|
3
|
+
var h = {
|
|
4
|
+
"local.version.unsupported": {
|
|
5
|
+
en: "This reader accepts {supported}; migrate {declared} or use a compatible reader.",
|
|
6
|
+
zh: "此阅读器支持 {supported};请迁移 {declared} 或使用兼容的阅读器。"
|
|
7
|
+
},
|
|
8
|
+
"local.version.malformed": {
|
|
9
|
+
en: "Use <!-- reactive-md: local-draft-3 --> on one line.",
|
|
10
|
+
zh: "请在单独一行使用 <!-- reactive-md: local-draft-3 -->。"
|
|
11
|
+
},
|
|
12
|
+
"local.version.duplicate": {
|
|
13
|
+
en: "Only one source syntax declaration is allowed.",
|
|
14
|
+
zh: "源码只能声明一次语法版本。"
|
|
15
|
+
},
|
|
16
|
+
"local.version.placement": {
|
|
17
|
+
en: "The syntax declaration must be on its own line before the theme and document body.",
|
|
18
|
+
zh: "语法版本声明必须独占一行,位于主题声明和正文之前。"
|
|
19
|
+
},
|
|
20
|
+
"local.upgrade.from-version": {
|
|
21
|
+
en: "Cannot migrate from {from}: {detail}.",
|
|
22
|
+
zh: "无法从 {from} 迁移:{detail}。"
|
|
23
|
+
},
|
|
24
|
+
"local.upgrade.reserved-binding": {
|
|
25
|
+
en: "Binding {name} becomes reserved in local-draft-2; rename it with a compatible old editor before migration.",
|
|
26
|
+
zh: "绑定 {name} 在 local-draft-2 中成为保留名;迁移前请用兼容旧版本的编辑器重命名。"
|
|
27
|
+
},
|
|
28
|
+
"local.upgrade.tag": {
|
|
29
|
+
en: "Tag {name} was inert in the older revision and becomes active in a newer one; preserve it as literal code before migration.",
|
|
30
|
+
zh: "标签 {name} 在旧版本中不执行,在较新版本中会激活;迁移前请将其保留为代码原文。"
|
|
31
|
+
},
|
|
32
|
+
"local.upgrade.text-length": {
|
|
33
|
+
en: "Text length constraints change from UTF-16 units to Unicode code points; explicitly accept this semantic change before migration.",
|
|
34
|
+
zh: "文本长度约束从 UTF-16 单元改为 Unicode 码点计数;迁移前须明确接受这一语义变化。"
|
|
35
|
+
},
|
|
36
|
+
"local.upgrade.expression": {
|
|
37
|
+
en: "This expression uses array syntax or a function introduced in local-draft-2; it is outside automatic draft-1 migration.",
|
|
38
|
+
zh: "此表达式使用了 local-draft-2 新增的数组语法或函数,不属于 draft-1 自动迁移范围。"
|
|
39
|
+
},
|
|
40
|
+
"local.upgrade.version-missing": {
|
|
41
|
+
en: "The source has no syntax declaration; migration will pin {version}.",
|
|
42
|
+
zh: "源码尚未声明语法版本;迁移将固定为 {version}。"
|
|
43
|
+
},
|
|
44
|
+
"capability.html": {
|
|
45
|
+
en: "This compiler assembly does not include the native HTML document branch.",
|
|
46
|
+
zh: "当前编译器装配不包含原生 HTML 文档分支。"
|
|
47
|
+
},
|
|
48
|
+
"capability.plot": {
|
|
49
|
+
en: "This compiler assembly does not include plot formula support.",
|
|
50
|
+
zh: "当前编译器装配不包含绘图公式支持。"
|
|
51
|
+
},
|
|
52
|
+
"parse.sourceType": {
|
|
53
|
+
en: "Document source must be a string.",
|
|
54
|
+
zh: "文档源必须是字符串。"
|
|
55
|
+
},
|
|
56
|
+
"parse.markdownFailed": {
|
|
57
|
+
en: "Cannot parse the Markdown document.",
|
|
58
|
+
zh: "无法解析 Markdown 文档。"
|
|
59
|
+
},
|
|
60
|
+
"parse.failed": {
|
|
61
|
+
en: "Cannot parse document: {detail}",
|
|
62
|
+
zh: "无法解析文档:{detail}"
|
|
63
|
+
},
|
|
64
|
+
"budget.document": {
|
|
65
|
+
en: "Document exceeds the {limit}-character limit.",
|
|
66
|
+
zh: "文档超过 {limit} 个字符的上限。"
|
|
67
|
+
},
|
|
68
|
+
"budget.syntaxNodes": {
|
|
69
|
+
en: "Syntax nodes exceed the limit of {limit}.",
|
|
70
|
+
zh: "语法节点数量超过上限 {limit}。"
|
|
71
|
+
},
|
|
72
|
+
"budget.parseWork": {
|
|
73
|
+
en: "Parsing work exceeds the limit of {limit}.",
|
|
74
|
+
zh: "解析工作量超过上限 {limit}。"
|
|
75
|
+
},
|
|
76
|
+
"budget.markdownDepth": {
|
|
77
|
+
en: "Markdown nesting exceeds the {limit}-level limit.",
|
|
78
|
+
zh: "Markdown 嵌套超过 {limit} 层上限。"
|
|
79
|
+
},
|
|
80
|
+
"budget.nesting": {
|
|
81
|
+
en: "Component nesting exceeds the {limit}-level limit.",
|
|
82
|
+
zh: "组件嵌套超过 {limit} 层上限。"
|
|
83
|
+
},
|
|
84
|
+
"options.notObject": {
|
|
85
|
+
en: "Compile options must be an object.",
|
|
86
|
+
zh: "编译选项必须是对象。"
|
|
87
|
+
},
|
|
88
|
+
"options.limitsNotObject": {
|
|
89
|
+
en: "Compile option limits must be an object.",
|
|
90
|
+
zh: "编译选项 limits 必须是对象。"
|
|
91
|
+
},
|
|
92
|
+
"options.maxSyntaxNodes": {
|
|
93
|
+
en: "Compile option limits.maxSyntaxNodes must be a positive safe integer.",
|
|
94
|
+
zh: "编译选项 limits.maxSyntaxNodes 必须是正安全整数。"
|
|
95
|
+
},
|
|
96
|
+
"options.maxParseWork": {
|
|
97
|
+
en: "Compile option limits.maxParseWork must be a positive safe integer.",
|
|
98
|
+
zh: "编译选项 limits.maxParseWork 必须是正安全整数。"
|
|
99
|
+
},
|
|
100
|
+
"options.maxMarkdownDepth": {
|
|
101
|
+
en: "Compile option limits.maxMarkdownDepth must be a positive safe integer.",
|
|
102
|
+
zh: "编译选项 limits.maxMarkdownDepth 必须是正安全整数。"
|
|
103
|
+
},
|
|
104
|
+
"options.unknownLimit": {
|
|
105
|
+
en: "Compile option limits.{detail} is not supported.",
|
|
106
|
+
zh: "编译选项 limits.{detail} 不受支持。"
|
|
107
|
+
},
|
|
108
|
+
"options.hostComponents": {
|
|
109
|
+
en: "Compile option hostComponents is invalid: {detail}",
|
|
110
|
+
zh: "编译选项 hostComponents 无效:{detail}"
|
|
111
|
+
},
|
|
112
|
+
"theme.expression": {
|
|
113
|
+
en: "Theme names must be static text, not expressions.",
|
|
114
|
+
zh: "主题名称必须是静态文本,不能是表达式。"
|
|
115
|
+
},
|
|
116
|
+
"theme.nameRequired": {
|
|
117
|
+
en: "A theme declaration requires a quoted name attribute.",
|
|
118
|
+
zh: "主题声明需要一个带引号的 name 属性。"
|
|
119
|
+
},
|
|
120
|
+
"theme.attributeOnly": {
|
|
121
|
+
en: "Theme declarations only accept a quoted name attribute.",
|
|
122
|
+
zh: "主题声明只接受带引号的 name 属性。"
|
|
123
|
+
},
|
|
124
|
+
"theme.nameInvalid": {
|
|
125
|
+
en: "Theme name \"{name}\" must use lowercase letters, digits and single hyphens (maximum {limit} characters).",
|
|
126
|
+
zh: "主题名称“{name}”只能使用小写字母、数字和单个连字符(最多 {limit} 个字符)。"
|
|
127
|
+
},
|
|
128
|
+
"theme.malformedMissingClose": {
|
|
129
|
+
en: "Theme declaration is missing >.",
|
|
130
|
+
zh: "主题声明缺少 >。"
|
|
131
|
+
},
|
|
132
|
+
"theme.malformedClosing": {
|
|
133
|
+
en: "A theme declaration cannot be a closing tag.",
|
|
134
|
+
zh: "主题声明不能是结束标签。"
|
|
135
|
+
},
|
|
136
|
+
"theme.malformedStandalone": {
|
|
137
|
+
en: "A theme declaration must be on its own line before the document content.",
|
|
138
|
+
zh: "主题声明必须单独占一行并位于文档内容之前。"
|
|
139
|
+
},
|
|
140
|
+
"theme.duplicateDeclaration": {
|
|
141
|
+
en: "Only one theme declaration is allowed before the document content; this declaration is ignored.",
|
|
142
|
+
zh: "文档内容之前只允许一个主题声明;此声明将被忽略。"
|
|
143
|
+
},
|
|
144
|
+
"theme.late": {
|
|
145
|
+
en: "Theme declarations after document content are ignored.",
|
|
146
|
+
zh: "文档内容之后的主题声明将被忽略。"
|
|
147
|
+
},
|
|
148
|
+
"theme.nested": {
|
|
149
|
+
en: "Theme declarations inside document content are ignored.",
|
|
150
|
+
zh: "文档内容内部的主题声明将被忽略。"
|
|
151
|
+
},
|
|
152
|
+
"theme.invalidDeclaration": {
|
|
153
|
+
en: "Invalid theme declaration.",
|
|
154
|
+
zh: "无效的主题声明。"
|
|
155
|
+
},
|
|
156
|
+
"attribute.lowercase": {
|
|
157
|
+
en: "Attribute names must use lowercase kebab-case.",
|
|
158
|
+
zh: "属性名必须使用小写 kebab-case。"
|
|
159
|
+
},
|
|
160
|
+
"budget.attributeName": {
|
|
161
|
+
en: "Attribute name exceeds the {limit}-character limit.",
|
|
162
|
+
zh: "属性名超过 {limit} 个字符的上限。"
|
|
163
|
+
},
|
|
164
|
+
"attribute.nameInvalid": {
|
|
165
|
+
en: "Attribute name {name} must use lowercase kebab-case.",
|
|
166
|
+
zh: "属性名 {name} 必须使用小写 kebab-case。"
|
|
167
|
+
},
|
|
168
|
+
"attribute.valueQuoted": {
|
|
169
|
+
en: "Attribute {name} value must be quoted.",
|
|
170
|
+
zh: "属性 {name} 的值必须加引号。"
|
|
171
|
+
},
|
|
172
|
+
"attribute.valueUnclosed": {
|
|
173
|
+
en: "Attribute {name} is missing a closing quote.",
|
|
174
|
+
zh: "属性 {name} 缺少结束引号。"
|
|
175
|
+
},
|
|
176
|
+
"attribute.duplicate": {
|
|
177
|
+
en: "Duplicate attribute {name}.",
|
|
178
|
+
zh: "重复的属性 {name}。"
|
|
179
|
+
},
|
|
180
|
+
"attribute.separator": {
|
|
181
|
+
en: "Attributes must be separated by whitespace.",
|
|
182
|
+
zh: "属性之间必须用空白分隔。"
|
|
183
|
+
},
|
|
184
|
+
"budget.tagName": {
|
|
185
|
+
en: "Tag name exceeds the {limit}-character limit.",
|
|
186
|
+
zh: "标签名超过 {limit} 个字符的上限。"
|
|
187
|
+
},
|
|
188
|
+
"tag.missingClose": {
|
|
189
|
+
en: "Tag {name} is missing >.",
|
|
190
|
+
zh: "标签 {name} 缺少 >。"
|
|
191
|
+
},
|
|
192
|
+
"tag.closingAttributes": {
|
|
193
|
+
en: "Closing tag </{name}> cannot have attributes.",
|
|
194
|
+
zh: "结束标签 </{name}> 不能带属性。"
|
|
195
|
+
},
|
|
196
|
+
"tag.nameInvalid": {
|
|
197
|
+
en: "Tag name {name} must use lowercase kebab-case.",
|
|
198
|
+
zh: "标签名 {name} 必须使用小写 kebab-case。"
|
|
199
|
+
},
|
|
200
|
+
"tag.unclosedPaired": {
|
|
201
|
+
en: "<{name}> is missing </{name}>.",
|
|
202
|
+
zh: "<{name}> 缺少 </{name}>。"
|
|
203
|
+
},
|
|
204
|
+
"tag.mismatchRoot": {
|
|
205
|
+
en: "Closing tag </{name}> does not match the document root.",
|
|
206
|
+
zh: "结束标签 </{name}> 与文档根不匹配。"
|
|
207
|
+
},
|
|
208
|
+
"tag.mismatchParent": {
|
|
209
|
+
en: "Closing tag </{name}> does not match <{parent}>.",
|
|
210
|
+
zh: "结束标签 </{name}> 与 <{parent}> 不匹配。"
|
|
211
|
+
},
|
|
212
|
+
"tag.requiresClose": {
|
|
213
|
+
en: "<{name}> requires a closing tag.",
|
|
214
|
+
zh: "<{name}> 需要结束标签。"
|
|
215
|
+
},
|
|
216
|
+
"footnote.unsupported": {
|
|
217
|
+
en: "Footnotes are not part of the local interaction syntax and are shown as source.",
|
|
218
|
+
zh: "脚注不属于本地交互语法,将按源文本显示。"
|
|
219
|
+
},
|
|
220
|
+
"interpolation.unclosed": {
|
|
221
|
+
en: "Interpolation is missing }}.",
|
|
222
|
+
zh: "插值缺少 }}。"
|
|
223
|
+
},
|
|
224
|
+
"math.unclosed": {
|
|
225
|
+
en: "Formula is missing its closing delimiter.",
|
|
226
|
+
zh: "公式缺少结束定界符。"
|
|
227
|
+
},
|
|
228
|
+
"math.whitespace": {
|
|
229
|
+
en: "Inline math cannot start or end with whitespace.",
|
|
230
|
+
zh: "行内公式不能以空白开头或结尾。"
|
|
231
|
+
},
|
|
232
|
+
"budget.math": {
|
|
233
|
+
en: "Formula exceeds the {limit}-character limit.",
|
|
234
|
+
zh: "公式超过 {limit} 个字符的上限。"
|
|
235
|
+
},
|
|
236
|
+
"html.raw": {
|
|
237
|
+
en: "Raw HTML is not part of the local interaction syntax.",
|
|
238
|
+
zh: "原始 HTML 不属于本地交互语法。"
|
|
239
|
+
},
|
|
240
|
+
"html.fallback": {
|
|
241
|
+
en: "Native HTML was safely converted to inert source text.",
|
|
242
|
+
zh: "原生 HTML 已安全回退为惰性源码文本。"
|
|
243
|
+
},
|
|
244
|
+
"html.fallbackAttribute": {
|
|
245
|
+
en: "Native HTML attribute {name} is unsupported; the element was safely converted to inert source text.",
|
|
246
|
+
zh: "原生 HTML 属性 {name} 不受支持;该元素已安全回退为惰性源码文本。"
|
|
247
|
+
},
|
|
248
|
+
"html.table.structure": {
|
|
249
|
+
en: "Invalid native HTML table structure in <{tag}>.",
|
|
250
|
+
zh: "原生 HTML 表格的 <{tag}> 结构无效。"
|
|
251
|
+
},
|
|
252
|
+
"html.table.mixed": {
|
|
253
|
+
en: "Keep text and Markdown inside cells or captions; native HTML table structure cannot mix with Markdown table rows.",
|
|
254
|
+
zh: "文字和 Markdown 应写在单元格或标题内;原生 HTML 表格结构不能混用 Markdown 表格行。"
|
|
255
|
+
},
|
|
256
|
+
"html.table.attribute": {
|
|
257
|
+
en: "Attribute {name} is not supported on native HTML <{tag}>. ReactiveMD table options require a Markdown table body.",
|
|
258
|
+
zh: "原生 HTML <{tag}> 不支持属性 {name}。ReactiveMD 表格选项只适用于 Markdown 表格正文。"
|
|
259
|
+
},
|
|
260
|
+
"html.table.value": {
|
|
261
|
+
en: "Invalid value for {name} on native HTML <{tag}>.",
|
|
262
|
+
zh: "原生 HTML <{tag}> 的 {name} 属性值无效。"
|
|
263
|
+
},
|
|
264
|
+
"html.table.unclosed": {
|
|
265
|
+
en: "Native HTML table is missing </table>.",
|
|
266
|
+
zh: "原生 HTML 表格缺少 </table>。"
|
|
267
|
+
},
|
|
268
|
+
"html.extended": {
|
|
269
|
+
en: "HTML element <{name}> requires enableExtendedHtml in this mode; it is shown as source.",
|
|
270
|
+
zh: "此模式下 HTML 元素 <{name}> 需要启用 enableExtendedHtml;已按源码显示。"
|
|
271
|
+
},
|
|
272
|
+
"html.attribute": {
|
|
273
|
+
en: "HTML attribute {name} on <{tag}> is not supported; the element is shown as source.",
|
|
274
|
+
zh: "<{tag}> 上的 HTML 属性 {name} 不受支持;该元素已按源码显示。"
|
|
275
|
+
},
|
|
276
|
+
"html.unsafeUrl": {
|
|
277
|
+
en: "Unsafe URL in attribute {name} was removed.",
|
|
278
|
+
zh: "属性 {name} 中的不安全 URL 已移除。"
|
|
279
|
+
},
|
|
280
|
+
"html.capability": {
|
|
281
|
+
en: "Author {feature} was disabled by the compile options.",
|
|
282
|
+
zh: "编译选项已禁用作者提供的{feature}。"
|
|
283
|
+
},
|
|
284
|
+
"recovery.unclosed": {
|
|
285
|
+
en: "An unclosed RMD fragment was rendered as literal source; its components and expressions are inactive.",
|
|
286
|
+
zh: "未闭合的 RMD 片段已按原文显示,片段中的组件和表达式不执行。"
|
|
287
|
+
},
|
|
288
|
+
"recovery.mismatch": {
|
|
289
|
+
en: "A fragment with mismatched tags was rendered as literal source; its components and expressions are inactive.",
|
|
290
|
+
zh: "标签不匹配的片段已按原文显示,片段中的组件和表达式不执行。"
|
|
291
|
+
},
|
|
292
|
+
"recovery.strayClose": {
|
|
293
|
+
en: "A stray closing tag was rendered as literal source.",
|
|
294
|
+
zh: "孤立的结束标签已按原文显示。"
|
|
295
|
+
},
|
|
296
|
+
"recovery.htmlRepair": {
|
|
297
|
+
en: "Malformed native HTML was structurally repaired for display.",
|
|
298
|
+
zh: "HTML 结构已修复后显示。"
|
|
299
|
+
},
|
|
300
|
+
"recovery.htmlLiteral": {
|
|
301
|
+
en: "Native HTML could not be safely repaired and was rendered as literal source.",
|
|
302
|
+
zh: "HTML 片段无法安全恢复,已按原文显示。"
|
|
303
|
+
},
|
|
304
|
+
"options.htmlFlag": {
|
|
305
|
+
en: "Compile option {name} must be a boolean.",
|
|
306
|
+
zh: "编译选项 {name} 必须是布尔值。"
|
|
307
|
+
},
|
|
308
|
+
"options.markdownBreaks": {
|
|
309
|
+
en: "Compile option markdownBreaks must be a boolean.",
|
|
310
|
+
zh: "编译选项 markdownBreaks 必须为布尔值。"
|
|
311
|
+
},
|
|
312
|
+
"options.strict": {
|
|
313
|
+
en: "Compile option strict must be a boolean.",
|
|
314
|
+
zh: "编译选项 strict 必须为布尔值。"
|
|
315
|
+
},
|
|
316
|
+
"component.unknownSuggestion": {
|
|
317
|
+
en: "Unknown component <{name}>. Did you mean <{suggestion}>?",
|
|
318
|
+
zh: "未知组件 <{name}>。是否想使用 <{suggestion}>?"
|
|
319
|
+
},
|
|
320
|
+
"component.unknownPlain": {
|
|
321
|
+
en: "Unknown component <{name}>. This mode only accepts local interaction components.",
|
|
322
|
+
zh: "未知组件 <{name}>。此模式只接受本地交互组件。"
|
|
323
|
+
},
|
|
324
|
+
"legacy.fence": {
|
|
325
|
+
en: "Legacy reactive-md configuration fences (state/data/computed/actions, etc.) are not part of the local interaction syntax; select legacy mode explicitly in the host.",
|
|
326
|
+
zh: "旧版 reactive-md 配置围栏(state/data/computed/actions 等)不属于本地交互语法;请在宿主中显式选择旧版模式。"
|
|
327
|
+
},
|
|
328
|
+
"attribute.unknownSuggestion": {
|
|
329
|
+
en: "Component <{component}> does not support attribute {name}. Did you mean {suggestion}?",
|
|
330
|
+
zh: "组件 <{component}> 不支持属性 {name}。是否想使用 {suggestion}?"
|
|
331
|
+
},
|
|
332
|
+
"attribute.unknownPlain": {
|
|
333
|
+
en: "Component <{component}> does not support attribute {name}.",
|
|
334
|
+
zh: "组件 <{component}> 不支持属性 {name}。"
|
|
335
|
+
},
|
|
336
|
+
"budget.attribute": {
|
|
337
|
+
en: "Attribute {name} on component <{component}> exceeds the {limit}-character limit.",
|
|
338
|
+
zh: "组件 <{component}> 的属性 {name} 超过 {limit} 个字符的上限。"
|
|
339
|
+
},
|
|
340
|
+
"attribute.color": {
|
|
341
|
+
en: "Attribute {name} on component <{component}> must be a standard CSS named color or #RGB/#RRGGBB, got \"{value}\".",
|
|
342
|
+
zh: "组件 <{component}> 的属性 {name} 必须是标准 CSS 命名颜色或 #RGB/#RRGGBB,当前为“{value}”。"
|
|
343
|
+
},
|
|
344
|
+
"attribute.required": {
|
|
345
|
+
en: "Component <{component}> is missing required attribute {name}.",
|
|
346
|
+
zh: "组件 <{component}> 缺少必需属性 {name}。"
|
|
347
|
+
},
|
|
348
|
+
"label.requiredMissing": {
|
|
349
|
+
en: "Component <{name}> requires a label.",
|
|
350
|
+
zh: "组件 <{name}> 需要 label。"
|
|
351
|
+
},
|
|
352
|
+
"label.requiredEmpty": {
|
|
353
|
+
en: "Component <{name}> label cannot be empty.",
|
|
354
|
+
zh: "组件 <{name}> 的 label 不能为空。"
|
|
355
|
+
},
|
|
356
|
+
"attribute.static": {
|
|
357
|
+
en: "Attribute {name} is static and cannot contain interpolations.",
|
|
358
|
+
zh: "属性 {name} 是静态的,不能包含插值。"
|
|
359
|
+
},
|
|
360
|
+
"host.attributeUnknown": {
|
|
361
|
+
en: "Component <{component}> does not support attribute {name}.",
|
|
362
|
+
zh: "组件 <{component}> 不支持属性 {name}。"
|
|
363
|
+
},
|
|
364
|
+
"host.attributeRequired": {
|
|
365
|
+
en: "Component <{component}> is missing required attribute {name}.",
|
|
366
|
+
zh: "组件 <{component}> 缺少必需属性 {name}。"
|
|
367
|
+
},
|
|
368
|
+
"host.attributeStatic": {
|
|
369
|
+
en: "Attribute {name} is static and cannot contain interpolations.",
|
|
370
|
+
zh: "属性 {name} 是静态的,不能包含插值。"
|
|
371
|
+
},
|
|
372
|
+
"host.attributeType": {
|
|
373
|
+
en: "Attribute {name} requires a {kind}, got \"{value}\".",
|
|
374
|
+
zh: "属性 {name} 需要 {kind},当前为“{value}”。"
|
|
375
|
+
},
|
|
376
|
+
"host.attributeEnum": {
|
|
377
|
+
en: "Attribute {name} must be one of {values}, got \"{value}\".",
|
|
378
|
+
zh: "属性 {name} 必须是 {values} 之一,当前为“{value}”。"
|
|
379
|
+
},
|
|
380
|
+
"host.attributePattern": {
|
|
381
|
+
en: "Attribute {name} must match pattern {pattern}.",
|
|
382
|
+
zh: "属性 {name} 必须匹配模式 {pattern}。"
|
|
383
|
+
},
|
|
384
|
+
"host.attributeInterpolation": {
|
|
385
|
+
en: "Attribute {name} must be a literal matching {pattern} or one full interpolation.",
|
|
386
|
+
zh: "属性 {name} 必须是匹配 {pattern} 的字面值,或一个完整插值。"
|
|
387
|
+
},
|
|
388
|
+
"expression.emptyAttribute": {
|
|
389
|
+
en: "Attribute {name} interpolation cannot be empty.",
|
|
390
|
+
zh: "属性 {name} 的插值不能为空。"
|
|
391
|
+
},
|
|
392
|
+
"expression.emptyInterpolation": {
|
|
393
|
+
en: "Interpolation expression cannot be empty.",
|
|
394
|
+
zh: "插值表达式不能为空。"
|
|
395
|
+
},
|
|
396
|
+
"attribute.numberInvalid": {
|
|
397
|
+
en: "Attribute {name} requires a number, got \"{value}\".",
|
|
398
|
+
zh: "属性 {name} 需要数字,当前为“{value}”。"
|
|
399
|
+
},
|
|
400
|
+
"attribute.numberInterpolationInvalid": {
|
|
401
|
+
en: "Attribute {name} requires a number or a full number interpolation, got \"{value}\".",
|
|
402
|
+
zh: "属性 {name} 需要数字或完整的数字插值,当前为“{value}”。"
|
|
403
|
+
},
|
|
404
|
+
"attribute.integer": {
|
|
405
|
+
en: "Attribute {name} requires an integer.",
|
|
406
|
+
zh: "属性 {name} 需要整数。"
|
|
407
|
+
},
|
|
408
|
+
"attribute.positive": {
|
|
409
|
+
en: "Attribute {name} requires a positive number.",
|
|
410
|
+
zh: "属性 {name} 需要正数。"
|
|
411
|
+
},
|
|
412
|
+
"attribute.rangeMin": {
|
|
413
|
+
en: "Attribute {name} must be at least {min}.",
|
|
414
|
+
zh: "属性 {name} 必须至少为 {min}。"
|
|
415
|
+
},
|
|
416
|
+
"attribute.rangeMax": {
|
|
417
|
+
en: "Attribute {name} must be at most {max}.",
|
|
418
|
+
zh: "属性 {name} 必须至多为 {max}。"
|
|
419
|
+
},
|
|
420
|
+
"attribute.booleanInvalid": {
|
|
421
|
+
en: "Attribute {name} requires true or false.",
|
|
422
|
+
zh: "属性 {name} 需要 true 或 false。"
|
|
423
|
+
},
|
|
424
|
+
"attribute.booleanInterpolationInvalid": {
|
|
425
|
+
en: "Attribute {name} requires true or false, or a full boolean interpolation.",
|
|
426
|
+
zh: "属性 {name} 需要 true 或 false,或完整的布尔插值。"
|
|
427
|
+
},
|
|
428
|
+
"attribute.enumInvalid": {
|
|
429
|
+
en: "Attribute {name} must be one of {values}, got \"{value}\".",
|
|
430
|
+
zh: "属性 {name} 必须是 {values} 之一,当前为“{value}”。"
|
|
431
|
+
},
|
|
432
|
+
"attribute.dateLower": {
|
|
433
|
+
en: "Date lower bound {value} is not a valid YYYY-MM-DD.",
|
|
434
|
+
zh: "日期下界 {value} 不是有效的 YYYY-MM-DD。"
|
|
435
|
+
},
|
|
436
|
+
"attribute.dateUpper": {
|
|
437
|
+
en: "Date upper bound {value} is not a valid YYYY-MM-DD.",
|
|
438
|
+
zh: "日期上界 {value} 不是有效的 YYYY-MM-DD。"
|
|
439
|
+
},
|
|
440
|
+
"constraint.componentMinMax": {
|
|
441
|
+
en: "Component <{name}> min cannot exceed max.",
|
|
442
|
+
zh: "组件 <{name}> 的 min 不能大于 max。"
|
|
443
|
+
},
|
|
444
|
+
"constraint.componentStep": {
|
|
445
|
+
en: "Component <{name}> step must be greater than 0.",
|
|
446
|
+
zh: "组件 <{name}> 的 step 必须大于 0。"
|
|
447
|
+
},
|
|
448
|
+
"constraint.lengthRange": {
|
|
449
|
+
en: "max-length cannot be less than min-length.",
|
|
450
|
+
zh: "max-length 不能小于 min-length。"
|
|
451
|
+
},
|
|
452
|
+
"constraint.dateOrder": {
|
|
453
|
+
en: "Date min cannot be later than max.",
|
|
454
|
+
zh: "日期 min 不能晚于 max。"
|
|
455
|
+
},
|
|
456
|
+
"constraint.progressRange": {
|
|
457
|
+
en: "progress value must be between 0 and {max}, got {value}.",
|
|
458
|
+
zh: "progress 的 value 必须在 0 到 {max} 之间,当前为 {value}。"
|
|
459
|
+
},
|
|
460
|
+
"constraint.plotRange": {
|
|
461
|
+
en: "plot min must be less than max.",
|
|
462
|
+
zh: "plot 的 min 必须小于 max。"
|
|
463
|
+
},
|
|
464
|
+
"constraint.timerDuration": {
|
|
465
|
+
en: "timer duration must be a positive whole number of seconds.",
|
|
466
|
+
zh: "timer 的 duration 必须是正整数秒。"
|
|
467
|
+
},
|
|
468
|
+
"constraint.rangeSliderOrder": {
|
|
469
|
+
en: "range-slider min cannot exceed max.",
|
|
470
|
+
zh: "range-slider 的 min 不能大于 max。"
|
|
471
|
+
},
|
|
472
|
+
"constraint.rangeSliderStep": {
|
|
473
|
+
en: "range-slider step must be a finite positive number.",
|
|
474
|
+
zh: "range-slider 的 step 必须是有限正数。"
|
|
475
|
+
},
|
|
476
|
+
"constraint.coordinateOrder": {
|
|
477
|
+
en: "coordinate {axis}-min cannot exceed {axis}-max.",
|
|
478
|
+
zh: "coordinate 的 {axis}-min 不能大于 {axis}-max。"
|
|
479
|
+
},
|
|
480
|
+
"constraint.coordinateStep": {
|
|
481
|
+
en: "coordinate step must be a finite positive number.",
|
|
482
|
+
zh: "coordinate 的 step 必须是有限正数。"
|
|
483
|
+
},
|
|
484
|
+
"constraint.multiSelectMax": {
|
|
485
|
+
en: "multi-select max-selected must be a nonnegative whole number.",
|
|
486
|
+
zh: "multi-select 的 max-selected 必须是非负整数。"
|
|
487
|
+
},
|
|
488
|
+
"constraint.quizTolerance": {
|
|
489
|
+
en: "<quiz> tolerance must be a nonnegative finite number.",
|
|
490
|
+
zh: "<quiz> 的 tolerance 必须是非负有限数。"
|
|
491
|
+
},
|
|
492
|
+
"selection.keyNeedsKey": {
|
|
493
|
+
en: "<{component}> {name} requires a key attribute naming the selection column.",
|
|
494
|
+
zh: "<{component}> 的 {name} 需要 key 属性来指定选择列。"
|
|
495
|
+
},
|
|
496
|
+
"structure.parent": {
|
|
497
|
+
en: "<{name}> can only appear directly inside {parents}.",
|
|
498
|
+
zh: "<{name}> 只能直接位于 {parents} 内。"
|
|
499
|
+
},
|
|
500
|
+
"structure.noBody": {
|
|
501
|
+
en: "<{name}> does not accept body content.",
|
|
502
|
+
zh: "<{name}> 不接受正文内容。"
|
|
503
|
+
},
|
|
504
|
+
"structure.inlineOnly": {
|
|
505
|
+
en: "<{name}> only accepts inline Markdown.",
|
|
506
|
+
zh: "<{name}> 只接受行内 Markdown。"
|
|
507
|
+
},
|
|
508
|
+
"structure.noNestedComponents": {
|
|
509
|
+
en: "The body of <{name}> cannot contain other interactive components.",
|
|
510
|
+
zh: "<{name}> 的正文不能包含其他交互组件。"
|
|
511
|
+
},
|
|
512
|
+
"structure.noComponents": {
|
|
513
|
+
en: "The body of <{name}> cannot contain interactive components.",
|
|
514
|
+
zh: "<{name}> 的正文不能包含交互组件。"
|
|
515
|
+
},
|
|
516
|
+
"structure.childrenMinimum": {
|
|
517
|
+
en: "<{name}> requires at least {min} {children}.",
|
|
518
|
+
zh: "<{name}> 至少需要 {min} 个 {children}。"
|
|
519
|
+
},
|
|
520
|
+
"structure.childrenOnly": {
|
|
521
|
+
en: "Direct children of <{name}> must be {children}.",
|
|
522
|
+
zh: "<{name}> 的直接子元素必须是 {children}。"
|
|
523
|
+
},
|
|
524
|
+
"structure.sequenceMinimum": {
|
|
525
|
+
en: "<{name}> requires at least one <{child}>.",
|
|
526
|
+
zh: "<{name}> 至少需要一个 <{child}>。"
|
|
527
|
+
},
|
|
528
|
+
"structure.sequenceOnly": {
|
|
529
|
+
en: "<{name}> can only contain <{child}>.",
|
|
530
|
+
zh: "<{name}> 只能包含 <{child}>。"
|
|
531
|
+
},
|
|
532
|
+
"structure.accordionNeedsDisclosure": {
|
|
533
|
+
en: "<accordion> requires at least one <disclosure>.",
|
|
534
|
+
zh: "<accordion> 至少需要一个 <disclosure>。"
|
|
535
|
+
},
|
|
536
|
+
"structure.accordionOnly": {
|
|
537
|
+
en: "<accordion> can only contain <disclosure>.",
|
|
538
|
+
zh: "<accordion> 只能包含 <disclosure>。"
|
|
539
|
+
},
|
|
540
|
+
"structure.gridNeedsCard": {
|
|
541
|
+
en: "<grid> requires at least one <card>.",
|
|
542
|
+
zh: "<grid> 至少需要一个 <card>。"
|
|
543
|
+
},
|
|
544
|
+
"structure.gridOnlyCard": {
|
|
545
|
+
en: "Direct children of <grid> must be <card>.",
|
|
546
|
+
zh: "<grid> 的直接子元素必须是 <card>。"
|
|
547
|
+
},
|
|
548
|
+
"structure.exactlyOneTable": {
|
|
549
|
+
en: "The body of <{name}> must be exactly one Markdown table.",
|
|
550
|
+
zh: "<{name}> 的正文必须恰好是一个 Markdown 表格。"
|
|
551
|
+
},
|
|
552
|
+
"structure.plotNeedsFormula": {
|
|
553
|
+
en: "<plot> requires at least one $$...$$ formula block.",
|
|
554
|
+
zh: "<plot> 至少需要一个 $$...$$ 公式块。"
|
|
555
|
+
},
|
|
556
|
+
"structure.plotOnlyFormulas": {
|
|
557
|
+
en: "The body of <plot> can only contain blank lines and $$...$$ formula blocks.",
|
|
558
|
+
zh: "<plot> 的正文只能包含空行和 $$...$$ 公式块。"
|
|
559
|
+
},
|
|
560
|
+
"structure.nodeNoComponents": {
|
|
561
|
+
en: "The description of <node> cannot contain interactive components.",
|
|
562
|
+
zh: "<node> 的描述不能包含交互组件。"
|
|
563
|
+
},
|
|
564
|
+
"structure.optionsNeeded": {
|
|
565
|
+
en: "<{name}> requires at least one <option value=\"...\">.",
|
|
566
|
+
zh: "<{name}> 至少需要一个 <option value=\"...\">。"
|
|
567
|
+
},
|
|
568
|
+
"structure.optionsOnly": {
|
|
569
|
+
en: "<{name}> can only contain <option>.",
|
|
570
|
+
zh: "<{name}> 只能包含 <option>。"
|
|
571
|
+
},
|
|
572
|
+
"budget.options": {
|
|
573
|
+
en: "<{name}> options exceed the limit of {limit}.",
|
|
574
|
+
zh: "<{name}> 的选项数量超过上限 {limit}。"
|
|
575
|
+
},
|
|
576
|
+
"option.valueRequired": {
|
|
577
|
+
en: "<option> requires a non-empty value.",
|
|
578
|
+
zh: "<option> 需要非空 value。"
|
|
579
|
+
},
|
|
580
|
+
"option.valueComma": {
|
|
581
|
+
en: "<multi-select> option values cannot contain commas: \"{value}\".",
|
|
582
|
+
zh: "<multi-select> 的选项值不能包含逗号:“{value}”。"
|
|
583
|
+
},
|
|
584
|
+
"option.valueDuplicate": {
|
|
585
|
+
en: "Option values in <{name}> must be unique; duplicate value \"{value}\".",
|
|
586
|
+
zh: "<{name}> 的选项值必须唯一;重复值“{value}”。"
|
|
587
|
+
},
|
|
588
|
+
"structure.optionNoComponents": {
|
|
589
|
+
en: "The body of <option> cannot contain interactive components.",
|
|
590
|
+
zh: "<option> 的正文不能包含交互组件。"
|
|
591
|
+
},
|
|
592
|
+
"structure.tabsNeedsTab": {
|
|
593
|
+
en: "<tabs> requires at least one <tab>.",
|
|
594
|
+
zh: "<tabs> 至少需要一个 <tab>。"
|
|
595
|
+
},
|
|
596
|
+
"structure.tabsOnly": {
|
|
597
|
+
en: "<tabs> can only contain <tab>.",
|
|
598
|
+
zh: "<tabs> 只能包含 <tab>。"
|
|
599
|
+
},
|
|
600
|
+
"tab.valueDuplicate": {
|
|
601
|
+
en: "Tab values in <tabs> must be unique; duplicate value \"{value}\".",
|
|
602
|
+
zh: "<tabs> 的标签值必须唯一;重复值“{value}”。"
|
|
603
|
+
},
|
|
604
|
+
"structure.stepsNeedsStep": {
|
|
605
|
+
en: "<steps> requires at least one <step>.",
|
|
606
|
+
zh: "<steps> 至少需要一个 <step>。"
|
|
607
|
+
},
|
|
608
|
+
"structure.stepsOnly": {
|
|
609
|
+
en: "<steps> can only contain <step>.",
|
|
610
|
+
zh: "<steps> 只能包含 <step>。"
|
|
611
|
+
},
|
|
612
|
+
"step.valueDuplicate": {
|
|
613
|
+
en: "Step values in <steps> must be unique; duplicate value \"{value}\".",
|
|
614
|
+
zh: "<steps> 的步骤值必须唯一;重复值“{value}”。"
|
|
615
|
+
},
|
|
616
|
+
"quiz.answerRequired": {
|
|
617
|
+
en: "<quiz> requires a non-empty answer.",
|
|
618
|
+
zh: "<quiz> 需要非空 answer。"
|
|
619
|
+
},
|
|
620
|
+
"structure.quizNumericNoBody": {
|
|
621
|
+
en: "A numeric <quiz> cannot have body content; use type=\"choice\" for option-based quizzes.",
|
|
622
|
+
zh: "数值型 <quiz> 不能有正文内容;基于选项的测验请使用 type=\"choice\"。"
|
|
623
|
+
},
|
|
624
|
+
"quiz.answerNumeric": {
|
|
625
|
+
en: "A numeric <quiz> answer must be a finite number.",
|
|
626
|
+
zh: "数值型 <quiz> 的 answer 必须是有限数字。"
|
|
627
|
+
},
|
|
628
|
+
"quiz.answerNotOption": {
|
|
629
|
+
en: "<quiz> answer \"{answer}\" is not one of the option values: {options}.",
|
|
630
|
+
zh: "<quiz> 的 answer“{answer}”不在选项值中:{options}。"
|
|
631
|
+
},
|
|
632
|
+
"diagram.needsNode": {
|
|
633
|
+
en: "<diagram> requires at least one <node>.",
|
|
634
|
+
zh: "<diagram> 至少需要一个 <node>。"
|
|
635
|
+
},
|
|
636
|
+
"structure.diagramOnly": {
|
|
637
|
+
en: "<diagram> can only contain <node> and <edge>.",
|
|
638
|
+
zh: "<diagram> 只能包含 <node> 和 <edge>。"
|
|
639
|
+
},
|
|
640
|
+
"diagram.nodeInvalid": {
|
|
641
|
+
en: "Node ID \"{id}\" may only contain letters, digits, underscores and hyphens, and cannot start with a digit.",
|
|
642
|
+
zh: "节点 ID“{id}”只能包含字母、数字、下划线和连字符,且不能以数字开头。"
|
|
643
|
+
},
|
|
644
|
+
"diagram.nodeDuplicate": {
|
|
645
|
+
en: "Duplicate node ID \"{id}\".",
|
|
646
|
+
zh: "重复的节点 ID“{id}”。"
|
|
647
|
+
},
|
|
648
|
+
"diagram.edgeFromUnknown": {
|
|
649
|
+
en: "Edge from references unknown node \"{id}\".",
|
|
650
|
+
zh: "连线起点引用了未知节点“{id}”。"
|
|
651
|
+
},
|
|
652
|
+
"diagram.edgeToUnknown": {
|
|
653
|
+
en: "Edge to references unknown node \"{id}\".",
|
|
654
|
+
zh: "连线终点引用了未知节点“{id}”。"
|
|
655
|
+
},
|
|
656
|
+
"diagram.edgeDuplicate": {
|
|
657
|
+
en: "Duplicate edge: {from} → {to}{label}.",
|
|
658
|
+
zh: "重复的连线:{from} → {to}{label}。"
|
|
659
|
+
},
|
|
660
|
+
"checklist.bodySingle": {
|
|
661
|
+
en: "The body of <checklist> must be exactly one single-level Markdown task list.",
|
|
662
|
+
zh: "<checklist> 的正文必须恰好是一个单层 Markdown 任务列表。"
|
|
663
|
+
},
|
|
664
|
+
"checklist.needsItem": {
|
|
665
|
+
en: "<checklist> requires at least one task list item.",
|
|
666
|
+
zh: "<checklist> 至少需要一个任务列表项。"
|
|
667
|
+
},
|
|
668
|
+
"budget.checklistItems": {
|
|
669
|
+
en: "<checklist> items exceed the limit of {limit}.",
|
|
670
|
+
zh: "<checklist> 的任务项数量超过上限 {limit}。"
|
|
671
|
+
},
|
|
672
|
+
"checklist.taskOnly": {
|
|
673
|
+
en: "<checklist> can only contain task list items (- [ ] / - [x]).",
|
|
674
|
+
zh: "<checklist> 只能包含任务列表项(- [ ] / - [x])。"
|
|
675
|
+
},
|
|
676
|
+
"checklist.noNested": {
|
|
677
|
+
en: "<checklist> does not support nested lists.",
|
|
678
|
+
zh: "<checklist> 不支持嵌套列表。"
|
|
679
|
+
},
|
|
680
|
+
"checklist.noComponents": {
|
|
681
|
+
en: "<checklist> items cannot contain interactive components.",
|
|
682
|
+
zh: "<checklist> 的任务项不能包含交互组件。"
|
|
683
|
+
},
|
|
684
|
+
"budget.identifier": {
|
|
685
|
+
en: "Parameter name exceeds the {limit}-character limit.",
|
|
686
|
+
zh: "参数名超过 {limit} 个字符的上限。"
|
|
687
|
+
},
|
|
688
|
+
"binding.nameInvalid": {
|
|
689
|
+
en: "Parameter name \"{name}\" must match [A-Za-z_][A-Za-z0-9_]*.",
|
|
690
|
+
zh: "参数名“{name}”必须匹配 [A-Za-z_][A-Za-z0-9_]*。"
|
|
691
|
+
},
|
|
692
|
+
"binding.reserved": {
|
|
693
|
+
en: "Parameter name \"{name}\" is reserved; choose another name.",
|
|
694
|
+
zh: "参数名“{name}”是保留名称;请换一个名称。"
|
|
695
|
+
},
|
|
696
|
+
"binding.typeConflict": {
|
|
697
|
+
en: "Parameter \"{key}\" is already declared as {kind} by <{first}> and cannot also bind <{second}>.",
|
|
698
|
+
zh: "参数“{key}”已由 <{first}> 声明为 {kind},不能再绑定 <{second}>。"
|
|
699
|
+
},
|
|
700
|
+
"binding.exclusive": {
|
|
701
|
+
en: "Parameter \"{key}\" of <{first}> can only be owned by one component and cannot be shared with <{second}>.",
|
|
702
|
+
zh: "<{first}> 的参数“{key}”只能由一个组件拥有,不能与 <{second}> 共享。"
|
|
703
|
+
},
|
|
704
|
+
"binding.slotExclusive": {
|
|
705
|
+
en: "Parameter \"{key}\" of the {slot} slot of <{name}> is exclusive and cannot be shared with another control.",
|
|
706
|
+
zh: "<{name}> 的 {slot} 槽参数“{key}”是独占的,不能与另一个控件共享。"
|
|
707
|
+
},
|
|
708
|
+
"binding.constraintConflict": {
|
|
709
|
+
en: "Parameter \"{key}\" must use the same numeric range and step: <{first}> has {firstConstraints}, <{second}> has {secondConstraints}.",
|
|
710
|
+
zh: "参数“{key}”必须使用相同的数值范围和步长:<{first}> 为 {firstConstraints},<{second}> 为 {secondConstraints}。"
|
|
711
|
+
},
|
|
712
|
+
"binding.optionConflict": {
|
|
713
|
+
en: "Parameter \"{key}\" must use the same option set in the same order.",
|
|
714
|
+
zh: "参数“{key}”必须使用相同顺序的同一组选项。"
|
|
715
|
+
},
|
|
716
|
+
"initial.duplicate": {
|
|
717
|
+
en: "Parameter \"{key}\" has multiple explicit initial values ({count} in total).",
|
|
718
|
+
zh: "参数“{key}”有多个显式初值(共 {count} 个)。"
|
|
719
|
+
},
|
|
720
|
+
"initial.duplicatePeers": {
|
|
721
|
+
en: "Parameter \"{key}\" has multiple explicit initial values ({count} in total; see also line {lines}).",
|
|
722
|
+
zh: "参数“{key}”有多个显式初值(共 {count} 个;另见第 {lines} 行)。"
|
|
723
|
+
},
|
|
724
|
+
"initial.rangeNoStep": {
|
|
725
|
+
en: "Parameter \"{key}\" has no valid step value within range [{min}, {max}].",
|
|
726
|
+
zh: "参数“{key}”在范围 [{min}, {max}] 内没有有效的步长值。"
|
|
727
|
+
},
|
|
728
|
+
"initial.cannotDerive": {
|
|
729
|
+
en: "Cannot derive a default initial value for <{name}> parameter \"{key}\".",
|
|
730
|
+
zh: "无法为 <{name}> 的参数“{key}”推导默认初值。"
|
|
731
|
+
},
|
|
732
|
+
"initial.typeFiniteNumber": {
|
|
733
|
+
en: "Initial value of parameter \"{key}\" must be a finite number.",
|
|
734
|
+
zh: "参数“{key}”的初值必须是有限数字。"
|
|
735
|
+
},
|
|
736
|
+
"initial.belowMin": {
|
|
737
|
+
en: "Initial value {value} of parameter \"{key}\" is below the minimum {min}.",
|
|
738
|
+
zh: "参数“{key}”的初值 {value} 小于最小值 {min}。"
|
|
739
|
+
},
|
|
740
|
+
"initial.aboveMax": {
|
|
741
|
+
en: "Initial value {value} of parameter \"{key}\" exceeds the maximum {max}.",
|
|
742
|
+
zh: "参数“{key}”的初值 {value} 超过最大值 {max}。"
|
|
743
|
+
},
|
|
744
|
+
"initial.offStep": {
|
|
745
|
+
en: "Initial value {value} of parameter \"{key}\" is not on step {step} (based at {base}).",
|
|
746
|
+
zh: "参数“{key}”的初值 {value} 不在步长 {step} 上(基准 {base})。"
|
|
747
|
+
},
|
|
748
|
+
"initial.typeBoolean": {
|
|
749
|
+
en: "Initial value of parameter \"{key}\" must be a boolean.",
|
|
750
|
+
zh: "参数“{key}”的初值必须是布尔值。"
|
|
751
|
+
},
|
|
752
|
+
"initial.notAmongOptions": {
|
|
753
|
+
en: "Initial value \"{value}\" of parameter \"{key}\" is not among the available values {options}.",
|
|
754
|
+
zh: "参数“{key}”的初值“{value}”不在可用值 {options} 中。"
|
|
755
|
+
},
|
|
756
|
+
"initial.typeWrong": {
|
|
757
|
+
en: "Initial value of parameter \"{name}\" has the wrong type.",
|
|
758
|
+
zh: "参数“{name}”的初值类型不正确。"
|
|
759
|
+
},
|
|
760
|
+
"initial.typeCollection": {
|
|
761
|
+
en: "Initial value of parameter \"{key}\" must be a JSON array.",
|
|
762
|
+
zh: "参数“{key}”的初值必须是 JSON 数组。"
|
|
763
|
+
},
|
|
764
|
+
"initial.typeStringArray": {
|
|
765
|
+
en: "Initial value of parameter \"{key}\" must be an array of strings.",
|
|
766
|
+
zh: "参数“{key}”的初值必须是字符串数组。"
|
|
767
|
+
},
|
|
768
|
+
"initial.typeNumberArray": {
|
|
769
|
+
en: "Initial value of parameter \"{key}\" must be an array of finite numbers.",
|
|
770
|
+
zh: "参数“{key}”的初值必须是有限数字组成的数组。"
|
|
771
|
+
},
|
|
772
|
+
"initial.maxItems": {
|
|
773
|
+
en: "Initial value of parameter \"{key}\" exceeds the limit of {max} items.",
|
|
774
|
+
zh: "参数“{key}”的初值超过 {max} 项的上限。"
|
|
775
|
+
},
|
|
776
|
+
"initial.dateInvalid": {
|
|
777
|
+
en: "Initial date \"{value}\" is not a valid YYYY-MM-DD.",
|
|
778
|
+
zh: "初值日期“{value}”不是有效的 YYYY-MM-DD。"
|
|
779
|
+
},
|
|
780
|
+
"initial.notAvailableOption": {
|
|
781
|
+
en: "Initial value \"{value}\" is not an available option: {options}.",
|
|
782
|
+
zh: "初值“{value}”不是可用选项:{options}。"
|
|
783
|
+
},
|
|
784
|
+
"initial.multiSelectOption": {
|
|
785
|
+
en: "Initial value \"{value}\" of parameter \"{key}\" is not an option of <multi-select>.",
|
|
786
|
+
zh: "参数“{key}”的初值“{value}”不是 <multi-select> 的选项。"
|
|
787
|
+
},
|
|
788
|
+
"initial.rangeSliderOrder": {
|
|
789
|
+
en: "<range-slider> start {start} cannot be greater than end {end}.",
|
|
790
|
+
zh: "<range-slider> 的 start {start} 不能大于 end {end}。"
|
|
791
|
+
},
|
|
792
|
+
"initial.slotBelowMin": {
|
|
793
|
+
en: "Initial value {value} of <{name}> {slot} is below the minimum {min}.",
|
|
794
|
+
zh: "<{name}> 的 {slot} 初值 {value} 小于最小值 {min}。"
|
|
795
|
+
},
|
|
796
|
+
"initial.slotAboveMax": {
|
|
797
|
+
en: "Initial value {value} of <{name}> {slot} exceeds the maximum {max}.",
|
|
798
|
+
zh: "<{name}> 的 {slot} 初值 {value} 超过最大值 {max}。"
|
|
799
|
+
},
|
|
800
|
+
"initial.slotOffStep": {
|
|
801
|
+
en: "Initial value {value} of <{name}> {slot} is not on step {step} (based at {base}).",
|
|
802
|
+
zh: "<{name}> 的 {slot} 初值 {value} 不在步长 {step} 上(基准 {base})。"
|
|
803
|
+
},
|
|
804
|
+
"initial.lengthBelow": {
|
|
805
|
+
en: "Initial value of parameter \"{key}\" has length {length}, below the minimum length {min} required by <{name}>.",
|
|
806
|
+
zh: "参数“{key}”的初值长度为 {length},小于 <{name}> 要求的最小长度 {min}。"
|
|
807
|
+
},
|
|
808
|
+
"initial.lengthAbove": {
|
|
809
|
+
en: "Initial value of parameter \"{key}\" has length {length}, exceeding the maximum length {max} allowed by <{name}>.",
|
|
810
|
+
zh: "参数“{key}”的初值长度为 {length},超过 <{name}> 允许的最大长度 {max}。"
|
|
811
|
+
},
|
|
812
|
+
"initial.email": {
|
|
813
|
+
en: "Initial value of parameter \"{key}\" is not a valid email address.",
|
|
814
|
+
zh: "参数“{key}”的初值不是有效的电子邮件地址。"
|
|
815
|
+
},
|
|
816
|
+
"initial.dateBelow": {
|
|
817
|
+
en: "Initial value {value} of parameter \"{key}\" is earlier than the minimum date {min} of <date>.",
|
|
818
|
+
zh: "参数“{key}”的初值 {value} 早于 <date> 的最小日期 {min}。"
|
|
819
|
+
},
|
|
820
|
+
"initial.dateAbove": {
|
|
821
|
+
en: "Initial value {value} of parameter \"{key}\" is later than the maximum date {max} of <date>.",
|
|
822
|
+
zh: "参数“{key}”的初值 {value} 晚于 <date> 的最大日期 {max}。"
|
|
823
|
+
},
|
|
824
|
+
"initial.multiSelectExceeds": {
|
|
825
|
+
en: "Initial values of <multi-select> exceed max-selected {max}.",
|
|
826
|
+
zh: "<multi-select> 的初值数量超过 max-selected {max}。"
|
|
827
|
+
},
|
|
828
|
+
"expression.error": {
|
|
829
|
+
en: "Expression error: {detail}",
|
|
830
|
+
zh: "表达式错误:{detail}"
|
|
831
|
+
},
|
|
832
|
+
"binding.unknownSuggestion": {
|
|
833
|
+
en: "Reference to undeclared parameter {name}. Did you mean {suggestion}?",
|
|
834
|
+
zh: "引用了未声明的参数 {name}。是否想使用 {suggestion}?"
|
|
835
|
+
},
|
|
836
|
+
"binding.unknownPlain": {
|
|
837
|
+
en: "Reference to undeclared parameter {name}.",
|
|
838
|
+
zh: "引用了未声明的参数 {name}。"
|
|
839
|
+
},
|
|
840
|
+
"type.number": {
|
|
841
|
+
en: "Expected a number here, but the expression evaluates to {kind}.",
|
|
842
|
+
zh: "此处需要数字,但表达式结果为 {kind}。"
|
|
843
|
+
},
|
|
844
|
+
"type.boolean": {
|
|
845
|
+
en: "Expected a boolean here, but the expression evaluates to {kind}.",
|
|
846
|
+
zh: "此处需要布尔值,但表达式结果为 {kind}。"
|
|
847
|
+
},
|
|
848
|
+
"type.string": {
|
|
849
|
+
en: "Expected a string here, but the expression evaluates to {kind}.",
|
|
850
|
+
zh: "此处需要字符串,但表达式结果为 {kind}。"
|
|
851
|
+
},
|
|
852
|
+
"type.arrayNoDisplay": {
|
|
853
|
+
en: "Arrays cannot be displayed directly; convert them first with a function such as len.",
|
|
854
|
+
zh: "数组不能直接显示;请先用 len 等函数转换。"
|
|
855
|
+
},
|
|
856
|
+
"attribute.fullInterpolation": {
|
|
857
|
+
en: "The {name} attribute of <{component}> must be a full interpolation.",
|
|
858
|
+
zh: "<{component}> 的 {name} 属性必须是完整插值。"
|
|
859
|
+
},
|
|
860
|
+
"anchor.idInvalid": {
|
|
861
|
+
en: "Anchor id \"{id}\" must match [A-Za-z_][A-Za-z0-9_-]*.",
|
|
862
|
+
zh: "锚点 id“{id}”必须匹配 [A-Za-z_][A-Za-z0-9_-]*。"
|
|
863
|
+
},
|
|
864
|
+
"anchor.duplicate": {
|
|
865
|
+
en: "Duplicate anchor id \"{id}\".",
|
|
866
|
+
zh: "重复的锚点 id“{id}”。"
|
|
867
|
+
},
|
|
868
|
+
"anchor.headingCollision": {
|
|
869
|
+
en: "Anchor id \"{id}\" collides with an automatic heading target.",
|
|
870
|
+
zh: "锚点 id“{id}”与自动标题目标冲突。"
|
|
871
|
+
},
|
|
872
|
+
"jump.empty": {
|
|
873
|
+
en: "<jump> target cannot be empty.",
|
|
874
|
+
zh: "<jump> 的目标不能为空。"
|
|
875
|
+
},
|
|
876
|
+
"jump.badTarget": {
|
|
877
|
+
en: "<jump> target \"{target}\" must be a bare heading slug or anchor id without \"#\" or whitespace.",
|
|
878
|
+
zh: "<jump> 的目标“{target}”必须是不含“#”或空白的标题 slug 或锚点 id。"
|
|
879
|
+
},
|
|
880
|
+
"jump.unresolved": {
|
|
881
|
+
en: "<jump> target \"{target}\" does not resolve to a heading or explicit anchor in this document.",
|
|
882
|
+
zh: "<jump> 的目标“{target}”无法解析到本文档中的标题或显式锚点。"
|
|
883
|
+
},
|
|
884
|
+
"budget.plotCurves": {
|
|
885
|
+
en: "<plot> supports at most {limit} curves, but has {count}.",
|
|
886
|
+
zh: "<plot> 最多支持 {limit} 条曲线,当前有 {count} 条。"
|
|
887
|
+
},
|
|
888
|
+
"budget.plotPoints": {
|
|
889
|
+
en: "The document's total plot sample count exceeds the limit of {limit}.",
|
|
890
|
+
zh: "文档的绘图采样点总数超过上限 {limit}。"
|
|
891
|
+
},
|
|
892
|
+
"math.formulaShape": {
|
|
893
|
+
en: "<plot> formulas must be an equation: y = f(x), a parametric cases block, or an implicit equation in x and y.",
|
|
894
|
+
zh: "<plot> 的公式必须是方程:y = f(x)、参数方程 cases 块,或关于 x 和 y 的隐式方程。"
|
|
895
|
+
},
|
|
896
|
+
"math.computeFailed": {
|
|
897
|
+
en: "Cannot compute plot formula: {detail}",
|
|
898
|
+
zh: "无法计算绘图公式(错误代码 {code}):{detail}"
|
|
899
|
+
},
|
|
900
|
+
"math.bindingUnknown": {
|
|
901
|
+
en: "Plot formula references undeclared parameter \"{name}\".",
|
|
902
|
+
zh: "绘图公式引用了未声明的参数“{name}”。"
|
|
903
|
+
},
|
|
904
|
+
"math.bindingType": {
|
|
905
|
+
en: "Plot parameter \"{name}\" must be a number, but is {kind}.",
|
|
906
|
+
zh: "绘图参数“{name}”必须是数字,但当前为 {kind}。"
|
|
907
|
+
},
|
|
908
|
+
"math.displayUnsupportedCommand": {
|
|
909
|
+
en: "Formula command \\{name} is not supported; it is displayed as literal text.",
|
|
910
|
+
zh: "公式命令 \\{name} 不受支持;已按原文显示。"
|
|
911
|
+
},
|
|
912
|
+
"math.displayUnsupportedEnvironment": {
|
|
913
|
+
en: "Formula environment {name} is not supported; it is displayed as literal text.",
|
|
914
|
+
zh: "公式环境 {name} 不受支持;已按原文显示。"
|
|
915
|
+
},
|
|
916
|
+
"math.displayBudget": {
|
|
917
|
+
en: "Formula exceeds a display resource limit ({limit}); it is displayed as literal text.",
|
|
918
|
+
zh: "公式超过显示资源上限({limit});已按原文显示。"
|
|
919
|
+
},
|
|
920
|
+
"math.displayStrayEnd": {
|
|
921
|
+
en: "Formula has an unmatched \\end; it is displayed as literal text.",
|
|
922
|
+
zh: "公式中存在未匹配的 \\end;已按原文显示。"
|
|
923
|
+
},
|
|
924
|
+
"math.displayEnvironmentUnclosed": {
|
|
925
|
+
en: "Formula environment {name} is missing its closing brace; it is displayed as literal text.",
|
|
926
|
+
zh: "公式环境 {name} 缺少结束花括号;已按原文显示。"
|
|
927
|
+
},
|
|
928
|
+
"math.displayEnvironmentMissingName": {
|
|
929
|
+
en: "Formula environment is missing its name; \\begin is displayed as literal text.",
|
|
930
|
+
zh: "公式环境缺少名称;\\begin 已按原文显示。"
|
|
931
|
+
},
|
|
932
|
+
"math.displaySyntax": {
|
|
933
|
+
en: "Formula structure cannot be displayed and is shown as literal text.",
|
|
934
|
+
zh: "公式结构无法显示,已按原文显示。"
|
|
935
|
+
},
|
|
936
|
+
"table.missingHeader": {
|
|
937
|
+
en: "The table for <{name}> is missing a header.",
|
|
938
|
+
zh: "<{name}> 的表格缺少表头。"
|
|
939
|
+
},
|
|
940
|
+
"table.headerInterpolation": {
|
|
941
|
+
en: "Table headers cannot contain interpolations.",
|
|
942
|
+
zh: "表格表头不能包含插值。"
|
|
943
|
+
},
|
|
944
|
+
"table.headerEmpty": {
|
|
945
|
+
en: "Table headers cannot be empty.",
|
|
946
|
+
zh: "表格表头不能为空。"
|
|
947
|
+
},
|
|
948
|
+
"table.headerDuplicate": {
|
|
949
|
+
en: "Duplicate table header \"{name}\".",
|
|
950
|
+
zh: "重复的表格表头“{name}”。"
|
|
951
|
+
},
|
|
952
|
+
"table.rowColumnMismatch": {
|
|
953
|
+
en: "Table row has a different column count: header has {header} columns, this row has {row}.",
|
|
954
|
+
zh: "表格行的列数不一致:表头有 {header} 列,此行有 {row} 列。"
|
|
955
|
+
},
|
|
956
|
+
"chart.numericExpression": {
|
|
957
|
+
en: "Chart column \"{name}\" requires a number in row {row}, but the expression evaluates to {kind}.",
|
|
958
|
+
zh: "图表列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。"
|
|
959
|
+
},
|
|
960
|
+
"timeline.numericExpression": {
|
|
961
|
+
en: "Timeline column \"{name}\" requires a number in row {row}, but the expression evaluates to {kind}.",
|
|
962
|
+
zh: "时间线列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。"
|
|
963
|
+
},
|
|
964
|
+
"chart.numericPlain": {
|
|
965
|
+
en: "Chart column \"{name}\" requires a plain number in row {row}, got \"{value}\".",
|
|
966
|
+
zh: "图表列“{name}”第 {row} 行需要普通数字,当前为“{value}”。"
|
|
967
|
+
},
|
|
968
|
+
"timeline.numericPlain": {
|
|
969
|
+
en: "Timeline column \"{name}\" requires a plain number in row {row}, got \"{value}\".",
|
|
970
|
+
zh: "时间线列“{name}”第 {row} 行需要普通数字,当前为“{value}”。"
|
|
971
|
+
},
|
|
972
|
+
"selection.keyEmpty": {
|
|
973
|
+
en: "<{component}> key cannot be empty.",
|
|
974
|
+
zh: "<{component}> 的 key 不能为空。"
|
|
975
|
+
},
|
|
976
|
+
"selection.keyMissingColumn": {
|
|
977
|
+
en: "<{component}> key column \"{name}\" does not exist in its table.",
|
|
978
|
+
zh: "<{component}> 的 key 列“{name}”在表格中不存在。"
|
|
979
|
+
},
|
|
980
|
+
"selection.keyInterpolation": {
|
|
981
|
+
en: "<{component}> key column \"{name}\" must contain static text; row {row} contains an interpolation.",
|
|
982
|
+
zh: "<{component}> 的 key 列“{name}”必须包含静态文本;第 {row} 行包含插值。"
|
|
983
|
+
},
|
|
984
|
+
"selection.keyEmptyCell": {
|
|
985
|
+
en: "<{component}> key column \"{name}\" cannot be empty in row {row}.",
|
|
986
|
+
zh: "<{component}> 的 key 列“{name}”在第 {row} 行不能为空。"
|
|
987
|
+
},
|
|
988
|
+
"selection.keyDuplicate": {
|
|
989
|
+
en: "<{component}> key column \"{name}\" must be unique; duplicate value \"{value}\".",
|
|
990
|
+
zh: "<{component}> 的 key 列“{name}”必须唯一;重复值“{value}”。"
|
|
991
|
+
},
|
|
992
|
+
"initial.selectionNotValue": {
|
|
993
|
+
en: "Initial selection \"{value}\" of <{component}> is not a value of key column \"{name}\".",
|
|
994
|
+
zh: "<{component}> 的初始选择“{value}”不是 key 列“{name}”中的值。"
|
|
995
|
+
},
|
|
996
|
+
"chart.columnComma": {
|
|
997
|
+
en: "Chart column names cannot contain commas: \"{name}\".",
|
|
998
|
+
zh: "图表列名不能包含逗号:“{name}”。"
|
|
999
|
+
},
|
|
1000
|
+
"chart.xMissing": {
|
|
1001
|
+
en: "Chart x column \"{name}\" does not exist.",
|
|
1002
|
+
zh: "图表 x 列“{name}”不存在。"
|
|
1003
|
+
},
|
|
1004
|
+
"chart.yRequired": {
|
|
1005
|
+
en: "Chart y requires a column name.",
|
|
1006
|
+
zh: "图表 y 需要列名。"
|
|
1007
|
+
},
|
|
1008
|
+
"chart.yMissing": {
|
|
1009
|
+
en: "Chart y column \"{name}\" does not exist.",
|
|
1010
|
+
zh: "图表 y 列“{name}”不存在。"
|
|
1011
|
+
},
|
|
1012
|
+
"chart.needsNumeric": {
|
|
1013
|
+
en: "Chart requires at least one numeric column.",
|
|
1014
|
+
zh: "图表至少需要一个数值列。"
|
|
1015
|
+
},
|
|
1016
|
+
"chart.scatterXMissing": {
|
|
1017
|
+
en: "Scatter chart x column \"{name}\" does not exist.",
|
|
1018
|
+
zh: "散点图的 x 列“{name}”不存在。"
|
|
1019
|
+
},
|
|
1020
|
+
"chart.scatterNeedsNumeric": {
|
|
1021
|
+
en: "Scatter chart requires at least one numeric column.",
|
|
1022
|
+
zh: "散点图至少需要一个数值列。"
|
|
1023
|
+
},
|
|
1024
|
+
"chart.donutNeedsColumns": {
|
|
1025
|
+
en: "Donut chart requires a label column and a value column.",
|
|
1026
|
+
zh: "环形图需要一个标签列和一个数值列。"
|
|
1027
|
+
},
|
|
1028
|
+
"chart.donutYOne": {
|
|
1029
|
+
en: "Donut chart y can only specify one numeric column.",
|
|
1030
|
+
zh: "环形图的 y 只能指定一个数值列。"
|
|
1031
|
+
},
|
|
1032
|
+
"chart.donutNeedY": {
|
|
1033
|
+
en: "A donut chart with more than two columns must use y to specify the single numeric column.",
|
|
1034
|
+
zh: "超过两列的环形图必须用 y 指定唯一的数值列。"
|
|
1035
|
+
},
|
|
1036
|
+
"chart.negative": {
|
|
1037
|
+
en: "Donut chart values cannot be negative; row {row} is {value}.",
|
|
1038
|
+
zh: "环形图的数值不能为负;第 {row} 行为 {value}。"
|
|
1039
|
+
},
|
|
1040
|
+
"timeline.headerMissing": {
|
|
1041
|
+
en: "Timeline requires either Task, Start and Duration columns or 事项, 开始 and 时长 columns, with optional Notes or 说明.",
|
|
1042
|
+
zh: "时间线需要 Task、Start、Duration 列,或 事项、开始、时长 列,并可选 Notes 或 说明。"
|
|
1043
|
+
},
|
|
1044
|
+
"timeline.columnUnsupported": {
|
|
1045
|
+
en: "Timeline does not support column \"{name}\".",
|
|
1046
|
+
zh: "时间线不支持列“{name}”。"
|
|
1047
|
+
},
|
|
1048
|
+
"timeline.negative": {
|
|
1049
|
+
en: "Timeline column \"{name}\" cannot be negative in row {row}.",
|
|
1050
|
+
zh: "时间线列“{name}”在第 {row} 行不能为负。"
|
|
1051
|
+
},
|
|
1052
|
+
"runtime.bindingNoWritable": {
|
|
1053
|
+
en: "This component has no writable binding state.",
|
|
1054
|
+
zh: "此组件没有可写的绑定状态。"
|
|
1055
|
+
},
|
|
1056
|
+
"runtime.bindingNeedsSlot": {
|
|
1057
|
+
en: "This multi-slot component requires a slot such as start/end or x/y.",
|
|
1058
|
+
zh: "此多槽组件需要 start/end 或 x/y 之类的槽位。"
|
|
1059
|
+
},
|
|
1060
|
+
"runtime.bindingUnknownSlot": {
|
|
1061
|
+
en: "This component has no writable slot \"{slot}\".",
|
|
1062
|
+
zh: "此组件没有可写的槽位“{slot}”。"
|
|
1063
|
+
},
|
|
1064
|
+
"runtime.bindingNoMultiSlot": {
|
|
1065
|
+
en: "This component does not support multiple slots.",
|
|
1066
|
+
zh: "此组件不支持多个槽位。"
|
|
1067
|
+
},
|
|
1068
|
+
"runtime.dateInvalid": {
|
|
1069
|
+
en: "Date must be a valid YYYY-MM-DD or an empty string.",
|
|
1070
|
+
zh: "日期必须是有效的 YYYY-MM-DD 或空字符串。"
|
|
1071
|
+
},
|
|
1072
|
+
"runtime.dateRequired": {
|
|
1073
|
+
en: "This date is required.",
|
|
1074
|
+
zh: "此日期为必填项。"
|
|
1075
|
+
},
|
|
1076
|
+
"runtime.dateEarlier": {
|
|
1077
|
+
en: "Date cannot be earlier than {min}.",
|
|
1078
|
+
zh: "日期不能早于 {min}。"
|
|
1079
|
+
},
|
|
1080
|
+
"runtime.dateLater": {
|
|
1081
|
+
en: "Date cannot be later than {max}.",
|
|
1082
|
+
zh: "日期不能晚于 {max}。"
|
|
1083
|
+
},
|
|
1084
|
+
"runtime.fieldRequired": {
|
|
1085
|
+
en: "This field is required.",
|
|
1086
|
+
zh: "此字段为必填项。"
|
|
1087
|
+
},
|
|
1088
|
+
"runtime.minLength": {
|
|
1089
|
+
en: "At least {min} characters.",
|
|
1090
|
+
zh: "至少 {min} 个字符。"
|
|
1091
|
+
},
|
|
1092
|
+
"runtime.maxLength": {
|
|
1093
|
+
en: "At most {max} characters.",
|
|
1094
|
+
zh: "至多 {max} 个字符。"
|
|
1095
|
+
},
|
|
1096
|
+
"runtime.emailLength": {
|
|
1097
|
+
en: "Email address cannot exceed {limit} characters.",
|
|
1098
|
+
zh: "电子邮件地址不能超过 {limit} 个字符。"
|
|
1099
|
+
},
|
|
1100
|
+
"runtime.emailInvalid": {
|
|
1101
|
+
en: "Enter a valid email address.",
|
|
1102
|
+
zh: "请输入有效的电子邮件地址。"
|
|
1103
|
+
},
|
|
1104
|
+
"runtime.finiteNumber": {
|
|
1105
|
+
en: "Parameter \"{name}\" requires a finite number.",
|
|
1106
|
+
zh: "参数“{name}”需要有限数字。"
|
|
1107
|
+
},
|
|
1108
|
+
"runtime.min": {
|
|
1109
|
+
en: "Parameter \"{name}\" must be at least {min}.",
|
|
1110
|
+
zh: "参数“{name}”必须至少为 {min}。"
|
|
1111
|
+
},
|
|
1112
|
+
"runtime.max": {
|
|
1113
|
+
en: "Parameter \"{name}\" must be at most {max}.",
|
|
1114
|
+
zh: "参数“{name}”必须至多为 {max}。"
|
|
1115
|
+
},
|
|
1116
|
+
"runtime.step": {
|
|
1117
|
+
en: "Parameter \"{name}\" must be a multiple of step {step} (base {base}).",
|
|
1118
|
+
zh: "参数“{name}”必须是步长 {step} 的倍数(基准 {base})。"
|
|
1119
|
+
},
|
|
1120
|
+
"runtime.boolean": {
|
|
1121
|
+
en: "Parameter \"{name}\" requires a boolean.",
|
|
1122
|
+
zh: "参数“{name}”需要布尔值。"
|
|
1123
|
+
},
|
|
1124
|
+
"runtime.string": {
|
|
1125
|
+
en: "Parameter \"{name}\" requires a string.",
|
|
1126
|
+
zh: "参数“{name}”需要字符串。"
|
|
1127
|
+
},
|
|
1128
|
+
"runtime.array": {
|
|
1129
|
+
en: "Parameter \"{name}\" requires an array of strings.",
|
|
1130
|
+
zh: "参数“{name}”需要字符串数组。"
|
|
1131
|
+
},
|
|
1132
|
+
"runtime.arrayMembers": {
|
|
1133
|
+
en: "Parameter \"{name}\" members must be strings.",
|
|
1134
|
+
zh: "参数“{name}”的成员必须是字符串。"
|
|
1135
|
+
},
|
|
1136
|
+
"runtime.numberArray": {
|
|
1137
|
+
en: "Parameter \"{name}\" requires an array of finite numbers.",
|
|
1138
|
+
zh: "参数“{name}”需要有限数字数组。"
|
|
1139
|
+
},
|
|
1140
|
+
"runtime.numberArrayMembers": {
|
|
1141
|
+
en: "Parameter \"{name}\" members must be finite numbers.",
|
|
1142
|
+
zh: "参数“{name}”的成员必须是有限数字。"
|
|
1143
|
+
},
|
|
1144
|
+
"runtime.null": {
|
|
1145
|
+
en: "Parameter \"{name}\" requires null.",
|
|
1146
|
+
zh: "参数“{name}”需要 null。"
|
|
1147
|
+
},
|
|
1148
|
+
"runtime.checklistOption": {
|
|
1149
|
+
en: "Checklist item \"{value}\" does not exist.",
|
|
1150
|
+
zh: "清单项“{value}”不存在。"
|
|
1151
|
+
},
|
|
1152
|
+
"runtime.maxItems": {
|
|
1153
|
+
en: "Parameter \"{name}\" allows at most {max} selected values.",
|
|
1154
|
+
zh: "参数“{name}”最多允许选择 {max} 个值。"
|
|
1155
|
+
},
|
|
1156
|
+
"runtime.unsupportedType": {
|
|
1157
|
+
en: "Parameter \"{name}\" has an unsupported value type.",
|
|
1158
|
+
zh: "参数“{name}”的值类型不受支持。"
|
|
1159
|
+
},
|
|
1160
|
+
"runtime.option": {
|
|
1161
|
+
en: "Value \"{value}\" is not among the options: {options}.",
|
|
1162
|
+
zh: "值“{value}”不在选项中:{options}。"
|
|
1163
|
+
},
|
|
1164
|
+
"runtime.budget": {
|
|
1165
|
+
en: "Parameter \"{name}\": {detail}",
|
|
1166
|
+
zh: "参数“{name}”:{detail}"
|
|
1167
|
+
},
|
|
1168
|
+
"runtime.rangeOrder": {
|
|
1169
|
+
en: "The range start cannot be greater than its end.",
|
|
1170
|
+
zh: "范围起点不能大于终点。"
|
|
1171
|
+
},
|
|
1172
|
+
"budget.string": {
|
|
1173
|
+
en: "String exceeds the {limit}-character limit.",
|
|
1174
|
+
zh: "字符串超过 {limit} 个字符的上限。"
|
|
1175
|
+
},
|
|
1176
|
+
"budget.array": {
|
|
1177
|
+
en: "Array exceeds the {limit}-item limit.",
|
|
1178
|
+
zh: "数组超过 {limit} 个项的上限。"
|
|
1179
|
+
},
|
|
1180
|
+
"budget.arrayMember": {
|
|
1181
|
+
en: "Array member exceeds the {limit}-character limit.",
|
|
1182
|
+
zh: "数组成员超过 {limit} 个字符的上限。"
|
|
1183
|
+
},
|
|
1184
|
+
"budget.arrayContents": {
|
|
1185
|
+
en: "Array contents exceed the {limit}-character limit.",
|
|
1186
|
+
zh: "数组内容超过 {limit} 个字符的上限。"
|
|
1187
|
+
},
|
|
1188
|
+
"theme.missing": {
|
|
1189
|
+
en: "Theme \"{name}\" is not registered by the host; using the default theme.",
|
|
1190
|
+
zh: "宿主未注册主题“{name}”;将使用默认主题。"
|
|
1191
|
+
},
|
|
1192
|
+
"theme.registryUnreadable": {
|
|
1193
|
+
en: "The host theme registry could not be read; using the default theme.",
|
|
1194
|
+
zh: "无法读取宿主主题注册表;将使用默认主题。"
|
|
1195
|
+
},
|
|
1196
|
+
"theme.invalidDefinition": {
|
|
1197
|
+
en: "The selected theme \"{name}\" is not a valid definition; using the default theme.",
|
|
1198
|
+
zh: "所选主题“{name}”不是有效定义;将使用默认主题。"
|
|
1199
|
+
},
|
|
1200
|
+
"theme.duplicateRegistration": {
|
|
1201
|
+
en: "Theme \"{name}\" is registered more than once; using the default theme.",
|
|
1202
|
+
zh: "主题“{name}”被多次注册;将使用默认主题。"
|
|
1203
|
+
},
|
|
1204
|
+
"theme.protocol": {
|
|
1205
|
+
en: "Theme \"{name}\" does not support the {protocol} protocol; using the default theme.",
|
|
1206
|
+
zh: "主题“{name}”不支持 {protocol} 协议;将使用默认主题。"
|
|
1207
|
+
},
|
|
1208
|
+
"theme.modes": {
|
|
1209
|
+
en: "Theme \"{name}\" must supply both light and dark color schemes; using the default theme.",
|
|
1210
|
+
zh: "主题“{name}”必须同时提供浅色和深色配色;将使用默认主题。"
|
|
1211
|
+
},
|
|
1212
|
+
"theme.selectedUnreadable": {
|
|
1213
|
+
en: "The selected theme \"{name}\" could not be read; using the default theme.",
|
|
1214
|
+
zh: "所选主题“{name}”无法读取;将使用默认主题。"
|
|
1215
|
+
},
|
|
1216
|
+
"error.expression-syntax": {
|
|
1217
|
+
en: "Check expression operators, parentheses and arguments.",
|
|
1218
|
+
zh: "表达式语法不正确,请检查运算符、括号或参数是否完整。"
|
|
1219
|
+
},
|
|
1220
|
+
"error.expression-index": {
|
|
1221
|
+
en: "An array index must be a finite safe integer.",
|
|
1222
|
+
zh: "数组索引必须为有限的安全整数。"
|
|
1223
|
+
},
|
|
1224
|
+
"error.expression-cycle": {
|
|
1225
|
+
en: "Named calculations contain a dependency cycle.",
|
|
1226
|
+
zh: "命名计算中存在循环依赖。"
|
|
1227
|
+
},
|
|
1228
|
+
"error.array.homogeneous": {
|
|
1229
|
+
en: "Array elements must all be strings or all be numbers.",
|
|
1230
|
+
zh: "数组元素必须全部为字符串或全部为数字。"
|
|
1231
|
+
},
|
|
1232
|
+
"error.array.finite": {
|
|
1233
|
+
en: "Array members must be finite numbers.",
|
|
1234
|
+
zh: "数字数组元素必须为有限数值。"
|
|
1235
|
+
},
|
|
1236
|
+
"error.array.members": {
|
|
1237
|
+
en: "Array members must be strings or finite numbers.",
|
|
1238
|
+
zh: "数组元素必须为字符串或有限数值。"
|
|
1239
|
+
},
|
|
1240
|
+
"error.expression-number": {
|
|
1241
|
+
en: "A numeric literal must be finite and valid.",
|
|
1242
|
+
zh: "数字字面量无效,必须是有限数值。"
|
|
1243
|
+
},
|
|
1244
|
+
"error.expression-string": {
|
|
1245
|
+
en: "Check the string quotes and escape sequences.",
|
|
1246
|
+
zh: "字符串格式不正确,请检查引号和转义。"
|
|
1247
|
+
},
|
|
1248
|
+
"error.expression-budget": {
|
|
1249
|
+
en: "The expression exceeded a resource budget.",
|
|
1250
|
+
zh: "表达式超过长度、节点、深度或求值步数预算,请简化表达式。"
|
|
1251
|
+
},
|
|
1252
|
+
"error.expression-assignment": {
|
|
1253
|
+
en: "Assignment is not allowed in expressions.",
|
|
1254
|
+
zh: "表达式不能执行赋值,请使用比较运算符。"
|
|
1255
|
+
},
|
|
1256
|
+
"error.expression-property": {
|
|
1257
|
+
en: "Property access is not allowed.",
|
|
1258
|
+
zh: "表达式不支持属性访问,请直接引用绑定名称。"
|
|
1259
|
+
},
|
|
1260
|
+
"error.expression-empty": {
|
|
1261
|
+
en: "An expression is required.",
|
|
1262
|
+
zh: "此处需要非空表达式。"
|
|
1263
|
+
},
|
|
1264
|
+
"error.expression-unknown-function": {
|
|
1265
|
+
en: "Use a supported built-in function.",
|
|
1266
|
+
zh: "函数不受支持,请使用语言内置函数。"
|
|
1267
|
+
},
|
|
1268
|
+
"error.expression-arity": {
|
|
1269
|
+
en: "Check the function argument count.",
|
|
1270
|
+
zh: "函数参数数量不正确。"
|
|
1271
|
+
},
|
|
1272
|
+
"error.expression-forbidden-name": {
|
|
1273
|
+
en: "The name is forbidden.",
|
|
1274
|
+
zh: "此名称属于禁止访问的名称,请使用已声明的绑定。"
|
|
1275
|
+
},
|
|
1276
|
+
"error.expression-type": {
|
|
1277
|
+
en: "Operand or argument types do not match.",
|
|
1278
|
+
zh: "操作数或函数参数的类型不匹配,请检查绑定类型。"
|
|
1279
|
+
},
|
|
1280
|
+
"error.expression-unknown-name": {
|
|
1281
|
+
en: "The binding is not declared.",
|
|
1282
|
+
zh: "引用了未声明的绑定。"
|
|
1283
|
+
},
|
|
1284
|
+
"error.expression-value": {
|
|
1285
|
+
en: "The binding value is not supported.",
|
|
1286
|
+
zh: "绑定值不符合表达式支持的类型或数值范围。"
|
|
1287
|
+
},
|
|
1288
|
+
"error.expression-eval": {
|
|
1289
|
+
en: "The expression cannot be evaluated.",
|
|
1290
|
+
zh: "表达式无法求值,请检查输入和运算条件。"
|
|
1291
|
+
},
|
|
1292
|
+
"error.expression-domain": {
|
|
1293
|
+
en: "A value lies outside the function domain.",
|
|
1294
|
+
zh: "参数超出函数定义域。"
|
|
1295
|
+
},
|
|
1296
|
+
"error.expression-divide-by-zero": {
|
|
1297
|
+
en: "Division by zero is undefined.",
|
|
1298
|
+
zh: "除数不能为零。"
|
|
1299
|
+
},
|
|
1300
|
+
"error.expression-interpolation": {
|
|
1301
|
+
en: "Check interpolation delimiters and content.",
|
|
1302
|
+
zh: "插值格式不正确,请检查分隔符和表达式内容。"
|
|
1303
|
+
},
|
|
1304
|
+
"error.latex-budget": {
|
|
1305
|
+
en: "The formula exceeded a resource budget.",
|
|
1306
|
+
zh: "公式超过长度、记号、节点、深度或计算步数预算,请简化公式。"
|
|
1307
|
+
},
|
|
1308
|
+
"error.latex-syntax": {
|
|
1309
|
+
en: "Check formula syntax and delimiters.",
|
|
1310
|
+
zh: "公式语法不正确,请检查命令、括号和分隔符。"
|
|
1311
|
+
},
|
|
1312
|
+
"error.latex-empty": {
|
|
1313
|
+
en: "A formula is required.",
|
|
1314
|
+
zh: "公式不能为空。"
|
|
1315
|
+
},
|
|
1316
|
+
"error.latex-relation": {
|
|
1317
|
+
en: "Check the formula relation.",
|
|
1318
|
+
zh: "公式中的关系式不符合计算语法。"
|
|
1319
|
+
},
|
|
1320
|
+
"error.latex-number": {
|
|
1321
|
+
en: "A formula number must be finite.",
|
|
1322
|
+
zh: "公式中的数字必须是有限数值。"
|
|
1323
|
+
},
|
|
1324
|
+
"error.latex-name": {
|
|
1325
|
+
en: "Use a valid formula parameter name.",
|
|
1326
|
+
zh: "公式参数名称无效,请使用合法绑定名。"
|
|
1327
|
+
},
|
|
1328
|
+
"error.latex-unsupported": {
|
|
1329
|
+
en: "The LaTeX structure is not computable.",
|
|
1330
|
+
zh: "此 LaTeX 结构不支持计算,请改用支持的函数和运算。"
|
|
1331
|
+
},
|
|
1332
|
+
"error.latex-variable": {
|
|
1333
|
+
en: "A numeric formula parameter is missing or invalid.",
|
|
1334
|
+
zh: "公式引用的参数缺失或不是有限数字。"
|
|
1335
|
+
},
|
|
1336
|
+
"error.latex-type": {
|
|
1337
|
+
en: "A formula parameter has the wrong type.",
|
|
1338
|
+
zh: "公式参数类型不正确,计算参数必须为数字。"
|
|
1339
|
+
},
|
|
1340
|
+
"error.latex-divide-by-zero": {
|
|
1341
|
+
en: "Division by zero is undefined.",
|
|
1342
|
+
zh: "公式中的除数不能为零。"
|
|
1343
|
+
},
|
|
1344
|
+
"error.latex-domain": {
|
|
1345
|
+
en: "A formula value lies outside the function domain.",
|
|
1346
|
+
zh: "公式参数超出函数定义域。"
|
|
1347
|
+
},
|
|
1348
|
+
"error.latex-undefined": {
|
|
1349
|
+
en: "The formula is undefined at this point.",
|
|
1350
|
+
zh: "公式在此点没有有限定义值。"
|
|
1351
|
+
},
|
|
1352
|
+
"error.latex-plot-range": {
|
|
1353
|
+
en: "Plot bounds must be finite and increasing.",
|
|
1354
|
+
zh: "绘图区间必须由有限数值构成,且最小值小于最大值。"
|
|
1355
|
+
},
|
|
1356
|
+
"error.latex-plot-samples": {
|
|
1357
|
+
en: "The sample count must be an integer from 2 to 2000.",
|
|
1358
|
+
zh: "采样点数必须为 2 至 2000 的整数。"
|
|
1359
|
+
},
|
|
1360
|
+
"local.external.placement": {
|
|
1361
|
+
en: "<external> declarations must be standalone tags at the document top level.",
|
|
1362
|
+
zh: "<external> 声明必须独占一行,位于文档顶层。"
|
|
1363
|
+
},
|
|
1364
|
+
"local.external.name": {
|
|
1365
|
+
en: "External name \"{name}\" must match [A-Za-z_][A-Za-z0-9_]*.",
|
|
1366
|
+
zh: "外部名称“{name}”必须匹配 [A-Za-z_][A-Za-z0-9_]*。"
|
|
1367
|
+
},
|
|
1368
|
+
"local.external.reserved": {
|
|
1369
|
+
en: "External name \"{name}\" is reserved; choose another name.",
|
|
1370
|
+
zh: "外部名称“{name}”为保留名称,请更换。"
|
|
1371
|
+
},
|
|
1372
|
+
"local.external.duplicate": {
|
|
1373
|
+
en: "External name \"{name}\" is declared more than once.",
|
|
1374
|
+
zh: "外部名称“{name}”被重复声明。"
|
|
1375
|
+
},
|
|
1376
|
+
"local.external.conflict": {
|
|
1377
|
+
en: "External name \"{name}\" conflicts with a control parameter of the same name.",
|
|
1378
|
+
zh: "外部名称“{name}”与同名控件参数冲突。"
|
|
1379
|
+
},
|
|
1380
|
+
"local.external.type": {
|
|
1381
|
+
en: "External \"{name}\" must declare type string, number, boolean, string-array or number-array.",
|
|
1382
|
+
zh: "外部声明“{name}”必须声明 string、number、boolean、string-array 或 number-array 类型。"
|
|
1383
|
+
},
|
|
1384
|
+
"local.host.structure.leaf": {
|
|
1385
|
+
en: "Host component <{component}> is a leaf and cannot have body content.",
|
|
1386
|
+
zh: "宿主组件 <{component}> 是叶子组件,不能包含正文内容。"
|
|
1387
|
+
},
|
|
1388
|
+
"local.runtime.external": {
|
|
1389
|
+
en: "External value {name} cannot be written.",
|
|
1390
|
+
zh: "无法写入外部数据 {name}。"
|
|
1391
|
+
},
|
|
1392
|
+
"local.runtime.external-value": {
|
|
1393
|
+
en: "External value {name} must be {kind}.",
|
|
1394
|
+
zh: "外部数据 {name} 必须是 {kind} 类型。"
|
|
1395
|
+
},
|
|
1396
|
+
"local.runtime.external-budget": {
|
|
1397
|
+
en: "External value {name} exceeds a resource limit.",
|
|
1398
|
+
zh: "外部数据 {name} 超过资源限制。"
|
|
1399
|
+
},
|
|
1400
|
+
"local.runtime.value.constraint": {
|
|
1401
|
+
en: "Dynamic {attribute} constraint failed for parameter {name}.",
|
|
1402
|
+
zh: "参数 {name} 的动态 {attribute} 约束无法计算。"
|
|
1403
|
+
},
|
|
1404
|
+
"local.runtime.value.constraint-range": {
|
|
1405
|
+
en: "Dynamic constraints for parameter {name} produce an invalid range.",
|
|
1406
|
+
zh: "参数 {name} 的动态约束产生无效范围。"
|
|
1407
|
+
},
|
|
1408
|
+
"local.runtime.value.constraint-date": {
|
|
1409
|
+
en: "Dynamic {attribute} date bound for parameter {name} is not a valid YYYY-MM-DD value.",
|
|
1410
|
+
zh: "参数 {name} 的动态 {attribute} 日期边界不是合法的 YYYY-MM-DD。"
|
|
1411
|
+
}
|
|
1412
|
+
}, g = {
|
|
1413
|
+
"local.options.invalid.object": "options.notObject",
|
|
1414
|
+
"local.options.invalid.limits": "options.limitsNotObject",
|
|
1415
|
+
"local.options.invalid.max-syntax-nodes": "options.maxSyntaxNodes",
|
|
1416
|
+
"local.options.invalid.max-parse-work": "options.maxParseWork",
|
|
1417
|
+
"local.options.invalid.max-markdown-depth": "options.maxMarkdownDepth",
|
|
1418
|
+
"local.options.invalid.limits-unknown": "options.unknownLimit",
|
|
1419
|
+
"local.options.invalid.host-components": "options.hostComponents",
|
|
1420
|
+
"local.budget.document": "budget.document",
|
|
1421
|
+
"local.budget.nodes": "budget.syntaxNodes",
|
|
1422
|
+
"local.budget.parse-work": "budget.parseWork",
|
|
1423
|
+
"local.budget.markdown-depth": "budget.markdownDepth",
|
|
1424
|
+
"local.budget.nesting": "budget.nesting",
|
|
1425
|
+
"local.budget.name.attribute": "budget.attributeName",
|
|
1426
|
+
"local.budget.name.tag": "budget.tagName",
|
|
1427
|
+
"local.budget.math": "budget.math",
|
|
1428
|
+
"local.budget.attribute": "budget.attribute",
|
|
1429
|
+
"local.budget.array.options": "budget.options",
|
|
1430
|
+
"local.budget.array.checklist": "budget.checklistItems",
|
|
1431
|
+
"local.budget.identifier": "budget.identifier",
|
|
1432
|
+
"local.budget.plot.curves": "budget.plotCurves",
|
|
1433
|
+
"local.budget.plot.points": "budget.plotPoints",
|
|
1434
|
+
"local.budget.value.string": "budget.string",
|
|
1435
|
+
"local.budget.value.array": "budget.array",
|
|
1436
|
+
"local.budget.value.array-member": "budget.arrayMember",
|
|
1437
|
+
"local.budget.value.array-contents": "budget.arrayContents",
|
|
1438
|
+
"local.capability.html": "capability.html",
|
|
1439
|
+
"local.capability.plot": "capability.plot",
|
|
1440
|
+
"local.parse.source": "parse.sourceType",
|
|
1441
|
+
"local.parse.markdown": "parse.markdownFailed",
|
|
1442
|
+
"local.parse.document": "parse.failed",
|
|
1443
|
+
"local.legacy": "legacy.fence",
|
|
1444
|
+
"local.theme.expression": "theme.expression",
|
|
1445
|
+
"local.theme.name.missing": "theme.nameRequired",
|
|
1446
|
+
"local.theme.attribute": "theme.attributeOnly",
|
|
1447
|
+
"local.theme.name.invalid": "theme.nameInvalid",
|
|
1448
|
+
"local.theme.name": "theme.nameInvalid",
|
|
1449
|
+
"local.theme.malformed.unclosed": "theme.malformedMissingClose",
|
|
1450
|
+
"local.theme.malformed.closing": "theme.malformedClosing",
|
|
1451
|
+
"local.theme.malformed.placement": "theme.malformedStandalone",
|
|
1452
|
+
"local.theme.duplicate.declaration": "theme.duplicateDeclaration",
|
|
1453
|
+
"local.theme.duplicate": "theme.duplicateRegistration",
|
|
1454
|
+
"local.theme.late": "theme.late",
|
|
1455
|
+
"local.theme.nested": "theme.nested",
|
|
1456
|
+
"local.theme.invalid": "theme.invalidDeclaration",
|
|
1457
|
+
"local.theme.missing": "theme.missing",
|
|
1458
|
+
"local.theme.manifest.unreadable": "theme.registryUnreadable",
|
|
1459
|
+
"local.theme.manifest.definition": "theme.invalidDefinition",
|
|
1460
|
+
"local.theme.manifest.selected": "theme.selectedUnreadable",
|
|
1461
|
+
"local.theme.protocol": "theme.protocol",
|
|
1462
|
+
"local.theme.modes": "theme.modes",
|
|
1463
|
+
"local.tag.missing-close": "tag.missingClose",
|
|
1464
|
+
"local.tag.unclosed.open": "tag.missingClose",
|
|
1465
|
+
"local.tag.unclosed.pair": "tag.unclosedPaired",
|
|
1466
|
+
"local.tag.closing": "tag.closingAttributes",
|
|
1467
|
+
"local.tag.name": "tag.nameInvalid",
|
|
1468
|
+
"local.tag.mismatch.root": "tag.mismatchRoot",
|
|
1469
|
+
"local.tag.mismatch.parent": "tag.mismatchParent",
|
|
1470
|
+
"local.tag.shape": "tag.requiresClose",
|
|
1471
|
+
"local.interpolation.unclosed": "interpolation.unclosed",
|
|
1472
|
+
"local.math.unclosed": "math.unclosed",
|
|
1473
|
+
"local.math.whitespace": "math.whitespace",
|
|
1474
|
+
"local.footnote.unsupported": "footnote.unsupported",
|
|
1475
|
+
"local.html": "html.raw",
|
|
1476
|
+
"local.html.fallback": "html.fallback",
|
|
1477
|
+
"local.html.fallback.attribute": "html.fallbackAttribute",
|
|
1478
|
+
"local.html.table": "html.table.structure",
|
|
1479
|
+
"local.html.extended": "html.extended",
|
|
1480
|
+
"local.html.attribute": "html.attribute",
|
|
1481
|
+
"local.html.unsafe-url": "html.unsafeUrl",
|
|
1482
|
+
"local.html.capability": "html.capability",
|
|
1483
|
+
"local.recovery.unclosed": "recovery.unclosed",
|
|
1484
|
+
"local.recovery.mismatch": "recovery.mismatch",
|
|
1485
|
+
"local.recovery.stray-close": "recovery.strayClose",
|
|
1486
|
+
"local.html.repair": "recovery.htmlRepair",
|
|
1487
|
+
"local.html.literal": "recovery.htmlLiteral",
|
|
1488
|
+
"local.options.invalid.html-flag": "options.htmlFlag",
|
|
1489
|
+
"local.options.invalid.markdown-breaks": "options.markdownBreaks",
|
|
1490
|
+
"local.options.invalid.strict": "options.strict",
|
|
1491
|
+
"local.component.unknown.suggestion": "component.unknownSuggestion",
|
|
1492
|
+
"local.component.unknown": "component.unknownPlain",
|
|
1493
|
+
"local.attribute.format": "attribute.lowercase",
|
|
1494
|
+
"local.attribute.name": "attribute.nameInvalid",
|
|
1495
|
+
"local.attribute.value-quoted": "attribute.valueQuoted",
|
|
1496
|
+
"local.attribute.closing-quote": "attribute.valueUnclosed",
|
|
1497
|
+
"local.attribute.duplicate": "attribute.duplicate",
|
|
1498
|
+
"local.attribute.separator": "attribute.separator",
|
|
1499
|
+
"local.attribute.unknown.suggestion": "attribute.unknownSuggestion",
|
|
1500
|
+
"local.attribute.unknown": "attribute.unknownPlain",
|
|
1501
|
+
"local.attribute.color": "attribute.color",
|
|
1502
|
+
"local.attribute.required": "attribute.required",
|
|
1503
|
+
"local.attribute.static": "attribute.static",
|
|
1504
|
+
"local.host.attribute.unknown": "host.attributeUnknown",
|
|
1505
|
+
"local.host.attribute.required": "host.attributeRequired",
|
|
1506
|
+
"local.host.attribute.static": "host.attributeStatic",
|
|
1507
|
+
"local.host.attribute.type": "host.attributeType",
|
|
1508
|
+
"local.host.attribute.enum": "host.attributeEnum",
|
|
1509
|
+
"local.host.attribute.pattern": "host.attributePattern",
|
|
1510
|
+
"local.host.attribute.interpolation": "host.attributeInterpolation",
|
|
1511
|
+
"local.attribute.type.number": "attribute.numberInvalid",
|
|
1512
|
+
"local.attribute.type.number-interpolation": "attribute.numberInterpolationInvalid",
|
|
1513
|
+
"local.attribute.type.integer": "attribute.integer",
|
|
1514
|
+
"local.attribute.type.positive": "attribute.positive",
|
|
1515
|
+
"local.attribute.type.boolean": "attribute.booleanInvalid",
|
|
1516
|
+
"local.attribute.type.boolean-interpolation": "attribute.booleanInterpolationInvalid",
|
|
1517
|
+
"local.attribute.type.enum": "attribute.enumInvalid",
|
|
1518
|
+
"local.attribute.type.date-lower": "attribute.dateLower",
|
|
1519
|
+
"local.attribute.type.date-upper": "attribute.dateUpper",
|
|
1520
|
+
"local.attribute.range.min": "attribute.rangeMin",
|
|
1521
|
+
"local.attribute.range.max": "attribute.rangeMax",
|
|
1522
|
+
"local.attribute.interpolation": "attribute.fullInterpolation",
|
|
1523
|
+
"local.label.required.missing": "label.requiredMissing",
|
|
1524
|
+
"local.label.required.empty": "label.requiredEmpty",
|
|
1525
|
+
"local.expression.empty.attribute": "expression.emptyAttribute",
|
|
1526
|
+
"local.expression.empty": "expression.emptyInterpolation",
|
|
1527
|
+
"local.expression.error": "expression.error",
|
|
1528
|
+
"local.constraint.number-min-max": "constraint.componentMinMax",
|
|
1529
|
+
"local.constraint.number-step": "constraint.componentStep",
|
|
1530
|
+
"local.constraint.length-order": "constraint.lengthRange",
|
|
1531
|
+
"local.constraint.date-order": "constraint.dateOrder",
|
|
1532
|
+
"local.constraint.progress-range": "constraint.progressRange",
|
|
1533
|
+
"local.constraint.plot-range": "constraint.plotRange",
|
|
1534
|
+
"local.constraint.timer-duration": "constraint.timerDuration",
|
|
1535
|
+
"local.constraint.range-slider-min-max": "constraint.rangeSliderOrder",
|
|
1536
|
+
"local.constraint.range-slider-step": "constraint.rangeSliderStep",
|
|
1537
|
+
"local.constraint.coordinate-axis": "constraint.coordinateOrder",
|
|
1538
|
+
"local.constraint.coordinate-step": "constraint.coordinateStep",
|
|
1539
|
+
"local.constraint.multi-select": "constraint.multiSelectMax",
|
|
1540
|
+
"local.constraint.quiz-tolerance": "constraint.quizTolerance",
|
|
1541
|
+
"local.selection.key.required": "selection.keyNeedsKey",
|
|
1542
|
+
"local.selection.key.empty": "selection.keyEmpty",
|
|
1543
|
+
"local.selection.key.missing-column": "selection.keyMissingColumn",
|
|
1544
|
+
"local.selection.key.interpolation": "selection.keyInterpolation",
|
|
1545
|
+
"local.selection.key.empty-cell": "selection.keyEmptyCell",
|
|
1546
|
+
"local.selection.key.duplicate": "selection.keyDuplicate",
|
|
1547
|
+
"local.selection.key.initial": "initial.selectionNotValue",
|
|
1548
|
+
"local.structure.parent": "structure.parent",
|
|
1549
|
+
"local.structure.no-body": "structure.noBody",
|
|
1550
|
+
"local.structure.inline-only": "structure.inlineOnly",
|
|
1551
|
+
"local.structure.no-nested-components": "structure.noNestedComponents",
|
|
1552
|
+
"local.structure.no-components": "structure.noComponents",
|
|
1553
|
+
"local.structure.children.minimum": "structure.childrenMinimum",
|
|
1554
|
+
"local.structure.children.only": "structure.childrenOnly",
|
|
1555
|
+
"local.structure.sequence.minimum": "structure.sequenceMinimum",
|
|
1556
|
+
"local.structure.sequence.only": "structure.sequenceOnly",
|
|
1557
|
+
"local.structure.accordion.needs-disclosure": "structure.accordionNeedsDisclosure",
|
|
1558
|
+
"local.structure.accordion.only-disclosure": "structure.accordionOnly",
|
|
1559
|
+
"local.structure.grid.needs-card": "structure.gridNeedsCard",
|
|
1560
|
+
"local.structure.grid.only-card": "structure.gridOnlyCard",
|
|
1561
|
+
"local.structure.table.single": "structure.exactlyOneTable",
|
|
1562
|
+
"local.structure.plot.needs-formula": "structure.plotNeedsFormula",
|
|
1563
|
+
"local.structure.plot.only-formulas": "structure.plotOnlyFormulas",
|
|
1564
|
+
"local.structure.node.no-components": "structure.nodeNoComponents",
|
|
1565
|
+
"local.structure.options.needed": "structure.optionsNeeded",
|
|
1566
|
+
"local.structure.options.only": "structure.optionsOnly",
|
|
1567
|
+
"local.structure.option.no-components": "structure.optionNoComponents",
|
|
1568
|
+
"local.structure.tabs.needs-tab": "structure.tabsNeedsTab",
|
|
1569
|
+
"local.structure.tabs.only-tab": "structure.tabsOnly",
|
|
1570
|
+
"local.structure.steps.needs-step": "structure.stepsNeedsStep",
|
|
1571
|
+
"local.structure.steps.only-step": "structure.stepsOnly",
|
|
1572
|
+
"local.structure.quiz.numeric-no-body": "structure.quizNumericNoBody",
|
|
1573
|
+
"local.structure.diagram.only": "structure.diagramOnly",
|
|
1574
|
+
"local.option.value.required": "option.valueRequired",
|
|
1575
|
+
"local.option.value.comma": "option.valueComma",
|
|
1576
|
+
"local.option.value.duplicate": "option.valueDuplicate",
|
|
1577
|
+
"local.tab.value.duplicate": "tab.valueDuplicate",
|
|
1578
|
+
"local.step.value.duplicate": "step.valueDuplicate",
|
|
1579
|
+
"local.quiz.answer.required": "quiz.answerRequired",
|
|
1580
|
+
"local.quiz.answer.numeric": "quiz.answerNumeric",
|
|
1581
|
+
"local.quiz.answer.not-option": "quiz.answerNotOption",
|
|
1582
|
+
"local.diagram.node.required": "diagram.needsNode",
|
|
1583
|
+
"local.diagram.node.invalid": "diagram.nodeInvalid",
|
|
1584
|
+
"local.diagram.node.duplicate": "diagram.nodeDuplicate",
|
|
1585
|
+
"local.diagram.edge.from": "diagram.edgeFromUnknown",
|
|
1586
|
+
"local.diagram.edge.to": "diagram.edgeToUnknown",
|
|
1587
|
+
"local.diagram.edge.duplicate": "diagram.edgeDuplicate",
|
|
1588
|
+
"local.checklist.body.single": "checklist.bodySingle",
|
|
1589
|
+
"local.checklist.body.item-required": "checklist.needsItem",
|
|
1590
|
+
"local.checklist.body.items-limit": "budget.checklistItems",
|
|
1591
|
+
"local.checklist.body.task-only": "checklist.taskOnly",
|
|
1592
|
+
"local.checklist.body.no-nested": "checklist.noNested",
|
|
1593
|
+
"local.checklist.body.no-components": "checklist.noComponents",
|
|
1594
|
+
"local.binding.name": "binding.nameInvalid",
|
|
1595
|
+
"local.binding.reserved": "binding.reserved",
|
|
1596
|
+
"local.binding.type": "binding.typeConflict",
|
|
1597
|
+
"local.binding.exclusive": "binding.exclusive",
|
|
1598
|
+
"local.binding.exclusive.slot": "binding.slotExclusive",
|
|
1599
|
+
"local.binding.constraint": "binding.constraintConflict",
|
|
1600
|
+
"local.binding.option": "binding.optionConflict",
|
|
1601
|
+
"local.binding.unknown.suggestion": "binding.unknownSuggestion",
|
|
1602
|
+
"local.binding.unknown": "binding.unknownPlain",
|
|
1603
|
+
"local.initial.duplicate": "initial.duplicate",
|
|
1604
|
+
"local.initial.duplicate-peers": "initial.duplicatePeers",
|
|
1605
|
+
"local.initial.no-step": "initial.rangeNoStep",
|
|
1606
|
+
"local.initial.cannot-derive": "initial.cannotDerive",
|
|
1607
|
+
"local.initial.type.number": "initial.typeFiniteNumber",
|
|
1608
|
+
"local.initial.type.boolean": "initial.typeBoolean",
|
|
1609
|
+
"local.initial.type": "initial.typeWrong",
|
|
1610
|
+
"local.initial.type.collection": "initial.typeCollection",
|
|
1611
|
+
"local.initial.type.array": "initial.typeStringArray",
|
|
1612
|
+
"local.initial.type.number-array": "initial.typeNumberArray",
|
|
1613
|
+
"local.initial.value.max-items": "initial.maxItems",
|
|
1614
|
+
"local.initial.range.min": "initial.belowMin",
|
|
1615
|
+
"local.initial.range.max": "initial.aboveMax",
|
|
1616
|
+
"local.initial.range.step": "initial.offStep",
|
|
1617
|
+
"local.initial.value.options": "initial.notAmongOptions",
|
|
1618
|
+
"local.initial.date": "initial.dateInvalid",
|
|
1619
|
+
"local.initial.value.option": "initial.notAvailableOption",
|
|
1620
|
+
"local.initial.option.multi-select": "initial.multiSelectOption",
|
|
1621
|
+
"local.initial.range-slider": "initial.rangeSliderOrder",
|
|
1622
|
+
"local.initial.slot.min": "initial.slotBelowMin",
|
|
1623
|
+
"local.initial.slot.max": "initial.slotAboveMax",
|
|
1624
|
+
"local.initial.slot.step": "initial.slotOffStep",
|
|
1625
|
+
"local.initial.length.min": "initial.lengthBelow",
|
|
1626
|
+
"local.initial.length.max": "initial.lengthAbove",
|
|
1627
|
+
"local.initial.email": "initial.email",
|
|
1628
|
+
"local.initial.date.min": "initial.dateBelow",
|
|
1629
|
+
"local.initial.date.max": "initial.dateAbove",
|
|
1630
|
+
"local.initial.multi-select": "initial.multiSelectExceeds",
|
|
1631
|
+
"local.type.number": "type.number",
|
|
1632
|
+
"local.type.boolean": "type.boolean",
|
|
1633
|
+
"local.type.string": "type.string",
|
|
1634
|
+
"local.type.array": "type.arrayNoDisplay",
|
|
1635
|
+
"local.anchor.id": "anchor.idInvalid",
|
|
1636
|
+
"local.anchor.duplicate": "anchor.duplicate",
|
|
1637
|
+
"local.anchor.heading-collision": "anchor.headingCollision",
|
|
1638
|
+
"local.jump.empty": "jump.empty",
|
|
1639
|
+
"local.jump.bad-target": "jump.badTarget",
|
|
1640
|
+
"local.jump.unresolved": "jump.unresolved",
|
|
1641
|
+
"local.math.formula.shape": "math.formulaShape",
|
|
1642
|
+
"local.math.compute": "math.computeFailed",
|
|
1643
|
+
"local.math.binding.unknown": "math.bindingUnknown",
|
|
1644
|
+
"local.math.binding.type": "math.bindingType",
|
|
1645
|
+
"local.math.display.unsupported-command": "math.displayUnsupportedCommand",
|
|
1646
|
+
"local.math.display.unsupported-environment": "math.displayUnsupportedEnvironment",
|
|
1647
|
+
"local.math.display.budget": "math.displayBudget",
|
|
1648
|
+
"local.math.display.stray-end": "math.displayStrayEnd",
|
|
1649
|
+
"local.math.display.environment-unclosed": "math.displayEnvironmentUnclosed",
|
|
1650
|
+
"local.math.display.environment-missing-name": "math.displayEnvironmentMissingName",
|
|
1651
|
+
"local.math.display.syntax": "math.displaySyntax",
|
|
1652
|
+
"local.table.header.missing": "table.missingHeader",
|
|
1653
|
+
"local.table.header.interpolation": "table.headerInterpolation",
|
|
1654
|
+
"local.table.header.empty": "table.headerEmpty",
|
|
1655
|
+
"local.table.header.duplicate": "table.headerDuplicate",
|
|
1656
|
+
"local.table.row.mismatch": "table.rowColumnMismatch",
|
|
1657
|
+
"local.chart.numeric.expression": "chart.numericExpression",
|
|
1658
|
+
"local.timeline.numeric.expression": "timeline.numericExpression",
|
|
1659
|
+
"local.chart.numeric.plain": "chart.numericPlain",
|
|
1660
|
+
"local.timeline.numeric.plain": "timeline.numericPlain",
|
|
1661
|
+
"local.chart.column.comma": "chart.columnComma",
|
|
1662
|
+
"local.chart.column.x-missing": "chart.xMissing",
|
|
1663
|
+
"local.chart.column.y-required": "chart.yRequired",
|
|
1664
|
+
"local.chart.column.y-missing": "chart.yMissing",
|
|
1665
|
+
"local.chart.column.needs-numeric": "chart.needsNumeric",
|
|
1666
|
+
"local.chart.column.scatter-x-missing": "chart.scatterXMissing",
|
|
1667
|
+
"local.chart.column.scatter-needs-numeric": "chart.scatterNeedsNumeric",
|
|
1668
|
+
"local.chart.column.donut-columns": "chart.donutNeedsColumns",
|
|
1669
|
+
"local.chart.column.donut-y": "chart.donutYOne",
|
|
1670
|
+
"local.chart.column.donut-need-y": "chart.donutNeedY",
|
|
1671
|
+
"local.chart.negative": "chart.negative",
|
|
1672
|
+
"local.timeline.header.missing": "timeline.headerMissing",
|
|
1673
|
+
"local.timeline.header.column": "timeline.columnUnsupported",
|
|
1674
|
+
"local.timeline.value.negative": "timeline.negative",
|
|
1675
|
+
"local.runtime.binding.no-writable": "runtime.bindingNoWritable",
|
|
1676
|
+
"local.runtime.binding.needs-slot": "runtime.bindingNeedsSlot",
|
|
1677
|
+
"local.runtime.binding.unknown-slot": "runtime.bindingUnknownSlot",
|
|
1678
|
+
"local.runtime.binding.no-multi-slot": "runtime.bindingNoMultiSlot",
|
|
1679
|
+
"local.runtime.value.date-invalid": "runtime.dateInvalid",
|
|
1680
|
+
"local.runtime.value.date-required": "runtime.dateRequired",
|
|
1681
|
+
"local.runtime.value.date-earlier": "runtime.dateEarlier",
|
|
1682
|
+
"local.runtime.value.date-later": "runtime.dateLater",
|
|
1683
|
+
"local.runtime.value.field-required": "runtime.fieldRequired",
|
|
1684
|
+
"local.runtime.value.min-length": "runtime.minLength",
|
|
1685
|
+
"local.runtime.value.max-length": "runtime.maxLength",
|
|
1686
|
+
"local.runtime.value.email-length": "runtime.emailLength",
|
|
1687
|
+
"local.runtime.value.email-invalid": "runtime.emailInvalid",
|
|
1688
|
+
"local.runtime.value.finite-number": "runtime.finiteNumber",
|
|
1689
|
+
"local.runtime.value.min": "runtime.min",
|
|
1690
|
+
"local.runtime.value.max": "runtime.max",
|
|
1691
|
+
"local.runtime.value.step": "runtime.step",
|
|
1692
|
+
"local.runtime.value.boolean": "runtime.boolean",
|
|
1693
|
+
"local.runtime.value.string": "runtime.string",
|
|
1694
|
+
"local.runtime.value.array": "runtime.array",
|
|
1695
|
+
"local.runtime.value.array-members": "runtime.arrayMembers",
|
|
1696
|
+
"local.runtime.value.number-array": "runtime.numberArray",
|
|
1697
|
+
"local.runtime.value.number-array-members": "runtime.numberArrayMembers",
|
|
1698
|
+
"local.runtime.value.null": "runtime.null",
|
|
1699
|
+
"local.runtime.value.checklist-option": "runtime.checklistOption",
|
|
1700
|
+
"local.runtime.value.max-items": "runtime.maxItems",
|
|
1701
|
+
"local.runtime.value.unsupported-type": "runtime.unsupportedType",
|
|
1702
|
+
"local.runtime.value.option": "runtime.option",
|
|
1703
|
+
"local.runtime.value.budget": "runtime.budget",
|
|
1704
|
+
"local.runtime.value.range-order": "runtime.rangeOrder"
|
|
1705
|
+
}, ne = 16, _ = 256, re = 2e3;
|
|
1706
|
+
function ie(e) {
|
|
1707
|
+
if (typeof e == "string") return e.length > _ ? `${e.slice(0, 255)}…` : e;
|
|
1708
|
+
if (typeof e == "number") return Number.isFinite(e) ? e : String(e);
|
|
1709
|
+
if (typeof e == "boolean" || e === null) return e;
|
|
1710
|
+
if (e === void 0) return "";
|
|
1711
|
+
try {
|
|
1712
|
+
let t = JSON.stringify(e) ?? String(e);
|
|
1713
|
+
return t.length > _ ? `${t.slice(0, 255)}…` : t;
|
|
1714
|
+
} catch {
|
|
1715
|
+
return String(e).slice(0, _);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
function ae(e) {
|
|
1719
|
+
let t = Object.entries(e);
|
|
1720
|
+
if (t.length === 0) return;
|
|
1721
|
+
let n = {}, r = 0, i = 0;
|
|
1722
|
+
for (let [e, a] of t) {
|
|
1723
|
+
if (i >= ne) break;
|
|
1724
|
+
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(e)) continue;
|
|
1725
|
+
let t;
|
|
1726
|
+
try {
|
|
1727
|
+
t = ie(a);
|
|
1728
|
+
} catch {
|
|
1729
|
+
t = "";
|
|
1730
|
+
}
|
|
1731
|
+
let o = typeof t == "string" ? t.length : String(t).length;
|
|
1732
|
+
if (r + o > re) break;
|
|
1733
|
+
n[e] = t, r += o, i += 1;
|
|
1734
|
+
}
|
|
1735
|
+
return i > 0 ? n : void 0;
|
|
1736
|
+
}
|
|
1737
|
+
function oe(e, t) {
|
|
1738
|
+
let n = t ? ae(t) : void 0;
|
|
1739
|
+
return n ? {
|
|
1740
|
+
key: e,
|
|
1741
|
+
params: n
|
|
1742
|
+
} : { key: e };
|
|
1743
|
+
}
|
|
1744
|
+
var se = /* @__PURE__ */ "local.parse,local.budget,local.options.invalid,local.theme.expression,local.theme.name,local.theme.attribute,local.theme.malformed,local.theme.duplicate,local.theme.late,local.theme.nested,local.attribute,local.attribute.name,local.attribute.duplicate,local.budget.name,local.budget.math,local.tag.unclosed,local.tag.closing,local.tag.name,local.tag.mismatch,local.tag.shape,local.footnote.unsupported,local.interpolation,local.math.unclosed,local.math.whitespace,local.component.unknown,local.html,local.html.fallback,local.html.table,local.html.repair,local.html.literal,local.recovery.unclosed,local.recovery.mismatch,local.recovery.stray-close".split(","), ce = /* @__PURE__ */ "local.budget.data-table.cells,local.budget.data-table.columns,local.budget.data-table.rows,local.computation.budget,local.computation.const,local.computation.cycle,local.computation.duplicate,local.computation.expression,local.computation.name,local.computation.placement,local.computation.reserved,local.computation.unknown,local.external.placement,local.external.name,local.external.reserved,local.external.duplicate,local.external.conflict,local.external.type,local.host.structure,local.computation.value,local.data-table.column,local.data-table.key,local.data-table.rows,local.data-table.value,local.validation.budget,local.validation.expression,local.validation.failed,local.validation.fields,local.validation.placement,local.validation.when,local.parse,local.legacy,local.component.unknown,local.host.attribute,local.attribute.unknown,local.budget.attribute,local.attribute.color,local.attribute.required,local.label.required,local.attribute.static,local.expression.empty,local.expression.invalid,local.attribute.type,local.attribute.range,local.constraint,local.selection.key,local.structure.parent,local.structure.children,local.budget.array,local.option.value,local.tab.value,local.step.value,local.quiz.answer,local.diagram.node,local.diagram.edge,local.checklist.body,local.budget.identifier,local.binding.name,local.binding.reserved,local.binding.type,local.binding.exclusive,local.binding.constraint,local.binding.option,local.initial.duplicate,local.initial.length,local.initial.email,local.initial.range,local.initial.option,local.initial.type,local.initial.date,local.initial,local.initial.step,local.binding.unknown,local.type,local.interpolation,local.attribute.interpolation,local.anchor.id,local.anchor.duplicate,local.jump.target,local.budget.plot.curves,local.budget.plot.points,local.math.formula,local.math,local.math.display,local.math.binding,local.table.header,local.table.row,local.chart.numeric,local.chart.column,local.chart.negative,local.timeline.header,local.timeline.value,local.html.extended,local.html.attribute,local.html.unsafe-url,local.html.capability,local.capability.html,local.capability.plot".split(","), le = [
|
|
1745
|
+
"local.runtime.binding",
|
|
1746
|
+
"local.runtime.value",
|
|
1747
|
+
"local.runtime.external"
|
|
1748
|
+
], ue = [
|
|
1749
|
+
"local.theme.name",
|
|
1750
|
+
"local.theme.missing",
|
|
1751
|
+
"local.theme.manifest",
|
|
1752
|
+
"local.theme.duplicate",
|
|
1753
|
+
"local.theme.protocol",
|
|
1754
|
+
"local.theme.modes"
|
|
1755
|
+
], de = [
|
|
1756
|
+
"expression-index",
|
|
1757
|
+
"expression-cycle",
|
|
1758
|
+
"expression-syntax",
|
|
1759
|
+
"expression-number",
|
|
1760
|
+
"expression-string",
|
|
1761
|
+
"expression-budget",
|
|
1762
|
+
"expression-assignment",
|
|
1763
|
+
"expression-property",
|
|
1764
|
+
"expression-empty",
|
|
1765
|
+
"expression-unknown-function",
|
|
1766
|
+
"expression-arity",
|
|
1767
|
+
"expression-forbidden-name",
|
|
1768
|
+
"expression-type",
|
|
1769
|
+
"expression-unknown-name",
|
|
1770
|
+
"expression-value",
|
|
1771
|
+
"expression-eval",
|
|
1772
|
+
"expression-domain",
|
|
1773
|
+
"expression-divide-by-zero",
|
|
1774
|
+
"expression-interpolation"
|
|
1775
|
+
], fe = [
|
|
1776
|
+
"latex-budget",
|
|
1777
|
+
"latex-syntax",
|
|
1778
|
+
"latex-empty",
|
|
1779
|
+
"latex-relation",
|
|
1780
|
+
"latex-number",
|
|
1781
|
+
"latex-name",
|
|
1782
|
+
"latex-unsupported",
|
|
1783
|
+
"latex-variable",
|
|
1784
|
+
"latex-type",
|
|
1785
|
+
"latex-divide-by-zero",
|
|
1786
|
+
"latex-domain",
|
|
1787
|
+
"latex-undefined",
|
|
1788
|
+
"latex-plot-range",
|
|
1789
|
+
"latex-plot-samples"
|
|
1790
|
+
], pe = [
|
|
1791
|
+
"local.version.unsupported",
|
|
1792
|
+
"local.version.malformed",
|
|
1793
|
+
"local.version.duplicate",
|
|
1794
|
+
"local.version.placement",
|
|
1795
|
+
"local.upgrade.from-version",
|
|
1796
|
+
"local.upgrade.reserved-binding",
|
|
1797
|
+
"local.upgrade.tag",
|
|
1798
|
+
"local.upgrade.text-length",
|
|
1799
|
+
"local.upgrade.expression",
|
|
1800
|
+
"local.upgrade.version-missing",
|
|
1801
|
+
...se,
|
|
1802
|
+
...ce,
|
|
1803
|
+
...le,
|
|
1804
|
+
...ue
|
|
1805
|
+
], me = Object.freeze(Array.from(/* @__PURE__ */ new Set([
|
|
1806
|
+
...pe,
|
|
1807
|
+
...de,
|
|
1808
|
+
...de.map((e) => `local.expression.${e}`),
|
|
1809
|
+
...fe
|
|
1810
|
+
]))), he = Object.freeze([...Object.keys(g), ...Object.keys(h).filter((e) => e.startsWith("error."))].sort());
|
|
1811
|
+
function ge(e) {
|
|
1812
|
+
if (Object.hasOwn(g, e)) return g[e];
|
|
1813
|
+
if (Object.hasOwn(h, e)) return e;
|
|
1814
|
+
}
|
|
1815
|
+
function v(e, t = "en") {
|
|
1816
|
+
let n = ge(e);
|
|
1817
|
+
if (n) return h[n][t === "zh" ? "zh" : "en"];
|
|
1818
|
+
}
|
|
1819
|
+
function _e(e) {
|
|
1820
|
+
return typeof e == "string" && me.includes(e);
|
|
1821
|
+
}
|
|
1822
|
+
function y(e, t) {
|
|
1823
|
+
return t ? e.replace(/\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (e, n) => {
|
|
1824
|
+
let r = t[n];
|
|
1825
|
+
return r === void 0 ? "" : String(r);
|
|
1826
|
+
}) : e;
|
|
1827
|
+
}
|
|
1828
|
+
function b(e, t = "en", n) {
|
|
1829
|
+
let r = v(e, t);
|
|
1830
|
+
return r === void 0 ? "" : y(r, n);
|
|
1831
|
+
}
|
|
1832
|
+
function ve(e) {
|
|
1833
|
+
return b(e.key, "en", e.params);
|
|
1834
|
+
}
|
|
1835
|
+
function ye(e, t = "en") {
|
|
1836
|
+
let n = typeof e.messageKey == "string" ? e.messageKey : void 0, r = n === void 0 ? void 0 : v(n, t), i = e.params;
|
|
1837
|
+
if (t === "zh" && i) {
|
|
1838
|
+
let e = n === void 0 ? void 0 : ge(n);
|
|
1839
|
+
if (e === "expression.error" || e === "math.computeFailed") {
|
|
1840
|
+
let e = typeof i.code == "string" ? v(`error.${i.code}`, "zh") : void 0;
|
|
1841
|
+
if (e) {
|
|
1842
|
+
let t = typeof i.near == "string" && i.near ? ` 相关源码:${i.near}` : "";
|
|
1843
|
+
i = {
|
|
1844
|
+
...i,
|
|
1845
|
+
detail: e + t
|
|
1846
|
+
};
|
|
1847
|
+
}
|
|
1848
|
+
} else if (e === "runtime.budget" && typeof i.detailKey == "string") {
|
|
1849
|
+
let e = v(i.detailKey, "zh");
|
|
1850
|
+
e && (i = {
|
|
1851
|
+
...i,
|
|
1852
|
+
detail: y(e, i)
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
let a = r === void 0 ? typeof e.message == "string" ? e.message : String(e.message ?? "") : y(r, i), o = typeof a == "string" ? a : String(a ?? "");
|
|
1857
|
+
return o.length > 2e3 ? `${o.slice(0, te - 1)}…` : o;
|
|
1858
|
+
}
|
|
1859
|
+
// src/local/compilation/component-kernel.ts
|
|
1860
|
+
function x(e, t, n) {
|
|
1861
|
+
if (!e) return;
|
|
1862
|
+
let r = e, i = e.options ?? [], a = e.constraints ?? (r.min !== void 0 || r.max !== void 0 || r.step !== void 0 ? {
|
|
1863
|
+
...r.min === void 0 ? {} : { min: { literal: r.min } },
|
|
1864
|
+
...r.max === void 0 ? {} : { max: { literal: r.max } },
|
|
1865
|
+
...r.step === void 0 ? {} : { step: { literal: r.step } }
|
|
1866
|
+
} : void 0), o = e.family ?? (e.kind === "number" ? "number" : e.kind === "boolean" ? "boolean" : e.kind === "array" ? "multi-select" : i.length ? "choice" : "text");
|
|
1867
|
+
return {
|
|
1868
|
+
...e,
|
|
1869
|
+
family: o,
|
|
1870
|
+
bind: e.bind ?? "bind",
|
|
1871
|
+
initial: e.initial ?? "initial",
|
|
1872
|
+
initialRule: e.initialRule ?? n ?? (t === "value" ? e.kind === "boolean" ? "false" : e.kind === "number" ? "nearest-zero" : "empty" : "nearest-zero"),
|
|
1873
|
+
...a ? { constraints: a } : {}
|
|
1874
|
+
};
|
|
1875
|
+
}
|
|
1876
|
+
function be(e) {
|
|
1877
|
+
return e.bindings.value;
|
|
1878
|
+
}
|
|
1879
|
+
function xe(e) {
|
|
1880
|
+
let t = [];
|
|
1881
|
+
for (let [n, r] of Object.entries(e.bindings)) n !== "value" && t.push({
|
|
1882
|
+
...r,
|
|
1883
|
+
slot: n
|
|
1884
|
+
});
|
|
1885
|
+
return t;
|
|
1886
|
+
}
|
|
1887
|
+
function Se(e) {
|
|
1888
|
+
return e.slotRelations;
|
|
1889
|
+
}
|
|
1890
|
+
function Ce(e) {
|
|
1891
|
+
return e.structure ? e.structure : {
|
|
1892
|
+
rule: e.childRule ?? (e.form === "leaf" ? "none" : e.form === "inline" ? "inline" : "any"),
|
|
1893
|
+
label: e.label ?? "none",
|
|
1894
|
+
...e.parent ? { parents: e.parent } : {}
|
|
1895
|
+
};
|
|
1896
|
+
}
|
|
1897
|
+
function we(e) {
|
|
1898
|
+
return e.structure;
|
|
1899
|
+
}
|
|
1900
|
+
function S(e) {
|
|
1901
|
+
return e.rules ?? [];
|
|
1902
|
+
}
|
|
1903
|
+
function Te(e, t) {
|
|
1904
|
+
for (let n of S(e)) if (n.kind === t) return n;
|
|
1905
|
+
}
|
|
1906
|
+
function Ee(e, t) {
|
|
1907
|
+
return S(e).filter((e) => e.kind === t);
|
|
1908
|
+
}
|
|
1909
|
+
function De(e) {
|
|
1910
|
+
return e.legacyHost === !0;
|
|
1911
|
+
}
|
|
1912
|
+
function C(e, t) {
|
|
1913
|
+
if (t === e.bind) return e.options, {
|
|
1914
|
+
kind: "string",
|
|
1915
|
+
static: !0
|
|
1916
|
+
};
|
|
1917
|
+
switch (e.kind) {
|
|
1918
|
+
case "number": return {
|
|
1919
|
+
kind: "number",
|
|
1920
|
+
static: !0
|
|
1921
|
+
};
|
|
1922
|
+
case "boolean": return {
|
|
1923
|
+
kind: "boolean",
|
|
1924
|
+
static: !0
|
|
1925
|
+
};
|
|
1926
|
+
default: return {
|
|
1927
|
+
kind: "string",
|
|
1928
|
+
static: !0
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
function Oe(e, t) {
|
|
1933
|
+
let n = { ...e.props }, r = t?.bindings ?? e.bindings, i = r?.value ?? e.binding, a = r ? Object.entries(r).filter(([e]) => e !== "value").map(([, e]) => e) : (e.slots ?? []).map((e) => ({
|
|
1934
|
+
kind: e.kind,
|
|
1935
|
+
family: e.family,
|
|
1936
|
+
bind: e.bind,
|
|
1937
|
+
initial: e.initial,
|
|
1938
|
+
initialRule: e.initialRule ?? "nearest-zero"
|
|
1939
|
+
}));
|
|
1940
|
+
for (let e of i ? [i] : []) Object.hasOwn(n, e.bind) || (n[e.bind] = C(e, e.bind)), Object.hasOwn(n, e.initial) || (n[e.initial] = C(e, e.initial)), Object.hasOwn(n, "disabled") || (n.disabled = {
|
|
1941
|
+
kind: "boolean",
|
|
1942
|
+
dynamic: !0,
|
|
1943
|
+
default: !1
|
|
1944
|
+
});
|
|
1945
|
+
for (let e of a) Object.hasOwn(n, e.bind) || (n[e.bind] = C(e, e.bind)), Object.hasOwn(n, e.initial) || (n[e.initial] = C(e, e.initial));
|
|
1946
|
+
return {
|
|
1947
|
+
...e,
|
|
1948
|
+
props: n,
|
|
1949
|
+
...t?.structure ?? e.structure ? { structure: t?.structure ?? e.structure } : {},
|
|
1950
|
+
...t?.rules ?? e.rules ? { rules: t?.rules ?? e.rules } : {},
|
|
1951
|
+
...r ? { bindings: r } : {},
|
|
1952
|
+
...t?.slotRelations ?? e.slotRelations ? { slotRelations: t?.slotRelations ?? e.slotRelations } : {},
|
|
1953
|
+
...t?.legacyHost === !0 || e.legacyHost === !0 ? { legacyHost: !0 } : {}
|
|
1954
|
+
};
|
|
1955
|
+
}
|
|
1956
|
+
function w(e, t) {
|
|
1957
|
+
let n = Oe(e, t), r = {}, i = t?.bindings ?? e.bindings;
|
|
1958
|
+
if (i) for (let [t, n] of Object.entries(i)) {
|
|
1959
|
+
let i = x(n, t, t === "value" ? e.initialRule : void 0);
|
|
1960
|
+
i && (r[t] = i);
|
|
1961
|
+
}
|
|
1962
|
+
else if (e.binding) {
|
|
1963
|
+
let t = x(e.binding, "value", e.initialRule);
|
|
1964
|
+
t && (r.value = t);
|
|
1965
|
+
}
|
|
1966
|
+
for (let t of e.slots ?? []) {
|
|
1967
|
+
if (r[t.name] !== void 0) continue;
|
|
1968
|
+
let e = x({
|
|
1969
|
+
kind: t.kind,
|
|
1970
|
+
family: t.family,
|
|
1971
|
+
bind: t.bind,
|
|
1972
|
+
initial: t.initial,
|
|
1973
|
+
...t.exclusive === void 0 ? {} : { exclusive: t.exclusive },
|
|
1974
|
+
...t.initialRule === void 0 ? {} : { initialRule: t.initialRule }
|
|
1975
|
+
}, t.name);
|
|
1976
|
+
e && (r[t.name] = e);
|
|
1977
|
+
}
|
|
1978
|
+
let a = {};
|
|
1979
|
+
for (let [e, t] of Object.entries(n.props)) {
|
|
1980
|
+
let n = t.values ?? t.enum;
|
|
1981
|
+
if (n === void 0) {
|
|
1982
|
+
a[e] = t;
|
|
1983
|
+
continue;
|
|
1984
|
+
}
|
|
1985
|
+
let { enum: r, ...i } = t;
|
|
1986
|
+
a[e] = {
|
|
1987
|
+
...i,
|
|
1988
|
+
values: n
|
|
1989
|
+
};
|
|
1990
|
+
}
|
|
1991
|
+
return Object.freeze({
|
|
1992
|
+
name: n.name,
|
|
1993
|
+
form: n.form,
|
|
1994
|
+
props: Object.freeze(a),
|
|
1995
|
+
bindings: Object.freeze(r),
|
|
1996
|
+
structure: Ce(n),
|
|
1997
|
+
rules: n.rules ?? [],
|
|
1998
|
+
slotRelations: n.slotRelations ?? [],
|
|
1999
|
+
legacyHost: n.legacyHost === !0
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
function T(e, t, n) {
|
|
2003
|
+
if (n === void 0) return;
|
|
2004
|
+
let r = t[n];
|
|
2005
|
+
if (r) return !r.dynamic && typeof r.value == "number" ? r.value : void 0;
|
|
2006
|
+
let i = e.props[n]?.default;
|
|
2007
|
+
return typeof i == "number" ? i : void 0;
|
|
2008
|
+
}
|
|
2009
|
+
function E(e, t, n) {
|
|
2010
|
+
if (n === void 0) return;
|
|
2011
|
+
let r = t[n];
|
|
2012
|
+
if (r) return !r.dynamic && typeof r.value == "string" ? r.value : void 0;
|
|
2013
|
+
let i = e.props[n]?.default;
|
|
2014
|
+
return typeof i == "string" ? i : void 0;
|
|
2015
|
+
}
|
|
2016
|
+
function D(e, t, n) {
|
|
2017
|
+
return n === void 0 ? t : e[n]?.offset ?? t;
|
|
2018
|
+
}
|
|
2019
|
+
function ke(e, t, n) {
|
|
2020
|
+
let r = [], i = e.name, a = i, o = (e, t, n, i, a) => {
|
|
2021
|
+
r.push({
|
|
2022
|
+
code: e,
|
|
2023
|
+
message: t,
|
|
2024
|
+
start: n,
|
|
2025
|
+
key: i,
|
|
2026
|
+
...a ? { params: a } : {}
|
|
2027
|
+
});
|
|
2028
|
+
};
|
|
2029
|
+
for (let r of S(e)) switch (r.kind) {
|
|
2030
|
+
case "numeric-range": {
|
|
2031
|
+
let s = T(e, t, r.min), c = T(e, t, r.max);
|
|
2032
|
+
s !== void 0 && c !== void 0 && (r.order === "increasing" ? !(s < c) : s > c) && o("local.constraint", r.order === "increasing" ? `${i} ${r.min ?? "min"} must be less than ${r.max ?? "max"}.` : `Component <${i}> min cannot exceed max.`, D(t, n.start, r.min), r.order === "increasing" ? "local.constraint.plot-range" : "local.constraint.number-min-max", r.order === "increasing" ? void 0 : { component: a });
|
|
2033
|
+
let l = T(e, t, r.step);
|
|
2034
|
+
l === void 0 || l > 0 && Number.isFinite(l) || o("local.constraint", `Component <${i}> step must be greater than 0.`, D(t, n.start, r.step), "local.constraint.number-step", { component: a });
|
|
2035
|
+
let u = r.integer;
|
|
2036
|
+
if (u !== void 0) {
|
|
2037
|
+
let r = T(e, t, u);
|
|
2038
|
+
r !== void 0 && !Number.isInteger(r) && o("local.constraint", `Attribute ${u} must be a whole number.`, D(t, n.start, u), "local.constraint.integer", {
|
|
2039
|
+
name: u,
|
|
2040
|
+
component: a
|
|
2041
|
+
});
|
|
2042
|
+
}
|
|
2043
|
+
if (r.positiveInteger !== void 0) {
|
|
2044
|
+
let i = T(e, t, r.positiveInteger);
|
|
2045
|
+
i !== void 0 && (!Number.isInteger(i) || i <= 0) && o("local.constraint", `Attribute ${r.positiveInteger} must be a positive whole number.`, D(t, n.start, r.positiveInteger), "local.constraint.positive-integer", {
|
|
2046
|
+
name: r.positiveInteger,
|
|
2047
|
+
component: a
|
|
2048
|
+
});
|
|
2049
|
+
}
|
|
2050
|
+
break;
|
|
2051
|
+
}
|
|
2052
|
+
case "text-length": {
|
|
2053
|
+
let i = T(e, t, r.min) ?? 0, a = T(e, t, r.max);
|
|
2054
|
+
a !== void 0 && a < i && o("local.constraint", "max-length cannot be less than min-length.", D(t, n.start, r.max), "local.constraint.length-order");
|
|
2055
|
+
break;
|
|
2056
|
+
}
|
|
2057
|
+
case "date-bounds": {
|
|
2058
|
+
let i = E(e, t, r.min), a = E(e, t, r.max);
|
|
2059
|
+
i !== void 0 && !O(i) && o("local.attribute.type", `Date lower bound ${i} is not a valid YYYY-MM-DD.`, D(t, n.start, r.min), "local.attribute.type.date-lower", { value: i }), a !== void 0 && !O(a) && o("local.attribute.type", `Date upper bound ${a} is not a valid YYYY-MM-DD.`, D(t, n.start, r.max), "local.attribute.type.date-upper", { value: a }), i && a && i > a && o("local.constraint", "Date min cannot be later than max.", D(t, n.start, r.min), "local.constraint.date-order");
|
|
2060
|
+
break;
|
|
2061
|
+
}
|
|
2062
|
+
case "nonempty": {
|
|
2063
|
+
let e = t[r.attribute];
|
|
2064
|
+
if (!e || e.dynamic) break;
|
|
2065
|
+
(typeof e.value == "string" ? e.value : String(e.raw ?? "")).trim() || o("local.constraint", `Attribute ${r.attribute} of <${i}> cannot be empty.`, e.offset, `local.constraint.${i}-${r.attribute}`, {
|
|
2066
|
+
name: r.attribute,
|
|
2067
|
+
component: a
|
|
2068
|
+
});
|
|
2069
|
+
break;
|
|
2070
|
+
}
|
|
2071
|
+
case "progress-bounds": {
|
|
2072
|
+
let n = T(e, t, r.max) ?? r.defaultMax, i = t[r.value];
|
|
2073
|
+
i && !i.dynamic && typeof i.value == "number" && (i.value < 0 || i.value > n) && o("local.constraint", `progress value must be between 0 and ${n}, got ${i.value}.`, i.offset, "local.constraint.progress-range", {
|
|
2074
|
+
max: n,
|
|
2075
|
+
value: i.value
|
|
2076
|
+
});
|
|
2077
|
+
break;
|
|
2078
|
+
}
|
|
2079
|
+
case "timer-duration": {
|
|
2080
|
+
let i = T(e, t, r.attribute) ?? r.default;
|
|
2081
|
+
(!Number.isInteger(i) || i <= 0) && o("local.constraint", "timer duration must be a positive whole number of seconds.", D(t, n.start, r.attribute), "local.constraint.timer-duration");
|
|
2082
|
+
break;
|
|
2083
|
+
}
|
|
2084
|
+
case "option-count": {
|
|
2085
|
+
let a = T(e, t, r.max);
|
|
2086
|
+
a !== void 0 && (!Number.isInteger(a) || a < 0) && o("local.constraint", `${i} ${r.max} must be a nonnegative whole number.`, D(t, n.start, r.max), `local.constraint.${i}`);
|
|
2087
|
+
break;
|
|
2088
|
+
}
|
|
2089
|
+
case "selection-requires":
|
|
2090
|
+
if (Object.hasOwn(t, r.key)) break;
|
|
2091
|
+
for (let e of r.attributes) {
|
|
2092
|
+
let n = t[e];
|
|
2093
|
+
n && o("local.selection.key", `<${i}> ${e} requires a key attribute naming the selection column.`, n.offset, "local.selection.key.required", {
|
|
2094
|
+
component: a,
|
|
2095
|
+
name: e
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
return r;
|
|
2100
|
+
}
|
|
2101
|
+
var Ae = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
2102
|
+
function O(e) {
|
|
2103
|
+
if (e === "") return !0;
|
|
2104
|
+
let t = Ae.exec(e);
|
|
2105
|
+
if (!t) return !1;
|
|
2106
|
+
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]);
|
|
2107
|
+
return n < 1 || r < 1 || r > 12 || i < 1 ? !1 : i <= [
|
|
2108
|
+
31,
|
|
2109
|
+
n % 4 == 0 && n % 100 != 0 || n % 400 == 0 ? 29 : 28,
|
|
2110
|
+
31,
|
|
2111
|
+
30,
|
|
2112
|
+
31,
|
|
2113
|
+
30,
|
|
2114
|
+
31,
|
|
2115
|
+
31,
|
|
2116
|
+
30,
|
|
2117
|
+
31,
|
|
2118
|
+
30,
|
|
2119
|
+
31
|
|
2120
|
+
][r - 1];
|
|
2121
|
+
}
|
|
2122
|
+
function k(e, t, n) {
|
|
2123
|
+
if (n === void 0) return;
|
|
2124
|
+
if ("literal" in n) return n.literal;
|
|
2125
|
+
let r = t[n.prop];
|
|
2126
|
+
if (r) return r.dynamic ? void 0 : typeof r.value == "number" ? r.value : void 0;
|
|
2127
|
+
let i = e.props[n.prop]?.default;
|
|
2128
|
+
return typeof i == "number" ? i : void 0;
|
|
2129
|
+
}
|
|
2130
|
+
function je(e, t, n) {
|
|
2131
|
+
let r = t.constraints;
|
|
2132
|
+
if (!r) return { step: 1 };
|
|
2133
|
+
let i = k(e, n, r.min), a = k(e, n, r.max), o = k(e, n, r.step) ?? 1, s = (e) => {
|
|
2134
|
+
if (e === void 0 || !("prop" in e)) return;
|
|
2135
|
+
let t = n[e.prop];
|
|
2136
|
+
return t?.dynamic ? (t.expression ?? "").trim() : void 0;
|
|
2137
|
+
}, c = s(r.min), l = s(r.max);
|
|
2138
|
+
return {
|
|
2139
|
+
...i === void 0 ? {} : { min: i },
|
|
2140
|
+
...a === void 0 ? {} : { max: a },
|
|
2141
|
+
step: o > 0 ? o : 1,
|
|
2142
|
+
...c === void 0 ? {} : { dynamicMin: c },
|
|
2143
|
+
...l === void 0 ? {} : { dynamicMax: l }
|
|
2144
|
+
};
|
|
2145
|
+
}
|
|
2146
|
+
function Me(e, t, n) {
|
|
2147
|
+
return k(e, n, t.maxItems);
|
|
2148
|
+
}
|
|
2149
|
+
function Ne(e, t, n) {
|
|
2150
|
+
let r = n === "min" ? e.dynamicMin : e.dynamicMax, i = n === "min" ? t.dynamicMin : t.dynamicMax;
|
|
2151
|
+
return r !== void 0 || i !== void 0 ? r === i : e[n] === t[n];
|
|
2152
|
+
}
|
|
2153
|
+
function Pe(e) {
|
|
2154
|
+
return `[${e.dynamicMin === void 0 ? e.min === void 0 ? "-∞" : String(e.min) : `{{ ${e.dynamicMin} }}`}, ${e.dynamicMax === void 0 ? e.max === void 0 ? "∞" : String(e.max) : `{{ ${e.dynamicMax} }}`}] / ${e.step}`;
|
|
2155
|
+
}
|
|
2156
|
+
function Fe(e, t, n) {
|
|
2157
|
+
let r = (e - t) / n;
|
|
2158
|
+
return Math.abs(r - Math.round(r)) <= 1e-9 * Math.max(1, Math.abs(r));
|
|
2159
|
+
}
|
|
2160
|
+
function Ie(e, t, n) {
|
|
2161
|
+
let r = e ?? 0, i = e === void 0 ? -Infinity : Math.ceil((e - r) / n), a = t === void 0 ? Infinity : Math.floor((t - r) / n);
|
|
2162
|
+
if (i > a) return null;
|
|
2163
|
+
let o = -r / n, s = null;
|
|
2164
|
+
for (let e of [Math.floor(o), Math.ceil(o)]) {
|
|
2165
|
+
let t = Math.min(a, Math.max(i, e));
|
|
2166
|
+
if (!Number.isFinite(t)) continue;
|
|
2167
|
+
if (s === null) {
|
|
2168
|
+
s = t;
|
|
2169
|
+
continue;
|
|
2170
|
+
}
|
|
2171
|
+
let o = r + t * n, c = r + s * n;
|
|
2172
|
+
(Math.abs(o) < Math.abs(c) || Math.abs(o) === Math.abs(c) && o < c) && (s = t);
|
|
2173
|
+
}
|
|
2174
|
+
if (s === null) return null;
|
|
2175
|
+
let c = r + s * n;
|
|
2176
|
+
return e !== void 0 && c < e || t !== void 0 && c > t ? null : c;
|
|
2177
|
+
}
|
|
2178
|
+
function Le(e, t, n) {
|
|
2179
|
+
switch (e) {
|
|
2180
|
+
case "empty": return { value: "" };
|
|
2181
|
+
case "false": return { value: !1 };
|
|
2182
|
+
case "min": return { value: t?.min ?? 0 };
|
|
2183
|
+
case "nearest-zero": {
|
|
2184
|
+
let e = t ?? { step: 1 }, n = Ie(e.min, e.max, e.step);
|
|
2185
|
+
return n === null ? { error: "no-step" } : { value: n };
|
|
2186
|
+
}
|
|
2187
|
+
case "duration": return { value: t?.max ?? 60 };
|
|
2188
|
+
case "first-option":
|
|
2189
|
+
case "first-tab":
|
|
2190
|
+
case "first-step":
|
|
2191
|
+
case "first-node": return { value: n[0] ?? "" };
|
|
2192
|
+
case "checked": return { value: [] };
|
|
2193
|
+
case "empty-array": return { value: [] };
|
|
2194
|
+
case "max-step": {
|
|
2195
|
+
let e = t ?? { step: 1 }, n = e.min ?? 0, r = (e.max ?? n) - n, i = n + Math.max(0, Math.floor(r / e.step + 1e-9)) * e.step;
|
|
2196
|
+
return { value: Math.min(e.max ?? i, Math.max(e.min ?? i, i)) };
|
|
2197
|
+
}
|
|
2198
|
+
case "none": return { value: "" };
|
|
2199
|
+
default: return { error: "cannot-derive" };
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
function Re(e) {
|
|
2203
|
+
switch (e) {
|
|
2204
|
+
case "choice":
|
|
2205
|
+
case "multi-select": return "options";
|
|
2206
|
+
case "tabs": return "tabs";
|
|
2207
|
+
case "steps": return "steps";
|
|
2208
|
+
case "selection": return "selection";
|
|
2209
|
+
case "diagram": return "diagram-nodes";
|
|
2210
|
+
case "checklist": return "checklist";
|
|
2211
|
+
default: return;
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
function A(e) {
|
|
2215
|
+
let t = {};
|
|
2216
|
+
for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = r);
|
|
2217
|
+
return t;
|
|
2218
|
+
}
|
|
2219
|
+
function ze(e) {
|
|
2220
|
+
let t = [];
|
|
2221
|
+
for (let n of S(e)) switch (n.kind) {
|
|
2222
|
+
case "value-date":
|
|
2223
|
+
t.push(A({
|
|
2224
|
+
kind: "date",
|
|
2225
|
+
min: n.min,
|
|
2226
|
+
max: n.max,
|
|
2227
|
+
required: n.required
|
|
2228
|
+
}));
|
|
2229
|
+
break;
|
|
2230
|
+
case "value-length":
|
|
2231
|
+
t.push(A({
|
|
2232
|
+
kind: "length",
|
|
2233
|
+
min: n.min,
|
|
2234
|
+
max: n.max
|
|
2235
|
+
})), (n.email !== void 0 || n.emailType !== void 0) && t.push(A({
|
|
2236
|
+
kind: "email",
|
|
2237
|
+
type: n.email ?? "type",
|
|
2238
|
+
value: n.emailType ?? "email"
|
|
2239
|
+
}));
|
|
2240
|
+
break;
|
|
2241
|
+
case "value-email":
|
|
2242
|
+
t.push(A({
|
|
2243
|
+
kind: "email",
|
|
2244
|
+
type: n.type ?? "type",
|
|
2245
|
+
value: n.value ?? "email"
|
|
2246
|
+
}));
|
|
2247
|
+
break;
|
|
2248
|
+
case "value-required": t.push({
|
|
2249
|
+
kind: "required",
|
|
2250
|
+
required: n.required
|
|
2251
|
+
});
|
|
2252
|
+
}
|
|
2253
|
+
return t;
|
|
2254
|
+
}
|
|
2255
|
+
function Be(e) {
|
|
2256
|
+
if (!e || typeof e != "object") return;
|
|
2257
|
+
let t = e.kernel;
|
|
2258
|
+
if (t && typeof t == "object") return t;
|
|
2259
|
+
}
|
|
2260
|
+
var Ve = /^[A-Za-z_][A-Za-z0-9_-]*$/;
|
|
2261
|
+
function He(e) {
|
|
2262
|
+
return Ve.test(e);
|
|
2263
|
+
}
|
|
2264
|
+
function Ue(e, t, n) {
|
|
2265
|
+
let r = [];
|
|
2266
|
+
for (let i of e) {
|
|
2267
|
+
let e = i.target;
|
|
2268
|
+
e ? e.startsWith("#") || /\s/.test(e) ? r.push({
|
|
2269
|
+
code: "local.jump.target",
|
|
2270
|
+
message: `<${i.name}> target "${e}" must be a bare heading slug or anchor id without "#" or whitespace.`,
|
|
2271
|
+
start: i.offset,
|
|
2272
|
+
key: "local.jump.bad-target",
|
|
2273
|
+
params: { target: e }
|
|
2274
|
+
}) : !t.has(e) && !n.has(e) && r.push({
|
|
2275
|
+
code: "local.jump.target",
|
|
2276
|
+
message: `<${i.name}> target "${e}" does not resolve to a heading or explicit anchor in this document.`,
|
|
2277
|
+
start: i.offset,
|
|
2278
|
+
key: "local.jump.unresolved",
|
|
2279
|
+
params: { target: e }
|
|
2280
|
+
}) : r.push({
|
|
2281
|
+
code: "local.jump.target",
|
|
2282
|
+
message: "<jump> target cannot be empty.",
|
|
2283
|
+
start: i.offset,
|
|
2284
|
+
key: "local.jump.empty"
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2287
|
+
return r;
|
|
2288
|
+
}
|
|
2289
|
+
Object.freeze({
|
|
2290
|
+
arrayLength: c,
|
|
2291
|
+
dataTableColumns: 20,
|
|
2292
|
+
plotCurves: 16,
|
|
2293
|
+
plotPoints: ee
|
|
2294
|
+
});
|
|
2295
|
+
// src/local/html/html-names.ts
|
|
2296
|
+
var j = /* @__PURE__ */ new Set(/* @__PURE__ */ "b.strong.i.em.s.del.u.mark.sup.sub.br.hr.img.p.h1.h2.h3.h4.h5.h6.div.span.details.summary.blockquote.code.pre.ul.ol.li.a".split(".")), We = /* @__PURE__ */ new Set([
|
|
2297
|
+
"div",
|
|
2298
|
+
"p",
|
|
2299
|
+
"h1",
|
|
2300
|
+
"h2",
|
|
2301
|
+
"h3",
|
|
2302
|
+
"h4",
|
|
2303
|
+
"h5",
|
|
2304
|
+
"h6"
|
|
2305
|
+
]);
|
|
2306
|
+
function Ge(e) {
|
|
2307
|
+
let t = e.trim().toLowerCase();
|
|
2308
|
+
return t === "left" || t === "center" || t === "right" || t === "justify" ? t : null;
|
|
2309
|
+
}
|
|
2310
|
+
var Ke = /* @__PURE__ */ new Set([
|
|
2311
|
+
"href",
|
|
2312
|
+
"target",
|
|
2313
|
+
"rel"
|
|
2314
|
+
]);
|
|
2315
|
+
function qe(e, t) {
|
|
2316
|
+
if (t?.toLowerCase() !== "_blank") return e;
|
|
2317
|
+
let n = [], r = /* @__PURE__ */ new Set();
|
|
2318
|
+
for (let t of (e ?? "").split(/[\t\n\f\r ]+/)) {
|
|
2319
|
+
let e = t.toLowerCase();
|
|
2320
|
+
t && e !== "opener" && !r.has(e) && (r.add(e), n.push(t));
|
|
2321
|
+
}
|
|
2322
|
+
for (let e of ["noopener", "noreferrer"]) r.has(e) || n.push(e);
|
|
2323
|
+
return n.join(" ");
|
|
2324
|
+
}
|
|
2325
|
+
var M = Object.freeze([
|
|
2326
|
+
Object.freeze({
|
|
2327
|
+
name: "computed",
|
|
2328
|
+
form: "leaf",
|
|
2329
|
+
childRule: "none",
|
|
2330
|
+
label: "none",
|
|
2331
|
+
props: {
|
|
2332
|
+
name: {
|
|
2333
|
+
kind: "string",
|
|
2334
|
+
static: !0,
|
|
2335
|
+
required: !0
|
|
2336
|
+
},
|
|
2337
|
+
value: {
|
|
2338
|
+
kind: "string",
|
|
2339
|
+
required: !0
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
structure: {
|
|
2343
|
+
rule: "none",
|
|
2344
|
+
label: "none"
|
|
2345
|
+
},
|
|
2346
|
+
rules: [{
|
|
2347
|
+
kind: "require-full-interpolation",
|
|
2348
|
+
attributes: ["value"]
|
|
2349
|
+
}]
|
|
2350
|
+
}),
|
|
2351
|
+
Object.freeze({
|
|
2352
|
+
name: "const",
|
|
2353
|
+
form: "leaf",
|
|
2354
|
+
childRule: "none",
|
|
2355
|
+
label: "none",
|
|
2356
|
+
props: {
|
|
2357
|
+
name: {
|
|
2358
|
+
kind: "string",
|
|
2359
|
+
static: !0,
|
|
2360
|
+
required: !0
|
|
2361
|
+
},
|
|
2362
|
+
value: {
|
|
2363
|
+
kind: "string",
|
|
2364
|
+
required: !0
|
|
2365
|
+
}
|
|
2366
|
+
},
|
|
2367
|
+
structure: {
|
|
2368
|
+
rule: "none",
|
|
2369
|
+
label: "none"
|
|
2370
|
+
},
|
|
2371
|
+
rules: [{
|
|
2372
|
+
kind: "require-full-interpolation",
|
|
2373
|
+
attributes: ["value"]
|
|
2374
|
+
}]
|
|
2375
|
+
}),
|
|
2376
|
+
Object.freeze({
|
|
2377
|
+
name: "external",
|
|
2378
|
+
form: "leaf",
|
|
2379
|
+
childRule: "none",
|
|
2380
|
+
label: "none",
|
|
2381
|
+
props: {
|
|
2382
|
+
name: {
|
|
2383
|
+
kind: "string",
|
|
2384
|
+
static: !0,
|
|
2385
|
+
required: !0
|
|
2386
|
+
},
|
|
2387
|
+
type: {
|
|
2388
|
+
kind: "enum",
|
|
2389
|
+
static: !0,
|
|
2390
|
+
required: !0,
|
|
2391
|
+
values: [
|
|
2392
|
+
"string",
|
|
2393
|
+
"number",
|
|
2394
|
+
"boolean",
|
|
2395
|
+
"string-array",
|
|
2396
|
+
"number-array"
|
|
2397
|
+
]
|
|
2398
|
+
}
|
|
2399
|
+
},
|
|
2400
|
+
structure: {
|
|
2401
|
+
rule: "none",
|
|
2402
|
+
label: "none"
|
|
2403
|
+
}
|
|
2404
|
+
})
|
|
2405
|
+
]);
|
|
2406
|
+
function Je(e, t) {
|
|
2407
|
+
let n = Array.from({ length: t.length + 1 }, (e, t) => t);
|
|
2408
|
+
for (let r = 1; r <= e.length; r++) {
|
|
2409
|
+
let i = n[0];
|
|
2410
|
+
n[0] = r;
|
|
2411
|
+
for (let a = 1; a <= t.length; a++) {
|
|
2412
|
+
let o = n[a];
|
|
2413
|
+
n[a] = Math.min(n[a] + 1, n[a - 1] + 1, i + (e[r - 1] === t[a - 1] ? 0 : 1)), i = o;
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
return n[t.length];
|
|
2417
|
+
}
|
|
2418
|
+
function Ye(e, t) {
|
|
2419
|
+
let n, r = Infinity;
|
|
2420
|
+
for (let i of t) {
|
|
2421
|
+
let t = Je(e, i);
|
|
2422
|
+
t < r && (n = i, r = t);
|
|
2423
|
+
}
|
|
2424
|
+
return r <= 2 ? n : void 0;
|
|
2425
|
+
}
|
|
2426
|
+
// src/local/theme/theme-name.ts
|
|
2427
|
+
var Xe = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
|
|
2428
|
+
function Ze(e) {
|
|
2429
|
+
return typeof e == "string" && e.length > 0 && e.length <= 64 && Xe.test(e);
|
|
2430
|
+
}
|
|
2431
|
+
// src/sdk/registry-core.ts
|
|
2432
|
+
var N = /* @__PURE__ */ new WeakMap();
|
|
2433
|
+
function Qe(e) {
|
|
2434
|
+
return {
|
|
2435
|
+
kind: e.kind,
|
|
2436
|
+
...e.required === !0 ? { required: !0 } : {},
|
|
2437
|
+
...e.static === !0 ? { static: !0 } : {},
|
|
2438
|
+
...e.dynamic === void 0 ? {} : { dynamic: e.dynamic },
|
|
2439
|
+
...e.default === void 0 ? {} : { default: e.default },
|
|
2440
|
+
...e.nullable === !0 ? { nullable: !0 } : {},
|
|
2441
|
+
...e.enum ? { values: [...e.enum] } : {},
|
|
2442
|
+
...e.pattern === void 0 ? {} : { pattern: e.pattern },
|
|
2443
|
+
...e.min === void 0 ? {} : { min: e.min },
|
|
2444
|
+
...e.max === void 0 ? {} : { max: e.max },
|
|
2445
|
+
...e.integer === !0 ? { integer: !0 } : {},
|
|
2446
|
+
...e.positive === !0 ? { positive: !0 } : {},
|
|
2447
|
+
...e.color === !0 ? { color: !0 } : {},
|
|
2448
|
+
...e.coerce === void 0 ? {} : { coerce: e.coerce }
|
|
2449
|
+
};
|
|
2450
|
+
}
|
|
2451
|
+
function $e(e) {
|
|
2452
|
+
return {
|
|
2453
|
+
kind: e.kind,
|
|
2454
|
+
family: e.family,
|
|
2455
|
+
bind: e.bind,
|
|
2456
|
+
initial: e.initial,
|
|
2457
|
+
initialRule: e.initialRule,
|
|
2458
|
+
required: e.required === !0,
|
|
2459
|
+
...e.exclusive === !0 ? { exclusive: !0 } : {},
|
|
2460
|
+
...e.options ? { options: e.options } : {},
|
|
2461
|
+
...e.constraints ? { constraints: e.constraints } : {},
|
|
2462
|
+
...e.maxItems ? { maxItems: e.maxItems } : {},
|
|
2463
|
+
...e.requiresAttributes ? { requiresAttributes: e.requiresAttributes } : {},
|
|
2464
|
+
...e.compare ? { compare: e.compare } : {},
|
|
2465
|
+
...e.retain === !1 ? { retain: !1 } : {}
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
function et(e, t) {
|
|
2469
|
+
if (t === e.bind) return {
|
|
2470
|
+
kind: "string",
|
|
2471
|
+
static: !0
|
|
2472
|
+
};
|
|
2473
|
+
switch (e.kind) {
|
|
2474
|
+
case "number": return {
|
|
2475
|
+
kind: "number",
|
|
2476
|
+
static: !0
|
|
2477
|
+
};
|
|
2478
|
+
case "boolean": return {
|
|
2479
|
+
kind: "boolean",
|
|
2480
|
+
static: !0
|
|
2481
|
+
};
|
|
2482
|
+
default: return {
|
|
2483
|
+
kind: "string",
|
|
2484
|
+
static: !0
|
|
2485
|
+
};
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
function P(e, t) {
|
|
2489
|
+
if (e === void 0) return t === "leaf" ? "none" : "any";
|
|
2490
|
+
switch (e.rule) {
|
|
2491
|
+
case "components": return e.child === "card" ? "cards" : e.child === "disclosure" ? "disclosures" : e.child === "column" ? "columns" : "any";
|
|
2492
|
+
default: return e.rule;
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
function F(t) {
|
|
2496
|
+
let n = N.get(t);
|
|
2497
|
+
if (n !== void 0) return n;
|
|
2498
|
+
let r = t.bindings ?? {}, i = t.structure ?? e(t.children), a = r.value, o = [];
|
|
2499
|
+
for (let [e, t] of Object.entries(r)) e !== "value" && o.push(Object.freeze({
|
|
2500
|
+
name: e,
|
|
2501
|
+
bind: t.bind,
|
|
2502
|
+
initial: t.initial,
|
|
2503
|
+
kind: t.kind,
|
|
2504
|
+
family: t.family,
|
|
2505
|
+
exclusive: t.exclusive === !0,
|
|
2506
|
+
initialRule: t.initialRule
|
|
2507
|
+
}));
|
|
2508
|
+
let s = {};
|
|
2509
|
+
for (let [e, n] of Object.entries(t.props)) s[e] = Qe(n);
|
|
2510
|
+
for (let e of Object.values(r)) {
|
|
2511
|
+
let t = [e.bind, e.initial];
|
|
2512
|
+
for (let n of t) Object.hasOwn(s, n) || (n !== e.initial || e.initialRule !== "checked" && e.initialRule !== "duration") && (s[n] = et(e, n));
|
|
2513
|
+
}
|
|
2514
|
+
let c = Object.freeze({
|
|
2515
|
+
name: t.name,
|
|
2516
|
+
form: t.form,
|
|
2517
|
+
props: Object.freeze(s),
|
|
2518
|
+
...a ? { binding: Object.freeze($e(a)) } : {},
|
|
2519
|
+
...Object.keys(r).length ? { bindings: Object.freeze({ ...r }) } : {},
|
|
2520
|
+
...o.length ? { slots: Object.freeze(o) } : {},
|
|
2521
|
+
...i ? { structure: i } : {},
|
|
2522
|
+
...t.rules ? { rules: t.rules } : {},
|
|
2523
|
+
...t.slotRelations ? { slotRelations: t.slotRelations } : {},
|
|
2524
|
+
...t.legacyHost === !0 ? { legacyHost: !0 } : {},
|
|
2525
|
+
childRule: P(i, t.form),
|
|
2526
|
+
label: i?.label ?? "none",
|
|
2527
|
+
...i?.parents ? { parent: i.parents } : {},
|
|
2528
|
+
...a ? { initialRule: a.initialRule } : {}
|
|
2529
|
+
});
|
|
2530
|
+
return N.set(t, c), c;
|
|
2531
|
+
}
|
|
2532
|
+
function tt(e) {
|
|
2533
|
+
return F(e);
|
|
2534
|
+
}
|
|
2535
|
+
var I = /* @__PURE__ */ new WeakMap();
|
|
2536
|
+
function nt(t) {
|
|
2537
|
+
let n = I.get(t);
|
|
2538
|
+
if (n !== void 0) return n;
|
|
2539
|
+
let r = t.structure ?? e(t.children), i = w({
|
|
2540
|
+
name: t.name,
|
|
2541
|
+
form: t.form,
|
|
2542
|
+
props: t.props,
|
|
2543
|
+
childRule: P(r, t.form)
|
|
2544
|
+
}, {
|
|
2545
|
+
...r ? { structure: r } : {},
|
|
2546
|
+
...t.rules ? { rules: t.rules } : {},
|
|
2547
|
+
...t.bindings ? { bindings: t.bindings } : {},
|
|
2548
|
+
...t.slotRelations ? { slotRelations: t.slotRelations } : {},
|
|
2549
|
+
...t.legacyHost ? { legacyHost: !0 } : {}
|
|
2550
|
+
});
|
|
2551
|
+
return I.set(t, i), i;
|
|
2552
|
+
}
|
|
2553
|
+
// src/sdk/compat-profile.ts
|
|
2554
|
+
var L = Object.freeze([Object.freeze({
|
|
2555
|
+
name: "reactive-md-config/v1@0.7.0",
|
|
2556
|
+
protocol: s,
|
|
2557
|
+
sdkRange: "0.7.0",
|
|
2558
|
+
targetProtocol: n,
|
|
2559
|
+
targetSdkRange: "0.7.0",
|
|
2560
|
+
preset: Object.freeze({
|
|
2561
|
+
id: "reactive-md/default",
|
|
2562
|
+
version: "0.7.0"
|
|
2563
|
+
}),
|
|
2564
|
+
legacyKeys: Object.freeze([Object.freeze({
|
|
2565
|
+
profile: s,
|
|
2566
|
+
algorithm: "external-components/v1"
|
|
2567
|
+
})]),
|
|
2568
|
+
source: "git tag v0.7.0:src/presets/default.ts and src/sdk/config.ts; docs/compatibility/compatibility-ch.md"
|
|
2569
|
+
})]);
|
|
2570
|
+
function R(e, t = L) {
|
|
2571
|
+
for (let n of t) if (n.preset.id === e.id && n.preset.version === e.version) return n;
|
|
2572
|
+
}
|
|
2573
|
+
function rt(e = []) {
|
|
2574
|
+
return e.length === 0 ? L : Object.freeze([...L, ...e]);
|
|
2575
|
+
}
|
|
2576
|
+
// src/sdk/assembly.ts
|
|
2577
|
+
var it = /* @__PURE__ */ new Set([
|
|
2578
|
+
"protocol",
|
|
2579
|
+
"presets",
|
|
2580
|
+
"components",
|
|
2581
|
+
"replacementPolicy",
|
|
2582
|
+
"themes"
|
|
2583
|
+
]), z = 32, B = 256, V = 32;
|
|
2584
|
+
function H(e, t) {
|
|
2585
|
+
throw Error(`Invalid local SDK config (${e}): ${t}`);
|
|
2586
|
+
}
|
|
2587
|
+
function U(e, t) {
|
|
2588
|
+
return e < t ? -1 : +(e > t);
|
|
2589
|
+
}
|
|
2590
|
+
function W(e, t) {
|
|
2591
|
+
return [...e].sort((e, n) => U(t(e), t(n)));
|
|
2592
|
+
}
|
|
2593
|
+
function G(e) {
|
|
2594
|
+
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
2595
|
+
let t = Object.getPrototypeOf(e);
|
|
2596
|
+
return t === Object.prototype || t === null;
|
|
2597
|
+
}
|
|
2598
|
+
function K(e) {
|
|
2599
|
+
if (Array.isArray(e)) return e.map(K);
|
|
2600
|
+
if (G(e)) {
|
|
2601
|
+
let t = {};
|
|
2602
|
+
for (let n of Object.keys(e).sort(U)) t[n] = K(e[n]);
|
|
2603
|
+
return t;
|
|
2604
|
+
}
|
|
2605
|
+
return e;
|
|
2606
|
+
}
|
|
2607
|
+
function q(e, t) {
|
|
2608
|
+
return JSON.stringify(K(e)) === JSON.stringify(K(t));
|
|
2609
|
+
}
|
|
2610
|
+
function at(e) {
|
|
2611
|
+
Array.isArray(e) || H("assembly.presets", "must be an array."), e.length > z && H("assembly.presets", `accepts at most ${z} packages.`);
|
|
2612
|
+
let t = W(e.map((e, t) => {
|
|
2613
|
+
try {
|
|
2614
|
+
return u(e);
|
|
2615
|
+
} catch (e) {
|
|
2616
|
+
H(`assembly.presets[${t}]`, e instanceof Error ? e.message : String(e));
|
|
2617
|
+
}
|
|
2618
|
+
}), (e) => e.id), n = /* @__PURE__ */ new Set();
|
|
2619
|
+
for (let e of t) n.has(e.id) && H("assembly.presets", `preset "${e.id}" is selected more than once.`), n.add(e.id);
|
|
2620
|
+
return Object.freeze(t);
|
|
2621
|
+
}
|
|
2622
|
+
function ot(e) {
|
|
2623
|
+
Array.isArray(e) || H("assembly.components", "must be an array."), e.length > B && H("assembly.components", `accepts at most ${B} components.`);
|
|
2624
|
+
let t = W(e.map((e, t) => {
|
|
2625
|
+
try {
|
|
2626
|
+
return f(e);
|
|
2627
|
+
} catch (e) {
|
|
2628
|
+
H(`assembly.components[${t}]`, e instanceof Error ? e.message : String(e));
|
|
2629
|
+
}
|
|
2630
|
+
}), (e) => e.id);
|
|
2631
|
+
return Object.freeze(t);
|
|
2632
|
+
}
|
|
2633
|
+
function st(e) {
|
|
2634
|
+
Array.isArray(e) || H("assembly.themes", "must be an array."), e.length > V && H("assembly.themes", `accepts at most ${V} themes.`);
|
|
2635
|
+
let t = /* @__PURE__ */ new Set();
|
|
2636
|
+
return Object.freeze(W(e.map((e, n) => {
|
|
2637
|
+
G(e) || H(`assembly.themes[${n}]`, "must be an object.");
|
|
2638
|
+
let r = e.id, a = e.name, o = e.version;
|
|
2639
|
+
return (typeof r != "string" || r.length === 0) && H(`assembly.themes[${n}].id`, "must be a non-empty string."), (typeof a != "string" || a.length === 0) && H(`assembly.themes[${n}].name`, "must be a non-empty string."), typeof o == "string" && i(o) || H(`assembly.themes[${n}].version`, "must be a semantic version."), t.has(r) && H("assembly.themes", `theme id "${r}" is declared more than once.`), t.add(r), Object.freeze({ ...e });
|
|
2640
|
+
}), (e) => e.id));
|
|
2641
|
+
}
|
|
2642
|
+
function ct(e) {
|
|
2643
|
+
G(e) || H("assembly", "must be an object.");
|
|
2644
|
+
for (let t of Object.keys(e)) it.has(t) || H("assembly", `unknown field "${t}".`);
|
|
2645
|
+
e.protocol !== "reactive-md-assembly/v1" && H("assembly.protocol", `must be "${a}".`);
|
|
2646
|
+
let t = e.replacementPolicy;
|
|
2647
|
+
return t !== "allow" && t !== "forbid" && H("assembly.replacementPolicy", "must be \"allow\" or \"forbid\"."), Object.freeze({
|
|
2648
|
+
protocol: a,
|
|
2649
|
+
presets: at(e.presets),
|
|
2650
|
+
components: ot(e.components),
|
|
2651
|
+
replacementPolicy: t,
|
|
2652
|
+
themes: st(e.themes)
|
|
2653
|
+
});
|
|
2654
|
+
}
|
|
2655
|
+
function lt(e) {
|
|
2656
|
+
let t = new Map(e.map((e) => [e.id, e])), n = /* @__PURE__ */ new Map(), r = [], a = (e) => {
|
|
2657
|
+
let o = n.get(e);
|
|
2658
|
+
if (o === "done") return;
|
|
2659
|
+
o === "visiting" && H("assembly.presets", `preset dependency cycle at "${e}".`);
|
|
2660
|
+
let s = t.get(e);
|
|
2661
|
+
s || H("assembly.presets", `missing preset dependency "${e}".`), n.set(e, "visiting");
|
|
2662
|
+
for (let e of W(s.dependencies ?? [], (e) => e.id)) {
|
|
2663
|
+
let n = t.get(e.id);
|
|
2664
|
+
n || H("assembly.presets", `preset "${s.id}" requires missing preset "${e.id}".`), i(e.version) || H("assembly.presets", `preset dependency "${e.id}" must use an exact version.`), n.version !== e.version && H("assembly.presets", `preset "${s.id}" requires "${e.id}" ${e.version}, but ${n.version} is installed.`), a(e.id);
|
|
2665
|
+
}
|
|
2666
|
+
n.set(e, "done"), r.push(s);
|
|
2667
|
+
};
|
|
2668
|
+
for (let e of [...t.keys()].sort(U)) a(e);
|
|
2669
|
+
return Object.freeze(r);
|
|
2670
|
+
}
|
|
2671
|
+
function J(e) {
|
|
2672
|
+
let { description: t, ...n } = e;
|
|
2673
|
+
return n;
|
|
2674
|
+
}
|
|
2675
|
+
function Y(t) {
|
|
2676
|
+
return t.structure ?? e(t.children) ?? null;
|
|
2677
|
+
}
|
|
2678
|
+
function ut(e, t) {
|
|
2679
|
+
for (let n of [
|
|
2680
|
+
"interactive",
|
|
2681
|
+
"static",
|
|
2682
|
+
"ssr",
|
|
2683
|
+
"offline"
|
|
2684
|
+
]) if (t.capabilities[n] && !e.capabilities[n]) return !1;
|
|
2685
|
+
return !0;
|
|
2686
|
+
}
|
|
2687
|
+
function dt(e, t) {
|
|
2688
|
+
let n = e.definition, r = t.definition, i = `assembly.replacements["${n.id}"]`;
|
|
2689
|
+
(n.id !== r.id || n.name !== r.name) && H(i, "the replacement must keep the target id and tag name."), n.form !== r.form && H(i, "the replacement must keep the target form.");
|
|
2690
|
+
for (let e of Object.keys(n.props)) {
|
|
2691
|
+
let t = n.props[e], a = r.props[e];
|
|
2692
|
+
a || H(i, `the replacement removed prop "${e}".`), q(J(t), J(a)) || H(i, `the replacement changed the semantics of prop "${e}".`);
|
|
2693
|
+
}
|
|
2694
|
+
for (let e of Object.keys(r.props)) Object.hasOwn(n.props, e) || r.props[e].required === !0 && H(i, `the replacement added required prop "${e}".`);
|
|
2695
|
+
let a = n.bindings ?? {}, o = r.bindings ?? {}, s = Object.keys(a).sort(U);
|
|
2696
|
+
q(s, Object.keys(o).sort(U)) || H(i, "the replacement must keep the target binding slots unchanged.");
|
|
2697
|
+
for (let e of s) q(a[e], o[e]) || H(i, `the replacement changed binding slot "${e}".`);
|
|
2698
|
+
q(Y(n), Y(r)) || H(i, "the replacement changed the target child structure."), q(n.rules ?? [], r.rules ?? []) || H(i, "the replacement changed semantic rules."), q(n.slotRelations ?? [], r.slotRelations ?? []) || H(i, "the replacement changed slot relations."), n.legacyHost === !0 != (r.legacyHost === !0) && H(i, "the replacement changed legacyHost."), ut(r, n) || H(i, "the replacement downgraded a declared capability.");
|
|
2699
|
+
}
|
|
2700
|
+
function ft(e, t) {
|
|
2701
|
+
return e.id === t.id ? t.version === void 0 || r(t.version) !== null && l(e.version, t.version) : !1;
|
|
2702
|
+
}
|
|
2703
|
+
function pt(e, n) {
|
|
2704
|
+
return Object.freeze({
|
|
2705
|
+
id: e.definition.id,
|
|
2706
|
+
name: e.definition.name,
|
|
2707
|
+
fromVersion: e.definition.version,
|
|
2708
|
+
toVersion: n.definition.version,
|
|
2709
|
+
fromDigest: t(e.definition),
|
|
2710
|
+
toDigest: t(n.definition),
|
|
2711
|
+
...e.origin.kind === "preset" ? { fromPreset: e.origin.id } : {},
|
|
2712
|
+
...n.origin.kind === "preset" ? { toPreset: n.origin.id } : {}
|
|
2713
|
+
});
|
|
2714
|
+
}
|
|
2715
|
+
function mt(e, t) {
|
|
2716
|
+
let n = [], r = 0;
|
|
2717
|
+
for (let t of e) for (let e of t.components) n.push({
|
|
2718
|
+
definition: e,
|
|
2719
|
+
origin: {
|
|
2720
|
+
kind: "preset",
|
|
2721
|
+
id: t.id
|
|
2722
|
+
},
|
|
2723
|
+
index: r
|
|
2724
|
+
}), r += 1;
|
|
2725
|
+
for (let e of W(t, (e) => e.id)) n.push({
|
|
2726
|
+
definition: e,
|
|
2727
|
+
origin: { kind: "external" },
|
|
2728
|
+
index: r
|
|
2729
|
+
}), r += 1;
|
|
2730
|
+
return n;
|
|
2731
|
+
}
|
|
2732
|
+
function ht(e) {
|
|
2733
|
+
let t = /* @__PURE__ */ new Map();
|
|
2734
|
+
for (let n of e) n.authoring !== void 0 && n.authoring.length !== 0 && t.set(n.id, new Map(n.authoring.map((e) => [e.componentId, e.authoring])));
|
|
2735
|
+
return t;
|
|
2736
|
+
}
|
|
2737
|
+
function X(e, t) {
|
|
2738
|
+
return t === void 0 ? e : e === void 0 ? t : Object.freeze({
|
|
2739
|
+
...e.title === void 0 ? {} : { title: e.title },
|
|
2740
|
+
...e.description === void 0 ? {} : { description: e.description },
|
|
2741
|
+
...e.category === void 0 ? {} : { category: e.category },
|
|
2742
|
+
...e.insertText === void 0 ? {} : { insertText: e.insertText },
|
|
2743
|
+
...t.title === void 0 ? {} : { title: t.title },
|
|
2744
|
+
...t.description === void 0 ? {} : { description: t.description },
|
|
2745
|
+
...t.category === void 0 ? {} : { category: t.category },
|
|
2746
|
+
...t.insertText === void 0 ? {} : { insertText: t.insertText }
|
|
2747
|
+
});
|
|
2748
|
+
}
|
|
2749
|
+
function Z(e, t) {
|
|
2750
|
+
let n = e.origin.kind === "preset" ? t.get(e.origin.id)?.get(e.definition.id) : void 0;
|
|
2751
|
+
return X(e.definition.authoring, n);
|
|
2752
|
+
}
|
|
2753
|
+
function gt(e, t) {
|
|
2754
|
+
return t === void 0 || t === e.authoring ? e : f({
|
|
2755
|
+
...e,
|
|
2756
|
+
authoring: t
|
|
2757
|
+
});
|
|
2758
|
+
}
|
|
2759
|
+
function _t(e, t, n) {
|
|
2760
|
+
let r = /* @__PURE__ */ new Map();
|
|
2761
|
+
for (let t of e) {
|
|
2762
|
+
let e = r.get(t.definition.id);
|
|
2763
|
+
e ? e.push(t) : r.set(t.definition.id, [t]);
|
|
2764
|
+
}
|
|
2765
|
+
let i = [], a = [];
|
|
2766
|
+
for (let e of r.values()) {
|
|
2767
|
+
if (e.length === 1) {
|
|
2768
|
+
let r = e[0];
|
|
2769
|
+
r.definition.replaces !== void 0 && (t === "forbid" && H("assembly.replacements", `replacement for "${r.definition.id}" is forbidden.`), H("assembly.replacements", `replacement for "${r.definition.id}" has no base contribution.`));
|
|
2770
|
+
let a = Z(r, n);
|
|
2771
|
+
i.push({
|
|
2772
|
+
...r,
|
|
2773
|
+
position: r.index,
|
|
2774
|
+
...a === void 0 ? {} : { authoring: a }
|
|
2775
|
+
});
|
|
2776
|
+
continue;
|
|
2777
|
+
}
|
|
2778
|
+
let r = e.filter((e) => e.definition.replaces !== void 0);
|
|
2779
|
+
t === "forbid" && r.length > 0 && H("assembly.replacements", `replacement for "${e[0].definition.id}" is forbidden.`), r.length === 0 && H("assembly.components", `component id "${e[0].definition.id}" is declared more than once.`), r.length > 1 && H("assembly.replacements", `component id "${e[0].definition.id}" has more than one replacement.`), e.length > 2 && H("assembly.replacements", `component id "${e[0].definition.id}" has ambiguous base contributions.`);
|
|
2780
|
+
let o = r[0], s = e.filter((e) => e !== o);
|
|
2781
|
+
s.length !== 1 && H("assembly.replacements", `component id "${e[0].definition.id}" must have exactly one base.`);
|
|
2782
|
+
let c = s[0];
|
|
2783
|
+
c.definition.replaces !== void 0 && H("assembly.replacements", `component id "${e[0].definition.id}" uses a replacement chain.`);
|
|
2784
|
+
let l = o.definition.replaces;
|
|
2785
|
+
ft(c.definition, l) || H("assembly.replacements", `replacement for "${c.definition.id}" does not match base version ${c.definition.version}.`), dt(c, o);
|
|
2786
|
+
let u = X(Z(c, n), Z(o, n));
|
|
2787
|
+
i.push({
|
|
2788
|
+
...o,
|
|
2789
|
+
position: c.index,
|
|
2790
|
+
...u === void 0 ? {} : { authoring: u }
|
|
2791
|
+
}), a.push(pt(c, o));
|
|
2792
|
+
}
|
|
2793
|
+
return i.sort((e, t) => e.position - t.position), {
|
|
2794
|
+
active: Object.freeze(i),
|
|
2795
|
+
replacements: Object.freeze(W(a, (e) => e.id))
|
|
2796
|
+
};
|
|
2797
|
+
}
|
|
2798
|
+
function vt(e) {
|
|
2799
|
+
let t = /* @__PURE__ */ new Map(), n = new Map(e.map((e) => [e.definition.id, e.definition]));
|
|
2800
|
+
for (let r of e) {
|
|
2801
|
+
let e = r.definition, i = t.get(e.name);
|
|
2802
|
+
i !== void 0 && ((i.origin.kind === "preset" || r.origin.kind === "preset") && H("assembly.components", `name "${e.name}" conflicts with a built-in component "${i.definition.id}".`), H("assembly.components", `component name "${e.name}" is declared more than once by "${i.definition.id}" and "${e.id}".`)), t.set(e.name, r);
|
|
2803
|
+
let a = e.requires?.kernel;
|
|
2804
|
+
a !== void 0 && !l("0.7.0", a) && H("assembly.components", `component "${e.id}" requires kernel ${a}, but ${m} is installed.`);
|
|
2805
|
+
for (let t of e.dependencies ?? []) {
|
|
2806
|
+
let r = n.get(t.id);
|
|
2807
|
+
r || H("assembly.dependencies", `component "${e.id}" requires missing component "${t.id}".`), t.version !== void 0 && !l(r.version, t.version) && H("assembly.dependencies", `component "${e.id}" requires "${t.id}" ${t.version}, but version ${r.version} is installed.`);
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
let r = /* @__PURE__ */ new Map(), i = (e, t) => {
|
|
2811
|
+
let a = r.get(e);
|
|
2812
|
+
if (a !== "done") {
|
|
2813
|
+
a === "visiting" && H("assembly.dependencies", `dependency cycle: ${[...t, e].join(" -> ")}.`), r.set(e, "visiting");
|
|
2814
|
+
for (let r of n.get(e)?.dependencies ?? []) n.has(r.id) && i(r.id, [...t, e]);
|
|
2815
|
+
r.set(e, "done");
|
|
2816
|
+
}
|
|
2817
|
+
};
|
|
2818
|
+
for (let e of [...n.keys()].sort(U)) i(e, []);
|
|
2819
|
+
}
|
|
2820
|
+
function yt(e, t) {
|
|
2821
|
+
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = (e, t) => {
|
|
2822
|
+
n.get(e.id) && H("assembly.themes", `theme id "${e.id}" is declared by both ${t} and another source.`), r.get(e.name) && H("assembly.themes", `theme name "${e.name}" is declared by both ${t} and another source.`), n.set(e.id, e), r.set(e.name, e);
|
|
2823
|
+
};
|
|
2824
|
+
for (let t of e) for (let e of t.themes ?? []) i(e, `preset:${t.id}`);
|
|
2825
|
+
for (let e of t) i(e, "external");
|
|
2826
|
+
return Object.freeze(W([...n.values()], (e) => e.id));
|
|
2827
|
+
}
|
|
2828
|
+
function bt(e) {
|
|
2829
|
+
return Object.freeze(W(e.map((e) => ({
|
|
2830
|
+
id: e.id,
|
|
2831
|
+
version: e.version,
|
|
2832
|
+
digest: d(e)
|
|
2833
|
+
})), (e) => e.id));
|
|
2834
|
+
}
|
|
2835
|
+
function xt(e, r, i) {
|
|
2836
|
+
let a = JSON.stringify({
|
|
2837
|
+
protocol: n,
|
|
2838
|
+
presets: W(e, (e) => e.id),
|
|
2839
|
+
registry: [...r].map((e) => ({
|
|
2840
|
+
id: e.id,
|
|
2841
|
+
name: e.name,
|
|
2842
|
+
version: e.version,
|
|
2843
|
+
digest: t(e)
|
|
2844
|
+
})).sort((e, t) => U(e.id, t.id)),
|
|
2845
|
+
replacements: W(i, (e) => e.id)
|
|
2846
|
+
});
|
|
2847
|
+
return p(a);
|
|
2848
|
+
}
|
|
2849
|
+
function Q(e, n) {
|
|
2850
|
+
let r = JSON.stringify({
|
|
2851
|
+
protocol: s,
|
|
2852
|
+
presets: [{
|
|
2853
|
+
id: e.id,
|
|
2854
|
+
version: e.version
|
|
2855
|
+
}],
|
|
2856
|
+
components: [...n].map((e) => ({
|
|
2857
|
+
id: e.id,
|
|
2858
|
+
version: e.version,
|
|
2859
|
+
digest: t(e)
|
|
2860
|
+
})).sort((e, t) => U(e.id, t.id))
|
|
2861
|
+
});
|
|
2862
|
+
return p(r);
|
|
2863
|
+
}
|
|
2864
|
+
function St(e, t = {}) {
|
|
2865
|
+
let n = lt(e.presets), r = _t(mt(n, e.components), e.replacementPolicy, ht(n));
|
|
2866
|
+
vt(r.active);
|
|
2867
|
+
let i = Object.freeze(r.active.map((e) => gt(e.definition, e.authoring))), a = Object.freeze(W(r.active.filter((e) => e.origin.kind === "external").map((e) => e.definition), (e) => e.id)), o = bt(n), s = yt(n, e.themes), c = xt(o, i, r.replacements), l = [], u = t.legacyProfiles === void 0 || n.length !== 1 || r.replacements.length !== 0 ? void 0 : R({
|
|
2868
|
+
id: n[0].id,
|
|
2869
|
+
version: n[0].version
|
|
2870
|
+
}, t.legacyProfiles), d = u?.legacyKeys[0];
|
|
2871
|
+
return u !== void 0 && d !== void 0 && l.push(Object.freeze({
|
|
2872
|
+
profile: d.profile,
|
|
2873
|
+
key: Q(u.preset, a)
|
|
2874
|
+
})), Object.freeze({
|
|
2875
|
+
presets: o,
|
|
2876
|
+
components: a,
|
|
2877
|
+
replacements: r.replacements,
|
|
2878
|
+
registry: i,
|
|
2879
|
+
themes: s,
|
|
2880
|
+
key: c,
|
|
2881
|
+
legacyKeys: Object.freeze(l)
|
|
2882
|
+
});
|
|
2883
|
+
}
|
|
2884
|
+
function Ct(e, t, r = t.legacyKeys) {
|
|
2885
|
+
return Object.freeze({
|
|
2886
|
+
protocol: n,
|
|
2887
|
+
assembly: e,
|
|
2888
|
+
key: t.key,
|
|
2889
|
+
presets: t.presets,
|
|
2890
|
+
components: t.components,
|
|
2891
|
+
replacements: t.replacements,
|
|
2892
|
+
registry: t.registry,
|
|
2893
|
+
themes: t.themes,
|
|
2894
|
+
legacyKeys: Object.freeze(r)
|
|
2895
|
+
});
|
|
2896
|
+
}
|
|
2897
|
+
function wt(e) {
|
|
2898
|
+
return Object.freeze({
|
|
2899
|
+
protocol: "reactive-md-assembly-seal/v1",
|
|
2900
|
+
configKey: e.key,
|
|
2901
|
+
presets: Object.freeze(W(e.presets, (e) => e.id)),
|
|
2902
|
+
components: Object.freeze(W(e.registry.map(o), (e) => e.id)),
|
|
2903
|
+
replacements: Object.freeze(W(e.replacements, (e) => e.id)),
|
|
2904
|
+
legacyKeys: Object.freeze(W(e.legacyKeys, (e) => e.key))
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2907
|
+
function Tt(e) {
|
|
2908
|
+
return p(JSON.stringify(wt(e)));
|
|
2909
|
+
}
|
|
2910
|
+
function Et(e, t) {
|
|
2911
|
+
return e.key === t || e.legacyKeys.some((e) => e.key === t);
|
|
2912
|
+
}
|
|
2913
|
+
// src/sdk/config-validation.ts
|
|
2914
|
+
var Dt = 16777216, Ot = /* @__PURE__ */ new Set([
|
|
2915
|
+
"__proto__",
|
|
2916
|
+
"constructor",
|
|
2917
|
+
"prototype"
|
|
2918
|
+
]), kt = /* @__PURE__ */ new Set([
|
|
2919
|
+
"protocol",
|
|
2920
|
+
"key",
|
|
2921
|
+
"assembly",
|
|
2922
|
+
"presets",
|
|
2923
|
+
"components",
|
|
2924
|
+
"replacements",
|
|
2925
|
+
"registry",
|
|
2926
|
+
"themes",
|
|
2927
|
+
"legacyKeys"
|
|
2928
|
+
]);
|
|
2929
|
+
function $(e, t) {
|
|
2930
|
+
throw Error(`Invalid local SDK config (${e}): ${t}`);
|
|
2931
|
+
}
|
|
2932
|
+
function At(e) {
|
|
2933
|
+
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
2934
|
+
let t = Object.getPrototypeOf(e);
|
|
2935
|
+
return t === Object.prototype || t === null;
|
|
2936
|
+
}
|
|
2937
|
+
function jt(e, t, n) {
|
|
2938
|
+
for (let r of Object.keys(e)) Ot.has(r) && $(n, `field "${r}" is not allowed.`), t.has(r) || $(n, `unknown field "${r}".`);
|
|
2939
|
+
}
|
|
2940
|
+
function Mt(e, t, n = []) {
|
|
2941
|
+
if (e === void 0) return Object.freeze([t]);
|
|
2942
|
+
Array.isArray(e) || $("presets", "must be an array."), e.length === 0 && $("presets", "must select at least the default preset.");
|
|
2943
|
+
let r = [];
|
|
2944
|
+
for (let e of [t, ...n.map((e) => e.preset)]) r.some((t) => t.id === e.id && t.version === e.version) || r.push(e);
|
|
2945
|
+
let i = /* @__PURE__ */ new Set(), a = [];
|
|
2946
|
+
for (let n = 0; n < e.length; n += 1) {
|
|
2947
|
+
let o = e[n], s, c;
|
|
2948
|
+
typeof o == "string" ? s = o : At(o) ? ((o.id === void 0 || typeof o.id != "string") && $(`presets[${n}].id`, "must be a string."), s = o.id, o.version !== void 0 && (typeof o.version != "string" && $(`presets[${n}].version`, "must be a string."), c = o.version)) : $(`presets[${n}]`, "must be a preset id or preset reference.");
|
|
2949
|
+
let l = s === "default" ? t.id : s, u = r.filter((e) => e.id === l);
|
|
2950
|
+
u.length === 0 && $(`presets[${n}]`, `unsupported preset "${s}"; local.config.migration-unsupported: no compatibility profile matches this identity.`);
|
|
2951
|
+
let d = c === void 0 ? u.length === 1 ? u[0] : void 0 : u.find((e) => e.version === c);
|
|
2952
|
+
d === void 0 && $(`presets[${n}]`, `unsupported preset "${s}"${c === void 0 ? "" : ` version "${c}"`}; local.config.migration-unsupported: no compatibility profile matches this identity.`), i.has(d.id) && $("presets", `"${d.id}" is selected more than once.`), a.length > 0 && a[0].id !== d.id && $("presets", "reactive-md-config/v1 selects exactly one default preset identity."), i.add(d.id), a.push(d);
|
|
2953
|
+
}
|
|
2954
|
+
return Object.freeze(a);
|
|
2955
|
+
}
|
|
2956
|
+
function Nt(e, n) {
|
|
2957
|
+
if (e.components === void 0) return;
|
|
2958
|
+
let r = new Map(n.map((e) => [e.id, e]));
|
|
2959
|
+
for (let n of e.components) {
|
|
2960
|
+
let i = r.get(n.id);
|
|
2961
|
+
i && i.name === n.name && i.version === n.version && t(i) === n.digest || $("presets", `local.config.migration-unsupported: profile "${e.name}" cannot map legacy component "${n.id}".`);
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
function Pt(e) {
|
|
2965
|
+
let t = /* @__PURE__ */ new Set();
|
|
2966
|
+
for (let n of e) t.add(n.name), t.add(n.id);
|
|
2967
|
+
return t;
|
|
2968
|
+
}
|
|
2969
|
+
function Ft(e, t) {
|
|
2970
|
+
let n = new Map(e.map((e) => [e.id, e])), r = Pt(t);
|
|
2971
|
+
for (let t of e) {
|
|
2972
|
+
let e = t.requires?.kernel;
|
|
2973
|
+
e !== void 0 && !l("0.7.0", e) && $("requires", `component "${t.id}" requires kernel ${e}, but ${m} is installed.`);
|
|
2974
|
+
for (let e of t.dependencies ?? []) {
|
|
2975
|
+
let i = n.get(e.id)?.version ?? (r.has(e.id) ? "0.7.0" : null);
|
|
2976
|
+
i === null && $("dependencies", `component "${t.id}" requires missing component "${e.id}".`), e.version !== void 0 && !l(i, e.version) && $("dependencies", `component "${t.id}" requires "${e.id}" ${e.version}, but version ${i} is installed.`);
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
let i = /* @__PURE__ */ new Map(), a = (e, t) => {
|
|
2980
|
+
let r = i.get(e);
|
|
2981
|
+
if (r === "done") return;
|
|
2982
|
+
r === "visiting" && $("dependencies", `dependency cycle: ${[...t, e].join(" -> ")}.`), i.set(e, "visiting");
|
|
2983
|
+
let o = n.get(e);
|
|
2984
|
+
for (let r of o?.dependencies ?? []) n.has(r.id) && a(r.id, [...t, e]);
|
|
2985
|
+
i.set(e, "done");
|
|
2986
|
+
};
|
|
2987
|
+
for (let e of n.keys()) a(e, []);
|
|
2988
|
+
}
|
|
2989
|
+
function It(e, t) {
|
|
2990
|
+
if (e === void 0) return Object.freeze([]);
|
|
2991
|
+
Array.isArray(e) || $("components", "must be an array."), e.length > 64 && $("components", "accepts at most 64 external components.");
|
|
2992
|
+
let n = new Set([
|
|
2993
|
+
...t.map((e) => e.name),
|
|
2994
|
+
...M.map((e) => e.name),
|
|
2995
|
+
...j
|
|
2996
|
+
].map((e) => e.toLowerCase()));
|
|
2997
|
+
n.add("theme");
|
|
2998
|
+
let r = new Set(t.map((e) => e.id)), i = /* @__PURE__ */ new Set(), a = [];
|
|
2999
|
+
for (let t = 0; t < e.length; t += 1) {
|
|
3000
|
+
let o = f(e[t]);
|
|
3001
|
+
n.has(o.name.toLowerCase()) && $(`components[${t}]`, `name "${o.name}" conflicts with a built-in component, HTML tag or theme declaration.`), r.has(o.id) && $("components", `component id "${o.id}" is declared more than once.`), i.has(o.name) && $("components", `component name "${o.name}" is declared more than once.`), r.add(o.id), i.add(o.name), a.push(o);
|
|
3002
|
+
}
|
|
3003
|
+
return Ft(a, t), Object.freeze(a);
|
|
3004
|
+
}
|
|
3005
|
+
export { ve as $, He as A, Re as B, M as C, j as D, Ke as E, Be as F, xe as G, S as H, Me as I, De as J, Se as K, Ue as L, ke as M, Le as N, Ge as O, Pe as P, me as Q, je as R, Ze as S, We as T, Ee as U, Te as V, Ne as W, ze as X, be as Y, w as Z, R as _, At as a, b as at, tt as b, Nt as c, Ct as d, ye as et, Et as f, L as g, St as h, $ as i, he as it, O as j, qe as k, wt as l, ct as m, Dt as n, oe as nt, It as o, Q as p, we as q, jt as r, v as rt, Mt as s, kt as t, _e as tt, Tt as u, rt as v, Ye as w, nt as x, F as y, Fe as z };
|