@gmb/bitmark-parser-generator 1.35.0 → 2.1.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/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/cjs/BitmarkParserGenerator.js +8 -3
- package/dist/cjs/BitmarkParserGenerator.js.map +1 -1
- package/dist/cjs/ast/Ast.js +1 -0
- package/dist/cjs/ast/Ast.js.map +1 -1
- package/dist/cjs/ast/BaseBuilder.js +91 -54
- package/dist/cjs/ast/BaseBuilder.js.map +1 -1
- package/dist/cjs/ast/Builder.js +813 -389
- package/dist/cjs/ast/Builder.js.map +1 -1
- package/dist/cjs/ast/ResourceBuilder.js +516 -252
- package/dist/cjs/ast/ResourceBuilder.js.map +1 -1
- package/dist/cjs/ast/rules/NodeValidator.js +61 -22
- package/dist/cjs/ast/rules/NodeValidator.js.map +1 -1
- package/dist/cjs/breakscaping/Breakscape.js +96 -71
- package/dist/cjs/breakscaping/Breakscape.js.map +1 -1
- package/dist/cjs/config/raw/bits.js +44 -5
- package/dist/cjs/config/raw/bits.js.map +1 -1
- package/dist/cjs/config/raw/properties.js +7 -2
- package/dist/cjs/config/raw/properties.js.map +1 -1
- package/dist/cjs/generated/build-info.js +1 -1
- package/dist/cjs/generated/build-info.js.map +1 -1
- package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js +1 -0
- package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
- package/dist/cjs/generator/AstWalkerGenerator.js +4 -1
- package/dist/cjs/generator/AstWalkerGenerator.js.map +1 -1
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js +992 -339
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/cjs/generator/json/JsonGenerator.js +312 -1985
- package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
- package/dist/cjs/generator/text/TextGenerator.js +26 -8
- package/dist/cjs/generator/text/TextGenerator.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/ast/NodeType.js +28 -8
- package/dist/cjs/model/ast/NodeType.js.map +1 -1
- package/dist/cjs/model/config/enum/PropertyConfigKey.js +1 -0
- package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/cjs/model/enum/BitType.js +2 -2
- package/dist/cjs/model/enum/BitType.js.map +1 -1
- package/dist/cjs/model/enum/PropertyFormat.js +3 -1
- package/dist/cjs/model/enum/PropertyFormat.js.map +1 -1
- package/dist/cjs/model/enum/TextFormat.js +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js +9 -3
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js +49 -131
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +7 -31
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +255 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +25 -12
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +175 -129
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +8 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js +61 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +11 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +21 -17
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +50 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +2 -15
- package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +2 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +4 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +2 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +5 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +5 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +23 -7
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +5 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +3 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +19 -8
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +4 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +4 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +14 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +37 -21
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +3 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/json/JsonParser.js +73 -765
- package/dist/cjs/parser/json/JsonParser.js.map +1 -1
- package/dist/cjs/parser/text/TextParser.js +61 -2
- package/dist/cjs/parser/text/TextParser.js.map +1 -1
- package/dist/cjs/utils/BitUtils.js +15 -13
- package/dist/cjs/utils/BitUtils.js.map +1 -1
- package/dist/esm/BitmarkParserGenerator.js +8 -3
- package/dist/esm/BitmarkParserGenerator.js.map +1 -1
- package/dist/esm/ast/Ast.js +1 -0
- package/dist/esm/ast/Ast.js.map +1 -1
- package/dist/esm/ast/BaseBuilder.js +91 -54
- package/dist/esm/ast/BaseBuilder.js.map +1 -1
- package/dist/esm/ast/Builder.js +813 -389
- package/dist/esm/ast/Builder.js.map +1 -1
- package/dist/esm/ast/ResourceBuilder.js +516 -252
- package/dist/esm/ast/ResourceBuilder.js.map +1 -1
- package/dist/esm/ast/rules/NodeValidator.js +61 -22
- package/dist/esm/ast/rules/NodeValidator.js.map +1 -1
- package/dist/esm/breakscaping/Breakscape.js +96 -71
- package/dist/esm/breakscaping/Breakscape.js.map +1 -1
- package/dist/esm/config/raw/bits.js +44 -5
- package/dist/esm/config/raw/bits.js.map +1 -1
- package/dist/esm/config/raw/properties.js +7 -2
- package/dist/esm/config/raw/properties.js.map +1 -1
- package/dist/esm/generated/build-info.js +1 -1
- package/dist/esm/generated/build-info.js.map +1 -1
- package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js +1 -0
- package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
- package/dist/esm/generator/AstWalkerGenerator.js +4 -1
- package/dist/esm/generator/AstWalkerGenerator.js.map +1 -1
- package/dist/esm/generator/bitmark/BitmarkGenerator.js +992 -339
- package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/esm/generator/json/JsonGenerator.js +312 -1985
- package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
- package/dist/esm/generator/text/TextGenerator.js +26 -8
- package/dist/esm/generator/text/TextGenerator.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/ast/NodeType.js +28 -8
- package/dist/esm/model/ast/NodeType.js.map +1 -1
- package/dist/esm/model/config/enum/PropertyConfigKey.js +1 -0
- package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/esm/model/enum/BitType.js +2 -2
- package/dist/esm/model/enum/BitType.js.map +1 -1
- package/dist/esm/model/enum/PropertyFormat.js +3 -1
- package/dist/esm/model/enum/PropertyFormat.js.map +1 -1
- package/dist/esm/model/enum/TextFormat.js +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js +9 -3
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js +49 -131
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +7 -31
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +252 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +25 -12
- package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +175 -129
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +8 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js +58 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +11 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +21 -17
- package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +47 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +2 -15
- package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +2 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +4 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +2 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +5 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +5 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +23 -7
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +5 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +3 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +19 -8
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +4 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +4 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +14 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +37 -21
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +3 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/json/JsonParser.js +73 -765
- package/dist/esm/parser/json/JsonParser.js.map +1 -1
- package/dist/esm/parser/text/TextParser.js +61 -2
- package/dist/esm/parser/text/TextParser.js.map +1 -1
- package/dist/esm/utils/BitUtils.js +15 -13
- package/dist/esm/utils/BitUtils.js.map +1 -1
- package/dist/types/BitmarkParserGenerator.d.ts +8 -0
- package/dist/types/BitmarkParserGenerator.d.ts.map +1 -1
- package/dist/types/ast/Ast.d.ts.map +1 -1
- package/dist/types/ast/BaseBuilder.d.ts +31 -21
- package/dist/types/ast/BaseBuilder.d.ts.map +1 -1
- package/dist/types/ast/Builder.d.ts +293 -441
- package/dist/types/ast/Builder.d.ts.map +1 -1
- package/dist/types/ast/ResourceBuilder.d.ts +177 -164
- package/dist/types/ast/ResourceBuilder.d.ts.map +1 -1
- package/dist/types/ast/rules/NodeValidator.d.ts +3 -2
- package/dist/types/ast/rules/NodeValidator.d.ts.map +1 -1
- package/dist/types/breakscaping/Breakscape.d.ts +6 -5
- package/dist/types/breakscaping/Breakscape.d.ts.map +1 -1
- package/dist/types/config/raw/bits.d.ts.map +1 -1
- package/dist/types/config/raw/properties.d.ts.map +1 -1
- package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts.map +1 -1
- package/dist/types/generator/AstWalkerGenerator.d.ts.map +1 -1
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +92 -55
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
- package/dist/types/generator/json/JsonGenerator.d.ts +89 -108
- package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
- package/dist/types/generator/text/TextGenerator.d.ts +14 -2
- package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/ast/NodeType.d.ts +50 -16
- package/dist/types/model/ast/NodeType.d.ts.map +1 -1
- package/dist/types/model/ast/Nodes.d.ts +64 -440
- package/dist/types/model/ast/Nodes.d.ts.map +1 -1
- package/dist/types/model/config/enum/ConfigKey.d.ts +2 -0
- package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts +3 -0
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
- package/dist/types/model/enum/BitType.d.ts +4 -4
- package/dist/types/model/enum/PropertyFormat.d.ts +4 -2
- package/dist/types/model/enum/PropertyFormat.d.ts.map +1 -1
- package/dist/types/model/enum/PropertyTag.d.ts +2 -0
- package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
- package/dist/types/model/json/BitJson.d.ts +38 -21
- package/dist/types/model/json/BitJson.d.ts.map +1 -1
- package/dist/types/model/json/BodyBitJson.d.ts +16 -12
- package/dist/types/model/json/BodyBitJson.d.ts.map +1 -1
- package/dist/types/model/json/ResourceJson.d.ts +2 -22
- package/dist/types/model/json/ResourceJson.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserHelper.d.ts +3 -2
- package/dist/types/parser/bitmark/peg/BitmarkPegParserHelper.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts +2 -15
- package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +83 -71
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts +37 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.d.ts +15 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts +16 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts +5 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/json/JsonParser.d.ts +9 -72
- package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
- package/dist/types/parser/text/TextParser.d.ts +16 -1
- package/dist/types/parser/text/TextParser.d.ts.map +1 -1
- package/dist/types/utils/BitUtils.d.ts +8 -8
- package/dist/types/utils/BitUtils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bitmarkParserGenerator=t():e.bitmarkParserGenerator=t()}(this,(()=>(()=>{"use strict";var e={4718:(e,t,i)=>{function r(e,t){var i;const r=Object.freeze,o=Object.defineProperty,n=Object.assign,a={enumerable:!1},s=new Map,l=new Map,p=new Map,c=new Map,u=new Map,g=(null!==(i=null==t?void 0:t.iterationKeys)&&void 0!==i?i:Object.keys(e)).map((e=>`${e}`));for(const[t,i]of Object.entries(e))s.set(t,i),p.set(t.toLowerCase(),i);for(const[e,t]of s){const i="string"==typeof t?t.toLowerCase():t;l.set(t,e),c.set(i,e)}const y=g.map((e=>s.get(e))),d=g.map((e=>[e,s.get(e)]));return(t=>{let i=e;function f(e,t){return(null==t?void 0:t.ignoreCase)&&"string"==typeof e?s.get(c.get(e.toLowerCase())):!e||l.has(e)?e:void 0}Object.isExtensible(e)||(i=n({},e)),o(i,"fromKey",n({value:function(e,t){return(null==t?void 0:t.ignoreCase)&&"string"==typeof e?p.get(e.toLowerCase()):s.get(`${e}`)}},a)),o(i,"fromValue",n({value:f},a)),o(i,"keyFromValue",n({value:function(e,t){return(null==t?void 0:t.ignoreCase)&&"string"==typeof e?c.get(e.toLowerCase()):l.get(e)}},a)),o(i,"setMetadata",n({value:function(e,t,i){const r=f(e);r&&u.set(r,t)}},a)),o(i,"getMetadata",n({value:function(e,t){return u.get(e)}},a)),o(i,Symbol.iterator,n({value:function(){let e=0;return{next:()=>e<g.length?{value:s.get(`${g[e++]}`),done:!1}:{done:!0}}}},a)),o(i,"values",n({value:()=>y},a)),o(i,"keys",n({value:()=>g},a)),o(i,"entries",n({value:()=>d},a));let m=i;return(null==t?void 0:t.noFreeze)||(m=r(i),r(g),r(y),r(d)),m})(t)}i.r(t),i.d(t,{superenum:()=>o});const o=r;o.fromObject=r,o.fromArray=function(e,t){Array.isArray(e)||(e=[]);const i=e.reduce(((e,t)=>(e[`${t}`]=t,e)),{});return(!t||t&&!t.iterationKeys)&&((t=Object.assign({},t)).iterationKeys=e),r(i,t)}},1791:function(e,t,i){var r=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,o)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=(this&&this.__importStar,this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))});this&&this.__importDefault;Object.defineProperty(t,"__esModule",{value:!0}),t.Output=t.Input=t.BitmarkParserGenerator=void 0;const a=i(4718),s=i(5126),l=i(3968),p=i(7984),c=i(8588),u=i(5633),g=i(5663),y=i(6936),d=i(3881),f=i(486),m=i(3069),T=i(2028),h=i(385),b=i(431),v=i(777),B=(0,a.superenum)({string:"string",file:"file"});t.Input=B;const C=(0,a.superenum)({bitmark:"bitmark",json:"json",ast:"ast"});t.Output=C;t.BitmarkParserGenerator=class{constructor(){this.ast=new s.Ast,this.jsonParser=new g.JsonParser,this.bitmarkParser=new u.BitmarkParser,this.textParser=new v.TextParser,this.textGenerator=new b.TextGenerator,this.jsonStringifyPrettify=(e,t,i)=>{const r=!0===t.prettify?2:t.prettify||void 0;return i||!0===t.stringify||void 0!==r?JSON.stringify(e,null,r):e}}version(){return y.env.appVersion.full}info(e){const t=Object.assign({},e),i=new d.InfoBuilder;let r;const o=!t.outputFormat||t.outputFormat===m.InfoFormat.text,n=t.outputFormat===m.InfoFormat.json,a=t.type===f.InfoType.all,s=t.type===f.InfoType.deprecated,l=a||!s,p=a||s;if(t.type===f.InfoType.bit){const e=i.getSupportedBitConfigs().filter((e=>{if(!t.bit)return!0;return T.Config.getBitType(t.bit)===e.bitType}));r=o?e.map((e=>e.toString({includeChains:!0,includeConfigs:!0}))).join("\n\n--------------\n\n"):e}else{const e=i.getSupportedBits({includeNonDeprecated:l,includeDeprecated:p}).filter((e=>{if(!t.bit)return!0;const i=T.Config.getBitType(t.bit);return e.name===i||void 0}));r=o?this.supportedBitsAsString(e):e}if(n){const e=!0===t.prettify?2:t.prettify||void 0;r=JSON.stringify(r,null,e)}return r}convert(e,t){return n(this,void 0,void 0,(function*(){let i;const r=Object.assign({},t),o=Object.assign({},r.jsonOptions),a=r.outputFormat,s=a===C.bitmark,u=a===C.json,g=a===C.ast,d=c.BitmarkParserType.peggy;let f=e;if(y.env.isBrowser&&r.outputFile)throw new Error("Cannot write to file in browser environment");r.inputFormat&&r.inputFormat!==B.file||y.env.isNode&&fs.existsSync(f)&&(f=fs.readFileSync(f,{encoding:"utf8"}));let m=this.ast.preprocessAst(f);const T=!!m;T||(m=this.jsonParser.toAst(f));const h=!!(null==m?void 0:m.bits),b=e=>n(this,void 0,void 0,(function*(){yield v(e),yield k(i)})),v=e=>n(this,void 0,void 0,(function*(){i=this.bitmarkParser.toAst(e,{parserType:d})})),P=e=>n(this,void 0,void 0,(function*(){if(d===c.BitmarkParserType.peggy)if(m=this.bitmarkParser.toAst(e,{parserType:d}),r.outputFile){const e=new JsonFileGenerator_1.JsonFileGenerator(r.outputFile,r);yield e.generate(m)}else{const e=new p.JsonObjectGenerator(r),t=yield e.generate(m);i=this.jsonStringifyPrettify(t,o)}})),k=e=>n(this,void 0,void 0,(function*(){if(r.outputFile){const t=new BitmarkFileGenerator_1.BitmarkFileGenerator(r.outputFile,r);yield t.generate(e)}else{const t=new l.BitmarkStringGenerator(r);i=yield t.generate(e)}})),S=e=>n(this,void 0,void 0,(function*(){i=this.jsonStringifyPrettify(e,o)})),x=e=>n(this,void 0,void 0,(function*(){if(r.outputFile){const t=new JsonFileGenerator_1.JsonFileGenerator(r.outputFile,r);yield t.generate(e)}else{const t=new p.JsonObjectGenerator(r),n=yield t.generate(e);i=this.jsonStringifyPrettify(n,o)}})),K=e=>n(this,void 0,void 0,(function*(){if(r.outputFile){const t=new BitmarkFileGenerator_1.BitmarkFileGenerator(r.outputFile,r);yield t.generate(e)}else{const t=new l.BitmarkStringGenerator(r);i=yield t.generate(e)}})),w=e=>n(this,void 0,void 0,(function*(){i=this.jsonStringifyPrettify(e,o)})),A=e=>n(this,void 0,void 0,(function*(){yield x(e)}));return!h&&!T?s?yield b(f):g?yield v(f):yield P(f):T?g?yield S(m):u?yield x(m):yield k(m):u?yield A(m):g?yield w(m):yield K(m),i}))}upgrade(e,t){return n(this,void 0,void 0,(function*(){let i;const r=Object.assign({},t),o=Object.assign({},r.jsonOptions),a=r.bitmarkParserType;let s=e;if(y.env.isBrowser&&r.outputFile)throw new Error("Cannot write to file in browser environment");r.inputFormat&&r.inputFormat!==B.file||y.env.isNode&&fs.existsSync(s)&&(s=fs.readFileSync(s,{encoding:"utf8"}));let c=this.jsonParser.toAst(s);const u=e=>n(this,void 0,void 0,(function*(){const t=this.bitmarkParser.toAst(e,{parserType:a});if(r.outputFile){const e=new BitmarkFileGenerator_1.BitmarkFileGenerator(r.outputFile,r);yield e.generate(t)}else{const e=new l.BitmarkStringGenerator(r);i=yield e.generate(t)}})),g=e=>n(this,void 0,void 0,(function*(){if(r.outputFile){const t=new JsonFileGenerator_1.JsonFileGenerator(r.outputFile,r);yield t.generate(e)}else{const t=new p.JsonObjectGenerator(r),n=yield t.generate(e);i=this.jsonStringifyPrettify(n,o)}}));return!!!(null==c?void 0:c.bits)?yield u(s):yield g(c),i}))}createAst(e,t){let i,r=e;const o=Object.assign({},t);o.inputFormat&&o.inputFormat!==B.file||y.env.isNode&&fs.existsSync(r)&&(r=fs.readFileSync(r,{encoding:"utf8"}));let n=this.ast.preprocessAst(r);const a=!!n;a||(n=this.jsonParser.toAst(r));return i=!!!(null==n?void 0:n.bits)&&!a?this.bitmarkParser.toAst(r):n,i}convertText(e,t){return n(this,void 0,void 0,(function*(){var i;let r,o;const n=Object.assign({},t),a=Object.assign({},n.fileOptions),s=Object.assign({},n.jsonOptions),l=null!==(i=n.textFormat)&&void 0!==i?i:h.TextFormat.bitmarkMinusMinus;let p=e;if(y.env.isBrowser&&n.outputFile)throw new Error("Cannot write to file in browser environment");n.inputFormat&&n.inputFormat!==B.file||y.env.isNode&&fs.existsSync(p)&&(p=fs.readFileSync(p,{encoding:"utf8"}));const c=this.textParser.preprocessAst(p),u=!!c;if(o=u?yield this.textGenerator.generate(c,l):this.textParser.toAst(p,{textFormat:l}),n.outputFile){const e=n.outputFile.toString();let t=o;u||(t=this.jsonStringifyPrettify(o,s,!0));const i=a.append?"a":"w";fs.ensureDirSync(path_1.default.dirname(e)),fs.writeFileSync(e,t,{flag:i})}else r=u?o:this.jsonStringifyPrettify(o,s);return r}))}breakscapeText(e,t){if(!e)return e;const i=Object.assign({},t),r=Object.assign({},i.fileOptions);let o=e;if(y.env.isBrowser&&i.outputFile)throw new Error("Cannot write to file in browser environment");i.inputFormat&&i.inputFormat!==B.file||y.env.isNode&&fs.existsSync(o)&&(o=fs.readFileSync(o,{encoding:"utf8"}));const n=Breakscape_1.Breakscape.breakscape(o,{});if(!i.outputFile)return n;{const e=i.outputFile.toString(),t=r.append?"a":"w";fs.ensureDirSync(path_1.default.dirname(e)),fs.writeFileSync(e,n,{flag:t})}}unbreakscapeText(e,t){if(!e)return e;const i=Object.assign({},t),r=Object.assign({},i.fileOptions);let o=e;if(y.env.isBrowser&&i.outputFile)throw new Error("Cannot write to file in browser environment");i.inputFormat&&i.inputFormat!==B.file||y.env.isNode&&fs.existsSync(o)&&(o=fs.readFileSync(o,{encoding:"utf8"}));const n=Breakscape_1.Breakscape.unbreakscape(o);if(!i.outputFile)return n;{const e=i.outputFile.toString(),t=r.append?"a":"w";fs.ensureDirSync(path_1.default.dirname(e)),fs.writeFileSync(e,n,{flag:t})}}supportedBitsAsString(e){let t="";for(const i of e)t+=`${i.name} (since: ${i.since}`,i.deprecated&&(t+=`, deprecated: ${i.deprecated}`),t+=")\n";return t}}},5126:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ast=void 0;const r=i(1412),o=i(126),n=i(9681);t.Ast=class{constructor(){(0,r.init)()}walk(e,t,i,r){this.walkRecursive(e,[{index:0,key:t,value:e}],i,r)}getRouteKey(e){return e.reduce(((t,i,r)=>(+i.key!==i.index&&(t+=`${i.key}`,r<e.length-1&&(t+="_")),t)),"")}printTree(e,t=o.NodeType.bitmarkAst){this.walkRecursive(e,[{index:0,key:t,value:e}],{enter:(e,t)=>{if(console.log("Enter: "+this.getRouteKey(t)),t[t.length-1].key===o.NodeType.bodyJson)return!1},between:(e,t,i,r)=>{console.log("Between: "+this.getRouteKey(r))},exit:(e,t)=>{console.log("Exit: "+this.getRouteKey(t))},leaf:(e,t)=>{console.log("Leaf: "+this.getRouteKey(t))}},void 0)}preprocessAst(e){if(n.StringUtils.isString(e)){const t=e;try{e=JSON.parse(t)}catch(e){return}}if(this.isAst(e))return e}isAst(e){return!(!Object.prototype.hasOwnProperty.call(e,"bits")||!Array.isArray(e.bits))}walkRecursive(e,t,i,r){const{enter:o,between:n,exit:a,leaf:s}=i,l=t[t.length-1].key,p=!this.isValue(e),c=t[t.length-1];if(p){if(o){if(!1===o(c,t,r))return}}else s&&s(c,t,r);if(p){const o=this.isArray(e),a=Object.keys(e);for(let s=0,p=a.length;s<p;s++){const u=a[s],g=s===p-1,y=e,d=y[u];if(null!=d){const e={key:this.getAstKey(u,l,o),index:s,value:d},p=t.slice();if(p.push(e),this.walkRecursive(d,p,i,r),!g){const i=a[s+1],p=y[i],u={key:this.getAstKey(i,l,o),index:s+1,value:p};if(n){if(!1===n(c,e,u,t,r))break}}}}}p&&a&&a(c,t,r)}getAstKey(e,t,i){let r=e;return i&&t&&(r=`${t}Value`),o.NodeType.fromKey(r)||`unknown(${r})`}isArray(e){return Array.isArray(e)}isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}isValue(e){return!this.isObject(e)&&!this.isArray(e)}}},4470:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseBuilder=void 0;const r=i(7735),o=i(2028),n=i(9727),a=i(6989),s=i(4078),l=i(8025),p=i(9681);t.BaseBuilder=class{toExample(e,t){return null!=t?(!0===t&&(t=r.Breakscape.breakscape("true")),!1===t&&(t=r.Breakscape.breakscape("false")),{isDefaultExample:!1,isExample:!0,example:t}):e?{isDefaultExample:!0,isExample:!0}:{isDefaultExample:!1,isExample:!1}}toExampleBoolean(e,t){const i=null!=t&&!s.BooleanUtils.isBooleanString(t);return null==t||i?e||i?{isDefaultExample:!0,isExample:!0}:{isDefaultExample:!1,isExample:!1}:{isDefaultExample:!1,isExample:!0,example:s.BooleanUtils.toBoolean(t)}}toAstProperty(e,t){if(null==t)return;const i=o.Config.getRawPropertiesConfig()[e],r=e=>{if(null!=e){switch(i.format){case n.PropertyFormat.string:return null!=l.NumberUtils.asNumber(e)&&(e=`${e}`),p.StringUtils.isString(e)?p.StringUtils.string(e):void 0;case n.PropertyFormat.trimmedString:return null!=l.NumberUtils.asNumber(e)&&(e=`${e}`),p.StringUtils.isString(e)?p.StringUtils.trimmedString(e):void 0;case n.PropertyFormat.number:return l.NumberUtils.asNumber(e);case n.PropertyFormat.boolean:return s.BooleanUtils.toBoolean(e,!0);case n.PropertyFormat.invertedBoolean:return!s.BooleanUtils.toBoolean(e,!0)}return e}};if(Array.isArray(t)){const e=t;for(let t=0,i=e.length;t<i;t++)e[t]=r(e[t])}else t=r(t);return a.ArrayUtils.asArray(t)}}},5809:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;const r=i(7735),o=i(2028),n=i(9888),a=i(5854),s=i(4410),l=i(6149),p=i(385),c=i(6989),u=i(8903),g=i(8025),y=i(955),d=i(6936),f=i(4470),m=i(4564);class T extends f.BaseBuilder{bitmark(e){const{bits:t,errors:i}=e,r={bits:t,errors:i};return y.ObjectUtils.removeUnwantedProperties(r),r}bit(e){var t;const{bitType:i,bitLevel:r,textFormat:u,resourceType:d,isCommented:f,id:T,internalComment:h,externalId:b,spaceId:v,padletId:B,jupyterId:C,jupyterExecutionCount:P,isPublic:k,aiGenerated:S,machineTranslated:x,analyticsTag:K,feedbackEngine:w,feedbackType:A,disableFeedback:_,releaseVersion:I,releaseKind:L,releaseDate:N,ageRange:R,lang:E,language:O,publisher:F,publisherName:V,theme:j,computerLanguage:G,target:M,slug:D,tag:U,reductionTag:$,bubbleTag:J,levelCEFRp:z,levelCEFR:H,levelILR:W,levelACTFL:q,icon:Y,iconTag:X,colorTag:Z,flashcardSet:Q,subtype:ee,bookAlias:te,coverImage:ie,coverColor:re,publications:oe,author:ne,subject:ae,date:se,dateEnd:le,location:pe,kind:ce,hasMarkAsDone:ue,processHandIn:ge,action:ye,showInIndex:de,blockId:fe,pageNo:me,x:Te,y:he,width:be,height:ve,index:Be,classification:Ce,availableClassifications:Pe,allowedBit:ke,tableFixedHeader:Se,tableSearch:xe,tableSort:Ke,tablePagination:we,tablePaginationLimit:Ae,tableHeight:_e,tableWhitespaceNoWrap:Ie,tableAutoWidth:Le,tableResizableColumns:Ne,quizCountItems:Re,quizStrikethroughSolutions:Ee,codeLineNumbers:Oe,codeMinimap:Fe,stripePricingTableId:Ve,stripePublishableKey:je,thumbImage:Ge,scormSource:Me,posterImage:De,focusX:Ue,focusY:$e,pointerLeft:Je,pointerTop:ze,listItemIndent:He,backgroundWallpaper:We,hasBookNavigation:qe,duration:Ye,referenceProperty:Xe,deeplink:Ze,externalLink:Qe,externalLinkText:et,videoCallLink:tt,vendorUrl:it,search:rt,bot:ot,list:nt,textReference:at,isTracked:st,isInfoOnly:lt,imageFirst:pt,activityType:ct,labelTrue:ut,labelFalse:gt,content2Buy:yt,mailingList:dt,buttonCaption:ft,callToActionUrl:mt,caption:Tt,book:ht,quotedPerson:bt,partialAnswer:vt,reasonableNumOfChars:Bt,sampleSolution:Ct,additionalSolutions:Pt,resolved:kt,resolvedDate:St,resolvedBy:xt,maxCreatedBits:Kt,maxDisplayLevel:wt,page:At,productId:_t,product:It,productList:Lt,productVideo:Nt,productVideoList:Rt,productFolder:Et,technicalTerm:Ot,servings:Ft,ratingLevelStart:Vt,ratingLevelEnd:jt,ratingLevelSelected:Gt,title:Mt,subtitle:Dt,level:Ut,toc:$t,progress:Jt,anchor:zt,reference:Ht,referenceEnd:Wt,isCaseSensitive:qt,item:Yt,lead:Xt,pageNumber:Zt,marginNumber:Qt,hint:ei,instruction:ti,isDefaultExample:ii,example:ri,imageSource:oi,person:ni,markConfig:ai,extraProperties:si,imagePlaceholder:li,resources:pi,body:ci,footer:ui,markup:gi,parser:yi}=e,di=o.Config.getBitConfig(i),fi=c.ArrayUtils.asArray(pi),mi=this.cardNode(e),Ti=o.Config.isOfBitType(i,a.BitType.essay)?this.toAstProperty(n.PropertyConfigKey.reasonableNumOfChars,Bt):void 0,hi=Object.assign(Object.assign({bitType:i,bitLevel:r,textFormat:null!==(t=p.TextFormat.fromValue(u))&&void 0!==t?t:di.textFormatDefault,resourceType:l.ResourceTag.fromValue(d),isCommented:f,id:this.toAstProperty(n.PropertyConfigKey.id,T),internalComment:this.toAstProperty(n.PropertyConfigKey.internalComment,h),externalId:this.toAstProperty(n.PropertyConfigKey.externalId,b),spaceId:this.toAstProperty(n.PropertyConfigKey.spaceId,v),padletId:this.toAstProperty(n.PropertyConfigKey.padletId,B),jupyterId:this.toAstProperty(n.PropertyConfigKey.jupyterId,C),jupyterExecutionCount:this.toAstProperty(n.PropertyConfigKey.jupyterExecutionCount,P),isPublic:this.toAstProperty(n.PropertyConfigKey.isPublic,k),aiGenerated:this.toAstProperty(n.PropertyConfigKey.aiGenerated,S),machineTranslated:this.toAstProperty(n.PropertyConfigKey.machineTranslated,x),analyticsTag:this.toAstProperty(n.PropertyConfigKey.analyticsTag,K),feedbackEngine:this.toAstProperty(n.PropertyConfigKey.feedbackEngine,w),feedbackType:this.toAstProperty(n.PropertyConfigKey.feedbackType,A),disableFeedback:this.toAstProperty(n.PropertyConfigKey.disableFeedback,_),releaseVersion:this.toAstProperty(n.PropertyConfigKey.releaseVersion,I),releaseKind:this.toAstProperty(n.PropertyConfigKey.releaseKind,L),releaseDate:this.toAstProperty(n.PropertyConfigKey.releaseDate,N),book:ht,ageRange:this.toAstProperty(n.PropertyConfigKey.ageRange,R),lang:this.toAstProperty(n.PropertyConfigKey.lang,E),language:this.toAstProperty(n.PropertyConfigKey.language,O),publisher:this.toAstProperty(n.PropertyConfigKey.publisher,F),publisherName:this.toAstProperty(n.PropertyConfigKey.publisherName,V),theme:this.toAstProperty(n.PropertyConfigKey.theme,j),computerLanguage:this.toAstProperty(n.PropertyConfigKey.computerLanguage,G),target:this.toAstProperty(n.PropertyConfigKey.target,M),slug:this.toAstProperty(n.PropertyConfigKey.slug,D),tag:this.toAstProperty(n.PropertyConfigKey.tag,U),reductionTag:this.toAstProperty(n.PropertyConfigKey.reductionTag,$),bubbleTag:this.toAstProperty(n.PropertyConfigKey.bubbleTag,J),levelCEFRp:this.toAstProperty(n.PropertyConfigKey.levelCEFRp,z),levelCEFR:this.toAstProperty(n.PropertyConfigKey.levelCEFR,H),levelILR:this.toAstProperty(n.PropertyConfigKey.levelILR,W),levelACTFL:this.toAstProperty(n.PropertyConfigKey.levelACTFL,q),icon:this.toAstProperty(n.PropertyConfigKey.icon,Y),iconTag:this.toAstProperty(n.PropertyConfigKey.iconTag,X),colorTag:this.toAstProperty(n.PropertyConfigKey.colorTag,Z),flashcardSet:this.toAstProperty(n.PropertyConfigKey.flashcardSet,Q),subtype:this.toAstProperty(n.PropertyConfigKey.subtype,ee),bookAlias:this.toAstProperty(n.PropertyConfigKey.bookAlias,te),coverImage:this.toAstProperty(n.PropertyConfigKey.coverImage,ie),coverColor:this.toAstProperty(n.PropertyConfigKey.coverColor,re),publications:this.toAstProperty(n.PropertyConfigKey.publications,oe),author:this.toAstProperty(n.PropertyConfigKey.author,ne),subject:this.toAstProperty(n.PropertyConfigKey.subject,ae),date:this.toAstProperty(n.PropertyConfigKey.date,se),dateEnd:this.toAstProperty(n.PropertyConfigKey.dateEnd,le),location:this.toAstProperty(n.PropertyConfigKey.location,pe),kind:this.toAstProperty(n.PropertyConfigKey.kind,ce),hasMarkAsDone:this.toAstProperty(n.PropertyConfigKey.hasMarkAsDone,ue),processHandIn:this.toAstProperty(n.PropertyConfigKey.processHandIn,ge),action:this.toAstProperty(n.PropertyConfigKey.action,ye),showInIndex:this.toAstProperty(n.PropertyConfigKey.showInIndex,de),blockId:this.toAstProperty(n.PropertyConfigKey.blockId,fe),pageNo:this.toAstProperty(n.PropertyConfigKey.pageNo,me),x:this.toAstProperty(n.PropertyConfigKey.x,Te),y:this.toAstProperty(n.PropertyConfigKey.y,he),width:this.toAstProperty(n.PropertyConfigKey.width,be),height:this.toAstProperty(n.PropertyConfigKey.height,ve),index:this.toAstProperty(n.PropertyConfigKey.index,Be),classification:this.toAstProperty(n.PropertyConfigKey.classification,Ce),availableClassifications:this.toAstProperty(n.PropertyConfigKey.availableClassifications,Pe),allowedBit:this.toAstProperty(n.PropertyConfigKey.allowedBit,ke),tableFixedHeader:this.toAstProperty(n.PropertyConfigKey.tableFixedHeader,Se),tableSearch:this.toAstProperty(n.PropertyConfigKey.tableSearch,xe),tableSort:this.toAstProperty(n.PropertyConfigKey.tableSort,Ke),tablePagination:this.toAstProperty(n.PropertyConfigKey.tablePagination,we),tablePaginationLimit:this.toAstProperty(n.PropertyConfigKey.tablePaginationLimit,Ae),tableHeight:this.toAstProperty(n.PropertyConfigKey.tableHeight,_e),tableWhitespaceNoWrap:this.toAstProperty(n.PropertyConfigKey.tableWhitespaceNoWrap,Ie),tableAutoWidth:this.toAstProperty(n.PropertyConfigKey.tableAutoWidth,Le),tableResizableColumns:this.toAstProperty(n.PropertyConfigKey.tableResizableColumns,Ne),quizCountItems:this.toAstProperty(n.PropertyConfigKey.quizCountItems,Re),quizStrikethroughSolutions:this.toAstProperty(n.PropertyConfigKey.quizStrikethroughSolutions,Ee),codeLineNumbers:this.toAstProperty(n.PropertyConfigKey.codeLineNumbers,Oe),codeMinimap:this.toAstProperty(n.PropertyConfigKey.codeMinimap,Fe),stripePricingTableId:this.toAstProperty(n.PropertyConfigKey.stripePricingTableId,Ve),stripePublishableKey:this.toAstProperty(n.PropertyConfigKey.stripePublishableKey,je),thumbImage:this.toAstProperty(n.PropertyConfigKey.thumbImage,Ge),scormSource:this.toAstProperty(n.PropertyConfigKey.scormSource,Me),posterImage:this.toAstProperty(n.PropertyConfigKey.posterImage,De),focusX:this.toAstProperty(n.PropertyConfigKey.focusX,Ue),focusY:this.toAstProperty(n.PropertyConfigKey.focusY,$e),pointerLeft:this.toAstProperty(n.PropertyConfigKey.pointerLeft,Je),pointerTop:this.toAstProperty(n.PropertyConfigKey.pointerTop,ze),listItemIndent:this.toAstProperty(n.PropertyConfigKey.listItemIndent,He),backgroundWallpaper:this.toAstProperty(n.PropertyConfigKey.backgroundWallpaper,We),hasBookNavigation:this.toAstProperty(n.PropertyConfigKey.hasBookNavigation,qe),deeplink:this.toAstProperty(n.PropertyConfigKey.deeplink,Ze),externalLink:this.toAstProperty(n.PropertyConfigKey.externalLink,Qe),externalLinkText:this.toAstProperty(n.PropertyConfigKey.externalLinkText,et),videoCallLink:this.toAstProperty(n.PropertyConfigKey.videoCallLink,tt),vendorUrl:this.toAstProperty(n.PropertyConfigKey.vendorUrl,it),search:this.toAstProperty(n.PropertyConfigKey.search,rt),bot:this.toAstProperty(n.PropertyConfigKey.bot,ot),duration:this.toAstProperty(n.PropertyConfigKey.duration,Ye),referenceProperty:this.toAstProperty(n.PropertyConfigKey.property_reference,Xe),list:this.toAstProperty(n.PropertyConfigKey.list,nt),textReference:this.toAstProperty(n.PropertyConfigKey.textReference,at),isTracked:this.toAstProperty(n.PropertyConfigKey.isTracked,st),isInfoOnly:this.toAstProperty(n.PropertyConfigKey.isInfoOnly,lt),imageFirst:this.toAstProperty(n.PropertyConfigKey.imageFirst,pt),activityType:this.toAstProperty(n.PropertyConfigKey.activityType,ct),labelTrue:this.toAstProperty(n.PropertyConfigKey.labelTrue,ut),labelFalse:this.toAstProperty(n.PropertyConfigKey.labelFalse,gt),content2Buy:this.toAstProperty(n.PropertyConfigKey.content2Buy,yt),mailingList:this.toAstProperty(n.PropertyConfigKey.mailingList,dt),buttonCaption:this.toAstProperty(n.PropertyConfigKey.buttonCaption,ft),callToActionUrl:this.toAstProperty(n.PropertyConfigKey.callToActionUrl,mt),caption:Tt,quotedPerson:this.toAstProperty(n.PropertyConfigKey.quotedPerson,bt),partialAnswer:this.toAstProperty(n.PropertyConfigKey.partialAnswer,vt),reasonableNumOfChars:Ti,sampleSolution:this.toAstProperty(n.PropertyConfigKey.property_sampleSolution,Ct),additionalSolutions:this.toAstProperty(n.PropertyConfigKey.additionalSolutions,Pt),resolved:this.toAstProperty(n.PropertyConfigKey.resolved,kt),resolvedDate:this.toAstProperty(n.PropertyConfigKey.resolvedDate,St),resolvedBy:this.toAstProperty(n.PropertyConfigKey.resolvedBy,xt),maxCreatedBits:this.toAstProperty(n.PropertyConfigKey.maxCreatedBits,Kt),maxDisplayLevel:this.toAstProperty(n.PropertyConfigKey.maxDisplayLevel,wt),page:this.toAstProperty(n.PropertyConfigKey.page,At),productId:this.toAstProperty(n.PropertyConfigKey.productId,_t),product:this.toAstProperty(n.PropertyConfigKey.product,It),productList:this.toAstProperty(n.PropertyConfigKey.productList,Lt),productVideo:this.toAstProperty(n.PropertyConfigKey.productVideo,Nt),productVideoList:this.toAstProperty(n.PropertyConfigKey.productVideoList,Rt),productFolder:this.toAstProperty(n.PropertyConfigKey.productFolder,Et),technicalTerm:Ot,servings:Ft,ratingLevelStart:Vt,ratingLevelEnd:jt,ratingLevelSelected:this.toAstProperty(n.PropertyConfigKey.ratingLevelSelected,Gt),title:Mt,subtitle:Dt,level:g.NumberUtils.asNumber(Ut),toc:this.toAstProperty(n.PropertyConfigKey.toc,$t),progress:this.toAstProperty(n.PropertyConfigKey.progress,Jt),anchor:zt,reference:Ht,referenceEnd:Wt,markConfig:ai,itemLead:this.itemLead(Yt,Xt,Zt,Qt),hint:ei,instruction:ti},this.toExample(ii,ri)),{imageSource:oi,person:ni,imagePlaceholder:li,resources:fi,body:ci,cardNode:mi,footer:ui,markup:gi,parser:yi,extraProperties:this.parseExtraProperties(si)});return o.Config.isOfBitType(i,a.BitType.interview)&&this.pushDownTree(void 0,void 0,mi,"questions",n.PropertyConfigKey.reasonableNumOfChars,Bt),this.pushDownTree(ci,[s.BodyBitType.gap],void 0,void 0,n.PropertyConfigKey.isCaseSensitive,qt),this.pushDownTree(void 0,void 0,mi,"pairs",n.PropertyConfigKey.isCaseSensitive,qt),this.pushDownTree(void 0,void 0,mi,["matrix","cells"],n.PropertyConfigKey.isCaseSensitive,qt),this.pushExampleDownTree(ci,mi,ii,ri),this.setDefaultBitValues(hi),this.setIsExampleFlags(hi),this.addVersionToParserInfo(hi),y.ObjectUtils.removeUnwantedProperties(hi,{ignoreAllFalse:!0,ignoreEmptyString:["example"]}),m.NodeValidator.validateBit(hi)}choice(e){const{text:t,isCorrect:i,item:r,lead:o,pageNumber:n,marginNumber:a,hint:s,instruction:l,isDefaultExample:p,example:c}=e,u=Object.assign({text:t,isCorrect:!!i,itemLead:this.itemLead(r,o,n,a),hint:s,instruction:l},this.toExampleBoolean(p,c));return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}response(e){const{text:t,isCorrect:i,item:r,lead:o,pageNumber:n,marginNumber:a,hint:s,instruction:l,isDefaultExample:p,example:c}=e,u=Object.assign({text:t,isCorrect:!!i,itemLead:this.itemLead(r,o,n,a),hint:s,instruction:l},this.toExampleBoolean(p,c));return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}botResponse(e){const{response:t,reaction:i,feedback:r,item:o,lead:n,pageNumber:a,marginNumber:s,hint:l}=e,p={response:t,reaction:i,feedback:r,itemLead:this.itemLead(o,n,a,s),hint:l};return y.ObjectUtils.removeUnwantedProperties(p,{ignoreEmptyString:["response","reaction","feedback"]}),p}quiz(e){const{choices:t,responses:i,item:r,lead:o,pageNumber:n,marginNumber:a,hint:s,instruction:l,isDefaultExample:p,example:c}=e;this.pushExampleDownTreeBoolean(p,c,!0,t),this.pushExampleDownTreeBoolean(p,c,!1,i);const u={itemLead:this.itemLead(r,o,n,a),hint:s,instruction:l,isExample:p||null!=c,choices:t,responses:i};return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}heading(e){var t;const{forKeys:i,forValues:o}=e;if(null==i)return;return{forKeys:i||r.Breakscape.EMPTY_STRING,forValues:null!==(t=c.ArrayUtils.asArray(o))&&void 0!==t?t:[]}}pair(e){const{key:t,keyAudio:i,keyImage:r,values:o,item:n,lead:a,pageNumber:s,marginNumber:l,hint:p,instruction:c,isCaseSensitive:u,isDefaultExample:g,example:d}=e,f=Object.assign(Object.assign({key:t,keyAudio:i,keyImage:r,itemLead:this.itemLead(n,a,s,l),hint:p,instruction:c},this.toExample(g,d)),{isCaseSensitive:u,values:o});return y.ObjectUtils.removeUnwantedProperties(f,{ignoreAllFalse:!0}),f}matrix(e){const{key:t,cells:i,item:r,lead:o,pageNumber:n,marginNumber:a,hint:s,instruction:l,isDefaultExample:p}=e;let c=!1;for(const e of null!=i?i:[])p&&!e.isExample&&(e.isDefaultExample=!0,e.isExample=!0),c=!!e.isExample||c;const u={key:t,itemLead:this.itemLead(r,o,n,a),hint:s,instruction:l,isExample:c,cells:i};return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}matrixCell(e){const{values:t,item:i,lead:r,pageNumber:o,marginNumber:n,hint:a,instruction:s,isCaseSensitive:l,isDefaultExample:p,example:c}=e,u=Object.assign({values:t,itemLead:this.itemLead(i,r,o,n),hint:a,instruction:s,isCaseSensitive:l},this.toExample(p,c));return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}table(e){const{columns:t,rows:i}=e;return{columns:t,rows:i}}question(e){const{question:t,partialAnswer:i,item:r,lead:o,pageNumber:n,marginNumber:a,hint:s,instruction:l,reasonableNumOfChars:p,sampleSolution:c,additionalSolutions:u,isDefaultExample:g,example:d}=e,f=Object.assign(Object.assign({itemLead:this.itemLead(r,o,n,a),question:t,partialAnswer:i,hint:s,instruction:l},this.toExample(g,d)),{reasonableNumOfChars:p,sampleSolution:c,additionalSolutions:u});return y.ObjectUtils.removeUnwantedProperties(f,{ignoreEmptyString:["question"],ignoreAllFalse:!0}),f}ingredient(e){const{title:t,checked:i,item:r,quantity:o,unit:n,unitAbbr:a,decimalPlaces:s,disableCalculation:l}=e,p={title:t,checked:null!=i&&i,item:r,quantity:o,unit:n,unitAbbr:a,decimalPlaces:s,disableCalculation:l};return y.ObjectUtils.removeUnwantedProperties(p,{ignoreAllFalse:!0}),p}body(e){const{bodyParts:t,bodyJson:i}=e;return{bodyParts:t,bodyJson:i}}bodyText(e,t){const{text:i}=e;return{type:s.BodyBitType.text,data:{bodyText:i,isPlain:t}}}footer(e){const{footerParts:t}=e;return{footerParts:t}}footerText(e,t){const{text:i}=e;return{footerText:i,isPlain:t}}gap(e){const{solutions:t,item:i,lead:r,pageNumber:o,marginNumber:n,hint:a,instruction:l,isCaseSensitive:p,isDefaultExample:c,example:u}=e,g={type:s.BodyBitType.gap,data:Object.assign({solutions:t,itemLead:this.itemLead(i,r,o,n),hint:a,instruction:l,isCaseSensitive:p},this.toExample(c,u))};return y.ObjectUtils.removeUnwantedProperties(g,{ignoreAllFalse:!0}),g}markConfig(e){const{mark:t,color:i,emphasis:r}=e,o={mark:t,color:i,emphasis:r};return y.ObjectUtils.removeUnwantedProperties(o),o}mark(e){const{solution:t,mark:i,item:r,lead:o,pageNumber:n,marginNumber:a,hint:l,instruction:p,isDefaultExample:c,example:u}=e,g={type:s.BodyBitType.mark,data:Object.assign({solution:t,mark:i,itemLead:this.itemLead(r,o,n,a),hint:l,instruction:p},this.toExample(c,u))};return y.ObjectUtils.removeUnwantedProperties(g),g}select(e){const{options:t,prefix:i,postfix:r,item:o,lead:n,pageNumber:a,marginNumber:l,hint:p,instruction:c}=e,u={type:s.BodyBitType.select,data:{prefix:i,options:t,postfix:r,itemLead:this.itemLead(o,n,a,l),hint:p,instruction:c}};return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}selectOption(e){const{text:t,isCorrect:i,item:r,lead:o,pageNumber:n,marginNumber:a,hint:s,instruction:l,isDefaultExample:p,example:c}=e,u=Object.assign({text:t,isCorrect:!!i,itemLead:this.itemLead(r,o,n,a),hint:s,instruction:l},this.toExample(p,c));return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}highlight(e){const{texts:t,prefix:i,postfix:r,item:o,lead:n,pageNumber:a,marginNumber:l,hint:p,instruction:c}=e,u={type:s.BodyBitType.highlight,data:{prefix:i,texts:t,postfix:r,itemLead:this.itemLead(o,n,a,l),hint:p,instruction:c}};return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}highlightText(e){const{text:t,isCorrect:i,isHighlighted:r,item:o,lead:n,pageNumber:a,marginNumber:s,hint:l,instruction:p,isDefaultExample:c,example:u}=e,g=Object.assign({text:t,isCorrect:!!i,isHighlighted:!!r,itemLead:this.itemLead(o,n,a,s),hint:l,instruction:p},this.toExample(c,u));return y.ObjectUtils.removeUnwantedProperties(g,{ignoreAllFalse:!0}),g}flashcard(e){const{question:t,answer:i,alternativeAnswers:r,item:o,lead:n,pageNumber:a,marginNumber:s,hint:l,instruction:p,isDefaultExample:c,example:u}=e,g=Object.assign({question:t,answer:i,alternativeAnswers:r,itemLead:this.itemLead(o,n,a,s),hint:l,instruction:p},this.toExampleBoolean(c,u));return y.ObjectUtils.removeUnwantedProperties(g,{ignoreAllFalse:!0}),g}definitionListItem(e){const{term:t,description:i,alternativeDefinitions:r,item:o,lead:n,pageNumber:a,marginNumber:s,hint:l,instruction:p,isDefaultExample:c,example:u}=e,g=Object.assign({term:t,description:i,alternativeDefinitions:r,itemLead:this.itemLead(o,n,a,s),hint:l,instruction:p},this.toExampleBoolean(c,u));return y.ObjectUtils.removeUnwantedProperties(g,{ignoreAllFalse:!0}),g}statement(e){const{text:t,isCorrect:i,item:r,lead:o,pageNumber:n,marginNumber:a,hint:s,instruction:l,isDefaultExample:p,example:c}=e,u=Object.assign({text:t,isCorrect:!!i,itemLead:this.itemLead(r,o,n,a),hint:s,instruction:l},this.toExampleBoolean(p,c));return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0}),u}imageSource(e){const{url:t,mockupId:i,size:r,format:o,trim:n}=e,a={url:t,mockupId:i,size:r,format:o,trim:n};return y.ObjectUtils.removeUnwantedProperties(a,{ignoreFalse:["trim"]}),a}person(e){const{name:t,title:i,avatarImage:r}=e,o={name:t,title:i,avatarImage:r};return y.ObjectUtils.removeUnwantedProperties(o),o}technicalTerm(e){const{technicalTerm:t,lang:i}=e,r={technicalTerm:t,lang:i};return y.ObjectUtils.removeUnwantedProperties(r),r}servings(e){const{servings:t,unit:i,unitAbbr:r,decimalPlaces:o,disableCalculation:n,hint:a}=e,s={servings:t,unit:i,unitAbbr:r,decimalPlaces:o,disableCalculation:n,hint:a};return y.ObjectUtils.removeUnwantedProperties(s),s}ratingLevelStartEnd(e){const{level:t,label:i}=e,r={level:t,label:i};return y.ObjectUtils.removeUnwantedProperties(r),r}captionDefinition(e){const{term:t,description:i}=e,r={term:t,description:i};return y.ObjectUtils.removeUnwantedProperties(r),r}captionDefinitionList(e){const{columns:t,definitions:i}=e,r={columns:t,definitions:i};return y.ObjectUtils.removeUnwantedProperties(r),r}itemLead(e,t,i,r){let o;return(e||t||i||r)&&(o={item:e,lead:t,pageNumber:i,marginNumber:r}),o}cardBit(e){const{item:t,lead:i,pageNumber:r,marginNumber:o,hint:n,instruction:a,isDefaultExample:s,example:l,extraProperties:p,body:c}=e,u=Object.assign(Object.assign({itemLead:this.itemLead(t,i,r,o),hint:n,instruction:a},this.toExample(s,l)),{body:c,extraProperties:this.parseExtraProperties(p)});return y.ObjectUtils.removeUnwantedProperties(u,{ignoreAllFalse:!0,ignoreEmptyString:["example"]}),m.NodeValidator.validateCardBit(u)}cardNode(e){let t;const{questions:i,elements:r,flashcards:o,definitions:n,statement:a,statements:s,choices:l,responses:p,quizzes:c,heading:u,pairs:g,matrix:d,table:f,botResponses:m,ingredients:T,captionDefinitionList:h,cardBits:b}=e;return(i||r||o||n||a||s||l||p||c||u||g||d||f||m||T||h||b)&&(t={questions:i,elements:r,flashcards:o,definitions:n,statement:a,statements:s,choices:l,responses:p,quizzes:c,heading:u,pairs:g,matrix:d,table:f,botResponses:m,ingredients:T,captionDefinitionList:h,cardBits:b},y.ObjectUtils.removeUnwantedProperties(t)),t}pushExampleDownTree(e,t,i,r){if(i||r){if(t){if(this.pushExampleDownTreeString(i,r,t.pairs),this.pushExampleDownTreeBoolean(i,r,!1,t.flashcards),this.pushExampleDownTreeBoolean(i,r,!1,t.definitions),this.pushExampleDownTreeBoolean(i,r,!0,t.choices),this.pushExampleDownTreeBoolean(i,r,!1,t.responses,t.statements,t.statement),t.quizzes)for(const e of t.quizzes)this.pushExampleDownTreeBoolean(i,r,!0,e.choices),this.pushExampleDownTreeBoolean(i,r,!1,e.responses);if(t.matrix)for(const e of t.matrix)this.pushExampleDownTreeString(i,r,e.cells)}e&&this.pushExampleDownTreeBodyBits(i,r,e)}}pushExampleDownTreeBoolean(e,t,i,...r){if((e||t)&&Array.isArray(r))for(const o of r)if(o){const r=Array.isArray(o)?o:[o];u.BitUtils.fillBooleanExample(r,e,t,i)}}pushExampleDownTreeString(e,t,...i){if((e||t)&&Array.isArray(i))for(const r of i)if(r){const i=Array.isArray(r)?r:[r];u.BitUtils.fillStringExample(i,e,t,!1)}}pushExampleDownTreeBodyBits(e,t,i){if((e||t)&&i&&i.bodyParts&&0!==i.bodyParts.length)for(const r of i.bodyParts)if(r)switch(r.type){case s.BodyBitType.gap:{const i=r;u.BitUtils.fillStringExample([i.data],e,t,!1);break}case s.BodyBitType.mark:{const i=r;u.BitUtils.fillBooleanExample([i.data],e,t,!1);break}case s.BodyBitType.select:{const i=r;u.BitUtils.fillBooleanExample(i.data.options,e,t,!0);break}case s.BodyBitType.highlight:{const i=r;u.BitUtils.fillBooleanExample(i.data.texts,e,t,!0);break}}}pushDownTree(e,t,i,r,o,n){if(void 0!==n){if(i&&r){Array.isArray(r)||(r=[r]);const e=y.ObjectUtils.flatMapPath(i,r);for(const t of e)null==t[o]&&(t[o]=n)}if(t&&e&&e.bodyParts&&e.bodyParts.length>0)for(const i of e.bodyParts)if(i&&-1!==t.indexOf(i.type)){const e=i.data;null==e[o]&&(e[o]=n)}}}parseExtraProperties(e){if(!e)return;const t=Object.entries(e);if(0===t.length)return;const i={};for(const[e,r]of t)i[e]=c.ArrayUtils.asArray(r)||[r];return i}setIsExampleFlags(e){var t,i,r,o,n,a,l,p,c,u,g,y,d,f;e.isExample=!1;const m=t=>!!t&&(t.isDefaultExample||null!=t.example?(t.isExample=!0,e.isExample=!0):t.isExample=t===e&&!!e.isExample,t.isExample),{body:T,cardNode:h}=e;if(T&&T.bodyParts)for(const e of T.bodyParts)switch(e.type){case s.BodyBitType.gap:case s.BodyBitType.mark:m(e.data);break;case s.BodyBitType.select:{const t=e;let i=!1;for(const e of t.data.options)i=!!m(e)||i;t.data.isExample=i;break}case s.BodyBitType.highlight:{const t=e;let i=!1;for(const e of t.data.texts)i=!!m(e)||i;t.data.isExample=i;break}}if(h){for(const e of null!==(t=h.flashcards)&&void 0!==t?t:[])m(e);for(const e of null!==(i=h.definitions)&&void 0!==i?i:[])m(e);for(const e of null!==(r=h.pairs)&&void 0!==r?r:[])m(e);for(const e of null!==(o=h.matrix)&&void 0!==o?o:[]){let t=!1;for(const i of null!==(n=e.cells)&&void 0!==n?n:[])t=!!m(i)||t;e.isExample=t}for(const e of null!==(a=h.quizzes)&&void 0!==a?a:[]){let t=!1;for(const i of null!==(l=e.responses)&&void 0!==l?l:[])t=!!m(i)||t;for(const i of null!==(p=e.choices)&&void 0!==p?p:[])t=!!m(i)||t;e.isExample=t}for(const e of null!==(c=h.responses)&&void 0!==c?c:[])m(e);for(const e of null!==(u=h.choices)&&void 0!==u?u:[])m(e);for(const e of null!==(g=h.statements)&&void 0!==g?g:[])m(e);m(h.statement);for(const e of null!==(y=h.questions)&&void 0!==y?y:[])m(e)}m(e.statement);for(const t of null!==(d=e.responses)&&void 0!==d?d:[])m(t);for(const t of null!==(f=e.choices)&&void 0!==f?f:[])m(t);m(e)}setDefaultBitValues(e){switch(e.bitType){case a.BitType.articleAi:case a.BitType.noteAi:case a.BitType.summaryAi:e.aiGenerated=this.toAstProperty(n.PropertyConfigKey.aiGenerated,!0)}}addVersionToParserInfo(e){var t;const i=null!==(t=e.parser)&&void 0!==t?t:{};i.version=d.env.appVersion.full,e.parser=i}}t.Builder=T},5533:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceBuilder=void 0;const o=i(7735),n=i(6149),a=i(955),s=i(201),l=i(4470),p=i(4564);class c extends l.BaseBuilder{resource(e){var t;let i;const{type:a,value:s,format:l}=e,p=r(e,["type","value","format"]),c=Object.assign({type:a,value:null!=s?s:o.Breakscape.EMPTY_STRING,format:null!=l?l:o.Breakscape.EMPTY_STRING},p);switch(a){case n.ResourceTag.video:case n.ResourceTag.videoEmbed:case n.ResourceTag.videoLink:case n.ResourceTag.stillImageFilmEmbed:case n.ResourceTag.stillImageFilmLink:{const i=["src1x","src2x","src3x","src4x"],r=[];for(const t of i){const i=e[t];if(i){const e=this.resource({type:n.ResourceTag.image,value:i});e&&r.push(e)}}c.thumbnails=[...null!==(t=c.thumbnails)&&void 0!==t?t:[],...r]}}switch(a){case n.ResourceTag.image:case n.ResourceTag.imagePortrait:case n.ResourceTag.imageLandscape:i=this.imageResource(c,a);break;case n.ResourceTag.imageLink:i=this.imageLinkResource(c);break;case n.ResourceTag.audio:i=this.audioResource(c);break;case n.ResourceTag.audioEmbed:i=this.audioEmbedResource(c);break;case n.ResourceTag.audioLink:i=this.audioLinkResource(c);break;case n.ResourceTag.video:i=this.videoResource(c);break;case n.ResourceTag.videoEmbed:i=this.videoEmbedResource(c);break;case n.ResourceTag.videoLink:i=this.videoLinkResource(c);break;case n.ResourceTag.stillImageFilmEmbed:i=this.stillImageFilmEmbedResource(c);break;case n.ResourceTag.stillImageFilmLink:i=this.stillImageFilmLinkResource(c);break;case n.ResourceTag.article:i=this.articleResource(c);break;case n.ResourceTag.document:i=this.documentResource(c);break;case n.ResourceTag.documentEmbed:i=this.documentEmbedResource(c);break;case n.ResourceTag.documentLink:i=this.documentLinkResource(c);break;case n.ResourceTag.documentDownload:i=this.documentDownloadResource(c);break;case n.ResourceTag.appLink:i=this.appLinkResource(c);break;case n.ResourceTag.websiteLink:i=this.websiteLinkResource(c)}return i}imageResource(e,t){const{value:i,src1x:r,src2x:o,src3x:l,src4x:c,width:u,height:g,alt:y,zoomDisabled:d,license:f,copyright:m,showInIndex:T,caption:h,search:b}=e,v={type:n.ResourceTag.image,typeAlias:null!=t?t:n.ResourceTag.image,format:s.UrlUtils.fileExtensionFromUrl(i),provider:s.UrlUtils.domainFromUrl(i),value:i,src1x:r,src2x:o,src3x:l,src4x:c,width:u,height:g,alt:y,zoomDisabled:d,license:f,copyright:m,showInIndex:T,caption:h,search:b};return a.ObjectUtils.removeUnwantedProperties(v,{ignoreFalse:["zoomDisabled"]}),p.NodeValidator.validateResource(v)}imageLinkResource(e){const{value:t,src1x:i,src2x:r,src3x:o,src4x:l,width:c,height:u,alt:g,zoomDisabled:y,license:d,copyright:f,showInIndex:m,caption:T,search:h}=e,b={type:n.ResourceTag.imageLink,typeAlias:n.ResourceTag.imageLink,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,src1x:i,src2x:r,src3x:o,src4x:l,zoomDisabled:y,width:c,height:u,alt:g,license:d,copyright:f,showInIndex:m,caption:T,search:h};return a.ObjectUtils.removeUnwantedProperties(b,{ignoreFalse:["zoomDisabled"]}),p.NodeValidator.validateResource(b)}audioResource(e){const{value:t,duration:i,mute:r,autoplay:o,license:l,copyright:c,showInIndex:u,caption:g,search:y}=e,d={type:n.ResourceTag.audio,typeAlias:n.ResourceTag.audio,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,duration:i,mute:r,autoplay:o,license:l,copyright:c,showInIndex:u,caption:g,search:y};return a.ObjectUtils.removeUnwantedProperties(d),p.NodeValidator.validateResource(d)}audioEmbedResource(e){const{value:t,duration:i,mute:r,autoplay:o,license:l,copyright:c,showInIndex:u,caption:g,search:y}=e,d={type:n.ResourceTag.audioEmbed,typeAlias:n.ResourceTag.audioEmbed,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,duration:i,mute:r,autoplay:o,license:l,copyright:c,showInIndex:u,caption:g,search:y};return a.ObjectUtils.removeUnwantedProperties(d),p.NodeValidator.validateResource(d)}audioLinkResource(e){const{value:t,duration:i,mute:r,autoplay:o,license:l,copyright:c,showInIndex:u,caption:g,search:y}=e,d={type:n.ResourceTag.audioLink,typeAlias:n.ResourceTag.audioLink,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,duration:i,mute:r,autoplay:o,license:l,copyright:c,showInIndex:u,caption:g,search:y};return a.ObjectUtils.removeUnwantedProperties(d),p.NodeValidator.validateResource(d)}videoResource(e){const{value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v}=e,B={type:n.ResourceTag.video,typeAlias:n.ResourceTag.video,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v};return a.ObjectUtils.removeUnwantedProperties(B),p.NodeValidator.validateResource(B)}videoEmbedResource(e){const{value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v}=e,B={type:n.ResourceTag.videoEmbed,typeAlias:n.ResourceTag.videoEmbed,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v};return a.ObjectUtils.removeUnwantedProperties(B),p.NodeValidator.validateResource(B)}videoLinkResource(e){const{value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v}=e,B={type:n.ResourceTag.videoLink,typeAlias:n.ResourceTag.videoLink,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v};return a.ObjectUtils.removeUnwantedProperties(B),p.NodeValidator.validateResource(B)}stillImageFilmEmbedResource(e){const{value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v}=e,B={type:n.ResourceTag.stillImageFilmEmbed,typeAlias:n.ResourceTag.stillImageFilmEmbed,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v};return a.ObjectUtils.removeUnwantedProperties(B),p.NodeValidator.validateResource(B)}stillImageFilmLinkResource(e){const{value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v}=e,B={type:n.ResourceTag.stillImageFilmLink,typeAlias:n.ResourceTag.stillImageFilmLink,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,width:i,height:r,duration:o,mute:l,autoplay:c,allowSubtitles:u,showSubtitles:g,alt:y,posterImage:d,thumbnails:f,license:m,copyright:T,showInIndex:h,caption:b,search:v};return a.ObjectUtils.removeUnwantedProperties(B),p.NodeValidator.validateResource(B)}articleResource(e){const{value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c}=e,u={type:n.ResourceTag.article,typeAlias:n.ResourceTag.article,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c};return a.ObjectUtils.removeUnwantedProperties(u),p.NodeValidator.validateResource(u)}documentResource(e){const{value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c}=e,u={type:n.ResourceTag.document,typeAlias:n.ResourceTag.document,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c};return a.ObjectUtils.removeUnwantedProperties(u),p.NodeValidator.validateResource(u)}documentEmbedResource(e){const{value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c}=e,u={type:n.ResourceTag.documentEmbed,typeAlias:n.ResourceTag.documentEmbed,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c};return a.ObjectUtils.removeUnwantedProperties(u),p.NodeValidator.validateResource(u)}documentLinkResource(e){const{value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c}=e,u={type:n.ResourceTag.documentLink,typeAlias:n.ResourceTag.documentLink,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c};return a.ObjectUtils.removeUnwantedProperties(u),p.NodeValidator.validateResource(u)}documentDownloadResource(e){const{value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c}=e,u={type:n.ResourceTag.documentDownload,typeAlias:n.ResourceTag.documentDownload,format:s.UrlUtils.fileExtensionFromUrl(t),provider:s.UrlUtils.domainFromUrl(t),value:t,license:i,copyright:r,showInIndex:o,caption:l,search:c};return a.ObjectUtils.removeUnwantedProperties(u),p.NodeValidator.validateResource(u)}appLinkResource(e){const{value:t,license:i,copyright:r,showInIndex:o,caption:s,search:l}=e,c={type:n.ResourceTag.appLink,typeAlias:n.ResourceTag.appLink,value:t,license:i,copyright:r,showInIndex:o,caption:s,search:l};return a.ObjectUtils.removeUnwantedProperties(c),p.NodeValidator.validateResource(c)}websiteLinkResource(e){const{value:t,siteName:i,license:r,copyright:o,showInIndex:s,caption:l,search:c}=e,u={type:n.ResourceTag.websiteLink,typeAlias:n.ResourceTag.websiteLink,value:t,siteName:i,license:r,copyright:o,showInIndex:s,caption:l,search:c};return a.ObjectUtils.removeUnwantedProperties(u),p.NodeValidator.validateResource(u)}}t.ResourceBuilder=c},4564:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValidator=void 0;const r=i(9681);const o=new class{validateBit(e){if(!e)return e;return e}validateCardBit(e){if(!e)return e;return e}validateResource(e){if(!e)return;let t=e,i=!1;return e.type,i=!!e.value,i||e.type&&(t={type:e.type,typeAlias:e.type}),t}isRequired(e,t){if(!e)throw new Error(`${t} is required but is not set`)}isOneOfRequired(e,t){if(Array.isArray(e))for(const t of e)if(t)return;throw new Error(`One of '${t.join(", ")}' is required but none is set`)}isString(e,t){if(!r.StringUtils.isString(e))throw new Error(`${t} is required to be a string`)}isNonEmptyString(e,t){if(!r.StringUtils.isString(e)||""===e)throw new Error(`${t} is required to be a non-empty string`)}isStringOrBoolean(e,t){if(!r.StringUtils.isString(e)&&!0!==e&&!1!==e)throw new Error(`${t} is required to be a string or a boolean`)}isNonEmptyStringOrBoolean(e,t){if((!r.StringUtils.isString(e)||""===e)&&!0!==e&&!1!==e)throw new Error(`${t} is required to be a non-empty string or a boolean`)}isArray(e,t){if(!Array.isArray(e))throw new Error(`${t} is required to be a array`)}isNonEmptyArray(e,t){if(!(Array.isArray(e)&&e.length>0))throw new Error(`${t} is required to be a non-empty array`)}isNumber(e,t){if(!Number.isFinite(e))throw new Error(`${t} is required to be a number`)}isBoolean(e,t){if(!0!==e&&!1!==e)throw new Error(`${t} is required to be a boolean`)}isStringOrNumberOrBooleanOrNullOrUndefined(e,t){if(!r.StringUtils.isString(e)&&!Number.isFinite(e)&&!0!==e&&!1!==e&&null!=e)throw new Error(`${t} is required to be a string or a number or a boolean or null or undefined`)}};t.NodeValidator=o},6772:function(e,t){var i=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.StringWriter=void 0;t.StringWriter=class{constructor(){this._string="",this.endOfLineString="\n",this.lastWrite=""}get isSync(){return!0}getString(){return this._string}open(){return i(this,void 0,void 0,(function*(){return this.openSync(),Promise.resolve()}))}close(){return i(this,void 0,void 0,(function*(){try{this.closeSync()}catch(e){return Promise.reject(e)}return Promise.resolve()}))}openSync(){this._buffer=[],this._string=""}closeSync(){if(!this._buffer)throw new Error("open() or openSync() never called");this._string=this._buffer.join(""),this._buffer=[]}writeLine(e){return this._buffer?(null!=e?(this._buffer.push(e+this.endOfLineString),this.lastWrite=e+this.endOfLineString):(this._buffer.push(this.endOfLineString),this.lastWrite=this.endOfLineString),this):this}writeLines(e,t){if(!this._buffer)return this;if(!e)return this;let i="";for(let r=0,o=e.length;r<o;r++){const n=e[r];this._buffer.push(n),i+=n,t&&r<o-1&&(this._buffer.push(t),i+=t),this._buffer.push(this.endOfLineString),i+=this.endOfLineString}return this.lastWrite=i,this}write(e){return this._buffer?(null==e||(e&&(this.lastWrite=e),this._buffer.push(e)),this):this}writeWhiteSpace(){return this.write(" "),this}getLastWrite(){return this.lastWrite}}},7735:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Breakscape=void 0;const r=i(9681),o=new RegExp(`${/([*`_!=])\1/.source}|${/^([*`_!=])/.source}|${/([*`_!=\\[])$/.source}|${/^(\|)(code[\s]*|code:|image:|[\s]*$)/.source}|${/^([#]{1,3})([^\S\r\n]+)/.source}|${/^(•)([0-9]+[iI]*|[a-zA-Z]{1}|_|\+|-|)([^\S\r\n]+)/.source}|${/(\[)([.@#▼►%!?+\-$_=&])/.source}|${/^(~)(~~~)/.source}|${/^(\$)(\$\$\$)/.source}|${/(\^*])/.source}|${/(\^+)/.source}`,"gm"),n=new RegExp("^(\\[)(\\^*)(\\.)","gm"),a=new RegExp("\\^([\\^]*)","gm"),s=new RegExp("^(\\[)\\^(\\^*)(\\.)","gm"),l=new RegExp("^(\\||•|#)","gm");const p=new class{constructor(){this.EMPTY_STRING=""}breakscape(e,t){if(null==e)return e;const i=Object.assign({},t),a=e=>{if(!e)return e;const t=i.bitTagOnly?n:o,r=i.bitTagOnly?"$1^$2$3":"$1$3$4$6$8$11$13$15$18^$1$2$5$7$9$10$12$14$16$17";return e=e.replace(t,r)};if(Array.isArray(e)){const t=i.modifyArray?e:[e.length];for(let i=0,o=e.length;i<o;i++){const o=e[i];r.StringUtils.isString(o)&&(t[i]=a(o))}e=t}else r.StringUtils.isString(e)&&(e=a(e));return e}unbreakscape(e,t){if(null==e)return e;const i=Object.assign({},t),o=e=>{if(!e)return e;const t=i.bitTagOnly?s:a,r=i.bitTagOnly?"$1$2$3":"$1";return e=e.replace(t,r)};if(Array.isArray(e)){const t=i.modifyArray?e:[];for(let i=0,n=e.length;i<n;i++){const n=e[i];r.StringUtils.isString(n)?t[i]=o(n):t[i]=n}e=t}else r.StringUtils.isString(e)&&(e=o(e));return e}breakscapeCode(e,t){if(null==e)return e;const i=Object.assign({},t),o=e=>e?e.replace(l,"$1^"):e;if(Array.isArray(e)){const t=i.modifyArray?e:[e.length];for(let t=0,i=e.length;t<i;t++){const i=e[t];r.StringUtils.isString(i)&&(e[t]=o(i))}e=t}else r.StringUtils.isString(e)&&(e=o(e));return e}concatenate(e,t){return e+t}};t.Breakscape=p},2028:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Config=void 0;const r=i(3619),o=i(9600),n=i(1457),a=i(6915),s=i(5512),l=i(5854),p=i(385),c=i(955),u=i(4445),g=i(6853),y=i(5837),d=i(9916);const f=new class{constructor(){this.bitLevelMin=1,this.bitLevelMax=7,this.bitCache=new Map,this.comboResourcesCache=new Map}getBitType(e){var t;return(null==e?void 0:e.startsWith("|"))&&(e=e.substring(1)),null!==(t=l.BitType.fromValue(e))&&void 0!==t?t:l.BitType._error}isOfBitType(e,t){if(!e)return!1;if(e===t)return!0;const i=this.getBitConfig(e);if(!i)return!1;if(Array.isArray(t)){for(const e of t)if(i.inheritedBitTypesSet.has(e))return!0;return!1}return i.inheritedBitTypesSet.has(t)}isBitTypeCommented(e){return!!(null==e?void 0:e.startsWith("|"))}getBitConfig(e){var t;let i=this.bitCache.get(e);if(!i){const o=()=>{throw new Error(`No config found for bit: ${e}`)},n=[],a=[];let s=e;for(;s;){const e=g.BITS[s];e||o(),n.push(s),a.push(e),s=e.baseBitType}a.reverse();const l=a.reduce(((e,t)=>e=c.ObjectUtils.deepMerge(e,t)),{}),{since:y,textFormatDefault:d,tags:f,cardSet:m,deprecated:T,bodyAllowed:h,bodyRequired:b,footerAllowed:v,footerRequired:B,resourceAttachmentAllowed:C,rootExampleType:P}=l,k=this.getAllResourcesTagsWithZeroCounts(),S=u.ConfigHydrator.hydrateTagsConfig(null!=f?f:[]),x=u.ConfigHydrator.hydrateCardSetConfig(m),K=null===(t=S.info)||void 0===t?void 0:t.comboResourceType,w=Object.assign({},S.tags);for(const[e,t]of Object.entries(k))w[e]||(w[e]=t);i=new r.BitConfig(y,e,n,null!=d?d:p.TextFormat.bitmarkMinusMinus,w,x,T,h,b,v,B,C,P,K),this.bitCache.set(e,i)}return i}getRawPropertiesConfig(){return d.PROPERTIES}getTagConfigForTag(e,t){if(e)for(const[,i]of Object.entries(e))if(i.tag===t)return i}getTagsConfigForCardSet(e,t,i){const r=this.getBitConfig(e);if(!r)return;const o=r.cardSet;if(!o)return;t=Math.min(t,o.variants.length-1);const n=o.variants[t];return n[i=Math.min(i,n.length-1)].tags}getBitResourcesConfig(e,t){var i;let r={};const a=new Map,l=this.getBitConfig(e),p={};for(const[e,t]of Object.entries(l.tags))t.type===s.BitTagType.resource&&(p[e]=t);const c=null!==(i=l.comboResourceType)&&void 0!==i?i:l.resourceAttachmentAllowed&&t;if(c){const e=new Map,i=this.getComboResource(c);if(i){const t=Object.values(i).filter((e=>e.type===s.BitTagType.resource));t.map((e=>e.tag)).forEach((i=>{const r=t.find((e=>e.tag===i));r&&e.set(i,r)}));const r=this.getComboResourceTagTypes(c);r&&r.length>0&&a.set(c,r)}if(t)for(const[t,i]of Object.entries(p)){const n=c===i.tag,a=!!e&&e.has(i.tag);if(n){const e=new o.ResourceTagConfig(i.configKey,i.tag,1,1,i.chain,i.jsonKey,i.deprecated);r[t]=e}else if(a){if(e){const o=e.get(i.tag);o&&(r[t]=o)}}else r[t]=i}else r=p}else r=p;return new n.ResourcesConfig(r,l.resourceAttachmentAllowed,t,a)}getComboResourceTagTypes(e){const t=this.getComboResource(e);if(t){return Object.values(t).filter((e=>e.type===s.BitTagType.resource)).map((e=>e.tag))}}getComboResource(e){if(!e)return;let t=this.comboResourcesCache.get(e);return t||(t={},Object.values(y.GROUPS).filter((t=>t.type===a.GroupConfigType.comboResource&&t.comboResourceType===e)).forEach((e=>{t=Object.assign(Object.assign({},t),u.ConfigHydrator.hydrateTagsConfig(e.tags).tags)})),0===Object.keys(t).length&&(t=void 0),this.comboResourcesCache.set(e,t)),t}getAllResourcesTagsWithZeroCounts(){let e=this.allResourcesCache;if(!e){e={},Object.values(y.GROUPS).filter((e=>e.type===a.GroupConfigType.resource)).forEach((t=>{e=Object.assign(Object.assign({},e),u.ConfigHydrator.hydrateTagsConfig(t.tags).tags)}));for(const t of Object.values(e)){const e=t;e.maxCount=0,e.minCount=0}this.allResourcesCache=e}return e}};t.Config=f},4445:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigHydrator=void 0;const r=i(5814),o=i(9371),n=i(9788),a=i(1519),s=i(9600),l=i(5591),p=i(7112),c=i(9888),u=i(5051),g=i(7797),y=i(5512),d=i(5554),f=i(5837),m=i(9916),T=i(168),h=i(9248);const b=new class{hydrateTagsConfig(e){var t;const i={tags:{}};for(const r of e){let e;switch(r.type){case y.BitTagType.tag:e=this.hydrateTagConfig(r);break;case y.BitTagType.property:e=this.hydratePropertyTagConfig(r);break;case y.BitTagType.resource:e=this.hydrateResourceTagConfig(r);break;case y.BitTagType.group:e=this.hydrateTagGroupConfig(r)}e&&(i.tags=Object.assign(Object.assign({},i.tags),e.tags),i.info=Object.assign(null!==(t=i.info)&&void 0!==t?t:{},e.info))}return i}hydrateCardSetConfig(e){if(!e)return;const t=d.CARDS[e];if(!t)throw new Error(`No config found for card set config key '${e}'`);const i=[];for(const e of t.variants){const t=[];for(const i of e){const e=this.hydrateCardVariantConfig(i);t.push(e)}i.push(t)}return new r.CardSetConfig(e,i)}hydrateTagConfig(e){const{configKey:t,maxCount:i,minCount:r,chain:o}=e,a=g.TagConfigKey.fromKey(t)||l.ConfigKey._unknown,s=h.TAGS[a];if(!s)throw new Error(`No config found for tag config key '${t}'`);const{tag:p,deprecated:c}=s;let u;o&&(u=this.hydrateTagsConfig(o).tags);const y=new n.MarkupTagConfig(a,p,null!=i?i:1,null!=r?r:0,u,c);return{tags:{[a]:y}}}hydratePropertyTagConfig(e){const{configKey:t,maxCount:i,minCount:r,chain:o}=e,n=c.PropertyConfigKey.fromKey(t)||l.ConfigKey._unknown,s=m.PROPERTIES[n];if(!s)throw new Error(`No config found for property config key '${t}'`);const{tag:p,deprecated:u,single:g,format:y,defaultValue:d,jsonKey:f,astKey:T}=s;let h;o&&(h=this.hydrateTagsConfig(o).tags);const b=new a.PropertyTagConfig(n,p,null!=i?i:1,null!=r?r:0,h,f,T,g,y,d,u);return{tags:{[n]:b}}}hydrateResourceTagConfig(e){const{configKey:t,maxCount:i,minCount:r,chain:o}=e,n=u.ResourceConfigKey.fromKey(t)||l.ConfigKey._unknown,a=T.RESOURCES[n];if(!a)throw new Error(`No config found for resource config key '${t}'`);const{tag:p,deprecated:c,jsonKey:g}=a;let y;o&&(y=this.hydrateTagsConfig(o).tags);const d=new s.ResourceTagConfig(n,p,null!=i?i:1,null!=r?r:0,y,g,c);return{tags:{[n]:d}}}hydrateTagGroupConfig(e){var t,i;const{configKey:r}=e,o=p.GroupConfigKey.fromKey(r)||l.ConfigKey._unknown,n=f.GROUPS[o];if(!n)throw new Error(`No config found for group config key '${r}'`);const{tags:a}=n,s=this.hydrateTagsConfig(a).tags,c=Object.values(s);if(c.length>0){const r=c[0],o=r;o.maxCount=null!==(t=e.maxCount)&&void 0!==t?t:r.maxCount,o.minCount=null!==(i=e.minCount)&&void 0!==i?i:r.minCount}return{tags:s,info:{comboResourceType:n.comboResourceType}}}hydrateCardVariantConfig(e){const{tags:t,bodyAllowed:i,bodyRequired:r,repeatCount:n}=e,a=this.hydrateTagsConfig(t);return new o.CardVariantConfig(a.tags,i,r,n)}};t.ConfigHydrator=b},6853:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BITS=void 0;const r=i(8199),o=i(7112),n=i(9888),a=i(7797),s=i(5512),l=i(5854),p=i(3778),c=i(363),u=i(385),g={[l.BitType._error]:{since:"1.3.0",tags:[]},[l.BitType._comment]:{since:"1.4.12",tags:[]},[l.BitType.appFlashcards]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.flashcardSet,maxCount:p.Count.infinity}],rootExampleType:c.ExampleType.string},[l.BitType.appFlashcardsQuiz]:{since:"1.3.0",baseBitType:l.BitType.appFlashcards},[l.BitType.appFlashcardsLearn]:{since:"1.3.0",baseBitType:l.BitType.appFlashcards},[l.BitType.appLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAppLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.article]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title}]},[l.BitType.articleAlt]:{since:"1.15.0",baseBitType:l.BitType.article},[l.BitType.articleResponsive]:{since:"1.21.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.imageFirst}]},[l.BitType.standardArticleNormative]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.standardArticleNonNormative]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.smartStandardArticleNormative]:{since:"1.28.0",baseBitType:l.BitType.standardArticleNormative},[l.BitType.smartStandardArticleNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardArticleNonNormative},[l.BitType.smartStandardArticleNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardArticleNormative},[l.BitType.smartStandardArticleNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardArticleNonNormative},[l.BitType.statement]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.pageArticle]:{since:"1.15.0",baseBitType:l.BitType.article},[l.BitType.pageArticleAlt]:{since:"1.15.0",baseBitType:l.BitType.article},[l.BitType.pageArticleResponsive]:{since:"1.21.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.imageFirst}]},[l.BitType.buttonCopyText]:{since:"1.4.3",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.callToAction]:{since:"1.15.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.callToActionUrl,minCount:1}]},[l.BitType.callToActionSubscribe]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionContact]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionJoin]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionMail]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionLearnMore]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionSeeMore]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionWatch]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionStartNow]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionGetOffer]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionBookNow]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionShopNow]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionGetNow]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionDownload]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionCreateAccount]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.appBitmarkFromJavascript]:{since:"1.4.5",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.maxCreatedBits}],textFormatDefault:u.TextFormat.text},[l.BitType.appBitmarkFromEditor]:{since:"1.4.5",baseBitType:l.BitType.appBitmarkFromJavascript},[l.BitType.articleEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceArticleEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.articleLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceArticleLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.audio]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAudio,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.audioEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAudioEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.audioLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAudioLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.bitAlias]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference},{type:s.BitTagType.tag,configKey:a.TagConfigKey.anchor}]},[l.BitType.book]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_bookCommon}]},[l.BitType.bookAcknowledgements]:{since:"1.17.0",baseBitType:l.BitType.book},[l.BitType.bookAddendum]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookAfterword]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookAppendix]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookArticle]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookAutherBio]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookBibliography]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookComingSoon]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookConclusion]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookCopyright]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookCopyrightPermissions]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookDedication]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookEndnotes]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookEpigraph]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookEpilogue]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookForword]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookFrontispiece]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookImprint]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookIncitingIncident]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookIntroduction]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookListOfContributors]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookNotes]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookPostscript]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookPreface]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookPrologue]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookReadMore]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookReferenceList]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookRequestForABookReview]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookSummary]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookTeaser]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookTitle]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookAlias]:{since:"1.4.3",baseBitType:l.BitType.book,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.bookAlias,maxCount:p.Count.infinity}]},[l.BitType.bookClose]:{since:"1.18.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.botActionResponse]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:r.CardSetConfigKey._botActionResponses},[l.BitType.botActionSend]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.date}]},[l.BitType.browserImage]:{since:"1.3.0",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.focusX},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.focusY}]},[l.BitType.card1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.question1]:{since:"1.3.0",baseBitType:l.BitType.card1},[l.BitType.survey1]:{since:"1.3.0",baseBitType:l.BitType.card1},[l.BitType.surveyAnonymous1]:{since:"1.3.0",baseBitType:l.BitType.card1},[l.BitType.chapter]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.anchor},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.toc},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.progress}]},[l.BitType.clozeAndMultipleChoiceText]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_gap},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.coachCallToActionClozeAndMultipleChoiceText]:{since:"1.3.0",baseBitType:l.BitType.clozeAndMultipleChoiceText},[l.BitType.cloze]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.quizCountItems},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.quizStrikethroughSolutions},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_gap}]},[l.BitType.clozeInstructionGrouped]:{since:"1.3.0",baseBitType:l.BitType.cloze},[l.BitType.clozeSolutionGrouped]:{since:"1.3.0",baseBitType:l.BitType.cloze},[l.BitType.gapText]:{since:"1.5.15",baseBitType:l.BitType.cloze},[l.BitType.gapTextInstructionGrouped]:{since:"1.5.15",baseBitType:l.BitType.clozeInstructionGrouped},[l.BitType.coachSelfReflectionCloze]:{since:"1.3.0",baseBitType:l.BitType.cloze},[l.BitType.coachCallToActionCloze]:{since:"1.3.0",baseBitType:l.BitType.cloze},[l.BitType.clozeList]:{since:"1.4.13",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:r.CardSetConfigKey._clozeList},[l.BitType.code]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.computerLanguage},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.codeLineNumbers},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.codeMinimap}],textFormatDefault:u.TextFormat.text},[l.BitType.formula]:{since:"1.35.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],textFormatDefault:u.TextFormat.latex},[l.BitType.appCodeCell]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.appCodeEditor]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.appCodeIde]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.codeRuntime]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.consoleLog]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.output]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.stdout]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.step]:{since:"1.5.1",baseBitType:l.BitType.article},[l.BitType.stepImageScreenshot]:{since:"1.5.1",baseBitType:l.BitType.image},[l.BitType.stepImageScreenshotWithPointer]:{since:"1.5.1",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pointerTop,minCount:1,maxCount:1},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pointerLeft,minCount:1,maxCount:1}]},[l.BitType.milestone]:{since:"1.20.0",baseBitType:l.BitType.step},[l.BitType.conversationLeft1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_person}]},[l.BitType.conversationLeft1Scream]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.conversationLeft1Thought]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.conversationRight1]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.conversationRight1Scream]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.conversationRight1Thought]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.cookPreparation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookStep]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookIngredients]:{since:"1.5.16",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_technicalTerm},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.servings,chain:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.unit},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.unitAbbr},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.decimalPlaces},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.disableCalculation},{type:s.BitTagType.tag,configKey:a.TagConfigKey.hint}]}],cardSet:r.CardSetConfigKey._ingredients},[l.BitType.recipe]:{since:"1.5.24",baseBitType:l.BitType.cookIngredients},[l.BitType.cookRemark]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookVariation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookInsert]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookArrangement]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookPracticeAdvise]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookPlate]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookRecommendation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookPersonalRecommendation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookSideDrink]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookSideDish]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookTimer]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.document]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceDocument,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.documentDownload]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceDocumentDownload,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.documentEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceDocumentEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.documentLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceDocumentLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.essay]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.reasonableNumOfChars},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.property_sampleSolution},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.additionalSolutions,maxCount:p.Count.infinity},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.partialAnswer},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.property_reference,maxCount:p.Count.infinity}],rootExampleType:c.ExampleType.string},[l.BitType.coachSelfReflectionEssay]:{since:"1.3.0",baseBitType:l.BitType.essay},[l.BitType.coachCallToActionEssay]:{since:"1.3.0",baseBitType:l.BitType.essay},[l.BitType.example]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title}],rootExampleType:c.ExampleType.string},[l.BitType.exampleAlt]:{since:"1.16.0",baseBitType:l.BitType.example},[l.BitType.standardExampleNormative]:{since:"1.16.0",baseBitType:l.BitType.example},[l.BitType.standardExampleNonNormative]:{since:"1.16.0",baseBitType:l.BitType.example},[l.BitType.smartStandardExampleNormative]:{since:"1.28.0",baseBitType:l.BitType.standardExampleNormative},[l.BitType.smartStandardExampleNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardExampleNonNormative},[l.BitType.smartStandardExampleNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardExampleNormative},[l.BitType.smartStandardExampleNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardExampleNonNormative},[l.BitType.appAiPrompt]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.aiPrompt]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.articleAi]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.articleAttachment]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.assignment]:{since:"1.3.0",baseBitType:l.BitType.essay},[l.BitType.audioTranscript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.bitmarkExample]:{since:"1.3.0",baseBitType:l.BitType.example},[l.BitType.blogArticle]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.bug]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.bugAlt]:{since:"1.16.0",baseBitType:l.BitType.bug},[l.BitType.checklist]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.coachAudioTranscript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.coachCallToActionChecklist]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.coachHomeRules]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.coachVideoTranscript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.correction]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.danger]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.dangerAlt]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.definitionTerm]:{since:"1.34.0",baseBitType:l.BitType.article},[l.BitType.descriptionTerm]:{since:"1.33.0",baseBitType:l.BitType.article},[l.BitType.details1]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.details]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.editorial]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.editorNote]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.featured]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.glossaryTerm]:{since:"1.33.0",baseBitType:l.BitType.article},[l.BitType.help]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.helpAlt]:{since:"1.16.0",baseBitType:l.BitType.help},[l.BitType.hint]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.hintAlt]:{since:"1.16.0",baseBitType:l.BitType.hint},[l.BitType.indexTerm]:{since:"1.33.0",baseBitType:l.BitType.article},[l.BitType.info]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.infoAlt]:{since:"1.16.0",baseBitType:l.BitType.info},[l.BitType.langLearningOutcomes]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langEnablingLanguageSkills]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLifeSkills]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langEnglishAroundWorld]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langGoodToKnow]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLearningGoal]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLearningStrategy]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLikeALocal]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langMaterial]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langUsefulPhrases]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLevelDown]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLevelUp]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langExtraActivity]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langVideoScript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langAudioScript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langVocabulary]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langHomework]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langTeacherNote]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langTeacherPronunciation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.list]:{since:"1.22.0",baseBitType:l.BitType.article},[l.BitType.standardList]:{since:"1.22.0",baseBitType:l.BitType.article},[l.BitType.smartStandardList]:{since:"1.28.0",baseBitType:l.BitType.standardList},[l.BitType.smartStandardListCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardList},[l.BitType.message]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.newspaperArticle]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.note]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.noteAlt]:{since:"1.16.0",baseBitType:l.BitType.note},[l.BitType.standardNoteNormative]:{since:"1.16.0",baseBitType:l.BitType.note},[l.BitType.standardNoteNonNormative]:{since:"1.16.0",baseBitType:l.BitType.note},[l.BitType.smartStandardNoteNormative]:{since:"1.28.0",baseBitType:l.BitType.standardNoteNormative},[l.BitType.smartStandardNoteNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardNoteNonNormative},[l.BitType.smartStandardNoteNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardNoteNormative},[l.BitType.smartStandardNoteNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardNoteNonNormative},[l.BitType.noteAi]:{since:"1.3.0",baseBitType:l.BitType.note},[l.BitType.notebookArticle]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.preparationNote]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.releaseNotesSummary]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.remark]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.remarkAlt]:{since:"1.16.0",baseBitType:l.BitType.remark},[l.BitType.standardRemarkNormative]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.standardRemarkNonNormative]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.smartStandardRemarkNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkNormative},[l.BitType.smartStandardRemarkNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkNonNormative},[l.BitType.smartStandardRemarkNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkNormative},[l.BitType.smartStandardRemarkNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkNonNormative},[l.BitType.selfAssessment]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.separator]:{since:"1.4.15",baseBitType:l.BitType.article},[l.BitType.separatorAlt]:{since:"1.16.0",baseBitType:l.BitType.separator},[l.BitType.sticker]:{since:"1.5.28",baseBitType:l.BitType.article},[l.BitType.sideNote]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.summary]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.summaryAi]:{since:"1.3.0",baseBitType:l.BitType.summary},[l.BitType.videoTranscript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.warning]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.warningAlt]:{since:"1.16.0",baseBitType:l.BitType.warning},[l.BitType.workbookArticle]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.collapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.sideNoteCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.infoCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.remarkCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.warningCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.dangerCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.noteCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.exampleCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.hintCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.bugCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.container]:{since:"1.9.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.allowedBit,maxCount:p.Count.infinity}]},[l.BitType.containerWrap]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerNowrap]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerNowrapStretch]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerGroup]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerFolder]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerCarousel]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerCards]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerGrid]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerStack]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerSlides]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerGallery]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerScroller]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerTabs]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerAccordionTabs]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerFolderAll]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerBits2]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerCookRecipe]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerNewsArticle]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerPreview]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.pageContainer]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.pageContainerWrap]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.pageContainerNowrap]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.pageContainerNowrapStretch]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.pageContainerFolder]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.pageContainerGroup]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.metalevelExplanation]:{since:"1.10.0",baseBitType:l.BitType.article},[l.BitType.module]:{since:"1.5.26",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.hasBookNavigation},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productId,minCount:1,maxCount:p.Count.infinity},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.duration}]},[l.BitType.moduleProduct]:{since:"1.9.0",baseBitType:l.BitType.module,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productId,minCount:1}]},[l.BitType.exampleList]:{since:"1.4.13",baseBitType:l.BitType.example,cardSet:r.CardSetConfigKey._exampleBitList,rootExampleType:c.ExampleType.string},[l.BitType.extractorPage]:{since:"1.5.17",baseBitType:l.BitType.image},[l.BitType.extractorPageCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPage},[l.BitType.extractorPageWithBlocks]:{since:"1.5.21",baseBitType:l.BitType.image},[l.BitType.extractorPageWithBlocksCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPageWithBlocks},[l.BitType.extractorConfiguration]:{since:"1.7.1",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],textFormatDefault:u.TextFormat.text},[l.BitType.extractorBlock]:{since:"1.5.16",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.blockId},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pageNo},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.x},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.y},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.width},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.height},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.index},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.classification},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.availableClassifications,maxCount:p.Count.infinity},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImage,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.extractorRepeatedText]:{since:"1.5.21",baseBitType:l.BitType.article},[l.BitType.extractorPageNumber]:{since:"1.5.21",baseBitType:l.BitType.article},[l.BitType.extractorPageNumberCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPageNumber},[l.BitType.extractorPageHeader]:{since:"1.5.21",baseBitType:l.BitType.article},[l.BitType.extractorPageHeaderCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPageHeader},[l.BitType.extractorPageFooter]:{since:"1.5.21",baseBitType:l.BitType.article},[l.BitType.extractorPageFooterCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPageFooter},[l.BitType.pageOpenBook]:{since:"1.5.10",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.book},{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.pageSubscribe]:{since:"1.5.10",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.mailingList}]},[l.BitType.assignmentList]:{since:"1.4.13",baseBitType:l.BitType.exampleList},[l.BitType.pageFooter]:{since:"1.4.13",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug}],cardSet:r.CardSetConfigKey._exampleBitList},[l.BitType.definitionList]:{since:"1.34.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:r.CardSetConfigKey._flashcardLike},[l.BitType.descriptionList]:{since:"1.33.0",baseBitType:l.BitType.definitionList},[l.BitType.flashcard]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:r.CardSetConfigKey._flashcardLike},[l.BitType.flashcard1]:{since:"1.3.0",baseBitType:l.BitType.flashcard},[l.BitType.focusImage]:{since:"1.3.0",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.focusX},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.focusY}]},[l.BitType.highlightText]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.image]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.backgroundWallpaper},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImage,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.appCreateBitsFromImage]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.appGetScreenshot]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.detailsImage]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.figure]:{since:"1.3.0",baseBitType:l.BitType.image,cardSet:r.CardSetConfigKey._captionDefinitionsList},[l.BitType.imageBanner]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageFigure]:{since:"1.3.0",baseBitType:l.BitType.image,cardSet:r.CardSetConfigKey._captionDefinitionsList},[l.BitType.imageFigureAlt]:{since:"1.16.0",baseBitType:l.BitType.imageFigure},[l.BitType.standardImageFigureNormative]:{since:"1.16.0",baseBitType:l.BitType.imageFigure},[l.BitType.standardImageFigureNonNormative]:{since:"1.16.0",baseBitType:l.BitType.imageFigure},[l.BitType.smartStandardImageFigureNormative]:{since:"1.28.0",baseBitType:l.BitType.standardImageFigureNormative},[l.BitType.smartStandardImageFigureNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardImageFigureNonNormative},[l.BitType.smartStandardImageFigureNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardImageFigureNormative},[l.BitType.smartStandardImageFigureNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardImageFigureNonNormative},[l.BitType.imageLandscape]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageMood]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imagePortrait]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imagePrototype]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageSeparator]:{since:"1.4.15",baseBitType:l.BitType.image},[l.BitType.imageSeparatorAlt]:{since:"1.16.0",baseBitType:l.BitType.imageSeparator},[l.BitType.imageScreenshot]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageStyled]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageSuperWide]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageZoom]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.langLifeSkillIcon]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.lifeSkillSticker]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.pageBanner]:{since:"1.4.3",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug}]},[l.BitType.pageHero]:{since:"1.11.0",baseBitType:l.BitType.pageBanner},[l.BitType.screenshot]:{since:"1.3.0",deprecated:"1.4.0",baseBitType:l.BitType.image},[l.BitType.tableImage]:{since:"1.5.15",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.caption}]},[l.BitType.tableImageAlt]:{since:"1.16.0",baseBitType:l.BitType.tableImage},[l.BitType.standardTableImageNormative]:{since:"1.16.0",baseBitType:l.BitType.tableImage},[l.BitType.standardTableImageNonNormative]:{since:"1.16.0",baseBitType:l.BitType.tableImage},[l.BitType.standardRemarkTableImageNormative]:{since:"1.17.0",baseBitType:l.BitType.tableImage},[l.BitType.standardRemarkTableImageNonNormative]:{since:"1.17.0",baseBitType:l.BitType.tableImage},[l.BitType.smartStandardTableImageNormative]:{since:"1.28.0",baseBitType:l.BitType.standardTableImageNormative},[l.BitType.smartStandardTableImageNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardTableImageNonNormative},[l.BitType.smartStandardRemarkTableImageNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkTableImageNormative},[l.BitType.smartStandardRemarkTableImageNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkTableImageNonNormative},[l.BitType.smartStandardTableImageNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardTableImageNormative},[l.BitType.smartStandardTableImageNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardTableImageNonNormative},[l.BitType.smartStandardRemarkTableImageNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkTableImageNormative},[l.BitType.smartStandardRemarkTableImageNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkTableImageNonNormative},[l.BitType.imageLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImageLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.imageOnDevice]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImage},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_imageSource}],resourceAttachmentAllowed:!1},[l.BitType.imageResponsive]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImageResponsive}],resourceAttachmentAllowed:!1},[l.BitType.imagesLogoGrave]:{since:"1.5.11",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImage,minCount:1,maxCount:p.Count.infinity}],resourceAttachmentAllowed:!1},[l.BitType.prototypeImages]:{since:"1.6.1",baseBitType:l.BitType.imagesLogoGrave},[l.BitType.internalLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference}]},[l.BitType.interview]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.reasonableNumOfChars}],cardSet:r.CardSetConfigKey._questions},[l.BitType.interviewInstructionGrouped]:{since:"1.3.0",baseBitType:l.BitType.interview},[l.BitType.botInterview]:{since:"1.3.0",baseBitType:l.BitType.interview},[l.BitType.learningPathBook]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_learningPathCommon}]},[l.BitType.bookLink]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.bookLinkNext]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.bookLinkPrev]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathClassroomEvent]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathClassroomTraining]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathClosing]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathFeedback]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathLearningGoal]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathLti]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathSign]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathStep]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathBotTraining]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.bot}]},[l.BitType.learningPathExternalLink]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.externalLink},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.externalLinkText}]},[l.BitType.learningPathVideoCall]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.videoCallLink}]},[l.BitType.leLearningObjectives]:{since:"1.25.0",baseBitType:l.BitType.learningPathLearningGoal,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leVideoCall]:{since:"1.25.0",baseBitType:l.BitType.learningPathVideoCall,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leClassroomEvent]:{since:"1.25.0",baseBitType:l.BitType.learningPathClassroomEvent,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leCompletion]:{since:"1.25.0",baseBitType:l.BitType.learningPathClosing,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leExternalLink]:{since:"1.25.0",baseBitType:l.BitType.learningPathExternalLink,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leReadBook]:{since:"1.25.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leLearningStep]:{since:"1.25.0",baseBitType:l.BitType.learningPathStep,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.lePreparationTask]:{since:"1.26.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leRead]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leTask]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leTodo]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leFollowUpTask]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leFinishingTask]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leAssignment]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leWatchVideoEmbed]:{since:"1.27.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceVideoEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.leListenAudioEmbed]:{since:"1.27.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAudioEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.listItem]:{since:"1.22.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.listItemIndent}]},[l.BitType.standardListItem]:{since:"1.22.0",baseBitType:l.BitType.listItem},[l.BitType.smartStandardListItem]:{since:"1.28.0",baseBitType:l.BitType.standardListItem},[l.BitType.smartStandardListItemCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardListItem},[l.BitType.mark]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_markConfig},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_mark}]},[l.BitType.match]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive}],cardSet:r.CardSetConfigKey._matchPairs},[l.BitType.matchAll]:{since:"1.3.0",baseBitType:l.BitType.match},[l.BitType.matchReverse]:{since:"1.3.0",baseBitType:l.BitType.match},[l.BitType.matchAllReverse]:{since:"1.3.0",baseBitType:l.BitType.match},[l.BitType.matchSolutionGrouped]:{since:"1.3.0",baseBitType:l.BitType.match},[l.BitType.matchMatrix]:{since:"1.3.0",baseBitType:l.BitType.match,cardSet:r.CardSetConfigKey._matchMatrix},[l.BitType.matchAudio]:{since:"1.3.0",baseBitType:l.BitType.match,cardSet:r.CardSetConfigKey._matchAudioPairs},[l.BitType.matchPicture]:{since:"1.3.0",baseBitType:l.BitType.match,cardSet:r.CardSetConfigKey._matchImagePairs},[l.BitType.multipleChoice1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.coachSelfReflectionMultipleChoice1]:{since:"1.3.0",baseBitType:l.BitType.multipleChoice1},[l.BitType.multipleChoice]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}],cardSet:r.CardSetConfigKey._quiz},[l.BitType.coachSelfReflectionMultipleChoice]:{since:"1.3.0",baseBitType:l.BitType.multipleChoice},[l.BitType.multipleChoiceText]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.coachCallToActionMultipleChoiceText]:{since:"1.3.0",baseBitType:l.BitType.multipleChoiceText},[l.BitType.coachSelfReflectionMultipleChoiceText]:{since:"1.3.0",baseBitType:l.BitType.multipleChoiceText},[l.BitType.multipleResponse1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.coachSelfReflectionMultipleResponse1]:{since:"1.3.0",baseBitType:l.BitType.multipleResponse1},[l.BitType.multipleResponse]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}],cardSet:r.CardSetConfigKey._quiz},[l.BitType.coachSelfReflectionMultipleResponse]:{since:"1.3.0",baseBitType:l.BitType.multipleResponse},[l.BitType.page]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.thumbImage}]},[l.BitType.pageCollapsible]:{since:"1.30.0",baseBitType:l.BitType.page},[l.BitType.pageCoverImage]:{since:"1.22.0",baseBitType:l.BitType.page},[l.BitType.pageBuyButton]:{since:"1.4.3",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.content2Buy},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.pageBuyButtonAlt]:{since:"1.31.0",baseBitType:l.BitType.pageBuyButton},[l.BitType.pageBuyButtonPromotion]:{since:"1.5.11",baseBitType:l.BitType.pageBuyButton},[l.BitType.pageSubpage]:{since:"1.6.6",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.page}]},[l.BitType.pageShopInShop]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pageCategory]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pageAcademy]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pagePromotion]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pageSpecial]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pagePerson]:{since:"1.5.16",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_person},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.pageProduct]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.product}]},[l.BitType.pageProductList]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productList,maxCount:p.Count.infinity}]},[l.BitType.pageProductVideo]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productVideo}]},[l.BitType.pageProductVideoList]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productVideoList,maxCount:p.Count.infinity}]},[l.BitType.pageSectionFolder]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productFolder}]},[l.BitType.photo]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.quote]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.quotedPerson}]},[l.BitType.rating]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.coachSelfReflectionRating]:{since:"1.3.0",baseBitType:l.BitType.rating},[l.BitType.releaseNote]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.releaseVersion},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.releaseKind},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.releaseDate}]},[l.BitType.reviewNote]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.resolved},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.resolvedDate},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.resolvedBy}],rootExampleType:c.ExampleType.string},[l.BitType.reviewAuthorNote]:{since:"1.3.0",baseBitType:l.BitType.reviewNote},[l.BitType.reviewReviewerNote]:{since:"1.3.0",baseBitType:l.BitType.reviewNote},[l.BitType.reviewRequestForReviewNote]:{since:"1.3.0",baseBitType:l.BitType.reviewNote},[l.BitType.reviewApprovedNote]:{since:"1.3.0",baseBitType:l.BitType.reviewNote},[l.BitType.sampleSolution]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.anchor},{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference}]},[l.BitType.sequence]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:r.CardSetConfigKey._elements,rootExampleType:c.ExampleType.boolean},[l.BitType.stillImageFilm]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceStillImageFilm}],resourceAttachmentAllowed:!1},[l.BitType.stillImageFilmEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceStillImageFilmEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.stillImageFilmLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceStillImageFilmLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.surveyAnonymous]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.survey]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.surveyMatrix]:{since:"1.6.2",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pointerTop,minCount:1,maxCount:1},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pointerLeft,minCount:1,maxCount:1},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption,minCount:1,maxCount:1}]},[l.BitType.surveyMatrixMe]:{since:"1.6.2",baseBitType:l.BitType.surveyMatrix},[l.BitType.surveyRating]:{since:"1.6.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.ratingLevelStart,chain:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.label}]},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.ratingLevelEnd,chain:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.label}]},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.ratingLevelSelected},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.surveyRatingOnce]:{since:"1.6.0",baseBitType:l.BitType.surveyRating},[l.BitType.surveyRatingDisplay]:{since:"1.6.0",baseBitType:l.BitType.surveyRating},[l.BitType.scorm]:{since:"1.5.11",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.scormSource},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.posterImage}]},[l.BitType.table]:{since:"1.5.19",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.caption},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableFixedHeader},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableSearch},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableSort},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tablePagination},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tablePaginationLimit},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableHeight},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableWhitespaceNoWrap},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableAutoWidth},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableResizableColumns}],cardSet:r.CardSetConfigKey._table},[l.BitType.tableAlt]:{since:"1.16.0",baseBitType:l.BitType.table},[l.BitType.standardTableNormative]:{since:"1.16.0",baseBitType:l.BitType.table},[l.BitType.standardTableNonNormative]:{since:"1.16.0",baseBitType:l.BitType.table},[l.BitType.standardRemarkTableNormative]:{since:"1.17.0",baseBitType:l.BitType.table},[l.BitType.standardRemarkTableNonNormative]:{since:"1.17.0",baseBitType:l.BitType.table},[l.BitType.smartStandardTableNormative]:{since:"1.28.0",baseBitType:l.BitType.standardTableNormative},[l.BitType.smartStandardTableNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardTableNonNormative},[l.BitType.smartStandardRemarkTableNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkTableNormative},[l.BitType.smartStandardRemarkTableNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkTableNonNormative},[l.BitType.smartStandardTableNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardTableNormative},[l.BitType.smartStandardTableNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardTableNonNormative},[l.BitType.smartStandardRemarkTableNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkTableNormative},[l.BitType.smartStandardRemarkTableNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkTableNonNormative},[l.BitType.parameters]:{since:"1.18.0",baseBitType:l.BitType.table},[l.BitType.toc]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.tocChapter]:{since:"1.5.5",baseBitType:l.BitType.toc,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.maxDisplayLevel}]},[l.BitType.anchor]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.bitBookEnding]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.bitBookSummary]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionAnnounce]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionRatingNumber]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionRemind]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionSave]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionTrueFalse]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.chapterSubjectMatter]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.chat]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.conclusion]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.conclusionAlt]:{since:"1.16.0",baseBitType:l.BitType.conclusion},[l.BitType.documentUpload]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.footNote]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.groupBorn]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.groupDied]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.recordAudio]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.recordVideo]:{since:"1.5.24",baseBitType:l.BitType.toc},[l.BitType.stickyNote]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.takePicture]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.handInAudio]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInContact]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInDocument]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInLocation]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInPhoto]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInScan]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInVideo]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInVoice]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.trueFalse1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.labelTrue},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.labelFalse},{type:s.BitTagType.tag,configKey:a.TagConfigKey.true},{type:s.BitTagType.tag,configKey:a.TagConfigKey.false}],rootExampleType:c.ExampleType.boolean},[l.BitType.trueFalse]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.labelTrue},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.labelFalse}],cardSet:r.CardSetConfigKey._statements},[l.BitType.vendorAmcharts5Chart]:{since:"1.5.8",baseBitType:l.BitType.code,tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],textFormatDefault:u.TextFormat.json},[l.BitType.vendorHighchartsChart]:{since:"1.5.28",baseBitType:l.BitType.vendorAmcharts5Chart},[l.BitType.vendorIframelyEmbed]:{since:"1.5.10",baseBitType:l.BitType.code,tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.width},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.height},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.vendorUrl}],textFormatDefault:u.TextFormat.text},[l.BitType.vendorIframelyCard]:{since:"1.5.10",baseBitType:l.BitType.vendorIframelyEmbed},[l.BitType.vendorIframelyPreview]:{since:"1.5.10",baseBitType:l.BitType.vendorIframelyEmbed},[l.BitType.vendorIframelyPreviewMini]:{since:"1.5.10",baseBitType:l.BitType.vendorIframelyEmbed},[l.BitType.vendorJupyterOutput]:{since:"1.4.3",baseBitType:l.BitType.code,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.jupyterId},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.jupyterExecutionCount}],textFormatDefault:u.TextFormat.text},[l.BitType.vendorJupyterCellCode]:{since:"1.4.3",baseBitType:l.BitType.vendorJupyterOutput},[l.BitType.vendorJupyterCellMarkdown]:{since:"1.4.3",baseBitType:l.BitType.vendorJupyterOutput},[l.BitType.vendorJupyterCellRaw]:{since:"1.4.3",baseBitType:l.BitType.vendorJupyterOutput},[l.BitType.vendorJupyterIpynb]:{since:"1.4.3",baseBitType:l.BitType.vendorJupyterOutput},[l.BitType.vendorPadletEmbed]:{since:"1.3.0",baseBitType:l.BitType.code,tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.padletId}],textFormatDefault:u.TextFormat.text},[l.BitType.vendorStripePricingTable]:{since:"1.20.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.stripePricingTableId,minCount:1},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.stripePublishableKey,minCount:1}]},[l.BitType.video]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceVideo,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.videoLandscape]:{since:"1.3.0",baseBitType:l.BitType.video},[l.BitType.videoPortrait]:{since:"1.3.0",baseBitType:l.BitType.video},[l.BitType.videoEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceVideoEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.videoEmbedLandscape]:{since:"1.3.0",baseBitType:l.BitType.videoEmbed},[l.BitType.videoEmbedPortrait]:{since:"1.3.0",baseBitType:l.BitType.videoEmbed},[l.BitType.videoLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceVideoLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.videoLinkLandscape]:{since:"1.3.0",baseBitType:l.BitType.videoLink},[l.BitType.videoLinkPortrait]:{since:"1.3.0",baseBitType:l.BitType.videoLink},[l.BitType.websiteLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceWebsiteLink,minCount:1}],resourceAttachmentAllowed:!1}};t.BITS=g},5554:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CARDS=void 0;const r=i(8199),o=i(7112),n=i(9888),a=i(5051),s=i(7797),l=i(5512),p=i(3778),c={[r.CardSetConfigKey._flashcardLike]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._elements]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._statements]:{variants:[[{tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.true,maxCount:1},{type:l.BitTagType.tag,configKey:s.TagConfigKey.false,maxCount:1},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],bodyAllowed:!1}]]},[r.CardSetConfigKey._quiz]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],bodyAllowed:!1}]]},[r.CardSetConfigKey._questions]:{variants:[[{tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.reasonableNumOfChars},{type:l.BitTagType.tag,configKey:s.TagConfigKey.sampleSolution},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.property_sampleSolution},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.additionalSolutions,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.partialAnswer},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._matchPairs]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._matchAudioPairs]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.audio}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._matchImagePairs]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.image}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._matchMatrix]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._table]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._botActionResponses]:{variants:[[{tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.reaction},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}]}]]},[r.CardSetConfigKey._clozeList]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_gap}]}]]},[r.CardSetConfigKey._exampleBitList]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._ingredients]:{variants:[[{tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.unit},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.unitAbbr},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.decimalPlaces},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.disableCalculation}],repeatCount:p.Count.infinity}]]},[r.CardSetConfigKey._captionDefinitionsList]:{variants:[[{tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.title}],repeatCount:p.Count.infinity}]]}};t.CARDS=c},5837:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GROUPS=void 0;const r=i(7112),o=i(6915),n=i(9888),a=i(5051),s=i(7797),l=i(5512),p=i(3778),c=i(6149),u={[r.GroupConfigKey.group_standardAllBits]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.id,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.externalId,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.aiGenerated},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.machineTranslated},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.analyticsTag,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.feedbackEngine},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.feedbackType},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.disableFeedback},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.ageRange,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.lang},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.publisher,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.publisherName,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.theme,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.target,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.tag,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.reductionTag,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.bubbleTag,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.levelCEFRp},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.levelCEFR},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.levelILR},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.levelACTFL},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.icon},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.iconTag},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.colorTag,maxCount:p.Count.infinity},{type:l.BitTagType.tag,configKey:s.TagConfigKey.anchor},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.search},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.showInIndex}]},[r.GroupConfigKey.group_standardItemLeadInstructionHint]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.itemLead,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.itemLead,maxCount:3}]},{type:l.BitTagType.tag,configKey:s.TagConfigKey.instruction},{type:l.BitTagType.tag,configKey:s.TagConfigKey.hint}]},[r.GroupConfigKey.group_standardExample]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.example}]},[r.GroupConfigKey.group_standardTags]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardAllBits},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardExample}]},[r.GroupConfigKey.group_imageSource]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.imageSource,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.mockupId},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.size},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.format},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.trim}]}]},[r.GroupConfigKey.group_technicalTerm]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.technicalTerm,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.lang}]}]},[r.GroupConfigKey.group_person]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.person,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.property_title},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImage}]},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.partner,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.property_title},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImage}]}]},[r.GroupConfigKey.group_gap]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.gap,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.gap,maxCount:p.Count.infinity},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardExample},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive}]}]},[r.GroupConfigKey.group_trueFalse]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.true,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.true,maxCount:p.Count.infinity},{type:l.BitTagType.tag,configKey:s.TagConfigKey.false,maxCount:p.Count.infinity},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardExample}]},{type:l.BitTagType.tag,configKey:s.TagConfigKey.false,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.true,maxCount:p.Count.infinity},{type:l.BitTagType.tag,configKey:s.TagConfigKey.false,maxCount:p.Count.infinity},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardExample}]}]},[r.GroupConfigKey.group_markConfig]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.markConfig,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.color},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.emphasis}]}]},[r.GroupConfigKey.group_mark]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.tag_mark,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.property_mark},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_standardExample}]}]},[r.GroupConfigKey.group_bookCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.language,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.spaceId,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.kind},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.hasMarkAsDone},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.processHandIn},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isPublic},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title,maxCount:2},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.subtype,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.coverImage,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.coverColor},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.subject,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.author,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.publications,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.duration}]},[r.GroupConfigKey.group_learningPathCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.action},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.duration},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.date},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.dateEnd},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.location},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.list,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.textReference},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isTracked},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isInfoOnly},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.deeplink},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.book,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.tag_reference,maxCount:2}]}]},[r.GroupConfigKey.group_resourceBitTags]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.imagePlaceholder,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImageCommon}],maxCount:1}]},[r.GroupConfigKey.group_resourceCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.license},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.copyright},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.caption},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.showInIndex},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.search}]},[r.GroupConfigKey.group_resourceImageCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src1x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src2x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src3x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src4x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.width},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.height},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.alt},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.zoomDisabled}]},[r.GroupConfigKey.group_resourceAudioCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.duration},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.mute},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.autoplay}]},[r.GroupConfigKey.group_resourceVideoCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.width},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.height},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.duration},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.mute},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.autoplay},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.allowSubtitles},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.showSubtitles},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.alt},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.posterImage},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src1x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src2x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src3x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src4x}]},[r.GroupConfigKey.group_resourceImage]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.image,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImageCommon}]}]},[r.GroupConfigKey.group_resourceImagePortrait]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.imagePortrait,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImageCommon}]}]},[r.GroupConfigKey.group_resourceImageLandscape]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.imageLandscape,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImageCommon}]}]},[r.GroupConfigKey.group_resourceImageEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.imageEmbed,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImageCommon}]}]},[r.GroupConfigKey.group_resourceImageLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.imageLink,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImageCommon}]}]},[r.GroupConfigKey.group_resourceAudio]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.audio,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceAudioCommon}]}]},[r.GroupConfigKey.group_resourceAudioEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.audioEmbed,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceAudioCommon}]}]},[r.GroupConfigKey.group_resourceAudioLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.audioLink,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceAudioCommon}]}]},[r.GroupConfigKey.group_resourceVideo]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.video,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceVideoCommon}]}]},[r.GroupConfigKey.group_resourceVideoEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.videoEmbed,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceVideoCommon}]}]},[r.GroupConfigKey.group_resourceVideoLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.videoLink,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceVideoCommon}]}]},[r.GroupConfigKey.group_resourceStillImageFilmEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.stillImageFilmEmbed,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceVideoCommon}]}]},[r.GroupConfigKey.group_resourceStillImageFilmLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.stillImageFilmLink,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceVideoCommon}]}]},[r.GroupConfigKey.group_resourceArticle]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.article,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceArticleEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.articleEmbed,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceArticleLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.articleLink,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceDocument]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.document,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceDocumentEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.documentEmbed,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceDocumentLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.documentLink,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceDocumentDownload]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.documentDownload,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceAppLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.appLink,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceWebsiteLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.websiteLink,chain:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceCommon}]}]},[r.GroupConfigKey.group_resourceStillImageFilm]:{type:o.GroupConfigType.comboResource,comboResourceType:c.ResourceTag.stillImageFilm,tags:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImage,maxCount:1,minCount:1},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceAudio,maxCount:1,minCount:1}]},[r.GroupConfigKey.group_resourceImageResponsive]:{type:o.GroupConfigType.comboResource,comboResourceType:c.ResourceTag.imageResponsive,tags:[{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImagePortrait,maxCount:1,minCount:1},{type:l.BitTagType.group,configKey:r.GroupConfigKey.group_resourceImageLandscape,maxCount:1,minCount:1}]}};t.GROUPS=u},9916:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PROPERTIES=void 0;const r=i(9888),o=i(7203),n=i(9727),a=i(166),s={[r.PropertyConfigKey.id]:{tag:a.PropertyTag.id,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.internalComment]:{tag:a.PropertyTag.internalComment,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.externalId]:{tag:a.PropertyTag.externalId,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.spaceId]:{tag:a.PropertyTag.spaceId,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.padletId]:{tag:a.PropertyTag.padletId,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.jupyterId]:{tag:a.PropertyTag.jupyterId,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.jupyterExecutionCount]:{tag:a.PropertyTag.jupyterExecutionCount,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.aiGenerated]:{tag:a.PropertyTag.aiGenerated,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.machineTranslated]:{tag:a.PropertyTag.machineTranslated,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.analyticsTag]:{tag:a.PropertyTag.analyticsTag,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.feedbackEngine]:{tag:a.PropertyTag.feedbackEngine,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.disableFeedback]:{tag:a.PropertyTag.disableFeedback,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.releaseVersion]:{tag:a.PropertyTag.releaseVersion,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.releaseKind]:{tag:a.PropertyTag.releaseKind,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.releaseDate]:{tag:a.PropertyTag.releaseDate,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.resolved]:{tag:a.PropertyTag.resolved,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.resolvedDate]:{tag:a.PropertyTag.resolvedDate,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.resolvedBy]:{tag:a.PropertyTag.resolvedBy,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.ageRange]:{tag:a.PropertyTag.ageRange,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.lang]:{tag:a.PropertyTag.lang,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.language]:{tag:a.PropertyTag.language,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.computerLanguage]:{tag:a.PropertyTag.computerLanguage,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.target]:{tag:a.PropertyTag.target,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.slug]:{tag:a.PropertyTag.slug,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.tag]:{tag:a.PropertyTag.tag,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.reductionTag]:{tag:a.PropertyTag.reductionTag,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.bubbleTag]:{tag:a.PropertyTag.bubbleTag,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.levelCEFRp]:{tag:a.PropertyTag.levelCEFRp,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.levelCEFR]:{tag:a.PropertyTag.levelCEFR,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.levelILR]:{tag:a.PropertyTag.levelILR,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.levelACTFL]:{tag:a.PropertyTag.levelACTFL,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.icon]:{tag:a.PropertyTag.icon,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.iconTag]:{tag:a.PropertyTag.iconTag,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.colorTag]:{tag:a.PropertyTag.colorTag,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.flashcardSet]:{tag:a.PropertyTag.flashcardSet,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.subtype]:{tag:a.PropertyTag.subtype,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.bookAlias]:{tag:a.PropertyTag.bookAlias,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.coverImage]:{tag:a.PropertyTag.coverImage,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.coverColor]:{tag:a.PropertyTag.coverColor,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.imagePlaceholder]:{tag:a.PropertyTag.imagePlaceholder,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.publisher]:{tag:a.PropertyTag.publisher,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.publisherName]:{tag:a.PropertyTag.publisherName,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.publications]:{tag:a.PropertyTag.publications,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.author]:{tag:a.PropertyTag.author,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.subject]:{tag:a.PropertyTag.subject,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.date]:{tag:a.PropertyTag.date,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.dateEnd]:{tag:a.PropertyTag.dateEnd,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.location]:{tag:a.PropertyTag.location,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.theme]:{tag:a.PropertyTag.theme,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.kind]:{tag:a.PropertyTag.kind,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.hasMarkAsDone]:{tag:a.PropertyTag.hasMarkAsDone,defaultValue:"false",single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.processHandIn]:{tag:a.PropertyTag.processHandIn,defaultValue:"false",single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.isPublic]:{tag:a.PropertyTag.isPublic,defaultValue:"false",single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.action]:{tag:a.PropertyTag.action,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.thumbImage]:{tag:a.PropertyTag.thumbImage,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.scormSource]:{tag:a.PropertyTag.scormSource,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.posterImage]:{tag:a.PropertyTag.posterImage,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.focusX]:{tag:a.PropertyTag.focusX,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.focusY]:{tag:a.PropertyTag.focusY,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.deeplink]:{tag:a.PropertyTag.deeplink,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.externalLink]:{tag:a.PropertyTag.externalLink,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.externalLinkText]:{tag:a.PropertyTag.externalLinkText,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.videoCallLink]:{tag:a.PropertyTag.videoCallLink,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.vendorUrl]:{tag:a.PropertyTag.vendorUrl,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.search]:{tag:a.PropertyTag.search,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.bot]:{tag:a.PropertyTag.bot,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.duration]:{tag:a.PropertyTag.duration,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.property_reference]:{tag:a.PropertyTag.tag_reference,format:n.PropertyFormat.trimmedString,astKey:o.PropertyAstKey.ast_referenceProperty},[r.PropertyConfigKey.list]:{tag:a.PropertyTag.list,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.textReference]:{tag:a.PropertyTag.textReference,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.isTracked]:{tag:a.PropertyTag.isTracked,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.isInfoOnly]:{tag:a.PropertyTag.isInfoOnly,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.labelTrue]:{tag:a.PropertyTag.labelTrue,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.labelFalse]:{tag:a.PropertyTag.labelFalse,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.content2Buy]:{tag:a.PropertyTag.content2Buy,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.quotedPerson]:{tag:a.PropertyTag.quotedPerson,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.partialAnswer]:{tag:a.PropertyTag.partialAnswer,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.reasonableNumOfChars]:{tag:a.PropertyTag.reasonableNumOfChars,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.maxCreatedBits]:{tag:a.PropertyTag.maxCreatedBits,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.maxDisplayLevel]:{tag:a.PropertyTag.maxDisplayLevel,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.technicalTerm]:{tag:a.PropertyTag.technicalTerm,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.servings]:{tag:a.PropertyTag.servings,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.unit]:{tag:a.PropertyTag.unit,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.unitAbbr]:{tag:a.PropertyTag.unitAbbr,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.decimalPlaces]:{tag:a.PropertyTag.decimalPlaces,single:!0,format:n.PropertyFormat.number,defaultValue:"1"},[r.PropertyConfigKey.disableCalculation]:{tag:a.PropertyTag.disableCalculation,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.example]:{tag:a.PropertyTag.example,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.toc]:{tag:a.PropertyTag.toc,single:!0,format:n.PropertyFormat.boolean,defaultValue:"true"},[r.PropertyConfigKey.page]:{tag:a.PropertyTag.page,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.product]:{tag:a.PropertyTag.product,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.productId]:{tag:a.PropertyTag.productId,single:!1,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.productList]:{tag:a.PropertyTag.product,single:!1,format:n.PropertyFormat.trimmedString,astKey:o.PropertyAstKey.ast_productList},[r.PropertyConfigKey.productVideo]:{tag:a.PropertyTag.productVideo,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.productVideoList]:{tag:a.PropertyTag.productVideo,single:!1,format:n.PropertyFormat.trimmedString,astKey:o.PropertyAstKey.ast_productVideoList},[r.PropertyConfigKey.productFolder]:{tag:a.PropertyTag.productFolder,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.progress]:{tag:a.PropertyTag.progress,single:!0,format:n.PropertyFormat.boolean,defaultValue:"true"},[r.PropertyConfigKey.book]:{tag:a.PropertyTag.book,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.person]:{tag:a.PropertyTag.person,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.partner]:{tag:a.PropertyTag.partner,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.property_sampleSolution]:{tag:a.PropertyTag.tag_sampleSolution,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.additionalSolutions]:{tag:a.PropertyTag.additionalSolutions,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.markConfig]:{tag:a.PropertyTag.tag_mark,format:n.PropertyFormat.trimmedString,astKey:o.PropertyAstKey.ast_markConfig},[r.PropertyConfigKey.property_mark]:{tag:a.PropertyTag.tag_mark,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.color]:{tag:a.PropertyTag.color,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.emphasis]:{tag:a.PropertyTag.emphasis,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.isCaseSensitive]:{tag:a.PropertyTag.isCaseSensitive,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.reaction]:{tag:a.PropertyTag.reaction,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.imageSource]:{tag:a.PropertyTag.imageSource,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.mockupId]:{tag:a.PropertyTag.mockupId,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.size]:{tag:a.PropertyTag.size,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.format]:{tag:a.PropertyTag.format,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.property_title]:{tag:a.PropertyTag.tag_title,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.trim]:{tag:a.PropertyTag.trim,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.width]:{tag:a.PropertyTag.width,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.height]:{tag:a.PropertyTag.height,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.license]:{tag:a.PropertyTag.license,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.copyright]:{tag:a.PropertyTag.copyright,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.mailingList]:{tag:a.PropertyTag.mailingList,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.buttonCaption]:{tag:a.PropertyTag.buttonCaption,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.callToActionUrl]:{tag:a.PropertyTag.callToActionUrl,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.feedbackType]:{tag:a.PropertyTag.feedbackType,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.caption]:{tag:a.PropertyTag.caption,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.showInIndex]:{tag:a.PropertyTag.showInIndex,single:!0,format:n.PropertyFormat.boolean,defaultValue:"false"},[r.PropertyConfigKey.alt]:{tag:a.PropertyTag.alt,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.zoomDisabled]:{tag:a.PropertyTag.zoomDisabled,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.src1x]:{tag:a.PropertyTag.src1x,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.src2x]:{tag:a.PropertyTag.src2x,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.src3x]:{tag:a.PropertyTag.src3x,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.src4x]:{tag:a.PropertyTag.src4x,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.mute]:{tag:a.PropertyTag.mute,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.autoplay]:{tag:a.PropertyTag.autoplay,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.allowSubtitles]:{tag:a.PropertyTag.allowSubtitles,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.showSubtitles]:{tag:a.PropertyTag.showSubtitles,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.siteName]:{tag:a.PropertyTag.siteName,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.pointerLeft]:{tag:a.PropertyTag.pointerLeft,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.pointerTop]:{tag:a.PropertyTag.pointerTop,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.listItemIndent]:{tag:a.PropertyTag.listItemIndent,single:!0,defaultValue:"0",format:n.PropertyFormat.number},[r.PropertyConfigKey.backgroundWallpaper]:{tag:a.PropertyTag.backgroundWallpaper,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.hasBookNavigation]:{tag:a.PropertyTag.hasBookNavigation,single:!0,defaultValue:"true",format:n.PropertyFormat.boolean},[r.PropertyConfigKey.blockId]:{tag:a.PropertyTag.blockId,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.pageNo]:{tag:a.PropertyTag.pageNo,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.x]:{tag:a.PropertyTag.x,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.y]:{tag:a.PropertyTag.y,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.index]:{tag:a.PropertyTag.index,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.classification]:{tag:a.PropertyTag.classification,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.availableClassifications]:{tag:a.PropertyTag.availableClassifications,single:!1,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.allowedBit]:{tag:a.PropertyTag.allowedBit,single:!1,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.tableFixedHeader]:{tag:a.PropertyTag.tableFixedHeader,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.tableSearch]:{tag:a.PropertyTag.tableSearch,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.tableSort]:{tag:a.PropertyTag.tableSort,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.tablePagination]:{tag:a.PropertyTag.tablePagination,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.tablePaginationLimit]:{tag:a.PropertyTag.tablePaginationLimit,single:!0,format:n.PropertyFormat.number,defaultValue:"0"},[r.PropertyConfigKey.tableHeight]:{tag:a.PropertyTag.tableHeight,single:!0,format:n.PropertyFormat.number,defaultValue:"0"},[r.PropertyConfigKey.tableWhitespaceNoWrap]:{tag:a.PropertyTag.tableWhitespaceNoWrap,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.tableAutoWidth]:{tag:a.PropertyTag.tableAutoWidth,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.tableResizableColumns]:{tag:a.PropertyTag.tableResizableColumns,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.quizCountItems]:{tag:a.PropertyTag.quizCountItems,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.quizStrikethroughSolutions]:{tag:a.PropertyTag.quizStrikethroughSolutions,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.codeLineNumbers]:{tag:a.PropertyTag.codeLineNumbers,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.codeMinimap]:{tag:a.PropertyTag.codeMinimap,single:!0,format:n.PropertyFormat.boolean},[r.PropertyConfigKey.stripePricingTableId]:{tag:a.PropertyTag.stripePricingTableId,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.stripePublishableKey]:{tag:a.PropertyTag.stripePublishableKey,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.ratingLevelStart]:{tag:a.PropertyTag.ratingLevelStart,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.ratingLevelEnd]:{tag:a.PropertyTag.ratingLevelEnd,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.ratingLevelSelected]:{tag:a.PropertyTag.ratingLevelSelected,single:!0,format:n.PropertyFormat.number},[r.PropertyConfigKey.label]:{tag:a.PropertyTag.label,single:!0,format:n.PropertyFormat.trimmedString},[r.PropertyConfigKey.imageFirst]:{tag:a.PropertyTag.imageFirst,single:!0,format:n.PropertyFormat.boolean,defaultValue:"true"},[r.PropertyConfigKey.activityType]:{tag:a.PropertyTag.activityType,single:!0,format:n.PropertyFormat.trimmedString}};t.PROPERTIES=s},168:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RESOURCES=void 0;const r=i(5051),o=i(9984),n=i(6149),a={[r.ResourceConfigKey.image]:{tag:n.ResourceTag.image},[r.ResourceConfigKey.imagePortrait]:{tag:n.ResourceTag.imagePortrait,jsonKey:o.ResourceJsonKey.imagePortrait},[r.ResourceConfigKey.imageLandscape]:{tag:n.ResourceTag.imageLandscape,jsonKey:o.ResourceJsonKey.imageLandscape},[r.ResourceConfigKey.imageEmbed]:{tag:n.ResourceTag.imageEmbed,jsonKey:o.ResourceJsonKey.imageEmbed},[r.ResourceConfigKey.imageLink]:{tag:n.ResourceTag.imageLink,jsonKey:o.ResourceJsonKey.imageLink},[r.ResourceConfigKey.audio]:{tag:n.ResourceTag.audio},[r.ResourceConfigKey.audioEmbed]:{tag:n.ResourceTag.audioEmbed,jsonKey:o.ResourceJsonKey.audioEmbed},[r.ResourceConfigKey.audioLink]:{tag:n.ResourceTag.audioLink,jsonKey:o.ResourceJsonKey.audioLink},[r.ResourceConfigKey.video]:{tag:n.ResourceTag.video},[r.ResourceConfigKey.videoEmbed]:{tag:n.ResourceTag.videoEmbed,jsonKey:o.ResourceJsonKey.videoEmbed},[r.ResourceConfigKey.videoLink]:{tag:n.ResourceTag.videoLink,jsonKey:o.ResourceJsonKey.videoLink},[r.ResourceConfigKey.stillImageFilmEmbed]:{tag:n.ResourceTag.stillImageFilmEmbed,jsonKey:o.ResourceJsonKey.stillImageFilmEmbed},[r.ResourceConfigKey.stillImageFilmLink]:{tag:n.ResourceTag.stillImageFilmLink,jsonKey:o.ResourceJsonKey.stillImageFilmLink},[r.ResourceConfigKey.article]:{tag:n.ResourceTag.article},[r.ResourceConfigKey.articleEmbed]:{tag:n.ResourceTag.articleEmbed,jsonKey:o.ResourceJsonKey.articleEmbed},[r.ResourceConfigKey.articleLink]:{tag:n.ResourceTag.articleLink,jsonKey:o.ResourceJsonKey.articleLink},[r.ResourceConfigKey.document]:{tag:n.ResourceTag.document},[r.ResourceConfigKey.documentEmbed]:{tag:n.ResourceTag.documentEmbed,jsonKey:o.ResourceJsonKey.documentEmbed},[r.ResourceConfigKey.documentLink]:{tag:n.ResourceTag.documentLink,jsonKey:o.ResourceJsonKey.documentLink},[r.ResourceConfigKey.documentDownload]:{tag:n.ResourceTag.documentDownload,jsonKey:o.ResourceJsonKey.documentDownload},[r.ResourceConfigKey.appLink]:{tag:n.ResourceTag.appLink,jsonKey:o.ResourceJsonKey.appLink},[r.ResourceConfigKey.websiteLink]:{tag:n.ResourceTag.websiteLink,jsonKey:o.ResourceJsonKey.websiteLink}};t.RESOURCES=a},9248:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TAGS=void 0;const r=i(7797),o=i(9917),n={[r.TagConfigKey.title]:{tag:o.Tag.tag_title},[r.TagConfigKey.anchor]:{tag:o.Tag.tag_anchor},[r.TagConfigKey.tag_reference]:{tag:o.Tag.tag_reference},[r.TagConfigKey.property]:{tag:o.Tag.tag_property},[r.TagConfigKey.itemLead]:{tag:o.Tag.tag_itemLead},[r.TagConfigKey.instruction]:{tag:o.Tag.tag_instruction},[r.TagConfigKey.hint]:{tag:o.Tag.tag_hint},[r.TagConfigKey.true]:{tag:o.Tag.tag_true},[r.TagConfigKey.false]:{tag:o.Tag.tag_false},[r.TagConfigKey.sampleSolution]:{tag:o.Tag.tag_sampleSolution},[r.TagConfigKey.gap]:{tag:o.Tag.tag_gap},[r.TagConfigKey.tag_mark]:{tag:o.Tag.tag_mark},[r.TagConfigKey.resource]:{tag:o.Tag.tag_resource}};t.TAGS=n},1464:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildInfo=void 0,t.buildInfo={name:"@gmb/bitmark-parser-generator",version:"1.35.0",author:"Get More Brain Ltd",license:"ISC",description:"A bitmark parser and generator using Peggy.js"}},5057:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StartRules=void 0,t.SyntaxError=a,t.parse=function e(t,i){i=void 0!==i?i:{};var s,l={},p=i.grammarSource,c={bitmark:ti,bit:function(){var e,t,i,r,o;e=Mt,t=[],i=Si();for(;i!==l;)t.push(i),i=Si();if((i=oi())!==l){for(r=[],o=Si();o!==l;)r.push(o),o=Si();Dt=e,e=He(i)}else Mt=e,e=l;return e},cardContent:function(){var e,t,i;e=Mt,t=[],(i=li())===l&&(i=Ti());for(;i!==l;)t.push(i),(i=li())===l&&(i=Ti());return Dt=e,t=bt(t),e=t}},u=ti,g="[.",y="]",d="[",f=":",m="&",T="$$$$",h="~~~~",b="====",v="--",B="++",C="===",P="==",k="[@id",S="#",x="[▼",K="[►",w="[@",A="[%",_="[!",I="[?",L="[+",N="[-",R="[$",E="[_",O="[=",F="[&",V="^]",j="id:",G=".",M="\n",D="\r\n",U=/^[^\]]/,$=/^[^:\]]/,J=/^[^&:\]]/,z=/^[ \t]/,H=/^[^\n\r\u2028\u2029]/,W=/^[\r\u2028-\u2029]/,q=/^[ \t\n\r\u2028\u2029]/,Y=Wt("[.",!1),X=qt(["]"],!0,!1),Z=Wt("]",!1),Q=Wt("[",!1),ee=Wt(":",!1),te=Wt("&",!1),ie={type:"any"},re=Wt("$$$$",!1),oe=Wt("~~~~",!1),ne=Wt("====",!1),ae=Wt("--",!1),se=Wt("++",!1),le=Wt("===",!1),pe=Wt("==",!1),ce=Wt("[@id",!1),ue=Wt("#",!1),ge=Wt("[▼",!1),ye=Wt("[►",!1),de=Wt("[@",!1),fe=Wt("[%",!1),me=Wt("[!",!1),Te=Wt("[?",!1),he=Wt("[+",!1),be=Wt("[-",!1),ve=Wt("[$",!1),Be=Wt("[_",!1),Ce=Wt("[=",!1),Pe=Wt("[&",!1),ke=Wt("^]",!1),Se=Wt("id:",!1),xe=qt([":","]"],!0,!1),Ke=Wt(".",!1),we=qt(["&",":","]"],!0,!1),Ae=(Yt("Empty"),qt([" ","\t"],!1,!1)),_e=Yt("Anything"),Ie=Yt("Character"),Le=qt(["\n","\r","\u2028","\u2029"],!0,!1),Ne=Yt("Line"),Re=(Yt("whitespace in line"),Yt("Blank Line")),Ee=Yt("Line Terminator"),Oe=Wt("\n",!1),Fe=Wt("\r\n",!1),Ve=qt(["\r",["\u2028","\u2029"]],!1,!1),je=Yt("Whitespace, then Line Terminator"),Ge=Yt("whitespace"),Me=qt([" ","\t","\n","\r","\u2028","\u2029"],!1,!1),De=function(e,t){return Li.buildBits([e,...t])},Ue=function(e){return Ii.handleRawBit(e)},$e=function(e){return e},Je=function(e){return Ii.handleRawBit(e)},ze=function(e){return e},He=function(e){return e},We=function(e,t){return Li.buildBit(e,t)},qe=function(e){return Li.invalidBit(e)},Ye=function(e,t,i){return Li.buildBitHeader(t,e,i)},Xe=function(e,t){return Li.buildTextAndResourceType(e,t)},Ze=function(e){return Ii.handleTextFormat(e)},Qe=function(e){return Ii.handleResourceType(e)},et=function(e){return Ii.handleBitContent(e)},tt=function(e){return Ii.handleTagChain(e)},it=function(e){return e},rt=function(e){return Ii.handleBitTag(e)},ot=function(e){return{type:r.TypeKey.BodyChar,value:e}},nt=function(e){return Ii.handlePlainTextDivider(e)},at=function(e){return Ii.handleFooterDivider(e)},st=function(e){return Ii.handleCardSet(e[1].flat())},lt=function(){Ii.handleCardSetStart()},pt=function(){Ii.handleCardSetEnd()},ct=function(e){return Ii.handleCards(e)},ut=function(e){return Ii.handleCardLineOrDivider(e,2)},gt=function(e){return Ii.handleCardLine(e)},yt=function(e){return Ii.handleCardSet(e[1].flat())},dt=function(){Ii.handleCardSetStart()},ft=function(){Ii.handleCardSetEnd()},mt=function(e){return Ii.handleCards(e)},Tt=function(e){return Ii.handleCardLineOrDivider(e,1)},ht=function(e){return Ii.handleCardLine(e)},bt=function(e){return Ii.handleCardContent(e)},vt=function(e){return{type:r.TypeKey.CardChar,value:e}},Bt=function(e){return Ii.handlePropertyTag("id",e)},Ct=function(e,t){return Ii.handleTag(r.TypeKey.Title,{level:e,title:t})},Pt=function(e){return Ii.handleTag(r.TypeKey.Anchor,e)},kt=function(e){return Ii.handleTag(r.TypeKey.Reference,e)},St=function(e,t){return Ii.handlePropertyTag(e,t)},xt=function(e){return Ii.handleTag(r.TypeKey.ItemLead,e)},Kt=function(e){return Ii.handleTag(r.TypeKey.Instruction,e)},wt=function(e){return Ii.handleTag(r.TypeKey.Hint,e)},At=function(e){return Ii.handleTag(r.TypeKey.True,e)},_t=function(e){return Ii.handleTag(r.TypeKey.False,e)},It=function(e){return Ii.handleTag(r.TypeKey.SampleSolution,e)},Lt=function(e){return Ii.handleTag(r.TypeKey.Gap,e)},Nt=function(e){return Ii.handleTag(r.TypeKey.Mark,e)},Rt=function(e,t){return Ii.handleResourceTag(e,t)},Et=function(e){return e},Ot=function(e){return e?e.trim():""},Ft=function(e){return e.length},Vt=function(e){return e?e.trim():null},jt=function(e){return e?e.trim():""},Gt=function(){return!0},Mt=0|i.peg$currPos,Dt=Mt,Ut=[{line:1,column:1}],$t=Mt,Jt=i.peg$maxFailExpected||[],zt=0|i.peg$silentFails;if(i.startRule){if(!(i.startRule in c))throw new Error("Can't start parsing from rule \""+i.startRule+'".');u=c[i.startRule]}function Ht(){return t.substring(Dt,Mt)}function Wt(e,t){return{type:"literal",text:e,ignoreCase:t}}function qt(e,t,i){return{type:"class",parts:e,inverted:t,ignoreCase:i}}function Yt(e){return{type:"other",description:e}}function Xt(e){var i,r=Ut[e];if(r)return r;if(e>=Ut.length)i=Ut.length-1;else for(i=e;!Ut[--i];);for(r={line:(r=Ut[i]).line,column:r.column};i<e;)10===t.charCodeAt(i)?(r.line++,r.column=1):r.column++,i++;return Ut[e]=r,r}function Zt(e,t,i){var r=Xt(e),o=Xt(t),n={source:p,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:o.line,column:o.column}};return i&&p&&"function"==typeof p.offset&&(n.start=p.offset(n.start),n.end=p.offset(n.end)),n}function Qt(e){Mt<$t||(Mt>$t&&($t=Mt,Jt=[]),Jt.push(e))}function ei(e,t,i){return new a(a.buildMessage(e,t),e,t,i)}function ti(){return function(){var e,i,r,o;e=Mt,i=[],r=wi();for(;r!==l;)i.push(r),r=wi();return r=function(){var e,i,r,o;e=Mt,i=Mt,r=[],o=ri();for(;o!==l;)r.push(o),o=ri();return i=t.substring(i,Mt),Dt=e,i=Ue(i),e=i,e}(),o=function(){var e,t;e=[],t=ii();for(;t!==l;)e.push(t),t=ii();return e}(),Dt=e,e=De(r,o),e}()}function ii(){var e,i,r,o;for(e=Mt,i=[],r=Si();r!==l;)i.push(r),r=Si();return(r=xi())===l&&(r=null),o=function(){var e,i,r,o,n,a;if(e=Mt,i=Mt,r=Mt,o=function(){var e,i,r,o;e=Mt,t.substr(Mt,2)===g?(i=g,Mt+=2):(i=l,0===zt&&Qt(Y));if(i!==l){for(r=[],o=t.charAt(Mt),U.test(o)?Mt++:(o=l,0===zt&&Qt(X));o!==l;)r.push(o),o=t.charAt(Mt),U.test(o)?Mt++:(o=l,0===zt&&Qt(X));93===t.charCodeAt(Mt)?(o=y,Mt++):(o=l,0===zt&&Qt(Z)),o!==l?(Dt=e,e=ze(i)):(Mt=e,e=l)}else Mt=e,e=l;return e}(),o!==l){for(n=[],a=ri();a!==l;)n.push(a),a=ri();r=o=[o,n]}else Mt=r,r=l;i=r!==l?t.substring(i,Mt):r;i!==l&&(Dt=e,i=Je(i));return e=i,e}(),o!==l?(Dt=e,e=$e(o)):(Mt=e,e=l),e}function ri(){var e,t,i,r;if(e=Mt,(t=xi())!==l?(i=Mt,zt++,r=ni(),zt--,r===l?i=void 0:(Mt=i,i=l),i!==l?e=t=[t,i]:(Mt=e,e=l)):(Mt=e,e=l),e===l)if(e=[],(t=Pi())!==l)for(;t!==l;)e.push(t),t=Pi();else e=l;return e}function oi(){var e,i,r;return e=Mt,(i=ni())!==l?(r=function(){var e,t,i;e=Mt,t=[],i=gi(),i===l&&(i=yi())===l&&(i=fi())===l&&(i=li())===l&&(i=ui());for(;i!==l;)t.push(i),(i=gi())===l&&(i=yi())===l&&(i=fi())===l&&(i=li())===l&&(i=ui());return Dt=e,t=et(t),e=t,e}(),Dt=e,e=We(i,r)):(Mt=e,e=l),e===l&&(e=Mt,i=Mt,r=function(){var e,i;zt++,e=[],t.length>Mt?(i=t.charAt(Mt),Mt++):(i=l,0===zt&&Qt(ie));for(;i!==l;)e.push(i),t.length>Mt?(i=t.charAt(Mt),Mt++):(i=l,0===zt&&Qt(ie));zt--,i=l,0===zt&&Qt(_e);return e}(),i=t.substring(i,Mt),Dt=e,e=i=qe(i)),e}function ni(){var e,i,r,o,n,a;return e=Mt,91===t.charCodeAt(Mt)?(i=d,Mt++):(i=l,0===zt&&Qt(Q)),i!==l?(r=function(){var e,i,r;e=Mt,i=[],46===t.charCodeAt(Mt)?(r=G,Mt++):(r=l,0===zt&&Qt(Ke));if(r!==l)for(;r!==l;)i.push(r),46===t.charCodeAt(Mt)?(r=G,Mt++):(r=l,0===zt&&Qt(Ke));else i=l;i!==l&&(Dt=e,i=Ft(i));return e=i,e}(),r!==l?(o=Bi(),n=function(){var e,t,i;e=Mt,t=ai(),t===l&&(t=si());t===l&&(t=null);i=ai(),i===l&&(i=si());i===l&&(i=null);return Dt=e,e=Xe(t,i),e}(),93===t.charCodeAt(Mt)?(a=y,Mt++):(a=l,0===zt&&Qt(Z)),a!==l?(Dt=e,e=Ye(r,o,n)):(Mt=e,e=l)):(Mt=e,e=l)):(Mt=e,e=l),e}function ai(){var e,i,r;return e=Mt,58===t.charCodeAt(Mt)?(i=f,Mt++):(i=l,0===zt&&Qt(ee)),i!==l?(r=Bi(),Dt=e,e=Ze(r)):(Mt=e,e=l),e}function si(){var e,i,r;return e=Mt,38===t.charCodeAt(Mt)?(i=m,Mt++):(i=l,0===zt&&Qt(te)),i!==l?(r=Bi(),Dt=e,e=Qe(r)):(Mt=e,e=l),e}function li(){var e,t,i,r,o;if(e=Mt,t=Mt,(i=ci())!==l){for(r=[],o=pi();o!==l;)r.push(o),o=pi();t=i=[i,r]}else Mt=t,t=l;return t!==l&&(Dt=e,t=tt(t)),e=t}function pi(){var e,t;return e=Mt,(t=ci())!==l&&(Dt=e,t=it(t)),e=t}function ci(){var e,i;return e=Mt,i=function(){var e,i,r,o;e=Mt,t.substr(Mt,4)===k?(i=k,Mt+=4):(i=l,0===zt&&Qt(ce));i!==l&&(r=Ci())!==l?(o=function(){var e;93===t.charCodeAt(Mt)?(e=y,Mt++):(e=l,0===zt&&Qt(Z));return e}(),o!==l?(Dt=e,e=Bt(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r,o;e=Mt,t.substr(Mt,2)===w?(i=w,Mt+=2):(i=l,0===zt&&Qt(de));i!==l&&(r=bi())!==l&&(o=Ci())!==l&&vi()!==l?(Dt=e,e=St(r,o)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r,o;e=Mt,91===t.charCodeAt(Mt)?(i=d,Mt++):(i=l,0===zt&&Qt(Q));if(i!==l){if(r=[],35===t.charCodeAt(Mt)?(o=S,Mt++):(o=l,0===zt&&Qt(ue)),o!==l)for(;o!==l;)r.push(o),35===t.charCodeAt(Mt)?(o=S,Mt++):(o=l,0===zt&&Qt(ue));else r=l;r!==l?(o=hi(),vi()!==l?(Dt=e,e=Ct(r,o)):(Mt=e,e=l)):(Mt=e,e=l)}else Mt=e,e=l;return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===x?(i=x,Mt+=2):(i=l,0===zt&&Qt(ge));i!==l?(r=hi(),vi()!==l?(Dt=e,e=Pt(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===K?(i=K,Mt+=2):(i=l,0===zt&&Qt(ye));i!==l?(r=hi(),vi()!==l?(Dt=e,e=kt(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===A?(i=A,Mt+=2):(i=l,0===zt&&Qt(fe));i!==l?(r=hi(),vi()!==l?(Dt=e,e=xt(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===_?(i=_,Mt+=2):(i=l,0===zt&&Qt(me));i!==l?(r=hi(),vi()!==l?(Dt=e,e=Kt(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===I?(i=I,Mt+=2):(i=l,0===zt&&Qt(Te));i!==l?(r=hi(),vi()!==l?(Dt=e,e=wt(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===E?(i=E,Mt+=2):(i=l,0===zt&&Qt(Be));i!==l?(r=hi(),vi()!==l?(Dt=e,e=Lt(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===O?(i=O,Mt+=2):(i=l,0===zt&&Qt(Ce));i!==l?(r=hi(),vi()!==l?(Dt=e,e=Nt(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===R?(i=R,Mt+=2):(i=l,0===zt&&Qt(ve));i!==l?(r=hi(),vi()!==l?(Dt=e,e=It(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===L?(i=L,Mt+=2):(i=l,0===zt&&Qt(he));i!==l?(r=hi(),vi()!==l?(Dt=e,e=At(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r;e=Mt,t.substr(Mt,2)===N?(i=N,Mt+=2):(i=l,0===zt&&Qt(be));i!==l?(r=hi(),vi()!==l?(Dt=e,e=_t(r)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i===l&&(i=function(){var e,i,r,o;e=Mt,t.substr(Mt,2)===F?(i=F,Mt+=2):(i=l,0===zt&&Qt(Pe));i!==l&&(r=bi())!==l&&(o=Ci())!==l&&vi()!==l?(Dt=e,e=Rt(r,o)):(Mt=e,e=l);return e}()))))))))))))),i!==l&&(Dt=e,i=rt(i)),e=i}function ui(){var e,i;return e=Mt,t.length>Mt?(i=t.charAt(Mt),Mt++):(i=l,0===zt&&Qt(ie)),i!==l&&(Dt=e,i=ot(i)),e=i}function gi(){var e;return(e=function(){var e,i,r,o,n;e=Mt,i=Mt,(r=xi())!==l?(t.substr(Mt,4)===h?(o=h,Mt+=4):(o=l,0===zt&&Qt(oe)),o!==l&&(n=Ki())!==l?i=r=[r,o,n]:(Mt=i,i=l)):(Mt=i,i=l);i!==l&&(Dt=e,i=at(i));return e=i,e}())===l&&(e=function(){var e,i,r,o,n;e=Mt,i=Mt,(r=xi())!==l?(t.substr(Mt,4)===T?(o=T,Mt+=4):(o=l,0===zt&&Qt(re)),o!==l&&(n=Ki())!==l?i=r=[r,o,n]:(Mt=i,i=l)):(Mt=i,i=l);i!==l&&(Dt=e,i=nt(i));return e=i,e}()),e}function yi(){var e,i,r,o,n;if(e=Mt,i=Mt,r=function(){var e,i,r,o,n,a;e=Mt,i=xi(),i!==l?(r=Mt,zt++,o=Mt,t.substr(Mt,4)===b?(n=b,Mt+=4):(n=l,0===zt&&Qt(ne)),n!==l&&(a=Ki())!==l?o=n=[n,a]:(Mt=o,o=l),zt--,o!==l?(Mt=r,r=void 0):r=l,r!==l?(Dt=e,e=lt()):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r!==l){for(o=[],n=di();n!==l;)o.push(n),n=di();n=function(){var e,i,r,o,n;e=Mt,i=Mt,t.substr(Mt,4)===h?(r=h,Mt+=4):(r=l,0===zt&&Qt(oe));r===l&&(r=null);o=Mt,zt++,n=Ai(),zt--,n!==l?(Mt=o,o=void 0):o=l;o!==l?i=r=[r,o]:(Mt=i,i=l);i!==l&&(Dt=e,i=pt());return e=i,e}(),n!==l?i=r=[r,o,n]:(Mt=i,i=l)}else Mt=i,i=l;return i!==l&&(Dt=e,i=st(i)),e=i}function di(){var e,i;return e=Mt,i=function(){var e,i,r,o;e=Mt,i=Mt,t.substr(Mt,4)===b?(r=b,Mt+=4):(r=l,0===zt&&Qt(ne));r!==l?((o=Ki())===l&&(o=Ai()),o!==l?i=r=[r,o]:(Mt=i,i=l)):(Mt=i,i=l);i===l&&(i=Mt,t.substr(Mt,2)===v?(r=v,Mt+=2):(r=l,0===zt&&Qt(ae)),r!==l?((o=Ki())===l&&(o=Ai()),o!==l?i=r=[r,o]:(Mt=i,i=l)):(Mt=i,i=l),i===l&&(i=Mt,t.substr(Mt,2)===B?(r=B,Mt+=2):(r=l,0===zt&&Qt(se)),r!==l?((o=Ki())===l&&(o=Ai()),o!==l?i=r=[r,o]:(Mt=i,i=l)):(Mt=i,i=l),i===l&&(i=function(){var e,i,r,o,n,a;e=Mt,i=Mt,zt++,r=Mt,t.substr(Mt,4)===h?(o=h,Mt+=4):(o=l,0===zt&&Qt(oe));o!==l&&(n=Ai())!==l?r=o=[o,n]:(Mt=r,r=l);zt--,r===l?i=void 0:(Mt=i,i=l);if(i!==l){if(r=Mt,o=Mt,n=ki(),(a=xi())!==l?o=n=[n,a]:(Mt=o,o=l),o===l){if(o=Mt,n=[],(a=Pi())!==l)for(;a!==l;)n.push(a),a=Pi();else n=l;n!==l?(a=function(){var e,i;e=xi(),e===l&&(e=Mt,zt++,t.length>Mt?(i=t.charAt(Mt),Mt++):(i=l,0===zt&&Qt(ie)),zt--,i===l?e=void 0:(Mt=e,e=l));return e}(),a!==l?o=n=[n,a]:(Mt=o,o=l)):(Mt=o,o=l)}(r=o!==l?t.substring(r,Mt):o)!==l?(Dt=e,e=gt(r)):(Mt=e,e=l)}else Mt=e,e=l;return e}())));i!==l&&(Dt=e,i=ut(i));return e=i,e}(),i!==l&&(Dt=e,i=ct(i)),e=i}function fi(){var e,i,r,o,n;if(e=Mt,i=Mt,r=function(){var e,i,r,o,n,a;e=Mt,i=xi(),i!==l?(r=Mt,zt++,o=Mt,t.substr(Mt,3)===C?(n=C,Mt+=3):(n=l,0===zt&&Qt(le)),n!==l&&(a=Ki())!==l?o=n=[n,a]:(Mt=o,o=l),zt--,o!==l?(Mt=r,r=void 0):r=l,r!==l?(Dt=e,e=dt()):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r!==l){for(o=[],n=mi();n!==l;)o.push(n),n=mi();n=function(){var e,i,r,o,n;e=Mt,i=Mt,t.substr(Mt,3)===C?(r=C,Mt+=3):(r=l,0===zt&&Qt(le));r!==l?(o=Mt,zt++,n=Ai(),zt--,n!==l?(Mt=o,o=void 0):o=l,o!==l?i=r=[r,o]:(Mt=i,i=l)):(Mt=i,i=l);i!==l&&(Dt=e,i=ft());return e=i,e}(),n!==l?i=r=[r,o,n]:(Mt=i,i=l)}else Mt=i,i=l;return i!==l&&(Dt=e,i=yt(i)),e=i}function mi(){var e,i,r,o,n,a,s,p,c,u,g;if(e=Mt,i=Mt,zt++,r=Mt,t.substr(Mt,3)===C?(o=C,Mt+=3):(o=l,0===zt&&Qt(le)),o!==l){for(n=[],a=wi();a!==l;)n.push(a),a=wi();for(a=[],s=Mt,p=Mt,zt++,c=Mt,(u=xi())!==l?(t.substr(Mt,3)===C?(g=C,Mt+=3):(g=l,0===zt&&Qt(le)),g!==l?c=u=[u,g]:(Mt=c,c=l)):(Mt=c,c=l),zt--,c===l?p=void 0:(Mt=p,p=l),p!==l?(t.length>Mt?(c=t.charAt(Mt),Mt++):(c=l,0===zt&&Qt(ie)),c!==l?s=p=[p,c]:(Mt=s,s=l)):(Mt=s,s=l);s!==l;)a.push(s),s=Mt,p=Mt,zt++,c=Mt,(u=xi())!==l?(t.substr(Mt,3)===C?(g=C,Mt+=3):(g=l,0===zt&&Qt(le)),g!==l?c=u=[u,g]:(Mt=c,c=l)):(Mt=c,c=l),zt--,c===l?p=void 0:(Mt=p,p=l),p!==l?(t.length>Mt?(c=t.charAt(Mt),Mt++):(c=l,0===zt&&Qt(ie)),c!==l?s=p=[p,c]:(Mt=s,s=l)):(Mt=s,s=l);(s=_i())!==l?r=o=[o,n,a,s]:(Mt=r,r=l)}else Mt=r,r=l;return zt--,r===l?i=void 0:(Mt=i,i=l),i!==l?(r=function(){var e,i,r,o;e=Mt,i=Mt,t.substr(Mt,3)===C?(r=C,Mt+=3):(r=l,0===zt&&Qt(le));r!==l&&(o=Ki())!==l?i=r=[r,o]:(Mt=i,i=l);i===l&&(i=Mt,t.substr(Mt,2)===P?(r=P,Mt+=2):(r=l,0===zt&&Qt(pe)),r!==l&&(o=Ki())!==l?i=r=[r,o]:(Mt=i,i=l),i===l&&(i=Mt,t.substr(Mt,2)===v?(r=v,Mt+=2):(r=l,0===zt&&Qt(ae)),r!==l&&(o=Ki())!==l?i=r=[r,o]:(Mt=i,i=l),i===l&&(i=function(){var e,i,r,o,n;e=Mt,i=Mt,r=Mt,o=ki(),n=xi(),n!==l?r=o=[o,n]:(Mt=r,r=l);i=r!==l?t.substring(i,Mt):r;i!==l&&(Dt=e,i=ht(i));return e=i,e}())));i!==l&&(Dt=e,i=Tt(i));return e=i,e}(),r!==l?(Dt=e,e=mt(r)):(Mt=e,e=l)):(Mt=e,e=l),e}function Ti(){var e,i;return e=Mt,t.length>Mt?(i=t.charAt(Mt),Mt++):(i=l,0===zt&&Qt(ie)),i!==l&&(Dt=e,i=vt(i)),e=i}function hi(){var e,i,r,o;for(e=Mt,i=Mt,r=[],t.substr(Mt,2)===V?(o=V,Mt+=2):(o=l,0===zt&&Qt(ke)),o===l&&(o=t.charAt(Mt),U.test(o)?Mt++:(o=l,0===zt&&Qt(X)));o!==l;)r.push(o),t.substr(Mt,2)===V?(o=V,Mt+=2):(o=l,0===zt&&Qt(ke)),o===l&&(o=t.charAt(Mt),U.test(o)?Mt++:(o=l,0===zt&&Qt(X)));return i=t.substring(i,Mt),Dt=e,e=i=Et(i)}function bi(){var e,i,r,o,n;if(e=Mt,i=Mt,zt++,t.substr(Mt,3)===j?(r=j,Mt+=3):(r=l,0===zt&&Qt(Se)),zt--,r===l?i=void 0:(Mt=i,i=l),i!==l){for(r=Mt,o=[],n=t.charAt(Mt),$.test(n)?Mt++:(n=l,0===zt&&Qt(xe));n!==l;)o.push(n),n=t.charAt(Mt),$.test(n)?Mt++:(n=l,0===zt&&Qt(xe));r=t.substring(r,Mt),Dt=e,e=Ot(r)}else Mt=e,e=l;return e}function vi(){var e,i,r;if(93===t.charCodeAt(Mt)?(e=y,Mt++):(e=l,0===zt&&Qt(Z)),e===l){for(e=Mt,i=[],r=wi();r!==l;)i.push(r),r=wi();(r=_i())!==l?e=i=[i,r]:(Mt=e,e=l)}return e}function Bi(){var e,i,r,o;for(e=Mt,i=Mt,r=[],o=t.charAt(Mt),J.test(o)?Mt++:(o=l,0===zt&&Qt(we));o!==l;)r.push(o),o=t.charAt(Mt),J.test(o)?Mt++:(o=l,0===zt&&Qt(we));return i=t.substring(i,Mt),Dt=e,e=i=Vt(i)}function Ci(){var e,i,r;return e=Mt,58===t.charCodeAt(Mt)?(i=f,Mt++):(i=l,0===zt&&Qt(ee)),i!==l?(r=hi(),Dt=e,e=jt(r)):(Mt=e,e=l),e===l&&(i="",Dt=e=Mt,e=i=Gt()),e}function Pi(){var e;return zt++,e=t.charAt(Mt),H.test(e)?Mt++:(e=l,0===zt&&Qt(Le)),zt--,e===l&&(0===zt&&Qt(Ie)),e}function ki(){var e,t;for(zt++,e=[],t=Pi();t!==l;)e.push(t),t=Pi();return zt--,t=l,0===zt&&Qt(Ne),e}function Si(){var e,i,r;for(zt++,e=Mt,i=[],r=t.charAt(Mt),z.test(r)?Mt++:(r=l,0===zt&&Qt(Ae));r!==l;)i.push(r),r=t.charAt(Mt),z.test(r)?Mt++:(r=l,0===zt&&Qt(Ae));return(r=xi())!==l?e=i=[i,r]:(Mt=e,e=l),zt--,e===l&&(i=l,0===zt&&Qt(Re)),e}function xi(){var e;return zt++,10===t.charCodeAt(Mt)?(e=M,Mt++):(e=l,0===zt&&Qt(Oe)),e===l&&(t.substr(Mt,2)===D?(e=D,Mt+=2):(e=l,0===zt&&Qt(Fe)),e===l&&(e=t.charAt(Mt),W.test(e)?Mt++:(e=l,0===zt&&Qt(Ve)))),zt--,e===l&&(0===zt&&Qt(Ee)),e}function Ki(){var e,i,r;for(zt++,e=Mt,i=[],r=t.charAt(Mt),z.test(r)?Mt++:(r=l,0===zt&&Qt(Ae));r!==l;)i.push(r),r=t.charAt(Mt),z.test(r)?Mt++:(r=l,0===zt&&Qt(Ae));return(r=xi())!==l?e=i=[i,r]:(Mt=e,e=l),zt--,e===l&&(i=l,0===zt&&Qt(je)),e}function wi(){var e;return zt++,e=t.charAt(Mt),q.test(e)?Mt++:(e=l,0===zt&&Qt(Me)),zt--,e===l&&(0===zt&&Qt(Ge)),e}function Ai(){var e,i;return(e=Ki())===l&&(e=Mt,zt++,t.length>Mt?(i=t.charAt(Mt),Mt++):(i=l,0===zt&&Qt(ie)),zt--,i===l?e=void 0:(Mt=e,e=l)),e}function _i(){var e,i;return e=Mt,zt++,t.length>Mt?(i=t.charAt(Mt),Mt++):(i=l,0===zt&&Qt(ie)),zt--,i===l?e=void 0:(Mt=e,e=l),e}const Ii=new o.BitmarkPegParserHelper({parse:e,parserText:Ht,parserLocation:Ni}),Li=new n.BitmarkPegParserProcessor({parse:e,parserText:Ht,parserLocation:Ni});function Ni(){const e=Zt(Dt,Mt);return e?(delete e.source,e):e}function Zt(e,t,i){var r=Xt(e),o=Xt(t),n={source:p,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:o.line,column:o.column}};return p&&"function"==typeof p.offset&&(n.start=p.offset(n.start),n.end=p.offset(n.end)),n}if(s=u(),i.peg$library)return{peg$result:s,peg$currPos:Mt,peg$FAILED:l,peg$maxFailExpected:Jt,peg$maxFailPos:$t};if(s!==l&&Mt===t.length)return s;throw s!==l&&Mt<t.length&&Qt({type:"end"}),ei(Jt,$t<t.length?t.charAt($t):null,$t<t.length?Zt($t,$t+1):Zt($t,$t))};const r=i(3029),o=i(3206),n=i(7124);function a(e,t,i,r){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,a.prototype),o.expected=t,o.found=i,o.location=r,o.name="SyntaxError",o}function s(e,t,i){return i=i||" ",e.length>t?e:(t-=e.length,e+(i+=i.repeat(t)).slice(0,t))}!function(e,t){function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i}(a,Error),a.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var i,r=null;for(i=0;i<e.length;i++)if(e[i].source===this.location.source){r=e[i].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,n=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+n.line+":"+n.column;if(r){var l=this.location.end,p=s("",n.line.toString().length," "),c=r[o.line-1],u=(o.line===l.line?l.column:c.length+1)-o.column||1;t+="\n --\x3e "+a+"\n"+p+" |\n"+n.line+" | "+c+"\n"+p+" | "+s("",o.column-1," ")+s("",u,"^")}else t+="\n at "+a}return t},a.buildMessage=function(e,t){var i={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?n(e[0])+"-"+n(e[1]):n(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function n(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){return i[e.type](e)}return"Expected "+function(e){var t,i,r=e.map(a);if(r.sort(),r.length>0){for(t=1,i=1;t<r.length;t++)r[t-1]!==r[t]&&(r[i]=r[t],i++);r.length=i}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."};t.StartRules=["bitmark","bit","cardContent"]},8321:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StartRules=void 0,t.SyntaxError=p,t.parse=u;const r=i(7735),o="8.17.1";function n(e){let t=e||"";return t=r.Breakscape.unbreakscape(t),t}function a(e){e&&"object"==typeof e&&(delete e._tempParsingParent,delete e._tempListStart,Object.keys(e).forEach((t=>{a(e[t])})))}function s(e){return"undefined"!=typeof parser?parser.parse(e,{startRule:"bitmarkPlusString"}):u(e,{startRule:"bitmarkPlusString"})}function l(e){return"undefined"!=typeof parser?parser.parse(e,{startRule:"bitmarkMinusMinusString"}):u(e,{startRule:"bitmarkMinusMinusString"})}function p(e,t,i,r){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,p.prototype),o.expected=t,o.found=i,o.location=r,o.name="SyntaxError",o}function c(e,t,i){return i=i||" ",e.length>t?e:(t-=e.length,e+(i+=i.repeat(t)).slice(0,t))}function u(e,t){var i,r={},c=(t=void 0!==t?t:{}).grammarSource,u={version:Zo,bitmarkPlusPlus:function(){var e,t;if($o++,e=[],(t=Qo())!==r)for(;t!==r;)e.push(t),t=Qo();else e=r;e===r&&(e=function(){var e,t;return e=Go,t="",t=yr(),e=t,e}());$o--,e===r&&(t=r,0===$o&&Yo(lt));return e},bitmarkPlus:function(){var e,t;$o++,e=Go,t=Kn(),t=io(t),e=t,$o--,t=r,0===$o&&Yo(lt);return e},bitmarkMinusMinus:function(){var e,t;$o++,e=Go,t=En(),t=_o(t),e=t,$o--,t=r,0===$o&&Yo(Ui);return e},bitmarkPlusString:function(){var e;$o++,e=Kn(),$o--,0===$o&&Yo(Dt);return e},bitmarkMinusMinusString:En},g=Zo,y="|",d=":",f="### ",m="## ",T="# ",h="code",b="bitmark++",v="bitmark--",B="JavaScript",C="• ",P="•_ ",k="•",S=" ",x="I ",K="i ",w="•A ",A="•a ",_="•+ ",I="•- ",L="\t",N="image",R="#",E="@",O="width",F="height",V="alignment",j="captionAlign",G="left",M="center",D="right",U="=",$="𝑓",J="link:",z="xref:",H="►",W="footnote:",q="footnote*:",Y="var:",X="code:",Z="timer",Q="timer:",ee="duration:",te="P",ie="color:",re="bold",oe="italic",ne="light",ae="highlight",se="strike",le="subscript",pe="superscript",ce="ins",ue="del",ge="underline",ye="doubleUnderline",de="circle",fe="languageEm",me="userUnderline",Te="userDoubleUnderline",he="userStrike",be="userCircle",ve="userHighlight",Be="aqua",Ce="black",Pe="blue",ke="pink",Se="fuchsia",xe="lightgrey",Ke="gray",we="darkgray",Ae="green",_e="lime",Ie="magenta",Le="maroon",Ne="navy",Re="olive",Ee="orange",Oe="purple",Fe="red",Ve="silver",je="teal",Ge="violet",Me="white",De="yellow",Ue="*",$e="_",Je="`",ze="!",He="[!",We="]",qe="\n",Ye="\r\n",Xe="http",Ze="s",Qe="://",et="mailto:",tt=/^[ \t]/,it=/^[0-9]/,rt=/^[:|]/,ot=/^[\r\u2028-\u2029]/,nt=/^[^\n\r\u2028\u2029]/,at=/^[!#-;=?-[\]-_a-{}-~]/,st={type:"any"},lt=Ho("StyledText"),pt=Jo("|",!1),ct=Jo(":",!1),ut=Jo("### ",!1),gt=Jo("## ",!1),yt=Jo("# ",!1),dt=Jo("code",!1),ft=zo([" ","\t"],!1,!1),mt=Jo("bitmark++",!1),Tt=Jo("bitmark--",!1),ht=Jo("JavaScript",!1),bt=Jo("• ",!1),vt=Jo("•_ ",!1),Bt=Jo("•",!1),Ct=zo([["0","9"]],!1,!1),Pt=Jo(" ",!1),kt=Jo("I ",!1),St=Jo("i ",!1),xt=Jo("•A ",!1),Kt=Jo("•a ",!1),wt=Jo("•+ ",!1),At=Jo("•- ",!1),_t=Jo("\t",!1),It=Jo("image",!1),Lt=Jo("#",!1),Nt=Jo("@",!1),Rt=zo([":","|"],!1,!1),Et=Jo("width",!1),Ot=Jo("height",!1),Ft=Jo("alignment",!1),Vt=Jo("captionAlign",!1),jt=Jo("left",!1),Gt=Jo("center",!1),Mt=Jo("right",!1),Dt=Ho("StyledString"),Ut=Jo("=",!1),$t=Jo("𝑓",!1),Jt=Jo("link:",!1),zt=Jo("xref:",!1),Ht=Jo("►",!1),Wt=Jo("footnote:",!1),qt=Jo("footnote*:",!1),Yt=Jo("var:",!1),Xt=Jo("code:",!1),Zt=Jo("timer",!1),Qt=Jo("timer:",!1),ei=Jo("duration:",!1),ti=Jo("P",!1),ii=Jo("color:",!1),ri=Jo("bold",!1),oi=Jo("italic",!1),ni=Jo("light",!1),ai=Jo("highlight",!1),si=Jo("strike",!1),li=Jo("subscript",!1),pi=Jo("superscript",!1),ci=Jo("ins",!1),ui=Jo("del",!1),gi=Jo("underline",!1),yi=Jo("doubleUnderline",!1),di=Jo("circle",!1),fi=Jo("languageEm",!1),mi=Jo("userUnderline",!1),Ti=Jo("userDoubleUnderline",!1),hi=Jo("userStrike",!1),bi=Jo("userCircle",!1),vi=Jo("userHighlight",!1),Bi=Jo("aqua",!1),Ci=Jo("black",!1),Pi=Jo("blue",!1),ki=Jo("pink",!1),Si=Jo("fuchsia",!1),xi=Jo("lightgrey",!1),Ki=Jo("gray",!1),wi=Jo("darkgray",!1),Ai=Jo("green",!1),_i=Jo("lime",!1),Ii=Jo("magenta",!1),Li=Jo("maroon",!1),Ni=Jo("navy",!1),Ri=Jo("olive",!1),Ei=Jo("orange",!1),Oi=Jo("purple",!1),Fi=Jo("red",!1),Vi=Jo("silver",!1),ji=Jo("teal",!1),Gi=Jo("violet",!1),Mi=Jo("white",!1),Di=Jo("yellow",!1),Ui=Ho("MinimalStyledText"),$i=Ho("MinimalStyledString"),Ji=Jo("*",!1),zi=Jo("_",!1),Hi=Jo("`",!1),Wi=Jo("!",!1),qi=Jo("[!",!1),Yi=Jo("]",!1),Xi=Ho("Line Terminator"),Zi=Jo("\n",!1),Qi=Jo("\r\n",!1),er=zo(["\r",["\u2028","\u2029"]],!1,!1),tr=(Ho("whitespace in line"),Ho("space"),Ho("language tag separator"),Ho("white space, separator"),zo(["\t","\v","\f"," "," ","\ufeff"," "," "," ",[" "," "]," "," "," "],!1,!1),zo(["\n","\r","\u2028","\u2029"],!1,!1),zo(["\n","\r","\u2028","\u2029"],!0,!1)),ir=(zo(["\n","\r","\u2028","\u2029","\t","\v","\f"," "," ","\ufeff"," "," "," ",[" "," "]," "," "," "],!0,!1),Jo("http",!1)),rr=Jo("s",!1),or=Jo("://",!1),nr=Jo("mailto:",!1),ar=zo(["!",["#",";"],"=",["?","["],["]","_"],["a","{"],["}","~"]],!1,!1),sr=function(){return o},lr=function(e){return Object.assign({},e)},pr=function(e){let t=Object.assign({},e);return a(t),t},cr=function(e){return Object.assign({},e)},ur=function(e){return Object.assign({},e)},gr=function(e){return Object.assign({},e)},yr=function(){return[]},dr=function(e,t){return{type:"heading",content:l(t),attrs:{level:e.length-1}}},fr=function(e){return e},mr=function(e,t){return Object.assign(Object.assign({},e),{content:t})},Tr=function(){return{type:"codeBlock",language:""}},hr=function(e){return{type:"codeBlock",attrs:{language:e.trim().toLowerCase()}}},br=function(e){return[{type:"text",text:n(e.trim())}]},vr=function(e){return e},Br=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},Cr=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},Pr=function(e,t){let i=t[0]._tempListStart;return Object.assign(Object.assign({},e),{attrs:{start:i},content:t})},kr=function(e,t){let i=t[0]._tempListStart;return Object.assign(Object.assign({},e),{attrs:{start:i},content:t})},Sr=function(e,t){let i=t[0]._tempListStart;return Object.assign(Object.assign({},e),{attrs:{start:i},content:t})},xr=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},Kr=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},wr=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},Ar=function(){return{type:"bulletList"}},_r=function(){return{type:"noBulletList"}},Ir=function(){return{type:"orderedList"}},Lr=function(){return{type:"orderedListRoman"}},Nr=function(){return{type:"orderedListRomanLower"}},Rr=function(){return{type:"letteredList"}},Er=function(){return{type:"letteredListLower"}},Or=function(){return{type:"taskList"}},Fr=function(e,t,i,r){return r},Vr=function(e,t,i,r){let o="bulletList";const n=e.match(/•([0-9]+)([Ii]?) /);let a=1;if(n&&(o="orderedList",n.length>1&&(a=Number(n[1])),n.length>2)){let e=n[2];"I"==e&&(o="orderedListRoman"),"i"==e&&(o="orderedListRomanLower")}"•_ "==e&&(o="noBulletList"),"•A "==e&&(o="letteredList"),"•a "==e&&(o="letteredListLower"),"•+ "!=e&&"•- "!=e||(o="taskList");let l=[{type:"paragraph",attrs:{},content:s((t+i.join("")).trim())}];if(r&&r[0]&&r[0]._tempParsingParent){let e={type:r[0]._tempParsingParent,attrs:{start:a},content:r};if((e.type.startsWith("orderedList")||e.type.startsWith("letteredList"))&&r[0]._tempListStart){const t=r[0]._tempListStart;t>1&&(e.attrs.start=t)}l.push(e)}let p="listItem",c=null;if("taskList"==o){p="taskItem";let t=!1;"•+ "==e&&(t=!0),c={checked:t}}return c?{type:p,attrs:c,content:l,_tempParsingParent:o,_tempListStart:a}:{type:p,content:l,_tempParsingParent:o,_tempListStart:a}},jr=function(e){return e},Gr=function(e){return e.join("")===ea},Mr=function(e){return e.length>ea.length},Dr=function(e){Qn.push(ea),ea=e.join("")},Ur=function(){return ea=Qn.pop(),!0},$r=function(e){return{type:"paragraph",content:s(e.trim()),attrs:{}}},Jr=function(e){return{type:"paragraph",content:s(e.trim()),attrs:{}}},zr=function(e){return{type:"paragraph",content:s(e.trim()),attrs:{}}},Hr=function(e){return e},Wr=function(e,t,i){const r=Object.assign({},...i);let o=r.alignment||"center";delete r.alignment;let n=r.captionAlign||"left";delete r.captionAlign;let a=r.alt||null;delete r.alt;let s=r.caption||null;delete r.caption;let l=r.align||"center";delete r.align;let p=r.zoomDisabled||Boolean(r.zoomDisabled);return delete r.zoomDisabled,{type:e,attrs:Object.assign({alignment:o,textAlign:n,src:t,alt:a,title:s,class:l,zoomDisabled:p},r)}},qr=function(e){return e},Yr=function(e){return{comment:e}},Xr=function(e,t){return{[e]:parseInt(t)}},Zr=function(e,t){return{type:"error",msg:e+" must be an positive integer.",found:t}},Qr=function(e,t){return{[e]:t}},eo=function(e,t){return{[e]:t}},to=function(e){return{[e]:!0}},io=function(e){return[{type:"paragraph",content:e,attrs:{}}]},ro=function(e,t){return e?[e,...t.flat()]:t.flat()},oo=function(){return{type:"hardBreak"}},no=function(e){return{text:n(e),type:"text"}},ao=function(e){return{index:+e,type:"bit"}},so=function(e,t){return t||(t=[]),{marks:t,text:n(e),type:"text"}},lo=function(e){return{marks:[{type:"bold"}],text:n(e),type:"text"}},po=function(e){return{marks:[{type:"italic"}],text:n(e),type:"text"}},co=function(e){return{marks:[{type:"light"}],text:n(e),type:"text"}},uo=function(e){return{marks:[{type:"highlight"}],text:n(e),type:"text"}},go=function(e){return{marks:[{type:"link",attrs:{href:(e.pr+e.t).trim(),target:"_blank"}}],text:e.t,type:"text"}},yo=function(e){return e},fo=function(e){return{type:"link",attrs:{href:e.trim(),target:"_blank"}}},mo=function(e,t){return{type:"xref",attrs:{xref:e.trim(),reference:t.trim()}}},To=function(e){return{type:"xref",attrs:{xref:e.trim(),reference:""}}},ho=function(e){return{type:"ref",attrs:{reference:e.trim()}}},bo=function(e){return{type:"footnote",attrs:{content:s(e.trim())}}},vo=function(e){return{type:"footnote*",attrs:{content:s(e.trim())}}},Bo=function(e){return{type:"var",attrs:{name:e.trim()}}},Co=function(){return{type:"code",attrs:{language:"plain text"}}},Po=function(e){return{type:"code",attrs:{language:e.trim().toLowerCase()}}},ko=function(){return{type:"timer",attrs:{name:""}}},So=function(e){return{type:"timer",attrs:{name:e.trim()}}},xo=function(e){return{type:"duration",attrs:{duration:e}}},Ko=function(e){return{type:"color",attrs:{color:e}}},wo=function(e){return{type:e}},Ao=function(e){return{type:"comment",comment:e}},_o=function(e){return[{type:"paragraph",content:e,attrs:{}}]},Io=function(e,t){return e?[e,...t.flat()]:t.flat()},Lo=function(e){return{type:"hardBreak"}},No=function(e){return{text:n(e),type:"text"}},Ro=function(e){return{index:+e,type:"bit"}},Eo=function(e){return{marks:[{type:"bold"}],text:n(e),type:"text"}},Oo=function(e){return{marks:[{type:"italic"}],text:n(e),type:"text"}},Fo=function(e){return{marks:[{type:"light"}],text:n(e),type:"text"}},Vo=function(e){return{marks:[{type:"highlight"}],text:n(e),type:"text"}},jo=function(e,t){return{pr:e,t}},Go=0|t.peg$currPos,Mo=[{line:1,column:1}],Do=Go,Uo=t.peg$maxFailExpected||[],$o=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');g=u[t.startRule]}function Jo(e,t){return{type:"literal",text:e,ignoreCase:t}}function zo(e,t,i){return{type:"class",parts:e,inverted:t,ignoreCase:i}}function Ho(e){return{type:"other",description:e}}function Wo(t){var i,r=Mo[t];if(r)return r;if(t>=Mo.length)i=Mo.length-1;else for(i=t;!Mo[--i];);for(r={line:(r=Mo[i]).line,column:r.column};i<t;)10===e.charCodeAt(i)?(r.line++,r.column=1):r.column++,i++;return Mo[t]=r,r}function qo(e,t,i){var r=Wo(e),o=Wo(t),n={source:c,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:o.line,column:o.column}};return i&&c&&"function"==typeof c.offset&&(n.start=c.offset(n.start),n.end=c.offset(n.end)),n}function Yo(e){Go<Do||(Go>Do&&(Do=Go,Uo=[]),Uo.push(e))}function Xo(e,t,i){return new p(p.buildMessage(e,t),e,t,i)}function Zo(){var t,i,o;for(t=Go,i=[],e.length>Go?(o=e.charAt(Go),Go++):(o=r,0===$o&&Yo(st));o!==r;)i.push(o),e.length>Go?(o=e.charAt(Go),Go++):(o=r,0===$o&&Yo(st));return t=i=sr()}function Qo(){var t,i;return t=Go,i=function(){var t,i,o,n,a;if(t=Go,i=rn(),i!==r){for(o=Go,n=[],a=Yn();a!==r;)n.push(a),a=Yn();o=e.substring(o,Go),(n=Xn())!==r?((a=qn())===r&&(a=null),t=dr(i,o)):(Go=t,t=r)}else Go=t,t=r;return t}(),i!==r&&(i=lr(i)),(t=i)===r&&(t=Go,i=function(){var e,t,i,o;if(e=Go,t=function(){var e,t,i;e=Go,t=Go,$o++,i=sn(),$o--,i!==r?(Go=t,t=void 0):t=r;t!==r&&(t=Ar());return e=t,e}(),t!==r){if(i=[],(o=mn())!==r)for(;o!==r;)i.push(o),o=mn();else i=r;i!==r?((o=qn())===r&&(o=null),e=Br(t,i)):(Go=e,e=r)}else Go=e,e=r;if(e===r){if(e=Go,t=function(){var e,t,i;e=Go,t=Go,$o++,i=ln(),$o--,i!==r?(Go=t,t=void 0):t=r;t!==r&&(t=_r());return e=t,e}(),t!==r){if(i=[],(o=mn())!==r)for(;o!==r;)i.push(o),o=mn();else i=r;i!==r?((o=qn())===r&&(o=null),e=Cr(t,i)):(Go=e,e=r)}else Go=e,e=r;if(e===r){if(e=Go,t=function(){var e,t,i;e=Go,t=Go,$o++,i=pn(),$o--,i!==r?(Go=t,t=void 0):t=r;t!==r&&(t=Ir());return e=t,e}(),t!==r){if(i=[],(o=mn())!==r)for(;o!==r;)i.push(o),o=mn();else i=r;i!==r?((o=qn())===r&&(o=null),e=Pr(t,i)):(Go=e,e=r)}else Go=e,e=r;if(e===r){if(e=Go,t=function(){var e,t,i;e=Go,t=Go,$o++,i=cn(),$o--,i!==r?(Go=t,t=void 0):t=r;t!==r&&(t=Lr());return e=t,e}(),t!==r){if(i=[],(o=mn())!==r)for(;o!==r;)i.push(o),o=mn();else i=r;i!==r?((o=qn())===r&&(o=null),e=kr(t,i)):(Go=e,e=r)}else Go=e,e=r;if(e===r){if(e=Go,t=function(){var e,t,i;e=Go,t=Go,$o++,i=un(),$o--,i!==r?(Go=t,t=void 0):t=r;t!==r&&(t=Nr());return e=t,e}(),t!==r){if(i=[],(o=mn())!==r)for(;o!==r;)i.push(o),o=mn();else i=r;i!==r?((o=qn())===r&&(o=null),e=Sr(t,i)):(Go=e,e=r)}else Go=e,e=r;if(e===r){if(e=Go,t=function(){var e,t,i;e=Go,t=Go,$o++,i=gn(),$o--,i!==r?(Go=t,t=void 0):t=r;t!==r&&(t=Rr());return e=t,e}(),t!==r){if(i=[],(o=mn())!==r)for(;o!==r;)i.push(o),o=mn();else i=r;i!==r?((o=qn())===r&&(o=null),e=xr(t,i)):(Go=e,e=r)}else Go=e,e=r;if(e===r){if(e=Go,t=function(){var e,t,i;e=Go,t=Go,$o++,i=yn(),$o--,i!==r?(Go=t,t=void 0):t=r;t!==r&&(t=Er());return e=t,e}(),t!==r){if(i=[],(o=mn())!==r)for(;o!==r;)i.push(o),o=mn();else i=r;i!==r?((o=qn())===r&&(o=null),e=Kr(t,i)):(Go=e,e=r)}else Go=e,e=r;if(e===r)if(e=Go,t=function(){var e,t,i;e=Go,t=Go,$o++,i=dn(),$o--,i!==r?(Go=t,t=void 0):t=r;t!==r&&(t=Or());return e=t,e}(),t!==r){if(i=[],(o=mn())!==r)for(;o!==r;)i.push(o),o=mn();else i=r;i!==r?((o=qn())===r&&(o=null),e=wr(t,i)):(Go=e,e=r)}else Go=e,e=r}}}}}}return e}(),i!==r&&(i=pr(i)),(t=i)===r&&(t=Go,(i=Pn())!==r&&(i=cr(i)),(t=i)===r&&(t=Go,i=function(){var t,i,o;t=Go,i=nn(),i!==r?(o=function(){var t,i,o,n;t=Go,i=Go,o=[],n=an();for(;n!==r;)o.push(n),n=an();return i=e.substring(i,Go),i=br(i),t=i,t}(),t=mr(i,o)):(Go=t,t=r);return t}(),i!==r&&(i=ur(i)),(t=i)===r&&(t=Go,i=function(){var e,t,i;e=Go,t=Go,$o++,i=en(),$o--,i===r?t=void 0:(Go=t,t=r);t!==r&&(i=bn())!==r?e=$r(i):(Go=e,e=r);e===r&&(e=Go,(t=Bn())!==r&&(i=bn())!==r?e=Jr(i):(Go=e,e=r),e===r&&(e=Go,(t=Bn())!==r?e=zr(i=""):(Go=e,e=r)));return e}(),i!==r&&(i=gr(i)),t=i)))),t}function en(){var e;return(e=rn())===r&&(e=fn())===r&&(e=Pn())===r&&(e=nn())===r&&(e=Bn()),e}function tn(){var t;return 124===e.charCodeAt(Go)?(t=y,Go++):(t=r,0===$o&&Yo(pt)),t}function rn(){var t;return e.substr(Go,4)===f?(t=f,Go+=4):(t=r,0===$o&&Yo(ut)),t===r&&(e.substr(Go,3)===m?(t=m,Go+=3):(t=r,0===$o&&Yo(gt)),t===r&&(e.substr(Go,2)===T?(t=T,Go+=2):(t=r,0===$o&&Yo(yt)))),t}function on(){var t,i;return t=Go,tn()!==r?(i=function(){var t;return e.substr(Go,4)===h?(t=h,Go+=4):(t=r,0===$o&&Yo(dt)),t}(),i!==r?t=fr(i):(Go=t,t=r)):(Go=t,t=r),t}function nn(){var t,i,o,n,a,s,l;if(t=Go,on()!==r){for(i=Go,o=Go,n=[],a=e.charAt(Go),tt.test(a)?Go++:(a=r,0===$o&&Yo(ft));a!==r;)n.push(a),a=e.charAt(Go),tt.test(a)?Go++:(a=r,0===$o&&Yo(ft));(a=Xn())!==r?o=n=[n,a]:(Go=o,o=r),(i=o!==r?e.substring(i,Go):o)!==r?t=Tr():(Go=t,t=r)}else Go=t,t=r;if(t===r)if(t=Go,on()!==r)if(58===e.charCodeAt(Go)?(i=d,Go++):(i=r,0===$o&&Yo(ct)),i!==r)if(o=function(){var t,i,o;e.substr(Go,9)===b?(t=b,Go+=9):(t=r,0===$o&&Yo(mt));if(t===r&&(e.substr(Go,9)===v?(t=v,Go+=9):(t=r,0===$o&&Yo(Tt)),t===r&&(e.substr(Go,10)===B?(t=B,Go+=10):(t=r,0===$o&&Yo(ht)),t===r))){if(t=Go,i=[],(o=Yn())!==r)for(;o!==r;)i.push(o),o=Yn();else i=r;(t=i!==r?e.substring(t,Go):i)===r&&(t="")}return t}(),o!==r){for(n=Go,a=Go,s=[],l=e.charAt(Go),tt.test(l)?Go++:(l=r,0===$o&&Yo(ft));l!==r;)s.push(l),l=e.charAt(Go),tt.test(l)?Go++:(l=r,0===$o&&Yo(ft));(l=Xn())!==r?a=s=[s,l]:(Go=a,a=r),(n=a!==r?e.substring(n,Go):a)!==r?t=hr(o):(Go=t,t=r)}else Go=t,t=r;else Go=t,t=r;else Go=t,t=r;return t}function an(){var t,i,o,n,a,s;if(t=Go,i=Go,$o++,o=en(),$o--,o===r?i=void 0:(Go=i,i=r),i!==r){if(o=Go,n=Go,a=[],(s=Yn())!==r)for(;s!==r;)a.push(s),s=Yn();else a=r;a!==r&&(s=Xn())!==r?n=a=[a,s]:(Go=n,n=r),(o=n!==r?e.substring(o,Go):n)!==r?t=vr(o):(Go=t,t=r)}else Go=t,t=r;return t===r&&(t=qn()),t}function sn(){var t;return e.substr(Go,2)===C?(t=C,Go+=2):(t=r,0===$o&&Yo(bt)),t}function ln(){var t;return e.substr(Go,3)===P?(t=P,Go+=3):(t=r,0===$o&&Yo(vt)),t}function pn(){var t,i,o,n,a;if(t=Go,i=Go,8226===e.charCodeAt(Go)?(o=k,Go++):(o=r,0===$o&&Yo(Bt)),o!==r){if(n=[],a=e.charAt(Go),it.test(a)?Go++:(a=r,0===$o&&Yo(Ct)),a!==r)for(;a!==r;)n.push(a),a=e.charAt(Go),it.test(a)?Go++:(a=r,0===$o&&Yo(Ct));else n=r;n!==r?(32===e.charCodeAt(Go)?(a=S,Go++):(a=r,0===$o&&Yo(Pt)),a!==r?i=o=[o,n,a]:(Go=i,i=r)):(Go=i,i=r)}else Go=i,i=r;return t=i!==r?e.substring(t,Go):i}function cn(){var t,i,o,n,a;if(t=Go,i=Go,8226===e.charCodeAt(Go)?(o=k,Go++):(o=r,0===$o&&Yo(Bt)),o!==r){if(n=[],a=e.charAt(Go),it.test(a)?Go++:(a=r,0===$o&&Yo(Ct)),a!==r)for(;a!==r;)n.push(a),a=e.charAt(Go),it.test(a)?Go++:(a=r,0===$o&&Yo(Ct));else n=r;n!==r?(e.substr(Go,2)===x?(a=x,Go+=2):(a=r,0===$o&&Yo(kt)),a!==r?i=o=[o,n,a]:(Go=i,i=r)):(Go=i,i=r)}else Go=i,i=r;return t=i!==r?e.substring(t,Go):i}function un(){var t,i,o,n,a;if(t=Go,i=Go,8226===e.charCodeAt(Go)?(o=k,Go++):(o=r,0===$o&&Yo(Bt)),o!==r){if(n=[],a=e.charAt(Go),it.test(a)?Go++:(a=r,0===$o&&Yo(Ct)),a!==r)for(;a!==r;)n.push(a),a=e.charAt(Go),it.test(a)?Go++:(a=r,0===$o&&Yo(Ct));else n=r;n!==r?(e.substr(Go,2)===K?(a=K,Go+=2):(a=r,0===$o&&Yo(St)),a!==r?i=o=[o,n,a]:(Go=i,i=r)):(Go=i,i=r)}else Go=i,i=r;return t=i!==r?e.substring(t,Go):i}function gn(){var t;return e.substr(Go,3)===w?(t=w,Go+=3):(t=r,0===$o&&Yo(xt)),t}function yn(){var t;return e.substr(Go,3)===A?(t=A,Go+=3):(t=r,0===$o&&Yo(Kt)),t}function dn(){var t;return e.substr(Go,3)===_?(t=_,Go+=3):(t=r,0===$o&&Yo(wt)),t===r&&(e.substr(Go,3)===I?(t=I,Go+=3):(t=r,0===$o&&Yo(At))),t}function fn(){var e;return(e=sn())===r&&(e=ln())===r&&(e=pn())===r&&(e=cn())===r&&(e=un())===r&&(e=gn())===r&&(e=yn())===r&&(e=dn()),e}function mn(){var t,i,o,n,a,s,l,p;if(t=Go,hn()!==r)if((i=fn())!==r){for(o=Go,n=Go,a=[],s=Go,l=Go,$o++,p=qn(),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);s!==r;)a.push(s),s=Go,l=Go,$o++,p=qn(),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);for((s=qn())===r&&(s=null),n=a=[a,s],o=e.substring(o,Go),n=[],a=Tn();a!==r;)n.push(a),a=Tn();if(a=Go,s=function(){var t,i,o,n;t=Go,$o++,i=Go,o=[],9===e.charCodeAt(Go)?(n=L,Go++):(n=r,0===$o&&Yo(_t));if(n!==r)for(;n!==r;)o.push(n),9===e.charCodeAt(Go)?(n=L,Go++):(n=r,0===$o&&Yo(_t));else o=r;o!==r?(n=(n=Mr(o))?void 0:r)!==r?i=Dr(o):(Go=i,i=r):(Go=i,i=r);$o--,i!==r?(Go=t,t=void 0):t=r;return t}(),s!==r){for(l=[],p=mn();p!==r;)l.push(p),p=mn();p=function(){var e;e=Ur(),e=e?void 0:r;return e}(),p!==r?a=Fr(i,o,n,l):(Go=a,a=r)}else Go=a,a=r;a===r&&(a=null),t=Vr(i,o,n,a)}else Go=t,t=r;else Go=t,t=r;return t}function Tn(){var t,i,o,n,a,s,l,p,c,u;if(t=Go,i=Go,$o++,o=function(){var t,i,o;t=Go,i=[],o=e.charAt(Go),tt.test(o)?Go++:(o=r,0===$o&&Yo(ft));for(;o!==r;)i.push(o),o=e.charAt(Go),tt.test(o)?Go++:(o=r,0===$o&&Yo(ft));o=qn(),o!==r?t=i=[i,o]:(Go=t,t=r);return t}(),$o--,o===r?i=void 0:(Go=i,i=r),i!==r)if((o=hn())!==r)if(n=Go,$o++,a=fn(),$o--,a===r?n=void 0:(Go=n,n=r),n!==r){if(a=Go,s=Go,l=[],p=Go,c=Go,$o++,u=qn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r?(e.length>Go?(u=e.charAt(Go),Go++):(u=r,0===$o&&Yo(st)),u!==r?p=c=[c,u]:(Go=p,p=r)):(Go=p,p=r),p!==r)for(;p!==r;)l.push(p),p=Go,c=Go,$o++,u=qn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r?(e.length>Go?(u=e.charAt(Go),Go++):(u=r,0===$o&&Yo(st)),u!==r?p=c=[c,u]:(Go=p,p=r)):(Go=p,p=r);else l=r;l!==r&&(p=Xn())!==r?s=l=[l,p]:(Go=s,s=r),(a=s!==r?e.substring(a,Go):s)!==r?t=jr(a):(Go=t,t=r)}else Go=t,t=r;else Go=t,t=r;else Go=t,t=r;return t}function hn(){var t,i,o;for(t=Go,i=[],9===e.charCodeAt(Go)?(o=L,Go++):(o=r,0===$o&&Yo(_t));o!==r;)i.push(o),9===e.charCodeAt(Go)?(o=L,Go++):(o=r,0===$o&&Yo(_t));return(o=(o=Gr(i))?void 0:r)!==r?t=i=[i,o]:(Go=t,t=r),t}function bn(){var t,i,o;if(t=Go,i=[],(o=vn())!==r)for(;o!==r;)i.push(o),o=vn();else i=r;return t=i!==r?e.substring(t,Go):i}function vn(){var t,i,o,n,a,s;if(t=Go,i=Go,$o++,o=en(),$o--,o===r?i=void 0:(Go=i,i=r),i!==r){if(o=Go,n=Go,a=[],(s=Yn())!==r)for(;s!==r;)a.push(s),s=Yn();else a=r;a!==r&&(s=Xn())!==r?n=a=[a,s]:(Go=n,n=r),(o=n!==r?e.substring(o,Go):n)!==r?t=i=[i,o]:(Go=t,t=r)}else Go=t,t=r;return t===r&&(t=qn()),t}function Bn(){var t,i,o,n,a,s;if(t=Go,(i=tn())!==r){for(o=Go,n=Go,a=[],s=e.charAt(Go),tt.test(s)?Go++:(s=r,0===$o&&Yo(ft));s!==r;)a.push(s),s=e.charAt(Go),tt.test(s)?Go++:(s=r,0===$o&&Yo(ft));(s=Xn())!==r?n=a=[a,s]:(Go=n,n=r),(o=n!==r?e.substring(o,Go):n)!==r?((n=qn())===r&&(n=null),t=i=[i,o,n]):(Go=t,t=r)}else Go=t,t=r;return t}function Cn(){var t,i;return t=Go,tn()!==r?(i=function(){var t;return e.substr(Go,5)===N?(t=N,Go+=5):(t=r,0===$o&&Yo(It)),t}(),i!==r?t=Hr(i):(Go=t,t=r)):(Go=t,t=r),t}function Pn(){var t,i,o,n,a,s,l,p,c,u;if(t=Go,(i=Cn())!==r)if(58===e.charCodeAt(Go)?(o=d,Go++):(o=r,0===$o&&Yo(ct)),o!==r)if(32===e.charCodeAt(Go)?(n=S,Go++):(n=r,0===$o&&Yo(Pt)),n===r&&(n=null),a=function(){var t,i,o,n,a,s,l,p,c;t=Go,i=Go,e.substr(Go,4)===Xe?(o=Xe,Go+=4):(o=r,0===$o&&Yo(ir));if(o!==r)if(115===e.charCodeAt(Go)?(n=Ze,Go++):(n=r,0===$o&&Yo(rr)),n===r&&(n=null),e.substr(Go,3)===Qe?(a=Qe,Go+=3):(a=r,0===$o&&Yo(or)),a!==r){for(s=[],l=Go,p=Go,$o++,c=tn(),$o--,c===r?p=void 0:(Go=p,p=r),p!==r&&(c=Zn())!==r?l=p=[p,c]:(Go=l,l=r);l!==r;)s.push(l),l=Go,p=Go,$o++,c=tn(),$o--,c===r?p=void 0:(Go=p,p=r),p!==r&&(c=Zn())!==r?l=p=[p,c]:(Go=l,l=r);i=o=[o,n,a,s]}else Go=i,i=r;else Go=i,i=r;t=i!==r?e.substring(t,Go):i;return t}(),a!==r)if(tn()!==r){for(s=function(){var e,t,i;e=Go,t=[],i=kn();for(;i!==r;)t.push(i),i=kn();return t=qr(t),e=t,e}(),l=Go,p=Go,c=[],u=e.charAt(Go),tt.test(u)?Go++:(u=r,0===$o&&Yo(ft));u!==r;)c.push(u),u=e.charAt(Go),tt.test(u)?Go++:(u=r,0===$o&&Yo(ft));(u=Xn())!==r?p=c=[c,u]:(Go=p,p=r),(l=p!==r?e.substring(l,Go):p)!==r?((p=qn())===r&&(p=null),t=Wr(i,a,s)):(Go=t,t=r)}else Go=t,t=r;else Go=t,t=r;else Go=t,t=r;else Go=t,t=r;return t}function kn(){var t,i,o,n,a,s,l,p,c,u;if(t=Go,35===e.charCodeAt(Go)?(i=R,Go++):(i=r,0===$o&&Yo(Lt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=Yr(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,64===e.charCodeAt(Go)?(i=E,Go++):(i=r,0===$o&&Yo(Nt)),i===r&&(i=null),(o=Sn())!==r)if(58===e.charCodeAt(Go)?(n=d,Go++):(n=r,0===$o&&Yo(ct)),n!==r){for(a=[],32===e.charCodeAt(Go)?(s=S,Go++):(s=r,0===$o&&Yo(Pt));s!==r;)a.push(s),32===e.charCodeAt(Go)?(s=S,Go++):(s=r,0===$o&&Yo(Pt));if(s=Go,l=[],p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r?(u=e.charAt(Go),it.test(u)?Go++:(u=r,0===$o&&Yo(Ct)),u!==r?p=c=[c,u]:(Go=p,p=r)):(Go=p,p=r),p!==r)for(;p!==r;)l.push(p),p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r?(u=e.charAt(Go),it.test(u)?Go++:(u=r,0===$o&&Yo(Ct)),u!==r?p=c=[c,u]:(Go=p,p=r)):(Go=p,p=r);else l=r;(s=l!==r?e.substring(s,Go):l)!==r&&(l=tn())!==r?t=Xr(o,s):(Go=t,t=r)}else Go=t,t=r;else Go=t,t=r;if(t===r){if(t=Go,64===e.charCodeAt(Go)?(i=E,Go++):(i=r,0===$o&&Yo(Nt)),i===r&&(i=null),(o=Sn())!==r)if(58===e.charCodeAt(Go)?(n=d,Go++):(n=r,0===$o&&Yo(ct)),n!==r){for(a=[],32===e.charCodeAt(Go)?(s=S,Go++):(s=r,0===$o&&Yo(Pt));s!==r;)a.push(s),32===e.charCodeAt(Go)?(s=S,Go++):(s=r,0===$o&&Yo(Pt));for(s=Go,l=[],p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r&&(u=Yn())!==r?p=c=[c,u]:(Go=p,p=r);p!==r;)l.push(p),p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r&&(u=Yn())!==r?p=c=[c,u]:(Go=p,p=r);s=e.substring(s,Go),(l=tn())!==r?t=Zr(o,s):(Go=t,t=r)}else Go=t,t=r;else Go=t,t=r;if(t===r){if(t=Go,64===e.charCodeAt(Go)?(i=E,Go++):(i=r,0===$o&&Yo(Nt)),i===r&&(i=null),(o=xn())!==r)if(58===e.charCodeAt(Go)?(n=d,Go++):(n=r,0===$o&&Yo(ct)),n!==r){for(a=[],32===e.charCodeAt(Go)?(s=S,Go++):(s=r,0===$o&&Yo(Pt));s!==r;)a.push(s),32===e.charCodeAt(Go)?(s=S,Go++):(s=r,0===$o&&Yo(Pt));s=function(){var t;e.substr(Go,4)===G?(t=G,Go+=4):(t=r,0===$o&&Yo(jt));t===r&&(e.substr(Go,6)===M?(t=M,Go+=6):(t=r,0===$o&&Yo(Gt)),t===r&&(e.substr(Go,5)===D?(t=D,Go+=5):(t=r,0===$o&&Yo(Mt))));return t}(),s!==r&&(l=tn())!==r?t=Qr(o,s):(Go=t,t=r)}else Go=t,t=r;else Go=t,t=r;if(t===r){for(t=Go,64===e.charCodeAt(Go)?(i=E,Go++):(i=r,0===$o&&Yo(Nt)),i===r&&(i=null),o=Go,n=[],a=Go,s=Go,$o++,l=e.charAt(Go),rt.test(l)?Go++:(l=r,0===$o&&Yo(Rt)),l===r&&(l=Go,(p=xn())!==r?(58===e.charCodeAt(Go)?(c=d,Go++):(c=r,0===$o&&Yo(ct)),c!==r?l=p=[p,c]:(Go=l,l=r)):(Go=l,l=r)),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=e.charAt(Go),rt.test(l)?Go++:(l=r,0===$o&&Yo(Rt)),l===r&&(l=Go,(p=xn())!==r?(58===e.charCodeAt(Go)?(c=d,Go++):(c=r,0===$o&&Yo(ct)),c!==r?l=p=[p,c]:(Go=l,l=r)):(Go=l,l=r)),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);if(o=e.substring(o,Go),58===e.charCodeAt(Go)?(n=d,Go++):(n=r,0===$o&&Yo(ct)),n!==r){for(32===e.charCodeAt(Go)?(a=S,Go++):(a=r,0===$o&&Yo(Pt)),a===r&&(a=null),s=Go,l=[],p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r&&(u=Yn())!==r?p=c=[c,u]:(Go=p,p=r);p!==r;)l.push(p),p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r&&(u=Yn())!==r?p=c=[c,u]:(Go=p,p=r);s=e.substring(s,Go),(l=tn())!==r?t=eo(o,s):(Go=t,t=r)}else Go=t,t=r;if(t===r){for(t=Go,64===e.charCodeAt(Go)?(i=E,Go++):(i=r,0===$o&&Yo(Nt)),i===r&&(i=null),o=Go,n=[],a=Go,s=Go,$o++,(l=tn())===r&&(l=Go,(p=xn())!==r?(58===e.charCodeAt(Go)?(c=d,Go++):(c=r,0===$o&&Yo(ct)),c!==r?l=p=[p,c]:(Go=l,l=r)):(Go=l,l=r)),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,(l=tn())===r&&(l=Go,(p=xn())!==r?(58===e.charCodeAt(Go)?(c=d,Go++):(c=r,0===$o&&Yo(ct)),c!==r?l=p=[p,c]:(Go=l,l=r)):(Go=l,l=r)),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=to(o):(Go=t,t=r)}}}}}return t}function Sn(){var t;return e.substr(Go,5)===O?(t=O,Go+=5):(t=r,0===$o&&Yo(Et)),t===r&&(e.substr(Go,6)===F?(t=F,Go+=6):(t=r,0===$o&&Yo(Ot))),t}function xn(){var t;return e.substr(Go,9)===V?(t=V,Go+=9):(t=r,0===$o&&Yo(Ft)),t===r&&(e.substr(Go,12)===j?(t=j,Go+=12):(t=r,0===$o&&Yo(Vt))),t}function Kn(){var e,t,i,o;for(e=Go,(t=wn())===r&&(t=null),i=[],(o=Ln())===r&&(o=wn());o!==r;)i.push(o),(o=Ln())===r&&(o=wn());return e=ro(t,i)}function wn(){var t,i,o,n,a,s,l;if(t=Go,(i=qn())!==r&&(i=oo()),(t=i)===r){if(t=Go,i=Go,o=[],n=Go,(a=Nn())===r&&(a=null),s=Go,$o++,l=Ln(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?n=a=[a,s,l]:(Go=n,n=r),n===r&&(n=Go,(a=Nn())!==r?(s=Go,$o++,l=Ln(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?n=a=[a,s]:(Go=n,n=r)):(Go=n,n=r)),n!==r)for(;n!==r;)o.push(n),n=Go,(a=Nn())===r&&(a=null),s=Go,$o++,l=Ln(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?n=a=[a,s,l]:(Go=n,n=r),n===r&&(n=Go,(a=Nn())!==r?(s=Go,$o++,l=Ln(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?n=a=[a,s]:(Go=n,n=r)):(Go=n,n=r));else o=r;(i=o!==r?e.substring(i,Go):o)!==r&&(i=no(i)),t=i}return t}function An(){var t;return 61===e.charCodeAt(Go)?(t=U,Go++):(t=r,0===$o&&Yo(Ut)),t}function _n(){var t;return e.substr(Go,2)===$?(t=$,Go+=2):(t=r,0===$o&&Yo($t)),t}function In(){var e,t,i;return e=Go,(t=An())!==r&&(i=An())!==r?e=t=[t,i]:(Go=e,e=r),e}function Ln(){var t,i,o,n,a,s,l,p,c,u;if(t=Go,(i=Jn())!==r){if(o=Go,n=[],a=e.charAt(Go),it.test(a)?Go++:(a=r,0===$o&&Yo(Ct)),a!==r)for(;a!==r;)n.push(a),a=e.charAt(Go),it.test(a)?Go++:(a=r,0===$o&&Yo(Ct));else n=r;(o=n!==r?e.substring(o,Go):n)!==r&&(n=zn())!==r?t=ao(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,(i=In())!==r){for(32===e.charCodeAt(Go)?(o=S,Go++):(o=r,0===$o&&Yo(Pt)),o===r&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=In())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);s!==r;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=In())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=S,Go++):(a=r,0===$o&&Yo(Pt)),a===r&&(a=null),(s=In())!==r?(l=function(){var t,i,o,n;t=Go,124===e.charCodeAt(Go)?(i=y,Go++):(i=r,0===$o&&Yo(pt));if(i!==r){if(o=[],(n=Rn())!==r)for(;n!==r;)o.push(n),n=Rn();else o=r;o!==r?t=yo(o):(Go=t,t=r)}else Go=t,t=r;return t}(),l!==r?t=so(n,l):(Go=t,t=r)):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,(i=Mn())!==r){for(32===e.charCodeAt(Go)?(o=S,Go++):(o=r,0===$o&&Yo(Pt)),o===r&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=Mn())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);s!==r;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=Mn())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=S,Go++):(a=r,0===$o&&Yo(Pt)),a===r&&(a=null),(s=Mn())!==r?t=lo(n):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,(i=Dn())!==r){for(32===e.charCodeAt(Go)?(o=S,Go++):(o=r,0===$o&&Yo(Pt)),o===r&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=Dn())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);s!==r;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=Dn())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=S,Go++):(a=r,0===$o&&Yo(Pt)),a===r&&(a=null),(s=Dn())!==r?t=po(n):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,(i=Un())!==r){for(32===e.charCodeAt(Go)?(o=S,Go++):(o=r,0===$o&&Yo(Pt)),o===r&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=Un())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);s!==r;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=Un())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=S,Go++):(a=r,0===$o&&Yo(Pt)),a===r&&(a=null),(s=Un())!==r?t=co(n):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,(i=$n())!==r){for(32===e.charCodeAt(Go)?(o=S,Go++):(o=r,0===$o&&Yo(Pt)),o===r&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=$n())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);s!==r;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(c=S,Go++):(c=r,0===$o&&Yo(Pt)),c===r&&(c=null),(u=$n())!==r?p=c=[c,u]:(Go=p,p=r),$o--,p===r?l=void 0:(Go=l,l=r),l!==r?(e.length>Go?(p=e.charAt(Go),Go++):(p=r,0===$o&&Yo(st)),p!==r?s=l=[l,p]:(Go=s,s=r)):(Go=s,s=r);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=S,Go++):(a=r,0===$o&&Yo(Pt)),a===r&&(a=null),(s=$n())!==r?t=uo(n):(Go=t,t=r)}else Go=t,t=r;t===r&&(t=Go,i=function(){var t,i,o,n,a,s,l;t=Go,i=Go,o=Go,e.substr(Go,4)===Xe?(n=Xe,Go+=4):(n=r,0===$o&&Yo(ir));n!==r?(115===e.charCodeAt(Go)?(a=Ze,Go++):(a=r,0===$o&&Yo(rr)),a===r&&(a=null),e.substr(Go,3)===Qe?(s=Qe,Go+=3):(s=r,0===$o&&Yo(or)),s!==r?o=n=[n,a,s]:(Go=o,o=r)):(Go=o,o=r);o===r&&(e.substr(Go,7)===et?(o=et,Go+=7):(o=r,0===$o&&Yo(nr)));i=o!==r?e.substring(i,Go):o;if(i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Zn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Zn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),t=jo(i,o)}else Go=t,t=r;return t}(),i!==r&&(i=go(i)),t=i)}}}}}return t}function Nn(){var t,i,o,n,a;if(t=Go,i=Go,(o=In())!==r){if(n=[],(a=An())!==r)for(;a!==r;)n.push(a),a=An();else n=r;n!==r?i=o=[o,n]:(Go=i,i=r)}else Go=i,i=r;if((t=i!==r?e.substring(t,Go):i)===r){if(t=Go,i=Go,o=function(){var e,t,i;return e=Go,(t=_n())!==r&&(i=_n())!==r?e=t=[t,i]:(Go=e,e=r),e}(),o!==r){if(n=[],(a=_n())!==r)for(;a!==r;)n.push(a),a=_n();else n=r;n!==r?i=o=[o,n]:(Go=i,i=r)}else Go=i,i=r;if((t=i!==r?e.substring(t,Go):i)===r){if(t=Go,i=Go,(o=Un())!==r){if(n=[],(a=jn())!==r)for(;a!==r;)n.push(a),a=jn();else n=r;n!==r?i=o=[o,n]:(Go=i,i=r)}else Go=i,i=r;if((t=i!==r?e.substring(t,Go):i)===r){if(t=Go,i=Go,(o=$n())!==r){if(n=[],(a=Gn())!==r)for(;a!==r;)n.push(a),a=Gn();else n=r;n!==r?i=o=[o,n]:(Go=i,i=r)}else Go=i,i=r;t=i!==r?e.substring(t,Go):i}}}return t}function Rn(){var t,i,o,n,a,s,l,p,c,u;if(t=Go,e.substr(Go,5)===J?(i=J,Go+=5):(i=r,0===$o&&Yo(Jt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=fo(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,e.substr(Go,5)===z?(i=z,Go+=5):(i=r,0===$o&&Yo(zt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);if(o=e.substring(o,Go),(n=tn())!==r)if(9658===e.charCodeAt(Go)?(a=H,Go++):(a=r,0===$o&&Yo(Ht)),a!==r){for(s=Go,l=[],p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r&&(u=Yn())!==r?p=c=[c,u]:(Go=p,p=r);p!==r;)l.push(p),p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r&&(u=Yn())!==r?p=c=[c,u]:(Go=p,p=r);s=e.substring(s,Go),(l=tn())!==r?t=mo(o,s):(Go=t,t=r)}else Go=t,t=r;else Go=t,t=r}else Go=t,t=r;if(t===r){if(t=Go,e.substr(Go,5)===z?(i=z,Go+=5):(i=r,0===$o&&Yo(zt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=To(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,9658===e.charCodeAt(Go)?(i=H,Go++):(i=r,0===$o&&Yo(Ht)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=ho(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,e.substr(Go,9)===W?(i=W,Go+=9):(i=r,0===$o&&Yo(Wt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=bo(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,e.substr(Go,10)===q?(i=q,Go+=10):(i=r,0===$o&&Yo(qt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=vo(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,e.substr(Go,4)===Y?(i=Y,Go+=4):(i=r,0===$o&&Yo(Yt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=Bo(o):(Go=t,t=r)}else Go=t,t=r;if(t===r&&(t=Go,e.substr(Go,4)===h?(i=h,Go+=4):(i=r,0===$o&&Yo(dt)),i!==r&&(o=tn())!==r?t=Co():(Go=t,t=r),t===r)){if(t=Go,e.substr(Go,5)===X?(i=X,Go+=5):(i=r,0===$o&&Yo(Xt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=Po(o):(Go=t,t=r)}else Go=t,t=r;if(t===r&&(t=Go,e.substr(Go,5)===Z?(i=Z,Go+=5):(i=r,0===$o&&Yo(Zt)),i!==r&&(o=tn())!==r?t=ko():(Go=t,t=r),t===r)){if(t=Go,e.substr(Go,6)===Q?(i=Q,Go+=6):(i=r,0===$o&&Yo(Qt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=So(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,e.substr(Go,9)===ee?(i=ee,Go+=9):(i=r,0===$o&&Yo(ei)),i!==r){if(o=Go,n=Go,80===e.charCodeAt(Go)?(a=te,Go++):(a=r,0===$o&&Yo(ti)),a!==r){for(s=Go,l=[],p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r&&(u=Yn())!==r?p=c=[c,u]:(Go=p,p=r);p!==r;)l.push(p),p=Go,c=Go,$o++,u=tn(),$o--,u===r?c=void 0:(Go=c,c=r),c!==r&&(u=Yn())!==r?p=c=[c,u]:(Go=p,p=r);n=a=[a,s=e.substring(s,Go)]}else Go=n,n=r;(o=n!==r?e.substring(o,Go):n)!==r&&(n=tn())!==r?t=xo(o):(Go=t,t=r)}else Go=t,t=r;if(t===r&&(t=Go,e.substr(Go,6)===ie?(i=ie,Go+=6):(i=r,0===$o&&Yo(ii)),i!==r?(o=function(){var t;e.substr(Go,4)===Be?(t=Be,Go+=4):(t=r,0===$o&&Yo(Bi));t===r&&(e.substr(Go,5)===Ce?(t=Ce,Go+=5):(t=r,0===$o&&Yo(Ci)),t===r&&(e.substr(Go,4)===Pe?(t=Pe,Go+=4):(t=r,0===$o&&Yo(Pi)),t===r&&(e.substr(Go,4)===ke?(t=ke,Go+=4):(t=r,0===$o&&Yo(ki)),t===r&&(e.substr(Go,7)===Se?(t=Se,Go+=7):(t=r,0===$o&&Yo(Si)),t===r&&(e.substr(Go,9)===xe?(t=xe,Go+=9):(t=r,0===$o&&Yo(xi)),t===r&&(e.substr(Go,4)===Ke?(t=Ke,Go+=4):(t=r,0===$o&&Yo(Ki)),t===r&&(e.substr(Go,8)===we?(t=we,Go+=8):(t=r,0===$o&&Yo(wi)),t===r&&(e.substr(Go,5)===Ae?(t=Ae,Go+=5):(t=r,0===$o&&Yo(Ai)),t===r&&(e.substr(Go,4)===_e?(t=_e,Go+=4):(t=r,0===$o&&Yo(_i)),t===r&&(e.substr(Go,7)===Ie?(t=Ie,Go+=7):(t=r,0===$o&&Yo(Ii)),t===r&&(e.substr(Go,6)===Le?(t=Le,Go+=6):(t=r,0===$o&&Yo(Li)),t===r&&(e.substr(Go,4)===Ne?(t=Ne,Go+=4):(t=r,0===$o&&Yo(Ni)),t===r&&(e.substr(Go,5)===Re?(t=Re,Go+=5):(t=r,0===$o&&Yo(Ri)),t===r&&(e.substr(Go,6)===Ee?(t=Ee,Go+=6):(t=r,0===$o&&Yo(Ei)),t===r&&(e.substr(Go,6)===Oe?(t=Oe,Go+=6):(t=r,0===$o&&Yo(Oi)),t===r&&(e.substr(Go,3)===Fe?(t=Fe,Go+=3):(t=r,0===$o&&Yo(Fi)),t===r&&(e.substr(Go,6)===Ve?(t=Ve,Go+=6):(t=r,0===$o&&Yo(Vi)),t===r&&(e.substr(Go,4)===je?(t=je,Go+=4):(t=r,0===$o&&Yo(ji)),t===r&&(e.substr(Go,6)===Ge?(t=Ge,Go+=6):(t=r,0===$o&&Yo(Gi)),t===r&&(e.substr(Go,5)===Me?(t=Me,Go+=5):(t=r,0===$o&&Yo(Mi)),t===r&&(e.substr(Go,6)===De?(t=De,Go+=6):(t=r,0===$o&&Yo(Di)))))))))))))))))))))));return t}(),o!==r&&(n=tn())!==r?t=Ko(o):(Go=t,t=r)):(Go=t,t=r),t===r&&(t=Go,i=function(){var t;e.substr(Go,4)===re?(t=re,Go+=4):(t=r,0===$o&&Yo(ri));t===r&&(e.substr(Go,6)===oe?(t=oe,Go+=6):(t=r,0===$o&&Yo(oi)),t===r&&(e.substr(Go,5)===ne?(t=ne,Go+=5):(t=r,0===$o&&Yo(ni)),t===r&&(e.substr(Go,9)===ae?(t=ae,Go+=9):(t=r,0===$o&&Yo(ai)),t===r&&(e.substr(Go,6)===se?(t=se,Go+=6):(t=r,0===$o&&Yo(si)),t===r&&(e.substr(Go,9)===le?(t=le,Go+=9):(t=r,0===$o&&Yo(li)),t===r&&(e.substr(Go,11)===pe?(t=pe,Go+=11):(t=r,0===$o&&Yo(pi)),t===r&&(e.substr(Go,3)===ce?(t=ce,Go+=3):(t=r,0===$o&&Yo(ci)),t===r&&(e.substr(Go,3)===ue?(t=ue,Go+=3):(t=r,0===$o&&Yo(ui)),t===r&&(e.substr(Go,9)===ge?(t=ge,Go+=9):(t=r,0===$o&&Yo(gi)),t===r&&(e.substr(Go,15)===ye?(t=ye,Go+=15):(t=r,0===$o&&Yo(yi)),t===r&&(e.substr(Go,6)===de?(t=de,Go+=6):(t=r,0===$o&&Yo(di)),t===r&&(e.substr(Go,10)===fe?(t=fe,Go+=10):(t=r,0===$o&&Yo(fi)),t===r&&(e.substr(Go,13)===me?(t=me,Go+=13):(t=r,0===$o&&Yo(mi)),t===r&&(e.substr(Go,19)===Te?(t=Te,Go+=19):(t=r,0===$o&&Yo(Ti)),t===r&&(e.substr(Go,10)===he?(t=he,Go+=10):(t=r,0===$o&&Yo(hi)),t===r&&(e.substr(Go,10)===be?(t=be,Go+=10):(t=r,0===$o&&Yo(bi)),t===r&&(e.substr(Go,13)===ve?(t=ve,Go+=13):(t=r,0===$o&&Yo(vi)))))))))))))))))));return t}(),i!==r&&(o=tn())!==r?t=wo(i):(Go=t,t=r),t===r)))if(t=Go,35===e.charCodeAt(Go)?(i=R,Go++):(i=r,0===$o&&Yo(Lt)),i!==r){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?a=s=[s,l]:(Go=a,a=r);o=e.substring(o,Go),(n=tn())!==r?t=Ao(o):(Go=t,t=r)}else Go=t,t=r}}}}}}}}}return t}function En(){var e,t,i,o;for($o++,e=Go,(t=On())===r&&(t=null),i=[],(o=Hn())===r&&(o=On());o!==r;)i.push(o),(o=Hn())===r&&(o=On());return e=Io(t,i),$o--,t=r,0===$o&&Yo($i),e}function On(){var t,i,o,n,a,s,l;if(t=Go,(i=qn())!==r&&(i=Lo(i)),(t=i)===r){if(t=Go,i=Go,o=[],n=Go,(a=Wn())===r&&(a=null),s=Go,$o++,l=Hn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?n=a=[a,s,l]:(Go=n,n=r),n===r&&(n=Go,(a=Wn())!==r?(s=Go,$o++,l=Hn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?n=a=[a,s]:(Go=n,n=r)):(Go=n,n=r)),n!==r)for(;n!==r;)o.push(n),n=Go,(a=Wn())===r&&(a=null),s=Go,$o++,l=Hn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r&&(l=Yn())!==r?n=a=[a,s,l]:(Go=n,n=r),n===r&&(n=Go,(a=Wn())!==r?(s=Go,$o++,l=Hn(),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?n=a=[a,s]:(Go=n,n=r)):(Go=n,n=r));else o=r;(i=o!==r?e.substring(i,Go):o)!==r&&(i=No(i)),t=i}return t}function Fn(){var t;return 42===e.charCodeAt(Go)?(t=Ue,Go++):(t=r,0===$o&&Yo(Ji)),t}function Vn(){var t;return 95===e.charCodeAt(Go)?(t=$e,Go++):(t=r,0===$o&&Yo(zi)),t}function jn(){var t;return 96===e.charCodeAt(Go)?(t=Je,Go++):(t=r,0===$o&&Yo(Hi)),t}function Gn(){var t;return 33===e.charCodeAt(Go)?(t=ze,Go++):(t=r,0===$o&&Yo(Wi)),t}function Mn(){var e,t,i;return e=Go,(t=Fn())!==r&&(i=Fn())!==r?e=t=[t,i]:(Go=e,e=r),e}function Dn(){var e,t,i;return e=Go,(t=Vn())!==r&&(i=Vn())!==r?e=t=[t,i]:(Go=e,e=r),e}function Un(){var e,t,i;return e=Go,(t=jn())!==r&&(i=jn())!==r?e=t=[t,i]:(Go=e,e=r),e}function $n(){var e,t,i;return e=Go,(t=Gn())!==r&&(i=Gn())!==r?e=t=[t,i]:(Go=e,e=r),e}function Jn(){var t;return e.substr(Go,2)===He?(t=He,Go+=2):(t=r,0===$o&&Yo(qi)),t}function zn(){var t;return 93===e.charCodeAt(Go)?(t=We,Go++):(t=r,0===$o&&Yo(Yi)),t}function Hn(){var t,i,o,n,a,s,l,p,c;if(t=Go,Jn()!==r){if(i=Go,o=[],n=e.charAt(Go),it.test(n)?Go++:(n=r,0===$o&&Yo(Ct)),n!==r)for(;n!==r;)o.push(n),n=e.charAt(Go),it.test(n)?Go++:(n=r,0===$o&&Yo(Ct));else o=r;(i=o!==r?e.substring(i,Go):o)!==r&&(o=zn())!==r?t=Ro(i):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,Mn()!==r){for(32===e.charCodeAt(Go)?(i=S,Go++):(i=r,0===$o&&Yo(Pt)),i===r&&(i=null),o=Go,n=[],a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=S,Go++):(p=r,0===$o&&Yo(Pt)),p===r&&(p=null),(c=Mn())!==r?l=p=[p,c]:(Go=l,l=r),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?(e.length>Go?(l=e.charAt(Go),Go++):(l=r,0===$o&&Yo(st)),l!==r?a=s=[s,l]:(Go=a,a=r)):(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=S,Go++):(p=r,0===$o&&Yo(Pt)),p===r&&(p=null),(c=Mn())!==r?l=p=[p,c]:(Go=l,l=r),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?(e.length>Go?(l=e.charAt(Go),Go++):(l=r,0===$o&&Yo(st)),l!==r?a=s=[s,l]:(Go=a,a=r)):(Go=a,a=r);o=e.substring(o,Go),32===e.charCodeAt(Go)?(n=S,Go++):(n=r,0===$o&&Yo(Pt)),n===r&&(n=null),(a=Mn())!==r?t=Eo(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,Dn()!==r){for(32===e.charCodeAt(Go)?(i=S,Go++):(i=r,0===$o&&Yo(Pt)),i===r&&(i=null),o=Go,n=[],a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=S,Go++):(p=r,0===$o&&Yo(Pt)),p===r&&(p=null),(c=Dn())!==r?l=p=[p,c]:(Go=l,l=r),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?(e.length>Go?(l=e.charAt(Go),Go++):(l=r,0===$o&&Yo(st)),l!==r?a=s=[s,l]:(Go=a,a=r)):(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=S,Go++):(p=r,0===$o&&Yo(Pt)),p===r&&(p=null),(c=Dn())!==r?l=p=[p,c]:(Go=l,l=r),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?(e.length>Go?(l=e.charAt(Go),Go++):(l=r,0===$o&&Yo(st)),l!==r?a=s=[s,l]:(Go=a,a=r)):(Go=a,a=r);o=e.substring(o,Go),32===e.charCodeAt(Go)?(n=S,Go++):(n=r,0===$o&&Yo(Pt)),n===r&&(n=null),(a=Dn())!==r?t=Oo(o):(Go=t,t=r)}else Go=t,t=r;if(t===r){if(t=Go,Un()!==r){for(32===e.charCodeAt(Go)?(i=S,Go++):(i=r,0===$o&&Yo(Pt)),i===r&&(i=null),o=Go,n=[],a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=S,Go++):(p=r,0===$o&&Yo(Pt)),p===r&&(p=null),(c=Un())!==r?l=p=[p,c]:(Go=l,l=r),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?(e.length>Go?(l=e.charAt(Go),Go++):(l=r,0===$o&&Yo(st)),l!==r?a=s=[s,l]:(Go=a,a=r)):(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=S,Go++):(p=r,0===$o&&Yo(Pt)),p===r&&(p=null),(c=Un())!==r?l=p=[p,c]:(Go=l,l=r),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?(e.length>Go?(l=e.charAt(Go),Go++):(l=r,0===$o&&Yo(st)),l!==r?a=s=[s,l]:(Go=a,a=r)):(Go=a,a=r);o=e.substring(o,Go),32===e.charCodeAt(Go)?(n=S,Go++):(n=r,0===$o&&Yo(Pt)),n===r&&(n=null),(a=Un())!==r?t=Fo(o):(Go=t,t=r)}else Go=t,t=r;if(t===r)if(t=Go,$n()!==r){for(32===e.charCodeAt(Go)?(i=S,Go++):(i=r,0===$o&&Yo(Pt)),i===r&&(i=null),o=Go,n=[],a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=S,Go++):(p=r,0===$o&&Yo(Pt)),p===r&&(p=null),(c=$n())!==r?l=p=[p,c]:(Go=l,l=r),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?(e.length>Go?(l=e.charAt(Go),Go++):(l=r,0===$o&&Yo(st)),l!==r?a=s=[s,l]:(Go=a,a=r)):(Go=a,a=r);a!==r;)n.push(a),a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=S,Go++):(p=r,0===$o&&Yo(Pt)),p===r&&(p=null),(c=$n())!==r?l=p=[p,c]:(Go=l,l=r),$o--,l===r?s=void 0:(Go=s,s=r),s!==r?(e.length>Go?(l=e.charAt(Go),Go++):(l=r,0===$o&&Yo(st)),l!==r?a=s=[s,l]:(Go=a,a=r)):(Go=a,a=r);o=e.substring(o,Go),32===e.charCodeAt(Go)?(n=S,Go++):(n=r,0===$o&&Yo(Pt)),n===r&&(n=null),(a=$n())!==r?t=Vo(o):(Go=t,t=r)}else Go=t,t=r}}}return t}function Wn(){var t,i,o,n,a;if(t=Go,i=Go,(o=Un())!==r){if(n=[],(a=jn())!==r)for(;a!==r;)n.push(a),a=jn();else n=r;n!==r?i=o=[o,n]:(Go=i,i=r)}else Go=i,i=r;if((t=i!==r?e.substring(t,Go):i)===r){if(t=Go,i=Go,(o=$n())!==r){if(n=[],(a=Gn())!==r)for(;a!==r;)n.push(a),a=Gn();else n=r;n!==r?i=o=[o,n]:(Go=i,i=r)}else Go=i,i=r;t=i!==r?e.substring(t,Go):i}return t}function qn(){var t;return $o++,10===e.charCodeAt(Go)?(t=qe,Go++):(t=r,0===$o&&Yo(Zi)),t===r&&(e.substr(Go,2)===Ye?(t=Ye,Go+=2):(t=r,0===$o&&Yo(Qi)),t===r&&(t=e.charAt(Go),ot.test(t)?Go++:(t=r,0===$o&&Yo(er)))),$o--,t===r&&(0===$o&&Yo(Xi)),t}function Yn(){var t;return t=e.charAt(Go),nt.test(t)?Go++:(t=r,0===$o&&Yo(tr)),t}function Xn(){var t,i;return(t=qn())===r&&(t=Go,$o++,e.length>Go?(i=e.charAt(Go),Go++):(i=r,0===$o&&Yo(st)),$o--,i===r?t=void 0:(Go=t,t=r)),t}function Zn(){var t;return t=e.charAt(Go),at.test(t)?Go++:(t=r,0===$o&&Yo(ar)),t}var Qn=[],ea="";if(e=e.trimStart(),i=g(),t.peg$library)return{peg$result:i,peg$currPos:Go,peg$FAILED:r,peg$maxFailExpected:Uo,peg$maxFailPos:Do};if(i!==r&&Go===e.length)return i;throw i!==r&&Go<e.length&&Yo({type:"end"}),Xo(Uo,Do<e.length?e.charAt(Do):null,Do<e.length?qo(Do,Do+1):qo(Do,Do))}!function(e,t){function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i}(p,Error),p.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var i,r=null;for(i=0;i<e.length;i++)if(e[i].source===this.location.source){r=e[i].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,n=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+n.line+":"+n.column;if(r){var s=this.location.end,l=c("",n.line.toString().length," "),p=r[o.line-1],u=(o.line===s.line?s.column:p.length+1)-o.column||1;t+="\n --\x3e "+a+"\n"+l+" |\n"+n.line+" | "+p+"\n"+l+" | "+c("",o.column-1," ")+c("",u,"^")}else t+="\n at "+a}return t},p.buildMessage=function(e,t){var i={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?n(e[0])+"-"+n(e[1]):n(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function n(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){return i[e.type](e)}return"Expected "+function(e){var t,i,r=e.map(a);if(r.sort(),r.length>0){for(t=1,i=1;t<r.length;t++)r[t-1]!==r[t]&&(r[i]=r[t],i++);r.length=i}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."};t.StartRules=["version","bitmarkPlusPlus","bitmarkPlus","bitmarkMinusMinus","bitmarkPlusString","bitmarkMinusMinusString"]},4:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AstWalkerGenerator=void 0;const r=i(5126);t.AstWalkerGenerator=class{constructor(){this.ast=new r.Ast,this.debugGenerationInline=!1,this.printed=!1}enter(e,t,i){let r;const o=this,n=`enter_${e.key}`;return this.printed||(this.printed=!0),this.debugGenerationInline&&this.writeInlineDebug(e.key,{open:!0}),"function"==typeof o[n]&&(r=o[n](e,t,i)),r}between(e,t,i,r,o){let n;const a=this,s=`between_${e.key}`;return this.debugGenerationInline&&this.writeInlineDebug(e.key,{single:!0}),"function"==typeof a[s]&&(n=a[s](e,t,i,r,o)),n}exit(e,t,i){const r=this,o=`exit_${e.key}`;this.debugGenerationInline&&this.writeInlineDebug(e.key,{close:!0}),"function"==typeof r[o]&&r[o](e,t,i)}leaf(e,t,i){const r=this,o=`leaf_${e.key}`;this.debugGenerationInline&&this.writeInlineDebug(e.key,{open:!0}),"function"==typeof r[o]&&r[o](e,t,i),this.debugGenerationInline&&this.writeInlineDebug(e.key,{close:!0})}getParentNode(e,t=1){if(e.length>t+1)return e[e.length-t-1]}}},5087:function(e,t,i){var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkGenerator=void 0;const o=i(5126),n=i(2028),a=i(126),s=i(5854),l=i(3811),p=i(4410),c=i(1163),u=i(7203),g=i(166),y=i(6149),d=i(385),f=i(4078),m=i(955),T=i(4),h={debugGenerationInline:!1};class b extends T.AstWalkerGenerator{constructor(e,t){var i,r;super(),this.ast=new o.Ast,this.skipNLBetweenBitsValue=!1,this.wroteSomething=!1,this.bitmarkVersion=null!==(i=l.BitmarkVersion.fromValue(null==t?void 0:t.bitmarkVersion))&&void 0!==i?i:l.DEFAULT_BITMARK_VERSION,this.options=Object.assign(Object.assign({},h),null==t?void 0:t.bitmarkOptions),this.debugGenerationInline=null!==(r=this.options.debugGenerationInline)&&void 0!==r&&r,this.bitmarkVersion===l.BitmarkVersion.v2?void 0===this.options.cardSetVersion&&(this.options.cardSetVersion=c.CardSetVersion.v1):void 0===this.options.cardSetVersion&&(this.options.cardSetVersion=c.CardSetVersion.v2),this.prettifySpace=!0===this.options.prettifyJson?2:this.options.prettifyJson||void 0,this.writer=e,this.enter=this.enter.bind(this),this.between=this.between.bind(this),this.exit=this.exit.bind(this),this.leaf=this.leaf.bind(this),this.generatePropertyHandlers()}generate(e){return r(this,void 0,void 0,(function*(){this.resetState(),yield this.writer.open(),this.walkAndWrite(e),this.writeLine(),yield this.writer.close()}))}generateSync(e){this.resetState(),this.writer.openSync(),this.walkAndWrite(e),this.writer.closeSync()}resetState(){this.skipNLBetweenBitsValue=!1,this.wroteSomething=!1,this.printed=!1}walkAndWrite(e){this.ast.walk(e,a.NodeType.bitmarkAst,this,void 0),this.writeLine()}between_bits(e,t,i,r){this.writeNL(),this.writeNL(),this.writeNL()}enter_bitsValue(e,t){const i=e.value,r=n.Config.getBitConfig(i.bitType),o=n.Config.getBitResourcesConfig(i.bitType,i.resourceType);if(this.writeOPD(i.bitLevel),i.isCommented&&this.writeString("|"),this.writeString(i.bitType),i.textFormat){this.isWriteTextFormat(i.textFormat,r.textFormatDefault)&&(this.writeColon(),this.writeString(i.textFormat))}let a;if(r.resourceAttachmentAllowed&&i.resources&&i.resources.length>0){const e=o.comboResourceTagTypesMap;if(o.comboResourceTagTypesMap.size>0)for(const t of e.keys())a=t;else a=i.resources[0].type}a&&(this.writeAmpersand(),this.writeString(a)),this.writeCL(),this.writeNL()}between_bitsValue(e,t,i,r){const o=[a.NodeType.bitType,a.NodeType.textFormat,a.NodeType.level,a.NodeType.progress,a.NodeType.toc,a.NodeType.referenceEnd,a.NodeType.labelFalse];this.writeNlBetween(e,t,i,r,o)}enter_internalComment(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)===a.NodeType.bitsValue)for(let e=0;e<i.length;e++){const t=i[e],r=e===i.length-1;this.writeProperty("internalComment",t),r||this.writeNL()}}enter_labelTrue(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==a.NodeType.bitsValue)return;const o=null==r?void 0:r.value;o&&(""!=i&&this.writeProperty(g.PropertyTag.labelTrue,i,!0),o.labelFalse&&""!=o.labelFalse[0]&&this.writeProperty(g.PropertyTag.labelFalse,o.labelFalse,!0))}enter_imageSource(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==a.NodeType.bitsValue)return;const{url:o,mockupId:n,size:s,format:l,trim:p}=i;this.writeProperty("imageSource",o,!0),o&&(n&&this.writeProperty("mockupId",n,!0),s&&this.writeProperty("size",s,!0),l&&this.writeProperty("format",l,!0),f.BooleanUtils.isBoolean(p)&&this.writeProperty("trim",p,!0))}enter_technicalTerm(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==a.NodeType.bitsValue)return;const{technicalTerm:o,lang:n}=i;this.writeProperty("technicalTerm",o,!0),null!=n&&this.writeProperty("lang",n)}enter_servings(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==a.NodeType.bitsValue)return;const{servings:o,unit:n,unitAbbr:s,decimalPlaces:l,disableCalculation:p}=i;this.writeProperty("servings",o,!0),null!=n&&this.writeProperty("unit",n),null!=s&&this.writeProperty("unitAbbr",s),null!=l&&this.writeProperty("decimalPlaces",l),null!=p&&this.writeProperty("disableCalculation",p)}enter_person(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==a.NodeType.bitsValue)return;const{name:o,title:n,avatarImage:s}=i;this.writeProperty("person",o,!0),n&&this.writeProperty("title",n,!0),s&&this.writeResource(s)}enter_ratingLevelStart(e,t){return this.enterRatingLevelStartEndCommon(e,t),!1}enter_ratingLevelEnd(e,t){return this.enterRatingLevelStartEndCommon(e,t),!1}enterRatingLevelStartEndCommon(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==a.NodeType.bitsValue)return;const{level:o,label:n}=i,s=e.key===a.NodeType.ratingLevelStart?g.PropertyTag.ratingLevelStart:g.PropertyTag.ratingLevelEnd;this.writeProperty(s,o,!0),n&&this.writeProperty("label",n,!0)}enter_markConfigValue(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==a.NodeType.markConfig)return;const{mark:o,color:n,emphasis:s}=i;o&&(this.writeProperty("mark",o,!0),n&&this.writeProperty("color",n,!0),s&&this.writeProperty("emphasis",s,!0),this.writeNL())}leaf_partialAnswer(e,t){this.writeProperty("partialAnswer",e.value)}leaf_sampleSolution(e,t){this.writeProperty("sampleSolution",e.value)}leaf_reasonableNumOfChars(e,t){this.writeProperty("reasonableNumOfChars",e.value)}between_additionalSolutions(e,t,i,r){const o=this.getParentNode(r);(null==o?void 0:o.key)===a.NodeType.questionsValue&&this.writeNL()}leaf_additionalSolutionsValue(e,t){const i=this.getParentNode(t,2);(null==i?void 0:i.key)===a.NodeType.questionsValue&&this.writeProperty("additionalSolutions",e.value)}enter_itemLead(e,t){const i=e.value;i&&(i.item||i.lead||i.pageNumber||i.marginNumber)&&(this.writeOPC(),this.writeString(i.item||""),this.writeCL(),(i.lead||i.pageNumber||i.marginNumber)&&(this.writeOPC(),this.writeString(i.lead||""),this.writeCL()),(i.pageNumber||i.marginNumber)&&(this.writeOPC(),this.writeString(i.pageNumber||""),this.writeCL()),i.marginNumber&&(this.writeOPC(),this.writeString(i.marginNumber||""),this.writeCL()))}enter_body(e,t){const i=e.value;if(i.bodyParts&&i.bodyParts.length>0||i.bodyJson){this.writeNL();const e=this.getTextFormat(t);e===d.TextFormat.bitmarkPlusPlus||e===d.TextFormat.bitmarkMinusMinus||(this.writePlainTextDivider(),this.writeNL())}}enter_solutions(e,t){const i=e.value;i&&0===i.length&&(this.writeOPU(),this.writeCL())}leaf_solution(e,t){var i;const r=e.value,o=null===(i=this.getParentNode(t,2))||void 0===i?void 0:i.value;(null==o?void 0:o.type)===p.BodyBitType.mark&&r&&(this.writeOPE(),this.writeString(r),this.writeCL())}leaf_mark(e,t){var i;const r=e.value,o=null===(i=this.getParentNode(t,2))||void 0===i?void 0:i.value;(null==o?void 0:o.type)===p.BodyBitType.mark&&r&&this.writeProperty("mark",r,!0)}enter_optionsValue(e,t){const i=e.value;i.isCorrect?this.writeOPP():this.writeOPM(),this.write(i.text),this.writeCL()}enter_textsValue(e,t){const i=e.value;i.isCorrect?this.writeOPP():this.writeOPM(),this.write(i.text),this.writeCL()}enter_cardNode(e,t){this.isOfBitType1(t)||(this.writeCardSetStart(),this.writeNL())}between_cardNode(e,t,i,r){this.isOfBitType1(r)||(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}exit_cardNode(e,t){this.isOfBitType1(t)||(this.writeNL(),this.writeCardSetEnd(),this.options.cardSetVersion===c.CardSetVersion.v1&&this.writeNL())}enter_elements(e,t){}between_elements(e,t,i,r){this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()}exit_elements(e,t){}between_flashcards(e,t,i,r){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}between_flashcardsValue(e,t,i,r){i.key===a.NodeType.answer?(this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()):i.key===a.NodeType.alternativeAnswers&&(this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL())}leaf_answer(e,t){const i=this.getParentNode(t);(null==i?void 0:i.key)===a.NodeType.flashcardsValue&&e.value&&this.writeString(e.value)}between_alternativeAnswers(e,t){this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()}leaf_alternativeAnswersValue(e,t){const i=this.getParentNode(t);(null==i?void 0:i.key)===a.NodeType.alternativeAnswers&&e.value&&this.writeString(e.value)}between_alternativeDefinitions(e,t){this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()}leaf_alternativeDefinitionsValue(e,t){const i=this.getParentNode(t);(null==i?void 0:i.key)===a.NodeType.alternativeDefinitions&&e.value&&this.writeString(e.value)}enter_statements(e,t){}between_statements(e,t,i,r){this.isOfBitType(r,s.BitType.trueFalse1)||(this.writeNL(),this.writeCardSetCardDivider()),this.writeNL()}exit_statements(e,t){}enter_statementsValue(e,t){const i=e.value;i.isCorrect?this.writeOPP():this.writeOPM(),this.write(i.text),this.writeCL()}between_choices(e,t,i,r){this.writeNL()}exit_choices(e,t){this.writeNL()}enter_choicesValue(e,t){const i=e.value;i.isCorrect?this.writeOPP():this.writeOPM(),this.write(i.text),this.writeCL()}between_responses(e,t,i,r){this.writeNL()}exit_responses(e,t){this.writeNL()}enter_responsesValue(e,t){const i=e.value;i.isCorrect?this.writeOPP():this.writeOPM(),this.write(i.text),this.writeCL()}enter_quizzes(e,t){}between_quizzes(e,t,i,r){this.writeCardSetCardDivider(),this.writeNL()}exit_quizzes(e,t){}between_quizzesValue(e,t,i,r){i.key!==a.NodeType.choices&&i.key!==a.NodeType.responses||this.writeNL()}enter_heading(e,t){}between_heading(e,t,i,r){this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()}exit_heading(e,t){}enter_forValues(e,t){}between_forValues(e,t,i,r){this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()}exit_forValues(e,t){}enter_pairs(e,t){}between_pairs(e,t,i,r){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}exit_pairs(e,t){}between_pairsValue(e,t,i,r){}enter_keyAudio(e,t){const i=e.value;this.writeResource(i)}enter_keyImage(e,t){const i=e.value;this.writeResource(i)}enter_matrix(e,t){}between_matrix(e,t,i,r){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}exit_matrix(e,t){}between_matrixValue(e,t,i,r){}enter_values(e,t){this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()}between_values(e,t,i,r){this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()}between_table(e,t,i,r){const o=this.getParentNode(r);(null==o?void 0:o.key)===a.NodeType.cardNode&&(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}between_rows(e,t,i,r){const o=this.getParentNode(r);(null==o?void 0:o.key)===a.NodeType.table&&(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}between_columns(e,t,i,r){const o=this.getParentNode(r),n=null==o?void 0:o.key;n!==a.NodeType.table&&n!==a.NodeType.captionDefinitionList||(this.writeNL(),this.writeCardSetSideDivider(),this.writeNL())}leaf_columnsValue(e,t){this.writeOPHASH(),e.value&&this.writeString(e.value),this.writeCL()}between_rowsValue(e,t,i,r){const o=this.getParentNode(r);(null==o?void 0:o.key)===a.NodeType.rows&&(this.writeNL(),this.writeCardSetSideDivider(),this.writeNL())}leaf_rowsValueValue(e,t){e.value&&this.write(e.value)}between_captionDefinitionList(e,t,i,r){const o=this.getParentNode(r);(null==o?void 0:o.key)===a.NodeType.cardNode&&(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}leaf_term(e,t){const i=this.getParentNode(t);(null==i?void 0:i.key)===a.NodeType.definitionsValue&&e.value&&this.write(e.value)}leaf_description(e,t){const i=this.getParentNode(t);(null==i?void 0:i.key)===a.NodeType.definitionsValue&&e.value&&this.write(e.value)}between_definitions(e,t,i,r){const o=this.getParentNode(r);(null==o?void 0:o.key)!==a.NodeType.cardNode&&(null==o?void 0:o.key)!==a.NodeType.captionDefinitionList||(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}between_definitionsValue(e,t,i,r){const o=this.getParentNode(r);(null==o?void 0:o.key)===a.NodeType.definitions&&(i.key===a.NodeType.description?(this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()):i.key===a.NodeType.alternativeDefinitions&&(this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()))}enter_questions(e,t){}between_questions(e,t,i,r){this.writeCardSetCardDivider(),this.writeNL()}exit_questions(e,t){}between_questionsValue(e,t,i,r){this.writeNlBetween(e,t,i,r,[])}exit_questionsValue(e,t){this.writeNL()}enter_ingredients(e,t){}between_ingredients(e,t,i,r){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}exit_ingredients(e,t){}enter_ingredientsValue(e,t){const i=e.value;null!=i.title&&(this.writeOPHASH(),this.writeString(i.title),this.writeCL(),this.writeNL()),i.checked?this.writeOPP():this.writeOPM(),this.writeCL(),null!=i.quantity&&(this.writeOPB(),this.writeString(`${i.quantity}`),this.writeCL()),null!=i.unit&&this.writeProperty("unit",i.unit,!0),null!=i.unitAbbr&&this.writeProperty("unitAbbr",i.unitAbbr,!0),null!=i.decimalPlaces&&this.writeProperty("decimalPlaces",i.decimalPlaces,!0),i.disableCalculation&&this.writeProperty("disableCalculation",!0,!0),null!=i.item&&this.write(i.item)}enter_botResponses(e,t){}between_botResponses(e,t,i,r){this.writeCardSetCardDivider(),this.writeNL()}exit_botResponses(e,t){}between_botResponsesValue(e,t,i,r){this.writeNL()}exit_botResponsesValue(e,t){this.writeNL()}enter_cardBits(e,t){}between_cardBits(e,t,i,r){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}exit_cardBits(e,t){}leaf_response(e,t){this.writeOPB(),this.writeString(e.value),this.writeCL()}leaf_reaction(e,t){this.writeProperty("reaction",e.value,!0)}leaf_feedback(e,t){const i=e.value;i&&this.write(i)}between_resources(e,t,i,r){this.writeNL()}enter_resourcesValue(e,t){const i=e.value;this.writeResource(i)}enter_imagePlaceholder(e,t){const i=e.value;this.writePropertyStyleResource(e.key,i)}exit_imagePlaceholder(e,t){this.writeNL()}enter_posterImage(e,t){const i=this.getParentNode(t);if((null==i?void 0:i.key)===a.NodeType.bitsValue){const t=e.value;t&&this.writeProperty("posterImage",t)}else{const t=e.value;t&&t.value&&this.writeProperty("posterImage",t.value)}}enter_thumbnails(e,t){const i=e.value;if(Array.isArray(i)){const e=["src1x","src2x","src3x","src4x"];for(let t=0;t<i.length&&t!==e.length;t++){const r=i[t],o=e[t];this.writeProperty(o,r.value,!0)}}}leaf_title(e,t){const i=this.getParentNode(t);if((null==i?void 0:i.key)!==a.NodeType.bitsValue)return;const r=e.value,o=(null==i?void 0:i.value).level||1;if(o&&r){this.writeOP();for(let e=0;e<+o;e++)this.writeHash();this.writeString(r),this.writeCL()}}leaf_subtitle(e,t){const i=e.value;if(i){this.writeOP();for(let e=0;e<2;e++)this.writeHash();this.writeString(i),this.writeCL()}}leaf_book(e,t){const i=this.getParentNode(t),r=null==i?void 0:i.value;r&&e.value&&(this.writeProperty("book",e.value),r.reference&&(this.writeOPRANGLE(),this.writeString(r.reference),this.writeCL(),r.referenceEnd&&(this.writeOPRANGLE(),this.writeString(r.referenceEnd),this.writeCL())))}leaf_anchor(e,t){e.value&&(this.writeOPDANGLE(),this.writeString(e.value),this.writeCL())}leaf_reference(e,t){const i=this.getParentNode(t),r=null==i?void 0:i.value;r&&e.value&&(r.book||(this.writeOPRANGLE(),this.writeString(e.value),this.writeCL()))}leaf_hint(e,t){const i=e.value;i&&(this.writeOPQ(),this.writeString(i),this.writeCL())}leaf_instruction(e,t){const i=e.value;i&&(this.writeOPB(),this.writeString(i),this.writeCL())}leaf_example(e,t){var i,r;const o=e.value,n=this.getParentNode(t),a=null!==(i=null==n?void 0:n.value.isExample)&&void 0!==i&&i,s=null!==(r=null==n?void 0:n.value.isDefaultExample)&&void 0!==r&&r;a&&(s?(this.writeOPA(),this.writeString("example"),this.writeCL()):null!=o&&(this.writeOPA(),this.writeString("example"),this.writeColon(),!0===o?this.writeString("true"):!1===o?this.writeString("false"):this.writeString(o),this.writeCL()))}leaf_bodyText(e,t){const i=e.value;i&&this.writeString(i)}enter_bodyJson(e,t){const i=e.value;if(Array.isArray(i)||m.ObjectUtils.isObject(i)){const e=JSON.stringify(i,null,this.prettifySpace);e&&this.writeString(e)}return!1}enter_footer(e,t){this.write("~~~~"),this.writeNL()}leaf_footerText(e,t){const i=e.value;i&&this.writeString(i)}leaf_elementsValue(e,t){e.value&&this.writeString(e.value)}leaf_solutionsValue(e,t){null!=e.value&&(this.writeOPU(),this.writeString(e.value),this.writeCL())}leaf_prefix(e,t){e.value&&(this.writeOPPRE(),this.writeString(e.value),this.writeCL())}leaf_postfix(e,t){e.value&&(this.writeOPPOST(),this.writeString(e.value),this.writeCL())}leaf_isCaseSensitive(e,t){this.writeProperty("isCaseSensitive",e.value,!0,!1,!0)}leaf_forKeys(e,t){this.writeOPHASH(),this.writeString(e.value),this.writeCL()}leaf_forValuesValue(e,t){this.writeOPHASH(),this.writeString(e.value),this.writeCL()}leaf_key(e,t){e.value&&this.writeString(e.value)}leaf_valuesValue(e,t){e.value&&this.writeString(e.value)}leaf_question(e,t){const i=this.getParentNode(t);(null==i?void 0:i.key)!==a.NodeType.questionsValue&&(null==i?void 0:i.key)!==a.NodeType.flashcardsValue||e.value&&this.writeString(e.value)}leaf_src1x(e,t){this.writeProperty("src1x",e.value)}leaf_src2x(e,t){this.writeProperty("src2x",e.value)}leaf_src3x(e,t){this.writeProperty("src3x",e.value)}leaf_src4x(e,t){this.writeProperty("src4x",e.value)}leaf_width(e,t){this.writeProperty("width",e.value)}leaf_height(e,t){this.writeProperty("height",e.value)}leaf_alt(e,t){this.writeProperty("alt",e.value)}leaf_zoomDisabled(e,t){const i=this.getBitType(t);n.Config.isOfBitType(i,[s.BitType.imageSeparator,s.BitType.pageBanner,s.BitType.imagesLogoGrave,s.BitType.prototypeImages])?this.writeProperty("zoomDisabled",e.value,void 0,!1,!0):this.writeProperty("zoomDisabled",e.value,void 0,!0,!1)}leaf_license(e,t){this.writeProperty("license",e.value)}leaf_copyright(e,t){this.writeProperty("copyright",e.value)}leaf_provider(e,t){}leaf_showInIndex(e,t){this.writeProperty("showInIndex",e.value)}leaf_caption(e,t){const i=e.value;this.writeProperty("caption",i)}leaf_search(e,t){const i=e.value;this.writeProperty("search",i)}leaf_duration(e,t){const i=this.getParentNode(t);(null==i?void 0:i.key)!==a.NodeType.bitsValue&&this.writeProperty("duration",e.value)}leaf_mute(e,t){this.writeProperty("mute",e.value)}leaf_autoplay(e,t){this.writeProperty("autoplay",e.value)}leaf_allowSubtitles(e,t){this.writeProperty("allowSubtitles",e.value)}leaf_showSubtitles(e,t){this.writeProperty("showSubtitles",e.value)}generatePropertyHandlers(){var e;const t=n.Config.getRawPropertiesConfig();for(const i of Object.values(t)){const t=null!==(e=i.astKey)&&void 0!==e?e:i.tag;if(t===g.PropertyTag.internalComment)continue;if(t===g.PropertyTag.example)continue;if(t===g.PropertyTag.labelTrue)continue;if(t===g.PropertyTag.labelFalse)continue;if(t===g.PropertyTag.posterImage)continue;if(t===g.PropertyTag.imageSource)continue;if(t===g.PropertyTag.imagePlaceholder)continue;if(t===g.PropertyTag.technicalTerm)continue;if(t===g.PropertyTag.servings)continue;if(t===g.PropertyTag.person)continue;if(t===u.PropertyAstKey.ast_markConfig)continue;if(t===g.PropertyTag.ratingLevelStart)continue;if(t===g.PropertyTag.ratingLevelEnd)continue;const r=`enter_${t}`;this[r]=(e,t)=>{if(null==e.value)return;const r=this.getParentNode(t);(null==r?void 0:r.key)===a.NodeType.bitsValue&&this.writeProperty(i.tag,e.value,i.single,"false"===i.defaultValue,"true"===i.defaultValue)},this[r]=this[r].bind(this)}}writeNlBetween(e,t,i,r,o){e.value.book&&o.push(a.NodeType.reference);(()=>{if(!this.wroteSomething||this.skipNLBetweenBitsValue)return!0;for(const e of o)if(t.key===e)return!0;return!1})()||this.writeNL(),this.skipNLBetweenBitsValue=!1,this.wroteSomething=!1}writeString(e){null!=e&&this.write(`${e}`)}writeOPBUL(){this.write("[•")}writeOPESC(){this.write("[^")}writeOPRANGLE(){this.write("[►")}writeOPDANGLE(){this.write("[▼")}writeOPD(e){this.write(`[${".".repeat(e)}`)}writeOPU(){this.write("[_")}writeOPE(){this.write("[=")}writeOPB(){this.write("[!")}writeOPQ(){this.write("[?")}writeOPA(){this.write("[@")}writeOPP(){this.write("[+")}writeOPM(){this.write("[-")}writeOPS(){this.write("[\\")}writeOPR(){this.write("[*")}writeOPC(){this.write("[%")}writeOPAMP(){this.write("[&")}writeOPDOLLAR(){this.write("[$")}writeOPHASH(){this.write("[#")}writeOPPRE(){this.write("['")}writeOPPOST(){this.write("[")}writeOP(){this.write("[")}writeCL(){this.writer.getLastWrite().endsWith("^")?this.write(" ]"):this.write("]")}writeAmpersand(){this.write("&")}writeColon(){this.write(":")}writeHash(){this.write("#")}writePlainTextDivider(){this.write("$$$$")}writeCardSetStart(){this.options.cardSetVersion===c.CardSetVersion.v1?this.write("\n==="):this.write("\n====")}writeCardSetEnd(){this.options.cardSetVersion===c.CardSetVersion.v1&&this.write("===")}writeCardSetCardDivider(){this.options.cardSetVersion===c.CardSetVersion.v1?this.write("==="):this.write("====")}writeCardSetSideDivider(){this.options.cardSetVersion===c.CardSetVersion.v1?this.write("=="):this.write("--")}writeCardSetVariantDivider(){this.options.cardSetVersion===c.CardSetVersion.v1?this.write("--"):this.write("++")}writeNL(){this.options.debugGenerationInline?this.write("\\n"):this.write("\n")}writePropertyStyleResource(e,t){const i=t;e&&t&&(this.writeOPA(),this.writeString(e),t.type===y.ResourceTag.article&&i.value?(this.writeColon(),this.writeString(i.value),this.writeNL()):t.value&&(this.writeColon(),this.writeString(t.value)),this.writeCL())}writeResource(e){var t;const i=e;e&&(this.writeOPAMP(),this.writeString(null!==(t=e.typeAlias)&&void 0!==t?t:e.type),e.type===y.ResourceTag.article&&i.value?(this.writeColon(),this.writeString(i.value),this.writeNL()):e.value&&(this.writeColon(),this.writeString(e.value)),this.writeCL())}writeProperty(e,t,i,r,o){let n,a=!1;if(void 0!==t&&(n=Array.isArray(t)?t:[t],n.length>0)){i&&(n=n.slice(n.length-1));let t=0;for(const i of n)if(void 0!==i){if(r&&!1===i)continue;if(o&&!0===i)continue;t>0&&this.writeNL(),this.writeOPA(),this.writeString(e),this.writeColon(),this.writeString(`${i}`),this.writeCL(),a=!0,t++}}a||(this.skipNLBetweenBitsValue=!0)}writeInlineDebug(e,t){let i=e;t.open?i=`<${e}>`:t.close?i=`</${e}>`:t.single&&(i=`<${e} />`),this.writeString(i)}isWriteTextFormat(e,t){return!!(!(d.TextFormat.fromValue(e)===t)||this.options.explicitTextFormat)}getTextFormat(e){for(const t of e)if(t.key===a.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.textFormat}}isOfBitType1(e){return this.isOfBitType(e,[s.BitType.trueFalse1,s.BitType.multipleChoice1,s.BitType.multipleResponse1])}isOfBitType(e,t){const i=this.getBitType(e);return n.Config.isOfBitType(i,t)}getBitType(e){for(const t of e)if(t.key===a.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.bitType}}write(e){return e&&(this.wroteSomething=!0),this.writer.write(e),this}writeLine(e){return e&&(this.wroteSomething=!0),this.writer.writeLine(e),this}writeLines(e,t){return e.length>0&&e.reduce(((e,t)=>!!t||e),!1)&&(this.wroteSomething=!0),this.writer.writeLines(e,t),this}writeWhiteSpace(){return this.writer.writeWhiteSpace(),this}}t.BitmarkGenerator=b},3968:function(e,t,i){var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkStringGenerator=void 0;const o=i(6772),n=i(5087);t.BitmarkStringGenerator=class{constructor(e){this.writer=new o.StringWriter,this.generator=new n.BitmarkGenerator(this.writer,e)}generate(e){return r(this,void 0,void 0,(function*(){return yield this.generator.generate(e),this.writer.getString()}))}generateSync(e){return this.generator.generateSync(e),this.writer.getString()}}},2497:function(e,t,i){var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonGenerator=void 0;const n=i(5126),a=i(7735),s=i(2028),l=i(126),p=i(5854),c=i(3811),u=i(4410),g=i(363),y=i(7203),d=i(166),f=i(6149),m=i(385),T=i(9554),h=i(777),b=i(6989),v=i(4078),B=i(8025),C=i(9681),P=i(201),k=i(4),S={};class x extends k.AstWalkerGenerator{constructor(e,t){var i,r;super(),this.ast=new n.Ast,this.textParser=new h.TextParser,this.json=[],this.bitWrapperJson={},this.bitJson={},this.textDefault=a.Breakscape.EMPTY_STRING,this.bodyDefault=a.Breakscape.EMPTY_STRING,this.bodyJson=this.bodyDefault,this.startPlaceholderIndex=0,this.bitmarkVersion=null!==(i=c.BitmarkVersion.fromValue(null==t?void 0:t.bitmarkVersion))&&void 0!==i?i:c.DEFAULT_BITMARK_VERSION,this.textParserVersion=this.textParser.version(),this.options=Object.assign(Object.assign({},S),null==t?void 0:t.jsonOptions),this.debugGenerationInline=null!==(r=this.options.debugGenerationInline)&&void 0!==r&&r,this.jsonPrettifySpace=!0===this.options.prettify?2:this.options.prettify||void 0,this.bitmarkVersion===c.BitmarkVersion.v2?void 0===this.options.textAsPlainText&&(this.options.textAsPlainText=!0):void 0===this.options.textAsPlainText&&(this.options.textAsPlainText=!1),this.writer=e,this.enter=this.enter.bind(this),this.between=this.between.bind(this),this.exit=this.exit.bind(this),this.leaf=this.leaf.bind(this),this.generatePropertyHandlers()}generate(e){return r(this,void 0,void 0,(function*(){this.resetState(),yield this.writer.open(),this.walkAndWrite(e),this.write(JSON.stringify(this.json,null,this.jsonPrettifySpace)),yield this.writer.close()}))}generateSync(e){this.resetState(),this.writer.openSync(),this.walkAndWrite(e),this.writer.closeSync()}resetState(){this.json=[],this.bitWrapperJson={},this.bitJson={},this.textDefault=this.options.textAsPlainText?a.Breakscape.EMPTY_STRING:[],this.bodyDefault=this.options.textAsPlainText?a.Breakscape.EMPTY_STRING:[],this.bodyJson=this.bodyDefault,this.startPlaceholderIndex=0,this.printed=!1}walkAndWrite(e){this.ast.walk(e,l.NodeType.bitmarkAst,this,void 0)}enter_bitmarkAst(e,t){this.json=[]}enter_bitsValue(e,t){var i,r,o;const n=e.value;this.bitWrapperJson={},this.json.push(this.bitWrapperJson),this.bitJson=this.createBitJson(n),this.bitWrapperJson.bit=this.bitJson;const l=s.Config.getBitConfig(n.bitType),c=!!l.rootExampleType,u=l.rootExampleType===g.ExampleType.boolean;if(c){let e;u?(e=!0,s.Config.isOfBitType(n.bitType,p.BitType.trueFalse1)&&void 0!==(null===(r=null===(i=n.cardNode)||void 0===i?void 0:i.statement)||void 0===r?void 0:r.isCorrect)&&(e=n.cardNode.statement.isCorrect)):e=null!==(o=a.Breakscape.unbreakscape(b.ArrayUtils.asSingle(n.sampleSolution)))&&void 0!==o?o:"";const t=this.toExample(n,{defaultExample:e,isBoolean:u});this.bitJson.isExample=t.isExample,this.bitJson.example=t.example}else n.isExample&&(this.bitJson.isExample=!0)}exit_bitsValue(e,t){this.cleanAndSetDefaultsForBitJson(this.bitJson)}enter_imageSource(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==l.NodeType.bitsValue)return;const{url:o,mockupId:n,size:a,format:s,trim:p}=i,c={};this.addProperty(c,"url",null!=o?o:"",!0),this.addProperty(c,"mockupId",null!=n?n:"",!0),this.addProperty(c,"size",null!=a?a:null,!0),this.addProperty(c,"format",null!=s?s:null,!0),this.addProperty(c,"trim",v.BooleanUtils.isBoolean(p)?p:null,!0),this.bitJson.imageSource=c}enter_person(e,t){const i=e.value,r=this.getBitType(t),o=this.getParentNode(t);if((null==o?void 0:o.key)!==l.NodeType.bitsValue||!r)return;const{name:n,title:a,avatarImage:c}=i,u={};if(this.addProperty(u,"name",null!=n?n:"",!0),a&&this.addProperty(u,"title",a,!0),c){const e=this.parseResourceToJson(r,c);e&&e.type===f.ResourceTag.image&&(u.avatarImage=e.image)}s.Config.isOfBitType(r,p.BitType.conversationLeft1)?this.bitJson.partner=u:this.bitJson.person=u}enter_ratingLevelStart(e,t){const i=this.enterRatingLevelStartEndCommon(e,t);return i&&(this.bitJson.ratingLevelStart=i),!1}enter_ratingLevelEnd(e,t){const i=this.enterRatingLevelStartEndCommon(e,t);return i&&(this.bitJson.ratingLevelEnd=i),!1}enterRatingLevelStartEndCommon(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==l.NodeType.bitsValue)return;const o={};return this.addProperty(o,"level",i.level,!0),i.label&&(o.label=this.convertBreakscapedStringToJsonText(i.label,m.TextFormat.bitmarkMinusMinus)),null==(null==o?void 0:o.label)&&delete o.label,o}enter_productId(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==l.NodeType.bitsValue)return;this.getBitType(t)===p.BitType.module?this.addProperty(this.bitJson,"productId",i):i.length>0&&this.addProperty(this.bitJson,"productId",i[i.length-1],!0)}enter_markConfigValue(e,t){const i=e.value,r=this.getParentNode(t);if((null==r?void 0:r.key)!==l.NodeType.markConfig)return;const{mark:o,color:n,emphasis:a}=i,s={};this.addProperty(s,"mark",null!=o?o:"unknown",!0),n&&this.addProperty(s,"color",null!=n?n:"",!0),a&&this.addProperty(s,"emphasis",null!=a?a:"",!0),this.bitJson.marks||(this.bitJson.marks=[]),this.bitJson.marks.push(s)}enter_itemLead(e,t){const i=e.value,{item:r,lead:o,pageNumber:n,marginNumber:a}=i,s=this.getParentNode(t);(null==s?void 0:s.key)===l.NodeType.bitsValue&&(null!=r&&(this.bitJson.item=this.convertBreakscapedStringToJsonText(r,m.TextFormat.bitmarkMinusMinus)),null!=o&&(this.bitJson.lead=this.convertBreakscapedStringToJsonText(o,m.TextFormat.bitmarkMinusMinus)),null!=n&&(this.bitJson.pageNumber=this.convertBreakscapedStringToJsonText(n,m.TextFormat.bitmarkMinusMinus)),null!=a&&(this.bitJson.marginNumber=this.convertBreakscapedStringToJsonText(a,m.TextFormat.bitmarkMinusMinus)))}enter_width(e,t){var i;let r=e.value;const o=this.getBitType(t),n=this.getParentNode(t);return(null==n?void 0:n.key)===l.NodeType.bitsValue&&s.Config.isOfBitType(o,p.BitType.extractorBlock)&&(r=null!==(i=B.NumberUtils.asNumber(r,0))&&void 0!==i?i:0),this.addProperty(this.bitJson,"width",r,!0),!1}enter_height(e,t){var i;let r=e.value;const o=this.getBitType(t),n=this.getParentNode(t);return(null==n?void 0:n.key)===l.NodeType.bitsValue&&s.Config.isOfBitType(o,p.BitType.extractorBlock)&&(r=null!==(i=B.NumberUtils.asNumber(r,0))&&void 0!==i?i:0),this.addProperty(this.bitJson,"height",r,!0),!1}enter_extraProperties(e,t){const i=e.value;if(!this.options.excludeUnknownProperties&&i)for(const[e,t]of Object.entries(i)){let i=e;Object.prototype.hasOwnProperty.call(this.bitJson,e)&&(i=`_${e}`),this.addProperty(this.bitJson,i,t)}}enter_cardBitsValue(e,t){const i=this.getBitType(t);if(!i)return;let r;i===p.BitType.pageFooter?(this.bitJson.sections||(this.bitJson.sections=[]),r=this.bitJson.sections):(this.bitJson.listItems||(this.bitJson.listItems=[]),r=this.bitJson.listItems),this.listItem=Object.assign(Object.assign({},this.toItemLeadHintInstruction(e.value)),{body:this.bodyDefault}),r.push(this.listItem)}exit_cardBitsValue(e,t){this.listItem=void 0}enter_body(e,t){this.getTextFormat(t)===m.TextFormat.json&&(this.bodyDefault=null),this.bodyJson=this.bodyDefault}exit_body(e,t){const i=this.getParentNode(t);i&&(i.key===l.NodeType.bitsValue?this.bitJson.body=this.bodyJson:i.key===l.NodeType.cardBitsValue&&this.listItem&&(this.listItem.body=this.bodyJson))}enter_bodyParts(e,t){const i=e.value,r=this.options.textAsPlainText,o=this.getTextFormat(t);let n="",s="",l=this.startPlaceholderIndex;const p=e=>({legacyPlaceholderKey:`{${e}}`,placeholderKey:`[!${e}]`});for(let e=0;e<i.length;e++){const t=i[e];if(t.type===u.BodyBitType.text){const e=t,i=e.data.bodyText;e.data.isPlain?s=a.Breakscape.concatenate(s,i):n=a.Breakscape.concatenate(n,i)}else{const{legacyPlaceholderKey:e,placeholderKey:t}=p(l);n=a.Breakscape.concatenate(n,r?e:t),l++}}const c=this.convertBreakscapedStringToJsonText(n,o),g=this.convertBreakscapedStringToJsonText(s,m.TextFormat.text),y=c,d=C.StringUtils.countOccurrencesAtEnd(n,"\n")+C.StringUtils.countOccurrencesAtStart(s,"\n");this.bodyJson=this.concatenatePlainTextWithJsonTexts(c,d,g),l=this.startPlaceholderIndex;for(let e=0;e<i.length;e++){const t=i[e];if(t.type===u.BodyBitType.text)continue;const o=t;let n;const{legacyPlaceholderKey:a}=p(l);switch(t.type){case u.BodyBitType.gap:{const e=o;n=this.createGapJson(e);break}case u.BodyBitType.mark:{const e=o;n=this.createMarkJson(e);break}case u.BodyBitType.select:{const e=o;n=this.createSelectJson(e);break}case u.BodyBitType.highlight:{const e=o;n=this.createHighlightJson(e);break}}n&&(r?(this.bitJson.placeholders||(this.bitJson.placeholders={}),this.bitJson.placeholders[a]=n):this.replacePlaceholderWithBodyBit(y,n,l)),l++}return this.startPlaceholderIndex=l,!1}enter_bodyJson(e,t){const i=e.value;return this.bodyJson=i,!1}enter_elements(e,t){const i=e.value;i&&i.length>0&&(this.bitJson.elements=a.Breakscape.unbreakscape(i))}enter_flashcards(e,t){var i,r,o,n;const s=e.value,p=this.getParentNode(t);if((null==p?void 0:p.key)!==l.NodeType.cardNode)return;const c=[];if(s)for(const e of s){const t=Object.assign(Object.assign({question:this.convertBreakscapedStringToJsonText(null!==(i=e.question)&&void 0!==i?i:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus),answer:this.convertBreakscapedStringToJsonText(null!==(r=e.answer)&&void 0!==r?r:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus),alternativeAnswers:(null!==(o=e.alternativeAnswers)&&void 0!==o?o:[]).map((e=>this.convertBreakscapedStringToJsonText(null!=e?e:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus)))},this.toItemLeadHintInstruction(e)),this.toExample(e,{defaultExample:e.isDefaultExample,isBoolean:!0}));null==(null===(n=e.itemLead)||void 0===n?void 0:n.lead)&&delete t.lead,c.push(t)}c.length>0&&(this.bitJson.cards=c)}enter_definitions(e,t){var i,r,o,n;const c=e.value,u=this.getParentNode(t);if((null==u?void 0:u.key)!==l.NodeType.cardNode)return;const g=[];if(c)for(const e of c){const l=Object.assign(Object.assign({term:this.convertBreakscapedStringToJsonText(null!==(i=e.term)&&void 0!==i?i:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus),description:this.convertBreakscapedStringToJsonText(null!==(r=e.description)&&void 0!==r?r:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus),alternativeDefinitions:(null!==(o=e.alternativeDefinitions)&&void 0!==o?o:[]).map((e=>this.convertBreakscapedStringToJsonText(null!=e?e:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus)))},this.toItemLeadHintInstruction(e)),this.toExample(e,{defaultExample:e.isDefaultExample,isBoolean:!0}));null==(null===(n=e.itemLead)||void 0===n?void 0:n.lead)&&delete l.lead,s.Config.isOfBitType(this.getBitType(t),p.BitType.descriptionList)&&(l.alternativeDescriptions=l.alternativeDefinitions,delete l.alternativeDefinitions),g.push(l)}g.length>0&&(s.Config.isOfBitType(this.getBitType(t),p.BitType.descriptionList)?this.bitJson.descriptions=g:this.bitJson.definitions=g)}enter_statement(e,t){var i,r;const o=e.value,n=this.getParentNode(t);(null==n?void 0:n.key)===l.NodeType.cardNode&&o&&(this.bitJson.statement=null!==(i=a.Breakscape.unbreakscape(o.text))&&void 0!==i?i:"",this.bitJson.isCorrect=null!==(r=o.isCorrect)&&void 0!==r&&r)}enter_statements(e,t){var i,r,o;const n=e.value,s=this.getParentNode(t);if((null==s?void 0:s.key)!==l.NodeType.cardNode)return;const p=[];if(n)for(const e of n){const t=Object.assign(Object.assign({statement:null!==(i=a.Breakscape.unbreakscape(e.text))&&void 0!==i?i:"",isCorrect:!!e.isCorrect},this.toItemLeadHintInstruction(e)),this.toExample(e,{defaultExample:!!e.isCorrect,isBoolean:!0}));null==(null===(r=e.itemLead)||void 0===r?void 0:r.item)&&delete t.item,null==(null===(o=e.itemLead)||void 0===o?void 0:o.lead)&&delete t.lead,null==(null==e?void 0:e.hint)&&delete t.hint,null==(null==e?void 0:e.instruction)&&delete t.instruction,p.push(t)}p.length>0&&(this.bitJson.statements=p)}enter_choices(e,t){var i,r,o;const n=e.value,s=this.getParentNode(t);if((null==s?void 0:s.key)!==l.NodeType.cardNode)return;const p=[];if(n)for(const e of n){const t=Object.assign(Object.assign({choice:null!==(i=a.Breakscape.unbreakscape(e.text))&&void 0!==i?i:"",isCorrect:null!==(r=e.isCorrect)&&void 0!==r&&r},this.toItemLeadHintInstruction(e)),this.toExample(e,{defaultExample:!!e.isCorrect,isBoolean:!0}));null==(null===(o=e.itemLead)||void 0===o?void 0:o.lead)&&delete t.lead,p.push(t)}p.length>0&&(this.bitJson.choices=p)}enter_responses(e,t){var i,r,o;const n=e.value,s=this.getParentNode(t);if((null==s?void 0:s.key)!==l.NodeType.cardNode)return;const p=[];if(n)for(const e of n){const t=Object.assign(Object.assign({response:null!==(i=a.Breakscape.unbreakscape(e.text))&&void 0!==i?i:"",isCorrect:null!==(r=e.isCorrect)&&void 0!==r&&r},this.toItemLeadHintInstruction(e)),this.toExample(e,{defaultExample:!!e.isCorrect,isBoolean:!0}));null==(null===(o=e.itemLead)||void 0===o?void 0:o.lead)&&delete t.lead,p.push(t)}p.length>0&&(this.bitJson.responses=p)}enter_quizzes(e,t){var i,r,o,n,s,l,p,c;const u=e.value,g=[];if(u)for(const e of u){const t=[];if(e.choices)for(const n of e.choices){const s=Object.assign(Object.assign({choice:null!==(i=a.Breakscape.unbreakscape(n.text))&&void 0!==i?i:"",isCorrect:null!==(r=n.isCorrect)&&void 0!==r&&r},this.toItemLeadHintInstruction(n)),this.toExample(n,{defaultExample:!!n.isCorrect,isBoolean:!0}));null==(null===(o=e.itemLead)||void 0===o?void 0:o.lead)&&delete s.lead,t.push(s)}const u=[];if(e.responses)for(const t of e.responses){const i=Object.assign(Object.assign({response:null!==(n=a.Breakscape.unbreakscape(t.text))&&void 0!==n?n:"",isCorrect:null!==(s=t.isCorrect)&&void 0!==s&&s},this.toItemLeadHintInstruction(t)),this.toExample(t,{defaultExample:!!t.isCorrect,isBoolean:!0}));null==(null===(l=e.itemLead)||void 0===l?void 0:l.lead)&&delete i.lead,u.push(i)}const y=Object.assign(Object.assign({},this.toItemLeadHintInstruction(e)),{isExample:null!==(p=e.isExample)&&void 0!==p&&p,choices:e.choices?t:void 0,responses:e.responses?u:void 0});null==(null===(c=e.itemLead)||void 0===c?void 0:c.lead)&&delete y.lead,g.push(y)}g.length>0&&(this.bitJson.quizzes=g)}enter_heading(e,t){var i;const r=e.value,o=this.getBitType(t),n=s.Config.isOfBitType(o,p.BitType.matchMatrix),l={forKeys:null!==(i=a.Breakscape.unbreakscape(r.forKeys))&&void 0!==i?i:""};n?(l.forValues=[],Array.isArray(r.forValues)&&r.forValues.length>=1&&(l.forValues=a.Breakscape.unbreakscape(r.forValues))):(l.forValues="",Array.isArray(r.forValues)&&r.forValues.length>=1&&(l.forValues=a.Breakscape.unbreakscape(r.forValues[r.forValues.length-1]))),this.bitJson.heading=l}enter_pairs(e,t){var i,r,o,n;const s=e.value,l=[],p=this.getBitType(t);if(s&&p)for(const e of s){const t=Array.isArray(e.values)&&e.values.length>0&&e.values[0],s=Object.assign(Object.assign(Object.assign({key:null!==(i=a.Breakscape.unbreakscape(e.key))&&void 0!==i?i:"",keyAudio:e.keyAudio?this.addAudioResource(p,e.keyAudio):void 0,keyImage:e.keyImage?this.addImageResource(p,e.keyImage):void 0,values:null!==(r=a.Breakscape.unbreakscape(e.values))&&void 0!==r?r:[]},this.toItemLeadHintInstruction(e)),{isCaseSensitive:null===(o=e.isCaseSensitive)||void 0===o||o}),this.toExample(e,{defaultExample:t,isBoolean:!1}));null==(null===(n=e.itemLead)||void 0===n?void 0:n.lead)&&delete s.lead,s.key&&(delete s.keyAudio,delete s.keyImage),null!=s.keyAudio&&(delete s.key,delete s.keyImage),null!=s.keyImage&&(delete s.key,delete s.keyAudio),l.push(s)}l.length>0&&(this.bitJson.pairs=l)}enter_matrix(e,t){var i,r,o,n,s,l;const p=e.value,c=[];if(p)for(const e of p){const t=[];if(e.cells)for(const n of e.cells){const e=Array.isArray(n.values)&&n.values.length>0&&n.values[0],s=Object.assign(Object.assign(Object.assign({values:null!==(i=a.Breakscape.unbreakscape(n.values))&&void 0!==i?i:[]},this.toItemLeadHintInstruction(n)),{isCaseSensitive:null===(r=n.isCaseSensitive)||void 0===r||r}),this.toExample(n,{defaultExample:e,isBoolean:!1}));null==(null===(o=n.itemLead)||void 0===o?void 0:o.lead)&&delete s.lead,null==n.hint&&delete s.hint,t.push(s)}const p=Object.assign(Object.assign({key:null!==(n=a.Breakscape.unbreakscape(e.key))&&void 0!==n?n:"",cells:null!=t?t:[]},this.toItemLeadHintInstruction(e)),{isExample:null!==(s=e.isExample)&&void 0!==s&&s});null==(null===(l=e.itemLead)||void 0===l?void 0:l.lead)&&delete p.lead,null==e.instruction&&delete p.instruction,c.push(p)}c.length>0&&(this.bitJson.matrix=c)}enter_table(e,t){const i=e.value;if(i){const e={columns:a.Breakscape.unbreakscape(i.columns),data:i.rows.map((e=>a.Breakscape.unbreakscape(e)))};this.bitJson.table=e}return!1}enter_questions(e,t){var i,r,o,n,s;const l=e.value,p=[];if(l)for(const e of l){const t=Object.assign(Object.assign(Object.assign({question:null!==(i=a.Breakscape.unbreakscape(e.question))&&void 0!==i?i:"",partialAnswer:null!==(r=a.Breakscape.unbreakscape(b.ArrayUtils.asSingle(e.partialAnswer)))&&void 0!==r?r:"",sampleSolution:null!==(o=a.Breakscape.unbreakscape(b.ArrayUtils.asSingle(e.sampleSolution)))&&void 0!==o?o:"",additionalSolutions:null!==(n=a.Breakscape.unbreakscape(e.additionalSolutions))&&void 0!==n?n:[]},this.toItemLeadHintInstruction(e)),{reasonableNumOfChars:e.reasonableNumOfChars}),this.toExample(e,{defaultExample:e.sampleSolution||"",isBoolean:!1}));null==(null===(s=e.itemLead)||void 0===s?void 0:s.lead)&&delete t.lead,null!=e.additionalSolutions&&0!==e.additionalSolutions.length||delete t.additionalSolutions,p.push(t)}p.length>0&&(this.bitJson.questions=p)}enter_botResponses(e,t){var i,r,o,n;const s=e.value,p=this.getParentNode(t);if((null==p?void 0:p.key)!==l.NodeType.cardNode)return;const c=[];if(s)for(const e of s){const t=Object.assign({response:null!==(i=a.Breakscape.unbreakscape(e.response))&&void 0!==i?i:"",reaction:null!==(r=a.Breakscape.unbreakscape(e.reaction))&&void 0!==r?r:"",feedback:null!==(o=a.Breakscape.unbreakscape(e.feedback))&&void 0!==o?o:""},this.toItemLeadHintInstruction(e));null==(null===(n=e.itemLead)||void 0===n?void 0:n.lead)&&delete t.lead,null==e.hint&&delete t.hint,delete t.instruction,c.push(t)}c.length>0&&(this.bitJson.responses=c)}enter_ingredients(e,t){var i,r,o,n,s,p,c,u;const g=e.value,y=this.getParentNode(t);if((null==y?void 0:y.key)!==l.NodeType.cardNode)return;const d=[];if(g)for(const e of g){const t={title:null!==(i=a.Breakscape.unbreakscape(e.title))&&void 0!==i?i:"",checked:null!==(r=e.checked)&&void 0!==r&&r,item:null!==(o=a.Breakscape.unbreakscape(e.item))&&void 0!==o?o:"",quantity:null!==(n=e.quantity)&&void 0!==n?n:0,unit:null!==(s=a.Breakscape.unbreakscape(e.unit))&&void 0!==s?s:"",unitAbbr:null!==(p=a.Breakscape.unbreakscape(e.unitAbbr))&&void 0!==p?p:"",decimalPlaces:null!==(c=e.decimalPlaces)&&void 0!==c?c:1,disableCalculation:null!==(u=e.disableCalculation)&&void 0!==u&&u};null==(null==e?void 0:e.title)&&delete t.title,null==(null==e?void 0:e.unitAbbr)&&delete t.unitAbbr,d.push(t)}d.length>0&&(this.bitJson.ingredients=d)}enter_captionDefinitionList(e,t){var i,r;const o=e.value;if(o){const e=null!==(i=o.columns)&&void 0!==i?i:[],t=null!==(r=o.definitions)&&void 0!==r?r:[],n={columns:a.Breakscape.unbreakscape(e),definitions:t.map((e=>{var t,i;return{term:null!==(t=a.Breakscape.unbreakscape(e.term))&&void 0!==t?t:"",description:null!==(i=a.Breakscape.unbreakscape(e.description))&&void 0!==i?i:""}}))};this.bitJson.captionDefinitionList=n}return!1}enter_imagePlaceholder(e,t){const i=this.getParentNode(t);if((null==i?void 0:i.key)!==l.NodeType.bitsValue)return;const r=e.value,o=this.getBitType(t);if(!r||!o)return;const n=this.parseResourceToJson(o,r);n&&n.type===f.ResourceTag.image&&(this.bitJson.imagePlaceholder=n)}enter_resources(e,t){var i;const r=e.value,o=this.getBitType(t),n=this.getResourceType(t);if(!r||!o)return;let a;const l=s.Config.getBitConfig(o),c=s.Config.getBitResourcesConfig(o,n),u=c.comboResourceTagTypesMap;if(c.comboResourceTagTypesMap.size>0)for(const[e,t]of u.entries()){const n={type:e};for(const e of t){const t=r.find((t=>t.typeAlias===e));if(t){const e=s.Config.getTagConfigForTag(l.tags,t.typeAlias),r=null!==(i=null==e?void 0:e.jsonKey)&&void 0!==i?i:t.typeAlias,a=this.parseResourceToJson(o,t);if(a)for(const[e,t]of Object.entries(a))"type"!==e&&(n[r]=t)}}a=n}else if(s.Config.isOfBitType(o,[p.BitType.imagesLogoGrave,p.BitType.prototypeImages])){const e=[];for(const t of r){const i=this.parseResourceToJson(o,t);i&&e.push(i)}o===p.BitType.imagesLogoGrave?this.bitJson.logos=e:this.bitJson.images=e}else r.length>=1&&(a=this.parseResourceToJson(o,r[0]));this.bitJson.resource=a}leaf_title(e,t){const i=this.getParentNode(t);(null==i?void 0:i.key)!==l.NodeType.bitsValue&&(null==i?void 0:i.key)!==l.NodeType.cardNode||(this.bitJson.title=this.convertBreakscapedStringToJsonText(e.value,m.TextFormat.bitmarkMinusMinus))}leaf_subtitle(e,t){this.bitJson.subtitle=this.convertBreakscapedStringToJsonText(e.value,m.TextFormat.bitmarkMinusMinus)}leaf_level(e,t){var i;null!=e.value&&this.addProperty(this.bitJson,"level",null!==(i=e.value)&&void 0!==i?i:1,!0)}leaf_book(e,t){null!=e.value&&this.addProperty(this.bitJson,"book",e.value,!0)}leaf_anchor(e,t){null!=e.value&&this.addProperty(this.bitJson,"anchor",e.value,!0)}leaf_reference(e,t){null!=e.value&&this.addProperty(this.bitJson,"reference",e.value,!0)}leaf_referenceEnd(e,t){null!=e.value&&this.addProperty(this.bitJson,"referenceEnd",e.value,!0)}leaf_caption(e,t){const i=e.value,r=this.getParentNode(t);(null==r?void 0:r.key)===l.NodeType.bitsValue&&(this.bitJson.caption=this.convertBreakscapedStringToJsonText(i,m.TextFormat.bitmarkMinusMinus))}leaf_hint(e,t){const i=e.value,r=this.getParentNode(t);(null==r?void 0:r.key)===l.NodeType.bitsValue&&(this.bitJson.hint=this.convertBreakscapedStringToJsonText(i,m.TextFormat.bitmarkMinusMinus))}leaf_instruction(e,t){const i=e.value,r=this.getParentNode(t);(null==r?void 0:r.key)===l.NodeType.bitsValue&&(this.bitJson.instruction=this.convertBreakscapedStringToJsonText(i,m.TextFormat.bitmarkMinusMinus))}leaf_footerText(e,t){const i=e.value,r=this.getTextFormat(t);this.bitJson.footer=this.convertBreakscapedStringToJsonText(i,r)}leaf_markup(e,t){const i=e.value;i&&(this.bitWrapperJson.bitmark=i)}enter_parser(e,t){const i=e.value,r=this.getBitType(t),n=this.getParentNode(t);if(i&&r){const{version:e,excessResources:s,warnings:p,errors:c}=i,u=o(i,["version","excessResources","warnings","errors"]),g=`${this.bitmarkVersion}`,y=this.textParserVersion;let d;if(Array.isArray(s)&&s.length>0){d=[];for(const e of s){const t=this.parseResourceToJson(r,e);t&&d.push(t)}}const f=a.Breakscape.unbreakscape(this.getInternalComments(t));(null==n?void 0:n.key)===l.NodeType.bitsValue&&(this.bitWrapperJson.parser=Object.assign(Object.assign({version:e,bitmarkVersion:g,textParserVersion:y,internalComments:f},u),{warnings:p,errors:c,excessResources:d}),this.options.enableWarnings||delete this.bitWrapperJson.parser.warnings)}}generatePropertyHandlers(){var e;const t=s.Config.getRawPropertiesConfig();for(const i of Object.values(t)){const t=null!==(e=i.astKey)&&void 0!==e?e:i.tag;if(t===d.PropertyTag.internalComment)continue;if(t===d.PropertyTag.caption)continue;if(t===d.PropertyTag.example)continue;if(t===d.PropertyTag.imageSource)continue;if(t===d.PropertyTag.person)continue;if(t===d.PropertyTag.imagePlaceholder)continue;if(t===d.PropertyTag.width)continue;if(t===d.PropertyTag.height)continue;if(t===y.PropertyAstKey.ast_markConfig)continue;if(t===d.PropertyTag.ratingLevelStart)continue;if(t===d.PropertyTag.ratingLevelEnd)continue;if(t===d.PropertyTag.productId)continue;const r=`enter_${t}`;this[r]=(e,t)=>{var r;const o=e.value;if(null==o)return;const n=this.getParentNode(t);if((null==n?void 0:n.key)!==l.NodeType.bitsValue)return;const a=null!==(r=i.jsonKey)&&void 0!==r?r:i.tag;this.addProperty(this.bitJson,a,o,i.single)},this[r]=this[r].bind(this)}}createGapJson(e){var t;const i=e.data,r=i.solutions&&i.solutions.length>0?i.solutions[0]:"";return Object.assign(Object.assign(Object.assign(Object.assign({type:"gap"},this.toItemLeadHintInstruction(i)),{isCaseSensitive:null===(t=i.isCaseSensitive)||void 0===t||t}),this.toExample(i,{defaultExample:r,isBoolean:!1})),{solutions:a.Breakscape.unbreakscape(i.solutions)})}createMarkJson(e){const t=e.data;return Object.assign(Object.assign({type:"mark",solution:a.Breakscape.unbreakscape(t.solution),mark:a.Breakscape.unbreakscape(t.mark)},this.toItemLeadHintInstruction(t)),this.toExample(t,{defaultExample:!0,isBoolean:!0}))}createSelectJson(e){var t,i,r,o;const n=e.data,s=[];for(const e of n.options){const i=Object.assign(Object.assign({text:a.Breakscape.unbreakscape(e.text),isCorrect:null!==(t=e.isCorrect)&&void 0!==t&&t},this.toItemLeadHintInstruction(e)),this.toExample(e,{defaultExample:!!e.isCorrect,isBoolean:!0}));s.push(i)}return Object.assign(Object.assign({type:"select",prefix:null!==(i=a.Breakscape.unbreakscape(n.prefix))&&void 0!==i?i:"",postfix:null!==(r=a.Breakscape.unbreakscape(n.postfix))&&void 0!==r?r:""},this.toItemLeadHintInstruction(n)),{isExample:null!==(o=n.isExample)&&void 0!==o&&o,options:s})}createHighlightJson(e){var t,i,r,o,n;const s=e.data,l=[];for(const e of s.texts){const r=Object.assign(Object.assign({text:a.Breakscape.unbreakscape(e.text),isCorrect:null!==(t=e.isCorrect)&&void 0!==t&&t,isHighlighted:null!==(i=e.isHighlighted)&&void 0!==i&&i},this.toItemLeadHintInstruction(e)),this.toExample(e,{defaultExample:!!e.isCorrect,isBoolean:!0}));l.push(r)}return Object.assign(Object.assign({type:"highlight",prefix:null!==(r=a.Breakscape.unbreakscape(s.prefix))&&void 0!==r?r:"",postfix:null!==(o=a.Breakscape.unbreakscape(s.postfix))&&void 0!==o?o:""},this.toItemLeadHintInstruction(s)),{isExample:null!==(n=s.isExample)&&void 0!==n&&n,texts:l})}parseResourceToJson(e,t){if(!t)return;let i;switch(t.type){case f.ResourceTag.image:i={type:f.ResourceTag.image,image:this.addImageResource(e,t)};break;case f.ResourceTag.imageLink:i={type:f.ResourceTag.imageLink,imageLink:this.addImageLinkResource(e,t)};break;case f.ResourceTag.audio:i={type:f.ResourceTag.audio,audio:this.addAudioResource(e,t)};break;case f.ResourceTag.audioEmbed:i={type:f.ResourceTag.audioEmbed,audioEmbed:this.addAudioEmbedResource(e,t)};break;case f.ResourceTag.audioLink:i={type:f.ResourceTag.audioLink,audioLink:this.addAudioLinkResource(e,t)};break;case f.ResourceTag.video:i={type:f.ResourceTag.video,video:this.addVideoResource(e,t)};break;case f.ResourceTag.videoEmbed:i={type:f.ResourceTag.videoEmbed,videoEmbed:this.addVideoEmbedResource(e,t)},i.videoEmbed=this.addVideoLinkResource(e,t);break;case f.ResourceTag.videoLink:i={type:f.ResourceTag.videoLink,videoLink:this.addVideoLinkResource(e,t)};break;case f.ResourceTag.stillImageFilmEmbed:i={type:f.ResourceTag.stillImageFilmEmbed,stillImageFilmEmbed:this.addStillImageFilmEmbedResource(e,t)};break;case f.ResourceTag.stillImageFilmLink:i={type:f.ResourceTag.stillImageFilmLink,stillImageFilmLink:this.addStillImageFilmLinkResource(e,t)};break;case f.ResourceTag.article:i={type:f.ResourceTag.article,article:this.addArticleResource(e,t)};break;case f.ResourceTag.document:i={type:f.ResourceTag.document,document:this.addDocumentResource(e,t)};break;case f.ResourceTag.documentEmbed:i={type:f.ResourceTag.documentEmbed,documentEmbed:this.addDocumentEmbedResource(e,t)};break;case f.ResourceTag.documentLink:i={type:f.ResourceTag.documentLink,documentLink:this.addDocumentLinkResource(e,t)};break;case f.ResourceTag.documentDownload:i={type:f.ResourceTag.documentDownload,documentDownload:this.addDocumentDownloadResource(e,t)};break;case f.ResourceTag.appLink:i={type:f.ResourceTag.appLink,appLink:this.addAppLinkResource(e,t)};break;case f.ResourceTag.websiteLink:i={type:f.ResourceTag.websiteLink,websiteLink:this.addWebsiteLinkResource(e,t)}}return i}addImageResource(e,t){var i,r,o;const n={};if(C.StringUtils.isString(t)){const e=t;t={type:f.ResourceTag.image,typeAlias:f.ResourceTag.image,value:e,format:P.UrlUtils.fileExtensionFromUrl(e),provider:P.UrlUtils.domainFromUrl(e)}}return null!=t.format&&(n.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(n.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(n.src=a.Breakscape.unbreakscape(t.value)),null!=t.src1x&&(n.src1x=a.Breakscape.unbreakscape(t.src1x)),null!=t.src2x&&(n.src2x=a.Breakscape.unbreakscape(t.src2x)),null!=t.src3x&&(n.src3x=a.Breakscape.unbreakscape(t.src3x)),null!=t.src4x&&(n.src4x=a.Breakscape.unbreakscape(t.src4x)),n.width=null!==(i=t.width)&&void 0!==i?i:null,n.height=null!==(r=t.height)&&void 0!==r?r:null,n.alt=null!==(o=a.Breakscape.unbreakscape(t.alt))&&void 0!==o?o:"",n.zoomDisabled=this.getZoomDisabled(e,t.zoomDisabled),this.addGenericResourceProperties(e,t,n),n}addImageLinkResource(e,t){var i,r,o;const n={};if(C.StringUtils.isString(t)){const e=t;t={type:f.ResourceTag.imageLink,typeAlias:f.ResourceTag.imageLink,value:e,format:P.UrlUtils.fileExtensionFromUrl(e),provider:P.UrlUtils.domainFromUrl(e)}}return null!=t.format&&(n.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(n.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(n.url=a.Breakscape.unbreakscape(t.value)),null!=t.src1x&&(n.src1x=a.Breakscape.unbreakscape(t.src1x)),null!=t.src2x&&(n.src2x=a.Breakscape.unbreakscape(t.src2x)),null!=t.src3x&&(n.src3x=a.Breakscape.unbreakscape(t.src3x)),null!=t.src4x&&(n.src4x=a.Breakscape.unbreakscape(t.src4x)),n.width=null!==(i=t.width)&&void 0!==i?i:null,n.height=null!==(r=t.height)&&void 0!==r?r:null,n.alt=null!==(o=a.Breakscape.unbreakscape(t.alt))&&void 0!==o?o:"",n.zoomDisabled=this.getZoomDisabled(e,t.zoomDisabled),this.addGenericResourceProperties(e,t,n),n}addAudioResource(e,t){const i={};return null!=t.format&&(i.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(i.src=a.Breakscape.unbreakscape(t.value)),null!=t.duration&&(i.duration=t.duration),null!=t.mute&&(i.mute=t.mute),null!=t.autoplay&&(i.autoplay=t.autoplay),this.addGenericResourceProperties(e,t,i),i}addAudioEmbedResource(e,t){const i={};return null!=t.format&&(i.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(i.src=a.Breakscape.unbreakscape(t.value)),null!=t.duration&&(i.duration=t.duration),null!=t.mute&&(i.mute=t.mute),null!=t.autoplay&&(i.autoplay=t.autoplay),this.addGenericResourceProperties(e,t,i),i}addAudioLinkResource(e,t){const i={};return null!=t.format&&(i.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(i.url=a.Breakscape.unbreakscape(t.value)),null!=t.duration&&(i.duration=t.duration),null!=t.mute&&(i.mute=t.mute),null!=t.autoplay&&(i.autoplay=t.autoplay),this.addGenericResourceProperties(e,t,i,!0),i}addVideoResource(e,t){var i,r;const o={};if(null!=t.format&&(o.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(o.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(o.src=a.Breakscape.unbreakscape(t.value)),o.width=null!==(i=t.width)&&void 0!==i?i:null,o.height=null!==(r=t.height)&&void 0!==r?r:null,null!=t.duration&&(o.duration=t.duration),null!=t.mute&&(o.mute=t.mute),null!=t.autoplay&&(o.autoplay=t.autoplay),null!=t.allowSubtitles&&(o.allowSubtitles=t.allowSubtitles),null!=t.showSubtitles&&(o.showSubtitles=t.showSubtitles),null!=t.alt&&(o.alt=a.Breakscape.unbreakscape(t.alt)),null!=t.posterImage&&(o.posterImage=this.addImageResource(e,t.posterImage)),null!=t.thumbnails&&t.thumbnails.length>0){o.thumbnails=[];for(const i of t.thumbnails)o.thumbnails.push(this.addImageResource(e,i))}return this.addGenericResourceProperties(e,t,o),o}addVideoEmbedResource(e,t){var i,r;const o={};if(null!=t.format&&(o.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(o.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(o.src=a.Breakscape.unbreakscape(t.value)),o.width=null!==(i=t.width)&&void 0!==i?i:null,o.height=null!==(r=t.height)&&void 0!==r?r:null,null!=t.duration&&(o.duration=t.duration),null!=t.mute&&(o.mute=t.mute),null!=t.autoplay&&(o.autoplay=t.autoplay),null!=t.allowSubtitles&&(o.allowSubtitles=t.allowSubtitles),null!=t.showSubtitles&&(o.showSubtitles=t.showSubtitles),null!=t.alt&&(o.alt=a.Breakscape.unbreakscape(t.alt)),null!=t.posterImage&&(o.posterImage=this.addImageResource(e,t.posterImage)),null!=t.thumbnails&&t.thumbnails.length>0){o.thumbnails=[];for(const i of t.thumbnails)o.thumbnails.push(this.addImageResource(e,i))}return this.addGenericResourceProperties(e,t,o),o}addVideoLinkResource(e,t){var i,r;const o={};if(null!=t.format&&(o.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(o.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(o.url=a.Breakscape.unbreakscape(t.value)),o.width=null!==(i=t.width)&&void 0!==i?i:null,o.height=null!==(r=t.height)&&void 0!==r?r:null,null!=t.duration&&(o.duration=t.duration),null!=t.mute&&(o.mute=t.mute),null!=t.autoplay&&(o.autoplay=t.autoplay),null!=t.allowSubtitles&&(o.allowSubtitles=t.allowSubtitles),null!=t.showSubtitles&&(o.showSubtitles=t.showSubtitles),null!=t.alt&&(o.alt=a.Breakscape.unbreakscape(t.alt)),null!=t.posterImage&&(o.posterImage=this.addImageResource(e,t.posterImage)),null!=t.thumbnails&&t.thumbnails.length>0){o.thumbnails=[];for(const i of t.thumbnails)o.thumbnails.push(this.addImageResource(e,i))}return this.addGenericResourceProperties(e,t,o),o}addStillImageFilmEmbedResource(e,t){var i,r;const o={};if(null!=t.format&&(o.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(o.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(o.url=a.Breakscape.unbreakscape(t.value)),o.width=null!==(i=t.width)&&void 0!==i?i:null,o.height=null!==(r=t.height)&&void 0!==r?r:null,null!=t.duration&&(o.duration=t.duration),null!=t.mute&&(o.mute=t.mute),null!=t.autoplay&&(o.autoplay=t.autoplay),null!=t.allowSubtitles&&(o.allowSubtitles=t.allowSubtitles),null!=t.showSubtitles&&(o.showSubtitles=t.showSubtitles),null!=t.alt&&(o.alt=a.Breakscape.unbreakscape(t.alt)),null!=t.posterImage&&(o.posterImage=this.addImageResource(e,t.posterImage)),null!=t.thumbnails&&t.thumbnails.length>0){o.thumbnails=[];for(const i of t.thumbnails)o.thumbnails.push(this.addImageResource(e,i))}return this.addGenericResourceProperties(e,t,o),o}addStillImageFilmLinkResource(e,t){var i,r;const o={};if(null!=t.format&&(o.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(o.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(o.url=a.Breakscape.unbreakscape(t.value)),o.width=null!==(i=t.width)&&void 0!==i?i:null,o.height=null!==(r=t.height)&&void 0!==r?r:null,null!=t.duration&&(o.duration=t.duration),null!=t.mute&&(o.mute=t.mute),null!=t.autoplay&&(o.autoplay=t.autoplay),null!=t.allowSubtitles&&(o.allowSubtitles=t.allowSubtitles),null!=t.showSubtitles&&(o.showSubtitles=t.showSubtitles),null!=t.alt&&(o.alt=a.Breakscape.unbreakscape(t.alt)),null!=t.posterImage&&(o.posterImage=this.addImageResource(e,t.posterImage)),null!=t.thumbnails&&t.thumbnails.length>0){o.thumbnails=[];for(const i of t.thumbnails)o.thumbnails.push(this.addImageResource(e,i))}return this.addGenericResourceProperties(e,t,o),o}addArticleResource(e,t){const i={};return null!=t.format&&(i.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(i.body=a.Breakscape.unbreakscape(t.value)),this.addGenericResourceProperties(e,t,i),i}addDocumentResource(e,t){const i={};return null!=t.format&&(i.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(i.url=a.Breakscape.unbreakscape(t.value)),this.addGenericResourceProperties(e,t,i),i}addDocumentEmbedResource(e,t){const i={};return null!=t.format&&(i.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(i.url=a.Breakscape.unbreakscape(t.value)),this.addGenericResourceProperties(e,t,i),i}addDocumentLinkResource(e,t){const i={};return null!=t.format&&(i.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(i.url=a.Breakscape.unbreakscape(t.value)),this.addGenericResourceProperties(e,t,i),i}addDocumentDownloadResource(e,t){const i={};return null!=t.format&&(i.format=a.Breakscape.unbreakscape(t.format)),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.value&&(i.url=a.Breakscape.unbreakscape(t.value)),this.addGenericResourceProperties(e,t,i),i}addAppLinkResource(e,t){const i={};return null!=t.value&&(i.url=a.Breakscape.unbreakscape(t.value)),this.addGenericResourceProperties(e,t,i),i}addWebsiteLinkResource(e,t){const i={};return null!=t.value&&(i.url=a.Breakscape.unbreakscape(t.value)),null!=t.siteName&&(i.siteName=a.Breakscape.unbreakscape(t.siteName)),this.addGenericResourceProperties(e,t,i),i}addGenericResourceProperties(e,t,i,r){var o,n,s,l,p,c,u,g,y,d;return r?(null!=t.license&&(i.license=null!==(o=a.Breakscape.unbreakscape(t.license))&&void 0!==o?o:""),null!=t.copyright&&(i.copyright=null!==(n=a.Breakscape.unbreakscape(t.copyright))&&void 0!==n?n:""),null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),null!=t.showInIndex&&(i.showInIndex=null!==(s=t.showInIndex)&&void 0!==s&&s),null!=t.caption&&(i.caption=this.convertBreakscapedStringToJsonText(null!==(l=t.caption)&&void 0!==l?l:"",m.TextFormat.bitmarkMinusMinus)),null!=t.search&&(i.search=null!==(p=a.Breakscape.unbreakscape(t.search))&&void 0!==p?p:"")):(i.license=null!==(c=a.Breakscape.unbreakscape(t.license))&&void 0!==c?c:"",i.copyright=null!==(u=a.Breakscape.unbreakscape(t.copyright))&&void 0!==u?u:"",null!=t.provider&&(i.provider=a.Breakscape.unbreakscape(t.provider)),i.showInIndex=null!==(g=t.showInIndex)&&void 0!==g&&g,i.caption=this.convertBreakscapedStringToJsonText(null!==(y=t.caption)&&void 0!==y?y:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus),null!=t.search&&(i.search=null!==(d=a.Breakscape.unbreakscape(t.search))&&void 0!==d?d:"")),i}toItemLeadHintInstruction(e){var t,i,r,o,n,s;return{item:this.convertBreakscapedStringToJsonText(null!==(i=null===(t=e.itemLead)||void 0===t?void 0:t.item)&&void 0!==i?i:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus),lead:this.convertBreakscapedStringToJsonText(null!==(o=null===(r=e.itemLead)||void 0===r?void 0:r.lead)&&void 0!==o?o:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus),hint:this.convertBreakscapedStringToJsonText(null!==(n=e.hint)&&void 0!==n?n:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus),instruction:this.convertBreakscapedStringToJsonText(null!==(s=e.instruction)&&void 0!==s?s:a.Breakscape.EMPTY_STRING,m.TextFormat.bitmarkMinusMinus)}}toExample(e,t){const{isExample:i,example:r,isDefaultExample:o}=e,{defaultExample:n,isBoolean:a}=t;if(!i)return{isExample:!1,example:null};let s;return s=o?a?v.BooleanUtils.toBoolean(n):this.convertBreakscapedStringToJsonText(n,m.TextFormat.bitmarkMinusMinus):a?v.BooleanUtils.toBoolean(r):this.convertBreakscapedStringToJsonText(r,m.TextFormat.bitmarkMinusMinus),{isExample:!0,example:s}}addProperty(e,t,i,r){if(void 0!==i){let o;Array.isArray(i)||(i=[i]),Array.isArray(i)&&i.length>0&&(i=a.Breakscape.unbreakscape(i),o=Array.isArray(i)&&r&&i.length>=1?i[i.length-1]:i),e[t]=o}}getZoomDisabled(e,t){return null!=t?t:!!s.Config.isOfBitType(e,[p.BitType.imageSeparator,p.BitType.pageBanner,p.BitType.imagesLogoGrave,p.BitType.prototypeImages])}getBitType(e){for(const t of e)if(t.key===l.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.bitType}}getTextFormat(e){var t;const i=this.getBitType(e);if(i){const r=s.Config.getBitConfig(i);for(const i of e)if(i.key===l.NodeType.bitsValue){const e=i.value;return null!==(t=m.TextFormat.fromValue(null==e?void 0:e.textFormat))&&void 0!==t?t:r.textFormatDefault}}return m.TextFormat.bitmarkMinusMinus}getResourceType(e){for(const t of e)if(t.key===l.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.resourceType}}getInternalComments(e){if(this.getBitType(e))for(const t of e)if(t.key===l.NodeType.bitsValue){return t.value.internalComment}}convertBreakscapedStringToJsonText(e,t){if(!(t===m.TextFormat.bitmarkMinusMinus||t===m.TextFormat.bitmarkPlusPlus))return a.Breakscape.unbreakscape(e,{bitTagOnly:!0})||a.Breakscape.EMPTY_STRING;if(this.options.textAsPlainText)return a.Breakscape.unbreakscape(e)||a.Breakscape.EMPTY_STRING;return this.textParser.toAst(e,{textFormat:t})}concatenatePlainTextWithJsonTexts(e,t,i){var r;if(Array.isArray(e)){if(i=i.trim()){const o=i.split("\n"),n=[];for(let e=0;e<t;e++)n.push({type:T.TextNodeType.hardBreak});for(let e=0;e<o.length;e++){const t=o[e];t&&n.push({text:t,type:T.TextNodeType.text}),e<o.length-1&&n.push({type:T.TextNodeType.hardBreak})}const a=e[e.length-1];a&&a.type===T.TextNodeType.paragraph?a.content=[...null!==(r=a.content)&&void 0!==r?r:[],...n]:e.push({type:T.TextNodeType.paragraph,content:n,attrs:{}})}return e}return`${null!=e?e:""}${"\n".repeat(t)}${null!=i?i:""}`}replacePlaceholderWithBodyBit(e,t,i){const r=(e,o,n)=>{if(Array.isArray(e))for(let t=0;t<e.length;t++){const i=e[t];if(r(i,e,t))return!0}else{if("bit"===e.type&&e.index===i)return o[n]=t,!0;if(e.content){if(r(e.content,e,"content"))return!0}}return!1};r(e,null,null)}writeInlineDebug(e,t){let i=e;t.open?i=`<${e}>`:t.close?i=`</${e}>`:t.single&&(i=`<${e} />`),this.writeString(i)}writeString(e){null!=e&&this.write(`${e}`)}createBitJson(e){return{type:e.isCommented?p.BitType._comment:e.bitType,originalType:e.isCommented?e.bitType:void 0,format:e.textFormat,bitLevel:e.bitLevel,id:void 0,internalComment:void 0,externalId:void 0,spaceId:void 0,padletId:void 0,jupyterId:void 0,jupyterExecutionCount:void 0,isPublic:void 0,aiGenerated:void 0,machineTranslated:void 0,analyticsTag:void 0,feedbackEngine:void 0,feedbackType:void 0,disableFeedback:void 0,releaseVersion:void 0,releaseKind:void 0,releaseDate:void 0,book:void 0,ageRange:void 0,lang:void 0,language:void 0,publisher:void 0,publisherName:void 0,theme:void 0,computerLanguage:void 0,target:void 0,slug:void 0,tag:void 0,reductionTag:void 0,bubbleTag:void 0,levelCEFRp:void 0,levelCEFR:void 0,levelILR:void 0,levelACTFL:void 0,icon:void 0,iconTag:void 0,colorTag:void 0,flashcardSet:void 0,subtype:void 0,bookAlias:void 0,coverImage:void 0,coverColor:void 0,publications:void 0,author:void 0,subject:void 0,date:void 0,dateEnd:void 0,location:void 0,kind:void 0,hasMarkAsDone:void 0,processHandIn:void 0,action:void 0,showInIndex:void 0,blockId:void 0,pageNo:void 0,x:void 0,y:void 0,width:void 0,height:void 0,index:void 0,classification:void 0,availableClassifications:void 0,allowedBit:void 0,tableFixedHeader:void 0,tableSearch:void 0,tableSort:void 0,tablePagination:void 0,tablePaginationLimit:void 0,tableHeight:void 0,tableWhitespaceNoWrap:void 0,tableAutoWidth:void 0,tableResizableColumns:void 0,quizCountItems:void 0,quizStrikethroughSolutions:void 0,codeLineNumbers:void 0,codeMinimap:void 0,stripePricingTableId:void 0,stripePublishableKey:void 0,thumbImage:void 0,scormSource:void 0,posterImage:void 0,focusX:void 0,focusY:void 0,pointerLeft:void 0,pointerTop:void 0,listItemIndent:void 0,backgroundWallpaper:void 0,hasBookNavigation:void 0,duration:void 0,deeplink:void 0,externalLink:void 0,externalLinkText:void 0,videoCallLink:void 0,vendorUrl:void 0,search:void 0,list:void 0,textReference:void 0,isTracked:void 0,isInfoOnly:void 0,imageFirst:void 0,activityType:void 0,labelTrue:void 0,labelFalse:void 0,content2Buy:void 0,mailingList:void 0,buttonCaption:void 0,callToActionUrl:void 0,caption:void 0,quotedPerson:void 0,reasonableNumOfChars:void 0,resolved:void 0,resolvedDate:void 0,resolvedBy:void 0,maxCreatedBits:void 0,maxDisplayLevel:void 0,page:void 0,productId:void 0,product:void 0,productVideo:void 0,productFolder:void 0,technicalTerm:void 0,servings:void 0,ratingLevelStart:void 0,ratingLevelEnd:void 0,ratingLevelSelected:void 0,title:void 0,subtitle:void 0,level:void 0,toc:void 0,progress:void 0,anchor:void 0,reference:void 0,referenceEnd:void 0,item:void 0,lead:void 0,pageNumber:void 0,marginNumber:void 0,hint:void 0,instruction:void 0,isExample:void 0,example:void 0,person:void 0,marks:void 0,extraProperties:void 0,body:void 0,imagePlaceholder:void 0,resource:void 0,logos:void 0,images:void 0,statement:void 0,isCorrect:void 0,sampleSolution:void 0,additionalSolutions:void 0,partialAnswer:void 0,elements:void 0,cards:void 0,definitions:void 0,statements:void 0,responses:void 0,quizzes:void 0,heading:void 0,pairs:void 0,matrix:void 0,choices:void 0,questions:void 0,captionDefinitionList:void 0,listItems:void 0,sections:void 0,placeholders:void 0,footer:void 0}}cleanAndSetDefaultsForBitJson(e){const t=s.Config.getBitType(e.type),i=e.format,r=this.options.textAsPlainText;if(null==e.originalType&&(e.originalType=void 0),e.item||(e.item=void 0),s.Config.isOfBitType(t,[p.BitType._error,p.BitType._comment]))delete e.format;else{let i=!1,r=!1;s.Config.isOfBitType(t,[p.BitType.page])||(null==e.item&&(e.item=this.textDefault),null==e.lead&&(e.lead=this.textDefault),null==e.hint&&(e.hint=this.textDefault),null==e.instruction&&(e.instruction=this.textDefault),null==e.pageNumber&&(e.pageNumber=this.textDefault),null==e.marginNumber&&(e.marginNumber=this.textDefault)),null==e.body&&(e.body=this.bodyDefault),s.Config.isOfBitType(t,[p.BitType.article]),s.Config.isOfBitType(t,[p.BitType.example])&&(i=!0,r=!0),s.Config.isOfBitType(t,[p.BitType.multipleChoice1,p.BitType.multipleResponse1,p.BitType.multipleChoiceText,p.BitType.highlightText,p.BitType.gapText,p.BitType.gapTextInstructionGrouped,p.BitType.clozeAndMultipleChoiceText,p.BitType.sequence,p.BitType.mark,p.BitType.flashcard,p.BitType.definitionList])&&(i=!0,null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(t,[p.BitType.sequence])&&(i=!0,r=!0,null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(t,p.BitType.cloze)&&(i=!0,s.Config.isOfBitType(t,p.BitType.clozeSolutionGrouped)?(null==e.quizCountItems&&(e.quizCountItems=!0),null==e.quizStrikethroughSolutions&&(e.quizStrikethroughSolutions=!0)):s.Config.isOfBitType(t,p.BitType.clozeInstructionGrouped)&&(null==e.quizCountItems&&(e.quizCountItems=!0),null==e.quizStrikethroughSolutions&&(e.quizStrikethroughSolutions=!1))),s.Config.isOfBitType(t,[p.BitType.multipleChoice,p.BitType.multipleResponse])&&(i=!0,null==e.body&&(e.body=this.bodyDefault),null==e.footer&&(e.footer=this.textDefault)),s.Config.isOfBitType(t,p.BitType.essay)&&(i=!0,r=!0,null==e.body&&(e.body=this.bodyDefault),null==e.partialAnswer&&(e.partialAnswer="")),s.Config.isOfBitType(t,p.BitType.trueFalse1)&&(i=!0,r=!0,null==e.isCorrect&&(e.isCorrect=!1),null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(t,p.BitType.trueFalse)&&(i=!0,null==e.labelFalse&&(e.labelFalse=""),null==e.labelTrue&&(e.labelTrue=""),null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(t,p.BitType.chapter)&&(null==e.toc&&(e.toc=!0),null==e.progress&&(e.progress=!0),null==e.level&&(e.level=1),null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(t,p.BitType.interview)&&(i=!0,null==e.body&&(e.body=this.bodyDefault),null==e.footer&&(e.footer=this.textDefault),null==e.questions&&(e.questions=[])),t===p.BitType.matchMatrix&&(i=!0),s.Config.isOfBitType(t,p.BitType.match)&&(i=!0,null==e.heading&&(e.heading={})),s.Config.isOfBitType(t,p.BitType.learningPathBook)&&(null==e.isTracked&&(e.isTracked=!0),null==e.isInfoOnly&&(e.isInfoOnly=!1)),s.Config.isOfBitType(t,p.BitType.table)&&(null==e.tableFixedHeader&&(e.tableFixedHeader=!1),null==e.tableSearch&&(e.tableSearch=!1),null==e.tableSort&&(e.tableSort=!1),null==e.tablePagination&&(e.tablePagination=!1),null==e.tablePaginationLimit&&(e.tablePaginationLimit=0),null==e.tableHeight&&(e.tableHeight=0),null==e.tableWhitespaceNoWrap&&(e.tableWhitespaceNoWrap=!0),null==e.tableAutoWidth&&(e.tableAutoWidth=!0),null==e.tableResizableColumns&&(e.tableResizableColumns=!1)),s.Config.isOfBitType(t,[p.BitType.pageBanner,p.BitType.pageBuyButton,p.BitType.pageBuyButtonAlt,p.BitType.pageBuyButtonPromotion,p.BitType.pageFooter,p.BitType.pageOpenBook,p.BitType.pagePerson,p.BitType.pageProduct,p.BitType.pageProductList,p.BitType.pageProductVideo,p.BitType.pageProductVideoList,p.BitType.pageSectionFolder,p.BitType.pageSubscribe,p.BitType.pageSubpage])&&(null==e.slug&&(e.slug=""),null==e.body&&(e.body=this.bodyDefault),s.Config.isOfBitType(t,p.BitType.pageBuyButton)&&null==e.content2Buy&&(e.content2Buy="")),s.Config.isOfBitType(t,p.BitType.book)&&(null==e.hasMarkAsDone&&(e.hasMarkAsDone=!1),null==e.processHandIn&&(e.processHandIn=!1),null==e.isPublic&&(e.isPublic=!1)),t!==p.BitType.articleAi&&t!==p.BitType.noteAi&&t!==p.BitType.summaryAi||null==e.aiGenerated&&(e.aiGenerated=!0),s.Config.isOfBitType(t,[p.BitType.articleResponsive,p.BitType.pageArticleResponsive])&&null==e.imageFirst&&(e.imageFirst=!0),s.Config.isOfBitType(t,p.BitType.reviewNote)&&(null==e.resolved&&(e.resolved=!1),null==e.resolvedDate&&(e.resolvedDate=""),null==e.resolvedBy&&(e.resolvedBy="")),s.Config.isOfBitType(t,[p.BitType.imagesLogoGrave,p.BitType.prototypeImages])&&(t===p.BitType.imagesLogoGrave?null==e.logos&&(e.logos=[]):null==e.images&&(e.images=[])),s.Config.isOfBitType(t,[p.BitType.stepImageScreenshotWithPointer,p.BitType.surveyMatrix])&&(null==e.pointerTop&&(e.pointerTop=""),null==e.pointerLeft&&(e.pointerLeft=""),s.Config.isOfBitType(t,[p.BitType.surveyMatrix])&&null==e.buttonCaption&&(e.buttonCaption="")),s.Config.isOfBitType(t,[p.BitType.listItem])&&null==e.listItemIndent&&(e.listItemIndent=0),s.Config.isOfBitType(t,p.BitType.surveyRating)&&(null==e.ratingLevelStart&&(e.ratingLevelStart={level:0}),null==e.ratingLevelEnd&&(e.ratingLevelEnd={level:0})),s.Config.isOfBitType(t,p.BitType.vendorStripePricingTable)&&(null==e.stripePricingTableId&&(e.stripePricingTableId=""),null==e.stripePublishableKey&&(e.stripePublishableKey="")),s.Config.isOfBitType(t,p.BitType.callToAction)&&(null==e.buttonCaption&&(e.buttonCaption=""),null==e.callToActionUrl&&(e.callToActionUrl="")),s.Config.isOfBitType(t,p.BitType.module)&&null==e.hasBookNavigation&&(e.hasBookNavigation=!0),s.Config.isOfBitType(t,p.BitType.container)&&null==e.allowedBit&&(e.allowedBit=[]),i?null==e.isExample&&(e.isExample=!1):(delete e.isExample,delete e.example),r?null==e.example&&(e.example=null):delete e.example}return null==e.id&&delete e.id,null==e.internalComment&&delete e.internalComment,null==e.externalId&&delete e.externalId,null==e.spaceId&&delete e.spaceId,null==e.padletId&&delete e.padletId,null==e.jupyterId&&delete e.jupyterId,null==e.jupyterExecutionCount&&delete e.jupyterExecutionCount,null==e.isPublic&&delete e.isPublic,null==e.aiGenerated&&delete e.aiGenerated,null==e.machineTranslated&&delete e.machineTranslated,null==e.analyticsTag&&delete e.analyticsTag,null==e.feedbackEngine&&delete e.feedbackEngine,null==e.feedbackType&&delete e.feedbackType,null==e.disableFeedback&&delete e.disableFeedback,null==e.releaseVersion&&delete e.releaseVersion,null==e.releaseKind&&delete e.releaseKind,null==e.releaseDate&&delete e.releaseDate,null==e.book&&delete e.book,null==e.ageRange&&delete e.ageRange,null==e.lang&&delete e.lang,null==e.language&&delete e.language,null==e.publisher&&delete e.publisher,null==e.publisherName&&delete e.publisherName,null==e.theme&&delete e.theme,null==e.computerLanguage&&delete e.computerLanguage,null==e.target&&delete e.target,null==e.slug&&delete e.slug,null==e.tag&&delete e.tag,null==e.reductionTag&&delete e.reductionTag,null==e.bubbleTag&&delete e.bubbleTag,null==e.levelCEFRp&&delete e.levelCEFRp,null==e.levelCEFR&&delete e.levelCEFR,null==e.levelILR&&delete e.levelILR,null==e.levelACTFL&&delete e.levelACTFL,null==e.icon&&delete e.icon,null==e.iconTag&&delete e.iconTag,null==e.colorTag&&delete e.colorTag,null==e.flashcardSet&&delete e.flashcardSet,null==e.subtype&&delete e.subtype,null==e.bookAlias&&delete e.bookAlias,null==e.coverImage&&delete e.coverImage,null==e.coverColor&&delete e.coverColor,null==e.publications&&delete e.publications,null==e.author&&delete e.author,null==e.subject&&delete e.subject,null==e.date&&delete e.date,null==e.dateEnd&&delete e.dateEnd,null==e.location&&delete e.location,null==e.kind&&delete e.kind,null==e.hasMarkAsDone&&delete e.hasMarkAsDone,null==e.processHandIn&&delete e.processHandIn,null==e.action&&delete e.action,null==e.showInIndex&&delete e.showInIndex,null==e.blockId&&delete e.blockId,null==e.pageNo&&delete e.pageNo,null==e.x&&delete e.x,null==e.y&&delete e.y,null==e.width&&delete e.width,null==e.height&&delete e.height,null==e.index&&delete e.index,null==e.classification&&delete e.classification,null==e.availableClassifications&&delete e.availableClassifications,null==e.allowedBit&&delete e.allowedBit,null==e.tableFixedHeader&&delete e.tableFixedHeader,null==e.tableSearch&&delete e.tableSearch,null==e.tableSort&&delete e.tableSort,null==e.tablePagination&&delete e.tablePagination,null==e.tablePaginationLimit&&delete e.tablePaginationLimit,null==e.tableHeight&&delete e.tableHeight,null==e.tableWhitespaceNoWrap&&delete e.tableWhitespaceNoWrap,null==e.tableAutoWidth&&delete e.tableAutoWidth,null==e.tableResizableColumns&&delete e.tableResizableColumns,null==e.quizCountItems&&delete e.quizCountItems,null==e.quizStrikethroughSolutions&&delete e.quizStrikethroughSolutions,null==e.codeLineNumbers&&delete e.codeLineNumbers,null==e.codeMinimap&&delete e.codeMinimap,null==e.stripePricingTableId&&delete e.stripePricingTableId,null==e.stripePublishableKey&&delete e.stripePublishableKey,null==e.thumbImage&&delete e.thumbImage,null==e.scormSource&&delete e.scormSource,null==e.posterImage&&delete e.posterImage,null==e.focusX&&delete e.focusX,null==e.focusY&&delete e.focusY,null==e.pointerLeft&&delete e.pointerLeft,null==e.pointerTop&&delete e.pointerTop,null==e.listItemIndent&&delete e.listItemIndent,null==e.backgroundWallpaper&&delete e.backgroundWallpaper,null==e.hasBookNavigation&&delete e.hasBookNavigation,null==e.duration&&delete e.duration,null==e.deeplink&&delete e.deeplink,null==e.externalLink&&delete e.externalLink,null==e.externalLinkText&&delete e.externalLinkText,null==e.videoCallLink&&delete e.videoCallLink,null==e.vendorUrl&&delete e.vendorUrl,null==e.search&&delete e.search,null==e.list&&delete e.list,null==e.textReference&&delete e.textReference,null==e.isTracked&&delete e.isTracked,null==e.isInfoOnly&&delete e.isInfoOnly,null==e.imageFirst&&delete e.imageFirst,null==e.activityType&&delete e.activityType,null==e.labelTrue&&delete e.labelTrue,null==e.labelFalse&&delete e.labelFalse,null==e.content2Buy&&delete e.content2Buy,null==e.mailingList&&delete e.mailingList,null==e.buttonCaption&&delete e.buttonCaption,null==e.callToActionUrl&&delete e.callToActionUrl,null==e.caption&&delete e.caption,null==e.quotedPerson&&delete e.quotedPerson,null==e.resolved&&delete e.resolved,null==e.resolvedDate&&delete e.resolvedDate,null==e.resolvedBy&&delete e.resolvedBy,null==e.maxCreatedBits&&delete e.maxCreatedBits,null==e.maxDisplayLevel&&delete e.maxDisplayLevel,null==e.page&&delete e.page,null==e.productId&&delete e.productId,null==e.product&&delete e.product,null==e.productVideo&&delete e.productVideo,null==e.productFolder&&delete e.productFolder,null==e.technicalTerm&&delete e.technicalTerm,null==e.servings&&delete e.servings,null==e.ratingLevelStart&&delete e.ratingLevelStart,null==e.ratingLevelEnd&&delete e.ratingLevelEnd,null==e.ratingLevelSelected&&delete e.ratingLevelSelected,null==e.title&&delete e.title,null==e.subtitle&&delete e.subtitle,null==e.level&&delete e.level,null==e.toc&&delete e.toc,null==e.progress&&delete e.progress,null==e.anchor&&delete e.anchor,null==e.reference&&delete e.reference,null==e.referenceEnd&&delete e.referenceEnd,null==e.item&&delete e.item,null==e.lead&&delete e.lead,null==e.pageNumber&&delete e.pageNumber,null==e.marginNumber&&delete e.marginNumber,null==e.hint&&delete e.hint,null==e.instruction&&delete e.instruction,void 0===e.example&&delete e.example,null==e.isExample&&delete e.isExample,null==e.marks&&delete e.marks,null==e.extraProperties&&delete e.extraProperties,null==e.body&&i!==m.TextFormat.json&&delete e.body,null!=e.placeholders&&0!==Object.keys(e.placeholders).length||delete e.placeholders,null==e.imagePlaceholder&&delete e.imagePlaceholder,null==e.resource&&delete e.resource,null==e.logos&&delete e.logos,null==e.images&&delete e.images,null==e.statement&&delete e.statement,null==e.isCorrect&&delete e.isCorrect,null==e.sampleSolution&&delete e.sampleSolution,null==e.additionalSolutions&&delete e.additionalSolutions,null==e.partialAnswer&&delete e.partialAnswer,null==e.elements&&delete e.elements,null==e.cards&&delete e.cards,null==e.definitions&&delete e.definitions,null==e.statements&&delete e.statements,null==e.responses&&delete e.responses,null==e.quizzes&&delete e.quizzes,null==e.heading&&delete e.heading,null==e.pairs&&delete e.pairs,null==e.matrix&&delete e.matrix,null==e.table&&delete e.table,null==e.choices&&delete e.choices,null==e.questions&&delete e.questions,null==e.captionDefinitionList&&delete e.captionDefinitionList,null==e.listItems&&delete e.listItems,null==e.sections&&delete e.sections,r&&null!=e.placeholders||delete e.placeholders,null==e.footer&&delete e.footer,e}write(e){return this.writer.write(e),this}writeLine(e){return this.writer.writeLine(e),this}writeLines(e,t){return this.writer.writeLines(e,t),this}writeWhiteSpace(){return this.writer.writeWhiteSpace(),this}}t.JsonGenerator=x},7984:function(e,t,i){var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonObjectGenerator=void 0;const o=i(6772),n=i(2497);t.JsonObjectGenerator=class{constructor(e){this.writer=new o.StringWriter,this.generator=new n.JsonGenerator(this.writer,e)}generate(e){return r(this,void 0,void 0,(function*(){return yield this.generator.generate(e),JSON.parse(this.writer.getString())}))}generateSync(e){return this.generator.generateSync(e),JSON.parse(this.writer.getString())}}},98:function(e,t,i){var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonStringGenerator=void 0;const o=i(6772),n=i(2497);t.JsonStringGenerator=class{constructor(e){this.writer=new o.StringWriter,this.generator=new n.JsonGenerator(this.writer,e)}generate(e){return r(this,void 0,void 0,(function*(){return yield this.generator.generate(e),this.writer.getString()}))}generateSync(e){return this.generator.generateSync(e),this.writer.getString()}}},431:function(e,t,i){var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TextGenerator=void 0;const o=i(5126),n=i(7735),a=i(126),s=i(3811),l=i(385),p=i(2483),c=i(9554),u=i(4),g={debugGenerationInline:!1},y="==",d={[p.TextMarkType.bold]:"**",[p.TextMarkType.light]:"``",[p.TextMarkType.italic]:"__",[p.TextMarkType.highlight]:"!!"},f=[p.TextMarkType.bold,p.TextMarkType.light,p.TextMarkType.italic,p.TextMarkType.highlight],m=[p.TextMarkType.strike,p.TextMarkType.subscript,p.TextMarkType.superscript,p.TextMarkType.ins,p.TextMarkType.del,p.TextMarkType.underline,p.TextMarkType.doubleUnderline,p.TextMarkType.circle,p.TextMarkType.languageEm,p.TextMarkType.userUnderline,p.TextMarkType.userDoubleUnderline,p.TextMarkType.userStrike,p.TextMarkType.userCircle,p.TextMarkType.userHighlight,p.TextMarkType.ref,p.TextMarkType.xref,p.TextMarkType.footnote,p.TextMarkType.footnoteStar,p.TextMarkType.var,p.TextMarkType.code,p.TextMarkType.timer,p.TextMarkType.duration,p.TextMarkType.color,p.TextMarkType.comment],T=new RegExp(/(\n|\r\n)/,"g"),h=new RegExp(/https?:\/\/|mailto:(.*)/,"g"),b="enter",v="between",B="exit";class C extends u.AstWalkerGenerator{constructor(e,t){var i,r;super(),this.ast=new o.Ast,this.textFormat=l.TextFormat.bitmarkMinusMinus,this.writerText="",this.nodeIndex=0,this.currentIndent=0,this.prevIndent=0,this.indentationStringCache="",this.inCodeBlock=!1,this.exitedCodeBlock=!1,this.inBulletList=!1,this.placeholderIndex=0,this.placeholders={},this.bitmarkVersion=null!==(i=s.BitmarkVersion.fromValue(e))&&void 0!==i?i:s.DEFAULT_BITMARK_VERSION,this.options=Object.assign(Object.assign({},g),t),this.debugGenerationInline=null!==(r=this.options.debugGenerationInline)&&void 0!==r&&r,this.bitmarkVersion,s.BitmarkVersion.v2,this.enter=this.enter.bind(this),this.between=this.between.bind(this),this.exit=this.exit.bind(this),this.leaf=this.leaf.bind(this)}generate(e,t){return r(this,void 0,void 0,(function*(){return this.resetState(t),this.walkAndWrite(e),this.writerText}))}generateSync(e,t){return this.resetState(t),this.walkAndWrite(e),this.writerText}getPlaceholders(){return this.placeholders}resetState(e){this.printed=!1,this.textFormat=e,this.writerText="",this.nodeIndex=0,this.currentIndent=0,this.prevIndent=0,this.indentationStringCache="",this.inCodeBlock=!1,this.exitedCodeBlock=!1,this.inBulletList=!1,this.placeholderIndex=0,this.placeholders={}}walkAndWrite(e){this.ast.walk(e,a.NodeType.textAst,this,void 0)}enter_textAstValue(e,t){return this.handleEnterNode(e.value,t)}between_textAstValue(e,t,i,r){return this.handleBetweenNode(e.value,t,i,r)}exit_textAstValue(e,t){return this.handleExitNode(e.value,t)}enter_contentValueValue(e,t){return this.handleEnterNode(e.value,t)}between_contentValueValue(e,t,i,r){this.handleBetweenNode(e.value,t,i,r)}exit_contentValueValue(e,t){return this.handleExitNode(e.value,t)}handleEnterNode(e,t){switch(this.handleIndent(e),e.type){case c.TextNodeType.paragraph:this.writeParagraph(e);break;case c.TextNodeType.hardBreak:this.writeHardBreak(e);break;case c.TextNodeType.text:this.writeMarks(e,b),this.writeText(e),this.writeMarks(e,v);break;case c.TextNodeType.heading:this.writeHeading(e);break;case c.TextNodeType.section:this.writeSection(e);break;case c.TextNodeType.listItem:case c.TextNodeType.taskItem:this.writeBullet(e,t);break;case c.TextNodeType.image:this.writeImage(e);break;case c.TextNodeType.codeBlock:this.inCodeBlock=!0,this.writeCodeBlock(e);break;case c.TextNodeType.noBulletList:case c.TextNodeType.bulletList:case c.TextNodeType.orderedList:case c.TextNodeType.orderedListRoman:case c.TextNodeType.orderedListRomanLower:case c.TextNodeType.letteredList:case c.TextNodeType.letteredListLower:case c.TextNodeType.taskList:this.inBulletList=!0;break;case c.TextNodeType.gap:case c.TextNodeType.select:case c.TextNodeType.highlight:case c.TextNodeType.mark:return this.writeBodyBit(e),!1}this.exitedCodeBlock=!1}handleBetweenNode(e,t,i,r){e.type}handleExitNode(e,t){switch(e.type){case c.TextNodeType.text:this.writeMarks(e,B);break;case c.TextNodeType.paragraph:this.textFormat!==l.TextFormat.bitmarkMinusMinus&&this.writeNL();break;case c.TextNodeType.heading:case c.TextNodeType.section:case c.TextNodeType.image:this.writeNL(),this.writeNL();break;case c.TextNodeType.codeBlock:this.writeNL(),this.writeNL(),this.inCodeBlock=!1,this.exitedCodeBlock=!0;break;case c.TextNodeType.noBulletList:case c.TextNodeType.bulletList:case c.TextNodeType.orderedList:case c.TextNodeType.orderedListRoman:case c.TextNodeType.orderedListRomanLower:case c.TextNodeType.letteredList:case c.TextNodeType.letteredListLower:case c.TextNodeType.taskList:this.currentIndent<=1&&(this.writeNL(),this.inBulletList=!1)}this.handleDedent(e),this.nodeIndex++}handleIndent(e){switch(e.type){case c.TextNodeType.noBulletList:case c.TextNodeType.bulletList:case c.TextNodeType.orderedList:case c.TextNodeType.orderedListRoman:case c.TextNodeType.orderedListRomanLower:case c.TextNodeType.letteredList:case c.TextNodeType.letteredListLower:case c.TextNodeType.taskList:this.currentIndent++}}handleDedent(e){switch(e.type){case c.TextNodeType.noBulletList:case c.TextNodeType.bulletList:case c.TextNodeType.orderedList:case c.TextNodeType.orderedListRoman:case c.TextNodeType.orderedListRomanLower:case c.TextNodeType.letteredList:case c.TextNodeType.letteredListLower:case c.TextNodeType.taskList:this.currentIndent--}}getLinkHref(e){if(e.type===c.TextNodeType.text&&e.marks){const t=e.marks.reduce(((e,t)=>{var i;if(t.type===p.TextMarkType.link){const e=null===(i=t.attrs)||void 0===i?void 0:i.href;if(e)return e}return e}),"");if(t)return t}return!1}getIndentationString(){if(this.currentIndent===this.prevIndent)return this.indentationStringCache;let e="";for(let t=1;t<this.currentIndent;t++)e+="\t";return this.indentationStringCache=e,this.prevIndent=this.currentIndent,e}writeBodyBit(e){const t=`[!${this.placeholderIndex}]`;this.writerText+=t,this.placeholders[t]=e,this.placeholderIndex++}writeText(e){if(null==e.text)return;if(this.writeLink(e))return;this.inCodeBlock;let t=e.text;if(t=n.Breakscape.breakscape(t),this.currentIndent>1){const e=this.getIndentationString();t=t.replace(T,`$1${e}`)}this.write(t)}writeLink(e){if(null==e.text)return!1;const t=this.getLinkHref(e);if(t){let i=n.Breakscape.breakscape(e.text);if(this.currentIndent>1){const e=this.getIndentationString();i=i.replace(T,`$1${e}`)}return t.replace(h,"$1")===i?this.write(t):(i=`==${i}==|link:${t}|`,this.write(i)),!0}return!1}writeMarks(e,t){if(e.marks){if(0===e.marks.length)return void this.writeMarkTextWrapper(y);const i=1===e.marks.length,r=e.marks.reduce(((e,t)=>e||(-1!==f.indexOf(t.type)?i?d[t.type]:y:-1!==m.indexOf(t.type)?y:e)),void 0);if(null!=r){if(t!=b&&t!=v||this.writeMarkTextWrapper(r),t==v)for(const t of e.marks)-1!==f.indexOf(t.type)?i||(this.writeInlineMarkStartEnd(),this.writeInlineMark(t)):p.TextMarkType.comment===t.type?(this.writeInlineMarkStartEnd(),this.writeCommentMark(t)):p.TextMarkType.ref===t.type?(this.writeInlineMarkStartEnd(),this.writeRefMark(t)):p.TextMarkType.xref===t.type?(this.writeInlineMarkStartEnd(),this.writeXRefMark(t)):p.TextMarkType.footnote===t.type?(this.writeInlineMarkStartEnd(),this.writeFootnoteMark(t)):p.TextMarkType.footnoteStar===t.type?(this.writeInlineMarkStartEnd(),this.writeFootnoteStarMark(t)):-1!==m.indexOf(t.type)&&(this.writeInlineMarkStartEnd(),this.writeInlineMark(t));if(t==B){let t=!1;for(const r of e.marks)-1!==f.indexOf(r.type)?i||(t=!0):p.TextMarkType.comment!==r.type&&p.TextMarkType.ref!==r.type&&p.TextMarkType.xref!==r.type&&p.TextMarkType.footnote!==r.type&&p.TextMarkType.footnoteStar!==r.type&&-1===m.indexOf(r.type)||(t=!0);t&&this.writeInlineMarkStartEnd()}}}}writeParagraph(e){var t,i,r,o,n;if(this.textFormat===l.TextFormat.bitmarkPlusPlus){if(this.inBulletList)return;const a=null!==(i=null===(t=e.content)||void 0===t?void 0:t.length)&&void 0!==i?i:0;if(0===this.nodeIndex){if(1===a){const t=(null===(r=e.content)||void 0===r?void 0:r[0].type)===c.TextNodeType.text,i=null!==(n=null===(o=e.content)||void 0===o?void 0:o[0].text)&&void 0!==n?n:"";if(!t||""!==i)return}if(a>1)return}this.write("|"),this.writeNL(),this.exitedCodeBlock&&this.writeNL()}}writeHardBreak(e){if(this.writeNL(),this.currentIndent>1){const e=this.getIndentationString();this.write(e)}}writeHeading(e){var t,i;let r="";const o=null!==(i=null===(t=e.attrs)||void 0===t?void 0:t.level)&&void 0!==i?i:1;for(let e=0;e<+o;e++)r+="#";r+=" ",this.write(r)}writeSection(e){let t="";t=e.section?`|${e.section}: `:"|",this.write(t)}writeBullet(e,t){var i,r,o,n;let a=this.getIndentationString();const s=this.getParentNode(t,2),l=null==s?void 0:s.value,p=null==l?void 0:l.type,u=null!==(r=null===(i=null==l?void 0:l.attrs)||void 0===i?void 0:i.start)&&void 0!==r?r:1;if(p===c.TextNodeType.bulletList)a+="• ";else if(p===c.TextNodeType.noBulletList)a+="•_ ";else if(p===c.TextNodeType.orderedList)a+=`•${u} `;else if(p===c.TextNodeType.orderedListRoman)a+=`•${u}I `;else if(p===c.TextNodeType.orderedListRomanLower)a+=`•${u}i `;else if(p===c.TextNodeType.letteredList)a+="•A ";else if(p===c.TextNodeType.letteredListLower)a+="•a ";else if(p===c.TextNodeType.taskList){a+=null!==(n=null===(o=e.attrs)||void 0===o?void 0:o.checked)&&void 0!==n&&n?"•+ ":"•- "}a&&this.write(a)}writeImage(e){if(null==e.attrs||!e.attrs.src)return;const t=e.attrs;let i=`|image:${t.src}|`;for(const[e,r]of Object.entries(t))switch(e){case"textAlign":"left"!==r&&(i+=`@captionAlign:${r}|`);break;case"alignment":"center"!==r&&r&&(i+=`@alignment:${r}|`);break;case"title":r&&(i+=`@caption:${r}|`);break;case"class":"center"!==r&&r&&(i+=`@align:${r}|`);break;case"comment":r&&(i+=`#${r}|`);break;case"alt":case"width":case"height":default:r&&(i+=`@${e}:${r}|`);case"src":}this.write(i)}writeCodeBlock(e){if(null==e.attrs||!e.attrs.language)return;const t=`|code:${e.attrs.language}\n`;this.write(t)}writeMarkTextWrapper(e){e&&this.write(e)}writeInlineMark(e){let t=`${e.type}`;if(e.attrs)for(const[i,r]of Object.entries(e.attrs))("language"===i&&"plain text"!==r||"color"===i||"name"===i||"duration"===i)&&(t=`${t}:${r}`);this.write(t)}writeCommentMark(e){const t=`#${e.comment||""}`;this.write(t)}writeRefMark(e){var t,i;const r=`►${null!==(i=null===(t=e.attrs)||void 0===t?void 0:t.reference)&&void 0!==i?i:""}`;this.write(r)}writeXRefMark(e){var t,i;const r=`xref:${null!==(i=null===(t=e.attrs)||void 0===t?void 0:t.xref)&&void 0!==i?i:""}`;this.write(r)}writeFootnoteMark(e){this.write("footnote:")}writeFootnoteStarMark(e){this.write("footnote*:")}writeInlineMarkStartEnd(){this.write("|")}writeString(e){null!=e&&this.write(`${e}`)}writeNL(){this.options.debugGenerationInline?this.write("\\n"):this.write("\n")}writeInlineDebug(e,t){let i=e;t.open?i=`<${e}>`:t.close?i=`</${e}>`:t.single&&(i=`<${e} />`),this.writeString(i)}getBitType(e){for(const t of e)if(t.key===a.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.bitType}}write(e){return this.writerText+=e,this}writeLine(e){return this.write(`${e}\n`),this}writeLines(e,t){for(const i of e)this.write(`${i}${null!=t?t:""}\n`);return this}writeWhiteSpace(){return this.write(" "),this}}t.TextGenerator=C},3881:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InfoBuilder=void 0;const r=i(2028),o=i(5854);t.InfoBuilder=class{getSupportedBits(e){var t,i;const n=null===(t=null==e?void 0:e.includeNonDeprecated)||void 0===t||t,a=null!==(i=null==e?void 0:e.includeDeprecated)&&void 0!==i&&i,s=[];for(const e of o.BitType.values()){if(e===o.BitType._error||e===o.BitType._comment)continue;const t=r.Config.getBitType(e),i=r.Config.getBitConfig(t),l=i.inheritedBitTypes.length>0?i.inheritedBitTypes:void 0;(n&&!i.deprecated||a&&i.deprecated)&&s.push({name:e,since:i.since,deprecated:i.deprecated,inheritedBitTypes:l})}return s}getSupportedBitConfigs(){const e=[];for(const t of o.BitType.values()){if(t===o.BitType._error||t===o.BitType._comment)continue;const i=r.Config.getBitType(t),n=r.Config.getBitConfig(i);e.push(n)}return e}}},1412:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(){if(n)return;(0,o.initEnv)(r.buildInfo.name,r.buildInfo.version),n=!0};const r=i(1464),o=i(6936);i(2028);let n=!1},126:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=void 0;const r=(0,i(4718).superenum)({unknown:"unknown",action:"action",actionValue:"actionValue",activityType:"activityType",activityTypeValue:"activityTypeValue",additionalSolutions:"additionalSolutions",additionalSolutionsValue:"additionalSolutionsValue",ageRange:"ageRange",ageRangeValue:"ageRangeValue",aiGenerated:"aiGenerated",aiGeneratedValue:"aiGeneratedValue",alias:"alias",alignment:"alignment",allowedBit:"allowedBit",allowedBitValue:"allowedBitValue",alt:"alt",alternativeAnswers:"alternativeAnswers",alternativeAnswersValue:"alternativeAnswersValue",alternativeDefinitions:"alternativeDefinitions",alternativeDefinitionsValue:"alternativeDefinitionsValue",analyticsTag:"analyticsTag",analyticsTagValue:"analyticsTagValue",anchor:"anchor",answer:"answer",attrs:"attrs",audio:"audio",author:"author",authorValue:"authorValue",availableClassifications:"availableClassifications",availableClassificationsValue:"availableClassificationsValue",avatarImage:"avatarImage",backgroundWallpaper:"backgroundWallpaper",backgroundWallpaperValue:"backgroundWallpaperValue",bitLevel:"bitLevel",bitmarkAst:"bitmarkAst",bitmarkVersion:"bitmarkVersion",bits:"bits",bitsValue:"bitsValue",bitType:"bitType",blockId:"blockId",blockIdValue:"blockIdValue",body:"body",bodyJson:"bodyJson",bodyParts:"bodyParts",bodyPartsValue:"bodyPartsValue",bodyPartText:"bodyPartText",bodyText:"bodyText",book:"book",bookAlias:"bookAlias",bookAliasValue:"bookAliasValue",bot:"bot",botResponses:"botResponses",botResponsesValue:"botResponsesValue",botValue:"botValue",bubbleTag:"bubbleTag",bubbleTagValue:"bubbleTagValue",buttonCaption:"buttonCaption",buttonCaptionValue:"buttonCaptionValue",callToActionUrl:"callToActionUrl",callToActionUrlValue:"callToActionUrlValue",caption:"caption",captionDefinitionList:"captionDefinitionList",captionValue:"captionValue",cardBits:"cardBits",cardBitsValue:"cardBitsValue",cardNode:"cardNode",cells:"cells",cellsValue:"cellsValue",checked:"checked",choices:"choices",choicesValue:"choicesValue",class:"class",classification:"classification",classificationValue:"classificationValue",codeLineNumbers:"codeLineNumbers",codeLineNumbersValue:"codeLineNumbersValue",codeMinimap:"codeMinimap",codeMinimapValue:"codeMinimapValue",color:"color",colorTag:"colorTag",colorTagValue:"colorTagValue",column:"column",columns:"columns",columnsValue:"columnsValue",comment:"comment",commentedBitType:"commentedBitType",computerLanguage:"computerLanguage",computerLanguageValue:"computerLanguageValue",content:"contentValue",content2Buy:"content2Buy",contentValue:"contentValue",contentValueValue:"contentValueValue",copyright:"copyright",coverColor:"coverColor",coverColorValue:"coverColorValue",coverImage:"coverImage",coverImageValue:"coverImageValue",data:"data",date:"date",dateEnd:"dateEnd",dateEndValue:"dateEndValue",dateValue:"dateValue",decimalPlaces:"decimalPlaces",deeplink:"deeplink",deeplinkValue:"deeplinkValue",definitions:"definitions",definitionsValue:"definitionsValue",description:"description",descriptions:"descriptions",descriptionsValue:"descriptionsValue",disableCalculation:"disableCalculation",disableFeedback:"disableFeedback",disableFeedbackValue:"disableFeedbackValue",duration:"duration",durationValue:"durationValue",elements:"elements",elementsValue:"elementsValue",emphasis:"emphasis",end:"end",errors:"errors",errorsValue:"errorsValue",example:"example",exampleValue:"exampleValue",externalId:"externalId",externalIdValue:"externalIdValue",externalLink:"externalLink",externalLinkText:"externalLinkText",extraProperties:"extraProperties",feedback:"feedback",feedbackEngine:"feedbackEngine",feedbackEngineValue:"feedbackEngineValue",feedbackType:"feedbackType",flashcards:"flashcards",flashcardSet:"flashcardSet",flashcardSetValue:"flashcardSetValue",flashcardsValue:"flashcardsValue",focusX:"focusX",focusXValue:"focusXValue",focusY:"focusY",focusYValue:"focusYValue",footer:"footer",footerText:"footerText",forKeys:"forKeys",format:"format",forValues:"forValues",forValuesValue:"forValuesValue",gap:"gap",hasBookNavigation:"hasBookNavigation",hasBookNavigationValue:"hasBookNavigationValue",hasMarkAsDone:"hasMarkAsDone",hasMarkAsDoneValue:"hasMarkAsDoneValue",heading:"heading",height:"height",heightValue:"heightValue",highlight:"highlight",hint:"hint",href:"href",icon:"icon",iconTag:"iconTag",iconTagValue:"iconTagValue",iconValue:"iconValue",id:"id",idValue:"idValue",image:"image",imageFirst:"imageFirst",imageFirstValue:"imageFirstValue",imageLandscape:"imageLandscape",imagePlaceholder:"imagePlaceholder",imagePlaceholderValue:"imagePlaceholderValue",imagePortrait:"imagePortrait",imageSource:"imageSource",index:"index",indexValue:"indexValue",ingredients:"ingredients",ingredientsValue:"ingredientsValue",instruction:"instruction",internalComment:"internalComment",internalCommentValue:"internalCommentValue",isCaseSensitive:"isCaseSensitive",isCommented:"isCommented",isCorrect:"isCorrect",isDefaultExample:"isDefaultExample",isExample:"isExample",isInfoOnly:"isInfoOnly",isInfoOnlyValue:"isInfoOnlyValue",isPlain:"isPlain",isPublic:"isPublic",isPublicValue:"isPublicValue",isTracked:"isTracked",isTrackedValue:"isTrackedValue",item:"item",itemLead:"itemLead",jupyterExecutionCount:"jupyterExecutionCount",jupyterExecutionCountValue:"jupyterExecutionCountValue",jupyterId:"jupyterId",jupyterIdValue:"jupyterIdValue",key:"key",keyAudio:"keyAudio",keyImage:"keyImage",kind:"kind",kindValue:"kindValue",label:"label",labelFalse:"labelFalse",labelFalseValue:"labelFalseValue",labelTrue:"labelTrue",labelTrueValue:"labelTrueValue",lang:"lang",language:"language",languageValue:"languageValue",langValue:"langValue",lead:"lead",level:"level",levelACTFL:"levelACTFL",levelACTFLValue:"levelACTFLValue",levelCEFR:"levelCEFR",levelCEFRp:"levelCEFRp",levelCEFRpValue:"levelCEFRpValue",levelCEFRValue:"levelCEFRValue",levelILR:"levelILR",levelILRValue:"levelILRValue",license:"license",line:"line",list:"list",listItemIndent:"listItemIndent",listItemIndentValue:"listItemIndentValue",listValue:"listValue",location:"location",locationValue:"locationValue",machineTranslated:"machineTranslated",machineTranslatedValue:"machineTranslatedValue",mailingList:"mailingList",marginNumber:"marginNumber",mark:"mark",markConfig:"markConfig",markConfigValue:"markConfigValue",marks:"marks",marksValue:"marksValue",markup:"markup",matrix:"matrix",matrixValue:"matrixValue",maxCreatedBits:"maxCreatedBits",maxCreatedBitsValue:"maxCreatedBitsValue",maxDisplayLevel:"maxDisplayLevel",maxDisplayLevelValue:"maxDisplayLevelValue",message:"message",mockupId:"mockupId",name:"name",offset:"offset",options:"options",optionsValue:"optionsValue",original:"original",padletId:"padletId",padletIdValue:"padletIdValue",page:"page",pageNo:"pageNo",pageNoValue:"pageNoValue",pageNumber:"pageNumber",pageValue:"pageValue",pairs:"pairs",pairsValue:"pairsValue",parent:"parent",parser:"parser",partialAnswer:"partialAnswer",partialAnswerValue:"partialAnswerValue",person:"person",pointerLeft:"pointerLeft",pointerLeftValue:"pointerLeftValue",pointerTop:"pointerTop",pointerTopValue:"pointerTopValue",posterImage:"posterImage",posterImageValue:"posterImageValue",postfix:"postfix",prefix:"prefix",processHandIn:"processHandIn",processHandInValue:"processHandInValue",product:"product",productFolder:"productFolder",productFolderValue:"productFolderValue",productId:"productId",productIdValue:"productIdValue",productList:"productList",productListValue:"productListValue",productValue:"productValue",productVideo:"productVideo",productVideoList:"productVideoList",productVideoListValue:"productVideoListValue",productVideoValue:"productVideoValue",progress:"progress",progressValue:"progressValue",properties:"properties",property:"property",propertyKey:"propertyKey",propertyValue:"propertyValue",propertyValues:"propertyValues",provider:"provider",publications:"publications",publicationsValue:"publicationsValue",publisher:"publisher",publisherName:"publisherName",publisherNameValue:"publisherNameValue",publisherValue:"publisherValue",quantity:"quantity",question:"question",questions:"questions",questionsValue:"questionsValue",quizCountItems:"quizCountItems",quizCountItemsValue:"quizCountItemsValue",quizStrikethroughSolutions:"quizStrikethroughSolutions",quizStrikethroughSolutionsValue:"quizStrikethroughSolutionsValue",quizzes:"quizzes",quizzesValue:"quizzesValue",quotedPerson:"quotedPerson",ratingLevelEnd:"ratingLevelEnd",ratingLevelSelected:"ratingLevelSelected",ratingLevelSelectedValue:"ratingLevelSelectedValue",ratingLevelStart:"ratingLevelStart",reaction:"reaction",reasonableNumOfChars:"reasonableNumOfChars",reasonableNumOfCharsValue:"reasonableNumOfCharsValue",reductionTag:"reductionTag",reductionTagValue:"reductionTagValue",reference:"reference",referenceEnd:"referenceEnd",referenceProperty:"referenceProperty",referencePropertyValue:"referencePropertyValue",releaseDate:"releaseDate",releaseDateValue:"releaseDateValue",releaseKind:"releaseKind",releaseKindValue:"releaseKindValue",releaseVersion:"releaseVersion",releaseVersionValue:"releaseVersionValue",resolved:"resolved",resolvedBy:"resolvedBy",resolvedByValue:"resolvedByValue",resolvedDate:"resolvedDate",resolvedDateValue:"resolvedDateValue",resolvedValue:"resolvedValue",resources:"resources",resourcesValue:"resourcesValue",resourceType:"resourceType",response:"response",responses:"responses",responsesValue:"responsesValue",root:"root",rows:"rows",rowsValue:"rowsValue",rowsValueValue:"rowsValueValue",sampleSolution:"sampleSolution",sampleSolutionValue:"sampleSolutionValue",scormSource:"scormSource",scormSourceValue:"scormSourceValue",search:"search",searchValue:"searchValue",section:"section",select:"select",servings:"servings",servingsValue:"servingsValue",showInIndex:"showInIndex",showInIndexValue:"showInIndexValue",size:"size",slug:"slug",slugValue:"slugValue",solution:"solution",solutions:"solutions",solutionsValue:"solutionsValue",spaceId:"spaceId",spaceIdValue:"spaceIdValue",src:"src",src1x:"src1x",src2x:"src2x",src3x:"src3x",src4x:"src4x",start:"start",statement:"statement",statements:"statements",statementsValue:"statementsValue",statementText:"statementText",stripePricingTableId:"stripePricingTableId",stripePricingTableIdValue:"stripePricingTableIdValue",stripePublishableKey:"stripePublishableKey",stripePublishableKeyValue:"stripePublishableKeyValue",subject:"subject",subjectValue:"subjectValue",subtitle:"subtitle",subtype:"subtype",subtypeValue:"subtypeValue",table:"table",tableAutoWidth:"tableAutoWidth",tableAutoWidthValue:"tableAutoWidthValue",tableFixedHeader:"tableFixedHeader",tableFixedHeaderValue:"tableFixedHeaderValue",tableHeight:"tableHeight",tableHeightValue:"tableHeightValue",tablePagination:"tablePagination",tablePaginationLimit:"tablePaginationLimit",tablePaginationLimitValue:"tablePaginationLimitValue",tablePaginationValue:"tablePaginationValue",tableResizableColumns:"tableResizableColumns",tableResizableColumnsValue:"tableResizableColumnsValue",tableSearch:"tableSearch",tableSearchValue:"tableSearchValue",tableSort:"tableSort",tableSortValue:"tableSortValue",tableWhitespaceNoWrap:"tableWhitespaceNoWrap",tableWhitespaceNoWrapValue:"tableWhitespaceNoWrapValue",tag:"tag",tagValue:"tagValue",target:"target",targetValue:"targetValue",technicalTerm:"technicalTerm",technicalTermValue:"technicalTermValue",term:"term",text:"text",textAlign:"textAlign",textAst:"textAst",textAstValue:"textAstValue",textFormat:"textFormat",textReference:"textReference",textReferenceValue:"textReferenceValue",texts:"texts",textsValue:"textsValue",theme:"theme",themeValue:"themeValue",thumbImage:"thumbImage",thumbImageValue:"thumbImageValue",thumbnails:"thumbnails",thumbnailsValue:"thumbnailsValue",title:"title",toc:"toc",tocValue:"tocValue",trim:"trim",type:"type",typeAlias:"typeAlias",unit:"unit",unitAbbr:"unitAbbr",url:"url",value:"value",values:"values",valuesValue:"valuesValue",vendorUrl:"vendorUrl",vendorUrlValue:"vendorUrlValue",version:"version",videoCallLink:"videoCallLink",videoCallLinkValue:"videoCallLinkValue",warnings:"warnings",warningsValue:"warningsValue",width:"width",widthValue:"widthValue",x:"x",xValue:"xValue",y:"y",yValue:"yValue",zoomDisabled:"zoomDisabled"});t.NodeType=r},6634:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTagConfig=void 0;t.AbstractTagConfig=class{constructor(e,t,i,r,o,n,a,s,l){this.type=e,this.configKey=t,this.tag=i,this.maxCount=r,this.minCount=o,this.chain=n,this.jsonKey=a,this.astKey=s,this.deprecated=l}}},3619:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitConfig=void 0;const r=i(3778);t.BitConfig=class{constructor(e,t,i,r,o,n,a,s,l,p,c,u,g,y){this.tags={},this.since=e,this.bitType=t,this.inheritedBitTypes=i,this.inheritedBitTypesSet=new Set(i),this.textFormatDefault=r,this.tags=o,this.cardSet=n,this.deprecated=a,this.bodyAllowed=s??!0,this.bodyRequired=l,this.footerAllowed=p??!0,this.footerRequired=c,this.resourceAttachmentAllowed=u??!0,this.rootExampleType=g,this.comboResourceType=y}toString(e){const t=Object.assign({},e);let i=`[Bit]\n${this.bitType}`;this.inheritedBitTypes.length>0&&(i+="\n\n[Inheritance]",i+=`\n${this.inheritedBitTypes.join(" => ")}`),i+=`\n\n[Default text format]\n${this.textFormatDefault}`;const o=[];null!=this.since&&o.push(`since=${this.since}`),null!=this.deprecated&&o.push(`deprecated=${this.deprecated}`),this.bodyAllowed&&o.push("bodyAllowed"),this.bodyRequired&&o.push("bodyRequired"),this.footerAllowed&&o.push("footerAllowed"),this.footerRequired&&o.push("footerRequired"),this.resourceAttachmentAllowed&&o.push("resourceAttachmentAllowed"),null!=this.rootExampleType&&o.push(`rootExampleType=${this.rootExampleType}`),null!=this.comboResourceType&&o.push(`comboResourceType=${this.comboResourceType}`),i+=`\n\n[Flags]\n${o.join(", ")}`,i+="\n\n[Tags]";for(const e of Object.values(this.tags))(e.maxCount===r.Count.infinity||e.maxCount>0)&&(i+=`\n${e.toString(t)}`);return this.cardSet&&(i+=`\n\n${this.cardSet.toString(t)}`),i}}},5814:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardSetConfig=void 0;t.CardSetConfig=class{constructor(e,t){this.configKey=e,this.variants=t}toString(e){const t=Object.assign({},e);let i="",r=0,o=0;for(const e of this.variants){for(const n of e)i+=`[Card - Side ${r}, Variant ${o}]`,i+=`\n${n.toString(t)}`,o++;r++}return i}}},9371:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardVariantConfig=void 0;t.CardVariantConfig=class{constructor(e,t,i,r){this.tags=e,this.bodyAllowed=t??!0,this.bodyRequired=i,this.repeatCount=r}toString(e){const t=Object.assign({},e);let i="";const r=[];this.bodyAllowed&&r.push("bodyAllowed"),this.bodyRequired&&r.push("bodyRequired"),null!=this.repeatCount&&r.push(`repeatCount=${this.repeatCount}`),i+=`[Flags]\n${r.join(", ")}`,i+="\n\n[Tags]";for(const e of Object.values(this.tags))i+=`\n${e.toString(t)}`;return i}}},9788:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MarkupTagConfig=void 0;const r=i(5512),o=i(6634);class n extends o.AbstractTagConfig{constructor(e,t,i,o,n,a){super(r.BitTagType.tag,e,t,i,o,n,void 0,void 0,a),this.type=r.BitTagType.tag}toString(e){const t=Object.assign({},e);let i=`TAG[${this.tag}`;if(t.includeConfigs&&(null!=this.deprecated&&(i+=`, deprecated=${this.deprecated}`),null!=this.maxCount&&(i+=`, max=${this.maxCount}`),null!=this.minCount&&(i+=`, min=${this.minCount}`)),i+="]",this.chain&&t.includeChains){i+="\n|__";let e=!0;for(const r of Object.values(this.chain))e||(i+=" "),i+=`${r.toString(t)}`,e=!1}return i}}t.MarkupTagConfig=n},1519:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyTagConfig=void 0;const r=i(5512),o=i(6634);class n extends o.AbstractTagConfig{constructor(e,t,i,o,n,a,s,l,p,c,u){super(r.BitTagType.property,e,t,i,o,n,a,s,u),this.type=r.BitTagType.property,this.single=l,this.format=p,this.defaultValue=c}toString(e){const t=Object.assign({},e);let i=`PTY[${this.tag}`;if(t.includeConfigs&&(null!=this.deprecated&&(i+=`, deprecated=${this.deprecated}`),null!=this.maxCount&&(i+=`, max=${this.maxCount}`),null!=this.minCount&&(i+=`, min=${this.minCount}`),null!=this.single&&(i+=`, sgl=${this.single}`),null!=this.format&&(i+=`, fmt=${this.format}`),null!=this.defaultValue&&(i+=`, def=${this.defaultValue}`),null!=this.jsonKey&&(i+=`, json=${this.jsonKey}`),null!=this.astKey&&(i+=`, ast=${this.astKey}`)),i+="]",this.chain&&t.includeChains){i+="\n|__";let e=!0;for(const r of Object.values(this.chain))e||(i+=" "),i+=`${r.toString(t)}`,e=!1}return i}}t.PropertyTagConfig=n},9600:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTagConfig=void 0;const r=i(5512),o=i(6634);class n extends o.AbstractTagConfig{constructor(e,t,i,o,n,a,s){super(r.BitTagType.resource,e,t,i,o,n,a,void 0,s),this.type=r.BitTagType.resource}toString(e){const t=Object.assign({},e);let i=`RES[${this.tag}`;if(t.includeConfigs&&(null!=this.deprecated&&(i+=`, deprecated=${this.deprecated}`),null!=this.maxCount&&(i+=`, max=${this.maxCount}`),null!=this.minCount&&(i+=`, min=${this.minCount}`),null!=this.jsonKey&&(i+=`, json=${this.jsonKey}`)),i+="]",this.chain&&t.includeChains){i+="\n|__";let e=!0;for(const r of Object.values(this.chain))e||(i+=" "),i+=`${r.toString(t)}`,e=!1}return i}}t.ResourceTagConfig=n},1457:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesConfig=void 0;t.ResourcesConfig=class{constructor(e,t,i,r){this.tags=e,this.resourceAttachmentAllowed=null!=t&&t,this.resourceTypeAttachment=i,this.comboResourceTagTypesMap=r}getCountsMin(){const e=new Map;for(const t of Object.values(this.tags))null!=t.minCount&&e.set(t.tag,t.minCount);return e}getCountsMax(){const e=new Map;for(const t of Object.values(this.tags))null!=t.maxCount&&e.set(t.tag,t.maxCount);return e}}},8199:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardSetConfigKey=void 0;const r=(0,i(4718).superenum)({_flashcardLike:"_flashcardLike",_elements:"_elements",_statements:"_statements",_quiz:"_quiz",_questions:"_questions",_matchPairs:"_matchPairs",_matchAudioPairs:"_matchAudioPairs",_matchImagePairs:"_matchImagePairs",_matchMatrix:"_matchMatrix",_table:"_table",_botActionResponses:"_botActionResponses",_exampleBitList:"_exampleBitList",_clozeList:"_clozeList",_ingredients:"_ingredients",_captionDefinitionsList:"_captionDefinitionsList"});t.CardSetConfigKey=r},5591:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigKey=void 0;const r=i(4718),o=i(7112),n=i(9888),a=i(5051),s=i(7797),l=(0,r.superenum)(Object.assign(Object.assign(Object.assign(Object.assign({_unknown:"_unknown"},s.tagConfigKeys),n.propertyConfigKeys),a.resourceConfigKeys),o.groupConfigKeys));t.ConfigKey=l,function(){const e=new Set,t=[s.tagConfigKeys,n.propertyConfigKeys,a.resourceConfigKeys,o.groupConfigKeys];for(const i of t)for(const t in i){if(e.has(t))throw new Error(`Duplicate ConfigKey: ${t}`);e.add(t)}}()},7112:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.groupConfigKeys=t.GroupConfigKey=void 0;const r=i(4718),o={group_standardAllBits:"group_standardAllBits",group_standardItemLeadInstructionHint:"group_standardItemLeadInstructionHint",group_standardExample:"group_standardExample",group_standardTags:"group_standardTags",group_imageSource:"group_imageSource",group_technicalTerm:"group_technicalTerm",group_person:"group_person",group_gap:"group_gap",group_trueFalse:"group_trueFalse",group_markConfig:"group_markConfig",group_mark:"group_mark",group_bookCommon:"group_bookCommon",group_learningPathCommon:"group_learningPathCommon",group_resourceBitTags:"group_resourceBitTags",group_resourceCommon:"group_resourceCommon",group_resourceImageCommon:"group_resourceImageCommon",group_resourceAudioCommon:"group_resourceAudioCommon",group_resourceVideoCommon:"group_resourceVideoCommon",group_resourceImage:"group_resourceImage",group_resourceImageEmbed:"group_resourceImageEmbed",group_resourceImageLink:"group_resourceImageLink",group_resourceImageResponsive:"group_resourceImageResponsive",group_resourceImagePortrait:"group_resourceImagePortrait",group_resourceImageLandscape:"group_resourceImageLandscape",group_resourceAudio:"group_resourceAudio",group_resourceAudioEmbed:"group_resourceAudioEmbed",group_resourceAudioLink:"group_resourceAudioLink",group_resourceVideo:"group_resourceVideo",group_resourceVideoEmbed:"group_resourceVideoEmbed",group_resourceVideoLink:"group_resourceVideoLink",group_resourceStillImageFilm:"group_resourceStillImageFilm",group_resourceStillImageFilmEmbed:"group_resourceStillImageFilmEmbed",group_resourceStillImageFilmLink:"group_resourceStillImageFilmLink",group_resourceArticle:"group_resourceArticle",group_resourceArticleEmbed:"group_resourceArticleEmbed",group_resourceArticleLink:"group_resourceArticleLink",group_resourceDocument:"group_resourceDocument",group_resourceDocumentEmbed:"group_resourceDocumentEmbed",group_resourceDocumentLink:"group_resourceDocumentLink",group_resourceDocumentDownload:"group_resourceDocumentDownload",group_resourceAppLink:"group_resourceAppLink",group_resourceWebsiteLink:"group_resourceWebsiteLink"};t.groupConfigKeys=o;const n=(0,r.superenum)(o);t.GroupConfigKey=n},6915:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GroupConfigType=void 0;const r=(0,i(4718).superenum)({standard:"standard",resource:"resource",comboResource:"comboResource"});t.GroupConfigType=r},9888:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propertyConfigKeys=t.PropertyConfigKey=void 0;const r=i(4718),o={action:"action",activityType:"activityType",additionalSolutions:"additionalSolutions",ageRange:"ageRange",aiGenerated:"aiGenerated",analyticsTag:"analyticsTag",allowedBit:"allowedBit",allowSubtitles:"allowSubtitles",alt:"alt",author:"author",autoplay:"autoplay",availableClassifications:"availableClassifications",backgroundWallpaper:"backgroundWallpaper",blockId:"blockId",book:"book",bookAlias:"bookAlias",bot:"bot",bubbleTag:"bubbleTag",buttonCaption:"buttonCaption",callToActionUrl:"callToActionUrl",caption:"caption",classification:"classification",codeLineNumbers:"codeLineNumbers",codeMinimap:"codeMinimap",color:"color",colorTag:"colorTag",computerLanguage:"computerLanguage",content2Buy:"content2Buy",copyright:"copyright",coverColor:"coverColor",coverImage:"coverImage",date:"date",dateEnd:"dateEnd",decimalPlaces:"decimalPlaces",deeplink:"deeplink",disableCalculation:"disableCalculation",disableFeedback:"disableFeedback",duration:"duration",emphasis:"emphasis",example:"example",externalId:"externalId",externalLink:"externalLink",externalLinkText:"externalLinkText",feedbackEngine:"feedbackEngine",feedbackType:"feedbackType",flashcardSet:"flashcardSet",focusX:"focusX",focusY:"focusY",format:"format",hasBookNavigation:"hasBookNavigation",hasMarkAsDone:"hasMarkAsDone",height:"height",icon:"icon",iconTag:"iconTag",id:"id",imageFirst:"imageFirst",imagePlaceholder:"imagePlaceholder",imageSource:"imageSource",index:"index",internalComment:"internalComment",isCaseSensitive:"isCaseSensitive",isInfoOnly:"isInfoOnly",isPublic:"isPublic",isTracked:"isTracked",jupyterExecutionCount:"jupyterExecutionCount",jupyterId:"jupyterId",kind:"kind",label:"label",labelFalse:"labelFalse",labelTrue:"labelTrue",lang:"lang",language:"language",levelCEFRp:"levelCEFRp",levelCEFR:"levelCEFR",levelILR:"levelILR",levelACTFL:"levelACTFL",license:"license",list:"list",listItemIndent:"listItemIndent",location:"location",machineTranslated:"machineTranslated",mailingList:"mailingList",markConfig:"markConfig",maxCreatedBits:"maxCreatedBits",maxDisplayLevel:"maxDisplayLevel",mockupId:"mockupId",mute:"mute",padletId:"padletId",pageNo:"pageNo",partialAnswer:"partialAnswer",partner:"partner",person:"person",pointerLeft:"pointerLeft",pointerTop:"pointerTop",posterImage:"posterImage",page:"page",processHandIn:"processHandIn",product:"product",productFolder:"productFolder",productId:"productId",productList:"productList",productVideo:"productVideo",productVideoList:"productVideoList",progress:"progress",property_mark:"property_mark",property_reference:"property_reference",property_sampleSolution:"property_sampleSolution",property_title:"property_title",publications:"publications",publisher:"publisher",publisherName:"publisherName",quizCountItems:"quizCountItems",quizStrikethroughSolutions:"quizStrikethroughSolutions",quotedPerson:"quotedPerson",ratingLevelEnd:"ratingLevelEnd",ratingLevelSelected:"ratingLevelSelected",ratingLevelStart:"ratingLevelStart",reaction:"reaction",reasonableNumOfChars:"reasonableNumOfChars",reductionTag:"reductionTag",releaseDate:"releaseDate",releaseKind:"releaseKind",releaseVersion:"releaseVersion",resolved:"resolved",resolvedBy:"resolvedBy",resolvedDate:"resolvedDate",scormSource:"scormSource",search:"search",servings:"servings",showInIndex:"showInIndex",showSubtitles:"showSubtitles",siteName:"siteName",size:"size",slug:"slug",spaceId:"spaceId",src1x:"src1x",src2x:"src2x",src3x:"src3x",src4x:"src4x",stripePricingTableId:"stripePricingTableId",stripePublishableKey:"stripePublishableKey",subject:"subject",subtype:"subtype",tableAutoWidth:"tableAutoWidth",tableFixedHeader:"tableFixedHeader",tableHeight:"tableHeight",tablePagination:"tablePagination",tablePaginationLimit:"tablePaginationLimit",tableResizableColumns:"tableResizableColumns",tableSearch:"tableSearch",tableSort:"tableSort",tableWhitespaceNoWrap:"tableWhitespaceNoWrap",tag:"tag",target:"target",technicalTerm:"technicalTerm",textReference:"textReference",theme:"theme",thumbImage:"thumbImage",toc:"toc",trim:"trim",unit:"unit",unitAbbr:"unitAbbr",vendorUrl:"vendorUrl",videoCallLink:"videoCallLink",width:"width",x:"x",y:"y",zoomDisabled:"zoomDisabled"};t.propertyConfigKeys=o;const n=(0,r.superenum)(o);t.PropertyConfigKey=n},5051:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resourceConfigKeys=t.ResourceConfigKey=void 0;const r=i(4718),o={image:"image",imagePortrait:"imagePortrait",imageLandscape:"imageLandscape",imageEmbed:"imageEmbed",imageLink:"imageLink",audio:"audio",audioEmbed:"audioEmbed",audioLink:"audioLink",video:"video",videoEmbed:"videoEmbed",videoLink:"videoLink",stillImageFilmEmbed:"stillImageFilmEmbed",stillImageFilmLink:"stillImageFilmLink",article:"article",articleEmbed:"articleEmbed",articleLink:"articleLink",document:"document",documentEmbed:"documentEmbed",documentLink:"documentLink",documentDownload:"documentDownload",appLink:"appLink",websiteLink:"websiteLink"};t.resourceConfigKeys=o;const n=(0,r.superenum)(o);t.ResourceConfigKey=n},7797:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tagConfigKeys=t.TagConfigKey=void 0;const r=i(4718),o={title:"title",anchor:"anchor",tag_reference:"tag_reference",property:"property",itemLead:"itemLead",instruction:"instruction",hint:"hint",true:"true",false:"false",sampleSolution:"sampleSolution",gap:"gap",tag_mark:"tag_mark",resource:"resource"};t.tagConfigKeys=o;const n=(0,r.superenum)(o);t.TagConfigKey=n},5512:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitTagType=void 0;const r=(0,i(4718).superenum)({tag:"tag",property:"property",resource:"resource",group:"group"});t.BitTagType=r},5854:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitType=void 0;const r=(0,i(4718).superenum)({_error:"_error",_comment:"_comment",aiPrompt:"ai-prompt",anchor:"anchor",appAiPrompt:"app-ai-prompt",appBitmarkFromEditor:"app-bitmark-from-editor",appBitmarkFromJavascript:"app-bitmark-from-javascript",appCodeCell:"app-code-cell",appCodeEditor:"app-code-editor",appCodeIde:"app-code-ide",appCreateBitsFromImage:"app-create-bits-from-image",appFlashcards:"app-flashcards",appFlashcardsLearn:"app-flashcards-learn",appFlashcardsQuiz:"app-flashcards-quiz",appGetScreenshot:"app-get-screenshot",appLink:"app-link",article:"article",articleAi:"article-ai",articleAlt:"article-alt",articleAttachment:"article-attachment",articleEmbed:"article-embed",articleLink:"article-link",articleResponsive:"article-responsive",assignment:"assignment",assignmentList:"assignment-list",audio:"audio",audioEmbed:"audio-embed",audioLink:"audio-link",audioTranscript:"audio-transcript",bitAlias:"bit-alias",bitBookEnding:"bit-book-ending",bitBookSummary:"bit-book-summary",bitmarkExample:"bitmark-example",blogArticle:"blog-article",book:"book",bookAcknowledgements:"book-acknowledgements",bookAddendum:"book-addendum",bookAfterword:"book-afterword",bookAlias:"book-alias",bookAppendix:"book-appendix",bookArticle:"book-article",bookAutherBio:"book-author-bio",bookBibliography:"book-bibliography",bookClose:"book-close",bookComingSoon:"book-coming-soon",bookConclusion:"book-conclusion",bookCopyright:"book-copyright",bookCopyrightPermissions:"book-copyright-permissions",bookDedication:"book-dedication",bookEndnotes:"book-endnotes",bookEpigraph:"book-epigraph",bookEpilogue:"book-epilogue",bookForword:"book-foreword",bookFrontispiece:"book-frontispiece",bookImprint:"book-imprint",bookIncitingIncident:"book-inciting-incident",bookIntroduction:"book-introduction",bookLink:"book-link",bookLinkNext:"book-link-next",bookLinkPrev:"book-link-prev",bookListOfContributors:"book-list-of-contributors",bookNotes:"book-notes",bookPostscript:"book-postscript",bookPreface:"book-preface",bookPrologue:"book-prologue",bookReadMore:"book-read-more",bookReferenceList:"book-reference-list",bookRequestForABookReview:"book-request-for-a-book-review",bookSummary:"book-summary",bookTeaser:"book-teaser",bookTitle:"book-title",botActionAnnounce:"bot-action-announce",botActionRatingNumber:"bot-action-rating-number",botActionRemind:"bot-action-remind",botActionResponse:"bot-action-response",botActionSave:"bot-action-save",botActionSend:"bot-action-send",botActionTrueFalse:"bot-action-true-false",botInterview:"bot-interview",browserImage:"browser-image",bug:"bug",bugAlt:"bug-alt",bugCollapsible:"bug-collapsible",buttonCopyText:"button-copy-text",callToAction:"call-to-action",callToActionBookNow:"call-to-action-book-now",callToActionContact:"call-to-action-contact",callToActionCreateAccount:"call-to-action-create-account",callToActionDownload:"call-to-action-download",callToActionGetNow:"call-to-action-get-now",callToActionGetOffer:"call-to-action-get-offer",callToActionJoin:"call-to-action-join",callToActionLearnMore:"call-to-action-learn-more",callToActionMail:"call-to-action-mail",callToActionSeeMore:"call-to-action-see-more",callToActionShopNow:"call-to-action-shop-now",callToActionStartNow:"call-to-action-start-now",callToActionSubscribe:"call-to-action-subscribe",callToActionWatch:"call-to-action-watch",card1:"card-1",chapter:"chapter",chapterSubjectMatter:"chapter-subject-matter",chat:"chat",checklist:"checklist",cloze:"cloze",clozeAndMultipleChoiceText:"cloze-and-multiple-choice-text",clozeInstructionGrouped:"cloze-instruction-grouped",clozeList:"cloze-list",clozeSolutionGrouped:"cloze-solution-grouped",coachAudioTranscript:"coach-audio-transcript",coachCallToActionChecklist:"coach-call-to-action-checklist",coachCallToActionCloze:"coach-call-to-action-cloze",coachCallToActionClozeAndMultipleChoiceText:"coach-call-to-action-cloze-and-multiple-choice-text",coachCallToActionEssay:"coach-call-to-action-essay",coachCallToActionMultipleChoiceText:"coach-call-to-action-multiple-choice-text",coachHomeRules:"coach-home-rules",coachSelfReflectionCloze:"coach-self-reflection-cloze",coachSelfReflectionEssay:"coach-self-reflection-essay",coachSelfReflectionMultipleChoice:"coach-self-reflection-multiple-choice",coachSelfReflectionMultipleChoice1:"coach-self-reflection-multiple-choice-1",coachSelfReflectionMultipleChoiceText:"coach-self-reflection-multiple-choice-text",coachSelfReflectionMultipleResponse:"coach-self-reflection-multiple-response",coachSelfReflectionMultipleResponse1:"coach-self-reflection-multiple-response-1",coachSelfReflectionRating:"coach-self-reflection-rating",coachVideoTranscript:"coach-video-transcript",code:"code",codeRuntime:"code-runtime",collapsible:"collapsible",conclusion:"conclusion",conclusionAlt:"conclusion-alt",consoleLog:"console-log",container:"container",containerAccordionTabs:"container-accordion-tabs",containerBits2:"container-bits-2",containerCards:"container-cards",containerCarousel:"container-carousel",containerCookRecipe:"container-cook-recipe",containerFolder:"container-folder",containerFolderAll:"container-folder-all",containerGallery:"container-gallery",containerGrid:"container-grid",containerGroup:"container-group",containerNewsArticle:"container-news-article",containerNowrap:"container-nowrap",containerNowrapStretch:"container-nowrap-stretch",containerPreview:"container-preview",containerScroller:"container-scroller",containerSlides:"container-slides",containerStack:"container-stack",containerTabs:"container-tabs",containerWrap:"container-wrap",conversationLeft1:"conversation-left-1",conversationLeft1Scream:"conversation-left-1-scream",conversationLeft1Thought:"conversation-left-1-thought",conversationRight1:"conversation-right-1",conversationRight1Scream:"conversation-right-1-scream",conversationRight1Thought:"conversation-right-1-thought",cookArrangement:"cook-arrangement",cookIngredients:"cook-ingredients",cookInsert:"cook-insert",cookPersonalRecommendation:"cook-personal-recommendation",cookPlate:"cook-plate",cookPracticeAdvise:"cook-practice-advise",cookPreparation:"cook-preparation",cookRecommendation:"cook-recommendation",cookRemark:"cook-remark",cookSideDish:"cook-side-dish",cookSideDrink:"cook-side-drink",cookStep:"cook-step",cookTimer:"cook-timer",cookVariation:"cook-variation",correction:"correction",danger:"danger",dangerAlt:"danger-alt",dangerCollapsible:"danger-collapsible",definitionList:"definition-list",definitionTerm:"definition-term",descriptionList:"description-list",descriptionTerm:"description-term",details:"details",details1:"details-1",detailsImage:"details-image",document:"document",documentDownload:"document-download",documentEmbed:"document-embed",documentLink:"document-link",documentUpload:"document-upload",editorial:"editorial",editorNote:"editor-note",essay:"essay",example:"example",exampleAlt:"example-alt",exampleCollapsible:"example-collapsible",exampleList:"example-list",extractorBlock:"extractor-block",extractorConfiguration:"extractor-configuration",extractorPage:"extractor-page",extractorPageCollapsible:"extractor-page-collapsible",extractorPageFooter:"extractor-page-footer",extractorPageFooterCollapsible:"extractor-page-footer-collapsible",extractorPageHeader:"extractor-page-header",extractorPageHeaderCollapsible:"extractor-page-header-collapsible",extractorPageNumber:"extractor-page-number",extractorPageNumberCollapsible:"extractor-page-number-collapsible",extractorPageWithBlocks:"extractor-page-with-blocks",extractorPageWithBlocksCollapsible:"extractor-page-with-blocks-collapsible",extractorRepeatedText:"extractor-repeated-text",featured:"featured",figure:"figure",flashcard:"flashcard",flashcard1:"flashcard-1",focusImage:"focus-image",footNote:"foot-note",formula:"formula",gapText:"gap-text",gapTextInstructionGrouped:"gap-text-instruction-grouped",glossaryTerm:"glossary-term",groupBorn:"group-born",groupDied:"group-died",handInAudio:"hand-in-audio",handInContact:"hand-in-contact",handInDocument:"hand-in-document",handInLocation:"hand-in-location",handInPhoto:"hand-in-photo",handInScan:"hand-in-scan",handInVideo:"hand-in-video",handInVoice:"hand-in-voice",help:"help",helpAlt:"help-alt",highlightText:"highlight-text",hint:"hint",hintAlt:"hint-alt",hintCollapsible:"hint-collapsible",image:"image",imageBanner:"image-banner",imageFigure:"image-figure",imageFigureAlt:"image-figure-alt",imageLandscape:"image-landscape",imageLink:"image-link",imageMood:"image-mood",imageOnDevice:"image-on-device",imagePortrait:"image-portrait",imagePrototype:"image-prototype",imageResponsive:"image-responsive",imageScreenshot:"image-screenshot",imageSeparator:"image-separator",imageSeparatorAlt:"image-separator-alt",imagesLogoGrave:"images-logo-grave",imageStyled:"image-styled",imageSuperWide:"image-super-wide",imageZoom:"image-zoom",indexTerm:"index-term",info:"info",infoAlt:"info-alt",infoCollapsible:"info-collapsible",internalLink:"internal-link",interview:"interview",interviewInstructionGrouped:"interview-instruction-grouped",langAudioScript:"lang-audio-script",langEnablingLanguageSkills:"lang-enabling-language-skills",langEnglishAroundWorld:"lang-english-around-world",langExtraActivity:"lang-extra-activity",langGoodToKnow:"lang-good-to-know",langHomework:"lang-homework",langLearningGoal:"lang-learning-goal",langLearningOutcomes:"lang-learning-outcomes",langLearningStrategy:"lang-learning-strategy",langLevelDown:"lang-level-down",langLevelUp:"lang-level-up",langLifeSkillIcon:"lang-life-skill-icon",langLifeSkills:"lang-life-skills",langLikeALocal:"lang-like-a-local",langMaterial:"lang-material",langTeacherNote:"lang-teacher-note",langTeacherPronunciation:"lang-teacher-pronunciation",langUsefulPhrases:"lang-useful-phrases",langVideoScript:"lang-video-script",langVocabulary:"lang-vocabulary",learningPathBook:"learning-path-book",learningPathBotTraining:"learning-path-bot-training",learningPathClassroomEvent:"learning-path-classroom-event",learningPathClassroomTraining:"learning-path-classroom-training",learningPathClosing:"learning-path-closing",learningPathExternalLink:"learning-path-external-link",learningPathFeedback:"learning-path-feedback",learningPathLearningGoal:"learning-path-learning-goal",learningPathLti:"learning-path-lti",learningPathSign:"learning-path-sign",learningPathStep:"learning-path-step",learningPathVideoCall:"learning-path-video-call",leAssignment:"le-assignment",leClassroomEvent:"le-classroom-event",leCompletion:"le-completion",leExternalLink:"le-external-link",leFinishingTask:"le-finishing-task",leFollowUpTask:"le-follow-up-task",leLearningObjectives:"le-learning-objectives",leLearningStep:"le-learning-step",leListenAudioEmbed:"le-listen-audio-embed",lePreparationTask:"le-preparation-task",leRead:"le-read",leReadBook:"le-read-book",leTask:"le-task",leTodo:"le-todo",leVideoCall:"le-video-call",leWatchVideoEmbed:"le-watch-video-embed",lifeSkillSticker:"life-skill-sticker",list:"list",listItem:"list-item",mark:"mark",match:"match",matchAll:"match-all",matchAllReverse:"match-all-reverse",matchAudio:"match-audio",matchMatrix:"match-matrix",matchPicture:"match-picture",matchReverse:"match-reverse",matchSolutionGrouped:"match-solution-grouped",message:"message",metalevelExplanation:"metalevel-explanation",milestone:"milestone",module:"module",moduleProduct:"module-product",multipleChoice:"multiple-choice",multipleChoice1:"multiple-choice-1",multipleChoiceText:"multiple-choice-text",multipleResponse:"multiple-response",multipleResponse1:"multiple-response-1",newspaperArticle:"newspaper-article",note:"note",noteAi:"note-ai",noteAlt:"note-alt",notebookArticle:"notebook-article",noteCollapsible:"note-collapsible",output:"output",page:"page",pageAcademy:"page-academy",pageArticle:"page-article",pageArticleAlt:"page-article-alt",pageArticleResponsive:"page-article-responsive",pageBanner:"page-banner",pageBuyButton:"page-buy-button",pageBuyButtonAlt:"page-buy-button-alt",pageBuyButtonPromotion:"page-buy-button-promotion",pageCategory:"page-category",pageCollapsible:"page-collapsible",pageContainer:"page-container",pageContainerFolder:"page-container-folder",pageContainerGroup:"page-container-group",pageContainerNowrap:"page-container-nowrap",pageContainerNowrapStretch:"page-container-nowrap-stretch",pageContainerWrap:"page-container-wrap",pageCoverImage:"page-cover-image",pageFooter:"page-footer",pageHero:"page-hero",pageOpenBook:"page-open-book",pagePerson:"page-person",pageProduct:"page-product",pageProductList:"page-product-list",pageProductVideo:"page-product-video",pageProductVideoList:"page-product-video-list",pagePromotion:"page-promotion",pageSectionFolder:"page-section-folder",pageShopInShop:"page-shop-in-shop",pageSpecial:"page-special",pageSubpage:"page-subpage",pageSubscribe:"page-subscribe",parameters:"parameters",photo:"photo",preparationNote:"preparation-note",prototypeImages:"prototype-images",question1:"question-1",quote:"quote",rating:"rating",recipe:"recipe",recordAudio:"record-audio",recordVideo:"record-video",releaseNote:"release-note",releaseNotesSummary:"release-notes-summary",remark:"remark",remarkAlt:"remark-alt",remarkCollapsible:"remark-collapsible",reviewApprovedNote:"review-approved-note",reviewAuthorNote:"review-author-note",reviewNote:"review-note",reviewRequestForReviewNote:"review-request-for-review-note",reviewReviewerNote:"review-reviewer-note",sampleSolution:"sample-solution",scorm:"scorm",screenshot:"screenshot",selfAssessment:"self-assessment",separator:"separator",separatorAlt:"separator-alt",sequence:"sequence",sideNote:"side-note",sideNoteCollapsible:"side-note-collapsible",smartStandardArticleNonNormative:"smart-standard-article-non-normative",smartStandardArticleNonNormativeCollapsible:"smart-standard-article-non-normative-collapsible",smartStandardArticleNormative:"smart-standard-article-normative",smartStandardArticleNormativeCollapsible:"smart-standard-article-normative-collapsible",smartStandardExampleNonNormative:"smart-standard-example-non-normative",smartStandardExampleNonNormativeCollapsible:"smart-standard-example-non-normative-collapsible",smartStandardExampleNormative:"smart-standard-example-normative",smartStandardExampleNormativeCollapsible:"smart-standard-example-normative-collapsible",smartStandardImageFigureNonNormative:"smart-standard-image-figure-non-normative",smartStandardImageFigureNonNormativeCollapsible:"smart-standard-image-figure-non-normative-collapsible",smartStandardImageFigureNormative:"smart-standard-image-figure-normative",smartStandardImageFigureNormativeCollapsible:"smart-standard-image-figure-normative-collapsible",smartStandardList:"smart-standard-list",smartStandardListCollapsible:"smart-standard-list-collapsible",smartStandardListItem:"smart-standard-list-item",smartStandardListItemCollapsible:"smart-standard-list-item-collapsible",smartStandardNoteNonNormative:"smart-standard-note-non-normative",smartStandardNoteNonNormativeCollapsible:"smart-standard-note-non-normative-collapsible",smartStandardNoteNormative:"smart-standard-note-normative",smartStandardNoteNormativeCollapsible:"smart-standard-note-normative-collapsible",smartStandardRemarkNonNormative:"smart-standard-remark-non-normative",smartStandardRemarkNonNormativeCollapsible:"smart-standard-remark-non-normative-collapsible",smartStandardRemarkNormative:"smart-standard-remark-normative",smartStandardRemarkNormativeCollapsible:"smart-standard-remark-normative-collapsible",smartStandardRemarkTableImageNonNormative:"smart-standard-remark-table-image-non-normative",smartStandardRemarkTableImageNonNormativeCollapsible:"smart-standard-remark-table-image-non-normative-collapsible",smartStandardRemarkTableImageNormative:"smart-standard-remark-table-image-normative",smartStandardRemarkTableImageNormativeCollapsible:"smart-standard-remark-table-image-normative-collapsible",smartStandardRemarkTableNonNormative:"smart-standard-remark-table-non-normative",smartStandardRemarkTableNonNormativeCollapsible:"smart-standard-remark-table-non-normative-collapsible",smartStandardRemarkTableNormative:"smart-standard-remark-table-normative",smartStandardRemarkTableNormativeCollapsible:"smart-standard-remark-table-normative-collapsible",smartStandardTableImageNonNormative:"smart-standard-table-image-non-normative",smartStandardTableImageNonNormativeCollapsible:"smart-standard-table-image-non-normative-collapsible",smartStandardTableImageNormative:"smart-standard-table-image-normative",smartStandardTableImageNormativeCollapsible:"smart-standard-table-image-normative-collapsible",smartStandardTableNonNormative:"smart-standard-table-non-normative",smartStandardTableNonNormativeCollapsible:"smart-standard-table-non-normative-collapsible",smartStandardTableNormative:"smart-standard-table-normative",smartStandardTableNormativeCollapsible:"smart-standard-table-normative-collapsible",standardArticleNonNormative:"standard-article-non-normative",standardArticleNormative:"standard-article-normative",standardExampleNonNormative:"standard-example-non-normative",standardExampleNormative:"standard-example-normative",standardImageFigureNonNormative:"standard-image-figure-non-normative",standardImageFigureNormative:"standard-image-figure-normative",standardList:"standard-list",standardListItem:"standard-list-item",standardNoteNonNormative:"standard-note-non-normative",standardNoteNormative:"standard-note-normative",standardRemarkNonNormative:"standard-remark-non-normative",standardRemarkNormative:"standard-remark-normative",standardRemarkTableImageNonNormative:"standard-remark-table-image-non-normative",standardRemarkTableImageNormative:"standard-remark-table-image-normative",standardRemarkTableNonNormative:"standard-remark-table-non-normative",standardRemarkTableNormative:"standard-remark-table-normative",standardTableImageNonNormative:"standard-table-image-non-normative",standardTableImageNormative:"standard-table-image-normative",standardTableNonNormative:"standard-table-non-normative",standardTableNormative:"standard-table-normative",statement:"statement",stdout:"stdout",step:"step",stepImageScreenshot:"step-image-screenshot",stepImageScreenshotWithPointer:"step-image-screenshot-with-pointer",sticker:"sticker",stickyNote:"sticky-note",stillImageFilm:"still-image-film",stillImageFilmEmbed:"still-image-film-embed",stillImageFilmLink:"still-image-film-link",summary:"summary",summaryAi:"summary-ai",survey:"survey",survey1:"survey-1",surveyAnonymous:"survey-anonymous",surveyAnonymous1:"survey-anonymous-1",surveyMatrix:"survey-matrix",surveyMatrixMe:"survey-matrix-me",surveyRating:"survey-rating",surveyRatingDisplay:"survey-rating-display",surveyRatingOnce:"survey-rating-once",table:"table",tableAlt:"table-alt",tableImage:"table-image",tableImageAlt:"table-image-alt",takePicture:"take-picture",toc:"toc",tocChapter:"toc-chapter",trueFalse:"true-false",trueFalse1:"true-false-1",vendorAmcharts5Chart:"vendor-amcharts-5-chart",vendorHighchartsChart:"vendor-highcharts-chart",vendorIframelyCard:"vendor-iframely-card",vendorIframelyEmbed:"vendor-iframely-embed",vendorIframelyPreview:"vendor-iframely-preview",vendorIframelyPreviewMini:"vendor-iframely-preview-mini",vendorJupyterCellCode:"vendor-jupyter-cell-code",vendorJupyterCellMarkdown:"vendor-jupyter-cell-markdown",vendorJupyterCellRaw:"vendor-jupyter-cell-raw",vendorJupyterIpynb:"vendor-jupyter-ipynb",vendorJupyterOutput:"vendor-jupyter-output",vendorPadletEmbed:"vendor-padlet-embed",vendorStripePricingTable:"vendor-stripe-pricing-table",video:"video",videoEmbed:"video-embed",videoEmbedLandscape:"video-embed-landscape",videoEmbedPortrait:"video-embed-portrait",videoLandscape:"video-landscape",videoLink:"video-link",videoLinkLandscape:"video-link-landscape",videoLinkPortrait:"video-link-portrait",videoPortrait:"video-portrait",videoTranscript:"video-transcript",warning:"warning",warningAlt:"warning-alt",warningCollapsible:"warning-collapsible",websiteLink:"website-link",workbookArticle:"workbook-article"});t.BitType=r},8588:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkParserType=void 0;const r=(0,i(4718).superenum)({peggy:"peggy"});t.BitmarkParserType=r},3811:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BITMARK_VERSION=t.BitmarkVersion=void 0;const r=(0,i(4718).superenum)({v2:2,v3:3});t.BitmarkVersion=r;const o=r.v3;t.DEFAULT_BITMARK_VERSION=o},4410:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BodyBitType=void 0;const r=(0,i(4718).superenum)({text:"text",gap:"gap",mark:"mark",select:"select",highlight:"highlight"});t.BodyBitType=r},1163:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardSetVersion=void 0;const r=(0,i(4718).superenum)({v1:1,v2:2});t.CardSetVersion=r},3778:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Count=void 0;const r=(0,i(4718).superenum)({infinity:"infinity"});t.Count=r},363:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExampleType=void 0;const r=(0,i(4718).superenum)({none:"none",string:"string",boolean:"boolean"});t.ExampleType=r},7203:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyAstKey=void 0;const r=(0,i(4718).superenum)({ast_isCaseSensitive:"isCaseSensitive",ast_referenceProperty:"referenceProperty",ast_markConfig:"markConfig",ast_productList:"productList",ast_productVideoList:"productVideoList"});t.PropertyAstKey=r},9727:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyFormat=void 0;const r=(0,i(4718).superenum)({none:"none",string:"string",trimmedString:"trimmedString",number:"number",boolean:"boolean",invertedBoolean:"invertedBoolean"});t.PropertyFormat=r},166:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyTag=void 0;const r=i(4718),o=i(9888),n=(0,r.superenum)(Object.assign(Object.assign({},o.propertyConfigKeys),{tag_mark:"mark",tag_reference:"reference",tag_sampleSolution:"sampleSolution",tag_title:"title"}));t.PropertyTag=n},9984:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceJsonKey=void 0;const r=(0,i(4718).superenum)({imageResponsive:"imageResponsive",imagePortrait:"imagePortrait",imageLandscape:"imageLandscape",imageEmbed:"imageEmbed",imageLink:"imageLink",audioEmbed:"audioEmbed",audioLink:"audioLink",videoEmbed:"videoEmbed",videoLink:"videoLink",stillImageFilm:"stillImageFilm",stillImageFilmEmbed:"stillImageFilmEmbed",stillImageFilmLink:"stillImageFilmLink",articleEmbed:"articleEmbed",articleLink:"articleLink",documentEmbed:"documentEmbed",documentLink:"documentLink",documentDownload:"documentDownload",appLink:"appLink",websiteLink:"websiteLink"});t.ResourceJsonKey=r},6149:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTag=void 0;const r=(0,i(4718).superenum)({unknown:"unknown",image:"image",imageResponsive:"image-responsive",imagePortrait:"image-portrait",imageLandscape:"image-landscape",imageEmbed:"image-embed",imageLink:"image-link",audio:"audio",audioEmbed:"audio-embed",audioLink:"audio-link",video:"video",videoEmbed:"video-embed",videoLink:"video-link",stillImageFilm:"still-image-film",stillImageFilmEmbed:"still-image-film-embed",stillImageFilmLink:"still-image-film-link",article:"article",articleEmbed:"article-embed",articleLink:"article-link",document:"document",documentEmbed:"document-embed",documentLink:"document-link",documentDownload:"document-download",appLink:"app-link",websiteLink:"website-link"});t.ResourceTag=r},9917:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=void 0;const r=(0,i(4718).superenum)({tag_title:"#",tag_anchor:"▼",tag_reference:"►",tag_property:"@",tag_itemLead:"%",tag_instruction:"!",tag_hint:"?",tag_true:"+",tag_false:"-",tag_sampleSolution:"$",tag_gap:"_",tag_mark:"=",tag_resource:"&"});t.Tag=r},385:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextFormat=void 0;const r=(0,i(4718).superenum)({text:"text",latex:"latex",json:"json",bitmarkMinusMinus:"bitmark--",bitmarkPlusPlus:"bitmark++"});t.TextFormat=r},2483:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextMarkType=void 0;const r=(0,i(4718).superenum)({bold:"bold",light:"light",italic:"italic",highlight:"highlight",strike:"strike",subscript:"subscript",superscript:"superscript",ins:"ins",del:"del",underline:"underline",doubleUnderline:"doubleUnderline",circle:"circle",languageEm:"languageEm",userUnderline:"userUnderline",userDoubleUnderline:"userDoubleUnderline",userStrike:"userStrike",userCircle:"userCircle",userHighlight:"userHighlight",link:"link",ref:"ref",xref:"xref",footnote:"footnote",footnoteStar:"footnote*",var:"var",code:"code",timer:"timer",duration:"duration",color:"color",comment:"comment"});t.TextMarkType=r},9554:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextNodeType=void 0;const r=(0,i(4718).superenum)({text:"text",hardBreak:"hardBreak",paragraph:"paragraph",heading:"heading",section:"section",noBulletList:"noBulletList",bulletList:"bulletList",orderedList:"orderedList",orderedListRoman:"orderedListRoman",orderedListRomanLower:"orderedListRomanLower",letteredList:"letteredList",letteredListLower:"letteredListLower",taskList:"taskList",listItem:"listItem",taskItem:"taskItem",image:"image",codeBlock:"codeBlock",gap:"gap",select:"select",highlight:"highlight",mark:"mark"});t.TextNodeType=r},3069:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InfoFormat=void 0;const r=(0,i(4718).superenum)({text:"text",json:"json",pojo:"pojo"});t.InfoFormat=r},486:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InfoType=void 0;const r=(0,i(4718).superenum)({list:"list",deprecated:"deprecated",all:"all",bit:"bit"});t.InfoType=r},5633:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkParser=void 0;const r=i(5663),o=i(5078);t.BitmarkParser=class{constructor(){this.jsonParser=new r.JsonParser}toAst(e,t){return(0,o.parse)(e)}}},5078:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const r=i(5057).parse;t.parse=r},3206:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkPegParserHelper=void 0;const r=i(1163),o=i(9681),n=i(7461),a=i(3029);i(2028);t.BitmarkPegParserHelper=class{constructor(e){this.cardIndex=0,this.cardSideIndex=0,this.cardVariantIndex=0,this.parse=e.parse,this.parserText=e.parserText,this.parserLocation=e.parserLocation}handleRawBit(e){var t,i;const r=e.trim();if(this.debugPrint("RAW BIT",r),!r)return;const o=null!==(i=null===(t=this.parserLocation())||void 0===t?void 0:t.start)&&void 0!==i?i:{line:1,column:1,offset:0},a=this.parse(e,{startRule:"bit",grammarSource:new n.PeggyGrammarLocation("bit",o)});return a.value&&(a.value.markup=r),a}handleTextFormat(e){return{type:a.TypeKey.TextFormat,value:e,parser:{text:this.parserText(),location:this.parserLocation()}}}handleResourceType(e){return{type:a.TypeKey.ResourceType,value:e,parser:{text:this.parserText(),location:this.parserLocation()}}}handleBitContent(e){let t=this.reduceToArrayOfTypes(e);return t=this.mergeCharToText(t),t}handleBitTag(e){return e}handleTag(e,t){return{type:e,value:t,parser:{text:this.parserText(),location:this.parserLocation()}}}handlePropertyTag(e,t){return{type:a.TypeKey.Property,key:e,value:t,parser:{text:this.parserText(),location:this.parserLocation()}}}handleResourceTag(e,t){return{type:a.TypeKey.Resource,key:e,value:t,parser:{text:this.parserText(),location:this.parserLocation()}}}handleTagChain(e){const t=this.reduceToArrayOfTypes(e);let i=t;if(t.length>1){const e=t[0];e.chain=t.slice(1),i=[e]}return i}handlePlainTextDivider(e){return e=this.reduceToString(e),{type:a.TypeKey.PlainTextDivider,value:e,parser:{text:this.parserText(),location:this.parserLocation()}}}handleFooterDivider(e){return e=this.reduceToString(e),{type:a.TypeKey.FooterDivider,value:e,parser:{text:this.parserText(),location:this.parserLocation()}}}handleCardSet(e){const t=e,i={cards:[]},r={cards:[]};if(t){const e={text:this.parserText(),location:this.parserLocation()};for(const e of t){if(!e)continue;const{type:t,value:r,parser:o}=e;if(!t||t!==a.TypeKey.Card)continue;const{cardIndex:n,cardSideIndex:s,cardVariantIndex:l,value:p}=r;let c=i.cards[n];c||(c={sides:[]},i.cards[n]=c);let u=c.sides[s];u||(u={variants:[]},c.sides[s]=u);u.variants[l]?u.variants[l].value+=p:u.variants[l]={value:p,parser:o}}i.cards=i.cards.filter((e=>e.sides.some((e=>e.variants.some((e=>0!==o.StringUtils.trimmedString(e.value).length))))));for(const t of i.cards){const i={sides:[]};r.cards.push(i);for(const r of t.sides){const t={variants:[]};i.sides.push(t);for(const i of r.variants){let r={line:1,column:1,offset:0};if(i.parser.location){r=i.parser.location.start;const e=i.parser.text,t=e?e.length:0,o=1;r.offset+=t,r.line+=o}let o=this.parse(i.value,{startRule:"cardContent",grammarSource:new n.PeggyGrammarLocation("card-content",r)});o=this.reduceToArrayOfTypes(o),this.debugPrint("parsedCardContent",o),t.variants.push({parser:e,content:o})}}}}return{type:a.TypeKey.CardSet,value:r,parser:{text:this.parserText(),location:this.parserLocation()}}}handleCardSetStart(){this.cardIndex=-1,this.cardSideIndex=0,this.cardVariantIndex=0}handleCardSetEnd(){this.cardIndex=0,this.cardSideIndex=0,this.cardVariantIndex=0}handleCards(e){return e}handleCardLineOrDivider(e,t){let i=!1,o=!1,n=!1;return Array.isArray(e)&&2===e.length&&(e=e[0],t===r.CardSetVersion.v1?(i=e===a.CARD_DIVIDER_V1,o=e===a.CARD_SIDE_DIVIDER_V1,n=e===a.CARD_VARIANT_DIVIDER_V1):(i=e===a.CARD_DIVIDER_V2,o=e===a.CARD_SIDE_DIVIDER_V2,n=e===a.CARD_VARIANT_DIVIDER_V2)),i?(this.cardIndex++,this.cardSideIndex=0,this.cardVariantIndex=0):o?(this.cardSideIndex++,this.cardVariantIndex=0):n&&this.cardVariantIndex++,this.isType(e,a.TypeKey.Card)?e:{type:a.TypeKey.Card,value:{cardIndex:this.cardIndex,cardSideIndex:this.cardSideIndex,cardVariantIndex:this.cardVariantIndex,value:""},parser:{text:this.parserText(),location:this.parserLocation()}}}handleCardLine(e){return{type:a.TypeKey.Card,value:{cardIndex:this.cardIndex,cardSideIndex:this.cardSideIndex,cardVariantIndex:this.cardVariantIndex,value:e},parser:{text:this.parserText(),location:this.parserLocation()}}}handleCardContent(e){return this.mergeCharToText(e)}handleCardTags(e){return e}mergeCharToText(e){var t,i,r,o,n,s;const l=[];let p,c;for(const u of e)switch(u.type){case a.TypeKey.BodyChar:if(p){const e=`${null!==(t=p.value)&&void 0!==t?t:""}${null!==(i=u.value)&&void 0!==i?i:""}`;p.value=e}else p={type:a.TypeKey.BodyText,value:null!==(r=u.value)&&void 0!==r?r:"",parser:{text:this.parserText(),location:this.parserLocation()}};break;case a.TypeKey.CardChar:if(c){const e=`${null!==(o=c.value)&&void 0!==o?o:""}${null!==(n=u.value)&&void 0!==n?n:""}`;c.value=e}else c={type:a.TypeKey.CardText,value:null!==(s=u.value)&&void 0!==s?s:"",parser:{text:this.parserText(),location:this.parserLocation()}};break;default:p&&(l.push(p),p=void 0),c&&(l.push(c),c=void 0),l.push(u)}return p&&l.push(p),c&&l.push(c),l}isType(e,t){if(!e)return!1;const{type:i}=e;return t?Array.isArray(t)?t.indexOf(i)>=0:t===i:!!a.TypeKey.fromValue(i)}reduceToArrayOfTypes(e,t,i){if(!Array.isArray(e))return[];return e.reduce(((e,r,o)=>{if(null==r)return e;const{type:n,value:a}=r;if(Array.isArray(r)){const i=this.reduceToArrayOfTypes(r,t);e.push(...i)}else{if(!this.isType(r,t))return e;if(i&&Array.isArray(a)){const i=this.reduceToArrayOfTypes(a,t);e.push(...i)}else n&&e.push(r)}return e}),[])}reduceToString(e){if(!Array.isArray(e))return"";return e.reduce(((e,t,i)=>{if(null==t)return e;if(Array.isArray(t)){e+=this.reduceToString(t)}else e+=t;return e}),[])}debugPrint(e,t){}}},7124:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkPegParserProcessor=void 0;const o=i(5809),n=i(7735),a=i(2028),s=i(5854),l=i(4410),p=i(6149),c=i(385),u=i(9681),g=i(4266),y=i(1083),d=i(4402),f=i(3904),m=i(9289),T=i(5189),h=i(9647),b=i(3990),v=i(6521),B=i(7667),C=i(9885),P=i(3029),k=!1,S=!0,x=!0,K=!0,w=!0,A=new o.Builder;t.BitmarkPegParserProcessor=class{constructor(e){this.nonFatalWarnings=[],this.nonFatalErrors=[],this.parser={},this.parse=e.parse,this.parserText=e.parserText,this.parserLocation=e.parserLocation,this.context={DEBUG_BIT_RAW:true,DEBUG_BIT_CONTENT_RAW:k,DEBUG_BIT_CONTENT:S,DEBUG_BIT_TAGS:x,DEBUG_BODY:K,DEBUG_FOOTER:w,DEBUG_CHAIN_CONTENT:true,DEBUG_CHAIN_TAGS:true,DEBUG_CARD_SET_CONTENT:true,DEBUG_CARD_SET:true,DEBUG_CARD_TAGS:true,parser:this.parser,parse:this.parse,bitContentProcessor:this.bitContentProcessor.bind(this),splitBitContent:this.splitBitContent.bind(this),addWarning:this.addWarning.bind(this),addError:this.addError.bind(this),debugPrint:this.debugPrint.bind(this),state:{}}}buildBits(e){var t;const i=[];let r=[];for(const o of e){if(!o)continue;const e=o.value;e?i.push(e):r=r.concat(null!==(t=o.errors)&&void 0!==t?t:[])}return A.bitmark({bits:i,errors:r.length>0?r:void 0})}buildBit(e,t){var i;const{bitType:o,textFormat:n,resourceType:l,bitLevel:p,isCommented:c}=e;if(!o||a.Config.isOfBitType(o,s.BitType._error))return this.invalidBit();const u=a.Config.isOfBitType(o,s.BitType.trueFalse1),d=a.Config.isOfBitType(o,s.BitType.multipleChoice1),f=a.Config.isOfBitType(o,s.BitType.multipleResponse1);this.debugPrint("BIT CONTENT",t),this.resetParserState(),t=this.squashUnwantedInlineBodyBits(o,n,t),t=g.BitmarkPegParserValidator.validateBitTags(this.context,o,l,t);const m=a.Config.getBitConfig(o),T=this.bitContentProcessor(P.BitContentLevel.Bit,o,n,m.tags,t),{body:h,footer:b,cardSet:C,title:k,statement:S,statements:x,choices:K,responses:w,propertyStyleResources:_,resources:I,posterImage:L,internalComments:N}=T,R=r(T,["body","footer","cardSet","title","statement","statements","choices","responses","propertyStyleResources","resources","posterImage","internalComments"]);this.debugPrint("BIT TAGS",R),this.debugPrint("BIT BODY",h),this.debugPrint("BIT FOOTER",b);const E=(0,B.buildTitles)(this.context,o,k),O=(0,y.buildCards)(this.context,o,n,C,S,x,K,w),F=(0,v.buildResources)(this.context,o,l,I),V=[...null!=N?N:[],...null!==(i=O.internalComments)&&void 0!==i?i:[]],j=this.buildBitLevelWarnings(),G=this.buildBitLevelErrors();j&&(this.parser.warnings=j),G&&(this.parser.errors=G);return{value:A.bit(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({bitType:o,bitLevel:p,isCommented:c,textFormat:n,resourceType:l},E),{posterImage:L,statement:u?S:void 0,choices:d?K:void 0,responses:f?w:void 0}),R),_),{resources:F}),O),{body:h,footer:b,internalComment:V,parser:this.parser}))}}invalidBit(e){e&&this.addError("Invalid bit"),this.parser.errors=this.buildBitLevelErrors();return{value:A.bit({bitType:a.Config.getBitType(s.BitType._error),bitLevel:1,parser:this.parser})}}buildBitHeader(e,t,i){const r=a.Config.getBitType(e),o=a.Config.isBitTypeCommented(e);a.Config.isOfBitType(r,s.BitType._error)&&this.addError(`Invalid bit type: '${e}'`);const n=a.Config.getBitConfig(r);t>a.Config.bitLevelMax?(this.addWarning(`Bit level of ${t} too high, setting to max value of ${a.Config.bitLevelMax}`),t=a.Config.bitLevelMax):t<a.Config.bitLevelMin&&(this.addWarning(`Bit level of ${t} too low, setting to min value of ${a.Config.bitLevelMin}`),t=a.Config.bitLevelMin);let l=c.TextFormat.fromValue(i.textFormat);i.textFormat&&!l&&this.addWarning(`Invalid text format '${i.textFormat}', defaulting to '${n.textFormatDefault}'`),l=null!=l?l:n.textFormatDefault;const u=p.ResourceTag.fromValue(i.resourceType);return i.resourceType&&!u&&this.addWarning(`Invalid resource type '${i.resourceType}', it will be ignored`),{bitType:r,bitLevel:t,textFormat:null!=l?l:n.textFormatDefault,resourceType:u,isCommented:o}}buildTextAndResourceType(e,t){const i={},r=e=>{e&&(e.type===P.TypeKey.TextFormat?i.textFormat=u.StringUtils.string(e.value):i.resourceType=u.StringUtils.string(e.value))};return r(e),r(t),i}resetParserState(){this.context.state={}}squashUnwantedInlineBodyBits(e,t,i){const r=[];if(!i)return r;const o=t===c.TextFormat.bitmarkMinusMinus||t===c.TextFormat.bitmarkPlusPlus,n=(e,t="")=>{const{chain:i,parser:r}=e;if(t+=r.text,i)for(const e of i)t=n(e,t);return t};let a=!1;for(const e of i){const{type:t,value:i}=e,s=null!=i?i:"";let l=!1;if(a||(t===P.TypeKey.BodyText&&!o&&s&&s.trim()&&(a=!0),t===P.TypeKey.PlainTextDivider&&(a=!0,l=!0)),l)r.push({type:P.TypeKey.BodyText,value:"\n"});else if(a)if(t===P.TypeKey.BodyText)r.push({type:P.TypeKey.BodyTextPlain,value:i});else{const t=n(e);r.push({type:P.TypeKey.BodyTextPlain,value:t})}else r.push(e)}return r}bitContentProcessor(e,t,i,r,o){const a={};if(!o)return a;a.title=[],a.solutions=[],a.statements=[],a.choices=[],a.responses=[],a.propertyStyleResources={},a.resources=[],a.trueFalse=[],a.markConfig=[],a.extraProperties={},a.internalComments=[];let s=!1,l=!1;const p=[];let c=n.Breakscape.EMPTY_STRING,u=n.Breakscape.EMPTY_STRING,y=n.Breakscape.EMPTY_STRING,k=n.Breakscape.EMPTY_STRING;const S=e===P.BitContentLevel.Bit,x=e===P.BitContentLevel.Card,K=e===P.BitContentLevel.Chain,w=()=>{if(c){c=g.BitmarkPegParserValidator.checkBodyPart(this.context,e,t,c);const i=A.bodyText({text:c},!1);p.push(i)}c=n.Breakscape.EMPTY_STRING};o.forEach(((o,g)=>{const{type:S,value:x}=o;switch(S){case P.TypeKey.ItemLead:(0,m.itemLeadChainContentProcessor)(this.context,e,t,i,r,o,a);break;case P.TypeKey.Instruction:case P.TypeKey.Hint:case P.TypeKey.Anchor:case P.TypeKey.SampleSolution:(0,d.defaultTagContentProcessor)(this.context,e,t,i,r,o,a);break;case P.TypeKey.Reference:(0,b.referenceTagContentProcessor)(this.context,e,t,i,r,o,a,s),s=!0;break;case P.TypeKey.Title:(0,B.titleTagContentProcessor)(this.context,e,t,i,r,o,a);break;case P.TypeKey.Property:(0,h.propertyContentProcessor)(this.context,e,t,i,r,o,a);break;case P.TypeKey.Gap:K||w(),(0,f.gapChainContentProcessor)(this.context,e,t,i,r,o,a,p);break;case P.TypeKey.Mark:K||w(),(0,T.markChainContentProcessor)(this.context,e,t,i,r,o,a,p);break;case P.TypeKey.True:case P.TypeKey.False:K||w(),(0,C.trueFalseChainContentProcessor)(this.context,e,t,i,r,o,a,p);break;case P.TypeKey.Resource:(0,v.resourceContentProcessor)(this.context,e,t,i,r,o,a);break;case P.TypeKey.CardSet:a.cardSet=x,l=!0;break;case P.TypeKey.BodyText:case P.TypeKey.CardText:l?u=n.Breakscape.concatenate(u,x):c=n.Breakscape.concatenate(c,x);break;case P.TypeKey.BodyTextPlain:l?k=n.Breakscape.concatenate(k,x):y=n.Breakscape.concatenate(y,x);break;case P.TypeKey.FooterDivider:l&&(u=n.Breakscape.concatenate(u,x)),l=!0}})),w();const _=y?A.bodyText({text:y},!0):void 0;if(_&&p.push(_),a.itemLead){const e=a.itemLead.length;e>0&&(a.item=a.itemLead[0]),e>1&&(a.lead=a.itemLead[1]),e>2&&(a.pageNumber=a.itemLead[2]),e>3&&(a.marginNumber=a.itemLead[e-1])}if(S?(a.body=p.length>0?A.body({bodyParts:this.trimBodyParts(p)}):void 0,a.body=g.BitmarkPegParserValidator.checkBody(this.context,e,t,i,a.body)):x&&(a.cardBody=p.length>0?A.body({bodyParts:this.trimBodyParts(p)}):void 0),u=u.trim(),k=k.trim(),u||k){u&&(u=g.BitmarkPegParserValidator.checkFooter(this.context,e,t,u));const i=[],r=u?A.footerText({text:u},!1):void 0,o=k?A.footerText({text:k},!0):void 0;r&&i.push(r),o&&i.push(o),u&&(a.footer=i.length>0?A.footer({footerParts:this.trimFooterTexts(i)}):void 0)}return 0===Object.keys(a.extraProperties).length&&delete a.extraProperties,0===a.title.length&&delete a.title,0===a.solutions.length&&delete a.solutions,0===a.statements.length&&delete a.statements,0===a.choices.length&&delete a.choices,0===a.responses.length&&delete a.responses,0===a.trueFalse.length&&delete a.trueFalse,0===a.markConfig.length&&delete a.markConfig,0===Object.keys(a.propertyStyleResources).length&&delete a.propertyStyleResources,0===a.resources.length&&delete a.resources,0===a.internalComments.length&&delete a.internalComments,a}buildBitLevelWarnings(){let e;return this.nonFatalWarnings.length>0&&(e=this.nonFatalWarnings,this.nonFatalWarnings=[]),e}buildBitLevelErrors(){let e;return this.nonFatalErrors.length>0&&(e=this.nonFatalErrors,this.nonFatalErrors=[]),e}splitBitContent(e,t){const i=[];let r=[];for(const o of e)t.includes(o.type)&&(r.length>0&&i.push(r),r=[]),r.push(o);return r.length>0&&i.push(r),i}trimBodyParts(e){let t=!1,i=e.reduce(((e,i)=>{const r=i;if(t||r.type!==l.BodyBitType.text)t=!0,e.push(i);else{const i=r.data.bodyText.trimStart();i&&(t=!0,r.data.bodyText=i,e.push(r))}return e}),[]);return t=!1,i=i.reduceRight(((e,i)=>{const r=i;if(t||r.type!==l.BodyBitType.text)t=!0,e.unshift(i);else{const i=r.data.bodyText.trimEnd();i&&(t=!0,r.data.bodyText=i,e.unshift(r))}return e}),[]),i}trimFooterTexts(e){let t=!1,i=e.reduce(((e,i)=>{const r=i;if(t)t=!0,e.push(i);else{const i=r.footerText.trimStart();i&&(t=!0,r.footerText=i,e.push(r))}return e}),[]);return t=!1,i=i.reduceRight(((e,i)=>{const r=i;if(t)t=!0,e.unshift(i);else{const i=r.footerText.trimEnd();i&&(t=!0,r.footerText=i,e.unshift(r))}return e}),[]),i}addWarning(e,t,i){var r,o,n;const a={message:e,text:null!==(r=null==t?void 0:t.parser.text)&&void 0!==r?r:this.parserText(),location:null!==(o=null==t?void 0:t.parser.location)&&void 0!==o?o:this.parserLocation(),original:null!==(n=null==i?void 0:i.parser)&&void 0!==n?n:void 0};a.original||delete a.original,this.nonFatalWarnings.push(a)}addError(e,t,i){var r,o,n;const a={message:e,text:null!==(r=null==t?void 0:t.parser.text)&&void 0!==r?r:this.parserText(),location:null!==(o=null==t?void 0:t.parser.location)&&void 0!==o?o:this.parserLocation(),original:null!==(n=null==i?void 0:i.parser)&&void 0!==n?n:void 0};a.original||delete a.original,this.nonFatalErrors.push(a)}debugPrint(e,t){}}},3029:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CARD_VARIANT_DIVIDER_V1=t.CARD_SIDE_DIVIDER_V1=t.CARD_DIVIDER_V1=t.CARD_VARIANT_DIVIDER_V2=t.CARD_SIDE_DIVIDER_V2=t.CARD_DIVIDER_V2=t.BitContentLevel=t.TypeKey=void 0;const r=i(4718),o=i(9917);t.CARD_DIVIDER_V2="====";t.CARD_SIDE_DIVIDER_V2="--";t.CARD_VARIANT_DIVIDER_V2="++";t.CARD_DIVIDER_V1="===";t.CARD_SIDE_DIVIDER_V1="==";t.CARD_VARIANT_DIVIDER_V1="--";const n=(0,r.superenum)({TextFormat:"TextFormat",ResourceType:"ResourceType",Title:o.Tag.tag_title,Anchor:o.Tag.tag_anchor,Reference:o.Tag.tag_reference,ItemLead:o.Tag.tag_itemLead,Instruction:o.Tag.tag_instruction,Hint:o.Tag.tag_hint,True:o.Tag.tag_true,False:o.Tag.tag_false,Gap:o.Tag.tag_gap,Mark:o.Tag.tag_mark,SampleSolution:o.Tag.tag_sampleSolution,Property:"Property",Resource:"Resource",TagChain:"TagChain",BodyChar:"BodyChar",BodyText:"BodyText",BodyTextPlain:"BodyTextPlain",CardSet:"CardSet",Card:"Card",CardChar:"CardChar",CardText:"CardText",GapChain:"GapChain",TrueFalseChain:"TrueFalseChain",PlainTextDivider:"PlainTextDivider",FooterDivider:"FooterDivider"});t.TypeKey=n;const a=(0,r.superenum)({Bit:"Bit",Card:"Card",Chain:"Chain"});t.BitContentLevel=a},4266:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkPegParserValidator=void 0;const r=i(5809),o=i(2028),n=i(5512),a=i(4410),s=i(3778),l=i(166),p=i(9917),c=i(385),u=i(3029),g=["====","----","\n==\n","\n---\n","\n--\n",":::","::::","|||","||||"],y=["==\n","---\n","--\n"],d=["\n==","\n---","\n--"],f=new r.Builder;const m=new class{validateBitTags(e,t,i,r){if(!r)return[];const n=o.Config.getBitConfig(t),{tags:a,cardSet:s}=n,l=o.Config.getBitResourcesConfig(t,i),p=Object.assign(Object.assign({},a),l.tags);return this.validateTagChainsRecursive(e,u.BitContentLevel.Bit,t,r,p,s).validated}checkBody(e,t,i,r,n){if(!n||!n.bodyParts)return n;const s=o.Config.getBitConfig(i),{bodyAllowed:l}=s;if(n.bodyParts.length>0&&!l&&e.addWarning(`Bit '${i}' should not have a body.`),r===c.TextFormat.json){let t=n.bodyParts.reduce(((e,t)=>{var i;if(t.type===a.BodyBitType.text&&t.data){return e+(null!==(i=t.data.bodyText)&&void 0!==i?i:"")}return e}),"");try{t=JSON.parse(t)}catch(i){t=null,e.addError("Body JSON is invalid.")}n=f.body({bodyJson:t})}return n}checkBodyPart(e,t,i,r){return r?(this.checkBodyForCommonPotentialMistakes(e,t,i,r),r):r}checkFooter(e,t,i,r){if(!r)return r;const n=o.Config.getBitConfig(i),{footerAllowed:a}=n;return this.checkBodyForCommonPotentialMistakes(e,t,i,r),a||e.addWarning(`Bit '${i}' should not have a footer.`),r}checkCardBody(e,t,i,r,n,a,s){if(!r||!r.bodyParts)return r;const l=o.Config.getBitConfig(i);if(!l.cardSet)return r;const p=this.getVariantConfig(l.cardSet.variants,a,s);if(!p)return r;const{bodyAllowed:c}=p;return r.bodyParts.length>0&&!c&&e.addWarning(`Bit '${i}' should not have a card body at card:${n+1}, side:${a+1}, variant:${s+1}.`),r}validateTagChainsRecursive(e,t,i,r,o,a,c){var g;if(!r)return{validated:[]};let y;const d=[...r],f=this.convertTagsToTypeKeyMap(e,t,i,o),m=(e,t,i)=>{f.set(e,{maxCount:t,minCount:i,_type:e,_tag:e,_seenCount:0})};var T,h,b;T=l.PropertyTag.internalComment,h=s.Count.infinity,b=0,f.set(`${u.TypeKey.Property}:${T}`,{maxCount:h,minCount:b,_type:n.BitTagType.property,_tag:p.Tag.tag_property,_seenCount:0}),t===u.BitContentLevel.Bit?(a&&m(u.TypeKey.CardSet,1,0),m(u.TypeKey.TextFormat,1,0),m(u.TypeKey.BodyText,s.Count.infinity,0),m(u.TypeKey.BodyTextPlain,s.Count.infinity,0),m(u.TypeKey.PlainTextDivider,s.Count.infinity,0),m(u.TypeKey.FooterDivider,s.Count.infinity,0)):t===u.BitContentLevel.Card&&m(u.TypeKey.CardText,s.Count.infinity,0);for(let r=0;r<d.length;r++){const o=d[r];if(!o)continue;const{type:n,key:s}=o,l=u.TypeKey.fromValue(n);if(!l)continue;let p=l;l!==u.TypeKey.Property&&l!==u.TypeKey.Resource||(p=`${l}:${s}`);const m=f.get(p),{validated:T,warning:h}=this.validateSingleTag(e,t,i,o,l,m,a);l===u.TypeKey.Resource&&(c=u.TypeKey.Resource);let b=!0;if(!T)if(t===u.BitContentLevel.Chain&&c!==u.TypeKey.Resource){y=o;const e=d.slice(r+1);e.length>0&&(y.chain=e),d.splice(r),b=!1}else d.splice(r,1,null);if(h&&b&&e.addWarning(null!==(g=h.warning)&&void 0!==g?g:"",h.content,h.previousContent),T&&Array.isArray(T.chain)&&T.chain.length>0)if(m&&m.chain){const{validated:t,remaining:o}=this.validateTagChainsRecursive(e,u.BitContentLevel.Chain,i,T.chain,m.chain,void 0,T.type);t&&t.length>0?T.chain=t:T.chain=void 0,o&&d.splice(r+1,0,o)}else if(T.type!==u.TypeKey.Resource){const e=T.chain[0];T.chain.length>1&&(e.chain=T.chain.slice(1)),d.splice(r+1,0,e),T.chain=void 0}}for(const t of f.values()){const{minCount:i,_seenCount:r}=t;if(null!=i&&r<i){const r=`${this.getTagSignature(t)} is required at least ${i} time(s)`;e.addWarning(r)}}return{validated:d.filter((e=>null!=e)),remaining:y}}validateSingleTag(e,t,i,r,o,n,a){const{type:s,key:l}=r,p=n?this.getTagSignature(n):this.getUnknownTagSignature(s,l),c=" It will be ignored";let g,y,d="";if(n)switch(n._seenCount++,o){case u.TypeKey.Property:{const{content:o,warning:a}=this.validatePropertyTag(e,t,i,n,r);g=o,y=a;break}case u.TypeKey.Resource:{const{content:o,warning:a}=this.validateResourceTag(e,t,i,n,r);g=o,y=a;break}case u.TypeKey.CardSet:{const{content:t,warning:o}=this.validateCardSet(e,i,n,r,a);g=t,y=o;break}default:{const{content:o,warning:a}=this.validateStandardTag(e,t,i,n,r);g=o,y=a}}else switch(o){case u.TypeKey.Property:y={extraProperty:!0},t!==u.BitContentLevel.Chain&&(g=r);break;case u.TypeKey.Resource:y={excessResource:!0},g=r;break;default:y={invalid:!0}}if(y){const e=null==n?void 0:n._previous;y.invalid||y.excessResource?d=`${p} is not valid here (incorrectly chained?).${c}`:null!=y.tooMany?(d=`${p} is included more than ${y.tooMany} time(s).`,y.tooMany>0&&(d+=" The earlier ones will be ignored")):y.extraProperty?d=`${p} is an unknown property. It can be excluded from the output using the 'excludeUnknownProperties' flag`:y.unexpectedCardSet?d=`${p} is not expected here.${c}`:y.unexpectedCardSideVariant&&(d=`${p} has a card / side / variant that is not expected here.${c}`),y.warning=d,y.content=g,y.previousContent=e}return n&&(n._previous=r),{validated:g,warning:y}}validateStandardTag(e,t,i,r,o){const n=null==r.maxCount?1:r.maxCount;return n!==s.Count.infinity&&r._seenCount>n?{warning:{tooMany:n},content:o}:{content:o}}validatePropertyTag(e,t,i,r,o){const n=null==r.maxCount?1:r.maxCount;return n!==s.Count.infinity&&r._seenCount>n?{warning:{tooMany:n},content:o}:{content:o}}validateResourceTag(e,t,i,r,o){const n=null==r.maxCount?1:r.maxCount;return n!==s.Count.infinity&&r._seenCount>n?{warning:{tooMany:n},content:o}:{content:o}}validateCardSet(e,t,i,r,o){if(!o||!o.variants||0===o.variants.length)return{warning:{unexpectedCardSet:!0}};const{value:n}=r,a=n;let s,l=0,p=0;for(const i of a.cards){l=0;for(const r of i.sides){p=0;for(const i of r.variants){const n=i.content;let a;const c=this.getVariantConfig(o.variants,l,p);if(c){a=this.validateTagChainsRecursive(e,u.BitContentLevel.Card,t,n,c.tags).validated}else s={unexpectedCardSideVariant:!0};a&&a.length>0?r.variants[p]={parser:i.parser,content:a}:r.variants[p]={parser:i.parser,content:[]},p++}l++}}return{content:r,warning:s}}checkBodyForCommonPotentialMistakes(e,t,i,r){if(r){for(const t of g)r.includes(t)&&e.addWarning(`Bit '${i}' might contain a mistake: ${t}`);for(const t of y)r.startsWith(t)&&e.addWarning(`Bit '${i}' might contain a mistake: ${t}`);for(const t of d)r.endsWith(t)&&e.addWarning(`Bit '${i}' might contain a mistake: ${t}`)}}convertTagsToTypeKeyMap(e,t,i,r){const o=new Map;for(const e of Object.values(r)){const t={minCount:e.minCount,maxCount:e.maxCount,isTag:e.type===n.BitTagType.tag,isProperty:e.type===n.BitTagType.property,isResource:e.type===n.BitTagType.resource,chain:e.chain,_configKey:e.configKey,_type:e.type,_tag:e.tag,_seenCount:0,_previous:void 0};if(t.isProperty)o.set(`${u.TypeKey.Property}:${e.tag}`,t);else if(t.isResource)o.set(`${u.TypeKey.Resource}:${e.tag}`,t);else{const i=u.TypeKey.fromValue(e.tag);i&&o.set(i,t)}}return o}getVariantConfig(e,t,i){let r;if(0===e.length)return;const o=e[Math.min(t,e.length-1)],n=o.length-1;if(i>n){if(r=o[n],r.repeatCount!==s.Count.infinity)return}else r=o[i];return r}getTagSignature(e){switch(e._type){case n.BitTagType.tag:return`[${e._tag}]`;case n.BitTagType.property:return`[@${e._tag}]`;case n.BitTagType.resource:return`[&${e._tag}]`;default:return`'${e._type}' tag '${e._tag}'`}}getUnknownTagSignature(e,t){switch(e){case u.TypeKey.Property:return`[@${t}]`;case u.TypeKey.Resource:return`[&${t}]`;default:return t?`'${e}' tag '${t}'`:`'${e}' tag`}}};t.BitmarkPegParserValidator=m},7461:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PeggyGrammarLocation=void 0;t.PeggyGrammarLocation=class{constructor(e,t){this.source=e,this.start=t}toString(){return String(this.source)}offset(e){return{line:e.line+this.start.line-1,column:1===e.line?e.column+this.start.column-1:e.column,offset:e.offset+this.start.offset}}static offsetStart(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start}static offsetEnd(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end}}},3045:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bookChainContentProcessor=function(e,t,i,n,a,s,l){if(t===o.BitContentLevel.Chain);else{const t=function(e,t,i,n,a,s){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("book content",s);const l=e.bitContentProcessor(o.BitContentLevel.Chain,i,n,a,s.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("book TAGS",l);const{reference:p,referenceEnd:c}=l,u=r.StringUtils.trimmedString(s.value);return{book:u,reference:p,referenceEnd:c}}(e,0,i,n,a,s);l.book=t.book,l.reference=t.reference,l.referenceEnd=t.referenceEnd}};const r=i(9681),o=i(3029)},1083:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.buildCards=function(e,t,i,o,m,T,h,b){var v;e.DEBUG_CARD_SET&&e.debugPrint("card set",o);let B={};const C=function(e,t,i,r){const o={cards:[],internalComments:[]};if(!r)return o;let n=0,s=0,l=0;for(const p of r.cards){const r={no:n++,sides:[]};o.cards.push(r);for(const n of p.sides){const p={no:s++,variants:[]};r.sides.push(p);for(const c of n.variants){const{parser:n,content:u}=c,d={parser:n,no:l++};p.variants.push(d);const m=a.Config.getTagsConfigForCardSet(t,s,l),T=e.bitContentProcessor(y.BitContentLevel.Card,t,i,m,u);e.DEBUG_CARD_TAGS&&e.debugPrint("card tags",T),T.cardBody=g.BitmarkPegParserValidator.checkCardBody(e,y.BitContentLevel.Card,t,T.cardBody,r.no,p.no,d.no),T.cardBodyStr=f(T.cardBody),d.data=T,T.internalComments&&o.internalComments.push(...T.internalComments)}l=0}s=0}return o}(e,t,i,o),P=a.Config.getBitConfig(t);switch(null===(v=P.cardSet)||void 0===v?void 0:v.configKey){case s.CardSetConfigKey._flashcardLike:B=function(e,t,i){const o=[],s=[];let p,c,u=n.Breakscape.EMPTY_STRING,g=[],y=0,f=0,m={};const T=t===l.BitType.flashcard1;for(const h of i.cards){u=n.Breakscape.EMPTY_STRING,p=void 0,g=[],f=0,m={};for(const e of h.sides)for(const t of e.variants){const e=t.data,{cardBodyStr:i}=e,o=r(e,["cardBodyStr"]);m=Object.assign(Object.assign({},m),o),0===f?(c=t,u=null!=i?i:n.Breakscape.EMPTY_STRING):1===f?p=null!=i?i:n.Breakscape.EMPTY_STRING:g.push(null!=i?i:n.Breakscape.EMPTY_STRING),f++}if(0!==y&&T){e.addWarning(`Bit '${t}' should only contain one card. Ignore subsequent card: '${u}'`,c);break}a.Config.isOfBitType(t,l.BitType.definitionList)?s.push(d.definitionListItem(Object.assign({term:u,description:p,alternativeDefinitions:g.length>0?g:void 0},m))):o.push(d.flashcard(Object.assign({question:u,answer:p,alternativeAnswers:g.length>0?g:void 0},m))),y++}return{flashcards:o.length>0?o:void 0,definitions:s.length>0?s:void 0}}(e,t,C);break;case s.CardSetConfigKey._elements:B=function(e,t,i){var r;const o=[];for(const e of i.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data;o.push(null!==(r=t.cardBodyStr)&&void 0!==r?r:n.Breakscape.EMPTY_STRING)}return{elements:o.length>0?o:void 0}}(0,0,C);break;case s.CardSetConfigKey._statements:B=function(e,t,i,o,n){const a=[];for(const e of i.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,{statements:i}=t,o=r(t,["statements"]);if(Array.isArray(i))for(const e of i){const t=d.statement(Object.assign(Object.assign(Object.assign({},e),e.itemLead),o));a.push(t)}}o&&a.push(o);Array.isArray(n)&&n.length>0&&a.push(...n);return{statements:a.length>0?a:void 0}}(0,0,C,m,T);break;case s.CardSetConfigKey._quiz:B=function(e,t,i,o,s){const p=[],c=a.Config.isOfBitType(t,l.BitType.multipleChoice),u=a.Config.isOfBitType(t,l.BitType.multipleResponse);if(!c&&!u)return{};let g,y=!1;for(const e of i.cards){y=!1,g=n.Breakscape.EMPTY_STRING;for(const t of e.sides)for(const e of t.variants){const t=e.data,{isDefaultExample:i,example:o}=t,n=r(t,["isDefaultExample","example"]);if(y=!0===i||y,g=o||g,n.trueFalse&&n.trueFalse.length>0){const e=[],t=u?d.response:d.choice;for(const i of n.trueFalse){const{isDefaultExample:o,example:n}=i,a=r(i,["isDefaultExample","example"]),s=o||y,l=n||g,p=t(Object.assign(Object.assign({},a),{isDefaultExample:s,example:l}));e.push(p)}u?n.responses=e:n.choices=e}const a=d.quiz(Object.assign(Object.assign({},n),{isDefaultExample:y,example:g}));p.push(a)}}if(c&&Array.isArray(o)&&o.length>0){const e=d.quiz({choices:o});p.push(e)}if(u&&Array.isArray(s)&&s.length>0){const e=d.quiz({responses:s});p.push(e)}return{quizzes:p.length>0?p:void 0}}(0,t,C,h,b);break;case s.CardSetConfigKey._questions:B=function(e,t,i){var r;const o=[];for(const e of i.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,i=d.question(Object.assign({question:null!==(r=t.cardBodyStr)&&void 0!==r?r:n.Breakscape.EMPTY_STRING},t));o.push(i)}return{questions:o.length>0?o:void 0}}(0,0,C);break;case s.CardSetConfigKey._matchPairs:B=function(e,t,i){let o,a=0,s=!1;const l=[];let p,u,g,y,f,m,T=[],h=[],b={},v=!1,B=!1;for(const e of i.cards){s=!1,p=void 0,T=[],u=void 0,h=[],g=void 0,y=void 0,a=0,b={},B=!1,m=n.Breakscape.EMPTY_STRING;for(const t of e.sides){for(const e of t.variants){const t=e.data,{cardBodyStr:i,title:o,resources:l,isDefaultExample:d,example:C}=t,P=r(t,["cardBodyStr","title","resources","isDefaultExample","example"]);B=!0===d||B,m=C||m;const k=o&&o[1];if(null!=k&&(s=!0),0===a)if(p=k,null!=k)v=!0===d||v,f=C||f;else if(Array.isArray(l)&&l.length>0){const e=l[0];e.type===c.ResourceTag.audio?g=e:e.type===c.ResourceTag.image&&(y=e)}else u=i;else{if(T.push(null!=k?k:n.Breakscape.EMPTY_STRING),null!=k)v=!0===d||v,f=C||f;else if(null==o){const e=null!=i?i:n.Breakscape.EMPTY_STRING;h.push(e),!v&&!B||m||(m=e)}delete P.item,delete P.lead}b=Object.assign(Object.assign({},b),P)}a++}if(s)o=d.heading({forKeys:null!=p?p:n.Breakscape.EMPTY_STRING,forValues:T});else{B&&(f=void 0);const e=B||v,t=m||f,i=d.pair(Object.assign(Object.assign({key:null!=u?u:n.Breakscape.EMPTY_STRING,keyAudio:g,keyImage:y,values:h},b),{isDefaultExample:e,example:t}));l.push(i)}}return{heading:o,pairs:l.length>0?l:void 0}}(0,0,C);break;case s.CardSetConfigKey._matchMatrix:B=function(e,t,i){let o,a,s,l,p=0,c=!1,u=[];const g=[];let y,f,m,T,h,b=[],v=[],B={},C=!1,P=!1,k=!1;for(const e of i.cards){c=!1,a=void 0,s=void 0,l=void 0,u=[],b=[],v=[],p=0,P=!1,f=n.Breakscape.EMPTY_STRING,T=void 0;for(const t of e.sides){v=[],B={},k=!1,m=n.Breakscape.EMPTY_STRING,h=void 0;for(const e of t.variants){const t=e.data,{title:i,cardBodyStr:o,isDefaultExample:g,example:d,isCaseSensitive:b}=t,S=r(t,["title","cardBodyStr","isDefaultExample","example","isCaseSensitive"]);k=!0===g||k,m=d||m,Object.assign(B,S);const x=i&&i[1];if(null!=x&&(c=!0),0===p)a=x,null!=x?(C=!0===g||C,y=d||y):(s=o,l=S,P=!0===g||P,f=d||f,T=null!=b?b:T);else if(u.push(null!=x?x:n.Breakscape.EMPTY_STRING),null!=x)C=!0===g||C,y=d||y;else if(null==t.title){const e=null!=o?o:n.Breakscape.EMPTY_STRING;v.push(e),!C&&!k||m||(m=e),h=null!=b?b:T}}if(p>0){k&&(f=y=void 0),P&&(y=void 0);const e=k||P||C,t=m||f||y,i=d.matrixCell(Object.assign(Object.assign({values:v},B),{isDefaultExample:e,example:t,isCaseSensitive:h}));b.push(i)}p++}if(c)o=d.heading({forKeys:null!=a?a:n.Breakscape.EMPTY_STRING,forValues:u});else{const e=d.matrix(Object.assign({key:null!=s?s:n.Breakscape.EMPTY_STRING,cells:b},l));g.push(e)}}return{heading:o,matrix:g.length>0?g:void 0}}(0,0,C);break;case s.CardSetConfigKey._table:B=function(e,t,i){let r=0,o=!1;const a=[],s=[];let l=[];for(const e of i.cards){o=!1,l=[];for(const t of e.sides)for(const e of t.variants){const t=e.data,{title:i,cardBodyStr:s}=t,p=i&&i[1];if(0===r&&null!=p&&(o=!0),o)a.push(null!=p?p:n.Breakscape.EMPTY_STRING);else{const e=null!=s?s:n.Breakscape.EMPTY_STRING;l.push(e)}}o||s.push(l),r++}return{table:d.table({columns:a,rows:s})}}(0,0,C);break;case s.CardSetConfigKey._botActionResponses:B=function(e,t,i){const o=[];for(const e of i.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,{instruction:i,reaction:a,cardBodyStr:s}=t,l=r(t,["instruction","reaction","cardBodyStr"]),p=d.botResponse(Object.assign({response:null!=i?i:n.Breakscape.EMPTY_STRING,reaction:null!=a?a:n.Breakscape.EMPTY_STRING,feedback:null!=s?s:n.Breakscape.EMPTY_STRING},l));o.push(p)}return{botResponses:o.length>0?o:void 0}}(0,0,C);break;case s.CardSetConfigKey._ingredients:B=function(e,t,i){const o=[];for(const e of i.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,{title:i,instruction:a,unit:s,unitAbbr:l,decimalPlaces:c,disableCalculation:g,cardBodyStr:y,cardBody:f}=t,m=r(t,["title","instruction","unit","unitAbbr","decimalPlaces","disableCalculation","cardBodyStr","cardBody"]),T=Array.isArray(i)&&i.length>0?i[i.length-1]:void 0;let h=!1,b=u.NumberUtils.asNumber(a);if(f&&f.bodyParts){const e=f.bodyParts.find((e=>e.type===p.BodyBitType.select));e&&(b=e.data.instruction?u.NumberUtils.asNumber(e.data.instruction):b,e.data.options&&e.data.options.length>0&&(h=e.data.options[0].isCorrect))}const v=y?y.trim():n.Breakscape.EMPTY_STRING,B=d.ingredient(Object.assign({title:T,checked:h,item:v,quantity:b,unit:null!=s?s:n.Breakscape.EMPTY_STRING,unitAbbr:null!=l?l:n.Breakscape.EMPTY_STRING,decimalPlaces:null!=c?c:1,disableCalculation:g},m));o.push(B)}return{ingredients:o.length>0?o:void 0}}(0,0,C);break;case s.CardSetConfigKey._clozeList:case s.CardSetConfigKey._exampleBitList:B=function(e,t,i){const o=[];for(const e of i.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,{cardBody:i}=t,n=r(t,["cardBody"]),a=d.cardBit(Object.assign({body:i},n));a&&o.push(a)}return{cardBits:o.length>0?o:void 0}}(0,0,C);break;case s.CardSetConfigKey._captionDefinitionsList:B=function(e,t,i){let r=0,o=!1;const a=[],s=[];let l=[];for(const e of i.cards){o=!1,l=[];for(const t of e.sides)for(const e of t.variants){const t=e.data,{title:i,cardBodyStr:s}=t,p=i&&i[1];if(0===r&&null!=p&&(o=!0),o)a.push(null!=p?p:n.Breakscape.EMPTY_STRING);else{const e=null!=s?s:n.Breakscape.EMPTY_STRING;l.push(e)}}o||s.push(l),r++}return{captionDefinitionList:d.captionDefinitionList({columns:a,definitions:s.map((e=>d.captionDefinition({term:e[0],description:e[1]})))})}}(0,0,C)}return B.internalComments=C.internalComments.length>0?C.internalComments:void 0,B};const o=i(5809),n=i(7735),a=i(2028),s=i(8199),l=i(5854),p=i(4410),c=i(6149),u=i(8025),g=i(4266),y=i(3029),d=new o.Builder;function f(e){let t="";if(e&&e.bodyParts)for(const i of e.bodyParts)if(i.type===p.BodyBitType.text){t+=i.data.bodyText}return t}},554:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clozeTagContentProcessor=function(e,t,i,o,n,a,s){const{value:l}=a,p=s.solutions;if(!p)return;if(r.StringUtils.isString(l)){const e=r.StringUtils.trimmedString(l);p.push(e)}};const r=i(9681)},4402:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTagContentProcessor=function(e,t,i,n,a,s,l){const{type:p,value:c}=s,u=r.StringUtils.trimmedString(c);switch(p){case o.TypeKey.Instruction:l.instruction=u;break;case o.TypeKey.Hint:l.hint=u;break;case o.TypeKey.Anchor:l.anchor=u;break;case o.TypeKey.Reference:l.reference=u;break;case o.TypeKey.SampleSolution:l.sampleSolution=u,e.addWarning("[$...] tag is deprecated, use [@sampleSolution:...] instead",s)}};const r=i(9681),o=i(3029)},4091:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.exampleTagContentProcessor=function(e,t,i,s,l,p){const{value:c}=l,u=c;r.Config.isOfBitType(i,[o.BitType.cloze,o.BitType.clozeAndMultipleChoiceText,o.BitType.multipleChoiceText,o.BitType.highlightText,o.BitType.trueFalse,o.BitType.trueFalse1,o.BitType.multipleResponse,o.BitType.multipleResponse1,o.BitType.multipleChoice,o.BitType.multipleChoice1])?function(e,t,i,s,l){var p,c;let u;Array.isArray(l.trueFalse)&&l.trueFalse.length>0&&(u=null!==(p=l.trueFalse[l.trueFalse.length-1])&&void 0!==p?p:void 0);u?!0===s?(u.isDefaultExample=!0,u.example=void 0):n.BooleanUtils.isBooleanString(s)?u.example=s:(u.isDefaultExample=!0,u.example=void 0,e.addWarning("Only 'true' / 'false' / default are allowed here, using default",i)):Array.isArray(l.solutions)&&l.solutions.length>0?l.example=!0===s?null!==(c=l.solutions[l.solutions.length-1])&&void 0!==c?c:void 0:s:(r.Config.isOfBitType(t,[o.BitType.multipleChoiceText,o.BitType.highlightText,o.BitType.trueFalse,o.BitType.trueFalse1,o.BitType.multipleResponse,o.BitType.multipleResponse1])&&function(e,t,i,r,o){!0===r?(o.isDefaultExample=!0,o.example=void 0):n.BooleanUtils.isBooleanString(r)?o.example=r:(o.isDefaultExample=!0,o.example=void 0,e.addWarning("Only 'true' / 'false' / default are allowed here, using default",i))}(e,0,i,s,l),r.Config.isOfBitType(t,[o.BitType.clozeAndMultipleChoiceText,o.BitType.multipleChoice,o.BitType.multipleChoice1])?(l.isDefaultExample=!0,l.example=void 0,!0!==s&&e.addWarning("At this level, only default [@example] is allowed, using default",i)):a(e,t,i,s,l))}(e,i,l,u,p):r.Config.isOfBitType(i,o.BitType.mark)?function(e,t,i,r,o){o.isDefaultExample=!0,o.example=void 0,!0!==r&&e.addWarning("Only default [@example] is allowed, using default",i)}(e,0,l,u,p):a(e,i,l,u,p)};const r=i(2028),o=i(5854),n=i(4078);function a(e,t,i,r,o){!0===r?(o.isDefaultExample=!0,o.example=void 0):o.example=r}},3904:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.gapChainContentProcessor=function(e,t,i,o,c,u,g,y){if(t===l.BitContentLevel.Chain)(0,s.clozeTagContentProcessor)(e,t,i,o,c,u,g);else{const t=function(e,t,i,o,s,c){var u;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("gap content",c);const g=n.Config.getTagConfigForTag(s,a.Tag.fromValue(c.type)),y=[c,...null!==(u=c.chain)&&void 0!==u?u:[]],d=e.bitContentProcessor(l.BitContentLevel.Chain,i,o,null==g?void 0:g.chain,y);e.DEBUG_CHAIN_TAGS&&e.debugPrint("gap TAGS",d);const{solutions:f}=d,m=r(d,["solutions"]),T=p.gap(Object.assign({solutions:null!=f?f:[]},m));return T}(e,0,i,o,c,u);t&&y.push(t)}};const o=i(5809),n=i(2028),a=i(9917),s=i(554),l=i(3029),p=new o.Builder},8848:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.imageSourceChainContentProcessor=function(e,t,i,o,u,g,y){t===p.BitContentLevel.Chain?function(e,t,i,r,o,n,a){const{value:s}=n,p=l.StringUtils.trimmedString(s);a.imageSourceUrl=p}(0,0,0,0,0,g,y):function(e,t,i,o,l,u,g){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("imageSource content",u);const{key:y}=u,d=a.Config.getTagConfigForTag(l,s.PropertyTag.fromValue(y)),f=e.bitContentProcessor(p.BitContentLevel.Chain,i,o,l,[u]),m=e.bitContentProcessor(p.BitContentLevel.Chain,i,o,null==d?void 0:d.chain,u.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("imageSource TAGS",m);const{imageSourceUrl:T}=f,{mockupId:h}=m,b=r(m,["mockupId"]);T||e.addWarning("[@imageSource] is missing the image url",u);h||e.addWarning("[@mockupId:xxx] is missing from [@imageSource]",u);const v=c.imageSource(Object.assign({url:null!=T?T:n.Breakscape.EMPTY_STRING,mockupId:null!=h?h:n.Breakscape.EMPTY_STRING},b));g.imageSource=v}(e,0,i,o,u,g,y)};const o=i(5809),n=i(7735),a=i(2028),s=i(166),l=i(9681),p=i(3029),c=new o.Builder},6991:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commentTagContentProcessor=function(e,t,i,o,n){if(!n.internalComments)return;const{value:a}=o,s=r.StringUtils.isString(a)?r.StringUtils.trimmedString(a):void 0;if(!s)return;n.internalComments.push(s)};const r=i(9681)},9289:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.itemLeadChainContentProcessor=function(e,t,i,s,l,p,c){t===a.BitContentLevel.Chain?(0,n.itemLeadTagContentProcessor)(e,t,i,s,l,p,c):function(e,t,i,n,s,l,p){var c;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("item lead content",l);const u=r.Config.getTagConfigForTag(s,o.Tag.fromValue(l.type)),g=[l,...null!==(c=l.chain)&&void 0!==c?c:[]],y=e.bitContentProcessor(a.BitContentLevel.Chain,i,n,null==u?void 0:u.chain,g);e.DEBUG_CHAIN_TAGS&&e.debugPrint("item lead TAGS",y);p.itemLead=y.itemLead}(e,0,i,s,l,p,c)};const r=i(2028),o=i(9917),n=i(8216),a=i(3029)},8216:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.itemLeadTagContentProcessor=function(e,t,i,o,n,a,s){const{value:l}=a,p=r.StringUtils.trimmedString(l);s.itemLead||(s.itemLead=[]);s.itemLead.push(p)};const r=i(9681)},5189:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.markChainContentProcessor=function(e,t,i,o,g,y,d,f){if(t===c.BitContentLevel.Chain)(0,p.markTagContentProcessor)(e,c.BitContentLevel.Chain,i,y,d);else{const t=function(e,t,i,o,p,g){var y;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("mark content",g);const d=a.Config.getTagConfigForTag(p,s.Tag.fromValue(g.type)),f=e.bitContentProcessor(c.BitContentLevel.Chain,i,o,p,[g]),m=e.bitContentProcessor(c.BitContentLevel.Chain,i,o,null==d?void 0:d.chain,g.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("mark TAGS",m);const{solution:T}=f,{mark:h}=m,b=r(m,["mark"]),v=u.mark(Object.assign({solution:null!=T?T:n.Breakscape.EMPTY_STRING,mark:null!==(y=l.ArrayUtils.asSingle(h))&&void 0!==y?y:n.Breakscape.EMPTY_STRING},b));return v}(e,0,i,o,g,y);t&&f.push(t)}};const o=i(5809),n=i(7735),a=i(2028),s=i(9917),l=i(6989),p=i(5980),c=i(3029),u=new o.Builder},3063:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.markConfigChainContentProcessor=function(e,t,i,o,c,u,g){var y;const{key:d}=u;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("mark content",u);const f=g.markConfig;if(!f)return;const m=n.Config.getTagConfigForTag(c,a.PropertyTag.fromValue(d)),T=e.bitContentProcessor(l.BitContentLevel.Chain,i,o,null==m?void 0:m.chain,u.chain),{mark:h}=T,b=r(T,["mark"]);e.DEBUG_CHAIN_TAGS&&e.debugPrint("mark TAGS",b);const v=null!==(y=s.StringUtils.trimmedString(u.value))&&void 0!==y?y:"unknown",B=p.markConfig(Object.assign({mark:v,emphasis:"underline"},b));f.push(B)};const o=i(5809),n=i(2028),a=i(166),s=i(9681),l=i(3029),p=new o.Builder},5980:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.markTagContentProcessor=function(e,t,i,o,n){const{value:a}=o;r.StringUtils.isString(a)&&(n.solution=a)};const r=i(9681)},21:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.personChainContentProcessor=function(e,t,i,r,l,p,c){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("person content",p);const u=e.bitContentProcessor(a.BitContentLevel.Chain,i,r,l,p.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("person TAGS",u);const{propertyTitle:g,resources:y}=u,d=n.StringUtils.trimmedString(p.value),f=n.StringUtils.trimmedString(g),m=function(e,t){let i;const r=[];if(t)for(const e of t.reverse())i||o.ResourceTag.image!==e.type?r.push(e):i=e;r.length>0&&(e.parser.excessResources=r,e.addWarning(`${r.length} excess resource(s) present in the [@person] chain.`));return i}(e,y),T=s.person({name:d,title:f,avatarImage:m});c.person=T};const r=i(5809),o=i(6149),n=i(9681),a=i(3029),s=new r.Builder},9647:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propertyContentProcessor=function(e,t,i,C,P,k,S){const{value:x}=k;let{key:K}=k;const w=t===B.BitContentLevel.Chain,A=r.Config.getTagConfigForTag(P,a.PropertyTag.fromValue(K)),_=A?A.configKey:void 0;if(K===a.PropertyTag.internalComment)return void(0,d.commentTagContentProcessor)(e,t,i,k,S);if(A){if(_===o.PropertyConfigKey.example)return void(0,g.exampleTagContentProcessor)(e,t,i,C,k,S);if(_===o.PropertyConfigKey.ratingLevelStart||_===o.PropertyConfigKey.ratingLevelEnd)return void(0,T.ratingLevelChainContentProcessor)(e,t,i,C,A.chain,k,S);if(_===o.PropertyConfigKey.technicalTerm)return void(0,v.technicalTermChainContentProcessor)(e,t,i,C,A.chain,k,S);if(_===o.PropertyConfigKey.servings)return void(0,b.servingsChainContentProcessor)(e,t,i,C,A.chain,k,S);if(_===o.PropertyConfigKey.person||_===o.PropertyConfigKey.partner)return void(0,m.personChainContentProcessor)(e,t,i,C,A.chain,k,S);if(_===o.PropertyConfigKey.imageSource)return void(0,y.imageSourceChainContentProcessor)(e,t,i,C,P,k,S);if(_===o.PropertyConfigKey.book)return void(0,u.bookChainContentProcessor)(e,t,i,C,A.chain,k,S);if(_===o.PropertyConfigKey.markConfig&&!w)return void(0,f.markConfigChainContentProcessor)(e,t,i,C,P,k,S);if(_===o.PropertyConfigKey.property_title&&w)K="propertyTitle";else if(_===o.PropertyConfigKey.imagePlaceholder)return void(0,h.propertyStyleResourceContentProcessor)(e,t,i,C,P,k,S,s.ResourceTag.image)}const I=(e,t,i,r)=>{if(i=(e=>{if(null!=e){if(r)switch(r.format){case n.PropertyFormat.string:return c.StringUtils.isString(e)?c.StringUtils.string(e):void 0;case n.PropertyFormat.trimmedString:return c.StringUtils.isString(e)?c.StringUtils.trimmedString(e):void 0;case n.PropertyFormat.number:return p.NumberUtils.asNumber(e);case n.PropertyFormat.boolean:return l.BooleanUtils.toBoolean(e,!0);case n.PropertyFormat.invertedBoolean:return!l.BooleanUtils.toBoolean(e,!0)}return e}})(i),(null==r?void 0:r.astKey)&&(t=r.astKey),null==r?void 0:r.single)e[t]=i;else if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];e[t]=[...r,i]}else e[t]=[i]};I(A?S:S.extraProperties,K,x,A)};const r=i(2028),o=i(9888),n=i(9727),a=i(166),s=i(6149),l=i(4078),p=i(8025),c=i(9681),u=i(3045),g=i(4091),y=i(8848),d=i(6991),f=i(3063),m=i(21),T=i(3967),h=i(6521),b=i(4953),v=i(4475),B=i(3029)},3967:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ratingLevelChainContentProcessor=function(e,t,i,r,l,p,c){var u;const{key:g,value:y}=p;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("ratingLevel content",p);const d=e.bitContentProcessor(a.BitContentLevel.Chain,i,r,l,p.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("ratingLevel TAGS",d);const{label:f}=d,m=null!==(u=n.NumberUtils.asNumber(y))&&void 0!==u?u:0,T=s.ratingLevelStartEnd({level:m,label:f});switch(g){case o.PropertyTag.ratingLevelStart:c.ratingLevelStart=T;break;case o.PropertyTag.ratingLevelEnd:c.ratingLevelEnd=T}};const r=i(5809),o=i(166),n=i(8025),a=i(3029),s=new r.Builder},3990:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.referenceTagContentProcessor=function(e,t,i,o,n,a,s,l){const{value:p}=a,c=r.StringUtils.trimmedString(p);l?s.referenceEnd=c:s.reference=c};const r=i(9681)},6521:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.buildResources=function(e,t,i,r){var o,l;const p=[],c=[],u=s.ResourceTag.fromValue(i),g=n.Config.getBitResourcesConfig(t,u),y=g.resourceAttachmentAllowed,d=g.getCountsMin(),f=g.getCountsMax();if(r)for(const e of r.reverse()){let t=null!==(o=d.get(e.typeAlias))&&void 0!==o?o:0,i=null!==(l=f.get(e.typeAlias))&&void 0!==l?l:0;t=Math.max(0,t-1),i===a.Count.infinity?p.unshift(e):i>0?(p.unshift(e),i--):c.unshift(e),d.set(e.typeAlias,t),f.set(e.typeAlias,i)}if(!y&&i){const t=`Resource type [&${i}] is specified in the bit header, but no extra resource is allowed for this bit.`;e.addWarning(t)}else 0===p.length&&i&&e.addWarning(`Resource type [&${i}] is specified in the bit header, but no such a resource is present`);c.length>0&&(e.parser.excessResources=c);return p},t.resourceContentProcessor=function(e,t,i,o,a,c,u){const{type:g,key:y,value:d,chain:f}=c,m=u.resources;if(!m)return;const T=s.ResourceTag.fromValue(y);if(T){const t=n.Config.getTagConfigForTag(a,T),s=e.bitContentProcessor(l.BitContentLevel.Chain,i,o,null==t?void 0:t.chain,f),{posterImage:c}=s,u=r(s,["posterImage"]),g=p.resource(Object.assign({type:T,value:d,posterImage:c},u));g&&m.push(g)}},t.propertyStyleResourceContentProcessor=function(e,t,i,o,a,s,c,u){var g;const{type:y,key:d,value:f,chain:m}=s;if(c.propertyStyleResources=null!==(g=c.propertyStyleResources)&&void 0!==g?g:{},u){const t=n.Config.getTagConfigForTag(a,u),s=e.bitContentProcessor(l.BitContentLevel.Chain,i,o,null==t?void 0:t.chain,m),{posterImage:g}=s,y=r(s,["posterImage"]),T=p.resource(Object.assign({type:u,value:f,posterImage:g},y));T&&(c.propertyStyleResources[d]=T)}};const o=i(5533),n=i(2028),a=i(3778),s=i(6149),l=i(3029),p=new o.ResourceBuilder},4953:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.servingsChainContentProcessor=function(e,t,i,r,s,l,p){var c;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("servings content",l);const u=e.bitContentProcessor(n.BitContentLevel.Chain,i,r,s,l.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("servings TAGS",u);const{unit:g,unitAbbr:y,decimalPlaces:d,disableCalculation:f,hint:m}=u,T=null!==(c=o.NumberUtils.asNumber(l.value))&&void 0!==c?c:1,h=a.servings({servings:T,unit:g,unitAbbr:y,decimalPlaces:null!=d?d:1,disableCalculation:f,hint:m});p.servings=h};const r=i(5809),o=i(8025),n=i(3029),a=new r.Builder},4475:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.technicalTermChainContentProcessor=function(e,t,i,r,s,l,p){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("technicalTerm content",l);const c=e.bitContentProcessor(n.BitContentLevel.Chain,i,r,s,l.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("technicalTerm TAGS",c);const{lang:u}=c,g=o.StringUtils.trimmedString(l.value),y=a.technicalTerm({technicalTerm:g,lang:u});p.technicalTerm=y};const r=i(5809),o=i(9681),n=i(3029),a=new r.Builder},7667:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.titleTagContentProcessor=function(e,t,i,r,o,a,s){const{value:l}=a,p=s.title;if(!p)return;const c=l,u=n.StringUtils.trimmedString(c.title),g=c.level.length;p[g]=u},t.buildTitles=function(e,t,i){var n,a;if(i=null!=i?i:[],r.Config.isOfBitType(t,o.BitType.chapter)){let e;return i.length>0&&(e=i[i.length-1]),{title:e,level:i.length>0?i.length-1:void 0}}return{title:null!==(n=i[1])&&void 0!==n?n:void 0,subtitle:null!==(a=i[2])&&void 0!==a?a:void 0}};const r=i(2028),o=i(5854),n=i(9681)},9885:function(e,t,i){var r=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.trueFalseChainContentProcessor=function(e,t,i,o,c,u,g,y){t===l.BitContentLevel.Chain?(0,s.trueFalseTagContentProcessor)(e,l.BitContentLevel.Chain,i,o,u,g):function(e,t,i,o,s,c,u,g){var y;const d=[c,...null!==(y=c.chain)&&void 0!==y?y:[]],f=u.statements,m=u.choices,T=u.responses;if(!(f&&m&&T&&g))return;if(n.Config.isOfBitType(i,a.BitType.trueFalse1))u.statement=function(e,t,i,o,s){if(!n.Config.isOfBitType(t,a.BitType.trueFalse1))return;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("trueFalse V1 content (statement)",s);const c=e.bitContentProcessor(l.BitContentLevel.Chain,t,i,o,s),{trueFalse:u}=c,g=r(c,["trueFalse"]);e.DEBUG_CHAIN_TAGS&&e.debugPrint("trueFalse V1 tags (statement)",g);let y;u&&u.length>0&&(y=p.statement(Object.assign(Object.assign({},u[0]),g)));return y}(e,i,o,s,d);else if(n.Config.isOfBitType(i,[a.BitType.trueFalse,a.BitType.multipleChoice,a.BitType.multipleChoice1,a.BitType.multipleResponse,a.BitType.multipleResponse1])){const t=function(e,t,i,o,s){const c=n.Config.isOfBitType(t,a.BitType.trueFalse),u=n.Config.isOfBitType(t,[a.BitType.multipleChoice,a.BitType.multipleChoice1]),g=n.Config.isOfBitType(t,[a.BitType.multipleResponse,a.BitType.multipleResponse1]);if(!c&&!u&&!g)return{};const y=[],d=[],f=[],m=e.splitBitContent(s,[l.TypeKey.True,l.TypeKey.False]);e.DEBUG_CHAIN_CONTENT&&e.debugPrint("trueFalse V1 content (choices/responses)",m);for(const n of m){const a=e.bitContentProcessor(l.BitContentLevel.Chain,t,i,o,n),{trueFalse:s}=a,m=r(a,["trueFalse"]);if(e.DEBUG_CHAIN_TAGS&&e.debugPrint("trueFalse V1 tags (choices/responses)",m),c){if(s&&s.length>0){const e=p.statement(Object.assign(Object.assign({},s[0]),m));y.push(e)}}else if(u){if(s&&s.length>0){const e=p.choice(Object.assign(Object.assign({},s[0]),m));d.push(e)}}else if(g&&s&&s.length>0){const e=p.response(Object.assign(Object.assign({},s[0]),m));f.push(e)}}const T={};c?T.statements=y:u?T.choices=d:g&&(T.responses=f);return T}(e,i,o,s,d);t.statements&&f.push(...t.statements),t.choices&&m.push(...t.choices),t.responses&&T.push(...t.responses)}else if(n.Config.isOfBitType(i,a.BitType.highlightText)){const t=function(e,t,i,o,n){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("highlight content",n);const a=e.bitContentProcessor(l.BitContentLevel.Chain,t,i,o,n),{trueFalse:s}=a,c=r(a,["trueFalse"]);e.DEBUG_CHAIN_TAGS&&e.debugPrint("highlight TAGS",Object.assign({trueFalse:s},c));const u=[];if(s)for(const e of s)u.push(p.highlightText(Object.assign(Object.assign({},e),{isHighlighted:!1})));const g=p.highlight(Object.assign({texts:u},c));return g}(e,i,o,s,d);t&&g.push(t)}else{const t=function(e,t,i,o,n){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("select content",n);const a=e.bitContentProcessor(l.BitContentLevel.Chain,t,i,o,n),{trueFalse:s}=a,c=r(a,["trueFalse"]);e.DEBUG_CHAIN_TAGS&&e.debugPrint("select TAGS",Object.assign({trueFalse:s},c));const u=[];if(s)for(const e of s)u.push(p.selectOption(e));const g=p.select(Object.assign({options:u},c));return g}(e,i,o,s,d);t&&g.push(t)}}(e,0,i,o,c,u,g,y)};const o=i(5809),n=i(2028),a=i(5854),s=i(4020),l=i(3029),p=new o.Builder},4020:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trueFalseTagContentProcessor=function(e,t,i,n,a,s){const{type:l,value:p}=a,c=s.trueFalse;if(!c)return;const u=r.StringUtils.trimmedString(p);c.push({text:u,isCorrect:l===o.TypeKey.True,isDefaultExample:!1})};const r=i(9681),o=i(3029)},5663:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonParser=void 0;const r=i(5809),o=i(5533),n=i(7735),a=i(2028),s=i(431),l=i(5854),p=i(4410),c=i(6149),u=i(385),g=i(9681),y=i(777),d=new r.Builder,f=new o.ResourceBuilder;t.JsonParser=class{constructor(){this.textGenerator=new s.TextGenerator,this.textParser=new y.TextParser}toAst(e){const t=this.preprocessJson(e),i=[];for(const e of t){const{bit:t,parser:r}=e,o=this.bitToAst(t,null==r?void 0:r.internalComments);o&&i.push(o)}const r=i.length>0?{bits:i}:{};return d.bitmark(r)}preprocessJson(e){const t=[];if(g.StringUtils.isString(e)){const t=e;try{e=JSON.parse(t)}catch(e){return[]}}const i=e=>{if(this.isBitWrapper(e)){const i=e;t.push(i)}else if(this.isBit(e)){const i=e;t.push(this.bitToBitWrapper(i))}};if(Array.isArray(e))for(const t of e)i(t);else i(e);return t}isBitWrapper(e){if(Object.prototype.hasOwnProperty.call(e,"bit")){const t=e;return this.isBit(t.bit)}return!1}isBit(e){if(Object.prototype.hasOwnProperty.call(e,"type")){const t=e;return a.Config.getBitType(t.type)!==l.BitType._error}return!1}bitToBitWrapper(e){return{bit:e}}bitToAst(e,t){var i;const{type:r,originalType:o,bitLevel:n,format:s,id:p,externalId:c,spaceId:g,padletId:y,jupyterId:f,jupyterExecutionCount:m,isPublic:T,aiGenerated:h,machineTranslated:b,analyticsTag:v,feedbackEngine:B,feedbackType:C,disableFeedback:P,releaseVersion:k,releaseKind:S,releaseDate:x,ageRange:K,lang:w,language:A,publisher:_,publisherName:I,theme:L,computerLanguage:N,target:R,slug:E,tag:O,reductionTag:F,bubbleTag:V,levelCEFRp:j,levelCEFR:G,levelILR:M,levelACTFL:D,icon:U,iconTag:$,colorTag:J,flashcardSet:z,subtype:H,bookAlias:W,coverImage:q,coverColor:Y,publications:X,author:Z,date:Q,dateEnd:ee,location:te,kind:ie,hasMarkAsDone:re,processHandIn:oe,showInIndex:ne,blockId:ae,pageNo:se,x:le,y:pe,width:ce,height:ue,index:ge,classification:ye,availableClassifications:de,allowedBit:fe,tableFixedHeader:me,tableSearch:Te,tableSort:he,tablePagination:be,tablePaginationLimit:ve,tableHeight:Be,tableWhitespaceNoWrap:Ce,tableAutoWidth:Pe,tableResizableColumns:ke,quizCountItems:Se,quizStrikethroughSolutions:xe,codeLineNumbers:Ke,codeMinimap:we,stripePricingTableId:Ae,stripePublishableKey:_e,action:Ie,thumbImage:Le,scormSource:Ne,posterImage:Re,focusX:Ee,focusY:Oe,pointerLeft:Fe,pointerTop:Ve,listItemIndent:je,backgroundWallpaper:Ge,hasBookNavigation:Me,duration:De,deeplink:Ue,externalLink:$e,externalLinkText:Je,videoCallLink:ze,vendorUrl:He,search:We,bot:qe,list:Ye,textReference:Xe,isTracked:Ze,isInfoOnly:Qe,imageFirst:et,activityType:tt,labelTrue:it,labelFalse:rt,content2Buy:ot,mailingList:nt,buttonCaption:at,callToActionUrl:st,caption:lt,quotedPerson:pt,partialAnswer:ct,reasonableNumOfChars:ut,sampleSolution:gt,additionalSolutions:yt,resolved:dt,resolvedDate:ft,resolvedBy:mt,maxCreatedBits:Tt,maxDisplayLevel:ht,page:bt,productId:vt,product:Bt,productVideo:Ct,productFolder:Pt,technicalTerm:kt,servings:St,ratingLevelStart:xt,ratingLevelEnd:Kt,ratingLevelSelected:wt,book:At,title:_t,subtitle:It,level:Lt,toc:Nt,progress:Rt,anchor:Et,reference:Ot,referenceEnd:Ft,item:Vt,lead:jt,pageNumber:Gt,marginNumber:Mt,hint:Dt,instruction:Ut,example:$t,imageSource:Jt,person:zt,partner:Ht,marks:Wt,imagePlaceholder:qt,resource:Yt,logos:Xt,images:Zt,body:Qt,elements:ei,statement:ti,isCorrect:ii,cards:ri,definitions:oi,descriptions:ni,statements:ai,responses:si,quizzes:li,heading:pi,pairs:ci,matrix:ui,table:gi,captionDefinitionList:yi,choices:di,questions:fi,ingredients:mi,listItems:Ti,sections:hi,footer:bi,placeholders:vi}=e,Bi=r===l.BitType._comment&&void 0!==o,Ci=a.Config.getBitType(Bi?o:r),Pi=Math.max(Math.min(null!=n?n:1,a.Config.bitLevelMax),a.Config.bitLevelMin),ki=a.Config.getBitConfig(Ci),Si=null!==(i=u.TextFormat.fromValue(s))&&void 0!==i?i:ki.textFormatDefault,xi=this.getResourceType(Yt),Ki=this.resourceBitToAst(Ci,Yt,null!=Zt?Zt:Xt),wi=this.bodyToAst(Qt,Si,vi),Ai=this.imagePlaceholderBitToAst(qt),_i=this.imageSourceBitToAst(Jt),Ii=this.personBitToAst(null!=zt?zt:Ht),Li=this.markConfigBitToAst(Wt),Ni=this.flashcardBitsToAst(ri),Ri=a.Config.isOfBitType(Ci,l.BitType.descriptionList)?this.descriptionsBitsToAst(ni):this.definitionsBitsToAst(oi),Ei=this.statementBitsToAst(ti,ii,ai,$t),Oi=this.responseBitsToAst(Ci,si),Fi=this.quizBitsToAst(Ci,li),Vi=this.headingBitToAst(pi),ji=this.pairBitsToAst(ci),Gi=this.matrixBitsToAst(ui),Mi=this.tableToAst(gi),Di=this.choiceBitsToAst(di),Ui=this.questionBitsToAst(fi),$i=this.botResponseBitsToAst(Ci,si),Ji=this.technicalTermToAst(kt),zi=this.servingsToAst(St),Hi=this.ingredientsBitsToAst(mi),Wi=this.ratingLevelStartEndToAst(xt),qi=this.ratingLevelStartEndToAst(Kt),Yi=this.captionDefinitionListToAst(yi),Xi=this.listItemsToAst(null!=Ti?Ti:hi,Si,vi),Zi=this.footerToAst(bi,Si),{reference:Qi,referenceProperty:er}=this.referenceToAst(Ot);return d.bit(Object.assign(Object.assign(Object.assign({bitType:Ci,bitLevel:Pi,textFormat:s,resourceType:xi,isCommented:Bi,id:this.convertStringToBreakscapedString(p),internalComment:this.convertStringToBreakscapedString(t),externalId:this.convertStringToBreakscapedString(c),spaceId:this.convertStringToBreakscapedString(g),padletId:this.convertStringToBreakscapedString(y),jupyterId:this.convertStringToBreakscapedString(f),jupyterExecutionCount:m,isPublic:T,aiGenerated:h,machineTranslated:this.convertStringToBreakscapedString(b),analyticsTag:this.convertStringToBreakscapedString(v),feedbackEngine:this.convertStringToBreakscapedString(B),feedbackType:this.convertStringToBreakscapedString(C),disableFeedback:P,releaseVersion:this.convertStringToBreakscapedString(k),releaseKind:this.convertStringToBreakscapedString(S),releaseDate:this.convertStringToBreakscapedString(x),ageRange:K,lang:this.convertStringToBreakscapedString(w),language:this.convertStringToBreakscapedString(A),publisher:this.convertStringToBreakscapedString(_),publisherName:this.convertStringToBreakscapedString(I),theme:this.convertStringToBreakscapedString(L),computerLanguage:this.convertStringToBreakscapedString(N),target:this.convertStringToBreakscapedString(R),slug:this.convertStringToBreakscapedString(E),tag:this.convertStringToBreakscapedString(O),reductionTag:this.convertStringToBreakscapedString(F),bubbleTag:this.convertStringToBreakscapedString(V),levelCEFRp:this.convertStringToBreakscapedString(j),levelCEFR:this.convertStringToBreakscapedString(G),levelILR:this.convertStringToBreakscapedString(M),levelACTFL:this.convertStringToBreakscapedString(D),icon:this.convertStringToBreakscapedString(U),iconTag:this.convertStringToBreakscapedString($),colorTag:this.convertStringToBreakscapedString(J),flashcardSet:this.convertStringToBreakscapedString(z),subtype:this.convertStringToBreakscapedString(H),bookAlias:this.convertStringToBreakscapedString(W),coverImage:this.convertStringToBreakscapedString(q),coverColor:this.convertStringToBreakscapedString(Y),publications:this.convertStringToBreakscapedString(X),author:this.convertStringToBreakscapedString(Z),date:this.convertStringToBreakscapedString(Q),dateEnd:this.convertStringToBreakscapedString(ee),location:this.convertStringToBreakscapedString(te),kind:this.convertStringToBreakscapedString(ie),hasMarkAsDone:re,processHandIn:oe,action:this.convertStringToBreakscapedString(Ie),showInIndex:ne,blockId:this.convertStringToBreakscapedString(ae),pageNo:se,x:le,y:pe,width:ce,height:ue,index:ge,classification:this.convertStringToBreakscapedString(ye),availableClassifications:this.convertStringToBreakscapedString(de),allowedBit:this.convertStringToBreakscapedString(fe),tableFixedHeader:me,tableSearch:Te,tableSort:he,tablePagination:be,tablePaginationLimit:ve,tableHeight:Be,tableWhitespaceNoWrap:Ce,tableAutoWidth:Pe,tableResizableColumns:ke,quizCountItems:Se,quizStrikethroughSolutions:xe,codeLineNumbers:Ke,codeMinimap:we,stripePricingTableId:this.convertStringToBreakscapedString(Ae),stripePublishableKey:this.convertStringToBreakscapedString(_e),duration:this.convertStringToBreakscapedString(De),referenceProperty:this.convertStringToBreakscapedString(er),thumbImage:this.convertStringToBreakscapedString(Le),scormSource:this.convertStringToBreakscapedString(Ne),posterImage:this.convertStringToBreakscapedString(Re),focusX:Ee,focusY:Oe,pointerLeft:this.convertStringToBreakscapedString(Fe),pointerTop:this.convertStringToBreakscapedString(Ve),listItemIndent:je,backgroundWallpaper:this.convertStringToBreakscapedString(Ge),hasBookNavigation:Me,deeplink:this.convertStringToBreakscapedString(Ue),externalLink:this.convertStringToBreakscapedString($e),externalLinkText:this.convertStringToBreakscapedString(Je),videoCallLink:this.convertStringToBreakscapedString(ze),vendorUrl:this.convertStringToBreakscapedString(He),search:this.convertStringToBreakscapedString(We),bot:this.convertStringToBreakscapedString(qe),list:this.convertStringToBreakscapedString(Ye),textReference:this.convertStringToBreakscapedString(Xe),isTracked:Ze,isInfoOnly:Qe,imageFirst:et,activityType:this.convertStringToBreakscapedString(tt),labelTrue:this.convertStringToBreakscapedString(it),labelFalse:this.convertStringToBreakscapedString(rt),content2Buy:this.convertStringToBreakscapedString(ot),mailingList:this.convertStringToBreakscapedString(nt),buttonCaption:this.convertStringToBreakscapedString(at),callToActionUrl:this.convertStringToBreakscapedString(st),caption:this.convertJsonTextToBreakscapedString(lt),quotedPerson:this.convertStringToBreakscapedString(pt),partialAnswer:this.convertStringToBreakscapedString(ct),reasonableNumOfChars:ut,sampleSolution:this.convertStringToBreakscapedString(gt),additionalSolutions:this.convertStringToBreakscapedString(yt),resolved:dt,resolvedDate:this.convertStringToBreakscapedString(ft),resolvedBy:this.convertStringToBreakscapedString(mt),maxCreatedBits:Tt,maxDisplayLevel:ht,page:this.convertStringToBreakscapedString(bt),productId:this.convertStringToBreakscapedString(vt),productList:this.convertStringToBreakscapedString(Bt),productVideoList:this.convertStringToBreakscapedString(Ct),productFolder:this.convertStringToBreakscapedString(Pt),technicalTerm:Ji,servings:zi,ratingLevelStart:Wi,ratingLevelEnd:qi,ratingLevelSelected:wt,book:this.convertStringToBreakscapedString(At),title:this.convertJsonTextToBreakscapedString(_t),subtitle:this.convertJsonTextToBreakscapedString(It),level:Lt,toc:Nt,progress:Rt,anchor:this.convertStringToBreakscapedString(Et),reference:this.convertStringToBreakscapedString(Qi),referenceEnd:this.convertStringToBreakscapedString(Ft)},this.parseItemLeadHintInstructionPageNumberMarginNumber(Vt,jt,Dt,Ut,Gt,Mt)),this.parseExample($t)),{imageSource:_i,person:Ii,markConfig:Li,imagePlaceholder:Ai,resources:Ki,body:wi,elements:this.convertStringToBreakscapedString(ei),flashcards:Ni,definitions:Ri,statements:Ei,responses:Oi,quizzes:Fi,heading:Vi,pairs:ji,matrix:Gi,table:Mi,choices:Di,questions:Ui,botResponses:$i,ingredients:Hi,captionDefinitionList:Yi,cardBits:Xi,footer:Zi}))}imageSourceBitToAst(e){var t,i;let r;if(e){const{url:o,mockupId:a,format:s,size:l,trim:p}=e;r=d.imageSource({url:null!==(t=this.convertStringToBreakscapedString(o))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,mockupId:null!==(i=this.convertStringToBreakscapedString(a))&&void 0!==i?i:n.Breakscape.EMPTY_STRING,format:this.convertStringToBreakscapedString(s),size:l,trim:p})}return r}imagePlaceholderBitToAst(e){let t;if(e){const{image:i}=e;t=this.resourceDataToAst(c.ResourceTag.image,i)}return t}personBitToAst(e){var t;let i;if(e){const r=this.resourceDataToAst(c.ResourceTag.image,e.avatarImage);i=d.person({name:null!==(t=this.convertStringToBreakscapedString(e.name))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,title:this.convertStringToBreakscapedString(e.title),avatarImage:r})}return i}markConfigBitToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{mark:e,color:o,emphasis:a}=r,s=d.markConfig({mark:null!==(t=this.convertStringToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,color:this.convertStringToBreakscapedString(o),emphasis:this.convertStringToBreakscapedString(a)});i.push(s)}if(0!==i.length)return i}flashcardBitsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{question:e,answer:o,alternativeAnswers:a,item:s,lead:l,hint:p,instruction:c,example:u}=r,g=d.flashcard(Object.assign(Object.assign({question:null!==(t=this.convertJsonTextToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,answer:this.convertJsonTextToBreakscapedString(o),alternativeAnswers:this.convertJsonTextToBreakscapedString(a)},this.parseItemLeadHintInstruction(s,l,p,c)),this.parseExample(u)));i.push(g)}if(0!==i.length)return i}definitionsBitsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{term:e,description:o,alternativeDefinitions:a,item:s,lead:l,hint:p,instruction:c,example:u}=r,g=d.definitionListItem(Object.assign(Object.assign({term:null!==(t=this.convertJsonTextToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,description:this.convertJsonTextToBreakscapedString(o),alternativeDefinitions:this.convertJsonTextToBreakscapedString(a)},this.parseItemLeadHintInstruction(s,l,p,c)),this.parseExample(u)));i.push(g)}if(0!==i.length)return i}descriptionsBitsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{term:e,description:o,alternativeDescriptions:a,item:s,lead:l,hint:p,instruction:c,example:u}=r,g=d.definitionListItem(Object.assign(Object.assign({term:null!==(t=this.convertJsonTextToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,description:this.convertJsonTextToBreakscapedString(o),alternativeDefinitions:this.convertJsonTextToBreakscapedString(a)},this.parseItemLeadHintInstruction(s,l,p,c)),this.parseExample(u)));i.push(g)}if(0!==i.length)return i}statementBitsToAst(e,t,i,r){var o,a;const s=[];if(e){const i=d.statement(Object.assign({text:null!==(o=this.convertStringToBreakscapedString(e))&&void 0!==o?o:n.Breakscape.EMPTY_STRING,isCorrect:null!=t&&t},this.parseExample(r)));s.push(i)}if(Array.isArray(i))for(const e of i){const{statement:t,isCorrect:i,item:r,lead:o,hint:l,instruction:p,example:c}=e,u=d.statement(Object.assign(Object.assign({text:null!==(a=this.convertStringToBreakscapedString(t))&&void 0!==a?a:n.Breakscape.EMPTY_STRING,isCorrect:i},this.parseItemLeadHintInstruction(r,o,l,p)),this.parseExample(c)));s.push(u)}if(0!==s.length)return s}choiceBitsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{choice:e,isCorrect:o,item:a,lead:s,hint:l,instruction:p,example:c}=r,u=d.choice(Object.assign(Object.assign({text:null!==(t=this.convertStringToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,isCorrect:o},this.parseItemLeadHintInstruction(a,s,l,p)),this.parseExample(c)));i.push(u)}if(0!==i.length)return i}responseBitsToAst(e,t){var i;const r=[];if(!a.Config.isOfBitType(e,l.BitType.botActionResponse)){if(Array.isArray(t))for(const e of t){const{response:t,isCorrect:o,item:a,lead:s,hint:l,instruction:p,example:c}=e,u=d.response(Object.assign(Object.assign({text:null!==(i=this.convertStringToBreakscapedString(t))&&void 0!==i?i:n.Breakscape.EMPTY_STRING,isCorrect:o},this.parseItemLeadHintInstruction(a,s,l,p)),this.parseExample(c)));r.push(u)}if(0!==r.length)return r}}selectOptionBitsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{text:e,isCorrect:o,item:a,lead:s,hint:l,instruction:p,example:c}=r,u=d.selectOption(Object.assign(Object.assign({text:null!==(t=this.convertStringToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,isCorrect:o},this.parseItemLeadHintInstruction(a,s,l,p)),this.parseExample(c)));i.push(u)}return i}highlightTextBitsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{text:e,isCorrect:o,isHighlighted:a,item:s,lead:l,hint:p,instruction:c,example:u}=r,g=d.highlightText(Object.assign(Object.assign({text:null!==(t=this.convertStringToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,isCorrect:o,isHighlighted:a},this.parseItemLeadHintInstruction(s,l,p,c)),this.parseExample(u)));i.push(g)}return i}quizBitsToAst(e,t){const i=[];if(Array.isArray(t))for(const r of t){const{item:t,lead:o,hint:n,instruction:a,choices:s,responses:l}=r,p=this.choiceBitsToAst(s),c=this.responseBitsToAst(e,l),u=d.quiz(Object.assign(Object.assign({},this.parseItemLeadHintInstruction(t,o,n,a)),{choices:p,responses:c}));i.push(u)}if(0!==i.length)return i}headingBitToAst(e){var t,i;let r;return e&&Object.keys(e).length>0&&(r=d.heading({forKeys:null!==(t=this.convertStringToBreakscapedString(e.forKeys))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,forValues:null!==(i=this.convertStringToBreakscapedString(e.forValues))&&void 0!==i?i:[]})),r}pairBitsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{key:e,keyAudio:o,keyImage:n,values:a,item:s,lead:l,hint:p,instruction:u,example:g,isCaseSensitive:y}=r,f=this.resourceDataToAst(c.ResourceTag.audio,o),m=this.resourceDataToAst(c.ResourceTag.image,n),T=d.pair(Object.assign(Object.assign(Object.assign({key:this.convertStringToBreakscapedString(e),keyAudio:f,keyImage:m,values:null!==(t=this.convertStringToBreakscapedString(a))&&void 0!==t?t:[]},this.parseItemLeadHintInstruction(s,l,p,u)),this.parseExample(g)),{isCaseSensitive:y}));i.push(T)}if(0!==i.length)return i}matrixBitsToAst(e){var t,i;const r=[];if(Array.isArray(e))for(const o of e){const{key:e,cells:a,item:s,lead:l,hint:p,instruction:c,example:u}=o,g=d.matrix(Object.assign(Object.assign({key:null!==(t=this.convertStringToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,cells:null!==(i=this.matrixCellsToAst(a))&&void 0!==i?i:[]},this.parseItemLeadHintInstruction(s,l,p,c)),this.parseExample(u)));r.push(g)}if(0!==r.length)return r}matrixCellsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{values:e,item:o,lead:n,hint:a,instruction:s,isCaseSensitive:l,example:p}=r,c=d.matrixCell(Object.assign(Object.assign(Object.assign({values:null!==(t=this.convertStringToBreakscapedString(e))&&void 0!==t?t:[]},this.parseItemLeadHintInstruction(o,n,a,s)),{isCaseSensitive:l}),this.parseExample(p)));i.push(c)}if(0!==i.length)return i}tableToAst(e){var t,i;let r;if(e){const{columns:o,data:n}=e;r=d.table({columns:null!==(t=this.convertStringToBreakscapedString(o))&&void 0!==t?t:[],rows:n&&null!==(i=n.map((e=>{var t;return null!==(t=this.convertStringToBreakscapedString(e))&&void 0!==t?t:[]})))&&void 0!==i?i:[]})}return r}questionBitsToAst(e){var t;const i=[];if(Array.isArray(e))for(const r of e){const{question:e,partialAnswer:o,sampleSolution:a,additionalSolutions:s,item:l,lead:p,hint:c,instruction:u,example:g,reasonableNumOfChars:y}=r,f=d.question(Object.assign(Object.assign(Object.assign({question:null!==(t=this.convertStringToBreakscapedString(e))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,partialAnswer:this.convertStringToBreakscapedString(o),sampleSolution:this.convertStringToBreakscapedString(a),additionalSolutions:this.convertStringToBreakscapedString(s)},this.parseItemLeadHintInstruction(l,p,c,u)),this.parseExample(g)),{reasonableNumOfChars:y}));i.push(f)}if(0!==i.length)return i}botResponseBitsToAst(e,t){var i,r,o;const s=[];if(a.Config.isOfBitType(e,l.BitType.botActionResponse)){if(Array.isArray(t))for(const e of t){const{response:t,reaction:a,feedback:l,item:p,lead:c,hint:u}=e,g=d.botResponse(Object.assign({response:null!==(i=this.convertStringToBreakscapedString(t))&&void 0!==i?i:n.Breakscape.EMPTY_STRING,reaction:null!==(r=this.convertStringToBreakscapedString(a))&&void 0!==r?r:n.Breakscape.EMPTY_STRING,feedback:null!==(o=this.convertStringToBreakscapedString(l))&&void 0!==o?o:n.Breakscape.EMPTY_STRING},this.parseItemLeadHintInstruction(p,c,u,n.Breakscape.EMPTY_STRING)));s.push(g)}if(0!==s.length)return s}}technicalTermToAst(e){var t,i;let r;if(e){const{technicalTerm:o,lang:a}=e;r=d.technicalTerm({technicalTerm:null!==(t=this.convertStringToBreakscapedString(o))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,lang:null!==(i=this.convertStringToBreakscapedString(a))&&void 0!==i?i:n.Breakscape.EMPTY_STRING})}return r}servingsToAst(e){var t,i,r;let o;if(e){const{servings:a,unit:s,unitAbbr:l,decimalPlaces:p,disableCalculation:c,hint:u}=e;o=d.servings({servings:a,unit:null!==(t=this.convertStringToBreakscapedString(s))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,unitAbbr:null!==(i=this.convertStringToBreakscapedString(l))&&void 0!==i?i:n.Breakscape.EMPTY_STRING,decimalPlaces:null!=p?p:1,disableCalculation:null!=c&&c,hint:null!==(r=this.convertStringToBreakscapedString(u))&&void 0!==r?r:n.Breakscape.EMPTY_STRING})}return o}ingredientsBitsToAst(e){var t,i;const r=[];if(Array.isArray(e))for(const o of e){const{title:e,checked:a,item:s,quantity:l,unit:p,unitAbbr:c,decimalPlaces:u,disableCalculation:g}=o,y=d.ingredient({title:this.convertStringToBreakscapedString(e),checked:a,item:null!==(t=this.convertStringToBreakscapedString(s))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,quantity:l,unit:null!==(i=this.convertStringToBreakscapedString(p))&&void 0!==i?i:n.Breakscape.EMPTY_STRING,unitAbbr:this.convertStringToBreakscapedString(c),decimalPlaces:null!=u?u:1,disableCalculation:g});r.push(y)}if(0!==r.length)return r}ratingLevelStartEndToAst(e){var t;let i;if(e){const{level:r,label:o}=e;i=d.ratingLevelStartEnd({level:r,label:null!==(t=this.convertJsonTextToBreakscapedString(o))&&void 0!==t?t:n.Breakscape.EMPTY_STRING})}return i}captionDefinitionListToAst(e){var t;let i;if(e){const{columns:r,definitions:o}=e;i=d.captionDefinitionList({columns:null!==(t=this.convertStringToBreakscapedString(r))&&void 0!==t?t:[],definitions:(null!=o?o:[]).map((e=>{var t,i;return d.captionDefinition({term:null!==(t=this.convertStringToBreakscapedString(e.term))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,description:null!==(i=this.convertStringToBreakscapedString(e.description))&&void 0!==i?i:n.Breakscape.EMPTY_STRING})}))})}return i}listItemsToAst(e,t,i){const r=[];if(Array.isArray(e))for(const o of e){const{item:e,lead:n,hint:a,instruction:s,body:l}=o,p=d.cardBit(Object.assign(Object.assign({},this.parseItemLeadHintInstruction(e,n,a,s)),{body:this.bodyToAst(l,t,i)}));p&&r.push(p)}if(0!==r.length)return r}getResourceType(e){if(e){return c.ResourceTag.fromValue(e.type)}}resourceBitToAst(e,t,i){var r;const o=[];if(t){const e=null!==(r=c.ResourceTag.keyFromValue(t.type))&&void 0!==r?r:c.ResourceTag.unknown;let i;if(t.type===c.ResourceTag.imageResponsive){const e=t,i=this.resourceDataToAst(c.ResourceTag.imagePortrait,e.imagePortrait),r=this.resourceDataToAst(c.ResourceTag.imageLandscape,e.imageLandscape);i&&o.push(i),r&&o.push(r)}else if(t.type===c.ResourceTag.stillImageFilm){const e=t,i=this.resourceDataToAst(c.ResourceTag.image,e.image),r=this.resourceDataToAst(c.ResourceTag.audio,e.audio);i&&o.push(i),r&&o.push(r)}else{if(i=t[e],!i)return;const r=this.resourceDataToAst(t.type,i);r&&o.push(r)}}if(a.Config.isOfBitType(e,[l.BitType.imagesLogoGrave,l.BitType.prototypeImages])&&Array.isArray(i))for(const e of i){const t=this.resourceDataToAst(c.ResourceTag.image,e.image);t&&o.push(t)}return o}resourceDataToAst(e,t){var i,r;let o;if(t){if(!t)return;const n=g.StringUtils.isString(t)?t:void 0,a=t.url||t.src||t.href||t.app||t.body||n,s=this.resourceDataToAst(c.ResourceTag.image,t.posterImage),l=t.thumbnails?t.thumbnails.map((e=>this.resourceDataToAst(c.ResourceTag.image,e))):void 0;o=f.resource({type:e,value:this.convertStringToBreakscapedString(a),format:this.convertStringToBreakscapedString(t.format),src1x:this.convertStringToBreakscapedString(t.src1x),src2x:this.convertStringToBreakscapedString(t.src2x),src3x:this.convertStringToBreakscapedString(t.src3x),src4x:this.convertStringToBreakscapedString(t.src4x),caption:this.convertJsonTextToBreakscapedString(t.caption),width:null!==(i=t.width)&&void 0!==i?i:void 0,height:null!==(r=t.height)&&void 0!==r?r:void 0,alt:this.convertStringToBreakscapedString(t.alt),zoomDisabled:t.zoomDisabled,duration:t.duration,mute:t.mute,autoplay:t.autoplay,allowSubtitles:t.allowSubtitles,showSubtitles:t.showSubtitles,posterImage:s,thumbnails:l,siteName:this.convertStringToBreakscapedString(t.siteName),license:this.convertStringToBreakscapedString(t.license),copyright:this.convertStringToBreakscapedString(t.copyright),showInIndex:t.showInIndex,search:this.convertStringToBreakscapedString(t.search)})}return o}bodyToAst(e,t,i){let r,o;const n={};if(t===u.TextFormat.json){let t=e;if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}r=d.body({bodyJson:t})}else{if(Array.isArray(e)?(o=this.convertJsonTextToBreakscapedString(e,t),i=this.textGenerator.getPlaceholders()):o=this.convertJsonTextToBreakscapedString(e,t),i)for(const[e,t]of Object.entries(i)){const i=this.bodyBitToAst(t);n[e]=i}if(o){const e=[],t=g.StringUtils.splitPlaceholders(o,Object.keys(n));for(let i=0,r=t.length;i<r;i++){const r=t[i];if(n[r])e.push(n[r]);else{const t=this.bodyTextToAst(r);e.push(t)}}r=d.body({bodyParts:e})}}return r}bodyTextToAst(e){return d.bodyText({text:null!=e?e:n.Breakscape.EMPTY_STRING},!1)}bodyBitToAst(e){switch(e.type){case p.BodyBitType.gap:return this.gapBitToAst(e);case p.BodyBitType.mark:return this.markBitToAst(e);case p.BodyBitType.select:return this.selectBitToAst(e);case p.BodyBitType.highlight:return this.highlightBitToAst(e)}return this.bodyTextToAst(n.Breakscape.EMPTY_STRING)}footerToAst(e,t){const i=this.convertJsonTextToBreakscapedString(e,t);if(i){const e=d.footerText({text:i},!1);return d.footer({footerParts:[e]})}}referenceToAst(e){return Array.isArray(e)&&e.length>0?{reference:void 0,referenceProperty:e}:{reference:e,referenceProperty:void 0}}gapBitToAst(e){var t;const{item:i,lead:r,hint:o,instruction:n,example:a,isCaseSensitive:s,solutions:l}=e;return d.gap(Object.assign(Object.assign(Object.assign({solutions:null!==(t=this.convertStringToBreakscapedString(l))&&void 0!==t?t:[]},this.parseItemLeadHintInstruction(i,r,o,n)),this.parseExample(a)),{isCaseSensitive:s}))}markBitToAst(e){var t;const{solution:i,mark:r,item:o,lead:a,hint:s,instruction:l,example:p}=e;return d.mark(Object.assign(Object.assign({solution:null!==(t=this.convertStringToBreakscapedString(i))&&void 0!==t?t:n.Breakscape.EMPTY_STRING,mark:this.convertStringToBreakscapedString(r)},this.parseItemLeadHintInstruction(o,a,s,l)),this.parseExample(p)))}selectBitToAst(e){const{options:t,prefix:i,postfix:r,item:o,lead:n,hint:a,instruction:s,example:l}=e,p=this.selectOptionBitsToAst(t);return d.select(Object.assign(Object.assign({options:p,prefix:this.convertStringToBreakscapedString(i),postfix:this.convertStringToBreakscapedString(r)},this.parseItemLeadHintInstruction(o,n,a,s)),this.parseExample(l)))}highlightBitToAst(e){const{texts:t,prefix:i,postfix:r,item:o,lead:n,hint:a,instruction:s,example:l}=e,p=this.highlightTextBitsToAst(t);return d.highlight(Object.assign(Object.assign({texts:p,prefix:this.convertStringToBreakscapedString(i),postfix:this.convertStringToBreakscapedString(r)},this.parseItemLeadHintInstruction(o,n,a,s)),this.parseExample(l)))}parseItemLeadHintInstruction(e,t,i,r){return{item:this.convertJsonTextToBreakscapedString(e),lead:this.convertJsonTextToBreakscapedString(t),pageNumber:"",marginNumber:"",hint:this.convertJsonTextToBreakscapedString(i),instruction:this.convertJsonTextToBreakscapedString(r)}}parseItemLeadHintInstructionPageNumberMarginNumber(e,t,i,r,o,n){return{item:this.convertJsonTextToBreakscapedString(e),lead:this.convertJsonTextToBreakscapedString(t),pageNumber:this.convertJsonTextToBreakscapedString(o),marginNumber:this.convertJsonTextToBreakscapedString(n),hint:this.convertJsonTextToBreakscapedString(i),instruction:this.convertJsonTextToBreakscapedString(r)}}parseExample(e){if(null==e)return;const t=this.convertJsonTextToBreakscapedString(e);return t?{example:t}:{example:!!e}}convertJsonTextToBreakscapedString(e,t){const i=(t=null!=t?t:u.TextFormat.bitmarkMinusMinus)!==u.TextFormat.bitmarkPlusPlus&&t!==u.TextFormat.bitmarkMinusMinus;if(null!=e){if(this.textParser.isAst(e)){return this.textGenerator.generateSync(e,t)}if(Array.isArray(e)){const r=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(this.textParser.isAst(a)){const e=this.textGenerator.generateSync(a,t);r[o]=e}else r[o]=n.Breakscape.breakscape(a,{bitTagOnly:i})}return r}return n.Breakscape.breakscape(e,{bitTagOnly:i})}}convertStringToBreakscapedString(e){if(null!=e){if(Array.isArray(e)){const t=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];t[i]=n.Breakscape.breakscape(r)}return t}return n.Breakscape.breakscape(e)}}}},777:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextParser=void 0;const r=i(385),o=i(9681),n=i(2220),a=new RegExp("^\\^\\n","gm"),s=new RegExp("\\n\\^\\n","gm"),l=new RegExp("\\n\\^$","gm");t.TextParser=class{version(){return(0,n.parse)("",{startRule:"version"})}preprocessAst(e){if(o.StringUtils.isString(e)){const t=e;try{e=JSON.parse(t)}catch(e){return}}if(this.isAst(e))return e}isAst(e){if(Array.isArray(e)){if(0===e.length)return!0;if(Object.prototype.hasOwnProperty.call(e[0],"type"))return!0}return!1}toAst(e,t){var i;if(Array.isArray(e))return e;let o=null!==(i=e)&&void 0!==i?i:"";if(!o)return[];const p=Object.assign({},t);p.textFormat||(p.textFormat=r.TextFormat.bitmarkMinusMinus);const c=p.textFormat===r.TextFormat.bitmarkPlusPlus?"bitmarkPlusPlus":"bitmarkMinusMinus";return o=o.replace(a,"\n").replace(l,"\n").replace(s,"\n\n").trim(),(0,n.parse)(o,{startRule:c})}}},2220:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const r=i(8321).parse;t.parse=r},6989:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0;const i=new class{asArray(e){if(null!=e)return Array.isArray(e)?e:[e]}asSingle(e,t){if(null!=e)return Array.isArray(e)?e.length>0?t?e[e.length-1]:e[0]:void 0:e}};t.ArrayUtils=i},8903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitUtils=void 0;const r=i(4078);const o=new class{fillStringExample(e,t,i,r){if(e){Array.isArray(e)||(e=[e]);for(const o of e)if(!o.isExample&&(t?(o.isDefaultExample=!0,o.isExample=!0):(o.isDefaultExample=!1,o.example=i),r))break}}fillBooleanExample(e,t,i,o){if(e){Array.isArray(e)||(e=[e]);for(const n of e)if(!n.isExample&&(!o||n.isCorrect)&&(t?(n.isDefaultExample=!0,n.isExample=!0):(n.isDefaultExample=!1,n.example=r.BooleanUtils.toBoolean(i)),o))break}}};t.BitUtils=o},4078:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanUtils=void 0;const i=new class{isBoolean(e){return!0===e||!1===e}isBooleanString(e){return!!this.isBoolean(e)||("true"===e||"false"===e)}toBoolean(e,t){return t?!1!==e&&"false"!==e:!0===e||"true"===e}};t.BooleanUtils=i},8025:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberUtils=void 0;const i=new class{asNumber(e,t){if(null==e)return null!=t?t:void 0;const i=+e;return Number.isNaN(i)||!isFinite(i)?null!=t?t:void 0:i}isNumeric(e){if(null==e)return!1;const t=+e;return!Number.isNaN(t)&&isFinite(t)}};t.NumberUtils=i},955:function(e,t,i){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUtils=void 0;const o=r(i(7678));const n=new class{isFunction(e){return"[object Function]"===Object.prototype.toString.call(e)}isArray(e){return Array.isArray(e)}isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}isValue(e){return!this.isObject(e)&&!this.isArray(e)}flatMapPath(e,t){if(!e)return[];if(!t)return[];Array.isArray(t)||(t=[t]);const i=e,r=t.shift();if(null==r)return i;const o=i[r];return o?Array.isArray(o)?o.flatMap((e=>this.flatMapPath(e,t.slice()))):[this.flatMapPath(o,t)].flat():[]}orderProperties(e,t){const i=e,r=Object.assign({},i);for(const e of Object.keys(i))delete i[e];for(const e of t)Object.prototype.hasOwnProperty.call(r,e)&&(i[e]=r[e])}removeUndefinedProperties(e,t){const i=e;for(const[e,r]of Object.entries(i))t&&t.indexOf(e)>=0||null==r&&delete i[e]}removeFalseProperties(e,t){const i=e;for(const[e,r]of Object.entries(i))t&&t.indexOf(e)>=0||!1===r&&delete i[e]}removeEmptyStringProperties(e,t){const i=e;for(const[e,r]of Object.entries(i))t&&t.indexOf(e)>=0||""===r&&delete i[e]}removeEmptyArrayProperties(e,t){const i=e;for(const[e,r]of Object.entries(i))t&&t.indexOf(e)>=0||Array.isArray(r)&&0===r.length&&delete i[e]}removeEmptyObjectProperties(e,t){const i=e;for(const[e,r]of Object.entries(i))t&&t.indexOf(e)>=0||this.isObject(r)&&0===Object.keys(r).length&&delete i[e]}removeUnwantedProperties(e,t){(t=Object.assign({},t)).ignoreAllUndefined||this.removeUndefinedProperties(e,t.ignoreUndefined),t.ignoreAllFalse||this.removeFalseProperties(e,t.ignoreFalse),t.ignoreAllEmptyString||this.removeEmptyStringProperties(e,t.ignoreEmptyString),t.ignoreAllEmptyArrays||this.removeEmptyArrayProperties(e,t.ignoreEmptyArrays),t.ignoreAllEmptyObjects||this.removeEmptyObjectProperties(e,t.ignoreEmptyObjects)}extractSingleValue(e,t){if(!e)return;const i=e;if(null==i[t])return;let r=i[t];if(Array.isArray(r)){if(0===r.length)return;r=r[r.length-1]}return r}deepMerge(...e){return function e(...t){function i(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function r(t,r){for(const[n,a]of Object.entries(r)){const r=i(a);void 0!==t[n]&&i(t[n])===r&&["array","object"].includes(r)?t[n]=e(t[n],a):t[n]=(0,o.default)(a)}}let n=(0,o.default)(t.shift());for(const e of t){const t=i(e);i(n)===t?"array"===t?n=[...n,...(0,o.default)(e)]:"object"===t?r(n,e):n=e:n=(0,o.default)(e)}return n}(...e)}};t.ObjectUtils=n},9681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;const i=new class{isString(e){return"string"==typeof e||e instanceof String}string(e){return e?`${e}`:""}trimmedString(e){return this.string(e).trim()}countOccurrences(e,t){return e.split(t).length-1}countOccurrencesAtStart(e,t){let i=0;for(;e.startsWith(t);)i++,e=e.substring(t.length);return i}countOccurrencesAtEnd(e,t){let i=0;for(;e.endsWith(t);)i++,e=e.substring(0,e.length-t.length);return i}splitPlaceholders(e,t){let i=[e];const r=(e,t)=>{const i=[];for(const r of e){const e=r.split(t);for(let r=0,o=e.length;r<o;r++){const n=e[r],a=r===o-1;i.push(n),a||i.push(t)}}return i};for(const e of t)i=r(i,e);return i}firstLine(e,t){const i=e;if(null==t&&(t=e.length),t<1||null==e||e.length<=t)return i;const r=e.split("\n");return r.length>0?r[0].substring(0,t):i}wordWrap(e,t){const i=[];if(t<1||null==e||e.length<=t)return i;const r=e.length,o=r-t;let n,a=0;for(;a<o;){let r;const o=a+t,s=e.indexOf("\n",a);if(s>-1&&s>a&&s<o){r=s-a,n=e.substr(a,r),a=a+r+1,i.push(n);continue}const l=e.lastIndexOf(" ",o);let p=0;l>-1&&l!=a-1?(r=l-a,r>0&&(p=a+r+1)):(r=t,p=a+t),n=e.substr(a,r),a=p,i.push(n.trim())}return a<r&&(n=e.substr(a),i.push(n)),i}};t.StringUtils=i},201:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtils=void 0;const i=new class{fileExtensionFromUrl(e){let t;if(e)try{const i=new URL(e).pathname.split(".");i.length>1&&(t=i[i.length-1])}catch(e){}return t}domainFromUrl(e){let t;if(e)try{t=new URL(e).hostname}catch(e){}return t}};t.UrlUtils=i},6936:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.initEnv=t.env=void 0;const r=i(6278),o=i(9561),n=i(2287),a=i(5659);const s=new class{constructor(){Object.defineProperty(this,"userAgentInfo",{value:(0,a.parseUserAgent)(),enumerable:!1}),this.bootTimestamp=Date.now(),this.app="",this.appVersion=n.EMPTY_VERSION,this.environment=this.getEnvironment(),this.environmentVersion=this.getEnvironmentVersion(),this.isBrowser=this.getIsBrowser(),this.isNode=this.environment===r.Environment.node,this.isCI=this.getIsCI(),this.NODE_ENV=this.getNodeEnv(),this.os=this.getOs(),this.osVersion=this.getOsVersion()}init(e,t){this.app=e,this.appVersion=this.parseMMBVersion(t)}get upTimestamp(){return Date.now()-this.bootTimestamp}getEnvironment(){return this.userAgentInfo?this.userAgentInfo.browser:"undefined"!=typeof process&&void 0!==process.versions&&process.versions.node?r.Environment.node:r.Environment.unknown}getEnvironmentVersion(){return this.userAgentInfo?this.parseMMBVersion(this.userAgentInfo.browserVersion):"undefined"!=typeof process?this.parseMMBVersion(process.version):n.EMPTY_VERSION}getOs(){return this.userAgentInfo?this.userAgentInfo.os:("undefined"!=typeof process&&void 0!==process.versions&&process.versions.node,o.Os.unknown)}getOsVersion(){return this.userAgentInfo?this.parseMMBVersion(this.userAgentInfo.osVersion):"undefined"!=typeof process?this.parseMMBVersion(""):n.EMPTY_VERSION}getIsBrowser(){return!("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof navigator||!navigator.userAgent)}getIsCI(){return!("undefined"==typeof process||!process.env||!process.env.CI)}getNodeEnv(){return"undefined"!=typeof process&&process.env?"production":""}parseMMBVersion(e){if(!e)return n.EMPTY_VERSION;e.startsWith("v")&&(e=e.substring(1));const t=e.split(".",1e3);let i="",r="",o="",a="";for(let e=0,n=t.length;e<n;e++){const n=t[e];0===e?i=n:1===e?r=n:2===e?a=n:3===e&&(o=n)}return{full:e,major:i,minor:r,patch:a,build:o}}};t.env=s;const l=s.init.bind(s);t.initEnv=l},6278:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0;const r=(0,i(4718).superenum)({unknown:"",node:"node",chrome:"chrome",safari:"safari",firefox:"firefox",edge:"edge",ie:"ie"});t.Environment=r},9561:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Os=void 0;const r=(0,i(4718).superenum)({unknown:"",macos:"macos",windows:"windows",linux:"linux",android:"android",ios:"ios"});t.Os=r},2287:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_VERSION=void 0;t.EMPTY_VERSION={full:"",major:"",minor:"",patch:"",build:""}},5659:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUserAgent=function(){if("undefined"==typeof window||!window.navigator||!window.navigator.userAgent)return;const e={browser:r.Environment.unknown,os:o.Os.unknown},t=function(e){const t=e.toLowerCase().split(new RegExp("[ /,;()]","g")).reduce(((e,t)=>(t&&e.push(t),e)),[]),i={keys:new Set,versions:{}};let r="";for(let e=0,o=t.length;e<o;e++){const o=t[e];let n=!1;for(let e=0;e<=9;e++)if(o.startsWith(`${e}`)){n=!0;break}n?i.versions[r]=o.replace("_","."):i.keys.add(o),r=o}return i}(window.navigator.userAgent),i=t.keys.has("firefox"),n=t.keys.has("chrome"),a=t.keys.has("chromium"),s=t.keys.has("safari"),l=t.keys.has("macintosh"),p=n,c=i,u=l;!s||n||a?p?(e.browser=r.Environment.chrome,e.browserVersion=t.versions.chrome):c&&(e.browser=r.Environment.firefox,e.browserVersion=t.versions.firefox):(e.browser=r.Environment.safari,e.browserVersion=t.versions.version);u&&(e.os=o.Os.macos,e.osVersion=t.versions.x);return e};const r=i(6278),o=i(9561)},5005:(e,t,i)=>{const{VOID:r,PRIMITIVE:o,ARRAY:n,OBJECT:a,DATE:s,REGEXP:l,MAP:p,SET:c,ERROR:u,BIGINT:g}=i(1731),y="object"==typeof self?self:globalThis;t.deserialize=e=>((e,t)=>{const i=(t,i)=>(e.set(i,t),t),d=f=>{if(e.has(f))return e.get(f);const[m,T]=t[f];switch(m){case o:case r:return i(T,f);case n:{const e=i([],f);for(const t of T)e.push(d(t));return e}case a:{const e=i({},f);for(const[t,i]of T)e[d(t)]=d(i);return e}case s:return i(new Date(T),f);case l:{const{source:e,flags:t}=T;return i(new RegExp(e,t),f)}case p:{const e=i(new Map,f);for(const[t,i]of T)e.set(d(t),d(i));return e}case c:{const e=i(new Set,f);for(const t of T)e.add(d(t));return e}case u:{const{name:e,message:t}=T;return i(new y[e](t),f)}case g:return i(BigInt(T),f);case"BigInt":return i(Object(BigInt(T)),f)}return i(new y[m](T),f)};return d})(new Map,e)(0)},7678:(e,t,i)=>{const{deserialize:r}=i(5005),{serialize:o}=i(5416);Object.defineProperty(t,"__esModule",{value:!0}).default="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?r(o(e,t)):structuredClone(e):(e,t)=>r(o(e,t)),t.deserialize=r,t.serialize=o},5416:(e,t,i)=>{const{VOID:r,PRIMITIVE:o,ARRAY:n,OBJECT:a,DATE:s,REGEXP:l,MAP:p,SET:c,ERROR:u,BIGINT:g}=i(1731),y="",{toString:d}={},{keys:f}=Object,m=e=>{const t=typeof e;if("object"!==t||!e)return[o,t];const i=d.call(e).slice(8,-1);switch(i){case"Array":return[n,y];case"Object":return[a,y];case"Date":return[s,y];case"RegExp":return[l,y];case"Map":return[p,y];case"Set":return[c,y]}return i.includes("Array")?[n,i]:i.includes("Error")?[u,i]:[a,i]},T=([e,t])=>e===o&&("function"===t||"symbol"===t);t.serialize=(e,{json:t,lossy:i}={})=>{const u=[];return((e,t,i,u)=>{const y=(e,t)=>{const r=u.push(e)-1;return i.set(t,r),r},d=u=>{if(i.has(u))return i.get(u);let[h,b]=m(u);switch(h){case o:{let t=u;switch(b){case"bigint":h=g,t=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+b);t=null;break;case"undefined":return y([r],u)}return y([h,t],u)}case n:{if(b)return y([b,[...u]],u);const e=[],t=y([h,e],u);for(const t of u)e.push(d(t));return t}case a:{if(b)switch(b){case"BigInt":return y([b,u.toString()],u);case"Boolean":case"Number":case"String":return y([b,u.valueOf()],u)}if(t&&"toJSON"in u)return d(u.toJSON());const i=[],r=y([h,i],u);for(const t of f(u))!e&&T(m(u[t]))||i.push([d(t),d(u[t])]);return r}case s:return y([h,u.toISOString()],u);case l:{const{source:e,flags:t}=u;return y([h,{source:e,flags:t}],u)}case p:{const t=[],i=y([h,t],u);for(const[i,r]of u)(e||!T(m(i))&&!T(m(r)))&&t.push([d(i),d(r)]);return i}case c:{const t=[],i=y([h,t],u);for(const i of u)!e&&T(m(i))||t.push(d(i));return i}}const{message:v}=u;return y([h,{name:b,message:v}],u)};return d})(!(t||i),!!t,new Map,u)(e),u}},1731:(e,t)=>{t.VOID=-1;t.PRIMITIVE=0;t.ARRAY=1;t.OBJECT=2;t.DATE=3;t.REGEXP=4;t.MAP=5;t.SET=6;t.ERROR=7;t.BIGINT=8}},t={};function i(r){var o=t[r];if(void 0!==o)return o.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,i),n.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.StreamWriter=e.FileWriter=e.BitmarkFileGenerator=e.JsonFileGenerator=e.bitmarkTextParse=e.InfoFormat=e.InfoType=e.CardSetVersion=e.BitmarkVersion=e.BitmarkParserType=e.NodeType=e.ResourceTag=e.TextFormat=e.BitType=e.StringWriter=e.BitmarkStringGenerator=e.BitmarkGenerator=e.BitmarkParser=e.JsonStringGenerator=e.JsonGenerator=e.JsonParser=e.Ast=e.ResourceBuilder=e.Builder=e.Output=e.Input=e.BitmarkParserGenerator=void 0;const t=i(1412);var o=i(1791);Object.defineProperty(e,"BitmarkParserGenerator",{enumerable:!0,get:function(){return o.BitmarkParserGenerator}}),Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return o.Input}}),Object.defineProperty(e,"Output",{enumerable:!0,get:function(){return o.Output}});var n=i(5809);Object.defineProperty(e,"Builder",{enumerable:!0,get:function(){return n.Builder}});var a=i(5533);Object.defineProperty(e,"ResourceBuilder",{enumerable:!0,get:function(){return a.ResourceBuilder}});var s=i(5126);Object.defineProperty(e,"Ast",{enumerable:!0,get:function(){return s.Ast}});var l=i(5663);Object.defineProperty(e,"JsonParser",{enumerable:!0,get:function(){return l.JsonParser}});var p=i(2497);Object.defineProperty(e,"JsonGenerator",{enumerable:!0,get:function(){return p.JsonGenerator}});var c=i(98);Object.defineProperty(e,"JsonStringGenerator",{enumerable:!0,get:function(){return c.JsonStringGenerator}});var u=i(5633);Object.defineProperty(e,"BitmarkParser",{enumerable:!0,get:function(){return u.BitmarkParser}});var g=i(5087);Object.defineProperty(e,"BitmarkGenerator",{enumerable:!0,get:function(){return g.BitmarkGenerator}});var y=i(3968);Object.defineProperty(e,"BitmarkStringGenerator",{enumerable:!0,get:function(){return y.BitmarkStringGenerator}});var d=i(6772);Object.defineProperty(e,"StringWriter",{enumerable:!0,get:function(){return d.StringWriter}});var f=i(5854);Object.defineProperty(e,"BitType",{enumerable:!0,get:function(){return f.BitType}});var m=i(385);Object.defineProperty(e,"TextFormat",{enumerable:!0,get:function(){return m.TextFormat}});var T=i(6149);Object.defineProperty(e,"ResourceTag",{enumerable:!0,get:function(){return T.ResourceTag}});var h=i(126);Object.defineProperty(e,"NodeType",{enumerable:!0,get:function(){return h.NodeType}});var b=i(8588);Object.defineProperty(e,"BitmarkParserType",{enumerable:!0,get:function(){return b.BitmarkParserType}});var v=i(3811);Object.defineProperty(e,"BitmarkVersion",{enumerable:!0,get:function(){return v.BitmarkVersion}});var B=i(1163);Object.defineProperty(e,"CardSetVersion",{enumerable:!0,get:function(){return B.CardSetVersion}});var C=i(486);Object.defineProperty(e,"InfoType",{enumerable:!0,get:function(){return C.InfoType}});var P=i(3069);Object.defineProperty(e,"InfoFormat",{enumerable:!0,get:function(){return P.InfoFormat}});var k=i(2220);Object.defineProperty(e,"bitmarkTextParse",{enumerable:!0,get:function(){return k.parse}});(0,t.init)()})(),r})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bitmarkParserGenerator=t():e.bitmarkParserGenerator=t()}(this,(()=>(()=>{"use strict";var e={4718:(e,t,r)=>{function i(e,t){var r;const i=Object.freeze,o=Object.defineProperty,n=Object.assign,a={enumerable:!1},s=new Map,l=new Map,p=new Map,u=new Map,c=new Map,y=(null!==(r=null==t?void 0:t.iterationKeys)&&void 0!==r?r:Object.keys(e)).map((e=>`${e}`));for(const[t,r]of Object.entries(e))s.set(t,r),p.set(t.toLowerCase(),r);for(const[e,t]of s){const r="string"==typeof t?t.toLowerCase():t;l.set(t,e),u.set(r,e)}const g=y.map((e=>s.get(e))),d=y.map((e=>[e,s.get(e)]));return(t=>{let r=e;function f(e,t){return(null==t?void 0:t.ignoreCase)&&"string"==typeof e?s.get(u.get(e.toLowerCase())):!e||l.has(e)?e:void 0}Object.isExtensible(e)||(r=n({},e)),o(r,"fromKey",n({value:function(e,t){return(null==t?void 0:t.ignoreCase)&&"string"==typeof e?p.get(e.toLowerCase()):s.get(`${e}`)}},a)),o(r,"fromValue",n({value:f},a)),o(r,"keyFromValue",n({value:function(e,t){return(null==t?void 0:t.ignoreCase)&&"string"==typeof e?u.get(e.toLowerCase()):l.get(e)}},a)),o(r,"setMetadata",n({value:function(e,t,r){const i=f(e);i&&c.set(i,t)}},a)),o(r,"getMetadata",n({value:function(e,t){return c.get(e)}},a)),o(r,Symbol.iterator,n({value:function(){let e=0;return{next:()=>e<y.length?{value:s.get(`${y[e++]}`),done:!1}:{done:!0}}}},a)),o(r,"values",n({value:()=>g},a)),o(r,"keys",n({value:()=>y},a)),o(r,"entries",n({value:()=>d},a));let m=r;return(null==t?void 0:t.noFreeze)||(m=i(r),i(y),i(g),i(d)),m})(t)}r.r(t),r.d(t,{superenum:()=>o});const o=i;o.fromObject=i,o.fromArray=function(e,t){Array.isArray(e)||(e=[]);const r=e.reduce(((e,t)=>(e[`${t}`]=t,e)),{});return(!t||t&&!t.iterationKeys)&&((t=Object.assign({},t)).iterationKeys=e),i(r,t)}},1791:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=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,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=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}),n=(this&&this.__importStar,this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(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((i=i.apply(e,t||[])).next())}))});this&&this.__importDefault;Object.defineProperty(t,"__esModule",{value:!0}),t.Output=t.Input=t.BitmarkParserGenerator=void 0;const a=r(4718),s=r(5126),l=r(3968),p=r(7984),u=r(8588),c=r(5633),y=r(5663),g=r(6936),d=r(3881),f=r(486),m=r(3069),T=r(2028),h=r(385),b=r(431),B=r(777),v=(0,a.superenum)({string:"string",file:"file"});t.Input=v;const C=(0,a.superenum)({bitmark:"bitmark",json:"json",ast:"ast"});t.Output=C;t.BitmarkParserGenerator=class{constructor(){this.ast=new s.Ast,this.jsonParser=new y.JsonParser,this.bitmarkParser=new c.BitmarkParser,this.textParser=new B.TextParser,this.textGenerator=new b.TextGenerator,this.jsonStringifyPrettify=(e,t,r)=>{const i=!0===t.prettify?2:t.prettify||void 0;return r||!0===t.stringify||void 0!==i?JSON.stringify(e,null,i):e}}version(){return g.env.appVersion.full}info(e){const t=Object.assign({},e),r=new d.InfoBuilder;let i;const o=!t.outputFormat||t.outputFormat===m.InfoFormat.text,n=t.outputFormat===m.InfoFormat.json,a=t.type===f.InfoType.all,s=t.type===f.InfoType.deprecated,l=a||!s,p=a||s;if(t.type===f.InfoType.bit){const e=r.getSupportedBitConfigs().filter((e=>{if(!t.bit)return!0;return T.Config.getBitType(t.bit)===e.bitType}));i=o?e.map((e=>e.toString({includeChains:!0,includeConfigs:!0}))).join("\n\n--------------\n\n"):e}else{const e=r.getSupportedBits({includeNonDeprecated:l,includeDeprecated:p}).filter((e=>{if(!t.bit)return!0;const r=T.Config.getBitType(t.bit);return e.name===r||void 0}));i=o?this.supportedBitsAsString(e):e}if(n){const e=!0===t.prettify?2:t.prettify||void 0;i=JSON.stringify(i,null,e)}return i}convert(e,t){return n(this,void 0,void 0,(function*(){let r;const i=Object.assign({},t),o=Object.assign({},i.jsonOptions),a=i.outputFormat,s=a===C.bitmark,c=a===C.json,y=a===C.ast,d=u.BitmarkParserType.peggy;let f=e;if(g.env.isBrowser&&i.outputFile)throw new Error("Cannot write to file in browser environment");i.inputFormat&&i.inputFormat!==v.file||g.env.isNode&&fs.existsSync(f)&&(f=fs.readFileSync(f,{encoding:"utf8"}));let m=this.ast.preprocessAst(f);const T=!!m;T||(m=this.jsonParser.toAst(f));const h=!!(null==m?void 0:m.bits),b=e=>n(this,void 0,void 0,(function*(){yield B(e),yield x(r)})),B=e=>n(this,void 0,void 0,(function*(){r=this.bitmarkParser.toAst(e,{parserType:d})})),P=e=>n(this,void 0,void 0,(function*(){if(d===u.BitmarkParserType.peggy)if(m=this.bitmarkParser.toAst(e,{parserType:d}),i.outputFile){const e=new JsonFileGenerator_1.JsonFileGenerator(i.outputFile,i);yield e.generate(m)}else{const e=new p.JsonObjectGenerator(i),t=yield e.generate(m);r=this.jsonStringifyPrettify(t,o)}})),x=e=>n(this,void 0,void 0,(function*(){if(i.outputFile){const t=new BitmarkFileGenerator_1.BitmarkFileGenerator(i.outputFile,i);yield t.generate(e)}else{const t=new l.BitmarkStringGenerator(i);r=yield t.generate(e)}})),k=e=>n(this,void 0,void 0,(function*(){r=this.jsonStringifyPrettify(e,o)})),K=e=>n(this,void 0,void 0,(function*(){if(i.outputFile){const t=new JsonFileGenerator_1.JsonFileGenerator(i.outputFile,i);yield t.generate(e)}else{const t=new p.JsonObjectGenerator(i),n=yield t.generate(e);r=this.jsonStringifyPrettify(n,o)}})),w=e=>n(this,void 0,void 0,(function*(){if(i.outputFile){const t=new BitmarkFileGenerator_1.BitmarkFileGenerator(i.outputFile,i);yield t.generate(e)}else{const t=new l.BitmarkStringGenerator(i);r=yield t.generate(e)}})),S=e=>n(this,void 0,void 0,(function*(){r=this.jsonStringifyPrettify(e,o)})),_=e=>n(this,void 0,void 0,(function*(){yield K(e)}));return!h&&!T?s?yield b(f):y?yield B(f):yield P(f):T?y?yield k(m):c?yield K(m):yield x(m):c?yield _(m):y?yield S(m):yield w(m),r}))}upgrade(e,t){return n(this,void 0,void 0,(function*(){let r;const i=Object.assign({},t),o=Object.assign({},i.jsonOptions),a=i.bitmarkParserType;let s=e;if(g.env.isBrowser&&i.outputFile)throw new Error("Cannot write to file in browser environment");i.inputFormat&&i.inputFormat!==v.file||g.env.isNode&&fs.existsSync(s)&&(s=fs.readFileSync(s,{encoding:"utf8"}));let u=this.jsonParser.toAst(s);const c=e=>n(this,void 0,void 0,(function*(){const t=this.bitmarkParser.toAst(e,{parserType:a});if(i.outputFile){const e=new BitmarkFileGenerator_1.BitmarkFileGenerator(i.outputFile,i);yield e.generate(t)}else{const e=new l.BitmarkStringGenerator(i);r=yield e.generate(t)}})),y=e=>n(this,void 0,void 0,(function*(){if(i.outputFile){const t=new JsonFileGenerator_1.JsonFileGenerator(i.outputFile,i);yield t.generate(e)}else{const t=new p.JsonObjectGenerator(i),n=yield t.generate(e);r=this.jsonStringifyPrettify(n,o)}}));return!!!(null==u?void 0:u.bits)?yield c(s):yield y(u),r}))}createAst(e,t){let r,i=e;const o=Object.assign({},t);o.inputFormat&&o.inputFormat!==v.file||g.env.isNode&&fs.existsSync(i)&&(i=fs.readFileSync(i,{encoding:"utf8"}));let n=this.ast.preprocessAst(i);const a=!!n;a||(n=this.jsonParser.toAst(i));return r=!!!(null==n?void 0:n.bits)&&!a?this.bitmarkParser.toAst(i):n,r}convertText(e,t){return n(this,void 0,void 0,(function*(){var r;let i,o;const n=Object.assign({},t),a=Object.assign({},n.fileOptions),s=Object.assign({},n.jsonOptions),l=null!==(r=n.textFormat)&&void 0!==r?r:h.TextFormat.bitmarkMinusMinus;let p=e;if(g.env.isBrowser&&n.outputFile)throw new Error("Cannot write to file in browser environment");n.inputFormat&&n.inputFormat!==v.file||g.env.isNode&&fs.existsSync(p)&&(p=fs.readFileSync(p,{encoding:"utf8"}));const u=this.textParser.preprocessAst(p),c=!!u;if(o=c?yield this.textGenerator.generate(u,l):this.textParser.toAst(p,{textFormat:l}),n.outputFile){const e=n.outputFile.toString();let t=o;c||(t=this.jsonStringifyPrettify(o,s,!0));const r=a.append?"a":"w";fs.ensureDirSync(path_1.default.dirname(e)),fs.writeFileSync(e,t,{flag:r})}else i=c?o:this.jsonStringifyPrettify(o,s);return i}))}breakscapeText(e,t){if(!e)return e;const r=Object.assign({},t),i=Object.assign({},r.fileOptions);r.textFormat||(r.textFormat=h.TextFormat.bitmarkMinusMinus);let o=e;if(g.env.isBrowser&&r.outputFile)throw new Error("Cannot write to file in browser environment");r.inputFormat&&r.inputFormat!==v.file||g.env.isNode&&fs.existsSync(o)&&(o=fs.readFileSync(o,{encoding:"utf8"}));const n=Breakscape_1.Breakscape.breakscape(o,{textFormat:r.textFormat});if(!r.outputFile)return n;{const e=r.outputFile.toString(),t=i.append?"a":"w";fs.ensureDirSync(path_1.default.dirname(e)),fs.writeFileSync(e,n,{flag:t})}}unbreakscapeText(e,t){if(!e)return e;const r=Object.assign({},t),i=Object.assign({},r.fileOptions);r.textFormat||(r.textFormat=h.TextFormat.bitmarkMinusMinus);let o=e;if(g.env.isBrowser&&r.outputFile)throw new Error("Cannot write to file in browser environment");r.inputFormat&&r.inputFormat!==v.file||g.env.isNode&&fs.existsSync(o)&&(o=fs.readFileSync(o,{encoding:"utf8"}));const n=Breakscape_1.Breakscape.unbreakscape(o,{textFormat:r.textFormat});if(!r.outputFile)return n;{const e=r.outputFile.toString(),t=i.append?"a":"w";fs.ensureDirSync(path_1.default.dirname(e)),fs.writeFileSync(e,n,{flag:t})}}supportedBitsAsString(e){let t="";for(const r of e)t+=`${r.name} (since: ${r.since}`,r.deprecated&&(t+=`, deprecated: ${r.deprecated}`),t+=")\n";return t}}},5126:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ast=void 0;const i=r(1412),o=r(126),n=r(9681);t.Ast=class{constructor(){(0,i.init)()}walk(e,t,r,i){this.walkRecursive(e,[{index:0,key:t,value:e}],r,i)}getRouteKey(e){return e.reduce(((t,r,i)=>(+r.key!==r.index&&(t+=`${r.key}`,i<e.length-1&&(t+="_")),t)),"")}printTree(e,t=o.NodeType.bitmarkAst){this.walkRecursive(e,[{index:0,key:t,value:e}],{enter:(e,t)=>(console.log("Enter: "+this.getRouteKey(t)),t[t.length-1].key!==o.NodeType.bodyJson),between:(e,t,r,i)=>{console.log("Between: "+this.getRouteKey(i))},exit:(e,t)=>{console.log("Exit: "+this.getRouteKey(t))},leaf:(e,t)=>{console.log("Leaf: "+this.getRouteKey(t))}},void 0)}preprocessAst(e){if(n.StringUtils.isString(e)){const t=e;try{e=JSON.parse(t)}catch(e){return}}if(this.isAst(e))return e}isAst(e){return!(!Object.prototype.hasOwnProperty.call(e,"bits")||!Array.isArray(e.bits))}walkRecursive(e,t,r,i){const{enter:o,between:n,exit:a,leaf:s}=r,l=t[t.length-1].key,p=!this.isValue(e),u=t[t.length-1];if(p){if(o){if(!1===o(u,t,i))return}}else s&&s(u,t,i);if(p){const o=this.isArray(e),a=Object.keys(e);for(let s=0,p=a.length;s<p;s++){const c=a[s],y=s===p-1,g=e,d=g[c];if(null!=d){const e={key:this.getAstKey(c,l,o),index:s,value:d},p=t.slice();if(p.push(e),this.walkRecursive(d,p,r,i),!y){const r=a[s+1],p=g[r],c={key:this.getAstKey(r,l,o),index:s+1,value:p};if(n){if(!1===n(u,e,c,t,i))break}}}}}p&&a&&a(u,t,i)}getAstKey(e,t,r){let i=e;return r&&t&&(i=`${t}Value`),o.NodeType.fromKey(i)||`unknown(${i})`}isArray(e){return Array.isArray(e)}isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}isValue(e){return!this.isObject(e)&&!this.isArray(e)}}},4470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseBuilder=void 0;const i=r(7735),o=r(2028),n=r(9727),a=r(385),s=r(777),l=r(6989),p=r(4078),u=r(8025),c=r(9681);t.BaseBuilder=class{constructor(){this.textParser=new s.TextParser}toExample(e,t,r){if(null!=t){let e;return e=p.BooleanUtils.isBoolean(r)?p.BooleanUtils.toBoolean(t):t,{isExample:!0,example:e,__defaultExample:null!=r?r:null}}return e?{isExample:!0,example:null!=r?r:null,__defaultExample:null!=r?r:null}:{isExample:!1,example:null,__defaultExample:null!=r?r:null}}toAstProperty(e,t){if(null==t)return;const r=o.Config.getRawPropertiesConfig()[e],i=e=>{if(null!=e){switch(r.format){case n.PropertyFormat.trimmedString:return null!=u.NumberUtils.asNumber(e)&&(e=`${e}`),c.StringUtils.isString(e)?c.StringUtils.trimmedString(e):void 0;case n.PropertyFormat.number:return u.NumberUtils.asNumber(e);case n.PropertyFormat.boolean:return p.BooleanUtils.toBoolean(e,!0);case n.PropertyFormat.invertedBoolean:return!p.BooleanUtils.toBoolean(e,!0)}return e}};if(Array.isArray(t)){const e=t;for(let t=0,r=e.length;t<r;t++)e[t]=i(e[t])}else t=i(t);return l.ArrayUtils.asArray(t)}handleJsonText(e,t){let r;if(t||(t=a.TextFormat.bitmarkMinusMinus),null==e)r=[];else if(this.textParser.isAst(e))r=e;else{if(Array.isArray(e)){const r=[];for(let o=0,n=e.length;o<n;o++){const n=e[o];this.textParser.isAst(n)?r[o]=n:(r[o]=this.textParser.toAst(i.Breakscape.breakscape(n,{textFormat:t})),r[o].__tag="text")}return r}r=this.textParser.toAst(i.Breakscape.breakscape(e,{textFormat:t}))}return r.__tag="text",r}}},5809:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;const i=r(7735),o=r(2028),n=r(9888),a=r(5854),s=r(4410),l=r(6149),p=r(385),u=r(6989),c=r(8903),y=r(4078),g=r(8025),d=r(955),f=r(9681),m=r(6936),T=r(4470),h=r(5533),b=r(4564);class B extends T.BaseBuilder{constructor(){super(...arguments),this.resourceBuilder=new h.ResourceBuilder}buildBitmark(e){const{bits:t,errors:r}=e,i={bits:t,errors:r};return d.ObjectUtils.removeUnwantedProperties(i),i}buildBit(e){var t,r,i,c,y,f,m,T;const h=o.Config.getBitConfig(e.bitType),B=null!==(t=p.TextFormat.fromValue(e.textFormat))&&void 0!==t?t:h.textFormatDefault,v=this.buildCardNode(e.bitType,B,e),C=o.Config.isOfBitType(e.bitType,a.BitType.essay)?this.toAstProperty(n.PropertyConfigKey.reasonableNumOfChars,e.reasonableNumOfChars):void 0,P=Object.assign({},this.toExample(e.__isDefaultExample,e.example)),x=Object.assign(Object.assign({bitType:e.bitType,bitLevel:e.bitLevel,textFormat:B,resourceType:l.ResourceTag.fromValue(e.resourceType),isCommented:e.isCommented,id:this.toAstProperty(n.PropertyConfigKey.id,e.id),internalComment:this.toAstProperty(n.PropertyConfigKey.internalComment,e.internalComment),externalId:this.toAstProperty(n.PropertyConfigKey.externalId,e.externalId),spaceId:this.toAstProperty(n.PropertyConfigKey.spaceId,e.spaceId),padletId:this.toAstProperty(n.PropertyConfigKey.padletId,e.padletId),jupyterId:this.toAstProperty(n.PropertyConfigKey.jupyterId,e.jupyterId),jupyterExecutionCount:this.toAstProperty(n.PropertyConfigKey.jupyterExecutionCount,e.jupyterExecutionCount),isPublic:this.toAstProperty(n.PropertyConfigKey.isPublic,e.isPublic),aiGenerated:this.toAstProperty(n.PropertyConfigKey.aiGenerated,e.aiGenerated),machineTranslated:this.toAstProperty(n.PropertyConfigKey.machineTranslated,e.machineTranslated),analyticsTag:this.toAstProperty(n.PropertyConfigKey.analyticsTag,e.analyticsTag),feedbackEngine:this.toAstProperty(n.PropertyConfigKey.feedbackEngine,e.feedbackEngine),feedbackType:this.toAstProperty(n.PropertyConfigKey.feedbackType,e.feedbackType),disableFeedback:this.toAstProperty(n.PropertyConfigKey.disableFeedback,e.disableFeedback),releaseVersion:this.toAstProperty(n.PropertyConfigKey.releaseVersion,e.releaseVersion),releaseKind:this.toAstProperty(n.PropertyConfigKey.releaseKind,e.releaseKind),releaseDate:this.toAstProperty(n.PropertyConfigKey.releaseDate,e.releaseDate),book:this.buildBooks(e.book),ageRange:this.toAstProperty(n.PropertyConfigKey.ageRange,e.ageRange),lang:this.toAstProperty(n.PropertyConfigKey.lang,e.lang),language:this.toAstProperty(n.PropertyConfigKey.language,e.language),publisher:this.toAstProperty(n.PropertyConfigKey.publisher,e.publisher),publisherName:this.toAstProperty(n.PropertyConfigKey.publisherName,e.publisherName),theme:this.toAstProperty(n.PropertyConfigKey.theme,e.theme),computerLanguage:this.toAstProperty(n.PropertyConfigKey.computerLanguage,e.computerLanguage),target:this.toAstProperty(n.PropertyConfigKey.target,e.target),slug:this.toAstProperty(n.PropertyConfigKey.slug,e.slug),tag:this.toAstProperty(n.PropertyConfigKey.tag,e.tag),reductionTag:this.toAstProperty(n.PropertyConfigKey.reductionTag,e.reductionTag),bubbleTag:this.toAstProperty(n.PropertyConfigKey.bubbleTag,e.bubbleTag),levelCEFRp:this.toAstProperty(n.PropertyConfigKey.levelCEFRp,e.levelCEFRp),levelCEFR:this.toAstProperty(n.PropertyConfigKey.levelCEFR,e.levelCEFR),levelILR:this.toAstProperty(n.PropertyConfigKey.levelILR,e.levelILR),levelACTFL:this.toAstProperty(n.PropertyConfigKey.levelACTFL,e.levelACTFL),icon:this.toAstProperty(n.PropertyConfigKey.icon,e.icon),iconTag:this.toAstProperty(n.PropertyConfigKey.iconTag,e.iconTag),colorTag:this.toAstProperty(n.PropertyConfigKey.colorTag,e.colorTag),flashcardSet:this.toAstProperty(n.PropertyConfigKey.flashcardSet,e.flashcardSet),subtype:this.toAstProperty(n.PropertyConfigKey.subtype,e.subtype),bookAlias:this.toAstProperty(n.PropertyConfigKey.bookAlias,e.bookAlias),coverImage:this.toAstProperty(n.PropertyConfigKey.coverImage,e.coverImage),coverColor:this.toAstProperty(n.PropertyConfigKey.coverColor,e.coverColor),publications:this.toAstProperty(n.PropertyConfigKey.publications,e.publications),author:this.toAstProperty(n.PropertyConfigKey.author,e.author),subject:this.toAstProperty(n.PropertyConfigKey.subject,e.subject),date:this.toAstProperty(n.PropertyConfigKey.date,e.date),dateEnd:this.toAstProperty(n.PropertyConfigKey.dateEnd,e.dateEnd),location:this.toAstProperty(n.PropertyConfigKey.location,e.location),kind:this.toAstProperty(n.PropertyConfigKey.kind,e.kind),hasMarkAsDone:this.toAstProperty(n.PropertyConfigKey.hasMarkAsDone,e.hasMarkAsDone),processHandIn:this.toAstProperty(n.PropertyConfigKey.processHandIn,e.processHandIn),action:this.toAstProperty(n.PropertyConfigKey.action,e.action),showInIndex:this.toAstProperty(n.PropertyConfigKey.showInIndex,e.showInIndex),blockId:this.toAstProperty(n.PropertyConfigKey.blockId,e.blockId),pageNo:this.toAstProperty(n.PropertyConfigKey.pageNo,e.pageNo),x:this.toAstProperty(n.PropertyConfigKey.x,e.x),y:this.toAstProperty(n.PropertyConfigKey.y,e.y),width:this.toAstProperty(n.PropertyConfigKey.width,e.width),height:this.toAstProperty(n.PropertyConfigKey.height,e.height),index:this.toAstProperty(n.PropertyConfigKey.index,e.index),classification:this.toAstProperty(n.PropertyConfigKey.classification,e.classification),availableClassifications:this.toAstProperty(n.PropertyConfigKey.availableClassifications,e.availableClassifications),allowedBit:this.toAstProperty(n.PropertyConfigKey.allowedBit,e.allowedBit),tableFixedHeader:this.toAstProperty(n.PropertyConfigKey.tableFixedHeader,e.tableFixedHeader),tableSearch:this.toAstProperty(n.PropertyConfigKey.tableSearch,e.tableSearch),tableSort:this.toAstProperty(n.PropertyConfigKey.tableSort,e.tableSort),tablePagination:this.toAstProperty(n.PropertyConfigKey.tablePagination,e.tablePagination),tablePaginationLimit:this.toAstProperty(n.PropertyConfigKey.tablePaginationLimit,e.tablePaginationLimit),tableHeight:this.toAstProperty(n.PropertyConfigKey.tableHeight,e.tableHeight),tableWhitespaceNoWrap:this.toAstProperty(n.PropertyConfigKey.tableWhitespaceNoWrap,e.tableWhitespaceNoWrap),tableAutoWidth:this.toAstProperty(n.PropertyConfigKey.tableAutoWidth,e.tableAutoWidth),tableResizableColumns:this.toAstProperty(n.PropertyConfigKey.tableResizableColumns,e.tableResizableColumns),tableColumnMinWidth:this.toAstProperty(n.PropertyConfigKey.tableColumnMinWidth,e.tableColumnMinWidth),quizCountItems:this.toAstProperty(n.PropertyConfigKey.quizCountItems,e.quizCountItems),quizStrikethroughSolutions:this.toAstProperty(n.PropertyConfigKey.quizStrikethroughSolutions,e.quizStrikethroughSolutions),codeLineNumbers:this.toAstProperty(n.PropertyConfigKey.codeLineNumbers,e.codeLineNumbers),codeMinimap:this.toAstProperty(n.PropertyConfigKey.codeMinimap,e.codeMinimap),stripePricingTableId:this.toAstProperty(n.PropertyConfigKey.stripePricingTableId,e.stripePricingTableId),stripePublishableKey:this.toAstProperty(n.PropertyConfigKey.stripePublishableKey,e.stripePublishableKey),thumbImage:this.toAstProperty(n.PropertyConfigKey.thumbImage,e.thumbImage),scormSource:this.toAstProperty(n.PropertyConfigKey.scormSource,e.scormSource),posterImage:this.toAstProperty(n.PropertyConfigKey.posterImage,e.posterImage),focusX:this.toAstProperty(n.PropertyConfigKey.focusX,e.focusX),focusY:this.toAstProperty(n.PropertyConfigKey.focusY,e.focusY),pointerLeft:this.toAstProperty(n.PropertyConfigKey.pointerLeft,e.pointerLeft),pointerTop:this.toAstProperty(n.PropertyConfigKey.pointerTop,e.pointerTop),listItemIndent:this.toAstProperty(n.PropertyConfigKey.listItemIndent,e.listItemIndent),backgroundWallpaper:this.toAstProperty(n.PropertyConfigKey.backgroundWallpaper,e.backgroundWallpaper),hasBookNavigation:this.toAstProperty(n.PropertyConfigKey.hasBookNavigation,e.hasBookNavigation),duration:this.toAstProperty(n.PropertyConfigKey.duration,e.duration),deeplink:this.toAstProperty(n.PropertyConfigKey.deeplink,e.deeplink),externalLink:this.toAstProperty(n.PropertyConfigKey.externalLink,e.externalLink),externalLinkText:this.toAstProperty(n.PropertyConfigKey.externalLinkText,e.externalLinkText),videoCallLink:this.toAstProperty(n.PropertyConfigKey.videoCallLink,e.videoCallLink),vendorUrl:this.toAstProperty(n.PropertyConfigKey.vendorUrl,e.vendorUrl),search:this.toAstProperty(n.PropertyConfigKey.search,e.search),list:this.toAstProperty(n.PropertyConfigKey.list,e.list),textReference:this.toAstProperty(n.PropertyConfigKey.textReference,e.textReference),isTracked:this.toAstProperty(n.PropertyConfigKey.isTracked,e.isTracked),isInfoOnly:this.toAstProperty(n.PropertyConfigKey.isInfoOnly,e.isInfoOnly),imageFirst:this.toAstProperty(n.PropertyConfigKey.imageFirst,e.imageFirst),activityType:this.toAstProperty(n.PropertyConfigKey.activityType,e.activityType),labelTrue:this.toAstProperty(n.PropertyConfigKey.labelTrue,e.labelTrue),labelFalse:this.toAstProperty(n.PropertyConfigKey.labelFalse,e.labelFalse),content2Buy:this.toAstProperty(n.PropertyConfigKey.content2Buy,e.content2Buy),mailingList:this.toAstProperty(n.PropertyConfigKey.mailingList,e.mailingList),buttonCaption:this.toAstProperty(n.PropertyConfigKey.buttonCaption,e.buttonCaption),callToActionUrl:this.toAstProperty(n.PropertyConfigKey.callToActionUrl,e.callToActionUrl),caption:this.handleJsonText(e.caption),quotedPerson:this.toAstProperty(n.PropertyConfigKey.quotedPerson,e.quotedPerson),reasonableNumOfChars:C,resolved:this.toAstProperty(n.PropertyConfigKey.resolved,e.resolved),resolvedDate:this.toAstProperty(n.PropertyConfigKey.resolvedDate,e.resolvedDate),resolvedBy:this.toAstProperty(n.PropertyConfigKey.resolvedBy,e.resolvedBy),maxCreatedBits:this.toAstProperty(n.PropertyConfigKey.maxCreatedBits,e.maxCreatedBits),maxDisplayLevel:this.toAstProperty(n.PropertyConfigKey.maxDisplayLevel,e.maxDisplayLevel),page:this.toAstProperty(n.PropertyConfigKey.page,e.page),productId:this.toAstProperty(n.PropertyConfigKey.productId,e.productId),product:this.toAstProperty(n.PropertyConfigKey.product,e.product),productList:this.toAstProperty(n.PropertyConfigKey.productList,e.productList),productVideo:this.toAstProperty(n.PropertyConfigKey.productVideo,e.productVideo),productVideoList:this.toAstProperty(n.PropertyConfigKey.productVideoList,e.productVideoList),productFolder:this.toAstProperty(n.PropertyConfigKey.productFolder,e.productFolder),technicalTerm:this.buildTechnicalTerm(e.technicalTerm),servings:this.buildServings(e.servings),ratingLevelStart:this.buildRatingLevelStartEnd(e.ratingLevelStart),ratingLevelEnd:this.buildRatingLevelStartEnd(e.ratingLevelEnd),ratingLevelSelected:this.toAstProperty(n.PropertyConfigKey.ratingLevelSelected,e.ratingLevelSelected),markConfig:this.buildMarkConfigs(e.markConfig),imageSource:this.buildImageSource(e.imageSource),person:this.buildPerson(e.bitType,e.person),bot:this.toAstProperty(n.PropertyConfigKey.bot,e.bot),referenceProperty:this.toAstProperty(n.PropertyConfigKey.property_reference,e.referenceProperty),title:this.handleJsonText(e.title),subtitle:this.handleJsonText(e.subtitle),level:g.NumberUtils.asNumber(e.level),toc:this.toAstProperty(n.PropertyConfigKey.toc,e.toc),progress:this.toAstProperty(n.PropertyConfigKey.progress,e.progress),anchor:e.anchor,reference:e.reference,referenceEnd:e.referenceEnd,item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),pageNumber:this.handleJsonText(e.pageNumber),marginNumber:this.handleJsonText(e.marginNumber),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction),partialAnswer:this.toAstProperty(n.PropertyConfigKey.partialAnswer,e.partialAnswer),sampleSolution:this.toAstProperty(n.PropertyConfigKey.property_sampleSolution,e.sampleSolution),additionalSolutions:this.toAstProperty(n.PropertyConfigKey.additionalSolutions,e.additionalSolutions)},this.toExample(e.__isDefaultExample,e.example)),{body:this.buildBody(B,e.body),imagePlaceholder:u.ArrayUtils.asSingle(this.resourceBuilder.resourceFromResourceDataJson(e.bitType,l.ResourceTag.image,null===(r=e.imagePlaceholder)||void 0===r?void 0:r.image)),resources:u.ArrayUtils.asArray(this.resourceBuilder.resourceFromResourceJson(e.bitType,e.resources)),cardNode:v,footer:this.buildFooter(e.footer),markup:e.markup,parser:e.parser,extraProperties:this.parseExtraProperties(e.extraProperties),__isDefaultExample:null!==(i=e.__isDefaultExample)&&void 0!==i&&i});return o.Config.isOfBitType(e.bitType,a.BitType.interview)&&this.pushDownTree(void 0,void 0,v,"questions",n.PropertyConfigKey.reasonableNumOfChars,e.reasonableNumOfChars),this.pushDownTree([e.body,...null!==(y=null===(c=null==v?void 0:v.cardBits)||void 0===c?void 0:c.map((e=>e.body)))&&void 0!==y?y:[]],[s.BodyBitType.gap],void 0,"isCaseSensitive",n.PropertyConfigKey.isCaseSensitive,null===(f=e.isCaseSensitive)||void 0===f||f),this.pushDownTree(void 0,void 0,v,"pairs",n.PropertyConfigKey.isCaseSensitive,null===(m=e.isCaseSensitive)||void 0===m||m),this.pushDownTree(void 0,void 0,v,["matrix","cells"],n.PropertyConfigKey.isCaseSensitive,null===(T=e.isCaseSensitive)||void 0===T||T),this.pushExampleDownTree(e.body,v,e.__isDefaultExample,P.example),this.setDefaultBitValues(x),this.setIsExampleFlags(x),this.addVersionToParserInfo(x),d.ObjectUtils.removeUnwantedProperties(x,{ignoreAllFalse:!0,ignoreUndefined:["example"],ignoreEmptyArrays:["item","lead","pageNumber","marginNumber","hint","instruction"]}),b.NodeValidator.validateBit(x)}buildBooks(e){if(f.StringUtils.isString(e))return e;if(!Array.isArray(e))return;const t=e.map((e=>this.buildBook(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildBook(e){var t,r,i;if(!e)return;const o={book:null!==(t=e.book)&&void 0!==t?t:"",reference:null!==(r=e.reference)&&void 0!==r?r:"",referenceEnd:null!==(i=e.referenceEnd)&&void 0!==i?i:void 0};return d.ObjectUtils.removeUnwantedProperties(o,{ignoreAllFalse:!0,ignoreEmptyString:["book","reference"]}),o}buildChoices(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildChoice(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildChoice(e){var t;if(!e)return;const r=Object.assign({choice:null!==(t=e.choice)&&void 0!==t?t:"",isCorrect:!!e.isCorrect,item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,!!e.isCorrect));return d.ObjectUtils.removeUnwantedProperties(r,{ignoreAllFalse:!0,ignoreEmptyArrays:["item","hint","instruction"],ignoreUndefined:["example"]}),r}buildResponses(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildResponse(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildResponse(e){var t;if(!e)return;const r=Object.assign({response:null!==(t=e.response)&&void 0!==t?t:"",isCorrect:!!e.isCorrect,item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,!!e.isCorrect));return d.ObjectUtils.removeUnwantedProperties(r,{ignoreAllFalse:!0,ignoreEmptyArrays:["item","hint","instruction"],ignoreUndefined:["example"]}),r}buildBotResponses(e){if(!Array.isArray(e))return;const t=e.map((e=>this.botResponse(e))).filter((e=>null!=e));return t.length>0?t:void 0}botResponse(e){var t,r,i;if(!e)return;const o={response:null!==(t=e.response)&&void 0!==t?t:"",reaction:null!==(r=e.reaction)&&void 0!==r?r:"",feedback:null!==(i=e.feedback)&&void 0!==i?i:"",item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint)};return d.ObjectUtils.removeUnwantedProperties(o,{ignoreEmptyString:["response","reaction","feedback"],ignoreAllFalse:!0,ignoreEmptyArrays:["item"],ignoreUndefined:["example"]}),o}buildQuizzes(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildQuiz(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildQuiz(e){if(!e)return;const t=Object.assign({},this.toExample(e.__isDefaultExample,e.__defaultExample));let r,i;if(e.choices)r=this.buildChoices(e.choices),this.pushExampleDownTreeBoolean(e.__isDefaultExample,t.example,!0,r);else{if(!e.responses)return;i=this.buildResponses(e.responses),this.pushExampleDownTreeBoolean(e.__isDefaultExample,t.example,!1,i)}const o={item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction),isExample:!!e.__defaultExample,choices:r,responses:i};return d.ObjectUtils.removeUnwantedProperties(o,{ignoreAllFalse:!0,ignoreEmptyArrays:["item","hint","instruction"]}),o}buildHeading(e){var t,r,i;if(!e)return;if(null==e.forKeys)return;const o={forKeys:null!==(t=e.forKeys)&&void 0!==t?t:"",forValues:null!==(i=null!==(r=e.forValues)&&void 0!==r?r:e.__forValuesDefault)&&void 0!==i?i:""};return d.ObjectUtils.removeUnwantedProperties(o,{ignoreAllFalse:!0,ignoreEmptyString:["forKeys","forValues"],ignoreEmptyArrays:["forValues"]}),o}buildPairs(e,t){if(!Array.isArray(t))return;const r=t.map((t=>this.buildPair(e,t))).filter((e=>null!=e));return r.length>0?r:void 0}buildPair(e,t){var r,i,o,n;if(!t)return;const a=Array.isArray(t.__valuesAst)&&t.__valuesAst.length>0?t.__valuesAst[0]:null,s=null===(r=u.ArrayUtils.asSingle(this.resourceBuilder.resourceFromResourceDataJson(e,l.ResourceTag.audio,t.keyAudio)))||void 0===r?void 0:r.audio,p=null===(i=u.ArrayUtils.asSingle(this.resourceBuilder.resourceFromResourceDataJson(e,l.ResourceTag.image,t.keyImage)))||void 0===i?void 0:i.image,c=Object.assign(Object.assign({key:null!==(o=t.key)&&void 0!==o?o:"",keyAudio:s,keyImage:p,item:this.handleJsonText(t.item),lead:this.handleJsonText(t.lead),hint:this.handleJsonText(t.hint),instruction:this.handleJsonText(t.instruction),isCaseSensitive:t.isCaseSensitive},this.toExample(t.__isDefaultExample,t.example,a)),{values:null!==(n=t.values)&&void 0!==n?n:[],__valuesAst:t.__valuesAst});return d.ObjectUtils.removeUnwantedProperties(c,{ignoreAllFalse:!0,ignoreEmptyArrays:["item","hint","instruction","values"],ignoreUndefined:["example","isCaseSensitive"]}),c}buildMatricies(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildMatrix(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildMatrix(e){var t,r,i;if(!e)return;let o=!1;for(const r of null!==(t=e.cells)&&void 0!==t?t:[])e.__isDefaultExample&&!r.isExample&&(r.isExample=!0),o=!!r.isExample||o;const n={key:null!==(r=e.key)&&void 0!==r?r:"",item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction),isExample:o,cells:(null!==(i=e.cells)&&void 0!==i?i:[]).map((e=>this.buildMatrixCell(e))).filter((e=>null!=e))};return d.ObjectUtils.removeUnwantedProperties(n,{ignoreAllFalse:!0,ignoreEmptyArrays:["hint","item","cells"],ignoreUndefined:["isCaseSensitive"]}),n}buildMatrixCell(e){var t;if(!e)return;const r=Array.isArray(e.__valuesAst)&&e.__valuesAst.length>0?e.__valuesAst[0]:null,i=Object.assign(Object.assign({values:null!==(t=e.values)&&void 0!==t?t:[],item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction),isCaseSensitive:e.isCaseSensitive},this.toExample(e.__isDefaultExample,e.example,r)),{__valuesAst:e.__valuesAst});return d.ObjectUtils.removeUnwantedProperties(i,{ignoreAllFalse:!0,ignoreEmptyArrays:["instruction","item","values"],ignoreUndefined:["example","isCaseSensitive"]}),i}buildTable(e){var t,r;if(!e)return;return{columns:null!==(t=e.columns)&&void 0!==t?t:[],data:(null!==(r=e.data)&&void 0!==r?r:[]).map((e=>null!=e?e:[]))}}buildQuestions(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildQuestion(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildQuestion(e){var t,r,i,o,n;if(!e)return;const a=e.__sampleSolutionAst,s=Object.assign(Object.assign({question:null!==(t=e.question)&&void 0!==t?t:"",partialAnswer:null!==(r=e.partialAnswer)&&void 0!==r?r:"",sampleSolution:null!==(i=e.sampleSolution)&&void 0!==i?i:"",additionalSolutions:null!==(o=e.additionalSolutions)&&void 0!==o?o:void 0,reasonableNumOfChars:null!==(n=e.reasonableNumOfChars)&&void 0!==n?n:void 0,item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,a)),{__sampleSolutionAst:e.__sampleSolutionAst});return d.ObjectUtils.removeUnwantedProperties(s,{ignoreAllFalse:!0,ignoreEmptyArrays:["item","hint","instruction"],ignoreUndefined:["example"],ignoreEmptyString:["question","partialAnswer","sampleSolution"]}),s}buildIngredients(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildIngredient(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildIngredient(e){var t,r,i,o,n,a,s,l;if(!e)return;const p={title:null!==(t=e.title)&&void 0!==t?t:"",checked:null!==(r=e.checked)&&void 0!==r&&r,item:null!==(i=e.item)&&void 0!==i?i:"",quantity:null!==(o=e.quantity)&&void 0!==o?o:0,unit:null!==(n=e.unit)&&void 0!==n?n:"",unitAbbr:null!==(a=e.unitAbbr)&&void 0!==a?a:"",decimalPlaces:null!==(s=e.decimalPlaces)&&void 0!==s?s:1,disableCalculation:null!==(l=e.disableCalculation)&&void 0!==l&&l};return d.ObjectUtils.removeUnwantedProperties(p,{ignoreAllFalse:!0,ignoreEmptyString:["item","unit"]}),p}buildBody(e,t){if(!t)return;let r;const o=[],n=t.placeholders,a=t.bodyString,l=()=>{var e;let a,l=t.body;const u={};if(f.StringUtils.isString(t.body)?(a=(null!==(e=t.body)&&void 0!==e?e:"").trim(),l=[]):Array.isArray(t.body)||(l=[]),n)for(const[e,t]of Object.entries(n))u[e]=t;if(a){a=i.Breakscape.breakscape(a,{textFormat:p.TextFormat.bitmarkMinusMinus});let e=0;const t=[];for(const[r,i]of Object.entries(u))if(a){const o=`[!${e}]`;a=a.replace(`${r}`,o),t.push(i),e++}l=this.textParser.toAst(a,{textFormat:p.TextFormat.bitmarkMinusMinus});const r=e=>{for(let i=0,o=e.length;i<o;i++){const o=e[i];if("bit"===o.type){const r=o.index;null!=t[r]&&(e[i]=t[r])}else o.content&&r(o.content)}};r(l)}this.textParser.walkBodyBits(l,((e,t,r)=>{let i;switch(r.type){case s.BodyBitType.gap:i=this.buildGap(r);break;case s.BodyBitType.mark:i=this.buildMark(r);break;case s.BodyBitType.select:i=this.buildSelect(r);break;case s.BodyBitType.highlight:i=this.buildHighlight(r)}null!=i&&(e[t]=i,o.push(i))})),r=l,r.__tag="text"},u=e===p.TextFormat.bitmarkMinusMinus||e===p.TextFormat.bitmarkPlusPlus;e===p.TextFormat.json?(()=>{if("string"==typeof t.body)try{r=JSON.parse(t.body)}catch(e){r=null}else r=t.body})():u?l():r=t.body;return{body:r,bodyBits:o,bodyString:a}}buildFooter(e){if(!e)return;return{footer:this.handleJsonText(e.footer)}}buildGap(e){var t;if(!e)return;const r=Array.isArray(e.__solutionsAst)&&e.__solutionsAst.length>0?e.__solutionsAst[0]:null,i=Object.assign(Object.assign({type:s.BodyBitType.gap,solutions:null!==(t=e.solutions)&&void 0!==t?t:[],item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction),isCaseSensitive:e.isCaseSensitive},this.toExample(e.__isDefaultExample,e.example,r)),{__solutionsAst:e.__solutionsAst});return d.ObjectUtils.removeUnwantedProperties(i,{ignoreAllFalse:!0,ignoreAllEmptyArrays:!0,ignoreUndefined:["example","isCaseSensitive"]}),i}buildMarkConfigs(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildMarkConfig(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildMarkConfig(e){var t,r,i;if(!e)return;const o={mark:null!==(t=e.mark)&&void 0!==t?t:"unknown",color:null!==(r=e.color)&&void 0!==r?r:"",emphasis:null!==(i=e.emphasis)&&void 0!==i?i:""};return d.ObjectUtils.removeUnwantedProperties(o,{ignoreAllEmptyString:!0}),o}buildMark(e){var t,r;if(!e)return;const i=Object.assign({type:s.BodyBitType.mark,solution:null!==(t=e.solution)&&void 0!==t?t:"",mark:null!==(r=e.mark)&&void 0!==r?r:"",item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,!0));return d.ObjectUtils.removeUnwantedProperties(i,{ignoreAllFalse:!0,ignoreAllEmptyArrays:!0,ignoreUndefined:["example"],ignoreEmptyString:["solution","mark"]}),i}buildSelect(e){var t,r,i;if(!e)return;const o=Object.assign(Object.assign({type:s.BodyBitType.select,options:null!==(t=this.buildSelectOptions(e.options))&&void 0!==t?t:[],prefix:null!==(r=e.prefix)&&void 0!==r?r:"",postfix:null!==(i=e.postfix)&&void 0!==i?i:"",item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(!1,void 0,void 0)),{__hintString:e.__hintString,__instructionString:e.__instructionString});return d.ObjectUtils.removeUnwantedProperties(o,{ignoreAllFalse:!0,ignoreAllEmptyArrays:!0,ignoreEmptyString:["prefix","postfix"]}),o}buildSelectOptions(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildSelectOption(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildSelectOption(e){var t;if(!e)return;const r=Object.assign({text:null!==(t=e.text)&&void 0!==t?t:"",isCorrect:!!e.isCorrect,item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,!!e.isCorrect));return d.ObjectUtils.removeUnwantedProperties(r,{ignoreAllFalse:!0,ignoreAllEmptyArrays:!0,ignoreUndefined:["example"]}),r}buildHighlight(e){var t,r,i;if(!e)return;const o=Object.assign({type:s.BodyBitType.highlight,texts:null!==(t=this.buildHighlightTexts(e.texts))&&void 0!==t?t:[],prefix:null!==(r=e.prefix)&&void 0!==r?r:"",postfix:null!==(i=e.postfix)&&void 0!==i?i:"",item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(!1,void 0,void 0));return d.ObjectUtils.removeUnwantedProperties(o,{ignoreAllFalse:!0,ignoreAllEmptyArrays:!0,ignoreEmptyString:["prefix","postfix"]}),o}buildHighlightTexts(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildHighlightText(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildHighlightText(e){var t;if(!e)return;const r=Object.assign({text:null!==(t=e.text)&&void 0!==t?t:"",isCorrect:!!e.isCorrect,isHighlighted:!!e.isHighlighted,item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,!!e.isCorrect));return d.ObjectUtils.removeUnwantedProperties(r,{ignoreAllFalse:!0,ignoreAllEmptyArrays:!0,ignoreUndefined:["example"]}),r}buildFlashcards(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildFlashcard(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildFlashcard(e){if(!e)return;const t=Object.assign({question:this.handleJsonText(e.question),answer:this.handleJsonText(e.answer),alternativeAnswers:this.handleJsonText(e.alternativeAnswers),item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,!0));return d.ObjectUtils.removeUnwantedProperties(t,{ignoreAllFalse:!0,ignoreEmptyArrays:["question","answer","alternativeAnswers","item","hint","instruction"],ignoreUndefined:["example"]}),t}buildDefinitionList(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildDefinitionListItem(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildDefinitionListItem(e){if(!e)return;const t=Object.assign({term:this.handleJsonText(e.term,p.TextFormat.bitmarkMinusMinus),definition:this.handleJsonText(e.definition),alternativeDefinitions:this.handleJsonText(e.alternativeDefinitions),item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,!0));return d.ObjectUtils.removeUnwantedProperties(t,{ignoreAllFalse:!0,ignoreEmptyArrays:["question","answer","alternativeDefinitions","item","hint","instruction"],ignoreUndefined:["example"]}),t}buildStatements(e){if(!Array.isArray(e))return;const t=e.map((e=>this.buildStatement(e))).filter((e=>null!=e));return t.length>0?t:void 0}buildStatement(e){var t;if(!e)return;const r=Object.assign({statement:null!==(t=e.statement)&&void 0!==t?t:"",isCorrect:!!e.isCorrect,item:this.handleJsonText(e.item),lead:this.handleJsonText(e.lead),hint:this.handleJsonText(e.hint),instruction:this.handleJsonText(e.instruction)},this.toExample(e.__isDefaultExample,e.example,!!e.isCorrect));return d.ObjectUtils.removeUnwantedProperties(r,{ignoreAllFalse:!0,ignoreUndefined:["example"]}),r}buildImageSource(e){if(!e)return;const{url:t,mockupId:r,size:i,format:o,trim:n}=e,a={url:null!=t?t:"",mockupId:null!=r?r:"",size:null!=i?i:null,format:null!=o?o:null,trim:y.BooleanUtils.isBoolean(n)?n:null};return d.ObjectUtils.removeUnwantedProperties(a,{ignoreFalse:["trim"],ignoreEmptyString:["url","mockupId"],ignoreAllUndefined:!0}),a}buildPerson(e,t){var r;if(!t)return;const{name:i,title:o,avatarImage:n}=t,a={name:null!=i?i:"",title:null!=o?o:void 0,avatarImage:null===(r=u.ArrayUtils.asSingle(this.resourceBuilder.resourceFromResourceDataJson(e,l.ResourceTag.image,n)))||void 0===r?void 0:r.image};return d.ObjectUtils.removeUnwantedProperties(a,{ignoreEmptyString:["name"],ignoreAllUndefined:!0}),a}buildTechnicalTerm(e){if(!e)return;const{technicalTerm:t,lang:r}=e,i={technicalTerm:null!=t?t:"",lang:null!=r?r:""};return d.ObjectUtils.removeUnwantedProperties(i,{ignoreEmptyString:["technicalTerm"]}),i}buildServings(e){if(!e)return;const{servings:t,unit:r,unitAbbr:i,decimalPlaces:o,disableCalculation:n,hint:a}=e,s={servings:null!=t?t:0,unit:null!=r?r:"",unitAbbr:null!=i?i:"",decimalPlaces:null!=o?o:1,disableCalculation:null!=n&&n,hint:null!=a?a:""};return d.ObjectUtils.removeUnwantedProperties(s,{ignoreEmptyString:["servings","unit"]}),s}buildRatingLevelStartEnd(e){if(!e)return;const{level:t,label:r}=e,i={level:null!=t?t:0,label:this.handleJsonText(r)};return d.ObjectUtils.removeUnwantedProperties(i,{}),i}buildCaptionDefinition(e){var t,r;if(!e)return;const i={term:null!==(t=e.term)&&void 0!==t?t:"",definition:null!==(r=e.definition)&&void 0!==r?r:""};return d.ObjectUtils.removeUnwantedProperties(i,{ignoreEmptyString:["term","description"]}),i}buildCaptionDefinitionList(e){var t,r;if(!e)return;const i={columns:null!==(t=e.columns)&&void 0!==t?t:[],definitions:(null!==(r=e.definitions)&&void 0!==r?r:[]).map((e=>this.buildCaptionDefinition({term:e.term,definition:e.definition}))).filter((e=>null!=e))};return d.ObjectUtils.removeUnwantedProperties(i,{ignoreAllEmptyArrays:!0}),i}buildCardBits(e,t){if(!Array.isArray(t))return;const r=t.map((t=>this.buildCardBit(e,t))).filter((e=>null!=e));return r.length>0?r:void 0}buildCardBit(e,t){var r;if(!t)return;const i=Object.assign(Object.assign({item:this.handleJsonText(t.item),lead:this.handleJsonText(t.lead),hint:this.handleJsonText(t.hint),instruction:this.handleJsonText(t.instruction)},this.toExample(t.__isDefaultExample,t.example)),{__isDefaultExample:null!==(r=t.__isDefaultExample)&&void 0!==r&&r,body:this.buildBody(e,t.body),extraProperties:this.parseExtraProperties(t.extraProperties)});return d.ObjectUtils.removeUnwantedProperties(i,{ignoreAllFalse:!0,ignoreUndefined:["example"]}),b.NodeValidator.validateCardBit(i)}buildCardNode(e,t,r){const i={questions:this.buildQuestions(r.questions),elements:r.elements,flashcards:this.buildFlashcards(r.flashcards),definitions:this.buildDefinitionList(r.definitions),statement:this.buildStatement(r.statement),statements:this.buildStatements(r.statements),choices:this.buildChoices(r.choices),responses:this.buildResponses(r.responses),quizzes:this.buildQuizzes(r.quizzes),heading:this.buildHeading(r.heading),pairs:this.buildPairs(e,r.pairs),matrix:this.buildMatricies(r.matrix),table:this.buildTable(r.table),botResponses:this.buildBotResponses(r.botResponses),ingredients:this.buildIngredients(r.ingredients),captionDefinitionList:this.buildCaptionDefinitionList(r.captionDefinitionList),cardBits:this.buildCardBits(t,r.cardBits)};return d.ObjectUtils.removeUnwantedProperties(i),Object.keys(i).length>0?i:void 0}pushExampleDownTree(e,t,r,i){if(r||null!=i){if(t){if(this.pushExampleDownTreeString(r,i,t.pairs),this.pushExampleDownTreeBoolean(r,i,!1,t.flashcards),this.pushExampleDownTreeBoolean(r,i,!1,t.definitions),this.pushExampleDownTreeBoolean(r,i,!0,t.choices),this.pushExampleDownTreeBoolean(r,i,!1,t.responses,t.statements,t.statement),t.quizzes)for(const e of t.quizzes)this.pushExampleDownTreeBoolean(r,i,!0,e.choices),this.pushExampleDownTreeBoolean(r,i,!1,e.responses);if(t.matrix)for(const e of t.matrix)this.pushExampleDownTreeString(r,i,e.cells)}e&&this.pushExampleDownTreeBodyBits(r,i,e)}}pushExampleDownTreeBoolean(e,t,r,...i){if((e||null!=t)&&Array.isArray(i))for(const o of i)if(o){const i=Array.isArray(o)?o:[o];c.BitUtils.fillBooleanExample(i,e,t,r)}}pushExampleDownTreeString(e,t,...r){if((e||t)&&Array.isArray(r))for(const i of r)if(i){const r=Array.isArray(i)?i:[i];c.BitUtils.fillStringExample(r,e,t,!1)}}pushExampleDownTreeBodyBits(e,t,r){if(!e&&!t)return;const i=this.textParser.extractBodyBits(null==r?void 0:r.body);for(const r of i)if(r)switch(r.type){case s.BodyBitType.gap:{const i=r;c.BitUtils.fillStringExample([i],e,t,!1);break}case s.BodyBitType.mark:{const i=r;c.BitUtils.fillBooleanExample([i],e,t,!1);break}case s.BodyBitType.select:{const i=r;c.BitUtils.fillBooleanExample(i.options,e,t,!0);break}case s.BodyBitType.highlight:{const i=r;c.BitUtils.fillBooleanExample(i.texts,e,t,!0);break}}}pushDownTree(e,t,r,i,o,n){if(void 0!==n){if(r&&i){Array.isArray(i)||(i=[i]);const e=d.ObjectUtils.flatMapPath(r,i);for(const t of e)null==t[o]&&(t[o]=n)}if(e){const r=Array.isArray(e)?e:[e];for(const e of r)if(e&&e.body&&t){const r=this.textParser.extractBodyBits(e.body);if(t&&r&&r.length>0)for(const e of r)if(e&&-1!==t.indexOf(e.type)){const t=e;null==t[o]&&(t[o]=n)}}}}}parseExtraProperties(e){if(!e)return;const t=Object.entries(e);if(0===t.length)return;const r={};for(const[e,i]of t)r[e]=u.ArrayUtils.asArray(i)||[i];return r}setIsExampleFlags(e){var t,r,i,o,n,a,l,p,u,c,y,g,d,f;const m=t=>!!t&&(t.isExample||null!=t.example?(t.isExample=!0,e.isExample=!0):t.isExample=t===e&&!!e.isExample,t.isExample),{body:T,cardNode:h}=e,b=this.textParser.extractBodyBits(null==T?void 0:T.body);for(const e of b)switch(e.type){case s.BodyBitType.gap:case s.BodyBitType.mark:m(e);break;case s.BodyBitType.select:{const t=e;let r=!1;for(const e of t.options)r=!!m(e)||r;t.isExample=r;break}case s.BodyBitType.highlight:{const t=e;let r=!1;for(const e of t.texts)r=!!m(e)||r;t.isExample=r;break}}if(h){for(const e of null!==(t=h.flashcards)&&void 0!==t?t:[])m(e);for(const e of null!==(r=h.definitions)&&void 0!==r?r:[])m(e);for(const e of null!==(i=h.pairs)&&void 0!==i?i:[])m(e);for(const e of null!==(o=h.matrix)&&void 0!==o?o:[]){let t=!1;for(const r of null!==(n=e.cells)&&void 0!==n?n:[])t=!!m(r)||t;e.isExample=t}for(const e of null!==(a=h.quizzes)&&void 0!==a?a:[]){let t=!1;for(const r of null!==(l=e.responses)&&void 0!==l?l:[])t=!!m(r)||t;for(const r of null!==(p=e.choices)&&void 0!==p?p:[])t=!!m(r)||t;e.isExample=t}for(const e of null!==(u=h.responses)&&void 0!==u?u:[])m(e);for(const e of null!==(c=h.choices)&&void 0!==c?c:[])m(e);for(const e of null!==(y=h.statements)&&void 0!==y?y:[])m(e);m(h.statement);for(const e of null!==(g=h.questions)&&void 0!==g?g:[])m(e)}m(e.statement);for(const t of null!==(d=e.responses)&&void 0!==d?d:[])m(t);for(const t of null!==(f=e.choices)&&void 0!==f?f:[])m(t);m(e)}setDefaultBitValues(e){switch(e.bitType){case a.BitType.articleAi:case a.BitType.noteAi:case a.BitType.summaryAi:e.aiGenerated=this.toAstProperty(n.PropertyConfigKey.aiGenerated,!0)}}addVersionToParserInfo(e){var t;const r=null!==(t=e.parser)&&void 0!==t?t:{};r.version=m.env.appVersion.full,e.parser=r}}t.Builder=B},5533:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceBuilder=void 0;const o=r(7735),n=r(2028),a=r(5854),s=r(6149),l=r(955),p=r(9681),u=r(201),c=r(4470),y=r(4564);class g extends c.BaseBuilder{resourceFromResourceJson(e,t){if(!t)return;const r=[];Array.isArray(t)||(t=[t]);for(const i of t){let t=s.ResourceTag.fromValue(i.type);if(!t)return;const o=s.ResourceTag.keyFromValue(t);if(!o)return;const n=s.ResourceTag.fromValue(i.__typeAlias);let a;if(t=null!=n?n:t,t===s.ResourceTag.imageResponsive){const t=i,o=this.resourceFromResourceDataJson(e,s.ResourceTag.imagePortrait,t.imagePortrait),n=this.resourceFromResourceDataJson(e,s.ResourceTag.imageLandscape,t.imageLandscape);o&&r.push(o),n&&r.push(n)}else if(t===s.ResourceTag.stillImageFilm){const t=i,o=this.resourceFromResourceDataJson(e,s.ResourceTag.image,t.image),n=this.resourceFromResourceDataJson(e,s.ResourceTag.audio,t.audio);o&&r.push(o),n&&r.push(n)}else{if(a=i[o],!a)return;const n=this.resourceFromResourceDataJson(e,t,a);n&&r.push(n)}}return 0!==r.length?1===r.length?r[0]:r:void 0}resourceFromResourceDataJson(e,t,r){var i,o,n;if(!r)return;if(!(t=s.ResourceTag.fromValue(t)))return;const a=p.StringUtils.isString(r)?r:void 0,l=r.url||r.src||r.body||a,u=r.posterImage?null===(i=this.resourceFromResourceDataJson(e,s.ResourceTag.image,r.posterImage))||void 0===i?void 0:i.image:void 0,c=r.thumbnails?r.thumbnails.map((t=>{var r;return null===(r=this.resourceFromResourceDataJson(e,s.ResourceTag.image,t))||void 0===r?void 0:r.image})):void 0;return this.resource(e,{type:t,value:l,format:r.format,src1x:r.src1x,src2x:r.src2x,src3x:r.src3x,src4x:r.src4x,caption:this.handleJsonText(r.caption),width:null!==(o=r.width)&&void 0!==o?o:void 0,height:null!==(n=r.height)&&void 0!==n?n:void 0,alt:r.alt,zoomDisabled:r.zoomDisabled,duration:r.duration,mute:r.mute,autoplay:r.autoplay,allowSubtitles:r.allowSubtitles,showSubtitles:r.showSubtitles,posterImage:u,thumbnails:c,siteName:void 0,license:r.license,copyright:r.copyright,showInIndex:r.showInIndex,search:r.search})}resource(e,t){var r;let n;const{type:a,value:l,format:p}=t,u=i(t,["type","value","format"]),c=Object.assign({type:a,value:null!=l?l:o.Breakscape.EMPTY_STRING,format:null!=p?p:o.Breakscape.EMPTY_STRING},u);switch(a){case s.ResourceTag.video:case s.ResourceTag.videoEmbed:case s.ResourceTag.videoLink:case s.ResourceTag.stillImageFilmEmbed:case s.ResourceTag.stillImageFilmLink:{const i=["src1x","src2x","src3x","src4x"],o=[];for(const r of i){const i=t[r];if(i){const t=this.resource(e,{type:s.ResourceTag.image,value:i});t&&o.push(t.image)}}c.thumbnails=[...null!==(r=c.thumbnails)&&void 0!==r?r:[],...o]}}switch(a){case s.ResourceTag.image:case s.ResourceTag.imagePortrait:case s.ResourceTag.imageLandscape:n=this.imageResource(e,c,a);break;case s.ResourceTag.imageLink:n=this.imageLinkResource(c);break;case s.ResourceTag.audio:n=this.audioResource(c);break;case s.ResourceTag.audioEmbed:n=this.audioEmbedResource(c);break;case s.ResourceTag.audioLink:n=this.audioLinkResource(c);break;case s.ResourceTag.video:n=this.videoResource(c);break;case s.ResourceTag.videoEmbed:n=this.videoEmbedResource(c);break;case s.ResourceTag.videoLink:n=this.videoLinkResource(c);break;case s.ResourceTag.stillImageFilmEmbed:n=this.stillImageFilmEmbedResource(c);break;case s.ResourceTag.stillImageFilmLink:n=this.stillImageFilmLinkResource(c);break;case s.ResourceTag.article:n=this.articleResource(c);break;case s.ResourceTag.document:n=this.documentResource(c);break;case s.ResourceTag.documentEmbed:n=this.documentEmbedResource(c);break;case s.ResourceTag.documentLink:n=this.documentLinkResource(c);break;case s.ResourceTag.documentDownload:n=this.documentDownloadResource(c);break;case s.ResourceTag.appLink:n=this.appLinkResource(c);break;case s.ResourceTag.websiteLink:n=this.websiteLinkResource(c)}return n}imageResource(e,t,r){var i,o;const{value:p,src1x:c,src2x:g,src3x:d,src4x:f,width:m,height:T,alt:h,zoomDisabled:b,license:B,copyright:v,showInIndex:C,caption:P,search:x}=t;let k=!1;n.Config.isOfBitType(e,[a.BitType.imageSeparator,a.BitType.pageBanner,a.BitType.imagesLogoGrave,a.BitType.prototypeImages])&&(k=!0);const K={type:s.ResourceTag.image,__typeAlias:null!=r?r:s.ResourceTag.image,image:{format:null!==(i=u.UrlUtils.fileExtensionFromUrl(p))&&void 0!==i?i:void 0,provider:null!==(o=u.UrlUtils.domainFromUrl(p))&&void 0!==o?o:void 0,src:null!=p?p:"",src1x:null!=c?c:void 0,src2x:null!=g?g:void 0,src3x:null!=d?d:void 0,src4x:null!=f?f:void 0,width:null!=m?m:null,height:null!=T?T:null,alt:null!=h?h:"",zoomDisabled:null!=b?b:k,license:null!=B?B:"",copyright:null!=v?v:"",showInIndex:null!=C&&C,caption:this.handleJsonText(P),search:null!=x?x:void 0}};return l.ObjectUtils.removeUnwantedProperties(K.image,{ignoreFalse:["zoomDisabled","showInIndex"],ignoreEmptyArrays:["caption"],ignoreUndefined:["width","height"],ignoreEmptyString:["src","alt","license","copyright"]}),y.NodeValidator.validateResource(K)}imageLinkResource(e){var t,r;const{value:i,src1x:o,src2x:n,src3x:a,src4x:p,width:c,height:g,alt:d,zoomDisabled:f,license:m,copyright:T,showInIndex:h,caption:b,search:B}=e,v={type:s.ResourceTag.imageLink,__typeAlias:s.ResourceTag.imageLink,imageLink:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",src1x:null!=o?o:void 0,src2x:null!=n?n:void 0,src3x:null!=a?a:void 0,src4x:null!=p?p:void 0,width:null!=c?c:null,height:null!=g?g:null,alt:null!=d?d:"",zoomDisabled:null!=f&&f,license:null!=m?m:"",copyright:null!=T?T:"",showInIndex:null!=h&&h,caption:this.handleJsonText(b),search:null!=B?B:void 0}};return l.ObjectUtils.removeUnwantedProperties(v.imageLink,{ignoreFalse:["zoomDisabled","showInIndex"],ignoreEmptyArrays:["caption"],ignoreUndefined:["width","height"],ignoreEmptyString:["url","alt","license","copyright"]}),y.NodeValidator.validateResource(v)}audioResource(e){var t,r;const{value:i,duration:o,mute:n,autoplay:a,license:p,copyright:c,showInIndex:g,caption:d,search:f}=e,m={type:s.ResourceTag.audio,__typeAlias:s.ResourceTag.audio,audio:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,src:null!=i?i:"",duration:null!=o?o:void 0,mute:null!=n?n:void 0,autoplay:null!=a?a:void 0,license:null!=p?p:"",copyright:null!=c?c:"",showInIndex:null!=g&&g,caption:this.handleJsonText(d),search:null!=f?f:void 0}};return l.ObjectUtils.removeUnwantedProperties(m.audio,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["src","alt","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(m)}audioEmbedResource(e){var t,r;const{value:i,duration:o,mute:n,autoplay:a,license:p,copyright:c,showInIndex:g,caption:d,search:f}=e,m={type:s.ResourceTag.audioEmbed,__typeAlias:s.ResourceTag.audioEmbed,audioEmbed:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,src:null!=i?i:"",duration:null!=o?o:void 0,mute:null!=n?n:void 0,autoplay:null!=a?a:void 0,license:null!=p?p:"",copyright:null!=c?c:"",showInIndex:null!=g&&g,caption:this.handleJsonText(d),search:null!=f?f:void 0}};return l.ObjectUtils.removeUnwantedProperties(m.audioEmbed,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["src","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(m)}audioLinkResource(e){var t,r;const{value:i,duration:o,mute:n,autoplay:a,license:p,copyright:c,showInIndex:g,caption:d,search:f}=e,m={type:s.ResourceTag.audioLink,__typeAlias:s.ResourceTag.audioLink,audioLink:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",duration:null!=o?o:void 0,mute:null!=n?n:void 0,autoplay:null!=a?a:void 0,license:null!=p?p:"",copyright:null!=c?c:"",showInIndex:null!=g&&g,caption:this.handleJsonText(d),search:null!=f?f:void 0}};return l.ObjectUtils.removeUnwantedProperties(m.audioLink,{ignoreEmptyString:["url"]}),y.NodeValidator.validateResource(m)}videoResource(e){var t,r;const{value:i,width:o,height:n,duration:a,mute:p,autoplay:c,allowSubtitles:g,showSubtitles:d,alt:f,posterImage:m,thumbnails:T,license:h,copyright:b,showInIndex:B,caption:v,search:C}=e,P={type:s.ResourceTag.video,__typeAlias:s.ResourceTag.video,video:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,src:null!=i?i:"",width:null!=o?o:null,height:null!=n?n:null,duration:null!=a?a:void 0,mute:null!=p?p:void 0,autoplay:null!=c?c:void 0,allowSubtitles:null!=g?g:void 0,showSubtitles:null!=d?d:void 0,alt:null!=f?f:"",posterImage:null!=m?m:void 0,thumbnails:null!=T?T:void 0,license:null!=h?h:"",copyright:null!=b?b:"",showInIndex:null!=B&&B,caption:this.handleJsonText(v),search:null!=C?C:void 0}};return l.ObjectUtils.removeUnwantedProperties(P.video,{ignoreEmptyArrays:["caption"],ignoreUndefined:["width","height"],ignoreEmptyString:["src","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(P)}videoEmbedResource(e){var t,r;const{value:i,width:o,height:n,duration:a,mute:p,autoplay:c,allowSubtitles:g,showSubtitles:d,alt:f,posterImage:m,thumbnails:T,license:h,copyright:b,showInIndex:B,caption:v,search:C}=e,P={type:s.ResourceTag.videoEmbed,__typeAlias:s.ResourceTag.videoEmbed,videoEmbed:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",width:null!=o?o:null,height:null!=n?n:null,duration:null!=a?a:void 0,mute:null!=p?p:void 0,autoplay:null!=c?c:void 0,allowSubtitles:null!=g?g:void 0,showSubtitles:null!=d?d:void 0,alt:null!=f?f:"",posterImage:null!=m?m:void 0,thumbnails:null!=T?T:void 0,license:null!=h?h:"",copyright:null!=b?b:"",showInIndex:null!=B&&B,caption:this.handleJsonText(v),search:null!=C?C:void 0}};return l.ObjectUtils.removeUnwantedProperties(P.videoEmbed,{ignoreEmptyArrays:["caption"],ignoreUndefined:["width","height"],ignoreEmptyString:["url","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(P)}videoLinkResource(e){var t,r;const{value:i,width:o,height:n,duration:a,mute:p,autoplay:c,allowSubtitles:g,showSubtitles:d,alt:f,posterImage:m,thumbnails:T,license:h,copyright:b,showInIndex:B,caption:v,search:C}=e,P={type:s.ResourceTag.videoLink,__typeAlias:s.ResourceTag.videoLink,videoLink:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",width:null!=o?o:null,height:null!=n?n:null,duration:null!=a?a:void 0,mute:null!=p?p:void 0,autoplay:null!=c?c:void 0,allowSubtitles:null!=g?g:void 0,showSubtitles:null!=d?d:void 0,alt:null!=f?f:"",posterImage:null!=m?m:void 0,thumbnails:null!=T?T:void 0,license:null!=h?h:"",copyright:null!=b?b:"",showInIndex:null!=B&&B,caption:this.handleJsonText(v),search:null!=C?C:void 0}};return l.ObjectUtils.removeUnwantedProperties(P.videoLink,{ignoreEmptyArrays:["caption"],ignoreUndefined:["width","height"],ignoreEmptyString:["url","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(P)}stillImageFilmEmbedResource(e){var t,r;const{value:i,width:o,height:n,duration:a,mute:p,autoplay:c,allowSubtitles:g,showSubtitles:d,alt:f,posterImage:m,thumbnails:T,license:h,copyright:b,showInIndex:B,caption:v,search:C}=e,P={type:s.ResourceTag.stillImageFilmEmbed,__typeAlias:s.ResourceTag.stillImageFilmEmbed,stillImageFilmEmbed:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",width:null!=o?o:null,height:null!=n?n:null,duration:null!=a?a:void 0,mute:null!=p?p:void 0,autoplay:null!=c?c:void 0,allowSubtitles:null!=g?g:void 0,showSubtitles:null!=d?d:void 0,alt:null!=f?f:"",posterImage:null!=m?m:void 0,thumbnails:null!=T?T:void 0,license:null!=h?h:"",copyright:null!=b?b:"",showInIndex:null!=B&&B,caption:this.handleJsonText(v),search:null!=C?C:void 0}};return l.ObjectUtils.removeUnwantedProperties(P.stillImageFilmEmbed,{ignoreEmptyArrays:["caption"],ignoreUndefined:["width","height"],ignoreEmptyString:["url","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(P)}stillImageFilmLinkResource(e){var t,r;const{value:i,width:o,height:n,duration:a,mute:p,autoplay:c,allowSubtitles:g,showSubtitles:d,alt:f,posterImage:m,thumbnails:T,license:h,copyright:b,showInIndex:B,caption:v,search:C}=e,P={type:s.ResourceTag.stillImageFilmLink,__typeAlias:s.ResourceTag.stillImageFilmLink,stillImageFilmLink:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",width:null!=o?o:null,height:null!=n?n:null,duration:null!=a?a:void 0,mute:null!=p?p:void 0,autoplay:null!=c?c:void 0,allowSubtitles:null!=g?g:void 0,showSubtitles:null!=d?d:void 0,alt:null!=f?f:"",posterImage:null!=m?m:void 0,thumbnails:null!=T?T:void 0,license:null!=h?h:"",copyright:null!=b?b:"",showInIndex:null!=B&&B,caption:this.handleJsonText(v),search:null!=C?C:void 0}};return l.ObjectUtils.removeUnwantedProperties(P.stillImageFilmLink,{ignoreEmptyArrays:["caption"],ignoreUndefined:["width","height"],ignoreEmptyString:["url","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(P)}articleResource(e){var t,r;const{value:i,license:o,copyright:n,showInIndex:a,caption:p,search:c}=e,g={type:s.ResourceTag.article,__typeAlias:s.ResourceTag.article,article:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,body:null!=i?i:"",license:null!=o?o:"",copyright:null!=n?n:"",showInIndex:null!=a&&a,caption:this.handleJsonText(p),search:null!=c?c:void 0}};return l.ObjectUtils.removeUnwantedProperties(g.article,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["body","alt","license","copyright"]}),y.NodeValidator.validateResource(g)}documentResource(e){var t,r;const{value:i,license:o,copyright:n,showInIndex:a,caption:p,search:c}=e,g={type:s.ResourceTag.document,__typeAlias:s.ResourceTag.document,document:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",license:null!=o?o:"",copyright:null!=n?n:"",showInIndex:null!=a&&a,caption:this.handleJsonText(p),search:null!=c?c:void 0}};return l.ObjectUtils.removeUnwantedProperties(g.document,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["url","alt","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(g)}documentEmbedResource(e){var t,r;const{value:i,license:o,copyright:n,showInIndex:a,caption:p,search:c}=e,g={type:s.ResourceTag.documentEmbed,__typeAlias:s.ResourceTag.documentEmbed,documentEmbed:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",license:null!=o?o:"",copyright:null!=n?n:"",showInIndex:null!=a&&a,caption:this.handleJsonText(p),search:null!=c?c:void 0}};return l.ObjectUtils.removeUnwantedProperties(g.documentEmbed,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["url","alt","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(g)}documentLinkResource(e){var t,r;const{value:i,license:o,copyright:n,showInIndex:a,caption:p,search:c}=e,g={type:s.ResourceTag.documentLink,__typeAlias:s.ResourceTag.documentLink,documentLink:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",license:null!=o?o:"",copyright:null!=n?n:"",showInIndex:null!=a&&a,caption:this.handleJsonText(p),search:null!=c?c:void 0}};return l.ObjectUtils.removeUnwantedProperties(g.documentLink,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["url","alt","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(g)}documentDownloadResource(e){var t,r;const{value:i,license:o,copyright:n,showInIndex:a,caption:p,search:c}=e,g={type:s.ResourceTag.documentDownload,__typeAlias:s.ResourceTag.documentDownload,documentDownload:{format:null!==(t=u.UrlUtils.fileExtensionFromUrl(i))&&void 0!==t?t:void 0,provider:null!==(r=u.UrlUtils.domainFromUrl(i))&&void 0!==r?r:void 0,url:null!=i?i:"",license:null!=o?o:"",copyright:null!=n?n:"",showInIndex:null!=a&&a,caption:this.handleJsonText(p),search:null!=c?c:void 0}};return l.ObjectUtils.removeUnwantedProperties(g.documentDownload,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["url","alt","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(g)}appLinkResource(e){const{value:t,license:r,copyright:i,showInIndex:o,caption:n,search:a}=e,p={type:s.ResourceTag.appLink,__typeAlias:s.ResourceTag.appLink,appLink:{provider:void 0,url:null!=t?t:"",license:null!=r?r:"",copyright:null!=i?i:"",showInIndex:null!=o&&o,caption:this.handleJsonText(n),search:null!=a?a:void 0}};return l.ObjectUtils.removeUnwantedProperties(p.appLink,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["url","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(p)}websiteLinkResource(e){const{value:t,license:r,copyright:i,showInIndex:o,caption:n,search:a}=e,p={type:s.ResourceTag.websiteLink,__typeAlias:s.ResourceTag.websiteLink,websiteLink:{provider:void 0,url:null!=t?t:"",license:null!=r?r:"",copyright:null!=i?i:"",showInIndex:null!=o&&o,caption:this.handleJsonText(n),search:null!=a?a:void 0}};return l.ObjectUtils.removeUnwantedProperties(p.websiteLink,{ignoreEmptyArrays:["caption"],ignoreEmptyString:["url","alt","license","copyright"],ignoreFalse:["showInIndex"]}),y.NodeValidator.validateResource(p)}}t.ResourceBuilder=g},4564:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValidator=void 0;const i=r(6149),o=r(9681);const n=new class{validateBit(e){if(!e)return e;return e}validateCardBit(e){if(!e)return e;return e}validateResource(e){if(!e)return;let t=e,r=!1;switch(e.type){case i.ResourceTag.image:r=!!e.image.src;break;case i.ResourceTag.imageLink:r=!!e.imageLink.url;break;case i.ResourceTag.audio:r=!!e.audio.src;break;case i.ResourceTag.audioEmbed:r=!!e.audioEmbed.src;break;case i.ResourceTag.audioLink:r=!!e.audioLink.url;break;case i.ResourceTag.video:r=!!e.video.src;break;case i.ResourceTag.videoEmbed:r=!!e.videoEmbed.url;break;case i.ResourceTag.videoLink:r=!!e.videoLink.url;break;case i.ResourceTag.stillImageFilm:r=!!e.image.src&&!!e.audio.src;break;case i.ResourceTag.stillImageFilmEmbed:r=!!e.stillImageFilmEmbed.url;break;case i.ResourceTag.stillImageFilmLink:r=!!e.stillImageFilmLink.url;break;case i.ResourceTag.article:r=!!e.article.body;break;case i.ResourceTag.document:r=!!e.document.url;break;case i.ResourceTag.documentEmbed:r=!!e.documentEmbed.url;break;case i.ResourceTag.documentLink:r=!!e.documentLink.url;break;case i.ResourceTag.documentDownload:r=!!e.documentDownload.url;break;case i.ResourceTag.appLink:r=!!e.appLink.url;break;case i.ResourceTag.websiteLink:r=!!e.websiteLink.url;break;default:r=!1}return r||e.type&&(t={type:e.type}),t}isRequired(e,t){if(!e)throw new Error(`${t} is required but is not set`)}isOneOfRequired(e,t){if(Array.isArray(e))for(const t of e)if(t)return;throw new Error(`One of '${t.join(", ")}' is required but none is set`)}isString(e,t){if(!o.StringUtils.isString(e))throw new Error(`${t} is required to be a string`)}isNonEmptyString(e,t){if(!o.StringUtils.isString(e)||""===e)throw new Error(`${t} is required to be a non-empty string`)}isStringOrBoolean(e,t){if(!o.StringUtils.isString(e)&&!0!==e&&!1!==e)throw new Error(`${t} is required to be a string or a boolean`)}isNonEmptyStringOrBoolean(e,t){if((!o.StringUtils.isString(e)||""===e)&&!0!==e&&!1!==e)throw new Error(`${t} is required to be a non-empty string or a boolean`)}isArray(e,t){if(!Array.isArray(e))throw new Error(`${t} is required to be a array`)}isNonEmptyArray(e,t){if(!(Array.isArray(e)&&e.length>0))throw new Error(`${t} is required to be a non-empty array`)}isNumber(e,t){if(!Number.isFinite(e))throw new Error(`${t} is required to be a number`)}isBoolean(e,t){if(!0!==e&&!1!==e)throw new Error(`${t} is required to be a boolean`)}isStringOrNumberOrBooleanOrNullOrUndefined(e,t){if(!o.StringUtils.isString(e)&&!Number.isFinite(e)&&!0!==e&&!1!==e&&null!=e)throw new Error(`${t} is required to be a string or a number or a boolean or null or undefined`)}};t.NodeValidator=n},6772:function(e,t){var r=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(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((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.StringWriter=void 0;t.StringWriter=class{constructor(){this._string="",this.endOfLineString="\n",this.lastWrite=""}get isSync(){return!0}getString(){return this._string}open(){return r(this,void 0,void 0,(function*(){return this.openSync(),Promise.resolve()}))}close(){return r(this,void 0,void 0,(function*(){try{this.closeSync()}catch(e){return Promise.reject(e)}return Promise.resolve()}))}openSync(){this._buffer=[],this._string=""}closeSync(){if(!this._buffer)throw new Error("open() or openSync() never called");this._string=this._buffer.join(""),this._buffer=[]}writeLine(e){return this._buffer?(null!=e?(this._buffer.push(e+this.endOfLineString),this.lastWrite=e+this.endOfLineString):(this._buffer.push(this.endOfLineString),this.lastWrite=this.endOfLineString),this):this}writeLines(e,t){if(!this._buffer)return this;if(!e)return this;let r="";for(let i=0,o=e.length;i<o;i++){const n=e[i];this._buffer.push(n),r+=n,t&&i<o-1&&(this._buffer.push(t),r+=t),this._buffer.push(this.endOfLineString),r+=this.endOfLineString}return this.lastWrite=r,this}write(e){return this._buffer?(null==e||(e&&(this.lastWrite=e),this._buffer.push(e)),this):this}writeWhiteSpace(){return this.write(" "),this}getLastWrite(){return this.lastWrite}}},7735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Breakscape=void 0;const i=r(385),o=r(9681),n=/([*`_!=])(?=\1)/,a=/(\[)([.@#▼►%!?+\-$_=&])/,s=/^(~)(~~~)[ \t]*$/,l=/^(\$)(\$\$\$)[ \t]*$/,p=/(\^*])/,u=/(\^+)/,c=`${n.source}|${a.source}|${s.source}|${l.source}|${p.source}|${u.source}`,y=`${/^([*`_!=])/.source}|${/([*`_!=\\[])$/.source}`,g=new RegExp(`${n.source}|${/^(\|)(code[\s]*|code:|image:|[\s]*$)/.source}|${/^([#]{1,3})([^\S\r\n]+)/.source}|${/^(•)([0-9]+[iI]*|[a-zA-Z]{1}|_|\+|-|)([^\S\r\n]+)/.source}|${a.source}|${s.source}|${l.source}|${p.source}|${u.source}`,"gm"),d=new RegExp(c,"gm"),f=new RegExp("^(\\[)(\\^*)(\\.)","gm"),m=new RegExp(y,"g"),T=new RegExp("\\^([\\^]*)","gm"),h=new RegExp("^(\\[)\\^(\\^*)(\\.)","gm"),b=new RegExp("^(\\||•|#)","gm"),B={textFormat:i.TextFormat.bitmarkMinusMinus};const v=new class{constructor(){this.EMPTY_STRING=""}breakscape(e,t){if(null==e)return e;const r=Object.assign({},B,t),n=e=>{if(!e)return e;let t=f,o="$1^$2$3";return r.textFormat===i.TextFormat.bitmarkMinusMinus?(t=d,o="$1$2$4$6^$3$5$7$8$9"):r.textFormat===i.TextFormat.bitmarkPlusPlus&&(t=g,o="$1$2$4$6$9$11$13$16^$3$5$7$8$10$12$14$15"),e=e.replace(t,o),r.textFormat!==i.TextFormat.bitmarkMinusMinus&&r.textFormat!==i.TextFormat.bitmarkPlusPlus||(e=e.replace(m,"$2^$1")),e};if(Array.isArray(e)){const t=r.modifyArray?e:[e.length];for(let r=0,i=e.length;r<i;r++){const i=e[r];o.StringUtils.isString(i)&&(t[r]=n(i))}e=t}else o.StringUtils.isString(e)&&(e=n(e));return e}unbreakscape(e,t){if(null==e)return e;const r=Object.assign({},B,t),n=e=>{if(!e)return e;let t=h,o="$1$2$3";return r.textFormat!==i.TextFormat.bitmarkMinusMinus&&r.textFormat!==i.TextFormat.bitmarkPlusPlus||(t=T,o="$1"),e=e.replace(t,o)};if(Array.isArray(e)){const t=r.modifyArray?e:[];for(let r=0,i=e.length;r<i;r++){const i=e[r];o.StringUtils.isString(i)?t[r]=n(i):t[r]=i}e=t}else o.StringUtils.isString(e)&&(e=n(e));return e}breakscapeCode(e,t){if(null==e)return e;const r=Object.assign({},B,t),i=e=>e?e.replace(b,"$1^"):e;if(Array.isArray(e)){const t=r.modifyArray?e:[e.length];for(let t=0,r=e.length;t<r;t++){const r=e[t];o.StringUtils.isString(r)&&(e[t]=i(r))}e=t}else o.StringUtils.isString(e)&&(e=i(e));return e}concatenate(e,t){return e+t}};t.Breakscape=v},2028:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Config=void 0;const i=r(3619),o=r(9600),n=r(1457),a=r(6915),s=r(5512),l=r(5854),p=r(385),u=r(955),c=r(4445),y=r(6853),g=r(5837),d=r(9916);const f=new class{constructor(){this.bitLevelMin=1,this.bitLevelMax=7,this.bitCache=new Map,this.comboResourcesCache=new Map}getBitType(e){var t;return(null==e?void 0:e.startsWith("|"))&&(e=e.substring(1)),null!==(t=l.BitType.fromValue(e))&&void 0!==t?t:l.BitType._error}isOfBitType(e,t){if(!e)return!1;if(e===t)return!0;const r=this.getBitConfig(e);if(!r)return!1;if(Array.isArray(t)){for(const e of t)if(r.inheritedBitTypesSet.has(e))return!0;return!1}return r.inheritedBitTypesSet.has(t)}isBitTypeCommented(e){return!!(null==e?void 0:e.startsWith("|"))}getBitConfig(e){var t;let r=this.bitCache.get(e);if(!r){const o=()=>{throw new Error(`No config found for bit: ${e}`)},n=[],a=[];let s=e;for(;s;){const e=y.BITS[s];e||o(),n.push(s),a.push(e),s=e.baseBitType}a.reverse();const l=a.reduce(((e,t)=>e=u.ObjectUtils.deepMerge(e,t)),{}),{since:g,textFormatDefault:d,tags:f,cardSet:m,deprecated:T,bodyAllowed:h,bodyRequired:b,footerAllowed:B,footerRequired:v,resourceAttachmentAllowed:C,rootExampleType:P}=l,x=this.getAllResourcesTagsWithZeroCounts(),k=c.ConfigHydrator.hydrateTagsConfig(null!=f?f:[]),K=c.ConfigHydrator.hydrateCardSetConfig(m),w=null===(t=k.info)||void 0===t?void 0:t.comboResourceType,S=Object.assign({},k.tags);for(const[e,t]of Object.entries(x))S[e]||(S[e]=t);r=new i.BitConfig(g,e,n,null!=d?d:p.TextFormat.bitmarkMinusMinus,S,K,T,h,b,B,v,C,P,w),this.bitCache.set(e,r)}return r}getRawPropertiesConfig(){return d.PROPERTIES}getTagConfigForTag(e,t){if(e)for(const[,r]of Object.entries(e))if(r.tag===t)return r}getTagsConfigForCardSet(e,t,r){const i=this.getBitConfig(e);if(!i)return;const o=i.cardSet;if(!o)return;t=Math.min(t,o.variants.length-1);const n=o.variants[t];return n[r=Math.min(r,n.length-1)].tags}getBitResourcesConfig(e,t){var r;let i={};const a=new Map,l=this.getBitConfig(e),p={};for(const[e,t]of Object.entries(l.tags))t.type===s.BitTagType.resource&&(p[e]=t);const u=null!==(r=l.comboResourceType)&&void 0!==r?r:l.resourceAttachmentAllowed&&t;if(u){const e=new Map,r=this.getComboResource(u);if(r){const t=Object.values(r).filter((e=>e.type===s.BitTagType.resource));t.map((e=>e.tag)).forEach((r=>{const i=t.find((e=>e.tag===r));i&&e.set(r,i)}));const i=this.getComboResourceTagTypes(u);i&&i.length>0&&a.set(u,i)}if(t)for(const[t,r]of Object.entries(p)){const n=u===r.tag,a=!!e&&e.has(r.tag);if(n){const e=new o.ResourceTagConfig(r.configKey,r.tag,1,1,r.chain,r.jsonKey,r.deprecated);i[t]=e}else if(a){if(e){const o=e.get(r.tag);o&&(i[t]=o)}}else i[t]=r}else i=p}else i=p;return new n.ResourcesConfig(i,l.resourceAttachmentAllowed,t,a)}getComboResourceTagTypes(e){const t=this.getComboResource(e);if(t){return Object.values(t).filter((e=>e.type===s.BitTagType.resource)).map((e=>e.tag))}}getComboResource(e){if(!e)return;let t=this.comboResourcesCache.get(e);return t||(t={},Object.values(g.GROUPS).filter((t=>t.type===a.GroupConfigType.comboResource&&t.comboResourceType===e)).forEach((e=>{t=Object.assign(Object.assign({},t),c.ConfigHydrator.hydrateTagsConfig(e.tags).tags)})),0===Object.keys(t).length&&(t=void 0),this.comboResourcesCache.set(e,t)),t}getAllResourcesTagsWithZeroCounts(){let e=this.allResourcesCache;if(!e){e={},Object.values(g.GROUPS).filter((e=>e.type===a.GroupConfigType.resource)).forEach((t=>{e=Object.assign(Object.assign({},e),c.ConfigHydrator.hydrateTagsConfig(t.tags).tags)}));for(const t of Object.values(e)){const e=t;e.maxCount=0,e.minCount=0}this.allResourcesCache=e}return e}};t.Config=f},4445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigHydrator=void 0;const i=r(5814),o=r(9371),n=r(9788),a=r(1519),s=r(9600),l=r(5591),p=r(7112),u=r(9888),c=r(5051),y=r(7797),g=r(5512),d=r(5554),f=r(5837),m=r(9916),T=r(168),h=r(9248);const b=new class{hydrateTagsConfig(e){var t;const r={tags:{}};for(const i of e){let e;switch(i.type){case g.BitTagType.tag:e=this.hydrateTagConfig(i);break;case g.BitTagType.property:e=this.hydratePropertyTagConfig(i);break;case g.BitTagType.resource:e=this.hydrateResourceTagConfig(i);break;case g.BitTagType.group:e=this.hydrateTagGroupConfig(i)}e&&(r.tags=Object.assign(Object.assign({},r.tags),e.tags),r.info=Object.assign(null!==(t=r.info)&&void 0!==t?t:{},e.info))}return r}hydrateCardSetConfig(e){if(!e)return;const t=d.CARDS[e];if(!t)throw new Error(`No config found for card set config key '${e}'`);const r=[];for(const e of t.variants){const t=[];for(const r of e){const e=this.hydrateCardVariantConfig(r);t.push(e)}r.push(t)}return new i.CardSetConfig(e,r)}hydrateTagConfig(e){const{configKey:t,maxCount:r,minCount:i,chain:o}=e,a=y.TagConfigKey.fromKey(t)||l.ConfigKey._unknown,s=h.TAGS[a];if(!s)throw new Error(`No config found for tag config key '${t}'`);const{tag:p,deprecated:u}=s;let c;o&&(c=this.hydrateTagsConfig(o).tags);const g=new n.MarkupTagConfig(a,p,null!=r?r:1,null!=i?i:0,c,u);return{tags:{[a]:g}}}hydratePropertyTagConfig(e){const{configKey:t,maxCount:r,minCount:i,chain:o}=e,n=u.PropertyConfigKey.fromKey(t)||l.ConfigKey._unknown,s=m.PROPERTIES[n];if(!s)throw new Error(`No config found for property config key '${t}'`);const{tag:p,deprecated:c,single:y,format:g,defaultValue:d,jsonKey:f,astKey:T}=s;let h;o&&(h=this.hydrateTagsConfig(o).tags);const b=new a.PropertyTagConfig(n,p,null!=r?r:1,null!=i?i:0,h,f,T,y,g,d,c);return{tags:{[n]:b}}}hydrateResourceTagConfig(e){const{configKey:t,maxCount:r,minCount:i,chain:o}=e,n=c.ResourceConfigKey.fromKey(t)||l.ConfigKey._unknown,a=T.RESOURCES[n];if(!a)throw new Error(`No config found for resource config key '${t}'`);const{tag:p,deprecated:u,jsonKey:y}=a;let g;o&&(g=this.hydrateTagsConfig(o).tags);const d=new s.ResourceTagConfig(n,p,null!=r?r:1,null!=i?i:0,g,y,u);return{tags:{[n]:d}}}hydrateTagGroupConfig(e){var t,r;const{configKey:i}=e,o=p.GroupConfigKey.fromKey(i)||l.ConfigKey._unknown,n=f.GROUPS[o];if(!n)throw new Error(`No config found for group config key '${i}'`);const{tags:a}=n,s=this.hydrateTagsConfig(a).tags,u=Object.values(s);if(u.length>0){const i=u[0],o=i;o.maxCount=null!==(t=e.maxCount)&&void 0!==t?t:i.maxCount,o.minCount=null!==(r=e.minCount)&&void 0!==r?r:i.minCount}return{tags:s,info:{comboResourceType:n.comboResourceType}}}hydrateCardVariantConfig(e){const{tags:t,bodyAllowed:r,bodyRequired:i,repeatCount:n}=e,a=this.hydrateTagsConfig(t);return new o.CardVariantConfig(a.tags,r,i,n)}};t.ConfigHydrator=b},6853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BITS=void 0;const i=r(8199),o=r(7112),n=r(9888),a=r(7797),s=r(5512),l=r(5854),p=r(3778),u=r(363),c=r(385),y={[l.BitType._error]:{since:"1.3.0",tags:[]},[l.BitType._comment]:{since:"1.4.12",tags:[]},[l.BitType.appFlashcards]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.flashcardSet,maxCount:p.Count.infinity}],rootExampleType:u.ExampleType.string},[l.BitType.appFlashcardsQuiz]:{since:"1.3.0",baseBitType:l.BitType.appFlashcards},[l.BitType.appFlashcardsLearn]:{since:"1.3.0",baseBitType:l.BitType.appFlashcards},[l.BitType.appLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAppLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.article]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title}]},[l.BitType.articleAlt]:{since:"1.15.0",baseBitType:l.BitType.article},[l.BitType.articleResponsive]:{since:"1.21.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.imageFirst}]},[l.BitType.articleResponsiveAlt]:{since:"2.0.0",baseBitType:l.BitType.articleResponsive},[l.BitType.standardArticleNormative]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.standardArticleNonNormative]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.smartStandardArticleNormative]:{since:"1.28.0",baseBitType:l.BitType.standardArticleNormative},[l.BitType.smartStandardArticleNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardArticleNonNormative},[l.BitType.smartStandardArticleNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardArticleNormative},[l.BitType.smartStandardArticleNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardArticleNonNormative},[l.BitType.statement]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.pageArticle]:{since:"1.15.0",baseBitType:l.BitType.article},[l.BitType.pageArticleAlt]:{since:"1.15.0",baseBitType:l.BitType.article},[l.BitType.pageArticleResponsive]:{since:"1.21.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.imageFirst}]},[l.BitType.buttonCopyText]:{since:"1.4.3",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.callToAction]:{since:"1.15.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.callToActionUrl,minCount:1}]},[l.BitType.callToActionSubscribe]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionContact]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionJoin]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionMail]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionLearnMore]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionSeeMore]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionWatch]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionStartNow]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionGetOffer]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionBookNow]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionShopNow]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionGetNow]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionDownload]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.callToActionCreateAccount]:{since:"1.15.0",baseBitType:l.BitType.callToAction},[l.BitType.appBitmarkFromJavascript]:{since:"1.4.5",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.maxCreatedBits}],textFormatDefault:c.TextFormat.text},[l.BitType.appBitmarkFromEditor]:{since:"1.4.5",baseBitType:l.BitType.appBitmarkFromJavascript},[l.BitType.articleEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceArticleEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.articleLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceArticleLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.audio]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAudio,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.audioEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAudioEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.audioLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAudioLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.bitAlias]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference},{type:s.BitTagType.tag,configKey:a.TagConfigKey.anchor}]},[l.BitType.book]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_bookCommon}]},[l.BitType.bookAcknowledgements]:{since:"1.17.0",baseBitType:l.BitType.book},[l.BitType.bookAddendum]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookAfterword]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookAppendix]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookArticle]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookAutherBio]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookBibliography]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookComingSoon]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookConclusion]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookCopyright]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookCopyrightPermissions]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookDedication]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookEndnotes]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookEpigraph]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookEpilogue]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookForword]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookFrontispiece]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookImprint]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookIncitingIncident]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookIntroduction]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookListOfContributors]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookNotes]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookPostscript]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookPreface]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookPrologue]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookReadMore]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookReferenceList]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookRequestForABookReview]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookSummary]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookTeaser]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookTitle]:{since:"1.3.0",baseBitType:l.BitType.book},[l.BitType.bookAlias]:{since:"1.4.3",baseBitType:l.BitType.book,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.bookAlias,maxCount:p.Count.infinity}]},[l.BitType.bookClose]:{since:"1.18.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.botActionResponse]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:i.CardSetConfigKey._botActionResponses},[l.BitType.botActionSend]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.date}]},[l.BitType.browserImage]:{since:"1.3.0",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.focusX},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.focusY}]},[l.BitType.card1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.question1]:{since:"1.3.0",baseBitType:l.BitType.card1},[l.BitType.survey1]:{since:"1.3.0",baseBitType:l.BitType.card1},[l.BitType.surveyAnonymous1]:{since:"1.3.0",baseBitType:l.BitType.card1},[l.BitType.chapter]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.anchor},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.toc},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.progress}]},[l.BitType.clozeAndMultipleChoiceText]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_gap},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.coachCallToActionClozeAndMultipleChoiceText]:{since:"1.3.0",baseBitType:l.BitType.clozeAndMultipleChoiceText},[l.BitType.cloze]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.quizCountItems},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.quizStrikethroughSolutions},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.quizStrikethroughSolutions},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.additionalSolutions,maxCount:p.Count.infinity},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_gap}]},[l.BitType.clozeInstructionGrouped]:{since:"1.3.0",baseBitType:l.BitType.cloze},[l.BitType.clozeSolutionGrouped]:{since:"1.3.0",baseBitType:l.BitType.cloze},[l.BitType.gapText]:{since:"1.5.15",baseBitType:l.BitType.cloze},[l.BitType.gapTextInstructionGrouped]:{since:"1.5.15",baseBitType:l.BitType.clozeInstructionGrouped},[l.BitType.coachSelfReflectionCloze]:{since:"1.3.0",baseBitType:l.BitType.cloze},[l.BitType.coachCallToActionCloze]:{since:"1.3.0",baseBitType:l.BitType.cloze},[l.BitType.clozeList]:{since:"1.4.13",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:i.CardSetConfigKey._clozeList},[l.BitType.code]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.computerLanguage},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.codeLineNumbers},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.codeMinimap}],textFormatDefault:c.TextFormat.text},[l.BitType.formula]:{since:"1.35.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],textFormatDefault:c.TextFormat.latex},[l.BitType.appCodeCell]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.appCodeEditor]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.appCodeIde]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.codeRuntime]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.consoleLog]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.output]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.stdout]:{since:"1.4.3",baseBitType:l.BitType.code},[l.BitType.step]:{since:"1.5.1",baseBitType:l.BitType.article},[l.BitType.stepImageScreenshot]:{since:"1.5.1",baseBitType:l.BitType.image},[l.BitType.stepImageScreenshotWithPointer]:{since:"1.5.1",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pointerTop,minCount:1,maxCount:1},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pointerLeft,minCount:1,maxCount:1}]},[l.BitType.milestone]:{since:"1.20.0",baseBitType:l.BitType.step},[l.BitType.conversationLeft1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_person}]},[l.BitType.conversationLeft1Scream]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.conversationLeft1Thought]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.conversationRight1]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.conversationRight1Scream]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.conversationRight1Thought]:{since:"1.3.0",baseBitType:l.BitType.conversationLeft1},[l.BitType.cookPreparation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookStep]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookIngredients]:{since:"1.5.16",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_technicalTerm},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.servings,chain:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.unit},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.unitAbbr},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.decimalPlaces},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.disableCalculation},{type:s.BitTagType.tag,configKey:a.TagConfigKey.hint}]}],cardSet:i.CardSetConfigKey._ingredients},[l.BitType.recipe]:{since:"1.5.24",baseBitType:l.BitType.cookIngredients},[l.BitType.cookRemark]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookVariation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookInsert]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookArrangement]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookPracticeAdvise]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookPlate]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookRecommendation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookPersonalRecommendation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookSideDrink]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookSideDish]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.cookTimer]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.document]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceDocument,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.documentDownload]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceDocumentDownload,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.documentEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceDocumentEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.documentLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceDocumentLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.essay]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.reasonableNumOfChars},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.property_sampleSolution},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.additionalSolutions,maxCount:p.Count.infinity},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.partialAnswer},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.property_reference,maxCount:p.Count.infinity}],rootExampleType:u.ExampleType.string},[l.BitType.coachSelfReflectionEssay]:{since:"1.3.0",baseBitType:l.BitType.essay},[l.BitType.coachCallToActionEssay]:{since:"1.3.0",baseBitType:l.BitType.essay},[l.BitType.example]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title}],rootExampleType:u.ExampleType.string},[l.BitType.exampleAlt]:{since:"1.16.0",baseBitType:l.BitType.example},[l.BitType.standardExampleNormative]:{since:"1.16.0",baseBitType:l.BitType.example},[l.BitType.standardExampleNonNormative]:{since:"1.16.0",baseBitType:l.BitType.example},[l.BitType.smartStandardExampleNormative]:{since:"1.28.0",baseBitType:l.BitType.standardExampleNormative},[l.BitType.smartStandardExampleNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardExampleNonNormative},[l.BitType.smartStandardExampleNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardExampleNormative},[l.BitType.smartStandardExampleNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardExampleNonNormative},[l.BitType.appAiPrompt]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.aiPrompt]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.articleAi]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.articleAttachment]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.assignment]:{since:"1.3.0",baseBitType:l.BitType.essay},[l.BitType.audioTranscript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.bitmarkExample]:{since:"1.3.0",baseBitType:l.BitType.example},[l.BitType.blogArticle]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.bug]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.bugAlt]:{since:"1.16.0",baseBitType:l.BitType.bug},[l.BitType.checklist]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.coachAudioTranscript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.coachCallToActionChecklist]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.coachHomeRules]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.coachVideoTranscript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.correction]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.danger]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.dangerAlt]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.definitionTerm]:{since:"1.34.0",baseBitType:l.BitType.article},[l.BitType.details1]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.details]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.editorial]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.editorNote]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.featured]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.glossaryTerm]:{since:"1.33.0",baseBitType:l.BitType.article},[l.BitType.help]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.helpAlt]:{since:"1.16.0",baseBitType:l.BitType.help},[l.BitType.hint]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.hintAlt]:{since:"1.16.0",baseBitType:l.BitType.hint},[l.BitType.indexTerm]:{since:"1.33.0",baseBitType:l.BitType.article},[l.BitType.info]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.infoAlt]:{since:"1.16.0",baseBitType:l.BitType.info},[l.BitType.langLearningOutcomes]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langEnablingLanguageSkills]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLifeSkills]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langEnglishAroundWorld]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langGoodToKnow]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLearningGoal]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLearningStrategy]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLikeALocal]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langMaterial]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langUsefulPhrases]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLevelDown]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langLevelUp]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langExtraActivity]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langVideoScript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langAudioScript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langVocabulary]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langHomework]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langTeacherNote]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.langTeacherPronunciation]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.list]:{since:"1.22.0",baseBitType:l.BitType.article},[l.BitType.standardList]:{since:"1.22.0",baseBitType:l.BitType.article},[l.BitType.smartStandardList]:{since:"1.28.0",baseBitType:l.BitType.standardList},[l.BitType.smartStandardListCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardList},[l.BitType.message]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.newspaperArticle]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.note]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.noteAlt]:{since:"1.16.0",baseBitType:l.BitType.note},[l.BitType.standardNoteNormative]:{since:"1.16.0",baseBitType:l.BitType.note},[l.BitType.standardNoteNonNormative]:{since:"1.16.0",baseBitType:l.BitType.note},[l.BitType.smartStandardNoteNormative]:{since:"1.28.0",baseBitType:l.BitType.standardNoteNormative},[l.BitType.smartStandardNoteNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardNoteNonNormative},[l.BitType.smartStandardNoteNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardNoteNormative},[l.BitType.smartStandardNoteNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardNoteNonNormative},[l.BitType.noteAi]:{since:"1.3.0",baseBitType:l.BitType.note},[l.BitType.notebookArticle]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.preparationNote]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.releaseNotesSummary]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.remark]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.remarkAlt]:{since:"1.16.0",baseBitType:l.BitType.remark},[l.BitType.standardRemarkNormative]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.standardRemarkNonNormative]:{since:"1.16.0",baseBitType:l.BitType.article},[l.BitType.smartStandardRemarkNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkNormative},[l.BitType.smartStandardRemarkNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkNonNormative},[l.BitType.smartStandardRemarkNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkNormative},[l.BitType.smartStandardRemarkNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkNonNormative},[l.BitType.selfAssessment]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.separator]:{since:"1.4.15",baseBitType:l.BitType.article},[l.BitType.separatorAlt]:{since:"1.16.0",baseBitType:l.BitType.separator},[l.BitType.sticker]:{since:"1.5.28",baseBitType:l.BitType.article},[l.BitType.sideNote]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.summary]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.summaryAi]:{since:"1.3.0",baseBitType:l.BitType.summary},[l.BitType.videoTranscript]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.warning]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.warningAlt]:{since:"1.16.0",baseBitType:l.BitType.warning},[l.BitType.workbookArticle]:{since:"1.3.0",baseBitType:l.BitType.article},[l.BitType.collapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.sideNoteCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.infoCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.remarkCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.warningCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.dangerCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.noteCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.exampleCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.hintCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.bugCollapsible]:{since:"1.21.0",baseBitType:l.BitType.article},[l.BitType.container]:{since:"1.9.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.allowedBit,maxCount:p.Count.infinity}]},[l.BitType.containerWrap]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerNowrap]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerNowrapStretch]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerGroup]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerFolder]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.containerCarousel]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerCards]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerGrid]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerStack]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerSlides]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerGallery]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerScroller]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerTabs]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerAccordionTabs]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerFolderAll]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerBits2]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerCookRecipe]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerNewsArticle]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.containerPreview]:{since:"1.11.0",baseBitType:l.BitType.container},[l.BitType.pageContainer]:{since:"1.9.0",baseBitType:l.BitType.container},[l.BitType.pageContainerWrap]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.pageContainerNowrap]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.pageContainerNowrapStretch]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.pageContainerFolder]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.pageContainerGroup]:{since:"1.9.0",baseBitType:l.BitType.pageContainer},[l.BitType.metalevelExplanation]:{since:"1.10.0",baseBitType:l.BitType.article},[l.BitType.module]:{since:"1.5.26",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.hasBookNavigation},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productId,minCount:1,maxCount:p.Count.infinity},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.duration}]},[l.BitType.moduleProduct]:{since:"1.9.0",baseBitType:l.BitType.module,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productId,minCount:1}]},[l.BitType.exampleList]:{since:"1.4.13",baseBitType:l.BitType.example,cardSet:i.CardSetConfigKey._exampleBitList,rootExampleType:u.ExampleType.string},[l.BitType.extractorPage]:{since:"1.5.17",baseBitType:l.BitType.image},[l.BitType.extractorPageCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPage},[l.BitType.extractorPageWithBlocks]:{since:"1.5.21",baseBitType:l.BitType.image},[l.BitType.extractorPageWithBlocksCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPageWithBlocks},[l.BitType.extractorConfiguration]:{since:"1.7.1",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],textFormatDefault:c.TextFormat.text},[l.BitType.extractorBlock]:{since:"1.5.16",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.blockId},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pageNo},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.x},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.y},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.width},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.height},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.index},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.classification},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.availableClassifications,maxCount:p.Count.infinity},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImage,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.extractorRepeatedText]:{since:"1.5.21",baseBitType:l.BitType.article},[l.BitType.extractorPageNumber]:{since:"1.5.21",baseBitType:l.BitType.article},[l.BitType.extractorPageNumberCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPageNumber},[l.BitType.extractorPageHeader]:{since:"1.5.21",baseBitType:l.BitType.article},[l.BitType.extractorPageHeaderCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPageHeader},[l.BitType.extractorPageFooter]:{since:"1.5.21",baseBitType:l.BitType.article},[l.BitType.extractorPageFooterCollapsible]:{since:"1.30.0",baseBitType:l.BitType.extractorPageFooter},[l.BitType.pageOpenBook]:{since:"1.5.10",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.book,chain:[{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference,maxCount:2}]},{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.pageOpenBookList]:{since:"2.1.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.book,maxCount:p.Count.infinity,chain:[{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference,maxCount:2}]},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.pageSubscribe]:{since:"1.5.10",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.mailingList}]},[l.BitType.assignmentList]:{since:"1.4.13",baseBitType:l.BitType.exampleList},[l.BitType.pageFooter]:{since:"1.4.13",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug}],cardSet:i.CardSetConfigKey._exampleBitList},[l.BitType.definitionList]:{since:"1.34.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:i.CardSetConfigKey._flashcardLike},[l.BitType.flashcard]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:i.CardSetConfigKey._flashcardLike},[l.BitType.flashcard1]:{since:"1.3.0",baseBitType:l.BitType.flashcard},[l.BitType.focusImage]:{since:"1.3.0",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.focusX},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.focusY}]},[l.BitType.highlightText]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.image]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.backgroundWallpaper},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImage,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.appCreateBitsFromImage]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.appGetScreenshot]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.detailsImage]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.figure]:{since:"1.3.0",baseBitType:l.BitType.image,cardSet:i.CardSetConfigKey._captionDefinitionsList},[l.BitType.imageBanner]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageFigure]:{since:"1.3.0",baseBitType:l.BitType.image,cardSet:i.CardSetConfigKey._captionDefinitionsList},[l.BitType.imageFigureAlt]:{since:"1.16.0",baseBitType:l.BitType.imageFigure},[l.BitType.standardImageFigureNormative]:{since:"1.16.0",baseBitType:l.BitType.imageFigure},[l.BitType.standardImageFigureNonNormative]:{since:"1.16.0",baseBitType:l.BitType.imageFigure},[l.BitType.smartStandardImageFigureNormative]:{since:"1.28.0",baseBitType:l.BitType.standardImageFigureNormative},[l.BitType.smartStandardImageFigureNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardImageFigureNonNormative},[l.BitType.smartStandardImageFigureNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardImageFigureNormative},[l.BitType.smartStandardImageFigureNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardImageFigureNonNormative},[l.BitType.imageLandscape]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageMood]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imagePortrait]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imagePrototype]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageSeparator]:{since:"1.4.15",baseBitType:l.BitType.image},[l.BitType.imageSeparatorAlt]:{since:"1.16.0",baseBitType:l.BitType.imageSeparator},[l.BitType.imageScreenshot]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageStyled]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageSuperWide]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.imageZoom]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.langLifeSkillIcon]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.lifeSkillSticker]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.pageBanner]:{since:"1.4.3",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug}]},[l.BitType.pageHero]:{since:"1.11.0",baseBitType:l.BitType.pageBanner},[l.BitType.screenshot]:{since:"1.3.0",deprecated:"1.4.0",baseBitType:l.BitType.image},[l.BitType.tableImage]:{since:"1.5.15",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.caption}]},[l.BitType.tableImageAlt]:{since:"1.16.0",baseBitType:l.BitType.tableImage},[l.BitType.standardTableImageNormative]:{since:"1.16.0",baseBitType:l.BitType.tableImage},[l.BitType.standardTableImageNonNormative]:{since:"1.16.0",baseBitType:l.BitType.tableImage},[l.BitType.standardRemarkTableImageNormative]:{since:"1.17.0",baseBitType:l.BitType.tableImage},[l.BitType.standardRemarkTableImageNonNormative]:{since:"1.17.0",baseBitType:l.BitType.tableImage},[l.BitType.smartStandardTableImageNormative]:{since:"1.28.0",baseBitType:l.BitType.standardTableImageNormative},[l.BitType.smartStandardTableImageNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardTableImageNonNormative},[l.BitType.smartStandardRemarkTableImageNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkTableImageNormative},[l.BitType.smartStandardRemarkTableImageNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkTableImageNonNormative},[l.BitType.smartStandardTableImageNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardTableImageNormative},[l.BitType.smartStandardTableImageNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardTableImageNonNormative},[l.BitType.smartStandardRemarkTableImageNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkTableImageNormative},[l.BitType.smartStandardRemarkTableImageNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkTableImageNonNormative},[l.BitType.imageLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImageLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.imageOnDevice]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImage},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_imageSource}],resourceAttachmentAllowed:!1},[l.BitType.imageResponsive]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImageResponsive}],resourceAttachmentAllowed:!1},[l.BitType.imagesLogoGrave]:{since:"1.5.11",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceImage,minCount:1,maxCount:p.Count.infinity}],resourceAttachmentAllowed:!1},[l.BitType.prototypeImages]:{since:"1.6.1",baseBitType:l.BitType.imagesLogoGrave},[l.BitType.internalLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference}]},[l.BitType.interview]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.reasonableNumOfChars}],cardSet:i.CardSetConfigKey._questions},[l.BitType.interviewInstructionGrouped]:{since:"1.3.0",baseBitType:l.BitType.interview},[l.BitType.botInterview]:{since:"1.3.0",baseBitType:l.BitType.interview},[l.BitType.learningPathBook]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_learningPathCommon}]},[l.BitType.bookLink]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.bookLinkNext]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.bookLinkPrev]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathClassroomEvent]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathClassroomTraining]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathClosing]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathFeedback]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathLearningGoal]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathLti]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathSign]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathStep]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook},[l.BitType.learningPathBotTraining]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.bot}]},[l.BitType.learningPathExternalLink]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.externalLink},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.externalLinkText}]},[l.BitType.learningPathVideoCall]:{since:"1.3.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.videoCallLink}]},[l.BitType.leLearningObjectives]:{since:"1.25.0",baseBitType:l.BitType.learningPathLearningGoal,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leVideoCall]:{since:"1.25.0",baseBitType:l.BitType.learningPathVideoCall,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leClassroomEvent]:{since:"1.25.0",baseBitType:l.BitType.learningPathClassroomEvent,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leCompletion]:{since:"1.25.0",baseBitType:l.BitType.learningPathClosing,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leExternalLink]:{since:"1.25.0",baseBitType:l.BitType.learningPathExternalLink,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leReadBook]:{since:"1.25.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leLearningStep]:{since:"1.25.0",baseBitType:l.BitType.learningPathStep,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.lePreparationTask]:{since:"1.26.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType}]},[l.BitType.leRead]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leTask]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leTodo]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leFollowUpTask]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leFinishingTask]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leAssignment]:{since:"1.27.0",baseBitType:l.BitType.lePreparationTask},[l.BitType.leWatchVideoEmbed]:{since:"1.27.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceVideoEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.leListenAudioEmbed]:{since:"1.27.0",baseBitType:l.BitType.learningPathBook,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.activityType},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceAudioEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.listItem]:{since:"1.22.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.listItemIndent}]},[l.BitType.standardListItem]:{since:"1.22.0",baseBitType:l.BitType.listItem},[l.BitType.smartStandardListItem]:{since:"1.28.0",baseBitType:l.BitType.standardListItem},[l.BitType.smartStandardListItemCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardListItem},[l.BitType.mark]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_markConfig},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_mark}]},[l.BitType.match]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive}],cardSet:i.CardSetConfigKey._matchPairs},[l.BitType.matchAll]:{since:"1.3.0",baseBitType:l.BitType.match},[l.BitType.matchReverse]:{since:"1.3.0",baseBitType:l.BitType.match},[l.BitType.matchAllReverse]:{since:"1.3.0",baseBitType:l.BitType.match},[l.BitType.matchSolutionGrouped]:{since:"1.3.0",baseBitType:l.BitType.match},[l.BitType.matchMatrix]:{since:"1.3.0",baseBitType:l.BitType.match,cardSet:i.CardSetConfigKey._matchMatrix},[l.BitType.matchAudio]:{since:"1.3.0",baseBitType:l.BitType.match,cardSet:i.CardSetConfigKey._matchAudioPairs},[l.BitType.matchPicture]:{since:"1.3.0",baseBitType:l.BitType.match,cardSet:i.CardSetConfigKey._matchImagePairs},[l.BitType.multipleChoice1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.coachSelfReflectionMultipleChoice1]:{since:"1.3.0",baseBitType:l.BitType.multipleChoice1},[l.BitType.multipleChoice]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}],cardSet:i.CardSetConfigKey._quiz},[l.BitType.coachSelfReflectionMultipleChoice]:{since:"1.3.0",baseBitType:l.BitType.multipleChoice},[l.BitType.multipleChoiceText]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.coachCallToActionMultipleChoiceText]:{since:"1.3.0",baseBitType:l.BitType.multipleChoiceText},[l.BitType.coachSelfReflectionMultipleChoiceText]:{since:"1.3.0",baseBitType:l.BitType.multipleChoiceText},[l.BitType.multipleResponse1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}]},[l.BitType.coachSelfReflectionMultipleResponse1]:{since:"1.3.0",baseBitType:l.BitType.multipleResponse1},[l.BitType.multipleResponse]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse}],cardSet:i.CardSetConfigKey._quiz},[l.BitType.coachSelfReflectionMultipleResponse]:{since:"1.3.0",baseBitType:l.BitType.multipleResponse},[l.BitType.page]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.thumbImage}]},[l.BitType.pageCollapsible]:{since:"1.30.0",baseBitType:l.BitType.page},[l.BitType.pageCoverImage]:{since:"1.22.0",baseBitType:l.BitType.page},[l.BitType.pageBuyButton]:{since:"1.4.3",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.content2Buy},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.pageBuyButtonAlt]:{since:"1.31.0",baseBitType:l.BitType.pageBuyButton},[l.BitType.pageBuyButtonPromotion]:{since:"1.5.11",baseBitType:l.BitType.pageBuyButton},[l.BitType.pageSubpage]:{since:"1.6.6",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.page}]},[l.BitType.pageShopInShop]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pageCategory]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pageAcademy]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pagePromotion]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pageSpecial]:{since:"1.6.6",baseBitType:l.BitType.pageSubpage},[l.BitType.pagePerson]:{since:"1.5.16",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_person},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.pageProduct]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.product}]},[l.BitType.pageProductList]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productList,maxCount:p.Count.infinity}]},[l.BitType.pageProductVideo]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productVideo}]},[l.BitType.pageProductVideoList]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productVideoList,maxCount:p.Count.infinity}]},[l.BitType.pageSectionFolder]:{since:"1.4.17",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.slug},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.productFolder}]},[l.BitType.photo]:{since:"1.3.0",baseBitType:l.BitType.image},[l.BitType.quote]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.quotedPerson}]},[l.BitType.rating]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.coachSelfReflectionRating]:{since:"1.3.0",baseBitType:l.BitType.rating},[l.BitType.releaseNote]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.releaseVersion},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.releaseKind},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.releaseDate}]},[l.BitType.reviewNote]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.title},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.resolved},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.resolvedDate},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.resolvedBy}],rootExampleType:u.ExampleType.string},[l.BitType.reviewAuthorNote]:{since:"1.3.0",baseBitType:l.BitType.reviewNote},[l.BitType.reviewReviewerNote]:{since:"1.3.0",baseBitType:l.BitType.reviewNote},[l.BitType.reviewRequestForReviewNote]:{since:"1.3.0",baseBitType:l.BitType.reviewNote},[l.BitType.reviewApprovedNote]:{since:"1.3.0",baseBitType:l.BitType.reviewNote},[l.BitType.sampleSolution]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.tag,configKey:a.TagConfigKey.anchor},{type:s.BitTagType.tag,configKey:a.TagConfigKey.tag_reference}]},[l.BitType.sequence]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],cardSet:i.CardSetConfigKey._elements,rootExampleType:u.ExampleType.boolean},[l.BitType.stillImageFilm]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceStillImageFilm}],resourceAttachmentAllowed:!1},[l.BitType.stillImageFilmEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceStillImageFilmEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.stillImageFilmLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceStillImageFilmLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.surveyAnonymous]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.survey]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.surveyMatrix]:{since:"1.6.2",baseBitType:l.BitType.image,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pointerTop,minCount:1,maxCount:1},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.pointerLeft,minCount:1,maxCount:1},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption,minCount:1,maxCount:1}]},[l.BitType.surveyMatrixMe]:{since:"1.6.2",baseBitType:l.BitType.surveyMatrix},[l.BitType.surveyRating]:{since:"1.6.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.ratingLevelStart,chain:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.label}]},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.ratingLevelEnd,chain:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.label}]},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.ratingLevelSelected},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption}]},[l.BitType.surveyRatingOnce]:{since:"1.6.0",baseBitType:l.BitType.surveyRating},[l.BitType.surveyRatingDisplay]:{since:"1.6.0",baseBitType:l.BitType.surveyRating},[l.BitType.scorm]:{since:"1.5.11",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.scormSource},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.posterImage}]},[l.BitType.table]:{since:"1.5.19",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.caption},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableFixedHeader},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableSearch},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableSort},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tablePagination},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tablePaginationLimit},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableHeight},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableWhitespaceNoWrap},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableAutoWidth},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableResizableColumns},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.tableColumnMinWidth}],cardSet:i.CardSetConfigKey._table},[l.BitType.tableAlt]:{since:"1.16.0",baseBitType:l.BitType.table},[l.BitType.standardTableNormative]:{since:"1.16.0",baseBitType:l.BitType.table},[l.BitType.standardTableNonNormative]:{since:"1.16.0",baseBitType:l.BitType.table},[l.BitType.standardRemarkTableNormative]:{since:"1.17.0",baseBitType:l.BitType.table},[l.BitType.standardRemarkTableNonNormative]:{since:"1.17.0",baseBitType:l.BitType.table},[l.BitType.smartStandardTableNormative]:{since:"1.28.0",baseBitType:l.BitType.standardTableNormative},[l.BitType.smartStandardTableNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardTableNonNormative},[l.BitType.smartStandardRemarkTableNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkTableNormative},[l.BitType.smartStandardRemarkTableNonNormative]:{since:"1.28.0",baseBitType:l.BitType.standardRemarkTableNonNormative},[l.BitType.smartStandardTableNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardTableNormative},[l.BitType.smartStandardTableNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardTableNonNormative},[l.BitType.smartStandardRemarkTableNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkTableNormative},[l.BitType.smartStandardRemarkTableNonNormativeCollapsible]:{since:"1.28.0",baseBitType:l.BitType.smartStandardRemarkTableNonNormative},[l.BitType.parameters]:{since:"1.18.0",baseBitType:l.BitType.table},[l.BitType.toc]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}]},[l.BitType.tocChapter]:{since:"1.5.5",baseBitType:l.BitType.toc,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.maxDisplayLevel}]},[l.BitType.anchor]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.bitBookEnding]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.bitBookSummary]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionAnnounce]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionRatingNumber]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionRemind]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionSave]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.botActionTrueFalse]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.chapterSubjectMatter]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.chat]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.conclusion]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.conclusionAlt]:{since:"1.16.0",baseBitType:l.BitType.conclusion},[l.BitType.documentUpload]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.footNote]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.groupBorn]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.groupDied]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.recordAudio]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.recordVideo]:{since:"1.5.24",baseBitType:l.BitType.toc},[l.BitType.stickyNote]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.takePicture]:{since:"1.3.0",baseBitType:l.BitType.toc},[l.BitType.handInAudio]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInContact]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInDocument]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInLocation]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInPhoto]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInScan]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInVideo]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.handInVoice]:{since:"1.5.15",baseBitType:l.BitType.takePicture},[l.BitType.trueFalse1]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.labelTrue},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.labelFalse},{type:s.BitTagType.tag,configKey:a.TagConfigKey.true},{type:s.BitTagType.tag,configKey:a.TagConfigKey.false}],rootExampleType:u.ExampleType.boolean},[l.BitType.trueFalse]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.labelTrue},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.labelFalse}],cardSet:i.CardSetConfigKey._statements},[l.BitType.vendorAmcharts5Chart]:{since:"1.5.8",baseBitType:l.BitType.code,tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags}],textFormatDefault:c.TextFormat.json},[l.BitType.vendorHighchartsChart]:{since:"1.5.28",baseBitType:l.BitType.vendorAmcharts5Chart},[l.BitType.vendorIframelyEmbed]:{since:"1.5.10",baseBitType:l.BitType.code,tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.width},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.height},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.vendorUrl}],textFormatDefault:c.TextFormat.text},[l.BitType.vendorIframelyCard]:{since:"1.5.10",baseBitType:l.BitType.vendorIframelyEmbed},[l.BitType.vendorIframelyPreview]:{since:"1.5.10",baseBitType:l.BitType.vendorIframelyEmbed},[l.BitType.vendorIframelyPreviewMini]:{since:"1.5.10",baseBitType:l.BitType.vendorIframelyEmbed},[l.BitType.vendorJupyterOutput]:{since:"1.4.3",baseBitType:l.BitType.code,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.jupyterId},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.jupyterExecutionCount}],textFormatDefault:c.TextFormat.text},[l.BitType.vendorJupyterCellCode]:{since:"1.4.3",baseBitType:l.BitType.vendorJupyterOutput},[l.BitType.vendorJupyterCellMarkdown]:{since:"1.4.3",baseBitType:l.BitType.vendorJupyterOutput},[l.BitType.vendorJupyterCellRaw]:{since:"1.4.3",baseBitType:l.BitType.vendorJupyterOutput},[l.BitType.vendorJupyterIpynb]:{since:"1.4.3",baseBitType:l.BitType.vendorJupyterOutput},[l.BitType.vendorPadletEmbed]:{since:"1.3.0",baseBitType:l.BitType.code,tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.padletId}],textFormatDefault:c.TextFormat.text},[l.BitType.vendorStripePricingTable]:{since:"1.20.0",baseBitType:l.BitType.article,tags:[{type:s.BitTagType.property,configKey:n.PropertyConfigKey.stripePricingTableId,minCount:1},{type:s.BitTagType.property,configKey:n.PropertyConfigKey.stripePublishableKey,minCount:1}]},[l.BitType.video]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceVideo,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.videoLandscape]:{since:"1.3.0",baseBitType:l.BitType.video},[l.BitType.videoPortrait]:{since:"1.3.0",baseBitType:l.BitType.video},[l.BitType.videoEmbed]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceVideoEmbed,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.videoEmbedLandscape]:{since:"1.3.0",baseBitType:l.BitType.videoEmbed},[l.BitType.videoEmbedPortrait]:{since:"1.3.0",baseBitType:l.BitType.videoEmbed},[l.BitType.videoLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceVideoLink,minCount:1}],resourceAttachmentAllowed:!1},[l.BitType.videoLinkLandscape]:{since:"1.3.0",baseBitType:l.BitType.videoLink},[l.BitType.videoLinkPortrait]:{since:"1.3.0",baseBitType:l.BitType.videoLink},[l.BitType.websiteLink]:{since:"1.3.0",tags:[{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceBitTags},{type:s.BitTagType.group,configKey:o.GroupConfigKey.group_resourceWebsiteLink,minCount:1}],resourceAttachmentAllowed:!1}};t.BITS=y},5554:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CARDS=void 0;const i=r(8199),o=r(7112),n=r(9888),a=r(5051),s=r(7797),l=r(5512),p=r(3778),u={[i.CardSetConfigKey._flashcardLike]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._elements]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._statements]:{variants:[[{tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.true,maxCount:1},{type:l.BitTagType.tag,configKey:s.TagConfigKey.false,maxCount:1},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],bodyAllowed:!1}]]},[i.CardSetConfigKey._quiz]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],bodyAllowed:!1}]]},[i.CardSetConfigKey._questions]:{variants:[[{tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.reasonableNumOfChars},{type:l.BitTagType.tag,configKey:s.TagConfigKey.sampleSolution},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.property_sampleSolution},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.additionalSolutions,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.partialAnswer},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._matchPairs]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._matchAudioPairs]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.audio}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._matchImagePairs]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.image}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._matchMatrix]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._table]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._botActionResponses]:{variants:[[{tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.reaction},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardExample}]}]]},[i.CardSetConfigKey._clozeList]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_gap}]}]]},[i.CardSetConfigKey._exampleBitList]:{variants:[[{tags:[{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardTags},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._ingredients]:{variants:[[{tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.title},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_trueFalse},{type:l.BitTagType.group,configKey:o.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.unit},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.unitAbbr},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.decimalPlaces},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.disableCalculation}],repeatCount:p.Count.infinity}]]},[i.CardSetConfigKey._captionDefinitionsList]:{variants:[[{tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.title}],repeatCount:p.Count.infinity}]]}};t.CARDS=u},5837:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GROUPS=void 0;const i=r(7112),o=r(6915),n=r(9888),a=r(5051),s=r(7797),l=r(5512),p=r(3778),u=r(6149),c={[i.GroupConfigKey.group_standardAllBits]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.id,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.externalId,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.aiGenerated},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.machineTranslated},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.analyticsTag,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.feedbackEngine},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.feedbackType},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.disableFeedback},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.ageRange,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.lang},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.publisher,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.publisherName,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.theme,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.target,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.tag,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.reductionTag,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.bubbleTag,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.levelCEFRp},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.levelCEFR},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.levelILR},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.levelACTFL},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.icon},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.iconTag},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.colorTag,maxCount:p.Count.infinity},{type:l.BitTagType.tag,configKey:s.TagConfigKey.anchor},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.search},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.showInIndex}]},[i.GroupConfigKey.group_standardItemLeadInstructionHint]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.itemLead,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.itemLead,maxCount:3}]},{type:l.BitTagType.tag,configKey:s.TagConfigKey.instruction},{type:l.BitTagType.tag,configKey:s.TagConfigKey.hint}]},[i.GroupConfigKey.group_standardExample]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.example}]},[i.GroupConfigKey.group_standardTags]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardAllBits},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardExample}]},[i.GroupConfigKey.group_imageSource]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.imageSource,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.mockupId},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.size},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.format},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.trim}]}]},[i.GroupConfigKey.group_technicalTerm]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.technicalTerm,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.lang}]}]},[i.GroupConfigKey.group_person]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.person,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.property_title},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImage}]},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.partner,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.property_title},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImage}]}]},[i.GroupConfigKey.group_gap]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.gap,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.gap,maxCount:p.Count.infinity},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardExample},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isCaseSensitive}]}]},[i.GroupConfigKey.group_trueFalse]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.true,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.true,maxCount:p.Count.infinity},{type:l.BitTagType.tag,configKey:s.TagConfigKey.false,maxCount:p.Count.infinity},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardExample}]},{type:l.BitTagType.tag,configKey:s.TagConfigKey.false,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.true,maxCount:p.Count.infinity},{type:l.BitTagType.tag,configKey:s.TagConfigKey.false,maxCount:p.Count.infinity},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardItemLeadInstructionHint},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardExample}]}]},[i.GroupConfigKey.group_markConfig]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.markConfig,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.color},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.emphasis}]}]},[i.GroupConfigKey.group_mark]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.tag_mark,maxCount:p.Count.infinity,chain:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.property_mark},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_standardExample}]}]},[i.GroupConfigKey.group_bookCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.language,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.spaceId,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.kind},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.hasMarkAsDone},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.processHandIn},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isPublic},{type:l.BitTagType.tag,configKey:s.TagConfigKey.title,maxCount:2},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.subtype,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.coverImage,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.coverColor},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.subject,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.author,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.publications,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.duration}]},[i.GroupConfigKey.group_learningPathCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.action},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.duration},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.date},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.dateEnd},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.location},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.list,maxCount:p.Count.infinity},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.textReference},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isTracked},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.isInfoOnly},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.deeplink},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.buttonCaption},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.book,chain:[{type:l.BitTagType.tag,configKey:s.TagConfigKey.tag_reference,maxCount:2}]}]},[i.GroupConfigKey.group_resourceBitTags]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.imagePlaceholder,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImageCommon}],maxCount:1}]},[i.GroupConfigKey.group_resourceCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.property,configKey:n.PropertyConfigKey.license},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.copyright},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.caption},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.showInIndex},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.search}]},[i.GroupConfigKey.group_resourceImageCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src1x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src2x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src3x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src4x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.width},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.height},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.alt},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.zoomDisabled}]},[i.GroupConfigKey.group_resourceAudioCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.duration},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.mute},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.autoplay}]},[i.GroupConfigKey.group_resourceVideoCommon]:{type:o.GroupConfigType.standard,tags:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.width},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.height},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.duration},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.mute},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.autoplay},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.allowSubtitles},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.showSubtitles},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.alt},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.posterImage},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src1x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src2x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src3x},{type:l.BitTagType.property,configKey:n.PropertyConfigKey.src4x}]},[i.GroupConfigKey.group_resourceImage]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.image,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImageCommon}]}]},[i.GroupConfigKey.group_resourceImagePortrait]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.imagePortrait,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImageCommon}]}]},[i.GroupConfigKey.group_resourceImageLandscape]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.imageLandscape,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImageCommon}]}]},[i.GroupConfigKey.group_resourceImageEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.imageEmbed,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImageCommon}]}]},[i.GroupConfigKey.group_resourceImageLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.imageLink,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImageCommon}]}]},[i.GroupConfigKey.group_resourceAudio]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.audio,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceAudioCommon}]}]},[i.GroupConfigKey.group_resourceAudioEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.audioEmbed,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceAudioCommon}]}]},[i.GroupConfigKey.group_resourceAudioLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.audioLink,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceAudioCommon}]}]},[i.GroupConfigKey.group_resourceVideo]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.video,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceVideoCommon}]}]},[i.GroupConfigKey.group_resourceVideoEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.videoEmbed,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceVideoCommon}]}]},[i.GroupConfigKey.group_resourceVideoLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.videoLink,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceVideoCommon}]}]},[i.GroupConfigKey.group_resourceStillImageFilmEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.stillImageFilmEmbed,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceVideoCommon}]}]},[i.GroupConfigKey.group_resourceStillImageFilmLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.stillImageFilmLink,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceVideoCommon}]}]},[i.GroupConfigKey.group_resourceArticle]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.article,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceArticleEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.articleEmbed,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceArticleLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.articleLink,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceDocument]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.document,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceDocumentEmbed]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.documentEmbed,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceDocumentLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.documentLink,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceDocumentDownload]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.documentDownload,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceAppLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.appLink,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceWebsiteLink]:{type:o.GroupConfigType.resource,tags:[{type:l.BitTagType.resource,configKey:a.ResourceConfigKey.websiteLink,chain:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceCommon}]}]},[i.GroupConfigKey.group_resourceStillImageFilm]:{type:o.GroupConfigType.comboResource,comboResourceType:u.ResourceTag.stillImageFilm,tags:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImage,maxCount:1,minCount:1},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceAudio,maxCount:1,minCount:1}]},[i.GroupConfigKey.group_resourceImageResponsive]:{type:o.GroupConfigType.comboResource,comboResourceType:u.ResourceTag.imageResponsive,tags:[{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImagePortrait,maxCount:1,minCount:1},{type:l.BitTagType.group,configKey:i.GroupConfigKey.group_resourceImageLandscape,maxCount:1,minCount:1}]}};t.GROUPS=c},9916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PROPERTIES=void 0;const i=r(9888),o=r(7203),n=r(9727),a=r(166),s={[i.PropertyConfigKey.id]:{tag:a.PropertyTag.id,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.internalComment]:{tag:a.PropertyTag.internalComment,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.externalId]:{tag:a.PropertyTag.externalId,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.spaceId]:{tag:a.PropertyTag.spaceId,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.padletId]:{tag:a.PropertyTag.padletId,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.jupyterId]:{tag:a.PropertyTag.jupyterId,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.jupyterExecutionCount]:{tag:a.PropertyTag.jupyterExecutionCount,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.aiGenerated]:{tag:a.PropertyTag.aiGenerated,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.machineTranslated]:{tag:a.PropertyTag.machineTranslated,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.analyticsTag]:{tag:a.PropertyTag.analyticsTag,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.feedbackEngine]:{tag:a.PropertyTag.feedbackEngine,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.disableFeedback]:{tag:a.PropertyTag.disableFeedback,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.releaseVersion]:{tag:a.PropertyTag.releaseVersion,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.releaseKind]:{tag:a.PropertyTag.releaseKind,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.releaseDate]:{tag:a.PropertyTag.releaseDate,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.resolved]:{tag:a.PropertyTag.resolved,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.resolvedDate]:{tag:a.PropertyTag.resolvedDate,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.resolvedBy]:{tag:a.PropertyTag.resolvedBy,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.ageRange]:{tag:a.PropertyTag.ageRange,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.lang]:{tag:a.PropertyTag.lang,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.language]:{tag:a.PropertyTag.language,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.computerLanguage]:{tag:a.PropertyTag.computerLanguage,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.target]:{tag:a.PropertyTag.target,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.slug]:{tag:a.PropertyTag.slug,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.tag]:{tag:a.PropertyTag.tag,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.reductionTag]:{tag:a.PropertyTag.reductionTag,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.bubbleTag]:{tag:a.PropertyTag.bubbleTag,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.levelCEFRp]:{tag:a.PropertyTag.levelCEFRp,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.levelCEFR]:{tag:a.PropertyTag.levelCEFR,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.levelILR]:{tag:a.PropertyTag.levelILR,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.levelACTFL]:{tag:a.PropertyTag.levelACTFL,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.icon]:{tag:a.PropertyTag.icon,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.iconTag]:{tag:a.PropertyTag.iconTag,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.colorTag]:{tag:a.PropertyTag.colorTag,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.flashcardSet]:{tag:a.PropertyTag.flashcardSet,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.subtype]:{tag:a.PropertyTag.subtype,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.bookAlias]:{tag:a.PropertyTag.bookAlias,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.coverImage]:{tag:a.PropertyTag.coverImage,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.coverColor]:{tag:a.PropertyTag.coverColor,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.imagePlaceholder]:{tag:a.PropertyTag.imagePlaceholder,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.publisher]:{tag:a.PropertyTag.publisher,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.publisherName]:{tag:a.PropertyTag.publisherName,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.publications]:{tag:a.PropertyTag.publications,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.author]:{tag:a.PropertyTag.author,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.subject]:{tag:a.PropertyTag.subject,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.date]:{tag:a.PropertyTag.date,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.dateEnd]:{tag:a.PropertyTag.dateEnd,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.location]:{tag:a.PropertyTag.location,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.theme]:{tag:a.PropertyTag.theme,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.kind]:{tag:a.PropertyTag.kind,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.hasMarkAsDone]:{tag:a.PropertyTag.hasMarkAsDone,defaultValue:"false",single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.processHandIn]:{tag:a.PropertyTag.processHandIn,defaultValue:"false",single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.isPublic]:{tag:a.PropertyTag.isPublic,defaultValue:"false",single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.action]:{tag:a.PropertyTag.action,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.thumbImage]:{tag:a.PropertyTag.thumbImage,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.scormSource]:{tag:a.PropertyTag.scormSource,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.posterImage]:{tag:a.PropertyTag.posterImage,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.focusX]:{tag:a.PropertyTag.focusX,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.focusY]:{tag:a.PropertyTag.focusY,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.deeplink]:{tag:a.PropertyTag.deeplink,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.externalLink]:{tag:a.PropertyTag.externalLink,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.externalLinkText]:{tag:a.PropertyTag.externalLinkText,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.videoCallLink]:{tag:a.PropertyTag.videoCallLink,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.vendorUrl]:{tag:a.PropertyTag.vendorUrl,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.search]:{tag:a.PropertyTag.search,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.bot]:{tag:a.PropertyTag.bot,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.duration]:{tag:a.PropertyTag.duration,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.property_reference]:{tag:a.PropertyTag.tag_reference,format:n.PropertyFormat.trimmedString,astKey:o.PropertyAstKey.ast_referenceProperty},[i.PropertyConfigKey.list]:{tag:a.PropertyTag.list,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.textReference]:{tag:a.PropertyTag.textReference,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.isTracked]:{tag:a.PropertyTag.isTracked,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.isInfoOnly]:{tag:a.PropertyTag.isInfoOnly,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.labelTrue]:{tag:a.PropertyTag.labelTrue,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.labelFalse]:{tag:a.PropertyTag.labelFalse,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.content2Buy]:{tag:a.PropertyTag.content2Buy,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.quotedPerson]:{tag:a.PropertyTag.quotedPerson,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.partialAnswer]:{tag:a.PropertyTag.partialAnswer,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.reasonableNumOfChars]:{tag:a.PropertyTag.reasonableNumOfChars,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.maxCreatedBits]:{tag:a.PropertyTag.maxCreatedBits,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.maxDisplayLevel]:{tag:a.PropertyTag.maxDisplayLevel,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.technicalTerm]:{tag:a.PropertyTag.technicalTerm,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.servings]:{tag:a.PropertyTag.servings,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.unit]:{tag:a.PropertyTag.unit,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.unitAbbr]:{tag:a.PropertyTag.unitAbbr,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.decimalPlaces]:{tag:a.PropertyTag.decimalPlaces,single:!0,format:n.PropertyFormat.number,defaultValue:"1"},[i.PropertyConfigKey.disableCalculation]:{tag:a.PropertyTag.disableCalculation,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.example]:{tag:a.PropertyTag.example,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.toc]:{tag:a.PropertyTag.toc,single:!0,format:n.PropertyFormat.boolean,defaultValue:"true"},[i.PropertyConfigKey.page]:{tag:a.PropertyTag.page,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.product]:{tag:a.PropertyTag.product,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.productId]:{tag:a.PropertyTag.productId,single:!1,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.productList]:{tag:a.PropertyTag.product,single:!1,format:n.PropertyFormat.trimmedString,astKey:o.PropertyAstKey.ast_productList},[i.PropertyConfigKey.productVideo]:{tag:a.PropertyTag.productVideo,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.productVideoList]:{tag:a.PropertyTag.productVideo,single:!1,format:n.PropertyFormat.trimmedString,astKey:o.PropertyAstKey.ast_productVideoList},[i.PropertyConfigKey.productFolder]:{tag:a.PropertyTag.productFolder,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.progress]:{tag:a.PropertyTag.progress,single:!0,format:n.PropertyFormat.boolean,defaultValue:"true"},[i.PropertyConfigKey.book]:{tag:a.PropertyTag.book,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.person]:{tag:a.PropertyTag.person,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.partner]:{tag:a.PropertyTag.partner,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.property_sampleSolution]:{tag:a.PropertyTag.tag_sampleSolution,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.additionalSolutions]:{tag:a.PropertyTag.additionalSolutions,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.markConfig]:{tag:a.PropertyTag.tag_mark,format:n.PropertyFormat.trimmedString,astKey:o.PropertyAstKey.ast_markConfig},[i.PropertyConfigKey.property_mark]:{tag:a.PropertyTag.tag_mark,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.color]:{tag:a.PropertyTag.color,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.emphasis]:{tag:a.PropertyTag.emphasis,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.isCaseSensitive]:{tag:a.PropertyTag.isCaseSensitive,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.reaction]:{tag:a.PropertyTag.reaction,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.imageSource]:{tag:a.PropertyTag.imageSource,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.mockupId]:{tag:a.PropertyTag.mockupId,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.size]:{tag:a.PropertyTag.size,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.format]:{tag:a.PropertyTag.format,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.property_title]:{tag:a.PropertyTag.tag_title,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.trim]:{tag:a.PropertyTag.trim,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.width]:{tag:a.PropertyTag.width,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.height]:{tag:a.PropertyTag.height,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.license]:{tag:a.PropertyTag.license,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.copyright]:{tag:a.PropertyTag.copyright,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.mailingList]:{tag:a.PropertyTag.mailingList,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.buttonCaption]:{tag:a.PropertyTag.buttonCaption,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.callToActionUrl]:{tag:a.PropertyTag.callToActionUrl,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.feedbackType]:{tag:a.PropertyTag.feedbackType,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.caption]:{tag:a.PropertyTag.caption,single:!0,format:n.PropertyFormat.bitmarkMinusMinus},[i.PropertyConfigKey.showInIndex]:{tag:a.PropertyTag.showInIndex,single:!0,format:n.PropertyFormat.boolean,defaultValue:"false"},[i.PropertyConfigKey.alt]:{tag:a.PropertyTag.alt,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.zoomDisabled]:{tag:a.PropertyTag.zoomDisabled,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.src1x]:{tag:a.PropertyTag.src1x,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.src2x]:{tag:a.PropertyTag.src2x,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.src3x]:{tag:a.PropertyTag.src3x,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.src4x]:{tag:a.PropertyTag.src4x,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.mute]:{tag:a.PropertyTag.mute,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.autoplay]:{tag:a.PropertyTag.autoplay,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.allowSubtitles]:{tag:a.PropertyTag.allowSubtitles,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.showSubtitles]:{tag:a.PropertyTag.showSubtitles,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.siteName]:{tag:a.PropertyTag.siteName,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.pointerLeft]:{tag:a.PropertyTag.pointerLeft,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.pointerTop]:{tag:a.PropertyTag.pointerTop,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.listItemIndent]:{tag:a.PropertyTag.listItemIndent,single:!0,defaultValue:"0",format:n.PropertyFormat.number},[i.PropertyConfigKey.backgroundWallpaper]:{tag:a.PropertyTag.backgroundWallpaper,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.hasBookNavigation]:{tag:a.PropertyTag.hasBookNavigation,single:!0,defaultValue:"true",format:n.PropertyFormat.boolean},[i.PropertyConfigKey.blockId]:{tag:a.PropertyTag.blockId,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.pageNo]:{tag:a.PropertyTag.pageNo,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.x]:{tag:a.PropertyTag.x,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.y]:{tag:a.PropertyTag.y,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.index]:{tag:a.PropertyTag.index,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.classification]:{tag:a.PropertyTag.classification,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.availableClassifications]:{tag:a.PropertyTag.availableClassifications,single:!1,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.allowedBit]:{tag:a.PropertyTag.allowedBit,single:!1,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.tableFixedHeader]:{tag:a.PropertyTag.tableFixedHeader,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.tableSearch]:{tag:a.PropertyTag.tableSearch,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.tableSort]:{tag:a.PropertyTag.tableSort,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.tablePagination]:{tag:a.PropertyTag.tablePagination,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.tablePaginationLimit]:{tag:a.PropertyTag.tablePaginationLimit,single:!0,format:n.PropertyFormat.number,defaultValue:"0"},[i.PropertyConfigKey.tableHeight]:{tag:a.PropertyTag.tableHeight,single:!0,format:n.PropertyFormat.number,defaultValue:"0"},[i.PropertyConfigKey.tableWhitespaceNoWrap]:{tag:a.PropertyTag.tableWhitespaceNoWrap,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.tableAutoWidth]:{tag:a.PropertyTag.tableAutoWidth,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.tableResizableColumns]:{tag:a.PropertyTag.tableResizableColumns,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.tableColumnMinWidth]:{tag:a.PropertyTag.tableColumnMinWidth,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.quizCountItems]:{tag:a.PropertyTag.quizCountItems,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.quizStrikethroughSolutions]:{tag:a.PropertyTag.quizStrikethroughSolutions,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.codeLineNumbers]:{tag:a.PropertyTag.codeLineNumbers,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.codeMinimap]:{tag:a.PropertyTag.codeMinimap,single:!0,format:n.PropertyFormat.boolean},[i.PropertyConfigKey.stripePricingTableId]:{tag:a.PropertyTag.stripePricingTableId,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.stripePublishableKey]:{tag:a.PropertyTag.stripePublishableKey,single:!0,format:n.PropertyFormat.trimmedString},[i.PropertyConfigKey.ratingLevelStart]:{tag:a.PropertyTag.ratingLevelStart,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.ratingLevelEnd]:{tag:a.PropertyTag.ratingLevelEnd,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.ratingLevelSelected]:{tag:a.PropertyTag.ratingLevelSelected,single:!0,format:n.PropertyFormat.number},[i.PropertyConfigKey.label]:{tag:a.PropertyTag.label,single:!0,format:n.PropertyFormat.bitmarkMinusMinus},[i.PropertyConfigKey.imageFirst]:{tag:a.PropertyTag.imageFirst,single:!0,format:n.PropertyFormat.boolean,defaultValue:"true"},[i.PropertyConfigKey.activityType]:{tag:a.PropertyTag.activityType,single:!0,format:n.PropertyFormat.trimmedString}};t.PROPERTIES=s},168:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RESOURCES=void 0;const i=r(5051),o=r(9984),n=r(6149),a={[i.ResourceConfigKey.image]:{tag:n.ResourceTag.image},[i.ResourceConfigKey.imagePortrait]:{tag:n.ResourceTag.imagePortrait,jsonKey:o.ResourceJsonKey.imagePortrait},[i.ResourceConfigKey.imageLandscape]:{tag:n.ResourceTag.imageLandscape,jsonKey:o.ResourceJsonKey.imageLandscape},[i.ResourceConfigKey.imageEmbed]:{tag:n.ResourceTag.imageEmbed,jsonKey:o.ResourceJsonKey.imageEmbed},[i.ResourceConfigKey.imageLink]:{tag:n.ResourceTag.imageLink,jsonKey:o.ResourceJsonKey.imageLink},[i.ResourceConfigKey.audio]:{tag:n.ResourceTag.audio},[i.ResourceConfigKey.audioEmbed]:{tag:n.ResourceTag.audioEmbed,jsonKey:o.ResourceJsonKey.audioEmbed},[i.ResourceConfigKey.audioLink]:{tag:n.ResourceTag.audioLink,jsonKey:o.ResourceJsonKey.audioLink},[i.ResourceConfigKey.video]:{tag:n.ResourceTag.video},[i.ResourceConfigKey.videoEmbed]:{tag:n.ResourceTag.videoEmbed,jsonKey:o.ResourceJsonKey.videoEmbed},[i.ResourceConfigKey.videoLink]:{tag:n.ResourceTag.videoLink,jsonKey:o.ResourceJsonKey.videoLink},[i.ResourceConfigKey.stillImageFilmEmbed]:{tag:n.ResourceTag.stillImageFilmEmbed,jsonKey:o.ResourceJsonKey.stillImageFilmEmbed},[i.ResourceConfigKey.stillImageFilmLink]:{tag:n.ResourceTag.stillImageFilmLink,jsonKey:o.ResourceJsonKey.stillImageFilmLink},[i.ResourceConfigKey.article]:{tag:n.ResourceTag.article},[i.ResourceConfigKey.articleEmbed]:{tag:n.ResourceTag.articleEmbed,jsonKey:o.ResourceJsonKey.articleEmbed},[i.ResourceConfigKey.articleLink]:{tag:n.ResourceTag.articleLink,jsonKey:o.ResourceJsonKey.articleLink},[i.ResourceConfigKey.document]:{tag:n.ResourceTag.document},[i.ResourceConfigKey.documentEmbed]:{tag:n.ResourceTag.documentEmbed,jsonKey:o.ResourceJsonKey.documentEmbed},[i.ResourceConfigKey.documentLink]:{tag:n.ResourceTag.documentLink,jsonKey:o.ResourceJsonKey.documentLink},[i.ResourceConfigKey.documentDownload]:{tag:n.ResourceTag.documentDownload,jsonKey:o.ResourceJsonKey.documentDownload},[i.ResourceConfigKey.appLink]:{tag:n.ResourceTag.appLink,jsonKey:o.ResourceJsonKey.appLink},[i.ResourceConfigKey.websiteLink]:{tag:n.ResourceTag.websiteLink,jsonKey:o.ResourceJsonKey.websiteLink}};t.RESOURCES=a},9248:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TAGS=void 0;const i=r(7797),o=r(9917),n={[i.TagConfigKey.title]:{tag:o.Tag.tag_title},[i.TagConfigKey.anchor]:{tag:o.Tag.tag_anchor},[i.TagConfigKey.tag_reference]:{tag:o.Tag.tag_reference},[i.TagConfigKey.property]:{tag:o.Tag.tag_property},[i.TagConfigKey.itemLead]:{tag:o.Tag.tag_itemLead},[i.TagConfigKey.instruction]:{tag:o.Tag.tag_instruction},[i.TagConfigKey.hint]:{tag:o.Tag.tag_hint},[i.TagConfigKey.true]:{tag:o.Tag.tag_true},[i.TagConfigKey.false]:{tag:o.Tag.tag_false},[i.TagConfigKey.sampleSolution]:{tag:o.Tag.tag_sampleSolution},[i.TagConfigKey.gap]:{tag:o.Tag.tag_gap},[i.TagConfigKey.tag_mark]:{tag:o.Tag.tag_mark},[i.TagConfigKey.resource]:{tag:o.Tag.tag_resource}};t.TAGS=n},1464:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildInfo=void 0,t.buildInfo={name:"@gmb/bitmark-parser-generator",version:"2.1.0",author:"Get More Brain Ltd",license:"ISC",description:"A bitmark parser and generator using Peggy.js"}},5057:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StartRules=void 0,t.SyntaxError=a,t.parse=function e(t,r){r=void 0!==r?r:{};var s,l={},p=r.grammarSource,u={bitmark:tr,bit:function(){var e,t,r,i,o;e=Mt,t=[],r=kr();for(;r!==l;)t.push(r),r=kr();if((r=or())!==l){for(i=[],o=kr();o!==l;)i.push(o),o=kr();Dt=e,e=He(r)}else Mt=e,e=l;return e},cardContent:function(){var e,t,r;e=Mt,t=[],(r=lr())===l&&(r=Tr());for(;r!==l;)t.push(r),(r=lr())===l&&(r=Tr());return Dt=e,t=bt(t),e=t}},c=tr,y="[.",g="]",d="[",f=":",m="&",T="$$$$",h="~~~~",b="====",B="--",v="++",C="===",P="==",x="[@id",k="#",K="[▼",w="[►",S="[@",_="[%",A="[!",L="[?",I="[+",N="[-",F="[$",E="[_",R="[=",O="[&",V="^]",j="id:",G=".",M="\n",D="\r\n",U=/^[^\]]/,$=/^[^:\]]/,J=/^[^&:\]]/,W=/^[ \t]/,H=/^[^\n\r\u2028\u2029]/,z=/^[\r\u2028-\u2029]/,q=/^[ \t\n\r\u2028\u2029]/,Y=zt("[.",!1),X=qt(["]"],!0,!1),Q=zt("]",!1),Z=zt("[",!1),ee=zt(":",!1),te=zt("&",!1),re={type:"any"},ie=zt("$$$$",!1),oe=zt("~~~~",!1),ne=zt("====",!1),ae=zt("--",!1),se=zt("++",!1),le=zt("===",!1),pe=zt("==",!1),ue=zt("[@id",!1),ce=zt("#",!1),ye=zt("[▼",!1),ge=zt("[►",!1),de=zt("[@",!1),fe=zt("[%",!1),me=zt("[!",!1),Te=zt("[?",!1),he=zt("[+",!1),be=zt("[-",!1),Be=zt("[$",!1),ve=zt("[_",!1),Ce=zt("[=",!1),Pe=zt("[&",!1),xe=zt("^]",!1),ke=zt("id:",!1),Ke=qt([":","]"],!0,!1),we=zt(".",!1),Se=qt(["&",":","]"],!0,!1),_e=(Yt("Empty"),qt([" ","\t"],!1,!1)),Ae=Yt("Anything"),Le=Yt("Character"),Ie=qt(["\n","\r","\u2028","\u2029"],!0,!1),Ne=Yt("Line"),Fe=(Yt("whitespace in line"),Yt("Blank Line")),Ee=Yt("Line Terminator"),Re=zt("\n",!1),Oe=zt("\r\n",!1),Ve=qt(["\r",["\u2028","\u2029"]],!1,!1),je=Yt("Whitespace, then Line Terminator"),Ge=Yt("whitespace"),Me=qt([" ","\t","\n","\r","\u2028","\u2029"],!1,!1),De=function(e,t){return Ir.buildBits([e,...t])},Ue=function(e){return Lr.handleRawBit(e)},$e=function(e){return e},Je=function(e){return Lr.handleRawBit(e)},We=function(e){return e},He=function(e){return e},ze=function(e,t){return Ir.buildBit(e,t)},qe=function(e){return Ir.invalidBit(e)},Ye=function(e,t,r){return Ir.buildBitHeader(t,e,r)},Xe=function(e,t){return Ir.buildTextAndResourceType(e,t)},Qe=function(e){return Lr.handleTextFormat(e)},Ze=function(e){return Lr.handleResourceType(e)},et=function(e){return Lr.handleBitContent(e)},tt=function(e){return Lr.handleTagChain(e)},rt=function(e){return e},it=function(e){return Lr.handleBitTag(e)},ot=function(e){return{type:i.TypeKey.BodyChar,value:e}},nt=function(e){return Lr.handlePlainTextDivider(e)},at=function(e){return Lr.handleFooterDivider(e)},st=function(e){return Lr.handleCardSet(e[1].flat())},lt=function(){Lr.handleCardSetStart()},pt=function(){Lr.handleCardSetEnd()},ut=function(e){return Lr.handleCards(e)},ct=function(e){return Lr.handleCardLineOrDivider(e,2)},yt=function(e){return Lr.handleCardLine(e)},gt=function(e){return Lr.handleCardSet(e[1].flat())},dt=function(){Lr.handleCardSetStart()},ft=function(){Lr.handleCardSetEnd()},mt=function(e){return Lr.handleCards(e)},Tt=function(e){return Lr.handleCardLineOrDivider(e,1)},ht=function(e){return Lr.handleCardLine(e)},bt=function(e){return Lr.handleCardContent(e)},Bt=function(e){return{type:i.TypeKey.CardChar,value:e}},vt=function(e){return Lr.handlePropertyTag("id",e)},Ct=function(e,t){return Lr.handleTag(i.TypeKey.Title,{level:e,title:t})},Pt=function(e){return Lr.handleTag(i.TypeKey.Anchor,e)},xt=function(e){return Lr.handleTag(i.TypeKey.Reference,e)},kt=function(e,t){return Lr.handlePropertyTag(e,t)},Kt=function(e){return Lr.handleTag(i.TypeKey.ItemLead,e)},wt=function(e){return Lr.handleTag(i.TypeKey.Instruction,e)},St=function(e){return Lr.handleTag(i.TypeKey.Hint,e)},_t=function(e){return Lr.handleTag(i.TypeKey.True,e)},At=function(e){return Lr.handleTag(i.TypeKey.False,e)},Lt=function(e){return Lr.handleTag(i.TypeKey.SampleSolution,e)},It=function(e){return Lr.handleTag(i.TypeKey.Gap,e)},Nt=function(e){return Lr.handleTag(i.TypeKey.Mark,e)},Ft=function(e,t){return Lr.handleResourceTag(e,t)},Et=function(e){return e},Rt=function(e){return e?e.trim():""},Ot=function(e){return e.length},Vt=function(e){return e?e.trim():null},jt=function(e){return e?e.trim():""},Gt=function(){return!0},Mt=0|r.peg$currPos,Dt=Mt,Ut=[{line:1,column:1}],$t=Mt,Jt=r.peg$maxFailExpected||[],Wt=0|r.peg$silentFails;if(r.startRule){if(!(r.startRule in u))throw new Error("Can't start parsing from rule \""+r.startRule+'".');c=u[r.startRule]}function Ht(){return t.substring(Dt,Mt)}function zt(e,t){return{type:"literal",text:e,ignoreCase:t}}function qt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Yt(e){return{type:"other",description:e}}function Xt(e){var r,i=Ut[e];if(i)return i;if(e>=Ut.length)r=Ut.length-1;else for(r=e;!Ut[--r];);for(i={line:(i=Ut[r]).line,column:i.column};r<e;)10===t.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return Ut[e]=i,i}function Qt(e,t,r){var i=Xt(e),o=Xt(t),n={source:p,start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:o.line,column:o.column}};return r&&p&&"function"==typeof p.offset&&(n.start=p.offset(n.start),n.end=p.offset(n.end)),n}function Zt(e){Mt<$t||(Mt>$t&&($t=Mt,Jt=[]),Jt.push(e))}function er(e,t,r){return new a(a.buildMessage(e,t),e,t,r)}function tr(){return function(){var e,r,i,o;e=Mt,r=[],i=Sr();for(;i!==l;)r.push(i),i=Sr();return i=function(){var e,r,i,o;e=Mt,r=Mt,i=[],o=ir();for(;o!==l;)i.push(o),o=ir();return r=t.substring(r,Mt),Dt=e,r=Ue(r),e=r,e}(),o=function(){var e,t;e=[],t=rr();for(;t!==l;)e.push(t),t=rr();return e}(),Dt=e,e=De(i,o),e}()}function rr(){var e,r,i,o;for(e=Mt,r=[],i=kr();i!==l;)r.push(i),i=kr();return(i=Kr())===l&&(i=null),o=function(){var e,r,i,o,n,a;if(e=Mt,r=Mt,i=Mt,o=function(){var e,r,i,o;e=Mt,t.substr(Mt,2)===y?(r=y,Mt+=2):(r=l,0===Wt&&Zt(Y));if(r!==l){for(i=[],o=t.charAt(Mt),U.test(o)?Mt++:(o=l,0===Wt&&Zt(X));o!==l;)i.push(o),o=t.charAt(Mt),U.test(o)?Mt++:(o=l,0===Wt&&Zt(X));93===t.charCodeAt(Mt)?(o=g,Mt++):(o=l,0===Wt&&Zt(Q)),o!==l?(Dt=e,e=We(r)):(Mt=e,e=l)}else Mt=e,e=l;return e}(),o!==l){for(n=[],a=ir();a!==l;)n.push(a),a=ir();i=o=[o,n]}else Mt=i,i=l;r=i!==l?t.substring(r,Mt):i;r!==l&&(Dt=e,r=Je(r));return e=r,e}(),o!==l?(Dt=e,e=$e(o)):(Mt=e,e=l),e}function ir(){var e,t,r,i;if(e=Mt,(t=Kr())!==l?(r=Mt,Wt++,i=nr(),Wt--,i===l?r=void 0:(Mt=r,r=l),r!==l?e=t=[t,r]:(Mt=e,e=l)):(Mt=e,e=l),e===l)if(e=[],(t=Pr())!==l)for(;t!==l;)e.push(t),t=Pr();else e=l;return e}function or(){var e,r,i;return e=Mt,(r=nr())!==l?(i=function(){var e,t,r;e=Mt,t=[],r=yr(),r===l&&(r=gr())===l&&(r=fr())===l&&(r=lr())===l&&(r=cr());for(;r!==l;)t.push(r),(r=yr())===l&&(r=gr())===l&&(r=fr())===l&&(r=lr())===l&&(r=cr());return Dt=e,t=et(t),e=t,e}(),Dt=e,e=ze(r,i)):(Mt=e,e=l),e===l&&(e=Mt,r=Mt,i=function(){var e,r;Wt++,e=[],t.length>Mt?(r=t.charAt(Mt),Mt++):(r=l,0===Wt&&Zt(re));for(;r!==l;)e.push(r),t.length>Mt?(r=t.charAt(Mt),Mt++):(r=l,0===Wt&&Zt(re));Wt--,r=l,0===Wt&&Zt(Ae);return e}(),r=t.substring(r,Mt),Dt=e,e=r=qe(r)),e}function nr(){var e,r,i,o,n,a;return e=Mt,91===t.charCodeAt(Mt)?(r=d,Mt++):(r=l,0===Wt&&Zt(Z)),r!==l?(i=function(){var e,r,i;e=Mt,r=[],46===t.charCodeAt(Mt)?(i=G,Mt++):(i=l,0===Wt&&Zt(we));if(i!==l)for(;i!==l;)r.push(i),46===t.charCodeAt(Mt)?(i=G,Mt++):(i=l,0===Wt&&Zt(we));else r=l;r!==l&&(Dt=e,r=Ot(r));return e=r,e}(),i!==l?(o=vr(),n=function(){var e,t,r;e=Mt,t=ar(),t===l&&(t=sr());t===l&&(t=null);r=ar(),r===l&&(r=sr());r===l&&(r=null);return Dt=e,e=Xe(t,r),e}(),93===t.charCodeAt(Mt)?(a=g,Mt++):(a=l,0===Wt&&Zt(Q)),a!==l?(Dt=e,e=Ye(i,o,n)):(Mt=e,e=l)):(Mt=e,e=l)):(Mt=e,e=l),e}function ar(){var e,r,i;return e=Mt,58===t.charCodeAt(Mt)?(r=f,Mt++):(r=l,0===Wt&&Zt(ee)),r!==l?(i=vr(),Dt=e,e=Qe(i)):(Mt=e,e=l),e}function sr(){var e,r,i;return e=Mt,38===t.charCodeAt(Mt)?(r=m,Mt++):(r=l,0===Wt&&Zt(te)),r!==l?(i=vr(),Dt=e,e=Ze(i)):(Mt=e,e=l),e}function lr(){var e,t,r,i,o;if(e=Mt,t=Mt,(r=ur())!==l){for(i=[],o=pr();o!==l;)i.push(o),o=pr();t=r=[r,i]}else Mt=t,t=l;return t!==l&&(Dt=e,t=tt(t)),e=t}function pr(){var e,t;return e=Mt,(t=ur())!==l&&(Dt=e,t=rt(t)),e=t}function ur(){var e,r;return e=Mt,r=function(){var e,r,i,o;e=Mt,t.substr(Mt,4)===x?(r=x,Mt+=4):(r=l,0===Wt&&Zt(ue));r!==l&&(i=Cr())!==l?(o=function(){var e;93===t.charCodeAt(Mt)?(e=g,Mt++):(e=l,0===Wt&&Zt(Q));return e}(),o!==l?(Dt=e,e=vt(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i,o;e=Mt,t.substr(Mt,2)===S?(r=S,Mt+=2):(r=l,0===Wt&&Zt(de));r!==l&&(i=br())!==l&&(o=Cr())!==l&&Br()!==l?(Dt=e,e=kt(i,o)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i,o;e=Mt,91===t.charCodeAt(Mt)?(r=d,Mt++):(r=l,0===Wt&&Zt(Z));if(r!==l){if(i=[],35===t.charCodeAt(Mt)?(o=k,Mt++):(o=l,0===Wt&&Zt(ce)),o!==l)for(;o!==l;)i.push(o),35===t.charCodeAt(Mt)?(o=k,Mt++):(o=l,0===Wt&&Zt(ce));else i=l;i!==l?(o=hr(),Br()!==l?(Dt=e,e=Ct(i,o)):(Mt=e,e=l)):(Mt=e,e=l)}else Mt=e,e=l;return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===K?(r=K,Mt+=2):(r=l,0===Wt&&Zt(ye));r!==l?(i=hr(),Br()!==l?(Dt=e,e=Pt(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===w?(r=w,Mt+=2):(r=l,0===Wt&&Zt(ge));r!==l?(i=hr(),Br()!==l?(Dt=e,e=xt(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===_?(r=_,Mt+=2):(r=l,0===Wt&&Zt(fe));r!==l?(i=hr(),Br()!==l?(Dt=e,e=Kt(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===A?(r=A,Mt+=2):(r=l,0===Wt&&Zt(me));r!==l?(i=hr(),Br()!==l?(Dt=e,e=wt(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===L?(r=L,Mt+=2):(r=l,0===Wt&&Zt(Te));r!==l?(i=hr(),Br()!==l?(Dt=e,e=St(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===E?(r=E,Mt+=2):(r=l,0===Wt&&Zt(ve));r!==l?(i=hr(),Br()!==l?(Dt=e,e=It(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===R?(r=R,Mt+=2):(r=l,0===Wt&&Zt(Ce));r!==l?(i=hr(),Br()!==l?(Dt=e,e=Nt(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===F?(r=F,Mt+=2):(r=l,0===Wt&&Zt(Be));r!==l?(i=hr(),Br()!==l?(Dt=e,e=Lt(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===I?(r=I,Mt+=2):(r=l,0===Wt&&Zt(he));r!==l?(i=hr(),Br()!==l?(Dt=e,e=_t(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i;e=Mt,t.substr(Mt,2)===N?(r=N,Mt+=2):(r=l,0===Wt&&Zt(be));r!==l?(i=hr(),Br()!==l?(Dt=e,e=At(i)):(Mt=e,e=l)):(Mt=e,e=l);return e}(),r===l&&(r=function(){var e,r,i,o;e=Mt,t.substr(Mt,2)===O?(r=O,Mt+=2):(r=l,0===Wt&&Zt(Pe));r!==l&&(i=br())!==l&&(o=Cr())!==l&&Br()!==l?(Dt=e,e=Ft(i,o)):(Mt=e,e=l);return e}()))))))))))))),r!==l&&(Dt=e,r=it(r)),e=r}function cr(){var e,r;return e=Mt,t.length>Mt?(r=t.charAt(Mt),Mt++):(r=l,0===Wt&&Zt(re)),r!==l&&(Dt=e,r=ot(r)),e=r}function yr(){var e;return(e=function(){var e,r,i,o,n;e=Mt,r=Mt,(i=Kr())!==l?(t.substr(Mt,4)===h?(o=h,Mt+=4):(o=l,0===Wt&&Zt(oe)),o!==l&&(n=wr())!==l?r=i=[i,o,n]:(Mt=r,r=l)):(Mt=r,r=l);r!==l&&(Dt=e,r=at(r));return e=r,e}())===l&&(e=function(){var e,r,i,o,n;e=Mt,r=Mt,(i=Kr())!==l?(t.substr(Mt,4)===T?(o=T,Mt+=4):(o=l,0===Wt&&Zt(ie)),o!==l&&(n=wr())!==l?r=i=[i,o,n]:(Mt=r,r=l)):(Mt=r,r=l);r!==l&&(Dt=e,r=nt(r));return e=r,e}()),e}function gr(){var e,r,i,o,n;if(e=Mt,r=Mt,i=function(){var e,r,i,o,n,a;e=Mt,r=Kr(),r!==l?(i=Mt,Wt++,o=Mt,t.substr(Mt,4)===b?(n=b,Mt+=4):(n=l,0===Wt&&Zt(ne)),n!==l&&(a=wr())!==l?o=n=[n,a]:(Mt=o,o=l),Wt--,o!==l?(Mt=i,i=void 0):i=l,i!==l?(Dt=e,e=lt()):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i!==l){for(o=[],n=dr();n!==l;)o.push(n),n=dr();n=function(){var e,r,i,o,n;e=Mt,r=Mt,t.substr(Mt,4)===h?(i=h,Mt+=4):(i=l,0===Wt&&Zt(oe));i===l&&(i=null);o=Mt,Wt++,n=_r(),Wt--,n!==l?(Mt=o,o=void 0):o=l;o!==l?r=i=[i,o]:(Mt=r,r=l);r!==l&&(Dt=e,r=pt());return e=r,e}(),n!==l?r=i=[i,o,n]:(Mt=r,r=l)}else Mt=r,r=l;return r!==l&&(Dt=e,r=st(r)),e=r}function dr(){var e,r;return e=Mt,r=function(){var e,r,i,o;e=Mt,r=Mt,t.substr(Mt,4)===b?(i=b,Mt+=4):(i=l,0===Wt&&Zt(ne));i!==l?((o=wr())===l&&(o=_r()),o!==l?r=i=[i,o]:(Mt=r,r=l)):(Mt=r,r=l);r===l&&(r=Mt,t.substr(Mt,2)===B?(i=B,Mt+=2):(i=l,0===Wt&&Zt(ae)),i!==l?((o=wr())===l&&(o=_r()),o!==l?r=i=[i,o]:(Mt=r,r=l)):(Mt=r,r=l),r===l&&(r=Mt,t.substr(Mt,2)===v?(i=v,Mt+=2):(i=l,0===Wt&&Zt(se)),i!==l?((o=wr())===l&&(o=_r()),o!==l?r=i=[i,o]:(Mt=r,r=l)):(Mt=r,r=l),r===l&&(r=function(){var e,r,i,o,n,a;e=Mt,r=Mt,Wt++,i=Mt,t.substr(Mt,4)===h?(o=h,Mt+=4):(o=l,0===Wt&&Zt(oe));o!==l&&(n=_r())!==l?i=o=[o,n]:(Mt=i,i=l);Wt--,i===l?r=void 0:(Mt=r,r=l);if(r!==l){if(i=Mt,o=Mt,n=xr(),(a=Kr())!==l?o=n=[n,a]:(Mt=o,o=l),o===l){if(o=Mt,n=[],(a=Pr())!==l)for(;a!==l;)n.push(a),a=Pr();else n=l;n!==l?(a=function(){var e,r;e=Kr(),e===l&&(e=Mt,Wt++,t.length>Mt?(r=t.charAt(Mt),Mt++):(r=l,0===Wt&&Zt(re)),Wt--,r===l?e=void 0:(Mt=e,e=l));return e}(),a!==l?o=n=[n,a]:(Mt=o,o=l)):(Mt=o,o=l)}(i=o!==l?t.substring(i,Mt):o)!==l?(Dt=e,e=yt(i)):(Mt=e,e=l)}else Mt=e,e=l;return e}())));r!==l&&(Dt=e,r=ct(r));return e=r,e}(),r!==l&&(Dt=e,r=ut(r)),e=r}function fr(){var e,r,i,o,n;if(e=Mt,r=Mt,i=function(){var e,r,i,o,n,a;e=Mt,r=Kr(),r!==l?(i=Mt,Wt++,o=Mt,t.substr(Mt,3)===C?(n=C,Mt+=3):(n=l,0===Wt&&Zt(le)),n!==l&&(a=wr())!==l?o=n=[n,a]:(Mt=o,o=l),Wt--,o!==l?(Mt=i,i=void 0):i=l,i!==l?(Dt=e,e=dt()):(Mt=e,e=l)):(Mt=e,e=l);return e}(),i!==l){for(o=[],n=mr();n!==l;)o.push(n),n=mr();n=function(){var e,r,i,o,n;e=Mt,r=Mt,t.substr(Mt,3)===C?(i=C,Mt+=3):(i=l,0===Wt&&Zt(le));i!==l?(o=Mt,Wt++,n=_r(),Wt--,n!==l?(Mt=o,o=void 0):o=l,o!==l?r=i=[i,o]:(Mt=r,r=l)):(Mt=r,r=l);r!==l&&(Dt=e,r=ft());return e=r,e}(),n!==l?r=i=[i,o,n]:(Mt=r,r=l)}else Mt=r,r=l;return r!==l&&(Dt=e,r=gt(r)),e=r}function mr(){var e,r,i,o,n,a,s,p,u,c,y;if(e=Mt,r=Mt,Wt++,i=Mt,t.substr(Mt,3)===C?(o=C,Mt+=3):(o=l,0===Wt&&Zt(le)),o!==l){for(n=[],a=Sr();a!==l;)n.push(a),a=Sr();for(a=[],s=Mt,p=Mt,Wt++,u=Mt,(c=Kr())!==l?(t.substr(Mt,3)===C?(y=C,Mt+=3):(y=l,0===Wt&&Zt(le)),y!==l?u=c=[c,y]:(Mt=u,u=l)):(Mt=u,u=l),Wt--,u===l?p=void 0:(Mt=p,p=l),p!==l?(t.length>Mt?(u=t.charAt(Mt),Mt++):(u=l,0===Wt&&Zt(re)),u!==l?s=p=[p,u]:(Mt=s,s=l)):(Mt=s,s=l);s!==l;)a.push(s),s=Mt,p=Mt,Wt++,u=Mt,(c=Kr())!==l?(t.substr(Mt,3)===C?(y=C,Mt+=3):(y=l,0===Wt&&Zt(le)),y!==l?u=c=[c,y]:(Mt=u,u=l)):(Mt=u,u=l),Wt--,u===l?p=void 0:(Mt=p,p=l),p!==l?(t.length>Mt?(u=t.charAt(Mt),Mt++):(u=l,0===Wt&&Zt(re)),u!==l?s=p=[p,u]:(Mt=s,s=l)):(Mt=s,s=l);(s=Ar())!==l?i=o=[o,n,a,s]:(Mt=i,i=l)}else Mt=i,i=l;return Wt--,i===l?r=void 0:(Mt=r,r=l),r!==l?(i=function(){var e,r,i,o;e=Mt,r=Mt,t.substr(Mt,3)===C?(i=C,Mt+=3):(i=l,0===Wt&&Zt(le));i!==l&&(o=wr())!==l?r=i=[i,o]:(Mt=r,r=l);r===l&&(r=Mt,t.substr(Mt,2)===P?(i=P,Mt+=2):(i=l,0===Wt&&Zt(pe)),i!==l&&(o=wr())!==l?r=i=[i,o]:(Mt=r,r=l),r===l&&(r=Mt,t.substr(Mt,2)===B?(i=B,Mt+=2):(i=l,0===Wt&&Zt(ae)),i!==l&&(o=wr())!==l?r=i=[i,o]:(Mt=r,r=l),r===l&&(r=function(){var e,r,i,o,n;e=Mt,r=Mt,i=Mt,o=xr(),n=Kr(),n!==l?i=o=[o,n]:(Mt=i,i=l);r=i!==l?t.substring(r,Mt):i;r!==l&&(Dt=e,r=ht(r));return e=r,e}())));r!==l&&(Dt=e,r=Tt(r));return e=r,e}(),i!==l?(Dt=e,e=mt(i)):(Mt=e,e=l)):(Mt=e,e=l),e}function Tr(){var e,r;return e=Mt,t.length>Mt?(r=t.charAt(Mt),Mt++):(r=l,0===Wt&&Zt(re)),r!==l&&(Dt=e,r=Bt(r)),e=r}function hr(){var e,r,i,o;for(e=Mt,r=Mt,i=[],t.substr(Mt,2)===V?(o=V,Mt+=2):(o=l,0===Wt&&Zt(xe)),o===l&&(o=t.charAt(Mt),U.test(o)?Mt++:(o=l,0===Wt&&Zt(X)));o!==l;)i.push(o),t.substr(Mt,2)===V?(o=V,Mt+=2):(o=l,0===Wt&&Zt(xe)),o===l&&(o=t.charAt(Mt),U.test(o)?Mt++:(o=l,0===Wt&&Zt(X)));return r=t.substring(r,Mt),Dt=e,e=r=Et(r)}function br(){var e,r,i,o,n;if(e=Mt,r=Mt,Wt++,t.substr(Mt,3)===j?(i=j,Mt+=3):(i=l,0===Wt&&Zt(ke)),Wt--,i===l?r=void 0:(Mt=r,r=l),r!==l){for(i=Mt,o=[],n=t.charAt(Mt),$.test(n)?Mt++:(n=l,0===Wt&&Zt(Ke));n!==l;)o.push(n),n=t.charAt(Mt),$.test(n)?Mt++:(n=l,0===Wt&&Zt(Ke));i=t.substring(i,Mt),Dt=e,e=Rt(i)}else Mt=e,e=l;return e}function Br(){var e,r,i;if(93===t.charCodeAt(Mt)?(e=g,Mt++):(e=l,0===Wt&&Zt(Q)),e===l){for(e=Mt,r=[],i=Sr();i!==l;)r.push(i),i=Sr();(i=Ar())!==l?e=r=[r,i]:(Mt=e,e=l)}return e}function vr(){var e,r,i,o;for(e=Mt,r=Mt,i=[],o=t.charAt(Mt),J.test(o)?Mt++:(o=l,0===Wt&&Zt(Se));o!==l;)i.push(o),o=t.charAt(Mt),J.test(o)?Mt++:(o=l,0===Wt&&Zt(Se));return r=t.substring(r,Mt),Dt=e,e=r=Vt(r)}function Cr(){var e,r,i;return e=Mt,58===t.charCodeAt(Mt)?(r=f,Mt++):(r=l,0===Wt&&Zt(ee)),r!==l?(i=hr(),Dt=e,e=jt(i)):(Mt=e,e=l),e===l&&(r="",Dt=e=Mt,e=r=Gt()),e}function Pr(){var e;return Wt++,e=t.charAt(Mt),H.test(e)?Mt++:(e=l,0===Wt&&Zt(Ie)),Wt--,e===l&&(0===Wt&&Zt(Le)),e}function xr(){var e,t;for(Wt++,e=[],t=Pr();t!==l;)e.push(t),t=Pr();return Wt--,t=l,0===Wt&&Zt(Ne),e}function kr(){var e,r,i;for(Wt++,e=Mt,r=[],i=t.charAt(Mt),W.test(i)?Mt++:(i=l,0===Wt&&Zt(_e));i!==l;)r.push(i),i=t.charAt(Mt),W.test(i)?Mt++:(i=l,0===Wt&&Zt(_e));return(i=Kr())!==l?e=r=[r,i]:(Mt=e,e=l),Wt--,e===l&&(r=l,0===Wt&&Zt(Fe)),e}function Kr(){var e;return Wt++,10===t.charCodeAt(Mt)?(e=M,Mt++):(e=l,0===Wt&&Zt(Re)),e===l&&(t.substr(Mt,2)===D?(e=D,Mt+=2):(e=l,0===Wt&&Zt(Oe)),e===l&&(e=t.charAt(Mt),z.test(e)?Mt++:(e=l,0===Wt&&Zt(Ve)))),Wt--,e===l&&(0===Wt&&Zt(Ee)),e}function wr(){var e,r,i;for(Wt++,e=Mt,r=[],i=t.charAt(Mt),W.test(i)?Mt++:(i=l,0===Wt&&Zt(_e));i!==l;)r.push(i),i=t.charAt(Mt),W.test(i)?Mt++:(i=l,0===Wt&&Zt(_e));return(i=Kr())!==l?e=r=[r,i]:(Mt=e,e=l),Wt--,e===l&&(r=l,0===Wt&&Zt(je)),e}function Sr(){var e;return Wt++,e=t.charAt(Mt),q.test(e)?Mt++:(e=l,0===Wt&&Zt(Me)),Wt--,e===l&&(0===Wt&&Zt(Ge)),e}function _r(){var e,r;return(e=wr())===l&&(e=Mt,Wt++,t.length>Mt?(r=t.charAt(Mt),Mt++):(r=l,0===Wt&&Zt(re)),Wt--,r===l?e=void 0:(Mt=e,e=l)),e}function Ar(){var e,r;return e=Mt,Wt++,t.length>Mt?(r=t.charAt(Mt),Mt++):(r=l,0===Wt&&Zt(re)),Wt--,r===l?e=void 0:(Mt=e,e=l),e}const Lr=new o.BitmarkPegParserHelper({parse:e,parserText:Ht,parserLocation:Nr}),Ir=new n.BitmarkPegParserProcessor({parse:e,parserText:Ht,parserLocation:Nr});function Nr(){const e=Qt(Dt,Mt);return e?(delete e.source,e):e}function Qt(e,t,r){var i=Xt(e),o=Xt(t),n={source:p,start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:o.line,column:o.column}};return p&&"function"==typeof p.offset&&(n.start=p.offset(n.start),n.end=p.offset(n.end)),n}if(s=c(),r.peg$library)return{peg$result:s,peg$currPos:Mt,peg$FAILED:l,peg$maxFailExpected:Jt,peg$maxFailPos:$t};if(s!==l&&Mt===t.length)return s;throw s!==l&&Mt<t.length&&Zt({type:"end"}),er(Jt,$t<t.length?t.charAt($t):null,$t<t.length?Qt($t,$t+1):Qt($t,$t))};const i=r(3029),o=r(3206),n=r(7124);r(7735);function a(e,t,r,i){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,a.prototype),o.expected=t,o.found=r,o.location=i,o.name="SyntaxError",o}function s(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}!function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(a,Error),a.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,i=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){i=e[r].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,n=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+n.line+":"+n.column;if(i){var l=this.location.end,p=s("",n.line.toString().length," "),u=i[o.line-1],c=(o.line===l.line?l.column:u.length+1)-o.column||1;t+="\n --\x3e "+a+"\n"+p+" |\n"+n.line+" | "+u+"\n"+p+" | "+s("",o.column-1," ")+s("",c,"^")}else t+="\n at "+a}return t},a.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?n(e[0])+"-"+n(e[1]):n(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function i(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+i(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+i(e)}))}function n(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+i(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+i(e)}))}function a(e){return r[e.type](e)}return"Expected "+function(e){var t,r,i=e.map(a);if(i.sort(),i.length>0){for(t=1,r=1;t<i.length;t++)i[t-1]!==i[t]&&(i[r]=i[t],r++);i.length=r}switch(i.length){case 1:return i[0];case 2:return i[0]+" or "+i[1];default:return i.slice(0,-1).join(", ")+", or "+i[i.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."};t.StartRules=["bitmark","bit","cardContent"]},8321:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StartRules=void 0,t.SyntaxError=p,t.parse=c;const i=r(7735),o="8.17.1";function n(e){let t=e||"";return t=i.Breakscape.unbreakscape(t),t}function a(e){e&&"object"==typeof e&&(delete e._tempParsingParent,delete e._tempListStart,Object.keys(e).forEach((t=>{a(e[t])})))}function s(e){return"undefined"!=typeof parser?parser.parse(e,{startRule:"bitmarkPlusString"}):c(e,{startRule:"bitmarkPlusString"})}function l(e){return"undefined"!=typeof parser?parser.parse(e,{startRule:"bitmarkMinusMinusString"}):c(e,{startRule:"bitmarkMinusMinusString"})}function p(e,t,r,i){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,p.prototype),o.expected=t,o.found=r,o.location=i,o.name="SyntaxError",o}function u(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function c(e,t){var r,i={},u=(t=void 0!==t?t:{}).grammarSource,c={version:Qo,bitmarkPlusPlus:function(){var e,t;if($o++,e=[],(t=Zo())!==i)for(;t!==i;)e.push(t),t=Zo();else e=i;e===i&&(e=function(){var e,t;return e=Go,t="",t=gi(),e=t,e}());$o--,e===i&&(t=i,0===$o&&Yo(lt));return e},bitmarkPlus:function(){var e,t;$o++,e=Go,t=wn(),t=ro(t),e=t,$o--,t=i,0===$o&&Yo(lt);return e},bitmarkMinusMinus:function(){var e,t;$o++,e=Go,t=En(),t=Ao(t),e=t,$o--,t=i,0===$o&&Yo(Ur);return e},bitmarkPlusString:function(){var e;$o++,e=wn(),$o--,0===$o&&Yo(Dt);return e},bitmarkMinusMinusString:En},y=Qo,g="|",d=":",f="### ",m="## ",T="# ",h="code",b="bitmark++",B="bitmark--",v="JavaScript",C="• ",P="•_ ",x="•",k=" ",K="I ",w="i ",S="•A ",_="•a ",A="•+ ",L="•- ",I="\t",N="image",F="#",E="@",R="width",O="height",V="alignment",j="captionAlign",G="left",M="center",D="right",U="=",$="𝑓",J="link:",W="xref:",H="►",z="footnote:",q="footnote*:",Y="var:",X="code:",Q="timer",Z="timer:",ee="duration:",te="P",re="color:",ie="bold",oe="italic",ne="light",ae="highlight",se="strike",le="subscript",pe="superscript",ue="ins",ce="del",ye="underline",ge="doubleUnderline",de="circle",fe="languageEm",me="userUnderline",Te="userDoubleUnderline",he="userStrike",be="userCircle",Be="userHighlight",ve="aqua",Ce="black",Pe="blue",xe="pink",ke="fuchsia",Ke="lightgrey",we="gray",Se="darkgray",_e="green",Ae="lime",Le="magenta",Ie="maroon",Ne="navy",Fe="olive",Ee="orange",Re="purple",Oe="red",Ve="silver",je="teal",Ge="violet",Me="white",De="yellow",Ue="*",$e="_",Je="`",We="!",He="[!",ze="]",qe="\n",Ye="\r\n",Xe="http",Qe="s",Ze="://",et="mailto:",tt=/^[ \t]/,rt=/^[0-9]/,it=/^[:|]/,ot=/^[\r\u2028-\u2029]/,nt=/^[^\n\r\u2028\u2029]/,at=/^[!#-;=?-[\]-_a-{}-~]/,st={type:"any"},lt=Ho("StyledText"),pt=Jo("|",!1),ut=Jo(":",!1),ct=Jo("### ",!1),yt=Jo("## ",!1),gt=Jo("# ",!1),dt=Jo("code",!1),ft=Wo([" ","\t"],!1,!1),mt=Jo("bitmark++",!1),Tt=Jo("bitmark--",!1),ht=Jo("JavaScript",!1),bt=Jo("• ",!1),Bt=Jo("•_ ",!1),vt=Jo("•",!1),Ct=Wo([["0","9"]],!1,!1),Pt=Jo(" ",!1),xt=Jo("I ",!1),kt=Jo("i ",!1),Kt=Jo("•A ",!1),wt=Jo("•a ",!1),St=Jo("•+ ",!1),_t=Jo("•- ",!1),At=Jo("\t",!1),Lt=Jo("image",!1),It=Jo("#",!1),Nt=Jo("@",!1),Ft=Wo([":","|"],!1,!1),Et=Jo("width",!1),Rt=Jo("height",!1),Ot=Jo("alignment",!1),Vt=Jo("captionAlign",!1),jt=Jo("left",!1),Gt=Jo("center",!1),Mt=Jo("right",!1),Dt=Ho("StyledString"),Ut=Jo("=",!1),$t=Jo("𝑓",!1),Jt=Jo("link:",!1),Wt=Jo("xref:",!1),Ht=Jo("►",!1),zt=Jo("footnote:",!1),qt=Jo("footnote*:",!1),Yt=Jo("var:",!1),Xt=Jo("code:",!1),Qt=Jo("timer",!1),Zt=Jo("timer:",!1),er=Jo("duration:",!1),tr=Jo("P",!1),rr=Jo("color:",!1),ir=Jo("bold",!1),or=Jo("italic",!1),nr=Jo("light",!1),ar=Jo("highlight",!1),sr=Jo("strike",!1),lr=Jo("subscript",!1),pr=Jo("superscript",!1),ur=Jo("ins",!1),cr=Jo("del",!1),yr=Jo("underline",!1),gr=Jo("doubleUnderline",!1),dr=Jo("circle",!1),fr=Jo("languageEm",!1),mr=Jo("userUnderline",!1),Tr=Jo("userDoubleUnderline",!1),hr=Jo("userStrike",!1),br=Jo("userCircle",!1),Br=Jo("userHighlight",!1),vr=Jo("aqua",!1),Cr=Jo("black",!1),Pr=Jo("blue",!1),xr=Jo("pink",!1),kr=Jo("fuchsia",!1),Kr=Jo("lightgrey",!1),wr=Jo("gray",!1),Sr=Jo("darkgray",!1),_r=Jo("green",!1),Ar=Jo("lime",!1),Lr=Jo("magenta",!1),Ir=Jo("maroon",!1),Nr=Jo("navy",!1),Fr=Jo("olive",!1),Er=Jo("orange",!1),Rr=Jo("purple",!1),Or=Jo("red",!1),Vr=Jo("silver",!1),jr=Jo("teal",!1),Gr=Jo("violet",!1),Mr=Jo("white",!1),Dr=Jo("yellow",!1),Ur=Ho("MinimalStyledText"),$r=Ho("MinimalStyledString"),Jr=Jo("*",!1),Wr=Jo("_",!1),Hr=Jo("`",!1),zr=Jo("!",!1),qr=Jo("[!",!1),Yr=Jo("]",!1),Xr=Ho("Line Terminator"),Qr=Jo("\n",!1),Zr=Jo("\r\n",!1),ei=Wo(["\r",["\u2028","\u2029"]],!1,!1),ti=(Ho("whitespace in line"),Ho("space"),Ho("language tag separator"),Ho("white space, separator"),Wo(["\t","\v","\f"," "," ","\ufeff"," "," "," ",[" "," "]," "," "," "],!1,!1),Wo(["\n","\r","\u2028","\u2029"],!1,!1),Wo(["\n","\r","\u2028","\u2029"],!0,!1)),ri=(Wo(["\n","\r","\u2028","\u2029","\t","\v","\f"," "," ","\ufeff"," "," "," ",[" "," "]," "," "," "],!0,!1),Jo("http",!1)),ii=Jo("s",!1),oi=Jo("://",!1),ni=Jo("mailto:",!1),ai=Wo(["!",["#",";"],"=",["?","["],["]","_"],["a","{"],["}","~"]],!1,!1),si=function(){return o},li=function(e){return Object.assign({},e)},pi=function(e){let t=Object.assign({},e);return a(t),t},ui=function(e){return Object.assign({},e)},ci=function(e){return Object.assign({},e)},yi=function(e){return Object.assign({},e)},gi=function(){return[]},di=function(e,t){return{type:"heading",content:l(t),attrs:{level:e.length-1}}},fi=function(e){return e},mi=function(e,t){return Object.assign(Object.assign({},e),{content:t})},Ti=function(){return{type:"codeBlock",language:""}},hi=function(e){return{type:"codeBlock",attrs:{language:e.trim().toLowerCase()}}},bi=function(e){return[{type:"text",text:n(e.trim())}]},Bi=function(e){return e},vi=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},Ci=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},Pi=function(e,t){let r=t[0]._tempListStart;return Object.assign(Object.assign({},e),{attrs:{start:r},content:t})},xi=function(e,t){let r=t[0]._tempListStart;return Object.assign(Object.assign({},e),{attrs:{start:r},content:t})},ki=function(e,t){let r=t[0]._tempListStart;return Object.assign(Object.assign({},e),{attrs:{start:r},content:t})},Ki=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},wi=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},Si=function(e,t){return Object.assign(Object.assign({},e),{content:t,attrs:{}})},_i=function(){return{type:"bulletList"}},Ai=function(){return{type:"noBulletList"}},Li=function(){return{type:"orderedList"}},Ii=function(){return{type:"orderedListRoman"}},Ni=function(){return{type:"orderedListRomanLower"}},Fi=function(){return{type:"letteredList"}},Ei=function(){return{type:"letteredListLower"}},Ri=function(){return{type:"taskList"}},Oi=function(e,t,r,i){return i},Vi=function(e,t,r,i){let o="bulletList";const n=e.match(/•([0-9]+)([Ii]?) /);let a=1;if(n&&(o="orderedList",n.length>1&&(a=Number(n[1])),n.length>2)){let e=n[2];"I"==e&&(o="orderedListRoman"),"i"==e&&(o="orderedListRomanLower")}"•_ "==e&&(o="noBulletList"),"•A "==e&&(o="letteredList"),"•a "==e&&(o="letteredListLower"),"•+ "!=e&&"•- "!=e||(o="taskList");let l=[{type:"paragraph",attrs:{},content:s((t+r.join("")).trim())}];if(i&&i[0]&&i[0]._tempParsingParent){let e={type:i[0]._tempParsingParent,attrs:{start:a},content:i};if((e.type.startsWith("orderedList")||e.type.startsWith("letteredList"))&&i[0]._tempListStart){const t=i[0]._tempListStart;t>1&&(e.attrs.start=t)}l.push(e)}let p="listItem",u=null;if("taskList"==o){p="taskItem";let t=!1;"•+ "==e&&(t=!0),u={checked:t}}return u?{type:p,attrs:u,content:l,_tempParsingParent:o,_tempListStart:a}:{type:p,content:l,_tempParsingParent:o,_tempListStart:a}},ji=function(e){return e},Gi=function(e){return e.join("")===ea},Mi=function(e){return e.length>ea.length},Di=function(e){Zn.push(ea),ea=e.join("")},Ui=function(){return ea=Zn.pop(),!0},$i=function(e){return{type:"paragraph",content:s(e.trim()),attrs:{}}},Ji=function(e){return{type:"paragraph",content:s(e.trim()),attrs:{}}},Wi=function(e){return{type:"paragraph",content:s(e.trim()),attrs:{}}},Hi=function(e){return e},zi=function(e,t,r){const i=Object.assign({},...r);let o=i.alignment||"center";delete i.alignment;let n=i.captionAlign||"left";delete i.captionAlign;let a=i.alt||null;delete i.alt;let s=i.caption||null;delete i.caption;let l=i.align||"center";delete i.align;let p=i.zoomDisabled||Boolean(i.zoomDisabled);return delete i.zoomDisabled,{type:e,attrs:Object.assign({alignment:o,textAlign:n,src:t,alt:a,title:s,class:l,zoomDisabled:p},i)}},qi=function(e){return e},Yi=function(e){return{comment:e}},Xi=function(e,t){return{[e]:parseInt(t)}},Qi=function(e,t){return{type:"error",msg:e+" must be an positive integer.",found:t}},Zi=function(e,t){return{[e]:t}},eo=function(e,t){return{[e]:t}},to=function(e){return{[e]:!0}},ro=function(e){return[{type:"paragraph",content:e,attrs:{}}]},io=function(e,t){return e?[e,...t.flat()]:t.flat()},oo=function(){return{type:"hardBreak"}},no=function(e){return{text:n(e),type:"text"}},ao=function(e){return{index:+e,type:"bit"}},so=function(e,t){return t||(t=[]),{marks:t,text:n(e),type:"text"}},lo=function(e){return{marks:[{type:"bold"}],text:n(e),type:"text"}},po=function(e){return{marks:[{type:"italic"}],text:n(e),type:"text"}},uo=function(e){return{marks:[{type:"light"}],text:n(e),type:"text"}},co=function(e){return{marks:[{type:"highlight"}],text:n(e),type:"text"}},yo=function(e){return{marks:[{type:"link",attrs:{href:(e.pr+e.t).trim(),target:"_blank"}}],text:e.t,type:"text"}},go=function(e){return e},fo=function(e){return{type:"link",attrs:{href:e.trim(),target:"_blank"}}},mo=function(e,t){return{type:"xref",attrs:{xref:e.trim(),reference:t.trim()}}},To=function(e){return{type:"xref",attrs:{xref:e.trim(),reference:""}}},ho=function(e){return{type:"ref",attrs:{reference:e.trim()}}},bo=function(e){return{type:"footnote",attrs:{content:s(e.trim())}}},Bo=function(e){return{type:"footnote*",attrs:{content:s(e.trim())}}},vo=function(e){return{type:"var",attrs:{name:e.trim()}}},Co=function(){return{type:"code",attrs:{language:"plain text"}}},Po=function(e){return{type:"code",attrs:{language:e.trim().toLowerCase()}}},xo=function(){return{type:"timer",attrs:{name:""}}},ko=function(e){return{type:"timer",attrs:{name:e.trim()}}},Ko=function(e){return{type:"duration",attrs:{duration:e}}},wo=function(e){return{type:"color",attrs:{color:e}}},So=function(e){return{type:e}},_o=function(e){return{type:"comment",comment:e}},Ao=function(e){return[{type:"paragraph",content:e,attrs:{}}]},Lo=function(e,t){return e?[e,...t.flat()]:t.flat()},Io=function(e){return{type:"hardBreak"}},No=function(e){return{text:n(e),type:"text"}},Fo=function(e){return{index:+e,type:"bit"}},Eo=function(e){return{marks:[{type:"bold"}],text:n(e),type:"text"}},Ro=function(e){return{marks:[{type:"italic"}],text:n(e),type:"text"}},Oo=function(e){return{marks:[{type:"light"}],text:n(e),type:"text"}},Vo=function(e){return{marks:[{type:"highlight"}],text:n(e),type:"text"}},jo=function(e,t){return{pr:e,t}},Go=0|t.peg$currPos,Mo=[{line:1,column:1}],Do=Go,Uo=t.peg$maxFailExpected||[],$o=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in c))throw new Error("Can't start parsing from rule \""+t.startRule+'".');y=c[t.startRule]}function Jo(e,t){return{type:"literal",text:e,ignoreCase:t}}function Wo(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ho(e){return{type:"other",description:e}}function zo(t){var r,i=Mo[t];if(i)return i;if(t>=Mo.length)r=Mo.length-1;else for(r=t;!Mo[--r];);for(i={line:(i=Mo[r]).line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return Mo[t]=i,i}function qo(e,t,r){var i=zo(e),o=zo(t),n={source:u,start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:o.line,column:o.column}};return r&&u&&"function"==typeof u.offset&&(n.start=u.offset(n.start),n.end=u.offset(n.end)),n}function Yo(e){Go<Do||(Go>Do&&(Do=Go,Uo=[]),Uo.push(e))}function Xo(e,t,r){return new p(p.buildMessage(e,t),e,t,r)}function Qo(){var t,r,o;for(t=Go,r=[],e.length>Go?(o=e.charAt(Go),Go++):(o=i,0===$o&&Yo(st));o!==i;)r.push(o),e.length>Go?(o=e.charAt(Go),Go++):(o=i,0===$o&&Yo(st));return t=r=si()}function Zo(){var t,r;return t=Go,r=function(){var t,r,o,n,a;if(t=Go,r=rn(),r!==i){for(o=Go,n=[],a=Yn();a!==i;)n.push(a),a=Yn();o=e.substring(o,Go),(n=Xn())!==i?((a=qn())===i&&(a=null),t=di(r,o)):(Go=t,t=i)}else Go=t,t=i;return t}(),r!==i&&(r=li(r)),(t=r)===i&&(t=Go,r=function(){var e,t,r,o;if(e=Go,t=function(){var e,t,r;e=Go,t=Go,$o++,r=sn(),$o--,r!==i?(Go=t,t=void 0):t=i;t!==i&&(t=_i());return e=t,e}(),t!==i){if(r=[],(o=mn())!==i)for(;o!==i;)r.push(o),o=mn();else r=i;r!==i?((o=qn())===i&&(o=null),e=vi(t,r)):(Go=e,e=i)}else Go=e,e=i;if(e===i){if(e=Go,t=function(){var e,t,r;e=Go,t=Go,$o++,r=ln(),$o--,r!==i?(Go=t,t=void 0):t=i;t!==i&&(t=Ai());return e=t,e}(),t!==i){if(r=[],(o=mn())!==i)for(;o!==i;)r.push(o),o=mn();else r=i;r!==i?((o=qn())===i&&(o=null),e=Ci(t,r)):(Go=e,e=i)}else Go=e,e=i;if(e===i){if(e=Go,t=function(){var e,t,r;e=Go,t=Go,$o++,r=pn(),$o--,r!==i?(Go=t,t=void 0):t=i;t!==i&&(t=Li());return e=t,e}(),t!==i){if(r=[],(o=mn())!==i)for(;o!==i;)r.push(o),o=mn();else r=i;r!==i?((o=qn())===i&&(o=null),e=Pi(t,r)):(Go=e,e=i)}else Go=e,e=i;if(e===i){if(e=Go,t=function(){var e,t,r;e=Go,t=Go,$o++,r=un(),$o--,r!==i?(Go=t,t=void 0):t=i;t!==i&&(t=Ii());return e=t,e}(),t!==i){if(r=[],(o=mn())!==i)for(;o!==i;)r.push(o),o=mn();else r=i;r!==i?((o=qn())===i&&(o=null),e=xi(t,r)):(Go=e,e=i)}else Go=e,e=i;if(e===i){if(e=Go,t=function(){var e,t,r;e=Go,t=Go,$o++,r=cn(),$o--,r!==i?(Go=t,t=void 0):t=i;t!==i&&(t=Ni());return e=t,e}(),t!==i){if(r=[],(o=mn())!==i)for(;o!==i;)r.push(o),o=mn();else r=i;r!==i?((o=qn())===i&&(o=null),e=ki(t,r)):(Go=e,e=i)}else Go=e,e=i;if(e===i){if(e=Go,t=function(){var e,t,r;e=Go,t=Go,$o++,r=yn(),$o--,r!==i?(Go=t,t=void 0):t=i;t!==i&&(t=Fi());return e=t,e}(),t!==i){if(r=[],(o=mn())!==i)for(;o!==i;)r.push(o),o=mn();else r=i;r!==i?((o=qn())===i&&(o=null),e=Ki(t,r)):(Go=e,e=i)}else Go=e,e=i;if(e===i){if(e=Go,t=function(){var e,t,r;e=Go,t=Go,$o++,r=gn(),$o--,r!==i?(Go=t,t=void 0):t=i;t!==i&&(t=Ei());return e=t,e}(),t!==i){if(r=[],(o=mn())!==i)for(;o!==i;)r.push(o),o=mn();else r=i;r!==i?((o=qn())===i&&(o=null),e=wi(t,r)):(Go=e,e=i)}else Go=e,e=i;if(e===i)if(e=Go,t=function(){var e,t,r;e=Go,t=Go,$o++,r=dn(),$o--,r!==i?(Go=t,t=void 0):t=i;t!==i&&(t=Ri());return e=t,e}(),t!==i){if(r=[],(o=mn())!==i)for(;o!==i;)r.push(o),o=mn();else r=i;r!==i?((o=qn())===i&&(o=null),e=Si(t,r)):(Go=e,e=i)}else Go=e,e=i}}}}}}return e}(),r!==i&&(r=pi(r)),(t=r)===i&&(t=Go,(r=Pn())!==i&&(r=ui(r)),(t=r)===i&&(t=Go,r=function(){var t,r,o;t=Go,r=nn(),r!==i?(o=function(){var t,r,o,n;t=Go,r=Go,o=[],n=an();for(;n!==i;)o.push(n),n=an();return r=e.substring(r,Go),r=bi(r),t=r,t}(),t=mi(r,o)):(Go=t,t=i);return t}(),r!==i&&(r=ci(r)),(t=r)===i&&(t=Go,r=function(){var e,t,r;e=Go,t=Go,$o++,r=en(),$o--,r===i?t=void 0:(Go=t,t=i);t!==i&&(r=bn())!==i?e=$i(r):(Go=e,e=i);e===i&&(e=Go,(t=vn())!==i&&(r=bn())!==i?e=Ji(r):(Go=e,e=i),e===i&&(e=Go,(t=vn())!==i?e=Wi(r=""):(Go=e,e=i)));return e}(),r!==i&&(r=yi(r)),t=r)))),t}function en(){var e;return(e=rn())===i&&(e=fn())===i&&(e=Pn())===i&&(e=nn())===i&&(e=vn()),e}function tn(){var t;return 124===e.charCodeAt(Go)?(t=g,Go++):(t=i,0===$o&&Yo(pt)),t}function rn(){var t;return e.substr(Go,4)===f?(t=f,Go+=4):(t=i,0===$o&&Yo(ct)),t===i&&(e.substr(Go,3)===m?(t=m,Go+=3):(t=i,0===$o&&Yo(yt)),t===i&&(e.substr(Go,2)===T?(t=T,Go+=2):(t=i,0===$o&&Yo(gt)))),t}function on(){var t,r;return t=Go,tn()!==i?(r=function(){var t;return e.substr(Go,4)===h?(t=h,Go+=4):(t=i,0===$o&&Yo(dt)),t}(),r!==i?t=fi(r):(Go=t,t=i)):(Go=t,t=i),t}function nn(){var t,r,o,n,a,s,l;if(t=Go,on()!==i){for(r=Go,o=Go,n=[],a=e.charAt(Go),tt.test(a)?Go++:(a=i,0===$o&&Yo(ft));a!==i;)n.push(a),a=e.charAt(Go),tt.test(a)?Go++:(a=i,0===$o&&Yo(ft));(a=Xn())!==i?o=n=[n,a]:(Go=o,o=i),(r=o!==i?e.substring(r,Go):o)!==i?t=Ti():(Go=t,t=i)}else Go=t,t=i;if(t===i)if(t=Go,on()!==i)if(58===e.charCodeAt(Go)?(r=d,Go++):(r=i,0===$o&&Yo(ut)),r!==i)if(o=function(){var t,r,o;e.substr(Go,9)===b?(t=b,Go+=9):(t=i,0===$o&&Yo(mt));if(t===i&&(e.substr(Go,9)===B?(t=B,Go+=9):(t=i,0===$o&&Yo(Tt)),t===i&&(e.substr(Go,10)===v?(t=v,Go+=10):(t=i,0===$o&&Yo(ht)),t===i))){if(t=Go,r=[],(o=Yn())!==i)for(;o!==i;)r.push(o),o=Yn();else r=i;(t=r!==i?e.substring(t,Go):r)===i&&(t="")}return t}(),o!==i){for(n=Go,a=Go,s=[],l=e.charAt(Go),tt.test(l)?Go++:(l=i,0===$o&&Yo(ft));l!==i;)s.push(l),l=e.charAt(Go),tt.test(l)?Go++:(l=i,0===$o&&Yo(ft));(l=Xn())!==i?a=s=[s,l]:(Go=a,a=i),(n=a!==i?e.substring(n,Go):a)!==i?t=hi(o):(Go=t,t=i)}else Go=t,t=i;else Go=t,t=i;else Go=t,t=i;return t}function an(){var t,r,o,n,a,s;if(t=Go,r=Go,$o++,o=en(),$o--,o===i?r=void 0:(Go=r,r=i),r!==i){if(o=Go,n=Go,a=[],(s=Yn())!==i)for(;s!==i;)a.push(s),s=Yn();else a=i;a!==i&&(s=Xn())!==i?n=a=[a,s]:(Go=n,n=i),(o=n!==i?e.substring(o,Go):n)!==i?t=Bi(o):(Go=t,t=i)}else Go=t,t=i;return t===i&&(t=qn()),t}function sn(){var t;return e.substr(Go,2)===C?(t=C,Go+=2):(t=i,0===$o&&Yo(bt)),t}function ln(){var t;return e.substr(Go,3)===P?(t=P,Go+=3):(t=i,0===$o&&Yo(Bt)),t}function pn(){var t,r,o,n,a;if(t=Go,r=Go,8226===e.charCodeAt(Go)?(o=x,Go++):(o=i,0===$o&&Yo(vt)),o!==i){if(n=[],a=e.charAt(Go),rt.test(a)?Go++:(a=i,0===$o&&Yo(Ct)),a!==i)for(;a!==i;)n.push(a),a=e.charAt(Go),rt.test(a)?Go++:(a=i,0===$o&&Yo(Ct));else n=i;n!==i?(32===e.charCodeAt(Go)?(a=k,Go++):(a=i,0===$o&&Yo(Pt)),a!==i?r=o=[o,n,a]:(Go=r,r=i)):(Go=r,r=i)}else Go=r,r=i;return t=r!==i?e.substring(t,Go):r}function un(){var t,r,o,n,a;if(t=Go,r=Go,8226===e.charCodeAt(Go)?(o=x,Go++):(o=i,0===$o&&Yo(vt)),o!==i){if(n=[],a=e.charAt(Go),rt.test(a)?Go++:(a=i,0===$o&&Yo(Ct)),a!==i)for(;a!==i;)n.push(a),a=e.charAt(Go),rt.test(a)?Go++:(a=i,0===$o&&Yo(Ct));else n=i;n!==i?(e.substr(Go,2)===K?(a=K,Go+=2):(a=i,0===$o&&Yo(xt)),a!==i?r=o=[o,n,a]:(Go=r,r=i)):(Go=r,r=i)}else Go=r,r=i;return t=r!==i?e.substring(t,Go):r}function cn(){var t,r,o,n,a;if(t=Go,r=Go,8226===e.charCodeAt(Go)?(o=x,Go++):(o=i,0===$o&&Yo(vt)),o!==i){if(n=[],a=e.charAt(Go),rt.test(a)?Go++:(a=i,0===$o&&Yo(Ct)),a!==i)for(;a!==i;)n.push(a),a=e.charAt(Go),rt.test(a)?Go++:(a=i,0===$o&&Yo(Ct));else n=i;n!==i?(e.substr(Go,2)===w?(a=w,Go+=2):(a=i,0===$o&&Yo(kt)),a!==i?r=o=[o,n,a]:(Go=r,r=i)):(Go=r,r=i)}else Go=r,r=i;return t=r!==i?e.substring(t,Go):r}function yn(){var t;return e.substr(Go,3)===S?(t=S,Go+=3):(t=i,0===$o&&Yo(Kt)),t}function gn(){var t;return e.substr(Go,3)===_?(t=_,Go+=3):(t=i,0===$o&&Yo(wt)),t}function dn(){var t;return e.substr(Go,3)===A?(t=A,Go+=3):(t=i,0===$o&&Yo(St)),t===i&&(e.substr(Go,3)===L?(t=L,Go+=3):(t=i,0===$o&&Yo(_t))),t}function fn(){var e;return(e=sn())===i&&(e=ln())===i&&(e=pn())===i&&(e=un())===i&&(e=cn())===i&&(e=yn())===i&&(e=gn())===i&&(e=dn()),e}function mn(){var t,r,o,n,a,s,l,p;if(t=Go,hn()!==i)if((r=fn())!==i){for(o=Go,n=Go,a=[],s=Go,l=Go,$o++,p=qn(),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);s!==i;)a.push(s),s=Go,l=Go,$o++,p=qn(),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);for((s=qn())===i&&(s=null),n=a=[a,s],o=e.substring(o,Go),n=[],a=Tn();a!==i;)n.push(a),a=Tn();if(a=Go,s=function(){var t,r,o,n;t=Go,$o++,r=Go,o=[],9===e.charCodeAt(Go)?(n=I,Go++):(n=i,0===$o&&Yo(At));if(n!==i)for(;n!==i;)o.push(n),9===e.charCodeAt(Go)?(n=I,Go++):(n=i,0===$o&&Yo(At));else o=i;o!==i?(n=(n=Mi(o))?void 0:i)!==i?r=Di(o):(Go=r,r=i):(Go=r,r=i);$o--,r!==i?(Go=t,t=void 0):t=i;return t}(),s!==i){for(l=[],p=mn();p!==i;)l.push(p),p=mn();p=function(){var e;e=Ui(),e=e?void 0:i;return e}(),p!==i?a=Oi(r,o,n,l):(Go=a,a=i)}else Go=a,a=i;a===i&&(a=null),t=Vi(r,o,n,a)}else Go=t,t=i;else Go=t,t=i;return t}function Tn(){var t,r,o,n,a,s,l,p,u,c;if(t=Go,r=Go,$o++,o=function(){var t,r,o;t=Go,r=[],o=e.charAt(Go),tt.test(o)?Go++:(o=i,0===$o&&Yo(ft));for(;o!==i;)r.push(o),o=e.charAt(Go),tt.test(o)?Go++:(o=i,0===$o&&Yo(ft));o=qn(),o!==i?t=r=[r,o]:(Go=t,t=i);return t}(),$o--,o===i?r=void 0:(Go=r,r=i),r!==i)if((o=hn())!==i)if(n=Go,$o++,a=fn(),$o--,a===i?n=void 0:(Go=n,n=i),n!==i){if(a=Go,s=Go,l=[],p=Go,u=Go,$o++,c=qn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i?(e.length>Go?(c=e.charAt(Go),Go++):(c=i,0===$o&&Yo(st)),c!==i?p=u=[u,c]:(Go=p,p=i)):(Go=p,p=i),p!==i)for(;p!==i;)l.push(p),p=Go,u=Go,$o++,c=qn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i?(e.length>Go?(c=e.charAt(Go),Go++):(c=i,0===$o&&Yo(st)),c!==i?p=u=[u,c]:(Go=p,p=i)):(Go=p,p=i);else l=i;l!==i&&(p=Xn())!==i?s=l=[l,p]:(Go=s,s=i),(a=s!==i?e.substring(a,Go):s)!==i?t=ji(a):(Go=t,t=i)}else Go=t,t=i;else Go=t,t=i;else Go=t,t=i;return t}function hn(){var t,r,o;for(t=Go,r=[],9===e.charCodeAt(Go)?(o=I,Go++):(o=i,0===$o&&Yo(At));o!==i;)r.push(o),9===e.charCodeAt(Go)?(o=I,Go++):(o=i,0===$o&&Yo(At));return(o=(o=Gi(r))?void 0:i)!==i?t=r=[r,o]:(Go=t,t=i),t}function bn(){var t,r,o;if(t=Go,r=[],(o=Bn())!==i)for(;o!==i;)r.push(o),o=Bn();else r=i;return t=r!==i?e.substring(t,Go):r}function Bn(){var t,r,o,n,a,s;if(t=Go,r=Go,$o++,o=en(),$o--,o===i?r=void 0:(Go=r,r=i),r!==i){if(o=Go,n=Go,a=[],(s=Yn())!==i)for(;s!==i;)a.push(s),s=Yn();else a=i;a!==i&&(s=Xn())!==i?n=a=[a,s]:(Go=n,n=i),(o=n!==i?e.substring(o,Go):n)!==i?t=r=[r,o]:(Go=t,t=i)}else Go=t,t=i;return t===i&&(t=qn()),t}function vn(){var t,r,o,n,a,s;if(t=Go,(r=tn())!==i){for(o=Go,n=Go,a=[],s=e.charAt(Go),tt.test(s)?Go++:(s=i,0===$o&&Yo(ft));s!==i;)a.push(s),s=e.charAt(Go),tt.test(s)?Go++:(s=i,0===$o&&Yo(ft));(s=Xn())!==i?n=a=[a,s]:(Go=n,n=i),(o=n!==i?e.substring(o,Go):n)!==i?((n=qn())===i&&(n=null),t=r=[r,o,n]):(Go=t,t=i)}else Go=t,t=i;return t}function Cn(){var t,r;return t=Go,tn()!==i?(r=function(){var t;return e.substr(Go,5)===N?(t=N,Go+=5):(t=i,0===$o&&Yo(Lt)),t}(),r!==i?t=Hi(r):(Go=t,t=i)):(Go=t,t=i),t}function Pn(){var t,r,o,n,a,s,l,p,u,c;if(t=Go,(r=Cn())!==i)if(58===e.charCodeAt(Go)?(o=d,Go++):(o=i,0===$o&&Yo(ut)),o!==i)if(32===e.charCodeAt(Go)?(n=k,Go++):(n=i,0===$o&&Yo(Pt)),n===i&&(n=null),a=function(){var t,r,o,n,a,s,l,p,u;t=Go,r=Go,e.substr(Go,4)===Xe?(o=Xe,Go+=4):(o=i,0===$o&&Yo(ri));if(o!==i)if(115===e.charCodeAt(Go)?(n=Qe,Go++):(n=i,0===$o&&Yo(ii)),n===i&&(n=null),e.substr(Go,3)===Ze?(a=Ze,Go+=3):(a=i,0===$o&&Yo(oi)),a!==i){for(s=[],l=Go,p=Go,$o++,u=tn(),$o--,u===i?p=void 0:(Go=p,p=i),p!==i&&(u=Qn())!==i?l=p=[p,u]:(Go=l,l=i);l!==i;)s.push(l),l=Go,p=Go,$o++,u=tn(),$o--,u===i?p=void 0:(Go=p,p=i),p!==i&&(u=Qn())!==i?l=p=[p,u]:(Go=l,l=i);r=o=[o,n,a,s]}else Go=r,r=i;else Go=r,r=i;t=r!==i?e.substring(t,Go):r;return t}(),a!==i)if(tn()!==i){for(s=function(){var e,t,r;e=Go,t=[],r=xn();for(;r!==i;)t.push(r),r=xn();return t=qi(t),e=t,e}(),l=Go,p=Go,u=[],c=e.charAt(Go),tt.test(c)?Go++:(c=i,0===$o&&Yo(ft));c!==i;)u.push(c),c=e.charAt(Go),tt.test(c)?Go++:(c=i,0===$o&&Yo(ft));(c=Xn())!==i?p=u=[u,c]:(Go=p,p=i),(l=p!==i?e.substring(l,Go):p)!==i?((p=qn())===i&&(p=null),t=zi(r,a,s)):(Go=t,t=i)}else Go=t,t=i;else Go=t,t=i;else Go=t,t=i;else Go=t,t=i;return t}function xn(){var t,r,o,n,a,s,l,p,u,c;if(t=Go,35===e.charCodeAt(Go)?(r=F,Go++):(r=i,0===$o&&Yo(It)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=Yi(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,64===e.charCodeAt(Go)?(r=E,Go++):(r=i,0===$o&&Yo(Nt)),r===i&&(r=null),(o=kn())!==i)if(58===e.charCodeAt(Go)?(n=d,Go++):(n=i,0===$o&&Yo(ut)),n!==i){for(a=[],32===e.charCodeAt(Go)?(s=k,Go++):(s=i,0===$o&&Yo(Pt));s!==i;)a.push(s),32===e.charCodeAt(Go)?(s=k,Go++):(s=i,0===$o&&Yo(Pt));if(s=Go,l=[],p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i?(c=e.charAt(Go),rt.test(c)?Go++:(c=i,0===$o&&Yo(Ct)),c!==i?p=u=[u,c]:(Go=p,p=i)):(Go=p,p=i),p!==i)for(;p!==i;)l.push(p),p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i?(c=e.charAt(Go),rt.test(c)?Go++:(c=i,0===$o&&Yo(Ct)),c!==i?p=u=[u,c]:(Go=p,p=i)):(Go=p,p=i);else l=i;(s=l!==i?e.substring(s,Go):l)!==i&&(l=tn())!==i?t=Xi(o,s):(Go=t,t=i)}else Go=t,t=i;else Go=t,t=i;if(t===i){if(t=Go,64===e.charCodeAt(Go)?(r=E,Go++):(r=i,0===$o&&Yo(Nt)),r===i&&(r=null),(o=kn())!==i)if(58===e.charCodeAt(Go)?(n=d,Go++):(n=i,0===$o&&Yo(ut)),n!==i){for(a=[],32===e.charCodeAt(Go)?(s=k,Go++):(s=i,0===$o&&Yo(Pt));s!==i;)a.push(s),32===e.charCodeAt(Go)?(s=k,Go++):(s=i,0===$o&&Yo(Pt));for(s=Go,l=[],p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i&&(c=Yn())!==i?p=u=[u,c]:(Go=p,p=i);p!==i;)l.push(p),p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i&&(c=Yn())!==i?p=u=[u,c]:(Go=p,p=i);s=e.substring(s,Go),(l=tn())!==i?t=Qi(o,s):(Go=t,t=i)}else Go=t,t=i;else Go=t,t=i;if(t===i){if(t=Go,64===e.charCodeAt(Go)?(r=E,Go++):(r=i,0===$o&&Yo(Nt)),r===i&&(r=null),(o=Kn())!==i)if(58===e.charCodeAt(Go)?(n=d,Go++):(n=i,0===$o&&Yo(ut)),n!==i){for(a=[],32===e.charCodeAt(Go)?(s=k,Go++):(s=i,0===$o&&Yo(Pt));s!==i;)a.push(s),32===e.charCodeAt(Go)?(s=k,Go++):(s=i,0===$o&&Yo(Pt));s=function(){var t;e.substr(Go,4)===G?(t=G,Go+=4):(t=i,0===$o&&Yo(jt));t===i&&(e.substr(Go,6)===M?(t=M,Go+=6):(t=i,0===$o&&Yo(Gt)),t===i&&(e.substr(Go,5)===D?(t=D,Go+=5):(t=i,0===$o&&Yo(Mt))));return t}(),s!==i&&(l=tn())!==i?t=Zi(o,s):(Go=t,t=i)}else Go=t,t=i;else Go=t,t=i;if(t===i){for(t=Go,64===e.charCodeAt(Go)?(r=E,Go++):(r=i,0===$o&&Yo(Nt)),r===i&&(r=null),o=Go,n=[],a=Go,s=Go,$o++,l=e.charAt(Go),it.test(l)?Go++:(l=i,0===$o&&Yo(Ft)),l===i&&(l=Go,(p=Kn())!==i?(58===e.charCodeAt(Go)?(u=d,Go++):(u=i,0===$o&&Yo(ut)),u!==i?l=p=[p,u]:(Go=l,l=i)):(Go=l,l=i)),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=e.charAt(Go),it.test(l)?Go++:(l=i,0===$o&&Yo(Ft)),l===i&&(l=Go,(p=Kn())!==i?(58===e.charCodeAt(Go)?(u=d,Go++):(u=i,0===$o&&Yo(ut)),u!==i?l=p=[p,u]:(Go=l,l=i)):(Go=l,l=i)),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);if(o=e.substring(o,Go),58===e.charCodeAt(Go)?(n=d,Go++):(n=i,0===$o&&Yo(ut)),n!==i){for(32===e.charCodeAt(Go)?(a=k,Go++):(a=i,0===$o&&Yo(Pt)),a===i&&(a=null),s=Go,l=[],p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i&&(c=Yn())!==i?p=u=[u,c]:(Go=p,p=i);p!==i;)l.push(p),p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i&&(c=Yn())!==i?p=u=[u,c]:(Go=p,p=i);s=e.substring(s,Go),(l=tn())!==i?t=eo(o,s):(Go=t,t=i)}else Go=t,t=i;if(t===i){for(t=Go,64===e.charCodeAt(Go)?(r=E,Go++):(r=i,0===$o&&Yo(Nt)),r===i&&(r=null),o=Go,n=[],a=Go,s=Go,$o++,(l=tn())===i&&(l=Go,(p=Kn())!==i?(58===e.charCodeAt(Go)?(u=d,Go++):(u=i,0===$o&&Yo(ut)),u!==i?l=p=[p,u]:(Go=l,l=i)):(Go=l,l=i)),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,(l=tn())===i&&(l=Go,(p=Kn())!==i?(58===e.charCodeAt(Go)?(u=d,Go++):(u=i,0===$o&&Yo(ut)),u!==i?l=p=[p,u]:(Go=l,l=i)):(Go=l,l=i)),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=to(o):(Go=t,t=i)}}}}}return t}function kn(){var t;return e.substr(Go,5)===R?(t=R,Go+=5):(t=i,0===$o&&Yo(Et)),t===i&&(e.substr(Go,6)===O?(t=O,Go+=6):(t=i,0===$o&&Yo(Rt))),t}function Kn(){var t;return e.substr(Go,9)===V?(t=V,Go+=9):(t=i,0===$o&&Yo(Ot)),t===i&&(e.substr(Go,12)===j?(t=j,Go+=12):(t=i,0===$o&&Yo(Vt))),t}function wn(){var e,t,r,o;for(e=Go,(t=Sn())===i&&(t=null),r=[],(o=In())===i&&(o=Sn());o!==i;)r.push(o),(o=In())===i&&(o=Sn());return e=io(t,r)}function Sn(){var t,r,o,n,a,s,l;if(t=Go,(r=qn())!==i&&(r=oo()),(t=r)===i){if(t=Go,r=Go,o=[],n=Go,(a=Nn())===i&&(a=null),s=Go,$o++,l=In(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?n=a=[a,s,l]:(Go=n,n=i),n===i&&(n=Go,(a=Nn())!==i?(s=Go,$o++,l=In(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?n=a=[a,s]:(Go=n,n=i)):(Go=n,n=i)),n!==i)for(;n!==i;)o.push(n),n=Go,(a=Nn())===i&&(a=null),s=Go,$o++,l=In(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?n=a=[a,s,l]:(Go=n,n=i),n===i&&(n=Go,(a=Nn())!==i?(s=Go,$o++,l=In(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?n=a=[a,s]:(Go=n,n=i)):(Go=n,n=i));else o=i;(r=o!==i?e.substring(r,Go):o)!==i&&(r=no(r)),t=r}return t}function _n(){var t;return 61===e.charCodeAt(Go)?(t=U,Go++):(t=i,0===$o&&Yo(Ut)),t}function An(){var t;return e.substr(Go,2)===$?(t=$,Go+=2):(t=i,0===$o&&Yo($t)),t}function Ln(){var e,t,r;return e=Go,(t=_n())!==i&&(r=_n())!==i?e=t=[t,r]:(Go=e,e=i),e}function In(){var t,r,o,n,a,s,l,p,u,c;if(t=Go,(r=Jn())!==i){if(o=Go,n=[],a=e.charAt(Go),rt.test(a)?Go++:(a=i,0===$o&&Yo(Ct)),a!==i)for(;a!==i;)n.push(a),a=e.charAt(Go),rt.test(a)?Go++:(a=i,0===$o&&Yo(Ct));else n=i;(o=n!==i?e.substring(o,Go):n)!==i&&(n=Wn())!==i?t=ao(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,(r=Ln())!==i){for(32===e.charCodeAt(Go)?(o=k,Go++):(o=i,0===$o&&Yo(Pt)),o===i&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=Ln())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);s!==i;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=Ln())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=k,Go++):(a=i,0===$o&&Yo(Pt)),a===i&&(a=null),(s=Ln())!==i?(l=function(){var t,r,o,n;t=Go,124===e.charCodeAt(Go)?(r=g,Go++):(r=i,0===$o&&Yo(pt));if(r!==i){if(o=[],(n=Fn())!==i)for(;n!==i;)o.push(n),n=Fn();else o=i;o!==i?t=go(o):(Go=t,t=i)}else Go=t,t=i;return t}(),l!==i?t=so(n,l):(Go=t,t=i)):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,(r=Mn())!==i){for(32===e.charCodeAt(Go)?(o=k,Go++):(o=i,0===$o&&Yo(Pt)),o===i&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=Mn())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);s!==i;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=Mn())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=k,Go++):(a=i,0===$o&&Yo(Pt)),a===i&&(a=null),(s=Mn())!==i?t=lo(n):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,(r=Dn())!==i){for(32===e.charCodeAt(Go)?(o=k,Go++):(o=i,0===$o&&Yo(Pt)),o===i&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=Dn())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);s!==i;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=Dn())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=k,Go++):(a=i,0===$o&&Yo(Pt)),a===i&&(a=null),(s=Dn())!==i?t=po(n):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,(r=Un())!==i){for(32===e.charCodeAt(Go)?(o=k,Go++):(o=i,0===$o&&Yo(Pt)),o===i&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=Un())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);s!==i;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=Un())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=k,Go++):(a=i,0===$o&&Yo(Pt)),a===i&&(a=null),(s=Un())!==i?t=uo(n):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,(r=$n())!==i){for(32===e.charCodeAt(Go)?(o=k,Go++):(o=i,0===$o&&Yo(Pt)),o===i&&(o=null),n=Go,a=[],s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=$n())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);s!==i;)a.push(s),s=Go,l=Go,$o++,p=Go,32===e.charCodeAt(Go)?(u=k,Go++):(u=i,0===$o&&Yo(Pt)),u===i&&(u=null),(c=$n())!==i?p=u=[u,c]:(Go=p,p=i),$o--,p===i?l=void 0:(Go=l,l=i),l!==i?(e.length>Go?(p=e.charAt(Go),Go++):(p=i,0===$o&&Yo(st)),p!==i?s=l=[l,p]:(Go=s,s=i)):(Go=s,s=i);n=e.substring(n,Go),32===e.charCodeAt(Go)?(a=k,Go++):(a=i,0===$o&&Yo(Pt)),a===i&&(a=null),(s=$n())!==i?t=co(n):(Go=t,t=i)}else Go=t,t=i;t===i&&(t=Go,r=function(){var t,r,o,n,a,s,l;t=Go,r=Go,o=Go,e.substr(Go,4)===Xe?(n=Xe,Go+=4):(n=i,0===$o&&Yo(ri));n!==i?(115===e.charCodeAt(Go)?(a=Qe,Go++):(a=i,0===$o&&Yo(ii)),a===i&&(a=null),e.substr(Go,3)===Ze?(s=Ze,Go+=3):(s=i,0===$o&&Yo(oi)),s!==i?o=n=[n,a,s]:(Go=o,o=i)):(Go=o,o=i);o===i&&(e.substr(Go,7)===et?(o=et,Go+=7):(o=i,0===$o&&Yo(ni)));r=o!==i?e.substring(r,Go):o;if(r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Qn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Qn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),t=jo(r,o)}else Go=t,t=i;return t}(),r!==i&&(r=yo(r)),t=r)}}}}}return t}function Nn(){var t,r,o,n,a;if(t=Go,r=Go,(o=Ln())!==i){if(n=[],(a=_n())!==i)for(;a!==i;)n.push(a),a=_n();else n=i;n!==i?r=o=[o,n]:(Go=r,r=i)}else Go=r,r=i;if((t=r!==i?e.substring(t,Go):r)===i){if(t=Go,r=Go,o=function(){var e,t,r;return e=Go,(t=An())!==i&&(r=An())!==i?e=t=[t,r]:(Go=e,e=i),e}(),o!==i){if(n=[],(a=An())!==i)for(;a!==i;)n.push(a),a=An();else n=i;n!==i?r=o=[o,n]:(Go=r,r=i)}else Go=r,r=i;if((t=r!==i?e.substring(t,Go):r)===i){if(t=Go,r=Go,(o=Un())!==i){if(n=[],(a=jn())!==i)for(;a!==i;)n.push(a),a=jn();else n=i;n!==i?r=o=[o,n]:(Go=r,r=i)}else Go=r,r=i;if((t=r!==i?e.substring(t,Go):r)===i){if(t=Go,r=Go,(o=$n())!==i){if(n=[],(a=Gn())!==i)for(;a!==i;)n.push(a),a=Gn();else n=i;n!==i?r=o=[o,n]:(Go=r,r=i)}else Go=r,r=i;t=r!==i?e.substring(t,Go):r}}}return t}function Fn(){var t,r,o,n,a,s,l,p,u,c;if(t=Go,e.substr(Go,5)===J?(r=J,Go+=5):(r=i,0===$o&&Yo(Jt)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=fo(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,e.substr(Go,5)===W?(r=W,Go+=5):(r=i,0===$o&&Yo(Wt)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);if(o=e.substring(o,Go),(n=tn())!==i)if(9658===e.charCodeAt(Go)?(a=H,Go++):(a=i,0===$o&&Yo(Ht)),a!==i){for(s=Go,l=[],p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i&&(c=Yn())!==i?p=u=[u,c]:(Go=p,p=i);p!==i;)l.push(p),p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i&&(c=Yn())!==i?p=u=[u,c]:(Go=p,p=i);s=e.substring(s,Go),(l=tn())!==i?t=mo(o,s):(Go=t,t=i)}else Go=t,t=i;else Go=t,t=i}else Go=t,t=i;if(t===i){if(t=Go,e.substr(Go,5)===W?(r=W,Go+=5):(r=i,0===$o&&Yo(Wt)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=To(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,9658===e.charCodeAt(Go)?(r=H,Go++):(r=i,0===$o&&Yo(Ht)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=ho(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,e.substr(Go,9)===z?(r=z,Go+=9):(r=i,0===$o&&Yo(zt)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=bo(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,e.substr(Go,10)===q?(r=q,Go+=10):(r=i,0===$o&&Yo(qt)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=Bo(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,e.substr(Go,4)===Y?(r=Y,Go+=4):(r=i,0===$o&&Yo(Yt)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=vo(o):(Go=t,t=i)}else Go=t,t=i;if(t===i&&(t=Go,e.substr(Go,4)===h?(r=h,Go+=4):(r=i,0===$o&&Yo(dt)),r!==i&&(o=tn())!==i?t=Co():(Go=t,t=i),t===i)){if(t=Go,e.substr(Go,5)===X?(r=X,Go+=5):(r=i,0===$o&&Yo(Xt)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=Po(o):(Go=t,t=i)}else Go=t,t=i;if(t===i&&(t=Go,e.substr(Go,5)===Q?(r=Q,Go+=5):(r=i,0===$o&&Yo(Qt)),r!==i&&(o=tn())!==i?t=xo():(Go=t,t=i),t===i)){if(t=Go,e.substr(Go,6)===Z?(r=Z,Go+=6):(r=i,0===$o&&Yo(Zt)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=ko(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,e.substr(Go,9)===ee?(r=ee,Go+=9):(r=i,0===$o&&Yo(er)),r!==i){if(o=Go,n=Go,80===e.charCodeAt(Go)?(a=te,Go++):(a=i,0===$o&&Yo(tr)),a!==i){for(s=Go,l=[],p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i&&(c=Yn())!==i?p=u=[u,c]:(Go=p,p=i);p!==i;)l.push(p),p=Go,u=Go,$o++,c=tn(),$o--,c===i?u=void 0:(Go=u,u=i),u!==i&&(c=Yn())!==i?p=u=[u,c]:(Go=p,p=i);n=a=[a,s=e.substring(s,Go)]}else Go=n,n=i;(o=n!==i?e.substring(o,Go):n)!==i&&(n=tn())!==i?t=Ko(o):(Go=t,t=i)}else Go=t,t=i;if(t===i&&(t=Go,e.substr(Go,6)===re?(r=re,Go+=6):(r=i,0===$o&&Yo(rr)),r!==i?(o=function(){var t;e.substr(Go,4)===ve?(t=ve,Go+=4):(t=i,0===$o&&Yo(vr));t===i&&(e.substr(Go,5)===Ce?(t=Ce,Go+=5):(t=i,0===$o&&Yo(Cr)),t===i&&(e.substr(Go,4)===Pe?(t=Pe,Go+=4):(t=i,0===$o&&Yo(Pr)),t===i&&(e.substr(Go,4)===xe?(t=xe,Go+=4):(t=i,0===$o&&Yo(xr)),t===i&&(e.substr(Go,7)===ke?(t=ke,Go+=7):(t=i,0===$o&&Yo(kr)),t===i&&(e.substr(Go,9)===Ke?(t=Ke,Go+=9):(t=i,0===$o&&Yo(Kr)),t===i&&(e.substr(Go,4)===we?(t=we,Go+=4):(t=i,0===$o&&Yo(wr)),t===i&&(e.substr(Go,8)===Se?(t=Se,Go+=8):(t=i,0===$o&&Yo(Sr)),t===i&&(e.substr(Go,5)===_e?(t=_e,Go+=5):(t=i,0===$o&&Yo(_r)),t===i&&(e.substr(Go,4)===Ae?(t=Ae,Go+=4):(t=i,0===$o&&Yo(Ar)),t===i&&(e.substr(Go,7)===Le?(t=Le,Go+=7):(t=i,0===$o&&Yo(Lr)),t===i&&(e.substr(Go,6)===Ie?(t=Ie,Go+=6):(t=i,0===$o&&Yo(Ir)),t===i&&(e.substr(Go,4)===Ne?(t=Ne,Go+=4):(t=i,0===$o&&Yo(Nr)),t===i&&(e.substr(Go,5)===Fe?(t=Fe,Go+=5):(t=i,0===$o&&Yo(Fr)),t===i&&(e.substr(Go,6)===Ee?(t=Ee,Go+=6):(t=i,0===$o&&Yo(Er)),t===i&&(e.substr(Go,6)===Re?(t=Re,Go+=6):(t=i,0===$o&&Yo(Rr)),t===i&&(e.substr(Go,3)===Oe?(t=Oe,Go+=3):(t=i,0===$o&&Yo(Or)),t===i&&(e.substr(Go,6)===Ve?(t=Ve,Go+=6):(t=i,0===$o&&Yo(Vr)),t===i&&(e.substr(Go,4)===je?(t=je,Go+=4):(t=i,0===$o&&Yo(jr)),t===i&&(e.substr(Go,6)===Ge?(t=Ge,Go+=6):(t=i,0===$o&&Yo(Gr)),t===i&&(e.substr(Go,5)===Me?(t=Me,Go+=5):(t=i,0===$o&&Yo(Mr)),t===i&&(e.substr(Go,6)===De?(t=De,Go+=6):(t=i,0===$o&&Yo(Dr)))))))))))))))))))))));return t}(),o!==i&&(n=tn())!==i?t=wo(o):(Go=t,t=i)):(Go=t,t=i),t===i&&(t=Go,r=function(){var t;e.substr(Go,4)===ie?(t=ie,Go+=4):(t=i,0===$o&&Yo(ir));t===i&&(e.substr(Go,6)===oe?(t=oe,Go+=6):(t=i,0===$o&&Yo(or)),t===i&&(e.substr(Go,5)===ne?(t=ne,Go+=5):(t=i,0===$o&&Yo(nr)),t===i&&(e.substr(Go,9)===ae?(t=ae,Go+=9):(t=i,0===$o&&Yo(ar)),t===i&&(e.substr(Go,6)===se?(t=se,Go+=6):(t=i,0===$o&&Yo(sr)),t===i&&(e.substr(Go,9)===le?(t=le,Go+=9):(t=i,0===$o&&Yo(lr)),t===i&&(e.substr(Go,11)===pe?(t=pe,Go+=11):(t=i,0===$o&&Yo(pr)),t===i&&(e.substr(Go,3)===ue?(t=ue,Go+=3):(t=i,0===$o&&Yo(ur)),t===i&&(e.substr(Go,3)===ce?(t=ce,Go+=3):(t=i,0===$o&&Yo(cr)),t===i&&(e.substr(Go,9)===ye?(t=ye,Go+=9):(t=i,0===$o&&Yo(yr)),t===i&&(e.substr(Go,15)===ge?(t=ge,Go+=15):(t=i,0===$o&&Yo(gr)),t===i&&(e.substr(Go,6)===de?(t=de,Go+=6):(t=i,0===$o&&Yo(dr)),t===i&&(e.substr(Go,10)===fe?(t=fe,Go+=10):(t=i,0===$o&&Yo(fr)),t===i&&(e.substr(Go,13)===me?(t=me,Go+=13):(t=i,0===$o&&Yo(mr)),t===i&&(e.substr(Go,19)===Te?(t=Te,Go+=19):(t=i,0===$o&&Yo(Tr)),t===i&&(e.substr(Go,10)===he?(t=he,Go+=10):(t=i,0===$o&&Yo(hr)),t===i&&(e.substr(Go,10)===be?(t=be,Go+=10):(t=i,0===$o&&Yo(br)),t===i&&(e.substr(Go,13)===Be?(t=Be,Go+=13):(t=i,0===$o&&Yo(Br)))))))))))))))))));return t}(),r!==i&&(o=tn())!==i?t=So(r):(Go=t,t=i),t===i)))if(t=Go,35===e.charCodeAt(Go)?(r=F,Go++):(r=i,0===$o&&Yo(It)),r!==i){for(o=Go,n=[],a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=tn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?a=s=[s,l]:(Go=a,a=i);o=e.substring(o,Go),(n=tn())!==i?t=_o(o):(Go=t,t=i)}else Go=t,t=i}}}}}}}}}return t}function En(){var e,t,r,o;for($o++,e=Go,(t=Rn())===i&&(t=null),r=[],(o=Hn())===i&&(o=Rn());o!==i;)r.push(o),(o=Hn())===i&&(o=Rn());return e=Lo(t,r),$o--,t=i,0===$o&&Yo($r),e}function Rn(){var t,r,o,n,a,s,l;if(t=Go,(r=qn())!==i&&(r=Io(r)),(t=r)===i){if(t=Go,r=Go,o=[],n=Go,(a=zn())===i&&(a=null),s=Go,$o++,l=Hn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?n=a=[a,s,l]:(Go=n,n=i),n===i&&(n=Go,(a=zn())!==i?(s=Go,$o++,l=Hn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?n=a=[a,s]:(Go=n,n=i)):(Go=n,n=i)),n!==i)for(;n!==i;)o.push(n),n=Go,(a=zn())===i&&(a=null),s=Go,$o++,l=Hn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i&&(l=Yn())!==i?n=a=[a,s,l]:(Go=n,n=i),n===i&&(n=Go,(a=zn())!==i?(s=Go,$o++,l=Hn(),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?n=a=[a,s]:(Go=n,n=i)):(Go=n,n=i));else o=i;(r=o!==i?e.substring(r,Go):o)!==i&&(r=No(r)),t=r}return t}function On(){var t;return 42===e.charCodeAt(Go)?(t=Ue,Go++):(t=i,0===$o&&Yo(Jr)),t}function Vn(){var t;return 95===e.charCodeAt(Go)?(t=$e,Go++):(t=i,0===$o&&Yo(Wr)),t}function jn(){var t;return 96===e.charCodeAt(Go)?(t=Je,Go++):(t=i,0===$o&&Yo(Hr)),t}function Gn(){var t;return 33===e.charCodeAt(Go)?(t=We,Go++):(t=i,0===$o&&Yo(zr)),t}function Mn(){var e,t,r;return e=Go,(t=On())!==i&&(r=On())!==i?e=t=[t,r]:(Go=e,e=i),e}function Dn(){var e,t,r;return e=Go,(t=Vn())!==i&&(r=Vn())!==i?e=t=[t,r]:(Go=e,e=i),e}function Un(){var e,t,r;return e=Go,(t=jn())!==i&&(r=jn())!==i?e=t=[t,r]:(Go=e,e=i),e}function $n(){var e,t,r;return e=Go,(t=Gn())!==i&&(r=Gn())!==i?e=t=[t,r]:(Go=e,e=i),e}function Jn(){var t;return e.substr(Go,2)===He?(t=He,Go+=2):(t=i,0===$o&&Yo(qr)),t}function Wn(){var t;return 93===e.charCodeAt(Go)?(t=ze,Go++):(t=i,0===$o&&Yo(Yr)),t}function Hn(){var t,r,o,n,a,s,l,p,u;if(t=Go,Jn()!==i){if(r=Go,o=[],n=e.charAt(Go),rt.test(n)?Go++:(n=i,0===$o&&Yo(Ct)),n!==i)for(;n!==i;)o.push(n),n=e.charAt(Go),rt.test(n)?Go++:(n=i,0===$o&&Yo(Ct));else o=i;(r=o!==i?e.substring(r,Go):o)!==i&&(o=Wn())!==i?t=Fo(r):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,Mn()!==i){for(32===e.charCodeAt(Go)?(r=k,Go++):(r=i,0===$o&&Yo(Pt)),r===i&&(r=null),o=Go,n=[],a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=k,Go++):(p=i,0===$o&&Yo(Pt)),p===i&&(p=null),(u=Mn())!==i?l=p=[p,u]:(Go=l,l=i),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?(e.length>Go?(l=e.charAt(Go),Go++):(l=i,0===$o&&Yo(st)),l!==i?a=s=[s,l]:(Go=a,a=i)):(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=k,Go++):(p=i,0===$o&&Yo(Pt)),p===i&&(p=null),(u=Mn())!==i?l=p=[p,u]:(Go=l,l=i),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?(e.length>Go?(l=e.charAt(Go),Go++):(l=i,0===$o&&Yo(st)),l!==i?a=s=[s,l]:(Go=a,a=i)):(Go=a,a=i);o=e.substring(o,Go),32===e.charCodeAt(Go)?(n=k,Go++):(n=i,0===$o&&Yo(Pt)),n===i&&(n=null),(a=Mn())!==i?t=Eo(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,Dn()!==i){for(32===e.charCodeAt(Go)?(r=k,Go++):(r=i,0===$o&&Yo(Pt)),r===i&&(r=null),o=Go,n=[],a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=k,Go++):(p=i,0===$o&&Yo(Pt)),p===i&&(p=null),(u=Dn())!==i?l=p=[p,u]:(Go=l,l=i),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?(e.length>Go?(l=e.charAt(Go),Go++):(l=i,0===$o&&Yo(st)),l!==i?a=s=[s,l]:(Go=a,a=i)):(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=k,Go++):(p=i,0===$o&&Yo(Pt)),p===i&&(p=null),(u=Dn())!==i?l=p=[p,u]:(Go=l,l=i),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?(e.length>Go?(l=e.charAt(Go),Go++):(l=i,0===$o&&Yo(st)),l!==i?a=s=[s,l]:(Go=a,a=i)):(Go=a,a=i);o=e.substring(o,Go),32===e.charCodeAt(Go)?(n=k,Go++):(n=i,0===$o&&Yo(Pt)),n===i&&(n=null),(a=Dn())!==i?t=Ro(o):(Go=t,t=i)}else Go=t,t=i;if(t===i){if(t=Go,Un()!==i){for(32===e.charCodeAt(Go)?(r=k,Go++):(r=i,0===$o&&Yo(Pt)),r===i&&(r=null),o=Go,n=[],a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=k,Go++):(p=i,0===$o&&Yo(Pt)),p===i&&(p=null),(u=Un())!==i?l=p=[p,u]:(Go=l,l=i),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?(e.length>Go?(l=e.charAt(Go),Go++):(l=i,0===$o&&Yo(st)),l!==i?a=s=[s,l]:(Go=a,a=i)):(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=k,Go++):(p=i,0===$o&&Yo(Pt)),p===i&&(p=null),(u=Un())!==i?l=p=[p,u]:(Go=l,l=i),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?(e.length>Go?(l=e.charAt(Go),Go++):(l=i,0===$o&&Yo(st)),l!==i?a=s=[s,l]:(Go=a,a=i)):(Go=a,a=i);o=e.substring(o,Go),32===e.charCodeAt(Go)?(n=k,Go++):(n=i,0===$o&&Yo(Pt)),n===i&&(n=null),(a=Un())!==i?t=Oo(o):(Go=t,t=i)}else Go=t,t=i;if(t===i)if(t=Go,$n()!==i){for(32===e.charCodeAt(Go)?(r=k,Go++):(r=i,0===$o&&Yo(Pt)),r===i&&(r=null),o=Go,n=[],a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=k,Go++):(p=i,0===$o&&Yo(Pt)),p===i&&(p=null),(u=$n())!==i?l=p=[p,u]:(Go=l,l=i),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?(e.length>Go?(l=e.charAt(Go),Go++):(l=i,0===$o&&Yo(st)),l!==i?a=s=[s,l]:(Go=a,a=i)):(Go=a,a=i);a!==i;)n.push(a),a=Go,s=Go,$o++,l=Go,32===e.charCodeAt(Go)?(p=k,Go++):(p=i,0===$o&&Yo(Pt)),p===i&&(p=null),(u=$n())!==i?l=p=[p,u]:(Go=l,l=i),$o--,l===i?s=void 0:(Go=s,s=i),s!==i?(e.length>Go?(l=e.charAt(Go),Go++):(l=i,0===$o&&Yo(st)),l!==i?a=s=[s,l]:(Go=a,a=i)):(Go=a,a=i);o=e.substring(o,Go),32===e.charCodeAt(Go)?(n=k,Go++):(n=i,0===$o&&Yo(Pt)),n===i&&(n=null),(a=$n())!==i?t=Vo(o):(Go=t,t=i)}else Go=t,t=i}}}return t}function zn(){var t,r,o,n,a;if(t=Go,r=Go,(o=Un())!==i){if(n=[],(a=jn())!==i)for(;a!==i;)n.push(a),a=jn();else n=i;n!==i?r=o=[o,n]:(Go=r,r=i)}else Go=r,r=i;if((t=r!==i?e.substring(t,Go):r)===i){if(t=Go,r=Go,(o=$n())!==i){if(n=[],(a=Gn())!==i)for(;a!==i;)n.push(a),a=Gn();else n=i;n!==i?r=o=[o,n]:(Go=r,r=i)}else Go=r,r=i;t=r!==i?e.substring(t,Go):r}return t}function qn(){var t;return $o++,10===e.charCodeAt(Go)?(t=qe,Go++):(t=i,0===$o&&Yo(Qr)),t===i&&(e.substr(Go,2)===Ye?(t=Ye,Go+=2):(t=i,0===$o&&Yo(Zr)),t===i&&(t=e.charAt(Go),ot.test(t)?Go++:(t=i,0===$o&&Yo(ei)))),$o--,t===i&&(0===$o&&Yo(Xr)),t}function Yn(){var t;return t=e.charAt(Go),nt.test(t)?Go++:(t=i,0===$o&&Yo(ti)),t}function Xn(){var t,r;return(t=qn())===i&&(t=Go,$o++,e.length>Go?(r=e.charAt(Go),Go++):(r=i,0===$o&&Yo(st)),$o--,r===i?t=void 0:(Go=t,t=i)),t}function Qn(){var t;return t=e.charAt(Go),at.test(t)?Go++:(t=i,0===$o&&Yo(ai)),t}var Zn=[],ea="";if(e=e.trimStart(),r=y(),t.peg$library)return{peg$result:r,peg$currPos:Go,peg$FAILED:i,peg$maxFailExpected:Uo,peg$maxFailPos:Do};if(r!==i&&Go===e.length)return r;throw r!==i&&Go<e.length&&Yo({type:"end"}),Xo(Uo,Do<e.length?e.charAt(Do):null,Do<e.length?qo(Do,Do+1):qo(Do,Do))}!function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(p,Error),p.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,i=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){i=e[r].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,n=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+n.line+":"+n.column;if(i){var s=this.location.end,l=u("",n.line.toString().length," "),p=i[o.line-1],c=(o.line===s.line?s.column:p.length+1)-o.column||1;t+="\n --\x3e "+a+"\n"+l+" |\n"+n.line+" | "+p+"\n"+l+" | "+u("",o.column-1," ")+u("",c,"^")}else t+="\n at "+a}return t},p.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?n(e[0])+"-"+n(e[1]):n(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function i(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+i(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+i(e)}))}function n(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+i(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+i(e)}))}function a(e){return r[e.type](e)}return"Expected "+function(e){var t,r,i=e.map(a);if(i.sort(),i.length>0){for(t=1,r=1;t<i.length;t++)i[t-1]!==i[t]&&(i[r]=i[t],r++);i.length=r}switch(i.length){case 1:return i[0];case 2:return i[0]+" or "+i[1];default:return i.slice(0,-1).join(", ")+", or "+i[i.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."};t.StartRules=["version","bitmarkPlusPlus","bitmarkPlus","bitmarkMinusMinus","bitmarkPlusString","bitmarkMinusMinusString"]},4:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AstWalkerGenerator=void 0;const i=r(5126);t.AstWalkerGenerator=class{constructor(){this.ast=new i.Ast,this.debugGenerationInline=!1,this.printed=!1}enter(e,t,r){let i;const o=this,n=`enter_${e.key}`;return this.printed||(this.printed=!0),this.debugGenerationInline&&this.writeInlineDebug(e.key,{open:!0}),"function"==typeof o[n]&&(i=o[n](e,t,r)),i}between(e,t,r,i,o){let n;const a=this,s=`between_${e.key}`;return this.debugGenerationInline&&this.writeInlineDebug(e.key,{single:!0}),"function"==typeof a[s]&&(n=a[s](e,t,r,i,o)),n}exit(e,t,r){const i=this,o=`exit_${e.key}`;this.debugGenerationInline&&this.writeInlineDebug(e.key,{close:!0}),"function"==typeof i[o]&&i[o](e,t,r)}leaf(e,t,r){const i=this,o=`leaf_${e.key}`;this.debugGenerationInline&&this.writeInlineDebug(e.key,{open:!0}),"function"==typeof i[o]&&i[o](e,t,r),this.debugGenerationInline&&this.writeInlineDebug(e.key,{close:!0})}getParentNode(e,t=1){if(e.length>t)return e[e.length-t-1]}}},5087:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(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((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkGenerator=void 0;const o=r(5126),n=r(7735),a=r(2028),s=r(126),l=r(5854),p=r(3811),u=r(4410),c=r(1163),y=r(9727),g=r(166),d=r(6149),f=r(385),m=r(4078),T=r(955),h=r(9681),b=r(4),B=r(431),v={debugGenerationInline:!1};class C extends b.AstWalkerGenerator{constructor(e,t){var r,i;super(),this.ast=new o.Ast,this.skipNLBetweenBitsValue=!1,this.wroteSomething=!1,this.inTag=!0,this.inTag,this.enter=this.enter.bind(this),this.between=this.between.bind(this),this.exit=this.exit.bind(this),this.leaf=this.leaf.bind(this),this.write=this.write.bind(this),this.bodyBitCallback=this.bodyBitCallback.bind(this),this.bitmarkVersion=null!==(r=p.BitmarkVersion.fromValue(null==t?void 0:t.bitmarkVersion))&&void 0!==r?r:p.DEFAULT_BITMARK_VERSION,this.options=Object.assign(Object.assign({},v),null==t?void 0:t.bitmarkOptions),this.debugGenerationInline=null!==(i=this.options.debugGenerationInline)&&void 0!==i&&i,this.bitmarkVersion===p.BitmarkVersion.v2?void 0===this.options.cardSetVersion&&(this.options.cardSetVersion=c.CardSetVersion.v1):void 0===this.options.cardSetVersion&&(this.options.cardSetVersion=c.CardSetVersion.v2),this.prettifySpace=!0===this.options.prettifyJson?2:this.options.prettifyJson||void 0,this.textGenerator=new B.TextGenerator(this.bitmarkVersion,{writeCallback:this.write,bodyBitCallback:this.bodyBitCallback,debugGenerationInline:this.debugGenerationInline}),this.writer=e,this.generateResourceHandlers(),this.generatePropertyHandlers()}generate(e){return i(this,void 0,void 0,(function*(){this.resetState(),yield this.writer.open(),this.walkAndWrite(e),this.writeLine(),yield this.writer.close()}))}generateSync(e){this.resetState(),this.writer.openSync(),this.walkAndWrite(e),this.writer.closeSync()}resetState(){this.skipNLBetweenBitsValue=!1,this.wroteSomething=!1,this.inTag=!0,this.printed=!1}walkAndWrite(e){this.ast.walk(e,s.NodeType.bitmarkAst,this,void 0),this.writeLine()}between_bits(e,t,r,i){this.writeNL(),this.writeNL(),this.writeNL()}enter_bitsValue(e,t){const r=e.value,i=a.Config.getBitConfig(r.bitType),o=a.Config.getBitResourcesConfig(r.bitType,r.resourceType);if(this.writeOPD(r.bitLevel),r.isCommented&&this.writeString("|"),this.writeBreakscapedTagString(r.bitType),r.textFormat){this.isWriteTextFormat(r.textFormat,i.textFormatDefault)&&(this.writeColon(),this.writeBreakscapedTagString(r.textFormat))}let n;if(i.resourceAttachmentAllowed&&r.resources&&r.resources.length>0){const e=o.comboResourceTagTypesMap;if(o.comboResourceTagTypesMap.size>0)for(const t of e.keys())n=t;else n=r.resources[0].type}return n&&(this.writeAmpersand(),this.writeBreakscapedTagString(n)),this.writeCL(),this.writeNL(),!0}between_bitsValue(e,t,r,i){const o=[s.NodeType.bitType,s.NodeType.textFormat,s.NodeType.level,s.NodeType.progress,s.NodeType.toc,s.NodeType.referenceEnd,s.NodeType.labelFalse];this.writeNlBetween(e,t,r,i,o)}enter_internalComment(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue)return!0;for(let e=0;e<r.length;e++){const t=r[e],i=e===r.length-1;this.writeProperty("internalComment",t,{format:y.PropertyFormat.trimmedString,single:!1,ignoreEmpty:!0}),i||this.writeNL()}return!1}enter_labelTrue(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue)return!0;const o=null==i?void 0:i.value;return o&&(""!=r&&this.writeProperty(g.PropertyTag.labelTrue,r,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),o.labelFalse&&""!=o.labelFalse[0]&&this.writeProperty(g.PropertyTag.labelFalse,o.labelFalse,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})),!1}enter_imageSource(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue)return!0;const{url:o,mockupId:n,size:a,format:l,trim:p}=r;return this.writeProperty("imageSource",o,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),o&&(n&&this.writeProperty("mockupId",n,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),a&&this.writeProperty("size",a,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),l&&this.writeProperty("format",l,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),m.BooleanUtils.isBoolean(p)&&this.writeProperty("trim",p,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})),!1}enter_technicalTerm(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue)return!0;const{technicalTerm:o,lang:n}=r;return this.writeProperty("technicalTerm",o,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=n&&this.writeProperty("lang",n,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),!1}enter_servings(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue)return!0;const{servings:o,unit:n,unitAbbr:a,decimalPlaces:l,disableCalculation:p,hint:u}=r;return this.writeProperty("servings",o,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=n&&this.writeProperty("unit",n,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=a&&this.writeProperty("unitAbbr",a,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=l&&this.writeProperty("decimalPlaces",l,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=p&&this.writeProperty("disableCalculation",p,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=u&&(this.writeOPQ(),this.writeBreakscapedTagString(u),this.writeCL()),!1}enter_person(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue)return!0;const{name:o,title:n,avatarImage:a}=r;return this.writeProperty("person",o,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),n&&this.writeProperty("title",n,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),a&&this.writeResource(d.ResourceTag.image,a.src),!1}enter_ratingLevelStart(e,t){return this.enterRatingLevelStartEndCommon(e,t),!1}enter_ratingLevelEnd(e,t){return this.enterRatingLevelStartEndCommon(e,t),!1}enterRatingLevelStartEndCommon(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue)return!0;const{level:o,label:n}=r,a=e.key===s.NodeType.ratingLevelStart?g.PropertyTag.ratingLevelStart:g.PropertyTag.ratingLevelEnd;return this.writeProperty(a,o,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),n&&this.writeProperty("label",n,{format:y.PropertyFormat.bitmarkMinusMinus,single:!0,ignoreEmpty:!0}),!1}enter_markConfig(e,t){return!0}enter_markConfigValue(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.markConfig)return!0;const{mark:o,color:n,emphasis:a}=r;return o&&(this.writeProperty("mark",o,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),n&&this.writeProperty("color",n,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),a&&this.writeProperty("emphasis",a,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),this.writeNL()),!1}enter_partialAnswer(e,t){return this.writeProperty("partialAnswer",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),!1}leaf_partialAnswer(e,t){return this.writeProperty("partialAnswer",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),!1}enter_sampleSolution(e,t){return this.writeProperty("sampleSolution",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),!1}leaf_sampleSolution(e,t){return this.writeProperty("sampleSolution",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),!1}leaf_reasonableNumOfChars(e,t){this.writeProperty("reasonableNumOfChars",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}between_additionalSolutions(e,t,r,i){const o=this.getParentNode(i);(null==o?void 0:o.key)===s.NodeType.questionsValue&&this.writeNL()}leaf_additionalSolutionsValue(e,t){const r=this.getParentNode(t,2);(null==r?void 0:r.key)===s.NodeType.questionsValue&&this.writeProperty("additionalSolutions",e.value,{format:y.PropertyFormat.trimmedString,single:!1})}enter_item(e,t){var r,i,o;const n=e.value,a=this.getParentNode(t);return!this.isEmptyText(n)&&(!this.isEmptyText(null===(r=null==a?void 0:a.value)||void 0===r?void 0:r.lead)||(!this.isEmptyText(null===(i=null==a?void 0:a.value)||void 0===i?void 0:i.pageNumber)||(!this.isEmptyText(null===(o=null==a?void 0:a.value)||void 0===o?void 0:o.marginNumber)||(this.writeOPC(),this.textGenerator.generateSync(n,f.TextFormat.bitmarkMinusMinus),this.writeCL(),!0))))}enter_lead(e,t){var r,i,o,n;const a=e.value,s=this.getParentNode(t);return!this.isEmptyText(a)&&(!this.isEmptyText(null===(r=null==s?void 0:s.value)||void 0===r?void 0:r.pageNumber)||(!this.isEmptyText(null===(i=null==s?void 0:s.value)||void 0===i?void 0:i.marginNumber)||(this.writeOPC(),this.textGenerator.generateSync(null!==(n=null===(o=null==s?void 0:s.value)||void 0===o?void 0:o.item)&&void 0!==n?n:"",f.TextFormat.bitmarkMinusMinus),this.writeCL(),this.writeOPC(),this.textGenerator.generateSync(a,f.TextFormat.bitmarkMinusMinus),this.writeCL(),!0)))}enter_pageNumber(e,t){var r,i,o,n,a;const s=e.value,l=this.getParentNode(t);return!this.isEmptyText(s)&&(!this.isEmptyText(null===(r=null==l?void 0:l.value)||void 0===r?void 0:r.marginNumber)||(this.writeOPC(),this.textGenerator.generateSync(null!==(o=null===(i=null==l?void 0:l.value)||void 0===i?void 0:i.item)&&void 0!==o?o:"",f.TextFormat.bitmarkMinusMinus),this.writeCL(),this.writeOPC(),this.textGenerator.generateSync(null!==(a=null===(n=null==l?void 0:l.value)||void 0===n?void 0:n.lead)&&void 0!==a?a:"",f.TextFormat.bitmarkMinusMinus),this.writeCL(),this.writeOPC(),this.textGenerator.generateSync(null!=s?s:"",f.TextFormat.bitmarkMinusMinus),this.writeCL(),!0))}enter_marginNumber(e,t){var r,i,o,n,a,s;const l=e.value,p=this.getParentNode(t);return!this.isEmptyText(l)&&(this.writeOPC(),this.textGenerator.generateSync(null!==(i=null===(r=null==p?void 0:p.value)||void 0===r?void 0:r.item)&&void 0!==i?i:"",f.TextFormat.bitmarkMinusMinus),this.writeCL(),this.writeOPC(),this.textGenerator.generateSync(null!==(n=null===(o=null==p?void 0:p.value)||void 0===o?void 0:o.lead)&&void 0!==n?n:"",f.TextFormat.bitmarkMinusMinus),this.writeCL(),this.writeOPC(),this.textGenerator.generateSync(null!==(s=null===(a=null==p?void 0:p.value)||void 0===a?void 0:a.pageNumber)&&void 0!==s?s:"",f.TextFormat.bitmarkMinusMinus),this.writeCL(),this.writeOPC(),this.textGenerator.generateSync(l,f.TextFormat.bitmarkMinusMinus),this.writeCL(),!0)}enter_body(e,t){var r;const i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue&&(null==i?void 0:i.key)!==s.NodeType.cardBitsValue)return!0;this.inTag=!1;const o=e.value,a=this.getTextFormat(t),l=a===f.TextFormat.bitmarkPlusPlus||a===f.TextFormat.bitmarkMinusMinus;if(a===f.TextFormat.json){const e=null!==(r=o.body)&&void 0!==r?r:null;if(Array.isArray(e)||T.ObjectUtils.isObject(e)){const t=JSON.stringify(e,null,this.prettifySpace);t&&(this.writeNL(),this.writePlainTextDivider(),this.writeNL(),this.write(n.Breakscape.breakscape(t,{textFormat:f.TextFormat.text})))}}else if(l){this.writeNL();const e=Array.isArray(o.body)?o.body:[];this.textGenerator.generateSync(e,a)}else{this.writeNL(),this.writePlainTextDivider(),this.writeNL();const e=h.StringUtils.isString(o.body)?o.body:"";this.write(n.Breakscape.breakscape(`${e}`,{textFormat:f.TextFormat.text})),this.writeNL()}return!1}exit_body(e,t){this.inTag=!0}bodyBitCallback(e,t,r){var i;const o=null!==(i=s.NodeType.fromValue(e.type))&&void 0!==i?i:s.NodeType.bodyBit;return this.ast.walk(e,o,this,void 0),""}enter_gap(e,t){const r=e.value;if(r.solutions&&0===r.solutions.length)this.writeOPU(),this.writeCL();else for(const e of r.solutions)this.writeOPU(),this.writeBreakscapedTagString(e),this.writeCL();return!0}enter_mark(e,t){const r=e.value;return this.writeOPE(),this.writeBreakscapedTagString(r.solution),this.writeCL(),!0}enter_select(e,t){return!0}enter_highlight(e,t){return!0}enter_footer(e,t){const r=this.getParentNode(t);if((null==r?void 0:r.key)!==s.NodeType.bitsValue)return!0;const i=e.value,o=this.getTextFormat(t);if(o===f.TextFormat.json);else if(i.footer&&i.footer.length>0){(o===f.TextFormat.bitmarkPlusPlus||o===f.TextFormat.bitmarkMinusMinus)&&(this.write("~~~~"),this.writeNL(),this.textGenerator.generateSync(i.footer,f.TextFormat.text))}return!1}enter_solutions(e,t){const r=this.getParentNode(t);if((null==r?void 0:r.key)!==s.NodeType.bitsValue)return!0;const i=e.value;return i&&0===i.length&&(this.writeOPU(),this.writeCL()),!0}leaf_solution(e,t){var r;const i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.bitsValue)return;const o=e.value,n=null===(r=this.getParentNode(t,2))||void 0===r?void 0:r.value;(null==n?void 0:n.type)===u.BodyBitType.mark&&o&&(this.writeOPE(),this.writeBreakscapedTagString(o),this.writeCL())}leaf_mark(e,t){const r=t[0];if((null==r?void 0:r.key)!==s.NodeType.mark)return;const i=e.value;i&&this.writeProperty("mark",i,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}enter_optionsValue(e,t){const r=e.value;return r.isCorrect?this.writeOPP():this.writeOPM(),this.write(r.text),this.writeCL(),!0}enter_textsValue(e,t){const r=e.value;return r.isCorrect?this.writeOPP():this.writeOPM(),this.write(r.text),this.writeCL(),!0}enter_cardNode(e,t){return this.isOfBitType1(t)||(this.writeCardSetStart(),this.writeNL()),!0}between_cardNode(e,t,r,i){this.isOfBitType1(i)||(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}exit_cardNode(e,t){this.isOfBitType1(t)||(this.writeNL(),this.writeCardSetEnd(),this.options.cardSetVersion===c.CardSetVersion.v1&&this.writeNL())}enter_elements(e,t){}between_elements(e,t,r,i){this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()}exit_elements(e,t){}between_flashcards(e,t,r,i){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}between_flashcardsValue(e,t,r,i){var o;r.key===s.NodeType.answer?(this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()):r.key===s.NodeType.alternativeAnswers&&0!==(null===(o=r.value)||void 0===o?void 0:o.length)&&(this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL())}enter_answer(e,t){const r=this.getParentNode(t);return(null==r?void 0:r.key)!==s.NodeType.flashcardsValue||(e.value&&this.textGenerator.generateSync(e.value,f.TextFormat.bitmarkMinusMinus),!1)}between_alternativeAnswers(e,t){this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()}enter_alternativeAnswersValue(e,t){const r=this.getParentNode(t);return(null==r?void 0:r.key)!==s.NodeType.alternativeAnswers||(e.value&&this.textGenerator.generateSync(e.value,f.TextFormat.bitmarkMinusMinus),!1)}between_alternativeDefinitions(e,t){this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()}enter_alternativeDefinitionsValue(e,t){const r=this.getParentNode(t);return(null==r?void 0:r.key)!==s.NodeType.alternativeDefinitions||(e.value&&this.textGenerator.generateSync(e.value,f.TextFormat.bitmarkMinusMinus),!1)}enter_statements(e,t){}between_statements(e,t,r,i){this.isOfBitType(i,l.BitType.trueFalse1)||(this.writeNL(),this.writeCardSetCardDivider()),this.writeNL()}exit_statements(e,t){}enter_statementsValue(e,t){const r=e.value;return r.isCorrect?this.writeOPP():this.writeOPM(),this.write(r.statement),this.writeCL(),!0}between_choices(e,t,r,i){this.writeNL()}exit_choices(e,t){this.writeNL()}enter_choicesValue(e,t){const r=e.value;return r.isCorrect?this.writeOPP():this.writeOPM(),this.write(r.choice),this.writeCL(),!0}between_responses(e,t,r,i){this.writeNL()}exit_responses(e,t){this.writeNL()}enter_responsesValue(e,t){const r=e.value;return r.isCorrect?this.writeOPP():this.writeOPM(),this.write(r.response),this.writeCL(),!0}enter_quizzes(e,t){}between_quizzes(e,t,r,i){this.writeCardSetCardDivider(),this.writeNL()}exit_quizzes(e,t){}between_quizzesValue(e,t,r,i){r.key!==s.NodeType.choices&&r.key!==s.NodeType.responses||this.writeNL()}enter_heading(e,t){}between_heading(e,t,r,i){this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()}exit_heading(e,t){}enter_forValues(e,t){}between_forValues(e,t,r,i){this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()}exit_forValues(e,t){}enter_pairs(e,t){}between_pairs(e,t,r,i){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}exit_pairs(e,t){}between_pairsValue(e,t,r,i){}enter_keyAudio(e,t){const r=e.value;return this.writeResource(d.ResourceTag.audio,r.src),!1}enter_keyImage(e,t){const r=e.value;return this.writeResource(d.ResourceTag.image,r.src),!1}enter_matrix(e,t){}between_matrix(e,t,r,i){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}exit_matrix(e,t){}between_matrixValue(e,t,r,i){}enter_values(e,t){this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()}between_values(e,t,r,i){this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()}between_table(e,t,r,i){const o=this.getParentNode(i);(null==o?void 0:o.key)===s.NodeType.cardNode&&(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}between_data(e,t,r,i){const o=this.getParentNode(i);(null==o?void 0:o.key)===s.NodeType.table&&(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}between_columns(e,t,r,i){const o=this.getParentNode(i),n=null==o?void 0:o.key;n!==s.NodeType.table&&n!==s.NodeType.captionDefinitionList||(this.writeNL(),this.writeCardSetSideDivider(),this.writeNL())}leaf_columnsValue(e,t){this.writeOPHASH(),e.value&&this.writeBreakscapedTagString(e.value),this.writeCL()}between_dataValue(e,t,r,i){const o=this.getParentNode(i,2);(null==o?void 0:o.key)===s.NodeType.table&&(this.writeNL(),this.writeCardSetSideDivider(),this.writeNL())}leaf_dataValueValue(e,t){const r=this.getParentNode(t,3);(null==r?void 0:r.key)===s.NodeType.table&&e.value&&this.write(e.value)}between_captionDefinitionList(e,t,r,i){const o=this.getParentNode(i);(null==o?void 0:o.key)===s.NodeType.cardNode&&(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}enter_term(e,t){const r=this.getParentNode(t);return(null==r?void 0:r.key)!==s.NodeType.definitionsValue||(e.value&&this.textGenerator.generateSync(e.value,f.TextFormat.bitmarkMinusMinus),!1)}leaf_term(e,t){const r=this.getParentNode(t);return(null==r?void 0:r.key)!==s.NodeType.definitionsValue||(e.value&&this.write(e.value),!1)}enter_definition(e,t){const r=this.getParentNode(t);return(null==r?void 0:r.key)!==s.NodeType.definitionsValue||(e.value&&this.textGenerator.generateSync(e.value,f.TextFormat.bitmarkMinusMinus),!1)}leaf_definition(e,t){const r=this.getParentNode(t);return(null==r?void 0:r.key)!==s.NodeType.definitionsValue||(e.value&&this.write(e.value),!1)}between_definitions(e,t,r,i){const o=this.getParentNode(i);(null==o?void 0:o.key)!==s.NodeType.cardNode&&(null==o?void 0:o.key)!==s.NodeType.captionDefinitionList||(this.writeNL(),this.writeCardSetCardDivider(),this.writeNL())}between_definitionsValue(e,t,r,i){var o;const n=this.getParentNode(i);(null==n?void 0:n.key)===s.NodeType.definitions&&(r.key===s.NodeType.definition?(this.writeNL(),this.writeCardSetSideDivider(),this.writeNL()):r.key===s.NodeType.alternativeDefinitions&&(null===(o=r.value)||void 0===o?void 0:o.length)>0&&(this.writeNL(),this.writeCardSetVariantDivider(),this.writeNL()))}enter_questions(e,t){}between_questions(e,t,r,i){this.writeCardSetCardDivider(),this.writeNL()}exit_questions(e,t){}between_questionsValue(e,t,r,i){this.writeNlBetween(e,t,r,i,[])}exit_questionsValue(e,t){this.writeNL()}enter_ingredients(e,t){}between_ingredients(e,t,r,i){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}exit_ingredients(e,t){}enter_ingredientsValue(e,t){const r=e.value;return null!=r.title&&(this.writeOPHASH(),this.writeBreakscapedTagString(r.title),this.writeCL(),this.writeNL()),r.checked?this.writeOPP():this.writeOPM(),this.writeCL(),null!=r.quantity&&(this.writeOPB(),this.writeBreakscapedTagString(`${r.quantity}`),this.writeCL()),null!=r.unit&&this.writeProperty("unit",r.unit,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=r.unitAbbr&&this.writeProperty("unitAbbr",r.unitAbbr,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=r.decimalPlaces&&this.writeProperty("decimalPlaces",r.decimalPlaces,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),r.disableCalculation&&this.writeProperty("disableCalculation",!0,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0}),null!=r.item&&this.write(r.item),!1}enter_botResponses(e,t){}between_botResponses(e,t,r,i){this.writeCardSetCardDivider(),this.writeNL()}exit_botResponses(e,t){}between_botResponsesValue(e,t,r,i){this.writeNL()}exit_botResponsesValue(e,t){this.writeNL()}enter_cardBits(e,t){}between_cardBits(e,t,r,i){this.writeNL(),this.writeCardSetCardDivider(),this.writeNL()}exit_cardBits(e,t){}leaf_response(e,t){const r=this.getParentNode(t);(null==r?void 0:r.key)===s.NodeType.botResponsesValue&&(this.writeOPB(),this.writeBreakscapedTagString(e.value),this.writeCL())}leaf_reaction(e,t){const r=this.getParentNode(t);(null==r?void 0:r.key)===s.NodeType.botResponsesValue&&this.writeProperty("reaction",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_feedback(e,t){const r=this.getParentNode(t);if((null==r?void 0:r.key)!==s.NodeType.botResponsesValue)return;const i=e.value;i&&this.write(i)}enter_imagePlaceholder(e,t){const r=e.value;return this.writePropertyStyleResource(e.key,r),!0}exit_imagePlaceholder(e,t){this.writeNL()}enter_posterImage(e,t){const r=this.getParentNode(t);if((null==r?void 0:r.key)===s.NodeType.bitsValue){const t=e.value;t&&this.writeProperty("posterImage",t,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}else{const t=e.value;t&&t.src&&this.writeProperty("posterImage",t.src,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}return!0}enter_thumbnails(e,t){const r=e.value;if(Array.isArray(r)){const e=["src1x","src2x","src3x","src4x"];for(let t=0;t<r.length&&t!==e.length;t++){const i=r[t],o=e[t];this.writeProperty(o,i.src,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}}return!1}enter_title(e,t){const r=this.getParentNode(t);if((null==r?void 0:r.key)!==s.NodeType.bitsValue)return!0;const i=e.value,o=(null==r?void 0:r.value).level||1;if(o&&i){this.writeOP();for(let e=0;e<+o;e++)this.writeHash();this.textGenerator.generateSync(i,f.TextFormat.bitmarkMinusMinus),this.writeCL()}return!1}enter_subtitle(e,t){const r=this.getParentNode(t);if((null==r?void 0:r.key)!==s.NodeType.bitsValue)return!0;const i=e.value;if(i){this.writeOP();for(let e=0;e<2;e++)this.writeHash();this.textGenerator.generateSync(i,f.TextFormat.bitmarkMinusMinus),this.writeCL()}return!1}enter_book(e,t){}between_book(e,t){this.writeNL()}enter_bookValue(e,t){const r=e.value;return r&&(this.writeProperty("book",r.book,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!1}),r.reference&&(this.writeOPRANGLE(),this.writeBreakscapedTagString(r.reference),this.writeCL(),r.referenceEnd&&(this.writeOPRANGLE(),this.writeBreakscapedTagString(r.referenceEnd),this.writeCL()))),!1}leaf_book(e,t){const r=this.getParentNode(t),i=null==r?void 0:r.value;i&&e.value&&(this.writeProperty("book",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!1}),i.reference&&(this.writeOPRANGLE(),this.writeBreakscapedTagString(i.reference),this.writeCL(),i.referenceEnd&&(this.writeOPRANGLE(),this.writeBreakscapedTagString(i.referenceEnd),this.writeCL())))}leaf_anchor(e,t){e.value&&(this.writeOPDANGLE(),this.writeBreakscapedTagString(e.value),this.writeCL())}leaf_reference(e,t){const r=this.getParentNode(t),i=null==r?void 0:r.value;i&&e.value&&(i.book||(this.writeOPRANGLE(),this.writeBreakscapedTagString(e.value),this.writeCL()))}enter_hint(e,t){const r=e.value;return this.isEmptyText(r)||(this.writeOPQ(),this.textGenerator.generateSync(r,f.TextFormat.bitmarkMinusMinus),this.writeCL()),!1}enter_instruction(e,t){const r=e.value;return this.isEmptyText(r)||(this.writeOPB(),this.textGenerator.generateSync(r,f.TextFormat.bitmarkMinusMinus),this.writeCL()),!1}leaf_isExample(e,t){var r;if(!e.value)return;const i=this.getParentNode(t),o=null!==(r=null==i?void 0:i.value.example)&&void 0!==r?r:null;null!=o&&""!==o&&(this.writeOPA(),this.writeString("example"),this.writeColon(),!0===o?this.writeString("true"):!1===o?this.writeString("false"):Array.isArray(o)?this.textGenerator.generateSync(o,f.TextFormat.bitmarkMinusMinus):this.writeBreakscapedTagString(o),this.writeCL())}leaf_elementsValue(e,t){e.value&&this.writeBreakscapedTagString(e.value)}leaf_solutionsValue(e,t){const r=this.getParentNode(t,2);(null==r?void 0:r.key)===s.NodeType.bitsValue&&null!=e.value&&(this.writeOPU(),this.writeBreakscapedTagString(e.value),this.writeCL())}leaf_prefix(e,t){e.value&&(this.writeOPPRE(),this.writeBreakscapedTagString(e.value),this.writeCL())}leaf_postfix(e,t){e.value&&(this.writeOPPOST(),this.writeBreakscapedTagString(e.value),this.writeCL())}leaf_isCaseSensitive(e,t){this.writeProperty("isCaseSensitive",e.value,{format:y.PropertyFormat.boolean,single:!0,ignoreFalse:!1,ignoreTrue:!0})}leaf_forKeys(e,t){this.writeOPHASH(),this.writeBreakscapedTagString(e.value),this.writeCL()}leaf_forValues(e,t){this.writeOPHASH(),this.writeBreakscapedTagString(e.value),this.writeCL()}leaf_forValuesValue(e,t){this.writeOPHASH(),this.writeBreakscapedTagString(e.value),this.writeCL()}leaf_key(e,t){e.value&&this.writeBreakscapedTagString(e.value)}leaf_valuesValue(e,t){e.value&&this.writeBreakscapedTagString(e.value)}leaf_question(e,t){const r=this.getParentNode(t);(null==r?void 0:r.key)!==s.NodeType.questionsValue&&(null==r?void 0:r.key)!==s.NodeType.flashcardsValue||e.value&&this.writeBreakscapedTagString(e.value)}enter_question(e,t){const r=this.getParentNode(t);return(null==r?void 0:r.key)!==s.NodeType.questionsValue&&(null==r?void 0:r.key)!==s.NodeType.flashcardsValue||(e.value&&this.textGenerator.generateSync(e.value,f.TextFormat.bitmarkMinusMinus),!1)}leaf_src1x(e,t){this.writeProperty("src1x",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_src2x(e,t){this.writeProperty("src2x",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_src3x(e,t){this.writeProperty("src3x",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_src4x(e,t){this.writeProperty("src4x",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_width(e,t){this.writeProperty("width",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_height(e,t){this.writeProperty("height",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_alt(e,t){this.writeProperty("alt",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_zoomDisabled(e,t){const r=this.getBitType(t);a.Config.isOfBitType(r,[l.BitType.imageSeparator,l.BitType.pageBanner,l.BitType.imagesLogoGrave,l.BitType.prototypeImages])?this.writeProperty("zoomDisabled",e.value,{format:y.PropertyFormat.boolean,single:!0,ignoreFalse:!1,ignoreTrue:!0}):this.writeProperty("zoomDisabled",e.value,{format:y.PropertyFormat.boolean,single:!0,ignoreFalse:!0,ignoreTrue:!1})}leaf_license(e,t){this.writeProperty("license",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_copyright(e,t){this.writeProperty("copyright",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_provider(e,t){}leaf_showInIndex(e,t){this.writeProperty("showInIndex",e.value,{format:y.PropertyFormat.boolean,single:!0,ignoreEmpty:!0,ignoreFalse:!0})}enter_caption(e,t){const r=e.value;return this.writeProperty("caption",r,{format:y.PropertyFormat.bitmarkMinusMinus,single:!0,ignoreEmpty:!0}),!1}leaf_search(e,t){const r=e.value;this.writeProperty("search",r,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_duration(e,t){const r=this.getParentNode(t);(null==r?void 0:r.key)!==s.NodeType.bitsValue&&this.writeProperty("duration",e.value,{format:y.PropertyFormat.trimmedString,single:!0,ignoreEmpty:!0})}leaf_mute(e,t){this.writeProperty("mute",e.value,{format:y.PropertyFormat.boolean,single:!0,ignoreEmpty:!0})}leaf_autoplay(e,t){this.writeProperty("autoplay",e.value,{format:y.PropertyFormat.boolean,single:!0,ignoreEmpty:!0})}leaf_allowSubtitles(e,t){this.writeProperty("allowSubtitles",e.value,{format:y.PropertyFormat.boolean,single:!0,ignoreEmpty:!0})}leaf_showSubtitles(e,t){this.writeProperty("showSubtitles",e.value,{format:y.PropertyFormat.boolean,single:!0,ignoreEmpty:!0})}between_resources(e,t,r,i){this.writeNL()}exit_resources(e,t,r,i){this.writeNL()}between_resourcesValue(e,t,r,i){this.writeNL()}generateResourceHandlers(){for(const e of d.ResourceTag.keys()){if(e===d.ResourceTag.keyFromValue(d.ResourceTag.unknown))continue;const t=`enter_${e}`;"function"!=typeof this[t]&&(this[t]=(e,t)=>{const r=e.value;if(null==r)return!1;const i=this.getParentNode(t);if((null==i?void 0:i.key)!==s.NodeType.resourcesValue)return!0;const o=d.ResourceTag.fromValue(i.value.__typeAlias),n=null!=o?o:d.ResourceTag.fromValue(i.value.type);if(!n)return!1;const a=r.url||r.src||r.body||"";return this.writeResource(n,a),!0},this[t]=this[t].bind(this))}}generatePropertyHandlers(){var e;const t=a.Config.getRawPropertiesConfig();for(const r of Object.values(t)){const t=`enter_${null!==(e=r.astKey)&&void 0!==e?e:r.tag}`;"function"!=typeof this[t]&&(this[t]=(e,t)=>{var i,o;if(null==e.value)return;const n=this.getParentNode(t);(null==n?void 0:n.key)===s.NodeType.bitsValue&&this.writeProperty(r.tag,e.value,{format:null!==(i=r.format)&&void 0!==i?i:y.PropertyFormat.trimmedString,single:null!==(o=r.single)&&void 0!==o&&o,ignoreFalse:"false"===r.defaultValue,ignoreTrue:"true"===r.defaultValue})},this[t]=this[t].bind(this))}}writeNlBetween(e,t,r,i,o){e.value.book&&o.push(s.NodeType.reference);(()=>{if(!this.wroteSomething||this.skipNLBetweenBitsValue)return!0;for(const e of o)if(t.key===e)return!0;return!1})()||this.writeNL(),this.skipNLBetweenBitsValue=!1,this.wroteSomething=!1}writeBreakscapedTagString(e){null!=e&&this.write(n.Breakscape.breakscape(`${e}`,{textFormat:f.TextFormat.bitmarkMinusMinus}))}writeString(e){null!=e&&this.write(`${e}`)}writeOPBUL(){this.write("[•")}writeOPESC(){this.write("[^")}writeOPRANGLE(){this.write("[►")}writeOPDANGLE(){this.write("[▼")}writeOPD(e){this.write(`[${".".repeat(e)}`)}writeOPU(){this.write("[_")}writeOPE(){this.write("[=")}writeOPB(){this.write("[!")}writeOPQ(){this.write("[?")}writeOPA(){this.write("[@")}writeOPP(){this.write("[+")}writeOPM(){this.write("[-")}writeOPS(){this.write("[\\")}writeOPR(){this.write("[*")}writeOPC(){this.write("[%")}writeOPAMP(){this.write("[&")}writeOPDOLLAR(){this.write("[$")}writeOPHASH(){this.write("[#")}writeOPPRE(){this.write("['")}writeOPPOST(){this.write("[")}writeOP(){this.write("[")}writeCL(){this.writer.getLastWrite().endsWith("^")?this.write(" ]"):this.write("]")}writeAmpersand(){this.write("&")}writeColon(){this.write(":")}writeHash(){this.write("#")}writePlainTextDivider(){this.write("$$$$")}writeCardSetStart(){this.options.cardSetVersion===c.CardSetVersion.v1?this.write("\n==="):this.write("\n====")}writeCardSetEnd(){this.options.cardSetVersion===c.CardSetVersion.v1&&this.write("===")}writeCardSetCardDivider(){this.options.cardSetVersion===c.CardSetVersion.v1?this.write("==="):this.write("====")}writeCardSetSideDivider(){this.options.cardSetVersion===c.CardSetVersion.v1?this.write("=="):this.write("--")}writeCardSetVariantDivider(){this.options.cardSetVersion===c.CardSetVersion.v1?this.write("--"):this.write("++")}writeNL(){this.options.debugGenerationInline?this.write("\\n"):this.write("\n")}writePropertyStyleResource(e,t){var r;if(e&&t){const i=t[null!==(r=d.ResourceTag.keyFromValue(t.type))&&void 0!==r?r:""],o=i&&(i.src||i.url||i.body)||"";this.writeOPA(),this.writeBreakscapedTagString(e),this.writeColon(),this.writeBreakscapedTagString(o),t.type===d.ResourceTag.article&&this.writeNL(),this.writeCL()}}writeResource(e,t){e&&(this.writeOPAMP(),this.writeBreakscapedTagString(e),this.writeColon(),this.writeBreakscapedTagString(t),e===d.ResourceTag.article&&this.writeNL(),this.writeCL())}writeProperty(e,t,r){var i;let o,n=!1;if(void 0!==t){const a=r.format===y.PropertyFormat.bitmarkMinusMinus||r.format===y.PropertyFormat.bitmarkPlusPlus;if(a){if(r.ignoreEmpty&&a&&this.isEmptyText(t))return;this.writeOPA(),this.writeBreakscapedTagString(e),this.writeColon(),this.textGenerator.generateSync(t,null!==(i=f.TextFormat.fromValue(r.format))&&void 0!==i?i:f.TextFormat.bitmarkMinusMinus),this.writeCL(),n=!0}else if(o=Array.isArray(t)?t:[t],o.length>0){r.single&&(o=o.slice(o.length-1));let t=0;for(const i of o)if(void 0!==i){if(r.ignoreFalse&&!1===i)continue;if(r.ignoreTrue&&!0===i)continue;if(r.ignoreEmpty&&""===i)continue;t>0&&this.writeNL(),this.writeOPA(),this.writeBreakscapedTagString(e),this.writeColon(),this.writeBreakscapedTagString(`${i}`),this.writeCL(),n=!0,t++}}}n||(this.skipNLBetweenBitsValue=!0)}writeInlineDebug(e,t){let r=e;t.open?r=`<${e}>`:t.close?r=`</${e}>`:t.single&&(r=`<${e} />`),this.writeString(r)}isEmptyText(e){return!e||(!Array.isArray(e)||0===e.length)}isWriteTextFormat(e,t){return!!(!(f.TextFormat.fromValue(e)===t)||this.options.explicitTextFormat)}getTextFormat(e){for(const t of e)if(t.key===s.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.textFormat}}isOfBitType1(e){return this.isOfBitType(e,[l.BitType.trueFalse1,l.BitType.multipleChoice1,l.BitType.multipleResponse1])}isOfBitType(e,t){const r=this.getBitType(e);return a.Config.isOfBitType(r,t)}getBitType(e){for(const t of e)if(t.key===s.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.bitType}}write(e){return e&&(this.wroteSomething=!0),this.writer.write(e),this}writeLine(e){return e&&(this.wroteSomething=!0),this.writer.writeLine(e),this}writeLines(e,t){return e.length>0&&e.reduce(((e,t)=>!!t||e),!1)&&(this.wroteSomething=!0),this.writer.writeLines(e,t),this}writeWhiteSpace(){return this.writer.writeWhiteSpace(),this}}t.BitmarkGenerator=C},3968:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(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((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkStringGenerator=void 0;const o=r(6772),n=r(5087);t.BitmarkStringGenerator=class{constructor(e){this.writer=new o.StringWriter,this.generator=new n.BitmarkGenerator(this.writer,e)}generate(e){return i(this,void 0,void 0,(function*(){return yield this.generator.generate(e),this.writer.getString()}))}generateSync(e){return this.generator.generateSync(e),this.writer.getString()}}},2497:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(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((i=i.apply(e,t||[])).next())}))},o=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonGenerator=void 0;const n=r(5126),a=r(7735),s=r(2028),l=r(126),p=r(5854),u=r(3811),c=r(363),y=r(6149),g=r(385),d=r(9554),f=r(777),m=r(6989),T=r(4078),h=r(8025),b=r(4),B=r(431),v={};class C extends b.AstWalkerGenerator{constructor(e,t){var r,i;super(),this.ast=new n.Ast,this.textParser=new f.TextParser,this.json=[],this.bitWrapperJson={},this.bitJson={},this.textDefault=a.Breakscape.EMPTY_STRING,this.bodyDefault=a.Breakscape.EMPTY_STRING,this.bodyJson=this.bodyDefault,this.placeholderIndex=0,this.enter=this.enter.bind(this),this.between=this.between.bind(this),this.exit=this.exit.bind(this),this.leaf=this.leaf.bind(this),this.bodyBitCallback=this.bodyBitCallback.bind(this),this.bitmarkVersion=null!==(r=u.BitmarkVersion.fromValue(null==t?void 0:t.bitmarkVersion))&&void 0!==r?r:u.DEFAULT_BITMARK_VERSION,this.textParserVersion=this.textParser.version(),this.options=Object.assign(Object.assign({},v),null==t?void 0:t.jsonOptions),this.debugGenerationInline=null!==(i=this.options.debugGenerationInline)&&void 0!==i&&i,this.jsonPrettifySpace=!0===this.options.prettify?2:this.options.prettify||void 0,this.bitmarkVersion===u.BitmarkVersion.v2?void 0===this.options.textAsPlainText&&(this.options.textAsPlainText=!0):void 0===this.options.textAsPlainText&&(this.options.textAsPlainText=!1),this.textGenerator=new B.TextGenerator(this.bitmarkVersion,{bodyBitCallback:this.bodyBitCallback,debugGenerationInline:this.debugGenerationInline}),this.writer=e,this.generatePropertyHandlers()}generate(e){return i(this,void 0,void 0,(function*(){this.resetState(),yield this.writer.open(),this.walkAndWrite(e),this.write(JSON.stringify(this.json,null,this.jsonPrettifySpace)),yield this.writer.close()}))}generateSync(e){this.resetState(),this.writer.openSync(),this.walkAndWrite(e),this.writer.closeSync()}resetState(){this.json=[],this.bitWrapperJson={},this.bitJson={},this.textDefault=this.options.textAsPlainText?a.Breakscape.EMPTY_STRING:[],this.bodyDefault=this.options.textAsPlainText?a.Breakscape.EMPTY_STRING:[],this.bodyJson=this.bodyDefault,this.listItem=void 0,this.placeholderIndex=0,this.printed=!1}walkAndWrite(e){this.ast.walk(e,l.NodeType.bitmarkAst,this,void 0)}enter_bitmarkAst(e,t){this.json=[]}exit_bitmarkAst(e,t){this.options.textAsPlainText&&this.convertAllBitmarkTextsToStringsForPlainText(this.json),this.removeTemporaryProperties(this.json)}enter_bitsValue(e,t){var r,i,o;const n=e.value;this.bitWrapperJson={},this.json.push(this.bitWrapperJson),this.bitJson=this.createBitJson(n),this.bitWrapperJson.bit=this.bitJson;const a=s.Config.getBitConfig(n.bitType),l=!!a.rootExampleType,u=a.rootExampleType===c.ExampleType.boolean;if(l){let e;u?(e=!0,s.Config.isOfBitType(n.bitType,p.BitType.trueFalse1)&&void 0!==(null===(i=null===(r=n.cardNode)||void 0===r?void 0:r.statement)||void 0===i?void 0:i.isCorrect)&&(e=n.cardNode.statement.isCorrect)):e=null!==(o=m.ArrayUtils.asSingle(n.sampleSolution))&&void 0!==o?o:"";const t=this.toExample(n,{defaultExample:e,isBoolean:u});this.bitJson.isExample=t.isExample,this.bitJson.example=t.example}else n.isExample&&(this.bitJson.isExample=!0);this.placeholderIndex=0}exit_bitsValue(e,t){this.cleanBitJson(this.bitJson)}enter_imageSource(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}enter_person(e,t){const r=this.getBitType(t);let i="person";return s.Config.isOfBitType(r,p.BitType.conversationLeft1)&&(i="partner"),this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1,keyOverride:i})}enter_ratingLevelStart(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}enter_ratingLevelEnd(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}enter_productId(e,t){const r=e.value,i=this.getParentNode(t);if((null==i?void 0:i.key)!==l.NodeType.bitsValue)return!0;return this.getBitType(t)===p.BitType.module?this.addProperty(this.bitJson,"productId",r,{array:!0}):r.length>0&&this.addProperty(this.bitJson,"productId",r[r.length-1],{array:!1}),!1}enter_markConfig(e,t){return!0}enter_markConfigValue(e,t){const r=e.value,i=this.getParentNode(t);return(null==i?void 0:i.key)!==l.NodeType.markConfig||(this.bitJson.marks||(this.bitJson.marks=[]),this.bitJson.marks.push(r),!1)}enter_item(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}enter_lead(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}enter_pageNumber(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}enter_marginNumber(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}enter_hint(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}enter_instruction(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}enter_title(e,t){return this.standardHandler(e,t,[l.NodeType.bitsValue,l.NodeType.cardNode],{array:!0})}enter_subtitle(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}enter_caption(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}enter_width(e,t){var r;let i=e.value;const o=this.getBitType(t),n=this.getParentNode(t);return(null==n?void 0:n.key)===l.NodeType.bitsValue&&s.Config.isOfBitType(o,p.BitType.extractorBlock)&&(i=null!==(r=h.NumberUtils.asNumber(i,0))&&void 0!==r?r:0),this.standardHandler(e,t,void 0,{array:!1,valueOverride:i})}enter_height(e,t){var r;let i=e.value;const o=this.getBitType(t),n=this.getParentNode(t);return(null==n?void 0:n.key)===l.NodeType.bitsValue&&s.Config.isOfBitType(o,p.BitType.extractorBlock)&&(i=null!==(r=h.NumberUtils.asNumber(i,0))&&void 0!==r?r:0),this.standardHandler(e,t,void 0,{array:!1,valueOverride:i})}enter_extraProperties(e,t){const r=e.value;if(!this.options.excludeUnknownProperties&&r)for(const[e,t]of Object.entries(r)){let r=e;Object.prototype.hasOwnProperty.call(this.bitJson,e)&&(r=`_${e}`),this.addProperty(this.bitJson,r,t,{array:!0})}}enter_cardBitsValue(e,t){var r,i,o,n;const a=e.value,s=this.getBitType(t);if(!s)return;let l;s===p.BitType.pageFooter?(this.bitJson.sections||(this.bitJson.sections=[]),l=this.bitJson.sections):(this.bitJson.listItems||(this.bitJson.listItems=[]),l=this.bitJson.listItems),this.listItem={item:null!==(r=a.item)&&void 0!==r?r:[],lead:null!==(i=a.lead)&&void 0!==i?i:[],hint:null!==(o=a.hint)&&void 0!==o?o:[],instruction:null!==(n=a.instruction)&&void 0!==n?n:[],body:this.bodyDefault},l.push(this.listItem)}exit_cardBitsValue(e,t){this.listItem=void 0}enter_body(e,t){const r=e.value,i=this.getParentNode(t);if(!i)return!1;const o=this.getTextFormat(t),n=o===g.TextFormat.bitmarkMinusMinus||o===g.TextFormat.bitmarkPlusPlus;if(this.bodyJson=r.body,i.key===l.NodeType.bitsValue){if(this.bitJson.body=this.bodyJson,this.options.textAsPlainText&&n&&this.isBitmarkText(this.bodyJson)){const e=this.textGenerator.generateSync(this.bodyJson,o);this.bitJson.body=(a.Breakscape.unbreakscape(e,{textFormat:g.TextFormat.bitmarkMinusMinus})||"").trim()}}else i.key===l.NodeType.cardBitsValue&&this.listItem&&(this.listItem.body=this.bodyJson);return!1}bodyBitCallback(e,t,r){var i;const o=`{${this.placeholderIndex}}`;return this.placeholderIndex++,this.bitJson.placeholders=null!==(i=this.bitJson.placeholders)&&void 0!==i?i:{},this.bitJson.placeholders[o]=e,o}enter_footer(e,t){return this.standardHandler(e,t,void 0,{array:!0,valueOverride:e.value.footer})}enter_elements(e,t){return this.standardHandler(e,t,void 0,{array:!0})}enter_flashcards(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0,keyOverride:"cards"})}enter_definitions(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_statement(e,t){var r,i;const o=e.value,n=this.getParentNode(t);(null==n?void 0:n.key)===l.NodeType.cardNode&&o&&(this.bitJson.statement=null!==(r=o.statement)&&void 0!==r?r:"",this.bitJson.isCorrect=null!==(i=o.isCorrect)&&void 0!==i&&i,this.bitJson.example=o.example,this.bitJson.isExample=o.isExample)}enter_statements(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_choices(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_responses(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_quizzes(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_heading(e,t){return this.standardHandler(e,t,void 0,{array:!1})}enter_pairs(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_matrix(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_table(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!1})}enter_questions(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_botResponses(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0,keyOverride:"responses"})}enter_ingredients(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!0})}enter_captionDefinitionList(e,t){return this.standardHandler(e,t,l.NodeType.cardNode,{array:!1})}enter_imagePlaceholder(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}enter_resources(e,t){var r,i;const o=e.value,n=this.getBitType(t),a=this.getResourceType(t);if(!o||!n)return!0;let l;const u=s.Config.getBitConfig(n),c=s.Config.getBitResourcesConfig(n,a),g=c.comboResourceTagTypesMap;if(c.comboResourceTagTypesMap.size>0)for(const[e,t]of g.entries()){const n={type:e,__typeAlias:e};for(const e of t){const t=o.find((t=>t.__typeAlias===e));if(t){const e=s.Config.getTagConfigForTag(u.tags,t.__typeAlias),o=null!==(r=null==e?void 0:e.jsonKey)&&void 0!==r?r:t.__typeAlias,a=null!==(i=null==e?void 0:e.tag)&&void 0!==i?i:t.__typeAlias,l=t.__typeAlias===a?t:void 0;if(l)for(const[e,t]of Object.entries(l))"type"!==e&&(n[o]=t)}}l=n}else if(s.Config.isOfBitType(n,[p.BitType.imagesLogoGrave,p.BitType.prototypeImages])){const e=[];for(const t of o)t.type===y.ResourceTag.image&&e.push(t);n===p.BitType.imagesLogoGrave?this.bitJson.logos=e:this.bitJson.images=e}else o.length>=1&&(l=o[0]);return this.bitJson.resource=l,!1}leaf_level(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}enter_book(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!0})}leaf_book(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}leaf_anchor(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}leaf_reference(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}leaf_referenceEnd(e,t){return this.standardHandler(e,t,l.NodeType.bitsValue,{array:!1})}leaf_markup(e,t){const r=e.value;return r&&(this.bitWrapperJson.bitmark=r),!1}enter_internalComment(e,t){return!1}enter_parser(e,t){const r=e.value,i=this.getBitType(t),n=this.getParentNode(t);if(r&&i){const{version:e,excessResources:i,warnings:a,errors:s}=r,p=o(r,["version","excessResources","warnings","errors"]),u=`${this.bitmarkVersion}`,c=this.textParserVersion;let y;if(Array.isArray(i)&&i.length>0){y=[];for(const e of i)y.push(e)}const g=this.getInternalComments(t);(null==n?void 0:n.key)===l.NodeType.bitsValue&&(this.bitWrapperJson.parser=Object.assign(Object.assign({version:e,bitmarkVersion:u,textParserVersion:c,internalComments:g},p),{warnings:a,errors:s,excessResources:y}),this.options.enableWarnings||delete this.bitWrapperJson.parser.warnings)}}generatePropertyHandlers(){var e;const t=s.Config.getRawPropertiesConfig();for(const r of Object.values(t)){const t=`enter_${null!==(e=r.astKey)&&void 0!==e?e:r.tag}`;"function"!=typeof this[t]&&(this[t]=(e,t)=>{var i;const o=e.value;if(null==o)return;const n=this.getParentNode(t);if((null==n?void 0:n.key)!==l.NodeType.bitsValue)return;const a=null!==(i=r.jsonKey)&&void 0!==i?i:r.tag;this.addProperty(this.bitJson,a,o,{array:!r.single})},this[t]=this[t].bind(this))}}standardHandler(e,t,r,i){var o,n;if(r){const e=Array.isArray(r)?r:[r],i=this.getParentNode(t);if(!(null==i?void 0:i.key)||!e.includes(null==i?void 0:i.key))return!0}return this.addProperty(this.bitJson,null!==(o=i.keyOverride)&&void 0!==o?o:e.key,null!==(n=i.valueOverride)&&void 0!==n?n:e.value,i),!1}addProperty(e,t,r,i){if(void 0!==r){let o;Array.isArray(r)||(r=[r]);const n=r;o=!i.array&&n.length>=1?n[n.length-1]:n,(i.allowNull||null!=o)&&(e[t]=o)}}toExample(e,t){const{isExample:r,example:i,__isDefaultExample:o}=e,{defaultExample:n,isBoolean:a}=t;if(!r)return{isExample:!1,example:null};let s;return s=o?a?T.BooleanUtils.toBoolean(n):this.convertBreakscapedStringToJsonText(n,g.TextFormat.bitmarkMinusMinus):a?T.BooleanUtils.toBoolean(i):this.convertBreakscapedStringToJsonText(i,g.TextFormat.bitmarkMinusMinus),{isExample:!0,example:s}}getBitType(e){for(const t of e)if(t.key===l.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.bitType}}getTextFormat(e){var t;const r=this.getBitType(e);if(r){const i=s.Config.getBitConfig(r);for(const r of e)if(r.key===l.NodeType.bitsValue){const e=r.value;return null!==(t=g.TextFormat.fromValue(null==e?void 0:e.textFormat))&&void 0!==t?t:i.textFormatDefault}}return g.TextFormat.bitmarkMinusMinus}getResourceType(e){for(const t of e)if(t.key===l.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.resourceType}}getInternalComments(e){if(this.getBitType(e))for(const t of e)if(t.key===l.NodeType.bitsValue){return t.value.internalComment}}convertBreakscapedStringToJsonText(e,t){if(!(t===g.TextFormat.bitmarkMinusMinus||t===g.TextFormat.bitmarkPlusPlus))return e||"";if(this.options.textAsPlainText)return e||"";return this.textParser.toAst(e,{textFormat:t})}concatenatePlainTextWithJsonTexts(e,t,r){var i;if(Array.isArray(e)){if(r=r.trim()){const o=r.split("\n"),n=[];for(let e=0;e<t;e++)n.push({type:d.TextNodeType.hardBreak});for(let e=0;e<o.length;e++){const t=o[e];t&&n.push({text:t,type:d.TextNodeType.text}),e<o.length-1&&n.push({type:d.TextNodeType.hardBreak})}const a=e[e.length-1];a&&a.type===d.TextNodeType.paragraph?a.content=[...null!==(i=a.content)&&void 0!==i?i:[],...n]:e.push({type:d.TextNodeType.paragraph,content:n,attrs:{}})}return e}return`${null!=e?e:""}${"\n".repeat(t)}${null!=r?r:""}`}isBitmarkText(e){return null!=e&&(!!Array.isArray(e)&&"text"===e.__tag)}writeInlineDebug(e,t){let r=e;t.open?r=`<${e}>`:t.close?r=`</${e}>`:t.single&&(r=`<${e} />`),this.writeString(r)}writeString(e){null!=e&&this.write(`${e}`)}createBitJson(e){return{type:e.isCommented?p.BitType._comment:e.bitType,originalType:e.isCommented?e.bitType:void 0,format:e.textFormat,bitLevel:e.bitLevel}}cleanBitJson(e){var t,r,i,o,n,a;const l=s.Config.getBitType(e.type);if(null==e.originalType&&(e.originalType=void 0),e.item||(e.item=void 0),s.Config.isOfBitType(l,[p.BitType._error,p.BitType._comment]))delete e.format,delete e.item,delete e.lead,delete e.pageNumber,delete e.marginNumber,delete e.hint,delete e.instruction;else{let u=!1,c=!1;s.Config.isOfBitType(l,[p.BitType.page])?(null!=e.item&&0!==(null===(t=e.item)||void 0===t?void 0:t.length)||delete e.item,null!=e.lead&&0!==(null===(r=e.lead)||void 0===r?void 0:r.length)||delete e.lead,null!=e.pageNumber&&0!==(null===(i=e.pageNumber)||void 0===i?void 0:i.length)||delete e.pageNumber,null!=e.marginNumber&&0!==(null===(o=e.marginNumber)||void 0===o?void 0:o.length)||delete e.marginNumber,null!=e.hint&&0!==(null===(n=e.hint)||void 0===n?void 0:n.length)||delete e.hint,null!=e.instruction&&0!==(null===(a=e.instruction)||void 0===a?void 0:a.length)||delete e.instruction):(null==e.item&&(e.item=this.textDefault),null==e.lead&&(e.lead=this.textDefault),null==e.hint&&(e.hint=this.textDefault),null==e.instruction&&(e.instruction=this.textDefault),null==e.pageNumber&&(e.pageNumber=this.textDefault),null==e.marginNumber&&(e.marginNumber=this.textDefault)),null==e.body&&(e.body=this.bodyDefault),s.Config.isOfBitType(l,[p.BitType.article]),s.Config.isOfBitType(l,[p.BitType.example])&&(u=!0,c=!0),s.Config.isOfBitType(l,[p.BitType.multipleChoice1,p.BitType.multipleResponse1,p.BitType.multipleChoiceText,p.BitType.highlightText,p.BitType.gapText,p.BitType.gapTextInstructionGrouped,p.BitType.clozeAndMultipleChoiceText,p.BitType.sequence,p.BitType.mark,p.BitType.flashcard,p.BitType.definitionList])&&(u=!0,null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(l,[p.BitType.sequence])&&(u=!0,c=!0,null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(l,p.BitType.cloze)&&(u=!0,s.Config.isOfBitType(l,p.BitType.clozeSolutionGrouped)?(null==e.quizCountItems&&(e.quizCountItems=!0),null==e.quizStrikethroughSolutions&&(e.quizStrikethroughSolutions=!0)):s.Config.isOfBitType(l,p.BitType.clozeInstructionGrouped)&&(null==e.quizCountItems&&(e.quizCountItems=!0),null==e.quizStrikethroughSolutions&&(e.quizStrikethroughSolutions=!1))),s.Config.isOfBitType(l,[p.BitType.multipleChoice,p.BitType.multipleResponse])&&(u=!0,null==e.body&&(e.body=this.bodyDefault),null==e.footer&&(e.footer=this.textDefault)),s.Config.isOfBitType(l,p.BitType.essay)&&(u=!0,c=!0,null==e.body&&(e.body=this.bodyDefault),null==e.partialAnswer&&(e.partialAnswer="")),s.Config.isOfBitType(l,p.BitType.trueFalse1)&&(u=!0,c=!0,null==e.isCorrect&&(e.isCorrect=!1),null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(l,p.BitType.trueFalse)&&(u=!0,null==e.labelFalse&&(e.labelFalse=""),null==e.labelTrue&&(e.labelTrue=""),null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(l,p.BitType.chapter)&&(null==e.toc&&(e.toc=!0),null==e.progress&&(e.progress=!0),null==e.level&&(e.level=1),null==e.body&&(e.body=this.bodyDefault)),s.Config.isOfBitType(l,p.BitType.interview)&&(u=!0,null==e.body&&(e.body=this.bodyDefault),null==e.footer&&(e.footer=this.textDefault),null==e.questions&&(e.questions=[])),l===p.BitType.matchMatrix&&(u=!0),s.Config.isOfBitType(l,p.BitType.match)&&(u=!0,null==e.heading&&(e.heading={})),s.Config.isOfBitType(l,p.BitType.learningPathBook)&&(null==e.isTracked&&(e.isTracked=!0),null==e.isInfoOnly&&(e.isInfoOnly=!1)),s.Config.isOfBitType(l,p.BitType.table)&&(null==e.tableFixedHeader&&(e.tableFixedHeader=!1),null==e.tableSearch&&(e.tableSearch=!1),null==e.tableSort&&(e.tableSort=!1),null==e.tablePagination&&(e.tablePagination=!1),null==e.tablePaginationLimit&&(e.tablePaginationLimit=0),null==e.tableHeight&&(e.tableHeight=0),null==e.tableWhitespaceNoWrap&&(e.tableWhitespaceNoWrap=!0),null==e.tableAutoWidth&&(e.tableAutoWidth=!0),null==e.tableResizableColumns&&(e.tableResizableColumns=!1),null==e.tableColumnMinWidth&&(e.tableColumnMinWidth=0)),s.Config.isOfBitType(l,[p.BitType.pageBanner,p.BitType.pageBuyButton,p.BitType.pageBuyButtonAlt,p.BitType.pageBuyButtonPromotion,p.BitType.pageFooter,p.BitType.pageOpenBook,p.BitType.pagePerson,p.BitType.pageProduct,p.BitType.pageProductList,p.BitType.pageProductVideo,p.BitType.pageProductVideoList,p.BitType.pageSectionFolder,p.BitType.pageSubscribe,p.BitType.pageSubpage])&&(null==e.slug&&(e.slug=""),null==e.body&&(e.body=this.bodyDefault),s.Config.isOfBitType(l,p.BitType.pageBuyButton)&&null==e.content2Buy&&(e.content2Buy="")),s.Config.isOfBitType(l,p.BitType.book)&&(null==e.hasMarkAsDone&&(e.hasMarkAsDone=!1),null==e.processHandIn&&(e.processHandIn=!1),null==e.isPublic&&(e.isPublic=!1)),l!==p.BitType.articleAi&&l!==p.BitType.noteAi&&l!==p.BitType.summaryAi||null==e.aiGenerated&&(e.aiGenerated=!0),s.Config.isOfBitType(l,[p.BitType.articleResponsive,p.BitType.pageArticleResponsive])&&null==e.imageFirst&&(e.imageFirst=!0),s.Config.isOfBitType(l,p.BitType.reviewNote)&&(null==e.resolved&&(e.resolved=!1),null==e.resolvedDate&&(e.resolvedDate=""),null==e.resolvedBy&&(e.resolvedBy="")),s.Config.isOfBitType(l,[p.BitType.imagesLogoGrave,p.BitType.prototypeImages])&&(l===p.BitType.imagesLogoGrave?null==e.logos&&(e.logos=[]):null==e.images&&(e.images=[])),s.Config.isOfBitType(l,[p.BitType.stepImageScreenshotWithPointer,p.BitType.surveyMatrix])&&(null==e.pointerTop&&(e.pointerTop=""),null==e.pointerLeft&&(e.pointerLeft=""),s.Config.isOfBitType(l,[p.BitType.surveyMatrix])&&null==e.buttonCaption&&(e.buttonCaption="")),s.Config.isOfBitType(l,[p.BitType.listItem])&&null==e.listItemIndent&&(e.listItemIndent=0),s.Config.isOfBitType(l,p.BitType.surveyRating)&&(null==e.ratingLevelStart&&(e.ratingLevelStart={level:0}),null==e.ratingLevelEnd&&(e.ratingLevelEnd={level:0})),s.Config.isOfBitType(l,p.BitType.vendorStripePricingTable)&&(null==e.stripePricingTableId&&(e.stripePricingTableId=""),null==e.stripePublishableKey&&(e.stripePublishableKey="")),s.Config.isOfBitType(l,p.BitType.callToAction)&&(null==e.buttonCaption&&(e.buttonCaption=""),null==e.callToActionUrl&&(e.callToActionUrl="")),s.Config.isOfBitType(l,p.BitType.module)&&null==e.hasBookNavigation&&(e.hasBookNavigation=!0),s.Config.isOfBitType(l,p.BitType.container)&&null==e.allowedBit&&(e.allowedBit=[]),u?null==e.isExample&&(e.isExample=!1):(delete e.isExample,delete e.example),c?null==e.example&&(e.example=null):delete e.example}return e}convertAllBitmarkTextsToStringsForPlainText(e){if(!this.options.textAsPlainText)return;const t=e;for(const e in t){const r=t[e];if(this.isBitmarkText(r)){const i=this.textGenerator.generateSync(r,g.TextFormat.bitmarkMinusMinus);t[e]=(a.Breakscape.unbreakscape(i)||"").trim()}else"object"==typeof t[e]&&this.convertAllBitmarkTextsToStringsForPlainText(t[e])}}removeTemporaryProperties(e){const t=e;for(const e in t)e.startsWith("__")?delete t[e]:"object"==typeof t[e]&&this.removeTemporaryProperties(t[e])}write(e){return this.writer.write(e),this}writeLine(e){return this.writer.writeLine(e),this}writeLines(e,t){return this.writer.writeLines(e,t),this}writeWhiteSpace(){return this.writer.writeWhiteSpace(),this}}t.JsonGenerator=C},7984:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(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((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonObjectGenerator=void 0;const o=r(6772),n=r(2497);t.JsonObjectGenerator=class{constructor(e){this.writer=new o.StringWriter,this.generator=new n.JsonGenerator(this.writer,e)}generate(e){return i(this,void 0,void 0,(function*(){return yield this.generator.generate(e),JSON.parse(this.writer.getString())}))}generateSync(e){return this.generator.generateSync(e),JSON.parse(this.writer.getString())}}},98:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(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((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonStringGenerator=void 0;const o=r(6772),n=r(2497);t.JsonStringGenerator=class{constructor(e){this.writer=new o.StringWriter,this.generator=new n.JsonGenerator(this.writer,e)}generate(e){return i(this,void 0,void 0,(function*(){return yield this.generator.generate(e),this.writer.getString()}))}generateSync(e){return this.generator.generateSync(e),this.writer.getString()}}},431:function(e,t,r){var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(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((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TextGenerator=void 0;const o=r(5126),n=r(7735),a=r(126),s=r(3811),l=r(385),p=r(2483),u=r(9554),c=r(4),y={bodyBitCallback:void 0,debugGenerationInline:!1},g="==",d={[p.TextMarkType.bold]:"**",[p.TextMarkType.light]:"``",[p.TextMarkType.italic]:"__",[p.TextMarkType.highlight]:"!!"},f=[p.TextMarkType.bold,p.TextMarkType.light,p.TextMarkType.italic,p.TextMarkType.highlight],m=[p.TextMarkType.strike,p.TextMarkType.subscript,p.TextMarkType.superscript,p.TextMarkType.ins,p.TextMarkType.del,p.TextMarkType.underline,p.TextMarkType.doubleUnderline,p.TextMarkType.circle,p.TextMarkType.languageEm,p.TextMarkType.userUnderline,p.TextMarkType.userDoubleUnderline,p.TextMarkType.userStrike,p.TextMarkType.userCircle,p.TextMarkType.userHighlight,p.TextMarkType.ref,p.TextMarkType.xref,p.TextMarkType.footnote,p.TextMarkType.footnoteStar,p.TextMarkType.var,p.TextMarkType.code,p.TextMarkType.timer,p.TextMarkType.duration,p.TextMarkType.color,p.TextMarkType.comment],T=new RegExp(/(\n|\r\n)/,"g"),h=new RegExp(/https?:\/\/|mailto:(.*)/,"g"),b="enter",B="between",v="exit";class C extends c.AstWalkerGenerator{constructor(e,t){var r,i;super(),this.ast=new o.Ast,this.textFormat=l.TextFormat.bitmarkMinusMinus,this.writerText="",this.nodeIndex=0,this.currentIndent=0,this.prevIndent=0,this.indentationStringCache="",this.inCodeBlock=!1,this.exitedCodeBlock=!1,this.inBulletList=!1,this.placeholderIndex=0,this.placeholders={},this.bitmarkVersion=null!==(r=s.BitmarkVersion.fromValue(e))&&void 0!==r?r:s.DEFAULT_BITMARK_VERSION,this.options=Object.assign(Object.assign({},y),t),this.debugGenerationInline=null!==(i=this.options.debugGenerationInline)&&void 0!==i&&i,this.bitmarkVersion,s.BitmarkVersion.v2,this.enter=this.enter.bind(this),this.between=this.between.bind(this),this.exit=this.exit.bind(this),this.leaf=this.leaf.bind(this)}generate(e,t){return i(this,void 0,void 0,(function*(){return this.resetState(t),this.walkAndWrite(e),this.writerText}))}generateSync(e,t){return this.resetState(t),this.walkAndWrite(e),this.writerText}getPlaceholders(){return this.placeholders}resetState(e){this.printed=!1,this.textFormat=e,this.writerText="",this.nodeIndex=0,this.currentIndent=0,this.prevIndent=0,this.indentationStringCache="",this.inCodeBlock=!1,this.exitedCodeBlock=!1,this.inBulletList=!1,this.placeholderIndex=0,this.placeholders={}}walkAndWrite(e){this.ast.walk(e,a.NodeType.textAst,this,void 0)}enter_textAstValue(e,t){return this.handleEnterNode(e.value,t)}between_textAstValue(e,t,r,i){return this.handleBetweenNode(e.value,t,r,i)}exit_textAstValue(e,t){return this.handleExitNode(e.value,t)}enter_contentValueValue(e,t){return this.handleEnterNode(e.value,t)}between_contentValueValue(e,t,r,i){this.handleBetweenNode(e.value,t,r,i)}exit_contentValueValue(e,t){return this.handleExitNode(e.value,t)}handleEnterNode(e,t){switch(this.handleIndent(e),e.type){case u.TextNodeType.paragraph:this.writeParagraph(e);break;case u.TextNodeType.hardBreak:this.writeHardBreak(e);break;case u.TextNodeType.text:this.writeMarks(e,b),this.writeText(e),this.writeMarks(e,B);break;case u.TextNodeType.heading:this.writeHeading(e);break;case u.TextNodeType.section:this.writeSection(e);break;case u.TextNodeType.listItem:case u.TextNodeType.taskItem:this.writeBullet(e,t);break;case u.TextNodeType.image:this.writeImage(e);break;case u.TextNodeType.codeBlock:this.inCodeBlock=!0,this.writeCodeBlock(e);break;case u.TextNodeType.noBulletList:case u.TextNodeType.bulletList:case u.TextNodeType.orderedList:case u.TextNodeType.orderedListRoman:case u.TextNodeType.orderedListRomanLower:case u.TextNodeType.letteredList:case u.TextNodeType.letteredListLower:case u.TextNodeType.taskList:this.inBulletList=!0;break;case u.TextNodeType.gap:case u.TextNodeType.select:case u.TextNodeType.highlight:case u.TextNodeType.mark:return this.writeBodyBit(e,t),!1}this.exitedCodeBlock=!1}handleBetweenNode(e,t,r,i){e.type}handleExitNode(e,t){switch(e.type){case u.TextNodeType.text:this.writeMarks(e,v);break;case u.TextNodeType.paragraph:this.textFormat!==l.TextFormat.bitmarkMinusMinus&&this.writeNL();break;case u.TextNodeType.heading:case u.TextNodeType.section:case u.TextNodeType.image:this.writeNL(),this.writeNL();break;case u.TextNodeType.codeBlock:this.writeNL(),this.writeNL(),this.inCodeBlock=!1,this.exitedCodeBlock=!0;break;case u.TextNodeType.noBulletList:case u.TextNodeType.bulletList:case u.TextNodeType.orderedList:case u.TextNodeType.orderedListRoman:case u.TextNodeType.orderedListRomanLower:case u.TextNodeType.letteredList:case u.TextNodeType.letteredListLower:case u.TextNodeType.taskList:this.currentIndent<=1&&(this.writeNL(),this.inBulletList=!1)}this.handleDedent(e),this.nodeIndex++}handleIndent(e){switch(e.type){case u.TextNodeType.noBulletList:case u.TextNodeType.bulletList:case u.TextNodeType.orderedList:case u.TextNodeType.orderedListRoman:case u.TextNodeType.orderedListRomanLower:case u.TextNodeType.letteredList:case u.TextNodeType.letteredListLower:case u.TextNodeType.taskList:this.currentIndent++}}handleDedent(e){switch(e.type){case u.TextNodeType.noBulletList:case u.TextNodeType.bulletList:case u.TextNodeType.orderedList:case u.TextNodeType.orderedListRoman:case u.TextNodeType.orderedListRomanLower:case u.TextNodeType.letteredList:case u.TextNodeType.letteredListLower:case u.TextNodeType.taskList:this.currentIndent--}}getLinkHref(e){if(e.type===u.TextNodeType.text&&e.marks){const t=e.marks.reduce(((e,t)=>{var r;if(t.type===p.TextMarkType.link){const e=null===(r=t.attrs)||void 0===r?void 0:r.href;if(e)return e}return e}),"");if(t)return t}return!1}getIndentationString(){if(this.currentIndent===this.prevIndent)return this.indentationStringCache;let e="";for(let t=1;t<this.currentIndent;t++)e+="\t";return this.indentationStringCache=e,this.prevIndent=this.currentIndent,e}writeBodyBit(e,t){const r=`[!${this.placeholderIndex}]`;if(this.placeholders[r]=e,this.options.bodyBitCallback){const r=this.options.bodyBitCallback(e,this.placeholderIndex,t);this.write(r)}else this.write(r);this.placeholderIndex++}writeText(e){if(null==e.text)return;if(this.writeLink(e))return;this.inCodeBlock;let t=e.text;if(t=n.Breakscape.breakscape(t,{textFormat:this.textFormat}),this.currentIndent>1){const e=this.getIndentationString();t=t.replace(T,`$1${e}`)}this.write(t)}writeLink(e){if(null==e.text)return!1;const t=this.getLinkHref(e);if(t){let r=n.Breakscape.breakscape(e.text,{textFormat:this.textFormat});if(this.currentIndent>1){const e=this.getIndentationString();r=r.replace(T,`$1${e}`)}return t.replace(h,"$1")===r?this.write(t):(r=`==${r}==|link:${t}|`,this.write(r)),!0}return!1}writeMarks(e,t){if(e.marks){if(0===e.marks.length)return void this.writeMarkTextWrapper(g);const r=1===e.marks.length,i=e.marks.reduce(((e,t)=>e||(-1!==f.indexOf(t.type)?r?d[t.type]:g:-1!==m.indexOf(t.type)?g:e)),void 0);if(null!=i){if(t!=b&&t!=B||this.writeMarkTextWrapper(i),t==B)for(const t of e.marks)-1!==f.indexOf(t.type)?r||(this.writeInlineMarkStartEnd(),this.writeInlineMark(t)):p.TextMarkType.comment===t.type?(this.writeInlineMarkStartEnd(),this.writeCommentMark(t)):p.TextMarkType.ref===t.type?(this.writeInlineMarkStartEnd(),this.writeRefMark(t)):p.TextMarkType.xref===t.type?(this.writeInlineMarkStartEnd(),this.writeXRefMark(t)):p.TextMarkType.footnote===t.type?(this.writeInlineMarkStartEnd(),this.writeFootnoteMark(t)):p.TextMarkType.footnoteStar===t.type?(this.writeInlineMarkStartEnd(),this.writeFootnoteStarMark(t)):-1!==m.indexOf(t.type)&&(this.writeInlineMarkStartEnd(),this.writeInlineMark(t));if(t==v){let t=!1;for(const i of e.marks)-1!==f.indexOf(i.type)?r||(t=!0):p.TextMarkType.comment!==i.type&&p.TextMarkType.ref!==i.type&&p.TextMarkType.xref!==i.type&&p.TextMarkType.footnote!==i.type&&p.TextMarkType.footnoteStar!==i.type&&-1===m.indexOf(i.type)||(t=!0);t&&this.writeInlineMarkStartEnd()}}}}writeParagraph(e){var t,r,i,o,n;if(this.textFormat===l.TextFormat.bitmarkPlusPlus){if(this.inBulletList)return;const a=null!==(r=null===(t=e.content)||void 0===t?void 0:t.length)&&void 0!==r?r:0;if(0===this.nodeIndex){if(1===a){const t=(null===(i=e.content)||void 0===i?void 0:i[0].type)===u.TextNodeType.text,r=null!==(n=null===(o=e.content)||void 0===o?void 0:o[0].text)&&void 0!==n?n:"";if(!t||""!==r)return}if(a>1)return}this.write("|"),this.writeNL(),this.exitedCodeBlock&&this.writeNL()}}writeHardBreak(e){if(this.writeNL(),this.currentIndent>1){const e=this.getIndentationString();this.write(e)}}writeHeading(e){var t,r;let i="";const o=null!==(r=null===(t=e.attrs)||void 0===t?void 0:t.level)&&void 0!==r?r:1;for(let e=0;e<+o;e++)i+="#";i+=" ",this.write(i)}writeSection(e){let t="";t=e.section?`|${e.section}: `:"|",this.write(t)}writeBullet(e,t){var r,i,o,n;let a=this.getIndentationString();const s=this.getParentNode(t,2),l=null==s?void 0:s.value,p=null==l?void 0:l.type,c=null!==(i=null===(r=null==l?void 0:l.attrs)||void 0===r?void 0:r.start)&&void 0!==i?i:1;if(p===u.TextNodeType.bulletList)a+="• ";else if(p===u.TextNodeType.noBulletList)a+="•_ ";else if(p===u.TextNodeType.orderedList)a+=`•${c} `;else if(p===u.TextNodeType.orderedListRoman)a+=`•${c}I `;else if(p===u.TextNodeType.orderedListRomanLower)a+=`•${c}i `;else if(p===u.TextNodeType.letteredList)a+="•A ";else if(p===u.TextNodeType.letteredListLower)a+="•a ";else if(p===u.TextNodeType.taskList){a+=null!==(n=null===(o=e.attrs)||void 0===o?void 0:o.checked)&&void 0!==n&&n?"•+ ":"•- "}a&&this.write(a)}writeImage(e){if(null==e.attrs||!e.attrs.src)return;const t=e.attrs;let r=`|image:${t.src}|`;for(const[e,i]of Object.entries(t))switch(e){case"textAlign":"left"!==i&&(r+=`@captionAlign:${i}|`);break;case"alignment":"center"!==i&&i&&(r+=`@alignment:${i}|`);break;case"title":i&&(r+=`@caption:${i}|`);break;case"class":"center"!==i&&i&&(r+=`@align:${i}|`);break;case"comment":i&&(r+=`#${i}|`);break;case"alt":case"width":case"height":default:i&&(r+=`@${e}:${i}|`);case"src":}this.write(r)}writeCodeBlock(e){if(null==e.attrs||!e.attrs.language)return;const t=`|code:${e.attrs.language}\n`;this.write(t)}writeMarkTextWrapper(e){e&&this.write(e)}writeInlineMark(e){let t=`${e.type}`;if(e.attrs)for(const[r,i]of Object.entries(e.attrs))("language"===r&&"plain text"!==i||"color"===r||"name"===r||"duration"===r)&&(t=`${t}:${i}`);this.write(t)}writeCommentMark(e){const t=`#${e.comment||""}`;this.write(t)}writeRefMark(e){var t,r;const i=`►${null!==(r=null===(t=e.attrs)||void 0===t?void 0:t.reference)&&void 0!==r?r:""}`;this.write(i)}writeXRefMark(e){var t,r;const i=`xref:${null!==(r=null===(t=e.attrs)||void 0===t?void 0:t.xref)&&void 0!==r?r:""}`;this.write(i)}writeFootnoteMark(e){this.write("footnote:")}writeFootnoteStarMark(e){this.write("footnote*:")}writeInlineMarkStartEnd(){this.write("|")}writeString(e){null!=e&&this.write(`${e}`)}writeNL(){this.options.debugGenerationInline?this.write("\\n"):this.write("\n")}writeInlineDebug(e,t){let r=e;t.open?r=`<${e}>`:t.close?r=`</${e}>`:t.single&&(r=`<${e} />`),this.writeString(r)}getBitType(e){for(const t of e)if(t.key===a.NodeType.bitsValue){const e=t.value;return null==e?void 0:e.bitType}}write(e){return this.options.writeCallback?this.options.writeCallback(e):this.writerText+=e,this}writeLine(e){return this.write(`${e}\n`),this}writeLines(e,t){for(const r of e)this.write(`${r}${null!=t?t:""}\n`);return this}writeWhiteSpace(){return this.write(" "),this}}t.TextGenerator=C},3881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InfoBuilder=void 0;const i=r(2028),o=r(5854);t.InfoBuilder=class{getSupportedBits(e){var t,r;const n=null===(t=null==e?void 0:e.includeNonDeprecated)||void 0===t||t,a=null!==(r=null==e?void 0:e.includeDeprecated)&&void 0!==r&&r,s=[];for(const e of o.BitType.values()){if(e===o.BitType._error||e===o.BitType._comment)continue;const t=i.Config.getBitType(e),r=i.Config.getBitConfig(t),l=r.inheritedBitTypes.length>0?r.inheritedBitTypes:void 0;(n&&!r.deprecated||a&&r.deprecated)&&s.push({name:e,since:r.since,deprecated:r.deprecated,inheritedBitTypes:l})}return s}getSupportedBitConfigs(){const e=[];for(const t of o.BitType.values()){if(t===o.BitType._error||t===o.BitType._comment)continue;const r=i.Config.getBitType(t),n=i.Config.getBitConfig(r);e.push(n)}return e}}},1412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(){if(n)return;(0,o.initEnv)(i.buildInfo.name,i.buildInfo.version),n=!0};const i=r(1464),o=r(6936);r(2028);let n=!1},126:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=void 0;const i=(0,r(4718).superenum)({unknown:"unknown",action:"action",actionValue:"actionValue",activityType:"activityType",activityTypeValue:"activityTypeValue",additionalSolutions:"additionalSolutions",additionalSolutionsValue:"additionalSolutionsValue",ageRange:"ageRange",ageRangeValue:"ageRangeValue",aiGenerated:"aiGenerated",aiGeneratedValue:"aiGeneratedValue",alias:"alias",alignment:"alignment",allowedBit:"allowedBit",allowedBitValue:"allowedBitValue",alt:"alt",alternativeAnswers:"alternativeAnswers",alternativeAnswersValue:"alternativeAnswersValue",alternativeDefinitions:"alternativeDefinitions",alternativeDefinitionsValue:"alternativeDefinitionsValue",analyticsTag:"analyticsTag",analyticsTagValue:"analyticsTagValue",anchor:"anchor",answer:"answer",appLink:"appLink",attrs:"attrs",audio:"audio",audioEmbed:"audioEmbed",audioLink:"audioLink",author:"author",authorValue:"authorValue",availableClassifications:"availableClassifications",availableClassificationsValue:"availableClassificationsValue",avatarImage:"avatarImage",backgroundWallpaper:"backgroundWallpaper",backgroundWallpaperValue:"backgroundWallpaperValue",bitLevel:"bitLevel",bitmarkAst:"bitmarkAst",bitmarkVersion:"bitmarkVersion",bits:"bits",bitsValue:"bitsValue",bitType:"bitType",blockId:"blockId",blockIdValue:"blockIdValue",body:"body",bodyBit:"bodyBit",bodyJson:"bodyJson",bodyParts:"bodyParts",bodyPartsValue:"bodyPartsValue",bodyPartText:"bodyPartText",bodyText:"bodyText",book:"book",bookValue:"bookValue",bookAlias:"bookAlias",bookAliasValue:"bookAliasValue",bot:"bot",botResponses:"botResponses",botResponsesValue:"botResponsesValue",botValue:"botValue",bubbleTag:"bubbleTag",bubbleTagValue:"bubbleTagValue",buttonCaption:"buttonCaption",buttonCaptionValue:"buttonCaptionValue",callToActionUrl:"callToActionUrl",callToActionUrlValue:"callToActionUrlValue",caption:"caption",captionDefinitionList:"captionDefinitionList",captionValue:"captionValue",cardBits:"cardBits",cardBitsValue:"cardBitsValue",cardNode:"cardNode",cells:"cells",cellsValue:"cellsValue",checked:"checked",choice:"choice",choices:"choices",choicesValue:"choicesValue",class:"class",classification:"classification",classificationValue:"classificationValue",codeLineNumbers:"codeLineNumbers",codeLineNumbersValue:"codeLineNumbersValue",codeMinimap:"codeMinimap",codeMinimapValue:"codeMinimapValue",color:"color",colorTag:"colorTag",colorTagValue:"colorTagValue",column:"column",columns:"columns",columnsValue:"columnsValue",comment:"comment",commentedBitType:"commentedBitType",computerLanguage:"computerLanguage",computerLanguageValue:"computerLanguageValue",content:"contentValue",content2Buy:"content2Buy",contentValue:"contentValue",contentValueValue:"contentValueValue",copyright:"copyright",coverColor:"coverColor",coverColorValue:"coverColorValue",coverImage:"coverImage",coverImageValue:"coverImageValue",data:"data",dataValue:"dataValue",dataValueValue:"dataValueValue",date:"date",dateEnd:"dateEnd",dateEndValue:"dateEndValue",dateValue:"dateValue",decimalPlaces:"decimalPlaces",deeplink:"deeplink",deeplinkValue:"deeplinkValue",definition:"definition",definitions:"definitions",definitionsValue:"definitionsValue",disableCalculation:"disableCalculation",disableFeedback:"disableFeedback",disableFeedbackValue:"disableFeedbackValue",document:"document",documentDownload:"documentDownload",documentEmbed:"documentEmbed",documentLink:"documentLink",duration:"duration",durationValue:"durationValue",elements:"elements",elementsValue:"elementsValue",emphasis:"emphasis",end:"end",errors:"errors",errorsValue:"errorsValue",example:"example",exampleValue:"exampleValue",externalId:"externalId",externalIdValue:"externalIdValue",externalLink:"externalLink",externalLinkText:"externalLinkText",extraProperties:"extraProperties",feedback:"feedback",feedbackEngine:"feedbackEngine",feedbackEngineValue:"feedbackEngineValue",feedbackType:"feedbackType",flashcards:"flashcards",flashcardSet:"flashcardSet",flashcardSetValue:"flashcardSetValue",flashcardsValue:"flashcardsValue",focusX:"focusX",focusXValue:"focusXValue",focusY:"focusY",focusYValue:"focusYValue",footer:"footer",footerText:"footerText",forKeys:"forKeys",format:"format",forValues:"forValues",forValuesValue:"forValuesValue",gap:"gap",hasBookNavigation:"hasBookNavigation",hasBookNavigationValue:"hasBookNavigationValue",hasMarkAsDone:"hasMarkAsDone",hasMarkAsDoneValue:"hasMarkAsDoneValue",heading:"heading",height:"height",heightValue:"heightValue",highlight:"highlight",hint:"hint",href:"href",icon:"icon",iconTag:"iconTag",iconTagValue:"iconTagValue",iconValue:"iconValue",id:"id",idValue:"idValue",image:"image",imageFirst:"imageFirst",imageFirstValue:"imageFirstValue",imageLandscape:"imageLandscape",imageLink:"imageLink",imagePlaceholder:"imagePlaceholder",imagePlaceholderValue:"imagePlaceholderValue",imagePortrait:"imagePortrait",imageSource:"imageSource",index:"index",indexValue:"indexValue",ingredients:"ingredients",ingredientsValue:"ingredientsValue",instruction:"instruction",internalComment:"internalComment",internalCommentValue:"internalCommentValue",isCaseSensitive:"isCaseSensitive",isCommented:"isCommented",isCorrect:"isCorrect",__isDefaultExample:"__isDefaultExample",isExample:"isExample",isInfoOnly:"isInfoOnly",isInfoOnlyValue:"isInfoOnlyValue",isPlain:"isPlain",isPublic:"isPublic",isPublicValue:"isPublicValue",isTracked:"isTracked",isTrackedValue:"isTrackedValue",item:"item",itemLead:"itemLead",jupyterExecutionCount:"jupyterExecutionCount",jupyterExecutionCountValue:"jupyterExecutionCountValue",jupyterId:"jupyterId",jupyterIdValue:"jupyterIdValue",key:"key",keyAudio:"keyAudio",keyImage:"keyImage",kind:"kind",kindValue:"kindValue",label:"label",labelFalse:"labelFalse",labelFalseValue:"labelFalseValue",labelTrue:"labelTrue",labelTrueValue:"labelTrueValue",lang:"lang",language:"language",languageValue:"languageValue",langValue:"langValue",lead:"lead",level:"level",levelACTFL:"levelACTFL",levelACTFLValue:"levelACTFLValue",levelCEFR:"levelCEFR",levelCEFRp:"levelCEFRp",levelCEFRpValue:"levelCEFRpValue",levelCEFRValue:"levelCEFRValue",levelILR:"levelILR",levelILRValue:"levelILRValue",license:"license",line:"line",list:"list",listItemIndent:"listItemIndent",listItemIndentValue:"listItemIndentValue",listValue:"listValue",location:"location",locationValue:"locationValue",machineTranslated:"machineTranslated",machineTranslatedValue:"machineTranslatedValue",mailingList:"mailingList",marginNumber:"marginNumber",mark:"mark",markConfig:"markConfig",markConfigValue:"markConfigValue",marks:"marks",marksValue:"marksValue",markup:"markup",matrix:"matrix",matrixValue:"matrixValue",maxCreatedBits:"maxCreatedBits",maxCreatedBitsValue:"maxCreatedBitsValue",maxDisplayLevel:"maxDisplayLevel",maxDisplayLevelValue:"maxDisplayLevelValue",message:"message",mockupId:"mockupId",name:"name",offset:"offset",options:"options",optionsValue:"optionsValue",original:"original",padletId:"padletId",padletIdValue:"padletIdValue",page:"page",pageNo:"pageNo",pageNoValue:"pageNoValue",pageNumber:"pageNumber",pageValue:"pageValue",pairs:"pairs",pairsValue:"pairsValue",parent:"parent",parser:"parser",partialAnswer:"partialAnswer",partialAnswerValue:"partialAnswerValue",person:"person",pointerLeft:"pointerLeft",pointerLeftValue:"pointerLeftValue",pointerTop:"pointerTop",pointerTopValue:"pointerTopValue",posterImage:"posterImage",posterImageValue:"posterImageValue",postfix:"postfix",prefix:"prefix",processHandIn:"processHandIn",processHandInValue:"processHandInValue",product:"product",productFolder:"productFolder",productFolderValue:"productFolderValue",productId:"productId",productIdValue:"productIdValue",productList:"productList",productListValue:"productListValue",productValue:"productValue",productVideo:"productVideo",productVideoList:"productVideoList",productVideoListValue:"productVideoListValue",productVideoValue:"productVideoValue",progress:"progress",progressValue:"progressValue",properties:"properties",property:"property",propertyKey:"propertyKey",propertyValue:"propertyValue",propertyValues:"propertyValues",provider:"provider",publications:"publications",publicationsValue:"publicationsValue",publisher:"publisher",publisherName:"publisherName",publisherNameValue:"publisherNameValue",publisherValue:"publisherValue",quantity:"quantity",question:"question",questions:"questions",questionsValue:"questionsValue",quizCountItems:"quizCountItems",quizCountItemsValue:"quizCountItemsValue",quizStrikethroughSolutions:"quizStrikethroughSolutions",quizStrikethroughSolutionsValue:"quizStrikethroughSolutionsValue",quizzes:"quizzes",quizzesValue:"quizzesValue",quotedPerson:"quotedPerson",ratingLevelEnd:"ratingLevelEnd",ratingLevelSelected:"ratingLevelSelected",ratingLevelSelectedValue:"ratingLevelSelectedValue",ratingLevelStart:"ratingLevelStart",reaction:"reaction",reasonableNumOfChars:"reasonableNumOfChars",reasonableNumOfCharsValue:"reasonableNumOfCharsValue",reductionTag:"reductionTag",reductionTagValue:"reductionTagValue",reference:"reference",referenceEnd:"referenceEnd",referenceProperty:"referenceProperty",referencePropertyValue:"referencePropertyValue",releaseDate:"releaseDate",releaseDateValue:"releaseDateValue",releaseKind:"releaseKind",releaseKindValue:"releaseKindValue",releaseVersion:"releaseVersion",releaseVersionValue:"releaseVersionValue",resolved:"resolved",resolvedBy:"resolvedBy",resolvedByValue:"resolvedByValue",resolvedDate:"resolvedDate",resolvedDateValue:"resolvedDateValue",resolvedValue:"resolvedValue",resources:"resources",resourcesValue:"resourcesValue",resourceType:"resourceType",response:"response",responses:"responses",responsesValue:"responsesValue",root:"root",sampleSolution:"sampleSolution",sampleSolutionValue:"sampleSolutionValue",scormSource:"scormSource",scormSourceValue:"scormSourceValue",search:"search",searchValue:"searchValue",section:"section",select:"select",servings:"servings",servingsValue:"servingsValue",showInIndex:"showInIndex",showInIndexValue:"showInIndexValue",size:"size",slug:"slug",slugValue:"slugValue",solution:"solution",solutions:"solutions",solutionsValue:"solutionsValue",spaceId:"spaceId",spaceIdValue:"spaceIdValue",src:"src",src1x:"src1x",src2x:"src2x",src3x:"src3x",src4x:"src4x",start:"start",statement:"statement",statements:"statements",statementsValue:"statementsValue",statementText:"statementText",stillImageFilmEmbed:"stillImageFilmEmbed",stillImageFilmLink:"stillImageFilmLink",stripePricingTableId:"stripePricingTableId",stripePricingTableIdValue:"stripePricingTableIdValue",stripePublishableKey:"stripePublishableKey",stripePublishableKeyValue:"stripePublishableKeyValue",subject:"subject",subjectValue:"subjectValue",subtitle:"subtitle",subtype:"subtype",subtypeValue:"subtypeValue",table:"table",tableAutoWidth:"tableAutoWidth",tableAutoWidthValue:"tableAutoWidthValue",tableFixedHeader:"tableFixedHeader",tableFixedHeaderValue:"tableFixedHeaderValue",tableHeight:"tableHeight",tableHeightValue:"tableHeightValue",tablePagination:"tablePagination",tablePaginationLimit:"tablePaginationLimit",tablePaginationLimitValue:"tablePaginationLimitValue",tablePaginationValue:"tablePaginationValue",tableResizableColumns:"tableResizableColumns",tableResizableColumnsValue:"tableResizableColumnsValue",tableColumnMinWidth:"tableColumnMinWidth",tableColumnMinWidthValue:"tableColumnMinWidthValue",tableSearch:"tableSearch",tableSearchValue:"tableSearchValue",tableSort:"tableSort",tableSortValue:"tableSortValue",tableWhitespaceNoWrap:"tableWhitespaceNoWrap",tableWhitespaceNoWrapValue:"tableWhitespaceNoWrapValue",tag:"tag",tagValue:"tagValue",target:"target",targetValue:"targetValue",technicalTerm:"technicalTerm",technicalTermValue:"technicalTermValue",term:"term",text:"text",textAlign:"textAlign",textAst:"textAst",textAstValue:"textAstValue",textFormat:"textFormat",textReference:"textReference",textReferenceValue:"textReferenceValue",texts:"texts",textsValue:"textsValue",theme:"theme",themeValue:"themeValue",thumbImage:"thumbImage",thumbImageValue:"thumbImageValue",thumbnails:"thumbnails",thumbnailsValue:"thumbnailsValue",title:"title",toc:"toc",tocValue:"tocValue",trim:"trim",type:"type",__typeAlias:"__typeAlias",unit:"unit",unitAbbr:"unitAbbr",url:"url",value:"value",values:"values",valuesValue:"valuesValue",vendorUrl:"vendorUrl",vendorUrlValue:"vendorUrlValue",version:"version",video:"video",videoCallLink:"videoCallLink",videoCallLinkValue:"videoCallLinkValue",videoEmbed:"videoEmbed",videoLink:"videoLink",warnings:"warnings",warningsValue:"warningsValue",websiteLink:"websiteLink",width:"width",widthValue:"widthValue",x:"x",xValue:"xValue",y:"y",yValue:"yValue",zoomDisabled:"zoomDisabled"});t.NodeType=i},6634:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTagConfig=void 0;t.AbstractTagConfig=class{constructor(e,t,r,i,o,n,a,s,l){this.type=e,this.configKey=t,this.tag=r,this.maxCount=i,this.minCount=o,this.chain=n,this.jsonKey=a,this.astKey=s,this.deprecated=l}}},3619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitConfig=void 0;const i=r(3778);t.BitConfig=class{constructor(e,t,r,i,o,n,a,s,l,p,u,c,y,g){this.tags={},this.since=e,this.bitType=t,this.inheritedBitTypes=r,this.inheritedBitTypesSet=new Set(r),this.textFormatDefault=i,this.tags=o,this.cardSet=n,this.deprecated=a,this.bodyAllowed=s??!0,this.bodyRequired=l,this.footerAllowed=p??!0,this.footerRequired=u,this.resourceAttachmentAllowed=c??!0,this.rootExampleType=y,this.comboResourceType=g}toString(e){const t=Object.assign({},e);let r=`[Bit]\n${this.bitType}`;this.inheritedBitTypes.length>0&&(r+="\n\n[Inheritance]",r+=`\n${this.inheritedBitTypes.join(" => ")}`),r+=`\n\n[Default text format]\n${this.textFormatDefault}`;const o=[];null!=this.since&&o.push(`since=${this.since}`),null!=this.deprecated&&o.push(`deprecated=${this.deprecated}`),this.bodyAllowed&&o.push("bodyAllowed"),this.bodyRequired&&o.push("bodyRequired"),this.footerAllowed&&o.push("footerAllowed"),this.footerRequired&&o.push("footerRequired"),this.resourceAttachmentAllowed&&o.push("resourceAttachmentAllowed"),null!=this.rootExampleType&&o.push(`rootExampleType=${this.rootExampleType}`),null!=this.comboResourceType&&o.push(`comboResourceType=${this.comboResourceType}`),r+=`\n\n[Flags]\n${o.join(", ")}`,r+="\n\n[Tags]";for(const e of Object.values(this.tags))(e.maxCount===i.Count.infinity||e.maxCount>0)&&(r+=`\n${e.toString(t)}`);return this.cardSet&&(r+=`\n\n${this.cardSet.toString(t)}`),r}}},5814:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardSetConfig=void 0;t.CardSetConfig=class{constructor(e,t){this.configKey=e,this.variants=t}toString(e){const t=Object.assign({},e);let r="",i=0,o=0;for(const e of this.variants){for(const n of e)r+=`[Card - Side ${i}, Variant ${o}]`,r+=`\n${n.toString(t)}`,o++;i++}return r}}},9371:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardVariantConfig=void 0;t.CardVariantConfig=class{constructor(e,t,r,i){this.tags=e,this.bodyAllowed=t??!0,this.bodyRequired=r,this.repeatCount=i}toString(e){const t=Object.assign({},e);let r="";const i=[];this.bodyAllowed&&i.push("bodyAllowed"),this.bodyRequired&&i.push("bodyRequired"),null!=this.repeatCount&&i.push(`repeatCount=${this.repeatCount}`),r+=`[Flags]\n${i.join(", ")}`,r+="\n\n[Tags]";for(const e of Object.values(this.tags))r+=`\n${e.toString(t)}`;return r}}},9788:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MarkupTagConfig=void 0;const i=r(5512),o=r(6634);class n extends o.AbstractTagConfig{constructor(e,t,r,o,n,a){super(i.BitTagType.tag,e,t,r,o,n,void 0,void 0,a),this.type=i.BitTagType.tag}toString(e){const t=Object.assign({},e);let r=`TAG[${this.tag}`;if(t.includeConfigs&&(null!=this.deprecated&&(r+=`, deprecated=${this.deprecated}`),null!=this.maxCount&&(r+=`, max=${this.maxCount}`),null!=this.minCount&&(r+=`, min=${this.minCount}`)),r+="]",this.chain&&t.includeChains){r+="\n|__";let e=!0;for(const i of Object.values(this.chain))e||(r+=" "),r+=`${i.toString(t)}`,e=!1}return r}}t.MarkupTagConfig=n},1519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyTagConfig=void 0;const i=r(5512),o=r(6634);class n extends o.AbstractTagConfig{constructor(e,t,r,o,n,a,s,l,p,u,c){super(i.BitTagType.property,e,t,r,o,n,a,s,c),this.type=i.BitTagType.property,this.single=l,this.format=p,this.defaultValue=u}toString(e){const t=Object.assign({},e);let r=`PTY[${this.tag}`;if(t.includeConfigs&&(null!=this.deprecated&&(r+=`, deprecated=${this.deprecated}`),null!=this.maxCount&&(r+=`, max=${this.maxCount}`),null!=this.minCount&&(r+=`, min=${this.minCount}`),null!=this.single&&(r+=`, sgl=${this.single}`),null!=this.format&&(r+=`, fmt=${this.format}`),null!=this.defaultValue&&(r+=`, def=${this.defaultValue}`),null!=this.jsonKey&&(r+=`, json=${this.jsonKey}`),null!=this.astKey&&(r+=`, ast=${this.astKey}`)),r+="]",this.chain&&t.includeChains){r+="\n|__";let e=!0;for(const i of Object.values(this.chain))e||(r+=" "),r+=`${i.toString(t)}`,e=!1}return r}}t.PropertyTagConfig=n},9600:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTagConfig=void 0;const i=r(5512),o=r(6634);class n extends o.AbstractTagConfig{constructor(e,t,r,o,n,a,s){super(i.BitTagType.resource,e,t,r,o,n,a,void 0,s),this.type=i.BitTagType.resource}toString(e){const t=Object.assign({},e);let r=`RES[${this.tag}`;if(t.includeConfigs&&(null!=this.deprecated&&(r+=`, deprecated=${this.deprecated}`),null!=this.maxCount&&(r+=`, max=${this.maxCount}`),null!=this.minCount&&(r+=`, min=${this.minCount}`),null!=this.jsonKey&&(r+=`, json=${this.jsonKey}`)),r+="]",this.chain&&t.includeChains){r+="\n|__";let e=!0;for(const i of Object.values(this.chain))e||(r+=" "),r+=`${i.toString(t)}`,e=!1}return r}}t.ResourceTagConfig=n},1457:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesConfig=void 0;t.ResourcesConfig=class{constructor(e,t,r,i){this.tags=e,this.resourceAttachmentAllowed=null!=t&&t,this.resourceTypeAttachment=r,this.comboResourceTagTypesMap=i}getCountsMin(){const e=new Map;for(const t of Object.values(this.tags))null!=t.minCount&&e.set(t.tag,t.minCount);return e}getCountsMax(){const e=new Map;for(const t of Object.values(this.tags))null!=t.maxCount&&e.set(t.tag,t.maxCount);return e}}},8199:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardSetConfigKey=void 0;const i=(0,r(4718).superenum)({_flashcardLike:"_flashcardLike",_elements:"_elements",_statements:"_statements",_quiz:"_quiz",_questions:"_questions",_matchPairs:"_matchPairs",_matchAudioPairs:"_matchAudioPairs",_matchImagePairs:"_matchImagePairs",_matchMatrix:"_matchMatrix",_table:"_table",_botActionResponses:"_botActionResponses",_exampleBitList:"_exampleBitList",_clozeList:"_clozeList",_ingredients:"_ingredients",_captionDefinitionsList:"_captionDefinitionsList"});t.CardSetConfigKey=i},5591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigKey=void 0;const i=r(4718),o=r(7112),n=r(9888),a=r(5051),s=r(7797),l=(0,i.superenum)(Object.assign(Object.assign(Object.assign(Object.assign({_unknown:"_unknown"},s.tagConfigKeys),n.propertyConfigKeys),a.resourceConfigKeys),o.groupConfigKeys));t.ConfigKey=l,function(){const e=new Set,t=[s.tagConfigKeys,n.propertyConfigKeys,a.resourceConfigKeys,o.groupConfigKeys];for(const r of t)for(const t in r){if(e.has(t))throw new Error(`Duplicate ConfigKey: ${t}`);e.add(t)}}()},7112:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.groupConfigKeys=t.GroupConfigKey=void 0;const i=r(4718),o={group_standardAllBits:"group_standardAllBits",group_standardItemLeadInstructionHint:"group_standardItemLeadInstructionHint",group_standardExample:"group_standardExample",group_standardTags:"group_standardTags",group_imageSource:"group_imageSource",group_technicalTerm:"group_technicalTerm",group_person:"group_person",group_gap:"group_gap",group_trueFalse:"group_trueFalse",group_markConfig:"group_markConfig",group_mark:"group_mark",group_bookCommon:"group_bookCommon",group_learningPathCommon:"group_learningPathCommon",group_resourceBitTags:"group_resourceBitTags",group_resourceCommon:"group_resourceCommon",group_resourceImageCommon:"group_resourceImageCommon",group_resourceAudioCommon:"group_resourceAudioCommon",group_resourceVideoCommon:"group_resourceVideoCommon",group_resourceImage:"group_resourceImage",group_resourceImageEmbed:"group_resourceImageEmbed",group_resourceImageLink:"group_resourceImageLink",group_resourceImageResponsive:"group_resourceImageResponsive",group_resourceImagePortrait:"group_resourceImagePortrait",group_resourceImageLandscape:"group_resourceImageLandscape",group_resourceAudio:"group_resourceAudio",group_resourceAudioEmbed:"group_resourceAudioEmbed",group_resourceAudioLink:"group_resourceAudioLink",group_resourceVideo:"group_resourceVideo",group_resourceVideoEmbed:"group_resourceVideoEmbed",group_resourceVideoLink:"group_resourceVideoLink",group_resourceStillImageFilm:"group_resourceStillImageFilm",group_resourceStillImageFilmEmbed:"group_resourceStillImageFilmEmbed",group_resourceStillImageFilmLink:"group_resourceStillImageFilmLink",group_resourceArticle:"group_resourceArticle",group_resourceArticleEmbed:"group_resourceArticleEmbed",group_resourceArticleLink:"group_resourceArticleLink",group_resourceDocument:"group_resourceDocument",group_resourceDocumentEmbed:"group_resourceDocumentEmbed",group_resourceDocumentLink:"group_resourceDocumentLink",group_resourceDocumentDownload:"group_resourceDocumentDownload",group_resourceAppLink:"group_resourceAppLink",group_resourceWebsiteLink:"group_resourceWebsiteLink"};t.groupConfigKeys=o;const n=(0,i.superenum)(o);t.GroupConfigKey=n},6915:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GroupConfigType=void 0;const i=(0,r(4718).superenum)({standard:"standard",resource:"resource",comboResource:"comboResource"});t.GroupConfigType=i},9888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propertyConfigKeys=t.PropertyConfigKey=void 0;const i=r(4718),o={action:"action",activityType:"activityType",additionalSolutions:"additionalSolutions",ageRange:"ageRange",aiGenerated:"aiGenerated",analyticsTag:"analyticsTag",allowedBit:"allowedBit",allowSubtitles:"allowSubtitles",alt:"alt",author:"author",autoplay:"autoplay",availableClassifications:"availableClassifications",backgroundWallpaper:"backgroundWallpaper",blockId:"blockId",book:"book",bookAlias:"bookAlias",bot:"bot",bubbleTag:"bubbleTag",buttonCaption:"buttonCaption",callToActionUrl:"callToActionUrl",caption:"caption",classification:"classification",codeLineNumbers:"codeLineNumbers",codeMinimap:"codeMinimap",color:"color",colorTag:"colorTag",computerLanguage:"computerLanguage",content2Buy:"content2Buy",copyright:"copyright",coverColor:"coverColor",coverImage:"coverImage",date:"date",dateEnd:"dateEnd",decimalPlaces:"decimalPlaces",deeplink:"deeplink",disableCalculation:"disableCalculation",disableFeedback:"disableFeedback",duration:"duration",emphasis:"emphasis",example:"example",externalId:"externalId",externalLink:"externalLink",externalLinkText:"externalLinkText",feedbackEngine:"feedbackEngine",feedbackType:"feedbackType",flashcardSet:"flashcardSet",focusX:"focusX",focusY:"focusY",format:"format",hasBookNavigation:"hasBookNavigation",hasMarkAsDone:"hasMarkAsDone",height:"height",icon:"icon",iconTag:"iconTag",id:"id",imageFirst:"imageFirst",imagePlaceholder:"imagePlaceholder",imageSource:"imageSource",index:"index",internalComment:"internalComment",isCaseSensitive:"isCaseSensitive",isInfoOnly:"isInfoOnly",isPublic:"isPublic",isTracked:"isTracked",jupyterExecutionCount:"jupyterExecutionCount",jupyterId:"jupyterId",kind:"kind",label:"label",labelFalse:"labelFalse",labelTrue:"labelTrue",lang:"lang",language:"language",levelCEFRp:"levelCEFRp",levelCEFR:"levelCEFR",levelILR:"levelILR",levelACTFL:"levelACTFL",license:"license",list:"list",listItemIndent:"listItemIndent",location:"location",machineTranslated:"machineTranslated",mailingList:"mailingList",markConfig:"markConfig",maxCreatedBits:"maxCreatedBits",maxDisplayLevel:"maxDisplayLevel",mockupId:"mockupId",mute:"mute",padletId:"padletId",pageNo:"pageNo",partialAnswer:"partialAnswer",partner:"partner",person:"person",pointerLeft:"pointerLeft",pointerTop:"pointerTop",posterImage:"posterImage",page:"page",processHandIn:"processHandIn",product:"product",productFolder:"productFolder",productId:"productId",productList:"productList",productVideo:"productVideo",productVideoList:"productVideoList",progress:"progress",property_mark:"property_mark",property_reference:"property_reference",property_sampleSolution:"property_sampleSolution",property_title:"property_title",publications:"publications",publisher:"publisher",publisherName:"publisherName",quizCountItems:"quizCountItems",quizStrikethroughSolutions:"quizStrikethroughSolutions",quotedPerson:"quotedPerson",ratingLevelEnd:"ratingLevelEnd",ratingLevelSelected:"ratingLevelSelected",ratingLevelStart:"ratingLevelStart",reaction:"reaction",reasonableNumOfChars:"reasonableNumOfChars",reductionTag:"reductionTag",releaseDate:"releaseDate",releaseKind:"releaseKind",releaseVersion:"releaseVersion",resolved:"resolved",resolvedBy:"resolvedBy",resolvedDate:"resolvedDate",scormSource:"scormSource",search:"search",servings:"servings",showInIndex:"showInIndex",showSubtitles:"showSubtitles",siteName:"siteName",size:"size",slug:"slug",spaceId:"spaceId",src1x:"src1x",src2x:"src2x",src3x:"src3x",src4x:"src4x",stripePricingTableId:"stripePricingTableId",stripePublishableKey:"stripePublishableKey",subject:"subject",subtype:"subtype",tableAutoWidth:"tableAutoWidth",tableFixedHeader:"tableFixedHeader",tableHeight:"tableHeight",tablePagination:"tablePagination",tablePaginationLimit:"tablePaginationLimit",tableResizableColumns:"tableResizableColumns",tableColumnMinWidth:"tableColumnMinWidth",tableSearch:"tableSearch",tableSort:"tableSort",tableWhitespaceNoWrap:"tableWhitespaceNoWrap",tag:"tag",target:"target",technicalTerm:"technicalTerm",textReference:"textReference",theme:"theme",thumbImage:"thumbImage",toc:"toc",trim:"trim",unit:"unit",unitAbbr:"unitAbbr",vendorUrl:"vendorUrl",videoCallLink:"videoCallLink",width:"width",x:"x",y:"y",zoomDisabled:"zoomDisabled"};t.propertyConfigKeys=o;const n=(0,i.superenum)(o);t.PropertyConfigKey=n},5051:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resourceConfigKeys=t.ResourceConfigKey=void 0;const i=r(4718),o={image:"image",imagePortrait:"imagePortrait",imageLandscape:"imageLandscape",imageEmbed:"imageEmbed",imageLink:"imageLink",audio:"audio",audioEmbed:"audioEmbed",audioLink:"audioLink",video:"video",videoEmbed:"videoEmbed",videoLink:"videoLink",stillImageFilmEmbed:"stillImageFilmEmbed",stillImageFilmLink:"stillImageFilmLink",article:"article",articleEmbed:"articleEmbed",articleLink:"articleLink",document:"document",documentEmbed:"documentEmbed",documentLink:"documentLink",documentDownload:"documentDownload",appLink:"appLink",websiteLink:"websiteLink"};t.resourceConfigKeys=o;const n=(0,i.superenum)(o);t.ResourceConfigKey=n},7797:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tagConfigKeys=t.TagConfigKey=void 0;const i=r(4718),o={title:"title",anchor:"anchor",tag_reference:"tag_reference",property:"property",itemLead:"itemLead",instruction:"instruction",hint:"hint",true:"true",false:"false",sampleSolution:"sampleSolution",gap:"gap",tag_mark:"tag_mark",resource:"resource"};t.tagConfigKeys=o;const n=(0,i.superenum)(o);t.TagConfigKey=n},5512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitTagType=void 0;const i=(0,r(4718).superenum)({tag:"tag",property:"property",resource:"resource",group:"group"});t.BitTagType=i},5854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitType=void 0;const i=(0,r(4718).superenum)({_error:"_error",_comment:"_comment",aiPrompt:"ai-prompt",anchor:"anchor",appAiPrompt:"app-ai-prompt",appBitmarkFromEditor:"app-bitmark-from-editor",appBitmarkFromJavascript:"app-bitmark-from-javascript",appCodeCell:"app-code-cell",appCodeEditor:"app-code-editor",appCodeIde:"app-code-ide",appCreateBitsFromImage:"app-create-bits-from-image",appFlashcards:"app-flashcards",appFlashcardsLearn:"app-flashcards-learn",appFlashcardsQuiz:"app-flashcards-quiz",appGetScreenshot:"app-get-screenshot",appLink:"app-link",article:"article",articleAi:"article-ai",articleAlt:"article-alt",articleAttachment:"article-attachment",articleEmbed:"article-embed",articleLink:"article-link",articleResponsive:"article-responsive",articleResponsiveAlt:"article-responsive-alt",assignment:"assignment",assignmentList:"assignment-list",audio:"audio",audioEmbed:"audio-embed",audioLink:"audio-link",audioTranscript:"audio-transcript",bitAlias:"bit-alias",bitBookEnding:"bit-book-ending",bitBookSummary:"bit-book-summary",bitmarkExample:"bitmark-example",blogArticle:"blog-article",book:"book",bookAcknowledgements:"book-acknowledgements",bookAddendum:"book-addendum",bookAfterword:"book-afterword",bookAlias:"book-alias",bookAppendix:"book-appendix",bookArticle:"book-article",bookAutherBio:"book-author-bio",bookBibliography:"book-bibliography",bookClose:"book-close",bookComingSoon:"book-coming-soon",bookConclusion:"book-conclusion",bookCopyright:"book-copyright",bookCopyrightPermissions:"book-copyright-permissions",bookDedication:"book-dedication",bookEndnotes:"book-endnotes",bookEpigraph:"book-epigraph",bookEpilogue:"book-epilogue",bookForword:"book-foreword",bookFrontispiece:"book-frontispiece",bookImprint:"book-imprint",bookIncitingIncident:"book-inciting-incident",bookIntroduction:"book-introduction",bookLink:"book-link",bookLinkNext:"book-link-next",bookLinkPrev:"book-link-prev",bookListOfContributors:"book-list-of-contributors",bookNotes:"book-notes",bookPostscript:"book-postscript",bookPreface:"book-preface",bookPrologue:"book-prologue",bookReadMore:"book-read-more",bookReferenceList:"book-reference-list",bookRequestForABookReview:"book-request-for-a-book-review",bookSummary:"book-summary",bookTeaser:"book-teaser",bookTitle:"book-title",botActionAnnounce:"bot-action-announce",botActionRatingNumber:"bot-action-rating-number",botActionRemind:"bot-action-remind",botActionResponse:"bot-action-response",botActionSave:"bot-action-save",botActionSend:"bot-action-send",botActionTrueFalse:"bot-action-true-false",botInterview:"bot-interview",browserImage:"browser-image",bug:"bug",bugAlt:"bug-alt",bugCollapsible:"bug-collapsible",buttonCopyText:"button-copy-text",callToAction:"call-to-action",callToActionBookNow:"call-to-action-book-now",callToActionContact:"call-to-action-contact",callToActionCreateAccount:"call-to-action-create-account",callToActionDownload:"call-to-action-download",callToActionGetNow:"call-to-action-get-now",callToActionGetOffer:"call-to-action-get-offer",callToActionJoin:"call-to-action-join",callToActionLearnMore:"call-to-action-learn-more",callToActionMail:"call-to-action-mail",callToActionSeeMore:"call-to-action-see-more",callToActionShopNow:"call-to-action-shop-now",callToActionStartNow:"call-to-action-start-now",callToActionSubscribe:"call-to-action-subscribe",callToActionWatch:"call-to-action-watch",card1:"card-1",chapter:"chapter",chapterSubjectMatter:"chapter-subject-matter",chat:"chat",checklist:"checklist",cloze:"cloze",clozeAndMultipleChoiceText:"cloze-and-multiple-choice-text",clozeInstructionGrouped:"cloze-instruction-grouped",clozeList:"cloze-list",clozeSolutionGrouped:"cloze-solution-grouped",coachAudioTranscript:"coach-audio-transcript",coachCallToActionChecklist:"coach-call-to-action-checklist",coachCallToActionCloze:"coach-call-to-action-cloze",coachCallToActionClozeAndMultipleChoiceText:"coach-call-to-action-cloze-and-multiple-choice-text",coachCallToActionEssay:"coach-call-to-action-essay",coachCallToActionMultipleChoiceText:"coach-call-to-action-multiple-choice-text",coachHomeRules:"coach-home-rules",coachSelfReflectionCloze:"coach-self-reflection-cloze",coachSelfReflectionEssay:"coach-self-reflection-essay",coachSelfReflectionMultipleChoice:"coach-self-reflection-multiple-choice",coachSelfReflectionMultipleChoice1:"coach-self-reflection-multiple-choice-1",coachSelfReflectionMultipleChoiceText:"coach-self-reflection-multiple-choice-text",coachSelfReflectionMultipleResponse:"coach-self-reflection-multiple-response",coachSelfReflectionMultipleResponse1:"coach-self-reflection-multiple-response-1",coachSelfReflectionRating:"coach-self-reflection-rating",coachVideoTranscript:"coach-video-transcript",code:"code",codeRuntime:"code-runtime",collapsible:"collapsible",conclusion:"conclusion",conclusionAlt:"conclusion-alt",consoleLog:"console-log",container:"container",containerAccordionTabs:"container-accordion-tabs",containerBits2:"container-bits-2",containerCards:"container-cards",containerCarousel:"container-carousel",containerCookRecipe:"container-cook-recipe",containerFolder:"container-folder",containerFolderAll:"container-folder-all",containerGallery:"container-gallery",containerGrid:"container-grid",containerGroup:"container-group",containerNewsArticle:"container-news-article",containerNowrap:"container-nowrap",containerNowrapStretch:"container-nowrap-stretch",containerPreview:"container-preview",containerScroller:"container-scroller",containerSlides:"container-slides",containerStack:"container-stack",containerTabs:"container-tabs",containerWrap:"container-wrap",conversationLeft1:"conversation-left-1",conversationLeft1Scream:"conversation-left-1-scream",conversationLeft1Thought:"conversation-left-1-thought",conversationRight1:"conversation-right-1",conversationRight1Scream:"conversation-right-1-scream",conversationRight1Thought:"conversation-right-1-thought",cookArrangement:"cook-arrangement",cookIngredients:"cook-ingredients",cookInsert:"cook-insert",cookPersonalRecommendation:"cook-personal-recommendation",cookPlate:"cook-plate",cookPracticeAdvise:"cook-practice-advise",cookPreparation:"cook-preparation",cookRecommendation:"cook-recommendation",cookRemark:"cook-remark",cookSideDish:"cook-side-dish",cookSideDrink:"cook-side-drink",cookStep:"cook-step",cookTimer:"cook-timer",cookVariation:"cook-variation",correction:"correction",danger:"danger",dangerAlt:"danger-alt",dangerCollapsible:"danger-collapsible",definitionList:"definition-list",definitionTerm:"definition-term",details:"details",details1:"details-1",detailsImage:"details-image",document:"document",documentDownload:"document-download",documentEmbed:"document-embed",documentLink:"document-link",documentUpload:"document-upload",editorial:"editorial",editorNote:"editor-note",essay:"essay",example:"example",exampleAlt:"example-alt",exampleCollapsible:"example-collapsible",exampleList:"example-list",extractorBlock:"extractor-block",extractorConfiguration:"extractor-configuration",extractorPage:"extractor-page",extractorPageCollapsible:"extractor-page-collapsible",extractorPageFooter:"extractor-page-footer",extractorPageFooterCollapsible:"extractor-page-footer-collapsible",extractorPageHeader:"extractor-page-header",extractorPageHeaderCollapsible:"extractor-page-header-collapsible",extractorPageNumber:"extractor-page-number",extractorPageNumberCollapsible:"extractor-page-number-collapsible",extractorPageWithBlocks:"extractor-page-with-blocks",extractorPageWithBlocksCollapsible:"extractor-page-with-blocks-collapsible",extractorRepeatedText:"extractor-repeated-text",featured:"featured",figure:"figure",flashcard:"flashcard",flashcard1:"flashcard-1",focusImage:"focus-image",footNote:"foot-note",formula:"formula",gapText:"gap-text",gapTextInstructionGrouped:"gap-text-instruction-grouped",glossaryTerm:"glossary-term",groupBorn:"group-born",groupDied:"group-died",handInAudio:"hand-in-audio",handInContact:"hand-in-contact",handInDocument:"hand-in-document",handInLocation:"hand-in-location",handInPhoto:"hand-in-photo",handInScan:"hand-in-scan",handInVideo:"hand-in-video",handInVoice:"hand-in-voice",help:"help",helpAlt:"help-alt",highlightText:"highlight-text",hint:"hint",hintAlt:"hint-alt",hintCollapsible:"hint-collapsible",image:"image",imageBanner:"image-banner",imageFigure:"image-figure",imageFigureAlt:"image-figure-alt",imageLandscape:"image-landscape",imageLink:"image-link",imageMood:"image-mood",imageOnDevice:"image-on-device",imagePortrait:"image-portrait",imagePrototype:"image-prototype",imageResponsive:"image-responsive",imageScreenshot:"image-screenshot",imageSeparator:"image-separator",imageSeparatorAlt:"image-separator-alt",imagesLogoGrave:"images-logo-grave",imageStyled:"image-styled",imageSuperWide:"image-super-wide",imageZoom:"image-zoom",indexTerm:"index-term",info:"info",infoAlt:"info-alt",infoCollapsible:"info-collapsible",internalLink:"internal-link",interview:"interview",interviewInstructionGrouped:"interview-instruction-grouped",langAudioScript:"lang-audio-script",langEnablingLanguageSkills:"lang-enabling-language-skills",langEnglishAroundWorld:"lang-english-around-world",langExtraActivity:"lang-extra-activity",langGoodToKnow:"lang-good-to-know",langHomework:"lang-homework",langLearningGoal:"lang-learning-goal",langLearningOutcomes:"lang-learning-outcomes",langLearningStrategy:"lang-learning-strategy",langLevelDown:"lang-level-down",langLevelUp:"lang-level-up",langLifeSkillIcon:"lang-life-skill-icon",langLifeSkills:"lang-life-skills",langLikeALocal:"lang-like-a-local",langMaterial:"lang-material",langTeacherNote:"lang-teacher-note",langTeacherPronunciation:"lang-teacher-pronunciation",langUsefulPhrases:"lang-useful-phrases",langVideoScript:"lang-video-script",langVocabulary:"lang-vocabulary",learningPathBook:"learning-path-book",learningPathBotTraining:"learning-path-bot-training",learningPathClassroomEvent:"learning-path-classroom-event",learningPathClassroomTraining:"learning-path-classroom-training",learningPathClosing:"learning-path-closing",learningPathExternalLink:"learning-path-external-link",learningPathFeedback:"learning-path-feedback",learningPathLearningGoal:"learning-path-learning-goal",learningPathLti:"learning-path-lti",learningPathSign:"learning-path-sign",learningPathStep:"learning-path-step",learningPathVideoCall:"learning-path-video-call",leAssignment:"le-assignment",leClassroomEvent:"le-classroom-event",leCompletion:"le-completion",leExternalLink:"le-external-link",leFinishingTask:"le-finishing-task",leFollowUpTask:"le-follow-up-task",leLearningObjectives:"le-learning-objectives",leLearningStep:"le-learning-step",leListenAudioEmbed:"le-listen-audio-embed",lePreparationTask:"le-preparation-task",leRead:"le-read",leReadBook:"le-read-book",leTask:"le-task",leTodo:"le-todo",leVideoCall:"le-video-call",leWatchVideoEmbed:"le-watch-video-embed",lifeSkillSticker:"life-skill-sticker",list:"list",listItem:"list-item",mark:"mark",match:"match",matchAll:"match-all",matchAllReverse:"match-all-reverse",matchAudio:"match-audio",matchMatrix:"match-matrix",matchPicture:"match-picture",matchReverse:"match-reverse",matchSolutionGrouped:"match-solution-grouped",message:"message",metalevelExplanation:"metalevel-explanation",milestone:"milestone",module:"module",moduleProduct:"module-product",multipleChoice:"multiple-choice",multipleChoice1:"multiple-choice-1",multipleChoiceText:"multiple-choice-text",multipleResponse:"multiple-response",multipleResponse1:"multiple-response-1",newspaperArticle:"newspaper-article",note:"note",noteAi:"note-ai",noteAlt:"note-alt",notebookArticle:"notebook-article",noteCollapsible:"note-collapsible",output:"output",page:"page",pageAcademy:"page-academy",pageArticle:"page-article",pageArticleAlt:"page-article-alt",pageArticleResponsive:"page-article-responsive",pageBanner:"page-banner",pageBuyButton:"page-buy-button",pageBuyButtonAlt:"page-buy-button-alt",pageBuyButtonPromotion:"page-buy-button-promotion",pageCategory:"page-category",pageCollapsible:"page-collapsible",pageContainer:"page-container",pageContainerFolder:"page-container-folder",pageContainerGroup:"page-container-group",pageContainerNowrap:"page-container-nowrap",pageContainerNowrapStretch:"page-container-nowrap-stretch",pageContainerWrap:"page-container-wrap",pageCoverImage:"page-cover-image",pageFooter:"page-footer",pageHero:"page-hero",pageOpenBook:"page-open-book",pageOpenBookList:"page-open-book-list",pagePerson:"page-person",pageProduct:"page-product",pageProductList:"page-product-list",pageProductVideo:"page-product-video",pageProductVideoList:"page-product-video-list",pagePromotion:"page-promotion",pageSectionFolder:"page-section-folder",pageShopInShop:"page-shop-in-shop",pageSpecial:"page-special",pageSubpage:"page-subpage",pageSubscribe:"page-subscribe",parameters:"parameters",photo:"photo",preparationNote:"preparation-note",prototypeImages:"prototype-images",question1:"question-1",quote:"quote",rating:"rating",recipe:"recipe",recordAudio:"record-audio",recordVideo:"record-video",releaseNote:"release-note",releaseNotesSummary:"release-notes-summary",remark:"remark",remarkAlt:"remark-alt",remarkCollapsible:"remark-collapsible",reviewApprovedNote:"review-approved-note",reviewAuthorNote:"review-author-note",reviewNote:"review-note",reviewRequestForReviewNote:"review-request-for-review-note",reviewReviewerNote:"review-reviewer-note",sampleSolution:"sample-solution",scorm:"scorm",screenshot:"screenshot",selfAssessment:"self-assessment",separator:"separator",separatorAlt:"separator-alt",sequence:"sequence",sideNote:"side-note",sideNoteCollapsible:"side-note-collapsible",smartStandardArticleNonNormative:"smart-standard-article-non-normative",smartStandardArticleNonNormativeCollapsible:"smart-standard-article-non-normative-collapsible",smartStandardArticleNormative:"smart-standard-article-normative",smartStandardArticleNormativeCollapsible:"smart-standard-article-normative-collapsible",smartStandardExampleNonNormative:"smart-standard-example-non-normative",smartStandardExampleNonNormativeCollapsible:"smart-standard-example-non-normative-collapsible",smartStandardExampleNormative:"smart-standard-example-normative",smartStandardExampleNormativeCollapsible:"smart-standard-example-normative-collapsible",smartStandardImageFigureNonNormative:"smart-standard-image-figure-non-normative",smartStandardImageFigureNonNormativeCollapsible:"smart-standard-image-figure-non-normative-collapsible",smartStandardImageFigureNormative:"smart-standard-image-figure-normative",smartStandardImageFigureNormativeCollapsible:"smart-standard-image-figure-normative-collapsible",smartStandardList:"smart-standard-list",smartStandardListCollapsible:"smart-standard-list-collapsible",smartStandardListItem:"smart-standard-list-item",smartStandardListItemCollapsible:"smart-standard-list-item-collapsible",smartStandardNoteNonNormative:"smart-standard-note-non-normative",smartStandardNoteNonNormativeCollapsible:"smart-standard-note-non-normative-collapsible",smartStandardNoteNormative:"smart-standard-note-normative",smartStandardNoteNormativeCollapsible:"smart-standard-note-normative-collapsible",smartStandardRemarkNonNormative:"smart-standard-remark-non-normative",smartStandardRemarkNonNormativeCollapsible:"smart-standard-remark-non-normative-collapsible",smartStandardRemarkNormative:"smart-standard-remark-normative",smartStandardRemarkNormativeCollapsible:"smart-standard-remark-normative-collapsible",smartStandardRemarkTableImageNonNormative:"smart-standard-remark-table-image-non-normative",smartStandardRemarkTableImageNonNormativeCollapsible:"smart-standard-remark-table-image-non-normative-collapsible",smartStandardRemarkTableImageNormative:"smart-standard-remark-table-image-normative",smartStandardRemarkTableImageNormativeCollapsible:"smart-standard-remark-table-image-normative-collapsible",smartStandardRemarkTableNonNormative:"smart-standard-remark-table-non-normative",smartStandardRemarkTableNonNormativeCollapsible:"smart-standard-remark-table-non-normative-collapsible",smartStandardRemarkTableNormative:"smart-standard-remark-table-normative",smartStandardRemarkTableNormativeCollapsible:"smart-standard-remark-table-normative-collapsible",smartStandardTableImageNonNormative:"smart-standard-table-image-non-normative",smartStandardTableImageNonNormativeCollapsible:"smart-standard-table-image-non-normative-collapsible",smartStandardTableImageNormative:"smart-standard-table-image-normative",smartStandardTableImageNormativeCollapsible:"smart-standard-table-image-normative-collapsible",smartStandardTableNonNormative:"smart-standard-table-non-normative",smartStandardTableNonNormativeCollapsible:"smart-standard-table-non-normative-collapsible",smartStandardTableNormative:"smart-standard-table-normative",smartStandardTableNormativeCollapsible:"smart-standard-table-normative-collapsible",standardArticleNonNormative:"standard-article-non-normative",standardArticleNormative:"standard-article-normative",standardExampleNonNormative:"standard-example-non-normative",standardExampleNormative:"standard-example-normative",standardImageFigureNonNormative:"standard-image-figure-non-normative",standardImageFigureNormative:"standard-image-figure-normative",standardList:"standard-list",standardListItem:"standard-list-item",standardNoteNonNormative:"standard-note-non-normative",standardNoteNormative:"standard-note-normative",standardRemarkNonNormative:"standard-remark-non-normative",standardRemarkNormative:"standard-remark-normative",standardRemarkTableImageNonNormative:"standard-remark-table-image-non-normative",standardRemarkTableImageNormative:"standard-remark-table-image-normative",standardRemarkTableNonNormative:"standard-remark-table-non-normative",standardRemarkTableNormative:"standard-remark-table-normative",standardTableImageNonNormative:"standard-table-image-non-normative",standardTableImageNormative:"standard-table-image-normative",standardTableNonNormative:"standard-table-non-normative",standardTableNormative:"standard-table-normative",statement:"statement",stdout:"stdout",step:"step",stepImageScreenshot:"step-image-screenshot",stepImageScreenshotWithPointer:"step-image-screenshot-with-pointer",sticker:"sticker",stickyNote:"sticky-note",stillImageFilm:"still-image-film",stillImageFilmEmbed:"still-image-film-embed",stillImageFilmLink:"still-image-film-link",summary:"summary",summaryAi:"summary-ai",survey:"survey",survey1:"survey-1",surveyAnonymous:"survey-anonymous",surveyAnonymous1:"survey-anonymous-1",surveyMatrix:"survey-matrix",surveyMatrixMe:"survey-matrix-me",surveyRating:"survey-rating",surveyRatingDisplay:"survey-rating-display",surveyRatingOnce:"survey-rating-once",table:"table",tableAlt:"table-alt",tableImage:"table-image",tableImageAlt:"table-image-alt",takePicture:"take-picture",toc:"toc",tocChapter:"toc-chapter",trueFalse:"true-false",trueFalse1:"true-false-1",vendorAmcharts5Chart:"vendor-amcharts-5-chart",vendorHighchartsChart:"vendor-highcharts-chart",vendorIframelyCard:"vendor-iframely-card",vendorIframelyEmbed:"vendor-iframely-embed",vendorIframelyPreview:"vendor-iframely-preview",vendorIframelyPreviewMini:"vendor-iframely-preview-mini",vendorJupyterCellCode:"vendor-jupyter-cell-code",vendorJupyterCellMarkdown:"vendor-jupyter-cell-markdown",vendorJupyterCellRaw:"vendor-jupyter-cell-raw",vendorJupyterIpynb:"vendor-jupyter-ipynb",vendorJupyterOutput:"vendor-jupyter-output",vendorPadletEmbed:"vendor-padlet-embed",vendorStripePricingTable:"vendor-stripe-pricing-table",video:"video",videoEmbed:"video-embed",videoEmbedLandscape:"video-embed-landscape",videoEmbedPortrait:"video-embed-portrait",videoLandscape:"video-landscape",videoLink:"video-link",videoLinkLandscape:"video-link-landscape",videoLinkPortrait:"video-link-portrait",videoPortrait:"video-portrait",videoTranscript:"video-transcript",warning:"warning",warningAlt:"warning-alt",warningCollapsible:"warning-collapsible",websiteLink:"website-link",workbookArticle:"workbook-article"});t.BitType=i},8588:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkParserType=void 0;const i=(0,r(4718).superenum)({peggy:"peggy"});t.BitmarkParserType=i},3811:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BITMARK_VERSION=t.BitmarkVersion=void 0;const i=(0,r(4718).superenum)({v2:2,v3:3});t.BitmarkVersion=i;const o=i.v3;t.DEFAULT_BITMARK_VERSION=o},4410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BodyBitType=void 0;const i=(0,r(4718).superenum)({text:"text",gap:"gap",mark:"mark",select:"select",highlight:"highlight"});t.BodyBitType=i},1163:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardSetVersion=void 0;const i=(0,r(4718).superenum)({v1:1,v2:2});t.CardSetVersion=i},3778:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Count=void 0;const i=(0,r(4718).superenum)({infinity:"infinity"});t.Count=i},363:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExampleType=void 0;const i=(0,r(4718).superenum)({none:"none",string:"string",boolean:"boolean"});t.ExampleType=i},7203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyAstKey=void 0;const i=(0,r(4718).superenum)({ast_isCaseSensitive:"isCaseSensitive",ast_referenceProperty:"referenceProperty",ast_markConfig:"markConfig",ast_productList:"productList",ast_productVideoList:"productVideoList"});t.PropertyAstKey=i},9727:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyFormat=void 0;const i=(0,r(4718).superenum)({none:"none",trimmedString:"trimmedString",bitmarkMinusMinus:"bitmarkMinusMinus",bitmarkPlusPlus:"bitmarkPlusPlus",number:"number",boolean:"boolean",invertedBoolean:"invertedBoolean"});t.PropertyFormat=i},166:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyTag=void 0;const i=r(4718),o=r(9888),n=(0,i.superenum)(Object.assign(Object.assign({},o.propertyConfigKeys),{tag_mark:"mark",tag_reference:"reference",tag_sampleSolution:"sampleSolution",tag_title:"title"}));t.PropertyTag=n},9984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceJsonKey=void 0;const i=(0,r(4718).superenum)({imageResponsive:"imageResponsive",imagePortrait:"imagePortrait",imageLandscape:"imageLandscape",imageEmbed:"imageEmbed",imageLink:"imageLink",audioEmbed:"audioEmbed",audioLink:"audioLink",videoEmbed:"videoEmbed",videoLink:"videoLink",stillImageFilm:"stillImageFilm",stillImageFilmEmbed:"stillImageFilmEmbed",stillImageFilmLink:"stillImageFilmLink",articleEmbed:"articleEmbed",articleLink:"articleLink",documentEmbed:"documentEmbed",documentLink:"documentLink",documentDownload:"documentDownload",appLink:"appLink",websiteLink:"websiteLink"});t.ResourceJsonKey=i},6149:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTag=void 0;const i=(0,r(4718).superenum)({unknown:"unknown",image:"image",imageResponsive:"image-responsive",imagePortrait:"image-portrait",imageLandscape:"image-landscape",imageEmbed:"image-embed",imageLink:"image-link",audio:"audio",audioEmbed:"audio-embed",audioLink:"audio-link",video:"video",videoEmbed:"video-embed",videoLink:"video-link",stillImageFilm:"still-image-film",stillImageFilmEmbed:"still-image-film-embed",stillImageFilmLink:"still-image-film-link",article:"article",articleEmbed:"article-embed",articleLink:"article-link",document:"document",documentEmbed:"document-embed",documentLink:"document-link",documentDownload:"document-download",appLink:"app-link",websiteLink:"website-link"});t.ResourceTag=i},9917:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=void 0;const i=(0,r(4718).superenum)({tag_title:"#",tag_anchor:"▼",tag_reference:"►",tag_property:"@",tag_itemLead:"%",tag_instruction:"!",tag_hint:"?",tag_true:"+",tag_false:"-",tag_sampleSolution:"$",tag_gap:"_",tag_mark:"=",tag_resource:"&"});t.Tag=i},385:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextFormat=void 0;const i=(0,r(4718).superenum)({text:"text",latex:"latex",json:"json",bitmarkMinusMinus:"bitmark--",bitmarkPlusPlus:"bitmark++"});t.TextFormat=i},2483:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextMarkType=void 0;const i=(0,r(4718).superenum)({bold:"bold",light:"light",italic:"italic",highlight:"highlight",strike:"strike",subscript:"subscript",superscript:"superscript",ins:"ins",del:"del",underline:"underline",doubleUnderline:"doubleUnderline",circle:"circle",languageEm:"languageEm",userUnderline:"userUnderline",userDoubleUnderline:"userDoubleUnderline",userStrike:"userStrike",userCircle:"userCircle",userHighlight:"userHighlight",link:"link",ref:"ref",xref:"xref",footnote:"footnote",footnoteStar:"footnote*",var:"var",code:"code",timer:"timer",duration:"duration",color:"color",comment:"comment"});t.TextMarkType=i},9554:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextNodeType=void 0;const i=(0,r(4718).superenum)({text:"text",hardBreak:"hardBreak",paragraph:"paragraph",heading:"heading",section:"section",noBulletList:"noBulletList",bulletList:"bulletList",orderedList:"orderedList",orderedListRoman:"orderedListRoman",orderedListRomanLower:"orderedListRomanLower",letteredList:"letteredList",letteredListLower:"letteredListLower",taskList:"taskList",listItem:"listItem",taskItem:"taskItem",image:"image",codeBlock:"codeBlock",gap:"gap",select:"select",highlight:"highlight",mark:"mark"});t.TextNodeType=i},3069:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InfoFormat=void 0;const i=(0,r(4718).superenum)({text:"text",json:"json",pojo:"pojo"});t.InfoFormat=i},486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InfoType=void 0;const i=(0,r(4718).superenum)({list:"list",deprecated:"deprecated",all:"all",bit:"bit"});t.InfoType=i},5633:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkParser=void 0;const i=r(5663),o=r(5078);t.BitmarkParser=class{constructor(){this.jsonParser=new i.JsonParser}toAst(e,t){return(0,o.parse)(e)}}},5078:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const i=r(5057).parse;t.parse=i},3206:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkPegParserHelper=void 0;const i=r(7735),o=r(1163),n=r(385),a=r(9681),s=r(7461),l=r(3029);r(2028);t.BitmarkPegParserHelper=class{constructor(e){this.cardIndex=0,this.cardSideIndex=0,this.cardVariantIndex=0,this.parse=e.parse,this.parserText=e.parserText,this.parserLocation=e.parserLocation}handleRawBit(e){var t,r;const i=e.trim();if(this.debugPrint("RAW BIT",i),!i)return;const o=null!==(r=null===(t=this.parserLocation())||void 0===t?void 0:t.start)&&void 0!==r?r:{line:1,column:1,offset:0},n=this.parse(e,{startRule:"bit",grammarSource:new s.PeggyGrammarLocation("bit",o)});return n.value&&(n.value.markup=i),n}handleTextFormat(e){return{type:l.TypeKey.TextFormat,value:e,parser:{text:this.parserText(),location:this.parserLocation()}}}handleResourceType(e){return{type:l.TypeKey.ResourceType,value:e,parser:{text:this.parserText(),location:this.parserLocation()}}}handleBitContent(e){let t=this.reduceToArrayOfTypes(e);return t=this.mergeCharToText(t),t}handleBitTag(e){return e}handleTag(e,t){return{type:e,value:t,parser:{text:this.parserText(),location:this.parserLocation()}}}handlePropertyTag(e,t){return{type:l.TypeKey.Property,key:i.Breakscape.unbreakscape(e,{textFormat:n.TextFormat.text}),value:t,parser:{text:this.parserText(),location:this.parserLocation()}}}handleResourceTag(e,t){return{type:l.TypeKey.Resource,key:i.Breakscape.unbreakscape(e,{textFormat:n.TextFormat.text}),value:t,parser:{text:this.parserText(),location:this.parserLocation()}}}handleTagChain(e){const t=this.reduceToArrayOfTypes(e);let r=t;if(t.length>1){const e=t[0];e.chain=t.slice(1),r=[e]}return r}handlePlainTextDivider(e){return e=this.reduceToString(e),{type:l.TypeKey.PlainTextDivider,value:e,parser:{text:this.parserText(),location:this.parserLocation()}}}handleFooterDivider(e){return e=this.reduceToString(e),{type:l.TypeKey.FooterDivider,value:e,parser:{text:this.parserText(),location:this.parserLocation()}}}handleCardSet(e){const t=e,r={cards:[]},i={cards:[]};if(t){const e={text:this.parserText(),location:this.parserLocation()};for(const e of t){if(!e)continue;const{type:t,value:i,parser:o}=e;if(!t||t!==l.TypeKey.Card)continue;const{cardIndex:n,cardSideIndex:a,cardVariantIndex:s,value:p}=i;let u=r.cards[n];u||(u={sides:[]},r.cards[n]=u);let c=u.sides[a];c||(c={variants:[]},u.sides[a]=c);c.variants[s]?c.variants[s].value+=p:c.variants[s]={value:p,parser:o}}r.cards=r.cards.filter((e=>e.sides.some((e=>e.variants.some((e=>0!==a.StringUtils.trimmedString(e.value).length))))));for(const t of r.cards){const r={sides:[]};i.cards.push(r);for(const i of t.sides){const t={variants:[]};r.sides.push(t);for(const r of i.variants){let i={line:1,column:1,offset:0};if(r.parser.location){i=r.parser.location.start;const e=r.parser.text,t=e?e.length:0,o=1;i.offset+=t,i.line+=o}let o=this.parse(r.value,{startRule:"cardContent",grammarSource:new s.PeggyGrammarLocation("card-content",i)});o=this.reduceToArrayOfTypes(o),this.debugPrint("parsedCardContent",o),t.variants.push({parser:e,content:o})}}}}return{type:l.TypeKey.CardSet,value:i,parser:{text:this.parserText(),location:this.parserLocation()}}}handleCardSetStart(){this.cardIndex=-1,this.cardSideIndex=0,this.cardVariantIndex=0}handleCardSetEnd(){this.cardIndex=0,this.cardSideIndex=0,this.cardVariantIndex=0}handleCards(e){return e}handleCardLineOrDivider(e,t){let r=!1,i=!1,n=!1;return Array.isArray(e)&&2===e.length&&(e=e[0],t===o.CardSetVersion.v1?(r=e===l.CARD_DIVIDER_V1,i=e===l.CARD_SIDE_DIVIDER_V1,n=e===l.CARD_VARIANT_DIVIDER_V1):(r=e===l.CARD_DIVIDER_V2,i=e===l.CARD_SIDE_DIVIDER_V2,n=e===l.CARD_VARIANT_DIVIDER_V2)),r?(this.cardIndex++,this.cardSideIndex=0,this.cardVariantIndex=0):i?(this.cardSideIndex++,this.cardVariantIndex=0):n&&this.cardVariantIndex++,this.isType(e,l.TypeKey.Card)?e:{type:l.TypeKey.Card,value:{cardIndex:this.cardIndex,cardSideIndex:this.cardSideIndex,cardVariantIndex:this.cardVariantIndex,value:""},parser:{text:this.parserText(),location:this.parserLocation()}}}handleCardLine(e){return{type:l.TypeKey.Card,value:{cardIndex:this.cardIndex,cardSideIndex:this.cardSideIndex,cardVariantIndex:this.cardVariantIndex,value:e},parser:{text:this.parserText(),location:this.parserLocation()}}}handleCardContent(e){return this.mergeCharToText(e)}handleCardTags(e){return e}mergeCharToText(e){var t,r,i,o,n,a;const s=[];let p,u;for(const c of e)switch(c.type){case l.TypeKey.BodyChar:if(p){const e=`${null!==(t=p.value)&&void 0!==t?t:""}${null!==(r=c.value)&&void 0!==r?r:""}`;p.value=e}else p={type:l.TypeKey.BodyText,value:null!==(i=c.value)&&void 0!==i?i:"",parser:{text:this.parserText(),location:this.parserLocation()}};break;case l.TypeKey.CardChar:if(u){const e=`${null!==(o=u.value)&&void 0!==o?o:""}${null!==(n=c.value)&&void 0!==n?n:""}`;u.value=e}else u={type:l.TypeKey.CardText,value:null!==(a=c.value)&&void 0!==a?a:"",parser:{text:this.parserText(),location:this.parserLocation()}};break;default:p&&(s.push(p),p=void 0),u&&(s.push(u),u=void 0),s.push(c)}return p&&s.push(p),u&&s.push(u),s}isType(e,t){if(!e)return!1;const{type:r}=e;return t?Array.isArray(t)?t.indexOf(r)>=0:t===r:!!l.TypeKey.fromValue(r)}reduceToArrayOfTypes(e,t,r){if(!Array.isArray(e))return[];return e.reduce(((e,i,o)=>{if(null==i)return e;const{type:n,value:a}=i;if(Array.isArray(i)){const r=this.reduceToArrayOfTypes(i,t);e.push(...r)}else{if(!this.isType(i,t))return e;if(r&&Array.isArray(a)){const r=this.reduceToArrayOfTypes(a,t);e.push(...r)}else n&&e.push(i)}return e}),[])}reduceToString(e){if(!Array.isArray(e))return"";return e.reduce(((e,t,r)=>{if(null==t)return e;if(Array.isArray(t)){e+=this.reduceToString(t)}else e+=t;return e}),[])}debugPrint(e,t){}}},7124:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkPegParserProcessor=void 0;const o=r(5809),n=r(7735),a=r(2028),s=r(5854),l=r(6149),p=r(385),u=r(9681),c=r(4266),y=r(5033),g=r(1083),d=r(4402),f=r(4382),m=r(3904),T=r(9289),h=r(5189),b=r(9647),B=r(3990),v=r(6521),C=r(7667),P=r(9885),x=r(3029),k=!1,K=!0,w=!0,S=!0,_=!0,A=new o.Builder;t.BitmarkPegParserProcessor=class{constructor(e){this.nonFatalWarnings=[],this.nonFatalErrors=[],this.parser={},this.parse=e.parse,this.parserText=e.parserText,this.parserLocation=e.parserLocation,this.context={DEBUG_BIT_RAW:true,DEBUG_BIT_CONTENT_RAW:k,DEBUG_BIT_CONTENT:K,DEBUG_BIT_TAGS:w,DEBUG_BODY:S,DEBUG_FOOTER:_,DEBUG_CHAIN_CONTENT:true,DEBUG_CHAIN_TAGS:true,DEBUG_CARD_SET_CONTENT:true,DEBUG_CARD_SET:true,DEBUG_CARD_TAGS:true,parser:this.parser,parse:this.parse,bitContentProcessor:this.bitContentProcessor.bind(this),splitBitContent:this.splitBitContent.bind(this),addWarning:this.addWarning.bind(this),addError:this.addError.bind(this),debugPrint:this.debugPrint.bind(this),state:{}}}buildBits(e){var t;const r=[];let i=[];for(const o of e){if(!o)continue;const e=o.value;e?r.push(e):i=i.concat(null!==(t=o.errors)&&void 0!==t?t:[])}return A.buildBitmark({bits:r,errors:i.length>0?i:void 0})}buildBit(e,t){var r;const{bitType:o,textFormat:n,resourceType:l,bitLevel:p,isCommented:u}=e;if(!o||a.Config.isOfBitType(o,s.BitType._error))return this.invalidBit();const y=a.Config.isOfBitType(o,s.BitType.trueFalse1),d=a.Config.isOfBitType(o,s.BitType.multipleChoice1),f=a.Config.isOfBitType(o,s.BitType.multipleResponse1);this.debugPrint("BIT CONTENT",t),this.resetParserState(),t=this.squashUnwantedInlineBodyBits(o,n,t),t=c.BitmarkPegParserValidator.validateBitTags(this.context,o,l,t);const m=a.Config.getBitConfig(o),T=this.bitContentProcessor(x.BitContentLevel.Bit,o,n,m.tags,t),{body:h,footer:b,cardSet:B,title:P,statement:k,statements:K,choices:w,responses:S,propertyStyleResources:_,resources:L,posterImage:I,internalComments:N}=T,F=i(T,["body","footer","cardSet","title","statement","statements","choices","responses","propertyStyleResources","resources","posterImage","internalComments"]);this.debugPrint("BIT TAGS",F),this.debugPrint("BIT BODY",h),this.debugPrint("BIT FOOTER",b);const E=(0,C.buildTitles)(this.context,o,P),R=(0,g.buildCards)(this.context,o,n,B,k,K,w,S),O=(0,v.buildResources)(this.context,o,l,L),V=[...null!=N?N:[],...null!==(r=R.internalComments)&&void 0!==r?r:[]],j=this.buildBitLevelWarnings(),G=this.buildBitLevelErrors();j&&(this.parser.warnings=j),G&&(this.parser.errors=G);return{value:A.buildBit(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({bitType:o,bitLevel:p,isCommented:u,textFormat:n,resourceType:l},E),{posterImage:I,statement:y?k:void 0,choices:d?w:void 0,responses:f?S:void 0}),F),_),{resources:O}),R),{body:h,footer:b,internalComment:V,parser:this.parser}))}}invalidBit(e){e&&this.addError("Invalid bit"),this.parser.errors=this.buildBitLevelErrors();return{value:A.buildBit({bitType:a.Config.getBitType(s.BitType._error),bitLevel:1,parser:this.parser})}}buildBitHeader(e,t,r){const i=n.Breakscape.unbreakscape(e,{textFormat:p.TextFormat.text}),o=a.Config.getBitType(i),u=a.Config.isBitTypeCommented(i);a.Config.isOfBitType(o,s.BitType._error)&&this.addError(`Invalid bit type: '${i}'`);const c=a.Config.getBitConfig(o);t>a.Config.bitLevelMax?(this.addWarning(`Bit level of ${t} too high, setting to max value of ${a.Config.bitLevelMax}`),t=a.Config.bitLevelMax):t<a.Config.bitLevelMin&&(this.addWarning(`Bit level of ${t} too low, setting to min value of ${a.Config.bitLevelMin}`),t=a.Config.bitLevelMin);let y=p.TextFormat.fromValue(r.textFormat);r.textFormat&&!y&&this.addWarning(`Invalid text format '${r.textFormat}', defaulting to '${c.textFormatDefault}'`),y=null!=y?y:c.textFormatDefault;const g=l.ResourceTag.fromValue(r.resourceType);return r.resourceType&&!g&&this.addWarning(`Invalid resource type '${r.resourceType}', it will be ignored`),{bitType:o,bitLevel:t,textFormat:null!=y?y:c.textFormatDefault,resourceType:g,isCommented:u}}buildTextAndResourceType(e,t){const r={},i=e=>{if(e){const t=n.Breakscape.unbreakscape(u.StringUtils.string(e.value),{textFormat:p.TextFormat.text});e.type===x.TypeKey.TextFormat?r.textFormat=t:r.resourceType=t}};return i(e),i(t),r}resetParserState(){this.context.state={}}squashUnwantedInlineBodyBits(e,t,r){const i=[];if(!r)return i;const o=t===p.TextFormat.bitmarkMinusMinus||t===p.TextFormat.bitmarkPlusPlus,n=(e,t="")=>{const{chain:r,parser:i}=e;if(t+=i.text,r)for(const e of r)t=n(e,t);return t};let a=!1;for(const e of r){const{type:t,value:r}=e,s=null!=r?r:"";let l=!1;if(a||(t===x.TypeKey.BodyText&&!o&&s&&s.trim()&&(a=!0),t===x.TypeKey.PlainTextDivider&&(a=!0,l=!0)),l)i.push({type:x.TypeKey.BodyText,value:"\n"});else if(a)if(t===x.TypeKey.BodyText)i.push({type:x.TypeKey.BodyTextPlain,value:r});else{const t=n(e);i.push({type:x.TypeKey.BodyTextPlain,value:t})}else i.push(e)}return i}bitContentProcessor(e,t,r,i,o){const a={};if(!o)return a;a.title=[],a.solutions=[],a.__solutionsAst=[],a.statements=[],a.choices=[],a.responses=[],a.propertyStyleResources={},a.resources=[],a.trueFalse=[],a.markConfig=[],a.extraProperties={},a.internalComments=[];let s=!1,l=!1;const p=[];let u=n.Breakscape.EMPTY_STRING,g=n.Breakscape.EMPTY_STRING,k=n.Breakscape.EMPTY_STRING,K=n.Breakscape.EMPTY_STRING;const w=e===x.BitContentLevel.Bit,S=e===x.BitContentLevel.Card,_=e===x.BitContentLevel.Chain,A=()=>{if(u){u=c.BitmarkPegParserValidator.checkBodyPart(this.context,e,t,u);const r=y.BodyContentProcessor.buildBodyText(u,!1);p.push(r)}u=n.Breakscape.EMPTY_STRING};for(const c of o){const{type:o,value:y}=c;switch(o){case x.TypeKey.ItemLead:(0,T.itemLeadChainContentProcessor)(this.context,e,t,r,i,c,a);break;case x.TypeKey.Instruction:case x.TypeKey.Hint:case x.TypeKey.Anchor:case x.TypeKey.SampleSolution:(0,d.defaultTagContentProcessor)(this.context,e,t,r,i,c,a);break;case x.TypeKey.Reference:(0,B.referenceTagContentProcessor)(this.context,e,t,r,i,c,a,s),s=!0;break;case x.TypeKey.Title:(0,C.titleTagContentProcessor)(this.context,e,t,r,i,c,a);break;case x.TypeKey.Property:(0,b.propertyContentProcessor)(this.context,e,t,r,i,c,a);break;case x.TypeKey.Gap:_||A(),(0,m.gapChainContentProcessor)(this.context,e,t,r,i,c,a,p);break;case x.TypeKey.Mark:_||A(),(0,h.markChainContentProcessor)(this.context,e,t,r,i,c,a,p);break;case x.TypeKey.True:case x.TypeKey.False:_||A(),(0,P.trueFalseChainContentProcessor)(this.context,e,t,r,i,c,a,p);break;case x.TypeKey.Resource:(0,v.resourceContentProcessor)(this.context,e,t,r,i,c,a);break;case x.TypeKey.CardSet:a.cardSet=y,l=!0;break;case x.TypeKey.BodyText:case x.TypeKey.CardText:l?g=n.Breakscape.concatenate(g,y):u=n.Breakscape.concatenate(u,y);break;case x.TypeKey.BodyTextPlain:l?K=n.Breakscape.concatenate(K,y):k=n.Breakscape.concatenate(k,y);break;case x.TypeKey.FooterDivider:l&&(g=n.Breakscape.concatenate(g,y)),l=!0}}A();const L=k?y.BodyContentProcessor.buildBodyText(k,!0):void 0;if(L&&p.push(L),a.itemLead){const e=a.itemLead.length;e>0&&(a.item=a.itemLead[0]),e>1&&(a.lead=a.itemLead[1]),e>2&&(a.pageNumber=a.itemLead[2]),e>3&&(a.marginNumber=a.itemLead[e-1])}return w?a.body=y.BodyContentProcessor.process(this.context,e,t,r,i,a,p,!1):S&&(a.cardBody=y.BodyContentProcessor.process(this.context,e,t,r,i,a,p,!0)),a.footer=f.FooterContentProcessor.process(this.context,e,t,r,i,a,g,K),0===Object.keys(a.extraProperties).length&&delete a.extraProperties,0===a.title.length&&delete a.title,0===a.solutions.length&&delete a.solutions,0===a.statements.length&&delete a.statements,0===a.choices.length&&delete a.choices,0===a.responses.length&&delete a.responses,0===a.trueFalse.length&&delete a.trueFalse,0===a.markConfig.length&&delete a.markConfig,0===Object.keys(a.propertyStyleResources).length&&delete a.propertyStyleResources,0===a.resources.length&&delete a.resources,0===a.internalComments.length&&delete a.internalComments,a}buildBitLevelWarnings(){let e;return this.nonFatalWarnings.length>0&&(e=this.nonFatalWarnings,this.nonFatalWarnings=[]),e}buildBitLevelErrors(){let e;return this.nonFatalErrors.length>0&&(e=this.nonFatalErrors,this.nonFatalErrors=[]),e}splitBitContent(e,t){const r=[];let i=[];for(const o of e)t.includes(o.type)&&(i.length>0&&r.push(i),i=[]),i.push(o);return i.length>0&&r.push(i),r}addWarning(e,t,r){var i,o,n;const a={message:e,text:null!==(i=null==t?void 0:t.parser.text)&&void 0!==i?i:this.parserText(),location:null!==(o=null==t?void 0:t.parser.location)&&void 0!==o?o:this.parserLocation(),original:null!==(n=null==r?void 0:r.parser)&&void 0!==n?n:void 0};a.original||delete a.original,this.nonFatalWarnings.push(a)}addError(e,t,r){var i,o,n;const a={message:e,text:null!==(i=null==t?void 0:t.parser.text)&&void 0!==i?i:this.parserText(),location:null!==(o=null==t?void 0:t.parser.location)&&void 0!==o?o:this.parserLocation(),original:null!==(n=null==r?void 0:r.parser)&&void 0!==n?n:void 0};a.original||delete a.original,this.nonFatalErrors.push(a)}debugPrint(e,t){}}},3029:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CARD_VARIANT_DIVIDER_V1=t.CARD_SIDE_DIVIDER_V1=t.CARD_DIVIDER_V1=t.CARD_VARIANT_DIVIDER_V2=t.CARD_SIDE_DIVIDER_V2=t.CARD_DIVIDER_V2=t.BitContentLevel=t.TypeKey=void 0;const i=r(4718),o=r(9917);t.CARD_DIVIDER_V2="====";t.CARD_SIDE_DIVIDER_V2="--";t.CARD_VARIANT_DIVIDER_V2="++";t.CARD_DIVIDER_V1="===";t.CARD_SIDE_DIVIDER_V1="==";t.CARD_VARIANT_DIVIDER_V1="--";const n=(0,i.superenum)({TextFormat:"TextFormat",ResourceType:"ResourceType",Title:o.Tag.tag_title,Anchor:o.Tag.tag_anchor,Reference:o.Tag.tag_reference,ItemLead:o.Tag.tag_itemLead,Instruction:o.Tag.tag_instruction,Hint:o.Tag.tag_hint,True:o.Tag.tag_true,False:o.Tag.tag_false,Gap:o.Tag.tag_gap,Mark:o.Tag.tag_mark,SampleSolution:o.Tag.tag_sampleSolution,Property:"Property",Resource:"Resource",TagChain:"TagChain",BodyChar:"BodyChar",BodyText:"BodyText",BodyTextPlain:"BodyTextPlain",CardSet:"CardSet",Card:"Card",CardChar:"CardChar",CardText:"CardText",GapChain:"GapChain",TrueFalseChain:"TrueFalseChain",PlainTextDivider:"PlainTextDivider",FooterDivider:"FooterDivider"});t.TypeKey=n;const a=(0,i.superenum)({Bit:"Bit",Card:"Card",Chain:"Chain"});t.BitContentLevel=a},4266:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmarkPegParserValidator=void 0;const i=r(2028),o=r(5512),n=r(3778),a=r(166),s=r(9917),l=r(3029),p=["====","----","\n==\n","\n---\n","\n--\n",":::","::::","|||","||||"],u=["==\n","---\n","--\n"],c=["\n==","\n---","\n--"];const y=new class{validateBitTags(e,t,r,o){if(!o)return[];const n=i.Config.getBitConfig(t),{tags:a,cardSet:s}=n,p=i.Config.getBitResourcesConfig(t,r),u=Object.assign(Object.assign({},a),p.tags);return this.validateTagChainsRecursive(e,l.BitContentLevel.Bit,t,o,u,s).validated}checkBody(e,t,r,o,n){if(!n)return n;const a=i.Config.getBitConfig(r),{bodyAllowed:s}=a;return n.length>0&&!s&&e.addWarning(`Bit '${r}' should not have a body.`),n}checkBodyPart(e,t,r,i){return i?(this.checkBodyForCommonPotentialMistakes(e,t,r,i),i):i}checkFooter(e,t,r,o){if(!o)return o;const n=i.Config.getBitConfig(r),{footerAllowed:a}=n;return this.checkBodyForCommonPotentialMistakes(e,t,r,o),a||e.addWarning(`Bit '${r}' should not have a footer.`),o}checkCardBody(e,t,r,o,n,a,s){if(!o||!o.body)return o;const l=i.Config.getBitConfig(r);if(!l.cardSet)return o;const p=this.getVariantConfig(l.cardSet.variants,a,s);if(!p)return o;const{bodyAllowed:u}=p;return o.body.length>0&&!u&&e.addWarning(`Bit '${r}' should not have a card body at card:${n+1}, side:${a+1}, variant:${s+1}.`),o}validateTagChainsRecursive(e,t,r,i,p,u,c){var y;if(!i)return{validated:[]};let g;const d=[...i],f=this.convertTagsToTypeKeyMap(e,t,r,p),m=(e,t,r)=>{f.set(e,{maxCount:t,minCount:r,_type:e,_tag:e,_seenCount:0})};var T,h,b;T=a.PropertyTag.internalComment,h=n.Count.infinity,b=0,f.set(`${l.TypeKey.Property}:${T}`,{maxCount:h,minCount:b,_type:o.BitTagType.property,_tag:s.Tag.tag_property,_seenCount:0}),t===l.BitContentLevel.Bit?(u&&m(l.TypeKey.CardSet,1,0),m(l.TypeKey.TextFormat,1,0),m(l.TypeKey.BodyText,n.Count.infinity,0),m(l.TypeKey.BodyTextPlain,n.Count.infinity,0),m(l.TypeKey.PlainTextDivider,n.Count.infinity,0),m(l.TypeKey.FooterDivider,n.Count.infinity,0)):t===l.BitContentLevel.Card&&m(l.TypeKey.CardText,n.Count.infinity,0);for(let i=0;i<d.length;i++){const o=d[i];if(!o)continue;const{type:n,key:a}=o,s=l.TypeKey.fromValue(n);if(!s)continue;let p=s;s!==l.TypeKey.Property&&s!==l.TypeKey.Resource||(p=`${s}:${a}`);const m=f.get(p),{validated:T,warning:h}=this.validateSingleTag(e,t,r,o,s,m,u);s===l.TypeKey.Resource&&(c=l.TypeKey.Resource);let b=!0;if(!T)if(t===l.BitContentLevel.Chain&&c!==l.TypeKey.Resource){g=o;const e=d.slice(i+1);e.length>0&&(g.chain=e),d.splice(i),b=!1}else d.splice(i,1,null);if(h&&b&&e.addWarning(null!==(y=h.warning)&&void 0!==y?y:"",h.content,h.previousContent),T&&Array.isArray(T.chain)&&T.chain.length>0)if(m&&m.chain){const{validated:t,remaining:o}=this.validateTagChainsRecursive(e,l.BitContentLevel.Chain,r,T.chain,m.chain,void 0,T.type);t&&t.length>0?T.chain=t:T.chain=void 0,o&&d.splice(i+1,0,o)}else if(T.type!==l.TypeKey.Resource){const e=T.chain[0];T.chain.length>1&&(e.chain=T.chain.slice(1)),d.splice(i+1,0,e),T.chain=void 0}}for(const t of f.values()){const{minCount:r,_seenCount:i}=t;if(null!=r&&i<r){const i=`${this.getTagSignature(t)} is required at least ${r} time(s)`;e.addWarning(i)}}return{validated:d.filter((e=>null!=e)),remaining:g}}validateSingleTag(e,t,r,i,o,n,a){const{type:s,key:p}=i,u=n?this.getTagSignature(n):this.getUnknownTagSignature(s,p),c=" It will be ignored";let y,g,d="";if(n)switch(n._seenCount++,o){case l.TypeKey.Property:{const{content:o,warning:a}=this.validatePropertyTag(e,t,r,n,i);y=o,g=a;break}case l.TypeKey.Resource:{const{content:o,warning:a}=this.validateResourceTag(e,t,r,n,i);y=o,g=a;break}case l.TypeKey.CardSet:{const{content:t,warning:o}=this.validateCardSet(e,r,n,i,a);y=t,g=o;break}default:{const{content:o,warning:a}=this.validateStandardTag(e,t,r,n,i);y=o,g=a}}else switch(o){case l.TypeKey.Property:g={extraProperty:!0},t!==l.BitContentLevel.Chain&&(y=i);break;case l.TypeKey.Resource:g={excessResource:!0},y=i;break;default:g={invalid:!0}}if(g){const e=null==n?void 0:n._previous;g.invalid||g.excessResource?d=`${u} is not valid here (incorrectly chained?).${c}`:null!=g.tooMany?(d=`${u} is included more than ${g.tooMany} time(s).`,g.tooMany>0&&(d+=" The earlier ones will be ignored")):g.extraProperty?d=`${u} is an unknown property. It can be excluded from the output using the 'excludeUnknownProperties' flag`:g.unexpectedCardSet?d=`${u} is not expected here.${c}`:g.unexpectedCardSideVariant&&(d=`${u} has a card / side / variant that is not expected here.${c}`),g.warning=d,g.content=y,g.previousContent=e}return n&&(n._previous=i),{validated:y,warning:g}}validateStandardTag(e,t,r,i,o){const a=null==i.maxCount?1:i.maxCount;return a!==n.Count.infinity&&i._seenCount>a?{warning:{tooMany:a},content:o}:{content:o}}validatePropertyTag(e,t,r,i,o){const a=null==i.maxCount?1:i.maxCount;return a!==n.Count.infinity&&i._seenCount>a?{warning:{tooMany:a},content:o}:{content:o}}validateResourceTag(e,t,r,i,o){const a=null==i.maxCount?1:i.maxCount;return a!==n.Count.infinity&&i._seenCount>a?{warning:{tooMany:a},content:o}:{content:o}}validateCardSet(e,t,r,i,o){if(!o||!o.variants||0===o.variants.length)return{warning:{unexpectedCardSet:!0}};const{value:n}=i,a=n;let s,p=0,u=0;for(const r of a.cards){p=0;for(const i of r.sides){u=0;for(const r of i.variants){const n=r.content;let a;const c=this.getVariantConfig(o.variants,p,u);if(c){a=this.validateTagChainsRecursive(e,l.BitContentLevel.Card,t,n,c.tags).validated}else s={unexpectedCardSideVariant:!0};a&&a.length>0?i.variants[u]={parser:r.parser,content:a}:i.variants[u]={parser:r.parser,content:[]},u++}p++}}return{content:i,warning:s}}checkBodyForCommonPotentialMistakes(e,t,r,i){if(i){for(const t of p)i.includes(t)&&e.addWarning(`Bit '${r}' might contain a mistake: ${t}`);for(const t of u)i.startsWith(t)&&e.addWarning(`Bit '${r}' might contain a mistake: ${t}`);for(const t of c)i.endsWith(t)&&e.addWarning(`Bit '${r}' might contain a mistake: ${t}`)}}convertTagsToTypeKeyMap(e,t,r,i){const n=new Map;for(const e of Object.values(i)){const t={minCount:e.minCount,maxCount:e.maxCount,isTag:e.type===o.BitTagType.tag,isProperty:e.type===o.BitTagType.property,isResource:e.type===o.BitTagType.resource,chain:e.chain,_configKey:e.configKey,_type:e.type,_tag:e.tag,_seenCount:0,_previous:void 0};if(t.isProperty)n.set(`${l.TypeKey.Property}:${e.tag}`,t);else if(t.isResource)n.set(`${l.TypeKey.Resource}:${e.tag}`,t);else{const r=l.TypeKey.fromValue(e.tag);r&&n.set(r,t)}}return n}getVariantConfig(e,t,r){let i;if(0===e.length)return;const o=e[Math.min(t,e.length-1)],a=o.length-1;if(r>a){if(i=o[a],i.repeatCount!==n.Count.infinity)return}else i=o[r];return i}getTagSignature(e){switch(e._type){case o.BitTagType.tag:return`[${e._tag}]`;case o.BitTagType.property:return`[@${e._tag}]`;case o.BitTagType.resource:return`[&${e._tag}]`;default:return`'${e._type}' tag '${e._tag}'`}}getUnknownTagSignature(e,t){switch(e){case l.TypeKey.Property:return`[@${t}]`;case l.TypeKey.Resource:return`[&${t}]`;default:return t?`'${e}' tag '${t}'`:`'${e}' tag`}}};t.BitmarkPegParserValidator=y},7461:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PeggyGrammarLocation=void 0;t.PeggyGrammarLocation=class{constructor(e,t){this.source=e,this.start=t}toString(){return String(this.source)}offset(e){return{line:e.line+this.start.line-1,column:1===e.line?e.column+this.start.column-1:e.column,offset:e.offset+this.start.offset}}static offsetStart(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start}static offsetEnd(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end}}},5033:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BodyContentProcessor=void 0;const i=r(7735),o=r(4410),n=r(385),a=r(9681),s=r(777),l=r(4266),p=r(6128),u=new s.TextParser;const c=new class{process(e,t,r,s,c,y,g,d){const f=[];let m,T;const h=g.length>0?this.trimBodyParts(g):void 0,b=d?h:l.BitmarkPegParserValidator.checkBody(e,t,r,s,h);if(s===n.TextFormat.json&&b){m=b.reduce(((e,t)=>{var r;if(t.type===o.BodyBitType.text&&t.data){return e+(null!==(r=t.data.bodyText)&&void 0!==r?r:"")}return e}),"");try{m=JSON.parse(m)}catch(t){m=null,e.addError("Body JSON is invalid.")}}else{let e="",t="",r="",l=0;const c=e=>`[!${e}]`;if(b)for(let n=0;n<b.length;n++){const a=b[n];if(a.type===o.BodyBitType.text){const o=a,n=o.data.bodyText;o.data.isPlain?t=i.Breakscape.concatenate(t,n):e=i.Breakscape.concatenate(e,n),r=i.Breakscape.concatenate(r,n)}else{const t=c(l);e=i.Breakscape.concatenate(e,t),f.push(a),l++}}const y=s===n.TextFormat.bitmarkMinusMinus||s===n.TextFormat.bitmarkPlusPlus?u.toAst(e,{textFormat:s}):i.Breakscape.unbreakscape(e,{textFormat:n.TextFormat.text}),g=i.Breakscape.unbreakscape(t,{textFormat:n.TextFormat.text}),d=a.StringUtils.countOccurrencesAtEnd(e,"\n")+a.StringUtils.countOccurrencesAtStart(t,"\n");m=p.ContentProcessorUtils.concatenatePlainTextWithAstTexts(y,d,g),T=i.Breakscape.unbreakscape(r,{textFormat:s}).trim();const h=Array.isArray(m)?m:void 0;if(h&&b){l=0;for(let e=0;e<b.length;e++){const t=b[e];if(t.type===o.BodyBitType.text)continue;const r=t;let i;switch(t.type){case o.BodyBitType.gap:case o.BodyBitType.mark:case o.BodyBitType.select:case o.BodyBitType.highlight:i=r}i&&this.replacePlaceholderWithBodyBit(h,i,l),l++}}}return{body:m,bodyBits:f.length>0?f:void 0,bodyString:T}}buildBodyText(e,t){return{type:o.BodyBitType.text,data:{bodyText:e,isPlain:t}}}replacePlaceholderWithBodyBit(e,t,r){const i=(e,o,n)=>{if(Array.isArray(e))for(let t=0;t<e.length;t++){const r=e[t];if(i(r,e,t))return!0}else{if("bit"===e.type&&e.index===r)return o[n]=t,!0;if(e.content){if(i(e.content,e,"content"))return!0}}return!1};i(e,null,null)}trimBodyParts(e){let t=!1,r=e.reduce(((e,r)=>{const i=r;if(t||i.type!==o.BodyBitType.text)t=!0,e.push(r);else{const r=i.data.bodyText.trimStart();r&&(t=!0,i.data.bodyText=r,e.push(i))}return e}),[]);return t=!1,r=r.reduceRight(((e,r)=>{const i=r;if(t||i.type!==o.BodyBitType.text)t=!0,e.unshift(r);else{const r=i.data.bodyText.trimEnd();r&&(t=!0,i.data.bodyText=r,e.unshift(i))}return e}),[]),r}};t.BodyContentProcessor=c},3045:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bookChainContentProcessor=function(e,t,r,p,u,c,y){t===l.BitContentLevel.Chain||function(e,t,r,p,u,c,y){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("book content",c);const g=e.bitContentProcessor(l.BitContentLevel.Chain,r,p,u,c.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("book TAGS",g);const{reference:d,referenceEnd:f}=g,m=i.Breakscape.unbreakscape(s.StringUtils.trimmedString(c.value)),T=o.Config.getBitConfig(r),h=T.tags[n.PropertyConfigKey.book];if(h&&(h.maxCount===a.Count.infinity||h.maxCount>1))return Array.isArray(y.book)||(y.book=[]),void y.book.push({book:m,reference:null!=d?d:"",referenceEnd:null!=f?f:void 0});y.book=m,y.reference=d,y.referenceEnd=f}(e,0,r,p,u,c,y)};const i=r(7735),o=r(2028),n=r(9888),a=r(3778),s=r(9681),l=r(3029)},1083:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.buildCards=function(e,t,r,g,d,f,m,T){var h;e.DEBUG_CARD_SET&&e.debugPrint("card set",g);let b={};const B=function(e,t,r,i){var o;const a={cards:[],internalComments:[]};if(!i)return a;let s=0,l=0,p=0;for(const u of i.cards){const i={no:s++,sides:[]};a.cards.push(i);for(const s of u.sides){const u={no:l++,variants:[]};i.sides.push(u);for(const g of s.variants){const{parser:s,content:d}=g,f={parser:s,no:p++};u.variants.push(f);const m=n.Config.getTagsConfigForCardSet(t,l,p),T=e.bitContentProcessor(y.BitContentLevel.Card,t,r,m,d);e.DEBUG_CARD_TAGS&&e.debugPrint("card tags",T),T.cardBody=c.BitmarkPegParserValidator.checkCardBody(e,y.BitContentLevel.Card,t,T.cardBody,i.no,u.no,f.no),T.cardBodyStr=null===(o=T.cardBody)||void 0===o?void 0:o.bodyString,f.data=T,T.internalComments&&a.internalComments.push(...T.internalComments)}p=0}l=0}return a}(e,t,r,g),v=n.Config.getBitConfig(t);switch(null===(h=v.cardSet)||void 0===h?void 0:h.configKey){case a.CardSetConfigKey._flashcardLike:b=function(e,t,r){var o;const a=[],l=[];let p,u=[],c="",y=[],g=[],d=0,f=0,m={};const T=t===s.BitType.flashcard1;for(const h of r.cards){u=[],y=[],g=[],f=0,m={};for(const e of h.sides)for(const t of e.variants){const e=t.data,{cardBody:r}=e,n=i(e,["cardBody"]);m=Object.assign(Object.assign({},m),n),0===f?(p=t,u=null==r?void 0:r.body,c=null!==(o=null==r?void 0:r.bodyString)&&void 0!==o?o:""):1===f?y=null==r?void 0:r.body:g.push(null==r?void 0:r.body),f++}if(0!==d&&T){e.addWarning(`Bit '${t}' should only contain one card. Ignore subsequent card: '${c}'`,p);break}if(n.Config.isOfBitType(t,s.BitType.definitionList)){const e=Object.assign({term:u,definition:y,alternativeDefinitions:g},m);e&&l.push(e)}else{const e=Object.assign({question:u,answer:y,alternativeAnswers:g},m);e&&a.push(e)}d++}return{flashcards:a.length>0?a:void 0,definitions:l.length>0?l:void 0}}(e,t,B);break;case a.CardSetConfigKey._elements:b=function(e,t,r){var i;const o=[];for(const e of r.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data;o.push(null!==(i=t.cardBodyStr)&&void 0!==i?i:"")}return{elements:o.length>0?o:void 0}}(0,0,B);break;case a.CardSetConfigKey._statements:b=function(e,t,r,o,n){var a;const s=[];for(const e of r.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,{statements:r,statement:o}=t,n=i(t,["statements","statement"]);if(Array.isArray(r))for(const e of r){const t=Object.assign({statement:null!==(a=e.statement)&&void 0!==a?a:"",isCorrect:e.isCorrect,item:e.item,lead:e.lead,hint:e.hint,instruction:e.instruction,example:e.example},n);t&&s.push(t)}}o&&s.push(o);Array.isArray(n)&&n.length>0&&s.push(...n);return{statements:s.length>0?s:void 0}}(0,0,B,d,f);break;case a.CardSetConfigKey._quiz:b=function(e,t,r,o,a){const l=[],p=n.Config.isOfBitType(t,s.BitType.multipleChoice),u=n.Config.isOfBitType(t,s.BitType.multipleResponse);if(!p&&!u)return{};let c,y=!1;for(const e of r.cards){y=!1,c=void 0;for(const t of e.sides)for(const e of t.variants){const t=e.data,{__isDefaultExample:r,example:o}=t,n=i(t,["__isDefaultExample","example"]);if(y=!0===r||y,c=o||c,n.trueFalse&&n.trueFalse.length>0){const e=[];for(const t of n.trueFalse){const{__isDefaultExample:r,example:o}=t,n=i(t,["__isDefaultExample","example"]),a=r||y,s=o||c,l={isCorrect:n.isCorrect,__isDefaultExample:a,example:s};u?l.response=n.text:l.choice=n.text,l&&e.push(l)}u?n.responses=e:n.choices=e}const a=Object.assign(Object.assign({},n),{choices:n.choices,responses:n.responses,__isDefaultExample:y,__defaultExample:c});a&&l.push(a)}}if(p&&Array.isArray(o)&&o.length>0){const e={choices:o};e&&l.push(e)}if(u&&Array.isArray(a)&&a.length>0){const e={responses:a};e&&l.push(e)}return{quizzes:l.length>0?l:void 0}}(0,t,B,m,T);break;case a.CardSetConfigKey._questions:b=function(e,t,r){var i;const o=[];for(const e of r.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,r=Object.assign({question:null!==(i=t.cardBodyStr)&&void 0!==i?i:""},t);r&&o.push(r)}return{questions:o.length>0?o:void 0}}(0,0,B);break;case a.CardSetConfigKey._matchPairs:b=function(e,t,r){let o,a=0,l=!1;const u=[];let c,y,g,d,f,m,T=[],h=[],b=[],B={},v=!1,C=!1;for(const e of r.cards){l=!1,c=void 0,T=[],y=void 0,h=[],b=[],g=void 0,d=void 0,a=0,B={},C=!1,m=void 0;for(const t of e.sides){for(const e of t.variants){const t=e.data,{cardBody:r,cardBodyStr:o,title:n,resources:s,__isDefaultExample:u,example:P}=t,x=i(t,["cardBody","cardBodyStr","title","resources","__isDefaultExample","example"]);C=!0===u||C,m=P||m;const k=n&&n[1].titleString;if(null!=k&&(l=!0),0===a)if(c=k,null!=k)v=!0===u||v,f=P||f;else if(Array.isArray(s)&&s.length>0){const e=s[0];e.type===p.ResourceTag.audio?g=e.audio:e.type===p.ResourceTag.image&&(d=e.image)}else y=o;else{if(T.push(null!=k?k:""),null!=k)v=!0===u||v,f=P||f;else if(null==n){const e=null!=o?o:"",t=null==r?void 0:r.body;h.push(e),b.push(t),!v&&!C||m||(m=t)}delete x.item,delete x.lead}B=Object.assign(Object.assign({},B),x)}a++}if(l){let e=T;e=n.Config.isOfBitType(t,s.BitType.matchMatrix)?T:T.length>=1?T[T.length-1]:"",o={forKeys:null!=c?c:"",forValues:e}}else{C&&(f=void 0);const e=C||v,t=m||f,r=Object.assign(Object.assign({key:null!=y?y:"",keyAudio:g,keyImage:d,values:h,__valuesAst:b},B),{__isDefaultExample:e,example:t});r&&u.push(r)}}return{heading:o,pairs:u.length>0?u:void 0}}(0,t,B);break;case a.CardSetConfigKey._matchMatrix:b=function(e,t,r){let n,a,s,l,p=0,u=!1,c=[];const y=[];let g,d,f,m,T,h=[],b=[],B=[],v={},C=!1,P=!1,x=!1;for(const e of r.cards){u=!1,a=void 0,s=void 0,l=void 0,c=[],h=[],b=[],B=[],p=0,P=!1,d=void 0,m=void 0;for(const t of e.sides){b=[],B=[],v={},x=!1,f=void 0,T=void 0;for(const e of t.variants){const t=e.data,{title:r,cardBody:n,cardBodyStr:y,__isDefaultExample:h,example:k,isCaseSensitive:K}=t,w=i(t,["title","cardBody","cardBodyStr","__isDefaultExample","example","isCaseSensitive"]);x=!0===h||x,f=k||f,Object.assign(v,w);const S=r&&r[1].titleString;if(null!=S&&(u=!0),0===p)a=S,null!=S?(C=!0===h||C,g=k||g):(s=y,l=w,P=!0===h||P,d=k||d,m=null!=K?K:m);else if(c.push(null!=S?S:o.Breakscape.EMPTY_STRING),null!=S)C=!0===h||C,g=k||g;else if(null==t.title){const e=null!=y?y:o.Breakscape.EMPTY_STRING,t=null==n?void 0:n.body;b.push(e),B.push(t),!C&&!x||f||(f=t),T=null!=K?K:m}}if(p>0){x&&(d=g=void 0),P&&(g=void 0);const e=x||P||C,t=f||d||g,r=Object.assign(Object.assign({values:b,__valuesAst:B},v),{__isDefaultExample:e,example:t,isCaseSensitive:T});r&&h.push(r)}p++}if(u)n={forKeys:null!=a?a:o.Breakscape.EMPTY_STRING,forValues:c};else{const e=Object.assign({key:null!=s?s:o.Breakscape.EMPTY_STRING,cells:h},l);e&&y.push(e)}}return{heading:n,matrix:y.length>0?y:void 0}}(0,0,B);break;case a.CardSetConfigKey._table:b=function(e,t,r){let i=0,o=!1;const n=[],a=[];let s=[];for(const e of r.cards){o=!1,s=[];for(const t of e.sides)for(const e of t.variants){const t=e.data,{title:r,cardBodyStr:a}=t,l=r&&r[1].titleString;if(0===i&&null!=l&&(o=!0),o)n.push(null!=l?l:"");else{const e=null!=a?a:"";s.push(e)}}o||a.push(s),i++}return{table:{columns:n,data:a}}}(0,0,B);break;case a.CardSetConfigKey._botActionResponses:b=function(e,t,r){const n=[];for(const e of r.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,{__instructionString:r,reaction:a,cardBodyStr:s}=t,l=i(t,["__instructionString","reaction","cardBodyStr"]),p=Object.assign({response:null!=r?r:o.Breakscape.EMPTY_STRING,reaction:null!=a?a:o.Breakscape.EMPTY_STRING,feedback:null!=s?s:o.Breakscape.EMPTY_STRING},l);p&&n.push(p)}return{botResponses:n.length>0?n:void 0}}(0,0,B);break;case a.CardSetConfigKey._ingredients:b=function(e,t,r){const n=[];for(const e of r.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,{title:r,__instructionString:a,unit:s,unitAbbr:p,decimalPlaces:c,disableCalculation:y,cardBodyStr:g,cardBody:d}=t,f=i(t,["title","__instructionString","unit","unitAbbr","decimalPlaces","disableCalculation","cardBodyStr","cardBody"]),m=Array.isArray(r)&&r.length>0?r[r.length-1].titleString:void 0;let T=!1,h=u.NumberUtils.asNumber(a);if(d&&d.bodyBits){const e=d.bodyBits.find((e=>e.type===l.BodyBitType.select));e&&(h=e.__instructionString?u.NumberUtils.asNumber(e.__instructionString):h,e.options&&e.options.length>0&&(T=e.options[0].isCorrect))}const b=Object.assign({title:m,checked:T,item:g,quantity:h,unit:null!=s?s:o.Breakscape.EMPTY_STRING,unitAbbr:null!=p?p:o.Breakscape.EMPTY_STRING,decimalPlaces:null!=c?c:1,disableCalculation:y},f);b&&n.push(b)}return{ingredients:n.length>0?n:void 0}}(0,0,B);break;case a.CardSetConfigKey._clozeList:case a.CardSetConfigKey._exampleBitList:b=function(e,t,r,o){const n=[];for(const e of o.cards)for(const t of e.sides)for(const e of t.variants){const t=e.data,{cardBody:r}=t,o=i(t,["cardBody"]),a=Object.assign({body:r},o);a&&n.push(a)}return{cardBits:n.length>0?n:void 0}}(0,0,0,B);break;case a.CardSetConfigKey._captionDefinitionsList:b=function(e,t,r){let i=0,o=!1;const n=[],a=[];let s=[];for(const e of r.cards){o=!1,s=[];for(const t of e.sides)for(const e of t.variants){const t=e.data,{title:r,cardBodyStr:a}=t,l=r&&r[1].titleString;if(0===i&&null!=l&&(o=!0),o)n.push(null!=l?l:"");else{const e=null!=a?a:"";s.push(e)}}o||a.push(s),i++}return{captionDefinitionList:n.length>0?{columns:n,definitions:a.map((e=>({term:e[0],definition:e[1]}))).filter((e=>null!=e))}:void 0}}(0,0,B)}return b.internalComments=B.internalComments.length>0?B.internalComments:void 0,b};const o=r(7735),n=r(2028),a=r(8199),s=r(5854),l=r(4410),p=r(6149),u=r(8025),c=r(4266),y=r(3029)},554:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clozeTagContentProcessor=function(e,t,r,a,s,l,p){const{value:u}=l,c=p.solutions,y=p.__solutionsAst;if(!c||!y)return;if(o.StringUtils.isString(u)){const e=o.StringUtils.trimmedString(u);c.push(i.Breakscape.unbreakscape(e));const t=n.toAst(e);y.push(t)}};const i=r(7735),o=r(9681),n=new(r(777).TextParser)},6128:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContentProcessorUtils=void 0;const i=r(9554);const o=new class{concatenatePlainTextWithAstTexts(e,t,r){var o;if(Array.isArray(e)){if(r=r&&r.trim()){const n=r.split("\n"),a=[];for(let e=0;e<t;e++)a.push({type:i.TextNodeType.hardBreak});for(let e=0;e<n.length;e++){const t=n[e];t&&a.push({text:t,type:i.TextNodeType.text}),e<n.length-1&&a.push({type:i.TextNodeType.hardBreak})}const s=e[e.length-1];s&&s.type===i.TextNodeType.paragraph?s.content=[...null!==(o=s.content)&&void 0!==o?o:[],...a]:e.push({type:i.TextNodeType.paragraph,content:a,attrs:{}})}return e}return`${null!=e?e:""}${"\n".repeat(t)}${null!=r?r:""}`}};t.ContentProcessorUtils=o},4402:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTagContentProcessor=function(e,t,r,s,l,p,u){const{type:c,value:y}=p,g=new n.TextParser,d=o.StringUtils.trimmedString(y);switch(c){case a.TypeKey.Instruction:u.instruction=g.toAst(d),u.__instructionString=i.Breakscape.unbreakscape(d);break;case a.TypeKey.Hint:u.hint=g.toAst(d),u.__hintString=i.Breakscape.unbreakscape(d);break;case a.TypeKey.Anchor:u.anchor=i.Breakscape.unbreakscape(d);break;case a.TypeKey.Reference:u.reference=i.Breakscape.unbreakscape(d);break;case a.TypeKey.SampleSolution:u.sampleSolution=i.Breakscape.unbreakscape(d),u.__sampleSolutionAst=g.toAst(d),e.addWarning("[$...] tag is deprecated, use [@sampleSolution:...] instead",p)}};const i=r(7735),o=r(9681),n=r(777),a=r(3029)},4091:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.exampleTagContentProcessor=function(e,t,r,p,u,c){const{value:y}=u,g=y;o.Config.isOfBitType(r,[n.BitType.cloze,n.BitType.clozeAndMultipleChoiceText,n.BitType.multipleChoiceText,n.BitType.highlightText,n.BitType.trueFalse,n.BitType.trueFalse1,n.BitType.multipleResponse,n.BitType.multipleResponse1,n.BitType.multipleChoice,n.BitType.multipleChoice1])?function(e,t,r,p,u){var c,y;let g;Array.isArray(u.trueFalse)&&u.trueFalse.length>0&&(g=null!==(c=u.trueFalse[u.trueFalse.length-1])&&void 0!==c?c:void 0);g?!0===p?(g.__isDefaultExample=!0,g.example=!!g.isCorrect):a.BooleanUtils.isBooleanString(p)?g.example=a.BooleanUtils.toBoolean(p):(g.__isDefaultExample=!0,g.example=void 0,e.addWarning("Only 'true' / 'false' / default are allowed here, using default",r)):Array.isArray(u.__solutionsAst)&&u.__solutionsAst.length>0?u.example=!0===p?null!==(y=u.__solutionsAst[u.__solutionsAst.length-1])&&void 0!==y?y:void 0:p?s.toAst(p):void 0:o.Config.isOfBitType(t,[n.BitType.multipleChoiceText,n.BitType.highlightText,n.BitType.trueFalse,n.BitType.trueFalse1,n.BitType.multipleResponse,n.BitType.multipleResponse1])?function(e,t,r,o,n){if(!0===o)n.__isDefaultExample=!0,n.example=void 0;else{const t=o?i.Breakscape.unbreakscape(o):void 0;a.BooleanUtils.isBooleanString(t)?n.example=a.BooleanUtils.toBoolean(t):(n.__isDefaultExample=!0,n.example=void 0,e.addWarning("Only 'true' / 'false' / default are allowed here, using default",r))}}(e,0,r,p,u):o.Config.isOfBitType(t,[n.BitType.clozeAndMultipleChoiceText,n.BitType.multipleChoice,n.BitType.multipleChoice1])?(u.__isDefaultExample=!0,u.example=void 0,!0!==p&&e.addWarning("At this level, only default [@example] is allowed, using default",r)):l(e,t,r,p,u)}(e,r,u,g,c):o.Config.isOfBitType(r,n.BitType.mark)?function(e,t,r,i,o){o.__isDefaultExample=!0,o.example=void 0,!0!==i&&e.addWarning("Only default [@example] is allowed, using default",r)}(e,0,u,g,c):l(e,r,u,g,c)};const i=r(7735),o=r(2028),n=r(5854),a=r(4078),s=new(r(777).TextParser);function l(e,t,r,i,o){!0===i||"true"===i?(o.__isDefaultExample=!0,o.example=void 0):o.example=i?s.toAst(i):void 0}},4382:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FooterContentProcessor=void 0;const i=r(7735),o=r(385),n=r(9681),a=r(777),s=r(4266),l=r(6128),p=new a.TextParser;const u=new class{process(e,t,r,a,u,c,y,g){let d;y=y.trimStart(),g=g.trimEnd();const f=!!y.trim(),m=!!g.trim();let T=0;if(f&&m&&(T=n.StringUtils.countOccurrencesAtEnd(y,"\n")+n.StringUtils.countOccurrencesAtStart(g,"\n")),y||g){const n=a===o.TextFormat.bitmarkMinusMinus||a===o.TextFormat.bitmarkPlusPlus;y&&(y=s.BitmarkPegParserValidator.checkFooter(e,t,r,y));const u=n?p.toAst(y,{textFormat:a}):i.Breakscape.unbreakscape(y,{textFormat:o.TextFormat.text}),c=i.Breakscape.unbreakscape(g,{textFormat:o.TextFormat.text});d=l.ContentProcessorUtils.concatenatePlainTextWithAstTexts(u,T,c)}return d?{footer:d}:void 0}};t.FooterContentProcessor=u},3904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.gapChainContentProcessor=function(e,t,r,l,p,u,c,y){if(t===s.BitContentLevel.Chain)(0,a.clozeTagContentProcessor)(e,t,r,l,p,u,c);else{const t=function(e,t,r,a,l,p){var u;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("gap content",p);const c=i.Config.getTagConfigForTag(l,n.Tag.fromValue(p.type)),y=[p,...null!==(u=p.chain)&&void 0!==u?u:[]],g=e.bitContentProcessor(s.BitContentLevel.Chain,r,a,null==c?void 0:c.chain,y);e.DEBUG_CHAIN_TAGS&&e.debugPrint("gap TAGS",g);const d=Object.assign({type:o.BodyBitType.gap},g);return d}(e,0,r,l,p,u);t&&y.push(t)}};const i=r(2028),o=r(4410),n=r(9917),a=r(554),s=r(3029)},8848:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.imageSourceChainContentProcessor=function(e,t,r,p,u,c,y){t===l.BitContentLevel.Chain?function(e,t,r,i,n,a,l){const{value:p}=a,u=o.Breakscape.unbreakscape(s.StringUtils.trimmedString(p));l.imageSourceUrl=u}(0,0,0,0,0,c,y):function(e,t,r,o,s,p,u){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("imageSource content",p);const{key:c}=p,y=n.Config.getTagConfigForTag(s,a.PropertyTag.fromValue(c)),g=e.bitContentProcessor(l.BitContentLevel.Chain,r,o,s,[p]),d=e.bitContentProcessor(l.BitContentLevel.Chain,r,o,null==y?void 0:y.chain,p.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("imageSource TAGS",d);const{imageSourceUrl:f}=g,{mockupId:m}=d,T=i(d,["mockupId"]);f||e.addWarning("[@imageSource] is missing the image url",p);m||e.addWarning("[@mockupId:xxx] is missing from [@imageSource]",p);const h=Object.assign({url:null!=f?f:"",mockupId:null!=m?m:""},T);u.imageSource=h}(e,0,r,p,u,c,y)};const o=r(7735),n=r(2028),a=r(166),s=r(9681),l=r(3029)},6991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commentTagContentProcessor=function(e,t,r,o,n){if(!n.internalComments)return;const{value:a}=o,s=i.StringUtils.isString(a)?i.StringUtils.trimmedString(a):void 0;if(!s)return;n.internalComments.push(s)};const i=r(9681)},9289:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.itemLeadChainContentProcessor=function(e,t,r,s,l,p,u){t===a.BitContentLevel.Chain?(0,n.itemLeadTagContentProcessor)(e,t,r,s,l,p,u):function(e,t,r,n,s,l,p){var u;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("item lead content",l);const c=i.Config.getTagConfigForTag(s,o.Tag.fromValue(l.type)),y=[l,...null!==(u=l.chain)&&void 0!==u?u:[]],g=e.bitContentProcessor(a.BitContentLevel.Chain,r,n,null==c?void 0:c.chain,y);e.DEBUG_CHAIN_TAGS&&e.debugPrint("item lead TAGS",g);p.itemLead=g.itemLead}(e,0,r,s,l,p,u)};const i=r(2028),o=r(9917),n=r(8216),a=r(3029)},8216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.itemLeadTagContentProcessor=function(e,t,r,n,a,s,l){const{value:p}=s,u=new o.TextParser,c=i.StringUtils.trimmedString(p);l.itemLead||(l.itemLead=[]);const y=u.toAst(c);l.itemLead.push(y)};const i=r(9681),o=r(777)},5189:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.markChainContentProcessor=function(e,t,r,u,c,y,g,d){if(t===p.BitContentLevel.Chain)(0,l.markTagContentProcessor)(e,p.BitContentLevel.Chain,r,y,g);else{const t=function(e,t,r,l,u,c){var y;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("mark content",c);const g=o.Config.getTagConfigForTag(u,a.Tag.fromValue(c.type)),d=e.bitContentProcessor(p.BitContentLevel.Chain,r,l,u,[c]),f=e.bitContentProcessor(p.BitContentLevel.Chain,r,l,null==g?void 0:g.chain,c.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("mark TAGS",f);const{solution:m}=d,{mark:T}=f,h=i(f,["mark"]),b=Object.assign({type:n.BodyBitType.mark,solution:null!=m?m:"",mark:null!==(y=s.ArrayUtils.asSingle(T))&&void 0!==y?y:""},h);return b}(e,0,r,u,c,y);t&&d.push(t)}};const o=r(2028),n=r(4410),a=r(9917),s=r(6989),l=r(5980),p=r(3029)},3063:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.markConfigChainContentProcessor=function(e,t,r,p,u,c,y){var g;const{key:d}=c;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("mark content",c);const f=y.markConfig;if(!f)return;const m=n.Config.getTagConfigForTag(u,a.PropertyTag.fromValue(d)),T=e.bitContentProcessor(l.BitContentLevel.Chain,r,p,null==m?void 0:m.chain,c.chain),{mark:h}=T,b=i(T,["mark"]);e.DEBUG_CHAIN_TAGS&&e.debugPrint("mark TAGS",b);const B=o.Breakscape.unbreakscape(null!==(g=s.StringUtils.trimmedString(c.value))&&void 0!==g?g:"unknown"),v=Object.assign({mark:B,emphasis:"underline"},b);v&&f.push(v)};const o=r(7735),n=r(2028),a=r(166),s=r(9681),l=r(3029)},5980:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.markTagContentProcessor=function(e,t,r,o,n){const{value:a}=o;i.StringUtils.isString(a)&&(n.solution=a)};const i=r(9681)},21:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.personChainContentProcessor=function(e,t,r,s,l,p,u){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("person content",p);const c=e.bitContentProcessor(a.BitContentLevel.Chain,r,s,l,p.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("person TAGS",c);const{propertyTitle:y,resources:g}=c,d=i.Breakscape.unbreakscape(n.StringUtils.trimmedString(p.value)),f=n.StringUtils.trimmedString(y),m=function(e,t){let r;const i=[];if(t)for(const e of t.reverse())r||o.ResourceTag.image!==e.type?i.push(e):r=e.image;i.length>0&&(e.parser.excessResources=i,e.addWarning(`${i.length} excess resource(s) present in the [@person] chain.`));return r}(e,g),T={name:d,title:f,avatarImage:m};u.person=T};const i=r(7735),o=r(6149),n=r(9681),a=r(3029)},9647:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propertyContentProcessor=function(e,t,r,f,S,_,A){const{value:L}=_;let{key:I}=_;const N=t===K.BitContentLevel.Chain,F=o.Config.getTagConfigForTag(S,p.PropertyTag.fromValue(I)),E=F?F.configKey:void 0;if(I===p.PropertyTag.internalComment)return void(0,b.commentTagContentProcessor)(e,t,r,_,A);if(F){if(E===s.PropertyConfigKey.example)return void(0,T.exampleTagContentProcessor)(e,t,r,f,_,A);if(E===s.PropertyConfigKey.ratingLevelStart||E===s.PropertyConfigKey.ratingLevelEnd)return void(0,C.ratingLevelChainContentProcessor)(e,t,r,f,F.chain,_,A);if(E===s.PropertyConfigKey.technicalTerm)return void(0,k.technicalTermChainContentProcessor)(e,t,r,f,F.chain,_,A);if(E===s.PropertyConfigKey.servings)return void(0,x.servingsChainContentProcessor)(e,t,r,f,F.chain,_,A);if(E===s.PropertyConfigKey.person||E===s.PropertyConfigKey.partner)return void(0,v.personChainContentProcessor)(e,t,r,f,F.chain,_,A);if(E===s.PropertyConfigKey.imageSource)return void(0,h.imageSourceChainContentProcessor)(e,t,r,f,S,_,A);if(E===s.PropertyConfigKey.book)return void(0,m.bookChainContentProcessor)(e,t,r,f,F.chain,_,A);if(E===s.PropertyConfigKey.markConfig&&!N)return void(0,B.markConfigChainContentProcessor)(e,t,r,f,S,_,A);if(E===s.PropertyConfigKey.property_title&&N)I="propertyTitle";else if(E===s.PropertyConfigKey.imagePlaceholder)return void(0,P.propertyStyleResourceContentProcessor)(e,t,r,f,S,_,A,u.ResourceTag.image)}const R=(e,t,r,o)=>{if(r=(e=>{if(null!=e){if(o)switch(o.format){case l.PropertyFormat.trimmedString:return i.Breakscape.unbreakscape(d.StringUtils.isString(e)?d.StringUtils.trimmedString(e):void 0);case l.PropertyFormat.number:return g.NumberUtils.asNumber(i.Breakscape.unbreakscape(e));case l.PropertyFormat.boolean:return y.BooleanUtils.toBoolean(i.Breakscape.unbreakscape(e),!0);case l.PropertyFormat.invertedBoolean:return!y.BooleanUtils.toBoolean(i.Breakscape.unbreakscape(e),!0);case l.PropertyFormat.bitmarkMinusMinus:case l.PropertyFormat.bitmarkPlusPlus:return w.toAst(e,{textFormat:c.TextFormat.bitmarkMinusMinus})}return i.Breakscape.unbreakscape(e)}})(r),(null==o?void 0:o.astKey)&&(t=o.astKey),null==o?void 0:o.single)e[t]=r;else if(Object.prototype.hasOwnProperty.call(e,t)){const i=e[t];e[t]=[...i,r]}else e[t]=[r]};R(F?A:A.extraProperties,I,L,F);I===p.PropertyTag.tag_sampleSolution&&R(A,"__sampleSolutionAst",L,new n.PropertyTagConfig(a.ConfigKey.sampleSolution,p.PropertyTag.tag_sampleSolution,1,1,void 0,void 0,void 0,!0,l.PropertyFormat.bitmarkMinusMinus,void 0,void 0))};const i=r(7735),o=r(2028),n=r(1519),a=r(5591),s=r(9888),l=r(9727),p=r(166),u=r(6149),c=r(385),y=r(4078),g=r(8025),d=r(9681),f=r(777),m=r(3045),T=r(4091),h=r(8848),b=r(6991),B=r(3063),v=r(21),C=r(3967),P=r(6521),x=r(4953),k=r(4475),K=r(3029),w=new f.TextParser},3967:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ratingLevelChainContentProcessor=function(e,t,r,n,l,p,u){var c;const{key:y,value:g}=p;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("ratingLevel content",p);const d=e.bitContentProcessor(a.BitContentLevel.Chain,r,n,l,p.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("ratingLevel TAGS",d);const{label:f}=d,m={level:null!==(c=o.NumberUtils.asNumber(g))&&void 0!==c?c:0,label:f?s.toAst(f):void 0};switch(y){case i.PropertyTag.ratingLevelStart:u.ratingLevelStart=m;break;case i.PropertyTag.ratingLevelEnd:u.ratingLevelEnd=m}};const i=r(166),o=r(8025),n=r(777),a=r(3029),s=new n.TextParser},3990:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.referenceTagContentProcessor=function(e,t,r,n,a,s,l,p){const{value:u}=s,c=o.StringUtils.trimmedString(u);p?l.referenceEnd=i.Breakscape.unbreakscape(c):l.reference=i.Breakscape.unbreakscape(c)};const i=r(7735),o=r(9681)},6521:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.buildResources=function(e,t,r,i){var o,n;const p=[],u=[],c=l.ResourceTag.fromValue(r),y=a.Config.getBitResourcesConfig(t,c),g=y.resourceAttachmentAllowed,d=y.getCountsMin(),f=y.getCountsMax();if(i)for(const e of i.reverse()){let t=null!==(o=d.get(e.__typeAlias))&&void 0!==o?o:0,r=null!==(n=f.get(e.__typeAlias))&&void 0!==n?n:0;t=Math.max(0,t-1),r===s.Count.infinity?p.unshift(e):r>0?(p.unshift(e),r--):u.unshift(e),d.set(e.__typeAlias,t),f.set(e.__typeAlias,r)}if(!g&&r){const t=`Resource type [&${r}] is specified in the bit header, but no extra resource is allowed for this bit.`;e.addWarning(t)}else 0===p.length&&r&&e.addWarning(`Resource type [&${r}] is specified in the bit header, but no such a resource is present`);u.length>0&&(e.parser.excessResources=u);return p},t.resourceContentProcessor=function(e,t,r,o,s,c,y){const{type:g,key:d,value:f,chain:m}=c,T=y.resources;if(!T)return;const h=l.ResourceTag.fromValue(d);if(h){const t=a.Config.getTagConfigForTag(s,h),c=e.bitContentProcessor(p.BitContentLevel.Chain,r,o,null==t?void 0:t.chain,m),{posterImage:y}=c,g=i(c,["posterImage"]),d=y?u.resource(r,{type:l.ResourceTag.image,value:y}).image:void 0,b=u.resource(r,Object.assign({type:h,value:n.Breakscape.unbreakscape(f),posterImage:d},g));b&&T.push(b)}},t.propertyStyleResourceContentProcessor=function(e,t,r,o,s,c,y,g){var d;const{type:f,key:m,value:T,chain:h}=c;if(y.propertyStyleResources=null!==(d=y.propertyStyleResources)&&void 0!==d?d:{},g){const t=a.Config.getTagConfigForTag(s,g),c=e.bitContentProcessor(p.BitContentLevel.Chain,r,o,null==t?void 0:t.chain,h),{posterImage:d}=c,f=i(c,["posterImage"]),b=d?u.resource(r,{type:l.ResourceTag.image,value:d}).image:void 0,B=u.resource(r,Object.assign({type:g,value:n.Breakscape.unbreakscape(T),posterImage:b},f));B&&(y.propertyStyleResources[m]=B)}};const o=r(5533),n=r(7735),a=r(2028),s=r(3778),l=r(6149),p=r(3029),u=new o.ResourceBuilder},4953:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.servingsChainContentProcessor=function(e,t,r,n,a,s,l){var p;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("servings content",s);const u=e.bitContentProcessor(o.BitContentLevel.Chain,r,n,a,s.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("servings TAGS",u);const{unit:c,unitAbbr:y,decimalPlaces:g,disableCalculation:d,__hintString:f}=u,m={servings:null!==(p=i.NumberUtils.asNumber(s.value))&&void 0!==p?p:1,unit:c,unitAbbr:y,decimalPlaces:null!=g?g:1,disableCalculation:d,hint:f};l.servings=m};const i=r(8025),o=r(3029)},4475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.technicalTermChainContentProcessor=function(e,t,r,a,s,l,p){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("technicalTerm content",l);const u=e.bitContentProcessor(n.BitContentLevel.Chain,r,a,s,l.chain);e.DEBUG_CHAIN_TAGS&&e.debugPrint("technicalTerm TAGS",u);const{lang:c}=u,y={technicalTerm:i.Breakscape.unbreakscape(o.StringUtils.trimmedString(l.value)),lang:c};p.technicalTerm=y};const i=r(7735),o=r(9681),n=r(3029)},7667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.titleTagContentProcessor=function(e,t,r,i,o,s,l){const{value:p}=s,u=l.title;if(!u)return;const c=p,y=n.StringUtils.trimmedString(c.title),g=c.level.length;u[g]={titleAst:a.toAst(null!=y?y:""),titleString:null!=y?y:""}},t.buildTitles=function(e,t,r){var n,a,s,l,p,u,c,y,g,d;if(r=null!=r?r:[],i.Config.isOfBitType(t,o.BitType.chapter)){let e;return r.length>0&&(e=r[r.length-1]),{title:null!==(n=null==e?void 0:e.titleAst)&&void 0!==n?n:[],titleString:null!==(a=null==e?void 0:e.titleString)&&void 0!==a?a:"",level:r.length>0?r.length-1:void 0}}return{title:null!==(l=null===(s=r[1])||void 0===s?void 0:s.titleAst)&&void 0!==l?l:void 0,titleString:null!==(u=null===(p=r[1])||void 0===p?void 0:p.titleString)&&void 0!==u?u:void 0,subtitle:null!==(y=null===(c=r[2])||void 0===c?void 0:c.titleAst)&&void 0!==y?y:void 0,subtitleString:null!==(d=null===(g=r[2])||void 0===g?void 0:g.titleString)&&void 0!==d?d:void 0}};const i=r(2028),o=r(5854),n=r(9681),a=new(r(777).TextParser)},9885:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.trueFalseChainContentProcessor=function(e,t,r,p,u,c,y,g){t===l.BitContentLevel.Chain?(0,s.trueFalseTagContentProcessor)(e,l.BitContentLevel.Chain,r,p,c,y):function(e,t,r,s,p,u,c,y){var g;const d=[u,...null!==(g=u.chain)&&void 0!==g?g:[]],f=c.statements,m=c.choices,T=c.responses;if(!(f&&m&&T&&y))return;if(o.Config.isOfBitType(r,n.BitType.trueFalse1))c.statement=function(e,t,r,a,s){if(!o.Config.isOfBitType(t,n.BitType.trueFalse1))return;e.DEBUG_CHAIN_CONTENT&&e.debugPrint("trueFalse V1 content (statement)",s);const p=e.bitContentProcessor(l.BitContentLevel.Chain,t,r,a,s),{trueFalse:u}=p,c=i(p,["trueFalse"]);e.DEBUG_CHAIN_TAGS&&e.debugPrint("trueFalse V1 tags (statement)",c);let y,g;u&&u.length>0&&(g=u[0]);if(g){const{statement:e}=c,t=i(c,["statement"]);y=Object.assign(Object.assign(Object.assign({},g),{statement:g.text}),t)}return y}(e,r,s,p,d);else if(o.Config.isOfBitType(r,[n.BitType.trueFalse,n.BitType.multipleChoice,n.BitType.multipleChoice1,n.BitType.multipleResponse,n.BitType.multipleResponse1])){const t=function(e,t,r,a,s){const p=o.Config.isOfBitType(t,n.BitType.trueFalse),u=o.Config.isOfBitType(t,[n.BitType.multipleChoice,n.BitType.multipleChoice1]),c=o.Config.isOfBitType(t,[n.BitType.multipleResponse,n.BitType.multipleResponse1]);if(!p&&!u&&!c)return{};const y=[],g=[],d=[],f=e.splitBitContent(s,[l.TypeKey.True,l.TypeKey.False]);e.DEBUG_CHAIN_CONTENT&&e.debugPrint("trueFalse V1 content (choices/responses)",f);for(const o of f){const n=e.bitContentProcessor(l.BitContentLevel.Chain,t,r,a,o),{trueFalse:s}=n,f=i(n,["trueFalse"]);let m;if(e.DEBUG_CHAIN_TAGS&&e.debugPrint("trueFalse V1 tags (choices/responses)",f),s&&s.length>0&&(m=s[0]),m)if(p){const{statement:e}=f,t=i(f,["statement"]),r=Object.assign(Object.assign(Object.assign({},m),{statement:m.text}),t);r&&y.push(r)}else if(u){const e=Object.assign(Object.assign(Object.assign({},m),{choice:m.text}),f);e&&g.push(e)}else if(c){const e=Object.assign(Object.assign(Object.assign({},m),{response:m.text}),f);e&&d.push(e)}}const m={};p?m.statements=y:u?m.choices=g:c&&(m.responses=d);return m}(e,r,s,p,d);t.statements&&f.push(...t.statements),t.choices&&m.push(...t.choices),t.responses&&T.push(...t.responses)}else if(o.Config.isOfBitType(r,n.BitType.highlightText)){const t=function(e,t,r,o,n){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("highlight content",n);const s=e.bitContentProcessor(l.BitContentLevel.Chain,t,r,o,n),{trueFalse:p}=s,u=i(s,["trueFalse"]);e.DEBUG_CHAIN_TAGS&&e.debugPrint("highlight TAGS",Object.assign({trueFalse:p},u));const c=[];if(p)for(const e of p){const t=Object.assign(Object.assign({},e),{isHighlighted:!1});t&&c.push(t)}const y=Object.assign({type:a.BodyBitType.highlight,texts:c},u);return y}(e,r,s,p,d);t&&y.push(t)}else{const t=function(e,t,r,o,n){e.DEBUG_CHAIN_CONTENT&&e.debugPrint("select content",n);const s=e.bitContentProcessor(l.BitContentLevel.Chain,t,r,o,n),{trueFalse:p}=s,u=i(s,["trueFalse"]);e.DEBUG_CHAIN_TAGS&&e.debugPrint("select TAGS",Object.assign({trueFalse:p},u));const c=[];if(p)for(const e of p){const t=e;t&&c.push(t)}const y=Object.assign({type:a.BodyBitType.select,options:c},u);return y}(e,r,s,p,d);t&&y.push(t)}}(e,0,r,p,u,c,y,g)};const o=r(2028),n=r(5854),a=r(4410),s=r(4020),l=r(3029)},4020:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trueFalseTagContentProcessor=function(e,t,r,a,s,l){const{type:p,value:u}=s,c=l.trueFalse;if(!c)return;const y=i.Breakscape.unbreakscape(o.StringUtils.trimmedString(u));c.push({text:y,isCorrect:p===n.TypeKey.True,__isDefaultExample:!1})};const i=r(7735),o=r(9681),n=r(3029)},5663:function(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonParser=void 0;const o=r(5809),n=r(2028),a=r(5854),s=r(6149),l=r(385),p=r(9681),u=new o.Builder;t.JsonParser=class{toAst(e){const t=this.preprocessJson(e),r=[];for(const e of t){const{bit:t,parser:i}=e,o=this.bitToAst(t,null==i?void 0:i.internalComments);o&&r.push(o)}const i=r.length>0?{bits:r}:{};return u.buildBitmark(i)}preprocessJson(e){const t=[];if(p.StringUtils.isString(e)){const t=e;try{e=JSON.parse(t)}catch(e){return[]}}const r=e=>{if(this.isBitWrapper(e)){const r=e;t.push(r)}else if(this.isBit(e)){const r=e;t.push(this.bitToBitWrapper(r))}};if(Array.isArray(e))for(const t of e)r(t);else r(e);return t}isBitWrapper(e){if(Object.prototype.hasOwnProperty.call(e,"bit")){const t=e;return this.isBit(t.bit)}return!1}isBit(e){if(Object.prototype.hasOwnProperty.call(e,"type")){const t=e;return n.Config.getBitType(t.type)!==a.BitType._error}return!1}bitToBitWrapper(e){return{bit:e}}bitToAst(e,t){var r,o,s,p;const{statement:c,product:y,productVideo:g,reference:d}=e,f=i(e,["statement","product","productVideo","reference"]),m=e.type===a.BitType._comment&&void 0!==e.originalType,T=n.Config.getBitType(m?e.originalType:e.type),h=n.Config.getBitConfig(T);null!==(r=l.TextFormat.fromValue(e.format))&&void 0!==r||h.textFormatDefault;return u.buildBit(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),{bitType:T,bitLevel:Math.max(Math.min(null!==(o=e.bitLevel)&&void 0!==o?o:1,n.Config.bitLevelMax),n.Config.bitLevelMin),textFormat:e.format,resourceType:this.getResourceType(e.resource),isCommented:m,internalComment:t,productList:y,productVideoList:g}),this.processReference(d)),this.parseExample(e.example)),{person:null!==(s=e.partner)&&void 0!==s?s:e.person,markConfig:e.marks,resources:this.processResources(T,e.resource,e.images,e.logos),body:this.processBody(e.body,e.placeholders),flashcards:e.cards,statements:this.processStatements(c,e.isCorrect,e.statements,e.example),responses:this.processResponses(T,e.responses),botResponses:this.processBotResponse(T,e.responses),cardBits:this.processListItems(null!==(p=e.listItems)&&void 0!==p?p:e.sections,e.placeholders),footer:this.processFooter(e.footer)}))}processStatements(e,t,r,i){const o=[];if(e){const r=Object.assign({statement:null!=e?e:"",isCorrect:null!=t&&t},this.parseExample(i));r&&o.push(r)}if(Array.isArray(r))for(const e of r)o.push(e);if(0!==o.length)return o}processResponses(e,t){if(!n.Config.isOfBitType(e,a.BitType.botActionResponse)&&Array.isArray(t))return t}processBotResponse(e,t){if(n.Config.isOfBitType(e,a.BitType.botActionResponse)&&Array.isArray(t))return t}processListItems(e,t){const r=[];if(Array.isArray(e))for(const i of e){const e=Object.assign({},i);e.body&&(e.body={body:e.body,placeholders:t}),e&&r.push(e)}if(0!==r.length)return r}getResourceType(e){if(e){return s.ResourceTag.fromValue(e.type)}}processResources(e,t,r,i){const o=[];if(t&&o.push(t),n.Config.isOfBitType(e,[a.BitType.prototypeImages])&&Array.isArray(r))for(const e of r)e&&o.push(e);if(n.Config.isOfBitType(e,[a.BitType.imagesLogoGrave])&&Array.isArray(i))for(const e of i)e&&o.push(e);return o}processBody(e,t){return{body:e,placeholders:t}}processFooter(e){if(e)return{footer:e}}processReference(e){return Array.isArray(e)&&e.length>0?{reference:void 0,referenceProperty:e}:{reference:e,referenceProperty:void 0}}parseExample(e){if(null==e)return;if(!0===e)return{example:!0};if(!1===e)return{example:!1};const t=p.StringUtils.isString(e)||Array.isArray(e)?e:void 0;return t?{example:t}:{example:!!e}}}},777:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextParser=void 0;const i=r(385),o=r(9554),n=r(9681),a=r(2220),s=new RegExp("^\\^\\n","gm"),l=new RegExp("\\n\\^\\n","gm"),p=new RegExp("\\n\\^$","gm");t.TextParser=class{version(){return(0,a.parse)("",{startRule:"version"})}preprocessAst(e){if(n.StringUtils.isString(e)){const t=e;try{e=JSON.parse(t)}catch(e){return}}if(this.isAst(e))return e}isAst(e){if(Array.isArray(e)){if(0===e.length)return!0;if(Object.prototype.hasOwnProperty.call(e[0],"type"))return!0}return!1}toAst(e,t){var r;if(Array.isArray(e))return e;let o=null!==(r=e)&&void 0!==r?r:"";if(!o)return[];const n=Object.assign({},t);n.textFormat||(n.textFormat=i.TextFormat.bitmarkMinusMinus);const u=n.textFormat===i.TextFormat.bitmarkPlusPlus?"bitmarkPlusPlus":"bitmarkMinusMinus";return o=o.replace(s,"\n").replace(p,"\n").replace(l,"\n\n"),o=o.trim(),(0,a.parse)(o,{startRule:u})}extractBodyBits(e){if(!Array.isArray(e))return[];const t=[],r=e;for(const e of r)switch(e.type){case o.TextNodeType.gap:case o.TextNodeType.select:case o.TextNodeType.highlight:case o.TextNodeType.mark:t.push(e);break;default:{const r=this.extractBodyBits(e.content);for(const e of r)t.push(e)}}return t}walkBodyBits(e,t){if(!Array.isArray(e))return;const r=e;for(let e=0;e<r.length;e++){const i=r[e];switch(i.type){case o.TextNodeType.gap:case o.TextNodeType.select:case o.TextNodeType.highlight:case o.TextNodeType.mark:t(r,e,i);break;default:this.walkBodyBits(i.content,t)}}}}},2220:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const i=r(8321).parse;t.parse=i},6989:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0;const r=new class{asArray(e){if(null!=e)return Array.isArray(e)?e:[e]}asSingle(e,t){if(null!=e)return Array.isArray(e)?e.length>0?t?e[e.length-1]:e[0]:void 0:e}};t.ArrayUtils=r},8903:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitUtils=void 0;const i=r(777),o=r(4078),n=new i.TextParser;const a=new class{fillStringExample(e,t,r,i){if(e){Array.isArray(e)||(e=[e]);for(const o of e)if(!o.isExample&&(t?(o.example=o.__defaultExample,o.isExample=!0):o.example=r?n.toAst(r):void 0,i))break}}fillBooleanExample(e,t,r,i){if(e){Array.isArray(e)||(e=[e]);for(const n of e)if(!n.isExample&&(!i||n.isCorrect)&&(t?(n.example=n.__defaultExample,n.isExample=!0):n.example=o.BooleanUtils.toBoolean(r),i))break}}};t.BitUtils=a},4078:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanUtils=void 0;const r=new class{isBoolean(e){return!0===e||!1===e}isBooleanString(e){return!!this.isBoolean(e)||("true"===e||"false"===e)}toBoolean(e,t){return t?!1!==e&&"false"!==e:!0===e||"true"===e}};t.BooleanUtils=r},8025:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberUtils=void 0;const r=new class{asNumber(e,t){if(null==e)return null!=t?t:void 0;const r=+e;return Number.isNaN(r)||!isFinite(r)?null!=t?t:void 0:r}isNumeric(e){if(null==e)return!1;const t=+e;return!Number.isNaN(t)&&isFinite(t)}};t.NumberUtils=r},955:function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUtils=void 0;const o=i(r(7678));const n=new class{isFunction(e){return"[object Function]"===Object.prototype.toString.call(e)}isArray(e){return Array.isArray(e)}isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}isValue(e){return!this.isObject(e)&&!this.isArray(e)}flatMapPath(e,t){if(!e)return[];if(!t)return[];Array.isArray(t)||(t=[t]);const r=e,i=t.shift();if(null==i)return r;const o=r[i];return o?Array.isArray(o)?o.flatMap((e=>this.flatMapPath(e,t.slice()))):[this.flatMapPath(o,t)].flat():[]}orderProperties(e,t){const r=e,i=Object.assign({},r);for(const e of Object.keys(r))delete r[e];for(const e of t)Object.prototype.hasOwnProperty.call(i,e)&&(r[e]=i[e])}removeUndefinedProperties(e,t){const r=e;for(const[e,i]of Object.entries(r))t&&t.indexOf(e)>=0||null==i&&delete r[e]}removeFalseProperties(e,t){const r=e;for(const[e,i]of Object.entries(r))t&&t.indexOf(e)>=0||!1===i&&delete r[e]}removeEmptyStringProperties(e,t){const r=e;for(const[e,i]of Object.entries(r))t&&t.indexOf(e)>=0||""===i&&delete r[e]}removeEmptyArrayProperties(e,t){const r=e;for(const[e,i]of Object.entries(r))t&&t.indexOf(e)>=0||Array.isArray(i)&&0===i.length&&delete r[e]}removeEmptyObjectProperties(e,t){const r=e;for(const[e,i]of Object.entries(r))t&&t.indexOf(e)>=0||this.isObject(i)&&0===Object.keys(i).length&&delete r[e]}removeUnwantedProperties(e,t){(t=Object.assign({},t)).ignoreAllUndefined||this.removeUndefinedProperties(e,t.ignoreUndefined),t.ignoreAllFalse||this.removeFalseProperties(e,t.ignoreFalse),t.ignoreAllEmptyString||this.removeEmptyStringProperties(e,t.ignoreEmptyString),t.ignoreAllEmptyArrays||this.removeEmptyArrayProperties(e,t.ignoreEmptyArrays),t.ignoreAllEmptyObjects||this.removeEmptyObjectProperties(e,t.ignoreEmptyObjects)}extractSingleValue(e,t){if(!e)return;const r=e;if(null==r[t])return;let i=r[t];if(Array.isArray(i)){if(0===i.length)return;i=i[i.length-1]}return i}deepMerge(...e){return function e(...t){function r(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function i(t,i){for(const[n,a]of Object.entries(i)){const i=r(a);void 0!==t[n]&&r(t[n])===i&&["array","object"].includes(i)?t[n]=e(t[n],a):t[n]=(0,o.default)(a)}}let n=(0,o.default)(t.shift());for(const e of t){const t=r(e);r(n)===t?"array"===t?n=[...n,...(0,o.default)(e)]:"object"===t?i(n,e):n=e:n=(0,o.default)(e)}return n}(...e)}};t.ObjectUtils=n},9681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;const r=new class{isString(e){return"string"==typeof e||e instanceof String}string(e){return e?`${e}`:""}trimmedString(e){return this.string(e).trim()}countOccurrences(e,t){return e.split(t).length-1}countOccurrencesAtStart(e,t){let r=0;for(;e.startsWith(t);)r++,e=e.substring(t.length);return r}countOccurrencesAtEnd(e,t){let r=0;for(;e.endsWith(t);)r++,e=e.substring(0,e.length-t.length);return r}splitPlaceholders(e,t){let r=[e];const i=(e,t)=>{const r=[];for(const i of e){const e=i.split(t);for(let i=0,o=e.length;i<o;i++){const n=e[i],a=i===o-1;r.push(n),a||r.push(t)}}return r};for(const e of t)r=i(r,e);return r}firstLine(e,t){const r=e;if(null==t&&(t=e.length),t<1||null==e||e.length<=t)return r;const i=e.split("\n");return i.length>0?i[0].substring(0,t):r}wordWrap(e,t){const r=[];if(t<1||null==e||e.length<=t)return r;const i=e.length,o=i-t;let n,a=0;for(;a<o;){let i;const o=a+t,s=e.indexOf("\n",a);if(s>-1&&s>a&&s<o){i=s-a,n=e.substr(a,i),a=a+i+1,r.push(n);continue}const l=e.lastIndexOf(" ",o);let p=0;l>-1&&l!=a-1?(i=l-a,i>0&&(p=a+i+1)):(i=t,p=a+t),n=e.substr(a,i),a=p,r.push(n.trim())}return a<i&&(n=e.substr(a),r.push(n)),r}};t.StringUtils=r},201:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtils=void 0;const r=new class{fileExtensionFromUrl(e){let t;if(e)try{const r=new URL(e).pathname.split(".");r.length>1&&(t=r[r.length-1])}catch(e){}return t}domainFromUrl(e){let t;if(e)try{t=new URL(e).hostname}catch(e){}return t}};t.UrlUtils=r},6936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.initEnv=t.env=void 0;const i=r(6278),o=r(9561),n=r(2287),a=r(5659);const s=new class{constructor(){Object.defineProperty(this,"userAgentInfo",{value:(0,a.parseUserAgent)(),enumerable:!1}),this.bootTimestamp=Date.now(),this.app="",this.appVersion=n.EMPTY_VERSION,this.environment=this.getEnvironment(),this.environmentVersion=this.getEnvironmentVersion(),this.isBrowser=this.getIsBrowser(),this.isNode=this.environment===i.Environment.node,this.isCI=this.getIsCI(),this.NODE_ENV=this.getNodeEnv(),this.os=this.getOs(),this.osVersion=this.getOsVersion()}init(e,t){this.app=e,this.appVersion=this.parseMMBVersion(t)}get upTimestamp(){return Date.now()-this.bootTimestamp}getEnvironment(){return this.userAgentInfo?this.userAgentInfo.browser:"undefined"!=typeof process&&void 0!==process.versions&&process.versions.node?i.Environment.node:i.Environment.unknown}getEnvironmentVersion(){return this.userAgentInfo?this.parseMMBVersion(this.userAgentInfo.browserVersion):"undefined"!=typeof process?this.parseMMBVersion(process.version):n.EMPTY_VERSION}getOs(){return this.userAgentInfo?this.userAgentInfo.os:("undefined"!=typeof process&&void 0!==process.versions&&process.versions.node,o.Os.unknown)}getOsVersion(){return this.userAgentInfo?this.parseMMBVersion(this.userAgentInfo.osVersion):"undefined"!=typeof process?this.parseMMBVersion(""):n.EMPTY_VERSION}getIsBrowser(){return!("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof navigator||!navigator.userAgent)}getIsCI(){return!("undefined"==typeof process||!process.env||!process.env.CI)}getNodeEnv(){return"undefined"!=typeof process&&process.env?"production":""}parseMMBVersion(e){if(!e)return n.EMPTY_VERSION;e.startsWith("v")&&(e=e.substring(1));const t=e.split(".",1e3);let r="",i="",o="",a="";for(let e=0,n=t.length;e<n;e++){const n=t[e];0===e?r=n:1===e?i=n:2===e?a=n:3===e&&(o=n)}return{full:e,major:r,minor:i,patch:a,build:o}}};t.env=s;const l=s.init.bind(s);t.initEnv=l},6278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0;const i=(0,r(4718).superenum)({unknown:"",node:"node",chrome:"chrome",safari:"safari",firefox:"firefox",edge:"edge",ie:"ie"});t.Environment=i},9561:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Os=void 0;const i=(0,r(4718).superenum)({unknown:"",macos:"macos",windows:"windows",linux:"linux",android:"android",ios:"ios"});t.Os=i},2287:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_VERSION=void 0;t.EMPTY_VERSION={full:"",major:"",minor:"",patch:"",build:""}},5659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUserAgent=function(){if("undefined"==typeof window||!window.navigator||!window.navigator.userAgent)return;const e={browser:i.Environment.unknown,os:o.Os.unknown},t=function(e){const t=e.toLowerCase().split(new RegExp("[ /,;()]","g")).reduce(((e,t)=>(t&&e.push(t),e)),[]),r={keys:new Set,versions:{}};let i="";for(let e=0,o=t.length;e<o;e++){const o=t[e];let n=!1;for(let e=0;e<=9;e++)if(o.startsWith(`${e}`)){n=!0;break}n?r.versions[i]=o.replace("_","."):r.keys.add(o),i=o}return r}(window.navigator.userAgent),r=t.keys.has("firefox"),n=t.keys.has("chrome"),a=t.keys.has("chromium"),s=t.keys.has("safari"),l=t.keys.has("macintosh"),p=n,u=r,c=l;!s||n||a?p?(e.browser=i.Environment.chrome,e.browserVersion=t.versions.chrome):u&&(e.browser=i.Environment.firefox,e.browserVersion=t.versions.firefox):(e.browser=i.Environment.safari,e.browserVersion=t.versions.version);c&&(e.os=o.Os.macos,e.osVersion=t.versions.x);return e};const i=r(6278),o=r(9561)},5005:(e,t,r)=>{const{VOID:i,PRIMITIVE:o,ARRAY:n,OBJECT:a,DATE:s,REGEXP:l,MAP:p,SET:u,ERROR:c,BIGINT:y}=r(1731),g="object"==typeof self?self:globalThis;t.deserialize=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),d=f=>{if(e.has(f))return e.get(f);const[m,T]=t[f];switch(m){case o:case i:return r(T,f);case n:{const e=r([],f);for(const t of T)e.push(d(t));return e}case a:{const e=r({},f);for(const[t,r]of T)e[d(t)]=d(r);return e}case s:return r(new Date(T),f);case l:{const{source:e,flags:t}=T;return r(new RegExp(e,t),f)}case p:{const e=r(new Map,f);for(const[t,r]of T)e.set(d(t),d(r));return e}case u:{const e=r(new Set,f);for(const t of T)e.add(d(t));return e}case c:{const{name:e,message:t}=T;return r(new g[e](t),f)}case y:return r(BigInt(T),f);case"BigInt":return r(Object(BigInt(T)),f)}return r(new g[m](T),f)};return d})(new Map,e)(0)},7678:(e,t,r)=>{const{deserialize:i}=r(5005),{serialize:o}=r(5416);Object.defineProperty(t,"__esModule",{value:!0}).default="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?i(o(e,t)):structuredClone(e):(e,t)=>i(o(e,t)),t.deserialize=i,t.serialize=o},5416:(e,t,r)=>{const{VOID:i,PRIMITIVE:o,ARRAY:n,OBJECT:a,DATE:s,REGEXP:l,MAP:p,SET:u,ERROR:c,BIGINT:y}=r(1731),g="",{toString:d}={},{keys:f}=Object,m=e=>{const t=typeof e;if("object"!==t||!e)return[o,t];const r=d.call(e).slice(8,-1);switch(r){case"Array":return[n,g];case"Object":return[a,g];case"Date":return[s,g];case"RegExp":return[l,g];case"Map":return[p,g];case"Set":return[u,g]}return r.includes("Array")?[n,r]:r.includes("Error")?[c,r]:[a,r]},T=([e,t])=>e===o&&("function"===t||"symbol"===t);t.serialize=(e,{json:t,lossy:r}={})=>{const c=[];return((e,t,r,c)=>{const g=(e,t)=>{const i=c.push(e)-1;return r.set(t,i),i},d=c=>{if(r.has(c))return r.get(c);let[h,b]=m(c);switch(h){case o:{let t=c;switch(b){case"bigint":h=y,t=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+b);t=null;break;case"undefined":return g([i],c)}return g([h,t],c)}case n:{if(b)return g([b,[...c]],c);const e=[],t=g([h,e],c);for(const t of c)e.push(d(t));return t}case a:{if(b)switch(b){case"BigInt":return g([b,c.toString()],c);case"Boolean":case"Number":case"String":return g([b,c.valueOf()],c)}if(t&&"toJSON"in c)return d(c.toJSON());const r=[],i=g([h,r],c);for(const t of f(c))!e&&T(m(c[t]))||r.push([d(t),d(c[t])]);return i}case s:return g([h,c.toISOString()],c);case l:{const{source:e,flags:t}=c;return g([h,{source:e,flags:t}],c)}case p:{const t=[],r=g([h,t],c);for(const[r,i]of c)(e||!T(m(r))&&!T(m(i)))&&t.push([d(r),d(i)]);return r}case u:{const t=[],r=g([h,t],c);for(const r of c)!e&&T(m(r))||t.push(d(r));return r}}const{message:B}=c;return g([h,{name:b,message:B}],c)};return d})(!(t||r),!!t,new Map,c)(e),c}},1731:(e,t)=>{t.VOID=-1;t.PRIMITIVE=0;t.ARRAY=1;t.OBJECT=2;t.DATE=3;t.REGEXP=4;t.MAP=5;t.SET=6;t.ERROR=7;t.BIGINT=8}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,r),n.exports}r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.StreamWriter=e.FileWriter=e.BitmarkFileGenerator=e.JsonFileGenerator=e.bitmarkTextParse=e.InfoFormat=e.InfoType=e.CardSetVersion=e.BitmarkVersion=e.BitmarkParserType=e.NodeType=e.ResourceTag=e.TextFormat=e.BitType=e.StringWriter=e.BitmarkStringGenerator=e.BitmarkGenerator=e.BitmarkParser=e.JsonStringGenerator=e.JsonGenerator=e.JsonParser=e.Ast=e.ResourceBuilder=e.Builder=e.Output=e.Input=e.BitmarkParserGenerator=void 0;const t=r(1412);var o=r(1791);Object.defineProperty(e,"BitmarkParserGenerator",{enumerable:!0,get:function(){return o.BitmarkParserGenerator}}),Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return o.Input}}),Object.defineProperty(e,"Output",{enumerable:!0,get:function(){return o.Output}});var n=r(5809);Object.defineProperty(e,"Builder",{enumerable:!0,get:function(){return n.Builder}});var a=r(5533);Object.defineProperty(e,"ResourceBuilder",{enumerable:!0,get:function(){return a.ResourceBuilder}});var s=r(5126);Object.defineProperty(e,"Ast",{enumerable:!0,get:function(){return s.Ast}});var l=r(5663);Object.defineProperty(e,"JsonParser",{enumerable:!0,get:function(){return l.JsonParser}});var p=r(2497);Object.defineProperty(e,"JsonGenerator",{enumerable:!0,get:function(){return p.JsonGenerator}});var u=r(98);Object.defineProperty(e,"JsonStringGenerator",{enumerable:!0,get:function(){return u.JsonStringGenerator}});var c=r(5633);Object.defineProperty(e,"BitmarkParser",{enumerable:!0,get:function(){return c.BitmarkParser}});var y=r(5087);Object.defineProperty(e,"BitmarkGenerator",{enumerable:!0,get:function(){return y.BitmarkGenerator}});var g=r(3968);Object.defineProperty(e,"BitmarkStringGenerator",{enumerable:!0,get:function(){return g.BitmarkStringGenerator}});var d=r(6772);Object.defineProperty(e,"StringWriter",{enumerable:!0,get:function(){return d.StringWriter}});var f=r(5854);Object.defineProperty(e,"BitType",{enumerable:!0,get:function(){return f.BitType}});var m=r(385);Object.defineProperty(e,"TextFormat",{enumerable:!0,get:function(){return m.TextFormat}});var T=r(6149);Object.defineProperty(e,"ResourceTag",{enumerable:!0,get:function(){return T.ResourceTag}});var h=r(126);Object.defineProperty(e,"NodeType",{enumerable:!0,get:function(){return h.NodeType}});var b=r(8588);Object.defineProperty(e,"BitmarkParserType",{enumerable:!0,get:function(){return b.BitmarkParserType}});var B=r(3811);Object.defineProperty(e,"BitmarkVersion",{enumerable:!0,get:function(){return B.BitmarkVersion}});var v=r(1163);Object.defineProperty(e,"CardSetVersion",{enumerable:!0,get:function(){return v.CardSetVersion}});var C=r(486);Object.defineProperty(e,"InfoType",{enumerable:!0,get:function(){return C.InfoType}});var P=r(3069);Object.defineProperty(e,"InfoFormat",{enumerable:!0,get:function(){return P.InfoFormat}});var x=r(2220);Object.defineProperty(e,"bitmarkTextParse",{enumerable:!0,get:function(){return x.parse}});(0,t.init)()})(),i})()));
|