@pie-element/complex-rubric 3.8.4-next.9 → 5.0.1-esmbeta.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.md +42 -0
- package/configure/CHANGELOG.md +16 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/CHANGELOG.md +2472 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/LICENSE.md +5 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/README.md +55 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/CHANGELOG.md +2314 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js +584 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/common.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js +152 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js +223 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js +546 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js +361 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/modals.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js +556 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/scale.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js +380 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/trait.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js +296 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/traitsHeader.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js +118 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/configure/package.json +21 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/CHANGELOG.md +1555 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js +19 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js +215 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js +13 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/controller/package.json +14 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json +1628 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/config-schema.json.md +1202 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/config.js +8 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/generate.js +117 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/index.html +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/demo/session.js +6 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json +861 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/docs/pie-schema.json.md +614 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/configure.css +847 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/configure.js +5058 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/configure.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/controller.css +847 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/controller.js +176 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/controller.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/element.css +847 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/element.js +858 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/esm/element.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js +91 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js +164 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js +330 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/scale.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js +103 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/lib/trait.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/package.json +40 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/color.js +121 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/index.js +35 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
- package/configure/node_modules/@pie-element/multi-trait-rubric/package.json +42 -0
- package/configure/node_modules/@pie-element/rubric/CHANGELOG.json +257 -0
- package/configure/node_modules/@pie-element/rubric/CHANGELOG.md +2755 -0
- package/configure/node_modules/@pie-element/rubric/LICENSE.md +5 -0
- package/configure/node_modules/@pie-element/rubric/README.md +3 -0
- package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.json +197 -0
- package/configure/node_modules/@pie-element/rubric/configure/CHANGELOG.md +2522 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js +68 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/index.js +197 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/main.js +162 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js +573 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/authoring.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js +24 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js +172 -0
- package/configure/node_modules/@pie-element/rubric/configure/lib/pie-toolbox-rubric/point-menu.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/CHANGELOG.json +32 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/CHANGELOG.md +2198 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/esm/index.js +3808 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +75 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js +99 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +164 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +445 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js +54 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +195 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +75 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +189 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/form-section.js +46 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/form-section.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/help.js +147 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/help.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/index.js +216 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/input.js +139 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/input.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/inputs.js +139 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/inputs.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/langs.js +179 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/langs.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +143 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js +24 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +191 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +86 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +79 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +458 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js +267 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +49 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +77 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js +143 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js +463 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +53 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +74 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js +110 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +198 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js +180 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +84 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/package.json +40 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/langs.test.jsx.snap +32 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/settings-panel.test.js.snap +115 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/two-choice.test.js.snap +171 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/choice-utils.test.js +12 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/langs.test.jsx +37 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/number-text-field.test.jsx +148 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/settings-panel.test.js +204 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/__tests__/two-choice.test.js +24 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +56 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/checkbox.jsx +73 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/feedback-menu.test.jsx.snap +51 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/index.test.jsx.snap +519 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/feedback-menu.test.jsx +10 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/index.test.jsx +92 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +90 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +365 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/choice-utils.js +30 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-config.test.jsx.snap +27 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-selector.test.jsx.snap +38 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-config.test.jsx +71 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-selector.test.jsx +60 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +122 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +52 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +112 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/form-section.jsx +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/help.jsx +87 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/index.js +55 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/input.jsx +72 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/inputs.jsx +98 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/langs.jsx +111 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/__snapshots__/config.layout.test.jsx.snap +59 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/config.layout.test.jsx +42 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/layout-content.test.jsx +3 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +75 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/index.js +4 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +118 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +35 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +64 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +337 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +202 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +22 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +52 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/index.js +83 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +328 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +24 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +49 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +47 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/__snapshots__/index.test.jsx.snap +170 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/index.test.jsx +62 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +119 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/two-choice.jsx +94 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +36 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/CHANGELOG.md +709 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/esm/index.js +525 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/choice.js +129 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/choice.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js +35 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/drag-type.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/drag-type.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js +82 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/ica-dp.js +37 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/ica-dp.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/index.js +89 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js +37 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/placeholder.js +153 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/placeholder.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/preview-component.js +194 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/preview-component.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/swap.js +25 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/swap.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/uid-context.js +40 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/uid-context.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js +59 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/package.json +34 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/__tests__/__snapshots__/placeholder.test.jsx.snap +68 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/__tests__/placeholder.test.jsx +48 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/__tests__/uid-context.test.jsx +21 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/choice.jsx +76 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/drag-in-the-blank-dp.jsx +19 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/drag-type.js +7 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/droppable-placeholder.jsx +38 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/ica-dp.jsx +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/index.js +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/match-list-dp.jsx +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/placeholder.jsx +145 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/preview-component.jsx +153 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/swap.js +14 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/uid-context.js +13 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/drag/src/with-drag-context.js +32 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +32 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +2224 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/esm/index.js +9998 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js +25 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/constants.js +16 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/constants.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/editor.js +1356 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/index.js +269 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +16 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js +73 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +305 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +381 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js +37 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js +397 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js +114 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js +38 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js +80 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js +129 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +419 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +177 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +263 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +161 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +402 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +334 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +454 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +387 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +709 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +101 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +93 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js +46 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +289 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +97 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +57 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +95 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +341 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +75 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js +130 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +125 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js +133 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +69 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +483 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +187 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js +226 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js +34 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +229 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +53 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +286 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +34 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +194 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +376 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +62 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +677 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/shared/alert-dialog.js +75 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/theme.js +9 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/package.json +60 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/__tests__/editor.test.jsx +363 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/__tests__/serialization.test.js +291 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/__tests__/utils.js +36 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/block-tags.js +17 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/constants.js +7 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +1197 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/index.jsx +162 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +8 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +27 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popper.js +48 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +284 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +447 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/css/icons/index.jsx +17 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/css/index.jsx +346 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/customPlugin/index.jsx +85 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/html/icons/index.jsx +19 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/html/index.jsx +72 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/component.test.jsx.snap +51 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar-logic.test.jsx.snap +27 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar.test.jsx.snap +44 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/component.test.jsx +41 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar-logic.test.jsx +42 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar.test.jsx +11 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/index.test.js +95 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/insert-image-handler.test.js +113 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/mock-change.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/alt-dialog.jsx +82 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +343 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +100 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +227 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +117 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +360 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/list/__tests__/index.test.js +54 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +305 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/__snapshots__/index.test.jsx.snap +48 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/index.test.jsx +245 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +379 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/__tests__/index.test.js +75 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +325 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +624 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +56 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +43 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/rendering/index.js +31 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +215 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +76 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +48 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +71 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +299 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +70 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/math-templated/index.jsx +104 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +90 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/CustomTablePlugin.js +113 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/__snapshots__/table-toolbar.test.jsx.snap +44 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/index.test.jsx +401 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/table-toolbar.test.jsx +42 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +53 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +427 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +136 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/icons/index.jsx +139 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/index.jsx +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/default-toolbar.test.jsx.snap +923 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/editor-and-toolbar.test.jsx.snap +20 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar-buttons.test.jsx.snap +36 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar.test.jsx.snap +46 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/default-toolbar.test.jsx +94 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/editor-and-toolbar.test.jsx +37 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar-buttons.test.jsx +51 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar.test.jsx +106 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +206 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +38 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +257 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +138 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +338 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +31 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +621 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/editable-html/src/theme.js +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/CHANGELOG.md +539 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/esm/index.js +1153 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +89 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +153 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/icon-base.js +206 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/icon-root.js +130 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +92 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/index.js +72 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +229 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +145 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +183 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +82 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +206 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/sized.js +41 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/lib/sized.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/package.json +35 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +3 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +64 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +121 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +158 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +76 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +61 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/index.js +19 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +189 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +107 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +130 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +49 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +152 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/icons/src/sized.jsx +25 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +17 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +1077 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/esm/index.js +2134 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +124 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/index.js +76 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +512 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +34 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +41 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +17 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +49 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +43 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +53 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +17 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +36 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +34 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +169 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +295 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +54 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +32 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +74 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +25 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +18 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +47 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +53 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +120 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +29 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/math-input.js +192 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js +110 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +32 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +247 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +356 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/shared/constants.js +16 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/package.json +35 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/__tests__/__snapshots__/math-input-test.jsx.snap +152 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/__tests__/math-input-test.jsx +85 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +69 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/index.jsx +18 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/__snapshots__/index.test.jsx.snap +193 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/index.test.jsx +24 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/keys-layout.test.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +450 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +17 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/__tests__/utils.test.js +57 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +32 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +5 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +28 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +35 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +40 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +3 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +28 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +26 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +144 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +367 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/index.js +21 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/log.js +22 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +65 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +8 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +10 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +38 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +71 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +19 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +128 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/__snapshots__/input.test.jsx.snap +9 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/input.test.jsx +92 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/static.test.jsx +57 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/common-mq-styles.js +105 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +11 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/index.js +5 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +176 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +285 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-input/src/updateSpans.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +775 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/esm/index.js +690 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/index.js +38 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +15 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +296 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +109 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +95 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +438 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/package.json +28 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +14 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +50 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +155 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/index.js +5 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +2 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +9 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +104 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +220 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +387 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +17 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +940 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/esm/index.js +1410 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +68 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +575 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +287 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +240 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js +21 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/package.json +46 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/editor-and-pad.test.js.snap +31 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/index.test.js.snap +30 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/math-preview.test.js.snap +23 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/editor-and-pad.test.js +25 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/index.test.js +28 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/math-preview.test.js +31 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +47 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +499 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +224 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +179 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/math-toolbar/src/utils.js +11 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/package.json +40 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/color.js +121 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/index.js +35 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +410 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/esm/index.js +39 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/lib/index.js +40 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/package.json +25 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +45 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/@pie-lib/test-utils/src/index.js +18 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/Readme.md +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.js +287 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.min.js +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js +264 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js +282 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/configure/node_modules/slate-dev-environment/package.json +21 -0
- package/configure/node_modules/@pie-element/rubric/configure/package.json +20 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/__tests__/index.test.jsx +178 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/defaults.js +42 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/index.js +129 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/main.jsx +89 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/authoring.jsx +449 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/index.js +9 -0
- package/configure/node_modules/@pie-element/rubric/configure/src/pie-toolbox-rubric/point-menu.jsx +94 -0
- package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.json +17 -0
- package/configure/node_modules/@pie-element/rubric/controller/CHANGELOG.md +1548 -0
- package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js +16 -0
- package/configure/node_modules/@pie-element/rubric/controller/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/controller/lib/index.js +59 -0
- package/configure/node_modules/@pie-element/rubric/controller/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/controller/package.json +12 -0
- package/configure/node_modules/@pie-element/rubric/controller/src/__tests__/index.test.js +33 -0
- package/configure/node_modules/@pie-element/rubric/controller/src/defaults.js +8 -0
- package/configure/node_modules/@pie-element/rubric/controller/src/index.js +41 -0
- package/configure/node_modules/@pie-element/rubric/docs/config-schema.json +712 -0
- package/configure/node_modules/@pie-element/rubric/docs/config-schema.json.md +532 -0
- package/configure/node_modules/@pie-element/rubric/docs/demo/config.js +8 -0
- package/configure/node_modules/@pie-element/rubric/docs/demo/generate.js +8 -0
- package/configure/node_modules/@pie-element/rubric/docs/demo/index.html +2 -0
- package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json +391 -0
- package/configure/node_modules/@pie-element/rubric/docs/pie-schema.json.md +281 -0
- package/configure/node_modules/@pie-element/rubric/esm/configure.css +847 -0
- package/configure/node_modules/@pie-element/rubric/esm/configure.js +12334 -0
- package/configure/node_modules/@pie-element/rubric/esm/configure.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/esm/controller.css +847 -0
- package/configure/node_modules/@pie-element/rubric/esm/controller.js +68 -0
- package/configure/node_modules/@pie-element/rubric/esm/controller.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/esm/element.css +847 -0
- package/configure/node_modules/@pie-element/rubric/esm/element.js +263 -0
- package/configure/node_modules/@pie-element/rubric/esm/element.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/esm/print.css +847 -0
- package/configure/node_modules/@pie-element/rubric/esm/print.js +298 -0
- package/configure/node_modules/@pie-element/rubric/esm/print.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/lib/index.js +94 -0
- package/configure/node_modules/@pie-element/rubric/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/lib/main.js +270 -0
- package/configure/node_modules/@pie-element/rubric/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/lib/print.js +114 -0
- package/configure/node_modules/@pie-element/rubric/lib/print.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/module/configure.js +1 -0
- package/configure/node_modules/@pie-element/rubric/module/controller.js +113 -0
- package/configure/node_modules/@pie-element/rubric/module/demo.js +33 -0
- package/configure/node_modules/@pie-element/rubric/module/element.js +1 -0
- package/configure/node_modules/@pie-element/rubric/module/index.html +21 -0
- package/configure/node_modules/@pie-element/rubric/module/manifest.json +10 -0
- package/configure/node_modules/@pie-element/rubric/module/print-demo.js +71 -0
- package/configure/node_modules/@pie-element/rubric/module/print.html +18 -0
- package/configure/node_modules/@pie-element/rubric/module/print.js +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/package.json +40 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/color.js +121 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/index.js +35 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
- package/configure/node_modules/@pie-element/rubric/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
- package/configure/node_modules/@pie-element/rubric/package.json +45 -0
- package/configure/node_modules/@pie-element/rubric/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +1815 -0
- package/configure/node_modules/@pie-element/rubric/src/__tests__/rubric-view.test.jsx +49 -0
- package/configure/node_modules/@pie-element/rubric/src/index.js +37 -0
- package/configure/node_modules/@pie-element/rubric/src/main.jsx +219 -0
- package/configure/node_modules/@pie-element/rubric/src/print.js +63 -0
- package/configure/node_modules/@pie-lib/icons/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/icons/CHANGELOG.md +539 -0
- package/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/icons/esm/index.js +1153 -0
- package/configure/node_modules/@pie-lib/icons/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +89 -0
- package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +153 -0
- package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/icon-base.js +206 -0
- package/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/icon-root.js +130 -0
- package/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +92 -0
- package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/index.js +72 -0
- package/configure/node_modules/@pie-lib/icons/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +229 -0
- package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +145 -0
- package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +183 -0
- package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +82 -0
- package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +206 -0
- package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/sized.js +41 -0
- package/configure/node_modules/@pie-lib/icons/lib/sized.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/package.json +35 -0
- package/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +3 -0
- package/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +64 -0
- package/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +121 -0
- package/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +158 -0
- package/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +76 -0
- package/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +61 -0
- package/configure/node_modules/@pie-lib/icons/src/index.js +19 -0
- package/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +189 -0
- package/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +107 -0
- package/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +130 -0
- package/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +49 -0
- package/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +152 -0
- package/configure/node_modules/@pie-lib/icons/src/sized.jsx +25 -0
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +775 -0
- package/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/esm/index.js +690 -0
- package/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +38 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +15 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +296 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +109 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +95 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +438 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/package.json +28 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +14 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +50 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +155 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/index.js +5 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +2 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +9 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +104 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +220 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +387 -0
- package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +410 -0
- package/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/test-utils/esm/index.js +39 -0
- package/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/test-utils/lib/index.js +40 -0
- package/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/test-utils/package.json +25 -0
- package/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +45 -0
- package/configure/node_modules/@pie-lib/test-utils/src/index.js +18 -0
- package/configure/package.json +6 -6
- package/controller/CHANGELOG.md +16 -0
- package/controller/package.json +1 -1
- package/esm/configure.js +42455 -0
- package/esm/configure.js.map +1 -0
- package/esm/controller.js +281 -0
- package/esm/controller.js.map +1 -0
- package/esm/element.js +179 -0
- package/esm/element.js.map +1 -0
- package/esm/package.json +4 -0
- package/esm/print.js +163 -0
- package/esm/print.js.map +1 -0
- package/module/configure.js +1 -1
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +24 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_dll_react,_dll_prop_types,_dll_material_ui__core_styles,_dll_classnames,_dll_react_dom,_dll_debug,_dll_lodash,_dll_material_ui__core,_dll_material_ui__core_collapse_index}from"../../../@pie-lib/shared-module@^1.14.0/module/index.js";const React$1=_dll_react,PropTypes$3=_dll_prop_types,{withStyles:withStyles$2}=_dll_material_ui__core_styles,classNames$1=_dll_classnames,normalizeSize=e=>"string"==typeof e?e:"number"==typeof e?`${e}px`:"30px",Sized=({size:e,children:t})=>{const r={height:e=normalizeSize(e),width:e,display:"inline-block",position:"relative"};return React$1.createElement("div",{style:r},t)};Sized.propTypes={size:PropTypes$3.number,children:PropTypes$3.oneOfType([PropTypes$3.arrayOf(PropTypes$3.node),PropTypes$3.node]).isRequired};const IconRoot=({size:e,children:t})=>React$1.createElement(Sized,{size:e},React$1.createElement("svg",{preserveAspectRatio:"xMinYMin meet",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}}," ",t));IconRoot.propTypes={size:PropTypes$3.oneOf([PropTypes$3.string,PropTypes$3.number]),children:PropTypes$3.oneOfType([PropTypes$3.arrayOf(PropTypes$3.node),PropTypes$3.node]).isRequired};const getStyles=(e,t,r)=>({bg:{fill:`var(--icons-${e}-bg, ${r})`},fg:{fill:`var(--icons-${e}-fg, ${t})`}});PropTypes$3.string;const SquareFeedbackBox=({className:e})=>React$1.createElement("polygon",{transform:"translate(2, 0)",className:e,points:"34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3"});SquareFeedbackBox.propTypes={className:PropTypes$3.string};const RoundFeedbackBox=({className:e})=>React$1.createElement("path",{transform:"translate(1, 0)",className:e,d:"M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z"});RoundFeedbackBox.propTypes={className:PropTypes$3.string};const Circle$1=({className:e})=>React$1.createElement("circle",{transform:"translate(-3, 0)",className:e,cx:"23",cy:"20.4",r:"16"});Circle$1.propTypes={className:PropTypes$3.string};const Square=({className:e})=>React$1.createElement("rect",{x:"3.6",y:"4.1",className:e,width:"32",height:"32"});Square.propTypes={className:PropTypes$3.string};var IconBase=(e,t)=>{class r extends React$1.Component{constructor(r){super(r);const{classes:n,size:o}=this.props;this.icons={feedback:{round:{check:React$1.createElement(IconRoot,{size:o},React$1.createElement(RoundFeedbackBox,{className:n.bg}),React$1.createElement(e,{className:n.fg})),emoji:React$1.createElement(IconRoot,{size:o},React$1.createElement(RoundFeedbackBox,{className:n.bg}),React$1.createElement(t,{className:n.fg})),open:{check:React$1.createElement(IconRoot,{size:o},React$1.createElement(e,{className:n.bg})),emoji:React$1.createElement(IconRoot,{size:o},React$1.createElement(t,{className:n.bg}))}},square:{check:React$1.createElement(IconRoot,{size:o},React$1.createElement(SquareFeedbackBox,{className:n.bg}),React$1.createElement(e,{className:n.fg})),emoji:React$1.createElement(IconRoot,{size:o},React$1.createElement(SquareFeedbackBox,{className:n.bg}),React$1.createElement(t,{className:n.fg})),open:{check:React$1.createElement(IconRoot,{size:o},React$1.createElement(e,{className:n.bg})),emoji:React$1.createElement(IconRoot,{size:o},React$1.createElement(t,{className:n.bg}))}}},round:{check:React$1.createElement(IconRoot,{size:o},React$1.createElement(Circle$1,{className:n.bg}),React$1.createElement(e,{className:n.fg})),emoji:React$1.createElement(IconRoot,{size:o},React$1.createElement(Circle$1,{className:n.bg}),React$1.createElement(t,{className:n.fg})),open:{check:React$1.createElement(IconRoot,{size:o},React$1.createElement(e,{className:n.bg})),emoji:React$1.createElement(IconRoot,{size:o},React$1.createElement(t,{className:n.bg}))}},square:{check:React$1.createElement(IconRoot,{size:o},React$1.createElement(Square,{className:n.bg}),React$1.createElement(e,{className:n.fg})),emoji:React$1.createElement(IconRoot,{size:o},React$1.createElement(Square,{className:n.bg}),React$1.createElement(t,{className:n.fg})),open:{check:React$1.createElement(IconRoot,{size:o},React$1.createElement(e,{className:n.bg})),emoji:React$1.createElement(IconRoot,{size:o},React$1.createElement(t,{className:n.bg}))}}}}render(){return void 0===this.props.category?!0===this.props.open?this.icons[this.props.shape].open[this.props.iconSet]:this.icons[this.props.shape][this.props.iconSet]:!0===this.props.open?this.icons.feedback[this.props.shape].open[this.props.iconSet]:this.icons.feedback[this.props.shape][this.props.iconSet]}}return r.propTypes={classes:PropTypes$3.object.isRequired,size:PropTypes$3.number},r.propTypes={iconSet:PropTypes$3.oneOf(["emoji","check"]),shape:PropTypes$3.oneOf(["round","square"]),category:PropTypes$3.oneOf(["feedback",void 0]),open:PropTypes$3.bool},r.defaultProps={iconSet:"check",shape:"round",category:void 0,open:!1},r};const styles$6=getStyles("correct","#f8ffe2","#4aaf46"),Emoji$3=({className:e})=>React$1.createElement("g",{transform:"translate(1, 0)"},React$1.createElement("path",{className:e,d:"M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2 c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z"}),React$1.createElement("rect",{x:"21.1",y:"13.1",className:e,width:"3.7",height:"4.7"}),React$1.createElement("rect",{x:"12.7",y:"13.1",className:e,width:"3.7",height:"4.7"}));Emoji$3.propTypes={className:PropTypes$3.string},Emoji$3.defaultProps={x:0};const Check$1=({className:e,x:t,y:r})=>React$1.createElement("polygon",{transform:`translate(${t}, ${r})`,className:e,points:"19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4"});Check$1.propTypes={x:PropTypes$3.number,y:PropTypes$3.number,className:PropTypes$3.string},Check$1.defaultProps={x:0,y:0};const Correct$1=IconBase(Check$1,Emoji$3);Correct$1.propTypes={iconSet:PropTypes$3.oneOf(["emoji","check"]),shape:PropTypes$3.oneOf(["round","square"]),category:PropTypes$3.oneOf(["feedback",void 0]),open:PropTypes$3.bool},Correct$1.defaultProps={iconSet:"check",shape:"round",category:void 0,open:!1};var correctIcon=withStyles$2(styles$6)(Correct$1);const OpenIcon=({bg:e,fg:t})=>React$1.createElement("svg",{preserveAspectRatio:"xMinYMin meet",version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"-283 359 34 35",style:{enableBackground:"new -283 359 34 35"}},React$1.createElement("circle",{className:e,cx:"-266",cy:"375.9",r:"14"}),React$1.createElement("path",{className:e,d:"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z"}),React$1.createElement("polygon",{className:t,points:"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6 "}));OpenIcon.propTypes={bg:PropTypes$3.string,fg:PropTypes$3.string};const CloseIcon=({bg:e,fg:t,border:r})=>React$1.createElement("svg",{preserveAspectRatio:"xMinYMin meet",version:"1.1",x:"0px",y:"0px",viewBox:"-129.5 127 34 35",style:{enableBackground:"new -129.5 127 34 35"}},React$1.createElement("path",{style:{fill:"#D0CAC5",stroke:"#E6E3E0",strokeWidth:.75,strokeMiterlimit:10},d:"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z"}),React$1.createElement("path",{style:{fill:"#B3ABA4",stroke:"#CDC7C2",strokeWidth:.5,strokeMiterlimit:10},d:"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z"}),React$1.createElement("circle",{className:e,cx:"-114.2",cy:"143.5",r:"14"}),React$1.createElement("path",{className:r,d:"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z"}),React$1.createElement("polygon",{className:t,points:"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2"}));CloseIcon.propTypes={bg:PropTypes$3.string,fg:PropTypes$3.string,border:PropTypes$3.string};const styles$5={root:{width:e=>e.size||"25px",height:e=>e.size||"25px"},hideIconBg:{fill:"#bce2ff"},hideIconFg:{fill:"#1a9cff"},showIconBg:{fill:"white"},showIconFg:{fill:"#1a9cff"},showIconBorder:{fill:"#bce2ff"}},CorrectResponse=({open:e,classes:t,className:r})=>React$1.createElement("div",{className:classNames$1(r,t.root)},e?React$1.createElement(OpenIcon,{bg:t.hideIconBg,fg:t.hideIconFg}):React$1.createElement(CloseIcon,{bg:t.showIconBg,border:t.showIconBorder,fg:t.showIconFg}));CorrectResponse.propTypes={classes:PropTypes$3.object.isRequired,open:PropTypes$3.bool,size:PropTypes$3.string,className:PropTypes$3.string},CorrectResponse.defaultProps={open:!1},withStyles$2(styles$5)(CorrectResponse);const Ex=({className:e})=>React$1.createElement("g",{transform:"translate(0.5, 0.5)"},React$1.createElement("rect",{x:"11",y:"17.3",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",className:e,width:"16.6",height:"3.7"}),React$1.createElement("rect",{x:"17.4",y:"10.7",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",className:e,width:"3.7",height:"16.6"}));Ex.propTypes={className:PropTypes$3.string};const Emoji$2=({className:e})=>React$1.createElement("g",{transform:"translate(1,0)"},React$1.createElement("rect",{x:"21",y:"12.9",className:e,width:"3.7",height:"4.7"}),React$1.createElement("rect",{x:"12.7",y:"12.9",className:e,width:"3.7",height:"4.7"}),React$1.createElement("rect",{x:"12.2",y:"22.5",className:e,width:"13",height:"3.3"}));Emoji$2.propTypes={className:PropTypes$3.string};const styles$4$1=getStyles("incorrect","#fbf2e3","#fcb733"),Incorrect$1=IconBase(Ex,Emoji$2);var incorrectIcon=withStyles$2(styles$4$1)(Incorrect$1);Incorrect$1.propTypes={iconSet:PropTypes$3.oneOf(["emoji","check"]),shape:PropTypes$3.oneOf(["round","square"]),category:PropTypes$3.oneOf(["feedback",void 0]),open:PropTypes$3.bool},Incorrect$1.defaultProps={iconSet:"check",shape:"round",category:void 0,open:!1};const Lines=()=>{const e={fill:"none",stroke:"#BCE2FF",strokeWidth:2,strokeMiterlimit:10};return React$1.createElement("g",null,React$1.createElement("line",{style:e,x1:"-98",y1:"142",x2:"-114.6",y2:"142"}),React$1.createElement("line",{style:e,x1:"-98",y1:"146.3",x2:"-114.6",y2:"146.3"}),React$1.createElement("line",{style:e,x1:"-104",y1:"150.7",x2:"-114.6",y2:"150.7"}))},Root$1=({children:e,size:t})=>React$1.createElement(Sized,{size:t},React$1.createElement("svg",{version:"1.1",viewBox:"-128 129 31 31",style:{enableBackground:"new -128 129 31 31"}},e));Root$1.propTypes={children:PropTypes$3.oneOfType([PropTypes$3.arrayOf(PropTypes$3.node),PropTypes$3.node]).isRequired,size:PropTypes$3.number};const GreyInfo=()=>React$1.createElement("g",null,React$1.createElement("rect",{x:"-123.9",y:"135.3",style:{fill:"#D0CAC5",stroke:"#E6E3E0",strokeWidth:.75,strokeLinejoin:"round",strokeMiterlimit:10},width:"4.1",height:"4.1"}),React$1.createElement("polygon",{style:{fill:"#D0CAC5",stroke:"#E6E3E0",strokeWidth:.75,strokeLinejoin:"round",strokeMiterlimit:10},points:"-119.8,150.4 -119.8,142.2 -125,142.2 -125,144.9 -122.6,144.9 -122.6,150.4 -125.6,150.4 -125.6,153.2 -116.8,153.2 -116.8,150.4 "}),React$1.createElement("rect",{x:"-124.7",y:"134.7",style:{fill:"#B3ABA4",stroke:"#CDC7C2",strokeWidth:.5,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},width:"4.1",height:"4.1"}),React$1.createElement("polygon",{style:{fill:"#B3ABA4",stroke:"#CDC7C2",strokeWidth:.5,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},points:"-120.6,149.8 -120.6,141.5 -125.8,141.5 -125.8,144.3 -123.3,144.3 -123.3,149.8 -126.4,149.8 -126.4,152.5 -117.6,152.5 -117.6,149.8 "}),React$1.createElement("rect",{x:"-125.5",y:"134",style:{fill:"#7FABC6"},width:"4.1",height:"4.1"}),React$1.createElement("polygon",{style:{fill:"#7FABC6"},points:"-121.4,149.1 -121.4,140.9 -126.5,140.9 -126.5,143.6 -124.1,143.6 -124.1,149.1 -127.1,149.1 -127.1,151.9 -118.4,151.9 -118.4,149.1 "})),BlueInfo=()=>React$1.createElement("g",null,React$1.createElement("rect",{x:"-123.9",y:"135.3",style:{fill:"#D0CAC5",stroke:"#E6E3E0",strokeWidth:.75,strokeLinejoin:"round",strokeMiterlimit:10},width:"4.1",height:"4.1"}),React$1.createElement("polygon",{style:{fill:"#D0CAC5",stroke:"#E6E3E0",strokeWidth:.75,strokeLinejoin:"round",strokeMiterlimit:10},points:"-119.8,150.4 -119.8,142.2 -125,142.2 -125,144.9 -122.6,144.9 -122.6,150.4 -125.6,150.4 -125.6,153.2 -116.8,153.2 -116.8,150.4 "}),React$1.createElement("rect",{x:"-124.7",y:"134.7",style:{fill:"#B3ABA4",stroke:"#CDC7C2",strokeWidth:.5,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},width:"4.1",height:"4.1"}),React$1.createElement("polygon",{style:{fill:"#B3ABA4",stroke:"#CDC7C2",strokeWidth:.5,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10},points:"-120.6,149.8 -120.6,141.5 -125.8,141.5 -125.8,144.3 -123.3,144.3 -123.3,149.8 -126.4,149.8 -126.4,152.5 -117.6,152.5 -117.6,149.8 "}),React$1.createElement("rect",{x:"-125.5",y:"134",style:{fill:"#1A9CFF"},width:"4.1",height:"4.1"}),React$1.createElement("polygon",{style:{fill:"#1A9CFF"},points:"-121.4,149.1 -121.4,140.9 -126.5,140.9 -126.5,143.6 -124.1,143.6 -124.1,149.1 -127.1,149.1 -127.1,151.9 -118.4,151.9 -118.4,149.1 "}));class Instructions extends React$1.Component{constructor(e){super(e)}render(){return!0===this.props.open?React$1.createElement(Root$1,null,React$1.createElement(GreyInfo,null),React$1.createElement(Lines,null)):React$1.createElement(Root$1,null,React$1.createElement(BlueInfo,null),React$1.createElement(Lines,null))}}Instructions.propTypes={open:PropTypes$3.bool},Instructions.defaultProps={open:!1};const Glint=({fill:e})=>React$1.createElement("path",{fill:e,d:"M-130.4,142.1c0-2.1,1.7-3.9,3.9-3.9c0.3,0,0.5,0,0.8,0.1c-0.6-0.8-1.5-1.3-2.6-1.3c-1.8,0-3.3,1.5-3.3,3.3c0,1.1,0.5,2,1.3,2.6C-130.4,142.6-130.4,142.4-130.4,142.1z"});Glint.propTypes={fill:PropTypes$3.string};class LearnMore extends React$1.Component{render(){const{classes:e,size:t}=this.props;return!0===this.props.open?React$1.createElement(Sized,{size:t},React$1.createElement("svg",{preserveAspectRatio:"xMinYMin meet",viewBox:"-135 129 16 32"},React$1.createElement("path",{className:e.hideBg,d:"M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z"}),React$1.createElement("path",{className:e.hideBg,d:"M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z"}),React$1.createElement(Glint,{fill:e.hideFg.fill}))):React$1.createElement(Sized,{size:t},React$1.createElement("svg",{preserveAspectRatio:"xMinYMin meet",viewBox:"-135 129 16 31"},React$1.createElement("path",{fill:"#D0CAC5",stroke:"#E6E3E0",className:"st0",d:"M-120.7,142.4c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-121.6,146-120.7,144.3-120.7,142.4z"}),React$1.createElement("path",{fill:"#D0CAC5",stroke:"#E6E3E0",className:"st0",d:"M-124.4,154.3h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-123.6,153.9-123.9,154.3-124.4,154.3z"}),React$1.createElement("path",{fill:"#B3ABA4",stroke:"#CDC7C2",className:"st1",d:"M-121.3,141.8c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.2,145.3-121.3,143.7-121.3,141.8z"}),",",React$1.createElement("path",{fill:"#B3ABA4",stroke:"#CDC7C2",className:"st1",d:"M-125,153.7h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.2,153.3-124.6,153.7-125,153.7z"}),React$1.createElement("path",{className:e.showBg,d:"M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z"}),React$1.createElement("path",{className:e.showBg,d:"M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z"}),React$1.createElement(Glint,{fill:e.hideFg.fill})))}}LearnMore.propTypes={classes:PropTypes$3.object.isRequired,size:PropTypes$3.number};const styles$3$1={showBg:{fill:"#1a9cff"},hideFg:{fill:"#1a9cff"},hideBg:{fill:"#bce2ff"}};LearnMore.propTypes={open:PropTypes$3.bool},LearnMore.defaultProps={open:!1},withStyles$2(styles$3$1)(LearnMore);const Exclamation=({className:e})=>React$1.createElement("g",null,React$1.createElement("rect",{x:"19.3",y:"10.3",className:e,width:"4.5",height:"12.7"}),React$1.createElement("rect",{x:"19.3",y:"26.2",className:e,width:"4.5",height:"4.5"})),Octagon=({className:e})=>React$1.createElement("polygon",{className:e,points:"14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5"}),Emoji$1=({className:e})=>React$1.createElement("g",null,React$1.createElement("rect",{x:"23.8",y:"15",className:e,width:"3.5",height:"4.4"}),React$1.createElement("rect",{x:"16",y:"15",className:e,width:"3.5",height:"4.4"}),React$1.createElement("path",{className:e,d:"M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0 C25.7,26.4,25,27.1,24.2,27.1z"}));Emoji$1.propTypes=Octagon.propTypes=Exclamation.propTypes={className:PropTypes$3.string};const styles$2$1=getStyles("nothing-submitted","white","#464146");class NothingSubmitted$1 extends React$1.Component{constructor(e){super(e);const{classes:t}=this.props;this.icons={check:React$1.createElement(IconRoot,null,React$1.createElement(Octagon,{className:t.bg}),React$1.createElement(Exclamation,{className:t.fg})),emoji:React$1.createElement(IconRoot,null,React$1.createElement(Octagon,{className:t.bg}),React$1.createElement(Emoji$1,{className:t.fg})),feedback:{check:React$1.createElement(IconRoot,null,React$1.createElement(Octagon,{className:t.bg}),React$1.createElement(Emoji$1,{className:t.fg})),emoji:React$1.createElement(IconRoot,null,React$1.createElement(Octagon,{className:t.bg}),React$1.createElement(Emoji$1,{className:t.fg})),square:{check:React$1.createElement(IconRoot,null,React$1.createElement(Octagon,{className:t.bg}),React$1.createElement(Exclamation,{className:t.fg})),emoji:React$1.createElement(IconRoot,null,React$1.createElement(Octagon,{className:t.bg}),React$1.createElement(Emoji$1,{className:t.fg})),open:{check:React$1.createElement(IconRoot,null,React$1.createElement(Exclamation,{className:t.bg})),emoji:React$1.createElement(IconRoot,null,React$1.createElement(Emoji$1,{className:t.bg}))}}}}}render(){return void 0===this.props.category?this.icons[this.props.iconSet]:void 0===this.props.shape?this.icons.feedback[this.props.iconSet]:!0===this.props.open?this.icons.feedback.square.open[this.props.iconSet]:this.icons.feedback.square[this.props.iconSet]}}NothingSubmitted$1.propTypes={classes:PropTypes$3.object.isRequired},NothingSubmitted$1.propTypes={iconSet:PropTypes$3.oneOf(["emoji","check",void 0]),shape:PropTypes$3.oneOf(["square",void 0]),category:PropTypes$3.oneOf(["feedback",void 0]),open:PropTypes$3.bool},NothingSubmitted$1.defaultProps={iconSet:"check",shape:void 0,category:void 0,open:!1};var nothingSubmittedIcon=withStyles$2(styles$2$1)(NothingSubmitted$1);const styles$1$1=getStyles("partially-correct","#4aaf46","#c1e1ac"),Check=({className:e})=>React$1.createElement("g",{transform:"translate(0, 0)"},React$1.createElement("polygon",{className:e,points:"27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6"}),React$1.createElement("polygon",{className:e,points:"16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3"})),Emoji=({className:e})=>React$1.createElement("g",{transform:"translate(2, 0)"},React$1.createElement("rect",{x:"20.6",y:"11.8",className:e,width:"4",height:"5"}),React$1.createElement("rect",{x:"11.5",y:"11.8",className:e,width:"4",height:"5"}),React$1.createElement("rect",{x:"10.9",y:"22.9",transform:"matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)",className:e,width:"14.3",height:"3.7"}));Emoji.propTypes=Check.propTypes={className:PropTypes$3.string};const PartiallyCorrect$1=IconBase(Check,Emoji);PartiallyCorrect$1.propTypes={iconSet:PropTypes$3.oneOf(["emoji","check"]),shape:PropTypes$3.oneOf(["round","square"]),category:PropTypes$3.oneOf(["feedback",void 0]),open:PropTypes$3.bool},PartiallyCorrect$1.defaultProps={iconSet:"check",shape:"round",category:void 0,open:!1};var partiallyCorrectIcon=withStyles$2(styles$1$1)(PartiallyCorrect$1);const Info$1=({fg:e})=>React$1.createElement("g",null,React$1.createElement("rect",{x:"-115",y:"136.7",className:e,width:"3",height:"3"}),React$1.createElement("polygon",{className:e,points:"-112,147.7 -112,141.7 -115.8,141.7 -115.8,143.7 -114,143.7 -114,147.7 -116.2,147.7 -116.2,149.7 -109.8,149.7 -109.8,147.7"}));Info$1.propTypes={fg:PropTypes$3.string};const Border=({className:e})=>React$1.createElement("path",{className:e,d:"M-113,158.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105,158.5-113,158.5zM-113,130.5c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-105.6,130.5-113,130.5z"});Border.propTypes={className:PropTypes$3.string};const Circle=()=>React$1.createElement("g",null,React$1.createElement("path",{style:{fill:"#D0CAC5",stroke:"#E6E3E0",strokeWidth:.75,strokeMiterlimit:10},d:"M-111.7,160.9c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5C-96.2,154-103.1,160.9-111.7,160.9z"}),React$1.createElement("path",{style:{fill:"#B3ABA4",stroke:"#CDC7C2",strokeWidth:.5,strokeMiterlimit:10},d:"M-112,159.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-104,159.5-112,159.5z"}),React$1.createElement("circle",{style:{fill:"#FFFFFF"},cx:"-113",cy:"144",r:"14"})),Root=({children:e,size:t})=>{const r={height:t=normalizeSize(t),width:t,display:"inline-block",position:"relative"};return React$1.createElement("div",{style:r},React$1.createElement("svg",{preserveAspectRatio:"xMinYMin meet",viewBox:"-129 128 34 34"},e))};Root.propTypes={children:PropTypes$3.oneOfType([PropTypes$3.arrayOf(PropTypes$3.node),PropTypes$3.node]).isRequired,size:PropTypes$3.number};const styles$7={fg:{fill:"#1a9cff"},bg:{fill:"#bce2ff"},border:{fill:"#bbe3fd"},whiteBorder:{fill:"white"}};class ShowRationale extends React$1.Component{constructor(e){super(e)}render(){const{classes:e}=this.props,t=React$1.createElement(Info$1,{fg:e.fg}),r={check:React$1.createElement(Root,null,React$1.createElement(Circle,null),t,React$1.createElement(Border,{className:e.border})),emoji:React$1.createElement(Root,null,React$1.createElement(Circle,null),t,React$1.createElement(Border,{className:e.border})),open:{check:React$1.createElement(Root,null,React$1.createElement("circle",{style:{fill:"#FFFFFF"},cx:"-113",cy:"144",r:"14"}),React$1.createElement(Info$1,{fg:e.bg,border:e.whiteBorder})),emoji:React$1.createElement(Root,null,React$1.createElement("circle",{style:{fill:"#FFFFFF"},cx:"-113",cy:"144",r:"14"}),React$1.createElement(Info$1,{fg:e.bg,border:e.border}))}};return!0===this.props.open?r.open[this.props.iconSet]:r[this.props.iconSet]}}ShowRationale.propTypes={classes:PropTypes$3.object.isRequired},ShowRationale.propTypes={iconSet:PropTypes$3.oneOf(["emoji","check"]),open:PropTypes$3.bool},ShowRationale.defaultProps={iconSet:"check",open:!1},withStyles$2(styles$7)(ShowRationale);var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs$1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var CSSTransition={exports:{}},addClass={exports:{}},interopRequireDefault$1={exports:{}},module;module=interopRequireDefault$1,module.exports=function(e){return e&&e.__esModule?e:{default:e}},module.exports.__esModule=!0,module.exports.default=module.exports,getDefaultExportFromCjs$1(interopRequireDefault$1.exports);var hasClass={exports:{}};function replaceClassName(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}!function(e,t){t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default}(hasClass,hasClass.exports),getDefaultExportFromCjs$1(hasClass.exports),function(e,t){var r=interopRequireDefault$1.exports;t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,n.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var n=r(hasClass.exports);e.exports=t.default}(addClass,addClass.exports),getDefaultExportFromCjs$1(addClass.exports);var removeClass=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=replaceClassName(e.className,t):e.setAttribute("class",replaceClassName(e.className&&e.className.baseVal||"",t))},Transition$1={};function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function componentWillUpdate(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function polyfill(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,n=null,o=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==r||null!==n||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=componentWillMount,t.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=componentWillUpdate;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;s.call(this,e,t,n)}}return e}componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var reactLifecyclesCompat_es=Object.freeze({__proto__:null,polyfill:polyfill}),require$$2$2=getAugmentedNamespace(reactLifecyclesCompat_es);const require$$0$4=_dll_prop_types,require$$1$2=_dll_react,require$$2$1=_dll_react_dom;Transition$1.__esModule=!0,Transition$1.default=Transition$1.EXITING=Transition$1.ENTERED=Transition$1.ENTERING=Transition$1.EXITED=Transition$1.UNMOUNTED=void 0;var PropTypes$2=_interopRequireWildcard(require$$0$4),_react$1=_interopRequireDefault$1(require$$1$2),_reactDom=_interopRequireDefault$1(require$$2$1),_reactLifecyclesCompat=require$$2$2;function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var UNMOUNTED="unmounted";Transition$1.UNMOUNTED=UNMOUNTED;var EXITED="exited";Transition$1.EXITED=EXITED;var ENTERING="entering";Transition$1.ENTERING=ENTERING;var ENTERED="entered";Transition$1.ENTERED=ENTERED;var EXITING="exiting";Transition$1.EXITING=EXITING;var Transition=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=EXITED,n.appearStatus=ENTERING):o=ENTERED:o=t.unmountOnExit||t.mountOnEnter?UNMOUNTED:EXITED,n.state={status:o},n.nextCallback=null,n}_inheritsLoose(t,e);var r=t.prototype;return r.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===UNMOUNTED?{status:EXITED}:null},r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ENTERING&&r!==ENTERED&&(t=ENTERING):r!==ENTERING&&r!==ENTERED||(t=EXITING)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=_reactDom.default.findDOMNode(this);t===ENTERING?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},r.performEnter=function(e,t){var r=this,n=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||n?(this.props.onEnter(e,o),this.safeSetState({status:ENTERING},(function(){r.props.onEntering(e,o),r.onTransitionEnd(e,a,(function(){r.safeSetState({status:ENTERED},(function(){r.props.onEntered(e,o)}))}))}))):this.safeSetState({status:ENTERED},(function(){r.props.onEntered(e)}))},r.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:EXITING},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:EXITED},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:EXITED},(function(){t.props.onExited(e)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===UNMOUNTED)return null;var t=this.props,r=t.children,n=_objectWithoutPropertiesLoose$1(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var o=_react$1.default.Children.only(r);return _react$1.default.cloneElement(o,n)},t}(_react$1.default.Component);function noop(){}Transition.contextTypes={transitionGroup:PropTypes$2.object},Transition.childContextTypes={transitionGroup:function(){}},Transition.propTypes={},Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},Transition.UNMOUNTED=0,Transition.EXITED=1,Transition.ENTERING=2,Transition.ENTERED=3,Transition.EXITING=4;var _default=(0,_reactLifecyclesCompat.polyfill)(Transition);Transition$1.default=_default;const require$$0$3=_dll_prop_types,require$$3$1=_dll_react;!function(e,t){t.__esModule=!0,t.default=void 0,function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}t.default=e}(require$$0$3);var r=a(addClass.exports),n=a(removeClass),o=a(require$$3$1),i=a(Transition$1);function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,n.default)(e,t)}))},u=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).onEnter=function(e,r){var n=t.getClassNames(r?"appear":"enter").className;t.removeClasses(e,"exit"),l(e,n),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.getClassNames(r?"appear":"enter").activeClassName;t.reflowAndAddClass(e,n),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=r?n+" "+o:o;t.removeClasses(e,r?"appear":"enter"),l(e,i),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),l(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),l(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?(n&&r?r+"-":"")+e:r[e];return{className:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.removeClasses=function(e,t){var r=this.getClassNames(t),n=r.className,o=r.activeClassName,i=r.doneClassName;n&&c(e,n),o&&c(e,o),i&&c(e,i)},a.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,l(e,t))},a.render=function(){var e=s({},this.props);return delete e.classNames,o.default.createElement(i.default,s({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(o.default.Component);u.defaultProps={classNames:""},u.propTypes={};var d=u;t.default=d,e.exports=t.default}(CSSTransition,CSSTransition.exports),getDefaultExportFromCjs$1(CSSTransition.exports);var ReplaceTransition={exports:{}},TransitionGroup={exports:{}},ChildMapping={};const require$$0$2=_dll_react;ChildMapping.__esModule=!0,ChildMapping.getChildMapping=getChildMapping,ChildMapping.mergeChildMappings=mergeChildMappings,ChildMapping.getInitialChildMapping=getInitialChildMapping,ChildMapping.getNextChildMapping=getNextChildMapping;var _react=require$$0$2;function getChildMapping(e,t){var r=Object.create(null);return e&&_react.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,_react.isValidElement)(e)?t(e):e}(e)})),r}function mergeChildMappings(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}function getProp(e,t,r){return null!=r[t]?r[t]:e.props[t]}function getInitialChildMapping(e,t){return getChildMapping(e.children,(function(r){return(0,_react.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:getProp(r,"appear",e),enter:getProp(r,"enter",e),exit:getProp(r,"exit",e)})}))}function getNextChildMapping(e,t,r){var n=getChildMapping(e.children),o=mergeChildMappings(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if((0,_react.isValidElement)(a)){var s=i in t,l=i in n,c=t[i],u=(0,_react.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&(0,_react.isValidElement)(c)&&(o[i]=(0,_react.cloneElement)(a,{onExited:r.bind(null,a),in:c.props.in,exit:getProp(a,"exit",e),enter:getProp(a,"enter",e)})):o[i]=(0,_react.cloneElement)(a,{in:!1}):o[i]=(0,_react.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:getProp(a,"exit",e),enter:getProp(a,"enter",e)})}})),o}const require$$0$1=_dll_prop_types,require$$1$1=_dll_react;!function(e,t){t.__esModule=!0,t.default=void 0;var r=a(require$$0$1),n=a(require$$1$1),o=require$$2$2,i=ChildMapping;function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},u=function(e){var t,r;function o(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(l(l(n)));return n.state={handleExited:o,firstRender:!0},n}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=o.prototype;return a.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},a.componentDidMount=function(){this.appeared=!0,this.mounted=!0},a.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,i.getInitialChildMapping)(e,n):(0,i.getNextChildMapping)(e,r,n),firstRender:!1}},a.handleExited=function(e,t){var r=(0,i.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=s({},t.children);return delete r[e.key],{children:r}})))},a.render=function(){var e=this.props,t=e.component,r=e.childFactory,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["component","childFactory"]),i=c(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===t?i:n.default.createElement(t,o,i)},o}(n.default.Component);u.childContextTypes={transitionGroup:r.default.object.isRequired},u.propTypes={},u.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0,o.polyfill)(u);t.default=d,e.exports=t.default}(TransitionGroup,TransitionGroup.exports),getDefaultExportFromCjs$1(TransitionGroup.exports);const require$$0=_dll_prop_types,require$$1=_dll_react,require$$2=_dll_react_dom;!function(e,t){t.__esModule=!0,t.default=void 0,i(require$$0);var r=i(require$$1),n=require$$2,o=i(TransitionGroup.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t,i;function a(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEnter",0,r)},t.handleEntering=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntering",0,r)},t.handleEntered=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntered",0,r)},t.handleExit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExit",1,r)},t.handleExiting=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExiting",1,r)},t.handleExited=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExited",1,r)},t}i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var s=a.prototype;return s.handleLifecycle=function(e,t,o){var i,a=this.props.children,s=r.default.Children.toArray(a)[t];s.props[e]&&(i=s.props)[e].apply(i,o),this.props[e]&&this.props[e]((0,n.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],l=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);a.propTypes={};var s=a;t.default=s,e.exports=t.default}(ReplaceTransition,ReplaceTransition.exports),getDefaultExportFromCjs$1(ReplaceTransition.exports);var _CSSTransition=_interopRequireDefault(CSSTransition.exports),_ReplaceTransition=_interopRequireDefault(ReplaceTransition.exports),_TransitionGroup=_interopRequireDefault(TransitionGroup.exports),_Transition=_interopRequireDefault(Transition$1);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var reactTransitionGroup={Transition:_Transition.default,TransitionGroup:_TransitionGroup.default,ReplaceTransition:_ReplaceTransition.default,CSSTransition:_CSSTransition.default},mathjax={},version={};Object.defineProperty(version,"__esModule",{value:!0}),version.VERSION=void 0,version.VERSION="3.2.2";var HandlerList$1={},PrioritizedList$1={};Object.defineProperty(PrioritizedList$1,"__esModule",{value:!0}),PrioritizedList$1.PrioritizedList=void 0;var PrioritizedList=function(){function e(){this.items=[],this.items=[]}return e.prototype[Symbol.iterator]=function(){var e=0,t=this.items;return{next:function(){return{value:t[e++],done:e>t.length}}}},e.prototype.add=function(t,r){void 0===r&&(r=e.DEFAULTPRIORITY);var n=this.items.length;do{n--}while(n>=0&&r<this.items[n].priority);return this.items.splice(n+1,0,{item:t,priority:r}),t},e.prototype.remove=function(e){var t=this.items.length;do{t--}while(t>=0&&this.items[t].item!==e);t>=0&&this.items.splice(t,1)},e.DEFAULTPRIORITY=5,e}();PrioritizedList$1.PrioritizedList=PrioritizedList;var __extends$2i=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),extendStatics,__values$Z=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(HandlerList$1,"__esModule",{value:!0}),HandlerList$1.HandlerList=void 0;var PrioritizedList_js_1$1=PrioritizedList$1,HandlerList=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2i(t,e),t.prototype.register=function(e){return this.add(e,e.priority)},t.prototype.unregister=function(e){this.remove(e)},t.prototype.handlesDocument=function(e){var t,r;try{for(var n=__values$Z(this),o=n.next();!o.done;o=n.next()){var i=o.value.item;if(i.handlesDocument(e))return i}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}throw new Error("Can't find handler for document")},t.prototype.document=function(e,t){return void 0===t&&(t=null),this.handlesDocument(e).create(e,t)},t}(PrioritizedList_js_1$1.PrioritizedList);HandlerList$1.HandlerList=HandlerList;var Retries={};function handleRetriesFor(e){return new Promise((function t(r,n){try{r(e())}catch(e){e.retry&&e.retry instanceof Promise?e.retry.then((function(){return t(r,n)})).catch((function(e){return n(e)})):e.restart&&e.restart.isCallback?MathJax.Callback.After((function(){return t(r,n)}),e.restart):n(e)}}))}function retryAfter(e){var t=new Error("MathJax retry");throw t.retry=e,t}Object.defineProperty(Retries,"__esModule",{value:!0}),Retries.retryAfter=Retries.handleRetriesFor=void 0,Retries.handleRetriesFor=handleRetriesFor,Retries.retryAfter=retryAfter,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=void 0;var t=version,r=HandlerList$1,n=Retries;e.mathjax={version:t.VERSION,handlers:new r.HandlerList,document:function(t,r){return e.mathjax.handlers.document(t,r)},handleRetriesFor:n.handleRetriesFor,retryAfter:n.retryAfter,asyncLoad:null}}(mathjax),getDefaultExportFromCjs$1(mathjax);var global$1={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MathJax=e.combineWithMathJax=e.combineDefaults=e.combineConfig=e.isObject=void 0;var r=version;function n(e){return"object"==typeof e&&null!==e}function o(e,r){var i,a;try{for(var s=t(Object.keys(r)),l=s.next();!l.done;l=s.next()){var c=l.value;"__esModule"!==c&&(!n(e[c])||!n(r[c])||r[c]instanceof Promise?null!==r[c]&&void 0!==r[c]&&(e[c]=r[c]):o(e[c],r[c]))}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return e}e.isObject=n,e.combineConfig=o,e.combineDefaults=function e(r,o,i){var a,s;r[o]||(r[o]={}),r=r[o];try{for(var l=t(Object.keys(i)),c=l.next();!c.done;c=l.next()){var u=c.value;n(r[u])&&n(i[u])?e(r,u,i[u]):null==r[u]&&null!=i[u]&&(r[u]=i[u])}}catch(e){a={error:e}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}return r},e.combineWithMathJax=function(t){return o(e.MathJax,t)},void 0===commonjsGlobal.MathJax&&(commonjsGlobal.MathJax={}),commonjsGlobal.MathJax.version||(commonjsGlobal.MathJax={version:r.VERSION,_:{},config:commonjsGlobal.MathJax}),e.MathJax=commonjsGlobal.MathJax}(global$1),getDefaultExportFromCjs$1(global$1);var assistiveMml={},MathItem={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0,e.protoItem=function(e,t,r,n,o,i,a){return void 0===a&&(a=null),{open:e,math:t,close:r,n:n,start:{n:o},end:{n:i},display:a}};var t=function(){function t(t,r,n,o,i){void 0===n&&(n=!0),void 0===o&&(o={i:0,n:0,delim:""}),void 0===i&&(i={i:0,n:0,delim:""}),this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=e.STATE.UNPROCESSED,this.math=t,this.inputJax=r,this.display=n,this.start=o,this.end=i,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}return Object.defineProperty(t.prototype,"isEscaped",{get:function(){return null===this.display},enumerable:!1,configurable:!0}),t.prototype.render=function(e){e.renderActions.renderMath(this,e)},t.prototype.rerender=function(t,r){void 0===r&&(r=e.STATE.RERENDER),this.state()>=r&&this.state(r-1),t.renderActions.renderMath(this,t,r)},t.prototype.convert=function(t,r){void 0===r&&(r=e.STATE.LAST),t.renderActions.renderConvert(this,t,r)},t.prototype.compile=function(t){this.state()<e.STATE.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(e.STATE.COMPILED))},t.prototype.typeset=function(t){this.state()<e.STATE.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?"escaped":"typeset"](this,t),this.state(e.STATE.TYPESET))},t.prototype.updateDocument=function(e){},t.prototype.removeFromDocument=function(e){},t.prototype.setMetrics=function(e,t,r,n,o){this.metrics={em:e,ex:t,containerWidth:r,lineWidth:n,scale:o}},t.prototype.state=function(t,r){return void 0===t&&(t=null),void 0===r&&(r=!1),null!=t&&(t<e.STATE.INSERTED&&this._state>=e.STATE.INSERTED&&this.removeFromDocument(r),t<e.STATE.TYPESET&&this._state>=e.STATE.TYPESET&&(this.outputData={}),t<e.STATE.COMPILED&&this._state>=e.STATE.COMPILED&&(this.inputData={}),this._state=t),this._state},t.prototype.reset=function(t){void 0===t&&(t=!1),this.state(e.STATE.UNPROCESSED,t)},t}();e.AbstractMathItem=t,e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4},e.newState=function(t,r){if(t in e.STATE)throw Error("State "+t+" already exists");e.STATE[t]=r}}(MathItem),getDefaultExportFromCjs$1(MathItem);var SerializedMmlVisitor={},MmlVisitor$3={},MmlFactory$1={},NodeFactory$2={},Factory={},__values$Y=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$_=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$y=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(Factory,"__esModule",{value:!0}),Factory.AbstractFactory=void 0;var AbstractFactory=function(){function e(e){var t,r;void 0===e&&(e=null),this.defaultKind="unknown",this.nodeMap=new Map,this.node={},null===e&&(e=this.constructor.defaultNodes);try{for(var n=__values$Y(Object.keys(e)),o=n.next();!o.done;o=n.next()){var i=o.value;this.setNodeClass(i,e[i])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}return e.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return(this.node[e]||this.node[this.defaultKind]).apply(void 0,__spreadArray$y([],__read$_(t),!1))},e.prototype.setNodeClass=function(e,t){this.nodeMap.set(e,t);var r=this,n=this.nodeMap.get(e);this.node[e]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,__spreadArray$y([void 0,r],__read$_(e),!1)))}},e.prototype.getNodeClass=function(e){return this.nodeMap.get(e)},e.prototype.deleteNodeClass=function(e){this.nodeMap.delete(e),delete this.node[e]},e.prototype.nodeIsKind=function(e,t){return e instanceof this.getNodeClass(t)},e.prototype.getKinds=function(){return Array.from(this.nodeMap.keys())},e.defaultNodes={},e}();Factory.AbstractFactory=AbstractFactory;var __extends$2h=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(NodeFactory$2,"__esModule",{value:!0}),NodeFactory$2.AbstractNodeFactory=void 0;var Factory_js_1$2=Factory,AbstractNodeFactory=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2h(t,e),t.prototype.create=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=[]),this.node[e](t,r)},t}(Factory_js_1$2.AbstractFactory);NodeFactory$2.AbstractNodeFactory=AbstractNodeFactory;var MML={},MmlNode={},Attributes={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Attributes=e.INHERIT=void 0,e.INHERIT="_inherit_";var r=function(){function r(e,t){this.global=t,this.defaults=Object.create(t),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,e)}return r.prototype.set=function(e,t){this.attributes[e]=t},r.prototype.setList=function(e){Object.assign(this.attributes,e)},r.prototype.get=function(t){var r=this.attributes[t];return r===e.INHERIT&&(r=this.global[t]),r},r.prototype.getExplicit=function(e){if(this.attributes.hasOwnProperty(e))return this.attributes[e]},r.prototype.getList=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i={};try{for(var a=t(n),s=a.next();!s.done;s=a.next()){var l=s.value;i[l]=this.get(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},r.prototype.setInherited=function(e,t){this.inherited[e]=t},r.prototype.getInherited=function(e){return this.inherited[e]},r.prototype.getDefault=function(e){return this.defaults[e]},r.prototype.isSet=function(e){return this.attributes.hasOwnProperty(e)||this.inherited.hasOwnProperty(e)},r.prototype.hasDefault=function(e){return e in this.defaults},r.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},r.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},r.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},r.prototype.getGlobalNames=function(){return Object.keys(this.global)},r.prototype.getAllAttributes=function(){return this.attributes},r.prototype.getAllInherited=function(){return this.inherited},r.prototype.getAllDefaults=function(){return this.defaults},r.prototype.getAllGlobals=function(){return this.global},r}();e.Attributes=r}(Attributes),getDefaultExportFromCjs$1(Attributes);var Node={},__extends$2g=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$J=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$J=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$J.apply(this,arguments)},__values$X=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Node,"__esModule",{value:!0}),Node.AbstractEmptyNode=Node.AbstractNode=void 0;var AbstractNode=function(){function e(e,t,r){var n,o;void 0===t&&(t={}),void 0===r&&(r=[]),this.factory=e,this.parent=null,this.properties={},this.childNodes=[];try{for(var i=__values$X(Object.keys(t)),a=i.next();!a.done;a=i.next()){var s=a.value;this.setProperty(s,t[s])}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}r.length&&this.setChildren(r)}return Object.defineProperty(e.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(e,t){this.properties[e]=t},e.prototype.getProperty=function(e){return this.properties[e]},e.prototype.getPropertyNames=function(){return Object.keys(this.properties)},e.prototype.getAllProperties=function(){return this.properties},e.prototype.removeProperty=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=__values$X(r),i=o.next();!i.done;i=o.next()){var a=i.value;delete this.properties[a]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype.isKind=function(e){return this.factory.nodeIsKind(this,e)},e.prototype.setChildren=function(e){var t,r;this.childNodes=[];try{for(var n=__values$X(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.appendChild(i)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.appendChild=function(e){return this.childNodes.push(e),e.parent=this,e},e.prototype.replaceChild=function(e,t){var r=this.childIndex(t);return null!==r&&(this.childNodes[r]=e,e.parent=this,t.parent=null),e},e.prototype.removeChild=function(e){var t=this.childIndex(e);return null!==t&&(this.childNodes.splice(t,1),e.parent=null),e},e.prototype.childIndex=function(e){var t=this.childNodes.indexOf(e);return-1===t?null:t},e.prototype.copy=function(){var e,t,r=this.factory.create(this.kind);r.properties=__assign$J({},this.properties);try{for(var n=__values$X(this.childNodes||[]),o=n.next();!o.done;o=n.next()){var i=o.value;i&&r.appendChild(i.copy())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},e.prototype.findNodes=function(e){var t=[];return this.walkTree((function(r){r.isKind(e)&&t.push(r)})),t},e.prototype.walkTree=function(e,t){var r,n;e(this,t);try{for(var o=__values$X(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;a&&a.walkTree(e,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t},e.prototype.toString=function(){return this.kind+"("+this.childNodes.join(",")+")"},e}();Node.AbstractNode=AbstractNode;var AbstractEmptyNode=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2g(t,e),t.prototype.setChildren=function(e){},t.prototype.appendChild=function(e){return e},t.prototype.replaceChild=function(e,t){return t},t.prototype.childIndex=function(e){return null},t.prototype.walkTree=function(e,t){return e(this,t),t},t.prototype.toString=function(){return this.kind},t}(AbstractNode);Node.AbstractEmptyNode=AbstractEmptyNode,function(e){var t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),r=commonjsGlobal&&commonjsGlobal.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},n=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var i=Attributes,a=Node;e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},e.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var s=["","thinmathspace","mediummathspace","thickmathspace"],l=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];e.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var c=function(a){function c(e,t,r){void 0===t&&(t={}),void 0===r&&(r=[]);var n=a.call(this,e)||this;return n.prevClass=null,n.prevLevel=null,n.texclass=null,n.arity<0&&(n.childNodes=[e.create("inferredMrow")],n.childNodes[0].parent=n),n.setChildren(r),n.attributes=new i.Attributes(e.getNodeClass(n.kind).defaults,e.getNodeClass("math").defaults),n.attributes.setList(t),n}return t(c,a),c.prototype.copy=function(e){var t,o,i,a;void 0===e&&(e=!1);var s=this.factory.create(this.kind);if(s.properties=r({},this.properties),this.attributes){var l=this.attributes.getAllAttributes();try{for(var c=n(Object.keys(l)),u=c.next();!u.done;u=c.next()){var d=u.value;("id"!==d||e)&&s.attributes.set(d,l[d])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(t)throw t.error}}}if(this.childNodes&&this.childNodes.length){var p=this.childNodes;1===p.length&&p[0].isInferred&&(p=p[0].childNodes);try{for(var m=n(p),h=m.next();!h.done;h=m.next()){var f=h.value;f?s.appendChild(f.copy()):s.childNodes.push(null)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}}return s},Object.defineProperty(c.prototype,"texClass",{get:function(){return this.texclass},set:function(e){this.texclass=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"Parent",{get:function(){for(var e=this.parent;e&&e.notParent;)e=e.Parent;return e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),c.prototype.setChildren=function(e){return this.arity<0?this.childNodes[0].setChildren(e):a.prototype.setChildren.call(this,e)},c.prototype.appendChild=function(e){var t,r,o=this;if(this.arity<0)return this.childNodes[0].appendChild(e),e;if(e.isInferred){if(this.arity===1/0)return e.childNodes.forEach((function(e){return a.prototype.appendChild.call(o,e)})),e;var i=e;(e=this.factory.create("mrow")).setChildren(i.childNodes),e.attributes=i.attributes;try{for(var s=n(i.getPropertyNames()),l=s.next();!l.done;l=s.next()){var c=l.value;e.setProperty(c,i.getProperty(c))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}return a.prototype.appendChild.call(this,e)},c.prototype.replaceChild=function(e,t){return this.arity<0?(this.childNodes[0].replaceChild(e,t),e):a.prototype.replaceChild.call(this,e,t)},c.prototype.core=function(){return this},c.prototype.coreMO=function(){return this},c.prototype.coreIndex=function(){return 0},c.prototype.childPosition=function(){for(var e,t,r=this,o=r.parent;o&&o.notParent;)r=o,o=o.parent;if(o){var i=0;try{for(var a=n(o.childNodes),s=a.next();!s.done;s=a.next()){if(s.value===r)return i;i++}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}return null},c.prototype.setTeXclass=function(e){return this.getPrevClass(e),null!=this.texClass?this:e},c.prototype.updateTeXclass=function(e){e&&(this.prevClass=e.prevClass,this.prevLevel=e.prevLevel,e.prevClass=e.prevLevel=null,this.texClass=e.texClass)},c.prototype.getPrevClass=function(e){e&&(this.prevClass=e.texClass,this.prevLevel=e.attributes.get("scriptlevel"))},c.prototype.texSpacing=function(){var t=null!=this.prevClass?this.prevClass:e.TEXCLASS.NONE,r=this.texClass||e.TEXCLASS.ORD;if(t===e.TEXCLASS.NONE||r===e.TEXCLASS.NONE)return"";t===e.TEXCLASS.VCENTER&&(t=e.TEXCLASS.ORD),r===e.TEXCLASS.VCENTER&&(r=e.TEXCLASS.ORD);var n=l[t][r];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&n>=0?"":s[Math.abs(n)]},c.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},c.prototype.setInheritedAttributes=function(e,t,r,i){var a,s;void 0===e&&(e={}),void 0===t&&(t=!1),void 0===r&&(r=0),void 0===i&&(i=!1);var l=this.attributes.getAllDefaults();try{for(var u=n(Object.keys(e)),d=u.next();!d.done;d=u.next()){var p=d.value;if(l.hasOwnProperty(p)||c.alwaysInherit.hasOwnProperty(p)){var m=o(e[p],2),h=m[0],f=m[1];((c.noInherit[h]||{})[this.kind]||{})[p]||this.attributes.setInherited(p,f)}}}catch(e){a={error:e}}finally{try{d&&!d.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}void 0===this.attributes.getExplicit("displaystyle")&&this.attributes.setInherited("displaystyle",t),void 0===this.attributes.getExplicit("scriptlevel")&&this.attributes.setInherited("scriptlevel",r),i&&this.setProperty("texprimestyle",i);var _=this.arity;if(_>=0&&_!==1/0&&(1===_&&0===this.childNodes.length||1!==_&&this.childNodes.length!==_))if(_<this.childNodes.length)this.childNodes=this.childNodes.slice(0,_);else for(;this.childNodes.length<_;)this.appendChild(this.factory.create("mrow"));this.setChildInheritedAttributes(e,t,r,i)},c.prototype.setChildInheritedAttributes=function(e,t,r,o){var i,a;try{for(var s=n(this.childNodes),l=s.next();!l.done;l=s.next()){l.value.setInheritedAttributes(e,t,r,o)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},c.prototype.addInheritedAttributes=function(e,t){var o,i,a=r({},e);try{for(var s=n(Object.keys(t)),l=s.next();!l.done;l=s.next()){var c=l.value;"displaystyle"!==c&&"scriptlevel"!==c&&"style"!==c&&(a[c]=[this.kind,t[c]])}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a},c.prototype.inheritAttributesFrom=function(e){var t=e.attributes,r=t.get("displaystyle"),n=t.get("scriptlevel"),o=t.isSet("mathsize")?{mathsize:["math",t.get("mathsize")]}:{},i=e.getProperty("texprimestyle")||!1;this.setInheritedAttributes(o,r,n,i)},c.prototype.verifyTree=function(e){if(void 0===e&&(e=null),null!==e){this.verifyAttributes(e);var t=this.arity;e.checkArity&&t>=0&&t!==1/0&&(1===t&&0===this.childNodes.length||1!==t&&this.childNodes.length!==t)&&this.mError('Wrong number of children for "'+this.kind+'" node',e,!0),this.verifyChildren(e)}},c.prototype.verifyAttributes=function(e){var t,r;if(e.checkAttributes){var o=this.attributes,i=[];try{for(var a=n(o.getExplicitNames()),s=a.next();!s.done;s=a.next()){var l=s.value;"data-"===l.substr(0,5)||void 0!==o.getDefault(l)||l.match(/^(?:class|style|id|(?:xlink:)?href)$/)||i.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}i.length&&this.mError("Unknown attributes for "+this.kind+" node: "+i.join(", "),e)}},c.prototype.verifyChildren=function(e){var t,r;try{for(var o=n(this.childNodes),i=o.next();!i.done;i=o.next()){i.value.verifyTree(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},c.prototype.mError=function(e,t,r){if(void 0===r&&(r=!1),this.parent&&this.parent.isKind("merror"))return null;var n=this.factory.create("merror");if(n.attributes.set("data-mjx-message",e),t.fullErrors||r){var o=this.factory.create("mtext"),i=this.factory.create("text");i.setText(t.fullErrors?e:this.kind),o.appendChild(i),n.appendChild(o),this.parent.replaceChild(n,this)}else this.parent.replaceChild(n,this),n.appendChild(this);return n},c.defaults={mathbackground:i.INHERIT,mathcolor:i.INHERIT,mathsize:i.INHERIT,dir:i.INHERIT},c.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},c.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},c.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},c}(a.AbstractNode);e.AbstractMmlNode=c;var u=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t(o,e),Object.defineProperty(o.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),o.prototype.getText=function(){var e,t,r="";try{for(var o=n(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;a instanceof h&&(r+=a.getText())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},o.prototype.setChildInheritedAttributes=function(e,t,r,o){var i,a;try{for(var s=n(this.childNodes),l=s.next();!l.done;l=s.next()){var u=l.value;u instanceof c&&u.setInheritedAttributes(e,t,r,o)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},o.prototype.walkTree=function(e,t){var r,o;e(this,t);try{for(var i=n(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s instanceof c&&s.walkTree(e,t)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return t},o.defaults=r(r({},c.defaults),{mathvariant:"normal",mathsize:i.INHERIT}),o}(c);e.AbstractMmlTokenNode=u;var d=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),r.prototype.core=function(){return this.childNodes[0]},r.prototype.coreMO=function(){return this.childNodes[0].coreMO()},r.prototype.setTeXclass=function(e){return e=this.childNodes[0].setTeXclass(e),this.updateTeXclass(this.childNodes[0]),e},r.defaults=c.defaults,r}(c);e.AbstractMmlLayoutNode=d;var p=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return t(o,r),Object.defineProperty(o.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),o.prototype.core=function(){return this.childNodes[0]},o.prototype.coreMO=function(){return this.childNodes[0].coreMO()},o.prototype.setTeXclass=function(t){var r,o;this.getPrevClass(t),this.texClass=e.TEXCLASS.ORD;var i=this.childNodes[0];i?this.isEmbellished||i.isKind("mi")?(t=i.setTeXclass(t),this.updateTeXclass(this.core())):(i.setTeXclass(null),t=this):t=this;try{for(var a=n(this.childNodes.slice(1)),s=a.next();!s.done;s=a.next()){var l=s.value;l&&l.setTeXclass(null)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return t},o.defaults=c.defaults,o}(c);e.AbstractMmlBaseNode=p;var m=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return t(n,r),Object.defineProperty(n.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),n.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(n.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),n.prototype.core=function(){return this},n.prototype.coreMO=function(){return this},n.prototype.coreIndex=function(){return 0},n.prototype.childPosition=function(){return 0},n.prototype.setTeXclass=function(e){return e},n.prototype.texSpacing=function(){return""},n.prototype.setInheritedAttributes=function(e,t,r,n){},n.prototype.inheritAttributesFrom=function(e){},n.prototype.verifyTree=function(e){},n.prototype.mError=function(e,t,r){return null},n}(a.AbstractEmptyNode);e.AbstractMmlEmptyNode=m;var h=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.text="",t}return t(r,e),Object.defineProperty(r.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),r.prototype.getText=function(){return this.text},r.prototype.setText=function(e){return this.text=e,this},r.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},r.prototype.toString=function(){return this.text},r}(m);e.TextNode=h;var f=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.xml=null,t.adaptor=null,t}return t(r,e),Object.defineProperty(r.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),r.prototype.getXML=function(){return this.xml},r.prototype.setXML=function(e,t){return void 0===t&&(t=null),this.xml=e,this.adaptor=t,this},r.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},r.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},r.prototype.toString=function(){return"XML data"},r}(m);e.XMLNode=f}(MmlNode),getDefaultExportFromCjs$1(MmlNode);var math$2={},__extends$2f=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$I=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$I.apply(this,arguments)};Object.defineProperty(math$2,"__esModule",{value:!0}),math$2.MmlMath=void 0;var MmlNode_js_1$P=MmlNode,MmlMath=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"math"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(t,r,n,o){"display"===this.attributes.get("mode")&&this.attributes.setInherited("display","block"),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),r=!!this.attributes.get("displaystyle")||!this.attributes.get("displaystyle")&&"block"===this.attributes.get("display"),this.attributes.setInherited("displaystyle",r),n=this.attributes.get("scriptlevel")||this.constructor.defaults.scriptlevel,e.prototype.setChildInheritedAttributes.call(this,t,r,n,o)},t.defaults=__assign$I(__assign$I({},MmlNode_js_1$P.AbstractMmlLayoutNode.defaults),{mathvariant:"normal",mathsize:"normal",mathcolor:"",mathbackground:"transparent",dir:"ltr",scriptlevel:0,displaystyle:!1,display:"inline",maxwidth:"",overflow:"linebreak",altimg:"","altimg-width":"","altimg-height":"","altimg-valign":"",alttext:"",cdgroup:"",scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:"8px",infixlinebreakstyle:"before",lineleading:"1ex",linebreakmultchar:"",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),t}(MmlNode_js_1$P.AbstractMmlLayoutNode);math$2.MmlMath=MmlMath;var mi$2={},__extends$2e=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$H=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$H=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$H.apply(this,arguments)};Object.defineProperty(mi$2,"__esModule",{value:!0}),mi$2.MmlMi=void 0;var MmlNode_js_1$O=MmlNode,MmlMi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$O.TEXCLASS.ORD,t}return __extends$2e(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mi"},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(r,n,o,i){void 0===r&&(r={}),void 0===n&&(n=!1),void 0===o&&(o=0),void 0===i&&(i=!1),e.prototype.setInheritedAttributes.call(this,r,n,o,i),this.getText().match(t.singleCharacter)&&!r.mathvariant&&this.attributes.setInherited("mathvariant","italic")},t.prototype.setTeXclass=function(e){this.getPrevClass(e);var r=this.getText();return r.length>1&&r.match(t.operatorName)&&"normal"===this.attributes.get("mathvariant")&&void 0===this.getProperty("autoOP")&&void 0===this.getProperty("texClass")&&(this.texClass=MmlNode_js_1$O.TEXCLASS.OP,this.setProperty("autoOP",!0)),this},t.defaults=__assign$H({},MmlNode_js_1$O.AbstractMmlTokenNode.defaults),t.operatorName=/^[a-z][a-z0-9]*$/i,t.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,t}(MmlNode_js_1$O.AbstractMmlTokenNode);mi$2.MmlMi=MmlMi;var mn$2={},__extends$2d=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$G=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$G=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$G.apply(this,arguments)};Object.defineProperty(mn$2,"__esModule",{value:!0}),mn$2.MmlMn=void 0;var MmlNode_js_1$N=MmlNode,MmlMn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$N.TEXCLASS.ORD,t}return __extends$2d(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mn"},enumerable:!1,configurable:!0}),t.defaults=__assign$G({},MmlNode_js_1$N.AbstractMmlTokenNode.defaults),t}(MmlNode_js_1$N.AbstractMmlTokenNode);mn$2.MmlMn=MmlMn;var mo$2={},OperatorDictionary={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var r=MmlNode;function n(e,t,n,o){return void 0===n&&(n=r.TEXCLASS.BIN),void 0===o&&(o=null),[e,t,n,o]}e.OPDEF=n,e.MO={ORD:n(0,0,r.TEXCLASS.ORD),ORD11:n(1,1,r.TEXCLASS.ORD),ORD21:n(2,1,r.TEXCLASS.ORD),ORD02:n(0,2,r.TEXCLASS.ORD),ORD55:n(5,5,r.TEXCLASS.ORD),NONE:n(0,0,r.TEXCLASS.NONE),OP:n(1,2,r.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:n(1,2,r.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:n(0,1,r.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:n(1,2,r.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:n(3,3,r.TEXCLASS.BIN),BIN4:n(4,4,r.TEXCLASS.BIN),BIN01:n(0,1,r.TEXCLASS.BIN),BIN5:n(5,5,r.TEXCLASS.BIN),TALLBIN:n(4,4,r.TEXCLASS.BIN,{stretchy:!0}),BINOP:n(4,4,r.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:n(5,5,r.TEXCLASS.REL),REL1:n(1,1,r.TEXCLASS.REL,{stretchy:!0}),REL4:n(4,4,r.TEXCLASS.REL),RELSTRETCH:n(5,5,r.TEXCLASS.REL,{stretchy:!0}),RELACCENT:n(5,5,r.TEXCLASS.REL,{accent:!0}),WIDEREL:n(5,5,r.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:n(0,0,r.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:n(0,0,r.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:n(0,0,r.TEXCLASS.INNER),PUNCT:n(0,3,r.TEXCLASS.PUNCT),ACCENT:n(0,0,r.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:n(0,0,r.TEXCLASS.ORD,{accent:!0,stretchy:!0})},e.RANGES=[[32,127,r.TEXCLASS.REL,"mo"],[160,191,r.TEXCLASS.ORD,"mo"],[192,591,r.TEXCLASS.ORD,"mi"],[688,879,r.TEXCLASS.ORD,"mo"],[880,6688,r.TEXCLASS.ORD,"mi"],[6832,6911,r.TEXCLASS.ORD,"mo"],[6912,7615,r.TEXCLASS.ORD,"mi"],[7616,7679,r.TEXCLASS.ORD,"mo"],[7680,8191,r.TEXCLASS.ORD,"mi"],[8192,8303,r.TEXCLASS.ORD,"mo"],[8304,8351,r.TEXCLASS.ORD,"mo"],[8448,8527,r.TEXCLASS.ORD,"mi"],[8528,8591,r.TEXCLASS.ORD,"mn"],[8592,8703,r.TEXCLASS.REL,"mo"],[8704,8959,r.TEXCLASS.BIN,"mo"],[8960,9215,r.TEXCLASS.ORD,"mo"],[9312,9471,r.TEXCLASS.ORD,"mn"],[9472,10223,r.TEXCLASS.ORD,"mo"],[10224,10239,r.TEXCLASS.REL,"mo"],[10240,10495,r.TEXCLASS.ORD,"mtext"],[10496,10623,r.TEXCLASS.REL,"mo"],[10624,10751,r.TEXCLASS.ORD,"mo"],[10752,11007,r.TEXCLASS.BIN,"mo"],[11008,11055,r.TEXCLASS.ORD,"mo"],[11056,11087,r.TEXCLASS.REL,"mo"],[11088,11263,r.TEXCLASS.ORD,"mo"],[11264,11744,r.TEXCLASS.ORD,"mi"],[11776,11903,r.TEXCLASS.ORD,"mo"],[11904,12255,r.TEXCLASS.ORD,"mi","normal"],[12272,12351,r.TEXCLASS.ORD,"mo"],[12352,42143,r.TEXCLASS.ORD,"mi","normal"],[42192,43055,r.TEXCLASS.ORD,"mi"],[43056,43071,r.TEXCLASS.ORD,"mn"],[43072,55295,r.TEXCLASS.ORD,"mi"],[63744,64255,r.TEXCLASS.ORD,"mi","normal"],[64256,65023,r.TEXCLASS.ORD,"mi"],[65024,65135,r.TEXCLASS.ORD,"mo"],[65136,65791,r.TEXCLASS.ORD,"mi"],[65792,65935,r.TEXCLASS.ORD,"mn"],[65936,74751,r.TEXCLASS.ORD,"mi","normal"],[74752,74879,r.TEXCLASS.ORD,"mn"],[74880,113823,r.TEXCLASS.ORD,"mi","normal"],[113824,119391,r.TEXCLASS.ORD,"mo"],[119648,119679,r.TEXCLASS.ORD,"mn"],[119808,120781,r.TEXCLASS.ORD,"mi"],[120782,120831,r.TEXCLASS.ORD,"mn"],[122624,129023,r.TEXCLASS.ORD,"mo"],[129024,129279,r.TEXCLASS.REL,"mo"],[129280,129535,r.TEXCLASS.ORD,"mo"],[131072,195103,r.TEXCLASS.ORD,"mi","normnal"]],e.getRange=function(r){var n,o,i=r.codePointAt(0);try{for(var a=t(e.RANGES),s=a.next();!s.done;s=a.next()){var l=s.value;if(i<=l[1]){if(i>=l[0])return l;break}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return null},e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,r.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":e.MO.ORD21,"±":e.MO.BIN01,"‖":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,r.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,r.TEXCLASS.OPEN,{fence:!0}],"ⅅ":e.MO.ORD21,"ⅆ":n(2,0,r.TEXCLASS.ORD),"∀":e.MO.ORD21,"∂":e.MO.ORD21,"∃":e.MO.ORD21,"∄":e.MO.ORD21,"∇":e.MO.ORD21,"∏":e.MO.OP,"∐":e.MO.OP,"∑":e.MO.OP,"−":e.MO.BIN01,"∓":e.MO.BIN01,"√":[1,1,r.TEXCLASS.ORD,{stretchy:!0}],"∛":e.MO.ORD11,"∜":e.MO.ORD11,"∠":e.MO.ORD,"∡":e.MO.ORD,"∢":e.MO.ORD,"∫":e.MO.INTEGRAL,"∬":e.MO.INTEGRAL,"∭":e.MO.INTEGRAL,"∮":e.MO.INTEGRAL,"∯":e.MO.INTEGRAL,"∰":e.MO.INTEGRAL,"∱":e.MO.INTEGRAL,"∲":e.MO.INTEGRAL,"∳":e.MO.INTEGRAL,"⋀":e.MO.OP,"⋁":e.MO.OP,"⋂":e.MO.OP,"⋃":e.MO.OP,"⌈":e.MO.OPEN,"⌊":e.MO.OPEN,"〈":e.MO.OPEN,"❲":e.MO.OPEN,"⟦":e.MO.OPEN,"⟨":e.MO.OPEN,"⟪":e.MO.OPEN,"⟬":e.MO.OPEN,"⟮":e.MO.OPEN,"⦀":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":e.MO.OPEN,"⦅":e.MO.OPEN,"⦇":e.MO.OPEN,"⦉":e.MO.OPEN,"⦋":e.MO.OPEN,"⦍":e.MO.OPEN,"⦏":e.MO.OPEN,"⦑":e.MO.OPEN,"⦓":e.MO.OPEN,"⦕":e.MO.OPEN,"⦗":e.MO.OPEN,"⧼":e.MO.OPEN,"⨀":e.MO.OP,"⨁":e.MO.OP,"⨂":e.MO.OP,"⨃":e.MO.OP,"⨄":e.MO.OP,"⨅":e.MO.OP,"⨆":e.MO.OP,"⨇":e.MO.OP,"⨈":e.MO.OP,"⨉":e.MO.OP,"⨊":e.MO.OP,"⨋":e.MO.INTEGRAL2,"⨌":e.MO.INTEGRAL,"⨍":e.MO.INTEGRAL2,"⨎":e.MO.INTEGRAL2,"⨏":e.MO.INTEGRAL2,"⨐":e.MO.OP,"⨑":e.MO.OP,"⨒":e.MO.OP,"⨓":e.MO.OP,"⨔":e.MO.OP,"⨕":e.MO.INTEGRAL2,"⨖":e.MO.INTEGRAL2,"⨗":e.MO.INTEGRAL2,"⨘":e.MO.INTEGRAL2,"⨙":e.MO.INTEGRAL2,"⨚":e.MO.INTEGRAL2,"⨛":e.MO.INTEGRAL2,"⨜":e.MO.INTEGRAL2,"⫼":e.MO.OP,"⫿":e.MO.OP},postfix:{"!!":n(1,0),"!":[1,0,r.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":n(0,0),"--":n(0,0),"..":n(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,r.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":e.MO.ACCENT,"ª":e.MO.ACCENT,"¯":e.MO.WIDEACCENT,"°":e.MO.ORD,"²":e.MO.ACCENT,"³":e.MO.ACCENT,"´":e.MO.ACCENT,"¸":e.MO.ACCENT,"¹":e.MO.ACCENT,"º":e.MO.ACCENT,"ˆ":e.MO.WIDEACCENT,"ˇ":e.MO.WIDEACCENT,"ˉ":e.MO.WIDEACCENT,"ˊ":e.MO.ACCENT,"ˋ":e.MO.ACCENT,"ˍ":e.MO.WIDEACCENT,"˘":e.MO.ACCENT,"˙":e.MO.ACCENT,"˚":e.MO.ACCENT,"˜":e.MO.WIDEACCENT,"˝":e.MO.ACCENT,"˷":e.MO.WIDEACCENT,"̂":e.MO.WIDEACCENT,"̑":e.MO.ACCENT,"϶":e.MO.REL,"‖":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,r.TEXCLASS.CLOSE,{fence:!0}],"‚":e.MO.ACCENT,"‛":e.MO.ACCENT,"”":[0,0,r.TEXCLASS.CLOSE,{fence:!0}],"„":e.MO.ACCENT,"‟":e.MO.ACCENT,"′":e.MO.ORD,"″":e.MO.ACCENT,"‴":e.MO.ACCENT,"‵":e.MO.ACCENT,"‶":e.MO.ACCENT,"‷":e.MO.ACCENT,"‾":e.MO.WIDEACCENT,"⁗":e.MO.ACCENT,"⃛":e.MO.ACCENT,"⃜":e.MO.ACCENT,"⌉":e.MO.CLOSE,"⌋":e.MO.CLOSE,"〉":e.MO.CLOSE,"⎴":e.MO.WIDEACCENT,"⎵":e.MO.WIDEACCENT,"⏜":e.MO.WIDEACCENT,"⏝":e.MO.WIDEACCENT,"⏞":e.MO.WIDEACCENT,"⏟":e.MO.WIDEACCENT,"⏠":e.MO.WIDEACCENT,"⏡":e.MO.WIDEACCENT,"■":e.MO.BIN3,"□":e.MO.BIN3,"▪":e.MO.BIN3,"▫":e.MO.BIN3,"▭":e.MO.BIN3,"▮":e.MO.BIN3,"▯":e.MO.BIN3,"▰":e.MO.BIN3,"▱":e.MO.BIN3,"▲":e.MO.BIN4,"▴":e.MO.BIN4,"▶":e.MO.BIN4,"▷":e.MO.BIN4,"▸":e.MO.BIN4,"▼":e.MO.BIN4,"▾":e.MO.BIN4,"◀":e.MO.BIN4,"◁":e.MO.BIN4,"◂":e.MO.BIN4,"◄":e.MO.BIN4,"◅":e.MO.BIN4,"◆":e.MO.BIN4,"◇":e.MO.BIN4,"◈":e.MO.BIN4,"◉":e.MO.BIN4,"◌":e.MO.BIN4,"◍":e.MO.BIN4,"◎":e.MO.BIN4,"●":e.MO.BIN4,"◖":e.MO.BIN4,"◗":e.MO.BIN4,"◦":e.MO.BIN4,"♭":e.MO.ORD02,"♮":e.MO.ORD02,"♯":e.MO.ORD02,"❳":e.MO.CLOSE,"⟧":e.MO.CLOSE,"⟩":e.MO.CLOSE,"⟫":e.MO.CLOSE,"⟭":e.MO.CLOSE,"⟯":e.MO.CLOSE,"⦀":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":e.MO.CLOSE,"⦆":e.MO.CLOSE,"⦈":e.MO.CLOSE,"⦊":e.MO.CLOSE,"⦌":e.MO.CLOSE,"⦎":e.MO.CLOSE,"⦐":e.MO.CLOSE,"⦒":e.MO.CLOSE,"⦔":e.MO.CLOSE,"⦖":e.MO.CLOSE,"⦘":e.MO.CLOSE,"⧽":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,r.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":n(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,r.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,r.TEXCLASS.PUNCT,{separator:!0}],"/":e.MO.ORD11,"//":n(1,1),"/=":e.MO.BIN4,":":[1,2,r.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,r.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":n(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,r.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,r.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,r.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,r.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":e.MO.BIN4,"·":e.MO.BIN4,"×":e.MO.BIN4,"÷":e.MO.BIN4,"ʹ":e.MO.ORD,"̀":e.MO.ACCENT,"́":e.MO.ACCENT,"̃":e.MO.WIDEACCENT,"̄":e.MO.ACCENT,"̆":e.MO.ACCENT,"̇":e.MO.ACCENT,"̈":e.MO.ACCENT,"̌":e.MO.ACCENT,"̲":e.MO.WIDEACCENT,"̸":e.MO.REL4,"―":[0,0,r.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,r.TEXCLASS.ORD,{stretchy:!0}],"†":e.MO.BIN3,"‡":e.MO.BIN3,"•":e.MO.BIN4,"…":e.MO.INNER,"⁃":e.MO.BIN4,"⁄":e.MO.TALLBIN,"":e.MO.NONE,"":e.MO.NONE,"":[0,0,r.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"":e.MO.NONE,"⃗":e.MO.ACCENT,"ℑ":e.MO.ORD,"ℓ":e.MO.ORD,"℘":e.MO.ORD,"ℜ":e.MO.ORD,"←":e.MO.WIDEREL,"↑":e.MO.RELSTRETCH,"→":e.MO.WIDEREL,"↓":e.MO.RELSTRETCH,"↔":e.MO.WIDEREL,"↕":e.MO.RELSTRETCH,"↖":e.MO.RELSTRETCH,"↗":e.MO.RELSTRETCH,"↘":e.MO.RELSTRETCH,"↙":e.MO.RELSTRETCH,"↚":e.MO.RELACCENT,"↛":e.MO.RELACCENT,"↜":e.MO.WIDEREL,"↝":e.MO.WIDEREL,"↞":e.MO.WIDEREL,"↟":e.MO.WIDEREL,"↠":e.MO.WIDEREL,"↡":e.MO.RELSTRETCH,"↢":e.MO.WIDEREL,"↣":e.MO.WIDEREL,"↤":e.MO.WIDEREL,"↥":e.MO.RELSTRETCH,"↦":e.MO.WIDEREL,"↧":e.MO.RELSTRETCH,"↨":e.MO.RELSTRETCH,"↩":e.MO.WIDEREL,"↪":e.MO.WIDEREL,"↫":e.MO.WIDEREL,"↬":e.MO.WIDEREL,"↭":e.MO.WIDEREL,"↮":e.MO.RELACCENT,"↯":e.MO.RELSTRETCH,"↰":e.MO.RELSTRETCH,"↱":e.MO.RELSTRETCH,"↲":e.MO.RELSTRETCH,"↳":e.MO.RELSTRETCH,"↴":e.MO.RELSTRETCH,"↵":e.MO.RELSTRETCH,"↶":e.MO.RELACCENT,"↷":e.MO.RELACCENT,"↸":e.MO.REL,"↹":e.MO.WIDEREL,"↺":e.MO.REL,"↻":e.MO.REL,"↼":e.MO.WIDEREL,"↽":e.MO.WIDEREL,"↾":e.MO.RELSTRETCH,"↿":e.MO.RELSTRETCH,"⇀":e.MO.WIDEREL,"⇁":e.MO.WIDEREL,"⇂":e.MO.RELSTRETCH,"⇃":e.MO.RELSTRETCH,"⇄":e.MO.WIDEREL,"⇅":e.MO.RELSTRETCH,"⇆":e.MO.WIDEREL,"⇇":e.MO.WIDEREL,"⇈":e.MO.RELSTRETCH,"⇉":e.MO.WIDEREL,"⇊":e.MO.RELSTRETCH,"⇋":e.MO.WIDEREL,"⇌":e.MO.WIDEREL,"⇍":e.MO.RELACCENT,"⇎":e.MO.RELACCENT,"⇏":e.MO.RELACCENT,"⇐":e.MO.WIDEREL,"⇑":e.MO.RELSTRETCH,"⇒":e.MO.WIDEREL,"⇓":e.MO.RELSTRETCH,"⇔":e.MO.WIDEREL,"⇕":e.MO.RELSTRETCH,"⇖":e.MO.RELSTRETCH,"⇗":e.MO.RELSTRETCH,"⇘":e.MO.RELSTRETCH,"⇙":e.MO.RELSTRETCH,"⇚":e.MO.WIDEREL,"⇛":e.MO.WIDEREL,"⇜":e.MO.WIDEREL,"⇝":e.MO.WIDEREL,"⇞":e.MO.REL,"⇟":e.MO.REL,"⇠":e.MO.WIDEREL,"⇡":e.MO.RELSTRETCH,"⇢":e.MO.WIDEREL,"⇣":e.MO.RELSTRETCH,"⇤":e.MO.WIDEREL,"⇥":e.MO.WIDEREL,"⇦":e.MO.WIDEREL,"⇧":e.MO.RELSTRETCH,"⇨":e.MO.WIDEREL,"⇩":e.MO.RELSTRETCH,"⇪":e.MO.RELSTRETCH,"⇫":e.MO.RELSTRETCH,"⇬":e.MO.RELSTRETCH,"⇭":e.MO.RELSTRETCH,"⇮":e.MO.RELSTRETCH,"⇯":e.MO.RELSTRETCH,"⇰":e.MO.WIDEREL,"⇱":e.MO.REL,"⇲":e.MO.REL,"⇳":e.MO.RELSTRETCH,"⇴":e.MO.RELACCENT,"⇵":e.MO.RELSTRETCH,"⇶":e.MO.WIDEREL,"⇷":e.MO.RELACCENT,"⇸":e.MO.RELACCENT,"⇹":e.MO.RELACCENT,"⇺":e.MO.RELACCENT,"⇻":e.MO.RELACCENT,"⇼":e.MO.RELACCENT,"⇽":e.MO.WIDEREL,"⇾":e.MO.WIDEREL,"⇿":e.MO.WIDEREL,"∁":n(1,2,r.TEXCLASS.ORD),"∅":e.MO.ORD,"∆":e.MO.BIN3,"∈":e.MO.REL,"∉":e.MO.REL,"∊":e.MO.REL,"∋":e.MO.REL,"∌":e.MO.REL,"∍":e.MO.REL,"∎":e.MO.BIN3,"−":e.MO.BIN4,"∓":e.MO.BIN4,"∔":e.MO.BIN4,"∕":e.MO.TALLBIN,"∖":e.MO.BIN4,"∗":e.MO.BIN4,"∘":e.MO.BIN4,"∙":e.MO.BIN4,"∝":e.MO.REL,"∞":e.MO.ORD,"∟":e.MO.REL,"∣":e.MO.REL,"∤":e.MO.REL,"∥":e.MO.REL,"∦":e.MO.REL,"∧":e.MO.BIN4,"∨":e.MO.BIN4,"∩":e.MO.BIN4,"∪":e.MO.BIN4,"∴":e.MO.REL,"∵":e.MO.REL,"∶":e.MO.REL,"∷":e.MO.REL,"∸":e.MO.BIN4,"∹":e.MO.REL,"∺":e.MO.BIN4,"∻":e.MO.REL,"∼":e.MO.REL,"∽":e.MO.REL,"∽̱":e.MO.BIN3,"∾":e.MO.REL,"∿":e.MO.BIN3,"≀":e.MO.BIN4,"≁":e.MO.REL,"≂":e.MO.REL,"≂̸":e.MO.REL,"≃":e.MO.REL,"≄":e.MO.REL,"≅":e.MO.REL,"≆":e.MO.REL,"≇":e.MO.REL,"≈":e.MO.REL,"≉":e.MO.REL,"≊":e.MO.REL,"≋":e.MO.REL,"≌":e.MO.REL,"≍":e.MO.REL,"≎":e.MO.REL,"≎̸":e.MO.REL,"≏":e.MO.REL,"≏̸":e.MO.REL,"≐":e.MO.REL,"≑":e.MO.REL,"≒":e.MO.REL,"≓":e.MO.REL,"≔":e.MO.REL,"≕":e.MO.REL,"≖":e.MO.REL,"≗":e.MO.REL,"≘":e.MO.REL,"≙":e.MO.REL,"≚":e.MO.REL,"≛":e.MO.REL,"≜":e.MO.REL,"≝":e.MO.REL,"≞":e.MO.REL,"≟":e.MO.REL,"≠":e.MO.REL,"≡":e.MO.REL,"≢":e.MO.REL,"≣":e.MO.REL,"≤":e.MO.REL,"≥":e.MO.REL,"≦":e.MO.REL,"≦̸":e.MO.REL,"≧":e.MO.REL,"≨":e.MO.REL,"≩":e.MO.REL,"≪":e.MO.REL,"≪̸":e.MO.REL,"≫":e.MO.REL,"≫̸":e.MO.REL,"≬":e.MO.REL,"≭":e.MO.REL,"≮":e.MO.REL,"≯":e.MO.REL,"≰":e.MO.REL,"≱":e.MO.REL,"≲":e.MO.REL,"≳":e.MO.REL,"≴":e.MO.REL,"≵":e.MO.REL,"≶":e.MO.REL,"≷":e.MO.REL,"≸":e.MO.REL,"≹":e.MO.REL,"≺":e.MO.REL,"≻":e.MO.REL,"≼":e.MO.REL,"≽":e.MO.REL,"≾":e.MO.REL,"≿":e.MO.REL,"≿̸":e.MO.REL,"⊀":e.MO.REL,"⊁":e.MO.REL,"⊂":e.MO.REL,"⊂⃒":e.MO.REL,"⊃":e.MO.REL,"⊃⃒":e.MO.REL,"⊄":e.MO.REL,"⊅":e.MO.REL,"⊆":e.MO.REL,"⊇":e.MO.REL,"⊈":e.MO.REL,"⊉":e.MO.REL,"⊊":e.MO.REL,"⊋":e.MO.REL,"⊌":e.MO.BIN4,"⊍":e.MO.BIN4,"⊎":e.MO.BIN4,"⊏":e.MO.REL,"⊏̸":e.MO.REL,"⊐":e.MO.REL,"⊐̸":e.MO.REL,"⊑":e.MO.REL,"⊒":e.MO.REL,"⊓":e.MO.BIN4,"⊔":e.MO.BIN4,"⊕":e.MO.BIN4,"⊖":e.MO.BIN4,"⊗":e.MO.BIN4,"⊘":e.MO.BIN4,"⊙":e.MO.BIN4,"⊚":e.MO.BIN4,"⊛":e.MO.BIN4,"⊜":e.MO.BIN4,"⊝":e.MO.BIN4,"⊞":e.MO.BIN4,"⊟":e.MO.BIN4,"⊠":e.MO.BIN4,"⊡":e.MO.BIN4,"⊢":e.MO.REL,"⊣":e.MO.REL,"⊤":e.MO.ORD55,"⊥":e.MO.REL,"⊦":e.MO.REL,"⊧":e.MO.REL,"⊨":e.MO.REL,"⊩":e.MO.REL,"⊪":e.MO.REL,"⊫":e.MO.REL,"⊬":e.MO.REL,"⊭":e.MO.REL,"⊮":e.MO.REL,"⊯":e.MO.REL,"⊰":e.MO.REL,"⊱":e.MO.REL,"⊲":e.MO.REL,"⊳":e.MO.REL,"⊴":e.MO.REL,"⊵":e.MO.REL,"⊶":e.MO.REL,"⊷":e.MO.REL,"⊸":e.MO.REL,"⊹":e.MO.REL,"⊺":e.MO.BIN4,"⊻":e.MO.BIN4,"⊼":e.MO.BIN4,"⊽":e.MO.BIN4,"⊾":e.MO.BIN3,"⊿":e.MO.BIN3,"⋄":e.MO.BIN4,"⋅":e.MO.BIN4,"⋆":e.MO.BIN4,"⋇":e.MO.BIN4,"⋈":e.MO.REL,"⋉":e.MO.BIN4,"⋊":e.MO.BIN4,"⋋":e.MO.BIN4,"⋌":e.MO.BIN4,"⋍":e.MO.REL,"⋎":e.MO.BIN4,"⋏":e.MO.BIN4,"⋐":e.MO.REL,"⋑":e.MO.REL,"⋒":e.MO.BIN4,"⋓":e.MO.BIN4,"⋔":e.MO.REL,"⋕":e.MO.REL,"⋖":e.MO.REL,"⋗":e.MO.REL,"⋘":e.MO.REL,"⋙":e.MO.REL,"⋚":e.MO.REL,"⋛":e.MO.REL,"⋜":e.MO.REL,"⋝":e.MO.REL,"⋞":e.MO.REL,"⋟":e.MO.REL,"⋠":e.MO.REL,"⋡":e.MO.REL,"⋢":e.MO.REL,"⋣":e.MO.REL,"⋤":e.MO.REL,"⋥":e.MO.REL,"⋦":e.MO.REL,"⋧":e.MO.REL,"⋨":e.MO.REL,"⋩":e.MO.REL,"⋪":e.MO.REL,"⋫":e.MO.REL,"⋬":e.MO.REL,"⋭":e.MO.REL,"⋮":e.MO.ORD55,"⋯":e.MO.INNER,"⋰":e.MO.REL,"⋱":[5,5,r.TEXCLASS.INNER,null],"⋲":e.MO.REL,"⋳":e.MO.REL,"⋴":e.MO.REL,"⋵":e.MO.REL,"⋶":e.MO.REL,"⋷":e.MO.REL,"⋸":e.MO.REL,"⋹":e.MO.REL,"⋺":e.MO.REL,"⋻":e.MO.REL,"⋼":e.MO.REL,"⋽":e.MO.REL,"⋾":e.MO.REL,"⋿":e.MO.REL,"⌅":e.MO.BIN3,"⌆":e.MO.BIN3,"⌢":e.MO.REL4,"⌣":e.MO.REL4,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"⎪":e.MO.ORD,"⎯":[0,0,r.TEXCLASS.ORD,{stretchy:!0}],"⎰":e.MO.OPEN,"⎱":e.MO.CLOSE,"─":e.MO.ORD,"△":e.MO.BIN4,"▵":e.MO.BIN4,"▹":e.MO.BIN4,"▽":e.MO.BIN4,"▿":e.MO.BIN4,"◃":e.MO.BIN4,"◯":e.MO.BIN3,"♠":e.MO.ORD,"♡":e.MO.ORD,"♢":e.MO.ORD,"♣":e.MO.ORD,"❘":e.MO.REL,"⟰":e.MO.RELSTRETCH,"⟱":e.MO.RELSTRETCH,"⟵":e.MO.WIDEREL,"⟶":e.MO.WIDEREL,"⟷":e.MO.WIDEREL,"⟸":e.MO.WIDEREL,"⟹":e.MO.WIDEREL,"⟺":e.MO.WIDEREL,"⟻":e.MO.WIDEREL,"⟼":e.MO.WIDEREL,"⟽":e.MO.WIDEREL,"⟾":e.MO.WIDEREL,"⟿":e.MO.WIDEREL,"⤀":e.MO.RELACCENT,"⤁":e.MO.RELACCENT,"⤂":e.MO.RELACCENT,"⤃":e.MO.RELACCENT,"⤄":e.MO.RELACCENT,"⤅":e.MO.RELACCENT,"⤆":e.MO.RELACCENT,"⤇":e.MO.RELACCENT,"⤈":e.MO.REL,"⤉":e.MO.REL,"⤊":e.MO.RELSTRETCH,"⤋":e.MO.RELSTRETCH,"⤌":e.MO.WIDEREL,"⤍":e.MO.WIDEREL,"⤎":e.MO.WIDEREL,"⤏":e.MO.WIDEREL,"⤐":e.MO.WIDEREL,"⤑":e.MO.RELACCENT,"⤒":e.MO.RELSTRETCH,"⤓":e.MO.RELSTRETCH,"⤔":e.MO.RELACCENT,"⤕":e.MO.RELACCENT,"⤖":e.MO.RELACCENT,"⤗":e.MO.RELACCENT,"⤘":e.MO.RELACCENT,"⤙":e.MO.RELACCENT,"⤚":e.MO.RELACCENT,"⤛":e.MO.RELACCENT,"⤜":e.MO.RELACCENT,"⤝":e.MO.RELACCENT,"⤞":e.MO.RELACCENT,"⤟":e.MO.RELACCENT,"⤠":e.MO.RELACCENT,"⤡":e.MO.RELSTRETCH,"⤢":e.MO.RELSTRETCH,"⤣":e.MO.REL,"⤤":e.MO.REL,"⤥":e.MO.REL,"⤦":e.MO.REL,"⤧":e.MO.REL,"⤨":e.MO.REL,"⤩":e.MO.REL,"⤪":e.MO.REL,"⤫":e.MO.REL,"⤬":e.MO.REL,"⤭":e.MO.REL,"⤮":e.MO.REL,"⤯":e.MO.REL,"⤰":e.MO.REL,"⤱":e.MO.REL,"⤲":e.MO.REL,"⤳":e.MO.RELACCENT,"⤴":e.MO.REL,"⤵":e.MO.REL,"⤶":e.MO.REL,"⤷":e.MO.REL,"⤸":e.MO.REL,"⤹":e.MO.REL,"⤺":e.MO.RELACCENT,"⤻":e.MO.RELACCENT,"⤼":e.MO.RELACCENT,"⤽":e.MO.RELACCENT,"⤾":e.MO.REL,"⤿":e.MO.REL,"⥀":e.MO.REL,"⥁":e.MO.REL,"⥂":e.MO.RELACCENT,"⥃":e.MO.RELACCENT,"⥄":e.MO.RELACCENT,"⥅":e.MO.RELACCENT,"⥆":e.MO.RELACCENT,"⥇":e.MO.RELACCENT,"⥈":e.MO.RELACCENT,"⥉":e.MO.REL,"⥊":e.MO.RELACCENT,"⥋":e.MO.RELACCENT,"⥌":e.MO.REL,"⥍":e.MO.REL,"⥎":e.MO.WIDEREL,"⥏":e.MO.RELSTRETCH,"⥐":e.MO.WIDEREL,"⥑":e.MO.RELSTRETCH,"⥒":e.MO.WIDEREL,"⥓":e.MO.WIDEREL,"⥔":e.MO.RELSTRETCH,"⥕":e.MO.RELSTRETCH,"⥖":e.MO.RELSTRETCH,"⥗":e.MO.RELSTRETCH,"⥘":e.MO.RELSTRETCH,"⥙":e.MO.RELSTRETCH,"⥚":e.MO.WIDEREL,"⥛":e.MO.WIDEREL,"⥜":e.MO.RELSTRETCH,"⥝":e.MO.RELSTRETCH,"⥞":e.MO.WIDEREL,"⥟":e.MO.WIDEREL,"⥠":e.MO.RELSTRETCH,"⥡":e.MO.RELSTRETCH,"⥢":e.MO.RELACCENT,"⥣":e.MO.REL,"⥤":e.MO.RELACCENT,"⥥":e.MO.REL,"⥦":e.MO.RELACCENT,"⥧":e.MO.RELACCENT,"⥨":e.MO.RELACCENT,"⥩":e.MO.RELACCENT,"⥪":e.MO.RELACCENT,"⥫":e.MO.RELACCENT,"⥬":e.MO.RELACCENT,"⥭":e.MO.RELACCENT,"⥮":e.MO.RELSTRETCH,"⥯":e.MO.RELSTRETCH,"⥰":e.MO.RELACCENT,"⥱":e.MO.RELACCENT,"⥲":e.MO.RELACCENT,"⥳":e.MO.RELACCENT,"⥴":e.MO.RELACCENT,"⥵":e.MO.RELACCENT,"⥶":e.MO.RELACCENT,"⥷":e.MO.RELACCENT,"⥸":e.MO.RELACCENT,"⥹":e.MO.RELACCENT,"⥺":e.MO.RELACCENT,"⥻":e.MO.RELACCENT,"⥼":e.MO.RELACCENT,"⥽":e.MO.RELACCENT,"⥾":e.MO.REL,"⥿":e.MO.REL,"⦁":e.MO.BIN3,"⦂":e.MO.BIN3,"⦙":e.MO.BIN3,"⦚":e.MO.BIN3,"⦛":e.MO.BIN3,"⦜":e.MO.BIN3,"⦝":e.MO.BIN3,"⦞":e.MO.BIN3,"⦟":e.MO.BIN3,"⦠":e.MO.BIN3,"⦡":e.MO.BIN3,"⦢":e.MO.BIN3,"⦣":e.MO.BIN3,"⦤":e.MO.BIN3,"⦥":e.MO.BIN3,"⦦":e.MO.BIN3,"⦧":e.MO.BIN3,"⦨":e.MO.BIN3,"⦩":e.MO.BIN3,"⦪":e.MO.BIN3,"⦫":e.MO.BIN3,"⦬":e.MO.BIN3,"⦭":e.MO.BIN3,"⦮":e.MO.BIN3,"⦯":e.MO.BIN3,"⦰":e.MO.BIN3,"⦱":e.MO.BIN3,"⦲":e.MO.BIN3,"⦳":e.MO.BIN3,"⦴":e.MO.BIN3,"⦵":e.MO.BIN3,"⦶":e.MO.BIN4,"⦷":e.MO.BIN4,"⦸":e.MO.BIN4,"⦹":e.MO.BIN4,"⦺":e.MO.BIN4,"⦻":e.MO.BIN4,"⦼":e.MO.BIN4,"⦽":e.MO.BIN4,"⦾":e.MO.BIN4,"⦿":e.MO.BIN4,"⧀":e.MO.REL,"⧁":e.MO.REL,"⧂":e.MO.BIN3,"⧃":e.MO.BIN3,"⧄":e.MO.BIN4,"⧅":e.MO.BIN4,"⧆":e.MO.BIN4,"⧇":e.MO.BIN4,"⧈":e.MO.BIN4,"⧉":e.MO.BIN3,"⧊":e.MO.BIN3,"⧋":e.MO.BIN3,"⧌":e.MO.BIN3,"⧍":e.MO.BIN3,"⧎":e.MO.REL,"⧏":e.MO.REL,"⧏̸":e.MO.REL,"⧐":e.MO.REL,"⧐̸":e.MO.REL,"⧑":e.MO.REL,"⧒":e.MO.REL,"⧓":e.MO.REL,"⧔":e.MO.REL,"⧕":e.MO.REL,"⧖":e.MO.BIN4,"⧗":e.MO.BIN4,"⧘":e.MO.BIN3,"⧙":e.MO.BIN3,"⧛":e.MO.BIN3,"⧜":e.MO.BIN3,"⧝":e.MO.BIN3,"⧞":e.MO.REL,"⧟":e.MO.BIN3,"⧠":e.MO.BIN3,"⧡":e.MO.REL,"⧢":e.MO.BIN4,"⧣":e.MO.REL,"⧤":e.MO.REL,"⧥":e.MO.REL,"⧦":e.MO.REL,"⧧":e.MO.BIN3,"⧨":e.MO.BIN3,"⧩":e.MO.BIN3,"⧪":e.MO.BIN3,"⧫":e.MO.BIN3,"⧬":e.MO.BIN3,"⧭":e.MO.BIN3,"⧮":e.MO.BIN3,"⧯":e.MO.BIN3,"⧰":e.MO.BIN3,"⧱":e.MO.BIN3,"⧲":e.MO.BIN3,"⧳":e.MO.BIN3,"⧴":e.MO.REL,"⧵":e.MO.BIN4,"⧶":e.MO.BIN4,"⧷":e.MO.BIN4,"⧸":e.MO.BIN3,"⧹":e.MO.BIN3,"⧺":e.MO.BIN3,"⧻":e.MO.BIN3,"⧾":e.MO.BIN4,"⧿":e.MO.BIN4,"⨝":e.MO.BIN3,"⨞":e.MO.BIN3,"⨟":e.MO.BIN3,"⨠":e.MO.BIN3,"⨡":e.MO.BIN3,"⨢":e.MO.BIN4,"⨣":e.MO.BIN4,"⨤":e.MO.BIN4,"⨥":e.MO.BIN4,"⨦":e.MO.BIN4,"⨧":e.MO.BIN4,"⨨":e.MO.BIN4,"⨩":e.MO.BIN4,"⨪":e.MO.BIN4,"⨫":e.MO.BIN4,"⨬":e.MO.BIN4,"⨭":e.MO.BIN4,"⨮":e.MO.BIN4,"⨯":e.MO.BIN4,"⨰":e.MO.BIN4,"⨱":e.MO.BIN4,"⨲":e.MO.BIN4,"⨳":e.MO.BIN4,"⨴":e.MO.BIN4,"⨵":e.MO.BIN4,"⨶":e.MO.BIN4,"⨷":e.MO.BIN4,"⨸":e.MO.BIN4,"⨹":e.MO.BIN4,"⨺":e.MO.BIN4,"⨻":e.MO.BIN4,"⨼":e.MO.BIN4,"⨽":e.MO.BIN4,"⨾":e.MO.BIN4,"⨿":e.MO.BIN4,"⩀":e.MO.BIN4,"⩁":e.MO.BIN4,"⩂":e.MO.BIN4,"⩃":e.MO.BIN4,"⩄":e.MO.BIN4,"⩅":e.MO.BIN4,"⩆":e.MO.BIN4,"⩇":e.MO.BIN4,"⩈":e.MO.BIN4,"⩉":e.MO.BIN4,"⩊":e.MO.BIN4,"⩋":e.MO.BIN4,"⩌":e.MO.BIN4,"⩍":e.MO.BIN4,"⩎":e.MO.BIN4,"⩏":e.MO.BIN4,"⩐":e.MO.BIN4,"⩑":e.MO.BIN4,"⩒":e.MO.BIN4,"⩓":e.MO.BIN4,"⩔":e.MO.BIN4,"⩕":e.MO.BIN4,"⩖":e.MO.BIN4,"⩗":e.MO.BIN4,"⩘":e.MO.BIN4,"⩙":e.MO.REL,"⩚":e.MO.BIN4,"⩛":e.MO.BIN4,"⩜":e.MO.BIN4,"⩝":e.MO.BIN4,"⩞":e.MO.BIN4,"⩟":e.MO.BIN4,"⩠":e.MO.BIN4,"⩡":e.MO.BIN4,"⩢":e.MO.BIN4,"⩣":e.MO.BIN4,"⩤":e.MO.BIN4,"⩥":e.MO.BIN4,"⩦":e.MO.REL,"⩧":e.MO.REL,"⩨":e.MO.REL,"⩩":e.MO.REL,"⩪":e.MO.REL,"⩫":e.MO.REL,"⩬":e.MO.REL,"⩭":e.MO.REL,"⩮":e.MO.REL,"⩯":e.MO.REL,"⩰":e.MO.REL,"⩱":e.MO.BIN4,"⩲":e.MO.BIN4,"⩳":e.MO.REL,"⩴":e.MO.REL,"⩵":e.MO.REL,"⩶":e.MO.REL,"⩷":e.MO.REL,"⩸":e.MO.REL,"⩹":e.MO.REL,"⩺":e.MO.REL,"⩻":e.MO.REL,"⩼":e.MO.REL,"⩽":e.MO.REL,"⩽̸":e.MO.REL,"⩾":e.MO.REL,"⩾̸":e.MO.REL,"⩿":e.MO.REL,"⪀":e.MO.REL,"⪁":e.MO.REL,"⪂":e.MO.REL,"⪃":e.MO.REL,"⪄":e.MO.REL,"⪅":e.MO.REL,"⪆":e.MO.REL,"⪇":e.MO.REL,"⪈":e.MO.REL,"⪉":e.MO.REL,"⪊":e.MO.REL,"⪋":e.MO.REL,"⪌":e.MO.REL,"⪍":e.MO.REL,"⪎":e.MO.REL,"⪏":e.MO.REL,"⪐":e.MO.REL,"⪑":e.MO.REL,"⪒":e.MO.REL,"⪓":e.MO.REL,"⪔":e.MO.REL,"⪕":e.MO.REL,"⪖":e.MO.REL,"⪗":e.MO.REL,"⪘":e.MO.REL,"⪙":e.MO.REL,"⪚":e.MO.REL,"⪛":e.MO.REL,"⪜":e.MO.REL,"⪝":e.MO.REL,"⪞":e.MO.REL,"⪟":e.MO.REL,"⪠":e.MO.REL,"⪡":e.MO.REL,"⪡̸":e.MO.REL,"⪢":e.MO.REL,"⪢̸":e.MO.REL,"⪣":e.MO.REL,"⪤":e.MO.REL,"⪥":e.MO.REL,"⪦":e.MO.REL,"⪧":e.MO.REL,"⪨":e.MO.REL,"⪩":e.MO.REL,"⪪":e.MO.REL,"⪫":e.MO.REL,"⪬":e.MO.REL,"⪭":e.MO.REL,"⪮":e.MO.REL,"⪯":e.MO.REL,"⪯̸":e.MO.REL,"⪰":e.MO.REL,"⪰̸":e.MO.REL,"⪱":e.MO.REL,"⪲":e.MO.REL,"⪳":e.MO.REL,"⪴":e.MO.REL,"⪵":e.MO.REL,"⪶":e.MO.REL,"⪷":e.MO.REL,"⪸":e.MO.REL,"⪹":e.MO.REL,"⪺":e.MO.REL,"⪻":e.MO.REL,"⪼":e.MO.REL,"⪽":e.MO.REL,"⪾":e.MO.REL,"⪿":e.MO.REL,"⫀":e.MO.REL,"⫁":e.MO.REL,"⫂":e.MO.REL,"⫃":e.MO.REL,"⫄":e.MO.REL,"⫅":e.MO.REL,"⫆":e.MO.REL,"⫇":e.MO.REL,"⫈":e.MO.REL,"⫉":e.MO.REL,"⫊":e.MO.REL,"⫋":e.MO.REL,"⫌":e.MO.REL,"⫍":e.MO.REL,"⫎":e.MO.REL,"⫏":e.MO.REL,"⫐":e.MO.REL,"⫑":e.MO.REL,"⫒":e.MO.REL,"⫓":e.MO.REL,"⫔":e.MO.REL,"⫕":e.MO.REL,"⫖":e.MO.REL,"⫗":e.MO.REL,"⫘":e.MO.REL,"⫙":e.MO.REL,"⫚":e.MO.REL,"⫛":e.MO.REL,"⫝":e.MO.REL,"⫝̸":e.MO.REL,"⫞":e.MO.REL,"⫟":e.MO.REL,"⫠":e.MO.REL,"⫡":e.MO.REL,"⫢":e.MO.REL,"⫣":e.MO.REL,"⫤":e.MO.REL,"⫥":e.MO.REL,"⫦":e.MO.REL,"⫧":e.MO.REL,"⫨":e.MO.REL,"⫩":e.MO.REL,"⫪":e.MO.REL,"⫫":e.MO.REL,"⫬":e.MO.REL,"⫭":e.MO.REL,"⫮":e.MO.REL,"⫯":e.MO.REL,"⫰":e.MO.REL,"⫱":e.MO.REL,"⫲":e.MO.REL,"⫳":e.MO.REL,"⫴":e.MO.BIN4,"⫵":e.MO.BIN4,"⫶":e.MO.BIN4,"⫷":e.MO.REL,"⫸":e.MO.REL,"⫹":e.MO.REL,"⫺":e.MO.REL,"⫻":e.MO.BIN4,"⫽":e.MO.BIN4,"⫾":e.MO.BIN3,"⭅":e.MO.RELSTRETCH,"⭆":e.MO.RELSTRETCH,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"︷":e.MO.WIDEACCENT,"︸":e.MO.WIDEACCENT}},e.OPTABLE.infix["^"]=e.MO.WIDEREL,e.OPTABLE.infix._=e.MO.WIDEREL,e.OPTABLE.infix["⫝̸"]=e.MO.REL}(OperatorDictionary),getDefaultExportFromCjs$1(OperatorDictionary);var string={},__read$Z=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$x=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function sortLength(e,t){return e.length!==t.length?t.length-e.length:e===t?0:e<t?-1:1}function quotePattern(e){return e.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")}function unicodeChars(e){return Array.from(e).map((function(e){return e.codePointAt(0)}))}function unicodeString(e){return String.fromCodePoint.apply(String,__spreadArray$x([],__read$Z(e),!1))}function isPercent(e){return!!e.match(/%\s*$/)}function split(e){return e.trim().split(/\s+/)}Object.defineProperty(string,"__esModule",{value:!0}),string.split=string.isPercent=string.unicodeString=string.unicodeChars=string.quotePattern=string.sortLength=void 0,string.sortLength=sortLength,string.quotePattern=quotePattern,string.unicodeChars=unicodeChars,string.unicodeString=unicodeString,string.isPercent=isPercent,string.split=split;var __extends$2c=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$F=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$F=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$F.apply(this,arguments)},__read$Y=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$W=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mo$2,"__esModule",{value:!0}),mo$2.MmlMo=void 0;var MmlNode_js_1$M=MmlNode,OperatorDictionary_js_1$1=OperatorDictionary,string_js_1$a=string,MmlMo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._texClass=null,t.lspace=5/18,t.rspace=5/18,t}return __extends$2c(t,e),Object.defineProperty(t.prototype,"texClass",{get:function(){if(null===this._texClass){var e=this.getText(),t=__read$Y(this.handleExplicitForm(this.getForms()),3),r=t[0],n=t[1],o=t[2],i=this.constructor.OPTABLE,a=i[r][e]||i[n][e]||i[o][e];return a?a[2]:MmlNode_js_1$M.TEXCLASS.REL}return this._texClass},set:function(e){this._texClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewLine",{get:function(){return"newline"===this.attributes.get("linebreak")},enumerable:!1,configurable:!0}),t.prototype.coreParent=function(){for(var e=this,t=this,r=this.factory.getNodeClass("math");t&&t.isEmbellished&&t.coreMO()===this&&!(t instanceof r);)e=t,t=t.parent;return e},t.prototype.coreText=function(e){if(!e)return"";if(e.isEmbellished)return e.coreMO().getText();for(;((e.isKind("mrow")||e.isKind("TeXAtom")&&e.texClass!==MmlNode_js_1$M.TEXCLASS.VCENTER||e.isKind("mstyle")||e.isKind("mphantom"))&&1===e.childNodes.length||e.isKind("munderover"))&&e.childNodes[0];)e=e.childNodes[0];return e.isToken?e.getText():""},t.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(t.prototype,"isAccent",{get:function(){var e=!1,t=this.coreParent().parent;if(t){var r=t.isKind("mover")?t.childNodes[t.over].coreMO()?"accent":"":t.isKind("munder")?t.childNodes[t.under].coreMO()?"accentunder":"":t.isKind("munderover")?this===t.childNodes[t.over].coreMO()?"accent":this===t.childNodes[t.under].coreMO()?"accentunder":"":"";if(r)e=void 0!==t.attributes.getExplicit(r)?e:this.attributes.get("accent")}return e},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){var t=this.attributes.getList("form","fence"),r=t.form,n=t.fence;return void 0===this.getProperty("texClass")&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(n&&this.texClass===MmlNode_js_1$M.TEXCLASS.REL&&("prefix"===r&&(this.texClass=MmlNode_js_1$M.TEXCLASS.OPEN),"postfix"===r&&(this.texClass=MmlNode_js_1$M.TEXCLASS.CLOSE)),this.adjustTeXclass(e))},t.prototype.adjustTeXclass=function(e){var t=this.texClass,r=this.prevClass;if(t===MmlNode_js_1$M.TEXCLASS.NONE)return e;if(e?(!e.getProperty("autoOP")||t!==MmlNode_js_1$M.TEXCLASS.BIN&&t!==MmlNode_js_1$M.TEXCLASS.REL||(r=e.texClass=MmlNode_js_1$M.TEXCLASS.ORD),r=this.prevClass=e.texClass||MmlNode_js_1$M.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):r=this.prevClass=MmlNode_js_1$M.TEXCLASS.NONE,t!==MmlNode_js_1$M.TEXCLASS.BIN||r!==MmlNode_js_1$M.TEXCLASS.NONE&&r!==MmlNode_js_1$M.TEXCLASS.BIN&&r!==MmlNode_js_1$M.TEXCLASS.OP&&r!==MmlNode_js_1$M.TEXCLASS.REL&&r!==MmlNode_js_1$M.TEXCLASS.OPEN&&r!==MmlNode_js_1$M.TEXCLASS.PUNCT)if(r!==MmlNode_js_1$M.TEXCLASS.BIN||t!==MmlNode_js_1$M.TEXCLASS.REL&&t!==MmlNode_js_1$M.TEXCLASS.CLOSE&&t!==MmlNode_js_1$M.TEXCLASS.PUNCT){if(t===MmlNode_js_1$M.TEXCLASS.BIN){for(var n=this,o=this.parent;o&&o.parent&&o.isEmbellished&&(1===o.childNodes.length||!o.isKind("mrow")&&o.core()===n);)n=o,o=o.parent;o.childNodes[o.childNodes.length-1]===n&&(this.texClass=MmlNode_js_1$M.TEXCLASS.ORD)}}else e.texClass=this.prevClass=MmlNode_js_1$M.TEXCLASS.ORD;else this.texClass=MmlNode_js_1$M.TEXCLASS.ORD;return this},t.prototype.setInheritedAttributes=function(t,r,n,o){void 0===t&&(t={}),void 0===r&&(r=!1),void 0===n&&(n=0),void 0===o&&(o=!1),e.prototype.setInheritedAttributes.call(this,t,r,n,o);var i=this.getText();this.checkOperatorTable(i),this.checkPseudoScripts(i),this.checkPrimes(i),this.checkMathAccent(i)},t.prototype.checkOperatorTable=function(e){var t,r,n=__read$Y(this.handleExplicitForm(this.getForms()),3),o=n[0],i=n[1],a=n[2];this.attributes.setInherited("form",o);var s=this.constructor.OPTABLE,l=s[o][e]||s[i][e]||s[a][e];if(l){void 0===this.getProperty("texClass")&&(this.texClass=l[2]);try{for(var c=__values$W(Object.keys(l[3]||{})),u=c.next();!u.done;u=c.next()){var d=u.value;this.attributes.setInherited(d,l[3][d])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}this.lspace=(l[0]+1)/18,this.rspace=(l[1]+1)/18}else{var p=(0,OperatorDictionary_js_1$1.getRange)(e);if(p){void 0===this.getProperty("texClass")&&(this.texClass=p[2]);var m=this.constructor.MMLSPACING[p[2]];this.lspace=(m[0]+1)/18,this.rspace=(m[1]+1)/18}}},t.prototype.getForms=function(){for(var e=this,t=this.parent,r=this.Parent;r&&r.isEmbellished;)e=t,t=r.parent,r=r.Parent;if(t&&t.isKind("mrow")&&1!==t.nonSpaceLength()){if(t.firstNonSpace()===e)return["prefix","infix","postfix"];if(t.lastNonSpace()===e)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]},t.prototype.handleExplicitForm=function(e){if(this.attributes.isSet("form")){var t=this.attributes.get("form");e=[t].concat(e.filter((function(e){return e!==t})))}return e},t.prototype.checkPseudoScripts=function(e){var t=this.constructor.pseudoScripts;if(e.match(t)){var r=this.coreParent().Parent,n=!r||!(r.isKind("msubsup")&&!r.isKind("msub"));this.setProperty("pseudoscript",n),n&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}},t.prototype.checkPrimes=function(e){var t=this.constructor.primes;if(e.match(t)){var r=this.constructor.remapPrimes,n=(0,string_js_1$a.unicodeString)((0,string_js_1$a.unicodeChars)(e).map((function(e){return r[e]})));this.setProperty("primes",n)}},t.prototype.checkMathAccent=function(e){var t=this.Parent;if(void 0===this.getProperty("mathaccent")&&t&&t.isKind("munderover")){var r=t.childNodes[0];if(!r.isEmbellished||r.coreMO()!==this){var n=this.constructor.mathaccents;e.match(n)&&this.setProperty("mathaccent",!0)}}},t.defaults=__assign$F(__assign$F({},MmlNode_js_1$M.AbstractMmlTokenNode.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),t.MMLSPACING=OperatorDictionary_js_1$1.MMLSPACING,t.OPTABLE=OperatorDictionary_js_1$1.OPTABLE,t.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join("")),t.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join("")),t.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},t.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join("")),t}(MmlNode_js_1$M.AbstractMmlTokenNode);mo$2.MmlMo=MmlMo;var mtext$2={},__extends$2b=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$E=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$E=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$E.apply(this,arguments)};Object.defineProperty(mtext$2,"__esModule",{value:!0}),mtext$2.MmlMtext=void 0;var MmlNode_js_1$L=MmlNode,MmlMtext=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$L.TEXCLASS.ORD,t}return __extends$2b(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mtext"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=__assign$E({},MmlNode_js_1$L.AbstractMmlTokenNode.defaults),t}(MmlNode_js_1$L.AbstractMmlTokenNode);mtext$2.MmlMtext=MmlMtext;var mspace$2={},__extends$2a=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$D=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$D=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$D.apply(this,arguments)};Object.defineProperty(mspace$2,"__esModule",{value:!0}),mspace$2.MmlMspace=void 0;var MmlNode_js_1$K=MmlNode,MmlMspace=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$K.TEXCLASS.NONE,t}return __extends$2a(t,e),t.prototype.setTeXclass=function(e){return e},Object.defineProperty(t.prototype,"kind",{get:function(){return"mspace"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewline",{get:function(){var e=this.attributes;return null==e.getExplicit("width")&&null==e.getExplicit("height")&&null==e.getExplicit("depth")&&"newline"===e.get("linebreak")},enumerable:!1,configurable:!0}),t.defaults=__assign$D(__assign$D({},MmlNode_js_1$K.AbstractMmlTokenNode.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto"}),t}(MmlNode_js_1$K.AbstractMmlTokenNode);mspace$2.MmlMspace=MmlMspace;var ms$2={},__extends$29=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$C=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$C=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$C.apply(this,arguments)};Object.defineProperty(ms$2,"__esModule",{value:!0}),ms$2.MmlMs=void 0;var MmlNode_js_1$J=MmlNode,MmlMs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$J.TEXCLASS.ORD,t}return __extends$29(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"ms"},enumerable:!1,configurable:!0}),t.defaults=__assign$C(__assign$C({},MmlNode_js_1$J.AbstractMmlTokenNode.defaults),{lquote:'"',rquote:'"'}),t}(MmlNode_js_1$J.AbstractMmlTokenNode);ms$2.MmlMs=MmlMs;var mrow$2={},__extends$28=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$B=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$B=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$B.apply(this,arguments)},__values$V=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mrow$2,"__esModule",{value:!0}),mrow$2.MmlInferredMrow=mrow$2.MmlMrow=void 0;var MmlNode_js_1$I=MmlNode,MmlMrow=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._core=null,t}return __extends$28(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mrow"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){var e,t;try{for(var r=__values$V(this.childNodes),n=r.next();!n.done;n=r.next()){if(!n.value.isSpacelike)return!1}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){var e,t,r=!1,n=0;try{for(var o=__values$V(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;if(a)if(a.isEmbellished){if(r)return!1;r=!0,this._core=n}else if(!a.isSpacelike)return!1;n++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},enumerable:!1,configurable:!0}),t.prototype.core=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core]:this},t.prototype.coreMO=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core].coreMO():this},t.prototype.nonSpaceLength=function(){var e,t,r=0;try{for(var n=__values$V(this.childNodes),o=n.next();!o.done;o=n.next()){var i=o.value;i&&!i.isSpacelike&&r++}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},t.prototype.firstNonSpace=function(){var e,t;try{for(var r=__values$V(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(o&&!o.isSpacelike)return o}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return null},t.prototype.lastNonSpace=function(){for(var e=this.childNodes.length;--e>=0;){var t=this.childNodes[e];if(t&&!t.isSpacelike)return t}return null},t.prototype.setTeXclass=function(e){var t,r,n,o;if(null!=this.getProperty("open")||null!=this.getProperty("close")){this.getPrevClass(e),e=null;try{for(var i=__values$V(this.childNodes),a=i.next();!a.done;a=i.next()){e=a.value.setTeXclass(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}null==this.texClass&&(this.texClass=MmlNode_js_1$I.TEXCLASS.INNER)}else{try{for(var s=__values$V(this.childNodes),l=s.next();!l.done;l=s.next()){e=l.value.setTeXclass(e)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return e},t.defaults=__assign$B({},MmlNode_js_1$I.AbstractMmlNode.defaults),t}(MmlNode_js_1$I.AbstractMmlNode);mrow$2.MmlMrow=MmlMrow;var MmlInferredMrow=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$28(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"},t.defaults=MmlMrow.defaults,t}(MmlMrow);mrow$2.MmlInferredMrow=MmlInferredMrow;var mfrac$2={},__extends$27=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$A=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$A=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$A.apply(this,arguments)},__values$U=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mfrac$2,"__esModule",{value:!0}),mfrac$2.MmlMfrac=void 0;var MmlNode_js_1$H=MmlNode,MmlMfrac=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$27(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mfrac"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){var t,r;this.getPrevClass(e);try{for(var n=__values$U(this.childNodes),o=n.next();!o.done;o=n.next()){o.value.setTeXclass(null)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},t.prototype.setChildInheritedAttributes=function(e,t,r,n){(!t||r>0)&&r++,this.childNodes[0].setInheritedAttributes(e,!1,r,n),this.childNodes[1].setInheritedAttributes(e,!1,r,!0)},t.defaults=__assign$A(__assign$A({},MmlNode_js_1$H.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1}),t}(MmlNode_js_1$H.AbstractMmlBaseNode);mfrac$2.MmlMfrac=MmlMfrac;var msqrt$2={},__extends$26=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$z=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$z=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$z.apply(this,arguments)};Object.defineProperty(msqrt$2,"__esModule",{value:!0}),msqrt$2.MmlMsqrt=void 0;var MmlNode_js_1$G=MmlNode,MmlMsqrt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$G.TEXCLASS.ORD,t}return __extends$26(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"msqrt"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(e,t,r,n){this.childNodes[0].setInheritedAttributes(e,t,r,!0)},t.defaults=__assign$z({},MmlNode_js_1$G.AbstractMmlNode.defaults),t}(MmlNode_js_1$G.AbstractMmlNode);msqrt$2.MmlMsqrt=MmlMsqrt;var mroot$2={},__extends$25=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$y=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$y.apply(this,arguments)};Object.defineProperty(mroot$2,"__esModule",{value:!0}),mroot$2.MmlMroot=void 0;var MmlNode_js_1$F=MmlNode,MmlMroot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$F.TEXCLASS.ORD,t}return __extends$25(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mroot"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(e,t,r,n){this.childNodes[0].setInheritedAttributes(e,t,r,!0),this.childNodes[1].setInheritedAttributes(e,!1,r+2,n)},t.defaults=__assign$y({},MmlNode_js_1$F.AbstractMmlNode.defaults),t}(MmlNode_js_1$F.AbstractMmlNode);mroot$2.MmlMroot=MmlMroot;var mstyle={},__extends$24=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$x=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$x.apply(this,arguments)};Object.defineProperty(mstyle,"__esModule",{value:!0}),mstyle.MmlMstyle=void 0;var MmlNode_js_1$E=MmlNode,Attributes_js_1$3=Attributes,MmlMstyle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$24(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mstyle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return this.childNodes[0]&&1===this.childNodes[0].childNodes.length},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,r,n){var o=this.attributes.getExplicit("scriptlevel");null!=o&&((o=o.toString()).match(/^\s*[-+]/)?r+=parseInt(o):r=parseInt(o),n=!1);var i=this.attributes.getExplicit("displaystyle");null!=i&&(t=!0===i,n=!1);var a=this.attributes.getExplicit("data-cramped");null!=a&&(n=a),e=this.addInheritedAttributes(e,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(e,t,r,n)},t.defaults=__assign$x(__assign$x({},MmlNode_js_1$E.AbstractMmlLayoutNode.defaults),{scriptlevel:Attributes_js_1$3.INHERIT,displaystyle:Attributes_js_1$3.INHERIT,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:"8px",mathbackground:Attributes_js_1$3.INHERIT,mathcolor:Attributes_js_1$3.INHERIT,dir:Attributes_js_1$3.INHERIT,infixlinebreakstyle:"before"}),t}(MmlNode_js_1$E.AbstractMmlLayoutNode);mstyle.MmlMstyle=MmlMstyle;var merror={},__extends$23=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$w=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$w.apply(this,arguments)};Object.defineProperty(merror,"__esModule",{value:!0}),merror.MmlMerror=void 0;var MmlNode_js_1$D=MmlNode,MmlMerror=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$D.TEXCLASS.ORD,t}return __extends$23(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"merror"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=__assign$w({},MmlNode_js_1$D.AbstractMmlNode.defaults),t}(MmlNode_js_1$D.AbstractMmlNode);merror.MmlMerror=MmlMerror;var mpadded$2={},__extends$22=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$v=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$v.apply(this,arguments)};Object.defineProperty(mpadded$2,"__esModule",{value:!0}),mpadded$2.MmlMpadded=void 0;var MmlNode_js_1$C=MmlNode,MmlMpadded=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$22(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mpadded"},enumerable:!1,configurable:!0}),t.defaults=__assign$v(__assign$v({},MmlNode_js_1$C.AbstractMmlLayoutNode.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0}),t}(MmlNode_js_1$C.AbstractMmlLayoutNode);mpadded$2.MmlMpadded=MmlMpadded;var mphantom={},__extends$21=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$u=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$u.apply(this,arguments)};Object.defineProperty(mphantom,"__esModule",{value:!0}),mphantom.MmlMphantom=void 0;var MmlNode_js_1$B=MmlNode,MmlMphantom=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$B.TEXCLASS.ORD,t}return __extends$21(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mphantom"},enumerable:!1,configurable:!0}),t.defaults=__assign$u({},MmlNode_js_1$B.AbstractMmlLayoutNode.defaults),t}(MmlNode_js_1$B.AbstractMmlLayoutNode);mphantom.MmlMphantom=MmlMphantom;var mfenced$2={},__extends$20=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$t=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$t.apply(this,arguments)},__values$T=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mfenced$2,"__esModule",{value:!0}),mfenced$2.MmlMfenced=void 0;var MmlNode_js_1$A=MmlNode,MmlMfenced=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$A.TEXCLASS.INNER,t.separators=[],t.open=null,t.close=null,t}return __extends$20(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mfenced"},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){this.getPrevClass(e),this.open&&(e=this.open.setTeXclass(e)),this.childNodes[0]&&(e=this.childNodes[0].setTeXclass(e));for(var t=1,r=this.childNodes.length;t<r;t++)this.separators[t-1]&&(e=this.separators[t-1].setTeXclass(e)),this.childNodes[t]&&(e=this.childNodes[t].setTeXclass(e));return this.close&&(e=this.close.setTeXclass(e)),this.updateTeXclass(this.open),e},t.prototype.setChildInheritedAttributes=function(t,r,n,o){var i,a;this.addFakeNodes();try{for(var s=__values$T([this.open,this.close].concat(this.separators)),l=s.next();!l.done;l=s.next()){var c=l.value;c&&c.setInheritedAttributes(t,r,n,o)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}e.prototype.setChildInheritedAttributes.call(this,t,r,n,o)},t.prototype.addFakeNodes=function(){var e,t,r=this.attributes.getList("open","close","separators"),n=r.open,o=r.close,i=r.separators;if(n=n.replace(/[ \t\n\r]/g,""),o=o.replace(/[ \t\n\r]/g,""),i=i.replace(/[ \t\n\r]/g,""),n&&(this.open=this.fakeNode(n,{fence:!0,form:"prefix"},MmlNode_js_1$A.TEXCLASS.OPEN)),i){for(;i.length<this.childNodes.length-1;)i+=i.charAt(i.length-1);var a=0;try{for(var s=__values$T(this.childNodes.slice(1)),l=s.next();!l.done;l=s.next()){l.value&&this.separators.push(this.fakeNode(i.charAt(a++)))}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}}o&&(this.close=this.fakeNode(o,{fence:!0,form:"postfix"},MmlNode_js_1$A.TEXCLASS.CLOSE))},t.prototype.fakeNode=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=null);var n=this.factory.create("text").setText(e),o=this.factory.create("mo",t,[n]);return o.texClass=r,o.parent=this,o},t.defaults=__assign$t(__assign$t({},MmlNode_js_1$A.AbstractMmlNode.defaults),{open:"(",close:")",separators:","}),t}(MmlNode_js_1$A.AbstractMmlNode);mfenced$2.MmlMfenced=MmlMfenced;var menclose$2={},__extends$1$=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$s=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$s.apply(this,arguments)};Object.defineProperty(menclose$2,"__esModule",{value:!0}),menclose$2.MmlMenclose=void 0;var MmlNode_js_1$z=MmlNode,MmlMenclose=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$z.TEXCLASS.ORD,t}return __extends$1$(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"menclose"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContininer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return e=this.childNodes[0].setTeXclass(e),this.updateTeXclass(this.childNodes[0]),e},t.defaults=__assign$s(__assign$s({},MmlNode_js_1$z.AbstractMmlNode.defaults),{notation:"longdiv"}),t}(MmlNode_js_1$z.AbstractMmlNode);menclose$2.MmlMenclose=MmlMenclose;var maction$2={},__extends$1_=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$r=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$r.apply(this,arguments)};Object.defineProperty(maction$2,"__esModule",{value:!0}),maction$2.MmlMaction=void 0;var MmlNode_js_1$y=MmlNode,MmlMaction=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1_(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"maction"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){var e=this.attributes.get("selection"),t=Math.max(1,Math.min(this.childNodes.length,e))-1;return this.childNodes[t]||this.factory.create("mrow")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return this.selected.isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return this.selected.isSpacelike},enumerable:!1,configurable:!0}),t.prototype.core=function(){return this.selected.core()},t.prototype.coreMO=function(){return this.selected.coreMO()},t.prototype.verifyAttributes=function(t){(e.prototype.verifyAttributes.call(this,t),"toggle"!==this.attributes.get("actiontype")&&void 0!==this.attributes.getExplicit("selection"))&&delete this.attributes.getAllAttributes().selection},t.prototype.setTeXclass=function(e){"tooltip"===this.attributes.get("actiontype")&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);var t=this.selected;return e=t.setTeXclass(e),this.updateTeXclass(t),e},t.prototype.nextToggleSelection=function(){var e=Math.max(1,this.attributes.get("selection")+1);e>this.childNodes.length&&(e=1),this.attributes.set("selection",e)},t.defaults=__assign$r(__assign$r({},MmlNode_js_1$y.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1}),t}(MmlNode_js_1$y.AbstractMmlNode);maction$2.MmlMaction=MmlMaction;var msubsup$2={},__extends$1Z=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$q=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$q.apply(this,arguments)};Object.defineProperty(msubsup$2,"__esModule",{value:!0}),msubsup$2.MmlMsup=msubsup$2.MmlMsub=msubsup$2.MmlMsubsup=void 0;var MmlNode_js_1$x=MmlNode,MmlMsubsup=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Z(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"msubsup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sub",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sup",{get:function(){return 2},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,r,n){var o=this.childNodes;o[0].setInheritedAttributes(e,t,r,n),o[1].setInheritedAttributes(e,!1,r+1,n||1===this.sub),o[2]&&o[2].setInheritedAttributes(e,!1,r+1,n||2===this.sub)},t.defaults=__assign$q(__assign$q({},MmlNode_js_1$x.AbstractMmlBaseNode.defaults),{subscriptshift:"",superscriptshift:""}),t}(MmlNode_js_1$x.AbstractMmlBaseNode);msubsup$2.MmlMsubsup=MmlMsubsup;var MmlMsub=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Z(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"msub"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=__assign$q({},MmlMsubsup.defaults),t}(MmlMsubsup);msubsup$2.MmlMsub=MmlMsub;var MmlMsup=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Z(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"msup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sup",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sub",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=__assign$q({},MmlMsubsup.defaults),t}(MmlMsubsup);msubsup$2.MmlMsup=MmlMsup;var munderover$2={},__extends$1Y=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$p=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$p.apply(this,arguments)};Object.defineProperty(munderover$2,"__esModule",{value:!0}),munderover$2.MmlMover=munderover$2.MmlMunder=munderover$2.MmlMunderover=void 0;var MmlNode_js_1$w=MmlNode,MmlMunderover=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Y(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"munderover"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"under",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,r,n){var o=this.childNodes;o[0].setInheritedAttributes(e,t,r,n||!!o[this.over]);var i=!(t||!o[0].coreMO().attributes.get("movablelimits")),a=this.constructor.ACCENTS;o[1].setInheritedAttributes(e,!1,this.getScriptlevel(a[1],i,r),n||1===this.under),this.setInheritedAccent(1,a[1],t,r,n,i),o[2]&&(o[2].setInheritedAttributes(e,!1,this.getScriptlevel(a[2],i,r),n||2===this.under),this.setInheritedAccent(2,a[2],t,r,n,i))},t.prototype.getScriptlevel=function(e,t,r){return!t&&this.attributes.get(e)||r++,r},t.prototype.setInheritedAccent=function(e,t,r,n,o,i){var a=this.childNodes[e];if(null==this.attributes.getExplicit(t)&&a.isEmbellished){var s=a.coreMO().attributes.get("accent");this.attributes.setInherited(t,s),s!==this.attributes.getDefault(t)&&a.setInheritedAttributes({},r,this.getScriptlevel(t,i,n),o)}},t.defaults=__assign$p(__assign$p({},MmlNode_js_1$w.AbstractMmlBaseNode.defaults),{accent:!1,accentunder:!1,align:"center"}),t.ACCENTS=["","accentunder","accent"],t}(MmlNode_js_1$w.AbstractMmlBaseNode);munderover$2.MmlMunderover=MmlMunderover;var MmlMunder=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Y(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"munder"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=__assign$p({},MmlMunderover.defaults),t}(MmlMunderover);munderover$2.MmlMunder=MmlMunder;var MmlMover=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Y(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mover"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"under",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=__assign$p({},MmlMunderover.defaults),t.ACCENTS=["","accent","accentunder"],t}(MmlMunderover);munderover$2.MmlMover=MmlMover;var mmultiscripts$2={},__extends$1X=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$o=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$o.apply(this,arguments)};Object.defineProperty(mmultiscripts$2,"__esModule",{value:!0}),mmultiscripts$2.MmlNone=mmultiscripts$2.MmlMprescripts=mmultiscripts$2.MmlMmultiscripts=void 0;var MmlNode_js_1$v=MmlNode,msubsup_js_1$5=msubsup$2,MmlMmultiscripts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1X(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mmultiscripts"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,r,n){this.childNodes[0].setInheritedAttributes(e,t,r,n);for(var o=!1,i=1,a=0;i<this.childNodes.length;i++){var s=this.childNodes[i];if(s.isKind("mprescripts")){if(!o&&(o=!0,i%2==0)){var l=this.factory.create("mrow");this.childNodes.splice(i,0,l),l.parent=this,i++}}else{var c=n||a%2==0;s.setInheritedAttributes(e,!1,r+1,c),a++}}this.childNodes.length%2==(o?1:0)&&(this.appendChild(this.factory.create("mrow")),this.childNodes[this.childNodes.length-1].setInheritedAttributes(e,!1,r+1,n))},t.prototype.verifyChildren=function(t){for(var r=!1,n=t.fixMmultiscripts,o=0;o<this.childNodes.length;o++){var i=this.childNodes[o];i.isKind("mprescripts")&&(r?i.mError(i.kind+" can only appear once in "+this.kind,t,!0):(r=!0,o%2!=0||n||this.mError("There must be an equal number of prescripts of each type",t)))}this.childNodes.length%2!=(r?1:0)||n||this.mError("There must be an equal number of scripts of each type",t),e.prototype.verifyChildren.call(this,t)},t.defaults=__assign$o({},msubsup_js_1$5.MmlMsubsup.defaults),t}(msubsup_js_1$5.MmlMsubsup);mmultiscripts$2.MmlMmultiscripts=MmlMmultiscripts;var MmlMprescripts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1X(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mprescripts"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.verifyTree=function(t){e.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)},t.defaults=__assign$o({},MmlNode_js_1$v.AbstractMmlNode.defaults),t}(MmlNode_js_1$v.AbstractMmlNode);mmultiscripts$2.MmlMprescripts=MmlMprescripts;var MmlNone$1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1X(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.verifyTree=function(t){e.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)},t.defaults=__assign$o({},MmlNode_js_1$v.AbstractMmlNode.defaults),t}(MmlNode_js_1$v.AbstractMmlNode);mmultiscripts$2.MmlNone=MmlNone$1;var mtable$2={},__extends$1W=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$n=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$n.apply(this,arguments)},__values$S=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mtable$2,"__esModule",{value:!0}),mtable$2.MmlMtable=void 0;var MmlNode_js_1$u=MmlNode,string_js_1$9=string,MmlMtable=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.properties={useHeight:!0},t.texclass=MmlNode_js_1$u.TEXCLASS.ORD,t}return __extends$1W(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mtable"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(t,r,n,o){var i,a;try{for(var s=__values$S(MmlNode_js_1$u.indentAttributes),l=s.next();!l.done;l=s.next()){var c=l.value;t[c]&&this.attributes.setInherited(c,t[c][1]),void 0!==this.attributes.getExplicit(c)&&delete this.attributes.getAllAttributes()[c]}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}e.prototype.setInheritedAttributes.call(this,t,r,n,o)},t.prototype.setChildInheritedAttributes=function(e,t,r,n){var o,i,a,s;try{for(var l=__values$S(this.childNodes),c=l.next();!c.done;c=l.next()){(h=c.value).isKind("mtr")||this.replaceChild(this.factory.create("mtr"),h).appendChild(h)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}r=this.getProperty("scriptlevel")||r,t=!(!this.attributes.getExplicit("displaystyle")&&!this.attributes.getDefault("displaystyle")),e=this.addInheritedAttributes(e,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var u=this.attributes.getExplicit("data-cramped"),d=(0,string_js_1$9.split)(this.attributes.get("rowalign"));try{for(var p=__values$S(this.childNodes),m=p.next();!m.done;m=p.next()){var h=m.value;e.rowalign[1]=d.shift()||e.rowalign[1],h.setInheritedAttributes(e,t,r,!!u)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}},t.prototype.verifyChildren=function(t){for(var r=null,n=this.factory,o=0;o<this.childNodes.length;o++){var i=this.childNodes[o];if(i.isKind("mtr"))r=null;else{var a=i.isKind("mtd");if(r?(this.removeChild(i),o--):r=this.replaceChild(n.create("mtr"),i),r.appendChild(a?i:n.create("mtd",{},[i])),!t.fixMtables){i.parent.removeChild(i),i.parent=this,a&&r.appendChild(n.create("mtd"));var s=i.mError("Children of "+this.kind+" must be mtr or mlabeledtr",t,a);r.childNodes[r.childNodes.length-1].appendChild(s)}}}e.prototype.verifyChildren.call(this,t)},t.prototype.setTeXclass=function(e){var t,r;this.getPrevClass(e);try{for(var n=__values$S(this.childNodes),o=n.next();!o.done;o=n.next()){o.value.setTeXclass(null)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},t.defaults=__assign$n(__assign$n({},MmlNode_js_1$u.AbstractMmlNode.defaults),{align:"axis",rowalign:"baseline",columnalign:"center",groupalign:"{left}",alignmentscope:!0,columnwidth:"auto",width:"auto",rowspacing:"1ex",columnspacing:".8em",rowlines:"none",columnlines:"none",frame:"none",framespacing:"0.4em 0.5ex",equalrows:!1,equalcolumns:!1,displaystyle:!1,side:"right",minlabelspacing:"0.8em"}),t}(MmlNode_js_1$u.AbstractMmlNode);mtable$2.MmlMtable=MmlMtable;var mtr$2={},__extends$1V=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$m=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$m.apply(this,arguments)},__values$R=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mtr$2,"__esModule",{value:!0}),mtr$2.MmlMlabeledtr=mtr$2.MmlMtr=void 0;var MmlNode_js_1$t=MmlNode,Attributes_js_1$2=Attributes,string_js_1$8=string,MmlMtr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1V(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mtr"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,r,n){var o,i,a,s;try{for(var l=__values$R(this.childNodes),c=l.next();!c.done;c=l.next()){(m=c.value).isKind("mtd")||this.replaceChild(this.factory.create("mtd"),m).appendChild(m)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}var u=(0,string_js_1$8.split)(this.attributes.get("columnalign"));1===this.arity&&u.unshift(this.parent.attributes.get("side")),e=this.addInheritedAttributes(e,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var d=__values$R(this.childNodes),p=d.next();!p.done;p=d.next()){var m=p.value;e.columnalign[1]=u.shift()||e.columnalign[1],m.setInheritedAttributes(e,t,r,n)}}catch(e){a={error:e}}finally{try{p&&!p.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}},t.prototype.verifyChildren=function(t){var r,n;if(!this.parent||this.parent.isKind("mtable")){try{for(var o=__values$R(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;if(!a.isKind("mtd"))this.replaceChild(this.factory.create("mtd"),a).appendChild(a),t.fixMtables||a.mError("Children of "+this.kind+" must be mtd",t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.prototype.verifyChildren.call(this,t)}else this.mError(this.kind+" can only be a child of an mtable",t,!0)},t.prototype.setTeXclass=function(e){var t,r;this.getPrevClass(e);try{for(var n=__values$R(this.childNodes),o=n.next();!o.done;o=n.next()){o.value.setTeXclass(null)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},t.defaults=__assign$m(__assign$m({},MmlNode_js_1$t.AbstractMmlNode.defaults),{rowalign:Attributes_js_1$2.INHERIT,columnalign:Attributes_js_1$2.INHERIT,groupalign:Attributes_js_1$2.INHERIT}),t}(MmlNode_js_1$t.AbstractMmlNode);mtr$2.MmlMtr=MmlMtr;var MmlMlabeledtr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1V(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(MmlMtr);mtr$2.MmlMlabeledtr=MmlMlabeledtr;var mtd$2={},__extends$1U=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$l=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$l.apply(this,arguments)};Object.defineProperty(mtd$2,"__esModule",{value:!0}),mtd$2.MmlMtd=void 0;var MmlNode_js_1$s=MmlNode,Attributes_js_1$1=Attributes,MmlMtd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1U(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mtd"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.verifyChildren=function(t){!this.parent||this.parent.isKind("mtr")?e.prototype.verifyChildren.call(this,t):this.mError(this.kind+" can only be a child of an mtr or mlabeledtr",t,!0)},t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this},t.defaults=__assign$l(__assign$l({},MmlNode_js_1$s.AbstractMmlBaseNode.defaults),{rowspan:1,columnspan:1,rowalign:Attributes_js_1$1.INHERIT,columnalign:Attributes_js_1$1.INHERIT,groupalign:Attributes_js_1$1.INHERIT}),t}(MmlNode_js_1$s.AbstractMmlBaseNode);mtd$2.MmlMtd=MmlMtd;var maligngroup={},__extends$1T=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$k=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$k.apply(this,arguments)};Object.defineProperty(maligngroup,"__esModule",{value:!0}),maligngroup.MmlMaligngroup=void 0;var MmlNode_js_1$r=MmlNode,Attributes_js_1=Attributes,MmlMaligngroup=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1T(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"maligngroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(t,r,n,o){t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),e.prototype.setChildInheritedAttributes.call(this,t,r,n,o)},t.defaults=__assign$k(__assign$k({},MmlNode_js_1$r.AbstractMmlLayoutNode.defaults),{groupalign:Attributes_js_1.INHERIT}),t}(MmlNode_js_1$r.AbstractMmlLayoutNode);maligngroup.MmlMaligngroup=MmlMaligngroup;var malignmark={},__extends$1S=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$j=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$j=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$j.apply(this,arguments)};Object.defineProperty(malignmark,"__esModule",{value:!0}),malignmark.MmlMalignmark=void 0;var MmlNode_js_1$q=MmlNode,MmlMalignmark=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1S(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"malignmark"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=__assign$j(__assign$j({},MmlNode_js_1$q.AbstractMmlNode.defaults),{edge:"left"}),t}(MmlNode_js_1$q.AbstractMmlNode);malignmark.MmlMalignmark=MmlMalignmark;var mglyph$2={},__extends$1R=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$i=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$i.apply(this,arguments)};Object.defineProperty(mglyph$2,"__esModule",{value:!0}),mglyph$2.MmlMglyph=void 0;var MmlNode_js_1$p=MmlNode,MmlMglyph=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.texclass=MmlNode_js_1$p.TEXCLASS.ORD,t}return __extends$1R(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"mglyph"},enumerable:!1,configurable:!0}),t.prototype.verifyAttributes=function(t){var r=this.attributes.getList("src","fontfamily","index"),n=r.src,o=r.fontfamily,i=r.index;""!==n||""!==o&&""!==i?e.prototype.verifyAttributes.call(this,t):this.mError("mglyph must have either src or fontfamily and index attributes",t,!0)},t.defaults=__assign$i(__assign$i({},MmlNode_js_1$p.AbstractMmlTokenNode.defaults),{alt:"",src:"",index:"",width:"auto",height:"auto",valign:"0em"}),t}(MmlNode_js_1$p.AbstractMmlTokenNode);mglyph$2.MmlMglyph=MmlMglyph;var semantics$2={},__extends$1Q=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$h=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$h.apply(this,arguments)};Object.defineProperty(semantics$2,"__esModule",{value:!0}),semantics$2.MmlAnnotation=semantics$2.MmlAnnotationXML=semantics$2.MmlSemantics=void 0;var MmlNode_js_1$o=MmlNode,MmlSemantics=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Q(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"semantics"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=__assign$h(__assign$h({},MmlNode_js_1$o.AbstractMmlBaseNode.defaults),{definitionUrl:null,encoding:null}),t}(MmlNode_js_1$o.AbstractMmlBaseNode);semantics$2.MmlSemantics=MmlSemantics;var MmlAnnotationXML=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Q(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"annotation-xml"},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(){},t.defaults=__assign$h(__assign$h({},MmlNode_js_1$o.AbstractMmlNode.defaults),{definitionUrl:null,encoding:null,cd:"mathmlkeys",name:"",src:null}),t}(MmlNode_js_1$o.AbstractMmlNode);semantics$2.MmlAnnotationXML=MmlAnnotationXML;var MmlAnnotation=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.properties={isChars:!0},t}return __extends$1Q(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),t.defaults=__assign$h({},MmlAnnotationXML.defaults),t}(MmlAnnotationXML);semantics$2.MmlAnnotation=MmlAnnotation;var TeXAtom$3={},__extends$1P=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$g=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$g.apply(this,arguments)};Object.defineProperty(TeXAtom$3,"__esModule",{value:!0}),TeXAtom$3.TeXAtom=void 0;var MmlNode_js_1$n=MmlNode,mo_js_1$4=mo$2,TeXAtom$2=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return o.texclass=MmlNode_js_1$n.TEXCLASS.ORD,o.setProperty("texClass",o.texClass),o}return __extends$1P(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"TeXAtom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return this.childNodes[0]&&1===this.childNodes[0].childNodes.length},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(e)},t.prototype.adjustTeXclass=function(e){return e},t.defaults=__assign$g({},MmlNode_js_1$n.AbstractMmlBaseNode.defaults),t}(MmlNode_js_1$n.AbstractMmlBaseNode);TeXAtom$3.TeXAtom=TeXAtom$2,TeXAtom$2.prototype.adjustTeXclass=mo_js_1$4.MmlMo.prototype.adjustTeXclass;var mathchoice={},__extends$1O=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$f=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$f.apply(this,arguments)};Object.defineProperty(mathchoice,"__esModule",{value:!0}),mathchoice.MathChoice=void 0;var MmlNode_js_1$m=MmlNode,MathChoice=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1O(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"MathChoice"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 4},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(e,t,r,n){var o=t?0:Math.max(0,Math.min(r,2))+1,i=this.childNodes[o]||this.factory.create("mrow");this.parent.replaceChild(i,this),i.setInheritedAttributes(e,t,r,n)},t.defaults=__assign$f({},MmlNode_js_1$m.AbstractMmlBaseNode.defaults),t}(MmlNode_js_1$m.AbstractMmlBaseNode),_a$b;mathchoice.MathChoice=MathChoice,Object.defineProperty(MML,"__esModule",{value:!0}),MML.MML=void 0;var MmlNode_js_1$l=MmlNode,math_js_1$2=math$2,mi_js_1$2=mi$2,mn_js_1$2=mn$2,mo_js_1$3=mo$2,mtext_js_1$2=mtext$2,mspace_js_1$2=mspace$2,ms_js_1$2=ms$2,mrow_js_1$2=mrow$2,mfrac_js_1$2=mfrac$2,msqrt_js_1$3=msqrt$2,mroot_js_1$2=mroot$2,mstyle_js_1=mstyle,merror_js_1=merror,mpadded_js_1$2=mpadded$2,mphantom_js_1=mphantom,mfenced_js_1$2=mfenced$2,menclose_js_1$2=menclose$2,maction_js_1$2=maction$2,msubsup_js_1$4=msubsup$2,munderover_js_1$2=munderover$2,mmultiscripts_js_1$2=mmultiscripts$2,mtable_js_1$2=mtable$2,mtr_js_1$2=mtr$2,mtd_js_1$2=mtd$2,maligngroup_js_1=maligngroup,malignmark_js_1=malignmark,mglyph_js_1$2=mglyph$2,semantics_js_1$2=semantics$2,TeXAtom_js_1$2=TeXAtom$3,mathchoice_js_1=mathchoice;MML.MML=(_a$b={},_a$b[math_js_1$2.MmlMath.prototype.kind]=math_js_1$2.MmlMath,_a$b[mi_js_1$2.MmlMi.prototype.kind]=mi_js_1$2.MmlMi,_a$b[mn_js_1$2.MmlMn.prototype.kind]=mn_js_1$2.MmlMn,_a$b[mo_js_1$3.MmlMo.prototype.kind]=mo_js_1$3.MmlMo,_a$b[mtext_js_1$2.MmlMtext.prototype.kind]=mtext_js_1$2.MmlMtext,_a$b[mspace_js_1$2.MmlMspace.prototype.kind]=mspace_js_1$2.MmlMspace,_a$b[ms_js_1$2.MmlMs.prototype.kind]=ms_js_1$2.MmlMs,_a$b[mrow_js_1$2.MmlMrow.prototype.kind]=mrow_js_1$2.MmlMrow,_a$b[mrow_js_1$2.MmlInferredMrow.prototype.kind]=mrow_js_1$2.MmlInferredMrow,_a$b[mfrac_js_1$2.MmlMfrac.prototype.kind]=mfrac_js_1$2.MmlMfrac,_a$b[msqrt_js_1$3.MmlMsqrt.prototype.kind]=msqrt_js_1$3.MmlMsqrt,_a$b[mroot_js_1$2.MmlMroot.prototype.kind]=mroot_js_1$2.MmlMroot,_a$b[mstyle_js_1.MmlMstyle.prototype.kind]=mstyle_js_1.MmlMstyle,_a$b[merror_js_1.MmlMerror.prototype.kind]=merror_js_1.MmlMerror,_a$b[mpadded_js_1$2.MmlMpadded.prototype.kind]=mpadded_js_1$2.MmlMpadded,_a$b[mphantom_js_1.MmlMphantom.prototype.kind]=mphantom_js_1.MmlMphantom,_a$b[mfenced_js_1$2.MmlMfenced.prototype.kind]=mfenced_js_1$2.MmlMfenced,_a$b[menclose_js_1$2.MmlMenclose.prototype.kind]=menclose_js_1$2.MmlMenclose,_a$b[maction_js_1$2.MmlMaction.prototype.kind]=maction_js_1$2.MmlMaction,_a$b[msubsup_js_1$4.MmlMsub.prototype.kind]=msubsup_js_1$4.MmlMsub,_a$b[msubsup_js_1$4.MmlMsup.prototype.kind]=msubsup_js_1$4.MmlMsup,_a$b[msubsup_js_1$4.MmlMsubsup.prototype.kind]=msubsup_js_1$4.MmlMsubsup,_a$b[munderover_js_1$2.MmlMunder.prototype.kind]=munderover_js_1$2.MmlMunder,_a$b[munderover_js_1$2.MmlMover.prototype.kind]=munderover_js_1$2.MmlMover,_a$b[munderover_js_1$2.MmlMunderover.prototype.kind]=munderover_js_1$2.MmlMunderover,_a$b[mmultiscripts_js_1$2.MmlMmultiscripts.prototype.kind]=mmultiscripts_js_1$2.MmlMmultiscripts,_a$b[mmultiscripts_js_1$2.MmlMprescripts.prototype.kind]=mmultiscripts_js_1$2.MmlMprescripts,_a$b[mmultiscripts_js_1$2.MmlNone.prototype.kind]=mmultiscripts_js_1$2.MmlNone,_a$b[mtable_js_1$2.MmlMtable.prototype.kind]=mtable_js_1$2.MmlMtable,_a$b[mtr_js_1$2.MmlMlabeledtr.prototype.kind]=mtr_js_1$2.MmlMlabeledtr,_a$b[mtr_js_1$2.MmlMtr.prototype.kind]=mtr_js_1$2.MmlMtr,_a$b[mtd_js_1$2.MmlMtd.prototype.kind]=mtd_js_1$2.MmlMtd,_a$b[maligngroup_js_1.MmlMaligngroup.prototype.kind]=maligngroup_js_1.MmlMaligngroup,_a$b[malignmark_js_1.MmlMalignmark.prototype.kind]=malignmark_js_1.MmlMalignmark,_a$b[mglyph_js_1$2.MmlMglyph.prototype.kind]=mglyph_js_1$2.MmlMglyph,_a$b[semantics_js_1$2.MmlSemantics.prototype.kind]=semantics_js_1$2.MmlSemantics,_a$b[semantics_js_1$2.MmlAnnotation.prototype.kind]=semantics_js_1$2.MmlAnnotation,_a$b[semantics_js_1$2.MmlAnnotationXML.prototype.kind]=semantics_js_1$2.MmlAnnotationXML,_a$b[TeXAtom_js_1$2.TeXAtom.prototype.kind]=TeXAtom_js_1$2.TeXAtom,_a$b[mathchoice_js_1.MathChoice.prototype.kind]=mathchoice_js_1.MathChoice,_a$b[MmlNode_js_1$l.TextNode.prototype.kind]=MmlNode_js_1$l.TextNode,_a$b[MmlNode_js_1$l.XMLNode.prototype.kind]=MmlNode_js_1$l.XMLNode,_a$b);var __extends$1N=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(MmlFactory$1,"__esModule",{value:!0});var MmlFactory_2=MmlFactory$1.MmlFactory=void 0,NodeFactory_js_1$2=NodeFactory$2,MML_js_1=MML,MmlFactory=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1N(t,e),Object.defineProperty(t.prototype,"MML",{get:function(){return this.node},enumerable:!1,configurable:!0}),t.defaultNodes=MML_js_1.MML,t}(NodeFactory_js_1$2.AbstractNodeFactory);MmlFactory_2=MmlFactory$1.MmlFactory=MmlFactory;var Visitor={},__values$Q=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$X=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$w=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(Visitor,"__esModule",{value:!0}),Visitor.AbstractVisitor=void 0;var Node_js_1=Node,AbstractVisitor=function(){function e(t){var r,n;this.nodeHandlers=new Map;try{for(var o=__values$Q(t.getKinds()),i=o.next();!i.done;i=o.next()){var a=i.value,s=this[e.methodName(a)];s&&this.nodeHandlers.set(a,s)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}return e.methodName=function(e){return"visit"+(e.charAt(0).toUpperCase()+e.substr(1)).replace(/[^a-z0-9_]/gi,"_")+"Node"},e.prototype.visitTree=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this.visitNode.apply(this,__spreadArray$w([e],__read$X(t),!1))},e.prototype.visitNode=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.nodeHandlers.get(e.kind)||this.visitDefault;return n.call.apply(n,__spreadArray$w([this,e],__read$X(t),!1))},e.prototype.visitDefault=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(e instanceof Node_js_1.AbstractNode)try{for(var i=__values$Q(e.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;this.visitNode.apply(this,__spreadArray$w([s],__read$X(n),!1))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.prototype.setNodeHandler=function(e,t){this.nodeHandlers.set(e,t)},e.prototype.removeNodeHandler=function(e){this.nodeHandlers.delete(e)},e}();Visitor.AbstractVisitor=AbstractVisitor;var __extends$1M=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(MmlVisitor$3,"__esModule",{value:!0}),MmlVisitor$3.MmlVisitor=void 0;var MmlFactory_js_1=MmlFactory$1,Visitor_js_1=Visitor,MmlVisitor$2=function(e){function t(t){return void 0===t&&(t=null),t||(t=new MmlFactory_js_1.MmlFactory),e.call(this,t)||this}return __extends$1M(t,e),t.prototype.visitTextNode=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r]},t.prototype.visitXMLNode=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r]},t}(Visitor_js_1.AbstractVisitor);MmlVisitor$3.MmlVisitor=MmlVisitor$2,function(e){var t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),r=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},n=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SerializedMmlVisitor=e.toEntity=e.DATAMJX=void 0;var o=MmlVisitor$3,i=MmlNode,a=mi$2;e.DATAMJX="data-mjx-";e.toEntity=function(e){return"&#x"+e.codePointAt(0).toString(16).toUpperCase()+";"};var s=function(o){function s(){return null!==o&&o.apply(this,arguments)||this}return t(s,o),s.prototype.visitTree=function(e){return this.visitNode(e,"")},s.prototype.visitTextNode=function(e,t){return this.quoteHTML(e.getText())},s.prototype.visitXMLNode=function(e,t){return t+e.getSerializedXML()},s.prototype.visitInferredMrowNode=function(e,t){var n,o,i=[];try{for(var a=r(e.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;i.push(this.visitNode(l,t))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i.join("\n")},s.prototype.visitTeXAtomNode=function(e,t){var r=this.childNodeMml(e,t+" ","\n");return t+"<mrow"+this.getAttributes(e)+">"+(r.match(/\S/)?"\n"+r+t:"")+"</mrow>"},s.prototype.visitAnnotationNode=function(e,t){return t+"<annotation"+this.getAttributes(e)+">"+this.childNodeMml(e,"","")+"</annotation>"},s.prototype.visitDefault=function(e,t){var r=e.kind,o=n(e.isToken||0===e.childNodes.length?["",""]:["\n",t],2),i=o[0],a=o[1],s=this.childNodeMml(e,t+" ",i);return t+"<"+r+this.getAttributes(e)+">"+(s.match(/\S/)?i+s+a:"")+"</"+r+">"},s.prototype.childNodeMml=function(e,t,n){var o,i,a="";try{for(var s=r(e.childNodes),l=s.next();!l.done;l=s.next()){var c=l.value;a+=this.visitNode(c,t)+n}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a},s.prototype.getAttributes=function(e){var t,n,o=[],i=this.constructor.defaultAttributes[e.kind]||{},a=Object.assign({},i,this.getDataAttributes(e),e.attributes.getAllAttributes()),s=this.constructor.variants;a.hasOwnProperty("mathvariant")&&s.hasOwnProperty(a.mathvariant)&&(a.mathvariant=s[a.mathvariant]);try{for(var l=r(Object.keys(a)),c=l.next();!c.done;c=l.next()){var u=c.value,d=String(a[u]);void 0!==d&&o.push(u+'="'+this.quoteHTML(d)+'"')}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return o.length?" "+o.join(" "):""},s.prototype.getDataAttributes=function(e){var t={},r=e.attributes.getExplicit("mathvariant"),n=this.constructor.variants;r&&n.hasOwnProperty(r)&&this.setDataAttribute(t,"variant",r),e.getProperty("variantForm")&&this.setDataAttribute(t,"alternate","1"),e.getProperty("pseudoscript")&&this.setDataAttribute(t,"pseudoscript","true"),!1===e.getProperty("autoOP")&&this.setDataAttribute(t,"auto-op","false");var o=e.getProperty("scriptalign");o&&this.setDataAttribute(t,"script-align",o);var s=e.getProperty("texClass");if(void 0!==s){var l=!0;if(s===i.TEXCLASS.OP&&e.isKind("mi")){var c=e.getText();l=!(c.length>1&&c.match(a.MmlMi.operatorName))}l&&this.setDataAttribute(t,"texclass",s<0?"NONE":i.TEXCLASSNAMES[s])}return e.getProperty("scriptlevel")&&!1===e.getProperty("useHeight")&&this.setDataAttribute(t,"smallmatrix","true"),t},s.prototype.setDataAttribute=function(t,r,n){t[e.DATAMJX+r]=n},s.prototype.quoteHTML=function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,e.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,e.toEntity)},s.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},s.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},s}(o.MmlVisitor);e.SerializedMmlVisitor=s}(SerializedMmlVisitor),getDefaultExportFromCjs$1(SerializedMmlVisitor);var Options={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var o={}.constructor;function i(e){return"object"==typeof e&&null!==e&&(e.constructor===o||e.constructor===a)}e.isObject=i,e.APPEND="[+]",e.REMOVE="[-]",e.OPTIONS={invalidOption:"warn",optionError:function(t,r){if("fatal"===e.OPTIONS.invalidOption)throw new Error(t);console.warn("MathJax: "+t)}};var a=function(){};function s(e){return Object.assign(Object.create(a.prototype),e)}function l(e){return e?Object.keys(e).concat(Object.getOwnPropertySymbols(e)):[]}function c(e){var r,n,o={};try{for(var d=t(l(e)),p=d.next();!p.done;p=d.next()){var m=p.value,h=Object.getOwnPropertyDescriptor(e,m),f=h.value;Array.isArray(f)?h.value=u([],f,!1):i(f)&&(h.value=c(f)),h.enumerable&&(o[m]=h)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}return Object.defineProperties(e.constructor===a?s({}):{},o)}function u(o,s,d){var p,m;void 0===d&&(d=!0);var h=function(t){if(d&&void 0===o[t]&&o.constructor!==a)return"symbol"==typeof t&&(t=t.toString()),e.OPTIONS.optionError('Invalid option "'.concat(t,'" (no default value).'),t),"continue";var p=s[t],m=o[t];if(!i(p)||null===m||"object"!=typeof m&&"function"!=typeof m)Array.isArray(p)?(o[t]=[],u(o[t],p,!1)):i(p)?o[t]=c(p):o[t]=p;else{var h=l(p);Array.isArray(m)&&(1===h.length&&(h[0]===e.APPEND||h[0]===e.REMOVE)&&Array.isArray(p[h[0]])||2===h.length&&h.sort().join(",")===e.APPEND+","+e.REMOVE&&Array.isArray(p[e.APPEND])&&Array.isArray(p[e.REMOVE]))?(p[e.REMOVE]&&(m=o[t]=m.filter((function(t){return p[e.REMOVE].indexOf(t)<0}))),p[e.APPEND]&&(o[t]=n(n([],r(m),!1),r(p[e.APPEND]),!1))):u(m,p,d)}};try{for(var f=t(l(s)),_=f.next();!_.done;_=f.next()){h(_.value)}}catch(e){p={error:e}}finally{try{_&&!_.done&&(m=f.return)&&m.call(f)}finally{if(p)throw p.error}}return o}function d(e){for(var r,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var a={};try{for(var s=t(o),l=s.next();!l.done;l=s.next()){var c=l.value;e.hasOwnProperty(c)&&(a[c]=e[c])}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return a}e.Expandable=a,e.expandable=s,e.makeArray=function(e){return Array.isArray(e)?e:[e]},e.keys=l,e.copy=c,e.insert=u,e.defaultOptions=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach((function(t){return u(e,t,!1)})),e},e.userOptions=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach((function(t){return u(e,t,!0)})),e},e.selectOptions=d,e.selectOptionsFromKeys=function(e,t){return d.apply(void 0,n([e],r(Object.keys(t)),!1))},e.separateOptions=function(e){for(var r,n,o,i,a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];var l=[];try{for(var c=t(a),u=c.next();!u.done;u=c.next()){var d=u.value,p={},m={};try{for(var h=(o=void 0,t(Object.keys(e||{}))),f=h.next();!f.done;f=h.next()){var _=f.value;(void 0===d[_]?m:p)[_]=e[_]}}catch(e){o={error:e}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}l.push(p),e=m}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return l.unshift(e),l},e.lookup=function(e,t,r){return void 0===r&&(r=null),t.hasOwnProperty(e)?t[e]:r}}(Options),getDefaultExportFromCjs$1(Options);var __extends$1L=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$e=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$e.apply(this,arguments)},__read$W=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$v=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$P=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(assistiveMml,"__esModule",{value:!0});var AssistiveMmlHandler_1=assistiveMml.AssistiveMmlHandler=assistiveMml.AssistiveMmlMathDocumentMixin=assistiveMml.AssistiveMmlMathItemMixin=assistiveMml.LimitedMmlVisitor=void 0,MathItem_js_1$7=MathItem,SerializedMmlVisitor_js_1$2=SerializedMmlVisitor,Options_js_1$i=Options,LimitedMmlVisitor=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1L(t,e),t.prototype.getAttributes=function(t){return e.prototype.getAttributes.call(this,t).replace(/ ?id=".*?"/,"")},t}(SerializedMmlVisitor_js_1$2.SerializedMmlVisitor);function AssistiveMmlMathItemMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1L(t,e),t.prototype.assistiveMml=function(e,t){if(void 0===t&&(t=!1),!(this.state()>=MathItem_js_1$7.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(e.options.enableAssistiveMml||t)){var r=e.adaptor,n=e.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),o=r.firstChild(r.body(r.parse(n,"text/html"))),i=r.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[o]);r.setAttribute(r.firstChild(this.typesetRoot),"aria-hidden","true"),r.setStyle(this.typesetRoot,"position","relative"),r.append(this.typesetRoot,i)}this.state(MathItem_js_1$7.STATE.ASSISTIVEMML)}},t}(e)}function AssistiveMmlMathDocumentMixin(e){var t;return t=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$v([],__read$W(t),!1))||this,o=n.constructor,i=o.ProcessBits;return i.has("assistive-mml")||i.allocate("assistive-mml"),n.visitor=new LimitedMmlVisitor(n.mmlFactory),n.options.MathItem=AssistiveMmlMathItemMixin(n.options.MathItem),"addStyles"in n&&n.addStyles(o.assistiveStyles),n}return __extends$1L(t,e),t.prototype.toMML=function(e){return this.visitor.visitTree(e)},t.prototype.assistiveMml=function(){var e,t;if(!this.processed.isSet("assistive-mml")){try{for(var r=__values$P(this.math),n=r.next();!n.done;n=r.next()){n.value.assistiveMml(this)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.processed.set("assistive-mml")}return this},t.prototype.state=function(t,r){return void 0===r&&(r=!1),e.prototype.state.call(this,t,r),t<MathItem_js_1$7.STATE.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this},t}(e),t.OPTIONS=__assign$e(__assign$e({},e.OPTIONS),{enableAssistiveMml:!0,renderActions:(0,Options_js_1$i.expandable)(__assign$e(__assign$e({},e.OPTIONS.renderActions),{assistiveMml:[MathItem_js_1$7.STATE.ASSISTIVEMML]}))}),t.assistiveStyles={"mjx-assistive-mml":{position:"absolute !important",top:"0px",left:"0px",clip:"rect(1px, 1px, 1px, 1px)",padding:"1px 0px 0px 0px !important",border:"0px !important",display:"block !important",width:"auto !important",overflow:"hidden !important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},'mjx-assistive-mml[display="block"]':{width:"100% !important"}},t}function AssistiveMmlHandler(e){return e.documentClass=AssistiveMmlMathDocumentMixin(e.documentClass),e}assistiveMml.LimitedMmlVisitor=LimitedMmlVisitor,(0,MathItem_js_1$7.newState)("ASSISTIVEMML",153),assistiveMml.AssistiveMmlMathItemMixin=AssistiveMmlMathItemMixin,assistiveMml.AssistiveMmlMathDocumentMixin=AssistiveMmlMathDocumentMixin,AssistiveMmlHandler_1=assistiveMml.AssistiveMmlHandler=AssistiveMmlHandler;var semanticEnrich={},sre={},system={},engine={},dynamic_cstr={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultComparator=e.DynamicCstrParser=e.DynamicCstr=e.DynamicProperties=e.Axis=void 0,function(e){e.DOMAIN="domain",e.STYLE="style",e.LOCALE="locale",e.TOPIC="topic",e.MODALITY="modality"}(t=e.Axis||(e.Axis={}));class r{constructor(e,t=Object.keys(e)){this.properties=e,this.order=t}static createProp(...e){const t=n.DEFAULT_ORDER,o={};for(let r=0,n=e.length,i=t.length;r<n&&r<i;r++)o[t[r]]=e[r];return new r(o)}getProperties(){return this.properties}getOrder(){return this.order}getAxes(){return this.order}getProperty(e){return this.properties[e]}updateProperties(e){this.properties=e}allProperties(){const e=[];return this.order.forEach((t=>e.push(this.getProperty(t).slice()))),e}toString(){const e=[];return this.order.forEach((t=>e.push(t+": "+this.getProperty(t).toString()))),e.join("\n")}}e.DynamicProperties=r;class n extends r{constructor(e,t){const r={};for(const[t,n]of Object.entries(e))r[t]=[n];super(r,t),this.components=e}static createCstr(...e){const t=n.DEFAULT_ORDER,r={};for(let n=0,o=e.length,i=t.length;n<o&&n<i;n++)r[t[n]]=e[n];return new n(r)}static defaultCstr(){return n.createCstr.apply(null,n.DEFAULT_ORDER.map((function(e){return n.DEFAULT_VALUES[e]})))}static validOrder(e){const t=n.DEFAULT_ORDER.slice();return e.every((e=>{const r=t.indexOf(e);return-1!==r&&t.splice(r,1)}))}getComponents(){return this.components}getValue(e){return this.components[e]}getValues(){return this.order.map((e=>this.getValue(e)))}allProperties(){const e=super.allProperties();for(let t,r,n=0;t=e[n],r=this.order[n];n++){const e=this.getValue(r);-1===t.indexOf(e)&&t.unshift(e)}return e}toString(){return this.getValues().join(".")}equal(e){const t=e.getAxes();if(this.order.length!==t.length)return!1;for(let r,n=0;r=t[n];n++){const t=this.getValue(r);if(!t||e.getValue(r)!==t)return!1}return!0}}e.DynamicCstr=n,n.DEFAULT_ORDER=[t.LOCALE,t.MODALITY,t.DOMAIN,t.STYLE,t.TOPIC],n.BASE_LOCALE="base",n.DEFAULT_VALUE="default",n.DEFAULT_VALUES={[t.LOCALE]:"en",[t.DOMAIN]:n.DEFAULT_VALUE,[t.STYLE]:n.DEFAULT_VALUE,[t.TOPIC]:n.DEFAULT_VALUE,[t.MODALITY]:"speech"};e.DynamicCstrParser=class{constructor(e){this.order=e}parse(e){const t=e.split("."),r={};if(t.length>this.order.length)throw new Error("Invalid dynamic constraint: "+r);let o=0;for(let e,n=0;e=this.order[n],t.length;n++,o++){const n=t.shift();r[e]=n}return new n(r,this.order.slice(0,o))}};e.DefaultComparator=class{constructor(e,t=new r(e.getProperties(),e.getOrder())){this.reference=e,this.fallback=t,this.order=this.reference.getOrder()}getReference(){return this.reference}setReference(e,t){this.reference=e,this.fallback=t||new r(e.getProperties(),e.getOrder()),this.order=this.reference.getOrder()}match(e){const t=e.getAxes();return t.length===this.reference.getAxes().length&&t.every((t=>{const r=e.getValue(t);return r===this.reference.getValue(t)||-1!==this.fallback.getProperty(t).indexOf(r)}))}compare(e,t){let r=!1;for(let n,o=0;n=this.order[o];o++){const o=e.getValue(n),i=t.getValue(n);if(!r){const e=this.reference.getValue(n);if(e===o&&e!==i)return-1;if(e===i&&e!==o)return 1;if(e===o&&e===i)continue;e!==o&&e!==i&&(r=!0)}const a=this.fallback.getProperty(n),s=a.indexOf(o),l=a.indexOf(i);if(s<l)return-1;if(l<s)return 1}return 0}toString(){return this.reference.toString()+"\n"+this.fallback.toString()}}}(dynamic_cstr),getDefaultExportFromCjs$1(dynamic_cstr);var engine_const={},exports,Mode,personalityProps,Speech,Markup;exports=engine_const,Object.defineProperty(exports,"__esModule",{value:!0}),exports.DOMAIN_TO_STYLES=exports.Markup=exports.Speech=exports.personalityPropList=exports.personalityProps=exports.Mode=void 0,(Mode=exports.Mode||(exports.Mode={})).SYNC="sync",Mode.ASYNC="async",Mode.HTTP="http",function(e){e.PITCH="pitch",e.RATE="rate",e.VOLUME="volume",e.PAUSE="pause",e.JOIN="join",e.LAYOUT="layout"}(personalityProps=exports.personalityProps||(exports.personalityProps={})),exports.personalityPropList=[personalityProps.PITCH,personalityProps.RATE,personalityProps.VOLUME,personalityProps.PAUSE,personalityProps.JOIN],(Speech=exports.Speech||(exports.Speech={})).NONE="none",Speech.SHALLOW="shallow",Speech.DEEP="deep",(Markup=exports.Markup||(exports.Markup={})).NONE="none",Markup.LAYOUT="layout",Markup.PUNCTUATION="punctuation",Markup.SSML="ssml",Markup.SSML_STEP="ssml_step",Markup.ACSS="acss",Markup.SABLE="sable",Markup.VOICEXML="voicexml",exports.DOMAIN_TO_STYLES={mathspeak:"default",clearspeak:"default"},getDefaultExportFromCjs$1(engine_const);var _debugger={},system_external={},variables={};Object.defineProperty(variables,"__esModule",{value:!0}),variables.Variables=void 0;class Variables{static ensureLocale(e,t){return Variables.LOCALES.get(e)?e:(console.error(`Locale ${e} does not exist! Using ${Variables.LOCALES.get(t)} instead.`),t)}}variables.Variables=Variables,Variables.VERSION="4.0.6",Variables.LOCALES=new Map([["ca","Catalan"],["da","Danish"],["de","German"],["en","English"],["es","Spanish"],["fr","French"],["hi","Hindi"],["it","Italian"],["nb","Bokmål"],["nn","Nynorsk"],["sv","Swedish"],["nemeth","Nemeth"]]),Variables.mathjaxVersion="3.2.1",Variables.url="https://cdn.jsdelivr.net/npm/speech-rule-engine@"+Variables.VERSION+"/lib/mathmaps",Variables.WGXpath="https://cdn.jsdelivr.net/npm/wicked-good-xpath@1.3.0/dist/wgxpath.install.js",Object.defineProperty(system_external,"__esModule",{value:!0});const variables_1$1=variables;class SystemExternal{static extRequire(library){if("undefined"!=typeof process&&void 0!==commonjsRequire){const nodeRequire=eval("require");return nodeRequire(library)}return null}}system_external.default=SystemExternal,SystemExternal.windowSupported=!("undefined"==typeof window),SystemExternal.documentSupported=SystemExternal.windowSupported&&!(void 0===window.document),SystemExternal.xmldom=SystemExternal.documentSupported?window:SystemExternal.extRequire("xmldom-sre"),SystemExternal.document=SystemExternal.documentSupported?window.document:(new SystemExternal.xmldom.DOMImplementation).createDocument("","",0),SystemExternal.xpath=SystemExternal.documentSupported?document:function(){const e={document:{},XPathResult:{}};return SystemExternal.extRequire("wicked-good-xpath").install(e),e.document.XPathResult=e.XPathResult,e.document}(),SystemExternal.mathmapsIePath="https://cdn.jsdelivr.net/npm/sre-mathmaps-ie@"+variables_1$1.Variables.VERSION+"mathmaps_ie.js",SystemExternal.commander=SystemExternal.documentSupported?null:SystemExternal.extRequire("commander"),SystemExternal.fs=SystemExternal.documentSupported?null:SystemExternal.extRequire("fs"),SystemExternal.url=variables_1$1.Variables.url,SystemExternal.jsonPath=(SystemExternal.documentSupported?SystemExternal.url:process.env.SRE_JSON_PATH||commonjsGlobal.SRE_JSON_PATH||("undefined"!=typeof __dirname?__dirname+"/mathmaps":process.cwd()))+"/",SystemExternal.WGXpath=variables_1$1.Variables.WGXpath,SystemExternal.wgxpath=null,Object.defineProperty(_debugger,"__esModule",{value:!0}),_debugger.Debugger=void 0;const system_external_1$4=system_external;class Debugger{constructor(){this.isActive_=!1,this.outputFunction_=console.info,this.fileHandle=Promise.resolve(),this.stream_=null}static getInstance(){return Debugger.instance=Debugger.instance||new Debugger,Debugger.instance}init(e){return e&&this.startDebugFile_(e),this.isActive_=!0,this.fileHandle}output(...e){this.isActive_&&this.output_(e)}generateOutput(e){this.isActive_&&this.output_(e.apply(e,[]))}exit(e=(()=>{})){this.fileHandle.then((()=>{this.isActive_&&this.stream_&&this.stream_.end("","",e)}))}startDebugFile_(e){this.fileHandle=system_external_1$4.default.fs.promises.open(e,"w"),this.fileHandle=this.fileHandle.then((t=>{this.stream_=t.createWriteStream(e),this.outputFunction_=function(...e){this.stream_.write(e.join(" ")),this.stream_.write("\n")}.bind(this),this.stream_.on("error",function(e){console.info("Invalid log file. Debug information sent to console."),this.outputFunction_=console.info}.bind(this)),this.stream_.on("finish",(function(){console.info("Finalizing debug file.")}))}))}output_(e){console.info!==this.outputFunction_?this.fileHandle.then((()=>this.outputFunction_.apply(this.outputFunction_,["Speech Rule Engine Debugger:"].concat(e)))):this.outputFunction_.apply(console,["Speech Rule Engine Debugger:"].concat(e))}}_debugger.Debugger=Debugger,Object.defineProperty(engine,"__esModule",{value:!0}),engine.EnginePromise=engine.SREError=void 0;const Dcstr=dynamic_cstr,EngineConst$d=engine_const,debugger_1$7=_debugger,variables_1=variables;class SREError extends Error{constructor(e=""){super(),this.message=e,this.name="SRE Error"}}engine.SREError=SREError;class Engine{constructor(){this.customLoader=null,this.parsers={},this.comparator=null,this.mode=EngineConst$d.Mode.SYNC,this.init=!0,this.delay=!1,this.comparators={},this.domain="mathspeak",this.style=Dcstr.DynamicCstr.DEFAULT_VALUES[Dcstr.Axis.STYLE],this._defaultLocale=Dcstr.DynamicCstr.DEFAULT_VALUES[Dcstr.Axis.LOCALE],this.locale=this.defaultLocale,this.subiso="",this.modality=Dcstr.DynamicCstr.DEFAULT_VALUES[Dcstr.Axis.MODALITY],this.speech=EngineConst$d.Speech.NONE,this.markup=EngineConst$d.Markup.NONE,this.walker="Table",this.structure=!1,this.ruleSets=[],this.strict=!1,this.isIE=!1,this.isEdge=!1,this.rate="100",this.pprint=!1,this.config=!1,this.rules="",this.prune="",this.evaluator=Engine.defaultEvaluator,this.defaultParser=new Dcstr.DynamicCstrParser(Dcstr.DynamicCstr.DEFAULT_ORDER),this.parser=this.defaultParser,this.dynamicCstr=Dcstr.DynamicCstr.defaultCstr()}set defaultLocale(e){this._defaultLocale=variables_1.Variables.ensureLocale(e,this._defaultLocale)}get defaultLocale(){return this._defaultLocale}static getInstance(){return Engine.instance=Engine.instance||new Engine,Engine.instance}static defaultEvaluator(e,t){return e}static evaluateNode(e){return Engine.nodeEvaluator(e)}getRate(){const e=parseInt(this.rate,10);return isNaN(e)?100:e}setDynamicCstr(e){if(this.defaultLocale&&(Dcstr.DynamicCstr.DEFAULT_VALUES[Dcstr.Axis.LOCALE]=this.defaultLocale),e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];if(-1!==Dcstr.DynamicCstr.DEFAULT_ORDER.indexOf(n)){const t=e[n];this[n]=t}}}EngineConst$d.DOMAIN_TO_STYLES[this.domain]=this.style;const t=[this.locale,this.modality,this.domain,this.style].join("."),r=Dcstr.DynamicProperties.createProp([Dcstr.DynamicCstr.DEFAULT_VALUES[Dcstr.Axis.LOCALE]],[Dcstr.DynamicCstr.DEFAULT_VALUES[Dcstr.Axis.MODALITY]],[Dcstr.DynamicCstr.DEFAULT_VALUES[Dcstr.Axis.DOMAIN]],[Dcstr.DynamicCstr.DEFAULT_VALUES[Dcstr.Axis.STYLE]]),n=this.comparators[this.domain],o=this.parsers[this.domain];this.parser=o||this.defaultParser,this.dynamicCstr=this.parser.parse(t),this.dynamicCstr.updateProperties(r.getProperties()),this.comparator=n?n():new Dcstr.DefaultComparator(this.dynamicCstr)}configurate(e){this.mode!==EngineConst$d.Mode.HTTP||this.config||(configBlocks(e),this.config=!0),configFeature(e)}setCustomLoader(e){e&&(this.customLoader=e)}}function configFeature(e){if("undefined"!=typeof SREfeature)for(const[t,r]of Object.entries(SREfeature))e[t]=r}function configBlocks(e){const t=document.documentElement.querySelectorAll('script[type="text/x-sre-config"]');for(let r=0,n=t.length;r<n;r++){let n;try{n=t[r].innerHTML;const o=JSON.parse(n);for(const t in o)e[t]=o[t]}catch(e){debugger_1$7.Debugger.getInstance().output("Illegal configuration ",n)}}}engine.default=Engine,Engine.BINARY_FEATURES=["strict","structure","pprint"],Engine.STRING_FEATURES=["markup","style","domain","speech","walker","defaultLocale","locale","delay","modality","rate","rules","subiso","prune"],Engine.nodeEvaluator=function(e){return[]};class EnginePromise{static get(e=Engine.getInstance().locale){return EnginePromise.promises[e]||Promise.resolve("")}static getall(){return Promise.all(Object.values(EnginePromise.promises))}}engine.EnginePromise=EnginePromise,EnginePromise.loaded={},EnginePromise.promises={};var engine_setup={},l10n={},grammar={},dom_util={},xpath_util={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.updateEvaluator=e.evaluateString=e.evaluateBoolean=e.getLeafNodes=e.evalXPath=e.resolveNameSpace=e.xpath=void 0;const t=engine,r=engine_const,n=system_external;function o(){return"undefined"!=typeof XPathResult}e.xpath={currentDocument:null,evaluate:o()?document.evaluate:n.default.xpath.evaluate,result:o()?XPathResult:n.default.xpath.XPathResult,createNSResolver:o()?document.createNSResolver:n.default.xpath.createNSResolver};const i={xhtml:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",mml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function a(e){return i[e]||null}e.resolveNameSpace=a;class s{constructor(){this.lookupNamespaceURI=a}}function l(n,o,i){return t.default.getInstance().mode!==r.Mode.HTTP||t.default.getInstance().isIE||t.default.getInstance().isEdge?e.xpath.evaluate(n,o,new s,i,null):e.xpath.currentDocument.evaluate(n,o,a,i,null)}function c(t,r){let n;try{n=l(t,r,e.xpath.result.ORDERED_NODE_ITERATOR_TYPE)}catch(e){return[]}const o=[];for(let e=n.iterateNext();e;e=n.iterateNext())o.push(e);return o}e.evalXPath=c,e.getLeafNodes=function(e){return c(".//*[count(*)=0]",e)},e.evaluateBoolean=function(t,r){let n;try{n=l(t,r,e.xpath.result.BOOLEAN_TYPE)}catch(e){return!1}return n.booleanValue},e.evaluateString=function(t,r){let n;try{n=l(t,r,e.xpath.result.STRING_TYPE)}catch(e){return""}return n.stringValue},e.updateEvaluator=function(n){if(t.default.getInstance().mode!==r.Mode.HTTP)return;let o=n;for(;o&&!o.evaluate;)o=o.parentNode;o&&o.evaluate?e.xpath.currentDocument=o:n.ownerDocument&&(e.xpath.currentDocument=n.ownerDocument)}}(xpath_util),getDefaultExportFromCjs$1(xpath_util),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeXml=e.cloneNode=e.tagName=e.querySelectorAll=e.querySelectorAllByAttrValue=e.querySelectorAllByAttr=e.formatXml=e.createTextNode=e.createElementNS=e.createElement=e.replaceNode=e.NodeType=e.parseInput=e.XML_ENTITIES=e.trimInput_=e.toArray=void 0;const t=engine,r=engine_const,n=system_external,o=xpath_util;function i(e){const t=[];for(let r=0,n=e.length;r<n;r++)t.push(e[r]);return t}function a(e){return(e=e.replace(/ /g," ")).replace(/>[ \f\n\r\t\v\u200b]+</g,"><").trim()}var s;function l(e,t){if(!t)return[!1,""];const r=e.match(/^<([^> ]+).*>/),n=t.match(/^<\/([^>]+)>(.*)/);return r&&n&&r[1]===n[1]?[!0,n[2]]:[!1,""]}e.toArray=i,e.trimInput_=a,e.XML_ENTITIES={"<":!0,">":!0,"&":!0,""":!0,"'":!0},e.parseInput=function(e){const i=new n.default.xmldom.DOMParser,s=a(e),l=!!s.match(/&(?!lt|gt|amp|quot|apos)\w+;/g);if(!s)throw new Error("Empty input!");try{const e=i.parseFromString(s,l?"text/html":"text/xml");return t.default.getInstance().mode===r.Mode.HTTP?(o.xpath.currentDocument=e,l?e.body.childNodes[0]:e.documentElement):e.documentElement}catch(e){throw new t.SREError("Illegal input: "+e.message)}},(s=e.NodeType||(e.NodeType={}))[s.ELEMENT_NODE=1]="ELEMENT_NODE",s[s.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",s[s.TEXT_NODE=3]="TEXT_NODE",s[s.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",s[s.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",s[s.ENTITY_NODE=6]="ENTITY_NODE",s[s.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",s[s.COMMENT_NODE=8]="COMMENT_NODE",s[s.DOCUMENT_NODE=9]="DOCUMENT_NODE",s[s.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",s[s.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",s[s.NOTATION_NODE=12]="NOTATION_NODE",e.replaceNode=function(e,t){e.parentNode&&(e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e))},e.createElement=function(e){return n.default.document.createElement(e)},e.createElementNS=function(e,t){return n.default.document.createElementNS(e,t)},e.createTextNode=function(e){return n.default.document.createTextNode(e)},e.formatXml=function(e){let t="",r=/(>)(<)(\/*)/g,n=0,o=(e=e.replace(r,"$1\r\n$2$3")).split("\r\n");for(r=/(\.)*(<)(\/*)/g,o=o.map((e=>e.replace(r,"$1\r\n$2$3").split("\r\n"))).reduce(((e,t)=>e.concat(t)),[]);o.length;){let e=o.shift();if(!e)continue;let r=0;if(e.match(/^<\w[^>/]*>[^>]+$/)){const t=l(e,o[0]);t[0]?t[1]?(e+=o.shift().slice(0,-t[1].length),t[1].trim()&&o.unshift(t[1])):e+=o.shift():r=1}else if(e.match(/^<\/\w/))0!==n&&(n-=1);else if(e.match(/^<\w[^>]*[^/]>.*$/))r=1;else if(e.match(/^<\w[^>]*\/>.+$/)){const t=e.indexOf(">")+1;e.slice(t).trim()&&o.unshift(),e=e.slice(0,t)}else r=0;t+=new Array(n+1).join(" ")+e+"\r\n",n+=r}return t},e.querySelectorAllByAttr=function(e,t){return e.querySelectorAll?i(e.querySelectorAll(`[${t}]`)):o.evalXPath(`.//*[@${t}]`,e)},e.querySelectorAllByAttrValue=function(e,t,r){return e.querySelectorAll?i(e.querySelectorAll(`[${t}="${r}"]`)):o.evalXPath(`.//*[@${t}="${r}"]`,e)},e.querySelectorAll=function(e,t){return e.querySelectorAll?i(e.querySelectorAll(t)):o.evalXPath(`.//${t}`,e)},e.tagName=function(e){return e.tagName.toUpperCase()},e.cloneNode=function(e){return e.cloneNode(!0)},e.serializeXml=function(e){return(new n.default.xmldom.XMLSerializer).serializeToString(e)}}(dom_util),getDefaultExportFromCjs$1(dom_util);var locale_util={},locale$d={},messages={},transformers={};!function(e){function t(e,t=""){if(!e.childNodes||!e.childNodes[0]||!e.childNodes[0].childNodes||e.childNodes[0].childNodes.length<2||"number"!==e.childNodes[0].childNodes[0].tagName||"integer"!==e.childNodes[0].childNodes[0].getAttribute("role")||"number"!==e.childNodes[0].childNodes[1].tagName||"integer"!==e.childNodes[0].childNodes[1].getAttribute("role"))return{convertible:!1,content:e.textContent};const r=e.childNodes[0].childNodes[1].textContent,n=e.childNodes[0].childNodes[0].textContent,o=Number(r),i=Number(n);return isNaN(o)||isNaN(i)?{convertible:!1,content:`${n} ${t} ${r}`}:{convertible:!0,enumerator:i,denominator:o}}Object.defineProperty(e,"__esModule",{value:!0}),e.vulgarFractionSmall=e.convertVulgarFraction=e.Combiners=e.siCombiner=e.identityTransformer=e.pluralCase=void 0,e.pluralCase=function(e,t){return e.toString()},e.identityTransformer=function(e){return e.toString()},e.siCombiner=function(e,t){return e+t.toLowerCase()},e.Combiners={},e.Combiners.identityCombiner=function(e,t,r){return e+t+r},e.Combiners.prefixCombiner=function(e,t,r){return e=r?r+" "+e:e,t?t+" "+e:e},e.Combiners.postfixCombiner=function(e,t,r){return e=r?r+" "+e:e,t?e+" "+t:e},e.Combiners.romanceCombiner=function(e,t,r){return e=r?e+" "+r:e,t?e+" "+t:e},e.convertVulgarFraction=t,e.vulgarFractionSmall=function(e,r,n){const o=t(e);if(o.convertible){const e=o.enumerator,t=o.denominator;return e>0&&e<r&&t>0&&t<n}return!1}}(transformers),getDefaultExportFromCjs$1(transformers),Object.defineProperty(messages,"__esModule",{value:!0}),messages.SUBISO=messages.FUNCTIONS=messages.ALPHABETS=messages.NUMBERS=messages.MESSAGES=void 0;const tr$5=transformers;function MESSAGES(){return{MS:{},MSroots:{},font:{},embellish:{},role:{},enclose:{},navigate:{},regexp:{},unitTimes:""}}function NUMBERS$b(){return{zero:"zero",ones:[],tens:[],large:[],special:{},wordOrdinal:tr$5.identityTransformer,numericOrdinal:tr$5.identityTransformer,numberToWords:tr$5.identityTransformer,numberToOrdinal:tr$5.pluralCase,vulgarSep:" ",numSep:" "}}function ALPHABETS(){return{latinSmall:[],latinCap:[],greekSmall:[],greekCap:[],capPrefix:{default:""},smallPrefix:{default:""},digitPrefix:{default:""},languagePrefix:{},digitTrans:{default:tr$5.identityTransformer,mathspeak:tr$5.identityTransformer,clearspeak:tr$5.identityTransformer},letterTrans:{default:tr$5.identityTransformer},combiner:(e,t,r)=>e}}function FUNCTIONS(){return{fracNestDepth:e=>tr$5.vulgarFractionSmall(e,10,100),radicalNestDepth:e=>"",combineRootIndex:function(e,t){return e},combineNestedFraction:tr$5.Combiners.identityCombiner,combineNestedRadical:tr$5.Combiners.identityCombiner,fontRegexp:function(e){return new RegExp("^"+e.split(/ |-/).join("( |-)")+"( |-)")},si:tr$5.siCombiner,plural:tr$5.identityTransformer}}function SUBISO(){return{default:"",current:"",all:[]}}messages.MESSAGES=MESSAGES,messages.NUMBERS=NUMBERS$b,messages.ALPHABETS=ALPHABETS,messages.FUNCTIONS=FUNCTIONS,messages.SUBISO=SUBISO,Object.defineProperty(locale$d,"__esModule",{value:!0}),locale$d.createLocale=locale$d.LOCALE=void 0;const messages_1$b=messages;function createLocale(){return{FUNCTIONS:(0,messages_1$b.FUNCTIONS)(),MESSAGES:(0,messages_1$b.MESSAGES)(),ALPHABETS:(0,messages_1$b.ALPHABETS)(),NUMBERS:(0,messages_1$b.NUMBERS)(),COMBINERS:{},CORRECTIONS:{},SUBISO:(0,messages_1$b.SUBISO)()}}locale$d.LOCALE=createLocale(),locale$d.createLocale=createLocale,Object.defineProperty(locale_util,"__esModule",{value:!0}),locale_util.localeFontCombiner=locale_util.extractString=locale_util.localEnclose=locale_util.localRole=locale_util.localFont=locale_util.combinePostfixIndex=locale_util.nestingToString=void 0;const locale_1$h=locale$d,transformers_1$7=transformers;function nestingToString(e){switch(e){case 1:return locale_1$h.LOCALE.MESSAGES.MS.ONCE||"";case 2:return locale_1$h.LOCALE.MESSAGES.MS.TWICE;default:return e.toString()}}function combinePostfixIndex(e,t){return e===locale_1$h.LOCALE.MESSAGES.MS.ROOTINDEX||e===locale_1$h.LOCALE.MESSAGES.MS.INDEX?e:e+" "+t}function localFont(e){return extractString(locale_1$h.LOCALE.MESSAGES.font[e],e)}function localRole(e){return extractString(locale_1$h.LOCALE.MESSAGES.role[e],e)}function localEnclose(e){return extractString(locale_1$h.LOCALE.MESSAGES.enclose[e],e)}function extractString(e,t){return void 0===e?t:"string"==typeof e?e:e[0]}function localeFontCombiner(e){return"string"==typeof e?{font:e,combiner:locale_1$h.LOCALE.ALPHABETS.combiner}:{font:e[0],combiner:locale_1$h.LOCALE.COMBINERS[e[1]]||transformers_1$7.Combiners[e[1]]||locale_1$h.LOCALE.ALPHABETS.combiner}}locale_util.nestingToString=nestingToString,locale_util.combinePostfixIndex=combinePostfixIndex,locale_util.localFont=localFont,locale_util.localRole=localRole,locale_util.localEnclose=localEnclose,locale_util.extractString=extractString,locale_util.localeFontCombiner=localeFontCombiner,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numbersToAlpha=e.Grammar=e.ATTRIBUTE=void 0;const t=dom_util,r=engine,n=locale_util,o=locale$d;e.ATTRIBUTE="grammar";class i{constructor(){this.currentFlags={},this.parameters_={},this.corrections_={},this.preprocessors_={},this.stateStack_=[]}static getInstance(){return i.instance=i.instance||new i,i.instance}static parseInput(e){const t={},r=e.split(":");for(let e=0,n=r.length;e<n;e++){const n=r[e].split("="),o=n[0].trim();n[1]?t[o]=n[1].trim():o.match(/^!/)?t[o.slice(1)]=!1:t[o]=!0}return t}static parseState(e){const t={},r=e.split(" ");for(let e=0,n=r.length;e<n;e++){const n=r[e].split(":"),o=n[0],i=n[1];t[o]=i||!0}return t}static translateString_(e){if(e.match(/:unit$/))return i.translateUnit_(e);const t=r.default.getInstance();let n=t.evaluator(e,t.dynamicCstr);return n=null===n?e:n,i.getInstance().getParameter("plural")&&(n=o.LOCALE.FUNCTIONS.plural(n)),n}static translateUnit_(e){e=i.prepareUnit_(e);const t=r.default.getInstance(),n=i.getInstance().getParameter("plural"),a=t.strict,s=`${t.locale}.${t.modality}.default`;let l,c;return t.strict=!0,n&&(l=t.defaultParser.parse(s+".plural"),c=t.evaluator(e,l)),c?(t.strict=a,c):(l=t.defaultParser.parse(s+".default"),c=t.evaluator(e,l),t.strict=a,c?(n&&(c=o.LOCALE.FUNCTIONS.plural(c)),c):i.cleanUnit_(e))}static prepareUnit_(e){const t=e.match(/:unit$/);return t?e.slice(0,t.index).replace(/\s+/g," ")+e.slice(t.index):e}static cleanUnit_(e){return e.match(/:unit$/)?e.replace(/:unit$/,""):e}clear(){this.parameters_={},this.stateStack_=[]}setParameter(e,t){const r=this.parameters_[e];return t?this.parameters_[e]=t:delete this.parameters_[e],r}getParameter(e){return this.parameters_[e]}setCorrection(e,t){this.corrections_[e]=t}setPreprocessor(e,t){this.preprocessors_[e]=t}getCorrection(e){return this.corrections_[e]}getState(){const e=[];for(const t in this.parameters_){const r=this.parameters_[t];e.push("string"==typeof r?t+":"+r:t)}return e.join(" ")}pushState(e){for(const t in e)e[t]=this.setParameter(t,e[t]);this.stateStack_.push(e)}popState(){const e=this.stateStack_.pop();for(const t in e)this.setParameter(t,e[t])}setAttribute(r){if(r&&r.nodeType===t.NodeType.ELEMENT_NODE){const t=this.getState();t&&r.setAttribute(e.ATTRIBUTE,t)}}preprocess(e){return this.runProcessors_(e,this.preprocessors_)}correct(e){return this.runProcessors_(e,this.corrections_)}apply(e,t){return this.currentFlags=t||{},e=this.currentFlags.adjust||this.currentFlags.preprocess?i.getInstance().preprocess(e):e,(this.parameters_.translate||this.currentFlags.translate)&&(e=i.translateString_(e)),e=this.currentFlags.adjust||this.currentFlags.correct?i.getInstance().correct(e):e,this.currentFlags={},e}runProcessors_(e,t){for(const r in this.parameters_){const n=t[r];if(!n)continue;const o=this.parameters_[r];e=!0===o?n(e):n(e,o)}return e}}function a(e,t){if(!t||!e)return e;const r=o.LOCALE.FUNCTIONS.fontRegexp(n.localFont(t));return e.replace(r,"")}function s(e){return e.match(/\d+/)?o.LOCALE.NUMBERS.numberToWords(parseInt(e,10)):e}e.Grammar=i,e.numbersToAlpha=s,i.getInstance().setCorrection("localFont",n.localFont),i.getInstance().setCorrection("localRole",n.localRole),i.getInstance().setCorrection("localEnclose",n.localEnclose),i.getInstance().setCorrection("ignoreFont",a),i.getInstance().setPreprocessor("annotation",(function(e,t){return e+":"+t})),i.getInstance().setPreprocessor("noTranslateText",(function(e){return e.match(new RegExp("^["+o.LOCALE.MESSAGES.regexp.TEXT+"]+$"))&&(i.getInstance().currentFlags.translate=!1),e})),i.getInstance().setCorrection("ignoreCaps",(function(e){let t=o.LOCALE.ALPHABETS.capPrefix[r.default.getInstance().domain];return void 0===t&&(t=o.LOCALE.ALPHABETS.capPrefix.default),a(e,t)})),i.getInstance().setPreprocessor("numbers2alpha",s)}(grammar),getDefaultExportFromCjs$1(grammar);var locale_ca={},numbers_ca={};Object.defineProperty(numbers_ca,"__esModule",{value:!0});const grammar_1$b=grammar,messages_1$a=messages;function tensToWords_$1(e){const t=e%100;if(t<20)return NUMBERS$a.ones[t];const r=Math.floor(t/10),n=NUMBERS$a.tens[r],o=NUMBERS$a.ones[t%10];return n&&o?n+(2===r?"-i-":"-")+o:n||o}function hundredsToWords_$8(e){const t=e%1e3,r=Math.floor(t/100),n=r?1===r?"cent":NUMBERS$a.ones[r]+"-cents":"",o=tensToWords_$1(t%100);return n&&o?n+NUMBERS$a.numSep+o:n||o}function numberToWords$a(e){if(0===e)return NUMBERS$a.zero;if(e>=Math.pow(10,36))return e.toString();let t=0,r="";for(;e>0;){const n=e%(t>1?1e6:1e3);if(n){let e=NUMBERS$a.large[t];if(t)if(1===t)r=(1===n?"":hundredsToWords_$8(n)+NUMBERS$a.numSep)+e+(r?NUMBERS$a.numSep+r:"");else{const t=numberToWords$a(n);e=1===n?e:e.replace(/\u00f3$/,"ons"),r=t+NUMBERS$a.numSep+e+(r?NUMBERS$a.numSep+r:"")}else r=hundredsToWords_$8(n)}e=Math.floor(e/(t>1?1e6:1e3)),t++}return r}function numberToOrdinal$9(e,t){if(e>1999)return numericOrdinal$9(e);if(e<=10)return NUMBERS$a.special.onesOrdinals[e-1];const r=numberToWords$a(e);return r.match(/mil$/)?r.replace(/mil$/,"mil·lèsima"):r.match(/u$/)?r.replace(/u$/,"vena"):r.match(/a$/)?r.replace(/a$/,"ena"):r+(r.match(/e$/)?"na":"ena")}function numericOrdinal$9(e){const t=grammar_1$b.Grammar.getInstance().getParameter("gender");return e.toString()+("f"===t?"a":"n")}const NUMBERS$a=(0,messages_1$a.NUMBERS)();NUMBERS$a.numericOrdinal=numericOrdinal$9,NUMBERS$a.numberToWords=numberToWords$a,NUMBERS$a.numberToOrdinal=numberToOrdinal$9,numbers_ca.default=NUMBERS$a,Object.defineProperty(locale_ca,"__esModule",{value:!0}),locale_ca.ca=void 0;const locale_1$g=locale$d,locale_util_1$a=locale_util,numbers_ca_1=numbers_ca,transformers_1$6=transformers,sansserifCombiner$1=function(e,t,r){return e="sans serif "+(r?r+" "+e:e),t?e+" "+t:e};let locale$c=null;function ca(){return locale$c||(locale$c=create$b()),locale$c}function create$b(){const e=(0,locale_1$g.createLocale)();return e.NUMBERS=numbers_ca_1.default,e.COMBINERS.sansserif=sansserifCombiner$1,e.FUNCTIONS.fracNestDepth=e=>!1,e.FUNCTIONS.combineRootIndex=locale_util_1$a.combinePostfixIndex,e.FUNCTIONS.combineNestedRadical=(e,t,r)=>e+r,e.FUNCTIONS.fontRegexp=e=>RegExp("^"+e+" "),e.FUNCTIONS.plural=e=>/.*os$/.test(e)?e+"sos":/.*s$/.test(e)?e+"os":/.*ga$/.test(e)?e.slice(0,-2)+"gues":/.*ça$/.test(e)?e.slice(0,-2)+"ces":/.*ca$/.test(e)?e.slice(0,-2)+"ques":/.*ja$/.test(e)?e.slice(0,-2)+"ges":/.*qua$/.test(e)?e.slice(0,-3)+"qües":/.*a$/.test(e)?e.slice(0,-1)+"es":/.*(e|i)$/.test(e)?e+"ns":/.*í$/.test(e)?e.slice(0,-1)+"ins":e+"s",e.FUNCTIONS.si=(e,t)=>(t.match(/^metre/)&&(e=e.replace(/a$/,"à").replace(/o$/,"ò").replace(/i$/,"í")),e+t),e.ALPHABETS.combiner=transformers_1$6.Combiners.prefixCombiner,e}locale_ca.ca=ca;var locale_da={},numbers_da={};Object.defineProperty(numbers_da,"__esModule",{value:!0});const messages_1$9=messages;function onePrefix_$2(e,t=!1){return e===NUMBERS$9.ones[1]?t?"et":"en":e}function hundredsToWords_$7(e,t=!1){let r=e%1e3,n="",o=NUMBERS$9.ones[Math.floor(r/100)];if(n+=o?onePrefix_$2(o,!0)+" hundrede":"",r%=100,r)if(n+=n?" og ":"",o=t?NUMBERS$9.special.smallOrdinals[r]:NUMBERS$9.ones[r],o)n+=o;else{const e=t?NUMBERS$9.special.tensOrdinals[Math.floor(r/10)]:NUMBERS$9.tens[Math.floor(r/10)];o=NUMBERS$9.ones[r%10],n+=o?onePrefix_$2(o)+"og"+e:e}return n}function numberToWords$9(e,t=!1){if(0===e)return NUMBERS$9.zero;if(e>=Math.pow(10,36))return e.toString();let r=0,n="";for(;e>0;){const o=e%1e3;if(o){const e=hundredsToWords_$7(o,t&&!r);if(r){const t=NUMBERS$9.large[r],i=o>1?"er":"";n=onePrefix_$2(e,r<=1)+" "+t+i+(n?" og ":"")+n}else n=onePrefix_$2(e)+n}e=Math.floor(e/1e3),r++}return n}function numberToOrdinal$8(e,t){return 1===e?t?"hel":"hele":2===e?t?"halv":"halve":wordOrdinal$7(e)+(t?"dele":"del")}function wordOrdinal$7(e){if(e%100)return numberToWords$9(e,!0);const t=numberToWords$9(e);return t.match(/e$/)?t:t+"e"}function numericOrdinal$8(e){return e.toString()+"."}const NUMBERS$9=(0,messages_1$9.NUMBERS)();NUMBERS$9.wordOrdinal=wordOrdinal$7,NUMBERS$9.numericOrdinal=numericOrdinal$8,NUMBERS$9.numberToWords=numberToWords$9,NUMBERS$9.numberToOrdinal=numberToOrdinal$8,numbers_da.default=NUMBERS$9,Object.defineProperty(locale_da,"__esModule",{value:!0}),locale_da.da=void 0;const locale_1$f=locale$d,locale_util_1$9=locale_util,numbers_da_1=numbers_da,tr$4=transformers;let locale$b=null;function da(){return locale$b||(locale$b=create$a()),locale$b}function create$a(){const e=(0,locale_1$f.createLocale)();return e.NUMBERS=numbers_da_1.default,e.FUNCTIONS.radicalNestDepth=locale_util_1$9.nestingToString,e.FUNCTIONS.fontRegexp=t=>t===e.ALPHABETS.capPrefix.default?RegExp("^"+t+" "):RegExp(" "+t+"$"),e.ALPHABETS.combiner=tr$4.Combiners.postfixCombiner,e.ALPHABETS.digitTrans.default=numbers_da_1.default.numberToWords,e}locale_da.da=da;var locale_de={},numbers_de={};Object.defineProperty(numbers_de,"__esModule",{value:!0});const messages_1$8=messages;function onePrefix_$1(e,t=!1){return e===NUMBERS$8.ones[1]?t?"eine":"ein":e}function hundredsToWords_$6(e){let t=e%1e3,r="",n=NUMBERS$8.ones[Math.floor(t/100)];if(r+=n?onePrefix_$1(n)+"hundert":"",t%=100,t)if(r+=r?NUMBERS$8.numSep:"",n=NUMBERS$8.ones[t],n)r+=n;else{const e=NUMBERS$8.tens[Math.floor(t/10)];n=NUMBERS$8.ones[t%10],r+=n?onePrefix_$1(n)+"und"+e:e}return r}function numberToWords$8(e){if(0===e)return NUMBERS$8.zero;if(e>=Math.pow(10,36))return e.toString();let t=0,r="";for(;e>0;){const n=e%1e3;if(n){const o=hundredsToWords_$6(e%1e3);if(t){const e=NUMBERS$8.large[t],i=t>1&&n>1?e.match(/e$/)?"n":"en":"";r=onePrefix_$1(o,t>1)+e+i+r}else r=onePrefix_$1(o,t>1)+r}e=Math.floor(e/1e3),t++}return r.replace(/ein$/,"eins")}function numberToOrdinal$7(e,t){return 1===e?"eintel":2===e?t?"halbe":"halb":wordOrdinal$6(e)+"l"}function wordOrdinal$6(e){if(1===e)return"erste";if(3===e)return"dritte";if(7===e)return"siebte";if(8===e)return"achte";return numberToWords$8(e)+(e<19?"te":"ste")}function numericOrdinal$7(e){return e.toString()+"."}const NUMBERS$8=(0,messages_1$8.NUMBERS)();NUMBERS$8.wordOrdinal=wordOrdinal$6,NUMBERS$8.numericOrdinal=numericOrdinal$7,NUMBERS$8.numberToWords=numberToWords$8,NUMBERS$8.numberToOrdinal=numberToOrdinal$7,numbers_de.default=NUMBERS$8,Object.defineProperty(locale_de,"__esModule",{value:!0}),locale_de.de=void 0;const grammar_1$a=grammar,locale_util_1$8=locale_util,locale_1$e=locale$d,numbers_de_1=numbers_de,germanPrefixCombiner=function(e,t,r){return"s"===r&&(t=t.split(" ").map((function(e){return e.replace(/s$/,"")})).join(" "),r=""),e=r?r+" "+e:e,t?t+" "+e:e},germanPostfixCombiner=function(e,t,r){return e=r&&"s"!==r?r+" "+e:e,t?e+" "+t:e};let locale$a=null;function de(){return locale$a||(locale$a=create$9()),locale$a}function create$9(){const e=(0,locale_1$e.createLocale)();return e.NUMBERS=numbers_de_1.default,e.COMBINERS.germanPostfix=germanPostfixCombiner,e.ALPHABETS.combiner=germanPrefixCombiner,e.FUNCTIONS.radicalNestDepth=t=>t>1?e.NUMBERS.numberToWords(t)+"fach":"",e.FUNCTIONS.combineRootIndex=(e,t)=>{const r=t?t+"wurzel":"";return e.replace("Wurzel",r)},e.FUNCTIONS.combineNestedRadical=(e,t,r)=>{const n=(t?t+" ":"")+(e=r.match(/exponent$/)?e+"r":e);return r.match(/ /)?r.replace(/ /," "+n+" "):n+" "+r},e.FUNCTIONS.fontRegexp=function(e){return e=e.split(" ").map((function(e){return e.replace(/s$/,"(|s)")})).join(" "),new RegExp("((^"+e+" )|( "+e+"$))")},e.CORRECTIONS.correctOne=e=>e.replace(/^eins$/,"ein"),e.CORRECTIONS.localFontNumber=e=>(0,locale_util_1$8.localFont)(e).split(" ").map((function(e){return e.replace(/s$/,"")})).join(" "),e.CORRECTIONS.lowercase=e=>e.toLowerCase(),e.CORRECTIONS.article=e=>{const t=grammar_1$a.Grammar.getInstance().getParameter("case"),r=grammar_1$a.Grammar.getInstance().getParameter("plural");return"dative"===t?{der:"dem",die:r?"den":"der",das:"dem"}[e]:e},e.CORRECTIONS.masculine=e=>"dative"===grammar_1$a.Grammar.getInstance().getParameter("case")?e+"n":e,e}locale_de.de=de;var locale_en={},numbers_en={};Object.defineProperty(numbers_en,"__esModule",{value:!0});const messages_1$7=messages;function hundredsToWords_$5(e){let t=e%1e3,r="";return r+=NUMBERS$7.ones[Math.floor(t/100)]?NUMBERS$7.ones[Math.floor(t/100)]+NUMBERS$7.numSep+"hundred":"",t%=100,t&&(r+=r?NUMBERS$7.numSep:"",r+=NUMBERS$7.ones[t]||NUMBERS$7.tens[Math.floor(t/10)]+(t%10?NUMBERS$7.numSep+NUMBERS$7.ones[t%10]:"")),r}function numberToWords$7(e){if(0===e)return NUMBERS$7.zero;if(e>=Math.pow(10,36))return e.toString();let t=0,r="";for(;e>0;){e%1e3&&(r=hundredsToWords_$5(e%1e3)+(t?"-"+NUMBERS$7.large[t]+"-":"")+r),e=Math.floor(e/1e3),t++}return r.replace(/-$/,"")}function numberToOrdinal$6(e,t){if(1===e)return t?"oneths":"oneth";if(2===e)return t?"halves":"half";const r=wordOrdinal$5(e);return t?r+"s":r}function wordOrdinal$5(e){let t=numberToWords$7(e);return t.match(/one$/)?t=t.slice(0,-3)+"first":t.match(/two$/)?t=t.slice(0,-3)+"second":t.match(/three$/)?t=t.slice(0,-5)+"third":t.match(/five$/)?t=t.slice(0,-4)+"fifth":t.match(/eight$/)?t=t.slice(0,-5)+"eighth":t.match(/nine$/)?t=t.slice(0,-4)+"ninth":t.match(/twelve$/)?t=t.slice(0,-6)+"twelfth":t.match(/ty$/)?t=t.slice(0,-2)+"tieth":t+="th",t}function numericOrdinal$6(e){const t=e%100,r=e.toString();if(t>10&&t<20)return r+"th";switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd";default:return r+"th"}}const NUMBERS$7=(0,messages_1$7.NUMBERS)();NUMBERS$7.wordOrdinal=wordOrdinal$5,NUMBERS$7.numericOrdinal=numericOrdinal$6,NUMBERS$7.numberToWords=numberToWords$7,NUMBERS$7.numberToOrdinal=numberToOrdinal$6,numbers_en.default=NUMBERS$7,Object.defineProperty(locale_en,"__esModule",{value:!0}),locale_en.en=void 0;const grammar_1$9=grammar,locale_1$d=locale$d,locale_util_1$7=locale_util,numbers_en_1=numbers_en,tr$3=transformers;let locale$9=null;function en(){return locale$9||(locale$9=create$8()),locale$9}function create$8(){const e=(0,locale_1$d.createLocale)();return e.NUMBERS=numbers_en_1.default,e.FUNCTIONS.radicalNestDepth=locale_util_1$7.nestingToString,e.FUNCTIONS.plural=e=>/.*s$/.test(e)?e:e+"s",e.ALPHABETS.combiner=tr$3.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=numbers_en_1.default.numberToWords,e.CORRECTIONS.article=e=>grammar_1$9.Grammar.getInstance().getParameter("noArticle")?"":e,e}locale_en.en=en;var locale_es={},numbers_es={};Object.defineProperty(numbers_es,"__esModule",{value:!0});const grammar_1$8=grammar,messages_1$6=messages;function tensToWords_(e){const t=e%100;if(t<30)return NUMBERS$6.ones[t];const r=NUMBERS$6.tens[Math.floor(t/10)],n=NUMBERS$6.ones[t%10];return r&&n?r+" y "+n:r||n}function hundredsToWords_$4(e){const t=e%1e3,r=Math.floor(t/100),n=NUMBERS$6.special.hundreds[r],o=tensToWords_(t%100);return 1===r?o?n+"to "+o:n:n&&o?n+" "+o:n||o}function numberToWords$6(e){if(0===e)return NUMBERS$6.zero;if(e>=Math.pow(10,36))return e.toString();let t=0,r="";for(;e>0;){const n=e%1e3;if(n){let e=NUMBERS$6.large[t];const o=hundredsToWords_$4(n);t?1===n?(e=e.match("/^mil( |$)/")?e:"un "+e,r=e+(r?" "+r:"")):(e=e.replace(/\u00f3n$/,"ones"),r=hundredsToWords_$4(n)+" "+e+(r?" "+r:"")):r=o}e=Math.floor(e/1e3),t++}return r}function numberToOrdinal$5(e,t){if(e>1999)return e.toString()+"a";if(e<=12)return NUMBERS$6.special.onesOrdinals[e-1];const r=[];if(e>=1e3&&(e-=1e3,r.push("milésima")),!e)return r.join(" ");let n=0;return n=Math.floor(e/100),n>0&&(r.push(NUMBERS$6.special.hundredsOrdinals[n-1]),e%=100),e<=12?r.push(NUMBERS$6.special.onesOrdinals[e-1]):(n=Math.floor(e/10),n>0&&(r.push(NUMBERS$6.special.tensOrdinals[n-1]),e%=10),e>0&&r.push(NUMBERS$6.special.onesOrdinals[e-1])),r.join(" ")}function numericOrdinal$5(e){const t=grammar_1$8.Grammar.getInstance().getParameter("gender");return e.toString()+("f"===t?"a":"o")}const NUMBERS$6=(0,messages_1$6.NUMBERS)();NUMBERS$6.numericOrdinal=numericOrdinal$5,NUMBERS$6.numberToWords=numberToWords$6,NUMBERS$6.numberToOrdinal=numberToOrdinal$5,numbers_es.default=NUMBERS$6,Object.defineProperty(locale_es,"__esModule",{value:!0}),locale_es.es=void 0;const locale_1$c=locale$d,locale_util_1$6=locale_util,numbers_es_1=numbers_es,transformers_1$5=transformers,sansserifCombiner=function(e,t,r){return e="sans serif "+(r?r+" "+e:e),t?e+" "+t:e};let locale$8=null;function es(){return locale$8||(locale$8=create$7()),locale$8}function create$7(){const e=(0,locale_1$c.createLocale)();return e.NUMBERS=numbers_es_1.default,e.COMBINERS.sansserif=sansserifCombiner,e.FUNCTIONS.fracNestDepth=e=>!1,e.FUNCTIONS.combineRootIndex=locale_util_1$6.combinePostfixIndex,e.FUNCTIONS.combineNestedRadical=(e,t,r)=>e+r,e.FUNCTIONS.fontRegexp=e=>RegExp("^"+e+" "),e.FUNCTIONS.plural=e=>/.*(a|e|i|o|u)$/.test(e)?e+"s":/.*z$/.test(e)?e.slice(0,-1)+"ces":/.*c$/.test(e)?e.slice(0,-1)+"ques":/.*g$/.test(e)?e+"ues":/.*\u00f3n$/.test(e)?e.slice(0,-2)+"ones":e+"es",e.FUNCTIONS.si=(e,t)=>(t.match(/^metro/)&&(e=e.replace(/a$/,"á").replace(/o$/,"ó").replace(/i$/,"í")),e+t),e.ALPHABETS.combiner=transformers_1$5.Combiners.prefixCombiner,e}locale_es.es=es;var locale_fr={},numbers_fr={};Object.defineProperty(numbers_fr,"__esModule",{value:!0});const engine_1$f=engine,grammar_1$7=grammar,messages_1$5=messages;function hundredsToWords_$3(e){let t=e%1e3,r="";if(r+=NUMBERS$5.ones[Math.floor(t/100)]?NUMBERS$5.ones[Math.floor(t/100)]+"-cent":"",t%=100,t){r+=r?"-":"";let e=NUMBERS$5.ones[t];if(e)r+=e;else{const n=NUMBERS$5.tens[Math.floor(t/10)];n.match(/-dix$/)?(e=NUMBERS$5.ones[t%10+10],r+=n.replace(/-dix$/,"")+"-"+e):r+=n+(t%10?"-"+NUMBERS$5.ones[t%10]:"")}}const n=r.match(/s-\w+$/);return n?r.replace(/s-\w+$/,n[0].slice(1)):r.replace(/-un$/,"-et-un")}function numberToWords$5(e){if(0===e)return NUMBERS$5.zero;if(e>=Math.pow(10,36))return e.toString();NUMBERS$5.special["tens-"+engine_1$f.default.getInstance().subiso]&&(NUMBERS$5.tens=NUMBERS$5.special["tens-"+engine_1$f.default.getInstance().subiso]);let t=0,r="";for(;e>0;){const n=e%1e3;if(n){let e=NUMBERS$5.large[t];const o=hundredsToWords_$3(n);if(e&&e.match(/^mille /)){const n=e.replace(/^mille /,"");r=r.match(RegExp(n))?o+(t?"-mille-":"")+r:r.match(RegExp(n.replace(/s$/,"")))?o+(t?"-mille-":"")+r.replace(n.replace(/s$/,""),n):o+(t?"-"+e+"-":"")+r}else e=1===n&&e?e.replace(/s$/,""):e,r=o+(t?"-"+e+"-":"")+r}e=Math.floor(e/1e3),t++}return r.replace(/-$/,"")}const SMALL_ORDINAL={1:"unième",2:"demi",3:"tiers",4:"quart"};function numberToOrdinal$4(e,t){const r=SMALL_ORDINAL[e]||wordOrdinal$4(e);return 3===e?r:t?r+"s":r}function wordOrdinal$4(e){if(1===e)return"première";let t=numberToWords$5(e);return t.match(/^neuf$/)?t=t.slice(0,-1)+"v":t.match(/cinq$/)?t+="u":t.match(/trois$/)?t+="":(t.match(/e$/)||t.match(/s$/))&&(t=t.slice(0,-1)),t+="ième",t}function numericOrdinal$4(e){const t=grammar_1$7.Grammar.getInstance().getParameter("gender");return 1===e?e.toString()+("m"===t?"er":"re"):e.toString()+"e"}const NUMBERS$5=(0,messages_1$5.NUMBERS)();NUMBERS$5.wordOrdinal=wordOrdinal$4,NUMBERS$5.numericOrdinal=numericOrdinal$4,NUMBERS$5.numberToWords=numberToWords$5,NUMBERS$5.numberToOrdinal=numberToOrdinal$4,numbers_fr.default=NUMBERS$5,Object.defineProperty(locale_fr,"__esModule",{value:!0}),locale_fr.fr=void 0;const grammar_1$6=grammar,locale_1$b=locale$d,locale_util_1$5=locale_util,numbers_fr_1=numbers_fr,transformers_1$4=transformers;let locale$7=null;function fr(){return locale$7||(locale$7=create$6()),locale$7}function create$6(){const e=(0,locale_1$b.createLocale)();return e.NUMBERS=numbers_fr_1.default,e.FUNCTIONS.radicalNestDepth=locale_util_1$5.nestingToString,e.FUNCTIONS.combineRootIndex=locale_util_1$5.combinePostfixIndex,e.FUNCTIONS.combineNestedFraction=(e,t,r)=>r.replace(/ $/g,"")+t+e,e.FUNCTIONS.combineNestedRadical=(e,t,r)=>r+" "+e,e.FUNCTIONS.fontRegexp=e=>RegExp(" (en |)"+e+"$"),e.FUNCTIONS.plural=e=>/.*s$/.test(e)?e:e+"s",e.CORRECTIONS.article=e=>grammar_1$6.Grammar.getInstance().getParameter("noArticle")?"":e,e.ALPHABETS.combiner=transformers_1$4.Combiners.romanceCombiner,e.SUBISO={default:"fr",current:"fr",all:["fr","be","ch"]},e}locale_fr.fr=fr;var locale_hi={},numbers_hi={};Object.defineProperty(numbers_hi,"__esModule",{value:!0});const grammar_1$5=grammar,messages_1$4=messages;function hundredsToWords_$2(e){let t=e%1e3,r="";return r+=NUMBERS$4.ones[Math.floor(t/100)]?NUMBERS$4.ones[Math.floor(t/100)]+NUMBERS$4.numSep+NUMBERS$4.special.hundred:"",t%=100,t&&(r+=r?NUMBERS$4.numSep:"",r+=NUMBERS$4.ones[t]),r}function numberToWords$4(e){if(0===e)return NUMBERS$4.zero;if(e>=Math.pow(10,32))return e.toString();let t=0,r="";const n=hundredsToWords_$2(e%1e3);if(!(e=Math.floor(e/1e3)))return n;for(;e>0;){const n=e%100;n&&(r=NUMBERS$4.ones[n]+NUMBERS$4.numSep+NUMBERS$4.large[t]+(r?NUMBERS$4.numSep+r:"")),e=Math.floor(e/100),t++}return n?r+NUMBERS$4.numSep+n:r}function numberToOrdinal$3(e,t){return e<=10?NUMBERS$4.special.smallDenominators[e]:wordOrdinal$3(e)+" अंश"}function wordOrdinal$3(e){const t=grammar_1$5.Grammar.getInstance().getParameter("gender");if(e<=0)return e.toString();if(e<10)return"f"===t?NUMBERS$4.special.ordinalsFeminine[e]:NUMBERS$4.special.ordinalsMasculine[e];return numberToWords$4(e)+("f"===t?"वीं":"वाँ")}function numericOrdinal$3(e){const t=grammar_1$5.Grammar.getInstance().getParameter("gender");if(e>0&&e<10)return"f"===t?NUMBERS$4.special.simpleSmallOrdinalsFeminine[e]:NUMBERS$4.special.simpleSmallOrdinalsMasculine[e];return e.toString().split("").map((function(e){const t=parseInt(e,10);return isNaN(t)?"":NUMBERS$4.special.simpleNumbers[t]})).join("")+("f"===t?"वीं":"वाँ")}const NUMBERS$4=(0,messages_1$4.NUMBERS)();NUMBERS$4.wordOrdinal=wordOrdinal$3,NUMBERS$4.numericOrdinal=numericOrdinal$3,NUMBERS$4.numberToWords=numberToWords$4,NUMBERS$4.numberToOrdinal=numberToOrdinal$3,numbers_hi.default=NUMBERS$4,Object.defineProperty(locale_hi,"__esModule",{value:!0}),locale_hi.hi=void 0;const locale_1$a=locale$d,numbers_hi_1=numbers_hi,transformers_1$3=transformers,locale_util_1$4=locale_util;let locale$6=null;function hi(){return locale$6||(locale$6=create$5()),locale$6}function create$5(){const e=(0,locale_1$a.createLocale)();return e.NUMBERS=numbers_hi_1.default,e.ALPHABETS.combiner=transformers_1$3.Combiners.prefixCombiner,e.FUNCTIONS.radicalNestDepth=locale_util_1$4.nestingToString,e}locale_hi.hi=hi;var locale_it={},numbers_it={};Object.defineProperty(numbers_it,"__esModule",{value:!0});const grammar_1$4=grammar,messages_1$3=messages;function hundredsToWords_$1(e){let t=e%1e3,r="";if(r+=NUMBERS$3.ones[Math.floor(t/100)]?NUMBERS$3.ones[Math.floor(t/100)]+NUMBERS$3.numSep+"cento":"",t%=100,t){r+=r?NUMBERS$3.numSep:"";const e=NUMBERS$3.ones[t];if(e)r+=e;else{let e=NUMBERS$3.tens[Math.floor(t/10)];const n=t%10;1!==n&&8!==n||(e=e.slice(0,-1)),r+=e,r+=n?NUMBERS$3.numSep+NUMBERS$3.ones[t%10]:""}}return r}function numberToWords$3(e){if(0===e)return NUMBERS$3.zero;if(e>=Math.pow(10,36))return e.toString();if(1===e&&grammar_1$4.Grammar.getInstance().getParameter("fraction"))return"un";let t=0,r="";for(;e>0;){e%1e3&&(r=hundredsToWords_$1(e%1e3)+(t?"-"+NUMBERS$3.large[t]+"-":"")+r),e=Math.floor(e/1e3),t++}return r.replace(/-$/,"")}function numberToOrdinal$2(e,t){if(2===e)return t?"mezzi":"mezzo";const r=wordOrdinal$2(e);if(!t)return r;const n=r.match(/o$/)?"i":"e";return r.slice(0,-1)+n}function wordOrdinal$2(e){const t="m"===grammar_1$4.Grammar.getInstance().getParameter("gender")?"o":"a";let r=NUMBERS$3.special.onesOrdinals[e];return r?r.slice(0,-1)+t:(r=numberToWords$3(e),r.slice(0,-1)+"esim"+t)}function numericOrdinal$2(e){const t=grammar_1$4.Grammar.getInstance().getParameter("gender");return e.toString()+("m"===t?"o":"a")}const NUMBERS$3=(0,messages_1$3.NUMBERS)();NUMBERS$3.wordOrdinal=wordOrdinal$2,NUMBERS$3.numericOrdinal=numericOrdinal$2,NUMBERS$3.numberToWords=numberToWords$3,NUMBERS$3.numberToOrdinal=numberToOrdinal$2,numbers_it.default=NUMBERS$3,Object.defineProperty(locale_it,"__esModule",{value:!0}),locale_it.it=void 0;const locale_util_1$3=locale_util,locale_1$9=locale$d,numbers_it_1=numbers_it,transformers_1$2=transformers,italianPostfixCombiner=function(e,t,r){return e.match(/^[a-zA-Z]$/)&&(t=t.replace("cerchiato","cerchiata")),e=r?e+" "+r:e,t?e+" "+t:e};let locale$5=null;function it(){return locale$5||(locale$5=create$4()),locale$5}function create$4(){const e=(0,locale_1$9.createLocale)();return e.NUMBERS=numbers_it_1.default,e.COMBINERS.italianPostfix=italianPostfixCombiner,e.FUNCTIONS.radicalNestDepth=locale_util_1$3.nestingToString,e.FUNCTIONS.combineRootIndex=locale_util_1$3.combinePostfixIndex,e.FUNCTIONS.combineNestedFraction=(e,t,r)=>r.replace(/ $/g,"")+t+e,e.FUNCTIONS.combineNestedRadical=(e,t,r)=>r+" "+e,e.FUNCTIONS.fontRegexp=e=>RegExp(" (en |)"+e+"$"),e.ALPHABETS.combiner=transformers_1$2.Combiners.romanceCombiner,e}locale_it.it=it;var locale_nb={},numbers_nn={};Object.defineProperty(numbers_nn,"__esModule",{value:!0});const engine_1$e=engine,messages_1$2=messages;function hundredsToWordsRo_(e,t=!1){let r=e%1e3,n="";const o=Math.floor(r/100),i=NUMBERS$2.ones[o];if(n+=i?(1===o?"":i)+"hundre":"",r%=100,r){if(n+=n?"og":"",t){const e=NUMBERS$2.special.smallOrdinals[r];if(e)return n+e;if(r%10)return n+NUMBERS$2.tens[Math.floor(r/10)]+NUMBERS$2.special.smallOrdinals[r%10]}n+=NUMBERS$2.ones[r]||NUMBERS$2.tens[Math.floor(r/10)]+(r%10?NUMBERS$2.ones[r%10]:"")}return t?replaceOrdinal(n):n}function numberToWordsRo(e,t=!1){if(0===e)return t?NUMBERS$2.special.smallOrdinals[0]:NUMBERS$2.zero;if(e>=Math.pow(10,36))return e.toString();let r=0,n="";for(;e>0;){const o=e%1e3;if(o){const i=hundredsToWordsRo_(e%1e3,!r&&t);!r&&t&&(t=!t),n=i+(r?" "+NUMBERS$2.large[r]+(r>1&&o>1?"er":"")+(n?" ":""):"")+n}e=Math.floor(e/1e3),r++}return t?n+(n.match(/tusen$/)?"de":"te"):n}function numberToOrdinal$1(e,t){return wordOrdinal$1(e)}function replaceOrdinal(e){const t=NUMBERS$2.special.endOrdinal[0];return"a"===t&&e.match(/en$/)?e.slice(0,-2)+NUMBERS$2.special.endOrdinal:e.match(/(d|n)$/)||e.match(/hundre$/)?e+"de":e.match(/i$/)?e+NUMBERS$2.special.endOrdinal:"a"===t&&e.match(/e$/)?e.slice(0,-1)+NUMBERS$2.special.endOrdinal:(e.match(/e$/),e+"nde")}function wordOrdinal$1(e){return numberToWords$2(e,!0)}function numericOrdinal$1(e){return e.toString()+"."}const NUMBERS$2=(0,messages_1$2.NUMBERS)();function onePrefix_(e,t=!1){return e===NUMBERS$2.ones[1]?"ein"===e?"eitt ":t?"et":"ett":e}function hundredsToWordsGe_(e,t=!1){let r=e%1e3,n="",o=NUMBERS$2.ones[Math.floor(r/100)];if(n+=o?onePrefix_(o)+"hundre":"",r%=100,r){if(n+=n?"og":"",t){const e=NUMBERS$2.special.smallOrdinals[r];if(e)return n+e}if(o=NUMBERS$2.ones[r],o)n+=o;else{const e=NUMBERS$2.tens[Math.floor(r/10)];o=NUMBERS$2.ones[r%10],n+=o?o+"og"+e:e}}return t?replaceOrdinal(n):n}function numberToWordsGe(e,t=!1){if(0===e)return t?NUMBERS$2.special.smallOrdinals[0]:NUMBERS$2.zero;if(e>=Math.pow(10,36))return e.toString();let r=0,n="";for(;e>0;){const o=e%1e3;if(o){const i=hundredsToWordsGe_(e%1e3,!r&&t);!r&&t&&(t=!t),n=(1===r?onePrefix_(i,!0):i)+(r>1?NUMBERS$2.numSep:"")+(r?NUMBERS$2.large[r]+(r>1&&o>1?"er":""):"")+(r>1&&n?NUMBERS$2.numSep:"")+n}e=Math.floor(e/1e3),r++}return t?n+(n.match(/tusen$/)?"de":"te"):n}function numberToWords$2(e,t=!1){return"alt"===engine_1$e.default.getInstance().subiso?numberToWordsGe(e,t):numberToWordsRo(e,t)}NUMBERS$2.wordOrdinal=wordOrdinal$1,NUMBERS$2.numericOrdinal=numericOrdinal$1,NUMBERS$2.numberToWords=numberToWords$2,NUMBERS$2.numberToOrdinal=numberToOrdinal$1,numbers_nn.default=NUMBERS$2,Object.defineProperty(locale_nb,"__esModule",{value:!0}),locale_nb.nb=void 0;const locale_1$8=locale$d,locale_util_1$2=locale_util,numbers_nn_1$1=numbers_nn,tr$2=transformers;let locale$4=null;function nb(){return locale$4||(locale$4=create$3()),locale$4}function create$3(){const e=(0,locale_1$8.createLocale)();return e.NUMBERS=numbers_nn_1$1.default,e.ALPHABETS.combiner=tr$2.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=numbers_nn_1$1.default.numberToWords,e.FUNCTIONS.radicalNestDepth=locale_util_1$2.nestingToString,e}locale_nb.nb=nb;var locale_nemeth={},numbers_nemeth={};Object.defineProperty(numbers_nemeth,"__esModule",{value:!0});const messages_1$1=messages;function numberToWords$1(e){return e.toString().split("").map((function(e){return NUMBERS$1.ones[parseInt(e,10)]})).join("")}const NUMBERS$1=(0,messages_1$1.NUMBERS)();NUMBERS$1.numberToWords=numberToWords$1,NUMBERS$1.numberToOrdinal=numberToWords$1,numbers_nemeth.default=NUMBERS$1,Object.defineProperty(locale_nemeth,"__esModule",{value:!0}),locale_nemeth.nemeth=void 0;const locale_1$7=locale$d,numbers_nemeth_1=numbers_nemeth,transformers_1$1=transformers,simpleEnglish=function(e){return e.match(RegExp("^"+locale$3.ALPHABETS.languagePrefix.english))?e.slice(1):e},postfixCombiner=function(e,t,r){return e=simpleEnglish(e),t?e+t:e},germanCombiner=function(e,t,r){return t+simpleEnglish(e)},embellishCombiner=function(e,t,r){return t+(r||"")+(e=simpleEnglish(e))+"⠻"},doubleEmbellishCombiner=function(e,t,r){return t+(r||"")+(e=simpleEnglish(e))+"⠻⠻"},parensCombiner=function(e,t,r){return t+(e=simpleEnglish(e))+"⠾"};let locale$3=null;function nemeth(){return locale$3||(locale$3=create$2()),locale$3}function create$2(){const e=(0,locale_1$7.createLocale)();return e.NUMBERS=numbers_nemeth_1.default,e.COMBINERS={postfixCombiner:postfixCombiner,germanCombiner:germanCombiner,embellishCombiner:embellishCombiner,doubleEmbellishCombiner:doubleEmbellishCombiner,parensCombiner:parensCombiner},e.FUNCTIONS.fracNestDepth=e=>!1,e.FUNCTIONS.fontRegexp=e=>RegExp("^"+e),e.FUNCTIONS.si=transformers_1$1.identityTransformer,e.ALPHABETS.combiner=(e,t,r)=>t?t+r+e:simpleEnglish(e),e.ALPHABETS.digitTrans={default:numbers_nemeth_1.default.numberToWords},e}locale_nemeth.nemeth=nemeth;var locale_nn={};Object.defineProperty(locale_nn,"__esModule",{value:!0}),locale_nn.nn=void 0;const locale_1$6=locale$d,locale_util_1$1=locale_util,numbers_nn_1=numbers_nn,tr$1=transformers;let locale$2=null;function nn(){return locale$2||(locale$2=create$1()),locale$2}function create$1(){const e=(0,locale_1$6.createLocale)();return e.NUMBERS=numbers_nn_1.default,e.ALPHABETS.combiner=tr$1.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=numbers_nn_1.default.numberToWords,e.FUNCTIONS.radicalNestDepth=locale_util_1$1.nestingToString,e.SUBISO={default:"",current:"",all:["","alt"]},e}locale_nn.nn=nn;var locale_sv={},numbers_sv={};Object.defineProperty(numbers_sv,"__esModule",{value:!0});const messages_1=messages;function hundredsToWords_(e){let t=e%1e3,r="";const n=Math.floor(t/100);return r+=NUMBERS.ones[n]?(1===n?"":NUMBERS.ones[n]+NUMBERS.numSep)+"hundra":"",t%=100,t&&(r+=r?NUMBERS.numSep:"",r+=NUMBERS.ones[t]||NUMBERS.tens[Math.floor(t/10)]+(t%10?NUMBERS.numSep+NUMBERS.ones[t%10]:"")),r}function numberToWords(e,t=!1){if(0===e)return NUMBERS.zero;if(e>=Math.pow(10,36))return e.toString();let r=0,n="";for(;e>0;){const o=e%1e3;if(o){const i=NUMBERS.large[r],a=o>1&&r>1&&!t?"er":"";n=(1===r&&1===o?"":(r>1&&1===o?"en":hundredsToWords_(e%1e3))+(r>1?" ":""))+(r?i+a+(r>1?" ":""):"")+n}e=Math.floor(e/1e3),r++}return n.replace(/ $/,"")}function numberToOrdinal(e,t){if(1===e)return"hel";if(2===e)return t?"halva":"halv";let r=wordOrdinal(e);return r=r.match(/de$/)?r.replace(/de$/,""):r,r+(t?"delar":"del")}function wordOrdinal(e){let t=numberToWords(e,!0);return t.match(/^noll$/)?t="nollte":t.match(/ett$/)?t=t.replace(/ett$/,"första"):t.match(/två$/)?t=t.replace(/två$/,"andra"):t.match(/tre$/)?t=t.replace(/tre$/,"tredje"):t.match(/fyra$/)?t=t.replace(/fyra$/,"fjärde"):t.match(/fem$/)?t=t.replace(/fem$/,"femte"):t.match(/sex$/)?t=t.replace(/sex$/,"sjätte"):t.match(/sju$/)?t=t.replace(/sju$/,"sjunde"):t.match(/åtta$/)?t=t.replace(/åtta$/,"åttonde"):t.match(/nio$/)?t=t.replace(/nio$/,"nionde"):t.match(/tio$/)?t=t.replace(/tio$/,"tionde"):t.match(/elva$/)?t=t.replace(/elva$/,"elfte"):t.match(/tolv$/)?t=t.replace(/tolv$/,"tolfte"):t.match(/tusen$/)?t=t.replace(/tusen$/,"tusonde"):t.match(/jard$/)||t.match(/jon$/)?t+="te":t+="de",t}function numericOrdinal(e){const t=e.toString();return t.match(/11$|12$/)?t+":e":t+(t.match(/1$|2$/)?":a":":e")}const NUMBERS=(0,messages_1.NUMBERS)();NUMBERS.wordOrdinal=wordOrdinal,NUMBERS.numericOrdinal=numericOrdinal,NUMBERS.numberToWords=numberToWords,NUMBERS.numberToOrdinal=numberToOrdinal,numbers_sv.default=NUMBERS,Object.defineProperty(locale_sv,"__esModule",{value:!0}),locale_sv.sv=void 0;const locale_1$5=locale$d,locale_util_1=locale_util,numbers_sv_1=numbers_sv,tr=transformers;let locale$1=null;function sv(){return locale$1||(locale$1=create()),locale$1}function create(){const e=(0,locale_1$5.createLocale)();return e.NUMBERS=numbers_sv_1.default,e.FUNCTIONS.radicalNestDepth=locale_util_1.nestingToString,e.FUNCTIONS.fontRegexp=function(e){return new RegExp("((^"+e+" )|( "+e+"$))")},e.ALPHABETS.combiner=tr.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=numbers_sv_1.default.numberToWords,e.CORRECTIONS.correctOne=e=>e.replace(/^ett$/,"en"),e}locale_sv.sv=sv,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.completeLocale=e.getLocale=e.setLocale=e.locales=void 0;const t=engine,r=variables,n=grammar,o=locale_ca,i=locale_da,a=locale_de,s=locale_en,l=locale_es,c=locale_fr,u=locale_hi,d=locale_it,p=locale_nb,m=locale_nemeth,h=locale_nn,f=locale_sv,_=locale$d;function g(){const n=r.Variables.ensureLocale(t.default.getInstance().locale,t.default.getInstance().defaultLocale);return t.default.getInstance().locale=n,e.locales[n]()}e.locales={ca:o.ca,da:i.da,de:a.de,en:s.en,es:l.es,fr:c.fr,hi:u.hi,it:d.it,nb:p.nb,nn:h.nn,sv:f.sv,nemeth:m.nemeth},e.setLocale=function(){const e=g();if(function(e){const r=t.default.getInstance().subiso;-1===e.SUBISO.all.indexOf(r)&&(t.default.getInstance().subiso=e.SUBISO.default);e.SUBISO.current=t.default.getInstance().subiso}(e),e){for(const t of Object.getOwnPropertyNames(e))_.LOCALE[t]=e[t];for(const[t,r]of Object.entries(e.CORRECTIONS))n.Grammar.getInstance().setCorrection(t,r)}},e.getLocale=g,e.completeLocale=function(t){const r=e.locales[t.locale];if(!r)return void console.error("Locale "+t.locale+" does not exist!");const n=t.kind.toUpperCase(),o=t.messages;if(!o)return;const i=r();for(const[e,t]of Object.entries(o))i[n][e]=t}}(l10n),getDefaultExportFromCjs$1(l10n);var math_map={},browser_util={};Object.defineProperty(browser_util,"__esModule",{value:!0}),browser_util.loadScript=browser_util.loadMapsForIE_=browser_util.installWGXpath_=browser_util.loadWGXpath_=browser_util.mapsForIE=browser_util.detectEdge=browser_util.detectIE=void 0;const system_external_1$3=system_external,xpath_util_1$1=xpath_util;function detectIE(){return"undefined"!=typeof window&&"ActiveXObject"in window&&"clipboardData"in window&&(loadMapsForIE_(),loadWGXpath_(),!0)}function detectEdge(){var e;return"undefined"!=typeof window&&"MSGestureEvent"in window&&null===(null===(e=window.chrome)||void 0===e?void 0:e.loadTimes)&&(document.evaluate=null,loadWGXpath_(!0),!0)}function loadWGXpath_(e){loadScript(system_external_1$3.default.WGXpath),installWGXpath_(e)}function installWGXpath_(e,t){let r=t||1;"undefined"==typeof wgxpath&&r<10?setTimeout((function(){installWGXpath_(e,r++)}),200):r>=10||(system_external_1$3.default.wgxpath=wgxpath,e?system_external_1$3.default.wgxpath.install({document:document}):system_external_1$3.default.wgxpath.install(),xpath_util_1$1.xpath.evaluate=document.evaluate,xpath_util_1$1.xpath.result=XPathResult,xpath_util_1$1.xpath.createNSResolver=document.createNSResolver)}function loadMapsForIE_(){loadScript(system_external_1$3.default.mathmapsIePath)}function loadScript(e){const t=system_external_1$3.default.document.createElement("script");t.type="text/javascript",t.src=e,system_external_1$3.default.document.head?system_external_1$3.default.document.head.appendChild(t):system_external_1$3.default.document.body.appendChild(t)}browser_util.detectIE=detectIE,browser_util.detectEdge=detectEdge,browser_util.mapsForIE=null,browser_util.loadWGXpath_=loadWGXpath_,browser_util.installWGXpath_=installWGXpath_,browser_util.loadMapsForIE_=loadMapsForIE_,browser_util.loadScript=loadScript;var file_util={};Object.defineProperty(file_util,"__esModule",{value:!0}),file_util.localePath=file_util.makePath=void 0;const system_external_1$2=system_external;function makePath(e){return e.match("/$")?e:e+"/"}function localePath(e,t="json"){return makePath(system_external_1$2.default.jsonPath)+e+(t.match(/^\./)?t:"."+t)}file_util.makePath=makePath,file_util.localePath=localePath;var math_compound_store={},math_simple_store={};Object.defineProperty(math_simple_store,"__esModule",{value:!0}),math_simple_store.MathSimpleStore=void 0;const engine_1$d=engine,dynamic_cstr_1$8=dynamic_cstr;class MathSimpleStore{constructor(){this.category="",this.rules=new Map}static parseUnicode(e){const t=parseInt(e,16);return String.fromCodePoint(t)}static testDynamicConstraints_(e,t){return engine_1$d.default.getInstance().strict?t.cstr.equal(e):engine_1$d.default.getInstance().comparator.match(t.cstr)}defineRulesFromMappings(e,t,r,n,o){for(const i in o)for(const a in o[i]){const s=o[i][a];this.defineRuleFromStrings(e,t,r,i,a,n,s)}}getRules(e){let t=this.rules.get(e);return t||(t=[],this.rules.set(e,t)),t}defineRuleFromStrings(e,t,r,n,o,i,a){let s=this.getRules(t);const l=engine_1$d.default.getInstance().parsers[n]||engine_1$d.default.getInstance().defaultParser,c=engine_1$d.default.getInstance().comparators[n],u=`${t}.${r}.${n}.${o}`,d=l.parse(u),p=c?c():engine_1$d.default.getInstance().comparator,m=p.getReference();p.setReference(d);const h={cstr:d,action:a};s=s.filter((e=>!d.equal(e.cstr))),s.push(h),this.rules.set(t,s),p.setReference(m)}lookupRule(e,t){let r=this.getRules(t.getValue(dynamic_cstr_1$8.Axis.LOCALE));return r=r.filter((function(e){return MathSimpleStore.testDynamicConstraints_(t,e)})),1===r.length?r[0]:r.length?r.sort(((e,t)=>engine_1$d.default.getInstance().comparator.compare(e.cstr,t.cstr)))[0]:null}}math_simple_store.MathSimpleStore=MathSimpleStore,Object.defineProperty(math_compound_store,"__esModule",{value:!0}),math_compound_store.enumerate=math_compound_store.lookupString=math_compound_store.lookupCategory=math_compound_store.lookupRule=math_compound_store.addSiUnitRules=math_compound_store.addUnitRules=math_compound_store.addFunctionRules=math_compound_store.addSymbolRules=math_compound_store.defineRule=math_compound_store.defineRules=math_compound_store.setSiPrefixes=void 0;const debugger_1$6=_debugger,engine_1$c=engine,l10n_1$1=l10n,math_simple_store_1=math_simple_store,dynamic_cstr_1$7=dynamic_cstr;let locale=dynamic_cstr_1$7.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$7.Axis.LOCALE],modality=dynamic_cstr_1$7.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$7.Axis.MODALITY],siPrefixes={};function setSiPrefixes(e){siPrefixes=e}math_compound_store.setSiPrefixes=setSiPrefixes;const subStores_={};function defineRules(e,t,r,n){const o=getSubStore_(t);setupStore_(o,r),o.defineRulesFromMappings(e,locale,modality,t,n)}function defineRule(e,t,r,n,o,i){const a=getSubStore_(o);setupStore_(a,n),a.defineRuleFromStrings(e,locale,modality,t,r,o,i)}function addSymbolRules(e){if(changeLocale_(e))return;const t=math_simple_store_1.MathSimpleStore.parseUnicode(e.key);defineRules(e.key,t,e.category,e.mappings)}function addFunctionRules(e){if(changeLocale_(e))return;const t=e.names,r=e.mappings,n=e.category;for(let e,o=0;e=t[o];o++)defineRules(e,e,n,r)}function addUnitRules(e){changeLocale_(e)||(e.si?addSiUnitRules(e):addUnitRules_(e))}function addSiUnitRules(e){for(const t of Object.keys(siPrefixes)){const r=Object.assign({},e);r.mappings={};const n=siPrefixes[t];r.key=t+r.key,r.names=r.names.map((function(e){return t+e}));for(const t of Object.keys(e.mappings)){r.mappings[t]={};for(const o of Object.keys(e.mappings[t]))r.mappings[t][o]=l10n_1$1.locales[locale]().FUNCTIONS.si(n,e.mappings[t][o])}addUnitRules_(r)}addUnitRules_(e)}function lookupRule(e,t){const r=subStores_[e];return r?r.lookupRule(null,t):null}function lookupCategory(e){const t=subStores_[e];return t?t.category:""}function lookupString(e,t){const r=lookupRule(e,t);return r?r.action:null}function enumerate(e={}){for(const t of Object.values(subStores_))for(const[,r]of t.rules.entries())for(const{cstr:t}of r)e=enumerate_(t.getValues(),e);return e}function enumerate_(e,t){return t=t||{},e.length?(t[e[0]]=enumerate_(e.slice(1),t[e[0]]),t):t}function addUnitRules_(e){const t=e.names;t&&(e.names=t.map((function(e){return e+":unit"}))),addFunctionRules(e)}function changeLocale_(e){return!(!e.locale&&!e.modality)&&(locale=e.locale||locale,modality=e.modality||modality,!0)}function getSubStore_(e){let t=subStores_[e];return t?(debugger_1$6.Debugger.getInstance().output("Store exists! "+e),t):(t=new math_simple_store_1.MathSimpleStore,subStores_[e]=t,t)}function setupStore_(e,t){t&&(e.category=t)}math_compound_store.defineRules=defineRules,math_compound_store.defineRule=defineRule,math_compound_store.addSymbolRules=addSymbolRules,math_compound_store.addFunctionRules=addFunctionRules,math_compound_store.addUnitRules=addUnitRules,math_compound_store.addSiUnitRules=addSiUnitRules,math_compound_store.lookupRule=lookupRule,math_compound_store.lookupCategory=lookupCategory,math_compound_store.lookupString=lookupString,engine_1$c.default.getInstance().evaluator=lookupString,math_compound_store.enumerate=enumerate;var speech_rule_engine={},auditory_description={},span={};Object.defineProperty(span,"__esModule",{value:!0}),span.Span=void 0;class Span{constructor(e,t){this.speech=e,this.attributes=t}}span.Span=Span,Object.defineProperty(auditory_description,"__esModule",{value:!0}),auditory_description.AuditoryDescription=void 0;const grammar_1$3=grammar,span_1$3=span;class AuditoryDescription{constructor({context:e,text:t,userValue:r,annotation:n,attributes:o,personality:i,layout:a}){this.context=e||"",this.text=t||"",this.userValue=r||"",this.annotation=n||"",this.attributes=o||{},this.personality=i||{},this.layout=a||""}static create(e,t={}){return e.text=grammar_1$3.Grammar.getInstance().apply(e.text,t),new AuditoryDescription(e)}isEmpty(){return 0===this.context.length&&0===this.text.length&&0===this.userValue.length&&0===this.annotation.length}clone(){let e,t;if(this.personality){e={};for(const t in this.personality)e[t]=this.personality[t]}if(this.attributes){t={};for(const e in this.attributes)t[e]=this.attributes[e]}return new AuditoryDescription({context:this.context,text:this.text,userValue:this.userValue,annotation:this.annotation,personality:e,attributes:t,layout:this.layout})}toString(){return'AuditoryDescription(context="'+this.context+'" text="'+this.text+'" userValue="'+this.userValue+'" annotation="'+this.annotation+'")'}descriptionString(){return this.context&&this.text?this.context+" "+this.text:this.context||this.text}descriptionSpan(){return new span_1$3.Span(this.descriptionString(),this.attributes)}equals(e){return this.context===e.context&&this.text===e.text&&this.userValue===e.userValue&&this.annotation===e.annotation}}auditory_description.AuditoryDescription=AuditoryDescription;var speech_rules={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getStore=e.addStore=e.funcStore=void 0;const t=dynamic_cstr;e.funcStore=new Map,e.addStore=function(t,r,n){const o={};if(r){const t=e.funcStore.get(r)||{};Object.assign(o,t)}e.funcStore.set(t,Object.assign(o,n))},e.getStore=function(r,n,o){return e.funcStore.get([r,n,o].join("."))||e.funcStore.get([t.DynamicCstr.DEFAULT_VALUES[t.Axis.LOCALE],n,o].join("."))||e.funcStore.get([t.DynamicCstr.BASE_LOCALE,n,o].join("."))||{}}}(speech_rules),getDefaultExportFromCjs$1(speech_rules);var speech_rule_stores={},clearspeak_rules={},store_util={};Object.defineProperty(store_util,"__esModule",{value:!0}),store_util.contentIterator=store_util.pauseSeparator=store_util.nodeCounter=void 0;const auditory_description_1$4=auditory_description,XpathUtil$9=xpath_util,engine_1$b=engine;function nodeCounter(e,t){const r=e.length;let n=0,o=t;return t||(o=""),function(){return n<r&&(n+=1),o+" "+n}}function pauseSeparator(e,t){const r=parseFloat(t),n=isNaN(r)?t:r;return function(){return[auditory_description_1$4.AuditoryDescription.create({text:"",personality:{pause:n}})]}}function contentIterator(e,t){let r;return r=e.length>0?XpathUtil$9.evalXPath("../../content/*",e[0]):[],function(){const e=r.shift(),n=t?[auditory_description_1$4.AuditoryDescription.create({text:t},{translate:!0})]:[];if(!e)return n;const o=engine_1$b.default.evaluateNode(e);return n.concat(o)}}store_util.nodeCounter=nodeCounter,store_util.pauseSeparator=pauseSeparator,store_util.contentIterator=contentIterator;var clearspeak_util={},semantic_annotations={},semantic_annotator={};Object.defineProperty(semantic_annotator,"__esModule",{value:!0}),semantic_annotator.SemanticVisitor=semantic_annotator.SemanticAnnotator=void 0;class SemanticAnnotator{constructor(e,t,r){this.domain=e,this.name=t,this.func=r,this.active=!1}annotate(e){e.childNodes.forEach(this.annotate.bind(this)),e.addAnnotation(this.domain,this.func(e))}}semantic_annotator.SemanticAnnotator=SemanticAnnotator;class SemanticVisitor{constructor(e,t,r,n={}){this.domain=e,this.name=t,this.func=r,this.def=n,this.active=!1}visit(e,t){let r=this.func(e,t);e.addAnnotation(this.domain,r[0]);for(let t,n=0;t=e.childNodes[n];n++)r=this.visit(t,r[1]);return r}}semantic_annotator.SemanticVisitor=SemanticVisitor,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.annotate=e.activate=e.register=e.visitors=e.annotators=void 0;const t=semantic_annotator;e.annotators=new Map,e.visitors=new Map,e.register=function(r){const n=r.domain+":"+r.name;r instanceof t.SemanticAnnotator?e.annotators.set(n,r):e.visitors.set(n,r)},e.activate=function(t,r){const n=t+":"+r,o=e.annotators.get(n)||e.visitors.get(n);o&&(o.active=!0)},e.annotate=function(t){for(const r of e.annotators.values())r.active&&r.annotate(t);for(const r of e.visitors.values())r.active&&r.visit(t,Object.assign({},r.def))}}(semantic_annotations),getDefaultExportFromCjs$1(semantic_annotations);var semantic_attr={};Object.defineProperty(semantic_attr,"__esModule",{value:!0}),semantic_attr.lookupSecondary=semantic_attr.isEmbellishedType=semantic_attr.isMatchingFence=semantic_attr.functionApplication=semantic_attr.invisibleComma=semantic_attr.invisiblePlus=semantic_attr.invisibleTimes=semantic_attr.lookupMeaning=semantic_attr.lookupRole=semantic_attr.lookupType=semantic_attr.equal=semantic_attr.allLettersRegExp=void 0;const generalPunctuations=["!",'"',"#","%","&",";","?","@","\\","¡","§","¶","¿","‗","†","‡","•","‣","․","‥","‧","‰","‱","‸","※","‼","‽","‾","⁁","⁂","⁃","⁇","⁈","⁉","⁋","⁌","⁍","⁎","⁏","⁐","⁑","⁓","⁕","⁖","⁘","⁙","⁚","⁛","⁜","⁝","⁞","︐","︔","︕","︖","︰","﹅","﹆","﹉","﹊","﹋","﹌","﹔","﹖","﹗","﹟","﹠","﹡","﹨","﹪","﹫","!",""","#","%","&","'","*","/",";","?","@","\"],colons=["︓",":",":","﹕"],invisibleComma_=String.fromCodePoint(8291),commas=[",","﹐",",",invisibleComma_],ellipses=["…","⋮","⋯","⋰","⋱","︙"],fullStops=[".","﹒","."],dashes=["¯","‒","–","—","―","﹘","-","⁻","₋","−","➖","﹣","-","‐","‑","‾","_"],tildes=["~","̃","∼","˜","∽","˷","̴","̰"],primes=["'","′","″","‴","‵","‶","‷","⁗","ʹ","ʺ"],degrees=["°"],openClosePairs={"(":")","[":"]","{":"}","⁅":"⁆","〈":"〉","❨":"❩","❪":"❫","❬":"❭","❮":"❯","❰":"❱","❲":"❳","❴":"❵","⟅":"⟆","⟦":"⟧","⟨":"⟩","⟪":"⟫","⟬":"⟭","⟮":"⟯","⦃":"⦄","⦅":"⦆","⦇":"⦈","⦉":"⦊","⦋":"⦌","⦍":"⦎","⦏":"⦐","⦑":"⦒","⦓":"⦔","⦕":"⦖","⦗":"⦘","⧘":"⧙","⧚":"⧛","⧼":"⧽","⸢":"⸣","⸤":"⸥","⸦":"⸧","⸨":"⸩","〈":"〉","《":"》","「":"」","『":"』","【":"】","〔":"〕","〖":"〗","〘":"〙","〚":"〛","〝":"〞","﴾":"﴿","︗":"︘","﹙":"﹚","﹛":"﹜","﹝":"﹞","(":")","[":"]","{":"}","⦅":"⦆","「":"」","⌈":"⌉","⌊":"⌋","⌌":"⌍","⌎":"⌏","⌜":"⌝","⌞":"⌟","⎛":"⎞","⎜":"⎟","⎝":"⎠","⎡":"⎤","⎢":"⎥","⎣":"⎦","⎧":"⎫","⎨":"⎬","⎩":"⎭","⎰":"⎱","⎸":"⎹"},topBottomPairs={"⎴":"⎵","⏜":"⏝","⏞":"⏟","⏠":"⏡","︵":"︶","︷":"︸","︹":"︺","︻":"︼","︽":"︾","︿":"﹀","﹁":"﹂","﹃":"﹄","﹇":"﹈"},leftFences=Object.keys(openClosePairs),rightFences=Object.values(openClosePairs);rightFences.push("〟");const topFences=Object.keys(topBottomPairs),bottomFences=Object.values(topBottomPairs),neutralFences=["|","¦","∣","⏐","⎸","⎹","❘","|","¦","︱","︲"],metricFences=["‖","∥","⦀","⫴"],capitalLatin=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],smallLatin=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ı","ȷ"],capitalLatinFullWidth=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],smallLatinFullWidth=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],capitalLatinBold=["𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙"],smallLatinBold=["𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳"],capitalLatinItalic=["𝐴","𝐵","𝐶","𝐷","𝐸","𝐹","𝐺","𝐻","𝐼","𝐽","𝐾","𝐿","𝑀","𝑁","𝑂","𝑃","𝑄","𝑅","𝑆","𝑇","𝑈","𝑉","𝑊","𝑋","𝑌","𝑍"],smallLatinItalic=["𝑎","𝑏","𝑐","𝑑","𝑒","𝑓","𝑔","ℎ","𝑖","𝑗","𝑘","𝑙","𝑚","𝑛","𝑜","𝑝","𝑞","𝑟","𝑠","𝑡","𝑢","𝑣","𝑤","𝑥","𝑦","𝑧","𝚤","𝚥"],capitalLatinBoldItalic=["𝑨","𝑩","𝑪","𝑫","𝑬","𝑭","𝑮","𝑯","𝑰","𝑱","𝑲","𝑳","𝑴","𝑵","𝑶","𝑷","𝑸","𝑹","𝑺","𝑻","𝑼","𝑽","𝑾","𝑿","𝒀","𝒁"],smallLatinBoldItalic=["𝒂","𝒃","𝒄","𝒅","𝒆","𝒇","𝒈","𝒉","𝒊","𝒋","𝒌","𝒍","𝒎","𝒏","𝒐","𝒑","𝒒","𝒓","𝒔","𝒕","𝒖","𝒗","𝒘","𝒙","𝒚","𝒛"],capitalLatinScript=["𝒜","ℬ","𝒞","𝒟","ℰ","ℱ","𝒢","ℋ","ℐ","𝒥","𝒦","ℒ","ℳ","𝒩","𝒪","𝒫","𝒬","ℛ","𝒮","𝒯","𝒰","𝒱","𝒲","𝒳","𝒴","𝒵","℘"],smallLatinScript=["𝒶","𝒷","𝒸","𝒹","ℯ","𝒻","ℊ","𝒽","𝒾","𝒿","𝓀","𝓁","𝓂","𝓃","ℴ","𝓅","𝓆","𝓇","𝓈","𝓉","𝓊","𝓋","𝓌","𝓍","𝓎","𝓏","ℓ"],capitalLatinBoldScript=["𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩"],smallLatinBoldScript=["𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"],capitalLatinFraktur=["𝔄","𝔅","ℭ","𝔇","𝔈","𝔉","𝔊","ℌ","ℑ","𝔍","𝔎","𝔏","𝔐","𝔑","𝔒","𝔓","𝔔","ℜ","𝔖","𝔗","𝔘","𝔙","𝔚","𝔛","𝔜","ℨ"],smallLatinFraktur=["𝔞","𝔟","𝔠","𝔡","𝔢","𝔣","𝔤","𝔥","𝔦","𝔧","𝔨","𝔩","𝔪","𝔫","𝔬","𝔭","𝔮","𝔯","𝔰","𝔱","𝔲","𝔳","𝔴","𝔵","𝔶","𝔷"],capitalLatinDoubleStruck=["𝔸","𝔹","ℂ","𝔻","𝔼","𝔽","𝔾","ℍ","𝕀","𝕁","𝕂","𝕃","𝕄","ℕ","𝕆","ℙ","ℚ","ℝ","𝕊","𝕋","𝕌","𝕍","𝕎","𝕏","𝕐","ℤ"],smallLatinDoubleStruck=["𝕒","𝕓","𝕔","𝕕","𝕖","𝕗","𝕘","𝕙","𝕚","𝕛","𝕜","𝕝","𝕞","𝕟","𝕠","𝕡","𝕢","𝕣","𝕤","𝕥","𝕦","𝕧","𝕨","𝕩","𝕪","𝕫"],capitalLatinBoldFraktur=["𝕬","𝕭","𝕮","𝕯","𝕰","𝕱","𝕲","𝕳","𝕴","𝕵","𝕶","𝕷","𝕸","𝕹","𝕺","𝕻","𝕼","𝕽","𝕾","𝕿","𝖀","𝖁","𝖂","𝖃","𝖄","𝖅"],smallLatinBoldFraktur=["𝖆","𝖇","𝖈","𝖉","𝖊","𝖋","𝖌","𝖍","𝖎","𝖏","𝖐","𝖑","𝖒","𝖓","𝖔","𝖕","𝖖","𝖗","𝖘","𝖙","𝖚","𝖛","𝖜","𝖝","𝖞","𝖟"],capitalLatinSansSerif=["𝖠","𝖡","𝖢","𝖣","𝖤","𝖥","𝖦","𝖧","𝖨","𝖩","𝖪","𝖫","𝖬","𝖭","𝖮","𝖯","𝖰","𝖱","𝖲","𝖳","𝖴","𝖵","𝖶","𝖷","𝖸","𝖹"],smallLatinSansSerif=["𝖺","𝖻","𝖼","𝖽","𝖾","𝖿","𝗀","𝗁","𝗂","𝗃","𝗄","𝗅","𝗆","𝗇","𝗈","𝗉","𝗊","𝗋","𝗌","𝗍","𝗎","𝗏","𝗐","𝗑","𝗒","𝗓"],capitalLatinSansSerifBold=["𝗔","𝗕","𝗖","𝗗","𝗘","𝗙","𝗚","𝗛","𝗜","𝗝","𝗞","𝗟","𝗠","𝗡","𝗢","𝗣","𝗤","𝗥","𝗦","𝗧","𝗨","𝗩","𝗪","𝗫","𝗬","𝗭"],smallLatinSansSerifBold=["𝗮","𝗯","𝗰","𝗱","𝗲","𝗳","𝗴","𝗵","𝗶","𝗷","𝗸","𝗹","𝗺","𝗻","𝗼","𝗽","𝗾","𝗿","𝘀","𝘁","𝘂","𝘃","𝘄","𝘅","𝘆","𝘇"],capitalLatinSansSerifItalic=["𝘈","𝘉","𝘊","𝘋","𝘌","𝘍","𝘎","𝘏","𝘐","𝘑","𝘒","𝘓","𝘔","𝘕","𝘖","𝘗","𝘘","𝘙","𝘚","𝘛","𝘜","𝘝","𝘞","𝘟","𝘠","𝘡"],smallLatinSansSerifItalic=["𝘢","𝘣","𝘤","𝘥","𝘦","𝘧","𝘨","𝘩","𝘪","𝘫","𝘬","𝘭","𝘮","𝘯","𝘰","𝘱","𝘲","𝘳","𝘴","𝘵","𝘶","𝘷","𝘸","𝘹","𝘺","𝘻"],capitalLatinSansSerifBoldItalic=["𝘼","𝘽","𝘾","𝘿","𝙀","𝙁","𝙂","𝙃","𝙄","𝙅","𝙆","𝙇","𝙈","𝙉","𝙊","𝙋","𝙌","𝙍","𝙎","𝙏","𝙐","𝙑","𝙒","𝙓","𝙔","𝙕"],smallLatinSansSerifBoldItalic=["𝙖","𝙗","𝙘","𝙙","𝙚","𝙛","𝙜","𝙝","𝙞","𝙟","𝙠","𝙡","𝙢","𝙣","𝙤","𝙥","𝙦","𝙧","𝙨","𝙩","𝙪","𝙫","𝙬","𝙭","𝙮","𝙯"],capitalLatinMonospace=["𝙰","𝙱","𝙲","𝙳","𝙴","𝙵","𝙶","𝙷","𝙸","𝙹","𝙺","𝙻","𝙼","𝙽","𝙾","𝙿","𝚀","𝚁","𝚂","𝚃","𝚄","𝚅","𝚆","𝚇","𝚈","𝚉"],smallLatinMonospace=["𝚊","𝚋","𝚌","𝚍","𝚎","𝚏","𝚐","𝚑","𝚒","𝚓","𝚔","𝚕","𝚖","𝚗","𝚘","𝚙","𝚚","𝚛","𝚜","𝚝","𝚞","𝚟","𝚠","𝚡","𝚢","𝚣"],latinDoubleStruckItalic=["ⅅ","ⅆ","ⅇ","ⅈ","ⅉ"],capitalGreek=["Α","Β","Γ","Δ","Ε","Ζ","Η","Θ","Ι","Κ","Λ","Μ","Ν","Ξ","Ο","Π","Ρ","Σ","Τ","Υ","Φ","Χ","Ψ","Ω"],smallGreek=["α","β","γ","δ","ε","ζ","η","θ","ι","κ","λ","μ","ν","ξ","ο","π","ρ","ς","σ","τ","υ","φ","χ","ψ","ω"],capitalGreekBold=["𝚨","𝚩","𝚪","𝚫","𝚬","𝚭","𝚮","𝚯","𝚰","𝚱","𝚲","𝚳","𝚴","𝚵","𝚶","𝚷","𝚸","𝚺","𝚻","𝚼","𝚽","𝚾","𝚿","𝛀"],smallGreekBold=["𝛂","𝛃","𝛄","𝛅","𝛆","𝛇","𝛈","𝛉","𝛊","𝛋","𝛌","𝛍","𝛎","𝛏","𝛐","𝛑","𝛒","𝛓","𝛔","𝛕","𝛖","𝛗","𝛘","𝛙","𝛚"],capitalGreekItalic=["𝛢","𝛣","𝛤","𝛥","𝛦","𝛧","𝛨","𝛩","𝛪","𝛫","𝛬","𝛭","𝛮","𝛯","𝛰","𝛱","𝛲","𝛴","𝛵","𝛶","𝛷","𝛸","𝛹","𝛺"],smallGreekItalic=["𝛼","𝛽","𝛾","𝛿","𝜀","𝜁","𝜂","𝜃","𝜄","𝜅","𝜆","𝜇","𝜈","𝜉","𝜊","𝜋","𝜌","𝜍","𝜎","𝜏","𝜐","𝜑","𝜒","𝜓","𝜔"],capitalGreekBoldItalic=["𝜜","𝜝","𝜞","𝜟","𝜠","𝜡","𝜢","𝜣","𝜤","𝜥","𝜦","𝜧","𝜨","𝜩","𝜪","𝜫","𝜬","𝜮","𝜯","𝜰","𝜱","𝜲","𝜳","𝜴"],smallGreekBoldItalic=["𝜶","𝜷","𝜸","𝜹","𝜺","𝜻","𝜼","𝜽","𝜾","𝜿","𝝀","𝝁","𝝂","𝝃","𝝄","𝝅","𝝆","𝝇","𝝈","𝝉","𝝊","𝝋","𝝌","𝝍","𝝎"],capitalGreekSansSerifBold=["𝝖","𝝗","𝝘","𝝙","𝝚","𝝛","𝝜","𝝝","𝝞","𝝟","𝝠","𝝡","𝝢","𝝣","𝝤","𝝥","𝝦","𝝨","𝝩","𝝪","𝝫","𝝬","𝝭","𝝮"],smallGreekSansSerifBold=["𝝰","𝝱","𝝲","𝝳","𝝴","𝝵","𝝶","𝝷","𝝸","𝝹","𝝺","𝝻","𝝼","𝝽","𝝾","𝝿","𝞀","𝞁","𝞂","𝞃","𝞄","𝞅","𝞆","𝞇","𝞈"],capitalGreekSansSerifBoldItalic=["𝞐","𝞑","𝞒","𝞓","𝞔","𝞕","𝞖","𝞗","𝞘","𝞙","𝞚","𝞛","𝞜","𝞝","𝞞","𝞟","𝞠","𝞢","𝞣","𝞤","𝞥","𝞦","𝞧","𝞨"],smallGreekSansSerifBoldItalic=["𝞪","𝞫","𝞬","𝞭","𝞮","𝞯","𝞰","𝞱","𝞲","𝞳","𝞴","𝞵","𝞶","𝞷","𝞸","𝞹","𝞺","𝞻","𝞼","𝞽","𝞾","𝞿","𝟀","𝟁","𝟂"],greekDoubleStruck=["ℼ","ℽ","ℾ","ℿ"],greekSpecial=["ϐ","ϑ","ϕ","ϖ","ϗ","ϰ","ϱ","ϵ","϶","ϴ"],greekSpecialBold=["𝛜","𝛝","𝛞","𝛟","𝛠","𝛡"],greekSpecialItalic=["𝜖","𝜗","𝜘","𝜙","𝜚","𝜛"],greekSpecialSansSerifBold=["𝞊","𝞋","𝞌","𝞍","𝞎","𝞏"],hebrewLetters=["ℵ","ℶ","ℷ","ℸ"],allLetters=capitalLatin.concat(smallLatin,capitalLatinFullWidth,smallLatinFullWidth,capitalLatinBold,smallLatinBold,capitalLatinItalic,capitalLatinBoldItalic,smallLatinBoldItalic,smallLatinItalic,capitalLatinScript,smallLatinScript,capitalLatinBoldScript,smallLatinBoldScript,capitalLatinFraktur,smallLatinFraktur,capitalLatinDoubleStruck,smallLatinDoubleStruck,capitalLatinBoldFraktur,smallLatinBoldFraktur,capitalLatinSansSerif,smallLatinSansSerif,capitalLatinSansSerifBold,smallLatinSansSerifBold,capitalLatinSansSerifItalic,smallLatinSansSerifItalic,capitalLatinSansSerifBoldItalic,smallLatinSansSerifBoldItalic,capitalLatinMonospace,smallLatinMonospace,latinDoubleStruckItalic,capitalGreek,smallGreek,capitalGreekBold,smallGreekBold,capitalGreekItalic,smallGreekItalic,capitalGreekBoldItalic,smallGreekBoldItalic,capitalGreekSansSerifBold,smallGreekSansSerifBold,greekDoubleStruck,greekSpecial,capitalGreekSansSerifBoldItalic,smallGreekSansSerifBoldItalic,greekSpecialBold,greekSpecialItalic,greekSpecialSansSerifBold,hebrewLetters);semantic_attr.allLettersRegExp=new RegExp(allLetters.join("|"));const additions=["+","±","∓","∔","∧","∨","∩","∪","⊌","⊍","⊎","⊓","⊔","⊝","⊞","⊤","⊥","⊺","⊻","⊼","⋄","⋎","⋏","⋒","⋓","⩞","⊕","⋔"],invisiblePlus_=String.fromCodePoint(8292);additions.push(invisiblePlus_);const multiplications=["†","‡","∐","∗","∘","∙","≀","⊚","⊛","⊠","⊡","⋅","⋆","⋇","⋈","⋉","⋊","⋋","⋌","○","·","*","⊗","⊙"],invisibleTimes_=String.fromCodePoint(8290);multiplications.push(invisibleTimes_);const subtractions=["¯","-","⁒","⁻","₋","−","∖","∸","≂","⊖","⊟","➖","⨩","⨪","⨫","⨬","⨺","⩁","﹣","-","‐","‑"],divisions=["/","÷","⁄","∕","⊘","⟌","⦼","⨸"],functionApplication_=String.fromCodePoint(8289),equalities=["=","~","⁼","₌","∼","∽","≃","≅","≈","≊","≋","≌","≍","≎","≑","≒","≓","≔","≕","≖","≗","≘","≙","≚","≛","≜","≝","≞","≟","≡","≣","⧤","⩦","⩮","⩯","⩰","⩱","⩲","⩳","⩴","⩵","⩶","⩷","⩸","⋕","⩭","⩪","⩫","⩬","﹦","=","⩬","⊜","∷"],inequalities=["<",">","≁","≂","≄","≆","≇","≉","≏","≐","≠","≢","≤","≥","≦","≧","≨","≩","≪","≫","≬","≭","≮","≯","≰","≱","≲","≳","≴","≵","≶","≷","≸","≹","≺","≻","≼","≽","≾","≿","⊀","⊁","⋖","⋗","⋘","⋙","⋚","⋛","⋜","⋝","⋞","⋟","⋠","⋡","⋦","⋧","⋨","⋩","⩹","⩺","⩻","⩼","⩽","⩾","⩿","⪀","⪁","⪂","⪃","⪄","⪅","⪆","⪇","⪈","⪉","⪊","⪋","⪌","⪍","⪎","⪏","⪐","⪑","⪒","⪓","⪔","⪕","⪖","⪗","⪘","⪙","⪚","⪛","⪜","⪝","⪞","⪟","⪠","⪡","⪢","⪣","⪤","⪥","⪦","⪧","⪨","⪩","⪪","⪫","⪬","⪭","⪮","⪯","⪰","⪱","⪲","⪳","⪴","⪵","⪶","⪷","⪸","⪹","⪺","⪻","⪼","⫷","⫸","⫹","⫺","⧀","⧁","﹤","﹥","<",">"],setRelations=["⋢","⋣","⋤","⋥","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⪽","⪾","⪿","⫀","⫁","⫂","⫃","⫄","⫅","⫆","⫇","⫈","⫉","⫊","⫋","⫌","⫍","⫎","⫏","⫐","⫑","⫒","⫓","⫔","⫕","⫖","⫗","⫘","⋐","⋑","⋪","⋫","⋬","⋭","⊲","⊳","⊴","⊵"],elementRelations=["∈","∊","⋲","⋳","⋴","⋵","⋶","⋷","⋸","⋹","⋿"],nonelementRelations=["∉"],reelementRelations=["∋","∍","⋺","⋻","⋼","⋽","⋾"],renonelementRelations=["∌"],relations=["⊢","⊣","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⫞","⫟","⫠","⫡","⫢","⫣","⫤","⫥","⫦","⫧","⫨","⫩","⫪","⫫","⫬","⫭"],arrows=["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↩","↪","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿","⌁","⌃","⌄","⌤","⎋","➔","➘","➙","➚","➛","➜","➝","➞","➟","➠","➡","➢","➣","➤","➥","➦","➧","➨","➩","➪","➫","➬","➭","➮","➯","➱","➲","➳","➴","➵","➶","➷","➸","➹","➺","➻","➼","➽","➾","⟰","⟱","⟲","⟳","⟴","⟵","⟶","⟷","⟸","⟹","⟺","⟻","⟼","⟽","⟾","⟿","⤀","⤁","⤂","⤃","⤄","⤅","⤆","⤇","⤈","⤉","⤊","⤋","⤌","⤍","⤎","⤏","⤐","⤑","⤒","⤓","⤔","⤕","⤖","⤗","⤘","⤙","⤚","⤛","⤜","⤝","⤞","⤟","⤠","⤡","⤢","⤣","⤤","⤥","⤦","⤧","⤨","⤩","⤪","⤭","⤮","⤯","⤰","⤱","⤲","⤳","⤴","⤵","⤶","⤷","⤸","⤹","⤺","⤻","⤼","⤽","⤾","⤿","⥀","⥁","⥂","⥃","⥄","⥅","⥆","⥇","⥈","⥉","⥰","⥱","⥲","⥳","⥴","⥵","⥶","⥷","⥸","⥹","⥺","⥻","⦳","⦴","⦽","⧪","⧬","⧭","⨗","⬀","⬁","⬂","⬃","⬄","⬅","⬆","⬇","⬈","⬉","⬊","⬋","⬌","⬍","⬎","⬏","⬐","⬑","⬰","⬱","⬲","⬳","⬴","⬵","⬶","⬷","⬸","⬹","⬺","⬻","⬼","⬽","⬾","⬿","⭀","⭁","⭂","⭃","⭄","⭅","⭆","⭇","⭈","⭉","⭊","⭋","⭌","←","↑","→","↓","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇋","⇌","⥊","⥋","⥌","⥍","⥎","⥏","⥐","⥑","⥒","⥓","⥔","⥕","⥖","⥗","⥘","⥙","⥚","⥛","⥜","⥝","⥞","⥟","⥠","⥡","⥢","⥣","⥤","⥥","⥦","⥧","⥨","⥩","⥪","⥫","⥬","⥭","⥮","⥯","⥼","⥽","⥾","⥿"],sumOps=["⅀","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨃","⨄","⨅","⨆","⨇","⨈","⨉","⨊","⨋","⫼","⫿"],intOps=["∫","∬","∭","∮","∯","∰","∱","∲","∳","⨌","⨍","⨎","⨏","⨐","⨑","⨒","⨓","⨔","⨕","⨖","⨗","⨘","⨙","⨚","⨛","⨜"],geometryOps=["∟","∠","∡","∢","⊾","⊿","△","▷","▽","◁"],prefixOps=["∀","∃","∆","∇","∂","∁","∄"],prefixOpsBold=["𝛁","𝛛","𝟊","𝟋"],prefixOpsItalic=["𝛻","𝜕"],prefixOpsSansSerifBold=["𝝯","𝞉"],digitsNormal=["0","1","2","3","4","5","6","7","8","9"],digitsFullWidth=["0","1","2","3","4","5","6","7","8","9"],digitsBold=["𝟎","𝟏","𝟐","𝟑","𝟒","𝟓","𝟔","𝟕","𝟖","𝟗"],digitsDoubleStruck=["𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"],digitsSansSerif=["𝟢","𝟣","𝟤","𝟥","𝟦","𝟧","𝟨","𝟩","𝟪","𝟫"],digitsSansSerifBold=["𝟬","𝟭","𝟮","𝟯","𝟰","𝟱","𝟲","𝟳","𝟴","𝟵"],digitsMonospace=["𝟶","𝟷","𝟸","𝟹","𝟺","𝟻","𝟼","𝟽","𝟾","𝟿"],digitsSuperscript=["²","³","¹","⁰","⁴","⁵","⁶","⁷","⁸","⁹"],digitsSubscript=["₀","₁","₂","₃","₄","₅","₆","₇","₈","₉"],fractions=["¼","½","¾","⅐","⅑","⅒","⅓","⅔","⅕","⅖","⅗","⅘","⅙","⅚","⅛","⅜","⅝","⅞","⅟","↉"],enclosedNumbers=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","⓪","⓫","⓬","⓭","⓮","⓯","⓰","⓱","⓲","⓳","⓴","⓵","⓶","⓷","⓸","⓹","⓺","⓻","⓼","⓽","⓾","⓿","❶","❷","❸","❹","❺","❻","❼","❽","❾","❿","➀","➁","➂","➃","➄","➅","➆","➇","➈","➉","➊","➋","➌","➍","➎","➏","➐","➑","➒","➓","㉈","㉉","㉊","㉋","㉌","㉍","㉎","㉏","㉑","㉒","㉓","㉔","㉕","㉖","㉗","㉘","㉙","㉚","㉛","㉜","㉝","㉞","㉟","㊱","㊲","㊳","㊴","㊵","㊶","㊷","㊸","㊹","㊺","㊻","㊼","㊽","㊾","㊿"],fencedNumbers=["⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇"],punctuatedNumbers=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","🄀","🄁","🄂","🄃","🄄","🄅","🄆","🄇","🄈","🄉","🄊"],numbers=fractions,otherNumbers=digitsSuperscript.concat(digitsSubscript,enclosedNumbers,fencedNumbers,punctuatedNumbers),trigonometricFunctions=["cos","cot","csc","sec","sin","tan","arccos","arccot","arccsc","arcsec","arcsin","arctan","arc cos","arc cot","arc csc","arc sec","arc sin","arc tan"],hyperbolicFunctions=["cosh","coth","csch","sech","sinh","tanh","arcosh","arcoth","arcsch","arsech","arsinh","artanh","arccosh","arccoth","arccsch","arcsech","arcsinh","arctanh"],algebraicFunctions=["deg","det","dim","hom","ker","Tr","tr"],elementaryFunctions=["log","ln","lg","exp","expt","gcd","gcd","arg","im","re","Pr"],prefixFunctions=trigonometricFunctions.concat(hyperbolicFunctions,algebraicFunctions,elementaryFunctions),limitFunctions=["inf","lim","liminf","limsup","max","min","sup","injlim","projlim","inj lim","proj lim"],infixFunctions=["mod","rem"],symbolSetToSemantic_=[{set:generalPunctuations,type:"punctuation",role:"unknown"},{set:colons,type:"punctuation",role:"colon"},{set:commas,type:"punctuation",role:"comma"},{set:ellipses,type:"punctuation",role:"ellipsis"},{set:fullStops,type:"punctuation",role:"fullstop"},{set:dashes,type:"operator",role:"dash"},{set:tildes,type:"operator",role:"tilde"},{set:primes,type:"punctuation",role:"prime"},{set:degrees,type:"punctuation",role:"degree"},{set:leftFences,type:"fence",role:"open"},{set:rightFences,type:"fence",role:"close"},{set:topFences,type:"fence",role:"top"},{set:bottomFences,type:"fence",role:"bottom"},{set:neutralFences,type:"fence",role:"neutral"},{set:metricFences,type:"fence",role:"metric"},{set:smallLatin,type:"identifier",role:"latinletter",font:"normal"},{set:capitalLatin,type:"identifier",role:"latinletter",font:"normal"},{set:smallLatinFullWidth,type:"identifier",role:"latinletter",font:"normal"},{set:capitalLatinFullWidth,type:"identifier",role:"latinletter",font:"normal"},{set:smallLatinBold,type:"identifier",role:"latinletter",font:"bold"},{set:capitalLatinBold,type:"identifier",role:"latinletter",font:"bold"},{set:smallLatinItalic,type:"identifier",role:"latinletter",font:"italic"},{set:capitalLatinItalic,type:"identifier",role:"latinletter",font:"italic"},{set:smallLatinBoldItalic,type:"identifier",role:"latinletter",font:"bold-italic"},{set:capitalLatinBoldItalic,type:"identifier",role:"latinletter",font:"bold-italic"},{set:smallLatinScript,type:"identifier",role:"latinletter",font:"script"},{set:capitalLatinScript,type:"identifier",role:"latinletter",font:"script"},{set:smallLatinBoldScript,type:"identifier",role:"latinletter",font:"bold-script"},{set:capitalLatinBoldScript,type:"identifier",role:"latinletter",font:"bold-script"},{set:smallLatinFraktur,type:"identifier",role:"latinletter",font:"fraktur"},{set:capitalLatinFraktur,type:"identifier",role:"latinletter",font:"fraktur"},{set:smallLatinDoubleStruck,type:"identifier",role:"latinletter",font:"double-struck"},{set:capitalLatinDoubleStruck,type:"identifier",role:"latinletter",font:"double-struck"},{set:smallLatinBoldFraktur,type:"identifier",role:"latinletter",font:"bold-fraktur"},{set:capitalLatinBoldFraktur,type:"identifier",role:"latinletter",font:"bold-fraktur"},{set:smallLatinSansSerif,type:"identifier",role:"latinletter",font:"sans-serif"},{set:capitalLatinSansSerif,type:"identifier",role:"latinletter",font:"sans-serif"},{set:smallLatinSansSerifBold,type:"identifier",role:"latinletter",font:"sans-serif-bold"},{set:capitalLatinSansSerifBold,type:"identifier",role:"latinletter",font:"sans-serif-bold"},{set:smallLatinSansSerifItalic,type:"identifier",role:"latinletter",font:"sans-serif-italic"},{set:capitalLatinSansSerifItalic,type:"identifier",role:"latinletter",font:"sans-serif-italic"},{set:smallLatinSansSerifBoldItalic,type:"identifier",role:"latinletter",font:"sans-serif-bold-italic"},{set:capitalLatinSansSerifBoldItalic,type:"identifier",role:"latinletter",font:"sans-serif-bold-italic"},{set:smallLatinMonospace,type:"identifier",role:"latinletter",font:"monospace"},{set:capitalLatinMonospace,type:"identifier",role:"latinletter",font:"monospace"},{set:latinDoubleStruckItalic,type:"identifier",role:"latinletter",font:"double-struck-italic"},{set:smallGreek,type:"identifier",role:"greekletter",font:"normal"},{set:capitalGreek,type:"identifier",role:"greekletter",font:"normal"},{set:smallGreekBold,type:"identifier",role:"greekletter",font:"bold"},{set:capitalGreekBold,type:"identifier",role:"greekletter",font:"bold"},{set:smallGreekItalic,type:"identifier",role:"greekletter",font:"italic"},{set:capitalGreekItalic,type:"identifier",role:"greekletter",font:"italic"},{set:smallGreekBoldItalic,type:"identifier",role:"greekletter",font:"bold-italic"},{set:capitalGreekBoldItalic,type:"identifier",role:"greekletter",font:"bold-italic"},{set:smallGreekSansSerifBold,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:capitalGreekSansSerifBold,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:capitalGreekSansSerifBoldItalic,type:"identifier",role:"greekletter",font:"sans-serif-bold-italic"},{set:smallGreekSansSerifBoldItalic,type:"identifier",role:"greekletter",font:"sans-serif-bold-italic"},{set:greekDoubleStruck,type:"identifier",role:"greekletter",font:"double-struck"},{set:greekSpecial,type:"identifier",role:"greekletter",font:"normal"},{set:greekSpecialBold,type:"identifier",role:"greekletter",font:"bold"},{set:greekSpecialItalic,type:"identifier",role:"greekletter",font:"italic"},{set:greekSpecialSansSerifBold,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:hebrewLetters,type:"identifier",role:"otherletter",font:"normal"},{set:digitsNormal,type:"number",role:"integer",font:"normal"},{set:digitsFullWidth,type:"number",role:"integer",font:"normal"},{set:digitsBold,type:"number",role:"integer",font:"bold"},{set:digitsDoubleStruck,type:"number",role:"integer",font:"double-struck"},{set:digitsSansSerif,type:"number",role:"integer",font:"sans-serif"},{set:digitsSansSerifBold,type:"number",role:"integer",font:"sans-serif-bold"},{set:digitsMonospace,type:"number",role:"integer",font:"monospace"},{set:numbers,type:"number",role:"float"},{set:otherNumbers,type:"number",role:"othernumber"},{set:additions,type:"operator",role:"addition"},{set:multiplications,type:"operator",role:"multiplication"},{set:subtractions,type:"operator",role:"subtraction"},{set:divisions,type:"operator",role:"division"},{set:prefixOps,type:"operator",role:"prefix operator"},{set:prefixOpsBold,type:"operator",role:"prefix operator",font:"bold"},{set:prefixOpsItalic,type:"operator",role:"prefix operator",font:"italic"},{set:prefixOpsSansSerifBold,type:"operator",role:"prefix operator",font:"sans-serif-bold"},{set:equalities,type:"relation",role:"equality"},{set:inequalities,type:"relation",role:"inequality"},{set:setRelations,type:"relation",role:"set"},{set:relations,type:"relation",role:"unknown"},{set:arrows,type:"relation",role:"arrow"},{set:elementRelations,type:"operator",role:"element"},{set:nonelementRelations,type:"operator",role:"nonelement"},{set:reelementRelations,type:"operator",role:"reelement"},{set:renonelementRelations,type:"operator",role:"renonelement"},{set:sumOps,type:"largeop",role:"sum"},{set:intOps,type:"largeop",role:"integral"},{set:geometryOps,type:"operator",role:"geometry"},{set:limitFunctions,type:"function",role:"limit function"},{set:prefixFunctions,type:"function",role:"prefix function"},{set:infixFunctions,type:"operator",role:"prefix function"}],meaning_=function(){const e={};for(let t,r=0;t=symbolSetToSemantic_[r];r++)t.set.forEach((function(r){e[r]={role:t.role||"unknown",type:t.type||"unknown",font:t.font||"unknown"}}));return e}();function equal(e,t){return e.type===t.type&&e.role===t.role&&e.font===t.font}function lookupType(e){var t;return(null===(t=meaning_[e])||void 0===t?void 0:t.type)||"unknown"}function lookupRole(e){var t;return(null===(t=meaning_[e])||void 0===t?void 0:t.role)||"unknown"}function lookupMeaning(e){return meaning_[e]||{role:"unknown",type:"unknown",font:"unknown"}}function invisibleTimes(){return invisibleTimes_}function invisiblePlus(){return invisiblePlus_}function invisibleComma(){return invisibleComma_}function functionApplication(){return functionApplication_}function isMatchingFence(e,t){return-1!==neutralFences.indexOf(e)||-1!==metricFences.indexOf(e)?e===t:openClosePairs[e]===t||topBottomPairs[e]===t}function isEmbellishedType(e){return"operator"===e||"relation"===e||"fence"===e||"punctuation"===e}semantic_attr.equal=equal,semantic_attr.lookupType=lookupType,semantic_attr.lookupRole=lookupRole,semantic_attr.lookupMeaning=lookupMeaning,semantic_attr.invisibleTimes=invisibleTimes,semantic_attr.invisiblePlus=invisiblePlus,semantic_attr.invisibleComma=invisibleComma,semantic_attr.functionApplication=functionApplication,semantic_attr.isMatchingFence=isMatchingFence,semantic_attr.isEmbellishedType=isEmbellishedType;const secondary_=new Map;function secKey(e,t){return`${e} ${t}`}function addSecondary_(e,t,r=""){for(const n of t)secondary_.set(secKey(e,n),r||e)}function lookupSecondary(e,t){return secondary_.get(secKey(e,t))}addSecondary_("d",["d","ⅆ","d","𝐝","𝑑","𝒹","𝓭","𝔡","𝕕","𝖉","𝖽","𝗱","𝘥","𝚍"]),addSecondary_("bar",dashes),addSecondary_("tilde",tildes),semantic_attr.lookupSecondary=lookupSecondary,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.wordOrdinal=e.layoutFactor_=e.fencedFactor_=e.simpleFactor_=e.simpleArguments=e.fencedArguments=e.insertNesting=e.matchingFences=e.nestingDepth=e.NESTING_DEPTH=e.ordinalExponent=e.allTextLastContent_=e.isUnitExpression=e.isSmallVulgarFraction=e.allCellsSimple=e.allIndices_=e.isInteger_=e.simpleCell_=e.simpleNode=e.hasPreference=e.isSimpleFraction_=e.isSimpleNumber_=e.isNumber_=e.isLetter_=e.isSimple_=e.isSimpleLetters_=e.isSimpleDegree_=e.isSimpleNegative_=e.isSimpleFunction_=e.isSimpleExpression=e.nodeCounter=void 0;const t=dom_util,r=engine,n=xpath_util,o=locale$d,i=transformers,a=grammar,s=store_util,l=semantic_annotations,c=semantic_annotator,u=semantic_attr;function d(e){return b(e)||f(e)||h(e)||m(e)||p(e)}function p(e){return"appl"===e.type&&("prefix function"===e.childNodes[0].role||"simple function"===e.childNodes[0].role)&&(_(e.childNodes[1])||"fenced"===e.childNodes[1].type&&_(e.childNodes[1].childNodes[0]))}function m(e){return"prefixop"===e.type&&"negative"===e.role&&_(e.childNodes[0])&&"prefixop"!==e.childNodes[0].type&&"appl"!==e.childNodes[0].type&&"punctuated"!==e.childNodes[0].type}function h(e){return"punctuated"===e.type&&"endpunct"===e.role&&2===e.childNodes.length&&"degree"===e.childNodes[1].role&&(g(e.childNodes[0])||y(e.childNodes[0])||"prefixop"===e.childNodes[0].type&&"negative"===e.childNodes[0].role&&(g(e.childNodes[0].childNodes[0])||y(e.childNodes[0].childNodes[0])))}function f(e){return g(e)||"infixop"===e.type&&"implicit"===e.role&&(2===e.childNodes.length&&(g(e.childNodes[0])||b(e.childNodes[0]))&&g(e.childNodes[1])||3===e.childNodes.length&&b(e.childNodes[0])&&g(e.childNodes[1])&&g(e.childNodes[2]))}function _(e){return e.hasAnnotation("clearspeak","simple")}function g(e){return"identifier"===e.type&&("latinletter"===e.role||"greekletter"===e.role||"otherletter"===e.role||"simple function"===e.role)}function y(e){return"number"===e.type&&("integer"===e.role||"float"===e.role)}function b(e){return y(e)||v(e)}function v(e){if(x("Fraction_Over")||x("Fraction_FracOver"))return!1;if("fraction"!==e.type||"vulgar"!==e.role)return!1;if(x("Fraction_Ordinal"))return!0;const t=parseInt(e.childNodes[0].textContent,10),r=parseInt(e.childNodes[1].textContent,10);return t>0&&t<20&&r>0&&r<11}function x(e){return r.default.getInstance().style===e}function M(e){if(!e.hasAttribute("annotation"))return!1;const t=e.getAttribute("annotation");return!!/clearspeak:simple$|clearspeak:simple;/.exec(t)}function S(e){if(M(e))return!0;if("subscript"!==e.tagName)return!1;const t=e.childNodes[0].childNodes,r=t[1];return"identifier"===t[0].tagName&&(E(r)||"infixop"===r.tagName&&r.hasAttribute("role")&&"implicit"===r.getAttribute("role")&&$(r))}function E(e){return"number"===e.tagName&&e.hasAttribute("role")&&"integer"===e.getAttribute("role")}function $(e){return n.evalXPath("children/*",e).every((e=>E(e)||"identifier"===e.tagName))}function C(e){return"text"===e.type||"punctuated"===e.type&&"text"===e.role&&y(e.childNodes[0])&&O(e.childNodes.slice(1))||"identifier"===e.type&&"unit"===e.role||"infixop"===e.type&&("implicit"===e.role||"unit"===e.role)}function O(e){for(let t=0;t<e.length-1;t++)if("text"!==e[t].type||""!==e[t].textContent)return!1;return"text"===e[e.length-1].type}function A(e,t){if(!t||!e)return e;const r=e.match(/^(open|close) /);return r?r[0]+t+" "+e.substring(r[0].length):t+" "+e}function j(e){return!!e&&("number"===e.tagName||"identifier"===e.tagName||"function"===e.tagName||"appl"===e.tagName||"fraction"===e.tagName)}function T(e){return e&&("fenced"===e.tagName||e.hasAttribute("role")&&"leftright"===e.getAttribute("role")||N(e))}function N(e){return!!e&&("matrix"===e.tagName||"vector"===e.tagName)}e.nodeCounter=function(e,t){const r=t.split("-"),n=s.nodeCounter(e,r[0]||""),o=r[1]||"",i=r[2]||"";let a=!0;return function(){const e=n();return a?(a=!1,i+e+o):e+o}},e.isSimpleExpression=d,e.isSimpleFunction_=p,e.isSimpleNegative_=m,e.isSimpleDegree_=h,e.isSimpleLetters_=f,e.isSimple_=_,e.isLetter_=g,e.isNumber_=y,e.isSimpleNumber_=b,e.isSimpleFraction_=v,e.hasPreference=x,(0,l.register)(new c.SemanticAnnotator("clearspeak","simple",(function(e){return d(e)?"simple":""}))),e.simpleNode=M,e.simpleCell_=S,e.isInteger_=E,e.allIndices_=$,e.allCellsSimple=function(e){const t="matrix"===e.tagName?"children/row/children/cell/children/*":"children/line/children/*";return n.evalXPath(t,e).every(S)?[e]:[]},e.isSmallVulgarFraction=function(e){return(0,i.vulgarFractionSmall)(e,20,11)?[e]:[]},e.isUnitExpression=C,e.allTextLastContent_=O,(0,l.register)(new c.SemanticAnnotator("clearspeak","unit",(function(e){return C(e)?"unit":""}))),e.ordinalExponent=function(e){const t=parseInt(e.textContent,10);return isNaN(t)?e.textContent:t>10?o.LOCALE.NUMBERS.numericOrdinal(t):o.LOCALE.NUMBERS.wordOrdinal(t)},e.NESTING_DEPTH=null,e.nestingDepth=function(t){let r=0;const n=t.textContent,i="open"===t.getAttribute("role")?0:1;let a=t.parentNode;for(;a;)"fenced"===a.tagName&&a.childNodes[0].childNodes[i].textContent===n&&r++,a=a.parentNode;return e.NESTING_DEPTH=r>1?o.LOCALE.NUMBERS.wordOrdinal(r):"",e.NESTING_DEPTH},e.matchingFences=function(e){const t=e.previousSibling;let r,n;return t?(r=t,n=e):(r=e,n=e.nextSibling),n&&(0,u.isMatchingFence)(r.textContent,n.textContent)?[e]:[]},e.insertNesting=A,a.Grammar.getInstance().setCorrection("insertNesting",A),e.fencedArguments=function(e){const r=t.toArray(e.parentNode.childNodes),o=n.evalXPath("../../children/*",e),i=r.indexOf(e);return T(o[i])||T(o[i+1])?[e]:[]},e.simpleArguments=function(e){const r=t.toArray(e.parentNode.childNodes),o=n.evalXPath("../../children/*",e),i=r.indexOf(e);return j(o[i])&&o[i+1]&&(j(o[i+1])||"root"===o[i+1].tagName||"sqrt"===o[i+1].tagName||"superscript"===o[i+1].tagName&&o[i+1].childNodes[0].childNodes[0]&&("number"===o[i+1].childNodes[0].childNodes[0].tagName||"identifier"===o[i+1].childNodes[0].childNodes[0].tagName)&&("2"===o[i+1].childNodes[0].childNodes[1].textContent||"3"===o[i+1].childNodes[0].childNodes[1].textContent))?[e]:[]},e.simpleFactor_=j,e.fencedFactor_=T,e.layoutFactor_=N,e.wordOrdinal=function(e){return o.LOCALE.NUMBERS.wordOrdinal(parseInt(e.textContent,10))}}(clearspeak_util),getDefaultExportFromCjs$1(clearspeak_util);var mathspeak_util={},base_util={};function removeEmpty(e){return e.filter((e=>e))}function interleaveLists(e,t){const r=[];for(;e.length||t.length;)e.length&&r.push(e.shift()),t.length&&r.push(t.shift());return r}function setdifference(e,t){return e?t?e.filter((e=>t.indexOf(e)<0)):e:[]}function union(e,t){return e&&t?e.concat(setdifference(t,e)):e||t||[]}Object.defineProperty(base_util,"__esModule",{value:!0}),base_util.union=base_util.setdifference=base_util.interleaveLists=base_util.removeEmpty=void 0,base_util.removeEmpty=removeEmpty,base_util.interleaveLists=interleaveLists,base_util.setdifference=setdifference,base_util.union=union;var semantic_processor={},semantic_heuristic_factory={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.run=e.add=e.blacklist=e.flags=e.updateFactory=e.factory=void 0,e.factory=null,e.updateFactory=function(t){e.factory=t};const t=new Map;function r(e){return t.get(e)}e.flags={combine_juxtaposition:!0,convert_juxtaposition:!0,multioperator:!0},e.blacklist={},e.add=function(r){const n=r.name;t.set(n,r),e.flags[n]||(e.flags[n]=!1)},e.run=function(t,n,o){const i=r(t);return i&&!e.blacklist[t]&&(e.flags[t]||i.applicable(n))?i.apply(n):o?o(n):n},e.lookup=r}(semantic_heuristic_factory),getDefaultExportFromCjs$1(semantic_heuristic_factory);var semantic_node_factory={},semantic_default={},semantic_ordering={};Object.defineProperty(semantic_ordering,"__esModule",{value:!0}),semantic_ordering.SemanticComparator=semantic_ordering.reduce=semantic_ordering.sort=semantic_ordering.apply=semantic_ordering.add=void 0;const comparators=[];function add(e){comparators.push(e)}function apply(e,t){for(let r,n=0;r=comparators[n];n++){const n=r.compare(e,t);if(0!==n)return n}return 0}function sort(e){e.sort(apply)}function reduce(e){if(e.length<=1)return e;const t=e.slice();sort(t);const r=[];let n;do{n=t.pop(),r.push(n)}while(n&&t.length&&0===apply(t[t.length-1],n));return r}semantic_ordering.add=add,semantic_ordering.apply=apply,semantic_ordering.sort=sort,semantic_ordering.reduce=reduce;class SemanticComparator{constructor(e,t=null){this.comparator=e,this.type=t,add(this)}compare(e,t){return this.type&&this.type===e.type&&this.type===t.type?this.comparator(e,t):0}}function simpleFunction(e,t){return"simple function"===e.role?1:"simple function"===t.role?-1:0}semantic_ordering.SemanticComparator=SemanticComparator,new SemanticComparator(simpleFunction,"identifier"),Object.defineProperty(semantic_default,"__esModule",{value:!0}),semantic_default.SemanticMeaningCollator=semantic_default.SemanticNodeCollator=semantic_default.SemanticDefault=void 0;const SemanticAttr$2=semantic_attr,semantic_ordering_1=semantic_ordering;class SemanticDefault{constructor(){this.map={}}static key(e,t){return t?e+":"+t:e}add(e,t){this.map[SemanticDefault.key(e,t.font)]=t}addNode(e){this.add(e.textContent,e.meaning())}retrieve(e,t){return this.map[SemanticDefault.key(e,t)]}retrieveNode(e){return this.retrieve(e.textContent,e.font)}size(){return Object.keys(this.map).length}}semantic_default.SemanticDefault=SemanticDefault;class SemanticCollator{constructor(){this.map={}}add(e,t){const r=this.map[e];r?r.push(t):this.map[e]=[t]}retrieve(e,t){return this.map[SemanticDefault.key(e,t)]}retrieveNode(e){return this.retrieve(e.textContent,e.font)}copy(){const e=this.copyCollator();for(const t in this.map)e.map[t]=this.map[t];return e}minimize(){for(const e in this.map)1===this.map[e].length&&delete this.map[e]}minimalCollator(){const e=this.copy();for(const t in e.map)1===e.map[t].length&&delete e.map[t];return e}isMultiValued(){for(const e in this.map)if(this.map[e].length>1)return!0;return!1}isEmpty(){return!Object.keys(this.map).length}}class SemanticNodeCollator extends SemanticCollator{copyCollator(){return new SemanticNodeCollator}add(e,t){const r=SemanticDefault.key(e,t.font);super.add(r,t)}addNode(e){this.add(e.textContent,e)}toString(){const e=[];for(const t in this.map){const r=Array(t.length+3).join(" "),n=this.map[t],o=[];for(let e,t=0;e=n[t];t++)o.push(e.toString());e.push(t+": "+o.join("\n"+r))}return e.join("\n")}collateMeaning(){const e=new SemanticMeaningCollator;for(const t in this.map)e.map[t]=this.map[t].map((function(e){return e.meaning()}));return e}}semantic_default.SemanticNodeCollator=SemanticNodeCollator;class SemanticMeaningCollator extends SemanticCollator{copyCollator(){return new SemanticMeaningCollator}add(e,t){const r=this.retrieve(e,t.font);if(!r||!r.find((function(e){return SemanticAttr$2.equal(e,t)}))){const r=SemanticDefault.key(e,t.font);super.add(r,t)}}addNode(e){this.add(e.textContent,e.meaning())}toString(){const e=[];for(const t in this.map){const r=Array(t.length+3).join(" "),n=this.map[t],o=[];for(let e,t=0;e=n[t];t++)o.push("{type: "+e.type+", role: "+e.role+", font: "+e.font+"}");e.push(t+": "+o.join("\n"+r))}return e.join("\n")}reduce(){for(const e in this.map)1!==this.map[e].length&&(this.map[e]=(0,semantic_ordering_1.reduce)(this.map[e]))}default(){const e=new SemanticDefault;for(const t in this.map)1===this.map[t].length&&(e.map[t]=this.map[t][0]);return e}newDefault(){const e=this.default();this.reduce();const t=this.default();return e.size()!==t.size()?t:null}}semantic_default.SemanticMeaningCollator=SemanticMeaningCollator;var semantic_node={},semantic_util={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.partitionNodes=e.sliceNodes=e.getEmbellishedInner=e.addAttributes=e.isZeroLength=e.purgeNodes=e.isOrphanedGlyph=e.hasDisplayTag=e.hasEmptyTag=e.hasIgnoreTag=e.hasLeafTag=e.hasMathTag=e.directSpeechKeys=e.DISPLAYTAGS=e.EMPTYTAGS=e.IGNORETAGS=e.LEAFTAGS=void 0;const t=dom_util;function r(r){return!!r&&-1!==e.LEAFTAGS.indexOf(t.tagName(r))}function n(e,t,r){r&&e.reverse();const n=[];for(let o,i=0;o=e[i];i++){if(t(o))return r?{head:e.slice(i+1).reverse(),div:o,tail:n.reverse()}:{head:n,div:o,tail:e.slice(i+1)};n.push(o)}return r?{head:[],div:null,tail:n.reverse()}:{head:n,div:null,tail:[]}}e.LEAFTAGS=["MO","MI","MN","MTEXT","MS","MSPACE"],e.IGNORETAGS=["MERROR","MPHANTOM","MALIGNGROUP","MALIGNMARK","MPRESCRIPTS","ANNOTATION","ANNOTATION-XML"],e.EMPTYTAGS=["MATH","MROW","MPADDED","MACTION","NONE","MSTYLE","SEMANTICS"],e.DISPLAYTAGS=["MROOT","MSQRT"],e.directSpeechKeys=["aria-label","exact-speech","alt"],e.hasMathTag=function(e){return!!e&&"MATH"===t.tagName(e)},e.hasLeafTag=r,e.hasIgnoreTag=function(r){return!!r&&-1!==e.IGNORETAGS.indexOf(t.tagName(r))},e.hasEmptyTag=function(r){return!!r&&-1!==e.EMPTYTAGS.indexOf(t.tagName(r))},e.hasDisplayTag=function(r){return!!r&&-1!==e.DISPLAYTAGS.indexOf(t.tagName(r))},e.isOrphanedGlyph=function(e){return!!e&&"MGLYPH"===t.tagName(e)&&!r(e.parentNode)},e.purgeNodes=function(r){const n=[];for(let o,i=0;o=r[i];i++){if(o.nodeType!==t.NodeType.ELEMENT_NODE)continue;const r=t.tagName(o);-1===e.IGNORETAGS.indexOf(r)&&(-1!==e.EMPTYTAGS.indexOf(r)&&0===o.childNodes.length||n.push(o))}return n},e.isZeroLength=function(e){if(!e)return!1;if(-1!==["negativeveryverythinmathspace","negativeverythinmathspace","negativethinmathspace","negativemediummathspace","negativethickmathspace","negativeverythickmathspace","negativeveryverythickmathspace"].indexOf(e))return!0;const t=e.match(/[0-9.]+/);return!!t&&0===parseFloat(t[0])},e.addAttributes=function(t,r){if(r.hasAttributes()){const n=r.attributes;for(let r=n.length-1;r>=0;r--){const o=n[r].name;o.match(/^ext/)&&(t.attributes[o]=n[r].value,t.nobreaking=!0),-1!==e.directSpeechKeys.indexOf(o)&&(t.attributes["ext-speech"]=n[r].value,t.nobreaking=!0),o.match(/texclass$/)&&(t.attributes.texclass=n[r].value),"href"===o&&(t.attributes.href=n[r].value,t.nobreaking=!0)}}},e.getEmbellishedInner=function e(t){return t&&t.embellished&&t.childNodes.length>0?e(t.childNodes[0]):t},e.sliceNodes=n,e.partitionNodes=function(e,t){let r=e;const o=[],i=[];let a=null;do{a=n(r,t),i.push(a.head),o.push(a.div),r=a.tail}while(a.div);return o.pop(),{rel:o,comp:i}}}(semantic_util),getDefaultExportFromCjs$1(semantic_util),Object.defineProperty(semantic_node,"__esModule",{value:!0}),semantic_node.SemanticNode=void 0;const DomUtil$o=dom_util,semantic_attr_1$1=semantic_attr,SemanticUtil$3=semantic_util;class SemanticNode{constructor(e){this.id=e,this.mathml=[],this.parent=null,this.type="unknown",this.role="unknown",this.font="unknown",this.embellished=null,this.fencePointer="",this.childNodes=[],this.textContent="",this.mathmlTree=null,this.contentNodes=[],this.annotation={},this.attributes={},this.nobreaking=!1}static fromXml(e){const t=parseInt(e.getAttribute("id"),10),r=new SemanticNode(t);return r.type=e.tagName,SemanticNode.setAttribute(r,e,"role"),SemanticNode.setAttribute(r,e,"font"),SemanticNode.setAttribute(r,e,"embellished"),SemanticNode.setAttribute(r,e,"fencepointer","fencePointer"),e.getAttribute("annotation")&&r.parseAnnotation(e.getAttribute("annotation")),SemanticUtil$3.addAttributes(r,e),SemanticNode.processChildren(r,e),r}static setAttribute(e,t,r,n){n=n||r;const o=t.getAttribute(r);o&&(e[n]=o)}static processChildren(e,t){for(const r of DomUtil$o.toArray(t.childNodes)){if(r.nodeType===DomUtil$o.NodeType.TEXT_NODE){e.textContent=r.textContent;continue}const t=DomUtil$o.toArray(r.childNodes).map(SemanticNode.fromXml);t.forEach((t=>t.parent=e)),"CONTENT"===DomUtil$o.tagName(r)?e.contentNodes=t:e.childNodes=t}}querySelectorAll(e){let t=[];for(let r,n=0;r=this.childNodes[n];n++)t=t.concat(r.querySelectorAll(e));for(let r,n=0;r=this.contentNodes[n];n++)t=t.concat(r.querySelectorAll(e));return e(this)&&t.unshift(this),t}xml(e,t){const r=function(r,n){const o=n.map((function(r){return r.xml(e,t)})),i=e.createElementNS("",r);for(let e,t=0;e=o[t];t++)i.appendChild(e);return i},n=e.createElementNS("",this.type);return t||this.xmlAttributes(n),n.textContent=this.textContent,this.contentNodes.length>0&&n.appendChild(r("content",this.contentNodes)),this.childNodes.length>0&&n.appendChild(r("children",this.childNodes)),n}toString(e=!1){const t=DomUtil$o.parseInput("<snode/>");return DomUtil$o.serializeXml(this.xml(t.ownerDocument,e))}allAttributes(){const e=[];return e.push(["role",this.role]),"unknown"!==this.font&&e.push(["font",this.font]),Object.keys(this.annotation).length&&e.push(["annotation",this.annotationXml()]),this.embellished&&e.push(["embellished",this.embellished]),this.fencePointer&&e.push(["fencepointer",this.fencePointer]),e.push(["id",this.id.toString()]),e}annotationXml(){const e=[];for(const t in this.annotation)this.annotation[t].forEach((function(r){e.push(t+":"+r)}));return e.join(";")}attributesXml(){const e=[];for(const[t,r]of Object.entries(this.attributes))e.push(t+":"+r);return e.join(";")}toJson(){const e={};e.type=this.type;const t=this.allAttributes();for(let r,n=0;r=t[n];n++)e[r[0]]=r[1].toString();return this.textContent&&(e.$t=this.textContent),this.childNodes.length&&(e.children=this.childNodes.map((function(e){return e.toJson()}))),this.contentNodes.length&&(e.content=this.contentNodes.map((function(e){return e.toJson()}))),e}updateContent(e,t){const r=t?e.replace(/^[ \f\n\r\t\v\u200b]*/,"").replace(/[ \f\n\r\t\v\u200b]*$/,""):e.trim();if(e=e&&!r?e:r,this.textContent===e)return;const n=(0,semantic_attr_1$1.lookupMeaning)(e);this.textContent=e,this.role=n.role,this.type=n.type,this.font=n.font}addMathmlNodes(e){for(let t,r=0;t=e[r];r++)-1===this.mathml.indexOf(t)&&this.mathml.push(t)}appendChild(e){this.childNodes.push(e),this.addMathmlNodes(e.mathml),e.parent=this}replaceChild(e,t){const r=this.childNodes.indexOf(e);if(-1===r)return;e.parent=null,t.parent=this,this.childNodes[r]=t;const n=e.mathml.filter((function(e){return-1===t.mathml.indexOf(e)})),o=t.mathml.filter((function(t){return-1===e.mathml.indexOf(t)}));this.removeMathmlNodes(n),this.addMathmlNodes(o)}appendContentNode(e){e&&(this.contentNodes.push(e),this.addMathmlNodes(e.mathml),e.parent=this)}removeContentNode(e){if(e){const t=this.contentNodes.indexOf(e);-1!==t&&this.contentNodes.slice(t,1)}}equals(e){if(!e)return!1;if(this.type!==e.type||this.role!==e.role||this.textContent!==e.textContent||this.childNodes.length!==e.childNodes.length||this.contentNodes.length!==e.contentNodes.length)return!1;for(let t,r,n=0;t=this.childNodes[n],r=e.childNodes[n];n++)if(!t.equals(r))return!1;for(let t,r,n=0;t=this.contentNodes[n],r=e.contentNodes[n];n++)if(!t.equals(r))return!1;return!0}displayTree(){console.info(this.displayTree_(0))}addAnnotation(e,t){t&&this.addAnnotation_(e,t)}getAnnotation(e){const t=this.annotation[e];return t||[]}hasAnnotation(e,t){const r=this.annotation[e];return!!r&&-1!==r.indexOf(t)}parseAnnotation(e){const t=e.split(";");for(let e=0,r=t.length;e<r;e++){const r=t[e].split(":");this.addAnnotation(r[0],r[1])}}meaning(){return{type:this.type,role:this.role,font:this.font}}xmlAttributes(e){const t=this.allAttributes();for(let r,n=0;r=t[n];n++)e.setAttribute(r[0],r[1]);this.addExternalAttributes(e)}addExternalAttributes(e){for(const t in this.attributes)e.setAttribute(t,this.attributes[t])}parseAttributes(e){if(!e)return;const t=e.split(";");for(let e=0,r=t.length;e<r;e++){const[r,n]=t[e].split(":");r&&(this.attributes[r]=n)}}removeMathmlNodes(e){const t=this.mathml;for(let r,n=0;r=e[n];n++){const e=t.indexOf(r);-1!==e&&t.splice(e,1)}this.mathml=t}displayTree_(e){e++;const t=Array(e).join(" ");let r="";r+="\n"+t+this.toString(),r+="\n"+t+"MathmlTree:",r+="\n"+t+this.mathmlTreeString(),r+="\n"+t+"MathML:";for(let e,n=0;e=this.mathml[n];n++)r+="\n"+t+e.toString();return r+="\n"+t+"Begin Content",this.contentNodes.forEach((function(t){r+=t.displayTree_(e)})),r+="\n"+t+"End Content",r+="\n"+t+"Begin Children",this.childNodes.forEach((function(t){r+=t.displayTree_(e)})),r+="\n"+t+"End Children",r}mathmlTreeString(){return this.mathmlTree?this.mathmlTree.toString():"EMPTY"}addAnnotation_(e,t){const r=this.annotation[e];r?r.push(t):this.annotation[e]=[t]}}semantic_node.SemanticNode=SemanticNode,Object.defineProperty(semantic_node_factory,"__esModule",{value:!0}),semantic_node_factory.SemanticNodeFactory=void 0;const semantic_default_1=semantic_default,semantic_default_2=semantic_default,semantic_node_1$2=semantic_node;class SemanticNodeFactory{constructor(){this.leafMap=new semantic_default_2.SemanticNodeCollator,this.defaultMap=new semantic_default_1.SemanticDefault,this.idCounter_=-1}makeNode(e){return this.createNode_(e)}makeUnprocessed(e){const t=this.createNode_();return t.mathml=[e],t.mathmlTree=e,t}makeEmptyNode(){const e=this.createNode_();return e.type="empty",e}makeContentNode(e){const t=this.createNode_();return t.updateContent(e),t}makeMultipleContentNodes(e,t){const r=[];for(let n=0;n<e;n++)r.push(this.makeContentNode(t));return r}makeLeafNode(e,t){if(!e)return this.makeEmptyNode();const r=this.makeContentNode(e);r.font=t||r.font;const n=this.defaultMap.retrieveNode(r);return n&&(r.type=n.type,r.role=n.role,r.font=n.font),this.leafMap.addNode(r),r}makeBranchNode(e,t,r,n){const o=this.createNode_();return n&&o.updateContent(n),o.type=e,o.childNodes=t,o.contentNodes=r,t.concat(r).forEach((function(e){e.parent=o,o.addMathmlNodes(e.mathml)})),o}createNode_(e){return void 0!==e?this.idCounter_=Math.max(this.idCounter_,e):e=++this.idCounter_,new semantic_node_1$2.SemanticNode(e)}}semantic_node_factory.SemanticNodeFactory=SemanticNodeFactory;var semantic_pred={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isMembership=e.elligibleRightNeutral=e.elligibleLeftNeutral=e.compareNeutralFences=e.isNeutralFence=e.isImplicitOp=e.isImplicit=e.isPureUnit=e.isUnitCounter=e.isNumber=e.isSingletonSetContent=e.scriptedElement_=e.illegalSingleton_=e.isSetNode=e.isRightBrace=e.isLeftBrace=e.isSimpleFunction=e.singlePunctAtPosition=e.isSimpleFunctionHead=e.isLimitBase=e.isBinomial=e.lineIsLabelled=e.tableIsMultiline=e.tableIsCases=e.isFencedElement=e.tableIsMatrixOrVector=e.isTableOrMultiline=e.isElligibleEmbellishedFence=e.isFence=e.isPunctuation=e.isRelation=e.isOperator=e.isEmbellished=e.isGeneralFunctionBoundary=e.isIntegralDxBoundarySingle=e.isIntegralDxBoundary=e.isBigOpBoundary=e.isPrefixFunctionBoundary=e.isSimpleFunctionScope=e.isAccent=e.isRole=e.embellishedType=e.isType=void 0;const t=semantic_attr,r=semantic_util;function n(e,t){return e.type===t}function o(e,t){return e.embellished===t}function i(e,t){return e.role===t}function a(e){return l(e)||c(e)}function s(e){return n(e,"operator")||o(e,"operator")}function l(e){return n(e,"relation")||o(e,"relation")}function c(e){return n(e,"punctuation")||o(e,"punctuation")}function u(e){return n(e,"fence")||o(e,"fence")}function d(e){return!e.embellished||!function(e){return n(e,"tensor")&&(!n(e.childNodes[1],"empty")||!n(e.childNodes[2],"empty"))&&(!n(e.childNodes[3],"empty")||!n(e.childNodes[4],"empty"))}(e)&&((!i(e,"close")||!n(e,"tensor"))&&((!i(e,"open")||!n(e,"subscript")&&!n(e,"superscript"))&&d(e.childNodes[0])))}function p(e){return!!e&&(n(e,"table")||n(e,"multiline"))}function m(e){return!!e&&n(e,"fenced")&&(i(e,"leftright")||g(e))&&1===e.childNodes.length}function h(e){return!!e&&-1!==["{","﹛","{"].indexOf(e.textContent)}function f(e){return!!e&&-1!==["}","﹜","}"].indexOf(e.textContent)}function _(e){return"number"===e.type&&("integer"===e.role||"float"===e.role)}function g(e){return"neutral"===e.role||"metric"===e.role}e.isType=n,e.embellishedType=o,e.isRole=i,e.isAccent=function(e){const r=new RegExp("∞|᪲");return n(e,"fence")||n(e,"punctuation")||n(e,"operator")&&!e.textContent.match(r)||n(e,"relation")||n(e,"identifier")&&i(e,"unknown")&&!e.textContent.match(t.allLettersRegExp)&&!e.textContent.match(r)},e.isSimpleFunctionScope=function(e){const t=e.childNodes;if(0===t.length)return!0;if(t.length>1)return!1;const r=t[0];if("infixop"===r.type){if("implicit"!==r.role)return!1;if(r.childNodes.some((e=>n(e,"infixop"))))return!1}return!0},e.isPrefixFunctionBoundary=function(e){return s(e)&&!i(e,"division")||n(e,"appl")||a(e)},e.isBigOpBoundary=function(e){return s(e)||a(e)},e.isIntegralDxBoundary=function(e,r){return!!r&&n(r,"identifier")&&t.lookupSecondary("d",e.textContent)},e.isIntegralDxBoundarySingle=function(e){if(n(e,"identifier")){const r=e.textContent[0];return r&&e.textContent[1]&&t.lookupSecondary("d",r)}return!1},e.isGeneralFunctionBoundary=a,e.isEmbellished=function(e){return e.embellished?e.embellished:t.isEmbellishedType(e.type)?e.type:null},e.isOperator=s,e.isRelation=l,e.isPunctuation=c,e.isFence=u,e.isElligibleEmbellishedFence=function(e){return!(!e||!u(e))&&(!e.embellished||d(e))},e.isTableOrMultiline=p,e.tableIsMatrixOrVector=function(e){return!!e&&m(e)&&p(e.childNodes[0])},e.isFencedElement=m,e.tableIsCases=function(e,t){return t.length>0&&i(t[t.length-1],"openfence")},e.tableIsMultiline=function(e){return e.childNodes.every((function(e){return e.childNodes.length<=1}))},e.lineIsLabelled=function(e){return n(e,"line")&&e.contentNodes.length&&i(e.contentNodes[0],"label")},e.isBinomial=function(e){return 2===e.childNodes.length},e.isLimitBase=function e(t){return n(t,"largeop")||n(t,"limboth")||n(t,"limlower")||n(t,"limupper")||n(t,"function")&&i(t,"limit function")||(n(t,"overscore")||n(t,"underscore"))&&e(t.childNodes[0])},e.isSimpleFunctionHead=function(e){return"identifier"===e.type||"latinletter"===e.role||"greekletter"===e.role||"otherletter"===e.role},e.singlePunctAtPosition=function(e,t,r){return 1===t.length&&("punctuation"===e[r].type||"punctuation"===e[r].embellished)&&e[r]===t[0]},e.isSimpleFunction=function(e){return n(e,"identifier")&&i(e,"simple function")},e.isLeftBrace=h,e.isRightBrace=f,e.isSetNode=function(e){return h(e.contentNodes[0])&&f(e.contentNodes[1])},e.illegalSingleton_=["punctuation","punctuated","relseq","multirel","table","multiline","cases","inference"],e.scriptedElement_=["limupper","limlower","limboth","subscript","superscript","underscore","overscore","tensor"],e.isSingletonSetContent=function t(r){const n=r.type;return-1===e.illegalSingleton_.indexOf(n)&&("infixop"!==n||"implicit"===r.role)&&("fenced"===n?"leftright"!==r.role||t(r.childNodes[0]):-1===e.scriptedElement_.indexOf(n)||t(r.childNodes[0]))},e.isNumber=_,e.isUnitCounter=function(e){return _(e)||"vulgar"===e.role||"mixed"===e.role},e.isPureUnit=function(e){const t=e.childNodes;return"unit"===e.role&&(!t.length||"unit"===t[0].role)},e.isImplicit=function(e){return"implicit"===e.role||"unit"===e.role&&!!e.contentNodes.length&&e.contentNodes[0].textContent===t.invisibleTimes()},e.isImplicitOp=function(e){return"infixop"===e.type&&"implicit"===e.role},e.isNeutralFence=g,e.compareNeutralFences=function(e,t){return g(e)&&g(t)&&(0,r.getEmbellishedInner)(e).textContent===(0,r.getEmbellishedInner)(t).textContent},e.elligibleLeftNeutral=function(e){return!!g(e)&&(!e.embellished||"superscript"!==e.type&&"subscript"!==e.type&&("tensor"!==e.type||"empty"===e.childNodes[3].type&&"empty"===e.childNodes[4].type))},e.elligibleRightNeutral=function(e){return!!g(e)&&(!e.embellished||("tensor"!==e.type||"empty"===e.childNodes[1].type&&"empty"===e.childNodes[2].type))},e.isMembership=function(e){return["element","nonelement","reelement","renonelement"].includes(e.role)}}(semantic_pred),getDefaultExportFromCjs$1(semantic_pred),Object.defineProperty(semantic_processor,"__esModule",{value:!0});const DomUtil$n=dom_util,SemanticAttr$1=semantic_attr,SemanticHeuristics$1=semantic_heuristic_factory,semantic_node_factory_1$2=semantic_node_factory,SemanticPred$3=semantic_pred,SemanticUtil$2=semantic_util;class SemanticProcessor{constructor(){this.funcAppls={},this.factory_=new semantic_node_factory_1$2.SemanticNodeFactory,SemanticHeuristics$1.updateFactory(this.factory_)}static getInstance(){return SemanticProcessor.instance=SemanticProcessor.instance||new SemanticProcessor,SemanticProcessor.instance}static tableToMultiline(e){if(SemanticPred$3.tableIsMultiline(e)){e.type="multiline";for(let t,r=0;t=e.childNodes[r];r++)SemanticProcessor.rowToLine_(t,"multiline");1===e.childNodes.length&&!SemanticPred$3.lineIsLabelled(e.childNodes[0])&&SemanticPred$3.isFencedElement(e.childNodes[0].childNodes[0])&&SemanticProcessor.tableToMatrixOrVector_(SemanticProcessor.rewriteFencedLine_(e)),SemanticProcessor.binomialForm_(e),SemanticProcessor.classifyMultiline(e)}else SemanticProcessor.classifyTable(e)}static number(e){"unknown"!==e.type&&"identifier"!==e.type||(e.type="number"),SemanticProcessor.numberRole_(e),SemanticProcessor.exprFont_(e)}static classifyMultiline(e){let t=0;const r=e.childNodes.length;let n;for(;t<r&&(!(n=e.childNodes[t])||!n.childNodes.length);)t++;if(t>=r)return;const o=n.childNodes[0].role;"unknown"!==o&&e.childNodes.every((function(e){const t=e.childNodes[0];return!t||t.role===o&&(SemanticPred$3.isType(t,"relation")||SemanticPred$3.isType(t,"relseq"))}))&&(e.role=o)}static classifyTable(e){const t=SemanticProcessor.computeColumns_(e);SemanticProcessor.classifyByColumns_(e,t,"equality")||SemanticProcessor.classifyByColumns_(e,t,"inequality",["equality"])||SemanticProcessor.classifyByColumns_(e,t,"arrow")||SemanticProcessor.detectCaleyTable(e)}static detectCaleyTable(e){if(!e.mathmlTree)return!1;const t=e.mathmlTree,r=t.getAttribute("columnlines"),n=t.getAttribute("rowlines");return!(!r||!n)&&(!(!SemanticProcessor.cayleySpacing(r)||!SemanticProcessor.cayleySpacing(n))&&(e.role="cayley",!0))}static cayleySpacing(e){const t=e.split(" ");return("solid"===t[0]||"dashed"===t[0])&&t.slice(1).every((e=>"none"===e))}static proof(e,t,r){const n=SemanticProcessor.separateSemantics(t);return SemanticProcessor.getInstance().proof(e,n,r)}static findSemantics(e,t,r){const n=null==r?null:r,o=SemanticProcessor.getSemantics(e);return!!o&&(!!o[t]&&(null==n||o[t]===n))}static getSemantics(e){const t=e.getAttribute("semantics");return t?SemanticProcessor.separateSemantics(t):null}static removePrefix(e){const[,...t]=e.split("_");return t.join("_")}static separateSemantics(e){const t={};return e.split(";").forEach((function(e){const[r,n]=e.split(":");t[SemanticProcessor.removePrefix(r)]=n})),t}static matchSpaces_(e,t){for(let r,n=0;r=t[n];n++){const t=e[n].mathmlTree,o=e[n+1].mathmlTree;if(!t||!o)continue;const i=t.nextSibling;if(!i||i===o)continue;const a=SemanticProcessor.getSpacer_(i);a&&(r.mathml.push(a),r.mathmlTree=a,r.role="space")}}static getSpacer_(e){if("MSPACE"===DomUtil$n.tagName(e))return e;for(;SemanticUtil$2.hasEmptyTag(e)&&1===e.childNodes.length;)if(e=e.childNodes[0],"MSPACE"===DomUtil$n.tagName(e))return e;return null}static fenceToPunct_(e){const t=SemanticProcessor.FENCE_TO_PUNCT_[e.role];if(t){for(;e.embellished;)e.embellished="punctuation",SemanticPred$3.isRole(e,"subsup")||SemanticPred$3.isRole(e,"underover")||(e.role=t),e=e.childNodes[0];e.type="punctuation",e.role=t}}static classifyFunction_(e,t){if("appl"===e.type||"bigop"===e.type||"integral"===e.type)return"";if(t[0]&&t[0].textContent===SemanticAttr$1.functionApplication()){SemanticProcessor.getInstance().funcAppls[e.id]=t.shift();let r="simple function";return SemanticHeuristics$1.run("simple2prefix",e),"prefix function"!==e.role&&"limit function"!==e.role||(r=e.role),SemanticProcessor.propagateFunctionRole_(e,r),"prefix"}const r=SemanticProcessor.CLASSIFY_FUNCTION_[e.role];return r||(SemanticPred$3.isSimpleFunctionHead(e)?"simple":"")}static propagateFunctionRole_(e,t){if(e){if("infixop"===e.type)return;SemanticPred$3.isRole(e,"subsup")||SemanticPred$3.isRole(e,"underover")||(e.role=t),SemanticProcessor.propagateFunctionRole_(e.childNodes[0],t)}}static getFunctionOp_(e,t){if(t(e))return e;for(let r,n=0;r=e.childNodes[n];n++){const e=SemanticProcessor.getFunctionOp_(r,t);if(e)return e}return null}static tableToMatrixOrVector_(e){const t=e.childNodes[0];SemanticPred$3.isType(t,"multiline")?SemanticProcessor.tableToVector_(e):SemanticProcessor.tableToMatrix_(e),e.contentNodes.forEach(t.appendContentNode.bind(t));for(let e,r=0;e=t.childNodes[r];r++)SemanticProcessor.assignRoleToRow_(e,SemanticProcessor.getComponentRoles_(t));return t.parent=null,t}static tableToVector_(e){const t=e.childNodes[0];t.type="vector",1!==t.childNodes.length?SemanticProcessor.binomialForm_(t):SemanticProcessor.tableToSquare_(e)}static binomialForm_(e){SemanticPred$3.isBinomial(e)&&(e.role="binomial",e.childNodes[0].role="binomial",e.childNodes[1].role="binomial")}static tableToMatrix_(e){const t=e.childNodes[0];t.type="matrix",t.childNodes&&t.childNodes.length>0&&t.childNodes[0].childNodes&&t.childNodes.length===t.childNodes[0].childNodes.length?SemanticProcessor.tableToSquare_(e):t.childNodes&&1===t.childNodes.length&&(t.role="rowvector")}static tableToSquare_(e){const t=e.childNodes[0];SemanticPred$3.isNeutralFence(e)?t.role="determinant":t.role="squarematrix"}static getComponentRoles_(e){const t=e.role;return t&&"unknown"!==t?t:e.type.toLowerCase()||"unknown"}static tableToCases_(e,t){for(let t,r=0;t=e.childNodes[r];r++)SemanticProcessor.assignRoleToRow_(t,"cases");return e.type="cases",e.appendContentNode(t),SemanticPred$3.tableIsMultiline(e)&&SemanticProcessor.binomialForm_(e),e}static rewriteFencedLine_(e){const t=e.childNodes[0],r=e.childNodes[0].childNodes[0],n=e.childNodes[0].childNodes[0].childNodes[0];return r.parent=e.parent,e.parent=r,n.parent=t,r.childNodes=[e],t.childNodes=[n],r}static rowToLine_(e,t){const r=t||"unknown";SemanticPred$3.isType(e,"row")&&(e.type="line",e.role=r,1===e.childNodes.length&&SemanticPred$3.isType(e.childNodes[0],"cell")&&(e.childNodes=e.childNodes[0].childNodes,e.childNodes.forEach((function(t){t.parent=e}))))}static assignRoleToRow_(e,t){SemanticPred$3.isType(e,"line")?e.role=t:SemanticPred$3.isType(e,"row")&&(e.role=t,e.childNodes.forEach((function(e){SemanticPred$3.isType(e,"cell")&&(e.role=t)})))}static nextSeparatorFunction_(e){let t;if(e){if(e.match(/^\s+$/))return null;t=e.replace(/\s/g,"").split("").filter((function(e){return e}))}else t=[","];return function(){return t.length>1?t.shift():t[0]}}static numberRole_(e){if("unknown"!==e.role)return;const t=[...e.textContent].filter((e=>e.match(/[^\s]/))),r=t.map(SemanticAttr$1.lookupMeaning);if(r.every((function(e){return"number"===e.type&&"integer"===e.role||"punctuation"===e.type&&"comma"===e.role})))return e.role="integer",void("0"===t[0]&&e.addAnnotation("general","basenumber"));r.every((function(e){return"number"===e.type&&"integer"===e.role||"punctuation"===e.type}))?e.role="float":e.role="othernumber"}static exprFont_(e){if("unknown"!==e.font)return;const t=[...e.textContent].map(SemanticAttr$1.lookupMeaning).reduce((function(e,t){return e&&t.font&&"unknown"!==t.font&&t.font!==e?"unknown"===e?t.font:null:e}),"unknown");t&&(e.font=t)}static purgeFences_(e){const t=e.rel,r=e.comp,n=[],o=[];for(;t.length>0;){const e=t.shift();let i=r.shift();SemanticPred$3.isElligibleEmbellishedFence(e)?(n.push(e),o.push(i)):(SemanticProcessor.fenceToPunct_(e),i.push(e),i=i.concat(r.shift()),r.unshift(i))}return o.push(r.shift()),{rel:n,comp:o}}static rewriteFencedNode_(e){const t=e.contentNodes[0],r=e.contentNodes[1];let n=SemanticProcessor.rewriteFence_(e,t);return e.contentNodes[0]=n.fence,n=SemanticProcessor.rewriteFence_(n.node,r),e.contentNodes[1]=n.fence,e.contentNodes[0].parent=e,e.contentNodes[1].parent=e,n.node.parent=null,n.node}static rewriteFence_(e,t){if(!t.embellished)return{node:e,fence:t};const r=t.childNodes[0],n=SemanticProcessor.rewriteFence_(e,r);return SemanticPred$3.isType(t,"superscript")||SemanticPred$3.isType(t,"subscript")||SemanticPred$3.isType(t,"tensor")?(SemanticPred$3.isRole(t,"subsup")||(t.role=e.role),r!==n.node&&(t.replaceChild(r,n.node),r.parent=e),SemanticProcessor.propagateFencePointer_(t,r),{node:t,fence:n.fence}):(t.replaceChild(r,n.fence),t.mathmlTree&&-1===t.mathml.indexOf(t.mathmlTree)&&t.mathml.push(t.mathmlTree),{node:n.node,fence:t})}static propagateFencePointer_(e,t){e.fencePointer=t.fencePointer||t.id.toString(),e.embellished=null}static classifyByColumns_(e,t,r,n){return!!(3===t.length&&SemanticProcessor.testColumns_(t,1,(e=>SemanticProcessor.isPureRelation_(e,r)))||2===t.length&&(SemanticProcessor.testColumns_(t,1,(e=>SemanticProcessor.isEndRelation_(e,r)||SemanticProcessor.isPureRelation_(e,r)))||SemanticProcessor.testColumns_(t,0,(e=>SemanticProcessor.isEndRelation_(e,r,!0)||SemanticProcessor.isPureRelation_(e,r)))))&&(e.role=r,!0)}static isEndRelation_(e,t,r){const n=r?e.childNodes.length-1:0;return SemanticPred$3.isType(e,"relseq")&&SemanticPred$3.isRole(e,t)&&SemanticPred$3.isType(e.childNodes[n],"empty")}static isPureRelation_(e,t){return SemanticPred$3.isType(e,"relation")&&SemanticPred$3.isRole(e,t)}static computeColumns_(e){const t=[];for(let r,n=0;r=e.childNodes[n];n++)for(let e,n=0;e=r.childNodes[n];n++){t[n]?t[n].push(e):t[n]=[e]}return t}static testColumns_(e,t,r){const n=e[t];return!!n&&(n.some((function(e){return e.childNodes.length&&r(e.childNodes[0])}))&&n.every((function(e){return!e.childNodes.length||r(e.childNodes[0])})))}setNodeFactory(e){SemanticProcessor.getInstance().factory_=e,SemanticHeuristics$1.updateFactory(SemanticProcessor.getInstance().factory_)}getNodeFactory(){return SemanticProcessor.getInstance().factory_}identifierNode(e,t,r){if("MathML-Unit"===r)e.type="identifier",e.role="unit";else if(!t&&1===e.textContent.length&&("integer"===e.role||"latinletter"===e.role||"greekletter"===e.role)&&"normal"===e.font)return e.font="italic",SemanticHeuristics$1.run("simpleNamedFunction",e);return"unknown"===e.type&&(e.type="identifier"),SemanticProcessor.exprFont_(e),SemanticHeuristics$1.run("simpleNamedFunction",e)}implicitNode(e){if(e=SemanticProcessor.getInstance().getMixedNumbers_(e),1===(e=SemanticProcessor.getInstance().combineUnits_(e)).length)return e[0];const t=SemanticProcessor.getInstance().implicitNode_(e);return SemanticHeuristics$1.run("combine_juxtaposition",t)}text(e,t){return SemanticProcessor.exprFont_(e),e.type="text","MS"===t?(e.role="string",e):"MSPACE"===t||e.textContent.match(/^\s*$/)?(e.role="space",e):e}row(e){return 0===(e=e.filter((function(e){return!SemanticPred$3.isType(e,"empty")}))).length?SemanticProcessor.getInstance().factory_.makeEmptyNode():(e=SemanticProcessor.getInstance().getFencesInRow_(e),e=SemanticProcessor.getInstance().tablesInRow(e),e=SemanticProcessor.getInstance().getPunctuationInRow_(e),e=SemanticProcessor.getInstance().getTextInRow_(e),e=SemanticProcessor.getInstance().getFunctionsInRow_(e),SemanticProcessor.getInstance().relationsInRow_(e))}limitNode(e,t){if(!t.length)return SemanticProcessor.getInstance().factory_.makeEmptyNode();let r,n=t[0],o="unknown";if(!t[1])return n;if(SemanticPred$3.isLimitBase(n)){r=SemanticProcessor.MML_TO_LIMIT_[e];const i=r.length;if(o=r.type,t=t.slice(0,r.length+1),1===i&&SemanticPred$3.isAccent(t[1])||2===i&&SemanticPred$3.isAccent(t[1])&&SemanticPred$3.isAccent(t[2]))return r=SemanticProcessor.MML_TO_BOUNDS_[e],SemanticProcessor.getInstance().accentNode_(n,t,r.type,r.length,r.accent);if(2===i){if(SemanticPred$3.isAccent(t[1]))return n=SemanticProcessor.getInstance().accentNode_(n,[n,t[1]],{MSUBSUP:"subscript",MUNDEROVER:"underscore"}[e],1,!0),t[2]?SemanticProcessor.getInstance().makeLimitNode_(n,[n,t[2]],null,"limupper"):n;if(t[2]&&SemanticPred$3.isAccent(t[2]))return n=SemanticProcessor.getInstance().accentNode_(n,[n,t[2]],{MSUBSUP:"superscript",MUNDEROVER:"overscore"}[e],1,!0),SemanticProcessor.getInstance().makeLimitNode_(n,[n,t[1]],null,"limlower");t[i]||(o="limlower")}return SemanticProcessor.getInstance().makeLimitNode_(n,t,null,o)}return r=SemanticProcessor.MML_TO_BOUNDS_[e],SemanticProcessor.getInstance().accentNode_(n,t,r.type,r.length,r.accent)}tablesInRow(e){let t=SemanticUtil$2.partitionNodes(e,SemanticPred$3.tableIsMatrixOrVector),r=[];for(let e,n=0;e=t.rel[n];n++)r=r.concat(t.comp.shift()),r.push(SemanticProcessor.tableToMatrixOrVector_(e));r=r.concat(t.comp.shift()),t=SemanticUtil$2.partitionNodes(r,SemanticPred$3.isTableOrMultiline),r=[];for(let e,n=0;e=t.rel[n];n++){const n=t.comp.shift();SemanticPred$3.tableIsCases(e,n)&&SemanticProcessor.tableToCases_(e,n.pop()),r=r.concat(n),r.push(e)}return r.concat(t.comp.shift())}mfenced(e,t,r,n){if(r&&n.length>0){const e=SemanticProcessor.nextSeparatorFunction_(r),t=[n.shift()];n.forEach((r=>{t.push(SemanticProcessor.getInstance().factory_.makeContentNode(e())),t.push(r)})),n=t}return e&&t?SemanticProcessor.getInstance().horizontalFencedNode_(SemanticProcessor.getInstance().factory_.makeContentNode(e),SemanticProcessor.getInstance().factory_.makeContentNode(t),n):(e&&n.unshift(SemanticProcessor.getInstance().factory_.makeContentNode(e)),t&&n.push(SemanticProcessor.getInstance().factory_.makeContentNode(t)),SemanticProcessor.getInstance().row(n))}fractionLikeNode(e,t,r,n){let o;if(!n&&SemanticUtil$2.isZeroLength(r)){const r=SemanticProcessor.getInstance().factory_.makeBranchNode("line",[e],[]),n=SemanticProcessor.getInstance().factory_.makeBranchNode("line",[t],[]);return o=SemanticProcessor.getInstance().factory_.makeBranchNode("multiline",[r,n],[]),SemanticProcessor.binomialForm_(o),SemanticProcessor.classifyMultiline(o),o}return o=SemanticProcessor.getInstance().fractionNode_(e,t),n&&o.addAnnotation("general","bevelled"),o}tensor(e,t,r,n,o){const i=SemanticProcessor.getInstance().factory_.makeBranchNode("tensor",[e,SemanticProcessor.getInstance().scriptNode_(t,"leftsub"),SemanticProcessor.getInstance().scriptNode_(r,"leftsuper"),SemanticProcessor.getInstance().scriptNode_(n,"rightsub"),SemanticProcessor.getInstance().scriptNode_(o,"rightsuper")],[]);return i.role=e.role,i.embellished=SemanticPred$3.isEmbellished(e),i}pseudoTensor(e,t,r){const n=e=>!SemanticPred$3.isType(e,"empty"),o=t.filter(n).length,i=r.filter(n).length;if(!o&&!i)return e;const a=o?i?"MSUBSUP":"MSUB":"MSUP",s=[e];return o&&s.push(SemanticProcessor.getInstance().scriptNode_(t,"rightsub",!0)),i&&s.push(SemanticProcessor.getInstance().scriptNode_(r,"rightsuper",!0)),SemanticProcessor.getInstance().limitNode(a,s)}font(e){const t=SemanticProcessor.MATHJAX_FONTS[e];return t||e}proof(e,t,r){if(t.inference||t.axiom||console.log("Noise"),t.axiom){const t=SemanticProcessor.getInstance().cleanInference(e.childNodes),n=t.length?SemanticProcessor.getInstance().factory_.makeBranchNode("inference",r(t),[]):SemanticProcessor.getInstance().factory_.makeEmptyNode();return n.role="axiom",n.mathmlTree=e,n}const n=SemanticProcessor.getInstance().inference(e,t,r);return t.proof&&(n.role="proof",n.childNodes[0].role="final"),n}inference(e,t,r){if(t.inferenceRule){const t=SemanticProcessor.getInstance().getFormulas(e,[],r);return SemanticProcessor.getInstance().factory_.makeBranchNode("inference",[t.conclusion,t.premises],[])}const n=t.labelledRule,o=DomUtil$n.toArray(e.childNodes),i=[];"left"!==n&&"both"!==n||i.push(SemanticProcessor.getInstance().getLabel(e,o,r,"left")),"right"!==n&&"both"!==n||i.push(SemanticProcessor.getInstance().getLabel(e,o,r,"right"));const a=SemanticProcessor.getInstance().getFormulas(e,o,r),s=SemanticProcessor.getInstance().factory_.makeBranchNode("inference",[a.conclusion,a.premises],i);return s.mathmlTree=e,s}getLabel(e,t,r,n){const o=SemanticProcessor.getInstance().findNestedRow(t,"prooflabel",n),i=SemanticProcessor.getInstance().factory_.makeBranchNode("rulelabel",r(DomUtil$n.toArray(o.childNodes)),[]);return i.role=n,i.mathmlTree=o,i}getFormulas(e,t,r){const n=t.length?SemanticProcessor.getInstance().findNestedRow(t,"inferenceRule"):e,o="up"===SemanticProcessor.getSemantics(n).inferenceRule,i=o?n.childNodes[1]:n.childNodes[0],a=o?n.childNodes[0]:n.childNodes[1],s=i.childNodes[0].childNodes[0],l=DomUtil$n.toArray(s.childNodes[0].childNodes),c=[];let u=1;for(const e of l)u%2&&c.push(e.childNodes[0]),u++;const d=r(c),p=r(DomUtil$n.toArray(a.childNodes[0].childNodes))[0],m=SemanticProcessor.getInstance().factory_.makeBranchNode("premises",d,[]);m.mathmlTree=s;const h=SemanticProcessor.getInstance().factory_.makeBranchNode("conclusion",[p],[]);return h.mathmlTree=a.childNodes[0].childNodes[0],{conclusion:h,premises:m}}findNestedRow(e,t,r){return SemanticProcessor.getInstance().findNestedRow_(e,t,0,r)}cleanInference(e){return DomUtil$n.toArray(e).filter((function(e){return"MSPACE"!==DomUtil$n.tagName(e)}))}operatorNode(e){return"unknown"===e.type&&(e.type="operator"),SemanticHeuristics$1.run("multioperator",e)}implicitNode_(e){const t=SemanticProcessor.getInstance().factory_.makeMultipleContentNodes(e.length-1,SemanticAttr$1.invisibleTimes());SemanticProcessor.matchSpaces_(e,t);const r=SemanticProcessor.getInstance().infixNode_(e,t[0]);return r.role="implicit",t.forEach((function(e){e.parent=r})),r.contentNodes=t,r}infixNode_(e,t){const r=SemanticProcessor.getInstance().factory_.makeBranchNode("infixop",e,[t],SemanticUtil$2.getEmbellishedInner(t).textContent);return r.role=t.role,SemanticHeuristics$1.run("propagateSimpleFunction",r)}explicitMixed_(e){const t=SemanticUtil$2.partitionNodes(e,(function(e){return e.textContent===SemanticAttr$1.invisiblePlus()}));if(!t.rel.length)return e;let r=[];for(let e,n=0;e=t.rel[n];n++){const o=t.comp[n],i=t.comp[n+1],a=o.length-1;if(o[a]&&i[0]&&SemanticPred$3.isType(o[a],"number")&&!SemanticPred$3.isRole(o[a],"mixed")&&SemanticPred$3.isType(i[0],"fraction")){const e=SemanticProcessor.getInstance().factory_.makeBranchNode("number",[o[a],i[0]],[]);e.role="mixed",r=r.concat(o.slice(0,a)),r.push(e),i.shift()}else r=r.concat(o),r.push(e)}return r.concat(t.comp[t.comp.length-1])}concatNode_(e,t,r){if(0===t.length)return e;const n=t.map((function(e){return SemanticUtil$2.getEmbellishedInner(e).textContent})).join(" "),o=SemanticProcessor.getInstance().factory_.makeBranchNode(r,[e],t,n);return t.length>1&&(o.role="multiop"),o}prefixNode_(e,t){const r=SemanticUtil$2.partitionNodes(t,(e=>SemanticPred$3.isRole(e,"subtraction")));let n=SemanticProcessor.getInstance().concatNode_(e,r.comp.pop(),"prefixop");for(1===n.contentNodes.length&&"addition"===n.contentNodes[0].role&&"+"===n.contentNodes[0].textContent&&(n.role="positive");r.rel.length>0;)n=SemanticProcessor.getInstance().concatNode_(n,[r.rel.pop()],"prefixop"),n.role="negative",n=SemanticProcessor.getInstance().concatNode_(n,r.comp.pop(),"prefixop");return n}postfixNode_(e,t){return t.length?SemanticProcessor.getInstance().concatNode_(e,t,"postfixop"):e}combineUnits_(e){const t=SemanticUtil$2.partitionNodes(e,(function(e){return!SemanticPred$3.isRole(e,"unit")}));if(e.length===t.rel.length)return t.rel;const r=[];let n,o;do{const e=t.comp.shift();n=t.rel.shift();let i=null;o=r.pop(),o&&(e.length&&SemanticPred$3.isUnitCounter(o)?e.unshift(o):r.push(o)),1===e.length&&(i=e.pop()),e.length>1&&(i=SemanticProcessor.getInstance().implicitNode_(e),i.role="unit"),i&&r.push(i),n&&r.push(n)}while(n);return r}getMixedNumbers_(e){const t=SemanticUtil$2.partitionNodes(e,(function(e){return SemanticPred$3.isType(e,"fraction")&&SemanticPred$3.isRole(e,"vulgar")}));if(!t.rel.length)return e;let r=[];for(let e,n=0;e=t.rel[n];n++){const o=t.comp[n],i=o.length-1;if(o[i]&&SemanticPred$3.isType(o[i],"number")&&(SemanticPred$3.isRole(o[i],"integer")||SemanticPred$3.isRole(o[i],"float"))){const t=SemanticProcessor.getInstance().factory_.makeBranchNode("number",[o[i],e],[]);t.role="mixed",r=r.concat(o.slice(0,i)),r.push(t)}else r=r.concat(o),r.push(e)}return r.concat(t.comp[t.comp.length-1])}getTextInRow_(e){if(e.length<=1)return e;const t=SemanticUtil$2.partitionNodes(e,(e=>SemanticPred$3.isType(e,"text")));if(0===t.rel.length)return e;const r=[];let n=t.comp[0];n.length>0&&r.push(SemanticProcessor.getInstance().row(n));for(let e,o=0;e=t.rel[o];o++)r.push(e),n=t.comp[o+1],n.length>0&&r.push(SemanticProcessor.getInstance().row(n));return[SemanticProcessor.getInstance().dummyNode_(r)]}relationsInRow_(e){const t=SemanticUtil$2.partitionNodes(e,SemanticPred$3.isRelation),r=t.rel[0];if(!r)return SemanticProcessor.getInstance().operationsInRow_(e);if(1===e.length)return e[0];const n=t.comp.map(SemanticProcessor.getInstance().operationsInRow_);let o;return t.rel.some((function(e){return!e.equals(r)}))?(o=SemanticProcessor.getInstance().factory_.makeBranchNode("multirel",n,t.rel),t.rel.every((function(e){return e.role===r.role}))&&(o.role=r.role),o):(o=SemanticProcessor.getInstance().factory_.makeBranchNode("relseq",n,t.rel,SemanticUtil$2.getEmbellishedInner(r).textContent),o.role=r.role,o)}operationsInRow_(e){if(0===e.length)return SemanticProcessor.getInstance().factory_.makeEmptyNode();if(1===(e=SemanticProcessor.getInstance().explicitMixed_(e)).length)return e[0];const t=[];for(;e.length>0&&SemanticPred$3.isOperator(e[0]);)t.push(e.shift());if(0===e.length)return SemanticProcessor.getInstance().prefixNode_(t.pop(),t);if(1===e.length)return SemanticProcessor.getInstance().prefixNode_(e[0],t);e=SemanticHeuristics$1.run("convert_juxtaposition",e);const r=SemanticUtil$2.sliceNodes(e,SemanticPred$3.isOperator),n=SemanticProcessor.getInstance().prefixNode_(SemanticProcessor.getInstance().implicitNode(r.head),t);return r.div?SemanticProcessor.getInstance().operationsTree_(r.tail,n,r.div):n}operationsTree_(e,t,r,n){const o=n||[];if(0===e.length){if(o.unshift(r),"infixop"===t.type){const e=SemanticProcessor.getInstance().postfixNode_(t.childNodes.pop(),o);return t.appendChild(e),t}return SemanticProcessor.getInstance().postfixNode_(t,o)}const i=SemanticUtil$2.sliceNodes(e,SemanticPred$3.isOperator);if(0===i.head.length)return o.push(i.div),SemanticProcessor.getInstance().operationsTree_(i.tail,t,r,o);const a=SemanticProcessor.getInstance().prefixNode_(SemanticProcessor.getInstance().implicitNode(i.head),o),s=SemanticProcessor.getInstance().appendOperand_(t,r,a);return i.div?SemanticProcessor.getInstance().operationsTree_(i.tail,s,i.div,[]):s}appendOperand_(e,t,r){if("infixop"!==e.type)return SemanticProcessor.getInstance().infixNode_([e,r],t);const n=SemanticProcessor.getInstance().appendDivisionOp_(e,t,r);return n||(SemanticProcessor.getInstance().appendExistingOperator_(e,t,r)?e:"multiplication"===t.role?SemanticProcessor.getInstance().appendMultiplicativeOp_(e,t,r):SemanticProcessor.getInstance().appendAdditiveOp_(e,t,r))}appendDivisionOp_(e,t,r){return"division"===t.role?SemanticPred$3.isImplicit(e)?SemanticProcessor.getInstance().infixNode_([e,r],t):SemanticProcessor.getInstance().appendLastOperand_(e,t,r):"division"===e.role?SemanticProcessor.getInstance().infixNode_([e,r],t):null}appendLastOperand_(e,t,r){let n=e,o=e.childNodes[e.childNodes.length-1];for(;o&&"infixop"===o.type&&!SemanticPred$3.isImplicit(o);)n=o,o=n.childNodes[e.childNodes.length-1];const i=SemanticProcessor.getInstance().infixNode_([n.childNodes.pop(),r],t);return n.appendChild(i),e}appendMultiplicativeOp_(e,t,r){if(SemanticPred$3.isImplicit(e))return SemanticProcessor.getInstance().infixNode_([e,r],t);let n=e,o=e.childNodes[e.childNodes.length-1];for(;o&&"infixop"===o.type&&!SemanticPred$3.isImplicit(o);)n=o,o=n.childNodes[e.childNodes.length-1];const i=SemanticProcessor.getInstance().infixNode_([n.childNodes.pop(),r],t);return n.appendChild(i),e}appendAdditiveOp_(e,t,r){return SemanticProcessor.getInstance().infixNode_([e,r],t)}appendExistingOperator_(e,t,r){return!(!e||"infixop"!==e.type||SemanticPred$3.isImplicit(e))&&(e.contentNodes[0].equals(t)?(e.appendContentNode(t),e.appendChild(r),!0):SemanticProcessor.getInstance().appendExistingOperator_(e.childNodes[e.childNodes.length-1],t,r))}getFencesInRow_(e){let t=SemanticUtil$2.partitionNodes(e,SemanticPred$3.isFence);t=SemanticProcessor.purgeFences_(t);const r=t.comp.shift();return SemanticProcessor.getInstance().fences_(t.rel,t.comp,[],[r])}fences_(e,t,r,n){if(0===e.length&&0===r.length)return n[0];const o=e=>SemanticPred$3.isRole(e,"open");if(0===e.length){const e=n.shift();for(;r.length>0;){if(o(r[0])){const t=r.shift();SemanticProcessor.fenceToPunct_(t),e.push(t)}else{const t=SemanticUtil$2.sliceNodes(r,o),i=t.head.length-1,a=SemanticProcessor.getInstance().neutralFences_(t.head,n.slice(0,i));n=n.slice(i),e.push(...a),t.div&&t.tail.unshift(t.div),r=t.tail}e.push(...n.shift())}return e}const i=r[r.length-1],a=e[0].role;if("open"===a||SemanticPred$3.isNeutralFence(e[0])&&(!i||!SemanticPred$3.compareNeutralFences(e[0],i))){r.push(e.shift());const o=t.shift();return o&&n.push(o),SemanticProcessor.getInstance().fences_(e,t,r,n)}if(i&&"close"===a&&"open"===i.role){const o=SemanticProcessor.getInstance().horizontalFencedNode_(r.pop(),e.shift(),n.pop());return n.push(n.pop().concat([o],t.shift())),SemanticProcessor.getInstance().fences_(e,t,r,n)}if(i&&SemanticPred$3.compareNeutralFences(e[0],i)){if(!SemanticPred$3.elligibleLeftNeutral(i)||!SemanticPred$3.elligibleRightNeutral(e[0])){r.push(e.shift());const o=t.shift();return o&&n.push(o),SemanticProcessor.getInstance().fences_(e,t,r,n)}const o=SemanticProcessor.getInstance().horizontalFencedNode_(r.pop(),e.shift(),n.pop());return n.push(n.pop().concat([o],t.shift())),SemanticProcessor.getInstance().fences_(e,t,r,n)}if(i&&"close"===a&&SemanticPred$3.isNeutralFence(i)&&r.some(o)){const i=SemanticUtil$2.sliceNodes(r,o,!0),a=n.pop(),s=n.length-i.tail.length+1,l=SemanticProcessor.getInstance().neutralFences_(i.tail,n.slice(s));n=n.slice(0,s);const c=SemanticProcessor.getInstance().horizontalFencedNode_(i.div,e.shift(),n.pop().concat(l,a));return n.push(n.pop().concat([c],t.shift())),SemanticProcessor.getInstance().fences_(e,t,i.head,n)}const s=e.shift();return SemanticProcessor.fenceToPunct_(s),n.push(n.pop().concat([s],t.shift())),SemanticProcessor.getInstance().fences_(e,t,r,n)}neutralFences_(e,t){if(0===e.length)return e;if(1===e.length)return SemanticProcessor.fenceToPunct_(e[0]),e;const r=e.shift();if(!SemanticPred$3.elligibleLeftNeutral(r)){SemanticProcessor.fenceToPunct_(r);const n=t.shift();return n.unshift(r),n.concat(SemanticProcessor.getInstance().neutralFences_(e,t))}const n=SemanticUtil$2.sliceNodes(e,(function(e){return SemanticPred$3.compareNeutralFences(e,r)}));if(!n.div){SemanticProcessor.fenceToPunct_(r);const n=t.shift();return n.unshift(r),n.concat(SemanticProcessor.getInstance().neutralFences_(e,t))}if(!SemanticPred$3.elligibleRightNeutral(n.div))return SemanticProcessor.fenceToPunct_(n.div),e.unshift(r),SemanticProcessor.getInstance().neutralFences_(e,t);const o=SemanticProcessor.getInstance().combineFencedContent_(r,n.div,n.head,t);if(n.tail.length>0){const e=o.shift(),t=SemanticProcessor.getInstance().neutralFences_(n.tail,o);return e.concat(t)}return o[0]}combineFencedContent_(e,t,r,n){if(0===r.length){const r=SemanticProcessor.getInstance().horizontalFencedNode_(e,t,n.shift());return n.length>0?n[0].unshift(r):n=[[r]],n}const o=n.shift(),i=r.length-1,a=n.slice(0,i),s=(n=n.slice(i)).shift(),l=SemanticProcessor.getInstance().neutralFences_(r,a);o.push(...l),o.push(...s);const c=SemanticProcessor.getInstance().horizontalFencedNode_(e,t,o);return n.length>0?n[0].unshift(c):n=[[c]],n}horizontalFencedNode_(e,t,r){const n=SemanticProcessor.getInstance().row(r);let o=SemanticProcessor.getInstance().factory_.makeBranchNode("fenced",[n],[e,t]);return"open"===e.role?(SemanticProcessor.getInstance().classifyHorizontalFence_(o),o=SemanticHeuristics$1.run("propagateComposedFunction",o)):o.role=e.role,o=SemanticHeuristics$1.run("detect_cycle",o),SemanticProcessor.rewriteFencedNode_(o)}classifyHorizontalFence_(e){e.role="leftright";const t=e.childNodes;if(!SemanticPred$3.isSetNode(e)||t.length>1)return;if(0===t.length||"empty"===t[0].type)return void(e.role="set empty");const r=t[0].type;if(1===t.length&&SemanticPred$3.isSingletonSetContent(t[0]))return void(e.role="set singleton");const n=t[0].role;if("punctuated"===r&&"sequence"===n){if("comma"!==t[0].contentNodes[0].role)return 1!==t[0].contentNodes.length||"vbar"!==t[0].contentNodes[0].role&&"colon"!==t[0].contentNodes[0].role?void 0:(e.role="set extended",void SemanticProcessor.getInstance().setExtension_(e));e.role="set collection"}}setExtension_(e){const t=e.childNodes[0].childNodes[0];t&&"infixop"===t.type&&1===t.contentNodes.length&&SemanticPred$3.isMembership(t.contentNodes[0])&&(t.addAnnotation("set","intensional"),t.contentNodes[0].addAnnotation("set","intensional"))}getPunctuationInRow_(e){if(e.length<=1)return e;const t=e=>{const t=e.type;return"punctuation"===t||"text"===t||"operator"===t||"relation"===t},r=SemanticUtil$2.partitionNodes(e,(function(r){if(!SemanticPred$3.isPunctuation(r))return!1;if(SemanticPred$3.isPunctuation(r)&&!SemanticPred$3.isRole(r,"ellipsis"))return!0;const n=e.indexOf(r);if(0===n)return!e[1]||!t(e[1]);const o=e[n-1];if(n===e.length-1)return!t(o);const i=e[n+1];return!t(o)||!t(i)}));if(0===r.rel.length)return e;const n=[];let o=r.comp.shift();o.length>0&&n.push(SemanticProcessor.getInstance().row(o));let i=0;for(;r.comp.length>0;)n.push(r.rel[i++]),o=r.comp.shift(),o.length>0&&n.push(SemanticProcessor.getInstance().row(o));return[SemanticProcessor.getInstance().punctuatedNode_(n,r.rel)]}punctuatedNode_(e,t){const r=SemanticProcessor.getInstance().factory_.makeBranchNode("punctuated",e,t);if(t.length===e.length){const e=t[0].role;if("unknown"!==e&&t.every((function(t){return t.role===e})))return r.role=e,r}return SemanticPred$3.singlePunctAtPosition(e,t,0)?r.role="startpunct":SemanticPred$3.singlePunctAtPosition(e,t,e.length-1)?r.role="endpunct":t.every((e=>SemanticPred$3.isRole(e,"dummy")))?r.role="text":t.every((e=>SemanticPred$3.isRole(e,"space")))?r.role="space":r.role="sequence",r}dummyNode_(e){const t=SemanticProcessor.getInstance().factory_.makeMultipleContentNodes(e.length-1,SemanticAttr$1.invisibleComma());return t.forEach((function(e){e.role="dummy"})),SemanticProcessor.getInstance().punctuatedNode_(e,t)}accentRole_(e,t){if(!SemanticPred$3.isAccent(e))return!1;const r=e.textContent,n=SemanticAttr$1.lookupSecondary("bar",r)||SemanticAttr$1.lookupSecondary("tilde",r)||e.role;return e.role="underscore"===t?"underaccent":"overaccent",e.addAnnotation("accent",n),!0}accentNode_(e,t,r,n,o){const i=(t=t.slice(0,n+1))[1],a=t[2];let s;if(!o&&a&&(s=SemanticProcessor.getInstance().factory_.makeBranchNode("subscript",[e,i],[]),s.role="subsup",t=[s,a],r="superscript"),o){const n=SemanticProcessor.getInstance().accentRole_(i,r);if(a){SemanticProcessor.getInstance().accentRole_(a,"overscore")&&!n?(s=SemanticProcessor.getInstance().factory_.makeBranchNode("overscore",[e,a],[]),t=[s,i],r="underscore"):(s=SemanticProcessor.getInstance().factory_.makeBranchNode("underscore",[e,i],[]),t=[s,a],r="overscore"),s.role="underover"}}return SemanticProcessor.getInstance().makeLimitNode_(e,t,s,r)}makeLimitNode_(e,t,r,n){if("limupper"===n&&"limlower"===e.type)return e.childNodes.push(t[1]),t[1].parent=e,e.type="limboth",e;if("limlower"===n&&"limupper"===e.type)return e.childNodes.splice(1,-1,t[1]),t[1].parent=e,e.type="limboth",e;const o=SemanticProcessor.getInstance().factory_.makeBranchNode(n,t,[]),i=SemanticPred$3.isEmbellished(e);return r&&(r.embellished=i),o.embellished=i,o.role=e.role,o}getFunctionsInRow_(e,t){const r=t||[];if(0===e.length)return r;const n=e.shift(),o=SemanticProcessor.classifyFunction_(n,e);if(!o)return r.push(n),SemanticProcessor.getInstance().getFunctionsInRow_(e,r);const i=SemanticProcessor.getInstance().getFunctionsInRow_(e,[]),a=SemanticProcessor.getInstance().getFunctionArgs_(n,i,o);return r.concat(a)}getFunctionArgs_(e,t,r){let n,o,i;switch(r){case"integral":{const r=SemanticProcessor.getInstance().getIntegralArgs_(t);if(!r.intvar&&!r.integrand.length)return r.rest.unshift(e),r.rest;const n=SemanticProcessor.getInstance().row(r.integrand);return i=SemanticProcessor.getInstance().integralNode_(e,n,r.intvar),r.rest.unshift(i),r.rest}case"prefix":if(t[0]&&"fenced"===t[0].type){const r=t.shift();return SemanticPred$3.isNeutralFence(r)||(r.role="leftright"),i=SemanticProcessor.getInstance().functionNode_(e,r),t.unshift(i),t}if(n=SemanticUtil$2.sliceNodes(t,SemanticPred$3.isPrefixFunctionBoundary),n.head.length)o=SemanticProcessor.getInstance().row(n.head),n.div&&n.tail.unshift(n.div);else{if(!n.div||!SemanticPred$3.isType(n.div,"appl"))return t.unshift(e),t;o=n.div}return i=SemanticProcessor.getInstance().functionNode_(e,o),n.tail.unshift(i),n.tail;case"bigop":return n=SemanticUtil$2.sliceNodes(t,SemanticPred$3.isBigOpBoundary),n.head.length?(o=SemanticProcessor.getInstance().row(n.head),i=SemanticProcessor.getInstance().bigOpNode_(e,o),n.div&&n.tail.unshift(n.div),n.tail.unshift(i),n.tail):(t.unshift(e),t);default:{if(0===t.length)return[e];const r=t[0];return"fenced"===r.type&&!SemanticPred$3.isNeutralFence(r)&&SemanticPred$3.isSimpleFunctionScope(r)?(r.role="leftright",SemanticProcessor.propagateFunctionRole_(e,"simple function"),i=SemanticProcessor.getInstance().functionNode_(e,t.shift()),t.unshift(i),t):(t.unshift(e),t)}}}getIntegralArgs_(e,t=[]){if(0===e.length)return{integrand:t,intvar:null,rest:e};const r=e[0];if(SemanticPred$3.isGeneralFunctionBoundary(r))return{integrand:t,intvar:null,rest:e};if(SemanticPred$3.isIntegralDxBoundarySingle(r))return r.role="integral",{integrand:t,intvar:r,rest:e.slice(1)};if(e[1]&&SemanticPred$3.isIntegralDxBoundary(r,e[1])){const n=SemanticProcessor.getInstance().prefixNode_(e[1],[r]);return n.role="integral",{integrand:t,intvar:n,rest:e.slice(2)}}return t.push(e.shift()),SemanticProcessor.getInstance().getIntegralArgs_(e,t)}functionNode_(e,t){const r=SemanticProcessor.getInstance().factory_.makeContentNode(SemanticAttr$1.functionApplication()),n=SemanticProcessor.getInstance().funcAppls[e.id];n&&(r.mathmlTree=n.mathmlTree,r.mathml=n.mathml,r.annotation=n.annotation,r.attributes=n.attributes,delete SemanticProcessor.getInstance().funcAppls[e.id]),r.type="punctuation",r.role="application";const o=SemanticProcessor.getFunctionOp_(e,(function(e){return SemanticPred$3.isType(e,"function")||SemanticPred$3.isType(e,"identifier")&&SemanticPred$3.isRole(e,"simple function")}));return SemanticProcessor.getInstance().functionalNode_("appl",[e,t],o,[r])}bigOpNode_(e,t){const r=SemanticProcessor.getFunctionOp_(e,(e=>SemanticPred$3.isType(e,"largeop")));return SemanticProcessor.getInstance().functionalNode_("bigop",[e,t],r,[])}integralNode_(e,t,r){t=t||SemanticProcessor.getInstance().factory_.makeEmptyNode(),r=r||SemanticProcessor.getInstance().factory_.makeEmptyNode();const n=SemanticProcessor.getFunctionOp_(e,(e=>SemanticPred$3.isType(e,"largeop")));return SemanticProcessor.getInstance().functionalNode_("integral",[e,t,r],n,[])}functionalNode_(e,t,r,n){const o=t[0];let i;r&&(i=r.parent,n.push(r));const a=SemanticProcessor.getInstance().factory_.makeBranchNode(e,t,n);return a.role=o.role,i&&(r.parent=i),a}fractionNode_(e,t){const r=SemanticProcessor.getInstance().factory_.makeBranchNode("fraction",[e,t],[]);return r.role=r.childNodes.every((function(e){return SemanticPred$3.isType(e,"number")&&SemanticPred$3.isRole(e,"integer")}))?"vulgar":r.childNodes.every(SemanticPred$3.isPureUnit)?"unit":"division",SemanticHeuristics$1.run("propagateSimpleFunction",r)}scriptNode_(e,t,r){let n;switch(e.length){case 0:n=SemanticProcessor.getInstance().factory_.makeEmptyNode();break;case 1:if(n=e[0],r)return n;break;default:n=SemanticProcessor.getInstance().dummyNode_(e)}return n.role=t,n}findNestedRow_(e,t,r,n){if(r>3)return null;for(let o,i=0;o=e[i];i++){const e=DomUtil$n.tagName(o);if("MSPACE"!==e){if("MROW"===e)return SemanticProcessor.getInstance().findNestedRow_(DomUtil$n.toArray(o.childNodes),t,r+1,n);if(SemanticProcessor.findSemantics(o,t,n))return o}}return null}}semantic_processor.default=SemanticProcessor,SemanticProcessor.FENCE_TO_PUNCT_={metric:"metric",neutral:"vbar",open:"openfence",close:"closefence"},SemanticProcessor.MML_TO_LIMIT_={MSUB:{type:"limlower",length:1},MUNDER:{type:"limlower",length:1},MSUP:{type:"limupper",length:1},MOVER:{type:"limupper",length:1},MSUBSUP:{type:"limboth",length:2},MUNDEROVER:{type:"limboth",length:2}},SemanticProcessor.MML_TO_BOUNDS_={MSUB:{type:"subscript",length:1,accent:!1},MSUP:{type:"superscript",length:1,accent:!1},MSUBSUP:{type:"subscript",length:2,accent:!1},MUNDER:{type:"underscore",length:1,accent:!0},MOVER:{type:"overscore",length:1,accent:!0},MUNDEROVER:{type:"underscore",length:2,accent:!0}},SemanticProcessor.CLASSIFY_FUNCTION_={integral:"integral",sum:"bigop","prefix function":"prefix","limit function":"prefix","simple function":"prefix","composed function":"prefix"},SemanticProcessor.MATHJAX_FONTS={"-tex-caligraphic":"caligraphic","-tex-caligraphic-bold":"caligraphic-bold","-tex-calligraphic":"caligraphic","-tex-calligraphic-bold":"caligraphic-bold","-tex-oldstyle":"oldstyle","-tex-oldstyle-bold":"oldstyle-bold","-tex-mathit":"italic"},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.smallRoot=e.generateTensorRules=e.removeParens=e.generateBaselineConstraint=e.determinantIsSimple=e.nestedOverscript=e.endscripts=e.overscoreNestingDepth=e.nestedUnderscript=e.underscoreNestingDepth=e.indexRadicalSbrief=e.openingRadicalSbrief=e.indexRadicalBrief=e.closingRadicalBrief=e.openingRadicalBrief=e.indexRadicalVerbose=e.closingRadicalVerbose=e.openingRadicalVerbose=e.getRootIndex=e.nestedRadical=e.radicalNestingDepth=e.baselineBrief=e.baselineVerbose=e.superscriptBrief=e.superscriptVerbose=e.subscriptBrief=e.subscriptVerbose=e.nestedSubSuper=e.isSmallVulgarFraction=e.overFractionSbrief=e.closingFractionSbrief=e.openingFractionSbrief=e.closingFractionBrief=e.openingFractionBrief=e.overFractionVerbose=e.closingFractionVerbose=e.openingFractionVerbose=e.nestedFraction=e.fractionNestingDepth=e.computeNestingDepth_=e.containsAttr=e.getNestingDepth=e.resetNestingDepth=e.nestingBarriers=e.spaceoutIdentifier=e.spaceoutNumber=e.spaceoutNodes=e.spaceoutText=void 0;const t=base_util,r=dom_util,n=xpath_util,o=locale$d,i=semantic_processor;let a={};function s(e,t){const r=Array.from(e.textContent),n=[],o=i.default.getInstance(),a=e.ownerDocument;for(let e,i=0;e=r[i];i++){const r=o.getNodeFactory().makeLeafNode(e,"unknown"),i=o.identifierNode(r,"unknown","");t(i),n.push(i.xml(a))}return n}function l(n,o,i,s,l,c){s=s||e.nestingBarriers,l=l||{},c=c||function(e){return!1};const d=r.serializeXml(o);if(a[n]||(a[n]={}),a[n][d])return a[n][d];if(c(o)||i.indexOf(o.tagName)<0)return 0;const p=u(o,i,t.setdifference(s,i),l,c,0);return a[n][d]=p,p}function c(e,t){if(!e.attributes)return!1;const n=r.toArray(e.attributes);for(let e,r=0;e=n[r];r++)if(t[e.nodeName]===e.nodeValue)return!0;return!1}function u(e,t,n,o,i,a){if(i(e)||n.indexOf(e.tagName)>-1||c(e,o))return a;if(t.indexOf(e.tagName)>-1&&a++,!e.childNodes||0===e.childNodes.length)return a;const s=r.toArray(e.childNodes);return Math.max.apply(null,s.map((function(e){return u(e,t,n,o,i,a)})))}function d(t){return l("fraction",t,["fraction"],e.nestingBarriers,{},o.LOCALE.FUNCTIONS.fracNestDepth)}function p(e,t,r){const n=d(e),i=Array(n).fill(t);return r&&i.push(r),i.join(o.LOCALE.MESSAGES.regexp.JOINER_FRAC)}function m(e,t,r){for(;e.parentNode;){const n=e.parentNode,i=n.parentNode;if(!i)break;const a=e.getAttribute&&e.getAttribute("role");("subscript"===i.tagName&&e===n.childNodes[1]||"tensor"===i.tagName&&a&&("leftsub"===a||"rightsub"===a))&&(t=r.sub+o.LOCALE.MESSAGES.regexp.JOINER_SUBSUPER+t),("superscript"===i.tagName&&e===n.childNodes[1]||"tensor"===i.tagName&&a&&("leftsuper"===a||"rightsuper"===a))&&(t=r.sup+o.LOCALE.MESSAGES.regexp.JOINER_SUBSUPER+t),e=i}return t.trim()}function h(t){return l("radical",t,["sqrt","root"],e.nestingBarriers,{})}function f(e,t,r){const n=h(e),i=_(e);return r=i?o.LOCALE.FUNCTIONS.combineRootIndex(r,i):r,1===n?r:o.LOCALE.FUNCTIONS.combineNestedRadical(t,o.LOCALE.FUNCTIONS.radicalNestDepth(n-1),r)}function _(e){const t="sqrt"===e.tagName?"2":n.evalXPath("children/*[1]",e)[0].textContent.trim();return o.LOCALE.MESSAGES.MSroots[t]||""}function g(t){return l("underscore",t,["underscore"],e.nestingBarriers,{},(function(e){return e.tagName&&"underscore"===e.tagName&&"underaccent"===e.childNodes[0].childNodes[1].getAttribute("role")}))}function y(t){return l("overscore",t,["overscore"],e.nestingBarriers,{},(function(e){return e.tagName&&"overscore"===e.tagName&&"overaccent"===e.childNodes[0].childNodes[1].getAttribute("role")}))}e.spaceoutText=function(e){return Array.from(e.textContent).join(" ")},e.spaceoutNodes=s,e.spaceoutNumber=function(e){return s(e,(function(e){e.textContent.match(/\W/)||(e.type="number")}))},e.spaceoutIdentifier=function(e){return s(e,(function(e){e.font="unknown",e.type="identifier"}))},e.nestingBarriers=["cases","cell","integral","line","matrix","multiline","overscore","root","row","sqrt","subscript","superscript","table","underscore","vector"],e.resetNestingDepth=function(e){return a={},[e]},e.getNestingDepth=l,e.containsAttr=c,e.computeNestingDepth_=u,e.fractionNestingDepth=d,e.nestedFraction=p,e.openingFractionVerbose=function(e){return p(e,o.LOCALE.MESSAGES.MS.START,o.LOCALE.MESSAGES.MS.FRAC_V)},e.closingFractionVerbose=function(e){return p(e,o.LOCALE.MESSAGES.MS.END,o.LOCALE.MESSAGES.MS.FRAC_V)},e.overFractionVerbose=function(e){return p(e,o.LOCALE.MESSAGES.MS.FRAC_OVER)},e.openingFractionBrief=function(e){return p(e,o.LOCALE.MESSAGES.MS.START,o.LOCALE.MESSAGES.MS.FRAC_B)},e.closingFractionBrief=function(e){return p(e,o.LOCALE.MESSAGES.MS.END,o.LOCALE.MESSAGES.MS.FRAC_B)},e.openingFractionSbrief=function(e){const t=d(e);return 1===t?o.LOCALE.MESSAGES.MS.FRAC_S:o.LOCALE.FUNCTIONS.combineNestedFraction(o.LOCALE.MESSAGES.MS.NEST_FRAC,o.LOCALE.FUNCTIONS.radicalNestDepth(t-1),o.LOCALE.MESSAGES.MS.FRAC_S)},e.closingFractionSbrief=function(e){const t=d(e);return 1===t?o.LOCALE.MESSAGES.MS.ENDFRAC:o.LOCALE.FUNCTIONS.combineNestedFraction(o.LOCALE.MESSAGES.MS.NEST_FRAC,o.LOCALE.FUNCTIONS.radicalNestDepth(t-1),o.LOCALE.MESSAGES.MS.ENDFRAC)},e.overFractionSbrief=function(e){const t=d(e);return 1===t?o.LOCALE.MESSAGES.MS.FRAC_OVER:o.LOCALE.FUNCTIONS.combineNestedFraction(o.LOCALE.MESSAGES.MS.NEST_FRAC,o.LOCALE.FUNCTIONS.radicalNestDepth(t-1),o.LOCALE.MESSAGES.MS.FRAC_OVER)},e.isSmallVulgarFraction=function(e){return o.LOCALE.FUNCTIONS.fracNestDepth(e)?[e]:[]},e.nestedSubSuper=m,e.subscriptVerbose=function(e){return m(e,o.LOCALE.MESSAGES.MS.SUBSCRIPT,{sup:o.LOCALE.MESSAGES.MS.SUPER,sub:o.LOCALE.MESSAGES.MS.SUB})},e.subscriptBrief=function(e){return m(e,o.LOCALE.MESSAGES.MS.SUB,{sup:o.LOCALE.MESSAGES.MS.SUP,sub:o.LOCALE.MESSAGES.MS.SUB})},e.superscriptVerbose=function(e){return m(e,o.LOCALE.MESSAGES.MS.SUPERSCRIPT,{sup:o.LOCALE.MESSAGES.MS.SUPER,sub:o.LOCALE.MESSAGES.MS.SUB})},e.superscriptBrief=function(e){return m(e,o.LOCALE.MESSAGES.MS.SUP,{sup:o.LOCALE.MESSAGES.MS.SUP,sub:o.LOCALE.MESSAGES.MS.SUB})},e.baselineVerbose=function(e){const t=m(e,"",{sup:o.LOCALE.MESSAGES.MS.SUPER,sub:o.LOCALE.MESSAGES.MS.SUB});return t?t.replace(new RegExp(o.LOCALE.MESSAGES.MS.SUB+"$"),o.LOCALE.MESSAGES.MS.SUBSCRIPT).replace(new RegExp(o.LOCALE.MESSAGES.MS.SUPER+"$"),o.LOCALE.MESSAGES.MS.SUPERSCRIPT):o.LOCALE.MESSAGES.MS.BASELINE},e.baselineBrief=function(e){return m(e,"",{sup:o.LOCALE.MESSAGES.MS.SUP,sub:o.LOCALE.MESSAGES.MS.SUB})||o.LOCALE.MESSAGES.MS.BASE},e.radicalNestingDepth=h,e.nestedRadical=f,e.getRootIndex=_,e.openingRadicalVerbose=function(e){return f(e,o.LOCALE.MESSAGES.MS.NESTED,o.LOCALE.MESSAGES.MS.STARTROOT)},e.closingRadicalVerbose=function(e){return f(e,o.LOCALE.MESSAGES.MS.NESTED,o.LOCALE.MESSAGES.MS.ENDROOT)},e.indexRadicalVerbose=function(e){return f(e,o.LOCALE.MESSAGES.MS.NESTED,o.LOCALE.MESSAGES.MS.ROOTINDEX)},e.openingRadicalBrief=function(e){return f(e,o.LOCALE.MESSAGES.MS.NEST_ROOT,o.LOCALE.MESSAGES.MS.STARTROOT)},e.closingRadicalBrief=function(e){return f(e,o.LOCALE.MESSAGES.MS.NEST_ROOT,o.LOCALE.MESSAGES.MS.ENDROOT)},e.indexRadicalBrief=function(e){return f(e,o.LOCALE.MESSAGES.MS.NEST_ROOT,o.LOCALE.MESSAGES.MS.ROOTINDEX)},e.openingRadicalSbrief=function(e){return f(e,o.LOCALE.MESSAGES.MS.NEST_ROOT,o.LOCALE.MESSAGES.MS.ROOT)},e.indexRadicalSbrief=function(e){return f(e,o.LOCALE.MESSAGES.MS.NEST_ROOT,o.LOCALE.MESSAGES.MS.INDEX)},e.underscoreNestingDepth=g,e.nestedUnderscript=function(e){const t=g(e);return Array(t).join(o.LOCALE.MESSAGES.MS.UNDER)+o.LOCALE.MESSAGES.MS.UNDERSCRIPT},e.overscoreNestingDepth=y,e.endscripts=function(e){return o.LOCALE.MESSAGES.MS.ENDSCRIPTS},e.nestedOverscript=function(e){const t=y(e);return Array(t).join(o.LOCALE.MESSAGES.MS.OVER)+o.LOCALE.MESSAGES.MS.OVERSCRIPT},e.determinantIsSimple=function(e){if("matrix"!==e.tagName||"determinant"!==e.getAttribute("role"))return[];const t=n.evalXPath("children/row/children/cell/children/*",e);for(let e,r=0;e=t[r];r++)if("number"!==e.tagName){if("identifier"===e.tagName){const t=e.getAttribute("role");if("latinletter"===t||"greekletter"===t||"otherletter"===t)continue}return[]}return[e]},e.generateBaselineConstraint=function(){const e=e=>e.map((e=>"ancestor::"+e)),t=e=>"not("+e+")",r=t(e(["subscript","superscript","tensor"]).join(" or ")),n=e(["relseq","multrel"]),o=e(["fraction","punctuation","fenced","sqrt","root"]);let i=[];for(let e,t=0;e=o[t];t++)i=i.concat(n.map((function(t){return e+"/"+t})));return[["ancestor::*/following-sibling::*",r,t(i.join(" | "))].join(" and ")]},e.removeParens=function(e){if(!e.childNodes.length||!e.childNodes[0].childNodes.length||!e.childNodes[0].childNodes[0].childNodes.length)return"";const t=e.childNodes[0].childNodes[0].childNodes[0].textContent;return t.match(/^\(.+\)$/)?t.slice(1,-1):t};const b=new Map([[3,"CSFleftsuperscript"],[4,"CSFleftsubscript"],[2,"CSFbaseline"],[1,"CSFrightsubscript"],[0,"CSFrightsuperscript"]]),v=new Map([[4,2],[3,3],[2,1],[1,4],[0,5]]);function x(e){const t=[];let r="",n="",o=parseInt(e,2);for(let e=0;e<5;e++){const i="children/*["+v.get(e)+"]";if(1&o){const t=b.get(e%5);r="[t] "+t+"Verbose; [n] "+i+";"+r,n="[t] "+t+"Brief; [n] "+i+";"+n}else t.unshift("name("+i+')="empty"');o>>=1}return[t,r,n]}e.generateTensorRules=function(e,t=!0){const r=["11111","11110","11101","11100","10111","10110","10101","10100","01111","01110","01101","01100"];for(let n,o=0;n=r[o];o++){let r="tensor"+n,[o,i,a]=x(n);e.defineRule(r,"default",i,"self::tensor",...o),t&&(e.defineRule(r,"brief",a,"self::tensor",...o),e.defineRule(r,"sbrief",a,"self::tensor",...o));const s=b.get(2);i+="; [t]"+s+"Verbose",a+="; [t]"+s+"Brief",r+="-baseline";const l="((.//*[not(*)])[last()]/@id)!=(((.//ancestor::fraction|ancestor::root|ancestor::sqrt|ancestor::cell|ancestor::line|ancestor::stree)[1]//*[not(*)])[last()]/@id)";e.defineRule(r,"default",i,"self::tensor",l,...o),t&&(e.defineRule(r,"brief",a,"self::tensor",l,...o),e.defineRule(r,"sbrief",a,"self::tensor",l,...o))}},e.smallRoot=function(e){let t=Object.keys(o.LOCALE.MESSAGES.MSroots).length;if(!t)return[];if(t++,!e.childNodes||0===e.childNodes.length||!e.childNodes[0].childNodes)return[];const r=e.childNodes[0].childNodes[0].textContent;if(!/^\d+$/.test(r))return[];const n=parseInt(r,10);return n>1&&n<=t?[e]:[]}}(mathspeak_util),getDefaultExportFromCjs$1(mathspeak_util);var numbers_util={};Object.defineProperty(numbers_util,"__esModule",{value:!0}),numbers_util.ordinalPosition=numbers_util.vulgarFraction=numbers_util.wordCounter=numbers_util.ordinalCounter=void 0;const span_1$2=span,DomUtil$m=dom_util,locale_1$4=locale$d,transformers_1=transformers;function ordinalCounter(e,t){let r=0;return function(){return locale_1$4.LOCALE.NUMBERS.numericOrdinal(++r)+" "+t}}function wordCounter(e,t){let r=0;return function(){return locale_1$4.LOCALE.NUMBERS.numberToOrdinal(++r,!1)+" "+t}}function vulgarFraction(e){const t=(0,transformers_1.convertVulgarFraction)(e,locale_1$4.LOCALE.MESSAGES.MS.FRAC_OVER);return t.convertible&&t.enumerator&&t.denominator?[new span_1$2.Span(locale_1$4.LOCALE.NUMBERS.numberToWords(t.enumerator),{extid:e.childNodes[0].childNodes[0].getAttribute("extid"),separator:""}),new span_1$2.Span(locale_1$4.LOCALE.NUMBERS.vulgarSep,{separator:""}),new span_1$2.Span(locale_1$4.LOCALE.NUMBERS.numberToOrdinal(t.denominator,1!==t.enumerator),{extid:e.childNodes[0].childNodes[1].getAttribute("extid")})]:[new span_1$2.Span(t.content||"",{extid:e.getAttribute("extid")})]}function ordinalPosition(e){const t=DomUtil$m.toArray(e.parentNode.childNodes);return locale_1$4.LOCALE.NUMBERS.numericOrdinal(t.indexOf(e)+1).toString()}numbers_util.ordinalCounter=ordinalCounter,numbers_util.wordCounter=wordCounter,numbers_util.vulgarFraction=vulgarFraction,numbers_util.ordinalPosition=ordinalPosition,Object.defineProperty(clearspeak_rules,"__esModule",{value:!0}),clearspeak_rules.ClearspeakRules=void 0;const dynamic_cstr_1$6=dynamic_cstr,StoreUtil$2=store_util,ClearspeakUtil=clearspeak_util,MathspeakUtil$3=mathspeak_util,NumbersUtil$2=numbers_util,SpeechRules$3=speech_rules;function ClearspeakRules(){SpeechRules$3.addStore(dynamic_cstr_1$6.DynamicCstr.BASE_LOCALE+".speech.clearspeak","",{CTFpauseSeparator:StoreUtil$2.pauseSeparator,CTFnodeCounter:ClearspeakUtil.nodeCounter,CTFcontentIterator:StoreUtil$2.contentIterator,CSFvulgarFraction:NumbersUtil$2.vulgarFraction,CQFvulgarFractionSmall:ClearspeakUtil.isSmallVulgarFraction,CQFcellsSimple:ClearspeakUtil.allCellsSimple,CSFordinalExponent:ClearspeakUtil.ordinalExponent,CSFwordOrdinal:ClearspeakUtil.wordOrdinal,CQFmatchingFences:ClearspeakUtil.matchingFences,CSFnestingDepth:ClearspeakUtil.nestingDepth,CQFfencedArguments:ClearspeakUtil.fencedArguments,CQFsimpleArguments:ClearspeakUtil.simpleArguments,CQFspaceoutNumber:MathspeakUtil$3.spaceoutNumber})}clearspeak_rules.ClearspeakRules=ClearspeakRules;var mathspeak_rules={},mathspeak_french_util={};Object.defineProperty(mathspeak_french_util,"__esModule",{value:!0}),mathspeak_french_util.leftSubscriptBrief=mathspeak_french_util.leftSuperscriptBrief=mathspeak_french_util.leftSubscriptVerbose=mathspeak_french_util.leftSuperscriptVerbose=mathspeak_french_util.baselineBrief=mathspeak_french_util.baselineVerbose=void 0;const MathspeakUtil$2=mathspeak_util;function baselineVerbose(e){return MathspeakUtil$2.baselineVerbose(e).replace(/-$/,"")}function baselineBrief(e){return MathspeakUtil$2.baselineBrief(e).replace(/-$/,"")}function leftSuperscriptVerbose(e){return MathspeakUtil$2.superscriptVerbose(e).replace(/^exposant/,"exposant gauche")}function leftSubscriptVerbose(e){return MathspeakUtil$2.subscriptVerbose(e).replace(/^indice/,"indice gauche")}function leftSuperscriptBrief(e){return MathspeakUtil$2.superscriptBrief(e).replace(/^sup/,"sup gauche")}function leftSubscriptBrief(e){return MathspeakUtil$2.subscriptBrief(e).replace(/^sub/,"sub gauche")}mathspeak_french_util.baselineVerbose=baselineVerbose,mathspeak_french_util.baselineBrief=baselineBrief,mathspeak_french_util.leftSuperscriptVerbose=leftSuperscriptVerbose,mathspeak_french_util.leftSubscriptVerbose=leftSubscriptVerbose,mathspeak_french_util.leftSuperscriptBrief=leftSuperscriptBrief,mathspeak_french_util.leftSubscriptBrief=leftSubscriptBrief;var unit_util={};Object.defineProperty(unit_util,"__esModule",{value:!0}),unit_util.oneLeft=unit_util.leftMostUnit=unit_util.rightMostUnit=unit_util.unitMultipliers=void 0;const auditory_description_1$3=auditory_description,XpathUtil$8=xpath_util,locale_1$3=locale$d;function unitMultipliers(e,t){const r=e;let n=0;return function(){const e=auditory_description_1$3.AuditoryDescription.create({text:rightMostUnit(r[n])&&leftMostUnit(r[n+1])?locale_1$3.LOCALE.MESSAGES.unitTimes:""},{});return n++,[e]}}unit_util.unitMultipliers=unitMultipliers;const SCRIPT_ELEMENTS=["superscript","subscript","overscore","underscore"];function rightMostUnit(e){for(;e;){if("unit"===e.getAttribute("role"))return!0;const t=e.tagName,r=XpathUtil$8.evalXPath("children/*",e);e=-1!==SCRIPT_ELEMENTS.indexOf(t)?r[0]:r[r.length-1]}return!1}function leftMostUnit(e){for(;e;){if("unit"===e.getAttribute("role"))return!0;e=XpathUtil$8.evalXPath("children/*",e)[0]}return!1}function oneLeft(e){for(;e;){if("number"===e.tagName&&"1"===e.textContent)return[e];if("infixop"!==e.tagName||"multiplication"!==e.getAttribute("role")&&"implicit"!==e.getAttribute("role"))return[];e=XpathUtil$8.evalXPath("children/*",e)[0]}return[]}unit_util.rightMostUnit=rightMostUnit,unit_util.leftMostUnit=leftMostUnit,unit_util.oneLeft=oneLeft,Object.defineProperty(mathspeak_rules,"__esModule",{value:!0}),mathspeak_rules.MathspeakRules=void 0;const dynamic_cstr_1$5=dynamic_cstr,StoreUtil$1=store_util,MathspeakFrenchUtil=mathspeak_french_util,MathspeakUtil$1=mathspeak_util,NumbersUtil$1=numbers_util,SpeechRules$2=speech_rules,UnitUtil=unit_util;function MathspeakRules(){SpeechRules$2.addStore(dynamic_cstr_1$5.DynamicCstr.BASE_LOCALE+".speech.mathspeak","",{CQFspaceoutNumber:MathspeakUtil$1.spaceoutNumber,CQFspaceoutIdentifier:MathspeakUtil$1.spaceoutIdentifier,CSFspaceoutText:MathspeakUtil$1.spaceoutText,CSFopenFracVerbose:MathspeakUtil$1.openingFractionVerbose,CSFcloseFracVerbose:MathspeakUtil$1.closingFractionVerbose,CSFoverFracVerbose:MathspeakUtil$1.overFractionVerbose,CSFopenFracBrief:MathspeakUtil$1.openingFractionBrief,CSFcloseFracBrief:MathspeakUtil$1.closingFractionBrief,CSFopenFracSbrief:MathspeakUtil$1.openingFractionSbrief,CSFcloseFracSbrief:MathspeakUtil$1.closingFractionSbrief,CSFoverFracSbrief:MathspeakUtil$1.overFractionSbrief,CSFvulgarFraction:NumbersUtil$1.vulgarFraction,CQFvulgarFractionSmall:MathspeakUtil$1.isSmallVulgarFraction,CSFopenRadicalVerbose:MathspeakUtil$1.openingRadicalVerbose,CSFcloseRadicalVerbose:MathspeakUtil$1.closingRadicalVerbose,CSFindexRadicalVerbose:MathspeakUtil$1.indexRadicalVerbose,CSFopenRadicalBrief:MathspeakUtil$1.openingRadicalBrief,CSFcloseRadicalBrief:MathspeakUtil$1.closingRadicalBrief,CSFindexRadicalBrief:MathspeakUtil$1.indexRadicalBrief,CSFopenRadicalSbrief:MathspeakUtil$1.openingRadicalSbrief,CSFindexRadicalSbrief:MathspeakUtil$1.indexRadicalSbrief,CQFisSmallRoot:MathspeakUtil$1.smallRoot,CSFsuperscriptVerbose:MathspeakUtil$1.superscriptVerbose,CSFsuperscriptBrief:MathspeakUtil$1.superscriptBrief,CSFsubscriptVerbose:MathspeakUtil$1.subscriptVerbose,CSFsubscriptBrief:MathspeakUtil$1.subscriptBrief,CSFbaselineVerbose:MathspeakUtil$1.baselineVerbose,CSFbaselineBrief:MathspeakUtil$1.baselineBrief,CSFleftsuperscriptVerbose:MathspeakUtil$1.superscriptVerbose,CSFleftsubscriptVerbose:MathspeakUtil$1.subscriptVerbose,CSFrightsuperscriptVerbose:MathspeakUtil$1.superscriptVerbose,CSFrightsubscriptVerbose:MathspeakUtil$1.subscriptVerbose,CSFleftsuperscriptBrief:MathspeakUtil$1.superscriptBrief,CSFleftsubscriptBrief:MathspeakUtil$1.subscriptBrief,CSFrightsuperscriptBrief:MathspeakUtil$1.superscriptBrief,CSFrightsubscriptBrief:MathspeakUtil$1.subscriptBrief,CSFunderscript:MathspeakUtil$1.nestedUnderscript,CSFoverscript:MathspeakUtil$1.nestedOverscript,CSFendscripts:MathspeakUtil$1.endscripts,CTFordinalCounter:NumbersUtil$1.ordinalCounter,CTFwordCounter:NumbersUtil$1.wordCounter,CTFcontentIterator:StoreUtil$1.contentIterator,CQFdetIsSimple:MathspeakUtil$1.determinantIsSimple,CSFRemoveParens:MathspeakUtil$1.removeParens,CQFresetNesting:MathspeakUtil$1.resetNestingDepth,CGFbaselineConstraint:MathspeakUtil$1.generateBaselineConstraint,CGFtensorRules:MathspeakUtil$1.generateTensorRules}),SpeechRules$2.addStore("es.speech.mathspeak",dynamic_cstr_1$5.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CTFunitMultipliers:UnitUtil.unitMultipliers,CQFoneLeft:UnitUtil.oneLeft}),SpeechRules$2.addStore("fr.speech.mathspeak",dynamic_cstr_1$5.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFbaselineVerbose:MathspeakFrenchUtil.baselineVerbose,CSFbaselineBrief:MathspeakFrenchUtil.baselineBrief,CSFleftsuperscriptVerbose:MathspeakFrenchUtil.leftSuperscriptVerbose,CSFleftsubscriptVerbose:MathspeakFrenchUtil.leftSubscriptVerbose,CSFleftsuperscriptBrief:MathspeakFrenchUtil.leftSuperscriptBrief,CSFleftsubscriptBrief:MathspeakFrenchUtil.leftSubscriptBrief})}mathspeak_rules.MathspeakRules=MathspeakRules;var other_rules={},nemeth_util={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.implicitIterator=e.relationIterator=e.propagateNumber=e.checkParent_=e.NUMBER_INHIBITORS_=e.NUMBER_PROPAGATORS_=e.enlargeFence=e.indexRadical=e.closingRadical=e.openingRadical=e.radicalNestingDepth=e.nestedRadical=e.hyperFractionBoundary=e.overBevelledFraction=e.overFraction=e.closingFraction=e.openingFraction=void 0;const t=auditory_description,r=dom_util,n=xpath_util,o=grammar,i=engine,a=semantic_annotations,s=semantic_annotator,l=locale$d,c=mathspeak_util;function u(e,t){const r=d(e);return 1===r?t:new Array(r).join(l.LOCALE.MESSAGES.MS.NESTED)+t}function d(e,t){const r=t||0;return e.parentNode?d(e.parentNode,"root"===e.tagName||"sqrt"===e.tagName?r+1:r):r}function p(e){const t="⠠";if(1===e.length)return t+e;const r=e.split("");return r.every((function(e){return"⠳"===e}))?t+r.join(t):e.slice(0,-1)+t+e.slice(-1)}function m(t,r){const n=t.parent;if(!n)return!1;const o=n.type;return-1!==e.NUMBER_PROPAGATORS_.indexOf(o)||"prefixop"===o&&"negative"===n.role&&!r.script||"prefixop"===o&&"geometry"===n.role||!("punctuated"!==o||r.enclosed&&"text"!==n.role)}function h(t,r){return t.childNodes.length?(-1!==e.NUMBER_INHIBITORS_.indexOf(t.type)&&(r.script=!0),"fenced"===t.type?(r.number=!1,r.enclosed=!0,["",r]):(m(t,r)&&(r.number=!0,r.enclosed=!1),["",r])):(m(t,r)&&(r.number=!0,r.script=!1,r.enclosed=!1),[r.number?"number":"",{number:!1,enclosed:r.enclosed,script:r.script}])}e.openingFraction=function(e){const t=c.fractionNestingDepth(e);return new Array(t).join(l.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+l.LOCALE.MESSAGES.MS.FRACTION_START},e.closingFraction=function(e){const t=c.fractionNestingDepth(e);return new Array(t).join(l.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+l.LOCALE.MESSAGES.MS.FRACTION_END},e.overFraction=function(e){const t=c.fractionNestingDepth(e);return new Array(t).join(l.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+l.LOCALE.MESSAGES.MS.FRACTION_OVER},e.overBevelledFraction=function(e){const t=c.fractionNestingDepth(e);return new Array(t).join(l.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+"⠸"+l.LOCALE.MESSAGES.MS.FRACTION_OVER},e.hyperFractionBoundary=function(e){return l.LOCALE.MESSAGES.regexp.HYPER===c.fractionNestingDepth(e).toString()?[e]:[]},e.nestedRadical=u,e.radicalNestingDepth=d,e.openingRadical=function(e){return u(e,l.LOCALE.MESSAGES.MS.STARTROOT)},e.closingRadical=function(e){return u(e,l.LOCALE.MESSAGES.MS.ENDROOT)},e.indexRadical=function(e){return u(e,l.LOCALE.MESSAGES.MS.ROOTINDEX)},e.enlargeFence=p,o.Grammar.getInstance().setCorrection("enlargeFence",p),e.NUMBER_PROPAGATORS_=["multirel","relseq","appl","row","line"],e.NUMBER_INHIBITORS_=["subscript","superscript","overscore","underscore"],e.checkParent_=m,e.propagateNumber=h,(0,a.register)(new s.SemanticVisitor("nemeth","number",h,{number:!0})),e.relationIterator=function(e,o){const a=e.slice(0);let s,u=!0;return s=e.length>0?n.evalXPath("../../content/*",e[0]):[],function(){const e=s.shift(),n=a.shift(),d=a[0],p=o?[t.AuditoryDescription.create({text:o},{translate:!0})]:[];if(!e)return p;const m=n?c.nestedSubSuper(n,"",{sup:l.LOCALE.MESSAGES.MS.SUPER,sub:l.LOCALE.MESSAGES.MS.SUB}):"",h=n&&"EMPTY"!==r.tagName(n)||u&&e.parentNode.parentNode&&e.parentNode.parentNode.previousSibling?[t.AuditoryDescription.create({text:l.LOCALE.MESSAGES.regexp.SPACE+m},{})]:[],f=d&&"EMPTY"!==r.tagName(d)||!s.length&&e.parentNode.parentNode&&e.parentNode.parentNode.nextSibling?[t.AuditoryDescription.create({text:l.LOCALE.MESSAGES.regexp.SPACE},{})]:[],_=i.default.evaluateNode(e);return u=!1,p.concat(h,_,f)}},e.implicitIterator=function(e,o){const i=e.slice(0);let a;return a=e.length>0?n.evalXPath("../../content/*",e[0]):[],function(){const e=i.shift(),n=i[0],s=a.shift(),c=o?[t.AuditoryDescription.create({text:o},{translate:!0})]:[];if(!s)return c;const u=e&&"NUMBER"===r.tagName(e),d=n&&"NUMBER"===r.tagName(n);return c.concat(u&&d&&"space"===s.getAttribute("role")?[t.AuditoryDescription.create({text:l.LOCALE.MESSAGES.regexp.SPACE},{})]:[])}}}(nemeth_util),getDefaultExportFromCjs$1(nemeth_util),Object.defineProperty(other_rules,"__esModule",{value:!0}),other_rules.BrailleRules=other_rules.OtherRules=other_rules.PrefixRules=void 0;const dynamic_cstr_1$4=dynamic_cstr,StoreUtil=store_util,MathspeakUtil=mathspeak_util,NemethUtil=nemeth_util,NumbersUtil=numbers_util,SpeechRules$1=speech_rules;function PrefixRules(){SpeechRules$1.addStore("en.prefix.default","",{CSFordinalPosition:NumbersUtil.ordinalPosition})}function OtherRules(){SpeechRules$1.addStore("en.speech.chromevox","",{CTFnodeCounter:StoreUtil.nodeCounter,CTFcontentIterator:StoreUtil.contentIterator}),SpeechRules$1.addStore("en.speech.emacspeak","en.speech.chromevox",{CQFvulgarFractionSmall:MathspeakUtil.isSmallVulgarFraction,CSFvulgarFraction:NumbersUtil.vulgarFraction})}function BrailleRules(){SpeechRules$1.addStore("nemeth.braille.default",dynamic_cstr_1$4.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFopenFraction:NemethUtil.openingFraction,CSFcloseFraction:NemethUtil.closingFraction,CSFoverFraction:NemethUtil.overFraction,CSFoverBevFraction:NemethUtil.overBevelledFraction,CQFhyperFraction:NemethUtil.hyperFractionBoundary,CSFopenRadical:NemethUtil.openingRadical,CSFcloseRadical:NemethUtil.closingRadical,CSFindexRadical:NemethUtil.indexRadical,CSFsubscript:MathspeakUtil.subscriptVerbose,CSFsuperscript:MathspeakUtil.superscriptVerbose,CSFbaseline:MathspeakUtil.baselineVerbose,CGFtensorRules:e=>MathspeakUtil.generateTensorRules(e,!1),CTFrelationIterator:NemethUtil.relationIterator,CTFimplicitIterator:NemethUtil.implicitIterator})}other_rules.PrefixRules=PrefixRules,other_rules.OtherRules=OtherRules,other_rules.BrailleRules=BrailleRules,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.init=e.INIT_=void 0;const t=clearspeak_rules,r=mathspeak_rules,n=other_rules;e.INIT_=!1,e.init=function(){e.INIT_||((0,r.MathspeakRules)(),(0,t.ClearspeakRules)(),(0,n.PrefixRules)(),(0,n.OtherRules)(),(0,n.BrailleRules)(),e.INIT_=!0)}}(speech_rule_stores),getDefaultExportFromCjs$1(speech_rule_stores);var braille_store={},math_store={},base_rule_store={},speech_rule={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutputError=e.Precondition=e.Action=e.Component=e.ActionType=e.SpeechRule=void 0;const t=engine,r=grammar;var n;function o(e){switch(e){case"[n]":return n.NODE;case"[m]":return n.MULTI;case"[t]":return n.TEXT;case"[p]":return n.PERSONALITY;default:throw"Parse error: "+e}}e.SpeechRule=class{constructor(e,t,r,n){this.name=e,this.dynamicCstr=t,this.precondition=r,this.action=n,this.context=null}toString(){return this.name+" | "+this.dynamicCstr.toString()+" | "+this.precondition.toString()+" ==> "+this.action.toString()}},function(e){e.NODE="NODE",e.MULTI="MULTI",e.TEXT="TEXT",e.PERSONALITY="PERSONALITY"}(n=e.ActionType||(e.ActionType={}));class i{constructor({type:e,content:t,attributes:r,grammar:n}){this.type=e,this.content=t,this.attributes=r,this.grammar=n}static grammarFromString(e){return r.Grammar.parseInput(e)}static fromString(e){const t={type:o(e.substring(0,3))};let r=e.slice(3).trim();if(!r)throw new l("Missing content.");switch(t.type){case n.TEXT:if('"'===r[0]){const e=c(r,"\\(")[0].trim();if('"'!==e.slice(-1))throw new l("Invalid string syntax.");t.content=e,r=r.slice(e.length).trim(),-1===r.indexOf("(")&&(r="");break}case n.NODE:case n.MULTI:{const e=r.indexOf(" (");if(-1===e){t.content=r.trim(),r="";break}t.content=r.substring(0,e).trim(),r=r.slice(e).trim()}}if(r){const e=i.attributesFromString(r);e.grammar&&(t.grammar=e.grammar,delete e.grammar),Object.keys(e).length&&(t.attributes=e)}return new i(t)}static attributesFromString(e){if("("!==e[0]||")"!==e.slice(-1))throw new l("Invalid attribute expression: "+e);const t={},n=c(e.slice(1,-1),",");for(let e=0,o=n.length;e<o;e++){const o=n[e],a=o.indexOf(":");if(-1===a)t[o.trim()]="true";else{const e=o.substring(0,a).trim(),n=o.slice(a+1).trim();t[e]=e===r.ATTRIBUTE?i.grammarFromString(n):n}}return t}toString(){let e="";e+=function(e){switch(e){case n.NODE:return"[n]";case n.MULTI:return"[m]";case n.TEXT:return"[t]";case n.PERSONALITY:return"[p]";default:throw"Unknown type error: "+e}}(this.type),e+=this.content?" "+this.content:"";const t=this.attributesToString();return e+=t?" "+t:"",e}grammarToString(){return this.getGrammar().join(":")}getGrammar(){const e=[];for(const t in this.grammar)!0===this.grammar[t]?e.push(t):!1===this.grammar[t]?e.push("!"+t):e.push(t+"="+this.grammar[t]);return e}attributesToString(){const e=this.getAttributes(),t=this.grammarToString();return t&&e.push("grammar:"+t),e.length>0?"("+e.join(", ")+")":""}getAttributes(){const e=[];for(const t in this.attributes){const r=this.attributes[t];"true"===r?e.push(t):e.push(t+":"+r)}return e}}e.Component=i;class a{constructor(e){this.components=e}static fromString(e){const t=c(e,";").filter((function(e){return e.match(/\S/)})).map((function(e){return e.trim()})),r=[];for(let e=0,n=t.length;e<n;e++){const n=i.fromString(t[e]);n&&r.push(n)}return new a(r)}toString(){return this.components.map((function(e){return e.toString()})).join("; ")}}e.Action=a;class s{constructor(e,...t){this.query=e,this.constraints=t;const[r,n]=this.presetPriority();this.priority=r?n:this.calculatePriority()}static constraintValue(e,t){for(let r,n=0;r=t[n];n++)if(e.match(r))return++n;return 0}toString(){const e=this.constraints.join(", ");return`${this.query}, ${e} (${this.priority}, ${this.rank})`}calculatePriority(){const e=s.constraintValue(this.query,s.queryPriorities);if(!e)return 0;const t=this.query.match(/^self::.+\[(.+)\]/)[1];return 100*e+10*s.constraintValue(t,s.attributePriorities)}presetPriority(){if(!this.constraints.length)return[!1,0];const e=this.constraints[this.constraints.length-1].match(/^priority=(.*$)/);if(!e)return[!1,0];this.constraints.pop();const t=parseFloat(e[1]);return[!0,isNaN(t)?0:t]}}e.Precondition=s,s.queryPriorities=[/^self::\*\[.+\]$/,/^self::[\w-]+\[.+\]$/],s.attributePriorities=[/^@[\w-]+$/,/^@[\w-]+!=".+"$/,/^not\(contains\(@[\w-]+,\s*".+"\)\)$/,/^contains\(@[\w-]+,".+"\)$/,/^@[\w-]+=".+"$/];class l extends t.SREError{constructor(e){super(e),this.name="RuleError"}}function c(e,t){const r=[];let n="";for(;""!==e;){const o=e.search(t);if(-1===o){if((e.match(/"/g)||[]).length%2!=0)throw new l("Invalid string in expression: "+e);r.push(n+e),n="",e=""}else if((e.substring(0,o).match(/"/g)||[]).length%2==0)r.push(n+e.substring(0,o)),n="",e=e.substring(o+1);else{const t=e.substring(o).search('"');if(-1===t)throw new l("Invalid string in expression: "+e);n+=e.substring(0,o+t+1),e=e.substring(o+t+1)}}return n&&r.push(n),r}e.OutputError=l}(speech_rule),getDefaultExportFromCjs$1(speech_rule);var speech_rule_context={},speech_rule_functions={};Object.defineProperty(speech_rule_functions,"__esModule",{value:!0}),speech_rule_functions.CustomGenerators=speech_rule_functions.ContextFunctions=speech_rule_functions.CustomStrings=speech_rule_functions.CustomQueries=void 0;class FunctionsStore{constructor(e,t){this.prefix=e,this.store=t}add(e,t){this.checkCustomFunctionSyntax_(e)&&(this.store[e]=t)}addStore(e){const t=Object.keys(e.store);for(let r,n=0;r=t[n];n++)this.add(r,e.store[r])}lookup(e){return this.store[e]}checkCustomFunctionSyntax_(e){const t=new RegExp("^"+this.prefix);return!!e.match(t)||(console.error("FunctionError: Invalid function name. Expected prefix "+this.prefix),!1)}}class CustomQueries extends FunctionsStore{constructor(){super("CQF",{})}}speech_rule_functions.CustomQueries=CustomQueries;class CustomStrings extends FunctionsStore{constructor(){super("CSF",{})}}speech_rule_functions.CustomStrings=CustomStrings;class ContextFunctions extends FunctionsStore{constructor(){super("CTF",{})}}speech_rule_functions.ContextFunctions=ContextFunctions;class CustomGenerators extends FunctionsStore{constructor(){super("CGF",{})}}speech_rule_functions.CustomGenerators=CustomGenerators,Object.defineProperty(speech_rule_context,"__esModule",{value:!0}),speech_rule_context.SpeechRuleContext=void 0;const XpathUtil$7=xpath_util,srf=speech_rule_functions;class SpeechRuleContext{constructor(){this.customQueries=new srf.CustomQueries,this.customStrings=new srf.CustomStrings,this.contextFunctions=new srf.ContextFunctions,this.customGenerators=new srf.CustomGenerators}applyCustomQuery(e,t){const r=this.customQueries.lookup(t);return r?r(e):null}applySelector(e,t){return this.applyCustomQuery(e,t)||XpathUtil$7.evalXPath(t,e)}applyQuery(e,t){const r=this.applySelector(e,t);return r.length>0?r[0]:null}applyConstraint(e,t){return!!this.applyQuery(e,t)||XpathUtil$7.evaluateBoolean(t,e)}constructString(e,t){if(!t)return"";if('"'===t.charAt(0))return t.slice(1,-1);const r=this.customStrings.lookup(t);return r?r(e):XpathUtil$7.evaluateString(t,e)}parse(e){const t=Array.isArray(e)?e:Object.entries(e);for(let e,r=0;e=t[r];r++){switch(e[0].slice(0,3)){case"CQF":this.customQueries.add(e[0],e[1]);break;case"CSF":this.customStrings.add(e[0],e[1]);break;case"CTF":this.contextFunctions.add(e[0],e[1]);break;case"CGF":this.customGenerators.add(e[0],e[1]);break;default:console.error("FunctionError: Invalid function name "+e[0])}}}}speech_rule_context.SpeechRuleContext=SpeechRuleContext,Object.defineProperty(base_rule_store,"__esModule",{value:!0}),base_rule_store.Condition=base_rule_store.BaseRuleStore=void 0;const auditory_description_1$2=auditory_description,dynamic_cstr_1$3=dynamic_cstr,speech_rule_1$2=speech_rule,speech_rule_context_1=speech_rule_context;class BaseRuleStore{constructor(){this.context=new speech_rule_context_1.SpeechRuleContext,this.parseOrder=dynamic_cstr_1$3.DynamicCstr.DEFAULT_ORDER,this.parser=new dynamic_cstr_1$3.DynamicCstrParser(this.parseOrder),this.locale=dynamic_cstr_1$3.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$3.Axis.LOCALE],this.modality=dynamic_cstr_1$3.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$3.Axis.MODALITY],this.domain="",this.initialized=!1,this.inherits=null,this.kind="standard",this.customTranscriptions={},this.preconditions=new Map,this.speechRules_=[],this.rank=0,this.parseMethods={Rule:this.defineRule,Generator:this.generateRules,Action:this.defineAction,Precondition:this.definePrecondition,Ignore:this.ignoreRules}}static compareStaticConstraints_(e,t){if(e.length!==t.length)return!1;for(let r,n=0;r=e[n];n++)if(-1===t.indexOf(r))return!1;return!0}static comparePreconditions_(e,t){const r=e.precondition,n=t.precondition;return r.query===n.query&&BaseRuleStore.compareStaticConstraints_(r.constraints,n.constraints)}defineRule(e,t,r,n,...o){const i=this.parseAction(r),a=this.parsePrecondition(n,o),s=this.parseCstr(t);if(!(i&&a&&s))return console.error(`Rule Error: ${n}, (${t}): ${r}`),null;const l=new speech_rule_1$2.SpeechRule(e,s,a,i);return l.precondition.rank=this.rank++,this.addRule(l),l}addRule(e){e.context=this.context,this.speechRules_.unshift(e)}deleteRule(e){const t=this.speechRules_.indexOf(e);-1!==t&&this.speechRules_.splice(t,1)}findRule(e){for(let t,r=0;t=this.speechRules_[r];r++)if(e(t))return t;return null}findAllRules(e){return this.speechRules_.filter(e)}evaluateDefault(e){const t=e.textContent.slice(0);return t.match(/^\s+$/)?this.evaluateWhitespace(t):this.evaluateString(t)}evaluateWhitespace(e){return[]}evaluateCustom(e){const t=this.customTranscriptions[e];return void 0!==t?auditory_description_1$2.AuditoryDescription.create({text:t},{adjust:!0,translate:!1}):null}evaluateCharacter(e){return this.evaluateCustom(e)||auditory_description_1$2.AuditoryDescription.create({text:e},{adjust:!0,translate:!0})}removeDuplicates(e){for(let t,r=this.speechRules_.length-1;t=this.speechRules_[r];r--)t!==e&&e.dynamicCstr.equal(t.dynamicCstr)&&BaseRuleStore.comparePreconditions_(t,e)&&this.speechRules_.splice(r,1)}getSpeechRules(){return this.speechRules_}setSpeechRules(e){this.speechRules_=e}getPreconditions(){return this.preconditions}parseCstr(e){try{return this.parser.parse(this.locale+"."+this.modality+(this.domain?"."+this.domain:"")+"."+e)}catch(t){if("RuleError"===t.name)return console.error("Rule Error ",`Illegal Dynamic Constraint: ${e}.`,t.message),null;throw t}}parsePrecondition(e,t){try{const r=this.parsePrecondition_(e);e=r[0];let n=r.slice(1);for(const e of t)n=n.concat(this.parsePrecondition_(e));return new speech_rule_1$2.Precondition(e,...n)}catch(r){if("RuleError"===r.name)return console.error("Rule Error ",`Illegal preconditions: ${e}, ${t}.`,r.message),null;throw r}}parseAction(e){try{return speech_rule_1$2.Action.fromString(e)}catch(t){if("RuleError"===t.name)return console.error("Rule Error ",`Illegal action: ${e}.`,t.message),null;throw t}}parse(e){this.modality=e.modality||this.modality,this.locale=e.locale||this.locale,this.domain=e.domain||this.domain,this.context.parse(e.functions||[]),"actions"!==e.kind&&(this.kind=e.kind||this.kind,this.inheritRules()),this.parseRules(e.rules||[])}parseRules(e){for(let t,r=0;t=e[r];r++){const e=t[0],r=this.parseMethods[e];e&&r&&r.apply(this,t.slice(1))}}generateRules(e){const t=this.context.customGenerators.lookup(e);t&&t(this)}defineAction(e,t){let r;try{r=speech_rule_1$2.Action.fromString(t)}catch(e){if("RuleError"===e.name)return void console.error("Action Error ",t,e.message);throw e}const n=this.getFullPreconditions(e);if(!n)return void console.error(`Action Error: No precondition for action ${e}`);this.ignoreRules(e);const o=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));n.conditions.forEach((([t,n])=>{const i=this.parseCstr(t.toString().replace(o,""));this.addRule(new speech_rule_1$2.SpeechRule(e,i,n,r))}))}getFullPreconditions(e){const t=this.preconditions.get(e);return t||!this.inherits?t:this.inherits.getFullPreconditions(e)}definePrecondition(e,t,r,...n){const o=this.parsePrecondition(r,n),i=this.parseCstr(t);o&&i?(o.rank=this.rank++,this.preconditions.set(e,new Condition(i,o))):console.error(`Precondition Error: ${r}, (${t})`)}inheritRules(){if(!this.inherits||!this.inherits.getSpeechRules().length)return;const e=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));this.inherits.getSpeechRules().forEach((t=>{const r=this.parseCstr(t.dynamicCstr.toString().replace(e,""));this.addRule(new speech_rule_1$2.SpeechRule(t.name,r,t.precondition,t.action))}))}ignoreRules(e,...t){let r=this.findAllRules((t=>t.name===e));if(!t.length)return void r.forEach(this.deleteRule.bind(this));let n=[];for(const e of t){const t=this.parseCstr(e);for(const e of r)t.equal(e.dynamicCstr)?this.deleteRule(e):n.push(e);r=n,n=[]}}parsePrecondition_(e){const t=this.context.customGenerators.lookup(e);return t?t():[e]}}base_rule_store.BaseRuleStore=BaseRuleStore;class Condition{constructor(e,t){this.base=e,this._conditions=[],this.constraints=[],this.allCstr={},this.constraints.push(e),this.addCondition(e,t)}get conditions(){return this._conditions}addConstraint(e){if(this.constraints.filter((t=>t.equal(e))).length)return;this.constraints.push(e);const t=[];for(const[r,n]of this.conditions)this.base.equal(r)&&t.push([e,n]);this._conditions=this._conditions.concat(t)}addBaseCondition(e){this.addCondition(this.base,e)}addFullCondition(e){this.constraints.forEach((t=>this.addCondition(t,e)))}addCondition(e,t){const r=e.toString()+" "+t.toString();this.allCstr.condStr||(this.allCstr[r]=!0,this._conditions.push([e,t]))}}base_rule_store.Condition=Condition,Object.defineProperty(math_store,"__esModule",{value:!0}),math_store.MathStore=void 0;const BaseUtil$1=base_util,locale_1$2=locale$d,semantic_annotations_1$2=semantic_annotations,base_rule_store_1=base_rule_store,speech_rule_1$1=speech_rule;class MathStore extends base_rule_store_1.BaseRuleStore{constructor(){super(),this.annotators=[],this.parseMethods.Alias=this.defineAlias,this.parseMethods.SpecializedRule=this.defineSpecializedRule,this.parseMethods.Specialized=this.defineSpecialized}initialize(){this.initialized||(this.annotations(),this.initialized=!0)}annotations(){for(let e,t=0;e=this.annotators[t];t++)(0,semantic_annotations_1$2.activate)(this.domain,e)}defineAlias(e,t,...r){const n=this.parsePrecondition(t,r);if(!n)return void console.error(`Precondition Error: ${t} ${r}`);const o=this.preconditions.get(e);o?o.addFullCondition(n):console.error(`Alias Error: No precondition by the name of ${e}`)}defineRulesAlias(e,t,...r){const n=this.findAllRules((function(t){return t.name===e}));if(0===n.length)throw new speech_rule_1$1.OutputError("Rule with name "+e+" does not exist.");const o=[];n.forEach((e=>{(e=>{const t=e.dynamicCstr.toString(),r=e.action.toString();for(let e,n=0;e=o[n];n++)if(e.action===r&&e.cstr===t)return!1;return o.push({cstr:t,action:r}),!0})(e)&&this.addAlias_(e,t,r)}))}defineSpecializedRule(e,t,r,n){const o=this.parseCstr(t),i=this.findRule((t=>t.name===e&&o.equal(t.dynamicCstr))),a=this.parseCstr(r);if(!i&&n)throw new speech_rule_1$1.OutputError("Rule named "+e+" with style "+t+" does not exist.");const s=n?speech_rule_1$1.Action.fromString(n):i.action,l=new speech_rule_1$1.SpeechRule(i.name,a,i.precondition,s);this.addRule(l)}defineSpecialized(e,t,r){const n=this.parseCstr(r);if(!n)return void console.error(`Dynamic Constraint Error: ${r}`);const o=this.preconditions.get(e);o?o.addConstraint(n):console.error(`Alias Error: No precondition by the name of ${e}`)}evaluateString(e){const t=[];if(e.match(/^\s+$/))return t;let r=this.matchNumber_(e);if(r&&r.length===e.length)return t.push(this.evaluateCharacter(r.number)),t;const n=BaseUtil$1.removeEmpty(e.replace(/\s/g," ").split(" "));for(let e,o=0;e=n[o];o++)if(1===e.length)t.push(this.evaluateCharacter(e));else if(e.match(new RegExp("^["+locale_1$2.LOCALE.MESSAGES.regexp.TEXT+"]+$")))t.push(this.evaluateCharacter(e));else{let n=e;for(;n;){r=this.matchNumber_(n);const e=n.match(new RegExp("^["+locale_1$2.LOCALE.MESSAGES.regexp.TEXT+"]+"));if(r)t.push(this.evaluateCharacter(r.number)),n=n.substring(r.length);else if(e)t.push(this.evaluateCharacter(e[0])),n=n.substring(e[0].length);else{const e=Array.from(n),r=e[0];t.push(this.evaluateCharacter(r)),n=e.slice(1).join("")}}}return t}parse(e){super.parse(e),this.annotators=e.annotators||[]}addAlias_(e,t,r){const n=this.parsePrecondition(t,r),o=new speech_rule_1$1.SpeechRule(e.name,e.dynamicCstr,n,e.action);o.name=e.name,this.addRule(o)}matchNumber_(e){const t=e.match(new RegExp("^"+locale_1$2.LOCALE.MESSAGES.regexp.NUMBER)),r=e.match(new RegExp("^"+MathStore.regexp.NUMBER));if(!t&&!r)return null;const n=r&&r[0]===e;if(t&&t[0]===e||!n)return t?{number:t[0],length:t[0].length}:null;return{number:r[0].replace(new RegExp(MathStore.regexp.DIGIT_GROUP,"g"),"X").replace(new RegExp(MathStore.regexp.DECIMAL_MARK,"g"),locale_1$2.LOCALE.MESSAGES.regexp.DECIMAL_MARK).replace(/X/g,locale_1$2.LOCALE.MESSAGES.regexp.DIGIT_GROUP.replace(/\\/g,"")),length:r[0].length}}}math_store.MathStore=MathStore,MathStore.regexp={NUMBER:"((\\d{1,3})(?=(,| ))((,| )\\d{3})*(\\.\\d+)?)|^\\d*\\.\\d+|^\\d+",DECIMAL_MARK:"\\.",DIGIT_GROUP:","},Object.defineProperty(braille_store,"__esModule",{value:!0}),braille_store.BrailleStore=void 0;const semantic_annotations_1$1=semantic_annotations,math_store_1$1=math_store;class BrailleStore extends math_store_1$1.MathStore{constructor(){super(...arguments),this.modality="braille",this.customTranscriptions={"⋊":"⠈⠡⠳"}}evaluateString(e){const t=[],r=Array.from(e);for(let e=0;e<r.length;e++)t.push(this.evaluateCharacter(r[e]));return t}annotations(){for(let e,t=0;e=this.annotators[t];t++)(0,semantic_annotations_1$1.activate)(this.locale,e)}}braille_store.BrailleStore=BrailleStore;var trie={},trie_node={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TrieNodeKind=void 0,(t=e.TrieNodeKind||(e.TrieNodeKind={})).ROOT="root",t.DYNAMIC="dynamic",t.QUERY="query",t.BOOLEAN="boolean",t.STATIC="static"}(trie_node),getDefaultExportFromCjs$1(trie_node);var trie_node_factory={},abstract_trie_node={};Object.defineProperty(abstract_trie_node,"__esModule",{value:!0}),abstract_trie_node.StaticTrieNode=abstract_trie_node.AbstractTrieNode=void 0;const debugger_1$5=_debugger,trie_node_1$2=trie_node;class AbstractTrieNode{constructor(e,t){this.constraint=e,this.test=t,this.children_={},this.kind=trie_node_1$2.TrieNodeKind.ROOT}getConstraint(){return this.constraint}getKind(){return this.kind}applyTest(e){return this.test(e)}addChild(e){const t=e.getConstraint(),r=this.children_[t];return this.children_[t]=e,r}getChild(e){return this.children_[e]}getChildren(){const e=[];for(const t in this.children_)e.push(this.children_[t]);return e}findChildren(e){const t=[];for(const r in this.children_){const n=this.children_[r];n.applyTest(e)&&t.push(n)}return t}removeChild(e){delete this.children_[e]}toString(){return this.constraint}}abstract_trie_node.AbstractTrieNode=AbstractTrieNode;class StaticTrieNode extends AbstractTrieNode{constructor(e,t){super(e,t),this.rule_=null,this.kind=trie_node_1$2.TrieNodeKind.STATIC}getRule(){return this.rule_}setRule(e){this.rule_&&debugger_1$5.Debugger.getInstance().output("Replacing rule "+this.rule_+" with "+e),this.rule_=e}toString(){return this.getRule()?this.constraint+"\n==> "+this.getRule().action:this.constraint}}abstract_trie_node.StaticTrieNode=StaticTrieNode,Object.defineProperty(trie_node_factory,"__esModule",{value:!0}),trie_node_factory.BooleanTrieNode=trie_node_factory.QueryTrieNode=trie_node_factory.constraintTest_=trie_node_factory.DynamicTrieNode=trie_node_factory.RootTrieNode=trie_node_factory.getNode=void 0;const DomUtil$l=dom_util,XpathUtil$6=xpath_util,grammar_1$2=grammar,MathCompoundStore$2=math_compound_store,abstract_trie_node_1=abstract_trie_node,abstract_trie_node_2=abstract_trie_node,trie_node_1$1=trie_node;function getNode(e,t,r){switch(e){case trie_node_1$1.TrieNodeKind.ROOT:return new RootTrieNode;case trie_node_1$1.TrieNodeKind.DYNAMIC:return new DynamicTrieNode(t);case trie_node_1$1.TrieNodeKind.QUERY:return new QueryTrieNode(t,r);case trie_node_1$1.TrieNodeKind.BOOLEAN:return new BooleanTrieNode(t,r);default:return null}}trie_node_factory.getNode=getNode;class RootTrieNode extends abstract_trie_node_1.AbstractTrieNode{constructor(){super("",(()=>!0)),this.kind=trie_node_1$1.TrieNodeKind.ROOT}}trie_node_factory.RootTrieNode=RootTrieNode;class DynamicTrieNode extends abstract_trie_node_1.AbstractTrieNode{constructor(e){super(e,(t=>t===e)),this.kind=trie_node_1$1.TrieNodeKind.DYNAMIC}}trie_node_factory.DynamicTrieNode=DynamicTrieNode;const comparator={"=":(e,t)=>e===t,"!=":(e,t)=>e!==t,"<":(e,t)=>e<t,">":(e,t)=>e>t,"<=":(e,t)=>e<=t,">=":(e,t)=>e>=t};function constraintTest_(e){if(e.match(/^self::\*$/))return e=>!0;if(e.match(/^self::\w+$/)){const t=e.slice(6).toUpperCase();return e=>e.tagName&&DomUtil$l.tagName(e)===t}if(e.match(/^self::\w+:\w+$/)){const t=e.split(":"),r=XpathUtil$6.resolveNameSpace(t[2]);if(!r)return null;const n=t[3].toUpperCase();return e=>e.localName&&e.localName.toUpperCase()===n&&e.namespaceURI===r}if(e.match(/^@\w+$/)){const t=e.slice(1);return e=>e.hasAttribute&&e.hasAttribute(t)}if(e.match(/^@\w+="[\w\d ]+"$/)){const t=e.split("="),r=t[0].slice(1),n=t[1].slice(1,-1);return e=>e.hasAttribute&&e.hasAttribute(r)&&e.getAttribute(r)===n}if(e.match(/^@\w+!="[\w\d ]+"$/)){const t=e.split("!="),r=t[0].slice(1),n=t[1].slice(1,-1);return e=>!e.hasAttribute||!e.hasAttribute(r)||e.getAttribute(r)!==n}if(e.match(/^contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)$/)){const t=e.split('"')[1];return e=>!!grammar_1$2.Grammar.getInstance().getParameter(t)}if(e.match(/^not\(\s*contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)\s*\)$/)){const t=e.split('"')[1];return e=>!grammar_1$2.Grammar.getInstance().getParameter(t)}if(e.match(/^name\(\.\.\/\.\.\)="\w+"$/)){const t=e.split('"')[1].toUpperCase();return e=>{var r,n;return(null===(n=null===(r=e.parentNode)||void 0===r?void 0:r.parentNode)||void 0===n?void 0:n.tagName)&&DomUtil$l.tagName(e.parentNode.parentNode)===t}}if(e.match(/^count\(preceding-sibling::\*\)=\d+$/)){const t=e.split("="),r=parseInt(t[1],10);return e=>{var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.childNodes[r])===e}}if(e.match(/^.+\[@category!?=".+"\]$/)){let[,t,r,n]=e.match(/^(.+)\[@category(!?=)"(.+)"\]$/);const o=n.match(/^unit:(.+)$/);let i="";return o&&(n=o[1],i=":unit"),e=>{const o=XpathUtil$6.evalXPath(t,e)[0];if(o){const e=MathCompoundStore$2.lookupCategory(o.textContent+i);return"="===r?e===n:e!==n}return!1}}if(e.match(/^string-length\(.+\)\W+\d+/)){const[,t,r,n]=e.match(/^string-length\((.+)\)(\W+)(\d+)/),o=comparator[r]||comparator["="],i=parseInt(n,10);return e=>{const r=XpathUtil$6.evalXPath(t,e)[0];return!!r&&o(Array.from(r.textContent).length,i)}}return null}trie_node_factory.constraintTest_=constraintTest_;class QueryTrieNode extends abstract_trie_node_2.StaticTrieNode{constructor(e,t){super(e,constraintTest_(e)),this.context=t,this.kind=trie_node_1$1.TrieNodeKind.QUERY}applyTest(e){return this.test?this.test(e):this.context.applyQuery(e,this.constraint)===e}}trie_node_factory.QueryTrieNode=QueryTrieNode;class BooleanTrieNode extends abstract_trie_node_2.StaticTrieNode{constructor(e,t){super(e,constraintTest_(e)),this.context=t,this.kind=trie_node_1$1.TrieNodeKind.BOOLEAN}applyTest(e){return this.test?this.test(e):this.context.applyConstraint(e,this.constraint)}}trie_node_factory.BooleanTrieNode=BooleanTrieNode,Object.defineProperty(trie,"__esModule",{value:!0}),trie.Trie=void 0;const trie_node_1=trie_node,trie_node_factory_1=trie_node_factory;class Trie{constructor(){this.root=(0,trie_node_factory_1.getNode)(trie_node_1.TrieNodeKind.ROOT,"",null)}static collectRules_(e){const t=[];let r=[e];for(;r.length;){const e=r.shift();if(e.getKind()===trie_node_1.TrieNodeKind.QUERY||e.getKind()===trie_node_1.TrieNodeKind.BOOLEAN){const r=e.getRule();r&&t.unshift(r)}r=r.concat(e.getChildren())}return t}static printWithDepth_(e,t,r){r+=new Array(t+2).join(t.toString())+": "+e.toString()+"\n";const n=e.getChildren();for(let e,o=0;e=n[o];o++)r=Trie.printWithDepth_(e,t+1,r);return r}static order_(e){const t=e.getChildren();if(!t.length)return 0;const r=Math.max.apply(null,t.map(Trie.order_));return Math.max(t.length,r)}addRule(e){let t=this.root;const r=e.context,n=e.dynamicCstr.getValues();for(let e=0,o=n.length;e<o;e++)t=this.addNode_(t,n[e],trie_node_1.TrieNodeKind.DYNAMIC,r);t=this.addNode_(t,e.precondition.query,trie_node_1.TrieNodeKind.QUERY,r);const o=e.precondition.constraints;for(let e=0,n=o.length;e<n;e++)t=this.addNode_(t,o[e],trie_node_1.TrieNodeKind.BOOLEAN,r);t.setRule(e)}lookupRules(e,t){let r=[this.root];const n=[];for(;t.length;){const e=t.shift(),n=[];for(;r.length;){r.shift().getChildren().forEach((t=>{t.getKind()===trie_node_1.TrieNodeKind.DYNAMIC&&-1===e.indexOf(t.getConstraint())||n.push(t)}))}r=n.slice()}for(;r.length;){const t=r.shift();if(t.getRule){const e=t.getRule();e&&n.push(e)}const o=t.findChildren(e);r=r.concat(o)}return n}hasSubtrie(e){let t=this.root;for(let r=0,n=e.length;r<n;r++){const n=e[r];if(t=t.getChild(n),!t)return!1}return!0}toString(){return Trie.printWithDepth_(this.root,0,"")}collectRules(){return Trie.collectRules_(this.root)}order(){return Trie.order_(this.root)}enumerate(e){return this.enumerate_(this.root,e)}byConstraint(e){let t=this.root;for(;e.length&&t;){const r=e.shift();t=t.getChild(r)}return t||null}enumerate_(e,t){t=t||{};const r=e.getChildren();for(let e,n=0;e=r[n];n++)e.kind===trie_node_1.TrieNodeKind.DYNAMIC&&(t[e.getConstraint()]=this.enumerate_(e,t[e.getConstraint()]));return t}addNode_(e,t,r,n){let o=e.getChild(t);return o||(o=(0,trie_node_factory_1.getNode)(r,t,n),e.addChild(o)),o}}trie.Trie=Trie,Object.defineProperty(speech_rule_engine,"__esModule",{value:!0}),speech_rule_engine.storeFactory=speech_rule_engine.SpeechRuleEngine=void 0;const auditory_description_1$1=auditory_description,debugger_1$4=_debugger,DomUtil$k=dom_util,engine_1$a=engine,EngineConst$c=engine_const,xpath_util_1=xpath_util,SpeechRules=speech_rules,SpeechRuleStores=speech_rule_stores,braille_store_1=braille_store,dynamic_cstr_1$2=dynamic_cstr,grammar_1$1=grammar,math_store_1=math_store,speech_rule_1=speech_rule,trie_1=trie;class SpeechRuleEngine{constructor(){this.trie=null,this.evaluators_={},this.trie=new trie_1.Trie}static getInstance(){return SpeechRuleEngine.instance=SpeechRuleEngine.instance||new SpeechRuleEngine,SpeechRuleEngine.instance}static debugSpeechRule(e,t){const r=e.precondition,n=e.context.applyQuery(t,r.query);debugger_1$4.Debugger.getInstance().output(r.query,n?n.toString():n),r.constraints.forEach((r=>debugger_1$4.Debugger.getInstance().output(r,e.context.applyConstraint(t,r))))}static debugNamedSpeechRule(e,t){const r=SpeechRuleEngine.getInstance().trie.collectRules().filter((t=>t.name==e));for(let n,o=0;n=r[o];o++)debugger_1$4.Debugger.getInstance().output("Rule",e,"DynamicCstr:",n.dynamicCstr.toString(),"number",o),SpeechRuleEngine.debugSpeechRule(n,t)}evaluateNode(e){(0,xpath_util_1.updateEvaluator)(e);const t=(new Date).getTime();let r=[];try{r=this.evaluateNode_(e)}catch(e){console.error("Something went wrong computing speech."),debugger_1$4.Debugger.getInstance().output(e)}const n=(new Date).getTime();return debugger_1$4.Debugger.getInstance().output("Time:",n-t),r}toString(){return this.trie.collectRules().map((e=>e.toString())).join("\n")}runInSetting(e,t){const r=engine_1$a.default.getInstance(),n={};for(const t in e)n[t]=r[t],r[t]=e[t];r.setDynamicCstr();const o=t();for(const e in n)r[e]=n[e];return r.setDynamicCstr(),o}addStore(e){const t=storeFactory(e);"abstract"!==t.kind&&t.getSpeechRules().forEach((e=>this.trie.addRule(e))),this.addEvaluator(t)}processGrammar(e,t,r){const n={};for(const o in r){const i=r[o];n[o]="string"==typeof i?e.constructString(t,i):i}grammar_1$1.Grammar.getInstance().pushState(n)}addEvaluator(e){const t=e.evaluateDefault.bind(e),r=this.evaluators_[e.locale];if(r)return void(r[e.modality]=t);const n={};n[e.modality]=t,this.evaluators_[e.locale]=n}getEvaluator(e,t){const r=this.evaluators_[e]||this.evaluators_[dynamic_cstr_1$2.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$2.Axis.LOCALE]];return r[t]||r[dynamic_cstr_1$2.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$2.Axis.MODALITY]]}enumerate(e){return this.trie.enumerate(e)}evaluateNode_(e){return e?(this.updateConstraint_(),this.evaluateTree_(e)):[]}evaluateTree_(e){const t=engine_1$a.default.getInstance();let r;debugger_1$4.Debugger.getInstance().output(t.mode!==EngineConst$c.Mode.HTTP?e.toString():e),grammar_1$1.Grammar.getInstance().setAttribute(e);const n=this.lookupRule(e,t.dynamicCstr);if(!n)return t.strict?[]:(r=this.getEvaluator(t.locale,t.modality)(e),e.attributes&&this.addPersonality_(r,{},!1,e),r);debugger_1$4.Debugger.getInstance().generateOutput((()=>["Apply Rule:",n.name,n.dynamicCstr.toString(),(t.mode,EngineConst$c.Mode.HTTP,e).toString()]));const o=n.context,i=n.action.components;r=[];for(let t,n=0;t=i[n];n++){let n=[];const i=t.content||"",a=t.attributes||{};let s=!1;t.grammar&&this.processGrammar(o,e,t.grammar);let l=null;if(a.engine){l=engine_1$a.default.getInstance().dynamicCstr.getComponents();const e=grammar_1$1.Grammar.parseInput(a.engine);engine_1$a.default.getInstance().setDynamicCstr(e)}switch(t.type){case speech_rule_1.ActionType.NODE:{const t=o.applyQuery(e,i);t&&(n=this.evaluateTree_(t))}break;case speech_rule_1.ActionType.MULTI:{s=!0;const t=o.applySelector(e,i);t.length>0&&(n=this.evaluateNodeList_(o,t,a.sepFunc,o.constructString(e,a.separator),a.ctxtFunc,o.constructString(e,a.context)))}break;case speech_rule_1.ActionType.TEXT:{const t=a.span,r={};if(t){const n=(0,xpath_util_1.evalXPath)(t,e);n.length&&(r.extid=n[0].getAttribute("extid"))}const s=o.constructString(e,i);(s||""===s)&&(n=Array.isArray(s)?s.map((function(e){return auditory_description_1$1.AuditoryDescription.create({text:e.speech,attributes:e.attributes},{adjust:!0})})):[auditory_description_1$1.AuditoryDescription.create({text:s,attributes:r},{adjust:!0})])}break;case speech_rule_1.ActionType.PERSONALITY:default:n=[auditory_description_1$1.AuditoryDescription.create({text:i})]}n[0]&&!s&&(a.context&&(n[0].context=o.constructString(e,a.context)+(n[0].context||"")),a.annotation&&(n[0].annotation=a.annotation)),this.addLayout(n,a,s),t.grammar&&grammar_1$1.Grammar.getInstance().popState(),r=r.concat(this.addPersonality_(n,a,s,e)),l&&engine_1$a.default.getInstance().setDynamicCstr(l)}return r}evaluateNodeList_(e,t,r,n,o,i){if(!t.length)return[];const a=n||"",s=i||"",l=e.contextFunctions.lookup(o),c=l?l(t,s):function(){return s},u=e.contextFunctions.lookup(r),d=u?u(t,a):function(){return[auditory_description_1$1.AuditoryDescription.create({text:a},{translate:!0})]};let p=[];for(let e,r=0;e=t[r];r++){const n=this.evaluateTree_(e);if(n.length>0&&(n[0].context=c()+(n[0].context||""),p=p.concat(n),r<t.length-1)){const e=d();p=p.concat(e)}}return p}addLayout(e,t,r){const n=t.layout;n&&(n.match(/^begin/)?e.unshift(new auditory_description_1$1.AuditoryDescription({text:"",layout:n})):n.match(/^end/)?e.push(new auditory_description_1$1.AuditoryDescription({text:"",layout:n})):(e.unshift(new auditory_description_1$1.AuditoryDescription({text:"",layout:`begin${n}`})),e.push(new auditory_description_1$1.AuditoryDescription({text:"",layout:`end${n}`}))))}addPersonality_(e,t,r,n){const o={};let i=null;for(const e of EngineConst$c.personalityPropList){const r=t[e];if(void 0===r)continue;const n=parseFloat(r),a=isNaN(n)?'"'===r.charAt(0)?r.slice(1,-1):r:n;e===EngineConst$c.personalityProps.PAUSE?i=a:o[e]=a}for(let t,r=0;t=e[r];r++)this.addRelativePersonality_(t,o),this.addExternalAttributes_(t,n);if(r&&e.length&&delete e[e.length-1].personality[EngineConst$c.personalityProps.JOIN],i&&e.length){const t=e[e.length-1];t.text||Object.keys(t.personality).length?e.push(auditory_description_1$1.AuditoryDescription.create({text:"",personality:{pause:i}})):t.personality[EngineConst$c.personalityProps.PAUSE]=i}return e}addExternalAttributes_(e,t){if(t.hasAttributes()){const r=t.attributes;for(let t=r.length-1;t>=0;t--){const n=r[t].name;!e.attributes[n]&&n.match(/^ext/)&&(e.attributes[n]=r[t].value)}}}addRelativePersonality_(e,t){if(!e.personality)return e.personality=t,e;const r=e.personality;for(const e in t)r[e]&&"number"==typeof r[e]&&"number"==typeof t[e]?r[e]=r[e]+t[e]:r[e]||(r[e]=t[e]);return e}updateConstraint_(){const e=engine_1$a.default.getInstance().dynamicCstr,t=engine_1$a.default.getInstance().strict,r=this.trie,n={};let o=e.getValue(dynamic_cstr_1$2.Axis.LOCALE),i=e.getValue(dynamic_cstr_1$2.Axis.MODALITY),a=e.getValue(dynamic_cstr_1$2.Axis.DOMAIN);r.hasSubtrie([o,i,a])||(a=dynamic_cstr_1$2.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$2.Axis.DOMAIN],r.hasSubtrie([o,i,a])||(i=dynamic_cstr_1$2.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$2.Axis.MODALITY],r.hasSubtrie([o,i,a])||(o=dynamic_cstr_1$2.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$2.Axis.LOCALE]))),n[dynamic_cstr_1$2.Axis.LOCALE]=[o],n[dynamic_cstr_1$2.Axis.MODALITY]=["summary"!==i?i:dynamic_cstr_1$2.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$2.Axis.MODALITY]],n[dynamic_cstr_1$2.Axis.DOMAIN]=["speech"!==i?dynamic_cstr_1$2.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_1$2.Axis.DOMAIN]:a];const s=e.getOrder();for(let r,o=0;r=s[o];o++)if(!n[r]){const o=e.getValue(r),i=this.makeSet_(o,e.preference),a=dynamic_cstr_1$2.DynamicCstr.DEFAULT_VALUES[r];t||o===a||i.push(a),n[r]=i}e.updateProperties(n)}makeSet_(e,t){return t&&Object.keys(t).length?e.split(":"):[e]}lookupRule(e,t){if(!e||e.nodeType!==DomUtil$k.NodeType.ELEMENT_NODE&&e.nodeType!==DomUtil$k.NodeType.TEXT_NODE)return null;const r=this.lookupRules(e,t);return r.length>0?this.pickMostConstraint_(t,r):null}lookupRules(e,t){return this.trie.lookupRules(e,t.allProperties())}pickMostConstraint_(e,t){const r=engine_1$a.default.getInstance().comparator;return t.sort((function(e,t){return r.compare(e.dynamicCstr,t.dynamicCstr)||t.precondition.priority-e.precondition.priority||t.precondition.constraints.length-e.precondition.constraints.length||t.precondition.rank-e.precondition.rank})),debugger_1$4.Debugger.getInstance().generateOutput((()=>t.map((e=>e.name+"("+e.dynamicCstr.toString()+")"))).bind(this)),t[0]}}speech_rule_engine.SpeechRuleEngine=SpeechRuleEngine;const stores=new Map;function getStore(e){return"braille"===e?new braille_store_1.BrailleStore:new math_store_1.MathStore}function storeFactory(e){const t=`${e.locale}.${e.modality}.${e.domain}`;if("actions"===e.kind){const r=stores.get(t);return r.parse(e),r}SpeechRuleStores.init(),e&&!e.functions&&(e.functions=SpeechRules.getStore(e.locale,e.modality,e.domain));const r=getStore(e.modality);return stores.set(t,r),e.inherits&&(r.inherits=stores.get(`${e.inherits}.${e.modality}.${e.domain}`)),r.parse(e),r.initialize(),r}speech_rule_engine.storeFactory=storeFactory,engine_1$a.default.nodeEvaluator=SpeechRuleEngine.getInstance().evaluateNode.bind(SpeechRuleEngine.getInstance());var alphabet_generator={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.INTERVALS=e.makeLetter=e.numberRules=e.alphabetRules=e.getFont=e.makeInterval=e.generate=e.makeDomains_=e.Domains_=e.Base=e.Embellish=e.Font=void 0;const t=engine,r=l10n,n=locale$d,o=locale_util,i=math_compound_store;var a,s,l;function c(){const t=n.LOCALE.ALPHABETS,r=(e,t)=>{const r={};return Object.keys(e).forEach((e=>r[e]=!0)),Object.keys(t).forEach((e=>r[e]=!0)),Object.keys(r)};e.Domains_.small=r(t.smallPrefix,t.letterTrans),e.Domains_.capital=r(t.capPrefix,t.letterTrans),e.Domains_.digit=r(t.digitPrefix,t.digitTrans)}function u(e){const t=e.toString(16).toUpperCase();return t.length>3?t:("000"+t).slice(-4)}function d([e,t],r){const n=parseInt(e,16),o=parseInt(t,16),i=[];for(let e=n;e<=o;e++){let t=u(e);!1!==r[t]&&(t=r[t]||t,i.push(t))}return i}function p(e){const t="normal"===e||"fullwidth"===e?"":n.LOCALE.MESSAGES.font[e]||n.LOCALE.MESSAGES.embellish[e]||"";return(0,o.localeFontCombiner)(t)}function m(t,r,o,i,a,s){const l=p(i);for(let i,c,u,d=0;i=t[d],c=r[d],u=o[d];d++){const t=s?n.LOCALE.ALPHABETS.capPrefix:n.LOCALE.ALPHABETS.smallPrefix,r=s?e.Domains_.capital:e.Domains_.small;f(l.combiner,i,c,u,l.font,t,a,n.LOCALE.ALPHABETS.letterTrans,r)}}function h(t,r,o,i,a){const s=p(o);for(let o,l,c=0;o=t[c],l=r[c];c++){const t=n.LOCALE.ALPHABETS.digitPrefix,r=c+a;f(s.combiner,o,l,r,s.font,t,i,n.LOCALE.ALPHABETS.digitTrans,e.Domains_.digit)}}function f(e,t,r,n,o,a,s,l,c){for(let u,d=0;u=c[d];d++){const c=u in l?l[u]:l.default,d=u in a?a[u]:a.default;i.defineRule(t.toString(),u,"default",s,r,e(c(n),o,d))}}!function(e){e.BOLD="bold",e.BOLDFRAKTUR="bold-fraktur",e.BOLDITALIC="bold-italic",e.BOLDSCRIPT="bold-script",e.DOUBLESTRUCK="double-struck",e.FULLWIDTH="fullwidth",e.FRAKTUR="fraktur",e.ITALIC="italic",e.MONOSPACE="monospace",e.NORMAL="normal",e.SCRIPT="script",e.SANSSERIF="sans-serif",e.SANSSERIFITALIC="sans-serif-italic",e.SANSSERIFBOLD="sans-serif-bold",e.SANSSERIFBOLDITALIC="sans-serif-bold-italic"}(a=e.Font||(e.Font={})),function(e){e.SUPER="super",e.SUB="sub",e.CIRCLED="circled",e.PARENTHESIZED="parenthesized",e.PERIOD="period",e.NEGATIVECIRCLED="negative-circled",e.DOUBLECIRCLED="double-circled",e.CIRCLEDSANSSERIF="circled-sans-serif",e.NEGATIVECIRCLEDSANSSERIF="negative-circled-sans-serif",e.COMMA="comma",e.SQUARED="squared",e.NEGATIVESQUARED="negative-squared"}(s=e.Embellish||(e.Embellish={})),function(e){e.LATINCAP="latinCap",e.LATINSMALL="latinSmall",e.GREEKCAP="greekCap",e.GREEKSMALL="greekSmall",e.DIGIT="digit"}(l=e.Base||(e.Base={})),e.Domains_={small:["default"],capital:["default"],digit:["default"]},e.makeDomains_=c,e.generate=function(o){const a=t.default.getInstance().locale;t.default.getInstance().locale=o,r.setLocale(),i.addSymbolRules({locale:o}),c();const s=e.INTERVALS;for(let e,t=0;e=s[t];t++){const t=d(e.interval,e.subst),r=t.map((function(e){return String.fromCodePoint(parseInt(e,16))}));if("offset"in e)h(t,r,e.font,e.category,e.offset||0);else{m(t,r,n.LOCALE.ALPHABETS[e.base],e.font,e.category,!!e.capital)}}t.default.getInstance().locale=a,r.setLocale()},e.makeInterval=d,e.getFont=p,e.alphabetRules=m,e.numberRules=h,e.makeLetter=f,e.INTERVALS=[{interval:["1D400","1D419"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.BOLD},{interval:["1D41A","1D433"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.BOLD},{interval:["1D56C","1D585"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.BOLDFRAKTUR},{interval:["1D586","1D59F"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.BOLDFRAKTUR},{interval:["1D468","1D481"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.BOLDITALIC},{interval:["1D482","1D49B"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.BOLDITALIC},{interval:["1D4D0","1D4E9"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.BOLDSCRIPT},{interval:["1D4EA","1D503"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.BOLDSCRIPT},{interval:["1D538","1D551"],base:l.LATINCAP,subst:{"1D53A":"2102","1D53F":"210D","1D545":"2115","1D547":"2119","1D548":"211A","1D549":"211D","1D551":"2124"},capital:!0,category:"Lu",font:a.DOUBLESTRUCK},{interval:["1D552","1D56B"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.DOUBLESTRUCK},{interval:["1D504","1D51D"],base:l.LATINCAP,subst:{"1D506":"212D","1D50B":"210C","1D50C":"2111","1D515":"211C","1D51D":"2128"},capital:!0,category:"Lu",font:a.FRAKTUR},{interval:["1D51E","1D537"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.FRAKTUR},{interval:["FF21","FF3A"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.FULLWIDTH},{interval:["FF41","FF5A"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.FULLWIDTH},{interval:["1D434","1D44D"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.ITALIC},{interval:["1D44E","1D467"],base:l.LATINSMALL,subst:{"1D455":"210E"},capital:!1,category:"Ll",font:a.ITALIC},{interval:["1D670","1D689"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.MONOSPACE},{interval:["1D68A","1D6A3"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.MONOSPACE},{interval:["0041","005A"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.NORMAL},{interval:["0061","007A"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.NORMAL},{interval:["1D49C","1D4B5"],base:l.LATINCAP,subst:{"1D49D":"212C","1D4A0":"2130","1D4A1":"2131","1D4A3":"210B","1D4A4":"2110","1D4A7":"2112","1D4A8":"2133","1D4AD":"211B"},capital:!0,category:"Lu",font:a.SCRIPT},{interval:["1D4B6","1D4CF"],base:l.LATINSMALL,subst:{"1D4BA":"212F","1D4BC":"210A","1D4C4":"2134"},capital:!1,category:"Ll",font:a.SCRIPT},{interval:["1D5A0","1D5B9"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.SANSSERIF},{interval:["1D5BA","1D5D3"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.SANSSERIF},{interval:["1D608","1D621"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.SANSSERIFITALIC},{interval:["1D622","1D63B"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.SANSSERIFITALIC},{interval:["1D5D4","1D5ED"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.SANSSERIFBOLD},{interval:["1D5EE","1D607"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.SANSSERIFBOLD},{interval:["1D63C","1D655"],base:l.LATINCAP,subst:{},capital:!0,category:"Lu",font:a.SANSSERIFBOLDITALIC},{interval:["1D656","1D66F"],base:l.LATINSMALL,subst:{},capital:!1,category:"Ll",font:a.SANSSERIFBOLDITALIC},{interval:["0391","03A9"],base:l.GREEKCAP,subst:{"03A2":"03F4"},capital:!0,category:"Lu",font:a.NORMAL},{interval:["03B0","03D0"],base:l.GREEKSMALL,subst:{"03B0":"2207","03CA":"2202","03CB":"03F5","03CC":"03D1","03CD":"03F0","03CE":"03D5","03CF":"03F1","03D0":"03D6"},capital:!1,category:"Ll",font:a.NORMAL},{interval:["1D6A8","1D6C0"],base:l.GREEKCAP,subst:{},capital:!0,category:"Lu",font:a.BOLD},{interval:["1D6C1","1D6E1"],base:l.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:a.BOLD},{interval:["1D6E2","1D6FA"],base:l.GREEKCAP,subst:{},capital:!0,category:"Lu",font:a.ITALIC},{interval:["1D6FB","1D71B"],base:l.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:a.ITALIC},{interval:["1D71C","1D734"],base:l.GREEKCAP,subst:{},capital:!0,category:"Lu",font:a.BOLDITALIC},{interval:["1D735","1D755"],base:l.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:a.BOLDITALIC},{interval:["1D756","1D76E"],base:l.GREEKCAP,subst:{},capital:!0,category:"Lu",font:a.SANSSERIFBOLD},{interval:["1D76F","1D78F"],base:l.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:a.SANSSERIFBOLD},{interval:["1D790","1D7A8"],base:l.GREEKCAP,subst:{},capital:!0,category:"Lu",font:a.SANSSERIFBOLDITALIC},{interval:["1D7A9","1D7C9"],base:l.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:a.SANSSERIFBOLDITALIC},{interval:["0030","0039"],base:l.DIGIT,subst:{},offset:0,category:"Nd",font:a.NORMAL},{interval:["2070","2079"],base:l.DIGIT,subst:{2071:"00B9",2072:"00B2",2073:"00B3"},offset:0,category:"No",font:s.SUPER},{interval:["2080","2089"],base:l.DIGIT,subst:{},offset:0,category:"No",font:s.SUB},{interval:["245F","2473"],base:l.DIGIT,subst:{"245F":"24EA"},offset:0,category:"No",font:s.CIRCLED},{interval:["3251","325F"],base:l.DIGIT,subst:{},offset:21,category:"No",font:s.CIRCLED},{interval:["32B1","32BF"],base:l.DIGIT,subst:{},offset:36,category:"No",font:s.CIRCLED},{interval:["2474","2487"],base:l.DIGIT,subst:{},offset:1,category:"No",font:s.PARENTHESIZED},{interval:["2487","249B"],base:l.DIGIT,subst:{2487:"1F100"},offset:0,category:"No",font:s.PERIOD},{interval:["2775","277F"],base:l.DIGIT,subst:{2775:"24FF"},offset:0,category:"No",font:s.NEGATIVECIRCLED},{interval:["24EB","24F4"],base:l.DIGIT,subst:{},offset:11,category:"No",font:s.NEGATIVECIRCLED},{interval:["24F5","24FE"],base:l.DIGIT,subst:{},offset:1,category:"No",font:s.DOUBLECIRCLED},{interval:["277F","2789"],base:l.DIGIT,subst:{"277F":"1F10B"},offset:0,category:"No",font:s.CIRCLEDSANSSERIF},{interval:["2789","2793"],base:l.DIGIT,subst:{2789:"1F10C"},offset:0,category:"No",font:s.NEGATIVECIRCLEDSANSSERIF},{interval:["FF10","FF19"],base:l.DIGIT,subst:{},offset:0,category:"Nd",font:a.FULLWIDTH},{interval:["1D7CE","1D7D7"],base:l.DIGIT,subst:{},offset:0,category:"Nd",font:a.BOLD},{interval:["1D7D8","1D7E1"],base:l.DIGIT,subst:{},offset:0,category:"Nd",font:a.DOUBLESTRUCK},{interval:["1D7E2","1D7EB"],base:l.DIGIT,subst:{},offset:0,category:"Nd",font:a.SANSSERIF},{interval:["1D7EC","1D7F5"],base:l.DIGIT,subst:{},offset:0,category:"Nd",font:a.SANSSERIFBOLD},{interval:["1D7F6","1D7FF"],base:l.DIGIT,subst:{},offset:0,category:"Nd",font:a.MONOSPACE},{interval:["1F101","1F10A"],base:l.DIGIT,subst:{},offset:0,category:"No",font:s.COMMA},{interval:["24B6","24CF"],base:l.LATINCAP,subst:{},capital:!0,category:"So",font:s.CIRCLED},{interval:["24D0","24E9"],base:l.LATINSMALL,subst:{},capital:!1,category:"So",font:s.CIRCLED},{interval:["1F110","1F129"],base:l.LATINCAP,subst:{},capital:!0,category:"So",font:s.PARENTHESIZED},{interval:["249C","24B5"],base:l.LATINSMALL,subst:{},capital:!1,category:"So",font:s.PARENTHESIZED},{interval:["1F130","1F149"],base:l.LATINCAP,subst:{},capital:!0,category:"So",font:s.SQUARED},{interval:["1F170","1F189"],base:l.LATINCAP,subst:{},capital:!0,category:"So",font:s.NEGATIVESQUARED},{interval:["1F150","1F169"],base:l.LATINCAP,subst:{},capital:!0,category:"So",font:s.NEGATIVECIRCLED}]}(alphabet_generator),getDefaultExportFromCjs$1(alphabet_generator);var __awaiter$1=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};Object.defineProperty(math_map,"__esModule",{value:!0}),math_map.loadAjax=math_map.loadFileSync=math_map.loadFile=math_map.parseMaps=math_map.retrieveFiles=math_map.standardLoader=math_map.loadLocale=math_map.store=void 0;const BrowserUtil$1=browser_util,engine_1$9=engine,EngineConst$b=engine_const,FileUtil$1=file_util,system_external_1$1=system_external,dynamic_cstr_1$1=dynamic_cstr,MathCompoundStore$1=math_compound_store,speech_rule_engine_1$2=speech_rule_engine,l10n_1=l10n,AlphabetGenerator=alphabet_generator;math_map.store=MathCompoundStore$1;const addSymbols={functions:MathCompoundStore$1.addFunctionRules,symbols:MathCompoundStore$1.addSymbolRules,units:MathCompoundStore$1.addUnitRules,si:MathCompoundStore$1.setSiPrefixes};let _init=!1;function loadLocale(e=engine_1$9.default.getInstance().locale){return __awaiter$1(this,void 0,void 0,(function*(){return _init||(_loadLocale(dynamic_cstr_1$1.DynamicCstr.BASE_LOCALE),_init=!0),engine_1$9.EnginePromise.promises[dynamic_cstr_1$1.DynamicCstr.BASE_LOCALE].then((()=>__awaiter$1(this,void 0,void 0,(function*(){const t=engine_1$9.default.getInstance().defaultLocale;return t?(_loadLocale(t),engine_1$9.EnginePromise.promises[t].then((()=>__awaiter$1(this,void 0,void 0,(function*(){return _loadLocale(e),engine_1$9.EnginePromise.promises[e]}))))):(_loadLocale(e),engine_1$9.EnginePromise.promises[e])}))))}))}function _loadLocale(e=engine_1$9.default.getInstance().locale){engine_1$9.EnginePromise.loaded[e]||(engine_1$9.EnginePromise.loaded[e]=[!1,!1],retrieveMaps(e))}function loadMethod(){return engine_1$9.default.getInstance().customLoader?engine_1$9.default.getInstance().customLoader:standardLoader()}function standardLoader(){switch(engine_1$9.default.getInstance().mode){case EngineConst$b.Mode.ASYNC:return loadFile;case EngineConst$b.Mode.HTTP:return loadAjax;case EngineConst$b.Mode.SYNC:default:return loadFileSync}}function retrieveFiles(e){const t=loadMethod(),r=new Promise((r=>{t(e).then((t=>{parseMaps(t),engine_1$9.EnginePromise.loaded[e]=[!0,!0],r(e)}),(t=>{engine_1$9.EnginePromise.loaded[e]=[!0,!1],console.error(`Unable to load locale: ${e}`),engine_1$9.default.getInstance().locale=engine_1$9.default.getInstance().defaultLocale,r(e)}))}));engine_1$9.EnginePromise.promises[e]=r}function parseMaps(e){addMaps(JSON.parse(e))}function addMaps(e,t){let r=!0;for(let n,o=0;n=Object.keys(e)[o];o++){const o=n.split("/");t&&t!==o[0]||("rules"===o[1]?speech_rule_engine_1$2.SpeechRuleEngine.getInstance().addStore(e[n]):"messages"===o[1]?(0,l10n_1.completeLocale)(e[n]):(r&&(AlphabetGenerator.generate(o[0]),r=!1),e[n].forEach(addSymbols[o[1]])))}}function retrieveMaps(e){engine_1$9.default.getInstance().isIE&&engine_1$9.default.getInstance().mode===EngineConst$b.Mode.HTTP?getJsonIE_(e):retrieveFiles(e)}function getJsonIE_(e,t){let r=t||1;BrowserUtil$1.mapsForIE?addMaps(BrowserUtil$1.mapsForIE,e):r<=5&&setTimeout((()=>getJsonIE_(e,r++)).bind(this),300)}function loadFile(e){const t=FileUtil$1.localePath(e);return new Promise(((e,r)=>{system_external_1$1.default.fs.readFile(t,"utf8",((t,n)=>{if(t)return r(t);e(n)}))}))}function loadFileSync(e){const t=FileUtil$1.localePath(e);return new Promise(((e,r)=>{let n="{}";try{n=system_external_1$1.default.fs.readFileSync(t,"utf8")}catch(e){return r(e)}e(n)}))}function loadAjax(e){const t=FileUtil$1.localePath(e),r=new XMLHttpRequest;return new Promise(((e,n)=>{r.onreadystatechange=function(){if(4===r.readyState){const t=r.status;0===t||t>=200&&t<400?e(r.responseText):n(t)}},r.open("GET",t,!0),r.send()}))}math_map.loadLocale=loadLocale,math_map.standardLoader=standardLoader,math_map.retrieveFiles=retrieveFiles,math_map.parseMaps=parseMaps,math_map.loadFile=loadFile,math_map.loadFileSync=loadFileSync,math_map.loadAjax=loadAjax;var __awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};Object.defineProperty(engine_setup,"__esModule",{value:!0}),engine_setup.setup=void 0;const L10n=l10n,MathMap=math_map,BrowserUtil=browser_util,debugger_1$3=_debugger,engine_1$8=engine,FileUtil=file_util,system_external_1=system_external;function setup(e){return __awaiter(this,void 0,void 0,(function*(){const t=engine_1$8.default.getInstance();"default"!==e.domain||"speech"!==e.modality&&e.modality&&"speech"!==t.modality||(e.domain="mathspeak");const r=r=>{void 0!==e[r]&&(t[r]=e[r])};return r("mode"),t.configurate(e),engine_1$8.default.BINARY_FEATURES.forEach((r=>{void 0!==e[r]&&(t[r]=!!e[r])})),engine_1$8.default.STRING_FEATURES.forEach(r),e.debug&&debugger_1$3.Debugger.getInstance().init(),e.json&&(system_external_1.default.jsonPath=FileUtil.makePath(e.json)),e.xpath&&(system_external_1.default.WGXpath=e.xpath),t.setCustomLoader(e.custom),setupBrowsers(t),L10n.setLocale(),t.setDynamicCstr(),t.init?(engine_1$8.EnginePromise.promises.init=new Promise(((e,t)=>{setTimeout((()=>{e("init")}),10)})),t.init=!1,engine_1$8.EnginePromise.get()):t.delay?(t.delay=!1,engine_1$8.EnginePromise.get()):MathMap.loadLocale()}))}function setupBrowsers(e){e.isIE=BrowserUtil.detectIE(),e.isEdge=BrowserUtil.detectEdge()}engine_setup.setup=setup;var processor_factory={},aural_rendering={},acss_renderer={},event_util={};!function(e){var t,r;Object.defineProperty(e,"__esModule",{value:!0}),e.Event=e.EventType=e.Move=e.KeyCode=void 0,(t=e.KeyCode||(e.KeyCode={}))[t.ENTER=13]="ENTER",t[t.ESC=27]="ESC",t[t.SPACE=32]="SPACE",t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN",t[t.TAB=9]="TAB",t[t.LESS=188]="LESS",t[t.GREATER=190]="GREATER",t[t.DASH=189]="DASH",t[t.ZERO=48]="ZERO",t[t.ONE=49]="ONE",t[t.TWO=50]="TWO",t[t.THREE=51]="THREE",t[t.FOUR=52]="FOUR",t[t.FIVE=53]="FIVE",t[t.SIX=54]="SIX",t[t.SEVEN=55]="SEVEN",t[t.EIGHT=56]="EIGHT",t[t.NINE=57]="NINE",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",e.Move=new Map([[13,"ENTER"],[27,"ESC"],[32,"SPACE"],[33,"PAGE_UP"],[34,"PAGE_DOWN"],[35,"END"],[36,"HOME"],[37,"LEFT"],[38,"UP"],[39,"RIGHT"],[40,"DOWN"],[9,"TAB"],[188,"LESS"],[190,"GREATER"],[189,"DASH"],[48,"ZERO"],[49,"ONE"],[50,"TWO"],[51,"THREE"],[52,"FOUR"],[53,"FIVE"],[54,"SIX"],[55,"SEVEN"],[56,"EIGHT"],[57,"NINE"],[65,"A"],[66,"B"],[67,"C"],[68,"D"],[69,"E"],[70,"F"],[71,"G"],[72,"H"],[73,"I"],[74,"J"],[75,"K"],[76,"L"],[77,"M"],[78,"N"],[79,"O"],[80,"P"],[81,"Q"],[82,"R"],[83,"S"],[84,"T"],[85,"U"],[86,"V"],[87,"W"],[88,"X"],[89,"Y"],[90,"Z"]]),(r=e.EventType||(e.EventType={})).CLICK="click",r.DBLCLICK="dblclick",r.MOUSEDOWN="mousedown",r.MOUSEUP="mouseup",r.MOUSEOVER="mouseover",r.MOUSEOUT="mouseout",r.MOUSEMOVE="mousemove",r.SELECTSTART="selectstart",r.KEYPRESS="keypress",r.KEYDOWN="keydown",r.KEYUP="keyup",r.TOUCHSTART="touchstart",r.TOUCHMOVE="touchmove",r.TOUCHEND="touchend",r.TOUCHCANCEL="touchcancel";e.Event=class{constructor(e,t,r){this.src=e,this.type=t,this.callback=r}add(){this.src.addEventListener(this.type,this.callback)}remove(){this.src.removeEventListener(this.type,this.callback)}}}(event_util),getDefaultExportFromCjs$1(event_util);var audio_util={};Object.defineProperty(audio_util,"__esModule",{value:!0}),audio_util.isSpanElement=audio_util.isPauseElement=audio_util.isMarkupElement=audio_util.personalityMarkup=audio_util.sortClose=audio_util.mergeMarkup=audio_util.mergePause=void 0;const base_util_1$1=base_util,EngineConst$a=engine_const,span_1$1=span;function mergePause(e,t,r){return e?{pause:mergePause_(e.pause,t.pause,r)}:t}function mergePause_(e,t,r){return(r||function(r,n){return"number"==typeof r&&"number"==typeof n?r+n:"number"==typeof r?n:"number"==typeof n?r:[e,t].sort()[0]}).call(null,e,t)}function mergeMarkup(e,t){delete e.open,t.close.forEach((t=>delete e[t])),t.open.forEach((r=>e[r]=t[r]));const r=Object.keys(e);e.open=r}function sortClose(e,t){if(e.length<=1)return e;const r=[];for(let n,o=0;n=t[o],e.length;o++)n.close&&n.close.length&&n.close.forEach((function(t){const n=e.indexOf(t);-1!==n&&(r.unshift(t),e.splice(n,1))}));return r}audio_util.mergePause=mergePause,audio_util.mergeMarkup=mergeMarkup,audio_util.sortClose=sortClose;let PersonalityRanges_={},LastOpen_=[];function personalityMarkup(e){PersonalityRanges_={},LastOpen_=[];let t=[];const r={};for(let n,o=0;n=e[o];o++){let e=null;const o=n.descriptionSpan(),i=n.personality,a=i[EngineConst$a.personalityProps.JOIN];delete i[EngineConst$a.personalityProps.JOIN],void 0!==i[EngineConst$a.personalityProps.PAUSE]&&(e={[EngineConst$a.personalityProps.PAUSE]:i[EngineConst$a.personalityProps.PAUSE]},delete i[EngineConst$a.personalityProps.PAUSE]);appendMarkup_(t,o,personalityDiff_(i,r),a,e,!0)}return t=t.concat(finaliseMarkup_()),t=simplifyMarkup_(t),t}function appendElement_(e,t){const r=e[e.length-1];if(r){if(isSpanElement(t)&&isSpanElement(r)){if(void 0===r.join)return void(r.span=r.span.concat(t.span));const e=r.span.pop(),n=t.span.shift();return r.span.push(e+r.join+n),r.span=r.span.concat(t.span),void(r.join=t.join)}isPauseElement(t)&&isPauseElement(r)?r.pause=mergePause_(r.pause,t.pause):e.push(t)}else e.push(t)}function simplifyMarkup_(e){const t={},r=[];for(let n,o=0;n=e[o];o++){if(!isMarkupElement(n)){appendElement_(r,n);continue}if(!n.close||1!==n.close.length||n.open.length){copyValues_(n,t),r.push(n);continue}let i=e[o+1];if(!i||isSpanElement(i)){copyValues_(n,t),r.push(n);continue}const a=isPauseElement(i)?i:null;a&&(i=e[o+2]),i&&isMarkupElement(i)&&i.open[0]===n.close[0]&&!i.close.length&&i[i.open[0]]===t[i.open[0]]?a?(appendElement_(r,a),o+=2):o+=1:(copyValues_(n,t),r.push(n))}return r}function copyValues_(e,t){e.rate&&(t.rate=e.rate),e.pitch&&(t.pitch=e.pitch),e.volume&&(t.volume=e.volume)}function finaliseMarkup_(){const e=[];for(let t=LastOpen_.length-1;t>=0;t--){const r=LastOpen_[t];if(r.length){const t={open:[],close:[]};for(let e=0;e<r.length;e++){const n=r[e];t.close.push(n),t[n]=0}e.push(t)}}return e}function isMarkupElement(e){return"object"==typeof e&&e.open}function isPauseElement(e){return"object"==typeof e&&1===Object.keys(e).length&&Object.keys(e)[0]===EngineConst$a.personalityProps.PAUSE}function isSpanElement(e){const t=Object.keys(e);return"object"==typeof e&&(1===t.length&&"span"===t[0]||2===t.length&&("span"===t[0]&&"join"===t[1]||"span"===t[1]&&"join"===t[0]))}function appendMarkup_(e,t,r,n,o,i=!1){if(i){const i=e[e.length-1];let a;if(i&&(a=i[EngineConst$a.personalityProps.JOIN]),i&&!t.speech&&o&&isPauseElement(i)){const e=EngineConst$a.personalityProps.PAUSE;i[e]=mergePause_(i[e],o[e]),o=null}if(i&&t.speech&&0===Object.keys(r).length&&isSpanElement(i)){if(void 0!==a){const e=i.span.pop();t=new span_1$1.Span(e.speech+a+t.speech,e.attributes)}i.span.push(t),t=new span_1$1.Span("",{}),i[EngineConst$a.personalityProps.JOIN]=n}}0!==Object.keys(r).length&&e.push(r),t.speech&&e.push({span:[t],join:n}),o&&e.push(o)}function personalityDiff_(e,t){if(!t)return e;const r={};for(const n of EngineConst$a.personalityPropList){const o=e[n],i=t[n];if(!o&&!i||o&&i&&o===i)continue;const a=o||0;isMarkupElement(r)||(r.open=[],r.close=[]),o||r.close.push(n),i||r.open.push(n),i&&o&&(r.close.push(n),r.open.push(n)),t[n]=a,r[n]=a,PersonalityRanges_[n]?PersonalityRanges_[n].push(a):PersonalityRanges_[n]=[a]}if(isMarkupElement(r)){let e=r.close.slice();for(;e.length>0;){let n=LastOpen_.pop();const o=(0,base_util_1$1.setdifference)(n,e);if(e=(0,base_util_1$1.setdifference)(e,n),n=o,0!==e.length){if(0!==n.length){r.close=r.close.concat(n),r.open=r.open.concat(n);for(let e,o=0;e=n[o];o++)r[e]=t[e]}}else 0!==n.length&&LastOpen_.push(n)}LastOpen_.push(r.open)}return r}audio_util.personalityMarkup=personalityMarkup,audio_util.isMarkupElement=isMarkupElement,audio_util.isPauseElement=isPauseElement,audio_util.isSpanElement=isSpanElement;var markup_renderer={},abstract_audio_renderer={};Object.defineProperty(abstract_audio_renderer,"__esModule",{value:!0}),abstract_audio_renderer.AbstractAudioRenderer=void 0;const engine_1$7=engine;class AbstractAudioRenderer{constructor(){this.separator_=" "}setSeparator(e){this.separator_=e}getSeparator(){return"braille"===engine_1$7.default.getInstance().modality?"":this.separator_}error(e){return null}merge(e){let t="";const r=e.length-1;for(let n,o=0;n=e[o];o++)if(t+=n.speech,o<r){const e=n.attributes.separator;t+=void 0!==e?e:this.getSeparator()}return t}finalize(e){return e}pauseValue(e){let t;switch(e){case"long":t=750;break;case"medium":t=500;break;case"short":t=250;break;default:t=parseInt(e,10)}return Math.floor(t*engine_1$7.default.getInstance().getRate()/100)}}abstract_audio_renderer.AbstractAudioRenderer=AbstractAudioRenderer,Object.defineProperty(markup_renderer,"__esModule",{value:!0}),markup_renderer.MarkupRenderer=void 0;const EngineConst$9=engine_const,abstract_audio_renderer_1$2=abstract_audio_renderer;class MarkupRenderer extends abstract_audio_renderer_1$2.AbstractAudioRenderer{constructor(){super(...arguments),this.ignoreElements=[EngineConst$9.personalityProps.LAYOUT],this.scaleFunction=null}setScaleFunction(e,t,r,n,o=0){this.scaleFunction=i=>{const a=(i-e)/(t-e),s=r*(1-a)+n*a;return+(Math.round(s+"e+"+o)+"e-"+o)}}applyScaleFunction(e){return this.scaleFunction?this.scaleFunction(e):e}ignoreElement(e){return-1!==this.ignoreElements.indexOf(e)}}markup_renderer.MarkupRenderer=MarkupRenderer,Object.defineProperty(acss_renderer,"__esModule",{value:!0}),acss_renderer.AcssRenderer=void 0;const EngineConst$8=engine_const,EventUtil=event_util,AudioUtil$3=audio_util,markup_renderer_1$1=markup_renderer;class AcssRenderer extends markup_renderer_1$1.MarkupRenderer{markup(e){this.setScaleFunction(-2,2,0,10,0);const t=AudioUtil$3.personalityMarkup(e),r=[],n={open:[]};let o=null,i=!1;for(let e,a=0;e=t[a];a++){if(AudioUtil$3.isMarkupElement(e)){AudioUtil$3.mergeMarkup(n,e);continue}if(AudioUtil$3.isPauseElement(e)){i&&(o=AudioUtil$3.mergePause(o,e,Math.max));continue}const t='"'+this.merge(e.span)+'"';i=!0,o&&(r.push(this.pause(o)),o=null);const a=this.prosody_(n);r.push(a?"(text ("+a+") "+t+")":t)}return"(exp "+r.join(" ")+")"}error(e){return'(error "'+EventUtil.Move.get(e)+'")'}prosodyElement(e,t){switch(t=this.applyScaleFunction(t),e){case EngineConst$8.personalityProps.RATE:return"(richness . "+t+")";case EngineConst$8.personalityProps.PITCH:return"(average-pitch . "+t+")";case EngineConst$8.personalityProps.VOLUME:return"(stress . "+t+")"}return"(value . "+t+")"}pause(e){return"(pause . "+this.pauseValue(e[EngineConst$8.personalityProps.PAUSE])+")"}prosody_(e){const t=e.open,r=[];for(let n,o=0;n=t[o];o++)r.push(this.prosodyElement(n,e[n]));return r.join(" ")}}acss_renderer.AcssRenderer=AcssRenderer;var layout_renderer={},xml_renderer={};Object.defineProperty(xml_renderer,"__esModule",{value:!0}),xml_renderer.XmlRenderer=void 0;const engine_1$6=engine,AudioUtil$2=audio_util,markup_renderer_1=markup_renderer;class XmlRenderer extends markup_renderer_1.MarkupRenderer{markup(e){this.setScaleFunction(-2,2,-100,100,2);const t=AudioUtil$2.personalityMarkup(e),r=[],n=[];for(let e,o=0;e=t[o];o++)if(e.span)r.push(this.merge(e.span));else if(AudioUtil$2.isPauseElement(e))r.push(this.pause(e));else{if(e.close.length)for(let t=0;t<e.close.length;t++){const t=n.pop();if(-1===e.close.indexOf(t))throw new engine_1$6.SREError("Unknown closing markup element: "+t);r.push(this.closeTag(t))}if(e.open.length){AudioUtil$2.sortClose(e.open.slice(),t.slice(o+1)).forEach((t=>{r.push(this.prosodyElement(t,e[t])),n.push(t)}))}}return r.join(" ")}}xml_renderer.XmlRenderer=XmlRenderer,Object.defineProperty(layout_renderer,"__esModule",{value:!0}),layout_renderer.LayoutRenderer=void 0;const debugger_1$2=_debugger,DomUtil$j=dom_util,EngineConst$7=engine_const,AudioUtil$1=audio_util,xml_renderer_1$3=xml_renderer;class LayoutRenderer extends xml_renderer_1$3.XmlRenderer{finalize(e){return setTwoDim(e)}pause(e){return""}prosodyElement(e,t){return e===EngineConst$7.personalityProps.LAYOUT?`<${t}>`:""}closeTag(e){return`</${e}>`}markup(e){const t=[];let r=[];for(const n of e){if(!n.layout){r.push(n);continue}t.push(this.processContent(r)),r=[];const e=n.layout;e.match(/^begin/)?t.push("<"+e.replace(/^begin/,"")+">"):e.match(/^end/)?t.push("</"+e.replace(/^end/,"")+">"):console.warn("Something went wrong with layout markup: "+e)}return t.push(this.processContent(r)),t.join("")}processContent(e){const t=[],r=AudioUtil$1.personalityMarkup(e);for(let e,n=0;e=r[n];n++)e.span?t.push(this.merge(e.span)):AudioUtil$1.isPauseElement(e);return t.join("")}}layout_renderer.LayoutRenderer=LayoutRenderer;let twodExpr="";const handlers={TABLE:handleTable,CASES:handleCases,CAYLEY:handleCayley,MATRIX:handleMatrix,CELL:recurseTree,FENCE:recurseTree,ROW:recurseTree,FRACTION:handleFraction,NUMERATOR:handleFractionPart,DENOMINATOR:handleFractionPart};function applyHandler(e){const t=DomUtil$j.tagName(e),r=handlers[t];return r?r(e):e.textContent}function setTwoDim(e){twodExpr="";const t=DomUtil$j.parseInput(`<all>${e}</all>`);return debugger_1$2.Debugger.getInstance().output(DomUtil$j.formatXml(t.toString())),twodExpr=recurseTree(t),twodExpr}function combineContent(e,t){if(!e||!t)return e+t;const r=strHeight(e),n=strHeight(t),o=r-n;e=o<0?padCell(e,n,strWidth(e)):e,t=o>0?padCell(t,r,strWidth(t)):t;const i=e.split(/\r\n|\r|\n/),a=t.split(/\r\n|\r|\n/),s=[];for(let e=0;e<i.length;e++)s.push(i[e]+a[e]);return s.join("\n")}function recurseTree(e){let t="";for(const r of Array.from(e.childNodes))t=r.nodeType!==DomUtil$j.NodeType.TEXT_NODE?combineContent(t,applyHandler(r)):combineContent(t,r.textContent);return t}function strHeight(e){return e.split(/\r\n|\r|\n/).length}function strWidth(e){return e.split(/\r\n|\r|\n/).reduce(((e,t)=>Math.max(t.length,e)),0)}function padHeight(e,t){const r=t-strHeight(e);return e+(r>0?new Array(r+1).join("\n"):"")}function padWidth(e,t){const r=e.split(/\r\n|\r|\n/),n=[];for(const e of r){const r=t-e.length;n.push(e+(r>0?new Array(r+1).join("⠀"):""))}return n.join("\n")}function padCell(e,t,r){return padWidth(e=padHeight(e,t),r)}function assembleRows(e){const t=Array.from(e.childNodes),r=[];for(const e of t)e.nodeType===DomUtil$j.NodeType.ELEMENT_NODE&&r.push(handleRow(e));return r}function getMaxParameters(e){const t=e.reduce(((e,t)=>Math.max(t.height,e)),0),r=[];for(let t=0;t<e[0].width.length;t++)r.push(e.map((e=>e.width[t])).reduce(((e,t)=>Math.max(e,t)),0));return[t,r]}function combineCells(e,t){const r=[];for(const n of e){if(0===n.height)continue;const e=[];for(let r=0;r<n.cells.length;r++)e.push(padCell(n.cells[r],n.height,t[r]));n.cells=e,r.push(n)}return r}function combineRows(e,t){if(1===t)return e.map((e=>e.lfence+e.cells.join(e.sep)+e.rfence)).join("\n");const r=[];for(const t of e){const e=verticalArrange(t.sep,t.height);let n=t.cells.shift();for(;t.cells.length;)n=combineContent(n,e),n=combineContent(n,t.cells.shift());n=combineContent(verticalArrange(t.lfence,t.height),n),n=combineContent(n,verticalArrange(t.rfence,t.height)),r.push(n),r.push(t.lfence+new Array(strWidth(n)-3).join(t.sep)+t.rfence)}return r.slice(0,-1).join("\n")}function verticalArrange(e,t){let r="";for(;t;)r+=e+"\n",t--;return r.slice(0,-1)}function getFence(e){return e.nodeType===DomUtil$j.NodeType.ELEMENT_NODE&&"FENCE"===DomUtil$j.tagName(e)?applyHandler(e):""}function handleMatrix(e){let t=assembleRows(e);const[r,n]=getMaxParameters(t);return t=combineCells(t,n),combineRows(t,r)}function handleTable(e){let t=assembleRows(e);t.forEach((e=>{e.cells=e.cells.slice(1).slice(0,-1),e.width=e.width.slice(1).slice(0,-1)}));const[r,n]=getMaxParameters(t);return t=combineCells(t,n),combineRows(t,r)}function handleCases(e){let t=assembleRows(e);t.forEach((e=>{e.cells=e.cells.slice(0,-1),e.width=e.width.slice(0,-1)}));const[r,n]=getMaxParameters(t);return t=combineCells(t,n),combineRows(t,r)}function handleCayley(e){let t=assembleRows(e);t.forEach((e=>{e.cells=e.cells.slice(1).slice(0,-1),e.width=e.width.slice(1).slice(0,-1),e.sep=e.sep+e.sep}));const[r,n]=getMaxParameters(t),o={lfence:"",rfence:"",cells:n.map((e=>"⠐"+new Array(e).join("⠒"))),width:n,height:1,sep:t[0].sep};return t.splice(1,0,o),t=combineCells(t,n),combineRows(t,r)}function handleRow(e){const t=Array.from(e.childNodes),r=getFence(t[0]),n=getFence(t[t.length-1]);r&&t.shift(),n&&t.pop();let o="";const i=[];for(const e of t){if(e.nodeType===DomUtil$j.NodeType.TEXT_NODE){o=e.textContent;continue}const t=applyHandler(e);i.push(t)}return{lfence:r,rfence:n,sep:o,cells:i,height:i.reduce(((e,t)=>Math.max(strHeight(t),e)),0),width:i.map(strWidth)}}function centerCell(e,t){const r=(t-strWidth(e))/2,[n,o]=Math.floor(r)===r?[r,r]:[Math.floor(r),Math.ceil(r)],i=e.split(/\r\n|\r|\n/),a=[],[s,l]=[new Array(n+1).join("⠀"),new Array(o+1).join("⠀")];for(const e of i)a.push(s+e+l);return a.join("\n")}function handleFraction(e){const[t,r,,n,o]=Array.from(e.childNodes),i=applyHandler(r),a=applyHandler(n),s=strWidth(i),l=strWidth(a);let c=Math.max(s,l);const u=t+new Array(c+1).join("⠒")+o;return c=u.length,`${centerCell(i,c)}\n${u}\n${centerCell(a,c)}`}function handleFractionPart(e){const t=e.firstChild,r=recurseTree(e);if(t&&t.nodeType===DomUtil$j.NodeType.ELEMENT_NODE){if("ENGLISH"===DomUtil$j.tagName(t))return"⠰"+r;if("NUMBER"===DomUtil$j.tagName(t))return"⠼"+r}return r}var punctuation_renderer={};Object.defineProperty(punctuation_renderer,"__esModule",{value:!0}),punctuation_renderer.PunctuationRenderer=void 0;const EngineConst$6=engine_const,abstract_audio_renderer_1$1=abstract_audio_renderer,AudioUtil=audio_util;class PunctuationRenderer extends abstract_audio_renderer_1$1.AbstractAudioRenderer{markup(e){const t=AudioUtil.personalityMarkup(e);let r="",n=null,o=!1;for(let e,i=0;e=t[i];i++)AudioUtil.isMarkupElement(e)||(AudioUtil.isPauseElement(e)?o&&(n=AudioUtil.mergePause(n,e,Math.max)):(n&&(r+=this.pause(n[EngineConst$6.personalityProps.PAUSE]),n=null),r+=(o?this.getSeparator():"")+this.merge(e.span),o=!0));return r}pause(e){let t;return t="number"==typeof e?e<=250?"short":e<=500?"medium":"long":e,PunctuationRenderer.PAUSE_PUNCTUATION.get(t)||""}}punctuation_renderer.PunctuationRenderer=PunctuationRenderer,PunctuationRenderer.PAUSE_PUNCTUATION=new Map([["short",","],["medium",";"],["long","."]]);var sable_renderer={};Object.defineProperty(sable_renderer,"__esModule",{value:!0}),sable_renderer.SableRenderer=void 0;const EngineConst$5=engine_const,xml_renderer_1$2=xml_renderer;class SableRenderer extends xml_renderer_1$2.XmlRenderer{finalize(e){return'<?xml version="1.0"?><!DOCTYPE SABLE PUBLIC "-//SABLE//DTD SABLE speech mark up//EN" "Sable.v0_2.dtd" []><SABLE>'+this.getSeparator()+e+this.getSeparator()+"</SABLE>"}pause(e){return'<BREAK MSEC="'+this.pauseValue(e[EngineConst$5.personalityProps.PAUSE])+'"/>'}prosodyElement(e,t){switch(t=this.applyScaleFunction(t),e){case EngineConst$5.personalityProps.PITCH:return'<PITCH RANGE="'+t+'%">';case EngineConst$5.personalityProps.RATE:return'<RATE SPEED="'+t+'%">';case EngineConst$5.personalityProps.VOLUME:return'<VOLUME LEVEL="'+t+'%">';default:return"<"+e.toUpperCase()+' VALUE="'+t+'">'}}closeTag(e){return"</"+e.toUpperCase()+">"}}sable_renderer.SableRenderer=SableRenderer;var ssml_renderer={};Object.defineProperty(ssml_renderer,"__esModule",{value:!0}),ssml_renderer.SsmlRenderer=void 0;const engine_1$5=engine,EngineConst$4=engine_const,xml_renderer_1$1=xml_renderer;class SsmlRenderer extends xml_renderer_1$1.XmlRenderer{finalize(e){return'<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis"><prosody rate="'+engine_1$5.default.getInstance().getRate()+'%">'+this.getSeparator()+e+this.getSeparator()+"</prosody></speak>"}pause(e){return'<break time="'+this.pauseValue(e[EngineConst$4.personalityProps.PAUSE])+'ms"/>'}prosodyElement(e,t){const r=(t=Math.floor(this.applyScaleFunction(t)))<0?t.toString():"+"+t.toString();return"<prosody "+e.toLowerCase()+'="'+r+(e===EngineConst$4.personalityProps.VOLUME?">":'%">')}closeTag(e){return"</prosody>"}}ssml_renderer.SsmlRenderer=SsmlRenderer;var ssml_step_renderer={};Object.defineProperty(ssml_step_renderer,"__esModule",{value:!0}),ssml_step_renderer.SsmlStepRenderer=void 0;const ssml_renderer_1$1=ssml_renderer;class SsmlStepRenderer extends ssml_renderer_1$1.SsmlRenderer{markup(e){return SsmlStepRenderer.MARKS={},super.markup(e)}merge(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r],o=n.attributes.extid;o&&!SsmlStepRenderer.MARKS[o]&&(t.push('<mark name="'+o+'"/>'),SsmlStepRenderer.MARKS[o]=!0),1===n.speech.length&&n.speech.match(/[a-zA-Z]/)?t.push('<say-as interpret-as="'+SsmlStepRenderer.CHARACTER_ATTR+'">'+n.speech+"</say-as>"):t.push(n.speech)}return t.join(this.getSeparator())}}ssml_step_renderer.SsmlStepRenderer=SsmlStepRenderer,SsmlStepRenderer.CHARACTER_ATTR="character",SsmlStepRenderer.MARKS={};var string_renderer={};Object.defineProperty(string_renderer,"__esModule",{value:!0}),string_renderer.StringRenderer=void 0;const abstract_audio_renderer_1=abstract_audio_renderer,audio_util_1=audio_util;class StringRenderer extends abstract_audio_renderer_1.AbstractAudioRenderer{markup(e){let t="";const r=(0,audio_util_1.personalityMarkup)(e).filter((e=>e.span));if(!r.length)return t;const n=r.length-1;for(let e,o=0;e=r[o];o++){if(e.span&&(t+=this.merge(e.span)),o>=n)continue;const r=e.join;t+=void 0===r?this.getSeparator():r}return t}}string_renderer.StringRenderer=StringRenderer,Object.defineProperty(aural_rendering,"__esModule",{value:!0}),aural_rendering.isXml=aural_rendering.registerRenderer=aural_rendering.error=aural_rendering.finalize=aural_rendering.merge=aural_rendering.markup=aural_rendering.getSeparator=aural_rendering.setSeparator=void 0;const engine_1$4=engine,EngineConst$3=engine_const,acss_renderer_1=acss_renderer,layout_renderer_1=layout_renderer,punctuation_renderer_1=punctuation_renderer,sable_renderer_1=sable_renderer,span_1=span,ssml_renderer_1=ssml_renderer,ssml_step_renderer_1=ssml_step_renderer,string_renderer_1=string_renderer,xml_renderer_1=xml_renderer,xmlInstance=new ssml_renderer_1.SsmlRenderer,renderers=new Map([[EngineConst$3.Markup.NONE,new string_renderer_1.StringRenderer],[EngineConst$3.Markup.PUNCTUATION,new punctuation_renderer_1.PunctuationRenderer],[EngineConst$3.Markup.LAYOUT,new layout_renderer_1.LayoutRenderer],[EngineConst$3.Markup.ACSS,new acss_renderer_1.AcssRenderer],[EngineConst$3.Markup.SABLE,new sable_renderer_1.SableRenderer],[EngineConst$3.Markup.VOICEXML,xmlInstance],[EngineConst$3.Markup.SSML,xmlInstance],[EngineConst$3.Markup.SSML_STEP,new ssml_step_renderer_1.SsmlStepRenderer]]);function setSeparator(e){const t=renderers.get(engine_1$4.default.getInstance().markup);t&&t.setSeparator(e)}function getSeparator(){const e=renderers.get(engine_1$4.default.getInstance().markup);return e?e.getSeparator():""}function markup(e){const t=renderers.get(engine_1$4.default.getInstance().markup);return t?t.markup(e):""}function merge(e){const t=e.map((e=>"string"==typeof e?new span_1.Span(e,{}):e)),r=renderers.get(engine_1$4.default.getInstance().markup);return r?r.merge(t):e.join()}function finalize(e){const t=renderers.get(engine_1$4.default.getInstance().markup);return t?t.finalize(e):e}function error(e){const t=renderers.get(engine_1$4.default.getInstance().markup);return t?t.error(e):""}function registerRenderer(e,t){renderers.set(e,t)}function isXml(){return renderers.get(engine_1$4.default.getInstance().markup)instanceof xml_renderer_1.XmlRenderer}aural_rendering.setSeparator=setSeparator,aural_rendering.getSeparator=getSeparator,aural_rendering.markup=markup,aural_rendering.merge=merge,aural_rendering.finalize=finalize,aural_rendering.error=error,aural_rendering.registerRenderer=registerRenderer,aural_rendering.isXml=isXml;var enrich={},semantic={},semantic_tree={},semantic_mathml={},semantic_parser={};Object.defineProperty(semantic_parser,"__esModule",{value:!0}),semantic_parser.SemanticAbstractParser=void 0;const semantic_node_factory_1$1=semantic_node_factory;class SemanticAbstractParser{constructor(e){this.type=e,this.factory_=new semantic_node_factory_1$1.SemanticNodeFactory}getFactory(){return this.factory_}setFactory(e){this.factory_=e}getType(){return this.type}parseList(e){const t=[];for(let r,n=0;r=e[n];n++)t.push(this.parse(r));return t}}semantic_parser.SemanticAbstractParser=SemanticAbstractParser,Object.defineProperty(semantic_mathml,"__esModule",{value:!0}),semantic_mathml.SemanticMathml=void 0;const DomUtil$i=dom_util,semantic_parser_1=semantic_parser,SemanticPred$2=semantic_pred,semantic_processor_1$2=semantic_processor,SemanticUtil$1=semantic_util;class SemanticMathml extends semantic_parser_1.SemanticAbstractParser{constructor(){super("MathML"),this.parseMap_={SEMANTICS:this.semantics_.bind(this),MATH:this.rows_.bind(this),MROW:this.rows_.bind(this),MPADDED:this.rows_.bind(this),MSTYLE:this.rows_.bind(this),MFRAC:this.fraction_.bind(this),MSUB:this.limits_.bind(this),MSUP:this.limits_.bind(this),MSUBSUP:this.limits_.bind(this),MOVER:this.limits_.bind(this),MUNDER:this.limits_.bind(this),MUNDEROVER:this.limits_.bind(this),MROOT:this.root_.bind(this),MSQRT:this.sqrt_.bind(this),MTABLE:this.table_.bind(this),MLABELEDTR:this.tableLabeledRow_.bind(this),MTR:this.tableRow_.bind(this),MTD:this.tableCell_.bind(this),MS:this.text_.bind(this),MTEXT:this.text_.bind(this),MSPACE:this.space_.bind(this),"ANNOTATION-XML":this.text_.bind(this),MI:this.identifier_.bind(this),MN:this.number_.bind(this),MO:this.operator_.bind(this),MFENCED:this.fenced_.bind(this),MENCLOSE:this.enclosed_.bind(this),MMULTISCRIPTS:this.multiscripts_.bind(this),ANNOTATION:this.empty_.bind(this),NONE:this.empty_.bind(this),MACTION:this.action_.bind(this)};const e={type:"identifier",role:"numbersetletter",font:"double-struck"};["C","H","N","P","Q","R","Z","ℂ","ℍ","ℕ","ℙ","ℚ","ℝ","ℤ"].forEach((t=>this.getFactory().defaultMap.add(t,e)).bind(this))}static getAttribute_(e,t,r){if(!e.hasAttribute(t))return r;const n=e.getAttribute(t);return n.match(/^\s*$/)?null:n}parse(e){semantic_processor_1$2.default.getInstance().setNodeFactory(this.getFactory());const t=DomUtil$i.toArray(e.childNodes),r=DomUtil$i.tagName(e),n=this.parseMap_[r],o=(n||this.dummy_.bind(this))(e,t);return SemanticUtil$1.addAttributes(o,e),-1!==["MATH","MROW","MPADDED","MSTYLE","SEMANTICS"].indexOf(r)||(o.mathml.unshift(e),o.mathmlTree=e),o}semantics_(e,t){return t.length?this.parse(t[0]):this.getFactory().makeEmptyNode()}rows_(e,t){const r=e.getAttribute("semantics");if(r&&r.match("bspr_"))return semantic_processor_1$2.default.proof(e,r,this.parseList.bind(this));let n;return 1===(t=SemanticUtil$1.purgeNodes(t)).length?(n=this.parse(t[0]),"empty"!==n.type||n.mathmlTree||(n.mathmlTree=e)):n=semantic_processor_1$2.default.getInstance().row(this.parseList(t)),n.mathml.unshift(e),n}fraction_(e,t){if(!t.length)return this.getFactory().makeEmptyNode();const r=this.parse(t[0]),n=t[1]?this.parse(t[1]):this.getFactory().makeEmptyNode();return semantic_processor_1$2.default.getInstance().fractionLikeNode(r,n,e.getAttribute("linethickness"),"true"===e.getAttribute("bevelled"))}limits_(e,t){return semantic_processor_1$2.default.getInstance().limitNode(DomUtil$i.tagName(e),this.parseList(t))}root_(e,t){return t[1]?this.getFactory().makeBranchNode("root",[this.parse(t[1]),this.parse(t[0])],[]):this.sqrt_(e,t)}sqrt_(e,t){const r=this.parseList(SemanticUtil$1.purgeNodes(t));return this.getFactory().makeBranchNode("sqrt",[semantic_processor_1$2.default.getInstance().row(r)],[])}table_(e,t){const r=e.getAttribute("semantics");if(r&&r.match("bspr_"))return semantic_processor_1$2.default.proof(e,r,this.parseList.bind(this));const n=this.getFactory().makeBranchNode("table",this.parseList(t),[]);return n.mathmlTree=e,semantic_processor_1$2.default.tableToMultiline(n),n}tableRow_(e,t){const r=this.getFactory().makeBranchNode("row",this.parseList(t),[]);return r.role="table",r}tableLabeledRow_(e,t){if(!t.length)return this.tableRow_(e,t);const r=this.parse(t[0]);r.role="label";const n=this.getFactory().makeBranchNode("row",this.parseList(t.slice(1)),[r]);return n.role="table",n}tableCell_(e,t){const r=this.parseList(SemanticUtil$1.purgeNodes(t));let n;n=r.length?1===r.length&&SemanticPred$2.isType(r[0],"empty")?r:[semantic_processor_1$2.default.getInstance().row(r)]:[];const o=this.getFactory().makeBranchNode("cell",n,[]);return o.role="table",o}space_(e,t){const r=e.getAttribute("width"),n=r&&r.match(/[a-z]*$/);if(!n)return this.empty_(e,t);const o=n[0],i=parseFloat(r.slice(0,n.index)),a={cm:.4,pc:.5,em:.5,ex:1,in:.15,pt:5,mm:5}[o];if(!a||isNaN(i)||i<a)return this.empty_(e,t);const s=this.getFactory().makeUnprocessed(e);return semantic_processor_1$2.default.getInstance().text(s,DomUtil$i.tagName(e))}text_(e,t){const r=this.leaf_(e,t);return e.textContent?(r.updateContent(e.textContent,!0),semantic_processor_1$2.default.getInstance().text(r,DomUtil$i.tagName(e))):r}identifier_(e,t){const r=this.leaf_(e,t);return semantic_processor_1$2.default.getInstance().identifierNode(r,semantic_processor_1$2.default.getInstance().font(e.getAttribute("mathvariant")),e.getAttribute("class"))}number_(e,t){const r=this.leaf_(e,t);return semantic_processor_1$2.default.number(r),r}operator_(e,t){const r=this.leaf_(e,t);return semantic_processor_1$2.default.getInstance().operatorNode(r),r}fenced_(e,t){const r=this.parseList(SemanticUtil$1.purgeNodes(t)),n=SemanticMathml.getAttribute_(e,"separators",","),o=SemanticMathml.getAttribute_(e,"open","("),i=SemanticMathml.getAttribute_(e,"close",")"),a=semantic_processor_1$2.default.getInstance().mfenced(o,i,n,r);return semantic_processor_1$2.default.getInstance().tablesInRow([a])[0]}enclosed_(e,t){const r=this.parseList(SemanticUtil$1.purgeNodes(t)),n=this.getFactory().makeBranchNode("enclose",[semantic_processor_1$2.default.getInstance().row(r)],[]);return n.role=e.getAttribute("notation")||"unknown",n}multiscripts_(e,t){if(!t.length)return this.getFactory().makeEmptyNode();const r=this.parse(t.shift());if(!t.length)return r;const n=[],o=[],i=[],a=[];let s=!1,l=0;for(let e,r=0;e=t[r];r++)"MPRESCRIPTS"!==DomUtil$i.tagName(e)?(s?1&l?n.push(e):o.push(e):1&l?i.push(e):a.push(e),l++):(s=!0,l=0);return SemanticUtil$1.purgeNodes(n).length||SemanticUtil$1.purgeNodes(o).length?semantic_processor_1$2.default.getInstance().tensor(r,this.parseList(o),this.parseList(n),this.parseList(a),this.parseList(i)):semantic_processor_1$2.default.getInstance().pseudoTensor(r,this.parseList(a),this.parseList(i))}empty_(e,t){return this.getFactory().makeEmptyNode()}action_(e,t){return t.length>1?this.parse(t[1]):this.getFactory().makeUnprocessed(e)}dummy_(e,t){const r=this.getFactory().makeUnprocessed(e);return r.role=e.tagName,r.textContent=e.textContent,r}leaf_(e,t){if(1===t.length&&t[0].nodeType!==DomUtil$i.NodeType.TEXT_NODE){const r=this.getFactory().makeUnprocessed(e);return r.role=t[0].tagName,SemanticUtil$1.addAttributes(r,t[0]),r}return this.getFactory().makeLeafNode(e.textContent,semantic_processor_1$2.default.getInstance().font(e.getAttribute("mathvariant")))}}semantic_mathml.SemanticMathml=SemanticMathml;var semantic_heuristics={},semantic_heuristic={};Object.defineProperty(semantic_heuristic,"__esModule",{value:!0}),semantic_heuristic.SemanticMultiHeuristic=semantic_heuristic.SemanticTreeHeuristic=semantic_heuristic.SemanticAbstractHeuristic=void 0;class SemanticAbstractHeuristic{constructor(e,t,r=(e=>!1)){this.name=e,this.apply=t,this.applicable=r}}semantic_heuristic.SemanticAbstractHeuristic=SemanticAbstractHeuristic;class SemanticTreeHeuristic extends SemanticAbstractHeuristic{}semantic_heuristic.SemanticTreeHeuristic=SemanticTreeHeuristic;class SemanticMultiHeuristic extends SemanticAbstractHeuristic{}semantic_heuristic.SemanticMultiHeuristic=SemanticMultiHeuristic,Object.defineProperty(semantic_heuristics,"__esModule",{value:!0});const debugger_1$1=_debugger,engine_1$3=engine,SemanticAttr=semantic_attr,SemanticHeuristics=semantic_heuristic_factory,semantic_heuristic_1=semantic_heuristic,SemanticPred$1=semantic_pred,semantic_processor_1$1=semantic_processor,SemanticUtil=semantic_util;function combineJuxtaposition(e){for(let t,r=e.childNodes.length-1;t=e.childNodes[r];r--)SemanticPred$1.isImplicitOp(t)&&!t.nobreaking&&(e.childNodes.splice(r,1,...t.childNodes),e.contentNodes.splice(r,0,...t.contentNodes),t.childNodes.concat(t.contentNodes).forEach((function(t){t.parent=e})),e.addMathmlNodes(t.mathml));return e}function juxtapositionPrePost(e){const t=[],r=[];let n=e.comp.shift(),o=null,i=[];for(;e.comp.length;)if(i=[],n.length)o&&t.push(o),r.push(n),o=e.rel.shift(),n=e.comp.shift();else{for(o&&i.push(o);!n.length&&e.comp.length;)n=e.comp.shift(),i.push(e.rel.shift());o=convertPrePost(i,n,r)}return i.length||n.length?(t.push(o),r.push(n)):(i.push(o),convertPrePost(i,n,r)),{rel:t,comp:r}}function convertPrePost(e,t,r){let n=null;if(!e.length)return n;const o=r[r.length-1],i=o&&o.length,a=t&&t.length,s=semantic_processor_1$1.default.getInstance();if(i&&a){if("infixop"===t[0].type&&"implicit"===t[0].role)return n=e.pop(),o.push(s.postfixNode_(o.pop(),e)),n;n=e.shift();const r=s.prefixNode_(t.shift(),e);return t.unshift(r),n}return i?(o.push(s.postfixNode_(o.pop(),e)),n):(a&&t.unshift(s.prefixNode_(t.shift(),e)),n)}function recurseJuxtaposition(e,t,r){if(!t.length)return e;const n=e.pop(),o=t.shift(),i=r.shift();if(SemanticPred$1.isImplicitOp(o)){debugger_1$1.Debugger.getInstance().output("Juxta Heuristic Case 2");const a=(n?[n,o]:[o]).concat(i);return recurseJuxtaposition(e.concat(a),t,r)}if(!n)return debugger_1$1.Debugger.getInstance().output("Juxta Heuristic Case 3"),recurseJuxtaposition([o].concat(i),t,r);const a=i.shift();if(!a){debugger_1$1.Debugger.getInstance().output("Juxta Heuristic Case 9");const i=SemanticHeuristics.factory.makeBranchNode("infixop",[n,t.shift()],[o],o.textContent);return i.role="implicit",SemanticHeuristics.run("combine_juxtaposition",i),t.unshift(i),recurseJuxtaposition(e,t,r)}if(SemanticPred$1.isOperator(n)||SemanticPred$1.isOperator(a))return debugger_1$1.Debugger.getInstance().output("Juxta Heuristic Case 4"),recurseJuxtaposition(e.concat([n,o,a]).concat(i),t,r);let s=null;return SemanticPred$1.isImplicitOp(n)&&SemanticPred$1.isImplicitOp(a)?(debugger_1$1.Debugger.getInstance().output("Juxta Heuristic Case 5"),n.contentNodes.push(o),n.contentNodes=n.contentNodes.concat(a.contentNodes),n.childNodes.push(a),n.childNodes=n.childNodes.concat(a.childNodes),a.childNodes.forEach((e=>e.parent=n)),o.parent=n,n.addMathmlNodes(o.mathml),n.addMathmlNodes(a.mathml),s=n):SemanticPred$1.isImplicitOp(n)?(debugger_1$1.Debugger.getInstance().output("Juxta Heuristic Case 6"),n.contentNodes.push(o),n.childNodes.push(a),a.parent=n,o.parent=n,n.addMathmlNodes(o.mathml),n.addMathmlNodes(a.mathml),s=n):SemanticPred$1.isImplicitOp(a)?(debugger_1$1.Debugger.getInstance().output("Juxta Heuristic Case 7"),a.contentNodes.unshift(o),a.childNodes.unshift(n),n.parent=a,o.parent=a,a.addMathmlNodes(o.mathml),a.addMathmlNodes(n.mathml),s=a):(debugger_1$1.Debugger.getInstance().output("Juxta Heuristic Case 8"),s=SemanticHeuristics.factory.makeBranchNode("infixop",[n,a],[o],o.textContent),s.role="implicit"),e.push(s),recurseJuxtaposition(e.concat(i),t,r)}SemanticHeuristics.add(new semantic_heuristic_1.SemanticTreeHeuristic("combine_juxtaposition",combineJuxtaposition)),SemanticHeuristics.add(new semantic_heuristic_1.SemanticTreeHeuristic("propagateSimpleFunction",(e=>("infixop"!==e.type&&"fraction"!==e.type||!e.childNodes.every(SemanticPred$1.isSimpleFunction)||(e.role="composed function"),e)),(e=>"clearspeak"===engine_1$3.default.getInstance().domain))),SemanticHeuristics.add(new semantic_heuristic_1.SemanticTreeHeuristic("simpleNamedFunction",(e=>("unit"!==e.role&&-1!==["f","g","h","F","G","H"].indexOf(e.textContent)&&(e.role="simple function"),e)),(e=>"clearspeak"===engine_1$3.default.getInstance().domain))),SemanticHeuristics.add(new semantic_heuristic_1.SemanticTreeHeuristic("propagateComposedFunction",(e=>("fenced"===e.type&&"composed function"===e.childNodes[0].role&&(e.role="composed function"),e)),(e=>"clearspeak"===engine_1$3.default.getInstance().domain))),SemanticHeuristics.add(new semantic_heuristic_1.SemanticTreeHeuristic("multioperator",(e=>{if("unknown"!==e.role||e.textContent.length<=1)return;const t=[...e.textContent].map(SemanticAttr.lookupMeaning).reduce((function(e,t){return e&&t.role&&"unknown"!==t.role&&t.role!==e?"unknown"===e?t.role:null:e}),"unknown");t&&(e.role=t)}))),SemanticHeuristics.add(new semantic_heuristic_1.SemanticMultiHeuristic("convert_juxtaposition",(e=>{let t=SemanticUtil.partitionNodes(e,(function(e){return e.textContent===SemanticAttr.invisibleTimes()&&"operator"===e.type}));t=t.rel.length?juxtapositionPrePost(t):t,e=t.comp[0];for(let r,n,o=1;r=t.comp[o],n=t.rel[o-1];o++)e.push(n),e=e.concat(r);return t=SemanticUtil.partitionNodes(e,(function(e){return e.textContent===SemanticAttr.invisibleTimes()&&("operator"===e.type||"infixop"===e.type)})),t.rel.length?recurseJuxtaposition(t.comp.shift(),t.rel,t.comp):e}))),SemanticHeuristics.add(new semantic_heuristic_1.SemanticTreeHeuristic("simple2prefix",(e=>(e.textContent.length>1&&!e.textContent[0].match(/[A-Z]/)&&(e.role="prefix function"),e)),(e=>"braille"===engine_1$3.default.getInstance().modality&&"identifier"===e.type))),SemanticHeuristics.add(new semantic_heuristic_1.SemanticTreeHeuristic("detect_cycle",(e=>{e.type="matrix",e.role="cycle";const t=e.childNodes[0];return t.type="row",t.role="cycle",t.textContent="",t.contentNodes=[],e}),(e=>"fenced"===e.type&&"infixop"===e.childNodes[0].type&&"implicit"===e.childNodes[0].role&&e.childNodes[0].childNodes.every((function(e){return"number"===e.type}))&&e.childNodes[0].contentNodes.every((function(e){return"space"===e.role}))))),Object.defineProperty(semantic_tree,"__esModule",{value:!0}),semantic_tree.SemanticTree=void 0;const DomUtil$h=dom_util,semantic_annotations_1=semantic_annotations,semantic_annotator_1=semantic_annotator,semantic_mathml_1=semantic_mathml,semantic_node_1$1=semantic_node,SemanticPred=semantic_pred;class SemanticTree{constructor(e){this.mathml=e,this.parser=new semantic_mathml_1.SemanticMathml,this.root=this.parser.parse(e),this.collator=this.parser.getFactory().leafMap.collateMeaning();const t=this.collator.newDefault();t&&(this.parser=new semantic_mathml_1.SemanticMathml,this.parser.getFactory().defaultMap=t,this.root=this.parser.parse(e)),unitVisitor.visit(this.root,{}),(0,semantic_annotations_1.annotate)(this.root)}static empty(){const e=DomUtil$h.parseInput("<math/>"),t=new SemanticTree(e);return t.mathml=e,t}static fromNode(e,t){const r=SemanticTree.empty();return r.root=e,t&&(r.mathml=t),r}static fromRoot(e,t){let r=e;for(;r.parent;)r=r.parent;const n=SemanticTree.fromNode(r);return t&&(n.mathml=t),n}static fromXml(e){const t=SemanticTree.empty();return e.childNodes[0]&&(t.root=semantic_node_1$1.SemanticNode.fromXml(e.childNodes[0])),t}xml(e){const t=DomUtil$h.parseInput("<stree></stree>"),r=this.root.xml(t.ownerDocument,e);return t.appendChild(r),t}toString(e){return DomUtil$h.serializeXml(this.xml(e))}formatXml(e){const t=this.toString(e);return DomUtil$h.formatXml(t)}displayTree(){this.root.displayTree()}replaceNode(e,t){const r=e.parent;r?r.replaceChild(e,t):this.root=t}toJson(){const e={};return e.stree=this.root.toJson(),e}}semantic_tree.SemanticTree=SemanticTree;const unitVisitor=new semantic_annotator_1.SemanticVisitor("general","unit",((e,t)=>{if("infixop"===e.type&&("multiplication"===e.role||"implicit"===e.role)){const t=e.childNodes;t.length&&(SemanticPred.isPureUnit(t[0])||SemanticPred.isUnitCounter(t[0]))&&e.childNodes.slice(1).every(SemanticPred.isPureUnit)&&(e.role="unit")}return!1}));Object.defineProperty(semantic,"__esModule",{value:!0}),semantic.getTreeFromString=semantic.getTree=semantic.xmlTree=void 0;const DomUtil$g=dom_util,semantic_tree_1$2=semantic_tree;function xmlTree(e){return getTree(e).xml()}function getTree(e){return new semantic_tree_1$2.SemanticTree(e)}function getTreeFromString(e){return getTree(DomUtil$g.parseInput(e))}semantic.xmlTree=xmlTree,semantic.getTree=getTree,semantic.getTreeFromString=getTreeFromString;var enrich_mathml={},semantic_skeleton={},enrich_attr={};!function(e){var t;function r(e){return e.map((function(e){return e.id})).join(",")}function n(e,r){const n=[];"mglyph"===r.role&&n.push("image"),r.attributes.href&&n.push("link"),n.length&&e.setAttribute(t.POSTFIX,n.join(" "))}Object.defineProperty(e,"__esModule",{value:!0}),e.addPrefix=e.removeAttributePrefix=e.setPostfix=e.setAttributes=e.makeIdList=e.EnrichAttributes=e.Attribute=e.Prefix=void 0,e.Prefix="data-semantic-",function(e){e.ADDED="data-semantic-added",e.ALTERNATIVE="data-semantic-alternative",e.CHILDREN="data-semantic-children",e.COLLAPSED="data-semantic-collapsed",e.CONTENT="data-semantic-content",e.EMBELLISHED="data-semantic-embellished",e.FENCEPOINTER="data-semantic-fencepointer",e.FONT="data-semantic-font",e.ID="data-semantic-id",e.ANNOTATION="data-semantic-annotation",e.ATTRIBUTES="data-semantic-attributes",e.OPERATOR="data-semantic-operator",e.OWNS="data-semantic-owns",e.PARENT="data-semantic-parent",e.POSTFIX="data-semantic-postfix",e.PREFIX="data-semantic-prefix",e.ROLE="data-semantic-role",e.SPEECH="data-semantic-speech",e.STRUCTURE="data-semantic-structure",e.TYPE="data-semantic-type"}(t=e.Attribute||(e.Attribute={})),e.EnrichAttributes=[t.ADDED,t.ALTERNATIVE,t.CHILDREN,t.COLLAPSED,t.CONTENT,t.EMBELLISHED,t.FENCEPOINTER,t.FONT,t.ID,t.ANNOTATION,t.ATTRIBUTES,t.OPERATOR,t.OWNS,t.PARENT,t.POSTFIX,t.PREFIX,t.ROLE,t.SPEECH,t.STRUCTURE,t.TYPE],e.makeIdList=r,e.setAttributes=function(o,i){o.setAttribute(t.TYPE,i.type);const a=i.allAttributes();for(let t,r=0;t=a[r];r++)o.setAttribute(e.Prefix+t[0].toLowerCase(),t[1]);i.childNodes.length&&o.setAttribute(t.CHILDREN,r(i.childNodes)),i.contentNodes.length&&o.setAttribute(t.CONTENT,r(i.contentNodes)),i.parent&&o.setAttribute(t.PARENT,i.parent.id.toString());const s=i.attributesXml();s&&o.setAttribute(t.ATTRIBUTES,s),n(o,i)},e.setPostfix=n,e.removeAttributePrefix=function(t){return t.toString().replace(new RegExp(e.Prefix,"g"),"")},e.addPrefix=function(t){return e.Prefix+t}}(enrich_attr),getDefaultExportFromCjs$1(enrich_attr),Object.defineProperty(semantic_skeleton,"__esModule",{value:!0}),semantic_skeleton.SemanticSkeleton=void 0;const BaseUtil=base_util,XpathUtil$5=xpath_util,enrich_attr_1$i=enrich_attr;class SemanticSkeleton{constructor(e){this.parents=null,this.levelsMap=null,e=0===e?e:e||[],this.array=e}static fromTree(e){return SemanticSkeleton.fromNode(e.root)}static fromNode(e){return new SemanticSkeleton(SemanticSkeleton.fromNode_(e))}static fromString(e){return new SemanticSkeleton(SemanticSkeleton.fromString_(e))}static simpleCollapseStructure(e){return"number"==typeof e}static contentCollapseStructure(e){return!!e&&!SemanticSkeleton.simpleCollapseStructure(e)&&"c"===e[0]}static interleaveIds(e,t){return BaseUtil.interleaveLists(SemanticSkeleton.collapsedLeafs(e),SemanticSkeleton.collapsedLeafs(t))}static collapsedLeafs(...e){return e.reduce(((e,t)=>{return e.concat((r=t,SemanticSkeleton.simpleCollapseStructure(r)?[r]:SemanticSkeleton.contentCollapseStructure(r[1])?r.slice(2):r.slice(1)));var r}),[])}static fromStructure(e,t){return new SemanticSkeleton(SemanticSkeleton.tree_(e,t.root))}static combineContentChildren(e,t,r){switch(e.type){case"relseq":case"infixop":case"multirel":return BaseUtil.interleaveLists(r,t);case"prefixop":return t.concat(r);case"postfixop":return r.concat(t);case"fenced":return r.unshift(t[0]),r.push(t[1]),r;case"appl":return[r[0],t[0],r[1]];case"root":return[r[1],r[0]];case"row":case"line":return t.length&&r.unshift(t[0]),r;default:return r}}static makeSexp_(e){return SemanticSkeleton.simpleCollapseStructure(e)?e.toString():SemanticSkeleton.contentCollapseStructure(e)?"(c "+e.slice(1).map(SemanticSkeleton.makeSexp_).join(" ")+")":"("+e.map(SemanticSkeleton.makeSexp_).join(" ")+")"}static fromString_(e){let t=e.replace(/\(/g,"[");return t=t.replace(/\)/g,"]"),t=t.replace(/ /g,","),t=t.replace(/c/g,'"c"'),JSON.parse(t)}static fromNode_(e){if(!e)return[];const t=e.contentNodes;let r;t.length&&(r=t.map(SemanticSkeleton.fromNode_),r.unshift("c"));const n=e.childNodes;if(!n.length)return t.length?[e.id,r]:e.id;const o=n.map(SemanticSkeleton.fromNode_);return t.length&&o.unshift(r),o.unshift(e.id),o}static tree_(e,t){if(!t)return[];if(!t.childNodes.length)return t.id;const r=t.id,n=[r],o=XpathUtil$5.evalXPath(`.//self::*[@${enrich_attr_1$i.Attribute.ID}=${r}]`,e)[0],i=SemanticSkeleton.combineContentChildren(t,t.contentNodes.map((function(e){return e})),t.childNodes.map((function(e){return e})));o&&SemanticSkeleton.addOwns_(o,i);for(let t,r=0;t=i[r];r++)n.push(SemanticSkeleton.tree_(e,t));return n}static addOwns_(e,t){const r=e.getAttribute(enrich_attr_1$i.Attribute.COLLAPSED),n=r?SemanticSkeleton.realLeafs_(SemanticSkeleton.fromString(r).array):t.map((e=>e.id));e.setAttribute(enrich_attr_1$i.Attribute.OWNS,n.join(" "))}static realLeafs_(e){if(SemanticSkeleton.simpleCollapseStructure(e))return[e];if(SemanticSkeleton.contentCollapseStructure(e))return[];let t=[];for(let r=1;r<e.length;r++)t=t.concat(SemanticSkeleton.realLeafs_(e[r]));return t}populate(){this.parents&&this.levelsMap||(this.parents={},this.levelsMap={},this.populate_(this.array,this.array,[]))}toString(){return SemanticSkeleton.makeSexp_(this.array)}populate_(e,t,r){if(SemanticSkeleton.simpleCollapseStructure(e))return this.levelsMap[e]=t,void(this.parents[e]=e===r[0]?r.slice(1):r);const n=SemanticSkeleton.contentCollapseStructure(e)?e.slice(1):e,o=[n[0]].concat(r);for(let t=0,r=n.length;t<r;t++){const r=n[t];this.populate_(r,e,o)}}isRoot(e){return e===this.levelsMap[e][0]}directChildren(e){if(!this.isRoot(e))return[];return this.levelsMap[e].slice(1).map((e=>SemanticSkeleton.simpleCollapseStructure(e)?e:SemanticSkeleton.contentCollapseStructure(e)?e[1]:e[0]))}subtreeNodes(e){if(!this.isRoot(e))return[];const t=(e,r)=>{SemanticSkeleton.simpleCollapseStructure(e)?r.push(e):(SemanticSkeleton.contentCollapseStructure(e)&&(e=e.slice(1)),e.forEach((e=>t(e,r))))},r=this.levelsMap[e],n=[];return t(r.slice(1),n),n}}semantic_skeleton.SemanticSkeleton=SemanticSkeleton;var enrich_case={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.factory=e.getCase=void 0,e.getCase=function(t){for(let r,n=0;r=e.factory[n];n++)if(r.test(t))return r.constr(t);return null},e.factory=[]}(enrich_case),getDefaultExportFromCjs$1(enrich_case),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printNodeList__=e.collapsePunctuated=e.getInnerNode=e.setOperatorAttribute_=e.createInvisibleOperator_=e.rewriteMfenced=e.cloneContentNode=e.addCollapsedAttribute=e.parentNode_=e.isIgnorable_=e.unitChild_=e.descendNode_=e.ascendNewNode=e.validLca_=e.pathToRoot_=e.attachedElement_=e.prunePath_=e.mathmlLca_=e.lcaType=e.functionApplication_=e.isDescendant_=e.insertNewChild_=e.mergeChildren_=e.collectChildNodes_=e.collateChildNodes_=e.childrenSubset_=e.moveSemanticAttributes_=e.introduceLayerAboveLca=e.introduceNewLayer=e.walkTree=e.enrich=e.SETTINGS=void 0;const t=_debugger,r=dom_util,n=engine,o=semantic_attr,i=semantic_heuristic_factory,a=semantic_skeleton,s=semantic_util,l=enrich_attr,c=enrich_case;function u(e){const r=(0,c.getCase)(e);let n;if(r)return n=r.getMathml(),O(n);if(1===e.mathml.length)return t.Debugger.getInstance().output("Walktree Case 0"),n=e.mathml[0],l.setAttributes(n,e),e.childNodes.length&&(t.Debugger.getInstance().output("Walktree Case 0.1"),e.childNodes.forEach((function(e){"empty"===e.type&&n.appendChild(u(e))}))),O(n);const o=e.contentNodes.map(w);I(e,o);const i=e.childNodes.map(u),s=a.SemanticSkeleton.combineContentChildren(e,o,i);if(n=e.mathmlTree,null===n)t.Debugger.getInstance().output("Walktree Case 1"),n=d(s,e);else{const e=E(s);t.Debugger.getInstance().output("Walktree Case 2"),e?(t.Debugger.getInstance().output("Walktree Case 2.1"),n=e.parentNode):(t.Debugger.getInstance().output("Walktree Case 2.2"),n=k(n))}return n=P(n),g(n,s,e),l.setAttributes(n,e),O(n)}function d(e,n){const o=M(e);let i=o.node;const a=o.type;if(a!==x.VALID||!s.hasEmptyTag(i))if(t.Debugger.getInstance().output("Walktree Case 1.1"),i=r.createElement("mrow"),a===x.PRUNED)t.Debugger.getInstance().output("Walktree Case 1.1.0"),i=p(i,o.node,e);else if(e[0]){t.Debugger.getInstance().output("Walktree Case 1.1.1");const n=E(e),o=h(n.parentNode,e);r.replaceNode(n,i),o.forEach((function(e){i.appendChild(e)}))}return n.mathmlTree||(n.mathmlTree=i),i}function p(e,n,o){let i=A(n);if(s.hasMathTag(i)){t.Debugger.getInstance().output("Walktree Case 1.1.0.0"),m(i,e),r.toArray(i.childNodes).forEach((function(t){e.appendChild(t)}));const n=e;e=i,i=n}const a=o.indexOf(n);return o[a]=i,r.replaceNode(i,e),e.appendChild(i),o.forEach((function(t){e.appendChild(t)})),e}function m(e,t){for(const r of l.EnrichAttributes)e.hasAttribute(r)&&(t.setAttribute(r,e.getAttribute(r)),e.removeAttribute(r))}function h(e,t){const n=r.toArray(e.childNodes);let o=1/0,i=-1/0;return t.forEach((function(e){const t=n.indexOf(e);-1!==t&&(o=Math.min(o,t),i=Math.max(i,t))})),n.slice(o,i+1)}function f(e,t,n){const o=[];let i=r.toArray(e.childNodes),a=!1;for(;i.length;){const e=i.shift();if(e.hasAttribute(l.Attribute.TYPE)){o.push(e);continue}const t=_(e);0!==t.length&&(1!==t.length?(a?e.setAttribute("AuxiliaryImplicit",!0):a=!0,i=t.concat(i)):o.push(e))}const s=[],c=n.childNodes.map((function(e){return e.mathmlTree}));for(;c.length;){const e=c.pop();if(e){if(-1!==o.indexOf(e))break;-1!==t.indexOf(e)&&s.unshift(e)}}return o.concat(s)}function _(e){const t=[];let n=r.toArray(e.childNodes);for(;n.length;){const e=n.shift();e.nodeType===r.NodeType.ELEMENT_NODE&&(e.hasAttribute(l.Attribute.TYPE)?t.push(e):n=r.toArray(e.childNodes).concat(n))}return t}function g(e,t,n){const o="implicit"===n.role&&i.flags.combine_juxtaposition?f(e,t,n):r.toArray(e.childNodes);if(!o.length)return void t.forEach((function(t){e.appendChild(t)}));let a=0;for(;t.length;){const r=t[0];o[a]===r||v(o[a],r)?(t.shift(),a++):o[a]&&-1===t.indexOf(o[a])?a++:(b(r,e)||y(e,o[a],r),t.shift())}}function y(e,t,r){if(!t)return void e.insertBefore(r,null);let n=t,o=N(n);for(;o&&o.firstChild===n&&!n.hasAttribute("AuxiliaryImplicit")&&o!==e;)n=o,o=N(n);o&&(o.insertBefore(r,n),n.removeAttribute("AuxiliaryImplicit"))}function b(e,t){if(!e)return!1;do{if((e=e.parentNode)===t)return!0}while(e);return!1}function v(e,t){const n=o.functionApplication();if(e&&t&&e.textContent&&t.textContent&&e.textContent===n&&t.textContent===n&&"true"===t.getAttribute(l.Attribute.ADDED)){for(let r,n=0;r=e.attributes[n];n++)t.hasAttribute(r.nodeName)||t.setAttribute(r.nodeName,r.nodeValue);return r.replaceNode(e,t),!0}return!1}var x;function M(e){const t=E(e);if(!t)return{type:x.INVALID,node:null};const r=E(e.slice().reverse());if(t===r)return{type:x.VALID,node:t};const n=$(t),o=S(n,e),i=$(r,(function(e){return-1!==o.indexOf(e)})),a=i[0],s=o.indexOf(a);return-1===s?{type:x.INVALID,node:null}:{type:o.length!==n.length?x.PRUNED:C(o[s+1],i[1])?x.VALID:x.INVALID,node:a}}function S(e,t){let r=0;for(;e[r]&&-1===t.indexOf(e[r]);)r++;return e.slice(0,r+1)}function E(e){let t=0,r=null;for(;!r&&t<e.length;)e[t].parentNode&&(r=e[t]),t++;return r}function $(e,t){const r=t||(e=>!1),n=[e];for(;!r(e)&&!s.hasMathTag(e)&&e.parentNode;)e=N(e),n.unshift(e);return n}function C(e,t){return!(!e||!t||e.previousSibling||t.nextSibling)}function O(e){for(;!s.hasMathTag(e)&&j(e);)e=N(e);return e}function A(e){const t=r.toArray(e.childNodes);if(!t)return e;const n=t.filter((function(e){return e.nodeType===r.NodeType.ELEMENT_NODE&&!s.hasIgnoreTag(e)}));return 1===n.length&&s.hasEmptyTag(n[0])&&!n[0].hasAttribute(l.Attribute.TYPE)?A(n[0]):e}function j(e){const t=N(e);return!(!t||!s.hasEmptyTag(t))&&r.toArray(t.childNodes).every((function(t){return t===e||T(t)}))}function T(e){if(e.nodeType!==r.NodeType.ELEMENT_NODE)return!0;if(!e||s.hasIgnoreTag(e))return!0;const t=r.toArray(e.childNodes);return!(!s.hasEmptyTag(e)&&t.length||s.hasDisplayTag(e)||e.hasAttribute(l.Attribute.TYPE)||s.isOrphanedGlyph(e))&&r.toArray(e.childNodes).every(T)}function N(e){return e.parentNode}function w(t){if(t.mathml.length)return u(t);const n=e.SETTINGS.implicit?L(t):r.createElement("mrow");return t.mathml=[n],n}function P(e){if("MFENCED"!==r.tagName(e))return e;const t=r.createElement("mrow");for(let r,n=0;r=e.attributes[n];n++)-1===["open","close","separators"].indexOf(r.name)&&t.setAttribute(r.name,r.value);return r.toArray(e.childNodes).forEach((function(e){t.appendChild(e)})),r.replaceNode(e,t),t}function L(e){const t=r.createElement("mo"),n=r.createTextNode(e.textContent);return t.appendChild(n),l.setAttributes(t,e),t.setAttribute(l.Attribute.ADDED,"true"),t}function I(e,t){const r=e.type+(e.textContent?","+e.textContent:"");t.forEach((function(e){k(e).setAttribute(l.Attribute.OPERATOR,r)}))}function k(e){const t=r.toArray(e.childNodes);if(!t)return e;const n=t.filter((function(e){return!T(e)})),o=[];for(let e,t=0;e=n[t];t++)if(s.hasEmptyTag(e)){const t=k(e);t&&t!==e&&o.push(t)}else o.push(e);return 1===o.length?o[0]:e}function R(e,t,n=!1){const o=l.removeAttributePrefix(r.formatXml(e.toString()));return n?t+":\n```html\n"+o+"\n```\n":o}e.SETTINGS={collapsed:!0,implicit:!0,wiki:!0},e.enrich=function(o,i){const s=r.cloneNode(o);return u(i.root),n.default.getInstance().structure&&o.setAttribute(l.Attribute.STRUCTURE,a.SemanticSkeleton.fromStructure(o,i).toString()),t.Debugger.getInstance().generateOutput((()=>[R(s,"Original MathML",e.SETTINGS.wiki),R(i,"Semantic Tree",e.SETTINGS.wiki),R(o,"Semantically enriched MathML",e.SETTINGS.wiki)])),o},e.walkTree=u,e.introduceNewLayer=d,e.introduceLayerAboveLca=p,e.moveSemanticAttributes_=m,e.childrenSubset_=h,e.collateChildNodes_=f,e.collectChildNodes_=_,e.mergeChildren_=g,e.insertNewChild_=y,e.isDescendant_=b,e.functionApplication_=v,function(e){e.VALID="valid",e.INVALID="invalid",e.PRUNED="pruned"}(x=e.lcaType||(e.lcaType={})),e.mathmlLca_=M,e.prunePath_=S,e.attachedElement_=E,e.pathToRoot_=$,e.validLca_=C,e.ascendNewNode=O,e.descendNode_=A,e.unitChild_=j,e.isIgnorable_=T,e.parentNode_=N,e.addCollapsedAttribute=function(e,t){const r=new a.SemanticSkeleton(t);e.setAttribute(l.Attribute.COLLAPSED,r.toString())},e.cloneContentNode=w,e.rewriteMfenced=P,e.createInvisibleOperator_=L,e.setOperatorAttribute_=I,e.getInnerNode=k,e.collapsePunctuated=function(e,t){const r=!!t,n=t||[],o=e.parent,i=e.contentNodes.map((function(e){return e.id}));i.unshift("c");const a=[e.id,i];for(let t,i=0;t=e.childNodes[i];i++){const e=u(t);n.push(e);const i=k(e);o&&!r&&i.setAttribute(l.Attribute.PARENT,o.id.toString()),a.push(t.id)}return a},e.printNodeList__=function(e,t){console.info(e),r.toArray(t).forEach((function(e){console.info(e.toString())})),console.info("<<<<<<<<<<<<<<<<<")}}(enrich_mathml),getDefaultExportFromCjs$1(enrich_mathml);var enrich_case_factory={},case_binomial={},abstract_enrich_case={};Object.defineProperty(abstract_enrich_case,"__esModule",{value:!0}),abstract_enrich_case.AbstractEnrichCase=void 0;class AbstractEnrichCase{constructor(e){this.semantic=e}}abstract_enrich_case.AbstractEnrichCase=AbstractEnrichCase,Object.defineProperty(case_binomial,"__esModule",{value:!0}),case_binomial.CaseBinomial=void 0;const DomUtil$f=dom_util,abstract_enrich_case_1$8=abstract_enrich_case,enrich_mathml_1=enrich_mathml,enrich_attr_1$h=enrich_attr;class CaseBinomial extends abstract_enrich_case_1$8.AbstractEnrichCase{constructor(e){super(e),this.mml=e.mathmlTree}static test(e){return!e.mathmlTree&&"line"===e.type&&"binomial"===e.role}getMathml(){if(!this.semantic.childNodes.length)return this.mml;const e=this.semantic.childNodes[0];if(this.mml=(0,enrich_mathml_1.walkTree)(e),this.mml.hasAttribute(enrich_attr_1$h.Attribute.TYPE)){const e=DomUtil$f.createElement("mrow");e.setAttribute(enrich_attr_1$h.Attribute.ADDED,"true"),DomUtil$f.replaceNode(this.mml,e),e.appendChild(this.mml),this.mml=e}return(0,enrich_attr_1$h.setAttributes)(this.mml,this.semantic),this.mml}}case_binomial.CaseBinomial=CaseBinomial;var case_double_script={};Object.defineProperty(case_double_script,"__esModule",{value:!0}),case_double_script.CaseDoubleScript=void 0;const DomUtil$e=dom_util,abstract_enrich_case_1$7=abstract_enrich_case,EnrichMathml$a=enrich_mathml,enrich_attr_1$g=enrich_attr;class CaseDoubleScript extends abstract_enrich_case_1$7.AbstractEnrichCase{constructor(e){super(e),this.mml=e.mathmlTree}static test(e){if(!e.mathmlTree||!e.childNodes.length)return!1;const t=DomUtil$e.tagName(e.mathmlTree),r=e.childNodes[0].role;return"MSUBSUP"===t&&"subsup"===r||"MUNDEROVER"===t&&"underover"===r}getMathml(){const e=this.semantic.childNodes[0],t=e.childNodes[0],r=this.semantic.childNodes[1],n=e.childNodes[1],o=EnrichMathml$a.walkTree(r),i=EnrichMathml$a.walkTree(t),a=EnrichMathml$a.walkTree(n);return(0,enrich_attr_1$g.setAttributes)(this.mml,this.semantic),this.mml.setAttribute(enrich_attr_1$g.Attribute.CHILDREN,(0,enrich_attr_1$g.makeIdList)([t,n,r])),[i,a,o].forEach((e=>EnrichMathml$a.getInnerNode(e).setAttribute(enrich_attr_1$g.Attribute.PARENT,this.mml.getAttribute(enrich_attr_1$g.Attribute.ID)))),this.mml.setAttribute(enrich_attr_1$g.Attribute.TYPE,e.role),EnrichMathml$a.addCollapsedAttribute(this.mml,[this.semantic.id,[e.id,t.id,n.id],r.id]),this.mml}}case_double_script.CaseDoubleScript=CaseDoubleScript;var case_embellished={},case_multiscripts={},case_multiindex={};Object.defineProperty(case_multiindex,"__esModule",{value:!0}),case_multiindex.CaseMultiindex=void 0;const DomUtil$d=dom_util,abstract_enrich_case_1$6=abstract_enrich_case,EnrichMathml$9=enrich_mathml,enrich_attr_1$f=enrich_attr;class CaseMultiindex extends abstract_enrich_case_1$6.AbstractEnrichCase{constructor(e){super(e),this.mml=e.mathmlTree}static multiscriptIndex(e){return"punctuated"===e.type&&"dummy"===e.contentNodes[0].role?EnrichMathml$9.collapsePunctuated(e):(EnrichMathml$9.walkTree(e),e.id)}static createNone_(e){const t=DomUtil$d.createElement("none");return e&&(0,enrich_attr_1$f.setAttributes)(t,e),t.setAttribute(enrich_attr_1$f.Attribute.ADDED,"true"),t}completeMultiscript(e,t){const r=DomUtil$d.toArray(this.mml.childNodes).slice(1);let n=0;const o=e=>{for(let t,o=0;t=e[o];o++){const e=r[n];if(e&&t===parseInt(EnrichMathml$9.getInnerNode(e).getAttribute(enrich_attr_1$f.Attribute.ID)))EnrichMathml$9.getInnerNode(e).setAttribute(enrich_attr_1$f.Attribute.PARENT,this.semantic.id.toString()),n++;else{const r=this.semantic.querySelectorAll((e=>e.id===t));this.mml.insertBefore(CaseMultiindex.createNone_(r[0]),e||null)}}};o(e),r[n]&&"MPRESCRIPTS"!==DomUtil$d.tagName(r[n])?this.mml.insertBefore(r[n],DomUtil$d.createElement("mprescripts")):n++,o(t)}}case_multiindex.CaseMultiindex=CaseMultiindex,Object.defineProperty(case_multiscripts,"__esModule",{value:!0}),case_multiscripts.CaseMultiscripts=void 0;const DomUtil$c=dom_util,semantic_skeleton_1$3=semantic_skeleton,case_multiindex_1$1=case_multiindex,EnrichMathml$8=enrich_mathml,enrich_attr_1$e=enrich_attr;class CaseMultiscripts extends case_multiindex_1$1.CaseMultiindex{static test(e){if(!e.mathmlTree)return!1;return"MMULTISCRIPTS"===DomUtil$c.tagName(e.mathmlTree)&&("superscript"===e.type||"subscript"===e.type)}constructor(e){super(e)}getMathml(){let e,t,r;if((0,enrich_attr_1$e.setAttributes)(this.mml,this.semantic),this.semantic.childNodes[0]&&"subsup"===this.semantic.childNodes[0].role){const n=this.semantic.childNodes[0];e=n.childNodes[0],t=case_multiindex_1$1.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),r=case_multiindex_1$1.CaseMultiindex.multiscriptIndex(n.childNodes[1]);const o=[this.semantic.id,[n.id,e.id,r],t];EnrichMathml$8.addCollapsedAttribute(this.mml,o),this.mml.setAttribute(enrich_attr_1$e.Attribute.TYPE,n.role),this.completeMultiscript(semantic_skeleton_1$3.SemanticSkeleton.interleaveIds(r,t),[])}else{e=this.semantic.childNodes[0],t=case_multiindex_1$1.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]);const r=[this.semantic.id,e.id,t];EnrichMathml$8.addCollapsedAttribute(this.mml,r)}const n=semantic_skeleton_1$3.SemanticSkeleton.collapsedLeafs(r||[],t),o=EnrichMathml$8.walkTree(e);return EnrichMathml$8.getInnerNode(o).setAttribute(enrich_attr_1$e.Attribute.PARENT,this.semantic.id.toString()),n.unshift(e.id),this.mml.setAttribute(enrich_attr_1$e.Attribute.CHILDREN,n.join(",")),this.mml}}case_multiscripts.CaseMultiscripts=CaseMultiscripts;var case_tensor={};Object.defineProperty(case_tensor,"__esModule",{value:!0}),case_tensor.CaseTensor=void 0;const semantic_skeleton_1$2=semantic_skeleton,case_multiindex_1=case_multiindex,EnrichMathml$7=enrich_mathml,enrich_attr_1$d=enrich_attr;class CaseTensor extends case_multiindex_1.CaseMultiindex{static test(e){return!!e.mathmlTree&&"tensor"===e.type}constructor(e){super(e)}getMathml(){EnrichMathml$7.walkTree(this.semantic.childNodes[0]);const e=case_multiindex_1.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),t=case_multiindex_1.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[2]),r=case_multiindex_1.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[3]),n=case_multiindex_1.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[4]);(0,enrich_attr_1$d.setAttributes)(this.mml,this.semantic);const o=[this.semantic.id,this.semantic.childNodes[0].id,e,t,r,n];EnrichMathml$7.addCollapsedAttribute(this.mml,o);const i=semantic_skeleton_1$2.SemanticSkeleton.collapsedLeafs(e,t,r,n);return i.unshift(this.semantic.childNodes[0].id),this.mml.setAttribute(enrich_attr_1$d.Attribute.CHILDREN,i.join(",")),this.completeMultiscript(semantic_skeleton_1$2.SemanticSkeleton.interleaveIds(r,n),semantic_skeleton_1$2.SemanticSkeleton.interleaveIds(e,t)),this.mml}}case_tensor.CaseTensor=CaseTensor,Object.defineProperty(case_embellished,"__esModule",{value:!0}),case_embellished.CaseEmbellished=void 0;const DomUtil$b=dom_util,semantic_node_1=semantic_node,abstract_enrich_case_1$5=abstract_enrich_case,case_double_script_1$1=case_double_script,case_multiscripts_1$1=case_multiscripts,case_tensor_1$1=case_tensor,EnrichMathml$6=enrich_mathml,enrich_attr_1$c=enrich_attr;class CaseEmbellished extends abstract_enrich_case_1$5.AbstractEnrichCase{constructor(e){super(e),this.fenced=null,this.fencedMml=null,this.fencedMmlNodes=[],this.ofence=null,this.ofenceMml=null,this.ofenceMap={},this.cfence=null,this.cfenceMml=null,this.cfenceMap={},this.parentCleanup=[]}static test(e){return!(!e.mathmlTree||!e.fencePointer||e.mathmlTree.getAttribute("data-semantic-type"))}static makeEmptyNode_(e){const t=DomUtil$b.createElement("mrow"),r=new semantic_node_1.SemanticNode(e);return r.type="empty",r.mathmlTree=t,r}static fencedMap_(e,t){t[e.id]=e.mathmlTree,e.embellished&&CaseEmbellished.fencedMap_(e.childNodes[0],t)}getMathml(){this.getFenced_(),this.fencedMml=EnrichMathml$6.walkTree(this.fenced),this.getFencesMml_(),"empty"!==this.fenced.type||this.fencedMml.parentNode||(this.fencedMml.setAttribute(enrich_attr_1$c.Attribute.ADDED,"true"),this.cfenceMml.parentNode.insertBefore(this.fencedMml,this.cfenceMml)),this.getFencedMml_();return this.rewrite_()}fencedElement(e){return"fenced"===e.type||"matrix"===e.type||"vector"===e.type}getFenced_(){let e=this.semantic;for(;!this.fencedElement(e);)e=e.childNodes[0];this.fenced=e.childNodes[0],this.ofence=e.contentNodes[0],this.cfence=e.contentNodes[1],CaseEmbellished.fencedMap_(this.ofence,this.ofenceMap),CaseEmbellished.fencedMap_(this.cfence,this.cfenceMap)}getFencedMml_(){let e=this.ofenceMml.nextSibling;for(e=e===this.fencedMml?e:this.fencedMml;e&&e!==this.cfenceMml;)this.fencedMmlNodes.push(e),e=e.nextSibling}getFencesMml_(){let e=this.semantic;const t=Object.keys(this.ofenceMap),r=Object.keys(this.cfenceMap);for(;!(this.ofenceMml&&this.cfenceMml||e===this.fenced);)-1===t.indexOf(e.fencePointer)||this.ofenceMml||(this.ofenceMml=e.mathmlTree),-1===r.indexOf(e.fencePointer)||this.cfenceMml||(this.cfenceMml=e.mathmlTree),e=e.childNodes[0];this.ofenceMml||(this.ofenceMml=this.ofence.mathmlTree),this.cfenceMml||(this.cfenceMml=this.cfence.mathmlTree),this.ofenceMml&&(this.ofenceMml=EnrichMathml$6.ascendNewNode(this.ofenceMml)),this.cfenceMml&&(this.cfenceMml=EnrichMathml$6.ascendNewNode(this.cfenceMml))}rewrite_(){let e=this.semantic,t=null;const r=this.introduceNewLayer_();for((0,enrich_attr_1$c.setAttributes)(r,this.fenced.parent);!this.fencedElement(e);){const n=e.mathmlTree,o=this.specialCase_(e,n);if(o)e=o;else{(0,enrich_attr_1$c.setAttributes)(n,e);const t=[];for(let r,n=1;r=e.childNodes[n];n++)t.push(EnrichMathml$6.walkTree(r));e=e.childNodes[0]}const i=DomUtil$b.createElement("dummy"),a=n.childNodes[0];DomUtil$b.replaceNode(n,i),DomUtil$b.replaceNode(r,n),DomUtil$b.replaceNode(n.childNodes[0],r),DomUtil$b.replaceNode(i,a),t||(t=n)}return EnrichMathml$6.walkTree(this.ofence),EnrichMathml$6.walkTree(this.cfence),this.cleanupParents_(),t||r}specialCase_(e,t){const r=DomUtil$b.tagName(t);let n,o=null;if("MSUBSUP"===r?(o=e.childNodes[0],n=case_double_script_1$1.CaseDoubleScript):"MMULTISCRIPTS"===r&&("superscript"===e.type||"subscript"===e.type?n=case_multiscripts_1$1.CaseMultiscripts:"tensor"===e.type&&(n=case_tensor_1$1.CaseTensor),o=n&&e.childNodes[0]&&"subsup"===e.childNodes[0].role?e.childNodes[0]:e),!o)return null;const i=o.childNodes[0],a=CaseEmbellished.makeEmptyNode_(i.id);return o.childNodes[0]=a,t=new n(e).getMathml(),o.childNodes[0]=i,this.parentCleanup.push(t),o.childNodes[0]}introduceNewLayer_(){const e=this.fullFence(this.ofenceMml),t=this.fullFence(this.cfenceMml);let r=DomUtil$b.createElement("mrow");if(DomUtil$b.replaceNode(this.fencedMml,r),this.fencedMmlNodes.forEach((e=>r.appendChild(e))),r.insertBefore(e,this.fencedMml),r.appendChild(t),!r.parentNode){const e=DomUtil$b.createElement("mrow");for(;r.childNodes.length>0;)e.appendChild(r.childNodes[0]);r.appendChild(e),r=e}return r}fullFence(e){const t=this.fencedMml.parentNode;let r=e;for(;r.parentNode&&r.parentNode!==t;)r=r.parentNode;return r}cleanupParents_(){this.parentCleanup.forEach((function(e){const t=e.childNodes[1].getAttribute(enrich_attr_1$c.Attribute.PARENT);e.childNodes[0].setAttribute(enrich_attr_1$c.Attribute.PARENT,t)}))}}case_embellished.CaseEmbellished=CaseEmbellished;var case_limit={};Object.defineProperty(case_limit,"__esModule",{value:!0}),case_limit.CaseLimit=void 0;const DomUtil$a=dom_util,abstract_enrich_case_1$4=abstract_enrich_case,EnrichMathml$5=enrich_mathml,enrich_attr_1$b=enrich_attr;class CaseLimit extends abstract_enrich_case_1$4.AbstractEnrichCase{constructor(e){super(e),this.mml=e.mathmlTree}static test(e){if(!e.mathmlTree||!e.childNodes.length)return!1;const t=DomUtil$a.tagName(e.mathmlTree),r=e.type;return("limupper"===r||"limlower"===r)&&("MSUBSUP"===t||"MUNDEROVER"===t)||"limboth"===r&&("MSUB"===t||"MUNDER"===t||"MSUP"===t||"MOVER"===t)}static walkTree_(e){e&&EnrichMathml$5.walkTree(e)}getMathml(){const e=this.semantic.childNodes;return"limboth"!==this.semantic.type&&this.mml.childNodes.length>=3&&(this.mml=EnrichMathml$5.introduceNewLayer([this.mml],this.semantic)),(0,enrich_attr_1$b.setAttributes)(this.mml,this.semantic),e[0].mathmlTree||(e[0].mathmlTree=this.semantic.mathmlTree),e.forEach(CaseLimit.walkTree_),this.mml}}case_limit.CaseLimit=CaseLimit;var case_line={};Object.defineProperty(case_line,"__esModule",{value:!0}),case_line.CaseLine=void 0;const abstract_enrich_case_1$3=abstract_enrich_case,EnrichMathml$4=enrich_mathml,enrich_attr_1$a=enrich_attr;class CaseLine extends abstract_enrich_case_1$3.AbstractEnrichCase{constructor(e){super(e),this.mml=e.mathmlTree}static test(e){return!!e.mathmlTree&&"line"===e.type}getMathml(){return this.semantic.contentNodes.length&&EnrichMathml$4.walkTree(this.semantic.contentNodes[0]),this.semantic.childNodes.length&&EnrichMathml$4.walkTree(this.semantic.childNodes[0]),(0,enrich_attr_1$a.setAttributes)(this.mml,this.semantic),this.mml}}case_line.CaseLine=CaseLine;var case_proof={};Object.defineProperty(case_proof,"__esModule",{value:!0}),case_proof.CaseProof=void 0;const abstract_enrich_case_1$2=abstract_enrich_case,EnrichMathml$3=enrich_mathml,enrich_attr_1$9=enrich_attr;class CaseProof extends abstract_enrich_case_1$2.AbstractEnrichCase{constructor(e){super(e),this.mml=e.mathmlTree}static test(e){return!!e.mathmlTree&&("inference"===e.type||"premises"===e.type)}getMathml(){return this.semantic.childNodes.length?(this.semantic.contentNodes.forEach((function(e){EnrichMathml$3.walkTree(e),(0,enrich_attr_1$9.setAttributes)(e.mathmlTree,e)})),this.semantic.childNodes.forEach((function(e){EnrichMathml$3.walkTree(e)})),(0,enrich_attr_1$9.setAttributes)(this.mml,this.semantic),this.mml.getAttribute("data-semantic-id")===this.mml.getAttribute("data-semantic-parent")&&this.mml.removeAttribute("data-semantic-parent"),this.mml):this.mml}}case_proof.CaseProof=CaseProof;var case_table={};Object.defineProperty(case_table,"__esModule",{value:!0}),case_table.CaseTable=void 0;const DomUtil$9=dom_util,abstract_enrich_case_1$1=abstract_enrich_case,EnrichMathml$2=enrich_mathml,enrich_attr_1$8=enrich_attr;class CaseTable extends abstract_enrich_case_1$1.AbstractEnrichCase{constructor(e){super(e),this.inner=[],this.mml=e.mathmlTree}static test(e){return"matrix"===e.type||"vector"===e.type||"cases"===e.type}getMathml(){const e=EnrichMathml$2.cloneContentNode(this.semantic.contentNodes[0]),t=this.semantic.contentNodes[1]?EnrichMathml$2.cloneContentNode(this.semantic.contentNodes[1]):null;if(this.inner=this.semantic.childNodes.map(EnrichMathml$2.walkTree),this.mml)if("MFENCED"===DomUtil$9.tagName(this.mml)){const r=this.mml.childNodes;this.mml.insertBefore(e,r[0]||null),t&&this.mml.appendChild(t),this.mml=EnrichMathml$2.rewriteMfenced(this.mml)}else{const r=[e,this.mml];t&&r.push(t),this.mml=EnrichMathml$2.introduceNewLayer(r,this.semantic)}else this.mml=EnrichMathml$2.introduceNewLayer([e].concat(this.inner,[t]),this.semantic);return(0,enrich_attr_1$8.setAttributes)(this.mml,this.semantic),this.mml}}case_table.CaseTable=CaseTable;var case_text={};Object.defineProperty(case_text,"__esModule",{value:!0}),case_text.CaseText=void 0;const abstract_enrich_case_1=abstract_enrich_case,EnrichMathml$1=enrich_mathml,enrich_attr_1$7=enrich_attr;class CaseText extends abstract_enrich_case_1.AbstractEnrichCase{constructor(e){super(e),this.mml=e.mathmlTree}static test(e){return"punctuated"===e.type&&("text"===e.role||e.contentNodes.every((e=>"dummy"===e.role)))}getMathml(){const e=[],t=EnrichMathml$1.collapsePunctuated(this.semantic,e);return this.mml=EnrichMathml$1.introduceNewLayer(e,this.semantic),(0,enrich_attr_1$7.setAttributes)(this.mml,this.semantic),this.mml.removeAttribute(enrich_attr_1$7.Attribute.CONTENT),EnrichMathml$1.addCollapsedAttribute(this.mml,t),this.mml}}case_text.CaseText=CaseText,Object.defineProperty(enrich_case_factory,"__esModule",{value:!0});const case_binomial_1=case_binomial,case_double_script_1=case_double_script,case_embellished_1=case_embellished,case_limit_1=case_limit,case_line_1=case_line,case_multiscripts_1=case_multiscripts,case_proof_1=case_proof,case_table_1=case_table,case_tensor_1=case_tensor,case_text_1=case_text,enrich_case_1=enrich_case;enrich_case_1.factory.push({test:case_limit_1.CaseLimit.test,constr:e=>new case_limit_1.CaseLimit(e)},{test:case_embellished_1.CaseEmbellished.test,constr:e=>new case_embellished_1.CaseEmbellished(e)},{test:case_double_script_1.CaseDoubleScript.test,constr:e=>new case_double_script_1.CaseDoubleScript(e)},{test:case_tensor_1.CaseTensor.test,constr:e=>new case_tensor_1.CaseTensor(e)},{test:case_multiscripts_1.CaseMultiscripts.test,constr:e=>new case_multiscripts_1.CaseMultiscripts(e)},{test:case_line_1.CaseLine.test,constr:e=>new case_line_1.CaseLine(e)},{test:case_binomial_1.CaseBinomial.test,constr:e=>new case_binomial_1.CaseBinomial(e)},{test:case_proof_1.CaseProof.test,constr:e=>new case_proof_1.CaseProof(e)},{test:case_table_1.CaseTable.test,constr:e=>new case_table_1.CaseTable(e)},{test:case_text_1.CaseText.test,constr:e=>new case_text_1.CaseText(e)}),Object.defineProperty(enrich,"__esModule",{value:!0}),enrich.prepareMmlString=enrich.testTranslation=enrich.semanticMathml=enrich.semanticMathmlSync=enrich.semanticMathmlNode=void 0;const debugger_1=_debugger,DomUtil$8=dom_util,engine_1$2=engine,Semantic$1=semantic,EnrichMathml=enrich_mathml;function semanticMathmlNode(e){const t=DomUtil$8.cloneNode(e),r=Semantic$1.getTree(t);return EnrichMathml.enrich(t,r)}function semanticMathmlSync(e){return semanticMathmlNode(DomUtil$8.parseInput(e))}function semanticMathml(e,t){engine_1$2.EnginePromise.getall().then((()=>{const r=DomUtil$8.parseInput(e);t(semanticMathmlNode(r))}))}function testTranslation(e){debugger_1.Debugger.getInstance().init();const t=semanticMathmlSync(prepareMmlString(e));return debugger_1.Debugger.getInstance().exit(),t}function prepareMmlString(e){return e.match(/^<math/)||(e="<math>"+e),e.match(/\/math>$/)||(e+="</math>"),e}enrich.semanticMathmlNode=semanticMathmlNode,enrich.semanticMathmlSync=semanticMathmlSync,enrich.semanticMathml=semanticMathml,enrich.testTranslation=testTranslation,enrich.prepareMmlString=prepareMmlString;var highlighter_factory={},chtml_highlighter={},css_highlighter={},abstract_highlighter={};Object.defineProperty(abstract_highlighter,"__esModule",{value:!0}),abstract_highlighter.AbstractHighlighter=void 0;const XpathUtil$4=xpath_util,enrich_attr_1$6=enrich_attr;class AbstractHighlighter{constructor(){this.color=null,this.mactionName="",this.currentHighlights=[]}highlight(e){this.currentHighlights.push(e.map((e=>{const t=this.highlightNode(e);return this.setHighlighted(e),t})))}highlightAll(e){const t=this.getMactionNodes(e);for(let e,r=0;e=t[r];r++)this.highlight([e])}unhighlight(){const e=this.currentHighlights.pop();e&&e.forEach((e=>{this.isHighlighted(e.node)&&(this.unhighlightNode(e),this.unsetHighlighted(e.node))}))}unhighlightAll(){for(;this.currentHighlights.length>0;)this.unhighlight()}setColor(e){this.color=e}colorString(){return this.color.rgba()}addEvents(e,t){const r=this.getMactionNodes(e);for(let e,n=0;e=r[n];n++)for(const r in t)e.addEventListener(r,t[r])}getMactionNodes(e){return Array.from(e.getElementsByClassName(this.mactionName))}isMactionNode(e){const t=e.className||e.getAttribute("class");return!!t&&!!t.match(new RegExp(this.mactionName))}isHighlighted(e){return e.hasAttribute(AbstractHighlighter.ATTR)}setHighlighted(e){e.setAttribute(AbstractHighlighter.ATTR,"true")}unsetHighlighted(e){e.removeAttribute(AbstractHighlighter.ATTR)}colorizeAll(e){XpathUtil$4.evalXPath(`.//*[@${enrich_attr_1$6.Attribute.ID}]`,e).forEach((e=>this.colorize(e)))}uncolorizeAll(e){XpathUtil$4.evalXPath(`.//*[@${enrich_attr_1$6.Attribute.ID}]`,e).forEach((e=>this.uncolorize(e)))}colorize(e){const t=(0,enrich_attr_1$6.addPrefix)("foreground");e.hasAttribute(t)&&(e.setAttribute(t+"-old",e.style.color),e.style.color=e.getAttribute(t))}uncolorize(e){const t=(0,enrich_attr_1$6.addPrefix)("foreground")+"-old";e.hasAttribute(t)&&(e.style.color=e.getAttribute(t))}}abstract_highlighter.AbstractHighlighter=AbstractHighlighter,AbstractHighlighter.ATTR="sre-highlight",Object.defineProperty(css_highlighter,"__esModule",{value:!0}),css_highlighter.CssHighlighter=void 0;const abstract_highlighter_1$4=abstract_highlighter;class CssHighlighter extends abstract_highlighter_1$4.AbstractHighlighter{constructor(){super(),this.mactionName="mjx-maction"}highlightNode(e){const t={node:e,background:e.style.backgroundColor,foreground:e.style.color},r=this.colorString();return e.style.backgroundColor=r.background,e.style.color=r.foreground,t}unhighlightNode(e){e.node.style.backgroundColor=e.background,e.node.style.color=e.foreground}}css_highlighter.CssHighlighter=CssHighlighter,Object.defineProperty(chtml_highlighter,"__esModule",{value:!0}),chtml_highlighter.ChtmlHighlighter=void 0;const css_highlighter_1$1=css_highlighter;class ChtmlHighlighter extends css_highlighter_1$1.CssHighlighter{constructor(){super()}isMactionNode(e){return e.tagName.toUpperCase()===this.mactionName.toUpperCase()}getMactionNodes(e){return Array.from(e.getElementsByTagName(this.mactionName))}}chtml_highlighter.ChtmlHighlighter=ChtmlHighlighter;var color_picker={};Object.defineProperty(color_picker,"__esModule",{value:!0}),color_picker.ContrastPicker=color_picker.ColorPicker=void 0;const namedColors={red:{red:255,green:0,blue:0},green:{red:0,green:255,blue:0},blue:{red:0,green:0,blue:255},yellow:{red:255,green:255,blue:0},cyan:{red:0,green:255,blue:255},magenta:{red:255,green:0,blue:255},white:{red:255,green:255,blue:255},black:{red:0,green:0,blue:0}};function getChannelColor(e,t){const r=e||{color:t};let n=Object.prototype.hasOwnProperty.call(r,"color")?namedColors[r.color]:r;return n||(n=namedColors[t]),n.alpha=Object.prototype.hasOwnProperty.call(r,"alpha")?r.alpha:1,normalizeColor(n)}function normalizeColor(e){const t=e=>(e=Math.max(e,0),e=Math.min(255,e),Math.round(e));return e.red=t(e.red),e.green=t(e.green),e.blue=t(e.blue),e.alpha=Math.max(e.alpha,0),e.alpha=Math.min(1,e.alpha),e}class ColorPicker{constructor(e,t){this.foreground=getChannelColor(t,ColorPicker.DEFAULT_FOREGROUND_),this.background=getChannelColor(e,ColorPicker.DEFAULT_BACKGROUND_)}static toHex(e){const t=e.toString(16);return 1===t.length?"0"+t:t}rgba(){const e=function(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"};return{background:e(this.background),foreground:e(this.foreground)}}rgb(){const e=function(e){return"rgb("+e.red+","+e.green+","+e.blue+")"};return{background:e(this.background),alphaback:this.background.alpha.toString(),foreground:e(this.foreground),alphafore:this.foreground.alpha.toString()}}hex(){const e=function(e){return"#"+ColorPicker.toHex(e.red)+ColorPicker.toHex(e.green)+ColorPicker.toHex(e.blue)};return{background:e(this.background),alphaback:this.background.alpha.toString(),foreground:e(this.foreground),alphafore:this.foreground.alpha.toString()}}}function hsl2rgb(e,t,r){t=t>1?t/100:t,r=r>1?r/100:r;const n=(1-Math.abs(2*r-1))*t,o=n*(1-Math.abs(e/60%2-1)),i=r-n/2;let a=0,s=0,l=0;return 0<=e&&e<60?[a,s,l]=[n,o,0]:60<=e&&e<120?[a,s,l]=[o,n,0]:120<=e&&e<180?[a,s,l]=[0,n,o]:180<=e&&e<240?[a,s,l]=[0,o,n]:240<=e&&e<300?[a,s,l]=[o,0,n]:300<=e&&e<360&&([a,s,l]=[n,0,o]),{red:a+i,green:s+i,blue:l+i}}function rgb2RGB(e){return{red:Math.round(255*e.red),green:Math.round(255*e.green),blue:Math.round(255*e.blue)}}function RGB2hex(e){return"rgb("+e.red+","+e.green+","+e.blue+")"}color_picker.ColorPicker=ColorPicker,ColorPicker.DEFAULT_BACKGROUND_="blue",ColorPicker.DEFAULT_FOREGROUND_="black";class ContrastPicker{constructor(){this.hue=10,this.sat=100,this.light=50,this.incr=50}generate(){return RGB2hex(rgb2RGB(hsl2rgb(this.hue,this.sat,this.light)))}increment(){this.hue=(this.hue+this.incr)%360}}color_picker.ContrastPicker=ContrastPicker;var html_highlighter={};Object.defineProperty(html_highlighter,"__esModule",{value:!0}),html_highlighter.HtmlHighlighter=void 0;const DomUtil$7=dom_util,abstract_highlighter_1$3=abstract_highlighter;class HtmlHighlighter extends abstract_highlighter_1$3.AbstractHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(e){const t={node:e,foreground:e.style.color,position:e.style.position},r=this.color.rgb();e.style.color=r.foreground,e.style.position="relative";const n=e.bbox;if(n&&n.w){const o=.05,i=0,a=DomUtil$7.createElement("span"),s=parseFloat(e.style.paddingLeft||"0");a.style.backgroundColor=r.background,a.style.opacity=r.alphaback.toString(),a.style.display="inline-block",a.style.height=n.h+n.d+2*o+"em",a.style.verticalAlign=-n.d+"em",a.style.marginTop=a.style.marginBottom=-o+"em",a.style.width=n.w+2*i+"em",a.style.marginLeft=s-i+"em",a.style.marginRight=-n.w-i-s+"em",e.parentNode.insertBefore(a,e),t.box=a}return t}unhighlightNode(e){const t=e.node;t.style.color=e.foreground,t.style.position=e.position,e.box&&e.box.parentNode.removeChild(e.box)}}html_highlighter.HtmlHighlighter=HtmlHighlighter;var mml_css_highlighter={};Object.defineProperty(mml_css_highlighter,"__esModule",{value:!0}),mml_css_highlighter.MmlCssHighlighter=void 0;const css_highlighter_1=css_highlighter;class MmlCssHighlighter extends css_highlighter_1.CssHighlighter{constructor(){super(),this.mactionName="maction"}getMactionNodes(e){return Array.from(e.getElementsByTagName(this.mactionName))}isMactionNode(e){return e.tagName===this.mactionName}}mml_css_highlighter.MmlCssHighlighter=MmlCssHighlighter;var mml_highlighter={};Object.defineProperty(mml_highlighter,"__esModule",{value:!0}),mml_highlighter.MmlHighlighter=void 0;const abstract_highlighter_1$2=abstract_highlighter;class MmlHighlighter extends abstract_highlighter_1$2.AbstractHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(e){let t=e.getAttribute("style");return t+=";background-color: "+this.colorString().background,t+=";color: "+this.colorString().foreground,e.setAttribute("style",t),{node:e}}unhighlightNode(e){let t=e.node.getAttribute("style");t=t.replace(";background-color: "+this.colorString().background,""),t=t.replace(";color: "+this.colorString().foreground,""),e.node.setAttribute("style",t)}colorString(){return this.color.rgba()}getMactionNodes(e){return Array.from(e.getElementsByTagName(this.mactionName))}isMactionNode(e){return e.tagName===this.mactionName}}mml_highlighter.MmlHighlighter=MmlHighlighter;var svg_highlighter={};Object.defineProperty(svg_highlighter,"__esModule",{value:!0}),svg_highlighter.SvgHighlighter=void 0;const DomUtil$6=dom_util,abstract_highlighter_1$1=abstract_highlighter;class SvgHighlighter extends abstract_highlighter_1$1.AbstractHighlighter{constructor(){super(),this.mactionName="mjx-svg-maction"}highlightNode(e){let t;if(this.isHighlighted(e))return t={node:e.previousSibling||e,background:e.style.backgroundColor,foreground:e.style.color},t;if("svg"===e.tagName){const t={node:e,background:e.style.backgroundColor,foreground:e.style.color};return e.style.backgroundColor=this.colorString().background,e.style.color=this.colorString().foreground,t}const r=DomUtil$6.createElementNS("http://www.w3.org/2000/svg","rect");let n;if("use"===e.nodeName){const t=DomUtil$6.createElementNS("http://www.w3.org/2000/svg","g");e.parentNode.insertBefore(t,e),t.appendChild(e),n=t.getBBox(),t.parentNode.replaceChild(e,t)}else n=e.getBBox();r.setAttribute("x",(n.x-40).toString()),r.setAttribute("y",(n.y-40).toString()),r.setAttribute("width",(n.width+80).toString()),r.setAttribute("height",(n.height+80).toString());const o=e.getAttribute("transform");return o&&r.setAttribute("transform",o),r.setAttribute("fill",this.colorString().background),r.setAttribute(abstract_highlighter_1$1.AbstractHighlighter.ATTR,"true"),e.parentNode.insertBefore(r,e),t={node:r,foreground:e.getAttribute("fill")},e.setAttribute("fill",this.colorString().foreground),t}setHighlighted(e){"svg"===e.tagName&&super.setHighlighted(e)}unhighlightNode(e){if("background"in e)return e.node.style.backgroundColor=e.background,void(e.node.style.color=e.foreground);e.foreground?e.node.nextSibling.setAttribute("fill",e.foreground):e.node.nextSibling.removeAttribute("fill"),e.node.parentNode.removeChild(e.node)}isMactionNode(e){let t=e.className||e.getAttribute("class");return t=void 0!==t.baseVal?t.baseVal:t,!!t&&!!t.match(new RegExp(this.mactionName))}}svg_highlighter.SvgHighlighter=SvgHighlighter;var svg_v3_highlighter={};Object.defineProperty(svg_v3_highlighter,"__esModule",{value:!0}),svg_v3_highlighter.SvgV3Highlighter=void 0;const DomUtil$5=dom_util,XpathUtil$3=xpath_util,abstract_highlighter_1=abstract_highlighter,color_picker_1$1=color_picker,svg_highlighter_1=svg_highlighter;class SvgV3Highlighter extends svg_highlighter_1.SvgHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(e){let t;if(this.isHighlighted(e))return t={node:e,background:this.colorString().background,foreground:this.colorString().foreground},t;if("svg"===e.tagName||"MJX-CONTAINER"===e.tagName)return t={node:e,background:e.style.backgroundColor,foreground:e.style.color},e.style.backgroundColor=this.colorString().background,e.style.color=this.colorString().foreground,t;const r=DomUtil$5.createElementNS("http://www.w3.org/2000/svg","rect");r.setAttribute("sre-highlighter-added","true");const n=e.getBBox();r.setAttribute("x",(n.x-40).toString()),r.setAttribute("y",(n.y-40).toString()),r.setAttribute("width",(n.width+80).toString()),r.setAttribute("height",(n.height+80).toString());const o=e.getAttribute("transform");if(o&&r.setAttribute("transform",o),r.setAttribute("fill",this.colorString().background),e.setAttribute(abstract_highlighter_1.AbstractHighlighter.ATTR,"true"),e.parentNode.insertBefore(r,e),t={node:e,foreground:e.getAttribute("fill")},"rect"===e.nodeName){const t=new color_picker_1$1.ColorPicker({alpha:0,color:"black"});e.setAttribute("fill",t.rgba().foreground)}else e.setAttribute("fill",this.colorString().foreground);return t}unhighlightNode(e){const t=e.node.previousSibling;if(t&&t.hasAttribute("sre-highlighter-added"))return e.foreground?e.node.setAttribute("fill",e.foreground):e.node.removeAttribute("fill"),void e.node.parentNode.removeChild(t);e.node.style.backgroundColor=e.background,e.node.style.color=e.foreground}isMactionNode(e){return e.getAttribute("data-mml-node")===this.mactionName}getMactionNodes(e){return Array.from(XpathUtil$3.evalXPath(`.//*[@data-mml-node="${this.mactionName}"]`,e))}}svg_v3_highlighter.SvgV3Highlighter=SvgV3Highlighter,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.highlighterMapping_=e.addEvents=e.highlighter=void 0;const t=chtml_highlighter,r=color_picker,n=css_highlighter,o=html_highlighter,i=mml_css_highlighter,a=mml_highlighter,s=svg_highlighter,l=svg_v3_highlighter;e.highlighter=function(t,n,o){const i=new r.ColorPicker(t,n),a="NativeMML"===o.renderer&&"Safari"===o.browser?"MML-CSS":"SVG"===o.renderer&&"v3"===o.browser?"SVG-V3":o.renderer,s=new(e.highlighterMapping_[a]||e.highlighterMapping_.NativeMML);return s.setColor(i),s},e.addEvents=function(t,r,n){const o=e.highlighterMapping_[n.renderer];o&&(new o).addEvents(t,r)},e.highlighterMapping_={SVG:s.SvgHighlighter,"SVG-V3":l.SvgV3Highlighter,NativeMML:a.MmlHighlighter,"HTML-CSS":o.HtmlHighlighter,"MML-CSS":i.MmlCssHighlighter,CommonHTML:n.CssHighlighter,CHTML:t.ChtmlHighlighter}}(highlighter_factory),getDefaultExportFromCjs$1(highlighter_factory);var speech_generator_factory={},adhoc_speech_generator={},abstract_speech_generator={},rebuild_stree={},walker_util={};Object.defineProperty(walker_util,"__esModule",{value:!0}),walker_util.getBySemanticId=walker_util.getSemanticRoot=walker_util.getAttribute=walker_util.splitAttribute=void 0;const DomUtil$4=dom_util,enrich_attr_1$5=enrich_attr;function splitAttribute(e){return e?e.split(/,/):[]}function getAttribute(e,t){return e.getAttribute(t)}function getSemanticRoot(e){if(e.hasAttribute(enrich_attr_1$5.Attribute.TYPE)&&!e.hasAttribute(enrich_attr_1$5.Attribute.PARENT))return e;const t=DomUtil$4.querySelectorAllByAttr(e,enrich_attr_1$5.Attribute.TYPE);for(let e,r=0;e=t[r];r++)if(!e.hasAttribute(enrich_attr_1$5.Attribute.PARENT))return e;return e}function getBySemanticId(e,t){return e.getAttribute(enrich_attr_1$5.Attribute.ID)===t?e:DomUtil$4.querySelectorAllByAttrValue(e,enrich_attr_1$5.Attribute.ID,t)[0]}walker_util.splitAttribute=splitAttribute,walker_util.getAttribute=getAttribute,walker_util.getSemanticRoot=getSemanticRoot,walker_util.getBySemanticId=getBySemanticId,Object.defineProperty(rebuild_stree,"__esModule",{value:!0}),rebuild_stree.RebuildStree=void 0;const enrich_attr_1$4=enrich_attr,semantic_attr_1=semantic_attr,semantic_node_factory_1=semantic_node_factory,semantic_processor_1=semantic_processor,semantic_skeleton_1$1=semantic_skeleton,semantic_tree_1$1=semantic_tree,WalkerUtil$8=walker_util;class RebuildStree{constructor(e){this.mathml=e,this.factory=new semantic_node_factory_1.SemanticNodeFactory,this.nodeDict={},this.mmlRoot=WalkerUtil$8.getSemanticRoot(e),this.streeRoot=this.assembleTree(this.mmlRoot),this.stree=semantic_tree_1$1.SemanticTree.fromNode(this.streeRoot,this.mathml),this.xml=this.stree.xml(),semantic_processor_1.default.getInstance().setNodeFactory(this.factory)}static textContent(e,t,r){if(!r&&t.textContent)return void(e.textContent=t.textContent);const n=WalkerUtil$8.splitAttribute(WalkerUtil$8.getAttribute(t,enrich_attr_1$4.Attribute.OPERATOR));n.length>1&&(e.textContent=n[1])}static isPunctuated(e){return!semantic_skeleton_1$1.SemanticSkeleton.simpleCollapseStructure(e)&&e[1]&&semantic_skeleton_1$1.SemanticSkeleton.contentCollapseStructure(e[1])}getTree(){return this.stree}assembleTree(e){const t=this.makeNode(e),r=WalkerUtil$8.splitAttribute(WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.CHILDREN)),n=WalkerUtil$8.splitAttribute(WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.CONTENT));if(0===n.length&&0===r.length)return RebuildStree.textContent(t,e),t;if(n.length>0){const e=WalkerUtil$8.getBySemanticId(this.mathml,n[0]);e&&RebuildStree.textContent(t,e,!0)}t.contentNodes=n.map((e=>this.setParent(e,t))),t.childNodes=r.map((e=>this.setParent(e,t)));const o=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.COLLAPSED);return o?this.postProcess(t,o):t}makeNode(e){const t=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.TYPE),r=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.ROLE),n=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.FONT),o=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.ANNOTATION)||"",i=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.ATTRIBUTES)||"",a=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.ID),s=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.EMBELLISHED),l=WalkerUtil$8.getAttribute(e,enrich_attr_1$4.Attribute.FENCEPOINTER),c=this.createNode(parseInt(a,10));return c.type=t,c.role=r,c.font=n||"unknown",c.parseAnnotation(o),c.parseAttributes(i),l&&(c.fencePointer=l),s&&(c.embellished=s),c}makePunctuation(e){const t=this.createNode(e);return t.updateContent((0,semantic_attr_1.invisibleComma)()),t.role="dummy",t}makePunctuated(e,t,r){const n=this.createNode(t[0]);n.type="punctuated",n.embellished=e.embellished,n.fencePointer=e.fencePointer,n.role=r;const o=t.splice(1,1)[0].slice(1);n.contentNodes=o.map(this.makePunctuation.bind(this)),this.collapsedChildren_(t)}makeEmpty(e,t,r){const n=this.createNode(t);n.type="empty",n.embellished=e.embellished,n.fencePointer=e.fencePointer,n.role=r}makeIndex(e,t,r){if(RebuildStree.isPunctuated(t))return this.makePunctuated(e,t,r),void(t=t[0]);semantic_skeleton_1$1.SemanticSkeleton.simpleCollapseStructure(t)&&!this.nodeDict[t.toString()]&&this.makeEmpty(e,t,r)}postProcess(e,t){const r=semantic_skeleton_1$1.SemanticSkeleton.fromString(t).array;if("subsup"===e.type){const t=this.createNode(r[1][0]);return t.type="subscript",t.role="subsup",e.type="superscript",t.embellished=e.embellished,t.fencePointer=e.fencePointer,this.makeIndex(e,r[1][2],"rightsub"),this.makeIndex(e,r[2],"rightsuper"),this.collapsedChildren_(r),e}if("subscript"===e.type)return this.makeIndex(e,r[2],"rightsub"),this.collapsedChildren_(r),e;if("superscript"===e.type)return this.makeIndex(e,r[2],"rightsuper"),this.collapsedChildren_(r),e;if("tensor"===e.type)return this.makeIndex(e,r[2],"leftsub"),this.makeIndex(e,r[3],"leftsuper"),this.makeIndex(e,r[4],"rightsub"),this.makeIndex(e,r[5],"rightsuper"),this.collapsedChildren_(r),e;if("punctuated"===e.type){if(RebuildStree.isPunctuated(r)){const t=r.splice(1,1)[0].slice(1);e.contentNodes=t.map(this.makePunctuation.bind(this))}return e}if("underover"===e.type){const t=this.createNode(r[1][0]);return"overaccent"===e.childNodes[1].role?(t.type="overscore",e.type="underscore"):(t.type="underscore",e.type="overscore"),t.role="underover",t.embellished=e.embellished,t.fencePointer=e.fencePointer,this.collapsedChildren_(r),e}return e}createNode(e){const t=this.factory.makeNode(e);return this.nodeDict[e.toString()]=t,t}collapsedChildren_(e){const t=e=>{const r=this.nodeDict[e[0]];r.childNodes=[];for(let n=1,o=e.length;n<o;n++){const o=e[n];r.childNodes.push(semantic_skeleton_1$1.SemanticSkeleton.simpleCollapseStructure(o)?this.nodeDict[o]:t(o))}return r};t(e)}setParent(e,t){const r=WalkerUtil$8.getBySemanticId(this.mathml,e),n=this.assembleTree(r);return n.parent=t,n}}rebuild_stree.RebuildStree=RebuildStree;var speech_generator_util={};Object.defineProperty(speech_generator_util,"__esModule",{value:!0}),speech_generator_util.computeSummary_=speech_generator_util.retrieveSummary=speech_generator_util.connectAllMactions=speech_generator_util.connectMactions=speech_generator_util.nodeAtPosition_=speech_generator_util.computePrefix_=speech_generator_util.retrievePrefix=speech_generator_util.addPrefix=speech_generator_util.addModality=speech_generator_util.addSpeech=speech_generator_util.recomputeMarkup=speech_generator_util.computeMarkup=speech_generator_util.recomputeSpeech=speech_generator_util.computeSpeech=void 0;const AuralRendering$2=aural_rendering,DomUtil$3=dom_util,XpathUtil$2=xpath_util,enrich_attr_1$3=enrich_attr,speech_rule_engine_1$1=speech_rule_engine,semantic_tree_1=semantic_tree,WalkerUtil$7=walker_util;function computeSpeech(e){return speech_rule_engine_1$1.SpeechRuleEngine.getInstance().evaluateNode(e)}function recomputeSpeech(e){return computeSpeech(semantic_tree_1.SemanticTree.fromNode(e).xml())}function computeMarkup(e){const t=computeSpeech(e);return AuralRendering$2.markup(t)}function recomputeMarkup(e){const t=recomputeSpeech(e);return AuralRendering$2.markup(t)}function addSpeech(e,t,r){const n=DomUtil$3.querySelectorAllByAttrValue(r,"id",t.id.toString())[0],o=n?AuralRendering$2.markup(computeSpeech(n)):recomputeMarkup(t);e.setAttribute(enrich_attr_1$3.Attribute.SPEECH,o)}function addModality(e,t,r){const n=recomputeMarkup(t);e.setAttribute(r,n)}function addPrefix(e,t){const r=retrievePrefix(t);r&&e.setAttribute(enrich_attr_1$3.Attribute.PREFIX,r)}function retrievePrefix(e){const t=computePrefix_(e);return AuralRendering$2.markup(t)}function computePrefix_(e){const t=semantic_tree_1.SemanticTree.fromRoot(e),r=XpathUtil$2.evalXPath('.//*[@id="'+e.id+'"]',t.xml());let n=r[0];return r.length>1&&(n=nodeAtPosition_(e,r)||n),n?speech_rule_engine_1$1.SpeechRuleEngine.getInstance().runInSetting({modality:"prefix",domain:"default",style:"default",strict:!0,speech:!0},(function(){return speech_rule_engine_1$1.SpeechRuleEngine.getInstance().evaluateNode(n)})):[]}function nodeAtPosition_(e,t){const r=t[0];if(!e.parent)return r;const n=[];for(;e;)n.push(e.id),e=e.parent;const o=function(e,t){for(;t.length&&t.shift().toString()===e.getAttribute("id")&&e.parentNode&&e.parentNode.parentNode;)e=e.parentNode.parentNode;return!t.length};for(let e,r=0;e=t[r];r++)if(o(e,n.slice()))return e;return r}function connectMactions(e,t,r){const n=DomUtil$3.querySelectorAll(t,"maction");for(let t,o=0;t=n[o];o++){const n=t.getAttribute("id"),o=DomUtil$3.querySelectorAllByAttrValue(e,"id",n)[0];if(!o)continue;const i=t.childNodes[1],a=i.getAttribute(enrich_attr_1$3.Attribute.ID);let s=WalkerUtil$7.getBySemanticId(e,a);if(s&&"dummy"!==s.getAttribute(enrich_attr_1$3.Attribute.TYPE))continue;if(s=o.childNodes[0],s.getAttribute("sre-highlighter-added"))continue;const l=i.getAttribute(enrich_attr_1$3.Attribute.PARENT);l&&s.setAttribute(enrich_attr_1$3.Attribute.PARENT,l),s.setAttribute(enrich_attr_1$3.Attribute.TYPE,"dummy"),s.setAttribute(enrich_attr_1$3.Attribute.ID,a);DomUtil$3.querySelectorAllByAttrValue(r,"id",a)[0].setAttribute("alternative",a)}}function connectAllMactions(e,t){const r=DomUtil$3.querySelectorAll(e,"maction");for(let e,n=0;e=r[n];n++){const r=e.childNodes[1].getAttribute(enrich_attr_1$3.Attribute.ID);DomUtil$3.querySelectorAllByAttrValue(t,"id",r)[0].setAttribute("alternative",r)}}function retrieveSummary(e){const t=computeSummary_(e);return AuralRendering$2.markup(t)}function computeSummary_(e){return e?speech_rule_engine_1$1.SpeechRuleEngine.getInstance().runInSetting({modality:"summary",strict:!1,speech:!0},(function(){return speech_rule_engine_1$1.SpeechRuleEngine.getInstance().evaluateNode(e)})):[]}speech_generator_util.computeSpeech=computeSpeech,speech_generator_util.recomputeSpeech=recomputeSpeech,speech_generator_util.computeMarkup=computeMarkup,speech_generator_util.recomputeMarkup=recomputeMarkup,speech_generator_util.addSpeech=addSpeech,speech_generator_util.addModality=addModality,speech_generator_util.addPrefix=addPrefix,speech_generator_util.retrievePrefix=retrievePrefix,speech_generator_util.computePrefix_=computePrefix_,speech_generator_util.nodeAtPosition_=nodeAtPosition_,speech_generator_util.connectMactions=connectMactions,speech_generator_util.connectAllMactions=connectAllMactions,speech_generator_util.retrieveSummary=retrieveSummary,speech_generator_util.computeSummary_=computeSummary_,Object.defineProperty(abstract_speech_generator,"__esModule",{value:!0}),abstract_speech_generator.AbstractSpeechGenerator=void 0;const engine_setup_1$1=engine_setup,EnrichAttr=enrich_attr,rebuild_stree_1$2=rebuild_stree,SpeechGeneratorUtil$4=speech_generator_util;class AbstractSpeechGenerator{constructor(){this.modality=EnrichAttr.addPrefix("speech"),this.rebuilt_=null,this.options_={}}getRebuilt(){return this.rebuilt_}setRebuilt(e){this.rebuilt_=e}setOptions(e){this.options_=e||{},this.modality=EnrichAttr.addPrefix(this.options_.modality||"speech")}getOptions(){return this.options_}start(){}end(){}generateSpeech(e,t){return this.rebuilt_||(this.rebuilt_=new rebuild_stree_1$2.RebuildStree(t)),(0,engine_setup_1$1.setup)(this.options_),SpeechGeneratorUtil$4.computeMarkup(this.getRebuilt().xml)}}abstract_speech_generator.AbstractSpeechGenerator=AbstractSpeechGenerator,Object.defineProperty(adhoc_speech_generator,"__esModule",{value:!0}),adhoc_speech_generator.AdhocSpeechGenerator=void 0;const abstract_speech_generator_1$5=abstract_speech_generator;class AdhocSpeechGenerator extends abstract_speech_generator_1$5.AbstractSpeechGenerator{getSpeech(e,t){const r=this.generateSpeech(e,t);return e.setAttribute(this.modality,r),r}}adhoc_speech_generator.AdhocSpeechGenerator=AdhocSpeechGenerator;var color_generator={};Object.defineProperty(color_generator,"__esModule",{value:!0}),color_generator.ColorGenerator=void 0;const enrich_attr_1$2=enrich_attr,color_picker_1=color_picker,rebuild_stree_1$1=rebuild_stree,WalkerUtil$6=walker_util,abstract_speech_generator_1$4=abstract_speech_generator;class ColorGenerator extends abstract_speech_generator_1$4.AbstractSpeechGenerator{constructor(){super(...arguments),this.modality=(0,enrich_attr_1$2.addPrefix)("foreground"),this.contrast=new color_picker_1.ContrastPicker}static visitStree_(e,t,r){if(e.childNodes.length){if(e.contentNodes.length&&("punctuated"===e.type&&e.contentNodes.forEach((e=>r[e.id]=!0)),"implicit"!==e.role&&t.push(e.contentNodes.map((e=>e.id)))),e.childNodes.length){if("implicit"===e.role){const n=[];let o=[];for(const t of e.childNodes){const e=[];ColorGenerator.visitStree_(t,e,r),e.length<=2&&n.push(e.shift()),o=o.concat(e)}return t.push(n),void o.forEach((e=>t.push(e)))}e.childNodes.forEach((e=>ColorGenerator.visitStree_(e,t,r)))}}else r[e.id]||t.push(e.id)}getSpeech(e,t){return WalkerUtil$6.getAttribute(e,this.modality)}generateSpeech(e,t){return this.getRebuilt()||this.setRebuilt(new rebuild_stree_1$1.RebuildStree(e)),this.colorLeaves_(e),WalkerUtil$6.getAttribute(e,this.modality)}colorLeaves_(e){const t=[];ColorGenerator.visitStree_(this.getRebuilt().streeRoot,t,{});for(const r of t){const t=this.contrast.generate();let n=!1;n=Array.isArray(r)?r.map((r=>this.colorLeave_(e,r,t))).reduce(((e,t)=>e||t),!1):this.colorLeave_(e,r.toString(),t),n&&this.contrast.increment()}}colorLeave_(e,t,r){const n=WalkerUtil$6.getBySemanticId(e,t);return!!n&&(n.setAttribute(this.modality,r),!0)}}color_generator.ColorGenerator=ColorGenerator;var direct_speech_generator={};Object.defineProperty(direct_speech_generator,"__esModule",{value:!0}),direct_speech_generator.DirectSpeechGenerator=void 0;const WalkerUtil$5=walker_util,abstract_speech_generator_1$3=abstract_speech_generator;class DirectSpeechGenerator extends abstract_speech_generator_1$3.AbstractSpeechGenerator{getSpeech(e,t){return WalkerUtil$5.getAttribute(e,this.modality)}}direct_speech_generator.DirectSpeechGenerator=DirectSpeechGenerator;var dummy_speech_generator={};Object.defineProperty(dummy_speech_generator,"__esModule",{value:!0}),dummy_speech_generator.DummySpeechGenerator=void 0;const abstract_speech_generator_1$2=abstract_speech_generator;class DummySpeechGenerator extends abstract_speech_generator_1$2.AbstractSpeechGenerator{getSpeech(e,t){return""}}dummy_speech_generator.DummySpeechGenerator=DummySpeechGenerator;var node_speech_generator={},tree_speech_generator={};Object.defineProperty(tree_speech_generator,"__esModule",{value:!0}),tree_speech_generator.TreeSpeechGenerator=void 0;const enrich_attr_1$1=enrich_attr,WalkerUtil$4=walker_util,abstract_speech_generator_1$1=abstract_speech_generator,SpeechGeneratorUtil$3=speech_generator_util;class TreeSpeechGenerator extends abstract_speech_generator_1$1.AbstractSpeechGenerator{getSpeech(e,t){const r=this.generateSpeech(e,t),n=this.getRebuilt().nodeDict;for(const r in n){const o=n[r],i=WalkerUtil$4.getBySemanticId(t,r),a=WalkerUtil$4.getBySemanticId(e,r);i&&a&&(this.modality&&this.modality!==enrich_attr_1$1.Attribute.SPEECH?SpeechGeneratorUtil$3.addModality(a,o,this.modality):SpeechGeneratorUtil$3.addSpeech(a,o,this.getRebuilt().xml),this.modality===enrich_attr_1$1.Attribute.SPEECH&&SpeechGeneratorUtil$3.addPrefix(a,o))}return r}}tree_speech_generator.TreeSpeechGenerator=TreeSpeechGenerator,Object.defineProperty(node_speech_generator,"__esModule",{value:!0}),node_speech_generator.NodeSpeechGenerator=void 0;const WalkerUtil$3=walker_util,tree_speech_generator_1=tree_speech_generator;class NodeSpeechGenerator extends tree_speech_generator_1.TreeSpeechGenerator{getSpeech(e,t){return super.getSpeech(e,t),WalkerUtil$3.getAttribute(e,this.modality)}}node_speech_generator.NodeSpeechGenerator=NodeSpeechGenerator;var summary_speech_generator={};Object.defineProperty(summary_speech_generator,"__esModule",{value:!0}),summary_speech_generator.SummarySpeechGenerator=void 0;const abstract_speech_generator_1=abstract_speech_generator,SpeechGeneratorUtil$2=speech_generator_util;class SummarySpeechGenerator extends abstract_speech_generator_1.AbstractSpeechGenerator{getSpeech(e,t){return SpeechGeneratorUtil$2.connectAllMactions(t,this.getRebuilt().xml),this.generateSpeech(e,t)}}summary_speech_generator.SummarySpeechGenerator=SummarySpeechGenerator,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.generatorMapping_=e.generator=void 0;const t=adhoc_speech_generator,r=color_generator,n=direct_speech_generator,o=dummy_speech_generator,i=node_speech_generator,a=summary_speech_generator,s=tree_speech_generator;e.generator=function(t){return(e.generatorMapping_[t]||e.generatorMapping_.Direct)()},e.generatorMapping_={Adhoc:()=>new t.AdhocSpeechGenerator,Color:()=>new r.ColorGenerator,Direct:()=>new n.DirectSpeechGenerator,Dummy:()=>new o.DummySpeechGenerator,Node:()=>new i.NodeSpeechGenerator,Summary:()=>new a.SummarySpeechGenerator,Tree:()=>new s.TreeSpeechGenerator}}(speech_generator_factory),getDefaultExportFromCjs$1(speech_generator_factory);var walker_factory={},dummy_walker={},abstract_walker={},clearspeak_preferences={};Object.defineProperty(clearspeak_preferences,"__esModule",{value:!0}),clearspeak_preferences.Parser=clearspeak_preferences.Comparator=clearspeak_preferences.ClearspeakPreferences=void 0;const engine_1$1=engine,EngineConst$2=engine_const,dynamic_cstr_1=dynamic_cstr,dynamic_cstr_2=dynamic_cstr,MathCompoundStore=math_compound_store,speech_rule_engine_1=speech_rule_engine;class ClearspeakPreferences extends dynamic_cstr_1.DynamicCstr{constructor(e,t){super(e),this.preference=t}static comparator(){return new Comparator(engine_1$1.default.getInstance().dynamicCstr,dynamic_cstr_2.DynamicProperties.createProp([dynamic_cstr_1.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_2.Axis.LOCALE]],[dynamic_cstr_1.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_2.Axis.MODALITY]],[dynamic_cstr_1.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_2.Axis.DOMAIN]],[dynamic_cstr_1.DynamicCstr.DEFAULT_VALUES[dynamic_cstr_2.Axis.STYLE]]))}static fromPreference(e){const t=e.split(":"),r={},n=PREFERENCES.getProperties(),o=Object.keys(n);for(let e,i=0;e=t[i];i++){const t=e.split("_");if(-1===o.indexOf(t[0]))continue;const i=t[1];i&&i!==ClearspeakPreferences.AUTO&&-1!==n[t[0]].indexOf(i)&&(r[t[0]]=t[1])}return r}static toPreference(e){const t=Object.keys(e),r=[];for(let n=0;n<t.length;n++)r.push(t[n]+"_"+e[t[n]]);return r.length?r.join(":"):dynamic_cstr_1.DynamicCstr.DEFAULT_VALUE}static getLocalePreferences(e){const t=e||MathCompoundStore.enumerate(speech_rule_engine_1.SpeechRuleEngine.getInstance().enumerate());return ClearspeakPreferences.getLocalePreferences_(t)}static smartPreferences(e,t){const r=ClearspeakPreferences.getLocalePreferences()[t];if(!r)return[];const n=e.explorers.speech,o=ClearspeakPreferences.relevantPreferences(n.walker.getFocus().getSemanticPrimary()),i=EngineConst$2.DOMAIN_TO_STYLES.clearspeak;return[{type:"radio",content:"No Preferences",id:"clearspeak-default",variable:"speechRules"},{type:"radio",content:"Current Preferences",id:"clearspeak-"+i,variable:"speechRules"},{type:"rule"},{type:"label",content:"Preferences for "+o},{type:"rule"}].concat(r[o].map((function(e){const t=e.split("_");return{type:"radio",content:t[1],id:"clearspeak-"+ClearspeakPreferences.addPreference(i,t[0],t[1]),variable:"speechRules"}})))}static relevantPreferences(e){const t=SEMANTIC_MAPPING_[e.type];return t&&(t[e.role]||t[""])||"ImpliedTimes"}static findPreference(e,t){if("default"===e)return ClearspeakPreferences.AUTO;return ClearspeakPreferences.fromPreference(e)[t]||ClearspeakPreferences.AUTO}static addPreference(e,t,r){if("default"===e)return t+"_"+r;const n=ClearspeakPreferences.fromPreference(e);return n[t]=r,ClearspeakPreferences.toPreference(n)}static getLocalePreferences_(e){const t={};for(const r in e){if(!e[r].speech||!e[r].speech.clearspeak)continue;const n=Object.keys(e[r].speech.clearspeak),o=t[r]={};for(const e in PREFERENCES.getProperties()){const t=PREFERENCES.getProperties()[e],r=[e+"_Auto"];if(t)for(const o of t)-1!==n.indexOf(e+"_"+o)&&r.push(e+"_"+o);o[e]=r}}return t}equal(e){if(!super.equal(e))return!1;const t=Object.keys(this.preference),r=e.preference;if(t.length!==Object.keys(r).length)return!1;for(let e,n=0;e=t[n];n++)if(this.preference[e]!==r[e])return!1;return!0}}clearspeak_preferences.ClearspeakPreferences=ClearspeakPreferences,ClearspeakPreferences.AUTO="Auto";const PREFERENCES=new dynamic_cstr_2.DynamicProperties({AbsoluteValue:["Auto","AbsEnd","Cardinality","Determinant"],Bar:["Auto","Conjugate"],Caps:["Auto","SayCaps"],CombinationPermutation:["Auto","ChoosePermute"],Currency:["Auto","Position","Prefix"],Ellipses:["Auto","AndSoOn"],Enclosed:["Auto","EndEnclose"],Exponent:["Auto","AfterPower","Ordinal","OrdinalPower","Exponent"],Fraction:["Auto","EndFrac","FracOver","General","GeneralEndFrac","Ordinal","Over","OverEndFrac","Per"],Functions:["Auto","None","Reciprocal"],ImpliedTimes:["Auto","MoreImpliedTimes","None"],Log:["Auto","LnAsNaturalLog"],Matrix:["Auto","Combinatoric","EndMatrix","EndVector","SilentColNum","SpeakColNum","Vector"],MultiLineLabel:["Auto","Case","Constraint","Equation","Line","None","Row","Step"],MultiLineOverview:["Auto","None"],MultiLinePausesBetweenColumns:["Auto","Long","Short"],MultsymbolDot:["Auto","Dot"],MultsymbolX:["Auto","By","Cross"],Paren:["Auto","CoordPoint","Interval","Silent","Speak","SpeakNestingLevel"],Prime:["Auto","Angle","Length"],Roots:["Auto","PosNegSqRoot","PosNegSqRootEnd","RootEnd"],SetMemberSymbol:["Auto","Belongs","Element","Member","In"],Sets:["Auto","SilentBracket","woAll"],TriangleSymbol:["Auto","Delta"],Trig:["Auto","ArcTrig","TrigInverse","Reciprocal"],VerticalLine:["Auto","Divides","Given","SuchThat"]});class Comparator extends dynamic_cstr_2.DefaultComparator{constructor(e,t){super(e,t),this.preference=e instanceof ClearspeakPreferences?e.preference:{}}match(e){if(!(e instanceof ClearspeakPreferences))return super.match(e);if("default"===e.getComponents()[dynamic_cstr_2.Axis.STYLE])return!0;const t=Object.keys(e.preference);for(let r,n=0;r=t[n];n++)if(this.preference[r]!==e.preference[r])return!1;return!0}compare(e,t){const r=super.compare(e,t);if(0!==r)return r;const n=e instanceof ClearspeakPreferences,o=t instanceof ClearspeakPreferences;if(!n&&o)return 1;if(n&&!o)return-1;if(!n&&!o)return 0;const i=Object.keys(e.preference).length,a=Object.keys(t.preference).length;return i>a?-1:i<a?1:0}}clearspeak_preferences.Comparator=Comparator;class Parser$1 extends dynamic_cstr_2.DynamicCstrParser{constructor(){super([dynamic_cstr_2.Axis.LOCALE,dynamic_cstr_2.Axis.MODALITY,dynamic_cstr_2.Axis.DOMAIN,dynamic_cstr_2.Axis.STYLE])}parse(e){const t=super.parse(e);let r=t.getValue(dynamic_cstr_2.Axis.STYLE);const n=t.getValue(dynamic_cstr_2.Axis.LOCALE),o=t.getValue(dynamic_cstr_2.Axis.MODALITY);let i={};return r!==dynamic_cstr_1.DynamicCstr.DEFAULT_VALUE&&(i=this.fromPreference(r),r=this.toPreference(i)),new ClearspeakPreferences({locale:n,modality:o,domain:"clearspeak",style:r},i)}fromPreference(e){return ClearspeakPreferences.fromPreference(e)}toPreference(e){return ClearspeakPreferences.toPreference(e)}}clearspeak_preferences.Parser=Parser$1;const REVERSE_MAPPING=[["AbsoluteValue","fenced","neutral","metric"],["Bar","overscore","overaccent"],["Caps","identifier","latinletter"],["CombinationPermutation","appl","unknown"],["Ellipses","punctuation","ellipsis"],["Exponent","superscript",""],["Fraction","fraction",""],["Functions","appl","simple function"],["ImpliedTimes","operator","implicit"],["Log","appl","prefix function"],["Matrix","matrix",""],["Matrix","vector",""],["MultiLineLabel","multiline","label"],["MultiLineOverview","multiline","table"],["MultiLinePausesBetweenColumns","multiline","table"],["MultiLineLabel","table","label"],["MultiLineOverview","table","table"],["MultiLinePausesBetweenColumns","table","table"],["MultiLineLabel","cases","label"],["MultiLineOverview","cases","table"],["MultiLinePausesBetweenColumns","cases","table"],["MultsymbolDot","operator","multiplication"],["MultsymbolX","operator","multiplication"],["Paren","fenced","leftright"],["Prime","superscript","prime"],["Roots","root",""],["Roots","sqrt",""],["SetMemberSymbol","relation","element"],["Sets","fenced","set extended"],["TriangleSymbol","identifier","greekletter"],["Trig","appl","prefix function"],["VerticalLine","punctuated","vbar"]],SEMANTIC_MAPPING_=function(){const e={};for(let t,r=0;t=REVERSE_MAPPING[r];r++){const r=t[0];let n=e[t[1]];n||(n={},e[t[1]]=n),n[t[2]]=r}return e}();engine_1$1.default.getInstance().comparators.clearspeak=ClearspeakPreferences.comparator,engine_1$1.default.getInstance().parsers.clearspeak=new Parser$1;var focus={};Object.defineProperty(focus,"__esModule",{value:!0}),focus.Focus=void 0;const WalkerUtil$2=walker_util;class Focus{constructor(e,t){this.nodes=e,this.primary=t,this.domNodes=[],this.domPrimary_=null,this.allNodes=[]}static factory(e,t,r,n){const o=e=>WalkerUtil$2.getBySemanticId(n,e),i=r.nodeDict,a=o(e),s=t.map(o),l=t.map((function(e){return i[e]})),c=new Focus(l,i[e]);return c.domNodes=s,c.domPrimary_=a,c.allNodes=Focus.generateAllVisibleNodes_(t,s,i,n),c}static generateAllVisibleNodes_(e,t,r,n){const o=e=>WalkerUtil$2.getBySemanticId(n,e);let i=[];for(let a=0,s=e.length;a<s;a++){if(t[a]){i.push(t[a]);continue}const s=r[e[a]];if(!s)continue;const l=s.childNodes.map((function(e){return e.id.toString()})),c=l.map(o);i=i.concat(Focus.generateAllVisibleNodes_(l,c,r,n))}return i}getSemanticPrimary(){return this.primary}getSemanticNodes(){return this.nodes}getNodes(){return this.allNodes}getDomNodes(){return this.domNodes}getDomPrimary(){return this.domPrimary_}toString(){return"Primary:"+this.domPrimary_+" Nodes:"+this.domNodes}clone(){const e=new Focus(this.nodes,this.primary);return e.domNodes=this.domNodes,e.domPrimary_=this.domPrimary_,e.allNodes=this.allNodes,e}}focus.Focus=Focus;var walker={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.WalkerState=e.WalkerMoves=void 0,(t=e.WalkerMoves||(e.WalkerMoves={})).UP="up",t.DOWN="down",t.LEFT="left",t.RIGHT="right",t.REPEAT="repeat",t.DEPTH="depth",t.ENTER="enter",t.EXPAND="expand",t.HOME="home",t.SUMMARY="summary",t.DETAIL="detail",t.ROW="row",t.CELL="cell";class r{static resetState(e){delete r.STATE[e]}static setState(e,t){r.STATE[e]=t}static getState(e){return r.STATE[e]}}e.WalkerState=r,r.STATE={}}(walker),getDefaultExportFromCjs$1(walker),Object.defineProperty(abstract_walker,"__esModule",{value:!0}),abstract_walker.AbstractWalker=void 0;const auditory_description_1=auditory_description,AuralRendering$1=aural_rendering,DomUtil$2=dom_util,EngineConst$1=engine_const,engine_setup_1=engine_setup,event_util_1$2=event_util,enrich_attr_1=enrich_attr,locale_1$1=locale$d,grammar_1=grammar,semantic_skeleton_1=semantic_skeleton,SpeechGeneratorFactory$1=speech_generator_factory,SpeechGeneratorUtil$1=speech_generator_util,clearspeak_preferences_1=clearspeak_preferences,focus_1=focus,rebuild_stree_1=rebuild_stree,walker_1$1=walker,WalkerUtil$1=walker_util,XpathUtil$1=xpath_util;class AbstractWalker{constructor(e,t,r,n){this.node=e,this.generator=t,this.highlighter=r,this.modifier=!1,this.keyMapping=new Map([[event_util_1$2.KeyCode.UP,this.up.bind(this)],[event_util_1$2.KeyCode.DOWN,this.down.bind(this)],[event_util_1$2.KeyCode.RIGHT,this.right.bind(this)],[event_util_1$2.KeyCode.LEFT,this.left.bind(this)],[event_util_1$2.KeyCode.TAB,this.repeat.bind(this)],[event_util_1$2.KeyCode.DASH,this.expand.bind(this)],[event_util_1$2.KeyCode.SPACE,this.depth.bind(this)],[event_util_1$2.KeyCode.HOME,this.home.bind(this)],[event_util_1$2.KeyCode.X,this.summary.bind(this)],[event_util_1$2.KeyCode.Z,this.detail.bind(this)],[event_util_1$2.KeyCode.V,this.virtualize.bind(this)],[event_util_1$2.KeyCode.P,this.previous.bind(this)],[event_util_1$2.KeyCode.U,this.undo.bind(this)],[event_util_1$2.KeyCode.LESS,this.previousRules.bind(this)],[event_util_1$2.KeyCode.GREATER,this.nextRules.bind(this)]]),this.cursors=[],this.xml_=null,this.rebuilt_=null,this.focus_=null,this.active_=!1,this.node.id?this.id=this.node.id:this.node.hasAttribute(AbstractWalker.SRE_ID_ATTR)?this.id=this.node.getAttribute(AbstractWalker.SRE_ID_ATTR):(this.node.setAttribute(AbstractWalker.SRE_ID_ATTR,AbstractWalker.ID_COUNTER.toString()),this.id=AbstractWalker.ID_COUNTER++),this.rootNode=WalkerUtil$1.getSemanticRoot(e),this.rootId=this.rootNode.getAttribute(enrich_attr_1.Attribute.ID),this.xmlString_=n,this.moved=walker_1$1.WalkerMoves.ENTER}getXml(){return this.xml_||(this.xml_=DomUtil$2.parseInput(this.xmlString_)),this.xml_}getRebuilt(){return this.rebuilt_||this.rebuildStree(),this.rebuilt_}isActive(){return this.active_}activate(){this.isActive()||(this.generator.start(),this.toggleActive_())}deactivate(){this.isActive()&&(walker_1$1.WalkerState.setState(this.id,this.primaryId()),this.generator.end(),this.toggleActive_())}getFocus(e=!1){return this.focus_||(this.focus_=this.singletonFocus(this.rootId)),e&&this.updateFocus(),this.focus_}setFocus(e){this.focus_=e}getDepth(){return this.levels.depth()-1}isSpeech(){return this.generator.modality===enrich_attr_1.Attribute.SPEECH}focusDomNodes(){return this.getFocus().getDomNodes()}focusSemanticNodes(){return this.getFocus().getSemanticNodes()}speech(){const e=this.focusDomNodes();if(!e.length)return"";const t=this.specialMove();if(null!==t)return t;switch(this.moved){case walker_1$1.WalkerMoves.DEPTH:return this.depth_();case walker_1$1.WalkerMoves.SUMMARY:return this.summary_();case walker_1$1.WalkerMoves.DETAIL:return this.detail_();default:{const t=[],r=this.focusSemanticNodes();for(let n=0,o=e.length;n<o;n++){const o=e[n],i=r[n];t.push(o?this.generator.getSpeech(o,this.getXml()):SpeechGeneratorUtil$1.recomputeMarkup(i))}return this.mergePrefix_(t)}}}move(e){const t=this.keyMapping.get(e);if(!t)return null;const r=t();return!(!r||r===this.getFocus())&&(this.setFocus(r),this.moved===walker_1$1.WalkerMoves.HOME&&(this.levels=this.initLevels()),!0)}up(){return this.moved=walker_1$1.WalkerMoves.UP,this.getFocus()}down(){return this.moved=walker_1$1.WalkerMoves.DOWN,this.getFocus()}left(){return this.moved=walker_1$1.WalkerMoves.LEFT,this.getFocus()}right(){return this.moved=walker_1$1.WalkerMoves.RIGHT,this.getFocus()}repeat(){return this.moved=walker_1$1.WalkerMoves.REPEAT,this.getFocus().clone()}depth(){return this.moved=this.isSpeech()?walker_1$1.WalkerMoves.DEPTH:walker_1$1.WalkerMoves.REPEAT,this.getFocus().clone()}home(){this.moved=walker_1$1.WalkerMoves.HOME;return this.singletonFocus(this.rootId)}getBySemanticId(e){return WalkerUtil$1.getBySemanticId(this.node,e)}primaryId(){return this.getFocus().getSemanticPrimary().id.toString()}expand(){const e=this.getFocus().getDomPrimary(),t=this.actionable_(e);return t?(this.moved=walker_1$1.WalkerMoves.EXPAND,t.dispatchEvent(new Event("click")),this.getFocus().clone()):this.getFocus()}expandable(e){return!!this.actionable_(e)&&0===e.childNodes.length}collapsible(e){return!!this.actionable_(e)&&e.childNodes.length>0}restoreState(){if(!this.highlighter)return;const e=walker_1$1.WalkerState.getState(this.id);if(!e)return;let t=this.getRebuilt().nodeDict[e];const r=[];for(;t;)r.push(t.id),t=t.parent;for(r.pop();r.length>0;){this.down();const e=r.pop(),t=this.findFocusOnLevel(e);if(!t)break;this.setFocus(t)}this.moved=walker_1$1.WalkerMoves.ENTER}updateFocus(){this.setFocus(focus_1.Focus.factory(this.getFocus().getSemanticPrimary().id.toString(),this.getFocus().getSemanticNodes().map((e=>e.id.toString())),this.getRebuilt(),this.node))}rebuildStree(){this.rebuilt_=new rebuild_stree_1.RebuildStree(this.getXml()),this.rootId=this.rebuilt_.stree.root.id.toString(),this.generator.setRebuilt(this.rebuilt_),this.skeleton=semantic_skeleton_1.SemanticSkeleton.fromTree(this.rebuilt_.stree),this.skeleton.populate(),this.focus_=this.singletonFocus(this.rootId),this.levels=this.initLevels(),SpeechGeneratorUtil$1.connectMactions(this.node,this.getXml(),this.rebuilt_.xml)}previousLevel(){const e=this.getFocus().getDomPrimary();return e?WalkerUtil$1.getAttribute(e,enrich_attr_1.Attribute.PARENT):this.getFocus().getSemanticPrimary().parent.id.toString()}nextLevel(){const e=this.getFocus().getDomPrimary();let t,r;if(e){t=WalkerUtil$1.splitAttribute(WalkerUtil$1.getAttribute(e,enrich_attr_1.Attribute.CHILDREN)),r=WalkerUtil$1.splitAttribute(WalkerUtil$1.getAttribute(e,enrich_attr_1.Attribute.CONTENT));const n=WalkerUtil$1.getAttribute(e,enrich_attr_1.Attribute.TYPE),o=WalkerUtil$1.getAttribute(e,enrich_attr_1.Attribute.ROLE);return this.combineContentChildren(n,o,r,t)}const n=e=>e.id.toString(),o=this.getRebuilt().nodeDict[this.primaryId()];return t=o.childNodes.map(n),r=o.contentNodes.map(n),0===t.length?[]:this.combineContentChildren(o.type,o.role,r,t)}singletonFocus(e){this.getRebuilt();const t=this.retrieveVisuals(e);return this.focusFromId(e,t)}retrieveVisuals(e){if(!this.skeleton)return[e];const t=parseInt(e,10),r=this.skeleton.subtreeNodes(t);if(!r.length)return[e];r.unshift(t);const n={},o=[];XpathUtil$1.updateEvaluator(this.getXml());for(const e of r)n[e]||(o.push(e.toString()),n[e]=!0,this.subtreeIds(e,n));return o}subtreeIds(e,t){const r=XpathUtil$1.evalXPath(`//*[@data-semantic-id="${e}"]`,this.getXml());XpathUtil$1.evalXPath("*//@data-semantic-id",r[0]).forEach((e=>t[parseInt(e.textContent,10)]=!0))}focusFromId(e,t){return focus_1.Focus.factory(e,t,this.getRebuilt(),this.node)}summary(){return this.moved=this.isSpeech()?walker_1$1.WalkerMoves.SUMMARY:walker_1$1.WalkerMoves.REPEAT,this.getFocus().clone()}detail(){return this.moved=this.isSpeech()?walker_1$1.WalkerMoves.DETAIL:walker_1$1.WalkerMoves.REPEAT,this.getFocus().clone()}specialMove(){return null}virtualize(e){return this.cursors.push({focus:this.getFocus(),levels:this.levels,undo:e||!this.cursors.length}),this.levels=this.levels.clone(),this.getFocus().clone()}previous(){const e=this.cursors.pop();return e?(this.levels=e.levels,e.focus):this.getFocus()}undo(){let e;do{e=this.cursors.pop()}while(e&&!e.undo);return e?(this.levels=e.levels,e.focus):this.getFocus()}update(e){this.generator.setOptions(e),(0,engine_setup_1.setup)(e).then((()=>SpeechGeneratorFactory$1.generator("Tree").getSpeech(this.node,this.getXml())))}nextRules(){const e=this.generator.getOptions();return"speech"!==e.modality?this.getFocus():(EngineConst$1.DOMAIN_TO_STYLES[e.domain]=e.style,e.domain="mathspeak"===e.domain?"clearspeak":"mathspeak",e.style=EngineConst$1.DOMAIN_TO_STYLES[e.domain],this.update(e),this.moved=walker_1$1.WalkerMoves.REPEAT,this.getFocus().clone())}nextStyle(e,t){if("mathspeak"===e){const e=["default","brief","sbrief"],r=e.indexOf(t);return-1===r?t:r>=e.length-1?e[0]:e[r+1]}if("clearspeak"===e){const e=clearspeak_preferences_1.ClearspeakPreferences.getLocalePreferences().en;if(!e)return"default";const r=clearspeak_preferences_1.ClearspeakPreferences.relevantPreferences(this.getFocus().getSemanticPrimary()),n=clearspeak_preferences_1.ClearspeakPreferences.findPreference(t,r),o=e[r].map((function(e){return e.split("_")[1]})),i=o.indexOf(n);if(-1===i)return t;const a=i>=o.length-1?o[0]:o[i+1];return clearspeak_preferences_1.ClearspeakPreferences.addPreference(t,r,a)}return t}previousRules(){const e=this.generator.getOptions();return"speech"!==e.modality?this.getFocus():(e.style=this.nextStyle(e.domain,e.style),this.update(e),this.moved=walker_1$1.WalkerMoves.REPEAT,this.getFocus().clone())}refocus(){let e,t=this.getFocus();for(;!t.getNodes().length;){e=this.levels.peek();const r=this.up();if(!r)break;this.setFocus(r),t=this.getFocus(!0)}this.levels.push(e),this.setFocus(t)}toggleActive_(){this.active_=!this.active_}mergePrefix_(e,t=[]){const r=this.isSpeech()?this.prefix_():"";r&&e.unshift(r);const n=this.isSpeech()?this.postfix_():"";return n&&e.push(n),AuralRendering$1.finalize(AuralRendering$1.merge(t.concat(e)))}prefix_(){const e=this.getFocus().getDomNodes(),t=this.getFocus().getSemanticNodes();return e[0]?WalkerUtil$1.getAttribute(e[0],enrich_attr_1.Attribute.PREFIX):SpeechGeneratorUtil$1.retrievePrefix(t[0])}postfix_(){const e=this.getFocus().getDomNodes();return e[0]?WalkerUtil$1.getAttribute(e[0],enrich_attr_1.Attribute.POSTFIX):""}depth_(){const e=grammar_1.Grammar.getInstance().getParameter("depth");grammar_1.Grammar.getInstance().setParameter("depth",!0);const t=this.getFocus().getDomPrimary(),r=this.expandable(t)?locale_1$1.LOCALE.MESSAGES.navigate.EXPANDABLE:this.collapsible(t)?locale_1$1.LOCALE.MESSAGES.navigate.COLLAPSIBLE:"",n=locale_1$1.LOCALE.MESSAGES.navigate.LEVEL+" "+this.getDepth(),o=this.getFocus().getSemanticNodes(),i=SpeechGeneratorUtil$1.retrievePrefix(o[0]),a=[new auditory_description_1.AuditoryDescription({text:n,personality:{}}),new auditory_description_1.AuditoryDescription({text:i,personality:{}}),new auditory_description_1.AuditoryDescription({text:r,personality:{}})];return grammar_1.Grammar.getInstance().setParameter("depth",e),AuralRendering$1.finalize(AuralRendering$1.markup(a))}actionable_(e){const t=null==e?void 0:e.parentNode;return t&&this.highlighter.isMactionNode(t)?t:null}summary_(){const e=this.getFocus().getSemanticPrimary().id.toString(),t=this.getRebuilt().xml.getAttribute("id")===e?this.getRebuilt().xml:DomUtil$2.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",e)[0],r=SpeechGeneratorUtil$1.retrieveSummary(t);return this.mergePrefix_([r])}detail_(){const e=this.getFocus().getSemanticPrimary().id.toString(),t=this.getRebuilt().xml.getAttribute("id")===e?this.getRebuilt().xml:DomUtil$2.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",e)[0],r=t.getAttribute("alternative");t.removeAttribute("alternative");const n=SpeechGeneratorUtil$1.computeMarkup(t),o=this.mergePrefix_([n]);return t.setAttribute("alternative",r),o}}abstract_walker.AbstractWalker=AbstractWalker,AbstractWalker.ID_COUNTER=0,AbstractWalker.SRE_ID_ATTR="sre-explorer-id",Object.defineProperty(dummy_walker,"__esModule",{value:!0}),dummy_walker.DummyWalker=void 0;const abstract_walker_1$2=abstract_walker;class DummyWalker extends abstract_walker_1$2.AbstractWalker{up(){return null}down(){return null}left(){return null}right(){return null}repeat(){return null}depth(){return null}home(){return null}getDepth(){return 0}initLevels(){return null}combineContentChildren(e,t,r,n){return[]}findFocusOnLevel(e){return null}}dummy_walker.DummyWalker=DummyWalker;var semantic_walker={},levels={};Object.defineProperty(levels,"__esModule",{value:!0}),levels.Levels=void 0;class Levels{constructor(){this.level_=[]}push(e){this.level_.push(e)}pop(){return this.level_.pop()}peek(){return this.level_[this.level_.length-1]||null}indexOf(e){const t=this.peek();return t?t.indexOf(e):null}find(e){const t=this.peek();if(!t)return null;for(let r=0,n=t.length;r<n;r++)if(e(t[r]))return t[r];return null}get(e){const t=this.peek();return!t||e<0||e>=t.length?null:t[e]}depth(){return this.level_.length}clone(){const e=new Levels;return e.level_=this.level_.slice(0),e}toString(){let e="";for(let t,r=0;t=this.level_[r];r++)e+="\n"+t.map((function(e){return e.toString()}));return e}}levels.Levels=Levels,Object.defineProperty(semantic_walker,"__esModule",{value:!0}),semantic_walker.SemanticWalker=void 0;const abstract_walker_1$1=abstract_walker,levels_1$1=levels;class SemanticWalker extends abstract_walker_1$1.AbstractWalker{constructor(e,t,r,n){super(e,t,r,n),this.node=e,this.generator=t,this.highlighter=r,this.levels=null,this.restoreState()}initLevels(){const e=new levels_1$1.Levels;return e.push([this.getFocus()]),e}up(){super.up();const e=this.previousLevel();if(!e)return null;this.levels.pop();const t=this.levels.find((function(t){return t.getSemanticNodes().some((function(t){return t.id.toString()===e}))}));return t}down(){super.down();const e=this.nextLevel();return 0===e.length?null:(this.levels.push(e),e[0])}combineContentChildren(e,t,r,n){switch(e){case"relseq":case"infixop":case"multirel":return this.makePairList(n,r);case"prefixop":return[this.focusFromId(n[0],r.concat(n))];case"postfixop":return[this.focusFromId(n[0],n.concat(r))];case"matrix":case"vector":case"fenced":return[this.focusFromId(n[0],[r[0],n[0],r[1]])];case"cases":return[this.focusFromId(n[0],[r[0],n[0]])];case"punctuated":return"text"===t?n.map(this.singletonFocus.bind(this)):n.length===r.length?r.map(this.singletonFocus.bind(this)):this.combinePunctuations(n,r,[],[]);case"appl":return[this.focusFromId(n[0],[n[0],r[0]]),this.singletonFocus(n[1])];case"root":return[this.singletonFocus(n[1]),this.singletonFocus(n[0])];default:return n.map(this.singletonFocus.bind(this))}}combinePunctuations(e,t,r,n){if(0===e.length)return n;const o=e.shift(),i=t.shift();return o===i?(r.push(i),this.combinePunctuations(e,t,r,n)):(t.unshift(i),r.push(o),e.length===t.length?(n.push(this.focusFromId(o,r.concat(t))),n):(n.push(this.focusFromId(o,r)),this.combinePunctuations(e,t,[],n)))}makePairList(e,t){if(0===e.length)return[];if(1===e.length)return[this.singletonFocus(e[0])];const r=[this.singletonFocus(e.shift())];for(let n=0,o=e.length;n<o;n++)r.push(this.focusFromId(e[n],[t[n],e[n]]));return r}left(){super.left();const e=this.levels.indexOf(this.getFocus());if(null===e)return null;const t=this.levels.get(e-1);return t||null}right(){super.right();const e=this.levels.indexOf(this.getFocus());if(null===e)return null;const t=this.levels.get(e+1);return t||null}findFocusOnLevel(e){return this.levels.find((t=>t.getSemanticPrimary().id===e))}}semantic_walker.SemanticWalker=SemanticWalker;var syntax_walker={};Object.defineProperty(syntax_walker,"__esModule",{value:!0}),syntax_walker.SyntaxWalker=void 0;const base_util_1=base_util,abstract_walker_1=abstract_walker,levels_1=levels;class SyntaxWalker extends abstract_walker_1.AbstractWalker{constructor(e,t,r,n){super(e,t,r,n),this.node=e,this.generator=t,this.highlighter=r,this.levels=null,this.restoreState()}initLevels(){const e=new levels_1.Levels;return e.push([this.primaryId()]),e}up(){super.up();const e=this.previousLevel();return e?(this.levels.pop(),this.singletonFocus(e)):null}down(){super.down();const e=this.nextLevel();if(0===e.length)return null;const t=this.singletonFocus(e[0]);return t&&this.levels.push(e),t}combineContentChildren(e,t,r,n){switch(e){case"relseq":case"infixop":case"multirel":return(0,base_util_1.interleaveLists)(n,r);case"prefixop":return r.concat(n);case"postfixop":return n.concat(r);case"matrix":case"vector":case"fenced":return n.unshift(r[0]),n.push(r[1]),n;case"cases":return n.unshift(r[0]),n;case"punctuated":return"text"===t?(0,base_util_1.interleaveLists)(n,r):n;case"appl":return[n[0],r[0],n[1]];case"root":return[n[1],n[0]];default:return n}}left(){super.left();const e=this.levels.indexOf(this.primaryId());if(null===e)return null;const t=this.levels.get(e-1);return t?this.singletonFocus(t):null}right(){super.right();const e=this.levels.indexOf(this.primaryId());if(null===e)return null;const t=this.levels.get(e+1);return t?this.singletonFocus(t):null}findFocusOnLevel(e){return this.singletonFocus(e.toString())}focusDomNodes(){return[this.getFocus().getDomPrimary()]}focusSemanticNodes(){return[this.getFocus().getSemanticPrimary()]}}syntax_walker.SyntaxWalker=SyntaxWalker;var table_walker={};Object.defineProperty(table_walker,"__esModule",{value:!0}),table_walker.TableWalker=void 0;const DomUtil$1=dom_util,event_util_1$1=event_util,syntax_walker_1=syntax_walker,walker_1=walker;class TableWalker extends syntax_walker_1.SyntaxWalker{constructor(e,t,r,n){super(e,t,r,n),this.node=e,this.generator=t,this.highlighter=r,this.firstJump=null,this.key_=null,this.row_=0,this.currentTable_=null,this.keyMapping.set(event_util_1$1.KeyCode.ZERO,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.ONE,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.TWO,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.THREE,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.FOUR,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.FIVE,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.SIX,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.SEVEN,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.EIGHT,this.jumpCell.bind(this)),this.keyMapping.set(event_util_1$1.KeyCode.NINE,this.jumpCell.bind(this))}move(e){this.key_=e;const t=super.move(e);return this.modifier=!1,t}up(){return this.moved=walker_1.WalkerMoves.UP,this.eligibleCell_()?this.verticalMove_(!1):super.up()}down(){return this.moved=walker_1.WalkerMoves.DOWN,this.eligibleCell_()?this.verticalMove_(!0):super.down()}jumpCell(){if(!this.isInTable_()||null===this.key_)return this.getFocus();if(this.moved===walker_1.WalkerMoves.ROW){this.moved=walker_1.WalkerMoves.CELL;const e=this.key_-event_util_1$1.KeyCode.ZERO;return this.isLegalJump_(this.row_,e)?this.jumpCell_(this.row_,e):this.getFocus()}const e=this.key_-event_util_1$1.KeyCode.ZERO;return e>this.currentTable_.childNodes.length?this.getFocus():(this.row_=e,this.moved=walker_1.WalkerMoves.ROW,this.getFocus().clone())}undo(){const e=super.undo();return e===this.firstJump&&(this.firstJump=null),e}eligibleCell_(){const e=this.getFocus().getSemanticPrimary();return this.modifier&&"cell"===e.type&&-1!==TableWalker.ELIGIBLE_CELL_ROLES.indexOf(e.role)}verticalMove_(e){const t=this.previousLevel();if(!t)return null;const r=this.getFocus(),n=this.levels.indexOf(this.primaryId()),o=this.levels.pop(),i=this.levels.indexOf(t),a=this.levels.get(e?i+1:i-1);if(!a)return this.levels.push(o),null;this.setFocus(this.singletonFocus(a));const s=this.nextLevel();return s[n]?(this.levels.push(s),this.singletonFocus(s[n])):(this.setFocus(r),this.levels.push(o),null)}jumpCell_(e,t){this.firstJump?this.virtualize(!1):(this.firstJump=this.getFocus(),this.virtualize(!0));const r=this.currentTable_.id.toString();let n;do{n=this.levels.pop()}while(-1===n.indexOf(r));this.levels.push(n),this.setFocus(this.singletonFocus(r)),this.levels.push(this.nextLevel());const o=this.currentTable_.childNodes[e-1];return this.setFocus(this.singletonFocus(o.id.toString())),this.levels.push(this.nextLevel()),this.singletonFocus(o.childNodes[t-1].id.toString())}isLegalJump_(e,t){const r=DomUtil$1.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",this.currentTable_.id.toString())[0];if(!r||r.hasAttribute("alternative"))return!1;const n=this.currentTable_.childNodes[e-1];if(!n)return!1;const o=DomUtil$1.querySelectorAllByAttrValue(r,"id",n.id.toString())[0];return!(!o||o.hasAttribute("alternative"))&&!(!n||!n.childNodes[t-1])}isInTable_(){let e=this.getFocus().getSemanticPrimary();for(;e;){if(-1!==TableWalker.ELIGIBLE_TABLE_TYPES.indexOf(e.type))return this.currentTable_=e,!0;e=e.parent}return!1}}table_walker.TableWalker=TableWalker,TableWalker.ELIGIBLE_CELL_ROLES=["determinant","rowvector","binomial","squarematrix","multiline","matrix","vector","cases","table"],TableWalker.ELIGIBLE_TABLE_TYPES=["multiline","matrix","vector","cases","table"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.walkerMapping_=e.walker=void 0;const t=dummy_walker,r=semantic_walker,n=syntax_walker,o=table_walker;e.walker=function(t,r,n,o,i){return(e.walkerMapping_[t.toLowerCase()]||e.walkerMapping_.dummy)(r,n,o,i)},e.walkerMapping_={dummy:(e,r,n,o)=>new t.DummyWalker(e,r,n,o),semantic:(e,t,n,o)=>new r.SemanticWalker(e,t,n,o),syntax:(e,t,r,o)=>new n.SyntaxWalker(e,t,r,o),table:(e,t,r,n)=>new o.TableWalker(e,t,r,n)}}(walker_factory),getDefaultExportFromCjs$1(walker_factory);var processor={};Object.defineProperty(processor,"__esModule",{value:!0}),processor.KeyProcessor=processor.Processor=void 0;const event_util_1=event_util;class Processor{constructor(e,t){this.name=e,this.process=t.processor,this.postprocess=t.postprocessor||((e,t)=>e),this.processor=this.postprocess?function(e){return this.postprocess(this.process(e),e)}:this.process,this.print=t.print||Processor.stringify_,this.pprint=t.pprint||this.print}static stringify_(e){return e?e.toString():e}}processor.Processor=Processor,Processor.LocalState={walker:null,speechGenerator:null,highlighter:null};class KeyProcessor extends Processor{constructor(e,t){super(e,t),this.key=t.key||KeyProcessor.getKey_}static getKey_(e){return"string"==typeof e?event_util_1.KeyCode[e.toUpperCase()]:e}}processor.KeyProcessor=KeyProcessor,Object.defineProperty(processor_factory,"__esModule",{value:!0}),processor_factory.keypress=processor_factory.output=processor_factory.print=processor_factory.process=processor_factory.set=void 0;const AuralRendering=aural_rendering,Enrich=enrich,HighlighterFactory=highlighter_factory,locale_1=locale$d,Semantic=semantic,SpeechGeneratorFactory=speech_generator_factory,SpeechGeneratorUtil=speech_generator_util,WalkerFactory=walker_factory,WalkerUtil=walker_util,DomUtil=dom_util,engine_1=engine,EngineConst=engine_const,processor_1=processor,XpathUtil=xpath_util,PROCESSORS=new Map;function set(e){PROCESSORS.set(e.name,e)}function get_(e){const t=PROCESSORS.get(e);if(!t)throw new engine_1.SREError("Unknown processor "+e);return t}function process$1(e,t){const r=get_(e);try{return r.processor(t)}catch(e){throw new engine_1.SREError("Processing error for expression "+t)}}function print(e,t){const r=get_(e);return engine_1.default.getInstance().pprint?r.pprint(t):r.print(t)}function output(e,t){const r=get_(e);try{const e=r.processor(t);return engine_1.default.getInstance().pprint?r.pprint(e):r.print(e)}catch(e){throw new engine_1.SREError("Processing error for expression "+t)}}function keypress(e,t){const r=get_(e),n=r instanceof processor_1.KeyProcessor?r.key(t):t,o=r.processor(n);return engine_1.default.getInstance().pprint?r.pprint(o):r.print(o)}processor_factory.set=set,processor_factory.process=process$1,processor_factory.print=print,processor_factory.output=output,processor_factory.keypress=keypress,set(new processor_1.Processor("semantic",{processor:function(e){const t=DomUtil.parseInput(e);return Semantic.xmlTree(t)},postprocessor:function(e,t){const r=engine_1.default.getInstance().speech;if(r===EngineConst.Speech.NONE)return e;const n=DomUtil.cloneNode(e);let o=SpeechGeneratorUtil.computeMarkup(n);if(r===EngineConst.Speech.SHALLOW)return e.setAttribute("speech",AuralRendering.finalize(o)),e;const i=XpathUtil.evalXPath(".//*[@id]",e),a=XpathUtil.evalXPath(".//*[@id]",n);for(let e,t,r=0;e=i[r],t=a[r];r++)o=SpeechGeneratorUtil.computeMarkup(t),e.setAttribute("speech",AuralRendering.finalize(o));return e},pprint:function(e){return DomUtil.formatXml(e.toString())}})),set(new processor_1.Processor("speech",{processor:function(e){const t=DomUtil.parseInput(e),r=Semantic.xmlTree(t),n=SpeechGeneratorUtil.computeSpeech(r);return AuralRendering.finalize(AuralRendering.markup(n))},pprint:function(e){const t=e.toString();return AuralRendering.isXml()?DomUtil.formatXml(t):t}})),set(new processor_1.Processor("json",{processor:function(e){const t=DomUtil.parseInput(e);return Semantic.getTree(t).toJson()},postprocessor:function(e,t){const r=engine_1.default.getInstance().speech;if(r===EngineConst.Speech.NONE)return e;const n=DomUtil.parseInput(t),o=Semantic.xmlTree(n),i=SpeechGeneratorUtil.computeMarkup(o);if(r===EngineConst.Speech.SHALLOW)return e.stree.speech=AuralRendering.finalize(i),e;const a=e=>{const t=XpathUtil.evalXPath(`.//*[@id=${e.id}]`,o)[0],r=SpeechGeneratorUtil.computeMarkup(t);e.speech=AuralRendering.finalize(r),e.children&&e.children.forEach(a)};return a(e.stree),e},print:function(e){return JSON.stringify(e)},pprint:function(e){return JSON.stringify(e,null,2)}})),set(new processor_1.Processor("description",{processor:function(e){const t=DomUtil.parseInput(e),r=Semantic.xmlTree(t);return SpeechGeneratorUtil.computeSpeech(r)},print:function(e){return JSON.stringify(e)},pprint:function(e){return JSON.stringify(e,null,2)}})),set(new processor_1.Processor("enriched",{processor:function(e){return Enrich.semanticMathmlSync(e)},postprocessor:function(e,t){const r=WalkerUtil.getSemanticRoot(e);let n;switch(engine_1.default.getInstance().speech){case EngineConst.Speech.NONE:break;case EngineConst.Speech.SHALLOW:n=SpeechGeneratorFactory.generator("Adhoc"),n.getSpeech(r,e);break;case EngineConst.Speech.DEEP:n=SpeechGeneratorFactory.generator("Tree"),n.getSpeech(e,e)}return e},pprint:function(e){return DomUtil.formatXml(e.toString())}})),set(new processor_1.Processor("walker",{processor:function(e){const t=SpeechGeneratorFactory.generator("Node");processor_1.Processor.LocalState.speechGenerator=t,t.setOptions({modality:engine_1.default.getInstance().modality,locale:engine_1.default.getInstance().locale,domain:engine_1.default.getInstance().domain,style:engine_1.default.getInstance().style}),processor_1.Processor.LocalState.highlighter=HighlighterFactory.highlighter({color:"black"},{color:"white"},{renderer:"NativeMML"});const r=process$1("enriched",e),n=print("enriched",r);return processor_1.Processor.LocalState.walker=WalkerFactory.walker(engine_1.default.getInstance().walker,r,t,processor_1.Processor.LocalState.highlighter,n),processor_1.Processor.LocalState.walker},print:function(e){return processor_1.Processor.LocalState.walker.speech()}})),set(new processor_1.KeyProcessor("move",{processor:function(e){if(!processor_1.Processor.LocalState.walker)return null;return!1===processor_1.Processor.LocalState.walker.move(e)?AuralRendering.error(e):processor_1.Processor.LocalState.walker.speech()}})),set(new processor_1.Processor("number",{processor:function(e){const t=parseInt(e,10);return isNaN(t)?"":locale_1.LOCALE.NUMBERS.numberToWords(t)}})),set(new processor_1.Processor("ordinal",{processor:function(e){const t=parseInt(e,10);return isNaN(t)?"":locale_1.LOCALE.NUMBERS.wordOrdinal(t)}})),set(new processor_1.Processor("numericOrdinal",{processor:function(e){const t=parseInt(e,10);return isNaN(t)?"":locale_1.LOCALE.NUMBERS.numericOrdinal(t)}})),set(new processor_1.Processor("vulgar",{processor:function(e){const[t,r]=e.split("/").map((e=>parseInt(e,10)));return isNaN(t)||isNaN(r)?"":process$1("speech",`<mfrac><mn>${t}</mn><mn>${r}</mn></mfrac>`)}})),function(e){var t=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.localePath=e.exit=e.move=e.walk=e.processFile=e.file=e.vulgar=e.numericOrdinal=e.ordinal=e.number=e.toEnriched=e.toDescription=e.toJson=e.toSemantic=e.toSpeech=e.localeLoader=e.engineReady=e.engineSetup=e.setupEngine=e.version=void 0;const r=engine,n=engine_setup,o=engine_const,i=file_util,a=processor_factory,s=system_external,l=variables,c=math_map;function u(e){return t(this,void 0,void 0,(function*(){return(0,n.setup)(e)}))}function d(e,t){return a.process(e,t)}function p(e,n,i){switch(r.default.getInstance().mode){case o.Mode.ASYNC:return function(e,n,o){return t(this,void 0,void 0,(function*(){const t=yield s.default.fs.promises.readFile(n,{encoding:"utf8"}),i=a.output(e,t);if(o)try{s.default.fs.promises.writeFile(o,i)}catch(e){throw new r.SREError("Can not write to file: "+o)}return i}))}(e,n,i);case o.Mode.SYNC:return function(e,t,n){const o=function(e){let t;try{t=s.default.fs.readFileSync(e,{encoding:"utf8"})}catch(t){throw new r.SREError("Can not open file: "+e)}return t}(t),i=a.output(e,o);if(n)try{s.default.fs.writeFileSync(n,i)}catch(e){throw new r.SREError("Can not write to file: "+n)}return i}(e,n,i);default:throw new r.SREError(`Can process files in ${r.default.getInstance().mode} mode`)}}e.version=l.Variables.VERSION,e.setupEngine=u,e.engineSetup=function(){const e=["mode"].concat(r.default.STRING_FEATURES,r.default.BINARY_FEATURES),t=r.default.getInstance(),n={};return e.forEach((function(e){n[e]=t[e]})),n.json=s.default.jsonPath,n.xpath=s.default.WGXpath,n.rules=t.ruleSets.slice(),n},e.engineReady=function(){return t(this,void 0,void 0,(function*(){return u({}).then((()=>r.EnginePromise.getall()))}))},e.localeLoader=c.standardLoader,e.toSpeech=function(e){return d("speech",e)},e.toSemantic=function(e){return d("semantic",e)},e.toJson=function(e){return d("json",e)},e.toDescription=function(e){return d("description",e)},e.toEnriched=function(e){return d("enriched",e)},e.number=function(e){return d("number",e)},e.ordinal=function(e){return d("ordinal",e)},e.numericOrdinal=function(e){return d("numericOrdinal",e)},e.vulgar=function(e){return d("vulgar",e)},e.file={},e.file.toSpeech=function(e,t){return p("speech",e,t)},e.file.toSemantic=function(e,t){return p("semantic",e,t)},e.file.toJson=function(e,t){return p("json",e,t)},e.file.toDescription=function(e,t){return p("description",e,t)},e.file.toEnriched=function(e,t){return p("enriched",e,t)},e.processFile=p,e.walk=function(e){return a.output("walker",e)},e.move=function(e){return a.keypress("move",e)},e.exit=function(e){const t=e||0;r.EnginePromise.getall().then((()=>process.exit(t)))},e.localePath=i.localePath,s.default.documentSupported?u({mode:o.Mode.HTTP}).then((()=>u({}))):u({mode:o.Mode.SYNC}).then((()=>u({mode:o.Mode.ASYNC})))}(system),getDefaultExportFromCjs$1(system);var mathmaps={};Object.defineProperty(mathmaps,"__esModule",{value:!0});var MathMaps=new Map;mathmaps.default=MathMaps,function(e){var t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n},o=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},i=commonjsGlobal&&commonjsGlobal.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.sreReady=e.Sre=void 0;var s,l=n(system),c=n(walker_factory),u=n(speech_generator_factory),d=n(engine_const),p=a(engine),m=clearspeak_preferences,h=n(highlighter_factory),f=variables,_=a(mathmaps);!function(e){e.locales=f.Variables.LOCALES,e.sreReady=l.engineReady,e.setupEngine=l.setupEngine,e.engineSetup=l.engineSetup,e.toEnriched=l.toEnriched,e.toSpeech=l.toSpeech,e.clearspeakPreferences=m.ClearspeakPreferences,e.getHighlighter=h.highlighter,e.getSpeechGenerator=u.generator,e.getWalker=c.walker,e.clearspeakStyle=function(){return d.DOMAIN_TO_STYLES.clearspeak},e.preloadLocales=function(e){return o(this,void 0,void 0,(function(){var t;return i(this,(function(r){return[2,(t=_.default.get(e))?new Promise((function(e,r){return e(JSON.stringify(t))})):l.localeLoader()(e)]}))}))}}(s=e.Sre||(e.Sre={})),e.sreReady=s.sreReady,p.default.getInstance().delay=!0,e.default=s}(sre),getDefaultExportFromCjs$1(sre);var __extends$1K=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$d=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$d.apply(this,arguments)},__values$O=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$V=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$u=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__importDefault$L=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(semanticEnrich,"__esModule",{value:!0});var EnrichHandler_1=semanticEnrich.EnrichHandler=semanticEnrich.EnrichedMathDocumentMixin=semanticEnrich.EnrichedMathItemMixin=void 0,mathjax_js_1$4=mathjax,MathItem_js_1$6=MathItem,SerializedMmlVisitor_js_1$1=SerializedMmlVisitor,Options_js_1$h=Options,sre_js_1$1=__importDefault$L(sre),currentSpeech="none";function EnrichedMathItemMixin(e,t,r){return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return __extends$1K(n,e),n.prototype.serializeMml=function(e){if("outerHTML"in e)return e.outerHTML;if("undefined"!=typeof Element&&"undefined"!=typeof window&&e instanceof Element){var t=window.document.createElement("div");return t.appendChild(e),t.innerHTML}return e.toString()},n.prototype.enrich=function(e,n){if(void 0===n&&(n=!1),!(this.state()>=MathItem_js_1$6.STATE.ENRICHED)){if(!this.isEscaped&&(e.options.enableEnrichment||n)){e.options.sre.speech!==currentSpeech&&(currentSpeech=e.options.sre.speech,mathjax_js_1$4.mathjax.retryAfter(sre_js_1$1.default.setupEngine(e.options.sre).then((function(){return sre_js_1$1.default.sreReady()}))));var o=new e.options.MathItem("",t);try{var i=this.inputData.originalMml=r(this.root);o.math=this.serializeMml(sre_js_1$1.default.toEnriched(i)),o.display=this.display,o.compile(e),this.root=o.root,this.inputData.enrichedMml=o.math}catch(t){e.options.enrichError(e,this,t)}}this.state(MathItem_js_1$6.STATE.ENRICHED)}},n.prototype.attachSpeech=function(e){var t,r;if(!(this.state()>=MathItem_js_1$6.STATE.ATTACHSPEECH)){var n=this.root.attributes.get("aria-label")||this.getSpeech(this.root);if(n){var o=e.adaptor,i=this.typesetRoot;o.setAttribute(i,"aria-label",n);try{for(var a=__values$O(o.childNodes(i)),s=a.next();!s.done;s=a.next()){var l=s.value;o.setAttribute(l,"aria-hidden","true")}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}this.state(MathItem_js_1$6.STATE.ATTACHSPEECH)}},n.prototype.getSpeech=function(e){var t,r,n=e.attributes;if(!n)return"";var o=n.getExplicit("data-semantic-speech");if(!n.getExplicit("data-semantic-parent")&&o)return o;try{for(var i=__values$O(e.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value,l=this.getSpeech(s);if(null!=l)return l}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return""},n}(e)}function EnrichedMathDocumentMixin(e,t){var r;return r=function(e){function r(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,__spreadArray$u([],__read$V(r),!1))||this;t.setMmlFactory(o.mmlFactory);var i=o.constructor.ProcessBits;i.has("enriched")||(i.allocate("enriched"),i.allocate("attach-speech"));var a=new SerializedMmlVisitor_js_1$1.SerializedMmlVisitor(o.mmlFactory),s=function(e){return a.visitTree(e)};return o.options.MathItem=EnrichedMathItemMixin(o.options.MathItem,t,s),o}return __extends$1K(r,e),r.prototype.attachSpeech=function(){var e,t;if(!this.processed.isSet("attach-speech")){try{for(var r=__values$O(this.math),n=r.next();!n.done;n=r.next()){n.value.attachSpeech(this)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.processed.set("attach-speech")}return this},r.prototype.enrich=function(){var e,t;if(!this.processed.isSet("enriched")){if(this.options.enableEnrichment)try{for(var r=__values$O(this.math),n=r.next();!n.done;n=r.next()){n.value.enrich(this)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.processed.set("enriched")}return this},r.prototype.enrichError=function(e,t,r){console.warn("Enrichment error:",r)},r.prototype.state=function(t,r){return void 0===r&&(r=!1),e.prototype.state.call(this,t,r),t<MathItem_js_1$6.STATE.ENRICHED&&this.processed.clear("enriched"),this},r}(e),r.OPTIONS=__assign$d(__assign$d({},e.OPTIONS),{enableEnrichment:!0,enrichError:function(e,t,r){return e.enrichError(e,t,r)},renderActions:(0,Options_js_1$h.expandable)(__assign$d(__assign$d({},e.OPTIONS.renderActions),{enrich:[MathItem_js_1$6.STATE.ENRICHED],attachSpeech:[MathItem_js_1$6.STATE.ATTACHSPEECH]})),sre:(0,Options_js_1$h.expandable)({speech:"none",domain:"mathspeak",style:"default",locale:"en"})}),r}function EnrichHandler(e,t){return t.setAdaptor(e.adaptor),e.documentClass=EnrichedMathDocumentMixin(e.documentClass,t),e}(0,MathItem_js_1$6.newState)("ENRICHED",30),(0,MathItem_js_1$6.newState)("ATTACHSPEECH",155),semanticEnrich.EnrichedMathItemMixin=EnrichedMathItemMixin,semanticEnrich.EnrichedMathDocumentMixin=EnrichedMathDocumentMixin,EnrichHandler_1=semanticEnrich.EnrichHandler=EnrichHandler;var MenuHandler$1={},Menu$1={},MJContextMenu$1={},context_menu={},abstract_menu={},abstract_postable={},menu_element={},abstract_navigatable={},key_navigatable={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.KEY=void 0,(t=e.KEY||(e.KEY={}))[t.RETURN=13]="RETURN",t[t.ESCAPE=27]="ESCAPE",t[t.SPACE=32]="SPACE",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(key_navigatable),getDefaultExportFromCjs$1(key_navigatable);var mouse_navigatable={};Object.defineProperty(mouse_navigatable,"__esModule",{value:!0}),mouse_navigatable.MOUSE=void 0,mouse_navigatable.MOUSE={CLICK:"click",DBLCLICK:"dblclick",DOWN:"mousedown",UP:"mouseup",OVER:"mouseover",OUT:"mouseout",MOVE:"mousemove",SELECTEND:"selectend",SELECTSTART:"selectstart"},Object.defineProperty(abstract_navigatable,"__esModule",{value:!0}),abstract_navigatable.AbstractNavigatable=void 0;var key_navigatable_js_1$3=key_navigatable,mouse_navigatable_js_1=mouse_navigatable,AbstractNavigatable=function(){function e(){this.bubble=!1}return e.prototype.bubbleKey=function(){this.bubble=!0},e.prototype.keydown=function(e){switch(e.keyCode){case key_navigatable_js_1$3.KEY.ESCAPE:this.escape(e);break;case key_navigatable_js_1$3.KEY.RIGHT:this.right(e);break;case key_navigatable_js_1$3.KEY.LEFT:this.left(e);break;case key_navigatable_js_1$3.KEY.UP:this.up(e);break;case key_navigatable_js_1$3.KEY.DOWN:this.down(e);break;case key_navigatable_js_1$3.KEY.RETURN:case key_navigatable_js_1$3.KEY.SPACE:this.space(e);break;default:return}this.bubble?this.bubble=!1:this.stop(e)},e.prototype.escape=function(e){},e.prototype.space=function(e){},e.prototype.left=function(e){},e.prototype.right=function(e){},e.prototype.up=function(e){},e.prototype.down=function(e){},e.prototype.stop=function(e){e&&(e.stopPropagation(),e.preventDefault(),e.cancelBubble=!0)},e.prototype.mousedown=function(e){return this.stop(e)},e.prototype.mouseup=function(e){return this.stop(e)},e.prototype.mouseover=function(e){return this.stop(e)},e.prototype.mouseout=function(e){return this.stop(e)},e.prototype.click=function(e){return this.stop(e)},e.prototype.addEvents=function(e){e.addEventListener(mouse_navigatable_js_1.MOUSE.DOWN,this.mousedown.bind(this)),e.addEventListener(mouse_navigatable_js_1.MOUSE.UP,this.mouseup.bind(this)),e.addEventListener(mouse_navigatable_js_1.MOUSE.OVER,this.mouseover.bind(this)),e.addEventListener(mouse_navigatable_js_1.MOUSE.OUT,this.mouseout.bind(this)),e.addEventListener(mouse_navigatable_js_1.MOUSE.CLICK,this.click.bind(this)),e.addEventListener("keydown",this.keydown.bind(this)),e.addEventListener("dragstart",this.stop.bind(this)),e.addEventListener(mouse_navigatable_js_1.MOUSE.SELECTSTART,this.stop.bind(this)),e.addEventListener("contextmenu",this.stop.bind(this)),e.addEventListener(mouse_navigatable_js_1.MOUSE.DBLCLICK,this.stop.bind(this))},e}();abstract_navigatable.AbstractNavigatable=AbstractNavigatable;var __extends$1J=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(menu_element,"__esModule",{value:!0}),menu_element.MenuElement=void 0;var abstract_navigatable_js_1=abstract_navigatable,MenuElement=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1J(t,e),t.prototype.addAttributes=function(e){for(var t in e)this.html.setAttribute(t,e[t])},Object.defineProperty(t.prototype,"html",{get:function(){return this._html||this.generateHtml(),this._html},set:function(e){this._html=e,this.addEvents(e)},enumerable:!1,configurable:!0}),t.prototype.generateHtml=function(){var e=document.createElement("div");e.classList.add(this.className),e.setAttribute("role",this.role),this.html=e},t.prototype.focus=function(){var e=this.html;e.setAttribute("tabindex","0"),e.focus()},t.prototype.unfocus=function(){var e=this.html;e.hasAttribute("tabindex")&&e.setAttribute("tabindex","-1");try{e.blur()}catch(e){}e.blur()},t}(abstract_navigatable_js_1.AbstractNavigatable);menu_element.MenuElement=MenuElement;var __extends$1I=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(abstract_postable,"__esModule",{value:!0}),abstract_postable.AbstractPostable=void 0;var menu_element_js_1$1=menu_element,AbstractPostable=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.posted=!1,t}return __extends$1I(t,e),t.prototype.isPosted=function(){return this.posted},t.prototype.post=function(e,t){this.posted||(void 0!==e&&void 0!==t&&this.html.setAttribute("style","left: "+e+"px; top: "+t+"px;"),this.display(),this.posted=!0)},t.prototype.unpost=function(){if(this.posted){var e=this.html;e.parentNode&&e.parentNode.removeChild(e),this.posted=!1}},t}(menu_element_js_1$1.MenuElement);abstract_postable.AbstractPostable=AbstractPostable;var abstract_item={},abstract_entry={},html_classes={};Object.defineProperty(html_classes,"__esModule",{value:!0}),html_classes.HtmlAttrs=html_classes.HtmlClasses=void 0;var PREFIX="CtxtMenu";function prefix_(e){return PREFIX+"_"+e}function prefixClass_(e){return prefix_(e)}function prefixAttr_(e){return prefix_(e)}html_classes.HtmlClasses={ATTACHED:prefixClass_("Attached"),CONTEXTMENU:prefixClass_("ContextMenu"),MENU:prefixClass_("Menu"),MENUARROW:prefixClass_("MenuArrow"),MENUACTIVE:prefixClass_("MenuActive"),MENUCHECK:prefixClass_("MenuCheck"),MENUCLOSE:prefixClass_("MenuClose"),MENUCOMBOBOX:prefixClass_("MenuComboBox"),MENUDISABLED:prefixClass_("MenuDisabled"),MENUFRAME:prefixClass_("MenuFrame"),MENUITEM:prefixClass_("MenuItem"),MENULABEL:prefixClass_("MenuLabel"),MENURADIOCHECK:prefixClass_("MenuRadioCheck"),MENUINPUTBOX:prefixClass_("MenuInputBox"),MENURULE:prefixClass_("MenuRule"),MENUSLIDER:prefixClass_("MenuSlider"),MOUSEPOST:prefixClass_("MousePost"),RTL:prefixClass_("RTL"),INFO:prefixClass_("Info"),INFOCLOSE:prefixClass_("InfoClose"),INFOCONTENT:prefixClass_("InfoContent"),INFOSIGNATURE:prefixClass_("InfoSignature"),INFOTITLE:prefixClass_("InfoTitle"),SLIDERVALUE:prefixClass_("SliderValue"),SLIDERBAR:prefixClass_("SliderBar"),SELECTION:prefixClass_("Selection"),SELECTIONBOX:prefixClass_("SelectionBox"),SELECTIONMENU:prefixClass_("SelectionMenu"),SELECTIONDIVIDER:prefixClass_("SelectionDivider"),SELECTIONITEM:prefixClass_("SelectionItem")},html_classes.HtmlAttrs={COUNTER:prefixAttr_("Counter"),KEYDOWNFUNC:prefixAttr_("keydownFunc"),CONTEXTMENUFUNC:prefixAttr_("contextmenuFunc"),OLDTAB:prefixAttr_("Oldtabindex"),TOUCHFUNC:prefixAttr_("TouchFunc")};var __extends$1H=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(abstract_entry,"__esModule",{value:!0}),abstract_entry.AbstractEntry=void 0;var menu_element_js_1=menu_element,html_classes_js_1$f=html_classes,AbstractEntry=function(e){function t(t,r){var n=e.call(this)||this;return n._menu=t,n._type=r,n.className=html_classes_js_1$f.HtmlClasses.MENUITEM,n.role="menuitem",n.hidden=!1,n}return __extends$1H(t,e),Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(e){this._menu=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),t.prototype.hide=function(){this.hidden=!0,this.menu.generateMenu()},t.prototype.show=function(){this.hidden=!1,this.menu.generateMenu()},t.prototype.isHidden=function(){return this.hidden},t}(menu_element_js_1.MenuElement);abstract_entry.AbstractEntry=AbstractEntry;var menu_util={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MenuUtil=void 0,function(e){e.close=function(e){var t=e.menu;t.baseMenu?t.baseMenu.unpost():t.unpost()},e.getActiveElement=function(e){var t=e.menu;return(t.baseMenu?t.baseMenu:t).store.active},e.error=function(e,t){console.error("ContextMenu Error: "+t)},e.counter=function(){return t++};var t=0}(e.MenuUtil||(e.MenuUtil={}))}(menu_util),getDefaultExportFromCjs$1(menu_util);var __extends$1G=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$N=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(abstract_item,"__esModule",{value:!0}),abstract_item.AbstractItem=void 0;var abstract_entry_js_1$1=abstract_entry,menu_util_js_1$8=menu_util,html_classes_js_1$e=html_classes,AbstractItem=function(e){function t(t,r,n,o){var i=e.call(this,t,r)||this;return i._content=n,i.disabled=!1,i.callbacks=[],i._id=o||n,i}return __extends$1G(t,e),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){this._content=e,this.generateHtml(),this.menu&&this.menu.generateHtml()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.press=function(){this.disabled||(this.executeAction(),this.executeCallbacks_())},t.prototype.executeAction=function(){},t.prototype.registerCallback=function(e){-1===this.callbacks.indexOf(e)&&this.callbacks.push(e)},t.prototype.unregisterCallback=function(e){var t=this.callbacks.indexOf(e);-1!==t&&this.callbacks.splice(t,1)},t.prototype.mousedown=function(e){this.press(),this.stop(e)},t.prototype.mouseover=function(e){this.focus(),this.stop(e)},t.prototype.mouseout=function(e){this.deactivate(),this.stop(e)},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var t=this.html;t.setAttribute("aria-disabled","false"),t.textContent=this.content},t.prototype.activate=function(){this.disabled||this.html.classList.add(html_classes_js_1$e.HtmlClasses.MENUACTIVE)},t.prototype.deactivate=function(){this.html.classList.remove(html_classes_js_1$e.HtmlClasses.MENUACTIVE)},t.prototype.focus=function(){this.menu.focused=this,e.prototype.focus.call(this),this.activate()},t.prototype.unfocus=function(){this.deactivate(),e.prototype.unfocus.call(this)},t.prototype.escape=function(e){menu_util_js_1$8.MenuUtil.close(this)},t.prototype.up=function(e){this.menu.up(e)},t.prototype.down=function(e){this.menu.down(e)},t.prototype.left=function(e){this.menu.left(e)},t.prototype.right=function(e){this.menu.right(e)},t.prototype.space=function(e){this.press()},t.prototype.disable=function(){this.disabled=!0;var e=this.html;e.classList.add(html_classes_js_1$e.HtmlClasses.MENUDISABLED),e.setAttribute("aria-disabled","true")},t.prototype.enable=function(){this.disabled=!1;var e=this.html;e.classList.remove(html_classes_js_1$e.HtmlClasses.MENUDISABLED),e.removeAttribute("aria-disabled")},t.prototype.executeCallbacks_=function(){var e,t;try{for(var r=__values$N(this.callbacks),n=r.next();!n.done;n=r.next()){var o=n.value;try{o(this)}catch(e){menu_util_js_1$8.MenuUtil.error(e,"Callback for menu entry "+this.id+" failed.")}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t}(abstract_entry_js_1$1.AbstractEntry);abstract_item.AbstractItem=AbstractItem;var item_submenu={},__extends$1F=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(item_submenu,"__esModule",{value:!0}),item_submenu.Submenu=void 0;var abstract_item_js_1$4=abstract_item,html_classes_js_1$d=html_classes,Submenu=function(e){function t(t,r,n){var o=e.call(this,t,"submenu",r,n)||this;return o._submenu=null,o}return __extends$1F(t,e),t.fromJson=function(e,t,r){var n=t.content,o=t.menu,i=new this(r,n,t.id),a=e.get("subMenu")(e,o,i);return i.submenu=a,i},Object.defineProperty(t.prototype,"submenu",{get:function(){return this._submenu},set:function(e){this._submenu=e},enumerable:!1,configurable:!0}),t.prototype.mouseover=function(e){this.focus(),this.stop(e)},t.prototype.mouseout=function(e){this.stop(e)},t.prototype.unfocus=function(){if(this.submenu.isPosted()){if(this.menu.focused!==this)return e.prototype.unfocus.call(this),void this.menu.unpostSubmenus();this.html.setAttribute("tabindex","-1"),this.html.blur()}else e.prototype.unfocus.call(this)},t.prototype.focus=function(){e.prototype.focus.call(this),this.submenu.isPosted()||this.disabled||this.submenu.post()},t.prototype.executeAction=function(){this.submenu.isPosted()?this.submenu.unpost():this.submenu.post()},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var t=this.html;this.span=document.createElement("span"),this.span.textContent="►",this.span.classList.add(html_classes_js_1$d.HtmlClasses.MENUARROW),t.appendChild(this.span),t.setAttribute("aria-haspopup","true")},t.prototype.left=function(t){this.submenu.isPosted()?this.submenu.unpost():e.prototype.left.call(this,t)},t.prototype.right=function(e){this.submenu.isPosted()?this.submenu.down(e):this.submenu.post()},t.prototype.toJson=function(){return{type:""}},t}(abstract_item_js_1$4.AbstractItem);item_submenu.Submenu=Submenu;var __extends$1E=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$M=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(abstract_menu,"__esModule",{value:!0}),abstract_menu.AbstractMenu=void 0;var abstract_postable_js_1$2=abstract_postable,abstract_item_js_1$3=abstract_item,html_classes_js_1$c=html_classes,item_submenu_js_1$2=item_submenu,AbstractMenu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className=html_classes_js_1$c.HtmlClasses.CONTEXTMENU,t.role="menu",t._items=[],t._baseMenu=null,t}return __extends$1E(t,e),Object.defineProperty(t.prototype,"baseMenu",{get:function(){return this._baseMenu},set:function(e){this._baseMenu=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pool",{get:function(){return this.variablePool},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focused",{get:function(){return this._focused},set:function(e){if(this._focused!==e){this._focused||this.unfocus();var t=this._focused;this._focused=e,t&&t.unfocus()}},enumerable:!1,configurable:!0}),t.prototype.up=function(e){var t=this.items.filter((function(e){return e instanceof abstract_item_js_1$3.AbstractItem&&!e.isHidden()}));if(0!==t.length)if(this.focused){var r=t.indexOf(this.focused);-1!==r&&t[r=r?--r:t.length-1].focus()}else t[t.length-1].focus()},t.prototype.down=function(e){var t=this.items.filter((function(e){return e instanceof abstract_item_js_1$3.AbstractItem&&!e.isHidden()}));if(0!==t.length)if(this.focused){var r=t.indexOf(this.focused);-1!==r&&t[r=++r===t.length?0:r].focus()}else t[0].focus()},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.generateMenu()},t.prototype.generateMenu=function(){var e,t,r=this.html;r.classList.add(html_classes_js_1$c.HtmlClasses.MENU);try{for(var n=__values$M(this.items),o=n.next();!o.done;o=n.next()){var i=o.value;if(i.isHidden()){var a=i.html;a.parentNode&&a.parentNode.removeChild(a)}else r.appendChild(i.html)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.post=function(t,r){this.variablePool.update(),e.prototype.post.call(this,t,r)},t.prototype.unpostSubmenus=function(){var e,t,r=this.items.filter((function(e){return e instanceof item_submenu_js_1$2.Submenu}));try{for(var n=__values$M(r),o=n.next();!o.done;o=n.next()){var i=o.value;i.submenu.unpost(),i!==this.focused&&i.unfocus()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.unpost=function(){e.prototype.unpost.call(this),this.unpostSubmenus(),this.focused=null},t.prototype.find=function(e){var t,r;try{for(var n=__values$M(this.items),o=n.next();!o.done;o=n.next()){var i=o.value;if("rule"!==i.type){if(i.id===e)return i;if("submenu"===i.type){var a=i.submenu.find(e);if(a)return a}}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return null},t}(abstract_postable_js_1$2.AbstractPostable);abstract_menu.AbstractMenu=AbstractMenu;var menu_store={},__values$L=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(menu_store,"__esModule",{value:!0}),menu_store.MenuStore=void 0;var menu_util_js_1$7=menu_util,html_classes_js_1$b=html_classes,key_navigatable_js_1$2=key_navigatable,MenuStore=function(){function e(e){this.menu=e,this.store=[],this._active=null,this.counter=0,this.attachedClass=html_classes_js_1$b.HtmlClasses.ATTACHED+"_"+menu_util_js_1$7.MenuUtil.counter(),this.taborder=!0,this.attrMap={}}return Object.defineProperty(e.prototype,"active",{get:function(){return this._active},set:function(e){do{if(-1!==this.store.indexOf(e)){this._active=e;break}e=e.parentNode}while(e)},enumerable:!1,configurable:!0}),e.prototype.next=function(){var e=this.store.length;if(0===e)return this.active=null,null;var t=this.store.indexOf(this.active);return t=-1===t?0:t<e-1?t+1:0,this.active=this.store[t],this.active},e.prototype.previous=function(){var e=this.store.length;if(0===e)return this.active=null,null;var t=e-1,r=this.store.indexOf(this.active);return r=-1===r||0===r?t:r-1,this.active=this.store[r],this.active},e.prototype.clear=function(){this.remove(this.store)},e.prototype.insert=function(e){var t,r,n=e instanceof HTMLElement?[e]:e;try{for(var o=__values$L(n),i=o.next();!i.done;i=o.next()){var a=i.value;this.insertElement(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this.sort()},e.prototype.remove=function(e){var t,r,n=e instanceof HTMLElement?[e]:e;try{for(var o=__values$L(n),i=o.next();!i.done;i=o.next()){var a=i.value;this.removeElement(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this.sort()},e.prototype.inTaborder=function(e){this.taborder&&!e&&this.removeTaborder(),!this.taborder&&e&&this.insertTaborder(),this.taborder=e},e.prototype.insertTaborder=function(){this.taborder&&this.insertTaborder_()},e.prototype.removeTaborder=function(){this.taborder&&this.removeTaborder_()},e.prototype.insertElement=function(e){e.classList.contains(this.attachedClass)||(e.classList.add(this.attachedClass),this.taborder&&this.addTabindex(e),this.addEvents(e))},e.prototype.removeElement=function(e){e.classList.contains(this.attachedClass)&&(e.classList.remove(this.attachedClass),this.taborder&&this.removeTabindex(e),this.removeEvents(e))},e.prototype.sort=function(){var e=document.getElementsByClassName(this.attachedClass);this.store=[].slice.call(e)},e.prototype.insertTaborder_=function(){this.store.forEach((function(e){return e.setAttribute("tabindex","0")}))},e.prototype.removeTaborder_=function(){this.store.forEach((function(e){return e.setAttribute("tabindex","-1")}))},e.prototype.addTabindex=function(e){e.hasAttribute("tabindex")&&e.setAttribute(html_classes_js_1$b.HtmlAttrs.OLDTAB,e.getAttribute("tabindex")),e.setAttribute("tabindex","0")},e.prototype.removeTabindex=function(e){e.hasAttribute(html_classes_js_1$b.HtmlAttrs.OLDTAB)?(e.setAttribute("tabindex",e.getAttribute(html_classes_js_1$b.HtmlAttrs.OLDTAB)),e.removeAttribute(html_classes_js_1$b.HtmlAttrs.OLDTAB)):e.removeAttribute("tabindex")},e.prototype.addEvents=function(e){e.hasAttribute(html_classes_js_1$b.HtmlAttrs.COUNTER)||(this.addEvent(e,"contextmenu",this.menu.post.bind(this.menu)),this.addEvent(e,"keydown",this.keydown.bind(this)),e.setAttribute(html_classes_js_1$b.HtmlAttrs.COUNTER,this.counter.toString()),this.counter++)},e.prototype.addEvent=function(e,t,r){var n=html_classes_js_1$b.HtmlAttrs[t.toUpperCase()+"FUNC"];this.attrMap[n+this.counter]=r,e.addEventListener(t,r)},e.prototype.removeEvents=function(e){if(e.hasAttribute(html_classes_js_1$b.HtmlAttrs.COUNTER)){var t=e.getAttribute(html_classes_js_1$b.HtmlAttrs.COUNTER);this.removeEvent(e,"contextmenu",t),this.removeEvent(e,"keydown",t),e.removeAttribute(html_classes_js_1$b.HtmlAttrs.COUNTER)}},e.prototype.removeEvent=function(e,t,r){var n=html_classes_js_1$b.HtmlAttrs[t.toUpperCase()+"FUNC"],o=this.attrMap[n+r];e.removeEventListener(t,o)},e.prototype.keydown=function(e){e.keyCode===key_navigatable_js_1$2.KEY.SPACE&&(this.menu.post(e),e.preventDefault(),e.stopImmediatePropagation())},e}();menu_store.MenuStore=MenuStore;var variable_pool={};Object.defineProperty(variable_pool,"__esModule",{value:!0}),variable_pool.VariablePool=void 0;var VariablePool=function(){function e(){this.pool={}}return e.prototype.insert=function(e){this.pool[e.name]=e},e.prototype.lookup=function(e){return this.pool[e]},e.prototype.remove=function(e){delete this.pool[e]},e.prototype.update=function(){for(var e in this.pool)this.pool[e].update()},e}();variable_pool.VariablePool=VariablePool;var __extends$1D=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(context_menu,"__esModule",{value:!0}),context_menu.ContextMenu=void 0;var abstract_menu_js_1$2=abstract_menu,html_classes_js_1$a=html_classes,menu_store_js_1=menu_store,variable_pool_js_1=variable_pool,ContextMenu=function(e){function t(t){var r=e.call(this)||this;return r.factory=t,r.id="",r.moving=!1,r._store=new menu_store_js_1.MenuStore(r),r.widgets=[],r.variablePool=new variable_pool_js_1.VariablePool,r}return __extends$1D(t,e),t.fromJson=function(e,t){var r=t.pool,n=t.items,o=t.id,i=void 0===o?"":o,a=new this(e);a.id=i;var s=e.get("variable");r.forEach((function(t){return s(e,t,a.pool)}));var l=e.get("items")(e,n,a);return a.items=l,a},t.prototype.generateHtml=function(){this.isPosted()&&this.unpost(),e.prototype.generateHtml.call(this),this._frame=document.createElement("div"),this._frame.classList.add(html_classes_js_1$a.HtmlClasses.MENUFRAME);var t="left: 0px; top: 0px; z-index: 200; width: 100%; height: 100%; border: 0px; padding: 0px; margin: 0px;";this._frame.setAttribute("style","position: absolute; "+t);var r=document.createElement("div");r.setAttribute("style","position: fixed; "+t),this._frame.appendChild(r),r.addEventListener("mousedown",function(e){this.unpost(),this.unpostWidgets(),this.stop(e)}.bind(this))},t.prototype.display=function(){document.body.appendChild(this.frame),this.frame.appendChild(this.html),this.focus()},t.prototype.escape=function(e){this.unpost(),this.unpostWidgets()},t.prototype.unpost=function(){if(e.prototype.unpost.call(this),!(this.widgets.length>0)){this.frame.parentNode.removeChild(this.frame);var t=this.store;this.moving||t.insertTaborder(),t.active.focus()}},t.prototype.left=function(e){this.move_(this.store.previous())},t.prototype.right=function(e){this.move_(this.store.next())},Object.defineProperty(t.prototype,"frame",{get:function(){return this._frame},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"store",{get:function(){return this._store},enumerable:!1,configurable:!0}),t.prototype.post=function(t,r){if(void 0!==r)return this.moving||this.store.removeTaborder(),void e.prototype.post.call(this,t,r);var n,o,i,a=t;if(a instanceof Event?(n=a.target,this.stop(a)):n=a,a instanceof MouseEvent&&(o=a.pageX,i=a.pageY,o||i||!a.clientX||(o=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,i=a.clientY+document.body.scrollTop+document.documentElement.scrollTop)),!o&&!i&&n){var s=window.pageXOffset||document.documentElement.scrollLeft,l=window.pageYOffset||document.documentElement.scrollTop,c=n.getBoundingClientRect();o=(c.right+c.left)/2+s,i=(c.bottom+c.top)/2+l}this.store.active=n,this.anchor=this.store.active;var u=this.html;o+u.offsetWidth>document.body.offsetWidth-5&&(o=document.body.offsetWidth-u.offsetWidth-5),this.post(o,i)},t.prototype.registerWidget=function(e){this.widgets.push(e)},t.prototype.unregisterWidget=function(e){var t=this.widgets.indexOf(e);t>-1&&this.widgets.splice(t,1),0===this.widgets.length&&this.unpost()},t.prototype.unpostWidgets=function(){this.widgets.forEach((function(e){return e.unpost()}))},t.prototype.toJson=function(){return{type:""}},t.prototype.move_=function(e){this.anchor&&e!==this.anchor&&(this.moving=!0,this.unpost(),this.post(e),this.moving=!1)},t}(abstract_menu_js_1$2.AbstractMenu);context_menu.ContextMenu=ContextMenu;var __extends$1C=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$K=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$U=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(MJContextMenu$1,"__esModule",{value:!0}),MJContextMenu$1.MJContextMenu=void 0;var context_menu_js_1$1=context_menu,item_submenu_js_1$1=item_submenu,MJContextMenu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mathItem=null,t.annotation="",t.annotationTypes={},t}return __extends$1C(t,e),t.prototype.post=function(t,r){if(this.mathItem){if(void 0!==r){var n=this.mathItem.inputJax.name,o=this.findID("Show","Original");o.content="MathML"===n?"Original MathML":n+" Commands",this.findID("Copy","Original").content=o.content;var i=this.findID("Settings","semantics");"MathML"===n?i.disable():i.enable(),this.getAnnotationMenu(),this.dynamicSubmenus()}e.prototype.post.call(this,t,r)}},t.prototype.unpost=function(){e.prototype.unpost.call(this),this.mathItem=null},t.prototype.findID=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=this,i=null;try{for(var a=__values$K(r),s=a.next();!s.done;s=a.next()){var l=s.value;o?(i=o.find(l),o=i instanceof item_submenu_js_1$1.Submenu?i.submenu:null):i=null}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i},t.prototype.getAnnotationMenu=function(){var e=this,t=this.getAnnotations(this.getSemanticNode());this.createAnnotationMenu("Show",t,(function(){return e.showAnnotation.post()})),this.createAnnotationMenu("Copy",t,(function(){return e.copyAnnotation()}))},t.prototype.getSemanticNode=function(){for(var e=this.mathItem.root;e&&!e.isKind("semantics");){if(e.isToken||1!==e.childNodes.length)return null;e=e.childNodes[0]}return e},t.prototype.getAnnotations=function(e){var t,r,n=[];if(!e)return n;try{for(var o=__values$K(e.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;if(a.isKind("annotation")){var s=this.annotationMatch(a);if(s){var l=a.childNodes.reduce((function(e,t){return e+t.toString()}),"");n.push([s,l])}}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},t.prototype.annotationMatch=function(e){var t,r,n=e.attributes.get("encoding");try{for(var o=__values$K(Object.keys(this.annotationTypes)),i=o.next();!i.done;i=o.next()){var a=i.value;if(this.annotationTypes[a].indexOf(n)>=0)return a}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return null},t.prototype.createAnnotationMenu=function(e,t,r){var n=this,o=this.findID(e,"Annotation");o.submenu=this.factory.get("subMenu")(this.factory,{items:t.map((function(e){var t=__read$U(e,2),o=t[0],i=t[1];return{type:"command",id:o,content:o,action:function(){n.annotation=i,r()}}})),id:"annotations"},o),t.length?o.enable():o.disable()},t.prototype.dynamicSubmenus=function(){var e,r;try{for(var n=__values$K(t.DynamicSubmenus),o=n.next();!o.done;o=n.next()){var i=__read$U(o.value,2),a=i[0],s=i[1],l=this.find(a);if(l){var c=s(this,l);l.submenu=c,c.items.length?l.enable():l.disable()}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.DynamicSubmenus=new Map,t}(context_menu_js_1$1.ContextMenu);MJContextMenu$1.MJContextMenu=MJContextMenu;var MmlVisitor$1={},__extends$1B=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(MmlVisitor$1,"__esModule",{value:!0}),MmlVisitor$1.MmlVisitor=void 0;var SerializedMmlVisitor_js_1=SerializedMmlVisitor,Options_js_1$g=Options,MmlVisitor=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options={texHints:!0,semantics:!1},t.mathItem=null,t}return __extends$1B(t,e),t.prototype.visitTree=function(e,t,r){return void 0===t&&(t=null),void 0===r&&(r={}),this.mathItem=t,(0,Options_js_1$g.userOptions)(this.options,r),this.visitNode(e,"")},t.prototype.visitTeXAtomNode=function(t,r){return this.options.texHints?e.prototype.visitTeXAtomNode.call(this,t,r):t.childNodes[0]&&1===t.childNodes[0].childNodes.length?this.visitNode(t.childNodes[0],r):r+"<mrow"+this.getAttributes(t)+">\n"+this.childNodeMml(t,r+" ","\n")+r+"</mrow>"},t.prototype.visitMathNode=function(t,r){if(!this.options.semantics||"TeX"!==this.mathItem.inputJax.name)return e.prototype.visitDefault.call(this,t,r);var n=t.childNodes.length&&t.childNodes[0].childNodes.length>1;return r+"<math"+this.getAttributes(t)+">\n"+r+" <semantics>\n"+(n?r+" <mrow>\n":"")+this.childNodeMml(t,r+(n?" ":" "),"\n")+(n?r+" </mrow>\n":"")+r+' <annotation encoding="application/x-tex">'+this.mathItem.math+"</annotation>\n"+r+" </semantics>\n"+r+"</math>"},t}(SerializedMmlVisitor_js_1.SerializedMmlVisitor);MmlVisitor$1.MmlVisitor=MmlVisitor;var SelectableInfo$1={},info={},close_button={},__extends$1A=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(close_button,"__esModule",{value:!0}),close_button.CloseButton=void 0;var abstract_postable_js_1$1=abstract_postable,html_classes_js_1$9=html_classes,CloseButton=function(e){function t(t){var r=e.call(this)||this;return r.element=t,r.className=html_classes_js_1$9.HtmlClasses.MENUCLOSE,r.role="button",r}return __extends$1A(t,e),t.prototype.generateHtml=function(){var e=document.createElement("span");e.classList.add(this.className),e.setAttribute("role",this.role),e.setAttribute("tabindex","0");var t=document.createElement("span");t.textContent="×",e.appendChild(t),this.html=e},t.prototype.display=function(){},t.prototype.unpost=function(){e.prototype.unpost.call(this),this.element.unpost()},t.prototype.keydown=function(t){this.bubbleKey(),e.prototype.keydown.call(this,t)},t.prototype.space=function(e){this.unpost(),this.stop(e)},t.prototype.mousedown=function(e){this.unpost(),this.stop(e)},t}(abstract_postable_js_1$1.AbstractPostable);close_button.CloseButton=CloseButton;var __extends$1z=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(info,"__esModule",{value:!0}),info.Info=void 0;var close_button_js_1=close_button,html_classes_js_1$8=html_classes,abstract_postable_js_1=abstract_postable,Info=function(e){function t(t,r,n){var o=e.call(this)||this;return o.title=t,o.signature=n,o.className=html_classes_js_1$8.HtmlClasses.INFO,o.role="dialog",o.contentDiv=o.generateContent(),o.close=o.generateClose(),o.content=r||function(){return""},o}return __extends$1z(t,e),t.prototype.attachMenu=function(e){this.menu=e},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var t=this.html;t.appendChild(this.generateTitle()),t.appendChild(this.contentDiv),t.appendChild(this.generateSignature()),t.appendChild(this.close.html),t.setAttribute("tabindex","0")},t.prototype.post=function(){e.prototype.post.call(this);var t=document.documentElement,r=this.html,n=window.innerHeight||t.clientHeight||t.scrollHeight||0,o=Math.floor(-r.offsetWidth/2),i=Math.floor((n-r.offsetHeight)/3);r.setAttribute("style","margin-left: "+o+"px; top: "+i+"px;"),window.event instanceof MouseEvent&&r.classList.add(html_classes_js_1$8.HtmlClasses.MOUSEPOST),r.focus()},t.prototype.display=function(){this.menu.registerWidget(this),this.contentDiv.innerHTML=this.content();var e=this.menu.html;e.parentNode&&e.parentNode.removeChild(e),this.menu.frame.appendChild(this.html)},t.prototype.click=function(e){},t.prototype.keydown=function(t){this.bubbleKey(),e.prototype.keydown.call(this,t)},t.prototype.escape=function(e){this.unpost()},t.prototype.unpost=function(){e.prototype.unpost.call(this),this.html.classList.remove(html_classes_js_1$8.HtmlClasses.MOUSEPOST),this.menu.unregisterWidget(this)},t.prototype.generateClose=function(){var e=new close_button_js_1.CloseButton(this),t=e.html;return t.classList.add(html_classes_js_1$8.HtmlClasses.INFOCLOSE),t.setAttribute("aria-label","Close Dialog Box"),e},t.prototype.generateTitle=function(){var e=document.createElement("span");return e.innerHTML=this.title,e.classList.add(html_classes_js_1$8.HtmlClasses.INFOTITLE),e},t.prototype.generateContent=function(){var e=document.createElement("div");return e.classList.add(html_classes_js_1$8.HtmlClasses.INFOCONTENT),e.setAttribute("tabindex","0"),e},t.prototype.generateSignature=function(){var e=document.createElement("span");return e.innerHTML=this.signature,e.classList.add(html_classes_js_1$8.HtmlClasses.INFOSIGNATURE),e},t.prototype.toJson=function(){return{type:""}},t}(abstract_postable_js_1.AbstractPostable);info.Info=Info;var __extends$1y=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(SelectableInfo$1,"__esModule",{value:!0}),SelectableInfo$1.SelectableInfo=void 0;var info_js_1$2=info,html_classes_js_1$7=html_classes,SelectableInfo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1y(t,e),t.prototype.addEvents=function(e){var t=this;e.addEventListener("keypress",(function(e){"a"===e.key&&(e.ctrlKey||e.metaKey)&&(t.selectAll(),t.stop(e))}))},t.prototype.selectAll=function(){document.getSelection().selectAllChildren(this.html.querySelector("pre"))},t.prototype.copyToClipboard=function(){this.selectAll();try{document.execCommand("copy")}catch(e){alert("Can't copy to clipboard: "+e.message)}document.getSelection().removeAllRanges()},t.prototype.generateHtml=function(){var t=this;e.prototype.generateHtml.call(this);var r=this.html.querySelector("span."+html_classes_js_1$7.HtmlClasses.INFOSIGNATURE).appendChild(document.createElement("input"));r.type="button",r.value="Copy to Clipboard",r.addEventListener("click",(function(e){return t.copyToClipboard()}))},t}(info_js_1$2.Info);SelectableInfo$1.SelectableInfo=SelectableInfo;var parse={},item_command={},__extends$1x=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(item_command,"__esModule",{value:!0}),item_command.Command=void 0;var abstract_item_js_1$2=abstract_item,menu_util_js_1$6=menu_util,Command=function(e){function t(t,r,n,o){var i=e.call(this,t,"command",r,o)||this;return i.command=n,i}return __extends$1x(t,e),t.fromJson=function(e,t,r){return new this(r,t.content,t.action,t.id)},t.prototype.executeAction=function(){try{this.command(menu_util_js_1$6.MenuUtil.getActiveElement(this))}catch(e){menu_util_js_1$6.MenuUtil.error(e,"Illegal command callback.")}menu_util_js_1$6.MenuUtil.close(this)},t.prototype.toJson=function(){return{type:""}},t}(abstract_item_js_1$2.AbstractItem);item_command.Command=Command;var variable={};Object.defineProperty(variable,"__esModule",{value:!0}),variable.Variable=void 0;var menu_util_js_1$5=menu_util,Variable=function(){function e(e,t,r){this._name=e,this.getter=t,this.setter=r,this.items=[]}return e.fromJson=function(e,t,r){var n=new this(t.name,t.getter,t.setter);r.insert(n)},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getValue=function(e){try{return this.getter(e)}catch(e){return menu_util_js_1$5.MenuUtil.error(e,"Command of variable "+this.name+" failed."),null}},e.prototype.setValue=function(e,t){try{this.setter(e,t)}catch(e){menu_util_js_1$5.MenuUtil.error(e,"Command of variable "+this.name+" failed.")}this.update()},e.prototype.register=function(e){-1===this.items.indexOf(e)&&this.items.push(e)},e.prototype.unregister=function(e){var t=this.items.indexOf(e);-1!==t&&this.items.splice(t,1)},e.prototype.update=function(){this.items.forEach((function(e){return e.update()}))},e.prototype.registerCallback=function(e){this.items.forEach((function(t){return t.registerCallback(e)}))},e.prototype.unregisterCallback=function(e){this.items.forEach((function(t){return t.unregisterCallback(e)}))},e.prototype.toJson=function(){return{type:"variable",name:this.name,getter:this.getter.toString(),setter:this.setter.toString()}},e}();variable.Variable=Variable;var item_checkbox={},abstract_variable_item={},__extends$1w=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(abstract_variable_item,"__esModule",{value:!0}),abstract_variable_item.AbstractVariableItem=void 0;var abstract_item_js_1$1=abstract_item,AbstractVariableItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1w(t,e),t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var t=this.html;this.span||this.generateSpan(),t.appendChild(this.span),this.update()},t.prototype.register=function(){this.variable.register(this)},t.prototype.unregister=function(){this.variable.unregister(this)},t.prototype.update=function(){this.updateAria(),this.span&&this.updateSpan()},t}(abstract_item_js_1$1.AbstractItem);abstract_variable_item.AbstractVariableItem=AbstractVariableItem;var __extends$1v=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(item_checkbox,"__esModule",{value:!0}),item_checkbox.Checkbox=void 0;var abstract_variable_item_js_1$3=abstract_variable_item,menu_util_js_1$4=menu_util,html_classes_js_1$6=html_classes,Checkbox=function(e){function t(t,r,n,o){var i=e.call(this,t,"checkbox",r,o)||this;return i.role="menuitemcheckbox",i.variable=t.pool.lookup(n),i.register(),i}return __extends$1v(t,e),t.fromJson=function(e,t,r){return new this(r,t.content,t.variable,t.id)},t.prototype.executeAction=function(){this.variable.setValue(!this.variable.getValue()),menu_util_js_1$4.MenuUtil.close(this)},t.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.textContent="✓",this.span.classList.add(html_classes_js_1$6.HtmlClasses.MENUCHECK)},t.prototype.updateAria=function(){this.html.setAttribute("aria-checked",this.variable.getValue()?"true":"false")},t.prototype.updateSpan=function(){this.span.style.display=this.variable.getValue()?"":"none"},t.prototype.toJson=function(){return{type:""}},t}(abstract_variable_item_js_1$3.AbstractVariableItem);item_checkbox.Checkbox=Checkbox;var item_combo={},__extends$1u=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(item_combo,"__esModule",{value:!0}),item_combo.Combo=void 0;var abstract_variable_item_js_1$2=abstract_variable_item,menu_util_js_1$3=menu_util,html_classes_js_1$5=html_classes,key_navigatable_js_1$1=key_navigatable,Combo=function(e){function t(t,r,n,o){var i=e.call(this,t,"combobox",r,o)||this;return i.role="combobox",i.inputEvent=!1,i.variable=t.pool.lookup(n),i.register(),i}return __extends$1u(t,e),t.fromJson=function(e,t,r){return new this(r,t.content,t.variable,t.id)},t.prototype.executeAction=function(){this.variable.setValue(this.input.value,menu_util_js_1$3.MenuUtil.getActiveElement(this))},t.prototype.space=function(t){e.prototype.space.call(this,t),menu_util_js_1$3.MenuUtil.close(this)},t.prototype.focus=function(){e.prototype.focus.call(this),this.input.focus()},t.prototype.unfocus=function(){e.prototype.unfocus.call(this),this.updateSpan()},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.html.classList.add(html_classes_js_1$5.HtmlClasses.MENUCOMBOBOX)},t.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.classList.add(html_classes_js_1$5.HtmlClasses.MENUINPUTBOX),this.input=document.createElement("input"),this.input.addEventListener("keydown",this.inputKey.bind(this)),this.input.setAttribute("size","10em"),this.input.setAttribute("type","text"),this.input.setAttribute("tabindex","-1"),this.span.appendChild(this.input)},t.prototype.inputKey=function(e){this.bubbleKey(),this.inputEvent=!0},t.prototype.keydown=function(t){if(this.inputEvent&&t.keyCode!==key_navigatable_js_1$1.KEY.ESCAPE&&t.keyCode!==key_navigatable_js_1$1.KEY.RETURN)return this.inputEvent=!1,void t.stopPropagation();e.prototype.keydown.call(this,t),t.stopPropagation()},t.prototype.updateAria=function(){},t.prototype.updateSpan=function(){var e;try{e=this.variable.getValue(menu_util_js_1$3.MenuUtil.getActiveElement(this))}catch(t){e=""}this.input.value=e},t.prototype.toJson=function(){return{type:""}},t}(abstract_variable_item_js_1$2.AbstractVariableItem);item_combo.Combo=Combo;var item_label={},__extends$1t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(item_label,"__esModule",{value:!0}),item_label.Label=void 0;var abstract_item_js_1=abstract_item,html_classes_js_1$4=html_classes,Label=function(e){function t(t,r,n){return e.call(this,t,"label",r,n)||this}return __extends$1t(t,e),t.fromJson=function(e,t,r){return new this(r,t.content,t.id)},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.html.classList.add(html_classes_js_1$4.HtmlClasses.MENULABEL)},t.prototype.toJson=function(){return{type:""}},t}(abstract_item_js_1.AbstractItem);item_label.Label=Label;var item_radio={},__extends$1s=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(item_radio,"__esModule",{value:!0}),item_radio.Radio=void 0;var abstract_variable_item_js_1$1=abstract_variable_item,menu_util_js_1$2=menu_util,html_classes_js_1$3=html_classes,Radio=function(e){function t(t,r,n,o){var i=e.call(this,t,"radio",r,o)||this;return i.role="menuitemradio",i.variable=t.pool.lookup(n),i.register(),i}return __extends$1s(t,e),t.fromJson=function(e,t,r){return new this(r,t.content,t.variable,t.id)},t.prototype.executeAction=function(){this.variable.setValue(this.id),menu_util_js_1$2.MenuUtil.close(this)},t.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.textContent="✓",this.span.classList.add(html_classes_js_1$3.HtmlClasses.MENURADIOCHECK)},t.prototype.updateAria=function(){this.html.setAttribute("aria-checked",this.variable.getValue()===this.id?"true":"false")},t.prototype.updateSpan=function(){this.span.style.display=this.variable.getValue()===this.id?"":"none"},t.prototype.toJson=function(){return{type:""}},t}(abstract_variable_item_js_1$1.AbstractVariableItem);item_radio.Radio=Radio;var item_rule={},__extends$1r=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(item_rule,"__esModule",{value:!0}),item_rule.Rule=void 0;var abstract_entry_js_1=abstract_entry,html_classes_js_1$2=html_classes,Rule=function(e){function t(t){var r=e.call(this,t,"rule")||this;return r.className=html_classes_js_1$2.HtmlClasses.MENUITEM,r.role="separator",r}return __extends$1r(t,e),t.fromJson=function(e,t,r){return new this(r)},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var t=this.html;t.classList.add(html_classes_js_1$2.HtmlClasses.MENURULE),t.setAttribute("aria-orientation","vertical")},t.prototype.addEvents=function(e){},t.prototype.toJson=function(){return{type:"rule"}},t}(abstract_entry_js_1.AbstractEntry);item_rule.Rule=Rule;var item_slider={},__extends$1q=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(item_slider,"__esModule",{value:!0}),item_slider.Slider=void 0;var abstract_variable_item_js_1=abstract_variable_item,menu_util_js_1$1=menu_util,html_classes_js_1$1=html_classes,key_navigatable_js_1=key_navigatable,Slider=function(e){function t(t,r,n,o){var i=e.call(this,t,"slider",r,o)||this;return i.role="slider",i.labelId="ctx_slideLabel"+menu_util_js_1$1.MenuUtil.counter(),i.valueId="ctx_slideValue"+menu_util_js_1$1.MenuUtil.counter(),i.inputEvent=!1,i.variable=t.pool.lookup(n),i.register(),i}return __extends$1q(t,e),t.fromJson=function(e,t,r){return new this(r,t.content,t.variable,t.id)},t.prototype.executeAction=function(){this.variable.setValue(this.input.value,menu_util_js_1$1.MenuUtil.getActiveElement(this)),this.update()},t.prototype.space=function(t){e.prototype.space.call(this,t),menu_util_js_1$1.MenuUtil.close(this)},t.prototype.focus=function(){e.prototype.focus.call(this),this.input.focus()},t.prototype.unfocus=function(){e.prototype.unfocus.call(this),this.updateSpan()},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.html.classList.add(html_classes_js_1$1.HtmlClasses.MENUSLIDER),this.valueSpan=document.createElement("span"),this.valueSpan.setAttribute("id",this.valueId),this.valueSpan.classList.add(html_classes_js_1$1.HtmlClasses.SLIDERVALUE),this.html.appendChild(this.valueSpan)},t.prototype.generateSpan=function(){this.span=document.createElement("span"),this.labelSpan=document.createElement("span"),this.labelSpan.setAttribute("id",this.labelId),this.labelSpan.appendChild(this.html.childNodes[0]),this.html.appendChild(this.labelSpan),this.input=document.createElement("input"),this.input.setAttribute("type","range"),this.input.setAttribute("min","0"),this.input.setAttribute("max","100"),this.input.setAttribute("aria-valuemin","0"),this.input.setAttribute("aria-valuemax","100"),this.input.setAttribute("aria-labelledby",this.labelId),this.input.addEventListener("keydown",this.inputKey.bind(this)),this.input.addEventListener("input",this.executeAction.bind(this)),this.input.classList.add(html_classes_js_1$1.HtmlClasses.SLIDERBAR),this.span.appendChild(this.input)},t.prototype.inputKey=function(e){this.inputEvent=!0},t.prototype.mousedown=function(e){e.stopPropagation()},t.prototype.mouseup=function(e){event.stopPropagation()},t.prototype.keydown=function(t){var r=t.keyCode;return r===key_navigatable_js_1.KEY.UP||r===key_navigatable_js_1.KEY.DOWN?(t.preventDefault(),void e.prototype.keydown.call(this,t)):this.inputEvent&&r!==key_navigatable_js_1.KEY.ESCAPE&&r!==key_navigatable_js_1.KEY.RETURN?(this.inputEvent=!1,void t.stopPropagation()):(e.prototype.keydown.call(this,t),void t.stopPropagation())},t.prototype.updateAria=function(){var e=this.variable.getValue();e&&this.input&&(this.input.setAttribute("aria-valuenow",e),this.input.setAttribute("aria-valuetext",e+"%"))},t.prototype.updateSpan=function(){var e;try{e=this.variable.getValue(menu_util_js_1$1.MenuUtil.getActiveElement(this)),this.valueSpan.innerHTML=e+"%"}catch(t){e=""}this.input.value=e},t.prototype.toJson=function(){return{type:""}},t}(abstract_variable_item_js_1.AbstractVariableItem);item_slider.Slider=Slider;var sub_menu={},__extends$1p=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(sub_menu,"__esModule",{value:!0}),sub_menu.SubMenu=void 0;var abstract_menu_js_1$1=abstract_menu,SubMenu=function(e){function t(t){var r=e.call(this)||this;return r._anchor=t,r.variablePool=r.anchor.menu.pool,r.setBaseMenu(),r}return __extends$1p(t,e),t.fromJson=function(e,t,r){var n=t.items,o=new this(r),i=e.get("items")(e,n,o);return o.items=i,o},Object.defineProperty(t.prototype,"anchor",{get:function(){return this._anchor},enumerable:!1,configurable:!0}),t.prototype.post=function(){if(this.anchor.menu.isPosted()){for(var t=this.anchor.html,r=this.html,n=this.baseMenu.frame,o=t.offsetWidth,i=o-2,a=0;t&&t!==n;)i+=t.offsetLeft,a+=t.offsetTop,t=t.parentNode;i+r.offsetWidth>document.body.offsetWidth-5&&(i=Math.max(5,i-o-r.offsetWidth+6)),e.prototype.post.call(this,i,a)}},t.prototype.display=function(){this.baseMenu.frame.appendChild(this.html)},t.prototype.setBaseMenu=function(){var e=this;do{e=e.anchor.menu}while(e instanceof t);this.baseMenu=e},t.prototype.left=function(e){this.focused=null,this.anchor.focus()},t.prototype.toJson=function(){return{type:""}},t}(abstract_menu_js_1$1.AbstractMenu);sub_menu.SubMenu=SubMenu;var selection_box={},__extends$1o=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$T=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(selection_box,"__esModule",{value:!0}),selection_box.SelectionBox=selection_box.SelectionMenu=void 0;var menu_util_js_1=menu_util,html_classes_js_1=html_classes,abstract_menu_js_1=abstract_menu,info_js_1$1=info,SelectionMenu=function(e){function t(t){var r=e.call(this)||this;return r.anchor=t,r.className=html_classes_js_1.HtmlClasses.SELECTIONMENU,r.variablePool=r.anchor.menu.pool,r.baseMenu=r.anchor.menu,r}return __extends$1o(t,e),t.fromJson=function(e,t,r){var n=t.title,o=t.values,i=t.variable,a=new this(r),s=e.get("label")(e,{content:n||"",id:n||"id"},a),l=e.get("rule")(e,{},a),c=o.map((function(t){return e.get("radio")(e,{content:t,variable:i,id:t},a)})),u=[s,l].concat(c);return a.items=u,a},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.items.forEach((function(e){return e.html.classList.add(html_classes_js_1.HtmlClasses.SELECTIONITEM)}))},t.prototype.display=function(){},t.prototype.right=function(e){this.anchor.right(e)},t.prototype.left=function(e){this.anchor.left(e)},t}(abstract_menu_js_1.AbstractMenu);selection_box.SelectionMenu=SelectionMenu;var SelectionBox=function(e){function t(t,r,n,o){void 0===n&&(n="none"),void 0===o&&(o="vertical");var i=e.call(this,t,null,r)||this;return i.style=n,i.grid=o,i._selections=[],i.prefix="ctxt-selection",i._balanced=!0,i}return __extends$1o(t,e),t.fromJson=function(e,t,r){var n=t.title,o=t.signature,i=t.selections,a=new this(n,o,t.order,t.grid);a.attachMenu(r);var s=i.map((function(t){return e.get("selectionMenu")(e,t,a)}));return a.selections=s,a},t.prototype.attachMenu=function(e){this.menu=e},Object.defineProperty(t.prototype,"selections",{get:function(){return this._selections},set:function(e){var t=this;this._selections=[],e.forEach((function(e){return t.addSelection(e)}))},enumerable:!1,configurable:!0}),t.prototype.addSelection=function(e){e.anchor=this,this._selections.push(e)},t.prototype.rowDiv=function(e){var t=this,r=document.createElement("div");this.contentDiv.appendChild(r);var n=e.map((function(e){return r.appendChild(e.html),e.html.id||(e.html.id=t.prefix+menu_util_js_1.MenuUtil.counter()),e.html.getBoundingClientRect()})),o=n.map((function(e){return e.width})),i=o.reduce((function(e,t){return e+t}),0),a=n.reduce((function(e,t){return Math.max(e,t.height)}),0);return r.classList.add(html_classes_js_1.HtmlClasses.SELECTIONDIVIDER),r.setAttribute("style","height: "+a+"px;"),[r,i,a,o]},t.prototype.display=function(){if(e.prototype.display.call(this),this.order(),this.selections.length){for(var t=[],r=0,n=[],o=this.getChunkSize(this.selections.length),i=function(e){var i=a.selections.slice(e,e+o),s=__read$T(a.rowDiv(i),4),l=s[0],c=s[1],u=s[2],d=s[3];t.push(l),r=Math.max(r,c),i.forEach((function(e){return e.html.style.height=u+"px"})),n=a.combineColumn(n,d)},a=this,s=0;s<this.selections.length;s+=o)i(s);this._balanced&&(this.balanceColumn(t,n),r=n.reduce((function(e,t){return e+t}),20)),t.forEach((function(e){return e.style.width=r+"px"}))}},t.prototype.getChunkSize=function(e){switch(this.grid){case"square":return Math.floor(Math.sqrt(e));case"horizontal":return Math.floor(e/t.chunkSize);default:return t.chunkSize}},t.prototype.balanceColumn=function(e,t){e.forEach((function(e){for(var r=Array.from(e.children),n=0,o=void 0;o=r[n];n++)o.style.width=t[n]+"px"}))},t.prototype.combineColumn=function(e,t){for(var r=[],n=0;e[n]||t[n];){if(!e[n]){r=r.concat(t.slice(n));break}if(!t[n]){r=r.concat(e.slice(n));break}r.push(Math.max(e[n],t[n])),n++}return r},t.prototype.left=function(e){var t=this;this.move(e,(function(e){return(0===e?t.selections.length:e)-1}))},t.prototype.right=function(e){var t=this;this.move(e,(function(e){return e===t.selections.length-1?0:e+1}))},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.html.classList.add(html_classes_js_1.HtmlClasses.SELECTION)},t.prototype.generateContent=function(){var t=e.prototype.generateContent.call(this);return t.classList.add(html_classes_js_1.HtmlClasses.SELECTIONBOX),t.removeAttribute("tabindex"),t},t.prototype.findSelection=function(e){var t=e.target,r=null;if(t.id&&(r=this.selections.find((function(e){return e.html.id===t.id}))),!r){var n=t.parentElement.id;r=this.selections.find((function(e){return e.html.id===n}))}return r},t.prototype.move=function(e,t){var r=this.findSelection(e);r.focused&&r.focused.unfocus();var n=t(this.selections.indexOf(r));this.selections[n].focus()},t.prototype.order=function(){this.selections.sort(t.orderMethod.get(this.style))},t.prototype.toJson=function(){return{type:""}},t.chunkSize=4,t.orderMethod=new Map([["alphabetical",function(e,t){return e.items[0].content.localeCompare(t.items[0].content)}],["none",function(e,t){return 1}],["decreasing",function(e,t){var r=e.items.length,n=t.items.length;return r<n?1:n<r?-1:0}],["increasing",function(e,t){var r=e.items.length,n=t.items.length;return r<n?-1:n<r?1:0}]]),t}(info_js_1$1.Info);selection_box.SelectionBox=SelectionBox;var parser_factory={};Object.defineProperty(parser_factory,"__esModule",{value:!0}),parser_factory.ParserFactory=void 0;var ParserFactory=function(){function e(e){this._parser=new Map(e)}return e.prototype.get=function(e){return this._parser.get(e)},e.prototype.add=function(e,t){this._parser.set(e,t)},e}();parser_factory.ParserFactory=ParserFactory;var __rest=commonjsGlobal&&commonjsGlobal.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},__read$S=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$J=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__spread=commonjsGlobal&&commonjsGlobal.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$S(arguments[t]));return e};Object.defineProperty(parse,"__esModule",{value:!0}),parse.Parser=void 0;var item_command_js_1=item_command,context_menu_js_1=context_menu,variable_js_1=variable,item_checkbox_js_1=item_checkbox,item_combo_js_1=item_combo,item_label_js_1=item_label,item_radio_js_1=item_radio,item_submenu_js_1=item_submenu,item_rule_js_1$1=item_rule,item_slider_js_1=item_slider,sub_menu_js_1=sub_menu,selection_box_js_1=selection_box,parser_factory_js_1=parser_factory,Parser=function(){function e(e){var t=this;void 0===e&&(e=[]),this._initList=[["command",item_command_js_1.Command.fromJson.bind(item_command_js_1.Command)],["checkbox",item_checkbox_js_1.Checkbox.fromJson.bind(item_checkbox_js_1.Checkbox)],["combo",item_combo_js_1.Combo.fromJson.bind(item_combo_js_1.Combo)],["slider",item_slider_js_1.Slider.fromJson.bind(item_slider_js_1.Slider)],["label",item_label_js_1.Label.fromJson.bind(item_label_js_1.Label)],["radio",item_radio_js_1.Radio.fromJson.bind(item_radio_js_1.Radio)],["rule",item_rule_js_1$1.Rule.fromJson.bind(item_rule_js_1$1.Rule)],["submenu",item_submenu_js_1.Submenu.fromJson.bind(item_submenu_js_1.Submenu)],["contextMenu",context_menu_js_1.ContextMenu.fromJson.bind(context_menu_js_1.ContextMenu)],["subMenu",sub_menu_js_1.SubMenu.fromJson.bind(sub_menu_js_1.SubMenu)],["variable",variable_js_1.Variable.fromJson.bind(variable_js_1.Variable)],["items",this.items.bind(this)],["selectionMenu",selection_box_js_1.SelectionMenu.fromJson.bind(selection_box_js_1.SelectionMenu)],["selectionBox",selection_box_js_1.SelectionBox.fromJson.bind(selection_box_js_1.SelectionBox)]],this._factory=new parser_factory_js_1.ParserFactory(this._initList),e.forEach((function(e){var r=__read$S(e,2),n=r[0],o=r[1];return t.factory.add(n,o)}))}return Object.defineProperty(e.prototype,"factory",{get:function(){return this._factory},enumerable:!1,configurable:!0}),e.prototype.items=function(e,t,r){var n,o,i=[];try{for(var a=__values$J(t),s=a.next();!s.done;s=a.next()){var l=s.value,c=this.parse(l,r);c&&(r.items.push(c),l.disabled&&c.disable(),l.hidden&&i.push(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i.forEach((function(e){return e.hide()})),r.items},e.prototype.parse=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=e.type,o=__rest(e,["type"]),i=this.factory.get(n);return i?i.apply(void 0,__spread([this.factory,o],t)):null},e}();parse.Parser=Parser;var css_util={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CssStyles=void 0;var t=html_classes;!function(e){function r(e){return"."+(t.HtmlClasses[e]||e)}var n={};n[r("INFOCLOSE")]="{ top:.2em; right:.2em;}",n[r("INFOCONTENT")]="{ overflow:auto; text-align:left; font-size:80%; padding:.4em .6em; border:1px inset; margin:1em 0px; max-height:20em; max-width:30em; background-color:#EEEEEE; white-space:normal;}",n[r("INFO")+r("MOUSEPOST")]="{outline:none;}",n[r("INFO")]='{ position:fixed; left:50%; width:auto; text-align:center; border:3px outset; padding:1em 2em; background-color:#DDDDDD; color:black; cursor:default; font-family:message-box; font-size:120%; font-style:normal; text-indent:0; text-transform:none; line-height:normal; letter-spacing:normal; word-spacing:normal; word-wrap:normal; white-space:nowrap; float:none; z-index:201; border-radius: 15px; /* Opera 10.5 and IE9 */ -webkit-border-radius:15px; /* Safari and Chrome */ -moz-border-radius:15px; /* Firefox */ -khtml-border-radius:15px; /* Konqueror */ box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */ -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */ -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */ -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */ filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color="gray", Positive="true"); /* IE */}';var o={};o[r("MENU")]="{ position:absolute; background-color:white; color:black; width:auto; padding:5px 0px; border:1px solid #CCCCCC; margin:0; cursor:default; font: menu; text-align:left; text-indent:0; text-transform:none; line-height:normal; letter-spacing:normal; word-spacing:normal; word-wrap:normal; white-space:nowrap; float:none; z-index:201; border-radius: 5px; /* Opera 10.5 and IE9 */ -webkit-border-radius: 5px; /* Safari and Chrome */ -moz-border-radius: 5px; /* Firefox */ -khtml-border-radius: 5px; /* Konqueror */ box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */ -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */ -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */ -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */}",o[r("MENUITEM")]="{ padding: 1px 2em; background:transparent;}",o[r("MENUARROW")]="{ position:absolute; right:.5em; padding-top:.25em; color:#666666; font-family: null; font-size: .75em}",o[r("MENUACTIVE")+" "+r("MENUARROW")]="{color:white}",o[r("MENUARROW")+r("RTL")]="{left:.5em; right:auto}",o[r("MENUCHECK")]="{ position:absolute; left:.7em; font-family: null}",o[r("MENUCHECK")+r("RTL")]="{ right:.7em; left:auto }",o[r("MENURADIOCHECK")]="{ position:absolute; left: .7em;}",o[r("MENURADIOCHECK")+r("RTL")]="{ right: .7em; left:auto}",o[r("MENUINPUTBOX")]="{ padding-left: 1em; right:.5em; color:#666666; font-family: null;}",o[r("MENUINPUTBOX")+r("RTL")]="{ left: .1em;}",o[r("MENUCOMBOBOX")]="{ left:.1em; padding-bottom:.5em;}",o[r("MENUSLIDER")]="{ left: .1em;}",o[r("SLIDERVALUE")]="{ position:absolute; right:.1em; padding-top:.25em; color:#333333; font-size: .75em}",o[r("SLIDERBAR")]="{ outline: none; background: #d3d3d3}",o[r("MENULABEL")]="{ padding: 1px 2em 3px 1.33em; font-style:italic}",o[r("MENURULE")]="{ border-top: 1px solid #DDDDDD; margin: 4px 3px;}",o[r("MENUDISABLED")]="{ color:GrayText}",o[r("MENUACTIVE")]="{ background-color: #606872; color: white;}",o[r("MENUDISABLED")+":focus"]="{ background-color: #E8E8E8}",o[r("MENULABEL")+":focus"]="{ background-color: #E8E8E8}",o[r("CONTEXTMENU")+":focus"]="{ outline:none}",o[r("CONTEXTMENU")+" "+r("MENUITEM")+":focus"]="{ outline:none}",o[r("SELECTIONMENU")]="{ position:relative; float:left; border-bottom: none; -webkit-box-shadow:none; -webkit-border-radius:0px; }",o[r("SELECTIONITEM")]="{ padding-right: 1em;}",o[r("SELECTION")]="{ right: 40%; width:50%; }",o[r("SELECTIONBOX")]="{ padding: 0em; max-height:20em; max-width: none; background-color:#FFFFFF;}",o[r("SELECTIONDIVIDER")]="{ clear: both; border-top: 2px solid #000000;}",o[r("MENU")+" "+r("MENUCLOSE")]="{ top:-10px; left:-10px}";var i={};i[r("MENUCLOSE")]='{ position:absolute; cursor:pointer; display:inline-block; border:2px solid #AAA; border-radius:18px; -webkit-border-radius: 18px; /* Safari and Chrome */ -moz-border-radius: 18px; /* Firefox */ -khtml-border-radius: 18px; /* Konqueror */ font-family: "Courier New", Courier; font-size:24px; color:#F0F0F0}',i[r("MENUCLOSE")+" span"]="{ display:block; background-color:#AAA; border:1.5px solid; border-radius:18px; -webkit-border-radius: 18px; /* Safari and Chrome */ -moz-border-radius: 18px; /* Firefox */ -khtml-border-radius: 18px; /* Konqueror */ line-height:0; padding:8px 0 6px /* may need to be browser-specific */}",i[r("MENUCLOSE")+":hover"]="{ color:white!important; border:2px solid #CCC!important}",i[r("MENUCLOSE")+":hover span"]="{ background-color:#CCC!important}",i[r("MENUCLOSE")+":hover:focus"]="{ outline:none}";var a=!1,s=!1,l=!1;function c(e){l||(u(i,e),l=!0)}function u(e,t){var r=t||document,n=r.createElement("style");n.type="text/css";var o="";for(var i in e)o+=i,o+=" ",o+=e[i],o+="\n";n.innerHTML=o,r.head.appendChild(n)}e.addMenuStyles=function(e){s||(u(o,e),s=!0,c(e))},e.addInfoStyles=function(e){a||(u(n,e),a=!0,c(e))}}(e.CssStyles||(e.CssStyles={}))}(css_util),getDefaultExportFromCjs$1(css_util);var __read$R=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$I=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$K=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Menu$1,"__esModule",{value:!0}),Menu$1.Menu=void 0;var mathjax_js_1$3=mathjax,MathItem_js_1$5=MathItem,global_js_1=global$1,Options_js_1$f=Options,MJContextMenu_js_1=MJContextMenu$1,MmlVisitor_js_1=MmlVisitor$1,SelectableInfo_js_1=SelectableInfo$1,info_js_1=info,parse_js_1=parse,item_rule_js_1=item_rule,css_util_js_1=css_util,sre_js_1=__importDefault$K(sre),MathJax$1=global_js_1.MathJax,isMac="undefined"!=typeof window&&window.navigator&&"Mac"===window.navigator.platform.substr(0,3),Menu=function(){function e(e,t){void 0===t&&(t={});var r=this;this.settings=null,this.defaultSettings=null,this.menu=null,this.MmlVisitor=new MmlVisitor_js_1.MmlVisitor,this.jax={CHTML:null,SVG:null},this.rerenderStart=MathItem_js_1$5.STATE.LAST,this.about=new info_js_1.Info('<b style="font-size:120%;">MathJax</b> v'+mathjax_js_1$3.mathjax.version,(function(){var e=[];return e.push("Input Jax: "+r.document.inputJax.map((function(e){return e.name})).join(", ")),e.push("Output Jax: "+r.document.outputJax.name),e.push("Document Type: "+r.document.kind),e.join("<br/>")}),'<a href="https://www.mathjax.org">www.mathjax.org</a>'),this.help=new info_js_1.Info("<b>MathJax Help</b>",(function(){return["<p><b>MathJax</b> is a JavaScript library that allows page"," authors to include mathematics within their web pages."," As a reader, you don't need to do anything to make that happen.</p>","<p><b>Browsers</b>: MathJax works with all modern browsers including"," Edge, Firefox, Chrome, Safari, Opera, and most mobile browsers.</p>","<p><b>Math Menu</b>: MathJax adds a contextual menu to equations."," Right-click or CTRL-click on any mathematics to access the menu.</p>",'<div style="margin-left: 1em;">',"<p><b>Show Math As:</b> These options allow you to view the formula's"," source markup (as MathML or in its original format).</p>","<p><b>Copy to Clipboard:</b> These options copy the formula's source markup,"," as MathML or in its original format, to the clipboard"," (in browsers that support that).</p>","<p><b>Math Settings:</b> These give you control over features of MathJax,"," such the size of the mathematics, and the mechanism used"," to display equations.</p>","<p><b>Accessibility</b>: MathJax can work with screen"," readers to make mathematics accessible to the visually impaired."," Turn on the explorer to enable generation of speech strings"," and the ability to investigate expressions interactively.</p>","<p><b>Language</b>: This menu lets you select the language used by MathJax"," for its menus and warning messages. (Not yet implemented in version 3.)</p>","</div>","<p><b>Math Zoom</b>: If you are having difficulty reading an"," equation, MathJax can enlarge it to help you see it better, or"," you can scall all the math on the page to make it larger."," Turn these features on in the <b>Math Settings</b> menu.</p>","<p><b>Preferences</b>: MathJax uses your browser's localStorage database"," to save the preferences set via this menu locally in your browser. These"," are not used to track you, and are not transferred or used remotely by"," MathJax in any way.</p>"].join("\n")}),'<a href="https://www.mathjax.org">www.mathjax.org</a>'),this.mathmlCode=new SelectableInfo_js_1.SelectableInfo("MathJax MathML Expression",(function(){if(!r.menu.mathItem)return"";var e=r.toMML(r.menu.mathItem);return"<pre>"+r.formatSource(e)+"</pre>"}),""),this.originalText=new SelectableInfo_js_1.SelectableInfo("MathJax Original Source",(function(){if(!r.menu.mathItem)return"";var e=r.menu.mathItem.math;return'<pre style="font-size:125%; margin:0">'+r.formatSource(e)+"</pre>"}),""),this.annotationText=new SelectableInfo_js_1.SelectableInfo("MathJax Annotation Text",(function(){if(!r.menu.mathItem)return"";var e=r.menu.annotation;return'<pre style="font-size:125%; margin:0">'+r.formatSource(e)+"</pre>"}),""),this.zoomBox=new info_js_1.Info("MathJax Zoomed Expression",(function(){if(!r.menu.mathItem)return"";var e=r.menu.mathItem.typesetRoot.cloneNode(!0);return e.style.margin="0",'<div style="font-size: '+1.25*parseFloat(r.settings.zscale)+'%">'+e.outerHTML+"</div>"}),""),this.document=e,this.options=(0,Options_js_1$f.userOptions)((0,Options_js_1$f.defaultOptions)({},this.constructor.OPTIONS),t),this.initSettings(),this.mergeUserSettings(),this.initMenu(),this.applySettings()}return Object.defineProperty(e.prototype,"isLoading",{get:function(){return e.loading>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loadingPromise",{get:function(){return this.isLoading?(e._loadingPromise||(e._loadingPromise=new Promise((function(t,r){e._loadingOK=t,e._loadingFailed=r}))),e._loadingPromise):Promise.resolve()},enumerable:!1,configurable:!0}),e.prototype.initSettings=function(){this.settings=this.options.settings,this.jax=this.options.jax;var e=this.document.outputJax;this.jax[e.name]=e,this.settings.renderer=e.name,MathJax$1._.a11y&&MathJax$1._.a11y.explorer&&Object.assign(this.settings,this.document.options.a11y),this.settings.scale=e.options.scale,this.defaultSettings=Object.assign({},this.settings)},e.prototype.initMenu=function(){var e=this,t=new parse_js_1.Parser([["contextMenu",MJContextMenu_js_1.MJContextMenu.fromJson.bind(MJContextMenu_js_1.MJContextMenu)]]);this.menu=t.parse({type:"contextMenu",id:"MathJax_Menu",pool:[this.variable("texHints"),this.variable("semantics"),this.variable("zoom"),this.variable("zscale"),this.variable("renderer",(function(t){return e.setRenderer(t)})),this.variable("alt"),this.variable("cmd"),this.variable("ctrl"),this.variable("shift"),this.variable("scale",(function(t){return e.setScale(t)})),this.variable("explorer",(function(t){return e.setExplorer(t)})),this.a11yVar("highlight"),this.a11yVar("backgroundColor"),this.a11yVar("backgroundOpacity"),this.a11yVar("foregroundColor"),this.a11yVar("foregroundOpacity"),this.a11yVar("speech"),this.a11yVar("subtitles"),this.a11yVar("braille"),this.a11yVar("viewBraille"),this.a11yVar("locale",(function(e){return sre_js_1.default.setupEngine({locale:e})})),this.a11yVar("speechRules",(function(t){var r=__read$R(t.split("-"),2),n=r[0],o=r[1];e.document.options.sre.domain=n,e.document.options.sre.style=o})),this.a11yVar("magnification"),this.a11yVar("magnify"),this.a11yVar("treeColoring"),this.a11yVar("infoType"),this.a11yVar("infoRole"),this.a11yVar("infoPrefix"),this.variable("autocollapse"),this.variable("collapsible",(function(t){return e.setCollapsible(t)})),this.variable("inTabOrder",(function(t){return e.setTabOrder(t)})),this.variable("assistiveMml",(function(t){return e.setAssistiveMml(t)}))],items:[this.submenu("Show","Show Math As",[this.command("MathMLcode","MathML Code",(function(){return e.mathmlCode.post()})),this.command("Original","Original Form",(function(){return e.originalText.post()})),this.submenu("Annotation","Annotation")]),this.submenu("Copy","Copy to Clipboard",[this.command("MathMLcode","MathML Code",(function(){return e.copyMathML()})),this.command("Original","Original Form",(function(){return e.copyOriginal()})),this.submenu("Annotation","Annotation")]),this.rule(),this.submenu("Settings","Math Settings",[this.submenu("Renderer","Math Renderer",this.radioGroup("renderer",[["CHTML"],["SVG"]])),this.rule(),this.submenu("ZoomTrigger","Zoom Trigger",[this.command("ZoomNow","Zoom Once Now",(function(){return e.zoom(null,"",e.menu.mathItem)})),this.rule(),this.radioGroup("zoom",[["Click"],["DoubleClick","Double-Click"],["NoZoom","No Zoom"]]),this.rule(),this.label("TriggerRequires","Trigger Requires:"),this.checkbox(isMac?"Option":"Alt",isMac?"Option":"Alt","alt"),this.checkbox("Command","Command","cmd",{hidden:!isMac}),this.checkbox("Control","Control","ctrl",{hiddne:isMac}),this.checkbox("Shift","Shift","shift")]),this.submenu("ZoomFactor","Zoom Factor",this.radioGroup("zscale",[["150%"],["175%"],["200%"],["250%"],["300%"],["400%"]])),this.rule(),this.command("Scale","Scale All Math...",(function(){return e.scaleAllMath()})),this.rule(),this.checkbox("texHints","Add TeX hints to MathML","texHints"),this.checkbox("semantics","Add original as annotation","semantics"),this.rule(),this.command("Reset","Reset to defaults",(function(){return e.resetDefaults()}))]),this.submenu("Accessibility","Accessibility",[this.checkbox("Activate","Activate","explorer"),this.submenu("Speech","Speech",[this.checkbox("Speech","Speech Output","speech"),this.checkbox("Subtitles","Speech Subtitles","subtitles"),this.checkbox("Braille","Braille Output","braille"),this.checkbox("View Braille","Braille Subtitles","viewBraille"),this.rule(),this.submenu("A11yLanguage","Language"),this.rule(),this.submenu("Mathspeak","Mathspeak Rules",this.radioGroup("speechRules",[["mathspeak-default","Verbose"],["mathspeak-brief","Brief"],["mathspeak-sbrief","Superbrief"]])),this.submenu("Clearspeak","Clearspeak Rules",this.radioGroup("speechRules",[["clearspeak-default","Auto"]])),this.submenu("ChromeVox","ChromeVox Rules",this.radioGroup("speechRules",[["chromevox-default","Standard"],["chromevox-alternative","Alternative"]]))]),this.submenu("Highlight","Highlight",[this.submenu("Background","Background",this.radioGroup("backgroundColor",[["Blue"],["Red"],["Green"],["Yellow"],["Cyan"],["Magenta"],["White"],["Black"]])),{type:"slider",variable:"backgroundOpacity",content:" "},this.submenu("Foreground","Foreground",this.radioGroup("foregroundColor",[["Black"],["White"],["Magenta"],["Cyan"],["Yellow"],["Green"],["Red"],["Blue"]])),{type:"slider",variable:"foregroundOpacity",content:" "},this.rule(),this.radioGroup("highlight",[["None"],["Hover"],["Flame"]]),this.rule(),this.checkbox("TreeColoring","Tree Coloring","treeColoring")]),this.submenu("Magnification","Magnification",[this.radioGroup("magnification",[["None"],["Keyboard"],["Mouse"]]),this.rule(),this.radioGroup("magnify",[["200%"],["300%"],["400%"],["500%"]])]),this.submenu("Semantic Info","Semantic Info",[this.checkbox("Type","Type","infoType"),this.checkbox("Role","Role","infoRole"),this.checkbox("Prefix","Prefix","infoPrefix")],!0),this.rule(),this.checkbox("Collapsible","Collapsible Math","collapsible"),this.checkbox("AutoCollapse","Auto Collapse","autocollapse",{disabled:!0}),this.rule(),this.checkbox("InTabOrder","Include in Tab Order","inTabOrder"),this.checkbox("AssistiveMml","Include Hidden MathML","assistiveMml")]),this.submenu("Language","Language"),this.rule(),this.command("About","About MathJax",(function(){return e.about.post()})),this.command("Help","MathJax Help",(function(){return e.help.post()}))]});var r=this.menu;this.about.attachMenu(r),this.help.attachMenu(r),this.originalText.attachMenu(r),this.annotationText.attachMenu(r),this.mathmlCode.attachMenu(r),this.zoomBox.attachMenu(r),this.checkLoadableItems(),this.enableExplorerItems(this.settings.explorer),r.showAnnotation=this.annotationText,r.copyAnnotation=this.copyAnnotation.bind(this),r.annotationTypes=this.options.annotationTypes,css_util_js_1.CssStyles.addInfoStyles(this.document.document),css_util_js_1.CssStyles.addMenuStyles(this.document.document)},e.prototype.checkLoadableItems=function(){var e,t;if(MathJax$1&&MathJax$1._&&MathJax$1.loader&&MathJax$1.startup)!this.settings.collapsible||MathJax$1._.a11y&&MathJax$1._.a11y.complexity||this.loadA11y("complexity"),!this.settings.explorer||MathJax$1._.a11y&&MathJax$1._.a11y.explorer||this.loadA11y("explorer"),!this.settings.assistiveMml||MathJax$1._.a11y&&MathJax$1._.a11y["assistive-mml"]||this.loadA11y("assistive-mml");else{var r=this.menu;try{for(var n=__values$I(Object.keys(this.jax)),o=n.next();!o.done;o=n.next()){var i=o.value;this.jax[i]||r.findID("Settings","Renderer",i).disable()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.findID("Accessibility","Activate").disable(),r.findID("Accessibility","AutoCollapse").disable(),r.findID("Accessibility","Collapsible").disable()}},e.prototype.enableExplorerItems=function(e){var t,r,n=this.menu.findID("Accessibility","Activate").menu;try{for(var o=__values$I(n.items.slice(1)),i=o.next();!i.done;i=o.next()){var a=i.value;if(a instanceof item_rule_js_1.Rule)break;e?a.enable():a.disable()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},e.prototype.mergeUserSettings=function(){try{var t=localStorage.getItem(e.MENU_STORAGE);if(!t)return;Object.assign(this.settings,JSON.parse(t)),this.setA11y(this.settings)}catch(e){console.log("MathJax localStorage error: "+e.message)}},e.prototype.saveUserSettings=function(){var t,r,n={};try{for(var o=__values$I(Object.keys(this.settings)),i=o.next();!i.done;i=o.next()){var a=i.value;this.settings[a]!==this.defaultSettings[a]&&(n[a]=this.settings[a])}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}try{Object.keys(n).length?localStorage.setItem(e.MENU_STORAGE,JSON.stringify(n)):localStorage.removeItem(e.MENU_STORAGE)}catch(e){console.log("MathJax localStorage error: "+e.message)}},e.prototype.setA11y=function(e){MathJax$1._.a11y&&MathJax$1._.a11y.explorer&&MathJax$1._.a11y.explorer_ts.setA11yOptions(this.document,e)},e.prototype.getA11y=function(e){if(MathJax$1._.a11y&&MathJax$1._.a11y.explorer)return void 0!==this.document.options.a11y[e]?this.document.options.a11y[e]:this.document.options.sre[e]},e.prototype.applySettings=function(){this.setTabOrder(this.settings.inTabOrder),this.document.options.enableAssistiveMml=this.settings.assistiveMml,this.document.outputJax.options.scale=parseFloat(this.settings.scale),this.settings.renderer!==this.defaultSettings.renderer&&this.setRenderer(this.settings.renderer)},e.prototype.setScale=function(e){this.document.outputJax.options.scale=parseFloat(e),this.document.rerender()},e.prototype.setRenderer=function(e){var t=this;if(this.jax[e])this.setOutputJax(e);else{var r=e.toLowerCase();this.loadComponent("output/"+r,(function(){var n=MathJax$1.startup;r in n.constructors&&(n.useOutput(r,!0),n.output=n.getOutputJax(),t.jax[e]=n.output,t.setOutputJax(e))}))}},e.prototype.setOutputJax=function(e){this.jax[e].setAdaptor(this.document.adaptor),this.document.outputJax=this.jax[e],this.rerender()},e.prototype.setTabOrder=function(e){this.menu.store.inTaborder(e)},e.prototype.setAssistiveMml=function(e){this.document.options.enableAssistiveMml=e,!e||MathJax$1._.a11y&&MathJax$1._.a11y["assistive-mml"]?this.rerender():this.loadA11y("assistive-mml")},e.prototype.setExplorer=function(e){this.enableExplorerItems(e),this.document.options.enableExplorer=e,!e||MathJax$1._.a11y&&MathJax$1._.a11y.explorer?this.rerender(this.settings.collapsible?MathItem_js_1$5.STATE.RERENDER:MathItem_js_1$5.STATE.COMPILED):this.loadA11y("explorer")},e.prototype.setCollapsible=function(e){this.document.options.enableComplexity=e,!e||MathJax$1._.a11y&&MathJax$1._.a11y.complexity?this.rerender(MathItem_js_1$5.STATE.COMPILED):this.loadA11y("complexity")},e.prototype.scaleAllMath=function(){var e=(100*parseFloat(this.settings.scale)).toFixed(1).replace(/.0$/,""),t=prompt("Scale all mathematics (compared to surrounding text) by",e+"%");if(t)if(t.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)){var r=parseFloat(t)/100;r?this.menu.pool.lookup("scale").setValue(String(r)):alert("The scale should not be zero")}else alert("The scale should be a percentage (e.g., 120%)")},e.prototype.resetDefaults=function(){var t,r;e.loading++;var n=this.menu.pool,o=this.defaultSettings;try{for(var i=__values$I(Object.keys(this.settings)),a=i.next();!a.done;a=i.next()){var s=a.value,l=n.lookup(s);if(l){l.setValue(o[s]);var c=l.items[0];c&&c.executeCallbacks_()}else this.settings[s]=o[s]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.loading--,this.rerender(MathItem_js_1$5.STATE.COMPILED)},e.prototype.checkComponent=function(t){var r=e.loadingPromises.get(t);r&&mathjax_js_1$3.mathjax.retryAfter(r)},e.prototype.loadComponent=function(t,r){if(!e.loadingPromises.has(t)){var n=MathJax$1.loader;if(n){e.loading++;var o=n.load(t).then((function(){e.loading--,e.loadingPromises.delete(t),r(),0===e.loading&&e._loadingPromise&&(e._loadingPromise=null,e._loadingOK())})).catch((function(t){e._loadingPromise?(e._loadingPromise=null,e._loadingFailed(t)):console.log(t)}));e.loadingPromises.set(t,o)}}},e.prototype.loadA11y=function(t){var r=this,n=!MathItem_js_1$5.STATE.ENRICHED;this.loadComponent("a11y/"+t,(function(){var o=MathJax$1.startup;mathjax_js_1$3.mathjax.handlers.unregister(o.handler),o.handler=o.getHandler(),mathjax_js_1$3.mathjax.handlers.register(o.handler);var i=r.document;r.document=o.document=o.getDocument(),r.document.menu=r,r.document.outputJax.reset(),r.transferMathList(i),r.document.processed=i.processed,e._loadingPromise||(r.document.outputJax.reset(),r.rerender("complexity"===t||n?MathItem_js_1$5.STATE.COMPILED:MathItem_js_1$5.STATE.TYPESET))}))},e.prototype.transferMathList=function(e){var t,r,n=this.document.options.MathItem;try{for(var o=__values$I(e.math),i=o.next();!i.done;i=o.next()){var a=i.value,s=new n;Object.assign(s,a),this.document.math.push(s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},e.prototype.formatSource=function(e){return e.trim().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},e.prototype.toMML=function(e){return this.MmlVisitor.visitTree(e.root,e,{texHints:this.settings.texHints,semantics:this.settings.semantics&&"MathML"!==e.inputJax.name})},e.prototype.zoom=function(e,t,r){e&&!this.isZoomEvent(e,t)||(this.menu.mathItem=r,e&&this.menu.post(e),this.zoomBox.post())},e.prototype.isZoomEvent=function(e,t){return this.settings.zoom===t&&(!this.settings.alt||e.altKey)&&(!this.settings.ctrl||e.ctrlKey)&&(!this.settings.cmd||e.metaKey)&&(!this.settings.shift||e.shiftKey)},e.prototype.rerender=function(t){void 0===t&&(t=MathItem_js_1$5.STATE.TYPESET),this.rerenderStart=Math.min(t,this.rerenderStart),e.loading||(this.rerenderStart<=MathItem_js_1$5.STATE.COMPILED&&this.document.reset({inputJax:[]}),this.document.rerender(this.rerenderStart),this.rerenderStart=MathItem_js_1$5.STATE.LAST)},e.prototype.copyMathML=function(){this.copyToClipboard(this.toMML(this.menu.mathItem))},e.prototype.copyOriginal=function(){this.copyToClipboard(this.menu.mathItem.math.trim())},e.prototype.copyAnnotation=function(){this.copyToClipboard(this.menu.annotation.trim())},e.prototype.copyToClipboard=function(e){var t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.cssText="height: 1px; width: 1px; padding: 1px; position: absolute; left: -10px",document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){alert("Can't copy to clipboard: "+e.message)}document.body.removeChild(t)},e.prototype.addMenu=function(e){var t=this,r=e.typesetRoot;r.addEventListener("contextmenu",(function(){return t.menu.mathItem=e}),!0),r.addEventListener("keydown",(function(){return t.menu.mathItem=e}),!0),r.addEventListener("click",(function(r){return t.zoom(r,"Click",e)}),!0),r.addEventListener("dblclick",(function(r){return t.zoom(r,"DoubleClick",e)}),!0),this.menu.store.insert(r)},e.prototype.clear=function(){this.menu.store.clear()},e.prototype.variable=function(e,t){var r=this;return{name:e,getter:function(){return r.settings[e]},setter:function(n){r.settings[e]=n,t&&t(n),r.saveUserSettings()}}},e.prototype.a11yVar=function(e,t){var r=this;return{name:e,getter:function(){return r.getA11y(e)},setter:function(n){r.settings[e]=n;var o={};o[e]=n,r.setA11y(o),t&&t(n),r.saveUserSettings()}}},e.prototype.submenu=function(e,t,r,n){var o,i;void 0===r&&(r=[]),void 0===n&&(n=!1);var a=[];try{for(var s=__values$I(r),l=s.next();!l.done;l=s.next()){var c=l.value;Array.isArray(c)?a=a.concat(c):a.push(c)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return{type:"submenu",id:e,content:t,menu:{items:a},disabled:0===a.length||n}},e.prototype.command=function(e,t,r,n){return void 0===n&&(n={}),Object.assign({type:"command",id:e,content:t,action:r},n)},e.prototype.checkbox=function(e,t,r,n){return void 0===n&&(n={}),Object.assign({type:"checkbox",id:e,content:t,variable:r},n)},e.prototype.radioGroup=function(e,t){var r=this;return t.map((function(t){return r.radio(t[0],t[1]||t[0],e)}))},e.prototype.radio=function(e,t,r,n){return void 0===n&&(n={}),Object.assign({type:"radio",id:e,content:t,variable:r},n)},e.prototype.label=function(e,t){return{type:"label",id:e,content:t}},e.prototype.rule=function(){return{type:"rule"}},e.MENU_STORAGE="MathJax-Menu-Settings",e.OPTIONS={settings:{texHints:!0,semantics:!1,zoom:"NoZoom",zscale:"200%",renderer:"CHTML",alt:!1,cmd:!1,ctrl:!1,shift:!1,scale:1,autocollapse:!1,collapsible:!1,inTabOrder:!0,assistiveMml:!0,explorer:!1},jax:{CHTML:null,SVG:null},annotationTypes:(0,Options_js_1$f.expandable)({TeX:["TeX","LaTeX","application/x-tex"],StarMath:["StarMath 5.0"],Maple:["Maple"],ContentMathML:["MathML-Content","application/mathml-content+xml"],OpenMath:["OpenMath"]})},e.loading=0,e.loadingPromises=new Map,e._loadingPromise=null,e._loadingOK=null,e._loadingFailed=null,e}();Menu$1.Menu=Menu;var __extends$1n=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$c=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$c.apply(this,arguments)},__read$Q=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$t=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$H=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(MenuHandler$1,"__esModule",{value:!0});var MenuHandler_2=MenuHandler$1.MenuHandler=MenuHandler$1.MenuMathDocumentMixin=MenuHandler$1.MenuMathItemMixin=void 0,mathjax_js_1$2=mathjax,MathItem_js_1$4=MathItem,Options_js_1$e=Options,Menu_js_1=Menu$1;function MenuMathItemMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1n(t,e),t.prototype.addMenu=function(e,t){void 0===t&&(t=!1),this.state()>=MathItem_js_1$4.STATE.CONTEXT_MENU||(this.isEscaped||!e.options.enableMenu&&!t||e.menu.addMenu(this),this.state(MathItem_js_1$4.STATE.CONTEXT_MENU))},t.prototype.checkLoading=function(e){e.checkLoading()},t}(e)}function MenuMathDocumentMixin(e){var t;return t=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$t([],__read$Q(t),!1))||this;n.menu=new n.options.MenuClass(n,n.options.menuOptions);var o=n.constructor.ProcessBits;return o.has("context-menu")||o.allocate("context-menu"),n.options.MathItem=MenuMathItemMixin(n.options.MathItem),n}return __extends$1n(t,e),t.prototype.addMenu=function(){var e,t;if(!this.processed.isSet("context-menu")){try{for(var r=__values$H(this.math),n=r.next();!n.done;n=r.next()){n.value.addMenu(this)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.processed.set("context-menu")}return this},t.prototype.checkLoading=function(){this.menu.isLoading&&mathjax_js_1$2.mathjax.retryAfter(this.menu.loadingPromise.catch((function(e){return console.log(e)})));var e=this.menu.settings;return e.collapsible&&(this.options.enableComplexity=!0,this.menu.checkComponent("a11y/complexity")),e.explorer&&(this.options.enableEnrichment=!0,this.options.enableExplorer=!0,this.menu.checkComponent("a11y/explorer")),this},t.prototype.state=function(t,r){return void 0===r&&(r=!1),e.prototype.state.call(this,t,r),t<MathItem_js_1$4.STATE.CONTEXT_MENU&&this.processed.clear("context-menu"),this},t.prototype.updateDocument=function(){return e.prototype.updateDocument.call(this),this.menu.menu.store.sort(),this},t}(e),t.OPTIONS=__assign$c(__assign$c({enableEnrichment:!0,enableComplexity:!0,enableExplorer:!0,enrichSpeech:"none",enrichError:function(e,t,r){return console.warn("Enrichment Error:",r)}},e.OPTIONS),{MenuClass:Menu_js_1.Menu,menuOptions:Menu_js_1.Menu.OPTIONS,enableMenu:!0,sre:e.OPTIONS.sre||(0,Options_js_1$e.expandable)({}),a11y:e.OPTIONS.a11y||(0,Options_js_1$e.expandable)({}),renderActions:(0,Options_js_1$e.expandable)(__assign$c(__assign$c({},e.OPTIONS.renderActions),{addMenu:[MathItem_js_1$4.STATE.CONTEXT_MENU],checkLoading:[MathItem_js_1$4.STATE.UNPROCESSED+1]}))}),t}function MenuHandler(e){return e.documentClass=MenuMathDocumentMixin(e.documentClass),e}(0,MathItem_js_1$4.newState)("CONTEXT_MENU",170),MenuHandler$1.MenuMathItemMixin=MenuMathItemMixin,MenuHandler$1.MenuMathDocumentMixin=MenuMathDocumentMixin,MenuHandler_2=MenuHandler$1.MenuHandler=MenuHandler;var FindMathML$1={},FindMath={};Object.defineProperty(FindMath,"__esModule",{value:!0}),FindMath.AbstractFindMath=void 0;var Options_js_1$d=Options,AbstractFindMath=function(){function e(e){var t=this.constructor;this.options=(0,Options_js_1$d.userOptions)((0,Options_js_1$d.defaultOptions)({},t.OPTIONS),e)}return e.OPTIONS={},e}();FindMath.AbstractFindMath=AbstractFindMath;var __extends$1m=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$G=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(FindMathML$1,"__esModule",{value:!0});var FindMathML_2=FindMathML$1.FindMathML=void 0,FindMath_js_1$1=FindMath,NAMESPACE="http://www.w3.org/1998/Math/MathML",FindMathML=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1m(t,e),t.prototype.findMath=function(e){var t=new Set;this.findMathNodes(e,t),this.findMathPrefixed(e,t);var r=this.adaptor.root(this.adaptor.document);return"html"===this.adaptor.kind(r)&&0===t.size&&this.findMathNS(e,t),this.processMath(t)},t.prototype.findMathNodes=function(e,t){var r,n;try{for(var o=__values$G(this.adaptor.tags(e,"math")),i=o.next();!i.done;i=o.next()){var a=i.value;t.add(a)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.prototype.findMathPrefixed=function(e,t){var r,n,o,i,a=this.adaptor.root(this.adaptor.document);try{for(var s=__values$G(this.adaptor.allAttributes(a)),l=s.next();!l.done;l=s.next()){var c=l.value;if("xmlns:"===c.name.substr(0,6)&&c.value===NAMESPACE){var u=c.name.substr(6);try{for(var d=(o=void 0,__values$G(this.adaptor.tags(e,u+":math"))),p=d.next();!p.done;p=d.next()){var m=p.value;t.add(m)}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}},t.prototype.findMathNS=function(e,t){var r,n;try{for(var o=__values$G(this.adaptor.tags(e,"math",NAMESPACE)),i=o.next();!i.done;i=o.next()){var a=i.value;t.add(a)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.prototype.processMath=function(e){var t,r,n=[];try{for(var o=__values$G(Array.from(e)),i=o.next();!i.done;i=o.next()){var a=i.value,s="block"===this.adaptor.getAttribute(a,"display")||"display"===this.adaptor.getAttribute(a,"mode"),l={node:a,n:0,delim:""},c={node:a,n:0,delim:""};n.push({math:this.adaptor.outerHTML(a),start:l,end:c,display:s})}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},t.OPTIONS={},t}(FindMath_js_1$1.AbstractFindMath);FindMathML_2=FindMathML$1.FindMathML=FindMathML;var mathml={},InputJax={},FunctionList$1={},__extends$1l=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$F=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$P=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$s=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(FunctionList$1,"__esModule",{value:!0}),FunctionList$1.FunctionList=void 0;var PrioritizedList_js_1=PrioritizedList$1,FunctionList=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1l(t,e),t.prototype.execute=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=__values$F(this),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.item.apply(a,__spreadArray$s([],__read$P(r),!1));if(!1===s)return!1}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return!0},t.prototype.asyncExecute=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=-1,n=this.items;return new Promise((function(t,o){!function i(){for(var a;++r<n.length;){var s=(a=n[r]).item.apply(a,__spreadArray$s([],__read$P(e),!1));if(s instanceof Promise)return void s.then(i).catch((function(e){return o(e)}));if(!1===s)return void t(!1)}t(!0)}()}))},t}(PrioritizedList_js_1.PrioritizedList);FunctionList$1.FunctionList=FunctionList,Object.defineProperty(InputJax,"__esModule",{value:!0}),InputJax.AbstractInputJax=void 0;var Options_js_1$c=Options,FunctionList_js_1$2=FunctionList$1,AbstractInputJax=function(){function e(e){void 0===e&&(e={}),this.adaptor=null,this.mmlFactory=null;var t=this.constructor;this.options=(0,Options_js_1$c.userOptions)((0,Options_js_1$c.defaultOptions)({},t.OPTIONS),e),this.preFilters=new FunctionList_js_1$2.FunctionList,this.postFilters=new FunctionList_js_1$2.FunctionList}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.setAdaptor=function(e){this.adaptor=e},e.prototype.setMmlFactory=function(e){this.mmlFactory=e},e.prototype.initialize=function(){},e.prototype.reset=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},Object.defineProperty(e.prototype,"processStrings",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.findMath=function(e,t){return[]},e.prototype.executeFilters=function(e,t,r,n){var o={math:t,document:r,data:n};return e.execute(o),o.data},e.NAME="generic",e.OPTIONS={},e}();InputJax.AbstractInputJax=AbstractInputJax;var MathMLCompile$1={},Entities$1={},AsyncLoad={};Object.defineProperty(AsyncLoad,"__esModule",{value:!0}),AsyncLoad.asyncLoad=void 0;var mathjax_js_1$1=mathjax;function asyncLoad(e){return mathjax_js_1$1.mathjax.asyncLoad?new Promise((function(t,r){var n=mathjax_js_1$1.mathjax.asyncLoad(e);n instanceof Promise?n.then((function(e){return t(e)})).catch((function(e){return r(e)})):t(n)})):Promise.reject("Can't load '".concat(e,"': No asyncLoad method specified"))}AsyncLoad.asyncLoad=asyncLoad,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var t=Retries,r=AsyncLoad;e.options={loadMissingEntities:!0},e.entities={ApplyFunction:"",Backslash:"∖",Because:"∵",Breve:"˘",Cap:"⋒",CenterDot:"·",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",Congruent:"≡",ContourIntegral:"∮",Coproduct:"∐",Cross:"⨯",Cup:"⋓",CupCap:"≍",Dagger:"‡",Del:"∇",Delta:"Δ",Diamond:"⋄",DifferentialD:"ⅆ",DotEqual:"≐",DoubleDot:"¨",DoubleRightTee:"⊨",DoubleVerticalBar:"∥",DownArrow:"↓",DownLeftVector:"↽",DownRightVector:"⇁",DownTee:"⊤",Downarrow:"⇓",Element:"∈",EqualTilde:"≂",Equilibrium:"⇌",Exists:"∃",ExponentialE:"ⅇ",FilledVerySmallSquare:"▪",ForAll:"∀",Gamma:"Γ",Gg:"⋙",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Hacek:"ˇ",Hat:"^",HumpDownHump:"≎",HumpEqual:"≏",Im:"ℑ",ImaginaryI:"ⅈ",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Lambda:"Λ",Larr:"↞",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDownVector:"⇃",LeftFloor:"⌊",LeftRightArrow:"↔",LeftTee:"⊣",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpVector:"↿",LeftVector:"↼",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessSlantEqual:"⩽",LessTilde:"≲",Ll:"⋘",Lleftarrow:"⇚",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lsh:"↰",MinusPlus:"∓",NestedGreaterGreater:"≫",NestedLessLess:"≪",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotPrecedes:"⊀",NotPrecedesSlantEqual:"⋠",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsSlantEqual:"⋡",NotSupersetEqual:"⊉",NotTilde:"≁",NotVerticalBar:"∤",Omega:"Ω",OverBar:"‾",OverBrace:"⏞",PartialD:"∂",Phi:"Φ",Pi:"Π",PlusMinus:"±",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Product:"∏",Proportional:"∝",Psi:"Ψ",Rarr:"↠",Re:"ℜ",ReverseEquilibrium:"⇋",RightAngleBracket:"⟩",RightArrow:"→",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDownVector:"⇂",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpVector:"↾",RightVector:"⇀",Rightarrow:"⇒",Rrightarrow:"⇛",Rsh:"↱",Sigma:"Σ",SmallCircle:"∘",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Star:"⋆",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",Therefore:"∴",Theta:"Θ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",UnderBar:"_",UnderBrace:"⏟",Union:"⋃",UnionPlus:"⊎",UpArrow:"↑",UpDownArrow:"↕",UpTee:"⊥",Uparrow:"⇑",Updownarrow:"⇕",Upsilon:"Υ",Vdash:"⊩",Vee:"⋁",VerticalBar:"∣",VerticalTilde:"≀",Vvdash:"⊪",Wedge:"⋀",Xi:"Ξ",amp:"&",acute:"´",aleph:"ℵ",alpha:"α",amalg:"⨿",and:"∧",ang:"∠",angmsd:"∡",angsph:"∢",ape:"≊",backprime:"‵",backsim:"∽",backsimeq:"⋍",beta:"β",beth:"ℶ",between:"≬",bigcirc:"◯",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",blacklozenge:"⧫",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",bowtie:"⋈",boxdl:"┐",boxdr:"┌",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxur:"└",bsol:"\\",bull:"•",cap:"∩",check:"✓",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",clubs:"♣",colon:":",comp:"∁",ctdot:"⋯",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cup:"∪",curarr:"↷",curlyvee:"⋎",curlywedge:"⋏",dagger:"†",daleth:"ℸ",ddarr:"⇊",deg:"°",delta:"δ",digamma:"ϝ",div:"÷",divideontimes:"⋇",dot:"˙",doteqdot:"≑",dotplus:"∔",dotsquare:"⊡",dtdot:"⋱",ecir:"≖",efDot:"≒",egs:"⪖",ell:"ℓ",els:"⪕",empty:"∅",epsi:"ε",epsiv:"ϵ",erDot:"≓",eta:"η",eth:"ð",flat:"♭",fork:"⋔",frown:"⌢",gEl:"⪌",gamma:"γ",gap:"⪆",gimel:"ℷ",gnE:"≩",gnap:"⪊",gne:"⪈",gnsim:"⋧",gt:">",gtdot:"⋗",harrw:"↭",hbar:"ℏ",hellip:"…",hookleftarrow:"↩",hookrightarrow:"↪",imath:"ı",infin:"∞",intcal:"⊺",iota:"ι",jmath:"ȷ",kappa:"κ",kappav:"ϰ",lEg:"⪋",lambda:"λ",lap:"⪅",larrlp:"↫",larrtl:"↢",lbrace:"{",lbrack:"[",le:"≤",leftleftarrows:"⇇",leftthreetimes:"⋋",lessdot:"⋖",lmoust:"⎰",lnE:"≨",lnap:"⪉",lne:"⪇",lnsim:"⋦",longmapsto:"⟼",looparrowright:"↬",lowast:"∗",loz:"◊",lt:"<",ltimes:"⋉",ltri:"◃",macr:"¯",malt:"✠",mho:"℧",mu:"μ",multimap:"⊸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",natur:"♮",nearr:"↗",nharr:"↮",nlarr:"↚",not:"¬",nrarr:"↛",nu:"ν",nvDash:"⊭",nvdash:"⊬",nwarr:"↖",omega:"ω",omicron:"ο",or:"∨",osol:"⊘",period:".",phi:"φ",phiv:"ϕ",pi:"π",piv:"ϖ",prap:"⪷",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",prime:"′",psi:"ψ",quot:'"',rarrtl:"↣",rbrace:"}",rbrack:"]",rho:"ρ",rhov:"ϱ",rightrightarrows:"⇉",rightthreetimes:"⋌",ring:"˚",rmoust:"⎱",rtimes:"⋊",rtri:"▹",scap:"⪸",scnE:"⪶",scnap:"⪺",scnsim:"⋩",sdot:"⋅",searr:"↘",sect:"§",sharp:"♯",sigma:"σ",sigmav:"ς",simne:"≆",smile:"⌣",spades:"♠",sub:"⊂",subE:"⫅",subnE:"⫋",subne:"⊊",supE:"⫆",supnE:"⫌",supne:"⊋",swarr:"↙",tau:"τ",theta:"θ",thetav:"ϑ",tilde:"˜",times:"×",triangle:"▵",triangleq:"≜",upsi:"υ",upuparrows:"⇈",veebar:"⊻",vellip:"⋮",weierp:"℘",xi:"ξ",yen:"¥",zeta:"ζ",zigrarr:"⇝",nbsp:" ",rsquo:"’",lsquo:"‘"};var n={};function o(o,a){if("#"===a.charAt(0))return i(a.slice(1));if(e.entities[a])return e.entities[a];if(e.options.loadMissingEntities){var s=a.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:a.charAt(0).toLowerCase();n[s]||(n[s]=!0,(0,t.retryAfter)((0,r.asyncLoad)("./util/entities/"+s+".js")))}return o}function i(e){var t="x"===e.charAt(0)?parseInt(e.slice(1),16):parseInt(e);return String.fromCodePoint(t)}e.add=function(t,r){Object.assign(e.entities,t),n[r]=!0},e.remove=function(t){delete e.entities[t]},e.translate=function(e){return e.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,o)},e.numeric=i}(Entities$1),getDefaultExportFromCjs$1(Entities$1);var __assign$b=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$b.apply(this,arguments)},__createBinding$d=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$d=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$d=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$d(t,e,r);return __setModuleDefault$d(t,e),t},__values$E=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(MathMLCompile$1,"__esModule",{value:!0}),MathMLCompile$1.MathMLCompile=void 0;var MmlNode_js_1$k=MmlNode,Options_js_1$b=Options,Entities=__importStar$d(Entities$1),MathMLCompile=function(){function e(e){void 0===e&&(e={});var t=this.constructor;this.options=(0,Options_js_1$b.userOptions)((0,Options_js_1$b.defaultOptions)({},t.OPTIONS),e)}return e.prototype.setMmlFactory=function(e){this.factory=e},e.prototype.compile=function(e){var t=this.makeNode(e);return t.verifyTree(this.options.verify),t.setInheritedAttributes({},!1,0,!1),t.walkTree(this.markMrows),t},e.prototype.makeNode=function(e){var t,r,n=this.adaptor,o=!1,i=n.kind(e).replace(/^.*:/,""),a=n.getAttribute(e,"data-mjx-texclass")||"";a&&(a=this.filterAttribute("data-mjx-texclass",a)||"");var s=a&&"mrow"===i?"TeXAtom":i;try{for(var l=__values$E(this.filterClassList(n.allClasses(e))),c=l.next();!c.done;c=l.next()){var u=c.value;u.match(/^MJX-TeXAtom-/)&&"mrow"===i?(a=u.substr(12),s="TeXAtom"):"MJX-fixedlimits"===u&&(o=!0)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}this.factory.getNodeClass(s)||this.error('Unknown node type "'+s+'"');var d=this.factory.create(s);return"TeXAtom"!==s||"OP"!==a||o||(d.setProperty("movesupsub",!0),d.attributes.setInherited("movablelimits",!0)),a&&(d.texClass=MmlNode_js_1$k.TEXCLASS[a],d.setProperty("texClass",d.texClass)),this.addAttributes(d,e),this.checkClass(d,e),this.addChildren(d,e),d},e.prototype.addAttributes=function(e,t){var r,n,o=!1;try{for(var i=__values$E(this.adaptor.allAttributes(t)),a=i.next();!a.done;a=i.next()){var s=a.value,l=s.name,c=this.filterAttribute(l,s.value);if(null!==c&&"xmlns"!==l)if("data-mjx-"===l.substr(0,9))switch(l.substr(9)){case"alternate":e.setProperty("variantForm",!0);break;case"variant":e.attributes.set("mathvariant",c),o=!0;break;case"smallmatrix":e.setProperty("scriptlevel",1),e.setProperty("useHeight",!1);break;case"accent":e.setProperty("mathaccent","true"===c);break;case"auto-op":e.setProperty("autoOP","true"===c);break;case"script-align":e.setProperty("scriptalign",c)}else if("class"!==l){var u=c.toLowerCase();"true"===u||"false"===u?e.attributes.set(l,"true"===u):o&&"mathvariant"===l||e.attributes.set(l,c)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.filterAttribute=function(e,t){return t},e.prototype.filterClassList=function(e){return e},e.prototype.addChildren=function(e,t){var r,n;if(0!==e.arity){var o=this.adaptor;try{for(var i=__values$E(o.childNodes(t)),a=i.next();!a.done;a=i.next()){var s=a.value,l=o.kind(s);if("#comment"!==l)if("#text"===l)this.addText(e,s);else if(e.isKind("annotation-xml"))e.appendChild(this.factory.create("XML").setXML(s,o));else{var c=e.appendChild(this.makeNode(s));0===c.arity&&o.childNodes(s).length&&(this.options.fixMisplacedChildren?this.addChildren(e,s):c.mError("There should not be children for "+c.kind+" nodes",this.options.verify,!0))}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}},e.prototype.addText=function(e,t){var r=this.adaptor.value(t);(e.isToken||e.getProperty("isChars"))&&e.arity?(e.isToken&&(r=Entities.translate(r),r=this.trimSpace(r)),e.appendChild(this.factory.create("text").setText(r))):r.match(/\S/)&&this.error('Unexpected text node "'+r+'"')},e.prototype.checkClass=function(e,t){var r,n,o=[];try{for(var i=__values$E(this.filterClassList(this.adaptor.allClasses(t))),a=i.next();!a.done;a=i.next()){var s=a.value;"MJX-"===s.substr(0,4)?"MJX-variant"===s?e.setProperty("variantForm",!0):"MJX-TeXAtom"!==s.substr(0,11)&&e.attributes.set("mathvariant",this.fixCalligraphic(s.substr(3))):o.push(s)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}o.length&&e.attributes.set("class",o.join(" "))},e.prototype.fixCalligraphic=function(e){return e.replace(/caligraphic/,"calligraphic")},e.prototype.markMrows=function(e){if(e.isKind("mrow")&&!e.isInferred&&e.childNodes.length>=2){var t=e.childNodes[0],r=e.childNodes[e.childNodes.length-1];t.isKind("mo")&&t.attributes.get("fence")&&t.attributes.get("stretchy")&&r.isKind("mo")&&r.attributes.get("fence")&&r.attributes.get("stretchy")&&(t.childNodes.length&&e.setProperty("open",t.getText()),r.childNodes.length&&e.setProperty("close",r.getText()))}},e.prototype.trimSpace=function(e){return e.replace(/[\t\n\r]/g," ").replace(/^ +/,"").replace(/ +$/,"").replace(/ +/g," ")},e.prototype.error=function(e){throw new Error(e)},e.OPTIONS={MmlFactory:null,fixMisplacedChildren:!0,verify:__assign$b({},MmlNode_js_1$k.AbstractMmlNode.verifyDefaults),translateEntities:!0},e}();MathMLCompile$1.MathMLCompile=MathMLCompile;var __extends$1k=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$O=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(mathml,"__esModule",{value:!0});var MathML_1=mathml.MathML=void 0,InputJax_js_1$1=InputJax,Options_js_1$a=Options,FunctionList_js_1$1=FunctionList$1,FindMathML_js_1=FindMathML$1,MathMLCompile_js_1=MathMLCompile$1,MathML=function(e){function t(t){void 0===t&&(t={});var r=this,n=__read$O((0,Options_js_1$a.separateOptions)(t,FindMathML_js_1.FindMathML.OPTIONS,MathMLCompile_js_1.MathMLCompile.OPTIONS),3),o=n[0],i=n[1],a=n[2];return(r=e.call(this,o)||this).findMathML=r.options.FindMathML||new FindMathML_js_1.FindMathML(i),r.mathml=r.options.MathMLCompile||new MathMLCompile_js_1.MathMLCompile(a),r.mmlFilters=new FunctionList_js_1$1.FunctionList,r}return __extends$1k(t,e),t.prototype.setAdaptor=function(t){e.prototype.setAdaptor.call(this,t),this.findMathML.adaptor=t,this.mathml.adaptor=t},t.prototype.setMmlFactory=function(t){e.prototype.setMmlFactory.call(this,t),this.mathml.setMmlFactory(t)},Object.defineProperty(t.prototype,"processStrings",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.compile=function(e,t){var r=e.start.node;if(!r||!e.end.node||this.options.forceReparse||"#text"===this.adaptor.kind(r)){var n=this.executeFilters(this.preFilters,e,t,(e.math||"<math></math>").trim()),o=this.checkForErrors(this.adaptor.parse(n,"text/"+this.options.parseAs)),i=this.adaptor.body(o);1!==this.adaptor.childNodes(i).length&&this.error("MathML must consist of a single element"),r=this.adaptor.remove(this.adaptor.firstChild(i)),"math"!==this.adaptor.kind(r).replace(/^[a-z]+:/,"")&&this.error("MathML must be formed by a <math> element, not <"+this.adaptor.kind(r)+">")}return r=this.executeFilters(this.mmlFilters,e,t,r),this.executeFilters(this.postFilters,e,t,this.mathml.compile(r))},t.prototype.checkForErrors=function(e){var t=this.adaptor.tags(this.adaptor.body(e),"parsererror")[0];return t&&(""===this.adaptor.textContent(t)&&this.error("Error processing MathML"),this.options.parseError.call(this,t)),e},t.prototype.error=function(e){throw new Error(e)},t.prototype.findMath=function(e){return this.findMathML.findMath(e)},t.NAME="MathML",t.OPTIONS=(0,Options_js_1$a.defaultOptions)({parseAs:"html",forceReparse:!1,FindMathML:null,MathMLCompile:null,parseError:function(e){this.error(this.adaptor.textContent(e).replace(/\n.*/g,""))}},InputJax_js_1$1.AbstractInputJax.OPTIONS),t}(InputJax_js_1$1.AbstractInputJax);MathML_1=mathml.MathML=MathML;var tex$2={},FindTeX$1={},__extends$1j=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$N=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(FindTeX$1,"__esModule",{value:!0}),FindTeX$1.FindTeX=void 0;var FindMath_js_1=FindMath,string_js_1$7=string,MathItem_js_1$3=MathItem,FindTeX=function(e){function t(t){var r=e.call(this,t)||this;return r.getPatterns(),r}return __extends$1j(t,e),t.prototype.getPatterns=function(){var e=this,t=this.options,r=[],n=[],o=[];this.end={},this.env=this.sub=0;var i=1;t.inlineMath.forEach((function(t){return e.addPattern(r,t,!1)})),t.displayMath.forEach((function(t){return e.addPattern(r,t,!0)})),r.length&&n.push(r.sort(string_js_1$7.sortLength).join("|")),t.processEnvironments&&(n.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=i,i++),t.processEscapes&&o.push("\\\\([\\\\$])"),t.processRefs&&o.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),o.length&&(n.push("("+o.join("|")+")"),this.sub=i),this.start=new RegExp(n.join("|"),"g"),this.hasPatterns=n.length>0},t.prototype.addPattern=function(e,t,r){var n=__read$N(t,2),o=n[0],i=n[1];e.push((0,string_js_1$7.quotePattern)(o)),this.end[o]=[i,r,this.endPattern(i)]},t.prototype.endPattern=function(e,t){return new RegExp((t||(0,string_js_1$7.quotePattern)(e))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},t.prototype.findEnd=function(e,t,r,n){for(var o,i=__read$N(n,3),a=i[0],s=i[1],l=i[2],c=l.lastIndex=r.index+r[0].length,u=0;o=l.exec(e);){if((o[1]||o[0])===a&&0===u)return(0,MathItem_js_1$3.protoItem)(r[0],e.substr(c,o.index-c),o[0],t,r.index,o.index+o[0].length,s);"{"===o[0]?u++:"}"===o[0]&&u&&u--}return null},t.prototype.findMathInString=function(e,t,r){var n,o;for(this.start.lastIndex=0;n=this.start.exec(r);){if(void 0!==n[this.env]&&this.env){var i="\\\\end\\s*(\\{"+(0,string_js_1$7.quotePattern)(n[this.env])+"\\})";(o=this.findEnd(r,t,n,["{"+n[this.env]+"}",!0,this.endPattern(null,i)]))&&(o.math=o.open+o.math+o.close,o.open=o.close="")}else if(void 0!==n[this.sub]&&this.sub){var a=n[this.sub];i=n.index+n[this.sub].length;o=2===a.length?(0,MathItem_js_1$3.protoItem)("",a.substr(1),"",t,n.index,i):(0,MathItem_js_1$3.protoItem)("",a,"",t,n.index,i,!1)}else o=this.findEnd(r,t,n,this.end[n[0]]);o&&(e.push(o),this.start.lastIndex=o.end.n)}},t.prototype.findMath=function(e){var t=[];if(this.hasPatterns)for(var r=0,n=e.length;r<n;r++)this.findMathInString(t,r,e[r]);return t},t.OPTIONS={inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0,processRefs:!0},t}(FindMath_js_1.AbstractFindMath);FindTeX$1.FindTeX=FindTeX;var FilterUtil$1={},NodeUtil$1={},__values$D=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$M=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$r=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(NodeUtil$1,"__esModule",{value:!0});var MmlNode_js_1$j=MmlNode,mo_js_1$2=mo$2,NodeUtil;!function(e){var t=new Map([["autoOP",!0],["fnOP",!0],["movesupsub",!0],["subsupOK",!0],["texprimestyle",!0],["useHeight",!0],["variantForm",!0],["withDelims",!0],["mathaccent",!0],["open",!0],["close",!0]]);function r(e,r){var n,o;try{for(var i=__values$D(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value,l=r[s];"texClass"===s?(e.texClass=l,e.setProperty(s,l)):"movablelimits"===s?(e.setProperty("movablelimits",l),(e.isKind("mo")||e.isKind("mstyle"))&&e.attributes.set("movablelimits",l)):"inferred"===s||(t.has(s)?e.setProperty(s,l):e.attributes.set(s,l))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}}function n(e,t,r){e.childNodes[t]=r,r&&(r.parent=e)}function o(e,t){return e.isKind(t)}e.createEntity=function(e){return String.fromCodePoint(parseInt(e,16))},e.getChildren=function(e){return e.childNodes},e.getText=function(e){return e.getText()},e.appendChildren=function(e,t){var r,n;try{for(var o=__values$D(t),i=o.next();!i.done;i=o.next()){var a=i.value;e.appendChild(a)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.setAttribute=function(e,t,r){e.attributes.set(t,r)},e.setProperty=function(e,t,r){e.setProperty(t,r)},e.setProperties=r,e.getProperty=function(e,t){return e.getProperty(t)},e.getAttribute=function(e,t){return e.attributes.get(t)},e.removeProperties=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e.removeProperty.apply(e,__spreadArray$r([],__read$M(t),!1))},e.getChildAt=function(e,t){return e.childNodes[t]},e.setChild=n,e.copyChildren=function(e,t){for(var r=e.childNodes,o=0;o<r.length;o++)n(t,o,r[o])},e.copyAttributes=function(e,t){t.attributes=e.attributes,r(t,e.getAllProperties())},e.isType=o,e.isEmbellished=function(e){return e.isEmbellished},e.getTexClass=function(e){return e.texClass},e.getCoreMO=function(e){return e.coreMO()},e.isNode=function(e){return e instanceof MmlNode_js_1$j.AbstractMmlNode||e instanceof MmlNode_js_1$j.AbstractMmlEmptyNode},e.isInferred=function(e){return e.isInferred},e.getForm=function(e){var t,r;if(!o(e,"mo"))return null;var n=e,i=n.getForms();try{for(var a=__values$D(i),s=a.next();!s.done;s=a.next()){var l=s.value,c=mo_js_1$2.MmlMo.OPTABLE[l][n.getText()];if(c)return c}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return null}}(NodeUtil||(NodeUtil={})),NodeUtil$1.default=NodeUtil;var __values$C=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$J=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(FilterUtil$1,"__esModule",{value:!0});var MmlNode_js_1$i=MmlNode,NodeUtil_js_1$h=__importDefault$J(NodeUtil$1),FilterUtil;!function(e){e.cleanStretchy=function(e){var t,r,n=e.data;try{for(var o=__values$C(n.getList("fixStretchy")),i=o.next();!i.done;i=o.next()){var a=i.value;if(NodeUtil_js_1$h.default.getProperty(a,"fixStretchy")){var s=NodeUtil_js_1$h.default.getForm(a);s&&s[3]&&s[3].stretchy&&NodeUtil_js_1$h.default.setAttribute(a,"stretchy",!1);var l=a.parent;if(!(NodeUtil_js_1$h.default.getTexClass(a)||s&&s[2])){var c=n.nodeFactory.create("node","TeXAtom",[a]);l.replaceChild(c,a),c.inheritAttributesFrom(a)}NodeUtil_js_1$h.default.removeProperties(a,"fixStretchy")}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},e.cleanAttributes=function(e){e.data.root.walkTree((function(e,t){var r,n,o=e.attributes;if(o){var i=new Set((o.get("mjx-keep-attrs")||"").split(/ /));delete o.getAllAttributes()["mjx-keep-attrs"];try{for(var a=__values$C(o.getExplicitNames()),s=a.next();!s.done;s=a.next()){var l=s.value;i.has(l)||o.attributes[l]!==e.attributes.getInherited(l)||delete o.attributes[l]}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}}),{})},e.combineRelations=function(e){var n,o,i,a,s=[];try{for(var l=__values$C(e.data.getList("mo")),c=l.next();!c.done;c=l.next()){var u=c.value;if(!u.getProperty("relationsCombined")&&u.parent&&(!u.parent||NodeUtil_js_1$h.default.isType(u.parent,"mrow"))&&NodeUtil_js_1$h.default.getTexClass(u)===MmlNode_js_1$i.TEXCLASS.REL){for(var d=u.parent,p=void 0,m=d.childNodes,h=m.indexOf(u)+1,f=NodeUtil_js_1$h.default.getProperty(u,"variantForm");h<m.length&&(p=m[h])&&NodeUtil_js_1$h.default.isType(p,"mo")&&NodeUtil_js_1$h.default.getTexClass(p)===MmlNode_js_1$i.TEXCLASS.REL;){if(f!==NodeUtil_js_1$h.default.getProperty(p,"variantForm")||!r(u,p)){null==u.attributes.getExplicit("rspace")&&NodeUtil_js_1$h.default.setAttribute(u,"rspace","0pt"),null==p.attributes.getExplicit("lspace")&&NodeUtil_js_1$h.default.setAttribute(p,"lspace","0pt");break}NodeUtil_js_1$h.default.appendChildren(u,NodeUtil_js_1$h.default.getChildren(p)),t(["stretchy","rspace"],u,p);try{for(var _=(i=void 0,__values$C(p.getPropertyNames())),g=_.next();!g.done;g=_.next()){var y=g.value;u.setProperty(y,p.getProperty(y))}}catch(e){i={error:e}}finally{try{g&&!g.done&&(a=_.return)&&a.call(_)}finally{if(i)throw i.error}}m.splice(h,1),s.push(p),p.parent=null,p.setProperty("relationsCombined",!0)}u.attributes.setInherited("form",u.getForms()[0])}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}e.data.removeFromList("mo",s)};var t=function(e,t,r){var n=t.attributes,o=r.attributes;e.forEach((function(e){var t=o.getExplicit(e);null!=t&&n.set(e,t)}))},r=function(e,t){var r,n,o=function(e,t){return e.getExplicitNames().filter((function(r){return r!==t&&("stretchy"!==r||e.getExplicit("stretchy"))}))},i=e.attributes,a=t.attributes,s=o(i,"lspace"),l=o(a,"rspace");if(s.length!==l.length)return!1;try{for(var c=__values$C(s),u=c.next();!u.done;u=c.next()){var d=u.value;if(i.getExplicit(d)!==a.getExplicit(d))return!1}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return!0},n=function(e,t,r){var n,o,i=[];try{for(var a=__values$C(e.getList("m"+t+r)),s=a.next();!s.done;s=a.next()){var l=s.value,c=l.childNodes;if(!c[l[t]]||!c[l[r]]){var u=l.parent,d=c[l[t]]?e.nodeFactory.create("node","m"+t,[c[l.base],c[l[t]]]):e.nodeFactory.create("node","m"+r,[c[l.base],c[l[r]]]);NodeUtil_js_1$h.default.copyAttributes(l,d),u?u.replaceChild(d,l):e.root=d,i.push(l)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}e.removeFromList("m"+t+r,i)};e.cleanSubSup=function(e){var t=e.data;t.error||(n(t,"sub","sup"),n(t,"under","over"))};var o=function(e,t,r){var n,o,i=[];try{for(var a=__values$C(e.getList(t)),s=a.next();!s.done;s=a.next()){var l=s.value;if(!l.attributes.get("displaystyle")){var c=l.childNodes[l.base],u=c.coreMO();if(c.getProperty("movablelimits")&&!u.attributes.getExplicit("movablelimits")){var d=e.nodeFactory.create("node",r,l.childNodes);NodeUtil_js_1$h.default.copyAttributes(l,d),l.parent?l.parent.replaceChild(d,l):e.root=d,i.push(l)}}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}e.removeFromList(t,i)};e.moveLimits=function(e){var t=e.data;o(t,"munderover","msubsup"),o(t,"munder","msub"),o(t,"mover","msup")},e.setInherited=function(e){e.data.root.setInheritedAttributes({},e.math.display,0,!1)}}(FilterUtil||(FilterUtil={})),FilterUtil$1.default=FilterUtil;var TexParser$1={},ParseUtil$1={},TexError$1={};Object.defineProperty(TexError$1,"__esModule",{value:!0});var TexError=function(){function e(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.id=t,this.message=e.processString(r,n)}return e.processString=function(t,r){for(var n=t.split(e.pattern),o=1,i=n.length;o<i;o+=2){var a=n[o].charAt(0);if(a>="0"&&a<="9")n[o]=r[parseInt(n[o],10)-1],"number"==typeof n[o]&&(n[o]=n[o].toString());else if("{"===a){if((a=n[o].substr(1))>="0"&&a<="9")n[o]=r[parseInt(n[o].substr(1,n[o].length-2),10)-1],"number"==typeof n[o]&&(n[o]=n[o].toString());else n[o].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/)&&(n[o]="%"+n[o])}null==n[o]&&(n[o]="???")}return n.join("")},e.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,e}();TexError$1.default=TexError;var __read$L=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$B=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$I=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ParseUtil$1,"__esModule",{value:!0});var MmlNode_js_1$h=MmlNode,NodeUtil_js_1$g=__importDefault$I(NodeUtil$1),TexParser_js_1$a=__importDefault$I(TexParser$1),TexError_js_1$k=__importDefault$I(TexError$1),Entities_js_1$2=Entities$1,ParseUtil;!function(e){var t=7.2,r={em:function(e){return e},ex:function(e){return.43*e},pt:function(e){return e/10},pc:function(e){return 1.2*e},px:function(e){return e*t/72},in:function(e){return e*t},cm:function(e){return e*t/2.54},mm:function(e){return e*t/25.4},mu:function(e){return e/18}},n="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",o="(pt|em|ex|mu|px|mm|cm|in|pc)",i=RegExp("^\\s*"+n+"\\s*"+o+"\\s*$"),a=RegExp("^\\s*"+n+"\\s*"+o+" ?");function s(e,t){void 0===t&&(t=!1);var n=e.match(t?a:i);return n?function(e){var t=__read$L(e,3),n=t[0],o=t[1],i=t[2];if("mu"!==o)return[n,o,i];return[l(r[o](parseFloat(n||"1"))).slice(0,-2),"em",i]}([n[1].replace(/,/,"."),n[4],n[0].length]):[null,null,0]}function l(e){return Math.abs(e)<6e-4?"0em":e.toFixed(3).replace(/\.?0+$/,"")+"em"}function c(e,t,r){"{"!==t&&"}"!==t||(t="\\"+t);var n="{\\bigg"+r+" "+t+"}",o="{\\big"+r+" "+t+"}";return new TexParser_js_1$a.default("\\mathchoice"+n+o+o+o,{},e).mml()}function u(e,t,r){t=t.replace(/^\s+/,Entities_js_1$2.entities.nbsp).replace(/\s+$/,Entities_js_1$2.entities.nbsp);var n=e.create("text",t);return e.create("node","mtext",[],r,n)}function d(e,t,r){if(r.match(/^[a-z]/i)&&t.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(t+=" "),t.length+r.length>e.configuration.options.maxBuffer)throw new TexError_js_1$k.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return t+r}function p(e,t){for(;t>0;)e=e.trim().slice(1,-1),t--;return e.trim()}function m(e,t){for(var r=e.length,n=0,o="",i=0,a=0,s=!0,l=!1;i<r;){var c=e[i++];switch(c){case" ":break;case"{":s?a++:(l=!1,a>n&&(a=n)),n++;break;case"}":n&&n--,(s||l)&&(a--,l=!0),s=!1;break;default:if(!n&&-1!==t.indexOf(c))return[l?"true":p(o,a),c,e.slice(i)];s=!1,l=!1}o+=c}if(n)throw new TexError_js_1$k.default("ExtraOpenMissingClose","Extra open brace or missing close brace");return[l?"true":p(o,a),"",e.slice(i)]}e.matchDimen=s,e.dimen2em=function(e){var t=__read$L(s(e),2),n=t[0],o=t[1],i=parseFloat(n||"1"),a=r[o];return a?a(i):0},e.Em=l,e.cols=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.map((function(e){return l(e)})).join(" ")},e.fenced=function(e,t,r,n,o,i){void 0===o&&(o=""),void 0===i&&(i="");var a,s=e.nodeFactory,l=s.create("node","mrow",[],{open:t,close:n,texClass:MmlNode_js_1$h.TEXCLASS.INNER});if(o)a=new TexParser_js_1$a.default("\\"+o+"l"+t,e.parser.stack.env,e).mml();else{var c=s.create("text",t);a=s.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:MmlNode_js_1$h.TEXCLASS.OPEN},c)}if(NodeUtil_js_1$g.default.appendChildren(l,[a,r]),o)a=new TexParser_js_1$a.default("\\"+o+"r"+n,e.parser.stack.env,e).mml();else{var u=s.create("text",n);a=s.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:MmlNode_js_1$h.TEXCLASS.CLOSE},u)}return i&&a.attributes.set("mathcolor",i),NodeUtil_js_1$g.default.appendChildren(l,[a]),l},e.fixedFence=function(e,t,r,n){var o=e.nodeFactory.create("node","mrow",[],{open:t,close:n,texClass:MmlNode_js_1$h.TEXCLASS.ORD});return t&&NodeUtil_js_1$g.default.appendChildren(o,[c(e,t,"l")]),NodeUtil_js_1$g.default.isType(r,"mrow")?NodeUtil_js_1$g.default.appendChildren(o,NodeUtil_js_1$g.default.getChildren(r)):NodeUtil_js_1$g.default.appendChildren(o,[r]),n&&NodeUtil_js_1$g.default.appendChildren(o,[c(e,n,"r")]),o},e.mathPalette=c,e.fixInitialMO=function(e,t){for(var r=0,n=t.length;r<n;r++){var o=t[r];if(o&&!NodeUtil_js_1$g.default.isType(o,"mspace")&&(!NodeUtil_js_1$g.default.isType(o,"TeXAtom")||NodeUtil_js_1$g.default.getChildren(o)[0]&&NodeUtil_js_1$g.default.getChildren(NodeUtil_js_1$g.default.getChildren(o)[0]).length)){if(NodeUtil_js_1$g.default.isEmbellished(o)||NodeUtil_js_1$g.default.isType(o,"TeXAtom")&&NodeUtil_js_1$g.default.getTexClass(o)===MmlNode_js_1$h.TEXCLASS.REL){var i=e.nodeFactory.create("node","mi");t.unshift(i)}break}}},e.internalMath=function(e,t,r,n){if(e.configuration.options.internalMath)return e.configuration.options.internalMath(e,t,r,n);var o,i,a=n||e.stack.env.font,s=a?{mathvariant:a}:{},l=[],c=0,d=0,p="",m=0;if(t.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)){for(;c<t.length;)if("$"===(o=t.charAt(c++)))"$"===p&&0===m?(i=e.create("node","TeXAtom",[new TexParser_js_1$a.default(t.slice(d,c-1),{},e.configuration).mml()]),l.push(i),p="",d=c):""===p&&(d<c-1&&l.push(u(e,t.slice(d,c-1),s)),p="$",d=c);else if("{"===o&&""!==p)m++;else if("}"===o)if("}"===p&&0===m){var h=new TexParser_js_1$a.default(t.slice(d,c),{},e.configuration).mml();i=e.create("node","TeXAtom",[h],s),l.push(i),p="",d=c}else""!==p&&m&&m--;else if("\\"===o)if(""===p&&t.substr(c).match(/^(eq)?ref\s*\{/)){var f=RegExp["$&"].length;d<c-1&&l.push(u(e,t.slice(d,c-1),s)),p="}",d=c-1,c+=f}else"("===(o=t.charAt(c++))&&""===p?(d<c-2&&l.push(u(e,t.slice(d,c-2),s)),p=")",d=c):")"===o&&")"===p&&0===m?(i=e.create("node","TeXAtom",[new TexParser_js_1$a.default(t.slice(d,c-2),{},e.configuration).mml()]),l.push(i),p="",d=c):o.match(/[${}\\]/)&&""===p&&(c--,t=t.substr(0,c-1)+t.substr(c));if(""!==p)throw new TexError_js_1$k.default("MathNotTerminated","Math not terminated in text box")}return d<t.length&&l.push(u(e,t.slice(d),s)),null!=r?l=[e.create("node","mstyle",l,{displaystyle:!1,scriptlevel:r})]:l.length>1&&(l=[e.create("node","mrow",l)]),l},e.internalText=u,e.underOver=function(t,r,n,o,i){if(e.checkMovableLimits(r),NodeUtil_js_1$g.default.isType(r,"munderover")&&NodeUtil_js_1$g.default.isEmbellished(r)){NodeUtil_js_1$g.default.setProperties(NodeUtil_js_1$g.default.getCoreMO(r),{lspace:0,rspace:0});var a=t.create("node","mo",[],{rspace:0});r=t.create("node","mrow",[a,r])}var s=t.create("node","munderover",[r]);NodeUtil_js_1$g.default.setChild(s,"over"===o?s.over:s.under,n);var l=s;return i&&(l=t.create("node","TeXAtom",[s],{texClass:MmlNode_js_1$h.TEXCLASS.OP,movesupsub:!0})),NodeUtil_js_1$g.default.setProperty(l,"subsupOK",!0),l},e.checkMovableLimits=function(e){var t=NodeUtil_js_1$g.default.isType(e,"mo")?NodeUtil_js_1$g.default.getForm(e):null;(NodeUtil_js_1$g.default.getProperty(e,"movablelimits")||t&&t[3]&&t[3].movablelimits)&&NodeUtil_js_1$g.default.setProperties(e,{movablelimits:!1})},e.trimSpaces=function(e){if("string"!=typeof e)return e;var t=e.trim();return t.match(/\\$/)&&e.match(/ $/)&&(t+=" "),t},e.setArrayAlign=function(t,r){return"t"===(r=e.trimSpaces(r||""))?t.arraydef.align="baseline 1":"b"===r?t.arraydef.align="baseline -1":"c"===r?t.arraydef.align="axis":r&&(t.arraydef.align=r),t},e.substituteArgs=function(e,t,r){for(var n="",o="",i=0;i<r.length;){var a=r.charAt(i++);if("\\"===a)n+=a+r.charAt(i++);else if("#"===a)if("#"===(a=r.charAt(i++)))n+=a;else{if(!a.match(/[1-9]/)||parseInt(a,10)>t.length)throw new TexError_js_1$k.default("IllegalMacroParam","Illegal macro parameter reference");o=d(e,d(e,o,n),t[parseInt(a,10)-1]),n=""}else n+=a}return d(e,o,n)},e.addArgs=d,e.checkMaxMacros=function(e,t){if(void 0===t&&(t=!0),!(++e.macroCount<=e.configuration.options.maxMacros))throw t?new TexError_js_1$k.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new TexError_js_1$k.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")},e.checkEqnEnv=function(e){if(e.stack.global.eqnenv)throw new TexError_js_1$k.default("ErroneousNestingEq","Erroneous nesting of equation structures");e.stack.global.eqnenv=!0},e.copyNode=function(e,t){var r=e.copy(),n=t.configuration;return r.walkTree((function(e){var t,r;n.addNode(e.kind,e);var o=(e.getProperty("in-lists")||"").split(/,/);try{for(var i=__values$B(o),a=i.next();!a.done;a=i.next()){var s=a.value;s&&n.addNode(s,e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}})),r},e.MmlFilterAttribute=function(e,t,r){return r},e.getFontDef=function(e){var t=e.stack.env.font;return t?{mathvariant:t}:{}},e.keyvalOptions=function(e,t,r){var n,o;void 0===t&&(t=null),void 0===r&&(r=!1);var i=function(e){var t,r,n,o,i,a={},s=e;for(;s;)o=(t=__read$L(m(s,["=",","]),3))[0],n=t[1],s=t[2],"="===n?(i=(r=__read$L(m(s,[","]),3))[0],n=r[1],s=r[2],i="false"===i||"true"===i?JSON.parse(i):i,a[o]=i):o&&(a[o]=!0);return a}(e);if(t)try{for(var a=__values$B(Object.keys(i)),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.hasOwnProperty(l)){if(r)throw new TexError_js_1$k.default("InvalidOption","Invalid option: %1",l);delete i[l]}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}}(ParseUtil||(ParseUtil={})),ParseUtil$1.default=ParseUtil;var Stack$1={},__values$A=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$K=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$q=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__importDefault$H=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Stack$1,"__esModule",{value:!0});var NodeUtil_js_1$f=__importDefault$H(NodeUtil$1),Stack=function(){function e(e,t,r){this._factory=e,this._env=t,this.global={},this.stack=[],this.global={isInner:r},this.stack=[this._factory.create("start",this.global)],t&&(this.stack[0].env=t),this.env=this.stack[0].env}return Object.defineProperty(e.prototype,"env",{get:function(){return this._env},set:function(e){this._env=e},enumerable:!1,configurable:!0}),e.prototype.Push=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=__values$A(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(a){var s=NodeUtil_js_1$f.default.isNode(a)?this._factory.create("mml",a):a;s.global=this.global;var l=__read$K(this.stack.length?this.Top().checkItem(s):[null,!0],2),c=l[0],u=l[1];u&&(c?(this.Pop(),this.Push.apply(this,__spreadArray$q([],__read$K(c),!1))):(this.stack.push(s),s.env?(s.copyEnv&&Object.assign(s.env,this.env),this.env=s.env):s.env=this.env))}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype.Pop=function(){var e=this.stack.pop();return e.isOpen||delete e.env,this.env=this.stack.length?this.Top().env:{},e},e.prototype.Top=function(e){return void 0===e&&(e=1),this.stack.length<e?null:this.stack[this.stack.length-e]},e.prototype.Prev=function(e){var t=this.Top();return e?t.First:t.Pop()},e.prototype.toString=function(){return"stack[\n "+this.stack.join("\n ")+"\n]"},e}();Stack$1.default=Stack;var __values$z=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$J=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$p=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__importDefault$G=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TexParser$1,"__esModule",{value:!0});var ParseUtil_js_1$f=__importDefault$G(ParseUtil$1),Stack_js_1$1=__importDefault$G(Stack$1),TexError_js_1$j=__importDefault$G(TexError$1),MmlNode_js_1$g=MmlNode,TexParser=function(){function e(e,t,r){var n,o;this._string=e,this.configuration=r,this.macroCount=0,this.i=0,this.currentCS="";var i,a=t.hasOwnProperty("isInner"),s=t.isInner;if(delete t.isInner,t){i={};try{for(var l=__values$z(Object.keys(t)),c=l.next();!c.done;c=l.next()){var u=c.value;i[u]=t[u]}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}this.configuration.pushParser(this),this.stack=new Stack_js_1$1.default(this.itemFactory,i,!a||s),this.Parse(),this.Push(this.itemFactory.create("stop"))}return Object.defineProperty(e.prototype,"options",{get:function(){return this.configuration.options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemFactory",{get:function(){return this.configuration.itemFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this.configuration.tags},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"string",{get:function(){return this._string},set:function(e){this._string=e},enumerable:!1,configurable:!0}),e.prototype.parse=function(e,t){return this.configuration.handlers.get(e).parse(t)},e.prototype.lookup=function(e,t){return this.configuration.handlers.get(e).lookup(t)},e.prototype.contains=function(e,t){return this.configuration.handlers.get(e).contains(t)},e.prototype.toString=function(){var e,t,r="";try{for(var n=__values$z(Array.from(this.configuration.handlers.keys())),o=n.next();!o.done;o=n.next()){var i=o.value;r+=i+": "+this.configuration.handlers.get(i)+"\n"}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},e.prototype.Parse=function(){for(var e;this.i<this.string.length;)e=this.getCodePoint(),this.i+=e.length,this.parse("character",[this,e])},e.prototype.Push=function(e){e instanceof MmlNode_js_1$g.AbstractMmlNode&&e.isInferred?this.PushAll(e.childNodes):this.stack.Push(e)},e.prototype.PushAll=function(e){var t,r;try{for(var n=__values$z(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.stack.Push(i)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.mml=function(){if(!this.stack.Top().isKind("mml"))return null;var e=this.stack.Top().First;return this.configuration.popParser(),e},e.prototype.convertDelimiter=function(e){var t=this.lookup("delimiter",e);return t?t.char:null},e.prototype.getCodePoint=function(){var e=this.string.codePointAt(this.i);return void 0===e?"":String.fromCodePoint(e)},e.prototype.nextIsSpace=function(){return!!this.string.charAt(this.i).match(/\s/)},e.prototype.GetNext=function(){for(;this.nextIsSpace();)this.i++;return this.getCodePoint()},e.prototype.GetCS=function(){var e=this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i);return e?(this.i+=e[0].length,e[2]||e[1]):(this.i++," ")},e.prototype.GetArgument=function(e,t){switch(this.GetNext()){case"":if(!t)throw new TexError_js_1$j.default("MissingArgFor","Missing argument for %1",this.currentCS);return null;case"}":if(!t)throw new TexError_js_1$j.default("ExtraCloseMissingOpen","Extra close brace or missing open brace");return null;case"\\":return this.i++,"\\"+this.GetCS();case"{":for(var r=++this.i,n=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":n++;break;case"}":if(0==--n)return this.string.slice(r,this.i-1)}throw new TexError_js_1$j.default("MissingCloseBrace","Missing close brace")}var o=this.getCodePoint();return this.i+=o.length,o},e.prototype.GetBrackets=function(e,t){if("["!==this.GetNext())return t;for(var r=++this.i,n=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":n++;break;case"\\":this.i++;break;case"}":if(n--<=0)throw new TexError_js_1$j.default("ExtraCloseLooking","Extra close brace while looking for %1","']'");break;case"]":if(0===n)return this.string.slice(r,this.i-1)}throw new TexError_js_1$j.default("MissingCloseBracket","Could not find closing ']' for argument to %1",this.currentCS)},e.prototype.GetDelimiter=function(e,t){var r=this.GetNext();if(this.i+=r.length,this.i<=this.string.length&&("\\"===r?r+=this.GetCS():"{"===r&&t&&(this.i--,r=this.GetArgument(e).trim()),this.contains("delimiter",r)))return this.convertDelimiter(r);throw new TexError_js_1$j.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},e.prototype.GetDimen=function(e){if("{"===this.GetNext()){var t=this.GetArgument(e),r=__read$J(ParseUtil_js_1$f.default.matchDimen(t),2),n=r[0],o=r[1];if(n)return n+o}else{t=this.string.slice(this.i);var i=__read$J(ParseUtil_js_1$f.default.matchDimen(t,!0),3),a=(n=i[0],o=i[1],i[2]);if(n)return this.i+=a,n+o}throw new TexError_js_1$j.default("MissingDimOrUnits","Missing dimension or its units for %1",this.currentCS)},e.prototype.GetUpTo=function(e,t){for(;this.nextIsSpace();)this.i++;for(var r=this.i,n=0;this.i<this.string.length;){var o=this.i,i=this.GetNext();switch(this.i+=i.length,i){case"\\":i+=this.GetCS();break;case"{":n++;break;case"}":if(0===n)throw new TexError_js_1$j.default("ExtraCloseLooking","Extra close brace while looking for %1",t);n--}if(0===n&&i===t)return this.string.slice(r,o)}throw new TexError_js_1$j.default("TokenNotFoundForCommand","Could not find %1 for %2",t,this.currentCS)},e.prototype.ParseArg=function(t){return new e(this.GetArgument(t),this.stack.env,this.configuration).mml()},e.prototype.ParseUpTo=function(t,r){return new e(this.GetUpTo(t,r),this.stack.env,this.configuration).mml()},e.prototype.GetDelimiterArg=function(e){var t=ParseUtil_js_1$f.default.trimSpaces(this.GetArgument(e));if(""===t)return null;if(this.contains("delimiter",t))return t;throw new TexError_js_1$j.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},e.prototype.GetStar=function(){var e="*"===this.GetNext();return e&&this.i++,e},e.prototype.create=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=this.configuration.nodeFactory).create.apply(t,__spreadArray$p([e],__read$J(r),!1))},e}();TexParser$1.default=TexParser;var ParseOptions$1={},StackItemFactory$1={},StackItem={},__extends$1i=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$I=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$o=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$y=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$F=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(StackItem,"__esModule",{value:!0}),StackItem.BaseItem=StackItem.MmlStack=void 0;var TexError_js_1$i=__importDefault$F(TexError$1),MmlStack=function(){function e(e){this._nodes=e}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),e.prototype.Push=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=this._nodes).push.apply(e,__spreadArray$o([],__read$I(t),!1))},e.prototype.Pop=function(){return this._nodes.pop()},Object.defineProperty(e.prototype,"First",{get:function(){return this._nodes[this.Size()-1]},set:function(e){this._nodes[this.Size()-1]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Last",{get:function(){return this._nodes[0]},set:function(e){this._nodes[0]=e},enumerable:!1,configurable:!0}),e.prototype.Peek=function(e){return null==e&&(e=1),this._nodes.slice(this.Size()-e)},e.prototype.Size=function(){return this._nodes.length},e.prototype.Clear=function(){this._nodes=[]},e.prototype.toMml=function(e,t){return void 0===e&&(e=!0),1!==this._nodes.length||t?this.create("node",e?"inferredMrow":"mrow",this._nodes,{}):this.First},e.prototype.create=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=this.factory.configuration.nodeFactory).create.apply(t,__spreadArray$o([e],__read$I(r),!1))},e}();StackItem.MmlStack=MmlStack;var BaseItem=function(e){function t(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=e.call(this,r)||this;return o.factory=t,o.global={},o._properties={},o.isOpen&&(o._env={}),o}return __extends$1i(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"base"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"env",{get:function(){return this._env},set:function(e){this._env=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyEnv",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProperty=function(e){return this._properties[e]},t.prototype.setProperty=function(e,t){return this._properties[e]=t,this},Object.defineProperty(t.prototype,"isOpen",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFinal",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.isKind=function(e){return e===this.kind},t.prototype.checkItem=function(e){if(e.isKind("over")&&this.isOpen&&(e.setProperty("num",this.toMml(!1)),this.Clear()),e.isKind("cell")&&this.isOpen){if(e.getProperty("linebreak"))return t.fail;throw new TexError_js_1$i.default("Misplaced","Misplaced %1",e.getName())}if(e.isClose&&this.getErrors(e.kind)){var r=__read$I(this.getErrors(e.kind),2),n=r[0],o=r[1];throw new TexError_js_1$i.default(n,o,e.getName())}return e.isFinal?(this.Push(e.First),t.fail):t.success},t.prototype.clearEnv=function(){var e,t;try{for(var r=__values$y(Object.keys(this.env)),n=r.next();!n.done;n=r.next()){var o=n.value;delete this.env[o]}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.setProperties=function(e){return Object.assign(this._properties,e),this},t.prototype.getName=function(){return this.getProperty("name")},t.prototype.toString=function(){return this.kind+"["+this.nodes.join("; ")+"]"},t.prototype.getErrors=function(e){return(this.constructor.errors||{})[e]||t.errors[e]},t.fail=[null,!1],t.success=[null,!0],t.errors={end:["MissingBeginExtraEnd","Missing \\begin{%1} or extra \\end{%1}"],close:["ExtraCloseMissingOpen","Extra close brace or missing open brace"],right:["MissingLeftExtraRight","Missing \\left or extra \\right"],middle:["ExtraMiddle","Extra \\middle"]},t}(MmlStack);StackItem.BaseItem=BaseItem;var __extends$1h=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_a$a;Object.defineProperty(StackItemFactory$1,"__esModule",{value:!0});var StackItem_js_1$5=StackItem,Factory_js_1$1=Factory,DummyItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1h(t,e),t}(StackItem_js_1$5.BaseItem),StackItemFactory=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultKind="dummy",t.configuration=null,t}return __extends$1h(t,e),t.DefaultStackItems=((_a$a={})[DummyItem.prototype.kind]=DummyItem,_a$a),t}(Factory_js_1$1.AbstractFactory);StackItemFactory$1.default=StackItemFactory;var NodeFactory$1={},__read$H=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$n=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__importDefault$E=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(NodeFactory$1,"__esModule",{value:!0}),NodeFactory$1.NodeFactory=void 0;var NodeUtil_js_1$e=__importDefault$E(NodeUtil$1),NodeFactory=function(){function e(){this.mmlFactory=null,this.factory={node:e.createNode,token:e.createToken,text:e.createText,error:e.createError}}return e.createNode=function(e,t,r,n,o){void 0===r&&(r=[]),void 0===n&&(n={});var i=e.mmlFactory.create(t);return i.setChildren(r),o&&i.appendChild(o),NodeUtil_js_1$e.default.setProperties(i,n),i},e.createToken=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n="");var o=e.create("text",n);return e.create("node",t,[],r,o)},e.createText=function(e,t){return null==t?null:e.mmlFactory.create("text").setText(t)},e.createError=function(e,t){var r=e.create("text",t),n=e.create("node","mtext",[],{},r);return e.create("node","merror",[n],{"data-mjx-error":t})},e.prototype.setMmlFactory=function(e){this.mmlFactory=e},e.prototype.set=function(e,t){this.factory[e]=t},e.prototype.setCreators=function(e){for(var t in e)this.set(t,e[t])},e.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.factory[e]||this.factory.node,o=n.apply(void 0,__spreadArray$n([this,t[0]],__read$H(t.slice(1)),!1));return"node"===e&&this.configuration.addNode(t[0],o),o},e.prototype.get=function(e){return this.factory[e]},e}();NodeFactory$1.NodeFactory=NodeFactory;var __read$G=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$m=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$x=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$D=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ParseOptions$1,"__esModule",{value:!0});var StackItemFactory_js_1=__importDefault$D(StackItemFactory$1),NodeFactory_js_1$1=NodeFactory$1,NodeUtil_js_1$d=__importDefault$D(NodeUtil$1),Options_js_1$9=Options,ParseOptions=function(){function e(e,t){void 0===t&&(t=[]),this.options={},this.packageData=new Map,this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=e.handlers,this.nodeFactory=new NodeFactory_js_1$1.NodeFactory,this.nodeFactory.configuration=this,this.nodeFactory.setCreators(e.nodes),this.itemFactory=new StackItemFactory_js_1.default(e.items),this.itemFactory.configuration=this,Options_js_1$9.defaultOptions.apply(void 0,__spreadArray$m([this.options],__read$G(t),!1)),(0,Options_js_1$9.defaultOptions)(this.options,e.options)}return e.prototype.pushParser=function(e){this.parsers.unshift(e)},e.prototype.popParser=function(){this.parsers.shift()},Object.defineProperty(e.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()},e.prototype.addNode=function(e,t){var r=this.nodeLists[e];if(r||(r=this.nodeLists[e]=[]),r.push(t),t.kind!==e){var n=NodeUtil_js_1$d.default.getProperty(t,"in-lists")||"",o=(n?n.split(/,/):[]).concat(e).join(",");NodeUtil_js_1$d.default.setProperty(t,"in-lists",o)}},e.prototype.getList=function(e){var t,r,n=this.nodeLists[e]||[],o=[];try{for(var i=__values$x(n),a=i.next();!a.done;a=i.next()){var s=a.value;this.inTree(s)&&o.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this.nodeLists[e]=o,o},e.prototype.removeFromList=function(e,t){var r,n,o=this.nodeLists[e]||[];try{for(var i=__values$x(t),a=i.next();!a.done;a=i.next()){var s=a.value,l=o.indexOf(s);l>=0&&o.splice(l,1)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.inTree=function(e){for(;e&&e!==this.root;)e=e.parent;return!!e},e}();ParseOptions$1.default=ParseOptions;var Tags={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),r=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.TagsFactory=e.AllTags=e.NoTags=e.AbstractTags=e.TagInfo=e.Label=void 0;var o=n(TexParser$1),i=function(e,t){void 0===e&&(e="???"),void 0===t&&(t=""),this.tag=e,this.id=t};e.Label=i;var a=function(e,t,r,n,o,i,a,s){void 0===e&&(e=""),void 0===t&&(t=!1),void 0===r&&(r=!1),void 0===n&&(n=null),void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a=!1),void 0===s&&(s=""),this.env=e,this.taggable=t,this.defaultTags=r,this.tag=n,this.tagId=o,this.tagFormat=i,this.noTag=a,this.labelId=s};e.TagInfo=a;var s=function(){function e(){this.counter=0,this.allCounter=0,this.configuration=null,this.ids={},this.allIds={},this.labels={},this.allLabels={},this.redo=!1,this.refUpdate=!1,this.currentTag=new a,this.history=[],this.stack=[],this.enTag=function(e,t){var r=this.configuration.nodeFactory,n=r.create("node","mtd",[e]),o=r.create("node","mlabeledtr",[t,n]);return r.create("node","mtable",[o],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0})}}return e.prototype.start=function(e,t,r){this.currentTag&&this.stack.push(this.currentTag),this.currentTag=new a(e,t,r)},Object.defineProperty(e.prototype,"env",{get:function(){return this.currentTag.env},enumerable:!1,configurable:!0}),e.prototype.end=function(){this.history.push(this.currentTag),this.currentTag=this.stack.pop()},e.prototype.tag=function(e,t){this.currentTag.tag=e,this.currentTag.tagFormat=t?e:this.formatTag(e),this.currentTag.noTag=!1},e.prototype.notag=function(){this.tag("",!0),this.currentTag.noTag=!0},Object.defineProperty(e.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(e){this.currentTag.labelId=e},enumerable:!1,configurable:!0}),e.prototype.formatUrl=function(e,t){return t+"#"+encodeURIComponent(e)},e.prototype.formatTag=function(e){return"("+e+")"},e.prototype.formatId=function(e){return"mjx-eqn:"+e.replace(/\s/g,"_")},e.prototype.formatNumber=function(e){return e.toString()},e.prototype.autoTag=function(){null==this.currentTag.tag&&(this.counter++,this.tag(this.formatNumber(this.counter),!1))},e.prototype.clearTag=function(){this.label="",this.tag(null,!0),this.currentTag.tagId=""},e.prototype.getTag=function(e){if(void 0===e&&(e=!1),e)return this.autoTag(),this.makeTag();var t=this.currentTag;return t.taggable&&!t.noTag&&(t.defaultTags&&this.autoTag(),t.tag)?this.makeTag():null},e.prototype.resetTag=function(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()},e.prototype.reset=function(e){void 0===e&&(e=0),this.resetTag(),this.counter=this.allCounter=e,this.allLabels={},this.allIds={}},e.prototype.startEquation=function(e){this.history=[],this.stack=[],this.clearTag(),this.currentTag=new a("",void 0,void 0),this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;var t=e.inputData.recompile;t&&(this.refUpdate=!0,this.counter=t.counter)},e.prototype.finishEquation=function(e){this.redo&&(e.inputData.recompile={state:e.state(),counter:this.allCounter}),this.refUpdate||(this.allCounter=this.counter),Object.assign(this.allIds,this.ids),Object.assign(this.allLabels,this.labels)},e.prototype.finalize=function(e,t){if(!t.display||this.currentTag.env||null==this.currentTag.tag)return e;var r=this.makeTag();return this.enTag(e,r)},e.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds&&this.label||this.currentTag.tag)},e.prototype.makeTag=function(){this.makeId(),this.label&&(this.labels[this.label]=new i(this.currentTag.tag,this.currentTag.tagId));var e=new o.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[e],{id:this.currentTag.tagId})},e}();e.AbstractTags=s;var l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.autoTag=function(){},r.prototype.getTag=function(){return this.currentTag.tag?e.prototype.getTag.call(this):null},r}(s);e.NoTags=l;var c,u,d,p=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.finalize=function(e,t){if(!t.display||this.history.find((function(e){return e.taggable})))return e;var r=this.getTag(!0);return this.enTag(e,r)},r}(s);e.AllTags=p,c=e.TagsFactory||(e.TagsFactory={}),u=new Map([["none",l],["all",p]]),d="none",c.OPTIONS={tags:d,tagSide:"right",tagIndent:"0.8em",useLabelIds:!0,ignoreDuplicateLabels:!1},c.add=function(e,t){u.set(e,t)},c.addTags=function(e){var t,n;try{for(var o=r(Object.keys(e)),i=o.next();!i.done;i=o.next()){var a=i.value;c.add(a,e[a])}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},c.create=function(e){var t=u.get(e)||u.get(d);if(!t)throw Error("Unknown tags class");return new t},c.setDefault=function(e){d=e},c.getDefault=function(){return c.create(d)}}(Tags),getDefaultExportFromCjs$1(Tags);var Configuration={},MapHandler={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SubHandlers=e.SubHandler=e.MapHandler=void 0;var n,o=PrioritizedList$1,i=FunctionList$1;!function(e){var t=new Map;e.register=function(e){t.set(e.name,e)},e.getMap=function(e){return t.get(e)}}(n=e.MapHandler||(e.MapHandler={}));var a=function(){function e(){this._configuration=new o.PrioritizedList,this._fallback=new i.FunctionList}return e.prototype.add=function(e,r,i){var a,s;void 0===i&&(i=o.PrioritizedList.DEFAULTPRIORITY);try{for(var l=t(e.slice().reverse()),c=l.next();!c.done;c=l.next()){var u=c.value,d=n.getMap(u);if(!d)return void this.warn("Configuration "+u+" not found! Omitted.");this._configuration.add(d,i)}}catch(e){a={error:e}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}r&&this._fallback.add(r,i)},e.prototype.parse=function(e){var n,o;try{for(var i=t(this._configuration),a=i.next();!a.done;a=i.next()){var s=a.value.item.parse(e);if(s)return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}var l=r(e,2),c=l[0],u=l[1];Array.from(this._fallback)[0].item(c,u)},e.prototype.lookup=function(e){var t=this.applicable(e);return t?t.lookup(e):null},e.prototype.contains=function(e){return!!this.applicable(e)},e.prototype.toString=function(){var e,r,n=[];try{for(var o=t(this._configuration),i=o.next();!i.done;i=o.next()){var a=i.value.item;n.push(a.name)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n.join(", ")},e.prototype.applicable=function(e){var r,n;try{for(var o=t(this._configuration),i=o.next();!i.done;i=o.next()){var a=i.value.item;if(a.contains(e))return a}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},e.prototype.retrieve=function(e){var r,n;try{for(var o=t(this._configuration),i=o.next();!i.done;i=o.next()){var a=i.value.item;if(a.name===e)return a}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},e.prototype.warn=function(e){console.log("TexParser Warning: "+e)},e}();e.SubHandler=a;var s=function(){function e(){this.map=new Map}return e.prototype.add=function(e,r,n){var i,s;void 0===n&&(n=o.PrioritizedList.DEFAULTPRIORITY);try{for(var l=t(Object.keys(e)),c=l.next();!c.done;c=l.next()){var u=c.value,d=this.get(u);d||(d=new a,this.set(u,d)),d.add(e[u],r[u],n)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}},e.prototype.set=function(e,t){this.map.set(e,t)},e.prototype.get=function(e){return this.map.get(e)},e.prototype.retrieve=function(e){var r,n;try{for(var o=t(this.map.values()),i=o.next();!i.done;i=o.next()){var a=i.value.retrieve(e);if(a)return a}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},e.prototype.keys=function(){return this.map.keys()},e}();e.SubHandlers=s}(MapHandler),getDefaultExportFromCjs$1(MapHandler),function(e){var t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserConfiguration=e.ConfigurationHandler=e.Configuration=void 0;var n,o=Options,i=MapHandler,a=FunctionList$1,s=PrioritizedList$1,l=Tags,c=function(){function e(e,t,r,n,o,i,a,s,l,c,u,d,p){void 0===t&&(t={}),void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i={}),void 0===a&&(a={}),void 0===s&&(s=[]),void 0===l&&(l=[]),void 0===c&&(c=null),void 0===u&&(u=null),this.name=e,this.handler=t,this.fallback=r,this.items=n,this.tags=o,this.options=i,this.nodes=a,this.preprocessors=s,this.postprocessors=l,this.initMethod=c,this.configMethod=u,this.priority=d,this.parser=p,this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},t)}return e.makeProcessor=function(e,t){return Array.isArray(e)?e:[e,t]},e._create=function(t,r){var n=this;void 0===r&&(r={});var o=r.priority||s.PrioritizedList.DEFAULTPRIORITY,i=r.init?this.makeProcessor(r.init,o):null,a=r.config?this.makeProcessor(r.config,o):null,l=(r.preprocessors||[]).map((function(e){return n.makeProcessor(e,o)})),c=(r.postprocessors||[]).map((function(e){return n.makeProcessor(e,o)})),u=r.parser||"tex";return new e(t,r.handler||{},r.fallback||{},r.items||{},r.tags||{},r.options||{},r.nodes||{},l,c,i,a,o,u)},e.create=function(t,r){void 0===r&&(r={});var o=e._create(t,r);return n.set(t,o),o},e.local=function(t){return void 0===t&&(t={}),e._create("",t)},Object.defineProperty(e.prototype,"init",{get:function(){return this.initMethod?this.initMethod[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this.configMethod?this.configMethod[0]:null},enumerable:!1,configurable:!0}),e}();e.Configuration=c,function(e){var t=new Map;e.set=function(e,r){t.set(e,r)},e.get=function(e){return t.get(e)},e.keys=function(){return t.keys()}}(n=e.ConfigurationHandler||(e.ConfigurationHandler={}));var u=function(){function e(e,r){var n,o,l,c;void 0===r&&(r=["tex"]),this.initMethod=new a.FunctionList,this.configMethod=new a.FunctionList,this.configurations=new s.PrioritizedList,this.parsers=[],this.handlers=new i.SubHandlers,this.items={},this.tags={},this.options={},this.nodes={},this.parsers=r;try{for(var u=t(e.slice().reverse()),d=u.next();!d.done;d=u.next()){var p=d.value;this.addPackage(p)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=t(this.configurations),h=m.next();!h.done;h=m.next()){var f=h.value,_=f.item,g=f.priority;this.append(_,g)}}catch(e){l={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(l)throw l.error}}}return e.prototype.init=function(){this.initMethod.execute(this)},e.prototype.config=function(e){var r,n;this.configMethod.execute(this,e);try{for(var o=t(this.configurations),i=o.next();!i.done;i=o.next()){var a=i.value;this.addFilters(e,a.item)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype.addPackage=function(e){var t="string"==typeof e?e:e[0],r=this.getPackage(t);r&&this.configurations.add(r,"string"==typeof e?r.priority:e[1])},e.prototype.add=function(e,r,n){var i,a;void 0===n&&(n={});var s=this.getPackage(e);this.append(s),this.configurations.add(s,s.priority),this.init();var c=r.parseOptions;c.nodeFactory.setCreators(s.nodes);try{for(var u=t(Object.keys(s.items)),d=u.next();!d.done;d=u.next()){var p=d.value;c.itemFactory.setNodeClass(p,s.items[p])}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}l.TagsFactory.addTags(s.tags),(0,o.defaultOptions)(c.options,s.options),(0,o.userOptions)(c.options,n),this.addFilters(r,s),s.config&&s.config(this,r)},e.prototype.getPackage=function(e){var t=n.get(e);if(t&&this.parsers.indexOf(t.parser)<0)throw Error("Package ".concat(e," doesn't target the proper parser"));return t},e.prototype.append=function(e,t){t=t||e.priority,e.initMethod&&this.initMethod.add(e.initMethod[0],e.initMethod[1]),e.configMethod&&this.configMethod.add(e.configMethod[0],e.configMethod[1]),this.handlers.add(e.handler,e.fallback,t),Object.assign(this.items,e.items),Object.assign(this.tags,e.tags),(0,o.defaultOptions)(this.options,e.options),Object.assign(this.nodes,e.nodes)},e.prototype.addFilters=function(e,n){var o,i,a,s;try{for(var l=t(n.preprocessors),c=l.next();!c.done;c=l.next()){var u=r(c.value,2),d=u[0],p=u[1];e.preFilters.add(d,p)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}try{for(var m=t(n.postprocessors),h=m.next();!h.done;h=m.next()){var f=r(h.value,2),_=f[0];p=f[1];e.postFilters.add(_,p)}}catch(e){a={error:e}}finally{try{h&&!h.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}},e}();e.ParserConfiguration=u}(Configuration),getDefaultExportFromCjs$1(Configuration);var BaseConfiguration={},SymbolMap={},_Symbol={};Object.defineProperty(_Symbol,"__esModule",{value:!0}),_Symbol.Macro=_Symbol.Symbol=void 0;var Symbol$1=function(){function e(e,t,r){this._symbol=e,this._char=t,this._attributes=r}return Object.defineProperty(e.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"char",{get:function(){return this._char},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){return this._attributes},enumerable:!1,configurable:!0}),e}();_Symbol.Symbol=Symbol$1;var Macro=function(){function e(e,t,r){void 0===r&&(r=[]),this._symbol=e,this._func=t,this._args=r}return Object.defineProperty(e.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"func",{get:function(){return this._func},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"args",{get:function(){return this._args},enumerable:!1,configurable:!0}),e}();_Symbol.Macro=Macro;var __extends$1g=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$F=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$w=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__spreadArray$l=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(SymbolMap,"__esModule",{value:!0}),SymbolMap.EnvironmentMap=SymbolMap.CommandMap=SymbolMap.MacroMap=SymbolMap.DelimiterMap=SymbolMap.CharacterMap=SymbolMap.AbstractParseMap=SymbolMap.RegExpMap=SymbolMap.AbstractSymbolMap=SymbolMap.parseResult=void 0;var Symbol_js_1$3=_Symbol,MapHandler_js_1$2=MapHandler;function parseResult(e){return void 0===e||e}SymbolMap.parseResult=parseResult;var AbstractSymbolMap=function(){function e(e,t){this._name=e,this._parser=t,MapHandler_js_1$2.MapHandler.register(this)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.parserFor=function(e){return this.contains(e)?this.parser:null},e.prototype.parse=function(e){var t=__read$F(e,2),r=t[0],n=t[1],o=this.parserFor(n),i=this.lookup(n);return o&&i?parseResult(o(r,i)):null},Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser},set:function(e){this._parser=e},enumerable:!1,configurable:!0}),e}();SymbolMap.AbstractSymbolMap=AbstractSymbolMap;var RegExpMap=function(e){function t(t,r,n){var o=e.call(this,t,r)||this;return o._regExp=n,o}return __extends$1g(t,e),t.prototype.contains=function(e){return this._regExp.test(e)},t.prototype.lookup=function(e){return this.contains(e)?e:null},t}(AbstractSymbolMap);SymbolMap.RegExpMap=RegExpMap;var AbstractParseMap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.map=new Map,t}return __extends$1g(t,e),t.prototype.lookup=function(e){return this.map.get(e)},t.prototype.contains=function(e){return this.map.has(e)},t.prototype.add=function(e,t){this.map.set(e,t)},t.prototype.remove=function(e){this.map.delete(e)},t}(AbstractSymbolMap);SymbolMap.AbstractParseMap=AbstractParseMap;var CharacterMap=function(e){function t(t,r,n){var o,i,a=e.call(this,t,r)||this;try{for(var s=__values$w(Object.keys(n)),l=s.next();!l.done;l=s.next()){var c=l.value,u=n[c],d=__read$F("string"==typeof u?[u,null]:u,2),p=d[0],m=d[1],h=new Symbol_js_1$3.Symbol(c,p,m);a.add(c,h)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}return __extends$1g(t,e),t}(AbstractParseMap);SymbolMap.CharacterMap=CharacterMap;var DelimiterMap=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1g(t,e),t.prototype.parse=function(t){var r=__read$F(t,2),n=r[0],o=r[1];return e.prototype.parse.call(this,[n,"\\"+o])},t}(CharacterMap);SymbolMap.DelimiterMap=DelimiterMap;var MacroMap=function(e){function t(t,r,n){var o,i,a=e.call(this,t,null)||this;try{for(var s=__values$w(Object.keys(r)),l=s.next();!l.done;l=s.next()){var c=l.value,u=r[c],d=__read$F("string"==typeof u?[u]:u),p=d[0],m=d.slice(1),h=new Symbol_js_1$3.Macro(c,n[p],m);a.add(c,h)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}return __extends$1g(t,e),t.prototype.parserFor=function(e){var t=this.lookup(e);return t?t.func:null},t.prototype.parse=function(e){var t=__read$F(e,2),r=t[0],n=t[1],o=this.lookup(n),i=this.parserFor(n);return o&&i?parseResult(i.apply(void 0,__spreadArray$l([r,o.symbol],__read$F(o.args),!1))):null},t}(AbstractParseMap);SymbolMap.MacroMap=MacroMap;var CommandMap=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1g(t,e),t.prototype.parse=function(e){var t=__read$F(e,2),r=t[0],n=t[1],o=this.lookup(n),i=this.parserFor(n);if(!o||!i)return null;var a=r.currentCS;r.currentCS="\\"+n;var s=i.apply(void 0,__spreadArray$l([r,"\\"+o.symbol],__read$F(o.args),!1));return r.currentCS=a,parseResult(s)},t}(MacroMap);SymbolMap.CommandMap=CommandMap;var EnvironmentMap=function(e){function t(t,r,n,o){var i=e.call(this,t,n,o)||this;return i.parser=r,i}return __extends$1g(t,e),t.prototype.parse=function(e){var t=__read$F(e,2),r=t[0],n=t[1],o=this.lookup(n),i=this.parserFor(n);return o&&i?parseResult(this.parser(r,o.symbol,i,o.args)):null},t}(MacroMap);SymbolMap.EnvironmentMap=EnvironmentMap;var BaseItems={},__extends$1f=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$E=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$k=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__importDefault$C=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BaseItems,"__esModule",{value:!0}),BaseItems.EquationItem=BaseItems.EqnArrayItem=BaseItems.ArrayItem=BaseItems.DotsItem=BaseItems.NonscriptItem=BaseItems.NotItem=BaseItems.FnItem=BaseItems.MmlItem=BaseItems.CellItem=BaseItems.PositionItem=BaseItems.StyleItem=BaseItems.EndItem=BaseItems.BeginItem=BaseItems.RightItem=BaseItems.Middle=BaseItems.LeftItem=BaseItems.OverItem=BaseItems.SubsupItem=BaseItems.PrimeItem=BaseItems.CloseItem=BaseItems.OpenItem=BaseItems.StopItem=BaseItems.StartItem=void 0;var MapHandler_js_1$1=MapHandler,Entities_js_1$1=Entities$1,MmlNode_js_1$f=MmlNode,TexError_js_1$h=__importDefault$C(TexError$1),ParseUtil_js_1$e=__importDefault$C(ParseUtil$1),NodeUtil_js_1$c=__importDefault$C(NodeUtil$1),StackItem_js_1$4=StackItem,StartItem=function(e){function t(t,r){var n=e.call(this,t)||this;return n.global=r,n}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"start"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isKind("stop")){var r=this.toMml();return this.global.isInner||(r=this.factory.configuration.tags.finalize(r,this.env)),[[this.factory.create("mml",r)],!0]}return e.prototype.checkItem.call(this,t)},t}(StackItem_js_1$4.BaseItem);BaseItems.StartItem=StartItem;var StopItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"stop"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(StackItem_js_1$4.BaseItem);BaseItems.StopItem=StopItem;var OpenItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"open"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isKind("close")){var r=this.toMml(),n=this.create("node","TeXAtom",[r]);return[[this.factory.create("mml",n)],!0]}return e.prototype.checkItem.call(this,t)},t.errors=Object.assign(Object.create(StackItem_js_1$4.BaseItem.errors),{stop:["ExtraOpenMissingClose","Extra open brace or missing close brace"]}),t}(StackItem_js_1$4.BaseItem);BaseItems.OpenItem=OpenItem;var CloseItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"close"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(StackItem_js_1$4.BaseItem);BaseItems.CloseItem=CloseItem;var PrimeItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"prime"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(e){var t=__read$E(this.Peek(2),2),r=t[0],n=t[1];return!NodeUtil_js_1$c.default.isType(r,"msubsup")||NodeUtil_js_1$c.default.isType(r,"msup")?[[this.create("node","msup",[r,n]),e],!0]:(NodeUtil_js_1$c.default.setChild(r,r.sup,n),[[r,e],!0])},t}(StackItem_js_1$4.BaseItem);BaseItems.PrimeItem=PrimeItem;var SubsupItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"subsup"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isKind("open")||t.isKind("left"))return StackItem_js_1$4.BaseItem.success;var r=this.First,n=this.getProperty("position");if(t.isKind("mml")){if(this.getProperty("primes"))if(2!==n)NodeUtil_js_1$c.default.setChild(r,2,this.getProperty("primes"));else{NodeUtil_js_1$c.default.setProperty(this.getProperty("primes"),"variantForm",!0);var o=this.create("node","mrow",[this.getProperty("primes"),t.First]);t.First=o}return NodeUtil_js_1$c.default.setChild(r,n,t.First),null!=this.getProperty("movesupsub")&&NodeUtil_js_1$c.default.setProperty(r,"movesupsub",this.getProperty("movesupsub")),[[this.factory.create("mml",r)],!0]}if(e.prototype.checkItem.call(this,t)[1]){var i=this.getErrors(["","sub","sup"][n]);throw new(TexError_js_1$h.default.bind.apply(TexError_js_1$h.default,__spreadArray$k([void 0,i[0],i[1]],__read$E(i.splice(2)),!1)))}return null},t.errors=Object.assign(Object.create(StackItem_js_1$4.BaseItem.errors),{stop:["MissingScript","Missing superscript or subscript argument"],sup:["MissingOpenForSup","Missing open brace for superscript"],sub:["MissingOpenForSub","Missing open brace for subscript"]}),t}(StackItem_js_1$4.BaseItem);BaseItems.SubsupItem=SubsupItem;var OverItem=function(e){function t(t){var r=e.call(this,t)||this;return r.setProperty("name","\\over"),r}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"over"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isKind("over"))throw new TexError_js_1$h.default("AmbiguousUseOf","Ambiguous use of %1",t.getName());if(t.isClose){var r=this.create("node","mfrac",[this.getProperty("num"),this.toMml(!1)]);return null!=this.getProperty("thickness")&&NodeUtil_js_1$c.default.setAttribute(r,"linethickness",this.getProperty("thickness")),(this.getProperty("open")||this.getProperty("close"))&&(NodeUtil_js_1$c.default.setProperty(r,"withDelims",!0),r=ParseUtil_js_1$e.default.fixedFence(this.factory.configuration,this.getProperty("open"),r,this.getProperty("close"))),[[this.factory.create("mml",r),t],!0]}return e.prototype.checkItem.call(this,t)},t.prototype.toString=function(){return"over["+this.getProperty("num")+" / "+this.nodes.join("; ")+"]"},t}(StackItem_js_1$4.BaseItem);BaseItems.OverItem=OverItem;var LeftItem=function(e){function t(t,r){var n=e.call(this,t)||this;return n.setProperty("delim",r),n}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isKind("right"))return[[this.factory.create("mml",ParseUtil_js_1$e.default.fenced(this.factory.configuration,this.getProperty("delim"),this.toMml(),t.getProperty("delim"),"",t.getProperty("color")))],!0];if(t.isKind("middle")){var r={stretchy:!0};return t.getProperty("color")&&(r.mathcolor=t.getProperty("color")),this.Push(this.create("node","TeXAtom",[],{texClass:MmlNode_js_1$f.TEXCLASS.CLOSE}),this.create("token","mo",r,t.getProperty("delim")),this.create("node","TeXAtom",[],{texClass:MmlNode_js_1$f.TEXCLASS.OPEN})),this.env={},[[this],!0]}return e.prototype.checkItem.call(this,t)},t.errors=Object.assign(Object.create(StackItem_js_1$4.BaseItem.errors),{stop:["ExtraLeftMissingRight","Extra \\left or missing \\right"]}),t}(StackItem_js_1$4.BaseItem);BaseItems.LeftItem=LeftItem;var Middle=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.setProperty("delim",r),n&&o.setProperty("color",n),o}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"middle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(StackItem_js_1$4.BaseItem);BaseItems.Middle=Middle;var RightItem=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.setProperty("delim",r),n&&o.setProperty("color",n),o}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"right"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(StackItem_js_1$4.BaseItem);BaseItems.RightItem=RightItem;var BeginItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"begin"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new TexError_js_1$h.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName());return this.getProperty("end")?StackItem_js_1$4.BaseItem.fail:[[this.factory.create("mml",this.toMml())],!0]}if(t.isKind("stop"))throw new TexError_js_1$h.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,t)},t}(StackItem_js_1$4.BaseItem);BaseItems.BeginItem=BeginItem;var EndItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"end"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(StackItem_js_1$4.BaseItem);BaseItems.EndItem=EndItem;var StyleItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"style"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(!t.isClose)return e.prototype.checkItem.call(this,t);var r=this.create("node","mstyle",this.nodes,this.getProperty("styles"));return[[this.factory.create("mml",r),t],!0]},t}(StackItem_js_1$4.BaseItem);BaseItems.StyleItem=StyleItem;var PositionItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"position"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isClose)throw new TexError_js_1$h.default("MissingBoxFor","Missing box for %1",this.getName());if(t.isFinal){var r=t.toMml();switch(this.getProperty("move")){case"vertical":return r=this.create("node","mpadded",[r],{height:this.getProperty("dh"),depth:this.getProperty("dd"),voffset:this.getProperty("dh")}),[[this.factory.create("mml",r)],!0];case"horizontal":return[[this.factory.create("mml",this.getProperty("left")),t,this.factory.create("mml",this.getProperty("right"))],!0]}}return e.prototype.checkItem.call(this,t)},t}(StackItem_js_1$4.BaseItem);BaseItems.PositionItem=PositionItem;var CellItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"cell"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(StackItem_js_1$4.BaseItem);BaseItems.CellItem=CellItem;var MmlItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"isFinal",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return"mml"},enumerable:!1,configurable:!0}),t}(StackItem_js_1$4.BaseItem);BaseItems.MmlItem=MmlItem;var FnItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"fn"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){var r=this.First;if(r){if(t.isOpen)return StackItem_js_1$4.BaseItem.success;if(!t.isKind("fn")){var n=t.First;if(!t.isKind("mml")||!n)return[[r,t],!0];if(NodeUtil_js_1$c.default.isType(n,"mstyle")&&n.childNodes.length&&NodeUtil_js_1$c.default.isType(n.childNodes[0].childNodes[0],"mspace")||NodeUtil_js_1$c.default.isType(n,"mspace"))return[[r,t],!0];NodeUtil_js_1$c.default.isEmbellished(n)&&(n=NodeUtil_js_1$c.default.getCoreMO(n));var o=NodeUtil_js_1$c.default.getForm(n);if(null!=o&&[0,0,1,1,0,1,1,0,0,0][o[2]])return[[r,t],!0]}var i=this.create("token","mo",{texClass:MmlNode_js_1$f.TEXCLASS.NONE},Entities_js_1$1.entities.ApplyFunction);return[[r,i,t],!0]}return e.prototype.checkItem.apply(this,arguments)},t}(StackItem_js_1$4.BaseItem);BaseItems.FnItem=FnItem;var NotItem=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.remap=MapHandler_js_1$1.MapHandler.getMap("not_remap"),t}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"not"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(e){var t,r,n;if(e.isKind("open")||e.isKind("left"))return StackItem_js_1$4.BaseItem.success;if(e.isKind("mml")&&(NodeUtil_js_1$c.default.isType(e.First,"mo")||NodeUtil_js_1$c.default.isType(e.First,"mi")||NodeUtil_js_1$c.default.isType(e.First,"mtext"))&&(t=e.First,1===(r=NodeUtil_js_1$c.default.getText(t)).length&&!NodeUtil_js_1$c.default.getProperty(t,"movesupsub")&&1===NodeUtil_js_1$c.default.getChildren(t).length))return this.remap.contains(r)?(n=this.create("text",this.remap.lookup(r).char),NodeUtil_js_1$c.default.setChild(t,0,n)):(n=this.create("text","̸"),NodeUtil_js_1$c.default.appendChildren(t,[n])),[[e],!0];n=this.create("text","⧸");var o=this.create("node","mtext",[],{},n),i=this.create("node","mpadded",[o],{width:0});return[[t=this.create("node","TeXAtom",[i],{texClass:MmlNode_js_1$f.TEXCLASS.REL}),e],!0]},t}(StackItem_js_1$4.BaseItem);BaseItems.NotItem=NotItem;var NonscriptItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"nonscript"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(e){if(e.isKind("mml")&&1===e.Size()){var t=e.First;if(t.isKind("mstyle")&&t.notParent&&(t=NodeUtil_js_1$c.default.getChildren(NodeUtil_js_1$c.default.getChildren(t)[0])[0]),t.isKind("mspace")){if(t!==e.First){var r=this.create("node","mrow",[e.Pop()]);e.Push(r)}this.factory.configuration.addNode("nonscript",e.First)}}return[[e],!0]},t}(StackItem_js_1$4.BaseItem);BaseItems.NonscriptItem=NonscriptItem;var DotsItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"dots"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(e){if(e.isKind("open")||e.isKind("left"))return StackItem_js_1$4.BaseItem.success;var t=this.getProperty("ldots"),r=e.First;if(e.isKind("mml")&&NodeUtil_js_1$c.default.isEmbellished(r)){var n=NodeUtil_js_1$c.default.getTexClass(NodeUtil_js_1$c.default.getCoreMO(r));n!==MmlNode_js_1$f.TEXCLASS.BIN&&n!==MmlNode_js_1$f.TEXCLASS.REL||(t=this.getProperty("cdots"))}return[[t,e],!0]},t}(StackItem_js_1$4.BaseItem);BaseItems.DotsItem=DotsItem;var ArrayItem=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.table=[],t.row=[],t.frame=[],t.hfill=[],t.arraydef={},t.dashed=!1,t}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"array"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyEnv",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isClose&&!t.isKind("over")){if(t.getProperty("isEntry"))return this.EndEntry(),this.clearEnv(),StackItem_js_1$4.BaseItem.fail;if(t.getProperty("isCR"))return this.EndEntry(),this.EndRow(),this.clearEnv(),StackItem_js_1$4.BaseItem.fail;this.EndTable(),this.clearEnv();var r=this.factory.create("mml",this.createMml());if(this.getProperty("requireClose")){if(t.isKind("close"))return[[r],!0];throw new TexError_js_1$h.default("MissingCloseBrace","Missing close brace")}return[[r,t],!0]}return e.prototype.checkItem.call(this,t)},t.prototype.createMml=function(){var e=this.arraydef.scriptlevel;delete this.arraydef.scriptlevel;var t=this.create("node","mtable",this.table,this.arraydef);return e&&t.setProperty("scriptlevel",e),4===this.frame.length?NodeUtil_js_1$c.default.setAttribute(t,"frame",this.dashed?"dashed":"solid"):this.frame.length&&(this.arraydef.rowlines&&(this.arraydef.rowlines=this.arraydef.rowlines.replace(/none( none)+$/,"none")),NodeUtil_js_1$c.default.setAttribute(t,"frame",""),t=this.create("node","menclose",[t],{notation:this.frame.join(" ")}),"none"===(this.arraydef.columnlines||"none")&&"none"===(this.arraydef.rowlines||"none")||NodeUtil_js_1$c.default.setAttribute(t,"data-padding",0)),(this.getProperty("open")||this.getProperty("close"))&&(t=ParseUtil_js_1$e.default.fenced(this.factory.configuration,this.getProperty("open"),t,this.getProperty("close"))),t},t.prototype.EndEntry=function(){var e=this.create("node","mtd",this.nodes);this.hfill.length&&(0===this.hfill[0]&&NodeUtil_js_1$c.default.setAttribute(e,"columnalign","right"),this.hfill[this.hfill.length-1]===this.Size()&&NodeUtil_js_1$c.default.setAttribute(e,"columnalign",NodeUtil_js_1$c.default.getAttribute(e,"columnalign")?"center":"left")),this.row.push(e),this.Clear(),this.hfill=[]},t.prototype.EndRow=function(){var e;this.getProperty("isNumbered")&&3===this.row.length?(this.row.unshift(this.row.pop()),e=this.create("node","mlabeledtr",this.row)):e=this.create("node","mtr",this.row),this.table.push(e),this.row=[]},t.prototype.EndTable=function(){(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()},t.prototype.checkLines=function(){if(this.arraydef.rowlines){var e=this.arraydef.rowlines.split(/ /);e.length===this.table.length?(this.frame.push("bottom"),e.pop(),this.arraydef.rowlines=e.join(" ")):e.length<this.table.length-1&&(this.arraydef.rowlines+=" none")}if(this.getProperty("rowspacing")){for(var t=this.arraydef.rowspacing.split(/ /);t.length<this.table.length;)t.push(this.getProperty("rowspacing")+"em");this.arraydef.rowspacing=t.join(" ")}},t.prototype.addRowSpacing=function(e){if(this.arraydef.rowspacing){var t=this.arraydef.rowspacing.split(/ /);if(!this.getProperty("rowspacing")){var r=ParseUtil_js_1$e.default.dimen2em(t[0]);this.setProperty("rowspacing",r)}for(var n=this.getProperty("rowspacing");t.length<this.table.length;)t.push(ParseUtil_js_1$e.default.Em(n));t[this.table.length-1]=ParseUtil_js_1$e.default.Em(Math.max(0,n+ParseUtil_js_1$e.default.dimen2em(e))),this.arraydef.rowspacing=t.join(" ")}},t}(StackItem_js_1$4.BaseItem);BaseItems.ArrayItem=ArrayItem;var EqnArrayItem=function(e){function t(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=e.call(this,t)||this;return o.maxrow=0,o.factory.configuration.tags.start(r[0],r[2],r[1]),o}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"eqnarray"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){this.row.length&&ParseUtil_js_1$e.default.fixInitialMO(this.factory.configuration,this.nodes);var e=this.create("node","mtd",this.nodes);this.row.push(e),this.Clear()},t.prototype.EndRow=function(){this.row.length>this.maxrow&&(this.maxrow=this.row.length);var e="mtr",t=this.factory.configuration.tags.getTag();t&&(this.row=[t].concat(this.row),e="mlabeledtr"),this.factory.configuration.tags.clearTag();var r=this.create("node",e,this.row);this.table.push(r),this.row=[]},t.prototype.EndTable=function(){e.prototype.EndTable.call(this),this.factory.configuration.tags.end(),this.extendArray("columnalign",this.maxrow),this.extendArray("columnwidth",this.maxrow),this.extendArray("columnspacing",this.maxrow-1)},t.prototype.extendArray=function(e,t){if(this.arraydef[e]){var r=this.arraydef[e].split(/ /),n=__spreadArray$k([],__read$E(r),!1);if(n.length>1){for(;n.length<t;)n.push.apply(n,__spreadArray$k([],__read$E(r),!1));this.arraydef[e]=n.slice(0,t).join(" ")}}},t}(ArrayItem);BaseItems.EqnArrayItem=EqnArrayItem;var EquationItem=function(e){function t(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=e.call(this,t)||this;return o.factory.configuration.tags.start("equation",!0,r[0]),o}return __extends$1f(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"equation"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isKind("end")){var r=this.toMml(),n=this.factory.configuration.tags.getTag();return this.factory.configuration.tags.end(),[[n?this.factory.configuration.tags.enTag(r,n):r,t],!0]}if(t.isKind("stop"))throw new TexError_js_1$h.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,t)},t}(StackItem_js_1$4.BaseItem);BaseItems.EquationItem=EquationItem;var BaseMappings={},TexConstants={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TexConstant=void 0,(t=e.TexConstant||(e.TexConstant={})).Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",BOLDCALLIGRAPHIC:"-tex-bold-calligraphic",OLDSTYLE:"-tex-oldstyle",BOLDOLDSTYLE:"-tex-bold-oldstyle",MATHITALIC:"-tex-mathit"},t.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},t.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},t.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},t.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},t.IndentShift={INDENTSHIFT:"indentshift"},t.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"},t.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"},t.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},t.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"},t.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},t.Width={AUTO:"auto",FIT:"fit"},t.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},t.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},t.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}}(TexConstants),getDefaultExportFromCjs$1(TexConstants);var BaseMethods$1={},lengths={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0,e.BIGDIMEN=1e6,e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4},e.RELUNITS={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},e.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:e.BIGDIMEN},e.length2em=function(t,r,n,o){if(void 0===r&&(r=0),void 0===n&&(n=1),void 0===o&&(o=16),"string"!=typeof t&&(t=String(t)),""===t||null==t)return r;if(e.MATHSPACE[t])return e.MATHSPACE[t];var i=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!i)return r;var a=parseFloat(i[1]||"1"),s=i[2];return e.UNITS.hasOwnProperty(s)?a*e.UNITS[s]/o/n:e.RELUNITS.hasOwnProperty(s)?a*e.RELUNITS[s]:"%"===s?a/100*r:a*r},e.percent=function(e){return(100*e).toFixed(1).replace(/\.?0+$/,"")+"%"},e.em=function(e){return Math.abs(e)<.001?"0":e.toFixed(3).replace(/\.?0+$/,"")+"em"},e.emRounded=function(e,t){return void 0===t&&(t=16),e=(Math.round(e*t)+.05)/t,Math.abs(e)<.001?"0em":e.toFixed(3).replace(/\.?0+$/,"")+"em"},e.px=function(t,r,n){return void 0===r&&(r=-e.BIGDIMEN),void 0===n&&(n=16),t*=n,r&&t<r&&(t=r),Math.abs(t)<.1?"0":t.toFixed(1).replace(/\.0$/,"")+"px"}}(lengths),getDefaultExportFromCjs$1(lengths);var __assign$a=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$a.apply(this,arguments)},__createBinding$c=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$c=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$c=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$c(t,e,r);return __setModuleDefault$c(t,e),t},__read$D=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__importDefault$B=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BaseMethods$1,"__esModule",{value:!0});var sitem=__importStar$c(BaseItems),NodeUtil_js_1$b=__importDefault$B(NodeUtil$1),TexError_js_1$g=__importDefault$B(TexError$1),TexParser_js_1$9=__importDefault$B(TexParser$1),TexConstants_js_1$b=TexConstants,ParseUtil_js_1$d=__importDefault$B(ParseUtil$1),MmlNode_js_1$e=MmlNode,Tags_js_1$6=Tags,lengths_js_1$6=lengths,Entities_js_1=Entities$1,Options_js_1$8=Options,BaseMethods={},P_HEIGHT=1.2/.85,MmlTokenAllow={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};function parseRoot(e,t){var r=e.stack.env,n=r.inRoot;r.inRoot=!0;var o=new TexParser_js_1$9.default(t,r,e.configuration),i=o.mml(),a=o.stack.global;if(a.leftRoot||a.upRoot){var s={};a.leftRoot&&(s.width=a.leftRoot),a.upRoot&&(s.voffset=a.upRoot,s.height=a.upRoot),i=e.create("node","mpadded",[i],s)}return r.inRoot=n,i}BaseMethods.Open=function(e,t){e.Push(e.itemFactory.create("open"))},BaseMethods.Close=function(e,t){e.Push(e.itemFactory.create("close"))},BaseMethods.Tilde=function(e,t){e.Push(e.create("token","mtext",{},Entities_js_1.entities.nbsp))},BaseMethods.Space=function(e,t){},BaseMethods.Superscript=function(e,t){var r,n,o;e.GetNext().match(/\d/)&&(e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1));var i=e.stack.Top();i.isKind("prime")?(o=(r=__read$D(i.Peek(2),2))[0],n=r[1],e.stack.Pop()):(o=e.stack.Prev())||(o=e.create("token","mi",{},""));var a=NodeUtil_js_1$b.default.getProperty(o,"movesupsub"),s=NodeUtil_js_1$b.default.isType(o,"msubsup")?o.sup:o.over;if(NodeUtil_js_1$b.default.isType(o,"msubsup")&&!NodeUtil_js_1$b.default.isType(o,"msup")&&NodeUtil_js_1$b.default.getChildAt(o,o.sup)||NodeUtil_js_1$b.default.isType(o,"munderover")&&!NodeUtil_js_1$b.default.isType(o,"mover")&&NodeUtil_js_1$b.default.getChildAt(o,o.over)&&!NodeUtil_js_1$b.default.getProperty(o,"subsupOK"))throw new TexError_js_1$g.default("DoubleExponent","Double exponent: use braces to clarify");NodeUtil_js_1$b.default.isType(o,"msubsup")&&!NodeUtil_js_1$b.default.isType(o,"msup")||(a?((!NodeUtil_js_1$b.default.isType(o,"munderover")||NodeUtil_js_1$b.default.isType(o,"mover")||NodeUtil_js_1$b.default.getChildAt(o,o.over))&&(o=e.create("node","munderover",[o],{movesupsub:!0})),s=o.over):s=(o=e.create("node","msubsup",[o])).sup),e.Push(e.itemFactory.create("subsup",o).setProperties({position:s,primes:n,movesupsub:a}))},BaseMethods.Subscript=function(e,t){var r,n,o;e.GetNext().match(/\d/)&&(e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1));var i=e.stack.Top();i.isKind("prime")?(o=(r=__read$D(i.Peek(2),2))[0],n=r[1],e.stack.Pop()):(o=e.stack.Prev())||(o=e.create("token","mi",{},""));var a=NodeUtil_js_1$b.default.getProperty(o,"movesupsub"),s=NodeUtil_js_1$b.default.isType(o,"msubsup")?o.sub:o.under;if(NodeUtil_js_1$b.default.isType(o,"msubsup")&&!NodeUtil_js_1$b.default.isType(o,"msup")&&NodeUtil_js_1$b.default.getChildAt(o,o.sub)||NodeUtil_js_1$b.default.isType(o,"munderover")&&!NodeUtil_js_1$b.default.isType(o,"mover")&&NodeUtil_js_1$b.default.getChildAt(o,o.under)&&!NodeUtil_js_1$b.default.getProperty(o,"subsupOK"))throw new TexError_js_1$g.default("DoubleSubscripts","Double subscripts: use braces to clarify");NodeUtil_js_1$b.default.isType(o,"msubsup")&&!NodeUtil_js_1$b.default.isType(o,"msup")||(a?((!NodeUtil_js_1$b.default.isType(o,"munderover")||NodeUtil_js_1$b.default.isType(o,"mover")||NodeUtil_js_1$b.default.getChildAt(o,o.under))&&(o=e.create("node","munderover",[o],{movesupsub:!0})),s=o.under):s=(o=e.create("node","msubsup",[o])).sub),e.Push(e.itemFactory.create("subsup",o).setProperties({position:s,primes:n,movesupsub:a}))},BaseMethods.Prime=function(e,t){var r=e.stack.Prev();if(r||(r=e.create("node","mi")),NodeUtil_js_1$b.default.isType(r,"msubsup")&&!NodeUtil_js_1$b.default.isType(r,"msup")&&NodeUtil_js_1$b.default.getChildAt(r,r.sup))throw new TexError_js_1$g.default("DoubleExponentPrime","Prime causes double exponent: use braces to clarify");var n="";e.i--;do{n+=Entities_js_1.entities.prime,e.i++,t=e.GetNext()}while("'"===t||t===Entities_js_1.entities.rsquo);n=["","′","″","‴","⁗"][n.length]||n;var o=e.create("token","mo",{variantForm:!0},n);e.Push(e.itemFactory.create("prime",r,o))},BaseMethods.Comment=function(e,t){for(;e.i<e.string.length&&"\n"!==e.string.charAt(e.i);)e.i++},BaseMethods.Hash=function(e,t){throw new TexError_js_1$g.default("CantUseHash1","You can't use 'macro parameter character #' in math mode")},BaseMethods.MathFont=function(e,t,r){var n=e.GetArgument(t),o=new TexParser_js_1$9.default(n,__assign$a(__assign$a({},e.stack.env),{font:r,multiLetterIdentifiers:/^[a-zA-Z]+/,noAutoOP:!0}),e.configuration).mml();e.Push(e.create("node","TeXAtom",[o]))},BaseMethods.SetFont=function(e,t,r){e.stack.env.font=r},BaseMethods.SetStyle=function(e,t,r,n,o){e.stack.env.style=r,e.stack.env.level=o,e.Push(e.itemFactory.create("style").setProperty("styles",{displaystyle:n,scriptlevel:o}))},BaseMethods.SetSize=function(e,t,r){e.stack.env.size=r,e.Push(e.itemFactory.create("style").setProperty("styles",{mathsize:(0,lengths_js_1$6.em)(r)}))},BaseMethods.Spacer=function(e,t,r){var n=e.create("node","mspace",[],{width:(0,lengths_js_1$6.em)(r)}),o=e.create("node","mstyle",[n],{scriptlevel:0});e.Push(o)},BaseMethods.LeftRight=function(e,t){var r=t.substr(1);e.Push(e.itemFactory.create(r,e.GetDelimiter(t),e.stack.env.color))},BaseMethods.NamedFn=function(e,t,r){r||(r=t.substr(1));var n=e.create("token","mi",{texClass:MmlNode_js_1$e.TEXCLASS.OP},r);e.Push(e.itemFactory.create("fn",n))},BaseMethods.NamedOp=function(e,t,r){r||(r=t.substr(1)),r=r.replace(/ /," ");var n=e.create("token","mo",{movablelimits:!0,movesupsub:!0,form:TexConstants_js_1$b.TexConstant.Form.PREFIX,texClass:MmlNode_js_1$e.TEXCLASS.OP},r);e.Push(n)},BaseMethods.Limits=function(e,t,r){var n=e.stack.Prev(!0);if(!n||NodeUtil_js_1$b.default.getTexClass(NodeUtil_js_1$b.default.getCoreMO(n))!==MmlNode_js_1$e.TEXCLASS.OP&&null==NodeUtil_js_1$b.default.getProperty(n,"movesupsub"))throw new TexError_js_1$g.default("MisplacedLimits","%1 is allowed only on operators",e.currentCS);var o,i=e.stack.Top();NodeUtil_js_1$b.default.isType(n,"munderover")&&!r?(o=e.create("node","msubsup"),NodeUtil_js_1$b.default.copyChildren(n,o),n=i.Last=o):NodeUtil_js_1$b.default.isType(n,"msubsup")&&r&&(o=e.create("node","munderover"),NodeUtil_js_1$b.default.copyChildren(n,o),n=i.Last=o),NodeUtil_js_1$b.default.setProperty(n,"movesupsub",!!r),NodeUtil_js_1$b.default.setProperties(NodeUtil_js_1$b.default.getCoreMO(n),{movablelimits:!1}),(NodeUtil_js_1$b.default.getAttribute(n,"movablelimits")||NodeUtil_js_1$b.default.getProperty(n,"movablelimits"))&&NodeUtil_js_1$b.default.setProperties(n,{movablelimits:!1})},BaseMethods.Over=function(e,t,r,n){var o=e.itemFactory.create("over").setProperty("name",e.currentCS);r||n?(o.setProperty("open",r),o.setProperty("close",n)):t.match(/withdelims$/)&&(o.setProperty("open",e.GetDelimiter(t)),o.setProperty("close",e.GetDelimiter(t))),t.match(/^\\above/)?o.setProperty("thickness",e.GetDimen(t)):(t.match(/^\\atop/)||r||n)&&o.setProperty("thickness",0),e.Push(o)},BaseMethods.Frac=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),o=e.create("node","mfrac",[r,n]);e.Push(o)},BaseMethods.Sqrt=function(e,t){var r=e.GetBrackets(t),n=e.GetArgument(t);"\\frac"===n&&(n+="{"+e.GetArgument(n)+"}{"+e.GetArgument(n)+"}");var o=new TexParser_js_1$9.default(n,e.stack.env,e.configuration).mml();o=r?e.create("node","mroot",[o,parseRoot(e,r)]):e.create("node","msqrt",[o]),e.Push(o)},BaseMethods.Root=function(e,t){var r=e.GetUpTo(t,"\\of"),n=e.ParseArg(t),o=e.create("node","mroot",[n,parseRoot(e,r)]);e.Push(o)},BaseMethods.MoveRoot=function(e,t,r){if(!e.stack.env.inRoot)throw new TexError_js_1$g.default("MisplacedMoveRoot","%1 can appear only within a root",e.currentCS);if(e.stack.global[r])throw new TexError_js_1$g.default("MultipleMoveRoot","Multiple use of %1",e.currentCS);var n=e.GetArgument(t);if(!n.match(/-?[0-9]+/))throw new TexError_js_1$g.default("IntegerArg","The argument to %1 must be an integer",e.currentCS);"-"!==(n=parseInt(n,10)/15+"em").substr(0,1)&&(n="+"+n),e.stack.global[r]=n},BaseMethods.Accent=function(e,t,r,n){var o=e.ParseArg(t),i=__assign$a(__assign$a({},ParseUtil_js_1$d.default.getFontDef(e)),{accent:!0,mathaccent:!0}),a=NodeUtil_js_1$b.default.createEntity(r),s=e.create("token","mo",i,a);NodeUtil_js_1$b.default.setAttribute(s,"stretchy",!!n);var l=NodeUtil_js_1$b.default.isEmbellished(o)?NodeUtil_js_1$b.default.getCoreMO(o):o;(NodeUtil_js_1$b.default.isType(l,"mo")||NodeUtil_js_1$b.default.getProperty(l,"movablelimits"))&&NodeUtil_js_1$b.default.setProperties(l,{movablelimits:!1});var c=e.create("node","munderover");NodeUtil_js_1$b.default.setChild(c,0,o),NodeUtil_js_1$b.default.setChild(c,1,null),NodeUtil_js_1$b.default.setChild(c,2,s);var u=e.create("node","TeXAtom",[c]);e.Push(u)},BaseMethods.UnderOver=function(e,t,r,n){var o=NodeUtil_js_1$b.default.createEntity(r),i=e.create("token","mo",{stretchy:!0,accent:!0},o),a="o"===t.charAt(1)?"over":"under",s=e.ParseArg(t);e.Push(ParseUtil_js_1$d.default.underOver(e,s,i,a,n))},BaseMethods.Overset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t);ParseUtil_js_1$d.default.checkMovableLimits(n),r.isKind("mo")&&NodeUtil_js_1$b.default.setAttribute(r,"accent",!1);var o=e.create("node","mover",[n,r]);e.Push(o)},BaseMethods.Underset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t);ParseUtil_js_1$d.default.checkMovableLimits(n),r.isKind("mo")&&NodeUtil_js_1$b.default.setAttribute(r,"accent",!1);var o=e.create("node","munder",[n,r],{accentunder:!1});e.Push(o)},BaseMethods.Overunderset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),o=e.ParseArg(t);ParseUtil_js_1$d.default.checkMovableLimits(o),r.isKind("mo")&&NodeUtil_js_1$b.default.setAttribute(r,"accent",!1),n.isKind("mo")&&NodeUtil_js_1$b.default.setAttribute(n,"accent",!1);var i=e.create("node","munderover",[o,n,r],{accent:!1,accentunder:!1});e.Push(i)},BaseMethods.TeXAtom=function(e,t,r){var n,o,i,a={texClass:r};if(r===MmlNode_js_1$e.TEXCLASS.OP){a.movesupsub=a.movablelimits=!0;var s=e.GetArgument(t),l=s.match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/);l?(a.mathvariant=TexConstants_js_1$b.TexConstant.Variant.NORMAL,o=e.create("token","mi",a,l[1])):(i=new TexParser_js_1$9.default(s,e.stack.env,e.configuration).mml(),o=e.create("node","TeXAtom",[i],a)),n=e.itemFactory.create("fn",o)}else i=e.ParseArg(t),n=e.create("node","TeXAtom",[i],a);e.Push(n)},BaseMethods.MmlToken=function(e,t){var r,n=e.GetArgument(t),o=e.GetBrackets(t,"").replace(/^\s+/,""),i=e.GetArgument(t),a={},s=[];try{r=e.create("node",n)}catch(e){r=null}if(!r||!r.isToken)throw new TexError_js_1$g.default("NotMathMLToken","%1 is not a token element",n);for(;""!==o;){var l=o.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);if(!l)throw new TexError_js_1$g.default("InvalidMathMLAttr","Invalid MathML attribute: %1",o);if(!r.attributes.hasDefault(l[1])&&!MmlTokenAllow[l[1]])throw new TexError_js_1$g.default("UnknownAttrForElement","%1 is not a recognized attribute for %2",l[1],n);var c=ParseUtil_js_1$d.default.MmlFilterAttribute(e,l[1],l[2].replace(/^(['"])(.*)\1$/,"$2"));c&&("true"===c.toLowerCase()?c=!0:"false"===c.toLowerCase()&&(c=!1),a[l[1]]=c,s.push(l[1])),o=o.substr(l[0].length)}s.length&&(a["mjx-keep-attrs"]=s.join(" "));var u=e.create("text",i);r.appendChild(u),NodeUtil_js_1$b.default.setProperties(r,a),e.Push(r)},BaseMethods.Strut=function(e,t){var r=e.create("node","mrow"),n=e.create("node","mpadded",[r],{height:"8.6pt",depth:"3pt",width:0});e.Push(n)},BaseMethods.Phantom=function(e,t,r,n){var o=e.create("node","mphantom",[e.ParseArg(t)]);(r||n)&&(o=e.create("node","mpadded",[o]),n&&(NodeUtil_js_1$b.default.setAttribute(o,"height",0),NodeUtil_js_1$b.default.setAttribute(o,"depth",0)),r&&NodeUtil_js_1$b.default.setAttribute(o,"width",0));var i=e.create("node","TeXAtom",[o]);e.Push(i)},BaseMethods.Smash=function(e,t){var r=ParseUtil_js_1$d.default.trimSpaces(e.GetBrackets(t,"")),n=e.create("node","mpadded",[e.ParseArg(t)]);switch(r){case"b":NodeUtil_js_1$b.default.setAttribute(n,"depth",0);break;case"t":NodeUtil_js_1$b.default.setAttribute(n,"height",0);break;default:NodeUtil_js_1$b.default.setAttribute(n,"height",0),NodeUtil_js_1$b.default.setAttribute(n,"depth",0)}var o=e.create("node","TeXAtom",[n]);e.Push(o)},BaseMethods.Lap=function(e,t){var r=e.create("node","mpadded",[e.ParseArg(t)],{width:0});"\\llap"===t&&NodeUtil_js_1$b.default.setAttribute(r,"lspace","-1width");var n=e.create("node","TeXAtom",[r]);e.Push(n)},BaseMethods.RaiseLower=function(e,t){var r=e.GetDimen(t),n=e.itemFactory.create("position").setProperties({name:e.currentCS,move:"vertical"});"-"===r.charAt(0)&&(r=r.slice(1),t="raise"===t.substr(1)?"\\lower":"\\raise"),"\\lower"===t?(n.setProperty("dh","-"+r),n.setProperty("dd","+"+r)):(n.setProperty("dh","+"+r),n.setProperty("dd","-"+r)),e.Push(n)},BaseMethods.MoveLeftRight=function(e,t){var r=e.GetDimen(t),n="-"===r.charAt(0)?r.slice(1):"-"+r;if("\\moveleft"===t){var o=r;r=n,n=o}e.Push(e.itemFactory.create("position").setProperties({name:e.currentCS,move:"horizontal",left:e.create("node","mspace",[],{width:r}),right:e.create("node","mspace",[],{width:n})}))},BaseMethods.Hskip=function(e,t){var r=e.create("node","mspace",[],{width:e.GetDimen(t)});e.Push(r)},BaseMethods.Nonscript=function(e,t){e.Push(e.itemFactory.create("nonscript"))},BaseMethods.Rule=function(e,t,r){var n={width:e.GetDimen(t),height:e.GetDimen(t),depth:e.GetDimen(t)};"blank"!==r&&(n.mathbackground=e.stack.env.color||"black");var o=e.create("node","mspace",[],n);e.Push(o)},BaseMethods.rule=function(e,t){var r=e.GetBrackets(t),n=e.GetDimen(t),o=e.GetDimen(t),i=e.create("node","mspace",[],{width:n,height:o,mathbackground:e.stack.env.color||"black"});r&&(i=e.create("node","mpadded",[i],{voffset:r}),r.match(/^\-/)?(NodeUtil_js_1$b.default.setAttribute(i,"height",r),NodeUtil_js_1$b.default.setAttribute(i,"depth","+"+r.substr(1))):NodeUtil_js_1$b.default.setAttribute(i,"height","+"+r)),e.Push(i)},BaseMethods.MakeBig=function(e,t,r,n){var o=String(n*=P_HEIGHT).replace(/(\.\d\d\d).+/,"$1")+"em",i=e.GetDelimiter(t,!0),a=e.create("token","mo",{minsize:o,maxsize:o,fence:!0,stretchy:!0,symmetric:!0},i),s=e.create("node","TeXAtom",[a],{texClass:r});e.Push(s)},BaseMethods.BuildRel=function(e,t){var r=e.ParseUpTo(t,"\\over"),n=e.ParseArg(t),o=e.create("node","munderover");NodeUtil_js_1$b.default.setChild(o,0,n),NodeUtil_js_1$b.default.setChild(o,1,null),NodeUtil_js_1$b.default.setChild(o,2,r);var i=e.create("node","TeXAtom",[o],{texClass:MmlNode_js_1$e.TEXCLASS.REL});e.Push(i)},BaseMethods.HBox=function(e,t,r,n){e.PushAll(ParseUtil_js_1$d.default.internalMath(e,e.GetArgument(t),r,n))},BaseMethods.FBox=function(e,t){var r=ParseUtil_js_1$d.default.internalMath(e,e.GetArgument(t)),n=e.create("node","menclose",r,{notation:"box"});e.Push(n)},BaseMethods.FrameBox=function(e,t){var r=e.GetBrackets(t),n=e.GetBrackets(t)||"c",o=ParseUtil_js_1$d.default.internalMath(e,e.GetArgument(t));r&&(o=[e.create("node","mpadded",o,{width:r,"data-align":(0,Options_js_1$8.lookup)(n,{l:"left",r:"right"},"center")})]);var i=e.create("node","TeXAtom",[e.create("node","menclose",o,{notation:"box"})],{texClass:MmlNode_js_1$e.TEXCLASS.ORD});e.Push(i)},BaseMethods.Not=function(e,t){e.Push(e.itemFactory.create("not"))},BaseMethods.Dots=function(e,t){var r=NodeUtil_js_1$b.default.createEntity("2026"),n=NodeUtil_js_1$b.default.createEntity("22EF"),o=e.create("token","mo",{stretchy:!1},r),i=e.create("token","mo",{stretchy:!1},n);e.Push(e.itemFactory.create("dots").setProperties({ldots:o,cdots:i}))},BaseMethods.Matrix=function(e,t,r,n,o,i,a,s,l,c){var u=e.GetNext();if(""===u)throw new TexError_js_1$g.default("MissingArgFor","Missing argument for %1",e.currentCS);"{"===u?e.i++:(e.string=u+"}"+e.string.slice(e.i+1),e.i=0);var d=e.itemFactory.create("array").setProperty("requireClose",!0);d.arraydef={rowspacing:a||"4pt",columnspacing:i||"1em"},l&&d.setProperty("isCases",!0),c&&(d.setProperty("isNumbered",!0),d.arraydef.side=c),(r||n)&&(d.setProperty("open",r),d.setProperty("close",n)),"D"===s&&(d.arraydef.displaystyle=!0),null!=o&&(d.arraydef.columnalign=o),e.Push(d)},BaseMethods.Entry=function(e,t){e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}));var r=e.stack.Top(),n=r.getProperty("casesEnv");if(r.getProperty("isCases")||n){for(var o=e.string,i=0,a=-1,s=e.i,l=o.length,c=n?new RegExp("^\\\\end\\s*\\{".concat(n.replace(/\*/,"\\*"),"\\}")):null;s<l;){var u=o.charAt(s);if("{"===u)i++,s++;else if("}"===u)0===i?l=0:(0===--i&&a<0&&(a=s-e.i),s++);else{if("&"===u&&0===i)throw new TexError_js_1$g.default("ExtraAlignTab","Extra alignment tab in \\cases text");if("\\"===u){var d=o.substr(s);d.match(/^((\\cr)[^a-zA-Z]|\\\\)/)||c&&d.match(c)?l=0:s+=2}else s++}}var p=o.substr(e.i,s-e.i);if(!p.match(/^\s*\\text[^a-zA-Z]/)||a!==p.replace(/\s+$/,"").length-1){var m=ParseUtil_js_1$d.default.internalMath(e,ParseUtil_js_1$d.default.trimSpaces(p),0);e.PushAll(m),e.i=s}}},BaseMethods.Cr=function(e,t){e.Push(e.itemFactory.create("cell").setProperties({isCR:!0,name:t}))},BaseMethods.CrLaTeX=function(e,t,r){var n;if(void 0===r&&(r=!1),!r&&("*"===e.string.charAt(e.i)&&e.i++,"["===e.string.charAt(e.i))){var o=e.GetBrackets(t,""),i=__read$D(ParseUtil_js_1$d.default.matchDimen(o),2),a=i[0],s=i[1];if(o&&!a)throw new TexError_js_1$g.default("BracketMustBeDimension","Bracket argument to %1 must be a dimension",e.currentCS);n=a+s}e.Push(e.itemFactory.create("cell").setProperties({isCR:!0,name:t,linebreak:!0}));var l,c=e.stack.Top();c instanceof sitem.ArrayItem?n&&c.addRowSpacing(n):(n&&(l=e.create("node","mspace",[],{depth:n}),e.Push(l)),l=e.create("node","mspace",[],{linebreak:TexConstants_js_1$b.TexConstant.LineBreak.NEWLINE}),e.Push(l))},BaseMethods.HLine=function(e,t,r){null==r&&(r="solid");var n=e.stack.Top();if(!(n instanceof sitem.ArrayItem)||n.Size())throw new TexError_js_1$g.default("Misplaced","Misplaced %1",e.currentCS);if(n.table.length){for(var o=n.arraydef.rowlines?n.arraydef.rowlines.split(/ /):[];o.length<n.table.length;)o.push("none");o[n.table.length-1]=r,n.arraydef.rowlines=o.join(" ")}else n.frame.push("top")},BaseMethods.HFill=function(e,t){var r=e.stack.Top();if(!(r instanceof sitem.ArrayItem))throw new TexError_js_1$g.default("UnsupportedHFill","Unsupported use of %1",e.currentCS);r.hfill.push(r.Size())},BaseMethods.BeginEnd=function(e,t){var r=e.GetArgument(t);if(r.match(/\\/i))throw new TexError_js_1$g.default("InvalidEnv","Invalid environment name '%1'",r);var n=e.configuration.handlers.get("environment").lookup(r);if(n&&"\\end"===t){if(!n.args[0]){var o=e.itemFactory.create("end").setProperty("name",r);return void e.Push(o)}e.stack.env.closing=r}ParseUtil_js_1$d.default.checkMaxMacros(e,!1),e.parse("environment",[e,r])},BaseMethods.Array=function(e,t,r,n,o,i,a,s,l){o||(o=e.GetArgument("\\begin{"+t.getName()+"}"));var c=("c"+o).replace(/[^clr|:]/g,"").replace(/[^|:]([|:])+/g,"$1");o=(o=o.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var u=e.itemFactory.create("array");return u.arraydef={columnalign:o,columnspacing:i||"1em",rowspacing:a||"4pt"},c.match(/[|:]/)&&(c.charAt(0).match(/[|:]/)&&(u.frame.push("left"),u.dashed=":"===c.charAt(0)),c.charAt(c.length-1).match(/[|:]/)&&u.frame.push("right"),c=c.substr(1,c.length-2),u.arraydef.columnlines=c.split("").join(" ").replace(/[^|: ]/g,"none").replace(/\|/g,"solid").replace(/:/g,"dashed")),r&&u.setProperty("open",e.convertDelimiter(r)),n&&u.setProperty("close",e.convertDelimiter(n)),"'"===(s||"").charAt(1)&&(u.arraydef["data-cramped"]=!0,s=s.charAt(0)),"D"===s?u.arraydef.displaystyle=!0:s&&(u.arraydef.displaystyle=!1),"S"===s&&(u.arraydef.scriptlevel=1),l&&(u.arraydef.useHeight=!1),e.Push(t),u},BaseMethods.AlignedArray=function(e,t){var r=e.GetBrackets("\\begin{"+t.getName()+"}"),n=BaseMethods.Array(e,t);return ParseUtil_js_1$d.default.setArrayAlign(n,r)},BaseMethods.Equation=function(e,t,r){return e.Push(t),ParseUtil_js_1$d.default.checkEqnEnv(e),e.itemFactory.create("equation",r).setProperty("name",t.getName())},BaseMethods.EqnArray=function(e,t,r,n,o,i){e.Push(t),n&&ParseUtil_js_1$d.default.checkEqnEnv(e),o=(o=o.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var a=e.itemFactory.create("eqnarray",t.getName(),r,n,e.stack.global);return a.arraydef={displaystyle:!0,columnalign:o,columnspacing:i||"1em",rowspacing:"3pt",side:e.options.tagSide,minlabelspacing:e.options.tagIndent},a},BaseMethods.HandleNoTag=function(e,t){e.tags.notag()},BaseMethods.HandleLabel=function(e,t){var r=e.GetArgument(t);if(""!==r&&!e.tags.refUpdate){if(e.tags.label)throw new TexError_js_1$g.default("MultipleCommand","Multiple %1",e.currentCS);if(e.tags.label=r,(e.tags.allLabels[r]||e.tags.labels[r])&&!e.options.ignoreDuplicateLabels)throw new TexError_js_1$g.default("MultipleLabel","Label '%1' multiply defined",r);e.tags.labels[r]=new Tags_js_1$6.Label}},BaseMethods.HandleRef=function(e,t,r){var n=e.GetArgument(t),o=e.tags.allLabels[n]||e.tags.labels[n];o||(e.tags.refUpdate||(e.tags.redo=!0),o=new Tags_js_1$6.Label);var i=o.tag;r&&(i=e.tags.formatTag(i));var a=e.create("node","mrow",ParseUtil_js_1$d.default.internalMath(e,i),{href:e.tags.formatUrl(o.id,e.options.baseURL),class:"MathJax_ref"});e.Push(a)},BaseMethods.Macro=function(e,t,r,n,o){if(n){var i=[];if(null!=o){var a=e.GetBrackets(t);i.push(null==a?o:a)}for(var s=i.length;s<n;s++)i.push(e.GetArgument(t));r=ParseUtil_js_1$d.default.substituteArgs(e,i,r)}e.string=ParseUtil_js_1$d.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,ParseUtil_js_1$d.default.checkMaxMacros(e)},BaseMethods.MathChoice=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),o=e.ParseArg(t),i=e.ParseArg(t);e.Push(e.create("node","MathChoice",[r,n,o,i]))},BaseMethods$1.default=BaseMethods;var ParseMethods$1={},__read$C=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$j=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__importDefault$A=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ParseMethods$1,"__esModule",{value:!0});var NodeUtil_js_1$a=__importDefault$A(NodeUtil$1),TexConstants_js_1$a=TexConstants,ParseUtil_js_1$c=__importDefault$A(ParseUtil$1),ParseMethods;!function(e){e.variable=function(e,t){var r=ParseUtil_js_1$c.default.getFontDef(e),n=e.stack.env;n.multiLetterIdentifiers&&""!==n.font&&(t=e.string.substr(e.i-1).match(n.multiLetterIdentifiers)[0],e.i+=t.length-1,r.mathvariant===TexConstants_js_1$a.TexConstant.Variant.NORMAL&&n.noAutoOP&&t.length>1&&(r.autoOP=!1));var o=e.create("token","mi",r,t);e.Push(o)},e.digit=function(e,t){var r,n=e.configuration.options.digits,o=e.string.slice(e.i-1).match(n),i=ParseUtil_js_1$c.default.getFontDef(e);o?(r=e.create("token","mn",i,o[0].replace(/[{}]/g,"")),e.i+=o[0].length-1):r=e.create("token","mo",i,t),e.Push(r)},e.controlSequence=function(e,t){var r=e.GetCS();e.parse("macro",[e,r])},e.mathchar0mi=function(e,t){var r=t.attributes||{mathvariant:TexConstants_js_1$a.TexConstant.Variant.ITALIC},n=e.create("token","mi",r,t.char);e.Push(n)},e.mathchar0mo=function(e,t){var r=t.attributes||{};r.stretchy=!1;var n=e.create("token","mo",r,t.char);NodeUtil_js_1$a.default.setProperty(n,"fixStretchy",!0),e.configuration.addNode("fixStretchy",n),e.Push(n)},e.mathchar7=function(e,t){var r=t.attributes||{mathvariant:TexConstants_js_1$a.TexConstant.Variant.NORMAL};e.stack.env.font&&(r.mathvariant=e.stack.env.font);var n=e.create("token","mi",r,t.char);e.Push(n)},e.delimiter=function(e,t){var r=t.attributes||{};r=Object.assign({fence:!1,stretchy:!1},r);var n=e.create("token","mo",r,t.char);e.Push(n)},e.environment=function(e,t,r,n){var o=n[0],i=e.itemFactory.create("begin").setProperties({name:t,end:o});i=r.apply(void 0,__spreadArray$j([e,i],__read$C(n.slice(1)),!1)),e.Push(i)}}(ParseMethods||(ParseMethods={})),ParseMethods$1.default=ParseMethods;var __createBinding$b=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$b=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$b=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$b(t,e,r);return __setModuleDefault$b(t,e),t},__importDefault$z=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BaseMappings,"__esModule",{value:!0});var sm$4=__importStar$b(SymbolMap),TexConstants_js_1$9=TexConstants,BaseMethods_js_1$6=__importDefault$z(BaseMethods$1),ParseMethods_js_1$7=__importDefault$z(ParseMethods$1),ParseUtil_js_1$b=__importDefault$z(ParseUtil$1),MmlNode_js_1$d=MmlNode,lengths_js_1$5=lengths;new sm$4.RegExpMap("letter",ParseMethods_js_1$7.default.variable,/[a-z]/i),new sm$4.RegExpMap("digit",ParseMethods_js_1$7.default.digit,/[0-9.,]/),new sm$4.RegExpMap("command",ParseMethods_js_1$7.default.controlSequence,/^\\/),new sm$4.MacroMap("special",{"{":"Open","}":"Close","~":"Tilde","^":"Superscript",_:"Subscript"," ":"Space","\t":"Space","\r":"Space","\n":"Space","'":"Prime","%":"Comment","&":"Entry","#":"Hash"," ":"Space","’":"Prime"},BaseMethods_js_1$6.default),new sm$4.CharacterMap("mathchar0mi",ParseMethods_js_1$7.default.mathchar0mi,{alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ϵ",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",varepsilon:"ε",vartheta:"ϑ",varpi:"ϖ",varrho:"ϱ",varsigma:"ς",varphi:"φ",S:["§",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],aleph:["ℵ",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],hbar:["ℏ",{variantForm:!0}],imath:"ı",jmath:"ȷ",ell:"ℓ",wp:["℘",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],Re:["ℜ",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],Im:["ℑ",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],partial:["∂",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.ITALIC}],infty:["∞",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],prime:["′",{variantForm:!0}],emptyset:["∅",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],nabla:["∇",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],top:["⊤",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],bot:["⊥",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],angle:["∠",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],triangle:["△",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],backslash:["∖",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],forall:["∀",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],exists:["∃",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],neg:["¬",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],lnot:["¬",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],flat:["♭",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],natural:["♮",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],sharp:["♯",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],clubsuit:["♣",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],diamondsuit:["♢",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],heartsuit:["♡",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}],spadesuit:["♠",{mathvariant:TexConstants_js_1$9.TexConstant.Variant.NORMAL}]}),new sm$4.CharacterMap("mathchar0mo",ParseMethods_js_1$7.default.mathchar0mo,{surd:"√",coprod:["∐",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],bigvee:["⋁",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],bigwedge:["⋀",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],biguplus:["⨄",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],bigcap:["⋂",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],bigcup:["⋃",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],int:["∫",{texClass:MmlNode_js_1$d.TEXCLASS.OP}],intop:["∫",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}],iint:["∬",{texClass:MmlNode_js_1$d.TEXCLASS.OP}],iiint:["∭",{texClass:MmlNode_js_1$d.TEXCLASS.OP}],prod:["∏",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],sum:["∑",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],bigotimes:["⨂",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],bigoplus:["⨁",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],bigodot:["⨀",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],oint:["∮",{texClass:MmlNode_js_1$d.TEXCLASS.OP}],bigsqcup:["⨆",{texClass:MmlNode_js_1$d.TEXCLASS.OP,movesupsub:!0}],smallint:["∫",{largeop:!1}],triangleleft:"◃",triangleright:"▹",bigtriangleup:"△",bigtriangledown:"▽",wedge:"∧",land:"∧",vee:"∨",lor:"∨",cap:"∩",cup:"∪",ddagger:"‡",dagger:"†",sqcap:"⊓",sqcup:"⊔",uplus:"⊎",amalg:"⨿",diamond:"⋄",bullet:"∙",wr:"≀",div:"÷",divsymbol:"÷",odot:["⊙",{largeop:!1}],oslash:["⊘",{largeop:!1}],otimes:["⊗",{largeop:!1}],ominus:["⊖",{largeop:!1}],oplus:["⊕",{largeop:!1}],mp:"∓",pm:"±",circ:"∘",bigcirc:"◯",setminus:"∖",cdot:"⋅",ast:"∗",times:"×",star:"⋆",propto:"∝",sqsubseteq:"⊑",sqsupseteq:"⊒",parallel:"∥",mid:"∣",dashv:"⊣",vdash:"⊢",leq:"≤",le:"≤",geq:"≥",ge:"≥",lt:"<",gt:">",succ:"≻",prec:"≺",approx:"≈",succeq:"⪰",preceq:"⪯",supset:"⊃",subset:"⊂",supseteq:"⊇",subseteq:"⊆",in:"∈",ni:"∋",notin:"∉",owns:"∋",gg:"≫",ll:"≪",sim:"∼",simeq:"≃",perp:"⊥",equiv:"≡",asymp:"≍",smile:"⌣",frown:"⌢",ne:"≠",neq:"≠",cong:"≅",doteq:"≐",bowtie:"⋈",models:"⊨",notChar:"⧸",Leftrightarrow:"⇔",Leftarrow:"⇐",Rightarrow:"⇒",leftrightarrow:"↔",leftarrow:"←",gets:"←",rightarrow:"→",to:["→",{accent:!1}],mapsto:"↦",leftharpoonup:"↼",leftharpoondown:"↽",rightharpoonup:"⇀",rightharpoondown:"⇁",nearrow:"↗",searrow:"↘",nwarrow:"↖",swarrow:"↙",rightleftharpoons:"⇌",hookrightarrow:"↪",hookleftarrow:"↩",longleftarrow:"⟵",Longleftarrow:"⟸",longrightarrow:"⟶",Longrightarrow:"⟹",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",ldots:"…",cdots:"⋯",vdots:"⋮",ddots:"⋱",dotsc:"…",dotsb:"⋯",dotsm:"⋯",dotsi:"⋯",dotso:"…",ldotp:[".",{texClass:MmlNode_js_1$d.TEXCLASS.PUNCT}],cdotp:["⋅",{texClass:MmlNode_js_1$d.TEXCLASS.PUNCT}],colon:[":",{texClass:MmlNode_js_1$d.TEXCLASS.PUNCT}]}),new sm$4.CharacterMap("mathchar7",ParseMethods_js_1$7.default.mathchar7,{Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"}),new sm$4.DelimiterMap("delimiter",ParseMethods_js_1$7.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"⟨",">":"⟩","\\lt":"⟨","\\gt":"⟩","/":"/","|":["|",{texClass:MmlNode_js_1$d.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"⎰","\\rmoustache":"⎱","\\lgroup":"⟮","\\rgroup":"⟯","\\arrowvert":"⏐","\\Arrowvert":"‖","\\bracevert":"⎪","\\Vert":["‖",{texClass:MmlNode_js_1$d.TEXCLASS.ORD}],"\\|":["‖",{texClass:MmlNode_js_1$d.TEXCLASS.ORD}],"\\vert":["|",{texClass:MmlNode_js_1$d.TEXCLASS.ORD}],"\\uparrow":"↑","\\downarrow":"↓","\\updownarrow":"↕","\\Uparrow":"⇑","\\Downarrow":"⇓","\\Updownarrow":"⇕","\\backslash":"\\","\\rangle":"⟩","\\langle":"⟨","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"⌉","\\lceil":"⌈","\\rfloor":"⌋","\\lfloor":"⌊","\\lbrack":"[","\\rbrack":"]"}),new sm$4.CommandMap("macros",{displaystyle:["SetStyle","D",!0,0],textstyle:["SetStyle","T",!1,0],scriptstyle:["SetStyle","S",!1,1],scriptscriptstyle:["SetStyle","SS",!1,2],rm:["SetFont",TexConstants_js_1$9.TexConstant.Variant.NORMAL],mit:["SetFont",TexConstants_js_1$9.TexConstant.Variant.ITALIC],oldstyle:["SetFont",TexConstants_js_1$9.TexConstant.Variant.OLDSTYLE],cal:["SetFont",TexConstants_js_1$9.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont",TexConstants_js_1$9.TexConstant.Variant.MATHITALIC],bf:["SetFont",TexConstants_js_1$9.TexConstant.Variant.BOLD],bbFont:["SetFont",TexConstants_js_1$9.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",TexConstants_js_1$9.TexConstant.Variant.SCRIPT],frak:["SetFont",TexConstants_js_1$9.TexConstant.Variant.FRAKTUR],sf:["SetFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIF],tt:["SetFont",TexConstants_js_1$9.TexConstant.Variant.MONOSPACE],mathrm:["MathFont",TexConstants_js_1$9.TexConstant.Variant.NORMAL],mathup:["MathFont",TexConstants_js_1$9.TexConstant.Variant.NORMAL],mathnormal:["MathFont",""],mathbf:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLD],mathbfup:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLD],mathit:["MathFont",TexConstants_js_1$9.TexConstant.Variant.MATHITALIC],mathbfit:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDITALIC],mathbb:["MathFont",TexConstants_js_1$9.TexConstant.Variant.DOUBLESTRUCK],Bbb:["MathFont",TexConstants_js_1$9.TexConstant.Variant.DOUBLESTRUCK],mathfrak:["MathFont",TexConstants_js_1$9.TexConstant.Variant.FRAKTUR],mathbffrak:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDFRAKTUR],mathscr:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SCRIPT],mathbfscr:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDSCRIPT],mathsf:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIF],mathsfup:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIF],mathbfsf:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDSANSSERIF],mathsfit:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:["MathFont",TexConstants_js_1$9.TexConstant.Variant.MONOSPACE],mathcal:["MathFont",TexConstants_js_1$9.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:["MathFont",TexConstants_js_1$9.TexConstant.Variant.NORMAL],symup:["MathFont",TexConstants_js_1$9.TexConstant.Variant.NORMAL],symnormal:["MathFont",""],symbf:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLD],symbfup:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLD],symit:["MathFont",TexConstants_js_1$9.TexConstant.Variant.ITALIC],symbfit:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDITALIC],symbb:["MathFont",TexConstants_js_1$9.TexConstant.Variant.DOUBLESTRUCK],symfrak:["MathFont",TexConstants_js_1$9.TexConstant.Variant.FRAKTUR],symbffrak:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDFRAKTUR],symscr:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SCRIPT],symbfscr:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDSCRIPT],symsf:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIF],symsfup:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIF],symbfsf:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDSANSSERIF],symsfit:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:["MathFont",TexConstants_js_1$9.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:["MathFont",TexConstants_js_1$9.TexConstant.Variant.MONOSPACE],symcal:["MathFont",TexConstants_js_1$9.TexConstant.Variant.CALLIGRAPHIC],symbfcal:["MathFont",TexConstants_js_1$9.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:["HBox",null,TexConstants_js_1$9.TexConstant.Variant.NORMAL],textup:["HBox",null,TexConstants_js_1$9.TexConstant.Variant.NORMAL],textnormal:["HBox"],textit:["HBox",null,TexConstants_js_1$9.TexConstant.Variant.ITALIC],textbf:["HBox",null,TexConstants_js_1$9.TexConstant.Variant.BOLD],textsf:["HBox",null,TexConstants_js_1$9.TexConstant.Variant.SANSSERIF],texttt:["HBox",null,TexConstants_js_1$9.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:"NamedFn",arccos:"NamedFn",arctan:"NamedFn",arg:"NamedFn",cos:"NamedFn",cosh:"NamedFn",cot:"NamedFn",coth:"NamedFn",csc:"NamedFn",deg:"NamedFn",det:"NamedOp",dim:"NamedFn",exp:"NamedFn",gcd:"NamedOp",hom:"NamedFn",inf:"NamedOp",ker:"NamedFn",lg:"NamedFn",lim:"NamedOp",liminf:["NamedOp","lim inf"],limsup:["NamedOp","lim sup"],ln:"NamedFn",log:"NamedFn",max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:"NamedFn",sin:"NamedFn",sinh:"NamedFn",sup:"NamedOp",tan:"NamedFn",tanh:"NamedFn",limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","2015"],underline:["UnderOver","2015"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",overunderset:"Overunderset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:["Macro","\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",lengths_js_1$5.MATHSPACE.thinmathspace],":":["Spacer",lengths_js_1$5.MATHSPACE.mediummathspace],">":["Spacer",lengths_js_1$5.MATHSPACE.mediummathspace],";":["Spacer",lengths_js_1$5.MATHSPACE.thickmathspace],"!":["Spacer",lengths_js_1$5.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",lengths_js_1$5.MATHSPACE.thinmathspace],negthinspace:["Spacer",lengths_js_1$5.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],nonscript:"Nonscript",big:["MakeBig",MmlNode_js_1$d.TEXCLASS.ORD,.85],Big:["MakeBig",MmlNode_js_1$d.TEXCLASS.ORD,1.15],bigg:["MakeBig",MmlNode_js_1$d.TEXCLASS.ORD,1.45],Bigg:["MakeBig",MmlNode_js_1$d.TEXCLASS.ORD,1.75],bigl:["MakeBig",MmlNode_js_1$d.TEXCLASS.OPEN,.85],Bigl:["MakeBig",MmlNode_js_1$d.TEXCLASS.OPEN,1.15],biggl:["MakeBig",MmlNode_js_1$d.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",MmlNode_js_1$d.TEXCLASS.OPEN,1.75],bigr:["MakeBig",MmlNode_js_1$d.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",MmlNode_js_1$d.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",MmlNode_js_1$d.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",MmlNode_js_1$d.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",MmlNode_js_1$d.TEXCLASS.REL,.85],Bigm:["MakeBig",MmlNode_js_1$d.TEXCLASS.REL,1.15],biggm:["MakeBig",MmlNode_js_1$d.TEXCLASS.REL,1.45],Biggm:["MakeBig",MmlNode_js_1$d.TEXCLASS.REL,1.75],mathord:["TeXAtom",MmlNode_js_1$d.TEXCLASS.ORD],mathop:["TeXAtom",MmlNode_js_1$d.TEXCLASS.OP],mathopen:["TeXAtom",MmlNode_js_1$d.TEXCLASS.OPEN],mathclose:["TeXAtom",MmlNode_js_1$d.TEXCLASS.CLOSE],mathbin:["TeXAtom",MmlNode_js_1$d.TEXCLASS.BIN],mathrel:["TeXAtom",MmlNode_js_1$d.TEXCLASS.REL],mathpunct:["TeXAtom",MmlNode_js_1$d.TEXCLASS.PUNCT],mathinner:["TeXAtom",MmlNode_js_1$d.TEXCLASS.INNER],vcenter:["TeXAtom",MmlNode_js_1$d.TEXCLASS.VCENTER],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],framebox:"FrameBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,!0],eqalign:["Matrix",null,null,"right left",(0,lengths_js_1$5.em)(lengths_js_1$5.MATHSPACE.thickmathspace),".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",!0],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",(0,lengths_js_1$5.em)(lengths_js_1$5.MATHSPACE.thickmathspace),".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",(0,lengths_js_1$5.em)(lengths_js_1$5.MATHSPACE.thickmathspace),".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde"," ":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",mathchoice:"MathChoice",mmlToken:"MmlToken"},BaseMethods_js_1$6.default),new sm$4.EnvironmentMap("environment",ParseMethods_js_1$7.default.environment,{array:["AlignedArray"],equation:["Equation",null,!0],eqnarray:["EqnArray",null,!0,!0,"rcl",ParseUtil_js_1$b.default.cols(0,lengths_js_1$5.MATHSPACE.thickmathspace),".5em"]},BaseMethods_js_1$6.default),new sm$4.CharacterMap("not_remap",null,{"←":"↚","→":"↛","↔":"↮","⇐":"⇍","⇒":"⇏","⇔":"⇎","∈":"∉","∋":"∌","∣":"∤","∥":"∦","∼":"≁","~":"≁","≃":"≄","≅":"≇","≈":"≉","≍":"≭","=":"≠","≡":"≢","<":"≮",">":"≯","≤":"≰","≥":"≱","≲":"≴","≳":"≵","≶":"≸","≷":"≹","≺":"⊀","≻":"⊁","⊂":"⊄","⊃":"⊅","⊆":"⊈","⊇":"⊉","⊢":"⊬","⊨":"⊭","⊩":"⊮","⊫":"⊯","≼":"⋠","≽":"⋡","⊑":"⋢","⊒":"⋣","⊲":"⋪","⊳":"⋫","⊴":"⋬","⊵":"⋭","∃":"∄"});var __extends$1e=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__createBinding$a=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$a=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$a=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$a(t,e,r);return __setModuleDefault$a(t,e),t},__values$v=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$y=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_a$9;Object.defineProperty(BaseConfiguration,"__esModule",{value:!0}),BaseConfiguration.BaseConfiguration=BaseConfiguration.BaseTags=BaseConfiguration.Other=void 0;var Configuration_js_1$k=Configuration,MapHandler_js_1=MapHandler,TexError_js_1$f=__importDefault$y(TexError$1),NodeUtil_js_1$9=__importDefault$y(NodeUtil$1),SymbolMap_js_1$g=SymbolMap,bitem=__importStar$a(BaseItems),Tags_js_1$5=Tags,OperatorDictionary_js_1=OperatorDictionary;function Other(e,t){var r=e.stack.env.font?{mathvariant:e.stack.env.font}:{},n=MapHandler_js_1.MapHandler.getMap("remap").lookup(t),o=(0,OperatorDictionary_js_1.getRange)(t),i=o?o[3]:"mo",a=e.create("token",i,r,n?n.char:t);o[4]&&a.attributes.set("mathvariant",o[4]),"mo"===i&&(NodeUtil_js_1$9.default.setProperty(a,"fixStretchy",!0),e.configuration.addNode("fixStretchy",a)),e.Push(a)}function csUndefined(e,t){throw new TexError_js_1$f.default("UndefinedControlSequence","Undefined control sequence %1","\\"+t)}function envUndefined(e,t){throw new TexError_js_1$f.default("UnknownEnv","Unknown environment '%1'",t)}function filterNonscript(e){var t,r,n=e.data;try{for(var o=__values$v(n.getList("nonscript")),i=o.next();!i.done;i=o.next()){var a=i.value;if(a.attributes.get("scriptlevel")>0){var s=a.parent;if(s.childNodes.splice(s.childIndex(a),1),n.removeFromList(a.kind,[a]),a.isKind("mrow")){var l=a.childNodes[0];n.removeFromList("mstyle",[l]),n.removeFromList("mspace",l.childNodes[0].childNodes)}}else a.isKind("mrow")&&(a.parent.replaceChild(a.childNodes[0],a),n.removeFromList("mrow",[a]))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}new SymbolMap_js_1$g.CharacterMap("remap",null,{"-":"−","*":"∗","`":"‘"}),BaseConfiguration.Other=Other;var BaseTags=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1e(t,e),t}(Tags_js_1$5.AbstractTags);BaseConfiguration.BaseTags=BaseTags,BaseConfiguration.BaseConfiguration=Configuration_js_1$k.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:Other,macro:csUndefined,environment:envUndefined},items:(_a$9={},_a$9[bitem.StartItem.prototype.kind]=bitem.StartItem,_a$9[bitem.StopItem.prototype.kind]=bitem.StopItem,_a$9[bitem.OpenItem.prototype.kind]=bitem.OpenItem,_a$9[bitem.CloseItem.prototype.kind]=bitem.CloseItem,_a$9[bitem.PrimeItem.prototype.kind]=bitem.PrimeItem,_a$9[bitem.SubsupItem.prototype.kind]=bitem.SubsupItem,_a$9[bitem.OverItem.prototype.kind]=bitem.OverItem,_a$9[bitem.LeftItem.prototype.kind]=bitem.LeftItem,_a$9[bitem.Middle.prototype.kind]=bitem.Middle,_a$9[bitem.RightItem.prototype.kind]=bitem.RightItem,_a$9[bitem.BeginItem.prototype.kind]=bitem.BeginItem,_a$9[bitem.EndItem.prototype.kind]=bitem.EndItem,_a$9[bitem.StyleItem.prototype.kind]=bitem.StyleItem,_a$9[bitem.PositionItem.prototype.kind]=bitem.PositionItem,_a$9[bitem.CellItem.prototype.kind]=bitem.CellItem,_a$9[bitem.MmlItem.prototype.kind]=bitem.MmlItem,_a$9[bitem.FnItem.prototype.kind]=bitem.FnItem,_a$9[bitem.NotItem.prototype.kind]=bitem.NotItem,_a$9[bitem.NonscriptItem.prototype.kind]=bitem.NonscriptItem,_a$9[bitem.DotsItem.prototype.kind]=bitem.DotsItem,_a$9[bitem.ArrayItem.prototype.kind]=bitem.ArrayItem,_a$9[bitem.EqnArrayItem.prototype.kind]=bitem.EqnArrayItem,_a$9[bitem.EquationItem.prototype.kind]=bitem.EquationItem,_a$9),options:{maxMacros:1e3,baseURL:"undefined"==typeof document||0===document.getElementsByTagName("base").length?"":String(document.location).replace(/#.*$/,"")},tags:{base:BaseTags},postprocessors:[[filterNonscript,-4]]});var __extends$1d=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$9=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$9=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$9.apply(this,arguments)},__read$B=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__importDefault$x=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tex$2,"__esModule",{value:!0});var TeX_1=tex$2.TeX=void 0,InputJax_js_1=InputJax,Options_js_1$7=Options,FindTeX_js_1=FindTeX$1,FilterUtil_js_1=__importDefault$x(FilterUtil$1),NodeUtil_js_1$8=__importDefault$x(NodeUtil$1),TexParser_js_1$8=__importDefault$x(TexParser$1),TexError_js_1$e=__importDefault$x(TexError$1),ParseOptions_js_1$1=__importDefault$x(ParseOptions$1),Tags_js_1$4=Tags,Configuration_js_1$j=Configuration,TeX=function(e){function t(r){void 0===r&&(r={});var n=this,o=__read$B((0,Options_js_1$7.separateOptions)(r,t.OPTIONS,FindTeX_js_1.FindTeX.OPTIONS),3),i=o[0],a=o[1],s=o[2];(n=e.call(this,a)||this).findTeX=n.options.FindTeX||new FindTeX_js_1.FindTeX(s);var l=n.options.packages,c=n.configuration=t.configure(l),u=n._parseOptions=new ParseOptions_js_1$1.default(c,[n.options,Tags_js_1$4.TagsFactory.OPTIONS]);return(0,Options_js_1$7.userOptions)(u.options,i),c.config(n),t.tags(u,c),n.postFilters.add(FilterUtil_js_1.default.cleanSubSup,-6),n.postFilters.add(FilterUtil_js_1.default.setInherited,-5),n.postFilters.add(FilterUtil_js_1.default.moveLimits,-4),n.postFilters.add(FilterUtil_js_1.default.cleanStretchy,-3),n.postFilters.add(FilterUtil_js_1.default.cleanAttributes,-2),n.postFilters.add(FilterUtil_js_1.default.combineRelations,-1),n}return __extends$1d(t,e),t.configure=function(e){var t=new Configuration_js_1$j.ParserConfiguration(e,["tex"]);return t.init(),t},t.tags=function(e,t){Tags_js_1$4.TagsFactory.addTags(t.tags),Tags_js_1$4.TagsFactory.setDefault(e.options.tags),e.tags=Tags_js_1$4.TagsFactory.getDefault(),e.tags.configuration=e},t.prototype.setMmlFactory=function(t){e.prototype.setMmlFactory.call(this,t),this._parseOptions.nodeFactory.setMmlFactory(t)},Object.defineProperty(t.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:!1,configurable:!0}),t.prototype.reset=function(e){void 0===e&&(e=0),this.parseOptions.tags.reset(e)},t.prototype.compile=function(e,t){this.parseOptions.clear(),this.executeFilters(this.preFilters,e,t,this.parseOptions);var r,n,o=e.display;this.latex=e.math,this.parseOptions.tags.startEquation(e);try{var i=new TexParser_js_1$8.default(this.latex,{display:o,isInner:!1},this.parseOptions);r=i.mml(),n=i.stack.global}catch(e){if(!(e instanceof TexError_js_1$e.default))throw e;this.parseOptions.error=!0,r=this.options.formatError(this,e)}return r=this.parseOptions.nodeFactory.create("node","math",[r]),(null==n?void 0:n.indentalign)&&NodeUtil_js_1$8.default.setAttribute(r,"indentalign",n.indentalign),o&&NodeUtil_js_1$8.default.setAttribute(r,"display","block"),this.parseOptions.tags.finishEquation(e),this.parseOptions.root=r,this.executeFilters(this.postFilters,e,t,this.parseOptions),this.mathNode=this.parseOptions.root,this.mathNode},t.prototype.findMath=function(e){return this.findTeX.findMath(e)},t.prototype.formatError=function(e){var t=e.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",t,e.id,this.latex)},t.NAME="TeX",t.OPTIONS=__assign$9(__assign$9({},InputJax_js_1.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5120,formatError:function(e,t){return e.formatError(t)}}),t}(InputJax_js_1.AbstractInputJax);TeX_1=tex$2.TeX=TeX;var chtml={},OutputJax$1={},OutputJax={};Object.defineProperty(OutputJax,"__esModule",{value:!0}),OutputJax.AbstractOutputJax=void 0;var Options_js_1$6=Options,FunctionList_js_1=FunctionList$1,AbstractOutputJax=function(){function e(e){void 0===e&&(e={}),this.adaptor=null;var t=this.constructor;this.options=(0,Options_js_1$6.userOptions)((0,Options_js_1$6.defaultOptions)({},t.OPTIONS),e),this.postFilters=new FunctionList_js_1.FunctionList}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.setAdaptor=function(e){this.adaptor=e},e.prototype.initialize=function(){},e.prototype.reset=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getMetrics=function(e){},e.prototype.styleSheet=function(e){return null},e.prototype.pageElements=function(e){return null},e.prototype.executeFilters=function(e,t,r,n){var o={math:t,document:r,data:n};return e.execute(o),o.data},e.NAME="generic",e.OPTIONS={},e}();OutputJax.AbstractOutputJax=AbstractOutputJax;var Styles$1={},__values$u=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$A=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$i=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(Styles$1,"__esModule",{value:!0}),Styles$1.Styles=void 0;var TRBL=["top","right","bottom","left"],WSC=["width","style","color"];function splitSpaces(e){for(var t=e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),r=[];t.length>1;)t.shift(),r.push(t.shift());return r}function splitTRBL(e){var t,r,n=splitSpaces(this.styles[e]);0===n.length&&n.push(""),1===n.length&&n.push(n[0]),2===n.length&&n.push(n[0]),3===n.length&&n.push(n[1]);try{for(var o=__values$u(Styles.connect[e].children),i=o.next();!i.done;i=o.next()){var a=i.value;this.setStyle(this.childName(e,a),n.shift())}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}function combineTRBL(e){var t,r,n=Styles.connect[e].children,o=[];try{for(var i=__values$u(n),a=i.next();!a.done;a=i.next()){var s=a.value,l=this.styles[e+"-"+s];if(!l)return void delete this.styles[e];o.push(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}o[3]===o[1]&&(o.pop(),o[2]===o[0]&&(o.pop(),o[1]===o[0]&&o.pop())),this.styles[e]=o.join(" ")}function splitSame(e){var t,r;try{for(var n=__values$u(Styles.connect[e].children),o=n.next();!o.done;o=n.next()){var i=o.value;this.setStyle(this.childName(e,i),this.styles[e])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}function combineSame(e){var t,r,n=__spreadArray$i([],__read$A(Styles.connect[e].children),!1),o=this.styles[this.childName(e,n.shift())];try{for(var i=__values$u(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(this.styles[this.childName(e,s)]!==o)return void delete this.styles[e]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this.styles[e]=o}var BORDER={width:/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,style:/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/};function splitWSC(e){var t,r,n,o,i={width:"",style:"",color:""};try{for(var a=__values$u(splitSpaces(this.styles[e])),s=a.next();!s.done;s=a.next()){var l=s.value;l.match(BORDER.width)&&""===i.width?i.width=l:l.match(BORDER.style)&&""===i.style?i.style=l:i.color=l}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}try{for(var c=__values$u(Styles.connect[e].children),u=c.next();!u.done;u=c.next()){var d=u.value;this.setStyle(this.childName(e,d),i[d])}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}function combineWSC(e){var t,r,n=[];try{for(var o=__values$u(Styles.connect[e].children),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.styles[this.childName(e,a)];s&&n.push(s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}n.length?this.styles[e]=n.join(" "):delete this.styles[e]}var FONT={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?condensed","(?:(?:semi|extra|ulta)-)?expanded","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[d.]+%|[d.]+[a-z]+","inherit|initial|unset"].join("|")+")(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$")};function splitFont(e){var t,r,n,o,i=splitSpaces(this.styles[e]),a={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};try{for(var s=__values$u(i),l=s.next();!l.done;l=s.next()){var c=l.value;a.family=c;try{for(var u=(n=void 0,__values$u(Object.keys(FONT))),d=u.next();!d.done;d=u.next()){var p=d.value;if((Array.isArray(a[p])||""===a[p])&&c.match(FONT[p]))if("size"===p){var m=__read$A(c.split(/\//),2),h=m[0],f=m[1];a[p]=h,f&&(a["line-height"]=f)}else""===a.size&&(Array.isArray(a[p])?a[p].push(c):a[p]=c)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}saveFontParts(e,a),delete this.styles[e]}function saveFontParts(e,t){var r,n;try{for(var o=__values$u(Styles.connect[e].children),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.childName(e,a);if(Array.isArray(t[a])){var l=t[a];l.length&&(this.styles[s]=l.join(" "))}else""!==t[a]&&(this.styles[s]=t[a])}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function combineFont(e){}var Styles=function(){function e(e){void 0===e&&(e=""),this.parse(e)}return Object.defineProperty(e.prototype,"cssText",{get:function(){var e,t,r=[];try{for(var n=__values$u(Object.keys(this.styles)),o=n.next();!o.done;o=n.next()){var i=o.value,a=this.parentName(i);this.styles[a]||r.push(i+": "+this.styles[i]+";")}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r.join(" ")},enumerable:!1,configurable:!0}),e.prototype.set=function(t,r){for(t=this.normalizeName(t),this.setStyle(t,r),e.connect[t]&&!e.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/)&&(t=this.parentName(t),e.connect[t]);)e.connect[t].combine.call(this,t)},e.prototype.get=function(e){return e=this.normalizeName(e),this.styles.hasOwnProperty(e)?this.styles[e]:""},e.prototype.setStyle=function(t,r){this.styles[t]=r,e.connect[t]&&e.connect[t].children&&e.connect[t].split.call(this,t),""===r&&delete this.styles[t]},e.prototype.combineChildren=function(t){var r,n,o=this.parentName(t);try{for(var i=__values$u(e.connect[t].children),a=i.next();!a.done;a=i.next()){var s=a.value,l=this.childName(o,s);e.connect[l].combine.call(this,l)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.parentName=function(e){var t=e.replace(/-[^-]*$/,"");return e===t?"":t},e.prototype.childName=function(t,r){return r.match(/-/)?r:(e.connect[t]&&!e.connect[t].combine&&(r+=t.replace(/.*-/,"-"),t=this.parentName(t)),t+"-"+r)},e.prototype.normalizeName=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))},e.prototype.parse=function(e){void 0===e&&(e="");var t=this.constructor.pattern;this.styles={};for(var r=e.replace(t.comment,"").split(t.style);r.length>1;){var n=__read$A(r.splice(0,3),3),o=n[0],i=n[1],a=n[2];if(o.match(/[^\s\n]/))return;this.set(i,a)}},e.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},e.connect={padding:{children:TRBL,split:splitTRBL,combine:combineTRBL},border:{children:TRBL,split:splitSame,combine:combineSame},"border-top":{children:WSC,split:splitWSC,combine:combineWSC},"border-right":{children:WSC,split:splitWSC,combine:combineWSC},"border-bottom":{children:WSC,split:splitWSC,combine:combineWSC},"border-left":{children:WSC,split:splitWSC,combine:combineWSC},"border-width":{children:TRBL,split:splitTRBL,combine:null},"border-style":{children:TRBL,split:splitTRBL,combine:null},"border-color":{children:TRBL,split:splitTRBL,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:splitFont,combine:combineFont}},e}();Styles$1.Styles=Styles;var StyleList={},__values$t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(StyleList,"__esModule",{value:!0}),StyleList.CssStyles=void 0;var CssStyles=function(){function e(e){void 0===e&&(e=null),this.styles={},this.addStyles(e)}return Object.defineProperty(e.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:!1,configurable:!0}),e.prototype.addStyles=function(e){var t,r;if(e)try{for(var n=__values$t(Object.keys(e)),o=n.next();!o.done;o=n.next()){var i=o.value;this.styles[i]||(this.styles[i]={}),Object.assign(this.styles[i],e[i])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.removeStyles=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=__values$t(r),i=o.next();!i.done;i=o.next()){var a=i.value;delete this.styles[a]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype.clear=function(){this.styles={}},e.prototype.getStyleString=function(){return this.getStyleRules().join("\n\n")},e.prototype.getStyleRules=function(){var e,t,r=Object.keys(this.styles),n=new Array(r.length),o=0;try{for(var i=__values$t(r),a=i.next();!a.done;a=i.next()){var s=a.value;n[o++]=s+" {\n"+this.getStyleDefString(this.styles[s])+"\n}"}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n},e.prototype.getStyleDefString=function(e){var t,r,n=Object.keys(e),o=new Array(n.length),i=0;try{for(var a=__values$t(n),s=a.next();!s.done;s=a.next()){var l=s.value;o[i++]=" "+l+": "+e[l]+";"}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o.join("\n")},e}();StyleList.CssStyles=CssStyles;var __extends$1c=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$8=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$8=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$8.apply(this,arguments)},__read$z=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$s=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(OutputJax$1,"__esModule",{value:!0}),OutputJax$1.CommonOutputJax=void 0;var OutputJax_js_1$1=OutputJax,MathItem_js_1$2=MathItem,Options_js_1$5=Options,lengths_js_1$4=lengths,Styles_js_1$1=Styles$1,StyleList_js_1$1=StyleList,CommonOutputJax=function(e){function t(t,r,n){void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null);var o=this,i=__read$z((0,Options_js_1$5.separateOptions)(t,n.OPTIONS),2),a=i[0],s=i[1];return(o=e.call(this,a)||this).factory=o.options.wrapperFactory||new r,o.factory.jax=o,o.cssStyles=o.options.cssStyles||new StyleList_js_1$1.CssStyles,o.font=o.options.font||new n(s),o.unknownCache=new Map,o}return __extends$1c(t,e),t.prototype.typeset=function(e,t){this.setDocument(t);var r=this.createNode();return this.toDOM(e,r,t),r},t.prototype.createNode=function(){var e=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:e})},t.prototype.setScale=function(e){var t=this.math.metrics.scale*this.options.scale;1!==t&&this.adaptor.setStyle(e,"fontSize",(0,lengths_js_1$4.percent)(t))},t.prototype.toDOM=function(e,t,r){void 0===r&&(r=null),this.setDocument(r),this.math=e,this.pxPerEm=e.metrics.ex/this.font.params.x_height,e.root.setTeXclass(null),this.setScale(t),this.nodeMap=new Map,this.container=t,this.processMath(e.root,t),this.nodeMap=null,this.executeFilters(this.postFilters,e,r,t)},t.prototype.getBBox=function(e,t){this.setDocument(t),this.math=e,e.root.setTeXclass(null),this.nodeMap=new Map;var r=this.factory.wrap(e.root).getOuterBBox();return this.nodeMap=null,r},t.prototype.getMetrics=function(e){var t,r;this.setDocument(e);var n=this.adaptor,o=this.getMetricMaps(e);try{for(var i=__values$s(e.math),a=i.next();!a.done;a=i.next()){var s=a.value,l=n.parent(s.start.node);if(s.state()<MathItem_js_1$2.STATE.METRICS&&l){var c=o[s.display?1:0].get(l),u=c.em,d=c.ex,p=c.containerWidth,m=c.lineWidth,h=c.scale,f=c.family;s.setMetrics(u,d,p,m,h),this.options.mtextInheritFont&&(s.outputData.mtextFamily=f),this.options.merrorInheritFont&&(s.outputData.merrorFamily=f),s.state(MathItem_js_1$2.STATE.METRICS)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},t.prototype.getMetricsFor=function(e,t){var r=this.options.mtextInheritFont||this.options.merrorInheritFont,n=this.getTestElement(e,t),o=this.measureMetrics(n,r);return this.adaptor.remove(n),o},t.prototype.getMetricMaps=function(e){var t,r,n,o,i,a,s,l,c,u,d=this.adaptor,p=[new Map,new Map];try{for(var m=__values$s(e.math),h=m.next();!h.done;h=m.next()){var f=h.value;if((E=d.parent(f.start.node))&&f.state()<MathItem_js_1$2.STATE.METRICS){var _=p[f.display?1:0];_.has(E)||_.set(E,this.getTestElement(E,f.display))}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(r=m.return)&&r.call(m)}finally{if(t)throw t.error}}var g=this.options.mtextInheritFont||this.options.merrorInheritFont,y=[new Map,new Map];try{for(var b=__values$s(y.keys()),v=b.next();!v.done;v=b.next()){var x=v.value;try{for(var M=(i=void 0,__values$s(p[x].keys())),S=M.next();!S.done;S=M.next()){var E=S.value;y[x].set(E,this.measureMetrics(p[x].get(E),g))}}catch(e){i={error:e}}finally{try{S&&!S.done&&(a=M.return)&&a.call(M)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{v&&!v.done&&(o=b.return)&&o.call(b)}finally{if(n)throw n.error}}try{for(var $=__values$s(y.keys()),C=$.next();!C.done;C=$.next()){x=C.value;try{for(var O=(c=void 0,__values$s(p[x].values())),A=O.next();!A.done;A=O.next()){E=A.value;d.remove(E)}}catch(e){c={error:e}}finally{try{A&&!A.done&&(u=O.return)&&u.call(O)}finally{if(c)throw c.error}}}}catch(e){s={error:e}}finally{try{C&&!C.done&&(l=$.return)&&l.call($)}finally{if(s)throw s.error}}return y},t.prototype.getTestElement=function(e,t){var r=this.adaptor;if(!this.testInline){this.testInline=this.html("mjx-test",{style:{display:"inline-block",width:"100%","font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-transform":"none","letter-spacing":"normal","word-spacing":"normal",overflow:"hidden",height:"1px","margin-right":"-1px"}},[this.html("mjx-left-box",{style:{display:"inline-block",width:0,float:"left"}}),this.html("mjx-ex-box",{style:{position:"absolute",overflow:"hidden",width:"1px",height:"60ex"}}),this.html("mjx-right-box",{style:{display:"inline-block",width:0,float:"right"}})]),this.testDisplay=r.clone(this.testInline),r.setStyle(this.testDisplay,"display","table"),r.setStyle(this.testDisplay,"margin-right",""),r.setStyle(r.firstChild(this.testDisplay),"display","none");var n=r.lastChild(this.testDisplay);r.setStyle(n,"display","table-cell"),r.setStyle(n,"width","10000em"),r.setStyle(n,"float","")}return r.append(e,r.clone(t?this.testDisplay:this.testInline))},t.prototype.measureMetrics=function(e,t){var r=this.adaptor,n=t?r.fontFamily(e):"",o=r.fontSize(e),i=__read$z(r.nodeSize(r.childNode(e,1)),2),a=i[0],s=i[1],l=a?s/60:o*this.options.exFactor;return{em:o,ex:l,containerWidth:a?"table"===r.getStyle(e,"display")?r.nodeSize(r.lastChild(e))[0]-1:r.nodeBBox(r.lastChild(e)).left-r.nodeBBox(r.firstChild(e)).left-2:1e6,lineWidth:1e6,scale:Math.max(this.options.minScale,this.options.matchFontHeight?l/this.font.params.x_height/o:1),family:n}},t.prototype.styleSheet=function(e){var t,r;if(this.setDocument(e),this.cssStyles.clear(),this.cssStyles.addStyles(this.constructor.commonStyles),"getStyles"in e)try{for(var n=__values$s(e.getStyles()),o=n.next();!o.done;o=n.next()){var i=o.value;this.cssStyles.addStyles(i)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this.addWrapperStyles(this.cssStyles),this.addFontStyles(this.cssStyles),this.html("style",{id:"MJX-styles"},[this.text("\n"+this.cssStyles.cssText+"\n")])},t.prototype.addFontStyles=function(e){e.addStyles(this.font.styles)},t.prototype.addWrapperStyles=function(e){var t,r;try{for(var n=__values$s(this.factory.getKinds()),o=n.next();!o.done;o=n.next()){var i=o.value;this.addClassStyles(this.factory.getNodeClass(i),e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},t.prototype.addClassStyles=function(e,t){t.addStyles(e.styles)},t.prototype.setDocument=function(e){e&&(this.document=e,this.adaptor.document=e.document)},t.prototype.html=function(e,t,r,n){return void 0===t&&(t={}),void 0===r&&(r=[]),this.adaptor.node(e,t,r,n)},t.prototype.text=function(e){return this.adaptor.text(e)},t.prototype.fixed=function(e,t){return void 0===t&&(t=3),Math.abs(e)<6e-4?"0":e.toFixed(t).replace(/\.?0+$/,"")},t.prototype.measureText=function(e,t,r){void 0===r&&(r=["",!1,!1]);var n=this.unknownText(e,t);if("-explicitFont"===t){var o=this.cssFontStyles(r);this.adaptor.setAttributes(n,{style:o})}return this.measureTextNodeWithCache(n,e,t,r)},t.prototype.measureTextNodeWithCache=function(e,t,r,n){void 0===n&&(n=["",!1,!1]),"-explicitFont"===r&&(r=[n[0],n[1]?"T":"F",n[2]?"T":"F",""].join("-")),this.unknownCache.has(r)||this.unknownCache.set(r,new Map);var o=this.unknownCache.get(r),i=o.get(t);if(i)return i;var a=this.measureTextNode(e);return o.set(t,a),a},t.prototype.measureXMLnode=function(e){var t=this.adaptor,r=this.html("mjx-xml-block",{style:{display:"inline-block"}},[t.clone(e)]),n=this.html("mjx-baseline",{style:{display:"inline-block",width:0,height:0}}),o=this.html("mjx-measure-xml",{style:{position:"absolute",display:"inline-block","font-family":"initial","line-height":"normal"}},[n,r]);t.append(t.parent(this.math.start.node),this.container),t.append(this.container,o);var i=this.math.metrics.em*this.math.metrics.scale,a=t.nodeBBox(r),s=a.left,l=a.right,c=a.bottom,u=a.top,d=(l-s)/i,p=(t.nodeBBox(n).top-u)/i,m=(c-u)/i-p;return t.remove(this.container),t.remove(o),{w:d,h:p,d:m}},t.prototype.cssFontStyles=function(e,t){void 0===t&&(t={});var r=__read$z(e,3),n=r[0],o=r[1],i=r[2];return t["font-family"]=this.font.getFamily(n),o&&(t["font-style"]="italic"),i&&(t["font-weight"]="bold"),t},t.prototype.getFontData=function(e){return e||(e=new Styles_js_1$1.Styles),[this.font.getFamily(e.get("font-family")),"italic"===e.get("font-style"),"bold"===e.get("font-weight")]},t.NAME="Common",t.OPTIONS=__assign$8(__assign$8({},OutputJax_js_1$1.AbstractOutputJax.OPTIONS),{scale:1,minScale:.5,mtextInheritFont:!1,merrorInheritFont:!1,mtextFont:"",merrorFont:"serif",mathmlSpacing:!1,skipAttributes:{},exFactor:.5,displayAlign:"center",displayIndent:"0",wrapperFactory:null,font:null,cssStyles:null}),t.commonStyles={},t}(OutputJax_js_1$1.AbstractOutputJax);OutputJax$1.CommonOutputJax=CommonOutputJax;var WrapperFactory$2={},WrapperFactory$1={},WrapperFactory={},__extends$1b=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$y=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$h=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(WrapperFactory,"__esModule",{value:!0}),WrapperFactory.AbstractWrapperFactory=void 0;var Factory_js_1=Factory,AbstractWrapperFactory=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1b(t,e),t.prototype.wrap=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this.create.apply(this,__spreadArray$h([e.kind,e],__read$y(t),!1))},t}(Factory_js_1.AbstractFactory);WrapperFactory.AbstractWrapperFactory=AbstractWrapperFactory;var __extends$1a=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(WrapperFactory$1,"__esModule",{value:!0}),WrapperFactory$1.CommonWrapperFactory=void 0;var WrapperFactory_js_1$2=WrapperFactory,CommonWrapperFactory=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.jax=null,t}return __extends$1a(t,e),Object.defineProperty(t.prototype,"Wrappers",{get:function(){return this.node},enumerable:!1,configurable:!0}),t.defaultNodes={},t}(WrapperFactory_js_1$2.AbstractWrapperFactory);WrapperFactory$1.CommonWrapperFactory=CommonWrapperFactory;var Wrappers={},Wrapper$2={},Wrapper$1={},Wrapper={};Object.defineProperty(Wrapper,"__esModule",{value:!0}),Wrapper.AbstractWrapper=void 0;var AbstractWrapper=function(){function e(e,t){this.factory=e,this.node=t}return Object.defineProperty(e.prototype,"kind",{get:function(){return this.node.kind},enumerable:!1,configurable:!0}),e.prototype.wrap=function(e){return this.factory.wrap(e)},e}();Wrapper.AbstractWrapper=AbstractWrapper;var BBox$1={};Object.defineProperty(BBox$1,"__esModule",{value:!0}),BBox$1.BBox=void 0;var lengths_js_1$3=lengths,BBox=function(){function e(e){void 0===e&&(e={w:0,h:-lengths_js_1$3.BIGDIMEN,d:-lengths_js_1$3.BIGDIMEN}),this.w=e.w||0,this.h="h"in e?e.h:-lengths_js_1$3.BIGDIMEN,this.d="d"in e?e.d:-lengths_js_1$3.BIGDIMEN,this.L=this.R=this.ic=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=""}return e.zero=function(){return new e({h:0,d:0,w:0})},e.empty=function(){return new e},e.prototype.empty=function(){return this.w=0,this.h=this.d=-lengths_js_1$3.BIGDIMEN,this},e.prototype.clean=function(){this.w===-lengths_js_1$3.BIGDIMEN&&(this.w=0),this.h===-lengths_js_1$3.BIGDIMEN&&(this.h=0),this.d===-lengths_js_1$3.BIGDIMEN&&(this.d=0)},e.prototype.rescale=function(e){this.w*=e,this.h*=e,this.d*=e},e.prototype.combine=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0);var n=e.rscale,o=t+n*(e.w+e.L+e.R),i=r+n*e.h,a=n*e.d-r;o>this.w&&(this.w=o),i>this.h&&(this.h=i),a>this.d&&(this.d=a)},e.prototype.append=function(e){var t=e.rscale;this.w+=t*(e.w+e.L+e.R),t*e.h>this.h&&(this.h=t*e.h),t*e.d>this.d&&(this.d=t*e.d)},e.prototype.updateFrom=function(e){this.h=e.h,this.d=e.d,this.w=e.w,e.pwidth&&(this.pwidth=e.pwidth)},e.fullWidth="100%",e.StyleAdjust=[["borderTopWidth","h"],["borderRightWidth","w"],["borderBottomWidth","d"],["borderLeftWidth","w",0],["paddingTop","h"],["paddingRight","w"],["paddingBottom","d"],["paddingLeft","w",0]],e}();BBox$1.BBox=BBox;var FontData$2={},__assign$7=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$7=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$7.apply(this,arguments)},__read$x=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$g=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$r=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(FontData$2,"__esModule",{value:!0}),FontData$2.FontData=FontData$2.NOSTRETCH=FontData$2.H=FontData$2.V=void 0;var Options_js_1$4=Options;FontData$2.V=1,FontData$2.H=2,FontData$2.NOSTRETCH={dir:0};var FontData$1=function(){function e(e){var t,r,n,o;void 0===e&&(e=null),this.variant={},this.delimiters={},this.cssFontMap={},this.remapChars={},this.skewIcFactor=.75;var i=this.constructor;this.options=(0,Options_js_1$4.userOptions)((0,Options_js_1$4.defaultOptions)({},i.OPTIONS),e),this.params=__assign$7({},i.defaultParams),this.sizeVariants=__spreadArray$g([],__read$x(i.defaultSizeVariants),!1),this.stretchVariants=__spreadArray$g([],__read$x(i.defaultStretchVariants),!1),this.cssFontMap=__assign$7({},i.defaultCssFonts);try{for(var a=__values$r(Object.keys(this.cssFontMap)),s=a.next();!s.done;s=a.next()){var l=s.value;"unknown"===this.cssFontMap[l][0]&&(this.cssFontMap[l][0]=this.options.unknownFamily)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}this.cssFamilyPrefix=i.defaultCssFamilyPrefix,this.createVariants(i.defaultVariants),this.defineDelimiters(i.defaultDelimiters);try{for(var c=__values$r(Object.keys(i.defaultChars)),u=c.next();!u.done;u=c.next()){var d=u.value;this.defineChars(d,i.defaultChars[d])}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}this.defineRemap("accent",i.defaultAccentMap),this.defineRemap("mo",i.defaultMoMap),this.defineRemap("mn",i.defaultMnMap)}return e.charOptions=function(e,t){var r=e[t];return 3===r.length&&(r[3]={}),r[3]},Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles},set:function(e){this._styles=e},enumerable:!1,configurable:!0}),e.prototype.createVariant=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n={linked:[],chars:t?Object.create(this.variant[t].chars):{}};r&&this.variant[r]&&(Object.assign(n.chars,this.variant[r].chars),this.variant[r].linked.push(n.chars),n.chars=Object.create(n.chars)),this.remapSmpChars(n.chars,e),this.variant[e]=n},e.prototype.remapSmpChars=function(e,t){var r,n,o,i,a=this.constructor;if(a.VariantSmp[t]){var s=a.SmpRemap,l=[null,null,a.SmpRemapGreekU,a.SmpRemapGreekL];try{for(var c=__values$r(a.SmpRanges),u=c.next();!u.done;u=c.next()){var d=__read$x(u.value,3),p=d[0],m=d[1],h=d[2],f=a.VariantSmp[t][p];if(f){for(var _=m;_<=h;_++)if(930!==_){var g=f+_-m;e[_]=this.smpChar(s[g]||g)}if(l[p])try{for(var y=(o=void 0,__values$r(Object.keys(l[p]).map((function(e){return parseInt(e)})))),b=y.next();!b.done;b=y.next()){e[_=b.value]=this.smpChar(f+l[p][_])}}catch(e){o={error:e}}finally{try{b&&!b.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}"bold"===t&&(e[988]=this.smpChar(120778),e[989]=this.smpChar(120779))},e.prototype.smpChar=function(e){return[,,,{smp:e}]},e.prototype.createVariants=function(e){var t,r;try{for(var n=__values$r(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.createVariant(i[0],i[1],i[2])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.defineChars=function(e,t){var r,n,o=this.variant[e];Object.assign(o.chars,t);try{for(var i=__values$r(o.linked),a=i.next();!a.done;a=i.next()){var s=a.value;Object.assign(s,t)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.defineDelimiters=function(e){Object.assign(this.delimiters,e)},e.prototype.defineRemap=function(e,t){this.remapChars.hasOwnProperty(e)||(this.remapChars[e]={}),Object.assign(this.remapChars[e],t)},e.prototype.getDelimiter=function(e){return this.delimiters[e]},e.prototype.getSizeVariant=function(e,t){return this.delimiters[e].variants&&(t=this.delimiters[e].variants[t]),this.sizeVariants[t]},e.prototype.getStretchVariant=function(e,t){return this.stretchVariants[this.delimiters[e].stretchv?this.delimiters[e].stretchv[t]:0]},e.prototype.getChar=function(e,t){return this.variant[e].chars[t]},e.prototype.getVariant=function(e){return this.variant[e]},e.prototype.getCssFont=function(e){return this.cssFontMap[e]||["serif",!1,!1]},e.prototype.getFamily=function(e){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+e:e},e.prototype.getRemappedChar=function(e,t){return(this.remapChars[e]||{})[t]},e.OPTIONS={unknownFamily:"serif"},e.JAX="common",e.NAME="",e.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","italic"],["bold-script","bold-italic","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["sans-serif-bold-italic","bold-italic","bold-sans-serif"],["monospace","normal"]],e.defaultCssFonts={normal:["unknown",!1,!1],bold:["unknown",!1,!0],italic:["unknown",!0,!1],"bold-italic":["unknown",!0,!0],"double-struck":["unknown",!1,!0],fraktur:["unknown",!1,!1],"bold-fraktur":["unknown",!1,!0],script:["cursive",!1,!1],"bold-script":["cursive",!1,!0],"sans-serif":["sans-serif",!1,!1],"bold-sans-serif":["sans-serif",!1,!0],"sans-serif-italic":["sans-serif",!0,!1],"sans-serif-bold-italic":["sans-serif",!0,!0],monospace:["monospace",!1,!1]},e.defaultCssFamilyPrefix="",e.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]},e.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]],e.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},e.SmpRemapGreekU={8711:25,1012:17},e.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25},e.defaultAccentMap={768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗",8242:"'",8243:"''",8244:"'''",8245:"`",8246:"``",8247:"```",8279:"''''",8400:"↼",8401:"⇀",8406:"←",8417:"↔",8432:"*",8411:"...",8412:"....",8428:"⇁",8429:"↽",8430:"←",8431:"→"},e.defaultMoMap={45:"−"},e.defaultMnMap={45:"−"},e.defaultParams={x_height:.442,quad:1,num1:.676,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,sup_drop:.386,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111,big_op_spacing2:.167,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,surd_height:.075,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033},e.defaultDelimiters={},e.defaultChars={},e.defaultSizeVariants=[],e.defaultStretchVariants=[],e}();FontData$2.FontData=FontData$1;var __extends$19=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__createBinding$9=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$9=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$9=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$9(t,e,r);return __setModuleDefault$9(t,e),t},__values$q=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$w=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$f=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(Wrapper$1,"__esModule",{value:!0}),Wrapper$1.CommonWrapper=void 0;var Wrapper_js_1$n=Wrapper,MmlNode_js_1$c=MmlNode,string_js_1$6=string,LENGTHS$1=__importStar$9(lengths),Styles_js_1=Styles$1,BBox_js_1$5=BBox$1,FontData_js_1$j=FontData$2,SMALLSIZE=2/18;function MathMLSpace(e,t){return e?t<SMALLSIZE?0:SMALLSIZE:t}var CommonWrapper=function(e){function t(t,r,n){void 0===n&&(n=null);var o=e.call(this,t,r)||this;return o.parent=null,o.removedStyles=null,o.styles=null,o.variant="",o.bboxComputed=!1,o.stretch=FontData_js_1$j.NOSTRETCH,o.font=null,o.parent=n,o.font=t.jax.font,o.bbox=BBox_js_1$5.BBox.zero(),o.getStyles(),o.getVariant(),o.getScale(),o.getSpace(),o.childNodes=r.childNodes.map((function(e){var t=o.wrap(e);return t.bbox.pwidth&&(r.notParent||r.isKind("math"))&&(o.bbox.pwidth=BBox_js_1$5.BBox.fullWidth),t})),o}return __extends$19(t,e),Object.defineProperty(t.prototype,"jax",{get:function(){return this.factory.jax},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adaptor",{get:function(){return this.factory.jax.adaptor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metrics",{get:function(){return this.factory.jax.math.metrics},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fixesPWidth",{get:function(){return!this.node.notParent&&!this.node.isToken},enumerable:!1,configurable:!0}),t.prototype.wrap=function(e,t){void 0===t&&(t=null);var r=this.factory.wrap(e,t||this);return t&&t.childNodes.push(r),this.jax.nodeMap.set(e,r),r},t.prototype.getBBox=function(e){if(void 0===e&&(e=!0),this.bboxComputed)return this.bbox;var t=e?this.bbox:BBox_js_1$5.BBox.zero();return this.computeBBox(t),this.bboxComputed=e,t},t.prototype.getOuterBBox=function(e){var t,r;void 0===e&&(e=!0);var n=this.getBBox(e);if(!this.styles)return n;var o=new BBox_js_1$5.BBox;Object.assign(o,n);try{for(var i=__values$q(BBox_js_1$5.BBox.StyleAdjust),a=i.next();!a.done;a=i.next()){var s=__read$w(a.value,2),l=s[0],c=s[1],u=this.styles.get(l);u&&(o[c]+=this.length2em(u,1,o.rscale))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o},t.prototype.computeBBox=function(e,t){var r,n;void 0===t&&(t=!1),e.empty();try{for(var o=__values$q(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;e.append(a.getOuterBBox())}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.clean(),this.fixesPWidth&&this.setChildPWidths(t)&&this.computeBBox(e,!0)},t.prototype.setChildPWidths=function(e,t,r){var n,o;if(void 0===t&&(t=null),void 0===r&&(r=!0),e)return!1;r&&(this.bbox.pwidth="");var i=!1;try{for(var a=__values$q(this.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value,c=l.getOuterBBox();c.pwidth&&l.setChildPWidths(e,null===t?c.w:t,r)&&(i=!0)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},t.prototype.invalidateBBox=function(){this.bboxComputed&&(this.bboxComputed=!1,this.parent&&this.parent.invalidateBBox())},t.prototype.copySkewIC=function(e){var t=this.childNodes[0];(null==t?void 0:t.bbox.sk)&&(e.sk=t.bbox.sk),(null==t?void 0:t.bbox.dx)&&(e.dx=t.bbox.dx);var r=this.childNodes[this.childNodes.length-1];(null==r?void 0:r.bbox.ic)&&(e.ic=r.bbox.ic,e.w+=e.ic)},t.prototype.getStyles=function(){var e=this.node.attributes.getExplicit("style");if(e)for(var r=this.styles=new Styles_js_1.Styles(e),n=0,o=t.removeStyles.length;n<o;n++){var i=t.removeStyles[n];r.get(i)&&(this.removedStyles||(this.removedStyles={}),this.removedStyles[i]=r.get(i),r.set(i,""))}},t.prototype.getVariant=function(){if(this.node.isToken){var e=this.node.attributes,r=e.get("mathvariant");if(!e.getExplicit("mathvariant")){var n=e.getList("fontfamily","fontweight","fontstyle");if(this.removedStyles){var o=this.removedStyles;o.fontFamily&&(n.family=o.fontFamily),o.fontWeight&&(n.weight=o.fontWeight),o.fontStyle&&(n.style=o.fontStyle)}n.fontfamily&&(n.family=n.fontfamily),n.fontweight&&(n.weight=n.fontweight),n.fontstyle&&(n.style=n.fontstyle),n.weight&&n.weight.match(/^\d+$/)&&(n.weight=parseInt(n.weight)>600?"bold":"normal"),n.family?r=this.explicitVariant(n.family,n.weight,n.style):(this.node.getProperty("variantForm")&&(r="-tex-variant"),r=(t.BOLDVARIANTS[n.weight]||{})[r]||r,r=(t.ITALICVARIANTS[n.style]||{})[r]||r)}this.variant=r}},t.prototype.explicitVariant=function(e,t,r){var n=this.styles;return n||(n=this.styles=new Styles_js_1.Styles),n.set("fontFamily",e),t&&n.set("fontWeight",t),r&&n.set("fontStyle",r),"-explicitFont"},t.prototype.getScale=function(){var e=1,t=this.parent,r=t?t.bbox.scale:1,n=this.node.attributes,o=Math.min(n.get("scriptlevel"),2),i=n.get("fontsize"),a=this.node.isToken||this.node.isKind("mstyle")?n.get("mathsize"):n.getInherited("mathsize");if(0!==o){e=Math.pow(n.get("scriptsizemultiplier"),o);var s=this.length2em(n.get("scriptminsize"),.8,1);e<s&&(e=s)}this.removedStyles&&this.removedStyles.fontSize&&!i&&(i=this.removedStyles.fontSize),i&&!n.getExplicit("mathsize")&&(a=i),"1"!==a&&(e*=this.length2em(a,1,1)),this.bbox.scale=e,this.bbox.rscale=e/r},t.prototype.getSpace=function(){var e=this.isTopEmbellished(),t=this.node.hasSpacingAttributes();this.jax.options.mathmlSpacing||t?e&&this.getMathMLSpacing():this.getTeXSpacing(e,t)},t.prototype.getMathMLSpacing=function(){var e=this.node.coreMO(),t=e.coreParent(),r=t.parent;if(r&&r.isKind("mrow")&&1!==r.childNodes.length){var n=e.attributes,o=n.get("scriptlevel")>0;this.bbox.L=n.isSet("lspace")?Math.max(0,this.length2em(n.get("lspace"))):MathMLSpace(o,e.lspace),this.bbox.R=n.isSet("rspace")?Math.max(0,this.length2em(n.get("rspace"))):MathMLSpace(o,e.rspace);var i=r.childIndex(t);if(0!==i){var a=r.childNodes[i-1];if(a.isEmbellished){var s=this.jax.nodeMap.get(a).getBBox();s.R&&(this.bbox.L=Math.max(0,this.bbox.L-s.R))}}}},t.prototype.getTeXSpacing=function(e,t){if(!t){var r=this.node.texSpacing();r&&(this.bbox.L=this.length2em(r))}if(e||t){var n=this.node.coreMO().attributes;n.isSet("lspace")&&(this.bbox.L=Math.max(0,this.length2em(n.get("lspace")))),n.isSet("rspace")&&(this.bbox.R=Math.max(0,this.length2em(n.get("rspace"))))}},t.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)},t.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())},t.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())},t.prototype.getText=function(){var e,t,r="";if(this.node.isToken)try{for(var n=__values$q(this.node.childNodes),o=n.next();!o.done;o=n.next()){var i=o.value;i instanceof MmlNode_js_1$c.TextNode&&(r+=i.getText())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},t.prototype.canStretch=function(e){if(this.stretch=FontData_js_1$j.NOSTRETCH,this.node.isEmbellished){var t=this.core();t&&t.node!==this.node&&t.canStretch(e)&&(this.stretch=t.stretch)}return 0!==this.stretch.dir},t.prototype.getAlignShift=function(){var e,t=(e=this.node.attributes).getList.apply(e,__spreadArray$f([],__read$w(MmlNode_js_1$c.indentAttributes),!1)),r=t.indentalign,n=t.indentshift,o=t.indentalignfirst,i=t.indentshiftfirst;return"indentalign"!==o&&(r=o),"auto"===r&&(r=this.jax.options.displayAlign),"indentshift"!==i&&(n=i),"auto"===n&&(n=this.jax.options.displayIndent,"right"!==r||n.match(/^\s*0[a-z]*\s*$/)||(n=("-"+n.trim()).replace(/^--/,""))),[r,this.length2em(n,this.metrics.containerWidth)]},t.prototype.getAlignX=function(e,t,r){return"right"===r?e-(t.w+t.R)*t.rscale:"left"===r?t.L*t.rscale:(e-t.w*t.rscale)/2},t.prototype.getAlignY=function(e,t,r,n,o){return"top"===o?e-r:"bottom"===o?n-t:"center"===o?(e-r-(t-n))/2:0},t.prototype.getWrapWidth=function(e){return this.childNodes[e].getBBox().w},t.prototype.getChildAlign=function(e){return"left"},t.prototype.percent=function(e){return LENGTHS$1.percent(e)},t.prototype.em=function(e){return LENGTHS$1.em(e)},t.prototype.px=function(e,t){return void 0===t&&(t=-LENGTHS$1.BIGDIMEN),LENGTHS$1.px(e,t,this.metrics.em)},t.prototype.length2em=function(e,t,r){return void 0===t&&(t=1),void 0===r&&(r=null),null===r&&(r=this.bbox.scale),LENGTHS$1.length2em(e,t,r,this.jax.pxPerEm)},t.prototype.unicodeChars=function(e,t){void 0===t&&(t=this.variant);var r=(0,string_js_1$6.unicodeChars)(e),n=this.font.getVariant(t);if(n&&n.chars){var o=n.chars;r=r.map((function(e){return((o[e]||[])[3]||{}).smp||e}))}return r},t.prototype.remapChars=function(e){return e},t.prototype.mmlText=function(e){return this.node.factory.create("text").setText(e)},t.prototype.mmlNode=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=[]),this.node.factory.create(e,t,r)},t.prototype.createMo=function(e){var t=this.node.factory,r=t.create("text").setText(e),n=t.create("mo",{stretchy:!0},[r]);n.inheritAttributesFrom(this.node);var o=this.wrap(n);return o.parent=this,o},t.prototype.getVariantChar=function(e,t){var r=this.font.getChar(e,t)||[0,0,0,{unknown:!0}];return 3===r.length&&(r[3]={}),r},t.kind="unknown",t.styles={},t.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"],t.skipAttributes={fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,class:!0,href:!0,style:!0,xmlns:!0},t.BOLDVARIANTS={bold:{normal:"bold",italic:"bold-italic",fraktur:"bold-fraktur",script:"bold-script","sans-serif":"bold-sans-serif","sans-serif-italic":"sans-serif-bold-italic"},normal:{bold:"normal","bold-italic":"italic","bold-fraktur":"fraktur","bold-script":"script","bold-sans-serif":"sans-serif","sans-serif-bold-italic":"sans-serif-italic"}},t.ITALICVARIANTS={italic:{normal:"italic",bold:"bold-italic","sans-serif":"sans-serif-italic","bold-sans-serif":"sans-serif-bold-italic"},normal:{italic:"normal","bold-italic":"bold","sans-serif-italic":"sans-serif","sans-serif-bold-italic":"bold-sans-serif"}},t}(Wrapper_js_1$n.AbstractWrapper);Wrapper$1.CommonWrapper=CommonWrapper,function(e){var t,r=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLWrapper=e.SPACE=e.FONTSIZE=void 0;var l=i(lengths),c=Wrapper$1,u=BBox$1;e.FONTSIZE={"70.7%":"s","70%":"s","50%":"ss","60%":"Tn","85%":"sm","120%":"lg","144%":"Lg","173%":"LG","207%":"hg","249%":"HG"},e.SPACE=((t={})[l.em(2/18)]="1",t[l.em(3/18)]="2",t[l.em(4/18)]="3",t[l.em(5/18)]="4",t[l.em(6/18)]="5",t);var d=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.chtml=null,e}return r(n,t),n.prototype.toCHTML=function(e){var t,r,n=this.standardCHTMLnode(e);try{for(var o=a(this.childNodes),i=o.next();!i.done;i=o.next()){i.value.toCHTML(n)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},n.prototype.standardCHTMLnode=function(e){this.markUsed();var t=this.createCHTMLnode(e);return this.handleStyles(),this.handleVariant(),this.handleScale(),this.handleColor(),this.handleSpace(),this.handleAttributes(),this.handlePWidth(),t},n.prototype.markUsed=function(){this.jax.wrapperUsage.add(this.kind)},n.prototype.createCHTMLnode=function(e){var t=this.node.attributes.get("href");return t&&(e=this.adaptor.append(e,this.html("a",{href:t}))),this.chtml=this.adaptor.append(e,this.html("mjx-"+this.node.kind)),this.chtml},n.prototype.handleStyles=function(){if(this.styles){var e=this.styles.cssText;if(e){this.adaptor.setAttribute(this.chtml,"style",e);var t=this.styles.get("font-family");t&&this.adaptor.setStyle(this.chtml,"font-family","MJXZERO, "+t)}}},n.prototype.handleVariant=function(){this.node.isToken&&"-explicitFont"!==this.variant&&this.adaptor.setAttribute(this.chtml,"class",(this.font.getVariant(this.variant)||this.font.getVariant("normal")).classes)},n.prototype.handleScale=function(){this.setScale(this.chtml,this.bbox.rscale)},n.prototype.setScale=function(t,r){var n=Math.abs(r-1)<.001?1:r;if(t&&1!==n){var o=this.percent(n);e.FONTSIZE[o]?this.adaptor.setAttribute(t,"size",e.FONTSIZE[o]):this.adaptor.setStyle(t,"fontSize",o)}return t},n.prototype.handleSpace=function(){var t,r;try{for(var n=a([[this.bbox.L,"space","marginLeft"],[this.bbox.R,"rspace","marginRight"]]),o=n.next();!o.done;o=n.next()){var i=o.value,l=s(i,3),c=l[0],u=l[1],d=l[2];if(c){var p=this.em(c);e.SPACE[p]?this.adaptor.setAttribute(this.chtml,u,e.SPACE[p]):this.adaptor.setStyle(this.chtml,d,p)}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},n.prototype.handleColor=function(){var e=this.node.attributes,t=e.getExplicit("mathcolor"),r=e.getExplicit("color"),n=e.getExplicit("mathbackground"),o=e.getExplicit("background");(t||r)&&this.adaptor.setStyle(this.chtml,"color",t||r),(n||o)&&this.adaptor.setStyle(this.chtml,"backgroundColor",n||o)},n.prototype.handleAttributes=function(){var e,t,r,o,i=this.node.attributes,s=i.getAllDefaults(),l=n.skipAttributes;try{for(var c=a(i.getExplicitNames()),u=c.next();!u.done;u=c.next()){var d=u.value;!1!==l[d]&&(d in s||l[d]||this.adaptor.hasAttribute(this.chtml,d))||this.adaptor.setAttribute(this.chtml,d,i.getExplicit(d))}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}if(i.get("class")){var p=i.get("class").trim().split(/ +/);try{for(var m=a(p),h=m.next();!h.done;h=m.next()){var f=h.value;this.adaptor.addClass(this.chtml,f)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}},n.prototype.handlePWidth=function(){this.bbox.pwidth&&(this.bbox.pwidth===u.BBox.fullWidth?this.adaptor.setAttribute(this.chtml,"width","full"):this.adaptor.setStyle(this.chtml,"width",this.bbox.pwidth))},n.prototype.setIndent=function(e,t,r){var n=this.adaptor;if("center"===t||"left"===t){var o=this.getBBox().L;n.setStyle(e,"margin-left",this.em(r+o))}if("center"===t||"right"===t){var i=this.getBBox().R;n.setStyle(e,"margin-right",this.em(-r+i))}},n.prototype.drawBBox=function(){var e=this.getBBox(),t=e.w,r=e.h,n=e.d,o=e.R,i=this.html("mjx-box",{style:{opacity:.25,"margin-left":this.em(-t-o)}},[this.html("mjx-box",{style:{height:this.em(r),width:this.em(t),"background-color":"red"}}),this.html("mjx-box",{style:{height:this.em(n),width:this.em(t),"margin-left":this.em(-t),"vertical-align":this.em(-n),"background-color":"green"}})]),a=this.chtml||this.parent.chtml,s=this.adaptor.getAttribute(a,"size");s&&this.adaptor.setAttribute(i,"size",s);var l=this.adaptor.getStyle(a,"fontSize");l&&this.adaptor.setStyle(i,"fontSize",l),this.adaptor.append(this.adaptor.parent(a),i),this.adaptor.setStyle(a,"backgroundColor","#FFEE00")},n.prototype.html=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=[]),this.jax.html(e,t,r)},n.prototype.text=function(e){return this.jax.text(e)},n.prototype.char=function(e){return this.font.charSelector(e).substr(1)},n.kind="unknown",n.autoStyle=!0,n}(c.CommonWrapper);e.CHTMLWrapper=d}(Wrapper$2),getDefaultExportFromCjs$1(Wrapper$2);var math$1={},math={},__extends$18=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function CommonMathMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$18(t,e),t.prototype.getWrapWidth=function(e){return this.parent?this.getBBox().w:this.metrics.containerWidth/this.jax.pxPerEm},t}(e)}Object.defineProperty(math,"__esModule",{value:!0}),math.CommonMathMixin=void 0,math.CommonMathMixin=CommonMathMixin;var __extends$17=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$v=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(math$1,"__esModule",{value:!0}),math$1.CHTMLmath=void 0;var Wrapper_js_1$m=Wrapper$2,math_js_1$1=math,math_js_2=math$2,BBox_js_1$4=BBox$1,CHTMLmath=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$17(t,e),t.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t);var r=this.chtml,n=this.adaptor;"block"===this.node.attributes.get("display")?(n.setAttribute(r,"display","true"),n.setAttribute(t,"display","true"),this.handleDisplay(t)):this.handleInline(t),n.addClass(r,"MJX-TEX")},t.prototype.handleDisplay=function(e){var t=this.adaptor,r=__read$v(this.getAlignShift(),2),n=r[0],o=r[1];if("center"!==n&&t.setAttribute(e,"justify",n),this.bbox.pwidth===BBox_js_1$4.BBox.fullWidth){if(t.setAttribute(e,"width","full"),this.jax.table){var i=this.jax.table.getOuterBBox(),a=i.L,s=i.w,l=i.R;"right"===n?l=Math.max(l||-o,-o):"left"===n?a=Math.max(a||o,o):"center"===n&&(s+=2*Math.abs(o));var c=this.em(Math.max(0,a+s+l));t.setStyle(e,"min-width",c),t.setStyle(this.jax.table.chtml,"min-width",c)}}else this.setIndent(this.chtml,n,o)},t.prototype.handleInline=function(e){var t=this.adaptor,r=t.getStyle(this.chtml,"margin-right");r&&(t.setStyle(this.chtml,"margin-right",""),t.setStyle(e,"margin-right",r),t.setStyle(e,"width","0"))},t.prototype.setChildPWidths=function(t,r,n){return void 0===r&&(r=null),void 0===n&&(n=!0),!!this.parent&&e.prototype.setChildPWidths.call(this,t,r,n)},t.kind=math_js_2.MmlMath.prototype.kind,t.styles={"mjx-math":{"line-height":0,"text-align":"left","text-indent":0,"font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","letter-spacing":"normal","border-collapse":"collapse","word-wrap":"normal","word-spacing":"normal","white-space":"nowrap",direction:"ltr",padding:"1px 0"},'mjx-container[jax="CHTML"][display="true"]':{display:"block","text-align":"center",margin:"1em 0"},'mjx-container[jax="CHTML"][display="true"][width="full"]':{display:"flex"},'mjx-container[jax="CHTML"][display="true"] mjx-math':{padding:0},'mjx-container[jax="CHTML"][justify="left"]':{"text-align":"left"},'mjx-container[jax="CHTML"][justify="right"]':{"text-align":"right"}},t}((0,math_js_1$1.CommonMathMixin)(Wrapper_js_1$m.CHTMLWrapper));math$1.CHTMLmath=CHTMLmath;var mi$1={},mi={},__extends$16=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function CommonMiMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$16(t,e),t.prototype.computeBBox=function(t,r){e.prototype.computeBBox.call(this,t),this.copySkewIC(t)},t}(e)}Object.defineProperty(mi,"__esModule",{value:!0}),mi.CommonMiMixin=void 0,mi.CommonMiMixin=CommonMiMixin;var __extends$15=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mi$1,"__esModule",{value:!0}),mi$1.CHTMLmi=void 0;var Wrapper_js_1$l=Wrapper$2,mi_js_1$1=mi,mi_js_2=mi$2,CHTMLmi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$15(t,e),t.kind=mi_js_2.MmlMi.prototype.kind,t}((0,mi_js_1$1.CommonMiMixin)(Wrapper_js_1$l.CHTMLWrapper));mi$1.CHTMLmi=CHTMLmi;var mo$1={},mo={},__extends$14=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$6=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$6=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$6.apply(this,arguments)},__read$u=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$e=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$p=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_a$8;Object.defineProperty(mo,"__esModule",{value:!0}),mo.CommonMoMixin=mo.DirectionVH=void 0;var BBox_js_1$3=BBox$1,string_js_1$5=string,FontData_js_1$i=FontData$2;function CommonMoMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$e([],__read$u(t),!1))||this;return n.size=null,n.isAccent=n.node.isAccent,n}return __extends$14(t,e),t.prototype.computeBBox=function(e,t){if(this.protoBBox(e),this.node.attributes.get("symmetric")&&2!==this.stretch.dir){var r=this.getCenterOffset(e);e.h+=r,e.d-=r}this.node.getProperty("mathaccent")&&(0===this.stretch.dir||this.size>=0)&&(e.w=0)},t.prototype.protoBBox=function(t){var r=0!==this.stretch.dir;r&&null===this.size&&this.getStretchedVariant([0]),r&&this.size<0||(e.prototype.computeBBox.call(this,t),this.copySkewIC(t))},t.prototype.getAccentOffset=function(){var e=BBox_js_1$3.BBox.empty();return this.protoBBox(e),-e.w/2},t.prototype.getCenterOffset=function(t){return void 0===t&&(t=null),t||(t=BBox_js_1$3.BBox.empty(),e.prototype.computeBBox.call(this,t)),(t.h+t.d)/2+this.font.params.axis_height-t.h},t.prototype.getVariant=function(){this.node.attributes.get("largeop")?this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop":this.node.attributes.getExplicit("mathvariant")||!1!==this.node.getProperty("pseudoscript")?e.prototype.getVariant.call(this):this.variant="-tex-variant"},t.prototype.canStretch=function(e){if(0!==this.stretch.dir)return this.stretch.dir===e;if(!this.node.attributes.get("stretchy"))return!1;var t=this.getText();if(1!==Array.from(t).length)return!1;var r=this.font.getDelimiter(t.codePointAt(0));return this.stretch=r&&r.dir===e?r:FontData_js_1$i.NOSTRETCH,0!==this.stretch.dir},t.prototype.getStretchedVariant=function(e,t){var r,n;if(void 0===t&&(t=!1),0!==this.stretch.dir){var o=this.getWH(e),i=this.getSize("minsize",0),a=this.getSize("maxsize",1/0),s=this.node.getProperty("mathaccent");o=Math.max(i,Math.min(a,o));var l=this.font.params.delimiterfactor/1e3,c=this.font.params.delimitershortfall,u=i||t?o:s?Math.min(o/l,o+c):Math.max(o*l,o-c),d=this.stretch,p=d.c||this.getText().codePointAt(0),m=0;if(d.sizes)try{for(var h=__values$p(d.sizes),f=h.next();!f.done;f=h.next()){if(f.value>=u)return s&&m&&m--,this.variant=this.font.getSizeVariant(p,m),this.size=m,void(d.schar&&d.schar[m]&&(this.stretch=__assign$6(__assign$6({},this.stretch),{c:d.schar[m]})));m++}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}d.stretch?(this.size=-1,this.invalidateBBox(),this.getStretchBBox(e,this.checkExtendedHeight(o,d),d)):(this.variant=this.font.getSizeVariant(p,m-1),this.size=m-1)}},t.prototype.getSize=function(e,t){var r=this.node.attributes;return r.isSet(e)&&(t=this.length2em(r.get(e),1,1)),t},t.prototype.getWH=function(e){if(0===e.length)return 0;if(1===e.length)return e[0];var t=__read$u(e,2),r=t[0],n=t[1],o=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(r-o,n+o):r+n},t.prototype.getStretchBBox=function(e,t,r){var n;r.hasOwnProperty("min")&&r.min>t&&(t=r.min);var o=__read$u(r.HDW,3),i=o[0],a=o[1],s=o[2];1===this.stretch.dir?(i=(n=__read$u(this.getBaseline(e,t,r),2))[0],a=n[1]):s=t,this.bbox.h=i,this.bbox.d=a,this.bbox.w=s},t.prototype.getBaseline=function(e,t,r){var n=2===e.length&&e[0]+e[1]===t,o=this.node.attributes.get("symmetric"),i=__read$u(n?e:[t,0],2),a=i[0],s=i[1],l=__read$u([a+s,0],2),c=l[0],u=l[1];if(o){var d=this.font.params.axis_height;n&&(c=2*Math.max(a-d,s+d)),u=c/2-d}else if(n)u=s;else{var p=__read$u(r.HDW||[.75,.25],2),m=p[0],h=p[1];u=h*(c/(m+h))}return[c-u,u]},t.prototype.checkExtendedHeight=function(e,t){if(t.fullExt){var r=__read$u(t.fullExt,2),n=r[0],o=r[1];e=o+Math.ceil(Math.max(0,e-o)/n)*n}return e},t.prototype.remapChars=function(e){var t=this.node.getProperty("primes");if(t)return(0,string_js_1$5.unicodeChars)(t);if(1===e.length){var r=this.node.coreParent().parent,n=this.isAccent&&!r.isKind("mrow")?"accent":"mo",o=this.font.getRemappedChar(n,e[0]);o&&(e=this.unicodeChars(o,this.variant))}return e},t}(e)}mo.DirectionVH=(_a$8={},_a$8[1]="v",_a$8[2]="h",_a$8),mo.CommonMoMixin=CommonMoMixin;var __extends$13=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$o=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mo$1,"__esModule",{value:!0}),mo$1.CHTMLmo=void 0;var Wrapper_js_1$k=Wrapper$2,mo_js_1$1=mo,mo_js_2=mo$2,CHTMLmo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$13(t,e),t.prototype.toCHTML=function(e){var t,r,n=this.node.attributes,o=n.get("symmetric")&&2!==this.stretch.dir,i=0!==this.stretch.dir;i&&null===this.size&&this.getStretchedVariant([]);var a=this.standardCHTMLnode(e);if(i&&this.size<0)this.stretchHTML(a);else{if(o||n.get("largeop")){var s=this.em(this.getCenterOffset());"0"!==s&&this.adaptor.setStyle(a,"verticalAlign",s)}this.node.getProperty("mathaccent")&&(this.adaptor.setStyle(a,"width","0"),this.adaptor.setStyle(a,"margin-left",this.em(this.getAccentOffset())));try{for(var l=__values$o(this.childNodes),c=l.next();!c.done;c=l.next()){c.value.toCHTML(a)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}}},t.prototype.stretchHTML=function(e){var t=this.getText().codePointAt(0);this.font.delimUsage.add(t),this.childNodes[0].markUsed();var r=this.stretch,n=r.stretch,o=[];n[0]&&o.push(this.html("mjx-beg",{},[this.html("mjx-c")])),o.push(this.html("mjx-ext",{},[this.html("mjx-c")])),4===n.length&&o.push(this.html("mjx-mid",{},[this.html("mjx-c")]),this.html("mjx-ext",{},[this.html("mjx-c")])),n[2]&&o.push(this.html("mjx-end",{},[this.html("mjx-c")]));var i={},a=this.bbox,s=a.h,l=a.d,c=a.w;1===r.dir?(o.push(this.html("mjx-mark")),i.height=this.em(s+l),i.verticalAlign=this.em(-l)):i.width=this.em(c);var u=mo_js_1$1.DirectionVH[r.dir],d={class:this.char(r.c||t),style:i},p=this.html("mjx-stretchy-"+u,d,o);this.adaptor.append(e,p)},t.kind=mo_js_2.MmlMo.prototype.kind,t.styles={"mjx-stretchy-h":{display:"inline-table",width:"100%"},"mjx-stretchy-h > *":{display:"table-cell",width:0},"mjx-stretchy-h > * > mjx-c":{display:"inline-block",transform:"scalex(1.0000001)"},"mjx-stretchy-h > * > mjx-c::before":{display:"inline-block",width:"initial"},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":"hidden","/* others */ overflow":"clip visible",width:"100%"},"mjx-stretchy-h > mjx-ext > mjx-c::before":{transform:"scalex(500)"},"mjx-stretchy-h > mjx-ext > mjx-c":{width:0},"mjx-stretchy-h > mjx-beg > mjx-c":{"margin-right":"-.1em"},"mjx-stretchy-h > mjx-end > mjx-c":{"margin-left":"-.1em"},"mjx-stretchy-v":{display:"inline-block"},"mjx-stretchy-v > *":{display:"block"},"mjx-stretchy-v > mjx-beg":{height:0},"mjx-stretchy-v > mjx-end > mjx-c":{display:"block"},"mjx-stretchy-v > * > mjx-c":{transform:"scaley(1.0000001)","transform-origin":"left center",overflow:"hidden"},"mjx-stretchy-v > mjx-ext":{display:"block",height:"100%","box-sizing":"border-box",border:"0px solid transparent","/* IE */ overflow":"hidden","/* others */ overflow":"visible clip"},"mjx-stretchy-v > mjx-ext > mjx-c::before":{width:"initial","box-sizing":"border-box"},"mjx-stretchy-v > mjx-ext > mjx-c":{transform:"scaleY(500) translateY(.075em)",overflow:"visible"},"mjx-mark":{display:"inline-block",height:"0px"}},t}((0,mo_js_1$1.CommonMoMixin)(Wrapper_js_1$k.CHTMLWrapper));mo$1.CHTMLmo=CHTMLmo;var mn$1={},mn={},__extends$12=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function CommonMnMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$12(t,e),t.prototype.remapChars=function(e){if(e.length){var t=this.font.getRemappedChar("mn",e[0]);if(t){var r=this.unicodeChars(t,this.variant);1===r.length?e[0]=r[0]:e=r.concat(e.slice(1))}}return e},t}(e)}Object.defineProperty(mn,"__esModule",{value:!0}),mn.CommonMnMixin=void 0,mn.CommonMnMixin=CommonMnMixin;var __extends$11=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mn$1,"__esModule",{value:!0}),mn$1.CHTMLmn=void 0;var Wrapper_js_1$j=Wrapper$2,mn_js_1$1=mn,mn_js_2=mn$2,CHTMLmn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$11(t,e),t.kind=mn_js_2.MmlMn.prototype.kind,t}((0,mn_js_1$1.CommonMnMixin)(Wrapper_js_1$j.CHTMLWrapper));mn$1.CHTMLmn=CHTMLmn;var ms$1={},ms={},__extends$10=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$t=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$d=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function CommonMsMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$d([],__read$t(t),!1))||this,o=n.node.attributes,i=o.getList("lquote","rquote");return"monospace"!==n.variant&&(o.isSet("lquote")||'"'!==i.lquote||(i.lquote="“"),o.isSet("rquote")||'"'!==i.rquote||(i.rquote="”")),n.childNodes.unshift(n.createText(i.lquote)),n.childNodes.push(n.createText(i.rquote)),n}return __extends$10(t,e),t.prototype.createText=function(e){var t=this.wrap(this.mmlText(e));return t.parent=this,t},t}(e)}Object.defineProperty(ms,"__esModule",{value:!0}),ms.CommonMsMixin=void 0,ms.CommonMsMixin=CommonMsMixin;var __extends$$=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ms$1,"__esModule",{value:!0}),ms$1.CHTMLms=void 0;var Wrapper_js_1$i=Wrapper$2,ms_js_1$1=ms,ms_js_2=ms$2,CHTMLms=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$$(t,e),t.kind=ms_js_2.MmlMs.prototype.kind,t}((0,ms_js_1$1.CommonMsMixin)(Wrapper_js_1$i.CHTMLWrapper));ms$1.CHTMLms=CHTMLms;var mtext$1={},mtext={},__extends$_=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function CommonMtextMixin(e){var t;return t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$_(t,e),t.prototype.getVariant=function(){var t=this.jax.options,r=this.jax.math.outputData,n=(!!r.merrorFamily||!!t.merrorFont)&&this.node.Parent.isKind("merror");if(r.mtextFamily||t.mtextFont||n){var o=this.node.attributes.get("mathvariant"),i=this.constructor.INHERITFONTS[o]||this.jax.font.getCssFont(o),a=i[0]||(n?r.merrorFamily||t.merrorFont:r.mtextFamily||t.mtextFont);this.variant=this.explicitVariant(a,i[2]?"bold":"",i[1]?"italic":"")}else e.prototype.getVariant.call(this)},t}(e),t.INHERITFONTS={normal:["",!1,!1],bold:["",!1,!0],italic:["",!0,!1],"bold-italic":["",!0,!0]},t}Object.defineProperty(mtext,"__esModule",{value:!0}),mtext.CommonMtextMixin=void 0,mtext.CommonMtextMixin=CommonMtextMixin;var __extends$Z=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mtext$1,"__esModule",{value:!0}),mtext$1.CHTMLmtext=void 0;var Wrapper_js_1$h=Wrapper$2,mtext_js_1$1=mtext,mtext_js_2=mtext$2,CHTMLmtext=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$Z(t,e),t.kind=mtext_js_2.MmlMtext.prototype.kind,t}((0,mtext_js_1$1.CommonMtextMixin)(Wrapper_js_1$h.CHTMLWrapper));mtext$1.CHTMLmtext=CHTMLmtext;var mspace$1={},mspace={},__extends$Y=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function CommonMspaceMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$Y(t,e),t.prototype.computeBBox=function(e,t){var r=this.node.attributes;e.w=this.length2em(r.get("width"),0),e.h=this.length2em(r.get("height"),0),e.d=this.length2em(r.get("depth"),0)},t.prototype.handleVariant=function(){},t}(e)}Object.defineProperty(mspace,"__esModule",{value:!0}),mspace.CommonMspaceMixin=void 0,mspace.CommonMspaceMixin=CommonMspaceMixin;var __extends$X=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mspace$1,"__esModule",{value:!0});var CHTMLmspace_1=mspace$1.CHTMLmspace=void 0,Wrapper_js_1$g=Wrapper$2,mspace_js_1$1=mspace,mspace_js_2=mspace$2,CHTMLmspace=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$X(t,e),t.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e),r=this.getBBox(),n=r.w,o=r.h,i=r.d;n<0&&(this.adaptor.setStyle(t,"marginRight",this.em(n)),n=0),n&&this.adaptor.setStyle(t,"width",this.em(n)),(o=Math.max(0,o+i))&&this.adaptor.setStyle(t,"height",this.em(Math.max(0,o))),i&&this.adaptor.setStyle(t,"verticalAlign",this.em(-i))},t.kind=mspace_js_2.MmlMspace.prototype.kind,t}((0,mspace_js_1$1.CommonMspaceMixin)(Wrapper_js_1$g.CHTMLWrapper));CHTMLmspace_1=mspace$1.CHTMLmspace=CHTMLmspace;var mpadded$1={},mpadded={},__extends$W=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$s=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function CommonMpaddedMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$W(t,e),t.prototype.getDimens=function(){var e=this.node.attributes.getList("width","height","depth","lspace","voffset"),t=this.childNodes[0].getBBox(),r=t.w,n=t.h,o=t.d,i=r,a=n,s=o,l=0,c=0,u=0;""!==e.width&&(r=this.dimen(e.width,t,"w",0)),""!==e.height&&(n=this.dimen(e.height,t,"h",0)),""!==e.depth&&(o=this.dimen(e.depth,t,"d",0)),""!==e.voffset&&(c=this.dimen(e.voffset,t)),""!==e.lspace&&(l=this.dimen(e.lspace,t));var d=this.node.attributes.get("data-align");return d&&(u=this.getAlignX(r,t,d)),[a,s,i,n-a,o-s,r-i,l,c,u]},t.prototype.dimen=function(e,t,r,n){void 0===r&&(r=""),void 0===n&&(n=null);var o=(e=String(e)).match(/width|height|depth/),i=o?t[o[0].charAt(0)]:r?t[r]:0,a=this.length2em(e,i)||0;return e.match(/^[-+]/)&&r&&(a+=i),null!=n&&(a=Math.max(n,a)),a},t.prototype.computeBBox=function(e,t){void 0===t&&(t=!1);var r=__read$s(this.getDimens(),6),n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],l=r[5];e.w=i+l,e.h=n+a,e.d=o+s,this.setChildPWidths(t,e.w)},t.prototype.getWrapWidth=function(e){return this.getBBox().w},t.prototype.getChildAlign=function(e){return this.node.attributes.get("data-align")||"left"},t}(e)}Object.defineProperty(mpadded,"__esModule",{value:!0}),mpadded.CommonMpaddedMixin=void 0,mpadded.CommonMpaddedMixin=CommonMpaddedMixin;var __extends$V=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$n=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mpadded$1,"__esModule",{value:!0}),mpadded$1.CHTMLmpadded=void 0;var Wrapper_js_1$f=Wrapper$2,mpadded_js_1$1=mpadded,mpadded_js_2=mpadded$2,CHTMLmpadded=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$V(t,e),t.prototype.toCHTML=function(e){var t,r,n=this.standardCHTMLnode(e),o=[],i={},a=__read$r(this.getDimens(),9),s=a[2],l=a[3],c=a[4],u=a[5],d=a[6],p=a[7],m=a[8];if(u&&(i.width=this.em(s+u)),(l||c)&&(i.margin=this.em(l)+" 0 "+this.em(c)),d+m||p){i.position="relative";var h=this.html("mjx-rbox",{style:{left:this.em(d+m),top:this.em(-p),"max-width":i.width}});d+m&&this.childNodes[0].getBBox().pwidth&&(this.adaptor.setAttribute(h,"width","full"),this.adaptor.setStyle(h,"left",this.em(d))),o.push(h)}n=this.adaptor.append(n,this.html("mjx-block",{style:i},o));try{for(var f=__values$n(this.childNodes),_=f.next();!_.done;_=f.next()){_.value.toCHTML(o[0]||n)}}catch(e){t={error:e}}finally{try{_&&!_.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}},t.kind=mpadded_js_2.MmlMpadded.prototype.kind,t.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}},t}((0,mpadded_js_1$1.CommonMpaddedMixin)(Wrapper_js_1$f.CHTMLWrapper));mpadded$1.CHTMLmpadded=CHTMLmpadded;var menclose$1={},menclose={},Notation$3={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonArrow=e.CommonDiagonalArrow=e.CommonDiagonalStrike=e.CommonBorder2=e.CommonBorder=e.arrowBBox=e.diagonalArrowDef=e.arrowDef=e.arrowBBoxW=e.arrowBBoxHD=e.arrowHead=e.fullBorder=e.fullPadding=e.fullBBox=e.sideNames=e.sideIndex=e.SOLID=e.PADDING=e.THICKNESS=e.ARROWY=e.ARROWDX=e.ARROWX=void 0,e.ARROWX=4,e.ARROWDX=1,e.ARROWY=2,e.THICKNESS=.067,e.PADDING=.2,e.SOLID=e.THICKNESS+"em solid",e.sideIndex={top:0,right:1,bottom:2,left:3},e.sideNames=Object.keys(e.sideIndex),e.fullBBox=function(e){return new Array(4).fill(e.thickness+e.padding)},e.fullPadding=function(e){return new Array(4).fill(e.padding)},e.fullBorder=function(e){return new Array(4).fill(e.thickness)};e.arrowHead=function(e){return Math.max(e.padding,e.thickness*(e.arrowhead.x+e.arrowhead.dx+1))};e.arrowBBoxHD=function(e,t){if(e.childNodes[0]){var r=e.childNodes[0].getBBox(),n=r.h,o=r.d;t[0]=t[2]=Math.max(0,e.thickness*e.arrowhead.y-(n+o)/2)}return t};e.arrowBBoxW=function(e,t){if(e.childNodes[0]){var r=e.childNodes[0].getBBox().w;t[1]=t[3]=Math.max(0,e.thickness*e.arrowhead.y-r/2)}return t},e.arrowDef={up:[-Math.PI/2,!1,!0,"verticalstrike"],down:[Math.PI/2,!1,!0,"verticakstrike"],right:[0,!1,!1,"horizontalstrike"],left:[Math.PI,!1,!1,"horizontalstrike"],updown:[Math.PI/2,!0,!0,"verticalstrike uparrow downarrow"],leftright:[0,!0,!1,"horizontalstrike leftarrow rightarrow"]},e.diagonalArrowDef={updiagonal:[-1,0,!1,"updiagonalstrike northeastarrow"],northeast:[-1,0,!1,"updiagonalstrike updiagonalarrow"],southeast:[1,0,!1,"downdiagonalstrike"],northwest:[1,Math.PI,!1,"downdiagonalstrike"],southwest:[-1,Math.PI,!1,"updiagonalstrike"],northeastsouthwest:[-1,0,!0,"updiagonalstrike northeastarrow updiagonalarrow southwestarrow"],northwestsoutheast:[1,0,!0,"downdiagonalstrike northwestarrow southeastarrow"]},e.arrowBBox={up:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,t.padding,0])},down:function(t){return(0,e.arrowBBoxW)(t,[t.padding,0,(0,e.arrowHead)(t),0])},right:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,t.padding])},left:function(t){return(0,e.arrowBBoxHD)(t,[0,t.padding,0,(0,e.arrowHead)(t)])},updown:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,(0,e.arrowHead)(t),0])},leftright:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,(0,e.arrowHead)(t)])}};e.CommonBorder=function(t){return function(r){var n=e.sideIndex[r];return[r,{renderer:t,bbox:function(e){var t=[0,0,0,0];return t[n]=e.thickness+e.padding,t},border:function(e){var t=[0,0,0,0];return t[n]=e.thickness,t}}]}};e.CommonBorder2=function(t){return function(r,n,o){var i=e.sideIndex[n],a=e.sideIndex[o];return[r,{renderer:t,bbox:function(e){var t=e.thickness+e.padding,r=[0,0,0,0];return r[i]=r[a]=t,r},border:function(e){var t=[0,0,0,0];return t[i]=t[a]=e.thickness,t},remove:n+" "+o}]}};e.CommonDiagonalStrike=function(t){return function(r){var n="mjx-"+r.charAt(0)+"strike";return[r+"diagonalstrike",{renderer:t(n),bbox:e.fullBBox}]}};e.CommonDiagonalArrow=function(r){return function(n){var o=t(e.diagonalArrowDef[n],4),i=o[0],a=o[1],s=o[2];return[n+"arrow",{renderer:function(e,n){var o=t(e.arrowAW(),2),l=o[0],c=o[1],u=e.arrow(c,i*(l-a),s);r(e,u)},bbox:function(e){var r=e.arrowData(),n=r.a,o=r.x,i=r.y,a=t([e.arrowhead.x,e.arrowhead.y,e.arrowhead.dx],3),s=a[0],l=a[1],c=a[2],u=t(e.getArgMod(s+c,l),2),d=u[0],p=u[1],m=i+(d>n?e.thickness*p*Math.sin(d-n):0),h=o+(d>Math.PI/2-n?e.thickness*p*Math.sin(d+n-Math.PI/2):0);return[m,h,m,h]},remove:o[3]}]}};e.CommonArrow=function(r){return function(n){var o=t(e.arrowDef[n],4),i=o[0],a=o[1],s=o[2],l=o[3];return[n+"arrow",{renderer:function(e,n){var o=e.getBBox(),l=o.w,c=o.h,u=o.d,d=t(s?[c+u,"X"]:[l,"Y"],2),p=d[0],m=d[1],h=e.getOffset(m),f=e.arrow(p,i,a,m,h);r(e,f)},bbox:e.arrowBBox[n],remove:l}]}}}(Notation$3),getDefaultExportFromCjs$1(Notation$3);var __extends$U=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__createBinding$8=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$8=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$8=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$8(t,e,r);return __setModuleDefault$8(t,e),t},__read$q=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$c=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$m=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(menclose,"__esModule",{value:!0}),menclose.CommonMencloseMixin=void 0;var Notation$2=__importStar$8(Notation$3),string_js_1$4=string;function CommonMencloseMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$c([],__read$q(t),!1))||this;return n.notations={},n.renderChild=null,n.msqrt=null,n.padding=Notation$2.PADDING,n.thickness=Notation$2.THICKNESS,n.arrowhead={x:Notation$2.ARROWX,y:Notation$2.ARROWY,dx:Notation$2.ARROWDX},n.TRBL=[0,0,0,0],n.getParameters(),n.getNotations(),n.removeRedundantNotations(),n.initializeNotations(),n.TRBL=n.getBBoxExtenders(),n}return __extends$U(t,e),t.prototype.getParameters=function(){var e=this.node.attributes,t=e.get("data-padding");void 0!==t&&(this.padding=this.length2em(t,Notation$2.PADDING));var r=e.get("data-thickness");void 0!==r&&(this.thickness=this.length2em(r,Notation$2.THICKNESS));var n=e.get("data-arrowhead");if(void 0!==n){var o=__read$q((0,string_js_1$4.split)(n),3),i=o[0],a=o[1],s=o[2];this.arrowhead={x:i?parseFloat(i):Notation$2.ARROWX,y:a?parseFloat(a):Notation$2.ARROWY,dx:s?parseFloat(s):Notation$2.ARROWDX}}},t.prototype.getNotations=function(){var e,t,r=this.constructor.notations;try{for(var n=__values$m((0,string_js_1$4.split)(this.node.attributes.get("notation"))),o=n.next();!o.done;o=n.next()){var i=o.value,a=r.get(i);a&&(this.notations[i]=a,a.renderChild&&(this.renderChild=a.renderer))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.removeRedundantNotations=function(){var e,t,r,n;try{for(var o=__values$m(Object.keys(this.notations)),i=o.next();!i.done;i=o.next()){var a=i.value;if(this.notations[a]){var s=this.notations[a].remove||"";try{for(var l=(r=void 0,__values$m(s.split(/ /))),c=l.next();!c.done;c=l.next()){var u=c.value;delete this.notations[u]}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.initializeNotations=function(){var e,t;try{for(var r=__values$m(Object.keys(this.notations)),n=r.next();!n.done;n=r.next()){var o=n.value,i=this.notations[o].init;i&&i(this)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.computeBBox=function(e,t){void 0===t&&(t=!1);var r=__read$q(this.TRBL,4),n=r[0],o=r[1],i=r[2],a=r[3],s=this.childNodes[0].getBBox();e.combine(s,a,0),e.h+=n,e.d+=i,e.w+=o,this.setChildPWidths(t)},t.prototype.getBBoxExtenders=function(){var e,t,r=[0,0,0,0];try{for(var n=__values$m(Object.keys(this.notations)),o=n.next();!o.done;o=n.next()){var i=o.value;this.maximizeEntries(r,this.notations[i].bbox(this))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},t.prototype.getPadding=function(){var e,t,r=this,n=[0,0,0,0];try{for(var o=__values$m(Object.keys(this.notations)),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.notations[a].border;s&&this.maximizeEntries(n,s(this))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return[0,1,2,3].map((function(e){return r.TRBL[e]-n[e]}))},t.prototype.maximizeEntries=function(e,t){for(var r=0;r<e.length;r++)e[r]<t[r]&&(e[r]=t[r])},t.prototype.getOffset=function(e){var t=__read$q(this.TRBL,4),r=t[0],n=t[1],o=t[2],i=t[3],a=("X"===e?n-i:o-r)/2;return Math.abs(a)>.001?a:0},t.prototype.getArgMod=function(e,t){return[Math.atan2(t,e),Math.sqrt(e*e+t*t)]},t.prototype.arrow=function(e,t,r,n,o){return null},t.prototype.arrowData=function(){var e=__read$q([this.padding,this.thickness],2),t=e[0],r=e[1]*(this.arrowhead.x+Math.max(1,this.arrowhead.dx)),n=this.childNodes[0].getBBox(),o=n.h,i=n.d,a=n.w,s=o+i,l=Math.sqrt(s*s+a*a),c=Math.max(t,r*a/l),u=Math.max(t,r*s/l),d=__read$q(this.getArgMod(a+2*c,s+2*u),2);return{a:d[0],W:d[1],x:c,y:u}},t.prototype.arrowAW=function(){var e=this.childNodes[0].getBBox(),t=e.h,r=e.d,n=e.w,o=__read$q(this.TRBL,4),i=o[0],a=o[1],s=o[2],l=o[3];return this.getArgMod(l+n+a,i+t+r+s)},t.prototype.createMsqrt=function(e){var t=this.node.factory.create("msqrt");t.inheritAttributesFrom(this.node),t.childNodes[0]=e.node;var r=this.wrap(t);return r.parent=this,r},t.prototype.sqrtTRBL=function(){var e=this.msqrt.getBBox(),t=this.msqrt.childNodes[0].getBBox();return[e.h-t.h,0,e.d-t.d,e.w-t.w]},t}(e)}menclose.CommonMencloseMixin=CommonMencloseMixin;var Notation$1={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n},o=commonjsGlobal&&commonjsGlobal.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)},i=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.Arrow=e.DiagonalArrow=e.DiagonalStrike=e.Border2=e.Border=e.RenderElement=void 0;var a=n(Notation$3);o(Notation$3,e);e.RenderElement=function(e,t){return void 0===t&&(t=""),function(r,n){var o=r.adjustBorder(r.html("mjx-"+e));if(t){var i=r.getOffset(t);if(r.thickness!==a.THICKNESS||i){var s="translate".concat(t,"(").concat(r.em(r.thickness/2-i),")");r.adaptor.setStyle(o,"transform",s)}}r.adaptor.append(r.chtml,o)}};e.Border=function(e){return a.CommonBorder((function(t,r){t.adaptor.setStyle(r,"border-"+e,t.em(t.thickness)+" solid")}))(e)};e.Border2=function(e,t,r){return a.CommonBorder2((function(e,n){var o=e.em(e.thickness)+" solid";e.adaptor.setStyle(n,"border-"+t,o),e.adaptor.setStyle(n,"border-"+r,o)}))(e,t,r)};e.DiagonalStrike=function(e,t){return a.CommonDiagonalStrike((function(e){return function(r,n){var o=r.getBBox(),a=o.w,s=o.h,l=o.d,c=i(r.getArgMod(a,s+l),2),u=c[0],d=c[1],p=t*r.thickness/2,m=r.adjustBorder(r.html(e,{style:{width:r.em(d),transform:"rotate("+r.fixed(-t*u)+"rad) translateY("+p+"em)"}}));r.adaptor.append(r.chtml,m)}}))(e)};e.DiagonalArrow=function(e){return a.CommonDiagonalArrow((function(e,t){e.adaptor.append(e.chtml,t)}))(e)};e.Arrow=function(e){return a.CommonArrow((function(e,t){e.adaptor.append(e.chtml,t)}))(e)}}(Notation$1),getDefaultExportFromCjs$1(Notation$1);var __extends$T=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__createBinding$7=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$7=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$7=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$7(t,e,r);return __setModuleDefault$7(t,e),t},__values$l=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$p=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(menclose$1,"__esModule",{value:!0}),menclose$1.CHTMLmenclose=void 0;var Wrapper_js_1$e=Wrapper$2,menclose_js_1$1=menclose,Notation=__importStar$7(Notation$1),menclose_js_2=menclose$2,lengths_js_1$2=lengths;function Angle(e,t){return Math.atan2(e,t).toFixed(3).replace(/\.?0+$/,"")}var ANGLE=Angle(Notation.ARROWDX,Notation.ARROWY),CHTMLmenclose=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$T(t,e),t.prototype.toCHTML=function(e){var t,r,n,o,i=this.adaptor,a=this.standardCHTMLnode(e),s=i.append(a,this.html("mjx-box"));this.renderChild?this.renderChild(this,s):this.childNodes[0].toCHTML(s);try{for(var l=__values$l(Object.keys(this.notations)),c=l.next();!c.done;c=l.next()){var u=c.value,d=this.notations[u];!d.renderChild&&d.renderer(this,s)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}var p=this.getPadding();try{for(var m=__values$l(Notation.sideNames),h=m.next();!h.done;h=m.next()){var f=h.value,_=Notation.sideIndex[f];p[_]>0&&i.setStyle(s,"padding-"+f,this.em(p[_]))}}catch(e){n={error:e}}finally{try{h&&!h.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}},t.prototype.arrow=function(e,t,r,n,o){void 0===n&&(n=""),void 0===o&&(o=0);var i=this.getBBox().w,a={width:this.em(e)};i!==e&&(a.left=this.em((i-e)/2)),t&&(a.transform="rotate("+this.fixed(t)+"rad)");var s=this.html("mjx-arrow",{style:a},[this.html("mjx-aline"),this.html("mjx-rthead"),this.html("mjx-rbhead")]);return r&&(this.adaptor.append(s,this.html("mjx-lthead")),this.adaptor.append(s,this.html("mjx-lbhead")),this.adaptor.setAttribute(s,"double","true")),this.adjustArrow(s,r),this.moveArrow(s,n,o),s},t.prototype.adjustArrow=function(e,t){var r=this,n=this.thickness,o=this.arrowhead;if(o.x!==Notation.ARROWX||o.y!==Notation.ARROWY||o.dx!==Notation.ARROWDX||n!==Notation.THICKNESS){var i=__read$p([n*o.x,n*o.y].map((function(e){return r.em(e)})),2),a=i[0],s=i[1],l=Angle(o.dx,o.y),c=__read$p(this.adaptor.childNodes(e),5),u=c[0],d=c[1],p=c[2],m=c[3],h=c[4];this.adjustHead(d,[s,"0","1px",a],l),this.adjustHead(p,["1px","0",s,a],"-"+l),this.adjustHead(m,[s,a,"1px","0"],"-"+l),this.adjustHead(h,["1px",a,s,"0"],l),this.adjustLine(u,n,o.x,t)}},t.prototype.adjustHead=function(e,t,r){e&&(this.adaptor.setStyle(e,"border-width",t.join(" ")),this.adaptor.setStyle(e,"transform","skewX("+r+"rad)"))},t.prototype.adjustLine=function(e,t,r,n){this.adaptor.setStyle(e,"borderTop",this.em(t)+" solid"),this.adaptor.setStyle(e,"top",this.em(-t/2)),this.adaptor.setStyle(e,"right",this.em(t*(r-1))),n&&this.adaptor.setStyle(e,"left",this.em(t*(r-1)))},t.prototype.moveArrow=function(e,t,r){if(r){var n=this.adaptor.getStyle(e,"transform");this.adaptor.setStyle(e,"transform","translate".concat(t,"(").concat(this.em(-r),")").concat(n?" "+n:""))}},t.prototype.adjustBorder=function(e){return this.thickness!==Notation.THICKNESS&&this.adaptor.setStyle(e,"borderWidth",this.em(this.thickness)),e},t.prototype.adjustThickness=function(e){return this.thickness!==Notation.THICKNESS&&this.adaptor.setStyle(e,"strokeWidth",this.fixed(this.thickness)),e},t.prototype.fixed=function(e,t){return void 0===t&&(t=3),Math.abs(e)<6e-4?"0":e.toFixed(t).replace(/\.?0+$/,"")},t.prototype.em=function(t){return e.prototype.em.call(this,t)},t.kind=menclose_js_2.MmlMenclose.prototype.kind,t.styles={"mjx-menclose":{position:"relative"},"mjx-menclose > mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":Notation.SOLID,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":Notation.SOLID,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":Notation.SOLID,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+(0,lengths_js_1$2.em)(Notation.THICKNESS/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":Notation.SOLID,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+(0,lengths_js_1$2.em)(Notation.THICKNESS/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:Notation.SOLID,"border-radius":(0,lengths_js_1$2.em)(Notation.THICKNESS+Notation.PADDING)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:Notation.SOLID,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > *":{display:"block",position:"absolute","transform-origin":"bottom","border-left":(0,lengths_js_1$2.em)(Notation.THICKNESS*Notation.ARROWX)+" solid","border-right":0,"box-sizing":"border-box"},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,lengths_js_1$2.em)(-Notation.THICKNESS/2),right:(0,lengths_js_1$2.em)(Notation.THICKNESS*(Notation.ARROWX-1)),height:0,"border-top":(0,lengths_js_1$2.em)(Notation.THICKNESS)+" solid","border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,lengths_js_1$2.em)(Notation.THICKNESS*(Notation.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:"skewX("+ANGLE+"rad)",right:0,bottom:"-1px","border-bottom":"1px solid transparent","border-top":(0,lengths_js_1$2.em)(Notation.THICKNESS*Notation.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:"skewX(-"+ANGLE+"rad)","transform-origin":"top",right:0,top:"-1px","border-top":"1px solid transparent","border-bottom":(0,lengths_js_1$2.em)(Notation.THICKNESS*Notation.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:"skewX(-"+ANGLE+"rad)",left:0,bottom:"-1px","border-left":0,"border-right":(0,lengths_js_1$2.em)(Notation.THICKNESS*Notation.ARROWX)+" solid","border-bottom":"1px solid transparent","border-top":(0,lengths_js_1$2.em)(Notation.THICKNESS*Notation.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:"skewX("+ANGLE+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":(0,lengths_js_1$2.em)(Notation.THICKNESS*Notation.ARROWX)+" solid","border-top":"1px solid transparent","border-bottom":(0,lengths_js_1$2.em)(Notation.THICKNESS*Notation.ARROWY)+" solid transparent"},"mjx-menclose > dbox":{position:"absolute",top:0,bottom:0,left:(0,lengths_js_1$2.em)(-1.5*Notation.PADDING),width:(0,lengths_js_1$2.em)(3*Notation.PADDING),border:(0,lengths_js_1$2.em)(Notation.THICKNESS)+" solid","border-radius":"50%","clip-path":"inset(0 0 0 "+(0,lengths_js_1$2.em)(1.5*Notation.PADDING)+")","box-sizing":"border-box"}},t.notations=new Map([Notation.Border("top"),Notation.Border("right"),Notation.Border("bottom"),Notation.Border("left"),Notation.Border2("actuarial","top","right"),Notation.Border2("madruwb","bottom","right"),Notation.DiagonalStrike("up",1),Notation.DiagonalStrike("down",-1),["horizontalstrike",{renderer:Notation.RenderElement("hstrike","Y"),bbox:function(e){return[0,e.padding,0,e.padding]}}],["verticalstrike",{renderer:Notation.RenderElement("vstrike","X"),bbox:function(e){return[e.padding,0,e.padding,0]}}],["box",{renderer:function(e,t){e.adaptor.setStyle(t,"border",e.em(e.thickness)+" solid")},bbox:Notation.fullBBox,border:Notation.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:Notation.RenderElement("rbox"),bbox:Notation.fullBBox}],["circle",{renderer:Notation.RenderElement("cbox"),bbox:Notation.fullBBox}],["phasorangle",{renderer:function(e,t){var r=e.getBBox(),n=r.h,o=r.d,i=__read$p(e.getArgMod(1.75*e.padding,n+o),2),a=i[0],s=i[1],l=e.thickness*Math.sin(a)*.9;e.adaptor.setStyle(t,"border-bottom",e.em(e.thickness)+" solid");var c=e.adjustBorder(e.html("mjx-ustrike",{style:{width:e.em(s),transform:"translateX("+e.em(l)+") rotate("+e.fixed(-a)+"rad)"}}));e.adaptor.append(e.chtml,c)},bbox:function(e){var t=e.padding/2,r=e.thickness;return[2*t,t,t+r,3*t+r]},border:function(e){return[0,0,e.thickness,0]},remove:"bottom"}],Notation.Arrow("up"),Notation.Arrow("down"),Notation.Arrow("left"),Notation.Arrow("right"),Notation.Arrow("updown"),Notation.Arrow("leftright"),Notation.DiagonalArrow("updiagonal"),Notation.DiagonalArrow("northeast"),Notation.DiagonalArrow("southeast"),Notation.DiagonalArrow("northwest"),Notation.DiagonalArrow("southwest"),Notation.DiagonalArrow("northeastsouthwest"),Notation.DiagonalArrow("northwestsoutheast"),["longdiv",{renderer:function(e,t){var r=e.adaptor;r.setStyle(t,"border-top",e.em(e.thickness)+" solid");var n=r.append(e.chtml,e.html("dbox")),o=e.thickness,i=e.padding;o!==Notation.THICKNESS&&r.setStyle(n,"border-width",e.em(o)),i!==Notation.PADDING&&(r.setStyle(n,"left",e.em(-1.5*i)),r.setStyle(n,"width",e.em(3*i)),r.setStyle(n,"clip-path","inset(0 0 0 "+e.em(1.5*i)+")"))},bbox:function(e){var t=e.padding,r=e.thickness;return[t+r,t,t,2*t+r/2]}}],["radical",{renderer:function(e,t){e.msqrt.toCHTML(t);var r=e.sqrtTRBL();e.adaptor.setStyle(e.msqrt.chtml,"margin",r.map((function(t){return e.em(-t)})).join(" "))},init:function(e){e.msqrt=e.createMsqrt(e.childNodes[0])},bbox:function(e){return e.sqrtTRBL()},renderChild:!0}]]),t}((0,menclose_js_1$1.CommonMencloseMixin)(Wrapper_js_1$e.CHTMLWrapper));menclose$1.CHTMLmenclose=CHTMLmenclose;var mrow$1={},mrow={},__extends$S=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$o=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$b=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$k=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mrow,"__esModule",{value:!0}),mrow.CommonInferredMrowMixin=mrow.CommonMrowMixin=void 0;var BBox_js_1$2=BBox$1;function CommonMrowMixin(e){return function(e){function t(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.apply(this,__spreadArray$b([],__read$o(n),!1))||this;i.stretchChildren();try{for(var a=__values$k(i.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.bbox.pwidth){i.bbox.pwidth=BBox_js_1$2.BBox.fullWidth;break}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i}return __extends$S(t,e),Object.defineProperty(t.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.stretchChildren=function(){var e,t,r,n,o,i,a=[];try{for(var s=__values$k(this.childNodes),l=s.next();!l.done;l=s.next()){(S=l.value).canStretch(1)&&a.push(S)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}var c=a.length,u=this.childNodes.length;if(c&&u>1){var d=0,p=0,m=c>1&&c===u;try{for(var h=__values$k(this.childNodes),f=h.next();!f.done;f=h.next()){var _=0===(S=f.value).stretch.dir;if(m||_){var g=S.getOuterBBox(_),y=g.h,b=g.d,v=g.rscale;(y*=v)>d&&(d=y),(b*=v)>p&&(p=b)}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}try{for(var x=__values$k(a),M=x.next();!M.done;M=x.next()){var S;(S=M.value).coreMO().getStretchedVariant([d,p])}}catch(e){o={error:e}}finally{try{M&&!M.done&&(i=x.return)&&i.call(x)}finally{if(o)throw o.error}}}},t}(e)}function CommonInferredMrowMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$S(t,e),t.prototype.getScale=function(){this.bbox.scale=this.parent.bbox.scale,this.bbox.rscale=1},t}(e)}mrow.CommonMrowMixin=CommonMrowMixin,mrow.CommonInferredMrowMixin=CommonInferredMrowMixin;var __extends$R=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$j=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mrow$1,"__esModule",{value:!0}),mrow$1.CHTMLinferredMrow=mrow$1.CHTMLmrow=void 0;var Wrapper_js_1$d=Wrapper$2,mrow_js_1$1=mrow,mrow_js_2=mrow,mrow_js_3=mrow$2,CHTMLmrow=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$R(t,e),t.prototype.toCHTML=function(e){var t,r,n=this.node.isInferred?this.chtml=e:this.standardCHTMLnode(e),o=!1;try{for(var i=__values$j(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s.toCHTML(n),s.bbox.w<0&&(o=!0)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}if(o){var l=this.getBBox().w;l&&(this.adaptor.setStyle(n,"width",this.em(Math.max(0,l))),l<0&&this.adaptor.setStyle(n,"marginRight",this.em(l)))}},t.kind=mrow_js_3.MmlMrow.prototype.kind,t}((0,mrow_js_1$1.CommonMrowMixin)(Wrapper_js_1$d.CHTMLWrapper));mrow$1.CHTMLmrow=CHTMLmrow;var CHTMLinferredMrow=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$R(t,e),t.kind=mrow_js_3.MmlInferredMrow.prototype.kind,t}((0,mrow_js_2.CommonInferredMrowMixin)(CHTMLmrow));mrow$1.CHTMLinferredMrow=CHTMLinferredMrow;var mfenced$1={},mfenced={},__extends$Q=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$n=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$a=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$i=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function CommonMfencedMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$a([],__read$n(t),!1))||this;return n.mrow=null,n.createMrow(),n.addMrowChildren(),n}return __extends$Q(t,e),t.prototype.createMrow=function(){var e=this.node.factory.create("inferredMrow");e.inheritAttributesFrom(this.node),this.mrow=this.wrap(e),this.mrow.parent=this},t.prototype.addMrowChildren=function(){var e,t,r=this.node,n=this.mrow;this.addMo(r.open),this.childNodes.length&&n.childNodes.push(this.childNodes[0]);var o=0;try{for(var i=__values$i(this.childNodes.slice(1)),a=i.next();!a.done;a=i.next()){var s=a.value;this.addMo(r.separators[o++]),n.childNodes.push(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.addMo(r.close),n.stretchChildren()},t.prototype.addMo=function(e){if(e){var t=this.wrap(e);this.mrow.childNodes.push(t),t.parent=this.mrow}},t.prototype.computeBBox=function(e,t){void 0===t&&(t=!1),e.updateFrom(this.mrow.getOuterBBox()),this.setChildPWidths(t)},t}(e)}Object.defineProperty(mfenced,"__esModule",{value:!0}),mfenced.CommonMfencedMixin=void 0,mfenced.CommonMfencedMixin=CommonMfencedMixin;var __extends$P=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mfenced$1,"__esModule",{value:!0}),mfenced$1.CHTMLmfenced=void 0;var Wrapper_js_1$c=Wrapper$2,mfenced_js_1$1=mfenced,mfenced_js_2=mfenced$2,CHTMLmfenced=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$P(t,e),t.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e);this.mrow.toCHTML(t)},t.kind=mfenced_js_2.MmlMfenced.prototype.kind,t}((0,mfenced_js_1$1.CommonMfencedMixin)(Wrapper_js_1$c.CHTMLWrapper));mfenced$1.CHTMLmfenced=CHTMLmfenced;var mfrac$1={},mfrac={},__extends$O=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$m=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$9=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function CommonMfracMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$9([],__read$m(t),!1))||this;if(n.bevel=null,n.pad=n.node.getProperty("withDelims")?0:n.font.params.nulldelimiterspace,n.node.attributes.get("bevelled")){var o=n.getBevelData(n.isDisplay()).H,i=n.bevel=n.createMo("/");i.node.attributes.set("symmetric",!0),i.canStretch(1),i.getStretchedVariant([o],!0)}return n}return __extends$O(t,e),t.prototype.computeBBox=function(e,t){void 0===t&&(t=!1),e.empty();var r=this.node.attributes.getList("linethickness","bevelled"),n=r.linethickness,o=r.bevelled,i=this.isDisplay(),a=null;if(o)this.getBevelledBBox(e,i);else{var s=this.length2em(String(n),.06);a=-2*this.pad,0===s?this.getAtopBBox(e,i):(this.getFractionBBox(e,i,s),a-=.2),a+=e.w}e.clean(),this.setChildPWidths(t,a)},t.prototype.getFractionBBox=function(e,t,r){var n=this.childNodes[0].getOuterBBox(),o=this.childNodes[1].getOuterBBox(),i=this.font.params.axis_height,a=this.getTUV(t,r),s=a.T,l=a.u,c=a.v;e.combine(n,0,i+s+Math.max(n.d*n.rscale,l)),e.combine(o,0,i-s-Math.max(o.h*o.rscale,c)),e.w+=2*this.pad+.2},t.prototype.getTUV=function(e,t){var r=this.font.params,n=r.axis_height,o=(e?3.5:1.5)*t;return{T:(e?3.5:1.5)*t,u:(e?r.num1:r.num2)-n-o,v:(e?r.denom1:r.denom2)+n-o}},t.prototype.getAtopBBox=function(e,t){var r=this.getUVQ(t),n=r.u,o=r.v,i=r.nbox,a=r.dbox;e.combine(i,0,n),e.combine(a,0,-o),e.w+=2*this.pad},t.prototype.getUVQ=function(e){var t=this.childNodes[0].getOuterBBox(),r=this.childNodes[1].getOuterBBox(),n=this.font.params,o=__read$m(e?[n.num1,n.denom1]:[n.num3,n.denom2],2),i=o[0],a=o[1],s=(e?7:3)*n.rule_thickness,l=i-t.d*t.scale-(r.h*r.scale-a);return l<s&&(i+=(s-l)/2,a+=(s-l)/2,l=s),{u:i,v:a,q:l,nbox:t,dbox:r}},t.prototype.getBevelledBBox=function(e,t){var r=this.getBevelData(t),n=r.u,o=r.v,i=r.delta,a=r.nbox,s=r.dbox,l=this.bevel.getOuterBBox();e.combine(a,0,n),e.combine(l,e.w-i/2,0),e.combine(s,e.w-i/2,o)},t.prototype.getBevelData=function(e){var t=this.childNodes[0].getOuterBBox(),r=this.childNodes[1].getOuterBBox(),n=e?.4:.15,o=Math.max(t.scale*(t.h+t.d),r.scale*(r.h+r.d))+2*n,i=this.font.params.axis_height;return{H:o,delta:n,u:t.scale*(t.d-t.h)/2+i+n,v:r.scale*(r.d-r.h)/2+i-n,nbox:t,dbox:r}},t.prototype.canStretch=function(e){return!1},t.prototype.isDisplay=function(){var e=this.node.attributes.getList("displaystyle","scriptlevel"),t=e.displaystyle,r=e.scriptlevel;return t&&0===r},t.prototype.getWrapWidth=function(e){var t=this.node.attributes;return t.get("bevelled")?this.childNodes[e].getOuterBBox().w:this.getBBox().w-(this.length2em(t.get("linethickness"))?.2:0)-2*this.pad},t.prototype.getChildAlign=function(e){var t=this.node.attributes;return t.get("bevelled")?"left":t.get(["numalign","denomalign"][e])},t}(e)}Object.defineProperty(mfrac,"__esModule",{value:!0}),mfrac.CommonMfracMixin=void 0,mfrac.CommonMfracMixin=CommonMfracMixin;var __extends$N=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$5=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$5=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$5.apply(this,arguments)};Object.defineProperty(mfrac$1,"__esModule",{value:!0}),mfrac$1.CHTMLmfrac=void 0;var Wrapper_js_1$b=Wrapper$2,mfrac_js_1$1=mfrac,mfrac_js_2=mfrac$2,CHTMLmfrac=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$N(t,e),t.prototype.toCHTML=function(e){this.standardCHTMLnode(e);var t=this.node.attributes.getList("linethickness","bevelled"),r=t.linethickness,n=t.bevelled,o=this.isDisplay();if(n)this.makeBevelled(o);else{var i=this.length2em(String(r),.06);0===i?this.makeAtop(o):this.makeFraction(o,i)}},t.prototype.makeFraction=function(e,t){var r,n,o=this.node.attributes.getList("numalign","denomalign"),i=o.numalign,a=o.denomalign,s=e?{type:"d"}:{},l=this.node.getProperty("withDelims")?__assign$5(__assign$5({},s),{delims:"true"}):__assign$5({},s),c="center"!==i?{align:i}:{},u="center"!==a?{align:a}:{},d=__assign$5({},s),p=__assign$5({},s),m=this.font.params;if(.06!==t){var h=m.axis_height,f=this.em(t),_=this.getTUV(e,t),g=_.T,y=_.u,b=_.v,v=(e?this.em(3*t):f)+" -.1em";s.style={height:f,"border-top":f+" solid",margin:v};var x=this.em(Math.max(0,y));p.style={height:x,"vertical-align":"-"+x},d.style={height:this.em(Math.max(0,b))},l.style={"vertical-align":this.em(h-g)}}this.adaptor.append(this.chtml,this.html("mjx-frac",l,[r=this.html("mjx-num",c,[this.html("mjx-nstrut",p)]),this.html("mjx-dbox",{},[this.html("mjx-dtable",{},[this.html("mjx-line",s),this.html("mjx-row",{},[n=this.html("mjx-den",u,[this.html("mjx-dstrut",d)])])])])])),this.childNodes[0].toCHTML(r),this.childNodes[1].toCHTML(n)},t.prototype.makeAtop=function(e){var t,r,n=this.node.attributes.getList("numalign","denomalign"),o=n.numalign,i=n.denomalign,a=e?{type:"d",atop:!0}:{atop:!0},s=this.node.getProperty("withDelims")?__assign$5(__assign$5({},a),{delims:!0}):__assign$5({},a),l="center"!==o?{align:o}:{},c="center"!==i?{align:i}:{},u=this.getUVQ(e),d=u.v,p=u.q;l.style={"padding-bottom":this.em(p)},s.style={"vertical-align":this.em(-d)},this.adaptor.append(this.chtml,this.html("mjx-frac",s,[t=this.html("mjx-num",l),r=this.html("mjx-den",c)])),this.childNodes[0].toCHTML(t),this.childNodes[1].toCHTML(r)},t.prototype.makeBevelled=function(e){var t=this.adaptor;t.setAttribute(this.chtml,"bevelled","ture");var r=t.append(this.chtml,this.html("mjx-num"));this.childNodes[0].toCHTML(r),this.bevel.toCHTML(this.chtml);var n=t.append(this.chtml,this.html("mjx-den"));this.childNodes[1].toCHTML(n);var o=this.getBevelData(e),i=o.u,a=o.v,s=o.delta,l=o.nbox,c=o.dbox;i&&t.setStyle(r,"verticalAlign",this.em(i/l.scale)),a&&t.setStyle(n,"verticalAlign",this.em(a/c.scale));var u=this.em(-s/2);t.setStyle(this.bevel.chtml,"marginLeft",u),t.setStyle(this.bevel.chtml,"marginRight",u)},t.kind=mfrac_js_2.MmlMfrac.prototype.kind,t.styles={"mjx-frac":{display:"inline-block","vertical-align":"0.17em",padding:"0 .22em"},'mjx-frac[type="d"]':{"vertical-align":".04em"},"mjx-frac[delims]":{padding:"0 .1em"},"mjx-frac[atop]":{padding:"0 .12em"},"mjx-frac[atop][delims]":{padding:"0"},"mjx-dtable":{display:"inline-table",width:"100%"},"mjx-dtable > *":{"font-size":"2000%"},"mjx-dbox":{display:"block","font-size":"5%"},"mjx-num":{display:"block","text-align":"center"},"mjx-den":{display:"block","text-align":"center"},"mjx-mfrac[bevelled] > mjx-num":{display:"inline-block"},"mjx-mfrac[bevelled] > mjx-den":{display:"inline-block"},'mjx-den[align="right"], mjx-num[align="right"]':{"text-align":"right"},'mjx-den[align="left"], mjx-num[align="left"]':{"text-align":"left"},"mjx-nstrut":{display:"inline-block",height:".054em",width:0,"vertical-align":"-.054em"},'mjx-nstrut[type="d"]':{height:".217em","vertical-align":"-.217em"},"mjx-dstrut":{display:"inline-block",height:".505em",width:0},'mjx-dstrut[type="d"]':{height:".726em"},"mjx-line":{display:"block","box-sizing":"border-box","min-height":"1px",height:".06em","border-top":".06em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}},t}((0,mfrac_js_1$1.CommonMfracMixin)(Wrapper_js_1$b.CHTMLWrapper));mfrac$1.CHTMLmfrac=CHTMLmfrac;var msqrt$1={},msqrt={},__extends$M=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$l=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$8=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(msqrt,"__esModule",{value:!0}),msqrt.CommonMsqrtMixin=void 0;var BBox_js_1$1=BBox$1;function CommonMsqrtMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$8([],__read$l(t),!1))||this,o=n.createMo("√");o.canStretch(1);var i=n.childNodes[n.base].getOuterBBox(),a=i.h,s=i.d,l=n.font.params.rule_thickness,c=n.node.attributes.get("displaystyle")?n.font.params.x_height:l;return n.surdH=a+s+2*l+c/4,o.getStretchedVariant([n.surdH-s,s],!0),n}return __extends$M(t,e),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surd",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.createMo=function(t){var r=e.prototype.createMo.call(this,t);return this.childNodes.push(r),r},t.prototype.computeBBox=function(e,t){void 0===t&&(t=!1);var r=this.childNodes[this.surd].getBBox(),n=new BBox_js_1$1.BBox(this.childNodes[this.base].getOuterBBox()),o=this.getPQ(r)[1],i=this.font.params.rule_thickness,a=n.h+o+i,s=__read$l(this.getRootDimens(r,a),1)[0];e.h=a+i,this.combineRootBBox(e,r,a),e.combine(r,s,a-r.h),e.combine(n,s+r.w,0),e.clean(),this.setChildPWidths(t)},t.prototype.combineRootBBox=function(e,t,r){},t.prototype.getPQ=function(e){var t=this.font.params.rule_thickness,r=this.node.attributes.get("displaystyle")?this.font.params.x_height:t;return[r,e.h+e.d>this.surdH?(e.h+e.d-(this.surdH-2*t-r/2))/2:t+r/4]},t.prototype.getRootDimens=function(e,t){return[0,0,0,0]},t}(e)}msqrt.CommonMsqrtMixin=CommonMsqrtMixin;var __extends$L=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$k=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(msqrt$1,"__esModule",{value:!0}),msqrt$1.CHTMLmsqrt=void 0;var Wrapper_js_1$a=Wrapper$2,msqrt_js_1$2=msqrt,msqrt_js_2=msqrt$2,CHTMLmsqrt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$L(t,e),t.prototype.toCHTML=function(e){var t,r,n,o,i=this.childNodes[this.surd],a=this.childNodes[this.base],s=i.getBBox(),l=a.getOuterBBox(),c=__read$k(this.getPQ(s),2)[1],u=this.font.params.rule_thickness,d=l.h+c+u,p=this.standardCHTMLnode(e);null!=this.root&&(n=this.adaptor.append(p,this.html("mjx-root")),o=this.childNodes[this.root]);var m=this.adaptor.append(p,this.html("mjx-sqrt",{},[t=this.html("mjx-surd"),r=this.html("mjx-box",{style:{paddingTop:this.em(c)}})]));this.addRoot(n,o,s,d),i.toCHTML(t),a.toCHTML(r),i.size<0&&this.adaptor.addClass(m,"mjx-tall")},t.prototype.addRoot=function(e,t,r,n){},t.kind=msqrt_js_2.MmlMsqrt.prototype.kind,t.styles={"mjx-root":{display:"inline-block","white-space":"nowrap"},"mjx-surd":{display:"inline-block","vertical-align":"top"},"mjx-sqrt":{display:"inline-block","padding-top":".07em"},"mjx-sqrt > mjx-box":{"border-top":".07em solid"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}},t}((0,msqrt_js_1$2.CommonMsqrtMixin)(Wrapper_js_1$a.CHTMLWrapper));msqrt$1.CHTMLmsqrt=CHTMLmsqrt;var mroot$1={},mroot={},__extends$K=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function CommonMrootMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$K(t,e),Object.defineProperty(t.prototype,"surd",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return 1},enumerable:!1,configurable:!0}),t.prototype.combineRootBBox=function(e,t,r){var n=this.childNodes[this.root].getOuterBBox(),o=this.getRootDimens(t,r)[1];e.combine(n,0,o)},t.prototype.getRootDimens=function(e,t){var r=this.childNodes[this.surd],n=this.childNodes[this.root].getOuterBBox(),o=(r.size<0?.5:.6)*e.w,i=n.w,a=n.rscale,s=Math.max(i,o/a),l=Math.max(0,s-i);return[s*a-o,this.rootHeight(n,e,r.size,t),l]},t.prototype.rootHeight=function(e,t,r,n){var o=t.h+t.d;return(r<0?1.9:.55*o)-(o-n)+Math.max(0,e.d*e.rscale)},t}(e)}Object.defineProperty(mroot,"__esModule",{value:!0}),mroot.CommonMrootMixin=void 0,mroot.CommonMrootMixin=CommonMrootMixin;var __extends$J=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$j=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(mroot$1,"__esModule",{value:!0}),mroot$1.CHTMLmroot=void 0;var msqrt_js_1$1=msqrt$1,mroot_js_1$1=mroot,mroot_js_2=mroot$2,CHTMLmroot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$J(t,e),t.prototype.addRoot=function(e,t,r,n){t.toCHTML(e);var o=__read$j(this.getRootDimens(r,n),3),i=o[0],a=o[1],s=o[2];this.adaptor.setStyle(e,"verticalAlign",this.em(a)),this.adaptor.setStyle(e,"width",this.em(i)),s&&this.adaptor.setStyle(this.adaptor.firstChild(e),"paddingLeft",this.em(s))},t.kind=mroot_js_2.MmlMroot.prototype.kind,t}((0,mroot_js_1$1.CommonMrootMixin)(msqrt_js_1$1.CHTMLmsqrt));mroot$1.CHTMLmroot=CHTMLmroot;var msubsup$1={},scriptbase$1={},scriptbase={},__extends$I=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$i=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$7=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$h=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(scriptbase,"__esModule",{value:!0}),scriptbase.CommonScriptbaseMixin=void 0;var MmlNode_js_1$b=MmlNode;function CommonScriptbaseMixin(e){var t;return t=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$7([],__read$i(t),!1))||this;n.baseScale=1,n.baseIc=0,n.baseRemoveIc=!1,n.baseIsChar=!1,n.baseHasAccentOver=null,n.baseHasAccentUnder=null,n.isLineAbove=!1,n.isLineBelow=!1,n.isMathAccent=!1;var o=n.baseCore=n.getBaseCore();return o?(n.setBaseAccentsFor(o),n.baseScale=n.getBaseScale(),n.baseIc=n.getBaseIc(),n.baseIsChar=n.isCharBase(),n.isMathAccent=n.baseIsChar&&n.scriptChild&&!!n.scriptChild.coreMO().node.getProperty("mathaccent"),n.checkLineAccents(),n.baseRemoveIc=!n.isLineAbove&&!n.isLineBelow&&(!n.constructor.useIC||n.isMathAccent),n):n}return __extends$I(t,e),Object.defineProperty(t.prototype,"baseChild",{get:function(){return this.childNodes[this.node.base]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scriptChild",{get:function(){return this.childNodes[1]},enumerable:!1,configurable:!0}),t.prototype.getBaseCore=function(){for(var e=this.getSemanticBase()||this.childNodes[0];e&&(1===e.childNodes.length&&(e.node.isKind("mrow")||e.node.isKind("TeXAtom")&&e.node.texClass!==MmlNode_js_1$b.TEXCLASS.VCENTER||e.node.isKind("mstyle")||e.node.isKind("mpadded")||e.node.isKind("mphantom")||e.node.isKind("semantics"))||e.node.isKind("munderover")&&e.isMathAccent);)this.setBaseAccentsFor(e),e=e.childNodes[0];return e||(this.baseHasAccentOver=this.baseHasAccentUnder=!1),e||this.childNodes[0]},t.prototype.setBaseAccentsFor=function(e){e.node.isKind("munderover")&&(null===this.baseHasAccentOver&&(this.baseHasAccentOver=!!e.node.attributes.get("accent")),null===this.baseHasAccentUnder&&(this.baseHasAccentUnder=!!e.node.attributes.get("accentunder")))},t.prototype.getSemanticBase=function(){var e=this.node.attributes.getExplicit("data-semantic-fencepointer");return this.getBaseFence(this.baseChild,e)},t.prototype.getBaseFence=function(e,t){var r,n;if(!e||!e.node.attributes||!t)return null;if(e.node.attributes.getExplicit("data-semantic-id")===t)return e;try{for(var o=__values$h(e.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.getBaseFence(a,t);if(s)return s}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},t.prototype.getBaseScale=function(){for(var e=this.baseCore,t=1;e&&e!==this;){t*=e.getOuterBBox().rscale,e=e.parent}return t},t.prototype.getBaseIc=function(){return this.baseCore.getOuterBBox().ic*this.baseScale},t.prototype.getAdjustedIc=function(){var e=this.baseCore.getOuterBBox();return(e.ic?1.05*e.ic+.05:0)*this.baseScale},t.prototype.isCharBase=function(){var e=this.baseCore;return(e.node.isKind("mo")&&null===e.size||e.node.isKind("mi")||e.node.isKind("mn"))&&1===e.bbox.rscale&&1===Array.from(e.getText()).length},t.prototype.checkLineAccents=function(){if(this.node.isKind("munderover"))if(this.node.isKind("mover"))this.isLineAbove=this.isLineAccent(this.scriptChild);else if(this.node.isKind("munder"))this.isLineBelow=this.isLineAccent(this.scriptChild);else{this.isLineAbove=this.isLineAccent(this.overChild),this.isLineBelow=this.isLineAccent(this.underChild)}},t.prototype.isLineAccent=function(e){var t=e.coreMO().node;return t.isToken&&"―"===t.getText()},t.prototype.getBaseWidth=function(){var e=this.baseChild.getOuterBBox();return e.w*e.rscale-(this.baseRemoveIc?this.baseIc:0)+this.font.params.extra_ic},t.prototype.computeBBox=function(e,t){void 0===t&&(t=!1);var r=this.getBaseWidth(),n=__read$i(this.getOffset(),2),o=n[0],i=n[1];e.append(this.baseChild.getOuterBBox()),e.combine(this.scriptChild.getOuterBBox(),r+o,i),e.w+=this.font.params.scriptspace,e.clean(),this.setChildPWidths(t)},t.prototype.getOffset=function(){return[0,0]},t.prototype.baseCharZero=function(e){var t=!!this.baseCore.node.attributes.get("largeop"),r=this.baseScale;return this.baseIsChar&&!t&&1===r?0:e},t.prototype.getV=function(){var e=this.baseCore.getOuterBBox(),t=this.scriptChild.getOuterBBox(),r=this.font.params,n=this.length2em(this.node.attributes.get("subscriptshift"),r.sub1);return Math.max(this.baseCharZero(e.d*this.baseScale+r.sub_drop*t.rscale),n,t.h*t.rscale-.8*r.x_height)},t.prototype.getU=function(){var e=this.baseCore.getOuterBBox(),t=this.scriptChild.getOuterBBox(),r=this.font.params,n=this.node.attributes.getList("displaystyle","superscriptshift"),o=this.node.getProperty("texprimestyle")?r.sup3:n.displaystyle?r.sup1:r.sup2,i=this.length2em(n.superscriptshift,o);return Math.max(this.baseCharZero(e.h*this.baseScale-r.sup_drop*t.rscale),i,t.d*t.rscale+1/4*r.x_height)},t.prototype.hasMovableLimits=function(){var e=this.node.attributes.get("displaystyle"),t=this.baseChild.coreMO().node;return!e&&!!t.attributes.get("movablelimits")},t.prototype.getOverKU=function(e,t){var r=this.node.attributes.get("accent"),n=this.font.params,o=t.d*t.rscale,i=n.rule_thickness*n.separation_factor,a=this.baseHasAccentOver?i:0,s=this.isLineAbove?3*n.rule_thickness:i,l=(r?s:Math.max(n.big_op_spacing1,n.big_op_spacing3-Math.max(0,o)))-a;return[l,e.h*e.rscale+l+o]},t.prototype.getUnderKV=function(e,t){var r=this.node.attributes.get("accentunder"),n=this.font.params,o=t.h*t.rscale,i=n.rule_thickness*n.separation_factor,a=this.baseHasAccentUnder?i:0,s=this.isLineBelow?3*n.rule_thickness:i,l=(r?s:Math.max(n.big_op_spacing2,n.big_op_spacing4-o))-a;return[l,-(e.d*e.rscale+l+o)]},t.prototype.getDeltaW=function(e,t){var r,n,o,i;void 0===t&&(t=[0,0,0]);var a=this.node.attributes.get("align"),s=e.map((function(e){return e.w*e.rscale}));s[0]-=this.baseRemoveIc&&!this.baseCore.node.attributes.get("largeop")?this.baseIc:0;var l=Math.max.apply(Math,__spreadArray$7([],__read$i(s),!1)),c=[],u=0;try{for(var d=__values$h(s.keys()),p=d.next();!p.done;p=d.next()){var m=p.value;c[m]=("center"===a?(l-s[m])/2:"right"===a?l-s[m]:0)+t[m],c[m]<u&&(u=-c[m])}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}if(u)try{for(var h=__values$h(c.keys()),f=h.next();!f.done;f=h.next()){m=f.value;c[m]+=u}}catch(e){o={error:e}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}return[1,2].map((function(t){return c[t]+=e[t]?e[t].dx*e[0].scale:0})),c},t.prototype.getDelta=function(e){void 0===e&&(e=!1);var t=this.node.attributes.get("accent"),r=this.baseCore.getOuterBBox(),n=r.sk,o=r.ic;return((t&&!e?n:0)+this.font.skewIcFactor*o)*this.baseScale},t.prototype.stretchChildren=function(){var e,t,r,n,o,i,a=[];try{for(var s=__values$h(this.childNodes),l=s.next();!l.done;l=s.next()){(x=l.value).canStretch(2)&&a.push(x)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}var c=a.length,u=this.childNodes.length;if(c&&u>1){var d=0,p=c>1&&c===u;try{for(var m=__values$h(this.childNodes),h=m.next();!h.done;h=m.next()){var f=0===(x=h.value).stretch.dir;if(p||f){var _=x.getOuterBBox(f),g=_.w,y=_.rscale;g*y>d&&(d=g*y)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}try{for(var b=__values$h(a),v=b.next();!v.done;v=b.next()){var x;(x=v.value).coreMO().getStretchedVariant([d/x.bbox.rscale])}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}}},t}(e),t.useIC=!0,t}scriptbase.CommonScriptbaseMixin=CommonScriptbaseMixin;var __extends$H=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$h=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$g=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(scriptbase$1,"__esModule",{value:!0}),scriptbase$1.CHTMLscriptbase=void 0;var Wrapper_js_1$9=Wrapper$2,scriptbase_js_1$1=scriptbase,CHTMLscriptbase=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$H(t,e),t.prototype.toCHTML=function(e){this.chtml=this.standardCHTMLnode(e);var t=__read$h(this.getOffset(),2),r=t[0],n=t[1],o=r-(this.baseRemoveIc?this.baseIc:0),i={"vertical-align":this.em(n)};o&&(i["margin-left"]=this.em(o)),this.baseChild.toCHTML(this.chtml),this.scriptChild.toCHTML(this.adaptor.append(this.chtml,this.html("mjx-script",{style:i})))},t.prototype.setDeltaW=function(e,t){for(var r=0;r<t.length;r++)t[r]&&this.adaptor.setStyle(e[r],"paddingLeft",this.em(t[r]))},t.prototype.adjustOverDepth=function(e,t){t.d>=0||this.adaptor.setStyle(e,"marginBottom",this.em(t.d*t.rscale))},t.prototype.adjustUnderDepth=function(e,t){var r,n;if(!(t.d>=0)){var o=this.adaptor,i=this.em(t.d),a=this.html("mjx-box",{style:{"margin-bottom":i,"vertical-align":i}});try{for(var s=__values$g(o.childNodes(o.firstChild(e))),l=s.next();!l.done;l=s.next()){var c=l.value;o.append(a,c)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}o.append(o.firstChild(e),a)}},t.prototype.adjustBaseHeight=function(e,t){if(this.node.attributes.get("accent")){var r=this.font.params.x_height*t.scale;t.h<r&&(this.adaptor.setStyle(e,"paddingTop",this.em(r-t.h)),t.h=r)}},t.kind="scriptbase",t}((0,scriptbase_js_1$1.CommonScriptbaseMixin)(Wrapper_js_1$9.CHTMLWrapper));scriptbase$1.CHTMLscriptbase=CHTMLscriptbase;var msubsup={},__extends$G=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$g=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function CommonMsubMixin(e){var t;return t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$G(t,e),Object.defineProperty(t.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),t.prototype.getOffset=function(){return[0,-this.getV()]},t}(e),t.useIC=!1,t}function CommonMsupMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$G(t,e),Object.defineProperty(t.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),t.prototype.getOffset=function(){return[this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc),this.getU()]},t}(e)}function CommonMsubsupMixin(e){var t;return t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.UVQ=null,t}return __extends$G(t,e),Object.defineProperty(t.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),t.prototype.computeBBox=function(e,t){void 0===t&&(t=!1);var r=this.baseChild.getOuterBBox(),n=__read$g([this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],2),o=n[0],i=n[1];e.empty(),e.append(r);var a=this.getBaseWidth(),s=this.getAdjustedIc(),l=__read$g(this.getUVQ(),2),c=l[0],u=l[1];e.combine(o,a,u),e.combine(i,a+s,c),e.w+=this.font.params.scriptspace,e.clean(),this.setChildPWidths(t)},t.prototype.getUVQ=function(e,t){void 0===e&&(e=this.subChild.getOuterBBox()),void 0===t&&(t=this.supChild.getOuterBBox());var r=this.baseCore.getOuterBBox();if(this.UVQ)return this.UVQ;var n=this.font.params,o=3*n.rule_thickness,i=this.length2em(this.node.attributes.get("subscriptshift"),n.sub2),a=this.baseCharZero(r.d*this.baseScale+n.sub_drop*e.rscale),s=__read$g([this.getU(),Math.max(a,i)],2),l=s[0],c=s[1],u=l-t.d*t.rscale-(e.h*e.rscale-c);if(u<o){c+=o-u;var d=.8*n.x_height-(l-t.d*t.rscale);d>0&&(l+=d,c-=d)}return l=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),l),l),c=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),c),c),u=l-t.d*t.rscale-(e.h*e.rscale-c),this.UVQ=[l,-c,u],this.UVQ},t}(e),t.useIC=!1,t}Object.defineProperty(msubsup,"__esModule",{value:!0}),msubsup.CommonMsubsupMixin=msubsup.CommonMsupMixin=msubsup.CommonMsubMixin=void 0,msubsup.CommonMsubMixin=CommonMsubMixin,msubsup.CommonMsupMixin=CommonMsupMixin,msubsup.CommonMsubsupMixin=CommonMsubsupMixin;var __extends$F=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$f=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(msubsup$1,"__esModule",{value:!0}),msubsup$1.CHTMLmsubsup=msubsup$1.CHTMLmsup=msubsup$1.CHTMLmsub=void 0;var scriptbase_js_1=scriptbase$1,msubsup_js_1$3=msubsup,msubsup_js_2=msubsup,msubsup_js_3=msubsup,msubsup_js_4=msubsup$2,CHTMLmsub=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$F(t,e),t.kind=msubsup_js_4.MmlMsub.prototype.kind,t}((0,msubsup_js_1$3.CommonMsubMixin)(scriptbase_js_1.CHTMLscriptbase));msubsup$1.CHTMLmsub=CHTMLmsub;var CHTMLmsup=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$F(t,e),t.kind=msubsup_js_4.MmlMsup.prototype.kind,t}((0,msubsup_js_2.CommonMsupMixin)(scriptbase_js_1.CHTMLscriptbase));msubsup$1.CHTMLmsup=CHTMLmsup;var CHTMLmsubsup=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$F(t,e),t.prototype.toCHTML=function(e){var t=this.adaptor,r=this.standardCHTMLnode(e),n=__read$f([this.baseChild,this.supChild,this.subChild],3),o=n[0],i=n[1],a=n[2],s=__read$f(this.getUVQ(),3),l=s[1],c=s[2],u={"vertical-align":this.em(l)};o.toCHTML(r);var d=t.append(r,this.html("mjx-script",{style:u}));i.toCHTML(d),t.append(d,this.html("mjx-spacer",{style:{"margin-top":this.em(c)}})),a.toCHTML(d);var p=this.getAdjustedIc();p&&t.setStyle(i.chtml,"marginLeft",this.em(p/i.bbox.rscale)),this.baseRemoveIc&&t.setStyle(d,"marginLeft",this.em(-this.baseIc))},t.kind=msubsup_js_4.MmlMsubsup.prototype.kind,t.styles={"mjx-script":{display:"inline-block","padding-right":".05em","padding-left":".033em"},"mjx-script > mjx-spacer":{display:"block"}},t}((0,msubsup_js_3.CommonMsubsupMixin)(scriptbase_js_1.CHTMLscriptbase));msubsup$1.CHTMLmsubsup=CHTMLmsubsup;var munderover$1={},munderover={},__extends$E=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$e=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$6=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function CommonMunderMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$6([],__read$e(t),!1))||this;return n.stretchChildren(),n}return __extends$E(t,e),Object.defineProperty(t.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),t.prototype.computeBBox=function(t,r){if(void 0===r&&(r=!1),this.hasMovableLimits())e.prototype.computeBBox.call(this,t,r);else{t.empty();var n=this.baseChild.getOuterBBox(),o=this.scriptChild.getOuterBBox(),i=this.getUnderKV(n,o)[1],a=this.isLineBelow?0:this.getDelta(!0),s=__read$e(this.getDeltaW([n,o],[0,-a]),2),l=s[0],c=s[1];t.combine(n,l,0),t.combine(o,c,i),t.d+=this.font.params.big_op_spacing5,t.clean(),this.setChildPWidths(r)}},t}(e)}function CommonMoverMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$6([],__read$e(t),!1))||this;return n.stretchChildren(),n}return __extends$E(t,e),Object.defineProperty(t.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),t.prototype.computeBBox=function(t){if(this.hasMovableLimits())e.prototype.computeBBox.call(this,t);else{t.empty();var r=this.baseChild.getOuterBBox(),n=this.scriptChild.getOuterBBox();this.node.attributes.get("accent")&&(r.h=Math.max(r.h,this.font.params.x_height*r.scale));var o=this.getOverKU(r,n)[1],i=this.isLineAbove?0:this.getDelta(),a=__read$e(this.getDeltaW([r,n],[0,i]),2),s=a[0],l=a[1];t.combine(r,s,0),t.combine(n,l,o),t.h+=this.font.params.big_op_spacing5,t.clean()}},t}(e)}function CommonMunderoverMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$6([],__read$e(t),!1))||this;return n.stretchChildren(),n}return __extends$E(t,e),Object.defineProperty(t.prototype,"underChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subChild",{get:function(){return this.underChild},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supChild",{get:function(){return this.overChild},enumerable:!1,configurable:!0}),t.prototype.computeBBox=function(t){if(this.hasMovableLimits())e.prototype.computeBBox.call(this,t);else{t.empty();var r=this.overChild.getOuterBBox(),n=this.baseChild.getOuterBBox(),o=this.underChild.getOuterBBox();this.node.attributes.get("accent")&&(n.h=Math.max(n.h,this.font.params.x_height*n.scale));var i=this.getOverKU(n,r)[1],a=this.getUnderKV(n,o)[1],s=this.getDelta(),l=__read$e(this.getDeltaW([n,o,r],[0,this.isLineBelow?0:-s,this.isLineAbove?0:s]),3),c=l[0],u=l[1],d=l[2];t.combine(n,c,0),t.combine(r,d,i),t.combine(o,u,a);var p=this.font.params.big_op_spacing5;t.h+=p,t.d+=p,t.clean()}},t}(e)}Object.defineProperty(munderover,"__esModule",{value:!0}),munderover.CommonMunderoverMixin=munderover.CommonMoverMixin=munderover.CommonMunderMixin=void 0,munderover.CommonMunderMixin=CommonMunderMixin,munderover.CommonMoverMixin=CommonMoverMixin,munderover.CommonMunderoverMixin=CommonMunderoverMixin;var __extends$D=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(munderover$1,"__esModule",{value:!0}),munderover$1.CHTMLmunderover=munderover$1.CHTMLmover=munderover$1.CHTMLmunder=void 0;var msubsup_js_1$2=msubsup$1,munderover_js_1$1=munderover,munderover_js_2=munderover,munderover_js_3=munderover,munderover_js_4=munderover$2,CHTMLmunder=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$D(t,e),t.prototype.toCHTML=function(t){if(this.hasMovableLimits())return e.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var r=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-base")),n=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-under"));this.baseChild.toCHTML(r),this.scriptChild.toCHTML(n);var o=this.baseChild.getOuterBBox(),i=this.scriptChild.getOuterBBox(),a=this.getUnderKV(o,i)[0],s=this.isLineBelow?0:this.getDelta(!0);this.adaptor.setStyle(n,"paddingTop",this.em(a)),this.setDeltaW([r,n],this.getDeltaW([o,i],[0,-s])),this.adjustUnderDepth(n,i)},t.kind=munderover_js_4.MmlMunder.prototype.kind,t.styles={"mjx-over":{"text-align":"left"},'mjx-munder:not([limits="false"])':{display:"inline-table"},"mjx-munder > mjx-row":{"text-align":"left"},"mjx-under":{"padding-bottom":".1em"}},t}((0,munderover_js_1$1.CommonMunderMixin)(msubsup_js_1$2.CHTMLmsub));munderover$1.CHTMLmunder=CHTMLmunder;var CHTMLmover=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$D(t,e),t.prototype.toCHTML=function(t){if(this.hasMovableLimits())return e.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var r=this.adaptor.append(this.chtml,this.html("mjx-over")),n=this.adaptor.append(this.chtml,this.html("mjx-base"));this.scriptChild.toCHTML(r),this.baseChild.toCHTML(n);var o=this.scriptChild.getOuterBBox(),i=this.baseChild.getOuterBBox();this.adjustBaseHeight(n,i);var a=this.getOverKU(i,o)[0],s=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(a)),this.setDeltaW([n,r],this.getDeltaW([i,o],[0,s])),this.adjustOverDepth(r,o)},t.kind=munderover_js_4.MmlMover.prototype.kind,t.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},'mjx-mover:not([limits="false"]) > *':{display:"block","text-align":"left"}},t}((0,munderover_js_2.CommonMoverMixin)(msubsup_js_1$2.CHTMLmsup));munderover$1.CHTMLmover=CHTMLmover;var CHTMLmunderover=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$D(t,e),t.prototype.toCHTML=function(t){if(this.hasMovableLimits())return e.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var r=this.adaptor.append(this.chtml,this.html("mjx-over")),n=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-box")),this.html("mjx-munder")),o=this.adaptor.append(this.adaptor.append(n,this.html("mjx-row")),this.html("mjx-base")),i=this.adaptor.append(this.adaptor.append(n,this.html("mjx-row")),this.html("mjx-under"));this.overChild.toCHTML(r),this.baseChild.toCHTML(o),this.underChild.toCHTML(i);var a=this.overChild.getOuterBBox(),s=this.baseChild.getOuterBBox(),l=this.underChild.getOuterBBox();this.adjustBaseHeight(o,s);var c=this.getOverKU(s,a)[0],u=this.getUnderKV(s,l)[0],d=this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(c)),this.adaptor.setStyle(i,"paddingTop",this.em(u)),this.setDeltaW([o,i,r],this.getDeltaW([s,l,a],[0,this.isLineBelow?0:-d,this.isLineAbove?0:d])),this.adjustOverDepth(r,a),this.adjustUnderDepth(i,l)},t.prototype.markUsed=function(){e.prototype.markUsed.call(this),this.jax.wrapperUsage.add(msubsup_js_1$2.CHTMLmsubsup.kind)},t.kind=munderover_js_4.MmlMunderover.prototype.kind,t.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},'mjx-munderover:not([limits="false"]) > *':{display:"block"}},t}((0,munderover_js_3.CommonMunderoverMixin)(msubsup_js_1$2.CHTMLmsubsup));munderover$1.CHTMLmunderover=CHTMLmunderover;var mmultiscripts$1={},mmultiscripts={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},o=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMmultiscriptsMixin=e.ScriptNames=e.NextScript=void 0;var i=BBox$1;e.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"},e.ScriptNames=["sup","sup","psup","psub"],e.CommonMmultiscriptsMixin=function(a){return function(a){function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=a.apply(this,n([],r(e),!1))||this;return o.scriptData=null,o.firstPrescript=0,o.getScriptData(),o}return t(s,a),s.prototype.combinePrePost=function(e,t){var r=new i.BBox(e);return r.combine(t,0,0),r},s.prototype.computeBBox=function(e,t){void 0===t&&(t=!1);var n=this.font.params.scriptspace,o=this.scriptData,i=this.combinePrePost(o.sub,o.psub),a=this.combinePrePost(o.sup,o.psup),s=r(this.getUVQ(i,a),2),l=s[0],c=s[1];if(e.empty(),o.numPrescripts&&(e.combine(o.psup,n,l),e.combine(o.psub,n,c)),e.append(o.base),o.numScripts){var u=e.w;e.combine(o.sup,u,l),e.combine(o.sub,u,c),e.w+=n}e.clean(),this.setChildPWidths(t)},s.prototype.getScriptData=function(){var e=this.scriptData={base:null,sub:i.BBox.empty(),sup:i.BBox.empty(),psub:i.BBox.empty(),psup:i.BBox.empty(),numPrescripts:0,numScripts:0},t=this.getScriptBBoxLists();this.combineBBoxLists(e.sub,e.sup,t.subList,t.supList),this.combineBBoxLists(e.psub,e.psup,t.psubList,t.psupList),e.base=t.base[0],e.numPrescripts=t.psubList.length,e.numScripts=t.subList.length},s.prototype.getScriptBBoxLists=function(){var t,r,n={base:[],subList:[],supList:[],psubList:[],psupList:[]},i="base";try{for(var a=o(this.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;l.node.isKind("mprescripts")?i="psubList":(n[i].push(l.getOuterBBox()),i=e.NextScript[i])}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return this.firstPrescript=n.subList.length+n.supList.length+2,this.padLists(n.subList,n.supList),this.padLists(n.psubList,n.psupList),n},s.prototype.padLists=function(e,t){e.length>t.length&&t.push(i.BBox.empty())},s.prototype.combineBBoxLists=function(e,t,n,o){for(var i=0;i<n.length;i++){var a=r(this.getScaledWHD(n[i]),3),s=a[0],l=a[1],c=a[2],u=r(this.getScaledWHD(o[i]),3),d=u[0],p=u[1],m=u[2],h=Math.max(s,d);e.w+=h,t.w+=h,l>e.h&&(e.h=l),c>e.d&&(e.d=c),p>t.h&&(t.h=p),m>t.d&&(t.d=m)}},s.prototype.getScaledWHD=function(e){var t=e.w,r=e.h,n=e.d,o=e.rscale;return[t*o,r*o,n*o]},s.prototype.getUVQ=function(e,t){var n;if(!this.UVQ){var o=r([0,0,0],3),i=o[0],s=o[1],l=o[2];0===e.h&&0===e.d?i=this.getU():0===t.h&&0===t.d?i=-this.getV():(i=(n=r(a.prototype.getUVQ.call(this,e,t),3))[0],s=n[1],l=n[2]),this.UVQ=[i,s,l]}return this.UVQ},s}(a)}}(mmultiscripts),getDefaultExportFromCjs$1(mmultiscripts);var __extends$C=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$d=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(mmultiscripts$1,"__esModule",{value:!0}),mmultiscripts$1.CHTMLmmultiscripts=void 0;var msubsup_js_1$1=msubsup$1,mmultiscripts_js_1$1=mmultiscripts,mmultiscripts_js_2=mmultiscripts$2,string_js_1$3=string,CHTMLmmultiscripts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$C(t,e),t.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e),r=this.scriptData,n=this.node.getProperty("scriptalign")||"right left",o=__read$d((0,string_js_1$3.split)(n+" "+n),2),i=o[0],a=o[1],s=this.combinePrePost(r.sub,r.psub),l=this.combinePrePost(r.sup,r.psup),c=__read$d(this.getUVQ(s,l),2),u=c[0],d=c[1];if(r.numPrescripts){var p=this.addScripts(u,-d,!0,r.psub,r.psup,this.firstPrescript,r.numPrescripts);"right"!==i&&this.adaptor.setAttribute(p,"script-align",i)}if(this.childNodes[0].toCHTML(t),r.numScripts){p=this.addScripts(u,-d,!1,r.sub,r.sup,1,r.numScripts);"left"!==a&&this.adaptor.setAttribute(p,"script-align",a)}},t.prototype.addScripts=function(e,t,r,n,o,i,a){for(var s=this.adaptor,l=e-o.d+(t-n.h),c=e<0&&0===t?n.h+e:e,u=l>0?{style:{height:this.em(l)}}:{},d=c?{style:{"vertical-align":this.em(c)}}:{},p=this.html("mjx-row"),m=this.html("mjx-row",u),h=this.html("mjx-row"),f="mjx-"+(r?"pre":"")+"scripts",_=i+2*a;i<_;)this.childNodes[i++].toCHTML(s.append(h,this.html("mjx-cell"))),this.childNodes[i++].toCHTML(s.append(p,this.html("mjx-cell")));return s.append(this.chtml,this.html(f,d,[p,m,h]))},t.kind=mmultiscripts_js_2.MmlMmultiscripts.prototype.kind,t.styles={"mjx-prescripts":{display:"inline-table","padding-left":".05em"},"mjx-scripts":{display:"inline-table","padding-right":".05em"},"mjx-prescripts > mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"}},t}((0,mmultiscripts_js_1$1.CommonMmultiscriptsMixin)(msubsup_js_1$1.CHTMLmsubsup));mmultiscripts$1.CHTMLmmultiscripts=CHTMLmmultiscripts;var mtable$1={},mtable={},numeric={};function sum(e){return e.reduce((function(e,t){return e+t}),0)}function max(e){return e.reduce((function(e,t){return Math.max(e,t)}),0)}Object.defineProperty(numeric,"__esModule",{value:!0}),numeric.max=numeric.sum=void 0,numeric.sum=sum,numeric.max=max;var __extends$B=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$c=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$5=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__values$f=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mtable,"__esModule",{value:!0}),mtable.CommonMtableMixin=void 0;var BBox_js_1=BBox$1,string_js_1$2=string,numeric_js_1=numeric;function CommonMtableMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$5([],__read$c(t),!1))||this;n.numCols=0,n.numRows=0,n.data=null,n.pwidthCells=[],n.pWidth=0,n.numCols=(0,numeric_js_1.max)(n.tableRows.map((function(e){return e.numCells}))),n.numRows=n.childNodes.length,n.hasLabels=n.childNodes.reduce((function(e,t){return e||t.node.isKind("mlabeledtr")}),!1),n.findContainer(),n.isTop=!n.container||n.container.node.isKind("math")&&!n.container.parent,n.isTop&&(n.jax.table=n),n.getPercentageWidth();var o=n.node.attributes;return n.frame="none"!==o.get("frame"),n.fLine=n.frame&&o.get("frame")?.07:0,n.fSpace=n.frame?n.convertLengths(n.getAttributeArray("framespacing")):[0,0],n.cSpace=n.convertLengths(n.getColumnAttributes("columnspacing")),n.rSpace=n.convertLengths(n.getRowAttributes("rowspacing")),n.cLines=n.getColumnAttributes("columnlines").map((function(e){return"none"===e?0:.07})),n.rLines=n.getRowAttributes("rowlines").map((function(e){return"none"===e?0:.07})),n.cWidths=n.getColumnWidths(),n.stretchRows(),n.stretchColumns(),n}return __extends$B(t,e),Object.defineProperty(t.prototype,"tableRows",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),t.prototype.findContainer=function(){for(var e=this,t=e.parent;t&&(t.node.notParent||t.node.isKind("mrow"));)e=t,t=t.parent;this.container=t,this.containerI=e.node.childPosition()},t.prototype.getPercentageWidth=function(){if(this.hasLabels)this.bbox.pwidth=BBox_js_1.BBox.fullWidth;else{var e=this.node.attributes.get("width");(0,string_js_1$2.isPercent)(e)&&(this.bbox.pwidth=e)}},t.prototype.stretchRows=function(){for(var e=this.node.attributes.get("equalrows"),t=e?this.getEqualRowHeight():0,r=e?this.getTableData():{H:[0],D:[0]},n=r.H,o=r.D,i=this.tableRows,a=0;a<this.numRows;a++){var s=e?[(t+n[a]-o[a])/2,(t-n[a]+o[a])/2]:null;i[a].stretchChildren(s)}},t.prototype.stretchColumns=function(){for(var e=0;e<this.numCols;e++){var t="number"==typeof this.cWidths[e]?this.cWidths[e]:null;this.stretchColumn(e,t)}},t.prototype.stretchColumn=function(e,t){var r,n,o,i,a,s,l=[];try{for(var c=__values$f(this.tableRows),u=c.next();!u.done;u=c.next()){if(_=u.value.getChild(e))0===(x=_.childNodes[0]).stretch.dir&&x.canStretch(2)&&l.push(x)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}var d=l.length,p=this.childNodes.length;if(d&&p>1){if(null===t){t=0;var m=d>1&&d===p;try{for(var h=__values$f(this.tableRows),f=h.next();!f.done;f=h.next()){var _;if(_=f.value.getChild(e)){var g=0===(x=_.childNodes[0]).stretch.dir;if(m||g){var y=x.getBBox(g).w;y>t&&(t=y)}}}}catch(e){o={error:e}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}}try{for(var b=__values$f(l),v=b.next();!v.done;v=b.next()){var x;(x=v.value).coreMO().getStretchedVariant([t])}}catch(e){a={error:e}}finally{try{v&&!v.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}},t.prototype.getTableData=function(){if(this.data)return this.data;for(var e=new Array(this.numRows).fill(0),t=new Array(this.numRows).fill(0),r=new Array(this.numCols).fill(0),n=new Array(this.numRows),o=new Array(this.numRows),i=[0],a=this.tableRows,s=0;s<a.length;s++){for(var l=0,c=a[s],u=c.node.attributes.get("rowalign"),d=0;d<c.numCells;d++){var p=c.getChild(d);l=this.updateHDW(p,d,s,u,e,t,r,l),this.recordPWidthCell(p,d)}n[s]=e[s],o[s]=t[s],c.labeled&&(l=this.updateHDW(c.childNodes[0],0,s,u,e,t,i,l)),this.extendHD(s,e,t,l),this.extendHD(s,n,o,l)}var m=i[0];return this.data={H:e,D:t,W:r,NH:n,ND:o,L:m},this.data},t.prototype.updateHDW=function(e,t,r,n,o,i,a,s){var l=e.getBBox(),c=l.h,u=l.d,d=l.w,p=e.parent.bbox.rscale;1!==e.parent.bbox.rscale&&(c*=p,u*=p,d*=p),this.node.getProperty("useHeight")&&(c<.75&&(c=.75),u<.25&&(u=.25));var m=0;return"baseline"!==(n=e.node.attributes.get("rowalign")||n)&&"axis"!==n&&(m=c+u,c=u=0),c>o[r]&&(o[r]=c),u>i[r]&&(i[r]=u),m>s&&(s=m),a&&d>a[t]&&(a[t]=d),s},t.prototype.extendHD=function(e,t,r,n){var o=(n-(t[e]+r[e]))/2;o<1e-5||(t[e]+=o,r[e]+=o)},t.prototype.recordPWidthCell=function(e,t){e.childNodes[0]&&e.childNodes[0].getBBox().pwidth&&this.pwidthCells.push([e,t])},t.prototype.computeBBox=function(e,t){var r,n,o=this.getTableData(),i=o.H,a=o.D;if(this.node.attributes.get("equalrows")){var s=this.getEqualRowHeight();r=(0,numeric_js_1.sum)([].concat(this.rLines,this.rSpace))+s*this.numRows}else r=(0,numeric_js_1.sum)(i.concat(a,this.rLines,this.rSpace));r+=2*(this.fLine+this.fSpace[1]);var l=this.getComputedWidths();n=(0,numeric_js_1.sum)(l.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);var c=this.node.attributes.get("width");"auto"!==c&&(n=Math.max(this.length2em(c,0)+2*this.fLine,n));var u=__read$c(this.getBBoxHD(r),2),d=u[0],p=u[1];e.h=d,e.d=p,e.w=n;var m=__read$c(this.getBBoxLR(),2),h=m[0],f=m[1];e.L=h,e.R=f,(0,string_js_1$2.isPercent)(c)||this.setColumnPWidths()},t.prototype.setChildPWidths=function(e,t,r){var n=this.node.attributes.get("width");if(!(0,string_js_1$2.isPercent)(n))return!1;this.hasLabels||(this.bbox.pwidth="",this.container.bbox.pwidth="");var o=this.bbox,i=o.w,a=o.L,s=o.R,l=this.node.attributes.get("data-width-includes-label"),c=Math.max(i,this.length2em(n,Math.max(t,a+i+s)))-(l?a+s:0),u=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0);this.cWidths=this.getColumnWidthsFixed(u,c);var d=this.getComputedWidths();return this.pWidth=(0,numeric_js_1.sum)(d.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]),this.isTop&&(this.bbox.w=this.pWidth),this.setColumnPWidths(),this.pWidth!==i&&this.parent.invalidateBBox(),this.pWidth!==i},t.prototype.setColumnPWidths=function(){var e,t,r=this.cWidths;try{for(var n=__values$f(this.pwidthCells),o=n.next();!o.done;o=n.next()){var i=__read$c(o.value,2),a=i[0],s=i[1];a.setChildPWidths(!1,r[s])&&(a.invalidateBBox(),a.getBBox())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.getBBoxHD=function(e){var t=__read$c(this.getAlignmentRow(),2),r=t[0],n=t[1];if(null===n){var o=this.font.params.axis_height,i=e/2;return{top:[0,e],center:[i,i],bottom:[e,0],baseline:[i,i],axis:[i+o,i-o]}[r]||[i,i]}var a=this.getVerticalPosition(n,r);return[a,e-a]},t.prototype.getBBoxLR=function(){if(this.hasLabels){var e=this.node.attributes,t=e.get("side"),r=__read$c(this.getPadAlignShift(t),2),n=r[0],o=r[1],i=this.hasLabels&&!!e.get("data-width-includes-label");return i&&this.frame&&this.fSpace[0]&&(n-=this.fSpace[0]),"center"!==o||i?"left"===t?[n,0]:[0,n]:[n,n]}return[0,0]},t.prototype.getPadAlignShift=function(e){var t=this.getTableData().L+this.length2em(this.node.attributes.get("minlabelspacing")),r=__read$c(null==this.styles?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),n=r[0],o=r[1];(n||o)&&(t=Math.max(t,this.length2em(n||"0"),this.length2em(o||"0")));var i=__read$c(this.getAlignShift(),2),a=i[0],s=i[1];return a===e&&(s="left"===e?Math.max(t,s)-t:Math.min(-t,s)+t),[t,a,s]},t.prototype.getAlignShift=function(){return this.isTop?e.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]},t.prototype.getWidth=function(){return this.pWidth||this.getBBox().w},t.prototype.getEqualRowHeight=function(){var e=this.getTableData(),t=e.H,r=e.D,n=Array.from(t.keys()).map((function(e){return t[e]+r[e]}));return Math.max.apply(Math,n)},t.prototype.getComputedWidths=function(){var e=this,t=this.getTableData().W,r=Array.from(t.keys()).map((function(r){return"number"==typeof e.cWidths[r]?e.cWidths[r]:t[r]}));return this.node.attributes.get("equalcolumns")&&(r=Array(r.length).fill((0,numeric_js_1.max)(r))),r},t.prototype.getColumnWidths=function(){var e=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns"))return this.getEqualColumns(e);var t=this.getColumnAttributes("columnwidth",0);return"auto"===e?this.getColumnWidthsAuto(t):(0,string_js_1$2.isPercent)(e)?this.getColumnWidthsPercent(t):this.getColumnWidthsFixed(t,this.length2em(e))},t.prototype.getEqualColumns=function(e){var t,r=Math.max(1,this.numCols);if("auto"===e){var n=this.getTableData().W;t=(0,numeric_js_1.max)(n)}else if((0,string_js_1$2.isPercent)(e))t=this.percent(1/r);else{var o=(0,numeric_js_1.sum)([].concat(this.cLines,this.cSpace))+2*this.fSpace[0];t=Math.max(0,this.length2em(e)-o)/r}return Array(this.numCols).fill(t)},t.prototype.getColumnWidthsAuto=function(e){var t=this;return e.map((function(e){return"auto"===e||"fit"===e?null:(0,string_js_1$2.isPercent)(e)?e:t.length2em(e)}))},t.prototype.getColumnWidthsPercent=function(e){var t=this,r=e.indexOf("fit")>=0,n=(r?this.getTableData():{W:null}).W;return Array.from(e.keys()).map((function(o){var i=e[o];return"fit"===i?null:"auto"===i?r?n[o]:null:(0,string_js_1$2.isPercent)(i)?i:t.length2em(i)}))},t.prototype.getColumnWidthsFixed=function(e,t){var r=this,n=Array.from(e.keys()),o=n.filter((function(t){return"fit"===e[t]})),i=n.filter((function(t){return"auto"===e[t]})),a=o.length||i.length,s=(a?this.getTableData():{W:null}).W,l=t-(0,numeric_js_1.sum)([].concat(this.cLines,this.cSpace))-2*this.fSpace[0],c=l;n.forEach((function(t){var n=e[t];c-="fit"===n||"auto"===n?s[t]:r.length2em(n,l)}));var u=a&&c>0?c/a:0;return n.map((function(t){var n=e[t];return"fit"===n?s[t]+u:"auto"===n?s[t]+(0===o.length?u:0):r.length2em(n,l)}))},t.prototype.getVerticalPosition=function(e,t){for(var r=this.node.attributes.get("equalrows"),n=this.getTableData(),o=n.H,i=n.D,a=r?this.getEqualRowHeight():0,s=this.getRowHalfSpacing(),l=this.fLine,c=0;c<e;c++)l+=s[c]+(r?a:o[c]+i[c])+s[c+1]+this.rLines[c];var u=__read$c(r?[(a+o[e]-i[e])/2,(a-o[e]+i[e])/2]:[o[e],i[e]],2),d=u[0],p=u[1];return l+={top:0,center:s[e]+(d+p)/2,bottom:s[e]+d+p+s[e+1],baseline:s[e]+d,axis:s[e]+d-.25}[t]||0},t.prototype.getEmHalfSpacing=function(e,t,r){void 0===r&&(r=1);var n=this.em(e*r),o=this.addEm(t,2/r);return o.unshift(n),o.push(n),o},t.prototype.getRowHalfSpacing=function(){var e=this.rSpace.map((function(e){return e/2}));return e.unshift(this.fSpace[1]),e.push(this.fSpace[1]),e},t.prototype.getColumnHalfSpacing=function(){var e=this.cSpace.map((function(e){return e/2}));return e.unshift(this.fSpace[0]),e.push(this.fSpace[0]),e},t.prototype.getAlignmentRow=function(){var e=__read$c((0,string_js_1$2.split)(this.node.attributes.get("align")),2),t=e[0],r=e[1];if(null==r)return[t,null];var n=parseInt(r);return n<0&&(n+=this.numRows+1),[t,n<1||n>this.numRows?null:n-1]},t.prototype.getColumnAttributes=function(e,t){void 0===t&&(t=1);var r=this.numCols-t,n=this.getAttributeArray(e);if(0===n.length)return null;for(;n.length<r;)n.push(n[n.length-1]);return n.length>r&&n.splice(r),n},t.prototype.getRowAttributes=function(e,t){void 0===t&&(t=1);var r=this.numRows-t,n=this.getAttributeArray(e);if(0===n.length)return null;for(;n.length<r;)n.push(n[n.length-1]);return n.length>r&&n.splice(r),n},t.prototype.getAttributeArray=function(e){var t=this.node.attributes.get(e);return t?(0,string_js_1$2.split)(t):[this.node.attributes.getDefault(e)]},t.prototype.addEm=function(e,t){var r=this;return void 0===t&&(t=1),e?e.map((function(e){return r.em(e/t)})):null},t.prototype.convertLengths=function(e){var t=this;return e?e.map((function(e){return t.length2em(e)})):null},t}(e)}mtable.CommonMtableMixin=CommonMtableMixin;var __extends$A=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$e=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$b=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(mtable$1,"__esModule",{value:!0}),mtable$1.CHTMLmtable=void 0;var Wrapper_js_1$8=Wrapper$2,mtable_js_1$1=mtable,mtable_js_2=mtable$2,string_js_1$1=string,CHTMLmtable=function(e){function t(t,r,n){void 0===n&&(n=null);var o=e.call(this,t,r,n)||this;return o.itable=o.html("mjx-itable"),o.labels=o.html("mjx-itable"),o}return __extends$A(t,e),t.prototype.getAlignShift=function(){var t=e.prototype.getAlignShift.call(this);return this.isTop||(t[1]=0),t},t.prototype.toCHTML=function(e){var t,r,n=this.standardCHTMLnode(e);this.adaptor.append(n,this.html("mjx-table",{},[this.itable]));try{for(var o=__values$e(this.childNodes),i=o.next();!i.done;i=o.next()){i.value.toCHTML(this.itable)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this.padRows(),this.handleColumnSpacing(),this.handleColumnLines(),this.handleColumnWidths(),this.handleRowSpacing(),this.handleRowLines(),this.handleRowHeights(),this.handleFrame(),this.handleWidth(),this.handleLabels(),this.handleAlign(),this.handleJustify(),this.shiftColor()},t.prototype.shiftColor=function(){var e=this.adaptor,t=e.getStyle(this.chtml,"backgroundColor");t&&(e.setStyle(this.chtml,"backgroundColor",""),e.setStyle(this.itable,"backgroundColor",t))},t.prototype.padRows=function(){var e,t,r=this.adaptor;try{for(var n=__values$e(r.childNodes(this.itable)),o=n.next();!o.done;o=n.next())for(var i=o.value;r.childNodes(i).length<this.numCols;)r.append(i,this.html("mjx-mtd",{extra:!0}))}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.handleColumnSpacing=function(){var e,t,r,n,o=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,i=this.getEmHalfSpacing(this.fSpace[0],this.cSpace,o),a=this.frame;try{for(var s=__values$e(this.tableRows),l=s.next();!l.done;l=s.next()){var c=l.value,u=0;try{for(var d=(r=void 0,__values$e(c.tableCells)),p=d.next();!p.done;p=d.next()){var m=p.value,h=i[u++],f=i[u],_=m?m.chtml:this.adaptor.childNodes(c.chtml)[u];(u>1&&"0.4em"!==h||a&&1===u)&&this.adaptor.setStyle(_,"paddingLeft",h),(u<this.numCols&&"0.4em"!==f||a&&u===this.numCols)&&this.adaptor.setStyle(_,"paddingRight",f)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}},t.prototype.handleColumnLines=function(){var e,t,r,n;if("none"!==this.node.attributes.get("columnlines")){var o=this.getColumnAttributes("columnlines");try{for(var i=__values$e(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value,l=0;try{for(var c=(r=void 0,__values$e(this.adaptor.childNodes(s.chtml).slice(1))),u=c.next();!u.done;u=c.next()){var d=u.value,p=o[l++];"none"!==p&&this.adaptor.setStyle(d,"borderLeft",".07em "+p)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}},t.prototype.handleColumnWidths=function(){var e,t,r,n;try{for(var o=__values$e(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value,s=0;try{for(var l=(r=void 0,__values$e(this.adaptor.childNodes(a.chtml))),c=l.next();!c.done;c=l.next()){var u=c.value,d=this.cWidths[s++];if(null!==d){var p="number"==typeof d?this.em(d):d;this.adaptor.setStyle(u,"width",p),this.adaptor.setStyle(u,"maxWidth",p),this.adaptor.setStyle(u,"minWidth",p)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.handleRowSpacing=function(){var e,t,r,n,o=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,i=this.getEmHalfSpacing(this.fSpace[1],this.rSpace,o),a=this.frame,s=0;try{for(var l=__values$e(this.childNodes),c=l.next();!c.done;c=l.next()){var u=c.value,d=i[s++],p=i[s];try{for(var m=(r=void 0,__values$e(u.childNodes)),h=m.next();!h.done;h=m.next()){var f=h.value;(s>1&&"0.215em"!==d||a&&1===s)&&this.adaptor.setStyle(f.chtml,"paddingTop",d),(s<this.numRows&&"0.215em"!==p||a&&s===this.numRows)&&this.adaptor.setStyle(f.chtml,"paddingBottom",p)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}},t.prototype.handleRowLines=function(){var e,t,r,n;if("none"!==this.node.attributes.get("rowlines")){var o=this.getRowAttributes("rowlines"),i=0;try{for(var a=__values$e(this.childNodes.slice(1)),s=a.next();!s.done;s=a.next()){var l=s.value,c=o[i++];if("none"!==c)try{for(var u=(r=void 0,__values$e(this.adaptor.childNodes(l.chtml))),d=u.next();!d.done;d=u.next()){var p=d.value;this.adaptor.setStyle(p,"borderTop",".07em "+c)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}},t.prototype.handleRowHeights=function(){this.node.attributes.get("equalrows")&&this.handleEqualRows()},t.prototype.handleEqualRows=function(){for(var e=this.getRowHalfSpacing(),t=this.getTableData(),r=t.H,n=t.D,o=t.NH,i=t.ND,a=this.getEqualRowHeight(),s=0;s<this.numRows;s++){var l=this.childNodes[s];this.setRowHeight(l,a+e[s]+e[s+1]+this.rLines[s]),a!==o[s]+i[s]&&this.setRowBaseline(l,a,(a-r[s]+n[s])/2)}},t.prototype.setRowHeight=function(e,t){this.adaptor.setStyle(e.chtml,"height",this.em(t))},t.prototype.setRowBaseline=function(e,t,r){var n,o,i=e.node.attributes.get("rowalign");try{for(var a=__values$e(e.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;if(this.setCellBaseline(l,i,t,r))break}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},t.prototype.setCellBaseline=function(e,t,r,n){var o=e.node.attributes.get("rowalign");if("baseline"===o||"axis"===o){var i=this.adaptor,a=i.lastChild(e.chtml);i.setStyle(a,"height",this.em(r)),i.setStyle(a,"verticalAlign",this.em(-n));var s=e.parent;if(!(s.node.isKind("mlabeledtr")&&e===s.childNodes[0]||"baseline"!==t&&"axis"!==t))return!0}return!1},t.prototype.handleFrame=function(){this.frame&&this.fLine&&this.adaptor.setStyle(this.itable,"border",".07em "+this.node.attributes.get("frame"))},t.prototype.handleWidth=function(){var e=this.adaptor,t=this.getBBox(),r=t.w,n=t.L,o=t.R;e.setStyle(this.chtml,"minWidth",this.em(n+r+o));var i=this.node.attributes.get("width");if((0,string_js_1$1.isPercent)(i))e.setStyle(this.chtml,"width",""),e.setAttribute(this.chtml,"width","full");else if(!this.hasLabels){if("auto"===i)return;i=this.em(this.length2em(i)+2*this.fLine)}var a=e.firstChild(this.chtml);if(e.setStyle(a,"width",i),e.setStyle(a,"minWidth",this.em(r)),n||o){e.setStyle(this.chtml,"margin","");var s=this.node.attributes.get("data-width-includes-label")?"padding":"margin";n===o?e.setStyle(a,s,"0 "+this.em(o)):e.setStyle(a,s,"0 "+this.em(o)+" 0 "+this.em(n))}e.setAttribute(this.itable,"width","full")},t.prototype.handleAlign=function(){var e=__read$b(this.getAlignmentRow(),2),t=e[0],r=e[1];if(null===r)"axis"!==t&&this.adaptor.setAttribute(this.chtml,"align",t);else{var n=this.getVerticalPosition(r,t);this.adaptor.setAttribute(this.chtml,"align","top"),this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(n))}},t.prototype.handleJustify=function(){var e=this.getAlignShift()[0];"center"!==e&&this.adaptor.setAttribute(this.chtml,"justify",e)},t.prototype.handleLabels=function(){if(this.hasLabels){var e=this.labels,t=this.node.attributes,r=this.adaptor,n=t.get("side");r.setAttribute(this.chtml,"side",n),r.setAttribute(e,"align",n),r.setStyle(e,n,"0");var o=__read$b(this.addLabelPadding(n),2),i=o[0],a=o[1];if(a){var s=r.firstChild(this.chtml);this.setIndent(s,i,a)}this.updateRowHeights(),this.addLabelSpacing()}},t.prototype.addLabelPadding=function(e){var t=__read$b(this.getPadAlignShift(e),3),r=t[1],n=t[2],o={};if("right"===e&&!this.node.attributes.get("data-width-includes-label")){var i=this.node.attributes.get("width"),a=this.getBBox(),s=a.w,l=a.L,c=a.R;o.style={width:(0,string_js_1$1.isPercent)(i)?"calc("+i+" + "+this.em(l+c)+")":this.em(l+s+c)}}return this.adaptor.append(this.chtml,this.html("mjx-labels",o,[this.labels])),[r,n]},t.prototype.updateRowHeights=function(){for(var e=this.getTableData(),t=e.H,r=e.D,n=e.NH,o=e.ND,i=this.getRowHalfSpacing(),a=0;a<this.numRows;a++){var s=this.childNodes[a];this.setRowHeight(s,t[a]+r[a]+i[a]+i[a+1]+this.rLines[a]),t[a]!==n[a]||r[a]!==o[a]?this.setRowBaseline(s,t[a]+r[a],r[a]):s.node.isKind("mlabeledtr")&&this.setCellBaseline(s.childNodes[0],"",t[a]+r[a],r[a])}},t.prototype.addLabelSpacing=function(){for(var e=this.adaptor,t=this.node.attributes.get("equalrows"),r=this.getTableData(),n=r.H,o=r.D,i=t?this.getEqualRowHeight():0,a=this.getRowHalfSpacing(),s=this.fLine,l=e.firstChild(this.labels),c=0;c<this.numRows;c++){this.childNodes[c].node.isKind("mlabeledtr")?(s&&e.insert(this.html("mjx-mtr",{style:{height:this.em(s)}}),l),e.setStyle(l,"height",this.em((t?i:n[c]+o[c])+a[c]+a[c+1])),l=e.next(l),s=this.rLines[c]):s+=a[c]+(t?i:n[c]+o[c])+a[c+1]+this.rLines[c]}},t.kind=mtable_js_2.MmlMtable.prototype.kind,t.styles={"mjx-mtable":{"vertical-align":".25em","text-align":"center",position:"relative","box-sizing":"border-box","border-spacing":0,"border-collapse":"collapse"},'mjx-mstyle[size="s"] mjx-mtable':{"vertical-align":".354em"},"mjx-labels":{position:"absolute",left:0,top:0},"mjx-table":{display:"inline-block","vertical-align":"-.5ex","box-sizing":"border-box"},"mjx-table > mjx-itable":{"vertical-align":"middle","text-align":"left","box-sizing":"border-box"},"mjx-labels > mjx-itable":{position:"absolute",top:0},'mjx-mtable[justify="left"]':{"text-align":"left"},'mjx-mtable[justify="right"]':{"text-align":"right"},'mjx-mtable[justify="left"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="left"][side="right"]':{"padding-left":"0 ! important"},'mjx-mtable[justify="right"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="right"][side="right"]':{"padding-left":"0 ! important"},"mjx-mtable[align]":{"vertical-align":"baseline"},'mjx-mtable[align="top"] > mjx-table':{"vertical-align":"top"},'mjx-mtable[align="bottom"] > mjx-table':{"vertical-align":"bottom"},'mjx-mtable[side="right"] mjx-labels':{"min-width":"100%"}},t}((0,mtable_js_1$1.CommonMtableMixin)(Wrapper_js_1$8.CHTMLWrapper));mtable$1.CHTMLmtable=CHTMLmtable;var mtr$1={},mtr={},__extends$z=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$d=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function CommonMtrMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$z(t,e),Object.defineProperty(t.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labeled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),t.prototype.getChild=function(e){return this.childNodes[e]},t.prototype.getChildBBoxes=function(){return this.childNodes.map((function(e){return e.getBBox()}))},t.prototype.stretchChildren=function(e){var t,r,n,o,i,a;void 0===e&&(e=null);var s=[],l=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var c=__values$d(l),u=c.next();!u.done;u=c.next()){(E=u.value.childNodes[0]).canStretch(1)&&s.push(E)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}var d=s.length,p=this.childNodes.length;if(d&&p>1){if(null===e){var m=0,h=0,f=d>1&&d===p;try{for(var _=__values$d(l),g=_.next();!g.done;g=_.next()){var y=0===(E=g.value.childNodes[0]).stretch.dir;if(f||y){var b=E.getBBox(y),v=b.h,x=b.d;v>m&&(m=v),x>h&&(h=x)}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(o=_.return)&&o.call(_)}finally{if(n)throw n.error}}e=[m,h]}try{for(var M=__values$d(s),S=M.next();!S.done;S=M.next()){var E;(E=S.value).coreMO().getStretchedVariant(e)}}catch(e){i={error:e}}finally{try{S&&!S.done&&(a=M.return)&&a.call(M)}finally{if(i)throw i.error}}}},t}(e)}function CommonMlabeledtrMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$z(t,e),Object.defineProperty(t.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labeled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:!1,configurable:!0}),t.prototype.getChild=function(e){return this.childNodes[e+1]},t.prototype.getChildBBoxes=function(){return this.childNodes.slice(1).map((function(e){return e.getBBox()}))},t}(e)}Object.defineProperty(mtr,"__esModule",{value:!0}),mtr.CommonMlabeledtrMixin=mtr.CommonMtrMixin=void 0,mtr.CommonMtrMixin=CommonMtrMixin,mtr.CommonMlabeledtrMixin=CommonMlabeledtrMixin;var __extends$y=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mtr$1,"__esModule",{value:!0}),mtr$1.CHTMLmlabeledtr=mtr$1.CHTMLmtr=void 0;var Wrapper_js_1$7=Wrapper$2,mtr_js_1$1=mtr,mtr_js_2=mtr,mtr_js_3=mtr$2,CHTMLmtr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$y(t,e),t.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t);var r=this.node.attributes.get("rowalign");"baseline"!==r&&this.adaptor.setAttribute(this.chtml,"rowalign",r)},t.kind=mtr_js_3.MmlMtr.prototype.kind,t.styles={"mjx-mtr":{display:"table-row"},'mjx-mtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}},t}((0,mtr_js_1$1.CommonMtrMixin)(Wrapper_js_1$7.CHTMLWrapper));mtr$1.CHTMLmtr=CHTMLmtr;var CHTMLmlabeledtr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$y(t,e),t.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t);var r=this.adaptor.firstChild(this.chtml);if(r){this.adaptor.remove(r);var n=this.node.attributes.get("rowalign"),o="baseline"!==n&&"axis"!==n?{rowalign:n}:{},i=this.html("mjx-mtr",o,[r]);this.adaptor.append(this.parent.labels,i)}},t.prototype.markUsed=function(){e.prototype.markUsed.call(this),this.jax.wrapperUsage.add(CHTMLmtr.kind)},t.kind=mtr_js_3.MmlMlabeledtr.prototype.kind,t.styles={"mjx-mlabeledtr":{display:"table-row"},'mjx-mlabeledtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mlabeledtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}},t}((0,mtr_js_2.CommonMlabeledtrMixin)(CHTMLmtr));mtr$1.CHTMLmlabeledtr=CHTMLmlabeledtr;var mtd$1={},mtd={},__extends$x=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function CommonMtdMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$x(t,e),Object.defineProperty(t.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.invalidateBBox=function(){this.bboxComputed=!1},t.prototype.getWrapWidth=function(e){var t=this.parent.parent,r=this.parent,n=this.node.childPosition()-(r.labeled?1:0);return"number"==typeof t.cWidths[n]?t.cWidths[n]:t.getTableData().W[n]},t.prototype.getChildAlign=function(e){return this.node.attributes.get("columnalign")},t}(e)}Object.defineProperty(mtd,"__esModule",{value:!0}),mtd.CommonMtdMixin=void 0,mtd.CommonMtdMixin=CommonMtdMixin;var __extends$w=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mtd$1,"__esModule",{value:!0}),mtd$1.CHTMLmtd=void 0;var Wrapper_js_1$6=Wrapper$2,mtd_js_1$1=mtd,mtd_js_2=mtd$2,CHTMLmtd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$w(t,e),t.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t);var r=this.node.attributes.get("rowalign"),n=this.node.attributes.get("columnalign");r!==this.parent.node.attributes.get("rowalign")&&this.adaptor.setAttribute(this.chtml,"rowalign",r),"center"===n||"mlabeledtr"===this.parent.kind&&this===this.parent.childNodes[0]&&n===this.parent.parent.node.attributes.get("side")||this.adaptor.setStyle(this.chtml,"textAlign",n),this.parent.parent.node.getProperty("useHeight")&&this.adaptor.append(this.chtml,this.html("mjx-tstrut"))},t.kind=mtd_js_2.MmlMtd.prototype.kind,t.styles={"mjx-mtd":{display:"table-cell","text-align":"center",padding:".215em .4em"},"mjx-mtd:first-child":{"padding-left":0},"mjx-mtd:last-child":{"padding-right":0},"mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd":{"padding-top":0},"mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd":{"padding-bottom":0},"mjx-tstrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"},'mjx-labels[align="left"] > mjx-mtr > mjx-mtd':{"text-align":"left"},'mjx-labels[align="right"] > mjx-mtr > mjx-mtd':{"text-align":"right"},"mjx-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":"top"},'mjx-mtd[rowalign="center"]':{"vertical-align":"middle"},'mjx-mtd[rowalign="bottom"]':{"vertical-align":"bottom"},'mjx-mtd[rowalign="baseline"]':{"vertical-align":"baseline"},'mjx-mtd[rowalign="axis"]':{"vertical-align":".25em"}},t}((0,mtd_js_1$1.CommonMtdMixin)(Wrapper_js_1$6.CHTMLWrapper));mtd$1.CHTMLmtd=CHTMLmtd;var maction$1={},maction={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMactionMixin=e.TooltipData=void 0;var o=string;e.TooltipData={dx:".2em",dy:".1em",postDelay:600,clearDelay:100,hoverTimer:new Map,clearTimer:new Map,stopTimers:function(e,t){t.clearTimer.has(e)&&(clearTimeout(t.clearTimer.get(e)),t.clearTimer.delete(e)),t.hoverTimer.has(e)&&(clearTimeout(t.hoverTimer.get(e)),t.hoverTimer.delete(e))}},e.CommonMactionMixin=function(i){return function(i){function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=i.apply(this,n([],r(e),!1))||this,a=o.constructor.actions,s=o.node.attributes.get("actiontype"),l=r(a.get(s)||[function(e,t){},{}],2),c=l[0],u=l[1];return o.action=c,o.data=u,o.getParameters(),o}return t(a,i),Object.defineProperty(a.prototype,"selected",{get:function(){var e=this.node.attributes.get("selection"),t=Math.max(1,Math.min(this.childNodes.length,e))-1;return this.childNodes[t]||this.wrap(this.node.selected)},enumerable:!1,configurable:!0}),a.prototype.getParameters=function(){var t=this.node.attributes.get("data-offsets"),n=r((0,o.split)(t||""),2),i=n[0],a=n[1];this.dx=this.length2em(i||e.TooltipData.dx),this.dy=this.length2em(a||e.TooltipData.dy)},a.prototype.computeBBox=function(e,t){void 0===t&&(t=!1),e.updateFrom(this.selected.getOuterBBox()),this.selected.setChildPWidths(t)},a}(i)}}(maction),getDefaultExportFromCjs$1(maction);var __extends$v=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(maction$1,"__esModule",{value:!0}),maction$1.CHTMLmaction=void 0;var Wrapper_js_1$5=Wrapper$2,maction_js_1$1=maction,maction_js_2=maction,maction_js_3=maction$2,CHTMLmaction=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$v(t,e),t.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e);this.selected.toCHTML(t),this.action(this,this.data)},t.prototype.setEventHandler=function(e,t){this.chtml.addEventListener(e,t)},t.kind=maction_js_3.MmlMaction.prototype.kind,t.styles={"mjx-maction":{position:"relative"},"mjx-maction > mjx-tool":{display:"none",position:"absolute",bottom:0,right:0,width:0,height:0,"z-index":500},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},"mjx-maction[toggle]":{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}},t.actions=new Map([["toggle",[function(e,t){e.adaptor.setAttribute(e.chtml,"toggle",e.node.attributes.get("selection"));var r=e.factory.jax.math,n=e.factory.jax.document,o=e.node;e.setEventHandler("click",(function(e){r.end.node||(r.start.node=r.end.node=r.typesetRoot,r.start.n=r.end.n=0),o.nextToggleSelection(),r.rerender(n),e.stopPropagation()}))},{}]],["tooltip",[function(e,t){var r=e.childNodes[1];if(r)if(r.node.isKind("mtext")){var n=r.node.getText();e.adaptor.setAttribute(e.chtml,"title",n)}else{var o=e.adaptor,i=o.append(e.chtml,e.html("mjx-tool",{style:{bottom:e.em(-e.dy),right:e.em(-e.dx)}},[e.html("mjx-tip")]));r.toCHTML(o.firstChild(i)),e.setEventHandler("mouseover",(function(r){t.stopTimers(e,t);var n=setTimeout((function(){return o.setStyle(i,"display","block")}),t.postDelay);t.hoverTimer.set(e,n),r.stopPropagation()})),e.setEventHandler("mouseout",(function(r){t.stopTimers(e,t);var n=setTimeout((function(){return o.setStyle(i,"display","")}),t.clearDelay);t.clearTimer.set(e,n),r.stopPropagation()}))}},maction_js_2.TooltipData]],["statusline",[function(e,t){var r=e.childNodes[1];if(r&&r.node.isKind("mtext")){var n=e.adaptor,o=r.node.getText();n.setAttribute(e.chtml,"statusline",o),e.setEventHandler("mouseover",(function(r){if(null===t.status){var i=n.body(n.document);t.status=n.append(i,e.html("mjx-status",{},[e.text(o)]))}r.stopPropagation()})),e.setEventHandler("mouseout",(function(e){t.status&&(n.remove(t.status),t.status=null),e.stopPropagation()}))}},{status:null}]]]),t}((0,maction_js_1$1.CommonMactionMixin)(Wrapper_js_1$5.CHTMLWrapper));maction$1.CHTMLmaction=CHTMLmaction;var mglyph$1={},mglyph={},__extends$u=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__read$a=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$4=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function CommonMglyphMixin(e){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,__spreadArray$4([],__read$a(t),!1))||this;return n.getParameters(),n}return __extends$u(t,e),t.prototype.getParameters=function(){var e=this.node.attributes.getList("width","height","valign","src","index"),t=e.width,r=e.height,n=e.valign,o=e.src,i=e.index;if(o)this.width="auto"===t?1:this.length2em(t),this.height="auto"===r?1:this.length2em(r),this.valign=this.length2em(n||"0");else{var a=String.fromCodePoint(parseInt(i)),s=this.node.factory;this.charWrapper=this.wrap(s.create("text").setText(a)),this.charWrapper.parent=this}},t.prototype.computeBBox=function(e,t){this.charWrapper?e.updateFrom(this.charWrapper.getBBox()):(e.w=this.width,e.h=this.height+this.valign,e.d=-this.valign)},t}(e)}Object.defineProperty(mglyph,"__esModule",{value:!0}),mglyph.CommonMglyphMixin=void 0,mglyph.CommonMglyphMixin=CommonMglyphMixin;var __extends$t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(mglyph$1,"__esModule",{value:!0}),mglyph$1.CHTMLmglyph=void 0;var Wrapper_js_1$4=Wrapper$2,mglyph_js_1$1=mglyph,mglyph_js_2=mglyph$2,CHTMLmglyph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$t(t,e),t.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e);if(this.charWrapper)this.charWrapper.toCHTML(t);else{var r=this.node.attributes.getList("src","alt"),n=r.src,o=r.alt,i={width:this.em(this.width),height:this.em(this.height)};this.valign&&(i.verticalAlign=this.em(this.valign));var a=this.html("img",{src:n,style:i,alt:o,title:o});this.adaptor.append(t,a)}},t.kind=mglyph_js_2.MmlMglyph.prototype.kind,t.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}},t}((0,mglyph_js_1$1.CommonMglyphMixin)(Wrapper_js_1$4.CHTMLWrapper));mglyph$1.CHTMLmglyph=CHTMLmglyph;var semantics$1={},semantics={},__extends$s=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function CommonSemanticsMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$s(t,e),t.prototype.computeBBox=function(e,t){if(this.childNodes.length){var r=this.childNodes[0].getBBox(),n=r.w,o=r.h,i=r.d;e.w=n,e.h=o,e.d=i}},t}(e)}Object.defineProperty(semantics,"__esModule",{value:!0}),semantics.CommonSemanticsMixin=void 0,semantics.CommonSemanticsMixin=CommonSemanticsMixin;var __extends$r=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(semantics$1,"__esModule",{value:!0}),semantics$1.CHTMLxml=semantics$1.CHTMLannotationXML=semantics$1.CHTMLannotation=semantics$1.CHTMLsemantics=void 0;var Wrapper_js_1$3=Wrapper$2,semantics_js_1$1=semantics,semantics_js_2=semantics$2,MmlNode_js_1$a=MmlNode,CHTMLsemantics=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$r(t,e),t.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e);this.childNodes.length&&this.childNodes[0].toCHTML(t)},t.kind=semantics_js_2.MmlSemantics.prototype.kind,t}((0,semantics_js_1$1.CommonSemanticsMixin)(Wrapper_js_1$3.CHTMLWrapper));semantics$1.CHTMLsemantics=CHTMLsemantics;var CHTMLannotation=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$r(t,e),t.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t)},t.prototype.computeBBox=function(){return this.bbox},t.kind=semantics_js_2.MmlAnnotation.prototype.kind,t}(Wrapper_js_1$3.CHTMLWrapper);semantics$1.CHTMLannotation=CHTMLannotation;var CHTMLannotationXML=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$r(t,e),t.kind=semantics_js_2.MmlAnnotationXML.prototype.kind,t.styles={"mjx-annotation-xml":{"font-family":"initial","line-height":"normal"}},t}(Wrapper_js_1$3.CHTMLWrapper);semantics$1.CHTMLannotationXML=CHTMLannotationXML;var CHTMLxml=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$r(t,e),t.prototype.toCHTML=function(e){this.chtml=this.adaptor.append(e,this.adaptor.clone(this.node.getXML()))},t.prototype.computeBBox=function(e,t){var r=this.jax.measureXMLnode(this.node.getXML()),n=r.w,o=r.h,i=r.d;e.w=n,e.h=o,e.d=i},t.prototype.getStyles=function(){},t.prototype.getScale=function(){},t.prototype.getVariant=function(){},t.kind=MmlNode_js_1$a.XMLNode.prototype.kind,t.autoStyle=!1,t}(Wrapper_js_1$3.CHTMLWrapper);semantics$1.CHTMLxml=CHTMLxml;var TeXAtom$1={},TeXAtom={},__extends$q=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(TeXAtom,"__esModule",{value:!0}),TeXAtom.CommonTeXAtomMixin=void 0;var MmlNode_js_1$9=MmlNode;function CommonTeXAtomMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$q(t,e),t.prototype.computeBBox=function(t,r){if(void 0===r&&(r=!1),e.prototype.computeBBox.call(this,t,r),this.childNodes[0]&&this.childNodes[0].bbox.ic&&(t.ic=this.childNodes[0].bbox.ic),this.node.texClass===MmlNode_js_1$9.TEXCLASS.VCENTER){var n=t.h,o=(n+t.d)/2+this.font.params.axis_height-n;t.h+=o,t.d-=o}},t}(e)}TeXAtom.CommonTeXAtomMixin=CommonTeXAtomMixin;var __extends$p=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(TeXAtom$1,"__esModule",{value:!0}),TeXAtom$1.CHTMLTeXAtom=void 0;var Wrapper_js_1$2=Wrapper$2,TeXAtom_js_1$1=TeXAtom,TeXAtom_js_2=TeXAtom$3,MmlNode_js_1$8=MmlNode,CHTMLTeXAtom=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$p(t,e),t.prototype.toCHTML=function(t){if(e.prototype.toCHTML.call(this,t),this.adaptor.setAttribute(this.chtml,"texclass",MmlNode_js_1$8.TEXCLASSNAMES[this.node.texClass]),this.node.texClass===MmlNode_js_1$8.TEXCLASS.VCENTER){var r=this.childNodes[0].getBBox(),n=r.h,o=(n+r.d)/2+this.font.params.axis_height-n;this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(o))}},t.kind=TeXAtom_js_2.TeXAtom.prototype.kind,t}((0,TeXAtom_js_1$1.CommonTeXAtomMixin)(Wrapper_js_1$2.CHTMLWrapper));TeXAtom$1.CHTMLTeXAtom=CHTMLTeXAtom;var TextNode$1={},TextNode={},__extends$o=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$c=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$9=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function CommonTextNodeMixin(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$o(t,e),t.prototype.computeBBox=function(e,t){var r,n,o=this.parent.variant,i=this.node.getText();if("-explicitFont"===o){var a=this.jax.getFontData(this.parent.styles),s=this.jax.measureText(i,o,a),l=s.w,c=s.h,u=s.d;e.h=c,e.d=u,e.w=l}else{var d=this.remappedText(i,o);e.empty();try{for(var p=__values$c(d),m=p.next();!m.done;m=p.next()){var h=m.value,f=__read$9(this.getVariantChar(o,h),4),_=(c=f[0],u=f[1],l=f[2],f[3]);if(_.unknown){var g=this.jax.measureText(String.fromCodePoint(h),o);l=g.w,c=g.h,u=g.d}e.w+=l,c>e.h&&(e.h=c),u>e.d&&(e.d=u),e.ic=_.ic||0,e.sk=_.sk||0,e.dx=_.dx||0}}catch(e){r={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}d.length>1&&(e.sk=0),e.clean()}},t.prototype.remappedText=function(e,t){var r=this.parent.stretch.c;return r?[r]:this.parent.remapChars(this.unicodeChars(e,t))},t.prototype.getStyles=function(){},t.prototype.getVariant=function(){},t.prototype.getScale=function(){},t.prototype.getSpace=function(){},t}(e)}Object.defineProperty(TextNode,"__esModule",{value:!0}),TextNode.CommonTextNodeMixin=void 0,TextNode.CommonTextNodeMixin=CommonTextNodeMixin;var __extends$n=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$b=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(TextNode$1,"__esModule",{value:!0}),TextNode$1.CHTMLTextNode=void 0;var MmlNode_js_1$7=MmlNode,Wrapper_js_1$1=Wrapper$2,TextNode_js_1$1=TextNode,CHTMLTextNode=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$n(t,e),t.prototype.toCHTML=function(e){var t,r;this.markUsed();var n=this.adaptor,o=this.parent.variant,i=this.node.getText();if(0!==i.length)if("-explicitFont"===o)n.append(e,this.jax.unknownText(i,o,this.getBBox().w));else{var a=this.remappedText(i,o);try{for(var s=__values$b(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=this.getVariantChar(o,c)[3],d=u.f?" TEX-"+u.f:"",p=u.unknown?this.jax.unknownText(String.fromCodePoint(c),o):this.html("mjx-c",{class:this.char(c)+d});n.append(e,p),!u.unknown&&this.font.charUsage.add([o,c])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}},t.kind=MmlNode_js_1$7.TextNode.prototype.kind,t.autoStyle=!1,t.styles={"mjx-c":{display:"inline-block"},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}},t}((0,TextNode_js_1$1.CommonTextNodeMixin)(Wrapper_js_1$1.CHTMLWrapper)),_a$7;TextNode$1.CHTMLTextNode=CHTMLTextNode,Object.defineProperty(Wrappers,"__esModule",{value:!0}),Wrappers.CHTMLWrappers=void 0;var Wrapper_js_1=Wrapper$2,math_js_1=math$1,mi_js_1=mi$1,mo_js_1=mo$1,mn_js_1=mn$1,ms_js_1=ms$1,mtext_js_1=mtext$1,mspace_js_1=mspace$1,mpadded_js_1=mpadded$1,menclose_js_1=menclose$1,mrow_js_1=mrow$1,mfenced_js_1=mfenced$1,mfrac_js_1=mfrac$1,msqrt_js_1=msqrt$1,mroot_js_1=mroot$1,msubsup_js_1=msubsup$1,munderover_js_1=munderover$1,mmultiscripts_js_1=mmultiscripts$1,mtable_js_1=mtable$1,mtr_js_1=mtr$1,mtd_js_1=mtd$1,maction_js_1=maction$1,mglyph_js_1=mglyph$1,semantics_js_1=semantics$1,TeXAtom_js_1=TeXAtom$1,TextNode_js_1=TextNode$1;Wrappers.CHTMLWrappers=(_a$7={},_a$7[math_js_1.CHTMLmath.kind]=math_js_1.CHTMLmath,_a$7[mrow_js_1.CHTMLmrow.kind]=mrow_js_1.CHTMLmrow,_a$7[mrow_js_1.CHTMLinferredMrow.kind]=mrow_js_1.CHTMLinferredMrow,_a$7[mi_js_1.CHTMLmi.kind]=mi_js_1.CHTMLmi,_a$7[mo_js_1.CHTMLmo.kind]=mo_js_1.CHTMLmo,_a$7[mn_js_1.CHTMLmn.kind]=mn_js_1.CHTMLmn,_a$7[ms_js_1.CHTMLms.kind]=ms_js_1.CHTMLms,_a$7[mtext_js_1.CHTMLmtext.kind]=mtext_js_1.CHTMLmtext,_a$7[mspace_js_1.CHTMLmspace.kind]=mspace_js_1.CHTMLmspace,_a$7[mpadded_js_1.CHTMLmpadded.kind]=mpadded_js_1.CHTMLmpadded,_a$7[menclose_js_1.CHTMLmenclose.kind]=menclose_js_1.CHTMLmenclose,_a$7[mfrac_js_1.CHTMLmfrac.kind]=mfrac_js_1.CHTMLmfrac,_a$7[msqrt_js_1.CHTMLmsqrt.kind]=msqrt_js_1.CHTMLmsqrt,_a$7[mroot_js_1.CHTMLmroot.kind]=mroot_js_1.CHTMLmroot,_a$7[msubsup_js_1.CHTMLmsub.kind]=msubsup_js_1.CHTMLmsub,_a$7[msubsup_js_1.CHTMLmsup.kind]=msubsup_js_1.CHTMLmsup,_a$7[msubsup_js_1.CHTMLmsubsup.kind]=msubsup_js_1.CHTMLmsubsup,_a$7[munderover_js_1.CHTMLmunder.kind]=munderover_js_1.CHTMLmunder,_a$7[munderover_js_1.CHTMLmover.kind]=munderover_js_1.CHTMLmover,_a$7[munderover_js_1.CHTMLmunderover.kind]=munderover_js_1.CHTMLmunderover,_a$7[mmultiscripts_js_1.CHTMLmmultiscripts.kind]=mmultiscripts_js_1.CHTMLmmultiscripts,_a$7[mfenced_js_1.CHTMLmfenced.kind]=mfenced_js_1.CHTMLmfenced,_a$7[mtable_js_1.CHTMLmtable.kind]=mtable_js_1.CHTMLmtable,_a$7[mtr_js_1.CHTMLmtr.kind]=mtr_js_1.CHTMLmtr,_a$7[mtr_js_1.CHTMLmlabeledtr.kind]=mtr_js_1.CHTMLmlabeledtr,_a$7[mtd_js_1.CHTMLmtd.kind]=mtd_js_1.CHTMLmtd,_a$7[maction_js_1.CHTMLmaction.kind]=maction_js_1.CHTMLmaction,_a$7[mglyph_js_1.CHTMLmglyph.kind]=mglyph_js_1.CHTMLmglyph,_a$7[semantics_js_1.CHTMLsemantics.kind]=semantics_js_1.CHTMLsemantics,_a$7[semantics_js_1.CHTMLannotation.kind]=semantics_js_1.CHTMLannotation,_a$7[semantics_js_1.CHTMLannotationXML.kind]=semantics_js_1.CHTMLannotationXML,_a$7[semantics_js_1.CHTMLxml.kind]=semantics_js_1.CHTMLxml,_a$7[TeXAtom_js_1.CHTMLTeXAtom.kind]=TeXAtom_js_1.CHTMLTeXAtom,_a$7[TextNode_js_1.CHTMLTextNode.kind]=TextNode_js_1.CHTMLTextNode,_a$7[Wrapper_js_1.CHTMLWrapper.kind]=Wrapper_js_1.CHTMLWrapper,_a$7);var __extends$m=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(WrapperFactory$2,"__esModule",{value:!0});var CHTMLWrapperFactory_1=WrapperFactory$2.CHTMLWrapperFactory=void 0,WrapperFactory_js_1$1=WrapperFactory$1,Wrappers_js_1=Wrappers,CHTMLWrapperFactory=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$m(t,e),t.defaultNodes=Wrappers_js_1.CHTMLWrappers,t}(WrapperFactory_js_1$1.CommonWrapperFactory);CHTMLWrapperFactory_1=WrapperFactory$2.CHTMLWrapperFactory=CHTMLWrapperFactory;var Usage$1={};Object.defineProperty(Usage$1,"__esModule",{value:!0}),Usage$1.Usage=void 0;var Usage=function(){function e(){this.used=new Set,this.needsUpdate=[]}return e.prototype.add=function(e){var t=JSON.stringify(e);this.used.has(t)||this.needsUpdate.push(e),this.used.add(t)},e.prototype.has=function(e){return this.used.has(JSON.stringify(e))},e.prototype.clear=function(){this.used.clear(),this.needsUpdate=[]},e.prototype.update=function(){var e=this.needsUpdate;return this.needsUpdate=[],e},e}();Usage$1.Usage=Usage;var tex$1={},FontData={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),r=commonjsGlobal&&commonjsGlobal.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},n=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=commonjsGlobal&&commonjsGlobal.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.AddCSS=e.CHTMLFontData=void 0;var s=FontData$2,l=Usage$1,c=lengths;o(FontData$2,e);var u=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.charUsage=new l.Usage,t.delimUsage=new l.Usage,t}return t(n,e),n.charOptions=function(t,r){return e.charOptions.call(this,t,r)},n.prototype.adaptiveCSS=function(e){this.options.adaptiveCSS=e},n.prototype.clearCache=function(){this.options.adaptiveCSS&&(this.charUsage.clear(),this.delimUsage.clear())},n.prototype.createVariant=function(t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e.prototype.createVariant.call(this,t,r,n);var o=this.constructor;this.variant[t].classes=o.defaultVariantClasses[t],this.variant[t].letter=o.defaultVariantLetters[t]},n.prototype.defineChars=function(t,r){var o,a;e.prototype.defineChars.call(this,t,r);var s=this.variant[t].letter;try{for(var l=i(Object.keys(r)),c=l.next();!c.done;c=l.next()){var u=c.value,d=n.charOptions(r,parseInt(u));void 0===d.f&&(d.f=s)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}},Object.defineProperty(n.prototype,"styles",{get:function(){var e=this.constructor,t=r({},e.defaultStyles);return this.addFontURLs(t,e.defaultFonts,this.options.fontURL),this.options.adaptiveCSS?this.updateStyles(t):this.allStyles(t),t},enumerable:!1,configurable:!0}),n.prototype.updateStyles=function(e){var t,r,n,o;try{for(var s=i(this.delimUsage.update()),l=s.next();!l.done;l=s.next()){var c=l.value;this.addDelimiterStyles(e,c,this.delimiters[c])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}try{for(var u=i(this.charUsage.update()),d=u.next();!d.done;d=u.next()){var p=a(d.value,2),m=p[0],h=(c=p[1],this.variant[m]);this.addCharStyles(e,h.letter,c,h.chars[c])}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return e},n.prototype.allStyles=function(e){var t,r,n,o,a,s;try{for(var l=i(Object.keys(this.delimiters)),c=l.next();!c.done;c=l.next()){var u=c.value,d=parseInt(u);this.addDelimiterStyles(e,d,this.delimiters[d])}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}try{for(var p=i(Object.keys(this.variant)),m=p.next();!m.done;m=p.next()){var h=m.value,f=this.variant[h],_=f.letter;try{for(var g=(a=void 0,i(Object.keys(f.chars))),y=g.next();!y.done;y=g.next()){u=y.value,d=parseInt(u);var b=f.chars[d];(b[3]||{}).smp||(b.length<4&&(b[3]={}),this.addCharStyles(e,_,d,b))}}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}},n.prototype.addFontURLs=function(e,t,n){var o,a;try{for(var s=i(Object.keys(t)),l=s.next();!l.done;l=s.next()){var c=l.value,u=r({},t[c]);u.src=u.src.replace(/%%URL%%/,n),e[c]=u}}catch(e){o={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}},n.prototype.addDelimiterStyles=function(e,t,r){var n=this.charSelector(t);r.c&&r.c!==t&&(e[".mjx-stretched mjx-c"+(n=this.charSelector(r.c))+"::before"]={content:this.charContent(r.c)}),r.stretch&&(1===r.dir?this.addDelimiterVStyles(e,n,r):this.addDelimiterHStyles(e,n,r))},n.prototype.addDelimiterVStyles=function(e,t,r){var n=r.HDW,o=a(r.stretch,4),i=o[0],s=o[1],l=o[2],c=o[3],u=this.addDelimiterVPart(e,t,"beg",i,n);this.addDelimiterVPart(e,t,"ext",s,n);var d=this.addDelimiterVPart(e,t,"end",l,n),p={};if(c){var m=this.addDelimiterVPart(e,t,"mid",c,n);p.height="50%",e["mjx-stretchy-v"+t+" > mjx-mid"]={"margin-top":this.em(-m/2),"margin-bottom":this.em(-m/2)}}u&&(p["border-top-width"]=this.em0(u-.03)),d&&(p["border-bottom-width"]=this.em0(d-.03),e["mjx-stretchy-v"+t+" > mjx-end"]={"margin-top":this.em(-d)}),Object.keys(p).length&&(e["mjx-stretchy-v"+t+" > mjx-ext"]=p)},n.prototype.addDelimiterVPart=function(e,t,r,n,o){if(!n)return 0;var i=this.getDelimiterData(n),a=(o[2]-i[2])/2,s={content:this.charContent(n)};return"ext"!==r?s.padding=this.padding(i,a):(s.width=this.em0(o[2]),a&&(s["padding-left"]=this.em0(a))),e["mjx-stretchy-v"+t+" mjx-"+r+" mjx-c::before"]=s,i[0]+i[1]},n.prototype.addDelimiterHStyles=function(e,t,r){var n=a(r.stretch,4),o=n[0],i=n[1],s=n[2],l=n[3],c=r.HDW;this.addDelimiterHPart(e,t,"beg",o,c),this.addDelimiterHPart(e,t,"ext",i,c),this.addDelimiterHPart(e,t,"end",s,c),l&&(this.addDelimiterHPart(e,t,"mid",l,c),e["mjx-stretchy-h"+t+" > mjx-ext"]={width:"50%"})},n.prototype.addDelimiterHPart=function(e,t,r,n,o){if(n){var i=this.getDelimiterData(n)[3],a={content:i&&i.c?'"'+i.c+'"':this.charContent(n)};a.padding=this.padding(o,0,-o[2]),e["mjx-stretchy-h"+t+" mjx-"+r+" mjx-c::before"]=a}},n.prototype.addCharStyles=function(e,t,r,n){var o=n[3],i=void 0!==o.f?o.f:t;e["mjx-c"+this.charSelector(r)+(i?".TEX-"+i:"")+"::before"]={padding:this.padding(n,0,o.ic||0),content:null!=o.c?'"'+o.c+'"':this.charContent(r)}},n.prototype.getDelimiterData=function(e){return this.getChar("-smallop",e)},n.prototype.em=function(e){return(0,c.em)(e)},n.prototype.em0=function(e){return(0,c.em)(Math.max(0,e))},n.prototype.padding=function(e,t,r){var n=a(e,3),o=n[0],i=n[1];return void 0===t&&(t=0),void 0===r&&(r=0),[o,n[2]+r,i,t].map(this.em0).join(" ")},n.prototype.charContent=function(e){return'"'+(e>=32&&e<=126&&34!==e&&39!==e&&92!==e?String.fromCharCode(e):"\\"+e.toString(16).toUpperCase())+'"'},n.prototype.charSelector=function(e){return".mjx-c"+e.toString(16).toUpperCase()},n.OPTIONS=r(r({},s.FontData.OPTIONS),{fontURL:"js/output/chtml/fonts/tex-woff-v2"}),n.JAX="CHTML",n.defaultVariantClasses={},n.defaultVariantLetters={},n.defaultStyles={"mjx-c::before":{display:"block",width:0}},n.defaultFonts={"@font-face /* 0 */":{"font-family":"MJXZERO",src:'url("%%URL%%/MathJax_Zero.woff") format("woff")'}},n}(s.FontData);e.CHTMLFontData=u,e.AddCSS=function(e,t){var r,n;try{for(var o=i(Object.keys(t)),a=o.next();!a.done;a=o.next()){var l=a.value,c=parseInt(l);Object.assign(s.FontData.charOptions(e,c),t[c])}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return e}}(FontData),getDefaultExportFromCjs$1(FontData);var tex={},__extends$l=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$4=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$4=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$4.apply(this,arguments)},__read$8=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$3=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function CommonTeXFontMixin(e){var t;return t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$l(t,e),t.prototype.getDelimiterData=function(e){return this.getChar("-smallop",e)||this.getChar("-size4",e)},t}(e),t.NAME="TeX",t.defaultVariants=__spreadArray$3(__spreadArray$3([],__read$8(e.defaultVariants),!1),[["-smallop","normal"],["-largeop","normal"],["-size3","normal"],["-size4","normal"],["-tex-calligraphic","italic"],["-tex-bold-calligraphic","bold-italic"],["-tex-oldstyle","normal"],["-tex-bold-oldstyle","bold"],["-tex-mathit","italic"],["-tex-variant","normal"]],!1),t.defaultCssFonts=__assign$4(__assign$4({},e.defaultCssFonts),{"-smallop":["serif",!1,!1],"-largeop":["serif",!1,!1],"-size3":["serif",!1,!1],"-size4":["serif",!1,!1],"-tex-calligraphic":["cursive",!0,!1],"-tex-bold-calligraphic":["cursive",!0,!0],"-tex-oldstyle":["serif",!1,!1],"-tex-bold-oldstyle":["serif",!1,!0],"-tex-mathit":["serif",!0,!1]}),t.defaultSizeVariants=["normal","-smallop","-largeop","-size3","-size4","-tex-variant"],t.defaultStretchVariants=["-size4"],t}Object.defineProperty(tex,"__esModule",{value:!0}),tex.CommonTeXFontMixin=void 0,tex.CommonTeXFontMixin=CommonTeXFontMixin;var boldItalic$1={},boldItalic={};Object.defineProperty(boldItalic,"__esModule",{value:!0}),boldItalic.boldItalic=void 0,boldItalic.boldItalic={47:[.711,.21,.894],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}],8260:[.711,.21,.894],8710:[.711,0,.958,{sk:.192}],10744:[.711,.21,.894]},Object.defineProperty(boldItalic$1,"__esModule",{value:!0}),boldItalic$1.boldItalic=void 0;var FontData_js_1$h=FontData,bold_italic_js_1$1=boldItalic;boldItalic$1.boldItalic=(0,FontData_js_1$h.AddCSS)(bold_italic_js_1$1.boldItalic,{305:{f:"B"},567:{f:"B"},8260:{c:"/"},8710:{c:"\\394"},10744:{c:"/"}});var bold$1={},bold={};Object.defineProperty(bold,"__esModule",{value:!0}),bold.bold=void 0,bold.bold={33:[.705,0,.35],34:[.694,-.329,.603],35:[.694,.193,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.694,-.329,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.131,.894],44:[.171,.194,.319],45:[.278,-.166,.383],46:[.171,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.085,.894],61:[.393,-.109,.894],62:[.587,.085,.894],63:[.7,0,.543],64:[.699,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.694,-.52,.575],95:[-.01,.061,.575],96:[.706,-.503,.575],123:[.75,.25,.575],124:[.75,.249,.319],125:[.75,.25,.575],126:[.344,-.202,.575],168:[.695,-.535,.575],172:[.371,-.061,.767],175:[.607,-.54,.575],176:[.702,-.536,.575],177:[.728,.035,.894],180:[.706,-.503,.575],183:[.336,-.166,.319],215:[.53,.028,.894],247:[.597,.096,.894],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.563,-.033,.344],710:[.694,-.52,.575],711:[.66,-.515,.575],713:[.607,-.54,.575],714:[.706,-.503,.575],715:[.706,-.503,.575],728:[.694,-.5,.575],729:[.695,-.525,.575],730:[.702,-.536,.575],732:[.694,-.552,.575],768:[.706,-.503,0],769:[.706,-.503,0],770:[.694,-.52,0],771:[.694,-.552,0],772:[.607,-.54,0],774:[.694,-.5,0],775:[.695,-.525,0],776:[.695,-.535,0],778:[.702,-.536,0],779:[.714,-.511,0],780:[.66,-.515,0],824:[.711,.21,0],8194:[0,0,.5],8195:[0,0,.999],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.083],8211:[.3,-.249,.575],8212:[.3,-.249,1.15],8213:[.3,-.249,1.15],8214:[.75,.248,.575],8215:[-.01,.061,.575],8216:[.694,-.329,.319],8217:[.694,-.329,.319],8220:[.694,-.329,.603],8221:[.694,-.329,.603],8224:[.702,.211,.511],8225:[.702,.202,.511],8226:[.474,-.028,.575],8230:[.171,0,1.295],8242:[.563,-.033,.344],8243:[.563,0,.688],8244:[.563,0,1.032],8254:[.607,-.54,.575],8260:[.75,.25,.575],8279:[.563,0,1.376],8407:[.723,-.513,.575],8463:[.694,.008,.668,{sk:-.0319}],8467:[.702,.019,.474,{sk:.128}],8472:[.461,.21,.74],8501:[.694,0,.703],8592:[.518,.017,1.15],8593:[.694,.193,.575],8594:[.518,.017,1.15],8595:[.694,.194,.575],8596:[.518,.017,1.15],8597:[.767,.267,.575],8598:[.724,.194,1.15],8599:[.724,.193,1.15],8600:[.694,.224,1.15],8601:[.694,.224,1.15],8602:[.711,.21,1.15],8603:[.711,.21,1.15],8614:[.518,.017,1.15],8617:[.518,.017,1.282],8618:[.518,.017,1.282],8622:[.711,.21,1.15],8636:[.518,-.22,1.15],8637:[.281,.017,1.15],8640:[.518,-.22,1.15],8641:[.281,.017,1.15],8652:[.718,.017,1.15],8653:[.711,.21,1.15],8654:[.711,.21,1.15],8655:[.711,.21,1.15],8656:[.547,.046,1.15],8657:[.694,.193,.703],8658:[.547,.046,1.15],8659:[.694,.194,.703],8660:[.547,.046,1.15],8661:[.767,.267,.703],8704:[.694,.016,.639],8707:[.694,0,.639],8708:[.711,.21,.639],8709:[.767,.073,.575],8710:[.698,0,.958],8712:[.587,.086,.767],8713:[.711,.21,.767],8715:[.587,.086,.767],8716:[.711,.21,.767],8722:[.281,-.221,.894],8723:[.537,.227,.894],8725:[.75,.25,.575],8726:[.75,.25,.575],8727:[.472,-.028,.575],8728:[.474,-.028,.575],8729:[.474,-.028,.575],8730:[.82,.18,.958,{ic:.03}],8733:[.451,.008,.894],8734:[.452,.008,1.15],8736:[.714,0,.722],8739:[.75,.249,.319],8740:[.75,.249,.319],8741:[.75,.248,.575],8742:[.75,.248,.575],8743:[.604,.017,.767],8744:[.604,.016,.767],8745:[.603,.016,.767],8746:[.604,.016,.767],8747:[.711,.211,.569,{ic:.063}],8764:[.391,-.109,.894],8768:[.583,.082,.319],8769:[.711,.21,.894],8771:[.502,0,.894],8772:[.711,.21,.894],8773:[.638,.027,.894],8775:[.711,.21,.894],8776:[.524,-.032,.894],8777:[.711,.21,.894],8781:[.533,.032,.894],8784:[.721,-.109,.894],8800:[.711,.21,.894],8801:[.505,0,.894],8802:[.711,.21,.894],8804:[.697,.199,.894],8805:[.697,.199,.894],8810:[.617,.116,1.15],8811:[.618,.116,1.15],8813:[.711,.21,.894],8814:[.711,.21,.894],8815:[.711,.21,.894],8816:[.711,.21,.894],8817:[.711,.21,.894],8826:[.585,.086,.894],8827:[.586,.086,.894],8832:[.711,.21,.894],8833:[.711,.21,.894],8834:[.587,.085,.894],8835:[.587,.086,.894],8836:[.711,.21,.894],8837:[.711,.21,.894],8838:[.697,.199,.894],8839:[.697,.199,.894],8840:[.711,.21,.894],8841:[.711,.21,.894],8846:[.604,.016,.767],8849:[.697,.199,.894],8850:[.697,.199,.894],8851:[.604,0,.767],8852:[.604,0,.767],8853:[.632,.132,.894],8854:[.632,.132,.894],8855:[.632,.132,.894],8856:[.632,.132,.894],8857:[.632,.132,.894],8866:[.693,0,.703],8867:[.693,0,.703],8868:[.694,0,.894],8869:[.693,0,.894],8872:[.75,.249,.974],8876:[.711,.21,.703],8877:[.75,.249,.974],8900:[.523,.021,.575],8901:[.336,-.166,.319],8902:[.502,0,.575],8904:[.54,.039,1],8930:[.711,.21,.894],8931:[.711,.21,.894],8942:[.951,.029,.319],8943:[.336,-.166,1.295],8945:[.871,-.101,1.323],8968:[.75,.248,.511],8969:[.75,.248,.511],8970:[.749,.248,.511],8971:[.749,.248,.511],8994:[.405,-.108,1.15],8995:[.392,-.126,1.15],9001:[.75,.249,.447],9002:[.75,.249,.447],9651:[.711,0,1.022],9653:[.711,0,1.022],9657:[.54,.039,.575],9661:[.5,.21,1.022],9663:[.5,.21,1.022],9667:[.539,.038,.575],9711:[.711,.211,1.15],9824:[.719,.129,.894],9825:[.711,.024,.894],9826:[.719,.154,.894],9827:[.719,.129,.894],9837:[.75,.017,.447],9838:[.741,.223,.447],9839:[.724,.224,.447],10072:[.75,.249,.319],10216:[.75,.249,.447],10217:[.75,.249,.447],10229:[.518,.017,1.805],10230:[.518,.017,1.833],10231:[.518,.017,2.126],10232:[.547,.046,1.868],10233:[.547,.046,1.87],10234:[.547,.046,2.126],10236:[.518,.017,1.833],10744:[.711,.21,.894],10799:[.53,.028,.894],10815:[.686,0,.9],10927:[.696,.199,.894],10928:[.697,.199,.894],12296:[.75,.249,.447],12297:[.75,.249,.447]},Object.defineProperty(bold$1,"__esModule",{value:!0}),bold$1.bold=void 0;var FontData_js_1$g=FontData,bold_js_1$1=bold;bold$1.bold=(0,FontData_js_1$g.AddCSS)(bold_js_1$1.bold,{183:{c:"\\22C5"},305:{f:""},567:{f:""},697:{c:"\\2032"},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8407:{c:"\\2192",f:"VB"},8602:{c:"\\2190\\338"},8603:{c:"\\2192\\338"},8622:{c:"\\2194\\338"},8653:{c:"\\21D0\\338"},8654:{c:"\\21D4\\338"},8655:{c:"\\21D2\\338"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8740:{c:"\\2223\\338"},8742:{c:"\\2225\\338"},8769:{c:"\\223C\\338"},8772:{c:"\\2243\\338"},8775:{c:"\\2245\\338"},8777:{c:"\\2248\\338"},8802:{c:"\\2261\\338"},8813:{c:"\\224D\\338"},8814:{c:"<\\338"},8815:{c:">\\338"},8816:{c:"\\2264\\338"},8817:{c:"\\2265\\338"},8832:{c:"\\227A\\338"},8833:{c:"\\227B\\338"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{c:"\\2286\\338"},8841:{c:"\\2287\\338"},8876:{c:"\\22A2\\338"},8877:{c:"\\22A8\\338"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9653:{c:"\\25B3"},9663:{c:"\\25BD"},10072:{c:"\\2223"},10744:{c:"/",f:"BI"},10799:{c:"\\D7"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}});var doubleStruck$1={},doubleStruck={};Object.defineProperty(doubleStruck,"__esModule",{value:!0}),doubleStruck.doubleStruck=void 0,doubleStruck.doubleStruck={},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.doubleStruck=void 0;var t=doubleStruck;Object.defineProperty(e,"doubleStruck",{enumerable:!0,get:function(){return t.doubleStruck}})}(doubleStruck$1),getDefaultExportFromCjs$1(doubleStruck$1);var frakturBold$1={},frakturBold={};Object.defineProperty(frakturBold,"__esModule",{value:!0}),frakturBold.frakturBold=void 0,frakturBold.frakturBold={33:[.689,.012,.349],34:[.695,-.432,.254],38:[.696,.016,.871],39:[.695,-.436,.25],40:[.737,.186,.459],41:[.735,.187,.459],42:[.692,-.449,.328],43:[.598,.082,.893],44:[.107,.191,.328],45:[.275,-.236,.893],46:[.102,.015,.328],47:[.721,.182,.593],48:[.501,.012,.593],49:[.489,0,.593],50:[.491,0,.593],51:[.487,.193,.593],52:[.495,.196,.593],53:[.481,.19,.593],54:[.704,.012,.593],55:[.479,.197,.593],56:[.714,.005,.593],57:[.487,.195,.593],58:[.457,.012,.255],59:[.458,.19,.255],61:[.343,-.168,.582],63:[.697,.014,.428],91:[.74,.13,.257],93:[.738,.132,.257],94:[.734,-.452,.59],8216:[.708,-.411,.254],8217:[.692,-.394,.254],8260:[.721,.182,.593],58113:[.63,.027,.587],58114:[.693,.212,.394,{ic:.014}],58115:[.681,.219,.387],58116:[.473,.212,.593],58117:[.684,.027,.393],58120:[.679,.22,.981],58121:[.717,.137,.727]},Object.defineProperty(frakturBold$1,"__esModule",{value:!0}),frakturBold$1.frakturBold=void 0;var FontData_js_1$f=FontData,fraktur_bold_js_1$1=frakturBold;frakturBold$1.frakturBold=(0,FontData_js_1$f.AddCSS)(fraktur_bold_js_1$1.frakturBold,{8260:{c:"/"}});var fraktur$1={},fraktur={};Object.defineProperty(fraktur,"__esModule",{value:!0}),fraktur.fraktur=void 0,fraktur.fraktur={33:[.689,.012,.296],34:[.695,-.432,.215],38:[.698,.011,.738],39:[.695,-.436,.212],40:[.737,.186,.389],41:[.735,.187,.389],42:[.692,-.449,.278],43:[.598,.082,.756],44:[.107,.191,.278],45:[.275,-.236,.756],46:[.102,.015,.278],47:[.721,.182,.502],48:[.492,.013,.502],49:[.468,0,.502],50:[.474,0,.502],51:[.473,.182,.502],52:[.476,.191,.502],53:[.458,.184,.502],54:[.7,.013,.502],55:[.468,.181,.502],56:[.705,.01,.502],57:[.469,.182,.502],58:[.457,.012,.216],59:[.458,.189,.216],61:[.368,-.132,.756],63:[.693,.011,.362],91:[.74,.13,.278],93:[.738,.131,.278],94:[.734,-.452,.5],8216:[.708,-.41,.215],8217:[.692,-.395,.215],8260:[.721,.182,.502],58112:[.683,.032,.497],58113:[.616,.03,.498],58114:[.68,.215,.333],58115:[.679,.224,.329],58116:[.471,.214,.503],58117:[.686,.02,.333],58118:[.577,.021,.334,{ic:.013}],58119:[.475,.022,.501,{ic:.013}]},Object.defineProperty(fraktur$1,"__esModule",{value:!0}),fraktur$1.fraktur=void 0;var FontData_js_1$e=FontData,fraktur_js_1$1=fraktur;fraktur$1.fraktur=(0,FontData_js_1$e.AddCSS)(fraktur_js_1$1.fraktur,{8260:{c:"/"}});var italic$1={},italic={};Object.defineProperty(italic,"__esModule",{value:!0}),italic.italic=void 0,italic.italic={33:[.716,0,.307,{ic:.073}],34:[.694,-.379,.514,{ic:.024}],35:[.694,.194,.818,{ic:.01}],37:[.75,.056,.818,{ic:.029}],38:[.716,.022,.767,{ic:.035}],39:[.694,-.379,.307,{ic:.07}],40:[.75,.25,.409,{ic:.108}],41:[.75,.25,.409],42:[.75,-.32,.511,{ic:.073}],43:[.557,.057,.767],44:[.121,.194,.307],45:[.251,-.18,.358],46:[.121,0,.307],47:[.716,.215,.778],48:[.665,.021,.511,{ic:.051}],49:[.666,0,.511],50:[.666,.022,.511,{ic:.04}],51:[.666,.022,.511,{ic:.051}],52:[.666,.194,.511],53:[.666,.022,.511,{ic:.056}],54:[.665,.022,.511,{ic:.054}],55:[.666,.022,.511,{ic:.123}],56:[.666,.021,.511,{ic:.042}],57:[.666,.022,.511,{ic:.042}],58:[.431,0,.307],59:[.431,.194,.307],61:[.367,-.133,.767],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],93:[.75,.25,.307,{ic:.052}],94:[.694,-.527,.511,{ic:.017}],95:[-.025,.062,.511,{ic:.043}],126:[.318,-.208,.511,{ic:.06}],305:[.441,.01,.307,{ic:.033}],567:[.442,.204,.332],768:[.697,-.5,0],769:[.697,-.5,0,{ic:.039}],770:[.694,-.527,0,{ic:.017}],771:[.668,-.558,0,{ic:.06}],772:[.589,-.544,0,{ic:.054}],774:[.694,-.515,0,{ic:.062}],775:[.669,-.548,0],776:[.669,-.554,0,{ic:.045}],778:[.716,-.542,0],779:[.697,-.503,0,{ic:.065}],780:[.638,-.502,0,{ic:.029}],989:[.605,.085,.778],8211:[.285,-.248,.511,{ic:.043}],8212:[.285,-.248,1.022,{ic:.016}],8213:[.285,-.248,1.022,{ic:.016}],8215:[-.025,.062,.511,{ic:.043}],8216:[.694,-.379,.307,{ic:.055}],8217:[.694,-.379,.307,{ic:.07}],8220:[.694,-.379,.514,{ic:.092}],8221:[.694,-.379,.514,{ic:.024}],8260:[.716,.215,.778],8463:[.695,.013,.54,{ic:.022}],8710:[.716,0,.833,{sk:.167}],10744:[.716,.215,.778]},Object.defineProperty(italic$1,"__esModule",{value:!0}),italic$1.italic=void 0;var FontData_js_1$d=FontData,italic_js_1$1=italic;italic$1.italic=(0,FontData_js_1$d.AddCSS)(italic_js_1$1.italic,{47:{f:"I"},989:{c:"\\E008",f:"A"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/",f:"I"},8710:{c:"\\394",f:"I"},10744:{c:"/",f:"I"}});var largeop$1={},largeop={};Object.defineProperty(largeop,"__esModule",{value:!0}),largeop.largeop=void 0,largeop.largeop={40:[1.15,.649,.597],41:[1.15,.649,.597],47:[1.15,.649,.811],91:[1.15,.649,.472],92:[1.15,.649,.811],93:[1.15,.649,.472],123:[1.15,.649,.667],125:[1.15,.649,.667],710:[.772,-.565,1],732:[.75,-.611,1],770:[.772,-.565,0],771:[.75,-.611,0],8214:[.602,0,.778],8260:[1.15,.649,.811],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8730:[1.15,.65,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[1.36,.862,.556,{ic:.388}],8748:[1.36,.862,1.084,{ic:.388}],8749:[1.36,.862,1.592,{ic:.388}],8750:[1.36,.862,.556,{ic:.388}],8896:[.95,.45,1.111],8897:[.95,.45,1.111],8898:[.949,.45,1.111],8899:[.95,.449,1.111],8968:[1.15,.649,.528],8969:[1.15,.649,.528],8970:[1.15,.649,.528],8971:[1.15,.649,.528],9001:[1.15,.649,.611],9002:[1.15,.649,.611],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[1.15,.649,.611],10217:[1.15,.649,.611],10752:[.949,.449,1.511],10753:[.949,.449,1.511],10754:[.949,.449,1.511],10756:[.95,.449,1.111],10758:[.95,.45,1.111],10764:[1.36,.862,2.168,{ic:.388}],12296:[1.15,.649,.611],12297:[1.15,.649,.611]},Object.defineProperty(largeop$1,"__esModule",{value:!0}),largeop$1.largeop=void 0;var FontData_js_1$c=FontData,largeop_js_1$1=largeop;largeop$1.largeop=(0,FontData_js_1$c.AddCSS)(largeop_js_1$1.largeop,{8214:{f:"S1"},8260:{c:"/"},8593:{f:"S1"},8595:{f:"S1"},8657:{f:"S1"},8659:{f:"S1"},8739:{f:"S1"},8741:{f:"S1"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},10072:{c:"\\2223",f:"S1"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}});var monospace$1={},monospace={};Object.defineProperty(monospace,"__esModule",{value:!0}),monospace.monospace=void 0,monospace.monospace={32:[0,0,.525],33:[.622,0,.525],34:[.623,-.333,.525],35:[.611,0,.525],36:[.694,.082,.525],37:[.694,.083,.525],38:[.622,.011,.525],39:[.611,-.287,.525],40:[.694,.082,.525],41:[.694,.082,.525],42:[.52,-.09,.525],43:[.531,-.081,.525],44:[.14,.139,.525],45:[.341,-.271,.525],46:[.14,0,.525],47:[.694,.083,.525],58:[.431,0,.525],59:[.431,.139,.525],60:[.557,-.055,.525],61:[.417,-.195,.525],62:[.557,-.055,.525],63:[.617,0,.525],64:[.617,.006,.525],91:[.694,.082,.525],92:[.694,.083,.525],93:[.694,.082,.525],94:[.611,-.46,.525],95:[-.025,.095,.525],96:[.681,-.357,.525],123:[.694,.083,.525],124:[.694,.082,.525],125:[.694,.083,.525],126:[.611,-.466,.525],127:[.612,-.519,.525],160:[0,0,.525],305:[.431,0,.525],567:[.431,.228,.525],697:[.623,-.334,.525],768:[.611,-.485,0],769:[.611,-.485,0],770:[.611,-.46,0],771:[.611,-.466,0],772:[.577,-.5,0],774:[.611,-.504,0],776:[.612,-.519,0],778:[.619,-.499,0],780:[.577,-.449,0],913:[.623,0,.525],914:[.611,0,.525],915:[.611,0,.525],916:[.623,0,.525],917:[.611,0,.525],918:[.611,0,.525],919:[.611,0,.525],920:[.621,.01,.525],921:[.611,0,.525],922:[.611,0,.525],923:[.623,0,.525],924:[.611,0,.525],925:[.611,0,.525],926:[.611,0,.525],927:[.621,.01,.525],928:[.611,0,.525],929:[.611,0,.525],931:[.611,0,.525],932:[.611,0,.525],933:[.622,0,.525],934:[.611,0,.525],935:[.611,0,.525],936:[.611,0,.525],937:[.622,0,.525],8215:[-.025,.095,.525],8242:[.623,-.334,.525],8243:[.623,0,1.05],8244:[.623,0,1.575],8260:[.694,.083,.525],8279:[.623,0,2.1],8710:[.623,0,.525]},Object.defineProperty(monospace$1,"__esModule",{value:!0}),monospace$1.monospace=void 0;var FontData_js_1$b=FontData,monospace_js_1$1=monospace;monospace$1.monospace=(0,FontData_js_1$b.AddCSS)(monospace_js_1$1.monospace,{697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8215:{c:"_"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8710:{c:"\\394"}});var normal$1={},normal={};Object.defineProperty(normal,"__esModule",{value:!0}),normal.normal=void 0,normal.normal={32:[0,0,.25],33:[.716,0,.278],34:[.694,-.379,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.694,-.379,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.32,.5],43:[.583,.082,.778],44:[.121,.194,.278],45:[.252,-.179,.333],46:[.12,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5],51:[.665,.022,.5],52:[.677,0,.5],53:[.666,.022,.5],54:[.666,.022,.5],55:[.676,.022,.5],56:[.666,.022,.5],57:[.666,.022,.5],58:[.43,0,.278],59:[.43,.194,.278],60:[.54,.04,.778],61:[.583,.082,.778],62:[.54,.04,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708],67:[.705,.021,.722],68:[.683,0,.764],69:[.68,0,.681],70:[.68,0,.653],71:[.705,.022,.785],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514],75:[.683,0,.778],76:[.683,0,.625],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681],81:[.705,.193,.778],82:[.683,.022,.736],83:[.705,.022,.556],84:[.677,0,.722],85:[.683,.022,.75],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75],89:[.683,0,.75],90:[.683,0,.611],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.694,-.531,.5],95:[-.025,.062,.5],96:[.699,-.505,.5],97:[.448,.011,.5],98:[.694,.011,.556],99:[.448,.011,.444],100:[.694,.011,.556],101:[.448,.011,.444],102:[.705,0,.306,{ic:.066}],103:[.453,.206,.5],104:[.694,0,.556],105:[.669,0,.278],106:[.669,.205,.306],107:[.694,0,.528],108:[.694,0,.278],109:[.442,0,.833],110:[.442,0,.556],111:[.448,.01,.5],112:[.442,.194,.556],113:[.442,.194,.528],114:[.442,0,.392],115:[.448,.011,.394],116:[.615,.01,.389],117:[.442,.011,.556],118:[.431,.011,.528],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.204,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.249,.278],125:[.75,.25,.5],126:[.318,-.215,.5],160:[0,0,.25],163:[.714,.011,.769],165:[.683,0,.75],168:[.669,-.554,.5],172:[.356,-.089,.667],174:[.709,.175,.947],175:[.59,-.544,.5],176:[.715,-.542,.5],177:[.666,0,.778],180:[.699,-.505,.5],183:[.31,-.19,.278],215:[.491,-.009,.778],240:[.749,.021,.556],247:[.537,.036,.778],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.56,-.043,.275],710:[.694,-.531,.5],711:[.644,-.513,.5],713:[.59,-.544,.5],714:[.699,-.505,.5],715:[.699,-.505,.5],728:[.694,-.515,.5],729:[.669,-.549,.5],730:[.715,-.542,.5],732:[.668,-.565,.5],768:[.699,-.505,0],769:[.699,-.505,0],770:[.694,-.531,0],771:[.668,-.565,0],772:[.59,-.544,0],774:[.694,-.515,0],775:[.669,-.549,0],776:[.669,-.554,0],778:[.715,-.542,0],779:[.701,-.51,0],780:[.644,-.513,0],824:[.716,.215,0],913:[.716,0,.75],914:[.683,0,.708],915:[.68,0,.625],916:[.716,0,.833],917:[.68,0,.681],918:[.683,0,.611],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778],923:[.716,0,.694],924:[.683,0,.917],925:[.683,0,.75],926:[.677,0,.667],927:[.705,.022,.778],928:[.68,0,.75],929:[.683,0,.681],931:[.683,0,.722],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75],936:[.683,0,.778],937:[.704,0,.722],8192:[0,0,.5],8193:[0,0,1],8194:[0,0,.5],8195:[0,0,1],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.1],8203:[0,0,0],8204:[0,0,0],8211:[.285,-.248,.5],8212:[.285,-.248,1],8213:[.285,-.248,1],8214:[.75,.25,.5],8215:[-.025,.062,.5],8216:[.694,-.379,.278],8217:[.694,-.379,.278],8220:[.694,-.379,.5],8221:[.694,-.379,.5],8224:[.705,.216,.444],8225:[.705,.205,.444],8226:[.444,-.055,.5],8230:[.12,0,1.172],8242:[.56,-.043,.275],8243:[.56,0,.55],8244:[.56,0,.825],8245:[.56,-.043,.275],8246:[.56,0,.55],8247:[.56,0,.825],8254:[.59,-.544,.5],8260:[.75,.25,.5],8279:[.56,0,1.1],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8407:[.714,-.516,.5],8450:[.702,.019,.722],8459:[.717,.036,.969,{ic:.272,sk:.333}],8460:[.666,.133,.72],8461:[.683,0,.778],8462:[.694,.011,.576,{sk:-.0278}],8463:[.695,.013,.54,{ic:.022}],8464:[.717,.017,.809,{ic:.137,sk:.333}],8465:[.686,.026,.554],8466:[.717,.017,.874,{ic:.161,sk:.306}],8467:[.705,.02,.417,{sk:.111}],8469:[.683,.02,.722],8472:[.453,.216,.636,{sk:.111}],8473:[.683,0,.611],8474:[.701,.181,.778],8475:[.717,.017,.85,{ic:.037,sk:.194}],8476:[.686,.026,.828],8477:[.683,0,.722],8484:[.683,0,.667],8486:[.704,0,.722],8487:[.684,.022,.722],8488:[.729,.139,.602],8492:[.708,.028,.908,{ic:.02,sk:.194}],8493:[.685,.024,.613],8496:[.707,.008,.562,{ic:.156,sk:.139}],8497:[.735,.036,.895,{ic:.095,sk:.222}],8498:[.695,0,.556],8499:[.721,.05,1.08,{ic:.136,sk:.444}],8501:[.694,0,.611],8502:[.763,.021,.667,{ic:.02}],8503:[.764,.043,.444],8504:[.764,.043,.667],8513:[.705,.023,.639],8592:[.511,.011,1],8593:[.694,.193,.5],8594:[.511,.011,1],8595:[.694,.194,.5],8596:[.511,.011,1],8597:[.772,.272,.5],8598:[.72,.195,1],8599:[.72,.195,1],8600:[.695,.22,1],8601:[.695,.22,1],8602:[.437,-.06,1],8603:[.437,-.06,1],8606:[.417,-.083,1],8608:[.417,-.083,1],8610:[.417,-.083,1.111],8611:[.417,-.083,1.111],8614:[.511,.011,1],8617:[.511,.011,1.126],8618:[.511,.011,1.126],8619:[.575,.041,1],8620:[.575,.041,1],8621:[.417,-.083,1.389],8622:[.437,-.06,1],8624:[.722,0,.5],8625:[.722,0,.5],8630:[.461,0,1],8631:[.46,0,1],8634:[.65,.083,.778],8635:[.65,.083,.778],8636:[.511,-.23,1],8637:[.27,.011,1],8638:[.694,.194,.417],8639:[.694,.194,.417],8640:[.511,-.23,1],8641:[.27,.011,1],8642:[.694,.194,.417],8643:[.694,.194,.417],8644:[.667,0,1],8646:[.667,0,1],8647:[.583,.083,1],8648:[.694,.193,.833],8649:[.583,.083,1],8650:[.694,.194,.833],8651:[.514,.014,1],8652:[.671,.011,1],8653:[.534,.035,1],8654:[.534,.037,1],8655:[.534,.035,1],8656:[.525,.024,1],8657:[.694,.194,.611],8658:[.525,.024,1],8659:[.694,.194,.611],8660:[.526,.025,1],8661:[.772,.272,.611],8666:[.611,.111,1],8667:[.611,.111,1],8669:[.417,-.083,1],8672:[.437,-.064,1.334],8674:[.437,-.064,1.334],8704:[.694,.022,.556],8705:[.846,.021,.5],8706:[.715,.022,.531,{ic:.035,sk:.0833}],8707:[.694,0,.556],8708:[.716,.215,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.54,.04,.667],8713:[.716,.215,.667],8715:[.54,.04,.667],8716:[.716,.215,.667],8717:[.44,0,.429,{ic:.027}],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.082,.778],8723:[.5,.166,.778],8724:[.766,.093,.778],8725:[.75,.25,.5],8726:[.75,.25,.5],8727:[.465,-.035,.5],8728:[.444,-.055,.5],8729:[.444,-.055,.5],8730:[.8,.2,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8736:[.694,0,.722],8737:[.714,.02,.722],8738:[.551,.051,.722],8739:[.75,.249,.278],8740:[.75,.252,.278,{ic:.019}],8741:[.75,.25,.5],8742:[.75,.25,.5,{ic:.018}],8743:[.598,.022,.667],8744:[.598,.022,.667],8745:[.598,.022,.667],8746:[.598,.022,.667],8747:[.716,.216,.417,{ic:.055}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8756:[.471,.082,.667],8757:[.471,.082,.667],8764:[.367,-.133,.778],8765:[.367,-.133,.778],8768:[.583,.083,.278],8769:[.467,-.032,.778],8770:[.463,-.034,.778],8771:[.464,-.036,.778],8772:[.716,.215,.778],8773:[.589,-.022,.778],8775:[.652,.155,.778],8776:[.483,-.055,.778],8777:[.716,.215,.778],8778:[.579,.039,.778],8781:[.484,-.016,.778],8782:[.492,-.008,.778],8783:[.492,-.133,.778],8784:[.67,-.133,.778],8785:[.609,.108,.778],8786:[.601,.101,.778],8787:[.601,.102,.778],8790:[.367,-.133,.778],8791:[.721,-.133,.778],8796:[.859,-.133,.778],8800:[.716,.215,.778],8801:[.464,-.036,.778],8802:[.716,.215,.778],8804:[.636,.138,.778],8805:[.636,.138,.778],8806:[.753,.175,.778],8807:[.753,.175,.778],8808:[.752,.286,.778],8809:[.752,.286,.778],8810:[.568,.067,1],8811:[.567,.067,1],8812:[.75,.25,.5],8813:[.716,.215,.778],8814:[.708,.209,.778],8815:[.708,.209,.778],8816:[.801,.303,.778],8817:[.801,.303,.778],8818:[.732,.228,.778],8819:[.732,.228,.778],8820:[.732,.228,.778],8821:[.732,.228,.778],8822:[.681,.253,.778],8823:[.681,.253,.778],8824:[.716,.253,.778],8825:[.716,.253,.778],8826:[.539,.041,.778],8827:[.539,.041,.778],8828:[.58,.153,.778],8829:[.58,.154,.778],8830:[.732,.228,.778],8831:[.732,.228,.778],8832:[.705,.208,.778],8833:[.705,.208,.778],8834:[.54,.04,.778],8835:[.54,.04,.778],8836:[.716,.215,.778],8837:[.716,.215,.778],8838:[.636,.138,.778],8839:[.636,.138,.778],8840:[.801,.303,.778],8841:[.801,.303,.778],8842:[.635,.241,.778],8843:[.635,.241,.778],8846:[.598,.022,.667],8847:[.539,.041,.778],8848:[.539,.041,.778],8849:[.636,.138,.778],8850:[.636,.138,.778],8851:[.598,0,.667],8852:[.598,0,.667],8853:[.583,.083,.778],8854:[.583,.083,.778],8855:[.583,.083,.778],8856:[.583,.083,.778],8857:[.583,.083,.778],8858:[.582,.082,.778],8859:[.582,.082,.778],8861:[.582,.082,.778],8862:[.689,0,.778],8863:[.689,0,.778],8864:[.689,0,.778],8865:[.689,0,.778],8866:[.694,0,.611],8867:[.694,0,.611],8868:[.668,0,.778],8869:[.668,0,.778],8872:[.75,.249,.867],8873:[.694,0,.722],8874:[.694,0,.889],8876:[.695,0,.611],8877:[.695,0,.611],8878:[.695,0,.722],8879:[.695,0,.722],8882:[.539,.041,.778],8883:[.539,.041,.778],8884:[.636,.138,.778],8885:[.636,.138,.778],8888:[.408,-.092,1.111],8890:[.431,.212,.556],8891:[.716,0,.611],8892:[.716,0,.611],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8900:[.488,-.012,.5],8901:[.31,-.19,.278],8902:[.486,-.016,.5],8903:[.545,.044,.778],8904:[.505,.005,.9],8905:[.492,-.008,.778],8906:[.492,-.008,.778],8907:[.694,.022,.778],8908:[.694,.022,.778],8909:[.464,-.036,.778],8910:[.578,.021,.76],8911:[.578,.022,.76],8912:[.54,.04,.778],8913:[.54,.04,.778],8914:[.598,.022,.667],8915:[.598,.022,.667],8916:[.736,.022,.667],8918:[.541,.041,.778],8919:[.541,.041,.778],8920:[.568,.067,1.333],8921:[.568,.067,1.333],8922:[.886,.386,.778],8923:[.886,.386,.778],8926:[.734,0,.778],8927:[.734,0,.778],8928:[.801,.303,.778],8929:[.801,.303,.778],8930:[.716,.215,.778],8931:[.716,.215,.778],8934:[.73,.359,.778],8935:[.73,.359,.778],8936:[.73,.359,.778],8937:[.73,.359,.778],8938:[.706,.208,.778],8939:[.706,.208,.778],8940:[.802,.303,.778],8941:[.801,.303,.778],8942:[1.3,.03,.278],8943:[.31,-.19,1.172],8945:[1.52,-.1,1.282],8965:[.716,0,.611],8966:[.813,.097,.611],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8988:[.694,-.306,.5],8989:[.694,-.306,.5],8990:[.366,.022,.5],8991:[.366,.022,.5],8994:[.388,-.122,1],8995:[.378,-.134,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9136:[.744,.244,.412],9137:[.744,.244,.412],9168:[.602,0,.667],9416:[.709,.175,.902],9484:[.694,-.306,.5],9488:[.694,-.306,.5],9492:[.366,.022,.5],9496:[.366,.022,.5],9585:[.694,.195,.889],9586:[.694,.195,.889],9632:[.689,0,.778],9633:[.689,0,.778],9642:[.689,0,.778],9650:[.575,.02,.722],9651:[.716,0,.889],9652:[.575,.02,.722],9653:[.716,0,.889],9654:[.539,.041,.778],9656:[.539,.041,.778],9657:[.505,.005,.5],9660:[.576,.019,.722],9661:[.5,.215,.889],9662:[.576,.019,.722],9663:[.5,.215,.889],9664:[.539,.041,.778],9666:[.539,.041,.778],9667:[.505,.005,.5],9674:[.716,.132,.667],9711:[.715,.215,1],9723:[.689,0,.778],9724:[.689,0,.778],9733:[.694,.111,.944],9824:[.727,.13,.778],9825:[.716,.033,.778],9826:[.727,.162,.778],9827:[.726,.13,.778],9837:[.75,.022,.389],9838:[.734,.223,.389],9839:[.723,.223,.389],10003:[.706,.034,.833],10016:[.716,.022,.833],10072:[.75,.249,.278],10216:[.75,.25,.389],10217:[.75,.25,.389],10222:[.744,.244,.412],10223:[.744,.244,.412],10229:[.511,.011,1.609],10230:[.511,.011,1.638],10231:[.511,.011,1.859],10232:[.525,.024,1.609],10233:[.525,.024,1.638],10234:[.525,.024,1.858],10236:[.511,.011,1.638],10731:[.716,.132,.667],10744:[.716,.215,.778],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],10799:[.491,-.009,.778],10815:[.683,0,.75],10846:[.813,.097,.611],10877:[.636,.138,.778],10878:[.636,.138,.778],10885:[.762,.29,.778],10886:[.762,.29,.778],10887:[.635,.241,.778],10888:[.635,.241,.778],10889:[.761,.387,.778],10890:[.761,.387,.778],10891:[1.003,.463,.778],10892:[1.003,.463,.778],10901:[.636,.138,.778],10902:[.636,.138,.778],10927:[.636,.138,.778],10928:[.636,.138,.778],10933:[.752,.286,.778],10934:[.752,.286,.778],10935:[.761,.294,.778],10936:[.761,.294,.778],10937:[.761,.337,.778],10938:[.761,.337,.778],10949:[.753,.215,.778],10950:[.753,.215,.778],10955:[.783,.385,.778],10956:[.783,.385,.778],12296:[.75,.25,.389],12297:[.75,.25,.389],57350:[.43,.023,.222,{ic:.018}],57351:[.431,.024,.389,{ic:.018}],57352:[.605,.085,.778],57353:[.434,.006,.667,{ic:.067}],57356:[.752,.284,.778],57357:[.752,.284,.778],57358:[.919,.421,.778],57359:[.801,.303,.778],57360:[.801,.303,.778],57361:[.919,.421,.778],57366:[.828,.33,.778],57367:[.752,.332,.778],57368:[.828,.33,.778],57369:[.752,.333,.778],57370:[.634,.255,.778],57371:[.634,.254,.778],119808:[.698,0,.869],119809:[.686,0,.818],119810:[.697,.011,.831],119811:[.686,0,.882],119812:[.68,0,.756],119813:[.68,0,.724],119814:[.697,.01,.904],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594],119818:[.686,0,.901],119819:[.686,0,.692],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.696,.01,.864],119823:[.686,0,.786],119824:[.696,.193,.864],119825:[.686,.011,.862],119826:[.697,.011,.639],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.007,.869],119830:[.686,.007,1.189],119831:[.686,0,.869],119832:[.686,0,.869],119833:[.686,0,.703],119834:[.453,.006,.559],119835:[.694,.006,.639],119836:[.453,.006,.511],119837:[.694,.006,.639],119838:[.452,.006,.527],119839:[.7,0,.351,{ic:.101}],119840:[.455,.201,.575],119841:[.694,0,.639],119842:[.695,0,.319],119843:[.695,.2,.351],119844:[.694,0,.607],119845:[.694,0,.319],119846:[.45,0,.958],119847:[.45,0,.639],119848:[.452,.005,.575],119849:[.45,.194,.639],119850:[.45,.194,.607],119851:[.45,0,.474],119852:[.453,.006,.454],119853:[.635,.005,.447],119854:[.45,.006,.639],119855:[.444,0,.607],119856:[.444,0,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.139}],119861:[.683,0,.759,{sk:.0833}],119862:[.705,.022,.715,{ic:.045,sk:.0833}],119863:[.683,0,.828,{sk:.0556}],119864:[.68,0,.738,{ic:.026,sk:.0833}],119865:[.68,0,.643,{ic:.106,sk:.0833}],119866:[.705,.022,.786,{sk:.0833}],119867:[.683,0,.831,{ic:.057,sk:.0556}],119868:[.683,0,.44,{ic:.064,sk:.111}],119869:[.683,.022,.555,{ic:.078,sk:.167}],119870:[.683,0,.849,{ic:.04,sk:.0556}],119871:[.683,0,.681,{sk:.0278}],119872:[.683,0,.97,{ic:.081,sk:.0833}],119873:[.683,0,.803,{ic:.085,sk:.0833}],119874:[.704,.022,.763,{sk:.0833}],119875:[.683,0,.642,{ic:.109,sk:.0833}],119876:[.704,.194,.791,{sk:.0833}],119877:[.683,.021,.759,{sk:.0833}],119878:[.705,.022,.613,{ic:.032,sk:.0833}],119879:[.677,0,.584,{ic:.12,sk:.0833}],119880:[.683,.022,.683,{ic:.084,sk:.0278}],119881:[.683,.022,.583,{ic:.186}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.024,sk:.0833}],119884:[.683,0,.581,{ic:.182}],119885:[.683,0,.683,{ic:.04,sk:.0833}],119886:[.441,.01,.529],119887:[.694,.011,.429],119888:[.442,.011,.433,{sk:.0556}],119889:[.694,.01,.52,{sk:.167}],119890:[.442,.011,.466,{sk:.0556}],119891:[.705,.205,.49,{ic:.06,sk:.167}],119892:[.442,.205,.477,{sk:.0278}],119894:[.661,.011,.345],119895:[.661,.204,.412],119896:[.694,.011,.521],119897:[.694,.011,.298,{sk:.0833}],119898:[.442,.011,.878],119899:[.442,.011,.6],119900:[.441,.011,.485,{sk:.0556}],119901:[.442,.194,.503,{sk:.0833}],119902:[.442,.194,.446,{ic:.014,sk:.0833}],119903:[.442,.011,.451,{sk:.0556}],119904:[.442,.01,.469,{sk:.0556}],119905:[.626,.011,.361,{sk:.0833}],119906:[.442,.011,.572,{sk:.0278}],119907:[.443,.011,.485,{sk:.0278}],119908:[.443,.011,.716,{sk:.0833}],119909:[.442,.011,.572,{sk:.0278}],119910:[.442,.205,.49,{sk:.0556}],119911:[.442,.011,.465,{sk:.0556}],119912:[.711,0,.869,{sk:.16}],119913:[.686,0,.866,{sk:.0958}],119914:[.703,.017,.817,{ic:.038,sk:.0958}],119915:[.686,0,.938,{sk:.0639}],119916:[.68,0,.81,{ic:.015,sk:.0958}],119917:[.68,0,.689,{ic:.12,sk:.0958}],119918:[.703,.016,.887,{sk:.0958}],119919:[.686,0,.982,{ic:.045,sk:.0639}],119920:[.686,0,.511,{ic:.062,sk:.128}],119921:[.686,.017,.631,{ic:.063,sk:.192}],119922:[.686,0,.971,{ic:.032,sk:.0639}],119923:[.686,0,.756,{sk:.0319}],119924:[.686,0,1.142,{ic:.077,sk:.0958}],119925:[.686,0,.95,{ic:.077,sk:.0958}],119926:[.703,.017,.837,{sk:.0958}],119927:[.686,0,.723,{ic:.124,sk:.0958}],119928:[.703,.194,.869,{sk:.0958}],119929:[.686,.017,.872,{sk:.0958}],119930:[.703,.017,.693,{ic:.021,sk:.0958}],119931:[.675,0,.637,{ic:.135,sk:.0958}],119932:[.686,.016,.8,{ic:.077,sk:.0319}],119933:[.686,.016,.678,{ic:.208}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{sk:.0958}],119936:[.686,0,.675,{ic:.201}],119937:[.686,0,.773,{ic:.032,sk:.0958}],119938:[.452,.008,.633],119939:[.694,.008,.521],119940:[.451,.008,.513,{sk:.0639}],119941:[.694,.008,.61,{sk:.192}],119942:[.452,.008,.554,{sk:.0639}],119943:[.701,.201,.568,{ic:.056,sk:.192}],119944:[.452,.202,.545,{sk:.0319}],119945:[.694,.008,.668,{sk:-.0319}],119946:[.694,.008,.405],119947:[.694,.202,.471],119948:[.694,.008,.604],119949:[.694,.008,.348,{sk:.0958}],119950:[.452,.008,1.032],119951:[.452,.008,.713],119952:[.452,.008,.585,{sk:.0639}],119953:[.452,.194,.601,{sk:.0958}],119954:[.452,.194,.542,{sk:.0958}],119955:[.452,.008,.529,{sk:.0639}],119956:[.451,.008,.531,{sk:.0639}],119957:[.643,.007,.415,{sk:.0958}],119958:[.452,.008,.681,{sk:.0319}],119959:[.453,.008,.567,{sk:.0319}],119960:[.453,.008,.831,{sk:.0958}],119961:[.452,.008,.659,{sk:.0319}],119962:[.452,.202,.59,{sk:.0639}],119963:[.452,.008,.555,{sk:.0639}],119964:[.717,.008,.803,{ic:.213,sk:.389}],119966:[.728,.026,.666,{ic:.153,sk:.278}],119967:[.708,.031,.774,{ic:.081,sk:.111}],119970:[.717,.037,.61,{ic:.128,sk:.25}],119973:[.717,.314,1.052,{ic:.081,sk:.417}],119974:[.717,.037,.914,{ic:.29,sk:.361}],119977:[.726,.036,.902,{ic:.306,sk:.389}],119978:[.707,.008,.738,{ic:.067,sk:.167}],119979:[.716,.037,1.013,{ic:.018,sk:.222}],119980:[.717,.017,.883,{sk:.278}],119982:[.708,.036,.868,{ic:.148,sk:.333}],119983:[.735,.037,.747,{ic:.249,sk:.222}],119984:[.717,.017,.8,{ic:.16,sk:.25}],119985:[.717,.017,.622,{ic:.228,sk:.222}],119986:[.717,.017,.805,{ic:.221,sk:.25}],119987:[.717,.017,.944,{ic:.187,sk:.278}],119988:[.716,.017,.71,{ic:.249,sk:.194}],119989:[.717,.016,.821,{ic:.211,sk:.306}],120068:[.696,.026,.718],120069:[.691,.027,.884],120071:[.685,.027,.832],120072:[.685,.024,.663],120073:[.686,.153,.611],120074:[.69,.026,.785],120077:[.686,.139,.552],120078:[.68,.027,.668,{ic:.014}],120079:[.686,.026,.666],120080:[.692,.027,1.05],120081:[.686,.025,.832],120082:[.729,.027,.827],120083:[.692,.218,.828],120084:[.729,.069,.827],120086:[.692,.027,.829],120087:[.701,.027,.669],120088:[.697,.027,.646,{ic:.019}],120089:[.686,.026,.831],120090:[.686,.027,1.046],120091:[.688,.027,.719],120092:[.686,.218,.833],120094:[.47,.035,.5],120095:[.685,.031,.513],120096:[.466,.029,.389],120097:[.609,.033,.499],120098:[.467,.03,.401],120099:[.681,.221,.326],120100:[.47,.209,.504],120101:[.688,.205,.521],120102:[.673,.02,.279],120103:[.672,.208,.281],120104:[.689,.025,.389],120105:[.685,.02,.28],120106:[.475,.026,.767],120107:[.475,.022,.527],120108:[.48,.028,.489],120109:[.541,.212,.5],120110:[.479,.219,.489],120111:[.474,.021,.389],120112:[.478,.029,.443],120113:[.64,.02,.333,{ic:.015}],120114:[.474,.023,.517],120115:[.53,.028,.512],120116:[.532,.028,.774],120117:[.472,.188,.389],120118:[.528,.218,.499],120119:[.471,.214,.391],120120:[.701,0,.722],120121:[.683,0,.667],120123:[.683,0,.722],120124:[.683,0,.667],120125:[.683,0,.611],120126:[.702,.019,.778],120128:[.683,0,.389],120129:[.683,.077,.5],120130:[.683,0,.778],120131:[.683,0,.667],120132:[.683,0,.944],120134:[.701,.019,.778],120138:[.702,.012,.556],120139:[.683,0,.667],120140:[.683,.019,.722],120141:[.683,.02,.722],120142:[.683,.019,1],120143:[.683,0,.722],120144:[.683,0,.722],120172:[.686,.031,.847],120173:[.684,.031,1.044],120174:[.676,.032,.723],120175:[.683,.029,.982],120176:[.686,.029,.783],120177:[.684,.146,.722],120178:[.687,.029,.927],120179:[.683,.126,.851],120180:[.681,.025,.655],120181:[.68,.141,.652],120182:[.681,.026,.789,{ic:.017}],120183:[.683,.028,.786],120184:[.683,.032,1.239],120185:[.679,.03,.983],120186:[.726,.03,.976],120187:[.688,.223,.977],120188:[.726,.083,.976],120189:[.688,.028,.978],120190:[.685,.031,.978],120191:[.686,.03,.79,{ic:.012}],120192:[.688,.039,.851,{ic:.02}],120193:[.685,.029,.982],120194:[.683,.03,1.235],120195:[.681,.035,.849],120196:[.688,.214,.984],120197:[.677,.148,.711],120198:[.472,.032,.603],120199:[.69,.032,.59],120200:[.473,.026,.464],120201:[.632,.028,.589],120202:[.471,.027,.472],120203:[.687,.222,.388],120204:[.472,.208,.595],120205:[.687,.207,.615],120206:[.686,.025,.331],120207:[.682,.203,.332],120208:[.682,.025,.464],120209:[.681,.024,.337],120210:[.476,.031,.921],120211:[.473,.028,.654],120212:[.482,.034,.609],120213:[.557,.207,.604],120214:[.485,.211,.596],120215:[.472,.026,.46],120216:[.479,.034,.523],120217:[.648,.027,.393,{ic:.014}],120218:[.472,.032,.589,{ic:.014}],120219:[.546,.027,.604],120220:[.549,.032,.918],120221:[.471,.188,.459],120222:[.557,.221,.589],120223:[.471,.214,.461],120224:[.694,0,.667],120225:[.694,0,.667],120226:[.705,.011,.639],120227:[.694,0,.722],120228:[.691,0,.597],120229:[.691,0,.569],120230:[.704,.011,.667],120231:[.694,0,.708],120232:[.694,0,.278],120233:[.694,.022,.472],120234:[.694,0,.694],120235:[.694,0,.542],120236:[.694,0,.875],120237:[.694,0,.708],120238:[.715,.022,.736],120239:[.694,0,.639],120240:[.715,.125,.736],120241:[.694,0,.646],120242:[.716,.022,.556],120243:[.688,0,.681],120244:[.694,.022,.688],120245:[.694,0,.667],120246:[.694,0,.944],120247:[.694,0,.667],120248:[.694,0,.667],120249:[.694,0,.611],120250:[.46,.01,.481],120251:[.694,.011,.517],120252:[.46,.01,.444],120253:[.694,.01,.517],120254:[.461,.01,.444],120255:[.705,0,.306,{ic:.041}],120256:[.455,.206,.5],120257:[.694,0,.517],120258:[.68,0,.239],120259:[.68,.205,.267],120260:[.694,0,.489],120261:[.694,0,.239],120262:[.455,0,.794],120263:[.455,0,.517],120264:[.46,.01,.5],120265:[.455,.194,.517],120266:[.455,.194,.517],120267:[.455,0,.342],120268:[.46,.01,.383],120269:[.571,.01,.361],120270:[.444,.01,.517],120271:[.444,0,.461],120272:[.444,0,.683],120273:[.444,0,.461],120274:[.444,.204,.461],120275:[.444,0,.435],120276:[.694,0,.733],120277:[.694,0,.733],120278:[.704,.011,.703],120279:[.694,0,.794],120280:[.691,0,.642],120281:[.691,0,.611],120282:[.705,.011,.733],120283:[.694,0,.794],120284:[.694,0,.331],120285:[.694,.022,.519],120286:[.694,0,.764],120287:[.694,0,.581],120288:[.694,0,.978],120289:[.694,0,.794],120290:[.716,.022,.794],120291:[.694,0,.703],120292:[.716,.106,.794],120293:[.694,0,.703],120294:[.716,.022,.611],120295:[.688,0,.733],120296:[.694,.022,.764],120297:[.694,0,.733],120298:[.694,0,1.039],120299:[.694,0,.733],120300:[.694,0,.733],120301:[.694,0,.672],120302:[.475,.011,.525],120303:[.694,.01,.561],120304:[.475,.011,.489],120305:[.694,.011,.561],120306:[.474,.01,.511],120307:[.705,0,.336,{ic:.045}],120308:[.469,.206,.55],120309:[.694,0,.561],120310:[.695,0,.256],120311:[.695,.205,.286],120312:[.694,0,.531],120313:[.694,0,.256],120314:[.469,0,.867],120315:[.468,0,.561],120316:[.474,.011,.55],120317:[.469,.194,.561],120318:[.469,.194,.561],120319:[.469,0,.372],120320:[.474,.01,.422],120321:[.589,.01,.404],120322:[.458,.011,.561],120323:[.458,0,.5],120324:[.458,0,.744],120325:[.458,0,.5],120326:[.458,.205,.5],120327:[.458,0,.476],120328:[.694,0,.667],120329:[.694,0,.667,{ic:.029}],120330:[.705,.01,.639,{ic:.08}],120331:[.694,0,.722,{ic:.025}],120332:[.691,0,.597,{ic:.091}],120333:[.691,0,.569,{ic:.104}],120334:[.705,.011,.667,{ic:.063}],120335:[.694,0,.708,{ic:.06}],120336:[.694,0,.278,{ic:.06}],120337:[.694,.022,.472,{ic:.063}],120338:[.694,0,.694,{ic:.091}],120339:[.694,0,.542],120340:[.694,0,.875,{ic:.054}],120341:[.694,0,.708,{ic:.058}],120342:[.716,.022,.736,{ic:.027}],120343:[.694,0,.639,{ic:.051}],120344:[.716,.125,.736,{ic:.027}],120345:[.694,0,.646,{ic:.052}],120346:[.716,.022,.556,{ic:.053}],120347:[.688,0,.681,{ic:.109}],120348:[.694,.022,.688,{ic:.059}],120349:[.694,0,.667,{ic:.132}],120350:[.694,0,.944,{ic:.132}],120351:[.694,0,.667,{ic:.091}],120352:[.694,0,.667,{ic:.143}],120353:[.694,0,.611,{ic:.091}],120354:[.461,.01,.481],120355:[.694,.011,.517,{ic:.022}],120356:[.46,.011,.444,{ic:.055}],120357:[.694,.01,.517,{ic:.071}],120358:[.46,.011,.444,{ic:.028}],120359:[.705,0,.306,{ic:.188}],120360:[.455,.206,.5,{ic:.068}],120361:[.694,0,.517],120362:[.68,0,.239,{ic:.076}],120363:[.68,.204,.267,{ic:.069}],120364:[.694,0,.489,{ic:.054}],120365:[.694,0,.239,{ic:.072}],120366:[.455,0,.794],120367:[.454,0,.517],120368:[.461,.011,.5,{ic:.023}],120369:[.455,.194,.517,{ic:.021}],120370:[.455,.194,.517,{ic:.021}],120371:[.455,0,.342,{ic:.082}],120372:[.461,.011,.383,{ic:.053}],120373:[.571,.011,.361,{ic:.049}],120374:[.444,.01,.517,{ic:.02}],120375:[.444,0,.461,{ic:.079}],120376:[.444,0,.683,{ic:.079}],120377:[.444,0,.461,{ic:.076}],120378:[.444,.205,.461,{ic:.079}],120379:[.444,0,.435,{ic:.059}],120432:[.623,0,.525],120433:[.611,0,.525],120434:[.622,.011,.525],120435:[.611,0,.525],120436:[.611,0,.525],120437:[.611,0,.525],120438:[.622,.011,.525],120439:[.611,0,.525],120440:[.611,0,.525],120441:[.611,.011,.525],120442:[.611,0,.525],120443:[.611,0,.525],120444:[.611,0,.525],120445:[.611,0,.525],120446:[.621,.01,.525],120447:[.611,0,.525],120448:[.621,.138,.525],120449:[.611,.011,.525],120450:[.622,.011,.525],120451:[.611,0,.525],120452:[.611,.011,.525],120453:[.611,.007,.525],120454:[.611,.007,.525],120455:[.611,0,.525],120456:[.611,0,.525],120457:[.611,0,.525],120458:[.439,.006,.525],120459:[.611,.006,.525],120460:[.44,.006,.525],120461:[.611,.006,.525],120462:[.44,.006,.525],120463:[.617,0,.525],120464:[.442,.229,.525],120465:[.611,0,.525],120466:[.612,0,.525],120467:[.612,.228,.525],120468:[.611,0,.525],120469:[.611,0,.525],120470:[.436,0,.525,{ic:.011}],120471:[.436,0,.525],120472:[.44,.006,.525],120473:[.437,.221,.525],120474:[.437,.221,.525,{ic:.02}],120475:[.437,0,.525],120476:[.44,.006,.525],120477:[.554,.006,.525],120478:[.431,.005,.525],120479:[.431,0,.525],120480:[.431,0,.525],120481:[.431,0,.525],120482:[.431,.228,.525],120483:[.431,0,.525],120488:[.698,0,.869],120489:[.686,0,.818],120490:[.68,0,.692],120491:[.698,0,.958],120492:[.68,0,.756],120493:[.686,0,.703],120494:[.686,0,.9],120495:[.696,.01,.894],120496:[.686,0,.436],120497:[.686,0,.901],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.696,.01,.864],120503:[.68,0,.9],120504:[.686,0,.786],120506:[.686,0,.831],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869],120511:[.686,0,.894],120512:[.696,0,.831],120513:[.686,.024,.958],120546:[.716,0,.75,{sk:.139}],120547:[.683,0,.759,{sk:.0833}],120548:[.68,0,.615,{ic:.106,sk:.0833}],120549:[.716,0,.833,{sk:.167}],120550:[.68,0,.738,{ic:.026,sk:.0833}],120551:[.683,0,.683,{ic:.04,sk:.0833}],120552:[.683,0,.831,{ic:.057,sk:.0556}],120553:[.704,.022,.763,{sk:.0833}],120554:[.683,0,.44,{ic:.064,sk:.111}],120555:[.683,0,.849,{ic:.04,sk:.0556}],120556:[.716,0,.694,{sk:.167}],120557:[.683,0,.97,{ic:.081,sk:.0833}],120558:[.683,0,.803,{ic:.085,sk:.0833}],120559:[.677,0,.742,{ic:.035,sk:.0833}],120560:[.704,.022,.763,{sk:.0833}],120561:[.68,0,.831,{ic:.056,sk:.0556}],120562:[.683,0,.642,{ic:.109,sk:.0833}],120564:[.683,0,.78,{ic:.026,sk:.0833}],120565:[.677,0,.584,{ic:.12,sk:.0833}],120566:[.705,0,.583,{ic:.117,sk:.0556}],120567:[.683,0,.667,{sk:.0833}],120568:[.683,0,.828,{ic:.024,sk:.0833}],120569:[.683,0,.612,{ic:.08,sk:.0556}],120570:[.704,0,.772,{ic:.014,sk:.0833}],120572:[.442,.011,.64,{sk:.0278}],120573:[.705,.194,.566,{sk:.0833}],120574:[.441,.216,.518,{ic:.025}],120575:[.717,.01,.444,{sk:.0556}],120576:[.452,.022,.466,{sk:.0833}],120577:[.704,.204,.438,{ic:.033,sk:.0833}],120578:[.442,.216,.497,{sk:.0556}],120579:[.705,.01,.469,{sk:.0833}],120580:[.442,.01,.354,{sk:.0556}],120581:[.442,.011,.576],120582:[.694,.012,.583],120583:[.442,.216,.603,{sk:.0278}],120584:[.442,0,.494,{ic:.036,sk:.0278}],120585:[.704,.205,.438,{sk:.111}],120586:[.441,.011,.485,{sk:.0556}],120587:[.431,.011,.57],120588:[.442,.216,.517,{sk:.0833}],120589:[.442,.107,.363,{ic:.042,sk:.0833}],120590:[.431,.011,.571],120591:[.431,.013,.437,{ic:.08,sk:.0278}],120592:[.443,.01,.54,{sk:.0278}],120593:[.442,.218,.654,{sk:.0833}],120594:[.442,.204,.626,{sk:.0556}],120595:[.694,.205,.651,{sk:.111}],120596:[.443,.011,.622],120597:[.715,.022,.531,{ic:.035,sk:.0833}],120598:[.431,.011,.406,{sk:.0556}],120599:[.705,.011,.591,{sk:.0833}],120600:[.434,.006,.667,{ic:.067}],120601:[.694,.205,.596,{sk:.0833}],120602:[.442,.194,.517,{sk:.0833}],120603:[.431,.01,.828],120604:[.711,0,.869,{sk:.16}],120605:[.686,0,.866,{sk:.0958}],120606:[.68,0,.657,{ic:.12,sk:.0958}],120607:[.711,0,.958,{sk:.192}],120608:[.68,0,.81,{ic:.015,sk:.0958}],120609:[.686,0,.773,{ic:.032,sk:.0958}],120610:[.686,0,.982,{ic:.045,sk:.0639}],120611:[.702,.017,.867,{sk:.0958}],120612:[.686,0,.511,{ic:.062,sk:.128}],120613:[.686,0,.971,{ic:.032,sk:.0639}],120614:[.711,0,.806,{sk:.192}],120615:[.686,0,1.142,{ic:.077,sk:.0958}],120616:[.686,0,.95,{ic:.077,sk:.0958}],120617:[.675,0,.841,{ic:.026,sk:.0958}],120618:[.703,.017,.837,{sk:.0958}],120619:[.68,0,.982,{ic:.044,sk:.0639}],120620:[.686,0,.723,{ic:.124,sk:.0958}],120622:[.686,0,.885,{ic:.017,sk:.0958}],120623:[.675,0,.637,{ic:.135,sk:.0958}],120624:[.703,0,.671,{ic:.131,sk:.0639}],120625:[.686,0,.767,{sk:.0958}],120626:[.686,0,.947,{sk:.0958}],120627:[.686,0,.714,{ic:.076,sk:.0639}],120628:[.703,0,.879,{sk:.0958}],120630:[.452,.008,.761,{sk:.0319}],120631:[.701,.194,.66,{sk:.0958}],120632:[.451,.211,.59,{ic:.027}],120633:[.725,.008,.522,{sk:.0639}],120634:[.461,.017,.529,{sk:.0958}],120635:[.711,.202,.508,{ic:.013,sk:.0958}],120636:[.452,.211,.6,{sk:.0639}],120637:[.702,.008,.562,{sk:.0958}],120638:[.452,.008,.412,{sk:.0639}],120639:[.452,.008,.668],120640:[.694,.013,.671],120641:[.452,.211,.708,{sk:.0319}],120642:[.452,0,.577,{ic:.031,sk:.0319}],120643:[.711,.201,.508,{sk:.128}],120644:[.452,.008,.585,{sk:.0639}],120645:[.444,.008,.682],120646:[.451,.211,.612,{sk:.0958}],120647:[.451,.105,.424,{ic:.033,sk:.0958}],120648:[.444,.008,.686],120649:[.444,.013,.521,{ic:.089,sk:.0319}],120650:[.453,.008,.631,{sk:.0319}],120651:[.452,.216,.747,{sk:.0958}],120652:[.452,.201,.718,{sk:.0639}],120653:[.694,.202,.758,{sk:.128}],120654:[.453,.008,.718],120655:[.71,.017,.628,{ic:.029,sk:.0958}],120656:[.444,.007,.483,{sk:.0639}],120657:[.701,.008,.692,{sk:.0958}],120658:[.434,.006,.667,{ic:.067}],120659:[.694,.202,.712,{sk:.0958}],120660:[.451,.194,.612,{sk:.0958}],120661:[.444,.008,.975],120662:[.694,0,.733],120663:[.694,0,.733],120664:[.691,0,.581],120665:[.694,0,.917],120666:[.691,0,.642],120667:[.694,0,.672],120668:[.694,0,.794],120669:[.716,.022,.856],120670:[.694,0,.331],120671:[.694,0,.764],120672:[.694,0,.672],120673:[.694,0,.978],120674:[.694,0,.794],120675:[.688,0,.733],120676:[.716,.022,.794],120677:[.691,0,.794],120678:[.694,0,.703],120680:[.694,0,.794],120681:[.688,0,.733],120682:[.715,0,.856],120683:[.694,0,.794],120684:[.694,0,.733],120685:[.694,0,.856],120686:[.716,0,.794],120782:[.654,.01,.575],120783:[.655,0,.575],120784:[.654,0,.575],120785:[.655,.011,.575],120786:[.656,0,.575],120787:[.655,.011,.575],120788:[.655,.011,.575],120789:[.676,.011,.575],120790:[.654,.011,.575],120791:[.654,.011,.575],120802:[.678,.022,.5],120803:[.678,0,.5],120804:[.677,0,.5],120805:[.678,.022,.5],120806:[.656,0,.5],120807:[.656,.021,.5],120808:[.677,.022,.5],120809:[.656,.011,.5],120810:[.678,.022,.5],120811:[.677,.022,.5],120812:[.715,.022,.55],120813:[.716,0,.55],120814:[.716,0,.55],120815:[.716,.022,.55],120816:[.694,0,.55],120817:[.694,.022,.55],120818:[.716,.022,.55],120819:[.695,.011,.55],120820:[.715,.022,.55],120821:[.716,.022,.55],120822:[.621,.01,.525],120823:[.622,0,.525],120824:[.622,0,.525],120825:[.622,.011,.525],120826:[.624,0,.525],120827:[.611,.01,.525],120828:[.622,.011,.525],120829:[.627,.01,.525],120830:[.621,.01,.525],120831:[.622,.011,.525]},Object.defineProperty(normal$1,"__esModule",{value:!0}),normal$1.normal=void 0;var FontData_js_1$a=FontData,normal_js_1$1=normal;normal$1.normal=(0,FontData_js_1$a.AddCSS)(normal_js_1$1.normal,{163:{f:"MI"},165:{f:"A"},174:{f:"A"},183:{c:"\\22C5"},240:{f:"A"},697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8192:{c:""},8193:{c:""},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8203:{c:""},8204:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8245:{f:"A"},8246:{c:"\\2035\\2035",f:"A"},8247:{c:"\\2035\\2035\\2035",f:"A"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8288:{c:""},8289:{c:""},8290:{c:""},8291:{c:""},8292:{c:""},8407:{c:"\\2192",f:"V"},8450:{c:"C",f:"A"},8459:{c:"H",f:"SC"},8460:{c:"H",f:"FR"},8461:{c:"H",f:"A"},8462:{c:"h",f:"I"},8463:{f:"A"},8464:{c:"I",f:"SC"},8465:{c:"I",f:"FR"},8466:{c:"L",f:"SC"},8469:{c:"N",f:"A"},8473:{c:"P",f:"A"},8474:{c:"Q",f:"A"},8475:{c:"R",f:"SC"},8476:{c:"R",f:"FR"},8477:{c:"R",f:"A"},8484:{c:"Z",f:"A"},8486:{c:"\\3A9"},8487:{f:"A"},8488:{c:"Z",f:"FR"},8492:{c:"B",f:"SC"},8493:{c:"C",f:"FR"},8496:{c:"E",f:"SC"},8497:{c:"F",f:"SC"},8498:{f:"A"},8499:{c:"M",f:"SC"},8502:{f:"A"},8503:{f:"A"},8504:{f:"A"},8513:{f:"A"},8602:{f:"A"},8603:{f:"A"},8606:{f:"A"},8608:{f:"A"},8610:{f:"A"},8611:{f:"A"},8619:{f:"A"},8620:{f:"A"},8621:{f:"A"},8622:{f:"A"},8624:{f:"A"},8625:{f:"A"},8630:{f:"A"},8631:{f:"A"},8634:{f:"A"},8635:{f:"A"},8638:{f:"A"},8639:{f:"A"},8642:{f:"A"},8643:{f:"A"},8644:{f:"A"},8646:{f:"A"},8647:{f:"A"},8648:{f:"A"},8649:{f:"A"},8650:{f:"A"},8651:{f:"A"},8653:{f:"A"},8654:{f:"A"},8655:{f:"A"},8666:{f:"A"},8667:{f:"A"},8669:{f:"A"},8672:{f:"A"},8674:{f:"A"},8705:{f:"A"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8717:{f:"A"},8719:{f:"S1"},8720:{f:"S1"},8721:{f:"S1"},8724:{f:"A"},8737:{f:"A"},8738:{f:"A"},8740:{f:"A"},8742:{f:"A"},8748:{f:"S1"},8749:{f:"S1"},8750:{f:"S1"},8756:{f:"A"},8757:{f:"A"},8765:{f:"A"},8769:{f:"A"},8770:{f:"A"},8772:{c:"\\2243\\338"},8775:{c:"\\2246",f:"A"},8777:{c:"\\2248\\338"},8778:{f:"A"},8782:{f:"A"},8783:{f:"A"},8785:{f:"A"},8786:{f:"A"},8787:{f:"A"},8790:{f:"A"},8791:{f:"A"},8796:{f:"A"},8802:{c:"\\2261\\338"},8806:{f:"A"},8807:{f:"A"},8808:{f:"A"},8809:{f:"A"},8812:{f:"A"},8813:{c:"\\224D\\338"},8814:{f:"A"},8815:{f:"A"},8816:{f:"A"},8817:{f:"A"},8818:{f:"A"},8819:{f:"A"},8820:{c:"\\2272\\338"},8821:{c:"\\2273\\338"},8822:{f:"A"},8823:{f:"A"},8824:{c:"\\2276\\338"},8825:{c:"\\2277\\338"},8828:{f:"A"},8829:{f:"A"},8830:{f:"A"},8831:{f:"A"},8832:{f:"A"},8833:{f:"A"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{f:"A"},8841:{f:"A"},8842:{f:"A"},8843:{f:"A"},8847:{f:"A"},8848:{f:"A"},8858:{f:"A"},8859:{f:"A"},8861:{f:"A"},8862:{f:"A"},8863:{f:"A"},8864:{f:"A"},8865:{f:"A"},8873:{f:"A"},8874:{f:"A"},8876:{f:"A"},8877:{f:"A"},8878:{f:"A"},8879:{f:"A"},8882:{f:"A"},8883:{f:"A"},8884:{f:"A"},8885:{f:"A"},8888:{f:"A"},8890:{f:"A"},8891:{f:"A"},8892:{f:"A"},8896:{f:"S1"},8897:{f:"S1"},8898:{f:"S1"},8899:{f:"S1"},8903:{f:"A"},8905:{f:"A"},8906:{f:"A"},8907:{f:"A"},8908:{f:"A"},8909:{f:"A"},8910:{f:"A"},8911:{f:"A"},8912:{f:"A"},8913:{f:"A"},8914:{f:"A"},8915:{f:"A"},8916:{f:"A"},8918:{f:"A"},8919:{f:"A"},8920:{f:"A"},8921:{f:"A"},8922:{f:"A"},8923:{f:"A"},8926:{f:"A"},8927:{f:"A"},8928:{f:"A"},8929:{f:"A"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},8934:{f:"A"},8935:{f:"A"},8936:{f:"A"},8937:{f:"A"},8938:{f:"A"},8939:{f:"A"},8940:{f:"A"},8941:{f:"A"},8965:{c:"\\22BC",f:"A"},8966:{c:"\\2A5E",f:"A"},8988:{c:"\\250C",f:"A"},8989:{c:"\\2510",f:"A"},8990:{c:"\\2514",f:"A"},8991:{c:"\\2518",f:"A"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},9416:{f:"A"},9484:{f:"A"},9488:{f:"A"},9492:{f:"A"},9496:{f:"A"},9585:{f:"A"},9586:{f:"A"},9632:{f:"A"},9633:{f:"A"},9642:{c:"\\25A0",f:"A"},9650:{f:"A"},9652:{c:"\\25B2",f:"A"},9653:{c:"\\25B3"},9654:{f:"A"},9656:{c:"\\25B6",f:"A"},9660:{f:"A"},9662:{c:"\\25BC",f:"A"},9663:{c:"\\25BD"},9664:{f:"A"},9666:{c:"\\25C0",f:"A"},9674:{f:"A"},9723:{c:"\\25A1",f:"A"},9724:{c:"\\25A0",f:"A"},9733:{f:"A"},10003:{f:"A"},10016:{f:"A"},10072:{c:"\\2223"},10731:{f:"A"},10744:{c:"/",f:"I"},10752:{f:"S1"},10753:{f:"S1"},10754:{f:"S1"},10756:{f:"S1"},10758:{f:"S1"},10764:{c:"\\222C\\222C",f:"S1"},10799:{c:"\\D7"},10846:{f:"A"},10877:{f:"A"},10878:{f:"A"},10885:{f:"A"},10886:{f:"A"},10887:{f:"A"},10888:{f:"A"},10889:{f:"A"},10890:{f:"A"},10891:{f:"A"},10892:{f:"A"},10901:{f:"A"},10902:{f:"A"},10933:{f:"A"},10934:{f:"A"},10935:{f:"A"},10936:{f:"A"},10937:{f:"A"},10938:{f:"A"},10949:{f:"A"},10950:{f:"A"},10955:{f:"A"},10956:{f:"A"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57350:{f:"A"},57351:{f:"A"},57352:{f:"A"},57353:{f:"A"},57356:{f:"A"},57357:{f:"A"},57358:{f:"A"},57359:{f:"A"},57360:{f:"A"},57361:{f:"A"},57366:{f:"A"},57367:{f:"A"},57368:{f:"A"},57369:{f:"A"},57370:{f:"A"},57371:{f:"A"},119808:{c:"A",f:"B"},119809:{c:"B",f:"B"},119810:{c:"C",f:"B"},119811:{c:"D",f:"B"},119812:{c:"E",f:"B"},119813:{c:"F",f:"B"},119814:{c:"G",f:"B"},119815:{c:"H",f:"B"},119816:{c:"I",f:"B"},119817:{c:"J",f:"B"},119818:{c:"K",f:"B"},119819:{c:"L",f:"B"},119820:{c:"M",f:"B"},119821:{c:"N",f:"B"},119822:{c:"O",f:"B"},119823:{c:"P",f:"B"},119824:{c:"Q",f:"B"},119825:{c:"R",f:"B"},119826:{c:"S",f:"B"},119827:{c:"T",f:"B"},119828:{c:"U",f:"B"},119829:{c:"V",f:"B"},119830:{c:"W",f:"B"},119831:{c:"X",f:"B"},119832:{c:"Y",f:"B"},119833:{c:"Z",f:"B"},119834:{c:"a",f:"B"},119835:{c:"b",f:"B"},119836:{c:"c",f:"B"},119837:{c:"d",f:"B"},119838:{c:"e",f:"B"},119839:{c:"f",f:"B"},119840:{c:"g",f:"B"},119841:{c:"h",f:"B"},119842:{c:"i",f:"B"},119843:{c:"j",f:"B"},119844:{c:"k",f:"B"},119845:{c:"l",f:"B"},119846:{c:"m",f:"B"},119847:{c:"n",f:"B"},119848:{c:"o",f:"B"},119849:{c:"p",f:"B"},119850:{c:"q",f:"B"},119851:{c:"r",f:"B"},119852:{c:"s",f:"B"},119853:{c:"t",f:"B"},119854:{c:"u",f:"B"},119855:{c:"v",f:"B"},119856:{c:"w",f:"B"},119857:{c:"x",f:"B"},119858:{c:"y",f:"B"},119859:{c:"z",f:"B"},119860:{c:"A",f:"I"},119861:{c:"B",f:"I"},119862:{c:"C",f:"I"},119863:{c:"D",f:"I"},119864:{c:"E",f:"I"},119865:{c:"F",f:"I"},119866:{c:"G",f:"I"},119867:{c:"H",f:"I"},119868:{c:"I",f:"I"},119869:{c:"J",f:"I"},119870:{c:"K",f:"I"},119871:{c:"L",f:"I"},119872:{c:"M",f:"I"},119873:{c:"N",f:"I"},119874:{c:"O",f:"I"},119875:{c:"P",f:"I"},119876:{c:"Q",f:"I"},119877:{c:"R",f:"I"},119878:{c:"S",f:"I"},119879:{c:"T",f:"I"},119880:{c:"U",f:"I"},119881:{c:"V",f:"I"},119882:{c:"W",f:"I"},119883:{c:"X",f:"I"},119884:{c:"Y",f:"I"},119885:{c:"Z",f:"I"},119886:{c:"a",f:"I"},119887:{c:"b",f:"I"},119888:{c:"c",f:"I"},119889:{c:"d",f:"I"},119890:{c:"e",f:"I"},119891:{c:"f",f:"I"},119892:{c:"g",f:"I"},119894:{c:"i",f:"I"},119895:{c:"j",f:"I"},119896:{c:"k",f:"I"},119897:{c:"l",f:"I"},119898:{c:"m",f:"I"},119899:{c:"n",f:"I"},119900:{c:"o",f:"I"},119901:{c:"p",f:"I"},119902:{c:"q",f:"I"},119903:{c:"r",f:"I"},119904:{c:"s",f:"I"},119905:{c:"t",f:"I"},119906:{c:"u",f:"I"},119907:{c:"v",f:"I"},119908:{c:"w",f:"I"},119909:{c:"x",f:"I"},119910:{c:"y",f:"I"},119911:{c:"z",f:"I"},119912:{c:"A",f:"BI"},119913:{c:"B",f:"BI"},119914:{c:"C",f:"BI"},119915:{c:"D",f:"BI"},119916:{c:"E",f:"BI"},119917:{c:"F",f:"BI"},119918:{c:"G",f:"BI"},119919:{c:"H",f:"BI"},119920:{c:"I",f:"BI"},119921:{c:"J",f:"BI"},119922:{c:"K",f:"BI"},119923:{c:"L",f:"BI"},119924:{c:"M",f:"BI"},119925:{c:"N",f:"BI"},119926:{c:"O",f:"BI"},119927:{c:"P",f:"BI"},119928:{c:"Q",f:"BI"},119929:{c:"R",f:"BI"},119930:{c:"S",f:"BI"},119931:{c:"T",f:"BI"},119932:{c:"U",f:"BI"},119933:{c:"V",f:"BI"},119934:{c:"W",f:"BI"},119935:{c:"X",f:"BI"},119936:{c:"Y",f:"BI"},119937:{c:"Z",f:"BI"},119938:{c:"a",f:"BI"},119939:{c:"b",f:"BI"},119940:{c:"c",f:"BI"},119941:{c:"d",f:"BI"},119942:{c:"e",f:"BI"},119943:{c:"f",f:"BI"},119944:{c:"g",f:"BI"},119945:{c:"h",f:"BI"},119946:{c:"i",f:"BI"},119947:{c:"j",f:"BI"},119948:{c:"k",f:"BI"},119949:{c:"l",f:"BI"},119950:{c:"m",f:"BI"},119951:{c:"n",f:"BI"},119952:{c:"o",f:"BI"},119953:{c:"p",f:"BI"},119954:{c:"q",f:"BI"},119955:{c:"r",f:"BI"},119956:{c:"s",f:"BI"},119957:{c:"t",f:"BI"},119958:{c:"u",f:"BI"},119959:{c:"v",f:"BI"},119960:{c:"w",f:"BI"},119961:{c:"x",f:"BI"},119962:{c:"y",f:"BI"},119963:{c:"z",f:"BI"},119964:{c:"A",f:"SC"},119966:{c:"C",f:"SC"},119967:{c:"D",f:"SC"},119970:{c:"G",f:"SC"},119973:{c:"J",f:"SC"},119974:{c:"K",f:"SC"},119977:{c:"N",f:"SC"},119978:{c:"O",f:"SC"},119979:{c:"P",f:"SC"},119980:{c:"Q",f:"SC"},119982:{c:"S",f:"SC"},119983:{c:"T",f:"SC"},119984:{c:"U",f:"SC"},119985:{c:"V",f:"SC"},119986:{c:"W",f:"SC"},119987:{c:"X",f:"SC"},119988:{c:"Y",f:"SC"},119989:{c:"Z",f:"SC"},120068:{c:"A",f:"FR"},120069:{c:"B",f:"FR"},120071:{c:"D",f:"FR"},120072:{c:"E",f:"FR"},120073:{c:"F",f:"FR"},120074:{c:"G",f:"FR"},120077:{c:"J",f:"FR"},120078:{c:"K",f:"FR"},120079:{c:"L",f:"FR"},120080:{c:"M",f:"FR"},120081:{c:"N",f:"FR"},120082:{c:"O",f:"FR"},120083:{c:"P",f:"FR"},120084:{c:"Q",f:"FR"},120086:{c:"S",f:"FR"},120087:{c:"T",f:"FR"},120088:{c:"U",f:"FR"},120089:{c:"V",f:"FR"},120090:{c:"W",f:"FR"},120091:{c:"X",f:"FR"},120092:{c:"Y",f:"FR"},120094:{c:"a",f:"FR"},120095:{c:"b",f:"FR"},120096:{c:"c",f:"FR"},120097:{c:"d",f:"FR"},120098:{c:"e",f:"FR"},120099:{c:"f",f:"FR"},120100:{c:"g",f:"FR"},120101:{c:"h",f:"FR"},120102:{c:"i",f:"FR"},120103:{c:"j",f:"FR"},120104:{c:"k",f:"FR"},120105:{c:"l",f:"FR"},120106:{c:"m",f:"FR"},120107:{c:"n",f:"FR"},120108:{c:"o",f:"FR"},120109:{c:"p",f:"FR"},120110:{c:"q",f:"FR"},120111:{c:"r",f:"FR"},120112:{c:"s",f:"FR"},120113:{c:"t",f:"FR"},120114:{c:"u",f:"FR"},120115:{c:"v",f:"FR"},120116:{c:"w",f:"FR"},120117:{c:"x",f:"FR"},120118:{c:"y",f:"FR"},120119:{c:"z",f:"FR"},120120:{c:"A",f:"A"},120121:{c:"B",f:"A"},120123:{c:"D",f:"A"},120124:{c:"E",f:"A"},120125:{c:"F",f:"A"},120126:{c:"G",f:"A"},120128:{c:"I",f:"A"},120129:{c:"J",f:"A"},120130:{c:"K",f:"A"},120131:{c:"L",f:"A"},120132:{c:"M",f:"A"},120134:{c:"O",f:"A"},120138:{c:"S",f:"A"},120139:{c:"T",f:"A"},120140:{c:"U",f:"A"},120141:{c:"V",f:"A"},120142:{c:"W",f:"A"},120143:{c:"X",f:"A"},120144:{c:"Y",f:"A"},120172:{c:"A",f:"FRB"},120173:{c:"B",f:"FRB"},120174:{c:"C",f:"FRB"},120175:{c:"D",f:"FRB"},120176:{c:"E",f:"FRB"},120177:{c:"F",f:"FRB"},120178:{c:"G",f:"FRB"},120179:{c:"H",f:"FRB"},120180:{c:"I",f:"FRB"},120181:{c:"J",f:"FRB"},120182:{c:"K",f:"FRB"},120183:{c:"L",f:"FRB"},120184:{c:"M",f:"FRB"},120185:{c:"N",f:"FRB"},120186:{c:"O",f:"FRB"},120187:{c:"P",f:"FRB"},120188:{c:"Q",f:"FRB"},120189:{c:"R",f:"FRB"},120190:{c:"S",f:"FRB"},120191:{c:"T",f:"FRB"},120192:{c:"U",f:"FRB"},120193:{c:"V",f:"FRB"},120194:{c:"W",f:"FRB"},120195:{c:"X",f:"FRB"},120196:{c:"Y",f:"FRB"},120197:{c:"Z",f:"FRB"},120198:{c:"a",f:"FRB"},120199:{c:"b",f:"FRB"},120200:{c:"c",f:"FRB"},120201:{c:"d",f:"FRB"},120202:{c:"e",f:"FRB"},120203:{c:"f",f:"FRB"},120204:{c:"g",f:"FRB"},120205:{c:"h",f:"FRB"},120206:{c:"i",f:"FRB"},120207:{c:"j",f:"FRB"},120208:{c:"k",f:"FRB"},120209:{c:"l",f:"FRB"},120210:{c:"m",f:"FRB"},120211:{c:"n",f:"FRB"},120212:{c:"o",f:"FRB"},120213:{c:"p",f:"FRB"},120214:{c:"q",f:"FRB"},120215:{c:"r",f:"FRB"},120216:{c:"s",f:"FRB"},120217:{c:"t",f:"FRB"},120218:{c:"u",f:"FRB"},120219:{c:"v",f:"FRB"},120220:{c:"w",f:"FRB"},120221:{c:"x",f:"FRB"},120222:{c:"y",f:"FRB"},120223:{c:"z",f:"FRB"},120224:{c:"A",f:"SS"},120225:{c:"B",f:"SS"},120226:{c:"C",f:"SS"},120227:{c:"D",f:"SS"},120228:{c:"E",f:"SS"},120229:{c:"F",f:"SS"},120230:{c:"G",f:"SS"},120231:{c:"H",f:"SS"},120232:{c:"I",f:"SS"},120233:{c:"J",f:"SS"},120234:{c:"K",f:"SS"},120235:{c:"L",f:"SS"},120236:{c:"M",f:"SS"},120237:{c:"N",f:"SS"},120238:{c:"O",f:"SS"},120239:{c:"P",f:"SS"},120240:{c:"Q",f:"SS"},120241:{c:"R",f:"SS"},120242:{c:"S",f:"SS"},120243:{c:"T",f:"SS"},120244:{c:"U",f:"SS"},120245:{c:"V",f:"SS"},120246:{c:"W",f:"SS"},120247:{c:"X",f:"SS"},120248:{c:"Y",f:"SS"},120249:{c:"Z",f:"SS"},120250:{c:"a",f:"SS"},120251:{c:"b",f:"SS"},120252:{c:"c",f:"SS"},120253:{c:"d",f:"SS"},120254:{c:"e",f:"SS"},120255:{c:"f",f:"SS"},120256:{c:"g",f:"SS"},120257:{c:"h",f:"SS"},120258:{c:"i",f:"SS"},120259:{c:"j",f:"SS"},120260:{c:"k",f:"SS"},120261:{c:"l",f:"SS"},120262:{c:"m",f:"SS"},120263:{c:"n",f:"SS"},120264:{c:"o",f:"SS"},120265:{c:"p",f:"SS"},120266:{c:"q",f:"SS"},120267:{c:"r",f:"SS"},120268:{c:"s",f:"SS"},120269:{c:"t",f:"SS"},120270:{c:"u",f:"SS"},120271:{c:"v",f:"SS"},120272:{c:"w",f:"SS"},120273:{c:"x",f:"SS"},120274:{c:"y",f:"SS"},120275:{c:"z",f:"SS"},120276:{c:"A",f:"SSB"},120277:{c:"B",f:"SSB"},120278:{c:"C",f:"SSB"},120279:{c:"D",f:"SSB"},120280:{c:"E",f:"SSB"},120281:{c:"F",f:"SSB"},120282:{c:"G",f:"SSB"},120283:{c:"H",f:"SSB"},120284:{c:"I",f:"SSB"},120285:{c:"J",f:"SSB"},120286:{c:"K",f:"SSB"},120287:{c:"L",f:"SSB"},120288:{c:"M",f:"SSB"},120289:{c:"N",f:"SSB"},120290:{c:"O",f:"SSB"},120291:{c:"P",f:"SSB"},120292:{c:"Q",f:"SSB"},120293:{c:"R",f:"SSB"},120294:{c:"S",f:"SSB"},120295:{c:"T",f:"SSB"},120296:{c:"U",f:"SSB"},120297:{c:"V",f:"SSB"},120298:{c:"W",f:"SSB"},120299:{c:"X",f:"SSB"},120300:{c:"Y",f:"SSB"},120301:{c:"Z",f:"SSB"},120302:{c:"a",f:"SSB"},120303:{c:"b",f:"SSB"},120304:{c:"c",f:"SSB"},120305:{c:"d",f:"SSB"},120306:{c:"e",f:"SSB"},120307:{c:"f",f:"SSB"},120308:{c:"g",f:"SSB"},120309:{c:"h",f:"SSB"},120310:{c:"i",f:"SSB"},120311:{c:"j",f:"SSB"},120312:{c:"k",f:"SSB"},120313:{c:"l",f:"SSB"},120314:{c:"m",f:"SSB"},120315:{c:"n",f:"SSB"},120316:{c:"o",f:"SSB"},120317:{c:"p",f:"SSB"},120318:{c:"q",f:"SSB"},120319:{c:"r",f:"SSB"},120320:{c:"s",f:"SSB"},120321:{c:"t",f:"SSB"},120322:{c:"u",f:"SSB"},120323:{c:"v",f:"SSB"},120324:{c:"w",f:"SSB"},120325:{c:"x",f:"SSB"},120326:{c:"y",f:"SSB"},120327:{c:"z",f:"SSB"},120328:{c:"A",f:"SSI"},120329:{c:"B",f:"SSI"},120330:{c:"C",f:"SSI"},120331:{c:"D",f:"SSI"},120332:{c:"E",f:"SSI"},120333:{c:"F",f:"SSI"},120334:{c:"G",f:"SSI"},120335:{c:"H",f:"SSI"},120336:{c:"I",f:"SSI"},120337:{c:"J",f:"SSI"},120338:{c:"K",f:"SSI"},120339:{c:"L",f:"SSI"},120340:{c:"M",f:"SSI"},120341:{c:"N",f:"SSI"},120342:{c:"O",f:"SSI"},120343:{c:"P",f:"SSI"},120344:{c:"Q",f:"SSI"},120345:{c:"R",f:"SSI"},120346:{c:"S",f:"SSI"},120347:{c:"T",f:"SSI"},120348:{c:"U",f:"SSI"},120349:{c:"V",f:"SSI"},120350:{c:"W",f:"SSI"},120351:{c:"X",f:"SSI"},120352:{c:"Y",f:"SSI"},120353:{c:"Z",f:"SSI"},120354:{c:"a",f:"SSI"},120355:{c:"b",f:"SSI"},120356:{c:"c",f:"SSI"},120357:{c:"d",f:"SSI"},120358:{c:"e",f:"SSI"},120359:{c:"f",f:"SSI"},120360:{c:"g",f:"SSI"},120361:{c:"h",f:"SSI"},120362:{c:"i",f:"SSI"},120363:{c:"j",f:"SSI"},120364:{c:"k",f:"SSI"},120365:{c:"l",f:"SSI"},120366:{c:"m",f:"SSI"},120367:{c:"n",f:"SSI"},120368:{c:"o",f:"SSI"},120369:{c:"p",f:"SSI"},120370:{c:"q",f:"SSI"},120371:{c:"r",f:"SSI"},120372:{c:"s",f:"SSI"},120373:{c:"t",f:"SSI"},120374:{c:"u",f:"SSI"},120375:{c:"v",f:"SSI"},120376:{c:"w",f:"SSI"},120377:{c:"x",f:"SSI"},120378:{c:"y",f:"SSI"},120379:{c:"z",f:"SSI"},120432:{c:"A",f:"T"},120433:{c:"B",f:"T"},120434:{c:"C",f:"T"},120435:{c:"D",f:"T"},120436:{c:"E",f:"T"},120437:{c:"F",f:"T"},120438:{c:"G",f:"T"},120439:{c:"H",f:"T"},120440:{c:"I",f:"T"},120441:{c:"J",f:"T"},120442:{c:"K",f:"T"},120443:{c:"L",f:"T"},120444:{c:"M",f:"T"},120445:{c:"N",f:"T"},120446:{c:"O",f:"T"},120447:{c:"P",f:"T"},120448:{c:"Q",f:"T"},120449:{c:"R",f:"T"},120450:{c:"S",f:"T"},120451:{c:"T",f:"T"},120452:{c:"U",f:"T"},120453:{c:"V",f:"T"},120454:{c:"W",f:"T"},120455:{c:"X",f:"T"},120456:{c:"Y",f:"T"},120457:{c:"Z",f:"T"},120458:{c:"a",f:"T"},120459:{c:"b",f:"T"},120460:{c:"c",f:"T"},120461:{c:"d",f:"T"},120462:{c:"e",f:"T"},120463:{c:"f",f:"T"},120464:{c:"g",f:"T"},120465:{c:"h",f:"T"},120466:{c:"i",f:"T"},120467:{c:"j",f:"T"},120468:{c:"k",f:"T"},120469:{c:"l",f:"T"},120470:{c:"m",f:"T"},120471:{c:"n",f:"T"},120472:{c:"o",f:"T"},120473:{c:"p",f:"T"},120474:{c:"q",f:"T"},120475:{c:"r",f:"T"},120476:{c:"s",f:"T"},120477:{c:"t",f:"T"},120478:{c:"u",f:"T"},120479:{c:"v",f:"T"},120480:{c:"w",f:"T"},120481:{c:"x",f:"T"},120482:{c:"y",f:"T"},120483:{c:"z",f:"T"},120488:{c:"A",f:"B"},120489:{c:"B",f:"B"},120490:{c:"\\393",f:"B"},120491:{c:"\\394",f:"B"},120492:{c:"E",f:"B"},120493:{c:"Z",f:"B"},120494:{c:"H",f:"B"},120495:{c:"\\398",f:"B"},120496:{c:"I",f:"B"},120497:{c:"K",f:"B"},120498:{c:"\\39B",f:"B"},120499:{c:"M",f:"B"},120500:{c:"N",f:"B"},120501:{c:"\\39E",f:"B"},120502:{c:"O",f:"B"},120503:{c:"\\3A0",f:"B"},120504:{c:"P",f:"B"},120506:{c:"\\3A3",f:"B"},120507:{c:"T",f:"B"},120508:{c:"\\3A5",f:"B"},120509:{c:"\\3A6",f:"B"},120510:{c:"X",f:"B"},120511:{c:"\\3A8",f:"B"},120512:{c:"\\3A9",f:"B"},120513:{c:"\\2207",f:"B"},120546:{c:"A",f:"I"},120547:{c:"B",f:"I"},120548:{c:"\\393",f:"I"},120549:{c:"\\394",f:"I"},120550:{c:"E",f:"I"},120551:{c:"Z",f:"I"},120552:{c:"H",f:"I"},120553:{c:"\\398",f:"I"},120554:{c:"I",f:"I"},120555:{c:"K",f:"I"},120556:{c:"\\39B",f:"I"},120557:{c:"M",f:"I"},120558:{c:"N",f:"I"},120559:{c:"\\39E",f:"I"},120560:{c:"O",f:"I"},120561:{c:"\\3A0",f:"I"},120562:{c:"P",f:"I"},120564:{c:"\\3A3",f:"I"},120565:{c:"T",f:"I"},120566:{c:"\\3A5",f:"I"},120567:{c:"\\3A6",f:"I"},120568:{c:"X",f:"I"},120569:{c:"\\3A8",f:"I"},120570:{c:"\\3A9",f:"I"},120572:{c:"\\3B1",f:"I"},120573:{c:"\\3B2",f:"I"},120574:{c:"\\3B3",f:"I"},120575:{c:"\\3B4",f:"I"},120576:{c:"\\3B5",f:"I"},120577:{c:"\\3B6",f:"I"},120578:{c:"\\3B7",f:"I"},120579:{c:"\\3B8",f:"I"},120580:{c:"\\3B9",f:"I"},120581:{c:"\\3BA",f:"I"},120582:{c:"\\3BB",f:"I"},120583:{c:"\\3BC",f:"I"},120584:{c:"\\3BD",f:"I"},120585:{c:"\\3BE",f:"I"},120586:{c:"\\3BF",f:"I"},120587:{c:"\\3C0",f:"I"},120588:{c:"\\3C1",f:"I"},120589:{c:"\\3C2",f:"I"},120590:{c:"\\3C3",f:"I"},120591:{c:"\\3C4",f:"I"},120592:{c:"\\3C5",f:"I"},120593:{c:"\\3C6",f:"I"},120594:{c:"\\3C7",f:"I"},120595:{c:"\\3C8",f:"I"},120596:{c:"\\3C9",f:"I"},120597:{c:"\\2202"},120598:{c:"\\3F5",f:"I"},120599:{c:"\\3D1",f:"I"},120600:{c:"\\E009",f:"A"},120601:{c:"\\3D5",f:"I"},120602:{c:"\\3F1",f:"I"},120603:{c:"\\3D6",f:"I"},120604:{c:"A",f:"BI"},120605:{c:"B",f:"BI"},120606:{c:"\\393",f:"BI"},120607:{c:"\\394",f:"BI"},120608:{c:"E",f:"BI"},120609:{c:"Z",f:"BI"},120610:{c:"H",f:"BI"},120611:{c:"\\398",f:"BI"},120612:{c:"I",f:"BI"},120613:{c:"K",f:"BI"},120614:{c:"\\39B",f:"BI"},120615:{c:"M",f:"BI"},120616:{c:"N",f:"BI"},120617:{c:"\\39E",f:"BI"},120618:{c:"O",f:"BI"},120619:{c:"\\3A0",f:"BI"},120620:{c:"P",f:"BI"},120622:{c:"\\3A3",f:"BI"},120623:{c:"T",f:"BI"},120624:{c:"\\3A5",f:"BI"},120625:{c:"\\3A6",f:"BI"},120626:{c:"X",f:"BI"},120627:{c:"\\3A8",f:"BI"},120628:{c:"\\3A9",f:"BI"},120630:{c:"\\3B1",f:"BI"},120631:{c:"\\3B2",f:"BI"},120632:{c:"\\3B3",f:"BI"},120633:{c:"\\3B4",f:"BI"},120634:{c:"\\3B5",f:"BI"},120635:{c:"\\3B6",f:"BI"},120636:{c:"\\3B7",f:"BI"},120637:{c:"\\3B8",f:"BI"},120638:{c:"\\3B9",f:"BI"},120639:{c:"\\3BA",f:"BI"},120640:{c:"\\3BB",f:"BI"},120641:{c:"\\3BC",f:"BI"},120642:{c:"\\3BD",f:"BI"},120643:{c:"\\3BE",f:"BI"},120644:{c:"\\3BF",f:"BI"},120645:{c:"\\3C0",f:"BI"},120646:{c:"\\3C1",f:"BI"},120647:{c:"\\3C2",f:"BI"},120648:{c:"\\3C3",f:"BI"},120649:{c:"\\3C4",f:"BI"},120650:{c:"\\3C5",f:"BI"},120651:{c:"\\3C6",f:"BI"},120652:{c:"\\3C7",f:"BI"},120653:{c:"\\3C8",f:"BI"},120654:{c:"\\3C9",f:"BI"},120655:{c:"\\2202",f:"B"},120656:{c:"\\3F5",f:"BI"},120657:{c:"\\3D1",f:"BI"},120658:{c:"\\E009",f:"A"},120659:{c:"\\3D5",f:"BI"},120660:{c:"\\3F1",f:"BI"},120661:{c:"\\3D6",f:"BI"},120662:{c:"A",f:"SSB"},120663:{c:"B",f:"SSB"},120664:{c:"\\393",f:"SSB"},120665:{c:"\\394",f:"SSB"},120666:{c:"E",f:"SSB"},120667:{c:"Z",f:"SSB"},120668:{c:"H",f:"SSB"},120669:{c:"\\398",f:"SSB"},120670:{c:"I",f:"SSB"},120671:{c:"K",f:"SSB"},120672:{c:"\\39B",f:"SSB"},120673:{c:"M",f:"SSB"},120674:{c:"N",f:"SSB"},120675:{c:"\\39E",f:"SSB"},120676:{c:"O",f:"SSB"},120677:{c:"\\3A0",f:"SSB"},120678:{c:"P",f:"SSB"},120680:{c:"\\3A3",f:"SSB"},120681:{c:"T",f:"SSB"},120682:{c:"\\3A5",f:"SSB"},120683:{c:"\\3A6",f:"SSB"},120684:{c:"X",f:"SSB"},120685:{c:"\\3A8",f:"SSB"},120686:{c:"\\3A9",f:"SSB"},120782:{c:"0",f:"B"},120783:{c:"1",f:"B"},120784:{c:"2",f:"B"},120785:{c:"3",f:"B"},120786:{c:"4",f:"B"},120787:{c:"5",f:"B"},120788:{c:"6",f:"B"},120789:{c:"7",f:"B"},120790:{c:"8",f:"B"},120791:{c:"9",f:"B"},120802:{c:"0",f:"SS"},120803:{c:"1",f:"SS"},120804:{c:"2",f:"SS"},120805:{c:"3",f:"SS"},120806:{c:"4",f:"SS"},120807:{c:"5",f:"SS"},120808:{c:"6",f:"SS"},120809:{c:"7",f:"SS"},120810:{c:"8",f:"SS"},120811:{c:"9",f:"SS"},120812:{c:"0",f:"SSB"},120813:{c:"1",f:"SSB"},120814:{c:"2",f:"SSB"},120815:{c:"3",f:"SSB"},120816:{c:"4",f:"SSB"},120817:{c:"5",f:"SSB"},120818:{c:"6",f:"SSB"},120819:{c:"7",f:"SSB"},120820:{c:"8",f:"SSB"},120821:{c:"9",f:"SSB"},120822:{c:"0",f:"T"},120823:{c:"1",f:"T"},120824:{c:"2",f:"T"},120825:{c:"3",f:"T"},120826:{c:"4",f:"T"},120827:{c:"5",f:"T"},120828:{c:"6",f:"T"},120829:{c:"7",f:"T"},120830:{c:"8",f:"T"},120831:{c:"9",f:"T"}});var sansSerifBoldItalic$1={},sansSerifBoldItalic={};Object.defineProperty(sansSerifBoldItalic,"__esModule",{value:!0}),sansSerifBoldItalic.sansSerifBoldItalic=void 0,sansSerifBoldItalic.sansSerifBoldItalic={305:[.458,0,.256],567:[.458,.205,.286]},Object.defineProperty(sansSerifBoldItalic$1,"__esModule",{value:!0}),sansSerifBoldItalic$1.sansSerifBoldItalic=void 0;var FontData_js_1$9=FontData,sans_serif_bold_italic_js_1$1=sansSerifBoldItalic;sansSerifBoldItalic$1.sansSerifBoldItalic=(0,FontData_js_1$9.AddCSS)(sans_serif_bold_italic_js_1$1.sansSerifBoldItalic,{305:{f:"SSB"},567:{f:"SSB"}});var sansSerifBold$1={},sansSerifBold={};Object.defineProperty(sansSerifBold,"__esModule",{value:!0}),sansSerifBold.sansSerifBold=void 0,sansSerifBold.sansSerifBold={33:[.694,0,.367],34:[.694,-.442,.558],35:[.694,.193,.917],36:[.75,.056,.55],37:[.75,.056,1.029],38:[.716,.022,.831],39:[.694,-.442,.306],40:[.75,.249,.428],41:[.75,.25,.428],42:[.75,-.293,.55],43:[.617,.116,.856],44:[.146,.106,.306],45:[.273,-.186,.367],46:[.146,0,.306],47:[.75,.249,.55],58:[.458,0,.306],59:[.458,.106,.306],61:[.407,-.094,.856],63:[.705,0,.519],64:[.704,.011,.733],91:[.75,.25,.343],93:[.75,.25,.343],94:[.694,-.537,.55],95:[-.023,.11,.55],126:[.344,-.198,.55],305:[.458,0,.256],567:[.458,.205,.286],768:[.694,-.537,0],769:[.694,-.537,0],770:[.694,-.537,0],771:[.694,-.548,0],772:[.66,-.56,0],774:[.694,-.552,0],775:[.695,-.596,0],776:[.695,-.595,0],778:[.694,-.538,0],779:[.694,-.537,0],780:[.657,-.5,0],8211:[.327,-.24,.55],8212:[.327,-.24,1.1],8213:[.327,-.24,1.1],8215:[-.023,.11,.55],8216:[.694,-.443,.306],8217:[.694,-.442,.306],8220:[.694,-.443,.558],8221:[.694,-.442,.558],8260:[.75,.249,.55],8710:[.694,0,.917]},Object.defineProperty(sansSerifBold$1,"__esModule",{value:!0}),sansSerifBold$1.sansSerifBold=void 0;var FontData_js_1$8=FontData,sans_serif_bold_js_1$1=sansSerifBold;sansSerifBold$1.sansSerifBold=(0,FontData_js_1$8.AddCSS)(sans_serif_bold_js_1$1.sansSerifBold,{8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}});var sansSerifItalic$1={},sansSerifItalic={};Object.defineProperty(sansSerifItalic,"__esModule",{value:!0}),sansSerifItalic.sansSerifItalic=void 0,sansSerifItalic.sansSerifItalic={33:[.694,0,.319,{ic:.036}],34:[.694,-.471,.5],35:[.694,.194,.833,{ic:.018}],36:[.75,.056,.5,{ic:.065}],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278,{ic:.057}],40:[.75,.25,.389,{ic:.102}],41:[.75,.25,.389],42:[.75,-.306,.5,{ic:.068}],43:[.583,.083,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5,{ic:.1}],48:[.678,.022,.5,{ic:.049}],49:[.678,0,.5],50:[.678,0,.5,{ic:.051}],51:[.678,.022,.5,{ic:.044}],52:[.656,0,.5,{ic:.021}],53:[.656,.022,.5,{ic:.055}],54:[.678,.022,.5,{ic:.048}],55:[.656,.011,.5,{ic:.096}],56:[.678,.022,.5,{ic:.054}],57:[.677,.022,.5,{ic:.045}],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778,{ic:.018}],63:[.704,0,.472,{ic:.064}],64:[.705,.01,.667,{ic:.04}],91:[.75,.25,.289,{ic:.136}],93:[.75,.25,.289,{ic:.064}],94:[.694,-.527,.5,{ic:.033}],95:[-.038,.114,.5,{ic:.065}],126:[.327,-.193,.5,{ic:.06}],305:[.444,0,.239,{ic:.019}],567:[.444,.204,.267,{ic:.019}],768:[.694,-.527,0],769:[.694,-.527,0,{ic:.063}],770:[.694,-.527,0,{ic:.033}],771:[.677,-.543,0,{ic:.06}],772:[.631,-.552,0,{ic:.064}],774:[.694,-.508,0,{ic:.073}],775:[.68,-.576,0],776:[.68,-.582,0,{ic:.04}],778:[.693,-.527,0],779:[.694,-.527,0,{ic:.063}],780:[.654,-.487,0,{ic:.06}],913:[.694,0,.667],914:[.694,0,.667,{ic:.029}],915:[.691,0,.542,{ic:.104}],916:[.694,0,.833],917:[.691,0,.597,{ic:.091}],918:[.694,0,.611,{ic:.091}],919:[.694,0,.708,{ic:.06}],920:[.715,.022,.778,{ic:.026}],921:[.694,0,.278,{ic:.06}],922:[.694,0,.694,{ic:.091}],923:[.694,0,.611],924:[.694,0,.875,{ic:.054}],925:[.694,0,.708,{ic:.058}],926:[.688,0,.667,{ic:.098}],927:[.716,.022,.736,{ic:.027}],928:[.691,0,.708,{ic:.06}],929:[.694,0,.639,{ic:.051}],931:[.694,0,.722,{ic:.091}],932:[.688,0,.681,{ic:.109}],933:[.716,0,.778,{ic:.065}],934:[.694,0,.722,{ic:.021}],935:[.694,0,.667,{ic:.091}],936:[.694,0,.778,{ic:.076}],937:[.716,0,.722,{ic:.047}],8211:[.312,-.236,.5,{ic:.065}],8212:[.312,-.236,1,{ic:.065}],8213:[.312,-.236,1,{ic:.065}],8215:[-.038,.114,.5,{ic:.065}],8216:[.694,-.471,.278,{ic:.058}],8217:[.694,-.471,.278,{ic:.057}],8220:[.694,-.471,.5,{ic:.114}],8221:[.694,-.471,.5],8260:[.75,.25,.5,{ic:.1}],8710:[.694,0,.833]},Object.defineProperty(sansSerifItalic$1,"__esModule",{value:!0}),sansSerifItalic$1.sansSerifItalic=void 0;var FontData_js_1$7=FontData,sans_serif_italic_js_1$1=sansSerifItalic;sansSerifItalic$1.sansSerifItalic=(0,FontData_js_1$7.AddCSS)(sans_serif_italic_js_1$1.sansSerifItalic,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}});var sansSerif$1={},sansSerif={};Object.defineProperty(sansSerif,"__esModule",{value:!0}),sansSerif.sansSerif=void 0,sansSerif.sansSerif={33:[.694,0,.319],34:[.694,-.471,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.306,.5],43:[.583,.082,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778],63:[.704,0,.472],64:[.704,.011,.667],91:[.75,.25,.289],93:[.75,.25,.289],94:[.694,-.527,.5],95:[-.038,.114,.5],126:[.327,-.193,.5],305:[.444,0,.239],567:[.444,.205,.267],768:[.694,-.527,0],769:[.694,-.527,0],770:[.694,-.527,0],771:[.677,-.543,0],772:[.631,-.552,0],774:[.694,-.508,0],775:[.68,-.576,0],776:[.68,-.582,0],778:[.694,-.527,0],779:[.694,-.527,0],780:[.654,-.487,0],913:[.694,0,.667],914:[.694,0,.667],915:[.691,0,.542],916:[.694,0,.833],917:[.691,0,.597],918:[.694,0,.611],919:[.694,0,.708],920:[.716,.021,.778],921:[.694,0,.278],922:[.694,0,.694],923:[.694,0,.611],924:[.694,0,.875],925:[.694,0,.708],926:[.688,0,.667],927:[.715,.022,.736],928:[.691,0,.708],929:[.694,0,.639],931:[.694,0,.722],932:[.688,0,.681],933:[.716,0,.778],934:[.694,0,.722],935:[.694,0,.667],936:[.694,0,.778],937:[.716,0,.722],8211:[.312,-.236,.5],8212:[.312,-.236,1],8213:[.312,-.236,1],8215:[-.038,.114,.5],8216:[.694,-.471,.278],8217:[.694,-.471,.278],8220:[.694,-.471,.5],8221:[.694,-.471,.5],8260:[.75,.25,.5],8710:[.694,0,.833]},Object.defineProperty(sansSerif$1,"__esModule",{value:!0}),sansSerif$1.sansSerif=void 0;var FontData_js_1$6=FontData,sans_serif_js_1$1=sansSerif;sansSerif$1.sansSerif=(0,FontData_js_1$6.AddCSS)(sans_serif_js_1$1.sansSerif,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}});var scriptBold$1={},scriptBold={};Object.defineProperty(scriptBold,"__esModule",{value:!0}),scriptBold.scriptBold=void 0,scriptBold.scriptBold={},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.scriptBold=void 0;var t=scriptBold;Object.defineProperty(e,"scriptBold",{enumerable:!0,get:function(){return t.scriptBold}})}(scriptBold$1),getDefaultExportFromCjs$1(scriptBold$1);var script$1={},script={};Object.defineProperty(script,"__esModule",{value:!0}),script.script=void 0,script.script={},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.script=void 0;var t=script;Object.defineProperty(e,"script",{enumerable:!0,get:function(){return t.script}})}(script$1),getDefaultExportFromCjs$1(script$1);var smallop$1={},smallop={};Object.defineProperty(smallop,"__esModule",{value:!0}),smallop.smallop=void 0,smallop.smallop={40:[.85,.349,.458],41:[.85,.349,.458],47:[.85,.349,.578],91:[.85,.349,.417],92:[.85,.349,.578],93:[.85,.349,.417],123:[.85,.349,.583],125:[.85,.349,.583],710:[.744,-.551,.556],732:[.722,-.597,.556],770:[.744,-.551,0],771:[.722,-.597,0],8214:[.602,0,.778],8260:[.85,.349,.578],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8730:[.85,.35,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[.805,.306,.472,{ic:.138}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8968:[.85,.349,.472],8969:[.85,.349,.472],8970:[.85,.349,.472],8971:[.85,.349,.472],9001:[.85,.35,.472],9002:[.85,.35,.472],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[.85,.35,.472],10217:[.85,.35,.472],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],12296:[.85,.35,.472],12297:[.85,.35,.472]},Object.defineProperty(smallop$1,"__esModule",{value:!0}),smallop$1.smallop=void 0;var FontData_js_1$5=FontData,smallop_js_1$1=smallop;smallop$1.smallop=(0,FontData_js_1$5.AddCSS)(smallop_js_1$1.smallop,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},10072:{c:"\\2223"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}});var texCalligraphicBold$1={},texCalligraphicBold={};Object.defineProperty(texCalligraphicBold,"__esModule",{value:!0}),texCalligraphicBold.texCalligraphicBold=void 0,texCalligraphicBold.texCalligraphicBold={65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}]},Object.defineProperty(texCalligraphicBold$1,"__esModule",{value:!0}),texCalligraphicBold$1.texCalligraphicBold=void 0;var FontData_js_1$4=FontData,tex_calligraphic_bold_js_1$1=texCalligraphicBold;texCalligraphicBold$1.texCalligraphicBold=(0,FontData_js_1$4.AddCSS)(tex_calligraphic_bold_js_1$1.texCalligraphicBold,{305:{f:"B"},567:{f:"B"}});var texCalligraphic$1={},texCalligraphic={};Object.defineProperty(texCalligraphic,"__esModule",{value:!0}),texCalligraphic.texCalligraphic=void 0,texCalligraphic.texCalligraphic={65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphic=void 0;var t=texCalligraphic;Object.defineProperty(e,"texCalligraphic",{enumerable:!0,get:function(){return t.texCalligraphic}})}(texCalligraphic$1),getDefaultExportFromCjs$1(texCalligraphic$1);var texMathit$1={},texMathit={};Object.defineProperty(texMathit,"__esModule",{value:!0}),texMathit.texMathit=void 0,texMathit.texMathit={65:[.716,0,.743],66:[.683,0,.704],67:[.705,.021,.716],68:[.683,0,.755],69:[.68,0,.678],70:[.68,0,.653],71:[.705,.022,.774],72:[.683,0,.743],73:[.683,0,.386],74:[.683,.021,.525],75:[.683,0,.769],76:[.683,0,.627],77:[.683,0,.897],78:[.683,0,.743],79:[.704,.022,.767],80:[.683,0,.678],81:[.704,.194,.767],82:[.683,.022,.729],83:[.705,.022,.562],84:[.677,0,.716],85:[.683,.022,.743],86:[.683,.022,.743],87:[.683,.022,.999],88:[.683,0,.743],89:[.683,0,.743],90:[.683,0,.613],97:[.442,.011,.511],98:[.694,.011,.46],99:[.441,.01,.46],100:[.694,.011,.511],101:[.442,.01,.46],102:[.705,.204,.307],103:[.442,.205,.46],104:[.694,.011,.511],105:[.656,.01,.307],106:[.656,.204,.307],107:[.694,.011,.46],108:[.694,.011,.256],109:[.442,.011,.818],110:[.442,.011,.562],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46],114:[.442,.011,.422],115:[.442,.011,.409],116:[.626,.011,.332],117:[.441,.011,.537],118:[.443,.01,.46],119:[.443,.011,.664],120:[.442,.011,.464],121:[.441,.205,.486],122:[.442,.011,.409]},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.texMathit=void 0;var t=texMathit;Object.defineProperty(e,"texMathit",{enumerable:!0,get:function(){return t.texMathit}})}(texMathit$1),getDefaultExportFromCjs$1(texMathit$1);var texOldstyleBold$1={},texOldstyleBold={};Object.defineProperty(texOldstyleBold,"__esModule",{value:!0}),texOldstyleBold.texOldstyleBold=void 0,texOldstyleBold.texOldstyleBold={48:[.46,.017,.575],49:[.461,0,.575],50:[.46,0,.575],51:[.461,.211,.575],52:[.469,.194,.575],53:[.461,.211,.575],54:[.66,.017,.575],55:[.476,.211,.575],56:[.661,.017,.575],57:[.461,.21,.575],65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}]},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyleBold=void 0;var t=texOldstyleBold;Object.defineProperty(e,"texOldstyleBold",{enumerable:!0,get:function(){return t.texOldstyleBold}})}(texOldstyleBold$1),getDefaultExportFromCjs$1(texOldstyleBold$1);var texOldstyle$1={},texOldstyle={};Object.defineProperty(texOldstyle,"__esModule",{value:!0}),texOldstyle.texOldstyle=void 0,texOldstyle.texOldstyle={48:[.452,.022,.5],49:[.453,0,.5],50:[.453,0,.5],51:[.452,.216,.5],52:[.464,.194,.5],53:[.453,.216,.5],54:[.665,.022,.5],55:[.463,.216,.5],56:[.666,.021,.5],57:[.453,.216,.5],65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyle=void 0;var t=texOldstyle;Object.defineProperty(e,"texOldstyle",{enumerable:!0,get:function(){return t.texOldstyle}})}(texOldstyle$1),getDefaultExportFromCjs$1(texOldstyle$1);var texSize3$1={},texSize3={};Object.defineProperty(texSize3,"__esModule",{value:!0}),texSize3.texSize3=void 0,texSize3.texSize3={40:[1.45,.949,.736],41:[1.45,.949,.736],47:[1.45,.949,1.044],91:[1.45,.949,.528],92:[1.45,.949,1.044],93:[1.45,.949,.528],123:[1.45,.949,.75],125:[1.45,.949,.75],710:[.772,-.564,1.444],732:[.749,-.61,1.444],770:[.772,-.564,0],771:[.749,-.61,0],8260:[1.45,.949,1.044],8730:[1.45,.95,1,{ic:.02}],8968:[1.45,.949,.583],8969:[1.45,.949,.583],8970:[1.45,.949,.583],8971:[1.45,.949,.583],9001:[1.45,.95,.75],9002:[1.45,.949,.75],10216:[1.45,.95,.75],10217:[1.45,.949,.75],12296:[1.45,.95,.75],12297:[1.45,.949,.75]},Object.defineProperty(texSize3$1,"__esModule",{value:!0}),texSize3$1.texSize3=void 0;var FontData_js_1$3=FontData,tex_size3_js_1$1=texSize3;texSize3$1.texSize3=(0,FontData_js_1$3.AddCSS)(tex_size3_js_1$1.texSize3,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}});var texSize4$1={},texSize4={};Object.defineProperty(texSize4,"__esModule",{value:!0}),texSize4.texSize4=void 0,texSize4.texSize4={40:[1.75,1.249,.792],41:[1.75,1.249,.792],47:[1.75,1.249,1.278],91:[1.75,1.249,.583],92:[1.75,1.249,1.278],93:[1.75,1.249,.583],123:[1.75,1.249,.806],125:[1.75,1.249,.806],710:[.845,-.561,1.889,{ic:.013}],732:[.823,-.583,1.889],770:[.845,-.561,0,{ic:.013}],771:[.823,-.583,0],8260:[1.75,1.249,1.278],8730:[1.75,1.25,1,{ic:.02}],8968:[1.75,1.249,.639],8969:[1.75,1.249,.639],8970:[1.75,1.249,.639],8971:[1.75,1.249,.639],9001:[1.75,1.248,.806],9002:[1.75,1.248,.806],9115:[1.154,.655,.875],9116:[.61,.01,.875],9117:[1.165,.644,.875],9118:[1.154,.655,.875],9119:[.61,.01,.875],9120:[1.165,.644,.875],9121:[1.154,.645,.667],9122:[.602,0,.667],9123:[1.155,.644,.667],9124:[1.154,.645,.667],9125:[.602,0,.667],9126:[1.155,.644,.667],9127:[.899,.01,.889],9128:[1.16,.66,.889],9129:[.01,.899,.889],9130:[.29,.015,.889],9131:[.899,.01,.889],9132:[1.16,.66,.889],9133:[.01,.899,.889],9143:[.935,.885,1.056],10216:[1.75,1.248,.806],10217:[1.75,1.248,.806],12296:[1.75,1.248,.806],12297:[1.75,1.248,.806],57344:[.625,.014,1.056],57345:[.605,.014,1.056,{ic:.02}],57680:[.12,.213,.45,{ic:.01}],57681:[.12,.213,.45,{ic:.024}],57682:[.333,0,.45,{ic:.01}],57683:[.333,0,.45,{ic:.024}],57684:[.32,.2,.4,{ic:.01}],57685:[.333,0,.9,{ic:.01}],57686:[.12,.213,.9,{ic:.01}]},Object.defineProperty(texSize4$1,"__esModule",{value:!0}),texSize4$1.texSize4=void 0;var FontData_js_1$2=FontData,tex_size4_js_1$1=texSize4;texSize4$1.texSize4=(0,FontData_js_1$2.AddCSS)(tex_size4_js_1$1.texSize4,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57685:{c:"\\E153\\E152"},57686:{c:"\\E151\\E150"}});var texVariant$1={},texVariant={};Object.defineProperty(texVariant,"__esModule",{value:!0}),texVariant.texVariant=void 0,texVariant.texVariant={710:[.845,-.561,2.333,{ic:.013}],732:[.899,-.628,2.333],770:[.845,-.561,0,{ic:.013}],771:[.899,-.628,0],1008:[.434,.006,.667,{ic:.067}],8463:[.695,.013,.54,{ic:.022}],8592:[.437,-.064,.5],8594:[.437,-.064,.5],8652:[.514,.014,1],8708:[.86,.166,.556],8709:[.587,0,.778],8722:[.27,-.23,.5],8726:[.43,.023,.778],8733:[.472,-.028,.778],8739:[.43,.023,.222],8740:[.43,.023,.222,{ic:.018}],8741:[.431,.023,.389],8742:[.431,.024,.389,{ic:.018}],8764:[.365,-.132,.778],8776:[.481,-.05,.778],8808:[.752,.284,.778],8809:[.752,.284,.778],8816:[.919,.421,.778],8817:[.919,.421,.778],8840:[.828,.33,.778],8841:[.828,.33,.778],8842:[.634,.255,.778],8843:[.634,.254,.778],8872:[.694,0,.611],8901:[.189,0,.278],8994:[.378,-.122,.778],8995:[.378,-.143,.778],9651:[.575,.02,.722],9661:[.576,.019,.722],10887:[.801,.303,.778],10888:[.801,.303,.778],10955:[.752,.332,.778],10956:[.752,.333,.778]},Object.defineProperty(texVariant$1,"__esModule",{value:!0}),texVariant$1.texVariant=void 0;var FontData_js_1$1=FontData,tex_variant_js_1$1=texVariant;texVariant$1.texVariant=(0,FontData_js_1$1.AddCSS)(tex_variant_js_1$1.texVariant,{1008:{c:"\\E009"},8463:{f:""},8740:{c:"\\E006"},8742:{c:"\\E007"},8808:{c:"\\E00C"},8809:{c:"\\E00D"},8816:{c:"\\E011"},8817:{c:"\\E00E"},8840:{c:"\\E016"},8841:{c:"\\E018"},8842:{c:"\\E01A"},8843:{c:"\\E01B"},10887:{c:"\\E010"},10888:{c:"\\E00F"},10955:{c:"\\E017"},10956:{c:"\\E019"}});var delimiters={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.delimiters=e.VSIZES=e.HDW3=e.HDW2=e.HDW1=void 0;var t=FontData$2;e.HDW1=[.75,.25,.875],e.HDW2=[.85,.349,.667],e.HDW3=[.583,.082,.5],e.VSIZES=[1,1.2,1.8,2.4,3];var r={c:47,dir:t.V,sizes:e.VSIZES},n={c:175,dir:t.H,sizes:[.5],stretch:[0,175],HDW:[.59,-.544,.5]},o={c:710,dir:t.H,sizes:[.5,.556,1,1.444,1.889]},i={c:732,dir:t.H,sizes:[.5,.556,1,1.444,1.889]},a={c:8211,dir:t.H,sizes:[.5],stretch:[0,8211],HDW:[.285,-.248,.5]},s={c:8592,dir:t.H,sizes:[1],stretch:[8592,8722],HDW:e.HDW3},l={c:8594,dir:t.H,sizes:[1],stretch:[0,8722,8594],HDW:e.HDW3},c={c:8596,dir:t.H,sizes:[1],stretch:[8592,8722,8594],HDW:e.HDW3},u={c:8612,dir:t.H,stretch:[8592,8722,8739],HDW:e.HDW3,min:1.278},d={c:8614,dir:t.H,sizes:[1],stretch:[8739,8722,8594],HDW:e.HDW3},p={c:8656,dir:t.H,sizes:[1],stretch:[8656,61],HDW:e.HDW3},m={c:8658,dir:t.H,sizes:[1],stretch:[0,61,8658],HDW:e.HDW3},h={c:8660,dir:t.H,sizes:[1],stretch:[8656,61,8658],HDW:e.HDW3},f={c:8722,dir:t.H,sizes:[.778],stretch:[0,8722],HDW:e.HDW3},_={c:8739,dir:t.V,sizes:[1],stretch:[0,8739],HDW:[.627,.015,.333]},g={c:9180,dir:t.H,sizes:[.778,1],schar:[8994,8994],variants:[5,0],stretch:[57680,57684,57681],HDW:[.32,.2,.5]},y={c:9181,dir:t.H,sizes:[.778,1],schar:[8995,8995],variants:[5,0],stretch:[57682,57684,57683],HDW:[.32,.2,.5]},b={c:9182,dir:t.H,stretch:[57680,57684,57681,57685],HDW:[.32,.2,.5],min:1.8},v={c:9183,dir:t.H,stretch:[57682,57684,57683,57686],HDW:[.32,.2,.5],min:1.8},x={c:10216,dir:t.V,sizes:e.VSIZES},M={c:10217,dir:t.V,sizes:e.VSIZES},S={c:10502,dir:t.H,stretch:[8656,61,8739],HDW:e.HDW3,min:1.278},E={c:10503,dir:t.H,stretch:[8872,61,8658],HDW:e.HDW3,min:1.278};e.delimiters={40:{dir:t.V,sizes:e.VSIZES,stretch:[9115,9116,9117],HDW:[.85,.349,.875]},41:{dir:t.V,sizes:e.VSIZES,stretch:[9118,9119,9120],HDW:[.85,.349,.875]},45:f,47:r,61:{dir:t.H,sizes:[.778],stretch:[0,61],HDW:e.HDW3},91:{dir:t.V,sizes:e.VSIZES,stretch:[9121,9122,9123],HDW:e.HDW2},92:{dir:t.V,sizes:e.VSIZES},93:{dir:t.V,sizes:e.VSIZES,stretch:[9124,9125,9126],HDW:e.HDW2},94:o,95:a,123:{dir:t.V,sizes:e.VSIZES,stretch:[9127,9130,9129,9128],HDW:[.85,.349,.889]},124:{dir:t.V,sizes:[1],stretch:[0,8739],HDW:[.75,.25,.333]},125:{dir:t.V,sizes:e.VSIZES,stretch:[9131,9130,9133,9132],HDW:[.85,.349,.889]},126:i,175:n,710:o,713:n,732:i,770:o,771:i,818:a,8211:a,8212:a,8213:a,8214:{dir:t.V,sizes:[.602,1],schar:[0,8741],variants:[1,0],stretch:[0,8741],HDW:[.602,0,.556]},8215:a,8254:n,8407:l,8592:s,8593:{dir:t.V,sizes:[.888],stretch:[8593,9168],HDW:[.6,0,.667]},8594:l,8595:{dir:t.V,sizes:[.888],stretch:[0,9168,8595],HDW:[.6,0,.667]},8596:c,8597:{dir:t.V,sizes:[1.044],stretch:[8593,9168,8595],HDW:e.HDW1},8606:{dir:t.H,sizes:[1],stretch:[8606,8722],HDW:e.HDW3},8608:{dir:t.H,sizes:[1],stretch:[0,8722,8608],HDW:e.HDW3},8612:u,8613:{dir:t.V,stretch:[8593,9168,8869],HDW:e.HDW1,min:1.555},8614:d,8615:{dir:t.V,stretch:[8868,9168,8595],HDW:e.HDW1,min:1.555},8624:{dir:t.V,sizes:[.722],stretch:[8624,9168],HDW:e.HDW1},8625:{dir:t.V,sizes:[.722],stretch:[8625,9168],HDW:e.HDW1},8636:{dir:t.H,sizes:[1],stretch:[8636,8722],HDW:e.HDW3},8637:{dir:t.H,sizes:[1],stretch:[8637,8722],HDW:e.HDW3},8638:{dir:t.V,sizes:[.888],stretch:[8638,9168],HDW:e.HDW1},8639:{dir:t.V,sizes:[.888],stretch:[8639,9168],HDW:e.HDW1},8640:{dir:t.H,sizes:[1],stretch:[0,8722,8640],HDW:e.HDW3},8641:{dir:t.H,sizes:[1],stretch:[0,8722,8641],HDW:e.HDW3},8642:{dir:t.V,sizes:[.888],stretch:[0,9168,8642],HDW:e.HDW1},8643:{dir:t.V,sizes:[.888],stretch:[0,9168,8643],HDW:e.HDW1},8656:p,8657:{dir:t.V,sizes:[.888],stretch:[8657,8214],HDW:[.599,0,.778]},8658:m,8659:{dir:t.V,sizes:[.888],stretch:[0,8214,8659],HDW:[.6,0,.778]},8660:h,8661:{dir:t.V,sizes:[1.044],stretch:[8657,8214,8659],HDW:[.75,.25,.778]},8666:{dir:t.H,sizes:[1],stretch:[8666,8801],HDW:[.464,-.036,.5]},8667:{dir:t.H,sizes:[1],stretch:[0,8801,8667],HDW:[.464,-.036,.5]},8722:f,8725:r,8730:{dir:t.V,sizes:e.VSIZES,stretch:[57345,57344,9143],fullExt:[.65,2.3],HDW:[.85,.35,1.056]},8739:_,8741:{dir:t.V,sizes:[1],stretch:[0,8741],HDW:[.627,.015,.556]},8968:{dir:t.V,sizes:e.VSIZES,stretch:[9121,9122],HDW:e.HDW2},8969:{dir:t.V,sizes:e.VSIZES,stretch:[9124,9125],HDW:e.HDW2},8970:{dir:t.V,sizes:e.VSIZES,stretch:[0,9122,9123],HDW:e.HDW2},8971:{dir:t.V,sizes:e.VSIZES,stretch:[0,9125,9126],HDW:e.HDW2},8978:g,8994:g,8995:y,9001:x,9002:M,9130:{dir:t.V,sizes:[.32],stretch:[9130,9130,9130],HDW:[.29,.015,.889]},9135:a,9136:{dir:t.V,sizes:[.989],stretch:[9127,9130,9133],HDW:[.75,.25,.889]},9137:{dir:t.V,sizes:[.989],stretch:[9131,9130,9129],HDW:[.75,.25,.889]},9140:{dir:t.H,stretch:[9484,8722,9488],HDW:e.HDW3,min:1},9141:{dir:t.H,stretch:[9492,8722,9496],HDW:e.HDW3,min:1},9168:{dir:t.V,sizes:[.602,1],schar:[0,8739],variants:[1,0],stretch:[0,8739],HDW:[.602,0,.333]},9180:g,9181:y,9182:b,9183:v,9184:{dir:t.H,stretch:[714,713,715],HDW:[.59,-.544,.5],min:1},9185:{dir:t.H,stretch:[715,713,714],HDW:[.59,-.544,.5],min:1},9472:a,10072:_,10216:x,10217:M,10222:{dir:t.V,sizes:[.989],stretch:[9127,9130,9129],HDW:[.75,.25,.889]},10223:{dir:t.V,sizes:[.989],stretch:[9131,9130,9133],HDW:[.75,.25,.889]},10229:s,10230:l,10231:c,10232:p,10233:m,10234:h,10235:u,10236:d,10237:S,10238:E,10502:S,10503:E,10574:{dir:t.H,stretch:[8636,8722,8640],HDW:e.HDW3,min:2},10575:{dir:t.V,stretch:[8638,9168,8642],HDW:e.HDW1,min:1.776},10576:{dir:t.H,stretch:[8637,8722,8641],HDW:e.HDW3,min:2},10577:{dir:t.V,stretch:[8639,9168,8643],HDW:e.HDW1,min:.5},10586:{dir:t.H,stretch:[8636,8722,8739],HDW:e.HDW3,min:1.278},10587:{dir:t.H,stretch:[8739,8722,8640],HDW:e.HDW3,min:1.278},10588:{dir:t.V,stretch:[8638,9168,8869],HDW:e.HDW1,min:1.556},10589:{dir:t.V,stretch:[8868,9168,8642],HDW:e.HDW1,min:1.556},10590:{dir:t.H,stretch:[8637,8722,8739],HDW:e.HDW3,min:1.278},10591:{dir:t.H,stretch:[8739,8722,8641],HDW:e.HDW3,min:1.278},10592:{dir:t.V,stretch:[8639,9168,8869],HDW:e.HDW1,min:1.776},10593:{dir:t.V,stretch:[8868,9168,8643],HDW:e.HDW1,min:1.776},12296:x,12297:M,65079:b,65080:v}}(delimiters),getDefaultExportFromCjs$1(delimiters);var __extends$k=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$3=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$3=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$3.apply(this,arguments)};Object.defineProperty(tex$1,"__esModule",{value:!0}),tex$1.TeXFont=void 0;var FontData_js_1=FontData,tex_js_1$1=tex,bold_italic_js_1=boldItalic$1,bold_js_1=bold$1,double_struck_js_1=doubleStruck$1,fraktur_bold_js_1=frakturBold$1,fraktur_js_1=fraktur$1,italic_js_1=italic$1,largeop_js_1=largeop$1,monospace_js_1=monospace$1,normal_js_1=normal$1,sans_serif_bold_italic_js_1=sansSerifBoldItalic$1,sans_serif_bold_js_1=sansSerifBold$1,sans_serif_italic_js_1=sansSerifItalic$1,sans_serif_js_1=sansSerif$1,script_bold_js_1=scriptBold$1,script_js_1=script$1,smallop_js_1=smallop$1,tex_calligraphic_bold_js_1=texCalligraphicBold$1,tex_calligraphic_js_1=texCalligraphic$1,tex_mathit_js_1=texMathit$1,tex_oldstyle_bold_js_1=texOldstyleBold$1,tex_oldstyle_js_1=texOldstyle$1,tex_size3_js_1=texSize3$1,tex_size4_js_1=texSize4$1,tex_variant_js_1=texVariant$1,delimiters_js_1=delimiters,TeXFont=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$k(t,e),t.defaultCssFamilyPrefix="MJXZERO",t.defaultVariantClasses={normal:"mjx-n",bold:"mjx-b",italic:"mjx-i","bold-italic":"mjx-b mjx-i","double-struck":"mjx-ds mjx-b",fraktur:"mjx-fr","bold-fraktur":"mjx-fr mjx-b",script:"mjx-sc mjx-i","bold-script":"mjx-sc mjx-b mjx-i","sans-serif":"mjx-ss","bold-sans-serif":"mjx-ss mjx-b","sans-serif-italic":"mjx-ss mjx-i","sans-serif-bold-italic":"mjx-ss mjx-b mjx-i",monospace:"mjx-ty","-smallop":"mjx-sop","-largeop":"mjx-lop","-size3":"mjx-s3","-size4":"mjx-s4","-tex-calligraphic":"mjx-cal mjx-i","-tex-bold-calligraphic":"mjx-cal mjx-b","-tex-mathit":"mjx-mit mjx-i","-tex-oldstyle":"mjx-os","-tex-bold-oldstyle":"mjx-os mjx-b","-tex-variant":"mjx-var"},t.defaultVariantLetters={normal:"",bold:"B",italic:"MI","bold-italic":"BI","double-struck":"A",fraktur:"FR","bold-fraktur":"FRB",script:"SC","bold-script":"SCB","sans-serif":"SS","bold-sans-serif":"SSB","sans-serif-italic":"SSI","sans-serif-bold-italic":"SSBI",monospace:"T","-smallop":"S1","-largeop":"S2","-size3":"S3","-size4":"S4","-tex-calligraphic":"C","-tex-bold-calligraphic":"CB","-tex-mathit":"MI","-tex-oldstyle":"C","-tex-bold-oldstyle":"CB","-tex-variant":"A"},t.defaultDelimiters=delimiters_js_1.delimiters,t.defaultChars={normal:normal_js_1.normal,bold:bold_js_1.bold,italic:italic_js_1.italic,"bold-italic":bold_italic_js_1.boldItalic,"double-struck":double_struck_js_1.doubleStruck,fraktur:fraktur_js_1.fraktur,"bold-fraktur":fraktur_bold_js_1.frakturBold,script:script_js_1.script,"bold-script":script_bold_js_1.scriptBold,"sans-serif":sans_serif_js_1.sansSerif,"bold-sans-serif":sans_serif_bold_js_1.sansSerifBold,"sans-serif-italic":sans_serif_italic_js_1.sansSerifItalic,"sans-serif-bold-italic":sans_serif_bold_italic_js_1.sansSerifBoldItalic,monospace:monospace_js_1.monospace,"-smallop":smallop_js_1.smallop,"-largeop":largeop_js_1.largeop,"-size3":tex_size3_js_1.texSize3,"-size4":tex_size4_js_1.texSize4,"-tex-calligraphic":tex_calligraphic_js_1.texCalligraphic,"-tex-bold-calligraphic":tex_calligraphic_bold_js_1.texCalligraphicBold,"-tex-mathit":tex_mathit_js_1.texMathit,"-tex-oldstyle":tex_oldstyle_js_1.texOldstyle,"-tex-bold-oldstyle":tex_oldstyle_bold_js_1.texOldstyleBold,"-tex-variant":tex_variant_js_1.texVariant},t.defaultStyles=__assign$3(__assign$3({},FontData_js_1.CHTMLFontData.defaultStyles),{".MJX-TEX":{"font-family":"MJXZERO, MJXTEX"},".TEX-B":{"font-family":"MJXZERO, MJXTEX-B"},".TEX-I":{"font-family":"MJXZERO, MJXTEX-I"},".TEX-MI":{"font-family":"MJXZERO, MJXTEX-MI"},".TEX-BI":{"font-family":"MJXZERO, MJXTEX-BI"},".TEX-S1":{"font-family":"MJXZERO, MJXTEX-S1"},".TEX-S2":{"font-family":"MJXZERO, MJXTEX-S2"},".TEX-S3":{"font-family":"MJXZERO, MJXTEX-S3"},".TEX-S4":{"font-family":"MJXZERO, MJXTEX-S4"},".TEX-A":{"font-family":"MJXZERO, MJXTEX-A"},".TEX-C":{"font-family":"MJXZERO, MJXTEX-C"},".TEX-CB":{"font-family":"MJXZERO, MJXTEX-CB"},".TEX-FR":{"font-family":"MJXZERO, MJXTEX-FR"},".TEX-FRB":{"font-family":"MJXZERO, MJXTEX-FRB"},".TEX-SS":{"font-family":"MJXZERO, MJXTEX-SS"},".TEX-SSB":{"font-family":"MJXZERO, MJXTEX-SSB"},".TEX-SSI":{"font-family":"MJXZERO, MJXTEX-SSI"},".TEX-SC":{"font-family":"MJXZERO, MJXTEX-SC"},".TEX-T":{"font-family":"MJXZERO, MJXTEX-T"},".TEX-V":{"font-family":"MJXZERO, MJXTEX-V"},".TEX-VB":{"font-family":"MJXZERO, MJXTEX-VB"},"mjx-stretchy-v mjx-c, mjx-stretchy-h mjx-c":{"font-family":"MJXZERO, MJXTEX-S1, MJXTEX-S4, MJXTEX, MJXTEX-A ! important"}}),t.defaultFonts=__assign$3(__assign$3({},FontData_js_1.CHTMLFontData.defaultFonts),{"@font-face /* 1 */":{"font-family":"MJXTEX",src:'url("%%URL%%/MathJax_Main-Regular.woff") format("woff")'},"@font-face /* 2 */":{"font-family":"MJXTEX-B",src:'url("%%URL%%/MathJax_Main-Bold.woff") format("woff")'},"@font-face /* 3 */":{"font-family":"MJXTEX-I",src:'url("%%URL%%/MathJax_Math-Italic.woff") format("woff")'},"@font-face /* 4 */":{"font-family":"MJXTEX-MI",src:'url("%%URL%%/MathJax_Main-Italic.woff") format("woff")'},"@font-face /* 5 */":{"font-family":"MJXTEX-BI",src:'url("%%URL%%/MathJax_Math-BoldItalic.woff") format("woff")'},"@font-face /* 6 */":{"font-family":"MJXTEX-S1",src:'url("%%URL%%/MathJax_Size1-Regular.woff") format("woff")'},"@font-face /* 7 */":{"font-family":"MJXTEX-S2",src:'url("%%URL%%/MathJax_Size2-Regular.woff") format("woff")'},"@font-face /* 8 */":{"font-family":"MJXTEX-S3",src:'url("%%URL%%/MathJax_Size3-Regular.woff") format("woff")'},"@font-face /* 9 */":{"font-family":"MJXTEX-S4",src:'url("%%URL%%/MathJax_Size4-Regular.woff") format("woff")'},"@font-face /* 10 */":{"font-family":"MJXTEX-A",src:'url("%%URL%%/MathJax_AMS-Regular.woff") format("woff")'},"@font-face /* 11 */":{"font-family":"MJXTEX-C",src:'url("%%URL%%/MathJax_Calligraphic-Regular.woff") format("woff")'},"@font-face /* 12 */":{"font-family":"MJXTEX-CB",src:'url("%%URL%%/MathJax_Calligraphic-Bold.woff") format("woff")'},"@font-face /* 13 */":{"font-family":"MJXTEX-FR",src:'url("%%URL%%/MathJax_Fraktur-Regular.woff") format("woff")'},"@font-face /* 14 */":{"font-family":"MJXTEX-FRB",src:'url("%%URL%%/MathJax_Fraktur-Bold.woff") format("woff")'},"@font-face /* 15 */":{"font-family":"MJXTEX-SS",src:'url("%%URL%%/MathJax_SansSerif-Regular.woff") format("woff")'},"@font-face /* 16 */":{"font-family":"MJXTEX-SSB",src:'url("%%URL%%/MathJax_SansSerif-Bold.woff") format("woff")'},"@font-face /* 17 */":{"font-family":"MJXTEX-SSI",src:'url("%%URL%%/MathJax_SansSerif-Italic.woff") format("woff")'},"@font-face /* 18 */":{"font-family":"MJXTEX-SC",src:'url("%%URL%%/MathJax_Script-Regular.woff") format("woff")'},"@font-face /* 19 */":{"font-family":"MJXTEX-T",src:'url("%%URL%%/MathJax_Typewriter-Regular.woff") format("woff")'},"@font-face /* 20 */":{"font-family":"MJXTEX-V",src:'url("%%URL%%/MathJax_Vector-Regular.woff") format("woff")'},"@font-face /* 21 */":{"font-family":"MJXTEX-VB",src:'url("%%URL%%/MathJax_Vector-Bold.woff") format("woff")'}}),t}((0,tex_js_1$1.CommonTeXFontMixin)(FontData_js_1.CHTMLFontData));tex$1.TeXFont=TeXFont;var __extends$j=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$2=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$2.apply(this,arguments)},__createBinding$6=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$6=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$6=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$6(t,e,r);return __setModuleDefault$6(t,e),t},__values$a=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(chtml,"__esModule",{value:!0});var CHTML_1=chtml.CHTML=void 0,OutputJax_js_1=OutputJax$1,StyleList_js_1=StyleList,WrapperFactory_js_1=WrapperFactory$2,Usage_js_1=Usage$1,tex_js_1=tex$1,LENGTHS=__importStar$6(lengths),string_js_1=string,CHTML=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this,t,WrapperFactory_js_1.CHTMLWrapperFactory,tex_js_1.TeXFont)||this;return r.chtmlStyles=null,r.font.adaptiveCSS(r.options.adaptiveCSS),r.wrapperUsage=new Usage_js_1.Usage,r}return __extends$j(t,e),t.prototype.escaped=function(e,t){return this.setDocument(t),this.html("span",{},[this.text(e.math)])},t.prototype.styleSheet=function(r){if(this.chtmlStyles){if(this.options.adaptiveCSS){var n=new StyleList_js_1.CssStyles;this.addWrapperStyles(n),this.updateFontStyles(n),this.adaptor.insertRules(this.chtmlStyles,n.getStyleRules())}return this.chtmlStyles}var o=this.chtmlStyles=e.prototype.styleSheet.call(this,r);return this.adaptor.setAttribute(o,"id",t.STYLESHEETID),this.wrapperUsage.update(),o},t.prototype.updateFontStyles=function(e){e.addStyles(this.font.updateStyles({}))},t.prototype.addWrapperStyles=function(t){var r,n;if(this.options.adaptiveCSS)try{for(var o=__values$a(this.wrapperUsage.update()),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.factory.getNodeClass(a);s&&this.addClassStyles(s,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}else e.prototype.addWrapperStyles.call(this,t)},t.prototype.addClassStyles=function(t,r){var n,o=t;o.autoStyle&&"unknown"!==o.kind&&r.addStyles(((n={})["mjx-"+o.kind]={display:"inline-block","text-align":"left"},n)),this.wrapperUsage.add(o.kind),e.prototype.addClassStyles.call(this,t,r)},t.prototype.processMath=function(e,t){this.factory.wrap(e).toCHTML(t)},t.prototype.clearCache=function(){this.cssStyles.clear(),this.font.clearCache(),this.wrapperUsage.clear(),this.chtmlStyles=null},t.prototype.reset=function(){this.clearCache()},t.prototype.unknownText=function(e,t,r){void 0===r&&(r=null);var n={},o=100/this.math.metrics.scale;if(100!==o&&(n["font-size"]=this.fixed(o,1)+"%",n.padding=LENGTHS.em(75/o)+" 0 "+LENGTHS.em(20/o)+" 0"),"-explicitFont"!==t){var i=(0,string_js_1.unicodeChars)(e);(1!==i.length||i[0]<119808||i[0]>120831)&&this.cssFontStyles(this.font.getCssFont(t),n)}if(null!==r){var a=this.math.metrics;n.width=Math.round(r*a.em*a.scale)+"px"}return this.html("mjx-utext",{variant:t,style:n},[this.text(e)])},t.prototype.measureTextNode=function(e){var t=this.adaptor,r=t.clone(e);t.setStyle(r,"font-family",t.getStyle(r,"font-family").replace(/MJXZERO, /g,""));var n=this.html("mjx-measure-text",{style:{position:"absolute","white-space":"nowrap"}},[r]);t.append(t.parent(this.math.start.node),this.container),t.append(this.container,n);var o=t.nodeSize(r,this.math.metrics.em)[0]/this.math.metrics.scale;return t.remove(this.container),t.remove(n),{w:o,h:.75,d:.2}},t.NAME="CHTML",t.OPTIONS=__assign$2(__assign$2({},OutputJax_js_1.CommonOutputJax.OPTIONS),{adaptiveCSS:!0,matchFontHeight:!0}),t.commonStyles={'mjx-container[jax="CHTML"]':{"line-height":0},'mjx-container [space="1"]':{"margin-left":".111em"},'mjx-container [space="2"]':{"margin-left":".167em"},'mjx-container [space="3"]':{"margin-left":".222em"},'mjx-container [space="4"]':{"margin-left":".278em"},'mjx-container [space="5"]':{"margin-left":".333em"},'mjx-container [rspace="1"]':{"margin-right":".111em"},'mjx-container [rspace="2"]':{"margin-right":".167em"},'mjx-container [rspace="3"]':{"margin-right":".222em"},'mjx-container [rspace="4"]':{"margin-right":".278em"},'mjx-container [rspace="5"]':{"margin-right":".333em"},'mjx-container [size="s"]':{"font-size":"70.7%"},'mjx-container [size="ss"]':{"font-size":"50%"},'mjx-container [size="Tn"]':{"font-size":"60%"},'mjx-container [size="sm"]':{"font-size":"85%"},'mjx-container [size="lg"]':{"font-size":"120%"},'mjx-container [size="Lg"]':{"font-size":"144%"},'mjx-container [size="LG"]':{"font-size":"173%"},'mjx-container [size="hg"]':{"font-size":"207%"},'mjx-container [size="HG"]':{"font-size":"249%"},'mjx-container [width="full"]':{width:"100%"},"mjx-box":{display:"inline-block"},"mjx-block":{display:"block"},"mjx-itable":{display:"inline-table"},"mjx-row":{display:"table-row"},"mjx-row > *":{display:"table-cell"},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":"opacity"}},t.STYLESHEETID="MJX-CHTML-styles",t}(OutputJax_js_1.CommonOutputJax);CHTML_1=chtml.CHTML=CHTML;var html={},HTMLHandler$1={},Handler={},MathDocument={},MathList={},LinkedList={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},o=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=e.ListItem=e.END=void 0,e.END=Symbol();var i=function(e){void 0===e&&(e=null),this.next=null,this.prev=null,this.data=e};e.ListItem=i;var a=function(){function a(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this.list=new i(e.END),this.list.next=this.list.prev=this.list,this.push.apply(this,n([],r(t),!1))}return a.prototype.isBefore=function(e,t){return e<t},a.prototype.push=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var a=o(r),s=a.next();!s.done;s=a.next()){var l=s.value,c=new i(l);c.next=this.list,c.prev=this.list.prev,this.list.prev=c,c.prev.next=c}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this},a.prototype.pop=function(){var t=this.list.prev;return t.data===e.END?null:(this.list.prev=t.prev,t.prev.next=this.list,t.next=t.prev=null,t.data)},a.prototype.unshift=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var a=o(r.slice(0).reverse()),s=a.next();!s.done;s=a.next()){var l=s.value,c=new i(l);c.next=this.list.next,c.prev=this.list,this.list.next=c,c.next.prev=c}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this},a.prototype.shift=function(){var t=this.list.next;return t.data===e.END?null:(this.list.next=t.next,t.next.prev=this.list,t.next=t.prev=null,t.data)},a.prototype.remove=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=new Map;try{for(var s=o(n),l=s.next();!l.done;l=s.next()){var c=l.value;a.set(c,!0)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}for(var u=this.list.next;u.data!==e.END;){var d=u.next;a.has(u.data)&&(u.prev.next=u.next,u.next.prev=u.prev,u.next=u.prev=null),u=d}},a.prototype.clear=function(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this},a.prototype[Symbol.iterator]=function(){var r;return t(this,(function(t){switch(t.label){case 0:r=this.list.next,t.label=1;case 1:return r.data===e.END?[3,3]:[4,r.data];case 2:return t.sent(),r=r.next,[3,1];case 3:return[2]}}))},a.prototype.reversed=function(){var r;return t(this,(function(t){switch(t.label){case 0:r=this.list.prev,t.label=1;case 1:return r.data===e.END?[3,3]:[4,r.data];case 2:return t.sent(),r=r.prev,[3,1];case 3:return[2]}}))},a.prototype.insert=function(t,r){void 0===r&&(r=null),null===r&&(r=this.isBefore.bind(this));for(var n=new i(t),o=this.list.next;o.data!==e.END&&r(o.data,n.data);)o=o.next;return n.prev=o.prev,n.next=o,o.prev.next=o.prev=n,this},a.prototype.sort=function(e){var t,r;void 0===e&&(e=null),null===e&&(e=this.isBefore.bind(this));var n=[];try{for(var i=o(this),s=i.next();!s.done;s=i.next()){var l=s.value;n.push(new a(l))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}for(this.list.next=this.list.prev=this.list;n.length>1;){var c=n.shift(),u=n.shift();c.merge(u,e),n.push(c)}return n.length&&(this.list=n[0].list),this},a.prototype.merge=function(t,n){var o,i,a,s,l;void 0===n&&(n=null),null===n&&(n=this.isBefore.bind(this));for(var c=this.list.next,u=t.list.next;c.data!==e.END&&u.data!==e.END;)n(u.data,c.data)?(o=r([c,u],2),u.prev.next=o[0],c.prev.next=o[1],i=r([c.prev,u.prev],2),u.prev=i[0],c.prev=i[1],a=r([t.list,this.list],2),this.list.prev.next=a[0],t.list.prev.next=a[1],s=r([t.list.prev,this.list.prev],2),this.list.prev=s[0],t.list.prev=s[1],c=(l=r([u.next,c],2))[0],u=l[1]):c=c.next;return u.data!==e.END&&(this.list.prev.next=t.list.next,t.list.next.prev=this.list.prev,t.list.prev.next=this.list,this.list.prev=t.list.prev,t.list.next=t.list.prev=t.list),this},a}();e.LinkedList=a}(LinkedList),getDefaultExportFromCjs$1(LinkedList);var __extends$i=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(MathList,"__esModule",{value:!0}),MathList.AbstractMathList=void 0;var LinkedList_js_1=LinkedList,AbstractMathList=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$i(t,e),t.prototype.isBefore=function(e,t){return e.start.i<t.start.i||e.start.i===t.start.i&&e.start.n<t.start.n},t}(LinkedList_js_1.LinkedList);MathList.AbstractMathList=AbstractMathList;var BitField$1={},__extends$h=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$9=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$7=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(BitField$1,"__esModule",{value:!0}),BitField$1.BitFieldClass=BitField$1.BitField=void 0;var BitField=function(){function e(){this.bits=0}return e.allocate=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{for(var i=__values$9(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(this.has(s))throw new Error("Bit already allocated for "+s);if(this.next===e.MAXBIT)throw new Error("Maximum number of bits already allocated");this.names.set(s,this.next),this.next<<=1}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.has=function(e){return this.names.has(e)},e.prototype.set=function(e){this.bits|=this.getBit(e)},e.prototype.clear=function(e){this.bits&=~this.getBit(e)},e.prototype.isSet=function(e){return!!(this.bits&this.getBit(e))},e.prototype.reset=function(){this.bits=0},e.prototype.getBit=function(e){var t=this.constructor.names.get(e);if(!t)throw new Error("Unknown bit-field name: "+e);return t},e.MAXBIT=1<<31,e.next=1,e.names=new Map,e}();function BitFieldClass(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$h(t,e),t}(BitField);return r.allocate.apply(r,__spreadArray$2([],__read$7(e),!1)),r}BitField$1.BitField=BitField,BitField$1.BitFieldClass=BitFieldClass,function(e){var t=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),r=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},n=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathDocument=e.resetAllOptions=e.resetOptions=e.RenderList=void 0;var i=Options,a=InputJax,s=OutputJax,l=MathList,c=MathItem,u=MmlFactory$1,d=BitField$1,p=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t(o,e),o.create=function(e){var t,o,i=new this;try{for(var a=r(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=n(this.action(l,e[l]),2),u=c[0],d=c[1];d&&i.add(u,d)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}return i},o.action=function(e,t){var r,o,i,a,s,l,c=!0,u=t[0];if(1===t.length||"boolean"==typeof t[1])2===t.length&&(c=t[1]),s=(r=n(this.methodActions(e),2))[0],l=r[1];else if("string"==typeof t[1])if("string"==typeof t[2]){4===t.length&&(c=t[3]);var d=n(t.slice(1),2),p=d[0],m=d[1];s=(o=n(this.methodActions(p,m),2))[0],l=o[1]}else 3===t.length&&(c=t[2]),s=(i=n(this.methodActions(t[1]),2))[0],l=i[1];else 4===t.length&&(c=t[3]),s=(a=n(t.slice(1),2))[0],l=a[1];return[{id:e,renderDoc:s,renderMath:l,convert:c},u]},o.methodActions=function(e,t){return void 0===t&&(t=e),[function(t){return e&&t[e](),!1},function(e,r){return t&&e[t](r),!1}]},o.prototype.renderDoc=function(e,t){var n,o;void 0===t&&(t=c.STATE.UNPROCESSED);try{for(var i=r(this.items),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.priority>=t&&s.item.renderDoc(e))return}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},o.prototype.renderMath=function(e,t,n){var o,i;void 0===n&&(n=c.STATE.UNPROCESSED);try{for(var a=r(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>=n&&l.item.renderMath(e,t))return}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},o.prototype.renderConvert=function(e,t,n){var o,i;void 0===n&&(n=c.STATE.LAST);try{for(var a=r(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>n)return;if(l.item.convert&&l.item.renderMath(e,t))return}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},o.prototype.findID=function(e){var t,n;try{for(var o=r(this.items),i=o.next();!i.done;i=o.next()){var a=i.value;if(a.item.id===e)return a.item}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return null},o}(PrioritizedList$1.PrioritizedList);e.RenderList=p,e.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null},e.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};var m=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.compile=function(e){return null},r}(a.AbstractInputJax),h=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.typeset=function(e,t){return null},r.prototype.escaped=function(e,t){return null},r}(s.AbstractOutputJax),f=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r}(l.AbstractMathList),_=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r}(c.AbstractMathItem),g=function(){function t(e,r,n){var o=this,a=this.constructor;this.document=e,this.options=(0,i.userOptions)((0,i.defaultOptions)({},a.OPTIONS),n),this.math=new(this.options.MathList||f),this.renderActions=p.create(this.options.renderActions),this.processed=new t.ProcessBits,this.outputJax=this.options.OutputJax||new h;var s=this.options.InputJax||[new m];Array.isArray(s)||(s=[s]),this.inputJax=s,this.adaptor=r,this.outputJax.setAdaptor(r),this.inputJax.map((function(e){return e.setAdaptor(r)})),this.mmlFactory=this.options.MmlFactory||new u.MmlFactory,this.inputJax.map((function(e){return e.setMmlFactory(o.mmlFactory)})),this.outputJax.initialize(),this.inputJax.map((function(e){return e.initialize()}))}return Object.defineProperty(t.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),t.prototype.addRenderAction=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n(p.action(e,t),2),i=o[0],a=o[1];this.renderActions.add(i,a)},t.prototype.removeRenderAction=function(e){var t=this.renderActions.findID(e);t&&this.renderActions.remove(t)},t.prototype.render=function(){return this.renderActions.renderDoc(this),this},t.prototype.rerender=function(e){return void 0===e&&(e=c.STATE.RERENDER),this.state(e-1),this.render(),this},t.prototype.convert=function(e,t){void 0===t&&(t={});var r=(0,i.userOptions)({format:this.inputJax[0].name,display:!0,end:c.STATE.LAST,em:16,ex:8,containerWidth:null,lineWidth:1e6,scale:1,family:""},t),n=r.format,o=r.display,a=r.end,s=r.ex,l=r.em,u=r.containerWidth,d=r.lineWidth,p=r.scale,m=r.family;null===u&&(u=80*s);var h=this.inputJax.reduce((function(e,t){return t.name===n?t:e}),null),f=new this.options.MathItem(e,h,o);return f.start.node=this.adaptor.body(this.document),f.setMetrics(l,s,u,d,p),this.outputJax.options.mtextInheritFont&&(f.outputData.mtextFamily=m),this.outputJax.options.merrorInheritFont&&(f.outputData.merrorFamily=m),f.convert(this,a),f.typesetRoot||f.root},t.prototype.findMath=function(e){return this.processed.set("findMath"),this},t.prototype.compile=function(){var e,t,n,o;if(!this.processed.isSet("compile")){var i=[];try{for(var a=r(this.math),s=a.next();!s.done;s=a.next()){var l=s.value;this.compileMath(l),void 0!==l.inputData.recompile&&i.push(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}try{for(var c=r(i),u=c.next();!u.done;u=c.next()){var d=(l=u.value).inputData.recompile;l.state(d.state),l.inputData.recompile=d,this.compileMath(l)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}this.processed.set("compile")}return this},t.prototype.compileMath=function(e){try{e.compile(this)}catch(t){if(t.retry||t.restart)throw t;this.options.compileError(this,e,t),e.inputData.error=t}},t.prototype.compileError=function(e,t){e.root=this.mmlFactory.create("math",null,[this.mmlFactory.create("merror",{"data-mjx-error":t.message,title:t.message},[this.mmlFactory.create("mtext",null,[this.mmlFactory.create("text").setText("Math input error")])])]),e.display&&e.root.attributes.set("display","block"),e.inputData.error=t.message},t.prototype.typeset=function(){var e,t;if(!this.processed.isSet("typeset")){try{for(var n=r(this.math),o=n.next();!o.done;o=n.next()){var i=o.value;try{i.typeset(this)}catch(e){if(e.retry||e.restart)throw e;this.options.typesetError(this,i,e),i.outputData.error=e}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.processed.set("typeset")}return this},t.prototype.typesetError=function(e,t){e.typesetRoot=this.adaptor.node("mjx-container",{class:"MathJax mjx-output-error",jax:this.outputJax.name},[this.adaptor.node("span",{"data-mjx-error":t.message,title:t.message,style:{color:"red","background-color":"yellow","line-height":"normal"}},[this.adaptor.text("Math output error")])]),e.display&&this.adaptor.setAttributes(e.typesetRoot,{style:{display:"block",margin:"1em 0","text-align":"center"}}),e.outputData.error=t.message},t.prototype.getMetrics=function(){return this.processed.isSet("getMetrics")||(this.outputJax.getMetrics(this),this.processed.set("getMetrics")),this},t.prototype.updateDocument=function(){var e,t;if(!this.processed.isSet("updateDocument")){try{for(var n=r(this.math.reversed()),o=n.next();!o.done;o=n.next()){o.value.updateDocument(this)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.processed.set("updateDocument")}return this},t.prototype.removeFromDocument=function(e){return this},t.prototype.state=function(e,t){var n,o;void 0===t&&(t=!1);try{for(var i=r(this.math),a=i.next();!a.done;a=i.next()){a.value.state(e,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return e<c.STATE.INSERTED&&this.processed.clear("updateDocument"),e<c.STATE.TYPESET&&(this.processed.clear("typeset"),this.processed.clear("getMetrics")),e<c.STATE.COMPILED&&this.processed.clear("compile"),this},t.prototype.reset=function(t){var r;return void 0===t&&(t={processed:!0}),(t=(0,i.userOptions)(Object.assign({},e.resetOptions),t)).all&&Object.assign(t,e.resetAllOptions),t.processed&&this.processed.reset(),t.inputJax&&this.inputJax.forEach((function(e){return e.reset.apply(e,o([],n(t.inputJax),!1))})),t.outputJax&&(r=this.outputJax).reset.apply(r,o([],n(t.outputJax),!1)),this},t.prototype.clear=function(){return this.reset(),this.math.clear(),this},t.prototype.concat=function(e){return this.math.merge(e),this},t.prototype.clearMathItemsWithin=function(e){var t,r=this.getMathItemsWithin(e);return(t=this.math).remove.apply(t,o([],n(r),!1)),r},t.prototype.getMathItemsWithin=function(e){var t,n,o,i;Array.isArray(e)||(e=[e]);var a=this.adaptor,s=[],l=a.getElements(e,this.document);try{e:for(var c=r(this.math),u=c.next();!u.done;u=c.next()){var d=u.value;try{for(var p=(o=void 0,r(l)),m=p.next();!m.done;m=p.next()){var h=m.value;if(d.start.node&&a.contains(h,d.start.node)){s.push(d);continue e}}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return s},t.KIND="MathDocument",t.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:f,MathItem:_,compileError:function(e,t,r){e.compileError(t,r)},typesetError:function(e,t,r){e.typesetError(t,r)},renderActions:(0,i.expandable)({find:[c.STATE.FINDMATH,"findMath","",!1],compile:[c.STATE.COMPILED],metrics:[c.STATE.METRICS,"getMetrics","",!1],typeset:[c.STATE.TYPESET],update:[c.STATE.INSERTED,"updateDocument",!1]})},t.ProcessBits=(0,d.BitFieldClass)("findMath","compile","getMetrics","typeset","updateDocument"),t}();e.AbstractMathDocument=g}(MathDocument),getDefaultExportFromCjs$1(MathDocument);var __extends$g=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Handler,"__esModule",{value:!0}),Handler.AbstractHandler=void 0;var MathDocument_js_1$1=MathDocument,DefaultMathDocument=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$g(t,e),t}(MathDocument_js_1$1.AbstractMathDocument),AbstractHandler=function(){function e(e,t){void 0===t&&(t=5),this.documentClass=DefaultMathDocument,this.adaptor=e,this.priority=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.handlesDocument=function(e){return!1},e.prototype.create=function(e,t){return new this.documentClass(e,this.adaptor,t)},e.NAME="generic",e}();Handler.AbstractHandler=AbstractHandler;var HTMLDocument$1={},HTMLMathItem$1={},__extends$f=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(HTMLMathItem$1,"__esModule",{value:!0}),HTMLMathItem$1.HTMLMathItem=void 0;var MathItem_js_1$1=MathItem,HTMLMathItem=function(e){function t(t,r,n,o,i){return void 0===n&&(n=!0),void 0===o&&(o={node:null,n:0,delim:""}),void 0===i&&(i={node:null,n:0,delim:""}),e.call(this,t,r,n,o,i)||this}return __extends$f(t,e),Object.defineProperty(t.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:!1,configurable:!0}),t.prototype.updateDocument=function(e){if(this.state()<MathItem_js_1$1.STATE.INSERTED){if(this.inputJax.processStrings){var t=this.start.node;if(t===this.end.node)this.end.n&&this.end.n<this.adaptor.value(this.end.node).length&&this.adaptor.split(this.end.node,this.end.n),this.start.n&&(t=this.adaptor.split(this.start.node,this.start.n)),this.adaptor.replace(this.typesetRoot,t);else{for(this.start.n&&(t=this.adaptor.split(t,this.start.n));t!==this.end.node;){var r=this.adaptor.next(t);this.adaptor.remove(t),t=r}this.adaptor.insert(this.typesetRoot,t),this.end.n<this.adaptor.value(t).length&&this.adaptor.split(t,this.end.n),this.adaptor.remove(t)}}else this.adaptor.replace(this.typesetRoot,this.start.node);this.start.node=this.end.node=this.typesetRoot,this.start.n=this.end.n=0,this.state(MathItem_js_1$1.STATE.INSERTED)}},t.prototype.updateStyleSheet=function(e){e.addStyleSheet()},t.prototype.removeFromDocument=function(e){if(void 0===e&&(e=!1),this.state()>=MathItem_js_1$1.STATE.TYPESET){var t=this.adaptor,r=this.start.node,n=t.text("");if(e){var o=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)n=t.text(o);else{var i=t.parse(o,"text/html");n=t.firstChild(t.body(i))}}t.parent(r)&&t.replace(n,r),this.start.node=this.end.node=n,this.start.n=this.end.n=0}},t}(MathItem_js_1$1.AbstractMathItem);HTMLMathItem$1.HTMLMathItem=HTMLMathItem;var HTMLMathList$1={},__extends$e=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(HTMLMathList$1,"__esModule",{value:!0}),HTMLMathList$1.HTMLMathList=void 0;var MathList_js_1=MathList,HTMLMathList=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$e(t,e),t}(MathList_js_1.AbstractMathList);HTMLMathList$1.HTMLMathList=HTMLMathList;var HTMLDomStrings$1={},__read$6=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(HTMLDomStrings$1,"__esModule",{value:!0});var HTMLDomStrings_2=HTMLDomStrings$1.HTMLDomStrings=void 0,Options_js_1$3=Options,HTMLDomStrings=function(){function e(e){void 0===e&&(e=null);var t=this.constructor;this.options=(0,Options_js_1$3.userOptions)((0,Options_js_1$3.defaultOptions)({},t.OPTIONS),e),this.init(),this.getPatterns()}return e.prototype.init=function(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]},e.prototype.getPatterns=function(){var e=(0,Options_js_1$3.makeArray)(this.options.skipHtmlTags),t=(0,Options_js_1$3.makeArray)(this.options.ignoreHtmlClass),r=(0,Options_js_1$3.makeArray)(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+e.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+t.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+r+")(?: |$)")},e.prototype.pushString=function(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]},e.prototype.extendString=function(e,t){this.snodes.push([e,t.length]),this.string+=t},e.prototype.handleText=function(e,t){return t||this.extendString(e,this.adaptor.value(e)),this.adaptor.next(e)},e.prototype.handleTag=function(e,t){if(!t){var r=this.options.includeHtmlTags[this.adaptor.kind(e)];this.extendString(e,r)}return this.adaptor.next(e)},e.prototype.handleContainer=function(e,t){this.pushString();var r=this.adaptor.getAttribute(e,"class")||"",n=this.adaptor.kind(e)||"",o=this.processHtmlClass.exec(r),i=e;return!this.adaptor.firstChild(e)||this.adaptor.getAttribute(e,"data-MJX")||!o&&this.skipHtmlTags.exec(n)?i=this.adaptor.next(e):(this.adaptor.next(e)&&this.stack.push([this.adaptor.next(e),t]),i=this.adaptor.firstChild(e),t=(t||this.ignoreHtmlClass.exec(r))&&!o),[i,t]},e.prototype.handleOther=function(e,t){return this.pushString(),this.adaptor.next(e)},e.prototype.find=function(e){var t,r;this.init();for(var n=this.adaptor.next(e),o=!1,i=this.options.includeHtmlTags;e&&e!==n;){var a=this.adaptor.kind(e);"#text"===a?e=this.handleText(e,o):i.hasOwnProperty(a)?e=this.handleTag(e,o):a?(e=(t=__read$6(this.handleContainer(e,o),2))[0],o=t[1]):e=this.handleOther(e,o),!e&&this.stack.length&&(this.pushString(),e=(r=__read$6(this.stack.pop(),2))[0],o=r[1])}this.pushString();var s=[this.strings,this.nodes];return this.init(),s},e.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:"\n",wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},e}();HTMLDomStrings_2=HTMLDomStrings$1.HTMLDomStrings=HTMLDomStrings;var __extends$d=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign$1=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$1.apply(this,arguments)},__read$5=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__values$8=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(HTMLDocument$1,"__esModule",{value:!0}),HTMLDocument$1.HTMLDocument=void 0;var MathDocument_js_1=MathDocument,Options_js_1$2=Options,HTMLMathItem_js_1=HTMLMathItem$1,HTMLMathList_js_1=HTMLMathList$1,HTMLDomStrings_js_1=HTMLDomStrings$1,MathItem_js_1=MathItem,HTMLDocument=function(e){function t(t,r,n){var o=this,i=__read$5((0,Options_js_1$2.separateOptions)(n,HTMLDomStrings_js_1.HTMLDomStrings.OPTIONS),2),a=i[0],s=i[1];return(o=e.call(this,t,r,a)||this).domStrings=o.options.DomStrings||new HTMLDomStrings_js_1.HTMLDomStrings(s),o.domStrings.adaptor=r,o.styles=[],o}return __extends$d(t,e),t.prototype.findPosition=function(e,t,r,n){var o,i,a=this.adaptor;try{for(var s=__values$8(n[e]),l=s.next();!l.done;l=s.next()){var c=l.value,u=__read$5(c,2),d=u[0],p=u[1];if(t<=p&&"#text"===a.kind(d))return{node:d,n:Math.max(t,0),delim:r};t-=p}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return{node:null,n:0,delim:r}},t.prototype.mathItem=function(e,t,r){var n=e.math,o=this.findPosition(e.n,e.start.n,e.open,r),i=this.findPosition(e.n,e.end.n,e.close,r);return new this.options.MathItem(n,t,e.display,o,i)},t.prototype.findMath=function(e){var t,r,n,o,i,a,s,l,c;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,e=(0,Options_js_1$2.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},e);try{for(var u=__values$8(this.adaptor.getElements(e.elements,this.document)),d=u.next();!d.done;d=u.next()){var p=d.value,m=__read$5([null,null],2),h=m[0],f=m[1];try{for(var _=(n=void 0,__values$8(this.inputJax)),g=_.next();!g.done;g=_.next()){var y=g.value,b=new this.options.MathList;if(y.processStrings){null===h&&(h=(i=__read$5(this.domStrings.find(p),2))[0],f=i[1]);try{for(var v=(a=void 0,__values$8(y.findMath(h))),x=v.next();!x.done;x=v.next()){var M=x.value;b.push(this.mathItem(M,y,f))}}catch(e){a={error:e}}finally{try{x&&!x.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}}else try{for(var S=(l=void 0,__values$8(y.findMath(p))),E=S.next();!E.done;E=S.next()){M=E.value;var $=new this.options.MathItem(M.math,y,M.display,M.start,M.end);b.push($)}}catch(e){l={error:e}}finally{try{E&&!E.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}this.math.merge(b)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(o=_.return)&&o.call(_)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}this.processed.set("findMath")}return this},t.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),e.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},t.prototype.addPageElements=function(){var e=this.adaptor.body(this.document),t=this.documentPageElements();t&&this.adaptor.append(e,t)},t.prototype.addStyleSheet=function(){var e=this.documentStyleSheet(),t=this.adaptor;if(e&&!t.parent(e)){var r=t.head(this.document),n=this.findSheet(r,t.getAttribute(e,"id"));n?t.replace(e,n):t.append(r,e)}},t.prototype.findSheet=function(e,t){var r,n;if(t)try{for(var o=__values$8(this.adaptor.tags(e,"style")),i=o.next();!i.done;i=o.next()){var a=i.value;if(this.adaptor.getAttribute(a,"id")===t)return a}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},t.prototype.removeFromDocument=function(e){var t,r;if(void 0===e&&(e=!1),this.processed.isSet("updateDocument"))try{for(var n=__values$8(this.math),o=n.next();!o.done;o=n.next()){var i=o.value;i.state()>=MathItem_js_1.STATE.INSERTED&&i.state(MathItem_js_1.STATE.TYPESET,e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this.processed.clear("updateDocument"),this},t.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},t.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},t.prototype.addStyles=function(e){this.styles.push(e)},t.prototype.getStyles=function(){return this.styles},t.KIND="HTML",t.OPTIONS=__assign$1(__assign$1({},MathDocument_js_1.AbstractMathDocument.OPTIONS),{renderActions:(0,Options_js_1$2.expandable)(__assign$1(__assign$1({},MathDocument_js_1.AbstractMathDocument.OPTIONS.renderActions),{styles:[MathItem_js_1.STATE.INSERTED+1,"","updateStyleSheet",!1]})),MathList:HTMLMathList_js_1.HTMLMathList,MathItem:HTMLMathItem_js_1.HTMLMathItem,DomStrings:null}),t}(MathDocument_js_1.AbstractMathDocument);HTMLDocument$1.HTMLDocument=HTMLDocument;var __extends$c=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(HTMLHandler$1,"__esModule",{value:!0}),HTMLHandler$1.HTMLHandler=void 0;var Handler_js_1=Handler,HTMLDocument_js_1=HTMLDocument$1,HTMLHandler=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.documentClass=HTMLDocument_js_1.HTMLDocument,t}return __extends$c(t,e),t.prototype.handlesDocument=function(e){var t=this.adaptor;if("string"==typeof e)try{e=t.parse(e,"text/html")}catch(e){}return e instanceof t.window.Document||e instanceof t.window.HTMLElement||e instanceof t.window.DocumentFragment},t.prototype.create=function(t,r){var n=this.adaptor;if("string"==typeof t)t=n.parse(t,"text/html");else if(t instanceof n.window.HTMLElement||t instanceof n.window.DocumentFragment){var o=t;t=n.parse("","text/html"),n.append(n.body(t),o)}return e.prototype.create.call(this,t,r)},t}(Handler_js_1.AbstractHandler);HTMLHandler$1.HTMLHandler=HTMLHandler,Object.defineProperty(html,"__esModule",{value:!0});var RegisterHTMLHandler_1=html.RegisterHTMLHandler=void 0,mathjax_js_1=mathjax,HTMLHandler_js_1=HTMLHandler$1;function RegisterHTMLHandler(e){var t=new HTMLHandler_js_1.HTMLHandler(e);return mathjax_js_1.mathjax.handlers.register(t),t}RegisterHTMLHandler_1=html.RegisterHTMLHandler=RegisterHTMLHandler;var browserAdaptor$1={},HTMLAdaptor$1={},DOMAdaptor={},__values$7=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(DOMAdaptor,"__esModule",{value:!0}),DOMAdaptor.AbstractDOMAdaptor=void 0;var AbstractDOMAdaptor=function(){function e(e){void 0===e&&(e=null),this.document=e}return e.prototype.node=function(e,t,r,n){var o,i;void 0===t&&(t={}),void 0===r&&(r=[]);var a=this.create(e,n);this.setAttributes(a,t);try{for(var s=__values$7(r),l=s.next();!l.done;l=s.next()){var c=l.value;this.append(a,c)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a},e.prototype.setAttributes=function(e,t){var r,n,o,i,a,s;if(t.style&&"string"!=typeof t.style)try{for(var l=__values$7(Object.keys(t.style)),c=l.next();!c.done;c=l.next()){var u=c.value;this.setStyle(e,u.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()})),t.style[u])}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(t.properties)try{for(var d=__values$7(Object.keys(t.properties)),p=d.next();!p.done;p=d.next()){e[u=p.value]=t.properties[u]}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}try{for(var m=__values$7(Object.keys(t)),h=m.next();!h.done;h=m.next()){"style"===(u=h.value)&&"string"!=typeof t.style||"properties"===u||this.setAttribute(e,u,t[u])}}catch(e){a={error:e}}finally{try{h&&!h.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}},e.prototype.replace=function(e,t){return this.insert(e,t),this.remove(t),t},e.prototype.childNode=function(e,t){return this.childNodes(e)[t]},e.prototype.allClasses=function(e){var t=this.getAttribute(e,"class");return t?t.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]},e}();DOMAdaptor.AbstractDOMAdaptor=AbstractDOMAdaptor;var __extends$b=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$6=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(HTMLAdaptor$1,"__esModule",{value:!0}),HTMLAdaptor$1.HTMLAdaptor=void 0;var DOMAdaptor_js_1=DOMAdaptor,HTMLAdaptor=function(e){function t(t){var r=e.call(this,t.document)||this;return r.window=t,r.parser=new t.DOMParser,r}return __extends$b(t,e),t.prototype.parse=function(e,t){return void 0===t&&(t="text/html"),this.parser.parseFromString(e,t)},t.prototype.create=function(e,t){return t?this.document.createElementNS(t,e):this.document.createElement(e)},t.prototype.text=function(e){return this.document.createTextNode(e)},t.prototype.head=function(e){return e.head||e},t.prototype.body=function(e){return e.body||e},t.prototype.root=function(e){return e.documentElement||e},t.prototype.doctype=function(e){return e.doctype?"<!DOCTYPE ".concat(e.doctype.name,">"):""},t.prototype.tags=function(e,t,r){void 0===r&&(r=null);var n=r?e.getElementsByTagNameNS(r,t):e.getElementsByTagName(t);return Array.from(n)},t.prototype.getElements=function(e,t){var r,n,o=[];try{for(var i=__values$6(e),a=i.next();!a.done;a=i.next()){var s=a.value;"string"==typeof s?o=o.concat(Array.from(this.document.querySelectorAll(s))):Array.isArray(s)||s instanceof this.window.NodeList||s instanceof this.window.HTMLCollection?o=o.concat(Array.from(s)):o.push(s)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},t.prototype.contains=function(e,t){return e.contains(t)},t.prototype.parent=function(e){return e.parentNode},t.prototype.append=function(e,t){return e.appendChild(t)},t.prototype.insert=function(e,t){return this.parent(t).insertBefore(e,t)},t.prototype.remove=function(e){return this.parent(e).removeChild(e)},t.prototype.replace=function(e,t){return this.parent(t).replaceChild(e,t)},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.split=function(e,t){return e.splitText(t)},t.prototype.next=function(e){return e.nextSibling},t.prototype.previous=function(e){return e.previousSibling},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.lastChild=function(e){return e.lastChild},t.prototype.childNodes=function(e){return Array.from(e.childNodes)},t.prototype.childNode=function(e,t){return e.childNodes[t]},t.prototype.kind=function(e){var t=e.nodeType;return 1===t||3===t||8===t?e.nodeName.toLowerCase():""},t.prototype.value=function(e){return e.nodeValue||""},t.prototype.textContent=function(e){return e.textContent},t.prototype.innerHTML=function(e){return e.innerHTML},t.prototype.outerHTML=function(e){return e.outerHTML},t.prototype.serializeXML=function(e){return(new this.window.XMLSerializer).serializeToString(e)},t.prototype.setAttribute=function(e,t,r,n){return void 0===n&&(n=null),n?(t=n.replace(/.*\//,"")+":"+t.replace(/^.*:/,""),e.setAttributeNS(n,t,r)):e.setAttribute(t,r)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.removeAttribute=function(e,t){return e.removeAttribute(t)},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.allAttributes=function(e){return Array.from(e.attributes).map((function(e){return{name:e.name,value:e.value}}))},t.prototype.addClass=function(e,t){e.classList?e.classList.add(t):e.className=(e.className+" "+t).trim()},t.prototype.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.split(/ /).filter((function(e){return e!==t})).join(" ")},t.prototype.hasClass=function(e,t){return e.classList?e.classList.contains(t):e.className.split(/ /).indexOf(t)>=0},t.prototype.setStyle=function(e,t,r){e.style[t]=r},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.allStyles=function(e){return e.style.cssText},t.prototype.insertRules=function(e,t){var r,n;try{for(var o=__values$6(t.reverse()),i=o.next();!i.done;i=o.next()){var a=i.value;try{e.sheet.insertRule(a,0)}catch(e){console.warn("MathJax: can't insert css rule '".concat(a,"': ").concat(e.message))}}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.prototype.fontSize=function(e){var t=this.window.getComputedStyle(e);return parseFloat(t.fontSize)},t.prototype.fontFamily=function(e){return this.window.getComputedStyle(e).fontFamily||""},t.prototype.nodeSize=function(e,t,r){if(void 0===t&&(t=1),void 0===r&&(r=!1),r&&e.getBBox){var n=e.getBBox();return[n.width/t,n.height/t]}return[e.offsetWidth/t,e.offsetHeight/t]},t.prototype.nodeBBox=function(e){var t=e.getBoundingClientRect();return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},t}(DOMAdaptor_js_1.AbstractDOMAdaptor);HTMLAdaptor$1.HTMLAdaptor=HTMLAdaptor,Object.defineProperty(browserAdaptor$1,"__esModule",{value:!0});var browserAdaptor_2=browserAdaptor$1.browserAdaptor=void 0,HTMLAdaptor_js_1=HTMLAdaptor$1;function browserAdaptor(){return new HTMLAdaptor_js_1.HTMLAdaptor(window)}browserAdaptor_2=browserAdaptor$1.browserAdaptor=browserAdaptor;var AllPackages={},ActionConfiguration={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionConfiguration=e.ActionMethods=void 0;var r=Configuration,n=t(TexParser$1),o=SymbolMap,i=t(BaseMethods$1);e.ActionMethods={},e.ActionMethods.Macro=i.default.Macro,e.ActionMethods.Toggle=function(e,t){for(var r,o=[];"\\endtoggle"!==(r=e.GetArgument(t));)o.push(new n.default(r,e.stack.env,e.configuration).mml());e.Push(e.create("node","maction",o,{actiontype:"toggle"}))},e.ActionMethods.Mathtip=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t);e.Push(e.create("node","maction",[r,n],{actiontype:"tooltip"}))},new o.CommandMap("action-macros",{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]},e.ActionMethods),e.ActionConfiguration=r.Configuration.create("action",{handler:{macro:["action-macros"]}})}(ActionConfiguration),getDefaultExportFromCjs$1(ActionConfiguration);var AmsConfiguration={},AmsItems={},__extends$a=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)},__importDefault$w=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AmsItems,"__esModule",{value:!0}),AmsItems.FlalignItem=AmsItems.MultlineItem=void 0;var BaseItems_js_1$4=BaseItems,ParseUtil_js_1$a=__importDefault$w(ParseUtil$1),NodeUtil_js_1$7=__importDefault$w(NodeUtil$1),TexError_js_1$d=__importDefault$w(TexError$1),TexConstants_js_1$8=TexConstants,MultlineItem=function(e){function t(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=e.call(this,t)||this;return o.factory.configuration.tags.start("multline",!0,r[0]),o}return __extends$a(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"multline"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){this.table.length&&ParseUtil_js_1$a.default.fixInitialMO(this.factory.configuration,this.nodes);var e=this.getProperty("shove"),t=this.create("node","mtd",this.nodes,e?{columnalign:e}:{});this.setProperty("shove",null),this.row.push(t),this.Clear()},t.prototype.EndRow=function(){if(1!==this.row.length)throw new TexError_js_1$d.default("MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline");var e=this.create("node","mtr",this.row);this.table.push(e),this.row=[]},t.prototype.EndTable=function(){if(e.prototype.EndTable.call(this),this.table.length){var t=this.table.length-1,r=-1;NodeUtil_js_1$7.default.getAttribute(NodeUtil_js_1$7.default.getChildren(this.table[0])[0],"columnalign")||NodeUtil_js_1$7.default.setAttribute(NodeUtil_js_1$7.default.getChildren(this.table[0])[0],"columnalign",TexConstants_js_1$8.TexConstant.Align.LEFT),NodeUtil_js_1$7.default.getAttribute(NodeUtil_js_1$7.default.getChildren(this.table[t])[0],"columnalign")||NodeUtil_js_1$7.default.setAttribute(NodeUtil_js_1$7.default.getChildren(this.table[t])[0],"columnalign",TexConstants_js_1$8.TexConstant.Align.RIGHT);var n=this.factory.configuration.tags.getTag();if(n){r=this.arraydef.side===TexConstants_js_1$8.TexConstant.Align.LEFT?0:this.table.length-1;var o=this.table[r],i=this.create("node","mlabeledtr",[n].concat(NodeUtil_js_1$7.default.getChildren(o)));NodeUtil_js_1$7.default.copyAttributes(o,i),this.table[r]=i}}this.factory.configuration.tags.end()},t}(BaseItems_js_1$4.ArrayItem);AmsItems.MultlineItem=MultlineItem;var FlalignItem=function(e){function t(t,r,n,o,i){var a=e.call(this,t)||this;return a.name=r,a.numbered=n,a.padded=o,a.center=i,a.factory.configuration.tags.start(r,n,n),a}return __extends$a(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"flalign"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var t=this.getProperty("xalignat");if(t&&this.row.length>t)throw new TexError_js_1$d.default("XalignOverflow","Extra %1 in row of %2","&",this.name)},t.prototype.EndRow=function(){for(var t,r=this.row,n=this.getProperty("xalignat");r.length<n;)r.push(this.create("node","mtd"));for(this.row=[],this.padded&&this.row.push(this.create("node","mtd"));t=r.shift();)this.row.push(t),(t=r.shift())&&this.row.push(t),(r.length||this.padded)&&this.row.push(this.create("node","mtd"));this.row.length>this.maxrow&&(this.maxrow=this.row.length),e.prototype.EndRow.call(this);var o=this.table[this.table.length-1];if(this.getProperty("zeroWidthLabel")&&o.isKind("mlabeledtr")){var i=NodeUtil_js_1$7.default.getChildren(o)[0],a=this.factory.configuration.options.tagSide,s=__assign({width:0},"right"===a?{lspace:"-1width"}:{}),l=this.create("node","mpadded",NodeUtil_js_1$7.default.getChildren(i),s);i.setChildren([l])}},t.prototype.EndTable=function(){(e.prototype.EndTable.call(this),this.center)&&(this.maxrow<=2&&(delete this.arraydef.width,delete this.global.indentalign))},t}(BaseItems_js_1$4.EqnArrayItem);AmsItems.FlalignItem=FlalignItem;var AmsMethods={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__assign||function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.NEW_OPS=e.AmsMethods=void 0;var o=n(ParseUtil$1),i=n(ParseMethods$1),a=n(NodeUtil$1),s=TexConstants,l=n(TexParser$1),c=n(TexError$1),u=_Symbol,d=n(BaseMethods$1),p=MmlNode;function m(e){if(!e||e.isInferred&&0===e.childNodes.length)return[null,null];if(e.isKind("msubsup")&&h(e))return[e,null];var t=a.default.getChildAt(e,0);return e.isInferred&&t&&h(t)?(e.childNodes.splice(0,1),[t,e]):[null,e]}function h(e){var t=e.childNodes[0];return t&&t.isKind("mi")&&""===t.getText()}e.AmsMethods={},e.AmsMethods.AmsEqnArray=function(e,t,r,n,i,a,s){var l=e.GetBrackets("\\begin{"+t.getName()+"}"),c=d.default.EqnArray(e,t,r,n,i,a,s);return o.default.setArrayAlign(c,l)},e.AmsMethods.AlignAt=function(t,r,n,i){var a,s,l=r.getName(),u="",d=[];if(i||(s=t.GetBrackets("\\begin{"+l+"}")),(a=t.GetArgument("\\begin{"+l+"}")).match(/[^0-9]/))throw new c.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+l+"}");for(var p=parseInt(a,10);p>0;)u+="rl",d.push("0em 0em"),p--;var m=d.join(" ");if(i)return e.AmsMethods.EqnArray(t,r,n,i,u,m);var h=e.AmsMethods.EqnArray(t,r,n,i,u,m);return o.default.setArrayAlign(h,s)},e.AmsMethods.Multline=function(e,t,r){e.Push(t),o.default.checkEqnEnv(e);var n=e.itemFactory.create("multline",r,e.stack);return n.arraydef={displaystyle:!0,rowspacing:".5em",columnspacing:"100%",width:e.options.ams.multlineWidth,side:e.options.tagSide,minlabelspacing:e.options.tagIndent,framespacing:e.options.ams.multlineIndent+" 0",frame:"","data-width-includes-label":!0},n},e.AmsMethods.XalignAt=function(t,r,n,o){var i=t.GetArgument("\\begin{"+r.getName()+"}");if(i.match(/[^0-9]/))throw new c.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+r.getName()+"}");var a=o?"crl":"rlc",s=o?"fit auto auto":"auto auto fit",l=e.AmsMethods.FlalignArray(t,r,n,o,!1,a,s,!0);return l.setProperty("xalignat",2*parseInt(i)),l},e.AmsMethods.FlalignArray=function(e,t,r,n,i,a,s,l){void 0===l&&(l=!1),e.Push(t),o.default.checkEqnEnv(e),a=a.split("").join(" ").replace(/r/g,"right").replace(/l/g,"left").replace(/c/g,"center");var c=e.itemFactory.create("flalign",t.getName(),r,n,i,e.stack);return c.arraydef={width:"100%",displaystyle:!0,columnalign:a,columnspacing:"0em",columnwidth:s,rowspacing:"3pt",side:e.options.tagSide,minlabelspacing:l?"0":e.options.tagIndent,"data-width-includes-label":!0},c.setProperty("zeroWidthLabel",l),c},e.NEW_OPS="ams-declare-ops",e.AmsMethods.HandleDeclareOp=function(t,r){var n=t.GetStar()?"*":"",i=o.default.trimSpaces(t.GetArgument(r));"\\"===i.charAt(0)&&(i=i.substr(1));var a=t.GetArgument(r);t.configuration.handlers.retrieve(e.NEW_OPS).add(i,new u.Macro(i,e.AmsMethods.Macro,["\\operatorname".concat(n,"{").concat(a,"}")]))},e.AmsMethods.HandleOperatorName=function(e,r){var n=e.GetStar(),i=o.default.trimSpaces(e.GetArgument(r)),c=new l.default(i,t(t({},e.stack.env),{font:s.TexConstant.Variant.NORMAL,multiLetterIdentifiers:/^[-*a-z]+/i,operatorLetters:!0}),e.configuration).mml();if(c.isKind("mi")||(c=e.create("node","TeXAtom",[c])),a.default.setProperties(c,{movesupsub:n,movablelimits:!0,texClass:p.TEXCLASS.OP}),!n){var u=e.GetNext(),d=e.i;"\\"===u&&++e.i&&"limits"!==e.GetCS()&&(e.i=d)}e.Push(c)},e.AmsMethods.SideSet=function(e,t){var n=r(m(e.ParseArg(t)),2),i=n[0],s=n[1],l=r(m(e.ParseArg(t)),2),c=l[0],u=l[1],d=e.ParseArg(t),h=d;i&&(s?i.replaceChild(e.create("node","mphantom",[e.create("node","mpadded",[o.default.copyNode(d,e)],{width:0})]),a.default.getChildAt(i,0)):(h=e.create("node","mmultiscripts",[d]),c&&a.default.appendChildren(h,[a.default.getChildAt(c,1)||e.create("node","none"),a.default.getChildAt(c,2)||e.create("node","none")]),a.default.setProperty(h,"scriptalign","left"),a.default.appendChildren(h,[e.create("node","mprescripts"),a.default.getChildAt(i,1)||e.create("node","none"),a.default.getChildAt(i,2)||e.create("node","none")]))),c&&h===d&&(c.replaceChild(d,a.default.getChildAt(c,0)),h=c);var f=e.create("node","TeXAtom",[],{texClass:p.TEXCLASS.OP,movesupsub:!0,movablelimits:!0});s&&(i&&f.appendChild(i),f.appendChild(s)),f.appendChild(h),u&&f.appendChild(u),e.Push(f)},e.AmsMethods.operatorLetter=function(e,t){return!!e.stack.env.operatorLetters&&i.default.variable(e,t)},e.AmsMethods.MultiIntegral=function(e,t,r){var n=e.GetNext();if("\\"===n){var o=e.i;n=e.GetArgument(t),e.i=o,"\\limits"===n&&(r="\\idotsint"===t?"\\!\\!\\mathop{\\,\\,"+r+"}":"\\!\\!\\!\\mathop{\\,\\,\\,"+r+"}")}e.string=r+" "+e.string.slice(e.i),e.i=0},e.AmsMethods.xArrow=function(e,t,r,n,i){var s={width:"+"+o.default.Em((n+i)/18),lspace:o.default.Em(n/18)},c=e.GetBrackets(t),u=e.ParseArg(t),d=e.create("node","mspace",[],{depth:".25em"}),m=e.create("token","mo",{stretchy:!0,texClass:p.TEXCLASS.REL},String.fromCodePoint(r));m=e.create("node","mstyle",[m],{scriptlevel:0});var h=e.create("node","munderover",[m]),f=e.create("node","mpadded",[u,d],s);if(a.default.setAttribute(f,"voffset","-.2em"),a.default.setAttribute(f,"height","-.2em"),a.default.setChild(h,h.over,f),c){var _=new l.default(c,e.stack.env,e.configuration).mml(),g=e.create("node","mspace",[],{height:".75em"});f=e.create("node","mpadded",[_,g],s),a.default.setAttribute(f,"voffset",".15em"),a.default.setAttribute(f,"depth","-.15em"),a.default.setChild(h,h.under,f)}a.default.setProperty(h,"subsupOK",!0),e.Push(h)},e.AmsMethods.HandleShove=function(e,t,r){var n=e.stack.Top();if("multline"!==n.kind)throw new c.default("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",e.currentCS,"multline");if(n.Size())throw new c.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",e.currentCS);n.setProperty("shove",r)},e.AmsMethods.CFrac=function(e,t){var r=o.default.trimSpaces(e.GetBrackets(t,"")),n=e.GetArgument(t),i=e.GetArgument(t),u={l:s.TexConstant.Align.LEFT,r:s.TexConstant.Align.RIGHT,"":""},d=new l.default("\\strut\\textstyle{"+n+"}",e.stack.env,e.configuration).mml(),p=new l.default("\\strut\\textstyle{"+i+"}",e.stack.env,e.configuration).mml(),m=e.create("node","mfrac",[d,p]);if(null==(r=u[r]))throw new c.default("IllegalAlign","Illegal alignment specified in %1",e.currentCS);r&&a.default.setProperties(m,{numalign:r,denomalign:r}),e.Push(m)},e.AmsMethods.Genfrac=function(e,t,r,n,i,s){null==r&&(r=e.GetDelimiterArg(t)),null==n&&(n=e.GetDelimiterArg(t)),null==i&&(i=e.GetArgument(t)),null==s&&(s=o.default.trimSpaces(e.GetArgument(t)));var l=e.ParseArg(t),u=e.ParseArg(t),d=e.create("node","mfrac",[l,u]);if(""!==i&&a.default.setAttribute(d,"linethickness",i),(r||n)&&(a.default.setProperty(d,"withDelims",!0),d=o.default.fixedFence(e.configuration,r,d,n)),""!==s){var p=parseInt(s,10),m=["D","T","S","SS"][p];if(null==m)throw new c.default("BadMathStyleFor","Bad math style for %1",e.currentCS);d=e.create("node","mstyle",[d]),"D"===m?a.default.setProperties(d,{displaystyle:!0,scriptlevel:0}):a.default.setProperties(d,{displaystyle:!1,scriptlevel:p-1})}e.Push(d)},e.AmsMethods.HandleTag=function(e,t){if(!e.tags.currentTag.taggable&&e.tags.env)throw new c.default("CommandNotAllowedInEnv","%1 not allowed in %2 environment",e.currentCS,e.tags.env);if(e.tags.currentTag.tag)throw new c.default("MultipleCommand","Multiple %1",e.currentCS);var r=e.GetStar(),n=o.default.trimSpaces(e.GetArgument(t));e.tags.tag(n,r)},e.AmsMethods.HandleNoTag=d.default.HandleNoTag,e.AmsMethods.HandleRef=d.default.HandleRef,e.AmsMethods.Macro=d.default.Macro,e.AmsMethods.Accent=d.default.Accent,e.AmsMethods.Tilde=d.default.Tilde,e.AmsMethods.Array=d.default.Array,e.AmsMethods.Spacer=d.default.Spacer,e.AmsMethods.NamedOp=d.default.NamedOp,e.AmsMethods.EqnArray=d.default.EqnArray,e.AmsMethods.Equation=d.default.Equation}(AmsMethods),getDefaultExportFromCjs$1(AmsMethods);var AmsMappings={},__createBinding$5=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$5=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$5=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$5(t,e,r);return __setModuleDefault$5(t,e),t},__importDefault$v=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AmsMappings,"__esModule",{value:!0});var AmsMethods_js_1$2=AmsMethods,sm$3=__importStar$5(SymbolMap),TexConstants_js_1$7=TexConstants,ParseMethods_js_1$6=__importDefault$v(ParseMethods$1),ParseUtil_js_1$9=__importDefault$v(ParseUtil$1),MmlNode_js_1$6=MmlNode,lengths_js_1$1=lengths;new sm$3.CharacterMap("AMSmath-mathchar0mo",ParseMethods_js_1$6.default.mathchar0mo,{iiiint:["⨌",{texClass:MmlNode_js_1$6.TEXCLASS.OP}]}),new sm$3.RegExpMap("AMSmath-operatorLetter",AmsMethods_js_1$2.AmsMethods.operatorLetter,/[-*]/i),new sm$3.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",lengths_js_1$1.MATHSPACE.negativemediummathspace],negthickspace:["Spacer",lengths_js_1$1.MATHSPACE.negativethickmathspace],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:"SideSet",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",!0],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj lim"],projlim:["NamedOp","proj lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",TexConstants_js_1$7.TexConstant.Align.LEFT],shoveright:["HandleShove",TexConstants_js_1$7.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,10],xleftarrow:["xArrow",8592,10,5]},AmsMethods_js_1$2.AmsMethods),new sm$3.EnvironmentMap("AMSmath-environment",ParseMethods_js_1$6.default.environment,{"equation*":["Equation",null,!1],"eqnarray*":["EqnArray",null,!1,!0,"rcl",ParseUtil_js_1$9.default.cols(0,lengths_js_1$1.MATHSPACE.thickmathspace),".5em"],align:["EqnArray",null,!0,!0,"rl",ParseUtil_js_1$9.default.cols(0,2)],"align*":["EqnArray",null,!1,!0,"rl",ParseUtil_js_1$9.default.cols(0,2)],multline:["Multline",null,!0],"multline*":["Multline",null,!1],split:["EqnArray",null,!1,!1,"rl",ParseUtil_js_1$9.default.cols(0)],gather:["EqnArray",null,!0,!0,"c"],"gather*":["EqnArray",null,!1,!0,"c"],alignat:["AlignAt",null,!0,!0],"alignat*":["AlignAt",null,!1,!0],alignedat:["AlignAt",null,!1,!1],aligned:["AmsEqnArray",null,null,null,"rl",ParseUtil_js_1$9.default.cols(0,2),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],xalignat:["XalignAt",null,!0,!0],"xalignat*":["XalignAt",null,!1,!0],xxalignat:["XalignAt",null,!1,!1],flalign:["FlalignArray",null,!0,!1,!0,"rlc","auto auto fit"],"flalign*":["FlalignArray",null,!1,!1,!0,"rlc","auto auto fit"],subarray:["Array",null,null,null,null,ParseUtil_js_1$9.default.cols(0),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",ParseUtil_js_1$9.default.cols(1/3),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},AmsMethods_js_1$2.AmsMethods),new sm$3.DelimiterMap("AMSmath-delimiter",ParseMethods_js_1$6.default.delimiter,{"\\lvert":["|",{texClass:MmlNode_js_1$6.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:MmlNode_js_1$6.TEXCLASS.CLOSE}],"\\lVert":["‖",{texClass:MmlNode_js_1$6.TEXCLASS.OPEN}],"\\rVert":["‖",{texClass:MmlNode_js_1$6.TEXCLASS.CLOSE}]}),new sm$3.CharacterMap("AMSsymbols-mathchar0mi",ParseMethods_js_1$6.default.mathchar0mi,{digamma:"ϝ",varkappa:"ϰ",varGamma:["Γ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varDelta:["Δ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varTheta:["Θ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varLambda:["Λ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varXi:["Ξ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varPi:["Π",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varSigma:["Σ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varUpsilon:["Υ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varPhi:["Φ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varPsi:["Ψ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],varOmega:["Ω",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.ITALIC}],beth:"ℶ",gimel:"ℷ",daleth:"ℸ",backprime:["‵",{variantForm:!0}],hslash:"ℏ",varnothing:["∅",{variantForm:!0}],blacktriangle:"▴",triangledown:["▽",{variantForm:!0}],blacktriangledown:"▾",square:"◻",Box:"◻",blacksquare:"◼",lozenge:"◊",Diamond:"◊",blacklozenge:"⧫",circledS:["Ⓢ",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.NORMAL}],bigstar:"★",sphericalangle:"∢",measuredangle:"∡",nexists:"∄",complement:"∁",mho:"℧",eth:["ð",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.NORMAL}],Finv:"Ⅎ",diagup:"╱",Game:"⅁",diagdown:"╲",Bbbk:["k",{mathvariant:TexConstants_js_1$7.TexConstant.Variant.DOUBLESTRUCK}],yen:"¥",circledR:"®",checkmark:"✓",maltese:"✠"}),new sm$3.CharacterMap("AMSsymbols-mathchar0mo",ParseMethods_js_1$6.default.mathchar0mo,{dotplus:"∔",ltimes:"⋉",smallsetminus:["∖",{variantForm:!0}],rtimes:"⋊",Cap:"⋒",doublecap:"⋒",leftthreetimes:"⋋",Cup:"⋓",doublecup:"⋓",rightthreetimes:"⋌",barwedge:"⊼",curlywedge:"⋏",veebar:"⊻",curlyvee:"⋎",doublebarwedge:"⩞",boxminus:"⊟",circleddash:"⊝",boxtimes:"⊠",circledast:"⊛",boxdot:"⊡",circledcirc:"⊚",boxplus:"⊞",centerdot:["⋅",{variantForm:!0}],divideontimes:"⋇",intercal:"⊺",leqq:"≦",geqq:"≧",leqslant:"⩽",geqslant:"⩾",eqslantless:"⪕",eqslantgtr:"⪖",lesssim:"≲",gtrsim:"≳",lessapprox:"⪅",gtrapprox:"⪆",approxeq:"≊",lessdot:"⋖",gtrdot:"⋗",lll:"⋘",llless:"⋘",ggg:"⋙",gggtr:"⋙",lessgtr:"≶",gtrless:"≷",lesseqgtr:"⋚",gtreqless:"⋛",lesseqqgtr:"⪋",gtreqqless:"⪌",doteqdot:"≑",Doteq:"≑",eqcirc:"≖",risingdotseq:"≓",circeq:"≗",fallingdotseq:"≒",triangleq:"≜",backsim:"∽",thicksim:["∼",{variantForm:!0}],backsimeq:"⋍",thickapprox:["≈",{variantForm:!0}],subseteqq:"⫅",supseteqq:"⫆",Subset:"⋐",Supset:"⋑",sqsubset:"⊏",sqsupset:"⊐",preccurlyeq:"≼",succcurlyeq:"≽",curlyeqprec:"⋞",curlyeqsucc:"⋟",precsim:"≾",succsim:"≿",precapprox:"⪷",succapprox:"⪸",vartriangleleft:"⊲",lhd:"⊲",vartriangleright:"⊳",rhd:"⊳",trianglelefteq:"⊴",unlhd:"⊴",trianglerighteq:"⊵",unrhd:"⊵",vDash:["⊨",{variantForm:!0}],Vdash:"⊩",Vvdash:"⊪",smallsmile:["⌣",{variantForm:!0}],shortmid:["∣",{variantForm:!0}],smallfrown:["⌢",{variantForm:!0}],shortparallel:["∥",{variantForm:!0}],bumpeq:"≏",between:"≬",Bumpeq:"≎",pitchfork:"⋔",varpropto:["∝",{variantForm:!0}],backepsilon:"∍",blacktriangleleft:"◂",blacktriangleright:"▸",therefore:"∴",because:"∵",eqsim:"≂",vartriangle:["△",{variantForm:!0}],Join:"⋈",nless:"≮",ngtr:"≯",nleq:"≰",ngeq:"≱",nleqslant:["⪇",{variantForm:!0}],ngeqslant:["⪈",{variantForm:!0}],nleqq:["≰",{variantForm:!0}],ngeqq:["≱",{variantForm:!0}],lneq:"⪇",gneq:"⪈",lneqq:"≨",gneqq:"≩",lvertneqq:["≨",{variantForm:!0}],gvertneqq:["≩",{variantForm:!0}],lnsim:"⋦",gnsim:"⋧",lnapprox:"⪉",gnapprox:"⪊",nprec:"⊀",nsucc:"⊁",npreceq:["⋠",{variantForm:!0}],nsucceq:["⋡",{variantForm:!0}],precneqq:"⪵",succneqq:"⪶",precnsim:"⋨",succnsim:"⋩",precnapprox:"⪹",succnapprox:"⪺",nsim:"≁",ncong:"≇",nshortmid:["∤",{variantForm:!0}],nshortparallel:["∦",{variantForm:!0}],nmid:"∤",nparallel:"∦",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",ntriangleleft:"⋪",ntriangleright:"⋫",ntrianglelefteq:"⋬",ntrianglerighteq:"⋭",nsubseteq:"⊈",nsupseteq:"⊉",nsubseteqq:["⊈",{variantForm:!0}],nsupseteqq:["⊉",{variantForm:!0}],subsetneq:"⊊",supsetneq:"⊋",varsubsetneq:["⊊",{variantForm:!0}],varsupsetneq:["⊋",{variantForm:!0}],subsetneqq:"⫋",supsetneqq:"⫌",varsubsetneqq:["⫋",{variantForm:!0}],varsupsetneqq:["⫌",{variantForm:!0}],leftleftarrows:"⇇",rightrightarrows:"⇉",leftrightarrows:"⇆",rightleftarrows:"⇄",Lleftarrow:"⇚",Rrightarrow:"⇛",twoheadleftarrow:"↞",twoheadrightarrow:"↠",leftarrowtail:"↢",rightarrowtail:"↣",looparrowleft:"↫",looparrowright:"↬",leftrightharpoons:"⇋",rightleftharpoons:["⇌",{variantForm:!0}],curvearrowleft:"↶",curvearrowright:"↷",circlearrowleft:"↺",circlearrowright:"↻",Lsh:"↰",Rsh:"↱",upuparrows:"⇈",downdownarrows:"⇊",upharpoonleft:"↿",upharpoonright:"↾",downharpoonleft:"⇃",restriction:"↾",multimap:"⊸",downharpoonright:"⇂",leftrightsquigarrow:"↭",rightsquigarrow:"⇝",leadsto:"⇝",dashrightarrow:"⇢",dashleftarrow:"⇠",nleftarrow:"↚",nrightarrow:"↛",nLeftarrow:"⇍",nRightarrow:"⇏",nleftrightarrow:"↮",nLeftrightarrow:"⇎"}),new sm$3.DelimiterMap("AMSsymbols-delimiter",ParseMethods_js_1$6.default.delimiter,{"\\ulcorner":"⌜","\\urcorner":"⌝","\\llcorner":"⌞","\\lrcorner":"⌟"}),new sm$3.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},AmsMethods_js_1$2.AmsMethods);var __extends$9=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_a$6;Object.defineProperty(AmsConfiguration,"__esModule",{value:!0}),AmsConfiguration.AmsConfiguration=AmsConfiguration.AmsTags=void 0;var Configuration_js_1$i=Configuration,AmsItems_js_1$1=AmsItems,Tags_js_1$3=Tags,AmsMethods_js_1$1=AmsMethods,SymbolMap_js_1$f=SymbolMap,AmsTags=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$9(t,e),t}(Tags_js_1$3.AbstractTags);AmsConfiguration.AmsTags=AmsTags;var init$1=function(e){new SymbolMap_js_1$f.CommandMap(AmsMethods_js_1$1.NEW_OPS,{},{}),e.append(Configuration_js_1$i.Configuration.local({handler:{macro:[AmsMethods_js_1$1.NEW_OPS]},priority:-1}))};AmsConfiguration.AmsConfiguration=Configuration_js_1$i.Configuration.create("ams",{handler:{character:["AMSmath-operatorLetter"],delimiter:["AMSsymbols-delimiter","AMSmath-delimiter"],macro:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0mo","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],environment:["AMSmath-environment"]},items:(_a$6={},_a$6[AmsItems_js_1$1.MultlineItem.prototype.kind]=AmsItems_js_1$1.MultlineItem,_a$6[AmsItems_js_1$1.FlalignItem.prototype.kind]=AmsItems_js_1$1.FlalignItem,_a$6),tags:{ams:AmsTags},init:init$1,config:function(e,t){t.parseOptions.options.multlineWidth&&(t.parseOptions.options.ams.multlineWidth=t.parseOptions.options.multlineWidth),delete t.parseOptions.options.multlineWidth},options:{multlineWidth:"",ams:{multlineWidth:"100%",multlineIndent:"1em"}}});var AmsCdConfiguration={},AmsCdMappings={},AmsCdMethods$1={},__importDefault$u=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AmsCdMethods$1,"__esModule",{value:!0});var TexParser_js_1$7=__importDefault$u(TexParser$1),BaseConfiguration_js_1=BaseConfiguration,MmlNode_js_1$5=MmlNode,NodeUtil_js_1$6=__importDefault$u(NodeUtil$1),AmsCdMethods={CD:function(e,t){e.Push(t);var r=e.itemFactory.create("array"),n=e.configuration.options.amscd;return r.setProperties({minw:e.stack.env.CD_minw||n.harrowsize,minh:e.stack.env.CD_minh||n.varrowsize}),r.arraydef={columnalign:"center",columnspacing:n.colspace,rowspacing:n.rowspace,displaystyle:!0},r},arrow:function(e,t){var r=e.string.charAt(e.i);if(!r.match(/[><VA.|=]/))return(0,BaseConfiguration_js_1.Other)(e,t);e.i++;var n=e.stack.Top();n.isKind("array")&&!n.Size()||(AmsCdMethods.cell(e,t),n=e.stack.Top());for(var o,i=n,a=i.table.length%2==1,s=(i.row.length+(a?0:1))%2;s;)AmsCdMethods.cell(e,t),s--;var l={minsize:i.getProperty("minw"),stretchy:!0},c={minsize:i.getProperty("minh"),stretchy:!0,symmetric:!0,lspace:0,rspace:0};if("."===r);else if("|"===r)o=e.create("token","mo",c,"∥");else if("="===r)o=e.create("token","mo",l,"=");else{var u={">":"→","<":"←",V:"↓",A:"↑"}[r],d=e.GetUpTo(t+r,r),p=e.GetUpTo(t+r,r);if(">"===r||"<"===r){if(o=e.create("token","mo",l,u),d||(d="\\kern "+i.getProperty("minw")),d||p){var m={width:"+.67em",lspace:".33em"};if(o=e.create("node","munderover",[o]),d){var h=new TexParser_js_1$7.default(d,e.stack.env,e.configuration).mml(),f=e.create("node","mpadded",[h],m);NodeUtil_js_1$6.default.setAttribute(f,"voffset",".1em"),NodeUtil_js_1$6.default.setChild(o,o.over,f)}if(p){var _=new TexParser_js_1$7.default(p,e.stack.env,e.configuration).mml();NodeUtil_js_1$6.default.setChild(o,o.under,e.create("node","mpadded",[_],m))}e.configuration.options.amscd.hideHorizontalLabels&&(o=e.create("node","mpadded",o,{depth:0,height:".67em"}))}}else{var g=e.create("token","mo",c,u);o=g,(d||p)&&(o=e.create("node","mrow"),d&&NodeUtil_js_1$6.default.appendChildren(o,[new TexParser_js_1$7.default("\\scriptstyle\\llap{"+d+"}",e.stack.env,e.configuration).mml()]),g.texClass=MmlNode_js_1$5.TEXCLASS.ORD,NodeUtil_js_1$6.default.appendChildren(o,[g]),p&&NodeUtil_js_1$6.default.appendChildren(o,[new TexParser_js_1$7.default("\\scriptstyle\\rlap{"+p+"}",e.stack.env,e.configuration).mml()]))}}o&&e.Push(o),AmsCdMethods.cell(e,t)},cell:function(e,t){var r=e.stack.Top();(r.table||[]).length%2==0&&0===(r.row||[]).length&&e.Push(e.create("node","mpadded",[],{height:"8.5pt",depth:"2pt"})),e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}))},minCDarrowwidth:function(e,t){e.stack.env.CD_minw=e.GetDimen(t)},minCDarrowheight:function(e,t){e.stack.env.CD_minh=e.GetDimen(t)}};AmsCdMethods$1.default=AmsCdMethods;var __createBinding$4=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$4=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$4=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$4(t,e,r);return __setModuleDefault$4(t,e),t},__importDefault$t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AmsCdMappings,"__esModule",{value:!0});var sm$2=__importStar$4(SymbolMap),ParseMethods_js_1$5=__importDefault$t(ParseMethods$1),AmsCdMethods_js_1=__importDefault$t(AmsCdMethods$1);new sm$2.EnvironmentMap("amscd_environment",ParseMethods_js_1$5.default.environment,{CD:"CD"},AmsCdMethods_js_1.default),new sm$2.CommandMap("amscd_macros",{minCDarrowwidth:"minCDarrowwidth",minCDarrowheight:"minCDarrowheight"},AmsCdMethods_js_1.default),new sm$2.MacroMap("amscd_special",{"@":"arrow"},AmsCdMethods_js_1.default),Object.defineProperty(AmsCdConfiguration,"__esModule",{value:!0}),AmsCdConfiguration.AmsCdConfiguration=void 0;var Configuration_js_1$h=Configuration;AmsCdConfiguration.AmsCdConfiguration=Configuration_js_1$h.Configuration.create("amscd",{handler:{character:["amscd_special"],macro:["amscd_macros"],environment:["amscd_environment"]},options:{amscd:{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:!1}}});var BboxConfiguration={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.BboxConfiguration=e.BboxMethods=void 0;var r=Configuration,n=SymbolMap,o=t(TexError$1);e.BboxMethods={},e.BboxMethods.BBox=function(e,t){for(var r,n,s,l=e.GetBrackets(t,""),c=e.ParseArg(t),u=l.split(/,/),d=0,p=u.length;d<p;d++){var m=u[d].trim(),h=m.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(h){if(r)throw new o.default("MultipleBBoxProperty","%1 specified twice in %2","Padding",t);var f=a(h[1]+h[3]);f&&(r={height:"+"+f,depth:"+"+f,lspace:f,width:"+"+2*parseInt(h[1],10)+h[3]})}else if(m.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)){if(n)throw new o.default("MultipleBBoxProperty","%1 specified twice in %2","Background",t);n=m}else if(m.match(/^[-a-z]+:/i)){if(s)throw new o.default("MultipleBBoxProperty","%1 specified twice in %2","Style",t);s=i(m)}else if(""!==m)throw new o.default("InvalidBBoxProperty",'"%1" doesn\'t look like a color, a padding dimension, or a style',m)}r&&(c=e.create("node","mpadded",[c],r)),(n||s)&&(r={},n&&Object.assign(r,{mathbackground:n}),s&&Object.assign(r,{style:s}),c=e.create("node","mstyle",[c],r)),e.Push(c)};var i=function(e){return e},a=function(e){return e};new n.CommandMap("bbox",{bbox:"BBox"},e.BboxMethods),e.BboxConfiguration=r.Configuration.create("bbox",{handler:{macro:["bbox"]}})}(BboxConfiguration),getDefaultExportFromCjs$1(BboxConfiguration);var BoldsymbolConfiguration={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.BoldsymbolConfiguration=e.rewriteBoldTokens=e.createBoldToken=e.BoldsymbolMethods=void 0;var n=Configuration,o=r(NodeUtil$1),i=TexConstants,a=SymbolMap,s=NodeFactory$1,l={};function c(e,t,r,n){var i=s.NodeFactory.createToken(e,t,r,n);return"mtext"!==t&&e.configuration.parser.stack.env.boldsymbol&&(o.default.setProperty(i,"fixBold",!0),e.configuration.addNode("fixBold",i)),i}function u(e){var r,n;try{for(var a=t(e.data.getList("fixBold")),s=a.next();!s.done;s=a.next()){var c=s.value;if(o.default.getProperty(c,"fixBold")){var u=o.default.getAttribute(c,"mathvariant");null==u?o.default.setAttribute(c,"mathvariant",i.TexConstant.Variant.BOLD):o.default.setAttribute(c,"mathvariant",l[u]||u),o.default.removeProperties(c,"fixBold")}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}l[i.TexConstant.Variant.NORMAL]=i.TexConstant.Variant.BOLD,l[i.TexConstant.Variant.ITALIC]=i.TexConstant.Variant.BOLDITALIC,l[i.TexConstant.Variant.FRAKTUR]=i.TexConstant.Variant.BOLDFRAKTUR,l[i.TexConstant.Variant.SCRIPT]=i.TexConstant.Variant.BOLDSCRIPT,l[i.TexConstant.Variant.SANSSERIF]=i.TexConstant.Variant.BOLDSANSSERIF,l["-tex-calligraphic"]="-tex-bold-calligraphic",l["-tex-oldstyle"]="-tex-bold-oldstyle",l["-tex-mathit"]=i.TexConstant.Variant.BOLDITALIC,e.BoldsymbolMethods={},e.BoldsymbolMethods.Boldsymbol=function(e,t){var r=e.stack.env.boldsymbol;e.stack.env.boldsymbol=!0;var n=e.ParseArg(t);e.stack.env.boldsymbol=r,e.Push(n)},new a.CommandMap("boldsymbol",{boldsymbol:"Boldsymbol"},e.BoldsymbolMethods),e.createBoldToken=c,e.rewriteBoldTokens=u,e.BoldsymbolConfiguration=n.Configuration.create("boldsymbol",{handler:{macro:["boldsymbol"]},nodes:{token:c},postprocessors:[u]})}(BoldsymbolConfiguration),getDefaultExportFromCjs$1(BoldsymbolConfiguration);var BraketConfiguration={},BraketItems={},__extends$8=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__importDefault$s=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BraketItems,"__esModule",{value:!0}),BraketItems.BraketItem=void 0;var StackItem_js_1$3=StackItem,MmlNode_js_1$4=MmlNode,ParseUtil_js_1$8=__importDefault$s(ParseUtil$1),BraketItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$8(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"braket"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){return t.isKind("close")?[[this.factory.create("mml",this.toMml())],!0]:t.isKind("mml")?(this.Push(t.toMml()),this.getProperty("single")?[[this.toMml()],!0]:StackItem_js_1$3.BaseItem.fail):e.prototype.checkItem.call(this,t)},t.prototype.toMml=function(){var t=e.prototype.toMml.call(this),r=this.getProperty("open"),n=this.getProperty("close");if(this.getProperty("stretchy"))return ParseUtil_js_1$8.default.fenced(this.factory.configuration,r,t,n);var o={fence:!0,stretchy:!1,symmetric:!0,texClass:MmlNode_js_1$4.TEXCLASS.OPEN},i=this.create("token","mo",o,r);o.texClass=MmlNode_js_1$4.TEXCLASS.CLOSE;var a=this.create("token","mo",o,n);return this.create("node","mrow",[i,t,a],{open:r,close:n,texClass:MmlNode_js_1$4.TEXCLASS.INNER})},t}(StackItem_js_1$3.BaseItem);BraketItems.BraketItem=BraketItem;var BraketMappings={},BraketMethods$1={},__importDefault$r=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BraketMethods$1,"__esModule",{value:!0});var BaseMethods_js_1$5=__importDefault$r(BaseMethods$1),MmlNode_js_1$3=MmlNode,TexError_js_1$c=__importDefault$r(TexError$1),BraketMethods={};BraketMethods.Macro=BaseMethods_js_1$5.default.Macro,BraketMethods.Braket=function(e,t,r,n,o,i){var a=e.GetNext();if(""===a)throw new TexError_js_1$c.default("MissingArgFor","Missing argument for %1",e.currentCS);var s=!0;"{"===a&&(e.i++,s=!1),e.Push(e.itemFactory.create("braket").setProperties({barmax:i,barcount:0,open:r,close:n,stretchy:o,single:s}))},BraketMethods.Bar=function(e,t){var r="|"===t?"|":"∥",n=e.stack.Top();if("braket"!==n.kind||n.getProperty("barcount")>=n.getProperty("barmax")){var o=e.create("token","mo",{texClass:MmlNode_js_1$3.TEXCLASS.ORD,stretchy:!1},r);e.Push(o)}else{if("|"===r&&"|"===e.GetNext()&&(e.i++,r="∥"),n.getProperty("stretchy")){var i=e.create("node","TeXAtom",[],{texClass:MmlNode_js_1$3.TEXCLASS.CLOSE});e.Push(i),n.setProperty("barcount",n.getProperty("barcount")+1),i=e.create("token","mo",{stretchy:!0,braketbar:!0},r),e.Push(i),i=e.create("node","TeXAtom",[],{texClass:MmlNode_js_1$3.TEXCLASS.OPEN}),e.Push(i)}else{var a=e.create("token","mo",{stretchy:!1,braketbar:!0},r);e.Push(a)}}},BraketMethods$1.default=BraketMethods;var __importDefault$q=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BraketMappings,"__esModule",{value:!0});var SymbolMap_js_1$e=SymbolMap,BraketMethods_js_1=__importDefault$q(BraketMethods$1),_a$5;new SymbolMap_js_1$e.CommandMap("Braket-macros",{bra:["Macro","{\\langle {#1} \\vert}",1],ket:["Macro","{\\vert {#1} \\rangle}",1],braket:["Braket","⟨","⟩",!1,1/0],set:["Braket","{","}",!1,1],Bra:["Macro","{\\left\\langle {#1} \\right\\vert}",1],Ket:["Macro","{\\left\\vert {#1} \\right\\rangle}",1],Braket:["Braket","⟨","⟩",!0,1/0],Set:["Braket","{","}",!0,1],ketbra:["Macro","{\\vert {#1} \\rangle\\langle {#2} \\vert}",2],Ketbra:["Macro","{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}",2],"|":"Bar"},BraketMethods_js_1.default),new SymbolMap_js_1$e.MacroMap("Braket-characters",{"|":"Bar"},BraketMethods_js_1.default),Object.defineProperty(BraketConfiguration,"__esModule",{value:!0}),BraketConfiguration.BraketConfiguration=void 0;var Configuration_js_1$g=Configuration,BraketItems_js_1=BraketItems;BraketConfiguration.BraketConfiguration=Configuration_js_1$g.Configuration.create("braket",{handler:{character:["Braket-characters"],macro:["Braket-macros"]},items:(_a$5={},_a$5[BraketItems_js_1.BraketItem.prototype.kind]=BraketItems_js_1.BraketItem,_a$5)});var BussproofsConfiguration={},BussproofsItems={},BussproofsUtil$2={};!function(e){var t,r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.clearDocument=e.saveDocument=e.makeBsprAttributes=e.removeProperty=e.getProperty=e.setProperty=e.balanceRules=void 0;var i=o(NodeUtil$1),a=o(ParseUtil$1),s=null,l=null,c=function(e){return l.root=e,s.outputJax.getBBox(l,s).w},u=function(e){for(var t=0;e&&!i.default.isType(e,"mtable");){if(i.default.isType(e,"text"))return null;i.default.isType(e,"mrow")?(e=e.childNodes[0],t=0):(e=e.parent.childNodes[t],t++)}return e},d=function(e,t){return e.childNodes["up"===t?1:0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]},p=function(e,t){return e.childNodes[t].childNodes[0].childNodes[0]},m=function(e){return p(e,0)},h=function(e){return p(e,e.childNodes.length-1)},f=function(e,t){return e.childNodes["up"===t?0:1].childNodes[0].childNodes[0].childNodes[0]},_=function(e){for(;e&&!i.default.isType(e,"mtd");)e=e.parent;return e},g=function(e){return e.parent.childNodes[e.parent.childNodes.indexOf(e)+1]},y=function(t){for(;t&&null==(0,e.getProperty)(t,"inference");)t=t.parent;return t},b=function(e,t,r){void 0===r&&(r=!1);var n=0;if(e===t)return n;if(e!==t.parent){var o=e.childNodes,a=r?o.length-1:0;i.default.isType(o[a],"mspace")&&(n+=c(o[a])),e=t.parent}if(e===t)return n;var s=e.childNodes,l=r?s.length-1:0;return s[l]!==t&&(n+=c(s[l])),n},v=function(t,r){void 0===r&&(r=!1);var n=u(t),o=f(n,(0,e.getProperty)(n,"inferenceRule"));return b(t,n,r)+(c(n)-c(o))/2},x=function(t,r,n,o){if(void 0===o&&(o=!1),(0,e.getProperty)(r,"inferenceRule")||(0,e.getProperty)(r,"labelledRule")){var s=t.nodeFactory.create("node","mrow");r.parent.replaceChild(s,r),s.setChildren([r]),M(r,s),r=s}var l=o?r.childNodes.length-1:0,c=r.childNodes[l];i.default.isType(c,"mspace")?i.default.setAttribute(c,"width",a.default.Em(a.default.dimen2em(i.default.getAttribute(c,"width"))+n)):(c=t.nodeFactory.create("node","mspace",[],{width:a.default.Em(n)}),o?r.appendChild(c):(c.parent=r,r.childNodes.unshift(c)))},M=function(t,r){["inference","proof","maxAdjust","labelledRule"].forEach((function(n){var o=(0,e.getProperty)(t,n);null!=o&&((0,e.setProperty)(r,n,o),(0,e.removeProperty)(t,n))}))},S=function(t,r,n,o,i){var s=t.nodeFactory.create("node","mspace",[],{width:a.default.Em(i)});if("left"===o){var l=r.childNodes[n].childNodes[0];s.parent=l,l.childNodes.unshift(s)}else r.childNodes[n].appendChild(s);(0,e.setProperty)(r.parent,"sequentAdjust_"+o,i)},E=function(t,n){for(var o=n.pop();n.length;){var i=n.pop(),a=r($(o,i),2),s=a[0],l=a[1];(0,e.getProperty)(o.parent,"axiom")&&(S(t,s<0?o:i,0,"left",Math.abs(s)),S(t,l<0?o:i,2,"right",Math.abs(l))),o=i}},$=function(e,t){var r=c(e.childNodes[2]),n=c(t.childNodes[2]);return[c(e.childNodes[0])-c(t.childNodes[0]),r-n]};e.balanceRules=function(t){var r,o;l=new t.document.options.MathItem("",null,t.math.display);var i=t.data;!function(t){var r=t.nodeLists.sequent;if(r)for(var n=r.length-1,o=void 0;o=r[n];n--)if((0,e.getProperty)(o,"sequentProcessed"))(0,e.removeProperty)(o,"sequentProcessed");else{var i=[],a=y(o);if(1===(0,e.getProperty)(a,"inference")){for(i.push(o);1===(0,e.getProperty)(a,"inference");){a=u(a);var s=m(d(a,(0,e.getProperty)(a,"inferenceRule"))),l=(0,e.getProperty)(s,"inferenceRule")?f(s,(0,e.getProperty)(s,"inferenceRule")):s;(0,e.getProperty)(l,"sequent")&&(o=l.childNodes[0],i.push(o),(0,e.setProperty)(o,"sequentProcessed",!0)),a=s}E(t,i)}}}(i);var a=i.nodeLists.inference||[];try{for(var s=n(a),c=s.next();!c.done;c=s.next()){var p=c.value,M=(0,e.getProperty)(p,"proof"),S=u(p),$=d(S,(0,e.getProperty)(S,"inferenceRule")),C=m($);if((0,e.getProperty)(C,"inference")){var O=v(C);if(O){x(i,C,-O);var A=b(p,S,!1);x(i,p,O-A)}}var j=h($);if(null!=(0,e.getProperty)(j,"inference")){var T=v(j,!0);x(i,j,-T,!0);var N=b(p,S,!0),w=(0,e.getProperty)(p,"maxAdjust");null!=w&&(T=Math.max(T,w));var P=void 0;if(!M&&(P=_(p))){var L=g(P);if(L){var I=i.nodeFactory.create("node","mspace",[],{width:T-N+"em"});L.appendChild(I),p.removeProperty("maxAdjust")}else{var k=y(P);k&&(T=(0,e.getProperty)(k,"maxAdjust")?Math.max((0,e.getProperty)(k,"maxAdjust"),T):T,(0,e.setProperty)(k,"maxAdjust",T))}}else x(i,(0,e.getProperty)(p,"proof")?p:p.parent,T-N,!0)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}};var C="bspr_",O=((t={}).bspr_maxAdjust=!0,t);e.setProperty=function(e,t,r){i.default.setProperty(e,C+t,r)};e.getProperty=function(e,t){return i.default.getProperty(e,C+t)};e.removeProperty=function(e,t){e.removeProperty(C+t)};e.makeBsprAttributes=function(e){e.data.root.walkTree((function(e,t){var r=[];e.getPropertyNames().forEach((function(t){!O[t]&&t.match(RegExp("^bspr_"))&&r.push(t+":"+e.getProperty(t))})),r.length&&i.default.setAttribute(e,"semantics",r.join(";"))}))};e.saveDocument=function(e){if(!("getBBox"in(s=e.document).outputJax))throw Error("The bussproofs extension requires an output jax with a getBBox() method")};e.clearDocument=function(e){s=null}}(BussproofsUtil$2),getDefaultExportFromCjs$1(BussproofsUtil$2);var __extends$7=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__createBinding$3=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$3=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$3=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$3(t,e,r);return __setModuleDefault$3(t,e),t},__importDefault$p=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BussproofsItems,"__esModule",{value:!0}),BussproofsItems.ProofTreeItem=void 0;var TexError_js_1$b=__importDefault$p(TexError$1),StackItem_js_1$2=StackItem,Stack_js_1=__importDefault$p(Stack$1),BussproofsUtil$1=__importStar$3(BussproofsUtil$2),ProofTreeItem=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.leftLabel=null,t.rigthLabel=null,t.innerStack=new Stack_js_1.default(t.factory,{},!0),t}return __extends$7(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"proofTree"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(e){if(e.isKind("end")&&"prooftree"===e.getName()){var t=this.toMml();return BussproofsUtil$1.setProperty(t,"proof",!0),[[this.factory.create("mml",t),e],!0]}if(e.isKind("stop"))throw new TexError_js_1$b.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return this.innerStack.Push(e),StackItem_js_1$2.BaseItem.fail},t.prototype.toMml=function(){var t=e.prototype.toMml.call(this),r=this.innerStack.Top();if(r.isKind("start")&&!r.Size())return t;this.innerStack.Push(this.factory.create("stop"));var n=this.innerStack.Top().toMml();return this.create("node","mrow",[n,t],{})},t}(StackItem_js_1$2.BaseItem);BussproofsItems.ProofTreeItem=ProofTreeItem;var BussproofsMappings={},BussproofsMethods$1={},__createBinding$2=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$2=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$2=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$2(t,e,r);return __setModuleDefault$2(t,e),t},__read$4=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__importDefault$o=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BussproofsMethods$1,"__esModule",{value:!0});var TexError_js_1$a=__importDefault$o(TexError$1),TexParser_js_1$6=__importDefault$o(TexParser$1),ParseUtil_js_1$7=__importDefault$o(ParseUtil$1),BussproofsUtil=__importStar$2(BussproofsUtil$2),BussproofsMethods={Prooftree:function(e,t){return e.Push(t),e.itemFactory.create("proofTree").setProperties({name:t.getName(),line:"solid",currentLine:"solid",rootAtTop:!1})},Axiom:function(e,t){var r=e.stack.Top();if("proofTree"!==r.kind)throw new TexError_js_1$a.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var n=paddedContent(e,e.GetArgument(t));BussproofsUtil.setProperty(n,"axiom",!0),r.Push(n)}},paddedContent=function(e,t){var r=ParseUtil_js_1$7.default.internalMath(e,ParseUtil_js_1$7.default.trimSpaces(t),0);if(!r[0].childNodes[0].childNodes.length)return e.create("node","mrow",[]);var n=e.create("node","mspace",[],{width:".5ex"}),o=e.create("node","mspace",[],{width:".5ex"});return e.create("node","mrow",__spreadArray$1(__spreadArray$1([n],__read$4(r),!1),[o],!1))};function createRule(e,t,r,n,o,i,a){var s,l,c,u,d=e.create("node","mtr",[e.create("node","mtd",[t],{})],{}),p=e.create("node","mtr",[e.create("node","mtd",r,{})],{}),m=e.create("node","mtable",a?[p,d]:[d,p],{align:"top 2",rowlines:i,framespacing:"0 0"});if(BussproofsUtil.setProperty(m,"inferenceRule",a?"up":"down"),n&&(s=e.create("node","mpadded",[n],{height:"+.5em",width:"+.5em",voffset:"-.15em"}),BussproofsUtil.setProperty(s,"prooflabel","left")),o&&(l=e.create("node","mpadded",[o],{height:"+.5em",width:"+.5em",voffset:"-.15em"}),BussproofsUtil.setProperty(l,"prooflabel","right")),n&&o)c=[s,m,l],u="both";else if(n)c=[s,m],u="left";else{if(!o)return m;c=[m,l],u="right"}return m=e.create("node","mrow",c),BussproofsUtil.setProperty(m,"labelledRule",u),m}function parseFCenterLine(e,t){if("$"!==e.GetNext())throw new TexError_js_1$a.default("IllegalUseOfCommand","Use of %1 does not match it's definition.",t);e.i++;var r=e.GetUpTo(t,"$");if(-1===r.indexOf("\\fCenter"))throw new TexError_js_1$a.default("IllegalUseOfCommand","Missing \\fCenter in %1.",t);var n=__read$4(r.split("\\fCenter"),2),o=n[0],i=n[1],a=new TexParser_js_1$6.default(o,e.stack.env,e.configuration).mml(),s=new TexParser_js_1$6.default(i,e.stack.env,e.configuration).mml(),l=new TexParser_js_1$6.default("\\fCenter",e.stack.env,e.configuration).mml(),c=e.create("node","mtd",[a],{}),u=e.create("node","mtd",[l],{}),d=e.create("node","mtd",[s],{}),p=e.create("node","mtr",[c,u,d],{}),m=e.create("node","mtable",[p],{columnspacing:".5ex",columnalign:"center 2"});return BussproofsUtil.setProperty(m,"sequent",!0),e.configuration.addNode("sequent",p),m}BussproofsMethods.Inference=function(e,t,r){var n=e.stack.Top();if("proofTree"!==n.kind)throw new TexError_js_1$a.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");if(n.Size()<r)throw new TexError_js_1$a.default("BadProofTree","Proof tree badly specified.");var o=n.getProperty("rootAtTop"),i=1!==r||n.Peek()[0].childNodes.length?r:0,a=[];do{a.length&&a.unshift(e.create("node","mtd",[],{})),a.unshift(e.create("node","mtd",[n.Pop()],{rowalign:o?"top":"bottom"})),r--}while(r>0);var s=e.create("node","mtr",a,{}),l=e.create("node","mtable",[s],{framespacing:"0 0"}),c=paddedContent(e,e.GetArgument(t)),u=n.getProperty("currentLine");u!==n.getProperty("line")&&n.setProperty("currentLine",n.getProperty("line"));var d=createRule(e,l,[c],n.getProperty("left"),n.getProperty("right"),u,o);n.setProperty("left",null),n.setProperty("right",null),BussproofsUtil.setProperty(d,"inference",i),e.configuration.addNode("inference",d),n.Push(d)},BussproofsMethods.Label=function(e,t,r){var n=e.stack.Top();if("proofTree"!==n.kind)throw new TexError_js_1$a.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var o=ParseUtil_js_1$7.default.internalMath(e,e.GetArgument(t),0),i=o.length>1?e.create("node","mrow",o,{}):o[0];n.setProperty(r,i)},BussproofsMethods.SetLine=function(e,t,r,n){var o=e.stack.Top();if("proofTree"!==o.kind)throw new TexError_js_1$a.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");o.setProperty("currentLine",r),n&&o.setProperty("line",r)},BussproofsMethods.RootAtTop=function(e,t,r){var n=e.stack.Top();if("proofTree"!==n.kind)throw new TexError_js_1$a.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");n.setProperty("rootAtTop",r)},BussproofsMethods.AxiomF=function(e,t){var r=e.stack.Top();if("proofTree"!==r.kind)throw new TexError_js_1$a.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var n=parseFCenterLine(e,t);BussproofsUtil.setProperty(n,"axiom",!0),r.Push(n)},BussproofsMethods.FCenter=function(e,t){},BussproofsMethods.InferenceF=function(e,t,r){var n=e.stack.Top();if("proofTree"!==n.kind)throw new TexError_js_1$a.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");if(n.Size()<r)throw new TexError_js_1$a.default("BadProofTree","Proof tree badly specified.");var o=n.getProperty("rootAtTop"),i=1!==r||n.Peek()[0].childNodes.length?r:0,a=[];do{a.length&&a.unshift(e.create("node","mtd",[],{})),a.unshift(e.create("node","mtd",[n.Pop()],{rowalign:o?"top":"bottom"})),r--}while(r>0);var s=e.create("node","mtr",a,{}),l=e.create("node","mtable",[s],{framespacing:"0 0"}),c=parseFCenterLine(e,t),u=n.getProperty("currentLine");u!==n.getProperty("line")&&n.setProperty("currentLine",n.getProperty("line"));var d=createRule(e,l,[c],n.getProperty("left"),n.getProperty("right"),u,o);n.setProperty("left",null),n.setProperty("right",null),BussproofsUtil.setProperty(d,"inference",i),e.configuration.addNode("inference",d),n.Push(d)},BussproofsMethods$1.default=BussproofsMethods;var __importDefault$n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(BussproofsMappings,"__esModule",{value:!0});var BussproofsMethods_js_1=__importDefault$n(BussproofsMethods$1),ParseMethods_js_1$4=__importDefault$n(ParseMethods$1),SymbolMap_js_1$d=SymbolMap,_a$4;new SymbolMap_js_1$d.CommandMap("Bussproofs-macros",{AxiomC:"Axiom",UnaryInfC:["Inference",1],BinaryInfC:["Inference",2],TrinaryInfC:["Inference",3],QuaternaryInfC:["Inference",4],QuinaryInfC:["Inference",5],RightLabel:["Label","right"],LeftLabel:["Label","left"],AXC:"Axiom",UIC:["Inference",1],BIC:["Inference",2],TIC:["Inference",3],RL:["Label","right"],LL:["Label","left"],noLine:["SetLine","none",!1],singleLine:["SetLine","solid",!1],solidLine:["SetLine","solid",!1],dashedLine:["SetLine","dashed",!1],alwaysNoLine:["SetLine","none",!0],alwaysSingleLine:["SetLine","solid",!0],alwaysSolidLine:["SetLine","solid",!0],alwaysDashedLine:["SetLine","dashed",!0],rootAtTop:["RootAtTop",!0],alwaysRootAtTop:["RootAtTop",!0],rootAtBottom:["RootAtTop",!1],alwaysRootAtBottom:["RootAtTop",!1],fCenter:"FCenter",Axiom:"AxiomF",UnaryInf:["InferenceF",1],BinaryInf:["InferenceF",2],TrinaryInf:["InferenceF",3],QuaternaryInf:["InferenceF",4],QuinaryInf:["InferenceF",5]},BussproofsMethods_js_1.default),new SymbolMap_js_1$d.EnvironmentMap("Bussproofs-environments",ParseMethods_js_1$4.default.environment,{prooftree:["Prooftree",null,!1]},BussproofsMethods_js_1.default),Object.defineProperty(BussproofsConfiguration,"__esModule",{value:!0}),BussproofsConfiguration.BussproofsConfiguration=void 0;var Configuration_js_1$f=Configuration,BussproofsItems_js_1=BussproofsItems,BussproofsUtil_js_1=BussproofsUtil$2;BussproofsConfiguration.BussproofsConfiguration=Configuration_js_1$f.Configuration.create("bussproofs",{handler:{macro:["Bussproofs-macros"],environment:["Bussproofs-environments"]},items:(_a$4={},_a$4[BussproofsItems_js_1.ProofTreeItem.prototype.kind]=BussproofsItems_js_1.ProofTreeItem,_a$4),preprocessors:[[BussproofsUtil_js_1.saveDocument,1]],postprocessors:[[BussproofsUtil_js_1.clearDocument,3],[BussproofsUtil_js_1.makeBsprAttributes,2],[BussproofsUtil_js_1.balanceRules,1]]});var CancelConfiguration={},EncloseConfiguration={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.EncloseConfiguration=e.EncloseMethods=e.ENCLOSE_OPTIONS=void 0;var r=Configuration,n=SymbolMap,o=t(ParseUtil$1);e.ENCLOSE_OPTIONS={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1},e.EncloseMethods={},e.EncloseMethods.Enclose=function(t,r){var n=t.GetArgument(r).replace(/,/g," "),i=t.GetBrackets(r,""),a=t.ParseArg(r),s=o.default.keyvalOptions(i,e.ENCLOSE_OPTIONS);s.notation=n,t.Push(t.create("node","menclose",[a],s))},new n.CommandMap("enclose",{enclose:"Enclose"},e.EncloseMethods),e.EncloseConfiguration=r.Configuration.create("enclose",{handler:{macro:["enclose"]}})}(EncloseConfiguration),getDefaultExportFromCjs$1(EncloseConfiguration),function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelConfiguration=e.CancelMethods=void 0;var r=Configuration,n=TexConstants,o=SymbolMap,i=t(ParseUtil$1),a=EncloseConfiguration;e.CancelMethods={},e.CancelMethods.Cancel=function(e,t,r){var n=e.GetBrackets(t,""),o=e.ParseArg(t),s=i.default.keyvalOptions(n,a.ENCLOSE_OPTIONS);s.notation=r,e.Push(e.create("node","menclose",[o],s))},e.CancelMethods.CancelTo=function(e,t){var r=e.GetBrackets(t,""),o=e.ParseArg(t),s=e.ParseArg(t),l=i.default.keyvalOptions(r,a.ENCLOSE_OPTIONS);l.notation=[n.TexConstant.Notation.UPDIAGONALSTRIKE,n.TexConstant.Notation.UPDIAGONALARROW,n.TexConstant.Notation.NORTHEASTARROW].join(" "),o=e.create("node","mpadded",[o],{depth:"-.1em",height:"+.1em",voffset:".1em"}),e.Push(e.create("node","msup",[e.create("node","menclose",[s],l),o]))},new o.CommandMap("cancel",{cancel:["Cancel",n.TexConstant.Notation.UPDIAGONALSTRIKE],bcancel:["Cancel",n.TexConstant.Notation.DOWNDIAGONALSTRIKE],xcancel:["Cancel",n.TexConstant.Notation.UPDIAGONALSTRIKE+" "+n.TexConstant.Notation.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"},e.CancelMethods),e.CancelConfiguration=r.Configuration.create("cancel",{handler:{macro:["cancel"]}})}(CancelConfiguration),getDefaultExportFromCjs$1(CancelConfiguration);var CasesConfiguration={},EmpheqUtil={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},n=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.EmpheqUtil=void 0;var i=o(ParseUtil$1),a=o(TexParser$1);e.EmpheqUtil={environment:function(e,n,o,i){var a=i[0],s=e.itemFactory.create(a+"-begin").setProperties({name:n,end:a});e.Push(o.apply(void 0,r([e,s],t(i.slice(1)),!1)))},splitOptions:function(e,t){return void 0===t&&(t=null),i.default.keyvalOptions(e,t,!0)},columnCount:function(e){var t,r,o=0;try{for(var i=n(e.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value,l=s.childNodes.length-(s.isKind("mlabeledtr")?1:0);l>o&&(o=l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o},cellBlock:function(e,t,r,o){var i,s,l=r.create("node","mpadded",[],{height:0,depth:0,voffset:"-1height"}),c=new a.default(e,r.stack.env,r.configuration),u=c.mml();o&&c.configuration.tags.label&&(c.configuration.tags.currentTag.env=o,c.configuration.tags.getTag(!0));try{for(var d=n(u.isInferred?u.childNodes:[u]),p=d.next();!p.done;p=d.next()){var m=p.value;l.appendChild(m)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}return l.appendChild(r.create("node","mphantom",[r.create("node","mpadded",[t],{width:0})])),l},topRowTable:function(e,t){var r=i.default.copyNode(e,t);return r.setChildren(r.childNodes.slice(0,1)),r.attributes.set("align","baseline 1"),e.factory.create("mphantom",{},[t.create("node","mpadded",[r],{width:0})])},rowspanCell:function(e,t,r,n,o){e.appendChild(n.create("node","mpadded",[this.cellBlock(t,i.default.copyNode(r,n),n,o),this.topRowTable(r,n)],{height:0,depth:0,voffset:"height"}))},left:function(e,t,r,o,i){var a,s,l;void 0===i&&(i=""),e.attributes.set("columnalign","right "+(e.attributes.get("columnalign")||"")),e.attributes.set("columnspacing","0em "+(e.attributes.get("columnspacing")||""));try{for(var c=n(e.childNodes.slice(0).reverse()),u=c.next();!u.done;u=c.next()){var d=u.value;l=o.create("node","mtd"),d.childNodes.unshift(l),l.parent=d,d.isKind("mlabeledtr")&&(d.childNodes[0]=d.childNodes[1],d.childNodes[1]=l)}}catch(e){a={error:e}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}this.rowspanCell(l,r,t,o,i)},right:function(t,r,n,o,i){void 0===i&&(i=""),0===t.childNodes.length&&t.appendChild(o.create("node","mtr"));for(var a=e.EmpheqUtil.columnCount(t),s=t.childNodes[0];s.childNodes.length<a;)s.appendChild(o.create("node","mtd"));var l=s.appendChild(o.create("node","mtd"));e.EmpheqUtil.rowspanCell(l,n,r,o,i),t.attributes.set("columnalign",(t.attributes.get("columnalign")||"").split(/ /).slice(0,a).join(" ")+" left"),t.attributes.set("columnspacing",(t.attributes.get("columnspacing")||"").split(/ /).slice(0,a-1).join(" ")+" 0em")},adjustTable:function(e,t){var r=e.getProperty("left"),n=e.getProperty("right");if(r||n){var o=e.Last,a=i.default.copyNode(o,t);r&&this.left(o,a,r,t),n&&this.right(o,a,n,t)}},allowEnv:{equation:!0,align:!0,gather:!0,flalign:!0,alignat:!0,multline:!0},checkEnv:function(e){return this.allowEnv.hasOwnProperty(e.replace(/\*$/,""))||!1}}}(EmpheqUtil),getDefaultExportFromCjs$1(EmpheqUtil),function(e){var t,r=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.CasesConfiguration=e.CasesMethods=e.CasesTags=e.CasesBeginItem=void 0;var o=Configuration,i=SymbolMap,a=n(ParseUtil$1),s=n(BaseMethods$1),l=n(TexError$1),c=AmsConfiguration,u=EmpheqUtil,d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"cases-begin"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){return t.isKind("end")&&t.getName()===this.getName()&&this.getProperty("end")?(this.setProperty("end",!1),[[],!0]):e.prototype.checkItem.call(this,t)},t}(BaseItems.BeginItem);e.CasesBeginItem=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.subcounter=0,t}return r(t,e),t.prototype.start=function(t,r,n){this.subcounter=0,e.prototype.start.call(this,t,r,n)},t.prototype.autoTag=function(){null==this.currentTag.tag&&("subnumcases"===this.currentTag.env?(0===this.subcounter&&this.counter++,this.subcounter++,this.tag(this.formatNumber(this.counter,this.subcounter),!1)):(0!==this.subcounter&&"numcases-left"===this.currentTag.env||this.counter++,this.tag(this.formatNumber(this.counter),!1)))},t.prototype.formatNumber=function(e,t){return void 0===t&&(t=null),e.toString()+(null===t?"":String.fromCharCode(96+t))},t}(c.AmsTags);e.CasesTags=p,e.CasesMethods={NumCases:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create("end").setProperty("name",t.getName()));var r=e.stack.Top(),n=r.Last,o=a.default.copyNode(n,e),i=r.getProperty("left");return u.EmpheqUtil.left(n,o,i+"\\empheqlbrace\\,",e,"numcases-left"),e.Push(e.itemFactory.create("end").setProperty("name",t.getName())),null}i=e.GetArgument("\\begin{"+t.getName()+"}");t.setProperty("left",i);var l=s.default.EqnArray(e,t,!0,!0,"ll");return l.arraydef.displaystyle=!1,l.arraydef.rowspacing=".2em",l.setProperty("numCases",!0),e.Push(t),l},Entry:function(e,t){if(!e.stack.Top().getProperty("numCases"))return s.default.Entry(e,t);e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}));for(var r=e.string,n=0,o=e.i,i=r.length;o<i;){var c=r.charAt(o);if("{"===c)n++,o++;else if("}"===c){if(0===n)break;n--,o++}else{if("&"===c&&0===n)throw new l.default("ExtraCasesAlignTab","Extra alignment tab in text for numcase environment");if("\\"===c&&0===n){var u=(r.slice(o+1).match(/^[a-z]+|./i)||[])[0];if("\\"===u||"cr"===u||"end"===u||"label"===u)break;o+=u.length}else o++}}var d=r.substr(e.i,o-e.i).replace(/^\s*/,"");e.PushAll(a.default.internalMath(e,d,0)),e.i=o}},new i.EnvironmentMap("cases-env",u.EmpheqUtil.environment,{numcases:["NumCases","cases"],subnumcases:["NumCases","cases"]},e.CasesMethods),new i.MacroMap("cases-macros",{"&":"Entry"},e.CasesMethods),e.CasesConfiguration=o.Configuration.create("cases",{handler:{environment:["cases-env"],character:["cases-macros"]},items:(t={},t[d.prototype.kind]=d,t),tags:{cases:p}})}(CasesConfiguration),getDefaultExportFromCjs$1(CasesConfiguration);var CenternotConfiguration={},__values$5=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$m=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(CenternotConfiguration,"__esModule",{value:!0}),CenternotConfiguration.CenternotConfiguration=CenternotConfiguration.filterCenterOver=void 0;var Configuration_js_1$e=Configuration,TexParser_js_1$5=__importDefault$m(TexParser$1),NodeUtil_js_1$5=__importDefault$m(NodeUtil$1),SymbolMap_js_1$c=SymbolMap,BaseMethods_js_1$4=__importDefault$m(BaseMethods$1);function filterCenterOver(e){var t,r,n=e.data;try{for(var o=__values$5(n.getList("centerOver")),i=o.next();!i.done;i=o.next()){var a=i.value,s=NodeUtil_js_1$5.default.getTexClass(a.childNodes[0].childNodes[0]);null!==s&&NodeUtil_js_1$5.default.setProperties(a.parent.parent.parent.parent.parent.parent,{texClass:s})}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}new SymbolMap_js_1$c.CommandMap("centernot",{centerOver:"CenterOver",centernot:["Macro","\\centerOver{#1}{{⧸}}",1]},{CenterOver:function(e,t){var r="{"+e.GetArgument(t)+"}",n=e.ParseArg(t),o=new TexParser_js_1$5.default(r,e.stack.env,e.configuration).mml(),i=e.create("node","TeXAtom",[new TexParser_js_1$5.default(r,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[n],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[o])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",o),e.Push(i)},Macro:BaseMethods_js_1$4.default.Macro}),CenternotConfiguration.filterCenterOver=filterCenterOver,CenternotConfiguration.CenternotConfiguration=Configuration_js_1$e.Configuration.create("centernot",{handler:{macro:["centernot"]},postprocessors:[filterCenterOver]});var ColorConfiguration={},ColorMethods={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ColorMethods=void 0;var r=t(NodeUtil$1),n=t(ParseUtil$1);function o(e){var t="+".concat(e),r=e.replace(/^.*?([a-z]*)$/,"$1"),n=2*parseFloat(t);return{width:"+".concat(n).concat(r),height:t,depth:t,lspace:e}}e.ColorMethods={},e.ColorMethods.Color=function(e,t){var r=e.GetBrackets(t,""),n=e.GetArgument(t),o=e.configuration.packageData.get("color").model.getColor(r,n),i=e.itemFactory.create("style").setProperties({styles:{mathcolor:o}});e.stack.env.color=o,e.Push(i)},e.ColorMethods.TextColor=function(e,t){var r=e.GetBrackets(t,""),n=e.GetArgument(t),o=e.configuration.packageData.get("color").model.getColor(r,n),i=e.stack.env.color;e.stack.env.color=o;var a=e.ParseArg(t);i?e.stack.env.color=i:delete e.stack.env.color;var s=e.create("node","mstyle",[a],{mathcolor:o});e.Push(s)},e.ColorMethods.DefineColor=function(e,t){var r=e.GetArgument(t),n=e.GetArgument(t),o=e.GetArgument(t);e.configuration.packageData.get("color").model.defineColor(n,r,o)},e.ColorMethods.ColorBox=function(e,t){var i=e.GetArgument(t),a=n.default.internalMath(e,e.GetArgument(t)),s=e.configuration.packageData.get("color").model,l=e.create("node","mpadded",a,{mathbackground:s.getColor("named",i)});r.default.setProperties(l,o(e.options.color.padding)),e.Push(l)},e.ColorMethods.FColorBox=function(e,t){var i=e.GetArgument(t),a=e.GetArgument(t),s=n.default.internalMath(e,e.GetArgument(t)),l=e.options.color,c=e.configuration.packageData.get("color").model,u=e.create("node","mpadded",s,{mathbackground:c.getColor("named",a),style:"border: ".concat(l.borderWidth," solid ").concat(c.getColor("named",i))});r.default.setProperties(u,o(l.padding)),e.Push(u)}}(ColorMethods),getDefaultExportFromCjs$1(ColorMethods);var ColorUtil={},ColorConstants={};Object.defineProperty(ColorConstants,"__esModule",{value:!0}),ColorConstants.COLORS=void 0,ColorConstants.COLORS=new Map([["Apricot","#FBB982"],["Aquamarine","#00B5BE"],["Bittersweet","#C04F17"],["Black","#221E1F"],["Blue","#2D2F92"],["BlueGreen","#00B3B8"],["BlueViolet","#473992"],["BrickRed","#B6321C"],["Brown","#792500"],["BurntOrange","#F7921D"],["CadetBlue","#74729A"],["CarnationPink","#F282B4"],["Cerulean","#00A2E3"],["CornflowerBlue","#41B0E4"],["Cyan","#00AEEF"],["Dandelion","#FDBC42"],["DarkOrchid","#A4538A"],["Emerald","#00A99D"],["ForestGreen","#009B55"],["Fuchsia","#8C368C"],["Goldenrod","#FFDF42"],["Gray","#949698"],["Green","#00A64F"],["GreenYellow","#DFE674"],["JungleGreen","#00A99A"],["Lavender","#F49EC4"],["LimeGreen","#8DC73E"],["Magenta","#EC008C"],["Mahogany","#A9341F"],["Maroon","#AF3235"],["Melon","#F89E7B"],["MidnightBlue","#006795"],["Mulberry","#A93C93"],["NavyBlue","#006EB8"],["OliveGreen","#3C8031"],["Orange","#F58137"],["OrangeRed","#ED135A"],["Orchid","#AF72B0"],["Peach","#F7965A"],["Periwinkle","#7977B8"],["PineGreen","#008B72"],["Plum","#92268F"],["ProcessBlue","#00B0F0"],["Purple","#99479B"],["RawSienna","#974006"],["Red","#ED1B23"],["RedOrange","#F26035"],["RedViolet","#A1246B"],["Rhodamine","#EF559F"],["RoyalBlue","#0071BC"],["RoyalPurple","#613F99"],["RubineRed","#ED017D"],["Salmon","#F69289"],["SeaGreen","#3FBC9D"],["Sepia","#671800"],["SkyBlue","#46C5DD"],["SpringGreen","#C6DC67"],["Tan","#DA9D76"],["TealBlue","#00AEB3"],["Thistle","#D883B7"],["Turquoise","#00B4CE"],["Violet","#58429B"],["VioletRed","#EF58A0"],["White","#FFFFFF"],["WildStrawberry","#EE2967"],["Yellow","#FFF200"],["YellowGreen","#98CC70"],["YellowOrange","#FAA21A"]]);var __values$4=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$l=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ColorUtil,"__esModule",{value:!0}),ColorUtil.ColorModel=void 0;var TexError_js_1$9=__importDefault$l(TexError$1),ColorConstants_js_1=ColorConstants,ColorModelProcessors=new Map,ColorModel=function(){function e(){this.userColors=new Map}return e.prototype.normalizeColor=function(e,t){if(!e||"named"===e)return t;if(ColorModelProcessors.has(e))return ColorModelProcessors.get(e)(t);throw new TexError_js_1$9.default("UndefinedColorModel","Color model '%1' not defined",e)},e.prototype.getColor=function(e,t){return e&&"named"!==e?this.normalizeColor(e,t):this.getColorByName(t)},e.prototype.getColorByName=function(e){return this.userColors.has(e)?this.userColors.get(e):ColorConstants_js_1.COLORS.has(e)?ColorConstants_js_1.COLORS.get(e):e},e.prototype.defineColor=function(e,t,r){var n=this.normalizeColor(e,r);this.userColors.set(t,n)},e}();ColorUtil.ColorModel=ColorModel,ColorModelProcessors.set("rgb",(function(e){var t,r,n=e.trim().split(/\s*,\s*/),o="#";if(3!==n.length)throw new TexError_js_1$9.default("ModelArg1","Color values for the %1 model require 3 numbers","rgb");try{for(var i=__values$4(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(!s.match(/^(\d+(\.\d*)?|\.\d+)$/))throw new TexError_js_1$9.default("InvalidDecimalNumber","Invalid decimal number");var l=parseFloat(s);if(l<0||l>1)throw new TexError_js_1$9.default("ModelArg2","Color values for the %1 model must be between %2 and %3","rgb","0","1");var c=Math.floor(255*l).toString(16);c.length<2&&(c="0"+c),o+=c}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o})),ColorModelProcessors.set("RGB",(function(e){var t,r,n=e.trim().split(/\s*,\s*/),o="#";if(3!==n.length)throw new TexError_js_1$9.default("ModelArg1","Color values for the %1 model require 3 numbers","RGB");try{for(var i=__values$4(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(!s.match(/^\d+$/))throw new TexError_js_1$9.default("InvalidNumber","Invalid number");var l=parseInt(s);if(l>255)throw new TexError_js_1$9.default("ModelArg2","Color values for the %1 model must be between %2 and %3","RGB","0","255");var c=l.toString(16);c.length<2&&(c="0"+c),o+=c}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o})),ColorModelProcessors.set("gray",(function(e){if(!e.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/))throw new TexError_js_1$9.default("InvalidDecimalNumber","Invalid decimal number");var t=parseFloat(e);if(t<0||t>1)throw new TexError_js_1$9.default("ModelArg2","Color values for the %1 model must be between %2 and %3","gray","0","1");var r=Math.floor(255*t).toString(16);return r.length<2&&(r="0"+r),"#".concat(r).concat(r).concat(r)})),Object.defineProperty(ColorConfiguration,"__esModule",{value:!0}),ColorConfiguration.ColorConfiguration=void 0;var SymbolMap_js_1$b=SymbolMap,Configuration_js_1$d=Configuration,ColorMethods_js_1=ColorMethods,ColorUtil_js_1=ColorUtil;new SymbolMap_js_1$b.CommandMap("color",{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"FColorBox"},ColorMethods_js_1.ColorMethods);var config$1=function(e,t){t.parseOptions.packageData.set("color",{model:new ColorUtil_js_1.ColorModel})};ColorConfiguration.ColorConfiguration=Configuration_js_1$d.Configuration.create("color",{handler:{macro:["color"]},options:{color:{padding:"5px",borderWidth:"2px"}},config:config$1});var ColorV2Configuration={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorConfiguration=e.ColorV2Methods=void 0;var t=SymbolMap,r=Configuration;e.ColorV2Methods={Color:function(e,t){var r=e.GetArgument(t),n=e.stack.env.color;e.stack.env.color=r;var o=e.ParseArg(t);n?e.stack.env.color=n:delete e.stack.env.color;var i=e.create("node","mstyle",[o],{mathcolor:r});e.Push(i)}},new t.CommandMap("colorv2",{color:"Color"},e.ColorV2Methods),e.ColorConfiguration=r.Configuration.create("colorv2",{handler:{macro:["colorv2"]}})}(ColorV2Configuration),getDefaultExportFromCjs$1(ColorV2Configuration);var ColortblConfiguration={},__extends$6=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__importDefault$k=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ColortblConfiguration,"__esModule",{value:!0}),ColortblConfiguration.ColortblConfiguration=ColortblConfiguration.ColorArrayItem=void 0;var BaseItems_js_1$3=BaseItems,Configuration_js_1$c=Configuration,SymbolMap_js_1$a=SymbolMap,TexError_js_1$8=__importDefault$k(TexError$1),ColorArrayItem=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.color={cell:"",row:"",col:[]},t.hasColor=!1,t}return __extends$6(t,e),t.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var t=this.row[this.row.length-1],r=this.color.cell||this.color.row||this.color.col[this.row.length-1];r&&(t.attributes.set("mathbackground",r),this.color.cell="",this.hasColor=!0)},t.prototype.EndRow=function(){e.prototype.EndRow.call(this),this.color.row=""},t.prototype.createMml=function(){var t=e.prototype.createMml.call(this),r=t.isKind("mrow")?t.childNodes[1]:t;return r.isKind("menclose")&&(r=r.childNodes[0].childNodes[0]),this.hasColor&&"none"===r.attributes.get("frame")&&r.attributes.set("frame",""),t},t}(BaseItems_js_1$3.ArrayItem);ColortblConfiguration.ColorArrayItem=ColorArrayItem,new SymbolMap_js_1$a.CommandMap("colortbl",{cellcolor:["TableColor","cell"],rowcolor:["TableColor","row"],columncolor:["TableColor","col"]},{TableColor:function(e,t,r){var n=e.configuration.packageData.get("color").model,o=e.GetBrackets(t,""),i=n.getColor(o,e.GetArgument(t)),a=e.stack.Top();if(!(a instanceof ColorArrayItem))throw new TexError_js_1$8.default("UnsupportedTableColor","Unsupported use of %1",e.currentCS);if("col"===r){if(a.table.length)throw new TexError_js_1$8.default("ColumnColorNotTop","%1 must be in the top row",t);a.color.col[a.row.length]=i,e.GetBrackets(t,"")&&e.GetBrackets(t,"")}else if(a.color[r]=i,"row"===r&&(a.Size()||a.row.length))throw new TexError_js_1$8.default("RowColorNotFirst","%1 must be at the beginning of a row",t)}});var config=function(e,t){t.parseOptions.packageData.has("color")||Configuration_js_1$c.ConfigurationHandler.get("color").config(e,t)};ColortblConfiguration.ColortblConfiguration=Configuration_js_1$c.Configuration.create("colortbl",{handler:{macro:["colortbl"]},items:{array:ColorArrayItem},priority:10,config:[config,10]});var ConfigMacrosConfiguration={},NewcommandMethods$1={},NewcommandUtil$1={},__importDefault$j=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(NewcommandUtil$1,"__esModule",{value:!0});var ParseUtil_js_1$6=__importDefault$j(ParseUtil$1),TexError_js_1$7=__importDefault$j(TexError$1),Symbol_js_1$2=_Symbol,NewcommandUtil;!function(e){function t(e,t){return e.string.substr(e.i,t.length)!==t||t.match(/\\[a-z]+$/i)&&e.string.charAt(e.i+t.length).match(/[a-z]/i)?0:(e.i+=t.length,1)}e.disassembleSymbol=function(e,t){var r=[e,t.char];if(t.attributes)for(var n in t.attributes)r.push(n),r.push(t.attributes[n]);return r},e.assembleSymbol=function(e){for(var t=e[0],r=e[1],n={},o=2;o<e.length;o+=2)n[e[o]]=e[o+1];return new Symbol_js_1$2.Symbol(t,r,n)},e.GetCSname=function(e,t){if("\\"!==e.GetNext())throw new TexError_js_1$7.default("MissingCS","%1 must be followed by a control sequence",t);return ParseUtil_js_1$6.default.trimSpaces(e.GetArgument(t)).substr(1)},e.GetCsNameArgument=function(e,t){var r=ParseUtil_js_1$6.default.trimSpaces(e.GetArgument(t));if("\\"===r.charAt(0)&&(r=r.substr(1)),!r.match(/^(.|[a-z]+)$/i))throw new TexError_js_1$7.default("IllegalControlSequenceName","Illegal control sequence name for %1",t);return r},e.GetArgCount=function(e,t){var r=e.GetBrackets(t);if(r&&!(r=ParseUtil_js_1$6.default.trimSpaces(r)).match(/^[0-9]+$/))throw new TexError_js_1$7.default("IllegalParamNumber","Illegal number of parameters specified in %1",t);return r},e.GetTemplate=function(e,t,r){for(var n=e.GetNext(),o=[],i=0,a=e.i;e.i<e.string.length;){if("#"===(n=e.GetNext())){if(a!==e.i&&(o[i]=e.string.substr(a,e.i-a)),!(n=e.string.charAt(++e.i)).match(/^[1-9]$/))throw new TexError_js_1$7.default("CantUseHash2","Illegal use of # in template for %1",r);if(parseInt(n)!==++i)throw new TexError_js_1$7.default("SequentialParam","Parameters for %1 must be numbered sequentially",r);a=e.i+1}else if("{"===n)return a!==e.i&&(o[i]=e.string.substr(a,e.i-a)),o.length>0?[i.toString()].concat(o):i;e.i++}throw new TexError_js_1$7.default("MissingReplacementString","Missing replacement string for definition of %1",t)},e.GetParameter=function(e,r,n){if(null==n)return e.GetArgument(r);for(var o=e.i,i=0,a=0;e.i<e.string.length;){var s=e.string.charAt(e.i);if("{"===s)e.i===o&&(a=1),e.GetArgument(r),i=e.i-o;else{if(t(e,n))return a&&(o++,i-=2),e.string.substr(o,i);if("\\"===s){e.i++,i++,a=0;var l=e.string.substr(e.i).match(/[a-z]+|./i);l&&(e.i+=l[0].length,i=e.i-o)}else e.i++,i++,a=0}}throw new TexError_js_1$7.default("RunawayArgument","Runaway argument for %1?",r)},e.MatchParam=t,e.addDelimiter=function(t,r,n,o){t.configuration.handlers.retrieve(e.NEW_DELIMITER).add(r,new Symbol_js_1$2.Symbol(r,n,o))},e.addMacro=function(t,r,n,o,i){void 0===i&&(i=""),t.configuration.handlers.retrieve(e.NEW_COMMAND).add(r,new Symbol_js_1$2.Macro(i||r,n,o))},e.addEnvironment=function(t,r,n,o){t.configuration.handlers.retrieve(e.NEW_ENVIRONMENT).add(r,new Symbol_js_1$2.Macro(r,n,o))},e.NEW_DELIMITER="new-Delimiter",e.NEW_COMMAND="new-Command",e.NEW_ENVIRONMENT="new-Environment"}(NewcommandUtil||(NewcommandUtil={})),NewcommandUtil$1.default=NewcommandUtil;var __createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding$1(t,e,r);return __setModuleDefault$1(t,e),t},__importDefault$i=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(NewcommandMethods$1,"__esModule",{value:!0});var TexError_js_1$6=__importDefault$i(TexError$1),sm$1=__importStar$1(SymbolMap),BaseMethods_js_1$3=__importDefault$i(BaseMethods$1),ParseUtil_js_1$5=__importDefault$i(ParseUtil$1),NewcommandUtil_js_1$1=__importDefault$i(NewcommandUtil$1),NewcommandMethods={NewCommand:function(e,t){var r=NewcommandUtil_js_1$1.default.GetCsNameArgument(e,t),n=NewcommandUtil_js_1$1.default.GetArgCount(e,t),o=e.GetBrackets(t),i=e.GetArgument(t);NewcommandUtil_js_1$1.default.addMacro(e,r,NewcommandMethods.Macro,[i,n,o])},NewEnvironment:function(e,t){var r=ParseUtil_js_1$5.default.trimSpaces(e.GetArgument(t)),n=NewcommandUtil_js_1$1.default.GetArgCount(e,t),o=e.GetBrackets(t),i=e.GetArgument(t),a=e.GetArgument(t);NewcommandUtil_js_1$1.default.addEnvironment(e,r,NewcommandMethods.BeginEnv,[!0,i,a,n,o])},MacroDef:function(e,t){var r=NewcommandUtil_js_1$1.default.GetCSname(e,t),n=NewcommandUtil_js_1$1.default.GetTemplate(e,t,"\\"+r),o=e.GetArgument(t);n instanceof Array?NewcommandUtil_js_1$1.default.addMacro(e,r,NewcommandMethods.MacroWithTemplate,[o].concat(n)):NewcommandUtil_js_1$1.default.addMacro(e,r,NewcommandMethods.Macro,[o,n])},Let:function(e,t){var r=NewcommandUtil_js_1$1.default.GetCSname(e,t),n=e.GetNext();"="===n&&(e.i++,n=e.GetNext());var o=e.configuration.handlers;if("\\"!==n){e.i++;var i=o.get("delimiter").lookup(n);i?NewcommandUtil_js_1$1.default.addDelimiter(e,"\\"+r,i.char,i.attributes):NewcommandUtil_js_1$1.default.addMacro(e,r,NewcommandMethods.Macro,[n])}else{t=NewcommandUtil_js_1$1.default.GetCSname(e,t);var a=o.get("delimiter").lookup("\\"+t);if(a)return void NewcommandUtil_js_1$1.default.addDelimiter(e,"\\"+r,a.char,a.attributes);var s=o.get("macro").applicable(t);if(!s)return;if(s instanceof sm$1.MacroMap){var l=s.lookup(t);return void NewcommandUtil_js_1$1.default.addMacro(e,r,l.func,l.args,l.symbol)}a=s.lookup(t);var c=NewcommandUtil_js_1$1.default.disassembleSymbol(r,a);NewcommandUtil_js_1$1.default.addMacro(e,r,(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=NewcommandUtil_js_1$1.default.assembleSymbol(r);return s.parser(e,o)}),c)}},MacroWithTemplate:function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=parseInt(n,10);if(a){var s=[];if(e.GetNext(),o[0]&&!NewcommandUtil_js_1$1.default.MatchParam(e,o[0]))throw new TexError_js_1$6.default("MismatchUseDef","Use of %1 doesn't match its definition",t);for(var l=0;l<a;l++)s.push(NewcommandUtil_js_1$1.default.GetParameter(e,t,o[l+1]));r=ParseUtil_js_1$5.default.substituteArgs(e,s,r)}e.string=ParseUtil_js_1$5.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,ParseUtil_js_1$5.default.checkMaxMacros(e)},BeginEnv:function(e,t,r,n,o,i){if(t.getProperty("end")&&e.stack.env.closing===t.getName()){delete e.stack.env.closing;var a=e.string.slice(e.i);return e.string=n,e.i=0,e.Parse(),e.string=a,e.i=0,e.itemFactory.create("end").setProperty("name",t.getName())}if(o){var s=[];if(null!=i){var l=e.GetBrackets("\\begin{"+t.getName()+"}");s.push(null==l?i:l)}for(var c=s.length;c<o;c++)s.push(e.GetArgument("\\begin{"+t.getName()+"}"));r=ParseUtil_js_1$5.default.substituteArgs(e,s,r),n=ParseUtil_js_1$5.default.substituteArgs(e,[],n)}return e.string=ParseUtil_js_1$5.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,e.itemFactory.create("beginEnv").setProperty("name",t.getName())}};NewcommandMethods.Macro=BaseMethods_js_1$3.default.Macro,NewcommandMethods$1.default=NewcommandMethods;var NewcommandItems={},__extends$5=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__importDefault$h=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(NewcommandItems,"__esModule",{value:!0}),NewcommandItems.BeginEnvItem=void 0;var TexError_js_1$5=__importDefault$h(TexError$1),StackItem_js_1$1=StackItem,BeginEnvItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$5(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"beginEnv"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new TexError_js_1$5.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(t.isKind("stop"))throw new TexError_js_1$5.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,t)},t}(StackItem_js_1$1.BaseItem);NewcommandItems.BeginEnvItem=BeginEnvItem;var __values$3=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__importDefault$g=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_a$3;Object.defineProperty(ConfigMacrosConfiguration,"__esModule",{value:!0}),ConfigMacrosConfiguration.ConfigMacrosConfiguration=void 0;var Configuration_js_1$b=Configuration,Options_js_1$1=Options,SymbolMap_js_1$9=SymbolMap,ParseMethods_js_1$3=__importDefault$g(ParseMethods$1),Symbol_js_1$1=_Symbol,NewcommandMethods_js_1$1=__importDefault$g(NewcommandMethods$1),NewcommandItems_js_1$1=NewcommandItems,MACROSMAP="configmacros-map",ENVIRONMENTMAP="configmacros-env-map";function configmacrosInit(e){new SymbolMap_js_1$9.CommandMap(MACROSMAP,{},{}),new SymbolMap_js_1$9.EnvironmentMap(ENVIRONMENTMAP,ParseMethods_js_1$3.default.environment,{},{}),e.append(Configuration_js_1$b.Configuration.local({handler:{macro:[MACROSMAP],environment:[ENVIRONMENTMAP]},priority:3}))}function configmacrosConfig(e,t){configMacros(t),configEnvironments(t)}function configMacros(e){var t,r,n=e.parseOptions.handlers.retrieve(MACROSMAP),o=e.parseOptions.options.macros;try{for(var i=__values$3(Object.keys(o)),a=i.next();!a.done;a=i.next()){var s=a.value,l="string"==typeof o[s]?[o[s]]:o[s],c=Array.isArray(l[2])?new Symbol_js_1$1.Macro(s,NewcommandMethods_js_1$1.default.MacroWithTemplate,l.slice(0,2).concat(l[2])):new Symbol_js_1$1.Macro(s,NewcommandMethods_js_1$1.default.Macro,l);n.add(s,c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}function configEnvironments(e){var t,r,n=e.parseOptions.handlers.retrieve(ENVIRONMENTMAP),o=e.parseOptions.options.environments;try{for(var i=__values$3(Object.keys(o)),a=i.next();!a.done;a=i.next()){var s=a.value;n.add(s,new Symbol_js_1$1.Macro(s,NewcommandMethods_js_1$1.default.BeginEnv,[!0].concat(o[s])))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}ConfigMacrosConfiguration.ConfigMacrosConfiguration=Configuration_js_1$b.Configuration.create("configmacros",{init:configmacrosInit,config:configmacrosConfig,items:(_a$3={},_a$3[NewcommandItems_js_1$1.BeginEnvItem.prototype.kind]=NewcommandItems_js_1$1.BeginEnvItem,_a$3),options:{macros:(0,Options_js_1$1.expandable)({}),environments:(0,Options_js_1$1.expandable)({})}});var EmpheqConfiguration={};!function(e){var t,r=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.EmpheqConfiguration=e.EmpheqMethods=e.EmpheqBeginItem=void 0;var i=Configuration,a=SymbolMap,s=o(ParseUtil$1),l=o(TexError$1),c=EmpheqUtil,u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"empheq-begin"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(t){return t.isKind("end")&&t.getName()===this.getName()&&this.setProperty("end",!1),e.prototype.checkItem.call(this,t)},t}(BaseItems.BeginItem);e.EmpheqBeginItem=u,e.EmpheqMethods={Empheq:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create("end").setProperty("name",e.stack.global.empheq)),e.stack.global.empheq="";var r=e.stack.Top();c.EmpheqUtil.adjustTable(r,e),e.Push(e.itemFactory.create("end").setProperty("name","empheq"))}else{s.default.checkEqnEnv(e),delete e.stack.global.eqnenv;var o=e.GetBrackets("\\begin{"+t.getName()+"}")||"",i=n((e.GetArgument("\\begin{"+t.getName()+"}")||"").split(/=/),2),a=i[0],u=i[1];if(!c.EmpheqUtil.checkEnv(a))throw new l.default("UnknownEnv",'Unknown environment "%1"',a);o&&t.setProperties(c.EmpheqUtil.splitOptions(o,{left:1,right:1})),e.stack.global.empheq=a,e.string="\\begin{"+a+"}"+(u?"{"+u+"}":"")+e.string.slice(e.i),e.i=0,e.Push(t)}},EmpheqMO:function(e,t,r){e.Push(e.create("token","mo",{},r))},EmpheqDelim:function(e,t){var r=e.GetDelimiter(t);e.Push(e.create("token","mo",{stretchy:!0,symmetric:!0},r))}},new a.EnvironmentMap("empheq-env",c.EmpheqUtil.environment,{empheq:["Empheq","empheq"]},e.EmpheqMethods),new a.CommandMap("empheq-macros",{empheqlbrace:["EmpheqMO","{"],empheqrbrace:["EmpheqMO","}"],empheqlbrack:["EmpheqMO","["],empheqrbrack:["EmpheqMO","]"],empheqlangle:["EmpheqMO","⟨"],empheqrangle:["EmpheqMO","⟩"],empheqlparen:["EmpheqMO","("],empheqrparen:["EmpheqMO",")"],empheqlvert:["EmpheqMO","|"],empheqrvert:["EmpheqMO","|"],empheqlVert:["EmpheqMO","‖"],empheqrVert:["EmpheqMO","‖"],empheqlfloor:["EmpheqMO","⌊"],empheqrfloor:["EmpheqMO","⌋"],empheqlceil:["EmpheqMO","⌈"],empheqrceil:["EmpheqMO","⌉"],empheqbiglbrace:["EmpheqMO","{"],empheqbigrbrace:["EmpheqMO","}"],empheqbiglbrack:["EmpheqMO","["],empheqbigrbrack:["EmpheqMO","]"],empheqbiglangle:["EmpheqMO","⟨"],empheqbigrangle:["EmpheqMO","⟩"],empheqbiglparen:["EmpheqMO","("],empheqbigrparen:["EmpheqMO",")"],empheqbiglvert:["EmpheqMO","|"],empheqbigrvert:["EmpheqMO","|"],empheqbiglVert:["EmpheqMO","‖"],empheqbigrVert:["EmpheqMO","‖"],empheqbiglfloor:["EmpheqMO","⌊"],empheqbigrfloor:["EmpheqMO","⌋"],empheqbiglceil:["EmpheqMO","⌈"],empheqbigrceil:["EmpheqMO","⌉"],empheql:"EmpheqDelim",empheqr:"EmpheqDelim",empheqbigl:"EmpheqDelim",empheqbigr:"EmpheqDelim"},e.EmpheqMethods),e.EmpheqConfiguration=i.Configuration.create("empheq",{handler:{macro:["empheq-macros"],environment:["empheq-env"]},items:(t={},t[u.prototype.kind]=u,t)})}(EmpheqConfiguration),getDefaultExportFromCjs$1(EmpheqConfiguration);var ExtpfeilConfiguration={},NewcommandConfiguration={},NewcommandMappings={},__importDefault$f=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(NewcommandMappings,"__esModule",{value:!0});var NewcommandMethods_js_1=__importDefault$f(NewcommandMethods$1),SymbolMap_js_1$8=SymbolMap;new SymbolMap_js_1$8.CommandMap("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},NewcommandMethods_js_1.default);var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding(t,e,r);return __setModuleDefault(t,e),t},__importDefault$e=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_a$2;Object.defineProperty(NewcommandConfiguration,"__esModule",{value:!0}),NewcommandConfiguration.NewcommandConfiguration=void 0;var Configuration_js_1$a=Configuration,NewcommandItems_js_1=NewcommandItems,NewcommandUtil_js_1=__importDefault$e(NewcommandUtil$1),ParseMethods_js_1$2=__importDefault$e(ParseMethods$1),sm=__importStar(SymbolMap),init=function(e){new sm.DelimiterMap(NewcommandUtil_js_1.default.NEW_DELIMITER,ParseMethods_js_1$2.default.delimiter,{}),new sm.CommandMap(NewcommandUtil_js_1.default.NEW_COMMAND,{},{}),new sm.EnvironmentMap(NewcommandUtil_js_1.default.NEW_ENVIRONMENT,ParseMethods_js_1$2.default.environment,{},{}),e.append(Configuration_js_1$a.Configuration.local({handler:{character:[],delimiter:[NewcommandUtil_js_1.default.NEW_DELIMITER],macro:[NewcommandUtil_js_1.default.NEW_DELIMITER,NewcommandUtil_js_1.default.NEW_COMMAND],environment:[NewcommandUtil_js_1.default.NEW_ENVIRONMENT]},priority:-1}))};NewcommandConfiguration.NewcommandConfiguration=Configuration_js_1$a.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:(_a$2={},_a$2[NewcommandItems_js_1.BeginEnvItem.prototype.kind]=NewcommandItems_js_1.BeginEnvItem,_a$2),options:{maxMacros:1e3},init:init}),function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ExtpfeilConfiguration=e.ExtpfeilMethods=void 0;var r=Configuration,n=SymbolMap,o=AmsMethods,i=t(NewcommandUtil$1),a=NewcommandConfiguration,s=t(TexError$1);e.ExtpfeilMethods={},e.ExtpfeilMethods.xArrow=o.AmsMethods.xArrow,e.ExtpfeilMethods.NewExtArrow=function(t,r){var n=t.GetArgument(r),o=t.GetArgument(r),a=t.GetArgument(r);if(!n.match(/^\\([a-z]+|.)$/i))throw new s.default("NewextarrowArg1","First argument to %1 must be a control sequence name",r);if(!o.match(/^(\d+),(\d+)$/))throw new s.default("NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",r);if(!a.match(/^(\d+|0x[0-9A-F]+)$/i))throw new s.default("NewextarrowArg3","Third argument to %1 must be a unicode character number",r);n=n.substr(1);var l=o.split(",");i.default.addMacro(t,n,e.ExtpfeilMethods.xArrow,[parseInt(a),parseInt(l[0]),parseInt(l[1])])},new n.CommandMap("extpfeil",{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"},e.ExtpfeilMethods);e.ExtpfeilConfiguration=r.Configuration.create("extpfeil",{handler:{macro:["extpfeil"]},init:function(e){a.NewcommandConfiguration.init(e)}})}(ExtpfeilConfiguration),getDefaultExportFromCjs$1(ExtpfeilConfiguration);var GensymbConfiguration={};Object.defineProperty(GensymbConfiguration,"__esModule",{value:!0}),GensymbConfiguration.GensymbConfiguration=void 0;var Configuration_js_1$9=Configuration,TexConstants_js_1$6=TexConstants,SymbolMap_js_1$7=SymbolMap;function mathcharUnit(e,t){var r=t.attributes||{};r.mathvariant=TexConstants_js_1$6.TexConstant.Variant.NORMAL,r.class="MathML-Unit";var n=e.create("token","mi",r,t.char);e.Push(n)}new SymbolMap_js_1$7.CharacterMap("gensymb-symbols",mathcharUnit,{ohm:"Ω",degree:"°",celsius:"℃",perthousand:"‰",micro:"µ"}),GensymbConfiguration.GensymbConfiguration=Configuration_js_1$9.Configuration.create("gensymb",{handler:{macro:["gensymb-symbols"]}});var HtmlConfiguration={},HtmlMethods$1={},__importDefault$d=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(HtmlMethods$1,"__esModule",{value:!0});var NodeUtil_js_1$4=__importDefault$d(NodeUtil$1),HtmlMethods={Href:function(e,t){var r=e.GetArgument(t),n=GetArgumentMML(e,t);NodeUtil_js_1$4.default.setAttribute(n,"href",r),e.Push(n)},Class:function(e,t){var r=e.GetArgument(t),n=GetArgumentMML(e,t),o=NodeUtil_js_1$4.default.getAttribute(n,"class");o&&(r=o+" "+r),NodeUtil_js_1$4.default.setAttribute(n,"class",r),e.Push(n)},Style:function(e,t){var r=e.GetArgument(t),n=GetArgumentMML(e,t),o=NodeUtil_js_1$4.default.getAttribute(n,"style");o&&(";"!==r.charAt(r.length-1)&&(r+=";"),r=o+" "+r),NodeUtil_js_1$4.default.setAttribute(n,"style",r),e.Push(n)},Id:function(e,t){var r=e.GetArgument(t),n=GetArgumentMML(e,t);NodeUtil_js_1$4.default.setAttribute(n,"id",r),e.Push(n)}},GetArgumentMML=function(e,t){var r=e.ParseArg(t);if(!NodeUtil_js_1$4.default.isInferred(r))return r;var n=NodeUtil_js_1$4.default.getChildren(r);if(1===n.length)return n[0];var o=e.create("node","mrow");return NodeUtil_js_1$4.default.copyChildren(r,o),NodeUtil_js_1$4.default.copyAttributes(r,o),o};HtmlMethods$1.default=HtmlMethods;var __importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(HtmlConfiguration,"__esModule",{value:!0}),HtmlConfiguration.HtmlConfiguration=void 0;var Configuration_js_1$8=Configuration,SymbolMap_js_1$6=SymbolMap,HtmlMethods_js_1=__importDefault$c(HtmlMethods$1);new SymbolMap_js_1$6.CommandMap("html_macros",{href:"Href",class:"Class",style:"Style",cssId:"Id"},HtmlMethods_js_1.default),HtmlConfiguration.HtmlConfiguration=Configuration_js_1$8.Configuration.create("html",{handler:{macro:["html_macros"]}});var MathtoolsConfiguration={},MathtoolsMappings={},MathtoolsMethods={},MathtoolsUtil={},__read$3=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__importDefault$b=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MathtoolsUtil,"__esModule",{value:!0}),MathtoolsUtil.MathtoolsUtil=void 0;var BaseItems_js_1$2=BaseItems,ParseUtil_js_1$4=__importDefault$b(ParseUtil$1),TexParser_js_1$4=__importDefault$b(TexParser$1),TexError_js_1$4=__importDefault$b(TexError$1),Symbol_js_1=_Symbol,Options_js_1=Options,MathtoolsMethods_js_1$1=MathtoolsMethods,MathtoolsConfiguration_js_1=MathtoolsConfiguration;MathtoolsUtil.MathtoolsUtil={setDisplayLevel:function(e,t){if(t){var r=__read$3((0,Options_js_1.lookup)(t,{"\\displaystyle":[!0,0],"\\textstyle":[!1,0],"\\scriptstyle":[!1,1],"\\scriptscriptstyle":[!1,2]},[null,null]),2),n=r[0],o=r[1];null!==n&&(e.attributes.set("displaystyle",n),e.attributes.set("scriptlevel",o))}},checkAlignment:function(e,t){var r=e.stack.Top();if(r.kind!==BaseItems_js_1$2.EqnArrayItem.prototype.kind)throw new TexError_js_1$4.default("NotInAlignment","%1 can only be used in aligment environments",t);return r},addPairedDelims:function(e,t,r){e.handlers.retrieve(MathtoolsConfiguration_js_1.PAIREDDELIMS).add(t,new Symbol_js_1.Macro(t,MathtoolsMethods_js_1$1.MathtoolsMethods.PairedDelimiters,r))},spreadLines:function(e,t){if(e.isKind("mtable")){var r=e.attributes.get("rowspacing");if(r){var n=ParseUtil_js_1$4.default.dimen2em(t);r=r.split(/ /).map((function(e){return ParseUtil_js_1$4.default.Em(Math.max(0,ParseUtil_js_1$4.default.dimen2em(e)+n))})).join(" ")}else r=t;e.attributes.set("rowspacing",r)}},plusOrMinus:function(e,t){if(!(t=t.trim()).match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)$/))throw new TexError_js_1$4.default("NotANumber","Argument to %1 is not a number",e);return t.match(/^[-+]/)?t:"+"+t},getScript:function(e,t,r){var n=ParseUtil_js_1$4.default.trimSpaces(e.GetArgument(t));if(""===n)return e.create("node","none");var o=e.options.mathtools["prescript-".concat(r,"-format")];return o&&(n="".concat(o,"{").concat(n,"}")),new TexParser_js_1$4.default(n,e.stack.env,e.configuration).mml()}},function(e){var t=commonjsGlobal&&commonjsGlobal.__assign||function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},r=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsMethods=void 0;var i=o(ParseUtil$1),a=AmsMethods,s=o(BaseMethods$1),l=o(TexParser$1),c=o(TexError$1),u=o(NodeUtil$1),d=MmlNode,p=lengths,m=Options,h=o(NewcommandUtil$1),f=o(NewcommandMethods$1),_=MathtoolsUtil;e.MathtoolsMethods={MtMatrix:function(t,r,n,o){var i=t.GetBrackets("\\begin{".concat(r.getName(),"}"),"c");return e.MathtoolsMethods.Array(t,r,n,o,i)},MtSmallMatrix:function(t,r,n,o,a){return a||(a=t.GetBrackets("\\begin{".concat(r.getName(),"}"),t.options.mathtools["smallmatrix-align"])),e.MathtoolsMethods.Array(t,r,n,o,a,i.default.Em(1/3),".2em","S",1)},MtMultlined:function(e,t){var n,o="\\begin{".concat(t.getName(),"}"),a=e.GetBrackets(o,e.options.mathtools["multlined-pos"]||"c"),s=a?e.GetBrackets(o,""):"";a&&!a.match(/^[cbt]$/)&&(s=(n=r([a,s],2))[0],a=n[1]),e.Push(t);var l=e.itemFactory.create("multlined",e,t);return l.arraydef={displaystyle:!0,rowspacing:".5em",width:s||"auto",columnwidth:"100%"},i.default.setArrayAlign(l,a||"c")},HandleShove:function(e,t,r){var n=e.stack.Top();if("multline"!==n.kind&&"multlined"!==n.kind)throw new c.default("CommandInMultlined","%1 can only appear within the multline or multlined environments",t);if(n.Size())throw new c.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",t);n.setProperty("shove",r);var o=e.GetBrackets(t),i=e.ParseArg(t);if(o){var a=e.create("node","mrow",[]),s=e.create("node","mspace",[],{width:o});"left"===r?(a.appendChild(s),a.appendChild(i)):(a.appendChild(i),a.appendChild(s)),i=a}e.Push(i)},SpreadLines:function(e,t){var r,o;if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;var i=e.stack.Pop(),a=i.toMml(),s=i.getProperty("spread");if(a.isInferred)try{for(var l=n(u.default.getChildren(a)),c=l.next();!c.done;c=l.next()){var d=c.value;_.MathtoolsUtil.spreadLines(d,s)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}else _.MathtoolsUtil.spreadLines(a,s);e.Push(a)}else{s=e.GetDimen("\\begin{".concat(t.getName(),"}"));t.setProperty("spread",s),e.Push(t)}},Cases:function(e,t,r,n,o){var i=e.itemFactory.create("array").setProperty("casesEnv",t.getName());return i.arraydef={rowspacing:".2em",columnspacing:"1em",columnalign:"left"},"D"===o&&(i.arraydef.displaystyle=!0),i.setProperties({open:r,close:n}),e.Push(t),i},MathLap:function(e,r,n,o){var i=e.GetBrackets(r,"").trim(),a=e.create("node","mstyle",[e.create("node","mpadded",[e.ParseArg(r)],t({width:0},"r"===n?{}:{lspace:"l"===n?"-1width":"-.5width"}))],{"data-cramped":o});_.MathtoolsUtil.setDisplayLevel(a,i),e.Push(e.create("node","TeXAtom",[a]))},Cramped:function(e,t){var r=e.GetBrackets(t,"").trim(),n=e.ParseArg(t),o=e.create("node","mstyle",[n],{"data-cramped":!0});_.MathtoolsUtil.setDisplayLevel(o,r),e.Push(o)},MtLap:function(e,t,r){var n=i.default.internalMath(e,e.GetArgument(t),0),o=e.create("node","mpadded",n,{width:0});"r"!==r&&u.default.setAttribute(o,"lspace","l"===r?"-1width":"-.5width"),e.Push(o)},MathMakeBox:function(e,t){var r=e.GetBrackets(t),n=e.GetBrackets(t,"c"),o=e.create("node","mpadded",[e.ParseArg(t)]);r&&u.default.setAttribute(o,"width",r);var i=(0,m.lookup)(n,{c:"center",r:"right"},"");i&&u.default.setAttribute(o,"data-align",i),e.Push(o)},MathMBox:function(e,t){e.Push(e.create("node","mrow",[e.ParseArg(t)]))},UnderOverBracket:function(e,t){var n=(0,p.length2em)(e.GetBrackets(t,".1em"),.1),o=e.GetBrackets(t,".2em"),a=e.GetArgument(t),s=r("o"===t.charAt(1)?["over","accent","bottom"]:["under","accentunder","top"],3),c=s[0],d=s[1],m=s[2],h=(0,p.em)(n),f=new l.default(a,e.stack.env,e.configuration).mml(),_=new l.default(a,e.stack.env,e.configuration).mml(),g=e.create("node","mpadded",[e.create("node","mphantom",[_])],{style:"border: ".concat(h," solid; border-").concat(m,": none"),height:o,depth:0}),y=i.default.underOver(e,f,g,c,!0),b=u.default.getChildAt(u.default.getChildAt(y,0),0);u.default.setAttribute(b,d,!0),e.Push(y)},Aboxed:function(e,t){var r=_.MathtoolsUtil.checkAlignment(e,t);r.row.length%2==1&&r.row.push(e.create("node","mtd",[]));var n=e.GetArgument(t),o=e.string.substr(e.i);e.string=n+"&&\\endAboxed",e.i=0;var a=e.GetUpTo(t,"&"),s=e.GetUpTo(t,"&");e.GetUpTo(t,"\\endAboxed");var l=i.default.substituteArgs(e,[a,s],"\\rlap{\\boxed{#1{}#2}}\\kern.267em\\phantom{#1}&\\phantom{{}#2}\\kern.267em");e.string=l+o,e.i=0},ArrowBetweenLines:function(e,t){var r=_.MathtoolsUtil.checkAlignment(e,t);if(r.Size()||r.row.length)throw new c.default("BetweenLines","%1 must be on a row by itself",t);var n=e.GetStar(),o=e.GetBrackets(t,"\\Updownarrow");n&&(r.EndEntry(),r.EndEntry());var i=n?"\\quad"+o:o+"\\quad",a=new l.default(i,e.stack.env,e.configuration).mml();e.Push(a),r.EndEntry(),r.EndRow()},VDotsWithin:function(e,r){var n=e.stack.Top(),o=n.getProperty("flushspaceabove")===n.table.length,i="\\mmlToken{mi}{}"+e.GetArgument(r)+"\\mmlToken{mi}{}",a=new l.default(i,e.stack.env,e.configuration).mml(),s=e.create("node","mpadded",[e.create("node","mpadded",[e.create("node","mo",[e.create("text","⋮")])],t({width:0,lspace:"-.5width"},o?{height:"-.6em",voffset:"-.18em"}:{})),e.create("node","mphantom",[a])],{lspace:".5width"});e.Push(s)},ShortVDotsWithin:function(t,r){var n=t.stack.Top(),o=t.GetStar();e.MathtoolsMethods.FlushSpaceAbove(t,"\\MTFlushSpaceAbove"),!o&&n.EndEntry(),e.MathtoolsMethods.VDotsWithin(t,"\\vdotswithin"),o&&n.EndEntry(),e.MathtoolsMethods.FlushSpaceBelow(t,"\\MTFlushSpaceBelow")},FlushSpaceAbove:function(e,t){var r=_.MathtoolsUtil.checkAlignment(e,t);r.setProperty("flushspaceabove",r.table.length),r.addRowSpacing("-"+e.options.mathtools.shortvdotsadjustabove)},FlushSpaceBelow:function(e,t){var r=_.MathtoolsUtil.checkAlignment(e,t);r.Size()&&r.EndEntry(),r.EndRow(),r.addRowSpacing("-"+e.options.mathtools.shortvdotsadjustbelow)},PairedDelimiters:function(e,t,n,o,a,s,l,c){void 0===a&&(a="#1"),void 0===s&&(s=1),void 0===l&&(l=""),void 0===c&&(c="");var u=e.GetStar(),d=u?"":e.GetBrackets(t),p=r(u?["\\left","\\right"]:d?[d+"l",d+"r"]:["",""],2),m=p[0],h=p[1],f=u?"\\middle":d||"";if(s){for(var _=[],g=_.length;g<s;g++)_.push(e.GetArgument(t));l=i.default.substituteArgs(e,_,l),a=i.default.substituteArgs(e,_,a),c=i.default.substituteArgs(e,_,c)}a=a.replace(/\\delimsize/g,f),e.string=[l,m,n,a,h,o,c,e.string.substr(e.i)].reduce((function(t,r){return i.default.addArgs(e,t,r)}),""),e.i=0,i.default.checkMaxMacros(e)},DeclarePairedDelimiter:function(e,t){var r=h.default.GetCsNameArgument(e,t),n=e.GetArgument(t),o=e.GetArgument(t);_.MathtoolsUtil.addPairedDelims(e.configuration,r,[n,o])},DeclarePairedDelimiterX:function(e,t){var r=h.default.GetCsNameArgument(e,t),n=h.default.GetArgCount(e,t),o=e.GetArgument(t),i=e.GetArgument(t),a=e.GetArgument(t);_.MathtoolsUtil.addPairedDelims(e.configuration,r,[o,i,a,n])},DeclarePairedDelimiterXPP:function(e,t){var r=h.default.GetCsNameArgument(e,t),n=h.default.GetArgCount(e,t),o=e.GetArgument(t),i=e.GetArgument(t),a=e.GetArgument(t),s=e.GetArgument(t),l=e.GetArgument(t);_.MathtoolsUtil.addPairedDelims(e.configuration,r,[i,a,l,n,o,s])},CenterColon:function(e,r,n,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var a=e.options.mathtools,s=e.create("token","mo",{},":");if(n&&(a.centercolon||o)){var l=a["centercolon-offset"];s=e.create("node","mpadded",[s],t({voffset:l,height:"+".concat(l),depth:"-".concat(l)},i?{width:a["thincolon-dw"],lspace:a["thincolon-dx"]}:{}))}e.Push(s)},Relation:function(e,t,r,n){e.options.mathtools["use-unicode"]&&n?e.Push(e.create("token","mo",{texClass:d.TEXCLASS.REL},n)):(r="\\mathrel{"+r.replace(/:/g,"\\MTThinColon").replace(/-/g,"\\mathrel{-}")+"}",e.string=i.default.addArgs(e,r,e.string.substr(e.i)),e.i=0)},NArrow:function(e,t,r,n){e.Push(e.create("node","TeXAtom",[e.create("token","mtext",{},r),e.create("node","mpadded",[e.create("node","mpadded",[e.create("node","menclose",[e.create("node","mspace",[],{height:".2em",depth:0,width:".4em"})],{notation:"updiagonalstrike","data-thickness":".05em","data-padding":0})],{width:0,lspace:"-.5width",voffset:n}),e.create("node","mphantom",[e.create("token","mtext",{},r)])],{width:0,lspace:"-.5width"})],{texClass:d.TEXCLASS.REL}))},SplitFrac:function(e,t,r){var n=e.ParseArg(t),o=e.ParseArg(t);e.Push(e.create("node","mstyle",[e.create("node","mfrac",[e.create("node","mstyle",[n,e.create("token","mi"),e.create("token","mspace",{width:"1em"})],{scriptlevel:0}),e.create("node","mstyle",[e.create("token","mspace",{width:"1em"}),e.create("token","mi"),o],{scriptlevel:0})],{linethickness:0,numalign:"left",denomalign:"right"})],{displaystyle:r,scriptlevel:0}))},XMathStrut:function(e,t){var r=e.GetBrackets(t),n=e.GetArgument(t);n=_.MathtoolsUtil.plusOrMinus(t,n),r=_.MathtoolsUtil.plusOrMinus(t,r||n),e.Push(e.create("node","TeXAtom",[e.create("node","mpadded",[e.create("node","mphantom",[e.create("token","mo",{stretchy:!1},"(")])],{width:0,height:n+"height",depth:r+"depth"})],{texClass:d.TEXCLASS.ORD}))},Prescript:function(e,t){var r=_.MathtoolsUtil.getScript(e,t,"sup"),n=_.MathtoolsUtil.getScript(e,t,"sub"),o=_.MathtoolsUtil.getScript(e,t,"arg");if(u.default.isType(r,"none")&&u.default.isType(n,"none"))e.Push(o);else{var i=e.create("node","mmultiscripts",[o]);u.default.getChildren(i).push(null,null),u.default.appendChildren(i,[e.create("node","mprescripts"),n,r]),i.setProperty("fixPrescript",!0),e.Push(i)}},NewTagForm:function(e,t,r){void 0===r&&(r=!1);var n=e.tags;if(!("mtFormats"in n))throw new c.default("TagsNotMT","%1 can only be used with ams or mathtools tags",t);var o=e.GetArgument(t).trim();if(!o)throw new c.default("InvalidTagFormID","Tag form name can't be empty");var i=e.GetBrackets(t,""),a=e.GetArgument(t),s=e.GetArgument(t);if(!r&&n.mtFormats.has(o))throw new c.default("DuplicateTagForm","Duplicate tag form: %1",o);n.mtFormats.set(o,[a,s,i])},UseTagForm:function(e,t){var r=e.tags;if(!("mtFormats"in r))throw new c.default("TagsNotMT","%1 can only be used with ams or mathtools tags",t);var n=e.GetArgument(t).trim();if(n){if(!r.mtFormats.has(n))throw new c.default("UndefinedTagForm","Undefined tag form: %1",n);r.mtCurrent=r.mtFormats.get(n)}else r.mtCurrent=null},SetOptions:function(e,t){var r,o,a=e.options.mathtools;if(!a["allow-mathtoolsset"])throw new c.default("ForbiddenMathtoolsSet","%1 is disabled",t);var s={};Object.keys(a).forEach((function(e){"pariedDelimiters"!==e&&"tagforms"!==e&&"allow-mathtoolsset"!==e&&(s[e]=1)}));var l=e.GetArgument(t),u=i.default.keyvalOptions(l,s,!0);try{for(var d=n(Object.keys(u)),p=d.next();!p.done;p=d.next()){var m=p.value;a[m]=u[m]}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}},Array:s.default.Array,Macro:s.default.Macro,xArrow:a.AmsMethods.xArrow,HandleRef:a.AmsMethods.HandleRef,AmsEqnArray:a.AmsMethods.AmsEqnArray,MacroWithTemplate:f.default.MacroWithTemplate}}(MathtoolsMethods),getDefaultExportFromCjs$1(MathtoolsMethods);var __importDefault$a=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MathtoolsMappings,"__esModule",{value:!0});var ParseMethods_js_1$1=__importDefault$a(ParseMethods$1),SymbolMap_js_1$5=SymbolMap,TexConstants_js_1$5=TexConstants,MathtoolsMethods_js_1=MathtoolsMethods;new SymbolMap_js_1$5.CommandMap("mathtools-macros",{shoveleft:["HandleShove",TexConstants_js_1$5.TexConstant.Align.LEFT],shoveright:["HandleShove",TexConstants_js_1$5.TexConstant.Align.RIGHT],xleftrightarrow:["xArrow",8596,10,10],xLeftarrow:["xArrow",8656,12,7],xRightarrow:["xArrow",8658,7,12],xLeftrightarrow:["xArrow",8660,12,12],xhookleftarrow:["xArrow",8617,10,5],xhookrightarrow:["xArrow",8618,5,10],xmapsto:["xArrow",8614,10,10],xrightharpoondown:["xArrow",8641,5,10],xleftharpoondown:["xArrow",8637,10,5],xrightleftharpoons:["xArrow",8652,10,10],xrightharpoonup:["xArrow",8640,5,10],xleftharpoonup:["xArrow",8636,10,5],xleftrightharpoons:["xArrow",8651,10,10],mathllap:["MathLap","l",!1],mathrlap:["MathLap","r",!1],mathclap:["MathLap","c",!1],clap:["MtLap","c"],textllap:["MtLap","l"],textrlap:["MtLap","r"],textclap:["MtLap","c"],cramped:"Cramped",crampedllap:["MathLap","l",!0],crampedrlap:["MathLap","r",!0],crampedclap:["MathLap","c",!0],crampedsubstack:["Macro","\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}",1],mathmbox:"MathMBox",mathmakebox:"MathMakeBox",overbracket:"UnderOverBracket",underbracket:"UnderOverBracket",refeq:"HandleRef",MoveEqLeft:["Macro","\\hspace{#1em}&\\hspace{-#1em}",1,"2"],Aboxed:"Aboxed",ArrowBetweenLines:"ArrowBetweenLines",vdotswithin:"VDotsWithin",shortvdotswithin:"ShortVDotsWithin",MTFlushSpaceAbove:"FlushSpaceAbove",MTFlushSpaceBelow:"FlushSpaceBelow",DeclarePairedDelimiter:"DeclarePairedDelimiter",DeclarePairedDelimiterX:"DeclarePairedDelimiterX",DeclarePairedDelimiterXPP:"DeclarePairedDelimiterXPP",DeclarePairedDelimiters:"DeclarePairedDelimiter",DeclarePairedDelimitersX:"DeclarePairedDelimiterX",DeclarePairedDelimitersXPP:"DeclarePairedDelimiterXPP",centercolon:["CenterColon",!0,!0],ordinarycolon:["CenterColon",!1],MTThinColon:["CenterColon",!0,!0,!0],coloneqq:["Relation",":=","≔"],Coloneqq:["Relation","::=","⩴"],coloneq:["Relation",":-"],Coloneq:["Relation","::-"],eqqcolon:["Relation","=:","≕"],Eqqcolon:["Relation","=::"],eqcolon:["Relation","-:","∹"],Eqcolon:["Relation","-::"],colonapprox:["Relation",":\\approx"],Colonapprox:["Relation","::\\approx"],colonsim:["Relation",":\\sim"],Colonsim:["Relation","::\\sim"],dblcolon:["Relation","::","∷"],nuparrow:["NArrow","↑",".06em"],ndownarrow:["NArrow","↓",".25em"],bigtimes:["Macro","\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}"],splitfrac:["SplitFrac",!1],splitdfrac:["SplitFrac",!0],xmathstrut:"XMathStrut",prescript:"Prescript",newtagform:["NewTagForm",!1],renewtagform:["NewTagForm",!0],usetagform:"UseTagForm",adjustlimits:["MacroWithTemplate","\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}",4,,"_",,"_"],mathtoolsset:"SetOptions"},MathtoolsMethods_js_1.MathtoolsMethods),new SymbolMap_js_1$5.EnvironmentMap("mathtools-environments",ParseMethods_js_1$1.default.environment,{dcases:["Array",null,"\\{","","ll",null,".2em","D"],rcases:["Array",null,"","\\}","ll",null,".2em"],drcases:["Array",null,"","\\}","ll",null,".2em","D"],"dcases*":["Cases",null,"{","","D"],"rcases*":["Cases",null,"","}"],"drcases*":["Cases",null,"","}","D"],"cases*":["Cases",null,"{",""],"matrix*":["MtMatrix",null,null,null],"pmatrix*":["MtMatrix",null,"(",")"],"bmatrix*":["MtMatrix",null,"[","]"],"Bmatrix*":["MtMatrix",null,"\\{","\\}"],"vmatrix*":["MtMatrix",null,"\\vert","\\vert"],"Vmatrix*":["MtMatrix",null,"\\Vert","\\Vert"],"smallmatrix*":["MtSmallMatrix",null,null,null],psmallmatrix:["MtSmallMatrix",null,"(",")","c"],"psmallmatrix*":["MtSmallMatrix",null,"(",")"],bsmallmatrix:["MtSmallMatrix",null,"[","]","c"],"bsmallmatrix*":["MtSmallMatrix",null,"[","]"],Bsmallmatrix:["MtSmallMatrix",null,"\\{","\\}","c"],"Bsmallmatrix*":["MtSmallMatrix",null,"\\{","\\}"],vsmallmatrix:["MtSmallMatrix",null,"\\vert","\\vert","c"],"vsmallmatrix*":["MtSmallMatrix",null,"\\vert","\\vert"],Vsmallmatrix:["MtSmallMatrix",null,"\\Vert","\\Vert","c"],"Vsmallmatrix*":["MtSmallMatrix",null,"\\Vert","\\Vert"],crampedsubarray:["Array",null,null,null,null,"0em","0.1em","S'",1],multlined:"MtMultlined",spreadlines:["SpreadLines",!0],lgathered:["AmsEqnArray",null,null,null,"l",null,".5em","D"],rgathered:["AmsEqnArray",null,null,null,"r",null,".5em","D"]},MathtoolsMethods_js_1.MathtoolsMethods),new SymbolMap_js_1$5.DelimiterMap("mathtools-delimiters",ParseMethods_js_1$1.default.delimiter,{"\\lparen":"(","\\rparen":")"}),new SymbolMap_js_1$5.CommandMap("mathtools-characters",{":":["CenterColon",!0]},MathtoolsMethods_js_1.MathtoolsMethods);var MathtoolsTags={},__extends$4=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values$2=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$2=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__importDefault$9=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MathtoolsTags,"__esModule",{value:!0}),MathtoolsTags.MathtoolsTagFormat=void 0;var TexError_js_1$3=__importDefault$9(TexError$1),Tags_js_1$2=Tags,tagID$1=0;function MathtoolsTagFormat(e,t){var r=t.parseOptions.options.tags;"base"!==r&&e.tags.hasOwnProperty(r)&&Tags_js_1$2.TagsFactory.add(r,e.tags[r]);var n=function(e){function r(){var r,n,o=e.call(this)||this;o.mtFormats=new Map,o.mtCurrent=null;var i=t.parseOptions.options.mathtools.tagforms;try{for(var a=__values$2(Object.keys(i)),s=a.next();!s.done;s=a.next()){var l=s.value;if(!Array.isArray(i[l])||3!==i[l].length)throw new TexError_js_1$3.default("InvalidTagFormDef",'The tag form definition for "%1" should be an array fo three strings',l);o.mtFormats.set(l,i[l])}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}return __extends$4(r,e),r.prototype.formatTag=function(t){if(this.mtCurrent){var r=__read$2(this.mtCurrent,3),n=r[0],o=r[1],i=r[2];return i?"".concat(n).concat(i,"{").concat(t,"}").concat(o):"".concat(n).concat(t).concat(o)}return e.prototype.formatTag.call(this,t)},r}(Tags_js_1$2.TagsFactory.create(t.parseOptions.options.tags).constructor),o="MathtoolsTags-"+ ++tagID$1;Tags_js_1$2.TagsFactory.add(o,n),t.parseOptions.options.tags=o}MathtoolsTags.MathtoolsTagFormat=MathtoolsTagFormat;var MathtoolsItems={},__extends$3=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__importDefault$8=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MathtoolsItems,"__esModule",{value:!0}),MathtoolsItems.MultlinedItem=void 0;var AmsItems_js_1=AmsItems,NodeUtil_js_1$3=__importDefault$8(NodeUtil$1),TexConstants_js_1$4=TexConstants,MultlinedItem=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$3(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"multlined"},enumerable:!1,configurable:!0}),t.prototype.EndTable=function(){if((this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.table.length>1){var t=this.factory.configuration.options.mathtools,r=t.multlinegap,n=t["firstline-afterskip"]||r,o=t["lastline-preskip"]||r,i=NodeUtil_js_1$3.default.getChildren(this.table[0])[0];NodeUtil_js_1$3.default.getAttribute(i,"columnalign")!==TexConstants_js_1$4.TexConstant.Align.RIGHT&&i.appendChild(this.create("node","mspace",[],{width:n}));var a=NodeUtil_js_1$3.default.getChildren(this.table[this.table.length-1])[0];if(NodeUtil_js_1$3.default.getAttribute(a,"columnalign")!==TexConstants_js_1$4.TexConstant.Align.LEFT){var s=NodeUtil_js_1$3.default.getChildren(a)[0];s.childNodes.unshift(null);var l=this.create("node","mspace",[],{width:o});NodeUtil_js_1$3.default.setChild(s,0,l)}}e.prototype.EndTable.call(this)},t}(AmsItems_js_1.MultlineItem);MathtoolsItems.MultlinedItem=MultlinedItem,function(e){var t,r=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsConfiguration=e.fixPrescripts=e.PAIREDDELIMS=void 0;var o=Configuration,i=SymbolMap,a=n(NodeUtil$1),s=Options,l=MathtoolsUtil,c=MathtoolsTags,u=MathtoolsItems;function d(e){var t,n,o,i,s,l,c=e.data;try{for(var u=r(c.getList("mmultiscripts")),d=u.next();!d.done;d=u.next()){var p=d.value;if(p.getProperty("fixPrescript")){var m=a.default.getChildren(p),h=0;try{for(var f=(o=void 0,r([1,2])),_=f.next();!_.done;_=f.next()){m[b=_.value]||(a.default.setChild(p,b,c.nodeFactory.create("node","none")),h++)}}catch(e){o={error:e}}finally{try{_&&!_.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=(s=void 0,r([4,5])),y=g.next();!y.done;y=g.next()){var b=y.value;a.default.isType(m[b],"mrow")&&0===a.default.getChildren(m[b]).length&&a.default.setChild(p,b,c.nodeFactory.create("node","none"))}}catch(e){s={error:e}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(s)throw s.error}}2===h&&m.splice(1,2)}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}}e.PAIREDDELIMS="mathtools-paired-delims",e.fixPrescripts=d,e.MathtoolsConfiguration=o.Configuration.create("mathtools",{handler:{macro:["mathtools-macros","mathtools-delimiters"],environment:["mathtools-environments"],delimiter:["mathtools-delimiters"],character:["mathtools-characters"]},items:(t={},t[u.MultlinedItem.prototype.kind]=u.MultlinedItem,t),init:function(t){new i.CommandMap(e.PAIREDDELIMS,{},{}),t.append(o.Configuration.local({handler:{macro:[e.PAIREDDELIMS]},priority:-5}))},config:function(e,t){var n,o,i=t.parseOptions,a=i.options.mathtools.pairedDelimiters;try{for(var s=r(Object.keys(a)),u=s.next();!u.done;u=s.next()){var d=u.value;l.MathtoolsUtil.addPairedDelims(i,d,a[d])}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}(0,c.MathtoolsTagFormat)(e,t)},postprocessors:[[d,-6]],options:{mathtools:{multlinegap:"1em","multlined-pos":"c","firstline-afterskip":"","lastline-preskip":"","smallmatrix-align":"c",shortvdotsadjustabove:".2em",shortvdotsadjustbelow:".2em",centercolon:!1,"centercolon-offset":".04em","thincolon-dx":"-.04em","thincolon-dw":"-.08em","use-unicode":!1,"prescript-sub-format":"","prescript-sup-format":"","prescript-arg-format":"","allow-mathtoolsset":!0,pairedDelimiters:(0,s.expandable)({}),tagforms:(0,s.expandable)({})}}})}(MathtoolsConfiguration),getDefaultExportFromCjs$1(MathtoolsConfiguration);var MhchemConfiguration={},mhchemParser$1={};Object.defineProperty(mhchemParser$1,"__esModule",{value:!0}),mhchemParser$1.mhchemParser=void 0;var mhchemParser=function(){function e(){}return e.toTex=function(e,t){return _mhchemTexify.go(_mhchemParser.go(e,t),"tex"!==t)},e}();function _mhchemCreateTransitions(e){var t,r,n={};for(t in e)for(r in e[t]){var o=r.split("|");e[t][r].stateArray=o;for(var i=0;i<o.length;i++)n[o[i]]=[]}for(t in e)for(r in e[t])for(o=e[t][r].stateArray||[],i=0;i<o.length;i++){var a=e[t][r];a.action_=[].concat(a.action_);for(var s=0;s<a.action_.length;s++)"string"==typeof a.action_[s]&&(a.action_[s]={type_:a.action_[s]});for(var l=t.split("|"),c=0;c<l.length;c++)if("*"===o[i]){var u=void 0;for(u in n)n[u].push({pattern:l[c],task:a})}else n[o[i]].push({pattern:l[c],task:a})}return n}mhchemParser$1.mhchemParser=mhchemParser;var _mhchemParser={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var r,n="0",o={};o.parenthesisLevel=0,e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var i=10,a=[];;){r!==e?(i=10,r=e):i--;var s=_mhchemParser.stateMachines[t],l=s.transitions[n]||s.transitions["*"];e:for(var c=0;c<l.length;c++){var u=_mhchemParser.patterns.match_(l[c].pattern,e);if(u){for(var d=l[c].task,p=0;p<d.action_.length;p++){var m=void 0;if(s.actions[d.action_[p].type_])m=s.actions[d.action_[p].type_](o,u.match_,d.action_[p].option);else{if(!_mhchemParser.actions[d.action_[p].type_])throw["MhchemBugA","mhchem bug A. Please report. ("+d.action_[p].type_+")"];m=_mhchemParser.actions[d.action_[p].type_](o,u.match_,d.action_[p].option)}_mhchemParser.concatArray(a,m)}if(n=d.nextState||n,!(e.length>0))return a;if(d.revisit||(e=u.remainder),!d.toContinue)break e}}if(i<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(e){var t=_mhchemParser.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return _mhchemParser.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return _mhchemParser.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}^":/^\{\}(?=\^)/,"{}":/^\{\}/,"{...}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return _mhchemParser.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$__$(...)$":function(e){return _mhchemParser.patterns.findObserveGroups(e,"${","","","}$")||_mhchemParser.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return _mhchemParser.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")||_mhchemParser.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\ce{","","","}")},"\\pu{(...)}":function(e){return _mhchemParser.patterns.findObserveGroups(e,"\\pu{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var r=_mhchemParser.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,n,o,i,a,s,l,c){var u=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var r=e.match(t);return r?r[0]:null},d=u(e,t);if(null===d)return null;if(e=e.substr(d.length),null===(d=u(e,r)))return null;var p=function(e,t,r){for(var n=0;t<e.length;){var o=e.charAt(t),i=u(e.substr(t),r);if(null!==i&&0===n)return{endMatchBegin:t,endMatchEnd:t+i.length};if("{"===o)n++;else if("}"===o){if(0===n)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];n--}t++}return null}(e,d.length,n||o);if(null===p)return null;var m=e.substring(0,n?p.endMatchEnd:p.endMatchBegin);if(i||a){var h=this.findObserveGroups(e.substr(p.endMatchEnd),i,a,s,l);if(null===h)return null;var f=[m,h.match_];return{match_:c?f.join(""):f,remainder:h.remainder}}return{match_:m,remainder:e.substr(p.endMatchEnd)}},match_:function(e,t){var r=_mhchemParser.patterns.patterns[e];if(void 0===r)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if("function"==typeof r)return _mhchemParser.patterns.patterns[e](t);var n=t.match(r);return n?n.length>2?{match_:n.slice(1),remainder:t.substr(n[0].length)}:{match_:n[1]||n[0],remainder:t.substr(n[0].length)}:null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},write:function(e,t,r){return r},rm:function(e,t){return{type_:"rm",p1:t}},text:function(e,t){return _mhchemParser.go(t,"text")},"tex-math":function(e,t){return _mhchemParser.go(t,"tex-math")},"tex-math tight":function(e,t){return _mhchemParser.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t}},ce:function(e,t){return _mhchemParser.go(t,"ce")},pu:function(e,t){return _mhchemParser.go(t,"pu")},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return _mhchemParser.go(t,"9,9")}},stateMachines:{tex:{transitions:_mhchemCreateTransitions({empty:{0:{action_:"copy"}},"\\ce{(...)}":{0:{action_:[{type_:"write",option:"{"},"ce",{type_:"write",option:"}"}]}},"\\pu{(...)}":{0:{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},else:{0:{action_:"copy"}}}),actions:{}},ce:{transitions:_mhchemCreateTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{action_:[]}},space:{a:{action_:[],nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". __* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}^":{"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"tinySkip"}],nextState:"1"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}],nextState:"3"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[1-9][0-9]*$/)){var n=e.d;e.d=void 0,(r=this.output(e)).push({type_:"tinySkip"}),e.b=n}else r=this.output(e);return _mhchemParser.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return _mhchemParser.concatArray(r,this.output(e)),_mhchemParser.concatArray(r,_mhchemParser.actions.bond(e,t,"-")),r}e.d=t},"- after o/d":function(e,t,r){var n=_mhchemParser.patterns.match_("orbital",e.o||""),o=_mhchemParser.patterns.match_("one lowercase greek letter $",e.o||""),i=_mhchemParser.patterns.match_("one lowercase latin letter $",e.o||""),a=_mhchemParser.patterns.match_("$one lowercase latin letter$ $",e.o||""),s="-"===t&&(n&&""===n.remainder||o||i||a);!s||e.a||e.b||e.p||e.d||e.q||n||!i||(e.o="$"+e.o+"$");var l=[];return s?(_mhchemParser.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(n=_mhchemParser.patterns.match_("digits",e.d||""),r&&n&&""===n.remainder?(_mhchemParser.concatArray(l,_mhchemParser.actions["d="](e,t)),_mhchemParser.concatArray(l,this.output(e))):(_mhchemParser.concatArray(l,this.output(e)),_mhchemParser.concatArray(l,_mhchemParser.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:_mhchemParser.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,"");return r!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n;if(e.r){var o=void 0;o="M"===e.rdt?_mhchemParser.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:_mhchemParser.go(e.rd,"ce");var i=void 0;i="M"===e.rqt?_mhchemParser.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:_mhchemParser.go(e.rq,"ce"),n={type_:"arrow",r:e.r,rd:o,rq:i}}else n=[],(e.a||e.b||e.p||e.o||e.q||e.d||r)&&(e.sb&&n.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===r?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&_mhchemParser.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),n.push({type_:"chemfive",a:_mhchemParser.go(e.a,"a"),b:_mhchemParser.go(e.b,"bd"),p:_mhchemParser.go(e.p,"pq"),o:_mhchemParser.go(e.o,"o"),q:_mhchemParser.go(e.q,"pq"),d:_mhchemParser.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType}));for(var a in e)"parenthesisLevel"!==a&&"beginsWithBond"!==a&&delete e[a];return n},"oxidation-output":function(e,t){var r=["{"];return _mhchemParser.concatArray(r,_mhchemParser.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:_mhchemParser.go(t[0],"ce"),p2:_mhchemParser.go(t[1],"ce")}},"overset-output":function(e,t){return{type_:"overset",p1:_mhchemParser.go(t[0],"ce"),p2:_mhchemParser.go(t[1],"ce")}},"underset-output":function(e,t){return{type_:"underset",p1:_mhchemParser.go(t[0],"ce"),p2:_mhchemParser.go(t[1],"ce")}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:_mhchemParser.go(t[0],"ce"),p2:_mhchemParser.go(t[1],"ce")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:_mhchemParser.go(t[1],"ce")}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:_mhchemCreateTransitions({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:_mhchemCreateTransitions({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:[{type_:"write",option:"{"},"text",{type_:"write",option:"}"}]}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:_mhchemCreateTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:_mhchemCreateTransitions({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{action_:[],nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:_mhchemParser.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:_mhchemParser.go(t[1],"pq")}}}},bd:{transitions:_mhchemCreateTransitions({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:"!f",revisit:!0}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:_mhchemParser.go(t[1],"bd")}}}},oxidation:{transitions:_mhchemCreateTransitions({empty:{"*":{action_:[]}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t}}}},"tex-math":{transitions:_mhchemCreateTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:_mhchemCreateTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:_mhchemCreateTransitions({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:_mhchemCreateTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{action_:[]}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return"+-"===t[0]||"+/-"===t[0]?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(_mhchemParser.concatArray(r,_mhchemParser.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?_mhchemParser.concatArray(r,_mhchemParser.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&("e"===t[3]||"*"===t[4]?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return"+-"===t[0]||"+/-"===t[0]?r.push("\\pm "):t[0]&&r.push(t[0]),_mhchemParser.concatArray(r,_mhchemParser.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=_mhchemParser.patterns.match_("{(...)}",e.d||"");r&&""===r.remainder&&(e.d=r.match_);var n=_mhchemParser.patterns.match_("{(...)}",e.q||"");if(n&&""===n.remainder&&(e.q=n.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:_mhchemParser.go(e.d,"pu"),q:_mhchemParser.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:o.d,p2:o.q}:(t=o.d,o.d.length>1||o.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),_mhchemParser.concatArray(t,o.q))}else t=_mhchemParser.go(e.d,"pu-2");for(var i in e)delete e[i];return t}}},"pu-2":{transitions:_mhchemCreateTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=_mhchemParser.patterns.match_("{(...)}",e.rm||"");t=r&&""===r.remainder?_mhchemParser.go(r.match_,"pu"):{type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:_mhchemCreateTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;0===r&&(r=3);for(var n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var o in e)delete e[o];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length-3,n=void 0;for(n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var o in e)delete e[o];return t}}}}},_mhchemTexify={go:function(e,t){if(!e)return"";for(var r="",n=!1,o=0;o<e.length;o++){var i=e[o];"string"==typeof i?r+=i:(r+=_mhchemTexify._go2(i),"1st-level escape"===i.type_&&(n=!0))}return t&&!n&&r&&(r="{"+r+"}"),r},_goInner:function(e){return _mhchemTexify.go(e,!1)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:_mhchemTexify._goInner(e.a),b:_mhchemTexify._goInner(e.b),p:_mhchemTexify._goInner(e.p),o:_mhchemTexify._goInner(e.o),q:_mhchemTexify._goInner(e.q),d:_mhchemTexify._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{A}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="\\mkern-1.5mu",t+="{\\vphantom{A}}",t+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),"kv"===e.dType?((r.d||r.q)&&(t+="{\\vphantom{A}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{\\smash[t]{"+r.q+"}}")):"oxidation"===e.dType?(r.d&&(t+="{\\vphantom{A}}",t+="^{"+r.d+"}"),r.q&&(t+="{\\vphantom{A}}",t+="_{\\smash[t]{"+r.q+"}}")):(r.q&&(t+="{\\vphantom{A}}",t+="_{\\smash[t]{"+r.q+"}}"),r.d&&(t+="{\\vphantom{A}}",t+="^{"+r.d+"}"));break;case"rm":case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+_mhchemTexify._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+_mhchemTexify._goInner(e.p1);break;case"bond":if(!(t=_mhchemTexify._getBond(e.kind_)))throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var o="\\frac{"+_mhchemTexify._goInner(e.p1)+"}{"+_mhchemTexify._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+o+"}{"+o+"}{"+o+"}{"+o+"}";break;case"tex-math":case"1st-level escape":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+_mhchemTexify._goInner(e.p1)+"}{"+_mhchemTexify._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+_mhchemTexify._goInner(e.p1)+"}{"+_mhchemTexify._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+_mhchemTexify._goInner(e.p1)+"}{"+_mhchemTexify._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+_mhchemTexify._goInner(e.p1)+"}_{"+_mhchemTexify._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+_mhchemTexify._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var i={rd:_mhchemTexify._goInner(e.rd),rq:_mhchemTexify._goInner(e.rq)},a=_mhchemTexify._getArrow(e.r);i.rd||i.rq?"<=>"===e.r||"<=>>"===e.r||"<<=>"===e.r||"<--\x3e"===e.r?(a="\\long"+a,i.rd&&(a="\\overset{"+i.rd+"}{"+a+"}"),i.rq&&(a="<--\x3e"===e.r?"\\underset{\\lower2mu{"+i.rq+"}}{"+a+"}":"\\underset{\\lower6mu{"+i.rq+"}}{"+a+"}"),a=" {}\\mathrel{"+a+"}{} "):(i.rq&&(a+="[{"+i.rq+"}]"),a=" {}\\mathrel{\\x"+(a+="{"+i.rd+"}")+"}{} "):a=" {}\\mathrel{\\long"+a+"}{} ",t=a;break;case"operator":t=_mhchemTexify._getOperator(e.kind_);break;case"space":t=" ";break;case"tinySkip":t="\\mkern2mu";break;case"entitySkip":case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":case"→":case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"leftrightarrows";case"<=>":case"⇌":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}},__importDefault$7=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MhchemConfiguration,"__esModule",{value:!0}),MhchemConfiguration.MhchemConfiguration=void 0;var Configuration_js_1$7=Configuration,SymbolMap_js_1$4=SymbolMap,TexError_js_1$2=__importDefault$7(TexError$1),BaseMethods_js_1$2=__importDefault$7(BaseMethods$1),AmsMethods_js_1=AmsMethods,mhchemParser_js_1=mhchemParser$1,MhchemMethods={};MhchemMethods.Macro=BaseMethods_js_1$2.default.Macro,MhchemMethods.xArrow=AmsMethods_js_1.AmsMethods.xArrow,MhchemMethods.Machine=function(e,t,r){var n,o=e.GetArgument(t);try{n=mhchemParser_js_1.mhchemParser.toTex(o,r)}catch(e){throw new TexError_js_1$2.default(e[0],e[1])}e.string=n+e.string.substr(e.i),e.i=0},new SymbolMap_js_1$4.CommandMap("mhchem",{ce:["Machine","ce"],pu:["Machine","pu"],longrightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longRightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}"],longLeftrightharpoons:["Macro","\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longleftrightarrows:["Macro","\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}"],tripledash:["Macro","\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}"],xleftrightarrow:["xArrow",8596,6,6],xrightleftharpoons:["xArrow",8652,5,7],xRightleftharpoons:["xArrow",8652,5,7],xLeftrightharpoons:["xArrow",8652,5,7]},MhchemMethods),MhchemConfiguration.MhchemConfiguration=Configuration_js_1$7.Configuration.create("mhchem",{handler:{macro:["mhchem"]}});var NoErrorsConfiguration={};Object.defineProperty(NoErrorsConfiguration,"__esModule",{value:!0}),NoErrorsConfiguration.NoErrorsConfiguration=void 0;var Configuration_js_1$6=Configuration;function noErrors(e,t,r,n){var o=e.create("token","mtext",{},n.replace(/\n/g," "));return e.create("node","merror",[o],{"data-mjx-error":t,title:t})}NoErrorsConfiguration.NoErrorsConfiguration=Configuration_js_1$6.Configuration.create("noerrors",{nodes:{error:noErrors}});var NoUndefinedConfiguration={},__values$1=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(NoUndefinedConfiguration,"__esModule",{value:!0}),NoUndefinedConfiguration.NoUndefinedConfiguration=void 0;var Configuration_js_1$5=Configuration;function noUndefined(e,t){var r,n,o=e.create("text","\\"+t),i=e.options.noundefined||{},a={};try{for(var s=__values$1(["color","background","size"]),l=s.next();!l.done;l=s.next()){var c=l.value;i[c]&&(a["math"+c]=i[c])}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}e.Push(e.create("node","mtext",[],a,o))}NoUndefinedConfiguration.NoUndefinedConfiguration=Configuration_js_1$5.Configuration.create("noundefined",{fallback:{macro:noUndefined},options:{noundefined:{color:"red",background:"",size:""}},priority:3});var PhysicsConfiguration={},PhysicsItems={},__extends$2=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PhysicsItems,"__esModule",{value:!0}),PhysicsItems.AutoOpen=void 0;var StackItem_js_1=StackItem,ParseUtil_js_1$3=__importDefault$6(ParseUtil$1),NodeUtil_js_1$2=__importDefault$6(NodeUtil$1),TexParser_js_1$3=__importDefault$6(TexParser$1),AutoOpen=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openCount=0,t}return __extends$2(t,e),Object.defineProperty(t.prototype,"kind",{get:function(){return"auto open"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.toMml=function(){var t=this.factory.configuration.parser,r=this.getProperty("right");if(this.getProperty("smash")){var n=e.prototype.toMml.call(this),o=t.create("node","mpadded",[n],{height:0,depth:0});this.Clear(),this.Push(t.create("node","TeXAtom",[o]))}r&&this.Push(new TexParser_js_1$3.default(r,t.stack.env,t.configuration).mml());var i=ParseUtil_js_1$3.default.fenced(this.factory.configuration,this.getProperty("open"),e.prototype.toMml.call(this),this.getProperty("close"),this.getProperty("big"));return NodeUtil_js_1$2.default.removeProperties(i,"open","close","texClass"),i},t.prototype.checkItem=function(t){if(t.isKind("mml")&&1===t.Size()){var r=t.toMml();r.isKind("mo")&&r.getText()===this.getProperty("open")&&this.openCount++}var n=t.getProperty("autoclose");return n&&n===this.getProperty("close")&&!this.openCount--?this.getProperty("ignore")?(this.Clear(),[[],!0]):[[this.toMml()],!0]:e.prototype.checkItem.call(this,t)},t.errors=Object.assign(Object.create(StackItem_js_1.BaseItem.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]}),t}(StackItem_js_1.BaseItem);PhysicsItems.AutoOpen=AutoOpen;var PhysicsMappings={},PhysicsMethods$1={},__read$1=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__importDefault$5=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PhysicsMethods$1,"__esModule",{value:!0});var BaseMethods_js_1$1=__importDefault$5(BaseMethods$1),TexParser_js_1$2=__importDefault$5(TexParser$1),TexError_js_1$1=__importDefault$5(TexError$1),MmlNode_js_1$2=MmlNode,ParseUtil_js_1$2=__importDefault$5(ParseUtil$1),NodeUtil_js_1$1=__importDefault$5(NodeUtil$1),NodeFactory_js_1=NodeFactory$1,PhysicsMethods={},pairs={"(":")","[":"]","{":"}","|":"|"},biggs=/^(b|B)i(g{1,2})$/;PhysicsMethods.Quantity=function(e,t,r,n,o,i,a){void 0===r&&(r="("),void 0===n&&(n=")"),void 0===o&&(o=!1),void 0===i&&(i=""),void 0===a&&(a="");var s=!!o&&e.GetStar(),l=e.GetNext(),c=e.i,u=null;if("\\"===l){if(e.i++,!(u=e.GetCS()).match(biggs)){var d=e.create("node","mrow");return e.Push(ParseUtil_js_1$2.default.fenced(e.configuration,r,d,n)),void(e.i=c)}l=e.GetNext()}var p=pairs[l];if(o&&"{"!==l)throw new TexError_js_1$1.default("MissingArgFor","Missing argument for %1",e.currentCS);if(!p){d=e.create("node","mrow");return e.Push(ParseUtil_js_1$2.default.fenced(e.configuration,r,d,n)),void(e.i=c)}if(i){var m=e.create("token","mi",{texClass:MmlNode_js_1$2.TEXCLASS.OP},i);a&&NodeUtil_js_1$1.default.setAttribute(m,"mathvariant",a),e.Push(e.itemFactory.create("fn",m))}if("{"===l){var h=e.GetArgument(t);return l=o?r:"\\{",p=o?n:"\\}",h=s?l+" "+h+" "+p:u?"\\"+u+"l"+l+" "+h+" \\"+u+"r"+p:"\\left"+l+" "+h+" \\right"+p,void e.Push(new TexParser_js_1$2.default(h,e.stack.env,e.configuration).mml())}o&&(l=r,p=n),e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:l,close:p,big:u}))},PhysicsMethods.Eval=function(e,t){var r=e.GetStar(),n=e.GetNext();if("{"!==n){if("("===n||"["===n)return e.i++,void e.Push(e.itemFactory.create("auto open").setProperties({open:n,close:"|",smash:r,right:"\\vphantom{\\int}"}));throw new TexError_js_1$1.default("MissingArgFor","Missing argument for %1",e.currentCS)}var o=e.GetArgument(t),i="\\left. "+(r?"\\smash{"+o+"}":o)+" \\vphantom{\\int}\\right|";e.string=e.string.slice(0,e.i)+i+e.string.slice(e.i)},PhysicsMethods.Commutator=function(e,t,r,n){void 0===r&&(r="["),void 0===n&&(n="]");var o=e.GetStar(),i=e.GetNext(),a=null;if("\\"===i){if(e.i++,!(a=e.GetCS()).match(biggs))throw new TexError_js_1$1.default("MissingArgFor","Missing argument for %1",e.currentCS);i=e.GetNext()}if("{"!==i)throw new TexError_js_1$1.default("MissingArgFor","Missing argument for %1",e.currentCS);var s=e.GetArgument(t)+","+e.GetArgument(t);s=o?r+" "+s+" "+n:a?"\\"+a+"l"+r+" "+s+" \\"+a+"r"+n:"\\left"+r+" "+s+" \\right"+n,e.Push(new TexParser_js_1$2.default(s,e.stack.env,e.configuration).mml())};var latinCap=[65,90],latinSmall=[97,122],greekCap=[913,937],greekSmall=[945,969],digits=[48,57];function inRange(e,t){return e>=t[0]&&e<=t[1]}function createVectorToken(e,t,r,n){var o=e.configuration.parser,i=NodeFactory_js_1.NodeFactory.createToken(e,t,r,n),a=n.codePointAt(0);return 1===n.length&&!o.stack.env.font&&o.stack.env.vectorFont&&(inRange(a,latinCap)||inRange(a,latinSmall)||inRange(a,greekCap)||inRange(a,digits)||inRange(a,greekSmall)&&o.stack.env.vectorStar||NodeUtil_js_1$1.default.getAttribute(i,"accent"))&&NodeUtil_js_1$1.default.setAttribute(i,"mathvariant",o.stack.env.vectorFont),i}PhysicsMethods.VectorBold=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=e.configuration.nodeFactory.get("token"),i=e.stack.env.font;delete e.stack.env.font,e.configuration.nodeFactory.set("token",createVectorToken),e.stack.env.vectorFont=r?"bold-italic":"bold",e.stack.env.vectorStar=r;var a=new TexParser_js_1$2.default(n,e.stack.env,e.configuration).mml();i&&(e.stack.env.font=i),delete e.stack.env.vectorFont,delete e.stack.env.vectorStar,e.configuration.nodeFactory.set("token",o),e.Push(a)},PhysicsMethods.StarMacro=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var i=e.GetStar(),a=[];if(r)for(var s=a.length;s<r;s++)a.push(e.GetArgument(t));var l=n.join(i?"*":"");l=ParseUtil_js_1$2.default.substituteArgs(e,a,l),e.string=ParseUtil_js_1$2.default.addArgs(e,l,e.string.slice(e.i)),e.i=0,ParseUtil_js_1$2.default.checkMaxMacros(e)};var vectorApplication=function(e,t,r,n,o){var i=new TexParser_js_1$2.default(n,e.stack.env,e.configuration).mml();e.Push(e.itemFactory.create(t,i));var a=e.GetNext(),s=pairs[a];if(s){var l=-1!==o.indexOf(a);if("{"===a){var c=(l?"\\left\\{":"")+" "+e.GetArgument(r)+" "+(l?"\\right\\}":"");return e.string=c+e.string.slice(e.i),void(e.i=0)}l&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:a,close:s})))}};function outputBraket(e,t,r){var n=__read$1(e,3),o=n[0],i=n[1],a=n[2];return t&&r?"\\left\\langle{".concat(o,"}\\middle\\vert{").concat(i,"}\\middle\\vert{").concat(a,"}\\right\\rangle"):t?"\\langle{".concat(o,"}\\vert{").concat(i,"}\\vert{").concat(a,"}\\rangle"):"\\left\\langle{".concat(o,"}\\right\\vert{").concat(i,"}\\left\\vert{").concat(a,"}\\right\\rangle")}function makeDiagMatrix(e,t){for(var r=e.length,n=[],o=0;o<r;o++)n.push(Array(t?r-o:o+1).join("&")+"\\mqty{"+e[o]+"}");return n.join("\\\\ ")}PhysicsMethods.OperatorApplication=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];vectorApplication(e,"fn",t,r,n)},PhysicsMethods.VectorOperator=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];vectorApplication(e,"mml",t,r,n)},PhysicsMethods.Expression=function(e,t,r,n){void 0===r&&(r=!0),void 0===n&&(n=""),n=n||t.slice(1);var o=r?e.GetBrackets(t):null,i=e.create("token","mi",{texClass:MmlNode_js_1$2.TEXCLASS.OP},n);if(o){var a=new TexParser_js_1$2.default(o,e.stack.env,e.configuration).mml();i=e.create("node","msup",[i,a])}e.Push(e.itemFactory.create("fn",i)),"("===e.GetNext()&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")"})))},PhysicsMethods.Qqtext=function(e,t,r){var n=(e.GetStar()?"":"\\quad")+"\\text{"+(r||e.GetArgument(t))+"}\\quad ";e.string=e.string.slice(0,e.i)+n+e.string.slice(e.i)},PhysicsMethods.Differential=function(e,t,r){var n=e.GetBrackets(t),o=null!=n?"^{"+n+"}":" ",i="("===e.GetNext(),a="{"===e.GetNext(),s=r+o;if(i||a)if(a){s+=e.GetArgument(t);l=new TexParser_js_1$2.default(s,e.stack.env,e.configuration).mml();e.Push(e.create("node","TeXAtom",[l],{texClass:MmlNode_js_1$2.TEXCLASS.OP}))}else e.Push(new TexParser_js_1$2.default(s,e.stack.env,e.configuration).mml()),e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")"}));else{s+=e.GetArgument(t,!0)||"";var l=new TexParser_js_1$2.default(s,e.stack.env,e.configuration).mml();e.Push(l)}},PhysicsMethods.Derivative=function(e,t,r,n){var o=e.GetStar(),i=e.GetBrackets(t),a=1,s=[];for(s.push(e.GetArgument(t));"{"===e.GetNext()&&a<r;)s.push(e.GetArgument(t)),a++;var l=!1,c=" ",u=" ";r>2&&s.length>2?(c="^{"+(s.length-1)+"}",l=!0):null!=i&&(r>2&&s.length>1&&(l=!0),u=c="^{"+i+"}");for(var d=o?"\\flatfrac":"\\frac",p=s.length>1?s[0]:"",m=s.length>1?s[1]:s[0],h="",f=2,_=void 0;_=s[f];f++)h+=n+" "+_;var g=d+"{"+n+c+p+"}{"+n+" "+m+u+" "+h+"}";e.Push(new TexParser_js_1$2.default(g,e.stack.env,e.configuration).mml()),"("===e.GetNext()&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:l})))},PhysicsMethods.Bra=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o="",i=!1,a=!1;if("\\"===e.GetNext()){var s=e.i;e.i++;var l=e.GetCS(),c=e.lookup("macro",l);c&&"ket"===c.symbol?(i=!0,s=e.i,a=e.GetStar(),"{"===e.GetNext()?o=e.GetArgument(l,!0):(e.i=s,a=!1)):e.i=s}var u="";u=i?r||a?"\\langle{".concat(n,"}\\vert{").concat(o,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(o,"}\\right\\rangle"):r||a?"\\langle{".concat(n,"}\\vert"):"\\left\\langle{".concat(n,"}\\right\\vert{").concat(o,"}"),e.Push(new TexParser_js_1$2.default(u,e.stack.env,e.configuration).mml())},PhysicsMethods.Ket=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=r?"\\vert{".concat(n,"}\\rangle"):"\\left\\vert{".concat(n,"}\\right\\rangle");e.Push(new TexParser_js_1$2.default(o,e.stack.env,e.configuration).mml())},PhysicsMethods.BraKet=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=null;"{"===e.GetNext()&&(o=e.GetArgument(t,!0));var i="";i=null==o?r?"\\langle{".concat(n,"}\\vert{").concat(n,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(n,"}\\right\\rangle"):r?"\\langle{".concat(n,"}\\vert{").concat(o,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(o,"}\\right\\rangle"),e.Push(new TexParser_js_1$2.default(i,e.stack.env,e.configuration).mml())},PhysicsMethods.KetBra=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=null;"{"===e.GetNext()&&(o=e.GetArgument(t,!0));var i="";i=null==o?r?"\\vert{".concat(n,"}\\rangle\\!\\langle{").concat(n,"}\\vert"):"\\left\\vert{".concat(n,"}\\middle\\rangle\\!\\middle\\langle{").concat(n,"}\\right\\vert"):r?"\\vert{".concat(n,"}\\rangle\\!\\langle{").concat(o,"}\\vert"):"\\left\\vert{".concat(n,"}\\middle\\rangle\\!\\middle\\langle{").concat(o,"}\\right\\vert"),e.Push(new TexParser_js_1$2.default(i,e.stack.env,e.configuration).mml())},PhysicsMethods.Expectation=function(e,t){var r=e.GetStar(),n=r&&e.GetStar(),o=e.GetArgument(t),i=null;"{"===e.GetNext()&&(i=e.GetArgument(t,!0));var a=o&&i?outputBraket([i,o,i],r,n):r?"\\langle {".concat(o,"} \\rangle"):"\\left\\langle {".concat(o,"} \\right\\rangle");e.Push(new TexParser_js_1$2.default(a,e.stack.env,e.configuration).mml())},PhysicsMethods.MatrixElement=function(e,t){var r=e.GetStar(),n=r&&e.GetStar(),o=outputBraket([e.GetArgument(t),e.GetArgument(t),e.GetArgument(t)],r,n);e.Push(new TexParser_js_1$2.default(o,e.stack.env,e.configuration).mml())},PhysicsMethods.MatrixQuantity=function(e,t,r){var n=e.GetStar(),o=r?"smallmatrix":"array",i="",a="",s="";switch(e.GetNext()){case"{":i=e.GetArgument(t);break;case"(":e.i++,a=n?"\\lgroup":"(",s=n?"\\rgroup":")",i=e.GetUpTo(t,")");break;case"[":e.i++,a="[",s="]",i=e.GetUpTo(t,"]");break;case"|":e.i++,a="|",s="|",i=e.GetUpTo(t,"|");break;default:a="(",s=")"}var l=(a?"\\left":"")+a+"\\begin{"+o+"}{} "+i+"\\end{"+o+"}"+(a?"\\right":"")+s;e.Push(new TexParser_js_1$2.default(l,e.stack.env,e.configuration).mml())},PhysicsMethods.IdentityMatrix=function(e,t){var r=e.GetArgument(t),n=parseInt(r,10);if(isNaN(n))throw new TexError_js_1$1.default("InvalidNumber","Invalid number");if(n<=1)return e.string="1"+e.string.slice(e.i),void(e.i=0);for(var o=Array(n).fill("0"),i=[],a=0;a<n;a++){var s=o.slice();s[a]="1",i.push(s.join(" & "))}e.string=i.join("\\\\ ")+e.string.slice(e.i),e.i=0},PhysicsMethods.XMatrix=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=e.GetArgument(t),i=e.GetArgument(t),a=parseInt(o,10),s=parseInt(i,10);if(isNaN(a)||isNaN(s)||s.toString()!==i||a.toString()!==o)throw new TexError_js_1$1.default("InvalidNumber","Invalid number");if(a=a<1?1:a,s=s<1?1:s,!r){var l=Array(s).fill(n).join(" & "),c=Array(a).fill(l).join("\\\\ ");return e.string=c+e.string.slice(e.i),void(e.i=0)}var u="";if(1===a&&1===s)u=n;else if(1===a){l=[];for(var d=1;d<=s;d++)l.push("".concat(n,"_{").concat(d,"}"));u=l.join(" & ")}else if(1===s){for(l=[],d=1;d<=a;d++)l.push("".concat(n,"_{").concat(d,"}"));u=l.join("\\\\ ")}else{var p=[];for(d=1;d<=a;d++){l=[];for(var m=1;m<=s;m++)l.push("".concat(n,"_{{").concat(d,"}{").concat(m,"}}"));p.push(l.join(" & "))}u=p.join("\\\\ ")}e.string=u+e.string.slice(e.i),e.i=0},PhysicsMethods.PauliMatrix=function(e,t){var r=e.GetArgument(t),n=r.slice(1);switch(r[0]){case"0":n+=" 1 & 0\\\\ 0 & 1";break;case"1":case"x":n+=" 0 & 1\\\\ 1 & 0";break;case"2":case"y":n+=" 0 & -i\\\\ i & 0";break;case"3":case"z":n+=" 1 & 0\\\\ 0 & -1"}e.string=n+e.string.slice(e.i),e.i=0},PhysicsMethods.DiagonalMatrix=function(e,t,r){if("{"===e.GetNext()){var n=e.i;e.GetArgument(t);var o=e.i;e.i=n+1;for(var i=[],a="",s=e.i;s<o;){try{a=e.GetUpTo(t,",")}catch(t){e.i=o,i.push(e.string.slice(s,o-1));break}if(e.i>=o){i.push(e.string.slice(s,o));break}s=e.i,i.push(a)}e.string=makeDiagMatrix(i,r)+e.string.slice(o),e.i=0}},PhysicsMethods.AutoClose=function(e,t,r){var n=e.create("token","mo",{stretchy:!1},t),o=e.itemFactory.create("mml",n).setProperties({autoclose:t});e.Push(o)},PhysicsMethods.Vnabla=function(e,t){var r=e.options.physics.arrowdel?"\\vec{\\gradientnabla}":"{\\gradientnabla}";return e.Push(new TexParser_js_1$2.default(r,e.stack.env,e.configuration).mml())},PhysicsMethods.DiffD=function(e,t){var r=e.options.physics.italicdiff?"d":"{\\rm d}";return e.Push(new TexParser_js_1$2.default(r,e.stack.env,e.configuration).mml())},PhysicsMethods.Macro=BaseMethods_js_1$1.default.Macro,PhysicsMethods.NamedFn=BaseMethods_js_1$1.default.NamedFn,PhysicsMethods.Array=BaseMethods_js_1$1.default.Array,PhysicsMethods$1.default=PhysicsMethods;var __importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PhysicsMappings,"__esModule",{value:!0});var SymbolMap_js_1$3=SymbolMap,PhysicsMethods_js_1=__importDefault$4(PhysicsMethods$1),TexConstants_js_1$3=TexConstants,ParseMethods_js_1=__importDefault$4(ParseMethods$1),MmlNode_js_1$1=MmlNode,_a$1;new SymbolMap_js_1$3.CommandMap("Physics-automatic-bracing-macros",{quantity:"Quantity",qty:"Quantity",pqty:["Quantity","(",")",!0],bqty:["Quantity","[","]",!0],vqty:["Quantity","|","|",!0],Bqty:["Quantity","\\{","\\}",!0],absolutevalue:["Quantity","|","|",!0],abs:["Quantity","|","|",!0],norm:["Quantity","\\|","\\|",!0],evaluated:"Eval",eval:"Eval",order:["Quantity","(",")",!0,"O",TexConstants_js_1$3.TexConstant.Variant.CALLIGRAPHIC],commutator:"Commutator",comm:"Commutator",anticommutator:["Commutator","\\{","\\}"],acomm:["Commutator","\\{","\\}"],poissonbracket:["Commutator","\\{","\\}"],pb:["Commutator","\\{","\\}"]},PhysicsMethods_js_1.default),new SymbolMap_js_1$3.CharacterMap("Physics-vector-mo",ParseMethods_js_1.default.mathchar0mo,{dotproduct:["⋅",{mathvariant:TexConstants_js_1$3.TexConstant.Variant.BOLD}],vdot:["⋅",{mathvariant:TexConstants_js_1$3.TexConstant.Variant.BOLD}],crossproduct:"×",cross:"×",cp:"×",gradientnabla:["∇",{mathvariant:TexConstants_js_1$3.TexConstant.Variant.BOLD}]}),new SymbolMap_js_1$3.CharacterMap("Physics-vector-mi",ParseMethods_js_1.default.mathchar0mi,{real:["ℜ",{mathvariant:TexConstants_js_1$3.TexConstant.Variant.NORMAL}],imaginary:["ℑ",{mathvariant:TexConstants_js_1$3.TexConstant.Variant.NORMAL}]}),new SymbolMap_js_1$3.CommandMap("Physics-vector-macros",{vnabla:"Vnabla",vectorbold:"VectorBold",vb:"VectorBold",vectorarrow:["StarMacro",1,"\\vec{\\vb","{#1}}"],va:["StarMacro",1,"\\vec{\\vb","{#1}}"],vectorunit:["StarMacro",1,"\\hat{\\vb","{#1}}"],vu:["StarMacro",1,"\\hat{\\vb","{#1}}"],gradient:["OperatorApplication","\\vnabla","(","["],grad:["OperatorApplication","\\vnabla","(","["],divergence:["VectorOperator","\\vnabla\\vdot","(","["],div:["VectorOperator","\\vnabla\\vdot","(","["],curl:["VectorOperator","\\vnabla\\crossproduct","(","["],laplacian:["OperatorApplication","\\nabla^2","(","["]},PhysicsMethods_js_1.default),new SymbolMap_js_1$3.CommandMap("Physics-expressions-macros",{sin:"Expression",sinh:"Expression",arcsin:"Expression",asin:"Expression",cos:"Expression",cosh:"Expression",arccos:"Expression",acos:"Expression",tan:"Expression",tanh:"Expression",arctan:"Expression",atan:"Expression",csc:"Expression",csch:"Expression",arccsc:"Expression",acsc:"Expression",sec:"Expression",sech:"Expression",arcsec:"Expression",asec:"Expression",cot:"Expression",coth:"Expression",arccot:"Expression",acot:"Expression",exp:["Expression",!1],log:"Expression",ln:"Expression",det:["Expression",!1],Pr:["Expression",!1],tr:["Expression",!1],trace:["Expression",!1,"tr"],Tr:["Expression",!1],Trace:["Expression",!1,"Tr"],rank:"NamedFn",erf:["Expression",!1],Residue:["Macro","\\mathrm{Res}"],Res:["OperatorApplication","\\Residue","(","[","{"],principalvalue:["OperatorApplication","{\\cal P}"],pv:["OperatorApplication","{\\cal P}"],PV:["OperatorApplication","{\\rm P.V.}"],Re:["OperatorApplication","\\mathrm{Re}","{"],Im:["OperatorApplication","\\mathrm{Im}","{"],sine:["NamedFn","sin"],hypsine:["NamedFn","sinh"],arcsine:["NamedFn","arcsin"],asine:["NamedFn","asin"],cosine:["NamedFn","cos"],hypcosine:["NamedFn","cosh"],arccosine:["NamedFn","arccos"],acosine:["NamedFn","acos"],tangent:["NamedFn","tan"],hyptangent:["NamedFn","tanh"],arctangent:["NamedFn","arctan"],atangent:["NamedFn","atan"],cosecant:["NamedFn","csc"],hypcosecant:["NamedFn","csch"],arccosecant:["NamedFn","arccsc"],acosecant:["NamedFn","acsc"],secant:["NamedFn","sec"],hypsecant:["NamedFn","sech"],arcsecant:["NamedFn","arcsec"],asecant:["NamedFn","asec"],cotangent:["NamedFn","cot"],hypcotangent:["NamedFn","coth"],arccotangent:["NamedFn","arccot"],acotangent:["NamedFn","acot"],exponential:["NamedFn","exp"],logarithm:["NamedFn","log"],naturallogarithm:["NamedFn","ln"],determinant:["NamedFn","det"],Probability:["NamedFn","Pr"]},PhysicsMethods_js_1.default),new SymbolMap_js_1$3.CommandMap("Physics-quick-quad-macros",{qqtext:"Qqtext",qq:"Qqtext",qcomma:["Macro","\\qqtext*{,}"],qc:["Macro","\\qqtext*{,}"],qcc:["Qqtext","c.c."],qif:["Qqtext","if"],qthen:["Qqtext","then"],qelse:["Qqtext","else"],qotherwise:["Qqtext","otherwise"],qunless:["Qqtext","unless"],qgiven:["Qqtext","given"],qusing:["Qqtext","using"],qassume:["Qqtext","assume"],qsince:["Qqtext","since"],qlet:["Qqtext","let"],qfor:["Qqtext","for"],qall:["Qqtext","all"],qeven:["Qqtext","even"],qodd:["Qqtext","odd"],qinteger:["Qqtext","integer"],qand:["Qqtext","and"],qor:["Qqtext","or"],qas:["Qqtext","as"],qin:["Qqtext","in"]},PhysicsMethods_js_1.default),new SymbolMap_js_1$3.CommandMap("Physics-derivative-macros",{diffd:"DiffD",flatfrac:["Macro","\\left.#1\\middle/#2\\right.",2],differential:["Differential","\\diffd"],dd:["Differential","\\diffd"],variation:["Differential","\\delta"],var:["Differential","\\delta"],derivative:["Derivative",2,"\\diffd"],dv:["Derivative",2,"\\diffd"],partialderivative:["Derivative",3,"\\partial"],pderivative:["Derivative",3,"\\partial"],pdv:["Derivative",3,"\\partial"],functionalderivative:["Derivative",2,"\\delta"],fderivative:["Derivative",2,"\\delta"],fdv:["Derivative",2,"\\delta"]},PhysicsMethods_js_1.default),new SymbolMap_js_1$3.CommandMap("Physics-bra-ket-macros",{bra:"Bra",ket:"Ket",innerproduct:"BraKet",ip:"BraKet",braket:"BraKet",outerproduct:"KetBra",dyad:"KetBra",ketbra:"KetBra",op:"KetBra",expectationvalue:"Expectation",expval:"Expectation",ev:"Expectation",matrixelement:"MatrixElement",matrixel:"MatrixElement",mel:"MatrixElement"},PhysicsMethods_js_1.default),new SymbolMap_js_1$3.CommandMap("Physics-matrix-macros",{matrixquantity:"MatrixQuantity",mqty:"MatrixQuantity",pmqty:["Macro","\\mqty(#1)",1],Pmqty:["Macro","\\mqty*(#1)",1],bmqty:["Macro","\\mqty[#1]",1],vmqty:["Macro","\\mqty|#1|",1],smallmatrixquantity:["MatrixQuantity",!0],smqty:["MatrixQuantity",!0],spmqty:["Macro","\\smqty(#1)",1],sPmqty:["Macro","\\smqty*(#1)",1],sbmqty:["Macro","\\smqty[#1]",1],svmqty:["Macro","\\smqty|#1|",1],matrixdeterminant:["Macro","\\vmqty{#1}",1],mdet:["Macro","\\vmqty{#1}",1],smdet:["Macro","\\svmqty{#1}",1],identitymatrix:"IdentityMatrix",imat:"IdentityMatrix",xmatrix:"XMatrix",xmat:"XMatrix",zeromatrix:["Macro","\\xmat{0}{#1}{#2}",2],zmat:["Macro","\\xmat{0}{#1}{#2}",2],paulimatrix:"PauliMatrix",pmat:"PauliMatrix",diagonalmatrix:"DiagonalMatrix",dmat:"DiagonalMatrix",antidiagonalmatrix:["DiagonalMatrix",!0],admat:["DiagonalMatrix",!0]},PhysicsMethods_js_1.default),new SymbolMap_js_1$3.EnvironmentMap("Physics-aux-envs",ParseMethods_js_1.default.environment,{smallmatrix:["Array",null,null,null,"c","0.333em",".2em","S",1]},PhysicsMethods_js_1.default),new SymbolMap_js_1$3.MacroMap("Physics-characters",{"|":["AutoClose",MmlNode_js_1$1.TEXCLASS.ORD],")":"AutoClose","]":"AutoClose"},PhysicsMethods_js_1.default),Object.defineProperty(PhysicsConfiguration,"__esModule",{value:!0}),PhysicsConfiguration.PhysicsConfiguration=void 0;var Configuration_js_1$4=Configuration,PhysicsItems_js_1=PhysicsItems;PhysicsConfiguration.PhysicsConfiguration=Configuration_js_1$4.Configuration.create("physics",{handler:{macro:["Physics-automatic-bracing-macros","Physics-vector-macros","Physics-vector-mo","Physics-vector-mi","Physics-derivative-macros","Physics-expressions-macros","Physics-quick-quad-macros","Physics-bra-ket-macros","Physics-matrix-macros"],character:["Physics-characters"],environment:["Physics-aux-envs"]},items:(_a$1={},_a$1[PhysicsItems_js_1.AutoOpen.prototype.kind]=PhysicsItems_js_1.AutoOpen,_a$1),options:{physics:{italicdiff:!1,arrowdel:!1}}});var SetOptionsConfiguration={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetOptionsConfiguration=e.SetOptionsUtil=void 0;var n=Configuration,o=SymbolMap,i=r(TexError$1),a=r(ParseUtil$1),s=_Symbol,l=r(BaseMethods$1),c=Options;e.SetOptionsUtil={filterPackage:function(e,t){if("tex"!==t&&!n.ConfigurationHandler.get(t))throw new i.default("NotAPackage","Not a defined package: %1",t);var r=e.options.setoptions,o=r.allowOptions[t];if(void 0===o&&!r.allowPackageDefault||!1===o)throw new i.default("PackageNotSettable",'Options can\'t be set for package "%1"',t);return!0},filterOption:function(e,t,r){var n,o=e.options.setoptions,a=o.allowOptions[t]||{},s=a.hasOwnProperty(r)&&!(0,c.isObject)(a[r])?a[r]:null;if(!1===s||null===s&&!o.allowOptionsDefault)throw new i.default("OptionNotSettable",'Option "%1" is not allowed to be set',r);if(!(null===(n="tex"===t?e.options:e.options[t])||void 0===n?void 0:n.hasOwnProperty(r)))throw"tex"===t?new i.default("InvalidTexOption",'Invalid TeX option "%1"',r):new i.default("InvalidOptionKey",'Invalid option "%1" for package "%2"',r,t);return!0},filterValue:function(e,t,r,n){return n}};var u=new o.CommandMap("setoptions",{setOptions:"SetOptions"},{SetOptions:function(e,r){var n,o,i=e.GetBrackets(r)||"tex",s=a.default.keyvalOptions(e.GetArgument(r)),l=e.options.setoptions;if(l.filterPackage(e,i))try{for(var c=t(Object.keys(s)),u=c.next();!u.done;u=c.next()){var d=u.value;l.filterOption(e,i,d)&&(("tex"===i?e.options:e.options[i])[d]=l.filterValue(e,i,d,s[d]))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}});e.SetOptionsConfiguration=n.Configuration.create("setoptions",{handler:{macro:["setoptions"]},config:function(e,t){var r=t.parseOptions.handlers.get("macro").lookup("require");r&&(u.add("Require",new s.Macro("Require",r._func)),u.add("require",new s.Macro("require",l.default.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""])))},priority:3,options:{setoptions:{filterPackage:e.SetOptionsUtil.filterPackage,filterOption:e.SetOptionsUtil.filterOption,filterValue:e.SetOptionsUtil.filterValue,allowPackageDefault:!0,allowOptionsDefault:!0,allowOptions:(0,c.expandable)({tex:{FindTeX:!1,formatError:!1,package:!1,baseURL:!1,tags:!1,maxBuffer:!1,maxMaxros:!1,macros:!1,environments:!1},setoptions:!1,autoload:!1,require:!1,configmacros:!1,tagformat:!1})}}})}(SetOptionsConfiguration),getDefaultExportFromCjs$1(SetOptionsConfiguration);var TagFormatConfiguration={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(TagFormatConfiguration,"__esModule",{value:!0}),TagFormatConfiguration.TagFormatConfiguration=TagFormatConfiguration.tagformatConfig=void 0;var Configuration_js_1$3=Configuration,Tags_js_1$1=Tags,tagID=0;function tagformatConfig(e,t){var r=t.parseOptions.options.tags;"base"!==r&&e.tags.hasOwnProperty(r)&&Tags_js_1$1.TagsFactory.add(r,e.tags[r]);var n=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends$1(r,e),r.prototype.formatNumber=function(e){return t.parseOptions.options.tagformat.number(e)},r.prototype.formatTag=function(e){return t.parseOptions.options.tagformat.tag(e)},r.prototype.formatId=function(e){return t.parseOptions.options.tagformat.id(e)},r.prototype.formatUrl=function(e,r){return t.parseOptions.options.tagformat.url(e,r)},r}(Tags_js_1$1.TagsFactory.create(t.parseOptions.options.tags).constructor),o="configTags-"+ ++tagID;Tags_js_1$1.TagsFactory.add(o,n),t.parseOptions.options.tags=o}TagFormatConfiguration.tagformatConfig=tagformatConfig,TagFormatConfiguration.TagFormatConfiguration=Configuration_js_1$3.Configuration.create("tagformat",{config:[tagformatConfig,10],options:{tagformat:{number:function(e){return e.toString()},tag:function(e){return"("+e+")"},id:function(e){return"mjx-eqn:"+e.replace(/\s/g,"_")},url:function(e,t){return t+"#"+encodeURIComponent(e)}}}});var TextcompConfiguration={},TextcompMappings={},TextMacrosMethods={},__importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TextMacrosMethods,"__esModule",{value:!0}),TextMacrosMethods.TextMacrosMethods=void 0;var TexParser_js_1$1=__importDefault$3(TexParser$1),Retries_js_1=Retries,BaseMethods_js_1=__importDefault$3(BaseMethods$1);TextMacrosMethods.TextMacrosMethods={Comment:function(e,t){for(;e.i<e.string.length&&"\n"!==e.string.charAt(e.i);)e.i++;e.i++},Math:function(e,t){e.saveText();for(var r,n,o=e.i,i=0;n=e.GetNext();)switch(r=e.i++,n){case"\\":")"===e.GetCS()&&(n="\\(");case"$":if(0===i&&t===n){var a=e.texParser.configuration,s=new TexParser_js_1$1.default(e.string.substr(o,r-o),e.stack.env,a).mml();return void e.PushMath(s)}break;case"{":i++;break;case"}":0===i&&e.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),i--}e.Error("MathNotTerminated","Math-mode is not properly terminated")},MathModeOnly:function(e,t){e.Error("MathModeOnly","'%1' allowed only in math mode",t)},Misplaced:function(e,t){e.Error("Misplaced","'%1' can not be used here",t)},OpenBrace:function(e,t){var r=e.stack.env;e.envStack.push(r),e.stack.env=Object.assign({},r)},CloseBrace:function(e,t){e.envStack.length?(e.saveText(),e.stack.env=e.envStack.pop()):e.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote:function(e,t){e.string.charAt(e.i)===t?(e.text+="“",e.i++):e.text+="‘"},CloseQuote:function(e,t){e.string.charAt(e.i)===t?(e.text+="”",e.i++):e.text+="’"},Tilde:function(e,t){e.text+=" "},Space:function(e,t){for(e.text+=" ";e.GetNext().match(/\s/);)e.i++},SelfQuote:function(e,t){e.text+=t.substr(1)},Insert:function(e,t,r){e.text+=r},Accent:function(e,t,r){var n=e.ParseArg(t),o=e.create("token","mo",{},r);e.addAttributes(o),e.Push(e.create("node","mover",[n,o]))},Emph:function(e,t){var r="-tex-mathit"===e.stack.env.mathvariant?"normal":"-tex-mathit";e.Push(e.ParseTextArg(t,{mathvariant:r}))},SetFont:function(e,t,r){e.saveText(),e.stack.env.mathvariant=r},SetSize:function(e,t,r){e.saveText(),e.stack.env.mathsize=r},CheckAutoload:function(e,t){var r=e.configuration.packageData.get("autoload"),n=e.texParser;t=t.slice(1);var o=n.lookup("macro",t);if(!o||r&&o._func===r.Autoload){if(n.parse("macro",[n,t]),!o)return;(0,Retries_js_1.retryAfter)(Promise.resolve())}n.parse("macro",[e,t])},Macro:BaseMethods_js_1.default.Macro,Spacer:BaseMethods_js_1.default.Spacer,Hskip:BaseMethods_js_1.default.Hskip,rule:BaseMethods_js_1.default.rule,Rule:BaseMethods_js_1.default.Rule,HandleRef:BaseMethods_js_1.default.HandleRef};var TextParser$1={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__values=commonjsGlobal&&commonjsGlobal.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=commonjsGlobal&&commonjsGlobal.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TextParser$1,"__esModule",{value:!0}),TextParser$1.TextParser=void 0;var TexParser_js_1=__importDefault$2(TexParser$1),TexError_js_1=__importDefault$2(TexError$1),ParseUtil_js_1$1=__importDefault$2(ParseUtil$1),MmlNode_js_1=MmlNode,NodeUtil_js_1=__importDefault$2(NodeUtil$1),BaseItems_js_1$1=BaseItems,TextParser=function(e){function t(t,r,n,o){var i=e.call(this,t,r,n)||this;return i.level=o,i}return __extends(t,e),Object.defineProperty(t.prototype,"texParser",{get:function(){return this.configuration.packageData.get("textmacros").texParser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tags",{get:function(){return this.texParser.tags},enumerable:!1,configurable:!0}),t.prototype.mml=function(){return null!=this.level?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):1===this.nodes.length?this.nodes[0]:this.create("node","mrow",this.nodes)},t.prototype.Parse=function(){this.text="",this.nodes=[],this.envStack=[],e.prototype.Parse.call(this)},t.prototype.saveText=function(){if(this.text){var e=this.stack.env.mathvariant,t=ParseUtil_js_1$1.default.internalText(this,this.text,e?{mathvariant:e}:{});this.text="",this.Push(t)}},t.prototype.Push=function(t){if(this.text&&this.saveText(),t instanceof BaseItems_js_1$1.StopItem)return e.prototype.Push.call(this,t);t instanceof BaseItems_js_1$1.StyleItem?this.stack.env.mathcolor=this.stack.env.color:t instanceof MmlNode_js_1.AbstractMmlNode&&(this.addAttributes(t),this.nodes.push(t))},t.prototype.PushMath=function(e){var t,r,n=this.stack.env;e.isKind("TeXAtom")||(e=this.create("node","TeXAtom",[e]));try{for(var o=__values(["mathsize","mathcolor"]),i=o.next();!i.done;i=o.next()){var a=i.value;n[a]&&!e.attributes.getExplicit(a)&&(e.isToken||e.isKind("mstyle")||(e=this.create("node","mstyle",[e])),NodeUtil_js_1.default.setAttribute(e,a,n[a]))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}e.isInferred&&(e=this.create("node","mrow",e.childNodes)),this.nodes.push(e)},t.prototype.addAttributes=function(e){var t,r,n=this.stack.env;if(e.isToken)try{for(var o=__values(["mathsize","mathcolor","mathvariant"]),i=o.next();!i.done;i=o.next()){var a=i.value;n[a]&&!e.attributes.getExplicit(a)&&NodeUtil_js_1.default.setAttribute(e,a,n[a])}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},t.prototype.ParseTextArg=function(e,r){return new t(this.GetArgument(e),r=Object.assign(Object.assign({},this.stack.env),r),this.configuration).mml()},t.prototype.ParseArg=function(e){return new t(this.GetArgument(e),this.stack.env,this.configuration).mml()},t.prototype.Error=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];throw new(TexError_js_1.default.bind.apply(TexError_js_1.default,__spreadArray([void 0,e,t],__read(r),!1)))},t}(TexParser_js_1.default);TextParser$1.TextParser=TextParser;var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TextcompMappings,"__esModule",{value:!0});var SymbolMap_js_1$2=SymbolMap,TexConstants_js_1$2=TexConstants,TextMacrosMethods_js_1$2=TextMacrosMethods,ParseUtil_js_1=__importDefault$1(ParseUtil$1),TextParser_js_1$1=TextParser$1;new SymbolMap_js_1$2.CommandMap("textcomp-macros",{textasciicircum:["Insert","^"],textasciitilde:["Insert","~"],textasteriskcentered:["Insert","*"],textbackslash:["Insert","\\"],textbar:["Insert","|"],textbraceleft:["Insert","{"],textbraceright:["Insert","}"],textbullet:["Insert","•"],textdagger:["Insert","†"],textdaggerdbl:["Insert","‡"],textellipsis:["Insert","…"],textemdash:["Insert","—"],textendash:["Insert","–"],textexclamdown:["Insert","¡"],textgreater:["Insert",">"],textless:["Insert","<"],textordfeminine:["Insert","ª"],textordmasculine:["Insert","º"],textparagraph:["Insert","¶"],textperiodcentered:["Insert","·"],textquestiondown:["Insert","¿"],textquotedblleft:["Insert","“"],textquotedblright:["Insert","”"],textquoteleft:["Insert","‘"],textquoteright:["Insert","’"],textsection:["Insert","§"],textunderscore:["Insert","_"],textvisiblespace:["Insert","␣"],textacutedbl:["Insert","˝"],textasciiacute:["Insert","´"],textasciibreve:["Insert","˘"],textasciicaron:["Insert","ˇ"],textasciidieresis:["Insert","¨"],textasciimacron:["Insert","¯"],textgravedbl:["Insert","˵"],texttildelow:["Insert","˷"],textbaht:["Insert","฿"],textcent:["Insert","¢"],textcolonmonetary:["Insert","₡"],textcurrency:["Insert","¤"],textdollar:["Insert","$"],textdong:["Insert","₫"],texteuro:["Insert","€"],textflorin:["Insert","ƒ"],textguarani:["Insert","₲"],textlira:["Insert","₤"],textnaira:["Insert","₦"],textpeso:["Insert","₱"],textsterling:["Insert","£"],textwon:["Insert","₩"],textyen:["Insert","¥"],textcircledP:["Insert","℗"],textcompwordmark:["Insert",""],textcopyleft:["Insert","🄯"],textcopyright:["Insert","©"],textregistered:["Insert","®"],textservicemark:["Insert","℠"],texttrademark:["Insert","™"],textbardbl:["Insert","‖"],textbigcircle:["Insert","◯"],textblank:["Insert","␢"],textbrokenbar:["Insert","¦"],textdiscount:["Insert","⁒"],textestimated:["Insert","℮"],textinterrobang:["Insert","‽"],textinterrobangdown:["Insert","⸘"],textmusicalnote:["Insert","♪"],textnumero:["Insert","№"],textopenbullet:["Insert","◦"],textpertenthousand:["Insert","‱"],textperthousand:["Insert","‰"],textrecipe:["Insert","℞"],textreferencemark:["Insert","※"],textlangle:["Insert","〈"],textrangle:["Insert","〉"],textlbrackdbl:["Insert","⟦"],textrbrackdbl:["Insert","⟧"],textlquill:["Insert","⁅"],textrquill:["Insert","⁆"],textcelsius:["Insert","℃"],textdegree:["Insert","°"],textdiv:["Insert","÷"],textdownarrow:["Insert","↓"],textfractionsolidus:["Insert","⁄"],textleftarrow:["Insert","←"],textlnot:["Insert","¬"],textmho:["Insert","℧"],textminus:["Insert","−"],textmu:["Insert","µ"],textohm:["Insert","Ω"],textonehalf:["Insert","½"],textonequarter:["Insert","¼"],textonesuperior:["Insert","¹"],textpm:["Insert","±"],textrightarrow:["Insert","→"],textsurd:["Insert","√"],textthreequarters:["Insert","¾"],textthreesuperior:["Insert","³"],texttimes:["Insert","×"],texttwosuperior:["Insert","²"],textuparrow:["Insert","↑"],textborn:["Insert","*"],textdied:["Insert","†"],textdivorced:["Insert","⚮"],textmarried:["Insert","⚭"],textcentoldstyle:["Insert","¢",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:["Insert","$",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textzerooldstyle:["Insert","0",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textoneoldstyle:["Insert","1",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],texttwooldstyle:["Insert","2",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:["Insert","3",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textfouroldstyle:["Insert","4",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:["Insert","5",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textsixoldstyle:["Insert","6",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:["Insert","7",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],texteightoldstyle:["Insert","8",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE],textnineoldstyle:["Insert","9",TexConstants_js_1$2.TexConstant.Variant.OLDSTYLE]},{Insert:function(e,t,r,n){if(e instanceof TextParser_js_1$1.TextParser){if(!n)return void TextMacrosMethods_js_1$2.TextMacrosMethods.Insert(e,t,r);e.saveText()}e.Push(ParseUtil_js_1.default.internalText(e,r,n?{mathvariant:n}:{}))}}),Object.defineProperty(TextcompConfiguration,"__esModule",{value:!0}),TextcompConfiguration.TextcompConfiguration=void 0;var Configuration_js_1$2=Configuration;TextcompConfiguration.TextcompConfiguration=Configuration_js_1$2.Configuration.create("textcomp",{handler:{macro:["textcomp-macros"]}});var TextMacrosConfiguration={},TextMacrosMappings={};Object.defineProperty(TextMacrosMappings,"__esModule",{value:!0});var SymbolMap_js_1$1=SymbolMap,TexConstants_js_1$1=TexConstants,TextMacrosMethods_js_1$1=TextMacrosMethods,lengths_js_1=lengths;new SymbolMap_js_1$1.MacroMap("text-special",{$:"Math","%":"Comment","^":"MathModeOnly",_:"MathModeOnly","&":"Misplaced","#":"Misplaced","~":"Tilde"," ":"Space","\t":"Space","\r":"Space","\n":"Space"," ":"Tilde","{":"OpenBrace","}":"CloseBrace","`":"OpenQuote","'":"CloseQuote"},TextMacrosMethods_js_1$1.TextMacrosMethods),new SymbolMap_js_1$1.CommandMap("text-macros",{"(":"Math",$:"SelfQuote",_:"SelfQuote","%":"SelfQuote","{":"SelfQuote","}":"SelfQuote"," ":"SelfQuote","&":"SelfQuote","#":"SelfQuote","\\":"SelfQuote","'":["Accent","´"],"’":["Accent","´"],"`":["Accent","`"],"‘":["Accent","`"],"^":["Accent","^"],'"':["Accent","¨"],"~":["Accent","~"],"=":["Accent","¯"],".":["Accent","˙"],u:["Accent","˘"],v:["Accent","ˇ"],emph:"Emph",rm:["SetFont",TexConstants_js_1$1.TexConstant.Variant.NORMAL],mit:["SetFont",TexConstants_js_1$1.TexConstant.Variant.ITALIC],oldstyle:["SetFont",TexConstants_js_1$1.TexConstant.Variant.OLDSTYLE],cal:["SetFont",TexConstants_js_1$1.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",TexConstants_js_1$1.TexConstant.Variant.BOLD],bbFont:["SetFont",TexConstants_js_1$1.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",TexConstants_js_1$1.TexConstant.Variant.SCRIPT],frak:["SetFont",TexConstants_js_1$1.TexConstant.Variant.FRAKTUR],sf:["SetFont",TexConstants_js_1$1.TexConstant.Variant.SANSSERIF],tt:["SetFont",TexConstants_js_1$1.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],Bbb:["Macro","{\\bbFont #1}",1],textnormal:["Macro","{\\rm #1}",1],textup:["Macro","{\\rm #1}",1],textrm:["Macro","{\\rm #1}",1],textit:["Macro","{\\it #1}",1],textbf:["Macro","{\\bf #1}",1],textsf:["Macro","{\\sf #1}",1],texttt:["Macro","{\\tt #1}",1],dagger:["Insert","†"],ddagger:["Insert","‡"],S:["Insert","§"],",":["Spacer",lengths_js_1.MATHSPACE.thinmathspace],":":["Spacer",lengths_js_1.MATHSPACE.mediummathspace],">":["Spacer",lengths_js_1.MATHSPACE.mediummathspace],";":["Spacer",lengths_js_1.MATHSPACE.thickmathspace],"!":["Spacer",lengths_js_1.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",lengths_js_1.MATHSPACE.thinmathspace],negthinspace:["Spacer",lengths_js_1.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],color:"CheckAutoload",textcolor:"CheckAutoload",colorbox:"CheckAutoload",fcolorbox:"CheckAutoload",href:"CheckAutoload",style:"CheckAutoload",class:"CheckAutoload",cssId:"CheckAutoload",unicode:"CheckAutoload",ref:["HandleRef",!1],eqref:["HandleRef",!0]},TextMacrosMethods_js_1$1.TextMacrosMethods);var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_a;Object.defineProperty(TextMacrosConfiguration,"__esModule",{value:!0}),TextMacrosConfiguration.TextMacrosConfiguration=TextMacrosConfiguration.TextBaseConfiguration=void 0;var Configuration_js_1$1=Configuration,ParseOptions_js_1=__importDefault(ParseOptions$1),Tags_js_1=Tags,BaseItems_js_1=BaseItems,TextParser_js_1=TextParser$1,TextMacrosMethods_js_1=TextMacrosMethods;function internalMath(e,t,r,n){var o=e.configuration.packageData.get("textmacros");return e instanceof TextParser_js_1.TextParser||(o.texParser=e),[new TextParser_js_1.TextParser(t,n?{mathvariant:n}:{},o.parseOptions,r).mml()]}TextMacrosConfiguration.TextBaseConfiguration=Configuration_js_1$1.Configuration.create("text-base",{parser:"text",handler:{character:["command","text-special"],macro:["text-macros"]},fallback:{character:function(e,t){e.text+=t},macro:function(e,t){var r=e.texParser,n=r.lookup("macro",t);n&&n._func!==TextMacrosMethods_js_1.TextMacrosMethods.Macro&&e.Error("MathMacro","%1 is only supported in math mode","\\"+t),r.parse("macro",[e,t])}},items:(_a={},_a[BaseItems_js_1.StartItem.prototype.kind]=BaseItems_js_1.StartItem,_a[BaseItems_js_1.StopItem.prototype.kind]=BaseItems_js_1.StopItem,_a[BaseItems_js_1.MmlItem.prototype.kind]=BaseItems_js_1.MmlItem,_a[BaseItems_js_1.StyleItem.prototype.kind]=BaseItems_js_1.StyleItem,_a)}),TextMacrosConfiguration.TextMacrosConfiguration=Configuration_js_1$1.Configuration.create("textmacros",{config:function(e,t){var r=new Configuration_js_1$1.ParserConfiguration(t.parseOptions.options.textmacros.packages,["tex","text"]);r.init();var n=new ParseOptions_js_1.default(r,[]);n.options=t.parseOptions.options,r.config(t),Tags_js_1.TagsFactory.addTags(r.tags),n.tags=Tags_js_1.TagsFactory.getDefault(),n.tags.configuration=n,n.packageData=t.parseOptions.packageData,n.packageData.set("textmacros",{parseOptions:n,jax:t,texParser:null}),n.options.internalMath=internalMath},preprocessors:[function(e){var t=e.data.packageData.get("textmacros");t.parseOptions.nodeFactory.setMmlFactory(t.jax.mmlFactory)}],options:{textmacros:{packages:["text-base"]}}});var UpgreekConfiguration={};Object.defineProperty(UpgreekConfiguration,"__esModule",{value:!0}),UpgreekConfiguration.UpgreekConfiguration=void 0;var Configuration_js_1=Configuration,SymbolMap_js_1=SymbolMap,TexConstants_js_1=TexConstants;function mathchar0miNormal(e,t){var r=t.attributes||{};r.mathvariant=TexConstants_js_1.TexConstant.Variant.NORMAL;var n=e.create("token","mi",r,t.char);e.Push(n)}new SymbolMap_js_1.CharacterMap("upgreek",mathchar0miNormal,{upalpha:"α",upbeta:"β",upgamma:"γ",updelta:"δ",upepsilon:"ϵ",upzeta:"ζ",upeta:"η",uptheta:"θ",upiota:"ι",upkappa:"κ",uplambda:"λ",upmu:"μ",upnu:"ν",upxi:"ξ",upomicron:"ο",uppi:"π",uprho:"ρ",upsigma:"σ",uptau:"τ",upupsilon:"υ",upphi:"ϕ",upchi:"χ",uppsi:"ψ",upomega:"ω",upvarepsilon:"ε",upvartheta:"ϑ",upvarpi:"ϖ",upvarrho:"ϱ",upvarsigma:"ς",upvarphi:"φ",Upgamma:"Γ",Updelta:"Δ",Uptheta:"Θ",Uplambda:"Λ",Upxi:"Ξ",Uppi:"Π",Upsigma:"Σ",Upupsilon:"Υ",Upphi:"Φ",Uppsi:"Ψ",Upomega:"Ω"}),UpgreekConfiguration.UpgreekConfiguration=Configuration_js_1.Configuration.create("upgreek",{handler:{macro:["upgreek"]}});var UnicodeConfiguration={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeConfiguration=e.UnicodeMethods=void 0;var r=Configuration,n=t(TexError$1),o=SymbolMap,i=t(ParseUtil$1),a=t(NodeUtil$1),s=Entities$1;e.UnicodeMethods={};var l={};e.UnicodeMethods.Unicode=function(e,t){var r=e.GetBrackets(t),o=null,c=null;r&&(r.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(o=r.replace(/ /g,"").split(/,/),c=e.GetBrackets(t)):c=r);var u=i.default.trimSpaces(e.GetArgument(t)).replace(/^0x/,"x");if(!u.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new n.default("BadUnicode","Argument to \\unicode must be a number");var d=parseInt(u.match(/^x/)?"0"+u:u);l[d]?c||(c=l[d][2]):l[d]=[800,200,c,d],o&&(l[d][0]=Math.floor(1e3*parseFloat(o[0])),l[d][1]=Math.floor(1e3*parseFloat(o[1])));var p=e.stack.env.font,m={};c?(l[d][2]=m.fontfamily=c.replace(/'/g,"'"),p&&(p.match(/bold/)&&(m.fontweight="bold"),p.match(/italic|-mathit/)&&(m.fontstyle="italic"))):p&&(m.mathvariant=p);var h=e.create("token","mtext",m,(0,s.numeric)(u));a.default.setProperty(h,"unicode",!0),e.Push(h)},new o.CommandMap("unicode",{unicode:"Unicode"},e.UnicodeMethods),e.UnicodeConfiguration=r.Configuration.create("unicode",{handler:{macro:["unicode"]}})}(UnicodeConfiguration),getDefaultExportFromCjs$1(UnicodeConfiguration);var VerbConfiguration={};!function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.VerbConfiguration=e.VerbMethods=void 0;var r=Configuration,n=TexConstants,o=SymbolMap,i=t(TexError$1);e.VerbMethods={},e.VerbMethods.Verb=function(e,t){var r=e.GetNext(),o=++e.i;if(""===r)throw new i.default("MissingArgFor","Missing argument for %1",t);for(;e.i<e.string.length&&e.string.charAt(e.i)!==r;)e.i++;if(e.i===e.string.length)throw new i.default("NoClosingDelim","Can't find closing delimiter for %1",e.currentCS);var a=e.string.slice(o,e.i).replace(/ /g," ");e.i++,e.Push(e.create("token","mtext",{mathvariant:n.TexConstant.Variant.MONOSPACE},a))},new o.CommandMap("verb",{verb:"Verb"},e.VerbMethods),e.VerbConfiguration=r.Configuration.create("verb",{handler:{macro:["verb"]}})}(VerbConfiguration),getDefaultExportFromCjs$1(VerbConfiguration),Object.defineProperty(AllPackages,"__esModule",{value:!0});var AllPackages_1=AllPackages.AllPackages=void 0;"undefined"!=typeof MathJax&&MathJax.loader&&MathJax.loader.preLoad("[tex]/action","[tex]/ams","[tex]/amscd","[tex]/bbox","[tex]/boldsymbol","[tex]/braket","[tex]/bussproofs","[tex]/cancel","[tex]/cases","[tex]/centernot","[tex]/color","[tex]/colorv2","[tex]/colortbl","[tex]/empheq","[tex]/enclose","[tex]/extpfeil","[tex]/gensymb","[tex]/html","[tex]/mathtools","[tex]/mhchem","[tex]/newcommand","[tex]/noerrors","[tex]/noundefined","[tex]/physics","[tex]/upgreek","[tex]/unicode","[tex]/verb","[tex]/configmacros","[tex]/tagformat","[tex]/textcomp","[tex]/textmacros","[tex]/setoptions"),AllPackages_1=AllPackages.AllPackages=["base","action","ams","amscd","bbox","boldsymbol","braket","bussproofs","cancel","cases","centernot","color","colortbl","empheq","enclose","extpfeil","gensymb","html","mathtools","mhchem","newcommand","noerrors","noundefined","upgreek","unicode","verb","configmacros","tagformat","textcomp","textmacros"];var bundle_min={exports:{}},t;t=()=>(()=>{var e={2167:(e,t)=>{function r(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var n=r({HTML:"text/html",isHTML:function(e){return e===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];if(t.call(void 0,o,n,e))return o}},t.freeze=r,t.MIME_TYPE=n,t.NAMESPACE=o},6129:(e,t,r)=>{var n=r(2167),o=r(1146),i=r(1045),a=r(6925),s=o.DOMImplementation,l=n.NAMESPACE,c=a.ParseError,u=a.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function p(e){this.options=e||{locator:{}}}function m(){this.cdata=!1}function h(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function f(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function _(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function g(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}p.prototype.parseFromString=function(e,t){var r=this.options,n=new u,o=r.domBuilder||new m,a=r.errorHandler,s=r.locator,c=r.xmlns||{},p=/\/x?html?$/.test(t),h=p?i.HTML_ENTITIES:i.XML_ENTITIES;s&&o.setDocumentLocator(s),n.errorHandler=function(e,t,r){if(!e){if(t instanceof m)return t;e=t}var n={},o=e instanceof Function;function i(t){var i=e[t];!i&&o&&(i=2==e.length?function(r){e(t,r)}:e),n[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+f(r))}||function(){}}return r=r||{},i("warning"),i("error"),i("fatalError"),n}(a,o,s),n.domBuilder=r.domBuilder||o,p&&(c[""]=l.HTML),c.xml=c.xml||l.XML;var _=r.normalizeLineEndings||d;return e&&"string"==typeof e?n.parse(_(e),c,h):n.errorHandler.error("invalid doc source"),o.doc},m.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var o=this.doc,i=o.createElementNS(e,r||t),a=n.length;g(this,i),this.currentElement=i,this.locator&&h(this.locator,i);for(var s=0;s<a;s++){e=n.getURI(s);var l=n.getValue(s),c=(r=n.getQName(s),o.createAttributeNS(e,r));this.locator&&h(n.getLocator(s),c),c.value=c.nodeValue=l,i.setAttributeNode(c)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&h(this.locator,r),g(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=_.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&h(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=_.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&h(this.locator,n),g(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var o=n.createDocumentType(e,t,r);this.locator&&h(this.locator,o),g(this,o),this.doc.doctype=o}},warning:function(e){console.warn("[xmldom warning]\t"+e,f(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,f(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){m.prototype[e]=function(){return null}})),t.DOMParser=p},1146:(e,t,r)=>{var n=r(2167),o=n.find,i=n.NAMESPACE;function a(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}(e);return Object.keys(t.reduce(s,{}))}function c(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function u(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,c(r,n=new n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var d={},p=d.ELEMENT_NODE=1,m=d.ATTRIBUTE_NODE=2,h=d.TEXT_NODE=3,f=d.CDATA_SECTION_NODE=4,_=d.ENTITY_REFERENCE_NODE=5,g=d.ENTITY_NODE=6,y=d.PROCESSING_INSTRUCTION_NODE=7,b=d.COMMENT_NODE=8,v=d.DOCUMENT_NODE=9,x=d.DOCUMENT_TYPE_NODE=10,M=d.DOCUMENT_FRAGMENT_NODE=11,S=d.NOTATION_NODE=12,E={},$={},C=(E.INDEX_SIZE_ERR=($[1]="Index size error",1),E.DOMSTRING_SIZE_ERR=($[2]="DOMString size error",2),E.HIERARCHY_REQUEST_ERR=($[3]="Hierarchy request error",3)),O=(E.WRONG_DOCUMENT_ERR=($[4]="Wrong document",4),E.INVALID_CHARACTER_ERR=($[5]="Invalid character",5),E.NO_DATA_ALLOWED_ERR=($[6]="No data allowed",6),E.NO_MODIFICATION_ALLOWED_ERR=($[7]="No modification allowed",7),E.NOT_FOUND_ERR=($[8]="Not found",8)),A=(E.NOT_SUPPORTED_ERR=($[9]="Not supported",9),E.INUSE_ATTRIBUTE_ERR=($[10]="Attribute in use",10));function j(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,$[e]),this.message=$[e],Error.captureStackTrace&&Error.captureStackTrace(this,j);return r.code=e,t&&(this.message=this.message+": "+t),r}function T(){}function N(e,t){this._node=e,this._refresh=t,w(this)}function w(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(ye(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];c(r,e),e._inc=t}}function P(){}function L(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function I(e,t,r,n){if(n?t[L(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var o=e.ownerDocument;o&&(n&&G(o,e,n),function(e,t,r){e&&e._inc++,r.namespaceURI===i.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(o,e,r))}}function k(e,t,r){var n=L(t,r);if(!(n>=0))throw new j(O,new Error(e.tagName+"@"+r));for(var o=t.length-1;n<o;)t[n]=t[++n];if(t.length=o,e){var i=e.ownerDocument;i&&(G(i,e,r),r.ownerElement=null)}}function R(){}function B(){}function D(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function F(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(F(e,t))return!0}while(e=e.nextSibling)}function U(){this.ownerDocument=this}function G(e,t,r,n){e&&e._inc++,r.namespaceURI===i.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function H(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var o=t.firstChild,i=0;o;)n[i++]=o,o=o.nextSibling;n.length=i,delete n[n.length]}}}function q(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,H(e.ownerDocument,e),t}function W(e){return e&&e.nodeType===B.DOCUMENT_TYPE_NODE}function X(e){return e&&e.nodeType===B.ELEMENT_NODE}function V(e){return e&&e.nodeType===B.TEXT_NODE}function z(e,t){var r=e.childNodes||[];if(o(r,X)||W(t))return!1;var n=o(r,W);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function J(e,t){var r=e.childNodes||[];if(o(r,(function(e){return X(e)&&e!==t})))return!1;var n=o(r,W);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function K(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===B.DOCUMENT_FRAGMENT_NODE){var a=i.filter(X);if(a.length>1||o(i,V))throw new j(C,"More than one element or text in fragment");if(1===a.length&&!z(e,r))throw new j(C,"Element in fragment can not be inserted before doctype")}if(X(t)&&!z(e,r))throw new j(C,"Only one element can be added and only after doctype");if(W(t)){if(o(n,W))throw new j(C,"Only one doctype is allowed");var s=o(n,X);if(r&&n.indexOf(s)<n.indexOf(r))throw new j(C,"Doctype can only be inserted before an element");if(!r&&s)throw new j(C,"Doctype can not be appended since element is present")}}function Y(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===B.DOCUMENT_FRAGMENT_NODE){var a=i.filter(X);if(a.length>1||o(i,V))throw new j(C,"More than one element or text in fragment");if(1===a.length&&!J(e,r))throw new j(C,"Element in fragment can not be inserted before doctype")}if(X(t)&&!J(e,r))throw new j(C,"Only one element can be added and only after doctype");if(W(t)){if(o(n,(function(e){return W(e)&&e!==r})))throw new j(C,"Only one doctype is allowed");var s=o(n,X);if(r&&n.indexOf(s)<n.indexOf(r))throw new j(C,"Doctype can only be inserted before an element")}}function Z(e,t,r,n){(function(e,t,r){if(!function(e){return e&&(e.nodeType===B.DOCUMENT_NODE||e.nodeType===B.DOCUMENT_FRAGMENT_NODE||e.nodeType===B.ELEMENT_NODE)}(e))throw new j(C,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new j(O,"child not in parent");if(!function(e){return e&&(X(e)||V(e)||W(e)||e.nodeType===B.DOCUMENT_FRAGMENT_NODE||e.nodeType===B.COMMENT_NODE||e.nodeType===B.PROCESSING_INSTRUCTION_NODE)}(t)||W(t)&&e.nodeType!==B.DOCUMENT_NODE)throw new j(C,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,r),e.nodeType===B.DOCUMENT_NODE&&(n||K)(e,t,r);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===M){var i=t.firstChild;if(null==i)return t;var a=t.lastChild}else i=a=t;var s=r?r.previousSibling:e.lastChild;i.previousSibling=s,a.nextSibling=r,s?s.nextSibling=i:e.firstChild=i,null==r?e.lastChild=a:r.previousSibling=a;do{i.parentNode=e}while(i!==a&&(i=i.nextSibling));return H(e.ownerDocument||e,e),t.nodeType==M&&(t.firstChild=t.lastChild=null),t}function Q(){this._nsMap={}}function ee(){}function te(){}function re(){}function ne(){}function oe(){}function ie(){}function ae(){}function se(){}function le(){}function ce(){}function ue(){}function de(){}function pe(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,o=n.prefix,i=n.namespaceURI;if(i&&null==o&&null==(o=n.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return fe(this,r,e,t,a),r.join("")}function me(e,t,r){var n=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===n&&o===i.XML||o===i.XMLNS)return!1;for(var a=r.length;a--;){var s=r[a];if(s.prefix===n)return s.namespace!==o}return!0}function he(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,D),'"')}function fe(e,t,r,n,o){if(o||(o=[]),n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case p:var a=e.attributes,s=a.length,l=e.firstChild,c=e.tagName,u=c;if(!(r=i.isHTML(e.namespaceURI)||r)&&!e.prefix&&e.namespaceURI){for(var d,g=0;g<a.length;g++)if("xmlns"===a.item(g).name){d=a.item(g).value;break}if(!d)for(var S=o.length-1;S>=0;S--)if(""===(E=o[S]).prefix&&E.namespace===e.namespaceURI){d=E.namespace;break}if(d!==e.namespaceURI)for(S=o.length-1;S>=0;S--){var E;if((E=o[S]).namespace===e.namespaceURI){E.prefix&&(u=E.prefix+":"+c);break}}}t.push("<",u);for(var $=0;$<s;$++)"xmlns"==(C=a.item($)).prefix?o.push({prefix:C.localName,namespace:C.value}):"xmlns"==C.nodeName&&o.push({prefix:"",namespace:C.value});for($=0;$<s;$++){var C,O,A;me(C=a.item($),0,o)&&(he(t,(O=C.prefix||"")?"xmlns:"+O:"xmlns",A=C.namespaceURI),o.push({prefix:O,namespace:A})),fe(C,t,r,n,o)}if(c===u&&me(e,0,o)&&(he(t,(O=e.prefix||"")?"xmlns:"+O:"xmlns",A=e.namespaceURI),o.push({prefix:O,namespace:A})),l||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),r&&/^script$/i.test(c))for(;l;)l.data?t.push(l.data):fe(l,t,r,n,o.slice()),l=l.nextSibling;else for(;l;)fe(l,t,r,n,o.slice()),l=l.nextSibling;t.push("</",u,">")}else t.push("/>");return;case v:case M:for(l=e.firstChild;l;)fe(l,t,r,n,o.slice()),l=l.nextSibling;return;case m:return he(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&>]/g,D));case f:return t.push("<![CDATA[",e.data,"]]>");case b:return t.push("\x3c!--",e.data,"--\x3e");case x:var j=e.publicId,T=e.systemId;if(t.push("<!DOCTYPE ",e.name),j)t.push(" PUBLIC ",j),T&&"."!=T&&t.push(" ",T),t.push(">");else if(T&&"."!=T)t.push(" SYSTEM ",T,">");else{var N=e.internalSubset;N&&t.push(" [",N,"]"),t.push(">")}return;case y:return t.push("<?",e.target," ",e.data,"?>");case _:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function _e(e,t,r){var n;switch(t.nodeType){case p:(n=t.cloneNode(!1)).ownerDocument=e;case M:break;case m:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var o=t.firstChild;o;)n.appendChild(_e(e,o,r)),o=o.nextSibling;return n}function ge(e,t,r){var n=new t.constructor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=t[o];"object"!=typeof i&&i!=n[o]&&(n[o]=i)}switch(t.childNodes&&(n.childNodes=new T),n.ownerDocument=e,n.nodeType){case p:var a=t.attributes,s=n.attributes=new P,l=a.length;s._ownerElement=n;for(var c=0;c<l;c++)n.setAttributeNode(ge(e,a.item(c),!0));break;case m:r=!0}if(r)for(var u=t.firstChild;u;)n.appendChild(ge(e,u,r)),u=u.nextSibling;return n}function ye(e,t,r){e[t]=r}E.INVALID_STATE_ERR=($[11]="Invalid state",11),E.SYNTAX_ERR=($[12]="Syntax error",12),E.INVALID_MODIFICATION_ERR=($[13]="Invalid modification",13),E.NAMESPACE_ERR=($[14]="Invalid namespace",14),E.INVALID_ACCESS_ERR=($[15]="Invalid access",15),j.prototype=Error.prototype,c(E,j),T.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)fe(this[n],r,e,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},N.prototype.item=function(e){return w(this),this[e]||null},u(N,T),P.prototype={length:0,item:T.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new j(A);var r=this.getNamedItem(e.nodeName);return I(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new j(A);return t=this.getNamedItemNS(e.namespaceURI,e.localName),I(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return k(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return k(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},R.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=new U;if(n.implementation=this,n.childNodes=new T,n.doctype=r||null,r&&n.appendChild(r),t){var o=n.createElementNS(e,t);n.appendChild(o)}return n},createDocumentType:function(e,t,r){var n=new ie;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n}},B.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Z(this,e,t)},replaceChild:function(e,t){Z(this,e,t,Y),t&&this.removeChild(t)},removeChild:function(e){return q(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ge(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==h&&e.nodeType==h?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n;t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},c(d,B),c(d,B.prototype),U.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==M){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return Z(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),q(this,e)},replaceChild:function(e,t){Z(this,e,t,Y),e.ownerDocument=this,t&&this.removeChild(t),X(e)&&(this.documentElement=e)},importNode:function(e,t){return _e(this,e,t)},getElementById:function(e){var t=null;return F(this.documentElement,(function(r){if(r.nodeType==p&&r.getAttribute("id")==e)return t=r,!0})),t},getElementsByClassName:function(e){var t=l(e);return new N(this,(function(r){var n=[];return t.length>0&&F(r.documentElement,(function(o){if(o!==r&&o.nodeType===p){var i=o.getAttribute("class");if(i){var a=e===i;if(!a){var s=l(i);a=t.every((c=s,function(e){return c&&-1!==c.indexOf(e)}))}a&&n.push(o)}}var c})),n}))},createElement:function(e){var t=new Q;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new T,(t.attributes=new P)._ownerElement=t,t},createDocumentFragment:function(){var e=new ce;return e.ownerDocument=this,e.childNodes=new T,e},createTextNode:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new oe;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new ue;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new ee;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new le;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new Q,n=t.split(":"),o=r.attributes=new P;return r.childNodes=new T,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,o._ownerElement=r,r},createAttributeNS:function(e,t){var r=new ee,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},u(U,B),Q.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===M?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,H(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new N(this,(function(t){var r=[];return F(t,(function(n){n===t||n.nodeType!=p||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new N(this,(function(r){var n=[];return F(r,(function(o){o===r||o.nodeType!==p||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||n.push(o)})),n}))}},U.prototype.getElementsByTagName=Q.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=Q.prototype.getElementsByTagNameNS,u(Q,B),ee.prototype.nodeType=m,u(ee,B),te.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error($[C])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},u(te,B),re.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(re,te),ne.prototype={nodeName:"#comment",nodeType:b},u(ne,te),oe.prototype={nodeName:"#cdata-section",nodeType:f},u(oe,te),ie.prototype.nodeType=x,u(ie,B),ae.prototype.nodeType=S,u(ae,B),se.prototype.nodeType=g,u(se,B),le.prototype.nodeType=_,u(le,B),ce.prototype.nodeName="#document-fragment",ce.prototype.nodeType=M,u(ce,B),ue.prototype.nodeType=y,u(ue,B),de.prototype.serializeToString=function(e,t,r){return pe.call(e,t,r)},B.prototype.toString=pe;try{if(Object.defineProperty){function be(e){switch(e.nodeType){case p:case M:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(be(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(N.prototype,"length",{get:function(){return w(this),this.$$length}}),Object.defineProperty(B.prototype,"textContent",{get:function(){return be(this)},set:function(e){switch(this.nodeType){case p:case M:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ye=function(e,t,r){e["$$"+t]=r}}}catch(ve){}t.DocumentType=ie,t.DOMException=j,t.DOMImplementation=R,t.Element=Q,t.Node=B,t.NodeList=T,t.XMLSerializer=de},1045:(e,t,r)=>{var n=r(2167).freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),t.entityMap=t.HTML_ENTITIES},3969:(e,t,r)=>{var n=r(1146);t.DOMImplementation=n.DOMImplementation,t.XMLSerializer=n.XMLSerializer,t.DOMParser=r(6129).DOMParser},6925:(e,t,r)=>{var n=r(2167).NAMESPACE,o=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,i=new RegExp("[\\-\\.0-9"+o.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+o.source+i.source+"*(?::"+o.source+i.source+"*)?$");function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function l(){}function c(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,r,o,i,a){function s(e,t,n){r.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),n)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(a.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,p=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,p=e.slice(t,c),t),a.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(p=e.slice(t,c)).slice(-1)&&(r.closed=!0,p=p.slice(0,-1));case 2:2===u&&(p=l),4==u?(a.warning('attribute "'+p+'" missed quot(")!'),s(l,p,t)):(n.isHTML(o[""])&&p.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+p+'" missed value!! "'+p+'" instead!!'),s(p,p,t));break;case 3:throw new Error("attribute value missed!!")}return c;case"":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var p=e.slice(t,c);a.warning('attribute "'+p+'" missed quot(")!!'),s(l,p,t);case 5:u=6}else switch(u){case 2:r.tagName,n.isHTML(o[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function d(e,t,r){for(var o=e.tagName,i=null,a=e.length;a--;){var s=e[a],l=s.qName,c=s.value;if((m=l.indexOf(":"))>0)var u=s.prefix=l.slice(0,m),d=l.slice(m+1),p="xmlns"===u&&d;else d=l,u=null,p="xmlns"===l&&"";s.localName=d,!1!==p&&(null==i&&(i={},h(r,r={})),r[p]=i[p]=c,s.uri=n.XMLNS,t.startPrefixMapping(p,c))}for(a=e.length;a--;)(u=(s=e[a]).prefix)&&("xml"===u&&(s.uri=n.XML),"xmlns"!==u&&(s.uri=r[u||""]));var m;(m=o.indexOf(":"))>0?(u=e.prefix=o.slice(0,m),d=e.localName=o.slice(m+1)):(u=null,d=e.localName=o);var f=e.uri=r[u||""];if(t.startElement(f,d,o,e),!e.closed)return e.currentNSMap=r,e.localNSMap=i,!0;if(t.endElement(f,d,o),i)for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&t.endPrefixMapping(u)}function p(e,t,r,n,o){if(/^(?:script|textarea)$/i.test(r)){var i=e.indexOf("</"+r+">",t),a=e.substring(t+1,i);if(/[&<]/.test(a))return/^script$/i.test(r)?(o.characters(a,0,a.length),i):(a=a.replace(/&#?\w+;/g,n),o.characters(a,0,a.length),i)}return t+1}function m(e,t,r,n){var o=n[r];return null==o&&((o=e.lastIndexOf("</"+r+">"))<t&&(o=e.lastIndexOf("</"+r)),n[r]=o),o<t}function h(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function f(e,t,r,n){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(o=e.indexOf("--\x3e",t+4))>t?(r.comment(e,t+4,o-t-4),o+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var o=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,o-t-9),r.endCDATA(),o+3}var i=function(e,t){var r,n=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(o.lastIndex=t,o.exec(e);r=o.exec(e);)if(n.push(r),r[1])return n}(e,t),a=i.length;if(a>1&&/!doctype/i.test(i[0][0])){var s=i[1][0],l=!1,c=!1;a>3&&(/^public$/i.test(i[2][0])?(l=i[3][0],c=a>4&&i[4][0]):/^system$/i.test(i[2][0])&&(c=i[3][0]));var u=i[a-1];return r.startDTD(s,l,c),r.endDTD(),u.index+u[0].length}return-1}function _(e,t,r){var n=e.indexOf("?>",t);if(n){var o=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return o?(o[0].length,r.processingInstruction(o[1],o[2]),n+2):-1}return-1}function g(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,l.prototype={parse:function(e,t,r){var o=this.domBuilder;o.startDocument(),h(t,t={}),function(e,t,r,o,i){function a(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function l(t){if(t>E){var r=e.substring(E,t).replace(/&#?\w+;/g,a);x&&h(E),o.characters(r,0,t-E),E=t}}function h(t,r){for(;t>=b&&(r=v.exec(e));)y=r.index,b=y+r[0].length,x.lineNumber++;x.columnNumber=t-y+1}for(var y=0,b=0,v=/.*(?:\r\n?|\n)|.*$/g,x=o.locator,M=[{currentNSMap:t}],S={},E=0;;){try{var $=e.indexOf("<",E);if($<0){if(!e.substr(E).match(/^\s*$/)){var C=o.doc,O=C.createTextNode(e.substr(E));C.appendChild(O),o.currentElement=O}return}switch($>E&&l($),e.charAt($+1)){case"/":var A=e.indexOf(">",$+3),j=e.substring($+2,A).replace(/[ \t\n\r]+$/g,""),T=M.pop();A<0?(j=e.substring($+2).replace(/[\s<].*/,""),i.error("end tag name: "+j+" is not complete:"+T.tagName),A=$+1+j.length):j.match(/\s</)&&(j=j.replace(/[\s<].*/,""),i.error("end tag name: "+j+" maybe not complete"),A=$+1+j.length);var N=T.localNSMap,w=T.tagName==j;if(w||T.tagName&&T.tagName.toLowerCase()==j.toLowerCase()){if(o.endElement(T.uri,T.localName,j),N)for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&o.endPrefixMapping(P);w||i.fatalError("end tag name: "+j+" is not match the current start tagName:"+T.tagName)}else M.push(T);A++;break;case"?":x&&h($),A=_(e,$,o);break;case"!":x&&h($),A=f(e,$,o,i);break;default:x&&h($);var L=new g,I=M[M.length-1].currentNSMap,k=(A=u(e,$,L,I,a,i),L.length);if(!L.closed&&m(e,A,L.tagName,S)&&(L.closed=!0,r.nbsp||i.warning("unclosed xml attribute")),x&&k){for(var R=c(x,{}),B=0;B<k;B++){var D=L[B];h(D.offset),D.locator=c(x,{})}o.locator=R,d(L,o,I)&&M.push(L),o.locator=x}else d(L,o,I)&&M.push(L);n.isHTML(L.uri)&&!L.closed?A=p(e,A,L.tagName,a,o):A++}}catch(e){if(e instanceof s)throw e;i.error("element parse error: "+e),A=-1}A>E?E=A:l(Math.max($,E)+1)}}(e,t,r,o,this.errorHandler),o.endDocument()}},g.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=l,t.ParseError=s},6036:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidNumberOfChildrenError=void 0;var n=r(6187);Object.defineProperty(t,"InvalidNumberOfChildrenError",{enumerable:!0,get:function(){return n.InvalidNumberOfChildrenError}})},6187:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidNumberOfChildrenError=void 0;class r extends Error{constructor(e,t,r,n="exactly"){super(`${e} tag must have ${n} ${t} children. It's actually ${r}`),this.name="InvalidNumberOfChildrenError"}}t.InvalidNumberOfChildrenError=r},8398:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(8208),t),o(r(7011),t),o(r(3487),t),o(r(5379),t)},7011:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JoinWithManySeparators=void 0;class r{constructor(e){this._separators=e}static join(e,t){return new r(t)._join(e)}_join(e){return e.reduce(((e,t,r,n)=>e+t+(r===n.length-1?"":this._get(r))),"")}_get(e){return this._separators[e]?this._separators[e]:this._separators.length>0?this._separators[this._separators.length-1]:","}}t.JoinWithManySeparators=r},3487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mathMLElementToLaTeXConverter=void 0;const n=r(6483);t.mathMLElementToLaTeXConverter=e=>new n.MathMLElementToLatexConverterAdapter(e).toLatexConverter()},5379:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeWhiteSpaces=void 0,t.normalizeWhiteSpaces=e=>e.replace(/\s+/g," ")},7274:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BracketWrapper=void 0;const n=r(836);t.BracketWrapper=class{constructor(){this._open="{",this._close="}"}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}}},5667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericWrapper=void 0;const n=r(836);t.GenericWrapper=class{constructor(e,t){this._open="\\left"+e,this._close="\\right"+t}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}}},8208:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericWrapper=t.ParenthesisWrapper=t.BracketWrapper=void 0;var n=r(7274);Object.defineProperty(t,"BracketWrapper",{enumerable:!0,get:function(){return n.BracketWrapper}});var o=r(3246);Object.defineProperty(t,"ParenthesisWrapper",{enumerable:!0,get:function(){return o.ParenthesisWrapper}});var i=r(5667);Object.defineProperty(t,"GenericWrapper",{enumerable:!0,get:function(){return i.GenericWrapper}})},3246:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParenthesisWrapper=void 0;const n=r(836);t.ParenthesisWrapper=class{constructor(){this._open="\\left(",this._close="\\right)"}wrap(e){return new n.Wrapper(this._open,this._close).wrap(e)}wrapIfMoreThanOneChar(e){return e.length<=1?e:this.wrap(e)}}},836:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0,t.Wrapper=class{constructor(e,t){this._open=e,this._close=t}wrap(e){return this._open+e+this._close}}},7510:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericSpacingWrapper=void 0;const n=r(8398);t.GenericSpacingWrapper=class{constructor(e){this._mathmlElement=e}convert(){return this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}},3589:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericUnderOver=void 0;const n=r(3487),o=r(6036),i=r(6626);t.GenericUnderOver=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new o.InvalidNumberOfChildrenError(e,2,r);const i=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert(),a=(0,n.mathMLElementToLaTeXConverter)(t[1]).convert();return this._applyCommand(i,a)}_applyCommand(e,t){const r=this._mathmlElement.name.match(/under/)?s.Under:s.Over;return new a(r).apply(e,t)}};class a{constructor(e){this._type=e}apply(e,t){return i.latexAccents.includes(t)?`${t}{${e}}`:`${this._defaultCommand}{${t}}{${e}}`}get _defaultCommand(){return this._type===s.Under?"\\underset":"\\overset"}}var s;!function(e){e[e.Under=0]="Under",e[e.Over=1]="Over"}(s||(s={}))},1733:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericUnderOver=t.GenericSpacingWrapper=t.MTr=t.MTable=t.MUnderover=t.MText=t.MMultiscripts=t.MSubsup=t.MSub=t.MSup=t.MPhantom=t.MError=t.MEnclose=t.MAction=t.MRoot=t.MFrac=t.MFenced=t.MSqrt=t.MN=t.MO=t.MI=t.Math=void 0;var n=r(2283);Object.defineProperty(t,"Math",{enumerable:!0,get:function(){return n.Math}});var o=r(7523);Object.defineProperty(t,"MI",{enumerable:!0,get:function(){return o.MI}});var i=r(5258);Object.defineProperty(t,"MO",{enumerable:!0,get:function(){return i.MO}});var a=r(411);Object.defineProperty(t,"MN",{enumerable:!0,get:function(){return a.MN}});var s=r(8301);Object.defineProperty(t,"MSqrt",{enumerable:!0,get:function(){return s.MSqrt}});var l=r(5237);Object.defineProperty(t,"MFenced",{enumerable:!0,get:function(){return l.MFenced}});var c=r(4060);Object.defineProperty(t,"MFrac",{enumerable:!0,get:function(){return c.MFrac}});var u=r(5851);Object.defineProperty(t,"MRoot",{enumerable:!0,get:function(){return u.MRoot}});var d=r(916);Object.defineProperty(t,"MAction",{enumerable:!0,get:function(){return d.MAction}});var p=r(7018);Object.defineProperty(t,"MEnclose",{enumerable:!0,get:function(){return p.MEnclose}});var m=r(6752);Object.defineProperty(t,"MError",{enumerable:!0,get:function(){return m.MError}});var h=r(9897);Object.defineProperty(t,"MPhantom",{enumerable:!0,get:function(){return h.MPhantom}});var f=r(5806);Object.defineProperty(t,"MSup",{enumerable:!0,get:function(){return f.MSup}});var _=r(9);Object.defineProperty(t,"MSub",{enumerable:!0,get:function(){return _.MSub}});var g=r(2740);Object.defineProperty(t,"MSubsup",{enumerable:!0,get:function(){return g.MSubsup}});var y=r(4596);Object.defineProperty(t,"MMultiscripts",{enumerable:!0,get:function(){return y.MMultiscripts}});var b=r(3808);Object.defineProperty(t,"MText",{enumerable:!0,get:function(){return b.MText}});var v=r(2710);Object.defineProperty(t,"MUnderover",{enumerable:!0,get:function(){return v.MUnderover}});var x=r(4134);Object.defineProperty(t,"MTable",{enumerable:!0,get:function(){return x.MTable}});var M=r(7188);Object.defineProperty(t,"MTr",{enumerable:!0,get:function(){return M.MTr}});var S=r(7510);Object.defineProperty(t,"GenericSpacingWrapper",{enumerable:!0,get:function(){return S.GenericSpacingWrapper}});var E=r(3589);Object.defineProperty(t,"GenericUnderOver",{enumerable:!0,get:function(){return E.GenericUnderOver}})},916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MAction=void 0;const n=r(3487);t.MAction=class{constructor(e){this._mathmlElement=e}convert(){const{children:e}=this._mathmlElement;return this._isToggle()?e.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" \\Longrightarrow "):(0,n.mathMLElementToLaTeXConverter)(e[0]).convert()}_isToggle(){const{actiontype:e}=this._mathmlElement.attributes;return"toggle"===e||!e}}},2283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Math=void 0;const n=r(3487),o=r(5379);t.Math=class{constructor(e){this._mathmlElement=e}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ");return(0,o.normalizeWhiteSpaces)(e)}}},7018:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEnclose=void 0;const n=r(3487);t.MEnclose=class{constructor(e){this._mathmlElement=e}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ");return"actuarial"===this._notation?`\\overline{\\left.${e}\\right|}`:"radical"===this._notation?`\\sqrt{${e}}`:["box","roundedbox","circle"].includes(this._notation)?`\\boxed{${e}}`:"left"===this._notation?`\\left|${e}`:"right"===this._notation?`${e}\\right|`:"top"===this._notation?`\\overline{${e}}`:"bottom"===this._notation?`\\underline{${e}}`:"updiagonalstrike"===this._notation?`\\cancel{${e}}`:"downdiagonalstrike"===this._notation?`\\bcancel{${e}}`:"updiagonalarrow"===this._notation?`\\cancelto{}{${e}}`:["verticalstrike","horizontalstrike"].includes(this._notation)?`\\hcancel{${e}}`:"madruwb"===this._notation?`\\underline{${e}\\right|}`:"phasorangle"===this._notation?`{\\angle \\underline{${e}}}`:"longdiv"===this._notation?`\\longdiv{${e}}`:`\\overline{\\left.\\right)${e}}`}get _notation(){return this._mathmlElement.attributes.notation||"longdiv"}}},6752:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MError=void 0;const n=r(3487);t.MError=class{constructor(e){this._mathmlElement=e}convert(){return`\\color{red}{${this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}`}}},5237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MFenced=void 0;const n=r(3487),o=r(8398);t.MFenced=class{constructor(e){this._mathmlElement=e,this._open=this._mathmlElement.attributes.open||"",this._close=this._mathmlElement.attributes.close||"",this._separators=Array.from(this._mathmlElement.attributes.separators||"")}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert()));return this._isThereRelativeOfName(this._mathmlElement.children,"mtable")?new a(this._open,this._close).apply(e):new i(this._open,this._close,this._separators).apply(e)}_isThereRelativeOfName(e,t){return e.some((e=>e.name===t||this._isThereRelativeOfName(e.children,t)))}};class i{constructor(e,t,r){this._open=e||"(",this._close=t||")",this._separators=r}apply(e){const t=o.JoinWithManySeparators.join(e,this._separators);return new o.GenericWrapper(this._open,this._close).wrap(t)}}class a{constructor(e,t){this._genericCommand="matrix",this._separators=new s(e,t)}apply(e){const t=this._command,r=`\\begin{${t}}\n${e.join("")}\n\\end{${t}}`;return t===this._genericCommand?this._separators.wrap(r):r}get _command(){return this._separators.areParentheses()?"pmatrix":this._separators.areSquareBrackets()?"bmatrix":this._separators.areBrackets()?"Bmatrix":this._separators.areDivides()?"vmatrix":this._separators.areParallels()?"Vmatrix":this._separators.areNotEqual()?this._genericCommand:"bmatrix"}}class s{constructor(e,t){this._open=e,this._close=t}wrap(e){return new o.GenericWrapper(this._open,this._close).wrap(e)}areParentheses(){return this._compare("(",")")}areSquareBrackets(){return this._compare("[","]")}areBrackets(){return this._compare("{","}")}areDivides(){return this._compare("|","|")}areParallels(){return this._compare("||","||")}areNotEqual(){return this._open!==this._close}_compare(e,t){return this._open===e&&this._close===t}}},4060:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MFrac=void 0;const n=r(6036),o=r(8398);t.MFrac=class{constructor(e){this._mathmlElement=e}convert(){const{children:e,name:t}=this._mathmlElement,r=e.length;if(2!==r)throw new n.InvalidNumberOfChildrenError(t,2,r);const i=(0,o.mathMLElementToLaTeXConverter)(e[0]).convert(),a=(0,o.mathMLElementToLaTeXConverter)(e[1]).convert();return this._isBevelled()?`${this._wrapIfMoreThanOneChar(i)}/${this._wrapIfMoreThanOneChar(a)}`:`\\frac{${i}}{${a}}`}_wrapIfMoreThanOneChar(e){return(new o.ParenthesisWrapper).wrapIfMoreThanOneChar(e)}_isBevelled(){return!!this._mathmlElement.attributes.bevelled}}},7523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MI=void 0;const n=r(8398),o=r(2408),i=r(4317);t.MI=class{constructor(e){this.utf8Converter=new i.HashUTF8ToLtXConverter,this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value);if(" "===e)return a.apply(e);const t=e.trim(),r=a.apply(t),o=this.utf8Converter.convert(r);return o!==r?o:this.wrapInMathVariant(r,this.getMathVariant(this._mathmlElement.attributes))}getMathVariant(e){if(e&&e.mathvariant)return e.mathvariant}wrapInMathVariant(e,t){switch(t){case"bold":return`\\mathbf{${e}}`;case"italic":return`\\mathit{${e}}`;case"bold-italic":return`\\mathbf{\\mathit{${e}}}`;case"double-struck":return`\\mathbb{${e}}`;case"bold-fraktur":return`\\mathbf{\\mathfrak{${e}}}`;case"script":return`\\mathcal{${e}}`;case"bold-script":return`\\mathbf{\\mathcal{${e}}}`;case"fraktur":return`\\mathfrak{${e}}`;case"sans-serif":return`\\mathsf{${e}}`;case"bold-sans-serif":return`\\mathbf{\\mathsf{${e}}}`;case"sans-serif-italic":return`\\mathsf{\\mathit{${e}}}`;case"sans-serif-bold-italic":return`\\mathbf{\\mathsf{\\mathit{${e}}}}`;case"monospace":return`\\mathtt{${e}}`;default:return e}}};class a{constructor(e){this._value=e}static apply(e){return new a(e)._apply()}_apply(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||(new i.HashUTF8ToLtXConverter).convert(this._value)}_findByCharacter(){return o.allMathSymbolsByChar[this._value]}_findByGlyph(){return o.allMathSymbolsByGlyphSpecial[`"${this._value}"`]||o.allMathSymbolsByGlyph[this._value]}_findByNumber(){return o.mathNumberByGlyphSpecial[`"${this._value}"`]||o.mathNumberByGlyph[this._value]}}},4596:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MMultiscripts=void 0;const n=r(8398),o=r(6036);t.MMultiscripts=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(r<3)throw new o.InvalidNumberOfChildrenError(e,3,r,"at least");const i=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert();return this._prescriptLatex()+this._wrapInParenthesisIfThereIsSpace(i)+this._postscriptLatex()}_prescriptLatex(){const{children:e}=this._mathmlElement;let t,r;if(this._isPrescripts(e[1]))t=e[2],r=e[3];else{if(!this._isPrescripts(e[3]))return"";t=e[4],r=e[5]}return`\\_{${(0,n.mathMLElementToLaTeXConverter)(t).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(r).convert()}}`}_postscriptLatex(){const{children:e}=this._mathmlElement;if(this._isPrescripts(e[1]))return"";const t=e[1],r=e[2];return`_{${(0,n.mathMLElementToLaTeXConverter)(t).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(r).convert()}}`}_wrapInParenthesisIfThereIsSpace(e){return e.match(/\s+/g)?(new n.ParenthesisWrapper).wrap(e):e}_isPrescripts(e){return"mprescripts"===(null==e?void 0:e.name)}}},411:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MN=void 0;const n=r(8398),o=r(2408);t.MN=class{constructor(e){this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return o.mathNumberByGlyphSpecial[`"${e}"`]||o.mathNumberByGlyph[e]||e}}},5258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MO=void 0;const n=r(8398),o=r(2408);t.MO=class{constructor(e){this._mathmlElement=e}convert(){const e=(0,n.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return"OPEN"===this._mathmlElement.attributes["data-mjx-texclass"]&&"|"===e?"\\left|":"CLOSE"===this._mathmlElement.attributes["data-mjx-texclass"]&&"|"===e?"\\right|":i.operate(e)}};class i{constructor(e){this._value=e}static operate(e){return new i(e)._operate()}_operate(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||(new o.HashUTF8ToLtXConverter).convert(this._value)}_findByCharacter(){return o.allMathOperatorsByChar[this._value]}_findByGlyph(){return o.allMathOperatorsByGlyphSpecial[`"${this._value}"`]||o.allMathOperatorsByGlyph[this._value]}_findByNumber(){return o.mathNumberByGlyphSpecial[`"${this._value}"`]||o.mathNumberByGlyph[this._value]}}},9897:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MPhantom=void 0,t.MPhantom=class{constructor(e){this._mathmlElement=e}convert(){return""}}},5851:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MRoot=void 0;const n=r(8398),o=r(6036);t.MRoot=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new o.InvalidNumberOfChildrenError(e,2,r);const i=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert();return`\\sqrt[${(0,n.mathMLElementToLaTeXConverter)(t[1]).convert()}]{${i}}`}}},8301:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MSqrt=void 0;const n=r(8398);t.MSqrt=class{constructor(e){this._mathmlElement=e}convert(){return`\\sqrt{${this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" ")}}`}}},9:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MSub=void 0;const n=r(8398),o=r(6036);t.MSub=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new o.InvalidNumberOfChildrenError(e,2,r);const i=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert(),a=(0,n.mathMLElementToLaTeXConverter)(t[1]).convert();return"log"===i?`\\${i}_${(new n.BracketWrapper).wrap(a)}`:`${i}_${(new n.BracketWrapper).wrap(a)}`}}},2740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MSubsup=void 0;const n=r(8398),o=r(6036);t.MSubsup=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(3!==r)throw new o.InvalidNumberOfChildrenError(e,3,r);const i=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert(),a=(0,n.mathMLElementToLaTeXConverter)(t[1]).convert(),s=(0,n.mathMLElementToLaTeXConverter)(t[2]).convert(),l=(new n.BracketWrapper).wrap(a),c=(new n.BracketWrapper).wrap(s);return`${this._wrapInParenthesisIfThereIsSpace(i)}_${l}^${c}`}_wrapInParenthesisIfThereIsSpace(e){return e.match(/\s+/g)?(new n.ParenthesisWrapper).wrap(e):e}}},5806:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MSup=void 0;const n=r(8398),o=r(6036);t.MSup=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(2!==r)throw new o.InvalidNumberOfChildrenError(e,2,r);const i=(0,n.mathMLElementToLaTeXConverter)(t[0]).convert(),a=(0,n.mathMLElementToLaTeXConverter)(t[1]).convert();return["'","″"].indexOf(a)?`${i}${a}`:`${i}^${(new n.BracketWrapper).wrap(a)}`}}},4134:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MTable=void 0;const n=r(8398);t.MTable=class{constructor(e){this._mathmlElement=e,this._addFlagRecursiveIfName(this._mathmlElement.children,"mtable","innerTable")}convert(){const e=this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" \\\\\n");return this._hasFlag("innerTable")?this._wrap(e):e}_wrap(e){return`\\begin{matrix}${e}\\end{matrix}`}_addFlagRecursiveIfName(e,t,r){e.forEach((e=>{e.name===t&&(e.attributes[r]=r),this._addFlagRecursiveIfName(e.children,t,r)}))}_hasFlag(e){return!!this._mathmlElement.attributes[e]}}},3808:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MText=void 0;const n=r(7523);t.MText=class{constructor(e){this._mathmlElement=e}convert(){const{attributes:e,value:t}=this._mathmlElement;return[...t].map((e=>/^[a-zA-Z0-9]$/.test(e)||" "==e?{value:e,isAlphanumeric:!0}:{value:e,isAlphanumeric:!1})).reduce(((e,t)=>{if(t.isAlphanumeric){const r=e[e.length-1];if(r&&r.isAlphanumeric)return r.value+=t.value,e}return[...e,t]}),[]).map((t=>t.isAlphanumeric?new o(e.mathvariant).apply(t.value):new n.MI({name:"mi",attributes:{},children:[],value:t.value}).convert())).join("")}};class o{constructor(e){this._mathvariant=e||"normal"}apply(e){return this._commands.reduce(((t,r,n)=>0===n?`${r}{${e}}`:`${r}{${t}}`),"")}get _commands(){switch(this._mathvariant){case"bold":return["\\textbf"];case"log":return["\\log"];case"italic":return["\\textit"];case"bold-italic":return["\\textit","\\textbf"];case"double-struck":return["\\mathbb"];case"monospace":return["\\mathtt"];case"bold-fraktur":case"fraktur":return["\\mathfrak"];default:return["\\text"]}}}},7188:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MTr=void 0;const n=r(8398);t.MTr=class{constructor(e){this._mathmlElement=e}convert(){return this._mathmlElement.children.map((e=>(0,n.mathMLElementToLaTeXConverter)(e))).map((e=>e.convert())).join(" & ")}}},2710:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MUnderover=void 0;const n=r(8398),o=r(6036);t.MUnderover=class{constructor(e){this._mathmlElement=e}convert(){const{name:e,children:t}=this._mathmlElement,r=t.length;if(3!==r)throw new o.InvalidNumberOfChildrenError(e,3,r);return`${(0,n.mathMLElementToLaTeXConverter)(t[0]).convert()}_{${(0,n.mathMLElementToLaTeXConverter)(t[1]).convert()}}^{${(0,n.mathMLElementToLaTeXConverter)(t[2]).convert()}}`}}},6483:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MathMLElementToLatexConverterAdapter=void 0;const a=i(r(1733));t.MathMLElementToLatexConverterAdapter=class{constructor(e){this._mathMLElement=e}toLatexConverter(){const{name:e}=this._mathMLElement;return new(s[e]||a.GenericSpacingWrapper)(this._mathMLElement)}};const s={math:a.Math,mi:a.MI,mo:a.MO,mn:a.MN,msqrt:a.MSqrt,mfenced:a.MFenced,mfrac:a.MFrac,mroot:a.MRoot,maction:a.MAction,menclose:a.MEnclose,merror:a.MError,mphantom:a.MPhantom,msup:a.MSup,msub:a.MSub,msubsup:a.MSubsup,mmultiscripts:a.MMultiscripts,mtext:a.MText,munderover:a.MUnderover,mtable:a.MTable,mtr:a.MTr,mover:a.GenericUnderOver,munder:a.GenericUnderOver,mrow:a.GenericSpacingWrapper,mpadded:a.GenericSpacingWrapper}},965:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorHandler=void 0,t.ErrorHandler=class{constructor(){this._errors=[],this.errorLocator={}}fixError(e,t){return this._isMissingAttributeValueError(t)?(this._errors.push(t),this._fixMissingAttribute(t,e)):e}isThereAnyErrors(){return this._errors.length>0}cleanErrors(){this._errors=[]}_fixMissingAttribute(e,t){const r=e.split('"')[1];if(r)return t.replace(this._matchMissingValueForAttribute(r),"");for(;this._mathGenericMissingValue().exec(t);)t=t.replace(this._mathGenericMissingValue(),"$1$3");return t}_matchMissingValueForAttribute(e){return new RegExp(`(${e}=(?!("|')))|(${e}(?!("|')))`,"gm")}_mathGenericMissingValue(){return/(\<.* )(\w+=(?!\"|\'))(.*\>)/gm}_isMissingAttributeValueError(e){return!!e.includes("attribute")&&!!e.includes("missed")||e.includes("attribute value missed")}}},6177:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(5242),t),o(r(965),t),o(r(1877),t)},1877:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ElementsToMathMLAdapter=void 0,t.ElementsToMathMLAdapter=class{convert(e){return e.filter((e=>void 0!==e.tagName)).map((e=>this._convertElement(e)))}_convertElement(e){return{name:e.tagName,attributes:this._convertElementAttributes(e.attributes),value:this._hasElementChild(e)?"":e.textContent||"",children:this._hasElementChild(e)?this.convert(Array.from(e.childNodes)):[]}}_convertElementAttributes(e){return Array.from(e).reduce(((e,t)=>Object.assign({[t.nodeName]:t.nodeValue===t.nodeName?"":t.nodeValue},e)),{})}_hasElementChild(e){const t=e.childNodes;return!!t&&0!==t.length&&this._isThereAnyNoTextNode(t)}_isThereAnyNoTextNode(e){return Array.from(e).some((e=>"#text"!==e.nodeName))}}},5242:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XmlToMathMLAdapter=void 0;const o=n(r(3969));t.XmlToMathMLAdapter=class{constructor(e,t){this._xml="",this._elementsConvertor=e,this._errorHandler=t,this._xmlDOM=new o.default.DOMParser({locator:this._errorHandler.errorLocator,errorHandler:this._fixError.bind(this)})}convert(e){return this._xml=this._removeLineBreaks(e),this._elementsConvertor.convert(this._mathMLElements)}_fixError(e){this._xml=this._errorHandler.fixError(this._xml,e)}_removeLineBreaks(e){return e.replace(/\n|\r\n|\r/g,"")}get _mathMLElements(){let e=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math");return this._errorHandler.isThereAnyErrors()&&(this._errorHandler.cleanErrors(),e=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math")),Array.from(e)}}},4150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(488),t)},488:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.makeToMathElementsConverter=void 0;const n=r(6177);t.makeToMathElementsConverter=()=>{const e=new n.ElementsToMathMLAdapter,t=new n.ErrorHandler;return new n.XmlToMathMLAdapter(e,t)}},8863:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(862),t)},862:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MathMLToLaTeX=void 0;const n=r(6483),o=r(4150);t.MathMLToLaTeX=class{static convert(e){return(0,o.makeToMathElementsConverter)().convert(e).map((e=>new n.MathMLElementToLatexConverterAdapter(e).toLatexConverter())).map((e=>e.convert())).join("").trim()}}},1868:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.allMathOperatorsByChar=void 0,t.allMathOperatorsByChar={_:"\\underline","⏡":"\\underbrace","⏠":"\\overbrace","⏟":"\\underbrace","⏞":"\\overbrace","⏝":"\\underbrace","⏜":"\\overarc","⎵":"\\underbrace","⎴":"\\overbrace","⃜":"\\square","⃛":"\\square","⁤":"","⁗":"''''","‾":"\\overline","―":"\\overline","¯":"\\overline","‷":"```","‶":"``","‵":"`","‴":"'''","″":"''","‟":"``","„":",,","‛":"`","‚":",","̂":"\\hat","˷":"\\sim","˝":"\\sim","˜":"\\sim","˚":"\\degree","˙":"\\cdot","˘":"","ˍ":"\\_","ˋ":"ˋ","ˊ":"ˊ","ˉ":"ˉ","ˇ":"","ˆ":"\\hat","º":"o","¹":"1","¸":"¸","´":"´","³":"3","²":"2","°":"\\degree","ª":"a","¨":"\\cdot\\cdot","~":"\\sim","`":"`","^":"\\hat","--":"--","++":"++","&":"\\&","⁡":"","∜":"\\sqrt[4]{}","∛":"\\sqrt[3]{}","√":"\\sqrt{}","ⅆ":"d","ⅅ":"\\mathbb{D}","?":"?","@":"@","//":"//","!!":"!!","!":"!","♯":"\\#","♮":"","♭":"","′":"'","<>":"<>","**":"\\star\\star","∇":"\\nabla","∂":"\\partial","⊙":"\\bigodot","¬":"\\neg","∢":"\\measuredangle","∡":"\\measuredangle","∠":"\\angle","÷":"\\div","/":"/","∖":"\\backslash","\\":"\\backslash","%":"\\%","⊗":"\\bigotimes","·":"\\cdot","⨿":"\\coprod","⨯":"\\times","⋅":"\\cdot","⊡":"\\boxdot","⊠":"\\boxtimes","⁢":"","⁃":"-","•":"\\cdot","×":"\\times",".":".","*":"\\star","∪":"\\cup","∩":"\\cap","∐":"\\coprod","∏":"\\prod","≀":"","⫿":"","⫼":"\\mid\\mid\\mid","⨉":"\\times","⨈":"","⨇":"","⨆":"\\sqcup","⨅":"\\sqcap","⨂":"\\otimes","⨀":"\\odot","⋂":"\\cap","⋁":"\\vee","⋀":"\\wedge","⨄":"\\uplus","⨃":"\\cup","⋃":"\\cup","⨜":"\\underline{\\int}","⨛":"\\overline{\\int}","⨚":"\\int","⨙":"\\int","⨘":"\\int","⨗":"\\int","⨖":"\\oint","⨕":"\\oint","⨔":"\\int","⨓":"\\int","⨒":"\\int","⨑":"\\int","⨐":"\\int","⨏":"\\bcancel{\\int}","⨎":"","⨍":"\\hcancel{\\int}","⨌":"\\iiiint","∳":"\\oint","∲":"\\oint","∱":"\\int","∰":"\\oiint","∯":"\\oiint","∮":"\\oint","∫":"\\int","⨁":"\\oplus","⊘":"\\oslash","⊖":"\\ominus","⊕":"\\oplus","∭":"\\iiint","∬":"\\iint","⨋":"","⨊":"","∑":"\\sum","⊟":"\\boxminus","⊞":"\\boxplus","∔":"\\dot{+}","∓":"+-","−":"-","±":"\\pm","-":"-","+":"+","⭆":"\\Rrightarrow","⭅":"\\Lleftarrow","⧴":":\\rightarrow","⧯":"","⧟":"\\bullet-\\bullet","⦟":"\\angle","⦞":"\\measuredangle","⦝":"\\measuredangle","⦜":"\\perp","⦛":"\\measuredangle","⦚":"","⦙":"\\vdots","⥿":"","⥾":"","⥽":"\\prec","⥼":"\\succ","⥻":"\\underset{\\rightarrow}{\\supset}","⥺":"","⥹":"\\underset{\\rightarrow}{\\subset}","⥸":"\\underset{\\rightarrow}{>}","⥷":"","⥶":"\\underset{\\leftarrow}{<}","⥵":"\\underset{\\approx}{\\rightarrow}","⥴":"\\underset{\\sim}{\\rightarrow}","⥳":"\\underset{\\sim}{\\leftarrow}","⥲":"\\overset{\\sim}{\\rightarrow}","⥱":"\\overset{=}{\\rightarrow}","⥰":"","⥯":"","⥮":"","⥭":"\\overline{\\rightharpoondown}","⥬":"\\underline{\\rightharpoonup}","⥫":"\\overline{\\leftharpoondown}","⥪":"\\underline{\\leftharpoonup}","⥩":"\\rightleftharpoons","⥨":"\\rightleftharpoons","⥧":"\\rightleftharpoons","⥦":"\\rightleftharpoons","⥥":"\\Downarrow","⥤":"\\Rightarrow","⥣":"\\Uparrow","⥢":"\\Leftarrow","⥡":"\\downarrow","⥠":"\\uparrow","⥟":"\\rightarrow","⥞":"\\leftarrow","⥝":"\\downarrow","⥜":"\\uparrow","⥛":"\\rightarrow","⥚":"\\leftarrow","⥙":"\\downarrow","⥘":"\\uparrow","⥗":"\\rightarrow","⥖":"\\leftarrow","⥕":"\\downarrow","⥔":"\\uparrow","⥓":"\\rightarrow","⥒":"\\leftarrow","⥑":"\\updownarrow","⥐":"\\leftrightarrow","⥏":"\\updownarrow","⥎":"\\leftrightarrow","⥍":"\\updownarrow","⥌":"\\updownarrow","⥋":"\\leftrightarrow","⥊":"\\leftrightarrow","⥉":"","⥈":"\\leftrightarrow","⥇":"\\nrightarrow","⥆":"","⥅":"","⥄":"\\rightleftarrows","⥃":"\\leftrightarrows","⥂":"\\rightleftarrows","⥁":"\\circlearrowright","⥀":"\\circlearrowleft","⤿":"\\rightarrow","⤾":"\\leftarrow","⤽":"","⤼":"","⤻":"","⤺":"","⤹":"","⤸":"","⤷":"\\Rsh","⤶":"\\Lsh","⤵":"\\downarrow","⤴":"\\uparrow","⤳":"\\leadsto","⤲":"","⤱":"","⤰":"","⤯":"","⤮":"","⤭":"","⤬":"\\times","⤫":"\\times","⤪":"","⤩":"","⤨":"","⤧":"","⤦":"","⤥":"","⤤":"","⤣":"","⤢":"","⤡":"","⤠":"\\mapsto\\cdot","⤟":"\\cdot\\leftarrow","⤞":"\\rightarrow\\cdot","⤝":"\\leftarrow","⤜":"\\rightarrow","⤛":"\\leftarrow","⤚":"\\rightarrow","⤙":"\\leftarrow","⤘":"\\rightarrow","⤗":"\\rightarrow","⤖":"\\rightarrow","⤕":"\\rightarrow","⤔":"\\rightarrow","⤓":"\\downarrow","⤒":"\\uparrow","⤑":"\\rightarrow","⤐":"\\rightarrow","⤏":"\\rightarrow","⤎":"\\leftarrow","⤍":"\\rightarrow","⤌":"\\leftarrow","⤋":"\\Downarrow","⤊":"\\Uparrow","⤉":"\\uparrow","⤈":"\\downarrow","⤇":"\\Rightarrow","⤆":"\\Leftarrow","⤅":"\\mapsto","⤄":"\\nLeftrightarrow","⤃":"\\nRightarrow","⤂":"\\nLeftarrow","⤁":"\\rightsquigarrow","⤀":"\\rightsquigarrow","⟿":"\\rightsquigarrow","⟾":"\\Rightarrow","⟽":"\\Leftarrow","⟼":"\\mapsto","⟻":"\\leftarrow","⟺":"\\Longleftrightarrow","⟹":"\\Longrightarrow","⟸":"\\Longleftarrow","⟷":"\\leftrightarrow","⟶":"\\rightarrow","⟵":"\\leftarrow","⟱":"\\Downarrow","⟰":"\\Uparrow","⊸":"\\rightarrow","⇿":"\\leftrightarrow","⇾":"\\rightarrow","⇽":"\\leftarrow","⇼":"\\nleftrightarrow","⇻":"\\nrightarrow","⇺":"\\nleftarrow","⇹":"\\nleftrightarrow","⇸":"\\nrightarrow","⇷":"\\nleftarrow","⇶":"\\Rrightarrow","⇵":"","⇴":"\\rightarrow","⇳":"\\Updownarrow","⇲":"\\searrow","⇱":"\\nwarrow","⇰":"\\Leftarrow","⇯":"\\Uparrow","⇮":"\\Uparrow","⇭":"\\Uparrow","⇬":"\\Uparrow","⇫":"\\Uparrow","⇪":"\\Uparrow","⇩":"\\Downarrow","⇨":"\\Rightarrow","⇧":"\\Uparrow","⇦":"\\Leftarrow","⇥":"\\rightarrow","⇤":"\\leftarrow","⇣":"\\downarrow","⇢":"\\rightarrow","⇡":"\\uparrow","⇠":"\\leftarrow","⇟":"\\downarrow","⇞":"\\uparrow","⇝":"\\rightsquigarrow","⇜":"\\leftarrow","⇛":"\\Rrightarrow","⇚":"\\Lleftarrow","⇙":"\\swarrow","⇘":"\\searrow","⇗":"\\nearrow","⇖":"\\nwarrow","⇕":"\\Updownarrow","⇔":"\\Leftrightarrow","⇓":"\\Downarrow","⇒":"\\Rightarrow","⇑":"\\Uparrow","⇐":"\\Leftarrow","⇏":"\\nRightarrow","⇎":"\\nLeftrightarrow","⇍":"\\nLeftarrow","⇌":"\\rightleftharpoons","⇋":"\\leftrightharpoons","⇊":"\\downdownarrows","⇉":"\\rightrightarrows","⇈":"\\upuparrows","⇇":"\\leftleftarrows","⇆":"\\leftrightarrows","⇅":"","⇄":"\\rightleftarrows","⇃":"\\downharpoonleft","⇂":"\\downharpoonright","⇁":"\\rightharpoondown","⇀":"\\rightharpoonup","↿":"\\upharpoonleft","↾":"\\upharpoonright","↽":"\\leftharpoondown","↼":"\\leftharpoonup","↻":"\\circlearrowright","↺":"\\circlearrowleft","↹":"\\leftrightarrows","↸":"\\overline{\\nwarrow}","↷":"\\curvearrowright","↶":"\\curvearrowleft","↵":"\\swarrow","↴":"\\searrow","↳":"\\Rsh","↲":"\\Lsh","↱":"\\Rsh","↰":"\\Lsh","↯":"\\swarrow","↮":"","↭":"\\leftrightsquigarrow","↬":"\\looparrowright","↫":"\\looparrowleft","↪":"\\hookrightarrow","↩":"\\hookleftarrow","↨":"\\underline{\\updownarrow}","↧":"\\downarrow","↦":"\\rightarrowtail","↥":"\\uparrow","↤":"\\leftarrowtail","↣":"\\rightarrowtail","↢":"\\leftarrowtail","↡":"\\downarrow","↠":"\\twoheadrightarrow","↟":"\\uparrow","↞":"\\twoheadleftarrow","↝":"\\nearrow","↜":"\\nwarrow","↛":"","↚":"","↙":"\\swarrow","↘":"\\searrow","↗":"\\nearrow","↖":"\\nwarrow","↕":"\\updownarrow","↔":"\\leftrightarrow","↓":"\\downarrow","→":"\\rightarrow","↑":"\\uparrow","←":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\left|\\right.","⫾":"","⫽":"//","⫻":"///","⫺":"","⫹":"","⫸":"","⫷":"","⫶":"\\vdots","⫵":"","⫴":"","⫳":"","⫲":"\\nparallel","⫱":"","⫰":"","⫯":"","⫮":"\\bcancel{\\mid}","⫭":"","⫬":"","⫫":"","⫪":"","⫩":"","⫨":"\\underline{\\perp}","⫧":"\\overline{\\top}","⫦":"","⫥":"","⫤":"","⫣":"","⫢":"","⫡":"","⫠":"\\perp","⫟":"\\top","⫞":"\\dashv","⫝̸":"","⫝":"","⫛":"\\pitchfork","⫚":"","⫙":"","⫘":"","⫗":"","⫖":"","⫕":"","⫔":"","⫓":"","⫒":"","⫑":"","⫐":"","⫏":"","⫎":"","⫍":"","⫌":"\\underset{\\neq}{\\supset}","⫋":"\\underset{\\neq}{\\subset}","⫊":"\\underset{\\approx}{\\supset}","⫉":"\\underset{\\approx}{\\subset}","⫈":"\\underset{\\sim}{\\supset}","⫇":"\\underset{\\sim}{\\subset}","⫆":"\\supseteqq","⫅":"\\subseteqq","⫄":"\\dot{\\supseteq}","⫃":"\\dot{\\subseteq}","⫂":"\\underset{\\times}{\\supset}","⫁":"\\underset{\\times}{\\subset}","⫀":"\\underset{+}{\\supset}","⪿":"\\underset{+}{\\subset}","⪾":"","⪽":"","⪼":"\\gg ","⪻":"\\ll","⪺":"\\underset{\\cancel{\\approx}}{\\succ}","⪹":"\\underset{\\cancel{\\approx}}{\\prec}","⪸":"\\underset{\\approx}{\\succ}","⪷":"\\underset{\\approx}{\\prec}","⪶":"\\underset{\\cancel{=}}{\\succ}","⪵":"\\underset{\\cancel{=}}{\\prec}","⪴":"\\underset{=}{\\succ}","⪳":"\\underset{=}{\\prec}","⪲":"","⪱":"","⪮":"","⪭":"\\underline{\\hcancel{>}}","⪬":"\\underline{\\hcancel{>}}","⪫":"\\hcancel{>}","⪪":"\\hcancel{<}","⪩":"","⪨":"","⪧":"\\vartriangleright","⪦":"\\vartriangleleft","⪥":"><","⪤":"><","⪣":"\\underline{\\ll}","⪢̸":"\\cancel{\\gg}","⪢":"\\gg","⪡̸":"\\cancel{\\ll}","⪡":"\\ll","⪠":"\\overset{\\sim}{\\geqq}","⪟":"\\overset{\\sim}{\\leqq}","⪞":"\\overset{\\sim}{>}","⪝":"\\overset{\\sim}{<}","⪜":"","⪛":"","⪚":"\\overset{=}{>}","⪙":"\\overset{=}{<}","⪘":"","⪗":"","⪖":"","⪕":"","⪔":"","⪓":"","⪒":"\\underset{=}{\\gtrless}","⪑":"\\underset{=}{\\lessgtr}","⪐":"\\underset{<}{\\gtrsim}","⪏":"\\underset{>}{\\lesssim}","⪎":"\\underset{\\simeq}{>}","⪍":"\\underset{\\simeq}{<}","⪌":"\\gtreqqless","⪋":"\\lesseqqgtr","⪊":"\\underset{\\cancel{\\approx}}{>}","⪉":"\\underset{\\approx}{<}","⪆":"\\underset{\\approx}{>}","⪅":"\\underset{\\approx}{<}","⪄":"","⪃":"","⪂":"","⪁":"","⪀":"","⩿":"","⩾̸":"\\bcancel{\\geq}","⩾":"\\geq","⩽̸":"\\bcancel{\\leq}","⩽":"\\leq","⩼":"","⩻":"","⩺":"","⩹":"","⩸":"\\overset{\\dots}{\\equiv}","⩷":"","⩶":"===","⩵":"==","⩴":"::=","⩳":"","⩲":"\\underset{=}{+}","⩱":"\\overset{=}{+}","⩰":"\\overset{\\approx}{=}","⩯":"\\overset{\\wedge}{=}","⩮":"\\overset{*}{=}","⩭":"\\dot{\\approx}","⩬":"","⩫":"","⩪":"\\dot{\\sim}","⩩":"","⩨":"","⩧":"\\dot{\\equiv}","⩦":"\\underset{\\cdot}{=}","⩥":"","⩤":"","⩣":"\\underset{=}{\\vee}","⩢":"\\overset{=}{\\vee}","⩡":"ul(vv)","⩠":"\\underset{=}{\\wedge}","⩟":"\\underline{\\wedge}","⩞":"\\overset{=}{\\wedge}","⩝":"\\hcancel{\\vee}","⩜":"\\hcancel{\\wedge}","⩛":"","⩚":"","⩙":"","⩘":"\\vee","⩗":"\\wedge","⩖":"","⩕":"","⩔":"","⩓":"","⩒":"\\dot{\\vee}","⩑":"\\dot{\\wedge}","⩐":"","⩏":"","⩎":"","⩍":"\\overline{\\cap}","⩌":"\\overline{\\cup}","⩋":"","⩊":"","⩉":"","⩈":"","⩇":"","⩆":"","⩅":"","⩄":"","⩃":"\\overline{\\cap}","⩂":"\\overline{\\cup}","⩁":"","⩀":"","⨾":"","⨽":"\\llcorner","⨼":"\\lrcorner","⨻":"","⨺":"","⨹":"","⨸":"","⨷":"","⨶":"\\hat{\\otimes}","⨵":"","⨴":"","⨳":"","⨲":"\\underline{\\times}","⨱":"\\underline{\\times}","⨰":"\\dot{\\times}","⨮":"","⨭":"","⨬":"","⨫":"","⨪":"","⨩":"","⨨":"","⨧":"","⨦":"\\underset{\\sim}{+}","⨥":"\\underset{\\circ}{+}","⨤":"\\overset{\\sim}{+}","⨣":"\\hat{+}","⨢":"\\dot{+}","⨡":"\\upharpoonright","⨠":">>","⨟":"","⨞":"\\triangleleft","⨝":"\\bowtie","⧿":"","⧾":"+","⧻":"\\hcancel{|||}","⧺":"\\hcancel{||}","⧹":"\\backslash","⧸":"/","⧷":"hcancel{\backslash}","⧶":"","⧵":"\\backslash","⧲":"\\Phi","⧱":"","⧰":"","⧮":"","⧭":"","⧬":"","⧫":"\\lozenge","⧪":"","⧩":"","⧨":"","⧧":"\\ddagger","⧢":"\\sqcup\\sqcup","⧡":"","⧠":"\\square","⧞":"","⧝":"","⧜":"","⧛":"\\{\\{","⧙":"\\{","⧘":"\\}","⧗":"","⧖":"","⧕":"\\bowtie","⧔":"\\bowtie","⧓":"\\bowtie","⧒":"\\bowtie","⧑":"\\bowtie","⧐̸":"| \\not\\triangleright","⧐":"| \\triangleright","⧏̸":"\\not\\triangleleft |","⧏":"\\triangleleft |","⧎":"","⧍":"\\triangle","⧌":"","⧋":"\\underline{\\triangle}","⧊":"\\dot{\\triangle}","⧉":"","⧈":"\\boxed{\\circ}","⧇":"\\boxed{\\circ}","⧆":"\\boxed{\\rightarrow}","⧅":"\\bcancel{\\square}","⧄":"\\cancel{\\square}","⧃":"\\odot","⧂":"\\odot","⦿":"\\odot","⦾":"\\odot","⦽":"\\varnothing","⦼":"\\oplus","⦻":"\\otimes","⦺":"","⦹":"\\varnothing","⦸":"\\varnothing","⦷":"\\ominus","⦶":"\\ominus","⦵":"\\ominus","⦴":"\\vec{\\varnothing}","⦳":"\\vec{\\varnothing}","⦲":"\\dot{\\varnothing}","⦱":"\\overline{\\varnothing}","⦰":"\\varnothing","⦯":"","⦮":"","⦭":"","⦬":"","⦫":"","⦪":"","⦩":"","⦨":"","⦧":"","⦦":"","⦥":"","⦤":"","⦣":"","⦢":"","⦡":"\\not\\lor","⦠":"\\bcancel{>}","⦂":":","⦁":"\\circ","❘":"|","▲":"\\bigtriangleup","⋿":"\\Epsilon","◻":"\\square","⋾":"\\overline{\\ni}","⋽":"\\overline{\\ni}","⋼":"\\in","⋻":"\\in","⋺":"\\in","⋹":"\\underline{\\in}","⋸":"\\underline{\\in}","⋷":"\\overline{\\in}","⋶":"\\overline{\\in}","⋵":"\\dot{\\in}","⋴":"\\in","⋳":"\\in","⋲":"\\in","⋰":"\\ddots","⋩":"\\underset{\\sim}{\\succ}","⋨":"\\underset{\\sim}{\\prec}","⋧":"\\underset{\\not\\sim}{>}","⋦":"\\underset{\\not\\sim}{<}","⋥":"\\not\\sqsupseteq","⋤":"\\not\\sqsubseteq","⋣":"\\not\\sqsupseteq","⋢":"\\not\\sqsubseteq","⋡":"\\nsucc","⋠":"\\nprec","⋟":"\\succ","⋞":"\\prec","⋝":"\\overline{>}","⋜":"\\overline{<}","⋛":"\\underset{>}{\\leq}","⋚":"\\underset{<}{\\geq}","⋕":"\\#","⋓":"\\cup","⋒":"\\cap","⋑":"\\supset","⋐":"\\subset","⋏":"\\wedge","⋎":"\\vee","⋍":"\\simeq","⋈":"\\bowtie","⋇":"\\ast","⋆":"\\star","⋄":"\\diamond","⊿":"\\triangle","⊾":"\\measuredangle","⊽":"\\overline{\\lor}","⊼":"\\overline{\\land}","⊻":"\\underline{\\lor}","⊺":"\\top","⊹":"","⊷":"\\circ\\multimap","⊶":"\\circ\\multimap","⊳":"\\triangleright","⊲":"\\triangleleft","⊱":"\\succ","⊰":"\\prec","⊫":"|\\models","⊪":"|\\models","⊧":"\\models","⊦":"\\vdash","⊝":"\\ominus","⊜":"\\ominus","⊛":"\\odot","⊚":"\\odot","⊔":"\\sqcup","⊓":"\\sqcap","⊒":"\\sqsupseteq","⊑":"\\sqsubseteq","⊐̸":"\\not\\sqsupset","⊐":"\\sqsupset","⊏̸":"\\not\\sqsubset","⊏":"\\sqsubset","⊎":"\\cup","⊍":"\\cup","⊌":"\\cup","≿̸":"\\not\\succsim","≿":"\\succsim","≾":"\\precsim","≹":"\\not\\overset{>}{<}","≸":"\\not\\overset{>}{<}","≷":"\\overset{>}{<}","≶":"\\overset{<}{>}","≵":"\\not\\geg","≴":"\\not\\leq","≳":"\\geg","≲":"\\leq","≬":"","≧":"\\geg","≦̸":"\\not\\leq","≦":"\\leq","≣":"\\overset{=}{=} ","≞":"\\overset{m}{=} ","≝":"\\overset{def}{=}","≘":"=","≖":"=","≕":"=:","≓":"\\doteq","≒":"\\doteq","≑":"\\doteq","≐":"\\doteq","≏̸":"","≏":"","≎̸":"","≎":"","≌":"\\approx","≋":"\\approx","≊":"\\approx","≂̸":"\\neq","≂":"=","∿":"\\sim","∾":"\\infty","∽̱":"\\sim","∽":"\\sim","∻":"\\sim","∺":":-:","∹":"-:","∸":"\\bot","∷":"::","∶":":","∣":"|","∟":"\\llcorner","∙":"\\cdot","∘":"\\circ","∗":"*","∕":"/","∎":"\\square","∍":"\\ni","∊":"\\in","∆":"\\Delta","⁄":"/","⪰̸":"\\nsucceq","⪰":"\\succeq","⪯̸":"\\npreceq","⪯":"\\preceq","⪈":"\\ngeqslant","⪇":"\\nleqslant","⧳":"\\Phi","⧦":"\\models","⧥":"\\not\\equiv","⧤":"\\approx\\neq","⧣":"\\neq","⧁":"\\circle","⧀":"\\circle","◦":"\\circle","◗":"\\circle","◖":"\\circle","●":"\\circle","◎":"\\circledcirc","◍":"\\circledcirc","◌":"\\circledcirc","◉":"\\circledcirc","◈":"\\diamond","◇":"\\diamond","◆":"\\diamond","◅":"\\triangleleft","◄":"\\triangleleft","◃":"\\triangleleft","◂":"\\triangleleft","◁":"\\triangleleft","◀":"\\triangleleft","▿":"\\triangledown","▾":"\\triangledown","▽":"\\triangledown","▼":"\\triangledown","▹":"\\triangleright","▸":"\\triangleright","▷":"\\triangleright","▶":"\\triangleright","▵":"\\triangle","▴":"\\triangle","△":"\\triangle","▱":"\\square","▰":"\\square","▯":"\\square","▮":"\\square","▭":"\\square","▫":"\\square","▪":"\\square","□":"\\square","■":"\\square","⋭":"\\not\\triangleright","⋬":"\\not\\triangleleft","⋫":"\\not\\triangleright","⋪":"\\not\\triangleleft","⋙":"\\ggg","⋘":"\\lll","⋗":"*>","⋖":"<*","⋔":"\\pitchfork","⋌":"","⋋":"","⋊":"\\rtimes","⋉":"\\ltimes","⊵":"\\triangleright","⊴":"","⊥":"\\bot","⊁":"\\nsucc","⊀":"\\preceq","≽":"\\succeq","≼":"\\preceq","≻":"\\succ","≺":"\\prec","≱":"\\geq/","≰":"\\leq/","≭":"\\neq","≫̸":"\\not\\gg","≫":"\\gg","≪̸":"\\not\\ll","≪":"\\ll","≩":"\\ngeqslant","≨":"\\nleqslant","≡":"\\equiv","≟":"\\doteq","≜":"\\triangleq","≛":"\\doteq","≚":"\\triangleq","≙":"\\triangleq","≗":"\\doteq","≔":":=","≍":"\\asymp","≇":"\\ncong","≆":"\\ncong","≅":"\\cong","≄":"\\not\\simeq","≃":"\\simeq","≁":"\\nsim","∦":"\\not\\parallel","∥":"\\parallel","∤":"\\not|","∝":"\\propto","==":"==","=":"="," ̿":"=","̿":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","≠":"\\neq","≢":"\\equiv /","≉":"\\approx /","∼":"\\sim","≈":"\\approx","≮":"</","<":"<","≯":">/",">=":">=",">":">","≥":"\\geq","≤":"\\leq","<=":"<=","⊋":"\\supsetneq","⊊":"\\subsetneq","⊉":"\\nsupseteq","⊈":"\\nsubseteq","⊇":"\\supseteq","⊆":"\\subseteq","⊅":"\\not\\supset","⊄":"\\not\\subset","⊃⃒":"\\supset |","⊃":"\\supset","⊂⃒":"\\subset |","⊂":"\\subset","∌":"\\not\\in","∉":"\\notin","∈":"\\in","∁":"C","∄":"\\nexists","∃":"\\exists","∀":"\\forall","∧":"\\land","&&":"\\&\\&","∨":"\\lor","⊯":"\\cancel{\\vDash}","⊮":"\\cancel{\\Vdash}","⊭":"\\nvDash","⊬":"\\nvDash","⊩":"\\Vdash","⊨":"\\vDash","⊤":"\\top","⊣":"\\dashv","⊢":"\\vdash","∋":"\\ni","⋱":"\\ddots","⋯":"\\hdots","⋮":"\\vdots","…":"\\hdots","϶":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","∵":"\\because","∴":"\\therefore ","⁣":"",",":",",";":";","⧽":"\\}","⧼":"\\{","⦘":"\\]","⦗":"\\[","⦖":"\\ll","⦕":"\\gg","⦔":"\\gg","⦓":"\\ll","⦒":"\\gg","⦑":"\\ll","⦐":"\\]","⦏":"\\]","⦎":"\\]","⦍":"\\[","⦌":"\\[","⦋":"\\]","⦊":"\\triangleright","⦉":"\\triangleleft","⦈":"|\\)","⦇":"\\(|","⦆":"|\\)","⦅":"\\(\\(","⦄":"|\\}","⦃":"\\{|","⦀":"\\||","⟯":"\\right)","⟮":"\\left(","⟭":"\\right]]","⟬":"\\left[[","⟫":"\\gg","⟪":"\\ll","⟩":"\\rangle","⟨":"\\langle","⟧":"\\right]]","⟦":"\\left[[","❳":"\\right)","❲":"\\left(","〉":"\\rangle","〈":"\\langle","⌋":"\\rfloor","⌊":"\\lfloor","⌉":"\\rceil","⌈":"\\lceil","‖":"\\parallel","}":"\\right}","{":"\\left{","]":"\\right]","[":"\\left[",")":"\\right)","(":"\\left(","”":'"',"“":"``","’":"'","‘":"`","%CE%B1":"\\alpha","%CE%B2":"\\beta","%CE%B3":"\\gamma","%CE%93":"\\Gamma","%CE%B4":"\\delta","%CE%94":"\\Delta","%CF%B5":"\\epsilon","%CE%B6":"\\zeta","%CE%B7":"\\eta","%CE%B8":"\\theta","%CE%98":"\\Theta","%CE%B9":"\\iota","%CE%BA":"\\kappa","%CE%BB":"\\lambda","%CE%BC":"\\mu","%CE%BD":"\\nu","%CE%BF":"\\omicron","%CF%80":"\\pi","%CE%A0":"\\Pi","%CF%81":"\\pho","%CF%83":"\\sigma","%CE%A3":"\\Sigma","%CF%84":"\\tau","%CF%85":"\\upsilon","%CE%A5":"\\Upsilon","%CF%95":"\\phi","%CE%A6":"\\Phi","%CF%87":"\\chi","%CF%88":"\\psi","%CE%A8":"\\Psi","%CF%89":"\\omega","%CE%A9":"\\Omega"}},598:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.allMathOperatorsByGlyph=t.allMathOperatorsByGlyphSpecial=void 0,t.allMathOperatorsByGlyphSpecial={'"ˍ"':"\\_",'"ˋ"':"ˋ",'"ˊ"':"ˊ",'"ˉ"':"ˉ",'"ˇ"':"",'"ˆ"':"\\hat",'"º"':"o",'"ª"':"a",'"ⅆ"':"d",'"ⅅ"':"\\mathbb{D}",'"土"':"\\pm",'"十"':"+",'"α"':"\\alpha",'"β"':"\\beta",'"γ"':"\\gamma",'"Γ"':"\\Gamma",'"δ"':"\\delta",'"Δ"':"\\Delta",'"ϵ"':"\\epsilon",'"ζ"':"\\zeta",'"η"':"\\eta",'"θ"':"\\theta",'"Θ"':"\\Theta",'"ι"':"\\iota",'"κ"':"\\kappa",'"λ"':"\\lambda",'"ν"':"\\nu",'"ο"':"\\omicron",'"π"':"\\pi",'"Π"':"\\Pi",'"ρ"':"\\rho",'"σ"':"\\sigma",'"Σ"':"\\Sigma",'"τ"':"\\tau",'"υ"':"\\upsilon",'"Υ"':"\\Upsilon",'"ϕ"':"\\phi",'"Φ"':"\\Phi",'"χ"':"\\chi",'"ψ"':"\\psi",'"Ψ"':"\\Psi",'"ω"':"\\omega",'"Ω"':"\\Omega",'"Ω"':"\\Omega",'"ℏ"':"\\hbar",'"ℜ"':"\\mathfrak{R}",'"Ѳ"':"\\theta",'"Ø"':"\\emptyset",'"ϱ"':"\\varrho",'"ф"':"\\phi",'"ℇ"':"\\varepsilon",'"Ρ"':"P",'"ᐁ"':"\\nabla",'"ƞ"':"\\eta",'"μ"':"\\mu",'"Ө"':"\\theta",'"ⅇ"':"\\text{e}",'"ɼ"':"r",'"ἱ"':"i",'"ϒ"':"\\Upsilon",'"ѳ"':"\\theta",'"ⁿ"':"^{n}",'"เ"':"\\prime",'"П"':"\\prod",'"о"':"o",'"ђ"':"\\hbar",'"Ʌ"':"\\Lambda",'"ῡ"':"\\bar{u}",'"φ"':"\\varphi",'"ȼ"':"c",'"Χ"':"\\mathsf{X}",'"ₙ"':"_{n}",'"ħ"':"\\hbar",'"T"':"T",'"$"':"\\$",'"𝛿"':"\\delta",'"𝜙"':"\\phi",'"𝞮"':"\\epsilon"},t.allMathOperatorsByGlyph={_:"\\underline","⏡":"\\underbrace","⏠":"\\overbrace","⏟":"\\underbrace","⏞":"\\overbrace","⏝":"\\underbrace","⏜":"\\overarc","⎵":"\\underbrace","⎴":"\\overbrace","⃜":"\\square","⃛":"\\square","":"","⁗":"''''","‾":"\\overline","―":"\\overline","‷":"```","‶":"``","‵":"`","‴":"'''","″":"''","‟":"``","„":",,","‛":"`","‚":",","^":"\\hat","˷":"\\sim","˝":"\\sim","˜":"\\sim","˚":"\\degree","˙":"\\cdot","˘":" ","¹":"1","¸":",","´":"´","³":"3","²":"2","°":"\\degree","¯":"\\overline","↛":"\\nrightarrow","¨":"\\cdot\\cdot","~":"\\sim","`":"`","--":"--","++":"++","&":"\\&","∜":"\\sqrt[4]{}","∛":"\\sqrt[3]{}","√":"\\sqrt{}","?":"?","@":"@","//":"//","!!":"!!","!":"!","♯":"\\#","♮":"","♭":"","′":"'","<>":"<>","**":"\\star\\star","∇":"\\nabla","∂":"\\partial","⊙":"\\bigodot","¬":"\\neg","∢":"\\measuredangle","∡":"\\measuredangle","∠":"\\angle","÷":"\\div","/":"/","∖":"\\backslash","\\":"\\backslash","%":"\\%","⊗":"\\bigotimes","·":"\\cdot","⨿":"\\coprod","⨯":"\\times","⋅":"\\cdot","⊡":"\\boxdot","⊠":"\\boxtimes","":"","⁃":"-","•":"\\cdot",".":".","*":"\\star","∪":"\\cup","∩":"\\cap","∐":"\\coprod","∏":"\\prod","≀":"","⫿":"","⫼":"\\mid\\mid\\mid","⨉":"\\times","⨈":"","⨇":"","⨆":"\\sqcup","⨅":"\\sqcap","⨂":"\\otimes","⨀":"\\odot","⋂":"\\cap","⋁":"\\vee","⋀":"\\wedge","⨄":"\\uplus","⨃":"\\cup","⋃":"\\cup","⨜":"\\underline{\\int}","⨛":"\\overline{\\int}","⨚":"\\int","⨙":"\\int","⨘":"\\int","⨗":"\\int","⨖":"\\oint","⨕":"\\oint","⨔":"\\int","⨓":"\\int","⨒":"\\int","⨑":"\\int","⨐":"\\int","⨏":"\\bcancel{\\int}","⨎":"","⨍":"\\hcancel{\\int}","⨌":"\\iiiint","∳":"\\oint","∲":"\\oint","∱":"\\int","∰":"\\oiint","∯":"\\oiint","∮":"\\oint","∫":"\\int","⨁":"\\oplus","⊘":"\\oslash","⊖":"\\ominus","⊕":"\\oplus","∭":"\\iiint","∬":"\\iint","⨋":"","⨊":"","∑":"\\sum","⊟":"\\boxminus","⊞":"\\boxplus","∔":"\\dot{+}","∓":"+-","−":"-","±":"\\pm","-":"-","+":"+","⭆":"\\Rrightarrow","⭅":"\\Lleftarrow","⧴":":\\rightarrow","⧯":"","⧟":"\\bullet-\\bullet","⦟":"\\angle","⦞":"\\measuredangle","⦝":"\\measuredangle","⦜":"\\perp","⦛":"\\measuredangle","⦚":"","⦙":"\\vdots","⥿":"","⥾":"","⥽":"\\prec","⥼":"\\succ","⥻":"\\underset{\\rightarrow}{\\supset}","⥺":"","⥹":"\\underset{\\rightarrow}{\\subset}","⥸":"\\underset{\\rightarrow}{>}","⥷":"","⥶":"\\underset{\\leftarrow}{<}","⥵":"\\underset{\\approx}{\\rightarrow}","⥴":"\\underset{\\sim}{\\rightarrow}","⥳":"\\underset{\\sim}{\\leftarrow}","⥲":"\\overset{\\sim}{\\rightarrow}","⥱":"\\overset{=}{\\rightarrow}","⥰":"","⥯":"","⥮":"","⥭":"\\overline{\\rightharpoondown}","⥬":"\\underline{\\rightharpoonup}","⥫":"\\overline{\\leftharpoondown}","⥪":"\\underline{\\leftharpoonup}","⥩":"\\rightleftharpoons","⥨":"\\rightleftharpoons","⥧":"\\rightleftharpoons","⥦":"\\rightleftharpoons","⥥":"\\Downarrow","⥤":"\\Rightarrow","⥣":"\\Uparrow","⥢":"\\Leftarrow","⥡":"\\downarrow","⥠":"\\uparrow","⥟":"\\rightarrow","⥞":"\\leftarrow","⥝":"\\downarrow","⥜":"\\uparrow","⥛":"\\rightarrow","⥚":"\\leftarrow","⥙":"\\downarrow","⥘":"\\uparrow","⥗":"\\rightarrow","⥖":"\\leftarrow","⥕":"\\downarrow","⥔":"\\uparrow","⥓":"\\rightarrow","⥒":"\\leftarrow","⥑":"\\updownarrow","⥐":"\\leftrightarrow","⥏":"\\updownarrow","⥎":"\\leftrightarrow","⥍":"\\updownarrow","⥌":"\\updownarrow","⥋":"\\leftrightarrow","⥊":"\\leftrightarrow","⥉":"","⥈":"\\leftrightarrow","⥇":"\\nrightarrow","⥆":"","⥅":"","⥄":"\\rightleftarrows","⥃":"\\leftrightarrows","⥂":"\\rightleftarrows","⥁":"\\circlearrowright","⥀":"\\circlearrowleft","⤿":"\\rightarrow","⤾":"\\leftarrow","⤽":"\\leftarrow","⤼":"\\rightarrow","⤻":"\\rightarrow","⤺":"\\leftarrow","⤹":"\\downarrow","⤸":"\\downarrow","⤷":"\\Rsh","⤶":"\\Lsh","⤵":"\\downarrow","⤴":"\\uparrow","⤳":"\\rightarrow","⤲":"\\leftarrow","⤱":" ","⤰":" ","⤯":" ","⤮":" ","⤭":" ","⤬":"\\times","⤫":"\\times","⤪":" ","⤩":" ","⤨":" ","⤧":" ","⤦":" ","⤥":" ","⤤":" ","⤣":" ","⤢":" ","⤡":" ","⤠":"\\mapsto\\cdot","⤟":"\\cdot\\leftarrow","⤞":"\\rightarrow\\cdot","⤝":"\\leftarrow","⤜":"\\rightarrow","⤛":"\\leftarrow","⤚":"\\rightarrow","⤙":"\\leftarrow","⤘":"\\rightarrow","⤗":"\\rightarrow","⤖":"\\rightarrow","⤕":"\\rightarrow","⤔":"\\rightarrow","⤓":"\\downarrow","⤒":"\\uparrow","⤑":"\\rightarrow","⤐":"\\rightarrow","⤏":"\\rightarrow","⤎":"\\leftarrow","⤍":"\\rightarrow","⤌":"\\leftarrow","⤋":"\\Downarrow","⤊":"\\Uparrow","⤉":"\\uparrow","⤈":"\\downarrow","⤇":"\\Rightarrow","⤆":"\\Leftarrow","⤅":"\\mapsto","⤄":"\\nLeftrightarrow","⤃":"\\nRightarrow","⤂":"\\nLeftarrow","⤁":"\\rightsquigarrow","⤀":"\\rightsquigarrow","⟿":"\\rightsquigarrow","⟾":"\\Rightarrow","⟽":"\\Leftarrow","⟼":"\\mapsto","⟻":"\\leftarrow","⟺":"\\Longleftrightarrow","⟹":"\\Longrightarrow","⟸":"\\Longleftarrow","⟷":"\\leftrightarrow","⟶":"\\rightarrow","⟵":"\\leftarrow","⟱":"\\Downarrow","⟰":"\\Uparrow","⊸":"\\rightarrow","⇿":"\\leftrightarrow","⇾":"\\rightarrow","⇽":"\\leftarrow","⇼":"\\nleftrightarrow","⇻":"\\nrightarrow","⇺":"\\nleftarrow","⇹":"\\nleftrightarrow","⇸":"\\nrightarrow","⇷":"\\nleftarrow","⇶":"\\Rrightarrow","⇵":"","⇴":"\\rightarrow","⇳":"\\Updownarrow","⇲":"\\searrow","⇱":"\\nwarrow","⇰":"\\Leftarrow","⇯":"\\Uparrow","⇮":"\\Uparrow","⇭":"\\Uparrow","⇬":"\\Uparrow","⇫":"\\Uparrow","⇪":"\\Uparrow","⇩":"\\Downarrow","⇨":"\\Rightarrow","⇧":"\\Uparrow","⇦":"\\Leftarrow","⇥":"\\rightarrow","⇤":"\\leftarrow","⇣":"\\downarrow","⇢":"\\rightarrow","⇡":"\\uparrow","⇠":"\\leftarrow","⇟":"\\downarrow","⇞":"\\uparrow","⇝":"\\rightsquigarrow","⇜":"\\leftarrow","⇛":"\\Rrightarrow","⇚":"\\Lleftarrow","⇙":"\\swarrow","⇘":"\\searrow","⇗":"\\nearrow","⇖":"\\nwarrow","⇕":"\\Updownarrow","⇔":"\\Leftrightarrow","⇓":"\\Downarrow","⇒":"\\Rightarrow","⇑":"\\Uparrow","⇐":"\\Leftarrow","⇏":"\\nRightarrow","⇎":"\\nLeftrightarrow","⇍":"\\nLeftarrow","⇌":"\\rightleftharpoons","⇋":"\\leftrightharpoons","⇊":"\\downdownarrows","⇉":"\\rightrightarrows","⇈":"\\upuparrows","⇇":"\\leftleftarrows","⇆":"\\leftrightarrows","⇅":"","⇄":"\\rightleftarrows","⇃":"\\downharpoonleft","⇂":"\\downharpoonright","⇁":"\\rightharpoondown","⇀":"\\rightharpoonup","↿":"\\upharpoonleft","↾":"\\upharpoonright","↽":"\\leftharpoondown","↼":"\\leftharpoonup","↻":"\\circlearrowright","↺":"\\circlearrowleft","↹":"\\leftrightarrows","↸":"\\overline{\\nwarrow}","↷":"\\curvearrowright","↶":"\\curvearrowleft","↵":"\\swarrow","↴":"\\searrow","↳":"\\Rsh","↲":"\\Lsh","↱":"\\Rsh","↰":"\\Lsh","↯":"\\swarrow","↮":"","↭":"\\leftrightsquigarrow","↬":"\\looparrowright","↫":"\\looparrowleft","↪":"\\hookrightarrow","↩":"\\hookleftarrow","↨":"\\underline{\\updownarrow}","↧":"\\downarrow","↦":"\\rightarrowtail","↥":"\\uparrow","↤":"\\leftarrowtail","↣":"\\rightarrowtail","↢":"\\leftarrowtail","↡":"\\downarrow","↠":"\\twoheadrightarrow","↟":"\\uparrow","↞":"\\twoheadleftarrow","↝":"\\nearrow","↜":"\\nwarrow","↚":"","↙":"\\swarrow","↘":"\\searrow","↗":"\\nearrow","↖":"\\nwarrow","↕":"\\updownarrow","↔":"\\overleftrightarrow","↓":"\\downarrow","→":"\\overrightarrow","↑":"\\uparrow","←":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\mid","⫾":"","⫽":"//","⫻":"///","⫺":"","⫹":"","⫸":"","⫷":"","⫶":"\\vdots","⫵":"","⫴":"","⫳":"","⫲":"\\nparallel","⫱":"","⫰":"","⫯":"","⫮":"\\bcancel{\\mid}","⫭":"","⫬":"","⫫":"","⫪":"","⫩":"","⫨":"\\underline{\\perp}","⫧":"\\overline{\\top}","⫦":"","⫥":"","⫤":"","⫣":"","⫢":"","⫡":"","⫠":"\\perp","⫟":"\\top","⫞":"\\dashv","⫝̸":"","⫝":"","⫛":"\\pitchfork","⫚":"","⫙":"","⫘":"","⫗":"","⫖":"","⫕":"","⫔":"","⫓":"","⫒":"","⫑":"","⫐":"","⫏":"","⫎":"","⫍":"","⫌":"\\underset{\\neq}{\\supset}","⫋":"\\underset{\\neq}{\\subset}","⫊":"\\underset{\\approx}{\\supset}","⫉":"\\underset{\\approx}{\\subset}","⫈":"\\underset{\\sim}{\\supset}","⫇":"\\underset{\\sim}{\\subset}","⫆":"\\supseteqq","⫅":"\\subseteqq","⫄":"\\dot{\\supseteq}","⫃":"\\dot{\\subseteq}","⫂":"\\underset{\\times}{\\supset}","⫁":"\\underset{\\times}{\\subset}","⫀":"\\underset{+}{\\supset}","⪿":"\\underset{+}{\\subset}","⪾":"","⪽":"","⪼":"\\gg ","⪻":"\\ll","⪺":"\\underset{\\cancel{\\approx}}{\\succ}","⪹":"\\underset{\\cancel{\\approx}}{\\prec}","⪸":"\\underset{\\approx}{\\succ}","⪷":"\\underset{\\approx}{\\prec}","⪶":"\\underset{\\cancel{=}}{\\succ}","⪵":"\\underset{\\cancel{=}}{\\prec}","⪴":"\\underset{=}{\\succ}","⪳":"\\underset{=}{\\prec}","⪲":"","⪱":"","⪮":"","⪭":"\\underline{\\hcancel{>}}","⪬":"\\underline{\\hcancel{>}}","⪫":"\\hcancel{>}","⪪":"\\hcancel{<}","⪩":"","⪨":"","⪧":"\\vartriangleright","⪦":"\\vartriangleleft","⪥":"><","⪤":"><","⪣":"\\underline{\\ll}","⪢̸":"\\cancel{\\gg}","⪢":"\\gg","⪡̸":"\\cancel{\\ll}","⪡":"\\ll","⪠":"\\overset{\\sim}{\\geqq}","⪟":"\\overset{\\sim}{\\leqq}","⪞":"\\overset{\\sim}{>}","⪝":"\\overset{\\sim}{<}","⪜":"","⪛":"","⪚":"\\overset{=}{>}","⪙":"\\overset{=}{<}","⪘":"","⪗":"","⪖":"","⪕":"","⪔":"","⪓":"","⪒":"\\underset{=}{\\gtrless}","⪑":"\\underset{=}{\\lessgtr}","⪐":"\\underset{<}{\\gtrsim}","⪏":"\\underset{>}{\\lesssim}","⪎":"\\underset{\\simeq}{>}","⪍":"\\underset{\\simeq}{<}","⪌":"\\gtreqqless","⪋":"\\lesseqqgtr","⪊":"\\underset{\\cancel{\\approx}}{>}","⪉":"\\underset{\\approx}{<}","⪆":"\\underset{\\approx}{>}","⪅":"\\underset{\\approx}{<}","⪄":"","⪃":"","⪂":"","⪁":"","⪀":"","⩿":"","⩾̸":"\\bcancel{\\geq}","⩾":"\\geq","⩽̸":"\\bcancel{\\leq}","⩽":"\\leq","⩼":"","⩻":"","⩺":"","⩹":"","⩸":"\\overset{\\dots}{\\equiv}","⩷":"","⩶":"===","⩵":"==","⩴":"::=","⩳":"","⩲":"\\underset{=}{+}","⩱":"\\overset{=}{+}","⩰":"\\overset{\\approx}{=}","⩯":"\\overset{\\wedge}{=}","⩮":"\\overset{*}{=}","⩭":"\\dot{\\approx}","⩬":"","⩫":"","⩪":"\\dot{\\sim}","⩩":"","⩨":"","⩧":"\\dot{\\equiv}","⩦":"\\underset{\\cdot}{=}","⩥":"","⩤":"","⩣":"\\underset{=}{\\vee}","⩢":"\\overset{=}{\\vee}","⩡":"ul(vv)","⩠":"\\underset{=}{\\wedge}","⩟":"\\underline{\\wedge}","⩞":"\\overset{=}{\\wedge}","⩝":"\\hcancel{\\vee}","⩜":"\\hcancel{\\wedge}","⩛":"","⩚":"","⩙":"","⩘":"\\vee","⩗":"\\wedge","⩖":"","⩕":"","⩔":"","⩓":"","⩒":"\\dot{\\vee}","⩑":"\\dot{\\wedge}","⩐":"","⩏":"","⩎":"","⩍":"\\overline{\\cap}","⩌":"\\overline{\\cup}","⩋":"","⩊":"","⩉":"","⩈":"","⩇":"","⩆":"","⩅":"","⩄":"","⩃":"\\overline{\\cap}","⩂":"\\overline{\\cup}","⩁":"","⩀":"","⨾":"","⨽":"\\llcorner","⨼":"\\lrcorner","⨻":"","⨺":"","⨹":"","⨸":"","⨷":"","⨶":"\\hat{\\otimes}","⨵":"","⨴":"","⨳":"","⨲":"\\underline{\\times}","⨱":"\\underline{\\times}","⨰":"\\dot{\\times}","⨮":"\\bigodot","⨭":"\\bigodot","⨬":"","⨫":"","⨪":"","⨩":"","⨨":"","⨧":"","◻":"\\square","⨦":"\\underset{\\sim}{+}","⨥":"\\underset{\\circ}{+}","⨤":"\\overset{\\sim}{+}","⨣":"\\hat{+}","⨢":"\\dot{+}","⨡":"\\upharpoonright","⨠":">>","⨟":"","⨞":"\\triangleleft","⨝":"\\bowtie","⧿":"","⧾":"+","⧻":"\\hcancel{|||}","⧺":"\\hcancel{||}","⧹":"\\backslash","⧸":"/","⧷":"hcancel{\backslash}","⧶":"","⧵":"\\backslash","⧲":"\\Phi","⧱":"","⧰":"","⧮":"","⧭":"","⧬":"","⧫":"\\lozenge","⧪":"","⧩":"","⧨":"","⧧":"\\ddagger","⧢":"\\sqcup\\sqcup","⧡":"","⧠":"\\square","⧞":"","⧝":"","⧜":"","⧛":"\\{\\{","⧙":"\\{","⧘":"\\}","⧗":"","⧖":"","⧕":"\\bowtie","⧔":"\\bowtie","⧓":"\\bowtie","⧒":"\\bowtie","⧑":"\\bowtie","⧐̸":"| \\not\\triangleright","⧐":"| \\triangleright","⧏̸":"\\not\\triangleleft |","⧏":"\\triangleleft |","⧎":"","⧍":"\\triangle","⧌":"","⧋":"\\underline{\\triangle}","⧊":"\\dot{\\triangle}","⧉":"","⧈":"\\boxed{\\circ}","⧇":"\\boxed{\\circ}","⧆":"\\boxed{\\rightarrow}","⧅":"\\bcancel{\\square}","⧄":"\\cancel{\\square}","⧃":"\\odot","⧂":"\\odot","⦿":"\\odot","⦾":"\\odot","⦽":"\\varnothing","⦼":"\\oplus","⦻":"\\otimes","⦺":"","⦹":"\\varnothing","⦸":"\\varnothing","⦷":"\\ominus","⦶":"\\ominus","⦵":"\\ominus","⦴":"\\vec{\\varnothing}","⦳":"\\vec{\\varnothing}","⦲":"\\dot{\\varnothing}","⦱":"\\overline{\\varnothing}","⦰":"\\varnothing","⦯":"\\measuredangle","⦮":"\\measuredangle","⦭":"\\measuredangle","⦬":"\\measuredangle","⦫":"\\measuredangle","⦪":"\\measuredangle","⦩":"\\measuredangle","⦨":"\\measuredangle","⦧":"","⦦":"","⦥":"","⦤":"","⦣":"\\ulcorner","⦢":"\\measuredangle","⦡":"\\not\\lor","⦠":"\\bcancel{>}","⦂":":","⦁":"\\cdot","❘":"\\mid","▲":"\\bigtriangleup","⋿":"\\Epsilon","⋾":"\\overline{\\ni}","⋽":"\\overline{\\ni}","⋼":"\\in","⋻":"\\in","⋺":"\\in","⋹":"\\underline{\\in}","⋸":"\\underline{\\in}","⋷":"\\overline{\\in}","⋶":"\\overline{\\in}","⋵":"\\dot{\\in}","⋴":"\\in","⋳":"\\in","⋲":"\\in","⋰":"\\ddots","։":":","⋩":"\\underset{\\sim}{\\succ}","⋨":"\\underset{\\sim}{\\prec}","⋧":"\\underset{\\not\\sim}{>}","⋦":"\\underset{\\not\\sim}{<}","⋥":"\\not\\sqsupseteq","⋤":"\\not\\sqsubseteq","⋣":"\\not\\sqsupseteq","⋢":"\\not\\sqsubseteq","⋡":"\\nsucc","⋠":"\\nprec","⋟":"\\succ","⋞":"\\prec","⋝":"\\overline{>}","⋜":"\\overline{<}","⋛":"\\underset{>}{\\leq}","⋚":"\\underset{<}{\\geq}","⋕":"\\#","⋓":"\\cup","⋒":"\\cap","⋑":"\\supset","⋐":"\\subset","⋏":"\\wedge","⋎":"\\vee","⋍":"\\simeq","⋈":"\\Join","⋇":"\\ast","⋆":"\\star","⋄":"\\diamond","⊿":"\\triangle","⊾":"\\measuredangle","⊽":"\\overline{\\lor}","⊼":"\\overline{\\land}","⊻":"\\underline{\\lor}","⊺":"\\top","⊹":"","⊷":"\\circ\\multimap","⊶":"\\circ\\multimap","⊳":"\\triangleright","⊲":"\\triangleleft","⊱":"\\succ","⊰":"\\prec","⊫":"|\\models","⊪":"|\\models","⊧":"\\models","⊦":"\\vdash","⊝":"\\ominus","⊜":"\\ominus","⊛":"\\odot","⊚":"\\odot","⊔":"\\sqcup","⊓":"\\sqcap","⊒":"\\sqsupseteq","⊑":"\\sqsubseteq","⊐̸":"\\not\\sqsupset","⊐":"\\sqsupset","⊏̸":"\\not\\sqsubset","⊏":"\\sqsubset","⊎":"\\cup","⊍":"\\cup","⊌":"\\cup","≿̸":"\\not\\succsim","≿":"\\succsim","≾":"\\precsim","≹":"\\not\\overset{>}{<}","≸":"\\not\\overset{>}{<}","≷":"\\overset{>}{<}","≶":"\\overset{<}{>}","≵":"\\not\\geg","≴":"\\not\\leq","≳":"\\geg","≲":"\\leq","≬":"","≧":"\\geg","≦̸":"\\not\\leq","≦":"\\leq","≣":"\\overset{=}{=} ","≞":"\\overset{m}{=} ","≝":"\\overset{def}{=}","≘":"=","≖":"=","≕":"=:","≓":"\\doteq","≒":"\\doteq","≑":"\\doteq","≐":"\\doteq","≏̸":"","≏":"","≎̸":"","≎":"","≌":"\\approx","≋":"\\approx","≊":"\\approx","≂̸":"\\neq","≂":"=","∿":"\\sim","∾":"\\infty","∽̱":"\\sim","∽":"\\sim","∻":"\\sim","∺":":-:","∹":"-:","∸":"\\bot","∷":"::","∶":":","∣":"\\mid","∟":"\\llcorner","∘":"\\circ","∗":"*","∕":"/","∎":"\\square","∍":"\\ni","∊":"\\in","∆":"\\Delta","⁄":"/","⪰̸":"\\nsucceq","⪰":"\\succeq","⪯̸":"\\npreceq","⪯":"\\preceq","⪈":"\\ngeqslant","⪇":"\\nleqslant","⧳":"\\Phi","⧦":"\\models","⧥":"\\not\\equiv","⧤":"\\approx\\neq","⧣":"\\neq","⧁":"\\circle","⧀":"\\circle","◦":"\\circle","◗":"\\circle","◖":"\\circle","●":"\\circle","◎":"\\circledcirc","◍":"\\circledcirc","◌":"\\circledcirc","◉":"\\circledcirc","◈":"\\diamond","◇":"\\diamond","◆":"\\diamond","◅":"\\triangleleft","◄":"\\triangleleft","◃":"\\triangleleft","◂":"\\triangleleft","◁":"\\triangleleft","◀":"\\triangleleft","▿":"\\triangledown","▾":"\\triangledown","▽":"\\triangledown","▼":"\\triangledown","▹":"\\triangleright","▸":"\\triangleright","▷":"\\triangleright","▶":"\\triangleright","▵":"\\triangle","▴":"\\triangle","△":"\\triangle","▱":"\\square","▰":"\\blacksquare","▯":"\\square","▮":"\\blacksquare","▭":"\\square","▫":"\\square","▪":"\\square","□":"\\square","■":"\\blacksquare","⋭":"\\not\\triangleright","⋬":"\\not\\triangleleft","⋫":"\\not\\triangleright","⋪":"\\not\\triangleleft","⋙":"\\ggg","⋘":"\\lll","⋗":"*>","⋖":"<*","⋔":"\\pitchfork","⋌":"","⋋":"\\bowtie","⋊":"\\ltimes","⋉":"\\rtimes","⊵":"\\triangleright","\\triangleleft":"","⊥":"\\bot","⊁":"\\nsucc","⊀":"\\preceq","≽":"\\succeq","≼":"\\preceq","≻":"\\succ","≺":"\\prec","≱":"\\geq/","≰":"\\leq/","≭":"\\neq","≫̸":"\\not\\gg","≫":"\\gg","≪̸":"\\not\\ll","≪":"\\ll","≩":"\\ngeqslant","≨":"\\nleqslant","≡":"\\equiv","≟":"\\doteq","≜":"\\triangleq","≛":"\\doteq","≚":"\\triangleq","≙":"\\triangleq","≗":"\\doteq","≔":":=","≍":"\\asymp","≇":"\\ncong","≆":"\\ncong","≅":"\\cong","≄":"\\not\\simeq","≃":"\\simeq","≁":"\\nsim","∦":"\\not\\parallel","∥":"\\parallel","∤":"\\not|","∝":"\\propto","==":"==","=":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","≠":"\\neq","≢":"\\equiv /","≉":"\\approx /","∼":"\\sim","≈":"\\approx","≮":"</","<":"<","≯":">/",">=":">=",">":">","≥":"\\geq","≤":"\\leq","<=":"<=","⊋":"\\supsetneq","⊊":"\\subsetneq","⊉":"\\nsupseteq","⊈":"\\nsubseteq","⊇":"\\supseteq","⊆":"\\subseteq","⊅":"\\not\\supset","⊄":"\\not\\subset","⊃⃒":"\\supset |","⊃":"\\supset","⊂⃒":"\\subset |","⊂":"\\subset","∌":"\\not\\in","∉":"\\notin","∈":"\\in","∁":"C","∄":"\\nexists","∃":"\\exists","∀":"\\forall","∧":"\\land","&&":"\\&\\&","∨":"\\lor","⊯":"\\cancel{\\vDash}","⊮":"\\cancel{\\Vdash}","⊭":"\\nvDash","⊬":"\\nvDash","⊩":"\\Vdash","⊨":"\\vDash","⊤":"\\top","⊣":"\\dashv","⊢":"\\vdash","∋":"\\ni","⋱":"\\ddots","⋯":"\\hdots","⋮":"\\vdots","϶":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","∵":"\\because","∴":"\\therefore ","":"\\llbracket",",":",",";":";","⧽":"\\}","⧼":"\\{","⦘":"\\]","⦗":"\\[","⦖":"\\ll","⦕":"\\gg","⦔":"\\gg","⦓":"\\ll","⦒":"\\gg","⦑":"\\ll","⦐":"\\]","⦏":"\\]","⦎":"\\]","⦍":"\\[","⦌":"\\[","⦋":"\\]","⦊":"\\triangleright","⦉":"\\triangleleft","⦈":"|\\)","⦇":"\\(|","⦆":"|\\)","⦅":"\\(\\(","⦄":"|\\}","⦃":"\\{|","⦀":"\\||","⟯":"\\right]","⟮":"\\left[","⟭":"\\right]]","⟬":"\\left[[","⟫":"\\gg","⟪":"\\ll","⟧":"\\)|","⟦":"\\(|","❳":"\\right)","❲":"\\left(","〉":"\\rangle","〈":"\\langle","⌋":"\\rfloor","⌊":"\\lfloor","⌉":"\\rceil","⌈":"\\lceil","‖":"\\parallel","}":"\\right}","{":"\\left{","]":"\\right]","[":"\\left[",")":"\\right)","(":"\\left(","”":'\\"',"“":"\\text{``}","’":"'","‘":"`","∅":"\\emptyset","⟲":"\\circlearrowleft","⟳":"\\circlearrowright","×":"\\times","½":"\\dfrac{1}{2}","✓":"\\checkmark","⟩":"\\rangle","⟨":"\\langle","¼":"\\dfrac{1}{4}","…":"\\ldots","∙":"\\cdot","∞":"\\infty","⁺":"^{+}","⁻":"^{-}","⁼":"^{=}","⁽":"^{(}","⁾":"^{)}","〗":"\\)|","〖":"\\langle",";":";","൦":"\\circ","┴":"\\perp","✕":"\\times","⎻":"-","»":"\\gg","⬆":"\\uparrow","⬇":"\\downarrow","⬅":"\\leftarrow","➡":"\\rightarrow","⎼":"-","⎜":"\\mid","⎥":"\\mid","⮕":"\\rightarrow","・":"\\cdot","¦":"\\mid","£":"\\pounds","¥":"\\yen","✗":"\\times","✔":"\\checkmark","«":"\\ll","†":"\\dagger","│":"\\mid","#":"\\#","℃":"\\text{\\textdegree C}","℉":"\\text{\\textdegree F}","█":"\\blacksquare","℧":"\\mho","‡":"\\ddagger","˳":"\\cdot","।":"\\mid","€":"\\euro"}},2335:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.allMathSymbolsByChar=void 0,t.allMathSymbolsByChar={" ":"\\textrm{ }","∃":"\\exists","∀":"\\forall","⇔":"\\iff","⇒":"=>","¬":"\\neg","ℤ":"\\mathbb{Z}","ℝ":"\\mathbb{R}","ℚ":"\\mathbb{Q}","ℕ":"\\mathbb{N}","ℂ":"CC","□":"\\square","⋄":"\\diamond","△":"\\triangle","⌢":"\\frown","∠":"\\angle","⋱":"\\ddots","⋮":"\\vdots","∵":"\\because","∴":"\\therefore","∼":"\\sim","≁":"\\nsim","ℵ":"\\aleph","∅":"\\oslash","±":"\\pm","∇":"\\nabla","∂":"\\partial","∮":"\\oint","∫":"\\int","⋃":"\\cup","∪":"\\cup","⋂":"\\cap","∩":"\\cap","⋁":"\\vee","∨":"\\vee","⋀":"\\wedge","∧":"\\wedge","∏":"\\prod","∑":"\\sum","⊙":"\\bigodot","⊗":"\\bigoplus","⊕":"o+","∘":"@","⋈":"\\bowtie","⋊":"\\rtimes","⋉":"\\ltimes","÷":"\\div","×":"\\times","\\":"\\backslash","⋆":"\\star","∗":"\\star","⋅":"\\cdot","Ω":"\\Omega","ω":"\\omega","Ψ":"\\Psi","ψ":"\\psi","χ":"\\chi","φ":"\\varphi","Φ":"\\Phi","ϕ":"\\phi","υ":"\\upsilon","τ":"\\tau","Σ":"\\Sigma","σ":"\\sigma","ρ":"\\rho","Π":"\\Pi","π":"\\pi","Ξ":"\\Xi","ξ":"\\xi","ν":"\\nu","μ":"\\mu","Λ":"\\Lambda","λ":"\\lambda","κ":"\\kappa","ι":"\\iota","ϑ":"\\vartheta","Θ":"\\Theta","θ":"\\theta","η":"\\eta","ζ":"\\zeta","ɛ":"\\varepsilon","◻":"\\square","ε":"\\epsilon","Δ":"\\Delta","δ":"\\delta","Γ":"\\Gamma","γ":"\\gamma","β":"\\beta","α":"\\alpha","∞":"\\infty","":"\\text{\\textdir TRT}","":"\\text{\\textdir LTR}"}},4104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.allMathSymbolsByGlyph=t.allMathSymbolsByGlyphSpecial=void 0,t.allMathSymbolsByGlyphSpecial={'"ℵ"':"\\aleph",'"Ω"':"\\Omega",'"ω"':"\\omega",'"Ψ"':"\\Psi",'"ψ"':"\\psi",'"χ"':"\\chi",'"φ"':"\\varphi",'"Φ"':"\\Phi",'"ϕ"':"\\phi",'"υ"':"\\upsilon",'"τ"':"\\tau",'"Σ"':"\\Sigma",'"σ"':"\\sigma",'"ρ"':"\\rho",'"Π"':"\\Pi",'"π"':"\\pi",'"Ξ"':"\\Xi",'"ξ"':"\\xi",'"ν"':"\\nu",'"μ"':"\\mu",'"Λ"':"\\Lambda",'"λ"':"\\lambda",'"κ"':"\\kappa",'"ι"':"\\iota",'"ϑ"':"\\vartheta",'"Θ"':"\\Theta",'"θ"':"\\theta",'"η"':"\\eta",'"ζ"':"\\zeta",'"ɛ"':"\\varepsilon",'"ε"':"\\epsilon",'"Δ"':"\\Delta",'"δ"':"\\delta",'"Γ"':"\\Gamma",'"γ"':"\\gamma",'"β"':"\\beta",'"α"':"\\alpha",'"ϵ"':"\\epsilon",'"µ"':"\\mu",'"ı"':"\\imath",'"ม"':"\\mathbf{m}",'"Ω"':"\\Omega",'"त"':" ",'"ß"':"\\ss",'"Ћ"':"\\hbar",'"เ"':"\\prime",'"白"':" ",'"ℸ"':"\\wp",'"퓰"':" ",'"Ө"':"\\theta",'"ⁿ"':"^{n}",'"ℏ"':"\\hbar",'"ℜ"':"\\mathfrak{R}",'"Ѳ"':"\\theta",'"Ø"':"\\emptyset",'"ϱ"':"\\varrho",'"ф"':"\\phi",'"Ρ"':"P",'"ᐁ"':"\\nabla",'"ƞ"':"\\eta",'"ɣ"':"\\gamma",'"ћ"':"\\hbar",'"Ɛ"':"\\varepsilon",'"ⅅ"':"\\_{D}",'"𝜆"':"\\lambda",'"𝑥"':"x",'"𝑦"':"y",'"𝑧"':"z",'"𝑖"':"i",'"𝑗"':"j",'"𝑘"':"k",'"𝑚"':"m",'"𝑒"':"e",'"𝑟"':"r",'"ɳ"':"\\eta",'"Є"':"\\epsilon",'"є"':"\\epsilon",'"𝜀"':"\\epsilon",'"п"':"\\pi",'"Ν"':"\\nu",'"ɵ"':"\\theta",'"ϴ"':"\\theta",'"ɸ"':"\\phi",'"Ӷ"':"\\Gamma",'"ɭ"':"\\ell",'"ʋ"':"\\upsilon",'"𝛟"':"\\varphi",'"Ф"':"\\Phi",'"ⅈ"':"i",'"ο"':"o",'"ơ"':"o",'"ƒ"':"f",'"ṁ"':"m",'"Փ"':"\\Phi",'"ħ"':"\\hbar",'"ፈ"':" ",'"ế"':"\\hat{e}",'"О"':"0",'"Υ"':"Y",'"х"':"x",'"𝓏"':"z",'"𝓎"':"y",'"𝓍"':"x",'"р"':"p",'"а"':"a",'"ℇ"':"\\varepsilon",'"ⅇ"':"\\text{e}",'"ɼ"':"r",'"ἱ"':"i",'"ˆ"':"\\hat{}",'"ϒ"':"\\Upsilon",'"ѳ"':"\\theta",'"П"':"\\prod",'"о"':"o",'"ђ"':"\\hbar",'"Ʌ"':"\\Lambda",'"土"':"\\pm",'"十"':"+",'"ῡ"':"\\bar{u}",'"ȼ"':"c",'"Χ"':"\\mathsf{X}",'"ₙ"':"_{n}",'"T"':"T",'"∙"':"\\cdot",'"〗"':"\\rangle",'"〖"':"\\langle",'";"':";",'"𝛽"':"\\beta",'"⍵"':"\\omega",'"℘"':"\\wp",'"𝜋"':"\\pi",'"𝜓"':"\\psi",'"⍬"':"\\theta",'"𝜑"':"\\varphi",'"⍴"':"\\rho",'"🇽"':"x",'"𝞮"':"\\epsilon",'"𝜙"':"\\phi",'"𝛿"':"\\delta",'"$"':"\\$",'"m"':"m",'"𝚵"':"\\Xi",'"𝑝"':"p",'"𝑞"':"q",'"𝑠"':"s",'"𝑡"':"t",'"𝑢"':"u",'"𝑣"':"v",'"𝑤"':"w",'"𝑎"':"a",'"𝑏"':"b",'"𝑐"':"c",'"𝑑"':"d",'"𝑓"':"f",'"𝑔"':"g",'"𝑙"':"l",'"𝑛"':"n",'"𝑜"':"o",'"𝔀"':"w",'"𝚟"':"v"},t.allMathSymbolsByGlyph={" ":"\\textrm{ }","∃":"\\exists","∀":"\\forall","⇔":"\\iff","⇒":"\\Rightarrow","¬":"\\neg","□":"\\square","⋄":"\\diamond","△":"\\triangle","⌢":"\\frown","∠":"\\angle","⋱":"\\ddots","⋮":"\\vdots","∵":"\\because","∴":"\\therefore","∅":"\\emptyset","±":"\\pm","∇":"\\nabla","∂":"\\partial","∮":"\\oint","∫":"\\int","⋃":"\\cup","∪":"\\cup","⋂":"\\cap","∩":"\\cap","⋁":"\\vee","∨":"\\vee","⋀":"\\wedge","∧":"\\wedge","∏":"\\prod","∑":"\\sum","⊙":"\\bigodot","⊗":"\\bigoplus","⊕":"o+","∘":"@","⋈":"\\bowtie","⋊":"\\rtimes","⋉":"\\ltimes","÷":"\\div","×":"\\times","\\":"\\backslash","⋆":"\\star","∗":"\\star","⋅":"\\cdot","∞":"\\infty","²":"^{2}","∎":"\\blacksquare","⟲":"\\circlearrowleft","⟳":"\\circlearrowright","¥":"\\yen","⁽":"^{(}","⁾":"^{)}","⦵":"\\ominus","⊿":"\\bigtriangleup","↛'":"\\nrightarrow","†":"\\dagger","⿱":" ","✔":"\\checkmark","✗":"\\times","½":"\\dfrac{1}{2}","✓":"\\checkmark","⟩":"\\rangle","⟨":"\\langle","〈":"\\langle","¼":"\\dfrac{1}{4}","…":"\\ldots","൦":"\\circ","┴":"\\perp","✕":"\\times","∣":"\\mid","⎜":"\\mid","⦨":"\\llbracket","¢":"\\cent","⤹":"\\downarrow","⤸":"\\downarrow","⤷":"\\Rsh","⤶":"\\Lsh","⤵":"\\downarrow","⤴":"\\uparrow","⤳":"\\rightarrow","|":"\\mid","⎥":"\\mid","♥":"\\heartsuit","£":"\\pounds","⓪":"\\textcircled{0}","①":"\\textcircled{1}","②":"\\textcircled{2}","③":"\\textcircled{3}","④":"\\textcircled{4}","⑤":"\\textcircled{5}","⑥":"\\textcircled{6}","⑦":"\\textcircled{7}","⑧":"\\textcircled{8}","⑨":"\\textcircled{9}","⑩":"\\textcircled{10}","⑪":"\\textcircled{11}","⑫":"\\textcircled{12}","⑬":"\\textcircled{13}","⑭":"\\textcircled{14}","⑮":"\\textcircled{15}","⑯":"\\textcircled{16}","⑰":"\\textcircled{17}","⑱":"\\textcircled{18}","⑲":"\\textcircled{19}","⑳":"\\textcircled{20}","㉑":"\\textcircled{21}","㉒":"\\textcircled{22}","㉓":"\\textcircled{23}","㉔":"\\textcircled{24}","㉕":"\\textcircled{25}","㉖":"\\textcircled{26}","㉗":"\\textcircled{27}","㉘":"\\textcircled{28}","㉙":"\\textcircled{29}","㉚":"\\textcircled{30}","㉛":"\\textcircled{31}","㉜":"\\textcircled{32}","㉝":"\\textcircled{33}","㉞":"\\textcircled{34}","㉟":"\\textcircled{35}","㊱":"\\textcircled{36}","㊲":"\\textcircled{37}","㊳":"\\textcircled{38}","㊴":"\\textcircled{39}","㊵":"\\textcircled{40}","㊶":"\\textcircled{41}","㊷":"\\textcircled{42}","㊸":"\\textcircled{43}","㊹":"\\textcircled{44}","㊺":"\\textcircled{45}","㊻":"\\textcircled{46}","㊼":"\\textcircled{47}","㊽":"\\textcircled{48}","㊾":"\\textcircled{49}","㊿":"\\textcircled{50}","&":"\\&","‖":"\\parallel","%":"\\%","“":"\\text{``}","#":"\\#","℃":"\\text{\\textdegree C}","℉":"\\text{\\textdegree F}","█":"\\blacksquare","℧":"\\mho","⌋":"\\rfloor","⌊":"\\lfloor","⌉":"\\rceil","⌈":"\\lceil","↛":"\\nrightarrow","‾":"\\overline","→":"\\overrightarrow","‡":"\\ddagger","・":"\\cdot","▱":"\\square","∆":"\\Delta","∡":"\\angle","↓":"\\downarrow","↑":"\\uparrow","»":"\\gg","⊤":"\\top","⧸":"/","˳":"\\cdot","։":":","⦪":"\\measuredangle","⦩":"\\measuredangle","⦫":"\\measuredangle","⦁":"\\cdot","⦢":"\\measuredangle","¸":",","⎻":"\\overline","⟦":"\\llbracket","≈":"\\approx","≤":"\\leq","⎼":"-","≠":"\\neq","←":"\\leftarrow","।":"\\mid","€":"\\euro","˘":" ","∥":"\\parallel","↔":"\\overleftrightarrow","√":"\\sqrt{}","·":"\\cdot","⦬":"\\measuredangle","⦮":"\\measuredangle","⦭":"\\measuredangle","«":"\\ll","│":"\\mid","〉":"\\rangle","▫":"\\square","●":"\\circle","”":'\\"',"◻":"\\square"}},2408:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1868),t),o(r(598),t),o(r(2335),t),o(r(4104),t),o(r(6626),t),o(r(2103),t),o(r(4317),t)},6626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.latexAccents=void 0,t.latexAccents=["\\hat","\\bar","\\underbrace","\\overarc","\\overline","\\overbrace","\\overrightarrow","\\overleftrightarrow"]},2103:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mathNumberByGlyph=t.mathNumberByGlyphSpecial=void 0,t.mathNumberByGlyphSpecial={'"ⁿ"':"^{n}",'"ₙ"':"_{n}"},t.mathNumberByGlyph={"₀":"_{0}","₁":"_{1}","₂":"_{2}","₃":"_{3}","₄":"_{4}","₅":"_{5}","₆":"_{6}","₇":"_{7}","₈":"_{8}","₉":"_{9}","⁰":"^{0}","¹":"^{1}","²":"^{2}","³":"^{3}","⁴":"^{4}","⁵":"^{5}","⁶":"^{6}","⁷":"^{7}","⁸":"^{8}","⁹":"^{9}","⓪":"\\textcircled{0}","①":"\\textcircled{1}","②":"\\textcircled{2}","③":"\\textcircled{3}","④":"\\textcircled{4}","⑤":"\\textcircled{5}","⑥":"\\textcircled{6}","⑦":"\\textcircled{7}","⑧":"\\textcircled{8}","⑨":"\\textcircled{9}","⑩":"\\textcircled{10}","⑪":"\\textcircled{11}","⑫":"\\textcircled{12}","⑬":"\\textcircled{13}","⑭":"\\textcircled{14}","⑮":"\\textcircled{15}","⑯":"\\textcircled{16}","⑰":"\\textcircled{17}","⑱":"\\textcircled{18}","⑲":"\\textcircled{19}","⑳":"\\textcircled{20}","㉑":"\\textcircled{21}","㉒":"\\textcircled{22}","㉓":"\\textcircled{23}","㉔":"\\textcircled{24}","㉕":"\\textcircled{25}","㉖":"\\textcircled{26}","㉗":"\\textcircled{27}","㉘":"\\textcircled{28}","㉙":"\\textcircled{29}","㉚":"\\textcircled{30}","㉛":"\\textcircled{31}","㉜":"\\textcircled{32}","㉝":"\\textcircled{33}","㉞":"\\textcircled{34}","㉟":"\\textcircled{35}","㊱":"\\textcircled{36}","㊲":"\\textcircled{37}","㊳":"\\textcircled{38}","㊴":"\\textcircled{39}","㊵":"\\textcircled{40}","㊶":"\\textcircled{41}","㊷":"\\textcircled{42}","㊸":"\\textcircled{43}","㊹":"\\textcircled{44}","㊺":"\\textcircled{45}","㊻":"\\textcircled{46}","㊼":"\\textcircled{47}","㊽":"\\textcircled{48}","㊾":"\\textcircled{49}","㊿":"\\textcircled{50}","½":"\\dfrac{1}{2}","⅓":"\\dfrac{1}{3}","⅔":"\\dfrac{2}{3}","¼":"\\dfrac{1}{4}","¾":"\\dfrac{3}{4}","⅕":"\\dfrac{1}{5}","⅖":"\\dfrac{2}{5}","⅗":"\\dfrac{3}{5}","⅘":"\\dfrac{4}{5}","⅙":"\\dfrac{1}{6}","⅚":"\\dfrac{5}{6}","⅐":"\\dfrac{1}{7}","⅛":"\\dfrac{1}{8}","⅜":"\\dfrac{3}{8}","⅝":"\\dfrac{5}{8}","⅞":"\\dfrac{7}{8}","⅑":"\\dfrac{1}{9}","⅒":"\\dfrac{1}{10}"}},4317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HashUTF8ToLtXConverter=void 0,t.HashUTF8ToLtXConverter=class{convert(e){if(e.match(/[a-z0-9]/i))return e;const t=r[e];return t?this.convertAccentCharToLtX(t)||e:this.convertSpecialCharToLtX(e)||e}convertAccentCharToLtX(e){const{char:t,accent:r}=e,o=n[r];return o?`\\${o}{${t}}`:null}convertSpecialCharToLtX(e){const t=o[e];if(!t)return null;const{letter:r,fontCmd:n}=t;return`\\${n}{${r}}`}};const r={"á":{char:"a",accent:"´"},"à":{char:"a",accent:"`"},"â":{char:"a",accent:"^"},"ã":{char:"a",accent:"~"},"ä":{char:"a",accent:"¨"},"å":{char:"a",accent:"˚"},"ą":{char:"a",accent:"˙"},"ă":{char:"a",accent:"˘"},"ǎ":{char:"a",accent:"ˇ"},"ǟ":{char:"a",accent:"ˆ"},"ǻ":{char:"a",accent:"˙"},"ǡ":{char:"a",accent:"-"},"ā":{char:"a",accent:"-"},"é":{char:"e",accent:"´"},"è":{char:"e",accent:"`"},"ê":{char:"e",accent:"^"},"ë":{char:"e",accent:"¨"},"ę":{char:"e",accent:"˙"},"ě":{char:"e",accent:"ˇ"},"ȇ":{char:"i",accent:"^"},"ё":{char:"e",accent:"¨"},"ē":{char:"e",accent:"-"},"í":{char:"i",accent:"´"},"ì":{char:"i",accent:"`"},"î":{char:"i",accent:"^"},"ï":{char:"i",accent:"¨"},"į":{char:"i",accent:"˙"},"ǐ":{char:"i",accent:"ˇ"},"ȉ":{char:"i",accent:"`"},"ȋ":{char:"i",accent:"¨"},"ī":{char:"i",accent:"-"},"ó":{char:"o",accent:"´"},"ò":{char:"o",accent:"`"},"ô":{char:"o",accent:"^"},"õ":{char:"o",accent:"~"},"ö":{char:"o",accent:"¨"},"ő":{char:"o",accent:"˝"},"ǒ":{char:"o",accent:"ˇ"},"ȍ":{char:"o",accent:"`"},"ȏ":{char:"o",accent:"¨"},"ȫ":{char:"o",accent:"˘"},"ȭ":{char:"o",accent:"˝"},"ȯ":{char:"o",accent:"˙"},"ō":{char:"o",accent:"-"},"ú":{char:"u",accent:"´"},"ù":{char:"u",accent:"`"},"û":{char:"u",accent:"^"},"ü":{char:"u",accent:"¨"},"ű":{char:"u",accent:"˝"},"ǔ":{char:"u",accent:"ˇ"},"ǖ":{char:"u",accent:"¨"},"ǘ":{char:"u",accent:"¨"},"ǚ":{char:"u",accent:"¨"},"ǜ":{char:"u",accent:"¨"},"ȕ":{char:"u",accent:"`"},"ȗ":{char:"u",accent:"¨"},"ū":{char:"u",accent:"-"},"ý":{char:"y",accent:"´"},"ỳ":{char:"y",accent:"`"},"ŷ":{char:"y",accent:"^"},"ÿ":{char:"y",accent:"¨"},"ȳ":{char:"y",accent:"-"},"Á":{char:"A",accent:"´"},"À":{char:"A",accent:"`"},"Â":{char:"A",accent:"^"},"Ã":{char:"A",accent:"~"},"Ä":{char:"A",accent:"¨"},"Å":{char:"A",accent:"˚"},"Å":{char:"A",accent:"˚"},"Ȧ":{char:"A",accent:"˙"},"Ă":{char:"A",accent:"˘"},"Ǎ":{char:"A",accent:"ˇ"},"Ǟ":{char:"A",accent:"˝"},"Ǻ":{char:"A",accent:"˚"},"Ǡ":{char:"A",accent:"-"},"Ā":{char:"A",accent:"-"},"É":{char:"E",accent:"´"},"È":{char:"E",accent:"`"},"Ė":{char:"E",accent:"˙"},"Ê":{char:"E",accent:"^"},"Ë":{char:"E",accent:"¨"},"Ě":{char:"E",accent:"ˇ"},"Ȅ":{char:"E",accent:"`"},"Ȇ":{char:"E",accent:"¨"},"Ē":{char:"E",accent:"-"},"Í":{char:"I",accent:"´"},"Ì":{char:"I",accent:"`"},"Î":{char:"I",accent:"^"},"Ï":{char:"I",accent:"¨"},"Ĭ":{char:"I",accent:"˘"},"Ǐ":{char:"I",accent:"ˇ"},"Ȉ":{char:"I",accent:"`"},"Ȋ":{char:"I",accent:"¨"},"Ī":{char:"I",accent:"-"},"Ó":{char:"O",accent:"´"},"Ò":{char:"O",accent:"`"},"Ô":{char:"O",accent:"^"},"Õ":{char:"O",accent:"~"},"Ö":{char:"O",accent:"¨"},"Ő":{char:"O",accent:"˝"},"Ǒ":{char:"O",accent:"ˇ"},"Ȍ":{char:"O",accent:"`"},"Ȏ":{char:"O",accent:"¨"},"Ȫ":{char:"O",accent:"˘"},"Ȭ":{char:"O",accent:"˝"},"Ȯ":{char:"O",accent:"˙"},"Ō":{char:"O",accent:"-"},"Ú":{char:"U",accent:"´"},"Ù":{char:"U",accent:"`"},"Û":{char:"U",accent:"^"},"Ü":{char:"U",accent:"¨"},"Ű":{char:"U",accent:"˝"},"Ǔ":{char:"U",accent:"ˇ"},"Ǖ":{char:"U",accent:"¨"},"Ȕ":{char:"U",accent:"`"},"Ȗ":{char:"U",accent:"¨"},"Ū":{char:"U",accent:"-"},"Ý":{char:"Y",accent:"´"},"Ỳ":{char:"Y",accent:"`"},"Ŷ":{char:"Y",accent:"^"},"Ÿ":{char:"Y",accent:"¨"},"Ȳ":{char:"Y",accent:"-"},"ñ":{char:"n",accent:"~"},"Ñ":{char:"N",accent:"~"},"ç":{char:"c",accent:"˙"},"Ç":{char:"C",accent:"˙"},"ṽ":{char:"v",accent:"~"},"Ṽ":{char:"V",accent:"~"},"ĵ":{char:"j",accent:"^"},"Ĵ":{char:"J",accent:"^"},"ź":{char:"z",accent:"´"},"Ź":{char:"Z",accent:"´"},"Ż":{char:"Z",accent:"^"},"ż":{char:"z",accent:"^"},"Ž":{char:"Z",accent:"ˇ"},"ž":{char:"z",accent:"ˇ"},"ẑ":{char:"z",accent:"ˆ"}},n={"´":"grave","`":"acute","^":"hat","~":"tilde","¨":"ddot","˚":"mathring","˘":"breve","ˇ":"check","˝":"ddot","˙":"dot","-":"bar","ˆ":"hat","˜":"tilde"},o={"𝐀":{letter:"A",fontCmd:"mathbf"},"𝐁":{letter:"B",fontCmd:"mathbf"},"𝐂":{letter:"C",fontCmd:"mathbf"},"𝐃":{letter:"D",fontCmd:"mathbf"},"𝐄":{letter:"E",fontCmd:"mathbf"},"Ε":{letter:"E",fontCmd:"mathbf"},"𝐅":{letter:"F",fontCmd:"mathbf"},"𝐆":{letter:"G",fontCmd:"mathbf"},"𝐇":{letter:"H",fontCmd:"mathbf"},"𝐈":{letter:"I",fontCmd:"mathbf"},"𝐉":{letter:"J",fontCmd:"mathbf"},"𝐊":{letter:"K",fontCmd:"mathbf"},"𝐋":{letter:"L",fontCmd:"mathbf"},"𝐌":{letter:"M",fontCmd:"mathbf"},"𝐍":{letter:"N",fontCmd:"mathbf"},"𝐎":{letter:"O",fontCmd:"mathbf"},"𝐏":{letter:"P",fontCmd:"mathbf"},"𝐐":{letter:"Q",fontCmd:"mathbf"},"𝐑":{letter:"R",fontCmd:"mathbf"},"𝐒":{letter:"S",fontCmd:"mathbf"},"𝐓":{letter:"T",fontCmd:"mathbf"},"𝐔":{letter:"U",fontCmd:"mathbf"},"𝐕":{letter:"V",fontCmd:"mathbf"},"𝐖":{letter:"W",fontCmd:"mathbf"},"𝐗":{letter:"X",fontCmd:"mathbf"},"𝞆":{letter:"X",fontCmd:"mathbf"},"𝐘":{letter:"Y",fontCmd:"mathbf"},"𝐙":{letter:"Z",fontCmd:"mathbf"},"𝟎":{letter:"0",fontCmd:"mathbf"},"𝟏":{letter:"1",fontCmd:"mathbf"},"𝟐":{letter:"2",fontCmd:"mathbf"},"𝟑":{letter:"3",fontCmd:"mathbf"},"𝟒":{letter:"4",fontCmd:"mathbf"},"𝟓":{letter:"5",fontCmd:"mathbf"},"𝟔":{letter:"6",fontCmd:"mathbf"},"𝟕":{letter:"7",fontCmd:"mathbf"},"𝟖":{letter:"8",fontCmd:"mathbf"},"𝟗":{letter:"9",fontCmd:"mathbf"},"𝐴":{letter:"A",fontCmd:"mathit"},"𝐵":{letter:"B",fontCmd:"mathit"},"𝐶":{letter:"C",fontCmd:"mathit"},"𝐷":{letter:"D",fontCmd:"mathit"},"𝐸":{letter:"E",fontCmd:"mathit"},"𝐹":{letter:"F",fontCmd:"mathit"},"𝐺":{letter:"G",fontCmd:"mathit"},"𝐻":{letter:"H",fontCmd:"mathit"},"𝐼":{letter:"I",fontCmd:"mathit"},"Ι":{letter:"I",fontCmd:"mathit"},"𝐽":{letter:"J",fontCmd:"mathit"},"𝐾":{letter:"K",fontCmd:"mathit"},"𝐿":{letter:"L",fontCmd:"mathit"},"𝑀":{letter:"M",fontCmd:"mathit"},"𝑁":{letter:"N",fontCmd:"mathit"},"𝑂":{letter:"O",fontCmd:"mathit"},"𝑃":{letter:"P",fontCmd:"mathit"},"𝑄":{letter:"Q",fontCmd:"mathit"},"𝑅":{letter:"R",fontCmd:"mathit"},"𝑆":{letter:"S",fontCmd:"mathit"},"𝑇":{letter:"T",fontCmd:"mathit"},"𝑈":{letter:"U",fontCmd:"mathit"},"𝑉":{letter:"V",fontCmd:"mathit"},"𝑊":{letter:"W",fontCmd:"mathit"},"𝑋":{letter:"X",fontCmd:"mathit"},"𝑌":{letter:"Y",fontCmd:"mathit"},"𝑍":{letter:"Z",fontCmd:"mathit"},"𝔸":{letter:"A",fontCmd:"mathbb"},"𝔹":{letter:"B",fontCmd:"mathbb"},"ℂ":{letter:"C",fontCmd:"mathbb"},"𝔻":{letter:"D",fontCmd:"mathbb"},"𝔼":{letter:"E",fontCmd:"mathbb"},"𝔽":{letter:"F",fontCmd:"mathbb"},"𝔾":{letter:"G",fontCmd:"mathbb"},"ℍ":{letter:"H",fontCmd:"mathbb"},"𝕀":{letter:"I",fontCmd:"mathbb"},"𝕁":{letter:"J",fontCmd:"mathbb"},"𝕂":{letter:"K",fontCmd:"mathbb"},"𝕃":{letter:"L",fontCmd:"mathbb"},"𝕄":{letter:"M",fontCmd:"mathbb"},"ℕ":{letter:"N",fontCmd:"mathbb"},"𝕆":{letter:"O",fontCmd:"mathbb"},"ℙ":{letter:"P",fontCmd:"mathbb"},"ℚ":{letter:"Q",fontCmd:"mathbb"},"ℝ":{letter:"R",fontCmd:"mathbb"},"𝕊":{letter:"S",fontCmd:"mathbb"},"𝕋":{letter:"T",fontCmd:"mathbb"},"𝕌":{letter:"U",fontCmd:"mathbb"},"𝕍":{letter:"V",fontCmd:"mathbb"},"𝕎":{letter:"W",fontCmd:"mathbb"},"𝕏":{letter:"X",fontCmd:"mathbb"},"𝕐":{letter:"Y",fontCmd:"mathbb"},"ℤ":{letter:"Z",fontCmd:"mathbb"},"𝟘":{letter:"0",fontCmd:"mathbb"},"𝟙":{letter:"1",fontCmd:"mathbb"},"𝟚":{letter:"2",fontCmd:"mathbb"},"𝟛":{letter:"3",fontCmd:"mathbb"},"𝟜":{letter:"4",fontCmd:"mathbb"},"𝟝":{letter:"5",fontCmd:"mathbb"},"𝟞":{letter:"6",fontCmd:"mathbb"},"𝟟":{letter:"7",fontCmd:"mathbb"},"𝟠":{letter:"8",fontCmd:"mathbb"},"𝟡":{letter:"9",fontCmd:"mathbb"},"𝒜":{letter:"A",fontCmd:"mathcal"},"𝓐":{letter:"A",fontCmd:"mathcal"},"ℬ":{letter:"B",fontCmd:"mathcal"},"𝒞":{letter:"C",fontCmd:"mathcal"},"𝒟":{letter:"D",fontCmd:"mathcal"},"𝓓":{letter:"D",fontCmd:"mathcal"},"ℰ":{letter:"E",fontCmd:"mathcal"},"ℱ":{letter:"F",fontCmd:"mathcal"},"𝓕":{letter:"F",fontCmd:"mathcal"},"𝒢":{letter:"G",fontCmd:"mathcal"},"ℋ":{letter:"H",fontCmd:"mathcal"},"ℐ":{letter:"I",fontCmd:"mathcal"},"𝒥":{letter:"J",fontCmd:"mathcal"},"𝒦":{letter:"K",fontCmd:"mathcal"},"ℒ":{letter:"L",fontCmd:"mathcal"},"𝓛":{letter:"L",fontCmd:"mathcal"},"ℳ":{letter:"M",fontCmd:"mathcal"},"𝒩":{letter:"N",fontCmd:"mathcal"},"𝒪":{letter:"O",fontCmd:"mathcal"},"𝓞":{letter:"O",fontCmd:"mathcal"},"𝒫":{letter:"P",fontCmd:"mathcal"},"𝒬":{letter:"Q",fontCmd:"mathcal"},"ℛ":{letter:"R",fontCmd:"mathcal"},"𝕽":{letter:"R",fontCmd:"mathcal"},"℟":{letter:"R",fontCmd:"mathcal"},"𝒮":{letter:"S",fontCmd:"mathcal"},"𝒯":{letter:"T",fontCmd:"mathcal"},"𝒰":{letter:"U",fontCmd:"mathcal"},"𝒱":{letter:"V",fontCmd:"mathcal"},"𝒲":{letter:"W",fontCmd:"mathcal"},"𝒳":{letter:"X",fontCmd:"mathcal"},"𝒴":{letter:"Y",fontCmd:"mathcal"},"𝒵":{letter:"Z",fontCmd:"mathcal"},"𝔄":{letter:"A",fontCmd:"mathfrak"},"𝔅":{letter:"B",fontCmd:"mathfrak"},"ℭ":{letter:"C",fontCmd:"mathfrak"},"𝔇":{letter:"D",fontCmd:"mathfrak"},"𝔈":{letter:"E",fontCmd:"mathfrak"},"𝔉":{letter:"F",fontCmd:"mathfrak"},"𝔊":{letter:"G",fontCmd:"mathfrak"},"ℌ":{letter:"H",fontCmd:"mathfrak"},"ℑ":{letter:"I",fontCmd:"mathfrak"},"𝔍":{letter:"J",fontCmd:"mathfrak"},"𝔎":{letter:"K",fontCmd:"mathfrak"},"𝔏":{letter:"L",fontCmd:"mathfrak"},"𝔐":{letter:"M",fontCmd:"mathfrak"},"𝔑":{letter:"N",fontCmd:"mathfrak"},"𝔒":{letter:"O",fontCmd:"mathfrak"},"𝔓":{letter:"P",fontCmd:"mathfrak"},"𝔔":{letter:"Q",fontCmd:"mathfrak"},"ℜ":{letter:"R",fontCmd:"mathfrak"},"𝔖":{letter:"S",fontCmd:"mathfrak"},"𝔗":{letter:"T",fontCmd:"mathfrak"},"𝔘":{letter:"U",fontCmd:"mathfrak"},"𝔙":{letter:"V",fontCmd:"mathfrak"},"𝔚":{letter:"W",fontCmd:"mathfrak"},"𝔛":{letter:"X",fontCmd:"mathfrak"},"𝔜":{letter:"Y",fontCmd:"mathfrak"},"ℨ":{letter:"Z",fontCmd:"mathfrak"},"𝖠":{letter:"A",fontCmd:"mathsf"},"Α":{letter:"A",fontCmd:"mathsf"},"𝖡":{letter:"B",fontCmd:"mathsf"},"Β":{letter:"B",fontCmd:"mathsf"},"𝖢":{letter:"C",fontCmd:"mathsf"},"𝖣":{letter:"D",fontCmd:"mathsf"},"𝖤":{letter:"E",fontCmd:"mathsf"},"𝖥":{letter:"F",fontCmd:"mathsf"},"𝖦":{letter:"G",fontCmd:"mathsf"},"𝖧":{letter:"H",fontCmd:"mathsf"},"𝖨":{letter:"I",fontCmd:"mathsf"},"𝖩":{letter:"J",fontCmd:"mathsf"},"ȷ":{letter:"J",fontCmd:"mathsf"},"𝖪":{letter:"K",fontCmd:"mathsf"},"Κ":{letter:"K",fontCmd:"mathsf"},"𝖫":{letter:"L",fontCmd:"mathsf"},"𝖬":{letter:"M",fontCmd:"mathsf"},"𝖭":{letter:"N",fontCmd:"mathsf"},"𝖮":{letter:"O",fontCmd:"mathsf"},"𝖯":{letter:"P",fontCmd:"mathsf"},"𝖰":{letter:"Q",fontCmd:"mathsf"},"𝖱":{letter:"R",fontCmd:"mathsf"},"𝖲":{letter:"S",fontCmd:"mathsf"},"𝖳":{letter:"T",fontCmd:"mathsf"},"𝖴":{letter:"U",fontCmd:"mathsf"},"𝖵":{letter:"V",fontCmd:"mathsf"},"𝖶":{letter:"W",fontCmd:"mathsf"},"𝖷":{letter:"X",fontCmd:"mathsf"},"Χ":{letter:"X",fontCmd:"mathsf"},"𝖸":{letter:"Y",fontCmd:"mathsf"},"𝖹":{letter:"Z",fontCmd:"mathsf"},"𝚨":{letter:"A",fontCmd:"mathtt"},"𝚩":{letter:"B",fontCmd:"mathtt"},"𝚪":{letter:"\\Gamma",fontCmd:"mathtt"},"𝚫":{letter:"\\Delta",fontCmd:"mathtt"},"𝚬":{letter:"E",fontCmd:"mathtt"},"𝚭":{letter:"F",fontCmd:"mathtt"},"𝚮":{letter:"G",fontCmd:"mathtt"},"𝚯":{letter:"\\Theta",fontCmd:"mathtt"},"𝚰":{letter:"I",fontCmd:"mathtt"},"𝚱":{letter:"J",fontCmd:"mathtt"},"𝚲":{letter:"\\Lambda",fontCmd:"mathtt"},"𝚳":{letter:"L",fontCmd:"mathtt"},"𝚴":{letter:"M",fontCmd:"mathtt"},"𝚵":{letter:"\\Pi",fontCmd:"mathtt"},"𝚶":{letter:"O",fontCmd:"mathtt"},"𝚷":{letter:"\\Pi",fontCmd:"mathtt"},"𝚸":{letter:"Q",fontCmd:"mathtt"},"𝚹":{letter:"R",fontCmd:"mathtt"},"𝚺":{letter:"S",fontCmd:"mathtt"},"𝚻":{letter:"T",fontCmd:"mathtt"},"𝚼":{letter:"U",fontCmd:"mathtt"},"𝚽":{letter:"\\Phi",fontCmd:"mathtt"},"𝚾":{letter:"W",fontCmd:"mathtt"},"𝚿":{letter:"\\Psi",fontCmd:"mathtt"},"𝛀":{letter:"\\Omega",fontCmd:"mathtt"}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.MathMLToLaTeX=void 0;var t=r(8863);Object.defineProperty(e,"MathMLToLaTeX",{enumerable:!0,get:function(){return t.MathMLToLaTeX}})})(),n})(),bundle_min.exports=t(),getDefaultExportFromCjs$1(bundle_min.exports);const _=_dll_lodash,debug$2=_dll_debug;function _extends$2(){return _extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends$2.apply(this,arguments)}const reduceText=(e,t)=>(t.node&&"text"===t.node.kind&&(e+=t.node.text),e);class Line{constructor(){this.kind="line"}get columns(){return[]}}class Row{constructor(e,t){this.kind="row",this.operator=t,this.columns=e}pad(e,t="right"){if(e<this.columns.length)throw new Error("no");const r=e-this.columns.length,n=_.times(r).map((()=>"__pad__"));return"right"===t?[...n,...this.columns]:[...this.columns,...n]}}const mathNodeToCharArray=e=>e.childNodes.reduce(reduceText,"").split(""),toColumnArray=e=>{if(!e||!e.kind)return[];if("msrow"===e.kind)throw new Error("msrow in msrow?");return"mo"===e.kind?(console.warn("mo that is not 1st node in msrow?"),mathNodeToCharArray(e)):"mn"===e.kind?mathNodeToCharArray(e):e.toCHTML?e:void 0},rowStack=e=>{if(e&&e.kind){if("msrow"===e.kind){if(!e.childNodes||0===e.childNodes.length)return new Row([]);const t=_.first(e.childNodes),r=t&&"mo"===t.kind?_.tail(e.childNodes):e.childNodes,n=_.flatten(r.map(toColumnArray));return new Row(n,"mo"===t.kind?t:void 0)}if("mn"===e.kind){const t=mathNodeToCharArray(e);return new Row(t,void 0)}return"mo"===e.kind?(console.warn("mo on its own row?"),new Row([],e)):"msline"===e.kind?new Line:e.toCHTML?new Row([e]):void 0}},getStackData=e=>e&&e.childNodes?_.compact(e.childNodes.map(rowStack)):[];class CHTMLmstack extends Wrapper$2.CHTMLWrapper{constructor(e,t,r=null){super(e,t,r),this.ce=this.adaptor.document.createElement.bind(this.adaptor.document)}toCHTML(e){const t=this.standardCHTMLnode(e),r=getStackData(this),n=r.reduce(((e,t)=>(t&&t.columns.length>e&&(e=t.columns.length),e)),0),o=this.ce("table");t.appendChild(o),r.forEach((e=>{const t=this.ce("tr");if(o.appendChild(t),"row"===e.kind){const r=this.ce("td");t.appendChild(r),e.operator&&e.operator.toCHTML?(r.setAttribute("class","inner"),e.operator.toCHTML(r)):r.textContent="";e.pad(n,"right").forEach((e=>{const r=this.ce("td");t.appendChild(r),"__pad__"===e?r.textContent="":"string"==typeof e?r.textContent=e:"none"===e.kind?r.textContent="":e.toCHTML&&(r.setAttribute("class","inner"),e.toCHTML(r))}))}else if("line"===e.kind){const e=this.ce("td");t.appendChild(e),e.setAttribute("colspan",n+1),e.setAttribute("class","mjx-line"),e.textContent=""}}))}}CHTMLmstack.styles={"mjx-mstack > table":{"line-height":"initial",border:"solid 0px red","border-spacing":"0em","border-collapse":"separate"},"mjx-mstack > table > tr":{"line-height":"initial"},"mjx-mstack > table > tr > td":{border:"solid 0px blue","font-family":"sans-serif","line-height":"initial"},"mjx-mstack > table > tr > td.inner":{"font-family":"inherit"},"mjx-mstack > table > tr > .mjx-line":{padding:0,"border-top":"solid 1px black"},".TEX-A":{"font-family":"MJXZERO, MJXTEX !important"}};class MmlNone extends MmlNode.AbstractMmlNode{get kind(){return"none"}}class MmlMstack extends MmlNode.AbstractMmlNode{get kind(){return"mstack"}}class MmlMsrow extends MmlNode.AbstractMmlNode{get kind(){return"msrow"}}class MmlMsline extends MmlNode.AbstractMmlNode{get kind(){return"msline"}}const chtmlNodes={mstack:CHTMLmstack},mmlNodes={mstack:MmlMstack,msline:MmlMsline,msrow:MmlMsrow,none:MmlNone},BracketTypes={ROUND_BRACKETS:"round_brackets",SQUARE_BRACKETS:"square_brackets",DOLLAR:"dollar",DOUBLE_DOLLAR:"double_dollar"},PAIRS={[BracketTypes.ROUND_BRACKETS]:["\\(","\\)"],[BracketTypes.SQUARE_BRACKETS]:["\\[","\\]"],[BracketTypes.DOLLAR]:["$","$"],[BracketTypes.DOUBLE_DOLLAR]:["$$","$$"]},wrapMath=(e,t)=>{t===BracketTypes.SQUARE_BRACKETS&&(console.warn("\\[...\\] is not supported yet"),t=BracketTypes.ROUND_BRACKETS),t===BracketTypes.DOUBLE_DOLLAR&&(console.warn("$$...$$ is not supported yet"),t=BracketTypes.DOLLAR);const[r,n]=PAIRS[t]||PAIRS[BracketTypes.ROUND_BRACKETS];return`${r}${e}${n}`},unWrapMath=e=>(-1!==e.indexOf("\\displaystyle")&&(console.warn("\\displaystyle is not supported - removing"),e=e.replace("\\displaystyle","").trim()),e.startsWith("$$")&&e.endsWith("$$")?(console.warn("$$ syntax is not yet supported"),{unwrapped:e.substring(2,e.length-2),wrapType:BracketTypes.DOLLAR}):e.startsWith("$")&&e.endsWith("$")?{unwrapped:e.substring(1,e.length-1),wrapType:BracketTypes.DOLLAR}:e.startsWith("\\[")&&e.endsWith("\\]")?(console.warn("\\[..\\] syntax is not yet supported"),{unwrapped:e.substring(2,e.length-2),wrapType:BracketTypes.ROUND_BRACKETS}):e.startsWith("\\(")&&e.endsWith("\\)")?{unwrapped:e.substring(2,e.length-2),wrapType:BracketTypes.ROUND_BRACKETS}:{unwrapped:e,wrapType:BracketTypes.ROUND_BRACKETS});"undefined"!=typeof window&&RegisterHTMLHandler_1(browserAdaptor_2());let sreReady=!1;system.engineReady().then((()=>{sreReady=!0}));const visitor=new SerializedMmlVisitor.SerializedMmlVisitor,toMMl=e=>visitor.visitTree(e),log$2=debug$2("pie-lib:math-rendering"),NEWLINE_BLOCK_REGEX$1=/\\embed\{newLine\}\[\]/g,NEWLINE_LATEX$1="\\newline ",getGlobal=()=>{const e="@pie-lib/math-rendering@2";return"undefined"!=typeof window?(window[e]||(window[e]={}),window[e]):{}},defaultOpts=()=>getGlobal().opts||{},fixMathElement=e=>{if(e.dataset.mathHandled)return;let t="innerText";e.textContent&&(t="textContent"),e[t]&&(e[t]=wrapMath(unWrapMath(e[t]).unwrapped),e[t]=e[t].replace(NEWLINE_BLOCK_REGEX$1,NEWLINE_LATEX$1),e.dataset.mathHandled=!0)},fixMathElements=(e=document)=>{e.querySelectorAll("[data-latex]").forEach((e=>fixMathElement(e)))},adjustMathMLStyle=(e=document)=>{e.querySelectorAll("math").forEach((e=>e.setAttribute("displaystyle","true")))};class myFindMathML extends FindMathML_2{processMath(e){const t=this.adaptor;for(const r of Array.from(e))"mjx-assistive-mml"===t.kind(t.parent(r))&&e.delete(r);return super.processMath(e)}}const createMathMLInstance=(e,t=document)=>{(e=e||defaultOpts()).useSingleDollar&&console.warn("[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)");const r=AllPackages_1.filter((e=>"bussproofs"!==e));r.push("autoload");const n={parallelogram:"\\lower.2em{\\Huge\\unicode{x25B1}}",overarc:"\\overparen",napprox:"\\not\\approx",longdiv:"\\enclose{longdiv}"},o=e.useSingleDollar?{packages:r,macros:n,inlineMath:[["$","$"],["\\(","\\)"]],processEscapes:!0}:{packages:r,macros:n},i={parseError:function(e){console.log("error:",e),this.error(this.adaptor.textContent(e).replace(/\n.*/g,""))},FindMathML:new myFindMathML};let a;global$1.MathJax&&global$1.MathJax.version!==mathjax.mathjax.version&&(window.MathJax._=window.MathJax._||{},window.MathJax.config=window.MathJax.config||{},a=window.MathJax,Object.assign(global$1.MathJax,mathjax.mathjax));const s={fontURL:`https://unpkg.com/mathjax-full@${mathjax.mathjax.version}/ts/output/chtml/fonts/tex-woff-v2`,wrapperFactory:new CHTMLWrapperFactory_1(_extends$2({},CHTMLWrapperFactory_1.defaultNodes,chtmlNodes))},l=new MathML_1(i),c=new MmlFactory_2(_extends$2({},MmlFactory_2.defaultNodes,mmlNodes)),u=EnrichHandler_1(MenuHandler_2(AssistiveMmlHandler_1(mathjax.mathjax.handlers.handlesDocument(t))),l).create(t,{compileError:(e,t,r)=>{console.log("bad math?:",t),console.error(r)},typesetError:function(e,t,r){console.log("typeset error"),console.error(r),e.typesetError(t,r)},sre:{speech:"deep"},enrichSpeech:"deep",InputJax:[new TeX_1(o),l],OutputJax:new CHTML_1(s),DomStrings:new HTMLDomStrings_2({skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml","mjx-assistive-mml","mjx-container"]})});return l.setMmlFactory(c),a&&(window.MathJax=a),u};let enrichSpeechInitialized=!1;const bootstrap=e=>{if("undefined"==typeof window)return{Typeset:()=>({})};const t=createMathMLInstance(e);return{version:mathjax.mathjax.version,html:t,Typeset:function(...e){const t=(t=!1)=>{var r,n;let o=this.html.findMath(e.length?{elements:e}:{}).compile();!t&&sreReady&&(o=o.enrich()),o=o.getMetrics().typeset().assistiveMml().attachSpeech().addMenu().updateDocument(),enrichSpeechInitialized||"object"!=typeof(null==(r=o.math.list)||null==(n=r.next)?void 0:n.data)||(enrichSpeechInitialized=!0);try{const e=o.math.list;if(e)for(let t=e.next;"symbol"!=typeof t.data;t=t.next){const e=toMMl(t.data.root).replaceAll("\n","");t.data.typesetRoot.setAttribute("data-mathml",e),t.data.typesetRoot.setAttribute("tabindex","-1")}}catch(e){console.error(e.toString())}o.clear()};enrichSpeechInitialized||t(!0),mathjax.mathjax.handleRetriesFor((()=>{t()}))}}},renderMath=(e,t)=>{var r,n;if(window&&window.MathJax&&window.MathJax.customKey&&"@pie-lib/math-rendering-accessible@1"==window.MathJax.customKey)return;const o="string"==typeof e;let i=document.body;if(o){const t=document.createElement("div");t.innerHTML=e,i=t}if(fixMathElements(i),adjustMathMLStyle(i),o){const e=createMathMLInstance(void 0,i).findMath().compile().getMetrics().typeset().updateDocument().math.list.next;if(!e)return"";return toMMl(e.data.root).replaceAll("\n","")}if(getGlobal().instance||(getGlobal().instance=bootstrap(t)),e){if(e instanceof Element&&null!=(r=getGlobal().instance)&&r.Typeset)getGlobal().instance.Typeset(e);else if(e.length&&null!=(n=getGlobal().instance)&&n.Typeset){const t=Array.from(e);getGlobal().instance.Typeset(...t)}}else log$2("el is undefined")};CHTMLmspace_1.styles={"mjx-mspace":{display:"block","text-align":"center",height:"5px"}};const React__default=_dll_react,{Component:Component}=_dll_react,PropTypes$1=_dll_prop_types,{Popover:Popover}=_dll_material_ui__core,{colors:{green:green}}=_dll_material_ui__core,{colors:{orange:orange}}=_dll_material_ui__core,{colors:{pink:pink}}=_dll_material_ui__core,{colors:{indigo:indigo}}=_dll_material_ui__core,{colors:{red:red}}=_dll_material_ui__core,{SvgIcon:require$$3}=_dll_material_ui__core,{InputLabel:InputLabel}=_dll_material_ui__core,{FormControl:FormControl}=_dll_material_ui__core,{withStyles:withStyles$1}=_dll_material_ui__core_styles,{createMuiTheme:createMuiTheme}=_dll_material_ui__core_styles,{withStyles:withStyles$1$1}=_dll_material_ui__core_styles,classNames=_dll_classnames,debug$1=_dll_debug,Collapse$1=_dll_material_ui__core_collapse_index,{isEmpty:isEmpty}=_dll_lodash,defaults={TEXT:"black",DISABLED:"grey",DISABLED_SECONDARY:"#ABABAB",CORRECT:green[500],CORRECT_SECONDARY:green[50],CORRECT_TERTIARY:"#0EA449",CORRECT_WITH_ICON:"#087D38",INCORRECT:orange[500],INCORRECT_SECONDARY:red[50],INCORRECT_WITH_ICON:"#BF0D00",MISSING:red[700],MISSING_WITH_ICON:"#6A78A1",PRIMARY:indigo[500],PRIMARY_LIGHT:indigo[200],PRIMARY_DARK:indigo[800],SECONDARY:pink.A400,SECONDARY_LIGHT:pink[200],SECONDARY_DARK:pink[900],TERTIARY:"#146EB3",TERTIARY_LIGHT:"#D0E2F0",BACKGROUND:"rgba(255,255,255,0)",BACKGROUND_DARK:"#ECEDF1",DROPDOWN_BACKGROUND:"#E0E1E6",SECONDARY_BACKGROUND:"rgba(241,241,241,1)",BORDER:"#9A9A9A",BORDER_LIGHT:"#D1D1D1",BORDER_DARK:"#646464",BORDER_GRAY:"#7E8494",BLACK:"#000000",WHITE:"#ffffff",TRANSPARENT:"transparent",FOCUS_CHECKED:"#BBDEFB",FOCUS_CHECKED_BORDER:"#1565C0",FOCUS_UNCHECKED:"#E0E0E0",FOCUS_UNCHECKED_BORDER:"#757575",BLUE_GREY100:"#F3F5F7",BLUE_GREY300:"#C0C3CF",BLUE_GREY600:"#7E8494",BLUE_GREY900:"#152452",FADED_PRIMARY:"#DCDAFB"};Object.freeze(defaults);const v=e=>(...t)=>{const r=t.pop();return t.reduceRight(((t,r)=>`var(--${e}-${r}, ${t})`),r)},pv=v("pie"),text=()=>pv("text",defaults.TEXT),disabled=()=>pv("disabled",defaults.DISABLED),disabledSecondary=()=>pv("disabled-secondary",defaults.DISABLED_SECONDARY),correct=()=>pv("correct",defaults.CORRECT),correctSecondary=()=>pv("correct-secondary",defaults.CORRECT_SECONDARY),correctTertiary=()=>pv("correct-tertiary",defaults.CORRECT_TERTIARY),correctWithIcon=()=>pv("correct-icon",defaults.CORRECT_WITH_ICON),incorrect=()=>pv("incorrect",defaults.INCORRECT),incorrectWithIcon=()=>pv("incorrect-icon",defaults.INCORRECT_WITH_ICON),incorrectSecondary=()=>pv("incorrect-secondary",defaults.INCORRECT_SECONDARY),missing=()=>pv("missing",defaults.MISSING),missingWithIcon=()=>pv("missing-icon",defaults.MISSING_WITH_ICON),primary=()=>pv("primary",defaults.PRIMARY),primaryLight=()=>pv("primary-light",defaults.PRIMARY_LIGHT),primaryDark=()=>pv("primary-dark",defaults.PRIMARY_DARK),primaryText=()=>pv("primary-text","text",defaults.TEXT),fadedPrimary=()=>pv("faded-primary",defaults.FADED_PRIMARY),secondary=()=>pv("secondary",defaults.SECONDARY),secondaryLight=()=>pv("secondary-light",defaults.SECONDARY_LIGHT),secondaryDark=()=>pv("secondary-dark",defaults.SECONDARY_DARK),secondaryText=()=>pv("secondary-text","text",defaults.TEXT),background=()=>pv("background",defaults.BACKGROUND),backgroundDark=()=>pv("background-dark",defaults.BACKGROUND_DARK),secondaryBackground=()=>pv("secondary-background",defaults.SECONDARY_BACKGROUND),dropdownBackground=()=>pv("dropdown-background",defaults.DROPDOWN_BACKGROUND),tertiary=()=>pv("tertiary",defaults.TERTIARY),tertiaryLight=()=>pv("tertiary-light",defaults.TERTIARY_LIGHT),border=()=>pv("border",defaults.BORDER),borderLight=()=>pv("border-light",defaults.BORDER_LIGHT),borderDark=()=>pv("border-dark",defaults.BORDER_DARK),borderGray=()=>pv("border-gray",defaults.BORDER_GRAY),black=()=>pv("black",defaults.BLACK),white=()=>pv("white",defaults.WHITE),transparent=()=>defaults.TRANSPARENT,focusChecked=()=>pv("focus-checked",defaults.FOCUS_CHECKED),focusCheckedBorder=()=>pv("focus-checked-border",defaults.FOCUS_CHECKED_BORDER),focusUnchecked=()=>pv("focus-unchecked",defaults.FOCUS_UNCHECKED),focusUncheckedBorder=()=>pv("focus-unchecked-border",defaults.FOCUS_UNCHECKED_BORDER),blueGrey100=()=>pv("blue-grey-100",defaults.BLUE_GREY100),blueGrey300=()=>pv("blue-grey-300",defaults.BLUE_GREY300),blueGrey600=()=>pv("blue-grey-600",defaults.BLUE_GREY600),blueGrey900=()=>pv("blue-grey-900",defaults.BLUE_GREY900),visualElementsColors={AXIS_LINE_COLOR:"#5A53C9",ROLLOVER_FILL_BAR_COLOR:"#050F2D",GRIDLINES_COLOR:"#8E88EA",PLOT_FILL_COLOR:"#1463B3"};var color=Object.freeze({__proto__:null,background:background,backgroundDark:backgroundDark,black:black,blueGrey100:blueGrey100,blueGrey300:blueGrey300,blueGrey600:blueGrey600,blueGrey900:blueGrey900,border:border,borderDark:borderDark,borderGray:borderGray,borderLight:borderLight,correct:correct,correctSecondary:correctSecondary,correctTertiary:correctTertiary,correctWithIcon:correctWithIcon,defaults:defaults,disabled:disabled,disabledSecondary:disabledSecondary,dropdownBackground:dropdownBackground,fadedPrimary:fadedPrimary,focusChecked:focusChecked,focusCheckedBorder:focusCheckedBorder,focusUnchecked:focusUnchecked,focusUncheckedBorder:focusUncheckedBorder,incorrect:incorrect,incorrectSecondary:incorrectSecondary,incorrectWithIcon:incorrectWithIcon,missing:missing,missingWithIcon:missingWithIcon,primary:primary,primaryDark:primaryDark,primaryLight:primaryLight,primaryText:primaryText,secondary:secondary,secondaryBackground:secondaryBackground,secondaryDark:secondaryDark,secondaryLight:secondaryLight,secondaryText:secondaryText,tertiary:tertiary,tertiaryLight:tertiaryLight,text:text,transparent:transparent,v:v,visualElementsColors:visualElementsColors,white:white});const styleSheet={corespringFeedback:{transformOrigin:"0% 0px 0px",width:"100%",display:"block",overflow:"hidden","&:.incorrect":{color:"#946202"}},content:{"-webkit-font-smoothing":"antialiased",backgroundColor:`var(--feedback-bg-color, ${disabled()})`,borderRadius:"4px",fontFamily:'"Roboto", "Noto", sans-serif',lineHeight:"25px",margin:"0px",padding:"10px",verticalAlign:"middle",color:"var(--feedback-color, white)"},correct:{backgroundColor:`var(--feedback-correct-bg-color, ${correct()})`},incorrect:{backgroundColor:`var(--feedback-incorrect-bg-color, ${incorrect()})`},feedbackEnter:{height:"1px"},feedbackEnterActive:{height:"45px",transition:"height 500ms"},feedbackLeave:{height:"45px"},feedbackLeaveActive:{height:"1px",transition:"height 200ms"}};class Feedback extends React__default.Component{render(){const{correctness:e,feedback:t,classes:r}=this.props;return React__default.createElement("div",null,React__default.createElement(reactTransitionGroup.TransitionGroup,null,function(e){return e&&t?React__default.createElement(reactTransitionGroup.CSSTransition,{classNames:{enter:r.feedbackEnter,enterActive:r.feedbackEnterActive,leave:r.feedbackLeave,leaveActive:r.feedbackLeaveActive},key:"hasFeedback",timeout:{enter:500,exit:300}},React__default.createElement("div",{className:r.corespringFeedback},React__default.createElement("div",{className:classNames(r.content,r[e]),dangerouslySetInnerHTML:{__html:t}}))):null}(e)))}}Feedback.propTypes={correctness:PropTypes$1.string,feedback:PropTypes$1.string,classes:PropTypes$1.object.isRequired};var Feedback$1=withStyles$1(styleSheet,{name:"Feedback"})(Feedback);const log$1=debug$1("pie-libs:render-ui:response-indicators"),styles$4=()=>({responseIndicator:{cursor:"pointer"},paper:{padding:"0",borderRadius:"4px"},popover:{cursor:"pointer"},popperClose:{cursor:"pointer"}}),BuildIndicator=(e,t)=>{class r extends React__default.Component{constructor(e){super(e),this.handlePopoverOpen=e=>{log$1("[handlePopoverOpen]",e.target),this.setState({anchorEl:e.target})},this.handlePopoverClose=()=>{this.setState({anchorEl:null})},this.state={}}render(){const{feedback:r,classes:n}=this.props,{anchorEl:o}=this.state;return React__default.createElement("div",{className:r&&n.responseIndicator},React__default.createElement("span",{ref:e=>this.icon=e,onClick:this.handlePopoverOpen},React__default.createElement(e,null)),r&&React__default.createElement(Popover,{className:n.popover,classes:{paper:n.paper},open:!!o,anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:this.handlePopoverClose},React__default.createElement(Feedback$1,{feedback:r,correctness:t})))}}return r.propTypes={feedback:PropTypes$1.string,classes:PropTypes$1.object.isRequired},withStyles$1(styles$4)(r)},Correct=BuildIndicator(correctIcon,"correct"),Incorrect=BuildIndicator(incorrectIcon,"incorrect"),PartiallyCorrect=BuildIndicator(partiallyCorrectIcon,"partially-correct"),NothingSubmitted=BuildIndicator(nothingSubmittedIcon,"nothing-submitted");Object.freeze({__proto__:null,Correct:Correct,Incorrect:Incorrect,NothingSubmitted:NothingSubmitted,PartiallyCorrect:PartiallyCorrect});class Collapsible extends React__default.Component{constructor(...e){super(...e),this.state={expanded:!1},this.toggleExpanded=()=>{this.setState((e=>({expanded:!e.expanded})))}}componentDidMount(){renderMath(this.root)}componentDidUpdate(){renderMath(this.root)}render(){const{classes:e,labels:t,children:r,className:n}=this.props,o=this.state.expanded?t.visible||"Hide":t.hidden||"Show";return React__default.createElement("div",{className:n,ref:e=>this.root=e},React__default.createElement("div",{onClick:this.toggleExpanded},React__default.createElement("span",{className:e.title},o)),React__default.createElement(Collapse$1,{in:this.state.expanded,timeout:"auto",unmountOnExit:!0,className:e.collapsible},r))}}function _extends$1(){return _extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends$1.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Collapsible.propTypes={classes:PropTypes$1.object.isRequired,className:PropTypes$1.string,children:PropTypes$1.object,labels:PropTypes$1.shape({visible:PropTypes$1.string,hidden:PropTypes$1.string})},Collapsible.defaultProps={labels:{}},withStyles$1$1((e=>({title:{color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:"pointer"},collapsible:{paddingTop:2*e.spacing.unit}})))(Collapsible);var Restore$1={},interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(interopRequireDefault)),interopRequireDefault.exports}var createSvgIcon={},pure={},shouldUpdate={},inheritsLoose={exports:{}},setPrototypeOf={exports:{}},hasRequiredSetPrototypeOf,hasRequiredInheritsLoose;function requireSetPrototypeOf(){return hasRequiredSetPrototypeOf||(hasRequiredSetPrototypeOf=1,function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(setPrototypeOf)),setPrototypeOf.exports}function requireInheritsLoose(){return hasRequiredInheritsLoose||(hasRequiredInheritsLoose=1,function(e){var t=requireSetPrototypeOf();e.exports=function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,t(e,r)},e.exports.__esModule=!0,e.exports.default=e.exports}(inheritsLoose)),inheritsLoose.exports}var setDisplayName={},setStatic={},hasRequiredSetStatic,hasRequiredSetDisplayName;function requireSetStatic(){if(hasRequiredSetStatic)return setStatic;hasRequiredSetStatic=1,setStatic.__esModule=!0,setStatic.default=void 0;var e=function(e,t){return function(r){return r[e]=t,r}};return setStatic.default=e,setStatic}function requireSetDisplayName(){if(hasRequiredSetDisplayName)return setDisplayName;hasRequiredSetDisplayName=1;var e=requireInteropRequireDefault();setDisplayName.__esModule=!0,setDisplayName.default=void 0;var t=e(requireSetStatic()),r=function(e){return(0,t.default)("displayName",e)};return setDisplayName.default=r,setDisplayName}var wrapDisplayName={},getDisplayName={},hasRequiredGetDisplayName,hasRequiredWrapDisplayName,hasRequiredShouldUpdate;function requireGetDisplayName(){if(hasRequiredGetDisplayName)return getDisplayName;hasRequiredGetDisplayName=1,getDisplayName.__esModule=!0,getDisplayName.default=void 0;var e=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0};return getDisplayName.default=e,getDisplayName}function requireWrapDisplayName(){if(hasRequiredWrapDisplayName)return wrapDisplayName;hasRequiredWrapDisplayName=1;var e=requireInteropRequireDefault();wrapDisplayName.__esModule=!0,wrapDisplayName.default=void 0;var t=e(requireGetDisplayName()),r=function(e,r){return r+"("+(0,t.default)(e)+")"};return wrapDisplayName.default=r,wrapDisplayName}function requireShouldUpdate(){if(hasRequiredShouldUpdate)return shouldUpdate;hasRequiredShouldUpdate=1;var e=requireInteropRequireDefault();shouldUpdate.__esModule=!0,shouldUpdate.default=void 0;var t=e(requireInheritsLoose()),r=React__default;e(requireSetDisplayName()),e(requireWrapDisplayName());var n=function(e){return function(n){var o=(0,r.createFactory)(n),i=function(r){function n(){return r.apply(this,arguments)||this}(0,t.default)(n,r);var i=n.prototype;return i.shouldComponentUpdate=function(t){return e(this.props,t)},i.render=function(){return o(this.props)},n}(r.Component);return i}};return shouldUpdate.default=n,shouldUpdate}var shallowEqual={},shallowEqual_1,hasRequiredShallowEqual$1,hasRequiredShallowEqual,hasRequiredPure,hasRequiredCreateSvgIcon,hasRequiredRestore;function requireShallowEqual$1(){if(hasRequiredShallowEqual$1)return shallowEqual_1;hasRequiredShallowEqual$1=1;var e=Object.prototype.hasOwnProperty;function t(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}return shallowEqual_1=function(r,n){if(t(r,n))return!0;if("object"!=typeof r||null===r||"object"!=typeof n||null===n)return!1;var o=Object.keys(r),i=Object.keys(n);if(o.length!==i.length)return!1;for(var a=0;a<o.length;a++)if(!e.call(n,o[a])||!t(r[o[a]],n[o[a]]))return!1;return!0}}function requireShallowEqual(){if(hasRequiredShallowEqual)return shallowEqual;hasRequiredShallowEqual=1;var e=requireInteropRequireDefault();shallowEqual.__esModule=!0,shallowEqual.default=void 0;var t=e(requireShallowEqual$1()).default;return shallowEqual.default=t,shallowEqual}function requirePure(){if(hasRequiredPure)return pure;hasRequiredPure=1;var e=requireInteropRequireDefault();pure.__esModule=!0,pure.default=void 0;var t=e(requireShouldUpdate()),r=e(requireShallowEqual());e(requireSetDisplayName()),e(requireWrapDisplayName());var n=function(e){return(0,t.default)((function(e,t){return!(0,r.default)(e,t)}))(e)};return pure.default=n,pure}function requireCreateSvgIcon(){if(hasRequiredCreateSvgIcon)return createSvgIcon;hasRequiredCreateSvgIcon=1;var e=requireInteropRequireDefault();Object.defineProperty(createSvgIcon,"__esModule",{value:!0}),createSvgIcon.default=void 0;var t=e(React__default),r=e(requirePure()),n=e(require$$3);var o=function(e,o){var i=function(r){return t.default.createElement(n.default,r,e)};return i.displayName="".concat(o,"Icon"),(i=(0,r.default)(i)).muiName="SvgIcon",i};return createSvgIcon.default=o,createSvgIcon}function requireRestore(){if(hasRequiredRestore)return Restore$1;hasRequiredRestore=1;var e=requireInteropRequireDefault();Object.defineProperty(Restore$1,"__esModule",{value:!0}),Restore$1.default=void 0;var t=e(React__default),r=(0,e(requireCreateSvgIcon()).default)(t.default.createElement(t.default.Fragment,null,t.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),t.default.createElement("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"})),"Restore");return Restore$1.default=r,Restore$1}var RestoreExports=requireRestore();getDefaultExportFromCjs(RestoreExports);var Undo$1={},hasRequiredUndo;function requireUndo(){if(hasRequiredUndo)return Undo$1;hasRequiredUndo=1;var e=requireInteropRequireDefault();Object.defineProperty(Undo$1,"__esModule",{value:!0}),Undo$1.default=void 0;var t=e(React__default),r=(0,e(requireCreateSvgIcon()).default)(t.default.createElement(t.default.Fragment,null,t.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),t.default.createElement("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"})),"Undo");return Undo$1.default=r,Undo$1}var UndoExports=requireUndo();getDefaultExportFromCjs(UndoExports);class ExtraCSSRulesMixin extends React__default.Component{constructor(e){super(e),this.appendExtraStyles=()=>{if(isEmpty(this.props.extraCSSRules)||!this.classesSheet)return;const e=document.head||document.getElementsByTagName("head")[0];if(!e)return;this.classesSheet.parentElement||e.appendChild(this.classesSheet);const{extraCSSRules:t,classes:r}=this.props;this.classesSheet.innerHTML=`\n .${r.extraCSSRules} {\n ${t.rules}\n }\n `},this.classesSheet=document.createElement("style")}componentDidMount(){this.appendExtraStyles()}}ExtraCSSRulesMixin.propTypes={extraCSSRules:PropTypes$1.shape({names:PropTypes$1.arrayOf(PropTypes$1.string),rules:PropTypes$1.string})},ExtraCSSRulesMixin.defaultProps={extraCSSRules:{}};const _excluded=["children","className","classes","fontSizeFactor"],_excluded2=["extraCSSRules"];class UiLayout extends ExtraCSSRulesMixin{constructor(e){super(e),this.classesSheet=document.createElement("style")}computeStyle(e){const t=e=>parseFloat(getComputedStyle(e).fontSize),r=t(document.documentElement),n=t(document.body),o=Math.max(r,n);return 1!==e?{fontSize:o*e+"px"}:null}render(){const e=this.props,{children:t,className:r,classes:n,fontSizeFactor:o}=e,i=_objectWithoutPropertiesLoose(e,_excluded),a=classNames(r,n.extraCSSRules,n.uiLayoutContainer),s=_objectWithoutPropertiesLoose(i,_excluded2),l=this.computeStyle(o);return React__default.createElement("div",_extends$1({className:a},s,l&&{style:l}),t)}}UiLayout.propTypes={classes:PropTypes$1.object,className:PropTypes$1.string,children:PropTypes$1.array,extraCSSRules:PropTypes$1.shape({names:PropTypes$1.arrayOf(PropTypes$1.string),rules:PropTypes$1.string}),fontSizeFactor:PropTypes$1.number},UiLayout.defaultProps={extraCSSRules:{},fontSizeFactor:1};const styles$2={extraCSSRules:{},uiLayoutContainer:{"& table, th, td":{fontSize:"inherit"}}},Styled$1=withStyles$1(styles$2)(UiLayout);class PreviewLayout extends React__default.Component{render(){const{children:e,classes:t,ariaLabel:r,role:n,extraCSSRules:o,fontSizeFactor:i}=this.props,a=r?{"aria-label":r,role:n}:{};return React__default.createElement(Styled$1,_extends$1({className:t.container},a,{extraCSSRules:o,fontSizeFactor:i}),e)}}PreviewLayout.propTypes={ariaLabel:PropTypes$1.string,children:PropTypes$1.oneOfType([PropTypes$1.arrayOf(PropTypes$1.node),PropTypes$1.node]).isRequired,classes:PropTypes$1.object,role:PropTypes$1.string,extraCSSRules:PropTypes$1.shape({names:PropTypes$1.arrayOf(PropTypes$1.string),rules:PropTypes$1.string}),fontSizeFactor:PropTypes$1.number};const styles$1=()=>({container:{display:"flex",flexDirection:"column",position:"relative"}});createMuiTheme({typography:{useNextVariants:!0},palette:{action:{disabled:"rgba(0, 0, 0, 0.54);"}},overrides:{MuiRadio:{root:{"&$checked":{color:"#3f51b5 !important"}}},MuiCheckbox:{root:{"&$checked":{color:"#3f51b5 !important"}}},MuiTabs:{root:{borderBottom:"1px solid #eee"}},MuiSwitch:{root:{"&$checked":{color:"#3f51b5 !important","& + $bar":{backgroundColor:"#3f51b5 !important",opacity:.5}}}}}}),withStyles$1(styles$1)(PreviewLayout);class HtmlAndMath extends React__default.Component{render(){const{tag:e,className:t,html:r}=this.props,n=e||"div";return React__default.createElement(n,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:r}})}}HtmlAndMath.propTypes={tag:PropTypes$1.string,className:PropTypes$1.string,html:PropTypes$1.string},HtmlAndMath.defaultProps={tag:"div",html:""};const RawInputContainer=e=>{const{label:t,className:r,children:n,classes:o}=e,i=classNames(o.formControl,r);return React__default.createElement(FormControl,{className:i},React__default.createElement(InputLabel,{className:o.label,shrink:!0},t),n)};RawInputContainer.propTypes={label:PropTypes$1.oneOfType([PropTypes$1.string,PropTypes$1.object]).isRequired,className:PropTypes$1.string,children:PropTypes$1.oneOfType([PropTypes$1.arrayOf(PropTypes$1.node),PropTypes$1.node]).isRequired,classes:PropTypes$1.object.isRequired},withStyles$1((e=>({formControl:{marginLeft:0,marginRight:0,paddingBottom:e.spacing.unit,flex:"1 0 auto",minWidth:4*e.spacing.unit},label:{fontSize:"inherit",whiteSpace:"nowrap"}})))(RawInputContainer);const NEWLINE_BLOCK_REGEX=/\\embed\{newLine\}\[\]/g,NEWLINE_LATEX="\\newline ";class PreviewPrompt extends Component{constructor(...e){super(...e),this.parsedText=e=>{const{customAudioButton:t}=this.props,r=document.createElement("div");r.innerHTML=e;const n=r.querySelector("audio");if(n){const e=document.createElement("source");if(e.setAttribute("type","audio/mp3"),e.setAttribute("src",n.getAttribute("src")),n.removeAttribute("src"),n.setAttribute("id","pie-prompt-audio-player"),n.appendChild(e),t){n.style.display="none";const e=document.createElement("div");e.id="play-audio-button",Object.assign(e.style,{cursor:"pointer",display:"block",width:"128px",height:"128px",backgroundImage:`url(${t.pauseImage})`,backgroundSize:"cover",borderRadius:"50%",border:"1px solid #326295"}),n.parentNode.insertBefore(e,n)}}return r.innerHTML}}addCustomAudioButtonControls(){const{autoplayAudioEnabled:e,customAudioButton:t}=this.props,r=document.getElementById("play-audio-button"),n=document.getElementById("pie-prompt-audio-player");if(e&&n&&n.play().then((()=>{r&&t&&n.addEventListener("ended",i)})).catch((e=>{console.error("Error playing audio",e)})),!r||!n||!t)return;const o=()=>{n.paused&&(r.style.backgroundImage.includes(t.pauseImage)||n.play())},i=()=>{r.style.backgroundImage=`url(${t.playImage})`},a=()=>{Object.assign(r.style,{backgroundImage:`url(${t.pauseImage})`,border:"1px solid #ccc"})},s=()=>{Object.assign(r.style,{backgroundImage:`url(${t.playImage})`,border:"1px solid #326295"})};r.addEventListener("click",o),n.addEventListener("play",a),n.addEventListener("pause",s),n.addEventListener("ended",i),this._handlePlayClick=o,this._handleAudioPlay=a,this._handleAudioPause=s,this._handleAudioEnded=i}removeCustomAudioButtonListeners(){const e=document.getElementById("play-audio-button"),t=document.querySelector("audio");e&&t&&(e.removeEventListener("click",this._handlePlayClick),t.removeEventListener("play",this._handleAudioPlay),t.removeEventListener("pause",this._handleAudioPause),t.removeEventListener("ended",this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls()}componentDidUpdate(){this.alignImages()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}alignImages(){document.querySelectorAll("#preview-prompt").forEach((e=>{const t=e.getElementsByTagName("img");if(t&&t.length)for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){const t=e.parentElement;if("DIV"!==t.tagName||"flex"!==t.style.display||"100%"!==t.style.width){const r=document.createElement("div");r.style.display="flex",r.style.width="100%";const n=e.cloneNode(!0);r.appendChild(n),t.replaceChild(r,e)}}}))}render(){const{prompt:e,classes:t,tagName:r,className:n,onClick:o,defaultClassName:i}=this.props,a=r||"div",s="legend"===r?"legend":"",l=`${t.promptTable} ${t[n]||""} ${i||""} ${t[s]||""}`;return React__default.createElement(a,{id:"preview-prompt",onClick:o,className:l,dangerouslySetInnerHTML:{__html:this.parsedText(e||"").replace(NEWLINE_BLOCK_REGEX,NEWLINE_LATEX)}})}}PreviewPrompt.propTypes={classes:PropTypes$1.object,prompt:PropTypes$1.string,tagName:PropTypes$1.string,className:PropTypes$1.string,onClick:PropTypes$1.func,defaultClassName:PropTypes$1.string,autoplayAudioEnabled:PropTypes$1.bool,customAudioButton:{playImage:PropTypes$1.string,pauseImage:PropTypes$1.string}},PreviewPrompt.defaultProps={onClick:()=>{}};const styles$3=e=>({prompt:{verticalAlign:"middle",color:text()},legend:{width:"100%",fontSize:"inherit !important"},rationale:{paddingLeft:4*e.spacing.unit,paddingBottom:e.spacing.unit},label:{color:`${text()} !important`,display:"flex",flexDirection:"column",verticalAlign:"middle",cursor:"pointer","& > p":{margin:"0 0 0 0 !important"}},promptTable:{"&:not(.MathJax) > table":{borderCollapse:"collapse"},"&:not(.MathJax) > table tr":{"&:nth-child(2n)":{backgroundColor:"#f6f8fa",color:e.palette.common.black}},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:".6em 1em",textAlign:"left"},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:"initial"}}});withStyles$1(styles$3)(PreviewPrompt),PropTypes$1.node,PropTypes$1.bool,PropTypes$1.node,PropTypes$1.string,"undefined"!=typeof window&&new DOMParser,"undefined"!=typeof window&&new DOMParser;const React=_dll_react,ReactDOM=_dll_react_dom,{debounce:debounce}=_dll_lodash,{withStyles:withStyles}=_dll_material_ui__core_styles,{ListItem:ListItem}=_dll_material_ui__core,{List:List}=_dll_material_ui__core,{Collapse:Collapse}=_dll_material_ui__core,PropTypes=_dll_prop_types,debug=_dll_debug;function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(this,arguments)}const RubricType=PropTypes.shape({excludeZero:PropTypes.bool,points:PropTypes.arrayOf(PropTypes.string),sampleAnswers:PropTypes.arrayOf(PropTypes.string),animationsDisabled:PropTypes.bool});class Rubric extends React.Component{constructor(e){super(e),this.dudUrl="javascript:;",this.shouldRenderPoint=(e,t)=>!t.excludeZero||0!==e,this.state={rubricOpen:!1,linkPrefix:"Show"},this.toggleRubric=this.toggleRubric.bind(this)}toggleRubric(){this.setState({rubricOpen:!this.state.rubricOpen}),this.setState({linkPrefix:this.state.rubricOpen?"Show":"Hide"})}render(){const{model:e,value:t,classes:r}=this.props;let{animationsDisabled:n}=this.props;if(n=n||t.animationsDisabled,t&&t.points){const{extraCSSRules:o}=e||{},{points:i,sampleAnswers:a}=t,s=React.createElement(List,{component:"nav"},i.slice(0).reverse().map(((e,n)=>{n=i.length-n-1;const o=t.excludeZero?n+1:n;return React.createElement(React.Fragment,{key:n},React.createElement(ListItem,{key:`P${n}`,className:r.listColumn},React.createElement("h3",{className:r.titleText},1===o?`${o} PT`:`${o} PTS`),React.createElement("div",{className:r.text,dangerouslySetInnerHTML:{__html:e}})),a&&a[n]&&React.createElement(ListItem,{key:`S${n}`,className:r.listColumn},React.createElement("h4",{className:r.titleText,style:{fontWeight:"normal"}},"Sample Answer"),React.createElement("div",{className:r.text,dangerouslySetInnerHTML:{__html:a[n]}})))})));return React.createElement(Styled$1,{extraCSSRules:o,className:r.root},React.createElement("h2",{className:r.hiddenScreenReader},"Rubric"),n?s:React.createElement(React.Fragment,null,React.createElement("h2",{id:"rubric-toggle",className:r.rubricToggle,tabIndex:0,role:"button","aria-expanded":this.state.rubricOpen,onClick:this.toggleRubric,onKeyPress:e=>{"Enter"!==e.key&&" "!==e.key||this.toggleRubric()}},this.state.linkPrefix," Rubric",React.createElement("span",{className:r.chevronStyle,"aria-hidden":"true"},this.state.rubricOpen?React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},React.createElement("polyline",{points:"18 15 12 9 6 15"})):React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},React.createElement("polyline",{points:"6 9 12 15 18 9"})))),React.createElement(Collapse,{in:this.state.rubricOpen,timeout:"auto"},s)))}return null}}Rubric.propTypes={classes:PropTypes.object.isRequired,model:PropTypes.object.isRequired,animationsDisabled:PropTypes.bool,value:RubricType};const styles=e=>({root:{color:color.text(),backgroundColor:color.background(),"&:not(.MathJax) table":{borderCollapse:"collapse"},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:"8px 12px",textAlign:"left"},"& ul p, & ol p":{marginBottom:0,marginTop:0,lineHeight:"normal"}},listColumn:{display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"12px 0px"},listColumnItem:{padding:0},text:{color:color.text()},titleText:{color:color.text(),fontSize:"16px",fontWeight:"700",margin:0,paddingBottom:"6px"},rubricToggle:{display:"flex",alignItems:"center",cursor:"pointer",userSelect:"none",fontSize:e.typography.fontSize,fontWeight:"500",color:color.tertiary(),margin:0},chevronStyle:{display:"inline-flex",transition:"transform 0.2s",marginLeft:2,alignSelf:"center"},hiddenScreenReader:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:0,whiteSpace:"nowrap"}});var Main=withStyles(styles)(Rubric);const log=debug("pie-element:rubric:print"),preparePrintModel=(e,t)=>"instructor"===t.role?(e.value=_extends({},e),e.mode="evaluate",e.animationsDisabled=!0,e):{};class RubricPrint extends HTMLElement{constructor(){super(),this._options=null,this._model=null,this._session=[],this._rerender=debounce((()=>{if(this._model&&this._session){const e=preparePrintModel(this._model,this._options),t=this._options&&React.createElement(Main,_extends({},e));ReactDOM.render(t,this,(()=>{log("render complete - render math"),renderMath(this)}))}else log("skip")}),50,{leading:!1,trailing:!0})}set options(e){this._options=e}set model(e){this._model=e,this._rerender()}connectedCallback(){}}export{RubricPrint as default};
|