@univerjs/core 0.1.0-alpha.3 → 0.1.0-beta.1
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 +6 -6
- package/lib/es/index.js +771 -788
- 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/const/index.d.ts +0 -1
- 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/types/types/interfaces/i-workbook-data.d.ts +12 -3
- package/lib/umd/index.js +5 -5
- package/package.json +7 -7
- package/lib/types/shared/gen-name.d.ts +0 -23
- package/lib/types/types/const/action-names.d.ts +0 -65
- package/lib/types/types/const/doc-action-names.d.ts +0 -21
package/lib/es/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
3
|
var d = (t, e, s) => (Ns(t, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
-
import { createIdentifier as G, Inject as
|
|
5
|
-
import { Subject as
|
|
6
|
-
import { map as
|
|
4
|
+
import { createIdentifier as G, Inject as U, Injector as ot } from "@wendellhu/redi";
|
|
5
|
+
import { Subject as D, BehaviorSubject as K, Observable as bs, combineLatest as ws } from "rxjs";
|
|
6
|
+
import { map as Ss } from "rxjs/operators";
|
|
7
7
|
function Ls() {
|
|
8
8
|
vs();
|
|
9
9
|
}
|
|
@@ -60,7 +60,7 @@ class Ke {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
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
|
-
class
|
|
63
|
+
class Ms {
|
|
64
64
|
constructor(e) {
|
|
65
65
|
d(this, "_name");
|
|
66
66
|
this._name = e;
|
|
@@ -80,8 +80,8 @@ class Ds {
|
|
|
80
80
|
return this._name;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
d(
|
|
84
|
-
class
|
|
83
|
+
d(Ms, "type", 0);
|
|
84
|
+
class Ds {
|
|
85
85
|
constructor() {
|
|
86
86
|
d(this, "_plugins", []);
|
|
87
87
|
}
|
|
@@ -111,17 +111,17 @@ 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 yi(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));
|
|
122
122
|
return s;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ps(t, e) {
|
|
125
125
|
for (let s = t.length - 1; s > -1; s--) {
|
|
126
126
|
const n = t[s];
|
|
127
127
|
if (e(n, s))
|
|
@@ -129,7 +129,7 @@ function Ts(t, e) {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
async function
|
|
132
|
+
async function xs(t) {
|
|
133
133
|
for (const [e, s] of t.entries())
|
|
134
134
|
try {
|
|
135
135
|
if (!await s())
|
|
@@ -149,7 +149,7 @@ async function Ps(t) {
|
|
|
149
149
|
index: -1
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ts(t) {
|
|
153
153
|
for (const [e, s] of t.entries())
|
|
154
154
|
try {
|
|
155
155
|
if (!s())
|
|
@@ -169,7 +169,7 @@ function xs(t) {
|
|
|
169
169
|
index: -1
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Se(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 dt(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 Me(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 = Se(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 (dt(u))
|
|
264
264
|
try {
|
|
265
265
|
u();
|
|
266
266
|
} catch (E) {
|
|
@@ -270,12 +270,12 @@ var Xe = function() {
|
|
|
270
270
|
if (h) {
|
|
271
271
|
this._finalizers = null;
|
|
272
272
|
try {
|
|
273
|
-
for (var f =
|
|
273
|
+
for (var f = Se(h), _ = f.next(); !_.done; _ = f.next()) {
|
|
274
274
|
var g = _.value;
|
|
275
275
|
try {
|
|
276
276
|
De(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) {
|
|
@@ -313,10 +313,10 @@ 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) && Me(s, e);
|
|
317
317
|
}, t.prototype.remove = function(e) {
|
|
318
318
|
var s = this._finalizers;
|
|
319
|
-
s &&
|
|
319
|
+
s && Me(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;
|
|
@@ -324,10 +324,10 @@ var Xe = function() {
|
|
|
324
324
|
}();
|
|
325
325
|
Xe.EMPTY;
|
|
326
326
|
function ps(t) {
|
|
327
|
-
return t instanceof Xe || t && "closed" in t &&
|
|
327
|
+
return t instanceof Xe || t && "closed" in t && dt(t.remove) && dt(t.add) && dt(t.unsubscribe);
|
|
328
328
|
}
|
|
329
329
|
function De(t) {
|
|
330
|
-
|
|
330
|
+
dt(t) ? t() : t.unsubscribe();
|
|
331
331
|
}
|
|
332
332
|
class Hs {
|
|
333
333
|
/**
|
|
@@ -363,10 +363,10 @@ class Hs {
|
|
|
363
363
|
this.isStopPropagation = !0;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
return t instanceof
|
|
366
|
+
function $s(t) {
|
|
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
|
|
@@ -384,7 +384,7 @@ class _e {
|
|
|
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
|
|
@@ -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) {
|
|
@@ -553,13 +553,13 @@ class fe {
|
|
|
553
553
|
return s !== -1 ? (this._observers.splice(s, 1), !0) : !1;
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function S(t) {
|
|
557
557
|
let e = !1;
|
|
558
558
|
return ps(t) ? {
|
|
559
559
|
dispose: () => {
|
|
560
560
|
e || (e = !0, t.unsubscribe());
|
|
561
561
|
}
|
|
562
|
-
} :
|
|
562
|
+
} : $s(t) ? {
|
|
563
563
|
dispose: () => {
|
|
564
564
|
e || (e = !0, t.dispose());
|
|
565
565
|
}
|
|
@@ -569,12 +569,12 @@ function w(t) {
|
|
|
569
569
|
}
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return
|
|
572
|
+
function to(t) {
|
|
573
|
+
return S(() => {
|
|
574
574
|
t.unsubscribe();
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
-
class
|
|
577
|
+
class Bs {
|
|
578
578
|
constructor() {
|
|
579
579
|
d(this, "_disposables", /* @__PURE__ */ new Set());
|
|
580
580
|
}
|
|
@@ -591,10 +591,10 @@ class Ws {
|
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
class
|
|
594
|
+
class P {
|
|
595
595
|
constructor() {
|
|
596
596
|
d(this, "_disposed", !1);
|
|
597
|
-
d(this, "_collection", new
|
|
597
|
+
d(this, "_collection", new Bs());
|
|
598
598
|
}
|
|
599
599
|
disposeWithMe(e) {
|
|
600
600
|
return this._collection.add(e);
|
|
@@ -603,20 +603,20 @@ class T {
|
|
|
603
603
|
this._disposed || (this._disposed = !0, this._collection.dispose());
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
class
|
|
606
|
+
class eo extends P {
|
|
607
607
|
constructor() {
|
|
608
608
|
super(...arguments);
|
|
609
|
-
d(this, "dispose$", new
|
|
609
|
+
d(this, "dispose$", new D());
|
|
610
610
|
}
|
|
611
611
|
dispose() {
|
|
612
612
|
super.dispose(), this.dispose$.next(), this.dispose$.complete();
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
const
|
|
616
|
-
class
|
|
615
|
+
const Et = G("univer.context-service");
|
|
616
|
+
class Ws extends P {
|
|
617
617
|
constructor() {
|
|
618
618
|
super(...arguments);
|
|
619
|
-
d(this, "_contextChanged$", new
|
|
619
|
+
d(this, "_contextChanged$", new D());
|
|
620
620
|
d(this, "contextChanged$", this._contextChanged$.asObservable());
|
|
621
621
|
d(this, "_contextMap", /* @__PURE__ */ new Map());
|
|
622
622
|
}
|
|
@@ -641,8 +641,8 @@ 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
|
|
645
|
-
class ks extends
|
|
644
|
+
const ct = G("univer.log");
|
|
645
|
+
class ks extends P {
|
|
646
646
|
constructor() {
|
|
647
647
|
super(...arguments);
|
|
648
648
|
d(this, "_logLevel", 0);
|
|
@@ -667,8 +667,8 @@ 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
|
-
},
|
|
671
|
-
const
|
|
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
|
+
const Bt = G("anywhere.command-service");
|
|
672
672
|
class Ys {
|
|
673
673
|
constructor() {
|
|
674
674
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -677,7 +677,7 @@ class Ys {
|
|
|
677
677
|
registerCommand(e) {
|
|
678
678
|
if (this._commands.has(e.id))
|
|
679
679
|
throw new Error(`Command ${e.id} has registered before!`);
|
|
680
|
-
return this._commands.set(e.id, e),
|
|
680
|
+
return this._commands.set(e.id, e), S(() => {
|
|
681
681
|
var s;
|
|
682
682
|
this._commands.delete(e.id), (s = e.onDispose) == null || s.call(e);
|
|
683
683
|
});
|
|
@@ -704,7 +704,7 @@ let yt = class {
|
|
|
704
704
|
}
|
|
705
705
|
beforeCommandExecuted(t) {
|
|
706
706
|
if (this._beforeCommandExecutionListeners.indexOf(t) === -1)
|
|
707
|
-
return this._beforeCommandExecutionListeners.push(t),
|
|
707
|
+
return this._beforeCommandExecutionListeners.push(t), S(() => {
|
|
708
708
|
const e = this._beforeCommandExecutionListeners.indexOf(t);
|
|
709
709
|
this._beforeCommandExecutionListeners.splice(e, 1);
|
|
710
710
|
});
|
|
@@ -712,7 +712,7 @@ let yt = class {
|
|
|
712
712
|
}
|
|
713
713
|
onCommandExecuted(t) {
|
|
714
714
|
if (this._commandExecutedListeners.indexOf(t) === -1)
|
|
715
|
-
return this._commandExecutedListeners.push(t),
|
|
715
|
+
return this._commandExecutedListeners.push(t), S(() => {
|
|
716
716
|
const e = this._commandExecutedListeners.indexOf(t);
|
|
717
717
|
this._commandExecutedListeners.splice(e, 1);
|
|
718
718
|
});
|
|
@@ -730,7 +730,7 @@ let yt = class {
|
|
|
730
730
|
const a = await this._execute(r, e);
|
|
731
731
|
return this._commandExecutedListeners.forEach((c) => c(i, s)), o.dispose(), a;
|
|
732
732
|
}
|
|
733
|
-
throw new Error(`[CommandService]:
|
|
733
|
+
throw new Error(`[CommandService]: command "${t}" is not registered.`);
|
|
734
734
|
}
|
|
735
735
|
syncExecuteCommand(t, e, s) {
|
|
736
736
|
const n = this._commandRegistry.getCommand(t);
|
|
@@ -741,20 +741,22 @@ let yt = class {
|
|
|
741
741
|
params: e
|
|
742
742
|
};
|
|
743
743
|
if (r.type === 2) {
|
|
744
|
-
const c =
|
|
744
|
+
const c = Ps(
|
|
745
745
|
this._commandExecutionStack,
|
|
746
746
|
(l) => l.type === 0
|
|
747
747
|
/* COMMAND */
|
|
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
|
-
throw new Error(`[CommandService]:
|
|
756
|
+
throw new Error(`[CommandService]: command "${t}" is not registered.`);
|
|
755
757
|
}
|
|
756
758
|
_pushCommandExecutionStack(t) {
|
|
757
|
-
return this._commandExecutionStack.push(t),
|
|
759
|
+
return this._commandExecutionStack.push(t), S(() => it(this._commandExecutionStack, t));
|
|
758
760
|
}
|
|
759
761
|
_registerCommand(t) {
|
|
760
762
|
return this._commandRegistry.registerCommand(t);
|
|
@@ -770,7 +772,7 @@ let yt = class {
|
|
|
770
772
|
s = e[0];
|
|
771
773
|
}
|
|
772
774
|
const n = s.registerImplementation(t);
|
|
773
|
-
return
|
|
775
|
+
return S(() => {
|
|
774
776
|
var r;
|
|
775
777
|
n.dispose(), s.hasImplementations() || (r = this._multiCommandDisposables.get(t.id)) == null || r.dispose();
|
|
776
778
|
});
|
|
@@ -805,8 +807,8 @@ 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) {
|
|
@@ -818,7 +820,7 @@ class Ks {
|
|
|
818
820
|
d(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)))
|
|
@@ -830,7 +832,7 @@ class Ks {
|
|
|
830
832
|
}
|
|
831
833
|
registerImplementation(e) {
|
|
832
834
|
const s = { command: e };
|
|
833
|
-
return this._implementations.push(s), this._implementations.sort((n, r) => r.command.priority - n.command.priority),
|
|
835
|
+
return this._implementations.push(s), this._implementations.sort((n, r) => r.command.priority - n.command.priority), S(() => {
|
|
834
836
|
var r;
|
|
835
837
|
const n = this._implementations.indexOf(s);
|
|
836
838
|
this._implementations.splice(n, 1), (r = e.onDispose) == null || r.call(e);
|
|
@@ -842,11 +844,11 @@ class Ks {
|
|
|
842
844
|
}
|
|
843
845
|
function Qe(t, e, s) {
|
|
844
846
|
const n = t.map((r) => () => e.syncExecuteCommand(r.id, r.params, s));
|
|
845
|
-
return
|
|
847
|
+
return Ts(n);
|
|
846
848
|
}
|
|
847
|
-
function
|
|
849
|
+
function so(t, e, s) {
|
|
848
850
|
const n = t.map((r) => () => e.executeCommand(r.id, r.params, s));
|
|
849
|
-
return
|
|
851
|
+
return xs(n);
|
|
850
852
|
}
|
|
851
853
|
const Xs = G("univer.config-service");
|
|
852
854
|
class Qs {
|
|
@@ -864,10 +866,10 @@ class Qs {
|
|
|
864
866
|
this._config.delete(e);
|
|
865
867
|
}
|
|
866
868
|
}
|
|
867
|
-
class Zs extends
|
|
869
|
+
class Zs extends P {
|
|
868
870
|
constructor() {
|
|
869
871
|
super(...arguments);
|
|
870
|
-
d(this, "_error$", new
|
|
872
|
+
d(this, "_error$", new D());
|
|
871
873
|
d(this, "error$", this._error$.asObservable());
|
|
872
874
|
}
|
|
873
875
|
dispose() {
|
|
@@ -877,28 +879,28 @@ class Zs extends T {
|
|
|
877
879
|
this._error$.next({ errorKey: s });
|
|
878
880
|
}
|
|
879
881
|
}
|
|
880
|
-
const
|
|
881
|
-
class
|
|
882
|
+
const no = "__default_document_sub_component_id20231101__";
|
|
883
|
+
class qs {
|
|
882
884
|
constructor() {
|
|
883
885
|
d(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
|
-
d(this, "_remove$", new
|
|
890
|
+
d(this, "_remove$", new D());
|
|
889
891
|
d(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
|
-
d(this, "_andOrUpdate$", new
|
|
896
|
+
d(this, "_andOrUpdate$", new D());
|
|
895
897
|
d(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
|
-
d(this, "_pluginUpdate$", new
|
|
903
|
+
d(this, "_pluginUpdate$", new D());
|
|
902
904
|
d(this, "pluginUpdate$", this._pluginUpdate$.asObservable());
|
|
903
905
|
}
|
|
904
906
|
getFloatObject(e) {
|
|
@@ -967,7 +969,7 @@ 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 {
|
|
@@ -1014,16 +1016,16 @@ function en(t, e) {
|
|
|
1014
1016
|
}
|
|
1015
1017
|
return i;
|
|
1016
1018
|
}
|
|
1017
|
-
function
|
|
1019
|
+
function ro(t, e) {
|
|
1018
1020
|
let s = t.length - 1;
|
|
1019
|
-
return e < t[0] ?
|
|
1021
|
+
return e < 0 ? -1 : e < t[0] ? 0 : 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 io(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 || {}),
|
|
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 || {}), W = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(W || {}), 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 oo(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 || {}), 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 || {}), Re = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(Re || {}), _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 || {}), Tt = /* @__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))(Tt || {}), 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 || {}), _t = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(_t || {}), 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
1059
|
d(this, "_themeValue", F.LIGHT1);
|
|
1058
1060
|
d(this, "_themeColors");
|
|
1059
1061
|
d(this, "_themeTint");
|
|
1060
1062
|
d(this, "_rgbValue", "");
|
|
1061
1063
|
d(this, "_colorType");
|
|
1062
|
-
this._colorType =
|
|
1064
|
+
this._colorType = W.UNSUPPORTED, this._themeColors = me.OFFICE, this._themeTint = 0;
|
|
1063
1065
|
}
|
|
1064
1066
|
asRgbColor() {
|
|
1065
1067
|
return new ne(this._rgbValue, this);
|
|
@@ -1069,31 +1071,31 @@ class me {
|
|
|
1069
1071
|
}
|
|
1070
1072
|
build() {
|
|
1071
1073
|
switch (this._colorType) {
|
|
1072
|
-
case
|
|
1074
|
+
case W.THEME:
|
|
1073
1075
|
return this.asThemeColor();
|
|
1074
|
-
case
|
|
1076
|
+
case W.RGB:
|
|
1075
1077
|
return this.asRgbColor();
|
|
1076
|
-
case
|
|
1078
|
+
case W.UNSUPPORTED:
|
|
1077
1079
|
throw Error("unsupported color type");
|
|
1078
1080
|
}
|
|
1079
1081
|
}
|
|
1080
1082
|
setRgbColor(e) {
|
|
1081
|
-
return this._colorType =
|
|
1083
|
+
return this._colorType = W.RGB, this._rgbValue = e, this;
|
|
1082
1084
|
}
|
|
1083
1085
|
setThemeColors(e) {
|
|
1084
|
-
this._colorType =
|
|
1086
|
+
this._colorType = W.THEME, this._themeColors = e;
|
|
1085
1087
|
}
|
|
1086
1088
|
setThemeTint(e) {
|
|
1087
|
-
this._colorType =
|
|
1089
|
+
this._colorType = W.THEME, this._themeTint = e;
|
|
1088
1090
|
}
|
|
1089
1091
|
setThemeColor(e) {
|
|
1090
|
-
return this._colorType =
|
|
1092
|
+
return this._colorType = W.THEME, this._themeValue = e, this;
|
|
1091
1093
|
}
|
|
1092
1094
|
getColorType() {
|
|
1093
1095
|
return this._colorType;
|
|
1094
1096
|
}
|
|
1095
1097
|
}
|
|
1096
|
-
class
|
|
1098
|
+
class ht {
|
|
1097
1099
|
constructor(e) {
|
|
1098
1100
|
d(this, "_builder");
|
|
1099
1101
|
this._builder = 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;
|
|
@@ -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,7 +1182,7 @@ class mn {
|
|
|
1180
1182
|
this._lightness = e;
|
|
1181
1183
|
}
|
|
1182
1184
|
}
|
|
1183
|
-
const
|
|
1185
|
+
const $ = class $ extends ht {
|
|
1184
1186
|
constructor(s, n) {
|
|
1185
1187
|
super(n);
|
|
1186
1188
|
d(this, "_cssString");
|
|
@@ -1188,13 +1190,13 @@ const B = class B extends ct {
|
|
|
1188
1190
|
d(this, "_green");
|
|
1189
1191
|
d(this, "_blue");
|
|
1190
1192
|
d(this, "_alpha");
|
|
1191
|
-
let r = s.match(
|
|
1193
|
+
let r = s.match($.RGBA_EXTRACT);
|
|
1192
1194
|
if (r) {
|
|
1193
1195
|
const i = +r[1], o = +r[2], a = +r[3], c = +r[4];
|
|
1194
1196
|
this._cssString = s, this._red = i, this._green = o, this._blue = a, this._alpha = c;
|
|
1195
1197
|
return;
|
|
1196
1198
|
}
|
|
1197
|
-
if (r = s.match(
|
|
1199
|
+
if (r = s.match($.RGB_EXTRACT), r) {
|
|
1198
1200
|
const i = +r[1], o = +r[2], a = +r[3];
|
|
1199
1201
|
this._cssString = s, this._red = i, this._green = o, this._blue = a, this._alpha = 1;
|
|
1200
1202
|
return;
|
|
@@ -1202,44 +1204,44 @@ 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
|
-
let s = this._red +
|
|
1210
|
+
let s = this._red + $.RGB_COLOR_AMT;
|
|
1209
1211
|
return s > 255 ? s = 255 : s < 0 && (s = 0), s;
|
|
1210
1212
|
}
|
|
1211
1213
|
getGreen() {
|
|
1212
|
-
let s = this._green +
|
|
1214
|
+
let s = this._green + $.RGB_COLOR_AMT;
|
|
1213
1215
|
return s > 255 ? s = 255 : s < 0 && (s = 0), s;
|
|
1214
1216
|
}
|
|
1215
1217
|
getBlue() {
|
|
1216
|
-
let s = this._blue +
|
|
1218
|
+
let s = this._blue + $.RGB_COLOR_AMT;
|
|
1217
1219
|
return s > 255 ? s = 255 : s < 0 && (s = 0), s;
|
|
1218
1220
|
}
|
|
1219
1221
|
getAlpha() {
|
|
1220
1222
|
return this._alpha;
|
|
1221
1223
|
}
|
|
1222
1224
|
getColorType() {
|
|
1223
|
-
return
|
|
1225
|
+
return W.RGB;
|
|
1224
1226
|
}
|
|
1225
1227
|
clone() {
|
|
1226
|
-
return new
|
|
1228
|
+
return new $(this._cssString, this._builder);
|
|
1227
1229
|
}
|
|
1228
1230
|
asThemeColor() {
|
|
1229
1231
|
throw new Error("rgb color not support to themeColor");
|
|
1230
1232
|
}
|
|
1231
1233
|
equals(s) {
|
|
1232
|
-
return s instanceof
|
|
1234
|
+
return s instanceof $ ? s._red === this._red && s._blue === this._blue && s._green === this._green && s._alpha === this._alpha : !1;
|
|
1233
1235
|
}
|
|
1234
1236
|
getCssString() {
|
|
1235
1237
|
return this._cssString;
|
|
1236
1238
|
}
|
|
1237
1239
|
};
|
|
1238
|
-
d(
|
|
1240
|
+
d($, "RGB_COLOR_AMT", 0), d($, "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
|
-
)), d(
|
|
1241
|
-
let ne =
|
|
1242
|
-
const tt = class tt extends
|
|
1242
|
+
)), d($, "RGB_EXTRACT", new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));
|
|
1243
|
+
let ne = $;
|
|
1244
|
+
const tt = class tt extends ht {
|
|
1243
1245
|
constructor(s, n, r, i) {
|
|
1244
1246
|
super(i);
|
|
1245
1247
|
d(this, "_themeColorType");
|
|
@@ -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;
|
|
@@ -1278,7 +1280,7 @@ const tt = class tt extends ct {
|
|
|
1278
1280
|
return s instanceof tt ? s._themeColorType === this._themeColorType : !1;
|
|
1279
1281
|
}
|
|
1280
1282
|
getColorType() {
|
|
1281
|
-
return
|
|
1283
|
+
return W.THEME;
|
|
1282
1284
|
}
|
|
1283
1285
|
getThemeColorType() {
|
|
1284
1286
|
return this._themeColorType;
|
|
@@ -1286,7 +1288,7 @@ const tt = class tt extends ct {
|
|
|
1286
1288
|
};
|
|
1287
1289
|
d(tt, "_cacheThemeColor", /* @__PURE__ */ new Map());
|
|
1288
1290
|
let re = tt;
|
|
1289
|
-
const
|
|
1291
|
+
const ao = "rgb(", lo = "rgba(", Pe = {
|
|
1290
1292
|
aliceBlue: [240, 248, 255],
|
|
1291
1293
|
antiqueWhite: [250, 235, 215],
|
|
1292
1294
|
aqua: [0, 255, 255],
|
|
@@ -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;
|
|
@@ -1503,7 +1505,7 @@ class k {
|
|
|
1503
1505
|
return Ln(this.toRgb());
|
|
1504
1506
|
}
|
|
1505
1507
|
toHsl() {
|
|
1506
|
-
return
|
|
1508
|
+
return Sn(this.toRgb());
|
|
1507
1509
|
}
|
|
1508
1510
|
lighten(e = 10) {
|
|
1509
1511
|
const s = this.toHsl();
|
|
@@ -1547,8 +1549,8 @@ 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),
|
|
1551
|
-
if (
|
|
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) => {
|
|
1553
|
+
if (Mn(t)) {
|
|
1552
1554
|
if ("r" in t) {
|
|
1553
1555
|
const n = {
|
|
1554
1556
|
r: Math.round(t.r),
|
|
@@ -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 (Pe[e]) {
|
|
1579
|
+
const s = Pe[e], n = {
|
|
1578
1580
|
r: Math.round(s[0]),
|
|
1579
1581
|
g: Math.round(s[1]),
|
|
1580
1582
|
b: Math.round(s[2])
|
|
@@ -1641,10 +1643,10 @@ 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
|
-
return "r" in e ? e : "l" in e ?
|
|
1647
|
-
}, 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),
|
|
1648
|
+
return "r" in e ? e : "l" in e ? bn(e) : wn(e);
|
|
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), bn = (t) => {
|
|
1648
1650
|
let { h: e, s, l: n } = t;
|
|
1649
1651
|
e /= 360, s /= 100, n /= 100;
|
|
1650
1652
|
let r = 0, i = 0, o = 0;
|
|
@@ -1660,7 +1662,7 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
|
|
|
1660
1662
|
b: Math.round(o * 255)
|
|
1661
1663
|
};
|
|
1662
1664
|
return t.a !== void 0 && (a.a = t.a), a;
|
|
1663
|
-
},
|
|
1665
|
+
}, wn = (t) => {
|
|
1664
1666
|
let { h: e, s, v: n } = t;
|
|
1665
1667
|
e = e / 360 * 6, s /= 100, n /= 100;
|
|
1666
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], _ = {
|
|
@@ -1669,7 +1671,7 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
|
|
|
1669
1671
|
b: f * 255
|
|
1670
1672
|
};
|
|
1671
1673
|
return t.a !== void 0 && (_.a = t.a), _;
|
|
1672
|
-
},
|
|
1674
|
+
}, Sn = (t) => {
|
|
1673
1675
|
let { r: e, g: s, b: n } = t;
|
|
1674
1676
|
e /= 255, s /= 255, n /= 255;
|
|
1675
1677
|
const r = Math.max(e, s, n), i = Math.min(e, s, n), o = (r + i) / 2;
|
|
@@ -1725,10 +1727,10 @@ const Ct = (t) => t.length === 1 ? `0${t}` : t, Vt = (t) => (t /= 255, t <= 0.03
|
|
|
1725
1727
|
v: Math.round(a * 100)
|
|
1726
1728
|
};
|
|
1727
1729
|
return t.a !== void 0 && (u.a = t.a), u;
|
|
1728
|
-
}, vn = (t) => t == null,
|
|
1729
|
-
var
|
|
1730
|
-
let
|
|
1731
|
-
const Un = /^-ms-/,
|
|
1730
|
+
}, vn = (t) => t == null, Mn = (t) => !vn(t) && typeof t == "object";
|
|
1731
|
+
var T = /* @__PURE__ */ ((t) => (t[t.COVER = 0] = "COVER", t[t.REPLACE = 1] = "REPLACE", t[t.INTERSECTION = 2] = "INTERSECTION", t))(T || {});
|
|
1732
|
+
let Dn = (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), "");
|
|
1733
|
+
const Un = /^-ms-/, Pn = /-([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
|
}
|
|
@@ -1811,7 +1813,7 @@ class m {
|
|
|
1811
1813
|
return o ? "FF" : s ? "Opera" : a ? "Safari" : c ? "Chrome" : i ? "Edge" : r ? "IE11" : "Unknown browser";
|
|
1812
1814
|
}
|
|
1813
1815
|
static generateRandomId(e = 21) {
|
|
1814
|
-
return
|
|
1816
|
+
return Dn(e);
|
|
1815
1817
|
}
|
|
1816
1818
|
static getClassName(e) {
|
|
1817
1819
|
return e.constructor.name;
|
|
@@ -2011,7 +2013,7 @@ class m {
|
|
|
2011
2013
|
// Support: IE <=9 - 11, Edge 12 - 15
|
|
2012
2014
|
// Microsoft forgot to hump their vendor prefix (#9572)
|
|
2013
2015
|
static camelCase(e) {
|
|
2014
|
-
return e.replace(Un, "ms-").replace(
|
|
2016
|
+
return e.replace(Un, "ms-").replace(Pn, this.fCamelCase);
|
|
2015
2017
|
}
|
|
2016
2018
|
/**
|
|
2017
2019
|
* remove all null from object
|
|
@@ -2130,7 +2132,7 @@ class m {
|
|
|
2130
2132
|
return s >= n && r >= e;
|
|
2131
2133
|
}
|
|
2132
2134
|
}
|
|
2133
|
-
function
|
|
2135
|
+
function uo(t) {
|
|
2134
2136
|
if (!t)
|
|
2135
2137
|
return;
|
|
2136
2138
|
const { actualRow: e, actualColumn: s, isMerged: n, isMergedMainCell: r, mergeInfo: i } = t;
|
|
@@ -2142,11 +2144,11 @@ function ho(t) {
|
|
|
2142
2144
|
endRow: R,
|
|
2143
2145
|
endColumn: O,
|
|
2144
2146
|
startY: A,
|
|
2145
|
-
endY:
|
|
2147
|
+
endY: b,
|
|
2146
2148
|
startX: p,
|
|
2147
|
-
endX:
|
|
2149
|
+
endX: x
|
|
2148
2150
|
} = i;
|
|
2149
|
-
u = g, h = E, f = R, _ = O, o = A, a =
|
|
2151
|
+
u = g, h = E, f = R, _ = O, o = A, a = b, c = p, l = x;
|
|
2150
2152
|
}
|
|
2151
2153
|
return r && (o = i.startY, a = i.endY, c = i.startX, l = i.endX, f = i.endRow, _ = i.endColumn), {
|
|
2152
2154
|
startRow: u,
|
|
@@ -2159,7 +2161,7 @@ function ho(t) {
|
|
|
2159
2161
|
endX: l
|
|
2160
2162
|
};
|
|
2161
2163
|
}
|
|
2162
|
-
function
|
|
2164
|
+
function co(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 ho(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 _o(t) {
|
|
2197
2199
|
return m.isString(t) && t.substring(0, 1) === "=" && t.length > 1;
|
|
2198
2200
|
}
|
|
2199
|
-
function
|
|
2201
|
+
function fo(t) {
|
|
2200
2202
|
return m.isString(t) && t.indexOf("=") === -1 && t.length === 6;
|
|
2201
2203
|
}
|
|
2202
|
-
function
|
|
2204
|
+
function go(t) {
|
|
2203
2205
|
return "";
|
|
2204
2206
|
}
|
|
2205
|
-
function
|
|
2207
|
+
function Eo(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
2268
|
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)} ${
|
|
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((_ = t.bd) == null ? void 0 : _.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
|
[
|
|
@@ -2282,7 +2284,7 @@ function mo(t, e = !1) {
|
|
|
2282
2284
|
[
|
|
2283
2285
|
"td",
|
|
2284
2286
|
() => {
|
|
2285
|
-
t.td ===
|
|
2287
|
+
t.td === Tt.LEFT_TO_RIGHT ? s += "direction: ltr; " : t.td === Tt.RIGHT_TO_LEFT && (s += "direction: rtl; ");
|
|
2286
2288
|
}
|
|
2287
2289
|
],
|
|
2288
2290
|
[
|
|
@@ -2301,13 +2303,13 @@ function mo(t, e = !1) {
|
|
|
2301
2303
|
[
|
|
2302
2304
|
"vt",
|
|
2303
2305
|
() => {
|
|
2304
|
-
t.vt ===
|
|
2306
|
+
t.vt === _t.BOTTOM ? s += "vertical-align: bottom; " : t.vt === _t.TOP ? s += "vertical-align: top; " : t.vt === _t.MIDDLE && (s += "vertical-align: middle; ");
|
|
2305
2307
|
}
|
|
2306
2308
|
],
|
|
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
|
[
|
|
@@ -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 Ro(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 mo(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
|
-
function
|
|
2371
|
+
function xn(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,19 +2380,19 @@ 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 Oo(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 Ao(t) {
|
|
2388
2390
|
if (t == null)
|
|
2389
2391
|
return !1;
|
|
2390
2392
|
const e = t.paragraphStyle;
|
|
2391
|
-
return
|
|
2393
|
+
return Tn(e);
|
|
2392
2394
|
}
|
|
2393
|
-
function
|
|
2395
|
+
function Tn(t) {
|
|
2394
2396
|
return !(t == null || (t.indentStart == null || t.indentStart === 0) && t.hanging == null || t.hanging === 0);
|
|
2395
2397
|
}
|
|
2396
2398
|
function Fn(t, e, s) {
|
|
@@ -2399,30 +2401,8 @@ function Fn(t, e, s) {
|
|
|
2399
2401
|
function pn(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 Hn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2405
|
+
function $n(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
|
+
})(Hn, function() {
|
|
2440
2420
|
var e, s, n = "2.0.6", r = {}, i = {}, o = {
|
|
2441
2421
|
currentLocale: "en",
|
|
2442
2422
|
zeroFormat: null,
|
|
@@ -2482,9 +2462,9 @@ 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], _ = !1, g = !1, E = 0, R = "", O = 1e12, A = 1e9,
|
|
2486
|
-
if (l = l || 0,
|
|
2487
|
-
switch (
|
|
2465
|
+
var f = i[e.options.currentLocale], _ = !1, g = !1, E = 0, R = "", O = 1e12, A = 1e9, b = 1e6, p = 1e3, x = "", at = !1, H, q, M, B, Gt, be, z;
|
|
2466
|
+
if (l = l || 0, q = Math.abs(l), e._.includes(u, "(") ? (_ = !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") && (H = u.match(/a(k|m|b|t)?/), H = H ? H[1] : !1, e._.includes(u, " a") && (R = " "), u = u.replace(new RegExp(R + "a[kmbt]?"), ""), q >= O && !H || H === "t" ? (R += f.abbreviations.trillion, l = l / O) : q < O && q >= A && !H || H === "b" ? (R += f.abbreviations.billion, l = l / A) : q < A && q >= b && !H || H === "m" ? (R += f.abbreviations.million, l = l / b) : (q < b && q >= p && !H || H === "k") && (R += f.abbreviations.thousand, l = l / p)), e._.includes(u, "[.]") && (g = !0, u = u.replace("[.]", ".")), M = l.toString().split(".")[0], B = u.split(".")[1], be = u.indexOf(","), E = (u.split(".")[0].split(",")[0].match(/0/g) || []).length, B ? (e._.includes(B, "[") ? (B = B.replace("]", ""), B = B.split("["), x = e._.toFixed(l, B[0].length + B[1].length, h, B[1].length)) : x = e._.toFixed(l, B.length, h), M = x.split(".")[0], e._.includes(x, ".") ? x = f.delimiters.decimal + x.split(".")[1] : x = "", g && Number(x.slice(1)) === 0 && (x = "")) : M = e._.toFixed(l, 0, h), R && !H && Number(M) >= 1e3 && R !== f.abbreviations.trillion)
|
|
2467
|
+
switch (M = String(Number(M) / 1e3), R) {
|
|
2488
2468
|
case f.abbreviations.thousand:
|
|
2489
2469
|
R = f.abbreviations.million;
|
|
2490
2470
|
break;
|
|
@@ -2495,10 +2475,10 @@ var ts = { exports: {} };
|
|
|
2495
2475
|
R = f.abbreviations.trillion;
|
|
2496
2476
|
break;
|
|
2497
2477
|
}
|
|
2498
|
-
if (e._.includes(
|
|
2499
|
-
for (var
|
|
2500
|
-
|
|
2501
|
-
return
|
|
2478
|
+
if (e._.includes(M, "-") && (M = M.slice(1), at = !0), M.length < E)
|
|
2479
|
+
for (var we = E - M.length; we > 0; we--)
|
|
2480
|
+
M = "0" + M;
|
|
2481
|
+
return be > -1 && (M = M.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), u.indexOf(".") === 0 && (M = ""), z = M + x + (R || ""), _ ? z = (_ && at ? "(" : "") + z + (_ && 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) {
|
|
@@ -2723,10 +2703,10 @@ var ts = { exports: {} };
|
|
|
2723
2703
|
unformat: new RegExp(f)
|
|
2724
2704
|
},
|
|
2725
2705
|
format: function(_, g, E) {
|
|
2726
|
-
var R, O = e._.includes(g, "ib") ? u : l, A = e._.includes(g, " b") || e._.includes(g, " ib") ? " " : "",
|
|
2727
|
-
for (g = g.replace(/\s?i?b/, ""),
|
|
2728
|
-
if (p = Math.pow(O.base,
|
|
2729
|
-
A += O.suffixes[
|
|
2706
|
+
var R, O = e._.includes(g, "ib") ? u : l, A = e._.includes(g, " b") || e._.includes(g, " ib") ? " " : "", b, p, x;
|
|
2707
|
+
for (g = g.replace(/\s?i?b/, ""), b = 0; b <= O.suffixes.length; b++)
|
|
2708
|
+
if (p = Math.pow(O.base, b), x = Math.pow(O.base, b + 1), _ === null || _ === 0 || _ >= p && _ < x) {
|
|
2709
|
+
A += O.suffixes[b], p > 0 && (_ = _ / p);
|
|
2730
2710
|
break;
|
|
2731
2711
|
}
|
|
2732
2712
|
return R = e._.numberToFormat(_, g, E), R + A;
|
|
@@ -2794,8 +2774,8 @@ var ts = { exports: {} };
|
|
|
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
2776
|
function _(g, E, R, O) {
|
|
2797
|
-
var A = e._.correctionFactor(g, E),
|
|
2798
|
-
return
|
|
2777
|
+
var A = e._.correctionFactor(g, E), b = g * A * (E * A) / (A * A);
|
|
2778
|
+
return b;
|
|
2799
2779
|
}
|
|
2800
2780
|
return e._.reduce([h, Math.pow(10, f)], _, 1);
|
|
2801
2781
|
}
|
|
@@ -2843,8 +2823,8 @@ var ts = { exports: {} };
|
|
|
2843
2823
|
}(), e;
|
|
2844
2824
|
});
|
|
2845
2825
|
})(ts);
|
|
2846
|
-
var
|
|
2847
|
-
const
|
|
2826
|
+
var Bn = ts.exports;
|
|
2827
|
+
const nt = /* @__PURE__ */ $n(Bn), xe = {
|
|
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 Wn(t) {
|
|
2866
2846
|
let e = !1;
|
|
2867
|
-
for (const s in
|
|
2868
|
-
if (t ===
|
|
2847
|
+
for (const s in xe)
|
|
2848
|
+
if (t === xe[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 Io(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 (Wn(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,27 +2974,27 @@ 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
|
+
}, Co = (t, e) => {
|
|
3010
2990
|
};
|
|
3011
|
-
function
|
|
2991
|
+
function No(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;
|
|
3015
2995
|
return e >>> 0;
|
|
3016
2996
|
}
|
|
3017
|
-
class
|
|
2997
|
+
class bt {
|
|
3018
2998
|
static hasLength(e, s) {
|
|
3019
2999
|
return e.length === s;
|
|
3020
3000
|
}
|
|
@@ -3032,7 +3012,7 @@ 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
|
d(this, "entry");
|
|
3038
3018
|
this.entry = e;
|
|
@@ -3045,7 +3025,7 @@ 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
|
d(this, "entry");
|
|
3051
3031
|
this.entry = e;
|
|
@@ -3058,7 +3038,7 @@ 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
|
d(this, "entry");
|
|
3064
3044
|
this.entry = e;
|
|
@@ -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 Ki, Xi;
|
|
3055
|
+
class Te {
|
|
3076
3056
|
constructor(e, s) {
|
|
3077
3057
|
d(this, "key");
|
|
3078
3058
|
d(this, "value");
|
|
3079
|
-
d(this,
|
|
3080
|
-
d(this,
|
|
3059
|
+
d(this, Ki);
|
|
3060
|
+
d(this, Xi);
|
|
3081
3061
|
this.key = e, this.value = s, this[C] = void 0, this[v] = void 0;
|
|
3082
3062
|
}
|
|
3083
3063
|
toJSON() {
|
|
@@ -3087,8 +3067,8 @@ class Pe {
|
|
|
3087
3067
|
};
|
|
3088
3068
|
}
|
|
3089
3069
|
}
|
|
3090
|
-
|
|
3091
|
-
class
|
|
3070
|
+
Ki = C, Xi = v;
|
|
3071
|
+
class Qn {
|
|
3092
3072
|
constructor(...e) {
|
|
3093
3073
|
d(this, "_keymap");
|
|
3094
3074
|
d(this, "size", 0);
|
|
@@ -3096,27 +3076,27 @@ class Zn {
|
|
|
3096
3076
|
d(this, "oldest");
|
|
3097
3077
|
d(this, "newest");
|
|
3098
3078
|
d(this, "_onShiftListeners", []);
|
|
3099
|
-
if (
|
|
3100
|
-
if (
|
|
3079
|
+
if (bt.hasLength(e, 1)) {
|
|
3080
|
+
if (bt.isNumber(e[0])) {
|
|
3101
3081
|
const s = e[0];
|
|
3102
3082
|
this._initialize(s, void 0);
|
|
3103
3083
|
return;
|
|
3104
3084
|
}
|
|
3105
|
-
if (
|
|
3085
|
+
if (bt.isIterable(e[0])) {
|
|
3106
3086
|
const s = e[0];
|
|
3107
3087
|
this._initialize(0, s);
|
|
3108
3088
|
return;
|
|
3109
3089
|
}
|
|
3110
3090
|
return;
|
|
3111
3091
|
}
|
|
3112
|
-
if (
|
|
3092
|
+
if (bt.hasLength(e, 2)) {
|
|
3113
3093
|
const s = e[0], n = e[1];
|
|
3114
3094
|
this._initialize(s, n);
|
|
3115
3095
|
}
|
|
3116
3096
|
}
|
|
3117
3097
|
onShift(e) {
|
|
3118
3098
|
if (this._onShiftListeners.indexOf(e) === -1)
|
|
3119
|
-
return this._onShiftListeners.push(e),
|
|
3099
|
+
return this._onShiftListeners.push(e), S(() => 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 Te(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 Te(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,13 +3186,25 @@ 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
|
}
|
|
3215
|
-
function
|
|
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
|
+
}
|
|
3207
|
+
function So(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;
|
|
3218
3210
|
for (let u = 0; u < r; u++, l++) {
|
|
@@ -3225,9 +3217,9 @@ function Lo(t, e) {
|
|
|
3225
3217
|
}
|
|
3226
3218
|
return c;
|
|
3227
3219
|
}
|
|
3228
|
-
function
|
|
3220
|
+
function Lo(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
|
d(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,19 +3526,19 @@ 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
|
d(this, "status", "init");
|
|
3540
3532
|
}
|
|
3541
3533
|
}
|
|
3542
|
-
const
|
|
3534
|
+
const vo = (t) => t.some(
|
|
3543
3535
|
(e) => e.status === "init"
|
|
3544
3536
|
/* INIT */
|
|
3545
3537
|
) ? "init" : 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,7 +3553,7 @@ 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
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), _ = Math.abs(n + r - a - c), g = Math.abs(n - r) + Math.abs(a - c);
|
|
@@ -3591,7 +3583,7 @@ const et = class et {
|
|
|
3591
3583
|
endRow: g,
|
|
3592
3584
|
startColumn: h,
|
|
3593
3585
|
endColumn: _,
|
|
3594
|
-
rangeType:
|
|
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
|
);
|
|
@@ -3677,8 +3669,8 @@ d(et, "getRelativeRange", (e, s) => ({
|
|
|
3677
3669
|
startColumn: e.startColumn + s,
|
|
3678
3670
|
endColumn: e.endColumn + s
|
|
3679
3671
|
}));
|
|
3680
|
-
let
|
|
3681
|
-
class
|
|
3672
|
+
let gt = et;
|
|
3673
|
+
class Do {
|
|
3682
3674
|
constructor(e, s) {
|
|
3683
3675
|
d(this, "_values", []);
|
|
3684
3676
|
d(this, "_keys", []);
|
|
@@ -3738,7 +3730,7 @@ class Uo {
|
|
|
3738
3730
|
this._values = [], this._keys = [], this._keyMaps.clear();
|
|
3739
3731
|
}
|
|
3740
3732
|
}
|
|
3741
|
-
function
|
|
3733
|
+
function pe(t, e, s, n) {
|
|
3742
3734
|
return {
|
|
3743
3735
|
forEach(r) {
|
|
3744
3736
|
for (let i = t; i <= e; i++)
|
|
@@ -3747,7 +3739,7 @@ function Fe(t, e, s, n) {
|
|
|
3747
3739
|
}
|
|
3748
3740
|
};
|
|
3749
3741
|
}
|
|
3750
|
-
function
|
|
3742
|
+
function Uo(t) {
|
|
3751
3743
|
if (t == null || t.length === 0)
|
|
3752
3744
|
return NaN;
|
|
3753
3745
|
const e = t.toLowerCase().split(""), s = e.length, n = (o) => o.charCodeAt(0) - 96;
|
|
@@ -3756,7 +3748,7 @@ 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 pt = 65, ss = 90,
|
|
3751
|
+
const pt = 65, ss = 90, yn = 97;
|
|
3760
3752
|
function Po(t) {
|
|
3761
3753
|
const e = ss - pt + 1;
|
|
3762
3754
|
let s = "";
|
|
@@ -3764,7 +3756,7 @@ function Po(t) {
|
|
|
3764
3756
|
s = String.fromCharCode(t % e + pt) + 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--;
|
|
@@ -3772,21 +3764,21 @@ function er(t, e) {
|
|
|
3772
3764
|
}
|
|
3773
3765
|
function xo(t, e = !1) {
|
|
3774
3766
|
const s = ss - pt + 1;
|
|
3775
|
-
let n =
|
|
3767
|
+
let n = yn;
|
|
3776
3768
|
e && (n = pt);
|
|
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
|
-
function
|
|
3772
|
+
function To(t, e) {
|
|
3781
3773
|
return t.zIndex > e.zIndex ? 1 : t.zIndex === e.zIndex ? 0 : -1;
|
|
3782
3774
|
}
|
|
3783
|
-
function
|
|
3775
|
+
function Fo(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 = [];
|
|
@@ -3799,7 +3791,7 @@ function rs(t) {
|
|
|
3799
3791
|
continue;
|
|
3800
3792
|
}
|
|
3801
3793
|
const i = e.pop();
|
|
3802
|
-
|
|
3794
|
+
xn(s, i) && m.hasIntersectionBetweenTwoRanges(i.st, i.ed, s.st, s.ed) ? e.push({
|
|
3803
3795
|
...s,
|
|
3804
3796
|
st: i.st,
|
|
3805
3797
|
ed: r
|
|
@@ -3851,7 +3843,7 @@ function is(t, e, s, n) {
|
|
|
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;
|
|
@@ -3876,7 +3868,7 @@ function Oe(t, e, s, n) {
|
|
|
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;
|
|
@@ -4085,7 +4077,7 @@ function ds(t, e, s) {
|
|
|
4085
4077
|
}
|
|
4086
4078
|
return o;
|
|
4087
4079
|
}
|
|
4088
|
-
function
|
|
4080
|
+
function rr(t, e, s) {
|
|
4089
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 = ds(t, e, s);
|
|
4090
4082
|
let f = "";
|
|
4091
4083
|
return n && (t.dataStream = pn(n, r, i), f = n.slice(r, i)), {
|
|
@@ -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 || {}), Mt = /* @__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))(Mt || {}), 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 || {}), dr = /* @__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))(dr || {}), _r = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(_r || {}), 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 || {}), br = /* @__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))(br || {}), wr = /* @__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))(wr || {}), Sr = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(Sr || {}), 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 || {}), Mr = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(Mr || {}), Dr = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(Dr || {}), 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,43 +4137,43 @@ 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
|
|
4152
4144
|
},
|
|
4153
4145
|
startNumber: 0,
|
|
4154
|
-
glyphType:
|
|
4146
|
+
glyphType: Mt.DECIMAL,
|
|
4155
4147
|
hanging: 21,
|
|
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
|
|
4163
4155
|
},
|
|
4164
4156
|
startNumber: 0,
|
|
4165
|
-
glyphType:
|
|
4157
|
+
glyphType: Mt.DECIMAL,
|
|
4166
4158
|
hanging: 21,
|
|
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
|
|
4174
4166
|
},
|
|
4175
4167
|
startNumber: 0,
|
|
4176
|
-
glyphType:
|
|
4168
|
+
glyphType: Mt.DECIMAL,
|
|
4177
4169
|
hanging: 21,
|
|
4178
4170
|
indentStart: 63
|
|
4179
4171
|
}
|
|
4180
4172
|
]
|
|
4181
4173
|
}
|
|
4182
4174
|
};
|
|
4183
|
-
function
|
|
4184
|
-
const i = Pr(t, e, s, n, r), o =
|
|
4175
|
+
function Ur(t, e, s, n, r) {
|
|
4176
|
+
const i = Pr(t, e, s, n, r), o = Tr(t, e, s, n, r), a = Fr(t, e, s, n, r), c = pr(t, e, s, n, r), l = Hr(t, e, s, n, r), u = $r(t, e, s, n, r);
|
|
4185
4177
|
return {
|
|
4186
4178
|
dataStream: "",
|
|
4187
4179
|
textRuns: i,
|
|
@@ -4197,7 +4189,7 @@ function Pr(t, e, s, n, r) {
|
|
|
4197
4189
|
if (i == null || o == null)
|
|
4198
4190
|
return;
|
|
4199
4191
|
const a = as(t, s, n);
|
|
4200
|
-
if (r !==
|
|
4192
|
+
if (r !== T.REPLACE) {
|
|
4201
4193
|
const c = xr(o, a, r);
|
|
4202
4194
|
e.textRuns = c;
|
|
4203
4195
|
}
|
|
@@ -4213,35 +4205,35 @@ 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: _, ed: g, ts: E } = t[o], { st: R, ed: O, ts: A, sId:
|
|
4208
|
+
const { st: _, ed: g, ts: E } = t[o], { st: R, ed: O, ts: A, sId: b } = e[a];
|
|
4217
4209
|
let p;
|
|
4218
|
-
s ===
|
|
4210
|
+
s === T.COVER ? p = { ...A, ...E } : p = { ...E, ...A }, g < R ? (l() || n.push(t[o]), o++) : O < _ ? (l() || n.push(e[a]), a++) : (n.push({
|
|
4219
4211
|
st: Math.min(_, R),
|
|
4220
4212
|
ed: Math.max(_, R),
|
|
4221
4213
|
ts: _ < R ? { ...E } : { ...A },
|
|
4222
|
-
sId: _ < R ? void 0 :
|
|
4214
|
+
sId: _ < R ? void 0 : b
|
|
4223
4215
|
}), n.push({
|
|
4224
4216
|
st: Math.max(_, R),
|
|
4225
4217
|
ed: Math.min(g, O),
|
|
4226
4218
|
ts: p,
|
|
4227
|
-
sId:
|
|
4219
|
+
sId: b
|
|
4228
4220
|
}), g < O ? (o++, e[a].st = g) : (a++, t[o].st = O), c = {
|
|
4229
4221
|
st: Math.min(g, O),
|
|
4230
4222
|
ed: Math.max(g, O),
|
|
4231
4223
|
ts: g < O ? { ...A } : { ...E },
|
|
4232
|
-
sId: g < O ?
|
|
4224
|
+
sId: g < O ? b : void 0
|
|
4233
4225
|
});
|
|
4234
4226
|
}
|
|
4235
4227
|
l();
|
|
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 Tr(t, e, s, n, r) {
|
|
4240
4232
|
const { paragraphs: i } = t, { paragraphs: o } = e;
|
|
4241
4233
|
if (i == null || o == null)
|
|
4242
4234
|
return;
|
|
4243
4235
|
const a = ls(t, s, n);
|
|
4244
|
-
if (r !==
|
|
4236
|
+
if (r !== T.REPLACE) {
|
|
4245
4237
|
const c = [];
|
|
4246
4238
|
for (const l of o) {
|
|
4247
4239
|
const {
|
|
@@ -4256,15 +4248,15 @@ function Fr(t, e, s, n, r) {
|
|
|
4256
4248
|
paragraphStyle: R,
|
|
4257
4249
|
bullet: O
|
|
4258
4250
|
} = g;
|
|
4259
|
-
let A,
|
|
4260
|
-
if (r ===
|
|
4251
|
+
let A, b;
|
|
4252
|
+
if (r === T.COVER ? (A = { ...R, ...h }, b = {
|
|
4261
4253
|
listId: "",
|
|
4262
4254
|
listType: ie.BULLET_LIST,
|
|
4263
4255
|
nestingLevel: 0,
|
|
4264
4256
|
textStyle: {},
|
|
4265
4257
|
...O,
|
|
4266
4258
|
...f
|
|
4267
|
-
}) : (A = { ...h, ...R },
|
|
4259
|
+
}) : (A = { ...h, ...R }, b = {
|
|
4268
4260
|
listId: "",
|
|
4269
4261
|
listType: ie.BULLET_LIST,
|
|
4270
4262
|
nestingLevel: 0,
|
|
@@ -4275,7 +4267,7 @@ function Fr(t, e, s, n, r) {
|
|
|
4275
4267
|
_.push({
|
|
4276
4268
|
startIndex: u,
|
|
4277
4269
|
paragraphStyle: A,
|
|
4278
|
-
bullet:
|
|
4270
|
+
bullet: b
|
|
4279
4271
|
});
|
|
4280
4272
|
break;
|
|
4281
4273
|
}
|
|
@@ -4284,14 +4276,14 @@ function Fr(t, e, s, n, r) {
|
|
|
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;
|
|
4293
4285
|
const a = us(t, s, n);
|
|
4294
|
-
if (r !==
|
|
4286
|
+
if (r !== T.REPLACE) {
|
|
4295
4287
|
const c = [];
|
|
4296
4288
|
for (const l of o) {
|
|
4297
4289
|
const { startIndex: u } = l;
|
|
@@ -4299,7 +4291,7 @@ function pr(t, e, s, n, r) {
|
|
|
4299
4291
|
for (const f of a) {
|
|
4300
4292
|
const { startIndex: _ } = f;
|
|
4301
4293
|
if (u === _) {
|
|
4302
|
-
r ===
|
|
4294
|
+
r === T.COVER ? h.push({
|
|
4303
4295
|
...f,
|
|
4304
4296
|
...l
|
|
4305
4297
|
}) : h.push({
|
|
@@ -4313,14 +4305,14 @@ 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
|
-
function
|
|
4310
|
+
function pr(t, e, s, n, r) {
|
|
4319
4311
|
const { customBlocks: i } = t, { customBlocks: o } = e;
|
|
4320
4312
|
if (i == null || o == null)
|
|
4321
4313
|
return;
|
|
4322
4314
|
const a = cs(t, s, n);
|
|
4323
|
-
if (r !==
|
|
4315
|
+
if (r !== T.REPLACE) {
|
|
4324
4316
|
const c = [];
|
|
4325
4317
|
for (const l of o) {
|
|
4326
4318
|
const { startIndex: u } = l;
|
|
@@ -4328,7 +4320,7 @@ function Hr(t, e, s, n, r) {
|
|
|
4328
4320
|
for (const f of a) {
|
|
4329
4321
|
const { startIndex: _ } = f;
|
|
4330
4322
|
if (u === _) {
|
|
4331
|
-
r ===
|
|
4323
|
+
r === T.COVER ? h.push({
|
|
4332
4324
|
...f,
|
|
4333
4325
|
...l
|
|
4334
4326
|
}) : h.push({
|
|
@@ -4344,12 +4336,12 @@ function Hr(t, e, s, n, r) {
|
|
|
4344
4336
|
}
|
|
4345
4337
|
return os(t, e, s, n), a;
|
|
4346
4338
|
}
|
|
4347
|
-
function
|
|
4339
|
+
function Hr(t, e, s, n, r) {
|
|
4348
4340
|
const { tables: i } = t, { tables: o } = e;
|
|
4349
4341
|
if (i == null || o == null)
|
|
4350
4342
|
return;
|
|
4351
4343
|
const a = hs(t, s, n);
|
|
4352
|
-
if (r !==
|
|
4344
|
+
if (r !== T.REPLACE) {
|
|
4353
4345
|
const c = [];
|
|
4354
4346
|
for (const l of o) {
|
|
4355
4347
|
const { startIndex: u, endIndex: h } = l;
|
|
@@ -4357,7 +4349,7 @@ function Br(t, e, s, n, r) {
|
|
|
4357
4349
|
for (const _ of a) {
|
|
4358
4350
|
const { startIndex: g, endIndex: E } = _;
|
|
4359
4351
|
if (g >= u && E <= h) {
|
|
4360
|
-
r ===
|
|
4352
|
+
r === T.COVER ? f.push({
|
|
4361
4353
|
..._,
|
|
4362
4354
|
...l
|
|
4363
4355
|
}) : f.push({
|
|
@@ -4371,14 +4363,14 @@ 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 $r(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
4372
|
const a = ds(t, s, n);
|
|
4381
|
-
if (r !==
|
|
4373
|
+
if (r !== T.REPLACE) {
|
|
4382
4374
|
const c = [];
|
|
4383
4375
|
for (const l of o) {
|
|
4384
4376
|
const { startIndex: u, endIndex: h } = l;
|
|
@@ -4386,7 +4378,7 @@ function Wr(t, e, s, n, r) {
|
|
|
4386
4378
|
for (const _ of a) {
|
|
4387
4379
|
const { startIndex: g, endIndex: E } = _;
|
|
4388
4380
|
if (g >= u && E <= h) {
|
|
4389
|
-
r ===
|
|
4381
|
+
r === T.COVER ? f.push({
|
|
4390
4382
|
..._,
|
|
4391
4383
|
...l
|
|
4392
4384
|
}) : f.push({
|
|
@@ -4400,13 +4392,13 @@ 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
4397
|
const _s = {
|
|
4406
4398
|
id: "default_doc",
|
|
4407
4399
|
documentStyle: {}
|
|
4408
4400
|
};
|
|
4409
|
-
class
|
|
4401
|
+
class Br {
|
|
4410
4402
|
constructor(e) {
|
|
4411
4403
|
d(this, "snapshot");
|
|
4412
4404
|
this.snapshot = { ..._s, ...e };
|
|
@@ -4483,7 +4475,7 @@ class $r {
|
|
|
4483
4475
|
} : this.snapshot.settings.zoomRatio = 1;
|
|
4484
4476
|
}
|
|
4485
4477
|
}
|
|
4486
|
-
class Rt extends
|
|
4478
|
+
class Rt extends Br {
|
|
4487
4479
|
constructor(s) {
|
|
4488
4480
|
super(s);
|
|
4489
4481
|
d(this, "_unitId");
|
|
@@ -4536,7 +4528,7 @@ class Rt extends $r {
|
|
|
4536
4528
|
n.push({
|
|
4537
4529
|
...i,
|
|
4538
4530
|
t: "r",
|
|
4539
|
-
coverType:
|
|
4531
|
+
coverType: T.REPLACE,
|
|
4540
4532
|
body: u
|
|
4541
4533
|
});
|
|
4542
4534
|
} else
|
|
@@ -4564,26 +4556,26 @@ class Rt extends $r {
|
|
|
4564
4556
|
throw new Error(`Unknown mutation type for mutation: ${i}.`);
|
|
4565
4557
|
}), n;
|
|
4566
4558
|
}
|
|
4567
|
-
_updateApply(s, n, r, i =
|
|
4559
|
+
_updateApply(s, n, r, i = T.COVER, o) {
|
|
4568
4560
|
if (s == null)
|
|
4569
4561
|
throw new Error("updateBody is none");
|
|
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,8 +4595,7 @@ class Rt extends $r {
|
|
|
4603
4595
|
super.updateDocumentId(s), this._unitId = s;
|
|
4604
4596
|
}
|
|
4605
4597
|
}
|
|
4606
|
-
|
|
4607
|
-
const bt = {
|
|
4598
|
+
const wt = {
|
|
4608
4599
|
sheetId: "",
|
|
4609
4600
|
range: {
|
|
4610
4601
|
startRow: -1,
|
|
@@ -4612,36 +4603,36 @@ const bt = {
|
|
|
4612
4603
|
startColumn: -1,
|
|
4613
4604
|
endColumn: -1
|
|
4614
4605
|
}
|
|
4615
|
-
},
|
|
4606
|
+
}, Ho = {
|
|
4616
4607
|
startRow: -1,
|
|
4617
4608
|
startColumn: -1,
|
|
4618
4609
|
endRow: -1,
|
|
4619
4610
|
endColumn: -1
|
|
4620
|
-
},
|
|
4611
|
+
}, $o = {
|
|
4621
4612
|
startRow: 0,
|
|
4622
4613
|
startColumn: 0,
|
|
4623
4614
|
endRow: 0,
|
|
4624
4615
|
endColumn: 0
|
|
4625
|
-
},
|
|
4616
|
+
}, Bo = {
|
|
4626
4617
|
row: 0,
|
|
4627
4618
|
column: 0
|
|
4628
|
-
},
|
|
4619
|
+
}, Wr = {
|
|
4629
4620
|
id: "",
|
|
4630
4621
|
sheetOrder: [],
|
|
4631
4622
|
name: "",
|
|
4632
4623
|
appVersion: "",
|
|
4633
|
-
locale:
|
|
4624
|
+
locale: Re.ZH_CN,
|
|
4634
4625
|
styles: {},
|
|
4635
4626
|
sheets: {},
|
|
4636
4627
|
resources: []
|
|
4637
|
-
},
|
|
4628
|
+
}, Gr = 1e3, kr = 20, Vr = 19, jr = 73, zr = 46, Yr = 20, oe = {
|
|
4638
4629
|
type: Ze.GRID,
|
|
4639
4630
|
name: "Sheet1",
|
|
4640
4631
|
id: "sheet-01",
|
|
4641
4632
|
tabColor: "",
|
|
4642
4633
|
hidden: I.FALSE,
|
|
4643
|
-
rowCount:
|
|
4644
|
-
columnCount:
|
|
4634
|
+
rowCount: Gr,
|
|
4635
|
+
columnCount: kr,
|
|
4645
4636
|
zoomRatio: 1,
|
|
4646
4637
|
freeze: {
|
|
4647
4638
|
xSplit: 0,
|
|
@@ -4651,8 +4642,8 @@ const bt = {
|
|
|
4651
4642
|
},
|
|
4652
4643
|
scrollTop: 0,
|
|
4653
4644
|
scrollLeft: 0,
|
|
4654
|
-
defaultColumnWidth:
|
|
4655
|
-
defaultRowHeight:
|
|
4645
|
+
defaultColumnWidth: jr,
|
|
4646
|
+
defaultRowHeight: Vr,
|
|
4656
4647
|
mergeData: [],
|
|
4657
4648
|
hideRow: [],
|
|
4658
4649
|
hideColumn: [],
|
|
@@ -4662,11 +4653,11 @@ const bt = {
|
|
|
4662
4653
|
status: I.FALSE,
|
|
4663
4654
|
showGridlines: I.TRUE,
|
|
4664
4655
|
rowHeader: {
|
|
4665
|
-
width:
|
|
4656
|
+
width: zr,
|
|
4666
4657
|
hidden: I.FALSE
|
|
4667
4658
|
},
|
|
4668
4659
|
columnHeader: {
|
|
4669
|
-
height:
|
|
4660
|
+
height: Yr,
|
|
4670
4661
|
hidden: I.FALSE
|
|
4671
4662
|
},
|
|
4672
4663
|
selections: ["A1"],
|
|
@@ -4725,7 +4716,7 @@ const bt = {
|
|
|
4725
4716
|
/** *
|
|
4726
4717
|
* textDirection
|
|
4727
4718
|
*/
|
|
4728
|
-
td:
|
|
4719
|
+
td: Tt.UNSPECIFIED,
|
|
4729
4720
|
/**
|
|
4730
4721
|
* color
|
|
4731
4722
|
*/
|
|
@@ -4745,11 +4736,11 @@ const bt = {
|
|
|
4745
4736
|
/**
|
|
4746
4737
|
* verticalAlignment
|
|
4747
4738
|
*/
|
|
4748
|
-
vt:
|
|
4739
|
+
vt: _t.UNSPECIFIED,
|
|
4749
4740
|
/**
|
|
4750
4741
|
* wrapStrategy
|
|
4751
4742
|
*/
|
|
4752
|
-
tb:
|
|
4743
|
+
tb: ft.UNSPECIFIED,
|
|
4753
4744
|
/**
|
|
4754
4745
|
* padding
|
|
4755
4746
|
*/
|
|
@@ -4759,7 +4750,7 @@ const bt = {
|
|
|
4759
4750
|
b: 0,
|
|
4760
4751
|
l: 0
|
|
4761
4752
|
}
|
|
4762
|
-
},
|
|
4753
|
+
}, Kr = {
|
|
4763
4754
|
id: "default_slide",
|
|
4764
4755
|
title: "defaultSlide",
|
|
4765
4756
|
pageSize: {
|
|
@@ -4767,11 +4758,11 @@ const bt = {
|
|
|
4767
4758
|
height: 300
|
|
4768
4759
|
}
|
|
4769
4760
|
};
|
|
4770
|
-
var
|
|
4771
|
-
class
|
|
4761
|
+
var Xr = /* @__PURE__ */ ((t) => (t.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", t.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", t))(Xr || {});
|
|
4762
|
+
class Qr {
|
|
4772
4763
|
constructor(e = {}) {
|
|
4773
4764
|
d(this, "_styles");
|
|
4774
|
-
d(this, "_cacheMap", new
|
|
4765
|
+
d(this, "_cacheMap", new Qn(1e5));
|
|
4775
4766
|
this._styles = e, this._generateCacheMap();
|
|
4776
4767
|
}
|
|
4777
4768
|
each(e) {
|
|
@@ -4823,10 +4814,10 @@ class Jr {
|
|
|
4823
4814
|
return null;
|
|
4824
4815
|
}
|
|
4825
4816
|
}
|
|
4826
|
-
function
|
|
4817
|
+
function Wo(t) {
|
|
4827
4818
|
return t && (t.s !== void 0 || t.p !== void 0 || t.v !== void 0) || t.f !== void 0 || t.si !== void 0;
|
|
4828
4819
|
}
|
|
4829
|
-
function
|
|
4820
|
+
function Go(t) {
|
|
4830
4821
|
if (t.t !== void 0)
|
|
4831
4822
|
return t.t;
|
|
4832
4823
|
if (typeof t.v == "string")
|
|
@@ -4836,14 +4827,14 @@ function ko(t) {
|
|
|
4836
4827
|
if (typeof t.v == "boolean")
|
|
4837
4828
|
return vt.BOOLEAN;
|
|
4838
4829
|
}
|
|
4839
|
-
function
|
|
4830
|
+
function ko(t) {
|
|
4840
4831
|
if (t == null)
|
|
4841
4832
|
return !0;
|
|
4842
4833
|
const { v: e, f: s, si: n, p: r, s: i } = t;
|
|
4843
4834
|
return !(!(e == null || typeof e == "string" && e.length === 0) || s != null && s.length > 0 || n != null && n.length > 0 || r != null);
|
|
4844
4835
|
}
|
|
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 || {}),
|
|
4846
|
-
class
|
|
4836
|
+
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 || {}), Zr = /* @__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))(Zr || {}), qr = /* @__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))(qr || {});
|
|
4837
|
+
class Jr {
|
|
4847
4838
|
constructor(e, s) {
|
|
4848
4839
|
d(this, "_columnData", {});
|
|
4849
4840
|
this._config = e, this._columnData = s;
|
|
@@ -4859,13 +4850,13 @@ class ti {
|
|
|
4859
4850
|
const { _columnData: s } = this, n = s[e];
|
|
4860
4851
|
return n ? n.hd !== I.TRUE : !0;
|
|
4861
4852
|
}
|
|
4862
|
-
getHiddenCols(e = 0, s =
|
|
4853
|
+
getHiddenCols(e = 0, s = j(this._columnData) - 1) {
|
|
4863
4854
|
const n = [];
|
|
4864
4855
|
let r = !1, i = -1;
|
|
4865
4856
|
for (let o = e; o <= s; o++) {
|
|
4866
4857
|
const a = this.getColVisible(o);
|
|
4867
4858
|
r && a ? (r = !1, n.push({
|
|
4868
|
-
rangeType:
|
|
4859
|
+
rangeType: Q.COLUMN,
|
|
4869
4860
|
startColumn: i,
|
|
4870
4861
|
endColumn: o - 1,
|
|
4871
4862
|
startRow: 0,
|
|
@@ -4877,7 +4868,7 @@ class ti {
|
|
|
4877
4868
|
endRow: 0,
|
|
4878
4869
|
startColumn: i,
|
|
4879
4870
|
endColumn: s,
|
|
4880
|
-
rangeType:
|
|
4871
|
+
rangeType: Q.COLUMN
|
|
4881
4872
|
}), n;
|
|
4882
4873
|
}
|
|
4883
4874
|
getColumnDatas(e, s) {
|
|
@@ -4894,7 +4885,7 @@ class ti {
|
|
|
4894
4885
|
* @returns
|
|
4895
4886
|
*/
|
|
4896
4887
|
getSize() {
|
|
4897
|
-
return
|
|
4888
|
+
return j(this._columnData);
|
|
4898
4889
|
}
|
|
4899
4890
|
/**
|
|
4900
4891
|
* Get the width of column
|
|
@@ -4935,7 +4926,7 @@ class ti {
|
|
|
4935
4926
|
return this._columnData[e] = i, i;
|
|
4936
4927
|
}
|
|
4937
4928
|
}
|
|
4938
|
-
function
|
|
4929
|
+
function St(t, e) {
|
|
4939
4930
|
for (const s of e) {
|
|
4940
4931
|
const { ts: n = {} } = s;
|
|
4941
4932
|
if (n[t] == null)
|
|
@@ -5016,7 +5007,7 @@ class mt {
|
|
|
5016
5007
|
* @returns range matrix
|
|
5017
5008
|
*/
|
|
5018
5009
|
getMatrix() {
|
|
5019
|
-
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new
|
|
5010
|
+
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new X();
|
|
5020
5011
|
for (let a = e; a <= s; a++)
|
|
5021
5012
|
for (let c = n; c <= r; c++)
|
|
5022
5013
|
o.setValue(a, c, i.getValue(a, c) || null);
|
|
@@ -5028,7 +5019,7 @@ class mt {
|
|
|
5028
5019
|
* @returns range matrix object
|
|
5029
5020
|
*/
|
|
5030
5021
|
getMatrixObject() {
|
|
5031
|
-
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new
|
|
5022
|
+
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = this._range, i = this._worksheet.getCellMatrix(), o = new X();
|
|
5032
5023
|
for (let a = e; a <= s; a++)
|
|
5033
5024
|
for (let c = n; c <= r; c++)
|
|
5034
5025
|
o.setValue(a - e, c - n, i.getValue(a, c) || {});
|
|
@@ -5161,7 +5152,7 @@ class mt {
|
|
|
5161
5152
|
getUnderline() {
|
|
5162
5153
|
var s, n;
|
|
5163
5154
|
const { p: e } = this.getValue() ?? {};
|
|
5164
|
-
return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ?
|
|
5155
|
+
return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? St("ul", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? {
|
|
5165
5156
|
s: I.TRUE
|
|
5166
5157
|
} : {
|
|
5167
5158
|
s: I.FALSE
|
|
@@ -5185,7 +5176,7 @@ class mt {
|
|
|
5185
5176
|
getStrikeThrough() {
|
|
5186
5177
|
var s, n;
|
|
5187
5178
|
const { p: e } = this.getValue() ?? {};
|
|
5188
|
-
return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ?
|
|
5179
|
+
return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? St("st", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? {
|
|
5189
5180
|
s: I.TRUE
|
|
5190
5181
|
} : {
|
|
5191
5182
|
s: I.FALSE
|
|
@@ -5224,7 +5215,7 @@ class mt {
|
|
|
5224
5215
|
getFontStyle() {
|
|
5225
5216
|
var s, n;
|
|
5226
5217
|
const { p: e } = this.getValue() ?? {};
|
|
5227
|
-
return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ?
|
|
5218
|
+
return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? St("it", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? te.ITALIC : te.NORMAL : this.getFontStyles()[0][0];
|
|
5228
5219
|
}
|
|
5229
5220
|
/**
|
|
5230
5221
|
* Returns the font styles of the cells in the range.
|
|
@@ -5241,7 +5232,7 @@ class mt {
|
|
|
5241
5232
|
getFontWeight() {
|
|
5242
5233
|
var s, n;
|
|
5243
5234
|
const { p: e } = this.getValue() ?? {};
|
|
5244
|
-
return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ?
|
|
5235
|
+
return e && Array.isArray((s = e.body) == null ? void 0 : s.textRuns) ? St("bl", (n = e.body) == null ? void 0 : n.textRuns) === I.TRUE ? ee.BOLD : ee.NORMAL : this.getFontWeights()[0][0];
|
|
5245
5236
|
}
|
|
5246
5237
|
/**
|
|
5247
5238
|
* Returns the font weights of the cells in the range.
|
|
@@ -5432,7 +5423,7 @@ class mt {
|
|
|
5432
5423
|
);
|
|
5433
5424
|
}
|
|
5434
5425
|
}
|
|
5435
|
-
class
|
|
5426
|
+
class yr {
|
|
5436
5427
|
constructor(e, s) {
|
|
5437
5428
|
d(this, "_rowData");
|
|
5438
5429
|
this._config = e, this._rowData = s;
|
|
@@ -5485,7 +5476,7 @@ class ei {
|
|
|
5485
5476
|
const r = this._config, i = { hd: I.FALSE, h: r.defaultRowHeight };
|
|
5486
5477
|
return s[e] = i, i;
|
|
5487
5478
|
}
|
|
5488
|
-
getHiddenRows(e = 0, s =
|
|
5479
|
+
getHiddenRows(e = 0, s = j(this._rowData) - 1) {
|
|
5489
5480
|
const n = [];
|
|
5490
5481
|
let r = !1, i = -1;
|
|
5491
5482
|
for (let o = e; o <= s; o++) {
|
|
@@ -5495,10 +5486,10 @@ class ei {
|
|
|
5495
5486
|
endRow: o - 1,
|
|
5496
5487
|
startColumn: 0,
|
|
5497
5488
|
endColumn: 0,
|
|
5498
|
-
rangeType:
|
|
5489
|
+
rangeType: Q.ROW
|
|
5499
5490
|
})) : !r && !a && (r = !0, i = o);
|
|
5500
5491
|
}
|
|
5501
|
-
return r && n.push({ startRow: i, endRow: s, startColumn: 0, endColumn: 0, rangeType:
|
|
5492
|
+
return r && n.push({ startRow: i, endRow: s, startColumn: 0, endColumn: 0, rangeType: Q.ROW }), n;
|
|
5502
5493
|
}
|
|
5503
5494
|
getRowVisible(e) {
|
|
5504
5495
|
const s = this.getRow(e);
|
|
@@ -5509,10 +5500,10 @@ class ei {
|
|
|
5509
5500
|
* @returns
|
|
5510
5501
|
*/
|
|
5511
5502
|
getSize() {
|
|
5512
|
-
return
|
|
5503
|
+
return j(this._rowData);
|
|
5513
5504
|
}
|
|
5514
5505
|
}
|
|
5515
|
-
class
|
|
5506
|
+
class ti extends P {
|
|
5516
5507
|
constructor() {
|
|
5517
5508
|
super(...arguments);
|
|
5518
5509
|
d(this, "_cellContentInterceptors", []);
|
|
@@ -5534,22 +5525,22 @@ class si extends T {
|
|
|
5534
5525
|
registerCellContentInterceptor(s) {
|
|
5535
5526
|
if (this._cellContentInterceptors.includes(s))
|
|
5536
5527
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5537
|
-
return this._cellContentInterceptors.push(s),
|
|
5528
|
+
return this._cellContentInterceptors.push(s), S(() => it(this._cellContentInterceptors, s));
|
|
5538
5529
|
}
|
|
5539
5530
|
registerRowFilteredInterceptor(s) {
|
|
5540
5531
|
if (this._rowFilteredInterceptors.includes(s))
|
|
5541
5532
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5542
|
-
return this._rowFilteredInterceptors.push(s),
|
|
5533
|
+
return this._rowFilteredInterceptors.push(s), S(() => it(this._rowFilteredInterceptors, s));
|
|
5543
5534
|
}
|
|
5544
5535
|
registerRowVisibleInterceptor(s) {
|
|
5545
5536
|
if (this._rowVisibleInterceptors.includes(s))
|
|
5546
5537
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5547
|
-
return this._rowVisibleInterceptors.push(s),
|
|
5538
|
+
return this._rowVisibleInterceptors.push(s), S(() => it(this._rowVisibleInterceptors, s));
|
|
5548
5539
|
}
|
|
5549
5540
|
registerColVisibleInterceptor(s) {
|
|
5550
5541
|
if (this._colVisibleInterceptors.includes(s))
|
|
5551
5542
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5552
|
-
return this._colVisibleInterceptors.push(s),
|
|
5543
|
+
return this._colVisibleInterceptors.push(s), S(() => it(this._colVisibleInterceptors, s));
|
|
5553
5544
|
}
|
|
5554
5545
|
}
|
|
5555
5546
|
class Ht {
|
|
@@ -5585,7 +5576,7 @@ class Ht {
|
|
|
5585
5576
|
};
|
|
5586
5577
|
this._snapshot = n;
|
|
5587
5578
|
const { columnData: r, rowData: i, cellData: o } = this._snapshot;
|
|
5588
|
-
this._sheetId = this._snapshot.id ?? m.generateRandomId(6), this._initialized = !1, this._cellData = new
|
|
5579
|
+
this._sheetId = this._snapshot.id ?? m.generateRandomId(6), this._initialized = !1, this._cellData = new X(o), this._rowManager = new yr(this._snapshot, i), this._columnManager = new Jr(this._snapshot, r), this._viewModel = new ti();
|
|
5589
5580
|
}
|
|
5590
5581
|
/**
|
|
5591
5582
|
* @internal
|
|
@@ -5654,7 +5645,7 @@ class Ht {
|
|
|
5654
5645
|
const n = this._snapshot.mergeData, r = [];
|
|
5655
5646
|
for (let i = 0; i < n.length; i++) {
|
|
5656
5647
|
const o = n[i];
|
|
5657
|
-
|
|
5648
|
+
gt.intersects({ startRow: e, startColumn: s, endRow: e, endColumn: s }, o) && r.push(o);
|
|
5658
5649
|
}
|
|
5659
5650
|
return r.length ? r : null;
|
|
5660
5651
|
}
|
|
@@ -5662,7 +5653,7 @@ class Ht {
|
|
|
5662
5653
|
const n = this._snapshot.mergeData;
|
|
5663
5654
|
for (let r = 0; r < n.length; r++) {
|
|
5664
5655
|
const i = n[r];
|
|
5665
|
-
if (
|
|
5656
|
+
if (gt.intersects({ startRow: e, startColumn: s, endRow: e, endColumn: s }, i))
|
|
5666
5657
|
return i;
|
|
5667
5658
|
}
|
|
5668
5659
|
return null;
|
|
@@ -5682,14 +5673,14 @@ class Ht {
|
|
|
5682
5673
|
// PERF: we could not skip indexes with merged cells, because we have already known the merged cells' range
|
|
5683
5674
|
getMatrixWithMergedCells(e, s, n, r) {
|
|
5684
5675
|
const i = this.getCellMatrix(), o = this._snapshot.mergeData.filter(
|
|
5685
|
-
(c) =>
|
|
5686
|
-
), a = new
|
|
5687
|
-
return
|
|
5676
|
+
(c) => gt.intersects({ startRow: e, startColumn: s, endRow: n, endColumn: r }, c)
|
|
5677
|
+
), a = new X();
|
|
5678
|
+
return pe(e, n, s, r).forEach((c, l) => {
|
|
5688
5679
|
const u = i.getValue(c, l);
|
|
5689
5680
|
u && a.setValue(c, l, u);
|
|
5690
5681
|
}), o.forEach((c) => {
|
|
5691
5682
|
const { startColumn: l, startRow: u, endColumn: h, endRow: f } = c;
|
|
5692
|
-
|
|
5683
|
+
pe(u, f, l, h).forEach((_, g) => {
|
|
5693
5684
|
_ === u && g === l && a.setValue(_, g, {
|
|
5694
5685
|
...i.getValue(_, g),
|
|
5695
5686
|
rowSpan: f - u + 1,
|
|
@@ -5875,23 +5866,22 @@ class Ht {
|
|
|
5875
5866
|
return e && (e.v !== void 0 || e.f !== void 0 || e.p !== void 0);
|
|
5876
5867
|
}
|
|
5877
5868
|
}
|
|
5878
|
-
var
|
|
5879
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
5869
|
+
var ei = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ni = (t, e, s, n) => {
|
|
5870
|
+
for (var r = n > 1 ? void 0 : n ? si(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5880
5871
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
5881
|
-
return n && r &&
|
|
5882
|
-
},
|
|
5883
|
-
function
|
|
5872
|
+
return n && r && ei(e, s, r), r;
|
|
5873
|
+
}, ri = (t, e) => (s, n) => e(s, n, t);
|
|
5874
|
+
function Vo(t, e) {
|
|
5884
5875
|
return `${t.getUnitId()}|${e.getSheetId()}`;
|
|
5885
5876
|
}
|
|
5886
|
-
let
|
|
5877
|
+
let $t = class extends P {
|
|
5887
5878
|
constructor(e = {}, s) {
|
|
5888
5879
|
super();
|
|
5889
|
-
d(this, "_sheetCreated$", new
|
|
5880
|
+
d(this, "_sheetCreated$", new D());
|
|
5890
5881
|
d(this, "sheetCreated$", this._sheetCreated$.asObservable());
|
|
5891
|
-
d(this, "_sheetDisposed$", new
|
|
5882
|
+
d(this, "_sheetDisposed$", new D());
|
|
5892
5883
|
d(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
|
|
5893
|
-
d(this, "
|
|
5894
|
-
d(this, "_activeSheet$", new Y(null));
|
|
5884
|
+
d(this, "_activeSheet$", new K(null));
|
|
5895
5885
|
d(this, "activeSheet$", this._activeSheet$.asObservable());
|
|
5896
5886
|
/**
|
|
5897
5887
|
* sheets list
|
|
@@ -5910,15 +5900,16 @@ let Bt = class extends T {
|
|
|
5910
5900
|
// private _formatManage: FormatManager;
|
|
5911
5901
|
d(this, "_snapshot");
|
|
5912
5902
|
d(this, "_unitId");
|
|
5913
|
-
this
|
|
5903
|
+
d(this, "_count");
|
|
5904
|
+
this._log = s, this._snapshot = m.commonExtend(Wr, e);
|
|
5914
5905
|
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
|
|
5906
|
+
(this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = m.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new Qr(n), this._count = 1, this._worksheets = /* @__PURE__ */ new Map(), this._getDefaultWorkSheet();
|
|
5916
5907
|
}
|
|
5917
5908
|
dispose() {
|
|
5918
5909
|
super.dispose(), this._sheetCreated$.complete(), this._sheetDisposed$.complete(), this._activeSheet$.complete();
|
|
5919
5910
|
}
|
|
5920
5911
|
save() {
|
|
5921
|
-
return this._snapshot;
|
|
5912
|
+
return m.deepClone(this._snapshot);
|
|
5922
5913
|
}
|
|
5923
5914
|
static isIRangeType(e) {
|
|
5924
5915
|
return typeof e == "string" || "startRow" in e || "row" in e;
|
|
@@ -6000,6 +5991,13 @@ let Bt = class extends T {
|
|
|
6000
5991
|
const { sheetOrder: e } = this._snapshot;
|
|
6001
5992
|
return e.map((s) => this._worksheets.get(s));
|
|
6002
5993
|
}
|
|
5994
|
+
getSheetsName() {
|
|
5995
|
+
const { sheetOrder: e } = this._snapshot, s = [];
|
|
5996
|
+
return e.forEach((n) => {
|
|
5997
|
+
const r = this._worksheets.get(n);
|
|
5998
|
+
r && s.push(r.getName());
|
|
5999
|
+
}), s;
|
|
6000
|
+
}
|
|
6003
6001
|
getSheetIndex(e) {
|
|
6004
6002
|
const { sheetOrder: s } = this._snapshot;
|
|
6005
6003
|
return s.findIndex((n) => e.getSheetId() === n);
|
|
@@ -6018,24 +6016,6 @@ let Bt = class extends T {
|
|
|
6018
6016
|
getHiddenWorksheets() {
|
|
6019
6017
|
return this.getSheets().filter((e) => e.getConfig().hidden === I.TRUE).map((e) => e.getConfig().id);
|
|
6020
6018
|
}
|
|
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
6019
|
/**
|
|
6040
6020
|
* transform any range type to range data
|
|
6041
6021
|
*
|
|
@@ -6089,21 +6069,25 @@ let Bt = class extends T {
|
|
|
6089
6069
|
}
|
|
6090
6070
|
};
|
|
6091
6071
|
}
|
|
6092
|
-
return typeof e != "string" && "startRow" in e ? { sheetId: "", range: e } :
|
|
6072
|
+
return typeof e != "string" && "startRow" in e ? { sheetId: "", range: e } : wt;
|
|
6093
6073
|
}
|
|
6094
6074
|
load(e) {
|
|
6095
6075
|
this._snapshot = e;
|
|
6096
6076
|
}
|
|
6077
|
+
checkSheetName(e) {
|
|
6078
|
+
return this.getSheetsName().includes(e);
|
|
6079
|
+
}
|
|
6080
|
+
uniqueSheetName(e = "sheet1") {
|
|
6081
|
+
let s = e;
|
|
6082
|
+
for (; this.checkSheetName(s); )
|
|
6083
|
+
s = e + this._count, this._count++;
|
|
6084
|
+
return s;
|
|
6085
|
+
}
|
|
6097
6086
|
/**
|
|
6098
6087
|
* Get the range array based on the range string and sheet id
|
|
6099
6088
|
*
|
|
6100
|
-
* @privateRemarks
|
|
6101
|
-
* zh: 根据范围字符串和sheet id取得范围数组
|
|
6102
|
-
*
|
|
6103
6089
|
* @param txt - range string
|
|
6104
6090
|
* @returns
|
|
6105
|
-
*
|
|
6106
|
-
* @internal
|
|
6107
6091
|
*/
|
|
6108
6092
|
_getCellRange(e) {
|
|
6109
6093
|
var l, u, h, f, _;
|
|
@@ -6123,11 +6107,11 @@ let Bt = class extends T {
|
|
|
6123
6107
|
startColumn: E,
|
|
6124
6108
|
endColumn: E
|
|
6125
6109
|
}
|
|
6126
|
-
} :
|
|
6110
|
+
} : wt;
|
|
6127
6111
|
}
|
|
6128
6112
|
n = n.split(":");
|
|
6129
6113
|
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
|
-
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]) ?
|
|
6114
|
+
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]) ? wt : {
|
|
6131
6115
|
sheetId: ((_ = this.getSheetBySheetName(s)) == null ? void 0 : _.getSheetId()) || "",
|
|
6132
6116
|
range: {
|
|
6133
6117
|
startRow: r[0],
|
|
@@ -6140,7 +6124,6 @@ let Bt = class extends T {
|
|
|
6140
6124
|
// FIXME: now we always create worksheet from DEFAULT_WORKSHEET?
|
|
6141
6125
|
/**
|
|
6142
6126
|
* Get Default Sheet
|
|
6143
|
-
* @private
|
|
6144
6127
|
*/
|
|
6145
6128
|
_getDefaultWorkSheet() {
|
|
6146
6129
|
const { _snapshot: e, _worksheets: s } = this, { sheets: n, sheetOrder: r } = e;
|
|
@@ -6148,21 +6131,21 @@ let Bt = class extends T {
|
|
|
6148
6131
|
status: I.TRUE
|
|
6149
6132
|
}));
|
|
6150
6133
|
for (const i in n) {
|
|
6151
|
-
const o = n[i];
|
|
6152
|
-
o.name = this.
|
|
6153
|
-
const
|
|
6154
|
-
s.set(i,
|
|
6134
|
+
const o = n[i], { name: a } = o;
|
|
6135
|
+
o.name = this.uniqueSheetName(a), o.name !== a && this._log.warn(`The worksheet name ${a} is duplicated, we change it to ${o.name}`);
|
|
6136
|
+
const c = new Ht(o, this._styles);
|
|
6137
|
+
s.set(i, c), r.includes(i) || r.push(i);
|
|
6155
6138
|
}
|
|
6156
6139
|
}
|
|
6157
6140
|
};
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
],
|
|
6141
|
+
$t = ni([
|
|
6142
|
+
ri(1, ct)
|
|
6143
|
+
], $t);
|
|
6161
6144
|
class gs {
|
|
6162
6145
|
constructor(e) {
|
|
6163
6146
|
d(this, "_snapshot");
|
|
6164
6147
|
d(this, "_unitId");
|
|
6165
|
-
this._snapshot = { ...
|
|
6148
|
+
this._snapshot = { ...Kr, ...e }, this._unitId = this._snapshot.id ?? m.generateRandomId(6);
|
|
6166
6149
|
}
|
|
6167
6150
|
getSnapshot() {
|
|
6168
6151
|
return this._snapshot;
|
|
@@ -6207,36 +6190,36 @@ class gs {
|
|
|
6207
6190
|
};
|
|
6208
6191
|
}
|
|
6209
6192
|
}
|
|
6210
|
-
const
|
|
6211
|
-
var
|
|
6212
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6193
|
+
const ae = "FOCUSING_SHEET", He = "FOCUSING_DOC", $e = "FOCUSING_SLIDE", jo = "FOCUSING_EDITOR_BUT_HIDDEN", ii = "FOCUSING_EDITOR", zo = "FOCUSING_EDITOR_INPUT_FORMULA", oi = "FOCUSING_FORMULA_EDITOR";
|
|
6194
|
+
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ui = (t, e, s, n) => {
|
|
6195
|
+
for (var r = n > 1 ? void 0 : n ? li(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6213
6196
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6214
|
-
return n && r &&
|
|
6215
|
-
},
|
|
6197
|
+
return n && r && ai(e, s, r), r;
|
|
6198
|
+
}, ci = (t, e) => (s, n) => e(s, n, t), hi = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.DOC = 1] = "DOC", t[t.SHEET = 2] = "SHEET", t[t.SLIDE = 3] = "SLIDE", t))(hi || {});
|
|
6216
6199
|
const Ot = G("univer.current");
|
|
6217
|
-
let
|
|
6200
|
+
let le = class extends P {
|
|
6218
6201
|
constructor(e, s) {
|
|
6219
6202
|
super();
|
|
6220
|
-
d(this, "_focused$", new Y(null));
|
|
6221
6203
|
d(this, "_focused", null);
|
|
6204
|
+
d(this, "_focused$", new K(null));
|
|
6222
6205
|
d(this, "focused$", this._focused$.asObservable());
|
|
6223
|
-
d(this, "_currentSheet$", new
|
|
6206
|
+
d(this, "_currentSheet$", new K(null));
|
|
6224
6207
|
d(this, "currentSheet$", this._currentSheet$.asObservable());
|
|
6225
|
-
d(this, "_currentDoc$", new
|
|
6208
|
+
d(this, "_currentDoc$", new K(null));
|
|
6226
6209
|
d(this, "currentDoc$", this._currentDoc$.asObservable());
|
|
6227
|
-
d(this, "_currentSlide$", new
|
|
6210
|
+
d(this, "_currentSlide$", new K(null));
|
|
6228
6211
|
d(this, "currentSlide$", this._currentSlide$.asObservable());
|
|
6229
|
-
d(this, "_sheetAdded$", new
|
|
6212
|
+
d(this, "_sheetAdded$", new D());
|
|
6230
6213
|
d(this, "sheetAdded$", this._sheetAdded$.asObservable());
|
|
6231
|
-
d(this, "_docAdded$", new
|
|
6214
|
+
d(this, "_docAdded$", new D());
|
|
6232
6215
|
d(this, "docAdded$", this._docAdded$.asObservable());
|
|
6233
|
-
d(this, "_slideAdded$", new
|
|
6216
|
+
d(this, "_slideAdded$", new D());
|
|
6234
6217
|
d(this, "slideAdded$", this._slideAdded$.asObservable());
|
|
6235
|
-
d(this, "_sheetDisposed$", new
|
|
6218
|
+
d(this, "_sheetDisposed$", new D());
|
|
6236
6219
|
d(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
|
|
6237
|
-
d(this, "_docDisposed$", new
|
|
6220
|
+
d(this, "_docDisposed$", new D());
|
|
6238
6221
|
d(this, "docDisposed$", this._docDisposed$.asObservable());
|
|
6239
|
-
d(this, "_slideDisposed$", new
|
|
6222
|
+
d(this, "_slideDisposed$", new D());
|
|
6240
6223
|
d(this, "slideDisposed$", this._slideDisposed$.asObservable());
|
|
6241
6224
|
d(this, "_sheets", []);
|
|
6242
6225
|
d(this, "_docs", []);
|
|
@@ -6318,7 +6301,7 @@ let ae = class extends T {
|
|
|
6318
6301
|
return e;
|
|
6319
6302
|
}
|
|
6320
6303
|
focusUniverInstance(e) {
|
|
6321
|
-
e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [He,
|
|
6304
|
+
e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [He, ae, $e].forEach((s) => this._contextService.setContextValue(s, !1)), this._focused instanceof $t ? this._contextService.setContextValue(ae, !0) : this._focused instanceof Rt ? this._contextService.setContextValue(He, !0) : this._focused instanceof gs && this._contextService.setContextValue($e, !0);
|
|
6322
6305
|
}
|
|
6323
6306
|
getFocusedUniverInstance() {
|
|
6324
6307
|
return this._focused;
|
|
@@ -6330,7 +6313,7 @@ let ae = class extends T {
|
|
|
6330
6313
|
return 2;
|
|
6331
6314
|
if (this.getUniverSlideInstance(e))
|
|
6332
6315
|
return 3;
|
|
6333
|
-
throw new Error(`[UniverInstanceService]: No document with
|
|
6316
|
+
throw new Error(`[UniverInstanceService]: No document with unitId ${e}`);
|
|
6334
6317
|
}
|
|
6335
6318
|
disposeDocument(e) {
|
|
6336
6319
|
const s = this.getUniverDocInstance(e);
|
|
@@ -6351,37 +6334,37 @@ let ae = class extends T {
|
|
|
6351
6334
|
return !1;
|
|
6352
6335
|
}
|
|
6353
6336
|
};
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
],
|
|
6357
|
-
var
|
|
6358
|
-
const
|
|
6337
|
+
le = ui([
|
|
6338
|
+
ci(1, Et)
|
|
6339
|
+
], le);
|
|
6340
|
+
var w = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(w || {});
|
|
6341
|
+
const Be = {
|
|
6359
6342
|
0: "Starting",
|
|
6360
6343
|
1: "Ready",
|
|
6361
6344
|
2: "Rendered",
|
|
6362
6345
|
3: "Steady"
|
|
6363
|
-
},
|
|
6346
|
+
}, Dt = /* @__PURE__ */ new Map();
|
|
6364
6347
|
function Es(t, e) {
|
|
6365
6348
|
return function(r) {
|
|
6366
6349
|
Rs(t, e);
|
|
6367
6350
|
};
|
|
6368
6351
|
}
|
|
6369
6352
|
function Rs(t, e) {
|
|
6370
|
-
|
|
6353
|
+
Dt.has(t) || Dt.set(t, []), Dt.get(t).push(e);
|
|
6371
6354
|
}
|
|
6372
|
-
var
|
|
6373
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6355
|
+
var di = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, ms = (t, e, s, n) => {
|
|
6356
|
+
for (var r = n > 1 ? void 0 : n ? _i(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6374
6357
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6375
|
-
return n && r &&
|
|
6376
|
-
},
|
|
6377
|
-
let V = class extends
|
|
6358
|
+
return n && r && di(e, s, r), r;
|
|
6359
|
+
}, ue = (t, e) => (s, n) => e(s, n, t);
|
|
6360
|
+
let V = class extends P {
|
|
6378
6361
|
constructor(e) {
|
|
6379
6362
|
super();
|
|
6380
|
-
d(this, "_lifecycle$", new
|
|
6363
|
+
d(this, "_lifecycle$", new K(w.Starting));
|
|
6381
6364
|
d(this, "lifecycle$", this._lifecycle$.asObservable());
|
|
6382
6365
|
this._logService = e, this._logService.log(
|
|
6383
6366
|
"[LifecycleService]",
|
|
6384
|
-
`lifecycle progressed to "${
|
|
6367
|
+
`lifecycle progressed to "${Be[w.Starting]}".`
|
|
6385
6368
|
);
|
|
6386
6369
|
}
|
|
6387
6370
|
get stage() {
|
|
@@ -6390,16 +6373,16 @@ let V = class extends T {
|
|
|
6390
6373
|
set stage(e) {
|
|
6391
6374
|
if (e < this.stage)
|
|
6392
6375
|
throw new Error("[LifecycleService]: lifecycle stage cannot go backward!");
|
|
6393
|
-
e !== this.stage && (this._logService.log("[LifecycleService]", `lifecycle progressed to "${
|
|
6376
|
+
e !== this.stage && (this._logService.log("[LifecycleService]", `lifecycle progressed to "${Be[e]}".`), this._lifecycle$.next(e));
|
|
6394
6377
|
}
|
|
6395
6378
|
subscribeWithPrevious() {
|
|
6396
|
-
return new
|
|
6379
|
+
return new bs((e) => (this.stage === w.Starting || (this.stage === w.Ready ? e.next(w.Starting) : this.stage === w.Rendered ? (e.next(w.Starting), e.next(w.Ready)) : (e.next(w.Starting), e.next(w.Ready), e.next(w.Rendered))), this._lifecycle$.subscribe(e)));
|
|
6397
6380
|
}
|
|
6398
6381
|
};
|
|
6399
6382
|
V = ms([
|
|
6400
|
-
|
|
6383
|
+
ue(0, ct)
|
|
6401
6384
|
], V);
|
|
6402
|
-
let st = class extends
|
|
6385
|
+
let st = class extends P {
|
|
6403
6386
|
constructor(e, s) {
|
|
6404
6387
|
super();
|
|
6405
6388
|
d(this, "_started", !1);
|
|
@@ -6407,23 +6390,23 @@ let st = class extends T {
|
|
|
6407
6390
|
}
|
|
6408
6391
|
start() {
|
|
6409
6392
|
this._started || (this._started = !0, this.disposeWithMe(
|
|
6410
|
-
|
|
6393
|
+
S(
|
|
6411
6394
|
this._lifecycleService.subscribeWithPrevious().subscribe((e) => this.initModulesOnStage(e))
|
|
6412
6395
|
)
|
|
6413
6396
|
));
|
|
6414
6397
|
}
|
|
6415
6398
|
initModulesOnStage(e) {
|
|
6416
|
-
const s =
|
|
6399
|
+
const s = Dt.get(e);
|
|
6417
6400
|
s == null || s.forEach((n) => {
|
|
6418
6401
|
this._injector.has(n) && this._injector.get(n);
|
|
6419
6402
|
});
|
|
6420
6403
|
}
|
|
6421
6404
|
};
|
|
6422
6405
|
st = ms([
|
|
6423
|
-
|
|
6424
|
-
|
|
6406
|
+
ue(0, U(V)),
|
|
6407
|
+
ue(1, U(ot))
|
|
6425
6408
|
], st);
|
|
6426
|
-
function
|
|
6409
|
+
function fi(t, e) {
|
|
6427
6410
|
if (t)
|
|
6428
6411
|
try {
|
|
6429
6412
|
return t[e] ? t[e] : e.split(".").reduce((s, n) => s[n], t);
|
|
@@ -6431,18 +6414,18 @@ function Ei(t, e) {
|
|
|
6431
6414
|
return console.warn("Key %s not found", e), e;
|
|
6432
6415
|
}
|
|
6433
6416
|
}
|
|
6434
|
-
class Lt extends
|
|
6417
|
+
class Lt extends P {
|
|
6435
6418
|
constructor() {
|
|
6436
6419
|
super();
|
|
6437
|
-
d(this, "currentLocale",
|
|
6420
|
+
d(this, "currentLocale", Re.ZH_CN);
|
|
6438
6421
|
d(this, "locales", null);
|
|
6439
|
-
d(this, "localeChanged$", new
|
|
6422
|
+
d(this, "localeChanged$", new D());
|
|
6440
6423
|
d(this, "t", (s) => {
|
|
6441
6424
|
if (!this.locales)
|
|
6442
6425
|
throw new Error("Locale not initialized");
|
|
6443
|
-
return
|
|
6426
|
+
return fi(this.locales[this.currentLocale], s) ?? s;
|
|
6444
6427
|
});
|
|
6445
|
-
this.disposeWithMe(
|
|
6428
|
+
this.disposeWithMe(S(() => this.localeChanged$.complete()));
|
|
6446
6429
|
}
|
|
6447
6430
|
/**
|
|
6448
6431
|
* Load more locales after init
|
|
@@ -6465,15 +6448,15 @@ class Lt extends T {
|
|
|
6465
6448
|
return this.currentLocale;
|
|
6466
6449
|
}
|
|
6467
6450
|
}
|
|
6468
|
-
const Os = G("resource-manager-service"),
|
|
6469
|
-
Rs(
|
|
6470
|
-
var
|
|
6471
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6451
|
+
const Os = G("resource-manager-service"), gi = G("ResourcePersistenceService");
|
|
6452
|
+
Rs(w.Ready, gi);
|
|
6453
|
+
var Ei = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, mi = (t, e, s, n) => {
|
|
6454
|
+
for (var r = n > 1 ? void 0 : n ? Ri(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6472
6455
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6473
|
-
return n && r &&
|
|
6474
|
-
},
|
|
6456
|
+
return n && r && Ei(e, s, r), r;
|
|
6457
|
+
}, We = (t, e) => (s, n) => e(s, n, t);
|
|
6475
6458
|
const As = G("univer.permission-service"), Ge = "PERMISSION";
|
|
6476
|
-
let Ut = class extends
|
|
6459
|
+
let Ut = class extends P {
|
|
6477
6460
|
constructor(e, s) {
|
|
6478
6461
|
super();
|
|
6479
6462
|
d(this, "_permissionPointMap", /* @__PURE__ */ new Map());
|
|
@@ -6486,7 +6469,7 @@ let Ut = class extends T {
|
|
|
6486
6469
|
});
|
|
6487
6470
|
d(this, "addPermissionPoint", (e, s) => {
|
|
6488
6471
|
const n = this._permissionPointMap.get(e) || /* @__PURE__ */ new Map();
|
|
6489
|
-
return n.has(s.id) ? !1 : (n.set(s.id, new
|
|
6472
|
+
return n.has(s.id) ? !1 : (n.set(s.id, new K(s)), this._permissionPointMap.set(e, n), !0);
|
|
6490
6473
|
});
|
|
6491
6474
|
d(this, "updatePermissionPoint", (e, s, n) => {
|
|
6492
6475
|
const r = this._permissionPointMap.get(e);
|
|
@@ -6510,7 +6493,7 @@ let Ut = class extends T {
|
|
|
6510
6493
|
}
|
|
6511
6494
|
_init() {
|
|
6512
6495
|
this.disposeWithMe(
|
|
6513
|
-
|
|
6496
|
+
S(
|
|
6514
6497
|
this._univerInstanceService.sheetAdded$.subscribe((e) => {
|
|
6515
6498
|
this._resourceManagerService.registerPluginResource(e.getUnitId(), Ge, {
|
|
6516
6499
|
onChange: (s, n) => {
|
|
@@ -6524,7 +6507,7 @@ let Ut = class extends T {
|
|
|
6524
6507
|
})
|
|
6525
6508
|
)
|
|
6526
6509
|
), this.disposeWithMe(
|
|
6527
|
-
|
|
6510
|
+
S(
|
|
6528
6511
|
this._univerInstanceService.sheetDisposed$.subscribe((e) => {
|
|
6529
6512
|
this._resourceManagerService.disposePluginResource(e.getUnitId(), Ge);
|
|
6530
6513
|
})
|
|
@@ -6549,9 +6532,9 @@ let Ut = class extends T {
|
|
|
6549
6532
|
throw new Error(`${i} permissionPoint is not exist`);
|
|
6550
6533
|
return o.asObservable();
|
|
6551
6534
|
});
|
|
6552
|
-
return
|
|
6535
|
+
return ws(r).pipe(
|
|
6553
6536
|
// Check that all permissions exist
|
|
6554
|
-
|
|
6537
|
+
Ss((i) => (i.every((o) => this._permissionPointMap.get(o.id)), i))
|
|
6555
6538
|
);
|
|
6556
6539
|
}
|
|
6557
6540
|
composePermission(e, s) {
|
|
@@ -6564,27 +6547,27 @@ let Ut = class extends T {
|
|
|
6564
6547
|
});
|
|
6565
6548
|
}
|
|
6566
6549
|
};
|
|
6567
|
-
Ut =
|
|
6568
|
-
Es(
|
|
6569
|
-
|
|
6570
|
-
|
|
6550
|
+
Ut = mi([
|
|
6551
|
+
Es(w.Starting, Ut),
|
|
6552
|
+
We(0, U(Os)),
|
|
6553
|
+
We(1, U(Ot))
|
|
6571
6554
|
], Ut);
|
|
6572
|
-
const
|
|
6573
|
-
class Kt extends
|
|
6555
|
+
const Oi = "univer.editable";
|
|
6556
|
+
class Kt extends Jn {
|
|
6574
6557
|
constructor(s) {
|
|
6575
6558
|
super();
|
|
6576
|
-
d(this, "id",
|
|
6559
|
+
d(this, "id", Oi);
|
|
6577
6560
|
d(this, "value", !0);
|
|
6578
6561
|
d(this, "unitID");
|
|
6579
6562
|
this.unitID = s;
|
|
6580
6563
|
}
|
|
6581
6564
|
}
|
|
6582
|
-
var
|
|
6583
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6565
|
+
var Ai = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ci = (t, e, s, n) => {
|
|
6566
|
+
for (var r = n > 1 ? void 0 : n ? Ii(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6584
6567
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6585
|
-
return n && r &&
|
|
6568
|
+
return n && r && Ai(e, s, r), r;
|
|
6586
6569
|
}, ke = (t, e) => (s, n) => e(s, n, t);
|
|
6587
|
-
let
|
|
6570
|
+
let Pt = class extends P {
|
|
6588
6571
|
constructor(t, e) {
|
|
6589
6572
|
super(), this._permissionService = t, this._univerInstanceService = e, this._init();
|
|
6590
6573
|
}
|
|
@@ -6605,16 +6588,16 @@ let Tt = class extends T {
|
|
|
6605
6588
|
this._permissionService.updatePermissionPoint(t, s.id, e);
|
|
6606
6589
|
}
|
|
6607
6590
|
};
|
|
6608
|
-
|
|
6609
|
-
Es(
|
|
6610
|
-
ke(0,
|
|
6611
|
-
ke(1,
|
|
6612
|
-
],
|
|
6613
|
-
class
|
|
6591
|
+
Pt = Ci([
|
|
6592
|
+
Es(w.Starting, Pt),
|
|
6593
|
+
ke(0, U(As)),
|
|
6594
|
+
ke(1, U(Ot))
|
|
6595
|
+
], Pt);
|
|
6596
|
+
class Ni extends P {
|
|
6614
6597
|
constructor() {
|
|
6615
6598
|
super(...arguments);
|
|
6616
6599
|
d(this, "_resourceMap", /* @__PURE__ */ new Map());
|
|
6617
|
-
d(this, "_register$", new
|
|
6600
|
+
d(this, "_register$", new D());
|
|
6618
6601
|
d(this, "register$", this._register$.asObservable());
|
|
6619
6602
|
}
|
|
6620
6603
|
getAllResource(s) {
|
|
@@ -6640,7 +6623,7 @@ class bi extends T {
|
|
|
6640
6623
|
const i = this._resourceMap.get(s) || /* @__PURE__ */ new Map();
|
|
6641
6624
|
if (i.has(n))
|
|
6642
6625
|
throw new Error("the pluginName is registered");
|
|
6643
|
-
return i.set(n, r), this._resourceMap.set(s, i), this._register$.next({ unitID: s, resourceName: n, hook: r }),
|
|
6626
|
+
return i.set(n, r), this._resourceMap.set(s, i), this._register$.next({ unitID: s, resourceName: n, hook: r }), S(() => i.delete(n));
|
|
6644
6627
|
}
|
|
6645
6628
|
disposePluginResource(s, n) {
|
|
6646
6629
|
const r = this._resourceMap.get(s);
|
|
@@ -6650,13 +6633,13 @@ class bi extends T {
|
|
|
6650
6633
|
this._register$.complete(), this._resourceMap.clear();
|
|
6651
6634
|
}
|
|
6652
6635
|
}
|
|
6653
|
-
class Ve extends
|
|
6636
|
+
class Ve extends P {
|
|
6654
6637
|
constructor() {
|
|
6655
6638
|
super();
|
|
6656
6639
|
d(this, "_currentTheme");
|
|
6657
|
-
d(this, "_currentTheme$", new
|
|
6640
|
+
d(this, "_currentTheme$", new K({}));
|
|
6658
6641
|
d(this, "currentTheme$", this._currentTheme$.asObservable());
|
|
6659
|
-
this.disposeWithMe(
|
|
6642
|
+
this.disposeWithMe(S(() => this._currentTheme$.complete()));
|
|
6660
6643
|
}
|
|
6661
6644
|
getCurrentTheme() {
|
|
6662
6645
|
if (!this._currentTheme)
|
|
@@ -6667,26 +6650,26 @@ class Ve extends T {
|
|
|
6667
6650
|
this._currentTheme = s, this._currentTheme$.next(s);
|
|
6668
6651
|
}
|
|
6669
6652
|
}
|
|
6670
|
-
const
|
|
6653
|
+
const bi = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", wi = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", Yo = `\r
|
|
6671
6654
|
`;
|
|
6672
|
-
var
|
|
6673
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6655
|
+
var Si = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, vi = (t, e, s, n) => {
|
|
6656
|
+
for (var r = n > 1 ? void 0 : n ? Li(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6674
6657
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6675
|
-
return n && r &&
|
|
6658
|
+
return n && r && Si(e, s, r), r;
|
|
6676
6659
|
}, Xt = (t, e) => (s, n) => e(s, n, t);
|
|
6677
|
-
const
|
|
6678
|
-
let
|
|
6660
|
+
const Ce = G("univer.undo-redo.service"), Mi = 20;
|
|
6661
|
+
let ce = class extends P {
|
|
6679
6662
|
constructor(e, s, n) {
|
|
6680
6663
|
super();
|
|
6681
6664
|
d(this, "undoRedoStatus$");
|
|
6682
|
-
d(this, "_undoRedoStatus$", new
|
|
6665
|
+
d(this, "_undoRedoStatus$", new K({ undos: 0, redos: 0 }));
|
|
6683
6666
|
d(this, "_undoStacks", /* @__PURE__ */ new Map());
|
|
6684
6667
|
d(this, "_redoStacks", /* @__PURE__ */ new Map());
|
|
6685
|
-
this._univerInstanceService = e, this._commandService = s, this._contextService = n, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(
|
|
6668
|
+
this._univerInstanceService = e, this._commandService = s, this._contextService = n, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(Di)), this.disposeWithMe(this._commandService.registerCommand(Ui)), this.disposeWithMe(S(() => this._undoRedoStatus$.complete())), this.disposeWithMe(S(this._univerInstanceService.focused$.subscribe(() => this._updateStatus())));
|
|
6686
6669
|
}
|
|
6687
6670
|
pushUndoRedo(e) {
|
|
6688
6671
|
const { unitID: s } = e, n = this._getRedoStack(s, !0), r = this._getUndoStack(s, !0);
|
|
6689
|
-
n.length = 0, r.push(e), r.length >
|
|
6672
|
+
n.length = 0, r.push(e), r.length > Mi && r.splice(0, 1), this._updateStatus();
|
|
6690
6673
|
}
|
|
6691
6674
|
clearUndoRedo(e) {
|
|
6692
6675
|
const s = this._getRedoStack(e);
|
|
@@ -6739,16 +6722,17 @@ let ue = class extends T {
|
|
|
6739
6722
|
return this._getRedoStack(e, !0);
|
|
6740
6723
|
}
|
|
6741
6724
|
_getFocusedUniverInstanceId() {
|
|
6742
|
-
var
|
|
6725
|
+
var i, o;
|
|
6743
6726
|
let e = "";
|
|
6744
|
-
|
|
6727
|
+
const s = this._contextService.getContextValue(ae), n = this._contextService.getContextValue(oi), r = this._contextService.getContextValue(ii);
|
|
6728
|
+
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
6729
|
}
|
|
6746
6730
|
};
|
|
6747
|
-
|
|
6731
|
+
ce = vi([
|
|
6748
6732
|
Xt(0, Ot),
|
|
6749
|
-
Xt(1,
|
|
6750
|
-
Xt(2,
|
|
6751
|
-
],
|
|
6733
|
+
Xt(1, Bt),
|
|
6734
|
+
Xt(2, Et)
|
|
6735
|
+
], ce);
|
|
6752
6736
|
class Is {
|
|
6753
6737
|
dispose() {
|
|
6754
6738
|
}
|
|
@@ -6756,34 +6740,34 @@ class Is {
|
|
|
6756
6740
|
return !1;
|
|
6757
6741
|
}
|
|
6758
6742
|
}
|
|
6759
|
-
const
|
|
6743
|
+
const Di = new class extends Is {
|
|
6760
6744
|
constructor() {
|
|
6761
6745
|
super(...arguments);
|
|
6762
|
-
d(this, "type",
|
|
6746
|
+
d(this, "type", Ee.COMMAND);
|
|
6763
6747
|
d(this, "id", "univer.command.undo");
|
|
6764
6748
|
}
|
|
6765
6749
|
async handler(e) {
|
|
6766
|
-
const s = e.get(
|
|
6750
|
+
const s = e.get(Ce), n = s.pitchTopUndoElement();
|
|
6767
6751
|
if (!n)
|
|
6768
6752
|
return !1;
|
|
6769
|
-
const r = e.get(
|
|
6753
|
+
const r = e.get(Bt);
|
|
6770
6754
|
return (n.undo ? await n.undo(n.undoMutations) : Qe(n.undoMutations, r)) ? (s.popUndoToRedo(), !0) : !1;
|
|
6771
6755
|
}
|
|
6772
|
-
}(),
|
|
6756
|
+
}(), Ui = new class extends Is {
|
|
6773
6757
|
constructor() {
|
|
6774
6758
|
super(...arguments);
|
|
6775
|
-
d(this, "type",
|
|
6759
|
+
d(this, "type", Ee.COMMAND);
|
|
6776
6760
|
d(this, "id", "univer.command.redo");
|
|
6777
6761
|
}
|
|
6778
6762
|
async handler(e) {
|
|
6779
|
-
const s = e.get(
|
|
6763
|
+
const s = e.get(Ce), n = s.pitchTopRedoElement();
|
|
6780
6764
|
if (!n)
|
|
6781
6765
|
return !1;
|
|
6782
|
-
const r = e.get(
|
|
6766
|
+
const r = e.get(Bt);
|
|
6783
6767
|
return (n.redo ? await n.redo(n.redoMutations) : Qe(n.redoMutations, r)) ? (s.popRedoToUndo(), !0) : !1;
|
|
6784
6768
|
}
|
|
6785
6769
|
}();
|
|
6786
|
-
class
|
|
6770
|
+
class Wt extends P {
|
|
6787
6771
|
constructor() {
|
|
6788
6772
|
super(...arguments);
|
|
6789
6773
|
d(this, "_started", !1);
|
|
@@ -6791,7 +6775,7 @@ class $t extends T {
|
|
|
6791
6775
|
addPlugins(s) {
|
|
6792
6776
|
if (this._started) {
|
|
6793
6777
|
const n = s.map(([r, i]) => this._initPlugin(r, i));
|
|
6794
|
-
this._pluginsRunLifecycle(n,
|
|
6778
|
+
this._pluginsRunLifecycle(n, w.Starting), setTimeout(() => this._takePluginsThroughLifecycle(n));
|
|
6795
6779
|
} else {
|
|
6796
6780
|
const n = s.map(([r, i]) => this._initPlugin(r, i));
|
|
6797
6781
|
this._takePluginsThroughLifecycle(n), this._started = !0;
|
|
@@ -6799,9 +6783,9 @@ class $t extends T {
|
|
|
6799
6783
|
}
|
|
6800
6784
|
_takePluginsThroughLifecycle(s, n = !1) {
|
|
6801
6785
|
this.disposeWithMe(
|
|
6802
|
-
|
|
6786
|
+
S(
|
|
6803
6787
|
this._lifecycleService.subscribeWithPrevious().subscribe((r) => {
|
|
6804
|
-
n && r ===
|
|
6788
|
+
n && r === w.Starting || this._pluginsRunLifecycle(s, r);
|
|
6805
6789
|
})
|
|
6806
6790
|
)
|
|
6807
6791
|
);
|
|
@@ -6809,16 +6793,16 @@ class $t extends T {
|
|
|
6809
6793
|
_pluginsRunLifecycle(s, n) {
|
|
6810
6794
|
s.forEach((r) => {
|
|
6811
6795
|
switch (n) {
|
|
6812
|
-
case
|
|
6796
|
+
case w.Starting:
|
|
6813
6797
|
r.onStarting(this._injector);
|
|
6814
6798
|
break;
|
|
6815
|
-
case
|
|
6799
|
+
case w.Ready:
|
|
6816
6800
|
r.onReady();
|
|
6817
6801
|
break;
|
|
6818
|
-
case
|
|
6802
|
+
case w.Rendered:
|
|
6819
6803
|
r.onRendered();
|
|
6820
6804
|
break;
|
|
6821
|
-
case
|
|
6805
|
+
case w.Steady:
|
|
6822
6806
|
r.onSteady();
|
|
6823
6807
|
break;
|
|
6824
6808
|
}
|
|
@@ -6828,12 +6812,12 @@ class $t extends T {
|
|
|
6828
6812
|
return this._injector.createInstance(s, n);
|
|
6829
6813
|
}
|
|
6830
6814
|
}
|
|
6831
|
-
var
|
|
6832
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6815
|
+
var Pi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, Ti = (t, e, s, n) => {
|
|
6816
|
+
for (var r = n > 1 ? void 0 : n ? xi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6833
6817
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6834
|
-
return n && r &&
|
|
6818
|
+
return n && r && Pi(e, s, r), r;
|
|
6835
6819
|
}, Qt = (t, e) => (s, n) => e(s, n, t);
|
|
6836
|
-
let
|
|
6820
|
+
let he = class extends Wt {
|
|
6837
6821
|
constructor(t, e, s) {
|
|
6838
6822
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6839
6823
|
}
|
|
@@ -6841,35 +6825,35 @@ let ce = class extends $t {
|
|
|
6841
6825
|
return this._injector.createInstance(Rt, t);
|
|
6842
6826
|
}
|
|
6843
6827
|
};
|
|
6844
|
-
|
|
6845
|
-
Qt(0,
|
|
6846
|
-
Qt(1,
|
|
6847
|
-
Qt(2,
|
|
6848
|
-
],
|
|
6849
|
-
var
|
|
6850
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6828
|
+
he = Ti([
|
|
6829
|
+
Qt(0, U(ot)),
|
|
6830
|
+
Qt(1, U(V)),
|
|
6831
|
+
Qt(2, U(st))
|
|
6832
|
+
], he);
|
|
6833
|
+
var Fi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Hi = (t, e, s, n) => {
|
|
6834
|
+
for (var r = n > 1 ? void 0 : n ? pi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6851
6835
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6852
|
-
return n && r &&
|
|
6836
|
+
return n && r && Fi(e, s, r), r;
|
|
6853
6837
|
}, Zt = (t, e) => (s, n) => e(s, n, t);
|
|
6854
|
-
let
|
|
6838
|
+
let de = class extends Wt {
|
|
6855
6839
|
constructor(t, e, s) {
|
|
6856
6840
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6857
6841
|
}
|
|
6858
6842
|
createSheet(t) {
|
|
6859
|
-
return this._injector.createInstance(
|
|
6843
|
+
return this._injector.createInstance($t, t);
|
|
6860
6844
|
}
|
|
6861
6845
|
};
|
|
6862
|
-
|
|
6863
|
-
Zt(0,
|
|
6864
|
-
Zt(1,
|
|
6865
|
-
Zt(2,
|
|
6866
|
-
],
|
|
6867
|
-
var $i = Object.defineProperty,
|
|
6868
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6846
|
+
de = Hi([
|
|
6847
|
+
Zt(0, U(ot)),
|
|
6848
|
+
Zt(1, U(V)),
|
|
6849
|
+
Zt(2, U(st))
|
|
6850
|
+
], de);
|
|
6851
|
+
var $i = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, Wi = (t, e, s, n) => {
|
|
6852
|
+
for (var r = n > 1 ? void 0 : n ? Bi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6869
6853
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6870
6854
|
return n && r && $i(e, s, r), r;
|
|
6871
|
-
},
|
|
6872
|
-
let
|
|
6855
|
+
}, qt = (t, e) => (s, n) => e(s, n, t);
|
|
6856
|
+
let _e = class extends Wt {
|
|
6873
6857
|
constructor(t, e, s) {
|
|
6874
6858
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6875
6859
|
}
|
|
@@ -6877,17 +6861,17 @@ let de = class extends $t {
|
|
|
6877
6861
|
return this._injector.createInstance(gs, t);
|
|
6878
6862
|
}
|
|
6879
6863
|
};
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
],
|
|
6885
|
-
const
|
|
6886
|
-
class
|
|
6864
|
+
_e = Wi([
|
|
6865
|
+
qt(0, U(ot)),
|
|
6866
|
+
qt(1, U(V)),
|
|
6867
|
+
qt(2, U(st))
|
|
6868
|
+
], _e);
|
|
6869
|
+
const Gi = 200;
|
|
6870
|
+
class Ko extends Wt {
|
|
6887
6871
|
constructor(s = {}) {
|
|
6888
6872
|
super();
|
|
6889
6873
|
d(this, "_injector");
|
|
6890
|
-
d(this, "_univerPluginStore", new
|
|
6874
|
+
d(this, "_univerPluginStore", new Ds());
|
|
6891
6875
|
d(this, "_univerPluginRegistry", new Us());
|
|
6892
6876
|
d(this, "_univerSheet", null);
|
|
6893
6877
|
d(this, "_univerDoc", null);
|
|
@@ -6895,7 +6879,7 @@ class Xo extends $t {
|
|
|
6895
6879
|
d(this, "_initLazyPluginsTimer");
|
|
6896
6880
|
this._injector = this._initDependencies();
|
|
6897
6881
|
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(
|
|
6882
|
+
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
6883
|
}
|
|
6900
6884
|
get _univerInstanceService() {
|
|
6901
6885
|
return this._injector.get(Ot);
|
|
@@ -6927,7 +6911,7 @@ class Xo extends $t {
|
|
|
6927
6911
|
r();
|
|
6928
6912
|
else {
|
|
6929
6913
|
this._tryProgressToStart();
|
|
6930
|
-
const i = this._univerSheet = this._injector.createInstance(
|
|
6914
|
+
const i = this._univerSheet = this._injector.createInstance(de), o = this._univerPluginRegistry.getRegisterPlugins(L.Sheet).map((a) => [a.plugin, a.options]);
|
|
6931
6915
|
this._univerPluginRegistry.clearPluginsOfType(L.Sheet), i.addPlugins(o), r(), this._tryProgressToReady();
|
|
6932
6916
|
}
|
|
6933
6917
|
return n;
|
|
@@ -6941,7 +6925,7 @@ class Xo extends $t {
|
|
|
6941
6925
|
r();
|
|
6942
6926
|
else {
|
|
6943
6927
|
this._tryProgressToStart();
|
|
6944
|
-
const i = this._univerDoc = this._injector.createInstance(
|
|
6928
|
+
const i = this._univerDoc = this._injector.createInstance(he), o = this._univerPluginRegistry.getRegisterPlugins(L.Doc).map((a) => [a.plugin, a.options]);
|
|
6945
6929
|
this._univerPluginRegistry.clearPluginsOfType(L.Doc), i.addPlugins(o), r(), this._tryProgressToReady();
|
|
6946
6930
|
}
|
|
6947
6931
|
return n;
|
|
@@ -6955,17 +6939,17 @@ class Xo extends $t {
|
|
|
6955
6939
|
r();
|
|
6956
6940
|
else {
|
|
6957
6941
|
this._tryProgressToStart();
|
|
6958
|
-
const i = this._univerSlide = this._injector.createInstance(
|
|
6942
|
+
const i = this._univerSlide = this._injector.createInstance(_e), o = this._univerPluginRegistry.getRegisterPlugins(L.Slide).map((a) => [a.plugin, a.options]);
|
|
6959
6943
|
this._univerPluginRegistry.clearPluginsOfType(L.Slide), i.addPlugins(o), r(), this._tryProgressToReady();
|
|
6960
6944
|
}
|
|
6961
6945
|
return n;
|
|
6962
6946
|
}
|
|
6963
6947
|
_initDependencies() {
|
|
6964
|
-
return new
|
|
6948
|
+
return new ot([
|
|
6965
6949
|
[
|
|
6966
6950
|
Ot,
|
|
6967
6951
|
{
|
|
6968
|
-
useFactory: (s) => new
|
|
6952
|
+
useFactory: (s) => new le(
|
|
6969
6953
|
{
|
|
6970
6954
|
createUniverDoc: (n) => this.createUniverDoc(n),
|
|
6971
6955
|
createUniverSheet: (n) => this.createUniverSheet(n),
|
|
@@ -6973,7 +6957,7 @@ class Xo extends $t {
|
|
|
6973
6957
|
},
|
|
6974
6958
|
s
|
|
6975
6959
|
),
|
|
6976
|
-
deps: [
|
|
6960
|
+
deps: [Et]
|
|
6977
6961
|
}
|
|
6978
6962
|
],
|
|
6979
6963
|
[Zs],
|
|
@@ -6982,14 +6966,14 @@ class Xo extends $t {
|
|
|
6982
6966
|
[V],
|
|
6983
6967
|
[st],
|
|
6984
6968
|
[As, { useClass: Ut }],
|
|
6985
|
-
[
|
|
6986
|
-
[
|
|
6987
|
-
[
|
|
6988
|
-
[
|
|
6969
|
+
[Pt],
|
|
6970
|
+
[ct, { useClass: ks, lazy: !0 }],
|
|
6971
|
+
[Bt, { useClass: yt, lazy: !0 }],
|
|
6972
|
+
[Ce, { useClass: ce, lazy: !0 }],
|
|
6989
6973
|
[Xs, { useClass: Qs }],
|
|
6990
|
-
[
|
|
6991
|
-
[
|
|
6992
|
-
[Os, { useClass:
|
|
6974
|
+
[Et, { useClass: Ws }],
|
|
6975
|
+
[Js, { useClass: qs, lazy: !0 }],
|
|
6976
|
+
[Os, { useClass: Ni, lazy: !0 }]
|
|
6993
6977
|
]);
|
|
6994
6978
|
}
|
|
6995
6979
|
/**
|
|
@@ -6999,7 +6983,7 @@ class Xo extends $t {
|
|
|
6999
6983
|
this._started || (this._injector.get(st).start(), this._started = !0);
|
|
7000
6984
|
}
|
|
7001
6985
|
_tryProgressToReady() {
|
|
7002
|
-
this._injector.get(V).stage <
|
|
6986
|
+
this._injector.get(V).stage < w.Ready && (this._injector.get(V).stage = w.Ready, this._univerPluginStore.forEachPlugin((n) => n.onReady()));
|
|
7003
6987
|
}
|
|
7004
6988
|
// #region register plugins
|
|
7005
6989
|
/** Register a plugin into univer. */
|
|
@@ -7020,7 +7004,7 @@ class Xo extends $t {
|
|
|
7020
7004
|
_scheduleInitPluginAfterStarted() {
|
|
7021
7005
|
this._initLazyPluginsTimer === void 0 && (this._initLazyPluginsTimer = setTimeout(
|
|
7022
7006
|
() => this._flushLazyPlugins(),
|
|
7023
|
-
|
|
7007
|
+
Gi
|
|
7024
7008
|
));
|
|
7025
7009
|
}
|
|
7026
7010
|
_flushLazyPlugins() {
|
|
@@ -7063,7 +7047,7 @@ class Xo extends $t {
|
|
|
7063
7047
|
}
|
|
7064
7048
|
// #endregion
|
|
7065
7049
|
}
|
|
7066
|
-
function
|
|
7050
|
+
function Xo(t) {
|
|
7067
7051
|
const e = new MessageChannel();
|
|
7068
7052
|
let s = !1;
|
|
7069
7053
|
return e.port1.onmessage = () => {
|
|
@@ -7072,7 +7056,7 @@ function Qo(t) {
|
|
|
7072
7056
|
s = !0;
|
|
7073
7057
|
};
|
|
7074
7058
|
}
|
|
7075
|
-
class
|
|
7059
|
+
class Qo extends ge {
|
|
7076
7060
|
/**
|
|
7077
7061
|
* Create a new WorkBookObserver with the specified callback
|
|
7078
7062
|
* @param callback the callback that will be executed for that WorkBookObserver
|
|
@@ -7083,7 +7067,7 @@ class Zo extends fe {
|
|
|
7083
7067
|
add(e) {
|
|
7084
7068
|
if (!e)
|
|
7085
7069
|
return null;
|
|
7086
|
-
const s = new
|
|
7070
|
+
const s = new fe(e, this);
|
|
7087
7071
|
return this._observers = [s], this._onObserverAdded && this._onObserverAdded(s), s;
|
|
7088
7072
|
}
|
|
7089
7073
|
makeObserverTopPriority() {
|
|
@@ -7091,7 +7075,7 @@ class Zo extends fe {
|
|
|
7091
7075
|
makeObserverBottomPriority() {
|
|
7092
7076
|
}
|
|
7093
7077
|
}
|
|
7094
|
-
const
|
|
7078
|
+
const Zo = G("ILocalStorageService"), qo = (t) => `sheet_interceptor_${t}`, ki = (t) => (
|
|
7095
7079
|
// eslint-disable-next-line func-names
|
|
7096
7080
|
function(e, s) {
|
|
7097
7081
|
let n = -1;
|
|
@@ -7103,7 +7087,7 @@ const Jo = G("ILocalStorageService"), qo = (t) => `sheet_interceptor_${t}`, ji =
|
|
|
7103
7087
|
return r(0, e);
|
|
7104
7088
|
}
|
|
7105
7089
|
);
|
|
7106
|
-
class
|
|
7090
|
+
class Jo {
|
|
7107
7091
|
constructor(e) {
|
|
7108
7092
|
d(this, "_interceptorsByName", /* @__PURE__ */ new Map());
|
|
7109
7093
|
d(this, "_interceptorPoints");
|
|
@@ -7111,7 +7095,7 @@ class yo {
|
|
|
7111
7095
|
}
|
|
7112
7096
|
fetchThroughInterceptors(e) {
|
|
7113
7097
|
const s = e, n = this._interceptorsByName.get(s);
|
|
7114
|
-
return
|
|
7098
|
+
return ki(n || []);
|
|
7115
7099
|
}
|
|
7116
7100
|
intercept(e, s) {
|
|
7117
7101
|
const n = e;
|
|
@@ -7120,56 +7104,56 @@ class yo {
|
|
|
7120
7104
|
return r.push(s), this._interceptorsByName.set(
|
|
7121
7105
|
n,
|
|
7122
7106
|
r.sort((i, o) => (o.priority ?? 0) - (i.priority ?? 0))
|
|
7123
|
-
), () =>
|
|
7107
|
+
), () => it(this._interceptorsByName.get(n), s);
|
|
7124
7108
|
}
|
|
7125
7109
|
getInterceptPoints() {
|
|
7126
7110
|
return this._interceptorPoints;
|
|
7127
7111
|
}
|
|
7128
7112
|
}
|
|
7129
|
-
const je = `'?\\[((?![\\/?:"<>|*\\\\]).)*\\]`,
|
|
7130
|
-
function
|
|
7113
|
+
const je = `'?\\[((?![\\/?:"<>|*\\\\]).)*\\]`, Vi = /[^0-9]/g, ji = /[^A-Za-z]/g;
|
|
7114
|
+
function xt(t) {
|
|
7131
7115
|
const e = t[0] === "$", n = t.substring(1).indexOf("$") > -1;
|
|
7132
|
-
return e && n ?
|
|
7116
|
+
return e && n ? Z.ALL : e ? Z.COLUMN : n ? Z.ROW : Z.NONE;
|
|
7133
7117
|
}
|
|
7134
|
-
function
|
|
7118
|
+
function yo(t) {
|
|
7135
7119
|
const e = t.split("!");
|
|
7136
7120
|
e.length > 1 && (t = e[e.length - 1]);
|
|
7137
7121
|
const s = t.split(":");
|
|
7138
7122
|
return s.length > 1 ? {
|
|
7139
|
-
startAbsoluteRefType:
|
|
7140
|
-
endAbsoluteRefType:
|
|
7141
|
-
} : { startAbsoluteRefType:
|
|
7123
|
+
startAbsoluteRefType: xt(s[0]),
|
|
7124
|
+
endAbsoluteRefType: xt(s[1])
|
|
7125
|
+
} : { startAbsoluteRefType: xt(s[0]) };
|
|
7142
7126
|
}
|
|
7143
|
-
function ze(t =
|
|
7127
|
+
function ze(t = Z.NONE) {
|
|
7144
7128
|
let e = "", s = "";
|
|
7145
|
-
return t ===
|
|
7129
|
+
return t === Z.ROW ? e = "$" : t === Z.COLUMN ? s = "$" : t === Z.ALL && (e = "$", s = "$"), {
|
|
7146
7130
|
rowAbsoluteString: e,
|
|
7147
7131
|
columnAbsoluteString: s
|
|
7148
7132
|
};
|
|
7149
7133
|
}
|
|
7150
|
-
function
|
|
7134
|
+
function Ne(t) {
|
|
7151
7135
|
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
7136
|
return l === u ? l : `${l}:${u}`;
|
|
7153
7137
|
}
|
|
7154
|
-
function
|
|
7155
|
-
return `${t}!${
|
|
7138
|
+
function zi(t, e) {
|
|
7139
|
+
return `${t}!${Ne(e)}`;
|
|
7156
7140
|
}
|
|
7157
|
-
function
|
|
7158
|
-
return `[${t}]${e}!${
|
|
7141
|
+
function Yi(t, e, s) {
|
|
7142
|
+
return `[${t}]${e}!${Ne(s)}`;
|
|
7159
7143
|
}
|
|
7160
|
-
function
|
|
7144
|
+
function ta(t) {
|
|
7161
7145
|
const { unitId: e, sheetName: s, range: n } = t;
|
|
7162
|
-
return e != null && e.length > 0 && s != null && s.length > 0 ?
|
|
7146
|
+
return e != null && e.length > 0 && s != null && s.length > 0 ? Yi(e, s, n) : s != null && s.length > 0 ? zi(s, n) : Ne(n);
|
|
7163
7147
|
}
|
|
7164
|
-
function
|
|
7165
|
-
const e = parseInt(t.replace(
|
|
7148
|
+
function Jt(t) {
|
|
7149
|
+
const e = parseInt(t.replace(Vi, "")) - 1, s = m.ABCatNum(t.replace(ji, "")), n = xt(t);
|
|
7166
7150
|
return {
|
|
7167
7151
|
row: e,
|
|
7168
7152
|
column: s,
|
|
7169
7153
|
absoluteRefType: n
|
|
7170
7154
|
};
|
|
7171
7155
|
}
|
|
7172
|
-
function
|
|
7156
|
+
function ea(t) {
|
|
7173
7157
|
const e = new RegExp(je).exec(t);
|
|
7174
7158
|
let s = "";
|
|
7175
7159
|
e != null && (s = e[0], t = t.replace(new RegExp(je, "g"), ""));
|
|
@@ -7178,7 +7162,7 @@ function sa(t) {
|
|
|
7178
7162
|
n > -1 ? (r = t.substring(0, n), i = t.substring(n)) : i = t;
|
|
7179
7163
|
const o = i.indexOf(":");
|
|
7180
7164
|
if (o === -1) {
|
|
7181
|
-
const E =
|
|
7165
|
+
const E = Jt(i), R = E.row, O = E.column, A = E.absoluteRefType;
|
|
7182
7166
|
return {
|
|
7183
7167
|
unitId: s,
|
|
7184
7168
|
sheetName: r,
|
|
@@ -7192,7 +7176,7 @@ function sa(t) {
|
|
|
7192
7176
|
}
|
|
7193
7177
|
};
|
|
7194
7178
|
}
|
|
7195
|
-
const a = i.substring(0, o), c = i.substring(o + 1), l =
|
|
7179
|
+
const a = i.substring(0, o), c = i.substring(o + 1), l = Jt(a), u = Jt(c), h = l.row, f = l.column, _ = u.row, g = u.column;
|
|
7196
7180
|
return {
|
|
7197
7181
|
unitId: s,
|
|
7198
7182
|
sheetName: r,
|
|
@@ -7208,246 +7192,245 @@ function sa(t) {
|
|
|
7208
7192
|
}
|
|
7209
7193
|
Ls();
|
|
7210
7194
|
export {
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
vr as
|
|
7215
|
-
Dr as AlignTypeV,
|
|
7195
|
+
Uo as ABCToNumber,
|
|
7196
|
+
Z as AbsoluteRefType,
|
|
7197
|
+
Lr as AlignTypeH,
|
|
7198
|
+
vr as AlignTypeV,
|
|
7216
7199
|
sn as AutoFillSeries,
|
|
7217
7200
|
se as BaselineOffset,
|
|
7218
|
-
|
|
7201
|
+
ur as BlockType,
|
|
7219
7202
|
I as BooleanNumber,
|
|
7220
7203
|
N as BorderStyleTypes,
|
|
7221
7204
|
nn as BorderType,
|
|
7222
|
-
|
|
7223
|
-
|
|
7205
|
+
rt as BulletAlignment,
|
|
7206
|
+
Pe as COLORS,
|
|
7224
7207
|
vt as CellValueType,
|
|
7225
|
-
|
|
7226
|
-
|
|
7208
|
+
ht as Color,
|
|
7209
|
+
Oe as ColorBuilder,
|
|
7227
7210
|
k as ColorKit,
|
|
7228
|
-
|
|
7229
|
-
|
|
7211
|
+
W as ColorType,
|
|
7212
|
+
dr as ColumnSeparatorType,
|
|
7230
7213
|
yt as CommandService,
|
|
7231
|
-
|
|
7214
|
+
Ee as CommandType,
|
|
7232
7215
|
rn as CommonHideTypes,
|
|
7233
7216
|
on as ConditionType,
|
|
7234
|
-
|
|
7235
|
-
|
|
7217
|
+
Cr as ContentAlignment,
|
|
7218
|
+
Ws as ContextService,
|
|
7236
7219
|
an as CopyPasteType,
|
|
7237
|
-
|
|
7238
|
-
|
|
7220
|
+
lr as CustomRangeType,
|
|
7221
|
+
Bo as DEFAULT_CELL,
|
|
7239
7222
|
_s as DEFAULT_DOC,
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7223
|
+
no as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
|
|
7224
|
+
Yo as DEFAULT_EMPTY_DOCUMENT_VALUE,
|
|
7225
|
+
Ho as DEFAULT_RANGE,
|
|
7226
|
+
wt as DEFAULT_RANGE_ARRAY,
|
|
7227
|
+
$o as DEFAULT_SELECTION,
|
|
7228
|
+
Kr as DEFAULT_SLIDE,
|
|
7246
7229
|
Yt as DEFAULT_STYLES,
|
|
7247
|
-
|
|
7230
|
+
Wr as DEFAULT_WORKBOOK,
|
|
7248
7231
|
oe as DEFAULT_WORKSHEET,
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7232
|
+
kr as DEFAULT_WORKSHEET_COLUMN_COUNT,
|
|
7233
|
+
Yr as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
|
|
7234
|
+
jr as DEFAULT_WORKSHEET_COLUMN_WIDTH,
|
|
7235
|
+
Gr as DEFAULT_WORKSHEET_ROW_COUNT,
|
|
7236
|
+
Vr as DEFAULT_WORKSHEET_ROW_HEIGHT,
|
|
7237
|
+
zr as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
|
|
7238
|
+
wi as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
7239
|
+
bi as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
7240
|
+
Or as DashStyleType,
|
|
7241
|
+
er as DataStreamTreeNodeType,
|
|
7259
7242
|
ns as DataStreamTreeTokenType,
|
|
7260
7243
|
ks as DesktopLogService,
|
|
7261
7244
|
ln as DeveloperMetadataVisibility,
|
|
7262
7245
|
un as Dimension,
|
|
7263
7246
|
cn as Direction,
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7247
|
+
P as Disposable,
|
|
7248
|
+
Bs as DisposableCollection,
|
|
7249
|
+
or as DocStyleType,
|
|
7267
7250
|
Rt as DocumentDataModel,
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
Qn as EntryIterator,
|
|
7251
|
+
Xr as EXTENSION_NAMES,
|
|
7252
|
+
Te as Entry,
|
|
7253
|
+
Xn as EntryIterator,
|
|
7272
7254
|
Zs as ErrorService,
|
|
7273
7255
|
Hs as EventState,
|
|
7274
7256
|
He as FOCUSING_DOC,
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7257
|
+
ii as FOCUSING_EDITOR,
|
|
7258
|
+
jo as FOCUSING_EDITOR_BUT_HIDDEN,
|
|
7259
|
+
zo as FOCUSING_EDITOR_INPUT_FORMULA,
|
|
7260
|
+
oi as FOCUSING_FORMULA_EDITOR,
|
|
7261
|
+
ae as FOCUSING_SHEET,
|
|
7262
|
+
$e as FOCUSING_SLIDE,
|
|
7263
|
+
qs as FloatingObjectManagerService,
|
|
7264
|
+
ar as FollowNumberWithType,
|
|
7283
7265
|
te as FontItalic,
|
|
7284
|
-
|
|
7266
|
+
Nr as FontStyleType,
|
|
7285
7267
|
ee as FontWeight,
|
|
7286
7268
|
hn as FormatType,
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
hr as GridType,
|
|
7269
|
+
Mt as GlyphType,
|
|
7270
|
+
cr as GridType,
|
|
7290
7271
|
mn as HLSColor,
|
|
7291
7272
|
ut as HorizontalAlign,
|
|
7292
|
-
|
|
7273
|
+
Bt as ICommandService,
|
|
7293
7274
|
Xs as IConfigService,
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7275
|
+
Et as IContextService,
|
|
7276
|
+
Js as IFloatingObjectManagerService,
|
|
7277
|
+
Zo as ILocalStorageService,
|
|
7278
|
+
ct as ILogService,
|
|
7298
7279
|
As as IPermissionService,
|
|
7299
7280
|
Os as IResourceManagerService,
|
|
7300
|
-
|
|
7301
|
-
|
|
7281
|
+
gi as ISnapshotPersistenceService,
|
|
7282
|
+
Ce as IUndoRedoService,
|
|
7302
7283
|
Ot as IUniverInstanceService,
|
|
7303
|
-
|
|
7284
|
+
Jo as InterceptorManager,
|
|
7304
7285
|
dn as InterpolationPointType,
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7286
|
+
Yn as KeyIterator,
|
|
7287
|
+
bt as LRUHelper,
|
|
7288
|
+
Qn as LRUMap,
|
|
7308
7289
|
V as LifecycleService,
|
|
7309
|
-
|
|
7310
|
-
|
|
7290
|
+
w as LifecycleStages,
|
|
7291
|
+
ce as LocalUndoRedoService,
|
|
7311
7292
|
Lt as LocaleService,
|
|
7312
|
-
|
|
7293
|
+
Re as LocaleType,
|
|
7313
7294
|
Gs as LogLevel,
|
|
7314
7295
|
ys as MemoryCursor,
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7296
|
+
Rr as NamedStyleType,
|
|
7297
|
+
Sr as NumberUnitType,
|
|
7298
|
+
X as ObjectMatrix,
|
|
7318
7299
|
br as ObjectRelativeFromH,
|
|
7319
7300
|
wr as ObjectRelativeFromV,
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7301
|
+
ge as Observable,
|
|
7302
|
+
Qo as ObservableHooks,
|
|
7303
|
+
fe as Observer,
|
|
7323
7304
|
Es as OnLifecycle,
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7305
|
+
po as PRESET_LIST_TYPE,
|
|
7306
|
+
Zr as PageElementType,
|
|
7307
|
+
Dr as PageOrientType,
|
|
7327
7308
|
fs as PageType,
|
|
7328
|
-
|
|
7329
|
-
|
|
7309
|
+
fr as ParagraphElementType,
|
|
7310
|
+
Jn as PermissionPoint,
|
|
7330
7311
|
Ut as PermissionService,
|
|
7331
7312
|
es as PermissionStatus,
|
|
7332
|
-
|
|
7313
|
+
Ms as Plugin,
|
|
7333
7314
|
L as PluginType,
|
|
7334
|
-
|
|
7315
|
+
Er as PositionedObjectLayoutType,
|
|
7335
7316
|
ie as PresetListType,
|
|
7336
7317
|
_n as ProtectionType,
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7318
|
+
Q as RANGE_TYPE,
|
|
7319
|
+
lo as RGBA_PAREN,
|
|
7320
|
+
ao as RGB_PAREN,
|
|
7340
7321
|
mt as Range,
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7322
|
+
gt as Rectangle,
|
|
7323
|
+
Ui as RedoCommand,
|
|
7324
|
+
Do as RefAlias,
|
|
7344
7325
|
Ye as Registry,
|
|
7345
7326
|
Ke as RegistryAsMap,
|
|
7346
7327
|
fn as RelativeDate,
|
|
7347
|
-
|
|
7348
|
-
|
|
7328
|
+
qr as RelativeSlideLink,
|
|
7329
|
+
Ni as ResourceManagerService,
|
|
7349
7330
|
ne as RgbColor,
|
|
7350
|
-
|
|
7351
|
-
|
|
7331
|
+
eo as RxDisposable,
|
|
7332
|
+
hr as SectionType,
|
|
7352
7333
|
gn as ShapeType,
|
|
7353
7334
|
Ze as SheetTypes,
|
|
7354
|
-
|
|
7335
|
+
ti as SheetViewModel,
|
|
7355
7336
|
gs as Slide,
|
|
7356
|
-
|
|
7357
|
-
|
|
7337
|
+
mr as SpacingRule,
|
|
7338
|
+
Qr as Styles,
|
|
7358
7339
|
Rn as THEME_COLORS,
|
|
7359
|
-
|
|
7340
|
+
Ar as TabStopAlignment,
|
|
7360
7341
|
En as TextDecoration,
|
|
7361
|
-
|
|
7362
|
-
|
|
7342
|
+
Tt as TextDirection,
|
|
7343
|
+
_r as TextDirectionType,
|
|
7363
7344
|
re as ThemeColor,
|
|
7364
7345
|
F as ThemeColorType,
|
|
7365
|
-
|
|
7346
|
+
me as ThemeColors,
|
|
7366
7347
|
Ve as ThemeService,
|
|
7367
7348
|
m as Tools,
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7349
|
+
Di as UndoCommand,
|
|
7350
|
+
Ko as Univer,
|
|
7351
|
+
he as UniverDoc,
|
|
7371
7352
|
Kt as UniverEditablePermission,
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
de as
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7353
|
+
Oi as UniverEditablePermissionPoint,
|
|
7354
|
+
hi as UniverInstanceType,
|
|
7355
|
+
Pt as UniverPermissionService,
|
|
7356
|
+
de as UniverSheet,
|
|
7357
|
+
_e as UniverSlide,
|
|
7358
|
+
T as UpdateDocsAttributeType,
|
|
7359
|
+
Kn as ValueIterator,
|
|
7360
|
+
_t as VerticalAlign,
|
|
7361
|
+
Ir as WidthType,
|
|
7362
|
+
$t as Workbook,
|
|
7381
7363
|
Ht as Worksheet,
|
|
7382
|
-
|
|
7383
|
-
|
|
7364
|
+
ft as WrapStrategy,
|
|
7365
|
+
gr as WrapTextType,
|
|
7384
7366
|
tn as binarySearchArray,
|
|
7385
7367
|
Mr as characterSpacingControlType,
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7368
|
+
Oo as checkParagraphHasBullet,
|
|
7369
|
+
Ao as checkParagraphHasIndent,
|
|
7370
|
+
Tn as checkParagraphHasIndentByStyle,
|
|
7371
|
+
io as codeToBlob,
|
|
7372
|
+
ki as composeInterceptors,
|
|
7373
|
+
So as concatMatrixArray,
|
|
7392
7374
|
qo as createInterceptorKey,
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7375
|
+
pe as createRowColIter,
|
|
7376
|
+
zn as datenum_local,
|
|
7377
|
+
yi as dedupe,
|
|
7378
|
+
Je as deepCompare,
|
|
7397
7379
|
pn as deleteContent,
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7380
|
+
ea as deserializeRangeWithSheet,
|
|
7381
|
+
xe as error,
|
|
7382
|
+
to as fromObservable,
|
|
7383
|
+
Io as generate,
|
|
7384
|
+
yo as getAbsoluteRefTypeWitString,
|
|
7385
|
+
xt as getAbsoluteRefTypeWithSingleString,
|
|
7386
|
+
j as getArrayLength,
|
|
7387
|
+
Ro as getBorderStyleType,
|
|
7388
|
+
Go as getCellValueType,
|
|
7389
|
+
Y as getColorStyle,
|
|
7408
7390
|
zt as getDocsUpdateBody,
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7391
|
+
oo as getReverseDirection,
|
|
7392
|
+
vo as getTypeFromPermissionItemList,
|
|
7393
|
+
Vo as getWorksheetUID,
|
|
7394
|
+
go as handleJsonToDom,
|
|
7395
|
+
Eo as handleStyleToString,
|
|
7396
|
+
No as hashAlgorithm,
|
|
7415
7397
|
ye as horizontalLineSegmentsSubtraction,
|
|
7416
|
-
|
|
7398
|
+
bo as insertMatrixArray,
|
|
7417
7399
|
Fn as insertTextToContent,
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7400
|
+
ho as isEmptyCell,
|
|
7401
|
+
fo as isFormulaId,
|
|
7402
|
+
_o as isFormulaString,
|
|
7403
|
+
Wo as isICellData,
|
|
7404
|
+
ko as isNullCell,
|
|
7405
|
+
$s as isObserver,
|
|
7424
7406
|
lt as isRealNum,
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7407
|
+
xn as isSameStyleTextRun,
|
|
7408
|
+
mo as isValidRange,
|
|
7409
|
+
co as makeCellRangeToRangeData,
|
|
7410
|
+
uo as makeCellToSelection,
|
|
7411
|
+
Fe as moveMatrixArray,
|
|
7430
7412
|
Po as numberToABC,
|
|
7431
7413
|
xo as numberToListABC,
|
|
7432
7414
|
en as orderSearchArray,
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7415
|
+
it as remove,
|
|
7416
|
+
tr as repeatStringNumTimes,
|
|
7417
|
+
Xo as requestImmediateMacroTask,
|
|
7436
7418
|
Rs as runOnLifecycle,
|
|
7437
|
-
|
|
7419
|
+
ro as searchArray,
|
|
7438
7420
|
Mo as selectionToArray,
|
|
7439
|
-
|
|
7440
|
-
|
|
7421
|
+
Ts as sequence,
|
|
7422
|
+
xs as sequenceAsync,
|
|
7441
7423
|
Qe as sequenceExecute,
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7424
|
+
so as sequenceExecuteAsync,
|
|
7425
|
+
Ne as serializeRange,
|
|
7426
|
+
ta as serializeRangeToRefString,
|
|
7427
|
+
zi as serializeRangeWithSheet,
|
|
7428
|
+
Yi as serializeRangeWithSpreadsheet,
|
|
7429
|
+
Lo as sliceMatrixArray,
|
|
7430
|
+
To as sortRules,
|
|
7431
|
+
Fo as sortRulesByDesc,
|
|
7450
7432
|
At as sortRulesFactory,
|
|
7451
|
-
|
|
7452
|
-
|
|
7433
|
+
wo as spliceArray,
|
|
7434
|
+
S as toDisposable,
|
|
7435
|
+
Co as update
|
|
7453
7436
|
};
|