@keymanapp/common-types 18.0.41-alpha → 18.0.46-alpha
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/build/src/consts/virtual-key-constants.d.ts +191 -191
- package/build/src/consts/virtual-key-constants.js +221 -221
- package/build/src/consts/virtual-key-constants.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts +5 -5
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js +72 -72
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts +28 -28
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js +120 -120
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts +95 -95
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.js +52 -52
- package/build/src/kmx/element-string.d.ts +23 -23
- package/build/src/kmx/element-string.js +125 -125
- package/build/src/kmx/element-string.js.map +1 -1
- package/build/src/kmx/keyman-targets.d.ts +20 -20
- package/build/src/kmx/keyman-targets.js +79 -79
- package/build/src/kmx/keyman-targets.js.map +1 -1
- package/build/src/kmx/kmx-builder.d.ts +32 -32
- package/build/src/kmx/kmx-builder.js +189 -189
- package/build/src/kmx/kmx-builder.js.map +1 -1
- package/build/src/kmx/kmx-file-reader.d.ts +13 -13
- package/build/src/kmx/kmx-file-reader.js +134 -134
- package/build/src/kmx/kmx-file-reader.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-disp.d.ts +18 -18
- package/build/src/kmx/kmx-plus-builder/build-disp.js +27 -27
- package/build/src/kmx/kmx-plus-builder/build-disp.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-elem.d.ts +28 -28
- package/build/src/kmx/kmx-plus-builder/build-elem.js +89 -89
- package/build/src/kmx/kmx-plus-builder/build-elem.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts +56 -56
- package/build/src/kmx/kmx-plus-builder/build-keys.js +107 -107
- package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts +53 -53
- package/build/src/kmx/kmx-plus-builder/build-layr.js +101 -101
- package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-list.d.ts +35 -35
- package/build/src/kmx/kmx-plus-builder/build-list.js +66 -66
- package/build/src/kmx/kmx-plus-builder/build-list.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-loca.d.ts +11 -11
- package/build/src/kmx/kmx-plus-builder/build-loca.js +21 -21
- package/build/src/kmx/kmx-plus-builder/build-loca.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts +16 -16
- package/build/src/kmx/kmx-plus-builder/build-meta.js +20 -20
- package/build/src/kmx/kmx-plus-builder/build-sect.d.ts +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-strs.d.ts +22 -22
- package/build/src/kmx/kmx-plus-builder/build-strs.js +46 -46
- package/build/src/kmx/kmx-plus-builder/build-strs.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-tran.d.ts +32 -32
- package/build/src/kmx/kmx-plus-builder/build-tran.js +69 -69
- package/build/src/kmx/kmx-plus-builder/build-tran.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-uset.d.ts +30 -30
- package/build/src/kmx/kmx-plus-builder/build-uset.js +60 -60
- package/build/src/kmx/kmx-plus-builder/build-uset.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-vars.d.ts +21 -21
- package/build/src/kmx/kmx-plus-builder/build-vars.js +48 -48
- package/build/src/kmx/kmx-plus-builder/build-vars.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/builder-section.d.ts +9 -9
- package/build/src/kmx/kmx-plus-builder/builder-section.js +2 -2
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +42 -42
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +137 -137
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
- package/build/src/kmx/kmx-plus.d.ts +322 -322
- package/build/src/kmx/kmx-plus.js +830 -830
- package/build/src/kmx/kmx-plus.js.map +1 -1
- package/build/src/kmx/kmx.d.ts +233 -233
- package/build/src/kmx/kmx.js +302 -302
- package/build/src/kmx/kmx.js.map +1 -1
- package/build/src/kmx/string-list.d.ts +35 -35
- package/build/src/kmx/string-list.js +88 -88
- package/build/src/kmx/string-list.js.map +1 -1
- package/build/src/kpj/keyman-developer-project.d.ts +78 -78
- package/build/src/kpj/keyman-developer-project.js +195 -195
- package/build/src/kpj/keyman-developer-project.js.map +1 -1
- package/build/src/kpj/kpj-file-reader.d.ts +18 -18
- package/build/src/kpj/kpj-file-reader.js +119 -119
- package/build/src/kpj/kpj-file-reader.js.map +1 -1
- package/build/src/kpj/kpj-file.d.ts +39 -39
- package/build/src/kpj/kpj-file.js +10 -10
- package/build/src/kvk/kvk-file-reader.d.ts +4 -4
- package/build/src/kvk/kvk-file-reader.js +37 -37
- package/build/src/kvk/kvk-file-reader.js.map +1 -1
- package/build/src/kvk/kvk-file-writer.d.ts +19 -19
- package/build/src/kvk/kvk-file-writer.js +77 -77
- package/build/src/kvk/kvk-file-writer.js.map +1 -1
- package/build/src/kvk/kvk-file.d.ts +66 -66
- package/build/src/kvk/kvk-file.d.ts.map +1 -1
- package/build/src/kvk/kvk-file.js +90 -90
- package/build/src/kvk/kvk-file.js.map +1 -1
- package/build/src/kvk/kvks-file-reader.d.ts +23 -23
- package/build/src/kvk/kvks-file-reader.js +175 -175
- package/build/src/kvk/kvks-file-reader.js.map +1 -1
- package/build/src/kvk/kvks-file-writer.d.ts +6 -6
- package/build/src/kvk/kvks-file-writer.js +106 -106
- package/build/src/kvk/kvks-file-writer.js.map +1 -1
- package/build/src/kvk/kvks-file.d.ts +43 -43
- package/build/src/kvk/kvks-file.js +9 -9
- package/build/src/kvk/visual-keyboard.d.ts +44 -44
- package/build/src/kvk/visual-keyboard.js +75 -75
- package/build/src/kvk/visual-keyboard.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts +60 -60
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js +19 -19
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +95 -95
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +409 -409
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +170 -170
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js +55 -55
- package/build/src/ldml-keyboard/pattern-parser.d.ts +201 -201
- package/build/src/ldml-keyboard/pattern-parser.js +490 -490
- package/build/src/ldml-keyboard/pattern-parser.js.map +1 -1
- package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts +37 -37
- package/build/src/ldml-keyboard/unicodeset-parser-api.js +27 -27
- package/build/src/main.d.ts +33 -33
- package/build/src/main.js +32 -32
- package/build/src/package/kmp-json-file.d.ts +115 -115
- package/build/src/package/kmp-json-file.js +1 -1
- package/build/src/package/kps-file.d.ts +175 -175
- package/build/src/package/kps-file.js +15 -15
- package/build/src/schema-validators.d.ts +13 -13
- package/build/src/schema-validators.js +25 -25
- package/build/src/schemas/displaymap.schema.d.ts +57 -57
- package/build/src/schemas/displaymap.schema.js +35 -35
- package/build/src/schemas/displaymap.schema.validator.d.mts +2 -2
- package/build/src/schemas/displaymap.schema.validator.mjs +266 -266
- package/build/src/schemas/displaymap.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyboard_info.schema.d.ts +209 -209
- package/build/src/schemas/keyboard_info.schema.js +98 -98
- package/build/src/schemas/keyboard_info.schema.validator.d.mts +2 -2
- package/build/src/schemas/keyboard_info.schema.validator.mjs +1160 -1160
- package/build/src/schemas/keyboard_info.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts +227 -227
- package/build/src/schemas/keyman-touch-layout.clean.spec.js +151 -151
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs +1094 -1094
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.spec.d.ts +229 -229
- package/build/src/schemas/keyman-touch-layout.spec.js +140 -140
- package/build/src/schemas/keyman-touch-layout.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs +1436 -1436
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs.map +1 -1
- package/build/src/schemas/kmp.schema.d.ts +324 -324
- package/build/src/schemas/kmp.schema.js +353 -353
- package/build/src/schemas/kmp.schema.validator.d.mts +2 -2
- package/build/src/schemas/kmp.schema.validator.mjs +1627 -1627
- package/build/src/schemas/kmp.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj-9.0.schema.d.ts +152 -152
- package/build/src/schemas/kpj-9.0.schema.js +131 -131
- package/build/src/schemas/kpj-9.0.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj-9.0.schema.validator.mjs +655 -655
- package/build/src/schemas/kpj-9.0.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj.schema.d.ts +122 -122
- package/build/src/schemas/kpj.schema.js +129 -129
- package/build/src/schemas/kpj.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj.schema.validator.mjs +515 -515
- package/build/src/schemas/kpj.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kvks.schema.d.ts +160 -160
- package/build/src/schemas/kvks.schema.js +182 -182
- package/build/src/schemas/kvks.schema.validator.d.mts +2 -2
- package/build/src/schemas/kvks.schema.validator.mjs +625 -625
- package/build/src/schemas/kvks.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.d.ts +635 -635
- package/build/src/schemas/ldml-keyboard3.schema.js +696 -696
- package/build/src/schemas/ldml-keyboard3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs +3117 -3117
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboardtest3.schema.d.ts +192 -192
- package/build/src/schemas/ldml-keyboardtest3.schema.js +225 -225
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs +744 -744
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs.map +1 -1
- package/build/src/schemas.d.ts +2300 -2300
- package/build/src/schemas.js +23 -23
- package/build/src/util/common-events.d.ts +44 -44
- package/build/src/util/common-events.js +26 -26
- package/build/src/util/compiler-interfaces.d.ts +371 -371
- package/build/src/util/compiler-interfaces.d.ts.map +1 -1
- package/build/src/util/compiler-interfaces.js +380 -380
- package/build/src/util/compiler-interfaces.js.map +1 -1
- package/build/src/util/errors.d.ts +5 -5
- package/build/src/util/errors.js +5 -5
- package/build/src/util/file-types.d.ts +93 -93
- package/build/src/util/file-types.d.ts.map +1 -1
- package/build/src/util/file-types.js +142 -142
- package/build/src/util/file-types.js.map +1 -1
- package/build/src/util/util.d.ts +98 -98
- package/build/src/util/util.js +368 -368
- package/build/src/util/util.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-interfaces.js","sources":["../../../src/util/compiler-interfaces.ts"],"sourceRoot":"","names":[],"mappings":";;AAkBC,CAAC;AAEF,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,iEAAwB,CAAA;IACxB,uEAAwB,CAAA;IACxB,uEAAwB,CAAA;IACxB,yEAAwB,CAAA;IACxB,yEAAwB,CAAA;AA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,qBAAqB,CAAC,IAAI;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,KAAK;IACL,WAAW;CACH,CAAC","debug_id":"700d18cd-bca6-5162-a68e-85e89dc556ea"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base class for all common/web/types errors thrown
|
|
3
|
-
*/
|
|
4
|
-
export declare class KeymanTypesError extends Error {
|
|
5
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Base class for all common/web/types errors thrown
|
|
3
|
+
*/
|
|
4
|
+
export declare class KeymanTypesError extends Error {
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=errors.d.ts.map
|
package/build/src/util/errors.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base class for all common/web/types errors thrown
|
|
3
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* Base class for all common/web/types errors thrown
|
|
3
|
+
*/
|
|
4
4
|
|
|
5
5
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e198b0c9-7931-5109-bcbc-b5ad56a2aafe")}catch(e){}}();
|
|
6
|
-
export class KeymanTypesError extends Error {
|
|
7
|
-
}
|
|
6
|
+
export class KeymanTypesError extends Error {
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=errors.js.map
|
|
9
9
|
//# debugId=e198b0c9-7931-5109-bcbc-b5ad56a2aafe
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Registered source file types for Keyman. Some of these file types (e.g. .xml)
|
|
3
|
-
* may have multiple uses outside Keyman.
|
|
4
|
-
*/
|
|
5
|
-
export declare const enum Source {
|
|
6
|
-
Model = ".model.ts",
|
|
7
|
-
Project = ".kpj",
|
|
8
|
-
KeymanKeyboard = ".kmn",
|
|
9
|
-
LdmlKeyboard = ".xml",
|
|
10
|
-
Package = ".kps",
|
|
11
|
-
VisualKeyboard = ".kvks",
|
|
12
|
-
TouchLayout = ".keyman-touch-layout"
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* List of all registered source file types for Keyman. Some of these file types
|
|
16
|
-
* (e.g. .xml) may have multiple uses outside Keyman.
|
|
17
|
-
*/
|
|
18
|
-
export declare const ALL_SOURCE: ReadonlyArray<Source>;
|
|
19
|
-
/**
|
|
20
|
-
* Registered binary file types for Keyman. Some of these file types (e.g. .js)
|
|
21
|
-
* may have multiple uses outside Keyman.
|
|
22
|
-
*/
|
|
23
|
-
export declare const enum Binary {
|
|
24
|
-
Model = ".model.js",
|
|
25
|
-
WebKeyboard = ".js",
|
|
26
|
-
Keyboard = ".kmx",
|
|
27
|
-
Package = ".kmp",
|
|
28
|
-
VisualKeyboard = ".kvk",
|
|
29
|
-
KeyboardInfo = ".keyboard_info",
|
|
30
|
-
ModelInfo = ".model_info"
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* List of all registered binary file types for Keyman. Some of these file types
|
|
34
|
-
* (e.g. .js) may have multiple uses outside Keyman.
|
|
35
|
-
*/
|
|
36
|
-
export declare const ALL_BINARY: ReadonlyArray<Binary>;
|
|
37
|
-
export declare const ALL: readonly (Binary | Source)[];
|
|
38
|
-
export type All = Source | Binary;
|
|
39
|
-
/**
|
|
40
|
-
* Alias for '.*', any file extension, not just Keyman ones.
|
|
41
|
-
*/
|
|
42
|
-
export type Any = string;
|
|
43
|
-
/**
|
|
44
|
-
* Gets the file type based on extension, dealing with multi-part file
|
|
45
|
-
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
46
|
-
* transform upper-cased file extensions to lower-case.
|
|
47
|
-
* @param filename
|
|
48
|
-
* @returns file extension, or `""` if no extension. Note that this return value
|
|
49
|
-
* differs from the other, more-specific fromFilename functions below,
|
|
50
|
-
* which return `null` if a supported extension is not found.
|
|
51
|
-
*/
|
|
52
|
-
export declare function fromFilename(filename: string): Binary | Source | Any;
|
|
53
|
-
/**
|
|
54
|
-
* Gets the file type based on extension, dealing with multi-part file
|
|
55
|
-
* extensions. Does not sniff contents of file or assume file existence.
|
|
56
|
-
* Does transform upper-cased file extensions to lower-case.
|
|
57
|
-
* @param filename
|
|
58
|
-
* @returns file type, or `null` if not found
|
|
59
|
-
*/
|
|
60
|
-
export declare function sourceOrBinaryTypeFromFilename(filename: string): Binary | Source;
|
|
61
|
-
/**
|
|
62
|
-
* Gets the source file type based on extension, dealing with multi-part file
|
|
63
|
-
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
64
|
-
* transform upper-cased file extensions to lower-case.
|
|
65
|
-
* @param filename
|
|
66
|
-
* @returns file type, or `null` if not found
|
|
67
|
-
*/
|
|
68
|
-
export declare function sourceTypeFromFilename(filename: string): Source;
|
|
69
|
-
/**
|
|
70
|
-
* Gets the binary file type based on extension, dealing with multi-part file
|
|
71
|
-
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
72
|
-
* transform upper-cased file extensions to lower-case.
|
|
73
|
-
* @param filename
|
|
74
|
-
* @returns file type, or `null` if not found
|
|
75
|
-
*/
|
|
76
|
-
export declare function binaryTypeFromFilename(filename: string): Binary;
|
|
77
|
-
/**
|
|
78
|
-
* Returns true if filenmae has a specific file extension. Does transform
|
|
79
|
-
* upper-cased file extensions to lower-case.
|
|
80
|
-
* @param filename
|
|
81
|
-
* @param fileType
|
|
82
|
-
* @returns true if file is of type fileType
|
|
83
|
-
*/
|
|
84
|
-
export declare function filenameIs(filename: string, fileType: Source | Binary): boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Replaces a filename extension with the new extension. Returns `null` if the
|
|
87
|
-
* filename does not end with oldExtension.
|
|
88
|
-
* @param filename
|
|
89
|
-
* @param oldExtension
|
|
90
|
-
* @param newExtension
|
|
91
|
-
* @returns
|
|
92
|
-
*/
|
|
93
|
-
export declare function replaceExtension(filename: string, oldExtension: string, newExtension: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* Registered source file types for Keyman. Some of these file types (e.g. .xml)
|
|
3
|
+
* may have multiple uses outside Keyman.
|
|
4
|
+
*/
|
|
5
|
+
export declare const enum Source {
|
|
6
|
+
Model = ".model.ts",
|
|
7
|
+
Project = ".kpj",
|
|
8
|
+
KeymanKeyboard = ".kmn",
|
|
9
|
+
LdmlKeyboard = ".xml",// Warning, also other possible uses
|
|
10
|
+
Package = ".kps",
|
|
11
|
+
VisualKeyboard = ".kvks",
|
|
12
|
+
TouchLayout = ".keyman-touch-layout"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* List of all registered source file types for Keyman. Some of these file types
|
|
16
|
+
* (e.g. .xml) may have multiple uses outside Keyman.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ALL_SOURCE: ReadonlyArray<Source>;
|
|
19
|
+
/**
|
|
20
|
+
* Registered binary file types for Keyman. Some of these file types (e.g. .js)
|
|
21
|
+
* may have multiple uses outside Keyman.
|
|
22
|
+
*/
|
|
23
|
+
export declare const enum Binary {
|
|
24
|
+
Model = ".model.js",
|
|
25
|
+
WebKeyboard = ".js",// Warning, also other possible uses
|
|
26
|
+
Keyboard = ".kmx",
|
|
27
|
+
Package = ".kmp",
|
|
28
|
+
VisualKeyboard = ".kvk",
|
|
29
|
+
KeyboardInfo = ".keyboard_info",
|
|
30
|
+
ModelInfo = ".model_info"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* List of all registered binary file types for Keyman. Some of these file types
|
|
34
|
+
* (e.g. .js) may have multiple uses outside Keyman.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ALL_BINARY: ReadonlyArray<Binary>;
|
|
37
|
+
export declare const ALL: readonly (Binary | Source)[];
|
|
38
|
+
export type All = Source | Binary;
|
|
39
|
+
/**
|
|
40
|
+
* Alias for '.*', any file extension, not just Keyman ones.
|
|
41
|
+
*/
|
|
42
|
+
export type Any = string;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the file type based on extension, dealing with multi-part file
|
|
45
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
46
|
+
* transform upper-cased file extensions to lower-case.
|
|
47
|
+
* @param filename
|
|
48
|
+
* @returns file extension, or `""` if no extension. Note that this return value
|
|
49
|
+
* differs from the other, more-specific fromFilename functions below,
|
|
50
|
+
* which return `null` if a supported extension is not found.
|
|
51
|
+
*/
|
|
52
|
+
export declare function fromFilename(filename: string): Binary | Source | Any;
|
|
53
|
+
/**
|
|
54
|
+
* Gets the file type based on extension, dealing with multi-part file
|
|
55
|
+
* extensions. Does not sniff contents of file or assume file existence.
|
|
56
|
+
* Does transform upper-cased file extensions to lower-case.
|
|
57
|
+
* @param filename
|
|
58
|
+
* @returns file type, or `null` if not found
|
|
59
|
+
*/
|
|
60
|
+
export declare function sourceOrBinaryTypeFromFilename(filename: string): Binary | Source;
|
|
61
|
+
/**
|
|
62
|
+
* Gets the source file type based on extension, dealing with multi-part file
|
|
63
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
64
|
+
* transform upper-cased file extensions to lower-case.
|
|
65
|
+
* @param filename
|
|
66
|
+
* @returns file type, or `null` if not found
|
|
67
|
+
*/
|
|
68
|
+
export declare function sourceTypeFromFilename(filename: string): Source;
|
|
69
|
+
/**
|
|
70
|
+
* Gets the binary file type based on extension, dealing with multi-part file
|
|
71
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
72
|
+
* transform upper-cased file extensions to lower-case.
|
|
73
|
+
* @param filename
|
|
74
|
+
* @returns file type, or `null` if not found
|
|
75
|
+
*/
|
|
76
|
+
export declare function binaryTypeFromFilename(filename: string): Binary;
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if filenmae has a specific file extension. Does transform
|
|
79
|
+
* upper-cased file extensions to lower-case.
|
|
80
|
+
* @param filename
|
|
81
|
+
* @param fileType
|
|
82
|
+
* @returns true if file is of type fileType
|
|
83
|
+
*/
|
|
84
|
+
export declare function filenameIs(filename: string, fileType: Source | Binary): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Replaces a filename extension with the new extension. Returns `null` if the
|
|
87
|
+
* filename does not end with oldExtension.
|
|
88
|
+
* @param filename
|
|
89
|
+
* @param oldExtension
|
|
90
|
+
* @param newExtension
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
export declare function replaceExtension(filename: string, oldExtension: string, newExtension: string): string;
|
|
94
94
|
//# sourceMappingURL=file-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-types.d.ts","sourceRoot":"","sources":["../../../src/util/file-types.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,0BAAkB,MAAM;IACtB,KAAK,cAAc;IACnB,OAAO,SAAS;IAChB,cAAc,SAAS;IACvB,YAAY,SAAS;
|
|
1
|
+
{"version":3,"file":"file-types.d.ts","sourceRoot":"","sources":["../../../src/util/file-types.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,0BAAkB,MAAM;IACtB,KAAK,cAAc;IACnB,OAAO,SAAS;IAChB,cAAc,SAAS;IACvB,YAAY,SAAS,CAAG,oCAAoC;IAC5D,OAAO,SAAS;IAChB,cAAc,UAAU;IACxB,WAAW,yBAAyB;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,MAAM,CAQnC,CAAC;AAEX;;;GAGG;AACH,0BAAkB,MAAM;IACtB,KAAK,cAAc;IACnB,WAAW,QAAQ,CAAG,oCAAoC;IAC1D,QAAQ,SAAS;IACjB,OAAO,SAAS;IAChB,cAAc,SAAS;IACvB,YAAY,mBAAmB;IAC/B,SAAS,gBAAgB;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,MAAM,CASlC,CAAC;AAEZ,eAAO,MAAM,GAAG,8BAA0C,CAAC;AAC3D,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AAEzB;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,GAAG,CAMpE;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAOhF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,WAMrE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAMrG"}
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Registered source file types for Keyman. Some of these file types (e.g. .xml)
|
|
3
|
-
* may have multiple uses outside Keyman.
|
|
4
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* Registered source file types for Keyman. Some of these file types (e.g. .xml)
|
|
3
|
+
* may have multiple uses outside Keyman.
|
|
4
|
+
*/
|
|
5
5
|
|
|
6
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
-
export var Source;
|
|
8
|
-
(function (Source) {
|
|
9
|
-
Source["Model"] = ".model.ts";
|
|
10
|
-
Source["Project"] = ".kpj";
|
|
11
|
-
Source["KeymanKeyboard"] = ".kmn";
|
|
12
|
-
Source["LdmlKeyboard"] = ".xml";
|
|
13
|
-
Source["Package"] = ".kps";
|
|
14
|
-
Source["VisualKeyboard"] = ".kvks";
|
|
15
|
-
Source["TouchLayout"] = ".keyman-touch-layout";
|
|
16
|
-
})(Source || (Source = {}));
|
|
17
|
-
;
|
|
18
|
-
/**
|
|
19
|
-
* List of all registered source file types for Keyman. Some of these file types
|
|
20
|
-
* (e.g. .xml) may have multiple uses outside Keyman.
|
|
21
|
-
*/
|
|
22
|
-
export const ALL_SOURCE = [
|
|
23
|
-
".model.ts" /* Source.Model */,
|
|
24
|
-
".kpj" /* Source.Project */,
|
|
25
|
-
".kmn" /* Source.KeymanKeyboard */,
|
|
26
|
-
".xml" /* Source.LdmlKeyboard */,
|
|
27
|
-
".kps" /* Source.Package */,
|
|
28
|
-
".kvks" /* Source.VisualKeyboard */,
|
|
29
|
-
".keyman-touch-layout" /* Source.TouchLayout */
|
|
30
|
-
];
|
|
31
|
-
/**
|
|
32
|
-
* Registered binary file types for Keyman. Some of these file types (e.g. .js)
|
|
33
|
-
* may have multiple uses outside Keyman.
|
|
34
|
-
*/
|
|
35
|
-
export var Binary;
|
|
36
|
-
(function (Binary) {
|
|
37
|
-
Binary["Model"] = ".model.js";
|
|
38
|
-
Binary["WebKeyboard"] = ".js";
|
|
39
|
-
Binary["Keyboard"] = ".kmx";
|
|
40
|
-
Binary["Package"] = ".kmp";
|
|
41
|
-
Binary["VisualKeyboard"] = ".kvk";
|
|
42
|
-
Binary["KeyboardInfo"] = ".keyboard_info";
|
|
43
|
-
Binary["ModelInfo"] = ".model_info";
|
|
44
|
-
})(Binary || (Binary = {}));
|
|
45
|
-
/**
|
|
46
|
-
* List of all registered binary file types for Keyman. Some of these file types
|
|
47
|
-
* (e.g. .js) may have multiple uses outside Keyman.
|
|
48
|
-
*/
|
|
49
|
-
export const ALL_BINARY = [
|
|
50
|
-
".model.js" /* Binary.Model */,
|
|
51
|
-
".js" /* Binary.WebKeyboard */,
|
|
52
|
-
".kmx" /* Binary.Keyboard */,
|
|
53
|
-
".kmp" /* Binary.Package */,
|
|
54
|
-
".kvk" /* Binary.VisualKeyboard */,
|
|
55
|
-
".keyboard_info" /* Binary.KeyboardInfo */,
|
|
56
|
-
".model_info" /* Binary.ModelInfo */,
|
|
57
|
-
];
|
|
58
|
-
export const ALL = [...ALL_SOURCE, ...ALL_BINARY];
|
|
59
|
-
/**
|
|
60
|
-
* Gets the file type based on extension, dealing with multi-part file
|
|
61
|
-
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
62
|
-
* transform upper-cased file extensions to lower-case.
|
|
63
|
-
* @param filename
|
|
64
|
-
* @returns file extension, or `""` if no extension. Note that this return value
|
|
65
|
-
* differs from the other, more-specific fromFilename functions below,
|
|
66
|
-
* which return `null` if a supported extension is not found.
|
|
67
|
-
*/
|
|
68
|
-
export function fromFilename(filename) {
|
|
69
|
-
const result = sourceOrBinaryTypeFromFilename(filename) ??
|
|
70
|
-
filename.match(/\.[^\.]+$/)?.[0] ??
|
|
71
|
-
"";
|
|
72
|
-
return result;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Gets the file type based on extension, dealing with multi-part file
|
|
76
|
-
* extensions. Does not sniff contents of file or assume file existence.
|
|
77
|
-
* Does transform upper-cased file extensions to lower-case.
|
|
78
|
-
* @param filename
|
|
79
|
-
* @returns file type, or `null` if not found
|
|
80
|
-
*/
|
|
81
|
-
export function sourceOrBinaryTypeFromFilename(filename) {
|
|
82
|
-
filename = filename.toLowerCase();
|
|
83
|
-
const result = ALL_SOURCE.find(type => filename.endsWith(type)) ??
|
|
84
|
-
ALL_BINARY.find(type => filename.endsWith(type)) ??
|
|
85
|
-
null;
|
|
86
|
-
return result;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Gets the source file type based on extension, dealing with multi-part file
|
|
90
|
-
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
91
|
-
* transform upper-cased file extensions to lower-case.
|
|
92
|
-
* @param filename
|
|
93
|
-
* @returns file type, or `null` if not found
|
|
94
|
-
*/
|
|
95
|
-
export function sourceTypeFromFilename(filename) {
|
|
96
|
-
filename = filename.toLowerCase();
|
|
97
|
-
const result = ALL_SOURCE.find(type => filename.endsWith(type)) ??
|
|
98
|
-
null;
|
|
99
|
-
return result;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Gets the binary file type based on extension, dealing with multi-part file
|
|
103
|
-
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
104
|
-
* transform upper-cased file extensions to lower-case.
|
|
105
|
-
* @param filename
|
|
106
|
-
* @returns file type, or `null` if not found
|
|
107
|
-
*/
|
|
108
|
-
export function binaryTypeFromFilename(filename) {
|
|
109
|
-
filename = filename.toLowerCase();
|
|
110
|
-
const result = ALL_BINARY.find(type => filename.endsWith(type)) ??
|
|
111
|
-
null;
|
|
112
|
-
return result;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Returns true if filenmae has a specific file extension. Does transform
|
|
116
|
-
* upper-cased file extensions to lower-case.
|
|
117
|
-
* @param filename
|
|
118
|
-
* @param fileType
|
|
119
|
-
* @returns true if file is of type fileType
|
|
120
|
-
*/
|
|
121
|
-
export function filenameIs(filename, fileType) {
|
|
122
|
-
// Special case for .model.js
|
|
123
|
-
if (fileType == ".js" /* Binary.WebKeyboard */ && filenameIs(filename, ".model.js" /* Binary.Model */)) {
|
|
124
|
-
return false;
|
|
125
|
-
}
|
|
126
|
-
return filename.toLowerCase().endsWith(fileType);
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Replaces a filename extension with the new extension. Returns `null` if the
|
|
130
|
-
* filename does not end with oldExtension.
|
|
131
|
-
* @param filename
|
|
132
|
-
* @param oldExtension
|
|
133
|
-
* @param newExtension
|
|
134
|
-
* @returns
|
|
135
|
-
*/
|
|
136
|
-
export function replaceExtension(filename, oldExtension, newExtension) {
|
|
137
|
-
const ext = filename.substring(filename.length - oldExtension.length);
|
|
138
|
-
if (ext !== oldExtension) {
|
|
139
|
-
return null;
|
|
140
|
-
}
|
|
141
|
-
return filename.substring(0, filename.length - oldExtension.length) + newExtension;
|
|
142
|
-
}
|
|
6
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4afbcdd5-c9bd-5a33-9fc5-2891a8f1f752")}catch(e){}}();
|
|
7
|
+
export var Source;
|
|
8
|
+
(function (Source) {
|
|
9
|
+
Source["Model"] = ".model.ts";
|
|
10
|
+
Source["Project"] = ".kpj";
|
|
11
|
+
Source["KeymanKeyboard"] = ".kmn";
|
|
12
|
+
Source["LdmlKeyboard"] = ".xml";
|
|
13
|
+
Source["Package"] = ".kps";
|
|
14
|
+
Source["VisualKeyboard"] = ".kvks";
|
|
15
|
+
Source["TouchLayout"] = ".keyman-touch-layout";
|
|
16
|
+
})(Source || (Source = {}));
|
|
17
|
+
;
|
|
18
|
+
/**
|
|
19
|
+
* List of all registered source file types for Keyman. Some of these file types
|
|
20
|
+
* (e.g. .xml) may have multiple uses outside Keyman.
|
|
21
|
+
*/
|
|
22
|
+
export const ALL_SOURCE = [
|
|
23
|
+
".model.ts" /* Source.Model */,
|
|
24
|
+
".kpj" /* Source.Project */,
|
|
25
|
+
".kmn" /* Source.KeymanKeyboard */,
|
|
26
|
+
".xml" /* Source.LdmlKeyboard */,
|
|
27
|
+
".kps" /* Source.Package */,
|
|
28
|
+
".kvks" /* Source.VisualKeyboard */,
|
|
29
|
+
".keyman-touch-layout" /* Source.TouchLayout */
|
|
30
|
+
];
|
|
31
|
+
/**
|
|
32
|
+
* Registered binary file types for Keyman. Some of these file types (e.g. .js)
|
|
33
|
+
* may have multiple uses outside Keyman.
|
|
34
|
+
*/
|
|
35
|
+
export var Binary;
|
|
36
|
+
(function (Binary) {
|
|
37
|
+
Binary["Model"] = ".model.js";
|
|
38
|
+
Binary["WebKeyboard"] = ".js";
|
|
39
|
+
Binary["Keyboard"] = ".kmx";
|
|
40
|
+
Binary["Package"] = ".kmp";
|
|
41
|
+
Binary["VisualKeyboard"] = ".kvk";
|
|
42
|
+
Binary["KeyboardInfo"] = ".keyboard_info";
|
|
43
|
+
Binary["ModelInfo"] = ".model_info";
|
|
44
|
+
})(Binary || (Binary = {}));
|
|
45
|
+
/**
|
|
46
|
+
* List of all registered binary file types for Keyman. Some of these file types
|
|
47
|
+
* (e.g. .js) may have multiple uses outside Keyman.
|
|
48
|
+
*/
|
|
49
|
+
export const ALL_BINARY = [
|
|
50
|
+
".model.js" /* Binary.Model */,
|
|
51
|
+
".js" /* Binary.WebKeyboard */,
|
|
52
|
+
".kmx" /* Binary.Keyboard */,
|
|
53
|
+
".kmp" /* Binary.Package */,
|
|
54
|
+
".kvk" /* Binary.VisualKeyboard */,
|
|
55
|
+
".keyboard_info" /* Binary.KeyboardInfo */,
|
|
56
|
+
".model_info" /* Binary.ModelInfo */,
|
|
57
|
+
];
|
|
58
|
+
export const ALL = [...ALL_SOURCE, ...ALL_BINARY];
|
|
59
|
+
/**
|
|
60
|
+
* Gets the file type based on extension, dealing with multi-part file
|
|
61
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
62
|
+
* transform upper-cased file extensions to lower-case.
|
|
63
|
+
* @param filename
|
|
64
|
+
* @returns file extension, or `""` if no extension. Note that this return value
|
|
65
|
+
* differs from the other, more-specific fromFilename functions below,
|
|
66
|
+
* which return `null` if a supported extension is not found.
|
|
67
|
+
*/
|
|
68
|
+
export function fromFilename(filename) {
|
|
69
|
+
const result = sourceOrBinaryTypeFromFilename(filename) ??
|
|
70
|
+
filename.match(/\.[^\.]+$/)?.[0] ??
|
|
71
|
+
"";
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Gets the file type based on extension, dealing with multi-part file
|
|
76
|
+
* extensions. Does not sniff contents of file or assume file existence.
|
|
77
|
+
* Does transform upper-cased file extensions to lower-case.
|
|
78
|
+
* @param filename
|
|
79
|
+
* @returns file type, or `null` if not found
|
|
80
|
+
*/
|
|
81
|
+
export function sourceOrBinaryTypeFromFilename(filename) {
|
|
82
|
+
filename = filename.toLowerCase();
|
|
83
|
+
const result = ALL_SOURCE.find(type => filename.endsWith(type)) ??
|
|
84
|
+
ALL_BINARY.find(type => filename.endsWith(type)) ??
|
|
85
|
+
null;
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Gets the source file type based on extension, dealing with multi-part file
|
|
90
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
91
|
+
* transform upper-cased file extensions to lower-case.
|
|
92
|
+
* @param filename
|
|
93
|
+
* @returns file type, or `null` if not found
|
|
94
|
+
*/
|
|
95
|
+
export function sourceTypeFromFilename(filename) {
|
|
96
|
+
filename = filename.toLowerCase();
|
|
97
|
+
const result = ALL_SOURCE.find(type => filename.endsWith(type)) ??
|
|
98
|
+
null;
|
|
99
|
+
return result;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Gets the binary file type based on extension, dealing with multi-part file
|
|
103
|
+
* extensions. Does not sniff contents of file or assume file existence. Does
|
|
104
|
+
* transform upper-cased file extensions to lower-case.
|
|
105
|
+
* @param filename
|
|
106
|
+
* @returns file type, or `null` if not found
|
|
107
|
+
*/
|
|
108
|
+
export function binaryTypeFromFilename(filename) {
|
|
109
|
+
filename = filename.toLowerCase();
|
|
110
|
+
const result = ALL_BINARY.find(type => filename.endsWith(type)) ??
|
|
111
|
+
null;
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Returns true if filenmae has a specific file extension. Does transform
|
|
116
|
+
* upper-cased file extensions to lower-case.
|
|
117
|
+
* @param filename
|
|
118
|
+
* @param fileType
|
|
119
|
+
* @returns true if file is of type fileType
|
|
120
|
+
*/
|
|
121
|
+
export function filenameIs(filename, fileType) {
|
|
122
|
+
// Special case for .model.js
|
|
123
|
+
if (fileType == ".js" /* Binary.WebKeyboard */ && filenameIs(filename, ".model.js" /* Binary.Model */)) {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
return filename.toLowerCase().endsWith(fileType);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Replaces a filename extension with the new extension. Returns `null` if the
|
|
130
|
+
* filename does not end with oldExtension.
|
|
131
|
+
* @param filename
|
|
132
|
+
* @param oldExtension
|
|
133
|
+
* @param newExtension
|
|
134
|
+
* @returns
|
|
135
|
+
*/
|
|
136
|
+
export function replaceExtension(filename, oldExtension, newExtension) {
|
|
137
|
+
const ext = filename.substring(filename.length - oldExtension.length);
|
|
138
|
+
if (ext !== oldExtension) {
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
return filename.substring(0, filename.length - oldExtension.length) + newExtension;
|
|
142
|
+
}
|
|
143
143
|
//# sourceMappingURL=file-types.js.map
|
|
144
|
-
//# debugId=
|
|
144
|
+
//# debugId=4afbcdd5-c9bd-5a33-9fc5-2891a8f1f752
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-types.js","sources":["../../../src/util/file-types.ts"],"sourceRoot":"","names":[],"mappings":"AACA;;;GAGG;;;AACH,MAAM,CAAN,IAAkB,MAQjB;AARD,WAAkB,MAAM;IACtB,6BAAmB,CAAA;IACnB,0BAAgB,CAAA;IAChB,iCAAuB,CAAA;IACvB,+BAAqB,CAAA;IACrB,0BAAgB,CAAA;IAChB,kCAAwB,CAAA;IACxB,8CAAoC,CAAA;AACtC,CAAC,EARiB,MAAM,KAAN,MAAM,QAQvB;AAAA,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAA0B;;;;;;;;CAQvC,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAN,IAAkB,MAQjB;AARD,WAAkB,MAAM;IACtB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,0BAAgB,CAAA;IAChB,iCAAuB,CAAA;IACvB,yCAA+B,CAAA;IAC/B,mCAAyB,CAA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