@almadar/core 10.129.0 → 11.0.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.
Files changed (132) hide show
  1. package/dist/behavior-package.d.ts +49 -11
  2. package/dist/behavior-package.js +1 -1
  3. package/dist/{orbital-CkFdDS9f.d.ts → builders-BhnofAik.d.ts} +5966 -7116
  4. package/dist/builders.d.ts +6 -6
  5. package/dist/builders.js +7 -6
  6. package/dist/{bus-CcbB__oo.d.ts → bus-BrRFWDQK.d.ts} +270 -354
  7. package/dist/chunk-347APWFM.js +286 -0
  8. package/dist/chunk-347APWFM.js.map +1 -0
  9. package/dist/chunk-3URQAGD7.js +98 -0
  10. package/dist/chunk-3URQAGD7.js.map +1 -0
  11. package/dist/chunk-7GHJU5WI.js +39 -0
  12. package/dist/chunk-7GHJU5WI.js.map +1 -0
  13. package/dist/chunk-B4MNHGBP.js +8 -0
  14. package/dist/chunk-B4MNHGBP.js.map +1 -0
  15. package/dist/{chunk-KDMV222Q.js → chunk-F6KHUW7T.js} +304 -373
  16. package/dist/chunk-F6KHUW7T.js.map +1 -0
  17. package/dist/chunk-FGT5OS2Y.js +918 -0
  18. package/dist/chunk-FGT5OS2Y.js.map +1 -0
  19. package/dist/chunk-FQLEAMAB.js +24 -0
  20. package/dist/chunk-FQLEAMAB.js.map +1 -0
  21. package/dist/chunk-HEXOGHQ4.js +3264 -0
  22. package/dist/chunk-HEXOGHQ4.js.map +1 -0
  23. package/dist/chunk-JCD6GLBX.js +412 -0
  24. package/dist/chunk-JCD6GLBX.js.map +1 -0
  25. package/dist/{chunk-QUOTJULD.js → chunk-MGLG2XLD.js} +20 -219
  26. package/dist/chunk-MGLG2XLD.js.map +1 -0
  27. package/dist/chunk-MTBEBSNO.js +1293 -0
  28. package/dist/chunk-MTBEBSNO.js.map +1 -0
  29. package/dist/{chunk-X4SC7FGF.js → chunk-RGACZEYC.js} +99 -96
  30. package/dist/chunk-RGACZEYC.js.map +1 -0
  31. package/dist/{chunk-RYPVOI6H.js → chunk-UZPYYI37.js} +524 -26
  32. package/dist/{chunk-RYPVOI6H.js.map → chunk-UZPYYI37.js.map} +1 -1
  33. package/dist/chunk-VG7BRFUD.js +152 -0
  34. package/dist/chunk-VG7BRFUD.js.map +1 -0
  35. package/dist/chunk-Y2DYZPP5.js +2329 -0
  36. package/dist/chunk-Y2DYZPP5.js.map +1 -0
  37. package/dist/chunk-ZEI7C32D.js +1566 -0
  38. package/dist/chunk-ZEI7C32D.js.map +1 -0
  39. package/dist/{domain-Dz3jP-UM.d.ts → domain-CfKPpXCP.d.ts} +51 -51
  40. package/dist/{effect-result-Bebwu9yT.d.ts → effect-result-DPERsn_v.d.ts} +641 -851
  41. package/dist/{effect-CiEVLsZz.d.ts → effect-wP-IdRt2.d.ts} +236 -443
  42. package/dist/{expression-D0Fs0riG.d.ts → expression-DirYKz-f.d.ts} +5 -13
  43. package/dist/factory/index.d.ts +7 -144
  44. package/dist/factory/index.js +8 -8
  45. package/dist/factory-runtime/index.d.ts +7 -6
  46. package/dist/factory-runtime/index.js +527 -8
  47. package/dist/factory-runtime/index.js.map +1 -1
  48. package/dist/fixtures.d.ts +9 -11
  49. package/dist/fixtures.js +12 -8
  50. package/dist/fixtures.js.map +1 -1
  51. package/dist/i18n/index.d.ts +15 -19
  52. package/dist/i18n/index.js +2 -1
  53. package/dist/{index-BC-Jycqj.d.ts → index-DomgmRBG.d.ts} +29 -729
  54. package/dist/index.d.ts +69 -247
  55. package/dist/index.js +322 -986
  56. package/dist/index.js.map +1 -1
  57. package/dist/kernel-wire.d.ts +3 -3
  58. package/dist/kernel-wire.js +3 -79
  59. package/dist/kernel-wire.js.map +1 -1
  60. package/dist/language/constructs.json +22 -2
  61. package/dist/language/program-types.json +203 -22
  62. package/dist/language/protocols.json +46 -0
  63. package/dist/language/ui-vocabulary.json +1697 -0
  64. package/dist/language/validation-codes.json +1205 -1215
  65. package/dist/language/vocabulary.json +44 -8
  66. package/dist/language-data.d.ts +7 -4
  67. package/dist/language-data.js +20 -14
  68. package/dist/language-data.js.map +1 -1
  69. package/dist/patterns/component-mapping.json +11 -1
  70. package/dist/patterns/definitions.d.ts +2 -2
  71. package/dist/patterns/definitions.js +1 -1
  72. package/dist/patterns/event-contracts.json +1 -15
  73. package/dist/patterns/index.d.ts +24 -120
  74. package/dist/patterns/index.js +3 -3
  75. package/dist/patterns/patterns-registry.json +522 -24
  76. package/dist/patterns/registry.json +522 -24
  77. package/dist/trait-CzG9M89M.d.ts +3519 -0
  78. package/dist/types/index.d.ts +9 -10
  79. package/dist/types/index.js +11 -5
  80. package/dist/{types-DGwrltUF.d.ts → types-BHlTjwWd.d.ts} +3 -3
  81. package/fixtures/events-wire/client-effects-by-trait/response.json +0 -18
  82. package/fixtures/events-wire/client-effects-provenance/response.json +0 -18
  83. package/fixtures/events-wire/effect-results-every-kind/response.json +2 -27
  84. package/fixtures/events-wire/navigate-1/response.json +8 -5
  85. package/fixtures/events-wire/navigate-2/response.json +11 -8
  86. package/fixtures/events-wire/navigate-3/response.json +14 -11
  87. package/fixtures/events-wire/navigate-back/response.json +7 -4
  88. package/fixtures/events-wire/render-ui-3/response.json +12 -9
  89. package/fixtures/events-wire/render-ui-clear/response.json +0 -7
  90. package/fixtures/events-wire/sse-stream/response.json +0 -20
  91. package/fixtures/events-wire/sse-stream/stream.json +0 -20
  92. package/fixtures/events-wire/stateless-traits/response.json +14 -5
  93. package/fixtures/kernel-wire/golden/basic-entity.json +1687 -0
  94. package/fixtures/kernel-wire/golden/entity-rerender.json +743 -0
  95. package/fixtures/kernel-wire/golden/rollback.json +793 -0
  96. package/fixtures/kernel-wire/golden/tick-counter.json +1538 -0
  97. package/fixtures/kernel-wire/golden/two-orbital-chore.json +847 -0
  98. package/fixtures/kernel-wire/golden/two-orbital-task.json +457 -0
  99. package/fixtures/kernel-wire/played-step.json +136 -0
  100. package/fixtures/kernel-wire/scripts/basic-entity.json +28 -0
  101. package/fixtures/kernel-wire/scripts/entity-rerender.json +13 -0
  102. package/fixtures/kernel-wire/scripts/rollback.json +53 -0
  103. package/fixtures/kernel-wire/scripts/tick-counter.json +26 -0
  104. package/fixtures/kernel-wire/scripts/two-orbital-chore.json +9 -0
  105. package/fixtures/kernel-wire/scripts/two-orbital-task.json +9 -0
  106. package/package.json +28 -19
  107. package/dist/builders-DmZE5By0.d.ts +0 -2663
  108. package/dist/chunk-45I2O4SJ.js +0 -4646
  109. package/dist/chunk-45I2O4SJ.js.map +0 -1
  110. package/dist/chunk-6LR43Z5E.js +0 -3061
  111. package/dist/chunk-6LR43Z5E.js.map +0 -1
  112. package/dist/chunk-GIUA3NUJ.js +0 -809
  113. package/dist/chunk-GIUA3NUJ.js.map +0 -1
  114. package/dist/chunk-GTY53NS5.js +0 -1908
  115. package/dist/chunk-GTY53NS5.js.map +0 -1
  116. package/dist/chunk-JOHDVS6J.js +0 -1614
  117. package/dist/chunk-JOHDVS6J.js.map +0 -1
  118. package/dist/chunk-KDMV222Q.js.map +0 -1
  119. package/dist/chunk-QRHJUS3D.js +0 -23
  120. package/dist/chunk-QRHJUS3D.js.map +0 -1
  121. package/dist/chunk-QUOTJULD.js.map +0 -1
  122. package/dist/chunk-V5VNGRVU.js +0 -66
  123. package/dist/chunk-V5VNGRVU.js.map +0 -1
  124. package/dist/chunk-X4SC7FGF.js.map +0 -1
  125. package/dist/entityAccess-BPSz1i2n.d.ts +0 -80
  126. package/dist/mock/index.d.ts +0 -153
  127. package/dist/mock/index.js +0 -190
  128. package/dist/mock/index.js.map +0 -1
  129. package/dist/schema-T5RT5s6H.d.ts +0 -282
  130. package/dist/state-machine/index.d.ts +0 -359
  131. package/dist/state-machine/index.js +0 -3
  132. package/dist/state-machine/index.js.map +0 -1
@@ -0,0 +1,2329 @@
1
+ import { setOwn } from './chunk-B4MNHGBP.js';
2
+
3
+ // src/i18n/orb-notation.json
4
+ var orb_notation_default = {
5
+ keys: [
6
+ "2xl",
7
+ "3xl",
8
+ "4xl",
9
+ "accent",
10
+ "accentForeground",
11
+ "accentImage",
12
+ "awaitingSkeleton",
13
+ "backdrop",
14
+ "background",
15
+ "base",
16
+ "bodyDefault",
17
+ "bodyEmphasis",
18
+ "bodyFamily",
19
+ "bodyQuiet",
20
+ "border",
21
+ "borderHairline",
22
+ "borderHeavy",
23
+ "borderHover",
24
+ "borderStandard",
25
+ "borderStyle",
26
+ "borderStyleInteractive",
27
+ "busyDelay",
28
+ "buttonHeightLg",
29
+ "buttonHeightMd",
30
+ "buttonHeightSm",
31
+ "caption",
32
+ "card",
33
+ "cardElevation",
34
+ "cardForeground",
35
+ "cardImage",
36
+ "cardPaddingLg",
37
+ "cardPaddingMd",
38
+ "cardPaddingSm",
39
+ "corner",
40
+ "cornerShape",
41
+ "cornerShapeInteractive",
42
+ "cornerShapePill",
43
+ "dash",
44
+ "defaultSize",
45
+ "dialogElevation",
46
+ "dialogPadding",
47
+ "display-1",
48
+ "display-2",
49
+ "displayFamily",
50
+ "dot",
51
+ "dramatic",
52
+ "duration",
53
+ "durations",
54
+ "easing",
55
+ "easings",
56
+ "edgeHeight",
57
+ "edgeMask",
58
+ "emphasized",
59
+ "emptyAsset",
60
+ "enter",
61
+ "enterRise",
62
+ "enterScale",
63
+ "enterSlide",
64
+ "entry",
65
+ "error",
66
+ "errorAsset",
67
+ "errorForeground",
68
+ "exit",
69
+ "expand",
70
+ "family",
71
+ "fast",
72
+ "fillOpacity",
73
+ "fillStyle",
74
+ "fog",
75
+ "fontImport",
76
+ "foreground",
77
+ "glow",
78
+ "headingMajor",
79
+ "headingMinor",
80
+ "headingShadow",
81
+ "headingStyle",
82
+ "headingTracking",
83
+ "headingTransform",
84
+ "headingWeight",
85
+ "hover",
86
+ "info",
87
+ "infoForeground",
88
+ "inputHeightLg",
89
+ "inputHeightMd",
90
+ "inputHeightSm",
91
+ "instant",
92
+ "intents",
93
+ "interactiveElevation",
94
+ "labelCase",
95
+ "labelFont",
96
+ "labelSize",
97
+ "labelWeight",
98
+ "lg",
99
+ "lightAmbient",
100
+ "lightKey",
101
+ "lightKeyColor",
102
+ "lineCap",
103
+ "lineHeight",
104
+ "lineJoin",
105
+ "linear",
106
+ "loadingAsset",
107
+ "marker",
108
+ "materialFlat",
109
+ "materialMetalness",
110
+ "materialOutline",
111
+ "materialRoughness",
112
+ "modalEnter",
113
+ "modalExit",
114
+ "monoFamily",
115
+ "muted",
116
+ "mutedForeground",
117
+ "normal",
118
+ "numeric",
119
+ "onboardingAsset",
120
+ "pageEnter",
121
+ "pageImage",
122
+ "pageImageSize",
123
+ "placeholder",
124
+ "popoverElevation",
125
+ "popoverEnter",
126
+ "popoverExit",
127
+ "press",
128
+ "pressedElevation",
129
+ "primary",
130
+ "primaryForeground",
131
+ "primaryHover",
132
+ "radiusContainer",
133
+ "radiusInteractive",
134
+ "radiusPill",
135
+ "ring",
136
+ "roughness",
137
+ "rowHeightCompact",
138
+ "rowHeightNormal",
139
+ "rowHeightSpacious",
140
+ "scale",
141
+ "scrim",
142
+ "secondary",
143
+ "secondaryForeground",
144
+ "secondaryHover",
145
+ "sectionGap",
146
+ "shadow",
147
+ "shapes",
148
+ "size",
149
+ "slow",
150
+ "sm",
151
+ "space0",
152
+ "space1",
153
+ "space10",
154
+ "space11",
155
+ "space12",
156
+ "space2",
157
+ "space3",
158
+ "space4",
159
+ "space5",
160
+ "space6",
161
+ "space7",
162
+ "space8",
163
+ "space9",
164
+ "spring",
165
+ "stagger",
166
+ "standard",
167
+ "strokeBold",
168
+ "strokeNormal",
169
+ "strokeThin",
170
+ "strokeWidth",
171
+ "success",
172
+ "successForeground",
173
+ "surfaceHover",
174
+ "tableBorder",
175
+ "tableHeader",
176
+ "tableRowHover",
177
+ "textureMask",
178
+ "textureSize",
179
+ "toastElevation",
180
+ "toastEnter",
181
+ "toastExit",
182
+ "warning",
183
+ "warningForeground",
184
+ "weight",
185
+ "xl",
186
+ "xs"
187
+ ]
188
+ };
189
+
190
+ // src/i18n/en.json
191
+ var en_default = {
192
+ meta: {
193
+ code: "en",
194
+ name: "English",
195
+ rtl: false
196
+ },
197
+ keywords: {
198
+ app: "app",
199
+ orbital: "orbital",
200
+ uses: "uses",
201
+ expects: "expects",
202
+ entity: "entity",
203
+ type: "type",
204
+ trait: "trait",
205
+ initial: "initial",
206
+ state: "state",
207
+ for: "for",
208
+ page: "page",
209
+ as: "as",
210
+ theme: "theme",
211
+ emits: "emits",
212
+ listens: "listens",
213
+ ticks: "ticks",
214
+ config: "config",
215
+ when: "when",
216
+ with: "with",
217
+ per: "per",
218
+ from: "from",
219
+ to: "to",
220
+ every: "every",
221
+ capabilities: "capabilities",
222
+ match: "match",
223
+ external: "external",
224
+ internal: "internal",
225
+ on: "on",
226
+ name: "name",
227
+ fields: "fields",
228
+ events: "events",
229
+ event: "event",
230
+ emitsScope: "emitsScope",
231
+ identity: "identity",
232
+ pages: "pages",
233
+ omit: "omit",
234
+ only: "only",
235
+ roles: "roles",
236
+ entities: "entities",
237
+ extend: "extend",
238
+ retype: "retype",
239
+ traits: "traits",
240
+ mock: "mock",
241
+ lazy: "lazy",
242
+ locales: "locales",
243
+ egress: "egress",
244
+ store: "store",
245
+ themes: "themes",
246
+ public: "public",
247
+ instances: "instances",
248
+ access: "access",
249
+ indexing: "indexing",
250
+ title: "title",
251
+ description: "description",
252
+ origin: "origin",
253
+ icon: "icon",
254
+ siteName: "siteName",
255
+ signIn: "signIn",
256
+ authenticated: "authenticated",
257
+ index: "index",
258
+ noindex: "noindex",
259
+ version: "version",
260
+ translationOf: "translationOf",
261
+ notFound: "notFound",
262
+ label: "label",
263
+ inbound: "inbound",
264
+ answers: "answers",
265
+ verifies: "verifies",
266
+ fs: "fs",
267
+ exec: "exec",
268
+ net: "net",
269
+ env: "env",
270
+ stdio: "stdio",
271
+ sys: "sys",
272
+ desktop: "desktop",
273
+ kv: "kv",
274
+ dev: "dev",
275
+ mem: "mem",
276
+ kernel: "kernel",
277
+ ffi: "ffi",
278
+ credentials: "credentials",
279
+ deployment: "deployment",
280
+ input: "input",
281
+ http: "http",
282
+ boot: "boot"
283
+ },
284
+ shapes: {
285
+ Entity: "Entity",
286
+ Trait: "Trait",
287
+ Page: "Page",
288
+ Orbital: "Orbital",
289
+ Event: "Event"
290
+ },
291
+ tags: {
292
+ persistent: "persistent",
293
+ runtime: "runtime",
294
+ shared: "shared",
295
+ client: "client",
296
+ optimistic: "optimistic",
297
+ server: "server",
298
+ browser: "browser",
299
+ identity: "identity",
300
+ self: "self",
301
+ background: "background",
302
+ visible: "visible",
303
+ store: "store"
304
+ },
305
+ categories: {},
306
+ capabilities: {
307
+ read: "read",
308
+ write: "write",
309
+ browse: "browse",
310
+ create: "create",
311
+ upsert: "upsert",
312
+ update: "update",
313
+ delete: "delete",
314
+ notify: "notify",
315
+ schedule: "schedule",
316
+ invoke: "invoke",
317
+ batch: "batch"
318
+ },
319
+ annotations: {
320
+ key: "key",
321
+ unique: "unique",
322
+ intrinsic: "intrinsic",
323
+ label: "label",
324
+ description: "description",
325
+ synonyms: "synonyms",
326
+ mock: "mock",
327
+ tier: "tier",
328
+ rebindable: "rebindable",
329
+ read: "read",
330
+ create: "create",
331
+ update: "update",
332
+ delete: "delete",
333
+ icon: "icon",
334
+ roles: "roles",
335
+ invariant: "invariant",
336
+ holds: "holds",
337
+ ensures: "ensures",
338
+ index: "index",
339
+ derived: "derived",
340
+ display: "display"
341
+ },
342
+ sigils: {
343
+ entity: "entity",
344
+ payload: "payload",
345
+ state: "state",
346
+ now: "now",
347
+ config: "config",
348
+ user: "user",
349
+ trait: "trait",
350
+ event: "event",
351
+ prevEvents: "prevEvents",
352
+ prevStates: "prevStates",
353
+ fromState: "fromState",
354
+ toState: "toState",
355
+ fromEntity: "fromEntity",
356
+ locale: "locale"
357
+ },
358
+ effects: {
359
+ set: "set",
360
+ fetch: "fetch",
361
+ persist: "persist",
362
+ emit: "emit",
363
+ navigate: "navigate",
364
+ "navigate-back": "navigate-back",
365
+ "render-ui": "render-ui",
366
+ notify: "notify",
367
+ "call-service": "call-service",
368
+ "cancel-call": "cancel-call",
369
+ invoke: "invoke",
370
+ do: "do",
371
+ if: "if",
372
+ let: "let",
373
+ fn: "fn",
374
+ quote: "quote",
375
+ quasiquote: "quasiquote",
376
+ unquote: "unquote",
377
+ match: "match",
378
+ when: "when",
379
+ "random-bytes": "random-bytes",
380
+ "credential-connect": "credential-connect",
381
+ "credential-status": "credential-status",
382
+ "credential-forget": "credential-forget",
383
+ "credential-list": "credential-list",
384
+ "credential-set": "credential-set",
385
+ "credential-remove": "credential-remove",
386
+ "credential-test": "credential-test",
387
+ "credential-mode": "credential-mode",
388
+ "credential-rotate": "credential-rotate",
389
+ "oauth-authorize": "oauth-authorize",
390
+ "oauth-connection-status": "oauth-connection-status",
391
+ "oauth-connection-forget": "oauth-connection-forget"
392
+ },
393
+ types: {
394
+ string: "string",
395
+ field: "field",
396
+ number: "number",
397
+ int: "int",
398
+ float: "float",
399
+ i8: "i8",
400
+ i16: "i16",
401
+ i32: "i32",
402
+ i64: "i64",
403
+ u8: "u8",
404
+ u16: "u16",
405
+ u32: "u32",
406
+ u64: "u64",
407
+ f32: "f32",
408
+ f64: "f64",
409
+ bool: "bool",
410
+ boolean: "boolean",
411
+ timestamp: "timestamp",
412
+ date: "date",
413
+ datetime: "datetime",
414
+ instant: "instant",
415
+ duration: "duration",
416
+ money: "money",
417
+ file: "file",
418
+ bytes: "bytes",
419
+ email: "email",
420
+ url: "url",
421
+ phone: "phone",
422
+ uuid: "uuid",
423
+ image: "image",
424
+ icon: "icon",
425
+ asset: "asset",
426
+ component: "component",
427
+ object: "object",
428
+ array: "array",
429
+ enum: "enum",
430
+ relation: "relation",
431
+ node: "node",
432
+ union: "union",
433
+ tuple: "tuple",
434
+ void: "void",
435
+ null: "null",
436
+ any: "any",
437
+ trait: "trait",
438
+ orbital: "orbital",
439
+ behavior: "behavior",
440
+ entity: "entity",
441
+ event: "event",
442
+ EventAddress: "EventAddress",
443
+ CallKey: "CallKey",
444
+ slot: "slot",
445
+ pattern: "pattern",
446
+ Map: "Map",
447
+ secret: "secret",
448
+ SExpr: "SExpr"
449
+ },
450
+ units: {
451
+ ms: "ms",
452
+ s: "s",
453
+ m: "m",
454
+ h: "h",
455
+ d: "d"
456
+ },
457
+ literals: {
458
+ true: "true",
459
+ false: "false",
460
+ null: "null"
461
+ },
462
+ reservedEvents: {
463
+ INIT: "INIT"
464
+ },
465
+ orb: {
466
+ _metadata: "_metadata",
467
+ _resolved: "_resolved",
468
+ access_waivers: "access_waivers",
469
+ ensures: "ensures",
470
+ holds: "holds",
471
+ invariants: "invariants",
472
+ indexes: "indexes",
473
+ derived: "derived",
474
+ orderBy: "orderBy",
475
+ alias: "alias",
476
+ animations: "animations",
477
+ appliesTo: "appliesTo",
478
+ as: "as",
479
+ aspect: "aspect",
480
+ assetRef: "assetRef",
481
+ at: "at",
482
+ auth: "auth",
483
+ auxiliaryEntities: "auxiliaryEntities",
484
+ awaitRender: "awaitRender",
485
+ bakedName: "bakedName",
486
+ baseUrl: "baseUrl",
487
+ behavior: "behavior",
488
+ capabilities: "capabilities",
489
+ cardinality: "cardinality",
490
+ category: "category",
491
+ className: "className",
492
+ classification: "classification",
493
+ collection: "collection",
494
+ color: "color",
495
+ colors: "colors",
496
+ columns: "columns",
497
+ component: "component",
498
+ config: "config",
499
+ configProvenance: "configProvenance",
500
+ container: "container",
501
+ content: "content",
502
+ create: "create",
503
+ create_policy: "create_policy",
504
+ createdAt: "createdAt",
505
+ curName: "curName",
506
+ customPatterns: "customPatterns",
507
+ darkMode: "darkMode",
508
+ dataEntities: "dataEntities",
509
+ default: "default",
510
+ definerKnob: "definerKnob",
511
+ delayMs: "delayMs",
512
+ delete: "delete",
513
+ delete_policy: "delete_policy",
514
+ density: "density",
515
+ description: "description",
516
+ description_visual_prompt: "description_visual_prompt",
517
+ design: "design",
518
+ designTokens: "designTokens",
519
+ desktop: "desktop",
520
+ detailPattern: "detailPattern",
521
+ device: "device",
522
+ dimension: "dimension",
523
+ displayName: "displayName",
524
+ domainContext: "domainContext",
525
+ effectRow: "effectRow",
526
+ effects: "effects",
527
+ elevation: "elevation",
528
+ emitIds: "emitIds",
529
+ emits: "emits",
530
+ emitsScope: "emitsScope",
531
+ enabled: "enabled",
532
+ entities: "entities",
533
+ entity: "entity",
534
+ entityBindingDescription: "entityBindingDescription",
535
+ entityBindingSynonyms: "entityBindingSynonyms",
536
+ entityContract: "entityContract",
537
+ entityId: "entityId",
538
+ entityRebindable: "entityRebindable",
539
+ entityRefIds: "entityRefIds",
540
+ entries: "entries",
541
+ env: "env",
542
+ equals: "equals",
543
+ event: "event",
544
+ eventId: "eventId",
545
+ eventIds: "eventIds",
546
+ events: "events",
547
+ exec: "exec",
548
+ expects: "expects",
549
+ exposes: "exposes",
550
+ extend: "extend",
551
+ retype: "retype",
552
+ extends: "extends",
553
+ extendsId: "extendsId",
554
+ external: "external",
555
+ field: "field",
556
+ fields: "fields",
557
+ fingerprint: "fingerprint",
558
+ flowPattern: "flowPattern",
559
+ foreignKey: "foreignKey",
560
+ formPattern: "formPattern",
561
+ forwardedFrom: "forwardedFrom",
562
+ from: "from",
563
+ fs: "fs",
564
+ geometry: "geometry",
565
+ glob: "glob",
566
+ guard: "guard",
567
+ guards: "guards",
568
+ headers: "headers",
569
+ icon: "icon",
570
+ iconography: "iconography",
571
+ id: "id",
572
+ identity: "identity",
573
+ illustration: "illustration",
574
+ inbound: "inbound",
575
+ initialEffects: "initialEffects",
576
+ instances: "instances",
577
+ interactive: "interactive",
578
+ interval: "interval",
579
+ intrinsic: "intrinsic",
580
+ isFinal: "isFinal",
581
+ isInitial: "isInitial",
582
+ isNotFound: "isNotFound",
583
+ isTerminal: "isTerminal",
584
+ item: "item",
585
+ items: "items",
586
+ key: "key",
587
+ keyName: "keyName",
588
+ kind: "kind",
589
+ kinds: "kinds",
590
+ knob: "knob",
591
+ label: "label",
592
+ lazy: "lazy",
593
+ lazyPages: "lazyPages",
594
+ after: "after",
595
+ backgroundTicks: "backgroundTicks",
596
+ dispatchMode: "dispatchMode",
597
+ places: "places",
598
+ themeDefinitions: "themeDefinitions",
599
+ ledger: "ledger",
600
+ linkedEntity: "linkedEntity",
601
+ linkedEntityId: "linkedEntityId",
602
+ listPattern: "listPattern",
603
+ listened: "listened",
604
+ listens: "listens",
605
+ local: "local",
606
+ locales: "locales",
607
+ location: "location",
608
+ max: "max",
609
+ maxAttempts: "maxAttempts",
610
+ mergedFrom: "mergedFrom",
611
+ projectedFrom: "projectedFrom",
612
+ messageSources: "messageSources",
613
+ min: "min",
614
+ mock: "mock",
615
+ modes: "modes",
616
+ motion: "motion",
617
+ mounts: "mounts",
618
+ name: "name",
619
+ nestedForwardedFrom: "nestedForwardedFrom",
620
+ net: "net",
621
+ omit: "omit",
622
+ onDelete: "onDelete",
623
+ onEntry: "onEntry",
624
+ onExit: "onExit",
625
+ only: "only",
626
+ orbRef: "orbRef",
627
+ orbital: "orbital",
628
+ orbitalId: "orbitalId",
629
+ orbitals: "orbitals",
630
+ originalEvent: "originalEvent",
631
+ originalName: "originalName",
632
+ outbound: "outbound",
633
+ owner: "owner",
634
+ pageIds: "pageIds",
635
+ pages: "pages",
636
+ parent: "parent",
637
+ path: "path",
638
+ pattern: "pattern",
639
+ patternPath: "patternPath",
640
+ payload: "payload",
641
+ payloadEntity: "payloadEntity",
642
+ payloadFor: "payloadFor",
643
+ payloadMapping: "payloadMapping",
644
+ payloadSchema: "payloadSchema",
645
+ persistence: "persistence",
646
+ personas: "personas",
647
+ presentation: "presentation",
648
+ primaryColor: "primaryColor",
649
+ primaryEntity: "primaryEntity",
650
+ primaryKey: "primaryKey",
651
+ priority: "priority",
652
+ prop: "prop",
653
+ properties: "properties",
654
+ props: "props",
655
+ provides: "provides",
656
+ publicDir: "publicDir",
657
+ radii: "radii",
658
+ read: "read",
659
+ read_policy: "read_policy",
660
+ reconnect: "reconnect",
661
+ ref: "ref",
662
+ refId: "refId",
663
+ reference: "reference",
664
+ relatedLinks: "relatedLinks",
665
+ relation: "relation",
666
+ renames: "renames",
667
+ request: "request",
668
+ requestFragment: "requestFragment",
669
+ required: "required",
670
+ requiredFields: "requiredFields",
671
+ requires: "requires",
672
+ resolved: "resolved",
673
+ resource: "resource",
674
+ role: "role",
675
+ roles: "roles",
676
+ rows: "rows",
677
+ runsInBackground: "runsInBackground",
678
+ runtime: "runtime",
679
+ schemaVersion: "schemaVersion",
680
+ scope: "scope",
681
+ scopeOverridden: "scopeOverridden",
682
+ secretEnv: "secretEnv",
683
+ sections: "sections",
684
+ semanticRole: "semanticRole",
685
+ serverPath: "serverPath",
686
+ services: "services",
687
+ shadows: "shadows",
688
+ shape: "shape",
689
+ shared: "shared",
690
+ singleton: "singleton",
691
+ site: "site",
692
+ skeleton: "skeleton",
693
+ slot: "slot",
694
+ slots: "slots",
695
+ softDelete: "softDelete",
696
+ source: "source",
697
+ sourceBehavior: "sourceBehavior",
698
+ sourceDeclaration: "sourceDeclaration",
699
+ sourceEntityDefinition: "sourceEntityDefinition",
700
+ spacing: "spacing",
701
+ spec: "spec",
702
+ stack: "stack",
703
+ state: "state",
704
+ stateMachine: "stateMachine",
705
+ states: "states",
706
+ strict: "strict",
707
+ style: "style",
708
+ subDomain: "subDomain",
709
+ suggestedGuards: "suggestedGuards",
710
+ summary: "summary",
711
+ surface: "surface",
712
+ surfaces: "surfaces",
713
+ synonyms: "synonyms",
714
+ sys: "sys",
715
+ target: "target",
716
+ targetView: "targetView",
717
+ text: "text",
718
+ theme: "theme",
719
+ tick: "tick",
720
+ ticks: "ticks",
721
+ tier: "tier",
722
+ timeBoundMs: "timeBoundMs",
723
+ timeout: "timeout",
724
+ timestamps: "timestamps",
725
+ title: "title",
726
+ to: "to",
727
+ tokens: "tokens",
728
+ trait: "trait",
729
+ traitEmbedIds: "traitEmbedIds",
730
+ traitId: "traitId",
731
+ traitName: "traitName",
732
+ traitRefIds: "traitRefIds",
733
+ traits: "traits",
734
+ transition: "transition",
735
+ transitions: "transitions",
736
+ triggers: "triggers",
737
+ triggersId: "triggersId",
738
+ type: "type",
739
+ typeArgs: "typeArgs",
740
+ typeParams: "typeParams",
741
+ typeScale: "typeScale",
742
+ typeWhen: "typeWhen",
743
+ types: "types",
744
+ typography: "typography",
745
+ ui: "ui",
746
+ unique: "unique",
747
+ update: "update",
748
+ update_policy: "update_policy",
749
+ updatedAt: "updatedAt",
750
+ url: "url",
751
+ uses: "uses",
752
+ uxHints: "uxHints",
753
+ values: "values",
754
+ variant: "variant",
755
+ variants: "variants",
756
+ version: "version",
757
+ viewType: "viewType",
758
+ visual_prompt: "visual_prompt",
759
+ vocabulary: "vocabulary",
760
+ whileVisible: "whileVisible",
761
+ wired: "wired",
762
+ seedMock: "seedMock",
763
+ localeInstances: "localeInstances",
764
+ diagram: "diagram",
765
+ scene: "scene",
766
+ display: "display",
767
+ access: "access",
768
+ indexing: "indexing",
769
+ origin: "origin",
770
+ signIn: "signIn",
771
+ sourcePage: "sourcePage",
772
+ translationOf: "translationOf",
773
+ pageModifiers: "pageModifiers",
774
+ answers: "answers",
775
+ verifies: "verifies",
776
+ header: "header",
777
+ credential: "credential",
778
+ egress: "egress",
779
+ stdio: "stdio",
780
+ store: "store",
781
+ themes: "themes",
782
+ osGrants: "osGrants",
783
+ deployment: "deployment",
784
+ address: "address",
785
+ browser: "browser",
786
+ dispatch: "dispatch",
787
+ protocol: "protocol",
788
+ input: "input",
789
+ additionalProperties: "additionalProperties",
790
+ dispatchFacts: "dispatchFacts",
791
+ links: "links",
792
+ nullable: "nullable",
793
+ operatorSites: "operatorSites",
794
+ protocols: "protocols",
795
+ record: "record",
796
+ typeContractVersion: "typeContractVersion",
797
+ orb: "orb"
798
+ },
799
+ operators: {
800
+ "!=": "!=",
801
+ "%": "%",
802
+ "*": "*",
803
+ "+": "+",
804
+ "-": "-",
805
+ "/": "/",
806
+ "<": "<",
807
+ "<=": "<=",
808
+ "=": "=",
809
+ "==": "==",
810
+ ">": ">",
811
+ ">=": ">=",
812
+ "access-check": "access-check",
813
+ "aes-gcm/open": "aes-gcm/open",
814
+ "aes-gcm/seal": "aes-gcm/seal",
815
+ and: "and",
816
+ "anim/direction-from-delta": "anim/direction-from-delta",
817
+ "anim/frame-at": "anim/frame-at",
818
+ "anim/sheet-rect": "anim/sheet-rect",
819
+ "array/append": "array/append",
820
+ "array/avg": "array/avg",
821
+ "array/concat": "array/concat",
822
+ "array/cosine": "array/cosine",
823
+ "array/count": "array/count",
824
+ "array/drop": "array/drop",
825
+ "array/dropLast": "array/dropLast",
826
+ "array/every": "array/every",
827
+ "array/filter": "array/filter",
828
+ "array/find": "array/find",
829
+ "array/findIndex": "array/findIndex",
830
+ "array/first": "array/first",
831
+ "array/flatten": "array/flatten",
832
+ "array/groupBy": "array/groupBy",
833
+ "array/includes": "array/includes",
834
+ "array/indexOf": "array/indexOf",
835
+ "array/insert": "array/insert",
836
+ "array/last": "array/last",
837
+ "array/len": "array/len",
838
+ "array/map": "array/map",
839
+ "array/max": "array/max",
840
+ "array/min": "array/min",
841
+ "array/nearest": "array/nearest",
842
+ "array/nth": "array/nth",
843
+ "array/partition": "array/partition",
844
+ "array/prepend": "array/prepend",
845
+ "array/range": "array/range",
846
+ "array/reduce": "array/reduce",
847
+ "array/pmap": "array/pmap",
848
+ "array/preduce": "array/preduce",
849
+ "array/reject": "array/reject",
850
+ "array/remove": "array/remove",
851
+ "array/removeItem": "array/removeItem",
852
+ "array/reverse": "array/reverse",
853
+ "array/shuffle": "array/shuffle",
854
+ "array/slice": "array/slice",
855
+ "array/some": "array/some",
856
+ "array/sort": "array/sort",
857
+ "array/sum": "array/sum",
858
+ "array/take": "array/take",
859
+ "array/takeLast": "array/takeLast",
860
+ "array/unique": "array/unique",
861
+ "array/zip": "array/zip",
862
+ as: "as",
863
+ "audio/change-music": "audio/change-music",
864
+ "audio/play-sound": "audio/play-sound",
865
+ "audio/stop-music": "audio/stop-music",
866
+ "audio/stop-sound": "audio/stop-sound",
867
+ "auth/consent": "auth/consent",
868
+ "auth/sign-in": "auth/sign-in",
869
+ "auth/sign-out": "auth/sign-out",
870
+ "base64/decode": "base64/decode",
871
+ "base64/encode": "base64/encode",
872
+ "base64/valid": "base64/valid",
873
+ "behavior/apply": "behavior/apply",
874
+ "behavior/catalog": "behavior/catalog",
875
+ "behavior/compose": "behavior/compose",
876
+ "behavior/dependencies": "behavior/dependencies",
877
+ "behavior/describe": "behavior/describe",
878
+ "behavior/detect-layout": "behavior/detect-layout",
879
+ "behavior/packages": "behavior/packages",
880
+ "behavior/pipe": "behavior/pipe",
881
+ "behavior/ref": "behavior/ref",
882
+ "behavior/resolve": "behavior/resolve",
883
+ "behavior/source": "behavior/source",
884
+ "behavior/wire": "behavior/wire",
885
+ "bit/and": "bit/and",
886
+ "bit/not": "bit/not",
887
+ "bit/or": "bit/or",
888
+ "bit/rotl": "bit/rotl",
889
+ "bit/rotr": "bit/rotr",
890
+ "bit/shl": "bit/shl",
891
+ "bit/shr": "bit/shr",
892
+ "bit/xor": "bit/xor",
893
+ "brotli/compress": "brotli/compress",
894
+ "brotli/decompress": "brotli/decompress",
895
+ "browser/beacon": "browser/beacon",
896
+ "browser/clipboard-read": "browser/clipboard-read",
897
+ "browser/clipboard-write": "browser/clipboard-write",
898
+ "browser/embed": "browser/embed",
899
+ "browser/geolocation-current": "browser/geolocation-current",
900
+ "browser/open-file-picker": "browser/open-file-picker",
901
+ "browser/page-facts": "browser/page-facts",
902
+ "browser/prompt": "browser/prompt",
903
+ "browser/push-subscribe": "browser/push-subscribe",
904
+ "browser/tab-act": "browser/tab-act",
905
+ "browser/tab-apply": "browser/tab-apply",
906
+ "browser/tab-apply-many": "browser/tab-apply-many",
907
+ "browser/tab-capture": "browser/tab-capture",
908
+ "browser/tab-close": "browser/tab-close",
909
+ "browser/tab-list": "browser/tab-list",
910
+ "browser/tab-navigate": "browser/tab-navigate",
911
+ "browser/tab-open": "browser/tab-open",
912
+ "browser/tab-query": "browser/tab-query",
913
+ "browser/tab-unwatch": "browser/tab-unwatch",
914
+ "browser/tab-watch": "browser/tab-watch",
915
+ "bytes/at": "bytes/at",
916
+ "bytes/concat": "bytes/concat",
917
+ "bytes/equals": "bytes/equals",
918
+ "bytes/from-base64": "bytes/from-base64",
919
+ "bytes/from-string": "bytes/from-string",
920
+ "bytes/index-of": "bytes/index-of",
921
+ "bytes/length": "bytes/length",
922
+ "bytes/read-int": "bytes/read-int",
923
+ "bytes/read-uint": "bytes/read-uint",
924
+ "bytes/slice": "bytes/slice",
925
+ "bytes/to-base64": "bytes/to-base64",
926
+ "bytes/to-string": "bytes/to-string",
927
+ "bytes/valid-utf8": "bytes/valid-utf8",
928
+ "bytes/write-uint": "bytes/write-uint",
929
+ "call-service": "call-service",
930
+ "cancel-call": "cancel-call",
931
+ "credential-connect": "credential-connect",
932
+ "credential-forget": "credential-forget",
933
+ "credential-list": "credential-list",
934
+ "credential-mode": "credential-mode",
935
+ "credential-remove": "credential-remove",
936
+ "credential-rotate": "credential-rotate",
937
+ "credential-set": "credential-set",
938
+ "credential-status": "credential-status",
939
+ "credential-test": "credential-test",
940
+ "credential/byte-length": "credential/byte-length",
941
+ "csv/parse": "csv/parse",
942
+ default: "default",
943
+ despawn: "despawn",
944
+ do: "do",
945
+ "ease/apply": "ease/apply",
946
+ "ease/smoothstep": "ease/smoothstep",
947
+ "ecdh/p256-ephemeral": "ecdh/p256-ephemeral",
948
+ "ecdsa/p256-sign": "ecdsa/p256-sign",
949
+ "ecdsa/p256-verify": "ecdsa/p256-verify",
950
+ emit: "emit",
951
+ fetch: "fetch",
952
+ "fetch-stream": "fetch-stream",
953
+ fn: "fn",
954
+ "format/bytes": "format/bytes",
955
+ "format/creditCard": "format/creditCard",
956
+ "format/currency": "format/currency",
957
+ "format/list": "format/list",
958
+ "format/number": "format/number",
959
+ "format/ordinal": "format/ordinal",
960
+ "format/percent": "format/percent",
961
+ "format/phone": "format/phone",
962
+ "format/plural": "format/plural",
963
+ "geo/aabb-overlap": "geo/aabb-overlap",
964
+ "geo/circle-overlap": "geo/circle-overlap",
965
+ "geo/point-in-circle": "geo/point-in-circle",
966
+ "geo/point-in-rect": "geo/point-in-rect",
967
+ "geo/rect-circle-overlap": "geo/rect-circle-overlap",
968
+ "geo/reflect": "geo/reflect",
969
+ "geo/segment-intersect": "geo/segment-intersect",
970
+ "grid/cells-in-radius": "grid/cells-in-radius",
971
+ "grid/distance": "grid/distance",
972
+ "grid/from-world": "grid/from-world",
973
+ "grid/in-bounds": "grid/in-bounds",
974
+ "grid/iso-to-screen": "grid/iso-to-screen",
975
+ "grid/line": "grid/line",
976
+ "grid/manhattan-distance": "grid/manhattan-distance",
977
+ "grid/neighbors": "grid/neighbors",
978
+ "grid/screen-to-iso": "grid/screen-to-iso",
979
+ "grid/to-world": "grid/to-world",
980
+ "gzip/compress": "gzip/compress",
981
+ "gzip/decompress": "gzip/decompress",
982
+ "tar/entries": "tar/entries",
983
+ "hash/md5": "hash/md5",
984
+ "hash/md5-credential": "hash/md5-credential",
985
+ "hash/pbkdf2": "hash/pbkdf2",
986
+ "hash/scrypt": "hash/scrypt",
987
+ "hash/sha": "hash/sha",
988
+ "hmac/sha256": "hmac/sha256",
989
+ "hmac/sha256-bytes": "hmac/sha256-bytes",
990
+ "i18n/t": "i18n/t",
991
+ "identity/sign-in": "identity/sign-in",
992
+ "identity/sign-out": "identity/sign-out",
993
+ if: "if",
994
+ "json/nodes": "json/nodes",
995
+ "json/parse": "json/parse",
996
+ "json/stringify": "json/stringify",
997
+ "json/valid": "json/valid",
998
+ "jws/verify": "jws/verify",
999
+ "kv/batch": "kv/batch",
1000
+ "kv/delete": "kv/delete",
1001
+ "kv/get": "kv/get",
1002
+ "kv/put": "kv/put",
1003
+ "kv/scan": "kv/scan",
1004
+ let: "let",
1005
+ list: "list",
1006
+ "llm/call-tools": "llm/call-tools",
1007
+ "llm/compact": "llm/compact",
1008
+ "llm/embed": "llm/embed",
1009
+ "llm/generate": "llm/generate",
1010
+ "llm/switch": "llm/switch",
1011
+ "llm/token-count": "llm/token-count",
1012
+ log: "log",
1013
+ "math/abs": "math/abs",
1014
+ "math/acos": "math/acos",
1015
+ "math/approach": "math/approach",
1016
+ "math/asin": "math/asin",
1017
+ "math/atan": "math/atan",
1018
+ "math/atan2": "math/atan2",
1019
+ "math/ceil": "math/ceil",
1020
+ "math/clamp": "math/clamp",
1021
+ "math/cos": "math/cos",
1022
+ "math/deg-rad": "math/deg-rad",
1023
+ "math/floor": "math/floor",
1024
+ "math/hypot": "math/hypot",
1025
+ "math/lerp": "math/lerp",
1026
+ "math/ln": "math/ln",
1027
+ "math/log10": "math/log10",
1028
+ "math/map": "math/map",
1029
+ "math/max": "math/max",
1030
+ "math/min": "math/min",
1031
+ "math/mod": "math/mod",
1032
+ "math/pow": "math/pow",
1033
+ "math/rad-deg": "math/rad-deg",
1034
+ "math/random": "math/random",
1035
+ "math/randomInt": "math/randomInt",
1036
+ "math/round": "math/round",
1037
+ "math/sign": "math/sign",
1038
+ "math/sin": "math/sin",
1039
+ "math/sqrt": "math/sqrt",
1040
+ "math/tan": "math/tan",
1041
+ "math/wrap": "math/wrap",
1042
+ "mem/arena-new": "mem/arena-new",
1043
+ "mem/arena-drop": "mem/arena-drop",
1044
+ "mem/alloc": "mem/alloc",
1045
+ "mem/free": "mem/free",
1046
+ "mem/borrow": "mem/borrow",
1047
+ "mem/release": "mem/release",
1048
+ "mem/write": "mem/write",
1049
+ "mem/read": "mem/read",
1050
+ "mem/read-int": "mem/read-int",
1051
+ "mem/read-uint": "mem/read-uint",
1052
+ "mem/length": "mem/length",
1053
+ "mem/freeze": "mem/freeze",
1054
+ "mem/atomic-load": "mem/atomic-load",
1055
+ "mem/atomic-store": "mem/atomic-store",
1056
+ "mem/atomic-add": "mem/atomic-add",
1057
+ "mem/atomic-cas": "mem/atomic-cas",
1058
+ "kernel/queue-front": "kernel/queue-front",
1059
+ "kernel/queue-back": "kernel/queue-back",
1060
+ "kernel/worklist": "kernel/worklist",
1061
+ "kernel/frame": "kernel/frame",
1062
+ "kernel/stamp": "kernel/stamp",
1063
+ "kernel/apply": "kernel/apply",
1064
+ "ffi/call": "ffi/call",
1065
+ navigate: "navigate",
1066
+ "navigate-back": "navigate-back",
1067
+ "noise/fbm": "noise/fbm",
1068
+ "noise/perlin": "noise/perlin",
1069
+ "noise/simplex": "noise/simplex",
1070
+ not: "not",
1071
+ notify: "notify",
1072
+ "oauth-authorize": "oauth-authorize",
1073
+ "oauth-connection-forget": "oauth-connection-forget",
1074
+ "oauth-connection-status": "oauth-connection-status",
1075
+ "object/clone": "object/clone",
1076
+ "object/deepClone": "object/deepClone",
1077
+ "object/deepMerge": "object/deepMerge",
1078
+ "object/entries": "object/entries",
1079
+ "object/equals": "object/equals",
1080
+ "object/filter": "object/filter",
1081
+ "object/fromEntries": "object/fromEntries",
1082
+ "object/get": "object/get",
1083
+ "object/has": "object/has",
1084
+ "object/keys": "object/keys",
1085
+ "object/mapKeys": "object/mapKeys",
1086
+ "object/mapValues": "object/mapValues",
1087
+ "object/merge": "object/merge",
1088
+ "object/omit": "object/omit",
1089
+ "object/pick": "object/pick",
1090
+ "object/set": "object/set",
1091
+ "object/values": "object/values",
1092
+ or: "or",
1093
+ "os/ac-power": "os/ac-power",
1094
+ "os/access": "os/access",
1095
+ "os/append-file": "os/append-file",
1096
+ "os/battery-status": "os/battery-status",
1097
+ "os/brightness-get": "os/brightness-get",
1098
+ "os/brightness-set": "os/brightness-set",
1099
+ "os/chdir": "os/chdir",
1100
+ "os/chmod": "os/chmod",
1101
+ "os/chown": "os/chown",
1102
+ "os/clock-monotonic": "os/clock-monotonic",
1103
+ "os/close": "os/close",
1104
+ "os/copy": "os/copy",
1105
+ "os/cpu-usage": "os/cpu-usage",
1106
+ "os/current-exe": "os/current-exe",
1107
+ "os/cwd": "os/cwd",
1108
+ "os/default-gateway": "os/default-gateway",
1109
+ "os/disk-io": "os/disk-io",
1110
+ "os/disk-usage": "os/disk-usage",
1111
+ "os/dns-resolve": "os/dns-resolve",
1112
+ "os/environ": "os/environ",
1113
+ "os/exists": "os/exists",
1114
+ "os/fetch": "os/fetch",
1115
+ "os/fsync": "os/fsync",
1116
+ "os/getenv": "os/getenv",
1117
+ "os/gid": "os/gid",
1118
+ "os/glob": "os/glob",
1119
+ "os/group-of": "os/group-of",
1120
+ "os/hibernate": "os/hibernate",
1121
+ "os/hostname": "os/hostname",
1122
+ "os/irq-ack": "os/irq-ack",
1123
+ "os/irq-wait": "os/irq-wait",
1124
+ "os/isatty": "os/isatty",
1125
+ "os/kill": "os/kill",
1126
+ "os/link": "os/link",
1127
+ "os/list-dir": "os/list-dir",
1128
+ "os/load-avg": "os/load-avg",
1129
+ "os/lstat": "os/lstat",
1130
+ "os/memory-info": "os/memory-info",
1131
+ "os/mkdir": "os/mkdir",
1132
+ "os/mktemp": "os/mktemp",
1133
+ "os/mmio-read": "os/mmio-read",
1134
+ "os/mmio-write": "os/mmio-write",
1135
+ "os/mounts": "os/mounts",
1136
+ "os/network-connected": "os/network-connected",
1137
+ "os/network-interfaces": "os/network-interfaces",
1138
+ "os/network-stats": "os/network-stats",
1139
+ "os/notify": "os/notify",
1140
+ "os/open": "os/open",
1141
+ "os/path-base": "os/path-base",
1142
+ "os/path-dir": "os/path-dir",
1143
+ "os/path-ext": "os/path-ext",
1144
+ "os/path-is-absolute": "os/path-is-absolute",
1145
+ "os/path-join": "os/path-join",
1146
+ "os/path-normalize": "os/path-normalize",
1147
+ "os/path-relative": "os/path-relative",
1148
+ "os/pid": "os/pid",
1149
+ "os/ppid": "os/ppid",
1150
+ "os/read": "os/read",
1151
+ "os/read-file": "os/read-file",
1152
+ "os/readlink": "os/readlink",
1153
+ "os/realpath": "os/realpath",
1154
+ "os/recv": "os/recv",
1155
+ "os/recvfrom": "os/recvfrom",
1156
+ "os/remove": "os/remove",
1157
+ "os/rename": "os/rename",
1158
+ "os/rmdir": "os/rmdir",
1159
+ "os/seek": "os/seek",
1160
+ "os/send": "os/send",
1161
+ "os/sendto": "os/sendto",
1162
+ "os/setenv": "os/setenv",
1163
+ "os/shutdown": "os/shutdown",
1164
+ "os/spawn": "os/spawn",
1165
+ "os/speak": "os/speak",
1166
+ "os/stat": "os/stat",
1167
+ "os/stderr-write": "os/stderr-write",
1168
+ "os/stdin-read": "os/stdin-read",
1169
+ "os/stdout-write": "os/stdout-write",
1170
+ "os/suspend": "os/suspend",
1171
+ "os/symlink": "os/symlink",
1172
+ "os/tcp-connect": "os/tcp-connect",
1173
+ "os/tcp-listen": "os/tcp-listen",
1174
+ "os/thermal-zones": "os/thermal-zones",
1175
+ "os/tls-upgrade": "os/tls-upgrade",
1176
+ "os/truncate": "os/truncate",
1177
+ "os/tty-size": "os/tty-size",
1178
+ "os/udp-bind": "os/udp-bind",
1179
+ "os/uid": "os/uid",
1180
+ "os/uname": "os/uname",
1181
+ "os/unsetenv": "os/unsetenv",
1182
+ "os/uptime": "os/uptime",
1183
+ "os/username": "os/username",
1184
+ "os/utimes": "os/utimes",
1185
+ "os/volume-get": "os/volume-get",
1186
+ "os/volume-mute": "os/volume-mute",
1187
+ "os/volume-set": "os/volume-set",
1188
+ "os/wait": "os/wait",
1189
+ "os/watch-cron": "os/watch-cron",
1190
+ "os/watch-env": "os/watch-env",
1191
+ "os/watch-files": "os/watch-files",
1192
+ "os/watch-port": "os/watch-port",
1193
+ "os/watch-process": "os/watch-process",
1194
+ "os/watch-signal": "os/watch-signal",
1195
+ "os/write": "os/write",
1196
+ "os/write-file": "os/write-file",
1197
+ path: "path",
1198
+ "path/astar": "path/astar",
1199
+ "path/reachable": "path/reachable",
1200
+ persist: "persist",
1201
+ "persist/read-named": "persist/read-named",
1202
+ "prob/beta": "prob/beta",
1203
+ "prob/categorical": "prob/categorical",
1204
+ "prob/condition": "prob/condition",
1205
+ "prob/credible-interval": "prob/credible-interval",
1206
+ "prob/expected-value": "prob/expected-value",
1207
+ "prob/flip": "prob/flip",
1208
+ "prob/gaussian": "prob/gaussian",
1209
+ "prob/histogram": "prob/histogram",
1210
+ "prob/infer": "prob/infer",
1211
+ "prob/percentile": "prob/percentile",
1212
+ "prob/poisson": "prob/poisson",
1213
+ "prob/posterior": "prob/posterior",
1214
+ "prob/sample": "prob/sample",
1215
+ "prob/seed": "prob/seed",
1216
+ "prob/uniform": "prob/uniform",
1217
+ "prob/variance": "prob/variance",
1218
+ "program/compose": "program/compose",
1219
+ "program/dispatch": "program/dispatch",
1220
+ "program/eval": "program/eval",
1221
+ "program/inputs": "program/inputs",
1222
+ "program/live": "program/live",
1223
+ "program/open": "program/open",
1224
+ "program/close": "program/close",
1225
+ "program/self": "program/self",
1226
+ "program/print": "program/print",
1227
+ "program/read": "program/read",
1228
+ "program/resolve-rows": "program/resolve-rows",
1229
+ "program/step": "program/step",
1230
+ "program/tick": "program/tick",
1231
+ "program/os-grants": "program/os-grants",
1232
+ "program/prove": "program/prove",
1233
+ "program/validate": "program/validate",
1234
+ quasiquote: "quasiquote",
1235
+ quote: "quote",
1236
+ "random-bytes": "random-bytes",
1237
+ "render-ui": "render-ui",
1238
+ "row/matches": "row/matches",
1239
+ "rsa/sign": "rsa/sign",
1240
+ "rsa/verify": "rsa/verify",
1241
+ "send-server": "send-server",
1242
+ "session/append-history": "session/append-history",
1243
+ "session/read-analysis": "session/read-analysis",
1244
+ "session/read-errors": "session/read-errors",
1245
+ "session/read-history": "session/read-history",
1246
+ "session/read-memory": "session/read-memory",
1247
+ "session/read-spec": "session/read-spec",
1248
+ "session/write-errors": "session/write-errors",
1249
+ "session/write-memory": "session/write-memory",
1250
+ "session/write-spec": "session/write-spec",
1251
+ set: "set",
1252
+ spawn: "spawn",
1253
+ "str/camelCase": "str/camelCase",
1254
+ "str/capitalize": "str/capitalize",
1255
+ "str/collate": "str/collate",
1256
+ "str/collate-key": "str/collate-key",
1257
+ "str/concat": "str/concat",
1258
+ "str/decode-uri-component": "str/decode-uri-component",
1259
+ "str/encode-uri-component": "str/encode-uri-component",
1260
+ "str/endsWith": "str/endsWith",
1261
+ "str/includes": "str/includes",
1262
+ "str/join": "str/join",
1263
+ "str/kebabCase": "str/kebabCase",
1264
+ "str/len": "str/len",
1265
+ "str/lower": "str/lower",
1266
+ "str/padEnd": "str/padEnd",
1267
+ "str/padStart": "str/padStart",
1268
+ "str/repeat": "str/repeat",
1269
+ "str/replace": "str/replace",
1270
+ "str/replace-pattern": "str/replace-pattern",
1271
+ "str/replaceAll": "str/replaceAll",
1272
+ "str/reverse": "str/reverse",
1273
+ "str/slice": "str/slice",
1274
+ "str/snakeCase": "str/snakeCase",
1275
+ "str/split": "str/split",
1276
+ "str/startsWith": "str/startsWith",
1277
+ "str/template": "str/template",
1278
+ "str/titleCase": "str/titleCase",
1279
+ "str/to-int": "str/to-int",
1280
+ "str/to-number": "str/to-number",
1281
+ "str/trim": "str/trim",
1282
+ "str/trimEnd": "str/trimEnd",
1283
+ "str/trimStart": "str/trimStart",
1284
+ "str/truncate": "str/truncate",
1285
+ "str/upper": "str/upper",
1286
+ "str/uri-component-valid": "str/uri-component-valid",
1287
+ "theme/clear": "theme/clear",
1288
+ "theme/set": "theme/set",
1289
+ "time/add": "time/add",
1290
+ "time/day": "time/day",
1291
+ "time/diff": "time/diff",
1292
+ "time/duration": "time/duration",
1293
+ "time/endOf": "time/endOf",
1294
+ "time/format": "time/format",
1295
+ "time/hour": "time/hour",
1296
+ "time/isAfter": "time/isAfter",
1297
+ "time/isBefore": "time/isBefore",
1298
+ "time/isBetween": "time/isBetween",
1299
+ "time/isFuture": "time/isFuture",
1300
+ "time/isPast": "time/isPast",
1301
+ "time/isSame": "time/isSame",
1302
+ "time/isToday": "time/isToday",
1303
+ "time/minute": "time/minute",
1304
+ "time/month": "time/month",
1305
+ "time/now": "time/now",
1306
+ "time/parse": "time/parse",
1307
+ "time/relative": "time/relative",
1308
+ "time/second": "time/second",
1309
+ "time/startOf": "time/startOf",
1310
+ "time/subtract": "time/subtract",
1311
+ "time/today": "time/today",
1312
+ "time/valid": "time/valid",
1313
+ "time/weekday": "time/weekday",
1314
+ "time/year": "time/year",
1315
+ "trace/emit": "trace/emit",
1316
+ "tree/fold": "tree/fold",
1317
+ "tree/index": "tree/index",
1318
+ unquote: "unquote",
1319
+ "validate/array": "validate/array",
1320
+ "validate/boolean": "validate/boolean",
1321
+ "validate/check": "validate/check",
1322
+ "validate/creditCard": "validate/creditCard",
1323
+ "validate/date": "validate/date",
1324
+ "validate/email": "validate/email",
1325
+ "validate/equals": "validate/equals",
1326
+ "validate/length": "validate/length",
1327
+ "validate/max": "validate/max",
1328
+ "validate/maxLength": "validate/maxLength",
1329
+ "validate/min": "validate/min",
1330
+ "validate/minLength": "validate/minLength",
1331
+ "validate/noneOf": "validate/noneOf",
1332
+ "validate/number": "validate/number",
1333
+ "validate/object": "validate/object",
1334
+ "validate/oneOf": "validate/oneOf",
1335
+ "validate/pattern": "validate/pattern",
1336
+ "validate/phone": "validate/phone",
1337
+ "validate/range": "validate/range",
1338
+ "validate/required": "validate/required",
1339
+ "validate/string": "validate/string",
1340
+ "validate/url": "validate/url",
1341
+ "validate/uuid": "validate/uuid",
1342
+ "vec/add": "vec/add",
1343
+ "vec/angle": "vec/angle",
1344
+ "vec/clamp-length": "vec/clamp-length",
1345
+ "vec/cross": "vec/cross",
1346
+ "vec/distance": "vec/distance",
1347
+ "vec/distance-sq": "vec/distance-sq",
1348
+ "vec/dot": "vec/dot",
1349
+ "vec/length": "vec/length",
1350
+ "vec/length-sq": "vec/length-sq",
1351
+ "vec/lerp": "vec/lerp",
1352
+ "vec/normalize": "vec/normalize",
1353
+ "vec/rotate": "vec/rotate",
1354
+ "vec/scale": "vec/scale",
1355
+ "vec/sub": "vec/sub",
1356
+ when: "when",
1357
+ "workspace/archive-orbital": "workspace/archive-orbital",
1358
+ "workspace/exists": "workspace/exists",
1359
+ "workspace/list-orbitals": "workspace/list-orbitals",
1360
+ "workspace/read-file": "workspace/read-file",
1361
+ "workspace/read-orbital": "workspace/read-orbital",
1362
+ "workspace/read-plan": "workspace/read-plan",
1363
+ "workspace/read-schema": "workspace/read-schema",
1364
+ "workspace/write-file": "workspace/write-file",
1365
+ "workspace/write-orbital": "workspace/write-orbital",
1366
+ "workspace/write-plan": "workspace/write-plan",
1367
+ "workspace/write-schema": "workspace/write-schema",
1368
+ "xml/parse": "xml/parse",
1369
+ "xml/valid": "xml/valid",
1370
+ "yaml/parse": "yaml/parse"
1371
+ }
1372
+ };
1373
+
1374
+ // src/generated/i18n-tables.ts
1375
+ var RTL_LOCALES = ["ar", "he", "fa", "ur"];
1376
+ var LOLO_FIRST_TOKEN_KEYWORDS = ["app", "uses", "expects", "type", "theme", "orbital"];
1377
+
1378
+ // src/kernel-evaluator.ts
1379
+ var KernelEvalError = class extends Error {
1380
+ constructor(message) {
1381
+ super(message);
1382
+ this.name = "KernelEvalError";
1383
+ }
1384
+ };
1385
+ var KernelEvaluatorNotInstalledError = class extends Error {
1386
+ constructor() {
1387
+ super("the kernel evaluator is not installed: load @almadar/kernel and call installKernelEvaluator before evaluating");
1388
+ this.name = "KernelEvaluatorNotInstalledError";
1389
+ }
1390
+ };
1391
+ var optionalJson = (expr) => expr === void 0 ? "" : JSON.stringify(expr);
1392
+ function createKernelEvaluator(kernel) {
1393
+ const evaluateMany = (context, expressions) => {
1394
+ if (expressions.length === 0) return [];
1395
+ return JSON.parse(kernel.evaluateMany(JSON.stringify(context), JSON.stringify(expressions)));
1396
+ };
1397
+ const evaluateGuards = (context, guards) => {
1398
+ if (guards.length === 0) return [];
1399
+ return JSON.parse(kernel.evaluateGuards(JSON.stringify(context), JSON.stringify(guards)));
1400
+ };
1401
+ return {
1402
+ evaluateMany,
1403
+ resolveValues(context, values) {
1404
+ if (values.length === 0) return [];
1405
+ return JSON.parse(kernel.resolveValues(JSON.stringify(context), JSON.stringify(values)));
1406
+ },
1407
+ evaluate(context, expression) {
1408
+ const outcome = evaluateMany(context, [expression])[0];
1409
+ if (outcome.kind === "error") throw new KernelEvalError(outcome.message);
1410
+ return outcome.value;
1411
+ },
1412
+ evaluateGuards,
1413
+ evaluateGuard(context, guard) {
1414
+ return evaluateGuards(context, [guard])[0];
1415
+ },
1416
+ evaluateTraced(context, expression) {
1417
+ return JSON.parse(kernel.evaluateTraced(JSON.stringify(context), JSON.stringify(expression)));
1418
+ },
1419
+ traceEffects(context, effects) {
1420
+ return JSON.parse(kernel.traceEffects(JSON.stringify(context), JSON.stringify(effects)));
1421
+ },
1422
+ mapListenPayload(mapping, payload) {
1423
+ return JSON.parse(kernel.mapListenPayload(JSON.stringify(mapping), JSON.stringify(payload)));
1424
+ },
1425
+ scopeRows(bindings, rows, policy, filter, entityType) {
1426
+ if (policy === void 0 && filter === void 0) return [...rows];
1427
+ return JSON.parse(
1428
+ kernel.scopeRows(JSON.stringify(bindings), JSON.stringify(rows), optionalJson(policy), optionalJson(filter), entityType)
1429
+ );
1430
+ },
1431
+ checkMutation(operation, bindings, row, policy, entityType) {
1432
+ return JSON.parse(
1433
+ kernel.checkMutationAccess(operation, JSON.stringify(bindings), JSON.stringify(row), optionalJson(policy), entityType)
1434
+ );
1435
+ },
1436
+ resolveRowBinding(term, bindings) {
1437
+ return JSON.parse(kernel.resolveRowBinding(term, JSON.stringify(bindings)));
1438
+ },
1439
+ eventWires(schema) {
1440
+ return JSON.parse(kernel.eventWires(JSON.stringify(schema)));
1441
+ },
1442
+ validatePacks(packs) {
1443
+ kernel.validatePacks(JSON.stringify(packs));
1444
+ }
1445
+ };
1446
+ }
1447
+ var installed;
1448
+ function installKernelEvaluator(kernel) {
1449
+ installed = createKernelEvaluator(kernel);
1450
+ return installed;
1451
+ }
1452
+ function hasKernelEvaluator() {
1453
+ return installed !== void 0;
1454
+ }
1455
+ function kernelEvaluator() {
1456
+ if (installed === void 0) throw new KernelEvaluatorNotInstalledError();
1457
+ return installed;
1458
+ }
1459
+ function eventPayloadOf(value) {
1460
+ return value !== void 0 && value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
1461
+ }
1462
+ function toWireValue(value) {
1463
+ if (value === void 0 || value === null) return null;
1464
+ if (value instanceof Date) return value.toISOString();
1465
+ if (Array.isArray(value)) return value.map(toWireValue);
1466
+ if (typeof value === "object") {
1467
+ const out = {};
1468
+ for (const [key, item] of Object.entries(value)) {
1469
+ if (item !== void 0) setOwn(out, key, toWireValue(item));
1470
+ }
1471
+ return out;
1472
+ }
1473
+ return value;
1474
+ }
1475
+ function applyListenMapping(payloadMapping, payload) {
1476
+ if (!payloadMapping || !payload) return payload;
1477
+ return kernelEvaluator().mapListenPayload(payloadMapping, payload);
1478
+ }
1479
+ function lazyKernelExports(load) {
1480
+ let loaded;
1481
+ const kernel = () => loaded ?? (loaded = load());
1482
+ return {
1483
+ evaluateMany: (context, expressions) => kernel().evaluateMany(context, expressions),
1484
+ resolveValues: (context, values) => kernel().resolveValues(context, values),
1485
+ evaluateGuards: (context, guards) => kernel().evaluateGuards(context, guards),
1486
+ evaluateTraced: (context, expression) => kernel().evaluateTraced(context, expression),
1487
+ traceEffects: (context, effects) => kernel().traceEffects(context, effects),
1488
+ mapListenPayload: (mapping, payload) => kernel().mapListenPayload(mapping, payload),
1489
+ scopeRows: (bindings, rows, policy, filter, entityType) => kernel().scopeRows(bindings, rows, policy, filter, entityType),
1490
+ checkMutationAccess: (operation, bindings, row, policy, entityType) => kernel().checkMutationAccess(operation, bindings, row, policy, entityType),
1491
+ resolveRowBinding: (term, bindings) => kernel().resolveRowBinding(term, bindings),
1492
+ eventWires: (schemaJson) => kernel().eventWires(schemaJson),
1493
+ validatePacks: (packsJson) => kernel().validatePacks(packsJson)
1494
+ };
1495
+ }
1496
+
1497
+ // src/generated/lolo-lexer-tables.ts
1498
+ var IDENT_START_RANGES = [[65, 90], [95, 95], [97, 122], [170, 170], [181, 181], [186, 186], [192, 214], [216, 246], [248, 705], [710, 721], [736, 740], [748, 748], [750, 750], [837, 837], [867, 884], [886, 887], [890, 893], [895, 895], [902, 902], [904, 906], [908, 908], [910, 929], [931, 1013], [1015, 1153], [1162, 1327], [1329, 1366], [1369, 1369], [1376, 1416], [1456, 1469], [1471, 1471], [1473, 1474], [1476, 1477], [1479, 1479], [1488, 1514], [1519, 1522], [1552, 1562], [1568, 1623], [1625, 1631], [1646, 1747], [1749, 1756], [1761, 1768], [1773, 1775], [1786, 1788], [1791, 1791], [1808, 1855], [1869, 1969], [1994, 2026], [2036, 2037], [2042, 2042], [2048, 2071], [2074, 2092], [2112, 2136], [2144, 2154], [2160, 2183], [2185, 2191], [2199, 2199], [2208, 2249], [2260, 2271], [2275, 2281], [2288, 2363], [2365, 2380], [2382, 2384], [2389, 2403], [2417, 2435], [2437, 2444], [2447, 2448], [2451, 2472], [2474, 2480], [2482, 2482], [2486, 2489], [2493, 2500], [2503, 2504], [2507, 2508], [2510, 2510], [2519, 2519], [2524, 2525], [2527, 2531], [2544, 2545], [2556, 2556], [2561, 2563], [2565, 2570], [2575, 2576], [2579, 2600], [2602, 2608], [2610, 2611], [2613, 2614], [2616, 2617], [2622, 2626], [2631, 2632], [2635, 2636], [2641, 2641], [2649, 2652], [2654, 2654], [2672, 2677], [2689, 2691], [2693, 2701], [2703, 2705], [2707, 2728], [2730, 2736], [2738, 2739], [2741, 2745], [2749, 2757], [2759, 2761], [2763, 2764], [2768, 2768], [2784, 2787], [2809, 2812], [2817, 2819], [2821, 2828], [2831, 2832], [2835, 2856], [2858, 2864], [2866, 2867], [2869, 2873], [2877, 2884], [2887, 2888], [2891, 2892], [2902, 2903], [2908, 2909], [2911, 2915], [2929, 2929], [2946, 2947], [2949, 2954], [2958, 2960], [2962, 2965], [2969, 2970], [2972, 2972], [2974, 2975], [2979, 2980], [2984, 2986], [2990, 3001], [3006, 3010], [3014, 3016], [3018, 3020], [3024, 3024], [3031, 3031], [3072, 3084], [3086, 3088], [3090, 3112], [3114, 3129], [3133, 3140], [3142, 3144], [3146, 3148], [3157, 3158], [3160, 3162], [3164, 3165], [3168, 3171], [3200, 3203], [3205, 3212], [3214, 3216], [3218, 3240], [3242, 3251], [3253, 3257], [3261, 3268], [3270, 3272], [3274, 3276], [3285, 3286], [3292, 3294], [3296, 3299], [3313, 3315], [3328, 3340], [3342, 3344], [3346, 3386], [3389, 3396], [3398, 3400], [3402, 3404], [3406, 3406], [3412, 3415], [3423, 3427], [3450, 3455], [3457, 3459], [3461, 3478], [3482, 3505], [3507, 3515], [3517, 3517], [3520, 3526], [3535, 3540], [3542, 3542], [3544, 3551], [3570, 3571], [3585, 3642], [3648, 3654], [3661, 3661], [3713, 3714], [3716, 3716], [3718, 3722], [3724, 3747], [3749, 3749], [3751, 3769], [3771, 3773], [3776, 3780], [3782, 3782], [3789, 3789], [3804, 3807], [3840, 3840], [3904, 3911], [3913, 3948], [3953, 3971], [3976, 3991], [3993, 4028], [4096, 4150], [4152, 4152], [4155, 4159], [4176, 4239], [4250, 4253], [4256, 4293], [4295, 4295], [4301, 4301], [4304, 4346], [4348, 4680], [4682, 4685], [4688, 4694], [4696, 4696], [4698, 4701], [4704, 4744], [4746, 4749], [4752, 4784], [4786, 4789], [4792, 4798], [4800, 4800], [4802, 4805], [4808, 4822], [4824, 4880], [4882, 4885], [4888, 4954], [4992, 5007], [5024, 5109], [5112, 5117], [5121, 5740], [5743, 5759], [5761, 5786], [5792, 5866], [5870, 5880], [5888, 5907], [5919, 5939], [5952, 5971], [5984, 5996], [5998, 6e3], [6002, 6003], [6016, 6067], [6070, 6088], [6103, 6103], [6108, 6108], [6176, 6264], [6272, 6314], [6320, 6389], [6400, 6430], [6432, 6443], [6448, 6456], [6480, 6509], [6512, 6516], [6528, 6571], [6576, 6601], [6656, 6683], [6688, 6750], [6753, 6772], [6823, 6823], [6847, 6848], [6860, 6862], [6912, 6963], [6965, 6979], [6981, 6988], [7040, 7081], [7084, 7087], [7098, 7141], [7143, 7153], [7168, 7222], [7245, 7247], [7258, 7293], [7296, 7306], [7312, 7354], [7357, 7359], [7401, 7404], [7406, 7411], [7413, 7414], [7418, 7418], [7424, 7615], [7635, 7668], [7680, 7957], [7960, 7965], [7968, 8005], [8008, 8013], [8016, 8023], [8025, 8025], [8027, 8027], [8029, 8029], [8031, 8061], [8064, 8116], [8118, 8124], [8126, 8126], [8130, 8132], [8134, 8140], [8144, 8147], [8150, 8155], [8160, 8172], [8178, 8180], [8182, 8188], [8305, 8305], [8319, 8319], [8336, 8348], [8450, 8450], [8455, 8455], [8458, 8467], [8469, 8469], [8473, 8477], [8484, 8484], [8486, 8486], [8488, 8488], [8490, 8493], [8495, 8505], [8508, 8511], [8517, 8521], [8526, 8526], [8544, 8584], [9398, 9449], [11264, 11492], [11499, 11502], [11506, 11507], [11520, 11557], [11559, 11559], [11565, 11565], [11568, 11623], [11631, 11631], [11648, 11670], [11680, 11686], [11688, 11694], [11696, 11702], [11704, 11710], [11712, 11718], [11720, 11726], [11728, 11734], [11736, 11742], [11744, 11775], [11823, 11823], [12293, 12295], [12321, 12329], [12337, 12341], [12344, 12348], [12353, 12438], [12445, 12447], [12449, 12538], [12540, 12543], [12549, 12591], [12593, 12686], [12704, 12735], [12784, 12799], [13312, 19903], [19968, 42124], [42192, 42237], [42240, 42508], [42512, 42527], [42538, 42539], [42560, 42606], [42612, 42619], [42623, 42735], [42775, 42783], [42786, 42888], [42891, 42972], [42993, 43013], [43015, 43047], [43072, 43123], [43136, 43203], [43205, 43205], [43250, 43255], [43259, 43259], [43261, 43263], [43274, 43306], [43312, 43346], [43360, 43388], [43392, 43442], [43444, 43455], [43471, 43471], [43488, 43503], [43514, 43518], [43520, 43574], [43584, 43597], [43616, 43638], [43642, 43710], [43712, 43712], [43714, 43714], [43739, 43741], [43744, 43759], [43762, 43765], [43777, 43782], [43785, 43790], [43793, 43798], [43808, 43814], [43816, 43822], [43824, 43866], [43868, 43881], [43888, 44010], [44032, 55203], [55216, 55238], [55243, 55291], [63744, 64109], [64112, 64217], [64256, 64262], [64275, 64279], [64285, 64296], [64298, 64310], [64312, 64316], [64318, 64318], [64320, 64321], [64323, 64324], [64326, 64433], [64467, 64829], [64848, 64911], [64914, 64967], [65008, 65019], [65136, 65140], [65142, 65276], [65313, 65338], [65345, 65370], [65382, 65470], [65474, 65479], [65482, 65487], [65490, 65495], [65498, 65500], [65536, 65547], [65549, 65574], [65576, 65594], [65596, 65597], [65599, 65613], [65616, 65629], [65664, 65786], [65856, 65908], [66176, 66204], [66208, 66256], [66304, 66335], [66349, 66378], [66384, 66426], [66432, 66461], [66464, 66499], [66504, 66511], [66513, 66517], [66560, 66717], [66736, 66771], [66776, 66811], [66816, 66855], [66864, 66915], [66928, 66938], [66940, 66954], [66956, 66962], [66964, 66965], [66967, 66977], [66979, 66993], [66995, 67001], [67003, 67004], [67008, 67059], [67072, 67382], [67392, 67413], [67424, 67431], [67456, 67461], [67463, 67504], [67506, 67514], [67584, 67589], [67592, 67592], [67594, 67637], [67639, 67640], [67644, 67644], [67647, 67669], [67680, 67702], [67712, 67742], [67808, 67826], [67828, 67829], [67840, 67861], [67872, 67897], [67904, 67929], [67968, 68023], [68030, 68031], [68096, 68099], [68101, 68102], [68108, 68115], [68117, 68119], [68121, 68149], [68192, 68220], [68224, 68252], [68288, 68295], [68297, 68324], [68352, 68405], [68416, 68437], [68448, 68466], [68480, 68497], [68608, 68680], [68736, 68786], [68800, 68850], [68864, 68903], [68938, 68965], [68969, 68969], [68975, 68997], [69248, 69289], [69291, 69292], [69296, 69297], [69314, 69319], [69370, 69372], [69376, 69404], [69415, 69415], [69424, 69445], [69488, 69505], [69552, 69572], [69600, 69622], [69632, 69701], [69745, 69749], [69760, 69816], [69826, 69826], [69840, 69864], [69888, 69938], [69956, 69959], [69968, 70002], [70006, 70006], [70016, 70079], [70081, 70084], [70094, 70095], [70106, 70106], [70108, 70108], [70144, 70161], [70163, 70196], [70199, 70199], [70206, 70209], [70272, 70278], [70280, 70280], [70282, 70285], [70287, 70301], [70303, 70312], [70320, 70376], [70400, 70403], [70405, 70412], [70415, 70416], [70419, 70440], [70442, 70448], [70450, 70451], [70453, 70457], [70461, 70468], [70471, 70472], [70475, 70476], [70480, 70480], [70487, 70487], [70493, 70499], [70528, 70537], [70539, 70539], [70542, 70542], [70544, 70581], [70583, 70592], [70594, 70594], [70597, 70597], [70599, 70602], [70604, 70605], [70609, 70609], [70611, 70611], [70656, 70721], [70723, 70725], [70727, 70730], [70751, 70753], [70784, 70849], [70852, 70853], [70855, 70855], [71040, 71093], [71096, 71102], [71128, 71133], [71168, 71230], [71232, 71232], [71236, 71236], [71296, 71349], [71352, 71352], [71424, 71450], [71453, 71466], [71488, 71494], [71680, 71736], [71840, 71903], [71935, 71942], [71945, 71945], [71948, 71955], [71957, 71958], [71960, 71989], [71991, 71992], [71995, 71996], [71999, 72002], [72096, 72103], [72106, 72151], [72154, 72159], [72161, 72161], [72163, 72164], [72192, 72242], [72245, 72254], [72272, 72343], [72349, 72349], [72368, 72440], [72544, 72551], [72640, 72672], [72704, 72712], [72714, 72758], [72760, 72766], [72768, 72768], [72818, 72847], [72850, 72871], [72873, 72886], [72960, 72966], [72968, 72969], [72971, 73014], [73018, 73018], [73020, 73021], [73023, 73025], [73027, 73027], [73030, 73031], [73056, 73061], [73063, 73064], [73066, 73102], [73104, 73105], [73107, 73110], [73112, 73112], [73136, 73179], [73440, 73462], [73472, 73488], [73490, 73530], [73534, 73536], [73648, 73648], [73728, 74649], [74752, 74862], [74880, 75075], [77712, 77808], [77824, 78895], [78913, 78918], [78944, 82938], [82944, 83526], [90368, 90414], [92160, 92728], [92736, 92766], [92784, 92862], [92880, 92909], [92928, 92975], [92992, 92995], [93027, 93047], [93053, 93071], [93504, 93548], [93760, 93823], [93856, 93880], [93883, 93907], [93952, 94026], [94031, 94087], [94095, 94111], [94176, 94177], [94179, 94179], [94192, 94198], [94208, 101589], [101631, 101662], [101760, 101874], [110576, 110579], [110581, 110587], [110589, 110590], [110592, 110882], [110898, 110898], [110928, 110930], [110933, 110933], [110948, 110951], [110960, 111355], [113664, 113770], [113776, 113788], [113792, 113800], [113808, 113817], [113822, 113822], [119808, 119892], [119894, 119964], [119966, 119967], [119970, 119970], [119973, 119974], [119977, 119980], [119982, 119993], [119995, 119995], [119997, 120003], [120005, 120069], [120071, 120074], [120077, 120084], [120086, 120092], [120094, 120121], [120123, 120126], [120128, 120132], [120134, 120134], [120138, 120144], [120146, 120485], [120488, 120512], [120514, 120538], [120540, 120570], [120572, 120596], [120598, 120628], [120630, 120654], [120656, 120686], [120688, 120712], [120714, 120744], [120746, 120770], [120772, 120779], [122624, 122654], [122661, 122666], [122880, 122886], [122888, 122904], [122907, 122913], [122915, 122916], [122918, 122922], [122928, 122989], [123023, 123023], [123136, 123180], [123191, 123197], [123214, 123214], [123536, 123565], [123584, 123627], [124112, 124139], [124368, 124397], [124400, 124400], [124608, 124638], [124640, 124661], [124670, 124671], [124896, 124902], [124904, 124907], [124909, 124910], [124912, 124926], [124928, 125124], [125184, 125251], [125255, 125255], [125259, 125259], [126464, 126467], [126469, 126495], [126497, 126498], [126500, 126500], [126503, 126503], [126505, 126514], [126516, 126519], [126521, 126521], [126523, 126523], [126530, 126530], [126535, 126535], [126537, 126537], [126539, 126539], [126541, 126543], [126545, 126546], [126548, 126548], [126551, 126551], [126553, 126553], [126555, 126555], [126557, 126557], [126559, 126559], [126561, 126562], [126564, 126564], [126567, 126570], [126572, 126578], [126580, 126583], [126585, 126588], [126590, 126590], [126592, 126601], [126603, 126619], [126625, 126627], [126629, 126633], [126635, 126651], [127280, 127305], [127312, 127337], [127344, 127369], [131072, 173791], [173824, 178205], [178208, 183981], [183984, 191456], [191472, 192093], [194560, 195101], [196608, 201546], [201552, 210041]];
1499
+ var IDENT_CONTINUE_RANGES = [[45, 45], [47, 57], [65, 90], [95, 95], [97, 122], [170, 170], [178, 179], [181, 181], [185, 186], [188, 190], [192, 214], [216, 246], [248, 705], [710, 721], [736, 740], [748, 748], [750, 750], [837, 837], [867, 884], [886, 887], [890, 893], [895, 895], [902, 902], [904, 906], [908, 908], [910, 929], [931, 1013], [1015, 1153], [1162, 1327], [1329, 1366], [1369, 1369], [1376, 1416], [1456, 1469], [1471, 1471], [1473, 1474], [1476, 1477], [1479, 1479], [1488, 1514], [1519, 1522], [1552, 1562], [1568, 1623], [1625, 1641], [1646, 1747], [1749, 1756], [1761, 1768], [1773, 1788], [1791, 1791], [1808, 1855], [1869, 1969], [1984, 2026], [2036, 2037], [2042, 2042], [2048, 2071], [2074, 2092], [2112, 2136], [2144, 2154], [2160, 2183], [2185, 2191], [2199, 2199], [2208, 2249], [2260, 2271], [2275, 2281], [2288, 2363], [2365, 2380], [2382, 2384], [2389, 2403], [2406, 2415], [2417, 2435], [2437, 2444], [2447, 2448], [2451, 2472], [2474, 2480], [2482, 2482], [2486, 2489], [2493, 2500], [2503, 2504], [2507, 2508], [2510, 2510], [2519, 2519], [2524, 2525], [2527, 2531], [2534, 2545], [2548, 2553], [2556, 2556], [2561, 2563], [2565, 2570], [2575, 2576], [2579, 2600], [2602, 2608], [2610, 2611], [2613, 2614], [2616, 2617], [2622, 2626], [2631, 2632], [2635, 2636], [2641, 2641], [2649, 2652], [2654, 2654], [2662, 2677], [2689, 2691], [2693, 2701], [2703, 2705], [2707, 2728], [2730, 2736], [2738, 2739], [2741, 2745], [2749, 2757], [2759, 2761], [2763, 2764], [2768, 2768], [2784, 2787], [2790, 2799], [2809, 2812], [2817, 2819], [2821, 2828], [2831, 2832], [2835, 2856], [2858, 2864], [2866, 2867], [2869, 2873], [2877, 2884], [2887, 2888], [2891, 2892], [2902, 2903], [2908, 2909], [2911, 2915], [2918, 2927], [2929, 2935], [2946, 2947], [2949, 2954], [2958, 2960], [2962, 2965], [2969, 2970], [2972, 2972], [2974, 2975], [2979, 2980], [2984, 2986], [2990, 3001], [3006, 3010], [3014, 3016], [3018, 3020], [3024, 3024], [3031, 3031], [3046, 3058], [3072, 3084], [3086, 3088], [3090, 3112], [3114, 3129], [3133, 3140], [3142, 3144], [3146, 3148], [3157, 3158], [3160, 3162], [3164, 3165], [3168, 3171], [3174, 3183], [3192, 3198], [3200, 3203], [3205, 3212], [3214, 3216], [3218, 3240], [3242, 3251], [3253, 3257], [3261, 3268], [3270, 3272], [3274, 3276], [3285, 3286], [3292, 3294], [3296, 3299], [3302, 3311], [3313, 3315], [3328, 3340], [3342, 3344], [3346, 3386], [3389, 3396], [3398, 3400], [3402, 3404], [3406, 3406], [3412, 3427], [3430, 3448], [3450, 3455], [3457, 3459], [3461, 3478], [3482, 3505], [3507, 3515], [3517, 3517], [3520, 3526], [3535, 3540], [3542, 3542], [3544, 3551], [3558, 3567], [3570, 3571], [3585, 3642], [3648, 3654], [3661, 3661], [3664, 3673], [3713, 3714], [3716, 3716], [3718, 3722], [3724, 3747], [3749, 3749], [3751, 3769], [3771, 3773], [3776, 3780], [3782, 3782], [3789, 3789], [3792, 3801], [3804, 3807], [3840, 3840], [3872, 3891], [3904, 3911], [3913, 3948], [3953, 3971], [3976, 3991], [3993, 4028], [4096, 4150], [4152, 4152], [4155, 4169], [4176, 4253], [4256, 4293], [4295, 4295], [4301, 4301], [4304, 4346], [4348, 4680], [4682, 4685], [4688, 4694], [4696, 4696], [4698, 4701], [4704, 4744], [4746, 4749], [4752, 4784], [4786, 4789], [4792, 4798], [4800, 4800], [4802, 4805], [4808, 4822], [4824, 4880], [4882, 4885], [4888, 4954], [4969, 4988], [4992, 5007], [5024, 5109], [5112, 5117], [5121, 5740], [5743, 5759], [5761, 5786], [5792, 5866], [5870, 5880], [5888, 5907], [5919, 5939], [5952, 5971], [5984, 5996], [5998, 6e3], [6002, 6003], [6016, 6067], [6070, 6088], [6103, 6103], [6108, 6108], [6112, 6121], [6128, 6137], [6160, 6169], [6176, 6264], [6272, 6314], [6320, 6389], [6400, 6430], [6432, 6443], [6448, 6456], [6470, 6509], [6512, 6516], [6528, 6571], [6576, 6601], [6608, 6618], [6656, 6683], [6688, 6750], [6753, 6772], [6784, 6793], [6800, 6809], [6823, 6823], [6847, 6848], [6860, 6862], [6912, 6963], [6965, 6979], [6981, 6988], [6992, 7001], [7040, 7081], [7084, 7141], [7143, 7153], [7168, 7222], [7232, 7241], [7245, 7293], [7296, 7306], [7312, 7354], [7357, 7359], [7401, 7404], [7406, 7411], [7413, 7414], [7418, 7418], [7424, 7615], [7635, 7668], [7680, 7957], [7960, 7965], [7968, 8005], [8008, 8013], [8016, 8023], [8025, 8025], [8027, 8027], [8029, 8029], [8031, 8061], [8064, 8116], [8118, 8124], [8126, 8126], [8130, 8132], [8134, 8140], [8144, 8147], [8150, 8155], [8160, 8172], [8178, 8180], [8182, 8188], [8304, 8305], [8308, 8313], [8319, 8329], [8336, 8348], [8450, 8450], [8455, 8455], [8458, 8467], [8469, 8469], [8473, 8477], [8484, 8484], [8486, 8486], [8488, 8488], [8490, 8493], [8495, 8505], [8508, 8511], [8517, 8521], [8526, 8526], [8528, 8585], [9312, 9371], [9398, 9471], [10102, 10131], [11264, 11492], [11499, 11502], [11506, 11507], [11517, 11517], [11520, 11557], [11559, 11559], [11565, 11565], [11568, 11623], [11631, 11631], [11648, 11670], [11680, 11686], [11688, 11694], [11696, 11702], [11704, 11710], [11712, 11718], [11720, 11726], [11728, 11734], [11736, 11742], [11744, 11775], [11823, 11823], [12293, 12295], [12321, 12329], [12337, 12341], [12344, 12348], [12353, 12438], [12445, 12447], [12449, 12538], [12540, 12543], [12549, 12591], [12593, 12686], [12690, 12693], [12704, 12735], [12784, 12799], [12832, 12841], [12872, 12879], [12881, 12895], [12928, 12937], [12977, 12991], [13312, 19903], [19968, 42124], [42192, 42237], [42240, 42508], [42512, 42539], [42560, 42606], [42612, 42619], [42623, 42735], [42775, 42783], [42786, 42888], [42891, 42972], [42993, 43013], [43015, 43047], [43056, 43061], [43072, 43123], [43136, 43203], [43205, 43205], [43216, 43225], [43250, 43255], [43259, 43259], [43261, 43306], [43312, 43346], [43360, 43388], [43392, 43442], [43444, 43455], [43471, 43481], [43488, 43518], [43520, 43574], [43584, 43597], [43600, 43609], [43616, 43638], [43642, 43710], [43712, 43712], [43714, 43714], [43739, 43741], [43744, 43759], [43762, 43765], [43777, 43782], [43785, 43790], [43793, 43798], [43808, 43814], [43816, 43822], [43824, 43866], [43868, 43881], [43888, 44010], [44016, 44025], [44032, 55203], [55216, 55238], [55243, 55291], [63744, 64109], [64112, 64217], [64256, 64262], [64275, 64279], [64285, 64296], [64298, 64310], [64312, 64316], [64318, 64318], [64320, 64321], [64323, 64324], [64326, 64433], [64467, 64829], [64848, 64911], [64914, 64967], [65008, 65019], [65136, 65140], [65142, 65276], [65296, 65305], [65313, 65338], [65345, 65370], [65382, 65470], [65474, 65479], [65482, 65487], [65490, 65495], [65498, 65500], [65536, 65547], [65549, 65574], [65576, 65594], [65596, 65597], [65599, 65613], [65616, 65629], [65664, 65786], [65799, 65843], [65856, 65912], [65930, 65931], [66176, 66204], [66208, 66256], [66273, 66299], [66304, 66339], [66349, 66378], [66384, 66426], [66432, 66461], [66464, 66499], [66504, 66511], [66513, 66517], [66560, 66717], [66720, 66729], [66736, 66771], [66776, 66811], [66816, 66855], [66864, 66915], [66928, 66938], [66940, 66954], [66956, 66962], [66964, 66965], [66967, 66977], [66979, 66993], [66995, 67001], [67003, 67004], [67008, 67059], [67072, 67382], [67392, 67413], [67424, 67431], [67456, 67461], [67463, 67504], [67506, 67514], [67584, 67589], [67592, 67592], [67594, 67637], [67639, 67640], [67644, 67644], [67647, 67669], [67672, 67702], [67705, 67742], [67751, 67759], [67808, 67826], [67828, 67829], [67835, 67867], [67872, 67897], [67904, 67929], [67968, 68023], [68028, 68047], [68050, 68099], [68101, 68102], [68108, 68115], [68117, 68119], [68121, 68149], [68160, 68168], [68192, 68222], [68224, 68255], [68288, 68295], [68297, 68324], [68331, 68335], [68352, 68405], [68416, 68437], [68440, 68466], [68472, 68497], [68521, 68527], [68608, 68680], [68736, 68786], [68800, 68850], [68858, 68903], [68912, 68921], [68928, 68965], [68969, 68969], [68975, 68997], [69216, 69246], [69248, 69289], [69291, 69292], [69296, 69297], [69314, 69319], [69370, 69372], [69376, 69415], [69424, 69445], [69457, 69460], [69488, 69505], [69552, 69579], [69600, 69622], [69632, 69701], [69714, 69743], [69745, 69749], [69760, 69816], [69826, 69826], [69840, 69864], [69872, 69881], [69888, 69938], [69942, 69951], [69956, 69959], [69968, 70002], [70006, 70006], [70016, 70079], [70081, 70084], [70094, 70106], [70108, 70108], [70113, 70132], [70144, 70161], [70163, 70196], [70199, 70199], [70206, 70209], [70272, 70278], [70280, 70280], [70282, 70285], [70287, 70301], [70303, 70312], [70320, 70376], [70384, 70393], [70400, 70403], [70405, 70412], [70415, 70416], [70419, 70440], [70442, 70448], [70450, 70451], [70453, 70457], [70461, 70468], [70471, 70472], [70475, 70476], [70480, 70480], [70487, 70487], [70493, 70499], [70528, 70537], [70539, 70539], [70542, 70542], [70544, 70581], [70583, 70592], [70594, 70594], [70597, 70597], [70599, 70602], [70604, 70605], [70609, 70609], [70611, 70611], [70656, 70721], [70723, 70725], [70727, 70730], [70736, 70745], [70751, 70753], [70784, 70849], [70852, 70853], [70855, 70855], [70864, 70873], [71040, 71093], [71096, 71102], [71128, 71133], [71168, 71230], [71232, 71232], [71236, 71236], [71248, 71257], [71296, 71349], [71352, 71352], [71360, 71369], [71376, 71395], [71424, 71450], [71453, 71466], [71472, 71483], [71488, 71494], [71680, 71736], [71840, 71922], [71935, 71942], [71945, 71945], [71948, 71955], [71957, 71958], [71960, 71989], [71991, 71992], [71995, 71996], [71999, 72002], [72016, 72025], [72096, 72103], [72106, 72151], [72154, 72159], [72161, 72161], [72163, 72164], [72192, 72242], [72245, 72254], [72272, 72343], [72349, 72349], [72368, 72440], [72544, 72551], [72640, 72672], [72688, 72697], [72704, 72712], [72714, 72758], [72760, 72766], [72768, 72768], [72784, 72812], [72818, 72847], [72850, 72871], [72873, 72886], [72960, 72966], [72968, 72969], [72971, 73014], [73018, 73018], [73020, 73021], [73023, 73025], [73027, 73027], [73030, 73031], [73040, 73049], [73056, 73061], [73063, 73064], [73066, 73102], [73104, 73105], [73107, 73110], [73112, 73112], [73120, 73129], [73136, 73179], [73184, 73193], [73440, 73462], [73472, 73488], [73490, 73530], [73534, 73536], [73552, 73561], [73648, 73648], [73664, 73684], [73728, 74649], [74752, 74862], [74880, 75075], [77712, 77808], [77824, 78895], [78913, 78918], [78944, 82938], [82944, 83526], [90368, 90414], [90416, 90425], [92160, 92728], [92736, 92766], [92768, 92777], [92784, 92862], [92864, 92873], [92880, 92909], [92928, 92975], [92992, 92995], [93008, 93017], [93019, 93025], [93027, 93047], [93053, 93071], [93504, 93548], [93552, 93561], [93760, 93846], [93856, 93880], [93883, 93907], [93952, 94026], [94031, 94087], [94095, 94111], [94176, 94177], [94179, 94179], [94192, 94198], [94208, 101589], [101631, 101662], [101760, 101874], [110576, 110579], [110581, 110587], [110589, 110590], [110592, 110882], [110898, 110898], [110928, 110930], [110933, 110933], [110948, 110951], [110960, 111355], [113664, 113770], [113776, 113788], [113792, 113800], [113808, 113817], [113822, 113822], [118e3, 118009], [119488, 119507], [119520, 119539], [119648, 119672], [119808, 119892], [119894, 119964], [119966, 119967], [119970, 119970], [119973, 119974], [119977, 119980], [119982, 119993], [119995, 119995], [119997, 120003], [120005, 120069], [120071, 120074], [120077, 120084], [120086, 120092], [120094, 120121], [120123, 120126], [120128, 120132], [120134, 120134], [120138, 120144], [120146, 120485], [120488, 120512], [120514, 120538], [120540, 120570], [120572, 120596], [120598, 120628], [120630, 120654], [120656, 120686], [120688, 120712], [120714, 120744], [120746, 120770], [120772, 120779], [120782, 120831], [122624, 122654], [122661, 122666], [122880, 122886], [122888, 122904], [122907, 122913], [122915, 122916], [122918, 122922], [122928, 122989], [123023, 123023], [123136, 123180], [123191, 123197], [123200, 123209], [123214, 123214], [123536, 123565], [123584, 123627], [123632, 123641], [124112, 124139], [124144, 124153], [124368, 124397], [124400, 124410], [124608, 124638], [124640, 124661], [124670, 124671], [124896, 124902], [124904, 124907], [124909, 124910], [124912, 124926], [124928, 125124], [125127, 125135], [125184, 125251], [125255, 125255], [125259, 125259], [125264, 125273], [126065, 126123], [126125, 126127], [126129, 126132], [126209, 126253], [126255, 126269], [126464, 126467], [126469, 126495], [126497, 126498], [126500, 126500], [126503, 126503], [126505, 126514], [126516, 126519], [126521, 126521], [126523, 126523], [126530, 126530], [126535, 126535], [126537, 126537], [126539, 126539], [126541, 126543], [126545, 126546], [126548, 126548], [126551, 126551], [126553, 126553], [126555, 126555], [126557, 126557], [126559, 126559], [126561, 126562], [126564, 126564], [126567, 126570], [126572, 126578], [126580, 126583], [126585, 126588], [126590, 126590], [126592, 126601], [126603, 126619], [126625, 126627], [126629, 126633], [126635, 126651], [127232, 127244], [127280, 127305], [127312, 127337], [127344, 127369], [130032, 130041], [131072, 173791], [173824, 178205], [178208, 183981], [183984, 191456], [191472, 192093], [194560, 195101], [196608, 201546], [201552, 210041]];
1500
+ var SIGIL_CONTINUE_RANGES = [[46, 46], [48, 57], [65, 90], [95, 95], [97, 122], [170, 170], [178, 179], [181, 181], [185, 186], [188, 190], [192, 214], [216, 246], [248, 705], [710, 721], [736, 740], [748, 748], [750, 750], [837, 837], [867, 884], [886, 887], [890, 893], [895, 895], [902, 902], [904, 906], [908, 908], [910, 929], [931, 1013], [1015, 1153], [1162, 1327], [1329, 1366], [1369, 1369], [1376, 1416], [1456, 1469], [1471, 1471], [1473, 1474], [1476, 1477], [1479, 1479], [1488, 1514], [1519, 1522], [1552, 1562], [1568, 1623], [1625, 1641], [1646, 1747], [1749, 1756], [1761, 1768], [1773, 1788], [1791, 1791], [1808, 1855], [1869, 1969], [1984, 2026], [2036, 2037], [2042, 2042], [2048, 2071], [2074, 2092], [2112, 2136], [2144, 2154], [2160, 2183], [2185, 2191], [2199, 2199], [2208, 2249], [2260, 2271], [2275, 2281], [2288, 2363], [2365, 2380], [2382, 2384], [2389, 2403], [2406, 2415], [2417, 2435], [2437, 2444], [2447, 2448], [2451, 2472], [2474, 2480], [2482, 2482], [2486, 2489], [2493, 2500], [2503, 2504], [2507, 2508], [2510, 2510], [2519, 2519], [2524, 2525], [2527, 2531], [2534, 2545], [2548, 2553], [2556, 2556], [2561, 2563], [2565, 2570], [2575, 2576], [2579, 2600], [2602, 2608], [2610, 2611], [2613, 2614], [2616, 2617], [2622, 2626], [2631, 2632], [2635, 2636], [2641, 2641], [2649, 2652], [2654, 2654], [2662, 2677], [2689, 2691], [2693, 2701], [2703, 2705], [2707, 2728], [2730, 2736], [2738, 2739], [2741, 2745], [2749, 2757], [2759, 2761], [2763, 2764], [2768, 2768], [2784, 2787], [2790, 2799], [2809, 2812], [2817, 2819], [2821, 2828], [2831, 2832], [2835, 2856], [2858, 2864], [2866, 2867], [2869, 2873], [2877, 2884], [2887, 2888], [2891, 2892], [2902, 2903], [2908, 2909], [2911, 2915], [2918, 2927], [2929, 2935], [2946, 2947], [2949, 2954], [2958, 2960], [2962, 2965], [2969, 2970], [2972, 2972], [2974, 2975], [2979, 2980], [2984, 2986], [2990, 3001], [3006, 3010], [3014, 3016], [3018, 3020], [3024, 3024], [3031, 3031], [3046, 3058], [3072, 3084], [3086, 3088], [3090, 3112], [3114, 3129], [3133, 3140], [3142, 3144], [3146, 3148], [3157, 3158], [3160, 3162], [3164, 3165], [3168, 3171], [3174, 3183], [3192, 3198], [3200, 3203], [3205, 3212], [3214, 3216], [3218, 3240], [3242, 3251], [3253, 3257], [3261, 3268], [3270, 3272], [3274, 3276], [3285, 3286], [3292, 3294], [3296, 3299], [3302, 3311], [3313, 3315], [3328, 3340], [3342, 3344], [3346, 3386], [3389, 3396], [3398, 3400], [3402, 3404], [3406, 3406], [3412, 3427], [3430, 3448], [3450, 3455], [3457, 3459], [3461, 3478], [3482, 3505], [3507, 3515], [3517, 3517], [3520, 3526], [3535, 3540], [3542, 3542], [3544, 3551], [3558, 3567], [3570, 3571], [3585, 3642], [3648, 3654], [3661, 3661], [3664, 3673], [3713, 3714], [3716, 3716], [3718, 3722], [3724, 3747], [3749, 3749], [3751, 3769], [3771, 3773], [3776, 3780], [3782, 3782], [3789, 3789], [3792, 3801], [3804, 3807], [3840, 3840], [3872, 3891], [3904, 3911], [3913, 3948], [3953, 3971], [3976, 3991], [3993, 4028], [4096, 4150], [4152, 4152], [4155, 4169], [4176, 4253], [4256, 4293], [4295, 4295], [4301, 4301], [4304, 4346], [4348, 4680], [4682, 4685], [4688, 4694], [4696, 4696], [4698, 4701], [4704, 4744], [4746, 4749], [4752, 4784], [4786, 4789], [4792, 4798], [4800, 4800], [4802, 4805], [4808, 4822], [4824, 4880], [4882, 4885], [4888, 4954], [4969, 4988], [4992, 5007], [5024, 5109], [5112, 5117], [5121, 5740], [5743, 5759], [5761, 5786], [5792, 5866], [5870, 5880], [5888, 5907], [5919, 5939], [5952, 5971], [5984, 5996], [5998, 6e3], [6002, 6003], [6016, 6067], [6070, 6088], [6103, 6103], [6108, 6108], [6112, 6121], [6128, 6137], [6160, 6169], [6176, 6264], [6272, 6314], [6320, 6389], [6400, 6430], [6432, 6443], [6448, 6456], [6470, 6509], [6512, 6516], [6528, 6571], [6576, 6601], [6608, 6618], [6656, 6683], [6688, 6750], [6753, 6772], [6784, 6793], [6800, 6809], [6823, 6823], [6847, 6848], [6860, 6862], [6912, 6963], [6965, 6979], [6981, 6988], [6992, 7001], [7040, 7081], [7084, 7141], [7143, 7153], [7168, 7222], [7232, 7241], [7245, 7293], [7296, 7306], [7312, 7354], [7357, 7359], [7401, 7404], [7406, 7411], [7413, 7414], [7418, 7418], [7424, 7615], [7635, 7668], [7680, 7957], [7960, 7965], [7968, 8005], [8008, 8013], [8016, 8023], [8025, 8025], [8027, 8027], [8029, 8029], [8031, 8061], [8064, 8116], [8118, 8124], [8126, 8126], [8130, 8132], [8134, 8140], [8144, 8147], [8150, 8155], [8160, 8172], [8178, 8180], [8182, 8188], [8304, 8305], [8308, 8313], [8319, 8329], [8336, 8348], [8450, 8450], [8455, 8455], [8458, 8467], [8469, 8469], [8473, 8477], [8484, 8484], [8486, 8486], [8488, 8488], [8490, 8493], [8495, 8505], [8508, 8511], [8517, 8521], [8526, 8526], [8528, 8585], [9312, 9371], [9398, 9471], [10102, 10131], [11264, 11492], [11499, 11502], [11506, 11507], [11517, 11517], [11520, 11557], [11559, 11559], [11565, 11565], [11568, 11623], [11631, 11631], [11648, 11670], [11680, 11686], [11688, 11694], [11696, 11702], [11704, 11710], [11712, 11718], [11720, 11726], [11728, 11734], [11736, 11742], [11744, 11775], [11823, 11823], [12293, 12295], [12321, 12329], [12337, 12341], [12344, 12348], [12353, 12438], [12445, 12447], [12449, 12538], [12540, 12543], [12549, 12591], [12593, 12686], [12690, 12693], [12704, 12735], [12784, 12799], [12832, 12841], [12872, 12879], [12881, 12895], [12928, 12937], [12977, 12991], [13312, 19903], [19968, 42124], [42192, 42237], [42240, 42508], [42512, 42539], [42560, 42606], [42612, 42619], [42623, 42735], [42775, 42783], [42786, 42888], [42891, 42972], [42993, 43013], [43015, 43047], [43056, 43061], [43072, 43123], [43136, 43203], [43205, 43205], [43216, 43225], [43250, 43255], [43259, 43259], [43261, 43306], [43312, 43346], [43360, 43388], [43392, 43442], [43444, 43455], [43471, 43481], [43488, 43518], [43520, 43574], [43584, 43597], [43600, 43609], [43616, 43638], [43642, 43710], [43712, 43712], [43714, 43714], [43739, 43741], [43744, 43759], [43762, 43765], [43777, 43782], [43785, 43790], [43793, 43798], [43808, 43814], [43816, 43822], [43824, 43866], [43868, 43881], [43888, 44010], [44016, 44025], [44032, 55203], [55216, 55238], [55243, 55291], [63744, 64109], [64112, 64217], [64256, 64262], [64275, 64279], [64285, 64296], [64298, 64310], [64312, 64316], [64318, 64318], [64320, 64321], [64323, 64324], [64326, 64433], [64467, 64829], [64848, 64911], [64914, 64967], [65008, 65019], [65136, 65140], [65142, 65276], [65296, 65305], [65313, 65338], [65345, 65370], [65382, 65470], [65474, 65479], [65482, 65487], [65490, 65495], [65498, 65500], [65536, 65547], [65549, 65574], [65576, 65594], [65596, 65597], [65599, 65613], [65616, 65629], [65664, 65786], [65799, 65843], [65856, 65912], [65930, 65931], [66176, 66204], [66208, 66256], [66273, 66299], [66304, 66339], [66349, 66378], [66384, 66426], [66432, 66461], [66464, 66499], [66504, 66511], [66513, 66517], [66560, 66717], [66720, 66729], [66736, 66771], [66776, 66811], [66816, 66855], [66864, 66915], [66928, 66938], [66940, 66954], [66956, 66962], [66964, 66965], [66967, 66977], [66979, 66993], [66995, 67001], [67003, 67004], [67008, 67059], [67072, 67382], [67392, 67413], [67424, 67431], [67456, 67461], [67463, 67504], [67506, 67514], [67584, 67589], [67592, 67592], [67594, 67637], [67639, 67640], [67644, 67644], [67647, 67669], [67672, 67702], [67705, 67742], [67751, 67759], [67808, 67826], [67828, 67829], [67835, 67867], [67872, 67897], [67904, 67929], [67968, 68023], [68028, 68047], [68050, 68099], [68101, 68102], [68108, 68115], [68117, 68119], [68121, 68149], [68160, 68168], [68192, 68222], [68224, 68255], [68288, 68295], [68297, 68324], [68331, 68335], [68352, 68405], [68416, 68437], [68440, 68466], [68472, 68497], [68521, 68527], [68608, 68680], [68736, 68786], [68800, 68850], [68858, 68903], [68912, 68921], [68928, 68965], [68969, 68969], [68975, 68997], [69216, 69246], [69248, 69289], [69291, 69292], [69296, 69297], [69314, 69319], [69370, 69372], [69376, 69415], [69424, 69445], [69457, 69460], [69488, 69505], [69552, 69579], [69600, 69622], [69632, 69701], [69714, 69743], [69745, 69749], [69760, 69816], [69826, 69826], [69840, 69864], [69872, 69881], [69888, 69938], [69942, 69951], [69956, 69959], [69968, 70002], [70006, 70006], [70016, 70079], [70081, 70084], [70094, 70106], [70108, 70108], [70113, 70132], [70144, 70161], [70163, 70196], [70199, 70199], [70206, 70209], [70272, 70278], [70280, 70280], [70282, 70285], [70287, 70301], [70303, 70312], [70320, 70376], [70384, 70393], [70400, 70403], [70405, 70412], [70415, 70416], [70419, 70440], [70442, 70448], [70450, 70451], [70453, 70457], [70461, 70468], [70471, 70472], [70475, 70476], [70480, 70480], [70487, 70487], [70493, 70499], [70528, 70537], [70539, 70539], [70542, 70542], [70544, 70581], [70583, 70592], [70594, 70594], [70597, 70597], [70599, 70602], [70604, 70605], [70609, 70609], [70611, 70611], [70656, 70721], [70723, 70725], [70727, 70730], [70736, 70745], [70751, 70753], [70784, 70849], [70852, 70853], [70855, 70855], [70864, 70873], [71040, 71093], [71096, 71102], [71128, 71133], [71168, 71230], [71232, 71232], [71236, 71236], [71248, 71257], [71296, 71349], [71352, 71352], [71360, 71369], [71376, 71395], [71424, 71450], [71453, 71466], [71472, 71483], [71488, 71494], [71680, 71736], [71840, 71922], [71935, 71942], [71945, 71945], [71948, 71955], [71957, 71958], [71960, 71989], [71991, 71992], [71995, 71996], [71999, 72002], [72016, 72025], [72096, 72103], [72106, 72151], [72154, 72159], [72161, 72161], [72163, 72164], [72192, 72242], [72245, 72254], [72272, 72343], [72349, 72349], [72368, 72440], [72544, 72551], [72640, 72672], [72688, 72697], [72704, 72712], [72714, 72758], [72760, 72766], [72768, 72768], [72784, 72812], [72818, 72847], [72850, 72871], [72873, 72886], [72960, 72966], [72968, 72969], [72971, 73014], [73018, 73018], [73020, 73021], [73023, 73025], [73027, 73027], [73030, 73031], [73040, 73049], [73056, 73061], [73063, 73064], [73066, 73102], [73104, 73105], [73107, 73110], [73112, 73112], [73120, 73129], [73136, 73179], [73184, 73193], [73440, 73462], [73472, 73488], [73490, 73530], [73534, 73536], [73552, 73561], [73648, 73648], [73664, 73684], [73728, 74649], [74752, 74862], [74880, 75075], [77712, 77808], [77824, 78895], [78913, 78918], [78944, 82938], [82944, 83526], [90368, 90414], [90416, 90425], [92160, 92728], [92736, 92766], [92768, 92777], [92784, 92862], [92864, 92873], [92880, 92909], [92928, 92975], [92992, 92995], [93008, 93017], [93019, 93025], [93027, 93047], [93053, 93071], [93504, 93548], [93552, 93561], [93760, 93846], [93856, 93880], [93883, 93907], [93952, 94026], [94031, 94087], [94095, 94111], [94176, 94177], [94179, 94179], [94192, 94198], [94208, 101589], [101631, 101662], [101760, 101874], [110576, 110579], [110581, 110587], [110589, 110590], [110592, 110882], [110898, 110898], [110928, 110930], [110933, 110933], [110948, 110951], [110960, 111355], [113664, 113770], [113776, 113788], [113792, 113800], [113808, 113817], [113822, 113822], [118e3, 118009], [119488, 119507], [119520, 119539], [119648, 119672], [119808, 119892], [119894, 119964], [119966, 119967], [119970, 119970], [119973, 119974], [119977, 119980], [119982, 119993], [119995, 119995], [119997, 120003], [120005, 120069], [120071, 120074], [120077, 120084], [120086, 120092], [120094, 120121], [120123, 120126], [120128, 120132], [120134, 120134], [120138, 120144], [120146, 120485], [120488, 120512], [120514, 120538], [120540, 120570], [120572, 120596], [120598, 120628], [120630, 120654], [120656, 120686], [120688, 120712], [120714, 120744], [120746, 120770], [120772, 120779], [120782, 120831], [122624, 122654], [122661, 122666], [122880, 122886], [122888, 122904], [122907, 122913], [122915, 122916], [122918, 122922], [122928, 122989], [123023, 123023], [123136, 123180], [123191, 123197], [123200, 123209], [123214, 123214], [123536, 123565], [123584, 123627], [123632, 123641], [124112, 124139], [124144, 124153], [124368, 124397], [124400, 124410], [124608, 124638], [124640, 124661], [124670, 124671], [124896, 124902], [124904, 124907], [124909, 124910], [124912, 124926], [124928, 125124], [125127, 125135], [125184, 125251], [125255, 125255], [125259, 125259], [125264, 125273], [126065, 126123], [126125, 126127], [126129, 126132], [126209, 126253], [126255, 126269], [126464, 126467], [126469, 126495], [126497, 126498], [126500, 126500], [126503, 126503], [126505, 126514], [126516, 126519], [126521, 126521], [126523, 126523], [126530, 126530], [126535, 126535], [126537, 126537], [126539, 126539], [126541, 126543], [126545, 126546], [126548, 126548], [126551, 126551], [126553, 126553], [126555, 126555], [126557, 126557], [126559, 126559], [126561, 126562], [126564, 126564], [126567, 126570], [126572, 126578], [126580, 126583], [126585, 126588], [126590, 126590], [126592, 126601], [126603, 126619], [126625, 126627], [126629, 126633], [126635, 126651], [127232, 127244], [127280, 127305], [127312, 127337], [127344, 127369], [130032, 130041], [131072, 173791], [173824, 178205], [178208, 183981], [183984, 191456], [191472, 192093], [194560, 195101], [196608, 201546], [201552, 210041]];
1501
+
1502
+ // src/i18n/lolo-lexer.ts
1503
+ function inRanges(ranges, source, i) {
1504
+ const cp = source.codePointAt(i);
1505
+ if (cp === void 0) return 0;
1506
+ let lo = 0;
1507
+ let hi = ranges.length - 1;
1508
+ while (lo <= hi) {
1509
+ const mid = lo + hi >> 1;
1510
+ const [first, last] = ranges[mid];
1511
+ if (cp < first) hi = mid - 1;
1512
+ else if (cp > last) lo = mid + 1;
1513
+ else return cp > 65535 ? 2 : 1;
1514
+ }
1515
+ return 0;
1516
+ }
1517
+ var DIGIT = /[0-9]/;
1518
+ var identStartWidth = (s, i) => inRanges(IDENT_START_RANGES, s, i);
1519
+ var identContinueWidth = (s, i) => inRanges(IDENT_CONTINUE_RANGES, s, i);
1520
+ var sigilWidth = (s, i) => inRanges(SIGIL_CONTINUE_RANGES, s, i);
1521
+ function lexLolo(source) {
1522
+ const tokens = [];
1523
+ let i = 0;
1524
+ const n = source.length;
1525
+ const push = (kind, start, end, text, textStart) => {
1526
+ tokens.push({
1527
+ kind,
1528
+ start,
1529
+ end,
1530
+ text: text ?? source.slice(start, end),
1531
+ textStart: textStart ?? start
1532
+ });
1533
+ };
1534
+ while (i < n) {
1535
+ const c = source[i];
1536
+ if (c === " " || c === " " || c === "\r" || c === "\n") {
1537
+ i++;
1538
+ continue;
1539
+ }
1540
+ if (c === "#") {
1541
+ const start2 = i;
1542
+ if (source[i + 1] === "=") {
1543
+ const close = source.indexOf("=#", i + 2);
1544
+ i = close === -1 ? n : close + 2;
1545
+ } else {
1546
+ const nl = source.indexOf("\n", i);
1547
+ i = nl === -1 ? n : nl;
1548
+ }
1549
+ push("comment", start2, i);
1550
+ continue;
1551
+ }
1552
+ if (c === ";" && source[i + 1] === ";") {
1553
+ const start2 = i;
1554
+ const nl = source.indexOf("\n", i);
1555
+ i = nl === -1 ? n : nl;
1556
+ push("comment", start2, i);
1557
+ continue;
1558
+ }
1559
+ if (c === '"') {
1560
+ const start2 = i;
1561
+ i++;
1562
+ while (i < n) {
1563
+ if (source[i] === "\\") {
1564
+ i += 2;
1565
+ continue;
1566
+ }
1567
+ if (source[i] === '"') {
1568
+ i++;
1569
+ break;
1570
+ }
1571
+ i++;
1572
+ }
1573
+ push("string", start2, Math.min(i, n));
1574
+ continue;
1575
+ }
1576
+ if (c === "@") {
1577
+ const start2 = i;
1578
+ i++;
1579
+ if (source[i] === "(") {
1580
+ i++;
1581
+ push("punct", start2, i);
1582
+ continue;
1583
+ }
1584
+ const nameStart = i;
1585
+ for (let w = sigilWidth(source, i); i < n && w > 0; w = sigilWidth(source, i)) i += w;
1586
+ push("sigil", start2, i, source.slice(nameStart, i), nameStart);
1587
+ continue;
1588
+ }
1589
+ if (c === "?") {
1590
+ const start2 = i;
1591
+ i++;
1592
+ if (i < n && identStartWidth(source, i) > 0) {
1593
+ const nameStart = i;
1594
+ for (let w = sigilWidth(source, i); i < n && w > 0; w = sigilWidth(source, i)) i += w;
1595
+ push("payload-sigil", start2, i, source.slice(nameStart, i), nameStart);
1596
+ } else {
1597
+ push("payload-sigil", start2, i, "", i);
1598
+ }
1599
+ continue;
1600
+ }
1601
+ if (c === "-") {
1602
+ const start2 = i;
1603
+ if (source[i + 1] === ">") {
1604
+ i += 2;
1605
+ push("punct", start2, i);
1606
+ } else if (source[i + 1] === "-") {
1607
+ i += 2;
1608
+ push("punct", start2, i);
1609
+ } else if (source[i + 1] !== void 0 && DIGIT.test(source[i + 1])) {
1610
+ i++;
1611
+ while (i < n && (DIGIT.test(source[i]) || source[i] === ".")) i++;
1612
+ push("number", start2, i);
1613
+ } else {
1614
+ i++;
1615
+ push("identifier", start2, i);
1616
+ }
1617
+ continue;
1618
+ }
1619
+ if (DIGIT.test(c)) {
1620
+ const start2 = i;
1621
+ while (i < n && (DIGIT.test(source[i]) || source[i] === ".")) i++;
1622
+ push("number", start2, i);
1623
+ continue;
1624
+ }
1625
+ if (c === "=" || c === "!" || c === "<" || c === ">") {
1626
+ const start2 = i;
1627
+ i++;
1628
+ if (source[i] === "=") i++;
1629
+ const two = i - start2 === 2;
1630
+ push(two ? "identifier" : "punct", start2, i);
1631
+ continue;
1632
+ }
1633
+ if (c === "+" || c === "*" || c === "/" || c === "%") {
1634
+ const start2 = i;
1635
+ i++;
1636
+ push("identifier", start2, i);
1637
+ continue;
1638
+ }
1639
+ if (identStartWidth(source, i) > 0) {
1640
+ const start2 = i;
1641
+ for (let w = identContinueWidth(source, i); i < n && w > 0; w = identContinueWidth(source, i)) i += w;
1642
+ const text = source.slice(start2, i);
1643
+ push(text === "true" || text === "false" || text === "null" ? "literal" : "identifier", start2, i, text);
1644
+ continue;
1645
+ }
1646
+ const start = i;
1647
+ i++;
1648
+ if (c === ":" && source[i] === ":") i++;
1649
+ push("punct", start, i);
1650
+ }
1651
+ return tokens;
1652
+ }
1653
+
1654
+ // src/i18n/localize.ts
1655
+ var LOLO_SECTIONS = [
1656
+ "keywords",
1657
+ "shapes",
1658
+ "tags",
1659
+ "categories",
1660
+ "capabilities",
1661
+ "annotations",
1662
+ "sigils",
1663
+ "effects",
1664
+ "types",
1665
+ "units",
1666
+ "literals",
1667
+ "reservedEvents"
1668
+ ];
1669
+ var CANON_ANY_ORDER = [
1670
+ "keywords",
1671
+ "shapes",
1672
+ "tags",
1673
+ "categories",
1674
+ "capabilities",
1675
+ "annotations",
1676
+ "sigils",
1677
+ "types",
1678
+ "units",
1679
+ "literals",
1680
+ "reservedEvents"
1681
+ ];
1682
+ function forward(lang, sections, resolutionOrder, operators) {
1683
+ const canon = (native) => {
1684
+ for (const section of resolutionOrder) {
1685
+ for (const [english, value] of Object.entries(getVocabulary(lang)[section])) {
1686
+ if (value === native) return english;
1687
+ }
1688
+ }
1689
+ if (operators) {
1690
+ for (const [english, value] of Object.entries(operators.operators)) {
1691
+ if (value === native) return english;
1692
+ }
1693
+ }
1694
+ return void 0;
1695
+ };
1696
+ const map = /* @__PURE__ */ new Map();
1697
+ const add = (english, native) => {
1698
+ if (canon(native) !== english) return;
1699
+ map.set(english, native);
1700
+ };
1701
+ for (const section of sections) {
1702
+ for (const [english, native] of Object.entries(getVocabulary(lang)[section])) {
1703
+ add(english, native);
1704
+ }
1705
+ }
1706
+ if (operators) {
1707
+ for (const [english, native] of Object.entries(operators.operators)) {
1708
+ add(english, native);
1709
+ }
1710
+ }
1711
+ return map;
1712
+ }
1713
+ function localizeMap(lang, operators) {
1714
+ return forward(lang, LOLO_SECTIONS, CANON_ANY_ORDER, operators);
1715
+ }
1716
+ function isWordShaped(english) {
1717
+ return /^[A-Za-z_][A-Za-z0-9_/-]*$/.test(english);
1718
+ }
1719
+ var FIELD_BLOCK_HEADS = /* @__PURE__ */ new Set(["entity", "type", "config", "params", "variants", "tokens", "event"]);
1720
+ var EVENT_BLOCK_HEADS = /* @__PURE__ */ new Set(["listens", "emits", "events"]);
1721
+ var NAME_INTRODUCING = /* @__PURE__ */ new Set([
1722
+ "app",
1723
+ "orbital",
1724
+ "entity",
1725
+ "trait",
1726
+ "state",
1727
+ "page",
1728
+ "type",
1729
+ "event",
1730
+ "uses",
1731
+ "theme",
1732
+ "as",
1733
+ "extend"
1734
+ ]);
1735
+ var NAME_PUNCT = /* @__PURE__ */ new Set(["->", "-->", "\u2192", ".", "--"]);
1736
+ function localizeLoloSource(source, lang, options = {}) {
1737
+ if (lang === "en") return source;
1738
+ const { operators } = options;
1739
+ const keywords = forward(lang, ["keywords"], CANON_ANY_ORDER);
1740
+ const shapes = forward(lang, ["shapes"], CANON_ANY_ORDER);
1741
+ const types = forward(lang, ["types"], ["types"]);
1742
+ const modifiers = forward(lang, ["tags", "categories", "capabilities", "keywords"], CANON_ANY_ORDER);
1743
+ const heads = forward(lang, ["effects"], ["effects"], operators);
1744
+ const sigils = forward(lang, ["sigils", "annotations"], ["sigils", "annotations"]);
1745
+ const bindingSigils = forward(lang, ["sigils"], ["sigils", "annotations"]);
1746
+ const literals = forward(lang, ["literals"], ["literals"]);
1747
+ const units = forward(lang, ["units"], ["units"]);
1748
+ const reservedEvents = forward(lang, ["reservedEvents"], ["reservedEvents"]);
1749
+ const tokens = lexLolo(source);
1750
+ const edits = [];
1751
+ const stack = [
1752
+ {
1753
+ kind: "root",
1754
+ stmtHead: void 0,
1755
+ blockHead: void 0,
1756
+ afterColon: false,
1757
+ sawEquals: false,
1758
+ refBody: false,
1759
+ parenHead: void 0,
1760
+ binderSeen: false
1761
+ }
1762
+ ];
1763
+ const top = () => stack[stack.length - 1];
1764
+ let prev;
1765
+ const replace = (token, map) => {
1766
+ if (!isWordShaped(token.text)) return;
1767
+ const native = map.get(token.text);
1768
+ if (native === void 0 || native === token.text) return;
1769
+ edits.push({ start: token.textStart, end: token.end, text: native });
1770
+ };
1771
+ for (let index = 0; index < tokens.length; index++) {
1772
+ const token = tokens[index];
1773
+ if (token.kind === "comment") continue;
1774
+ const frame = top();
1775
+ const startsStatement = prev === void 0 || prev.text === "{" || prev.text === "}" || source.slice(prev.end, token.start).includes("\n");
1776
+ if (startsStatement) {
1777
+ frame.stmtHead = void 0;
1778
+ frame.afterColon = false;
1779
+ frame.sawEquals = false;
1780
+ }
1781
+ if (token.kind === "punct") {
1782
+ const text = source.slice(token.start, token.end);
1783
+ const child = (kind) => ({
1784
+ kind,
1785
+ stmtHead: void 0,
1786
+ blockHead: frame.stmtHead,
1787
+ afterColon: false,
1788
+ sawEquals: false,
1789
+ refBody: frame.refBody || frame.sawEquals,
1790
+ parenHead: void 0,
1791
+ binderSeen: false
1792
+ });
1793
+ if (text === "(" || text === "@(") {
1794
+ stack.push({ ...child(parenFrame(frame, prev)), blockHead: void 0 });
1795
+ if (top().kind === "binder-list") frame.binderSeen = true;
1796
+ } else if (text === "{") {
1797
+ stack.push(child(braceFrame(frame, prev)));
1798
+ } else if (text === "[") {
1799
+ stack.push(child(bracketFrame(frame, prev)));
1800
+ } else if (text === ")" || text === "}" || text === "]") {
1801
+ if (stack.length > 1) stack.pop();
1802
+ top().afterColon = false;
1803
+ top().sawEquals = false;
1804
+ } else if (text === ":") {
1805
+ frame.afterColon = true;
1806
+ } else if (text === "=") {
1807
+ frame.afterColon = false;
1808
+ frame.sawEquals = true;
1809
+ } else if (text === ",") {
1810
+ frame.afterColon = false;
1811
+ frame.sawEquals = false;
1812
+ frame.stmtHead = void 0;
1813
+ }
1814
+ prev = token;
1815
+ continue;
1816
+ }
1817
+ const opaque = frame.kind === "object" || frame.kind === "array" || frame.kind === "binder-list" || frame.kind === "binder-pair" && prev !== void 0 && prev.text === "(";
1818
+ if (token.kind === "sigil") {
1819
+ const dot = token.text.indexOf(".");
1820
+ const root = dot === -1 ? token.text : token.text.slice(0, dot);
1821
+ const native = (opaque || frame.kind === "paren" ? bindingSigils : sigils).get(root);
1822
+ if (native !== void 0 && native !== root) {
1823
+ edits.push({ start: token.textStart, end: token.textStart + root.length, text: native });
1824
+ }
1825
+ prev = token;
1826
+ continue;
1827
+ }
1828
+ if (token.kind === "payload-sigil" || token.kind === "string" || token.kind === "number") {
1829
+ prev = token;
1830
+ continue;
1831
+ }
1832
+ if (token.kind === "literal") {
1833
+ if (!opaque) replace(token, literals);
1834
+ prev = token;
1835
+ continue;
1836
+ }
1837
+ const prevText = prev === void 0 ? void 0 : source.slice(prev.start, prev.end);
1838
+ const afterName = prevText !== void 0 && (NAME_INTRODUCING.has(prevText) || NAME_PUNCT.has(prevText));
1839
+ if (token.text === "INIT" && !opaque && !frame.sawEquals) {
1840
+ replace(token, reservedEvents);
1841
+ if (frame.stmtHead === void 0) frame.stmtHead = token.text;
1842
+ prev = token;
1843
+ continue;
1844
+ }
1845
+ if (!opaque && !startsStatement && prev !== void 0 && prev.kind === "number") {
1846
+ replace(token, units);
1847
+ prev = token;
1848
+ continue;
1849
+ }
1850
+ switch (frame.kind) {
1851
+ case "paren": {
1852
+ if (prevText === "(") {
1853
+ frame.parenHead = token.text;
1854
+ replace(token, heads);
1855
+ }
1856
+ break;
1857
+ }
1858
+ case "binder-list":
1859
+ case "binder-pair":
1860
+ break;
1861
+ case "object":
1862
+ case "array":
1863
+ break;
1864
+ case "mods":
1865
+ if (!frame.afterColon) replace(token, modifiers);
1866
+ break;
1867
+ case "type-array":
1868
+ replace(token, types);
1869
+ break;
1870
+ case "block-fields": {
1871
+ if (frame.afterColon && !afterName) replace(token, types);
1872
+ break;
1873
+ }
1874
+ case "root":
1875
+ case "block-body": {
1876
+ if (!afterName) replace(token, frame.afterColon ? types : keywords);
1877
+ break;
1878
+ }
1879
+ }
1880
+ if ((frame.kind === "root" || frame.kind === "block-body") && prevText === "=") {
1881
+ replace(token, shapes);
1882
+ }
1883
+ if (frame.stmtHead === void 0) frame.stmtHead = token.text;
1884
+ prev = token;
1885
+ }
1886
+ return applyEdits(source, edits);
1887
+ }
1888
+ function parenFrame(frame, prev) {
1889
+ if (frame.kind === "binder-list") return "binder-pair";
1890
+ if (frame.kind === "paren" && !frame.binderSeen && prev !== void 0 && prev.text === frame.parenHead && (frame.parenHead === "let" || frame.parenHead === "fn" || frame.parenHead === "lambda")) {
1891
+ return "binder-list";
1892
+ }
1893
+ return "paren";
1894
+ }
1895
+ function braceFrame(frame, prev) {
1896
+ if (isExpression(frame.kind)) return "object";
1897
+ if (frame.kind === "block-fields" && prev !== void 0 && prev.text === "=") return "object";
1898
+ if (frame.refBody && frame.stmtHead === "config") return "object";
1899
+ if (frame.blockHead !== void 0 && EVENT_BLOCK_HEADS.has(frame.blockHead)) return "block-fields";
1900
+ if (frame.kind === "type-array") return "block-fields";
1901
+ if (frame.kind === "block-fields" && frame.afterColon) return "block-fields";
1902
+ const head = frame.stmtHead;
1903
+ return head !== void 0 && FIELD_BLOCK_HEADS.has(head) ? "block-fields" : "block-body";
1904
+ }
1905
+ function bracketFrame(frame, prev) {
1906
+ if (isExpression(frame.kind)) return "array";
1907
+ if (prev !== void 0 && prev.text === "=") return "array";
1908
+ if (frame.afterColon) return frame.kind === "block-fields" ? "type-array" : "array";
1909
+ return "mods";
1910
+ }
1911
+ function isExpression(kind) {
1912
+ return kind === "paren" || kind === "object" || kind === "array" || kind === "binder-list" || kind === "binder-pair";
1913
+ }
1914
+ function applyEdits(source, edits) {
1915
+ if (edits.length === 0) return source;
1916
+ edits.sort((a, b) => a.start - b.start);
1917
+ let out = "";
1918
+ let cursor = 0;
1919
+ for (const edit of edits) {
1920
+ if (edit.start < cursor) continue;
1921
+ out += source.slice(cursor, edit.start) + edit.text;
1922
+ cursor = edit.end;
1923
+ }
1924
+ return out + source.slice(cursor);
1925
+ }
1926
+ function localizeOrbValue(value, lang, options = {}) {
1927
+ if (lang === "en") return value;
1928
+ const orbKeys = forward(lang, ["orb"], ["orb"]);
1929
+ const types = forward(lang, ["types"], ["types"]);
1930
+ const tags = forward(lang, ["tags"], ["tags"]);
1931
+ const heads = forward(lang, ["effects"], ["effects"], options.operators);
1932
+ const sigils = forward(lang, ["sigils"], ["sigils", "annotations"]);
1933
+ const walk = (node, inExpression) => {
1934
+ if (Array.isArray(node)) {
1935
+ const head = node[0];
1936
+ const native = typeof head === "string" ? heads.get(head) : void 0;
1937
+ const isExpression2 = native !== void 0;
1938
+ const items = node.map(
1939
+ (child, index) => index === 0 && isExpression2 ? child : walk(child, inExpression || isExpression2)
1940
+ );
1941
+ if (native !== void 0) items[0] = native;
1942
+ return items;
1943
+ }
1944
+ if (node !== null && typeof node === "object") {
1945
+ const out = {};
1946
+ for (const [key, child] of Object.entries(node)) {
1947
+ const nativeKey = orbKeys.get(key) ?? key;
1948
+ let next = walk(child, inExpression);
1949
+ if (typeof next === "string") {
1950
+ if (key === "type" && !inExpression) next = types.get(next) ?? next;
1951
+ else if (key === "persistence") next = tags.get(next) ?? next;
1952
+ }
1953
+ out[nativeKey] = next;
1954
+ }
1955
+ return out;
1956
+ }
1957
+ if (typeof node === "string" && node.startsWith("@")) {
1958
+ const rest = node.slice(1);
1959
+ const dot = rest.indexOf(".");
1960
+ const root = dot === -1 ? rest : rest.slice(0, dot);
1961
+ const native = sigils.get(root);
1962
+ if (native === void 0) return node;
1963
+ return dot === -1 ? `@${native}` : `@${native}${rest.slice(dot)}`;
1964
+ }
1965
+ return node;
1966
+ };
1967
+ return walk(value, false);
1968
+ }
1969
+
1970
+ // src/i18n/index.ts
1971
+ function localeDirection(locale) {
1972
+ return RTL_LOCALES.includes(locale) ? "rtl" : "ltr";
1973
+ }
1974
+ function pathLocale(path, locales) {
1975
+ const first = path.replace(/^\/+/, "").split("/")[0] ?? "";
1976
+ return locales.find((l) => l === first);
1977
+ }
1978
+ function localeOfPath(path, locales) {
1979
+ return pathLocale(path, locales) ?? locales[0];
1980
+ }
1981
+ function localeAlternates(pages, page, locales) {
1982
+ const indexable = (p) => p.access === "public" && p.indexing !== "noindex";
1983
+ const group = (p) => p.translationOf ?? p.sourcePage;
1984
+ const key = group(page);
1985
+ if (!indexable(page) || key === void 0) return void 0;
1986
+ const byLocale = [];
1987
+ for (const other of pages) {
1988
+ if (group(other) !== key || !indexable(other)) continue;
1989
+ const locale = localeOfPath(other.path, locales);
1990
+ if (locale === void 0 || byLocale.some((a) => a.locale === locale)) return void 0;
1991
+ byLocale.push({ locale, path: other.path });
1992
+ }
1993
+ if (byLocale.length < 2) return void 0;
1994
+ return byLocale.sort((a, b) => locales.indexOf(a.locale) - locales.indexOf(b.locale));
1995
+ }
1996
+ var I18N_SECTIONS = [
1997
+ "keywords",
1998
+ "shapes",
1999
+ "tags",
2000
+ "categories",
2001
+ "capabilities",
2002
+ "annotations",
2003
+ "sigils",
2004
+ "effects",
2005
+ "types",
2006
+ "units",
2007
+ "literals",
2008
+ "reservedEvents",
2009
+ "orb"
2010
+ ];
2011
+ function isPlainObject(x) {
2012
+ return typeof x === "object" && x !== null && !Array.isArray(x);
2013
+ }
2014
+ function isRawI18nTable(x) {
2015
+ return isPlainObject(x);
2016
+ }
2017
+ function isStringRecord(x) {
2018
+ if (!isPlainObject(x)) return false;
2019
+ for (const value of Object.values(x)) {
2020
+ if (typeof value !== "string") return false;
2021
+ }
2022
+ return true;
2023
+ }
2024
+ var LANGUAGE_CODE = /^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$/;
2025
+ function isLanguageCode(x) {
2026
+ return typeof x === "string" && LANGUAGE_CODE.test(x);
2027
+ }
2028
+ function isI18nMeta(x) {
2029
+ if (!isPlainObject(x) || !("code" in x) || !("name" in x) || !("rtl" in x)) return false;
2030
+ return isLanguageCode(x.code) && typeof x.name === "string" && typeof x.rtl === "boolean";
2031
+ }
2032
+ function emptySections() {
2033
+ return {
2034
+ keywords: {},
2035
+ shapes: {},
2036
+ tags: {},
2037
+ categories: {},
2038
+ capabilities: {},
2039
+ annotations: {},
2040
+ sigils: {},
2041
+ effects: {},
2042
+ types: {},
2043
+ units: {},
2044
+ literals: {},
2045
+ reservedEvents: {},
2046
+ orb: {}
2047
+ };
2048
+ }
2049
+ function parseI18nTables(raw, source) {
2050
+ if (!isRawI18nTable(raw)) {
2051
+ throw new Error(`i18n table "${source}": expected a JSON object, got ${typeof raw}`);
2052
+ }
2053
+ if (!isI18nMeta(raw.meta)) {
2054
+ throw new Error(`i18n table "${source}": missing or malformed "meta" (expected { code, name, rtl })`);
2055
+ }
2056
+ const badSections = [];
2057
+ const sections = emptySections();
2058
+ for (const section of I18N_SECTIONS) {
2059
+ const value = raw[section];
2060
+ if (value === void 0) continue;
2061
+ if (!isStringRecord(value)) {
2062
+ badSections.push(section);
2063
+ continue;
2064
+ }
2065
+ sections[section] = value;
2066
+ }
2067
+ if (badSections.length > 0) {
2068
+ throw new Error(`i18n table "${source}": sections not Record<string,string>: ${badSections.join(", ")}`);
2069
+ }
2070
+ return { meta: raw.meta, ...sections };
2071
+ }
2072
+ function parseNotationKeys(raw, source) {
2073
+ if (!isPlainObject(raw) || !("keys" in raw) || !Array.isArray(raw.keys)) {
2074
+ throw new Error(`notation file "${source}": expected { keys: string[] }`);
2075
+ }
2076
+ const keys = [];
2077
+ for (const key of raw.keys) {
2078
+ if (typeof key !== "string") {
2079
+ throw new Error(`notation file "${source}": every key must be a string`);
2080
+ }
2081
+ keys.push(key);
2082
+ }
2083
+ return keys;
2084
+ }
2085
+ function parseOperatorTables(raw, source) {
2086
+ if (!isPlainObject(raw) || !("operators" in raw) || !isStringRecord(raw.operators)) {
2087
+ throw new Error(`operator table "${source}": expected { operators: Record<string,string> }`);
2088
+ }
2089
+ return { operators: raw.operators };
2090
+ }
2091
+ var ORB_NOTATION_KEYS = new Set(
2092
+ parseNotationKeys(orb_notation_default, "orb-notation.json")
2093
+ );
2094
+ var englishTables = parseI18nTables(en_default, "en.json");
2095
+ function parseVocabularyPack(raw, source) {
2096
+ const tables = parseI18nTables(raw, source);
2097
+ const { operators } = parseOperatorTables(raw, source);
2098
+ return { ...tables, operators };
2099
+ }
2100
+ var registeredPacks = /* @__PURE__ */ new Map();
2101
+ function registerVocabulary(pack) {
2102
+ const code = pack.meta.code;
2103
+ if (code === "en") throw new Error('language pack "en": English is built in and cannot be replaced');
2104
+ const existing = registeredPacks.get(code);
2105
+ if (existing) {
2106
+ if (JSON.stringify(existing) === JSON.stringify(pack)) return;
2107
+ throw new Error(`language pack "${code}": a different "${code}" pack is already installed`);
2108
+ }
2109
+ kernelEvaluator().validatePacks([...registeredPacks, [code, pack]].map(([lang, definition]) => ({ package: lang, definition })));
2110
+ const core = { en: englishTables };
2111
+ for (const [other, table] of registeredPacks) core[other] = table;
2112
+ core[code] = pack;
2113
+ const std = {};
2114
+ for (const [other, table] of registeredPacks) std[other] = { operators: table.operators };
2115
+ std[code] = { operators: pack.operators };
2116
+ const fatal = checkI18nCoverage({ core, std }).problems.filter((p) => p.lang === code && p.kind === "collision" && p.section === "effects\u222Aoperators");
2117
+ if (fatal.length > 0) {
2118
+ const lines = fatal.map((p) => `${p.kind} ${p.section}.${p.key}${p.detail ? ` \u2014 ${p.detail}` : ""}`);
2119
+ throw new Error(`language pack "${code}" is refused:
2120
+ ${lines.join("\n ")}`);
2121
+ }
2122
+ registeredPacks.set(code, pack);
2123
+ }
2124
+ function installedLanguages() {
2125
+ return ["en", ...[...registeredPacks.keys()].sort()];
2126
+ }
2127
+ function getVocabulary(lang) {
2128
+ if (lang === "en") return englishTables;
2129
+ const pack = registeredPacks.get(lang);
2130
+ if (!pack) {
2131
+ throw new Error(`language "${lang}" is not installed \u2014 install its language pack (\`orb language install <package>\`) and register it`);
2132
+ }
2133
+ return pack;
2134
+ }
2135
+ function vocabularyOperators(lang) {
2136
+ const pack = registeredPacks.get(lang);
2137
+ return pack ? { operators: pack.operators } : void 0;
2138
+ }
2139
+ function aliasMap(lang, section, operators) {
2140
+ let table;
2141
+ if (section === "operators") {
2142
+ if (!operators) {
2143
+ throw new Error(`aliasMap("${lang}", "operators") requires an OperatorTables argument`);
2144
+ }
2145
+ table = operators.operators;
2146
+ } else {
2147
+ table = getVocabulary(lang)[section];
2148
+ }
2149
+ const map = /* @__PURE__ */ new Map();
2150
+ for (const [english, native] of Object.entries(table)) {
2151
+ map.set(native, english);
2152
+ }
2153
+ return map;
2154
+ }
2155
+ function languageOfLoloFirstToken(token) {
2156
+ const matches = installedLanguages().filter(
2157
+ (lang) => LOLO_FIRST_TOKEN_KEYWORDS.some((kw) => getVocabulary(lang).keywords[kw] === token)
2158
+ );
2159
+ return matches.length === 1 ? matches[0] : void 0;
2160
+ }
2161
+ function languageOfOrbTopLevelKeys(keys) {
2162
+ const keySet = new Set(keys);
2163
+ const matches = installedLanguages().filter((lang) => keySet.has(getVocabulary(lang).orb.orbitals));
2164
+ return matches.length === 1 ? matches[0] : void 0;
2165
+ }
2166
+ function checkI18nCoverage(input) {
2167
+ const problems = [];
2168
+ const { core, std, canonicalOperators } = input;
2169
+ const enTable = core.en;
2170
+ for (const lang of Object.keys(core)) {
2171
+ for (const key of Object.keys(core[lang].orb)) {
2172
+ if (ORB_NOTATION_KEYS.has(key)) {
2173
+ problems.push({
2174
+ lang,
2175
+ section: "orb",
2176
+ kind: "notation-in-vocabulary",
2177
+ key,
2178
+ detail: "design-system token name \u2014 notation, not language vocabulary"
2179
+ });
2180
+ }
2181
+ }
2182
+ }
2183
+ for (const lang of Object.keys(core)) {
2184
+ const table = core[lang];
2185
+ for (const section of I18N_SECTIONS) {
2186
+ const values = table[section];
2187
+ if (lang !== "en") {
2188
+ const enKeys = new Set(Object.keys(enTable[section]));
2189
+ const langKeys = new Set(Object.keys(values));
2190
+ for (const key of enKeys) {
2191
+ if (!langKeys.has(key)) {
2192
+ problems.push({ lang, section, kind: "missing", key });
2193
+ }
2194
+ }
2195
+ for (const key of langKeys) {
2196
+ if (!enKeys.has(key)) {
2197
+ problems.push({ lang, section, kind: "orphan", key });
2198
+ }
2199
+ }
2200
+ }
2201
+ for (const [key, value] of Object.entries(values)) {
2202
+ if (value === "") {
2203
+ problems.push({ lang, section, kind: "empty", key });
2204
+ }
2205
+ }
2206
+ }
2207
+ }
2208
+ for (const lang of Object.keys(core)) {
2209
+ const table = core[lang];
2210
+ for (const section of I18N_SECTIONS) {
2211
+ const byValue = /* @__PURE__ */ new Map();
2212
+ for (const [key, value] of Object.entries(table[section])) {
2213
+ const keys = byValue.get(value) ?? [];
2214
+ keys.push(key);
2215
+ byValue.set(value, keys);
2216
+ }
2217
+ for (const [value, keys] of byValue) {
2218
+ if (keys.length < 2) continue;
2219
+ for (let i = 1; i < keys.length; i++) {
2220
+ problems.push({
2221
+ lang,
2222
+ section,
2223
+ kind: "collision",
2224
+ key: keys[i],
2225
+ detail: `shares native value "${value}" with "${keys[0]}" in ${section}`
2226
+ });
2227
+ }
2228
+ }
2229
+ }
2230
+ const combined = /* @__PURE__ */ new Map();
2231
+ for (const [key, value] of Object.entries(table.effects)) {
2232
+ const list = combined.get(value) ?? [];
2233
+ list.push({ section: "effects", key });
2234
+ combined.set(value, list);
2235
+ }
2236
+ const opTable = std?.[lang]?.operators;
2237
+ if (opTable) {
2238
+ for (const [key, value] of Object.entries(opTable)) {
2239
+ const list = combined.get(value) ?? [];
2240
+ list.push({ section: "operators", key });
2241
+ combined.set(value, list);
2242
+ }
2243
+ }
2244
+ for (const [value, entries] of combined) {
2245
+ const hasEffects = entries.some((e) => e.section === "effects");
2246
+ const hasOperators = entries.some((e) => e.section === "operators");
2247
+ if (!(hasEffects && hasOperators)) continue;
2248
+ const first = entries[0];
2249
+ for (const entry of entries.slice(1)) {
2250
+ if (entry.key === first.key) continue;
2251
+ problems.push({
2252
+ lang,
2253
+ section: "effects\u222Aoperators",
2254
+ kind: "collision",
2255
+ key: entry.key,
2256
+ detail: `shares native value "${value}" with "${first.key}" (${first.section}) in effects\u222Aoperators`
2257
+ });
2258
+ }
2259
+ }
2260
+ }
2261
+ const selectorUses = /* @__PURE__ */ new Map();
2262
+ for (const lang of Object.keys(core)) {
2263
+ const table = core[lang];
2264
+ const selectors = [
2265
+ ...LOLO_FIRST_TOKEN_KEYWORDS.map((key) => ({ section: "keywords", key, value: table.keywords[key] })),
2266
+ { section: "orb", key: "orbitals", value: table.orb.orbitals }
2267
+ ];
2268
+ for (const { section, key, value } of selectors) {
2269
+ if (value === void 0) continue;
2270
+ const uses = selectorUses.get(value) ?? [];
2271
+ uses.push({ lang, section, key });
2272
+ selectorUses.set(value, uses);
2273
+ }
2274
+ }
2275
+ for (const [value, uses] of selectorUses) {
2276
+ const langs = new Set(uses.map((u) => u.lang));
2277
+ if (langs.size < 2) continue;
2278
+ for (const use of uses) {
2279
+ const others = uses.filter((u) => u.lang !== use.lang).map((u) => `${u.lang}:${u.section}.${u.key}`);
2280
+ problems.push({
2281
+ lang: use.lang,
2282
+ section: use.section,
2283
+ kind: "selector-not-unique",
2284
+ key: use.key,
2285
+ detail: `${use.section}.${use.key} = "${value}" is also a language selector in: ${others.join(", ")}`
2286
+ });
2287
+ }
2288
+ }
2289
+ if (std && canonicalOperators) {
2290
+ const canonicalSet = new Set(canonicalOperators);
2291
+ for (const lang of Object.keys(core)) {
2292
+ const opTable = std[lang]?.operators;
2293
+ if (!opTable) continue;
2294
+ const langKeys = new Set(Object.keys(opTable));
2295
+ for (const op of canonicalSet) {
2296
+ if (!langKeys.has(op)) {
2297
+ problems.push({ lang, section: "operators", kind: "operators-mismatch", key: op, detail: "missing from language operator table" });
2298
+ }
2299
+ }
2300
+ for (const op of langKeys) {
2301
+ if (!canonicalSet.has(op)) {
2302
+ problems.push({ lang, section: "operators", kind: "operators-mismatch", key: op, detail: "not present in canonical operator set" });
2303
+ }
2304
+ }
2305
+ }
2306
+ }
2307
+ return { ok: problems.length === 0, problems };
2308
+ }
2309
+ function reportIdenticalToEnglish(input) {
2310
+ const problems = [];
2311
+ const enTable = input.core.en;
2312
+ for (const lang of Object.keys(input.core)) {
2313
+ if (lang === "en") continue;
2314
+ const table = input.core[lang];
2315
+ for (const section of I18N_SECTIONS) {
2316
+ for (const [key, value] of Object.entries(table[section])) {
2317
+ const enValue = enTable[section][key];
2318
+ if (enValue !== void 0 && value === enValue) {
2319
+ problems.push({ lang, section, kind: "identical-to-english", key, detail: `matches English value "${enValue}"` });
2320
+ }
2321
+ }
2322
+ }
2323
+ }
2324
+ return problems;
2325
+ }
2326
+
2327
+ export { I18N_SECTIONS, KernelEvalError, KernelEvaluatorNotInstalledError, LOLO_FIRST_TOKEN_KEYWORDS, ORB_NOTATION_KEYS, RTL_LOCALES, aliasMap, applyListenMapping, checkI18nCoverage, createKernelEvaluator, englishTables, eventPayloadOf, getVocabulary, hasKernelEvaluator, installKernelEvaluator, installedLanguages, kernelEvaluator, languageOfLoloFirstToken, languageOfOrbTopLevelKeys, lazyKernelExports, lexLolo, localeAlternates, localeDirection, localeOfPath, localizeLoloSource, localizeMap, localizeOrbValue, parseI18nTables, parseOperatorTables, parseVocabularyPack, pathLocale, registerVocabulary, reportIdenticalToEnglish, toWireValue, vocabularyOperators };
2328
+ //# sourceMappingURL=chunk-Y2DYZPP5.js.map
2329
+ //# sourceMappingURL=chunk-Y2DYZPP5.js.map