@univerjs/core 0.1.0-alpha.3 → 0.1.0-beta.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/lib/cjs/index.js +5 -5
- package/lib/es/index.js +848 -863
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/instance/instance.service.d.ts +4 -4
- package/lib/types/shared/index.d.ts +0 -1
- package/lib/types/shared/object-matrix.d.ts +1 -0
- package/lib/types/sheets/workbook.d.ts +7 -13
- package/lib/types/types/enum/border-style-types.d.ts +6 -1
- package/lib/types/types/interfaces/i-style-data.d.ts +17 -0
- package/lib/umd/index.js +5 -5
- package/package.json +1 -1
- package/lib/types/shared/gen-name.d.ts +0 -23
package/lib/es/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Cs = Object.defineProperty;
|
|
2
2
|
var Ns = (t, e, s) => e in t ? Cs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
-
var
|
|
4
|
-
import { createIdentifier as G, Inject as
|
|
5
|
-
import { Subject as
|
|
3
|
+
var _ = (t, e, s) => (Ns(t, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
+
import { createIdentifier as G, Inject as U, Injector as ot } from "@wendellhu/redi";
|
|
5
|
+
import { Subject as M, BehaviorSubject as K, Observable as Ss, combineLatest as bs } from "rxjs";
|
|
6
6
|
import { map as ws } from "rxjs/operators";
|
|
7
7
|
function Ls() {
|
|
8
8
|
vs();
|
|
@@ -26,7 +26,7 @@ function vs() {
|
|
|
26
26
|
}
|
|
27
27
|
class Ye {
|
|
28
28
|
constructor() {
|
|
29
|
-
|
|
29
|
+
_(this, "_data", []);
|
|
30
30
|
}
|
|
31
31
|
static create() {
|
|
32
32
|
return new Ye();
|
|
@@ -44,7 +44,7 @@ class Ye {
|
|
|
44
44
|
}
|
|
45
45
|
class Ke {
|
|
46
46
|
constructor() {
|
|
47
|
-
|
|
47
|
+
_(this, "_data", /* @__PURE__ */ new Map());
|
|
48
48
|
}
|
|
49
49
|
static create() {
|
|
50
50
|
return new Ke();
|
|
@@ -62,7 +62,7 @@ class Ke {
|
|
|
62
62
|
var L = /* @__PURE__ */ ((t) => (t[t.Univer = 0] = "Univer", t[t.Doc = 1] = "Doc", t[t.Sheet = 2] = "Sheet", t[t.Slide = 3] = "Slide", t))(L || {});
|
|
63
63
|
class Ds {
|
|
64
64
|
constructor(e) {
|
|
65
|
-
|
|
65
|
+
_(this, "_name");
|
|
66
66
|
this._name = e;
|
|
67
67
|
}
|
|
68
68
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -80,10 +80,10 @@ class Ds {
|
|
|
80
80
|
return this._name;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
_(Ds, "type", 0);
|
|
84
84
|
class Ms {
|
|
85
85
|
constructor() {
|
|
86
|
-
|
|
86
|
+
_(this, "_plugins", []);
|
|
87
87
|
}
|
|
88
88
|
addPlugin(e) {
|
|
89
89
|
this._plugins.push(e);
|
|
@@ -98,7 +98,7 @@ class Ms {
|
|
|
98
98
|
}
|
|
99
99
|
class Us {
|
|
100
100
|
constructor() {
|
|
101
|
-
|
|
101
|
+
_(this, "_pluginsRegisteredByBusiness", /* @__PURE__ */ new Map());
|
|
102
102
|
}
|
|
103
103
|
registerPlugin(e, s) {
|
|
104
104
|
const n = e.type;
|
|
@@ -111,11 +111,11 @@ class Us {
|
|
|
111
111
|
this._pluginsRegisteredByBusiness.delete(e);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function it(t, e) {
|
|
115
115
|
const s = t.indexOf(e);
|
|
116
116
|
return s > -1 ? (t.splice(s, 1), !0) : !1;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function to(t) {
|
|
119
119
|
const e = /* @__PURE__ */ new Set(), s = [];
|
|
120
120
|
for (const n of t)
|
|
121
121
|
e.has(n) || (e.add(n), s.push(n));
|
|
@@ -169,7 +169,7 @@ function xs(t) {
|
|
|
169
169
|
index: -1
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function we(t) {
|
|
173
173
|
var e = typeof Symbol == "function" && Symbol.iterator, s = e && t[e], n = 0;
|
|
174
174
|
if (s)
|
|
175
175
|
return s.call(t);
|
|
@@ -181,7 +181,7 @@ function be(t) {
|
|
|
181
181
|
};
|
|
182
182
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Le(t, e) {
|
|
185
185
|
var s = typeof Symbol == "function" && t[Symbol.iterator];
|
|
186
186
|
if (!s)
|
|
187
187
|
return t;
|
|
@@ -201,13 +201,13 @@ function we(t, e) {
|
|
|
201
201
|
}
|
|
202
202
|
return i;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function ve(t, e, s) {
|
|
205
205
|
if (s || arguments.length === 2)
|
|
206
206
|
for (var n = 0, r = e.length, i; n < r; n++)
|
|
207
207
|
(i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
|
|
208
208
|
return t.concat(i || Array.prototype.slice.call(e));
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function _t(t) {
|
|
211
211
|
return typeof t == "function";
|
|
212
212
|
}
|
|
213
213
|
function Fs(t) {
|
|
@@ -225,7 +225,7 @@ var kt = Fs(function(t) {
|
|
|
225
225
|
`) : "", this.name = "UnsubscriptionError", this.errors = s;
|
|
226
226
|
};
|
|
227
227
|
});
|
|
228
|
-
function
|
|
228
|
+
function De(t, e) {
|
|
229
229
|
if (t) {
|
|
230
230
|
var s = t.indexOf(e);
|
|
231
231
|
0 <= s && t.splice(s, 1);
|
|
@@ -243,7 +243,7 @@ var Xe = function() {
|
|
|
243
243
|
if (o)
|
|
244
244
|
if (this._parentage = null, Array.isArray(o))
|
|
245
245
|
try {
|
|
246
|
-
for (var a =
|
|
246
|
+
for (var a = we(o), c = a.next(); !c.done; c = a.next()) {
|
|
247
247
|
var l = c.value;
|
|
248
248
|
l.remove(this);
|
|
249
249
|
}
|
|
@@ -260,7 +260,7 @@ var Xe = function() {
|
|
|
260
260
|
else
|
|
261
261
|
o.remove(this);
|
|
262
262
|
var u = this.initialTeardown;
|
|
263
|
-
if (
|
|
263
|
+
if (_t(u))
|
|
264
264
|
try {
|
|
265
265
|
u();
|
|
266
266
|
} catch (E) {
|
|
@@ -270,19 +270,19 @@ var Xe = function() {
|
|
|
270
270
|
if (h) {
|
|
271
271
|
this._finalizers = null;
|
|
272
272
|
try {
|
|
273
|
-
for (var f =
|
|
274
|
-
var g =
|
|
273
|
+
for (var f = we(h), d = f.next(); !d.done; d = f.next()) {
|
|
274
|
+
var g = d.value;
|
|
275
275
|
try {
|
|
276
|
-
|
|
276
|
+
Me(g);
|
|
277
277
|
} catch (E) {
|
|
278
|
-
i = i ?? [], E instanceof kt ? i =
|
|
278
|
+
i = i ?? [], E instanceof kt ? i = ve(ve([], Le(i)), Le(E.errors)) : i.push(E);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} catch (E) {
|
|
282
282
|
n = { error: E };
|
|
283
283
|
} finally {
|
|
284
284
|
try {
|
|
285
|
-
|
|
285
|
+
d && !d.done && (r = f.return) && r.call(f);
|
|
286
286
|
} finally {
|
|
287
287
|
if (n)
|
|
288
288
|
throw n.error;
|
|
@@ -296,7 +296,7 @@ var Xe = function() {
|
|
|
296
296
|
var s;
|
|
297
297
|
if (e && e !== this)
|
|
298
298
|
if (this.closed)
|
|
299
|
-
|
|
299
|
+
Me(e);
|
|
300
300
|
else {
|
|
301
301
|
if (e instanceof t) {
|
|
302
302
|
if (e.closed || e._hasParent(this))
|
|
@@ -313,23 +313,23 @@ var Xe = function() {
|
|
|
313
313
|
this._parentage = Array.isArray(s) ? (s.push(e), s) : s ? [s, e] : e;
|
|
314
314
|
}, t.prototype._removeParent = function(e) {
|
|
315
315
|
var s = this._parentage;
|
|
316
|
-
s === e ? this._parentage = null : Array.isArray(s) &&
|
|
316
|
+
s === e ? this._parentage = null : Array.isArray(s) && De(s, e);
|
|
317
317
|
}, t.prototype.remove = function(e) {
|
|
318
318
|
var s = this._finalizers;
|
|
319
|
-
s &&
|
|
319
|
+
s && De(s, e), e instanceof t && e._removeParent(this);
|
|
320
320
|
}, t.EMPTY = function() {
|
|
321
321
|
var e = new t();
|
|
322
322
|
return e.closed = !0, e;
|
|
323
323
|
}(), t;
|
|
324
324
|
}();
|
|
325
325
|
Xe.EMPTY;
|
|
326
|
-
function
|
|
327
|
-
return t instanceof Xe || t && "closed" in t &&
|
|
326
|
+
function Hs(t) {
|
|
327
|
+
return t instanceof Xe || t && "closed" in t && _t(t.remove) && _t(t.add) && _t(t.unsubscribe);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
|
|
329
|
+
function Me(t) {
|
|
330
|
+
_t(t) ? t() : t.unsubscribe();
|
|
331
331
|
}
|
|
332
|
-
class
|
|
332
|
+
class ps {
|
|
333
333
|
/**
|
|
334
334
|
* Create a new EventState
|
|
335
335
|
* @param skipNextObservers defines a flag which will instruct the observable to skip following observers when set to true
|
|
@@ -340,13 +340,13 @@ class Hs {
|
|
|
340
340
|
/**
|
|
341
341
|
* An WorkBookObserver can set this property to true to prevent subsequent observers of being notified
|
|
342
342
|
*/
|
|
343
|
-
|
|
343
|
+
_(this, "skipNextObservers");
|
|
344
344
|
/**
|
|
345
345
|
* This will be populated with the return value of the last function that was executed.
|
|
346
346
|
* If it is the first function in the callback chain it will be the event data.
|
|
347
347
|
*/
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
_(this, "lastReturnValue");
|
|
349
|
+
_(this, "isStopPropagation", !1);
|
|
350
350
|
this.initialize(e);
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
@@ -364,36 +364,36 @@ class Hs {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
function Bs(t) {
|
|
367
|
-
return t instanceof
|
|
367
|
+
return t instanceof fe;
|
|
368
368
|
}
|
|
369
|
-
class
|
|
369
|
+
class fe {
|
|
370
370
|
/**
|
|
371
371
|
* Creates a new observer
|
|
372
372
|
* @param callback defines the callback to call when the observer is notified
|
|
373
373
|
*/
|
|
374
374
|
constructor(e, s) {
|
|
375
375
|
/** @hidden */
|
|
376
|
-
|
|
376
|
+
_(this, "_willBeUnregistered", !1);
|
|
377
377
|
/**
|
|
378
378
|
* Gets or sets a property defining that the observer as to be unregistered after the next notification
|
|
379
379
|
*/
|
|
380
|
-
|
|
380
|
+
_(this, "unregisterOnNextCall", !1);
|
|
381
381
|
this.callback = e, this.observable = s;
|
|
382
382
|
}
|
|
383
383
|
dispose() {
|
|
384
384
|
this.observable.remove(this);
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
class
|
|
387
|
+
class ge {
|
|
388
388
|
/**
|
|
389
389
|
* Creates a new observable
|
|
390
390
|
* @param onObserverAdded defines a callback to call when a new observer is added
|
|
391
391
|
*/
|
|
392
392
|
constructor(e) {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
this._eventState = new
|
|
393
|
+
_(this, "_observers", new Array());
|
|
394
|
+
_(this, "_eventState");
|
|
395
|
+
_(this, "_onObserverAdded");
|
|
396
|
+
this._eventState = new ps(), e && (this._onObserverAdded = e);
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
399
|
* Gets the list of observers
|
|
@@ -411,7 +411,7 @@ class fe {
|
|
|
411
411
|
add(e, s = !1, n = !1) {
|
|
412
412
|
if (!e)
|
|
413
413
|
return null;
|
|
414
|
-
const r = new
|
|
414
|
+
const r = new fe(e, this);
|
|
415
415
|
return r.unregisterOnNextCall = n, s ? this._observers.unshift(r) : this._observers.push(r), this._onObserverAdded && this._onObserverAdded(r), r;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
@@ -536,7 +536,7 @@ class fe {
|
|
|
536
536
|
* @returns a new observable
|
|
537
537
|
*/
|
|
538
538
|
clone() {
|
|
539
|
-
const e = new
|
|
539
|
+
const e = new ge();
|
|
540
540
|
return e._observers = this._observers.slice(0), e;
|
|
541
541
|
}
|
|
542
542
|
_deferUnregister(e) {
|
|
@@ -555,7 +555,7 @@ class fe {
|
|
|
555
555
|
}
|
|
556
556
|
function w(t) {
|
|
557
557
|
let e = !1;
|
|
558
|
-
return
|
|
558
|
+
return Hs(t) ? {
|
|
559
559
|
dispose: () => {
|
|
560
560
|
e || (e = !0, t.unsubscribe());
|
|
561
561
|
}
|
|
@@ -569,14 +569,14 @@ function w(t) {
|
|
|
569
569
|
}
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function eo(t) {
|
|
573
573
|
return w(() => {
|
|
574
574
|
t.unsubscribe();
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
577
|
class Ws {
|
|
578
578
|
constructor() {
|
|
579
|
-
|
|
579
|
+
_(this, "_disposables", /* @__PURE__ */ new Set());
|
|
580
580
|
}
|
|
581
581
|
add(e) {
|
|
582
582
|
return this._disposables.add(e), {
|
|
@@ -593,8 +593,8 @@ class Ws {
|
|
|
593
593
|
}
|
|
594
594
|
class T {
|
|
595
595
|
constructor() {
|
|
596
|
-
|
|
597
|
-
|
|
596
|
+
_(this, "_disposed", !1);
|
|
597
|
+
_(this, "_collection", new Ws());
|
|
598
598
|
}
|
|
599
599
|
disposeWithMe(e) {
|
|
600
600
|
return this._collection.add(e);
|
|
@@ -603,22 +603,22 @@ class T {
|
|
|
603
603
|
this._disposed || (this._disposed = !0, this._collection.dispose());
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
class
|
|
606
|
+
class so extends T {
|
|
607
607
|
constructor() {
|
|
608
608
|
super(...arguments);
|
|
609
|
-
|
|
609
|
+
_(this, "dispose$", new M());
|
|
610
610
|
}
|
|
611
611
|
dispose() {
|
|
612
612
|
super.dispose(), this.dispose$.next(), this.dispose$.complete();
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
const
|
|
615
|
+
const Et = G("univer.context-service");
|
|
616
616
|
class $s extends T {
|
|
617
617
|
constructor() {
|
|
618
618
|
super(...arguments);
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
619
|
+
_(this, "_contextChanged$", new M());
|
|
620
|
+
_(this, "contextChanged$", this._contextChanged$.asObservable());
|
|
621
|
+
_(this, "_contextMap", /* @__PURE__ */ new Map());
|
|
622
622
|
}
|
|
623
623
|
dispose() {
|
|
624
624
|
super.dispose(), this._contextChanged$.complete();
|
|
@@ -641,11 +641,11 @@ class $s extends T {
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
var Gs = /* @__PURE__ */ ((t) => (t[t.SILENT = 0] = "SILENT", t[t.ERROR = 1] = "ERROR", t[t.WARN = 2] = "WARN", t[t.VERBOSE = 3] = "VERBOSE", t))(Gs || {});
|
|
644
|
-
const
|
|
644
|
+
const ct = G("univer.log");
|
|
645
645
|
class ks extends T {
|
|
646
646
|
constructor() {
|
|
647
647
|
super(...arguments);
|
|
648
|
-
|
|
648
|
+
_(this, "_logLevel", 0);
|
|
649
649
|
}
|
|
650
650
|
log(...s) {
|
|
651
651
|
if (this._logLevel < 3 || !s.length)
|
|
@@ -667,12 +667,12 @@ var Vs = Object.defineProperty, js = Object.getOwnPropertyDescriptor, zs = (t, e
|
|
|
667
667
|
for (var r = n > 1 ? void 0 : n ? js(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
668
668
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
669
669
|
return n && r && Vs(e, s, r), r;
|
|
670
|
-
},
|
|
670
|
+
}, Ue = (t, e) => (s, n) => e(s, n, t), Ee = /* @__PURE__ */ ((t) => (t[t.COMMAND = 0] = "COMMAND", t[t.OPERATION = 1] = "OPERATION", t[t.MUTATION = 2] = "MUTATION", t))(Ee || {});
|
|
671
671
|
const Wt = G("anywhere.command-service");
|
|
672
672
|
class Ys {
|
|
673
673
|
constructor() {
|
|
674
674
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
675
|
-
|
|
675
|
+
_(this, "_commands", /* @__PURE__ */ new Map());
|
|
676
676
|
}
|
|
677
677
|
registerCommand(e) {
|
|
678
678
|
if (this._commands.has(e.id))
|
|
@@ -688,12 +688,12 @@ class Ys {
|
|
|
688
688
|
}
|
|
689
689
|
let yt = class {
|
|
690
690
|
constructor(t, e) {
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
691
|
+
_(this, "_commandRegistry");
|
|
692
|
+
_(this, "_beforeCommandExecutionListeners", []);
|
|
693
|
+
_(this, "_commandExecutedListeners", []);
|
|
694
|
+
_(this, "_multiCommandDisposables", /* @__PURE__ */ new Map());
|
|
695
|
+
_(this, "_commandExecutingLevel", 0);
|
|
696
|
+
_(this, "_commandExecutionStack", []);
|
|
697
697
|
this._injector = t, this._log = e, this._commandRegistry = new Ys();
|
|
698
698
|
}
|
|
699
699
|
registerCommand(t) {
|
|
@@ -748,13 +748,15 @@ let yt = class {
|
|
|
748
748
|
);
|
|
749
749
|
c && (i.params = i.params ?? {}, i.params.trigger = c.id);
|
|
750
750
|
}
|
|
751
|
-
const o = this._pushCommandExecutionStack(i)
|
|
752
|
-
|
|
751
|
+
const o = this._pushCommandExecutionStack(i);
|
|
752
|
+
this._beforeCommandExecutionListeners.forEach((c) => c(i, s));
|
|
753
|
+
const a = this._syncExecute(r, e);
|
|
754
|
+
return this._commandExecutedListeners.forEach((c) => c(i, s)), o.dispose(), a;
|
|
753
755
|
}
|
|
754
756
|
throw new Error(`[CommandService]: Command "${t}" is not registered.`);
|
|
755
757
|
}
|
|
756
758
|
_pushCommandExecutionStack(t) {
|
|
757
|
-
return this._commandExecutionStack.push(t), w(() =>
|
|
759
|
+
return this._commandExecutionStack.push(t), w(() => it(this._commandExecutionStack, t));
|
|
758
760
|
}
|
|
759
761
|
_registerCommand(t) {
|
|
760
762
|
return this._commandRegistry.registerCommand(t);
|
|
@@ -805,20 +807,20 @@ let yt = class {
|
|
|
805
807
|
}
|
|
806
808
|
};
|
|
807
809
|
yt = zs([
|
|
808
|
-
|
|
809
|
-
|
|
810
|
+
Ue(0, U(ot)),
|
|
811
|
+
Ue(1, ct)
|
|
810
812
|
], yt);
|
|
811
813
|
class Ks {
|
|
812
814
|
constructor(e) {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
815
|
+
_(this, "name");
|
|
816
|
+
_(this, "multi", !0);
|
|
817
|
+
_(this, "type", 0);
|
|
818
|
+
_(this, "priority", 0);
|
|
819
|
+
_(this, "_implementations", []);
|
|
820
|
+
_(this, "handler", async (e, s) => {
|
|
819
821
|
if (!this._implementations.length)
|
|
820
822
|
return !1;
|
|
821
|
-
const n = e.get(
|
|
823
|
+
const n = e.get(ct), r = e.get(Et), i = e.get(ot);
|
|
822
824
|
for (const o of this._implementations) {
|
|
823
825
|
const a = o.command.preconditions;
|
|
824
826
|
if (a != null && a(r) && (n.log("[MultiCommand]", `executing implementation "${o.command.name}".`), await i.invoke(o.command.handler, s)))
|
|
@@ -844,7 +846,7 @@ function Qe(t, e, s) {
|
|
|
844
846
|
const n = t.map((r) => () => e.syncExecuteCommand(r.id, r.params, s));
|
|
845
847
|
return xs(n);
|
|
846
848
|
}
|
|
847
|
-
function
|
|
849
|
+
function no(t, e, s) {
|
|
848
850
|
const n = t.map((r) => () => e.executeCommand(r.id, r.params, s));
|
|
849
851
|
return Ps(n);
|
|
850
852
|
}
|
|
@@ -852,7 +854,7 @@ const Xs = G("univer.config-service");
|
|
|
852
854
|
class Qs {
|
|
853
855
|
constructor() {
|
|
854
856
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
855
|
-
|
|
857
|
+
_(this, "_config", /* @__PURE__ */ new Map());
|
|
856
858
|
}
|
|
857
859
|
getConfig(e) {
|
|
858
860
|
return this._config.get(e);
|
|
@@ -867,8 +869,8 @@ class Qs {
|
|
|
867
869
|
class Zs extends T {
|
|
868
870
|
constructor() {
|
|
869
871
|
super(...arguments);
|
|
870
|
-
|
|
871
|
-
|
|
872
|
+
_(this, "_error$", new M());
|
|
873
|
+
_(this, "error$", this._error$.asObservable());
|
|
872
874
|
}
|
|
873
875
|
dispose() {
|
|
874
876
|
this._error$.complete();
|
|
@@ -877,29 +879,29 @@ class Zs extends T {
|
|
|
877
879
|
this._error$.next({ errorKey: s });
|
|
878
880
|
}
|
|
879
881
|
}
|
|
880
|
-
const
|
|
881
|
-
class
|
|
882
|
+
const ro = "__default_document_sub_component_id20231101__";
|
|
883
|
+
class qs {
|
|
882
884
|
constructor() {
|
|
883
|
-
|
|
885
|
+
_(this, "_managerInfo", /* @__PURE__ */ new Map());
|
|
884
886
|
/**
|
|
885
887
|
* The deletion action is triggered and broadcasted within the core business plugin.
|
|
886
888
|
* Upon receiving the deletion broadcast, the plugin executes the plugin command logic.
|
|
887
889
|
*/
|
|
888
|
-
|
|
889
|
-
|
|
890
|
+
_(this, "_remove$", new M());
|
|
891
|
+
_(this, "remove$", this._remove$.asObservable());
|
|
890
892
|
/**
|
|
891
893
|
* Addition and updates are also triggered and broadcasted within the core business plugin.
|
|
892
894
|
* Upon receiving the update broadcast, the plugin updates the location of its business components.
|
|
893
895
|
*/
|
|
894
|
-
|
|
895
|
-
|
|
896
|
+
_(this, "_andOrUpdate$", new M());
|
|
897
|
+
_(this, "andOrUpdate$", this._andOrUpdate$.asObservable());
|
|
896
898
|
/**
|
|
897
899
|
* The position, width, and height of the plugin's business components can be changed by the user through interface operations.
|
|
898
900
|
* Here, it is necessary to notify the core business plugin to update the relevant location model.
|
|
899
901
|
* The logic converges in the core business plugin.
|
|
900
902
|
*/
|
|
901
|
-
|
|
902
|
-
|
|
903
|
+
_(this, "_pluginUpdate$", new M());
|
|
904
|
+
_(this, "pluginUpdate$", this._pluginUpdate$.asObservable());
|
|
903
905
|
}
|
|
904
906
|
getFloatObject(e) {
|
|
905
907
|
return this._getFloatingObject(e);
|
|
@@ -967,12 +969,12 @@ class Js {
|
|
|
967
969
|
return n == null ? [] : (s == null || s.delete(e.floatingObjectId), [{ ...e, floatingObject: n }]);
|
|
968
970
|
}
|
|
969
971
|
}
|
|
970
|
-
const
|
|
972
|
+
const Js = G(
|
|
971
973
|
"univer.floating-object.service"
|
|
972
974
|
);
|
|
973
975
|
class ys {
|
|
974
976
|
constructor() {
|
|
975
|
-
|
|
977
|
+
_(this, "cursor", 0);
|
|
976
978
|
}
|
|
977
979
|
reset() {
|
|
978
980
|
return this.cursor = 0, this;
|
|
@@ -1014,16 +1016,16 @@ function en(t, e) {
|
|
|
1014
1016
|
}
|
|
1015
1017
|
return i;
|
|
1016
1018
|
}
|
|
1017
|
-
function
|
|
1019
|
+
function io(t, e) {
|
|
1018
1020
|
let s = t.length - 1;
|
|
1019
1021
|
return e < t[0] ? -1 : e > t[t.length - 1] ? 1 / 0 : (t.length < 40 || e <= t[20] || e >= t[s - 20] ? s = en(t, e) : s = tn(t, e), s);
|
|
1020
1022
|
}
|
|
1021
|
-
function
|
|
1023
|
+
function oo(t) {
|
|
1022
1024
|
const e = new Blob([t], { type: "text/javascript" });
|
|
1023
1025
|
return window.URL.createObjectURL(e);
|
|
1024
1026
|
}
|
|
1025
|
-
var sn = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(sn || {}), N = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.THIN = 1] = "THIN", t[t.HAIR = 2] = "HAIR", t[t.DOTTED = 3] = "DOTTED", t[t.DASHED = 4] = "DASHED", t[t.DASH_DOT = 5] = "DASH_DOT", t[t.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", t[t.DOUBLE = 7] = "DOUBLE", t[t.MEDIUM = 8] = "MEDIUM", t[t.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", t[t.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", t[t.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", t[t.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", t[t.THICK = 13] = "THICK", t))(N || {}), nn = /* @__PURE__ */ ((t) => (t.TOP = "top", t.BOTTOM = "bottom", t.LEFT = "left", t.RIGHT = "right", t.NONE = "none", t.ALL = "all", t.OUTSIDE = "outside", t.INSIDE = "inside", t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t))(nn || {}), $ = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))($ || {}), rn = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(rn || {}), on = /* @__PURE__ */ ((t) => (t[t.CONDITION_TYPE_UNSPECIFIED = 0] = "CONDITION_TYPE_UNSPECIFIED", t[t.NUMNUMBER_BETWEENR_GREATER = 1] = "NUMNUMBER_BETWEENR_GREATER", t[t.NUMBER_GREATER_THAN_EQ = 2] = "NUMBER_GREATER_THAN_EQ", t[t.NUMBER_LESS = 3] = "NUMBER_LESS", t[t.NUMBER_LESS_THAN_EQ = 4] = "NUMBER_LESS_THAN_EQ", t[t.NUMBER_EQ = 5] = "NUMBER_EQ", t[t.NUMBER_NOT_EQ = 6] = "NUMBER_NOT_EQ", t[t.NUMBER_BETWEEN = 7] = "NUMBER_BETWEEN", t[t.NUMBER_NOT_BETWEEN = 8] = "NUMBER_NOT_BETWEEN", t[t.TEXT_CONTAINS = 9] = "TEXT_CONTAINS", t[t.TEXT_NOT_CONTAINS = 10] = "TEXT_NOT_CONTAINS", t[t.TEXT_STARTS_WITH = 11] = "TEXT_STARTS_WITH", t[t.TEXT_ENDS_WITH = 12] = "TEXT_ENDS_WITH", t[t.TEXT_EQ = 13] = "TEXT_EQ", t[t.TEXT_IS_EMAIL = 14] = "TEXT_IS_EMAIL", t[t.TEXT_IS_URL = 15] = "TEXT_IS_URL", t[t.DATE_EQ = 16] = "DATE_EQ", t[t.DATE_BEFORE = 17] = "DATE_BEFORE", t[t.DATE_AFTER = 18] = "DATE_AFTER", t[t.DATE_ON_OR_BEFORE = 19] = "DATE_ON_OR_BEFORE", t[t.DATE_ON_OR_AFTER = 20] = "DATE_ON_OR_AFTER", t[t.DATE_BETWEEN = 21] = "DATE_BETWEEN", t[t.DATE_NOT_BETWEEN = 22] = "DATE_NOT_BETWEEN", t[t.DATE_IS_VALID = 23] = "DATE_IS_VALID", t[t.ONE_OF_RANGE = 24] = "ONE_OF_RANGE", t[t.ONE_OF_LIST = 25] = "ONE_OF_LIST", t[t.BLANK = 26] = "BLANK", t[t.NOT_BLANK = 27] = "NOT_BLANK", t[t.CUSTOM_FORMULA = 28] = "CUSTOM_FORMULA", t[t.BOOLEAN = 29] = "BOOLEAN", t[t.TEXT_NOT_EQ = 30] = "TEXT_NOT_EQ", t[t.DATE_NOT_EQ = 31] = "DATE_NOT_EQ", t))(on || {}), an = /* @__PURE__ */ ((t) => (t[t.PASTE_NORMAL = 0] = "PASTE_NORMAL", t[t.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", t[t.PASTE_FORMAT = 2] = "PASTE_FORMAT", t[t.PASTE_FORMULA = 3] = "PASTE_FORMULA", t[t.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", t[t.PASTE_VALUES = 5] = "PASTE_VALUES", t[t.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", t[t.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", t))(an || {}), ln = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(ln || {}), un = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(un || {}), cn = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(cn || {});
|
|
1026
|
-
function
|
|
1027
|
+
var sn = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(sn || {}), N = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.THIN = 1] = "THIN", t[t.HAIR = 2] = "HAIR", t[t.DOTTED = 3] = "DOTTED", t[t.DASHED = 4] = "DASHED", t[t.DASH_DOT = 5] = "DASH_DOT", t[t.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", t[t.DOUBLE = 7] = "DOUBLE", t[t.MEDIUM = 8] = "MEDIUM", t[t.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", t[t.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", t[t.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", t[t.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", t[t.THICK = 13] = "THICK", t))(N || {}), nn = /* @__PURE__ */ ((t) => (t.TOP = "top", t.BOTTOM = "bottom", t.LEFT = "left", t.RIGHT = "right", t.NONE = "none", t.ALL = "all", t.OUTSIDE = "outside", t.INSIDE = "inside", t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t.TLBR = "tlbr", t.TLBC_TLMR = "tlbc_tlmr", t.TLBR_TLBC_TLMR = "tlbr_tlbc_tlmr", t.BLTR = "bl_tr", t.MLTR_BCTR = "mltr_bctr", t))(nn || {}), $ = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))($ || {}), rn = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(rn || {}), on = /* @__PURE__ */ ((t) => (t[t.CONDITION_TYPE_UNSPECIFIED = 0] = "CONDITION_TYPE_UNSPECIFIED", t[t.NUMNUMBER_BETWEENR_GREATER = 1] = "NUMNUMBER_BETWEENR_GREATER", t[t.NUMBER_GREATER_THAN_EQ = 2] = "NUMBER_GREATER_THAN_EQ", t[t.NUMBER_LESS = 3] = "NUMBER_LESS", t[t.NUMBER_LESS_THAN_EQ = 4] = "NUMBER_LESS_THAN_EQ", t[t.NUMBER_EQ = 5] = "NUMBER_EQ", t[t.NUMBER_NOT_EQ = 6] = "NUMBER_NOT_EQ", t[t.NUMBER_BETWEEN = 7] = "NUMBER_BETWEEN", t[t.NUMBER_NOT_BETWEEN = 8] = "NUMBER_NOT_BETWEEN", t[t.TEXT_CONTAINS = 9] = "TEXT_CONTAINS", t[t.TEXT_NOT_CONTAINS = 10] = "TEXT_NOT_CONTAINS", t[t.TEXT_STARTS_WITH = 11] = "TEXT_STARTS_WITH", t[t.TEXT_ENDS_WITH = 12] = "TEXT_ENDS_WITH", t[t.TEXT_EQ = 13] = "TEXT_EQ", t[t.TEXT_IS_EMAIL = 14] = "TEXT_IS_EMAIL", t[t.TEXT_IS_URL = 15] = "TEXT_IS_URL", t[t.DATE_EQ = 16] = "DATE_EQ", t[t.DATE_BEFORE = 17] = "DATE_BEFORE", t[t.DATE_AFTER = 18] = "DATE_AFTER", t[t.DATE_ON_OR_BEFORE = 19] = "DATE_ON_OR_BEFORE", t[t.DATE_ON_OR_AFTER = 20] = "DATE_ON_OR_AFTER", t[t.DATE_BETWEEN = 21] = "DATE_BETWEEN", t[t.DATE_NOT_BETWEEN = 22] = "DATE_NOT_BETWEEN", t[t.DATE_IS_VALID = 23] = "DATE_IS_VALID", t[t.ONE_OF_RANGE = 24] = "ONE_OF_RANGE", t[t.ONE_OF_LIST = 25] = "ONE_OF_LIST", t[t.BLANK = 26] = "BLANK", t[t.NOT_BLANK = 27] = "NOT_BLANK", t[t.CUSTOM_FORMULA = 28] = "CUSTOM_FORMULA", t[t.BOOLEAN = 29] = "BOOLEAN", t[t.TEXT_NOT_EQ = 30] = "TEXT_NOT_EQ", t[t.DATE_NOT_EQ = 31] = "DATE_NOT_EQ", t))(on || {}), an = /* @__PURE__ */ ((t) => (t[t.PASTE_NORMAL = 0] = "PASTE_NORMAL", t[t.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", t[t.PASTE_FORMAT = 2] = "PASTE_FORMAT", t[t.PASTE_FORMULA = 3] = "PASTE_FORMULA", t[t.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", t[t.PASTE_VALUES = 5] = "PASTE_VALUES", t[t.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", t[t.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", t))(an || {}), ln = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(ln || {}), un = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(un || {}), cn = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(cn || {});
|
|
1028
|
+
function ao(t) {
|
|
1027
1029
|
switch (t) {
|
|
1028
1030
|
case 3:
|
|
1029
1031
|
return 1;
|
|
@@ -1035,9 +1037,9 @@ function lo(t) {
|
|
|
1035
1037
|
return 0;
|
|
1036
1038
|
}
|
|
1037
1039
|
}
|
|
1038
|
-
var hn = /* @__PURE__ */ ((t) => (t[t.NUMBER_FORMAT_TYPE_UNSPECIFIED = 0] = "NUMBER_FORMAT_TYPE_UNSPECIFIED", t[t.TEXT = 1] = "TEXT", t[t.NUMBER = 2] = "NUMBER", t[t.PERCENT = 3] = "PERCENT", t[t.CURRENCY = 4] = "CURRENCY", t[t.DATE = 5] = "DATE", t[t.TIME = 6] = "TIME", t[t.DATE_TIME = 7] = "DATE_TIME", t[t.SCIENTIFIC = 8] = "SCIENTIFIC", t))(hn || {}), dn = /* @__PURE__ */ ((t) => (t[t.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", t[t.MIN = 1] = "MIN", t[t.MAX = 2] = "MAX", t[t.NUMBER = 3] = "NUMBER", t[t.PERCENT = 4] = "PERCENT", t[t.PERCENTILE = 5] = "PERCENTILE", t))(dn || {}), Ee = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(Ee || {}), _n = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(_n || {}), fn = /* @__PURE__ */ ((t) => (t[t.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", t[t.PAST_YEAR = 1] = "PAST_YEAR", t[t.PAST_MONTH = 2] = "PAST_MONTH", t[t.PAST_WEEK = 3] = "PAST_WEEK", t[t.YESTERDAY = 4] = "YESTERDAY", t[t.TODAY = 5] = "TODAY", t[t.TOMORROW = 6] = "TOMORROW", t))(fn || {}), gn = /* @__PURE__ */ ((t) => (t[t.TYPE_UNSPECIFIED = 0] = "TYPE_UNSPECIFIED", t[t.TEXT_BOX = 1] = "TEXT_BOX", t[t.RECTANGLE = 2] = "RECTANGLE", t[t.ROUND_RECTANGLE = 3] = "ROUND_RECTANGLE", t[t.ELLIPSE = 4] = "ELLIPSE", t[t.ARC = 5] = "ARC", t[t.BENT_ARROW = 6] = "BENT_ARROW", t[t.BENT_UP_ARROW = 7] = "BENT_UP_ARROW", t[t.BEVEL = 8] = "BEVEL", t[t.BLOCK_ARC = 9] = "BLOCK_ARC", t[t.BRACE_PAIR = 10] = "BRACE_PAIR", t[t.BRACKET_PAIR = 11] = "BRACKET_PAIR", t[t.CAN = 12] = "CAN", t[t.CHEVRON = 13] = "CHEVRON", t[t.CHORD = 14] = "CHORD", t[t.CLOUD = 15] = "CLOUD", t[t.CORNER = 16] = "CORNER", t[t.CUBE = 17] = "CUBE", t[t.CURVED_DOWN_ARROW = 18] = "CURVED_DOWN_ARROW", t[t.CURVED_LEFT_ARROW = 19] = "CURVED_LEFT_ARROW", t[t.CURVED_RIGHT_ARROW = 20] = "CURVED_RIGHT_ARROW", t[t.CURVED_UP_ARROW = 21] = "CURVED_UP_ARROW", t[t.DECAGON = 22] = "DECAGON", t[t.DIAGONAL_STRIPE = 23] = "DIAGONAL_STRIPE", t[t.DIAMOND = 24] = "DIAMOND", t[t.DODECAGON = 25] = "DODECAGON", t[t.DONUT = 26] = "DONUT", t[t.DOUBLE_WAVE = 27] = "DOUBLE_WAVE", t[t.DOWN_ARROW = 28] = "DOWN_ARROW", t[t.DOWN_ARROW_CALLOUT = 29] = "DOWN_ARROW_CALLOUT", t[t.FOLDED_CORNER = 30] = "FOLDED_CORNER", t[t.FRAME = 31] = "FRAME", t[t.HALF_FRAME = 32] = "HALF_FRAME", t[t.HEART = 33] = "HEART", t[t.HEPTAGON = 34] = "HEPTAGON", t[t.HEXAGON = 35] = "HEXAGON", t[t.HOME_PLATE = 36] = "HOME_PLATE", t[t.HORIZONTAL_SCROLL = 37] = "HORIZONTAL_SCROLL", t[t.IRREGULAR_SEAL_1 = 38] = "IRREGULAR_SEAL_1", t[t.IRREGULAR_SEAL_2 = 39] = "IRREGULAR_SEAL_2", t[t.LEFT_ARROW = 40] = "LEFT_ARROW", t[t.LEFT_ARROW_CALLOUT = 41] = "LEFT_ARROW_CALLOUT", t[t.LEFT_BRACE = 42] = "LEFT_BRACE", t[t.LEFT_BRACKET = 43] = "LEFT_BRACKET", t[t.LEFT_RIGHT_ARROW = 44] = "LEFT_RIGHT_ARROW", t[t.LEFT_RIGHT_ARROW_CALLOUT = 45] = "LEFT_RIGHT_ARROW_CALLOUT", t[t.LEFT_RIGHT_UP_ARROW = 46] = "LEFT_RIGHT_UP_ARROW", t[t.LEFT_UP_ARROW = 47] = "LEFT_UP_ARROW", t[t.LIGHTNING_BOLT = 48] = "LIGHTNING_BOLT", t[t.MATH_DIVIDE = 49] = "MATH_DIVIDE", t[t.MATH_EQUAL = 50] = "MATH_EQUAL", t[t.MATH_MINUS = 51] = "MATH_MINUS", t[t.MATH_MULTIPLY = 52] = "MATH_MULTIPLY", t[t.MATH_NOT_EQUAL = 53] = "MATH_NOT_EQUAL", t[t.MATH_PLUS = 54] = "MATH_PLUS", t[t.MOON = 55] = "MOON", t[t.NO_SMOKING = 56] = "NO_SMOKING", t[t.NOTCHED_RIGHT_ARROW = 57] = "NOTCHED_RIGHT_ARROW", t[t.OCTAGON = 58] = "OCTAGON", t[t.PARALLELOGRAM = 59] = "PARALLELOGRAM", t[t.PENTAGON = 60] = "PENTAGON", t[t.PIE = 61] = "PIE", t[t.PLAQUE = 62] = "PLAQUE", t[t.PLUS = 63] = "PLUS", t[t.QUAD_ARROW = 64] = "QUAD_ARROW", t[t.QUAD_ARROW_CALLOUT = 65] = "QUAD_ARROW_CALLOUT", t[t.RIBBON = 66] = "RIBBON", t[t.RIBBON_2 = 67] = "RIBBON_2", t[t.RIGHT_ARROW = 68] = "RIGHT_ARROW", t[t.RIGHT_ARROW_CALLOUT = 69] = "RIGHT_ARROW_CALLOUT", t[t.RIGHT_BRACE = 70] = "RIGHT_BRACE", t[t.RIGHT_BRACKET = 71] = "RIGHT_BRACKET", t[t.ROUND_1_RECTANGLE = 72] = "ROUND_1_RECTANGLE", t[t.ROUND_2_DIAGONAL_RECTANGLE = 73] = "ROUND_2_DIAGONAL_RECTANGLE", t[t.ROUND_2_SAME_RECTANGLE = 74] = "ROUND_2_SAME_RECTANGLE", t[t.RIGHT_TRIANGLE = 75] = "RIGHT_TRIANGLE", t[t.SMILEY_FACE = 76] = "SMILEY_FACE", t[t.SNIP_1_RECTANGLE = 77] = "SNIP_1_RECTANGLE", t[t.SNIP_2_DIAGONAL_RECTANGLE = 78] = "SNIP_2_DIAGONAL_RECTANGLE", t[t.SNIP_2_SAME_RECTANGLE = 79] = "SNIP_2_SAME_RECTANGLE", t[t.SNIP_ROUND_RECTANGLE = 80] = "SNIP_ROUND_RECTANGLE", t[t.STAR_10 = 81] = "STAR_10", t[t.STAR_12 = 82] = "STAR_12", t[t.STAR_16 = 83] = "STAR_16", t[t.STAR_24 = 84] = "STAR_24", t[t.STAR_32 = 85] = "STAR_32", t[t.STAR_4 = 86] = "STAR_4", t[t.STAR_5 = 87] = "STAR_5", t[t.STAR_6 = 88] = "STAR_6", t[t.STAR_7 = 89] = "STAR_7", t[t.STAR_8 = 90] = "STAR_8", t[t.STRIPED_RIGHT_ARROW = 91] = "STRIPED_RIGHT_ARROW", t[t.SUN = 92] = "SUN", t[t.TRAPEZOID = 93] = "TRAPEZOID", t[t.TRIANGLE = 94] = "TRIANGLE", t[t.UP_ARROW = 95] = "UP_ARROW", t[t.UP_ARROW_CALLOUT = 96] = "UP_ARROW_CALLOUT", t[t.UP_DOWN_ARROW = 97] = "UP_DOWN_ARROW", t[t.UTURN_ARROW = 98] = "UTURN_ARROW", t[t.VERTICAL_SCROLL = 99] = "VERTICAL_SCROLL", t[t.WAVE = 100] = "WAVE", t[t.WEDGE_ELLIPSE_CALLOUT = 101] = "WEDGE_ELLIPSE_CALLOUT", t[t.WEDGE_RECTANGLE_CALLOUT = 102] = "WEDGE_RECTANGLE_CALLOUT", t[t.WEDGE_ROUND_RECTANGLE_CALLOUT = 103] = "WEDGE_ROUND_RECTANGLE_CALLOUT", t[t.FLOW_CHART_ALTERNATE_PROCESS = 104] = "FLOW_CHART_ALTERNATE_PROCESS", t[t.FLOW_CHART_COLLATE = 105] = "FLOW_CHART_COLLATE", t[t.FLOW_CHART_CONNECTOR = 106] = "FLOW_CHART_CONNECTOR", t[t.FLOW_CHART_DECISION = 107] = "FLOW_CHART_DECISION", t[t.FLOW_CHART_DELAY = 108] = "FLOW_CHART_DELAY", t[t.FLOW_CHART_DISPLAY = 109] = "FLOW_CHART_DISPLAY", t[t.FLOW_CHART_DOCUMENT = 110] = "FLOW_CHART_DOCUMENT", t[t.FLOW_CHART_EXTRACT = 111] = "FLOW_CHART_EXTRACT", t[t.FLOW_CHART_INPUT_OUTPUT = 112] = "FLOW_CHART_INPUT_OUTPUT", t[t.FLOW_CHART_INTERNAL_STORAGE = 113] = "FLOW_CHART_INTERNAL_STORAGE", t[t.FLOW_CHART_MAGNETIC_DISK = 114] = "FLOW_CHART_MAGNETIC_DISK", t[t.FLOW_CHART_MAGNETIC_DRUM = 115] = "FLOW_CHART_MAGNETIC_DRUM", t[t.FLOW_CHART_MAGNETIC_TAPE = 116] = "FLOW_CHART_MAGNETIC_TAPE", t[t.FLOW_CHART_MANUAL_INPUT = 117] = "FLOW_CHART_MANUAL_INPUT", t[t.FLOW_CHART_MANUAL_OPERATION = 118] = "FLOW_CHART_MANUAL_OPERATION", t[t.FLOW_CHART_MERGE = 119] = "FLOW_CHART_MERGE", t[t.FLOW_CHART_MULTIDOCUMENT = 120] = "FLOW_CHART_MULTIDOCUMENT", t[t.FLOW_CHART_OFFLINE_STORAGE = 121] = "FLOW_CHART_OFFLINE_STORAGE", t[t.FLOW_CHART_OFFPAGE_CONNECTOR = 122] = "FLOW_CHART_OFFPAGE_CONNECTOR", t[t.FLOW_CHART_ONLINE_STORAGE = 123] = "FLOW_CHART_ONLINE_STORAGE", t[t.FLOW_CHART_OR = 124] = "FLOW_CHART_OR", t[t.FLOW_CHART_PREDEFINED_PROCESS = 125] = "FLOW_CHART_PREDEFINED_PROCESS", t[t.FLOW_CHART_PREPARATION = 126] = "FLOW_CHART_PREPARATION", t[t.FLOW_CHART_PROCESS = 127] = "FLOW_CHART_PROCESS", t[t.FLOW_CHART_PUNCHED_CARD = 128] = "FLOW_CHART_PUNCHED_CARD", t[t.FLOW_CHART_PUNCHED_TAPE = 129] = "FLOW_CHART_PUNCHED_TAPE", t[t.FLOW_CHART_SORT = 130] = "FLOW_CHART_SORT", t[t.FLOW_CHART_SUMMING_JUNCTION = 131] = "FLOW_CHART_SUMMING_JUNCTION", t[t.FLOW_CHART_TERMINATOR = 132] = "FLOW_CHART_TERMINATOR", t[t.ARROW_EAST = 133] = "ARROW_EAST", t[t.ARROW_NORTH_EAST = 134] = "ARROW_NORTH_EAST", t[t.ARROW_NORTH = 135] = "ARROW_NORTH", t[t.SPEECH = 136] = "SPEECH", t[t.STARBURST = 137] = "STARBURST", t[t.TEARDROP = 138] = "TEARDROP", t[t.ELLIPSE_RIBBON = 139] = "ELLIPSE_RIBBON", t[t.ELLIPSE_RIBBON_2 = 140] = "ELLIPSE_RIBBON_2", t[t.CLOUD_CALLOUT = 141] = "CLOUD_CALLOUT", t[t.CUSTOM = 142] = "CUSTOM", t))(gn || {}), Ze = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(Ze || {}), xt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t))(xt || {}), En = /* @__PURE__ */ ((t) => (t[t.DASH = 0] = "DASH", t[t.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", t[t.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", t[t.DASHED_HEAVY = 3] = "DASHED_HEAVY", t[t.DASH_LONG = 4] = "DASH_LONG", t[t.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", t[t.DOT_DASH = 6] = "DOT_DASH", t[t.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", t[t.DOTTED = 8] = "DOTTED", t[t.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", t[t.DOUBLE = 10] = "DOUBLE", t[t.NONE = 11] = "NONE", t[t.SINGLE = 12] = "SINGLE", t[t.THICK = 13] = "THICK", t[t.WAVE = 14] = "WAVE", t[t.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", t[t.WAVY_HEAVY = 16] = "WAVY_HEAVY", t[t.WORDS = 17] = "WORDS", t))(En || {}), ut = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT = 1] = "LEFT", t[t.CENTER = 2] = "CENTER", t[t.RIGHT = 3] = "RIGHT", t[t.JUSTIFIED = 4] = "JUSTIFIED", t))(ut || {}), dt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(dt || {}), _t = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(_t || {}), te = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(te || {}), ee = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))(ee || {}), se = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(se || {}), I = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(I || {}), vt = /* @__PURE__ */ ((t) => (t[t.STRING = 1] = "STRING", t[t.NUMBER = 2] = "NUMBER", t[t.BOOLEAN = 3] = "BOOLEAN", t[t.FORCE_STRING = 4] = "FORCE_STRING", t))(vt || {}), F = /* @__PURE__ */ ((t) => (t[t.DARK1 = 0] = "DARK1", t[t.LIGHT1 = 1] = "LIGHT1", t[t.DARK2 = 2] = "DARK2", t[t.LIGHT2 = 3] = "LIGHT2", t[t.ACCENT1 = 4] = "ACCENT1", t[t.ACCENT2 = 5] = "ACCENT2", t[t.ACCENT3 = 6] = "ACCENT3", t[t.ACCENT4 = 7] = "ACCENT4", t[t.ACCENT5 = 8] = "ACCENT5", t[t.ACCENT6 = 9] = "ACCENT6", t[t.HYPERLINK = 10] = "HYPERLINK", t[t.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", t))(F || {}), Re = /* @__PURE__ */ ((t) => (t.OFFICE = "Office", t.OFFICE_2007_2010 = "Office 2007-2010", t.GRAYSCALE = "Grayscale", t.BLUE_WARM = "Blue Warm", t.BLUE = "Blue", t.BLUE_II = "Blue II", t.BLUE_GREEN = "Blue Green", t.GREEN = "Green", t.GREEN_YELLOW = "Green Yellow", t.YELLOW = "Yellow", t.YELLOW_ORANGE = "Yellow Orange", t.ORANGE = "Orange", t.ORANGE_RED = "Orange Red", t.RED_ORANGE = "Red Orange", t.RED = "Red", t.RED_VIOLET = "Red Violet", t.VIOLET = "Violet", t.VIOLET_II = "Violet II", t.MEDIAN = "Median", t.PAPER = "Paper", t.MARQUEE = "Marquee", t.SLIPSTREAM = "Slipstream", t.Aspect = "Aspect", t))(Re || {});
|
|
1040
|
+
var hn = /* @__PURE__ */ ((t) => (t[t.NUMBER_FORMAT_TYPE_UNSPECIFIED = 0] = "NUMBER_FORMAT_TYPE_UNSPECIFIED", t[t.TEXT = 1] = "TEXT", t[t.NUMBER = 2] = "NUMBER", t[t.PERCENT = 3] = "PERCENT", t[t.CURRENCY = 4] = "CURRENCY", t[t.DATE = 5] = "DATE", t[t.TIME = 6] = "TIME", t[t.DATE_TIME = 7] = "DATE_TIME", t[t.SCIENTIFIC = 8] = "SCIENTIFIC", t))(hn || {}), _n = /* @__PURE__ */ ((t) => (t[t.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", t[t.MIN = 1] = "MIN", t[t.MAX = 2] = "MAX", t[t.NUMBER = 3] = "NUMBER", t[t.PERCENT = 4] = "PERCENT", t[t.PERCENTILE = 5] = "PERCENTILE", t))(_n || {}), Re = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(Re || {}), dn = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(dn || {}), fn = /* @__PURE__ */ ((t) => (t[t.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", t[t.PAST_YEAR = 1] = "PAST_YEAR", t[t.PAST_MONTH = 2] = "PAST_MONTH", t[t.PAST_WEEK = 3] = "PAST_WEEK", t[t.YESTERDAY = 4] = "YESTERDAY", t[t.TODAY = 5] = "TODAY", t[t.TOMORROW = 6] = "TOMORROW", t))(fn || {}), gn = /* @__PURE__ */ ((t) => (t[t.TYPE_UNSPECIFIED = 0] = "TYPE_UNSPECIFIED", t[t.TEXT_BOX = 1] = "TEXT_BOX", t[t.RECTANGLE = 2] = "RECTANGLE", t[t.ROUND_RECTANGLE = 3] = "ROUND_RECTANGLE", t[t.ELLIPSE = 4] = "ELLIPSE", t[t.ARC = 5] = "ARC", t[t.BENT_ARROW = 6] = "BENT_ARROW", t[t.BENT_UP_ARROW = 7] = "BENT_UP_ARROW", t[t.BEVEL = 8] = "BEVEL", t[t.BLOCK_ARC = 9] = "BLOCK_ARC", t[t.BRACE_PAIR = 10] = "BRACE_PAIR", t[t.BRACKET_PAIR = 11] = "BRACKET_PAIR", t[t.CAN = 12] = "CAN", t[t.CHEVRON = 13] = "CHEVRON", t[t.CHORD = 14] = "CHORD", t[t.CLOUD = 15] = "CLOUD", t[t.CORNER = 16] = "CORNER", t[t.CUBE = 17] = "CUBE", t[t.CURVED_DOWN_ARROW = 18] = "CURVED_DOWN_ARROW", t[t.CURVED_LEFT_ARROW = 19] = "CURVED_LEFT_ARROW", t[t.CURVED_RIGHT_ARROW = 20] = "CURVED_RIGHT_ARROW", t[t.CURVED_UP_ARROW = 21] = "CURVED_UP_ARROW", t[t.DECAGON = 22] = "DECAGON", t[t.DIAGONAL_STRIPE = 23] = "DIAGONAL_STRIPE", t[t.DIAMOND = 24] = "DIAMOND", t[t.DODECAGON = 25] = "DODECAGON", t[t.DONUT = 26] = "DONUT", t[t.DOUBLE_WAVE = 27] = "DOUBLE_WAVE", t[t.DOWN_ARROW = 28] = "DOWN_ARROW", t[t.DOWN_ARROW_CALLOUT = 29] = "DOWN_ARROW_CALLOUT", t[t.FOLDED_CORNER = 30] = "FOLDED_CORNER", t[t.FRAME = 31] = "FRAME", t[t.HALF_FRAME = 32] = "HALF_FRAME", t[t.HEART = 33] = "HEART", t[t.HEPTAGON = 34] = "HEPTAGON", t[t.HEXAGON = 35] = "HEXAGON", t[t.HOME_PLATE = 36] = "HOME_PLATE", t[t.HORIZONTAL_SCROLL = 37] = "HORIZONTAL_SCROLL", t[t.IRREGULAR_SEAL_1 = 38] = "IRREGULAR_SEAL_1", t[t.IRREGULAR_SEAL_2 = 39] = "IRREGULAR_SEAL_2", t[t.LEFT_ARROW = 40] = "LEFT_ARROW", t[t.LEFT_ARROW_CALLOUT = 41] = "LEFT_ARROW_CALLOUT", t[t.LEFT_BRACE = 42] = "LEFT_BRACE", t[t.LEFT_BRACKET = 43] = "LEFT_BRACKET", t[t.LEFT_RIGHT_ARROW = 44] = "LEFT_RIGHT_ARROW", t[t.LEFT_RIGHT_ARROW_CALLOUT = 45] = "LEFT_RIGHT_ARROW_CALLOUT", t[t.LEFT_RIGHT_UP_ARROW = 46] = "LEFT_RIGHT_UP_ARROW", t[t.LEFT_UP_ARROW = 47] = "LEFT_UP_ARROW", t[t.LIGHTNING_BOLT = 48] = "LIGHTNING_BOLT", t[t.MATH_DIVIDE = 49] = "MATH_DIVIDE", t[t.MATH_EQUAL = 50] = "MATH_EQUAL", t[t.MATH_MINUS = 51] = "MATH_MINUS", t[t.MATH_MULTIPLY = 52] = "MATH_MULTIPLY", t[t.MATH_NOT_EQUAL = 53] = "MATH_NOT_EQUAL", t[t.MATH_PLUS = 54] = "MATH_PLUS", t[t.MOON = 55] = "MOON", t[t.NO_SMOKING = 56] = "NO_SMOKING", t[t.NOTCHED_RIGHT_ARROW = 57] = "NOTCHED_RIGHT_ARROW", t[t.OCTAGON = 58] = "OCTAGON", t[t.PARALLELOGRAM = 59] = "PARALLELOGRAM", t[t.PENTAGON = 60] = "PENTAGON", t[t.PIE = 61] = "PIE", t[t.PLAQUE = 62] = "PLAQUE", t[t.PLUS = 63] = "PLUS", t[t.QUAD_ARROW = 64] = "QUAD_ARROW", t[t.QUAD_ARROW_CALLOUT = 65] = "QUAD_ARROW_CALLOUT", t[t.RIBBON = 66] = "RIBBON", t[t.RIBBON_2 = 67] = "RIBBON_2", t[t.RIGHT_ARROW = 68] = "RIGHT_ARROW", t[t.RIGHT_ARROW_CALLOUT = 69] = "RIGHT_ARROW_CALLOUT", t[t.RIGHT_BRACE = 70] = "RIGHT_BRACE", t[t.RIGHT_BRACKET = 71] = "RIGHT_BRACKET", t[t.ROUND_1_RECTANGLE = 72] = "ROUND_1_RECTANGLE", t[t.ROUND_2_DIAGONAL_RECTANGLE = 73] = "ROUND_2_DIAGONAL_RECTANGLE", t[t.ROUND_2_SAME_RECTANGLE = 74] = "ROUND_2_SAME_RECTANGLE", t[t.RIGHT_TRIANGLE = 75] = "RIGHT_TRIANGLE", t[t.SMILEY_FACE = 76] = "SMILEY_FACE", t[t.SNIP_1_RECTANGLE = 77] = "SNIP_1_RECTANGLE", t[t.SNIP_2_DIAGONAL_RECTANGLE = 78] = "SNIP_2_DIAGONAL_RECTANGLE", t[t.SNIP_2_SAME_RECTANGLE = 79] = "SNIP_2_SAME_RECTANGLE", t[t.SNIP_ROUND_RECTANGLE = 80] = "SNIP_ROUND_RECTANGLE", t[t.STAR_10 = 81] = "STAR_10", t[t.STAR_12 = 82] = "STAR_12", t[t.STAR_16 = 83] = "STAR_16", t[t.STAR_24 = 84] = "STAR_24", t[t.STAR_32 = 85] = "STAR_32", t[t.STAR_4 = 86] = "STAR_4", t[t.STAR_5 = 87] = "STAR_5", t[t.STAR_6 = 88] = "STAR_6", t[t.STAR_7 = 89] = "STAR_7", t[t.STAR_8 = 90] = "STAR_8", t[t.STRIPED_RIGHT_ARROW = 91] = "STRIPED_RIGHT_ARROW", t[t.SUN = 92] = "SUN", t[t.TRAPEZOID = 93] = "TRAPEZOID", t[t.TRIANGLE = 94] = "TRIANGLE", t[t.UP_ARROW = 95] = "UP_ARROW", t[t.UP_ARROW_CALLOUT = 96] = "UP_ARROW_CALLOUT", t[t.UP_DOWN_ARROW = 97] = "UP_DOWN_ARROW", t[t.UTURN_ARROW = 98] = "UTURN_ARROW", t[t.VERTICAL_SCROLL = 99] = "VERTICAL_SCROLL", t[t.WAVE = 100] = "WAVE", t[t.WEDGE_ELLIPSE_CALLOUT = 101] = "WEDGE_ELLIPSE_CALLOUT", t[t.WEDGE_RECTANGLE_CALLOUT = 102] = "WEDGE_RECTANGLE_CALLOUT", t[t.WEDGE_ROUND_RECTANGLE_CALLOUT = 103] = "WEDGE_ROUND_RECTANGLE_CALLOUT", t[t.FLOW_CHART_ALTERNATE_PROCESS = 104] = "FLOW_CHART_ALTERNATE_PROCESS", t[t.FLOW_CHART_COLLATE = 105] = "FLOW_CHART_COLLATE", t[t.FLOW_CHART_CONNECTOR = 106] = "FLOW_CHART_CONNECTOR", t[t.FLOW_CHART_DECISION = 107] = "FLOW_CHART_DECISION", t[t.FLOW_CHART_DELAY = 108] = "FLOW_CHART_DELAY", t[t.FLOW_CHART_DISPLAY = 109] = "FLOW_CHART_DISPLAY", t[t.FLOW_CHART_DOCUMENT = 110] = "FLOW_CHART_DOCUMENT", t[t.FLOW_CHART_EXTRACT = 111] = "FLOW_CHART_EXTRACT", t[t.FLOW_CHART_INPUT_OUTPUT = 112] = "FLOW_CHART_INPUT_OUTPUT", t[t.FLOW_CHART_INTERNAL_STORAGE = 113] = "FLOW_CHART_INTERNAL_STORAGE", t[t.FLOW_CHART_MAGNETIC_DISK = 114] = "FLOW_CHART_MAGNETIC_DISK", t[t.FLOW_CHART_MAGNETIC_DRUM = 115] = "FLOW_CHART_MAGNETIC_DRUM", t[t.FLOW_CHART_MAGNETIC_TAPE = 116] = "FLOW_CHART_MAGNETIC_TAPE", t[t.FLOW_CHART_MANUAL_INPUT = 117] = "FLOW_CHART_MANUAL_INPUT", t[t.FLOW_CHART_MANUAL_OPERATION = 118] = "FLOW_CHART_MANUAL_OPERATION", t[t.FLOW_CHART_MERGE = 119] = "FLOW_CHART_MERGE", t[t.FLOW_CHART_MULTIDOCUMENT = 120] = "FLOW_CHART_MULTIDOCUMENT", t[t.FLOW_CHART_OFFLINE_STORAGE = 121] = "FLOW_CHART_OFFLINE_STORAGE", t[t.FLOW_CHART_OFFPAGE_CONNECTOR = 122] = "FLOW_CHART_OFFPAGE_CONNECTOR", t[t.FLOW_CHART_ONLINE_STORAGE = 123] = "FLOW_CHART_ONLINE_STORAGE", t[t.FLOW_CHART_OR = 124] = "FLOW_CHART_OR", t[t.FLOW_CHART_PREDEFINED_PROCESS = 125] = "FLOW_CHART_PREDEFINED_PROCESS", t[t.FLOW_CHART_PREPARATION = 126] = "FLOW_CHART_PREPARATION", t[t.FLOW_CHART_PROCESS = 127] = "FLOW_CHART_PROCESS", t[t.FLOW_CHART_PUNCHED_CARD = 128] = "FLOW_CHART_PUNCHED_CARD", t[t.FLOW_CHART_PUNCHED_TAPE = 129] = "FLOW_CHART_PUNCHED_TAPE", t[t.FLOW_CHART_SORT = 130] = "FLOW_CHART_SORT", t[t.FLOW_CHART_SUMMING_JUNCTION = 131] = "FLOW_CHART_SUMMING_JUNCTION", t[t.FLOW_CHART_TERMINATOR = 132] = "FLOW_CHART_TERMINATOR", t[t.ARROW_EAST = 133] = "ARROW_EAST", t[t.ARROW_NORTH_EAST = 134] = "ARROW_NORTH_EAST", t[t.ARROW_NORTH = 135] = "ARROW_NORTH", t[t.SPEECH = 136] = "SPEECH", t[t.STARBURST = 137] = "STARBURST", t[t.TEARDROP = 138] = "TEARDROP", t[t.ELLIPSE_RIBBON = 139] = "ELLIPSE_RIBBON", t[t.ELLIPSE_RIBBON_2 = 140] = "ELLIPSE_RIBBON_2", t[t.CLOUD_CALLOUT = 141] = "CLOUD_CALLOUT", t[t.CUSTOM = 142] = "CUSTOM", t))(gn || {}), Ze = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(Ze || {}), xt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t))(xt || {}), En = /* @__PURE__ */ ((t) => (t[t.DASH = 0] = "DASH", t[t.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", t[t.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", t[t.DASHED_HEAVY = 3] = "DASHED_HEAVY", t[t.DASH_LONG = 4] = "DASH_LONG", t[t.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", t[t.DOT_DASH = 6] = "DOT_DASH", t[t.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", t[t.DOTTED = 8] = "DOTTED", t[t.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", t[t.DOUBLE = 10] = "DOUBLE", t[t.NONE = 11] = "NONE", t[t.SINGLE = 12] = "SINGLE", t[t.THICK = 13] = "THICK", t[t.WAVE = 14] = "WAVE", t[t.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", t[t.WAVY_HEAVY = 16] = "WAVY_HEAVY", t[t.WORDS = 17] = "WORDS", t))(En || {}), ut = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT = 1] = "LEFT", t[t.CENTER = 2] = "CENTER", t[t.RIGHT = 3] = "RIGHT", t[t.JUSTIFIED = 4] = "JUSTIFIED", t))(ut || {}), dt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(dt || {}), ft = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(ft || {}), te = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(te || {}), ee = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))(ee || {}), se = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(se || {}), I = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(I || {}), vt = /* @__PURE__ */ ((t) => (t[t.STRING = 1] = "STRING", t[t.NUMBER = 2] = "NUMBER", t[t.BOOLEAN = 3] = "BOOLEAN", t[t.FORCE_STRING = 4] = "FORCE_STRING", t))(vt || {}), F = /* @__PURE__ */ ((t) => (t[t.DARK1 = 0] = "DARK1", t[t.LIGHT1 = 1] = "LIGHT1", t[t.DARK2 = 2] = "DARK2", t[t.LIGHT2 = 3] = "LIGHT2", t[t.ACCENT1 = 4] = "ACCENT1", t[t.ACCENT2 = 5] = "ACCENT2", t[t.ACCENT3 = 6] = "ACCENT3", t[t.ACCENT4 = 7] = "ACCENT4", t[t.ACCENT5 = 8] = "ACCENT5", t[t.ACCENT6 = 9] = "ACCENT6", t[t.HYPERLINK = 10] = "HYPERLINK", t[t.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", t))(F || {}), me = /* @__PURE__ */ ((t) => (t.OFFICE = "Office", t.OFFICE_2007_2010 = "Office 2007-2010", t.GRAYSCALE = "Grayscale", t.BLUE_WARM = "Blue Warm", t.BLUE = "Blue", t.BLUE_II = "Blue II", t.BLUE_GREEN = "Blue Green", t.GREEN = "Green", t.GREEN_YELLOW = "Green Yellow", t.YELLOW = "Yellow", t.YELLOW_ORANGE = "Yellow Orange", t.ORANGE = "Orange", t.ORANGE_RED = "Orange Red", t.RED_ORANGE = "Red Orange", t.RED = "Red", t.RED_VIOLET = "Red Violet", t.VIOLET = "Violet", t.VIOLET_II = "Violet II", t.MEDIAN = "Median", t.PAPER = "Paper", t.MARQUEE = "Marquee", t.SLIPSTREAM = "Slipstream", t.Aspect = "Aspect", t))(me || {});
|
|
1039
1041
|
const Rn = {
|
|
1040
|
-
[
|
|
1042
|
+
[me.OFFICE]: {
|
|
1041
1043
|
[F.ACCENT1]: "#4472C4",
|
|
1042
1044
|
[F.ACCENT2]: "#ED7D31",
|
|
1043
1045
|
[F.ACCENT3]: "#A5A5A5",
|
|
@@ -1052,14 +1054,14 @@ const Rn = {
|
|
|
1052
1054
|
[F.FOLLOWED_HYPERLINK]: "#954F72"
|
|
1053
1055
|
}
|
|
1054
1056
|
};
|
|
1055
|
-
class
|
|
1057
|
+
class Oe {
|
|
1056
1058
|
constructor() {
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
this._colorType = $.UNSUPPORTED, this._themeColors =
|
|
1059
|
+
_(this, "_themeValue", F.LIGHT1);
|
|
1060
|
+
_(this, "_themeColors");
|
|
1061
|
+
_(this, "_themeTint");
|
|
1062
|
+
_(this, "_rgbValue", "");
|
|
1063
|
+
_(this, "_colorType");
|
|
1064
|
+
this._colorType = $.UNSUPPORTED, this._themeColors = me.OFFICE, this._themeTint = 0;
|
|
1063
1065
|
}
|
|
1064
1066
|
asRgbColor() {
|
|
1065
1067
|
return new ne(this._rgbValue, this);
|
|
@@ -1093,9 +1095,9 @@ class me {
|
|
|
1093
1095
|
return this._colorType;
|
|
1094
1096
|
}
|
|
1095
1097
|
}
|
|
1096
|
-
class
|
|
1098
|
+
class ht {
|
|
1097
1099
|
constructor(e) {
|
|
1098
|
-
|
|
1100
|
+
_(this, "_builder");
|
|
1099
1101
|
this._builder = e;
|
|
1100
1102
|
}
|
|
1101
1103
|
static rgbColorToHexValue(e) {
|
|
@@ -1104,7 +1106,7 @@ class ct {
|
|
|
1104
1106
|
static hexValueToRgbColor(e) {
|
|
1105
1107
|
e ? e.indexOf("#") > -1 && (e = e.substring(1)) : e = "#000000";
|
|
1106
1108
|
const s = +`0x${e[0]}${e[1]}`, n = +`0x${e[2]}${e[3]}`, r = +`0x${e[4]}${e[5]}`;
|
|
1107
|
-
return new
|
|
1109
|
+
return new Oe().setRgbColor(`rgb(${s},${n},${r})`).asRgbColor();
|
|
1108
1110
|
}
|
|
1109
1111
|
static hexToRgbString(e) {
|
|
1110
1112
|
const s = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
|
@@ -1127,7 +1129,7 @@ class ct {
|
|
|
1127
1129
|
return this._builder.getColorType();
|
|
1128
1130
|
}
|
|
1129
1131
|
clone() {
|
|
1130
|
-
return new
|
|
1132
|
+
return new ht(this._builder);
|
|
1131
1133
|
}
|
|
1132
1134
|
equals(e) {
|
|
1133
1135
|
return !1;
|
|
@@ -1135,10 +1137,10 @@ class ct {
|
|
|
1135
1137
|
}
|
|
1136
1138
|
class mn {
|
|
1137
1139
|
constructor(e) {
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1140
|
+
_(this, "_saturation", 0);
|
|
1141
|
+
_(this, "_hue", 0);
|
|
1142
|
+
_(this, "_lightness", 0);
|
|
1143
|
+
_(this, "_alpha", 0);
|
|
1142
1144
|
const s = e.getRed() / 255, n = e.getGreen() / 255, r = e.getBlue() / 255, i = e.getAlpha() / 255, o = Math.min(s, Math.min(n, r)), a = Math.max(s, Math.max(n, r)), c = a - o;
|
|
1143
1145
|
if (a === o) {
|
|
1144
1146
|
this._hue = 0, this._saturation = 0, this._lightness = a;
|
|
@@ -1147,7 +1149,7 @@ class mn {
|
|
|
1147
1149
|
this._lightness = (o + a) / 2, this._lightness < 0.5 ? this._saturation = c / (a + o) : this._saturation = c / (2 - a - o), s === a && (this._hue = (n - r) / c), n === a && (this._hue = 2 + (r - s) / c), r === a && (this._hue = 4 + (s - n) / c), this._hue *= 60, this._hue < 0 && (this._hue += 360), this._alpha = i;
|
|
1148
1150
|
}
|
|
1149
1151
|
asRgbColor() {
|
|
1150
|
-
const e = new
|
|
1152
|
+
const e = new Oe();
|
|
1151
1153
|
if (this._saturation === 0)
|
|
1152
1154
|
return e.setRgbColor(
|
|
1153
1155
|
`rgba(${this._lightness * 255},${this._lightness * 255},${this._lightness * 255},${this._alpha * 255})`
|
|
@@ -1180,14 +1182,14 @@ class mn {
|
|
|
1180
1182
|
this._lightness = e;
|
|
1181
1183
|
}
|
|
1182
1184
|
}
|
|
1183
|
-
const B = class B extends
|
|
1185
|
+
const B = class B extends ht {
|
|
1184
1186
|
constructor(s, n) {
|
|
1185
1187
|
super(n);
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1188
|
+
_(this, "_cssString");
|
|
1189
|
+
_(this, "_red");
|
|
1190
|
+
_(this, "_green");
|
|
1191
|
+
_(this, "_blue");
|
|
1192
|
+
_(this, "_alpha");
|
|
1191
1193
|
let r = s.match(B.RGBA_EXTRACT);
|
|
1192
1194
|
if (r) {
|
|
1193
1195
|
const i = +r[1], o = +r[2], a = +r[3], c = +r[4];
|
|
@@ -1202,7 +1204,7 @@ const B = class B extends ct {
|
|
|
1202
1204
|
throw new Error("Invalid rgba or rgb color");
|
|
1203
1205
|
}
|
|
1204
1206
|
asHexString() {
|
|
1205
|
-
return
|
|
1207
|
+
return ht.rgbColorToHexValue(this);
|
|
1206
1208
|
}
|
|
1207
1209
|
getRed() {
|
|
1208
1210
|
let s = this._red + B.RGB_COLOR_AMT;
|
|
@@ -1235,16 +1237,16 @@ const B = class B extends ct {
|
|
|
1235
1237
|
return this._cssString;
|
|
1236
1238
|
}
|
|
1237
1239
|
};
|
|
1238
|
-
|
|
1240
|
+
_(B, "RGB_COLOR_AMT", 0), _(B, "RGBA_EXTRACT", new RegExp(
|
|
1239
1241
|
"\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*"
|
|
1240
|
-
)),
|
|
1242
|
+
)), _(B, "RGB_EXTRACT", new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));
|
|
1241
1243
|
let ne = B;
|
|
1242
|
-
const tt = class tt extends
|
|
1244
|
+
const tt = class tt extends ht {
|
|
1243
1245
|
constructor(s, n, r, i) {
|
|
1244
1246
|
super(i);
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1247
|
+
_(this, "_themeColorType");
|
|
1248
|
+
_(this, "_themeTint");
|
|
1249
|
+
_(this, "_themeColors");
|
|
1248
1250
|
this._themeColorType = s, this._themeTint = n, this._themeColors = r;
|
|
1249
1251
|
}
|
|
1250
1252
|
lumValue(s, n) {
|
|
@@ -1266,7 +1268,7 @@ const tt = class tt extends ct {
|
|
|
1266
1268
|
return r.get(this._themeColorType);
|
|
1267
1269
|
} else
|
|
1268
1270
|
r = /* @__PURE__ */ new Map(), tt._cacheThemeColor.set(this._themeColors, r);
|
|
1269
|
-
const i = new mn(
|
|
1271
|
+
const i = new mn(ht.hexValueToRgbColor(n));
|
|
1270
1272
|
i.setLightness(this.lumValue(this._themeTint, i.getLightness() * 255) / 255);
|
|
1271
1273
|
const o = i.asRgbColor();
|
|
1272
1274
|
return r.set(this._themeColorType, o), o;
|
|
@@ -1284,9 +1286,9 @@ const tt = class tt extends ct {
|
|
|
1284
1286
|
return this._themeColorType;
|
|
1285
1287
|
}
|
|
1286
1288
|
};
|
|
1287
|
-
|
|
1289
|
+
_(tt, "_cacheThemeColor", /* @__PURE__ */ new Map());
|
|
1288
1290
|
let re = tt;
|
|
1289
|
-
const
|
|
1291
|
+
const lo = "rgb(", uo = "rgba(", Te = {
|
|
1290
1292
|
aliceBlue: [240, 248, 255],
|
|
1291
1293
|
antiqueWhite: [250, 235, 215],
|
|
1292
1294
|
aqua: [0, 255, 255],
|
|
@@ -1439,9 +1441,9 @@ const uo = "rgb(", co = "rgba(", Ue = {
|
|
|
1439
1441
|
};
|
|
1440
1442
|
class k {
|
|
1441
1443
|
constructor(e) {
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1444
|
+
_(this, "_color");
|
|
1445
|
+
_(this, "_rgbColor");
|
|
1446
|
+
_(this, "_isValid", !1);
|
|
1445
1447
|
if (e == null) {
|
|
1446
1448
|
this._setNullColor();
|
|
1447
1449
|
return;
|
|
@@ -1450,7 +1452,7 @@ class k {
|
|
|
1450
1452
|
this._color = { ...e._color }, this._rgbColor = { ...e._rgbColor };
|
|
1451
1453
|
return;
|
|
1452
1454
|
}
|
|
1453
|
-
const s =
|
|
1455
|
+
const s = qe(e);
|
|
1454
1456
|
if (s == null) {
|
|
1455
1457
|
this._setNullColor();
|
|
1456
1458
|
return;
|
|
@@ -1547,7 +1549,7 @@ class k {
|
|
|
1547
1549
|
};
|
|
1548
1550
|
}
|
|
1549
1551
|
}
|
|
1550
|
-
const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4),
|
|
1552
|
+
const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4), qe = (t) => {
|
|
1551
1553
|
if (Dn(t)) {
|
|
1552
1554
|
if ("r" in t) {
|
|
1553
1555
|
const n = {
|
|
@@ -1573,8 +1575,8 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
|
|
|
1573
1575
|
return t.a !== void 0 && (s.a = t.a), s;
|
|
1574
1576
|
}
|
|
1575
1577
|
const e = t.trim();
|
|
1576
|
-
if (
|
|
1577
|
-
const s =
|
|
1578
|
+
if (Te[e]) {
|
|
1579
|
+
const s = Te[e], n = {
|
|
1578
1580
|
r: Math.round(s[0]),
|
|
1579
1581
|
g: Math.round(s[1]),
|
|
1580
1582
|
b: Math.round(s[2])
|
|
@@ -1641,7 +1643,7 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
|
|
|
1641
1643
|
};
|
|
1642
1644
|
return s.length > 3 && (n.a = parseFloat(s[3])), n;
|
|
1643
1645
|
}, Nn = (t) => {
|
|
1644
|
-
const e =
|
|
1646
|
+
const e = qe(t);
|
|
1645
1647
|
if (e != null)
|
|
1646
1648
|
return "r" in e ? e : "l" in e ? Sn(e) : bn(e);
|
|
1647
1649
|
}, jt = (t, e, s) => (s < 0 && (s += 1), s > 1 && (s -= 1), s < 1 / 6 ? t + (e - t) * 6 * s : s < 1 / 2 ? e : s < 2 / 3 ? t + (e - t) * (2 / 3 - s) * 6 : t), Sn = (t) => {
|
|
@@ -1663,12 +1665,12 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
|
|
|
1663
1665
|
}, bn = (t) => {
|
|
1664
1666
|
let { h: e, s, v: n } = t;
|
|
1665
1667
|
e = e / 360 * 6, s /= 100, n /= 100;
|
|
1666
|
-
const r = Math.floor(e), i = e - r, o = n * (1 - s), a = n * (1 - i * s), c = n * (1 - (1 - i) * s), l = r % 6, u = [n, a, o, o, c, n][l], h = [c, n, n, a, o, o][l], f = [o, o, c, n, n, a][l],
|
|
1668
|
+
const r = Math.floor(e), i = e - r, o = n * (1 - s), a = n * (1 - i * s), c = n * (1 - (1 - i) * s), l = r % 6, u = [n, a, o, o, c, n][l], h = [c, n, n, a, o, o][l], f = [o, o, c, n, n, a][l], d = {
|
|
1667
1669
|
r: u * 255,
|
|
1668
1670
|
g: h * 255,
|
|
1669
1671
|
b: f * 255
|
|
1670
1672
|
};
|
|
1671
|
-
return t.a !== void 0 && (
|
|
1673
|
+
return t.a !== void 0 && (d.a = t.a), d;
|
|
1672
1674
|
}, wn = (t) => {
|
|
1673
1675
|
let { r: e, g: s, b: n } = t;
|
|
1674
1676
|
e /= 255, s /= 255, n /= 255;
|
|
@@ -1728,7 +1730,7 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
|
|
|
1728
1730
|
}, vn = (t) => t == null, Dn = (t) => !vn(t) && typeof t == "object";
|
|
1729
1731
|
var x = /* @__PURE__ */ ((t) => (t[t.COVER = 0] = "COVER", t[t.REPLACE = 1] = "REPLACE", t[t.INTERSECTION = 2] = "INTERSECTION", t))(x || {});
|
|
1730
1732
|
let Mn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, s) => (s &= 63, s < 36 ? e += s.toString(36) : s < 62 ? e += (s - 26).toString(36).toUpperCase() : s > 62 ? e += "-" : e += "_", e), "");
|
|
1731
|
-
const Un = /^-ms-/, Tn = /-([a-z])/g,
|
|
1733
|
+
const Un = /^-ms-/, Tn = /-([a-z])/g, J = [
|
|
1732
1734
|
"A",
|
|
1733
1735
|
"B",
|
|
1734
1736
|
"C",
|
|
@@ -1759,16 +1761,16 @@ const Un = /^-ms-/, Tn = /-([a-z])/g, q = [
|
|
|
1759
1761
|
class m {
|
|
1760
1762
|
static stringAt(e) {
|
|
1761
1763
|
let s = "", n = e;
|
|
1762
|
-
for (; n >=
|
|
1763
|
-
n /=
|
|
1764
|
-
const r = e %
|
|
1765
|
-
return s +=
|
|
1764
|
+
for (; n >= J.length; )
|
|
1765
|
+
n /= J.length, n -= 1, s += J[n % J.length];
|
|
1766
|
+
const r = e % J.length;
|
|
1767
|
+
return s += J[r], s;
|
|
1766
1768
|
}
|
|
1767
1769
|
static indexAt(e) {
|
|
1768
1770
|
let s = 0;
|
|
1769
1771
|
for (let n = 0; n < e.length - 1; n += 1) {
|
|
1770
1772
|
const r = e.charCodeAt(n) - 65, i = e.length - 1 - n;
|
|
1771
|
-
s +=
|
|
1773
|
+
s += J.length ** i + J.length * r;
|
|
1772
1774
|
}
|
|
1773
1775
|
return s += e.charCodeAt(e.length - 1) - 65, s;
|
|
1774
1776
|
}
|
|
@@ -2130,11 +2132,11 @@ class m {
|
|
|
2130
2132
|
return s >= n && r >= e;
|
|
2131
2133
|
}
|
|
2132
2134
|
}
|
|
2133
|
-
function
|
|
2135
|
+
function co(t) {
|
|
2134
2136
|
if (!t)
|
|
2135
2137
|
return;
|
|
2136
2138
|
const { actualRow: e, actualColumn: s, isMerged: n, isMergedMainCell: r, mergeInfo: i } = t;
|
|
2137
|
-
let { startY: o, endY: a, startX: c, endX: l } = t, u = e, h = s, f = e,
|
|
2139
|
+
let { startY: o, endY: a, startX: c, endX: l } = t, u = e, h = s, f = e, d = s;
|
|
2138
2140
|
if (n && i) {
|
|
2139
2141
|
const {
|
|
2140
2142
|
startRow: g,
|
|
@@ -2143,23 +2145,23 @@ function ho(t) {
|
|
|
2143
2145
|
endColumn: O,
|
|
2144
2146
|
startY: A,
|
|
2145
2147
|
endY: S,
|
|
2146
|
-
startX:
|
|
2148
|
+
startX: H,
|
|
2147
2149
|
endX: P
|
|
2148
2150
|
} = i;
|
|
2149
|
-
u = g, h = E, f = R,
|
|
2151
|
+
u = g, h = E, f = R, d = O, o = A, a = S, c = H, l = P;
|
|
2150
2152
|
}
|
|
2151
|
-
return r && (o = i.startY, a = i.endY, c = i.startX, l = i.endX, f = i.endRow,
|
|
2153
|
+
return r && (o = i.startY, a = i.endY, c = i.startX, l = i.endX, f = i.endRow, d = i.endColumn), {
|
|
2152
2154
|
startRow: u,
|
|
2153
2155
|
startColumn: h,
|
|
2154
2156
|
endRow: f,
|
|
2155
|
-
endColumn:
|
|
2157
|
+
endColumn: d,
|
|
2156
2158
|
startY: o,
|
|
2157
2159
|
endY: a,
|
|
2158
2160
|
startX: c,
|
|
2159
2161
|
endX: l
|
|
2160
2162
|
};
|
|
2161
2163
|
}
|
|
2162
|
-
function
|
|
2164
|
+
function ho(t) {
|
|
2163
2165
|
if (!t)
|
|
2164
2166
|
return;
|
|
2165
2167
|
const {
|
|
@@ -2180,29 +2182,29 @@ function _o(t) {
|
|
|
2180
2182
|
endColumn: f
|
|
2181
2183
|
};
|
|
2182
2184
|
}
|
|
2183
|
-
function
|
|
2185
|
+
function _o(t) {
|
|
2184
2186
|
var s;
|
|
2185
2187
|
return !t || (((s = t == null ? void 0 : t.v) == null ? void 0 : s.toString()) || "").length === 0 && !t.p;
|
|
2186
2188
|
}
|
|
2187
|
-
function
|
|
2189
|
+
function Y(t) {
|
|
2188
2190
|
if (t) {
|
|
2189
2191
|
if (t.rgb)
|
|
2190
2192
|
return t.rgb;
|
|
2191
2193
|
if (t.th)
|
|
2192
|
-
return new
|
|
2194
|
+
return new Oe().setThemeColor(t.th).asThemeColor().asRgbColor().getCssString();
|
|
2193
2195
|
}
|
|
2194
2196
|
return null;
|
|
2195
2197
|
}
|
|
2196
|
-
function
|
|
2198
|
+
function fo(t) {
|
|
2197
2199
|
return m.isString(t) && t.substring(0, 1) === "=" && t.length > 1;
|
|
2198
2200
|
}
|
|
2199
|
-
function
|
|
2201
|
+
function go(t) {
|
|
2200
2202
|
return m.isString(t) && t.indexOf("=") === -1 && t.length === 6;
|
|
2201
2203
|
}
|
|
2202
|
-
function
|
|
2204
|
+
function Eo(t) {
|
|
2203
2205
|
return "";
|
|
2204
2206
|
}
|
|
2205
|
-
function
|
|
2207
|
+
function Ro(t, e = !1) {
|
|
2206
2208
|
var i;
|
|
2207
2209
|
let s = "";
|
|
2208
2210
|
const n = /* @__PURE__ */ new Map([
|
|
@@ -2237,40 +2239,40 @@ function mo(t, e = !1) {
|
|
|
2237
2239
|
"ul",
|
|
2238
2240
|
() => {
|
|
2239
2241
|
var o;
|
|
2240
|
-
(o = t.ul) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(new RegExp("(?<=text-decoration-line:.*)\\b(?=;)", "g"), " underline") : s += "text-decoration-line: underline; ", t.ul.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${
|
|
2242
|
+
(o = t.ul) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(new RegExp("(?<=text-decoration-line:.*)\\b(?=;)", "g"), " underline") : s += "text-decoration-line: underline; ", t.ul.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${Y(t.ul.cl)}; `), t.ul.t && s.indexOf("text-decoration-style") === -1 && (s += `text-decoration-style: ${t.ul.t} `));
|
|
2241
2243
|
}
|
|
2242
2244
|
],
|
|
2243
2245
|
[
|
|
2244
2246
|
"st",
|
|
2245
2247
|
() => {
|
|
2246
2248
|
var o;
|
|
2247
|
-
(o = t.st) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(new RegExp("(?<=text-decoration-line:.*)\\b(?=;)", "g"), " line-through") : s += "text-decoration-line: line-through; ", t.st.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${
|
|
2249
|
+
(o = t.st) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(new RegExp("(?<=text-decoration-line:.*)\\b(?=;)", "g"), " line-through") : s += "text-decoration-line: line-through; ", t.st.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${Y(t.st.cl)}; `), t.st.t && s.indexOf("text-decoration-style") === -1 && (s += `text-decoration-style: ${t.st.t} `));
|
|
2248
2250
|
}
|
|
2249
2251
|
],
|
|
2250
2252
|
[
|
|
2251
2253
|
"ol",
|
|
2252
2254
|
() => {
|
|
2253
2255
|
var o;
|
|
2254
|
-
(o = t.ol) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(new RegExp("(?<=text-decoration-line:.*)\\b(?=;)", "g"), " overline") : s += "text-decoration-line: overline; ", t.ol.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${
|
|
2256
|
+
(o = t.ol) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(new RegExp("(?<=text-decoration-line:.*)\\b(?=;)", "g"), " overline") : s += "text-decoration-line: overline; ", t.ol.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${Y(t.ol.cl)}; `), t.ol.t && s.indexOf("text-decoration-style") === -1 && (s += `text-decoration-style: ${t.ol.t} `));
|
|
2255
2257
|
}
|
|
2256
2258
|
],
|
|
2257
2259
|
[
|
|
2258
2260
|
"bg",
|
|
2259
2261
|
() => {
|
|
2260
|
-
t.bg && (s += `background: ${
|
|
2262
|
+
t.bg && (s += `background: ${Y(t.bg)}; `);
|
|
2261
2263
|
}
|
|
2262
2264
|
],
|
|
2263
2265
|
[
|
|
2264
2266
|
"bd",
|
|
2265
2267
|
() => {
|
|
2266
|
-
var o, a, c, l, u, h, f,
|
|
2267
|
-
(o = t.bd) != null && o.b && (s += `border-bottom: ${Nt((a = t.bd) == null ? void 0 : a.b.s)} ${
|
|
2268
|
+
var o, a, c, l, u, h, f, d;
|
|
2269
|
+
(o = t.bd) != null && o.b && (s += `border-bottom: ${Nt((a = t.bd) == null ? void 0 : a.b.s)} ${Y(t.bd.b.cl) ?? ""}; `), (c = t.bd) != null && c.t && (s += `border-top: ${Nt((l = t.bd) == null ? void 0 : l.t.s)} ${Y(t.bd.t.cl) ?? ""}; `), (u = t.bd) != null && u.r && (s += `border-right: ${Nt((h = t.bd) == null ? void 0 : h.r.s)} ${Y(t.bd.r.cl) ?? ""}; `), (f = t.bd) != null && f.l && (s += `border-left: ${Nt((d = t.bd) == null ? void 0 : d.l.s)} ${Y(t.bd.l.cl) ?? ""}; `);
|
|
2268
2270
|
}
|
|
2269
2271
|
],
|
|
2270
2272
|
[
|
|
2271
2273
|
"cl",
|
|
2272
2274
|
() => {
|
|
2273
|
-
t.cl && (s += `color: ${
|
|
2275
|
+
t.cl && (s += `color: ${Y(t.cl)}; `);
|
|
2274
2276
|
}
|
|
2275
2277
|
],
|
|
2276
2278
|
[
|
|
@@ -2307,14 +2309,14 @@ function mo(t, e = !1) {
|
|
|
2307
2309
|
[
|
|
2308
2310
|
"tb",
|
|
2309
2311
|
() => {
|
|
2310
|
-
t.tb ===
|
|
2312
|
+
t.tb === ft.CLIP ? s += "text-overflow: clip; " : t.tb === ft.OVERFLOW ? s += "text-break: overflow; " : t.tb === ft.WRAP && (s += "word-wrap: break-word;");
|
|
2311
2313
|
}
|
|
2312
2314
|
],
|
|
2313
2315
|
[
|
|
2314
2316
|
"pd",
|
|
2315
2317
|
() => {
|
|
2316
|
-
var u, h, f,
|
|
2317
|
-
const o = `${(u = t.pd) == null ? void 0 : u.b}pt`, a = `${(h = t.pd) == null ? void 0 : h.t}pt`, c = `${(f = t.pd) == null ? void 0 : f.l}pt`, l = `${(
|
|
2318
|
+
var u, h, f, d, g, E, R, O;
|
|
2319
|
+
const o = `${(u = t.pd) == null ? void 0 : u.b}pt`, a = `${(h = t.pd) == null ? void 0 : h.t}pt`, c = `${(f = t.pd) == null ? void 0 : f.l}pt`, l = `${(d = t.pd) == null ? void 0 : d.r}pt`;
|
|
2318
2320
|
(g = t.pd) != null && g.b && (s += `padding-bottom: ${o}; `), (E = t.pd) != null && E.t && (s += `padding-top: ${a}; `), (R = t.pd) != null && R.l && (s += `padding-left: ${c}; `), (O = t.pd) != null && O.r && (s += `padding-right: ${l}; `);
|
|
2319
2321
|
}
|
|
2320
2322
|
]
|
|
@@ -2327,7 +2329,7 @@ function Nt(t) {
|
|
|
2327
2329
|
let e = "";
|
|
2328
2330
|
return t === N.NONE ? e = "none" : t === N.THIN ? e = "0.5pt solid" : t === N.HAIR ? e = "0.5pt double" : t === N.DOTTED ? e = "0.5pt dotted" : t === N.DASHED || t === N.DASH_DOT ? e = "0.5pt dashed" : t === N.DASH_DOT_DOT ? e = "0.5pt dotted" : t === N.DOUBLE ? e = "0.5pt double" : t === N.MEDIUM ? e = "1pt solid" : t === N.MEDIUM_DASHED || t === N.MEDIUM_DASH_DOT ? e = "1pt dashed" : t === N.MEDIUM_DASH_DOT_DOT ? e = "1pt dotted" : t === N.SLANT_DASH_DOT ? e = "0.5pt dashed" : t === N.THICK && (e = "1.5pt solid"), e;
|
|
2329
2331
|
}
|
|
2330
|
-
function
|
|
2332
|
+
function mo(t) {
|
|
2331
2333
|
let e = 0;
|
|
2332
2334
|
if (t = t.trim(), t === "none")
|
|
2333
2335
|
e = N.NONE;
|
|
@@ -2359,16 +2361,16 @@ function zt(t, e) {
|
|
|
2359
2361
|
}
|
|
2360
2362
|
return s;
|
|
2361
2363
|
}
|
|
2362
|
-
function
|
|
2364
|
+
function Oo(t) {
|
|
2363
2365
|
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = t;
|
|
2364
2366
|
return !(e < 0 || n < 0 || s < 0 || r < 0);
|
|
2365
2367
|
}
|
|
2366
|
-
function
|
|
2367
|
-
return Object.prototype.toString.call(t) === Object.prototype.toString.call(e) ? Object.prototype.toString.call(t) === "[object Object]" || Object.prototype.toString.call(t) === "[object Array]" ? Object.keys(t).length !== Object.keys(e).length ? !1 : Object.keys(t).every((s) =>
|
|
2368
|
+
function Je(t, e) {
|
|
2369
|
+
return Object.prototype.toString.call(t) === Object.prototype.toString.call(e) ? Object.prototype.toString.call(t) === "[object Object]" || Object.prototype.toString.call(t) === "[object Array]" ? Object.keys(t).length !== Object.keys(e).length ? !1 : Object.keys(t).every((s) => Je(t[s], e[s])) : t === e : !1;
|
|
2368
2370
|
}
|
|
2369
2371
|
function Pn(t, e) {
|
|
2370
2372
|
const s = t.ts || {}, n = e.ts || {};
|
|
2371
|
-
return t.sId !== e.sId ? !1 :
|
|
2373
|
+
return t.sId !== e.sId ? !1 : Je(s, n);
|
|
2372
2374
|
}
|
|
2373
2375
|
function ye(t, e, s, n) {
|
|
2374
2376
|
if (t > e && ([t, e] = [e, t]), s > n && ([s, n] = [n, s]), e < s || n < t)
|
|
@@ -2378,13 +2380,13 @@ function ye(t, e, s, n) {
|
|
|
2378
2380
|
let i = [];
|
|
2379
2381
|
return t === s ? i = [n + 1 - r, e - r] : e === n ? i = [t, s - 1] : i = [t, e - r], i;
|
|
2380
2382
|
}
|
|
2381
|
-
function
|
|
2383
|
+
function Ao(t) {
|
|
2382
2384
|
if (t == null)
|
|
2383
2385
|
return !1;
|
|
2384
2386
|
const e = t.bullet;
|
|
2385
2387
|
return (e == null ? void 0 : e.listId) != null;
|
|
2386
2388
|
}
|
|
2387
|
-
function
|
|
2389
|
+
function Io(t) {
|
|
2388
2390
|
if (t == null)
|
|
2389
2391
|
return !1;
|
|
2390
2392
|
const e = t.paragraphStyle;
|
|
@@ -2396,33 +2398,11 @@ function xn(t) {
|
|
|
2396
2398
|
function Fn(t, e, s) {
|
|
2397
2399
|
return t.slice(0, e) + s + t.slice(e);
|
|
2398
2400
|
}
|
|
2399
|
-
function
|
|
2401
|
+
function Hn(t, e, s) {
|
|
2400
2402
|
return e > s ? t : t.slice(0, e) + t.slice(s);
|
|
2401
2403
|
}
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
d(this, "_include");
|
|
2405
|
-
d(this, "_count");
|
|
2406
|
-
this._include = [], this._count = 1;
|
|
2407
|
-
}
|
|
2408
|
-
checked(e) {
|
|
2409
|
-
return this._include.includes(e);
|
|
2410
|
-
}
|
|
2411
|
-
onlyName(e) {
|
|
2412
|
-
let s = e, n = 1;
|
|
2413
|
-
for (; this.checked(s); )
|
|
2414
|
-
s = e + n, n++;
|
|
2415
|
-
return this._include.push(s), s;
|
|
2416
|
-
}
|
|
2417
|
-
sheetName(e = "sheet1") {
|
|
2418
|
-
let s = e;
|
|
2419
|
-
for (; this.checked(s); )
|
|
2420
|
-
s = `sheet${this._count}`, this._count++;
|
|
2421
|
-
return this._include.push(s), s;
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
var Bn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2425
|
-
function Wn(t) {
|
|
2404
|
+
var pn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2405
|
+
function Bn(t) {
|
|
2426
2406
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2427
2407
|
}
|
|
2428
2408
|
var ts = { exports: {} };
|
|
@@ -2436,7 +2416,7 @@ var ts = { exports: {} };
|
|
|
2436
2416
|
(function(t) {
|
|
2437
2417
|
(function(e, s) {
|
|
2438
2418
|
t.exports ? t.exports = s() : e.numeral = s();
|
|
2439
|
-
})(
|
|
2419
|
+
})(pn, function() {
|
|
2440
2420
|
var e, s, n = "2.0.6", r = {}, i = {}, o = {
|
|
2441
2421
|
currentLocale: "en",
|
|
2442
2422
|
zeroFormat: null,
|
|
@@ -2454,7 +2434,7 @@ var ts = { exports: {} };
|
|
|
2454
2434
|
this._input = l, this._value = u;
|
|
2455
2435
|
}
|
|
2456
2436
|
return e = function(l) {
|
|
2457
|
-
var u, h, f,
|
|
2437
|
+
var u, h, f, d;
|
|
2458
2438
|
if (e.isNumeral(l))
|
|
2459
2439
|
u = l.value();
|
|
2460
2440
|
else if (l === 0 || typeof l > "u")
|
|
@@ -2468,7 +2448,7 @@ var ts = { exports: {} };
|
|
|
2468
2448
|
u = null;
|
|
2469
2449
|
else {
|
|
2470
2450
|
for (h in r)
|
|
2471
|
-
if (
|
|
2451
|
+
if (d = typeof r[h].regexps.unformat == "function" ? r[h].regexps.unformat() : r[h].regexps.unformat, d && l.match(d)) {
|
|
2472
2452
|
f = r[h].unformat;
|
|
2473
2453
|
break;
|
|
2474
2454
|
}
|
|
@@ -2482,8 +2462,8 @@ var ts = { exports: {} };
|
|
|
2482
2462
|
}, e._ = s = {
|
|
2483
2463
|
// formats numbers separators, decimals places, signs, abbreviations
|
|
2484
2464
|
numberToFormat: function(l, u, h) {
|
|
2485
|
-
var f = i[e.options.currentLocale],
|
|
2486
|
-
if (l = l || 0,
|
|
2465
|
+
var f = i[e.options.currentLocale], d = !1, g = !1, E = 0, R = "", O = 1e12, A = 1e9, S = 1e6, H = 1e3, P = "", at = !1, p, q, D, W, Gt, Se, z;
|
|
2466
|
+
if (l = l || 0, q = Math.abs(l), e._.includes(u, "(") ? (d = !0, u = u.replace(/[\(|\)]/g, "")) : (e._.includes(u, "+") || e._.includes(u, "-")) && (Gt = e._.includes(u, "+") ? u.indexOf("+") : l < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), e._.includes(u, "a") && (p = u.match(/a(k|m|b|t)?/), p = p ? p[1] : !1, e._.includes(u, " a") && (R = " "), u = u.replace(new RegExp(R + "a[kmbt]?"), ""), q >= O && !p || p === "t" ? (R += f.abbreviations.trillion, l = l / O) : q < O && q >= A && !p || p === "b" ? (R += f.abbreviations.billion, l = l / A) : q < A && q >= S && !p || p === "m" ? (R += f.abbreviations.million, l = l / S) : (q < S && q >= H && !p || p === "k") && (R += f.abbreviations.thousand, l = l / H)), e._.includes(u, "[.]") && (g = !0, u = u.replace("[.]", ".")), D = l.toString().split(".")[0], W = u.split(".")[1], Se = u.indexOf(","), E = (u.split(".")[0].split(",")[0].match(/0/g) || []).length, W ? (e._.includes(W, "[") ? (W = W.replace("]", ""), W = W.split("["), P = e._.toFixed(l, W[0].length + W[1].length, h, W[1].length)) : P = e._.toFixed(l, W.length, h), D = P.split(".")[0], e._.includes(P, ".") ? P = f.delimiters.decimal + P.split(".")[1] : P = "", g && Number(P.slice(1)) === 0 && (P = "")) : D = e._.toFixed(l, 0, h), R && !p && Number(D) >= 1e3 && R !== f.abbreviations.trillion)
|
|
2487
2467
|
switch (D = String(Number(D) / 1e3), R) {
|
|
2488
2468
|
case f.abbreviations.thousand:
|
|
2489
2469
|
R = f.abbreviations.million;
|
|
@@ -2496,9 +2476,9 @@ var ts = { exports: {} };
|
|
|
2496
2476
|
break;
|
|
2497
2477
|
}
|
|
2498
2478
|
if (e._.includes(D, "-") && (D = D.slice(1), at = !0), D.length < E)
|
|
2499
|
-
for (var
|
|
2479
|
+
for (var be = E - D.length; be > 0; be--)
|
|
2500
2480
|
D = "0" + D;
|
|
2501
|
-
return
|
|
2481
|
+
return Se > -1 && (D = D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), u.indexOf(".") === 0 && (D = ""), z = D + P + (R || ""), d ? z = (d && at ? "(" : "") + z + (d && at ? ")" : "") : Gt >= 0 ? z = Gt === 0 ? (at ? "-" : "+") + z : z + (at ? "-" : "+") : at && (z = "-" + z), z;
|
|
2502
2482
|
},
|
|
2503
2483
|
// unformats numbers separators, decimals places, signs, abbreviations
|
|
2504
2484
|
stringToNumber: function(l) {
|
|
@@ -2507,16 +2487,16 @@ var ts = { exports: {} };
|
|
|
2507
2487
|
million: 6,
|
|
2508
2488
|
billion: 9,
|
|
2509
2489
|
trillion: 12
|
|
2510
|
-
},
|
|
2490
|
+
}, d, g, E;
|
|
2511
2491
|
if (a.zeroFormat && l === a.zeroFormat)
|
|
2512
2492
|
g = 0;
|
|
2513
2493
|
else if (a.nullFormat && l === a.nullFormat || !l.replace(/[^0-9]+/g, "").length)
|
|
2514
2494
|
g = null;
|
|
2515
2495
|
else {
|
|
2516
2496
|
g = 1, u.delimiters.decimal !== "." && (l = l.replace(/\./g, "").replace(u.delimiters.decimal, "."));
|
|
2517
|
-
for (
|
|
2518
|
-
if (E = new RegExp("[^a-zA-Z]" + u.abbreviations[
|
|
2519
|
-
g *= Math.pow(10, f[
|
|
2497
|
+
for (d in f)
|
|
2498
|
+
if (E = new RegExp("[^a-zA-Z]" + u.abbreviations[d] + "(?:\\)|(\\" + u.currency.symbol + ")?(?:\\))?)?$"), h.match(E)) {
|
|
2499
|
+
g *= Math.pow(10, f[d]);
|
|
2520
2500
|
break;
|
|
2521
2501
|
}
|
|
2522
2502
|
g *= (l.split("-").length + Math.min(l.split("(").length - 1, l.split(")").length - 1)) % 2 ? 1 : -1, l = l.replace(/[^0-9\.]+/g, ""), g *= Number(l);
|
|
@@ -2537,18 +2517,18 @@ var ts = { exports: {} };
|
|
|
2537
2517
|
throw new TypeError("Array.prototype.reduce called on null or undefined");
|
|
2538
2518
|
if (typeof u != "function")
|
|
2539
2519
|
throw new TypeError(u + " is not a function");
|
|
2540
|
-
var h = Object(l), f = h.length >>> 0,
|
|
2520
|
+
var h = Object(l), f = h.length >>> 0, d = 0, g;
|
|
2541
2521
|
if (arguments.length === 3)
|
|
2542
2522
|
g = arguments[2];
|
|
2543
2523
|
else {
|
|
2544
|
-
for (;
|
|
2545
|
-
|
|
2546
|
-
if (
|
|
2524
|
+
for (; d < f && !(d in h); )
|
|
2525
|
+
d++;
|
|
2526
|
+
if (d >= f)
|
|
2547
2527
|
throw new TypeError("Reduce of empty array with no initial value");
|
|
2548
|
-
g = h[
|
|
2528
|
+
g = h[d++];
|
|
2549
2529
|
}
|
|
2550
|
-
for (;
|
|
2551
|
-
|
|
2530
|
+
for (; d < f; d++)
|
|
2531
|
+
d in h && (g = u(g, h[d], d, h));
|
|
2552
2532
|
return g;
|
|
2553
2533
|
},
|
|
2554
2534
|
/**
|
|
@@ -2579,8 +2559,8 @@ var ts = { exports: {} };
|
|
|
2579
2559
|
* problems for accounting- and finance-related software.
|
|
2580
2560
|
*/
|
|
2581
2561
|
toFixed: function(l, u, h, f) {
|
|
2582
|
-
var
|
|
2583
|
-
return
|
|
2562
|
+
var d = l.toString().split("."), g = u - (f || 0), E, R, O, A;
|
|
2563
|
+
return d.length === 2 ? E = Math.min(Math.max(d[1].length, g), u) : E = g, O = Math.pow(10, E), A = (h(l + "e+" + E) / O).toFixed(E), f > u - E && (R = new RegExp("\\.?0{1," + (f - (u - E)) + "}$"), A = A.replace(R, "")), A;
|
|
2584
2564
|
}
|
|
2585
2565
|
}, e.options = a, e.formats = r, e.locales = i, e.locale = function(l) {
|
|
2586
2566
|
return l && (a.currentLocale = l.toLowerCase()), a.currentLocale;
|
|
@@ -2604,7 +2584,7 @@ var ts = { exports: {} };
|
|
|
2604
2584
|
throw new TypeError(u + " " + l + " already registered.");
|
|
2605
2585
|
return this[l + "s"][u] = h, h;
|
|
2606
2586
|
}, e.validate = function(l, u) {
|
|
2607
|
-
var h, f,
|
|
2587
|
+
var h, f, d, g, E, R, O, A;
|
|
2608
2588
|
if (typeof l != "string" && (l += "", console.warn && console.warn("Numeral.js: Value is not string. It has been co-erced to: ", l)), l = l.trim(), l.match(/^\d+$/))
|
|
2609
2589
|
return !0;
|
|
2610
2590
|
if (l === "")
|
|
@@ -2614,21 +2594,21 @@ var ts = { exports: {} };
|
|
|
2614
2594
|
} catch {
|
|
2615
2595
|
O = e.localeData(e.locale());
|
|
2616
2596
|
}
|
|
2617
|
-
return
|
|
2597
|
+
return d = O.currency.symbol, E = O.abbreviations, h = O.delimiters.decimal, O.delimiters.thousands === "." ? f = "\\." : f = O.delimiters.thousands, A = l.match(/^[^\d]+/), A !== null && (l = l.substr(1), A[0] !== d) || (A = l.match(/[^\d]+$/), A !== null && (l = l.slice(0, -1), A[0] !== E.thousand && A[0] !== E.million && A[0] !== E.billion && A[0] !== E.trillion)) ? !1 : (R = new RegExp(f + "{2}"), l.match(/[^\d.,]/g) ? !1 : (g = l.split(h), g.length > 2 ? !1 : g.length < 2 ? !!g[0].match(/^\d+.*\d$/) && !g[0].match(R) : g[0].length === 1 ? !!g[0].match(/^\d+$/) && !g[0].match(R) && !!g[1].match(/^\d+$/) : !!g[0].match(/^\d+.*\d$/) && !g[0].match(R) && !!g[1].match(/^\d+$/)));
|
|
2618
2598
|
}, e.fn = c.prototype = {
|
|
2619
2599
|
clone: function() {
|
|
2620
2600
|
return e(this);
|
|
2621
2601
|
},
|
|
2622
2602
|
format: function(l, u) {
|
|
2623
|
-
var h = this._value, f = l || a.defaultFormat,
|
|
2603
|
+
var h = this._value, f = l || a.defaultFormat, d, g, E;
|
|
2624
2604
|
if (u = u || Math.round, h === 0 && a.zeroFormat !== null)
|
|
2625
2605
|
g = a.zeroFormat;
|
|
2626
2606
|
else if (h === null && a.nullFormat !== null)
|
|
2627
2607
|
g = a.nullFormat;
|
|
2628
2608
|
else {
|
|
2629
|
-
for (
|
|
2630
|
-
if (f.match(r[
|
|
2631
|
-
E = r[
|
|
2609
|
+
for (d in r)
|
|
2610
|
+
if (f.match(r[d].regexps.format)) {
|
|
2611
|
+
E = r[d].format;
|
|
2632
2612
|
break;
|
|
2633
2613
|
}
|
|
2634
2614
|
E = E || e._.numberToFormat, g = E(h, f, u);
|
|
@@ -2646,27 +2626,27 @@ var ts = { exports: {} };
|
|
|
2646
2626
|
},
|
|
2647
2627
|
add: function(l) {
|
|
2648
2628
|
var u = s.correctionFactor.call(null, this._value, l);
|
|
2649
|
-
function h(f,
|
|
2650
|
-
return f + Math.round(u *
|
|
2629
|
+
function h(f, d, g, E) {
|
|
2630
|
+
return f + Math.round(u * d);
|
|
2651
2631
|
}
|
|
2652
2632
|
return this._value = s.reduce([this._value, l], h, 0) / u, this;
|
|
2653
2633
|
},
|
|
2654
2634
|
subtract: function(l) {
|
|
2655
2635
|
var u = s.correctionFactor.call(null, this._value, l);
|
|
2656
|
-
function h(f,
|
|
2657
|
-
return f - Math.round(u *
|
|
2636
|
+
function h(f, d, g, E) {
|
|
2637
|
+
return f - Math.round(u * d);
|
|
2658
2638
|
}
|
|
2659
2639
|
return this._value = s.reduce([l], h, Math.round(this._value * u)) / u, this;
|
|
2660
2640
|
},
|
|
2661
2641
|
multiply: function(l) {
|
|
2662
|
-
function u(h, f,
|
|
2642
|
+
function u(h, f, d, g) {
|
|
2663
2643
|
var E = s.correctionFactor(h, f);
|
|
2664
2644
|
return Math.round(h * E) * Math.round(f * E) / Math.round(E * E);
|
|
2665
2645
|
}
|
|
2666
2646
|
return this._value = s.reduce([this._value, l], u, 1), this;
|
|
2667
2647
|
},
|
|
2668
2648
|
divide: function(l) {
|
|
2669
|
-
function u(h, f,
|
|
2649
|
+
function u(h, f, d, g) {
|
|
2670
2650
|
var E = s.correctionFactor(h, f);
|
|
2671
2651
|
return Math.round(h * E) / Math.round(f * E);
|
|
2672
2652
|
}
|
|
@@ -2700,8 +2680,8 @@ var ts = { exports: {} };
|
|
|
2700
2680
|
unformat: /(BPS)/
|
|
2701
2681
|
},
|
|
2702
2682
|
format: function(l, u, h) {
|
|
2703
|
-
var f = e._.includes(u, " BPS") ? " " : "",
|
|
2704
|
-
return l = l * 1e4, u = u.replace(/\s?BPS/, ""),
|
|
2683
|
+
var f = e._.includes(u, " BPS") ? " " : "", d;
|
|
2684
|
+
return l = l * 1e4, u = u.replace(/\s?BPS/, ""), d = e._.numberToFormat(l, u, h), e._.includes(d, ")") ? (d = d.split(""), d.splice(-1, 0, f + "BPS"), d = d.join("")) : d = d + f + "BPS", d;
|
|
2705
2685
|
},
|
|
2706
2686
|
unformat: function(l) {
|
|
2707
2687
|
return +(e._.stringToNumber(l) * 1e-4).toFixed(15);
|
|
@@ -2714,32 +2694,32 @@ var ts = { exports: {} };
|
|
|
2714
2694
|
}, u = {
|
|
2715
2695
|
base: 1024,
|
|
2716
2696
|
suffixes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
|
|
2717
|
-
}, h = l.suffixes.concat(u.suffixes.filter(function(
|
|
2718
|
-
return l.suffixes.indexOf(
|
|
2697
|
+
}, h = l.suffixes.concat(u.suffixes.filter(function(d) {
|
|
2698
|
+
return l.suffixes.indexOf(d) < 0;
|
|
2719
2699
|
})), f = h.join("|");
|
|
2720
2700
|
f = "(" + f.replace("B", "B(?!PS)") + ")", e.register("format", "bytes", {
|
|
2721
2701
|
regexps: {
|
|
2722
2702
|
format: /([0\s]i?b)/,
|
|
2723
2703
|
unformat: new RegExp(f)
|
|
2724
2704
|
},
|
|
2725
|
-
format: function(
|
|
2726
|
-
var R, O = e._.includes(g, "ib") ? u : l, A = e._.includes(g, " b") || e._.includes(g, " ib") ? " " : "", S,
|
|
2705
|
+
format: function(d, g, E) {
|
|
2706
|
+
var R, O = e._.includes(g, "ib") ? u : l, A = e._.includes(g, " b") || e._.includes(g, " ib") ? " " : "", S, H, P;
|
|
2727
2707
|
for (g = g.replace(/\s?i?b/, ""), S = 0; S <= O.suffixes.length; S++)
|
|
2728
|
-
if (
|
|
2729
|
-
A += O.suffixes[S],
|
|
2708
|
+
if (H = Math.pow(O.base, S), P = Math.pow(O.base, S + 1), d === null || d === 0 || d >= H && d < P) {
|
|
2709
|
+
A += O.suffixes[S], H > 0 && (d = d / H);
|
|
2730
2710
|
break;
|
|
2731
2711
|
}
|
|
2732
|
-
return R = e._.numberToFormat(
|
|
2712
|
+
return R = e._.numberToFormat(d, g, E), R + A;
|
|
2733
2713
|
},
|
|
2734
|
-
unformat: function(
|
|
2735
|
-
var g = e._.stringToNumber(
|
|
2714
|
+
unformat: function(d) {
|
|
2715
|
+
var g = e._.stringToNumber(d), E, R;
|
|
2736
2716
|
if (g) {
|
|
2737
2717
|
for (E = l.suffixes.length - 1; E >= 0; E--) {
|
|
2738
|
-
if (e._.includes(
|
|
2718
|
+
if (e._.includes(d, l.suffixes[E])) {
|
|
2739
2719
|
R = Math.pow(l.base, E);
|
|
2740
2720
|
break;
|
|
2741
2721
|
}
|
|
2742
|
-
if (e._.includes(
|
|
2722
|
+
if (e._.includes(d, u.suffixes[E])) {
|
|
2743
2723
|
R = Math.pow(u.base, E);
|
|
2744
2724
|
break;
|
|
2745
2725
|
}
|
|
@@ -2755,12 +2735,12 @@ var ts = { exports: {} };
|
|
|
2755
2735
|
format: /(\$)/
|
|
2756
2736
|
},
|
|
2757
2737
|
format: function(l, u, h) {
|
|
2758
|
-
var f = e.locales[e.options.currentLocale],
|
|
2738
|
+
var f = e.locales[e.options.currentLocale], d = {
|
|
2759
2739
|
before: u.match(/^([\+|\-|\(|\s|\$]*)/)[0],
|
|
2760
2740
|
after: u.match(/([\+|\-|\)|\s|\$]*)$/)[0]
|
|
2761
2741
|
}, g, E, R;
|
|
2762
|
-
for (u = u.replace(/\s?\$\s?/, ""), g = e._.numberToFormat(l, u, h), l >= 0 ? (
|
|
2763
|
-
switch (E =
|
|
2742
|
+
for (u = u.replace(/\s?\$\s?/, ""), g = e._.numberToFormat(l, u, h), l >= 0 ? (d.before = d.before.replace(/[\-\(]/, ""), d.after = d.after.replace(/[\-\)]/, "")) : l < 0 && !e._.includes(d.before, "-") && !e._.includes(d.before, "(") && (d.before = "-" + d.before), R = 0; R < d.before.length; R++)
|
|
2743
|
+
switch (E = d.before[R], E) {
|
|
2764
2744
|
case "$":
|
|
2765
2745
|
g = e._.insert(g, f.currency.symbol, R);
|
|
2766
2746
|
break;
|
|
@@ -2768,13 +2748,13 @@ var ts = { exports: {} };
|
|
|
2768
2748
|
g = e._.insert(g, " ", R + f.currency.symbol.length - 1);
|
|
2769
2749
|
break;
|
|
2770
2750
|
}
|
|
2771
|
-
for (R =
|
|
2772
|
-
switch (E =
|
|
2751
|
+
for (R = d.after.length - 1; R >= 0; R--)
|
|
2752
|
+
switch (E = d.after[R], E) {
|
|
2773
2753
|
case "$":
|
|
2774
|
-
g = R ===
|
|
2754
|
+
g = R === d.after.length - 1 ? g + f.currency.symbol : e._.insert(g, f.currency.symbol, -(d.after.length - (1 + R)));
|
|
2775
2755
|
break;
|
|
2776
2756
|
case " ":
|
|
2777
|
-
g = R ===
|
|
2757
|
+
g = R === d.after.length - 1 ? g + " " : e._.insert(g, " ", -(d.after.length - (1 + R) + f.currency.symbol.length - 1));
|
|
2778
2758
|
break;
|
|
2779
2759
|
}
|
|
2780
2760
|
return g;
|
|
@@ -2787,17 +2767,17 @@ var ts = { exports: {} };
|
|
|
2787
2767
|
unformat: /(e\+|e-)/
|
|
2788
2768
|
},
|
|
2789
2769
|
format: function(l, u, h) {
|
|
2790
|
-
var f,
|
|
2770
|
+
var f, d = typeof l == "number" && !e._.isNaN(l) ? l.toExponential() : "0e+0", g = d.split("e");
|
|
2791
2771
|
return u = u.replace(/e[\+|\-]{1}0/, ""), f = e._.numberToFormat(Number(g[0]), u, h), f + "e" + g[1];
|
|
2792
2772
|
},
|
|
2793
2773
|
unformat: function(l) {
|
|
2794
2774
|
var u = e._.includes(l, "e+") ? l.split("e+") : l.split("e-"), h = Number(u[0]), f = Number(u[1]);
|
|
2795
2775
|
f = e._.includes(l, "e-") ? f *= -1 : f;
|
|
2796
|
-
function
|
|
2776
|
+
function d(g, E, R, O) {
|
|
2797
2777
|
var A = e._.correctionFactor(g, E), S = g * A * (E * A) / (A * A);
|
|
2798
2778
|
return S;
|
|
2799
2779
|
}
|
|
2800
|
-
return e._.reduce([h, Math.pow(10, f)],
|
|
2780
|
+
return e._.reduce([h, Math.pow(10, f)], d, 1);
|
|
2801
2781
|
}
|
|
2802
2782
|
});
|
|
2803
2783
|
}(), function() {
|
|
@@ -2806,8 +2786,8 @@ var ts = { exports: {} };
|
|
|
2806
2786
|
format: /(o)/
|
|
2807
2787
|
},
|
|
2808
2788
|
format: function(l, u, h) {
|
|
2809
|
-
var f = e.locales[e.options.currentLocale],
|
|
2810
|
-
return u = u.replace(/\s?o/, ""), g += f.ordinal(l),
|
|
2789
|
+
var f = e.locales[e.options.currentLocale], d, g = e._.includes(u, " o") ? " " : "";
|
|
2790
|
+
return u = u.replace(/\s?o/, ""), g += f.ordinal(l), d = e._.numberToFormat(l, u, h), d + g;
|
|
2811
2791
|
}
|
|
2812
2792
|
});
|
|
2813
2793
|
}(), function() {
|
|
@@ -2817,8 +2797,8 @@ var ts = { exports: {} };
|
|
|
2817
2797
|
unformat: /(%)/
|
|
2818
2798
|
},
|
|
2819
2799
|
format: function(l, u, h) {
|
|
2820
|
-
var f = e._.includes(u, " %") ? " " : "",
|
|
2821
|
-
return e.options.scalePercentBy100 && (l = l * 100), u = u.replace(/\s?\%/, ""),
|
|
2800
|
+
var f = e._.includes(u, " %") ? " " : "", d;
|
|
2801
|
+
return e.options.scalePercentBy100 && (l = l * 100), u = u.replace(/\s?\%/, ""), d = e._.numberToFormat(l, u, h), e._.includes(d, ")") ? (d = d.split(""), d.splice(-1, 0, f + "%"), d = d.join("")) : d = d + f + "%", d;
|
|
2822
2802
|
},
|
|
2823
2803
|
unformat: function(l) {
|
|
2824
2804
|
var u = e._.stringToNumber(l);
|
|
@@ -2832,8 +2812,8 @@ var ts = { exports: {} };
|
|
|
2832
2812
|
unformat: /(:)/
|
|
2833
2813
|
},
|
|
2834
2814
|
format: function(l, u, h) {
|
|
2835
|
-
var f = Math.floor(l / 60 / 60),
|
|
2836
|
-
return f + ":" + (
|
|
2815
|
+
var f = Math.floor(l / 60 / 60), d = Math.floor((l - f * 60 * 60) / 60), g = Math.round(l - f * 60 * 60 - d * 60);
|
|
2816
|
+
return f + ":" + (d < 10 ? "0" + d : d) + ":" + (g < 10 ? "0" + g : g);
|
|
2837
2817
|
},
|
|
2838
2818
|
unformat: function(l) {
|
|
2839
2819
|
var u = l.split(":"), h = 0;
|
|
@@ -2843,8 +2823,8 @@ var ts = { exports: {} };
|
|
|
2843
2823
|
}(), e;
|
|
2844
2824
|
});
|
|
2845
2825
|
})(ts);
|
|
2846
|
-
var
|
|
2847
|
-
const
|
|
2826
|
+
var Wn = ts.exports;
|
|
2827
|
+
const nt = /* @__PURE__ */ Bn(Wn), Pe = {
|
|
2848
2828
|
v: "#VALUE!",
|
|
2849
2829
|
// 错误的参数或运算符
|
|
2850
2830
|
n: "#NAME?",
|
|
@@ -2862,10 +2842,10 @@ const rt = /* @__PURE__ */ Wn($n), Te = {
|
|
|
2862
2842
|
sp: "#SPILL!"
|
|
2863
2843
|
// 数组范围有其它值
|
|
2864
2844
|
};
|
|
2865
|
-
function
|
|
2845
|
+
function $n(t) {
|
|
2866
2846
|
let e = !1;
|
|
2867
|
-
for (const s in
|
|
2868
|
-
if (t ===
|
|
2847
|
+
for (const s in Pe)
|
|
2848
|
+
if (t === Pe[s]) {
|
|
2869
2849
|
e = !0;
|
|
2870
2850
|
break;
|
|
2871
2851
|
}
|
|
@@ -2874,7 +2854,7 @@ function Gn(t) {
|
|
|
2874
2854
|
function lt(t) {
|
|
2875
2855
|
return t === null || t.toString().replace(/\s/g, "") === "" || typeof t == "boolean" ? !1 : !isNaN(t);
|
|
2876
2856
|
}
|
|
2877
|
-
function
|
|
2857
|
+
function Gn(t) {
|
|
2878
2858
|
if (t === null || t.toString().length < 5)
|
|
2879
2859
|
return !1;
|
|
2880
2860
|
if (e(t))
|
|
@@ -2890,10 +2870,10 @@ function kn(t) {
|
|
|
2890
2870
|
}
|
|
2891
2871
|
let Ft = /* @__PURE__ */ new Date("2017-02-19T19:06:09.000Z");
|
|
2892
2872
|
Number.isNaN(Ft.getFullYear()) && (Ft = /* @__PURE__ */ new Date("2/19/17"));
|
|
2893
|
-
const
|
|
2894
|
-
function
|
|
2873
|
+
const kn = Ft.getFullYear() === 2017;
|
|
2874
|
+
function Vn(t, e) {
|
|
2895
2875
|
const s = new Date(t);
|
|
2896
|
-
if (
|
|
2876
|
+
if (kn)
|
|
2897
2877
|
return e > 0 ? s.setTime(s.getTime() + s.getTimezoneOffset() * 60 * 1e3) : e < 0 && s.setTime(s.getTime() - s.getTimezoneOffset() * 60 * 1e3), s;
|
|
2898
2878
|
if (t instanceof Date)
|
|
2899
2879
|
return t;
|
|
@@ -2905,13 +2885,13 @@ function jn(t, e) {
|
|
|
2905
2885
|
let r = new Date(+n[0], +n[1] - 1, +n[2], +n[3] || 0, +n[4] || 0, +n[5] || 0);
|
|
2906
2886
|
return t.indexOf("Z") > -1 && (r = new Date(r.getTime() - r.getTimezoneOffset() * 60 * 1e3)), r;
|
|
2907
2887
|
}
|
|
2908
|
-
const
|
|
2909
|
-
function
|
|
2888
|
+
const jn = new Date(1900, 2, 1, 0, 0, 0);
|
|
2889
|
+
function zn(t, e) {
|
|
2910
2890
|
let s = Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds());
|
|
2911
2891
|
const n = Date.UTC(1899, 11, 31, 0, 0, 0);
|
|
2912
|
-
return e ? s -= 1461 * 24 * 60 * 60 * 1e3 : t >=
|
|
2892
|
+
return e ? s -= 1461 * 24 * 60 * 60 * 1e3 : t >= jn && (s += 24 * 60 * 60 * 1e3), (s - n) / (24 * 60 * 60 * 1e3);
|
|
2913
2893
|
}
|
|
2914
|
-
function
|
|
2894
|
+
function Co(t) {
|
|
2915
2895
|
let e = null, s = {}, n = t;
|
|
2916
2896
|
if (t === null)
|
|
2917
2897
|
return null;
|
|
@@ -2930,12 +2910,12 @@ function No(t) {
|
|
|
2930
2910
|
e = "TRUE", s = { fa: "General", t: "b" }, n = !0;
|
|
2931
2911
|
else if (t.toString().toUpperCase() === "FALSE")
|
|
2932
2912
|
e = "FALSE", s = { fa: "General", t: "b" }, n = !1;
|
|
2933
|
-
else if (
|
|
2913
|
+
else if ($n(t))
|
|
2934
2914
|
e = t.toString(), s = { fa: "General", t: "e" };
|
|
2935
2915
|
else if (/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(t))
|
|
2936
2916
|
e = t.toString(), s = { fa: "@", t: "s" };
|
|
2937
2917
|
else if (lt(t) && Math.abs(parseFloat(t)) > 0 && (Math.abs(parseFloat(t)) >= 1e11 || Math.abs(parseFloat(t)) < 1e-9)) {
|
|
2938
|
-
n =
|
|
2918
|
+
n = nt(t).value();
|
|
2939
2919
|
const r = n.toExponential();
|
|
2940
2920
|
if (r.indexOf(".") > -1) {
|
|
2941
2921
|
let i = r.split(".")[1].split("e")[0].length;
|
|
@@ -2961,12 +2941,12 @@ function No(t) {
|
|
|
2961
2941
|
u ? (s = {
|
|
2962
2942
|
fa: `#,##0.${new Array(l + 1).join("0")}%`,
|
|
2963
2943
|
t: "n"
|
|
2964
|
-
}, n =
|
|
2944
|
+
}, n = nt(t).value(), e = y.format(s.fa, n)) : (e = t.toString(), s = { fa: "@", t: "s" });
|
|
2965
2945
|
} else
|
|
2966
2946
|
s = {
|
|
2967
2947
|
fa: `0.${new Array(l + 1).join("0")}%`,
|
|
2968
2948
|
t: "n"
|
|
2969
|
-
}, n =
|
|
2949
|
+
}, n = nt(t).value(), e = y.format(s.fa, n);
|
|
2970
2950
|
} else
|
|
2971
2951
|
e = t.toString(), s = { fa: "@", t: "s" };
|
|
2972
2952
|
else if (i.indexOf(",") > -1) {
|
|
@@ -2977,9 +2957,9 @@ function No(t) {
|
|
|
2977
2957
|
a = !1;
|
|
2978
2958
|
break;
|
|
2979
2959
|
}
|
|
2980
|
-
a ? (s = { fa: "#,##0%", t: "n" }, n =
|
|
2960
|
+
a ? (s = { fa: "#,##0%", t: "n" }, n = nt(t).value(), e = y.format(s.fa, n)) : (e = t.toString(), s = { fa: "@", t: "s" });
|
|
2981
2961
|
} else
|
|
2982
|
-
s = { fa: "0%", t: "n" }, n =
|
|
2962
|
+
s = { fa: "0%", t: "n" }, n = nt(t).value(), e = y.format(s.fa, n);
|
|
2983
2963
|
else
|
|
2984
2964
|
e = t.toString(), s = { fa: "@", t: "s" };
|
|
2985
2965
|
} else if (t.toString().indexOf(".") > -1)
|
|
@@ -2994,21 +2974,21 @@ function No(t) {
|
|
|
2994
2974
|
a = !1;
|
|
2995
2975
|
break;
|
|
2996
2976
|
}
|
|
2997
|
-
a ? (s = { fa: `#,##0.${new Array(o + 1).join("0")}`, t: "n" }, n =
|
|
2977
|
+
a ? (s = { fa: `#,##0.${new Array(o + 1).join("0")}`, t: "n" }, n = nt(t).value(), e = y.format(s.fa, n)) : (e = t.toString(), s = { fa: "@", t: "s" });
|
|
2998
2978
|
} else
|
|
2999
|
-
lt(r) && lt(i) ? (s = { fa: `0.${new Array(o + 1).join("0")}`, t: "n" }, n =
|
|
2979
|
+
lt(r) && lt(i) ? (s = { fa: `0.${new Array(o + 1).join("0")}`, t: "n" }, n = nt(t).value(), e = y.format(s.fa, n)) : (e = t.toString(), s = { fa: "@", t: "s" });
|
|
3000
2980
|
} else
|
|
3001
2981
|
e = t.toString(), s = { fa: "@", t: "s" };
|
|
3002
2982
|
else
|
|
3003
|
-
lt(t) ? (e = t.toString(), s = { fa: "General", t: "n" }, n = parseFloat(t)) :
|
|
2983
|
+
lt(t) ? (e = t.toString(), s = { fa: "General", t: "n" }, n = parseFloat(t)) : Gn(t) && (t.toString().indexOf(".") > -1 || t.toString().indexOf(":") > -1 || t.toString().length < 16) ? (n = zn(Vn(t.toString().replace(/-/g, "/"))), n.toString().indexOf(".") > -1 ? t.toString().length > 18 ? s.fa = "yyyy-MM-dd hh:mm:ss" : t.toString().length > 11 ? s.fa = "yyyy-MM-dd hh:mm" : s.fa = "yyyy-MM-dd" : s.fa = "yyyy-MM-dd", s.t = "d", e = y.format(s.fa, n)) : (e = t, s.fa = "General", s.t = "g");
|
|
3004
2984
|
return [e, s, n];
|
|
3005
2985
|
}
|
|
3006
2986
|
const y = {
|
|
3007
2987
|
format(t, e) {
|
|
3008
2988
|
}
|
|
3009
|
-
},
|
|
2989
|
+
}, No = (t, e) => {
|
|
3010
2990
|
};
|
|
3011
|
-
function
|
|
2991
|
+
function So(t) {
|
|
3012
2992
|
let e = 0;
|
|
3013
2993
|
for (let s = 0; s < t.length; s++)
|
|
3014
2994
|
e = t.charCodeAt(s) + (e << 6) + (e << 16) - e;
|
|
@@ -3032,9 +3012,9 @@ class St {
|
|
|
3032
3012
|
}
|
|
3033
3013
|
}
|
|
3034
3014
|
const C = Symbol("newer"), v = Symbol("older");
|
|
3035
|
-
class
|
|
3015
|
+
class Yn {
|
|
3036
3016
|
constructor(e) {
|
|
3037
|
-
|
|
3017
|
+
_(this, "entry");
|
|
3038
3018
|
this.entry = e;
|
|
3039
3019
|
}
|
|
3040
3020
|
[Symbol.iterator]() {
|
|
@@ -3045,9 +3025,9 @@ class Kn {
|
|
|
3045
3025
|
return e ? (this.entry = e[C], { done: !1, value: e.key }) : { done: !0, value: void 0 };
|
|
3046
3026
|
}
|
|
3047
3027
|
}
|
|
3048
|
-
class
|
|
3028
|
+
class Kn {
|
|
3049
3029
|
constructor(e) {
|
|
3050
|
-
|
|
3030
|
+
_(this, "entry");
|
|
3051
3031
|
this.entry = e;
|
|
3052
3032
|
}
|
|
3053
3033
|
[Symbol.iterator]() {
|
|
@@ -3058,9 +3038,9 @@ class Xn {
|
|
|
3058
3038
|
return e ? (this.entry = e[C], { done: !1, value: e.value }) : { done: !0, value: void 0 };
|
|
3059
3039
|
}
|
|
3060
3040
|
}
|
|
3061
|
-
class
|
|
3041
|
+
class Xn {
|
|
3062
3042
|
constructor(e) {
|
|
3063
|
-
|
|
3043
|
+
_(this, "entry");
|
|
3064
3044
|
this.entry = e;
|
|
3065
3045
|
}
|
|
3066
3046
|
[Symbol.iterator]() {
|
|
@@ -3071,13 +3051,13 @@ class Qn {
|
|
|
3071
3051
|
return e ? (this.entry = e[C], { done: !1, value: [e.key, e.value] }) : { done: !0, value: void 0 };
|
|
3072
3052
|
}
|
|
3073
3053
|
}
|
|
3074
|
-
var
|
|
3075
|
-
class
|
|
3054
|
+
var Xi, Qi;
|
|
3055
|
+
class xe {
|
|
3076
3056
|
constructor(e, s) {
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3057
|
+
_(this, "key");
|
|
3058
|
+
_(this, "value");
|
|
3059
|
+
_(this, Xi);
|
|
3060
|
+
_(this, Qi);
|
|
3081
3061
|
this.key = e, this.value = s, this[C] = void 0, this[v] = void 0;
|
|
3082
3062
|
}
|
|
3083
3063
|
toJSON() {
|
|
@@ -3087,15 +3067,15 @@ class Pe {
|
|
|
3087
3067
|
};
|
|
3088
3068
|
}
|
|
3089
3069
|
}
|
|
3090
|
-
|
|
3091
|
-
class
|
|
3070
|
+
Xi = C, Qi = v;
|
|
3071
|
+
class Qn {
|
|
3092
3072
|
constructor(...e) {
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3073
|
+
_(this, "_keymap");
|
|
3074
|
+
_(this, "size", 0);
|
|
3075
|
+
_(this, "limit");
|
|
3076
|
+
_(this, "oldest");
|
|
3077
|
+
_(this, "newest");
|
|
3078
|
+
_(this, "_onShiftListeners", []);
|
|
3099
3079
|
if (St.hasLength(e, 1)) {
|
|
3100
3080
|
if (St.isNumber(e[0])) {
|
|
3101
3081
|
const s = e[0];
|
|
@@ -3116,7 +3096,7 @@ class Zn {
|
|
|
3116
3096
|
}
|
|
3117
3097
|
onShift(e) {
|
|
3118
3098
|
if (this._onShiftListeners.indexOf(e) === -1)
|
|
3119
|
-
return this._onShiftListeners.push(e), w(() =>
|
|
3099
|
+
return this._onShiftListeners.push(e), w(() => it(this._onShiftListeners, e));
|
|
3120
3100
|
throw new Error("[LRUMap]: the listener has been registered!");
|
|
3121
3101
|
}
|
|
3122
3102
|
_initialize(e, s) {
|
|
@@ -3130,7 +3110,7 @@ class Zn {
|
|
|
3130
3110
|
this._keymap.clear();
|
|
3131
3111
|
const r = e[Symbol.iterator]();
|
|
3132
3112
|
for (let i = r.next(); !i.done; i = r.next()) {
|
|
3133
|
-
const o = new
|
|
3113
|
+
const o = new xe(i.value[0], i.value[1]);
|
|
3134
3114
|
if (this._keymap.set(o.key, o), s ? (s[C] = o, o[v] = s) : this.oldest = o, s = o, n-- === 0)
|
|
3135
3115
|
throw new Error("overflow");
|
|
3136
3116
|
}
|
|
@@ -3138,7 +3118,7 @@ class Zn {
|
|
|
3138
3118
|
}
|
|
3139
3119
|
set(e, s) {
|
|
3140
3120
|
let n = this._keymap.get(e);
|
|
3141
|
-
return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new
|
|
3121
|
+
return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new xe(e, s)), this.newest ? (this.newest[C] = n, n[v] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
|
|
3142
3122
|
}
|
|
3143
3123
|
shift() {
|
|
3144
3124
|
const e = this.oldest;
|
|
@@ -3166,16 +3146,16 @@ class Zn {
|
|
|
3166
3146
|
this.oldest = void 0, this.newest = void 0, this.size = 0, this._keymap.clear();
|
|
3167
3147
|
}
|
|
3168
3148
|
keys() {
|
|
3169
|
-
return new
|
|
3149
|
+
return new Yn(this.oldest);
|
|
3170
3150
|
}
|
|
3171
3151
|
values() {
|
|
3172
|
-
return new
|
|
3152
|
+
return new Kn(this.oldest);
|
|
3173
3153
|
}
|
|
3174
3154
|
entries() {
|
|
3175
3155
|
return this[Symbol.iterator]();
|
|
3176
3156
|
}
|
|
3177
3157
|
[Symbol.iterator]() {
|
|
3178
|
-
return new
|
|
3158
|
+
return new Xn(this.oldest);
|
|
3179
3159
|
}
|
|
3180
3160
|
forEach(e, s) {
|
|
3181
3161
|
typeof s != "object" && (s = this);
|
|
@@ -3197,7 +3177,7 @@ class Zn {
|
|
|
3197
3177
|
return e;
|
|
3198
3178
|
}
|
|
3199
3179
|
}
|
|
3200
|
-
function
|
|
3180
|
+
function j(t) {
|
|
3201
3181
|
let e = 0;
|
|
3202
3182
|
const s = Object.keys(t);
|
|
3203
3183
|
for (const n of s) {
|
|
@@ -3206,12 +3186,24 @@ function Z(t) {
|
|
|
3206
3186
|
}
|
|
3207
3187
|
return e + 1;
|
|
3208
3188
|
}
|
|
3209
|
-
function
|
|
3210
|
-
const n =
|
|
3189
|
+
function bo(t, e, s) {
|
|
3190
|
+
const n = j(s), r = s;
|
|
3211
3191
|
for (let i = n - 1; i >= t; i--)
|
|
3212
3192
|
r[i + 1] = r[i];
|
|
3213
3193
|
r[t] = e;
|
|
3214
3194
|
}
|
|
3195
|
+
function wo(t, e, s) {
|
|
3196
|
+
const n = t + e, r = j(s), i = s;
|
|
3197
|
+
let o = 0;
|
|
3198
|
+
const a = {};
|
|
3199
|
+
for (let u = t; u < n; u++) {
|
|
3200
|
+
const h = i[u];
|
|
3201
|
+
h !== void 0 && (delete i[u], a[o] = h, o++);
|
|
3202
|
+
}
|
|
3203
|
+
const c = n - t, l = r;
|
|
3204
|
+
for (let u = n; u < l; u++)
|
|
3205
|
+
i[u] !== void 0 && (i[u - c] = i[u], delete i[u]);
|
|
3206
|
+
}
|
|
3215
3207
|
function Lo(t, e) {
|
|
3216
3208
|
const s = t, n = Object.keys(s), r = n.length, i = e, o = Object.keys(i), a = o.length, c = {};
|
|
3217
3209
|
let l = 0;
|
|
@@ -3227,7 +3219,7 @@ function Lo(t, e) {
|
|
|
3227
3219
|
}
|
|
3228
3220
|
function vo(t, e, s) {
|
|
3229
3221
|
const n = s;
|
|
3230
|
-
if (
|
|
3222
|
+
if (j(s) > 0) {
|
|
3231
3223
|
const i = {};
|
|
3232
3224
|
let o = 0;
|
|
3233
3225
|
for (let a = t; a < e; a++)
|
|
@@ -3236,13 +3228,13 @@ function vo(t, e, s) {
|
|
|
3236
3228
|
}
|
|
3237
3229
|
return {};
|
|
3238
3230
|
}
|
|
3239
|
-
function
|
|
3231
|
+
function Fe(t, e, s, n) {
|
|
3240
3232
|
const r = t > s;
|
|
3241
3233
|
if (!r && t + e > s)
|
|
3242
3234
|
throw new Error("Invalid move operation");
|
|
3243
|
-
r ?
|
|
3235
|
+
r ? Zn(t, e, s, n) : qn(t, e, s, n);
|
|
3244
3236
|
}
|
|
3245
|
-
function
|
|
3237
|
+
function Zn(t, e, s, n) {
|
|
3246
3238
|
const r = n, i = [];
|
|
3247
3239
|
for (let o = t; o < t + e; o++)
|
|
3248
3240
|
i.push(r[o]);
|
|
@@ -3266,13 +3258,13 @@ function qn(t, e, s, n) {
|
|
|
3266
3258
|
r[s + a - e] = o;
|
|
3267
3259
|
});
|
|
3268
3260
|
}
|
|
3269
|
-
class
|
|
3261
|
+
class X {
|
|
3270
3262
|
constructor(e = {}) {
|
|
3271
|
-
|
|
3263
|
+
_(this, "_matrix");
|
|
3272
3264
|
this._setOriginValue(e);
|
|
3273
3265
|
}
|
|
3274
3266
|
static MakeObjectMatrixSize(e) {
|
|
3275
|
-
return new
|
|
3267
|
+
return new X({
|
|
3276
3268
|
[e - 1]: {}
|
|
3277
3269
|
});
|
|
3278
3270
|
}
|
|
@@ -3367,11 +3359,11 @@ class K {
|
|
|
3367
3359
|
this._matrix[e] = s;
|
|
3368
3360
|
}
|
|
3369
3361
|
moveRows(e, s, n) {
|
|
3370
|
-
|
|
3362
|
+
Fe(e, s, n, this._matrix);
|
|
3371
3363
|
}
|
|
3372
3364
|
moveColumns(e, s, n) {
|
|
3373
3365
|
this.forEach((r, i) => {
|
|
3374
|
-
|
|
3366
|
+
Fe(e, s, n, i);
|
|
3375
3367
|
});
|
|
3376
3368
|
}
|
|
3377
3369
|
/**
|
|
@@ -3385,7 +3377,7 @@ class K {
|
|
|
3385
3377
|
* @returns
|
|
3386
3378
|
*/
|
|
3387
3379
|
getFragment(e, s, n, r) {
|
|
3388
|
-
const i = new
|
|
3380
|
+
const i = new X();
|
|
3389
3381
|
let o = 0;
|
|
3390
3382
|
for (let a = e; a <= s; a++) {
|
|
3391
3383
|
const c = {};
|
|
@@ -3410,7 +3402,7 @@ class K {
|
|
|
3410
3402
|
* @returns
|
|
3411
3403
|
*/
|
|
3412
3404
|
getSlice(e, s, n, r) {
|
|
3413
|
-
const i = new
|
|
3405
|
+
const i = new X();
|
|
3414
3406
|
for (let o = e; o <= s; o++)
|
|
3415
3407
|
for (let a = n; a <= r; a++) {
|
|
3416
3408
|
const c = this.getValue(o, a);
|
|
@@ -3422,7 +3414,7 @@ class K {
|
|
|
3422
3414
|
return Object.keys(this._matrix).length;
|
|
3423
3415
|
}
|
|
3424
3416
|
getLength() {
|
|
3425
|
-
return
|
|
3417
|
+
return j(this._matrix);
|
|
3426
3418
|
}
|
|
3427
3419
|
getRange() {
|
|
3428
3420
|
const n = this.getLength() - 1;
|
|
@@ -3431,7 +3423,7 @@ class K {
|
|
|
3431
3423
|
for (let o = 0; o < i; o++) {
|
|
3432
3424
|
const a = this.getRow(o);
|
|
3433
3425
|
if (a) {
|
|
3434
|
-
const c =
|
|
3426
|
+
const c = j(a) - 1;
|
|
3435
3427
|
r = c > r ? c : r;
|
|
3436
3428
|
}
|
|
3437
3429
|
}
|
|
@@ -3475,7 +3467,7 @@ class K {
|
|
|
3475
3467
|
}
|
|
3476
3468
|
getArrayData() {
|
|
3477
3469
|
let e = 0, s = 0, n = !1, r = !1;
|
|
3478
|
-
const i = new
|
|
3470
|
+
const i = new X();
|
|
3479
3471
|
return this.forEach((o, a) => {
|
|
3480
3472
|
n || (n = !0, e = o), Object.keys(a).forEach((c) => {
|
|
3481
3473
|
const l = Number(c);
|
|
@@ -3489,7 +3481,7 @@ class K {
|
|
|
3489
3481
|
let e = 0, s = 0, n = 0, r = !1, i = !1;
|
|
3490
3482
|
this.forEach((a, c) => {
|
|
3491
3483
|
r || (r = !0, e = a);
|
|
3492
|
-
const l =
|
|
3484
|
+
const l = j(c) - 1;
|
|
3493
3485
|
l > n && (n = l), Object.keys(c).forEach((u) => {
|
|
3494
3486
|
const h = Number(u);
|
|
3495
3487
|
i ? h < s && (s = h) : (i = !0, s = h);
|
|
@@ -3534,9 +3526,9 @@ class K {
|
|
|
3534
3526
|
}
|
|
3535
3527
|
}
|
|
3536
3528
|
var es = /* @__PURE__ */ ((t) => (t.INIT = "init", t.FETCHING = "fetching", t.DONE = "done", t))(es || {});
|
|
3537
|
-
class
|
|
3529
|
+
class Jn {
|
|
3538
3530
|
constructor() {
|
|
3539
|
-
|
|
3531
|
+
_(this, "status", "init");
|
|
3540
3532
|
}
|
|
3541
3533
|
}
|
|
3542
3534
|
const Do = (t) => t.some(
|
|
@@ -3546,7 +3538,7 @@ const Do = (t) => t.some(
|
|
|
3546
3538
|
(e) => e.status === "fetching"
|
|
3547
3539
|
/* FETCHING */
|
|
3548
3540
|
) ? "fetching" : "done";
|
|
3549
|
-
var
|
|
3541
|
+
var Q = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(Q || {}), Z = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(Z || {});
|
|
3550
3542
|
function Mo(t) {
|
|
3551
3543
|
return [t.startRow, t.startColumn, t.endRow, t.endColumn];
|
|
3552
3544
|
}
|
|
@@ -3561,15 +3553,15 @@ const et = class et {
|
|
|
3561
3553
|
};
|
|
3562
3554
|
}
|
|
3563
3555
|
static equals(e, s) {
|
|
3564
|
-
return e.endRow === s.endRow && e.endColumn === s.endColumn && e.startRow === s.startRow && e.startColumn === s.startColumn && (e.rangeType === s.rangeType || e.rangeType === void 0 && s.rangeType ===
|
|
3556
|
+
return e.endRow === s.endRow && e.endColumn === s.endColumn && e.startRow === s.startRow && e.startColumn === s.startColumn && (e.rangeType === s.rangeType || e.rangeType === void 0 && s.rangeType === Q.NORMAL || s.rangeType === void 0 && e.rangeType === Q.NORMAL);
|
|
3565
3557
|
}
|
|
3566
3558
|
static intersects(e, s) {
|
|
3567
|
-
const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, a = s.startRow, c = s.endRow, l = s.startColumn, u = s.endColumn, h = Math.abs(i + o - l - u), f = Math.abs(i - o) + Math.abs(l - u),
|
|
3568
|
-
return h <= f &&
|
|
3559
|
+
const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, a = s.startRow, c = s.endRow, l = s.startColumn, u = s.endColumn, h = Math.abs(i + o - l - u), f = Math.abs(i - o) + Math.abs(l - u), d = Math.abs(n + r - a - c), g = Math.abs(n - r) + Math.abs(a - c);
|
|
3560
|
+
return h <= f && d <= g;
|
|
3569
3561
|
}
|
|
3570
3562
|
static getIntersects(e, s) {
|
|
3571
3563
|
const n = e.startRow, r = e.endRow, i = e.startColumn, o = e.endColumn, a = s.startRow, c = s.endRow, l = s.startColumn, u = s.endColumn;
|
|
3572
|
-
let h, f,
|
|
3564
|
+
let h, f, d, g;
|
|
3573
3565
|
if (a <= r)
|
|
3574
3566
|
a >= n ? f = a : f = n;
|
|
3575
3567
|
else
|
|
@@ -3583,15 +3575,15 @@ const et = class et {
|
|
|
3583
3575
|
else
|
|
3584
3576
|
return null;
|
|
3585
3577
|
if (u >= i)
|
|
3586
|
-
u >= o ?
|
|
3578
|
+
u >= o ? d = o : d = u;
|
|
3587
3579
|
else
|
|
3588
3580
|
return null;
|
|
3589
3581
|
return {
|
|
3590
3582
|
startRow: f,
|
|
3591
3583
|
endRow: g,
|
|
3592
3584
|
startColumn: h,
|
|
3593
|
-
endColumn:
|
|
3594
|
-
rangeType:
|
|
3585
|
+
endColumn: d,
|
|
3586
|
+
rangeType: Q.NORMAL
|
|
3595
3587
|
// TODO: this may not be accurate
|
|
3596
3588
|
};
|
|
3597
3589
|
}
|
|
@@ -3618,7 +3610,7 @@ const et = class et {
|
|
|
3618
3610
|
startColumn: Math.min(s.startColumn, n.startColumn),
|
|
3619
3611
|
endRow: Math.max(s.endRow, n.endRow),
|
|
3620
3612
|
endColumn: Math.max(s.endColumn, n.endColumn),
|
|
3621
|
-
rangeType:
|
|
3613
|
+
rangeType: Q.NORMAL
|
|
3622
3614
|
}),
|
|
3623
3615
|
e[0]
|
|
3624
3616
|
);
|
|
@@ -3652,37 +3644,37 @@ const et = class et {
|
|
|
3652
3644
|
}), n;
|
|
3653
3645
|
}
|
|
3654
3646
|
};
|
|
3655
|
-
|
|
3647
|
+
_(et, "getRelativeRange", (e, s) => ({
|
|
3656
3648
|
startRow: e.startRow - s.startRow,
|
|
3657
3649
|
endRow: e.endRow - e.startRow,
|
|
3658
3650
|
startColumn: e.startColumn - s.startColumn,
|
|
3659
3651
|
endColumn: e.endColumn - e.startColumn
|
|
3660
|
-
})),
|
|
3652
|
+
})), _(et, "getPositionRange", (e, s) => ({
|
|
3661
3653
|
startRow: e.startRow + s.startRow,
|
|
3662
3654
|
endRow: e.endRow + e.startRow + s.startRow,
|
|
3663
3655
|
startColumn: e.startColumn + s.startColumn,
|
|
3664
3656
|
endColumn: e.endColumn + e.startColumn + s.startColumn
|
|
3665
|
-
})),
|
|
3657
|
+
})), _(et, "moveHorizontal", (e, s = 0, n = 0) => ({
|
|
3666
3658
|
...e,
|
|
3667
3659
|
startColumn: e.startColumn + s,
|
|
3668
3660
|
endColumn: e.endColumn + s + n
|
|
3669
|
-
})),
|
|
3661
|
+
})), _(et, "moveVertical", (e, s = 0, n = 0) => ({
|
|
3670
3662
|
...e,
|
|
3671
3663
|
startRow: e.startRow + s,
|
|
3672
3664
|
endRow: e.endRow + s + n
|
|
3673
|
-
})),
|
|
3665
|
+
})), _(et, "moveOffset", (e, s, n) => ({
|
|
3674
3666
|
...e,
|
|
3675
3667
|
startRow: e.startRow + n,
|
|
3676
3668
|
endRow: e.endRow + n,
|
|
3677
3669
|
startColumn: e.startColumn + s,
|
|
3678
3670
|
endColumn: e.endColumn + s
|
|
3679
3671
|
}));
|
|
3680
|
-
let
|
|
3672
|
+
let gt = et;
|
|
3681
3673
|
class Uo {
|
|
3682
3674
|
constructor(e, s) {
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3675
|
+
_(this, "_values", []);
|
|
3676
|
+
_(this, "_keys", []);
|
|
3677
|
+
_(this, "_keyMaps", /* @__PURE__ */ new Map());
|
|
3686
3678
|
this._values = e, this._keys = s, e.forEach((n) => {
|
|
3687
3679
|
this._initKeyMap(n);
|
|
3688
3680
|
});
|
|
@@ -3738,7 +3730,7 @@ class Uo {
|
|
|
3738
3730
|
this._values = [], this._keys = [], this._keyMaps.clear();
|
|
3739
3731
|
}
|
|
3740
3732
|
}
|
|
3741
|
-
function
|
|
3733
|
+
function He(t, e, s, n) {
|
|
3742
3734
|
return {
|
|
3743
3735
|
forEach(r) {
|
|
3744
3736
|
for (let i = t; i <= e; i++)
|
|
@@ -3756,37 +3748,37 @@ function To(t) {
|
|
|
3756
3748
|
i = n(e[o]), r += i * 26 ** (s - o - 1);
|
|
3757
3749
|
return r === 0 ? NaN : r - 1;
|
|
3758
3750
|
}
|
|
3759
|
-
const
|
|
3751
|
+
const Ht = 65, ss = 90, yn = 97;
|
|
3760
3752
|
function Po(t) {
|
|
3761
|
-
const e = ss -
|
|
3753
|
+
const e = ss - Ht + 1;
|
|
3762
3754
|
let s = "";
|
|
3763
3755
|
for (; t >= 0; )
|
|
3764
|
-
s = String.fromCharCode(t % e +
|
|
3756
|
+
s = String.fromCharCode(t % e + Ht) + s, t = Math.floor(t / e) - 1;
|
|
3765
3757
|
return s;
|
|
3766
3758
|
}
|
|
3767
|
-
function
|
|
3759
|
+
function tr(t, e) {
|
|
3768
3760
|
let s = "";
|
|
3769
3761
|
for (; e > 0; )
|
|
3770
3762
|
s += t, e--;
|
|
3771
3763
|
return s;
|
|
3772
3764
|
}
|
|
3773
3765
|
function xo(t, e = !1) {
|
|
3774
|
-
const s = ss -
|
|
3775
|
-
let n =
|
|
3776
|
-
e && (n =
|
|
3766
|
+
const s = ss - Ht + 1;
|
|
3767
|
+
let n = yn;
|
|
3768
|
+
e && (n = Ht);
|
|
3777
3769
|
const r = String.fromCharCode(t % s + n), i = Math.floor(t / s) + 1;
|
|
3778
|
-
return
|
|
3770
|
+
return tr(r, i);
|
|
3779
3771
|
}
|
|
3780
3772
|
function Fo(t, e) {
|
|
3781
3773
|
return t.zIndex > e.zIndex ? 1 : t.zIndex === e.zIndex ? 0 : -1;
|
|
3782
3774
|
}
|
|
3783
|
-
function
|
|
3775
|
+
function Ho(t, e) {
|
|
3784
3776
|
return t.zIndex > e.zIndex ? -1 : t.zIndex === e.zIndex ? 0 : 1;
|
|
3785
3777
|
}
|
|
3786
3778
|
function At(t = "index", e = 1) {
|
|
3787
3779
|
return (s, n) => s[t] > n[t] ? e : s[t] === n[t] ? 0 : -e;
|
|
3788
3780
|
}
|
|
3789
|
-
var
|
|
3781
|
+
var er = /* @__PURE__ */ ((t) => (t[t.PARAGRAPH = 0] = "PARAGRAPH", t[t.SECTION_BREAK = 1] = "SECTION_BREAK", t[t.TABLE = 2] = "TABLE", t[t.TABLE_ROW = 3] = "TABLE_ROW", t[t.TABLE_CELL = 4] = "TABLE_CELL", t))(er || {}), ns = /* @__PURE__ */ ((t) => (t.PARAGRAPH = "\r", t.SECTION_BREAK = `
|
|
3790
3782
|
`, t.TABLE_START = "", t.TABLE_ROW_START = "\x1B", t.TABLE_CELL_START = "", t.TABLE_CELL_END = "", t.TABLE_ROW_END = "", t.TABLE_END = "", t.CUSTOM_RANGE_START = "", t.CUSTOM_RANGE_END = "", t.COLUMN_BREAK = "\v", t.PAGE_BREAK = "\f", t.DOCS_END = "\0", t.TAB = " ", t.CUSTOM_BLOCK = "\b", t.LETTER = "", t.SPACE = " ", t))(ns || {});
|
|
3791
3783
|
function rs(t) {
|
|
3792
3784
|
const e = [];
|
|
@@ -3828,55 +3820,55 @@ function is(t, e, s, n) {
|
|
|
3828
3820
|
u.st += s, u.ed += s, i.push(u);
|
|
3829
3821
|
else {
|
|
3830
3822
|
a = !0, u.ed += s;
|
|
3831
|
-
const
|
|
3823
|
+
const d = [];
|
|
3832
3824
|
if (c.length) {
|
|
3833
3825
|
const g = {
|
|
3834
3826
|
...u,
|
|
3835
3827
|
st: h,
|
|
3836
3828
|
ed: c[0].st
|
|
3837
3829
|
};
|
|
3838
|
-
|
|
3830
|
+
d.push(g), d.push(...c);
|
|
3839
3831
|
const E = c[c.length - 1], R = {
|
|
3840
3832
|
...u,
|
|
3841
3833
|
st: E.ed,
|
|
3842
3834
|
ed: f + s
|
|
3843
3835
|
};
|
|
3844
|
-
|
|
3836
|
+
d.push(R);
|
|
3845
3837
|
} else
|
|
3846
|
-
|
|
3847
|
-
i.push(...
|
|
3838
|
+
d.push(u);
|
|
3839
|
+
i.push(...d);
|
|
3848
3840
|
}
|
|
3849
3841
|
else
|
|
3850
3842
|
u.st += s, u.ed += s, a || (a = !0, i.push(...c)), i.push(u);
|
|
3851
3843
|
}
|
|
3852
3844
|
a || (a = !0, i.push(...c)), t.textRuns = rs(i);
|
|
3853
3845
|
}
|
|
3854
|
-
function
|
|
3846
|
+
function Ae(t, e, s, n) {
|
|
3855
3847
|
const { paragraphs: r } = t;
|
|
3856
3848
|
if (r == null)
|
|
3857
3849
|
return;
|
|
3858
3850
|
const { paragraphs: i, dataStream: o } = e, a = [];
|
|
3859
3851
|
let c = -1;
|
|
3860
3852
|
for (let u = 0, h = r.length; u < h; u++) {
|
|
3861
|
-
const f = r[u], { startIndex:
|
|
3862
|
-
|
|
3853
|
+
const f = r[u], { startIndex: d } = f;
|
|
3854
|
+
d >= n && (f.startIndex += s), c === -1 && d >= n && (c = u), a.push(f.startIndex);
|
|
3863
3855
|
}
|
|
3864
3856
|
let l = -1;
|
|
3865
3857
|
if (i) {
|
|
3866
3858
|
for (let u = 0, h = i.length; u < h; u++) {
|
|
3867
3859
|
const f = i[u];
|
|
3868
3860
|
f.startIndex += n;
|
|
3869
|
-
const
|
|
3870
|
-
l = a.indexOf(
|
|
3861
|
+
const d = f.startIndex;
|
|
3862
|
+
l = a.indexOf(d);
|
|
3871
3863
|
}
|
|
3872
3864
|
if (o === ns.PARAGRAPH && i.length === 1) {
|
|
3873
|
-
const u = r[c], h = i[0], f = u.paragraphStyle,
|
|
3874
|
-
u.paragraphStyle = h.paragraphStyle, u.bullet = h.bullet, h.paragraphStyle = f, h.bullet =
|
|
3865
|
+
const u = r[c], h = i[0], f = u.paragraphStyle, d = u.bullet;
|
|
3866
|
+
u.paragraphStyle = h.paragraphStyle, u.bullet = h.bullet, h.paragraphStyle = f, h.bullet = d;
|
|
3875
3867
|
}
|
|
3876
3868
|
l !== -1 && r.splice(l, 1), r.push(...i), r.sort(At("startIndex"));
|
|
3877
3869
|
}
|
|
3878
3870
|
}
|
|
3879
|
-
function
|
|
3871
|
+
function sr(t, e, s, n) {
|
|
3880
3872
|
const { sectionBreaks: r } = t;
|
|
3881
3873
|
if (r == null)
|
|
3882
3874
|
return;
|
|
@@ -3910,7 +3902,7 @@ function os(t, e, s, n) {
|
|
|
3910
3902
|
r.push(...i), r.sort(At("startIndex"));
|
|
3911
3903
|
}
|
|
3912
3904
|
}
|
|
3913
|
-
function
|
|
3905
|
+
function Ie(t, e, s, n) {
|
|
3914
3906
|
const { tables: r } = t;
|
|
3915
3907
|
if (r == null)
|
|
3916
3908
|
return;
|
|
@@ -3927,7 +3919,7 @@ function Ae(t, e, s, n) {
|
|
|
3927
3919
|
r.push(...i), r.sort(At("startIndex"));
|
|
3928
3920
|
}
|
|
3929
3921
|
}
|
|
3930
|
-
function
|
|
3922
|
+
function nr(t, e, s, n) {
|
|
3931
3923
|
const { customRanges: r } = t;
|
|
3932
3924
|
if (r == null)
|
|
3933
3925
|
return;
|
|
@@ -4051,8 +4043,8 @@ function hs(t, e, s) {
|
|
|
4051
4043
|
});
|
|
4052
4044
|
continue;
|
|
4053
4045
|
} else if (h <= r && f >= i) {
|
|
4054
|
-
const
|
|
4055
|
-
u.startIndex =
|
|
4046
|
+
const d = ye(h, f, r, i);
|
|
4047
|
+
u.startIndex = d[0], u.endIndex = d[1];
|
|
4056
4048
|
} else
|
|
4057
4049
|
i < h && (u.startIndex -= e, u.endIndex -= e);
|
|
4058
4050
|
a.push(u);
|
|
@@ -4061,7 +4053,7 @@ function hs(t, e, s) {
|
|
|
4061
4053
|
}
|
|
4062
4054
|
return o;
|
|
4063
4055
|
}
|
|
4064
|
-
function
|
|
4056
|
+
function _s(t, e, s) {
|
|
4065
4057
|
const { customRanges: n } = t, r = s, i = s + e - 1, o = [];
|
|
4066
4058
|
if (n) {
|
|
4067
4059
|
const a = [];
|
|
@@ -4075,8 +4067,8 @@ function ds(t, e, s) {
|
|
|
4075
4067
|
});
|
|
4076
4068
|
continue;
|
|
4077
4069
|
} else if (h <= r && f >= i) {
|
|
4078
|
-
const
|
|
4079
|
-
u.startIndex =
|
|
4070
|
+
const d = ye(h, f, r, i);
|
|
4071
|
+
u.startIndex = d[0], u.endIndex = d[1];
|
|
4080
4072
|
} else
|
|
4081
4073
|
i < h && (u.startIndex -= e, u.endIndex -= e);
|
|
4082
4074
|
a.push(u);
|
|
@@ -4085,10 +4077,10 @@ function ds(t, e, s) {
|
|
|
4085
4077
|
}
|
|
4086
4078
|
return o;
|
|
4087
4079
|
}
|
|
4088
|
-
function
|
|
4089
|
-
const { dataStream: n } = t, r = s, i = s + e, o = as(t, e, s), a = ls(t, e, s), c = us(t, e, s), l = cs(t, e, s), u = hs(t, e, s), h =
|
|
4080
|
+
function rr(t, e, s) {
|
|
4081
|
+
const { dataStream: n } = t, r = s, i = s + e, o = as(t, e, s), a = ls(t, e, s), c = us(t, e, s), l = cs(t, e, s), u = hs(t, e, s), h = _s(t, e, s);
|
|
4090
4082
|
let f = "";
|
|
4091
|
-
return n && (t.dataStream =
|
|
4083
|
+
return n && (t.dataStream = Hn(n, r, i), f = n.slice(r, i)), {
|
|
4092
4084
|
dataStream: f,
|
|
4093
4085
|
textRuns: o,
|
|
4094
4086
|
paragraphs: a,
|
|
@@ -4098,16 +4090,16 @@ function ir(t, e, s) {
|
|
|
4098
4090
|
customRanges: h
|
|
4099
4091
|
};
|
|
4100
4092
|
}
|
|
4101
|
-
function
|
|
4102
|
-
t.dataStream = Fn(t.dataStream, n, e.dataStream), is(t, e, s, n),
|
|
4093
|
+
function ir(t, e, s, n) {
|
|
4094
|
+
t.dataStream = Fn(t.dataStream, n, e.dataStream), is(t, e, s, n), Ae(t, e, s, n), sr(t, e, s, n), os(t, e, s, n), Ie(t, e, s, n), nr(t, e, s, n);
|
|
4103
4095
|
}
|
|
4104
|
-
var
|
|
4105
|
-
const
|
|
4096
|
+
var or = /* @__PURE__ */ ((t) => (t[t.character = 0] = "character", t[t.paragraph = 1] = "paragraph", t[t.table = 2] = "table", t[t.numbering = 3] = "numbering", t))(or || {}), ar = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(ar || {}), Dt = /* @__PURE__ */ ((t) => (t[t.GLYPH_TYPE_UNSPECIFIED = 0] = "GLYPH_TYPE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.DECIMAL = 2] = "DECIMAL", t[t.ZERO_DECIMAL = 3] = "ZERO_DECIMAL", t[t.UPPER_ALPHA = 4] = "UPPER_ALPHA", t[t.ALPHA = 5] = "ALPHA", t[t.UPPER_ROMAN = 6] = "UPPER_ROMAN", t[t.ROMAN = 7] = "ROMAN", t))(Dt || {}), rt = /* @__PURE__ */ ((t) => (t[t.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(rt || {}), lr = /* @__PURE__ */ ((t) => (t[t.HYPERLINK = 0] = "HYPERLINK", t[t.FIELD = 1] = "FIELD", t[t.SDT = 2] = "SDT", t[t.BOOKMARK = 3] = "BOOKMARK", t[t.COMMENT = 4] = "COMMENT", t[t.CUSTOM = 5] = "CUSTOM", t))(lr || {}), ur = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(ur || {}), cr = /* @__PURE__ */ ((t) => (t[t.DEFAULT = 0] = "DEFAULT", t[t.LINES = 1] = "LINES", t[t.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", t[t.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", t))(cr || {}), hr = /* @__PURE__ */ ((t) => (t[t.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", t[t.CONTINUOUS = 1] = "CONTINUOUS", t[t.NEXT_PAGE = 2] = "NEXT_PAGE", t[t.EVEN_PAGE = 3] = "EVEN_PAGE", t[t.ODD_PAGE = 4] = "ODD_PAGE", t))(hr || {}), _r = /* @__PURE__ */ ((t) => (t[t.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", t))(_r || {}), dr = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(dr || {}), fr = /* @__PURE__ */ ((t) => (t[t.TEXT_RUN = 0] = "TEXT_RUN", t[t.AUTO_TEXT = 1] = "AUTO_TEXT", t[t.PAGE_BREAK = 2] = "PAGE_BREAK", t[t.COLUMN_BREAK = 3] = "COLUMN_BREAK", t[t.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", t[t.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", t[t.EQUATION = 6] = "EQUATION", t[t.DRAWING = 7] = "DRAWING", t[t.PERSON = 8] = "PERSON", t[t.RICH_LINK = 9] = "RICH_LINK", t))(fr || {}), gr = /* @__PURE__ */ ((t) => (t[t.BOTH_SIDES = 0] = "BOTH_SIDES", t[t.LEFT = 1] = "LEFT", t[t.RIGHT = 2] = "RIGHT", t[t.LARGEST = 3] = "LARGEST", t))(gr || {}), Er = /* @__PURE__ */ ((t) => (t[t.INLINE = 0] = "INLINE", t[t.WRAP_NONE = 1] = "WRAP_NONE", t[t.WRAP_POLYGON = 2] = "WRAP_POLYGON", t[t.WRAP_SQUARE = 3] = "WRAP_SQUARE", t[t.WRAP_THROUGH = 4] = "WRAP_THROUGH", t[t.WRAP_TIGHT = 5] = "WRAP_TIGHT", t[t.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", t))(Er || {}), Rr = /* @__PURE__ */ ((t) => (t[t.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", t[t.NORMAL_TEXT = 1] = "NORMAL_TEXT", t[t.TITLE = 2] = "TITLE", t[t.SUBTITLE = 3] = "SUBTITLE", t[t.HEADING_1 = 4] = "HEADING_1", t[t.HEADING_2 = 5] = "HEADING_2", t[t.HEADING_3 = 6] = "HEADING_3", t[t.HEADING_4 = 7] = "HEADING_4", t[t.HEADING_5 = 8] = "HEADING_5", t[t.HEADING_6 = 9] = "HEADING_6", t))(Rr || {}), mr = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(mr || {}), Or = /* @__PURE__ */ ((t) => (t[t.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", t[t.SOLID = 1] = "SOLID", t[t.DOT = 2] = "DOT", t[t.DASH = 3] = "DASH", t))(Or || {}), Ar = /* @__PURE__ */ ((t) => (t[t.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(Ar || {}), Ir = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(Ir || {}), Cr = /* @__PURE__ */ ((t) => (t[t.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", t[t.CONTENT_ALIGNMENT_UNSUPPORTED = 1] = "CONTENT_ALIGNMENT_UNSUPPORTED", t[t.TOP = 2] = "TOP", t[t.MIDDLE = 3] = "MIDDLE", t[t.BOTTOM = 4] = "BOTTOM", t))(Cr || {}), Nr = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(Nr || {}), Sr = /* @__PURE__ */ ((t) => (t[t.CHARACTER = 0] = "CHARACTER", t[t.COLUMN = 1] = "COLUMN", t[t.INSIDE_MARGIN = 2] = "INSIDE_MARGIN", t[t.LEFT_MARGIN = 3] = "LEFT_MARGIN", t[t.MARGIN = 4] = "MARGIN", t[t.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", t[t.PAGE = 6] = "PAGE", t[t.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", t))(Sr || {}), br = /* @__PURE__ */ ((t) => (t[t.BOTTOM_MARGIN = 0] = "BOTTOM_MARGIN", t[t.INSIDE_MARGIN = 1] = "INSIDE_MARGIN", t[t.LINE = 2] = "LINE", t[t.MARGIN = 3] = "MARGIN", t[t.OUTSIDE_MARGIN = 4] = "OUTSIDE_MARGIN", t[t.PAGE = 5] = "PAGE", t[t.PARAGRAPH = 6] = "PARAGRAPH", t[t.TOP_MARGIN = 7] = "TOP_MARGIN", t))(br || {}), wr = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(wr || {}), Lr = /* @__PURE__ */ ((t) => (t[t.CENTER = 0] = "CENTER", t[t.INSIDE = 1] = "INSIDE", t[t.LEFT = 2] = "LEFT", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.RIGHT = 4] = "RIGHT", t))(Lr || {}), vr = /* @__PURE__ */ ((t) => (t[t.BOTTOM = 0] = "BOTTOM", t[t.CENTER = 1] = "CENTER", t[t.INSIDE = 2] = "INSIDE", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.TOP = 4] = "TOP", t))(vr || {}), Dr = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(Dr || {}), Mr = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(Mr || {}), ie = /* @__PURE__ */ ((t) => (t.BULLET_LIST = "BULLET_LIST", t.ORDER_LIST = "ORDER_LIST", t))(ie || {});
|
|
4097
|
+
const po = {
|
|
4106
4098
|
BULLET_LIST: {
|
|
4107
4099
|
listType: "BULLET_LIST",
|
|
4108
4100
|
nestingLevel: [
|
|
4109
4101
|
{
|
|
4110
|
-
bulletAlignment:
|
|
4102
|
+
bulletAlignment: rt.START,
|
|
4111
4103
|
glyphFormat: " %0",
|
|
4112
4104
|
textStyle: {
|
|
4113
4105
|
fs: 12
|
|
@@ -4118,7 +4110,7 @@ const Ho = {
|
|
|
4118
4110
|
indentStart: 21
|
|
4119
4111
|
},
|
|
4120
4112
|
{
|
|
4121
|
-
bulletAlignment:
|
|
4113
|
+
bulletAlignment: rt.START,
|
|
4122
4114
|
glyphFormat: " %1",
|
|
4123
4115
|
textStyle: {
|
|
4124
4116
|
fs: 12
|
|
@@ -4129,7 +4121,7 @@ const Ho = {
|
|
|
4129
4121
|
indentStart: 42
|
|
4130
4122
|
},
|
|
4131
4123
|
{
|
|
4132
|
-
bulletAlignment:
|
|
4124
|
+
bulletAlignment: rt.START,
|
|
4133
4125
|
glyphFormat: " %1",
|
|
4134
4126
|
textStyle: {
|
|
4135
4127
|
fs: 12
|
|
@@ -4145,7 +4137,7 @@ const Ho = {
|
|
|
4145
4137
|
listType: "ORDER_LIST",
|
|
4146
4138
|
nestingLevel: [
|
|
4147
4139
|
{
|
|
4148
|
-
bulletAlignment:
|
|
4140
|
+
bulletAlignment: rt.START,
|
|
4149
4141
|
glyphFormat: " %1.",
|
|
4150
4142
|
textStyle: {
|
|
4151
4143
|
fs: 12
|
|
@@ -4156,7 +4148,7 @@ const Ho = {
|
|
|
4156
4148
|
indentStart: 21
|
|
4157
4149
|
},
|
|
4158
4150
|
{
|
|
4159
|
-
bulletAlignment:
|
|
4151
|
+
bulletAlignment: rt.START,
|
|
4160
4152
|
glyphFormat: " %1.%2)",
|
|
4161
4153
|
textStyle: {
|
|
4162
4154
|
fs: 12
|
|
@@ -4167,7 +4159,7 @@ const Ho = {
|
|
|
4167
4159
|
indentStart: 42
|
|
4168
4160
|
},
|
|
4169
4161
|
{
|
|
4170
|
-
bulletAlignment:
|
|
4162
|
+
bulletAlignment: rt.START,
|
|
4171
4163
|
glyphFormat: " %1.%2.%3.",
|
|
4172
4164
|
textStyle: {
|
|
4173
4165
|
fs: 12
|
|
@@ -4180,8 +4172,8 @@ const Ho = {
|
|
|
4180
4172
|
]
|
|
4181
4173
|
}
|
|
4182
4174
|
};
|
|
4183
|
-
function
|
|
4184
|
-
const i =
|
|
4175
|
+
function Ur(t, e, s, n, r) {
|
|
4176
|
+
const i = Tr(t, e, s, n, r), o = xr(t, e, s, n, r), a = Fr(t, e, s, n, r), c = Hr(t, e, s, n, r), l = pr(t, e, s, n, r), u = Br(t, e, s, n, r);
|
|
4185
4177
|
return {
|
|
4186
4178
|
dataStream: "",
|
|
4187
4179
|
textRuns: i,
|
|
@@ -4192,18 +4184,18 @@ function Tr(t, e, s, n, r) {
|
|
|
4192
4184
|
customRanges: u
|
|
4193
4185
|
};
|
|
4194
4186
|
}
|
|
4195
|
-
function
|
|
4187
|
+
function Tr(t, e, s, n, r) {
|
|
4196
4188
|
const { textRuns: i } = t, { textRuns: o } = e;
|
|
4197
4189
|
if (i == null || o == null)
|
|
4198
4190
|
return;
|
|
4199
4191
|
const a = as(t, s, n);
|
|
4200
4192
|
if (r !== x.REPLACE) {
|
|
4201
|
-
const c =
|
|
4193
|
+
const c = Pr(o, a, r);
|
|
4202
4194
|
e.textRuns = c;
|
|
4203
4195
|
}
|
|
4204
4196
|
return is(t, e, s, n), a;
|
|
4205
4197
|
}
|
|
4206
|
-
function
|
|
4198
|
+
function Pr(t, e, s) {
|
|
4207
4199
|
if (e.length === 0)
|
|
4208
4200
|
return t;
|
|
4209
4201
|
t = m.deepClone(t), e = m.deepClone(e);
|
|
@@ -4213,17 +4205,17 @@ function xr(t, e, s) {
|
|
|
4213
4205
|
return c ? (n.push(c), c = null, !0) : !1;
|
|
4214
4206
|
}
|
|
4215
4207
|
for (; o < r && a < i; ) {
|
|
4216
|
-
const { st:
|
|
4217
|
-
let
|
|
4218
|
-
s === x.COVER ?
|
|
4219
|
-
st: Math.min(
|
|
4220
|
-
ed: Math.max(
|
|
4221
|
-
ts:
|
|
4222
|
-
sId:
|
|
4208
|
+
const { st: d, ed: g, ts: E } = t[o], { st: R, ed: O, ts: A, sId: S } = e[a];
|
|
4209
|
+
let H;
|
|
4210
|
+
s === x.COVER ? H = { ...A, ...E } : H = { ...E, ...A }, g < R ? (l() || n.push(t[o]), o++) : O < d ? (l() || n.push(e[a]), a++) : (n.push({
|
|
4211
|
+
st: Math.min(d, R),
|
|
4212
|
+
ed: Math.max(d, R),
|
|
4213
|
+
ts: d < R ? { ...E } : { ...A },
|
|
4214
|
+
sId: d < R ? void 0 : S
|
|
4223
4215
|
}), n.push({
|
|
4224
|
-
st: Math.max(
|
|
4216
|
+
st: Math.max(d, R),
|
|
4225
4217
|
ed: Math.min(g, O),
|
|
4226
|
-
ts:
|
|
4218
|
+
ts: H,
|
|
4227
4219
|
sId: S
|
|
4228
4220
|
}), g < O ? (o++, e[a].st = g) : (a++, t[o].st = O), c = {
|
|
4229
4221
|
st: Math.min(g, O),
|
|
@@ -4236,7 +4228,7 @@ function xr(t, e, s) {
|
|
|
4236
4228
|
const u = n[n.length - 1], h = t[r - 1], f = e[i - 1];
|
|
4237
4229
|
return u.ed !== Math.max(h.ed, f.ed) && (h.ed > f.ed ? n.push(h) : n.push(f)), rs(n);
|
|
4238
4230
|
}
|
|
4239
|
-
function
|
|
4231
|
+
function xr(t, e, s, n, r) {
|
|
4240
4232
|
const { paragraphs: i } = t, { paragraphs: o } = e;
|
|
4241
4233
|
if (i == null || o == null)
|
|
4242
4234
|
return;
|
|
@@ -4249,7 +4241,7 @@ function Fr(t, e, s, n, r) {
|
|
|
4249
4241
|
paragraphStyle: h,
|
|
4250
4242
|
bullet: f
|
|
4251
4243
|
} = l;
|
|
4252
|
-
let
|
|
4244
|
+
let d = [];
|
|
4253
4245
|
for (const g of a) {
|
|
4254
4246
|
const {
|
|
4255
4247
|
startIndex: E,
|
|
@@ -4272,7 +4264,7 @@ function Fr(t, e, s, n, r) {
|
|
|
4272
4264
|
...f,
|
|
4273
4265
|
...O
|
|
4274
4266
|
}), u === E) {
|
|
4275
|
-
|
|
4267
|
+
d.push({
|
|
4276
4268
|
startIndex: u,
|
|
4277
4269
|
paragraphStyle: A,
|
|
4278
4270
|
bullet: S
|
|
@@ -4280,13 +4272,13 @@ function Fr(t, e, s, n, r) {
|
|
|
4280
4272
|
break;
|
|
4281
4273
|
}
|
|
4282
4274
|
}
|
|
4283
|
-
c.push(...
|
|
4275
|
+
c.push(...d), d = [];
|
|
4284
4276
|
}
|
|
4285
4277
|
e.paragraphs = c;
|
|
4286
4278
|
}
|
|
4287
|
-
return
|
|
4279
|
+
return Ae(t, e, s, n), a;
|
|
4288
4280
|
}
|
|
4289
|
-
function
|
|
4281
|
+
function Fr(t, e, s, n, r) {
|
|
4290
4282
|
const { sectionBreaks: i } = t, { sectionBreaks: o } = e;
|
|
4291
4283
|
if (i == null || o == null)
|
|
4292
4284
|
return;
|
|
@@ -4297,8 +4289,8 @@ function pr(t, e, s, n, r) {
|
|
|
4297
4289
|
const { startIndex: u } = l;
|
|
4298
4290
|
let h = [];
|
|
4299
4291
|
for (const f of a) {
|
|
4300
|
-
const { startIndex:
|
|
4301
|
-
if (u ===
|
|
4292
|
+
const { startIndex: d } = f;
|
|
4293
|
+
if (u === d) {
|
|
4302
4294
|
r === x.COVER ? h.push({
|
|
4303
4295
|
...f,
|
|
4304
4296
|
...l
|
|
@@ -4313,7 +4305,7 @@ function pr(t, e, s, n, r) {
|
|
|
4313
4305
|
}
|
|
4314
4306
|
e.sectionBreaks = c;
|
|
4315
4307
|
}
|
|
4316
|
-
return
|
|
4308
|
+
return Ae(t, e, s, n), a;
|
|
4317
4309
|
}
|
|
4318
4310
|
function Hr(t, e, s, n, r) {
|
|
4319
4311
|
const { customBlocks: i } = t, { customBlocks: o } = e;
|
|
@@ -4326,8 +4318,8 @@ function Hr(t, e, s, n, r) {
|
|
|
4326
4318
|
const { startIndex: u } = l;
|
|
4327
4319
|
let h = [];
|
|
4328
4320
|
for (const f of a) {
|
|
4329
|
-
const { startIndex:
|
|
4330
|
-
if (u ===
|
|
4321
|
+
const { startIndex: d } = f;
|
|
4322
|
+
if (u === d) {
|
|
4331
4323
|
r === x.COVER ? h.push({
|
|
4332
4324
|
...f,
|
|
4333
4325
|
...l
|
|
@@ -4344,7 +4336,7 @@ function Hr(t, e, s, n, r) {
|
|
|
4344
4336
|
}
|
|
4345
4337
|
return os(t, e, s, n), a;
|
|
4346
4338
|
}
|
|
4347
|
-
function
|
|
4339
|
+
function pr(t, e, s, n, r) {
|
|
4348
4340
|
const { tables: i } = t, { tables: o } = e;
|
|
4349
4341
|
if (i == null || o == null)
|
|
4350
4342
|
return;
|
|
@@ -4354,15 +4346,15 @@ function Br(t, e, s, n, r) {
|
|
|
4354
4346
|
for (const l of o) {
|
|
4355
4347
|
const { startIndex: u, endIndex: h } = l;
|
|
4356
4348
|
let f = [];
|
|
4357
|
-
for (const
|
|
4358
|
-
const { startIndex: g, endIndex: E } =
|
|
4349
|
+
for (const d of a) {
|
|
4350
|
+
const { startIndex: g, endIndex: E } = d;
|
|
4359
4351
|
if (g >= u && E <= h) {
|
|
4360
4352
|
r === x.COVER ? f.push({
|
|
4361
|
-
...
|
|
4353
|
+
...d,
|
|
4362
4354
|
...l
|
|
4363
4355
|
}) : f.push({
|
|
4364
4356
|
...l,
|
|
4365
|
-
...
|
|
4357
|
+
...d
|
|
4366
4358
|
});
|
|
4367
4359
|
break;
|
|
4368
4360
|
}
|
|
@@ -4371,27 +4363,27 @@ function Br(t, e, s, n, r) {
|
|
|
4371
4363
|
}
|
|
4372
4364
|
e.tables = c;
|
|
4373
4365
|
}
|
|
4374
|
-
return
|
|
4366
|
+
return Ie(t, e, s, n), a;
|
|
4375
4367
|
}
|
|
4376
|
-
function
|
|
4368
|
+
function Br(t, e, s, n, r) {
|
|
4377
4369
|
const { customRanges: i } = t, { tables: o } = e;
|
|
4378
4370
|
if (i == null || o == null)
|
|
4379
4371
|
return;
|
|
4380
|
-
const a =
|
|
4372
|
+
const a = _s(t, s, n);
|
|
4381
4373
|
if (r !== x.REPLACE) {
|
|
4382
4374
|
const c = [];
|
|
4383
4375
|
for (const l of o) {
|
|
4384
4376
|
const { startIndex: u, endIndex: h } = l;
|
|
4385
4377
|
let f = [];
|
|
4386
|
-
for (const
|
|
4387
|
-
const { startIndex: g, endIndex: E } =
|
|
4378
|
+
for (const d of a) {
|
|
4379
|
+
const { startIndex: g, endIndex: E } = d;
|
|
4388
4380
|
if (g >= u && E <= h) {
|
|
4389
4381
|
r === x.COVER ? f.push({
|
|
4390
|
-
...
|
|
4382
|
+
...d,
|
|
4391
4383
|
...l
|
|
4392
4384
|
}) : f.push({
|
|
4393
4385
|
...l,
|
|
4394
|
-
...
|
|
4386
|
+
...d
|
|
4395
4387
|
});
|
|
4396
4388
|
break;
|
|
4397
4389
|
}
|
|
@@ -4400,16 +4392,16 @@ function Wr(t, e, s, n, r) {
|
|
|
4400
4392
|
}
|
|
4401
4393
|
e.customRanges = c;
|
|
4402
4394
|
}
|
|
4403
|
-
return
|
|
4395
|
+
return Ie(t, e, s, n), a;
|
|
4404
4396
|
}
|
|
4405
|
-
const
|
|
4397
|
+
const ds = {
|
|
4406
4398
|
id: "default_doc",
|
|
4407
4399
|
documentStyle: {}
|
|
4408
4400
|
};
|
|
4409
|
-
class
|
|
4401
|
+
class Wr {
|
|
4410
4402
|
constructor(e) {
|
|
4411
|
-
|
|
4412
|
-
this.snapshot = { ...
|
|
4403
|
+
_(this, "snapshot");
|
|
4404
|
+
this.snapshot = { ...ds, ...e };
|
|
4413
4405
|
}
|
|
4414
4406
|
get drawings() {
|
|
4415
4407
|
return this.snapshot.drawings;
|
|
@@ -4483,12 +4475,12 @@ class $r {
|
|
|
4483
4475
|
} : this.snapshot.settings.zoomRatio = 1;
|
|
4484
4476
|
}
|
|
4485
4477
|
}
|
|
4486
|
-
class Rt extends
|
|
4478
|
+
class Rt extends Wr {
|
|
4487
4479
|
constructor(s) {
|
|
4488
4480
|
super(s);
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4481
|
+
_(this, "_unitId");
|
|
4482
|
+
_(this, "headerModelMap", /* @__PURE__ */ new Map());
|
|
4483
|
+
_(this, "footerModelMap", /* @__PURE__ */ new Map());
|
|
4492
4484
|
const n = 6;
|
|
4493
4485
|
this._unitId = this.snapshot.id ?? m.generateRandomId(n), this._initializeHeaderFooterModel();
|
|
4494
4486
|
}
|
|
@@ -4512,7 +4504,7 @@ class Rt extends $r {
|
|
|
4512
4504
|
reset(s) {
|
|
4513
4505
|
if (s.id && s.id !== this._unitId)
|
|
4514
4506
|
throw new Error("Cannot reset a document model with a different unit id!");
|
|
4515
|
-
this.snapshot = { ...
|
|
4507
|
+
this.snapshot = { ...ds, ...s }, this._initializeHeaderFooterModel();
|
|
4516
4508
|
}
|
|
4517
4509
|
getSelfOrHeaderFooterModel(s) {
|
|
4518
4510
|
if (s != null) {
|
|
@@ -4570,20 +4562,20 @@ class Rt extends $r {
|
|
|
4570
4562
|
const a = this.snapshot, c = zt(a, o);
|
|
4571
4563
|
if (c == null)
|
|
4572
4564
|
throw new Error("no body has changed");
|
|
4573
|
-
return
|
|
4565
|
+
return Ur(c, s, n, r, i);
|
|
4574
4566
|
}
|
|
4575
4567
|
_deleteApply(s, n, r) {
|
|
4576
4568
|
const i = this.snapshot, o = zt(i, r);
|
|
4577
4569
|
if (o == null)
|
|
4578
4570
|
throw new Error("no body has changed");
|
|
4579
|
-
return s <= 0 ? { dataStream: "" } :
|
|
4571
|
+
return s <= 0 ? { dataStream: "" } : rr(o, s, n);
|
|
4580
4572
|
}
|
|
4581
4573
|
_insertApply(s, n, r, i) {
|
|
4582
4574
|
const o = this.snapshot, a = zt(o, i);
|
|
4583
4575
|
if (n !== 0) {
|
|
4584
4576
|
if (a == null)
|
|
4585
4577
|
throw new Error("no body has changed");
|
|
4586
|
-
|
|
4578
|
+
ir(a, s, n, r);
|
|
4587
4579
|
}
|
|
4588
4580
|
}
|
|
4589
4581
|
_initializeHeaderFooterModel() {
|
|
@@ -4603,7 +4595,7 @@ class Rt extends $r {
|
|
|
4603
4595
|
super.updateDocumentId(s), this._unitId = s;
|
|
4604
4596
|
}
|
|
4605
4597
|
}
|
|
4606
|
-
var
|
|
4598
|
+
var $r = /* @__PURE__ */ ((t) => (t.INSERT_ROW_DATA_ACTION = "InsertRowDataAction", t.REMOVE_ROW_DATA_ACTION = "RemoveRowDataAction", t.INSERT_ROW_ACTION = "InsertRowAction", t.REMOVE_ROW_ACTION = "RemoveRowAction", t.SET_RANGE_STYLE_ACTION = "SetRangeStyleAction", t.SET_SELECTION_ACTION = "SetSelectionActivateAction", t.SET_RANGE_DATA_ACTION = "SetRangeDataAction", t.SET_RANGE_FORMATTED_VALUE_ACTION = "SetRangeFormattedValueAction", t.SET_RANGE_NOTE_ACTION = "SetRangeNoteAction", t.DELETE_RANGE_ACTION = "DeleteRangeAction", t.INSERT_SHEET_ACTION = "InsertSheetAction", t.REMOVE_SHEET_ACTION = "RemoveSheetAction", t.CLEAR_RANGE_ACTION = "ClearRangeAction", t.INSERT_RANGE_ACTION = "InsertRangeAction", t.SET_TAB_COLOR_ACTION = "SetTabColorAction", t.HIDE_SHEET_ACTION = "SetWorkSheetHideAction", t.SET_WORKSHEET_ACTIVATE_ACTION = "SetWorkSheetActivateAction", t.INSERT_COLUMN_ACTION = "InsertColumnAction", t.INSERT_COLUMN_DATA_ACTION = "InsertColumnDataAction", t.REMOVE_COLUMN_ACTION = "RemoveColumnAction", t.REMOVE_COLUMN_DATA_ACTION = "RemoveColumnDataAction", t.SET_HIDE_ROW_ACTION = "SetRowHideAction", t.SET_HIDE_COLUMN_ACTION = "SetColumnHideAction", t.SET_SHOW_ROW_ACTION = "SetRowShowAction", t.SET_SHOW_COLUMN_ACTION = "SetColumnShowAction", t.ADD_MERGE_ACTION = "AddMergeAction", t.REMOVE_MERGE_ACTION = "RemoveMergeAction", t.SET_WORKSHEET_NAME_ACTION = "SetWorkSheetNameAction", t.SET_WORKSHEET_STATUS_ACTION = "SetWorkSheetStatusAction", t.SET_BORDER_ACTION = "SetBorderAction", t.SET_COLUMN_WIDTH_ACTION = "SetColumnWidthAction", t.SET_ROW_HEIGHT_ACTION = "SetRowHeightAction", t.SET_HIDDEN_GRIDLINES_ACTION = "SetHiddenGridlinesAction", t.SET_RIGHT_TO_LEFT_ACTION = "SetRightToLeftAction", t.DELETE_BANDING_ACTION = "DeleteBandingAction", t.SET_BANDING_ACTION = "SetBandingAction", t.ADD_BANDING_ACTION = "AddBandingAction", t.DELETE_NAMED_RANGE_ACTION = "DeleteNamedRangeAction", t.SET_NAMED_RANGE_ACTION = "SetNamedRangeAction", t.ADD_NAMED_RANGE_ACTION = "AddNamedRangeAction", t.SET_SHEET_ORDER_ACTION = "SetSheetOrderAction", t.SET_ZOOM_RATIO_ACTION = "SetZoomRatioAction", t.SET_FROZEN_COLUMNS_ACTION = "SetFrozenColumnsAction", t.SET_FROZEN_ROWS_ACTION = "SetFrozenRowsAction", t))($r || {});
|
|
4607
4599
|
const bt = {
|
|
4608
4600
|
sheetId: "",
|
|
4609
4601
|
range: {
|
|
@@ -4625,23 +4617,23 @@ const bt = {
|
|
|
4625
4617
|
}, $o = {
|
|
4626
4618
|
row: 0,
|
|
4627
4619
|
column: 0
|
|
4628
|
-
},
|
|
4620
|
+
}, Gr = {
|
|
4629
4621
|
id: "",
|
|
4630
4622
|
sheetOrder: [],
|
|
4631
4623
|
name: "",
|
|
4632
4624
|
appVersion: "",
|
|
4633
|
-
locale:
|
|
4625
|
+
locale: Re.ZH_CN,
|
|
4634
4626
|
styles: {},
|
|
4635
4627
|
sheets: {},
|
|
4636
4628
|
resources: []
|
|
4637
|
-
},
|
|
4629
|
+
}, kr = 1e3, Vr = 20, jr = 19, zr = 73, Yr = 46, Kr = 20, oe = {
|
|
4638
4630
|
type: Ze.GRID,
|
|
4639
4631
|
name: "Sheet1",
|
|
4640
4632
|
id: "sheet-01",
|
|
4641
4633
|
tabColor: "",
|
|
4642
4634
|
hidden: I.FALSE,
|
|
4643
|
-
rowCount:
|
|
4644
|
-
columnCount:
|
|
4635
|
+
rowCount: kr,
|
|
4636
|
+
columnCount: Vr,
|
|
4645
4637
|
zoomRatio: 1,
|
|
4646
4638
|
freeze: {
|
|
4647
4639
|
xSplit: 0,
|
|
@@ -4651,8 +4643,8 @@ const bt = {
|
|
|
4651
4643
|
},
|
|
4652
4644
|
scrollTop: 0,
|
|
4653
4645
|
scrollLeft: 0,
|
|
4654
|
-
defaultColumnWidth:
|
|
4655
|
-
defaultRowHeight:
|
|
4646
|
+
defaultColumnWidth: zr,
|
|
4647
|
+
defaultRowHeight: jr,
|
|
4656
4648
|
mergeData: [],
|
|
4657
4649
|
hideRow: [],
|
|
4658
4650
|
hideColumn: [],
|
|
@@ -4662,11 +4654,11 @@ const bt = {
|
|
|
4662
4654
|
status: I.FALSE,
|
|
4663
4655
|
showGridlines: I.TRUE,
|
|
4664
4656
|
rowHeader: {
|
|
4665
|
-
width:
|
|
4657
|
+
width: Yr,
|
|
4666
4658
|
hidden: I.FALSE
|
|
4667
4659
|
},
|
|
4668
4660
|
columnHeader: {
|
|
4669
|
-
height:
|
|
4661
|
+
height: Kr,
|
|
4670
4662
|
hidden: I.FALSE
|
|
4671
4663
|
},
|
|
4672
4664
|
selections: ["A1"],
|
|
@@ -4749,7 +4741,7 @@ const bt = {
|
|
|
4749
4741
|
/**
|
|
4750
4742
|
* wrapStrategy
|
|
4751
4743
|
*/
|
|
4752
|
-
tb:
|
|
4744
|
+
tb: ft.UNSPECIFIED,
|
|
4753
4745
|
/**
|
|
4754
4746
|
* padding
|
|
4755
4747
|
*/
|
|
@@ -4759,7 +4751,7 @@ const bt = {
|
|
|
4759
4751
|
b: 0,
|
|
4760
4752
|
l: 0
|
|
4761
4753
|
}
|
|
4762
|
-
},
|
|
4754
|
+
}, Xr = {
|
|
4763
4755
|
id: "default_slide",
|
|
4764
4756
|
title: "defaultSlide",
|
|
4765
4757
|
pageSize: {
|
|
@@ -4767,11 +4759,11 @@ const bt = {
|
|
|
4767
4759
|
height: 300
|
|
4768
4760
|
}
|
|
4769
4761
|
};
|
|
4770
|
-
var
|
|
4771
|
-
class
|
|
4762
|
+
var Qr = /* @__PURE__ */ ((t) => (t.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", t.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", t))(Qr || {});
|
|
4763
|
+
class Zr {
|
|
4772
4764
|
constructor(e = {}) {
|
|
4773
|
-
|
|
4774
|
-
|
|
4765
|
+
_(this, "_styles");
|
|
4766
|
+
_(this, "_cacheMap", new Qn(1e5));
|
|
4775
4767
|
this._styles = e, this._generateCacheMap();
|
|
4776
4768
|
}
|
|
4777
4769
|
each(e) {
|
|
@@ -4842,10 +4834,10 @@ function Vo(t) {
|
|
|
4842
4834
|
const { v: e, f: s, si: n, p: r, s: i } = t;
|
|
4843
4835
|
return !(!(e == null || typeof e == "string" && e.length === 0) || s != null && s.length > 0 || n != null && n.length > 0 || r != null);
|
|
4844
4836
|
}
|
|
4845
|
-
var fs = /* @__PURE__ */ ((t) => (t[t.SLIDE = 0] = "SLIDE", t[t.MASTER = 1] = "MASTER", t[t.LAYOUT = 2] = "LAYOUT", t[t.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", t[t.NOTES_MASTER = 4] = "NOTES_MASTER", t))(fs || {}), qr = /* @__PURE__ */ ((t) => (t[t.SHAPE = 0] = "SHAPE", t[t.IMAGE = 1] = "IMAGE", t[t.TEXT = 2] = "TEXT", t[t.SPREADSHEET = 3] = "SPREADSHEET", t[t.DOCUMENT = 4] = "DOCUMENT", t[t.SLIDE = 5] = "SLIDE", t))(qr || {}),
|
|
4846
|
-
class
|
|
4837
|
+
var fs = /* @__PURE__ */ ((t) => (t[t.SLIDE = 0] = "SLIDE", t[t.MASTER = 1] = "MASTER", t[t.LAYOUT = 2] = "LAYOUT", t[t.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", t[t.NOTES_MASTER = 4] = "NOTES_MASTER", t))(fs || {}), qr = /* @__PURE__ */ ((t) => (t[t.SHAPE = 0] = "SHAPE", t[t.IMAGE = 1] = "IMAGE", t[t.TEXT = 2] = "TEXT", t[t.SPREADSHEET = 3] = "SPREADSHEET", t[t.DOCUMENT = 4] = "DOCUMENT", t[t.SLIDE = 5] = "SLIDE", t))(qr || {}), Jr = /* @__PURE__ */ ((t) => (t[t.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", t[t.NEXT_SLIDE = 1] = "NEXT_SLIDE", t[t.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", t[t.FIRST_SLIDE = 3] = "FIRST_SLIDE", t[t.LAST_SLIDE = 4] = "LAST_SLIDE", t))(Jr || {});
|
|
4838
|
+
class yr {
|
|
4847
4839
|
constructor(e, s) {
|
|
4848
|
-
|
|
4840
|
+
_(this, "_columnData", {});
|
|
4849
4841
|
this._config = e, this._columnData = s;
|
|
4850
4842
|
}
|
|
4851
4843
|
/**
|
|
@@ -4859,13 +4851,13 @@ class ti {
|
|
|
4859
4851
|
const { _columnData: s } = this, n = s[e];
|
|
4860
4852
|
return n ? n.hd !== I.TRUE : !0;
|
|
4861
4853
|
}
|
|
4862
|
-
getHiddenCols(e = 0, s =
|
|
4854
|
+
getHiddenCols(e = 0, s = j(this._columnData) - 1) {
|
|
4863
4855
|
const n = [];
|
|
4864
4856
|
let r = !1, i = -1;
|
|
4865
4857
|
for (let o = e; o <= s; o++) {
|
|
4866
4858
|
const a = this.getColVisible(o);
|
|
4867
4859
|
r && a ? (r = !1, n.push({
|
|
4868
|
-
rangeType:
|
|
4860
|
+
rangeType: Q.COLUMN,
|
|
4869
4861
|
startColumn: i,
|
|
4870
4862
|
endColumn: o - 1,
|
|
4871
4863
|
startRow: 0,
|
|
@@ -4877,7 +4869,7 @@ class ti {
|
|
|
4877
4869
|
endRow: 0,
|
|
4878
4870
|
startColumn: i,
|
|
4879
4871
|
endColumn: s,
|
|
4880
|
-
rangeType:
|
|
4872
|
+
rangeType: Q.COLUMN
|
|
4881
4873
|
}), n;
|
|
4882
4874
|
}
|
|
4883
4875
|
getColumnDatas(e, s) {
|
|
@@ -4894,7 +4886,7 @@ class ti {
|
|
|
4894
4886
|
* @returns
|
|
4895
4887
|
*/
|
|
4896
4888
|
getSize() {
|
|
4897
|
-
return
|
|
4889
|
+
return j(this._columnData);
|
|
4898
4890
|
}
|
|
4899
4891
|
/**
|
|
4900
4892
|
* Get the width of column
|
|
@@ -4961,8 +4953,8 @@ function wt(t, e) {
|
|
|
4961
4953
|
}
|
|
4962
4954
|
class mt {
|
|
4963
4955
|
constructor(e, s, n) {
|
|
4964
|
-
|
|
4965
|
-
|
|
4956
|
+
_(this, "_range");
|
|
4957
|
+
_(this, "_worksheet");
|
|
4966
4958
|
this._deps = n, this._range = s, this._worksheet = e;
|
|
4967
4959
|
}
|
|
4968
4960
|
static foreach(e, s) {
|
|
@@ -5016,7 +5008,7 @@ class mt {
|
|
|
5016
5008
|
* @returns range matrix
|
|
5017
5009
|
*/
|
|
5018
5010
|
getMatrix() {
|
|
5019
|
-
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new
|
|
5011
|
+
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new X();
|
|
5020
5012
|
for (let a = e; a <= s; a++)
|
|
5021
5013
|
for (let c = n; c <= r; c++)
|
|
5022
5014
|
o.setValue(a, c, i.getValue(a, c) || null);
|
|
@@ -5028,7 +5020,7 @@ class mt {
|
|
|
5028
5020
|
* @returns range matrix object
|
|
5029
5021
|
*/
|
|
5030
5022
|
getMatrixObject() {
|
|
5031
|
-
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new
|
|
5023
|
+
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new X();
|
|
5032
5024
|
for (let a = e; a <= s; a++)
|
|
5033
5025
|
for (let c = n; c <= r; c++)
|
|
5034
5026
|
o.setValue(a - e, c - n, i.getValue(a, c) || {});
|
|
@@ -5432,9 +5424,9 @@ class mt {
|
|
|
5432
5424
|
);
|
|
5433
5425
|
}
|
|
5434
5426
|
}
|
|
5435
|
-
class
|
|
5427
|
+
class ti {
|
|
5436
5428
|
constructor(e, s) {
|
|
5437
|
-
|
|
5429
|
+
_(this, "_rowData");
|
|
5438
5430
|
this._config = e, this._rowData = s;
|
|
5439
5431
|
}
|
|
5440
5432
|
/**
|
|
@@ -5485,7 +5477,7 @@ class ei {
|
|
|
5485
5477
|
const r = this._config, i = { hd: I.FALSE, h: r.defaultRowHeight };
|
|
5486
5478
|
return s[e] = i, i;
|
|
5487
5479
|
}
|
|
5488
|
-
getHiddenRows(e = 0, s =
|
|
5480
|
+
getHiddenRows(e = 0, s = j(this._rowData) - 1) {
|
|
5489
5481
|
const n = [];
|
|
5490
5482
|
let r = !1, i = -1;
|
|
5491
5483
|
for (let o = e; o <= s; o++) {
|
|
@@ -5495,10 +5487,10 @@ class ei {
|
|
|
5495
5487
|
endRow: o - 1,
|
|
5496
5488
|
startColumn: 0,
|
|
5497
5489
|
endColumn: 0,
|
|
5498
|
-
rangeType:
|
|
5490
|
+
rangeType: Q.ROW
|
|
5499
5491
|
})) : !r && !a && (r = !0, i = o);
|
|
5500
5492
|
}
|
|
5501
|
-
return r && n.push({ startRow: i, endRow: s, startColumn: 0, endColumn: 0, rangeType:
|
|
5493
|
+
return r && n.push({ startRow: i, endRow: s, startColumn: 0, endColumn: 0, rangeType: Q.ROW }), n;
|
|
5502
5494
|
}
|
|
5503
5495
|
getRowVisible(e) {
|
|
5504
5496
|
const s = this.getRow(e);
|
|
@@ -5509,16 +5501,16 @@ class ei {
|
|
|
5509
5501
|
* @returns
|
|
5510
5502
|
*/
|
|
5511
5503
|
getSize() {
|
|
5512
|
-
return
|
|
5504
|
+
return j(this._rowData);
|
|
5513
5505
|
}
|
|
5514
5506
|
}
|
|
5515
|
-
class
|
|
5507
|
+
class ei extends T {
|
|
5516
5508
|
constructor() {
|
|
5517
5509
|
super(...arguments);
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5510
|
+
_(this, "_cellContentInterceptors", []);
|
|
5511
|
+
_(this, "_rowFilteredInterceptors", []);
|
|
5512
|
+
_(this, "_rowVisibleInterceptors", []);
|
|
5513
|
+
_(this, "_colVisibleInterceptors", []);
|
|
5522
5514
|
}
|
|
5523
5515
|
dispose() {
|
|
5524
5516
|
super.dispose(), this._cellContentInterceptors.length = 0, this._rowFilteredInterceptors.length = 0, this._rowVisibleInterceptors.length = 0, this._colVisibleInterceptors.length = 0;
|
|
@@ -5534,33 +5526,33 @@ class si extends T {
|
|
|
5534
5526
|
registerCellContentInterceptor(s) {
|
|
5535
5527
|
if (this._cellContentInterceptors.includes(s))
|
|
5536
5528
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5537
|
-
return this._cellContentInterceptors.push(s), w(() =>
|
|
5529
|
+
return this._cellContentInterceptors.push(s), w(() => it(this._cellContentInterceptors, s));
|
|
5538
5530
|
}
|
|
5539
5531
|
registerRowFilteredInterceptor(s) {
|
|
5540
5532
|
if (this._rowFilteredInterceptors.includes(s))
|
|
5541
5533
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5542
|
-
return this._rowFilteredInterceptors.push(s), w(() =>
|
|
5534
|
+
return this._rowFilteredInterceptors.push(s), w(() => it(this._rowFilteredInterceptors, s));
|
|
5543
5535
|
}
|
|
5544
5536
|
registerRowVisibleInterceptor(s) {
|
|
5545
5537
|
if (this._rowVisibleInterceptors.includes(s))
|
|
5546
5538
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5547
|
-
return this._rowVisibleInterceptors.push(s), w(() =>
|
|
5539
|
+
return this._rowVisibleInterceptors.push(s), w(() => it(this._rowVisibleInterceptors, s));
|
|
5548
5540
|
}
|
|
5549
5541
|
registerColVisibleInterceptor(s) {
|
|
5550
5542
|
if (this._colVisibleInterceptors.includes(s))
|
|
5551
5543
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5552
|
-
return this._colVisibleInterceptors.push(s), w(() =>
|
|
5544
|
+
return this._colVisibleInterceptors.push(s), w(() => it(this._colVisibleInterceptors, s));
|
|
5553
5545
|
}
|
|
5554
5546
|
}
|
|
5555
|
-
class
|
|
5547
|
+
class pt {
|
|
5556
5548
|
constructor(e, s) {
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5549
|
+
_(this, "_initialized");
|
|
5550
|
+
_(this, "_sheetId");
|
|
5551
|
+
_(this, "_snapshot");
|
|
5552
|
+
_(this, "_cellData");
|
|
5553
|
+
_(this, "_rowManager");
|
|
5554
|
+
_(this, "_columnManager");
|
|
5555
|
+
_(this, "_viewModel");
|
|
5564
5556
|
this._styles = s;
|
|
5565
5557
|
const n = {
|
|
5566
5558
|
...oe,
|
|
@@ -5585,7 +5577,7 @@ class Ht {
|
|
|
5585
5577
|
};
|
|
5586
5578
|
this._snapshot = n;
|
|
5587
5579
|
const { columnData: r, rowData: i, cellData: o } = this._snapshot;
|
|
5588
|
-
this._sheetId = this._snapshot.id ?? m.generateRandomId(6), this._initialized = !1, this._cellData = new
|
|
5580
|
+
this._sheetId = this._snapshot.id ?? m.generateRandomId(6), this._initialized = !1, this._cellData = new X(o), this._rowManager = new ti(this._snapshot, i), this._columnManager = new yr(this._snapshot, r), this._viewModel = new ei();
|
|
5589
5581
|
}
|
|
5590
5582
|
/**
|
|
5591
5583
|
* @internal
|
|
@@ -5639,7 +5631,7 @@ class Ht {
|
|
|
5639
5631
|
*/
|
|
5640
5632
|
clone() {
|
|
5641
5633
|
const { _snapshot: e } = this, s = m.deepClone(e);
|
|
5642
|
-
return new
|
|
5634
|
+
return new pt(s, this._styles);
|
|
5643
5635
|
}
|
|
5644
5636
|
getMergeData() {
|
|
5645
5637
|
return this._snapshot.mergeData;
|
|
@@ -5654,7 +5646,7 @@ class Ht {
|
|
|
5654
5646
|
const n = this._snapshot.mergeData, r = [];
|
|
5655
5647
|
for (let i = 0; i < n.length; i++) {
|
|
5656
5648
|
const o = n[i];
|
|
5657
|
-
|
|
5649
|
+
gt.intersects({ startRow: e, startColumn: s, endRow: e, endColumn: s }, o) && r.push(o);
|
|
5658
5650
|
}
|
|
5659
5651
|
return r.length ? r : null;
|
|
5660
5652
|
}
|
|
@@ -5662,7 +5654,7 @@ class Ht {
|
|
|
5662
5654
|
const n = this._snapshot.mergeData;
|
|
5663
5655
|
for (let r = 0; r < n.length; r++) {
|
|
5664
5656
|
const i = n[r];
|
|
5665
|
-
if (
|
|
5657
|
+
if (gt.intersects({ startRow: e, startColumn: s, endRow: e, endColumn: s }, i))
|
|
5666
5658
|
return i;
|
|
5667
5659
|
}
|
|
5668
5660
|
return null;
|
|
@@ -5682,19 +5674,19 @@ class Ht {
|
|
|
5682
5674
|
// PERF: we could not skip indexes with merged cells, because we have already known the merged cells' range
|
|
5683
5675
|
getMatrixWithMergedCells(e, s, n, r) {
|
|
5684
5676
|
const i = this.getCellMatrix(), o = this._snapshot.mergeData.filter(
|
|
5685
|
-
(c) =>
|
|
5686
|
-
), a = new
|
|
5687
|
-
return
|
|
5677
|
+
(c) => gt.intersects({ startRow: e, startColumn: s, endRow: n, endColumn: r }, c)
|
|
5678
|
+
), a = new X();
|
|
5679
|
+
return He(e, n, s, r).forEach((c, l) => {
|
|
5688
5680
|
const u = i.getValue(c, l);
|
|
5689
5681
|
u && a.setValue(c, l, u);
|
|
5690
5682
|
}), o.forEach((c) => {
|
|
5691
5683
|
const { startColumn: l, startRow: u, endColumn: h, endRow: f } = c;
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
...i.getValue(
|
|
5684
|
+
He(u, f, l, h).forEach((d, g) => {
|
|
5685
|
+
d === u && g === l && a.setValue(d, g, {
|
|
5686
|
+
...i.getValue(d, g),
|
|
5695
5687
|
rowSpan: f - u + 1,
|
|
5696
5688
|
colSpan: h - l + 1
|
|
5697
|
-
}), (
|
|
5689
|
+
}), (d !== u || g !== l) && a.realDeleteValue(d, g);
|
|
5698
5690
|
});
|
|
5699
5691
|
}), a;
|
|
5700
5692
|
}
|
|
@@ -5875,44 +5867,44 @@ class Ht {
|
|
|
5875
5867
|
return e && (e.v !== void 0 || e.f !== void 0 || e.p !== void 0);
|
|
5876
5868
|
}
|
|
5877
5869
|
}
|
|
5878
|
-
var
|
|
5879
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
5870
|
+
var si = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, ri = (t, e, s, n) => {
|
|
5871
|
+
for (var r = n > 1 ? void 0 : n ? ni(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5880
5872
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
5881
|
-
return n && r &&
|
|
5882
|
-
},
|
|
5873
|
+
return n && r && si(e, s, r), r;
|
|
5874
|
+
}, ii = (t, e) => (s, n) => e(s, n, t);
|
|
5883
5875
|
function jo(t, e) {
|
|
5884
5876
|
return `${t.getUnitId()}|${e.getSheetId()}`;
|
|
5885
5877
|
}
|
|
5886
5878
|
let Bt = class extends T {
|
|
5887
5879
|
constructor(e = {}, s) {
|
|
5888
5880
|
super();
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
d(this, "activeSheet$", this._activeSheet$.asObservable());
|
|
5881
|
+
_(this, "_sheetCreated$", new M());
|
|
5882
|
+
_(this, "sheetCreated$", this._sheetCreated$.asObservable());
|
|
5883
|
+
_(this, "_sheetDisposed$", new M());
|
|
5884
|
+
_(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
|
|
5885
|
+
_(this, "_activeSheet$", new K(null));
|
|
5886
|
+
_(this, "activeSheet$", this._activeSheet$.asObservable());
|
|
5896
5887
|
/**
|
|
5897
5888
|
* sheets list
|
|
5898
5889
|
* @private
|
|
5899
5890
|
*/
|
|
5900
|
-
|
|
5891
|
+
_(this, "_worksheets");
|
|
5901
5892
|
/**
|
|
5902
5893
|
* Common style
|
|
5903
5894
|
* @private
|
|
5904
5895
|
*/
|
|
5905
|
-
|
|
5896
|
+
_(this, "_styles");
|
|
5906
5897
|
/**
|
|
5907
5898
|
* number format
|
|
5908
5899
|
* @private
|
|
5909
5900
|
*/
|
|
5910
5901
|
// private _formatManage: FormatManager;
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
this
|
|
5902
|
+
_(this, "_snapshot");
|
|
5903
|
+
_(this, "_unitId");
|
|
5904
|
+
_(this, "_count");
|
|
5905
|
+
this._log = s, this._snapshot = m.commonExtend(Gr, e);
|
|
5914
5906
|
const { styles: n } = this._snapshot;
|
|
5915
|
-
(this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = m.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new
|
|
5907
|
+
(this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = m.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new Zr(n), this._count = 1, this._worksheets = /* @__PURE__ */ new Map(), this._getDefaultWorkSheet();
|
|
5916
5908
|
}
|
|
5917
5909
|
dispose() {
|
|
5918
5910
|
super.dispose(), this._sheetCreated$.complete(), this._sheetDisposed$.complete(), this._activeSheet$.complete();
|
|
@@ -5949,7 +5941,7 @@ let Bt = class extends T {
|
|
|
5949
5941
|
if (r[e])
|
|
5950
5942
|
return !1;
|
|
5951
5943
|
r[e] = n, i.splice(s, 0, e);
|
|
5952
|
-
const o = new
|
|
5944
|
+
const o = new pt(n, this._styles);
|
|
5953
5945
|
return this._worksheets.set(e, o), this._sheetCreated$.next(o), !0;
|
|
5954
5946
|
}
|
|
5955
5947
|
getParentRenderUnitId() {
|
|
@@ -6000,6 +5992,13 @@ let Bt = class extends T {
|
|
|
6000
5992
|
const { sheetOrder: e } = this._snapshot;
|
|
6001
5993
|
return e.map((s) => this._worksheets.get(s));
|
|
6002
5994
|
}
|
|
5995
|
+
getSheetsName() {
|
|
5996
|
+
const { sheetOrder: e } = this._snapshot, s = [];
|
|
5997
|
+
return e.forEach((n) => {
|
|
5998
|
+
const r = this._worksheets.get(n);
|
|
5999
|
+
r && s.push(r.getName());
|
|
6000
|
+
}), s;
|
|
6001
|
+
}
|
|
6003
6002
|
getSheetIndex(e) {
|
|
6004
6003
|
const { sheetOrder: s } = this._snapshot;
|
|
6005
6004
|
return s.findIndex((n) => e.getSheetId() === n);
|
|
@@ -6018,24 +6017,6 @@ let Bt = class extends T {
|
|
|
6018
6017
|
getHiddenWorksheets() {
|
|
6019
6018
|
return this.getSheets().filter((e) => e.getConfig().hidden === I.TRUE).map((e) => e.getConfig().id);
|
|
6020
6019
|
}
|
|
6021
|
-
// getPluginMeta<T>(name: string): T {
|
|
6022
|
-
// return this._config.pluginMeta[name];
|
|
6023
|
-
// }
|
|
6024
|
-
// setPluginMeta<T>(name: string, value: T) {
|
|
6025
|
-
// if (!this._config.pluginMeta) {
|
|
6026
|
-
// this._config.pluginMeta = {};
|
|
6027
|
-
// }
|
|
6028
|
-
// return (this._config.pluginMeta[name] = value);
|
|
6029
|
-
// }
|
|
6030
|
-
/**
|
|
6031
|
-
* Creates a builder for a conditional formatting rule.
|
|
6032
|
-
*/
|
|
6033
|
-
// newConditionalFormatRule(): ConditionalFormatRuleBuilder {
|
|
6034
|
-
// return new ConditionalFormatRuleBuilder();
|
|
6035
|
-
// }
|
|
6036
|
-
// newFilterCriteria(): FilterCriteriaBuilder {
|
|
6037
|
-
// return new FilterCriteriaBuilder();
|
|
6038
|
-
// }
|
|
6039
6020
|
/**
|
|
6040
6021
|
* transform any range type to range data
|
|
6041
6022
|
*
|
|
@@ -6094,19 +6075,23 @@ let Bt = class extends T {
|
|
|
6094
6075
|
load(e) {
|
|
6095
6076
|
this._snapshot = e;
|
|
6096
6077
|
}
|
|
6078
|
+
checkSheetName(e) {
|
|
6079
|
+
return this.getSheetsName().includes(e);
|
|
6080
|
+
}
|
|
6081
|
+
uniqueSheetName(e = "sheet1") {
|
|
6082
|
+
let s = e;
|
|
6083
|
+
for (; this.checkSheetName(s); )
|
|
6084
|
+
s = e + this._count, this._count++;
|
|
6085
|
+
return s;
|
|
6086
|
+
}
|
|
6097
6087
|
/**
|
|
6098
6088
|
* Get the range array based on the range string and sheet id
|
|
6099
6089
|
*
|
|
6100
|
-
* @privateRemarks
|
|
6101
|
-
* zh: 根据范围字符串和sheet id取得范围数组
|
|
6102
|
-
*
|
|
6103
6090
|
* @param txt - range string
|
|
6104
6091
|
* @returns
|
|
6105
|
-
*
|
|
6106
|
-
* @internal
|
|
6107
6092
|
*/
|
|
6108
6093
|
_getCellRange(e) {
|
|
6109
|
-
var l, u, h, f,
|
|
6094
|
+
var l, u, h, f, d;
|
|
6110
6095
|
let s = "", n = "";
|
|
6111
6096
|
if (e.indexOf("!") > -1) {
|
|
6112
6097
|
const g = e.split("!");
|
|
@@ -6128,7 +6113,7 @@ let Bt = class extends T {
|
|
|
6128
6113
|
n = n.split(":");
|
|
6129
6114
|
const r = [0, 0], i = [0, 0], o = ((l = this.getSheetBySheetName(s)) == null ? void 0 : l.getMaxRows()) || ((u = this.getActiveSheet()) == null ? void 0 : u.getMaxRows()), a = ((h = this.getSheetBySheetName(s)) == null ? void 0 : h.getMaxColumns()) || ((f = this.getActiveSheet()) == null ? void 0 : f.getMaxColumns());
|
|
6130
6115
|
return r[0] = parseInt(n[0].replace(/[^0-9]/g, ""), 10) - 1, r[1] = parseInt(n[1].replace(/[^0-9]/g, ""), 10) - 1, Number.isNaN(r[0]) && (r[0] = 0), Number.isNaN(r[1]) && (r[1] = o), r[0] > r[1] || (i[0] = m.ABCatNum(n[0].replace(/[^A-Za-z]/g, "")), i[1] = m.ABCatNum(n[1].replace(/[^A-Za-z]/g, "")), Number.isNaN(i[0]) && (i[0] = 0), Number.isNaN(i[1]) && (i[1] = a), i[0] > i[1]) ? bt : {
|
|
6131
|
-
sheetId: ((
|
|
6116
|
+
sheetId: ((d = this.getSheetBySheetName(s)) == null ? void 0 : d.getSheetId()) || "",
|
|
6132
6117
|
range: {
|
|
6133
6118
|
startRow: r[0],
|
|
6134
6119
|
endRow: r[1],
|
|
@@ -6140,7 +6125,6 @@ let Bt = class extends T {
|
|
|
6140
6125
|
// FIXME: now we always create worksheet from DEFAULT_WORKSHEET?
|
|
6141
6126
|
/**
|
|
6142
6127
|
* Get Default Sheet
|
|
6143
|
-
* @private
|
|
6144
6128
|
*/
|
|
6145
6129
|
_getDefaultWorkSheet() {
|
|
6146
6130
|
const { _snapshot: e, _worksheets: s } = this, { sheets: n, sheetOrder: r } = e;
|
|
@@ -6148,21 +6132,21 @@ let Bt = class extends T {
|
|
|
6148
6132
|
status: I.TRUE
|
|
6149
6133
|
}));
|
|
6150
6134
|
for (const i in n) {
|
|
6151
|
-
const o = n[i];
|
|
6152
|
-
o.name = this.
|
|
6153
|
-
const
|
|
6154
|
-
s.set(i,
|
|
6135
|
+
const o = n[i], { name: a } = o;
|
|
6136
|
+
o.name = this.uniqueSheetName(a), o.name !== a && this._log.warn(`The worksheet name ${a} is duplicated, we change it to ${o.name}`);
|
|
6137
|
+
const c = new pt(o, this._styles);
|
|
6138
|
+
s.set(i, c), r.includes(i) || r.push(i);
|
|
6155
6139
|
}
|
|
6156
6140
|
}
|
|
6157
6141
|
};
|
|
6158
|
-
Bt =
|
|
6159
|
-
|
|
6142
|
+
Bt = ri([
|
|
6143
|
+
ii(1, ct)
|
|
6160
6144
|
], Bt);
|
|
6161
6145
|
class gs {
|
|
6162
6146
|
constructor(e) {
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
this._snapshot = { ...
|
|
6147
|
+
_(this, "_snapshot");
|
|
6148
|
+
_(this, "_unitId");
|
|
6149
|
+
this._snapshot = { ...Xr, ...e }, this._unitId = this._snapshot.id ?? m.generateRandomId(6);
|
|
6166
6150
|
}
|
|
6167
6151
|
getSnapshot() {
|
|
6168
6152
|
return this._snapshot;
|
|
@@ -6207,40 +6191,40 @@ class gs {
|
|
|
6207
6191
|
};
|
|
6208
6192
|
}
|
|
6209
6193
|
}
|
|
6210
|
-
const
|
|
6211
|
-
var
|
|
6212
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6194
|
+
const ae = "FOCUSING_SHEET", pe = "FOCUSING_DOC", Be = "FOCUSING_SLIDE", zo = "FOCUSING_EDITOR_BUT_HIDDEN", oi = "FOCUSING_EDITOR", Yo = "FOCUSING_EDITOR_INPUT_FORMULA", ai = "FOCUSING_FORMULA_EDITOR";
|
|
6195
|
+
var li = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, ci = (t, e, s, n) => {
|
|
6196
|
+
for (var r = n > 1 ? void 0 : n ? ui(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6213
6197
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6214
|
-
return n && r &&
|
|
6215
|
-
},
|
|
6198
|
+
return n && r && li(e, s, r), r;
|
|
6199
|
+
}, hi = (t, e) => (s, n) => e(s, n, t), _i = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.DOC = 1] = "DOC", t[t.SHEET = 2] = "SHEET", t[t.SLIDE = 3] = "SLIDE", t))(_i || {});
|
|
6216
6200
|
const Ot = G("univer.current");
|
|
6217
|
-
let
|
|
6201
|
+
let le = class extends T {
|
|
6218
6202
|
constructor(e, s) {
|
|
6219
6203
|
super();
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6204
|
+
_(this, "_focused", null);
|
|
6205
|
+
_(this, "_focused$", new K(null));
|
|
6206
|
+
_(this, "focused$", this._focused$.asObservable());
|
|
6207
|
+
_(this, "_currentSheet$", new K(null));
|
|
6208
|
+
_(this, "currentSheet$", this._currentSheet$.asObservable());
|
|
6209
|
+
_(this, "_currentDoc$", new K(null));
|
|
6210
|
+
_(this, "currentDoc$", this._currentDoc$.asObservable());
|
|
6211
|
+
_(this, "_currentSlide$", new K(null));
|
|
6212
|
+
_(this, "currentSlide$", this._currentSlide$.asObservable());
|
|
6213
|
+
_(this, "_sheetAdded$", new M());
|
|
6214
|
+
_(this, "sheetAdded$", this._sheetAdded$.asObservable());
|
|
6215
|
+
_(this, "_docAdded$", new M());
|
|
6216
|
+
_(this, "docAdded$", this._docAdded$.asObservable());
|
|
6217
|
+
_(this, "_slideAdded$", new M());
|
|
6218
|
+
_(this, "slideAdded$", this._slideAdded$.asObservable());
|
|
6219
|
+
_(this, "_sheetDisposed$", new M());
|
|
6220
|
+
_(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
|
|
6221
|
+
_(this, "_docDisposed$", new M());
|
|
6222
|
+
_(this, "docDisposed$", this._docDisposed$.asObservable());
|
|
6223
|
+
_(this, "_slideDisposed$", new M());
|
|
6224
|
+
_(this, "slideDisposed$", this._slideDisposed$.asObservable());
|
|
6225
|
+
_(this, "_sheets", []);
|
|
6226
|
+
_(this, "_docs", []);
|
|
6227
|
+
_(this, "_slides", []);
|
|
6244
6228
|
this._handler = e, this._contextService = s;
|
|
6245
6229
|
}
|
|
6246
6230
|
dispose() {
|
|
@@ -6318,7 +6302,7 @@ let ae = class extends T {
|
|
|
6318
6302
|
return e;
|
|
6319
6303
|
}
|
|
6320
6304
|
focusUniverInstance(e) {
|
|
6321
|
-
e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [
|
|
6305
|
+
e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [pe, ae, Be].forEach((s) => this._contextService.setContextValue(s, !1)), this._focused instanceof Bt ? this._contextService.setContextValue(ae, !0) : this._focused instanceof Rt ? this._contextService.setContextValue(pe, !0) : this._focused instanceof gs && this._contextService.setContextValue(Be, !0);
|
|
6322
6306
|
}
|
|
6323
6307
|
getFocusedUniverInstance() {
|
|
6324
6308
|
return this._focused;
|
|
@@ -6330,7 +6314,7 @@ let ae = class extends T {
|
|
|
6330
6314
|
return 2;
|
|
6331
6315
|
if (this.getUniverSlideInstance(e))
|
|
6332
6316
|
return 3;
|
|
6333
|
-
throw new Error(`[UniverInstanceService]: No document with
|
|
6317
|
+
throw new Error(`[UniverInstanceService]: No document with unitId ${e}`);
|
|
6334
6318
|
}
|
|
6335
6319
|
disposeDocument(e) {
|
|
6336
6320
|
const s = this.getUniverDocInstance(e);
|
|
@@ -6351,9 +6335,9 @@ let ae = class extends T {
|
|
|
6351
6335
|
return !1;
|
|
6352
6336
|
}
|
|
6353
6337
|
};
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
],
|
|
6338
|
+
le = ci([
|
|
6339
|
+
hi(1, Et)
|
|
6340
|
+
], le);
|
|
6357
6341
|
var b = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(b || {});
|
|
6358
6342
|
const We = {
|
|
6359
6343
|
0: "Starting",
|
|
@@ -6369,16 +6353,16 @@ function Es(t, e) {
|
|
|
6369
6353
|
function Rs(t, e) {
|
|
6370
6354
|
Mt.has(t) || Mt.set(t, []), Mt.get(t).push(e);
|
|
6371
6355
|
}
|
|
6372
|
-
var
|
|
6373
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6356
|
+
var di = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, ms = (t, e, s, n) => {
|
|
6357
|
+
for (var r = n > 1 ? void 0 : n ? fi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6374
6358
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6375
|
-
return n && r &&
|
|
6376
|
-
},
|
|
6359
|
+
return n && r && di(e, s, r), r;
|
|
6360
|
+
}, ue = (t, e) => (s, n) => e(s, n, t);
|
|
6377
6361
|
let V = class extends T {
|
|
6378
6362
|
constructor(e) {
|
|
6379
6363
|
super();
|
|
6380
|
-
|
|
6381
|
-
|
|
6364
|
+
_(this, "_lifecycle$", new K(b.Starting));
|
|
6365
|
+
_(this, "lifecycle$", this._lifecycle$.asObservable());
|
|
6382
6366
|
this._logService = e, this._logService.log(
|
|
6383
6367
|
"[LifecycleService]",
|
|
6384
6368
|
`lifecycle progressed to "${We[b.Starting]}".`
|
|
@@ -6397,12 +6381,12 @@ let V = class extends T {
|
|
|
6397
6381
|
}
|
|
6398
6382
|
};
|
|
6399
6383
|
V = ms([
|
|
6400
|
-
|
|
6384
|
+
ue(0, ct)
|
|
6401
6385
|
], V);
|
|
6402
6386
|
let st = class extends T {
|
|
6403
6387
|
constructor(e, s) {
|
|
6404
6388
|
super();
|
|
6405
|
-
|
|
6389
|
+
_(this, "_started", !1);
|
|
6406
6390
|
this._lifecycleService = e, this._injector = s;
|
|
6407
6391
|
}
|
|
6408
6392
|
start() {
|
|
@@ -6420,10 +6404,10 @@ let st = class extends T {
|
|
|
6420
6404
|
}
|
|
6421
6405
|
};
|
|
6422
6406
|
st = ms([
|
|
6423
|
-
|
|
6424
|
-
|
|
6407
|
+
ue(0, U(V)),
|
|
6408
|
+
ue(1, U(ot))
|
|
6425
6409
|
], st);
|
|
6426
|
-
function
|
|
6410
|
+
function gi(t, e) {
|
|
6427
6411
|
if (t)
|
|
6428
6412
|
try {
|
|
6429
6413
|
return t[e] ? t[e] : e.split(".").reduce((s, n) => s[n], t);
|
|
@@ -6434,13 +6418,13 @@ function Ei(t, e) {
|
|
|
6434
6418
|
class Lt extends T {
|
|
6435
6419
|
constructor() {
|
|
6436
6420
|
super();
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6421
|
+
_(this, "currentLocale", Re.ZH_CN);
|
|
6422
|
+
_(this, "locales", null);
|
|
6423
|
+
_(this, "localeChanged$", new M());
|
|
6424
|
+
_(this, "t", (s) => {
|
|
6441
6425
|
if (!this.locales)
|
|
6442
6426
|
throw new Error("Locale not initialized");
|
|
6443
|
-
return
|
|
6427
|
+
return gi(this.locales[this.currentLocale], s) ?? s;
|
|
6444
6428
|
});
|
|
6445
6429
|
this.disposeWithMe(w(() => this.localeChanged$.complete()));
|
|
6446
6430
|
}
|
|
@@ -6465,30 +6449,30 @@ class Lt extends T {
|
|
|
6465
6449
|
return this.currentLocale;
|
|
6466
6450
|
}
|
|
6467
6451
|
}
|
|
6468
|
-
const Os = G("resource-manager-service"),
|
|
6469
|
-
Rs(b.Ready,
|
|
6470
|
-
var
|
|
6471
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6452
|
+
const Os = G("resource-manager-service"), Ei = G("ResourcePersistenceService");
|
|
6453
|
+
Rs(b.Ready, Ei);
|
|
6454
|
+
var Ri = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, Oi = (t, e, s, n) => {
|
|
6455
|
+
for (var r = n > 1 ? void 0 : n ? mi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6472
6456
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6473
|
-
return n && r &&
|
|
6457
|
+
return n && r && Ri(e, s, r), r;
|
|
6474
6458
|
}, $e = (t, e) => (s, n) => e(s, n, t);
|
|
6475
6459
|
const As = G("univer.permission-service"), Ge = "PERMISSION";
|
|
6476
6460
|
let Ut = class extends T {
|
|
6477
6461
|
constructor(e, s) {
|
|
6478
6462
|
super();
|
|
6479
|
-
|
|
6480
|
-
|
|
6463
|
+
_(this, "_permissionPointMap", /* @__PURE__ */ new Map());
|
|
6464
|
+
_(this, "deletePermissionPoint", (e, s) => {
|
|
6481
6465
|
const n = this._permissionPointMap.get(e);
|
|
6482
6466
|
if (n) {
|
|
6483
6467
|
const r = n.get(s);
|
|
6484
6468
|
r && (r.complete(), this._permissionPointMap.delete(s));
|
|
6485
6469
|
}
|
|
6486
6470
|
});
|
|
6487
|
-
|
|
6471
|
+
_(this, "addPermissionPoint", (e, s) => {
|
|
6488
6472
|
const n = this._permissionPointMap.get(e) || /* @__PURE__ */ new Map();
|
|
6489
|
-
return n.has(s.id) ? !1 : (n.set(s.id, new
|
|
6473
|
+
return n.has(s.id) ? !1 : (n.set(s.id, new K(s)), this._permissionPointMap.set(e, n), !0);
|
|
6490
6474
|
});
|
|
6491
|
-
|
|
6475
|
+
_(this, "updatePermissionPoint", (e, s, n) => {
|
|
6492
6476
|
const r = this._permissionPointMap.get(e);
|
|
6493
6477
|
if (!r)
|
|
6494
6478
|
return;
|
|
@@ -6498,7 +6482,7 @@ let Ut = class extends T {
|
|
|
6498
6482
|
o.value = n, o.status = es.DONE, i.next(o);
|
|
6499
6483
|
}
|
|
6500
6484
|
});
|
|
6501
|
-
|
|
6485
|
+
_(this, "getPermissionPoint", (e, s) => {
|
|
6502
6486
|
const n = this._permissionPointMap.get(e);
|
|
6503
6487
|
if (!n)
|
|
6504
6488
|
return;
|
|
@@ -6564,25 +6548,25 @@ let Ut = class extends T {
|
|
|
6564
6548
|
});
|
|
6565
6549
|
}
|
|
6566
6550
|
};
|
|
6567
|
-
Ut =
|
|
6551
|
+
Ut = Oi([
|
|
6568
6552
|
Es(b.Starting, Ut),
|
|
6569
|
-
$e(0,
|
|
6570
|
-
$e(1,
|
|
6553
|
+
$e(0, U(Os)),
|
|
6554
|
+
$e(1, U(Ot))
|
|
6571
6555
|
], Ut);
|
|
6572
|
-
const
|
|
6573
|
-
class Kt extends
|
|
6556
|
+
const Ai = "univer.editable";
|
|
6557
|
+
class Kt extends Jn {
|
|
6574
6558
|
constructor(s) {
|
|
6575
6559
|
super();
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6560
|
+
_(this, "id", Ai);
|
|
6561
|
+
_(this, "value", !0);
|
|
6562
|
+
_(this, "unitID");
|
|
6579
6563
|
this.unitID = s;
|
|
6580
6564
|
}
|
|
6581
6565
|
}
|
|
6582
|
-
var
|
|
6583
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6566
|
+
var Ii = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, Ni = (t, e, s, n) => {
|
|
6567
|
+
for (var r = n > 1 ? void 0 : n ? Ci(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6584
6568
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6585
|
-
return n && r &&
|
|
6569
|
+
return n && r && Ii(e, s, r), r;
|
|
6586
6570
|
}, ke = (t, e) => (s, n) => e(s, n, t);
|
|
6587
6571
|
let Tt = class extends T {
|
|
6588
6572
|
constructor(t, e) {
|
|
@@ -6605,17 +6589,17 @@ let Tt = class extends T {
|
|
|
6605
6589
|
this._permissionService.updatePermissionPoint(t, s.id, e);
|
|
6606
6590
|
}
|
|
6607
6591
|
};
|
|
6608
|
-
Tt =
|
|
6592
|
+
Tt = Ni([
|
|
6609
6593
|
Es(b.Starting, Tt),
|
|
6610
|
-
ke(0,
|
|
6611
|
-
ke(1,
|
|
6594
|
+
ke(0, U(As)),
|
|
6595
|
+
ke(1, U(Ot))
|
|
6612
6596
|
], Tt);
|
|
6613
|
-
class
|
|
6597
|
+
class Si extends T {
|
|
6614
6598
|
constructor() {
|
|
6615
6599
|
super(...arguments);
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6600
|
+
_(this, "_resourceMap", /* @__PURE__ */ new Map());
|
|
6601
|
+
_(this, "_register$", new M());
|
|
6602
|
+
_(this, "register$", this._register$.asObservable());
|
|
6619
6603
|
}
|
|
6620
6604
|
getAllResource(s) {
|
|
6621
6605
|
const n = this._resourceMap.get(s);
|
|
@@ -6653,9 +6637,9 @@ class bi extends T {
|
|
|
6653
6637
|
class Ve extends T {
|
|
6654
6638
|
constructor() {
|
|
6655
6639
|
super();
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6640
|
+
_(this, "_currentTheme");
|
|
6641
|
+
_(this, "_currentTheme$", new K({}));
|
|
6642
|
+
_(this, "currentTheme$", this._currentTheme$.asObservable());
|
|
6659
6643
|
this.disposeWithMe(w(() => this._currentTheme$.complete()));
|
|
6660
6644
|
}
|
|
6661
6645
|
getCurrentTheme() {
|
|
@@ -6667,26 +6651,26 @@ class Ve extends T {
|
|
|
6667
6651
|
this._currentTheme = s, this._currentTheme$.next(s);
|
|
6668
6652
|
}
|
|
6669
6653
|
}
|
|
6670
|
-
const
|
|
6654
|
+
const bi = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", wi = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", Ko = `\r
|
|
6671
6655
|
`;
|
|
6672
|
-
var
|
|
6673
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6656
|
+
var Li = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, Di = (t, e, s, n) => {
|
|
6657
|
+
for (var r = n > 1 ? void 0 : n ? vi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6674
6658
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6675
|
-
return n && r &&
|
|
6659
|
+
return n && r && Li(e, s, r), r;
|
|
6676
6660
|
}, Xt = (t, e) => (s, n) => e(s, n, t);
|
|
6677
|
-
const
|
|
6678
|
-
let
|
|
6661
|
+
const Ce = G("univer.undo-redo.service"), Mi = 20;
|
|
6662
|
+
let ce = class extends T {
|
|
6679
6663
|
constructor(e, s, n) {
|
|
6680
6664
|
super();
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
this._univerInstanceService = e, this._commandService = s, this._contextService = n, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(
|
|
6665
|
+
_(this, "undoRedoStatus$");
|
|
6666
|
+
_(this, "_undoRedoStatus$", new K({ undos: 0, redos: 0 }));
|
|
6667
|
+
_(this, "_undoStacks", /* @__PURE__ */ new Map());
|
|
6668
|
+
_(this, "_redoStacks", /* @__PURE__ */ new Map());
|
|
6669
|
+
this._univerInstanceService = e, this._commandService = s, this._contextService = n, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(Ui)), this.disposeWithMe(this._commandService.registerCommand(Ti)), this.disposeWithMe(w(() => this._undoRedoStatus$.complete())), this.disposeWithMe(w(this._univerInstanceService.focused$.subscribe(() => this._updateStatus())));
|
|
6686
6670
|
}
|
|
6687
6671
|
pushUndoRedo(e) {
|
|
6688
6672
|
const { unitID: s } = e, n = this._getRedoStack(s, !0), r = this._getUndoStack(s, !0);
|
|
6689
|
-
n.length = 0, r.push(e), r.length >
|
|
6673
|
+
n.length = 0, r.push(e), r.length > Mi && r.splice(0, 1), this._updateStatus();
|
|
6690
6674
|
}
|
|
6691
6675
|
clearUndoRedo(e) {
|
|
6692
6676
|
const s = this._getRedoStack(e);
|
|
@@ -6739,16 +6723,17 @@ let ue = class extends T {
|
|
|
6739
6723
|
return this._getRedoStack(e, !0);
|
|
6740
6724
|
}
|
|
6741
6725
|
_getFocusedUniverInstanceId() {
|
|
6742
|
-
var
|
|
6726
|
+
var i, o;
|
|
6743
6727
|
let e = "";
|
|
6744
|
-
|
|
6728
|
+
const s = this._contextService.getContextValue(ae), n = this._contextService.getContextValue(ai), r = this._contextService.getContextValue(oi);
|
|
6729
|
+
return s ? n ? e = wi : r ? e = bi : e = ((i = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : i.getUnitId()) ?? "" : e = ((o = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : o.getUnitId()) ?? "", e;
|
|
6745
6730
|
}
|
|
6746
6731
|
};
|
|
6747
|
-
|
|
6732
|
+
ce = Di([
|
|
6748
6733
|
Xt(0, Ot),
|
|
6749
6734
|
Xt(1, Wt),
|
|
6750
|
-
Xt(2,
|
|
6751
|
-
],
|
|
6735
|
+
Xt(2, Et)
|
|
6736
|
+
], ce);
|
|
6752
6737
|
class Is {
|
|
6753
6738
|
dispose() {
|
|
6754
6739
|
}
|
|
@@ -6756,27 +6741,27 @@ class Is {
|
|
|
6756
6741
|
return !1;
|
|
6757
6742
|
}
|
|
6758
6743
|
}
|
|
6759
|
-
const
|
|
6744
|
+
const Ui = new class extends Is {
|
|
6760
6745
|
constructor() {
|
|
6761
6746
|
super(...arguments);
|
|
6762
|
-
|
|
6763
|
-
|
|
6747
|
+
_(this, "type", Ee.COMMAND);
|
|
6748
|
+
_(this, "id", "univer.command.undo");
|
|
6764
6749
|
}
|
|
6765
6750
|
async handler(e) {
|
|
6766
|
-
const s = e.get(
|
|
6751
|
+
const s = e.get(Ce), n = s.pitchTopUndoElement();
|
|
6767
6752
|
if (!n)
|
|
6768
6753
|
return !1;
|
|
6769
6754
|
const r = e.get(Wt);
|
|
6770
6755
|
return (n.undo ? await n.undo(n.undoMutations) : Qe(n.undoMutations, r)) ? (s.popUndoToRedo(), !0) : !1;
|
|
6771
6756
|
}
|
|
6772
|
-
}(),
|
|
6757
|
+
}(), Ti = new class extends Is {
|
|
6773
6758
|
constructor() {
|
|
6774
6759
|
super(...arguments);
|
|
6775
|
-
|
|
6776
|
-
|
|
6760
|
+
_(this, "type", Ee.COMMAND);
|
|
6761
|
+
_(this, "id", "univer.command.redo");
|
|
6777
6762
|
}
|
|
6778
6763
|
async handler(e) {
|
|
6779
|
-
const s = e.get(
|
|
6764
|
+
const s = e.get(Ce), n = s.pitchTopRedoElement();
|
|
6780
6765
|
if (!n)
|
|
6781
6766
|
return !1;
|
|
6782
6767
|
const r = e.get(Wt);
|
|
@@ -6786,7 +6771,7 @@ const Ti = new class extends Is {
|
|
|
6786
6771
|
class $t extends T {
|
|
6787
6772
|
constructor() {
|
|
6788
6773
|
super(...arguments);
|
|
6789
|
-
|
|
6774
|
+
_(this, "_started", !1);
|
|
6790
6775
|
}
|
|
6791
6776
|
addPlugins(s) {
|
|
6792
6777
|
if (this._started) {
|
|
@@ -6828,12 +6813,12 @@ class $t extends T {
|
|
|
6828
6813
|
return this._injector.createInstance(s, n);
|
|
6829
6814
|
}
|
|
6830
6815
|
}
|
|
6831
|
-
var
|
|
6832
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6816
|
+
var Pi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, Fi = (t, e, s, n) => {
|
|
6817
|
+
for (var r = n > 1 ? void 0 : n ? xi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6833
6818
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6834
|
-
return n && r &&
|
|
6819
|
+
return n && r && Pi(e, s, r), r;
|
|
6835
6820
|
}, Qt = (t, e) => (s, n) => e(s, n, t);
|
|
6836
|
-
let
|
|
6821
|
+
let he = class extends $t {
|
|
6837
6822
|
constructor(t, e, s) {
|
|
6838
6823
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6839
6824
|
}
|
|
@@ -6841,17 +6826,17 @@ let ce = class extends $t {
|
|
|
6841
6826
|
return this._injector.createInstance(Rt, t);
|
|
6842
6827
|
}
|
|
6843
6828
|
};
|
|
6844
|
-
|
|
6845
|
-
Qt(0,
|
|
6846
|
-
Qt(1,
|
|
6847
|
-
Qt(2,
|
|
6848
|
-
],
|
|
6849
|
-
var Hi = Object.defineProperty,
|
|
6850
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6829
|
+
he = Fi([
|
|
6830
|
+
Qt(0, U(ot)),
|
|
6831
|
+
Qt(1, U(V)),
|
|
6832
|
+
Qt(2, U(st))
|
|
6833
|
+
], he);
|
|
6834
|
+
var Hi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Bi = (t, e, s, n) => {
|
|
6835
|
+
for (var r = n > 1 ? void 0 : n ? pi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6851
6836
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6852
6837
|
return n && r && Hi(e, s, r), r;
|
|
6853
6838
|
}, Zt = (t, e) => (s, n) => e(s, n, t);
|
|
6854
|
-
let
|
|
6839
|
+
let _e = class extends $t {
|
|
6855
6840
|
constructor(t, e, s) {
|
|
6856
6841
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6857
6842
|
}
|
|
@@ -6859,16 +6844,16 @@ let he = class extends $t {
|
|
|
6859
6844
|
return this._injector.createInstance(Bt, t);
|
|
6860
6845
|
}
|
|
6861
6846
|
};
|
|
6862
|
-
|
|
6863
|
-
Zt(0,
|
|
6864
|
-
Zt(1,
|
|
6865
|
-
Zt(2,
|
|
6866
|
-
],
|
|
6867
|
-
var
|
|
6868
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6847
|
+
_e = Bi([
|
|
6848
|
+
Zt(0, U(ot)),
|
|
6849
|
+
Zt(1, U(V)),
|
|
6850
|
+
Zt(2, U(st))
|
|
6851
|
+
], _e);
|
|
6852
|
+
var Wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, Gi = (t, e, s, n) => {
|
|
6853
|
+
for (var r = n > 1 ? void 0 : n ? $i(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6869
6854
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6870
|
-
return n && r &&
|
|
6871
|
-
},
|
|
6855
|
+
return n && r && Wi(e, s, r), r;
|
|
6856
|
+
}, qt = (t, e) => (s, n) => e(s, n, t);
|
|
6872
6857
|
let de = class extends $t {
|
|
6873
6858
|
constructor(t, e, s) {
|
|
6874
6859
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
@@ -6877,25 +6862,25 @@ let de = class extends $t {
|
|
|
6877
6862
|
return this._injector.createInstance(gs, t);
|
|
6878
6863
|
}
|
|
6879
6864
|
};
|
|
6880
|
-
de =
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6865
|
+
de = Gi([
|
|
6866
|
+
qt(0, U(ot)),
|
|
6867
|
+
qt(1, U(V)),
|
|
6868
|
+
qt(2, U(st))
|
|
6884
6869
|
], de);
|
|
6885
|
-
const
|
|
6870
|
+
const ki = 200;
|
|
6886
6871
|
class Xo extends $t {
|
|
6887
6872
|
constructor(s = {}) {
|
|
6888
6873
|
super();
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6874
|
+
_(this, "_injector");
|
|
6875
|
+
_(this, "_univerPluginStore", new Ms());
|
|
6876
|
+
_(this, "_univerPluginRegistry", new Us());
|
|
6877
|
+
_(this, "_univerSheet", null);
|
|
6878
|
+
_(this, "_univerDoc", null);
|
|
6879
|
+
_(this, "_univerSlide", null);
|
|
6880
|
+
_(this, "_initLazyPluginsTimer");
|
|
6896
6881
|
this._injector = this._initDependencies();
|
|
6897
6882
|
const { theme: n, locale: r, locales: i, logLevel: o } = s;
|
|
6898
|
-
n && this._injector.get(Ve).setTheme(n), i && this._injector.get(Lt).load(i), r && this._injector.get(Lt).setLocale(r), o && this._injector.get(
|
|
6883
|
+
n && this._injector.get(Ve).setTheme(n), i && this._injector.get(Lt).load(i), r && this._injector.get(Lt).setLocale(r), o && this._injector.get(ct).setLogLevel(o);
|
|
6899
6884
|
}
|
|
6900
6885
|
get _univerInstanceService() {
|
|
6901
6886
|
return this._injector.get(Ot);
|
|
@@ -6927,7 +6912,7 @@ class Xo extends $t {
|
|
|
6927
6912
|
r();
|
|
6928
6913
|
else {
|
|
6929
6914
|
this._tryProgressToStart();
|
|
6930
|
-
const i = this._univerSheet = this._injector.createInstance(
|
|
6915
|
+
const i = this._univerSheet = this._injector.createInstance(_e), o = this._univerPluginRegistry.getRegisterPlugins(L.Sheet).map((a) => [a.plugin, a.options]);
|
|
6931
6916
|
this._univerPluginRegistry.clearPluginsOfType(L.Sheet), i.addPlugins(o), r(), this._tryProgressToReady();
|
|
6932
6917
|
}
|
|
6933
6918
|
return n;
|
|
@@ -6941,7 +6926,7 @@ class Xo extends $t {
|
|
|
6941
6926
|
r();
|
|
6942
6927
|
else {
|
|
6943
6928
|
this._tryProgressToStart();
|
|
6944
|
-
const i = this._univerDoc = this._injector.createInstance(
|
|
6929
|
+
const i = this._univerDoc = this._injector.createInstance(he), o = this._univerPluginRegistry.getRegisterPlugins(L.Doc).map((a) => [a.plugin, a.options]);
|
|
6945
6930
|
this._univerPluginRegistry.clearPluginsOfType(L.Doc), i.addPlugins(o), r(), this._tryProgressToReady();
|
|
6946
6931
|
}
|
|
6947
6932
|
return n;
|
|
@@ -6961,11 +6946,11 @@ class Xo extends $t {
|
|
|
6961
6946
|
return n;
|
|
6962
6947
|
}
|
|
6963
6948
|
_initDependencies() {
|
|
6964
|
-
return new
|
|
6949
|
+
return new ot([
|
|
6965
6950
|
[
|
|
6966
6951
|
Ot,
|
|
6967
6952
|
{
|
|
6968
|
-
useFactory: (s) => new
|
|
6953
|
+
useFactory: (s) => new le(
|
|
6969
6954
|
{
|
|
6970
6955
|
createUniverDoc: (n) => this.createUniverDoc(n),
|
|
6971
6956
|
createUniverSheet: (n) => this.createUniverSheet(n),
|
|
@@ -6973,7 +6958,7 @@ class Xo extends $t {
|
|
|
6973
6958
|
},
|
|
6974
6959
|
s
|
|
6975
6960
|
),
|
|
6976
|
-
deps: [
|
|
6961
|
+
deps: [Et]
|
|
6977
6962
|
}
|
|
6978
6963
|
],
|
|
6979
6964
|
[Zs],
|
|
@@ -6983,13 +6968,13 @@ class Xo extends $t {
|
|
|
6983
6968
|
[st],
|
|
6984
6969
|
[As, { useClass: Ut }],
|
|
6985
6970
|
[Tt],
|
|
6986
|
-
[
|
|
6971
|
+
[ct, { useClass: ks, lazy: !0 }],
|
|
6987
6972
|
[Wt, { useClass: yt, lazy: !0 }],
|
|
6988
|
-
[
|
|
6973
|
+
[Ce, { useClass: ce, lazy: !0 }],
|
|
6989
6974
|
[Xs, { useClass: Qs }],
|
|
6990
|
-
[
|
|
6991
|
-
[
|
|
6992
|
-
[Os, { useClass:
|
|
6975
|
+
[Et, { useClass: $s }],
|
|
6976
|
+
[Js, { useClass: qs, lazy: !0 }],
|
|
6977
|
+
[Os, { useClass: Si, lazy: !0 }]
|
|
6993
6978
|
]);
|
|
6994
6979
|
}
|
|
6995
6980
|
/**
|
|
@@ -7020,7 +7005,7 @@ class Xo extends $t {
|
|
|
7020
7005
|
_scheduleInitPluginAfterStarted() {
|
|
7021
7006
|
this._initLazyPluginsTimer === void 0 && (this._initLazyPluginsTimer = setTimeout(
|
|
7022
7007
|
() => this._flushLazyPlugins(),
|
|
7023
|
-
|
|
7008
|
+
ki
|
|
7024
7009
|
));
|
|
7025
7010
|
}
|
|
7026
7011
|
_flushLazyPlugins() {
|
|
@@ -7072,7 +7057,7 @@ function Qo(t) {
|
|
|
7072
7057
|
s = !0;
|
|
7073
7058
|
};
|
|
7074
7059
|
}
|
|
7075
|
-
class Zo extends
|
|
7060
|
+
class Zo extends ge {
|
|
7076
7061
|
/**
|
|
7077
7062
|
* Create a new WorkBookObserver with the specified callback
|
|
7078
7063
|
* @param callback the callback that will be executed for that WorkBookObserver
|
|
@@ -7083,7 +7068,7 @@ class Zo extends fe {
|
|
|
7083
7068
|
add(e) {
|
|
7084
7069
|
if (!e)
|
|
7085
7070
|
return null;
|
|
7086
|
-
const s = new
|
|
7071
|
+
const s = new fe(e, this);
|
|
7087
7072
|
return this._observers = [s], this._onObserverAdded && this._onObserverAdded(s), s;
|
|
7088
7073
|
}
|
|
7089
7074
|
makeObserverTopPriority() {
|
|
@@ -7091,7 +7076,7 @@ class Zo extends fe {
|
|
|
7091
7076
|
makeObserverBottomPriority() {
|
|
7092
7077
|
}
|
|
7093
7078
|
}
|
|
7094
|
-
const
|
|
7079
|
+
const qo = G("ILocalStorageService"), Jo = (t) => `sheet_interceptor_${t}`, Vi = (t) => (
|
|
7095
7080
|
// eslint-disable-next-line func-names
|
|
7096
7081
|
function(e, s) {
|
|
7097
7082
|
let n = -1;
|
|
@@ -7105,13 +7090,13 @@ const Jo = G("ILocalStorageService"), qo = (t) => `sheet_interceptor_${t}`, ji =
|
|
|
7105
7090
|
);
|
|
7106
7091
|
class yo {
|
|
7107
7092
|
constructor(e) {
|
|
7108
|
-
|
|
7109
|
-
|
|
7093
|
+
_(this, "_interceptorsByName", /* @__PURE__ */ new Map());
|
|
7094
|
+
_(this, "_interceptorPoints");
|
|
7110
7095
|
this._interceptorPoints = e;
|
|
7111
7096
|
}
|
|
7112
7097
|
fetchThroughInterceptors(e) {
|
|
7113
7098
|
const s = e, n = this._interceptorsByName.get(s);
|
|
7114
|
-
return
|
|
7099
|
+
return Vi(n || []);
|
|
7115
7100
|
}
|
|
7116
7101
|
intercept(e, s) {
|
|
7117
7102
|
const n = e;
|
|
@@ -7120,16 +7105,16 @@ class yo {
|
|
|
7120
7105
|
return r.push(s), this._interceptorsByName.set(
|
|
7121
7106
|
n,
|
|
7122
7107
|
r.sort((i, o) => (o.priority ?? 0) - (i.priority ?? 0))
|
|
7123
|
-
), () =>
|
|
7108
|
+
), () => it(this._interceptorsByName.get(n), s);
|
|
7124
7109
|
}
|
|
7125
7110
|
getInterceptPoints() {
|
|
7126
7111
|
return this._interceptorPoints;
|
|
7127
7112
|
}
|
|
7128
7113
|
}
|
|
7129
|
-
const je = `'?\\[((?![\\/?:"<>|*\\\\]).)*\\]`,
|
|
7114
|
+
const je = `'?\\[((?![\\/?:"<>|*\\\\]).)*\\]`, ji = /[^0-9]/g, zi = /[^A-Za-z]/g;
|
|
7130
7115
|
function Pt(t) {
|
|
7131
7116
|
const e = t[0] === "$", n = t.substring(1).indexOf("$") > -1;
|
|
7132
|
-
return e && n ?
|
|
7117
|
+
return e && n ? Z.ALL : e ? Z.COLUMN : n ? Z.ROW : Z.NONE;
|
|
7133
7118
|
}
|
|
7134
7119
|
function ta(t) {
|
|
7135
7120
|
const e = t.split("!");
|
|
@@ -7140,29 +7125,29 @@ function ta(t) {
|
|
|
7140
7125
|
endAbsoluteRefType: Pt(s[1])
|
|
7141
7126
|
} : { startAbsoluteRefType: Pt(s[0]) };
|
|
7142
7127
|
}
|
|
7143
|
-
function ze(t =
|
|
7128
|
+
function ze(t = Z.NONE) {
|
|
7144
7129
|
let e = "", s = "";
|
|
7145
|
-
return t ===
|
|
7130
|
+
return t === Z.ROW ? e = "$" : t === Z.COLUMN ? s = "$" : t === Z.ALL && (e = "$", s = "$"), {
|
|
7146
7131
|
rowAbsoluteString: e,
|
|
7147
7132
|
columnAbsoluteString: s
|
|
7148
7133
|
};
|
|
7149
7134
|
}
|
|
7150
|
-
function
|
|
7135
|
+
function Ne(t) {
|
|
7151
7136
|
const { startColumn: e, startRow: s, endColumn: n, endRow: r, startAbsoluteRefType: i, endAbsoluteRefType: o } = t, a = ze(i), c = ze(o), l = `${a.columnAbsoluteString}${m.chatAtABC(e)}${a.rowAbsoluteString}${s + 1}`, u = `${c.columnAbsoluteString}${m.chatAtABC(n)}${c.rowAbsoluteString}${r + 1}`;
|
|
7152
7137
|
return l === u ? l : `${l}:${u}`;
|
|
7153
7138
|
}
|
|
7154
|
-
function
|
|
7155
|
-
return `${t}!${
|
|
7139
|
+
function Yi(t, e) {
|
|
7140
|
+
return `${t}!${Ne(e)}`;
|
|
7156
7141
|
}
|
|
7157
|
-
function
|
|
7158
|
-
return `[${t}]${e}!${
|
|
7142
|
+
function Ki(t, e, s) {
|
|
7143
|
+
return `[${t}]${e}!${Ne(s)}`;
|
|
7159
7144
|
}
|
|
7160
7145
|
function ea(t) {
|
|
7161
7146
|
const { unitId: e, sheetName: s, range: n } = t;
|
|
7162
|
-
return e != null && e.length > 0 && s != null && s.length > 0 ?
|
|
7147
|
+
return e != null && e.length > 0 && s != null && s.length > 0 ? Ki(e, s, n) : s != null && s.length > 0 ? Yi(s, n) : Ne(n);
|
|
7163
7148
|
}
|
|
7164
|
-
function
|
|
7165
|
-
const e = parseInt(t.replace(
|
|
7149
|
+
function Jt(t) {
|
|
7150
|
+
const e = parseInt(t.replace(ji, "")) - 1, s = m.ABCatNum(t.replace(zi, "")), n = Pt(t);
|
|
7166
7151
|
return {
|
|
7167
7152
|
row: e,
|
|
7168
7153
|
column: s,
|
|
@@ -7178,7 +7163,7 @@ function sa(t) {
|
|
|
7178
7163
|
n > -1 ? (r = t.substring(0, n), i = t.substring(n)) : i = t;
|
|
7179
7164
|
const o = i.indexOf(":");
|
|
7180
7165
|
if (o === -1) {
|
|
7181
|
-
const E =
|
|
7166
|
+
const E = Jt(i), R = E.row, O = E.column, A = E.absoluteRefType;
|
|
7182
7167
|
return {
|
|
7183
7168
|
unitId: s,
|
|
7184
7169
|
sheetName: r,
|
|
@@ -7192,14 +7177,14 @@ function sa(t) {
|
|
|
7192
7177
|
}
|
|
7193
7178
|
};
|
|
7194
7179
|
}
|
|
7195
|
-
const a = i.substring(0, o), c = i.substring(o + 1), l =
|
|
7180
|
+
const a = i.substring(0, o), c = i.substring(o + 1), l = Jt(a), u = Jt(c), h = l.row, f = l.column, d = u.row, g = u.column;
|
|
7196
7181
|
return {
|
|
7197
7182
|
unitId: s,
|
|
7198
7183
|
sheetName: r,
|
|
7199
7184
|
range: {
|
|
7200
7185
|
startRow: h,
|
|
7201
7186
|
startColumn: f,
|
|
7202
|
-
endRow:
|
|
7187
|
+
endRow: d,
|
|
7203
7188
|
endColumn: g,
|
|
7204
7189
|
startAbsoluteRefType: l.absoluteRefType,
|
|
7205
7190
|
endAbsoluteRefType: u.absoluteRefType
|
|
@@ -7209,53 +7194,53 @@ function sa(t) {
|
|
|
7209
7194
|
Ls();
|
|
7210
7195
|
export {
|
|
7211
7196
|
To as ABCToNumber,
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7197
|
+
$r as ACTION_NAMES,
|
|
7198
|
+
Z as AbsoluteRefType,
|
|
7199
|
+
Lr as AlignTypeH,
|
|
7200
|
+
vr as AlignTypeV,
|
|
7216
7201
|
sn as AutoFillSeries,
|
|
7217
7202
|
se as BaselineOffset,
|
|
7218
|
-
|
|
7203
|
+
ur as BlockType,
|
|
7219
7204
|
I as BooleanNumber,
|
|
7220
7205
|
N as BorderStyleTypes,
|
|
7221
7206
|
nn as BorderType,
|
|
7222
|
-
|
|
7223
|
-
|
|
7207
|
+
rt as BulletAlignment,
|
|
7208
|
+
Te as COLORS,
|
|
7224
7209
|
vt as CellValueType,
|
|
7225
|
-
|
|
7226
|
-
|
|
7210
|
+
ht as Color,
|
|
7211
|
+
Oe as ColorBuilder,
|
|
7227
7212
|
k as ColorKit,
|
|
7228
7213
|
$ as ColorType,
|
|
7229
7214
|
_r as ColumnSeparatorType,
|
|
7230
7215
|
yt as CommandService,
|
|
7231
|
-
|
|
7216
|
+
Ee as CommandType,
|
|
7232
7217
|
rn as CommonHideTypes,
|
|
7233
7218
|
on as ConditionType,
|
|
7234
|
-
|
|
7219
|
+
Cr as ContentAlignment,
|
|
7235
7220
|
$s as ContextService,
|
|
7236
7221
|
an as CopyPasteType,
|
|
7237
|
-
|
|
7222
|
+
lr as CustomRangeType,
|
|
7238
7223
|
$o as DEFAULT_CELL,
|
|
7239
|
-
|
|
7240
|
-
|
|
7224
|
+
ds as DEFAULT_DOC,
|
|
7225
|
+
ro as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
|
|
7241
7226
|
Ko as DEFAULT_EMPTY_DOCUMENT_VALUE,
|
|
7242
7227
|
Bo as DEFAULT_RANGE,
|
|
7243
7228
|
bt as DEFAULT_RANGE_ARRAY,
|
|
7244
7229
|
Wo as DEFAULT_SELECTION,
|
|
7245
|
-
|
|
7230
|
+
Xr as DEFAULT_SLIDE,
|
|
7246
7231
|
Yt as DEFAULT_STYLES,
|
|
7247
|
-
|
|
7232
|
+
Gr as DEFAULT_WORKBOOK,
|
|
7248
7233
|
oe as DEFAULT_WORKSHEET,
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7234
|
+
Vr as DEFAULT_WORKSHEET_COLUMN_COUNT,
|
|
7235
|
+
Kr as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
|
|
7236
|
+
zr as DEFAULT_WORKSHEET_COLUMN_WIDTH,
|
|
7237
|
+
kr as DEFAULT_WORKSHEET_ROW_COUNT,
|
|
7238
|
+
jr as DEFAULT_WORKSHEET_ROW_HEIGHT,
|
|
7239
|
+
Yr as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
|
|
7240
|
+
wi as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
7241
|
+
bi as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
7242
|
+
Or as DashStyleType,
|
|
7243
|
+
er as DataStreamTreeNodeType,
|
|
7259
7244
|
ns as DataStreamTreeTokenType,
|
|
7260
7245
|
ks as DesktopLogService,
|
|
7261
7246
|
ln as DeveloperMetadataVisibility,
|
|
@@ -7263,191 +7248,191 @@ export {
|
|
|
7263
7248
|
cn as Direction,
|
|
7264
7249
|
T as Disposable,
|
|
7265
7250
|
Ws as DisposableCollection,
|
|
7266
|
-
|
|
7251
|
+
or as DocStyleType,
|
|
7267
7252
|
Rt as DocumentDataModel,
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
Qn as EntryIterator,
|
|
7253
|
+
Qr as EXTENSION_NAMES,
|
|
7254
|
+
xe as Entry,
|
|
7255
|
+
Xn as EntryIterator,
|
|
7272
7256
|
Zs as ErrorService,
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7257
|
+
ps as EventState,
|
|
7258
|
+
pe as FOCUSING_DOC,
|
|
7259
|
+
oi as FOCUSING_EDITOR,
|
|
7276
7260
|
zo as FOCUSING_EDITOR_BUT_HIDDEN,
|
|
7277
7261
|
Yo as FOCUSING_EDITOR_INPUT_FORMULA,
|
|
7278
|
-
|
|
7279
|
-
|
|
7262
|
+
ai as FOCUSING_FORMULA_EDITOR,
|
|
7263
|
+
ae as FOCUSING_SHEET,
|
|
7280
7264
|
Be as FOCUSING_SLIDE,
|
|
7281
|
-
|
|
7282
|
-
|
|
7265
|
+
qs as FloatingObjectManagerService,
|
|
7266
|
+
ar as FollowNumberWithType,
|
|
7283
7267
|
te as FontItalic,
|
|
7284
|
-
|
|
7268
|
+
Nr as FontStyleType,
|
|
7285
7269
|
ee as FontWeight,
|
|
7286
7270
|
hn as FormatType,
|
|
7287
|
-
Hn as GenName,
|
|
7288
7271
|
Dt as GlyphType,
|
|
7289
|
-
|
|
7272
|
+
cr as GridType,
|
|
7290
7273
|
mn as HLSColor,
|
|
7291
7274
|
ut as HorizontalAlign,
|
|
7292
7275
|
Wt as ICommandService,
|
|
7293
7276
|
Xs as IConfigService,
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7277
|
+
Et as IContextService,
|
|
7278
|
+
Js as IFloatingObjectManagerService,
|
|
7279
|
+
qo as ILocalStorageService,
|
|
7280
|
+
ct as ILogService,
|
|
7298
7281
|
As as IPermissionService,
|
|
7299
7282
|
Os as IResourceManagerService,
|
|
7300
|
-
|
|
7301
|
-
|
|
7283
|
+
Ei as ISnapshotPersistenceService,
|
|
7284
|
+
Ce as IUndoRedoService,
|
|
7302
7285
|
Ot as IUniverInstanceService,
|
|
7303
7286
|
yo as InterceptorManager,
|
|
7304
|
-
|
|
7305
|
-
|
|
7287
|
+
_n as InterpolationPointType,
|
|
7288
|
+
Yn as KeyIterator,
|
|
7306
7289
|
St as LRUHelper,
|
|
7307
|
-
|
|
7290
|
+
Qn as LRUMap,
|
|
7308
7291
|
V as LifecycleService,
|
|
7309
7292
|
b as LifecycleStages,
|
|
7310
|
-
|
|
7293
|
+
ce as LocalUndoRedoService,
|
|
7311
7294
|
Lt as LocaleService,
|
|
7312
|
-
|
|
7295
|
+
Re as LocaleType,
|
|
7313
7296
|
Gs as LogLevel,
|
|
7314
7297
|
ys as MemoryCursor,
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7298
|
+
Rr as NamedStyleType,
|
|
7299
|
+
wr as NumberUnitType,
|
|
7300
|
+
X as ObjectMatrix,
|
|
7301
|
+
Sr as ObjectRelativeFromH,
|
|
7302
|
+
br as ObjectRelativeFromV,
|
|
7303
|
+
ge as Observable,
|
|
7321
7304
|
Zo as ObservableHooks,
|
|
7322
|
-
|
|
7305
|
+
fe as Observer,
|
|
7323
7306
|
Es as OnLifecycle,
|
|
7324
|
-
|
|
7307
|
+
po as PRESET_LIST_TYPE,
|
|
7325
7308
|
qr as PageElementType,
|
|
7326
|
-
|
|
7309
|
+
Mr as PageOrientType,
|
|
7327
7310
|
fs as PageType,
|
|
7328
|
-
|
|
7329
|
-
|
|
7311
|
+
fr as ParagraphElementType,
|
|
7312
|
+
Jn as PermissionPoint,
|
|
7330
7313
|
Ut as PermissionService,
|
|
7331
7314
|
es as PermissionStatus,
|
|
7332
7315
|
Ds as Plugin,
|
|
7333
7316
|
L as PluginType,
|
|
7334
|
-
|
|
7317
|
+
Er as PositionedObjectLayoutType,
|
|
7335
7318
|
ie as PresetListType,
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7319
|
+
dn as ProtectionType,
|
|
7320
|
+
Q as RANGE_TYPE,
|
|
7321
|
+
uo as RGBA_PAREN,
|
|
7322
|
+
lo as RGB_PAREN,
|
|
7340
7323
|
mt as Range,
|
|
7341
|
-
|
|
7342
|
-
|
|
7324
|
+
gt as Rectangle,
|
|
7325
|
+
Ti as RedoCommand,
|
|
7343
7326
|
Uo as RefAlias,
|
|
7344
7327
|
Ye as Registry,
|
|
7345
7328
|
Ke as RegistryAsMap,
|
|
7346
7329
|
fn as RelativeDate,
|
|
7347
|
-
|
|
7348
|
-
|
|
7330
|
+
Jr as RelativeSlideLink,
|
|
7331
|
+
Si as ResourceManagerService,
|
|
7349
7332
|
ne as RgbColor,
|
|
7350
|
-
|
|
7351
|
-
|
|
7333
|
+
so as RxDisposable,
|
|
7334
|
+
hr as SectionType,
|
|
7352
7335
|
gn as ShapeType,
|
|
7353
7336
|
Ze as SheetTypes,
|
|
7354
|
-
|
|
7337
|
+
ei as SheetViewModel,
|
|
7355
7338
|
gs as Slide,
|
|
7356
|
-
|
|
7357
|
-
|
|
7339
|
+
mr as SpacingRule,
|
|
7340
|
+
Zr as Styles,
|
|
7358
7341
|
Rn as THEME_COLORS,
|
|
7359
|
-
|
|
7342
|
+
Ar as TabStopAlignment,
|
|
7360
7343
|
En as TextDecoration,
|
|
7361
7344
|
xt as TextDirection,
|
|
7362
|
-
|
|
7345
|
+
dr as TextDirectionType,
|
|
7363
7346
|
re as ThemeColor,
|
|
7364
7347
|
F as ThemeColorType,
|
|
7365
|
-
|
|
7348
|
+
me as ThemeColors,
|
|
7366
7349
|
Ve as ThemeService,
|
|
7367
7350
|
m as Tools,
|
|
7368
|
-
|
|
7351
|
+
Ui as UndoCommand,
|
|
7369
7352
|
Xo as Univer,
|
|
7370
|
-
|
|
7353
|
+
he as UniverDoc,
|
|
7371
7354
|
Kt as UniverEditablePermission,
|
|
7372
|
-
|
|
7355
|
+
Ai as UniverEditablePermissionPoint,
|
|
7356
|
+
_i as UniverInstanceType,
|
|
7373
7357
|
Tt as UniverPermissionService,
|
|
7374
|
-
|
|
7358
|
+
_e as UniverSheet,
|
|
7375
7359
|
de as UniverSlide,
|
|
7376
7360
|
x as UpdateDocsAttributeType,
|
|
7377
|
-
|
|
7361
|
+
Kn as ValueIterator,
|
|
7378
7362
|
dt as VerticalAlign,
|
|
7379
|
-
|
|
7363
|
+
Ir as WidthType,
|
|
7380
7364
|
Bt as Workbook,
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7365
|
+
pt as Worksheet,
|
|
7366
|
+
ft as WrapStrategy,
|
|
7367
|
+
gr as WrapTextType,
|
|
7384
7368
|
tn as binarySearchArray,
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7369
|
+
Dr as characterSpacingControlType,
|
|
7370
|
+
Ao as checkParagraphHasBullet,
|
|
7371
|
+
Io as checkParagraphHasIndent,
|
|
7388
7372
|
xn as checkParagraphHasIndentByStyle,
|
|
7389
|
-
|
|
7390
|
-
|
|
7373
|
+
oo as codeToBlob,
|
|
7374
|
+
Vi as composeInterceptors,
|
|
7391
7375
|
Lo as concatMatrixArray,
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7376
|
+
Jo as createInterceptorKey,
|
|
7377
|
+
He as createRowColIter,
|
|
7378
|
+
zn as datenum_local,
|
|
7379
|
+
to as dedupe,
|
|
7380
|
+
Je as deepCompare,
|
|
7381
|
+
Hn as deleteContent,
|
|
7398
7382
|
sa as deserializeRangeWithSheet,
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7383
|
+
Pe as error,
|
|
7384
|
+
eo as fromObservable,
|
|
7385
|
+
Co as generate,
|
|
7402
7386
|
ta as getAbsoluteRefTypeWitString,
|
|
7403
7387
|
Pt as getAbsoluteRefTypeWithSingleString,
|
|
7404
|
-
|
|
7405
|
-
|
|
7388
|
+
j as getArrayLength,
|
|
7389
|
+
mo as getBorderStyleType,
|
|
7406
7390
|
ko as getCellValueType,
|
|
7407
|
-
|
|
7391
|
+
Y as getColorStyle,
|
|
7408
7392
|
zt as getDocsUpdateBody,
|
|
7409
|
-
|
|
7393
|
+
ao as getReverseDirection,
|
|
7410
7394
|
Do as getTypeFromPermissionItemList,
|
|
7411
7395
|
jo as getWorksheetUID,
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7396
|
+
Eo as handleJsonToDom,
|
|
7397
|
+
Ro as handleStyleToString,
|
|
7398
|
+
So as hashAlgorithm,
|
|
7415
7399
|
ye as horizontalLineSegmentsSubtraction,
|
|
7416
|
-
|
|
7400
|
+
bo as insertMatrixArray,
|
|
7417
7401
|
Fn as insertTextToContent,
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7402
|
+
_o as isEmptyCell,
|
|
7403
|
+
go as isFormulaId,
|
|
7404
|
+
fo as isFormulaString,
|
|
7421
7405
|
Go as isICellData,
|
|
7422
7406
|
Vo as isNullCell,
|
|
7423
7407
|
Bs as isObserver,
|
|
7424
7408
|
lt as isRealNum,
|
|
7425
7409
|
Pn as isSameStyleTextRun,
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7410
|
+
Oo as isValidRange,
|
|
7411
|
+
ho as makeCellRangeToRangeData,
|
|
7412
|
+
co as makeCellToSelection,
|
|
7413
|
+
Fe as moveMatrixArray,
|
|
7430
7414
|
Po as numberToABC,
|
|
7431
7415
|
xo as numberToListABC,
|
|
7432
7416
|
en as orderSearchArray,
|
|
7433
|
-
|
|
7434
|
-
|
|
7417
|
+
it as remove,
|
|
7418
|
+
tr as repeatStringNumTimes,
|
|
7435
7419
|
Qo as requestImmediateMacroTask,
|
|
7436
7420
|
Rs as runOnLifecycle,
|
|
7437
|
-
|
|
7421
|
+
io as searchArray,
|
|
7438
7422
|
Mo as selectionToArray,
|
|
7439
7423
|
xs as sequence,
|
|
7440
7424
|
Ps as sequenceAsync,
|
|
7441
7425
|
Qe as sequenceExecute,
|
|
7442
|
-
|
|
7443
|
-
|
|
7426
|
+
no as sequenceExecuteAsync,
|
|
7427
|
+
Ne as serializeRange,
|
|
7444
7428
|
ea as serializeRangeToRefString,
|
|
7445
|
-
|
|
7446
|
-
|
|
7429
|
+
Yi as serializeRangeWithSheet,
|
|
7430
|
+
Ki as serializeRangeWithSpreadsheet,
|
|
7447
7431
|
vo as sliceMatrixArray,
|
|
7448
7432
|
Fo as sortRules,
|
|
7449
|
-
|
|
7433
|
+
Ho as sortRulesByDesc,
|
|
7450
7434
|
At as sortRulesFactory,
|
|
7435
|
+
wo as spliceArray,
|
|
7451
7436
|
w as toDisposable,
|
|
7452
|
-
|
|
7437
|
+
No as update
|
|
7453
7438
|
};
|