@keymanapp/kmc-model 18.0.16-alpha → 18.0.18-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.
@@ -1,263 +1,264 @@
1
- !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]="719bbea3-035d-5f91-bf8b-44e7affdb351")}catch(e){}}();
2
- /*
3
- lexical-model-compiler.ts: base file for lexical model compiler.
4
- */
5
- import ts from "typescript";
6
- import { createTrieDataStructure } from "./build-trie.js";
7
- import { ModelDefinitions } from "./model-definitions.js";
8
- import { decorateWithJoin } from "./join-word-breaker-decorator.js";
9
- import { decorateWithScriptOverrides } from "./script-overrides-decorator.js";
10
- import { ModelCompilerError, ModelCompilerMessageContext, ModelCompilerMessages } from "./model-compiler-messages.js";
11
- import { callbacks, setCompilerCallbacks } from "./compiler-callbacks.js";
12
- ;
13
- ;
14
- ;
15
- /**
16
- * @public
17
- * Compiles a .model.ts file to a .model.js. The compiler does not read or write
18
- * from filesystem or network directly, but relies on callbacks for all external
19
- * IO.
20
- */
21
- export class LexicalModelCompiler {
22
- /**
23
- * Initialize the compiler. There are currently no options
24
- * specific to the lexical model compiler
25
- * @param callbacks - Callbacks for external interfaces, including message
26
- * reporting and file io
27
- * @param options - Compiler options
28
- * @returns always succeeds and returns true
29
- */
30
- async init(callbacks, _options) {
31
- setCompilerCallbacks(callbacks);
32
- return true;
33
- }
34
- /**
35
- * Compiles a .model.ts file to .model.js. Returns an object containing binary
36
- * artifacts on success. The files are passed in by name, and the compiler
37
- * will use callbacks as passed to the {@link LexicalModelCompiler.init}
38
- * function to read any input files by disk.
39
- * @param infile - Path to source file. Path will be parsed to find relative
40
- * references in the .kmn file, such as icon or On Screen
41
- * Keyboard file
42
- * @param outfile - Path to output file. The file will not be written to, but
43
- * will be included in the result for use by
44
- * {@link LexicalModelCompiler.write}.
45
- * @returns Binary artifacts on success, null on failure.
46
- */
47
- async run(inputFilename, outputFilename) {
48
- try {
49
- let modelSource = this.loadFromFilename(inputFilename);
50
- let containingDirectory = callbacks.path.dirname(inputFilename);
51
- let code = this.generateLexicalModelCode('<unknown>', modelSource, containingDirectory);
52
- const result = {
53
- artifacts: {
54
- js: {
55
- data: new TextEncoder().encode(code),
56
- filename: outputFilename ?? inputFilename.replace(/\.model\.ts$/, '.model.js')
57
- }
58
- }
59
- };
60
- return result;
61
- }
62
- catch (e) {
63
- callbacks.reportMessage(e instanceof ModelCompilerError
64
- ? e.event
65
- : ModelCompilerMessages.Fatal_UnexpectedException({ e: e }));
66
- return null;
67
- }
68
- }
69
- /**
70
- * Write artifacts from a successful compile to disk, via callbacks methods.
71
- * The artifacts written may include:
72
- *
73
- * - .model.js file - Javascript lexical model for web and touch platforms
74
- *
75
- * @param artifacts - object containing artifact binary data to write out
76
- * @returns always returns true
77
- */
78
- async write(artifacts) {
79
- callbacks.fs.writeFileSync(artifacts.js.filename, artifacts.js.data);
80
- return true;
81
- }
82
- /**
83
- * @internal
84
- * Loads a lexical model's source module from the given filename.
85
- *
86
- * @param filename - path to the model source file.
87
- */
88
- loadFromFilename(filename) {
89
- let sourceCode = new TextDecoder().decode(callbacks.loadFile(filename));
90
- // Compile the module to JavaScript code.
91
- // NOTE: transpile module does a very simple TS to JS compilation.
92
- // It DOES NOT check for types!
93
- let compilationOutput = ts.transpile(sourceCode, {
94
- // Our runtime only supports ES3 with Node/CommonJS modules on Android 5.0.
95
- // When we drop Android 5.0 support, we can update this to a `ScriptTarget`
96
- // matrix against target version of Keyman, here and in
97
- // lexical-model-compiler.ts.
98
- target: ts.ScriptTarget.ES3,
99
- module: ts.ModuleKind.CommonJS,
100
- });
101
- // Turn the module into a function in which we can inject a global.
102
- let moduleCode = '(function(exports){' + compilationOutput + '})';
103
- // Run the module; its exports will be assigned to `moduleExports`.
104
- let moduleExports = {};
105
- let module = eval(moduleCode);
106
- module(moduleExports);
107
- if (!moduleExports['__esModule'] || !moduleExports['default']) {
108
- ModelCompilerMessageContext.filename = filename;
109
- throw new ModelCompilerError(ModelCompilerMessages.Error_NoDefaultExport());
110
- }
111
- return moduleExports['default'];
112
- }
113
- /**
114
- * @internal
115
- * Returns the generated code for the model that will ultimately be loaded by
116
- * the LMLayer worker. This code contains all model parameters, and specifies
117
- * word breakers and auxilary functions that may be required.
118
- *
119
- * @param model_id - The model ID. TODO: not sure if this is actually required!
120
- * @param modelSource - A specification of the model to compile
121
- * @param sourcePath - Where to find auxilary sources files
122
- */
123
- generateLexicalModelCode(model_id, modelSource, sourcePath) {
124
- // TODO: add metadata in comment
125
- const filePrefix = `(function() {\n'use strict';\n`;
126
- const fileSuffix = `})();`;
127
- let func = filePrefix;
128
- //
129
- // Emit the model as code and data
130
- //
131
- switch (modelSource.format) {
132
- case "custom-1.0":
133
- let sources = modelSource.sources.map(function (source) {
134
- return new TextDecoder().decode(callbacks.loadFile(callbacks.path.join(sourcePath, source)));
135
- });
136
- func += this.transpileSources(sources).join('\n');
137
- func += `LMLayerWorker.loadModel(new ${modelSource.rootClass}());\n`;
138
- break;
139
- case "fst-foma-1.0":
140
- throw new ModelCompilerError(ModelCompilerMessages.Error_UnimplementedModelFormat({ format: modelSource.format }));
141
- case "trie-1.0":
142
- // Convert all relative path names to paths relative to the enclosing
143
- // directory. This way, we'll read the files relative to the model.ts
144
- // file, rather than the current working directory.
145
- let filenames = modelSource.sources.map(filename => callbacks.path.join(sourcePath, filename));
146
- let definitions = new ModelDefinitions(modelSource);
147
- func += definitions.compileDefinitions();
148
- // Needs the actual searchTermToKey closure...
149
- // Which needs the actual applyCasing closure as well.
150
- func += `LMLayerWorker.loadModel(new models.TrieModel(${createTrieDataStructure(filenames, definitions.searchTermToKey)}, {\n`;
151
- let wordBreakerSourceCode = compileWordBreaker(normalizeWordBreakerSpec(modelSource.wordBreaker));
152
- func += ` wordBreaker: ${wordBreakerSourceCode},\n`;
153
- // START - the lexical mapping option block
154
- func += ` searchTermToKey: ${definitions.compileSearchTermToKey()},\n`;
155
- if (modelSource.languageUsesCasing != null) {
156
- func += ` languageUsesCasing: ${modelSource.languageUsesCasing},\n`;
157
- } // else leave undefined.
158
- if (modelSource.languageUsesCasing) {
159
- func += ` applyCasing: ${definitions.compileApplyCasing()},\n`;
160
- }
161
- // END - the lexical mapping option block.
162
- if (modelSource.punctuation) {
163
- func += ` punctuation: ${JSON.stringify(modelSource.punctuation)},\n`;
164
- }
165
- func += `}));\n`;
166
- break;
167
- default:
168
- throw new ModelCompilerError(ModelCompilerMessages.Error_UnknownModelFormat({ format: modelSource.format }));
169
- }
170
- func += fileSuffix;
171
- return func;
172
- }
173
- /**
174
- * @internal
175
- */
176
- transpileSources(sources) {
177
- return sources.map((source) => ts.transpileModule(source, {
178
- compilerOptions: {
179
- target: ts.ScriptTarget.ES3,
180
- module: ts.ModuleKind.None,
181
- }
182
- }).outputText);
183
- }
184
- ;
185
- }
186
- ;
187
- /**
188
- * @internal
189
- * Returns a JavaScript expression (as a string) that can serve as a word
190
- * breaking function.
191
- */
192
- function compileWordBreaker(spec) {
193
- let wordBreakerCode = compileInnerWordBreaker(spec.use);
194
- if (spec.joinWordsAt) {
195
- wordBreakerCode = compileJoinDecorator(spec, wordBreakerCode);
196
- }
197
- if (spec.overrideScriptDefaults) {
198
- wordBreakerCode = compileScriptOverrides(spec, wordBreakerCode);
199
- }
200
- return wordBreakerCode;
201
- }
202
- /**
203
- * @internal
204
- */
205
- function compileJoinDecorator(spec, existingWordBreakerCode) {
206
- // Bundle the source of the join decorator, as an IIFE,
207
- // like this: (function join(breaker, joiners) {/*...*/}(breaker, joiners))
208
- // The decorator will run IMMEDIATELY when the model is loaded,
209
- // by the LMLayer returning the decorated word breaker to the
210
- // LMLayer model.
211
- let joinerExpr = JSON.stringify(spec.joinWordsAt);
212
- return `(${decorateWithJoin.toString()}(${existingWordBreakerCode}, ${joinerExpr}))`;
213
- }
214
- function compileScriptOverrides(spec, existingWordBreakerCode) {
215
- return `(${decorateWithScriptOverrides.toString()}(${existingWordBreakerCode}, '${spec.overrideScriptDefaults}'))`;
216
- }
217
- /**
218
- * @internal
219
- * Compiles the base word breaker, that may be decorated later.
220
- * Returns the source code of a JavaScript expression.
221
- */
222
- function compileInnerWordBreaker(spec) {
223
- if (typeof spec === "string") {
224
- // It must be a builtin word breaker, so just instantiate it.
225
- return `wordBreakers['${spec}']`;
226
- }
227
- else {
228
- // It must be a function:
229
- return spec.toString()
230
- // Note: the .toString() might just be the property name, but we want a
231
- // plain function:
232
- .replace(/^wordBreak(ing|er)\b/, 'function');
233
- }
234
- }
235
- /**
236
- * @internal
237
- * Given a word breaker specification in any of the messy ways,
238
- * normalizes it to a common form that the compiler can deal with.
239
- */
240
- function normalizeWordBreakerSpec(wordBreakerSpec) {
241
- if (wordBreakerSpec == undefined) {
242
- // Use the default word breaker when it's unspecified
243
- return { use: 'default' };
244
- }
245
- else if (isSimpleWordBreaker(wordBreakerSpec)) {
246
- // The word breaker was passed as a literal function; use its source code.
247
- return { use: wordBreakerSpec };
248
- }
249
- else if (wordBreakerSpec.use) {
250
- return wordBreakerSpec;
251
- }
252
- else {
253
- throw new ModelCompilerError(ModelCompilerMessages.Error_UnknownWordBreaker({ spec: wordBreakerSpec.toString() }));
254
- }
255
- }
256
- /**
257
- * @internal
258
- */
259
- function isSimpleWordBreaker(spec) {
260
- return typeof spec === "function" || spec === "default" || spec === "ascii";
261
- }
262
- //# debugId=719bbea3-035d-5f91-bf8b-44e7affdb351
1
+ /*
2
+ lexical-model-compiler.ts: base file for lexical model compiler.
3
+ */
4
+
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]="a2771fa9-b2ba-5ab4-a686-2a6178b42cc3")}catch(e){}}();
6
+ import ts from "typescript";
7
+ import { createTrieDataStructure } from "./build-trie.js";
8
+ import { ModelDefinitions } from "./model-definitions.js";
9
+ import { decorateWithJoin } from "./join-word-breaker-decorator.js";
10
+ import { decorateWithScriptOverrides } from "./script-overrides-decorator.js";
11
+ import { ModelCompilerError, ModelCompilerMessageContext, ModelCompilerMessages } from "./model-compiler-messages.js";
12
+ import { callbacks, setCompilerCallbacks } from "./compiler-callbacks.js";
13
+ ;
14
+ ;
15
+ ;
16
+ /**
17
+ * @public
18
+ * Compiles a .model.ts file to a .model.js. The compiler does not read or write
19
+ * from filesystem or network directly, but relies on callbacks for all external
20
+ * IO.
21
+ */
22
+ export class LexicalModelCompiler {
23
+ /**
24
+ * Initialize the compiler. There are currently no options
25
+ * specific to the lexical model compiler
26
+ * @param callbacks - Callbacks for external interfaces, including message
27
+ * reporting and file io
28
+ * @param options - Compiler options
29
+ * @returns always succeeds and returns true
30
+ */
31
+ async init(callbacks, _options) {
32
+ setCompilerCallbacks(callbacks);
33
+ return true;
34
+ }
35
+ /**
36
+ * Compiles a .model.ts file to .model.js. Returns an object containing binary
37
+ * artifacts on success. The files are passed in by name, and the compiler
38
+ * will use callbacks as passed to the {@link LexicalModelCompiler.init}
39
+ * function to read any input files by disk.
40
+ * @param infile - Path to source file. Path will be parsed to find relative
41
+ * references in the .kmn file, such as icon or On Screen
42
+ * Keyboard file
43
+ * @param outfile - Path to output file. The file will not be written to, but
44
+ * will be included in the result for use by
45
+ * {@link LexicalModelCompiler.write}.
46
+ * @returns Binary artifacts on success, null on failure.
47
+ */
48
+ async run(inputFilename, outputFilename) {
49
+ try {
50
+ let modelSource = this.loadFromFilename(inputFilename);
51
+ let containingDirectory = callbacks.path.dirname(inputFilename);
52
+ let code = this.generateLexicalModelCode('<unknown>', modelSource, containingDirectory);
53
+ const result = {
54
+ artifacts: {
55
+ js: {
56
+ data: new TextEncoder().encode(code),
57
+ filename: outputFilename ?? inputFilename.replace(/\.model\.ts$/, '.model.js')
58
+ }
59
+ }
60
+ };
61
+ return result;
62
+ }
63
+ catch (e) {
64
+ callbacks.reportMessage(e instanceof ModelCompilerError
65
+ ? e.event
66
+ : ModelCompilerMessages.Fatal_UnexpectedException({ e: e }));
67
+ return null;
68
+ }
69
+ }
70
+ /**
71
+ * Write artifacts from a successful compile to disk, via callbacks methods.
72
+ * The artifacts written may include:
73
+ *
74
+ * - .model.js file - Javascript lexical model for web and touch platforms
75
+ *
76
+ * @param artifacts - object containing artifact binary data to write out
77
+ * @returns always returns true
78
+ */
79
+ async write(artifacts) {
80
+ callbacks.fs.writeFileSync(artifacts.js.filename, artifacts.js.data);
81
+ return true;
82
+ }
83
+ /**
84
+ * @internal
85
+ * Loads a lexical model's source module from the given filename.
86
+ *
87
+ * @param filename - path to the model source file.
88
+ */
89
+ loadFromFilename(filename) {
90
+ let sourceCode = new TextDecoder().decode(callbacks.loadFile(filename));
91
+ // Compile the module to JavaScript code.
92
+ // NOTE: transpile module does a very simple TS to JS compilation.
93
+ // It DOES NOT check for types!
94
+ let compilationOutput = ts.transpile(sourceCode, {
95
+ // Our runtime only supports ES3 with Node/CommonJS modules on Android 5.0.
96
+ // When we drop Android 5.0 support, we can update this to a `ScriptTarget`
97
+ // matrix against target version of Keyman, here and in
98
+ // lexical-model-compiler.ts.
99
+ target: ts.ScriptTarget.ES3,
100
+ module: ts.ModuleKind.CommonJS,
101
+ });
102
+ // Turn the module into a function in which we can inject a global.
103
+ let moduleCode = '(function(exports){' + compilationOutput + '})';
104
+ // Run the module; its exports will be assigned to `moduleExports`.
105
+ let moduleExports = {};
106
+ let module = eval(moduleCode);
107
+ module(moduleExports);
108
+ if (!moduleExports['__esModule'] || !moduleExports['default']) {
109
+ ModelCompilerMessageContext.filename = filename;
110
+ throw new ModelCompilerError(ModelCompilerMessages.Error_NoDefaultExport());
111
+ }
112
+ return moduleExports['default'];
113
+ }
114
+ /**
115
+ * @internal
116
+ * Returns the generated code for the model that will ultimately be loaded by
117
+ * the LMLayer worker. This code contains all model parameters, and specifies
118
+ * word breakers and auxilary functions that may be required.
119
+ *
120
+ * @param model_id - The model ID. TODO: not sure if this is actually required!
121
+ * @param modelSource - A specification of the model to compile
122
+ * @param sourcePath - Where to find auxilary sources files
123
+ */
124
+ generateLexicalModelCode(model_id, modelSource, sourcePath) {
125
+ // TODO: add metadata in comment
126
+ const filePrefix = `(function() {\n'use strict';\n`;
127
+ const fileSuffix = `})();`;
128
+ let func = filePrefix;
129
+ //
130
+ // Emit the model as code and data
131
+ //
132
+ switch (modelSource.format) {
133
+ case "custom-1.0":
134
+ let sources = modelSource.sources.map(function (source) {
135
+ return new TextDecoder().decode(callbacks.loadFile(callbacks.path.join(sourcePath, source)));
136
+ });
137
+ func += this.transpileSources(sources).join('\n');
138
+ func += `LMLayerWorker.loadModel(new ${modelSource.rootClass}());\n`;
139
+ break;
140
+ case "fst-foma-1.0":
141
+ throw new ModelCompilerError(ModelCompilerMessages.Error_UnimplementedModelFormat({ format: modelSource.format }));
142
+ case "trie-1.0":
143
+ // Convert all relative path names to paths relative to the enclosing
144
+ // directory. This way, we'll read the files relative to the model.ts
145
+ // file, rather than the current working directory.
146
+ let filenames = modelSource.sources.map(filename => callbacks.path.join(sourcePath, filename));
147
+ let definitions = new ModelDefinitions(modelSource);
148
+ func += definitions.compileDefinitions();
149
+ // Needs the actual searchTermToKey closure...
150
+ // Which needs the actual applyCasing closure as well.
151
+ func += `LMLayerWorker.loadModel(new models.TrieModel(${createTrieDataStructure(filenames, definitions.searchTermToKey)}, {\n`;
152
+ let wordBreakerSourceCode = compileWordBreaker(normalizeWordBreakerSpec(modelSource.wordBreaker));
153
+ func += ` wordBreaker: ${wordBreakerSourceCode},\n`;
154
+ // START - the lexical mapping option block
155
+ func += ` searchTermToKey: ${definitions.compileSearchTermToKey()},\n`;
156
+ if (modelSource.languageUsesCasing != null) {
157
+ func += ` languageUsesCasing: ${modelSource.languageUsesCasing},\n`;
158
+ } // else leave undefined.
159
+ if (modelSource.languageUsesCasing) {
160
+ func += ` applyCasing: ${definitions.compileApplyCasing()},\n`;
161
+ }
162
+ // END - the lexical mapping option block.
163
+ if (modelSource.punctuation) {
164
+ func += ` punctuation: ${JSON.stringify(modelSource.punctuation)},\n`;
165
+ }
166
+ func += `}));\n`;
167
+ break;
168
+ default:
169
+ throw new ModelCompilerError(ModelCompilerMessages.Error_UnknownModelFormat({ format: modelSource.format }));
170
+ }
171
+ func += fileSuffix;
172
+ return func;
173
+ }
174
+ /**
175
+ * @internal
176
+ */
177
+ transpileSources(sources) {
178
+ return sources.map((source) => ts.transpileModule(source, {
179
+ compilerOptions: {
180
+ target: ts.ScriptTarget.ES3,
181
+ module: ts.ModuleKind.None,
182
+ }
183
+ }).outputText);
184
+ }
185
+ ;
186
+ }
187
+ ;
188
+ /**
189
+ * @internal
190
+ * Returns a JavaScript expression (as a string) that can serve as a word
191
+ * breaking function.
192
+ */
193
+ function compileWordBreaker(spec) {
194
+ let wordBreakerCode = compileInnerWordBreaker(spec.use);
195
+ if (spec.joinWordsAt) {
196
+ wordBreakerCode = compileJoinDecorator(spec, wordBreakerCode);
197
+ }
198
+ if (spec.overrideScriptDefaults) {
199
+ wordBreakerCode = compileScriptOverrides(spec, wordBreakerCode);
200
+ }
201
+ return wordBreakerCode;
202
+ }
203
+ /**
204
+ * @internal
205
+ */
206
+ function compileJoinDecorator(spec, existingWordBreakerCode) {
207
+ // Bundle the source of the join decorator, as an IIFE,
208
+ // like this: (function join(breaker, joiners) {/*...*/}(breaker, joiners))
209
+ // The decorator will run IMMEDIATELY when the model is loaded,
210
+ // by the LMLayer returning the decorated word breaker to the
211
+ // LMLayer model.
212
+ let joinerExpr = JSON.stringify(spec.joinWordsAt);
213
+ return `(${decorateWithJoin.toString()}(${existingWordBreakerCode}, ${joinerExpr}))`;
214
+ }
215
+ function compileScriptOverrides(spec, existingWordBreakerCode) {
216
+ return `(${decorateWithScriptOverrides.toString()}(${existingWordBreakerCode}, '${spec.overrideScriptDefaults}'))`;
217
+ }
218
+ /**
219
+ * @internal
220
+ * Compiles the base word breaker, that may be decorated later.
221
+ * Returns the source code of a JavaScript expression.
222
+ */
223
+ function compileInnerWordBreaker(spec) {
224
+ if (typeof spec === "string") {
225
+ // It must be a builtin word breaker, so just instantiate it.
226
+ return `wordBreakers['${spec}']`;
227
+ }
228
+ else {
229
+ // It must be a function:
230
+ return spec.toString()
231
+ // Note: the .toString() might just be the property name, but we want a
232
+ // plain function:
233
+ .replace(/^wordBreak(ing|er)\b/, 'function');
234
+ }
235
+ }
236
+ /**
237
+ * @internal
238
+ * Given a word breaker specification in any of the messy ways,
239
+ * normalizes it to a common form that the compiler can deal with.
240
+ */
241
+ function normalizeWordBreakerSpec(wordBreakerSpec) {
242
+ if (wordBreakerSpec == undefined) {
243
+ // Use the default word breaker when it's unspecified
244
+ return { use: 'default' };
245
+ }
246
+ else if (isSimpleWordBreaker(wordBreakerSpec)) {
247
+ // The word breaker was passed as a literal function; use its source code.
248
+ return { use: wordBreakerSpec };
249
+ }
250
+ else if (wordBreakerSpec.use) {
251
+ return wordBreakerSpec;
252
+ }
253
+ else {
254
+ throw new ModelCompilerError(ModelCompilerMessages.Error_UnknownWordBreaker({ spec: wordBreakerSpec.toString() }));
255
+ }
256
+ }
257
+ /**
258
+ * @internal
259
+ */
260
+ function isSimpleWordBreaker(spec) {
261
+ return typeof spec === "function" || spec === "default" || spec === "ascii";
262
+ }
263
263
  //# sourceMappingURL=lexical-model-compiler.js.map
264
+ //# debugId=a2771fa9-b2ba-5ab4-a686-2a6178b42cc3
@@ -1 +1 @@
1
- {"debug_id":"719bbea3-035d-5f91-bf8b-44e7affdb351","file":"lexical-model-compiler.js","mappings":";AAAA;;EAEE;AAEF,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAC,2BAA2B,EAAC,MAA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,CAAC;KAC3B;SAAM,IAAI,mBAAmB,CAAC,eAAe,CAAC,EAAE;QAC/C,0EAA0E;QAC1E,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;KACjC;SAAM,IAAI,eAAe,CAAC,GAAG,EAAE;QAC9B,OAAO,eAAe,CAAC;KACxB;SAAM;QACL,MAAM,IAAI,kBAAkB,CAAC,qBAAqB,CAAC,wBAAwB,CAAC,EAAC,IAAI,EAAE,eAAe,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC,CAAC;KAClH;AACH,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAAC,IAA6C;IACxE,OAAO,OAAO,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,OAAO,CAAC;AAC9E,CAAC","names":[],"sourceRoot":"","sources":["../../src/lexical-model-compiler.ts"],"version":3}
1
+ {"version":3,"file":"lexical-model-compiler.js","sources":["../../src/lexical-model-compiler.ts"],"sourceRoot":"","names":[],"mappings":"AAAA;;EAEE;;;AAEF,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAC,2BAA2B,EAAC,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAUzE,CAAC;AAYD,CAAC;AAYD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,oBAAoB;IAE/B;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CAAC,SAA4B,EAAE,QAAyB;QAChE,oBAAoB,CAAC,SAAS,CAAC,CAAC;Q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GAEG;AACH,SAAS,mBAAmB,CAAC,IAA6C;IACxE,OAAO,OAAO,IAAI,KAAK,UAAU,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,OAAO,CAAC;AAC9E,CAAC","debug_id":"a2771fa9-b2ba-5ab4-a686-2a6178b42cc3"}
@@ -1,8 +1,9 @@
1
- !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]="db833885-8485-590d-8312-b220c28096e9")}catch(e){}}();
2
- /**
3
- * Interfaces and constants used by the lexical model compiler. These target
4
- * the LMLayer's internal worker code, so we provide those definitions too.
5
- */
6
- export {};
7
- //# debugId=db833885-8485-590d-8312-b220c28096e9
1
+ /**
2
+ * Interfaces and constants used by the lexical model compiler. These target
3
+ * the LMLayer's internal worker code, so we provide those definitions too.
4
+ */
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]="32dc87cd-273e-5e68-a45e-8caa21bd9e0b")}catch(e){}}();
7
+ export {};
8
8
  //# sourceMappingURL=lexical-model.js.map
9
+ //# debugId=32dc87cd-273e-5e68-a45e-8caa21bd9e0b
@@ -1 +1 @@
1
- {"debug_id":"db833885-8485-590d-8312-b220c28096e9","file":"lexical-model.js","mappings":";AAAA;;;GAGG","names":[],"sourceRoot":"","sources":["../../src/lexical-model.ts"],"version":3}
1
+ {"version":3,"file":"lexical-model.js","sources":["../../src/lexical-model.ts"],"sourceRoot":"","names":[],"mappings":"AAAA;;;GAGG","debug_id":"32dc87cd-273e-5e68-a45e-8caa21bd9e0b"}
package/build/src/main.js CHANGED
@@ -1,5 +1,6 @@
1
- !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]="178380da-30fc-5d27-8aed-e4805f1433b1")}catch(e){}}();
2
- export { LexicalModelCompiler } from './lexical-model-compiler.js';
3
- export { ModelCompilerMessages } from './model-compiler-messages.js';
4
- //# debugId=178380da-30fc-5d27-8aed-e4805f1433b1
1
+
2
+ !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]="37c78d68-32c7-52c8-b59a-264dd8b1c0a7")}catch(e){}}();
3
+ export { LexicalModelCompiler } from './lexical-model-compiler.js';
4
+ export { ModelCompilerMessages } from './model-compiler-messages.js';
5
5
  //# sourceMappingURL=main.js.map
6
+ //# debugId=37c78d68-32c7-52c8-b59a-264dd8b1c0a7
@@ -1 +1 @@
1
- {"debug_id":"178380da-30fc-5d27-8aed-e4805f1433b1","file":"main.js","mappings":";AAAA,OAAO,EAAE,oBAAoB,EAA6D,MAAM,6BAA6B,CAAC;AAS9H,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC","names":[],"sourceRoot":"","sources":["../../src/main.ts"],"version":3}
1
+ {"version":3,"file":"main.js","sources":["../../src/main.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,EAAE,oBAAoB,EAA6D,MAAM,6BAA6B,CAAC;AAS9H,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC","debug_id":"37c78d68-32c7-52c8-b59a-264dd8b1c0a7"}