@uxland/primary-shell 7.37.2 → 7.38.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.
- package/dist/{component-dvdLH6KG.js → component-BnGIF_Io.js} +2 -2
- package/dist/{component-dvdLH6KG.js.map → component-BnGIF_Io.js.map} +1 -1
- package/dist/{index-CXxEmHmi.js → index-CqHIFgjZ.js} +472 -463
- package/dist/index-CqHIFgjZ.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +29 -29
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/api/api.d.ts +2 -0
- package/dist/primary/shell/src/api/exit-guard-manager/exit-guard-manager.d.ts +12 -0
- package/dist/primary/shell/src/api/exit-guard-manager/exit-guard-manager.test.d.ts +1 -0
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-manager.d.ts +6 -0
- package/dist/primary/shell/src/features/exit/handler.d.ts +0 -1
- package/package.json +1 -1
- package/src/api/api.ts +8 -19
- package/src/api/exit-guard-manager/exit-guard-manager.test.ts +75 -0
- package/src/api/exit-guard-manager/exit-guard-manager.ts +31 -0
- package/src/api/plugin-busy-manager/plugin-busy-manager.ts +6 -0
- package/src/features/exit/handler.test.ts +20 -52
- package/src/features/exit/handler.ts +2 -16
- package/dist/index-CXxEmHmi.js.map +0 -1
|
@@ -70,7 +70,7 @@ function require_Reflect() {
|
|
|
70
70
|
}
|
|
71
71
|
}, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Yt(), me = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : ks(), ge = typeof WeakMap == "function" ? WeakMap : ts(), ve = oe ? Symbol.for("@reflect-metadata:registry") : void 0, _e = Ft(), we = zt(_e);
|
|
72
72
|
function Se(it, nt, vt, St) {
|
|
73
|
-
if (
|
|
73
|
+
if (Ve(vt)) {
|
|
74
74
|
if (!qt(it))
|
|
75
75
|
throw new TypeError();
|
|
76
76
|
if (!Nt(nt))
|
|
@@ -79,9 +79,9 @@ function require_Reflect() {
|
|
|
79
79
|
} else {
|
|
80
80
|
if (!qt(it))
|
|
81
81
|
throw new TypeError();
|
|
82
|
-
if (!
|
|
82
|
+
if (!Be(nt))
|
|
83
83
|
throw new TypeError();
|
|
84
|
-
if (!
|
|
84
|
+
if (!Be(St) && !Ve(St) && !Xe(St))
|
|
85
85
|
throw new TypeError();
|
|
86
86
|
return Xe(St) && (St = void 0), vt = kt(vt), ze(it, nt, vt, St);
|
|
87
87
|
}
|
|
@@ -89,9 +89,9 @@ function require_Reflect() {
|
|
|
89
89
|
J("decorate", Se);
|
|
90
90
|
function ye(it, nt) {
|
|
91
91
|
function vt(St, It) {
|
|
92
|
-
if (!
|
|
92
|
+
if (!Be(St))
|
|
93
93
|
throw new TypeError();
|
|
94
|
-
if (!
|
|
94
|
+
if (!Ve(It) && !Bt(It))
|
|
95
95
|
throw new TypeError();
|
|
96
96
|
Qe(it, nt, St, It);
|
|
97
97
|
}
|
|
@@ -99,66 +99,66 @@ function require_Reflect() {
|
|
|
99
99
|
}
|
|
100
100
|
J("metadata", ye);
|
|
101
101
|
function Ce(it, nt, vt, St) {
|
|
102
|
-
if (!
|
|
102
|
+
if (!Be(vt))
|
|
103
103
|
throw new TypeError();
|
|
104
|
-
return
|
|
104
|
+
return Ve(St) || (St = kt(St)), Qe(it, nt, vt, St);
|
|
105
105
|
}
|
|
106
106
|
J("defineMetadata", Ce);
|
|
107
107
|
function Pe(it, nt, vt) {
|
|
108
|
-
if (!
|
|
108
|
+
if (!Be(nt))
|
|
109
109
|
throw new TypeError();
|
|
110
|
-
return
|
|
110
|
+
return Ve(vt) || (vt = kt(vt)), We(it, nt, vt);
|
|
111
111
|
}
|
|
112
112
|
J("hasMetadata", Pe);
|
|
113
113
|
function De(it, nt, vt) {
|
|
114
|
-
if (!
|
|
114
|
+
if (!Be(nt))
|
|
115
115
|
throw new TypeError();
|
|
116
|
-
return
|
|
116
|
+
return Ve(vt) || (vt = kt(vt)), Ge(it, nt, vt);
|
|
117
117
|
}
|
|
118
118
|
J("hasOwnMetadata", De);
|
|
119
119
|
function Fe(it, nt, vt) {
|
|
120
|
-
if (!
|
|
120
|
+
if (!Be(nt))
|
|
121
121
|
throw new TypeError();
|
|
122
|
-
return
|
|
122
|
+
return Ve(vt) || (vt = kt(vt)), Ye(it, nt, vt);
|
|
123
123
|
}
|
|
124
124
|
J("getMetadata", Fe);
|
|
125
125
|
function He(it, nt, vt) {
|
|
126
|
-
if (!
|
|
126
|
+
if (!Be(nt))
|
|
127
127
|
throw new TypeError();
|
|
128
|
-
return
|
|
128
|
+
return Ve(vt) || (vt = kt(vt)), ft(it, nt, vt);
|
|
129
129
|
}
|
|
130
130
|
J("getOwnMetadata", He);
|
|
131
131
|
function qe(it, nt) {
|
|
132
|
-
if (!
|
|
132
|
+
if (!Be(it))
|
|
133
133
|
throw new TypeError();
|
|
134
|
-
return
|
|
134
|
+
return Ve(nt) || (nt = kt(nt)), Ze(it, nt);
|
|
135
135
|
}
|
|
136
136
|
J("getMetadataKeys", qe);
|
|
137
137
|
function Ae(it, nt) {
|
|
138
|
-
if (!
|
|
138
|
+
if (!Be(it))
|
|
139
139
|
throw new TypeError();
|
|
140
|
-
return
|
|
140
|
+
return Ve(nt) || (nt = kt(nt)), Me(it, nt);
|
|
141
141
|
}
|
|
142
142
|
J("getOwnMetadataKeys", Ae);
|
|
143
143
|
function Le(it, nt, vt) {
|
|
144
|
-
if (!
|
|
144
|
+
if (!Be(nt))
|
|
145
145
|
throw new TypeError();
|
|
146
|
-
if (
|
|
146
|
+
if (Ve(vt) || (vt = kt(vt)), !Be(nt))
|
|
147
147
|
throw new TypeError();
|
|
148
|
-
|
|
148
|
+
Ve(vt) || (vt = kt(vt));
|
|
149
149
|
var St = ds(
|
|
150
150
|
nt,
|
|
151
151
|
vt,
|
|
152
152
|
/*Create*/
|
|
153
153
|
!1
|
|
154
154
|
);
|
|
155
|
-
return
|
|
155
|
+
return Ve(St) ? !1 : St.OrdinaryDeleteMetadata(it, nt, vt);
|
|
156
156
|
}
|
|
157
157
|
J("deleteMetadata", Le);
|
|
158
158
|
function Ie(it, nt) {
|
|
159
159
|
for (var vt = it.length - 1; vt >= 0; --vt) {
|
|
160
160
|
var St = it[vt], It = St(nt);
|
|
161
|
-
if (!
|
|
161
|
+
if (!Ve(It) && !Xe(It)) {
|
|
162
162
|
if (!Nt(It))
|
|
163
163
|
throw new TypeError();
|
|
164
164
|
nt = It;
|
|
@@ -169,8 +169,8 @@ function require_Reflect() {
|
|
|
169
169
|
function ze(it, nt, vt, St) {
|
|
170
170
|
for (var It = it.length - 1; It >= 0; --It) {
|
|
171
171
|
var os = it[It], ls = os(nt, vt, St);
|
|
172
|
-
if (!
|
|
173
|
-
if (!
|
|
172
|
+
if (!Ve(ls) && !Xe(ls)) {
|
|
173
|
+
if (!Be(ls))
|
|
174
174
|
throw new TypeError();
|
|
175
175
|
St = ls;
|
|
176
176
|
}
|
|
@@ -191,7 +191,7 @@ function require_Reflect() {
|
|
|
191
191
|
/*Create*/
|
|
192
192
|
!1
|
|
193
193
|
);
|
|
194
|
-
return
|
|
194
|
+
return Ve(St) ? !1 : ot(St.OrdinaryHasOwnMetadata(it, nt, vt));
|
|
195
195
|
}
|
|
196
196
|
function Ye(it, nt, vt) {
|
|
197
197
|
var St = Ge(it, nt, vt);
|
|
@@ -208,7 +208,7 @@ function require_Reflect() {
|
|
|
208
208
|
/*Create*/
|
|
209
209
|
!1
|
|
210
210
|
);
|
|
211
|
-
if (!
|
|
211
|
+
if (!Ve(St))
|
|
212
212
|
return St.OrdinaryGetOwnMetadata(it, nt, vt);
|
|
213
213
|
}
|
|
214
214
|
function Qe(it, nt, vt, St) {
|
|
@@ -229,8 +229,8 @@ function require_Reflect() {
|
|
|
229
229
|
return vt;
|
|
230
230
|
if (vt.length <= 0)
|
|
231
231
|
return It;
|
|
232
|
-
for (var os = new me(), ls = [],
|
|
233
|
-
var Tt = At[
|
|
232
|
+
for (var os = new me(), ls = [], Vt = 0, At = vt; Vt < At.length; Vt++) {
|
|
233
|
+
var Tt = At[Vt], Dt = os.has(Tt);
|
|
234
234
|
Dt || (os.add(Tt), ls.push(Tt));
|
|
235
235
|
}
|
|
236
236
|
for (var Ot = 0, Ht = It; Ot < Ht.length; Ot++) {
|
|
@@ -268,7 +268,7 @@ function require_Reflect() {
|
|
|
268
268
|
return 6;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Ve(it) {
|
|
272
272
|
return it === void 0;
|
|
273
273
|
}
|
|
274
274
|
function Xe(it) {
|
|
@@ -277,7 +277,7 @@ function require_Reflect() {
|
|
|
277
277
|
function Je(it) {
|
|
278
278
|
return typeof it == "symbol";
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Be(it) {
|
|
281
281
|
return typeof it == "object" ? it !== null : typeof it == "function";
|
|
282
282
|
}
|
|
283
283
|
function Ke(it, nt) {
|
|
@@ -298,7 +298,7 @@ function require_Reflect() {
|
|
|
298
298
|
var vt = "string", St = Kt(it, ne);
|
|
299
299
|
if (St !== void 0) {
|
|
300
300
|
var It = St.call(it, vt);
|
|
301
|
-
if (
|
|
301
|
+
if (Be(It))
|
|
302
302
|
throw new TypeError();
|
|
303
303
|
return It;
|
|
304
304
|
}
|
|
@@ -310,13 +310,13 @@ function require_Reflect() {
|
|
|
310
310
|
var os = it.toString;
|
|
311
311
|
if (Lt(os)) {
|
|
312
312
|
var St = os.call(it);
|
|
313
|
-
if (!
|
|
313
|
+
if (!Be(St))
|
|
314
314
|
return St;
|
|
315
315
|
}
|
|
316
316
|
var vt = it.valueOf;
|
|
317
317
|
if (Lt(vt)) {
|
|
318
318
|
var St = vt.call(it);
|
|
319
|
-
if (!
|
|
319
|
+
if (!Be(St))
|
|
320
320
|
return St;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -341,7 +341,7 @@ function require_Reflect() {
|
|
|
341
341
|
function Nt(it) {
|
|
342
342
|
return typeof it == "function";
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Bt(it) {
|
|
345
345
|
switch (je(it)) {
|
|
346
346
|
case 3:
|
|
347
347
|
return !0;
|
|
@@ -367,7 +367,7 @@ function require_Reflect() {
|
|
|
367
367
|
if (!Lt(nt))
|
|
368
368
|
throw new TypeError();
|
|
369
369
|
var vt = nt.call(it);
|
|
370
|
-
if (!
|
|
370
|
+
if (!Be(vt))
|
|
371
371
|
throw new TypeError();
|
|
372
372
|
return vt;
|
|
373
373
|
}
|
|
@@ -394,7 +394,7 @@ function require_Reflect() {
|
|
|
394
394
|
}
|
|
395
395
|
function Mt() {
|
|
396
396
|
var it;
|
|
397
|
-
!
|
|
397
|
+
!Ve(ve) && typeof te.Reflect < "u" && !(ve in te.Reflect) && typeof te.Reflect.defineMetadata == "function" && (it = cs(te.Reflect));
|
|
398
398
|
var nt, vt, St, It = new ge(), os = {
|
|
399
399
|
registerProvider: ls,
|
|
400
400
|
getProvider: At,
|
|
@@ -407,12 +407,12 @@ function require_Reflect() {
|
|
|
407
407
|
switch (!0) {
|
|
408
408
|
case it === Ot:
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
410
|
+
case Ve(nt):
|
|
411
411
|
nt = Ot;
|
|
412
412
|
break;
|
|
413
413
|
case nt === Ot:
|
|
414
414
|
break;
|
|
415
|
-
case
|
|
415
|
+
case Ve(vt):
|
|
416
416
|
vt = Ot;
|
|
417
417
|
break;
|
|
418
418
|
case vt === Ot:
|
|
@@ -422,14 +422,14 @@ function require_Reflect() {
|
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
if (!
|
|
425
|
+
function Vt(Ot, Ht) {
|
|
426
|
+
if (!Ve(nt)) {
|
|
427
427
|
if (nt.isProviderFor(Ot, Ht))
|
|
428
428
|
return nt;
|
|
429
|
-
if (!
|
|
429
|
+
if (!Ve(vt)) {
|
|
430
430
|
if (vt.isProviderFor(Ot, Ht))
|
|
431
431
|
return nt;
|
|
432
|
-
if (!
|
|
432
|
+
if (!Ve(St))
|
|
433
433
|
for (var Xt = gt(St); ; ) {
|
|
434
434
|
var ns = xt(Xt);
|
|
435
435
|
if (!ns)
|
|
@@ -440,34 +440,34 @@ function require_Reflect() {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
if (!
|
|
443
|
+
if (!Ve(it) && it.isProviderFor(Ot, Ht))
|
|
444
444
|
return it;
|
|
445
445
|
}
|
|
446
446
|
function At(Ot, Ht) {
|
|
447
447
|
var Xt = It.get(Ot), ns;
|
|
448
|
-
return
|
|
448
|
+
return Ve(Xt) || (ns = Xt.get(Ht)), Ve(ns) && (ns = Vt(Ot, Ht), Ve(ns) || (Ve(Xt) && (Xt = new be(), It.set(Ot, Xt)), Xt.set(Ht, ns))), ns;
|
|
449
449
|
}
|
|
450
450
|
function Tt(Ot) {
|
|
451
|
-
if (
|
|
451
|
+
if (Ve(Ot))
|
|
452
452
|
throw new TypeError();
|
|
453
|
-
return nt === Ot || vt === Ot || !
|
|
453
|
+
return nt === Ot || vt === Ot || !Ve(St) && St.has(Ot);
|
|
454
454
|
}
|
|
455
455
|
function Dt(Ot, Ht, Xt) {
|
|
456
456
|
if (!Tt(Xt))
|
|
457
457
|
throw new Error("Metadata provider not registered.");
|
|
458
458
|
var ns = At(Ot, Ht);
|
|
459
459
|
if (ns !== Xt) {
|
|
460
|
-
if (!
|
|
460
|
+
if (!Ve(ns))
|
|
461
461
|
return !1;
|
|
462
462
|
var ps = It.get(Ot);
|
|
463
|
-
|
|
463
|
+
Ve(ps) && (ps = new be(), It.set(Ot, ps)), ps.set(Ht, Xt);
|
|
464
464
|
}
|
|
465
465
|
return !0;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
function Ft() {
|
|
469
469
|
var it;
|
|
470
|
-
return !
|
|
470
|
+
return !Ve(ve) && Be(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Ve(it) && (it = Mt()), !Ve(ve) && Be(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
configurable: !1,
|
|
473
473
|
writable: !1,
|
|
@@ -478,24 +478,24 @@ function require_Reflect() {
|
|
|
478
478
|
var nt = new ge(), vt = {
|
|
479
479
|
isProviderFor: function(Tt, Dt) {
|
|
480
480
|
var Ot = nt.get(Tt);
|
|
481
|
-
return
|
|
481
|
+
return Ve(Ot) ? !1 : Ot.has(Dt);
|
|
482
482
|
},
|
|
483
483
|
OrdinaryDefineOwnMetadata: ls,
|
|
484
484
|
OrdinaryHasOwnMetadata: It,
|
|
485
485
|
OrdinaryGetOwnMetadata: os,
|
|
486
|
-
OrdinaryOwnMetadataKeys:
|
|
486
|
+
OrdinaryOwnMetadataKeys: Vt,
|
|
487
487
|
OrdinaryDeleteMetadata: At
|
|
488
488
|
};
|
|
489
489
|
return _e.registerProvider(vt), vt;
|
|
490
490
|
function St(Tt, Dt, Ot) {
|
|
491
491
|
var Ht = nt.get(Tt), Xt = !1;
|
|
492
|
-
if (
|
|
492
|
+
if (Ve(Ht)) {
|
|
493
493
|
if (!Ot)
|
|
494
494
|
return;
|
|
495
495
|
Ht = new be(), nt.set(Tt, Ht), Xt = !0;
|
|
496
496
|
}
|
|
497
497
|
var ns = Ht.get(Dt);
|
|
498
|
-
if (
|
|
498
|
+
if (Ve(ns)) {
|
|
499
499
|
if (!Ot)
|
|
500
500
|
return;
|
|
501
501
|
if (ns = new be(), Ht.set(Dt, ns), !it.setProvider(Tt, Dt, vt))
|
|
@@ -510,7 +510,7 @@ function require_Reflect() {
|
|
|
510
510
|
/*Create*/
|
|
511
511
|
!1
|
|
512
512
|
);
|
|
513
|
-
return
|
|
513
|
+
return Ve(Ht) ? !1 : ot(Ht.has(Tt));
|
|
514
514
|
}
|
|
515
515
|
function os(Tt, Dt, Ot) {
|
|
516
516
|
var Ht = St(
|
|
@@ -519,7 +519,7 @@ function require_Reflect() {
|
|
|
519
519
|
/*Create*/
|
|
520
520
|
!1
|
|
521
521
|
);
|
|
522
|
-
if (!
|
|
522
|
+
if (!Ve(Ht))
|
|
523
523
|
return Ht.get(Tt);
|
|
524
524
|
}
|
|
525
525
|
function ls(Tt, Dt, Ot, Ht) {
|
|
@@ -531,14 +531,14 @@ function require_Reflect() {
|
|
|
531
531
|
);
|
|
532
532
|
Xt.set(Tt, Dt);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Vt(Tt, Dt) {
|
|
535
535
|
var Ot = [], Ht = St(
|
|
536
536
|
Tt,
|
|
537
537
|
Dt,
|
|
538
538
|
/*Create*/
|
|
539
539
|
!1
|
|
540
540
|
);
|
|
541
|
-
if (
|
|
541
|
+
if (Ve(Ht))
|
|
542
542
|
return Ot;
|
|
543
543
|
for (var Xt = Ht.keys(), ns = gt(Xt), ps = 0; ; ) {
|
|
544
544
|
var Es = xt(ns);
|
|
@@ -564,20 +564,20 @@ function require_Reflect() {
|
|
|
564
564
|
/*Create*/
|
|
565
565
|
!1
|
|
566
566
|
);
|
|
567
|
-
if (
|
|
567
|
+
if (Ve(Ht) || !Ht.delete(Tt))
|
|
568
568
|
return !1;
|
|
569
569
|
if (Ht.size === 0) {
|
|
570
570
|
var Xt = nt.get(Dt);
|
|
571
|
-
|
|
571
|
+
Ve(Xt) || (Xt.delete(Ot), Xt.size === 0 && nt.delete(Xt));
|
|
572
572
|
}
|
|
573
573
|
return !0;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
function cs(it) {
|
|
577
|
-
var nt = it.defineMetadata, vt = it.hasOwnMetadata, St = it.getOwnMetadata, It = it.getOwnMetadataKeys, os = it.deleteMetadata, ls = new ge(),
|
|
577
|
+
var nt = it.defineMetadata, vt = it.hasOwnMetadata, St = it.getOwnMetadata, It = it.getOwnMetadataKeys, os = it.deleteMetadata, ls = new ge(), Vt = {
|
|
578
578
|
isProviderFor: function(At, Tt) {
|
|
579
579
|
var Dt = ls.get(At);
|
|
580
|
-
return !
|
|
580
|
+
return !Ve(Dt) && Dt.has(Tt) ? !0 : It(At, Tt).length ? (Ve(Dt) && (Dt = new me(), ls.set(At, Dt)), Dt.add(Tt), !0) : !1;
|
|
581
581
|
},
|
|
582
582
|
OrdinaryDefineOwnMetadata: nt,
|
|
583
583
|
OrdinaryHasOwnMetadata: vt,
|
|
@@ -585,11 +585,11 @@ function require_Reflect() {
|
|
|
585
585
|
OrdinaryOwnMetadataKeys: It,
|
|
586
586
|
OrdinaryDeleteMetadata: os
|
|
587
587
|
};
|
|
588
|
-
return
|
|
588
|
+
return Vt;
|
|
589
589
|
}
|
|
590
590
|
function ds(it, nt, vt) {
|
|
591
591
|
var St = _e.getProvider(it, nt);
|
|
592
|
-
if (!
|
|
592
|
+
if (!Ve(St))
|
|
593
593
|
return St;
|
|
594
594
|
if (vt) {
|
|
595
595
|
if (_e.setProvider(it, nt, we))
|
|
@@ -601,59 +601,59 @@ function require_Reflect() {
|
|
|
601
601
|
var it = {}, nt = [], vt = (
|
|
602
602
|
/** @class */
|
|
603
603
|
(function() {
|
|
604
|
-
function
|
|
604
|
+
function Vt(At, Tt, Dt) {
|
|
605
605
|
this._index = 0, this._keys = At, this._values = Tt, this._selector = Dt;
|
|
606
606
|
}
|
|
607
|
-
return
|
|
607
|
+
return Vt.prototype["@@iterator"] = function() {
|
|
608
608
|
return this;
|
|
609
|
-
},
|
|
609
|
+
}, Vt.prototype[de] = function() {
|
|
610
610
|
return this;
|
|
611
|
-
},
|
|
611
|
+
}, Vt.prototype.next = function() {
|
|
612
612
|
var At = this._index;
|
|
613
613
|
if (At >= 0 && At < this._keys.length) {
|
|
614
614
|
var Tt = this._selector(this._keys[At], this._values[At]);
|
|
615
615
|
return At + 1 >= this._keys.length ? (this._index = -1, this._keys = nt, this._values = nt) : this._index++, { value: Tt, done: !1 };
|
|
616
616
|
}
|
|
617
617
|
return { value: void 0, done: !0 };
|
|
618
|
-
},
|
|
618
|
+
}, Vt.prototype.throw = function(At) {
|
|
619
619
|
throw this._index >= 0 && (this._index = -1, this._keys = nt, this._values = nt), At;
|
|
620
|
-
},
|
|
620
|
+
}, Vt.prototype.return = function(At) {
|
|
621
621
|
return this._index >= 0 && (this._index = -1, this._keys = nt, this._values = nt), { value: At, done: !0 };
|
|
622
|
-
},
|
|
622
|
+
}, Vt;
|
|
623
623
|
})()
|
|
624
624
|
), St = (
|
|
625
625
|
/** @class */
|
|
626
626
|
(function() {
|
|
627
|
-
function
|
|
627
|
+
function Vt() {
|
|
628
628
|
this._keys = [], this._values = [], this._cacheKey = it, this._cacheIndex = -2;
|
|
629
629
|
}
|
|
630
|
-
return Object.defineProperty(
|
|
630
|
+
return Object.defineProperty(Vt.prototype, "size", {
|
|
631
631
|
get: function() {
|
|
632
632
|
return this._keys.length;
|
|
633
633
|
},
|
|
634
634
|
enumerable: !0,
|
|
635
635
|
configurable: !0
|
|
636
|
-
}),
|
|
636
|
+
}), Vt.prototype.has = function(At) {
|
|
637
637
|
return this._find(
|
|
638
638
|
At,
|
|
639
639
|
/*insert*/
|
|
640
640
|
!1
|
|
641
641
|
) >= 0;
|
|
642
|
-
},
|
|
642
|
+
}, Vt.prototype.get = function(At) {
|
|
643
643
|
var Tt = this._find(
|
|
644
644
|
At,
|
|
645
645
|
/*insert*/
|
|
646
646
|
!1
|
|
647
647
|
);
|
|
648
648
|
return Tt >= 0 ? this._values[Tt] : void 0;
|
|
649
|
-
},
|
|
649
|
+
}, Vt.prototype.set = function(At, Tt) {
|
|
650
650
|
var Dt = this._find(
|
|
651
651
|
At,
|
|
652
652
|
/*insert*/
|
|
653
653
|
!0
|
|
654
654
|
);
|
|
655
655
|
return this._values[Dt] = Tt, this;
|
|
656
|
-
},
|
|
656
|
+
}, Vt.prototype.delete = function(At) {
|
|
657
657
|
var Tt = this._find(
|
|
658
658
|
At,
|
|
659
659
|
/*insert*/
|
|
@@ -665,19 +665,19 @@ function require_Reflect() {
|
|
|
665
665
|
return this._keys.length--, this._values.length--, rs(At, this._cacheKey) && (this._cacheKey = it, this._cacheIndex = -2), !0;
|
|
666
666
|
}
|
|
667
667
|
return !1;
|
|
668
|
-
},
|
|
668
|
+
}, Vt.prototype.clear = function() {
|
|
669
669
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = it, this._cacheIndex = -2;
|
|
670
|
-
},
|
|
670
|
+
}, Vt.prototype.keys = function() {
|
|
671
671
|
return new vt(this._keys, this._values, It);
|
|
672
|
-
},
|
|
672
|
+
}, Vt.prototype.values = function() {
|
|
673
673
|
return new vt(this._keys, this._values, os);
|
|
674
|
-
},
|
|
674
|
+
}, Vt.prototype.entries = function() {
|
|
675
675
|
return new vt(this._keys, this._values, ls);
|
|
676
|
-
},
|
|
676
|
+
}, Vt.prototype["@@iterator"] = function() {
|
|
677
677
|
return this.entries();
|
|
678
|
-
},
|
|
678
|
+
}, Vt.prototype[de] = function() {
|
|
679
679
|
return this.entries();
|
|
680
|
-
},
|
|
680
|
+
}, Vt.prototype._find = function(At, Tt) {
|
|
681
681
|
if (!rs(this._cacheKey, At)) {
|
|
682
682
|
this._cacheIndex = -1;
|
|
683
683
|
for (var Dt = 0; Dt < this._keys.length; Dt++)
|
|
@@ -687,18 +687,18 @@ function require_Reflect() {
|
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
return this._cacheIndex < 0 && Tt && (this._cacheIndex = this._keys.length, this._keys.push(At), this._values.push(void 0)), this._cacheIndex;
|
|
690
|
-
},
|
|
690
|
+
}, Vt;
|
|
691
691
|
})()
|
|
692
692
|
);
|
|
693
693
|
return St;
|
|
694
|
-
function It(
|
|
695
|
-
return
|
|
694
|
+
function It(Vt, At) {
|
|
695
|
+
return Vt;
|
|
696
696
|
}
|
|
697
|
-
function os(
|
|
697
|
+
function os(Vt, At) {
|
|
698
698
|
return At;
|
|
699
699
|
}
|
|
700
|
-
function ls(
|
|
701
|
-
return [
|
|
700
|
+
function ls(Vt, At) {
|
|
701
|
+
return [Vt, At];
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
function ks() {
|
|
@@ -781,7 +781,7 @@ function require_Reflect() {
|
|
|
781
781
|
function St() {
|
|
782
782
|
var At;
|
|
783
783
|
do
|
|
784
|
-
At = "@@WeakMap@@" +
|
|
784
|
+
At = "@@WeakMap@@" + Vt();
|
|
785
785
|
while (pe.has(nt, At));
|
|
786
786
|
return nt[At] = !0, At;
|
|
787
787
|
}
|
|
@@ -805,7 +805,7 @@ function require_Reflect() {
|
|
|
805
805
|
}
|
|
806
806
|
return os(new Array(At), At);
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Vt() {
|
|
809
809
|
var At = ls(it);
|
|
810
810
|
At[6] = At[6] & 79 | 64, At[8] = At[8] & 191 | 128;
|
|
811
811
|
for (var Tt = "", Dt = 0; Dt < it; ++Dt) {
|
|
@@ -3514,6 +3514,26 @@ class EcapEventManagerImpl {
|
|
|
3514
3514
|
}
|
|
3515
3515
|
}
|
|
3516
3516
|
const createEcapEventManager = (X) => new EcapEventManagerImpl(X);
|
|
3517
|
+
class ExitGuardManagerImpl {
|
|
3518
|
+
constructor() {
|
|
3519
|
+
this.guards = /* @__PURE__ */ new Map();
|
|
3520
|
+
}
|
|
3521
|
+
register(W, J) {
|
|
3522
|
+
this.guards.set(W, J);
|
|
3523
|
+
}
|
|
3524
|
+
unregister(W) {
|
|
3525
|
+
this.guards.delete(W);
|
|
3526
|
+
}
|
|
3527
|
+
async canExit() {
|
|
3528
|
+
for (const W of this.guards.values())
|
|
3529
|
+
try {
|
|
3530
|
+
if (!await W()) return !1;
|
|
3531
|
+
} catch (J) {
|
|
3532
|
+
console.error("Exit guard failed:", J);
|
|
3533
|
+
}
|
|
3534
|
+
return !0;
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3517
3537
|
class PrimariaGlobalStateManagerImpl {
|
|
3518
3538
|
constructor(W) {
|
|
3519
3539
|
this.broker = W, this.state = {};
|
|
@@ -4796,11 +4816,11 @@ const resolveConfig = (X) => {
|
|
|
4796
4816
|
duplex: "half"
|
|
4797
4817
|
}), je;
|
|
4798
4818
|
if (utils$1.isFormData(_e) && (je = Me.headers.get("content-type")) && Fe.setContentType(je), Me.body) {
|
|
4799
|
-
const [
|
|
4819
|
+
const [Ve, Xe] = progressEventDecorator(
|
|
4800
4820
|
We,
|
|
4801
4821
|
progressEventReducer(asyncDecorator(Pe))
|
|
4802
4822
|
);
|
|
4803
|
-
_e = trackStream(Me.body, DEFAULT_CHUNK_SIZE,
|
|
4823
|
+
_e = trackStream(Me.body, DEFAULT_CHUNK_SIZE, Ve, Xe);
|
|
4804
4824
|
}
|
|
4805
4825
|
}
|
|
4806
4826
|
utils$1.isString(He) || (He = He ? "include" : "omit");
|
|
@@ -4821,12 +4841,12 @@ const resolveConfig = (X) => {
|
|
|
4821
4841
|
["status", "statusText", "headers"].forEach((Je) => {
|
|
4822
4842
|
Me[Je] = ft[Je];
|
|
4823
4843
|
});
|
|
4824
|
-
const je = utils$1.toFiniteNumber(ft.headers.get("content-length")), [
|
|
4844
|
+
const je = utils$1.toFiniteNumber(ft.headers.get("content-length")), [Ve, Xe] = Ce && progressEventDecorator(
|
|
4825
4845
|
je,
|
|
4826
4846
|
progressEventReducer(asyncDecorator(Ce), !0)
|
|
4827
4847
|
) || [];
|
|
4828
4848
|
ft = new te(
|
|
4829
|
-
trackStream(ft.body, DEFAULT_CHUNK_SIZE,
|
|
4849
|
+
trackStream(ft.body, DEFAULT_CHUNK_SIZE, Ve, () => {
|
|
4830
4850
|
Xe && Xe(), ze && ze();
|
|
4831
4851
|
}),
|
|
4832
4852
|
Me
|
|
@@ -5911,11 +5931,11 @@ function peg$parse(X, W) {
|
|
|
5911
5931
|
return vs.pop(), Oe.replace(/\s*$/, "");
|
|
5912
5932
|
}, Ge = ",", Ye = us(",", !1), ft = "number", Qe = us("number", !1), Ze = function(Oe, Ue, tt) {
|
|
5913
5933
|
return __assign$4({ type: Ue === "number" ? TYPE.number : Ue === "date" ? TYPE.date : TYPE.time, style: tt && tt[2], value: Oe }, _s());
|
|
5914
|
-
}, Me = "'", je = us("'", !1),
|
|
5934
|
+
}, Me = "'", je = us("'", !1), Ve = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Be = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ke = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
|
|
5915
5935
|
return __assign$4({ type: 1, pattern: Oe }, _s());
|
|
5916
5936
|
}, _t = function() {
|
|
5917
5937
|
return vs.push("dateOrTimeArgStyle"), !0;
|
|
5918
|
-
}, kt = "date", qt = us("date", !1), Lt = "time", Nt = us("time", !1),
|
|
5938
|
+
}, kt = "date", qt = us("date", !1), Lt = "time", Nt = us("time", !1), Bt = "plural", rs = us("plural", !1), Kt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), Ct = function(Oe, Ue, tt, bt) {
|
|
5919
5939
|
return __assign$4({ type: TYPE.plural, pluralType: Ue === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: bt.reduce(function(wt, Pt) {
|
|
5920
5940
|
var es = Pt.id, jt = Pt.value, fs = Pt.location;
|
|
5921
5941
|
return es in wt && li('Duplicate option "' + es + '" in plural element: "' + ai() + '"', qs()), wt[es] = {
|
|
@@ -5945,7 +5965,7 @@ function peg$parse(X, W) {
|
|
|
5945
5965
|
id: Oe,
|
|
5946
5966
|
value: Ue
|
|
5947
5967
|
}, _s());
|
|
5948
|
-
}, hs = bs("whitespace"), it = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, nt = $s([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), vt = bs("syntax pattern"), St = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, It = $s([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), os = bs("optional whitespace"), ls = bs("number"),
|
|
5968
|
+
}, hs = bs("whitespace"), it = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, nt = $s([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), vt = bs("syntax pattern"), St = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, It = $s([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), os = bs("optional whitespace"), ls = bs("number"), Vt = "-", At = us("-", !1), Tt = function(Oe, Ue) {
|
|
5949
5969
|
return Ue ? Oe ? -Ue : Ue : 0;
|
|
5950
5970
|
}, Dt = bs("double apostrophes"), Ot = "''", Ht = us("''", !1), Xt = function() {
|
|
5951
5971
|
return "'";
|
|
@@ -5974,7 +5994,7 @@ function peg$parse(X, W) {
|
|
|
5974
5994
|
return Os(Gt, Ne);
|
|
5975
5995
|
}
|
|
5976
5996
|
function li(Oe, Ue) {
|
|
5977
|
-
throw Ue = Ue !== void 0 ? Ue : Os(Gt, Ne),
|
|
5997
|
+
throw Ue = Ue !== void 0 ? Ue : Os(Gt, Ne), Vi(Oe, Ue);
|
|
5978
5998
|
}
|
|
5979
5999
|
function us(Oe, Ue) {
|
|
5980
6000
|
return { type: "literal", text: Oe, ignoreCase: Ue };
|
|
@@ -6022,10 +6042,10 @@ function peg$parse(X, W) {
|
|
|
6022
6042
|
function Et(Oe) {
|
|
6023
6043
|
Ne < ms || (Ne > ms && (ms = Ne, Ls = []), Ls.push(Oe));
|
|
6024
6044
|
}
|
|
6025
|
-
function
|
|
6045
|
+
function Vi(Oe, Ue) {
|
|
6026
6046
|
return new SyntaxError(Oe, [], "", Ue);
|
|
6027
6047
|
}
|
|
6028
|
-
function
|
|
6048
|
+
function Bi(Oe, Ue, tt) {
|
|
6029
6049
|
return new SyntaxError(SyntaxError.buildMessage(Oe, Ue), Oe, Ue, tt);
|
|
6030
6050
|
}
|
|
6031
6051
|
function ci() {
|
|
@@ -6109,18 +6129,18 @@ function peg$parse(X, W) {
|
|
|
6109
6129
|
function bi() {
|
|
6110
6130
|
var Oe, Ue, tt, bt;
|
|
6111
6131
|
if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (Ue = Me, Ne++) : (Ue = J, yt === 0 && Et(je)), Ue !== J) {
|
|
6112
|
-
if (tt = [], bt = xs(), bt === J && (
|
|
6132
|
+
if (tt = [], bt = xs(), bt === J && (Ve.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Et(Xe))), bt !== J)
|
|
6113
6133
|
for (; bt !== J; )
|
|
6114
|
-
tt.push(bt), bt = xs(), bt === J && (
|
|
6134
|
+
tt.push(bt), bt = xs(), bt === J && (Ve.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Et(Xe)));
|
|
6115
6135
|
else
|
|
6116
6136
|
tt = J;
|
|
6117
6137
|
tt !== J ? (X.charCodeAt(Ne) === 39 ? (bt = Me, Ne++) : (bt = J, yt === 0 && Et(je)), bt !== J ? (Ue = [Ue, tt, bt], Oe = Ue) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
|
|
6118
6138
|
} else
|
|
6119
6139
|
Ne = Oe, Oe = J;
|
|
6120
6140
|
if (Oe === J)
|
|
6121
|
-
if (Oe = [], Ue = xs(), Ue === J && (Je.test(X.charAt(Ne)) ? (Ue = X.charAt(Ne), Ne++) : (Ue = J, yt === 0 && Et(
|
|
6141
|
+
if (Oe = [], Ue = xs(), Ue === J && (Je.test(X.charAt(Ne)) ? (Ue = X.charAt(Ne), Ne++) : (Ue = J, yt === 0 && Et(Be))), Ue !== J)
|
|
6122
6142
|
for (; Ue !== J; )
|
|
6123
|
-
Oe.push(Ue), Ue = xs(), Ue === J && (Je.test(X.charAt(Ne)) ? (Ue = X.charAt(Ne), Ne++) : (Ue = J, yt === 0 && Et(
|
|
6143
|
+
Oe.push(Ue), Ue = xs(), Ue === J && (Je.test(X.charAt(Ne)) ? (Ue = X.charAt(Ne), Ne++) : (Ue = J, yt === 0 && Et(Be)));
|
|
6124
6144
|
else
|
|
6125
6145
|
Oe = J;
|
|
6126
6146
|
return Oe;
|
|
@@ -6163,7 +6183,7 @@ function peg$parse(X, W) {
|
|
|
6163
6183
|
if (wt = Ut(), wt !== J)
|
|
6164
6184
|
if (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Et(Ye)), Pt !== J)
|
|
6165
6185
|
if (es = Ut(), es !== J)
|
|
6166
|
-
if (X.substr(Ne, 6) ===
|
|
6186
|
+
if (X.substr(Ne, 6) === Bt ? (jt = Bt, Ne += 6) : (jt = J, yt === 0 && Et(rs)), jt === J && (X.substr(Ne, 13) === Kt ? (jt = Kt, Ne += 13) : (jt = J, yt === 0 && Et(gt))), jt !== J)
|
|
6167
6187
|
if (fs = Ut(), fs !== J)
|
|
6168
6188
|
if (X.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = J, yt === 0 && Et(Ye)), Wt !== J)
|
|
6169
6189
|
if (as = Ut(), as !== J)
|
|
@@ -6269,7 +6289,7 @@ function peg$parse(X, W) {
|
|
|
6269
6289
|
}
|
|
6270
6290
|
function yi() {
|
|
6271
6291
|
var Oe, Ue, tt;
|
|
6272
|
-
return yt++, Oe = Ne, X.charCodeAt(Ne) === 45 ? (Ue =
|
|
6292
|
+
return yt++, Oe = Ne, X.charCodeAt(Ne) === 45 ? (Ue = Vt, Ne++) : (Ue = J, yt === 0 && Et(At)), Ue === J && (Ue = null), Ue !== J ? (tt = xi(), tt !== J ? (Gt = Oe, Ue = Tt(Ue, tt), Oe = Ue) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), yt--, Oe === J && (Ue = J, yt === 0 && Et(ls)), Oe;
|
|
6273
6293
|
}
|
|
6274
6294
|
function xs() {
|
|
6275
6295
|
var Oe, Ue;
|
|
@@ -6279,8 +6299,8 @@ function peg$parse(X, W) {
|
|
|
6279
6299
|
var Oe, Ue, tt, bt, wt, Pt;
|
|
6280
6300
|
if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (Ue = Me, Ne++) : (Ue = J, yt === 0 && Et(je)), Ue !== J)
|
|
6281
6301
|
if (tt = or(), tt !== J) {
|
|
6282
|
-
for (bt = Ne, wt = [], X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Et(Ht)), Pt === J && (
|
|
6283
|
-
wt.push(Pt), X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Et(Ht)), Pt === J && (
|
|
6302
|
+
for (bt = Ne, wt = [], X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Et(Ht)), Pt === J && (Ve.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Et(Xe))); Pt !== J; )
|
|
6303
|
+
wt.push(Pt), X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Et(Ht)), Pt === J && (Ve.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Et(Xe)));
|
|
6284
6304
|
wt !== J ? bt = X.substring(bt, Ne) : bt = wt, bt !== J ? (X.charCodeAt(Ne) === 39 ? (wt = Me, Ne++) : (wt = J, yt === 0 && Et(je)), wt === J && (wt = null), wt !== J ? (Gt = Oe, Ue = ns(tt, bt), Oe = Ue) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
|
|
6285
6305
|
} else
|
|
6286
6306
|
Ne = Oe, Oe = J;
|
|
@@ -6336,7 +6356,7 @@ function peg$parse(X, W) {
|
|
|
6336
6356
|
}
|
|
6337
6357
|
if (Ts = re(), Ts !== J && Ne === X.length)
|
|
6338
6358
|
return Ts;
|
|
6339
|
-
throw Ts !== J && Ne < X.length && Et(Hi()),
|
|
6359
|
+
throw Ts !== J && Ne < X.length && Et(Hi()), Bi(Ls, ms < X.length ? X.charAt(ms) : null, ms < X.length ? Os(ms, ms + 1) : Os(ms, ms));
|
|
6340
6360
|
}
|
|
6341
6361
|
var pegParse = peg$parse, __spreadArrays$2 = function() {
|
|
6342
6362
|
for (var X = 0, W = 0, J = arguments.length; W < J; W++) X += arguments[W].length;
|
|
@@ -9460,15 +9480,15 @@ const createPdfViewerManager = (X, W) => new PdfViewerManager(X, W), styles$o =
|
|
|
9460
9480
|
)}
|
|
9461
9481
|
</div>
|
|
9462
9482
|
</div>
|
|
9463
|
-
`,
|
|
9483
|
+
`, Vs = class Vs extends h$p {
|
|
9464
9484
|
render() {
|
|
9465
9485
|
return ke$1`${template$p(this)}`;
|
|
9466
9486
|
}
|
|
9467
9487
|
};
|
|
9468
|
-
|
|
9488
|
+
Vs.styles = i$T`
|
|
9469
9489
|
${r$L(styles$o)}
|
|
9470
9490
|
`;
|
|
9471
|
-
let PluginBusyList =
|
|
9491
|
+
let PluginBusyList = Vs;
|
|
9472
9492
|
class PluginBusyManagerImpl {
|
|
9473
9493
|
constructor() {
|
|
9474
9494
|
this.tasks = [], customElements.get("plugin-busy-list") || t$w("plugin-busy-list")(PluginBusyList);
|
|
@@ -9690,7 +9710,7 @@ class ImportDataManagerImpl {
|
|
|
9690
9710
|
async import(W) {
|
|
9691
9711
|
this.currentImporterId = W, this.selectedItems = {}, this.pluginTexts = {};
|
|
9692
9712
|
try {
|
|
9693
|
-
const { ImportDataManagerModal: J } = await import("./component-
|
|
9713
|
+
const { ImportDataManagerModal: J } = await import("./component-BnGIF_Io.js"), { confirmed: te } = await this.interactionService.confirm(
|
|
9694
9714
|
void 0,
|
|
9695
9715
|
{ component: J },
|
|
9696
9716
|
{
|
|
@@ -9748,7 +9768,7 @@ class PrimariaContextManagerImpl {
|
|
|
9748
9768
|
}
|
|
9749
9769
|
}
|
|
9750
9770
|
let contextManager$1;
|
|
9751
|
-
const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$p("primaria"), PrimariaRegionHost = v$m(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (X) => {
|
|
9771
|
+
const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$p("primaria"), PrimariaRegionHost = v$m(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), exitGuardManager = new ExitGuardManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (X) => {
|
|
9752
9772
|
const W = createRegionManagerProxy(X, regionManager, broker$1);
|
|
9753
9773
|
return {
|
|
9754
9774
|
pluginInfo: X,
|
|
@@ -9762,6 +9782,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
|
|
|
9762
9782
|
userManager,
|
|
9763
9783
|
ecapEventManager,
|
|
9764
9784
|
pluginBusyManager,
|
|
9785
|
+
exitGuardManager,
|
|
9765
9786
|
quickActionBusyManager,
|
|
9766
9787
|
interactionService,
|
|
9767
9788
|
notificationService,
|
|
@@ -16289,11 +16310,7 @@ let ExitShellHandler = class {
|
|
|
16289
16310
|
async handle(X) {
|
|
16290
16311
|
const W = X && X.ecapEvent !== void 0 ? X : void 0;
|
|
16291
16312
|
try {
|
|
16292
|
-
|
|
16293
|
-
if (J.length > 0) {
|
|
16294
|
-
const { confirmed: te } = await this.askForClose(J);
|
|
16295
|
-
if (!te) return;
|
|
16296
|
-
}
|
|
16313
|
+
if (!await this.api.exitGuardManager.canExit()) return;
|
|
16297
16314
|
await Promise.race([
|
|
16298
16315
|
disposePlugins(),
|
|
16299
16316
|
// S'intenta executar un dispose normal
|
|
@@ -16304,14 +16321,6 @@ let ExitShellHandler = class {
|
|
|
16304
16321
|
this.api.notificationService.error(translate$1("errors.exit")), this.emitClose(W);
|
|
16305
16322
|
}
|
|
16306
16323
|
}
|
|
16307
|
-
askForClose(X) {
|
|
16308
|
-
return this.api.interactionService.confirm({ busyTasks: X }, { component: PluginBusyList }, {
|
|
16309
|
-
title: translate$1("actions.askExit"),
|
|
16310
|
-
state: "error",
|
|
16311
|
-
confirmButtonText: "Sí",
|
|
16312
|
-
cancelButtonText: "No"
|
|
16313
|
-
});
|
|
16314
|
-
}
|
|
16315
16324
|
timeout(X) {
|
|
16316
16325
|
return new Promise((W) => setTimeout(W, X));
|
|
16317
16326
|
}
|
|
@@ -17933,18 +17942,18 @@ function flip(X) {
|
|
|
17933
17942
|
}
|
|
17934
17943
|
if (Fe)
|
|
17935
17944
|
for (var Ze = me ? 3 : 1, Me = function(Je) {
|
|
17936
|
-
var
|
|
17945
|
+
var Be = ye.find(function(Ke) {
|
|
17937
17946
|
var rt = De.get(Ke);
|
|
17938
17947
|
if (rt)
|
|
17939
17948
|
return rt.slice(0, Je).every(function(ot) {
|
|
17940
17949
|
return ot;
|
|
17941
17950
|
});
|
|
17942
17951
|
});
|
|
17943
|
-
if (
|
|
17944
|
-
return He =
|
|
17952
|
+
if (Be)
|
|
17953
|
+
return He = Be, "break";
|
|
17945
17954
|
}, je = Ze; je > 0; je--) {
|
|
17946
|
-
var
|
|
17947
|
-
if (
|
|
17955
|
+
var Ve = Me(je);
|
|
17956
|
+
if (Ve === "break") break;
|
|
17948
17957
|
}
|
|
17949
17958
|
W.placement !== He && (W.modifiersData[te]._skip = !0, W.placement = He, W.reset = !0);
|
|
17950
17959
|
}
|
|
@@ -18061,10 +18070,10 @@ function preventOverflow(X) {
|
|
|
18061
18070
|
};
|
|
18062
18071
|
if (Pe) {
|
|
18063
18072
|
if (oe) {
|
|
18064
|
-
var Ie, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ye = Pe[ye], ft = Ye + ve[ze], Qe = Ye - ve[We], Ze = be ? -Fe[Ge] / 2 : 0, Me = we === start ? De[Ge] : Fe[Ge], je = we === start ? -Fe[Ge] : -De[Ge],
|
|
18073
|
+
var Ie, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ye = Pe[ye], ft = Ye + ve[ze], Qe = Ye - ve[We], Ze = be ? -Fe[Ge] / 2 : 0, Me = we === start ? De[Ge] : Fe[Ge], je = we === start ? -Fe[Ge] : -De[Ge], Ve = W.elements.arrow, Xe = be && Ve ? getLayoutRect(Ve) : {
|
|
18065
18074
|
width: 0,
|
|
18066
18075
|
height: 0
|
|
18067
|
-
}, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(),
|
|
18076
|
+
}, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Be = Je[ze], Ke = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Se ? De[Ge] / 2 - Ze - rt - Be - qe.mainAxis : Me - rt - Be - qe.mainAxis, _t = Se ? -De[Ge] / 2 + Ze + rt + Ke + qe.mainAxis : je + rt + Ke + qe.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), qt = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, Lt = (Ie = Ae?.[ye]) != null ? Ie : 0, Nt = Ye + ot - Lt - qt, Bt = Ye + _t - Lt, rs = within(be ? min(ft, Nt) : ft, Ye, be ? max(Qe, Bt) : Qe);
|
|
18068
18077
|
Pe[ye] = rs, Le[ye] = rs - Ye;
|
|
18069
18078
|
}
|
|
18070
18079
|
if (de) {
|
|
@@ -42593,7 +42602,7 @@ var __defProp$e = Object.defineProperty, __decorateClass$e = (X, W, J, te) => {
|
|
|
42593
42602
|
(ne = X[oe]) && (re = ne(W, J, re) || re);
|
|
42594
42603
|
return re && __defProp$e(W, J, re), re;
|
|
42595
42604
|
};
|
|
42596
|
-
const
|
|
42605
|
+
const Bs = class Bs extends PrimariaRegionHost(h$p) {
|
|
42597
42606
|
constructor() {
|
|
42598
42607
|
super(...arguments), this.sidebarExpanded = !1, this.viewSelected = shellViews.shell, this.quickActionBusy = !1, this.subscriptions = [];
|
|
42599
42608
|
}
|
|
@@ -42687,10 +42696,10 @@ const Vs = class Vs extends PrimariaRegionHost(h$p) {
|
|
|
42687
42696
|
}, 300);
|
|
42688
42697
|
}
|
|
42689
42698
|
};
|
|
42690
|
-
|
|
42699
|
+
Bs.styles = i$T`
|
|
42691
42700
|
${r$L(styles$b)}
|
|
42692
42701
|
`;
|
|
42693
|
-
let PrimariaShell =
|
|
42702
|
+
let PrimariaShell = Bs;
|
|
42694
42703
|
__decorateClass$e([
|
|
42695
42704
|
s$L({ targetId: "menu-region-container", name: shellApi.regionManager.regions.shell.navigationMenu })
|
|
42696
42705
|
], PrimariaShell.prototype, "navigationMenuRegion");
|
|
@@ -43942,15 +43951,15 @@ function requireQuill() {
|
|
|
43942
43951
|
return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
|
|
43943
43952
|
}, ne = /* @__PURE__ */ (function() {
|
|
43944
43953
|
function Qe(Ze, Me) {
|
|
43945
|
-
var je = [],
|
|
43954
|
+
var je = [], Ve = !0, Xe = !1, Je = void 0;
|
|
43946
43955
|
try {
|
|
43947
|
-
for (var
|
|
43956
|
+
for (var Be = Ze[Symbol.iterator](), Ke; !(Ve = (Ke = Be.next()).done) && (je.push(Ke.value), !(Me && je.length === Me)); Ve = !0)
|
|
43948
43957
|
;
|
|
43949
43958
|
} catch (rt) {
|
|
43950
43959
|
Xe = !0, Je = rt;
|
|
43951
43960
|
} finally {
|
|
43952
43961
|
try {
|
|
43953
|
-
!
|
|
43962
|
+
!Ve && Be.return && Be.return();
|
|
43954
43963
|
} finally {
|
|
43955
43964
|
if (Xe) throw Je;
|
|
43956
43965
|
}
|
|
@@ -43967,8 +43976,8 @@ function requireQuill() {
|
|
|
43967
43976
|
})(), de = /* @__PURE__ */ (function() {
|
|
43968
43977
|
function Qe(Ze, Me) {
|
|
43969
43978
|
for (var je = 0; je < Me.length; je++) {
|
|
43970
|
-
var
|
|
43971
|
-
|
|
43979
|
+
var Ve = Me[je];
|
|
43980
|
+
Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Ze, Ve.key, Ve);
|
|
43972
43981
|
}
|
|
43973
43982
|
}
|
|
43974
43983
|
return function(Ze, Me, je) {
|
|
@@ -44006,11 +44015,11 @@ function requireQuill() {
|
|
|
44006
44015
|
}, {
|
|
44007
44016
|
key: "register",
|
|
44008
44017
|
value: function(Me, je) {
|
|
44009
|
-
var
|
|
44018
|
+
var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
44010
44019
|
if (typeof Me != "string") {
|
|
44011
44020
|
var Je = Me.attrName || Me.blotName;
|
|
44012
|
-
typeof Je == "string" ? this.register("formats/" + Je, Me, je) : Object.keys(Me).forEach(function(
|
|
44013
|
-
|
|
44021
|
+
typeof Je == "string" ? this.register("formats/" + Je, Me, je) : Object.keys(Me).forEach(function(Be) {
|
|
44022
|
+
Ve.register(Be, Me[Be], je);
|
|
44014
44023
|
});
|
|
44015
44024
|
} else
|
|
44016
44025
|
this.imports[Me] != null && !Xe && Ie.warn("Overwriting " + Me + " with", je), this.imports[Me] = je, (Me.startsWith("blots/") || Me.startsWith("formats/")) && je.blotName !== "abstract" ? _e.default.register(je) : Me.startsWith("modules") && typeof je.register == "function" && je.register();
|
|
@@ -44021,19 +44030,19 @@ function requireQuill() {
|
|
|
44021
44030
|
if (Le(this, Qe), this.options = We(Ze, je), this.container = this.options.container, this.container == null)
|
|
44022
44031
|
return Ie.error("Invalid Quill container", Ze);
|
|
44023
44032
|
this.options.debug && Qe.debug(this.options.debug);
|
|
44024
|
-
var
|
|
44033
|
+
var Ve = this.container.innerHTML.trim();
|
|
44025
44034
|
this.container.classList.add("ql-container"), this.container.innerHTML = "", this.container.__quill = this, this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.root.setAttribute("data-gramm", !1), this.scrollingContainer = this.options.scrollingContainer || this.root, this.emitter = new be.default(), this.scroll = _e.default.create(this.root, {
|
|
44026
44035
|
emitter: this.emitter,
|
|
44027
44036
|
whitelist: this.options.formats
|
|
44028
44037
|
}), this.editor = new pe.default(this.scroll), this.selection = new Se.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(be.default.events.EDITOR_CHANGE, function(Je) {
|
|
44029
44038
|
Je === be.default.events.TEXT_CHANGE && Me.root.classList.toggle("ql-blank", Me.editor.isBlank());
|
|
44030
|
-
}), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je,
|
|
44039
|
+
}), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Be) {
|
|
44031
44040
|
var Ke = Me.selection.lastRange, rt = Ke && Ke.length === 0 ? Ke.index : void 0;
|
|
44032
44041
|
Ge.call(Me, function() {
|
|
44033
|
-
return Me.editor.update(null,
|
|
44042
|
+
return Me.editor.update(null, Be, rt);
|
|
44034
44043
|
}, Je);
|
|
44035
44044
|
});
|
|
44036
|
-
var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` +
|
|
44045
|
+
var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Ve + "<p><br></p></div>");
|
|
44037
44046
|
this.setContents(Xe), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
|
|
44038
44047
|
}
|
|
44039
44048
|
return de(Qe, [{
|
|
@@ -44041,8 +44050,8 @@ function requireQuill() {
|
|
|
44041
44050
|
value: function(Me) {
|
|
44042
44051
|
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
44043
44052
|
if (typeof Me == "string") {
|
|
44044
|
-
var
|
|
44045
|
-
Me = document.createElement("div"), Me.classList.add(
|
|
44053
|
+
var Ve = Me;
|
|
44054
|
+
Me = document.createElement("div"), Me.classList.add(Ve);
|
|
44046
44055
|
}
|
|
44047
44056
|
return this.container.insertBefore(Me, je), Me;
|
|
44048
44057
|
}
|
|
@@ -44053,11 +44062,11 @@ function requireQuill() {
|
|
|
44053
44062
|
}
|
|
44054
44063
|
}, {
|
|
44055
44064
|
key: "deleteText",
|
|
44056
|
-
value: function(Me, je,
|
|
44057
|
-
var Xe = this, Je = Ye(Me, je,
|
|
44058
|
-
return Me =
|
|
44065
|
+
value: function(Me, je, Ve) {
|
|
44066
|
+
var Xe = this, Je = Ye(Me, je, Ve), Be = ne(Je, 4);
|
|
44067
|
+
return Me = Be[0], je = Be[1], Ve = Be[3], Ge.call(this, function() {
|
|
44059
44068
|
return Xe.editor.deleteText(Me, je);
|
|
44060
|
-
},
|
|
44069
|
+
}, Ve, Me, -1 * je);
|
|
44061
44070
|
}
|
|
44062
44071
|
}, {
|
|
44063
44072
|
key: "disable",
|
|
@@ -44079,56 +44088,56 @@ function requireQuill() {
|
|
|
44079
44088
|
}, {
|
|
44080
44089
|
key: "format",
|
|
44081
44090
|
value: function(Me, je) {
|
|
44082
|
-
var
|
|
44091
|
+
var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be.default.sources.API;
|
|
44083
44092
|
return Ge.call(this, function() {
|
|
44084
|
-
var Je =
|
|
44093
|
+
var Je = Ve.getSelection(!0), Be = new ue.default();
|
|
44085
44094
|
if (Je == null)
|
|
44086
|
-
return
|
|
44095
|
+
return Be;
|
|
44087
44096
|
if (_e.default.query(Me, _e.default.Scope.BLOCK))
|
|
44088
|
-
|
|
44097
|
+
Be = Ve.editor.formatLine(Je.index, Je.length, Ae({}, Me, je));
|
|
44089
44098
|
else {
|
|
44090
44099
|
if (Je.length === 0)
|
|
44091
|
-
return
|
|
44092
|
-
|
|
44100
|
+
return Ve.selection.format(Me, je), Be;
|
|
44101
|
+
Be = Ve.editor.formatText(Je.index, Je.length, Ae({}, Me, je));
|
|
44093
44102
|
}
|
|
44094
|
-
return
|
|
44103
|
+
return Ve.setSelection(Je, be.default.sources.SILENT), Be;
|
|
44095
44104
|
}, Xe);
|
|
44096
44105
|
}
|
|
44097
44106
|
}, {
|
|
44098
44107
|
key: "formatLine",
|
|
44099
|
-
value: function(Me, je,
|
|
44100
|
-
var
|
|
44108
|
+
value: function(Me, je, Ve, Xe, Je) {
|
|
44109
|
+
var Be = this, Ke = void 0, rt = Ye(Me, je, Ve, Xe, Je), ot = ne(rt, 4);
|
|
44101
44110
|
return Me = ot[0], je = ot[1], Ke = ot[2], Je = ot[3], Ge.call(this, function() {
|
|
44102
|
-
return
|
|
44111
|
+
return Be.editor.formatLine(Me, je, Ke);
|
|
44103
44112
|
}, Je, Me, 0);
|
|
44104
44113
|
}
|
|
44105
44114
|
}, {
|
|
44106
44115
|
key: "formatText",
|
|
44107
|
-
value: function(Me, je,
|
|
44108
|
-
var
|
|
44116
|
+
value: function(Me, je, Ve, Xe, Je) {
|
|
44117
|
+
var Be = this, Ke = void 0, rt = Ye(Me, je, Ve, Xe, Je), ot = ne(rt, 4);
|
|
44109
44118
|
return Me = ot[0], je = ot[1], Ke = ot[2], Je = ot[3], Ge.call(this, function() {
|
|
44110
|
-
return
|
|
44119
|
+
return Be.editor.formatText(Me, je, Ke);
|
|
44111
44120
|
}, Je, Me, 0);
|
|
44112
44121
|
}
|
|
44113
44122
|
}, {
|
|
44114
44123
|
key: "getBounds",
|
|
44115
44124
|
value: function(Me) {
|
|
44116
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
44117
|
-
typeof Me == "number" ?
|
|
44125
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = void 0;
|
|
44126
|
+
typeof Me == "number" ? Ve = this.selection.getBounds(Me, je) : Ve = this.selection.getBounds(Me.index, Me.length);
|
|
44118
44127
|
var Xe = this.container.getBoundingClientRect();
|
|
44119
44128
|
return {
|
|
44120
|
-
bottom:
|
|
44121
|
-
height:
|
|
44122
|
-
left:
|
|
44123
|
-
right:
|
|
44124
|
-
top:
|
|
44125
|
-
width:
|
|
44129
|
+
bottom: Ve.bottom - Xe.top,
|
|
44130
|
+
height: Ve.height,
|
|
44131
|
+
left: Ve.left - Xe.left,
|
|
44132
|
+
right: Ve.right - Xe.left,
|
|
44133
|
+
top: Ve.top - Xe.top,
|
|
44134
|
+
width: Ve.width
|
|
44126
44135
|
};
|
|
44127
44136
|
}
|
|
44128
44137
|
}, {
|
|
44129
44138
|
key: "getContents",
|
|
44130
44139
|
value: function() {
|
|
44131
|
-
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me,
|
|
44140
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ve = Ye(Me, je), Xe = ne(Ve, 2);
|
|
44132
44141
|
return Me = Xe[0], je = Xe[1], this.editor.getContents(Me, je);
|
|
44133
44142
|
}
|
|
44134
44143
|
}, {
|
|
@@ -44177,7 +44186,7 @@ function requireQuill() {
|
|
|
44177
44186
|
}, {
|
|
44178
44187
|
key: "getText",
|
|
44179
44188
|
value: function() {
|
|
44180
|
-
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me,
|
|
44189
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ve = Ye(Me, je), Xe = ne(Ve, 2);
|
|
44181
44190
|
return Me = Xe[0], je = Xe[1], this.editor.getText(Me, je);
|
|
44182
44191
|
}
|
|
44183
44192
|
}, {
|
|
@@ -44187,18 +44196,18 @@ function requireQuill() {
|
|
|
44187
44196
|
}
|
|
44188
44197
|
}, {
|
|
44189
44198
|
key: "insertEmbed",
|
|
44190
|
-
value: function(Me, je,
|
|
44199
|
+
value: function(Me, je, Ve) {
|
|
44191
44200
|
var Xe = this, Je = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Qe.sources.API;
|
|
44192
44201
|
return Ge.call(this, function() {
|
|
44193
|
-
return Xe.editor.insertEmbed(Me, je,
|
|
44202
|
+
return Xe.editor.insertEmbed(Me, je, Ve);
|
|
44194
44203
|
}, Je, Me);
|
|
44195
44204
|
}
|
|
44196
44205
|
}, {
|
|
44197
44206
|
key: "insertText",
|
|
44198
|
-
value: function(Me, je,
|
|
44199
|
-
var
|
|
44207
|
+
value: function(Me, je, Ve, Xe, Je) {
|
|
44208
|
+
var Be = this, Ke = void 0, rt = Ye(Me, 0, Ve, Xe, Je), ot = ne(rt, 4);
|
|
44200
44209
|
return Me = ot[0], Ke = ot[2], Je = ot[3], Ge.call(this, function() {
|
|
44201
|
-
return
|
|
44210
|
+
return Be.editor.insertText(Me, je, Ke);
|
|
44202
44211
|
}, Je, Me, je.length);
|
|
44203
44212
|
}
|
|
44204
44213
|
}, {
|
|
@@ -44223,16 +44232,16 @@ function requireQuill() {
|
|
|
44223
44232
|
}
|
|
44224
44233
|
}, {
|
|
44225
44234
|
key: "pasteHTML",
|
|
44226
|
-
value: function(Me, je,
|
|
44227
|
-
this.clipboard.dangerouslyPasteHTML(Me, je,
|
|
44235
|
+
value: function(Me, je, Ve) {
|
|
44236
|
+
this.clipboard.dangerouslyPasteHTML(Me, je, Ve);
|
|
44228
44237
|
}
|
|
44229
44238
|
}, {
|
|
44230
44239
|
key: "removeFormat",
|
|
44231
|
-
value: function(Me, je,
|
|
44232
|
-
var Xe = this, Je = Ye(Me, je,
|
|
44233
|
-
return Me =
|
|
44240
|
+
value: function(Me, je, Ve) {
|
|
44241
|
+
var Xe = this, Je = Ye(Me, je, Ve), Be = ne(Je, 4);
|
|
44242
|
+
return Me = Be[0], je = Be[1], Ve = Be[3], Ge.call(this, function() {
|
|
44234
44243
|
return Xe.editor.removeFormat(Me, je);
|
|
44235
|
-
},
|
|
44244
|
+
}, Ve, Me);
|
|
44236
44245
|
}
|
|
44237
44246
|
}, {
|
|
44238
44247
|
key: "scrollIntoView",
|
|
@@ -44242,31 +44251,31 @@ function requireQuill() {
|
|
|
44242
44251
|
}, {
|
|
44243
44252
|
key: "setContents",
|
|
44244
44253
|
value: function(Me) {
|
|
44245
|
-
var je = this,
|
|
44254
|
+
var je = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
|
|
44246
44255
|
return Ge.call(this, function() {
|
|
44247
44256
|
Me = new ue.default(Me);
|
|
44248
|
-
var Xe = je.getLength(), Je = je.editor.deleteText(0, Xe),
|
|
44257
|
+
var Xe = je.getLength(), Je = je.editor.deleteText(0, Xe), Be = je.editor.applyDelta(Me), Ke = Be.ops[Be.ops.length - 1];
|
|
44249
44258
|
Ke != null && typeof Ke.insert == "string" && Ke.insert[Ke.insert.length - 1] === `
|
|
44250
|
-
` && (je.editor.deleteText(je.getLength() - 1, 1),
|
|
44251
|
-
var rt = Je.compose(
|
|
44259
|
+
` && (je.editor.deleteText(je.getLength() - 1, 1), Be.delete(1));
|
|
44260
|
+
var rt = Je.compose(Be);
|
|
44252
44261
|
return rt;
|
|
44253
|
-
},
|
|
44262
|
+
}, Ve);
|
|
44254
44263
|
}
|
|
44255
44264
|
}, {
|
|
44256
44265
|
key: "setSelection",
|
|
44257
|
-
value: function(Me, je,
|
|
44266
|
+
value: function(Me, je, Ve) {
|
|
44258
44267
|
if (Me == null)
|
|
44259
44268
|
this.selection.setRange(null, je || Qe.sources.API);
|
|
44260
44269
|
else {
|
|
44261
|
-
var Xe = Ye(Me, je,
|
|
44262
|
-
Me = Je[0], je = Je[1],
|
|
44270
|
+
var Xe = Ye(Me, je, Ve), Je = ne(Xe, 4);
|
|
44271
|
+
Me = Je[0], je = Je[1], Ve = Je[3], this.selection.setRange(new we.Range(Me, je), Ve), Ve !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
44263
44272
|
}
|
|
44264
44273
|
}
|
|
44265
44274
|
}, {
|
|
44266
44275
|
key: "setText",
|
|
44267
44276
|
value: function(Me) {
|
|
44268
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API,
|
|
44269
|
-
return this.setContents(
|
|
44277
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Ve = new ue.default().insert(Me);
|
|
44278
|
+
return this.setContents(Ve, je);
|
|
44270
44279
|
}
|
|
44271
44280
|
}, {
|
|
44272
44281
|
key: "update",
|
|
@@ -44277,10 +44286,10 @@ function requireQuill() {
|
|
|
44277
44286
|
}, {
|
|
44278
44287
|
key: "updateContents",
|
|
44279
44288
|
value: function(Me) {
|
|
44280
|
-
var je = this,
|
|
44289
|
+
var je = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
|
|
44281
44290
|
return Ge.call(this, function() {
|
|
44282
|
-
return Me = new ue.default(Me), je.editor.applyDelta(Me,
|
|
44283
|
-
},
|
|
44291
|
+
return Me = new ue.default(Me), je.editor.applyDelta(Me, Ve);
|
|
44292
|
+
}, Ve, !0);
|
|
44284
44293
|
}
|
|
44285
44294
|
}]), Qe;
|
|
44286
44295
|
})();
|
|
@@ -44317,13 +44326,13 @@ function requireQuill() {
|
|
|
44317
44326
|
Xe.modules[Je] === !0 && (Xe.modules[Je] = {});
|
|
44318
44327
|
});
|
|
44319
44328
|
});
|
|
44320
|
-
var je = Object.keys(Me.modules).concat(Object.keys(Ze.modules)),
|
|
44321
|
-
var
|
|
44322
|
-
return
|
|
44329
|
+
var je = Object.keys(Me.modules).concat(Object.keys(Ze.modules)), Ve = je.reduce(function(Xe, Je) {
|
|
44330
|
+
var Be = ze.import("modules/" + Je);
|
|
44331
|
+
return Be == null ? Ie.error("Cannot load " + Je + " module. Are you sure you registered it?") : Xe[Je] = Be.DEFAULTS || {}, Xe;
|
|
44323
44332
|
}, {});
|
|
44324
44333
|
return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
|
|
44325
44334
|
container: Ze.modules.toolbar
|
|
44326
|
-
}), Ze = (0, Ce.default)(!0, {}, ze.DEFAULTS, { modules:
|
|
44335
|
+
}), Ze = (0, Ce.default)(!0, {}, ze.DEFAULTS, { modules: Ve }, Me, Ze), ["bounds", "container", "scrollingContainer"].forEach(function(Xe) {
|
|
44327
44336
|
typeof Ze[Xe] == "string" && (Ze[Xe] = document.querySelector(Ze[Xe]));
|
|
44328
44337
|
}), Ze.modules = Object.keys(Ze.modules).reduce(function(Xe, Je) {
|
|
44329
44338
|
return Ze.modules[Je] && (Xe[Je] = Ze.modules[Je]), Xe;
|
|
@@ -44332,35 +44341,35 @@ function requireQuill() {
|
|
|
44332
44341
|
function Ge(Qe, Ze, Me, je) {
|
|
44333
44342
|
if (this.options.strict && !this.isEnabled() && Ze === be.default.sources.USER)
|
|
44334
44343
|
return new ue.default();
|
|
44335
|
-
var
|
|
44336
|
-
if (
|
|
44337
|
-
var
|
|
44338
|
-
if ((
|
|
44344
|
+
var Ve = Me == null ? null : this.getSelection(), Xe = this.editor.delta, Je = Qe();
|
|
44345
|
+
if (Ve != null && (Me === !0 && (Me = Ve.index), je == null ? Ve = ft(Ve, Je, Ze) : je !== 0 && (Ve = ft(Ve, Me, je, Ze)), this.setSelection(Ve, be.default.sources.SILENT)), Je.length() > 0) {
|
|
44346
|
+
var Be, Ke = [be.default.events.TEXT_CHANGE, Je, Xe, Ze];
|
|
44347
|
+
if ((Be = this.emitter).emit.apply(Be, [be.default.events.EDITOR_CHANGE].concat(Ke)), Ze !== be.default.sources.SILENT) {
|
|
44339
44348
|
var rt;
|
|
44340
44349
|
(rt = this.emitter).emit.apply(rt, Ke);
|
|
44341
44350
|
}
|
|
44342
44351
|
}
|
|
44343
44352
|
return Je;
|
|
44344
44353
|
}
|
|
44345
|
-
function Ye(Qe, Ze, Me, je,
|
|
44354
|
+
function Ye(Qe, Ze, Me, je, Ve) {
|
|
44346
44355
|
var Xe = {};
|
|
44347
|
-
return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (
|
|
44356
|
+
return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Ve = je, je = Me, Me = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Ve = je, je = Me, Me = Ze, Ze = 0), (typeof Me > "u" ? "undefined" : oe(Me)) === "object" ? (Xe = Me, Ve = je) : typeof Me == "string" && (je != null ? Xe[Me] = je : Ve = Me), Ve = Ve || be.default.sources.API, [Qe, Ze, Xe, Ve];
|
|
44348
44357
|
}
|
|
44349
44358
|
function ft(Qe, Ze, Me, je) {
|
|
44350
44359
|
if (Qe == null) return null;
|
|
44351
|
-
var
|
|
44360
|
+
var Ve = void 0, Xe = void 0;
|
|
44352
44361
|
if (Ze instanceof ue.default) {
|
|
44353
44362
|
var Je = [Qe.index, Qe.index + Qe.length].map(function(ot) {
|
|
44354
44363
|
return Ze.transformPosition(ot, je !== be.default.sources.USER);
|
|
44355
|
-
}),
|
|
44356
|
-
|
|
44364
|
+
}), Be = ne(Je, 2);
|
|
44365
|
+
Ve = Be[0], Xe = Be[1];
|
|
44357
44366
|
} else {
|
|
44358
44367
|
var Ke = [Qe.index, Qe.index + Qe.length].map(function(ot) {
|
|
44359
44368
|
return ot < Ze || ot === Ze && je === be.default.sources.USER ? ot : Me >= 0 ? ot + Me : Math.max(Ze, ot + Me);
|
|
44360
44369
|
}), rt = ne(Ke, 2);
|
|
44361
|
-
|
|
44370
|
+
Ve = rt[0], Xe = rt[1];
|
|
44362
44371
|
}
|
|
44363
|
-
return new we.Range(
|
|
44372
|
+
return new we.Range(Ve, Xe - Ve);
|
|
44364
44373
|
}
|
|
44365
44374
|
te.expandConfig = We, te.overload = Ye, te.default = ze;
|
|
44366
44375
|
}),
|
|
@@ -44887,15 +44896,15 @@ function requireQuill() {
|
|
|
44887
44896
|
return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
|
|
44888
44897
|
}, ne = /* @__PURE__ */ (function() {
|
|
44889
44898
|
function Qe(Ze, Me) {
|
|
44890
|
-
var je = [],
|
|
44899
|
+
var je = [], Ve = !0, Xe = !1, Je = void 0;
|
|
44891
44900
|
try {
|
|
44892
|
-
for (var
|
|
44901
|
+
for (var Be = Ze[Symbol.iterator](), Ke; !(Ve = (Ke = Be.next()).done) && (je.push(Ke.value), !(Me && je.length === Me)); Ve = !0)
|
|
44893
44902
|
;
|
|
44894
44903
|
} catch (rt) {
|
|
44895
44904
|
Xe = !0, Je = rt;
|
|
44896
44905
|
} finally {
|
|
44897
44906
|
try {
|
|
44898
|
-
!
|
|
44907
|
+
!Ve && Be.return && Be.return();
|
|
44899
44908
|
} finally {
|
|
44900
44909
|
if (Xe) throw Je;
|
|
44901
44910
|
}
|
|
@@ -44912,8 +44921,8 @@ function requireQuill() {
|
|
|
44912
44921
|
})(), de = /* @__PURE__ */ (function() {
|
|
44913
44922
|
function Qe(Ze, Me) {
|
|
44914
44923
|
for (var je = 0; je < Me.length; je++) {
|
|
44915
|
-
var
|
|
44916
|
-
|
|
44924
|
+
var Ve = Me[je];
|
|
44925
|
+
Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Ze, Ve.key, Ve);
|
|
44917
44926
|
}
|
|
44918
44927
|
}
|
|
44919
44928
|
return function(Ze, Me, je) {
|
|
@@ -44937,35 +44946,35 @@ function requireQuill() {
|
|
|
44937
44946
|
return de(Qe, [{
|
|
44938
44947
|
key: "applyDelta",
|
|
44939
44948
|
value: function(Me) {
|
|
44940
|
-
var je = this,
|
|
44949
|
+
var je = this, Ve = !1;
|
|
44941
44950
|
this.scroll.update();
|
|
44942
44951
|
var Xe = this.scroll.length();
|
|
44943
|
-
return this.scroll.batchStart(), Me = ft(Me), Me.reduce(function(Je,
|
|
44944
|
-
var Ke =
|
|
44945
|
-
if (
|
|
44946
|
-
if (typeof
|
|
44947
|
-
var ot =
|
|
44952
|
+
return this.scroll.batchStart(), Me = ft(Me), Me.reduce(function(Je, Be) {
|
|
44953
|
+
var Ke = Be.retain || Be.delete || Be.insert.length || 1, rt = Be.attributes || {};
|
|
44954
|
+
if (Be.insert != null) {
|
|
44955
|
+
if (typeof Be.insert == "string") {
|
|
44956
|
+
var ot = Be.insert;
|
|
44948
44957
|
ot.endsWith(`
|
|
44949
|
-
`) &&
|
|
44950
|
-
`) && (
|
|
44958
|
+
`) && Ve && (Ve = !1, ot = ot.slice(0, -1)), Je >= Xe && !ot.endsWith(`
|
|
44959
|
+
`) && (Ve = !0), je.scroll.insertAt(Je, ot);
|
|
44951
44960
|
var _t = je.scroll.line(Je), kt = ne(_t, 2), qt = kt[0], Lt = kt[1], Nt = (0, Ae.default)({}, (0, we.bubbleFormats)(qt));
|
|
44952
44961
|
if (qt instanceof Se.default) {
|
|
44953
|
-
var
|
|
44962
|
+
var Bt = qt.descendant(be.default.Leaf, Lt), rs = ne(Bt, 1), Kt = rs[0];
|
|
44954
44963
|
Nt = (0, Ae.default)(Nt, (0, we.bubbleFormats)(Kt));
|
|
44955
44964
|
}
|
|
44956
44965
|
rt = pe.default.attributes.diff(Nt, rt) || {};
|
|
44957
|
-
} else if (oe(
|
|
44958
|
-
var gt = Object.keys(
|
|
44966
|
+
} else if (oe(Be.insert) === "object") {
|
|
44967
|
+
var gt = Object.keys(Be.insert)[0];
|
|
44959
44968
|
if (gt == null) return Je;
|
|
44960
|
-
je.scroll.insertAt(Je, gt,
|
|
44969
|
+
je.scroll.insertAt(Je, gt, Be.insert[gt]);
|
|
44961
44970
|
}
|
|
44962
44971
|
Xe += Ke;
|
|
44963
44972
|
}
|
|
44964
44973
|
return Object.keys(rt).forEach(function(mt) {
|
|
44965
44974
|
je.scroll.formatAt(Je, Ke, mt, rt[mt]);
|
|
44966
44975
|
}), Je + Ke;
|
|
44967
|
-
}, 0), Me.reduce(function(Je,
|
|
44968
|
-
return typeof
|
|
44976
|
+
}, 0), Me.reduce(function(Je, Be) {
|
|
44977
|
+
return typeof Be.delete == "number" ? (je.scroll.deleteAt(Je, Be.delete), Je) : Je + (Be.retain || Be.insert.length || 1);
|
|
44969
44978
|
}, 0), this.scroll.batchEnd(), this.update(Me);
|
|
44970
44979
|
}
|
|
44971
44980
|
}, {
|
|
@@ -44976,16 +44985,16 @@ function requireQuill() {
|
|
|
44976
44985
|
}, {
|
|
44977
44986
|
key: "formatLine",
|
|
44978
44987
|
value: function(Me, je) {
|
|
44979
|
-
var
|
|
44988
|
+
var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
44980
44989
|
return this.scroll.update(), Object.keys(Xe).forEach(function(Je) {
|
|
44981
|
-
if (!(
|
|
44982
|
-
var
|
|
44983
|
-
|
|
44990
|
+
if (!(Ve.scroll.whitelist != null && !Ve.scroll.whitelist[Je])) {
|
|
44991
|
+
var Be = Ve.scroll.lines(Me, Math.max(je, 1)), Ke = je;
|
|
44992
|
+
Be.forEach(function(rt) {
|
|
44984
44993
|
var ot = rt.length();
|
|
44985
44994
|
if (!(rt instanceof ge.default))
|
|
44986
44995
|
rt.format(Je, Xe[Je]);
|
|
44987
44996
|
else {
|
|
44988
|
-
var _t = Me - rt.offset(
|
|
44997
|
+
var _t = Me - rt.offset(Ve.scroll), kt = rt.newlineIndex(_t + Ke) - _t + 1;
|
|
44989
44998
|
rt.formatAt(_t, kt, Je, Xe[Je]);
|
|
44990
44999
|
}
|
|
44991
45000
|
Ke -= ot;
|
|
@@ -44996,9 +45005,9 @@ function requireQuill() {
|
|
|
44996
45005
|
}, {
|
|
44997
45006
|
key: "formatText",
|
|
44998
45007
|
value: function(Me, je) {
|
|
44999
|
-
var
|
|
45008
|
+
var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
45000
45009
|
return Object.keys(Xe).forEach(function(Je) {
|
|
45001
|
-
|
|
45010
|
+
Ve.scroll.formatAt(Me, je, Je, Xe[Je]);
|
|
45002
45011
|
}), this.update(new ue.default().retain(Me).retain(je, (0, De.default)(Xe)));
|
|
45003
45012
|
}
|
|
45004
45013
|
}, {
|
|
@@ -45016,15 +45025,15 @@ function requireQuill() {
|
|
|
45016
45025
|
}, {
|
|
45017
45026
|
key: "getFormat",
|
|
45018
45027
|
value: function(Me) {
|
|
45019
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
45020
|
-
je === 0 ? this.scroll.path(Me).forEach(function(
|
|
45021
|
-
var Ke = ne(
|
|
45022
|
-
rt instanceof Se.default ?
|
|
45023
|
-
}) : (
|
|
45024
|
-
var Je = [
|
|
45025
|
-
if (
|
|
45026
|
-
for (var Ke = (0, we.bubbleFormats)(
|
|
45027
|
-
var rt =
|
|
45028
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = [], Xe = [];
|
|
45029
|
+
je === 0 ? this.scroll.path(Me).forEach(function(Be) {
|
|
45030
|
+
var Ke = ne(Be, 1), rt = Ke[0];
|
|
45031
|
+
rt instanceof Se.default ? Ve.push(rt) : rt instanceof be.default.Leaf && Xe.push(rt);
|
|
45032
|
+
}) : (Ve = this.scroll.lines(Me, je), Xe = this.scroll.descendants(be.default.Leaf, Me, je));
|
|
45033
|
+
var Je = [Ve, Xe].map(function(Be) {
|
|
45034
|
+
if (Be.length === 0) return {};
|
|
45035
|
+
for (var Ke = (0, we.bubbleFormats)(Be.shift()); Object.keys(Ke).length > 0; ) {
|
|
45036
|
+
var rt = Be.shift();
|
|
45028
45037
|
if (rt == null) return Ke;
|
|
45029
45038
|
Ke = Ye((0, we.bubbleFormats)(rt), Ke);
|
|
45030
45039
|
}
|
|
@@ -45035,25 +45044,25 @@ function requireQuill() {
|
|
|
45035
45044
|
}, {
|
|
45036
45045
|
key: "getText",
|
|
45037
45046
|
value: function(Me, je) {
|
|
45038
|
-
return this.getContents(Me, je).filter(function(
|
|
45039
|
-
return typeof
|
|
45040
|
-
}).map(function(
|
|
45041
|
-
return
|
|
45047
|
+
return this.getContents(Me, je).filter(function(Ve) {
|
|
45048
|
+
return typeof Ve.insert == "string";
|
|
45049
|
+
}).map(function(Ve) {
|
|
45050
|
+
return Ve.insert;
|
|
45042
45051
|
}).join("");
|
|
45043
45052
|
}
|
|
45044
45053
|
}, {
|
|
45045
45054
|
key: "insertEmbed",
|
|
45046
|
-
value: function(Me, je,
|
|
45047
|
-
return this.scroll.insertAt(Me, je,
|
|
45055
|
+
value: function(Me, je, Ve) {
|
|
45056
|
+
return this.scroll.insertAt(Me, je, Ve), this.update(new ue.default().retain(Me).insert(Ie({}, je, Ve)));
|
|
45048
45057
|
}
|
|
45049
45058
|
}, {
|
|
45050
45059
|
key: "insertText",
|
|
45051
45060
|
value: function(Me, je) {
|
|
45052
|
-
var
|
|
45061
|
+
var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
45053
45062
|
return je = je.replace(/\r\n/g, `
|
|
45054
45063
|
`).replace(/\r/g, `
|
|
45055
45064
|
`), this.scroll.insertAt(Me, je), Object.keys(Xe).forEach(function(Je) {
|
|
45056
|
-
|
|
45065
|
+
Ve.scroll.formatAt(Me, je.length, Je, Xe[Je]);
|
|
45057
45066
|
}), this.update(new ue.default().retain(Me).insert(je, (0, De.default)(Xe)));
|
|
45058
45067
|
}
|
|
45059
45068
|
}, {
|
|
@@ -45067,23 +45076,23 @@ function requireQuill() {
|
|
|
45067
45076
|
}, {
|
|
45068
45077
|
key: "removeFormat",
|
|
45069
45078
|
value: function(Me, je) {
|
|
45070
|
-
var
|
|
45071
|
-
|
|
45079
|
+
var Ve = this.getText(Me, je), Xe = this.scroll.line(Me + je), Je = ne(Xe, 2), Be = Je[0], Ke = Je[1], rt = 0, ot = new ue.default();
|
|
45080
|
+
Be != null && (Be instanceof ge.default ? rt = Be.newlineIndex(Ke) - Ke + 1 : rt = Be.length() - Ke, ot = Be.delta().slice(Ke, Ke + rt - 1).insert(`
|
|
45072
45081
|
`));
|
|
45073
|
-
var _t = this.getContents(Me, je + rt), kt = _t.diff(new ue.default().insert(
|
|
45082
|
+
var _t = this.getContents(Me, je + rt), kt = _t.diff(new ue.default().insert(Ve).concat(ot)), qt = new ue.default().retain(Me).concat(kt);
|
|
45074
45083
|
return this.applyDelta(qt);
|
|
45075
45084
|
}
|
|
45076
45085
|
}, {
|
|
45077
45086
|
key: "update",
|
|
45078
45087
|
value: function(Me) {
|
|
45079
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [],
|
|
45088
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Ve = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
|
|
45080
45089
|
if (je.length === 1 && je[0].type === "characterData" && je[0].target.data.match(We) && be.default.find(je[0].target)) {
|
|
45081
|
-
var Je = be.default.find(je[0].target),
|
|
45090
|
+
var Je = be.default.find(je[0].target), Be = (0, we.bubbleFormats)(Je), Ke = Je.offset(this.scroll), rt = je[0].oldValue.replace(_e.default.CONTENTS, ""), ot = new ue.default().insert(rt), _t = new ue.default().insert(Je.value()), kt = new ue.default().retain(Ke).concat(ot.diff(_t, Ve));
|
|
45082
45091
|
Me = kt.reduce(function(qt, Lt) {
|
|
45083
|
-
return Lt.insert ? qt.insert(Lt.insert,
|
|
45092
|
+
return Lt.insert ? qt.insert(Lt.insert, Be) : qt.push(Lt);
|
|
45084
45093
|
}, new ue.default()), this.delta = Xe.compose(Me);
|
|
45085
45094
|
} else
|
|
45086
|
-
this.delta = this.getDelta(), (!Me || !(0, He.default)(Xe.compose(Me), this.delta)) && (Me = Xe.diff(this.delta,
|
|
45095
|
+
this.delta = this.getDelta(), (!Me || !(0, He.default)(Xe.compose(Me), this.delta)) && (Me = Xe.diff(this.delta, Ve));
|
|
45087
45096
|
return Me;
|
|
45088
45097
|
}
|
|
45089
45098
|
}]), Qe;
|
|
@@ -45100,10 +45109,10 @@ function requireQuill() {
|
|
|
45100
45109
|
return delete je.image, Ze.insert({ image: Me.attributes.image }, je);
|
|
45101
45110
|
}
|
|
45102
45111
|
if (Me.attributes != null && (Me.attributes.list === !0 || Me.attributes.bullet === !0) && (Me = (0, De.default)(Me), Me.attributes.list ? Me.attributes.list = "ordered" : (Me.attributes.list = "bullet", delete Me.attributes.bullet)), typeof Me.insert == "string") {
|
|
45103
|
-
var
|
|
45112
|
+
var Ve = Me.insert.replace(/\r\n/g, `
|
|
45104
45113
|
`).replace(/\r/g, `
|
|
45105
45114
|
`);
|
|
45106
|
-
return Ze.insert(
|
|
45115
|
+
return Ze.insert(Ve, Me.attributes);
|
|
45107
45116
|
}
|
|
45108
45117
|
return Ze.push(Me);
|
|
45109
45118
|
}, new ue.default());
|
|
@@ -45257,17 +45266,17 @@ function requireQuill() {
|
|
|
45257
45266
|
var Me = document.createRange();
|
|
45258
45267
|
if (Le > 0) {
|
|
45259
45268
|
Me.setStart(ze, ft);
|
|
45260
|
-
var je = this.scroll.leaf(Ae + Le),
|
|
45261
|
-
if (Ye =
|
|
45269
|
+
var je = this.scroll.leaf(Ae + Le), Ve = oe(je, 2);
|
|
45270
|
+
if (Ye = Ve[0], ft = Ve[1], Ye == null) return null;
|
|
45262
45271
|
var Xe = Ye.position(ft, !0), Je = oe(Xe, 2);
|
|
45263
45272
|
return ze = Je[0], ft = Je[1], Me.setEnd(ze, ft), Me.getBoundingClientRect();
|
|
45264
45273
|
} else {
|
|
45265
|
-
var
|
|
45266
|
-
return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft),
|
|
45274
|
+
var Be = "left", Ke = void 0;
|
|
45275
|
+
return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft), Be = "right"), Ke = Me.getBoundingClientRect()) : (Ke = Ye.domNode.getBoundingClientRect(), ft > 0 && (Be = "right")), {
|
|
45267
45276
|
bottom: Ke.top + Ke.height,
|
|
45268
45277
|
height: Ke.height,
|
|
45269
|
-
left: Ke[
|
|
45270
|
-
right: Ke[
|
|
45278
|
+
left: Ke[Be],
|
|
45279
|
+
right: Ke[Be],
|
|
45271
45280
|
top: Ke.top,
|
|
45272
45281
|
width: 0
|
|
45273
45282
|
};
|
|
@@ -45332,7 +45341,7 @@ function requireQuill() {
|
|
|
45332
45341
|
var Le = this, Ie = Ae.collapsed ? [Ae.index] : [Ae.index, Ae.index + Ae.length], ze = [], We = this.scroll.length();
|
|
45333
45342
|
return Ie.forEach(function(Ge, Ye) {
|
|
45334
45343
|
Ge = Math.min(We - 1, Ge);
|
|
45335
|
-
var ft = void 0, Qe = Le.scroll.leaf(Ge), Ze = oe(Qe, 2), Me = Ze[0], je = Ze[1],
|
|
45344
|
+
var ft = void 0, Qe = Le.scroll.leaf(Ge), Ze = oe(Qe, 2), Me = Ze[0], je = Ze[1], Ve = Me.position(je, Ye !== 0), Xe = oe(Ve, 2);
|
|
45336
45345
|
ft = Xe[0], je = Xe[1], ze.push(ft, je);
|
|
45337
45346
|
}), ze.length < 2 && (ze = ze.concat(ze)), ze;
|
|
45338
45347
|
}
|
|
@@ -45873,8 +45882,8 @@ function requireQuill() {
|
|
|
45873
45882
|
ye.push(Fe), Ce.push(qe);
|
|
45874
45883
|
}
|
|
45875
45884
|
oe(Fe, ne) && Fe.forEach(function(Ze, Me) {
|
|
45876
|
-
var je = De(Me, He - 1),
|
|
45877
|
-
qe.set(je,
|
|
45885
|
+
var je = De(Me, He - 1), Ve = De(Ze, He - 1);
|
|
45886
|
+
qe.set(je, Ve);
|
|
45878
45887
|
}), oe(Fe, de) && Fe.forEach(function(Ze) {
|
|
45879
45888
|
var Me = De(Ze, He - 1);
|
|
45880
45889
|
qe.add(Me);
|
|
@@ -46041,8 +46050,8 @@ function requireQuill() {
|
|
|
46041
46050
|
return;
|
|
46042
46051
|
}
|
|
46043
46052
|
} else if (Me instanceof _e.default) {
|
|
46044
|
-
var
|
|
46045
|
-
|
|
46053
|
+
var Ve = Me.newlineIndex(0);
|
|
46054
|
+
Ve > -1 && Me.split(Ve + 1);
|
|
46046
46055
|
}
|
|
46047
46056
|
var Xe = Me.children.head instanceof ge.default ? null : Me.children.head;
|
|
46048
46057
|
Ye.moveChildren(Me, Xe), Ye.remove();
|
|
@@ -46102,8 +46111,8 @@ function requireQuill() {
|
|
|
46102
46111
|
value: function() {
|
|
46103
46112
|
var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ye, ft, Qe) {
|
|
46104
46113
|
var Ze = [], Me = Qe;
|
|
46105
|
-
return Ye.children.forEachAt(ft, Qe, function(je,
|
|
46106
|
-
Fe(je) ? Ze.push(je) : je instanceof ue.default.Container && (Ze = Ze.concat(Ge(je,
|
|
46114
|
+
return Ye.children.forEachAt(ft, Qe, function(je, Ve, Xe) {
|
|
46115
|
+
Fe(je) ? Ze.push(je) : je instanceof ue.default.Container && (Ze = Ze.concat(Ge(je, Ve, Me))), Me -= Xe;
|
|
46107
46116
|
}), Ze;
|
|
46108
46117
|
};
|
|
46109
46118
|
return We(this, Ie, ze);
|
|
@@ -46137,18 +46146,18 @@ function requireQuill() {
|
|
|
46137
46146
|
Object.defineProperty(te, "__esModule", {
|
|
46138
46147
|
value: !0
|
|
46139
46148
|
}), te.SHORTKEY = te.default = void 0;
|
|
46140
|
-
var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
46141
|
-
return typeof
|
|
46142
|
-
} : function(
|
|
46143
|
-
return
|
|
46149
|
+
var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Be) {
|
|
46150
|
+
return typeof Be;
|
|
46151
|
+
} : function(Be) {
|
|
46152
|
+
return Be && typeof Symbol == "function" && Be.constructor === Symbol && Be !== Symbol.prototype ? "symbol" : typeof Be;
|
|
46144
46153
|
}, ne = /* @__PURE__ */ (function() {
|
|
46145
|
-
function
|
|
46154
|
+
function Be(Ke, rt) {
|
|
46146
46155
|
var ot = [], _t = !0, kt = !1, qt = void 0;
|
|
46147
46156
|
try {
|
|
46148
46157
|
for (var Lt = Ke[Symbol.iterator](), Nt; !(_t = (Nt = Lt.next()).done) && (ot.push(Nt.value), !(rt && ot.length === rt)); _t = !0)
|
|
46149
46158
|
;
|
|
46150
|
-
} catch (
|
|
46151
|
-
kt = !0, qt =
|
|
46159
|
+
} catch (Bt) {
|
|
46160
|
+
kt = !0, qt = Bt;
|
|
46152
46161
|
} finally {
|
|
46153
46162
|
try {
|
|
46154
46163
|
!_t && Lt.return && Lt.return();
|
|
@@ -46162,42 +46171,42 @@ function requireQuill() {
|
|
|
46162
46171
|
if (Array.isArray(Ke))
|
|
46163
46172
|
return Ke;
|
|
46164
46173
|
if (Symbol.iterator in Object(Ke))
|
|
46165
|
-
return
|
|
46174
|
+
return Be(Ke, rt);
|
|
46166
46175
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
46167
46176
|
};
|
|
46168
46177
|
})(), de = /* @__PURE__ */ (function() {
|
|
46169
|
-
function
|
|
46178
|
+
function Be(Ke, rt) {
|
|
46170
46179
|
for (var ot = 0; ot < rt.length; ot++) {
|
|
46171
46180
|
var _t = rt[ot];
|
|
46172
46181
|
_t.enumerable = _t.enumerable || !1, _t.configurable = !0, "value" in _t && (_t.writable = !0), Object.defineProperty(Ke, _t.key, _t);
|
|
46173
46182
|
}
|
|
46174
46183
|
}
|
|
46175
46184
|
return function(Ke, rt, ot) {
|
|
46176
|
-
return rt &&
|
|
46185
|
+
return rt && Be(Ke.prototype, rt), ot && Be(Ke, ot), Ke;
|
|
46177
46186
|
};
|
|
46178
46187
|
})(), ce = re(21), ue = qe(ce), he = re(11), pe = qe(he), fe = re(3), be = qe(fe), me = re(2), ge = qe(me), ve = re(20), _e = qe(ve), we = re(0), Se = qe(we), ye = re(5), Ce = qe(ye), Pe = re(10), De = qe(Pe), Fe = re(9), He = qe(Fe);
|
|
46179
|
-
function qe(
|
|
46180
|
-
return
|
|
46188
|
+
function qe(Be) {
|
|
46189
|
+
return Be && Be.__esModule ? Be : { default: Be };
|
|
46181
46190
|
}
|
|
46182
|
-
function Ae(
|
|
46183
|
-
return Ke in
|
|
46191
|
+
function Ae(Be, Ke, rt) {
|
|
46192
|
+
return Ke in Be ? Object.defineProperty(Be, Ke, { value: rt, enumerable: !0, configurable: !0, writable: !0 }) : Be[Ke] = rt, Be;
|
|
46184
46193
|
}
|
|
46185
|
-
function Le(
|
|
46186
|
-
if (!(
|
|
46194
|
+
function Le(Be, Ke) {
|
|
46195
|
+
if (!(Be instanceof Ke))
|
|
46187
46196
|
throw new TypeError("Cannot call a class as a function");
|
|
46188
46197
|
}
|
|
46189
|
-
function Ie(
|
|
46190
|
-
if (!
|
|
46198
|
+
function Ie(Be, Ke) {
|
|
46199
|
+
if (!Be)
|
|
46191
46200
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46192
|
-
return Ke && (typeof Ke == "object" || typeof Ke == "function") ? Ke :
|
|
46201
|
+
return Ke && (typeof Ke == "object" || typeof Ke == "function") ? Ke : Be;
|
|
46193
46202
|
}
|
|
46194
|
-
function ze(
|
|
46203
|
+
function ze(Be, Ke) {
|
|
46195
46204
|
if (typeof Ke != "function" && Ke !== null)
|
|
46196
46205
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ke);
|
|
46197
|
-
|
|
46206
|
+
Be.prototype = Object.create(Ke && Ke.prototype, { constructor: { value: Be, enumerable: !1, writable: !0, configurable: !0 } }), Ke && (Object.setPrototypeOf ? Object.setPrototypeOf(Be, Ke) : Be.__proto__ = Ke);
|
|
46198
46207
|
}
|
|
46199
|
-
var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ye = (function(
|
|
46200
|
-
ze(Ke,
|
|
46208
|
+
var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ye = (function(Be) {
|
|
46209
|
+
ze(Ke, Be), de(Ke, null, [{
|
|
46201
46210
|
key: "match",
|
|
46202
46211
|
value: function(ot, _t) {
|
|
46203
46212
|
return _t = Je(_t), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(kt) {
|
|
@@ -46233,7 +46242,7 @@ function requireQuill() {
|
|
|
46233
46242
|
if (qt.length !== 0) {
|
|
46234
46243
|
var Lt = ot.quill.getSelection();
|
|
46235
46244
|
if (!(Lt == null || !ot.quill.hasFocus())) {
|
|
46236
|
-
var Nt = ot.quill.getLine(Lt.index),
|
|
46245
|
+
var Nt = ot.quill.getLine(Lt.index), Bt = ne(Nt, 2), rs = Bt[0], Kt = Bt[1], gt = ot.quill.getLeaf(Lt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], $t = Lt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(Lt.index + Lt.length), Mt = ne($t, 2), Ft = Mt[0], zt = Mt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Ft instanceof Se.default.Text ? Ft.value().slice(zt) : "", Yt = {
|
|
46237
46246
|
collapsed: Lt.length === 0,
|
|
46238
46247
|
empty: Lt.length === 0 && rs.length() <= 1,
|
|
46239
46248
|
format: ot.quill.getFormat(Lt),
|
|
@@ -46308,8 +46317,8 @@ function requireQuill() {
|
|
|
46308
46317
|
rt.format.indent != null ? this.quill.format("indent", "-1", Ce.default.sources.USER) : rt.format.list != null && this.quill.format("list", !1, Ce.default.sources.USER);
|
|
46309
46318
|
}
|
|
46310
46319
|
},
|
|
46311
|
-
"indent code-block":
|
|
46312
|
-
"outdent code-block":
|
|
46320
|
+
"indent code-block": Ve(!0),
|
|
46321
|
+
"outdent code-block": Ve(!1),
|
|
46313
46322
|
"remove tab": {
|
|
46314
46323
|
key: Ye.keys.TAB,
|
|
46315
46324
|
shiftKey: !0,
|
|
@@ -46382,8 +46391,8 @@ function requireQuill() {
|
|
|
46382
46391
|
Nt = "ordered";
|
|
46383
46392
|
}
|
|
46384
46393
|
this.quill.insertText(Ke.index, " ", Ce.default.sources.USER), this.quill.history.cutoff();
|
|
46385
|
-
var
|
|
46386
|
-
this.quill.updateContents(
|
|
46394
|
+
var Bt = new ge.default().retain(Ke.index - Lt).delete(ot + 1).retain(qt.length() - 2 - Lt).retain(1, { list: Nt });
|
|
46395
|
+
this.quill.updateContents(Bt, Ce.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ke.index - ot, Ce.default.sources.SILENT);
|
|
46387
46396
|
}
|
|
46388
46397
|
},
|
|
46389
46398
|
"code exit": {
|
|
@@ -46403,103 +46412,103 @@ function requireQuill() {
|
|
|
46403
46412
|
"embed right shift": ft(Ye.keys.RIGHT, !0)
|
|
46404
46413
|
}
|
|
46405
46414
|
};
|
|
46406
|
-
function ft(
|
|
46407
|
-
var rt, ot =
|
|
46415
|
+
function ft(Be, Ke) {
|
|
46416
|
+
var rt, ot = Be === Ye.keys.LEFT ? "prefix" : "suffix";
|
|
46408
46417
|
return rt = {
|
|
46409
|
-
key:
|
|
46418
|
+
key: Be,
|
|
46410
46419
|
shiftKey: Ke,
|
|
46411
46420
|
altKey: null
|
|
46412
46421
|
}, Ae(rt, ot, /^$/), Ae(rt, "handler", function(kt) {
|
|
46413
46422
|
var qt = kt.index;
|
|
46414
|
-
|
|
46415
|
-
var Lt = this.quill.getLeaf(qt), Nt = ne(Lt, 1),
|
|
46416
|
-
return
|
|
46423
|
+
Be === Ye.keys.RIGHT && (qt += kt.length + 1);
|
|
46424
|
+
var Lt = this.quill.getLeaf(qt), Nt = ne(Lt, 1), Bt = Nt[0];
|
|
46425
|
+
return Bt instanceof Se.default.Embed ? (Be === Ye.keys.LEFT ? Ke ? this.quill.setSelection(kt.index - 1, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index - 1, Ce.default.sources.USER) : Ke ? this.quill.setSelection(kt.index, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Ce.default.sources.USER), !1) : !0;
|
|
46417
46426
|
}), rt;
|
|
46418
46427
|
}
|
|
46419
|
-
function Qe(
|
|
46420
|
-
if (!(
|
|
46421
|
-
var rt = this.quill.getLine(
|
|
46428
|
+
function Qe(Be, Ke) {
|
|
46429
|
+
if (!(Be.index === 0 || this.quill.getLength() <= 1)) {
|
|
46430
|
+
var rt = this.quill.getLine(Be.index), ot = ne(rt, 1), _t = ot[0], kt = {};
|
|
46422
46431
|
if (Ke.offset === 0) {
|
|
46423
|
-
var qt = this.quill.getLine(
|
|
46432
|
+
var qt = this.quill.getLine(Be.index - 1), Lt = ne(qt, 1), Nt = Lt[0];
|
|
46424
46433
|
if (Nt != null && Nt.length() > 1) {
|
|
46425
|
-
var
|
|
46426
|
-
kt = _e.default.attributes.diff(
|
|
46434
|
+
var Bt = _t.formats(), rs = this.quill.getFormat(Be.index - 1, 1);
|
|
46435
|
+
kt = _e.default.attributes.diff(Bt, rs) || {};
|
|
46427
46436
|
}
|
|
46428
46437
|
}
|
|
46429
46438
|
var Kt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ke.prefix) ? 2 : 1;
|
|
46430
|
-
this.quill.deleteText(
|
|
46439
|
+
this.quill.deleteText(Be.index - Kt, Kt, Ce.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Be.index - Kt, Kt, kt, Ce.default.sources.USER), this.quill.focus();
|
|
46431
46440
|
}
|
|
46432
46441
|
}
|
|
46433
|
-
function Ze(
|
|
46442
|
+
function Ze(Be, Ke) {
|
|
46434
46443
|
var rt = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ke.suffix) ? 2 : 1;
|
|
46435
|
-
if (!(
|
|
46436
|
-
var ot = {}, _t = 0, kt = this.quill.getLine(
|
|
46444
|
+
if (!(Be.index >= this.quill.getLength() - rt)) {
|
|
46445
|
+
var ot = {}, _t = 0, kt = this.quill.getLine(Be.index), qt = ne(kt, 1), Lt = qt[0];
|
|
46437
46446
|
if (Ke.offset >= Lt.length() - 1) {
|
|
46438
|
-
var Nt = this.quill.getLine(
|
|
46447
|
+
var Nt = this.quill.getLine(Be.index + 1), Bt = ne(Nt, 1), rs = Bt[0];
|
|
46439
46448
|
if (rs) {
|
|
46440
|
-
var Kt = Lt.formats(), gt = this.quill.getFormat(
|
|
46449
|
+
var Kt = Lt.formats(), gt = this.quill.getFormat(Be.index, 1);
|
|
46441
46450
|
ot = _e.default.attributes.diff(Kt, gt) || {}, _t = rs.length();
|
|
46442
46451
|
}
|
|
46443
46452
|
}
|
|
46444
|
-
this.quill.deleteText(
|
|
46453
|
+
this.quill.deleteText(Be.index, rt, Ce.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine(Be.index + _t - 1, rt, ot, Ce.default.sources.USER);
|
|
46445
46454
|
}
|
|
46446
46455
|
}
|
|
46447
|
-
function Me(
|
|
46448
|
-
var Ke = this.quill.getLines(
|
|
46456
|
+
function Me(Be) {
|
|
46457
|
+
var Ke = this.quill.getLines(Be), rt = {};
|
|
46449
46458
|
if (Ke.length > 1) {
|
|
46450
46459
|
var ot = Ke[0].formats(), _t = Ke[Ke.length - 1].formats();
|
|
46451
46460
|
rt = _e.default.attributes.diff(_t, ot) || {};
|
|
46452
46461
|
}
|
|
46453
|
-
this.quill.deleteText(
|
|
46462
|
+
this.quill.deleteText(Be, Ce.default.sources.USER), Object.keys(rt).length > 0 && this.quill.formatLine(Be.index, 1, rt, Ce.default.sources.USER), this.quill.setSelection(Be.index, Ce.default.sources.SILENT), this.quill.focus();
|
|
46454
46463
|
}
|
|
46455
|
-
function je(
|
|
46464
|
+
function je(Be, Ke) {
|
|
46456
46465
|
var rt = this;
|
|
46457
|
-
|
|
46466
|
+
Be.length > 0 && this.quill.scroll.deleteAt(Be.index, Be.length);
|
|
46458
46467
|
var ot = Object.keys(Ke.format).reduce(function(_t, kt) {
|
|
46459
46468
|
return Se.default.query(kt, Se.default.Scope.BLOCK) && !Array.isArray(Ke.format[kt]) && (_t[kt] = Ke.format[kt]), _t;
|
|
46460
46469
|
}, {});
|
|
46461
|
-
this.quill.insertText(
|
|
46462
|
-
`, ot, Ce.default.sources.USER), this.quill.setSelection(
|
|
46470
|
+
this.quill.insertText(Be.index, `
|
|
46471
|
+
`, ot, Ce.default.sources.USER), this.quill.setSelection(Be.index + 1, Ce.default.sources.SILENT), this.quill.focus(), Object.keys(Ke.format).forEach(function(_t) {
|
|
46463
46472
|
ot[_t] == null && (Array.isArray(Ke.format[_t]) || _t !== "link" && rt.quill.format(_t, Ke.format[_t], Ce.default.sources.USER));
|
|
46464
46473
|
});
|
|
46465
46474
|
}
|
|
46466
|
-
function Be
|
|
46475
|
+
function Ve(Be) {
|
|
46467
46476
|
return {
|
|
46468
46477
|
key: Ye.keys.TAB,
|
|
46469
|
-
shiftKey: !
|
|
46478
|
+
shiftKey: !Be,
|
|
46470
46479
|
format: { "code-block": !0 },
|
|
46471
46480
|
handler: function(rt) {
|
|
46472
|
-
var ot = Se.default.query("code-block"), _t = rt.index, kt = rt.length, qt = this.quill.scroll.descendant(ot, _t), Lt = ne(qt, 2), Nt = Lt[0],
|
|
46481
|
+
var ot = Se.default.query("code-block"), _t = rt.index, kt = rt.length, qt = this.quill.scroll.descendant(ot, _t), Lt = ne(qt, 2), Nt = Lt[0], Bt = Lt[1];
|
|
46473
46482
|
if (Nt != null) {
|
|
46474
|
-
var rs = this.quill.getIndex(Nt), Kt = Nt.newlineIndex(
|
|
46483
|
+
var rs = this.quill.getIndex(Nt), Kt = Nt.newlineIndex(Bt, !0) + 1, gt = Nt.newlineIndex(rs + Bt + kt), mt = Nt.domNode.textContent.slice(Kt, gt).split(`
|
|
46475
46484
|
`);
|
|
46476
|
-
|
|
46477
|
-
|
|
46485
|
+
Bt = 0, mt.forEach(function(xt, Ct) {
|
|
46486
|
+
Be ? (Nt.insertAt(Kt + Bt, ot.TAB), Bt += ot.TAB.length, Ct === 0 ? _t += ot.TAB.length : kt += ot.TAB.length) : xt.startsWith(ot.TAB) && (Nt.deleteAt(Kt + Bt, ot.TAB.length), Bt -= ot.TAB.length, Ct === 0 ? _t -= ot.TAB.length : kt -= ot.TAB.length), Bt += xt.length + 1;
|
|
46478
46487
|
}), this.quill.update(Ce.default.sources.USER), this.quill.setSelection(_t, kt, Ce.default.sources.SILENT);
|
|
46479
46488
|
}
|
|
46480
46489
|
}
|
|
46481
46490
|
};
|
|
46482
46491
|
}
|
|
46483
|
-
function Xe(
|
|
46492
|
+
function Xe(Be) {
|
|
46484
46493
|
return {
|
|
46485
|
-
key:
|
|
46494
|
+
key: Be[0].toUpperCase(),
|
|
46486
46495
|
shortKey: !0,
|
|
46487
46496
|
handler: function(rt, ot) {
|
|
46488
|
-
this.quill.format(
|
|
46497
|
+
this.quill.format(Be, !ot.format[Be], Ce.default.sources.USER);
|
|
46489
46498
|
}
|
|
46490
46499
|
};
|
|
46491
46500
|
}
|
|
46492
|
-
function Je(
|
|
46493
|
-
if (typeof
|
|
46494
|
-
return Je({ key:
|
|
46495
|
-
if ((typeof
|
|
46496
|
-
if (Ye.keys[
|
|
46497
|
-
|
|
46498
|
-
else if (
|
|
46499
|
-
|
|
46501
|
+
function Je(Be) {
|
|
46502
|
+
if (typeof Be == "string" || typeof Be == "number")
|
|
46503
|
+
return Je({ key: Be });
|
|
46504
|
+
if ((typeof Be > "u" ? "undefined" : oe(Be)) === "object" && (Be = (0, ue.default)(Be, !1)), typeof Be.key == "string")
|
|
46505
|
+
if (Ye.keys[Be.key.toUpperCase()] != null)
|
|
46506
|
+
Be.key = Ye.keys[Be.key.toUpperCase()];
|
|
46507
|
+
else if (Be.key.length === 1)
|
|
46508
|
+
Be.key = Be.key.toUpperCase().charCodeAt(0);
|
|
46500
46509
|
else
|
|
46501
46510
|
return null;
|
|
46502
|
-
return
|
|
46511
|
+
return Be.shortKey && (Be[Ge] = Be.shortKey, delete Be.shortKey), Be;
|
|
46503
46512
|
}
|
|
46504
46513
|
te.default = Ye, te.SHORTKEY = Ge;
|
|
46505
46514
|
}),
|
|
@@ -47360,8 +47369,8 @@ function requireQuill() {
|
|
|
47360
47369
|
throw new TypeError("unexpected type: " + Le.type);
|
|
47361
47370
|
return Ae.setStart(Ge, 0), Ae.setEnd(Ye, Ye.length), { range: Ae, mode: "all" };
|
|
47362
47371
|
}
|
|
47363
|
-
var Ze = We(), Me = void 0, je = void 0,
|
|
47364
|
-
return ft ? (Le.extend(Ge, 0), Me = We() + ye(Ge), Le.extend(Ye,
|
|
47372
|
+
var Ze = We(), Me = void 0, je = void 0, Ve = Ye.length - Ce(Ye);
|
|
47373
|
+
return ft ? (Le.extend(Ge, 0), Me = We() + ye(Ge), Le.extend(Ye, Ve), je = Ve - (We() - Ze), Le.extend(Ye, je)) : (Le.extend(Ye, Ve), je = Ve - We(), Le.extend(Ge, 0), Me = We() - Ze + ye(Ge), Le.extend(Ge, Me)), Ae.setStart(Ge, Me), Ae.setEnd(Ye, je), {
|
|
47365
47374
|
mode: ft ? "right" : "left",
|
|
47366
47375
|
range: Ae
|
|
47367
47376
|
};
|
|
@@ -47826,92 +47835,92 @@ function requireQuill() {
|
|
|
47826
47835
|
value: !0
|
|
47827
47836
|
}), te.default = te.BaseTooltip = void 0;
|
|
47828
47837
|
var oe = /* @__PURE__ */ (function() {
|
|
47829
|
-
function je(
|
|
47838
|
+
function je(Ve, Xe) {
|
|
47830
47839
|
for (var Je = 0; Je < Xe.length; Je++) {
|
|
47831
|
-
var
|
|
47832
|
-
|
|
47840
|
+
var Be = Xe[Je];
|
|
47841
|
+
Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ve, Be.key, Be);
|
|
47833
47842
|
}
|
|
47834
47843
|
}
|
|
47835
|
-
return function(
|
|
47836
|
-
return Xe && je(
|
|
47844
|
+
return function(Ve, Xe, Je) {
|
|
47845
|
+
return Xe && je(Ve.prototype, Xe), Je && je(Ve, Je), Ve;
|
|
47837
47846
|
};
|
|
47838
|
-
})(), ne = function je(
|
|
47839
|
-
|
|
47840
|
-
var
|
|
47841
|
-
if (
|
|
47842
|
-
var Ke = Object.getPrototypeOf(
|
|
47847
|
+
})(), ne = function je(Ve, Xe, Je) {
|
|
47848
|
+
Ve === null && (Ve = Function.prototype);
|
|
47849
|
+
var Be = Object.getOwnPropertyDescriptor(Ve, Xe);
|
|
47850
|
+
if (Be === void 0) {
|
|
47851
|
+
var Ke = Object.getPrototypeOf(Ve);
|
|
47843
47852
|
return Ke === null ? void 0 : je(Ke, Xe, Je);
|
|
47844
47853
|
} else {
|
|
47845
|
-
if ("value" in
|
|
47846
|
-
return
|
|
47847
|
-
var rt =
|
|
47854
|
+
if ("value" in Be)
|
|
47855
|
+
return Be.value;
|
|
47856
|
+
var rt = Be.get;
|
|
47848
47857
|
return rt === void 0 ? void 0 : rt.call(Je);
|
|
47849
47858
|
}
|
|
47850
47859
|
}, de = re(3), ce = He(de), ue = re(2), he = He(ue), pe = re(8), fe = He(pe), be = re(23), me = He(be), ge = re(35), ve = He(ge), _e = re(60), we = He(_e), Se = re(61), ye = He(Se), Ce = re(28), Pe = He(Ce), De = re(62), Fe = He(De);
|
|
47851
47860
|
function He(je) {
|
|
47852
47861
|
return je && je.__esModule ? je : { default: je };
|
|
47853
47862
|
}
|
|
47854
|
-
function qe(je,
|
|
47855
|
-
if (!(je instanceof
|
|
47863
|
+
function qe(je, Ve) {
|
|
47864
|
+
if (!(je instanceof Ve))
|
|
47856
47865
|
throw new TypeError("Cannot call a class as a function");
|
|
47857
47866
|
}
|
|
47858
|
-
function Ae(je,
|
|
47867
|
+
function Ae(je, Ve) {
|
|
47859
47868
|
if (!je)
|
|
47860
47869
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
47861
|
-
return
|
|
47870
|
+
return Ve && (typeof Ve == "object" || typeof Ve == "function") ? Ve : je;
|
|
47862
47871
|
}
|
|
47863
|
-
function Le(je,
|
|
47864
|
-
if (typeof
|
|
47865
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
47866
|
-
je.prototype = Object.create(
|
|
47872
|
+
function Le(je, Ve) {
|
|
47873
|
+
if (typeof Ve != "function" && Ve !== null)
|
|
47874
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Ve);
|
|
47875
|
+
je.prototype = Object.create(Ve && Ve.prototype, { constructor: { value: je, enumerable: !1, writable: !0, configurable: !0 } }), Ve && (Object.setPrototypeOf ? Object.setPrototypeOf(je, Ve) : je.__proto__ = Ve);
|
|
47867
47876
|
}
|
|
47868
47877
|
var Ie = [!1, "center", "right", "justify"], ze = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ye = ["petita", !1, "gran", "enorme"], ft = (function(je) {
|
|
47869
|
-
Le(
|
|
47870
|
-
function
|
|
47871
|
-
qe(this,
|
|
47872
|
-
var
|
|
47878
|
+
Le(Ve, je);
|
|
47879
|
+
function Ve(Xe, Je) {
|
|
47880
|
+
qe(this, Ve);
|
|
47881
|
+
var Be = Ae(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Xe, Je)), Ke = function rt(ot) {
|
|
47873
47882
|
if (!document.body.contains(Xe.root))
|
|
47874
47883
|
return document.body.removeEventListener("click", rt);
|
|
47875
|
-
|
|
47884
|
+
Be.tooltip != null && !Be.tooltip.root.contains(ot.target) && document.activeElement !== Be.tooltip.textbox && !Be.quill.hasFocus() && Be.tooltip.hide(), Be.pickers != null && Be.pickers.forEach(function(_t) {
|
|
47876
47885
|
_t.container.contains(ot.target) || _t.close();
|
|
47877
47886
|
});
|
|
47878
47887
|
};
|
|
47879
|
-
return Xe.emitter.listenDOM("click", document.body, Ke),
|
|
47888
|
+
return Xe.emitter.listenDOM("click", document.body, Ke), Be;
|
|
47880
47889
|
}
|
|
47881
|
-
return oe(
|
|
47890
|
+
return oe(Ve, [{
|
|
47882
47891
|
key: "addModule",
|
|
47883
47892
|
value: function(Je) {
|
|
47884
|
-
var
|
|
47885
|
-
return Je === "toolbar" && this.extendToolbar(
|
|
47893
|
+
var Be = ne(Ve.prototype.__proto__ || Object.getPrototypeOf(Ve.prototype), "addModule", this).call(this, Je);
|
|
47894
|
+
return Je === "toolbar" && this.extendToolbar(Be), Be;
|
|
47886
47895
|
}
|
|
47887
47896
|
}, {
|
|
47888
47897
|
key: "buildButtons",
|
|
47889
|
-
value: function(Je,
|
|
47898
|
+
value: function(Je, Be) {
|
|
47890
47899
|
Je.forEach(function(Ke) {
|
|
47891
47900
|
var rt = Ke.getAttribute("class") || "";
|
|
47892
47901
|
rt.split(/\s+/).forEach(function(ot) {
|
|
47893
|
-
if (ot.startsWith("ql-") && (ot = ot.slice(3),
|
|
47902
|
+
if (ot.startsWith("ql-") && (ot = ot.slice(3), Be[ot] != null))
|
|
47894
47903
|
if (ot === "direction")
|
|
47895
|
-
Ke.innerHTML =
|
|
47896
|
-
else if (typeof
|
|
47897
|
-
Ke.innerHTML =
|
|
47904
|
+
Ke.innerHTML = Be[ot][""] + Be[ot].rtl;
|
|
47905
|
+
else if (typeof Be[ot] == "string")
|
|
47906
|
+
Ke.innerHTML = Be[ot];
|
|
47898
47907
|
else {
|
|
47899
47908
|
var _t = Ke.value || "";
|
|
47900
|
-
_t != null &&
|
|
47909
|
+
_t != null && Be[ot][_t] && (Ke.innerHTML = Be[ot][_t]);
|
|
47901
47910
|
}
|
|
47902
47911
|
});
|
|
47903
47912
|
});
|
|
47904
47913
|
}
|
|
47905
47914
|
}, {
|
|
47906
47915
|
key: "buildPickers",
|
|
47907
|
-
value: function(Je,
|
|
47916
|
+
value: function(Je, Be) {
|
|
47908
47917
|
var Ke = this;
|
|
47909
47918
|
this.pickers = Je.map(function(ot) {
|
|
47910
47919
|
if (ot.classList.contains("ql-align"))
|
|
47911
|
-
return ot.querySelector("option") == null && Me(ot, Ie), new ye.default(ot,
|
|
47920
|
+
return ot.querySelector("option") == null && Me(ot, Ie), new ye.default(ot, Be.align);
|
|
47912
47921
|
if (ot.classList.contains("ql-background") || ot.classList.contains("ql-color")) {
|
|
47913
47922
|
var _t = ot.classList.contains("ql-background") ? "background" : "color";
|
|
47914
|
-
return ot.querySelector("option") == null && Me(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot,
|
|
47923
|
+
return ot.querySelector("option") == null && Me(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Be[_t]);
|
|
47915
47924
|
} else
|
|
47916
47925
|
return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Me(ot, We) : ot.classList.contains("ql-header") ? Me(ot, Ge) : ot.classList.contains("ql-size") && Me(ot, Ye)), new Pe.default(ot);
|
|
47917
47926
|
});
|
|
@@ -47922,7 +47931,7 @@ function requireQuill() {
|
|
|
47922
47931
|
};
|
|
47923
47932
|
this.quill.on(fe.default.events.EDITOR_CHANGE, rt);
|
|
47924
47933
|
}
|
|
47925
|
-
}]),
|
|
47934
|
+
}]), Ve;
|
|
47926
47935
|
})(ve.default);
|
|
47927
47936
|
ft.DEFAULTS = (0, ce.default)(!0, {}, ve.default.DEFAULTS, {
|
|
47928
47937
|
modules: {
|
|
@@ -47932,13 +47941,13 @@ function requireQuill() {
|
|
|
47932
47941
|
this.quill.theme.tooltip.edit("formula");
|
|
47933
47942
|
},
|
|
47934
47943
|
image: function() {
|
|
47935
|
-
var
|
|
47944
|
+
var Ve = this, Xe = this.container.querySelector("input.ql-image[type=file]");
|
|
47936
47945
|
Xe == null && (Xe = document.createElement("input"), Xe.setAttribute("type", "file"), Xe.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), Xe.classList.add("ql-image"), Xe.addEventListener("change", function() {
|
|
47937
47946
|
if (Xe.files != null && Xe.files[0] != null) {
|
|
47938
47947
|
var Je = new FileReader();
|
|
47939
|
-
Je.onload = function(
|
|
47940
|
-
var Ke =
|
|
47941
|
-
|
|
47948
|
+
Je.onload = function(Be) {
|
|
47949
|
+
var Ke = Ve.quill.getSelection(!0);
|
|
47950
|
+
Ve.quill.updateContents(new he.default().retain(Ke.index).delete(Ke.length).insert({ image: Be.target.result }), fe.default.sources.USER), Ve.quill.setSelection(Ke.index + 1, fe.default.sources.SILENT), Xe.value = "";
|
|
47942
47951
|
}, Je.readAsDataURL(Xe.files[0]);
|
|
47943
47952
|
}
|
|
47944
47953
|
}), this.container.appendChild(Xe)), Xe.click();
|
|
@@ -47951,18 +47960,18 @@ function requireQuill() {
|
|
|
47951
47960
|
}
|
|
47952
47961
|
});
|
|
47953
47962
|
var Qe = (function(je) {
|
|
47954
|
-
Le(
|
|
47955
|
-
function
|
|
47956
|
-
qe(this,
|
|
47957
|
-
var
|
|
47958
|
-
return
|
|
47963
|
+
Le(Ve, je);
|
|
47964
|
+
function Ve(Xe, Je) {
|
|
47965
|
+
qe(this, Ve);
|
|
47966
|
+
var Be = Ae(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Xe, Je));
|
|
47967
|
+
return Be.textbox = Be.root.querySelector('input[type="text"]'), Be.listen(), Be;
|
|
47959
47968
|
}
|
|
47960
|
-
return oe(
|
|
47969
|
+
return oe(Ve, [{
|
|
47961
47970
|
key: "listen",
|
|
47962
47971
|
value: function() {
|
|
47963
47972
|
var Je = this;
|
|
47964
|
-
this.textbox.addEventListener("keydown", function(
|
|
47965
|
-
me.default.match(
|
|
47973
|
+
this.textbox.addEventListener("keydown", function(Be) {
|
|
47974
|
+
me.default.match(Be, "enter") ? (Je.save(), Be.preventDefault()) : me.default.match(Be, "escape") && (Je.cancel(), Be.preventDefault());
|
|
47966
47975
|
});
|
|
47967
47976
|
}
|
|
47968
47977
|
}, {
|
|
@@ -47973,8 +47982,8 @@ function requireQuill() {
|
|
|
47973
47982
|
}, {
|
|
47974
47983
|
key: "edit",
|
|
47975
47984
|
value: function() {
|
|
47976
|
-
var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link",
|
|
47977
|
-
this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"),
|
|
47985
|
+
var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
47986
|
+
this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), Be != null ? this.textbox.value = Be : Je !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + Je) || ""), this.root.setAttribute("data-mode", Je);
|
|
47978
47987
|
}
|
|
47979
47988
|
}, {
|
|
47980
47989
|
key: "restoreFocus",
|
|
@@ -47988,8 +47997,8 @@ function requireQuill() {
|
|
|
47988
47997
|
var Je = this.textbox.value;
|
|
47989
47998
|
switch (this.root.getAttribute("data-mode")) {
|
|
47990
47999
|
case "link": {
|
|
47991
|
-
var
|
|
47992
|
-
this.linkRange ? (this.quill.formatText(this.linkRange, "link", Je, fe.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Je, fe.default.sources.USER)), this.quill.root.scrollTop =
|
|
48000
|
+
var Be = this.quill.root.scrollTop;
|
|
48001
|
+
this.linkRange ? (this.quill.formatText(this.linkRange, "link", Je, fe.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Je, fe.default.sources.USER)), this.quill.root.scrollTop = Be;
|
|
47993
48002
|
break;
|
|
47994
48003
|
}
|
|
47995
48004
|
case "video":
|
|
@@ -48007,17 +48016,17 @@ function requireQuill() {
|
|
|
48007
48016
|
}
|
|
48008
48017
|
this.textbox.value = "", this.hide();
|
|
48009
48018
|
}
|
|
48010
|
-
}]),
|
|
48019
|
+
}]), Ve;
|
|
48011
48020
|
})(Fe.default);
|
|
48012
48021
|
function Ze(je) {
|
|
48013
|
-
var
|
|
48014
|
-
return
|
|
48022
|
+
var Ve = je.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || je.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
48023
|
+
return Ve ? (Ve[1] || "https") + "://www.youtube.com/embed/" + Ve[2] + "?showinfo=0" : (Ve = je.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ve[1] || "https") + "://player.vimeo.com/video/" + Ve[2] + "/" : je;
|
|
48015
48024
|
}
|
|
48016
|
-
function Me(je,
|
|
48025
|
+
function Me(je, Ve) {
|
|
48017
48026
|
var Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
48018
|
-
|
|
48019
|
-
var
|
|
48020
|
-
Je === Xe ?
|
|
48027
|
+
Ve.forEach(function(Je) {
|
|
48028
|
+
var Be = document.createElement("option");
|
|
48029
|
+
Je === Xe ? Be.setAttribute("selected", "selected") : Be.setAttribute("value", Je), je.appendChild(Be);
|
|
48021
48030
|
});
|
|
48022
48031
|
}
|
|
48023
48032
|
te.BaseTooltip = Qe, te.default = ft;
|
|
@@ -48453,38 +48462,38 @@ function requireQuill() {
|
|
|
48453
48462
|
Ae[He + 1] = 0, Le[He + 1] = 0;
|
|
48454
48463
|
for (var ze = Pe - De, We = ze % 2 != 0, Ge = 0, Ye = 0, ft = 0, Qe = 0, Ze = 0; Ze < Fe; Ze++) {
|
|
48455
48464
|
for (var Me = -Ze + Ge; Me <= Ze - Ye; Me += 2) {
|
|
48456
|
-
var je = He + Me,
|
|
48457
|
-
Me == -Ze || Me != Ze && Ae[je - 1] < Ae[je + 1] ?
|
|
48458
|
-
for (var Xe =
|
|
48459
|
-
|
|
48460
|
-
if (Ae[je] =
|
|
48465
|
+
var je = He + Me, Ve;
|
|
48466
|
+
Me == -Ze || Me != Ze && Ae[je - 1] < Ae[je + 1] ? Ve = Ae[je + 1] : Ve = Ae[je - 1] + 1;
|
|
48467
|
+
for (var Xe = Ve - Me; Ve < Pe && Xe < De && ye.charAt(Ve) == Ce.charAt(Xe); )
|
|
48468
|
+
Ve++, Xe++;
|
|
48469
|
+
if (Ae[je] = Ve, Ve > Pe)
|
|
48461
48470
|
Ye += 2;
|
|
48462
48471
|
else if (Xe > De)
|
|
48463
48472
|
Ge += 2;
|
|
48464
48473
|
else if (We) {
|
|
48465
48474
|
var Je = He + ze - Me;
|
|
48466
48475
|
if (Je >= 0 && Je < qe && Le[Je] != -1) {
|
|
48467
|
-
var
|
|
48468
|
-
if (
|
|
48469
|
-
return he(ye, Ce,
|
|
48476
|
+
var Be = Pe - Le[Je];
|
|
48477
|
+
if (Ve >= Be)
|
|
48478
|
+
return he(ye, Ce, Ve, Xe);
|
|
48470
48479
|
}
|
|
48471
48480
|
}
|
|
48472
48481
|
}
|
|
48473
48482
|
for (var Ke = -Ze + ft; Ke <= Ze - Qe; Ke += 2) {
|
|
48474
|
-
var Je = He + Ke,
|
|
48475
|
-
Ke == -Ze || Ke != Ze && Le[Je - 1] < Le[Je + 1] ?
|
|
48476
|
-
for (var rt =
|
|
48477
|
-
|
|
48478
|
-
if (Le[Je] =
|
|
48483
|
+
var Je = He + Ke, Be;
|
|
48484
|
+
Ke == -Ze || Ke != Ze && Le[Je - 1] < Le[Je + 1] ? Be = Le[Je + 1] : Be = Le[Je - 1] + 1;
|
|
48485
|
+
for (var rt = Be - Ke; Be < Pe && rt < De && ye.charAt(Pe - Be - 1) == Ce.charAt(De - rt - 1); )
|
|
48486
|
+
Be++, rt++;
|
|
48487
|
+
if (Le[Je] = Be, Be > Pe)
|
|
48479
48488
|
Qe += 2;
|
|
48480
48489
|
else if (rt > De)
|
|
48481
48490
|
ft += 2;
|
|
48482
48491
|
else if (!We) {
|
|
48483
48492
|
var je = He + ze - Ke;
|
|
48484
48493
|
if (je >= 0 && je < qe && Ae[je] != -1) {
|
|
48485
|
-
var
|
|
48486
|
-
if (
|
|
48487
|
-
return he(ye, Ce,
|
|
48494
|
+
var Ve = Ae[je], Xe = He + Ve - je;
|
|
48495
|
+
if (Be = Pe - Be, Ve >= Be)
|
|
48496
|
+
return he(ye, Ce, Ve, Xe);
|
|
48488
48497
|
}
|
|
48489
48498
|
}
|
|
48490
48499
|
}
|
|
@@ -48514,7 +48523,7 @@ function requireQuill() {
|
|
|
48514
48523
|
if (Pe.length < 4 || De.length * 2 < Pe.length)
|
|
48515
48524
|
return null;
|
|
48516
48525
|
function Fe(Ye, ft, Qe) {
|
|
48517
|
-
for (var Ze = Ye.substring(Qe, Qe + Math.floor(Ye.length / 4)), Me = -1, je = "",
|
|
48526
|
+
for (var Ze = Ye.substring(Qe, Qe + Math.floor(Ye.length / 4)), Me = -1, je = "", Ve, Xe, Je, Be; (Me = ft.indexOf(Ze, Me + 1)) != -1; ) {
|
|
48518
48527
|
var Ke = pe(
|
|
48519
48528
|
Ye.substring(Qe),
|
|
48520
48529
|
ft.substring(Me)
|
|
@@ -48522,13 +48531,13 @@ function requireQuill() {
|
|
|
48522
48531
|
Ye.substring(0, Qe),
|
|
48523
48532
|
ft.substring(0, Me)
|
|
48524
48533
|
);
|
|
48525
|
-
je.length < rt + Ke && (je = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ke),
|
|
48534
|
+
je.length < rt + Ke && (je = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ke), Ve = Ye.substring(0, Qe - rt), Xe = Ye.substring(Qe + Ke), Je = ft.substring(0, Me - rt), Be = ft.substring(Me + Ke));
|
|
48526
48535
|
}
|
|
48527
48536
|
return je.length * 2 >= Ye.length ? [
|
|
48528
|
-
|
|
48537
|
+
Ve,
|
|
48529
48538
|
Xe,
|
|
48530
48539
|
Je,
|
|
48531
|
-
|
|
48540
|
+
Be,
|
|
48532
48541
|
je
|
|
48533
48542
|
] : null;
|
|
48534
48543
|
}
|
|
@@ -48832,7 +48841,7 @@ function requireQuill() {
|
|
|
48832
48841
|
throw new TypeError("Super expression must either be null or a function, not " + typeof mt);
|
|
48833
48842
|
gt.prototype = Object.create(mt && mt.prototype, { constructor: { value: gt, enumerable: !1, writable: !0, configurable: !0 } }), mt && (Object.setPrototypeOf ? Object.setPrototypeOf(gt, mt) : gt.__proto__ = mt);
|
|
48834
48843
|
}
|
|
48835
|
-
var Ye = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Kt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE,
|
|
48844
|
+
var Ye = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Kt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Bt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", Lt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", qt]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
|
|
48836
48845
|
return gt[mt.keyName] = mt, gt;
|
|
48837
48846
|
}, {}), Me = [ye.AlignStyle, Ce.BackgroundStyle, Fe.ColorStyle, He.DirectionStyle, qe.FontStyle, Ae.SizeStyle].reduce(function(gt, mt) {
|
|
48838
48847
|
return gt[mt.keyName] = mt, gt;
|
|
@@ -48843,7 +48852,7 @@ function requireQuill() {
|
|
|
48843
48852
|
var $t = We(this, (mt.__proto__ || Object.getPrototypeOf(mt)).call(this, xt, Ct));
|
|
48844
48853
|
return $t.quill.root.addEventListener("paste", $t.onPaste.bind($t)), $t.container = $t.quill.addContainer("ql-clipboard"), $t.container.setAttribute("contenteditable", !0), $t.container.setAttribute("tabindex", -1), $t.matchers = [], Qe.concat($t.options.matchers).forEach(function(Mt) {
|
|
48845
48854
|
var Ft = ne(Mt, 2), zt = Ft[0], cs = Ft[1];
|
|
48846
|
-
!Ct.matchVisual && cs ===
|
|
48855
|
+
!Ct.matchVisual && cs === Bt || $t.addMatcher(zt, cs);
|
|
48847
48856
|
}), $t;
|
|
48848
48857
|
}
|
|
48849
48858
|
return de(mt, [{
|
|
@@ -48914,9 +48923,9 @@ function requireQuill() {
|
|
|
48914
48923
|
matchers: [],
|
|
48915
48924
|
matchVisual: !0
|
|
48916
48925
|
};
|
|
48917
|
-
function
|
|
48926
|
+
function Ve(gt, mt, xt) {
|
|
48918
48927
|
return (typeof mt > "u" ? "undefined" : oe(mt)) === "object" ? Object.keys(mt).reduce(function(Ct, $t) {
|
|
48919
|
-
return
|
|
48928
|
+
return Ve(Ct, $t, mt[$t]);
|
|
48920
48929
|
}, gt) : gt.reduce(function(Ct, $t) {
|
|
48921
48930
|
return $t.attributes && $t.attributes[mt] ? Ct.push($t) : Ct.insert($t.insert, (0, ue.default)({}, Ie({}, mt, xt), $t.attributes));
|
|
48922
48931
|
}, new pe.default());
|
|
@@ -48934,7 +48943,7 @@ function requireQuill() {
|
|
|
48934
48943
|
}
|
|
48935
48944
|
return xt.slice(-1 * mt.length) === mt;
|
|
48936
48945
|
}
|
|
48937
|
-
function
|
|
48946
|
+
function Be(gt) {
|
|
48938
48947
|
if (gt.childNodes.length === 0) return !1;
|
|
48939
48948
|
var mt = Xe(gt);
|
|
48940
48949
|
return ["block", "list-item"].indexOf(mt.display) > -1;
|
|
@@ -48952,14 +48961,14 @@ function requireQuill() {
|
|
|
48952
48961
|
}, new pe.default()) : new pe.default();
|
|
48953
48962
|
}
|
|
48954
48963
|
function rt(gt, mt, xt) {
|
|
48955
|
-
return
|
|
48964
|
+
return Ve(xt, gt, !0);
|
|
48956
48965
|
}
|
|
48957
48966
|
function ot(gt, mt) {
|
|
48958
48967
|
var xt = be.default.Attributor.Attribute.keys(gt), Ct = be.default.Attributor.Class.keys(gt), $t = be.default.Attributor.Style.keys(gt), Mt = {};
|
|
48959
48968
|
return xt.concat(Ct).concat($t).forEach(function(Ft) {
|
|
48960
48969
|
var zt = be.default.query(Ft, be.default.Scope.ATTRIBUTE);
|
|
48961
48970
|
zt != null && (Mt[zt.attrName] = zt.value(gt), Mt[zt.attrName]) || (zt = Ze[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (Mt[zt.attrName] = zt.value(gt) || void 0), zt = Me[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (zt = Me[Ft], Mt[zt.attrName] = zt.value(gt) || void 0));
|
|
48962
|
-
}), Object.keys(Mt).length > 0 && (mt =
|
|
48971
|
+
}), Object.keys(Mt).length > 0 && (mt = Ve(mt, Mt)), mt;
|
|
48963
48972
|
}
|
|
48964
48973
|
function _t(gt, mt) {
|
|
48965
48974
|
var xt = be.default.query(gt);
|
|
@@ -48967,7 +48976,7 @@ function requireQuill() {
|
|
|
48967
48976
|
if (xt.prototype instanceof be.default.Embed) {
|
|
48968
48977
|
var Ct = {}, $t = xt.value(gt);
|
|
48969
48978
|
$t != null && (Ct[xt.blotName] = $t, mt = new pe.default().insert(Ct, xt.formats(gt)));
|
|
48970
|
-
} else typeof xt.formats == "function" && (mt =
|
|
48979
|
+
} else typeof xt.formats == "function" && (mt = Ve(mt, xt.blotName, xt.formats(gt)));
|
|
48971
48980
|
return mt;
|
|
48972
48981
|
}
|
|
48973
48982
|
function kt(gt, mt) {
|
|
@@ -48989,11 +48998,11 @@ function requireQuill() {
|
|
|
48989
48998
|
}
|
|
48990
48999
|
function Nt(gt, mt) {
|
|
48991
49000
|
return Je(mt, `
|
|
48992
|
-
`) || (
|
|
49001
|
+
`) || (Be(gt) || mt.length() > 0 && gt.nextSibling && Be(gt.nextSibling)) && mt.insert(`
|
|
48993
49002
|
`), mt;
|
|
48994
49003
|
}
|
|
48995
|
-
function
|
|
48996
|
-
if (
|
|
49004
|
+
function Bt(gt, mt) {
|
|
49005
|
+
if (Be(gt) && gt.nextElementSibling != null && !Je(mt, `
|
|
48997
49006
|
|
|
48998
49007
|
`)) {
|
|
48999
49008
|
var xt = gt.offsetHeight + parseFloat(Xe(gt).marginTop) + parseFloat(Xe(gt).marginBottom);
|
|
@@ -49004,7 +49013,7 @@ function requireQuill() {
|
|
|
49004
49013
|
}
|
|
49005
49014
|
function rs(gt, mt) {
|
|
49006
49015
|
var xt = {}, Ct = gt.style || {};
|
|
49007
|
-
return Ct.fontStyle && Xe(gt).fontStyle === "italic" && (xt.italic = !0), Ct.fontWeight && (Xe(gt).fontWeight.startsWith("bold") || parseInt(Xe(gt).fontWeight) >= 700) && (xt.bold = !0), Object.keys(xt).length > 0 && (mt =
|
|
49016
|
+
return Ct.fontStyle && Xe(gt).fontStyle === "italic" && (xt.italic = !0), Ct.fontWeight && (Xe(gt).fontWeight.startsWith("bold") || parseInt(Xe(gt).fontWeight) >= 700) && (xt.bold = !0), Object.keys(xt).length > 0 && (mt = Ve(mt, xt)), parseFloat(Ct.textIndent || 0) > 0 && (mt = new pe.default().insert(" ").concat(mt)), mt;
|
|
49008
49017
|
}
|
|
49009
49018
|
function Kt(gt, mt) {
|
|
49010
49019
|
var xt = gt.data;
|
|
@@ -49016,11 +49025,11 @@ function requireQuill() {
|
|
|
49016
49025
|
var Ct = function(Mt, Ft) {
|
|
49017
49026
|
return Ft = Ft.replace(/[^\u00a0]/g, ""), Ft.length < 1 && Mt ? " " : Ft;
|
|
49018
49027
|
};
|
|
49019
|
-
xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, Ct.bind(Ct, !0)), (gt.previousSibling == null &&
|
|
49028
|
+
xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, Ct.bind(Ct, !0)), (gt.previousSibling == null && Be(gt.parentNode) || gt.previousSibling != null && Be(gt.previousSibling)) && (xt = xt.replace(/^\s+/, Ct.bind(Ct, !1))), (gt.nextSibling == null && Be(gt.parentNode) || gt.nextSibling != null && Be(gt.nextSibling)) && (xt = xt.replace(/\s+$/, Ct.bind(Ct, !1)));
|
|
49020
49029
|
}
|
|
49021
49030
|
return mt.insert(xt);
|
|
49022
49031
|
}
|
|
49023
|
-
te.default = je, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing =
|
|
49032
|
+
te.default = je, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing = Bt, te.matchText = Kt;
|
|
49024
49033
|
}),
|
|
49025
49034
|
/* 57 */
|
|
49026
49035
|
/***/
|
|
@@ -49213,7 +49222,7 @@ function requireQuill() {
|
|
|
49213
49222
|
} else
|
|
49214
49223
|
We.classList.contains("ql-active") ? Ze = !1 : Ze = We.value || !We.hasAttribute("value"), Qe.preventDefault();
|
|
49215
49224
|
Ge.quill.focus();
|
|
49216
|
-
var je = Ge.quill.selection.getRange(),
|
|
49225
|
+
var je = Ge.quill.selection.getRange(), Ve = oe(je, 1), Xe = Ve[0];
|
|
49217
49226
|
if (Ge.handlers[Ye] != null)
|
|
49218
49227
|
Ge.handlers[Ye].call(Ge, Ze);
|
|
49219
49228
|
else if (he.default.query(Ye).prototype instanceof he.default.Embed) {
|
|
@@ -49245,8 +49254,8 @@ function requireQuill() {
|
|
|
49245
49254
|
} else if (We == null)
|
|
49246
49255
|
Ze.classList.remove("ql-active");
|
|
49247
49256
|
else if (Ze.hasAttribute("value")) {
|
|
49248
|
-
var
|
|
49249
|
-
Ze.classList.toggle("ql-active",
|
|
49257
|
+
var Ve = Ge[Qe] === Ze.getAttribute("value") || Ge[Qe] != null && Ge[Qe].toString() === Ze.getAttribute("value") || Ge[Qe] == null && !Ze.getAttribute("value");
|
|
49258
|
+
Ze.classList.toggle("ql-active", Ve);
|
|
49250
49259
|
} else
|
|
49251
49260
|
Ze.classList.toggle("ql-active", Ge[Qe] != null);
|
|
49252
49261
|
});
|
|
@@ -49663,7 +49672,7 @@ function requireQuill() {
|
|
|
49663
49672
|
Object.defineProperty(te, "__esModule", {
|
|
49664
49673
|
value: !0
|
|
49665
49674
|
});
|
|
49666
|
-
var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Se = re(41), ye = re(57), Ce = $t(ye), Pe = re(69), De = $t(Pe), Fe = re(27), He = $t(Fe), qe = re(70), Ae = $t(qe), Le = re(71), Ie = $t(Le), ze = re(72), We = $t(ze), Ge = re(73), Ye = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Me = $t(Ze), je = re(75),
|
|
49675
|
+
var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Se = re(41), ye = re(57), Ce = $t(ye), Pe = re(69), De = $t(Pe), Fe = re(27), He = $t(Fe), qe = re(70), Ae = $t(qe), Le = re(71), Ie = $t(Le), ze = re(72), We = $t(ze), Ge = re(73), Ye = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Me = $t(Ze), je = re(75), Ve = $t(je), Xe = re(76), Je = $t(Xe), Be = re(58), Ke = $t(Be), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), qt = re(60), Lt = $t(qt), Nt = re(61), Bt = $t(Nt), rs = re(62), Kt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), Ct = $t(xt);
|
|
49667
49676
|
function $t(Mt) {
|
|
49668
49677
|
return Mt && Mt.__esModule ? Mt : { default: Mt };
|
|
49669
49678
|
}
|
|
@@ -49703,14 +49712,14 @@ function requireQuill() {
|
|
|
49703
49712
|
"formats/image": Ye.default,
|
|
49704
49713
|
"formats/video": Qe.default,
|
|
49705
49714
|
"formats/list/item": me.ListItem,
|
|
49706
|
-
"modules/formula":
|
|
49715
|
+
"modules/formula": Ve.default,
|
|
49707
49716
|
"modules/syntax": Je.default,
|
|
49708
49717
|
"modules/toolbar": Ke.default,
|
|
49709
49718
|
"themes/bubble": mt.default,
|
|
49710
49719
|
"themes/snow": Ct.default,
|
|
49711
49720
|
"ui/icons": ot.default,
|
|
49712
49721
|
"ui/picker": kt.default,
|
|
49713
|
-
"ui/icon-picker":
|
|
49722
|
+
"ui/icon-picker": Bt.default,
|
|
49714
49723
|
"ui/color-picker": Lt.default,
|
|
49715
49724
|
"ui/tooltip": Kt.default
|
|
49716
49725
|
}, !0), te.default = ne.default;
|
|
@@ -51935,4 +51944,4 @@ export {
|
|
|
51935
51944
|
l as y,
|
|
51936
51945
|
PrimariaInteractionService as z
|
|
51937
51946
|
};
|
|
51938
|
-
//# sourceMappingURL=index-
|
|
51947
|
+
//# sourceMappingURL=index-CqHIFgjZ.js.map
|