@digipair/skill-web-chatbot 0.114.2 → 0.114.6

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