@digipair/skill-web-chatbot 0.91.0-0 → 0.91.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 (136) hide show
  1. package/SAP-icons.cjs.js +2489 -0
  2. package/SAP-icons.cjs2.js +2489 -0
  3. package/SAP-icons.esm.js +2482 -0
  4. package/SAP-icons.esm2.js +2482 -0
  5. package/Tableau10-558cc280.cjs.js +9 -0
  6. package/Tableau10-558cc280.esm.js +7 -0
  7. package/arc-d1f6357e.cjs.js +88 -0
  8. package/arc-d1f6357e.esm.js +86 -0
  9. package/array-2ff2c7a6.cjs.js +7 -0
  10. package/array-2ff2c7a6.esm.js +5 -0
  11. package/blockDiagram-5dc23a45.cjs.js +2921 -0
  12. package/blockDiagram-5dc23a45.esm.js +2919 -0
  13. package/c4Diagram-1e775db3.cjs.js +4387 -0
  14. package/c4Diagram-1e775db3.esm.js +4385 -0
  15. package/channel-ebbc4130.cjs.js +9 -0
  16. package/channel-ebbc4130.esm.js +7 -0
  17. package/classDiagram-f52caa06.cjs.js +209 -0
  18. package/classDiagram-f52caa06.esm.js +207 -0
  19. package/classDiagram-v2-640c694e.cjs.js +401 -0
  20. package/classDiagram-v2-640c694e.esm.js +399 -0
  21. package/clone-afc2f047.cjs.js +10 -0
  22. package/clone-afc2f047.esm.js +8 -0
  23. package/createText-03b82060.cjs.js +2936 -0
  24. package/createText-03b82060.esm.js +2933 -0
  25. package/edges-16357fde.cjs.js +1998 -0
  26. package/edges-16357fde.esm.js +1981 -0
  27. package/erDiagram-c7ff1bec.cjs.js +1807 -0
  28. package/erDiagram-c7ff1bec.esm.js +1805 -0
  29. package/flowDb-9a89ea33.cjs.js +5542 -0
  30. package/flowDb-9a89ea33.esm.js +5538 -0
  31. package/flowDiagram-aadb13b0.cjs.js +1351 -0
  32. package/flowDiagram-aadb13b0.esm.js +1349 -0
  33. package/flowDiagram-v2-f2119625.cjs.js +31 -0
  34. package/flowDiagram-v2-f2119625.esm.js +29 -0
  35. package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
  36. package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
  37. package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
  38. package/ganttDiagram-3c2fde2b.esm.js +3708 -0
  39. package/gitGraphDiagram-c3a0619c.cjs.js +3820 -0
  40. package/gitGraphDiagram-c3a0619c.esm.js +3818 -0
  41. package/graph-0ee63739.cjs.js +961 -0
  42. package/graph-0ee63739.esm.js +938 -0
  43. package/index-bb6d8841.cjs.js +648 -0
  44. package/index-bb6d8841.esm.js +646 -0
  45. package/index.cjs.d.ts +1 -0
  46. package/index.cjs.js +17 -0
  47. package/index.cjs2.js +60723 -0
  48. package/index.esm.js +1 -0
  49. package/index.esm2.js +60574 -0
  50. package/infoDiagram-2f5c50c0.cjs.js +460 -0
  51. package/infoDiagram-2f5c50c0.esm.js +458 -0
  52. package/init-f9637058.cjs.js +17 -0
  53. package/init-f9637058.esm.js +15 -0
  54. package/journeyDiagram-14fe341a.cjs.js +1061 -0
  55. package/journeyDiagram-14fe341a.esm.js +1059 -0
  56. package/katex-d90b6d29.cjs.js +25690 -0
  57. package/katex-d90b6d29.esm.js +25688 -0
  58. package/layout-fd473db2.cjs.js +1626 -0
  59. package/layout-fd473db2.esm.js +1619 -0
  60. package/libs/engine/src/index.d.ts +2 -0
  61. package/libs/engine/src/lib/alias.interface.d.ts +9 -0
  62. package/libs/engine/src/lib/engine.d.ts +13 -0
  63. package/libs/engine/src/lib/pins-settings.interface.d.ts +15 -0
  64. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +28 -0
  65. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  66. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  67. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  68. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +36 -0
  69. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  70. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +44 -0
  71. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +10 -0
  72. package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +10 -0
  73. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +1 -0
  74. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  75. package/line-24d93f1b.cjs.js +34 -0
  76. package/line-24d93f1b.esm.js +32 -0
  77. package/linear-9bcf74c4.cjs.js +537 -0
  78. package/linear-9bcf74c4.esm.js +531 -0
  79. package/mindmap-definition-9399c7e6.cjs.js +20489 -0
  80. package/mindmap-definition-9399c7e6.esm.js +20487 -0
  81. package/ordinal-5695958c.cjs.js +331 -0
  82. package/ordinal-5695958c.esm.js +329 -0
  83. package/package.json +7 -22
  84. package/path-428ebac9.cjs.js +317 -0
  85. package/path-428ebac9.esm.js +314 -0
  86. package/pieDiagram-828dae43.cjs.js +951 -0
  87. package/pieDiagram-828dae43.esm.js +949 -0
  88. package/quadrantDiagram-5fa00455.cjs.js +2410 -0
  89. package/quadrantDiagram-5fa00455.esm.js +2408 -0
  90. package/requirementDiagram-03163dc4.cjs.js +2267 -0
  91. package/requirementDiagram-03163dc4.esm.js +2265 -0
  92. package/sankeyDiagram-52ec8976.cjs.js +1848 -0
  93. package/sankeyDiagram-52ec8976.esm.js +1846 -0
  94. package/sequenceDiagram-b517d154.cjs.js +5949 -0
  95. package/sequenceDiagram-b517d154.esm.js +5947 -0
  96. package/stateDiagram-fca82b5b.cjs.js +283 -0
  97. package/stateDiagram-fca82b5b.esm.js +281 -0
  98. package/stateDiagram-v2-ed04200a.cjs.js +373 -0
  99. package/stateDiagram-v2-ed04200a.esm.js +371 -0
  100. package/styles-11e81fdd.cjs.js +3944 -0
  101. package/styles-11e81fdd.esm.js +3940 -0
  102. package/styles-cacbff60.cjs.js +2120 -0
  103. package/styles-cacbff60.esm.js +2111 -0
  104. package/styles-e75131e4.cjs.js +671 -0
  105. package/styles-e75131e4.esm.js +661 -0
  106. package/svgDrawCommon-ecc5f780.cjs.js +68 -0
  107. package/svgDrawCommon-ecc5f780.esm.js +60 -0
  108. package/timeline-definition-4ee9bff4.cjs.js +1161 -0
  109. package/timeline-definition-4ee9bff4.esm.js +1159 -0
  110. package/xychartDiagram-e5e6b652.cjs.js +3150 -0
  111. package/xychartDiagram-e5e6b652.esm.js +3148 -0
  112. package/.swcrc +0 -28
  113. package/README.md +0 -7
  114. package/eslint.config.mjs +0 -22
  115. package/rollup.config.cjs +0 -28
  116. package/src/digipair__engine.d.ts +0 -2
  117. package/src/handlebars.d.ts +0 -1
  118. package/src/index.html +0 -18
  119. package/src/lib/chat.element.ts +0 -603
  120. package/src/lib/common.data.ts +0 -1
  121. package/src/lib/config.ts +0 -30
  122. package/src/lib/digipair-full.data.ts +0 -101
  123. package/src/lib/digipair-full.element.ts +0 -358
  124. package/src/lib/digipair.data.ts +0 -103
  125. package/src/lib/digipair.element.ts +0 -446
  126. package/src/lib/inputs.element.ts +0 -46
  127. package/src/lib/mermaid.d.ts +0 -1
  128. package/src/lib/message.interface.ts +0 -10
  129. package/src/lib/pins/chatbot.actions.ts +0 -32
  130. package/src/lib/tools/css-selector.ts +0 -12
  131. package/tsconfig.json +0 -13
  132. package/tsconfig.lib.json +0 -19
  133. /package/{src/index.d.ts → index.d.ts} +0 -0
  134. /package/{src/index.ts → libs/skill-web-chatbot/src/index.d.ts} +0 -0
  135. /package/{src/schema.fr.json → schema.fr.json} +0 -0
  136. /package/{src/schema.json → schema.json} +0 -0
@@ -0,0 +1,2111 @@
1
+ import { V as Vn, A as A_, F as F_, E as E_, L as L_, M as M_, h as O_, c as L, $ as $n, j as B_, b4 as F0 } from './index.esm2.js';
2
+
3
+ function _instanceof(left, right) {
4
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
5
+ return !!right[Symbol.hasInstance](left);
6
+ } else {
7
+ return left instanceof right;
8
+ }
9
+ }
10
+ function _type_of(obj) {
11
+ "@swc/helpers - typeof";
12
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
13
+ }
14
+ var gt = function() {
15
+ var t = function t(C, r, n, i) {
16
+ for(n = n || {}, i = C.length; i--; n[C[i]] = r);
17
+ return n;
18
+ }, s = [
19
+ 1,
20
+ 2
21
+ ], a = [
22
+ 1,
23
+ 3
24
+ ], h = [
25
+ 1,
26
+ 4
27
+ ], f = [
28
+ 2,
29
+ 4
30
+ ], d = [
31
+ 1,
32
+ 9
33
+ ], y = [
34
+ 1,
35
+ 11
36
+ ], k = [
37
+ 1,
38
+ 15
39
+ ], u = [
40
+ 1,
41
+ 16
42
+ ], E = [
43
+ 1,
44
+ 17
45
+ ], T = [
46
+ 1,
47
+ 18
48
+ ], R = [
49
+ 1,
50
+ 30
51
+ ], G = [
52
+ 1,
53
+ 19
54
+ ], j = [
55
+ 1,
56
+ 20
57
+ ], U = [
58
+ 1,
59
+ 21
60
+ ], z = [
61
+ 1,
62
+ 22
63
+ ], M = [
64
+ 1,
65
+ 23
66
+ ], H = [
67
+ 1,
68
+ 25
69
+ ], X = [
70
+ 1,
71
+ 26
72
+ ], K = [
73
+ 1,
74
+ 27
75
+ ], W = [
76
+ 1,
77
+ 28
78
+ ], J = [
79
+ 1,
80
+ 29
81
+ ], q = [
82
+ 1,
83
+ 32
84
+ ], Q = [
85
+ 1,
86
+ 33
87
+ ], Z = [
88
+ 1,
89
+ 34
90
+ ], tt = [
91
+ 1,
92
+ 35
93
+ ], w = [
94
+ 1,
95
+ 31
96
+ ], c = [
97
+ 1,
98
+ 4,
99
+ 5,
100
+ 15,
101
+ 16,
102
+ 18,
103
+ 20,
104
+ 21,
105
+ 23,
106
+ 24,
107
+ 25,
108
+ 26,
109
+ 27,
110
+ 28,
111
+ 32,
112
+ 34,
113
+ 36,
114
+ 37,
115
+ 41,
116
+ 44,
117
+ 45,
118
+ 46,
119
+ 47,
120
+ 50
121
+ ], et = [
122
+ 1,
123
+ 4,
124
+ 5,
125
+ 13,
126
+ 14,
127
+ 15,
128
+ 16,
129
+ 18,
130
+ 20,
131
+ 21,
132
+ 23,
133
+ 24,
134
+ 25,
135
+ 26,
136
+ 27,
137
+ 28,
138
+ 32,
139
+ 34,
140
+ 36,
141
+ 37,
142
+ 41,
143
+ 44,
144
+ 45,
145
+ 46,
146
+ 47,
147
+ 50
148
+ ], Dt = [
149
+ 4,
150
+ 5,
151
+ 15,
152
+ 16,
153
+ 18,
154
+ 20,
155
+ 21,
156
+ 23,
157
+ 24,
158
+ 25,
159
+ 26,
160
+ 27,
161
+ 28,
162
+ 32,
163
+ 34,
164
+ 36,
165
+ 37,
166
+ 41,
167
+ 44,
168
+ 45,
169
+ 46,
170
+ 47,
171
+ 50
172
+ ], ht = {
173
+ trace: function trace() {},
174
+ yy: {},
175
+ symbols_: {
176
+ error: 2,
177
+ start: 3,
178
+ SPACE: 4,
179
+ NL: 5,
180
+ SD: 6,
181
+ document: 7,
182
+ line: 8,
183
+ statement: 9,
184
+ classDefStatement: 10,
185
+ cssClassStatement: 11,
186
+ idStatement: 12,
187
+ DESCR: 13,
188
+ "-->": 14,
189
+ HIDE_EMPTY: 15,
190
+ scale: 16,
191
+ WIDTH: 17,
192
+ COMPOSIT_STATE: 18,
193
+ STRUCT_START: 19,
194
+ STRUCT_STOP: 20,
195
+ STATE_DESCR: 21,
196
+ AS: 22,
197
+ ID: 23,
198
+ FORK: 24,
199
+ JOIN: 25,
200
+ CHOICE: 26,
201
+ CONCURRENT: 27,
202
+ note: 28,
203
+ notePosition: 29,
204
+ NOTE_TEXT: 30,
205
+ direction: 31,
206
+ acc_title: 32,
207
+ acc_title_value: 33,
208
+ acc_descr: 34,
209
+ acc_descr_value: 35,
210
+ acc_descr_multiline_value: 36,
211
+ classDef: 37,
212
+ CLASSDEF_ID: 38,
213
+ CLASSDEF_STYLEOPTS: 39,
214
+ DEFAULT: 40,
215
+ class: 41,
216
+ CLASSENTITY_IDS: 42,
217
+ STYLECLASS: 43,
218
+ direction_tb: 44,
219
+ direction_bt: 45,
220
+ direction_rl: 46,
221
+ direction_lr: 47,
222
+ eol: 48,
223
+ ";": 49,
224
+ EDGE_STATE: 50,
225
+ STYLE_SEPARATOR: 51,
226
+ left_of: 52,
227
+ right_of: 53,
228
+ $accept: 0,
229
+ $end: 1
230
+ },
231
+ terminals_: {
232
+ 2: "error",
233
+ 4: "SPACE",
234
+ 5: "NL",
235
+ 6: "SD",
236
+ 13: "DESCR",
237
+ 14: "-->",
238
+ 15: "HIDE_EMPTY",
239
+ 16: "scale",
240
+ 17: "WIDTH",
241
+ 18: "COMPOSIT_STATE",
242
+ 19: "STRUCT_START",
243
+ 20: "STRUCT_STOP",
244
+ 21: "STATE_DESCR",
245
+ 22: "AS",
246
+ 23: "ID",
247
+ 24: "FORK",
248
+ 25: "JOIN",
249
+ 26: "CHOICE",
250
+ 27: "CONCURRENT",
251
+ 28: "note",
252
+ 30: "NOTE_TEXT",
253
+ 32: "acc_title",
254
+ 33: "acc_title_value",
255
+ 34: "acc_descr",
256
+ 35: "acc_descr_value",
257
+ 36: "acc_descr_multiline_value",
258
+ 37: "classDef",
259
+ 38: "CLASSDEF_ID",
260
+ 39: "CLASSDEF_STYLEOPTS",
261
+ 40: "DEFAULT",
262
+ 41: "class",
263
+ 42: "CLASSENTITY_IDS",
264
+ 43: "STYLECLASS",
265
+ 44: "direction_tb",
266
+ 45: "direction_bt",
267
+ 46: "direction_rl",
268
+ 47: "direction_lr",
269
+ 49: ";",
270
+ 50: "EDGE_STATE",
271
+ 51: "STYLE_SEPARATOR",
272
+ 52: "left_of",
273
+ 53: "right_of"
274
+ },
275
+ productions_: [
276
+ 0,
277
+ [
278
+ 3,
279
+ 2
280
+ ],
281
+ [
282
+ 3,
283
+ 2
284
+ ],
285
+ [
286
+ 3,
287
+ 2
288
+ ],
289
+ [
290
+ 7,
291
+ 0
292
+ ],
293
+ [
294
+ 7,
295
+ 2
296
+ ],
297
+ [
298
+ 8,
299
+ 2
300
+ ],
301
+ [
302
+ 8,
303
+ 1
304
+ ],
305
+ [
306
+ 8,
307
+ 1
308
+ ],
309
+ [
310
+ 9,
311
+ 1
312
+ ],
313
+ [
314
+ 9,
315
+ 1
316
+ ],
317
+ [
318
+ 9,
319
+ 1
320
+ ],
321
+ [
322
+ 9,
323
+ 2
324
+ ],
325
+ [
326
+ 9,
327
+ 3
328
+ ],
329
+ [
330
+ 9,
331
+ 4
332
+ ],
333
+ [
334
+ 9,
335
+ 1
336
+ ],
337
+ [
338
+ 9,
339
+ 2
340
+ ],
341
+ [
342
+ 9,
343
+ 1
344
+ ],
345
+ [
346
+ 9,
347
+ 4
348
+ ],
349
+ [
350
+ 9,
351
+ 3
352
+ ],
353
+ [
354
+ 9,
355
+ 6
356
+ ],
357
+ [
358
+ 9,
359
+ 1
360
+ ],
361
+ [
362
+ 9,
363
+ 1
364
+ ],
365
+ [
366
+ 9,
367
+ 1
368
+ ],
369
+ [
370
+ 9,
371
+ 1
372
+ ],
373
+ [
374
+ 9,
375
+ 4
376
+ ],
377
+ [
378
+ 9,
379
+ 4
380
+ ],
381
+ [
382
+ 9,
383
+ 1
384
+ ],
385
+ [
386
+ 9,
387
+ 2
388
+ ],
389
+ [
390
+ 9,
391
+ 2
392
+ ],
393
+ [
394
+ 9,
395
+ 1
396
+ ],
397
+ [
398
+ 10,
399
+ 3
400
+ ],
401
+ [
402
+ 10,
403
+ 3
404
+ ],
405
+ [
406
+ 11,
407
+ 3
408
+ ],
409
+ [
410
+ 31,
411
+ 1
412
+ ],
413
+ [
414
+ 31,
415
+ 1
416
+ ],
417
+ [
418
+ 31,
419
+ 1
420
+ ],
421
+ [
422
+ 31,
423
+ 1
424
+ ],
425
+ [
426
+ 48,
427
+ 1
428
+ ],
429
+ [
430
+ 48,
431
+ 1
432
+ ],
433
+ [
434
+ 12,
435
+ 1
436
+ ],
437
+ [
438
+ 12,
439
+ 1
440
+ ],
441
+ [
442
+ 12,
443
+ 3
444
+ ],
445
+ [
446
+ 12,
447
+ 3
448
+ ],
449
+ [
450
+ 29,
451
+ 1
452
+ ],
453
+ [
454
+ 29,
455
+ 1
456
+ ]
457
+ ],
458
+ performAction: function performAction(r, n, i, o, p, e, $) {
459
+ var l = e.length - 1;
460
+ switch(p){
461
+ case 3:
462
+ return o.setRootDoc(e[l]), e[l];
463
+ case 4:
464
+ this.$ = [];
465
+ break;
466
+ case 5:
467
+ e[l] != "nl" && (e[l - 1].push(e[l]), this.$ = e[l - 1]);
468
+ break;
469
+ case 6:
470
+ case 7:
471
+ this.$ = e[l];
472
+ break;
473
+ case 8:
474
+ this.$ = "nl";
475
+ break;
476
+ case 11:
477
+ this.$ = e[l];
478
+ break;
479
+ case 12:
480
+ var B = e[l - 1];
481
+ B.description = o.trimColon(e[l]), this.$ = B;
482
+ break;
483
+ case 13:
484
+ this.$ = {
485
+ stmt: "relation",
486
+ state1: e[l - 2],
487
+ state2: e[l]
488
+ };
489
+ break;
490
+ case 14:
491
+ var ft = o.trimColon(e[l]);
492
+ this.$ = {
493
+ stmt: "relation",
494
+ state1: e[l - 3],
495
+ state2: e[l - 1],
496
+ description: ft
497
+ };
498
+ break;
499
+ case 18:
500
+ this.$ = {
501
+ stmt: "state",
502
+ id: e[l - 3],
503
+ type: "default",
504
+ description: "",
505
+ doc: e[l - 1]
506
+ };
507
+ break;
508
+ case 19:
509
+ var A = e[l], O = e[l - 2].trim();
510
+ if (e[l].match(":")) {
511
+ var st = e[l].split(":");
512
+ A = st[0], O = [
513
+ O,
514
+ st[1]
515
+ ];
516
+ }
517
+ this.$ = {
518
+ stmt: "state",
519
+ id: A,
520
+ type: "default",
521
+ description: O
522
+ };
523
+ break;
524
+ case 20:
525
+ this.$ = {
526
+ stmt: "state",
527
+ id: e[l - 3],
528
+ type: "default",
529
+ description: e[l - 5],
530
+ doc: e[l - 1]
531
+ };
532
+ break;
533
+ case 21:
534
+ this.$ = {
535
+ stmt: "state",
536
+ id: e[l],
537
+ type: "fork"
538
+ };
539
+ break;
540
+ case 22:
541
+ this.$ = {
542
+ stmt: "state",
543
+ id: e[l],
544
+ type: "join"
545
+ };
546
+ break;
547
+ case 23:
548
+ this.$ = {
549
+ stmt: "state",
550
+ id: e[l],
551
+ type: "choice"
552
+ };
553
+ break;
554
+ case 24:
555
+ this.$ = {
556
+ stmt: "state",
557
+ id: o.getDividerId(),
558
+ type: "divider"
559
+ };
560
+ break;
561
+ case 25:
562
+ this.$ = {
563
+ stmt: "state",
564
+ id: e[l - 1].trim(),
565
+ note: {
566
+ position: e[l - 2].trim(),
567
+ text: e[l].trim()
568
+ }
569
+ };
570
+ break;
571
+ case 28:
572
+ this.$ = e[l].trim(), o.setAccTitle(this.$);
573
+ break;
574
+ case 29:
575
+ case 30:
576
+ this.$ = e[l].trim(), o.setAccDescription(this.$);
577
+ break;
578
+ case 31:
579
+ case 32:
580
+ this.$ = {
581
+ stmt: "classDef",
582
+ id: e[l - 1].trim(),
583
+ classes: e[l].trim()
584
+ };
585
+ break;
586
+ case 33:
587
+ this.$ = {
588
+ stmt: "applyClass",
589
+ id: e[l - 1].trim(),
590
+ styleClass: e[l].trim()
591
+ };
592
+ break;
593
+ case 34:
594
+ o.setDirection("TB"), this.$ = {
595
+ stmt: "dir",
596
+ value: "TB"
597
+ };
598
+ break;
599
+ case 35:
600
+ o.setDirection("BT"), this.$ = {
601
+ stmt: "dir",
602
+ value: "BT"
603
+ };
604
+ break;
605
+ case 36:
606
+ o.setDirection("RL"), this.$ = {
607
+ stmt: "dir",
608
+ value: "RL"
609
+ };
610
+ break;
611
+ case 37:
612
+ o.setDirection("LR"), this.$ = {
613
+ stmt: "dir",
614
+ value: "LR"
615
+ };
616
+ break;
617
+ case 40:
618
+ case 41:
619
+ this.$ = {
620
+ stmt: "state",
621
+ id: e[l].trim(),
622
+ type: "default",
623
+ description: ""
624
+ };
625
+ break;
626
+ case 42:
627
+ this.$ = {
628
+ stmt: "state",
629
+ id: e[l - 2].trim(),
630
+ classes: [
631
+ e[l].trim()
632
+ ],
633
+ type: "default",
634
+ description: ""
635
+ };
636
+ break;
637
+ case 43:
638
+ this.$ = {
639
+ stmt: "state",
640
+ id: e[l - 2].trim(),
641
+ classes: [
642
+ e[l].trim()
643
+ ],
644
+ type: "default",
645
+ description: ""
646
+ };
647
+ break;
648
+ }
649
+ },
650
+ table: [
651
+ {
652
+ 3: 1,
653
+ 4: s,
654
+ 5: a,
655
+ 6: h
656
+ },
657
+ {
658
+ 1: [
659
+ 3
660
+ ]
661
+ },
662
+ {
663
+ 3: 5,
664
+ 4: s,
665
+ 5: a,
666
+ 6: h
667
+ },
668
+ {
669
+ 3: 6,
670
+ 4: s,
671
+ 5: a,
672
+ 6: h
673
+ },
674
+ t([
675
+ 1,
676
+ 4,
677
+ 5,
678
+ 15,
679
+ 16,
680
+ 18,
681
+ 21,
682
+ 23,
683
+ 24,
684
+ 25,
685
+ 26,
686
+ 27,
687
+ 28,
688
+ 32,
689
+ 34,
690
+ 36,
691
+ 37,
692
+ 41,
693
+ 44,
694
+ 45,
695
+ 46,
696
+ 47,
697
+ 50
698
+ ], f, {
699
+ 7: 7
700
+ }),
701
+ {
702
+ 1: [
703
+ 2,
704
+ 1
705
+ ]
706
+ },
707
+ {
708
+ 1: [
709
+ 2,
710
+ 2
711
+ ]
712
+ },
713
+ {
714
+ 1: [
715
+ 2,
716
+ 3
717
+ ],
718
+ 4: d,
719
+ 5: y,
720
+ 8: 8,
721
+ 9: 10,
722
+ 10: 12,
723
+ 11: 13,
724
+ 12: 14,
725
+ 15: k,
726
+ 16: u,
727
+ 18: E,
728
+ 21: T,
729
+ 23: R,
730
+ 24: G,
731
+ 25: j,
732
+ 26: U,
733
+ 27: z,
734
+ 28: M,
735
+ 31: 24,
736
+ 32: H,
737
+ 34: X,
738
+ 36: K,
739
+ 37: W,
740
+ 41: J,
741
+ 44: q,
742
+ 45: Q,
743
+ 46: Z,
744
+ 47: tt,
745
+ 50: w
746
+ },
747
+ t(c, [
748
+ 2,
749
+ 5
750
+ ]),
751
+ {
752
+ 9: 36,
753
+ 10: 12,
754
+ 11: 13,
755
+ 12: 14,
756
+ 15: k,
757
+ 16: u,
758
+ 18: E,
759
+ 21: T,
760
+ 23: R,
761
+ 24: G,
762
+ 25: j,
763
+ 26: U,
764
+ 27: z,
765
+ 28: M,
766
+ 31: 24,
767
+ 32: H,
768
+ 34: X,
769
+ 36: K,
770
+ 37: W,
771
+ 41: J,
772
+ 44: q,
773
+ 45: Q,
774
+ 46: Z,
775
+ 47: tt,
776
+ 50: w
777
+ },
778
+ t(c, [
779
+ 2,
780
+ 7
781
+ ]),
782
+ t(c, [
783
+ 2,
784
+ 8
785
+ ]),
786
+ t(c, [
787
+ 2,
788
+ 9
789
+ ]),
790
+ t(c, [
791
+ 2,
792
+ 10
793
+ ]),
794
+ t(c, [
795
+ 2,
796
+ 11
797
+ ], {
798
+ 13: [
799
+ 1,
800
+ 37
801
+ ],
802
+ 14: [
803
+ 1,
804
+ 38
805
+ ]
806
+ }),
807
+ t(c, [
808
+ 2,
809
+ 15
810
+ ]),
811
+ {
812
+ 17: [
813
+ 1,
814
+ 39
815
+ ]
816
+ },
817
+ t(c, [
818
+ 2,
819
+ 17
820
+ ], {
821
+ 19: [
822
+ 1,
823
+ 40
824
+ ]
825
+ }),
826
+ {
827
+ 22: [
828
+ 1,
829
+ 41
830
+ ]
831
+ },
832
+ t(c, [
833
+ 2,
834
+ 21
835
+ ]),
836
+ t(c, [
837
+ 2,
838
+ 22
839
+ ]),
840
+ t(c, [
841
+ 2,
842
+ 23
843
+ ]),
844
+ t(c, [
845
+ 2,
846
+ 24
847
+ ]),
848
+ {
849
+ 29: 42,
850
+ 30: [
851
+ 1,
852
+ 43
853
+ ],
854
+ 52: [
855
+ 1,
856
+ 44
857
+ ],
858
+ 53: [
859
+ 1,
860
+ 45
861
+ ]
862
+ },
863
+ t(c, [
864
+ 2,
865
+ 27
866
+ ]),
867
+ {
868
+ 33: [
869
+ 1,
870
+ 46
871
+ ]
872
+ },
873
+ {
874
+ 35: [
875
+ 1,
876
+ 47
877
+ ]
878
+ },
879
+ t(c, [
880
+ 2,
881
+ 30
882
+ ]),
883
+ {
884
+ 38: [
885
+ 1,
886
+ 48
887
+ ],
888
+ 40: [
889
+ 1,
890
+ 49
891
+ ]
892
+ },
893
+ {
894
+ 42: [
895
+ 1,
896
+ 50
897
+ ]
898
+ },
899
+ t(et, [
900
+ 2,
901
+ 40
902
+ ], {
903
+ 51: [
904
+ 1,
905
+ 51
906
+ ]
907
+ }),
908
+ t(et, [
909
+ 2,
910
+ 41
911
+ ], {
912
+ 51: [
913
+ 1,
914
+ 52
915
+ ]
916
+ }),
917
+ t(c, [
918
+ 2,
919
+ 34
920
+ ]),
921
+ t(c, [
922
+ 2,
923
+ 35
924
+ ]),
925
+ t(c, [
926
+ 2,
927
+ 36
928
+ ]),
929
+ t(c, [
930
+ 2,
931
+ 37
932
+ ]),
933
+ t(c, [
934
+ 2,
935
+ 6
936
+ ]),
937
+ t(c, [
938
+ 2,
939
+ 12
940
+ ]),
941
+ {
942
+ 12: 53,
943
+ 23: R,
944
+ 50: w
945
+ },
946
+ t(c, [
947
+ 2,
948
+ 16
949
+ ]),
950
+ t(Dt, f, {
951
+ 7: 54
952
+ }),
953
+ {
954
+ 23: [
955
+ 1,
956
+ 55
957
+ ]
958
+ },
959
+ {
960
+ 23: [
961
+ 1,
962
+ 56
963
+ ]
964
+ },
965
+ {
966
+ 22: [
967
+ 1,
968
+ 57
969
+ ]
970
+ },
971
+ {
972
+ 23: [
973
+ 2,
974
+ 44
975
+ ]
976
+ },
977
+ {
978
+ 23: [
979
+ 2,
980
+ 45
981
+ ]
982
+ },
983
+ t(c, [
984
+ 2,
985
+ 28
986
+ ]),
987
+ t(c, [
988
+ 2,
989
+ 29
990
+ ]),
991
+ {
992
+ 39: [
993
+ 1,
994
+ 58
995
+ ]
996
+ },
997
+ {
998
+ 39: [
999
+ 1,
1000
+ 59
1001
+ ]
1002
+ },
1003
+ {
1004
+ 43: [
1005
+ 1,
1006
+ 60
1007
+ ]
1008
+ },
1009
+ {
1010
+ 23: [
1011
+ 1,
1012
+ 61
1013
+ ]
1014
+ },
1015
+ {
1016
+ 23: [
1017
+ 1,
1018
+ 62
1019
+ ]
1020
+ },
1021
+ t(c, [
1022
+ 2,
1023
+ 13
1024
+ ], {
1025
+ 13: [
1026
+ 1,
1027
+ 63
1028
+ ]
1029
+ }),
1030
+ {
1031
+ 4: d,
1032
+ 5: y,
1033
+ 8: 8,
1034
+ 9: 10,
1035
+ 10: 12,
1036
+ 11: 13,
1037
+ 12: 14,
1038
+ 15: k,
1039
+ 16: u,
1040
+ 18: E,
1041
+ 20: [
1042
+ 1,
1043
+ 64
1044
+ ],
1045
+ 21: T,
1046
+ 23: R,
1047
+ 24: G,
1048
+ 25: j,
1049
+ 26: U,
1050
+ 27: z,
1051
+ 28: M,
1052
+ 31: 24,
1053
+ 32: H,
1054
+ 34: X,
1055
+ 36: K,
1056
+ 37: W,
1057
+ 41: J,
1058
+ 44: q,
1059
+ 45: Q,
1060
+ 46: Z,
1061
+ 47: tt,
1062
+ 50: w
1063
+ },
1064
+ t(c, [
1065
+ 2,
1066
+ 19
1067
+ ], {
1068
+ 19: [
1069
+ 1,
1070
+ 65
1071
+ ]
1072
+ }),
1073
+ {
1074
+ 30: [
1075
+ 1,
1076
+ 66
1077
+ ]
1078
+ },
1079
+ {
1080
+ 23: [
1081
+ 1,
1082
+ 67
1083
+ ]
1084
+ },
1085
+ t(c, [
1086
+ 2,
1087
+ 31
1088
+ ]),
1089
+ t(c, [
1090
+ 2,
1091
+ 32
1092
+ ]),
1093
+ t(c, [
1094
+ 2,
1095
+ 33
1096
+ ]),
1097
+ t(et, [
1098
+ 2,
1099
+ 42
1100
+ ]),
1101
+ t(et, [
1102
+ 2,
1103
+ 43
1104
+ ]),
1105
+ t(c, [
1106
+ 2,
1107
+ 14
1108
+ ]),
1109
+ t(c, [
1110
+ 2,
1111
+ 18
1112
+ ]),
1113
+ t(Dt, f, {
1114
+ 7: 68
1115
+ }),
1116
+ t(c, [
1117
+ 2,
1118
+ 25
1119
+ ]),
1120
+ t(c, [
1121
+ 2,
1122
+ 26
1123
+ ]),
1124
+ {
1125
+ 4: d,
1126
+ 5: y,
1127
+ 8: 8,
1128
+ 9: 10,
1129
+ 10: 12,
1130
+ 11: 13,
1131
+ 12: 14,
1132
+ 15: k,
1133
+ 16: u,
1134
+ 18: E,
1135
+ 20: [
1136
+ 1,
1137
+ 69
1138
+ ],
1139
+ 21: T,
1140
+ 23: R,
1141
+ 24: G,
1142
+ 25: j,
1143
+ 26: U,
1144
+ 27: z,
1145
+ 28: M,
1146
+ 31: 24,
1147
+ 32: H,
1148
+ 34: X,
1149
+ 36: K,
1150
+ 37: W,
1151
+ 41: J,
1152
+ 44: q,
1153
+ 45: Q,
1154
+ 46: Z,
1155
+ 47: tt,
1156
+ 50: w
1157
+ },
1158
+ t(c, [
1159
+ 2,
1160
+ 20
1161
+ ])
1162
+ ],
1163
+ defaultActions: {
1164
+ 5: [
1165
+ 2,
1166
+ 1
1167
+ ],
1168
+ 6: [
1169
+ 2,
1170
+ 2
1171
+ ],
1172
+ 44: [
1173
+ 2,
1174
+ 44
1175
+ ],
1176
+ 45: [
1177
+ 2,
1178
+ 45
1179
+ ]
1180
+ },
1181
+ parseError: function parseError(r, n) {
1182
+ if (n.recoverable) this.trace(r);
1183
+ else {
1184
+ var i = new Error(r);
1185
+ throw i.hash = n, i;
1186
+ }
1187
+ },
1188
+ parse: function parse(r) {
1189
+ var n = this, i = [
1190
+ 0
1191
+ ], o = [], p = [
1192
+ null
1193
+ ], e = [], $ = this.table, l = "", A = 0, O = 0, st = 2, B = 1, ft = e.slice.call(arguments, 1), S = Object.create(this.lexer), L = {
1194
+ yy: {}
1195
+ };
1196
+ for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy, dt) && (L.yy[dt] = this.yy[dt]);
1197
+ S.setInput(r, L.yy), L.yy.lexer = S, L.yy.parser = this, _type_of(S.yylloc) > "u" && (S.yylloc = {});
1198
+ var yt = S.yylloc;
1199
+ e.push(yt);
1200
+ var Gt = S.options && S.options.ranges;
1201
+ typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1202
+ function jt() {
1203
+ var x;
1204
+ return x = o.pop() || S.lex() || B, typeof x != "number" && (_instanceof(x, Array) && (o = x, x = o.pop()), x = n.symbols_[x] || x), x;
1205
+ }
1206
+ for(var _, v, m, pt, N = {}, it, b, Ct, rt;;){
1207
+ if (v = i[i.length - 1], this.defaultActions[v] ? m = this.defaultActions[v] : ((_ === null || (typeof _ === "undefined" ? "undefined" : _type_of(_)) > "u") && (_ = jt()), m = $[v] && $[v][_]), (typeof m === "undefined" ? "undefined" : _type_of(m)) > "u" || !m.length || !m[0]) {
1208
+ var St = "";
1209
+ rt = [];
1210
+ for(it in $[v])this.terminals_[it] && it > st && rt.push("'" + this.terminals_[it] + "'");
1211
+ S.showPosition ? St = "Parse error on line " + (A + 1) + ":\n" + S.showPosition() + "\nExpecting " + rt.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : St = "Parse error on line " + (A + 1) + ": Unexpected " + (_ == B ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(St, {
1212
+ text: S.match,
1213
+ token: this.terminals_[_] || _,
1214
+ line: S.yylineno,
1215
+ loc: yt,
1216
+ expected: rt
1217
+ });
1218
+ }
1219
+ if (_instanceof(m[0], Array) && m.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + _);
1220
+ switch(m[0]){
1221
+ case 1:
1222
+ i.push(_), p.push(S.yytext), e.push(S.yylloc), i.push(m[1]), _ = null, O = S.yyleng, l = S.yytext, A = S.yylineno, yt = S.yylloc;
1223
+ break;
1224
+ case 2:
1225
+ if (b = this.productions_[m[1]][1], N.$ = p[p.length - b], N._$ = {
1226
+ first_line: e[e.length - (b || 1)].first_line,
1227
+ last_line: e[e.length - 1].last_line,
1228
+ first_column: e[e.length - (b || 1)].first_column,
1229
+ last_column: e[e.length - 1].last_column
1230
+ }, Gt && (N._$.range = [
1231
+ e[e.length - (b || 1)].range[0],
1232
+ e[e.length - 1].range[1]
1233
+ ]), pt = this.performAction.apply(N, [
1234
+ l,
1235
+ O,
1236
+ A,
1237
+ L.yy,
1238
+ m[1],
1239
+ p,
1240
+ e
1241
+ ].concat(ft)), (typeof pt === "undefined" ? "undefined" : _type_of(pt)) < "u") return pt;
1242
+ b && (i = i.slice(0, -1 * b * 2), p = p.slice(0, -1 * b), e = e.slice(0, -1 * b)), i.push(this.productions_[m[1]][0]), p.push(N.$), e.push(N._$), Ct = $[i[i.length - 2]][i[i.length - 1]], i.push(Ct);
1243
+ break;
1244
+ case 3:
1245
+ return !0;
1246
+ }
1247
+ }
1248
+ return !0;
1249
+ }
1250
+ }, Yt = function() {
1251
+ var C = {
1252
+ EOF: 1,
1253
+ parseError: function parseError(n, i) {
1254
+ if (this.yy.parser) this.yy.parser.parseError(n, i);
1255
+ else throw new Error(n);
1256
+ },
1257
+ // resets the lexer, sets new input
1258
+ setInput: function setInput(r, n) {
1259
+ return this.yy = n || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
1260
+ "INITIAL"
1261
+ ], this.yylloc = {
1262
+ first_line: 1,
1263
+ first_column: 0,
1264
+ last_line: 1,
1265
+ last_column: 0
1266
+ }, this.options.ranges && (this.yylloc.range = [
1267
+ 0,
1268
+ 0
1269
+ ]), this.offset = 0, this;
1270
+ },
1271
+ // consumes and returns one char from the input
1272
+ input: function input() {
1273
+ var r = this._input[0];
1274
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
1275
+ var n = r.match(/(?:\r\n?|\n).*/g);
1276
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
1277
+ },
1278
+ // unshifts one char (or a string) into the input
1279
+ unput: function unput(r) {
1280
+ var n = r.length, i = r.split(/(?:\r\n?|\n)/g);
1281
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
1282
+ var o = this.match.split(/(?:\r\n?|\n)/g);
1283
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), i.length - 1 && (this.yylineno -= i.length - 1);
1284
+ var p = this.yylloc.range;
1285
+ return this.yylloc = {
1286
+ first_line: this.yylloc.first_line,
1287
+ last_line: this.yylineno + 1,
1288
+ first_column: this.yylloc.first_column,
1289
+ last_column: i ? (i.length === o.length ? this.yylloc.first_column : 0) + o[o.length - i.length].length - i[0].length : this.yylloc.first_column - n
1290
+ }, this.options.ranges && (this.yylloc.range = [
1291
+ p[0],
1292
+ p[0] + this.yyleng - n
1293
+ ]), this.yyleng = this.yytext.length, this;
1294
+ },
1295
+ // When called from action, caches matched text and appends it on next action
1296
+ more: function more() {
1297
+ return this._more = !0, this;
1298
+ },
1299
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1300
+ reject: function reject() {
1301
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1302
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1303
+ text: "",
1304
+ token: null,
1305
+ line: this.yylineno
1306
+ });
1307
+ return this;
1308
+ },
1309
+ // retain first n characters of the match
1310
+ less: function less(r) {
1311
+ this.unput(this.match.slice(r));
1312
+ },
1313
+ // displays already matched input, i.e. for error messages
1314
+ pastInput: function pastInput() {
1315
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
1316
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
1317
+ },
1318
+ // displays upcoming input, i.e. for error messages
1319
+ upcomingInput: function upcomingInput() {
1320
+ var r = this.match;
1321
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
1322
+ },
1323
+ // displays the character position where the lexing error occurred, i.e. for error messages
1324
+ showPosition: function showPosition() {
1325
+ var r = this.pastInput(), n = new Array(r.length + 1).join("-");
1326
+ return r + this.upcomingInput() + "\n" + n + "^";
1327
+ },
1328
+ // test the lexed token: return FALSE when not a match, otherwise return token
1329
+ test_match: function test_match(r, n) {
1330
+ var i, o, p;
1331
+ if (this.options.backtrack_lexer && (p = {
1332
+ yylineno: this.yylineno,
1333
+ yylloc: {
1334
+ first_line: this.yylloc.first_line,
1335
+ last_line: this.last_line,
1336
+ first_column: this.yylloc.first_column,
1337
+ last_column: this.yylloc.last_column
1338
+ },
1339
+ yytext: this.yytext,
1340
+ match: this.match,
1341
+ matches: this.matches,
1342
+ matched: this.matched,
1343
+ yyleng: this.yyleng,
1344
+ offset: this.offset,
1345
+ _more: this._more,
1346
+ _input: this._input,
1347
+ yy: this.yy,
1348
+ conditionStack: this.conditionStack.slice(0),
1349
+ done: this.done
1350
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), o = r[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
1351
+ first_line: this.yylloc.last_line,
1352
+ last_line: this.yylineno + 1,
1353
+ first_column: this.yylloc.last_column,
1354
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
1355
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
1356
+ this.offset,
1357
+ this.offset += this.yyleng
1358
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], i = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), i) return i;
1359
+ if (this._backtrack) {
1360
+ for(var e in p)this[e] = p[e];
1361
+ return !1;
1362
+ }
1363
+ return !1;
1364
+ },
1365
+ // return next match in input
1366
+ next: function next() {
1367
+ if (this.done) return this.EOF;
1368
+ this._input || (this.done = !0);
1369
+ var r, n, i, o;
1370
+ this._more || (this.yytext = "", this.match = "");
1371
+ for(var p = this._currentRules(), e = 0; e < p.length; e++)if (i = this._input.match(this.rules[p[e]]), i && (!n || i[0].length > n[0].length)) {
1372
+ if (n = i, o = e, this.options.backtrack_lexer) {
1373
+ if (r = this.test_match(i, p[e]), r !== !1) return r;
1374
+ if (this._backtrack) {
1375
+ n = !1;
1376
+ continue;
1377
+ } else return !1;
1378
+ } else if (!this.options.flex) break;
1379
+ }
1380
+ return n ? (r = this.test_match(n, p[o]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1381
+ text: "",
1382
+ token: null,
1383
+ line: this.yylineno
1384
+ });
1385
+ },
1386
+ // return next match that has a token
1387
+ lex: function lex() {
1388
+ var n = this.next();
1389
+ return n || this.lex();
1390
+ },
1391
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1392
+ begin: function begin(n) {
1393
+ this.conditionStack.push(n);
1394
+ },
1395
+ // pop the previously active lexer condition state off the condition stack
1396
+ popState: function popState() {
1397
+ var n = this.conditionStack.length - 1;
1398
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1399
+ },
1400
+ // produce the lexer rule set which is active for the currently active lexer condition state
1401
+ _currentRules: function _currentRules() {
1402
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1403
+ },
1404
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1405
+ topState: function topState(n) {
1406
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
1407
+ },
1408
+ // alias for begin(condition)
1409
+ pushState: function pushState(n) {
1410
+ this.begin(n);
1411
+ },
1412
+ // return the number of states currently on the stack
1413
+ stateStackSize: function stateStackSize() {
1414
+ return this.conditionStack.length;
1415
+ },
1416
+ options: {
1417
+ "case-insensitive": !0
1418
+ },
1419
+ performAction: function performAction(n, i, o, p) {
1420
+ switch(o){
1421
+ case 0:
1422
+ return 40;
1423
+ case 1:
1424
+ return 44;
1425
+ case 2:
1426
+ return 45;
1427
+ case 3:
1428
+ return 46;
1429
+ case 4:
1430
+ return 47;
1431
+ case 5:
1432
+ break;
1433
+ case 6:
1434
+ break;
1435
+ case 7:
1436
+ return 5;
1437
+ case 8:
1438
+ break;
1439
+ case 9:
1440
+ break;
1441
+ case 10:
1442
+ break;
1443
+ case 11:
1444
+ break;
1445
+ case 12:
1446
+ return this.pushState("SCALE"), 16;
1447
+ case 13:
1448
+ return 17;
1449
+ case 14:
1450
+ this.popState();
1451
+ break;
1452
+ case 15:
1453
+ return this.begin("acc_title"), 32;
1454
+ case 16:
1455
+ return this.popState(), "acc_title_value";
1456
+ case 17:
1457
+ return this.begin("acc_descr"), 34;
1458
+ case 18:
1459
+ return this.popState(), "acc_descr_value";
1460
+ case 19:
1461
+ this.begin("acc_descr_multiline");
1462
+ break;
1463
+ case 20:
1464
+ this.popState();
1465
+ break;
1466
+ case 21:
1467
+ return "acc_descr_multiline_value";
1468
+ case 22:
1469
+ return this.pushState("CLASSDEF"), 37;
1470
+ case 23:
1471
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
1472
+ case 24:
1473
+ return this.popState(), this.pushState("CLASSDEFID"), 38;
1474
+ case 25:
1475
+ return this.popState(), 39;
1476
+ case 26:
1477
+ return this.pushState("CLASS"), 41;
1478
+ case 27:
1479
+ return this.popState(), this.pushState("CLASS_STYLE"), 42;
1480
+ case 28:
1481
+ return this.popState(), 43;
1482
+ case 29:
1483
+ return this.pushState("SCALE"), 16;
1484
+ case 30:
1485
+ return 17;
1486
+ case 31:
1487
+ this.popState();
1488
+ break;
1489
+ case 32:
1490
+ this.pushState("STATE");
1491
+ break;
1492
+ case 33:
1493
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 24;
1494
+ case 34:
1495
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 25;
1496
+ case 35:
1497
+ return this.popState(), i.yytext = i.yytext.slice(0, -10).trim(), 26;
1498
+ case 36:
1499
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 24;
1500
+ case 37:
1501
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 25;
1502
+ case 38:
1503
+ return this.popState(), i.yytext = i.yytext.slice(0, -10).trim(), 26;
1504
+ case 39:
1505
+ return 44;
1506
+ case 40:
1507
+ return 45;
1508
+ case 41:
1509
+ return 46;
1510
+ case 42:
1511
+ return 47;
1512
+ case 43:
1513
+ this.pushState("STATE_STRING");
1514
+ break;
1515
+ case 44:
1516
+ return this.pushState("STATE_ID"), "AS";
1517
+ case 45:
1518
+ return this.popState(), "ID";
1519
+ case 46:
1520
+ this.popState();
1521
+ break;
1522
+ case 47:
1523
+ return "STATE_DESCR";
1524
+ case 48:
1525
+ return 18;
1526
+ case 49:
1527
+ this.popState();
1528
+ break;
1529
+ case 50:
1530
+ return this.popState(), this.pushState("struct"), 19;
1531
+ case 51:
1532
+ break;
1533
+ case 52:
1534
+ return this.popState(), 20;
1535
+ case 53:
1536
+ break;
1537
+ case 54:
1538
+ return this.begin("NOTE"), 28;
1539
+ case 55:
1540
+ return this.popState(), this.pushState("NOTE_ID"), 52;
1541
+ case 56:
1542
+ return this.popState(), this.pushState("NOTE_ID"), 53;
1543
+ case 57:
1544
+ this.popState(), this.pushState("FLOATING_NOTE");
1545
+ break;
1546
+ case 58:
1547
+ return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1548
+ case 59:
1549
+ break;
1550
+ case 60:
1551
+ return "NOTE_TEXT";
1552
+ case 61:
1553
+ return this.popState(), "ID";
1554
+ case 62:
1555
+ return this.popState(), this.pushState("NOTE_TEXT"), 23;
1556
+ case 63:
1557
+ return this.popState(), i.yytext = i.yytext.substr(2).trim(), 30;
1558
+ case 64:
1559
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 30;
1560
+ case 65:
1561
+ return 6;
1562
+ case 66:
1563
+ return 6;
1564
+ case 67:
1565
+ return 15;
1566
+ case 68:
1567
+ return 50;
1568
+ case 69:
1569
+ return 23;
1570
+ case 70:
1571
+ return i.yytext = i.yytext.trim(), 13;
1572
+ case 71:
1573
+ return 14;
1574
+ case 72:
1575
+ return 27;
1576
+ case 73:
1577
+ return 51;
1578
+ case 74:
1579
+ return 5;
1580
+ case 75:
1581
+ return "INVALID";
1582
+ }
1583
+ },
1584
+ rules: [
1585
+ /^(?:default\b)/i,
1586
+ /^(?:.*direction\s+TB[^\n]*)/i,
1587
+ /^(?:.*direction\s+BT[^\n]*)/i,
1588
+ /^(?:.*direction\s+RL[^\n]*)/i,
1589
+ /^(?:.*direction\s+LR[^\n]*)/i,
1590
+ /^(?:%%(?!\{)[^\n]*)/i,
1591
+ /^(?:[^\}]%%[^\n]*)/i,
1592
+ /^(?:[\n]+)/i,
1593
+ /^(?:[\s]+)/i,
1594
+ /^(?:((?!\n)\s)+)/i,
1595
+ /^(?:#[^\n]*)/i,
1596
+ /^(?:%[^\n]*)/i,
1597
+ /^(?:scale\s+)/i,
1598
+ /^(?:\d+)/i,
1599
+ /^(?:\s+width\b)/i,
1600
+ /^(?:accTitle\s*:\s*)/i,
1601
+ /^(?:(?!\n||)*[^\n]*)/i,
1602
+ /^(?:accDescr\s*:\s*)/i,
1603
+ /^(?:(?!\n||)*[^\n]*)/i,
1604
+ /^(?:accDescr\s*\{\s*)/i,
1605
+ /^(?:[\}])/i,
1606
+ /^(?:[^\}]*)/i,
1607
+ /^(?:classDef\s+)/i,
1608
+ /^(?:DEFAULT\s+)/i,
1609
+ /^(?:\w+\s+)/i,
1610
+ /^(?:[^\n]*)/i,
1611
+ /^(?:class\s+)/i,
1612
+ /^(?:(\w+)+((,\s*\w+)*))/i,
1613
+ /^(?:[^\n]*)/i,
1614
+ /^(?:scale\s+)/i,
1615
+ /^(?:\d+)/i,
1616
+ /^(?:\s+width\b)/i,
1617
+ /^(?:state\s+)/i,
1618
+ /^(?:.*<<fork>>)/i,
1619
+ /^(?:.*<<join>>)/i,
1620
+ /^(?:.*<<choice>>)/i,
1621
+ /^(?:.*\[\[fork\]\])/i,
1622
+ /^(?:.*\[\[join\]\])/i,
1623
+ /^(?:.*\[\[choice\]\])/i,
1624
+ /^(?:.*direction\s+TB[^\n]*)/i,
1625
+ /^(?:.*direction\s+BT[^\n]*)/i,
1626
+ /^(?:.*direction\s+RL[^\n]*)/i,
1627
+ /^(?:.*direction\s+LR[^\n]*)/i,
1628
+ /^(?:["])/i,
1629
+ /^(?:\s*as\s+)/i,
1630
+ /^(?:[^\n\{]*)/i,
1631
+ /^(?:["])/i,
1632
+ /^(?:[^"]*)/i,
1633
+ /^(?:[^\n\s\{]+)/i,
1634
+ /^(?:\n)/i,
1635
+ /^(?:\{)/i,
1636
+ /^(?:%%(?!\{)[^\n]*)/i,
1637
+ /^(?:\})/i,
1638
+ /^(?:[\n])/i,
1639
+ /^(?:note\s+)/i,
1640
+ /^(?:left of\b)/i,
1641
+ /^(?:right of\b)/i,
1642
+ /^(?:")/i,
1643
+ /^(?:\s*as\s*)/i,
1644
+ /^(?:["])/i,
1645
+ /^(?:[^"]*)/i,
1646
+ /^(?:[^\n]*)/i,
1647
+ /^(?:\s*[^:\n\s\-]+)/i,
1648
+ /^(?:\s*:[^:\n;]+)/i,
1649
+ /^(?:[\s\S]*?end note\b)/i,
1650
+ /^(?:stateDiagram\s+)/i,
1651
+ /^(?:stateDiagram-v2\s+)/i,
1652
+ /^(?:hide empty description\b)/i,
1653
+ /^(?:\[\*\])/i,
1654
+ /^(?:[^:\n\s\-\{]+)/i,
1655
+ /^(?:\s*:[^:\n;]+)/i,
1656
+ /^(?:-->)/i,
1657
+ /^(?:--)/i,
1658
+ /^(?::::)/i,
1659
+ /^(?:$)/i,
1660
+ /^(?:.)/i
1661
+ ],
1662
+ conditions: {
1663
+ LINE: {
1664
+ rules: [
1665
+ 9,
1666
+ 10
1667
+ ],
1668
+ inclusive: !1
1669
+ },
1670
+ struct: {
1671
+ rules: [
1672
+ 9,
1673
+ 10,
1674
+ 22,
1675
+ 26,
1676
+ 32,
1677
+ 39,
1678
+ 40,
1679
+ 41,
1680
+ 42,
1681
+ 51,
1682
+ 52,
1683
+ 53,
1684
+ 54,
1685
+ 68,
1686
+ 69,
1687
+ 70,
1688
+ 71,
1689
+ 72
1690
+ ],
1691
+ inclusive: !1
1692
+ },
1693
+ FLOATING_NOTE_ID: {
1694
+ rules: [
1695
+ 61
1696
+ ],
1697
+ inclusive: !1
1698
+ },
1699
+ FLOATING_NOTE: {
1700
+ rules: [
1701
+ 58,
1702
+ 59,
1703
+ 60
1704
+ ],
1705
+ inclusive: !1
1706
+ },
1707
+ NOTE_TEXT: {
1708
+ rules: [
1709
+ 63,
1710
+ 64
1711
+ ],
1712
+ inclusive: !1
1713
+ },
1714
+ NOTE_ID: {
1715
+ rules: [
1716
+ 62
1717
+ ],
1718
+ inclusive: !1
1719
+ },
1720
+ NOTE: {
1721
+ rules: [
1722
+ 55,
1723
+ 56,
1724
+ 57
1725
+ ],
1726
+ inclusive: !1
1727
+ },
1728
+ CLASS_STYLE: {
1729
+ rules: [
1730
+ 28
1731
+ ],
1732
+ inclusive: !1
1733
+ },
1734
+ CLASS: {
1735
+ rules: [
1736
+ 27
1737
+ ],
1738
+ inclusive: !1
1739
+ },
1740
+ CLASSDEFID: {
1741
+ rules: [
1742
+ 25
1743
+ ],
1744
+ inclusive: !1
1745
+ },
1746
+ CLASSDEF: {
1747
+ rules: [
1748
+ 23,
1749
+ 24
1750
+ ],
1751
+ inclusive: !1
1752
+ },
1753
+ acc_descr_multiline: {
1754
+ rules: [
1755
+ 20,
1756
+ 21
1757
+ ],
1758
+ inclusive: !1
1759
+ },
1760
+ acc_descr: {
1761
+ rules: [
1762
+ 18
1763
+ ],
1764
+ inclusive: !1
1765
+ },
1766
+ acc_title: {
1767
+ rules: [
1768
+ 16
1769
+ ],
1770
+ inclusive: !1
1771
+ },
1772
+ SCALE: {
1773
+ rules: [
1774
+ 13,
1775
+ 14,
1776
+ 30,
1777
+ 31
1778
+ ],
1779
+ inclusive: !1
1780
+ },
1781
+ ALIAS: {
1782
+ rules: [],
1783
+ inclusive: !1
1784
+ },
1785
+ STATE_ID: {
1786
+ rules: [
1787
+ 45
1788
+ ],
1789
+ inclusive: !1
1790
+ },
1791
+ STATE_STRING: {
1792
+ rules: [
1793
+ 46,
1794
+ 47
1795
+ ],
1796
+ inclusive: !1
1797
+ },
1798
+ FORK_STATE: {
1799
+ rules: [],
1800
+ inclusive: !1
1801
+ },
1802
+ STATE: {
1803
+ rules: [
1804
+ 9,
1805
+ 10,
1806
+ 33,
1807
+ 34,
1808
+ 35,
1809
+ 36,
1810
+ 37,
1811
+ 38,
1812
+ 43,
1813
+ 44,
1814
+ 48,
1815
+ 49,
1816
+ 50
1817
+ ],
1818
+ inclusive: !1
1819
+ },
1820
+ ID: {
1821
+ rules: [
1822
+ 9,
1823
+ 10
1824
+ ],
1825
+ inclusive: !1
1826
+ },
1827
+ INITIAL: {
1828
+ rules: [
1829
+ 0,
1830
+ 1,
1831
+ 2,
1832
+ 3,
1833
+ 4,
1834
+ 5,
1835
+ 6,
1836
+ 7,
1837
+ 8,
1838
+ 10,
1839
+ 11,
1840
+ 12,
1841
+ 15,
1842
+ 17,
1843
+ 19,
1844
+ 22,
1845
+ 26,
1846
+ 29,
1847
+ 32,
1848
+ 50,
1849
+ 54,
1850
+ 65,
1851
+ 66,
1852
+ 67,
1853
+ 68,
1854
+ 69,
1855
+ 70,
1856
+ 71,
1857
+ 73,
1858
+ 74,
1859
+ 75
1860
+ ],
1861
+ inclusive: !0
1862
+ }
1863
+ }
1864
+ };
1865
+ return C;
1866
+ }();
1867
+ ht.lexer = Yt;
1868
+ function ut() {
1869
+ this.yy = {};
1870
+ }
1871
+ return ut.prototype = ht, ht.Parser = ut, new ut();
1872
+ }();
1873
+ gt.parser = gt;
1874
+ var De = gt, qt = "LR", Ce = "TB", _t = "state", It = "relation", Qt = "classDef", Zt = "applyClass", Et = "default", te = "divider", bt = "[*]", Ot = "start", Nt = bt, Rt = "end", At = "color", Lt = "fill", ee = "bgFill", se = ",";
1875
+ function wt() {
1876
+ return {};
1877
+ }
1878
+ var $t = qt, lt = [], P = wt();
1879
+ var Bt = function() {
1880
+ return {
1881
+ relations: [],
1882
+ states: {},
1883
+ documents: {}
1884
+ };
1885
+ };
1886
+ var ct = {
1887
+ root: Bt()
1888
+ }, g = ct.root, F = 0, vt = 0;
1889
+ var ie = {
1890
+ LINE: 0,
1891
+ DOTTED_LINE: 1
1892
+ }, re = {
1893
+ AGGREGATION: 0,
1894
+ EXTENSION: 1,
1895
+ COMPOSITION: 2,
1896
+ DEPENDENCY: 3
1897
+ }, nt = function(t) {
1898
+ return JSON.parse(JSON.stringify(t));
1899
+ }, ne = function(t) {
1900
+ L.info("Setting root doc", t), lt = t;
1901
+ }, ae = function() {
1902
+ return lt;
1903
+ }, at = function(t, s, a) {
1904
+ if (s.stmt === It) at(t, s.state1, !0), at(t, s.state2, !1);
1905
+ else if (s.stmt === _t && (s.id === "[*]" ? (s.id = a ? t.id + "_start" : t.id + "_end", s.start = a) : s.id = s.id.trim()), s.doc) {
1906
+ var h = [];
1907
+ var f = [], d;
1908
+ for(d = 0; d < s.doc.length; d++)if (s.doc[d].type === te) {
1909
+ var y = nt(s.doc[d]);
1910
+ y.doc = nt(f), h.push(y), f = [];
1911
+ } else f.push(s.doc[d]);
1912
+ if (h.length > 0 && f.length > 0) {
1913
+ var y1 = {
1914
+ stmt: _t,
1915
+ id: F0(),
1916
+ type: "divider",
1917
+ doc: nt(f)
1918
+ };
1919
+ h.push(nt(y1)), s.doc = h;
1920
+ }
1921
+ s.doc.forEach(function(y) {
1922
+ return at(s, y, !0);
1923
+ });
1924
+ }
1925
+ }, le = function() {
1926
+ return at({
1927
+ id: "root"
1928
+ }, {
1929
+ id: "root",
1930
+ doc: lt
1931
+ }, !0), {
1932
+ id: "root",
1933
+ doc: lt
1934
+ };
1935
+ }, ce = function(t) {
1936
+ var s;
1937
+ t.doc ? s = t.doc : s = t, L.info(s), Pt(!0), L.info("Extract", s), s.forEach(function(a) {
1938
+ switch(a.stmt){
1939
+ case _t:
1940
+ I(a.id.trim(), a.type, a.doc, a.description, a.note, a.classes, a.styles, a.textStyles);
1941
+ break;
1942
+ case It:
1943
+ Ft(a.state1, a.state2, a.description);
1944
+ break;
1945
+ case Qt:
1946
+ Vt(a.id.trim(), a.classes);
1947
+ break;
1948
+ case Zt:
1949
+ xt(a.id.trim(), a.styleClass);
1950
+ break;
1951
+ }
1952
+ });
1953
+ }, I = function I(t) {
1954
+ var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Et, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, h = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, f = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null, d = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : null, y = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : null, k = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : null;
1955
+ var u = t == null ? void 0 : t.trim();
1956
+ g.states[u] === void 0 ? (L.info("Adding state ", u, h), g.states[u] = {
1957
+ id: u,
1958
+ descriptions: [],
1959
+ type: s,
1960
+ doc: a,
1961
+ note: f,
1962
+ classes: [],
1963
+ styles: [],
1964
+ textStyles: []
1965
+ }) : (g.states[u].doc || (g.states[u].doc = a), g.states[u].type || (g.states[u].type = s)), h && (L.info("Setting state description", u, h), typeof h == "string" && kt(u, h.trim()), typeof h == "object" && h.forEach(function(E) {
1966
+ return kt(u, E.trim());
1967
+ })), f && (g.states[u].note = f, g.states[u].note.text = $n.sanitizeText(g.states[u].note.text, Vn())), d && (L.info("Setting state classes", u, d), (typeof d == "string" ? [
1968
+ d
1969
+ ] : d).forEach(function(T) {
1970
+ return xt(u, T.trim());
1971
+ })), y && (L.info("Setting state styles", u, y), (typeof y == "string" ? [
1972
+ y
1973
+ ] : y).forEach(function(T) {
1974
+ return _e(u, T.trim());
1975
+ })), k && (L.info("Setting state styles", u, y), (typeof k == "string" ? [
1976
+ k
1977
+ ] : k).forEach(function(T) {
1978
+ return me(u, T.trim());
1979
+ }));
1980
+ }, Pt = function Pt(t) {
1981
+ ct = {
1982
+ root: Bt()
1983
+ }, g = ct.root, F = 0, P = wt(), t || B_();
1984
+ }, V = function V(t) {
1985
+ return g.states[t];
1986
+ }, oe = function oe() {
1987
+ return g.states;
1988
+ }, he = function he() {
1989
+ L.info("Documents = ", ct);
1990
+ }, ue = function ue() {
1991
+ return g.relations;
1992
+ };
1993
+ function mt() {
1994
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
1995
+ var s = t;
1996
+ return t === bt && (F++, s = "".concat(Ot).concat(F)), s;
1997
+ }
1998
+ function Tt() {
1999
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Et;
2000
+ return t === bt ? Ot : s;
2001
+ }
2002
+ function fe() {
2003
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
2004
+ var s = t;
2005
+ return t === Nt && (F++, s = "".concat(Rt).concat(F)), s;
2006
+ }
2007
+ function de() {
2008
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Et;
2009
+ return t === Nt ? Rt : s;
2010
+ }
2011
+ function ye(t, s, a) {
2012
+ var h = mt(t.id.trim()), f = Tt(t.id.trim(), t.type), d = mt(s.id.trim()), y = Tt(s.id.trim(), s.type);
2013
+ I(h, f, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), I(d, y, s.doc, s.description, s.note, s.classes, s.styles, s.textStyles), g.relations.push({
2014
+ id1: h,
2015
+ id2: d,
2016
+ relationTitle: $n.sanitizeText(a, Vn())
2017
+ });
2018
+ }
2019
+ var Ft = function Ft(t, s, a) {
2020
+ if (typeof t == "object") ye(t, s, a);
2021
+ else {
2022
+ var h = mt(t.trim()), f = Tt(t), d = fe(s.trim()), y = de(s);
2023
+ I(h, f), I(d, y), g.relations.push({
2024
+ id1: h,
2025
+ id2: d,
2026
+ title: $n.sanitizeText(a, Vn())
2027
+ });
2028
+ }
2029
+ }, kt = function kt(t, s) {
2030
+ var a = g.states[t], h = s.startsWith(":") ? s.replace(":", "").trim() : s;
2031
+ a.descriptions.push($n.sanitizeText(h, Vn()));
2032
+ }, pe = function pe(t) {
2033
+ return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
2034
+ }, Se = function() {
2035
+ return vt++, "divider-id-" + vt;
2036
+ }, Vt = function Vt(t) {
2037
+ var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
2038
+ P[t] === void 0 && (P[t] = {
2039
+ id: t,
2040
+ styles: [],
2041
+ textStyles: []
2042
+ });
2043
+ var a = P[t];
2044
+ s != null && s.split(se).forEach(function(h) {
2045
+ var f = h.replace(/([^;]*);/, "$1").trim();
2046
+ if (h.match(At)) {
2047
+ var y = f.replace(Lt, ee).replace(At, Lt);
2048
+ a.textStyles.push(y);
2049
+ }
2050
+ a.styles.push(f);
2051
+ });
2052
+ }, ge = function ge() {
2053
+ return P;
2054
+ }, xt = function xt(t, s) {
2055
+ t.split(",").forEach(function(a) {
2056
+ var h = V(a);
2057
+ if (h === void 0) {
2058
+ var f = a.trim();
2059
+ I(f), h = V(f);
2060
+ }
2061
+ h.classes.push(s);
2062
+ });
2063
+ }, _e = function _e(t, s) {
2064
+ var a = V(t);
2065
+ a !== void 0 && a.textStyles.push(s);
2066
+ }, me = function me(t, s) {
2067
+ var a = V(t);
2068
+ a !== void 0 && a.textStyles.push(s);
2069
+ }, Te = function() {
2070
+ return $t;
2071
+ }, ke = function(t) {
2072
+ $t = t;
2073
+ }, Ee = function(t) {
2074
+ return t && t[0] === ":" ? t.substr(1).trim() : t.trim();
2075
+ }, Ae = {
2076
+ getConfig: function() {
2077
+ return Vn().state;
2078
+ },
2079
+ addState: I,
2080
+ clear: Pt,
2081
+ getState: V,
2082
+ getStates: oe,
2083
+ getRelations: ue,
2084
+ getClasses: ge,
2085
+ getDirection: Te,
2086
+ addRelation: Ft,
2087
+ getDividerId: Se,
2088
+ setDirection: ke,
2089
+ cleanupLabel: pe,
2090
+ lineType: ie,
2091
+ relationType: re,
2092
+ logDocuments: he,
2093
+ getRootDoc: ae,
2094
+ setRootDoc: ne,
2095
+ getRootDocV2: le,
2096
+ extract: ce,
2097
+ trimColon: Ee,
2098
+ getAccTitle: A_,
2099
+ setAccTitle: F_,
2100
+ getAccDescription: E_,
2101
+ setAccDescription: L_,
2102
+ addStyleClass: Vt,
2103
+ setCssClass: xt,
2104
+ addDescription: kt,
2105
+ setDiagramTitle: M_,
2106
+ getDiagramTitle: O_
2107
+ }, be = function(t) {
2108
+ return "\ndefs #statediagram-barbEnd {\n fill: ".concat(t.transitionColor, ";\n stroke: ").concat(t.transitionColor, ";\n }\ng.stateGroup text {\n fill: ").concat(t.nodeBorder, ";\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ").concat(t.textColor, ";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(t.stateLabelColor, ";\n}\n\ng.stateGroup rect {\n fill: ").concat(t.mainBkg, ";\n stroke: ").concat(t.nodeBorder, ";\n}\n\ng.stateGroup line {\n stroke: ").concat(t.lineColor, ";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(t.transitionColor, ";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(t.background, ";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(t.noteBorderColor, ";\n fill: ").concat(t.noteBkgColor, ";\n\n text {\n fill: ").concat(t.noteTextColor, ";\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg, ";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(t.labelBackgroundColor, ";\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ").concat(t.transitionLabelColor || t.tertiaryTextColor, ";\n}\n.label div .edgeLabel {\n color: ").concat(t.transitionLabelColor || t.tertiaryTextColor, ";\n}\n\n.stateLabel text {\n fill: ").concat(t.stateLabelColor, ";\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ").concat(t.specialStateColor, ";\n stroke: ").concat(t.specialStateColor, ";\n}\n\n.node .fork-join {\n fill: ").concat(t.specialStateColor, ";\n stroke: ").concat(t.specialStateColor, ";\n}\n\n.node circle.state-end {\n fill: ").concat(t.innerEndBackground, ";\n stroke: ").concat(t.background, ";\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ").concat(t.compositeBackground || t.background, ";\n // stroke: ").concat(t.background, ";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(t.stateBkg || t.mainBkg, ";\n stroke: ").concat(t.stateBorder || t.nodeBorder, ";\n stroke-width: 1px;\n}\n.node polygon {\n fill: ").concat(t.mainBkg, ";\n stroke: ").concat(t.stateBorder || t.nodeBorder, ";;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(t.lineColor, ";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(t.compositeTitleBackground, ";\n stroke: ").concat(t.stateBorder || t.nodeBorder, ";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(t.stateLabelColor, ";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(t.stateBorder || t.nodeBorder, ";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(t.compositeBackground || t.background, ";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ").concat(t.altBackground ? t.altBackground : "#efefef", ";\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(t.altBackground ? t.altBackground : "#efefef", ";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor, ";\n stroke: ").concat(t.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor, ";\n stroke: ").concat(t.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(t.noteTextColor, ";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(t.noteTextColor, ";\n}\n.statediagram .edgeLabel {\n color: red; // ").concat(t.noteTextColor, ";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(t.lineColor, ";\n stroke: ").concat(t.lineColor, ";\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor, ";\n}\n");
2109
+ }, Le = be;
2110
+
2111
+ export { Ae as A, Ce as C, De as D, Et as E, It as I, Le as L, _t as _, te as t };