@univerjs/sheets-conditional-formatting 0.5.0 → 0.5.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 +1 -1
- package/lib/es/index.js +1396 -1357
- package/lib/types/base/const.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -1
- package/lib/types/index.d.ts +1 -2
- package/lib/types/models/calculate-unit-v2/__test__/calculate.databar.spec.d.ts +16 -0
- package/lib/types/models/calculate-unit-v2/__test__/calculate.highlight.spec.d.ts +16 -0
- package/lib/types/{services → models/calculate-unit-v2}/__test__/test.util.d.ts +3 -3
- package/lib/types/models/calculate-unit-v2/base-calculate-unit.d.ts +53 -0
- package/lib/types/models/calculate-unit-v2/color-scale-calculate-unit.d.ts +11 -0
- package/lib/types/models/calculate-unit-v2/data-bar-calculate-unit.d.ts +17 -0
- package/lib/types/models/calculate-unit-v2/highlight-cell-calculate-unit.d.ts +12 -0
- package/lib/types/models/calculate-unit-v2/icon-set-calculate-unit.d.ts +18 -0
- package/lib/types/{services/calculate-unit → models/calculate-unit-v2}/utils.d.ts +2 -2
- package/lib/types/models/conditional-formatting-rule-model.d.ts +1 -5
- package/lib/types/models/conditional-formatting-view-model.d.ts +51 -23
- package/lib/types/render/data-bar.render.d.ts +1 -0
- package/lib/types/services/conditional-formatting-formula.service.d.ts +27 -11
- package/lib/types/services/conditional-formatting.service.d.ts +3 -30
- package/lib/types/utils/is-ranges-equal.d.ts +16 -2
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
- package/lib/types/services/calculate-unit/color-scale.d.ts +0 -2
- package/lib/types/services/calculate-unit/data-bar.d.ts +0 -2
- package/lib/types/services/calculate-unit/highlight-cell.d.ts +0 -2
- package/lib/types/services/calculate-unit/icon-set.d.ts +0 -2
- package/lib/types/services/calculate-unit/type.d.ts +0 -15
- /package/lib/types/{services/__test__/calculate.databar.spec.d.ts → models/calculate-unit-v2/__test__/base-calculate.spec.d.ts} +0 -0
- /package/lib/types/{services/__test__/cf.service.spec.d.ts → models/calculate-unit-v2/__test__/calculate.color.spec.d.ts} +0 -0
package/lib/es/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { Tools as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
var U2 = Object.defineProperty;
|
|
2
|
+
var V2 = (n, s, t) => s in n ? U2(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
|
|
3
|
+
var m = (n, s, t) => V2(n, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
+
import { Tools as H, CommandType as J, Inject as A, ICommandService as f2, Disposable as m2, ObjectMatrix as T, RefAlias as O2, CellValueType as _, BooleanNumber as R2, LRUMap as I2, dayjs as v, Range as N, ColorKit as b2, Injector as F2, RTree as $2, IUniverInstanceService as S2, IResourceManagerService as P2, UniverInstanceType as c2, Rectangle as X, Plugin as W2, touchDependencies as Z2, IConfigService as q2 } from "@univerjs/core";
|
|
5
|
+
import { isRangesEqual as B1 } from "@univerjs/core";
|
|
6
|
+
import { Subject as i2, BehaviorSubject as G2 } from "rxjs";
|
|
7
|
+
import { distinctUntilChanged as j2, bufferTime as H2, filter as X2, map as Y2 } from "rxjs/operators";
|
|
8
|
+
import { IActiveDirtyManagerService as K2, SetFormulaCalculationResultMutation as J2, SetOtherFormulaMutation as z2, RemoveOtherFormulaMutation as Q2, BooleanValue as A2, ERROR_TYPE_SET as _2 } from "@univerjs/engine-formula";
|
|
9
|
+
import { isObject as e0, SpreadsheetExtensionRegistry as L2, SheetExtension as B2, FIX_ONE_PIXEL_BLUR_OFFSET as t0 } from "@univerjs/engine-render";
|
|
10
|
+
import { SheetInterceptorService as r0, RemoveSheetCommand as s0, ReorderRangeMutation as n0, MoveRangeMutation as i0, MoveColsMutation as a0, MoveRowsMutation as l0, InsertRowMutation as o0, RemoveRowMutation as c0, RemoveColMutation as u0, InsertColMutation as h0, SetRangeValuesMutation as d0 } from "@univerjs/sheets";
|
|
11
|
+
const k2 = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
|
|
12
|
+
var M = /* @__PURE__ */ ((n) => (n.beginsWith = "beginsWith", n.endsWith = "endsWith", n.containsText = "containsText", n.notContainsText = "notContainsText", n.equal = "equal", n.notEqual = "notEqual", n.containsBlanks = "containsBlanks", n.notContainsBlanks = "notContainsBlanks", n.containsErrors = "containsErrors", n.notContainsErrors = "notContainsErrors", n))(M || {}), R = /* @__PURE__ */ ((n) => (n.today = "today", n.yesterday = "yesterday", n.tomorrow = "tomorrow", n.last7Days = "last7Days", n.thisMonth = "thisMonth", n.lastMonth = "lastMonth", n.nextMonth = "nextMonth", n.thisWeek = "thisWeek", n.lastWeek = "lastWeek", n.nextWeek = "nextWeek", n))(R || {}), w = /* @__PURE__ */ ((n) => (n.greaterThan = "greaterThan", n.greaterThanOrEqual = "greaterThanOrEqual", n.lessThan = "lessThan", n.lessThanOrEqual = "lessThanOrEqual", n.notBetween = "notBetween", n.between = "between", n.equal = "equal", n.notEqual = "notEqual", n))(w || {}), y = /* @__PURE__ */ ((n) => (n.highlightCell = "highlightCell", n.dataBar = "dataBar", n.colorScale = "colorScale", n.iconSet = "iconSet", n))(y || {}), E = /* @__PURE__ */ ((n) => (n.uniqueValues = "uniqueValues", n.duplicateValues = "duplicateValues", n.rank = "rank", n.text = "text", n.timePeriod = "timePeriod", n.number = "number", n.average = "average", n.formula = "formula", n))(E || {}), x = /* @__PURE__ */ ((n) => (n.num = "num", n.min = "min", n.max = "max", n.percent = "percent", n.percentile = "percentile", n.formula = "formula", n))(x || {});
|
|
13
|
+
const v1 = "#fff", E1 = "#000000", p1 = () => ({
|
|
13
14
|
cfId: void 0,
|
|
14
15
|
ranges: [],
|
|
15
16
|
stopIfTrue: !1,
|
|
@@ -19,7 +20,7 @@ const C1 = "#fff", f1 = "#000000", m1 = () => ({
|
|
|
19
20
|
operator: "containsText"
|
|
20
21
|
/* containsText */
|
|
21
22
|
}
|
|
22
|
-
}),
|
|
23
|
+
}), A1 = (n, s) => {
|
|
23
24
|
switch (n) {
|
|
24
25
|
case "text": {
|
|
25
26
|
if ([
|
|
@@ -30,7 +31,7 @@ const C1 = "#fff", f1 = "#000000", m1 = () => ({
|
|
|
30
31
|
"notContainsText",
|
|
31
32
|
"notEqual"
|
|
32
33
|
/* notEqual */
|
|
33
|
-
].includes(
|
|
34
|
+
].includes(s))
|
|
34
35
|
return "";
|
|
35
36
|
break;
|
|
36
37
|
}
|
|
@@ -39,10 +40,10 @@ const C1 = "#fff", f1 = "#000000", m1 = () => ({
|
|
|
39
40
|
"between",
|
|
40
41
|
"notBetween"
|
|
41
42
|
/* notBetween */
|
|
42
|
-
].includes(
|
|
43
|
+
].includes(s) ? [10, 100] : 10;
|
|
43
44
|
}
|
|
44
45
|
return "";
|
|
45
|
-
},
|
|
46
|
+
}, _1 = (n, s) => {
|
|
46
47
|
switch (n) {
|
|
47
48
|
case "formula":
|
|
48
49
|
return "=";
|
|
@@ -52,13 +53,13 @@ const C1 = "#fff", f1 = "#000000", m1 = () => ({
|
|
|
52
53
|
case "percent":
|
|
53
54
|
case "percentile":
|
|
54
55
|
case "num":
|
|
55
|
-
return
|
|
56
|
+
return s !== void 0 ? s : 10;
|
|
56
57
|
}
|
|
57
58
|
return "";
|
|
58
|
-
},
|
|
59
|
-
if (!
|
|
59
|
+
}, W = (n, s, t) => {
|
|
60
|
+
if (!s)
|
|
60
61
|
return null;
|
|
61
|
-
const e =
|
|
62
|
+
const e = s.findIndex((r) => t(r) === n.id);
|
|
62
63
|
if (e < 0)
|
|
63
64
|
return null;
|
|
64
65
|
switch (n.type) {
|
|
@@ -69,673 +70,266 @@ const C1 = "#fff", f1 = "#000000", m1 = () => ({
|
|
|
69
70
|
case "self":
|
|
70
71
|
return e;
|
|
71
72
|
}
|
|
72
|
-
},
|
|
73
|
+
}, g0 = (n, s, t, e) => {
|
|
73
74
|
if (!t)
|
|
74
75
|
return null;
|
|
75
|
-
const
|
|
76
|
-
let
|
|
77
|
-
if (
|
|
76
|
+
const r = W(n, t, e);
|
|
77
|
+
let i = W(s, t, e);
|
|
78
|
+
if (r === null || i === null || r === i)
|
|
78
79
|
return;
|
|
79
|
-
const a = t.splice(
|
|
80
|
-
switch (
|
|
80
|
+
const a = t.splice(r, 1)[0];
|
|
81
|
+
switch (r < i && (i = W(s, t, e)), s.type) {
|
|
81
82
|
case "before": {
|
|
82
|
-
t.splice(
|
|
83
|
+
t.splice(i + 1, 0, a);
|
|
83
84
|
break;
|
|
84
85
|
}
|
|
85
86
|
case "self":
|
|
86
87
|
case "after": {
|
|
87
|
-
t.splice(
|
|
88
|
+
t.splice(i, 0, a);
|
|
88
89
|
break;
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
|
-
},
|
|
92
|
-
if (n.type === "after" && ["after", "before"].includes(
|
|
93
|
-
return [n,
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
96
|
-
const a =
|
|
92
|
+
}, C0 = (n, s, t, e) => {
|
|
93
|
+
if (n.type === "after" && ["after", "before"].includes(s.type))
|
|
94
|
+
return [n, s];
|
|
95
|
+
const r = { ...n }, i = { ...s };
|
|
96
|
+
if (r.type !== "after") {
|
|
97
|
+
const a = W(r, t, e);
|
|
97
98
|
if (a === null)
|
|
98
99
|
return null;
|
|
99
100
|
if (a - 1 < 0) {
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
|
|
101
|
+
const u = t[a + 1];
|
|
102
|
+
if (u)
|
|
103
|
+
r.id = e(u), r.type = "before";
|
|
103
104
|
else
|
|
104
105
|
return null;
|
|
105
106
|
} else {
|
|
106
|
-
const
|
|
107
|
-
|
|
107
|
+
const u = e(t[a - 1]);
|
|
108
|
+
r.id = u, r.type = "after";
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
|
-
if (!["after", "before"].includes(
|
|
111
|
-
const a =
|
|
111
|
+
if (!["after", "before"].includes(i.type)) {
|
|
112
|
+
const a = W(i, t, e);
|
|
112
113
|
if (a === null)
|
|
113
114
|
return null;
|
|
114
115
|
if (a === 0)
|
|
115
|
-
|
|
116
|
+
i.type = "before";
|
|
116
117
|
else if (a - 1 >= 0) {
|
|
117
|
-
const
|
|
118
|
-
|
|
118
|
+
const u = e(t[a - 1]);
|
|
119
|
+
i.id = u, i.type = "after";
|
|
119
120
|
} else if (a + 1 <= t.length - 1) {
|
|
120
|
-
const
|
|
121
|
-
|
|
121
|
+
const u = e(t[a + 1]);
|
|
122
|
+
i.id = u, i.type = "before";
|
|
122
123
|
} else
|
|
123
124
|
return null;
|
|
124
125
|
}
|
|
125
|
-
return
|
|
126
|
-
},
|
|
127
|
-
if (["after", "before"].includes(
|
|
126
|
+
return r.id === i.id && r.type === i.type ? null : [r, i];
|
|
127
|
+
}, D0 = (n, s) => {
|
|
128
|
+
if (["after", "before"].includes(s.type)) {
|
|
128
129
|
if (n.type === "after")
|
|
129
|
-
return [
|
|
130
|
+
return [s, n];
|
|
130
131
|
if (n.type === "before")
|
|
131
|
-
return [
|
|
132
|
+
return [s, { ...n, type: "self" }];
|
|
132
133
|
}
|
|
133
134
|
return null;
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
(a = n[r]) && (s = (e ? a(i, t, s) : a(s)) || s);
|
|
138
|
-
return e && s && d0(i, t, s), s;
|
|
139
|
-
}, C0 = (n, i) => (t, e) => i(t, e, n);
|
|
140
|
-
let V = class {
|
|
141
|
-
constructor(n) {
|
|
135
|
+
}, x1 = (n, s) => n.id === s.id && n.type === s.type, f0 = () => `${H.generateRandomId(8)}`;
|
|
136
|
+
class B {
|
|
137
|
+
constructor() {
|
|
142
138
|
// Map<unitID ,<sheetId ,IConditionFormattingRule[]>>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
next: (t) => {
|
|
154
|
-
const e = (o) => `${o.unitId}_${o.subUnitId}_${o.rule.cfId}`, s = (o) => {
|
|
155
|
-
const l = o.findIndex((h) => h.type === "add"), c = o.findIndex((h) => h.type === "delete");
|
|
156
|
-
l !== -1 && c !== -1 && c > l && o.splice(l, c - l + 1);
|
|
157
|
-
}, r = t.reduce((o, l, c) => {
|
|
158
|
-
const h = e(l);
|
|
159
|
-
return o[h] || (o[h] = []), o[h].push({ ...l, _index: c }), o;
|
|
160
|
-
}, {});
|
|
161
|
-
for (const o in r) {
|
|
162
|
-
const l = r[o];
|
|
163
|
-
l.length >= 2 && s(l);
|
|
164
|
-
}
|
|
165
|
-
Object.keys(r).reduce((o, l) => {
|
|
166
|
-
const c = r[l];
|
|
167
|
-
return o.push(...c), o;
|
|
168
|
-
}, []).sort((o, l) => o._index - l._index).map((o) => o).forEach((o) => {
|
|
169
|
-
i.next(o);
|
|
170
|
-
});
|
|
171
|
-
},
|
|
172
|
-
error: (t) => i.error(t),
|
|
173
|
-
complete: () => i.complete()
|
|
174
|
-
});
|
|
175
|
-
})
|
|
176
|
-
));
|
|
177
|
-
this._injector = n;
|
|
178
|
-
}
|
|
179
|
-
_ensureList(n, i) {
|
|
180
|
-
let t = this.getSubunitRules(n, i);
|
|
181
|
-
if (!t) {
|
|
182
|
-
t = [];
|
|
183
|
-
let e = this._model.get(n);
|
|
184
|
-
e || (e = /* @__PURE__ */ new Map(), this._model.set(n, e)), e.set(i, t);
|
|
139
|
+
m(this, "_model", /* @__PURE__ */ new Map());
|
|
140
|
+
m(this, "_ruleChange$", new i2());
|
|
141
|
+
m(this, "$ruleChange", this._ruleChange$.asObservable());
|
|
142
|
+
}
|
|
143
|
+
_ensureList(s, t) {
|
|
144
|
+
let e = this.getSubunitRules(s, t);
|
|
145
|
+
if (!e) {
|
|
146
|
+
e = [];
|
|
147
|
+
let r = this._model.get(s);
|
|
148
|
+
r || (r = /* @__PURE__ */ new Map(), this._model.set(s, r)), r.set(t, e);
|
|
185
149
|
}
|
|
186
|
-
return
|
|
150
|
+
return e;
|
|
187
151
|
}
|
|
188
|
-
getRule(
|
|
189
|
-
const
|
|
190
|
-
return
|
|
152
|
+
getRule(s, t, e) {
|
|
153
|
+
const r = this.getSubunitRules(s, t);
|
|
154
|
+
return r ? r.find((i) => i.cfId === e) : null;
|
|
191
155
|
}
|
|
192
|
-
getUnitRules(
|
|
193
|
-
return this._model.get(
|
|
156
|
+
getUnitRules(s) {
|
|
157
|
+
return this._model.get(s) || null;
|
|
194
158
|
}
|
|
195
|
-
getSubunitRules(
|
|
196
|
-
var
|
|
197
|
-
return ((
|
|
159
|
+
getSubunitRules(s, t) {
|
|
160
|
+
var r;
|
|
161
|
+
return ((r = this._model.get(s)) == null ? void 0 : r.get(t)) || null;
|
|
198
162
|
}
|
|
199
|
-
deleteRule(
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
202
|
-
const
|
|
203
|
-
|
|
163
|
+
deleteRule(s, t, e) {
|
|
164
|
+
const r = this.getSubunitRules(s, t);
|
|
165
|
+
if (r) {
|
|
166
|
+
const i = r.findIndex((u) => u.cfId === e), a = r[i];
|
|
167
|
+
a && (r.splice(i, 1), this._ruleChange$.next({ rule: a, subUnitId: t, unitId: s, type: "delete" }));
|
|
204
168
|
}
|
|
205
169
|
}
|
|
206
|
-
setRule(
|
|
207
|
-
const
|
|
208
|
-
if (
|
|
209
|
-
const
|
|
210
|
-
Object.assign(
|
|
170
|
+
setRule(s, t, e, r) {
|
|
171
|
+
const a = this._ensureList(s, t).find((u) => u.cfId === r);
|
|
172
|
+
if (a) {
|
|
173
|
+
const u = H.deepClone(a);
|
|
174
|
+
Object.assign(a, e), this._ruleChange$.next({ rule: a, subUnitId: t, unitId: s, type: "set", oldRule: u });
|
|
211
175
|
}
|
|
212
176
|
}
|
|
213
|
-
addRule(
|
|
214
|
-
const
|
|
215
|
-
|
|
177
|
+
addRule(s, t, e) {
|
|
178
|
+
const r = this._ensureList(s, t);
|
|
179
|
+
r.find((a) => a.cfId === e.cfId) || r.unshift(e), this._ruleChange$.next({ rule: e, subUnitId: t, unitId: s, type: "add" });
|
|
216
180
|
}
|
|
217
181
|
/**
|
|
218
182
|
* example [1,2,3,4,5,6],if you move behind 5 to 2, then cfId=5,targetId=2.
|
|
219
183
|
* if targetId does not exist, it defaults to top
|
|
220
184
|
*/
|
|
221
|
-
moveRulePriority(
|
|
222
|
-
const
|
|
223
|
-
if (
|
|
185
|
+
moveRulePriority(s, t, e, r) {
|
|
186
|
+
const i = this._ensureList(s, t), a = W(e, i, (o) => o.cfId), u = W(r, i, (o) => o.cfId);
|
|
187
|
+
if (u === null || a === null || u === a)
|
|
224
188
|
return;
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
createCfId(n, i) {
|
|
229
|
-
return l0();
|
|
230
|
-
}
|
|
231
|
-
deleteUnitId(n) {
|
|
232
|
-
this._model.delete(n);
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
V = D0([
|
|
236
|
-
C0(0, M(o2))
|
|
237
|
-
], V);
|
|
238
|
-
class c2 {
|
|
239
|
-
constructor() {
|
|
240
|
-
// Map<unitID ,<sheetId ,ObjectMatrix>>
|
|
241
|
-
E(this, "_model", /* @__PURE__ */ new Map());
|
|
242
|
-
E(this, "_markDirty$", new s2());
|
|
243
|
-
E(this, "markDirty$", this._markDirty$.asObservable());
|
|
244
|
-
}
|
|
245
|
-
_ensureMatrix(i, t) {
|
|
246
|
-
let e = this.getMatrix(i, t);
|
|
247
|
-
if (!e) {
|
|
248
|
-
e = new I();
|
|
249
|
-
let s = this._model.get(i);
|
|
250
|
-
s || (s = /* @__PURE__ */ new Map(), this._model.set(i, s)), s.set(t, e);
|
|
251
|
-
}
|
|
252
|
-
return e;
|
|
253
|
-
}
|
|
254
|
-
getMatrix(i, t) {
|
|
255
|
-
var e;
|
|
256
|
-
return (e = this._model.get(i)) == null ? void 0 : e.get(t);
|
|
257
|
-
}
|
|
258
|
-
getCellCf(i, t, e, s, r) {
|
|
259
|
-
const a = r != null ? r : this.getMatrix(i, t);
|
|
260
|
-
return a ? a.getValue(e, s) : null;
|
|
261
|
-
}
|
|
262
|
-
setCellCfRuleCache(i, t, e, s, r, a) {
|
|
263
|
-
const l = this._ensureMatrix(i, t).getValue(e, s), c = l == null ? void 0 : l.cfList.find((h) => h.cfId === r);
|
|
264
|
-
c && (c.ruleCache = a, c.isDirty = !1);
|
|
265
|
-
}
|
|
266
|
-
deleteCellCf(i, t, e, s, r, a) {
|
|
267
|
-
const o = a != null ? a : this.getMatrix(i, t);
|
|
268
|
-
if (o) {
|
|
269
|
-
const l = o.getValue(e, s);
|
|
270
|
-
if (l) {
|
|
271
|
-
const c = l.cfList, h = c.findIndex((u) => u.cfId === r);
|
|
272
|
-
h > -1 && c.splice(h, 1), c.length || o.realDeleteValue(e, s);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
189
|
+
const l = i[a];
|
|
190
|
+
l && (g0(e, r, i, (o) => o.cfId), this._ruleChange$.next({ rule: l, subUnitId: t, unitId: s, type: "sort" }));
|
|
275
191
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
let o = a.getValue(e, s);
|
|
279
|
-
if (!o)
|
|
280
|
-
o = { cfList: [{ cfId: r, isDirty: !0 }] };
|
|
281
|
-
else {
|
|
282
|
-
const l = o.cfList;
|
|
283
|
-
if (l.findIndex((h) => h.cfId === r) > -1)
|
|
284
|
-
return;
|
|
285
|
-
l.push({ cfId: r, isDirty: !0 });
|
|
286
|
-
}
|
|
287
|
-
a.setValue(e, s, o);
|
|
288
|
-
}
|
|
289
|
-
sortCellCf(i, t, e, s, r) {
|
|
290
|
-
const a = this.getCellCf(i, t, e, s);
|
|
291
|
-
if (a) {
|
|
292
|
-
const o = a.cfList.map((l) => {
|
|
293
|
-
const c = r.get(l.cfId);
|
|
294
|
-
return c === void 0 ? null : { ...l, priority: c };
|
|
295
|
-
}).filter((l) => !!l).sort((l, c) => l.priority - c.priority);
|
|
296
|
-
a.cfList = o;
|
|
297
|
-
}
|
|
192
|
+
createCfId(s, t) {
|
|
193
|
+
return f0();
|
|
298
194
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
const c = this.getCellCf(i, t, o, l);
|
|
302
|
-
if (c) {
|
|
303
|
-
const h = c.cfList.find((u) => u.cfId === e.cfId);
|
|
304
|
-
h && (h.isDirty = !0);
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
s !== void 0 && r !== void 0 ? (a(s, r), this._markDirty$.next({ rule: e, unitId: i, subUnitId: t })) : (e.ranges.forEach((o) => {
|
|
308
|
-
R.foreach(o, (l, c) => {
|
|
309
|
-
a(l, c);
|
|
310
|
-
});
|
|
311
|
-
}), this._markDirty$.next({ rule: e, unitId: i, subUnitId: t }));
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
const f0 = {
|
|
315
|
-
mistake: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.87359%206.87332C6.6146%207.13231%206.6146%207.55221%206.87359%207.8112L9.062%209.99961L6.87356%2012.188C6.61457%2012.447%206.61457%2012.8669%206.87356%2013.1259C7.13255%2013.3849%207.55245%2013.3849%207.81144%2013.1259L9.99987%2010.9375L12.1882%2013.1258C12.4472%2013.3848%2012.8671%2013.3848%2013.1261%2013.1258C13.3851%2012.8669%2013.3851%2012.447%2013.1261%2012.188L10.9378%209.99961L13.1261%207.81127C13.3851%207.55228%2013.3851%207.13238%2013.1261%206.87339C12.8671%206.61441%2012.4472%206.61441%2012.1882%206.87339L9.99987%209.06173L7.81147%206.87332C7.55248%206.61433%207.13257%206.61433%206.87359%206.87332Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
316
|
-
warn: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Cpath%20d%3D%22M9.16817%206.67735C9.16646%206.61745%209.1656%206.5875%209.16653%206.56236C9.18103%206.16817%209.49136%205.84883%209.88497%205.82306C9.91008%205.82141%209.94004%205.82141%209.99996%205.82141V5.82141C10.0599%205.82141%2010.0899%205.82141%2010.115%205.82306C10.5086%205.84883%2010.8189%206.16817%2010.8334%206.56236C10.8343%206.5875%2010.8335%206.61745%2010.8318%206.67735L10.7043%2011.131C10.6934%2011.5121%2010.3812%2011.8154%209.99995%2011.8154V11.8154C9.61866%2011.8154%209.30655%2011.5121%209.29564%2011.131L9.16817%206.67735Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3Crect%20x%3D%229.31488%22%20y%3D%2212.8086%22%20width%3D%221.37006%22%20height%3D%221.37006%22%20rx%3D%220.685032%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
317
|
-
correct: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.037%2010C17.037%2013.8865%2013.8864%2017.0371%209.99999%2017.0371C6.11354%2017.0371%202.96295%2013.8865%202.96295%2010C2.96295%206.1136%206.11354%202.96301%209.99999%202.96301C13.8864%202.96301%2017.037%206.1136%2017.037%2010Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3Cpath%20d%3D%22M13.9239%207.17477C13.6638%206.91472%2013.2422%206.91472%2012.9821%207.17477L8.74433%2011.4126L7.01786%209.6861C6.75781%209.42606%206.33619%209.42606%206.07614%209.6861C5.81609%209.94615%205.81609%2010.3678%206.07614%2010.6278L8.27349%2012.8252C8.53354%2013.0852%208.95516%2013.0852%209.21521%2012.8252L9.2195%2012.8209L13.9239%208.1165C14.1839%207.85645%2014.1839%207.43482%2013.9239%207.17477Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
318
|
-
}, m0 = {
|
|
319
|
-
starEmpty: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
320
|
-
starIncomplete: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_177)%22%3E%0A%3Cmask%20id%3D%22mask0_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2210%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20x%3D%2210.3704%22%20y%3D%220.37037%22%20width%3D%229.25926%22%20height%3D%2219.2593%22%20fill%3D%22%23C4C4C4%22%20stroke%3D%22%23F7D564%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask0_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3Cmask%20id%3D%22mask1_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2220%22%20fill%3D%22%23C4C4C4%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask1_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_177%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A",
|
|
321
|
-
starFull: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
322
|
-
}, F0 = {
|
|
323
|
-
progress0: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
324
|
-
progress25: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M16.2963%209.99991C16.2963%209.17307%2016.1335%208.35432%2015.8171%207.59042C15.5006%206.82652%2015.0369%206.13242%2014.4522%205.54776C13.8675%204.96309%2013.1734%204.49931%2012.4095%204.18289C11.6456%203.86647%2010.8269%203.70361%2010%203.70361L10%209.99991H16.2963Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
325
|
-
progress50: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M10%2016.2962C11.6699%2016.2962%2013.2714%2015.6328%2014.4522%2014.4521C15.633%2013.2713%2016.2963%2011.6698%2016.2963%209.99991C16.2963%208.33003%2015.633%206.72854%2014.4522%205.54776C13.2714%204.36697%2011.6699%203.70361%2010%203.70361L10%209.99991L10%2016.2962Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
326
|
-
progress75: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M3.70374%209.99991C3.70374%2011.2452%204.07301%2012.4625%204.76485%2013.4979C5.4567%2014.5334%206.44005%2015.3404%207.59054%2015.8169C8.74104%2016.2935%2010.007%2016.4182%2011.2284%2016.1752C12.4497%2015.9323%2013.5716%2015.3326%2014.4522%2014.4521C15.3327%2013.5715%2015.9324%2012.4496%2016.1753%2011.2283C16.4183%2010.0069%2016.2936%208.74092%2015.8171%207.59042C15.3405%206.43992%2014.5335%205.45658%2013.4981%204.76473C12.4626%204.07288%2011.2453%203.70361%2010%203.70361L10%209.99991L3.70374%209.99991Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
327
|
-
progress100: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99991%22%20r%3D%226.2963%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
328
|
-
}, w0 = {
|
|
329
|
-
signal0: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
330
|
-
signal25: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
331
|
-
signal50: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
332
|
-
signal75: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
333
|
-
signal100: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93933%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70447%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
334
|
-
}, E0 = {
|
|
335
|
-
guffaw: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.887%2010C16.887%2013.8037%2013.8036%2016.8871%209.99999%2016.8871C6.19638%2016.8871%203.11295%2013.8037%203.11295%2010C3.11295%206.19644%206.19638%203.11301%209.99999%203.11301C13.8036%203.11301%2016.887%206.19644%2016.887%2010Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M12.5355%2013.5821C13.0482%2013.1841%2013.3951%2012.6107%2013.5405%2012.0327C13.5934%2011.8226%2013.5051%2011.6349%2013.3518%2011.5331C13.2036%2011.4346%2013.0031%2011.4203%2012.8265%2011.5131C11.0615%2012.4407%208.94609%2012.4427%207.1828%2011.513C7.00629%2011.4199%206.80602%2011.4343%206.65798%2011.5329C6.50518%2011.6346%206.41701%2011.8217%206.46844%2012.0312C6.61029%2012.609%206.95079%2013.1833%207.46449%2013.5821C8.14361%2014.1093%209.05608%2014.3999%2010%2014.3999C10.9439%2014.3999%2011.8564%2014.1093%2012.5355%2013.5821Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
336
|
-
smile: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2011.8518C7.03705%2011.8518%207.77779%2013.7037%2010%2013.7037C12.2222%2013.7037%2012.963%2011.8518%2012.963%2011.8518%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
337
|
-
noninductive: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2012.5927C7.03705%2012.5927%208.14816%2012.5927%2010.3704%2012.5927C12.5926%2012.5927%2012.963%2012.5927%2012.963%2012.5927%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
338
|
-
dissatisfied: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2013.7037C7.03705%2013.7037%207.77779%2011.8519%2010%2011.8519C12.2222%2011.8519%2012.963%2013.7037%2012.963%2013.7037%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
339
|
-
impatient: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.47573%2011.731C6.96306%2012.129%206.61613%2012.7024%206.47071%2013.2804C6.41784%2013.4905%206.50617%2013.6782%206.65942%2013.78C6.80761%2013.8785%207.00813%2013.8928%207.18477%2013.8C8.9498%2012.8724%2011.0652%2012.8704%2012.8285%2013.8002C13.005%2013.8932%2013.2052%2013.8788%2013.3533%2013.7802C13.5061%2013.6785%2013.5942%2013.4914%2013.5428%2013.2819C13.401%2012.7041%2013.0605%2012.1298%2012.5468%2011.731C11.8676%2011.2038%2010.9552%2010.9132%2010.0112%2010.9132C9.06732%2010.9132%208.15485%2011.2038%207.47573%2011.731Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
340
|
-
}, v0 = {
|
|
341
|
-
"down-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
342
|
-
"right-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
343
|
-
"up-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
344
|
-
"rightAndDown-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
345
|
-
"rightAndUp-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
346
|
-
"down-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
347
|
-
"right-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
348
|
-
"up-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
349
|
-
"rightAndDown-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
350
|
-
"rightAndUp-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
351
|
-
}, p0 = {
|
|
352
|
-
cross: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%223.70374%22%20y%3D%228.14795%22%20width%3D%2212.5926%22%20height%3D%223.7037%22%20rx%3D%220.740741%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
353
|
-
up: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M9.44533%205.81157C9.74012%205.47858%2010.2598%205.47858%2010.5546%205.81157L16.2868%2012.2867C16.71%2012.7647%2016.3706%2013.5184%2015.7322%2013.5184H4.26776C3.62933%2013.5184%203.28995%2012.7647%203.71313%2012.2867L9.44533%205.81157Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
354
|
-
down: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.5547%2014.1884C10.2599%2014.5214%209.74019%2014.5214%209.4454%2014.1884L3.71321%207.71335C3.29002%207.23532%203.6294%206.48161%204.26784%206.48161L15.7322%206.48161C16.3707%206.48161%2016.7101%207.23532%2016.2869%207.71335L10.5547%2014.1884Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
355
|
-
"rhomboid-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
356
|
-
"rhomboid-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
357
|
-
"roundness-greed": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
358
|
-
"roundness-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
359
|
-
"roundness-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
360
|
-
"roundness-pink": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FB9D9D%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
361
|
-
"roundness-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
362
|
-
"roundness-black": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
363
|
-
"triangle-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_237)%22%3E%0A%3Cpath%20d%3D%22M9.32308%204.41301C9.58368%203.82623%2010.4164%203.82623%2010.677%204.413L15.9526%2016.2917C16.1701%2016.7815%2015.8115%2017.3331%2015.2756%2017.3331H4.72454C4.18858%2017.3331%203.83002%2016.7815%204.04756%2016.2917L9.32308%204.41301Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_237%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A",
|
|
364
|
-
"indicate-greed": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
365
|
-
"indicate-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
366
|
-
"indicate-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
367
|
-
}, A0 = {
|
|
368
|
-
mistake2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.12194%206.33702C4.1805%206.47839%204.30722%206.6051%204.56066%206.85854L8.36822%2010.6661L4.56062%2014.4737C4.30718%2014.7272%204.18046%2014.8539%204.12191%2014.9952C4.04384%2015.1837%204.04384%2015.3955%204.12191%2015.584C4.18046%2015.7253%204.30718%2015.8521%204.56062%2016.1055C4.81406%2016.3589%204.94078%2016.4857%205.08214%2016.5442C5.27062%2016.6223%205.4824%2016.6223%205.67089%2016.5442C5.81225%2016.4857%205.93897%2016.3589%206.19241%2016.1055L10%2012.2979L13.8074%2016.1053C14.0609%2016.3588%2014.1876%2016.4855%2014.329%2016.544C14.5174%2016.6221%2014.7292%2016.6221%2014.9177%2016.544C15.0591%2016.4855%2015.1858%2016.3588%2015.4392%2016.1053L15.4392%2016.1053C15.6927%2015.8519%2015.8194%2015.7252%2015.8779%2015.5838C15.956%2015.3953%2015.956%2015.1835%2015.8779%2014.9951C15.8194%2014.8537%2015.6927%2014.727%2015.4392%2014.4735L15.4392%2014.4735L11.6318%2010.6661L15.4392%206.85872C15.6926%206.60528%2015.8193%206.47856%2015.8779%206.3372C15.956%206.14871%2015.956%205.93694%2015.8779%205.74845C15.8193%205.60709%2015.6926%205.48037%2015.4392%205.22693C15.1857%204.97349%2015.059%204.84677%2014.9177%204.78822C14.7292%204.71015%2014.5174%204.71015%2014.3289%204.78822C14.1876%204.84677%2014.0608%204.97349%2013.8074%205.22693L10%209.03433L6.19244%205.22676C5.939%204.97332%205.81228%204.8466%205.67092%204.78805C5.48244%204.70997%205.27066%204.70997%205.08218%204.78805C4.94082%204.8466%204.8141%204.97332%204.56066%205.22676L4.56066%205.22676C4.30722%205.4802%204.1805%205.60692%204.12194%205.74828C4.04387%205.93676%204.04387%206.14854%204.12194%206.33702Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
369
|
-
warn2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8.49778%205.00963C8.48513%204.56774%208.47881%204.3468%208.56086%204.17746C8.63301%204.02856%208.75124%203.90689%208.89802%203.83052C9.06494%203.74365%209.28597%203.74365%209.72805%203.74365H10.272C10.714%203.74365%2010.9351%203.74365%2011.102%203.83052C11.2488%203.9069%2011.367%204.02856%2011.4392%204.17746C11.5212%204.3468%2011.5149%204.56775%2011.5022%205.00964L11.2644%2013.3173C11.2524%2013.737%2011.2464%2013.9468%2011.1609%2014.1065C11.0857%2014.2471%2010.9687%2014.3609%2010.826%2014.432C10.6639%2014.5129%2010.454%2014.5129%2010.0342%2014.5129H9.96582C9.54601%2014.5129%209.33611%2014.5129%209.17397%2014.432C9.0313%2014.3609%208.91426%2014.2471%208.83904%2014.1065C8.75357%2013.9468%208.74756%2013.737%208.73555%2013.3173L8.49778%205.00963Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Crect%20x%3D%228.76917%22%20y%3D%2215.2817%22%20width%3D%222.46154%22%20height%3D%222.46154%22%20rx%3D%220.769231%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
370
|
-
correct2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_248)%22%3E%0A%3Cpath%20d%3D%22M15.689%205.69723C15.5476%205.75578%2015.4209%205.8825%2015.1675%206.13594L7.82436%2013.4791L4.83279%2010.4875C4.57935%2010.2341%204.45263%2010.1073%204.31127%2010.0488C4.12278%209.97071%203.91101%209.97071%203.72252%2010.0488C3.58116%2010.1073%203.45444%2010.2341%203.201%2010.4875C2.94756%2010.7409%202.82084%2010.8676%202.76229%2011.009C2.68422%2011.1975%202.68422%2011.4093%202.76229%2011.5978C2.82084%2011.7391%202.94756%2011.8658%203.201%2012.1193L7.0085%2015.9268C7.26194%2016.1802%207.38866%2016.3069%207.53002%2016.3655C7.7185%2016.4436%207.93028%2016.4436%208.11876%2016.3655C8.26013%2016.3069%208.38685%2016.1802%208.64028%2015.9268C8.66387%2015.9032%208.68636%2015.8807%208.7078%2015.8592L16.7993%207.76772C17.0527%207.51428%2017.1794%207.38756%2017.238%207.2462C17.3161%207.05772%2017.3161%206.84594%2017.238%206.65746C17.1794%206.5161%2017.0527%206.38938%2016.7993%206.13594C16.5458%205.8825%2016.4191%205.75578%2016.2777%205.69723C16.0893%205.61915%2015.8775%205.61915%2015.689%205.69723Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_248%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A"
|
|
371
|
-
}, x0 = {
|
|
372
|
-
"flag-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
373
|
-
"flag-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
374
|
-
"flag-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
375
|
-
}, _0 = {
|
|
376
|
-
"cell-0": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
377
|
-
"cell-25": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
378
|
-
"cell-50": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
379
|
-
"cell-75": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
380
|
-
"cell-100": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
381
|
-
}, f = {
|
|
382
|
-
feedback: f0,
|
|
383
|
-
star: m0,
|
|
384
|
-
progress: F0,
|
|
385
|
-
signal: w0,
|
|
386
|
-
feeling: E0,
|
|
387
|
-
arrow: v0,
|
|
388
|
-
shape: p0,
|
|
389
|
-
feedback2: A0,
|
|
390
|
-
flag: x0,
|
|
391
|
-
cell: _0
|
|
392
|
-
}, M0 = [
|
|
393
|
-
{
|
|
394
|
-
title: "sheet.cf.iconSet.direction",
|
|
395
|
-
group: [
|
|
396
|
-
{ name: "3Arrows", list: [f.arrow["up-green"], f.arrow["right-gold"], f.arrow["down-red"]] },
|
|
397
|
-
{ name: "3ArrowsGray", list: [f.arrow["up-gray"], f.arrow["right-gray"], f.arrow["down-gray"]] },
|
|
398
|
-
{ name: "4Arrows", list: [f.arrow["up-green"], f.arrow["rightAndUp-gold"], f.arrow["rightAndDown-gold"], f.arrow["down-red"]] },
|
|
399
|
-
{ name: "4ArrowsGray", list: [f.arrow["up-gray"], f.arrow["rightAndUp-gray"], f.arrow["rightAndDown-gray"], f.arrow["down-gray"]] },
|
|
400
|
-
{ name: "5Arrows", list: [f.arrow["up-green"], f.arrow["rightAndUp-gold"], f.arrow["right-gold"], f.arrow["rightAndDown-gold"], f.arrow["down-red"]] },
|
|
401
|
-
{ name: "5ArrowsGray", list: [f.arrow["up-gray"], f.arrow["rightAndUp-gray"], f.arrow["right-gray"], f.arrow["rightAndDown-gray"], f.arrow["down-gray"]] },
|
|
402
|
-
{ name: "3Triangles", list: [f.shape.up, f.shape.cross, f.shape.down] }
|
|
403
|
-
]
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
title: "sheet.cf.iconSet.shape",
|
|
407
|
-
group: [
|
|
408
|
-
{
|
|
409
|
-
name: "3TrafficLights1",
|
|
410
|
-
list: [f.shape["roundness-greed"], f.shape["roundness-gold"], f.shape["roundness-red"]]
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
name: "3Signs",
|
|
414
|
-
list: [f.shape["roundness-greed"], f.shape["triangle-gold"], f.shape["rhomboid-red"]]
|
|
415
|
-
},
|
|
416
|
-
{ name: "3TrafficLights2", list: [f.shape["indicate-greed"], f.shape["indicate-gold"], f.shape["indicate-red"]] },
|
|
417
|
-
{
|
|
418
|
-
name: "4RedToBlack",
|
|
419
|
-
list: [f.shape["roundness-red"], f.shape["roundness-pink"], f.shape["roundness-gray"], f.shape["roundness-black"]]
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
name: "4TrafficLights",
|
|
423
|
-
list: [f.shape["roundness-greed"], f.shape["roundness-gold"], f.shape["roundness-red"], f.shape["roundness-black"]]
|
|
424
|
-
}
|
|
425
|
-
]
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
title: "sheet.cf.iconSet.mark",
|
|
429
|
-
group: [
|
|
430
|
-
{
|
|
431
|
-
name: "3Symbols",
|
|
432
|
-
list: [f.feedback.correct, f.feedback.warn, f.feedback.mistake]
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
name: "3Symbols2",
|
|
436
|
-
list: [f.feedback2.correct2, f.feedback2.warn2, f.feedback2.mistake2]
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
name: "3Flags",
|
|
440
|
-
list: [f.flag["flag-green"], f.flag["flag-gold"], f.flag["flag-red"]]
|
|
441
|
-
}
|
|
442
|
-
]
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
title: "sheet.cf.iconSet.rank",
|
|
446
|
-
group: [
|
|
447
|
-
{
|
|
448
|
-
name: "4Rating",
|
|
449
|
-
list: [f.signal.signal25, f.signal.signal50, f.signal.signal75, f.signal.signal100]
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
name: "5Rating",
|
|
453
|
-
list: [f.signal.signal0, f.signal.signal25, f.signal.signal50, f.signal.signal75, f.signal.signal100]
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
name: "5Quarters",
|
|
457
|
-
list: [f.progress.progress100, f.progress.progress75, f.progress.progress50, f.progress.progress25, f.progress.progress0]
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
name: "_5Felling",
|
|
461
|
-
list: [f.feeling.guffaw, f.feeling.smile, f.feeling.noninductive, f.feeling.dissatisfied, f.feeling.impatient]
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
name: "5Boxes",
|
|
465
|
-
list: [f.cell["cell-100"], f.cell["cell-75"], f.cell["cell-50"], f.cell["cell-25"], f.cell["cell-0"]]
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
name: "3Stars",
|
|
469
|
-
list: [f.star.starFull, f.star.starIncomplete, f.star.starEmpty]
|
|
470
|
-
}
|
|
471
|
-
]
|
|
195
|
+
deleteUnitId(s) {
|
|
196
|
+
this._model.delete(s);
|
|
472
197
|
}
|
|
473
|
-
], n2 = M0.reduce((n, i) => {
|
|
474
|
-
const { group: t } = i;
|
|
475
|
-
for (const e of t)
|
|
476
|
-
n[e.name] = e.list;
|
|
477
|
-
return n;
|
|
478
|
-
}, {});
|
|
479
|
-
for (const n in n2) {
|
|
480
|
-
const i = n2[n];
|
|
481
|
-
Object.freeze(i);
|
|
482
198
|
}
|
|
483
|
-
const
|
|
484
|
-
type:
|
|
485
|
-
id: "sheet.mutation.move-conditional-rule",
|
|
486
|
-
handler(n, i) {
|
|
487
|
-
if (!i)
|
|
488
|
-
return !1;
|
|
489
|
-
const { unitId: t, subUnitId: e, start: s, end: r } = i;
|
|
490
|
-
return n.get(V).moveRulePriority(t, e, s, r), !0;
|
|
491
|
-
}
|
|
492
|
-
}, v1 = (n) => {
|
|
493
|
-
const { unitId: i, subUnitId: t } = n, e = h0(n.start, n.end);
|
|
494
|
-
if (!e)
|
|
495
|
-
return [];
|
|
496
|
-
const [s, r] = e;
|
|
497
|
-
return [
|
|
498
|
-
{
|
|
499
|
-
id: f2.id,
|
|
500
|
-
params: { unitId: i, subUnitId: t, start: s, end: r }
|
|
501
|
-
}
|
|
502
|
-
];
|
|
503
|
-
}, R0 = (n, i) => {
|
|
504
|
-
const t = n.get(V), { unitId: e, subUnitId: s, cfId: r } = i, a = [...t.getSubunitRules(e, s) || []], o = a.findIndex((c) => c.cfId === r), l = a[o - 1];
|
|
505
|
-
if (o > -1) {
|
|
506
|
-
const c = a[o], h = [{
|
|
507
|
-
id: b2.id,
|
|
508
|
-
params: { unitId: e, subUnitId: s, rule: Y.deepClone(c) }
|
|
509
|
-
}];
|
|
510
|
-
if (a.splice(o, 1), o !== 0) {
|
|
511
|
-
const u = a[0];
|
|
512
|
-
if (u) {
|
|
513
|
-
const g = u0({ id: u.cfId, type: "before" }, { id: l.cfId, type: "after" }, a, (m) => m.cfId);
|
|
514
|
-
if (!g)
|
|
515
|
-
return h;
|
|
516
|
-
const [d, D] = g, C = {
|
|
517
|
-
unitId: e,
|
|
518
|
-
subUnitId: s,
|
|
519
|
-
start: d,
|
|
520
|
-
end: D
|
|
521
|
-
};
|
|
522
|
-
h.push({ id: f2.id, params: C });
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
return h;
|
|
526
|
-
}
|
|
527
|
-
return [];
|
|
528
|
-
}, m2 = {
|
|
529
|
-
type: Q.MUTATION,
|
|
530
|
-
id: "sheet.mutation.delete-conditional-rule",
|
|
531
|
-
handler(n, i) {
|
|
532
|
-
if (!i)
|
|
533
|
-
return !1;
|
|
534
|
-
const { unitId: t, subUnitId: e, cfId: s } = i;
|
|
535
|
-
return n.get(V).deleteRule(t, e, s), !0;
|
|
536
|
-
}
|
|
537
|
-
}, p1 = (n, i) => ({ id: m2.id, params: { unitId: i.unitId, subUnitId: i.subUnitId, cfId: i.rule.cfId } }), b2 = {
|
|
538
|
-
type: Q.MUTATION,
|
|
539
|
-
id: "sheet.mutation.add-conditional-rule",
|
|
540
|
-
handler(n, i) {
|
|
541
|
-
if (!i)
|
|
542
|
-
return !1;
|
|
543
|
-
const { unitId: t, subUnitId: e, rule: s } = i;
|
|
544
|
-
return n.get(V).addRule(t, e, s), !0;
|
|
545
|
-
}
|
|
546
|
-
}, i2 = {
|
|
547
|
-
type: Q.MUTATION,
|
|
199
|
+
const n2 = {
|
|
200
|
+
type: J.MUTATION,
|
|
548
201
|
id: "sheet.mutation.conditional-formatting-formula-mark-dirty",
|
|
549
202
|
handler() {
|
|
550
203
|
return !0;
|
|
551
204
|
}
|
|
552
|
-
}, S2 = {
|
|
553
|
-
type: Q.MUTATION,
|
|
554
|
-
id: "sheet.mutation.set-conditional-rule",
|
|
555
|
-
handler(n, i) {
|
|
556
|
-
if (!i)
|
|
557
|
-
return !1;
|
|
558
|
-
const { unitId: t, subUnitId: e, rule: s } = i, r = i.cfId || i.rule.cfId;
|
|
559
|
-
return n.get(V).setRule(t, e, s, r), !0;
|
|
560
|
-
}
|
|
561
|
-
}, A1 = (n, i) => {
|
|
562
|
-
const t = n.get(V), { unitId: e, subUnitId: s } = i, r = i.cfId || i.rule.cfId, a = t.getRule(e, s, r);
|
|
563
|
-
return a ? [
|
|
564
|
-
{
|
|
565
|
-
id: S2.id,
|
|
566
|
-
params: {
|
|
567
|
-
unitId: e,
|
|
568
|
-
subUnitId: s,
|
|
569
|
-
cfId: r,
|
|
570
|
-
rule: Y.deepClone(a)
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
] : [];
|
|
574
|
-
}, I0 = "ssheets-conditional-formatting.config", L0 = {};
|
|
575
|
-
var b0 = Object.defineProperty, S0 = Object.getOwnPropertyDescriptor, B0 = (n, i, t, e) => {
|
|
576
|
-
for (var s = e > 1 ? void 0 : e ? S0(i, t) : i, r = n.length - 1, a; r >= 0; r--)
|
|
577
|
-
(a = n[r]) && (s = (e ? a(i, t, s) : a(s)) || s);
|
|
578
|
-
return e && s && b0(i, t, s), s;
|
|
579
|
-
}, K = (n, i) => (t, e) => i(t, e, n), y = /* @__PURE__ */ ((n) => (n[n.NOT_REGISTER = 1] = "NOT_REGISTER", n[n.SUCCESS = 2] = "SUCCESS", n[n.WAIT = 3] = "WAIT", n[n.ERROR = 4] = "ERROR", n))(y || {});
|
|
580
|
-
const k0 = (n) => {
|
|
581
|
-
const i = n && n[0] && n[0][0];
|
|
582
|
-
return (i == null ? void 0 : i.t) === B.BOOLEAN ? i.v === _2.TRUE || i.v === !0 : i ? i.v : !1;
|
|
583
205
|
};
|
|
584
|
-
|
|
585
|
-
|
|
206
|
+
var m0 = Object.defineProperty, F0 = Object.getOwnPropertyDescriptor, w0 = (n, s, t, e) => {
|
|
207
|
+
for (var r = e > 1 ? void 0 : e ? F0(s, t) : s, i = n.length - 1, a; i >= 0; i--)
|
|
208
|
+
(a = n[i]) && (r = (e ? a(s, t, r) : a(r)) || r);
|
|
209
|
+
return e && r && m0(s, t, r), r;
|
|
210
|
+
}, d2 = (n, s) => (t, e) => s(t, e, n), b = /* @__PURE__ */ ((n) => (n[n.NOT_REGISTER = 1] = "NOT_REGISTER", n[n.SUCCESS = 2] = "SUCCESS", n[n.WAIT = 3] = "WAIT", n[n.ERROR = 4] = "ERROR", n))(b || {});
|
|
211
|
+
const v0 = (n) => {
|
|
212
|
+
const s = n && n[0] && n[0][0];
|
|
213
|
+
return (s == null ? void 0 : s.t) === _.BOOLEAN ? s.v === R2.TRUE || s.v === !0 : s ? s.v : !1;
|
|
214
|
+
};
|
|
215
|
+
let G = class extends m2 {
|
|
216
|
+
constructor(s, t, e) {
|
|
586
217
|
super();
|
|
587
218
|
// Cache Formula ID and formula mapping.
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
this._commandService =
|
|
592
|
-
this._cache.clear(), this._formulaMap.clear();
|
|
593
|
-
}));
|
|
594
|
-
}
|
|
595
|
-
_initCache() {
|
|
596
|
-
const i = this._injector.get(z);
|
|
597
|
-
this.disposeWithMe(i.ruleComputeStatus$.subscribe((t) => {
|
|
598
|
-
const { unitId: e, subUnitId: s, status: r, result: a, cfId: o } = t;
|
|
599
|
-
r === "end" && a && this._ensureCacheMap(e, s).set(o, a);
|
|
600
|
-
})), this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((t) => {
|
|
601
|
-
if (t.type === "delete") {
|
|
602
|
-
const { unitId: e, subUnitId: s, rule: r } = t;
|
|
603
|
-
this._deleteCache(e, s, r.cfId);
|
|
604
|
-
}
|
|
605
|
-
}));
|
|
219
|
+
m(this, "_formulaMap", /* @__PURE__ */ new Map());
|
|
220
|
+
m(this, "_result$", new i2());
|
|
221
|
+
m(this, "result$", this._result$.asObservable());
|
|
222
|
+
this._commandService = s, this._activeDirtyManagerService = t, this._conditionalFormattingRuleModel = e, this._initFormulaCalculationResultChange(), this._initRuleChange();
|
|
606
223
|
}
|
|
607
224
|
_initRuleChange() {
|
|
608
|
-
const
|
|
225
|
+
const s = (t) => {
|
|
609
226
|
switch (t.type) {
|
|
610
|
-
case
|
|
611
|
-
return t.config.some((e) => e.value.type ===
|
|
612
|
-
case
|
|
613
|
-
return t.
|
|
614
|
-
case
|
|
615
|
-
return
|
|
616
|
-
case L.iconSet:
|
|
617
|
-
return t.config.some((e) => e.value.type === U.formula);
|
|
227
|
+
case y.colorScale:
|
|
228
|
+
return t.config.some((e) => e.value.type === x.formula);
|
|
229
|
+
case y.dataBar:
|
|
230
|
+
return [t.config.max, t.config.min].some((e) => e.type === x.formula);
|
|
231
|
+
case y.iconSet:
|
|
232
|
+
return t.config.some((e) => e.value.type === x.formula);
|
|
618
233
|
}
|
|
619
234
|
};
|
|
620
235
|
this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((t) => {
|
|
621
|
-
const { unitId: e, subUnitId:
|
|
622
|
-
t.type === "delete" && this._removeFormulaByCfId(e,
|
|
236
|
+
const { unitId: e, subUnitId: r, rule: i, oldRule: a } = t;
|
|
237
|
+
t.type === "delete" && this._removeFormulaByCfId(e, r, i.cfId), t.type === "set" && (s(i.rule) || a && s(a.rule)) && this._removeFormulaByCfId(e, r, i.cfId);
|
|
623
238
|
}));
|
|
624
239
|
}
|
|
625
240
|
_initFormulaCalculationResultChange() {
|
|
626
|
-
this.disposeWithMe(this._commandService.onCommandExecuted((
|
|
627
|
-
if (
|
|
628
|
-
const t =
|
|
241
|
+
this.disposeWithMe(this._commandService.onCommandExecuted((s) => {
|
|
242
|
+
if (s.id === J2.id) {
|
|
243
|
+
const t = s.params;
|
|
629
244
|
for (const e in t.unitOtherData)
|
|
630
|
-
for (const
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
if (!l)
|
|
245
|
+
for (const r in t.unitOtherData[e])
|
|
246
|
+
for (const i in t.unitOtherData[e][r]) {
|
|
247
|
+
const a = new T(t.unitOtherData[e][r][i]), u = this._ensureSubunitFormulaMap(e, r).getValue(i, ["formulaId"]);
|
|
248
|
+
if (!u)
|
|
635
249
|
continue;
|
|
636
|
-
const
|
|
637
|
-
if (!
|
|
250
|
+
const l = u.ranges;
|
|
251
|
+
if (!l)
|
|
638
252
|
continue;
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}),
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
253
|
+
const o = u.result, h = l[0].startRow, c = l[0].startColumn;
|
|
254
|
+
a.forValue((D, f, F) => {
|
|
255
|
+
o.setValue(h + D, c + f, v0(F));
|
|
256
|
+
}), u.status = 2;
|
|
257
|
+
const C = this._getAllFormulaResultByCfId(e, r, u.cfId).every(
|
|
258
|
+
(D) => D.status === 2
|
|
259
|
+
/* SUCCESS */
|
|
260
|
+
);
|
|
261
|
+
this._result$.next({ ...u, isAllFinished: C });
|
|
647
262
|
}
|
|
648
|
-
}
|
|
649
263
|
}
|
|
650
264
|
})), this._activeDirtyManagerService.register(
|
|
651
|
-
|
|
265
|
+
n2.id,
|
|
652
266
|
{
|
|
653
|
-
commandId:
|
|
654
|
-
getDirtyData(
|
|
267
|
+
commandId: n2.id,
|
|
268
|
+
getDirtyData(s) {
|
|
655
269
|
return {
|
|
656
|
-
dirtyUnitOtherFormulaMap:
|
|
270
|
+
dirtyUnitOtherFormulaMap: s.params
|
|
657
271
|
};
|
|
658
272
|
}
|
|
659
273
|
}
|
|
660
274
|
);
|
|
661
275
|
}
|
|
662
|
-
_ensureSubunitFormulaMap(
|
|
663
|
-
let e = this._formulaMap.get(
|
|
664
|
-
e || (e = /* @__PURE__ */ new Map(), this._formulaMap.set(
|
|
665
|
-
let
|
|
666
|
-
return
|
|
667
|
-
}
|
|
668
|
-
_ensureCacheMap(i, t) {
|
|
669
|
-
let e = this._cache.get(i);
|
|
670
|
-
e || (e = /* @__PURE__ */ new Map(), this._cache.set(i, e));
|
|
671
|
-
let s = e.get(t);
|
|
672
|
-
return s || (s = /* @__PURE__ */ new Map(), e.set(t, s)), s;
|
|
673
|
-
}
|
|
674
|
-
_deleteCache(i, t, e) {
|
|
675
|
-
const s = this._cache.get(i);
|
|
676
|
-
if (s) {
|
|
677
|
-
const r = s.get(t);
|
|
678
|
-
r && (e ? r.delete(e) : r.clear());
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
getCache(i, t, e) {
|
|
682
|
-
return this._ensureCacheMap(i, t).get(e);
|
|
276
|
+
_ensureSubunitFormulaMap(s, t) {
|
|
277
|
+
let e = this._formulaMap.get(s);
|
|
278
|
+
e || (e = /* @__PURE__ */ new Map(), this._formulaMap.set(s, e));
|
|
279
|
+
let r = e.get(t);
|
|
280
|
+
return r || (r = new O2([], ["formulaId", "id"]), e.set(t, r)), r;
|
|
683
281
|
}
|
|
684
|
-
getSubUnitFormulaMap(
|
|
282
|
+
getSubUnitFormulaMap(s, t) {
|
|
685
283
|
var e;
|
|
686
|
-
return (e = this._formulaMap.get(
|
|
284
|
+
return (e = this._formulaMap.get(s)) == null ? void 0 : e.get(t);
|
|
687
285
|
}
|
|
688
|
-
registerFormulaWithRange(
|
|
689
|
-
const a = this._ensureSubunitFormulaMap(
|
|
690
|
-
if (a.getValue(
|
|
286
|
+
registerFormulaWithRange(s, t, e, r, i = [{ startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }]) {
|
|
287
|
+
const a = this._ensureSubunitFormulaMap(s, t), u = this.createCFormulaId(e, r);
|
|
288
|
+
if (a.getValue(u, ["id"]))
|
|
691
289
|
return;
|
|
692
|
-
const
|
|
290
|
+
const l = this._createFormulaId(s, t);
|
|
693
291
|
a.addValue({
|
|
694
|
-
formulaText:
|
|
292
|
+
formulaText: r,
|
|
293
|
+
unitId: s,
|
|
294
|
+
subUnitId: t,
|
|
695
295
|
cfId: e,
|
|
696
|
-
id:
|
|
697
|
-
ranges:
|
|
698
|
-
formulaId:
|
|
296
|
+
id: u,
|
|
297
|
+
ranges: i,
|
|
298
|
+
formulaId: l,
|
|
699
299
|
status: 3,
|
|
700
|
-
result: new
|
|
300
|
+
result: new T()
|
|
701
301
|
});
|
|
702
|
-
const
|
|
703
|
-
unitId:
|
|
302
|
+
const o = {
|
|
303
|
+
unitId: s,
|
|
704
304
|
subUnitId: t,
|
|
705
305
|
formulaMap: {
|
|
706
|
-
[
|
|
707
|
-
f:
|
|
708
|
-
ranges:
|
|
306
|
+
[l]: {
|
|
307
|
+
f: r,
|
|
308
|
+
ranges: i
|
|
709
309
|
}
|
|
710
310
|
}
|
|
711
311
|
};
|
|
712
|
-
this._commandService.executeCommand(
|
|
312
|
+
this._commandService.executeCommand(z2.id, o).then(() => {
|
|
713
313
|
this._commandService.executeCommand(
|
|
714
|
-
|
|
715
|
-
{ [
|
|
314
|
+
n2.id,
|
|
315
|
+
{ [s]: { [t]: { [l]: !0 } } }
|
|
716
316
|
);
|
|
717
317
|
});
|
|
718
318
|
}
|
|
719
|
-
_removeFormulaByCfId(
|
|
720
|
-
const
|
|
721
|
-
|
|
722
|
-
const r = s.getValues().filter((o) => o.cfId === e);
|
|
723
|
-
r.forEach((o) => {
|
|
724
|
-
s.deleteValue(o.id, ["id"]);
|
|
725
|
-
});
|
|
726
|
-
const a = r.map((o) => o.formulaId);
|
|
727
|
-
this._commandService.executeCommand(o0.id, { unitId: i, subUnitId: t, formulaIdList: a });
|
|
319
|
+
_removeFormulaByCfId(s, t, e) {
|
|
320
|
+
const i = this.deleteCache(s, t, e).map((a) => a.formulaId);
|
|
321
|
+
this._commandService.executeCommand(Q2.id, { unitId: s, subUnitId: t, formulaIdList: i });
|
|
728
322
|
}
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
if (!
|
|
323
|
+
getFormulaResultWithCoords(s, t, e, r, i = 0, a = 0) {
|
|
324
|
+
const u = this.getSubUnitFormulaMap(s, t);
|
|
325
|
+
if (!u)
|
|
732
326
|
return {
|
|
733
327
|
status: 1
|
|
734
328
|
/* NOT_REGISTER */
|
|
735
329
|
};
|
|
736
|
-
const l =
|
|
330
|
+
const l = u.getValue(this.createCFormulaId(e, r), ["id"]);
|
|
737
331
|
return l ? l.status === 2 && l.result ? {
|
|
738
|
-
result: l.result.getValue(
|
|
332
|
+
result: l.result.getValue(i, a),
|
|
739
333
|
status: 2
|
|
740
334
|
/* SUCCESS */
|
|
741
335
|
} : l.status === 3 ? {
|
|
@@ -749,34 +343,153 @@ let N = class extends x2 {
|
|
|
749
343
|
/* NOT_REGISTER */
|
|
750
344
|
};
|
|
751
345
|
}
|
|
752
|
-
|
|
753
|
-
|
|
346
|
+
getFormulaMatrix(s, t, e, r) {
|
|
347
|
+
const i = this.getSubUnitFormulaMap(s, t);
|
|
348
|
+
if (!i)
|
|
349
|
+
return {
|
|
350
|
+
status: 1
|
|
351
|
+
/* NOT_REGISTER */
|
|
352
|
+
};
|
|
353
|
+
const a = i.getValue(this.createCFormulaId(e, r), ["id"]);
|
|
354
|
+
if (!a)
|
|
355
|
+
return {
|
|
356
|
+
status: 1
|
|
357
|
+
/* NOT_REGISTER */
|
|
358
|
+
};
|
|
359
|
+
if (a.status === 2 && a.result)
|
|
360
|
+
return {
|
|
361
|
+
result: a.result,
|
|
362
|
+
status: 2
|
|
363
|
+
/* SUCCESS */
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* If `formulaText` is not provided, then all caches related to `cfId` will be deleted.
|
|
368
|
+
*/
|
|
369
|
+
deleteCache(s, t, e, r) {
|
|
370
|
+
const i = this.getSubUnitFormulaMap(s, t);
|
|
371
|
+
if (!i)
|
|
372
|
+
return [];
|
|
373
|
+
if (r) {
|
|
374
|
+
const a = this.createCFormulaId(e, r);
|
|
375
|
+
return i.deleteValue(a, ["id"]), [];
|
|
376
|
+
} else {
|
|
377
|
+
const a = i.getValues().filter((u) => u.cfId === e);
|
|
378
|
+
return a.forEach((u) => {
|
|
379
|
+
i.deleteValue(u.formulaId, ["formulaId"]);
|
|
380
|
+
}), a;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
_getAllFormulaResultByCfId(s, t, e) {
|
|
384
|
+
const r = this.getSubUnitFormulaMap(s, t);
|
|
385
|
+
return r ? r.getValues().filter((a) => a.cfId === e) : [];
|
|
754
386
|
}
|
|
755
|
-
|
|
756
|
-
|
|
387
|
+
/**
|
|
388
|
+
* The external environment is not aware of`formulaId`;it communicates internally with the formula engine.
|
|
389
|
+
*/
|
|
390
|
+
_createFormulaId(s, t) {
|
|
391
|
+
return `sheet.cf_${s}_${t}_${H.generateRandomId(8)}`;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* A conditional formatting may have multiple formulas;if the formulas are identical,then the results will be consistent.
|
|
395
|
+
*/
|
|
396
|
+
createCFormulaId(s, t) {
|
|
397
|
+
return `${s}_${t}`;
|
|
757
398
|
}
|
|
758
399
|
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
400
|
+
G = w0([
|
|
401
|
+
d2(0, A(f2)),
|
|
402
|
+
d2(1, A(K2)),
|
|
403
|
+
d2(2, A(B))
|
|
404
|
+
], G);
|
|
405
|
+
var L = /* @__PURE__ */ ((n) => (n.preComputingStart = "preComputingStart", n.preComputing = "preComputing", n.preComputingEnd = "preComputingEnd", n.preComputingError = "preComputingError", n))(L || {});
|
|
406
|
+
class u2 {
|
|
407
|
+
constructor(s) {
|
|
408
|
+
/**
|
|
409
|
+
* 3nd-level cache
|
|
410
|
+
*/
|
|
411
|
+
m(this, "_cache");
|
|
412
|
+
m(this, "_preComputingStatus$", new G2(
|
|
413
|
+
"preComputingStart"
|
|
414
|
+
/* preComputingStart */
|
|
415
|
+
));
|
|
416
|
+
m(this, "preComputingStatus$", this._preComputingStatus$.asObservable().pipe(j2()));
|
|
417
|
+
/**
|
|
418
|
+
* 2nd-level cache
|
|
419
|
+
*/
|
|
420
|
+
m(this, "_preComputingCache");
|
|
421
|
+
m(this, "_rule");
|
|
422
|
+
this._context = s, this._cache = new I2(s.limit), this._rule = s.rule, this._preComputingCache = null, this._initClearCacheListener();
|
|
423
|
+
}
|
|
424
|
+
setCacheLength(s) {
|
|
425
|
+
this._cache.limit = s;
|
|
426
|
+
}
|
|
427
|
+
clearCache() {
|
|
428
|
+
this._cache.clear();
|
|
429
|
+
}
|
|
430
|
+
resetPreComputingCache() {
|
|
431
|
+
this._preComputingStatus$.next(
|
|
432
|
+
"preComputingStart"
|
|
433
|
+
/* preComputingStart */
|
|
434
|
+
), this._preComputingCache = null;
|
|
435
|
+
}
|
|
436
|
+
updateRule(s) {
|
|
437
|
+
this._rule = s, this.resetPreComputingCache();
|
|
438
|
+
}
|
|
439
|
+
getCell(s, t) {
|
|
440
|
+
const e = this._createKey(s, t);
|
|
441
|
+
if (this._preComputingStatus$.getValue() === "preComputing")
|
|
442
|
+
return this._cache.get(e);
|
|
443
|
+
let r = this.getPreComputingResult(s, t);
|
|
444
|
+
if (r === null && (this._preComputingStatus$.next(
|
|
445
|
+
"preComputingStart"
|
|
446
|
+
/* preComputingStart */
|
|
447
|
+
), this.preComputing(s, t, this._getContext()), r = this.getPreComputingResult(s, t), r === null))
|
|
448
|
+
return this._cache.get(e);
|
|
449
|
+
if (this._preComputingStatus$.next(
|
|
450
|
+
"preComputingEnd"
|
|
451
|
+
/* preComputingEnd */
|
|
452
|
+
), this._cache.has(e))
|
|
453
|
+
return this._cache.get(e);
|
|
454
|
+
const i = this.getCellResult(s, t, r, this._getContext());
|
|
455
|
+
return i !== null && this._setCache(s, t, i), i;
|
|
456
|
+
}
|
|
457
|
+
setPreComputingCache(s) {
|
|
458
|
+
this._preComputingCache = s;
|
|
459
|
+
}
|
|
460
|
+
getPreComputingResult(s, t) {
|
|
461
|
+
return this._preComputingCache;
|
|
462
|
+
}
|
|
463
|
+
_createKey(s, t) {
|
|
464
|
+
return `${s}_${t}`;
|
|
465
|
+
}
|
|
466
|
+
_setCache(s, t, e) {
|
|
467
|
+
const r = this._createKey(s, t);
|
|
468
|
+
this._cache.set(r, e);
|
|
469
|
+
}
|
|
470
|
+
_getContext() {
|
|
471
|
+
return { ...this._context, rule: this._rule };
|
|
472
|
+
}
|
|
473
|
+
_initClearCacheListener() {
|
|
474
|
+
this.preComputingStatus$.subscribe((s) => {
|
|
475
|
+
s === "preComputingEnd" && this.clearCache();
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
function a2(n, s) {
|
|
480
|
+
return Math.abs(n - s) < Number.EPSILON;
|
|
768
481
|
}
|
|
769
|
-
const
|
|
770
|
-
var e,
|
|
482
|
+
const I = (n) => [void 0, null].includes(n), U = (n) => {
|
|
483
|
+
var e, r;
|
|
771
484
|
if (!n)
|
|
772
485
|
return null;
|
|
773
|
-
if (n.t ===
|
|
774
|
-
return n.v ===
|
|
775
|
-
const
|
|
776
|
-
return
|
|
777
|
-
},
|
|
778
|
-
function
|
|
779
|
-
if (
|
|
486
|
+
if (n.t === _.BOOLEAN)
|
|
487
|
+
return n.v === R2.TRUE ? A2.TRUE : A2.FALSE;
|
|
488
|
+
const s = n.v, t = (r = (e = n.p) == null ? void 0 : e.body) == null ? void 0 : r.dataStream.replace(/\r\n$/, "");
|
|
489
|
+
return I(s) ? I(t) ? null : t : s;
|
|
490
|
+
}, g2 = 86400;
|
|
491
|
+
function E0(n, s = !0) {
|
|
492
|
+
if (s && n >= 0) {
|
|
780
493
|
if (n === 0)
|
|
781
494
|
return [1900, 1, 0];
|
|
782
495
|
if (n === 60)
|
|
@@ -787,677 +500,1053 @@ function V0(n, i = !0) {
|
|
|
787
500
|
let t = n + 68569 + 2415019;
|
|
788
501
|
const e = Math.floor(4 * t / 146097);
|
|
789
502
|
t = t - Math.floor((146097 * e + 3) / 4);
|
|
790
|
-
const
|
|
791
|
-
t = t - Math.floor(1461 *
|
|
792
|
-
const
|
|
793
|
-
t = Math.floor(
|
|
794
|
-
const
|
|
795
|
-
return [100 * (e - 49) +
|
|
503
|
+
const r = Math.floor(4e3 * (t + 1) / 1461001);
|
|
504
|
+
t = t - Math.floor(1461 * r / 4) + 31;
|
|
505
|
+
const i = Math.floor(80 * t / 2447), a = t - Math.floor(2447 * i / 80);
|
|
506
|
+
t = Math.floor(i / 11);
|
|
507
|
+
const u = i + 2 - 12 * t;
|
|
508
|
+
return [100 * (e - 49) + r + t | 0, u | 0, a | 0];
|
|
796
509
|
}
|
|
797
|
-
const
|
|
798
|
-
let
|
|
799
|
-
const t =
|
|
510
|
+
const p0 = (n) => {
|
|
511
|
+
let s = n | 0;
|
|
512
|
+
const t = g2 * (n - s);
|
|
800
513
|
let e = Math.floor(t);
|
|
801
|
-
t - e > 0.9999 && (e += 1, e ===
|
|
802
|
-
const
|
|
803
|
-
return
|
|
804
|
-
},
|
|
514
|
+
t - e > 0.9999 && (e += 1, e === g2 && (e = 0, s += 1));
|
|
515
|
+
const r = e < 0 ? g2 + e : e, [i, a, u] = E0(n, !0), l = Math.floor(r / 60 / 60) % 60, o = Math.floor(r / 60) % 60, h = Math.floor(r) % 60;
|
|
516
|
+
return v(`${i}/${a}/${u} ${l}:${o}:${h}`).valueOf();
|
|
517
|
+
}, l2 = (n, s, t) => {
|
|
805
518
|
switch (n.type) {
|
|
806
|
-
case
|
|
519
|
+
case x.max: {
|
|
807
520
|
let e = 0;
|
|
808
|
-
return
|
|
521
|
+
return s.forValue((r, i, a) => {
|
|
809
522
|
a > e && (e = a);
|
|
810
523
|
}), {
|
|
811
|
-
status:
|
|
524
|
+
status: b.SUCCESS,
|
|
812
525
|
result: e
|
|
813
526
|
};
|
|
814
527
|
}
|
|
815
|
-
case
|
|
528
|
+
case x.min: {
|
|
816
529
|
let e;
|
|
817
|
-
return
|
|
530
|
+
return s.forValue((r, i, a) => {
|
|
818
531
|
e === void 0 && (e = a), a < e && (e = a);
|
|
819
532
|
}), {
|
|
820
|
-
status:
|
|
533
|
+
status: b.SUCCESS,
|
|
821
534
|
result: e
|
|
822
535
|
};
|
|
823
536
|
}
|
|
824
|
-
case
|
|
825
|
-
let e,
|
|
826
|
-
|
|
827
|
-
(e === void 0 ||
|
|
537
|
+
case x.percent: {
|
|
538
|
+
let e, r;
|
|
539
|
+
s.forValue((u, l, o) => {
|
|
540
|
+
(e === void 0 || r === void 0) && (e = o, r = o), o > e && (e = o), o < r && (r = o);
|
|
828
541
|
});
|
|
829
|
-
const
|
|
542
|
+
const i = (e || 0) - (r || 0), a = Math.max(Math.min(Number(n.value) || 0, 100), 0);
|
|
830
543
|
return {
|
|
831
|
-
status:
|
|
832
|
-
result:
|
|
544
|
+
status: b.SUCCESS,
|
|
545
|
+
result: i * (a / 100) + (r || 0)
|
|
833
546
|
};
|
|
834
547
|
}
|
|
835
|
-
case
|
|
836
|
-
const e =
|
|
548
|
+
case x.percentile: {
|
|
549
|
+
const e = s.toNativeArray().sort((o, h) => o - h), r = Math.max(Math.min(Number(n.value) || 0, 100), 0), i = (e.length - 1) * r / 100, a = Math.floor(i), u = i - a, l = e[a] + (e[Math.min(a + 1, e.length - 1)] - e[a]) * u;
|
|
837
550
|
return {
|
|
838
|
-
status:
|
|
551
|
+
status: b.SUCCESS,
|
|
839
552
|
result: l
|
|
840
553
|
};
|
|
841
554
|
}
|
|
842
|
-
case
|
|
843
|
-
const { accessor: e, unitId:
|
|
844
|
-
return l.registerFormulaWithRange(
|
|
555
|
+
case x.formula: {
|
|
556
|
+
const { accessor: e, unitId: r, subUnitId: i, cfId: a } = t, u = String(n.value), l = e.get(G);
|
|
557
|
+
return l.registerFormulaWithRange(r, i, a, u), l.getFormulaResultWithCoords(r, i, a, u);
|
|
845
558
|
}
|
|
846
|
-
case
|
|
559
|
+
case x.num: {
|
|
847
560
|
const e = Number(n.value);
|
|
848
561
|
return {
|
|
849
|
-
status:
|
|
562
|
+
status: b.SUCCESS,
|
|
850
563
|
result: Number.isNaN(e) ? 0 : e
|
|
851
564
|
};
|
|
852
565
|
}
|
|
853
566
|
}
|
|
854
|
-
},
|
|
855
|
-
const { accessor:
|
|
856
|
-
return t.ranges.forEach((
|
|
857
|
-
|
|
858
|
-
const h =
|
|
567
|
+
}, y1 = (n, s, t, e) => {
|
|
568
|
+
const { accessor: r } = e, i = r.get(j), a = new T();
|
|
569
|
+
return t.ranges.forEach((u) => {
|
|
570
|
+
N.foreach(u, (l, o) => {
|
|
571
|
+
const h = i.getCellCfs(n, s, l, o);
|
|
859
572
|
if (h) {
|
|
860
|
-
const
|
|
861
|
-
|
|
573
|
+
const c = h.find((d) => d.cfId === t.cfId);
|
|
574
|
+
c != null && c.result && a.setValue(l, o, c.result);
|
|
862
575
|
}
|
|
863
576
|
});
|
|
864
577
|
}), a;
|
|
865
|
-
},
|
|
578
|
+
}, Y = (n, s) => {
|
|
866
579
|
switch (n.operator) {
|
|
867
|
-
case
|
|
580
|
+
case w.between: {
|
|
868
581
|
if (typeof n.value != "object" || !n.value.length)
|
|
869
582
|
return;
|
|
870
583
|
const t = Math.min(...n.value), e = Math.max(...n.value);
|
|
871
|
-
return
|
|
584
|
+
return s >= t && s <= e;
|
|
872
585
|
}
|
|
873
|
-
case
|
|
586
|
+
case w.notBetween: {
|
|
874
587
|
if (typeof n.value != "object" || !n.value.length)
|
|
875
588
|
return;
|
|
876
589
|
const t = Math.min(...n.value), e = Math.max(...n.value);
|
|
877
|
-
return !(
|
|
590
|
+
return !(s >= t && s <= e);
|
|
878
591
|
}
|
|
879
|
-
case
|
|
592
|
+
case w.equal: {
|
|
880
593
|
const t = n.value || 0;
|
|
881
|
-
return
|
|
594
|
+
return a2(t, s);
|
|
882
595
|
}
|
|
883
|
-
case
|
|
596
|
+
case w.notEqual: {
|
|
884
597
|
const t = n.value || 0;
|
|
885
|
-
return !
|
|
598
|
+
return !a2(t, s);
|
|
886
599
|
}
|
|
887
|
-
case
|
|
600
|
+
case w.greaterThan: {
|
|
888
601
|
const t = n.value || 0;
|
|
889
|
-
return
|
|
602
|
+
return s > t;
|
|
890
603
|
}
|
|
891
|
-
case
|
|
604
|
+
case w.greaterThanOrEqual: {
|
|
892
605
|
const t = n.value || 0;
|
|
893
|
-
return
|
|
606
|
+
return s >= t;
|
|
894
607
|
}
|
|
895
|
-
case
|
|
608
|
+
case w.lessThan: {
|
|
896
609
|
const t = n.value || 0;
|
|
897
|
-
return
|
|
610
|
+
return s < t;
|
|
898
611
|
}
|
|
899
|
-
case
|
|
612
|
+
case w.lessThanOrEqual: {
|
|
900
613
|
const t = n.value || 0;
|
|
901
|
-
return
|
|
614
|
+
return s <= t;
|
|
902
615
|
}
|
|
903
616
|
default:
|
|
904
617
|
return !1;
|
|
905
618
|
}
|
|
906
|
-
},
|
|
619
|
+
}, A0 = (n) => {
|
|
907
620
|
switch (n) {
|
|
908
|
-
case
|
|
909
|
-
return
|
|
910
|
-
case
|
|
911
|
-
return
|
|
912
|
-
case
|
|
913
|
-
return
|
|
914
|
-
case
|
|
915
|
-
return
|
|
621
|
+
case w.greaterThan:
|
|
622
|
+
return w.lessThanOrEqual;
|
|
623
|
+
case w.greaterThanOrEqual:
|
|
624
|
+
return w.lessThan;
|
|
625
|
+
case w.lessThan:
|
|
626
|
+
return w.greaterThanOrEqual;
|
|
627
|
+
case w.lessThanOrEqual:
|
|
628
|
+
return w.greaterThan;
|
|
916
629
|
}
|
|
917
630
|
return n;
|
|
918
|
-
},
|
|
919
|
-
const t = (
|
|
631
|
+
}, _0 = (n, s) => {
|
|
632
|
+
const t = (i) => i.a !== void 0 ? i : { ...i, a: 1 }, e = n.findIndex((i) => i.value >= s), r = e - 1;
|
|
920
633
|
if (e === 0)
|
|
921
634
|
return n[0].color.toRgbString();
|
|
922
|
-
if (
|
|
923
|
-
const
|
|
924
|
-
if (
|
|
925
|
-
const
|
|
926
|
-
const
|
|
927
|
-
return
|
|
635
|
+
if (r >= 0) {
|
|
636
|
+
const i = n[r], a = n[e];
|
|
637
|
+
if (i.color.isValid && a.color.isValid) {
|
|
638
|
+
const u = t(i.color.toRgb()), l = t(a.color.toRgb()), o = a.value - i.value, h = (s - i.value) / o, c = ["r", "g", "b", "a"].reduce((C, D) => {
|
|
639
|
+
const f = u[D];
|
|
640
|
+
return C[D] = (l[D] - f) * h + f, C;
|
|
928
641
|
}, {});
|
|
929
|
-
return new
|
|
642
|
+
return new b2(c).toRgbString();
|
|
930
643
|
}
|
|
931
644
|
} else
|
|
932
645
|
return n[n.length - 1].color.toRgbString();
|
|
933
|
-
},
|
|
934
|
-
if (e.startColumn > t || e.startRow >
|
|
646
|
+
}, w2 = (n, s, t) => n.map((e) => {
|
|
647
|
+
if (e.startColumn > t || e.startRow > s)
|
|
935
648
|
return null;
|
|
936
|
-
const
|
|
937
|
-
return
|
|
649
|
+
const r = { ...e };
|
|
650
|
+
return r.endRow = Math.min(r.endRow, s), r.endColumn = Math.min(r.endColumn, t), r;
|
|
938
651
|
}).filter((e) => !!e);
|
|
939
|
-
function
|
|
940
|
-
let
|
|
941
|
-
return new
|
|
942
|
-
|
|
943
|
-
}),
|
|
652
|
+
function M1(n) {
|
|
653
|
+
let s = 0;
|
|
654
|
+
return new T(n).forValue((t, e, r) => {
|
|
655
|
+
s = Math.max(Number.isNaN(s) ? 0 : s, Number(r));
|
|
656
|
+
}), s;
|
|
944
657
|
}
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
const F = Number(m);
|
|
955
|
-
!Number.isNaN(F) && r.setValue(d, D, F);
|
|
658
|
+
class x0 extends u2 {
|
|
659
|
+
preComputing(s, t, e) {
|
|
660
|
+
const r = e.rule, i = e.worksheet, a = new T();
|
|
661
|
+
!r.rule.config.every((h) => h.value.type === x.num) && w2(r.ranges, i.getMaxRows() - 1, i.getMaxColumns() - 1).forEach((c) => {
|
|
662
|
+
N.foreach(c, (d, C) => {
|
|
663
|
+
const D = e.getCellValue(d, C), f = D && D.v;
|
|
664
|
+
if (!I(f) && (D == null ? void 0 : D.t) === _.NUMBER) {
|
|
665
|
+
const F = Number(f);
|
|
666
|
+
!Number.isNaN(F) && a.setValue(d, C, F);
|
|
956
667
|
}
|
|
957
668
|
});
|
|
958
669
|
});
|
|
959
|
-
const
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
})
|
|
964
|
-
|
|
965
|
-
const l = [...t.config].sort((g, d) => g.index - d.index).map((g) => ({
|
|
966
|
-
value: a2(g.value, r, { ...i, cfId: n.cfId }),
|
|
967
|
-
color: new M2(g.color)
|
|
670
|
+
const l = [...r.rule.config].sort((h, c) => h.index - c.index).map((h) => ({
|
|
671
|
+
value: l2(h.value, a, {
|
|
672
|
+
...e,
|
|
673
|
+
cfId: r.cfId
|
|
674
|
+
}),
|
|
675
|
+
color: new b2(h.color)
|
|
968
676
|
}));
|
|
969
|
-
if (l.some((
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
677
|
+
if (!l.some((h) => e0(h.value) ? h.value.status !== b.SUCCESS : !1)) {
|
|
678
|
+
const h = l.map((c) => c.color).reduce((c, d, C) => (c.result.push({ color: d, value: c.sortValue[C] }), c), {
|
|
679
|
+
result: [],
|
|
680
|
+
sortValue: l.map((c) => c.value.result).sort((c, d) => c - d)
|
|
681
|
+
}).result;
|
|
682
|
+
this.setPreComputingCache(h), this._preComputingStatus$.next(L.preComputingEnd);
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
685
|
+
this._preComputingStatus$.next(L.preComputing);
|
|
686
|
+
}
|
|
687
|
+
getCellResult(s, t, e, r) {
|
|
688
|
+
if (!e)
|
|
689
|
+
return null;
|
|
690
|
+
const i = r.getCellValue(s, t);
|
|
691
|
+
if (i.t === _.NUMBER) {
|
|
692
|
+
const a = Number(i.v);
|
|
693
|
+
if (!Number.isNaN(a))
|
|
694
|
+
return _0(e, a);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
const y0 = "sheet-conditional-rule-data-bar", x2 = "#ffbe38", y2 = "#abd91a", M0 = "#000", R0 = 34;
|
|
699
|
+
class I0 extends B2 {
|
|
982
700
|
constructor() {
|
|
983
701
|
super(...arguments);
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
702
|
+
m(this, "_paddingRightAndLeft", 2);
|
|
703
|
+
m(this, "_paddingTopAndBottom", 2);
|
|
704
|
+
m(this, "uKey", y0);
|
|
705
|
+
m(this, "Z_INDEX", R0);
|
|
706
|
+
m(this, "_radius", 1);
|
|
989
707
|
}
|
|
990
708
|
// eslint-disable-next-line max-lines-per-function
|
|
991
|
-
draw(t, e,
|
|
992
|
-
const { worksheet: a } =
|
|
709
|
+
draw(t, e, r, i) {
|
|
710
|
+
const { worksheet: a } = r;
|
|
993
711
|
if (!a)
|
|
994
712
|
return !1;
|
|
995
|
-
t.save(),
|
|
996
|
-
if (!a.getRowVisible(
|
|
713
|
+
t.save(), N.foreach(r.rowColumnSegment, (u, l) => {
|
|
714
|
+
if (!a.getRowVisible(u) || !a.getColVisible(l))
|
|
997
715
|
return;
|
|
998
|
-
const
|
|
999
|
-
if (
|
|
1000
|
-
const { color: h, value:
|
|
1001
|
-
let { isMerged:
|
|
1002
|
-
if (
|
|
716
|
+
const o = a.getCell(u, l);
|
|
717
|
+
if (o && o.dataBar) {
|
|
718
|
+
const { color: h, value: c, startPoint: d, isGradient: C } = o.dataBar, D = r.getCellWithCoordByIndex(u, l, !1);
|
|
719
|
+
let { isMerged: f, isMergedMainCell: F, mergeInfo: p, startY: S, endY: k, startX: V, endX: z } = D;
|
|
720
|
+
if (f || (F && (S = p.startY, k = p.endY, V = p.startX, z = p.endX), !this.isRenderDiffRangesByCell(p, i)))
|
|
1003
721
|
return;
|
|
1004
|
-
const
|
|
1005
|
-
if (
|
|
1006
|
-
const
|
|
1007
|
-
if (
|
|
1008
|
-
const
|
|
1009
|
-
|
|
722
|
+
const Q = z - V, h2 = k + t0 - S, e2 = Q - this._paddingRightAndLeft * 2, p2 = h2 - this._paddingTopAndBottom * 2;
|
|
723
|
+
if (c > 0) {
|
|
724
|
+
const Z = Math.max(e2 * (1 - d / 100) * c / 100, 1), O = V + this._paddingRightAndLeft + d / 100 * e2, $ = S + this._paddingTopAndBottom;
|
|
725
|
+
if (C) {
|
|
726
|
+
const P = t.createLinearGradient(O, $, O + Z, $);
|
|
727
|
+
P.addColorStop(0, h), P.addColorStop(1, "rgb(255 255 255)"), t.fillStyle = P, t.strokeStyle = h, t.lineWidth = 1;
|
|
1010
728
|
} else
|
|
1011
729
|
t.fillStyle = h;
|
|
1012
|
-
this._drawRectWithRoundedCorner(t, $,
|
|
730
|
+
this._drawRectWithRoundedCorner(t, O, $, Z, p2, !1, !0, !0, !1), C && t.stroke();
|
|
1013
731
|
} else {
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
1016
|
-
const
|
|
1017
|
-
|
|
732
|
+
const Z = Math.max(e2 * d / 100 * Math.abs(c) / 100, 1), O = V + this._paddingRightAndLeft + d / 100 * e2 - Z, $ = S + this._paddingTopAndBottom;
|
|
733
|
+
if (C) {
|
|
734
|
+
const P = t.createLinearGradient(O, $, O + Z, $);
|
|
735
|
+
P.addColorStop(0, "rgb(255 255 255)"), P.addColorStop(1, h), t.fillStyle = P, t.strokeStyle = h, t.lineWidth = 1;
|
|
1018
736
|
} else
|
|
1019
737
|
t.fillStyle = h;
|
|
1020
|
-
this._drawRectWithRoundedCorner(t, $,
|
|
738
|
+
this._drawRectWithRoundedCorner(t, O, $, Z, p2, !0, !1, !1, !0), C && t.stroke();
|
|
1021
739
|
}
|
|
1022
740
|
}
|
|
1023
741
|
}), t.restore();
|
|
1024
742
|
}
|
|
1025
|
-
_drawRectWithRoundedCorner(t, e,
|
|
1026
|
-
const
|
|
1027
|
-
!a || !
|
|
743
|
+
_drawRectWithRoundedCorner(t, e, r, i, a, u, l, o, h) {
|
|
744
|
+
const c = this._radius;
|
|
745
|
+
!a || !i || (t.beginPath(), t.moveTo(e + c, r), t.lineTo(e + i - c, r), l ? t.arcTo(e + i, r, e + i, r + c, c) : t.lineTo(e + i, r), t.lineTo(e + i, r + a - c), o ? t.arcTo(e + i, r + a, e + i - c, r + a, c) : t.lineTo(e + i, r + a), t.lineTo(e + c, r + a), h ? t.arcTo(e, r + a, e, r + a - c, c) : t.lineTo(e, r + a), t.lineTo(e, r + c), u ? t.arcTo(e, r, e + c, r, c) : t.lineTo(e, r), t.closePath(), t.fill());
|
|
1028
746
|
}
|
|
1029
747
|
}
|
|
1030
|
-
|
|
1031
|
-
const
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
748
|
+
L2.add(I0);
|
|
749
|
+
const t2 = (n) => Math.max(Math.min(100, n), 0), b0 = (n, s, t) => {
|
|
750
|
+
const e = t(n, s);
|
|
751
|
+
if (e && e.t === _.NUMBER) {
|
|
752
|
+
const r = Number(e.v);
|
|
753
|
+
return Number.isNaN(r) ? null : r;
|
|
754
|
+
}
|
|
755
|
+
return null;
|
|
756
|
+
};
|
|
757
|
+
class S0 extends u2 {
|
|
758
|
+
preComputing(s, t, e) {
|
|
759
|
+
const r = e.rule, i = r.rule, a = e.worksheet, u = new T();
|
|
760
|
+
![r.rule.config.max, r.rule.config.min].every((C) => C.type === x.num) && w2(r.ranges, a.getMaxRows() - 1, a.getMaxColumns() - 1).forEach((D) => {
|
|
761
|
+
N.foreach(D, (f, F) => {
|
|
762
|
+
const p = e.getCellValue(f, F), S = p && p.v;
|
|
763
|
+
if (!I(S) && (p == null ? void 0 : p.t) === _.NUMBER) {
|
|
764
|
+
const k = Number(S);
|
|
765
|
+
!Number.isNaN(k) && u.setValue(f, F, k);
|
|
1044
766
|
}
|
|
1045
767
|
});
|
|
1046
768
|
});
|
|
1047
|
-
const o =
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1091
|
-
} else if (h >= 0 && u > 0) {
|
|
1092
|
-
const C = u - h, m = 0;
|
|
1093
|
-
r.forValue((F, w, v) => {
|
|
1094
|
-
if (v < h)
|
|
1095
|
-
return;
|
|
1096
|
-
const A = D((1 - (u - v) / C) * 100);
|
|
1097
|
-
o.setValue(F, w, { color: t.config.positiveColor || v2, startPoint: m, value: A, isGradient: g, isShowValue: d });
|
|
1098
|
-
});
|
|
769
|
+
const o = l2(i.config.min, u, { ...e, cfId: r.cfId }), h = l2(i.config.max, u, { ...e, cfId: r.cfId });
|
|
770
|
+
let c = 0, d = 0;
|
|
771
|
+
if (o.status === b.SUCCESS) {
|
|
772
|
+
const C = Number(o.result);
|
|
773
|
+
c = Number.isNaN(C) ? 0 : C;
|
|
774
|
+
} else {
|
|
775
|
+
this._preComputingStatus$.next(L.preComputing);
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
778
|
+
if (h.status === b.SUCCESS) {
|
|
779
|
+
const C = Number(h.result), D = Number.isNaN(C) ? 0 : C;
|
|
780
|
+
d = Math.max(D, c), c = Math.min(D, c);
|
|
781
|
+
let f = 50;
|
|
782
|
+
if (c < 0 && d <= 0)
|
|
783
|
+
f = 100;
|
|
784
|
+
else if (c < 0 && d > 0) {
|
|
785
|
+
const F = Math.abs(d) + Math.abs(c);
|
|
786
|
+
f = Math.abs(c) / F * 100;
|
|
787
|
+
} else c >= 0 && d > 0 && (f = 0);
|
|
788
|
+
this.setPreComputingCache({ min: c, max: d, startPoint: f }), this._preComputingStatus$.next(L.preComputingEnd);
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
this._preComputingStatus$.next(L.preComputing);
|
|
792
|
+
}
|
|
793
|
+
// eslint-disable-next-line complexity
|
|
794
|
+
getCellResult(s, t, e, r) {
|
|
795
|
+
const { min: i, max: a, startPoint: u } = e, o = r.rule.rule, h = o.isShowValue, c = o.config.isGradient, d = b0(s, t, r.getCellValue);
|
|
796
|
+
if (!(d === null || d < i || i === a || a < i)) {
|
|
797
|
+
if (d === 0)
|
|
798
|
+
return { color: M0, startPoint: u, value: 0, isGradient: c, isShowValue: h };
|
|
799
|
+
if (i < 0 && a <= 0) {
|
|
800
|
+
const C = a - i, D = t2((a - d) / C * 100);
|
|
801
|
+
return D === 0 ? void 0 : { color: o.config.nativeColor || y2, startPoint: u, value: -D, isGradient: c, isShowValue: h };
|
|
802
|
+
} else if (i < 0 && a > 0)
|
|
803
|
+
if (d > 0) {
|
|
804
|
+
const C = t2(Math.min(d / a, 1) * 100);
|
|
805
|
+
return C === 0 ? void 0 : { color: o.config.positiveColor || x2, startPoint: u, value: C, isGradient: c, isShowValue: h };
|
|
806
|
+
} else {
|
|
807
|
+
const C = t2(Math.min(Math.abs(d) / Math.abs(i), 1) * 100);
|
|
808
|
+
return C === 0 ? void 0 : { color: o.config.nativeColor || y2, startPoint: u, value: -C, isGradient: c, isShowValue: h };
|
|
809
|
+
}
|
|
810
|
+
else if (i >= 0 && a > 0) {
|
|
811
|
+
const C = a - i, D = 0, f = t2((1 - (a - d) / C) * 100);
|
|
812
|
+
return f === 0 ? void 0 : { color: o.config.positiveColor || x2, startPoint: D, value: f, isGradient: c, isShowValue: h };
|
|
1099
813
|
}
|
|
1100
814
|
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
const
|
|
1107
|
-
switch (
|
|
1108
|
-
case
|
|
1109
|
-
let
|
|
1110
|
-
return
|
|
1111
|
-
|
|
1112
|
-
const
|
|
1113
|
-
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
class L0 extends u2 {
|
|
818
|
+
// eslint-disable-next-line max-lines-per-function
|
|
819
|
+
preComputing(s, t, e) {
|
|
820
|
+
const r = e.rule.rule, i = e.rule.ranges, u = (() => {
|
|
821
|
+
switch (r.subType) {
|
|
822
|
+
case E.average: {
|
|
823
|
+
let l = 0, o = 0;
|
|
824
|
+
return i.forEach((h) => {
|
|
825
|
+
N.foreach(h, (c, d) => {
|
|
826
|
+
const C = e.getCellValue(c, d), D = U(C || void 0);
|
|
827
|
+
C && C.t === _.NUMBER && D !== void 0 && (l += Number(D) || 0, o++);
|
|
1114
828
|
});
|
|
1115
|
-
}), {
|
|
829
|
+
}), { value: l / o, type: r.subType };
|
|
1116
830
|
}
|
|
1117
|
-
case
|
|
1118
|
-
case
|
|
1119
|
-
const
|
|
1120
|
-
return
|
|
1121
|
-
|
|
1122
|
-
const
|
|
1123
|
-
if (
|
|
1124
|
-
const
|
|
1125
|
-
|
|
831
|
+
case E.uniqueValues:
|
|
832
|
+
case E.duplicateValues: {
|
|
833
|
+
const l = /* @__PURE__ */ new Map();
|
|
834
|
+
return i.forEach((o) => {
|
|
835
|
+
N.foreach(o, (h, c) => {
|
|
836
|
+
const d = e.getCellValue(h, c), C = U(d || void 0);
|
|
837
|
+
if (C !== void 0) {
|
|
838
|
+
const D = l.get(C);
|
|
839
|
+
D ? l.set(C, D + 1) : l.set(C, 1);
|
|
1126
840
|
}
|
|
1127
841
|
});
|
|
1128
|
-
}), {
|
|
842
|
+
}), { value: l, type: r.subType };
|
|
1129
843
|
}
|
|
1130
|
-
case
|
|
1131
|
-
const
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
const
|
|
1135
|
-
|
|
844
|
+
case E.rank: {
|
|
845
|
+
const l = [];
|
|
846
|
+
i.forEach((c) => {
|
|
847
|
+
N.foreach(c, (d, C) => {
|
|
848
|
+
const D = e.getCellValue(d, C), f = U(D || void 0);
|
|
849
|
+
D && D.t === _.NUMBER && f !== void 0 && l.push(Number(f) || 0);
|
|
1136
850
|
});
|
|
1137
|
-
}),
|
|
1138
|
-
const
|
|
1139
|
-
return
|
|
851
|
+
}), l.sort((c, d) => d - c);
|
|
852
|
+
const o = e.rule.rule, h = o.isPercent ? Math.floor(Math.max(Math.min(o.value, 100), 0) / 100 * l.length) : Math.floor(Math.max(Math.min(o.isBottom ? o.value - 1 : o.value, l.length), 0));
|
|
853
|
+
return o.isBottom ? { value: l[l.length - h - 1], type: r.subType } : { value: l[Math.max(h - 1, 0)], type: r.subType };
|
|
1140
854
|
}
|
|
1141
|
-
case
|
|
1142
|
-
const
|
|
1143
|
-
|
|
1144
|
-
|
|
855
|
+
case E.formula: {
|
|
856
|
+
const l = r, o = e.accessor.get(G);
|
|
857
|
+
o.registerFormulaWithRange(e.unitId, e.subUnitId, e.rule.cfId, l.value, e.rule.ranges);
|
|
858
|
+
const h = o.getFormulaMatrix(e.unitId, e.subUnitId, e.rule.cfId, l.value);
|
|
859
|
+
return h && h.status === b.SUCCESS ? (this._preComputingStatus$.next(L.preComputingEnd), {
|
|
860
|
+
value: h.result,
|
|
861
|
+
type: r.subType
|
|
862
|
+
}) : (this._preComputingStatus$.next(L.preComputing), null);
|
|
1145
863
|
}
|
|
1146
|
-
case
|
|
1147
|
-
switch (
|
|
1148
|
-
case
|
|
864
|
+
case E.timePeriod:
|
|
865
|
+
switch (r.operator) {
|
|
866
|
+
case R.last7Days:
|
|
1149
867
|
return {
|
|
1150
|
-
|
|
1151
|
-
start:
|
|
1152
|
-
end:
|
|
1153
|
-
}
|
|
868
|
+
value: {
|
|
869
|
+
start: v().subtract(7, "day").valueOf(),
|
|
870
|
+
end: v().valueOf()
|
|
871
|
+
},
|
|
872
|
+
type: r.subType
|
|
1154
873
|
};
|
|
1155
|
-
case
|
|
874
|
+
case R.lastMonth:
|
|
1156
875
|
return {
|
|
1157
|
-
|
|
1158
|
-
start:
|
|
1159
|
-
end:
|
|
1160
|
-
}
|
|
876
|
+
value: {
|
|
877
|
+
start: v().startOf("month").subtract(1, "month").valueOf(),
|
|
878
|
+
end: v().endOf("month").subtract(1, "month").valueOf()
|
|
879
|
+
},
|
|
880
|
+
type: r.subType
|
|
1161
881
|
};
|
|
1162
|
-
case
|
|
882
|
+
case R.lastWeek:
|
|
1163
883
|
return {
|
|
1164
|
-
|
|
1165
|
-
start:
|
|
1166
|
-
end:
|
|
1167
|
-
}
|
|
884
|
+
value: {
|
|
885
|
+
start: v().startOf("week").subtract(1, "week").valueOf(),
|
|
886
|
+
end: v().endOf("week").subtract(1, "week").valueOf()
|
|
887
|
+
},
|
|
888
|
+
type: r.subType
|
|
1168
889
|
};
|
|
1169
|
-
case
|
|
890
|
+
case R.nextMonth:
|
|
1170
891
|
return {
|
|
1171
|
-
|
|
1172
|
-
start:
|
|
1173
|
-
end:
|
|
1174
|
-
}
|
|
892
|
+
value: {
|
|
893
|
+
start: v().startOf("month").add(1, "month").valueOf(),
|
|
894
|
+
end: v().endOf("month").add(1, "month").valueOf()
|
|
895
|
+
},
|
|
896
|
+
type: r.subType
|
|
1175
897
|
};
|
|
1176
|
-
case
|
|
898
|
+
case R.nextWeek:
|
|
1177
899
|
return {
|
|
1178
|
-
|
|
1179
|
-
start:
|
|
1180
|
-
end:
|
|
1181
|
-
}
|
|
900
|
+
value: {
|
|
901
|
+
start: v().startOf("week").add(1, "week").valueOf(),
|
|
902
|
+
end: v().endOf("week").add(1, "week").valueOf()
|
|
903
|
+
},
|
|
904
|
+
type: r.subType
|
|
1182
905
|
};
|
|
1183
|
-
case
|
|
906
|
+
case R.thisMonth:
|
|
1184
907
|
return {
|
|
1185
|
-
|
|
1186
|
-
start:
|
|
1187
|
-
end:
|
|
1188
|
-
}
|
|
908
|
+
value: {
|
|
909
|
+
start: v().startOf("month").valueOf(),
|
|
910
|
+
end: v().endOf("month").valueOf()
|
|
911
|
+
},
|
|
912
|
+
type: r.subType
|
|
1189
913
|
};
|
|
1190
|
-
case
|
|
914
|
+
case R.thisWeek:
|
|
1191
915
|
return {
|
|
1192
|
-
|
|
1193
|
-
start:
|
|
1194
|
-
end:
|
|
1195
|
-
}
|
|
916
|
+
value: {
|
|
917
|
+
start: v().startOf("week").valueOf(),
|
|
918
|
+
end: v().endOf("week").valueOf()
|
|
919
|
+
},
|
|
920
|
+
type: r.subType
|
|
1196
921
|
};
|
|
1197
|
-
case
|
|
922
|
+
case R.today:
|
|
1198
923
|
return {
|
|
1199
|
-
|
|
1200
|
-
start:
|
|
1201
|
-
end:
|
|
1202
|
-
}
|
|
924
|
+
value: {
|
|
925
|
+
start: v().startOf("day").valueOf(),
|
|
926
|
+
end: v().endOf("day").valueOf()
|
|
927
|
+
},
|
|
928
|
+
type: r.subType
|
|
1203
929
|
};
|
|
1204
|
-
case
|
|
930
|
+
case R.tomorrow:
|
|
1205
931
|
return {
|
|
1206
|
-
|
|
1207
|
-
start:
|
|
1208
|
-
end:
|
|
1209
|
-
}
|
|
932
|
+
value: {
|
|
933
|
+
start: v().startOf("day").add(1, "day").valueOf(),
|
|
934
|
+
end: v().endOf("day").add(1, "day").valueOf()
|
|
935
|
+
},
|
|
936
|
+
type: r.subType
|
|
1210
937
|
};
|
|
1211
|
-
case
|
|
938
|
+
case R.yesterday:
|
|
1212
939
|
return {
|
|
1213
|
-
|
|
1214
|
-
start:
|
|
1215
|
-
end:
|
|
1216
|
-
}
|
|
940
|
+
value: {
|
|
941
|
+
start: v().startOf("day").subtract(1, "day").valueOf(),
|
|
942
|
+
end: v().endOf("day").subtract(1, "day").valueOf()
|
|
943
|
+
},
|
|
944
|
+
type: r.subType
|
|
1217
945
|
};
|
|
1218
946
|
}
|
|
1219
947
|
}
|
|
1220
|
-
})()
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
948
|
+
})();
|
|
949
|
+
this.setPreComputingCache(u);
|
|
950
|
+
}
|
|
951
|
+
// eslint-disable-next-line max-lines-per-function
|
|
952
|
+
getCellResult(s, t, e, r) {
|
|
953
|
+
const i = r.getCellValue(s, t), a = r.rule.rule;
|
|
954
|
+
return (() => {
|
|
955
|
+
switch (a.subType) {
|
|
956
|
+
case E.number: {
|
|
957
|
+
const o = i && Number(i.v);
|
|
958
|
+
if (I(o) || Number.isNaN(o) || (i == null ? void 0 : i.t) !== _.NUMBER)
|
|
959
|
+
return;
|
|
960
|
+
const h = a;
|
|
961
|
+
return Y({ operator: h.operator, value: h.value || 0 }, o || 0);
|
|
1229
962
|
}
|
|
1230
|
-
case
|
|
1231
|
-
const
|
|
1232
|
-
switch (
|
|
1233
|
-
case
|
|
1234
|
-
return
|
|
1235
|
-
case
|
|
1236
|
-
return /^\s*$/.test(
|
|
1237
|
-
case
|
|
1238
|
-
return !/^\s*$/.test(
|
|
1239
|
-
case
|
|
1240
|
-
return
|
|
1241
|
-
case
|
|
1242
|
-
return !
|
|
1243
|
-
case
|
|
1244
|
-
return
|
|
1245
|
-
case
|
|
1246
|
-
return
|
|
1247
|
-
case
|
|
1248
|
-
return
|
|
1249
|
-
case
|
|
1250
|
-
return
|
|
1251
|
-
case
|
|
1252
|
-
return
|
|
963
|
+
case E.text: {
|
|
964
|
+
const o = a, h = U(i), c = h === null ? "" : String(h), d = o.value || "";
|
|
965
|
+
switch (o.operator) {
|
|
966
|
+
case M.beginsWith:
|
|
967
|
+
return c.startsWith(d);
|
|
968
|
+
case M.containsBlanks:
|
|
969
|
+
return /^\s*$/.test(c);
|
|
970
|
+
case M.notContainsBlanks:
|
|
971
|
+
return !/^\s*$/.test(c);
|
|
972
|
+
case M.containsErrors:
|
|
973
|
+
return _2.has(c);
|
|
974
|
+
case M.notContainsErrors:
|
|
975
|
+
return !_2.has(c);
|
|
976
|
+
case M.containsText:
|
|
977
|
+
return c.indexOf(d) > -1;
|
|
978
|
+
case M.notContainsText:
|
|
979
|
+
return c.indexOf(d) === -1;
|
|
980
|
+
case M.endsWith:
|
|
981
|
+
return c.endsWith(d);
|
|
982
|
+
case M.equal:
|
|
983
|
+
return c === d;
|
|
984
|
+
case M.notEqual:
|
|
985
|
+
return c !== d;
|
|
1253
986
|
default:
|
|
1254
987
|
return !1;
|
|
1255
988
|
}
|
|
1256
989
|
}
|
|
1257
|
-
case
|
|
1258
|
-
const
|
|
1259
|
-
if (
|
|
1260
|
-
return
|
|
1261
|
-
const
|
|
1262
|
-
return
|
|
990
|
+
case E.timePeriod: {
|
|
991
|
+
const o = U(i);
|
|
992
|
+
if (I(o) || Number.isNaN(Number(o)) || (i == null ? void 0 : i.t) !== _.NUMBER || !e)
|
|
993
|
+
return;
|
|
994
|
+
const h = p0(Number(o)), { start: c, end: d } = e.value;
|
|
995
|
+
return h >= c && h <= d;
|
|
1263
996
|
}
|
|
1264
|
-
case
|
|
1265
|
-
const
|
|
1266
|
-
if (
|
|
997
|
+
case E.average: {
|
|
998
|
+
const o = i && i.v, h = Number(o);
|
|
999
|
+
if (I(o) || Number.isNaN(h) || (i == null ? void 0 : i.t) !== _.NUMBER || !e)
|
|
1267
1000
|
return !1;
|
|
1268
|
-
const
|
|
1269
|
-
switch (
|
|
1270
|
-
case
|
|
1271
|
-
return
|
|
1272
|
-
case
|
|
1273
|
-
return
|
|
1274
|
-
case
|
|
1275
|
-
return
|
|
1276
|
-
case
|
|
1277
|
-
return
|
|
1278
|
-
case
|
|
1279
|
-
return
|
|
1280
|
-
case
|
|
1281
|
-
return !
|
|
1001
|
+
const c = a, d = e.value;
|
|
1002
|
+
switch (c.operator) {
|
|
1003
|
+
case w.greaterThan:
|
|
1004
|
+
return h > d;
|
|
1005
|
+
case w.greaterThanOrEqual:
|
|
1006
|
+
return h >= d;
|
|
1007
|
+
case w.lessThan:
|
|
1008
|
+
return h < d;
|
|
1009
|
+
case w.lessThanOrEqual:
|
|
1010
|
+
return h <= d;
|
|
1011
|
+
case w.equal:
|
|
1012
|
+
return a2(h, d);
|
|
1013
|
+
case w.notEqual:
|
|
1014
|
+
return !a2(h, d);
|
|
1282
1015
|
default:
|
|
1283
1016
|
return !1;
|
|
1284
1017
|
}
|
|
1285
1018
|
}
|
|
1286
|
-
case
|
|
1287
|
-
const
|
|
1288
|
-
if (
|
|
1019
|
+
case E.rank: {
|
|
1020
|
+
const o = U(i), h = Number(o);
|
|
1021
|
+
if (I(o) || Number.isNaN(h) || (i == null ? void 0 : i.t) !== _.NUMBER || !e)
|
|
1289
1022
|
return !1;
|
|
1290
|
-
const
|
|
1291
|
-
return
|
|
1023
|
+
const c = e.value;
|
|
1024
|
+
return a.isBottom ? h <= c : h >= c;
|
|
1292
1025
|
}
|
|
1293
|
-
case
|
|
1294
|
-
const
|
|
1295
|
-
return
|
|
1026
|
+
case E.uniqueValues: {
|
|
1027
|
+
const o = U(i);
|
|
1028
|
+
return I(o) || !e ? !1 : e.value.get(o) === 1;
|
|
1296
1029
|
}
|
|
1297
|
-
case
|
|
1298
|
-
const
|
|
1299
|
-
return
|
|
1030
|
+
case E.duplicateValues: {
|
|
1031
|
+
const o = U(i);
|
|
1032
|
+
return I(o) || !e ? !1 : e.value.get(o) !== 1;
|
|
1300
1033
|
}
|
|
1301
|
-
case
|
|
1302
|
-
const
|
|
1303
|
-
return
|
|
1034
|
+
case E.formula: {
|
|
1035
|
+
const o = e == null ? void 0 : e.value;
|
|
1036
|
+
return o ? o.getValue(s, t) === !0 : !1;
|
|
1304
1037
|
}
|
|
1305
1038
|
}
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
if (!k(F) && (m == null ? void 0 : m.t) === B.NUMBER) {
|
|
1327
|
-
const w = Number(F);
|
|
1328
|
-
!Number.isNaN(w) && r.setValue(D, C, w);
|
|
1039
|
+
})() ? a.style : {};
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
const B0 = (n, s, t) => {
|
|
1043
|
+
const e = t(n, s);
|
|
1044
|
+
if (e && e.t === _.NUMBER) {
|
|
1045
|
+
const r = Number(e.v);
|
|
1046
|
+
return Number.isNaN(r) ? null : r;
|
|
1047
|
+
}
|
|
1048
|
+
return null;
|
|
1049
|
+
};
|
|
1050
|
+
class k0 extends u2 {
|
|
1051
|
+
preComputing(s, t, e) {
|
|
1052
|
+
const r = e.rule.rule, i = e.worksheet, a = new T();
|
|
1053
|
+
!r.config.every((h) => h.value.type === x.num) && w2(e.rule.ranges, i.getMaxRows() - 1, i.getMaxColumns() - 1).forEach((c) => {
|
|
1054
|
+
N.foreach(c, (d, C) => {
|
|
1055
|
+
const D = e.getCellValue(d, C), f = D && D.v;
|
|
1056
|
+
if (!I(f) && (D == null ? void 0 : D.t) === _.NUMBER) {
|
|
1057
|
+
const F = Number(f);
|
|
1058
|
+
!Number.isNaN(F) && a.setValue(d, C, F);
|
|
1329
1059
|
}
|
|
1330
1060
|
});
|
|
1331
1061
|
});
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1062
|
+
const l = r.config.map((h) => l2(h.value, a, { ...e, cfId: e.rule.cfId }));
|
|
1063
|
+
if (!l.some((h) => h.status !== b.SUCCESS)) {
|
|
1064
|
+
const h = l.map((c, d) => ({
|
|
1065
|
+
operator: r.config[d].operator,
|
|
1066
|
+
value: Number(c.result) || 0
|
|
1067
|
+
})).reduce((c, d, C, D) => {
|
|
1068
|
+
const f = r.config[C];
|
|
1069
|
+
if (!C || C === D.length - 1)
|
|
1070
|
+
c.push({ ...d, iconId: f.iconId, iconType: f.iconType });
|
|
1071
|
+
else {
|
|
1072
|
+
const F = D[C - 1];
|
|
1073
|
+
Y(F, d.value) || c.push({ ...d, iconId: f.iconId, iconType: f.iconType });
|
|
1074
|
+
}
|
|
1075
|
+
return c;
|
|
1076
|
+
}, []);
|
|
1077
|
+
this.setPreComputingCache(h), this._preComputingStatus$.next(L.preComputingEnd);
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1080
|
+
this._preComputingStatus$.next(L.preComputing);
|
|
1081
|
+
}
|
|
1082
|
+
getCellResult(s, t, e, r) {
|
|
1083
|
+
if (!e)
|
|
1084
|
+
return null;
|
|
1085
|
+
const i = B0(s, t, r.getCellValue);
|
|
1086
|
+
if (i === null)
|
|
1087
|
+
return;
|
|
1088
|
+
const a = r.rule.rule, u = a.isShowValue === void 0 ? !0 : !!a.isShowValue;
|
|
1089
|
+
for (let l = 0; l < e.length; l++) {
|
|
1090
|
+
const o = e[l], h = { ...o }, c = { ...o }, { iconId: d, iconType: C } = o;
|
|
1091
|
+
if (l === 0) {
|
|
1092
|
+
if (Y(o, i))
|
|
1093
|
+
return { iconId: d, iconType: C, isShowValue: u };
|
|
1094
|
+
} else {
|
|
1095
|
+
if (l === e.length - 1)
|
|
1096
|
+
return { iconId: d, iconType: C, isShowValue: u };
|
|
1097
|
+
{
|
|
1098
|
+
const D = e[l - 1];
|
|
1099
|
+
if (c.operator = A0(D.operator), c.value = D.value, Y(h, i) && Y(c, i))
|
|
1100
|
+
return { iconId: d, iconType: C, isShowValue: u };
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
var N0 = Object.defineProperty, T0 = Object.getOwnPropertyDescriptor, U0 = (n, s, t, e) => {
|
|
1107
|
+
for (var r = e > 1 ? void 0 : e ? T0(s, t) : s, i = n.length - 1, a; i >= 0; i--)
|
|
1108
|
+
(a = n[i]) && (r = (e ? a(s, t, r) : a(r)) || r);
|
|
1109
|
+
return e && r && N0(s, t, r), r;
|
|
1110
|
+
}, r2 = (n, s) => (t, e) => s(t, e, n);
|
|
1111
|
+
const C2 = 50 * 20 * 3 * 3;
|
|
1112
|
+
let j = class extends m2 {
|
|
1113
|
+
constructor(s, t, e, r) {
|
|
1114
|
+
super();
|
|
1115
|
+
// Map<unitID ,<sheetId ,ObjectMatrix>>
|
|
1116
|
+
m(this, "_calculateUnitManagers", /* @__PURE__ */ new Map());
|
|
1117
|
+
m(this, "_rTreeManager", new $2());
|
|
1118
|
+
/**
|
|
1119
|
+
* 1nd-level cache
|
|
1120
|
+
*/
|
|
1121
|
+
m(this, "_cellCache", new I2(C2));
|
|
1122
|
+
m(this, "_markDirty$", new i2());
|
|
1123
|
+
/**
|
|
1124
|
+
* The rendering layer listens to this variable to determine whether a reRender is necessary.
|
|
1125
|
+
* @memberof ConditionalFormattingViewModel
|
|
1126
|
+
*/
|
|
1127
|
+
m(this, "markDirty$", this._markDirty$.asObservable());
|
|
1128
|
+
/**
|
|
1129
|
+
`isNeedResetPreComputingCache` indicates whether it is necessary to remove the 2nd-level cache for each rule individually.
|
|
1130
|
+
Generally, when the logic of a rule calculation is modified, the cache for that rule needs to be removed.
|
|
1131
|
+
Changes in style/priority do not require the clearing of the 2nd-level cache.
|
|
1132
|
+
Rule changes/region changes require the removal of the 2nd-level cache.
|
|
1133
|
+
There is also a situation where preComputing is asynchronously calculated.
|
|
1134
|
+
After the calculation is finished, it is only for marking as dirty, and the 2nd-level cache need to be cleared.
|
|
1135
|
+
* @param {boolean} [isNeedResetPreComputingCache]
|
|
1136
|
+
*/
|
|
1137
|
+
m(this, "_markRuleDirtyAtOnce", (s, t, e, r = !0) => {
|
|
1138
|
+
if (this._cellCache.clear(), r) {
|
|
1139
|
+
const a = this._ensureCalculateUnitManager(s, t).get(e);
|
|
1140
|
+
a && a.resetPreComputingCache();
|
|
1141
|
+
}
|
|
1142
|
+
this._markDirty$.next({
|
|
1143
|
+
unitId: s,
|
|
1144
|
+
subUnitId: t,
|
|
1145
|
+
cfId: e
|
|
1336
1146
|
});
|
|
1337
1147
|
});
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
return r.forValue((d, D, C) => {
|
|
1355
|
-
for (let m = 0; m < h.length; m++) {
|
|
1356
|
-
const F = h[m], w = { ...F }, v = { ...F }, { iconId: A, iconType: O } = F;
|
|
1357
|
-
if (m === 0) {
|
|
1358
|
-
if (J(F, C)) {
|
|
1359
|
-
o.setValue(d, D, { iconId: A, iconType: O, isShowValue: u });
|
|
1148
|
+
/**
|
|
1149
|
+
* For the same condition format being marked dirty multiple times at the same time,
|
|
1150
|
+
* it will cause the style cache to be cleared, thereby causing the screen to flicker.
|
|
1151
|
+
* Here,multiple dirties are merged into one..
|
|
1152
|
+
*/
|
|
1153
|
+
m(this, "markRuleDirty", (() => {
|
|
1154
|
+
const s = new i2();
|
|
1155
|
+
return s.pipe(H2(100), X2((t) => !!t.length), Y2((t) => {
|
|
1156
|
+
const e = /* @__PURE__ */ new Set(), r = [];
|
|
1157
|
+
return t.forEach((i) => {
|
|
1158
|
+
const a = `${i.unitId}_${i.subUnitId}_${i.cfId}`;
|
|
1159
|
+
if (e.has(a)) {
|
|
1160
|
+
if (i.isNeedResetPreComputingCache) {
|
|
1161
|
+
const u = r.find((l) => l.cfId === i.cfId);
|
|
1162
|
+
u.isNeedResetPreComputingCache = !0;
|
|
1163
|
+
}
|
|
1360
1164
|
return;
|
|
1361
1165
|
}
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1166
|
+
e.add(a), r.push({ ...i });
|
|
1167
|
+
}), r;
|
|
1168
|
+
})).subscribe((t) => {
|
|
1169
|
+
t.forEach((e) => {
|
|
1170
|
+
this._markRuleDirtyAtOnce(e.unitId, e.subUnitId, e.cfId, e.isNeedResetPreComputingCache);
|
|
1171
|
+
});
|
|
1172
|
+
}), (t, e, r, i = !0) => {
|
|
1173
|
+
s.next({ unitId: t, subUnitId: e, cfId: r, isNeedResetPreComputingCache: i });
|
|
1174
|
+
};
|
|
1175
|
+
})());
|
|
1176
|
+
this._injector = s, this._conditionalFormattingRuleModel = t, this._conditionalFormattingFormulaService = e, this._univerInstanceService = r, this._initRuleListener(), this._handleCustomFormulasSeparately(), this._initCFFormulaListener();
|
|
1177
|
+
}
|
|
1178
|
+
_initCFFormulaListener() {
|
|
1179
|
+
this.disposeWithMe(
|
|
1180
|
+
this._conditionalFormattingFormulaService.result$.subscribe(({ unitId: s, subUnitId: t, cfId: e, isAllFinished: r }) => {
|
|
1181
|
+
r && this._markRuleDirtyAtOnce(s, t, e, r);
|
|
1182
|
+
})
|
|
1183
|
+
);
|
|
1184
|
+
}
|
|
1185
|
+
getCellCfs(s, t, e, r) {
|
|
1186
|
+
const i = this._createCacheKey(s, t, e, r);
|
|
1187
|
+
if (this._cellCache.has(i))
|
|
1188
|
+
return this._cellCache.get(i);
|
|
1189
|
+
const a = this._getCellCfs(s, t, e, r);
|
|
1190
|
+
return a.length && this._cellCache.set(i, a), a;
|
|
1191
|
+
}
|
|
1192
|
+
_getCellCfs(s, t, e, r) {
|
|
1193
|
+
var h;
|
|
1194
|
+
const i = (h = this._conditionalFormattingRuleModel.getSubunitRules(s, t)) != null ? h : [], a = this._ensureCalculateUnitManager(s, t), u = this._rTreeManager.bulkSearch([{ unitId: s, sheetId: t, range: { startColumn: r, endColumn: r, startRow: e, endRow: e } }]), l = i.filter((c) => u.has(c.cfId));
|
|
1195
|
+
return l.length ? l.map((c) => {
|
|
1196
|
+
const d = a.get(c.cfId);
|
|
1197
|
+
return d ? {
|
|
1198
|
+
cfId: c.cfId,
|
|
1199
|
+
result: d.getCell(e, r)
|
|
1200
|
+
} : null;
|
|
1201
|
+
}).filter((c) => !!c).map((c, d) => ({ ...c, priority: d })) : [];
|
|
1202
|
+
}
|
|
1203
|
+
_handleCustomFormulasSeparately() {
|
|
1204
|
+
this.disposeWithMe(
|
|
1205
|
+
this._conditionalFormattingRuleModel.$ruleChange.subscribe((s) => {
|
|
1206
|
+
if (s.type === "set") {
|
|
1207
|
+
const { unitId: t, subUnitId: e } = s, r = s.oldRule;
|
|
1208
|
+
r.rule.type === y.highlightCell && r.rule.subType === E.formula && this._conditionalFormattingFormulaService.deleteCache(t, e, r.cfId);
|
|
1209
|
+
}
|
|
1210
|
+
})
|
|
1211
|
+
);
|
|
1212
|
+
}
|
|
1213
|
+
_initRuleListener() {
|
|
1214
|
+
this.disposeWithMe(
|
|
1215
|
+
this._conditionalFormattingRuleModel.$ruleChange.subscribe((s) => {
|
|
1216
|
+
const { unitId: t, subUnitId: e, rule: r } = s, { cfId: i, ranges: a } = r, u = this._ensureCalculateUnitManager(t, e);
|
|
1217
|
+
switch (this.markRuleDirty(t, e, i), s.type) {
|
|
1218
|
+
case "add": {
|
|
1219
|
+
this._rTreeManager.bulkInsert(a.map((o) => ({ unitId: t, sheetId: e, id: i, range: o })));
|
|
1220
|
+
const l = this._createRuleCalculateUnitInstance(t, e, r);
|
|
1221
|
+
if (!l)
|
|
1222
|
+
return;
|
|
1223
|
+
u.set(r.cfId, l);
|
|
1224
|
+
break;
|
|
1225
|
+
}
|
|
1226
|
+
case "delete": {
|
|
1227
|
+
this._rTreeManager.bulkRemove(a.map((l) => ({ unitId: t, sheetId: e, id: i, range: l }))), u.delete(r.cfId);
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
case "set": {
|
|
1231
|
+
const l = s.oldRule;
|
|
1232
|
+
if (this._rTreeManager.bulkRemove(l.ranges.map((o) => ({ unitId: t, sheetId: e, id: l.cfId, range: o }))), this._rTreeManager.bulkInsert(a.map((o) => ({ unitId: t, sheetId: e, id: i, range: o }))), l.rule.type !== r.rule.type) {
|
|
1233
|
+
const o = this._createRuleCalculateUnitInstance(t, e, r);
|
|
1234
|
+
if (!o)
|
|
1235
|
+
return;
|
|
1236
|
+
u.delete(l.cfId), u.set(r.cfId, o);
|
|
1237
|
+
} else {
|
|
1238
|
+
const o = u.get(l.cfId);
|
|
1239
|
+
if (!o)
|
|
1240
|
+
return;
|
|
1241
|
+
o.updateRule(r);
|
|
1242
|
+
}
|
|
1370
1243
|
}
|
|
1371
1244
|
}
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1245
|
+
})
|
|
1246
|
+
);
|
|
1374
1247
|
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1248
|
+
_ensureCalculateUnitManager(s, t) {
|
|
1249
|
+
let e = this._calculateUnitManagers.get(s);
|
|
1250
|
+
e || (e = /* @__PURE__ */ new Map(), this._calculateUnitManagers.set(s, e));
|
|
1251
|
+
let r = e.get(t);
|
|
1252
|
+
return r || (r = /* @__PURE__ */ new Map(), e.set(t, r)), r;
|
|
1253
|
+
}
|
|
1254
|
+
_createRuleCalculateUnitInstance(s, t, e) {
|
|
1255
|
+
const r = this._univerInstanceService.getUnit(s), i = r == null ? void 0 : r.getSheetBySheetId(t);
|
|
1256
|
+
if (!r || !i)
|
|
1257
|
+
return;
|
|
1258
|
+
const a = {
|
|
1259
|
+
workbook: r,
|
|
1260
|
+
worksheet: i,
|
|
1261
|
+
unitId: s,
|
|
1262
|
+
subUnitId: t,
|
|
1263
|
+
accessor: this._injector,
|
|
1264
|
+
rule: e,
|
|
1265
|
+
limit: C2,
|
|
1266
|
+
getCellValue: (u, l) => i.getCellRaw(u, l) || {}
|
|
1267
|
+
};
|
|
1268
|
+
switch (e.rule.type) {
|
|
1269
|
+
case y.colorScale:
|
|
1270
|
+
return new x0(a);
|
|
1271
|
+
case y.dataBar:
|
|
1272
|
+
return new S0(a);
|
|
1273
|
+
case y.highlightCell:
|
|
1274
|
+
return new L0(a);
|
|
1275
|
+
case y.iconSet:
|
|
1276
|
+
return new k0(a);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
_createCacheKey(s, t, e, r) {
|
|
1280
|
+
return `${s}_${t}_${e}_${r}`;
|
|
1281
|
+
}
|
|
1282
|
+
setCacheLength(s = C2) {
|
|
1283
|
+
this._cellCache.limit !== s && (this._cellCache.limit = s, this._calculateUnitManagers.forEach((t) => {
|
|
1284
|
+
t.forEach((e) => {
|
|
1285
|
+
e.forEach((r) => {
|
|
1286
|
+
r.setCacheLength(s);
|
|
1287
|
+
});
|
|
1404
1288
|
});
|
|
1405
|
-
})
|
|
1406
|
-
this.interceptorManager.dispose();
|
|
1407
|
-
});
|
|
1289
|
+
}));
|
|
1408
1290
|
}
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1291
|
+
};
|
|
1292
|
+
j = U0([
|
|
1293
|
+
r2(0, A(F2)),
|
|
1294
|
+
r2(1, A(B)),
|
|
1295
|
+
r2(2, A(G)),
|
|
1296
|
+
r2(3, S2)
|
|
1297
|
+
], j);
|
|
1298
|
+
const V0 = { mistake: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.87359%206.87332C6.6146%207.13231%206.6146%207.55221%206.87359%207.8112L9.062%209.99961L6.87356%2012.188C6.61457%2012.447%206.61457%2012.8669%206.87356%2013.1259C7.13255%2013.3849%207.55245%2013.3849%207.81144%2013.1259L9.99987%2010.9375L12.1882%2013.1258C12.4472%2013.3848%2012.8671%2013.3848%2013.1261%2013.1258C13.3851%2012.8669%2013.3851%2012.447%2013.1261%2012.188L10.9378%209.99961L13.1261%207.81127C13.3851%207.55228%2013.3851%207.13238%2013.1261%206.87339C12.8671%206.61441%2012.4472%206.61441%2012.1882%206.87339L9.99987%209.06173L7.81147%206.87332C7.55248%206.61433%207.13257%206.61433%206.87359%206.87332Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A", warn: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Cpath%20d%3D%22M9.16817%206.67735C9.16646%206.61745%209.1656%206.5875%209.16653%206.56236C9.18103%206.16817%209.49136%205.84883%209.88497%205.82306C9.91008%205.82141%209.94004%205.82141%209.99996%205.82141V5.82141C10.0599%205.82141%2010.0899%205.82141%2010.115%205.82306C10.5086%205.84883%2010.8189%206.16817%2010.8334%206.56236C10.8343%206.5875%2010.8335%206.61745%2010.8318%206.67735L10.7043%2011.131C10.6934%2011.5121%2010.3812%2011.8154%209.99995%2011.8154V11.8154C9.61866%2011.8154%209.30655%2011.5121%209.29564%2011.131L9.16817%206.67735Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3Crect%20x%3D%229.31488%22%20y%3D%2212.8086%22%20width%3D%221.37006%22%20height%3D%221.37006%22%20rx%3D%220.685032%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A", correct: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.037%2010C17.037%2013.8865%2013.8864%2017.0371%209.99999%2017.0371C6.11354%2017.0371%202.96295%2013.8865%202.96295%2010C2.96295%206.1136%206.11354%202.96301%209.99999%202.96301C13.8864%202.96301%2017.037%206.1136%2017.037%2010Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3Cpath%20d%3D%22M13.9239%207.17477C13.6638%206.91472%2013.2422%206.91472%2012.9821%207.17477L8.74433%2011.4126L7.01786%209.6861C6.75781%209.42606%206.33619%209.42606%206.07614%209.6861C5.81609%209.94615%205.81609%2010.3678%206.07614%2010.6278L8.27349%2012.8252C8.53354%2013.0852%208.95516%2013.0852%209.21521%2012.8252L9.2195%2012.8209L13.9239%208.1165C14.1839%207.85645%2014.1839%207.43482%2013.9239%207.17477Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A" }, O0 = { starEmpty: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A", starIncomplete: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_177)%22%3E%0A%3Cmask%20id%3D%22mask0_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2210%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20x%3D%2210.3704%22%20y%3D%220.37037%22%20width%3D%229.25926%22%20height%3D%2219.2593%22%20fill%3D%22%23C4C4C4%22%20stroke%3D%22%23F7D564%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask0_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3Cmask%20id%3D%22mask1_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2220%22%20fill%3D%22%23C4C4C4%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask1_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_177%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A", starFull: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A" }, $0 = { progress0: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A", progress25: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M16.2963%209.99991C16.2963%209.17307%2016.1335%208.35432%2015.8171%207.59042C15.5006%206.82652%2015.0369%206.13242%2014.4522%205.54776C13.8675%204.96309%2013.1734%204.49931%2012.4095%204.18289C11.6456%203.86647%2010.8269%203.70361%2010%203.70361L10%209.99991H16.2963Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A", progress50: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M10%2016.2962C11.6699%2016.2962%2013.2714%2015.6328%2014.4522%2014.4521C15.633%2013.2713%2016.2963%2011.6698%2016.2963%209.99991C16.2963%208.33003%2015.633%206.72854%2014.4522%205.54776C13.2714%204.36697%2011.6699%203.70361%2010%203.70361L10%209.99991L10%2016.2962Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A", progress75: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M3.70374%209.99991C3.70374%2011.2452%204.07301%2012.4625%204.76485%2013.4979C5.4567%2014.5334%206.44005%2015.3404%207.59054%2015.8169C8.74104%2016.2935%2010.007%2016.4182%2011.2284%2016.1752C12.4497%2015.9323%2013.5716%2015.3326%2014.4522%2014.4521C15.3327%2013.5715%2015.9324%2012.4496%2016.1753%2011.2283C16.4183%2010.0069%2016.2936%208.74092%2015.8171%207.59042C15.3405%206.43992%2014.5335%205.45658%2013.4981%204.76473C12.4626%204.07288%2011.2453%203.70361%2010%203.70361L10%209.99991L3.70374%209.99991Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A", progress100: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99991%22%20r%3D%226.2963%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A" }, P0 = { signal0: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A", signal25: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A", signal50: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A", signal75: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A", signal100: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93933%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70447%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A" }, W0 = { guffaw: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.887%2010C16.887%2013.8037%2013.8036%2016.8871%209.99999%2016.8871C6.19638%2016.8871%203.11295%2013.8037%203.11295%2010C3.11295%206.19644%206.19638%203.11301%209.99999%203.11301C13.8036%203.11301%2016.887%206.19644%2016.887%2010Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M12.5355%2013.5821C13.0482%2013.1841%2013.3951%2012.6107%2013.5405%2012.0327C13.5934%2011.8226%2013.5051%2011.6349%2013.3518%2011.5331C13.2036%2011.4346%2013.0031%2011.4203%2012.8265%2011.5131C11.0615%2012.4407%208.94609%2012.4427%207.1828%2011.513C7.00629%2011.4199%206.80602%2011.4343%206.65798%2011.5329C6.50518%2011.6346%206.41701%2011.8217%206.46844%2012.0312C6.61029%2012.609%206.95079%2013.1833%207.46449%2013.5821C8.14361%2014.1093%209.05608%2014.3999%2010%2014.3999C10.9439%2014.3999%2011.8564%2014.1093%2012.5355%2013.5821Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A", smile: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2011.8518C7.03705%2011.8518%207.77779%2013.7037%2010%2013.7037C12.2222%2013.7037%2012.963%2011.8518%2012.963%2011.8518%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A", noninductive: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2012.5927C7.03705%2012.5927%208.14816%2012.5927%2010.3704%2012.5927C12.5926%2012.5927%2012.963%2012.5927%2012.963%2012.5927%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A", dissatisfied: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2013.7037C7.03705%2013.7037%207.77779%2011.8519%2010%2011.8519C12.2222%2011.8519%2012.963%2013.7037%2012.963%2013.7037%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A", impatient: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.47573%2011.731C6.96306%2012.129%206.61613%2012.7024%206.47071%2013.2804C6.41784%2013.4905%206.50617%2013.6782%206.65942%2013.78C6.80761%2013.8785%207.00813%2013.8928%207.18477%2013.8C8.9498%2012.8724%2011.0652%2012.8704%2012.8285%2013.8002C13.005%2013.8932%2013.2052%2013.8788%2013.3533%2013.7802C13.5061%2013.6785%2013.5942%2013.4914%2013.5428%2013.2819C13.401%2012.7041%2013.0605%2012.1298%2012.5468%2011.731C11.8676%2011.2038%2010.9552%2010.9132%2010.0112%2010.9132C9.06732%2010.9132%208.15485%2011.2038%207.47573%2011.731Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A" }, Z0 = JSON.parse('{"down-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","down-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A"}'), q0 = { cross: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%223.70374%22%20y%3D%228.14795%22%20width%3D%2212.5926%22%20height%3D%223.7037%22%20rx%3D%220.740741%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", up: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M9.44533%205.81157C9.74012%205.47858%2010.2598%205.47858%2010.5546%205.81157L16.2868%2012.2867C16.71%2012.7647%2016.3706%2013.5184%2015.7322%2013.5184H4.26776C3.62933%2013.5184%203.28995%2012.7647%203.71313%2012.2867L9.44533%205.81157Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A", down: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.5547%2014.1884C10.2599%2014.5214%209.74019%2014.5214%209.4454%2014.1884L3.71321%207.71335C3.29002%207.23532%203.6294%206.48161%204.26784%206.48161L15.7322%206.48161C16.3707%206.48161%2016.7101%207.23532%2016.2869%207.71335L10.5547%2014.1884Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A", "rhomboid-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A", "rhomboid-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-greed": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-pink": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FB9D9D%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-black": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A", "triangle-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_237)%22%3E%0A%3Cpath%20d%3D%22M9.32308%204.41301C9.58368%203.82623%2010.4164%203.82623%2010.677%204.413L15.9526%2016.2917C16.1701%2016.7815%2015.8115%2017.3331%2015.2756%2017.3331H4.72454C4.18858%2017.3331%203.83002%2016.7815%204.04756%2016.2917L9.32308%204.41301Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_237%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A", "indicate-greed": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A", "indicate-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", "indicate-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A" }, G0 = { mistake2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.12194%206.33702C4.1805%206.47839%204.30722%206.6051%204.56066%206.85854L8.36822%2010.6661L4.56062%2014.4737C4.30718%2014.7272%204.18046%2014.8539%204.12191%2014.9952C4.04384%2015.1837%204.04384%2015.3955%204.12191%2015.584C4.18046%2015.7253%204.30718%2015.8521%204.56062%2016.1055C4.81406%2016.3589%204.94078%2016.4857%205.08214%2016.5442C5.27062%2016.6223%205.4824%2016.6223%205.67089%2016.5442C5.81225%2016.4857%205.93897%2016.3589%206.19241%2016.1055L10%2012.2979L13.8074%2016.1053C14.0609%2016.3588%2014.1876%2016.4855%2014.329%2016.544C14.5174%2016.6221%2014.7292%2016.6221%2014.9177%2016.544C15.0591%2016.4855%2015.1858%2016.3588%2015.4392%2016.1053L15.4392%2016.1053C15.6927%2015.8519%2015.8194%2015.7252%2015.8779%2015.5838C15.956%2015.3953%2015.956%2015.1835%2015.8779%2014.9951C15.8194%2014.8537%2015.6927%2014.727%2015.4392%2014.4735L15.4392%2014.4735L11.6318%2010.6661L15.4392%206.85872C15.6926%206.60528%2015.8193%206.47856%2015.8779%206.3372C15.956%206.14871%2015.956%205.93694%2015.8779%205.74845C15.8193%205.60709%2015.6926%205.48037%2015.4392%205.22693C15.1857%204.97349%2015.059%204.84677%2014.9177%204.78822C14.7292%204.71015%2014.5174%204.71015%2014.3289%204.78822C14.1876%204.84677%2014.0608%204.97349%2013.8074%205.22693L10%209.03433L6.19244%205.22676C5.939%204.97332%205.81228%204.8466%205.67092%204.78805C5.48244%204.70997%205.27066%204.70997%205.08218%204.78805C4.94082%204.8466%204.8141%204.97332%204.56066%205.22676L4.56066%205.22676C4.30722%205.4802%204.1805%205.60692%204.12194%205.74828C4.04387%205.93676%204.04387%206.14854%204.12194%206.33702Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A", warn2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8.49778%205.00963C8.48513%204.56774%208.47881%204.3468%208.56086%204.17746C8.63301%204.02856%208.75124%203.90689%208.89802%203.83052C9.06494%203.74365%209.28597%203.74365%209.72805%203.74365H10.272C10.714%203.74365%2010.9351%203.74365%2011.102%203.83052C11.2488%203.9069%2011.367%204.02856%2011.4392%204.17746C11.5212%204.3468%2011.5149%204.56775%2011.5022%205.00964L11.2644%2013.3173C11.2524%2013.737%2011.2464%2013.9468%2011.1609%2014.1065C11.0857%2014.2471%2010.9687%2014.3609%2010.826%2014.432C10.6639%2014.5129%2010.454%2014.5129%2010.0342%2014.5129H9.96582C9.54601%2014.5129%209.33611%2014.5129%209.17397%2014.432C9.0313%2014.3609%208.91426%2014.2471%208.83904%2014.1065C8.75357%2013.9468%208.74756%2013.737%208.73555%2013.3173L8.49778%205.00963Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Crect%20x%3D%228.76917%22%20y%3D%2215.2817%22%20width%3D%222.46154%22%20height%3D%222.46154%22%20rx%3D%220.769231%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", correct2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_248)%22%3E%0A%3Cpath%20d%3D%22M15.689%205.69723C15.5476%205.75578%2015.4209%205.8825%2015.1675%206.13594L7.82436%2013.4791L4.83279%2010.4875C4.57935%2010.2341%204.45263%2010.1073%204.31127%2010.0488C4.12278%209.97071%203.91101%209.97071%203.72252%2010.0488C3.58116%2010.1073%203.45444%2010.2341%203.201%2010.4875C2.94756%2010.7409%202.82084%2010.8676%202.76229%2011.009C2.68422%2011.1975%202.68422%2011.4093%202.76229%2011.5978C2.82084%2011.7391%202.94756%2011.8658%203.201%2012.1193L7.0085%2015.9268C7.26194%2016.1802%207.38866%2016.3069%207.53002%2016.3655C7.7185%2016.4436%207.93028%2016.4436%208.11876%2016.3655C8.26013%2016.3069%208.38685%2016.1802%208.64028%2015.9268C8.66387%2015.9032%208.68636%2015.8807%208.7078%2015.8592L16.7993%207.76772C17.0527%207.51428%2017.1794%207.38756%2017.238%207.2462C17.3161%207.05772%2017.3161%206.84594%2017.238%206.65746C17.1794%206.5161%2017.0527%206.38938%2016.7993%206.13594C16.5458%205.8825%2016.4191%205.75578%2016.2777%205.69723C16.0893%205.61915%2015.8775%205.61915%2015.689%205.69723Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_248%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A" }, j0 = { "flag-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A", "flag-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", "flag-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A" }, H0 = { "cell-0": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A", "cell-25": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A", "cell-50": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A", "cell-75": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A", "cell-100": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A" }, g = {
|
|
1299
|
+
feedback: V0,
|
|
1300
|
+
star: O0,
|
|
1301
|
+
progress: $0,
|
|
1302
|
+
signal: P0,
|
|
1303
|
+
feeling: W0,
|
|
1304
|
+
arrow: Z0,
|
|
1305
|
+
shape: q0,
|
|
1306
|
+
feedback2: G0,
|
|
1307
|
+
flag: j0,
|
|
1308
|
+
cell: H0
|
|
1309
|
+
}, X0 = [
|
|
1310
|
+
{
|
|
1311
|
+
title: "sheet.cf.iconSet.direction",
|
|
1312
|
+
group: [
|
|
1313
|
+
{ name: "3Arrows", list: [g.arrow["up-green"], g.arrow["right-gold"], g.arrow["down-red"]] },
|
|
1314
|
+
{ name: "3ArrowsGray", list: [g.arrow["up-gray"], g.arrow["right-gray"], g.arrow["down-gray"]] },
|
|
1315
|
+
{ name: "4Arrows", list: [g.arrow["up-green"], g.arrow["rightAndUp-gold"], g.arrow["rightAndDown-gold"], g.arrow["down-red"]] },
|
|
1316
|
+
{ name: "4ArrowsGray", list: [g.arrow["up-gray"], g.arrow["rightAndUp-gray"], g.arrow["rightAndDown-gray"], g.arrow["down-gray"]] },
|
|
1317
|
+
{ name: "5Arrows", list: [g.arrow["up-green"], g.arrow["rightAndUp-gold"], g.arrow["right-gold"], g.arrow["rightAndDown-gold"], g.arrow["down-red"]] },
|
|
1318
|
+
{ name: "5ArrowsGray", list: [g.arrow["up-gray"], g.arrow["rightAndUp-gray"], g.arrow["right-gray"], g.arrow["rightAndDown-gray"], g.arrow["down-gray"]] },
|
|
1319
|
+
{ name: "3Triangles", list: [g.shape.up, g.shape.cross, g.shape.down] }
|
|
1320
|
+
]
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
title: "sheet.cf.iconSet.shape",
|
|
1324
|
+
group: [
|
|
1325
|
+
{
|
|
1326
|
+
name: "3TrafficLights1",
|
|
1327
|
+
list: [g.shape["roundness-greed"], g.shape["roundness-gold"], g.shape["roundness-red"]]
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
name: "3Signs",
|
|
1331
|
+
list: [g.shape["roundness-greed"], g.shape["triangle-gold"], g.shape["rhomboid-red"]]
|
|
1332
|
+
},
|
|
1333
|
+
{ name: "3TrafficLights2", list: [g.shape["indicate-greed"], g.shape["indicate-gold"], g.shape["indicate-red"]] },
|
|
1334
|
+
{
|
|
1335
|
+
name: "4RedToBlack",
|
|
1336
|
+
list: [g.shape["roundness-red"], g.shape["roundness-pink"], g.shape["roundness-gray"], g.shape["roundness-black"]]
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
name: "4TrafficLights",
|
|
1340
|
+
list: [g.shape["roundness-greed"], g.shape["roundness-gold"], g.shape["roundness-red"], g.shape["roundness-black"]]
|
|
1341
|
+
}
|
|
1342
|
+
]
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
title: "sheet.cf.iconSet.mark",
|
|
1346
|
+
group: [
|
|
1347
|
+
{
|
|
1348
|
+
name: "3Symbols",
|
|
1349
|
+
list: [g.feedback.correct, g.feedback.warn, g.feedback.mistake]
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
name: "3Symbols2",
|
|
1353
|
+
list: [g.feedback2.correct2, g.feedback2.warn2, g.feedback2.mistake2]
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
name: "3Flags",
|
|
1357
|
+
list: [g.flag["flag-green"], g.flag["flag-gold"], g.flag["flag-red"]]
|
|
1358
|
+
}
|
|
1359
|
+
]
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
title: "sheet.cf.iconSet.rank",
|
|
1363
|
+
group: [
|
|
1364
|
+
{
|
|
1365
|
+
name: "4Rating",
|
|
1366
|
+
list: [g.signal.signal25, g.signal.signal50, g.signal.signal75, g.signal.signal100]
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
name: "5Rating",
|
|
1370
|
+
list: [g.signal.signal0, g.signal.signal25, g.signal.signal50, g.signal.signal75, g.signal.signal100]
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
name: "5Quarters",
|
|
1374
|
+
list: [g.progress.progress100, g.progress.progress75, g.progress.progress50, g.progress.progress25, g.progress.progress0]
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
name: "_5Felling",
|
|
1378
|
+
list: [g.feeling.guffaw, g.feeling.smile, g.feeling.noninductive, g.feeling.dissatisfied, g.feeling.impatient]
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
name: "5Boxes",
|
|
1382
|
+
list: [g.cell["cell-100"], g.cell["cell-75"], g.cell["cell-50"], g.cell["cell-25"], g.cell["cell-0"]]
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
name: "3Stars",
|
|
1386
|
+
list: [g.star.starFull, g.star.starIncomplete, g.star.starEmpty]
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
}
|
|
1390
|
+
], o2 = X0.reduce((n, s) => {
|
|
1391
|
+
const { group: t } = s;
|
|
1392
|
+
for (const e of t)
|
|
1393
|
+
n[e.name] = e.list;
|
|
1394
|
+
return n;
|
|
1395
|
+
}, {});
|
|
1396
|
+
for (const n in o2) {
|
|
1397
|
+
const s = o2[n];
|
|
1398
|
+
Object.freeze(s);
|
|
1399
|
+
}
|
|
1400
|
+
const Y0 = "EMPTY_ICON_TYPE", v2 = {
|
|
1401
|
+
type: J.MUTATION,
|
|
1402
|
+
id: "sheet.mutation.move-conditional-rule",
|
|
1403
|
+
handler(n, s) {
|
|
1404
|
+
if (!s)
|
|
1405
|
+
return !1;
|
|
1406
|
+
const { unitId: t, subUnitId: e, start: r, end: i } = s;
|
|
1407
|
+
return n.get(B).moveRulePriority(t, e, r, i), !0;
|
|
1408
|
+
}
|
|
1409
|
+
}, R1 = (n) => {
|
|
1410
|
+
const { unitId: s, subUnitId: t } = n, e = D0(n.start, n.end);
|
|
1411
|
+
if (!e)
|
|
1412
|
+
return [];
|
|
1413
|
+
const [r, i] = e;
|
|
1414
|
+
return [
|
|
1415
|
+
{
|
|
1416
|
+
id: v2.id,
|
|
1417
|
+
params: { unitId: s, subUnitId: t, start: r, end: i }
|
|
1418
|
+
}
|
|
1419
|
+
];
|
|
1420
|
+
}, K0 = (n, s) => {
|
|
1421
|
+
const t = n.get(B), { unitId: e, subUnitId: r, cfId: i } = s, a = [...t.getSubunitRules(e, r) || []], u = a.findIndex((o) => o.cfId === i), l = a[u - 1];
|
|
1422
|
+
if (u > -1) {
|
|
1423
|
+
const o = a[u], h = [{
|
|
1424
|
+
id: N2.id,
|
|
1425
|
+
params: { unitId: e, subUnitId: r, rule: H.deepClone(o) }
|
|
1426
|
+
}];
|
|
1427
|
+
if (a.splice(u, 1), u !== 0) {
|
|
1428
|
+
const c = a[0];
|
|
1429
|
+
if (c) {
|
|
1430
|
+
const d = C0({ id: c.cfId, type: "before" }, { id: l.cfId, type: "after" }, a, (F) => F.cfId);
|
|
1431
|
+
if (!d)
|
|
1432
|
+
return h;
|
|
1433
|
+
const [C, D] = d, f = {
|
|
1434
|
+
unitId: e,
|
|
1435
|
+
subUnitId: r,
|
|
1436
|
+
start: C,
|
|
1437
|
+
end: D
|
|
1438
|
+
};
|
|
1439
|
+
h.push({ id: v2.id, params: f });
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
return h;
|
|
1443
|
+
}
|
|
1444
|
+
return [];
|
|
1445
|
+
}, E2 = {
|
|
1446
|
+
type: J.MUTATION,
|
|
1447
|
+
id: "sheet.mutation.delete-conditional-rule",
|
|
1448
|
+
handler(n, s) {
|
|
1449
|
+
if (!s)
|
|
1450
|
+
return !1;
|
|
1451
|
+
const { unitId: t, subUnitId: e, cfId: r } = s;
|
|
1452
|
+
return n.get(B).deleteRule(t, e, r), !0;
|
|
1453
|
+
}
|
|
1454
|
+
}, I1 = (n, s) => ({ id: E2.id, params: { unitId: s.unitId, subUnitId: s.subUnitId, cfId: s.rule.cfId } }), N2 = {
|
|
1455
|
+
type: J.MUTATION,
|
|
1456
|
+
id: "sheet.mutation.add-conditional-rule",
|
|
1457
|
+
handler(n, s) {
|
|
1458
|
+
if (!s)
|
|
1459
|
+
return !1;
|
|
1460
|
+
const { unitId: t, subUnitId: e, rule: r } = s;
|
|
1461
|
+
return n.get(B).addRule(t, e, r), !0;
|
|
1462
|
+
}
|
|
1463
|
+
}, T2 = {
|
|
1464
|
+
type: J.MUTATION,
|
|
1465
|
+
id: "sheet.mutation.set-conditional-rule",
|
|
1466
|
+
handler(n, s) {
|
|
1467
|
+
if (!s)
|
|
1468
|
+
return !1;
|
|
1469
|
+
const { unitId: t, subUnitId: e, rule: r } = s, i = s.cfId || s.rule.cfId;
|
|
1470
|
+
return n.get(B).setRule(t, e, r, i), !0;
|
|
1471
|
+
}
|
|
1472
|
+
}, b1 = (n, s) => {
|
|
1473
|
+
const t = n.get(B), { unitId: e, subUnitId: r } = s, i = s.cfId || s.rule.cfId, a = t.getRule(e, r, i);
|
|
1474
|
+
return a ? [
|
|
1475
|
+
{
|
|
1476
|
+
id: T2.id,
|
|
1477
|
+
params: {
|
|
1478
|
+
unitId: e,
|
|
1479
|
+
subUnitId: r,
|
|
1480
|
+
cfId: i,
|
|
1481
|
+
rule: H.deepClone(a)
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
] : [];
|
|
1485
|
+
}, J0 = "ssheets-conditional-formatting.config", z0 = {};
|
|
1486
|
+
var Q0 = Object.defineProperty, e1 = Object.getOwnPropertyDescriptor, t1 = (n, s, t, e) => {
|
|
1487
|
+
for (var r = e > 1 ? void 0 : e ? e1(s, t) : s, i = n.length - 1, a; i >= 0; i--)
|
|
1488
|
+
(a = n[i]) && (r = (e ? a(s, t, r) : a(r)) || r);
|
|
1489
|
+
return e && r && Q0(s, t, r), r;
|
|
1490
|
+
}, q = (n, s) => (t, e) => s(t, e, n);
|
|
1491
|
+
let K = class extends m2 {
|
|
1492
|
+
constructor(n, s, t, e, r, i) {
|
|
1493
|
+
super(), this._conditionalFormattingRuleModel = n, this._injector = s, this._univerInstanceService = t, this._resourceManagerService = e, this._sheetInterceptorService = r, this._commandService = i, this._initCellChange(), this._initSnapshot(), this._initSheetChange();
|
|
1494
|
+
}
|
|
1495
|
+
get _conditionalFormattingViewModelV2() {
|
|
1496
|
+
return this._injector.get(j);
|
|
1497
|
+
}
|
|
1498
|
+
composeStyle(n, s, t, e) {
|
|
1499
|
+
const r = this._conditionalFormattingViewModelV2.getCellCfs(n, s, t, e);
|
|
1500
|
+
if (r && (r != null && r.length)) {
|
|
1501
|
+
const i = r.map((l) => this._conditionalFormattingRuleModel.getRule(n, s, l.cfId)).filter((l) => !!l).reverse(), a = i.findIndex((l) => l == null ? void 0 : l.stopIfTrue);
|
|
1502
|
+
return a > -1 && i.splice(a + 1), i.reduce((l, o) => {
|
|
1414
1503
|
var d;
|
|
1415
|
-
const
|
|
1416
|
-
if (
|
|
1417
|
-
|
|
1418
|
-
else if (
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
} else if (
|
|
1422
|
-
const
|
|
1423
|
-
|
|
1424
|
-
} else if (
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1504
|
+
const h = o.rule.type, c = r.find((C) => C.cfId === o.cfId);
|
|
1505
|
+
if (h === y.highlightCell)
|
|
1506
|
+
c.result && H.deepMerge(l, { style: c.result });
|
|
1507
|
+
else if (h === y.colorScale) {
|
|
1508
|
+
const C = c == null ? void 0 : c.result;
|
|
1509
|
+
C && typeof C == "string" && (l.style = { ...(d = l.style) != null ? d : {}, bg: { rgb: C } });
|
|
1510
|
+
} else if (h === y.dataBar) {
|
|
1511
|
+
const C = c == null ? void 0 : c.result;
|
|
1512
|
+
C && (l.dataBar = C, l.isShowValue = C.isShowValue);
|
|
1513
|
+
} else if (h === y.iconSet) {
|
|
1514
|
+
const C = c == null ? void 0 : c.result;
|
|
1515
|
+
C && (l.iconSet = C, l.isShowValue = C.isShowValue);
|
|
1427
1516
|
}
|
|
1428
|
-
return
|
|
1517
|
+
return l;
|
|
1429
1518
|
}, {});
|
|
1430
1519
|
}
|
|
1431
1520
|
return null;
|
|
1432
1521
|
}
|
|
1433
1522
|
_initSnapshot() {
|
|
1434
|
-
const
|
|
1435
|
-
const
|
|
1436
|
-
return
|
|
1437
|
-
r[
|
|
1523
|
+
const n = (t) => {
|
|
1524
|
+
const e = this._conditionalFormattingRuleModel.getUnitRules(t), r = {};
|
|
1525
|
+
return e ? (e.forEach((i, a) => {
|
|
1526
|
+
r[a] = i;
|
|
1438
1527
|
}), JSON.stringify(r)) : "";
|
|
1439
|
-
},
|
|
1440
|
-
if (!
|
|
1528
|
+
}, s = (t) => {
|
|
1529
|
+
if (!t)
|
|
1441
1530
|
return {};
|
|
1442
1531
|
try {
|
|
1443
|
-
return JSON.parse(
|
|
1532
|
+
return JSON.parse(t);
|
|
1444
1533
|
} catch {
|
|
1445
1534
|
return {};
|
|
1446
1535
|
}
|
|
1447
1536
|
};
|
|
1448
1537
|
this.disposeWithMe(
|
|
1449
1538
|
this._resourceManagerService.registerPluginResource({
|
|
1450
|
-
pluginName:
|
|
1451
|
-
businesses: [
|
|
1452
|
-
toJson: (
|
|
1453
|
-
parseJson: (
|
|
1454
|
-
onUnLoad: (
|
|
1455
|
-
this._conditionalFormattingRuleModel.deleteUnitId(
|
|
1539
|
+
pluginName: k2,
|
|
1540
|
+
businesses: [c2.UNIVER_SHEET],
|
|
1541
|
+
toJson: (t) => n(t),
|
|
1542
|
+
parseJson: (t) => s(t),
|
|
1543
|
+
onUnLoad: (t) => {
|
|
1544
|
+
this._conditionalFormattingRuleModel.deleteUnitId(t);
|
|
1456
1545
|
},
|
|
1457
|
-
onLoad: (
|
|
1458
|
-
Object.keys(
|
|
1459
|
-
[...
|
|
1460
|
-
this._conditionalFormattingRuleModel.addRule(
|
|
1546
|
+
onLoad: (t, e) => {
|
|
1547
|
+
Object.keys(e).forEach((r) => {
|
|
1548
|
+
[...e[r]].reverse().forEach((a) => {
|
|
1549
|
+
this._conditionalFormattingRuleModel.addRule(t, r, a);
|
|
1461
1550
|
});
|
|
1462
1551
|
});
|
|
1463
1552
|
}
|
|
@@ -1467,28 +1556,28 @@ let z = class extends x2 {
|
|
|
1467
1556
|
_initSheetChange() {
|
|
1468
1557
|
this.disposeWithMe(
|
|
1469
1558
|
this._sheetInterceptorService.interceptCommand({
|
|
1470
|
-
getMutations: (
|
|
1471
|
-
if (
|
|
1472
|
-
const
|
|
1473
|
-
if (!
|
|
1559
|
+
getMutations: (n) => {
|
|
1560
|
+
if (n.id === s0.id) {
|
|
1561
|
+
const s = n.params, t = s.unitId || r1(this._univerInstanceService), e = s.subUnitId || s1(this._univerInstanceService);
|
|
1562
|
+
if (!e)
|
|
1474
1563
|
return { redos: [], undos: [] };
|
|
1475
|
-
const r = this._conditionalFormattingRuleModel.getSubunitRules(
|
|
1564
|
+
const r = this._conditionalFormattingRuleModel.getSubunitRules(t, e);
|
|
1476
1565
|
if (!r)
|
|
1477
1566
|
return { redos: [], undos: [] };
|
|
1478
|
-
const
|
|
1479
|
-
return r.forEach((
|
|
1480
|
-
const
|
|
1481
|
-
unitId:
|
|
1482
|
-
subUnitId:
|
|
1483
|
-
cfId:
|
|
1567
|
+
const i = [], a = [];
|
|
1568
|
+
return r.forEach((u) => {
|
|
1569
|
+
const l = {
|
|
1570
|
+
unitId: t,
|
|
1571
|
+
subUnitId: e,
|
|
1572
|
+
cfId: u.cfId
|
|
1484
1573
|
};
|
|
1485
|
-
|
|
1486
|
-
id:
|
|
1487
|
-
params:
|
|
1488
|
-
}),
|
|
1574
|
+
i.push({
|
|
1575
|
+
id: E2.id,
|
|
1576
|
+
params: l
|
|
1577
|
+
}), a.push(...K0(this._injector, l));
|
|
1489
1578
|
}), {
|
|
1490
|
-
redos:
|
|
1491
|
-
undos:
|
|
1579
|
+
redos: i,
|
|
1580
|
+
undos: a
|
|
1492
1581
|
};
|
|
1493
1582
|
}
|
|
1494
1583
|
return { redos: [], undos: [] };
|
|
@@ -1496,107 +1585,84 @@ let z = class extends x2 {
|
|
|
1496
1585
|
})
|
|
1497
1586
|
);
|
|
1498
1587
|
}
|
|
1499
|
-
|
|
1500
|
-
this._calculationUnitMap.set(i.type, i);
|
|
1501
|
-
}
|
|
1502
|
-
_getComputedCache(i, t, e) {
|
|
1503
|
-
var s, r;
|
|
1504
|
-
return (r = (s = this._ruleCacheMap.get(i)) == null ? void 0 : s.get(t)) == null ? void 0 : r.get(e);
|
|
1505
|
-
}
|
|
1506
|
-
_setComputedCache(i, t, e, s) {
|
|
1507
|
-
let r = this._ruleCacheMap.get(i);
|
|
1508
|
-
r || (r = /* @__PURE__ */ new Map(), this._ruleCacheMap.set(i, r));
|
|
1509
|
-
let a = r.get(t);
|
|
1510
|
-
a || (a = /* @__PURE__ */ new Map(), r.set(t, a)), a.set(e, s);
|
|
1511
|
-
}
|
|
1512
|
-
_deleteComputeCache(i, t, e) {
|
|
1513
|
-
const s = this._ruleCacheMap.get(i), r = s == null ? void 0 : s.get(t);
|
|
1514
|
-
r && (r.delete(e), r.size || s == null || s.delete(t));
|
|
1515
|
-
}
|
|
1516
|
-
_initCacheManager() {
|
|
1517
|
-
this.disposeWithMe(this._conditionalFormattingViewModel.markDirty$.subscribe((i) => {
|
|
1518
|
-
this._deleteComputeCache(i.unitId, i.subUnitId, i.rule.cfId);
|
|
1519
|
-
})), this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.pipe(D2((i) => i.type !== "sort")).subscribe((i) => {
|
|
1520
|
-
const { unitId: t, subUnitId: e, rule: s } = i;
|
|
1521
|
-
this._deleteComputeCache(t, e, s.cfId);
|
|
1522
|
-
}));
|
|
1523
|
-
}
|
|
1588
|
+
// eslint-disable-next-line max-lines-per-function
|
|
1524
1589
|
_initCellChange() {
|
|
1525
1590
|
this.disposeWithMe(
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1591
|
+
// eslint-disable-next-line max-lines-per-function
|
|
1592
|
+
this._commandService.onCommandExecuted((n) => {
|
|
1593
|
+
const s = (t, e, r) => {
|
|
1594
|
+
const i = /* @__PURE__ */ new Set();
|
|
1595
|
+
return r.forEach(([a, u]) => {
|
|
1596
|
+
const l = this._conditionalFormattingViewModelV2.getCellCfs(t, e, a, u);
|
|
1597
|
+
l == null || l.forEach((o) => i.add(o.cfId));
|
|
1598
|
+
}), [...i].map((a) => this._conditionalFormattingRuleModel.getRule(t, e, a)).filter((a) => !!a);
|
|
1533
1599
|
};
|
|
1534
|
-
switch (
|
|
1535
|
-
case
|
|
1536
|
-
const
|
|
1537
|
-
new
|
|
1538
|
-
|
|
1539
|
-
}),
|
|
1540
|
-
this.
|
|
1600
|
+
switch (n.id) {
|
|
1601
|
+
case d0.id: {
|
|
1602
|
+
const t = n.params, { subUnitId: e, unitId: r, cellValue: i } = t, a = [];
|
|
1603
|
+
new T(i).forValue((l, o, h) => {
|
|
1604
|
+
h && Object.keys(h).some((d) => ["p", "v"].includes(d)) && a.push([l, o]);
|
|
1605
|
+
}), s(r, e, a).forEach((l) => {
|
|
1606
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(r, e, l.cfId);
|
|
1541
1607
|
});
|
|
1542
1608
|
break;
|
|
1543
1609
|
}
|
|
1544
|
-
case
|
|
1545
|
-
case
|
|
1546
|
-
const { range:
|
|
1547
|
-
|
|
1548
|
-
this.
|
|
1610
|
+
case h0.id:
|
|
1611
|
+
case u0.id: {
|
|
1612
|
+
const { range: t, unitId: e, subUnitId: r } = n.params, i = this._conditionalFormattingRuleModel.getSubunitRules(e, r), a = { ...t, endColumn: Number.MAX_SAFE_INTEGER };
|
|
1613
|
+
i && i.filter((l) => l.ranges.some((o) => X.intersects(o, a))).forEach((l) => {
|
|
1614
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(e, r, l.cfId);
|
|
1549
1615
|
});
|
|
1550
1616
|
break;
|
|
1551
1617
|
}
|
|
1552
|
-
case
|
|
1553
|
-
case
|
|
1554
|
-
const { range:
|
|
1555
|
-
|
|
1556
|
-
this.
|
|
1618
|
+
case c0.id:
|
|
1619
|
+
case o0.id: {
|
|
1620
|
+
const { range: t, unitId: e, subUnitId: r } = n.params, i = this._conditionalFormattingRuleModel.getSubunitRules(e, r), a = { ...t, endRow: Number.MAX_SAFE_INTEGER };
|
|
1621
|
+
i && i.filter((l) => l.ranges.some((o) => X.intersects(o, a))).forEach((l) => {
|
|
1622
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(e, r, l.cfId);
|
|
1557
1623
|
});
|
|
1558
1624
|
break;
|
|
1559
1625
|
}
|
|
1560
|
-
case
|
|
1561
|
-
const { sourceRange:
|
|
1562
|
-
startRow: Math.min(
|
|
1626
|
+
case l0.id: {
|
|
1627
|
+
const { sourceRange: t, targetRange: e, unitId: r, subUnitId: i } = n.params, a = this._conditionalFormattingRuleModel.getSubunitRules(r, i), u = {
|
|
1628
|
+
startRow: Math.min(t.startRow, e.startRow),
|
|
1563
1629
|
endRow: Number.MAX_SAFE_INTEGER,
|
|
1564
1630
|
startColumn: 0,
|
|
1565
1631
|
endColumn: Number.MAX_SAFE_INTEGER
|
|
1566
1632
|
};
|
|
1567
|
-
|
|
1568
|
-
this.
|
|
1633
|
+
a && a.filter((o) => o.ranges.some((h) => X.intersects(h, u))).forEach((o) => {
|
|
1634
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(r, i, o.cfId);
|
|
1569
1635
|
});
|
|
1570
1636
|
break;
|
|
1571
1637
|
}
|
|
1572
|
-
case
|
|
1573
|
-
const { sourceRange:
|
|
1638
|
+
case a0.id: {
|
|
1639
|
+
const { sourceRange: t, targetRange: e, unitId: r, subUnitId: i } = n.params, a = this._conditionalFormattingRuleModel.getSubunitRules(r, i), u = {
|
|
1574
1640
|
startRow: 0,
|
|
1575
1641
|
endRow: Number.MAX_SAFE_INTEGER,
|
|
1576
|
-
startColumn: Math.min(
|
|
1642
|
+
startColumn: Math.min(t.startColumn, e.startColumn),
|
|
1577
1643
|
endColumn: Number.MAX_SAFE_INTEGER
|
|
1578
1644
|
};
|
|
1579
|
-
|
|
1580
|
-
this.
|
|
1645
|
+
a && a.filter((o) => o.ranges.some((h) => X.intersects(h, u))).forEach((o) => {
|
|
1646
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(r, i, o.cfId);
|
|
1581
1647
|
});
|
|
1582
1648
|
break;
|
|
1583
1649
|
}
|
|
1584
|
-
case
|
|
1585
|
-
const { unitId:
|
|
1586
|
-
const
|
|
1587
|
-
new
|
|
1588
|
-
|
|
1589
|
-
}), t
|
|
1590
|
-
this.
|
|
1650
|
+
case i0.id: {
|
|
1651
|
+
const { unitId: t, to: e, from: r } = n.params, i = (a) => {
|
|
1652
|
+
const u = [];
|
|
1653
|
+
new T(a.value).forValue((o, h) => {
|
|
1654
|
+
u.push([o, h]);
|
|
1655
|
+
}), s(t, a.subUnitId, u).forEach((o) => {
|
|
1656
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(t, a.subUnitId, o.cfId);
|
|
1591
1657
|
});
|
|
1592
1658
|
};
|
|
1593
|
-
|
|
1659
|
+
i(e), i(r);
|
|
1594
1660
|
break;
|
|
1595
1661
|
}
|
|
1596
|
-
case
|
|
1597
|
-
const { range:
|
|
1598
|
-
|
|
1599
|
-
this.
|
|
1662
|
+
case n0.id: {
|
|
1663
|
+
const { range: t, unitId: e, subUnitId: r } = n.params, i = this._conditionalFormattingRuleModel.getSubunitRules(e, r);
|
|
1664
|
+
i && i.filter((u) => u.ranges.some((l) => X.intersects(l, t))).forEach((u) => {
|
|
1665
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(e, r, u.cfId);
|
|
1600
1666
|
});
|
|
1601
1667
|
break;
|
|
1602
1668
|
}
|
|
@@ -1604,204 +1670,177 @@ let z = class extends x2 {
|
|
|
1604
1670
|
})
|
|
1605
1671
|
);
|
|
1606
1672
|
}
|
|
1607
|
-
_initRemoteCalculate() {
|
|
1608
|
-
this.disposeWithMe(this._ruleComputeStatus$.subscribe(({ status: i, subUnitId: t, unitId: e, cfId: s, result: r }) => {
|
|
1609
|
-
const a = this._getComputedCache(e, t, s) || {};
|
|
1610
|
-
a.status = i, this._setComputedCache(e, t, s, a), i === "end" && r && (this.interceptorManager.fetchThroughInterceptors(this.interceptorManager.getInterceptPoints().beforeUpdateRuleResult)({
|
|
1611
|
-
subUnitId: t,
|
|
1612
|
-
unitId: e,
|
|
1613
|
-
cfId: s
|
|
1614
|
-
}, void 0), r.forValue((o, l, c) => {
|
|
1615
|
-
this._conditionalFormattingViewModel.setCellCfRuleCache(e, t, o, l, s, c);
|
|
1616
|
-
}));
|
|
1617
|
-
}));
|
|
1618
|
-
}
|
|
1619
|
-
async _handleCalculateUnit(i, t, e) {
|
|
1620
|
-
if (!this._conditionalFormattingRuleModel.getRule(i, t, e.cfId))
|
|
1621
|
-
return;
|
|
1622
|
-
const s = this._univerInstanceService.getUnit(i), r = s == null ? void 0 : s.getSheetBySheetId(t);
|
|
1623
|
-
let a = this._getComputedCache(i, t, e.cfId);
|
|
1624
|
-
if (a && ["computing", "end"].includes(a.status))
|
|
1625
|
-
return;
|
|
1626
|
-
a || (a = { status: "computing" }, this._setComputedCache(i, t, e.cfId, a));
|
|
1627
|
-
const o = this._calculationUnitMap.get(e.rule.type);
|
|
1628
|
-
if (!o || !r)
|
|
1629
|
-
return;
|
|
1630
|
-
const l = { unitId: i, subUnitId: t, accessor: this._injector, workbook: s, worksheet: r }, c = await o.handle(e, l);
|
|
1631
|
-
this._ruleComputeStatus$.next({ status: "end", unitId: i, subUnitId: t, cfId: e.cfId, result: c });
|
|
1632
|
-
}
|
|
1633
1673
|
};
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
return (i = n.getCurrentUnitForType(l2.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : i.getSheetId();
|
|
1674
|
+
K = t1([
|
|
1675
|
+
q(0, A(B)),
|
|
1676
|
+
q(1, A(F2)),
|
|
1677
|
+
q(2, A(S2)),
|
|
1678
|
+
q(3, A(P2)),
|
|
1679
|
+
q(4, A(r0)),
|
|
1680
|
+
q(5, A(f2))
|
|
1681
|
+
], K);
|
|
1682
|
+
const r1 = (n) => n.getCurrentUnitForType(c2.UNIVER_SHEET).getUnitId(), s1 = (n) => {
|
|
1683
|
+
var s;
|
|
1684
|
+
return (s = n.getCurrentUnitForType(c2.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : s.getSheetId();
|
|
1646
1685
|
};
|
|
1647
|
-
var
|
|
1648
|
-
for (var
|
|
1649
|
-
(a = n[
|
|
1650
|
-
return e &&
|
|
1651
|
-
},
|
|
1652
|
-
let
|
|
1653
|
-
constructor(n =
|
|
1654
|
-
super(), this._config = n, this._injector =
|
|
1655
|
-
const { ...
|
|
1656
|
-
this._configService.setConfig(
|
|
1657
|
-
[
|
|
1658
|
-
[
|
|
1659
|
-
[
|
|
1660
|
-
[
|
|
1661
|
-
].forEach((
|
|
1662
|
-
this._injector.add(
|
|
1686
|
+
var n1 = Object.defineProperty, i1 = Object.getOwnPropertyDescriptor, a1 = (n, s, t, e) => {
|
|
1687
|
+
for (var r = e > 1 ? void 0 : e ? i1(s, t) : s, i = n.length - 1, a; i >= 0; i--)
|
|
1688
|
+
(a = n[i]) && (r = (e ? a(s, t, r) : a(r)) || r);
|
|
1689
|
+
return e && r && n1(s, t, r), r;
|
|
1690
|
+
}, D2 = (n, s) => (t, e) => s(t, e, n), s2;
|
|
1691
|
+
let M2 = (s2 = class extends W2 {
|
|
1692
|
+
constructor(n = z0, s, t, e) {
|
|
1693
|
+
super(), this._config = n, this._injector = s, this._commandService = t, this._configService = e;
|
|
1694
|
+
const { ...r } = this._config;
|
|
1695
|
+
this._configService.setConfig(J0, r), [
|
|
1696
|
+
[K],
|
|
1697
|
+
[G],
|
|
1698
|
+
[B],
|
|
1699
|
+
[j]
|
|
1700
|
+
].forEach((i) => {
|
|
1701
|
+
this._injector.add(i);
|
|
1663
1702
|
}), [
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
].forEach((
|
|
1670
|
-
this._commandService.registerCommand(
|
|
1703
|
+
N2,
|
|
1704
|
+
E2,
|
|
1705
|
+
T2,
|
|
1706
|
+
v2,
|
|
1707
|
+
n2
|
|
1708
|
+
].forEach((i) => {
|
|
1709
|
+
this._commandService.registerCommand(i);
|
|
1671
1710
|
});
|
|
1672
1711
|
}
|
|
1673
1712
|
onStarting() {
|
|
1674
|
-
this._injector.get(
|
|
1675
|
-
}
|
|
1676
|
-
},
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
],
|
|
1682
|
-
const
|
|
1683
|
-
class
|
|
1713
|
+
this._injector.get(K), Z2(this._injector, [[K], [j]]);
|
|
1714
|
+
}
|
|
1715
|
+
}, m(s2, "pluginName", k2), m(s2, "type", c2.UNIVER_SHEET), s2);
|
|
1716
|
+
M2 = a1([
|
|
1717
|
+
D2(1, A(F2)),
|
|
1718
|
+
D2(2, A(f2)),
|
|
1719
|
+
D2(3, q2)
|
|
1720
|
+
], M2);
|
|
1721
|
+
const l1 = "sheet-conditional-rule-icon", o1 = 35, c1 = 15, u1 = 2;
|
|
1722
|
+
class h1 extends B2 {
|
|
1684
1723
|
constructor() {
|
|
1685
1724
|
super();
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1725
|
+
m(this, "_paddingRightAndLeft", u1);
|
|
1726
|
+
m(this, "_width", c1);
|
|
1727
|
+
m(this, "_imageMap", /* @__PURE__ */ new Map());
|
|
1728
|
+
m(this, "uKey", l1);
|
|
1729
|
+
m(this, "Z_INDEX", o1);
|
|
1730
|
+
m(this, "_radius", 1);
|
|
1692
1731
|
this._init();
|
|
1693
1732
|
}
|
|
1694
|
-
draw(t, e,
|
|
1695
|
-
const { worksheet: a } =
|
|
1733
|
+
draw(t, e, r, i) {
|
|
1734
|
+
const { worksheet: a } = r;
|
|
1696
1735
|
if (!a)
|
|
1697
1736
|
return !1;
|
|
1698
|
-
t.save(),
|
|
1699
|
-
if (!a.getRowVisible(
|
|
1737
|
+
t.save(), N.foreach(r.rowColumnSegment, (u, l) => {
|
|
1738
|
+
if (!a.getRowVisible(u) || !a.getColVisible(l))
|
|
1700
1739
|
return;
|
|
1701
|
-
const
|
|
1702
|
-
if (
|
|
1703
|
-
const { iconType: h, iconId:
|
|
1704
|
-
if (h ===
|
|
1740
|
+
const o = a.getCell(u, l);
|
|
1741
|
+
if (o != null && o.iconSet) {
|
|
1742
|
+
const { iconType: h, iconId: c } = o.iconSet;
|
|
1743
|
+
if (h === Y0)
|
|
1705
1744
|
return;
|
|
1706
|
-
const
|
|
1707
|
-
if (!
|
|
1745
|
+
const d = this._imageMap.get(this._createKey(h, c));
|
|
1746
|
+
if (!d)
|
|
1708
1747
|
return;
|
|
1709
|
-
const
|
|
1710
|
-
let { isMerged: D, isMergedMainCell:
|
|
1711
|
-
if (D || (
|
|
1748
|
+
const C = r.getCellWithCoordByIndex(u, l, !1);
|
|
1749
|
+
let { isMerged: D, isMergedMainCell: f, mergeInfo: F, startY: p, endY: S, startX: k, endX: V } = C;
|
|
1750
|
+
if (D || (f && (p = F.startY, S = F.endY, k = F.startX, V = F.endX), !this.isRenderDiffRangesByCell(F, i)))
|
|
1712
1751
|
return;
|
|
1713
|
-
const
|
|
1714
|
-
if (this._width >
|
|
1752
|
+
const z = V - k, Q = S - p;
|
|
1753
|
+
if (this._width > Q || this._width > z + this._paddingRightAndLeft * 2)
|
|
1715
1754
|
return;
|
|
1716
|
-
const h2 = (
|
|
1717
|
-
t.drawImage(
|
|
1755
|
+
const h2 = (Q - this._width) / 2 + p;
|
|
1756
|
+
t.drawImage(d, k + this._paddingRightAndLeft, h2, this._width, this._width);
|
|
1718
1757
|
}
|
|
1719
1758
|
}), t.restore();
|
|
1720
1759
|
}
|
|
1721
1760
|
_init() {
|
|
1722
|
-
for (const t in
|
|
1723
|
-
|
|
1724
|
-
const a = this._createKey(t, String(
|
|
1725
|
-
|
|
1726
|
-
this._imageMap.set(a,
|
|
1727
|
-
},
|
|
1761
|
+
for (const t in o2)
|
|
1762
|
+
o2[t].forEach((r, i) => {
|
|
1763
|
+
const a = this._createKey(t, String(i)), u = new Image();
|
|
1764
|
+
u.onload = () => {
|
|
1765
|
+
this._imageMap.set(a, u);
|
|
1766
|
+
}, u.src = r;
|
|
1728
1767
|
});
|
|
1729
1768
|
}
|
|
1730
1769
|
_createKey(t, e) {
|
|
1731
1770
|
return `${t}_${e}`;
|
|
1732
1771
|
}
|
|
1733
1772
|
}
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
function o1(n) {
|
|
1773
|
+
L2.add(h1);
|
|
1774
|
+
function d1(n) {
|
|
1737
1775
|
if (typeof n != "object" || n === null)
|
|
1738
1776
|
return n;
|
|
1739
|
-
const
|
|
1777
|
+
const s = {};
|
|
1740
1778
|
for (const t in n)
|
|
1741
1779
|
if (n.hasOwnProperty(t)) {
|
|
1742
|
-
const e =
|
|
1743
|
-
e !== void 0 && (
|
|
1780
|
+
const e = d1(n[t]);
|
|
1781
|
+
e !== void 0 && (s[t] = e);
|
|
1744
1782
|
}
|
|
1745
|
-
return
|
|
1783
|
+
return s;
|
|
1746
1784
|
}
|
|
1747
1785
|
export {
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1786
|
+
N2 as AddConditionalRuleMutation,
|
|
1787
|
+
I1 as AddConditionalRuleMutationUndoFactory,
|
|
1788
|
+
w as CFNumberOperator,
|
|
1789
|
+
y as CFRuleType,
|
|
1790
|
+
E as CFSubRuleType,
|
|
1791
|
+
M as CFTextOperator,
|
|
1792
|
+
R as CFTimePeriodOperator,
|
|
1793
|
+
x as CFValueType,
|
|
1794
|
+
C2 as CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH,
|
|
1795
|
+
n2 as ConditionalFormattingFormulaMarkDirty,
|
|
1796
|
+
G as ConditionalFormattingFormulaService,
|
|
1797
|
+
h1 as ConditionalFormattingIcon,
|
|
1798
|
+
B as ConditionalFormattingRuleModel,
|
|
1799
|
+
K as ConditionalFormattingService,
|
|
1800
|
+
j as ConditionalFormattingViewModel,
|
|
1801
|
+
v1 as DEFAULT_BG_COLOR,
|
|
1802
|
+
E1 as DEFAULT_FONT_COLOR,
|
|
1803
|
+
u1 as DEFAULT_PADDING,
|
|
1804
|
+
c1 as DEFAULT_WIDTH,
|
|
1805
|
+
I0 as DataBar,
|
|
1806
|
+
E2 as DeleteConditionalRuleMutation,
|
|
1807
|
+
K0 as DeleteConditionalRuleMutationUndoFactory,
|
|
1808
|
+
Y0 as EMPTY_ICON_TYPE,
|
|
1809
|
+
b as FormulaResultStatus,
|
|
1810
|
+
l1 as IconUKey,
|
|
1811
|
+
v2 as MoveConditionalRuleMutation,
|
|
1812
|
+
R1 as MoveConditionalRuleMutationUndoFactory,
|
|
1813
|
+
k2 as SHEET_CONDITIONAL_FORMATTING_PLUGIN,
|
|
1814
|
+
T2 as SetConditionalRuleMutation,
|
|
1815
|
+
M2 as UniverSheetsConditionalFormattingPlugin,
|
|
1816
|
+
D0 as anchorUndoFactory,
|
|
1817
|
+
Y as compareWithNumber,
|
|
1818
|
+
f0 as createCfId,
|
|
1819
|
+
p1 as createDefaultRule,
|
|
1820
|
+
A1 as createDefaultValue,
|
|
1821
|
+
_1 as createDefaultValueByValueType,
|
|
1822
|
+
y0 as dataBarUKey,
|
|
1823
|
+
y2 as defaultDataBarNativeColor,
|
|
1824
|
+
x2 as defaultDataBarPositiveColor,
|
|
1825
|
+
M0 as defaultPlaceholderColor,
|
|
1826
|
+
w2 as filterRange,
|
|
1827
|
+
W as findIndexByAnchor,
|
|
1828
|
+
y1 as getCacheStyleMatrix,
|
|
1829
|
+
U as getCellValue,
|
|
1830
|
+
_0 as getColorScaleFromValue,
|
|
1831
|
+
M1 as getMaxInFormulaResult,
|
|
1832
|
+
A0 as getOppositeOperator,
|
|
1833
|
+
l2 as getValueByType,
|
|
1834
|
+
X0 as iconGroup,
|
|
1835
|
+
o2 as iconMap,
|
|
1836
|
+
x1 as isAnchorEqual,
|
|
1837
|
+
a2 as isFloatsEqual,
|
|
1838
|
+
I as isNullable,
|
|
1839
|
+
B1 as isRangesEqual,
|
|
1840
|
+
g0 as moveByAnchor,
|
|
1841
|
+
d1 as removeUndefinedAttr,
|
|
1842
|
+
p0 as serialTimeToTimestamp,
|
|
1843
|
+
b1 as setConditionalRuleMutationUndoFactory,
|
|
1844
|
+
E0 as toYMD_1900,
|
|
1845
|
+
C0 as transformSupportSymmetryAnchor
|
|
1807
1846
|
};
|