@digipair/skill-web-chatbot 0.3.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 (100) 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/arc-da8fd8d8.cjs.js +88 -0
  6. package/arc-da8fd8d8.esm.js +86 -0
  7. package/array-2ff2c7a6.cjs.js +7 -0
  8. package/array-2ff2c7a6.esm.js +5 -0
  9. package/c4Diagram-1bdb45a8.cjs.js +4613 -0
  10. package/c4Diagram-1bdb45a8.esm.js +4611 -0
  11. package/classDiagram-185c1a10.cjs.js +96 -0
  12. package/classDiagram-185c1a10.esm.js +94 -0
  13. package/classDiagram-v2-6dc3b9c3.cjs.js +403 -0
  14. package/classDiagram-v2-6dc3b9c3.esm.js +401 -0
  15. package/constant-2fe7eae5.cjs.js +58 -0
  16. package/constant-2fe7eae5.esm.js +55 -0
  17. package/createText-94e3ebbf.cjs.js +2775 -0
  18. package/createText-94e3ebbf.esm.js +2773 -0
  19. package/debug.html +18 -0
  20. package/edges-558884ee.cjs.js +1450 -0
  21. package/edges-558884ee.esm.js +1436 -0
  22. package/erDiagram-97139f44.cjs.js +1949 -0
  23. package/erDiagram-97139f44.esm.js +1947 -0
  24. package/flowDb-a4faf166.cjs.js +6918 -0
  25. package/flowDb-a4faf166.esm.js +6914 -0
  26. package/flowDiagram-ccbbb58d.cjs.js +999 -0
  27. package/flowDiagram-ccbbb58d.esm.js +997 -0
  28. package/flowDiagram-v2-79ccd6da.cjs.js +29 -0
  29. package/flowDiagram-v2-79ccd6da.esm.js +27 -0
  30. package/flowchart-elk-definition-7863a61f.cjs.js +48577 -0
  31. package/flowchart-elk-definition-7863a61f.esm.js +48575 -0
  32. package/ganttDiagram-3eff0dd8.cjs.js +3855 -0
  33. package/ganttDiagram-3eff0dd8.esm.js +3853 -0
  34. package/gitGraphDiagram-c3fe571f.cjs.js +3863 -0
  35. package/gitGraphDiagram-c3fe571f.esm.js +3861 -0
  36. package/index-d0b453e2.cjs.js +609 -0
  37. package/index-d0b453e2.esm.js +607 -0
  38. package/index.cjs.d.ts +1 -0
  39. package/index.cjs.js +17 -0
  40. package/index.cjs2.js +43619 -0
  41. package/index.d.ts +1 -0
  42. package/index.esm.js +1 -0
  43. package/index.esm2.js +43493 -0
  44. package/infoDiagram-9c10eab1.cjs.js +467 -0
  45. package/infoDiagram-9c10eab1.esm.js +465 -0
  46. package/init-f9637058.cjs.js +17 -0
  47. package/init-f9637058.esm.js +15 -0
  48. package/journeyDiagram-b6904cec.cjs.js +1292 -0
  49. package/journeyDiagram-b6904cec.esm.js +1290 -0
  50. package/layout-c5a37d74.cjs.js +2808 -0
  51. package/layout-c5a37d74.esm.js +2795 -0
  52. package/libs/engine/src/index.d.ts +2 -0
  53. package/libs/engine/src/lib/engine.d.ts +27 -0
  54. package/libs/engine/src/lib/pins-settings.interface.d.ts +20 -0
  55. package/libs/skill-web-chatbot/src/index.d.ts +3 -0
  56. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +23 -0
  57. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  58. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  59. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  60. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +32 -0
  61. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  62. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +39 -0
  63. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +9 -0
  64. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +5 -0
  65. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  66. package/line-ce5d1152.cjs.js +34 -0
  67. package/line-ce5d1152.esm.js +32 -0
  68. package/linear-db016d0c.cjs.js +485 -0
  69. package/linear-db016d0c.esm.js +479 -0
  70. package/mindmap-definition-a9d0f378.cjs.js +20225 -0
  71. package/mindmap-definition-a9d0f378.esm.js +20223 -0
  72. package/ordinal-5695958c.cjs.js +331 -0
  73. package/ordinal-5695958c.esm.js +329 -0
  74. package/package.json +8 -0
  75. package/pieDiagram-fd367f1f.cjs.js +1157 -0
  76. package/pieDiagram-fd367f1f.esm.js +1155 -0
  77. package/quadrantDiagram-1763608a.cjs.js +2633 -0
  78. package/quadrantDiagram-1763608a.esm.js +2631 -0
  79. package/requirementDiagram-779d93b3.cjs.js +2451 -0
  80. package/requirementDiagram-779d93b3.esm.js +2449 -0
  81. package/sankeyDiagram-86a66bae.cjs.js +1850 -0
  82. package/sankeyDiagram-86a66bae.esm.js +1848 -0
  83. package/sequenceDiagram-169f11ec.cjs.js +4805 -0
  84. package/sequenceDiagram-169f11ec.esm.js +4803 -0
  85. package/stateDiagram-6f4bb19d.cjs.js +282 -0
  86. package/stateDiagram-6f4bb19d.esm.js +280 -0
  87. package/stateDiagram-v2-d72c79bd.cjs.js +377 -0
  88. package/stateDiagram-v2-d72c79bd.esm.js +375 -0
  89. package/styles-3814544c.cjs.js +534 -0
  90. package/styles-3814544c.esm.js +524 -0
  91. package/styles-3fb7b9cf.cjs.js +2377 -0
  92. package/styles-3fb7b9cf.esm.js +2368 -0
  93. package/styles-659d7242.cjs.js +3919 -0
  94. package/styles-659d7242.esm.js +3915 -0
  95. package/svgDraw-af99a425.cjs.js +144 -0
  96. package/svgDraw-af99a425.esm.js +141 -0
  97. package/svgDrawCommon-ebe6c236.cjs.js +70 -0
  98. package/svgDrawCommon-ebe6c236.esm.js +62 -0
  99. package/timeline-definition-65183566.cjs.js +1394 -0
  100. package/timeline-definition-65183566.esm.js +1392 -0
@@ -0,0 +1,2631 @@
1
+ import { aF as zd, U as Ut$1, L as La, A as Aa, c as Oa, I as Ia, M as Ma, E as Ea, aG as Gd, S, d as de, F as Fa, a as At, Y as Yg, J as Je } from './index.esm2.js';
2
+ import { Y as Yn } from './linear-db016d0c.esm.js';
3
+ import './init-f9637058.esm.js';
4
+
5
+ function _array_like_to_array(arr, len) {
6
+ if (len == null || len > arr.length) len = arr.length;
7
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8
+ return arr2;
9
+ }
10
+ function _array_without_holes(arr) {
11
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
12
+ }
13
+ function _class_call_check(instance, Constructor) {
14
+ if (!(instance instanceof Constructor)) {
15
+ throw new TypeError("Cannot call a class as a function");
16
+ }
17
+ }
18
+ function _defineProperties(target, props) {
19
+ for(var i = 0; i < props.length; i++){
20
+ var descriptor = props[i];
21
+ descriptor.enumerable = descriptor.enumerable || false;
22
+ descriptor.configurable = true;
23
+ if ("value" in descriptor) descriptor.writable = true;
24
+ Object.defineProperty(target, descriptor.key, descriptor);
25
+ }
26
+ }
27
+ function _create_class(Constructor, protoProps, staticProps) {
28
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29
+ if (staticProps) _defineProperties(Constructor, staticProps);
30
+ return Constructor;
31
+ }
32
+ function _define_property(obj, key, value) {
33
+ if (key in obj) {
34
+ Object.defineProperty(obj, key, {
35
+ value: value,
36
+ enumerable: true,
37
+ configurable: true,
38
+ writable: true
39
+ });
40
+ } else {
41
+ obj[key] = value;
42
+ }
43
+ return obj;
44
+ }
45
+ function _instanceof(left, right) {
46
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
47
+ return !!right[Symbol.hasInstance](left);
48
+ } else {
49
+ return left instanceof right;
50
+ }
51
+ }
52
+ function _iterable_to_array(iter) {
53
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
54
+ }
55
+ function _non_iterable_spread() {
56
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
57
+ }
58
+ function _object_spread(target) {
59
+ for(var i = 1; i < arguments.length; i++){
60
+ var source = arguments[i] != null ? arguments[i] : {};
61
+ var ownKeys = Object.keys(source);
62
+ if (typeof Object.getOwnPropertySymbols === "function") {
63
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
64
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
65
+ }));
66
+ }
67
+ ownKeys.forEach(function(key) {
68
+ _define_property(target, key, source[key]);
69
+ });
70
+ }
71
+ return target;
72
+ }
73
+ function _to_consumable_array(arr) {
74
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
75
+ }
76
+ function _type_of(obj) {
77
+ "@swc/helpers - typeof";
78
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
79
+ }
80
+ function _unsupported_iterable_to_array(o, minLen) {
81
+ if (!o) return;
82
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
83
+ var n = Object.prototype.toString.call(o).slice(8, -1);
84
+ if (n === "Object" && o.constructor) n = o.constructor.name;
85
+ if (n === "Map" || n === "Set") return Array.from(n);
86
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
87
+ }
88
+ var qt = function() {
89
+ var e = function e(K, n, r, d) {
90
+ for(r = r || {}, d = K.length; d--; r[K[d]] = n);
91
+ return r;
92
+ }, a = [
93
+ 1,
94
+ 3
95
+ ], h = [
96
+ 1,
97
+ 5
98
+ ], f = [
99
+ 1,
100
+ 6
101
+ ], g = [
102
+ 1,
103
+ 7
104
+ ], u = [
105
+ 1,
106
+ 8
107
+ ], c = [
108
+ 1,
109
+ 10
110
+ ], p = [
111
+ 1,
112
+ 5,
113
+ 14,
114
+ 16,
115
+ 18,
116
+ 20,
117
+ 21,
118
+ 26,
119
+ 28,
120
+ 29,
121
+ 30,
122
+ 31,
123
+ 32,
124
+ 38,
125
+ 39,
126
+ 40,
127
+ 41,
128
+ 47,
129
+ 48,
130
+ 50,
131
+ 51,
132
+ 52,
133
+ 53,
134
+ 54,
135
+ 55,
136
+ 56,
137
+ 57,
138
+ 58,
139
+ 59,
140
+ 60
141
+ ], s = [
142
+ 1,
143
+ 5,
144
+ 7,
145
+ 14,
146
+ 16,
147
+ 18,
148
+ 20,
149
+ 21,
150
+ 26,
151
+ 28,
152
+ 29,
153
+ 30,
154
+ 31,
155
+ 32,
156
+ 38,
157
+ 39,
158
+ 40,
159
+ 41,
160
+ 47,
161
+ 48,
162
+ 50,
163
+ 51,
164
+ 52,
165
+ 53,
166
+ 54,
167
+ 55,
168
+ 56,
169
+ 57,
170
+ 58,
171
+ 59,
172
+ 60
173
+ ], o = [
174
+ 38,
175
+ 39,
176
+ 40
177
+ ], m = [
178
+ 2,
179
+ 8
180
+ ], B = [
181
+ 1,
182
+ 19
183
+ ], V = [
184
+ 1,
185
+ 23
186
+ ], _ = [
187
+ 1,
188
+ 24
189
+ ], D = [
190
+ 1,
191
+ 25
192
+ ], b = [
193
+ 1,
194
+ 26
195
+ ], H = [
196
+ 1,
197
+ 27
198
+ ], G = [
199
+ 1,
200
+ 29
201
+ ], Z = [
202
+ 1,
203
+ 30
204
+ ], at = [
205
+ 1,
206
+ 31
207
+ ], nt = [
208
+ 1,
209
+ 32
210
+ ], et = [
211
+ 1,
212
+ 33
213
+ ], ct = [
214
+ 1,
215
+ 34
216
+ ], N = [
217
+ 1,
218
+ 37
219
+ ], U = [
220
+ 1,
221
+ 38
222
+ ], q = [
223
+ 1,
224
+ 39
225
+ ], T = [
226
+ 1,
227
+ 40
228
+ ], t = [
229
+ 1,
230
+ 41
231
+ ], A = [
232
+ 1,
233
+ 42
234
+ ], S = [
235
+ 1,
236
+ 43
237
+ ], k = [
238
+ 1,
239
+ 44
240
+ ], F = [
241
+ 1,
242
+ 45
243
+ ], v = [
244
+ 1,
245
+ 46
246
+ ], P = [
247
+ 1,
248
+ 47
249
+ ], L = [
250
+ 1,
251
+ 48
252
+ ], C = [
253
+ 1,
254
+ 49
255
+ ], mt = [
256
+ 1,
257
+ 52
258
+ ], X = [
259
+ 1,
260
+ 67
261
+ ], M = [
262
+ 1,
263
+ 68
264
+ ], z = [
265
+ 5,
266
+ 23,
267
+ 27,
268
+ 38,
269
+ 39,
270
+ 40,
271
+ 50,
272
+ 51,
273
+ 52,
274
+ 53,
275
+ 54,
276
+ 55,
277
+ 56,
278
+ 57,
279
+ 58,
280
+ 59,
281
+ 60,
282
+ 61
283
+ ], ht = [
284
+ 5,
285
+ 7,
286
+ 38,
287
+ 39,
288
+ 40,
289
+ 41
290
+ ], dt = {
291
+ trace: function trace() {},
292
+ yy: {},
293
+ symbols_: {
294
+ error: 2,
295
+ start: 3,
296
+ eol: 4,
297
+ SPACE: 5,
298
+ directive: 6,
299
+ QUADRANT: 7,
300
+ document: 8,
301
+ line: 9,
302
+ statement: 10,
303
+ axisDetails: 11,
304
+ quadrantDetails: 12,
305
+ points: 13,
306
+ title: 14,
307
+ title_value: 15,
308
+ acc_title: 16,
309
+ acc_title_value: 17,
310
+ acc_descr: 18,
311
+ acc_descr_value: 19,
312
+ acc_descr_multiline_value: 20,
313
+ section: 21,
314
+ text: 22,
315
+ point_start: 23,
316
+ point_x: 24,
317
+ point_y: 25,
318
+ "X-AXIS": 26,
319
+ "AXIS-TEXT-DELIMITER": 27,
320
+ "Y-AXIS": 28,
321
+ QUADRANT_1: 29,
322
+ QUADRANT_2: 30,
323
+ QUADRANT_3: 31,
324
+ QUADRANT_4: 32,
325
+ openDirective: 33,
326
+ typeDirective: 34,
327
+ closeDirective: 35,
328
+ ":": 36,
329
+ argDirective: 37,
330
+ NEWLINE: 38,
331
+ SEMI: 39,
332
+ EOF: 40,
333
+ open_directive: 41,
334
+ type_directive: 42,
335
+ arg_directive: 43,
336
+ close_directive: 44,
337
+ alphaNumToken: 45,
338
+ textNoTagsToken: 46,
339
+ STR: 47,
340
+ MD_STR: 48,
341
+ alphaNum: 49,
342
+ PUNCTUATION: 50,
343
+ AMP: 51,
344
+ NUM: 52,
345
+ ALPHA: 53,
346
+ COMMA: 54,
347
+ PLUS: 55,
348
+ EQUALS: 56,
349
+ MULT: 57,
350
+ DOT: 58,
351
+ BRKT: 59,
352
+ UNDERSCORE: 60,
353
+ MINUS: 61,
354
+ $accept: 0,
355
+ $end: 1
356
+ },
357
+ terminals_: {
358
+ 2: "error",
359
+ 5: "SPACE",
360
+ 7: "QUADRANT",
361
+ 14: "title",
362
+ 15: "title_value",
363
+ 16: "acc_title",
364
+ 17: "acc_title_value",
365
+ 18: "acc_descr",
366
+ 19: "acc_descr_value",
367
+ 20: "acc_descr_multiline_value",
368
+ 21: "section",
369
+ 23: "point_start",
370
+ 24: "point_x",
371
+ 25: "point_y",
372
+ 26: "X-AXIS",
373
+ 27: "AXIS-TEXT-DELIMITER",
374
+ 28: "Y-AXIS",
375
+ 29: "QUADRANT_1",
376
+ 30: "QUADRANT_2",
377
+ 31: "QUADRANT_3",
378
+ 32: "QUADRANT_4",
379
+ 36: ":",
380
+ 38: "NEWLINE",
381
+ 39: "SEMI",
382
+ 40: "EOF",
383
+ 41: "open_directive",
384
+ 42: "type_directive",
385
+ 43: "arg_directive",
386
+ 44: "close_directive",
387
+ 47: "STR",
388
+ 48: "MD_STR",
389
+ 50: "PUNCTUATION",
390
+ 51: "AMP",
391
+ 52: "NUM",
392
+ 53: "ALPHA",
393
+ 54: "COMMA",
394
+ 55: "PLUS",
395
+ 56: "EQUALS",
396
+ 57: "MULT",
397
+ 58: "DOT",
398
+ 59: "BRKT",
399
+ 60: "UNDERSCORE",
400
+ 61: "MINUS"
401
+ },
402
+ productions_: [
403
+ 0,
404
+ [
405
+ 3,
406
+ 2
407
+ ],
408
+ [
409
+ 3,
410
+ 2
411
+ ],
412
+ [
413
+ 3,
414
+ 2
415
+ ],
416
+ [
417
+ 3,
418
+ 2
419
+ ],
420
+ [
421
+ 8,
422
+ 0
423
+ ],
424
+ [
425
+ 8,
426
+ 2
427
+ ],
428
+ [
429
+ 9,
430
+ 2
431
+ ],
432
+ [
433
+ 10,
434
+ 0
435
+ ],
436
+ [
437
+ 10,
438
+ 2
439
+ ],
440
+ [
441
+ 10,
442
+ 1
443
+ ],
444
+ [
445
+ 10,
446
+ 1
447
+ ],
448
+ [
449
+ 10,
450
+ 1
451
+ ],
452
+ [
453
+ 10,
454
+ 2
455
+ ],
456
+ [
457
+ 10,
458
+ 2
459
+ ],
460
+ [
461
+ 10,
462
+ 2
463
+ ],
464
+ [
465
+ 10,
466
+ 1
467
+ ],
468
+ [
469
+ 10,
470
+ 1
471
+ ],
472
+ [
473
+ 10,
474
+ 1
475
+ ],
476
+ [
477
+ 13,
478
+ 4
479
+ ],
480
+ [
481
+ 11,
482
+ 4
483
+ ],
484
+ [
485
+ 11,
486
+ 3
487
+ ],
488
+ [
489
+ 11,
490
+ 2
491
+ ],
492
+ [
493
+ 11,
494
+ 4
495
+ ],
496
+ [
497
+ 11,
498
+ 3
499
+ ],
500
+ [
501
+ 11,
502
+ 2
503
+ ],
504
+ [
505
+ 12,
506
+ 2
507
+ ],
508
+ [
509
+ 12,
510
+ 2
511
+ ],
512
+ [
513
+ 12,
514
+ 2
515
+ ],
516
+ [
517
+ 12,
518
+ 2
519
+ ],
520
+ [
521
+ 6,
522
+ 3
523
+ ],
524
+ [
525
+ 6,
526
+ 5
527
+ ],
528
+ [
529
+ 4,
530
+ 1
531
+ ],
532
+ [
533
+ 4,
534
+ 1
535
+ ],
536
+ [
537
+ 4,
538
+ 1
539
+ ],
540
+ [
541
+ 33,
542
+ 1
543
+ ],
544
+ [
545
+ 34,
546
+ 1
547
+ ],
548
+ [
549
+ 37,
550
+ 1
551
+ ],
552
+ [
553
+ 35,
554
+ 1
555
+ ],
556
+ [
557
+ 22,
558
+ 1
559
+ ],
560
+ [
561
+ 22,
562
+ 2
563
+ ],
564
+ [
565
+ 22,
566
+ 1
567
+ ],
568
+ [
569
+ 22,
570
+ 1
571
+ ],
572
+ [
573
+ 49,
574
+ 1
575
+ ],
576
+ [
577
+ 49,
578
+ 2
579
+ ],
580
+ [
581
+ 45,
582
+ 1
583
+ ],
584
+ [
585
+ 45,
586
+ 1
587
+ ],
588
+ [
589
+ 45,
590
+ 1
591
+ ],
592
+ [
593
+ 45,
594
+ 1
595
+ ],
596
+ [
597
+ 45,
598
+ 1
599
+ ],
600
+ [
601
+ 45,
602
+ 1
603
+ ],
604
+ [
605
+ 45,
606
+ 1
607
+ ],
608
+ [
609
+ 45,
610
+ 1
611
+ ],
612
+ [
613
+ 45,
614
+ 1
615
+ ],
616
+ [
617
+ 45,
618
+ 1
619
+ ],
620
+ [
621
+ 45,
622
+ 1
623
+ ],
624
+ [
625
+ 46,
626
+ 1
627
+ ],
628
+ [
629
+ 46,
630
+ 1
631
+ ],
632
+ [
633
+ 46,
634
+ 1
635
+ ]
636
+ ],
637
+ performAction: function performAction(n, r, d, l, y, i, it) {
638
+ var x = i.length - 1;
639
+ switch(y){
640
+ case 13:
641
+ this.$ = i[x].trim(), l.setDiagramTitle(this.$);
642
+ break;
643
+ case 14:
644
+ this.$ = i[x].trim(), l.setAccTitle(this.$);
645
+ break;
646
+ case 15:
647
+ case 16:
648
+ this.$ = i[x].trim(), l.setAccDescription(this.$);
649
+ break;
650
+ case 17:
651
+ l.addSection(i[x].substr(8)), this.$ = i[x].substr(8);
652
+ break;
653
+ case 19:
654
+ l.addPoint(i[x - 3], i[x - 1], i[x]);
655
+ break;
656
+ case 20:
657
+ l.setXAxisLeftText(i[x - 2]), l.setXAxisRightText(i[x]);
658
+ break;
659
+ case 21:
660
+ i[x - 1].text += " ⟶ ", l.setXAxisLeftText(i[x - 1]);
661
+ break;
662
+ case 22:
663
+ l.setXAxisLeftText(i[x]);
664
+ break;
665
+ case 23:
666
+ l.setYAxisBottomText(i[x - 2]), l.setYAxisTopText(i[x]);
667
+ break;
668
+ case 24:
669
+ i[x - 1].text += " ⟶ ", l.setYAxisBottomText(i[x - 1]);
670
+ break;
671
+ case 25:
672
+ l.setYAxisBottomText(i[x]);
673
+ break;
674
+ case 26:
675
+ l.setQuadrant1Text(i[x]);
676
+ break;
677
+ case 27:
678
+ l.setQuadrant2Text(i[x]);
679
+ break;
680
+ case 28:
681
+ l.setQuadrant3Text(i[x]);
682
+ break;
683
+ case 29:
684
+ l.setQuadrant4Text(i[x]);
685
+ break;
686
+ case 35:
687
+ l.parseDirective("%%{", "open_directive");
688
+ break;
689
+ case 36:
690
+ l.parseDirective(i[x], "type_directive");
691
+ break;
692
+ case 37:
693
+ i[x] = i[x].trim().replace(/'/g, '"'), l.parseDirective(i[x], "arg_directive");
694
+ break;
695
+ case 38:
696
+ l.parseDirective("}%%", "close_directive", "quadrantChart");
697
+ break;
698
+ case 39:
699
+ this.$ = {
700
+ text: i[x],
701
+ type: "text"
702
+ };
703
+ break;
704
+ case 40:
705
+ this.$ = {
706
+ text: i[x - 1].text + "" + i[x],
707
+ type: i[x - 1].type
708
+ };
709
+ break;
710
+ case 41:
711
+ this.$ = {
712
+ text: i[x],
713
+ type: "text"
714
+ };
715
+ break;
716
+ case 42:
717
+ this.$ = {
718
+ text: i[x],
719
+ type: "markdown"
720
+ };
721
+ break;
722
+ case 43:
723
+ this.$ = i[x];
724
+ break;
725
+ case 44:
726
+ this.$ = i[x - 1] + "" + i[x];
727
+ break;
728
+ }
729
+ },
730
+ table: [
731
+ {
732
+ 3: 1,
733
+ 4: 2,
734
+ 5: a,
735
+ 6: 4,
736
+ 7: h,
737
+ 33: 9,
738
+ 38: f,
739
+ 39: g,
740
+ 40: u,
741
+ 41: c
742
+ },
743
+ {
744
+ 1: [
745
+ 3
746
+ ]
747
+ },
748
+ {
749
+ 3: 11,
750
+ 4: 2,
751
+ 5: a,
752
+ 6: 4,
753
+ 7: h,
754
+ 33: 9,
755
+ 38: f,
756
+ 39: g,
757
+ 40: u,
758
+ 41: c
759
+ },
760
+ {
761
+ 3: 12,
762
+ 4: 2,
763
+ 5: a,
764
+ 6: 4,
765
+ 7: h,
766
+ 33: 9,
767
+ 38: f,
768
+ 39: g,
769
+ 40: u,
770
+ 41: c
771
+ },
772
+ {
773
+ 3: 13,
774
+ 4: 2,
775
+ 5: a,
776
+ 6: 4,
777
+ 7: h,
778
+ 33: 9,
779
+ 38: f,
780
+ 39: g,
781
+ 40: u,
782
+ 41: c
783
+ },
784
+ e(p, [
785
+ 2,
786
+ 5
787
+ ], {
788
+ 8: 14
789
+ }),
790
+ e(s, [
791
+ 2,
792
+ 32
793
+ ]),
794
+ e(s, [
795
+ 2,
796
+ 33
797
+ ]),
798
+ e(s, [
799
+ 2,
800
+ 34
801
+ ]),
802
+ {
803
+ 34: 15,
804
+ 42: [
805
+ 1,
806
+ 16
807
+ ]
808
+ },
809
+ {
810
+ 42: [
811
+ 2,
812
+ 35
813
+ ]
814
+ },
815
+ {
816
+ 1: [
817
+ 2,
818
+ 1
819
+ ]
820
+ },
821
+ {
822
+ 1: [
823
+ 2,
824
+ 2
825
+ ]
826
+ },
827
+ {
828
+ 1: [
829
+ 2,
830
+ 3
831
+ ]
832
+ },
833
+ e(o, m, {
834
+ 33: 9,
835
+ 9: 17,
836
+ 10: 18,
837
+ 11: 20,
838
+ 12: 21,
839
+ 13: 22,
840
+ 6: 28,
841
+ 22: 35,
842
+ 45: 36,
843
+ 1: [
844
+ 2,
845
+ 4
846
+ ],
847
+ 5: B,
848
+ 14: V,
849
+ 16: _,
850
+ 18: D,
851
+ 20: b,
852
+ 21: H,
853
+ 26: G,
854
+ 28: Z,
855
+ 29: at,
856
+ 30: nt,
857
+ 31: et,
858
+ 32: ct,
859
+ 41: c,
860
+ 47: N,
861
+ 48: U,
862
+ 50: q,
863
+ 51: T,
864
+ 52: t,
865
+ 53: A,
866
+ 54: S,
867
+ 55: k,
868
+ 56: F,
869
+ 57: v,
870
+ 58: P,
871
+ 59: L,
872
+ 60: C
873
+ }),
874
+ {
875
+ 35: 50,
876
+ 36: [
877
+ 1,
878
+ 51
879
+ ],
880
+ 44: mt
881
+ },
882
+ e([
883
+ 36,
884
+ 44
885
+ ], [
886
+ 2,
887
+ 36
888
+ ]),
889
+ e(p, [
890
+ 2,
891
+ 6
892
+ ]),
893
+ {
894
+ 4: 53,
895
+ 38: f,
896
+ 39: g,
897
+ 40: u
898
+ },
899
+ e(o, m, {
900
+ 33: 9,
901
+ 11: 20,
902
+ 12: 21,
903
+ 13: 22,
904
+ 6: 28,
905
+ 22: 35,
906
+ 45: 36,
907
+ 10: 54,
908
+ 5: B,
909
+ 14: V,
910
+ 16: _,
911
+ 18: D,
912
+ 20: b,
913
+ 21: H,
914
+ 26: G,
915
+ 28: Z,
916
+ 29: at,
917
+ 30: nt,
918
+ 31: et,
919
+ 32: ct,
920
+ 41: c,
921
+ 47: N,
922
+ 48: U,
923
+ 50: q,
924
+ 51: T,
925
+ 52: t,
926
+ 53: A,
927
+ 54: S,
928
+ 55: k,
929
+ 56: F,
930
+ 57: v,
931
+ 58: P,
932
+ 59: L,
933
+ 60: C
934
+ }),
935
+ e(o, [
936
+ 2,
937
+ 10
938
+ ]),
939
+ e(o, [
940
+ 2,
941
+ 11
942
+ ]),
943
+ e(o, [
944
+ 2,
945
+ 12
946
+ ]),
947
+ {
948
+ 15: [
949
+ 1,
950
+ 55
951
+ ]
952
+ },
953
+ {
954
+ 17: [
955
+ 1,
956
+ 56
957
+ ]
958
+ },
959
+ {
960
+ 19: [
961
+ 1,
962
+ 57
963
+ ]
964
+ },
965
+ e(o, [
966
+ 2,
967
+ 16
968
+ ]),
969
+ e(o, [
970
+ 2,
971
+ 17
972
+ ]),
973
+ e(o, [
974
+ 2,
975
+ 18
976
+ ]),
977
+ {
978
+ 22: 58,
979
+ 45: 36,
980
+ 47: N,
981
+ 48: U,
982
+ 50: q,
983
+ 51: T,
984
+ 52: t,
985
+ 53: A,
986
+ 54: S,
987
+ 55: k,
988
+ 56: F,
989
+ 57: v,
990
+ 58: P,
991
+ 59: L,
992
+ 60: C
993
+ },
994
+ {
995
+ 22: 59,
996
+ 45: 36,
997
+ 47: N,
998
+ 48: U,
999
+ 50: q,
1000
+ 51: T,
1001
+ 52: t,
1002
+ 53: A,
1003
+ 54: S,
1004
+ 55: k,
1005
+ 56: F,
1006
+ 57: v,
1007
+ 58: P,
1008
+ 59: L,
1009
+ 60: C
1010
+ },
1011
+ {
1012
+ 22: 60,
1013
+ 45: 36,
1014
+ 47: N,
1015
+ 48: U,
1016
+ 50: q,
1017
+ 51: T,
1018
+ 52: t,
1019
+ 53: A,
1020
+ 54: S,
1021
+ 55: k,
1022
+ 56: F,
1023
+ 57: v,
1024
+ 58: P,
1025
+ 59: L,
1026
+ 60: C
1027
+ },
1028
+ {
1029
+ 22: 61,
1030
+ 45: 36,
1031
+ 47: N,
1032
+ 48: U,
1033
+ 50: q,
1034
+ 51: T,
1035
+ 52: t,
1036
+ 53: A,
1037
+ 54: S,
1038
+ 55: k,
1039
+ 56: F,
1040
+ 57: v,
1041
+ 58: P,
1042
+ 59: L,
1043
+ 60: C
1044
+ },
1045
+ {
1046
+ 22: 62,
1047
+ 45: 36,
1048
+ 47: N,
1049
+ 48: U,
1050
+ 50: q,
1051
+ 51: T,
1052
+ 52: t,
1053
+ 53: A,
1054
+ 54: S,
1055
+ 55: k,
1056
+ 56: F,
1057
+ 57: v,
1058
+ 58: P,
1059
+ 59: L,
1060
+ 60: C
1061
+ },
1062
+ {
1063
+ 22: 63,
1064
+ 45: 36,
1065
+ 47: N,
1066
+ 48: U,
1067
+ 50: q,
1068
+ 51: T,
1069
+ 52: t,
1070
+ 53: A,
1071
+ 54: S,
1072
+ 55: k,
1073
+ 56: F,
1074
+ 57: v,
1075
+ 58: P,
1076
+ 59: L,
1077
+ 60: C
1078
+ },
1079
+ {
1080
+ 5: X,
1081
+ 23: [
1082
+ 1,
1083
+ 64
1084
+ ],
1085
+ 45: 66,
1086
+ 46: 65,
1087
+ 50: q,
1088
+ 51: T,
1089
+ 52: t,
1090
+ 53: A,
1091
+ 54: S,
1092
+ 55: k,
1093
+ 56: F,
1094
+ 57: v,
1095
+ 58: P,
1096
+ 59: L,
1097
+ 60: C,
1098
+ 61: M
1099
+ },
1100
+ e(z, [
1101
+ 2,
1102
+ 39
1103
+ ]),
1104
+ e(z, [
1105
+ 2,
1106
+ 41
1107
+ ]),
1108
+ e(z, [
1109
+ 2,
1110
+ 42
1111
+ ]),
1112
+ e(z, [
1113
+ 2,
1114
+ 45
1115
+ ]),
1116
+ e(z, [
1117
+ 2,
1118
+ 46
1119
+ ]),
1120
+ e(z, [
1121
+ 2,
1122
+ 47
1123
+ ]),
1124
+ e(z, [
1125
+ 2,
1126
+ 48
1127
+ ]),
1128
+ e(z, [
1129
+ 2,
1130
+ 49
1131
+ ]),
1132
+ e(z, [
1133
+ 2,
1134
+ 50
1135
+ ]),
1136
+ e(z, [
1137
+ 2,
1138
+ 51
1139
+ ]),
1140
+ e(z, [
1141
+ 2,
1142
+ 52
1143
+ ]),
1144
+ e(z, [
1145
+ 2,
1146
+ 53
1147
+ ]),
1148
+ e(z, [
1149
+ 2,
1150
+ 54
1151
+ ]),
1152
+ e(z, [
1153
+ 2,
1154
+ 55
1155
+ ]),
1156
+ e(ht, [
1157
+ 2,
1158
+ 30
1159
+ ]),
1160
+ {
1161
+ 37: 69,
1162
+ 43: [
1163
+ 1,
1164
+ 70
1165
+ ]
1166
+ },
1167
+ e(ht, [
1168
+ 2,
1169
+ 38
1170
+ ]),
1171
+ e(p, [
1172
+ 2,
1173
+ 7
1174
+ ]),
1175
+ e(o, [
1176
+ 2,
1177
+ 9
1178
+ ]),
1179
+ e(o, [
1180
+ 2,
1181
+ 13
1182
+ ]),
1183
+ e(o, [
1184
+ 2,
1185
+ 14
1186
+ ]),
1187
+ e(o, [
1188
+ 2,
1189
+ 15
1190
+ ]),
1191
+ e(o, [
1192
+ 2,
1193
+ 22
1194
+ ], {
1195
+ 46: 65,
1196
+ 45: 66,
1197
+ 5: X,
1198
+ 27: [
1199
+ 1,
1200
+ 71
1201
+ ],
1202
+ 50: q,
1203
+ 51: T,
1204
+ 52: t,
1205
+ 53: A,
1206
+ 54: S,
1207
+ 55: k,
1208
+ 56: F,
1209
+ 57: v,
1210
+ 58: P,
1211
+ 59: L,
1212
+ 60: C,
1213
+ 61: M
1214
+ }),
1215
+ e(o, [
1216
+ 2,
1217
+ 25
1218
+ ], {
1219
+ 46: 65,
1220
+ 45: 66,
1221
+ 5: X,
1222
+ 27: [
1223
+ 1,
1224
+ 72
1225
+ ],
1226
+ 50: q,
1227
+ 51: T,
1228
+ 52: t,
1229
+ 53: A,
1230
+ 54: S,
1231
+ 55: k,
1232
+ 56: F,
1233
+ 57: v,
1234
+ 58: P,
1235
+ 59: L,
1236
+ 60: C,
1237
+ 61: M
1238
+ }),
1239
+ e(o, [
1240
+ 2,
1241
+ 26
1242
+ ], {
1243
+ 46: 65,
1244
+ 45: 66,
1245
+ 5: X,
1246
+ 50: q,
1247
+ 51: T,
1248
+ 52: t,
1249
+ 53: A,
1250
+ 54: S,
1251
+ 55: k,
1252
+ 56: F,
1253
+ 57: v,
1254
+ 58: P,
1255
+ 59: L,
1256
+ 60: C,
1257
+ 61: M
1258
+ }),
1259
+ e(o, [
1260
+ 2,
1261
+ 27
1262
+ ], {
1263
+ 46: 65,
1264
+ 45: 66,
1265
+ 5: X,
1266
+ 50: q,
1267
+ 51: T,
1268
+ 52: t,
1269
+ 53: A,
1270
+ 54: S,
1271
+ 55: k,
1272
+ 56: F,
1273
+ 57: v,
1274
+ 58: P,
1275
+ 59: L,
1276
+ 60: C,
1277
+ 61: M
1278
+ }),
1279
+ e(o, [
1280
+ 2,
1281
+ 28
1282
+ ], {
1283
+ 46: 65,
1284
+ 45: 66,
1285
+ 5: X,
1286
+ 50: q,
1287
+ 51: T,
1288
+ 52: t,
1289
+ 53: A,
1290
+ 54: S,
1291
+ 55: k,
1292
+ 56: F,
1293
+ 57: v,
1294
+ 58: P,
1295
+ 59: L,
1296
+ 60: C,
1297
+ 61: M
1298
+ }),
1299
+ e(o, [
1300
+ 2,
1301
+ 29
1302
+ ], {
1303
+ 46: 65,
1304
+ 45: 66,
1305
+ 5: X,
1306
+ 50: q,
1307
+ 51: T,
1308
+ 52: t,
1309
+ 53: A,
1310
+ 54: S,
1311
+ 55: k,
1312
+ 56: F,
1313
+ 57: v,
1314
+ 58: P,
1315
+ 59: L,
1316
+ 60: C,
1317
+ 61: M
1318
+ }),
1319
+ {
1320
+ 24: [
1321
+ 1,
1322
+ 73
1323
+ ]
1324
+ },
1325
+ e(z, [
1326
+ 2,
1327
+ 40
1328
+ ]),
1329
+ e(z, [
1330
+ 2,
1331
+ 56
1332
+ ]),
1333
+ e(z, [
1334
+ 2,
1335
+ 57
1336
+ ]),
1337
+ e(z, [
1338
+ 2,
1339
+ 58
1340
+ ]),
1341
+ {
1342
+ 35: 74,
1343
+ 44: mt
1344
+ },
1345
+ {
1346
+ 44: [
1347
+ 2,
1348
+ 37
1349
+ ]
1350
+ },
1351
+ e(o, [
1352
+ 2,
1353
+ 21
1354
+ ], {
1355
+ 45: 36,
1356
+ 22: 75,
1357
+ 47: N,
1358
+ 48: U,
1359
+ 50: q,
1360
+ 51: T,
1361
+ 52: t,
1362
+ 53: A,
1363
+ 54: S,
1364
+ 55: k,
1365
+ 56: F,
1366
+ 57: v,
1367
+ 58: P,
1368
+ 59: L,
1369
+ 60: C
1370
+ }),
1371
+ e(o, [
1372
+ 2,
1373
+ 24
1374
+ ], {
1375
+ 45: 36,
1376
+ 22: 76,
1377
+ 47: N,
1378
+ 48: U,
1379
+ 50: q,
1380
+ 51: T,
1381
+ 52: t,
1382
+ 53: A,
1383
+ 54: S,
1384
+ 55: k,
1385
+ 56: F,
1386
+ 57: v,
1387
+ 58: P,
1388
+ 59: L,
1389
+ 60: C
1390
+ }),
1391
+ {
1392
+ 25: [
1393
+ 1,
1394
+ 77
1395
+ ]
1396
+ },
1397
+ e(ht, [
1398
+ 2,
1399
+ 31
1400
+ ]),
1401
+ e(o, [
1402
+ 2,
1403
+ 20
1404
+ ], {
1405
+ 46: 65,
1406
+ 45: 66,
1407
+ 5: X,
1408
+ 50: q,
1409
+ 51: T,
1410
+ 52: t,
1411
+ 53: A,
1412
+ 54: S,
1413
+ 55: k,
1414
+ 56: F,
1415
+ 57: v,
1416
+ 58: P,
1417
+ 59: L,
1418
+ 60: C,
1419
+ 61: M
1420
+ }),
1421
+ e(o, [
1422
+ 2,
1423
+ 23
1424
+ ], {
1425
+ 46: 65,
1426
+ 45: 66,
1427
+ 5: X,
1428
+ 50: q,
1429
+ 51: T,
1430
+ 52: t,
1431
+ 53: A,
1432
+ 54: S,
1433
+ 55: k,
1434
+ 56: F,
1435
+ 57: v,
1436
+ 58: P,
1437
+ 59: L,
1438
+ 60: C,
1439
+ 61: M
1440
+ }),
1441
+ e(o, [
1442
+ 2,
1443
+ 19
1444
+ ])
1445
+ ],
1446
+ defaultActions: {
1447
+ 10: [
1448
+ 2,
1449
+ 35
1450
+ ],
1451
+ 11: [
1452
+ 2,
1453
+ 1
1454
+ ],
1455
+ 12: [
1456
+ 2,
1457
+ 2
1458
+ ],
1459
+ 13: [
1460
+ 2,
1461
+ 3
1462
+ ],
1463
+ 70: [
1464
+ 2,
1465
+ 37
1466
+ ]
1467
+ },
1468
+ parseError: function parseError(n, r) {
1469
+ if (r.recoverable) this.trace(n);
1470
+ else {
1471
+ var d = new Error(n);
1472
+ throw d.hash = r, d;
1473
+ }
1474
+ },
1475
+ parse: function parse(n) {
1476
+ var r = this, d = [
1477
+ 0
1478
+ ], l = [], y = [
1479
+ null
1480
+ ], i = [], it = this.table, x = "", rt = 0, _t = 0, vt = 2, bt = 1, Pt = i.slice.call(arguments, 1), E = Object.create(this.lexer), J = {
1481
+ yy: {}
1482
+ };
1483
+ for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy, xt) && (J.yy[xt] = this.yy[xt]);
1484
+ E.setInput(n, J.yy), J.yy.lexer = E, J.yy.parser = this, _type_of(E.yylloc) > "u" && (E.yylloc = {});
1485
+ var ft = E.yylloc;
1486
+ i.push(ft);
1487
+ var Lt = E.options && E.options.ranges;
1488
+ typeof J.yy.parseError == "function" ? this.parseError = J.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1489
+ function Ct() {
1490
+ var Y;
1491
+ return Y = l.pop() || E.lex() || bt, typeof Y != "number" && (_instanceof(Y, Array) && (l = Y, Y = l.pop()), Y = r.symbols_[Y] || Y), Y;
1492
+ }
1493
+ for(var W, $, Q, gt, tt = {}, st, O, At, ot;;){
1494
+ if ($ = d[d.length - 1], this.defaultActions[$] ? Q = this.defaultActions[$] : ((W === null || (typeof W === "undefined" ? "undefined" : _type_of(W)) > "u") && (W = Ct()), Q = it[$] && it[$][W]), (typeof Q === "undefined" ? "undefined" : _type_of(Q)) > "u" || !Q.length || !Q[0]) {
1495
+ var pt = "";
1496
+ ot = [];
1497
+ for(st in it[$])this.terminals_[st] && st > vt && ot.push("'" + this.terminals_[st] + "'");
1498
+ E.showPosition ? pt = "Parse error on line " + (rt + 1) + ":\n" + E.showPosition() + "\nExpecting " + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : pt = "Parse error on line " + (rt + 1) + ": Unexpected " + (W == bt ? "end of input" : "'" + (this.terminals_[W] || W) + "'"), this.parseError(pt, {
1499
+ text: E.match,
1500
+ token: this.terminals_[W] || W,
1501
+ line: E.yylineno,
1502
+ loc: ft,
1503
+ expected: ot
1504
+ });
1505
+ }
1506
+ if (_instanceof(Q[0], Array) && Q.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + W);
1507
+ switch(Q[0]){
1508
+ case 1:
1509
+ d.push(W), y.push(E.yytext), i.push(E.yylloc), d.push(Q[1]), W = null, _t = E.yyleng, x = E.yytext, rt = E.yylineno, ft = E.yylloc;
1510
+ break;
1511
+ case 2:
1512
+ if (O = this.productions_[Q[1]][1], tt.$ = y[y.length - O], tt._$ = {
1513
+ first_line: i[i.length - (O || 1)].first_line,
1514
+ last_line: i[i.length - 1].last_line,
1515
+ first_column: i[i.length - (O || 1)].first_column,
1516
+ last_column: i[i.length - 1].last_column
1517
+ }, Lt && (tt._$.range = [
1518
+ i[i.length - (O || 1)].range[0],
1519
+ i[i.length - 1].range[1]
1520
+ ]), gt = this.performAction.apply(tt, [
1521
+ x,
1522
+ _t,
1523
+ rt,
1524
+ J.yy,
1525
+ Q[1],
1526
+ y,
1527
+ i
1528
+ ].concat(Pt)), (typeof gt === "undefined" ? "undefined" : _type_of(gt)) < "u") return gt;
1529
+ O && (d = d.slice(0, -1 * O * 2), y = y.slice(0, -1 * O), i = i.slice(0, -1 * O)), d.push(this.productions_[Q[1]][0]), y.push(tt.$), i.push(tt._$), At = it[d[d.length - 2]][d[d.length - 1]], d.push(At);
1530
+ break;
1531
+ case 3:
1532
+ return !0;
1533
+ }
1534
+ }
1535
+ return !0;
1536
+ }
1537
+ }, Ft = function() {
1538
+ var K = {
1539
+ EOF: 1,
1540
+ parseError: function parseError(r, d) {
1541
+ if (this.yy.parser) this.yy.parser.parseError(r, d);
1542
+ else throw new Error(r);
1543
+ },
1544
+ // resets the lexer, sets new input
1545
+ setInput: function setInput(n, r) {
1546
+ return this.yy = r || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
1547
+ "INITIAL"
1548
+ ], this.yylloc = {
1549
+ first_line: 1,
1550
+ first_column: 0,
1551
+ last_line: 1,
1552
+ last_column: 0
1553
+ }, this.options.ranges && (this.yylloc.range = [
1554
+ 0,
1555
+ 0
1556
+ ]), this.offset = 0, this;
1557
+ },
1558
+ // consumes and returns one char from the input
1559
+ input: function input() {
1560
+ var n = this._input[0];
1561
+ this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
1562
+ var r = n.match(/(?:\r\n?|\n).*/g);
1563
+ return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
1564
+ },
1565
+ // unshifts one char (or a string) into the input
1566
+ unput: function unput(n) {
1567
+ var r = n.length, d = n.split(/(?:\r\n?|\n)/g);
1568
+ this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
1569
+ var l = this.match.split(/(?:\r\n?|\n)/g);
1570
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
1571
+ var y = this.yylloc.range;
1572
+ return this.yylloc = {
1573
+ first_line: this.yylloc.first_line,
1574
+ last_line: this.yylineno + 1,
1575
+ first_column: this.yylloc.first_column,
1576
+ last_column: d ? (d.length === l.length ? this.yylloc.first_column : 0) + l[l.length - d.length].length - d[0].length : this.yylloc.first_column - r
1577
+ }, this.options.ranges && (this.yylloc.range = [
1578
+ y[0],
1579
+ y[0] + this.yyleng - r
1580
+ ]), this.yyleng = this.yytext.length, this;
1581
+ },
1582
+ // When called from action, caches matched text and appends it on next action
1583
+ more: function more() {
1584
+ return this._more = !0, this;
1585
+ },
1586
+ // 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.
1587
+ reject: function reject() {
1588
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1589
+ 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(), {
1590
+ text: "",
1591
+ token: null,
1592
+ line: this.yylineno
1593
+ });
1594
+ return this;
1595
+ },
1596
+ // retain first n characters of the match
1597
+ less: function less(n) {
1598
+ this.unput(this.match.slice(n));
1599
+ },
1600
+ // displays already matched input, i.e. for error messages
1601
+ pastInput: function pastInput() {
1602
+ var n = this.matched.substr(0, this.matched.length - this.match.length);
1603
+ return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
1604
+ },
1605
+ // displays upcoming input, i.e. for error messages
1606
+ upcomingInput: function upcomingInput() {
1607
+ var n = this.match;
1608
+ return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
1609
+ },
1610
+ // displays the character position where the lexing error occurred, i.e. for error messages
1611
+ showPosition: function showPosition() {
1612
+ var n = this.pastInput(), r = new Array(n.length + 1).join("-");
1613
+ return n + this.upcomingInput() + "\n" + r + "^";
1614
+ },
1615
+ // test the lexed token: return FALSE when not a match, otherwise return token
1616
+ test_match: function test_match(n, r) {
1617
+ var d, l, y;
1618
+ if (this.options.backtrack_lexer && (y = {
1619
+ yylineno: this.yylineno,
1620
+ yylloc: {
1621
+ first_line: this.yylloc.first_line,
1622
+ last_line: this.last_line,
1623
+ first_column: this.yylloc.first_column,
1624
+ last_column: this.yylloc.last_column
1625
+ },
1626
+ yytext: this.yytext,
1627
+ match: this.match,
1628
+ matches: this.matches,
1629
+ matched: this.matched,
1630
+ yyleng: this.yyleng,
1631
+ offset: this.offset,
1632
+ _more: this._more,
1633
+ _input: this._input,
1634
+ yy: this.yy,
1635
+ conditionStack: this.conditionStack.slice(0),
1636
+ done: this.done
1637
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), l = n[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
1638
+ first_line: this.yylloc.last_line,
1639
+ last_line: this.yylineno + 1,
1640
+ first_column: this.yylloc.last_column,
1641
+ last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
1642
+ }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
1643
+ this.offset,
1644
+ this.offset += this.yyleng
1645
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], d = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d) return d;
1646
+ if (this._backtrack) {
1647
+ for(var i in y)this[i] = y[i];
1648
+ return !1;
1649
+ }
1650
+ return !1;
1651
+ },
1652
+ // return next match in input
1653
+ next: function next() {
1654
+ if (this.done) return this.EOF;
1655
+ this._input || (this.done = !0);
1656
+ var n, r, d, l;
1657
+ this._more || (this.yytext = "", this.match = "");
1658
+ for(var y = this._currentRules(), i = 0; i < y.length; i++)if (d = this._input.match(this.rules[y[i]]), d && (!r || d[0].length > r[0].length)) {
1659
+ if (r = d, l = i, this.options.backtrack_lexer) {
1660
+ if (n = this.test_match(d, y[i]), n !== !1) return n;
1661
+ if (this._backtrack) {
1662
+ r = !1;
1663
+ continue;
1664
+ } else return !1;
1665
+ } else if (!this.options.flex) break;
1666
+ }
1667
+ return r ? (n = this.test_match(r, y[l]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1668
+ text: "",
1669
+ token: null,
1670
+ line: this.yylineno
1671
+ });
1672
+ },
1673
+ // return next match that has a token
1674
+ lex: function lex() {
1675
+ var r = this.next();
1676
+ return r || this.lex();
1677
+ },
1678
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1679
+ begin: function begin(r) {
1680
+ this.conditionStack.push(r);
1681
+ },
1682
+ // pop the previously active lexer condition state off the condition stack
1683
+ popState: function popState() {
1684
+ var r = this.conditionStack.length - 1;
1685
+ return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1686
+ },
1687
+ // produce the lexer rule set which is active for the currently active lexer condition state
1688
+ _currentRules: function _currentRules() {
1689
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1690
+ },
1691
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1692
+ topState: function topState(r) {
1693
+ return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
1694
+ },
1695
+ // alias for begin(condition)
1696
+ pushState: function pushState(r) {
1697
+ this.begin(r);
1698
+ },
1699
+ // return the number of states currently on the stack
1700
+ stateStackSize: function stateStackSize() {
1701
+ return this.conditionStack.length;
1702
+ },
1703
+ options: {
1704
+ "case-insensitive": !0
1705
+ },
1706
+ performAction: function performAction(r, d, l, y) {
1707
+ switch(l){
1708
+ case 0:
1709
+ return this.begin("open_directive"), 41;
1710
+ case 1:
1711
+ return this.begin("type_directive"), 42;
1712
+ case 2:
1713
+ return this.popState(), this.begin("arg_directive"), 36;
1714
+ case 3:
1715
+ return this.popState(), this.popState(), 44;
1716
+ case 4:
1717
+ return 43;
1718
+ case 5:
1719
+ break;
1720
+ case 6:
1721
+ break;
1722
+ case 7:
1723
+ return 38;
1724
+ case 8:
1725
+ break;
1726
+ case 9:
1727
+ return this.begin("title"), 14;
1728
+ case 10:
1729
+ return this.popState(), "title_value";
1730
+ case 11:
1731
+ return this.begin("acc_title"), 16;
1732
+ case 12:
1733
+ return this.popState(), "acc_title_value";
1734
+ case 13:
1735
+ return this.begin("acc_descr"), 18;
1736
+ case 14:
1737
+ return this.popState(), "acc_descr_value";
1738
+ case 15:
1739
+ this.begin("acc_descr_multiline");
1740
+ break;
1741
+ case 16:
1742
+ this.popState();
1743
+ break;
1744
+ case 17:
1745
+ return "acc_descr_multiline_value";
1746
+ case 18:
1747
+ return 26;
1748
+ case 19:
1749
+ return 28;
1750
+ case 20:
1751
+ return 27;
1752
+ case 21:
1753
+ return 29;
1754
+ case 22:
1755
+ return 30;
1756
+ case 23:
1757
+ return 31;
1758
+ case 24:
1759
+ return 32;
1760
+ case 25:
1761
+ this.begin("md_string");
1762
+ break;
1763
+ case 26:
1764
+ return "MD_STR";
1765
+ case 27:
1766
+ this.popState();
1767
+ break;
1768
+ case 28:
1769
+ this.begin("string");
1770
+ break;
1771
+ case 29:
1772
+ this.popState();
1773
+ break;
1774
+ case 30:
1775
+ return "STR";
1776
+ case 31:
1777
+ return this.begin("point_start"), 23;
1778
+ case 32:
1779
+ return this.begin("point_x"), 24;
1780
+ case 33:
1781
+ this.popState();
1782
+ break;
1783
+ case 34:
1784
+ this.popState(), this.begin("point_y");
1785
+ break;
1786
+ case 35:
1787
+ return this.popState(), 25;
1788
+ case 36:
1789
+ return 7;
1790
+ case 37:
1791
+ return 53;
1792
+ case 38:
1793
+ return "COLON";
1794
+ case 39:
1795
+ return 55;
1796
+ case 40:
1797
+ return 54;
1798
+ case 41:
1799
+ return 56;
1800
+ case 42:
1801
+ return 56;
1802
+ case 43:
1803
+ return 57;
1804
+ case 44:
1805
+ return 59;
1806
+ case 45:
1807
+ return 60;
1808
+ case 46:
1809
+ return 58;
1810
+ case 47:
1811
+ return 51;
1812
+ case 48:
1813
+ return 61;
1814
+ case 49:
1815
+ return 52;
1816
+ case 50:
1817
+ return 5;
1818
+ case 51:
1819
+ return 39;
1820
+ case 52:
1821
+ return 50;
1822
+ case 53:
1823
+ return 40;
1824
+ }
1825
+ },
1826
+ rules: [
1827
+ /^(?:%%\{)/i,
1828
+ /^(?:((?:(?!\}%%)[^:.])*))/i,
1829
+ /^(?::)/i,
1830
+ /^(?:\}%%)/i,
1831
+ /^(?:((?:(?!\}%%).|\n)*))/i,
1832
+ /^(?:%%(?!\{)[^\n]*)/i,
1833
+ /^(?:[^\}]%%[^\n]*)/i,
1834
+ /^(?:[\n\r]+)/i,
1835
+ /^(?:%%[^\n]*)/i,
1836
+ /^(?:title\b)/i,
1837
+ /^(?:(?!\n||)*[^\n]*)/i,
1838
+ /^(?:accTitle\s*:\s*)/i,
1839
+ /^(?:(?!\n||)*[^\n]*)/i,
1840
+ /^(?:accDescr\s*:\s*)/i,
1841
+ /^(?:(?!\n||)*[^\n]*)/i,
1842
+ /^(?:accDescr\s*\{\s*)/i,
1843
+ /^(?:[\}])/i,
1844
+ /^(?:[^\}]*)/i,
1845
+ /^(?: *x-axis *)/i,
1846
+ /^(?: *y-axis *)/i,
1847
+ /^(?: *--+> *)/i,
1848
+ /^(?: *quadrant-1 *)/i,
1849
+ /^(?: *quadrant-2 *)/i,
1850
+ /^(?: *quadrant-3 *)/i,
1851
+ /^(?: *quadrant-4 *)/i,
1852
+ /^(?:["][`])/i,
1853
+ /^(?:[^`"]+)/i,
1854
+ /^(?:[`]["])/i,
1855
+ /^(?:["])/i,
1856
+ /^(?:["])/i,
1857
+ /^(?:[^"]*)/i,
1858
+ /^(?:\s*:\s*\[\s*)/i,
1859
+ /^(?:(1)|(0(.\d+)?))/i,
1860
+ /^(?:\s*\] *)/i,
1861
+ /^(?:\s*,\s*)/i,
1862
+ /^(?:(1)|(0(.\d+)?))/i,
1863
+ /^(?: *quadrantChart *)/i,
1864
+ /^(?:[A-Za-z]+)/i,
1865
+ /^(?::)/i,
1866
+ /^(?:\+)/i,
1867
+ /^(?:,)/i,
1868
+ /^(?:=)/i,
1869
+ /^(?:=)/i,
1870
+ /^(?:\*)/i,
1871
+ /^(?:#)/i,
1872
+ /^(?:[\_])/i,
1873
+ /^(?:\.)/i,
1874
+ /^(?:&)/i,
1875
+ /^(?:-)/i,
1876
+ /^(?:[0-9]+)/i,
1877
+ /^(?:\s)/i,
1878
+ /^(?:;)/i,
1879
+ /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1880
+ /^(?:$)/i
1881
+ ],
1882
+ conditions: {
1883
+ point_y: {
1884
+ rules: [
1885
+ 35
1886
+ ],
1887
+ inclusive: !1
1888
+ },
1889
+ point_x: {
1890
+ rules: [
1891
+ 34
1892
+ ],
1893
+ inclusive: !1
1894
+ },
1895
+ point_start: {
1896
+ rules: [
1897
+ 32,
1898
+ 33
1899
+ ],
1900
+ inclusive: !1
1901
+ },
1902
+ acc_descr_multiline: {
1903
+ rules: [
1904
+ 16,
1905
+ 17
1906
+ ],
1907
+ inclusive: !1
1908
+ },
1909
+ acc_descr: {
1910
+ rules: [
1911
+ 14
1912
+ ],
1913
+ inclusive: !1
1914
+ },
1915
+ acc_title: {
1916
+ rules: [
1917
+ 12
1918
+ ],
1919
+ inclusive: !1
1920
+ },
1921
+ close_directive: {
1922
+ rules: [],
1923
+ inclusive: !1
1924
+ },
1925
+ arg_directive: {
1926
+ rules: [
1927
+ 3,
1928
+ 4
1929
+ ],
1930
+ inclusive: !1
1931
+ },
1932
+ type_directive: {
1933
+ rules: [
1934
+ 2,
1935
+ 3
1936
+ ],
1937
+ inclusive: !1
1938
+ },
1939
+ open_directive: {
1940
+ rules: [
1941
+ 1
1942
+ ],
1943
+ inclusive: !1
1944
+ },
1945
+ title: {
1946
+ rules: [
1947
+ 10
1948
+ ],
1949
+ inclusive: !1
1950
+ },
1951
+ md_string: {
1952
+ rules: [
1953
+ 26,
1954
+ 27
1955
+ ],
1956
+ inclusive: !1
1957
+ },
1958
+ string: {
1959
+ rules: [
1960
+ 29,
1961
+ 30
1962
+ ],
1963
+ inclusive: !1
1964
+ },
1965
+ INITIAL: {
1966
+ rules: [
1967
+ 0,
1968
+ 5,
1969
+ 6,
1970
+ 7,
1971
+ 8,
1972
+ 9,
1973
+ 11,
1974
+ 13,
1975
+ 15,
1976
+ 18,
1977
+ 19,
1978
+ 20,
1979
+ 21,
1980
+ 22,
1981
+ 23,
1982
+ 24,
1983
+ 25,
1984
+ 28,
1985
+ 31,
1986
+ 36,
1987
+ 37,
1988
+ 38,
1989
+ 39,
1990
+ 40,
1991
+ 41,
1992
+ 42,
1993
+ 43,
1994
+ 44,
1995
+ 45,
1996
+ 46,
1997
+ 47,
1998
+ 48,
1999
+ 49,
2000
+ 50,
2001
+ 51,
2002
+ 52,
2003
+ 53
2004
+ ],
2005
+ inclusive: !0
2006
+ }
2007
+ }
2008
+ };
2009
+ return K;
2010
+ }();
2011
+ dt.lexer = Ft;
2012
+ function ut() {
2013
+ this.yy = {};
2014
+ }
2015
+ return ut.prototype = dt, dt.Parser = ut, new ut();
2016
+ }();
2017
+ qt.parser = qt;
2018
+ var Ut = qt, R = zd();
2019
+ var Qt = /*#__PURE__*/ function() {
2020
+ function Qt() {
2021
+ _class_call_check(this, Qt);
2022
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
2023
+ }
2024
+ _create_class(Qt, [
2025
+ {
2026
+ key: "getDefaultData",
2027
+ value: function getDefaultData() {
2028
+ return {
2029
+ titleText: "",
2030
+ quadrant1Text: "",
2031
+ quadrant2Text: "",
2032
+ quadrant3Text: "",
2033
+ quadrant4Text: "",
2034
+ xAxisLeftText: "",
2035
+ xAxisRightText: "",
2036
+ yAxisBottomText: "",
2037
+ yAxisTopText: "",
2038
+ points: []
2039
+ };
2040
+ }
2041
+ },
2042
+ {
2043
+ key: "getDefaultConfig",
2044
+ value: function getDefaultConfig() {
2045
+ var a, h, f, g, u, c, p, s, o, m, B, V, _, D, b, H, G, Z;
2046
+ return {
2047
+ showXAxis: !0,
2048
+ showYAxis: !0,
2049
+ showTitle: !0,
2050
+ chartHeight: ((a = Gd.quadrantChart) == null ? void 0 : a.chartWidth) || 500,
2051
+ chartWidth: ((h = Gd.quadrantChart) == null ? void 0 : h.chartHeight) || 500,
2052
+ titlePadding: ((f = Gd.quadrantChart) == null ? void 0 : f.titlePadding) || 10,
2053
+ titleFontSize: ((g = Gd.quadrantChart) == null ? void 0 : g.titleFontSize) || 20,
2054
+ quadrantPadding: ((u = Gd.quadrantChart) == null ? void 0 : u.quadrantPadding) || 5,
2055
+ xAxisLabelPadding: ((c = Gd.quadrantChart) == null ? void 0 : c.xAxisLabelPadding) || 5,
2056
+ yAxisLabelPadding: ((p = Gd.quadrantChart) == null ? void 0 : p.yAxisLabelPadding) || 5,
2057
+ xAxisLabelFontSize: ((s = Gd.quadrantChart) == null ? void 0 : s.xAxisLabelFontSize) || 16,
2058
+ yAxisLabelFontSize: ((o = Gd.quadrantChart) == null ? void 0 : o.yAxisLabelFontSize) || 16,
2059
+ quadrantLabelFontSize: ((m = Gd.quadrantChart) == null ? void 0 : m.quadrantLabelFontSize) || 16,
2060
+ quadrantTextTopPadding: ((B = Gd.quadrantChart) == null ? void 0 : B.quadrantTextTopPadding) || 5,
2061
+ pointTextPadding: ((V = Gd.quadrantChart) == null ? void 0 : V.pointTextPadding) || 5,
2062
+ pointLabelFontSize: ((_ = Gd.quadrantChart) == null ? void 0 : _.pointLabelFontSize) || 12,
2063
+ pointRadius: ((D = Gd.quadrantChart) == null ? void 0 : D.pointRadius) || 5,
2064
+ xAxisPosition: ((b = Gd.quadrantChart) == null ? void 0 : b.xAxisPosition) || "top",
2065
+ yAxisPosition: ((H = Gd.quadrantChart) == null ? void 0 : H.yAxisPosition) || "left",
2066
+ quadrantInternalBorderStrokeWidth: ((G = Gd.quadrantChart) == null ? void 0 : G.quadrantInternalBorderStrokeWidth) || 1,
2067
+ quadrantExternalBorderStrokeWidth: ((Z = Gd.quadrantChart) == null ? void 0 : Z.quadrantExternalBorderStrokeWidth) || 2
2068
+ };
2069
+ }
2070
+ },
2071
+ {
2072
+ key: "getDefaultThemeConfig",
2073
+ value: function getDefaultThemeConfig() {
2074
+ return {
2075
+ quadrant1Fill: R.quadrant1Fill,
2076
+ quadrant2Fill: R.quadrant2Fill,
2077
+ quadrant3Fill: R.quadrant3Fill,
2078
+ quadrant4Fill: R.quadrant4Fill,
2079
+ quadrant1TextFill: R.quadrant1TextFill,
2080
+ quadrant2TextFill: R.quadrant2TextFill,
2081
+ quadrant3TextFill: R.quadrant3TextFill,
2082
+ quadrant4TextFill: R.quadrant4TextFill,
2083
+ quadrantPointFill: R.quadrantPointFill,
2084
+ quadrantPointTextFill: R.quadrantPointTextFill,
2085
+ quadrantXAxisTextFill: R.quadrantXAxisTextFill,
2086
+ quadrantYAxisTextFill: R.quadrantYAxisTextFill,
2087
+ quadrantTitleFill: R.quadrantTitleFill,
2088
+ quadrantInternalBorderStrokeFill: R.quadrantInternalBorderStrokeFill,
2089
+ quadrantExternalBorderStrokeFill: R.quadrantExternalBorderStrokeFill
2090
+ };
2091
+ }
2092
+ },
2093
+ {
2094
+ key: "clear",
2095
+ value: function clear() {
2096
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), S.info("clear called");
2097
+ }
2098
+ },
2099
+ {
2100
+ key: "setData",
2101
+ value: function setData(a) {
2102
+ this.data = _object_spread({}, this.data, a);
2103
+ }
2104
+ },
2105
+ {
2106
+ key: "addPoints",
2107
+ value: function addPoints(a) {
2108
+ this.data.points = _to_consumable_array(a).concat(_to_consumable_array(this.data.points));
2109
+ }
2110
+ },
2111
+ {
2112
+ key: "setConfig",
2113
+ value: function setConfig(a) {
2114
+ S.trace("setConfig called with: ", a), this.config = _object_spread({}, this.config, a);
2115
+ }
2116
+ },
2117
+ {
2118
+ key: "setThemeConfig",
2119
+ value: function setThemeConfig(a) {
2120
+ S.trace("setThemeConfig called with: ", a), this.themeConfig = _object_spread({}, this.themeConfig, a);
2121
+ }
2122
+ },
2123
+ {
2124
+ key: "calculateSpace",
2125
+ value: function calculateSpace(a, h, f, g) {
2126
+ var u = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, c = {
2127
+ top: a === "top" && h ? u : 0,
2128
+ bottom: a === "bottom" && h ? u : 0
2129
+ }, p = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, s = {
2130
+ left: this.config.yAxisPosition === "left" && f ? p : 0,
2131
+ right: this.config.yAxisPosition === "right" && f ? p : 0
2132
+ }, o = this.config.titleFontSize + this.config.titlePadding * 2, m = {
2133
+ top: g ? o : 0
2134
+ }, B = this.config.quadrantPadding + s.left, V = this.config.quadrantPadding + c.top + m.top, _ = this.config.chartWidth - this.config.quadrantPadding * 2 - s.left - s.right, D = this.config.chartHeight - this.config.quadrantPadding * 2 - c.top - c.bottom - m.top, b = _ / 2, H = D / 2;
2135
+ return {
2136
+ xAxisSpace: c,
2137
+ yAxisSpace: s,
2138
+ titleSpace: m,
2139
+ quadrantSpace: {
2140
+ quadrantLeft: B,
2141
+ quadrantTop: V,
2142
+ quadrantWidth: _,
2143
+ quadrantHalfWidth: b,
2144
+ quadrantHeight: D,
2145
+ quadrantHalfHeight: H
2146
+ }
2147
+ };
2148
+ }
2149
+ },
2150
+ {
2151
+ key: "getAxisLabels",
2152
+ value: function getAxisLabels(a, h, f, g) {
2153
+ var u = g.quadrantSpace, c = g.titleSpace, p = u.quadrantHalfHeight, s = u.quadrantHeight, o = u.quadrantLeft, m = u.quadrantHalfWidth, B = u.quadrantTop, V = u.quadrantWidth, _ = this.data.points.length === 0, D = [];
2154
+ return this.data.xAxisLeftText && h && D.push({
2155
+ text: this.data.xAxisLeftText,
2156
+ fill: this.themeConfig.quadrantXAxisTextFill,
2157
+ x: o + (_ ? m / 2 : 0),
2158
+ y: a === "top" ? this.config.xAxisLabelPadding + c.top : this.config.xAxisLabelPadding + B + s + this.config.quadrantPadding,
2159
+ fontSize: this.config.xAxisLabelFontSize,
2160
+ verticalPos: _ ? "center" : "left",
2161
+ horizontalPos: "top",
2162
+ rotation: 0
2163
+ }), this.data.xAxisRightText && h && D.push({
2164
+ text: this.data.xAxisRightText,
2165
+ fill: this.themeConfig.quadrantXAxisTextFill,
2166
+ x: o + m + (_ ? m / 2 : 0),
2167
+ y: a === "top" ? this.config.xAxisLabelPadding + c.top : this.config.xAxisLabelPadding + B + s + this.config.quadrantPadding,
2168
+ fontSize: this.config.xAxisLabelFontSize,
2169
+ verticalPos: _ ? "center" : "left",
2170
+ horizontalPos: "top",
2171
+ rotation: 0
2172
+ }), this.data.yAxisBottomText && f && D.push({
2173
+ text: this.data.yAxisBottomText,
2174
+ fill: this.themeConfig.quadrantYAxisTextFill,
2175
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + o + V + this.config.quadrantPadding,
2176
+ y: B + s - (_ ? p / 2 : 0),
2177
+ fontSize: this.config.yAxisLabelFontSize,
2178
+ verticalPos: _ ? "center" : "left",
2179
+ horizontalPos: "top",
2180
+ rotation: -90
2181
+ }), this.data.yAxisTopText && f && D.push({
2182
+ text: this.data.yAxisTopText,
2183
+ fill: this.themeConfig.quadrantYAxisTextFill,
2184
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + o + V + this.config.quadrantPadding,
2185
+ y: B + p - (_ ? p / 2 : 0),
2186
+ fontSize: this.config.yAxisLabelFontSize,
2187
+ verticalPos: _ ? "center" : "left",
2188
+ horizontalPos: "top",
2189
+ rotation: -90
2190
+ }), D;
2191
+ }
2192
+ },
2193
+ {
2194
+ key: "getQuadrants",
2195
+ value: function getQuadrants(a) {
2196
+ var h = a.quadrantSpace, f = h.quadrantHalfHeight, g = h.quadrantLeft, u = h.quadrantHalfWidth, c = h.quadrantTop, p = [
2197
+ {
2198
+ text: {
2199
+ text: this.data.quadrant1Text,
2200
+ fill: this.themeConfig.quadrant1TextFill,
2201
+ x: 0,
2202
+ y: 0,
2203
+ fontSize: this.config.quadrantLabelFontSize,
2204
+ verticalPos: "center",
2205
+ horizontalPos: "middle",
2206
+ rotation: 0
2207
+ },
2208
+ x: g + u,
2209
+ y: c,
2210
+ width: u,
2211
+ height: f,
2212
+ fill: this.themeConfig.quadrant1Fill
2213
+ },
2214
+ {
2215
+ text: {
2216
+ text: this.data.quadrant2Text,
2217
+ fill: this.themeConfig.quadrant2TextFill,
2218
+ x: 0,
2219
+ y: 0,
2220
+ fontSize: this.config.quadrantLabelFontSize,
2221
+ verticalPos: "center",
2222
+ horizontalPos: "middle",
2223
+ rotation: 0
2224
+ },
2225
+ x: g,
2226
+ y: c,
2227
+ width: u,
2228
+ height: f,
2229
+ fill: this.themeConfig.quadrant2Fill
2230
+ },
2231
+ {
2232
+ text: {
2233
+ text: this.data.quadrant3Text,
2234
+ fill: this.themeConfig.quadrant3TextFill,
2235
+ x: 0,
2236
+ y: 0,
2237
+ fontSize: this.config.quadrantLabelFontSize,
2238
+ verticalPos: "center",
2239
+ horizontalPos: "middle",
2240
+ rotation: 0
2241
+ },
2242
+ x: g,
2243
+ y: c + f,
2244
+ width: u,
2245
+ height: f,
2246
+ fill: this.themeConfig.quadrant3Fill
2247
+ },
2248
+ {
2249
+ text: {
2250
+ text: this.data.quadrant4Text,
2251
+ fill: this.themeConfig.quadrant4TextFill,
2252
+ x: 0,
2253
+ y: 0,
2254
+ fontSize: this.config.quadrantLabelFontSize,
2255
+ verticalPos: "center",
2256
+ horizontalPos: "middle",
2257
+ rotation: 0
2258
+ },
2259
+ x: g + u,
2260
+ y: c + f,
2261
+ width: u,
2262
+ height: f,
2263
+ fill: this.themeConfig.quadrant4Fill
2264
+ }
2265
+ ];
2266
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2267
+ try {
2268
+ for(var _iterator = p[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2269
+ var s = _step.value;
2270
+ s.text.x = s.x + s.width / 2, this.data.points.length === 0 ? (s.text.y = s.y + s.height / 2, s.text.horizontalPos = "middle") : (s.text.y = s.y + this.config.quadrantTextTopPadding, s.text.horizontalPos = "top");
2271
+ }
2272
+ } catch (err) {
2273
+ _didIteratorError = true;
2274
+ _iteratorError = err;
2275
+ } finally{
2276
+ try {
2277
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2278
+ _iterator.return();
2279
+ }
2280
+ } finally{
2281
+ if (_didIteratorError) {
2282
+ throw _iteratorError;
2283
+ }
2284
+ }
2285
+ }
2286
+ return p;
2287
+ }
2288
+ },
2289
+ {
2290
+ key: "getQuadrantPoints",
2291
+ value: function getQuadrantPoints(a) {
2292
+ var _this = this;
2293
+ var h = a.quadrantSpace, f = h.quadrantHeight, g = h.quadrantLeft, u = h.quadrantTop, c = h.quadrantWidth, p = Yn().domain([
2294
+ 0,
2295
+ 1
2296
+ ]).range([
2297
+ g,
2298
+ c + g
2299
+ ]), s = Yn().domain([
2300
+ 0,
2301
+ 1
2302
+ ]).range([
2303
+ f + u,
2304
+ u
2305
+ ]);
2306
+ return this.data.points.map(function(m) {
2307
+ return {
2308
+ x: p(m.x),
2309
+ y: s(m.y),
2310
+ fill: _this.themeConfig.quadrantPointFill,
2311
+ radius: _this.config.pointRadius,
2312
+ text: {
2313
+ text: m.text,
2314
+ fill: _this.themeConfig.quadrantPointTextFill,
2315
+ x: p(m.x),
2316
+ y: s(m.y) + _this.config.pointTextPadding,
2317
+ verticalPos: "center",
2318
+ horizontalPos: "top",
2319
+ fontSize: _this.config.pointLabelFontSize,
2320
+ rotation: 0
2321
+ }
2322
+ };
2323
+ });
2324
+ }
2325
+ },
2326
+ {
2327
+ key: "getBorders",
2328
+ value: function getBorders(a) {
2329
+ var h = this.config.quadrantExternalBorderStrokeWidth / 2, f = a.quadrantSpace, g = f.quadrantHalfHeight, u = f.quadrantHeight, c = f.quadrantLeft, p = f.quadrantHalfWidth, s = f.quadrantTop, o = f.quadrantWidth;
2330
+ return [
2331
+ // top border
2332
+ {
2333
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2334
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2335
+ x1: c - h,
2336
+ y1: s,
2337
+ x2: c + o + h,
2338
+ y2: s
2339
+ },
2340
+ // right border
2341
+ {
2342
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2343
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2344
+ x1: c + o,
2345
+ y1: s + h,
2346
+ x2: c + o,
2347
+ y2: s + u - h
2348
+ },
2349
+ // bottom border
2350
+ {
2351
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2352
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2353
+ x1: c - h,
2354
+ y1: s + u,
2355
+ x2: c + o + h,
2356
+ y2: s + u
2357
+ },
2358
+ // left border
2359
+ {
2360
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2361
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2362
+ x1: c,
2363
+ y1: s + h,
2364
+ x2: c,
2365
+ y2: s + u - h
2366
+ },
2367
+ // vertical inner border
2368
+ {
2369
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
2370
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
2371
+ x1: c + p,
2372
+ y1: s + h,
2373
+ x2: c + p,
2374
+ y2: s + u - h
2375
+ },
2376
+ // horizontal inner border
2377
+ {
2378
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
2379
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
2380
+ x1: c + h,
2381
+ y1: s + g,
2382
+ x2: c + o - h,
2383
+ y2: s + g
2384
+ }
2385
+ ];
2386
+ }
2387
+ },
2388
+ {
2389
+ key: "getTitle",
2390
+ value: function getTitle(a) {
2391
+ if (a) return {
2392
+ text: this.data.titleText,
2393
+ fill: this.themeConfig.quadrantTitleFill,
2394
+ fontSize: this.config.titleFontSize,
2395
+ horizontalPos: "top",
2396
+ verticalPos: "center",
2397
+ rotation: 0,
2398
+ y: this.config.titlePadding,
2399
+ x: this.config.chartWidth / 2
2400
+ };
2401
+ }
2402
+ },
2403
+ {
2404
+ key: "build",
2405
+ value: function build() {
2406
+ var a = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), h = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), f = this.config.showTitle && !!this.data.titleText, g = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, u = this.calculateSpace(g, a, h, f);
2407
+ return {
2408
+ points: this.getQuadrantPoints(u),
2409
+ quadrants: this.getQuadrants(u),
2410
+ axisLabels: this.getAxisLabels(g, a, h, u),
2411
+ borderLines: this.getBorders(u),
2412
+ title: this.getTitle(f)
2413
+ };
2414
+ }
2415
+ }
2416
+ ]);
2417
+ return Qt;
2418
+ }();
2419
+ var Ht = Ut$1();
2420
+ function j(e) {
2421
+ return Je(e.trim(), Ht);
2422
+ }
2423
+ var w = new Qt();
2424
+ function Xt(e) {
2425
+ w.setData({
2426
+ quadrant1Text: j(e.text)
2427
+ });
2428
+ }
2429
+ function Mt(e) {
2430
+ w.setData({
2431
+ quadrant2Text: j(e.text)
2432
+ });
2433
+ }
2434
+ function Ot(e) {
2435
+ w.setData({
2436
+ quadrant3Text: j(e.text)
2437
+ });
2438
+ }
2439
+ function Yt(e) {
2440
+ w.setData({
2441
+ quadrant4Text: j(e.text)
2442
+ });
2443
+ }
2444
+ function jt(e) {
2445
+ w.setData({
2446
+ xAxisLeftText: j(e.text)
2447
+ });
2448
+ }
2449
+ function Gt(e) {
2450
+ w.setData({
2451
+ xAxisRightText: j(e.text)
2452
+ });
2453
+ }
2454
+ function Kt(e) {
2455
+ w.setData({
2456
+ yAxisTopText: j(e.text)
2457
+ });
2458
+ }
2459
+ function Zt(e) {
2460
+ w.setData({
2461
+ yAxisBottomText: j(e.text)
2462
+ });
2463
+ }
2464
+ function Jt(e, a, h) {
2465
+ w.addPoints([
2466
+ {
2467
+ x: a,
2468
+ y: h,
2469
+ text: j(e.text)
2470
+ }
2471
+ ]);
2472
+ }
2473
+ function $t(e) {
2474
+ w.setConfig({
2475
+ chartWidth: e
2476
+ });
2477
+ }
2478
+ function te(e) {
2479
+ w.setConfig({
2480
+ chartHeight: e
2481
+ });
2482
+ }
2483
+ function ee() {
2484
+ var e = Ut$1(), a = e.themeVariables, h = e.quadrantChart;
2485
+ return h && w.setConfig(h), w.setThemeConfig({
2486
+ quadrant1Fill: a.quadrant1Fill,
2487
+ quadrant2Fill: a.quadrant2Fill,
2488
+ quadrant3Fill: a.quadrant3Fill,
2489
+ quadrant4Fill: a.quadrant4Fill,
2490
+ quadrant1TextFill: a.quadrant1TextFill,
2491
+ quadrant2TextFill: a.quadrant2TextFill,
2492
+ quadrant3TextFill: a.quadrant3TextFill,
2493
+ quadrant4TextFill: a.quadrant4TextFill,
2494
+ quadrantPointFill: a.quadrantPointFill,
2495
+ quadrantPointTextFill: a.quadrantPointTextFill,
2496
+ quadrantXAxisTextFill: a.quadrantXAxisTextFill,
2497
+ quadrantYAxisTextFill: a.quadrantYAxisTextFill,
2498
+ quadrantExternalBorderStrokeFill: a.quadrantExternalBorderStrokeFill,
2499
+ quadrantInternalBorderStrokeFill: a.quadrantInternalBorderStrokeFill,
2500
+ quadrantTitleFill: a.quadrantTitleFill
2501
+ }), w.setData({
2502
+ titleText: Ia()
2503
+ }), w.build();
2504
+ }
2505
+ var ie = function ie(e, a, h) {
2506
+ de.parseDirective(this, e, a, h);
2507
+ }, ae = function ae() {
2508
+ w.clear(), Fa();
2509
+ }, ne = {
2510
+ setWidth: $t,
2511
+ setHeight: te,
2512
+ setQuadrant1Text: Xt,
2513
+ setQuadrant2Text: Mt,
2514
+ setQuadrant3Text: Ot,
2515
+ setQuadrant4Text: Yt,
2516
+ setXAxisLeftText: jt,
2517
+ setXAxisRightText: Gt,
2518
+ setYAxisTopText: Kt,
2519
+ setYAxisBottomText: Zt,
2520
+ addPoint: Jt,
2521
+ getQuadrantData: ee,
2522
+ parseDirective: ie,
2523
+ clear: ae,
2524
+ setAccTitle: La,
2525
+ getAccTitle: Aa,
2526
+ setDiagramTitle: Oa,
2527
+ getDiagramTitle: Ia,
2528
+ getAccDescription: Ma,
2529
+ setAccDescription: Ea
2530
+ }, re = function(e, a, h, f) {
2531
+ var g = function g(t) {
2532
+ return t === "top" ? "hanging" : "middle";
2533
+ };
2534
+ var u = function u(t) {
2535
+ return t === "left" ? "start" : "middle";
2536
+ };
2537
+ var c = function c(t) {
2538
+ return "translate(".concat(t.x, ", ").concat(t.y, ") rotate(").concat(t.rotation || 0, ")");
2539
+ };
2540
+ var U, q, T;
2541
+ var p = Ut$1();
2542
+ S.debug("Rendering quadrant chart\n" + e);
2543
+ var s = p.securityLevel;
2544
+ var o;
2545
+ s === "sandbox" && (o = At("#i" + a));
2546
+ var B = (s === "sandbox" ? At(o.nodes()[0].contentDocument.body) : At("body")).select('[id="'.concat(a, '"]')), V = B.append("g").attr("class", "main"), _ = ((U = p.quadrantChart) == null ? void 0 : U.chartWidth) || 500, D = ((q = p.quadrantChart) == null ? void 0 : q.chartHeight) || 500;
2547
+ Yg(B, D, _, ((T = p.quadrantChart) == null ? void 0 : T.useMaxWidth) || !0), B.attr("viewBox", "0 0 " + _ + " " + D), f.db.setHeight(D), f.db.setWidth(_);
2548
+ var b = f.db.getQuadrantData(), H = V.append("g").attr("class", "quadrants"), G = V.append("g").attr("class", "border"), Z = V.append("g").attr("class", "data-points"), at = V.append("g").attr("class", "labels"), nt = V.append("g").attr("class", "title");
2549
+ b.title && nt.append("text").attr("x", 0).attr("y", 0).attr("fill", b.title.fill).attr("font-size", b.title.fontSize).attr("dominant-baseline", g(b.title.horizontalPos)).attr("text-anchor", u(b.title.verticalPos)).attr("transform", c(b.title)).text(b.title.text), b.borderLines && G.selectAll("line").data(b.borderLines).enter().append("line").attr("x1", function(t) {
2550
+ return t.x1;
2551
+ }).attr("y1", function(t) {
2552
+ return t.y1;
2553
+ }).attr("x2", function(t) {
2554
+ return t.x2;
2555
+ }).attr("y2", function(t) {
2556
+ return t.y2;
2557
+ }).style("stroke", function(t) {
2558
+ return t.strokeFill;
2559
+ }).style("stroke-width", function(t) {
2560
+ return t.strokeWidth;
2561
+ });
2562
+ var et = H.selectAll("g.quadrant").data(b.quadrants).enter().append("g").attr("class", "quadrant");
2563
+ et.append("rect").attr("x", function(t) {
2564
+ return t.x;
2565
+ }).attr("y", function(t) {
2566
+ return t.y;
2567
+ }).attr("width", function(t) {
2568
+ return t.width;
2569
+ }).attr("height", function(t) {
2570
+ return t.height;
2571
+ }).attr("fill", function(t) {
2572
+ return t.fill;
2573
+ }), et.append("text").attr("x", 0).attr("y", 0).attr("fill", function(t) {
2574
+ return t.text.fill;
2575
+ }).attr("font-size", function(t) {
2576
+ return t.text.fontSize;
2577
+ }).attr("dominant-baseline", function(t) {
2578
+ return g(t.text.horizontalPos);
2579
+ }).attr("text-anchor", function(t) {
2580
+ return u(t.text.verticalPos);
2581
+ }).attr("transform", function(t) {
2582
+ return c(t.text);
2583
+ }).text(function(t) {
2584
+ return t.text.text;
2585
+ }), at.selectAll("g.label").data(b.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text(function(t) {
2586
+ return t.text;
2587
+ }).attr("fill", function(t) {
2588
+ return t.fill;
2589
+ }).attr("font-size", function(t) {
2590
+ return t.fontSize;
2591
+ }).attr("dominant-baseline", function(t) {
2592
+ return g(t.horizontalPos);
2593
+ }).attr("text-anchor", function(t) {
2594
+ return u(t.verticalPos);
2595
+ }).attr("transform", function(t) {
2596
+ return c(t);
2597
+ });
2598
+ var N = Z.selectAll("g.data-point").data(b.points).enter().append("g").attr("class", "data-point");
2599
+ N.append("circle").attr("cx", function(t) {
2600
+ return t.x;
2601
+ }).attr("cy", function(t) {
2602
+ return t.y;
2603
+ }).attr("r", function(t) {
2604
+ return t.radius;
2605
+ }).attr("fill", function(t) {
2606
+ return t.fill;
2607
+ }), N.append("text").attr("x", 0).attr("y", 0).text(function(t) {
2608
+ return t.text.text;
2609
+ }).attr("fill", function(t) {
2610
+ return t.text.fill;
2611
+ }).attr("font-size", function(t) {
2612
+ return t.text.fontSize;
2613
+ }).attr("dominant-baseline", function(t) {
2614
+ return g(t.text.horizontalPos);
2615
+ }).attr("text-anchor", function(t) {
2616
+ return u(t.text.verticalPos);
2617
+ }).attr("transform", function(t) {
2618
+ return c(t.text);
2619
+ });
2620
+ }, se = {
2621
+ draw: re
2622
+ }, he = {
2623
+ parser: Ut,
2624
+ db: ne,
2625
+ renderer: se,
2626
+ styles: function() {
2627
+ return "";
2628
+ }
2629
+ };
2630
+
2631
+ export { he as diagram };