hoeditor-web 3.3.3-beta.8 → 3.3.3-beta.9
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.
|
@@ -3152,10 +3152,10 @@ createjs = createjs || {};
|
|
|
3152
3152
|
for (u = 1; u < I; u++)
|
|
3153
3153
|
X = X.n = { r: 0, b: 0, g: 0, a: 0 };
|
|
3154
3154
|
X.n = U;
|
|
3155
|
-
var
|
|
3155
|
+
var z = { r: 0, b: 0, g: 0, a: 0 }, G = z;
|
|
3156
3156
|
for (u = 1; u < M; u++)
|
|
3157
3157
|
G = G.n = { r: 0, b: 0, g: 0, a: 0 };
|
|
3158
|
-
G.n =
|
|
3158
|
+
G.n = z;
|
|
3159
3159
|
for (var J = null, ae = a.MUL_TABLE[o] | 0, Ce = a.SHG_TABLE[o] | 0, oe = a.MUL_TABLE[n] | 0, me = a.SHG_TABLE[n] | 0; s-- > 0; ) {
|
|
3160
3160
|
g = m = 0;
|
|
3161
3161
|
var ue = ae, Q = Ce;
|
|
@@ -3169,11 +3169,11 @@ createjs = createjs || {};
|
|
|
3169
3169
|
g += k;
|
|
3170
3170
|
}
|
|
3171
3171
|
for (ue = oe, Q = me, c = 0; c < k; c++) {
|
|
3172
|
-
for (m = c << 2 | 0, y = j * (_ = l[m]) | 0, w = j * (D = l[m + 1 | 0]) | 0, v = j * (E = l[m + 2 | 0]) | 0, C = j * (T = l[m + 3 | 0]) | 0, G =
|
|
3172
|
+
for (m = c << 2 | 0, y = j * (_ = l[m]) | 0, w = j * (D = l[m + 1 | 0]) | 0, v = j * (E = l[m + 2 | 0]) | 0, C = j * (T = l[m + 3 | 0]) | 0, G = z, u = 0; u < j; u++)
|
|
3173
3173
|
G.r = _, G.g = D, G.b = E, G.a = T, G = G.n;
|
|
3174
3174
|
for (p = k, u = 1; u <= n; u++)
|
|
3175
3175
|
m = p + c << 2, y += G.r = l[m], w += G.g = l[m + 1], v += G.b = l[m + 2], C += G.a = l[m + 3], G = G.n, u < B && (p += k);
|
|
3176
|
-
if (m = c, J =
|
|
3176
|
+
if (m = c, J = z, s > 0)
|
|
3177
3177
|
for (d = 0; d < L; d++)
|
|
3178
3178
|
f = m << 2, l[f + 3] = T = C * ue >>> Q, T > 0 ? (l[f] = y * ue >>> Q, l[f + 1] = w * ue >>> Q, l[f + 2] = v * ue >>> Q) : l[f] = l[f + 1] = l[f + 2] = 0, f = c + ((f = d + j) < B ? f : B) * k << 2, y -= J.r - (J.r = l[f]), w -= J.g - (J.g = l[f + 1]), v -= J.b - (J.b = l[f + 2]), C -= J.a - (J.a = l[f + 3]), J = J.n, m += k;
|
|
3179
3179
|
else
|
|
@@ -7258,7 +7258,7 @@ function flip(a) {
|
|
|
7258
7258
|
allowedAutoPlacements: w
|
|
7259
7259
|
}) : ne);
|
|
7260
7260
|
}, []), T = t.rects.reference, I = t.rects.popper, M = /* @__PURE__ */ new Map(), k = !0, L = E[0], H = 0; H < E.length; H++) {
|
|
7261
|
-
var B = E[H], Y = getBasePlacement(B), j = getVariation(B) === start, U = [top, bottom].indexOf(Y) >= 0, X = U ? "width" : "height",
|
|
7261
|
+
var B = E[H], Y = getBasePlacement(B), j = getVariation(B) === start, U = [top, bottom].indexOf(Y) >= 0, X = U ? "width" : "height", z = detectOverflow(t, {
|
|
7262
7262
|
placement: B,
|
|
7263
7263
|
boundary: f,
|
|
7264
7264
|
rootBoundary: p,
|
|
@@ -7267,7 +7267,7 @@ function flip(a) {
|
|
|
7267
7267
|
}), G = U ? j ? right : left : j ? bottom : top;
|
|
7268
7268
|
T[X] > I[X] && (G = getOppositePlacement(G));
|
|
7269
7269
|
var J = getOppositePlacement(G), ae = [];
|
|
7270
|
-
if (s && ae.push(
|
|
7270
|
+
if (s && ae.push(z[Y] <= 0), c && ae.push(z[G] <= 0, z[J] <= 0), ae.every(function(Q) {
|
|
7271
7271
|
return Q;
|
|
7272
7272
|
})) {
|
|
7273
7273
|
L = B, k = !1;
|
|
@@ -7405,10 +7405,10 @@ function preventOverflow(a) {
|
|
|
7405
7405
|
};
|
|
7406
7406
|
if (I) {
|
|
7407
7407
|
if (s) {
|
|
7408
|
-
var j, U = E === "y" ? top : left, X = E === "y" ? bottom : right,
|
|
7408
|
+
var j, U = E === "y" ? top : left, X = E === "y" ? bottom : right, z = E === "y" ? "height" : "width", G = I[E], J = G + v[U], ae = G - v[X], Ce = g ? -k[z] / 2 : 0, oe = _ === start ? M[z] : k[z], me = _ === start ? -k[z] : -M[z], ue = t.elements.arrow, Q = g && ue ? getLayoutRect(ue) : {
|
|
7409
7409
|
width: 0,
|
|
7410
7410
|
height: 0
|
|
7411
|
-
}, ne = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : getFreshSideObject(), xe = ne[U], Ie = ne[X], ve = within(0, M[
|
|
7411
|
+
}, ne = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : getFreshSideObject(), xe = ne[U], Ie = ne[X], ve = within(0, M[z], Q[z]), _e = D ? M[z] / 2 - Ce - ve - xe - H.mainAxis : oe - ve - xe - H.mainAxis, pe = D ? -M[z] / 2 + Ce + ve + Ie + H.mainAxis : me + ve + Ie + H.mainAxis, Pe = t.elements.arrow && getOffsetParent(t.elements.arrow), De = Pe ? E === "y" ? Pe.clientTop || 0 : Pe.clientLeft || 0 : 0, Ve = (j = B == null ? void 0 : B[E]) != null ? j : 0, Te = G + _e - Ve - De, He = G + pe - Ve, we = within(g ? min$1(J, Te) : J, G, g ? max$2(ae, He) : ae);
|
|
7412
7412
|
I[E] = we, Y[E] = we - G;
|
|
7413
7413
|
}
|
|
7414
7414
|
if (c) {
|
|
@@ -8737,28 +8737,28 @@ var divide = /* @__PURE__ */ function() {
|
|
|
8737
8737
|
for (; !o[0] && o.length > 1; ) o.shift();
|
|
8738
8738
|
}
|
|
8739
8739
|
return function(o, n, s, l, c, d) {
|
|
8740
|
-
var u, f, p, m, g, y, w, v, C, _, D, E, T, I, M, k, L, H, B, Y, j = o.constructor, U = o.s == n.s ? 1 : -1, X = o.d,
|
|
8741
|
-
if (!X || !X[0] || !
|
|
8740
|
+
var u, f, p, m, g, y, w, v, C, _, D, E, T, I, M, k, L, H, B, Y, j = o.constructor, U = o.s == n.s ? 1 : -1, X = o.d, z = n.d;
|
|
8741
|
+
if (!X || !X[0] || !z || !z[0])
|
|
8742
8742
|
return new j(
|
|
8743
8743
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
8744
|
-
!o.s || !n.s || (X ?
|
|
8744
|
+
!o.s || !n.s || (X ? z && X[0] == z[0] : !z) ? NaN : (
|
|
8745
8745
|
// Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
|
|
8746
|
-
X && X[0] == 0 || !
|
|
8746
|
+
X && X[0] == 0 || !z ? U * 0 : U / 0
|
|
8747
8747
|
)
|
|
8748
8748
|
);
|
|
8749
|
-
for (d ? (g = 1, f = o.e - n.e) : (d = BASE, g = LOG_BASE, f = mathfloor(o.e / g) - mathfloor(n.e / g)), B =
|
|
8750
|
-
if (
|
|
8749
|
+
for (d ? (g = 1, f = o.e - n.e) : (d = BASE, g = LOG_BASE, f = mathfloor(o.e / g) - mathfloor(n.e / g)), B = z.length, L = X.length, C = new j(U), _ = C.d = [], p = 0; z[p] == (X[p] || 0); p++) ;
|
|
8750
|
+
if (z[p] > (X[p] || 0) && f--, s == null ? (I = s = j.precision, l = j.rounding) : c ? I = s + (o.e - n.e) + 1 : I = s, I < 0)
|
|
8751
8751
|
_.push(1), y = !0;
|
|
8752
8752
|
else {
|
|
8753
8753
|
if (I = I / g + 2 | 0, p = 0, B == 1) {
|
|
8754
|
-
for (m = 0,
|
|
8755
|
-
M = m * d + (X[p] || 0), _[p] = M /
|
|
8754
|
+
for (m = 0, z = z[0], I++; (p < L || m) && I--; p++)
|
|
8755
|
+
M = m * d + (X[p] || 0), _[p] = M / z | 0, m = M % z | 0;
|
|
8756
8756
|
y = m || p < L;
|
|
8757
8757
|
} else {
|
|
8758
|
-
for (m = d / (
|
|
8759
|
-
Y =
|
|
8758
|
+
for (m = d / (z[0] + 1) | 0, m > 1 && (z = a(z, m, d), X = a(X, m, d), B = z.length, L = X.length), k = B, D = X.slice(0, B), E = D.length; E < B; ) D[E++] = 0;
|
|
8759
|
+
Y = z.slice(), Y.unshift(0), H = z[0], z[1] >= d / 2 && ++H;
|
|
8760
8760
|
do
|
|
8761
|
-
m = 0, u = t(
|
|
8761
|
+
m = 0, u = t(z, D, B, E), u < 0 ? (T = D[0], B != E && (T = T * d + (D[1] || 0)), m = T / H | 0, m > 1 ? (m >= d && (m = d - 1), w = a(z, m, d), v = w.length, E = D.length, u = t(w, D, v, E), u == 1 && (m--, r(w, B < v ? Y : z, v, d))) : (m == 0 && (u = m = 1), w = z.slice()), v = w.length, v < E && w.unshift(0), r(D, w, E, d), u == -1 && (E = D.length, u = t(z, D, B, E), u < 1 && (m++, r(D, B < E ? Y : z, E, d))), E = D.length) : u === 0 && (m++, D = [0]), _[p++] = m, u && D[0] ? D[E++] = X[k] || 0 : (D = [X[k]], E = 1);
|
|
8762
8762
|
while ((k++ < L || D[0] !== void 0) && I--);
|
|
8763
8763
|
y = D[0] !== void 0;
|
|
8764
8764
|
}
|
|
@@ -9405,31 +9405,29 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
|
|
|
9405
9405
|
n.isTransToText ? "" : this._text,
|
|
9406
9406
|
p.getStyleKey(),
|
|
9407
9407
|
p.color
|
|
9408
|
-
)
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
"
|
|
9412
|
-
|
|
9413
|
-
// "☐",
|
|
9414
|
-
// textStyle.getStyleKey(),
|
|
9408
|
+
), p.size <= 12 || p.size <= 16 || p.size <= 22, l === "CheckBox" ? this._dBox = new createjs$1.Text(
|
|
9409
|
+
// "\u00FE",
|
|
9410
|
+
// fontSize.toString() + "px wingdings",
|
|
9411
|
+
"☐",
|
|
9412
|
+
p.getStyleKey(),
|
|
9415
9413
|
p.color
|
|
9416
9414
|
) : this._dBox = new createjs$1.Text(
|
|
9417
|
-
"
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9415
|
+
// "\u00A4",
|
|
9416
|
+
// fontSize.toString() + "px wingdings",
|
|
9417
|
+
"○",
|
|
9418
|
+
p.getStyleKey(),
|
|
9421
9419
|
p.color
|
|
9422
9420
|
);
|
|
9423
|
-
let
|
|
9424
|
-
this.text !== "" && (
|
|
9425
|
-
const
|
|
9426
|
-
if (this.dBoxWidth =
|
|
9427
|
-
let
|
|
9421
|
+
let m = 0;
|
|
9422
|
+
this.text !== "" && (m = 6);
|
|
9423
|
+
const g = this._dText.getMeasuredWidth(), y = this._dBox.getMeasuredWidth();
|
|
9424
|
+
if (this.dBoxWidth = y, this.dWidth = g + y + m, n.isEditText) {
|
|
9425
|
+
let w = 40;
|
|
9428
9426
|
n.appendText.length > 0 && (this._dAppendText = new createjs$1.Text(
|
|
9429
9427
|
n.appendText,
|
|
9430
9428
|
p.getStyleKey(),
|
|
9431
9429
|
p.color
|
|
9432
|
-
),
|
|
9430
|
+
), w = this._dAppendText.getMeasuredWidth()), this._dUnderLine = new createjs$1.Shape(), this._dUnderLine.graphics.beginStroke(p.color).moveTo(this.dWidth - m, 1).lineTo(this.dWidth - m + w, 1), this.dWidth = this.dWidth - m + w;
|
|
9433
9431
|
}
|
|
9434
9432
|
this.dHeight = f, this._textStyle = p, this.drawRadioAndCheckBox();
|
|
9435
9433
|
}
|
|
@@ -9470,30 +9468,30 @@ class DrawRadioAndCheckBox extends DrawCombineNode {
|
|
|
9470
9468
|
this.clear(), this.boxAlign ? (this.drawBox(), !this.node.isTransToText && this.text.length > 0 && this.drawText(), this.node.isEditText && this.drawAppend()) : (this.text.length > 0 && this.drawText(), this.drawBox());
|
|
9471
9469
|
}
|
|
9472
9470
|
drawBox() {
|
|
9473
|
-
let r
|
|
9474
|
-
this.textStyle.size <= 12
|
|
9475
|
-
"
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9471
|
+
let r;
|
|
9472
|
+
this.textStyle.size <= 12 || this.textStyle.size <= 16 || this.textStyle.size <= 22, this.controlStyle === "CheckBox" ? this.isSelected ? r = new createjs$1.Text(
|
|
9473
|
+
// "\u00FE",
|
|
9474
|
+
// fontSize.toString() + "px wingdings",
|
|
9475
|
+
"☑",
|
|
9476
|
+
this.textStyle.getStyleKey(),
|
|
9479
9477
|
this.textStyle.color
|
|
9480
9478
|
) : r = new createjs$1.Text(
|
|
9481
|
-
"
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9479
|
+
// "\u00A8",
|
|
9480
|
+
// fontSize.toString() + "px wingdings",
|
|
9481
|
+
"☐",
|
|
9482
|
+
this.textStyle.getStyleKey(),
|
|
9485
9483
|
this.textStyle.color
|
|
9486
9484
|
) : this.isSelected ? r = new createjs$1.Text(
|
|
9487
|
-
"
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9485
|
+
// "\u00A4",
|
|
9486
|
+
// fontSize.toString() + "px wingdings",
|
|
9487
|
+
"◉",
|
|
9488
|
+
this.textStyle.getStyleKey(),
|
|
9491
9489
|
this.textStyle.color
|
|
9492
9490
|
) : r = new createjs$1.Text(
|
|
9493
|
-
"
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9491
|
+
// "\u00A1",
|
|
9492
|
+
// fontSize.toString() + "px wingdings",
|
|
9493
|
+
"○",
|
|
9494
|
+
this.textStyle.getStyleKey(),
|
|
9497
9495
|
this.textStyle.color
|
|
9498
9496
|
), r.textBaseline = "alphabetic", r.textAlign = "left", r.name = "box", this.boxAlign ? r.x = 0 : r.x = this._dText.getMeasuredWidth(), r.getBounds().clone() && (r.y = this.y), r.setBounds(0, 0, r.getMeasuredWidth(), r.getMeasuredHeight() - 10), this.addChild(r);
|
|
9499
9497
|
}
|
|
@@ -11546,24 +11544,24 @@ class DrawPageTable extends DrawRect {
|
|
|
11546
11544
|
k,
|
|
11547
11545
|
X
|
|
11548
11546
|
), T.drawCell.drawPageCells.push(B), B.y = U, M > 0 && (B.x = Y), this.addChild(B);
|
|
11549
|
-
const
|
|
11547
|
+
const z = B.update(
|
|
11550
11548
|
H,
|
|
11551
11549
|
T.drawCell.drawLines,
|
|
11552
11550
|
k,
|
|
11553
11551
|
B.valignTop,
|
|
11554
11552
|
X
|
|
11555
11553
|
);
|
|
11556
|
-
B.y = U, _ = _ &&
|
|
11554
|
+
B.y = U, _ = _ && z;
|
|
11557
11555
|
} else if (B = T.drawCell.drawPageCells[L + 1], B.parent !== this && (T.drawCell.needUpdate = !0, B.parent && B.parent.removeChild(B), B.drawPageTable = this, this.addChild(B)), B.y = U, B.x = Y, T.drawCell.needUpdate || k !== B.startDline || B.dHeight > s || B.dHeight + n.defaultLineHeight < s && L + 1 < T.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[C].rowProperty.repeatAsTitleAtPageTop) {
|
|
11558
11556
|
T.drawCell.needUpdate || (T.drawCell.needUpdate = !0), C === I ? (B.maxHeight = s, B.dHeight = Math.min(m, s)) : B.maxHeight = u - U, g = !0;
|
|
11559
|
-
const
|
|
11557
|
+
const z = B.update(
|
|
11560
11558
|
H,
|
|
11561
11559
|
T.drawCell.drawLines,
|
|
11562
11560
|
k,
|
|
11563
11561
|
B.valignTop,
|
|
11564
11562
|
X
|
|
11565
11563
|
);
|
|
11566
|
-
_ = _ &&
|
|
11564
|
+
_ = _ && z;
|
|
11567
11565
|
} else T.drawCell.drawPageCells.length > 1 && L + 1 < T.drawCell.drawPageCells.length - 1 && !this._table.rowInfos[C].rowProperty.repeatAsTitleAtPageTop && (_ = !1);
|
|
11568
11566
|
}
|
|
11569
11567
|
}
|
|
@@ -15272,7 +15270,7 @@ class DrawSignNode extends DrawCombineNode {
|
|
|
15272
15270
|
}
|
|
15273
15271
|
}
|
|
15274
15272
|
}
|
|
15275
|
-
const version = "3.3.3-beta.
|
|
15273
|
+
const version = "3.3.3-beta.9";
|
|
15276
15274
|
var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
|
|
15277
15275
|
class SignNode extends BaseNode {
|
|
15278
15276
|
constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
|
|
@@ -15552,7 +15550,9 @@ class SignNode extends BaseNode {
|
|
|
15552
15550
|
return o.addChild(u), o.drawItems.push(u), o.fitLines(), o.updateLineStyle(), o.paragraphNode.getLastDrawline();
|
|
15553
15551
|
}
|
|
15554
15552
|
node2Json(t, r, o, n) {
|
|
15555
|
-
const s =
|
|
15553
|
+
const s = n ? new Object() : this.customProperty;
|
|
15554
|
+
s.elementDataId = this.customProperty.elementDataId || "";
|
|
15555
|
+
const l = {
|
|
15556
15556
|
nodeType: NodeType$1[this.nodeType],
|
|
15557
15557
|
number: n ? 0 : this.number,
|
|
15558
15558
|
type: n ? 0 : this.type,
|
|
@@ -15566,7 +15566,7 @@ class SignNode extends BaseNode {
|
|
|
15566
15566
|
imgSrc: n ? "" : this.imgSrc,
|
|
15567
15567
|
imgWidth: n ? 0 : this.imgWidth,
|
|
15568
15568
|
imgHeight: n ? 0 : this.imgHeight,
|
|
15569
|
-
customProperty:
|
|
15569
|
+
customProperty: s,
|
|
15570
15570
|
isTemplate: this.isTemplate,
|
|
15571
15571
|
isTemp: this.isTemp,
|
|
15572
15572
|
styleIndex: this.styleIndex,
|
|
@@ -15580,8 +15580,8 @@ class SignNode extends BaseNode {
|
|
|
15580
15580
|
otherProperties: this.otherProperties,
|
|
15581
15581
|
innerIdentifier: this.innerIdentifier
|
|
15582
15582
|
};
|
|
15583
|
-
return
|
|
15584
|
-
SignNode:
|
|
15583
|
+
return l.imgSrc.substring(0, 4) == "http" && (l.imgSrc = l.imgSrc.replace(`?_=${version}`, "")), this.associatedElement && (l.associatedElement = this.associatedElement), r ? l : {
|
|
15584
|
+
SignNode: l
|
|
15585
15585
|
};
|
|
15586
15586
|
}
|
|
15587
15587
|
static json2Node(t, r, o, n, s, l) {
|
|
@@ -15654,7 +15654,7 @@ function requireQrcode() {
|
|
|
15654
15654
|
return hasRequiredQrcode || (hasRequiredQrcode = 1, function(a, t) {
|
|
15655
15655
|
var r = function() {
|
|
15656
15656
|
var o = function(T, I) {
|
|
15657
|
-
var M = 236, k = 17, L = T, H = s[I], B = null, Y = 0, j = null, U = [], X = {},
|
|
15657
|
+
var M = 236, k = 17, L = T, H = s[I], B = null, Y = 0, j = null, U = [], X = {}, z = function(ve, _e) {
|
|
15658
15658
|
Y = L * 4 + 17, B = function(pe) {
|
|
15659
15659
|
for (var Pe = new Array(pe), De = 0; De < pe; De += 1) {
|
|
15660
15660
|
Pe[De] = new Array(pe);
|
|
@@ -15670,7 +15670,7 @@ function requireQrcode() {
|
|
|
15670
15670
|
_e + Pe <= -1 || Y <= _e + Pe || (0 <= pe && pe <= 6 && (Pe == 0 || Pe == 6) || 0 <= Pe && Pe <= 6 && (pe == 0 || pe == 6) || 2 <= pe && pe <= 4 && 2 <= Pe && Pe <= 4 ? B[ve + pe][_e + Pe] = !0 : B[ve + pe][_e + Pe] = !1);
|
|
15671
15671
|
}, J = function() {
|
|
15672
15672
|
for (var ve = 0, _e = 0, pe = 0; pe < 8; pe += 1) {
|
|
15673
|
-
|
|
15673
|
+
z(!0, pe);
|
|
15674
15674
|
var Pe = c.getLostPoint(X);
|
|
15675
15675
|
(pe == 0 || ve > Pe) && (ve = Pe, _e = pe);
|
|
15676
15676
|
}
|
|
@@ -15801,7 +15801,7 @@ function requireQrcode() {
|
|
|
15801
15801
|
}
|
|
15802
15802
|
L = ve;
|
|
15803
15803
|
}
|
|
15804
|
-
|
|
15804
|
+
z(!1, J());
|
|
15805
15805
|
}, X.createTableTag = function(ve, _e) {
|
|
15806
15806
|
ve = ve || 2, _e = typeof _e > "u" ? ve * 4 : _e;
|
|
15807
15807
|
var pe = "";
|
|
@@ -15917,7 +15917,7 @@ function requireQrcode() {
|
|
|
15917
15917
|
}, B = 0, Y = {}; ; ) {
|
|
15918
15918
|
var j = L.read();
|
|
15919
15919
|
if (j == -1) break;
|
|
15920
|
-
var U = H(), X = H(),
|
|
15920
|
+
var U = H(), X = H(), z = H(), G = String.fromCharCode(j << 8 | U), J = X << 8 | z;
|
|
15921
15921
|
Y[G] = J, B += 1;
|
|
15922
15922
|
}
|
|
15923
15923
|
if (B != I)
|
|
@@ -16099,11 +16099,11 @@ function requireQrcode() {
|
|
|
16099
16099
|
}, L.getLostPoint = function(B) {
|
|
16100
16100
|
for (var Y = B.getModuleCount(), j = 0, U = 0; U < Y; U += 1)
|
|
16101
16101
|
for (var X = 0; X < Y; X += 1) {
|
|
16102
|
-
for (var
|
|
16102
|
+
for (var z = 0, G = B.isDark(U, X), J = -1; J <= 1; J += 1)
|
|
16103
16103
|
if (!(U + J < 0 || Y <= U + J))
|
|
16104
16104
|
for (var ae = -1; ae <= 1; ae += 1)
|
|
16105
|
-
X + ae < 0 || Y <= X + ae || J == 0 && ae == 0 || G == B.isDark(U + J, X + ae) && (
|
|
16106
|
-
|
|
16105
|
+
X + ae < 0 || Y <= X + ae || J == 0 && ae == 0 || G == B.isDark(U + J, X + ae) && (z += 1);
|
|
16106
|
+
z > 5 && (j += 3 + z - 5);
|
|
16107
16107
|
}
|
|
16108
16108
|
for (var U = 0; U < Y - 1; U += 1)
|
|
16109
16109
|
for (var X = 0; X < Y - 1; X += 1) {
|
|
@@ -16399,8 +16399,8 @@ function requireQrcode() {
|
|
|
16399
16399
|
if (typeof B > "u")
|
|
16400
16400
|
throw "bad rs block @ typeNumber:" + L + "/errorCorrectionLevel:" + H;
|
|
16401
16401
|
for (var Y = B.length / 3, j = [], U = 0; U < Y; U += 1)
|
|
16402
|
-
for (var X = B[U * 3 + 0],
|
|
16403
|
-
j.push(I(
|
|
16402
|
+
for (var X = B[U * 3 + 0], z = B[U * 3 + 1], G = B[U * 3 + 2], J = 0; J < X; J += 1)
|
|
16403
|
+
j.push(I(z, G));
|
|
16404
16404
|
return j;
|
|
16405
16405
|
}, M;
|
|
16406
16406
|
}(), p = function() {
|
|
@@ -16606,31 +16606,31 @@ function requireQrcode() {
|
|
|
16606
16606
|
return H;
|
|
16607
16607
|
}, D = function(T, I) {
|
|
16608
16608
|
var M = T, k = I, L = new Array(T * I), H = {};
|
|
16609
|
-
H.setPixel = function(U, X,
|
|
16610
|
-
L[X * M + U] =
|
|
16609
|
+
H.setPixel = function(U, X, z) {
|
|
16610
|
+
L[X * M + U] = z;
|
|
16611
16611
|
}, H.write = function(U) {
|
|
16612
16612
|
U.writeString("GIF87a"), U.writeShort(M), U.writeShort(k), U.writeByte(128), U.writeByte(0), U.writeByte(0), U.writeByte(0), U.writeByte(0), U.writeByte(0), U.writeByte(255), U.writeByte(255), U.writeByte(255), U.writeString(","), U.writeShort(0), U.writeShort(0), U.writeShort(M), U.writeShort(k), U.writeByte(0);
|
|
16613
|
-
var X = 2,
|
|
16613
|
+
var X = 2, z = Y(X);
|
|
16614
16614
|
U.writeByte(X);
|
|
16615
|
-
for (var G = 0;
|
|
16616
|
-
U.writeByte(255), U.writeBytes(
|
|
16617
|
-
U.writeByte(
|
|
16615
|
+
for (var G = 0; z.length - G > 255; )
|
|
16616
|
+
U.writeByte(255), U.writeBytes(z, G, 255), G += 255;
|
|
16617
|
+
U.writeByte(z.length - G), U.writeBytes(z, G, z.length - G), U.writeByte(0), U.writeString(";");
|
|
16618
16618
|
};
|
|
16619
16619
|
var B = function(U) {
|
|
16620
|
-
var X = U,
|
|
16620
|
+
var X = U, z = 0, G = 0, J = {};
|
|
16621
16621
|
return J.write = function(ae, Ce) {
|
|
16622
16622
|
if (ae >>> Ce)
|
|
16623
16623
|
throw "length over";
|
|
16624
|
-
for (;
|
|
16625
|
-
X.writeByte(255 & (ae <<
|
|
16626
|
-
G = ae <<
|
|
16624
|
+
for (; z + Ce >= 8; )
|
|
16625
|
+
X.writeByte(255 & (ae << z | G)), Ce -= 8 - z, ae >>>= 8 - z, G = 0, z = 0;
|
|
16626
|
+
G = ae << z | G, z = z + Ce;
|
|
16627
16627
|
}, J.flush = function() {
|
|
16628
|
-
|
|
16628
|
+
z > 0 && X.writeByte(G);
|
|
16629
16629
|
}, J;
|
|
16630
16630
|
}, Y = function(U) {
|
|
16631
|
-
for (var X = 1 << U,
|
|
16631
|
+
for (var X = 1 << U, z = (1 << U) + 1, G = U + 1, J = j(), ae = 0; ae < X; ae += 1)
|
|
16632
16632
|
J.add(String.fromCharCode(ae));
|
|
16633
|
-
J.add(String.fromCharCode(X)), J.add(String.fromCharCode(
|
|
16633
|
+
J.add(String.fromCharCode(X)), J.add(String.fromCharCode(z));
|
|
16634
16634
|
var Ce = v(), oe = B(Ce);
|
|
16635
16635
|
oe.write(X, G);
|
|
16636
16636
|
var me = 0, ue = String.fromCharCode(L[me]);
|
|
@@ -16638,20 +16638,20 @@ function requireQrcode() {
|
|
|
16638
16638
|
var Q = String.fromCharCode(L[me]);
|
|
16639
16639
|
me += 1, J.contains(ue + Q) ? ue = ue + Q : (oe.write(J.indexOf(ue), G), J.size() < 4095 && (J.size() == 1 << G && (G += 1), J.add(ue + Q)), ue = Q);
|
|
16640
16640
|
}
|
|
16641
|
-
return oe.write(J.indexOf(ue), G), oe.write(
|
|
16641
|
+
return oe.write(J.indexOf(ue), G), oe.write(z, G), oe.flush(), Ce.toByteArray();
|
|
16642
16642
|
}, j = function() {
|
|
16643
|
-
var U = {}, X = 0,
|
|
16644
|
-
return
|
|
16645
|
-
if (
|
|
16643
|
+
var U = {}, X = 0, z = {};
|
|
16644
|
+
return z.add = function(G) {
|
|
16645
|
+
if (z.contains(G))
|
|
16646
16646
|
throw "dup key:" + G;
|
|
16647
16647
|
U[G] = X, X += 1;
|
|
16648
|
-
},
|
|
16648
|
+
}, z.size = function() {
|
|
16649
16649
|
return X;
|
|
16650
|
-
},
|
|
16650
|
+
}, z.indexOf = function(G) {
|
|
16651
16651
|
return U[G];
|
|
16652
|
-
},
|
|
16652
|
+
}, z.contains = function(G) {
|
|
16653
16653
|
return typeof U[G] < "u";
|
|
16654
|
-
},
|
|
16654
|
+
}, z;
|
|
16655
16655
|
};
|
|
16656
16656
|
return H;
|
|
16657
16657
|
}, E = function(T, I, M) {
|
|
@@ -16783,7 +16783,7 @@ function drawText(a, t) {
|
|
|
16783
16783
|
for (var ne = 0; ne < 4; ne += 1)
|
|
16784
16784
|
B[Q + ne] = D[ne];
|
|
16785
16785
|
});
|
|
16786
|
-
},
|
|
16786
|
+
}, z = 0; z < m; z += 1)
|
|
16787
16787
|
X();
|
|
16788
16788
|
_.putImageData(H, 0, 0);
|
|
16789
16789
|
}()), C;
|
|
@@ -16928,8 +16928,8 @@ var DEFAULTS = {
|
|
|
16928
16928
|
}, this.cache), this.options.effect), f) {
|
|
16929
16929
|
var L = _extends$2({}, f);
|
|
16930
16930
|
if (!f.w && !f.h && !f.cols && !f.rows) {
|
|
16931
|
-
var H = f.image, B = H.width, Y = H.height, j = B / Y, U = Math.min((g - 18) / g, 0.38), X = Math.min(Y, k * U, k * U / j),
|
|
16932
|
-
L.w =
|
|
16931
|
+
var H = f.image, B = H.width, Y = H.height, j = B / Y, U = Math.min((g - 18) / g, 0.38), X = Math.min(Y, k * U, k * U / j), z = X * j, G = (k - z) / 2, J = (k - X) / 2;
|
|
16932
|
+
L.w = z, L.h = X, L.x = G, L.y = J;
|
|
16933
16933
|
}
|
|
16934
16934
|
y(D, L, {
|
|
16935
16935
|
clear: !1
|
|
@@ -18504,27 +18504,27 @@ class TableNode extends RectNode {
|
|
|
18504
18504
|
let s = this.range();
|
|
18505
18505
|
t && (s = this.mixed(t));
|
|
18506
18506
|
const l = (X) => {
|
|
18507
|
-
let
|
|
18507
|
+
let z = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(X).node;
|
|
18508
18508
|
for (; ; ) {
|
|
18509
|
-
if (!
|
|
18510
|
-
if (
|
|
18511
|
-
if (
|
|
18512
|
-
return
|
|
18513
|
-
|
|
18509
|
+
if (!z) throw Exception.NodeNotFound();
|
|
18510
|
+
if (z instanceof CellNode) {
|
|
18511
|
+
if (z.table == this)
|
|
18512
|
+
return z;
|
|
18513
|
+
z = z.parentNode;
|
|
18514
18514
|
continue;
|
|
18515
18515
|
} else {
|
|
18516
|
-
|
|
18516
|
+
z = z.parentNode;
|
|
18517
18517
|
continue;
|
|
18518
18518
|
}
|
|
18519
18519
|
}
|
|
18520
18520
|
}, c = l(s.from), d = l(s.to), u = { col: 0, row: 0 }, f = { col: 0, row: 0 };
|
|
18521
18521
|
if (c && c instanceof CellNode) {
|
|
18522
|
-
const [X,
|
|
18523
|
-
u.col =
|
|
18522
|
+
const [X, z] = c.table.getCellInfos(c);
|
|
18523
|
+
u.col = z, u.row = X;
|
|
18524
18524
|
}
|
|
18525
18525
|
if (d && d instanceof CellNode) {
|
|
18526
|
-
const [X,
|
|
18527
|
-
f.col =
|
|
18526
|
+
const [X, z] = d.table.getCellInfos(d);
|
|
18527
|
+
f.col = z, f.row = X;
|
|
18528
18528
|
}
|
|
18529
18529
|
const p = {
|
|
18530
18530
|
customProperties: "",
|
|
@@ -18544,27 +18544,27 @@ class TableNode extends RectNode {
|
|
|
18544
18544
|
let y = this.rowInfos.length - 1, w = this.colInfos.length - 1;
|
|
18545
18545
|
r && (y = f.row, w = f.col, d.colSpan > 1 && (w = f.col + d.colSpan - 1));
|
|
18546
18546
|
for (let X = u.row; X <= y; X++) {
|
|
18547
|
-
const
|
|
18548
|
-
customProperties: { customProperty: Array(
|
|
18547
|
+
const z = this.rowInfos[X], J = {
|
|
18548
|
+
customProperties: { customProperty: Array(z.rowProperty.customProperties) },
|
|
18549
18549
|
//dataSource: rowInfo.rowProperty.dataSource,
|
|
18550
|
-
forcedPageBreak:
|
|
18550
|
+
forcedPageBreak: z.rowProperty.forcedPageBreak,
|
|
18551
18551
|
//isAutoRaiseHeight: rowInfo.rowProperty.isAutoRaiseHeight,
|
|
18552
|
-
isSpecifyHeight:
|
|
18553
|
-
printCellBg:
|
|
18554
|
-
printCellBorders:
|
|
18555
|
-
repeatAsTitleAtPageTop:
|
|
18556
|
-
rowHeight:
|
|
18557
|
-
sameLineCanAcrossPages:
|
|
18558
|
-
tabKeyInsNewLine:
|
|
18559
|
-
isLockRowHeight:
|
|
18560
|
-
newLineWithCellContent:
|
|
18561
|
-
withFormula:
|
|
18562
|
-
isSignLock:
|
|
18552
|
+
isSpecifyHeight: z.rowProperty.isSpecifyHeight,
|
|
18553
|
+
printCellBg: z.rowProperty.printCellBg,
|
|
18554
|
+
printCellBorders: z.rowProperty.printCellBorders,
|
|
18555
|
+
repeatAsTitleAtPageTop: z.rowProperty.repeatAsTitleAtPageTop,
|
|
18556
|
+
rowHeight: z.rowProperty.rowHeight,
|
|
18557
|
+
sameLineCanAcrossPages: z.rowProperty.sameLineCanAcrossPages,
|
|
18558
|
+
tabKeyInsNewLine: z.rowProperty.tabKeyInsNewLine,
|
|
18559
|
+
isLockRowHeight: z.rowProperty.isLockRowHeight,
|
|
18560
|
+
newLineWithCellContent: z.rowProperty.newLineWithCellContent,
|
|
18561
|
+
withFormula: z.rowProperty.withFormula,
|
|
18562
|
+
isSignLock: z.rowProperty.isSignLock
|
|
18563
18563
|
}, ae = JSON.parse(JSON.stringify(J)), Ce = Object.keys(p);
|
|
18564
18564
|
for (let me = 0; me < Ce.length; me++)
|
|
18565
|
-
Ce[me] === "customProperties" ?
|
|
18565
|
+
Ce[me] === "customProperties" ? z.rowProperty.customProperties.length === 0 && delete ae.customProperties : ae[Ce[me]] === m[Ce[me]] && delete ae[Ce[me]];
|
|
18566
18566
|
const oe = {
|
|
18567
|
-
rowHeight:
|
|
18567
|
+
rowHeight: z.rowHeight
|
|
18568
18568
|
//heightFixed: rowInfo.heightFixed,
|
|
18569
18569
|
//rowBaseDTop: rowInfo.rowBaseDTop,
|
|
18570
18570
|
//rowProperty: rowPropertyJson
|
|
@@ -18586,31 +18586,31 @@ class TableNode extends RectNode {
|
|
|
18586
18586
|
addWithDefaultValue: !1
|
|
18587
18587
|
}, C = JSON.parse(JSON.stringify(v)), _ = new Array();
|
|
18588
18588
|
for (let X = u.col; X <= w; X++) {
|
|
18589
|
-
const
|
|
18590
|
-
editorProperty: EditorProperty[
|
|
18591
|
-
align: VAlign[
|
|
18592
|
-
width:
|
|
18593
|
-
specifyWidth:
|
|
18594
|
-
downListProperty:
|
|
18595
|
-
dateTimeProperty:
|
|
18596
|
-
numberProperty:
|
|
18597
|
-
signProperty:
|
|
18589
|
+
const z = this.colInfos[X], G = { customProperty: Array(z.colProperty.customProperties) }, J = {
|
|
18590
|
+
editorProperty: EditorProperty[z.colProperty.editorProperty],
|
|
18591
|
+
align: VAlign[z.colProperty.align],
|
|
18592
|
+
width: z.colProperty.width ? z.colProperty.width : 0,
|
|
18593
|
+
specifyWidth: z.colProperty.isSpecifyWidth,
|
|
18594
|
+
downListProperty: z.colProperty.downListProperty,
|
|
18595
|
+
dateTimeProperty: z.colProperty.dateTimeProperty,
|
|
18596
|
+
numberProperty: z.colProperty.numberProperty,
|
|
18597
|
+
signProperty: z.colProperty.signProperty,
|
|
18598
18598
|
//customProperties: colInfo.colProperty.customProperties
|
|
18599
|
-
isSignLock:
|
|
18600
|
-
isLock:
|
|
18601
|
-
addWithDefaultValue:
|
|
18599
|
+
isSignLock: z.colProperty.isSignLock,
|
|
18600
|
+
isLock: z.colProperty.isLock,
|
|
18601
|
+
addWithDefaultValue: z.colProperty.addWithDefaultValue,
|
|
18602
18602
|
customProperties: G
|
|
18603
18603
|
}, ae = JSON.parse(JSON.stringify(J)), Ce = Object.keys(v);
|
|
18604
|
-
(
|
|
18604
|
+
(z.colProperty.customProperties.length === 0 || z.colProperty.customProperties[0].length === 0) && delete ae.customProperties;
|
|
18605
18605
|
for (let me = 0; me < Ce.length; me++)
|
|
18606
18606
|
ae[Ce[me]] === C[Ce[me]] && delete ae[Ce[me]];
|
|
18607
18607
|
const oe = {
|
|
18608
|
-
colWidth:
|
|
18608
|
+
colWidth: z.colWidth
|
|
18609
18609
|
//widthFixed: colInfo.widthFixed,
|
|
18610
18610
|
//dLeft: colInfo.dLeft,
|
|
18611
18611
|
//colProperty: colPropertyJson
|
|
18612
18612
|
};
|
|
18613
|
-
|
|
18613
|
+
z.widthFixed && (oe.widthFixed = z.widthFixed), z.dLeft > 0 && (oe.dLeft = z.dLeft), Object.keys(ae).length > 0 && (oe.colProperty = ae), _.push(oe);
|
|
18614
18614
|
}
|
|
18615
18615
|
const D = {
|
|
18616
18616
|
//title: "",
|
|
@@ -18638,7 +18638,7 @@ class TableNode extends RectNode {
|
|
|
18638
18638
|
formula: ""
|
|
18639
18639
|
}, E = JSON.parse(JSON.stringify(D)), T = new Array(), I = new Array();
|
|
18640
18640
|
for (let X = u.row; X <= y; X++) {
|
|
18641
|
-
const
|
|
18641
|
+
const z = this.rows[X];
|
|
18642
18642
|
let G = "";
|
|
18643
18643
|
r ? G = "item" : G = "CellNode";
|
|
18644
18644
|
const J = {
|
|
@@ -18648,7 +18648,7 @@ class TableNode extends RectNode {
|
|
|
18648
18648
|
}, ae = { base: {}, childNodes: Array() };
|
|
18649
18649
|
T.push(J), I.push(ae);
|
|
18650
18650
|
for (let Ce = u.col; Ce <= w; Ce++) {
|
|
18651
|
-
const oe =
|
|
18651
|
+
const oe = z[Ce];
|
|
18652
18652
|
if (oe) {
|
|
18653
18653
|
const me = oe.node2Json(s, r, o, n, E);
|
|
18654
18654
|
ae.base = JSON.parse(JSON.stringify(me)), me.rowNo = X - u.row, me.colNo = Ce - u.col, r ? J.childNodes.item.push(me) : J.childNodes.CellNode.push(me), J.rowNo = X;
|
|
@@ -18657,9 +18657,9 @@ class TableNode extends RectNode {
|
|
|
18657
18657
|
}
|
|
18658
18658
|
}
|
|
18659
18659
|
for (let X = 0; X < T.length; X++) {
|
|
18660
|
-
const
|
|
18661
|
-
for (let G = 0; G <
|
|
18662
|
-
|
|
18660
|
+
const z = T[X].childNodes;
|
|
18661
|
+
for (let G = 0; G < z.length; G++)
|
|
18662
|
+
z[G].rowSpan != 1 && (z[G].rowSpan = Math.min(z[G].rowSpan, z.length - z[G].rowNo)), z[G].colSpan != 1 && (z[G].colSpan = Math.min(z[G].colSpan, z.length - z[G].colNo));
|
|
18663
18663
|
}
|
|
18664
18664
|
const M = { item: g }, k = { item: _ }, L = { item: T }, H = { customProperty: Array(this.tableProperty.customProperties) }, B = M.item.length, Y = k.item.length, j = {};
|
|
18665
18665
|
this.tableProperty.canAdjustRowHeight && (j.canAdjustRowHeight = this.tableProperty.canAdjustRowHeight), this.tableProperty.canAdjustRowWidth && (j.canAdjustRowWidth = this.tableProperty.canAdjustRowWidth), this.tableProperty.canAddRow || (j.canAddRow = this.tableProperty.canAddRow), this.tableProperty.canAddCol === !1 && (j.canAddCol = this.tableProperty.canAddCol), this.tableProperty.canDeleteRow || (j.canDeleteRow = this.tableProperty.canDeleteRow), this.tableProperty.canDelTable || (j.canDelTable = this.tableProperty.canDelTable), this.tableProperty.continuePrintBorders && (j.continuePrintBorders = this.tableProperty.continuePrintBorders), this.tableProperty.isAutoChangeLine && (j.isAutoChangeLine = this.tableProperty.isAutoChangeLine), this.tableProperty.autoLineHeight.toString() !== "0.53" && (j.autoLineHeight = Number(this.tableProperty.autoLineHeight)), this.tableProperty.fixedOnePage && (j.fixedOnePage = this.tableProperty.fixedOnePage), this.tableProperty.isUsePopEdit && (j.isUsePopEdit = this.tableProperty.isUsePopEdit), this.tableProperty.isSignLock && (j.isSignLock = this.tableProperty.isSignLock), this.tableProperty.isLock && (j.isLock = this.tableProperty.isLock), this.tableProperty.addRowByOrder && (j.addRowByOrder = this.tableProperty.addRowByOrder), this.tableProperty.customProperties.length > 0 && this.tableProperty.customProperties[0] && (j.customProperties = H), j.id = this.tableProperty.id;
|
|
@@ -27710,7 +27710,7 @@ class Print {
|
|
|
27710
27710
|
* 打印到PDF文件
|
|
27711
27711
|
*/
|
|
27712
27712
|
static async printToPDF(t, r, o, n, s, l, c, d) {
|
|
27713
|
-
var _, D, E, T, I, M, k, L, H, B, Y, j, U, X,
|
|
27713
|
+
var _, D, E, T, I, M, k, L, H, B, Y, j, U, X, z;
|
|
27714
27714
|
const u = HOEditorFactorys.instance().getFactory(t);
|
|
27715
27715
|
if (u.drawTree.drawPages.length < u.startPageNum) {
|
|
27716
27716
|
message.warn(i18nHelper("04-001-009-EMR.3.3.485", null, "病程记录已打印文件有删除、内容减少或者新起一页打印参数变更,导致已记录的打印位置错误无法使用,请用重打进行打印或者删除所有打印记录后续打")), s && s(null);
|
|
@@ -27770,7 +27770,7 @@ class Print {
|
|
|
27770
27770
|
const me = oe == null ? void 0 : oe.getSvg();
|
|
27771
27771
|
me && (f == null || f.appendChild(me)), oe = null;
|
|
27772
27772
|
}
|
|
27773
|
-
G > 0 && J.drawDomLevel && ((
|
|
27773
|
+
G > 0 && J.drawDomLevel && ((z = J.drawDomLevel.stage) == null || z.removeAllChildren(), J.drawDomLevel.clearStage());
|
|
27774
27774
|
}
|
|
27775
27775
|
if (u.printStatus.printRange !== 1 && u.printStatus.recordLastPosByPageIndex(w), u.printStatus.DrawPrintRange().PrintOver(), l || u.startPageNum !== 0 && l !== void 0) {
|
|
27776
27776
|
const G = u.printStatus.printRecord.last();
|
|
@@ -31835,9 +31835,9 @@ class DocTree {
|
|
|
31835
31835
|
if (t === "up") {
|
|
31836
31836
|
if (Y === I.startRow && Y !== 0 && j > 0) {
|
|
31837
31837
|
T = o.drawTree.drawPages[j - 1], E = o.drawPageTree.drawMainDocs[j - 1], M = L[H - 1];
|
|
31838
|
-
const
|
|
31839
|
-
k = M.getDrawPageCellByPos(_.x,
|
|
31840
|
-
const G = M.localToGlobal(_.x,
|
|
31838
|
+
const z = M.dHeight;
|
|
31839
|
+
k = M.getDrawPageCellByPos(_.x, z);
|
|
31840
|
+
const G = M.localToGlobal(_.x, z), J = o.drawTree.getStagePosition(T, k, G.x, G.y);
|
|
31841
31841
|
if (J)
|
|
31842
31842
|
return D = J.path, D;
|
|
31843
31843
|
}
|
|
@@ -31845,15 +31845,15 @@ class DocTree {
|
|
|
31845
31845
|
} else if (Y === I.endRow && Y !== I.table.rowCount - 1) {
|
|
31846
31846
|
if (j < o.drawTree.drawPages.length - 1) {
|
|
31847
31847
|
T = o.drawTree.drawPages[j + 1], E = o.drawPageTree.drawMainDocs[j + 1], M = L[H + 1], k = M.getDrawPageCellByPos(_.x, 0);
|
|
31848
|
-
const
|
|
31848
|
+
const z = M.localToGlobal(_.x, 0), G = o.drawTree.getStagePosition(T, k, z.x, z.y);
|
|
31849
31849
|
if (G)
|
|
31850
31850
|
return D = G.path, D;
|
|
31851
31851
|
}
|
|
31852
31852
|
} else if (Y === I.endRow && Y === I.table.rowCount - 1)
|
|
31853
31853
|
I === E.bottomDline ? (T = o.drawTree.drawPages[j + 1], E = o.drawPageTree.drawMainDocs[j + 1], B = -E.dHeight) : B = c.dHeight + c.paragraphNode.combineParagraph.lineSpace + 11;
|
|
31854
31854
|
else {
|
|
31855
|
-
let
|
|
31856
|
-
_.cell.cellProperty.align == 1 ?
|
|
31855
|
+
let z = 0;
|
|
31856
|
+
_.cell.cellProperty.align == 1 ? z = _.dHeight / 2 + 10 : z = _.dHeight, B = z - c.dTop + c.paragraphNode.combineParagraph.lineSpace + 11;
|
|
31857
31857
|
}
|
|
31858
31858
|
const U = c.localToGlobal(p, B), X = o.drawTree.getStagePosition(
|
|
31859
31859
|
T,
|
|
@@ -33292,11 +33292,11 @@ var script$2 = {
|
|
|
33292
33292
|
H.end += j;
|
|
33293
33293
|
}
|
|
33294
33294
|
if (r === null) {
|
|
33295
|
-
let j, U = 0, X = u - 1,
|
|
33295
|
+
let j, U = 0, X = u - 1, z = ~~(u / 2), G;
|
|
33296
33296
|
do
|
|
33297
|
-
G =
|
|
33298
|
-
while (
|
|
33299
|
-
for (
|
|
33297
|
+
G = z, j = f[z].accumulator, j < H.start ? U = z : z < u - 1 && f[z + 1].accumulator > H.start && (X = z), z = ~~((U + X) / 2);
|
|
33298
|
+
while (z !== G);
|
|
33299
|
+
for (z < 0 && (z = 0), y = z, v = f[u - 1].accumulator, w = z; w < u && f[w].accumulator < H.end; w++) ;
|
|
33300
33300
|
for (w === -1 ? w = d.length - 1 : (w++, w > u && (w = u)), C = y; C < u && Y + f[C].accumulator < H.start; C++) ;
|
|
33301
33301
|
for (_ = C; _ < u && Y + f[_].accumulator < H.end; _++) ;
|
|
33302
33302
|
} else {
|
|
@@ -34458,7 +34458,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
34458
34458
|
c(S, q) && !c(A, q) && l(S[q]) && (Z[q] = g({}, Z[q]));
|
|
34459
34459
|
return Z;
|
|
34460
34460
|
}
|
|
34461
|
-
function
|
|
34461
|
+
function z(S) {
|
|
34462
34462
|
S != null && this.set(S);
|
|
34463
34463
|
}
|
|
34464
34464
|
var G;
|
|
@@ -35222,7 +35222,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35222
35222
|
name: S,
|
|
35223
35223
|
config: A
|
|
35224
35224
|
}), null;
|
|
35225
|
-
return sr[S] = new
|
|
35225
|
+
return sr[S] = new z(X(q, A)), vi[S] && vi[S].forEach(function(ce) {
|
|
35226
35226
|
qr(ce.name, ce.config);
|
|
35227
35227
|
}), wi(S), sr[S];
|
|
35228
35228
|
} else
|
|
@@ -35231,7 +35231,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35231
35231
|
function Ci(S, A) {
|
|
35232
35232
|
if (A != null) {
|
|
35233
35233
|
var Z, q, ce = Ni;
|
|
35234
|
-
sr[S] != null && sr[S].parentLocale != null ? sr[S].set(X(sr[S]._config, A)) : (q = Ti(S), q != null && (ce = q._config), A = X(ce, A), q == null && (A.abbr = S), Z = new
|
|
35234
|
+
sr[S] != null && sr[S].parentLocale != null ? sr[S].set(X(sr[S]._config, A)) : (q = Ti(S), q != null && (ce = q._config), A = X(ce, A), q == null && (A.abbr = S), Z = new z(A), Z.parentLocale = sr[S], sr[S] = Z), wi(S);
|
|
35235
35235
|
} else
|
|
35236
35236
|
sr[S] != null && (sr[S].parentLocale != null ? (sr[S] = sr[S].parentLocale, S === wi() && wi(S)) : sr[S] != null && delete sr[S]);
|
|
35237
35237
|
return sr[S];
|
|
@@ -35290,7 +35290,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35290
35290
|
PDT: -7 * 60,
|
|
35291
35291
|
PST: -8 * 60
|
|
35292
35292
|
};
|
|
35293
|
-
function
|
|
35293
|
+
function W(S) {
|
|
35294
35294
|
var A, Z, q = S._i, ce = Zo.exec(q) || wn.exec(q), Le, $e, Ct, Mt, qt = Si.length, Lr = ro.length;
|
|
35295
35295
|
if (ce) {
|
|
35296
35296
|
for (v(S).iso = !0, A = 0, Z = qt; A < Z; A++)
|
|
@@ -35387,7 +35387,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35387
35387
|
S._d = /* @__PURE__ */ new Date(+A[1]);
|
|
35388
35388
|
return;
|
|
35389
35389
|
}
|
|
35390
|
-
if (
|
|
35390
|
+
if (W(S), S._isValid === !1)
|
|
35391
35391
|
delete S._isValid;
|
|
35392
35392
|
else
|
|
35393
35393
|
return;
|
|
@@ -35440,7 +35440,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
35440
35440
|
};
|
|
35441
35441
|
function $t(S) {
|
|
35442
35442
|
if (S._f === o.ISO_8601) {
|
|
35443
|
-
|
|
35443
|
+
W(S);
|
|
35444
35444
|
return;
|
|
35445
35445
|
}
|
|
35446
35446
|
if (S._f === o.RFC_2822) {
|
|
@@ -36333,7 +36333,7 @@ Arguments: ` + Array.prototype.slice.call(q).join("") + `
|
|
|
36333
36333
|
function Qn(S) {
|
|
36334
36334
|
return S;
|
|
36335
36335
|
}
|
|
36336
|
-
var N =
|
|
36336
|
+
var N = z.prototype;
|
|
36337
36337
|
N.calendar = ae, N.longDateFormat = Pe, N.invalidDate = Ve, N.ordinal = we, N.preparse = Qn, N.postformat = Qn, N.relativeTime = he, N.pastFuture = $, N.set = U, N.eras = fs, N.erasParse = ps, N.erasConvertYear = gs, N.erasAbbrRegex = Ui, N.erasNameRegex = ws, N.erasNarrowRegex = on, N.months = yo, N.monthsShort = ge, N.monthsParse = be, N.monthsRegex = rt, N.monthsShortRegex = it, N.week = hr, N.firstDayOfYear = Pi, N.firstDayOfWeek = kr, N.weekdays = vo, N.weekdaysMin = fn, N.weekdaysShort = mi, N.weekdaysParse = wo, N.weekdaysRegex = Rn, N.weekdaysShortRegex = jo, N.weekdaysMinRegex = gn, N.isPM = $i, N.meridiem = Hn;
|
|
36338
36338
|
function F(S, A, Z, q) {
|
|
36339
36339
|
var ce = Qr(), Le = y().set(q, A);
|
|
@@ -39477,8 +39477,8 @@ class DrawPageTree {
|
|
|
39477
39477
|
const j = c.drawPageTable, U = j.table.drawTable.drawPageTables.indexOf(j);
|
|
39478
39478
|
let X = null;
|
|
39479
39479
|
U > 0 && (X = j.table.drawTable.drawPageTables[U - 1]);
|
|
39480
|
-
let
|
|
39481
|
-
c.drawPageTable.table.drawTable.drawUpdate(Y, X, j.y,
|
|
39480
|
+
let z = j.getMainRestHeight();
|
|
39481
|
+
c.drawPageTable.table.drawTable.drawUpdate(Y, X, j.y, z);
|
|
39482
39482
|
break;
|
|
39483
39483
|
}
|
|
39484
39484
|
(C > o || C === o && !c.contains(H)) && (c.addChild(H), H.y = m), m = H.y + H.dHeight + H.paragraphNode.combineParagraph.lineSpace, c.allowAcrossPage && g.allowAcrossPage && (w = c.maxHeight - m);
|
|
@@ -40740,7 +40740,7 @@ function requireDom() {
|
|
|
40740
40740
|
U.prototype.item = function(ee) {
|
|
40741
40741
|
return X(this), this[ee] || null;
|
|
40742
40742
|
}, u(U, j);
|
|
40743
|
-
function
|
|
40743
|
+
function z() {
|
|
40744
40744
|
}
|
|
40745
40745
|
function G(ee, se) {
|
|
40746
40746
|
for (var Se = ee.length; Se--; )
|
|
@@ -40766,7 +40766,7 @@ function requireDom() {
|
|
|
40766
40766
|
} else
|
|
40767
40767
|
throw new Y(H, new Error(ee.tagName + "@" + Se));
|
|
40768
40768
|
}
|
|
40769
|
-
|
|
40769
|
+
z.prototype = {
|
|
40770
40770
|
length: 0,
|
|
40771
40771
|
item: j.prototype.item,
|
|
40772
40772
|
getNamedItem: function(ee) {
|
|
@@ -41214,7 +41214,7 @@ function requireDom() {
|
|
|
41214
41214
|
createElement: function(ee) {
|
|
41215
41215
|
var se = new Be();
|
|
41216
41216
|
se.ownerDocument = this, se.nodeName = ee, se.tagName = ee, se.localName = ee, se.childNodes = new j();
|
|
41217
|
-
var Se = se.attributes = new
|
|
41217
|
+
var Se = se.attributes = new z();
|
|
41218
41218
|
return Se._ownerElement = se, se;
|
|
41219
41219
|
},
|
|
41220
41220
|
createDocumentFragment: function() {
|
|
@@ -41247,7 +41247,7 @@ function requireDom() {
|
|
|
41247
41247
|
},
|
|
41248
41248
|
// Introduced in DOM Level 2:
|
|
41249
41249
|
createElementNS: function(ee, se) {
|
|
41250
|
-
var Se = new Be(), Ue = se.split(":"), Ge = Se.attributes = new
|
|
41250
|
+
var Se = new Be(), Ue = se.split(":"), Ge = Se.attributes = new z();
|
|
41251
41251
|
return Se.childNodes = new j(), Se.ownerDocument = this, Se.nodeName = se, Se.tagName = se, Se.namespaceURI = ee, Ue.length == 2 ? (Se.prefix = Ue[0], Se.localName = Ue[1]) : Se.localName = se, Ge._ownerElement = Se, Se;
|
|
41252
41252
|
},
|
|
41253
41253
|
// Introduced in DOM Level 2:
|
|
@@ -41559,7 +41559,7 @@ function requireDom() {
|
|
|
41559
41559
|
}
|
|
41560
41560
|
switch (se.childNodes && (Ue.childNodes = new j()), Ue.ownerDocument = ee, Ue.nodeType) {
|
|
41561
41561
|
case p:
|
|
41562
|
-
var Ut = se.attributes, Jt = Ue.attributes = new
|
|
41562
|
+
var Ut = se.attributes, Jt = Ue.attributes = new z(), nr = Ut.length;
|
|
41563
41563
|
Jt._ownerElement = Ue;
|
|
41564
41564
|
for (var Et = 0; Et < nr; Et++)
|
|
41565
41565
|
Ue.setAttributeNode(kt(ee, Ut.item(Et), !0));
|
|
@@ -43793,7 +43793,7 @@ function requireSax() {
|
|
|
43793
43793
|
var Qe = Be.slice(1, -1);
|
|
43794
43794
|
return Object.hasOwnProperty.call(B, Qe) ? B[Qe] : Qe.charAt(0) === "#" ? U(parseInt(Qe.substr(1).replace("x", "0x"))) : (j.error("entity not found:" + Be), Be);
|
|
43795
43795
|
}
|
|
43796
|
-
function
|
|
43796
|
+
function z(Be) {
|
|
43797
43797
|
if (Be > Q) {
|
|
43798
43798
|
var Qe = L.substring(Q, Be).replace(/&#?\w+;/g, X);
|
|
43799
43799
|
oe && G(Q), Y.characters(Qe, 0, Be - Q), Q = Be;
|
|
@@ -43814,7 +43814,7 @@ function requireSax() {
|
|
|
43814
43814
|
}
|
|
43815
43815
|
return;
|
|
43816
43816
|
}
|
|
43817
|
-
switch (ne > Q &&
|
|
43817
|
+
switch (ne > Q && z(ne), L.charAt(ne + 1)) {
|
|
43818
43818
|
case "/":
|
|
43819
43819
|
var we = L.indexOf(">", ne + 3), ve = L.substring(ne + 2, we).replace(/[ \t\n\r]+$/g, ""), _e = me.pop();
|
|
43820
43820
|
we < 0 ? (ve = L.substring(ne + 2).replace(/[\s<].*/, ""), j.error("end tag name: " + ve + " is not complete:" + _e.tagName), we = ne + 1 + ve.length) : ve.match(/\s</) && (ve = ve.replace(/[\s<].*/, ""), j.error("end tag name: " + ve + " maybe not complete"), we = ne + 1 + ve.length);
|
|
@@ -43853,7 +43853,7 @@ function requireSax() {
|
|
|
43853
43853
|
throw Be;
|
|
43854
43854
|
j.error("element parse error: " + Be), we = -1;
|
|
43855
43855
|
}
|
|
43856
|
-
we > Q ? Q = we :
|
|
43856
|
+
we > Q ? Q = we : z(Math.max(ne, Q) + 1);
|
|
43857
43857
|
}
|
|
43858
43858
|
}
|
|
43859
43859
|
function w(L, H) {
|
|
@@ -43871,12 +43871,12 @@ function requireSax() {
|
|
|
43871
43871
|
ue
|
|
43872
43872
|
);
|
|
43873
43873
|
}
|
|
43874
|
-
for (var
|
|
43874
|
+
for (var z, G, J = ++H, ae = n; ; ) {
|
|
43875
43875
|
var Ce = L.charAt(J);
|
|
43876
43876
|
switch (Ce) {
|
|
43877
43877
|
case "=":
|
|
43878
43878
|
if (ae === s)
|
|
43879
|
-
|
|
43879
|
+
z = L.slice(H, J), ae = c;
|
|
43880
43880
|
else if (ae === l)
|
|
43881
43881
|
ae = c;
|
|
43882
43882
|
else
|
|
@@ -43885,12 +43885,12 @@ function requireSax() {
|
|
|
43885
43885
|
case "'":
|
|
43886
43886
|
case '"':
|
|
43887
43887
|
if (ae === c || ae === s)
|
|
43888
|
-
if (ae === s && (U.warning('attribute value must after "="'),
|
|
43889
|
-
G = L.slice(H, J), X(
|
|
43888
|
+
if (ae === s && (U.warning('attribute value must after "="'), z = L.slice(H, J)), H = J + 1, J = L.indexOf(Ce, H), J > 0)
|
|
43889
|
+
G = L.slice(H, J), X(z, G, H - 1), ae = u;
|
|
43890
43890
|
else
|
|
43891
43891
|
throw new Error("attribute value no end '" + Ce + "' match");
|
|
43892
43892
|
else if (ae == d)
|
|
43893
|
-
G = L.slice(H, J), X(
|
|
43893
|
+
G = L.slice(H, J), X(z, G, H), U.warning('attribute "' + z + '" missed start quot(' + Ce + ")!!"), H = J + 1, ae = u;
|
|
43894
43894
|
else
|
|
43895
43895
|
throw new Error('attribute value must after "="');
|
|
43896
43896
|
break;
|
|
@@ -43929,7 +43929,7 @@ function requireSax() {
|
|
|
43929
43929
|
case s:
|
|
43930
43930
|
G = L.slice(H, J), G.slice(-1) === "/" && (B.closed = !0, G = G.slice(0, -1));
|
|
43931
43931
|
case l:
|
|
43932
|
-
ae === l && (G =
|
|
43932
|
+
ae === l && (G = z), ae == d ? (U.warning('attribute "' + G + '" missed quot(")!'), X(z, G, H)) : ((!a.isHTML(Y[""]) || !G.match(/^(?:disabled|checked|selected)$/i)) && U.warning('attribute "' + G + '" missed value!! "' + G + '" instead!!'), X(G, G, H));
|
|
43933
43933
|
break;
|
|
43934
43934
|
case c:
|
|
43935
43935
|
throw new Error("attribute value missed!!");
|
|
@@ -43945,11 +43945,11 @@ function requireSax() {
|
|
|
43945
43945
|
B.setTagName(L.slice(H, J)), ae = f;
|
|
43946
43946
|
break;
|
|
43947
43947
|
case s:
|
|
43948
|
-
|
|
43948
|
+
z = L.slice(H, J), ae = l;
|
|
43949
43949
|
break;
|
|
43950
43950
|
case d:
|
|
43951
43951
|
var G = L.slice(H, J);
|
|
43952
|
-
U.warning('attribute "' + G + '" missed quot(")!!'), X(
|
|
43952
|
+
U.warning('attribute "' + G + '" missed quot(")!!'), X(z, G, H);
|
|
43953
43953
|
case u:
|
|
43954
43954
|
ae = f;
|
|
43955
43955
|
break;
|
|
@@ -43960,10 +43960,10 @@ function requireSax() {
|
|
|
43960
43960
|
//case S_ATTR:void();break;
|
|
43961
43961
|
//case S_ATTR_NOQUOT_VALUE:void();break;
|
|
43962
43962
|
case l:
|
|
43963
|
-
B.tagName, (!a.isHTML(Y[""]) || !
|
|
43963
|
+
B.tagName, (!a.isHTML(Y[""]) || !z.match(/^(?:disabled|checked|selected)$/i)) && U.warning('attribute "' + z + '" missed value!! "' + z + '" instead2!!'), X(z, z, H), H = J, ae = s;
|
|
43964
43964
|
break;
|
|
43965
43965
|
case u:
|
|
43966
|
-
U.warning('attribute space is required"' +
|
|
43966
|
+
U.warning('attribute space is required"' + z + '"!!');
|
|
43967
43967
|
case f:
|
|
43968
43968
|
ae = s, H = J;
|
|
43969
43969
|
break;
|
|
@@ -43979,12 +43979,12 @@ function requireSax() {
|
|
|
43979
43979
|
}
|
|
43980
43980
|
function C(L, H, B) {
|
|
43981
43981
|
for (var Y = L.tagName, j = null, Ce = L.length; Ce--; ) {
|
|
43982
|
-
var U = L[Ce], X = U.qName,
|
|
43982
|
+
var U = L[Ce], X = U.qName, z = U.value, oe = X.indexOf(":");
|
|
43983
43983
|
if (oe > 0)
|
|
43984
43984
|
var G = U.prefix = X.slice(0, oe), J = X.slice(oe + 1), ae = G === "xmlns" && J;
|
|
43985
43985
|
else
|
|
43986
43986
|
J = X, G = null, ae = X === "xmlns" && "";
|
|
43987
|
-
U.localName = J, ae !== !1 && (j == null && (j = {}, E(B, B = {})), B[ae] = j[ae] =
|
|
43987
|
+
U.localName = J, ae !== !1 && (j == null && (j = {}, E(B, B = {})), B[ae] = j[ae] = z, U.uri = a.XMLNS, H.startPrefixMapping(ae, z));
|
|
43988
43988
|
}
|
|
43989
43989
|
for (var Ce = L.length; Ce--; ) {
|
|
43990
43990
|
U = L[Ce];
|
|
@@ -44031,11 +44031,11 @@ function requireSax() {
|
|
|
44031
44031
|
var U = L.indexOf("]]>", H + 9);
|
|
44032
44032
|
return B.startCDATA(), B.characters(L, H + 9, U - H - 9), B.endCDATA(), U + 3;
|
|
44033
44033
|
}
|
|
44034
|
-
var X = k(L, H),
|
|
44035
|
-
if (
|
|
44034
|
+
var X = k(L, H), z = X.length;
|
|
44035
|
+
if (z > 1 && /!doctype/i.test(X[0][0])) {
|
|
44036
44036
|
var G = X[1][0], J = !1, ae = !1;
|
|
44037
|
-
|
|
44038
|
-
var Ce = X[
|
|
44037
|
+
z > 3 && (/^public$/i.test(X[2][0]) ? (J = X[3][0], ae = z > 4 && X[4][0]) : /^system$/i.test(X[2][0]) && (ae = X[3][0]));
|
|
44038
|
+
var Ce = X[z - 1];
|
|
44039
44039
|
return B.startDTD(G, J, ae), B.endDTD(), Ce.index + Ce[0].length;
|
|
44040
44040
|
}
|
|
44041
44041
|
}
|
|
@@ -44258,14 +44258,14 @@ function requireX2js() {
|
|
|
44258
44258
|
}
|
|
44259
44259
|
function l() {
|
|
44260
44260
|
function U(X) {
|
|
44261
|
-
var
|
|
44262
|
-
return
|
|
44261
|
+
var z = String(X);
|
|
44262
|
+
return z.length === 1 && (z = "0" + z), z;
|
|
44263
44263
|
}
|
|
44264
44264
|
typeof String.prototype.trim != "function" && (String.prototype.trim = function() {
|
|
44265
44265
|
return this.replace(/^\s+|^\n+|(\s|\n)+$/g, "");
|
|
44266
44266
|
}), typeof Date.prototype.toISOString != "function" && (Date.prototype.toISOString = function() {
|
|
44267
|
-
var
|
|
44268
|
-
return this.getUTCFullYear() + "-" + U(this.getUTCMonth() + 1) + "-" + U(this.getUTCDate()) + "T" + U(this.getUTCHours()) + ":" + U(this.getUTCMinutes()) + ":" + U(this.getUTCSeconds()) + "." + String((this.getUTCMilliseconds() /
|
|
44267
|
+
var z = 1e3;
|
|
44268
|
+
return this.getUTCFullYear() + "-" + U(this.getUTCMonth() + 1) + "-" + U(this.getUTCDate()) + "T" + U(this.getUTCHours()) + ":" + U(this.getUTCMinutes()) + ":" + U(this.getUTCSeconds()) + "." + String((this.getUTCMilliseconds() / z).toFixed(3)).slice(2, 5) + "Z";
|
|
44269
44269
|
});
|
|
44270
44270
|
}
|
|
44271
44271
|
s(), l();
|
|
@@ -44289,7 +44289,7 @@ function requireX2js() {
|
|
|
44289
44289
|
function p(U) {
|
|
44290
44290
|
return U.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'").replace(/&/g, "&");
|
|
44291
44291
|
}
|
|
44292
|
-
function m(U, X,
|
|
44292
|
+
function m(U, X, z) {
|
|
44293
44293
|
switch (o.arrayAccessForm) {
|
|
44294
44294
|
case "property":
|
|
44295
44295
|
U[X] instanceof Array ? U[X + "_asArray"] = U[X] : U[X + "_asArray"] = [U[X]];
|
|
@@ -44299,16 +44299,16 @@ function requireX2js() {
|
|
|
44299
44299
|
for (var G = !1, J = 0; J < o.arrayAccessFormPaths.length; J++) {
|
|
44300
44300
|
var ae = o.arrayAccessFormPaths[J];
|
|
44301
44301
|
if (typeof ae == "string") {
|
|
44302
|
-
if (ae ===
|
|
44302
|
+
if (ae === z) {
|
|
44303
44303
|
G = !0;
|
|
44304
44304
|
break;
|
|
44305
44305
|
}
|
|
44306
44306
|
} else if (ae instanceof RegExp) {
|
|
44307
|
-
if (ae.test(
|
|
44307
|
+
if (ae.test(z)) {
|
|
44308
44308
|
G = !0;
|
|
44309
44309
|
break;
|
|
44310
44310
|
}
|
|
44311
|
-
} else if (typeof ae == "function" && ae(X,
|
|
44311
|
+
} else if (typeof ae == "function" && ae(X, z)) {
|
|
44312
44312
|
G = !0;
|
|
44313
44313
|
break;
|
|
44314
44314
|
}
|
|
@@ -44317,16 +44317,16 @@ function requireX2js() {
|
|
|
44317
44317
|
}
|
|
44318
44318
|
}
|
|
44319
44319
|
function g(U) {
|
|
44320
|
-
var X = 60,
|
|
44321
|
-
if (G.setHours(
|
|
44322
|
-
var ae =
|
|
44320
|
+
var X = 60, z = U.split(/[-T:+Z]/g), G = new Date(z[0], z[1] - 1, z[2]), J = z[5].split(".");
|
|
44321
|
+
if (G.setHours(z[3], z[4], J[0]), J.length > 1 && G.setMilliseconds(J[1]), z[6] && z[7]) {
|
|
44322
|
+
var ae = z[6] * X + Number(z[7]), Ce = /\d\d-\d\d:\d\d$/.test(U) ? "-" : "+";
|
|
44323
44323
|
ae = 0 + (Ce === "-" ? -1 * ae : ae), G.setMinutes(G.getMinutes() - ae - G.getTimezoneOffset());
|
|
44324
44324
|
} else U.indexOf("Z", U.length - 1) !== -1 && (G = new Date(Date.UTC(G.getFullYear(), G.getMonth(), G.getDate(), G.getHours(), G.getMinutes(), G.getSeconds(), G.getMilliseconds())));
|
|
44325
44325
|
return G;
|
|
44326
44326
|
}
|
|
44327
|
-
function y(U, X,
|
|
44327
|
+
function y(U, X, z) {
|
|
44328
44328
|
if (o.datetimeAccessFormPaths.length > 0)
|
|
44329
|
-
for (var G =
|
|
44329
|
+
for (var G = z.split(".#")[0], J = 0; J < o.datetimeAccessFormPaths.length; J++) {
|
|
44330
44330
|
var ae = o.datetimeAccessFormPaths[J];
|
|
44331
44331
|
if (typeof ae == "string") {
|
|
44332
44332
|
if (ae === G)
|
|
@@ -44340,8 +44340,8 @@ function requireX2js() {
|
|
|
44340
44340
|
return U;
|
|
44341
44341
|
}
|
|
44342
44342
|
function w(U) {
|
|
44343
|
-
for (var X = {},
|
|
44344
|
-
var J =
|
|
44343
|
+
for (var X = {}, z = U.childNodes, G = 0; G < z.length; G++) {
|
|
44344
|
+
var J = z.item(G);
|
|
44345
44345
|
if (J.nodeType === c.ELEMENT_NODE) {
|
|
44346
44346
|
var ae = d(J);
|
|
44347
44347
|
o.ignoreRoot ? X = C(J, ae) : X[ae] = C(J, ae);
|
|
@@ -44350,35 +44350,35 @@ function requireX2js() {
|
|
|
44350
44350
|
return X;
|
|
44351
44351
|
}
|
|
44352
44352
|
function v(U, X) {
|
|
44353
|
-
var
|
|
44354
|
-
|
|
44353
|
+
var z = {};
|
|
44354
|
+
z.__cnt = 0;
|
|
44355
44355
|
for (var G = U.childNodes, J = 0; J < G.length; J++) {
|
|
44356
44356
|
var ae = G.item(J), Ce = d(ae);
|
|
44357
|
-
ae.nodeType !== c.COMMENT_NODE && (
|
|
44357
|
+
ae.nodeType !== c.COMMENT_NODE && (z.__cnt++, z[Ce] == null ? (z[Ce] = C(ae, X + "." + Ce), m(z, Ce, X + "." + Ce)) : (z[Ce] instanceof Array || (z[Ce] = [z[Ce]], m(z, Ce, X + "." + Ce)), z[Ce][z[Ce].length] = C(ae, X + "." + Ce)));
|
|
44358
44358
|
}
|
|
44359
44359
|
for (var oe = 0; oe < U.attributes.length; oe++) {
|
|
44360
44360
|
var me = U.attributes.item(oe);
|
|
44361
|
-
|
|
44361
|
+
z.__cnt++;
|
|
44362
44362
|
for (var ue = me.value, Q = 0; Q < o.attributeConverters.length; Q++) {
|
|
44363
44363
|
var ne = o.attributeConverters[Q];
|
|
44364
44364
|
ne.test.call(null, me.name, me.value) && (ue = ne.convert.call(null, me.name, me.value));
|
|
44365
44365
|
}
|
|
44366
|
-
|
|
44366
|
+
z[o.attributePrefix + me.name] = ue;
|
|
44367
44367
|
}
|
|
44368
44368
|
var xe = u(U);
|
|
44369
|
-
return xe && (
|
|
44370
|
-
`)), o.escapeMode && (
|
|
44369
|
+
return xe && (z.__cnt++, z.__prefix = xe), z["#text"] && (z.__text = z["#text"], z.__text instanceof Array && (z.__text = z.__text.join(`
|
|
44370
|
+
`)), o.escapeMode && (z.__text = p(z.__text)), o.stripWhitespaces && (z.__text = z.__text.trim()), delete z["#text"], o.arrayAccessForm === "property" && delete z["#text_asArray"], z.__text = y(z.__text, "#text", X + ".#text")), z.hasOwnProperty("#cdata-section") && (z.__cdata = z["#cdata-section"], delete z["#cdata-section"], o.arrayAccessForm === "property" && delete z["#cdata-section_asArray"]), z.__cnt === 1 && z.__text && !o.keepText ? z = z.__text : z.__cnt === 0 && o.emptyNodeForm === "text" ? z = "" : z.__cnt > 1 && z.__text !== void 0 && o.skipEmptyTextNodesForObj && (o.stripWhitespaces && z.__text === "" || z.__text.trim() === "") && delete z.__text, delete z.__cnt, !o.keepCData && !z.hasOwnProperty("__text") && z.hasOwnProperty("__cdata") && Object.keys(z).length === 1 ? z.__cdata ? z.__cdata : "" : (o.enableToStringFunc && (z.__text || z.__cdata) && (z.toString = function() {
|
|
44371
44371
|
return (this.__text ? this.__text : "") + (this.__cdata ? this.__cdata : "");
|
|
44372
|
-
}),
|
|
44372
|
+
}), z);
|
|
44373
44373
|
}
|
|
44374
44374
|
function C(U, X) {
|
|
44375
44375
|
return U.nodeType === c.DOCUMENT_NODE ? w(U) : U.nodeType === c.ELEMENT_NODE ? v(U, X) : U.nodeType === c.TEXT_NODE || U.nodeType === c.CDATA_SECTION_NODE ? U.nodeValue : null;
|
|
44376
44376
|
}
|
|
44377
|
-
function _(U, X,
|
|
44377
|
+
function _(U, X, z, G) {
|
|
44378
44378
|
var J = "<" + (U && U.__prefix ? U.__prefix + ":" : "") + X;
|
|
44379
|
-
if (
|
|
44380
|
-
for (var ae = 0; ae <
|
|
44381
|
-
var Ce =
|
|
44379
|
+
if (z)
|
|
44380
|
+
for (var ae = 0; ae < z.length; ae++) {
|
|
44381
|
+
var Ce = z[ae], oe = U[Ce];
|
|
44382
44382
|
o.escapeMode && (oe = f(oe)), J += " " + Ce.substr(o.attributePrefix.length) + "=", o.useDoubleQuotes ? J += '"' + oe + '"' : J += "'" + oe + "'";
|
|
44383
44383
|
}
|
|
44384
44384
|
return G ? J += " />" : J += ">", J;
|
|
@@ -44395,15 +44395,15 @@ function requireX2js() {
|
|
|
44395
44395
|
function I(U) {
|
|
44396
44396
|
var X = 0;
|
|
44397
44397
|
if (U instanceof Object)
|
|
44398
|
-
for (var
|
|
44399
|
-
T(U,
|
|
44398
|
+
for (var z in U)
|
|
44399
|
+
T(U, z) || X++;
|
|
44400
44400
|
return X;
|
|
44401
44401
|
}
|
|
44402
44402
|
function M(U) {
|
|
44403
44403
|
var X = [];
|
|
44404
44404
|
if (U instanceof Object)
|
|
44405
|
-
for (var
|
|
44406
|
-
|
|
44405
|
+
for (var z in U)
|
|
44406
|
+
z.toString().indexOf("__") === -1 && z.toString().indexOf(o.attributePrefix) === 0 && X.push(z);
|
|
44407
44407
|
return X;
|
|
44408
44408
|
}
|
|
44409
44409
|
function k(U) {
|
|
@@ -44414,37 +44414,37 @@ function requireX2js() {
|
|
|
44414
44414
|
var X = "";
|
|
44415
44415
|
return U instanceof Object ? X += k(U) : U !== null && (o.escapeMode ? X += f(U) : X += U), X;
|
|
44416
44416
|
}
|
|
44417
|
-
function H(U, X,
|
|
44417
|
+
function H(U, X, z) {
|
|
44418
44418
|
var G = "";
|
|
44419
44419
|
if (U.length === 0)
|
|
44420
|
-
G += _(U, X,
|
|
44420
|
+
G += _(U, X, z, !0);
|
|
44421
44421
|
else
|
|
44422
44422
|
for (var J = 0; J < U.length; J++)
|
|
44423
44423
|
G += B(U[J], X, M(U[J]));
|
|
44424
44424
|
return G;
|
|
44425
44425
|
}
|
|
44426
|
-
function B(U, X,
|
|
44426
|
+
function B(U, X, z) {
|
|
44427
44427
|
var G = "";
|
|
44428
44428
|
if (o.jsAttributeFilter && o.jsAttributeFilter.call(null, X, U))
|
|
44429
44429
|
return G;
|
|
44430
44430
|
if (o.jsAttributeConverter && (U = o.jsAttributeConverter.call(null, X, U)), (U == null || U === "") && o.selfClosingElements)
|
|
44431
|
-
G += _(U, X,
|
|
44431
|
+
G += _(U, X, z, !0);
|
|
44432
44432
|
else if (typeof U == "object")
|
|
44433
44433
|
if (Object.prototype.toString.call(U) === "[object Array]")
|
|
44434
|
-
G += H(U, X,
|
|
44434
|
+
G += H(U, X, z);
|
|
44435
44435
|
else if (U instanceof Date)
|
|
44436
|
-
G += _(U, X,
|
|
44436
|
+
G += _(U, X, z, !1), G += o.jsDateUTC ? U.toUTCString() : U.toISOString(), G += D(U, X);
|
|
44437
44437
|
else {
|
|
44438
44438
|
var J = I(U);
|
|
44439
|
-
J > 0 || typeof U.__text == "number" || typeof U.__text == "boolean" || U.__text || U.__cdata ? (G += _(U, X,
|
|
44439
|
+
J > 0 || typeof U.__text == "number" || typeof U.__text == "boolean" || U.__text || U.__cdata ? (G += _(U, X, z, !1), G += Y(U), G += D(U, X)) : o.selfClosingElements ? G += _(U, X, z, !0) : (G += _(U, X, z, !1), G += D(U, X));
|
|
44440
44440
|
}
|
|
44441
44441
|
else
|
|
44442
|
-
G += _(U, X,
|
|
44442
|
+
G += _(U, X, z, !1), G += L(U), G += D(U, X);
|
|
44443
44443
|
return G;
|
|
44444
44444
|
}
|
|
44445
44445
|
function Y(U) {
|
|
44446
|
-
var X = "",
|
|
44447
|
-
if (
|
|
44446
|
+
var X = "", z = I(U);
|
|
44447
|
+
if (z > 0) {
|
|
44448
44448
|
for (var G in U)
|
|
44449
44449
|
if (!T(U, G)) {
|
|
44450
44450
|
var J = U[G], ae = M(J);
|
|
@@ -44456,9 +44456,9 @@ function requireX2js() {
|
|
|
44456
44456
|
function j(U) {
|
|
44457
44457
|
if (U === void 0 || typeof U != "string")
|
|
44458
44458
|
return null;
|
|
44459
|
-
var X = null,
|
|
44459
|
+
var X = null, z = null;
|
|
44460
44460
|
if (t)
|
|
44461
|
-
X = new t(o.xmldomOptions),
|
|
44461
|
+
X = new t(o.xmldomOptions), z = X.parseFromString(U, "text/xml");
|
|
44462
44462
|
else if (window && window.DOMParser) {
|
|
44463
44463
|
X = new window.DOMParser();
|
|
44464
44464
|
var G = null, J = window.ActiveXObject || "ActiveXObject" in window;
|
|
@@ -44469,13 +44469,13 @@ function requireX2js() {
|
|
|
44469
44469
|
G = null;
|
|
44470
44470
|
}
|
|
44471
44471
|
try {
|
|
44472
|
-
|
|
44472
|
+
z = X.parseFromString(U, "text/xml"), G !== null && z.getElementsByTagNameNS(G, "parsererror").length > 0 && (z = null);
|
|
44473
44473
|
} catch {
|
|
44474
|
-
|
|
44474
|
+
z = null;
|
|
44475
44475
|
}
|
|
44476
44476
|
} else
|
|
44477
|
-
U.indexOf("<?") === 0 && (U = U.substr(U.indexOf("?>") + 2)),
|
|
44478
|
-
return
|
|
44477
|
+
U.indexOf("<?") === 0 && (U = U.substr(U.indexOf("?>") + 2)), z = new ActiveXObject("Microsoft.XMLDOM"), z.async = "false", z.loadXML(U);
|
|
44478
|
+
return z;
|
|
44479
44479
|
}
|
|
44480
44480
|
this.asArray = function(X) {
|
|
44481
44481
|
return X == null ? [] : X instanceof Array ? X : [X];
|
|
@@ -44488,11 +44488,11 @@ function requireX2js() {
|
|
|
44488
44488
|
}, this.dom2js = function(X) {
|
|
44489
44489
|
return C(X, null);
|
|
44490
44490
|
}, this.js2dom = function(X) {
|
|
44491
|
-
var
|
|
44492
|
-
return j(
|
|
44491
|
+
var z = this.js2xml(X);
|
|
44492
|
+
return j(z);
|
|
44493
44493
|
}, this.xml2js = function(X) {
|
|
44494
|
-
var
|
|
44495
|
-
return
|
|
44494
|
+
var z = j(X);
|
|
44495
|
+
return z != null ? this.dom2js(z) : null;
|
|
44496
44496
|
}, this.js2xml = function(X) {
|
|
44497
44497
|
return Y(X);
|
|
44498
44498
|
}, this.getVersion = function() {
|
|
@@ -46241,12 +46241,12 @@ class StructureConvert {
|
|
|
46241
46241
|
k++;
|
|
46242
46242
|
for (let B = 0; B < L.length; B++) {
|
|
46243
46243
|
B > 0 && k++;
|
|
46244
|
-
const j = L[B][2], U = j.indexOf("错误:"), X = j.indexOf("正确:"),
|
|
46245
|
-
|
|
46244
|
+
const j = L[B][2], U = j.indexOf("错误:"), X = j.indexOf("正确:"), z = new createjs$1.Text(j.substring(U + 3, X - 1), "12px 微软雅黑", "#F31A1A");
|
|
46245
|
+
z.lineWidth = E - 25, z.lineHeight = 20, z.name = "tip", z.x = 15, z.y = 10 + 30 * k, T.addChild(z);
|
|
46246
46246
|
const G = new createjs$1.Text("-->", "12px 微软雅黑", "#666");
|
|
46247
|
-
G.lineWidth = E - 25, G.lineHeight = 20, G.name = "tip", G.x =
|
|
46247
|
+
G.lineWidth = E - 25, G.lineHeight = 20, G.name = "tip", G.x = z.x + z.getMeasuredWidth() + 5, G.y = z.y, T.addChild(G);
|
|
46248
46248
|
const J = new createjs$1.Text(j.substring(X + 3, j.length), "12px 微软雅黑", "#21B41E");
|
|
46249
|
-
J.lineWidth = E - 25, J.lineHeight = 20, J.name = "tip", J.x = G.x + G.getMeasuredWidth() + 5, J.y =
|
|
46249
|
+
J.lineWidth = E - 25, J.lineHeight = 20, J.name = "tip", J.x = G.x + G.getMeasuredWidth() + 5, J.y = z.y, J.alpha = 1, T.addChild(J);
|
|
46250
46250
|
}
|
|
46251
46251
|
}), _.addChild(T), n.drawPageTree.updateDrawPage(_.index);
|
|
46252
46252
|
}
|
|
@@ -50060,27 +50060,27 @@ class VueController {
|
|
|
50060
50060
|
let L = [];
|
|
50061
50061
|
if (T != "" && T != null) {
|
|
50062
50062
|
Array.isArray(T) ? L = T : L = [T];
|
|
50063
|
-
for (let
|
|
50064
|
-
const G = f(L[
|
|
50065
|
-
ae >= 0 ? _.set(
|
|
50063
|
+
for (let z = 0; z < L.length; z++) {
|
|
50064
|
+
const G = f(L[z], I), J = JSON.stringify(G), ae = d.lastIndexOf(J);
|
|
50065
|
+
ae >= 0 ? _.set(z + 1, ae) : J == '""' ? _.set(z + 1, _.get(0)) : (p.styles.fontStyle.push(G), d.push(J), _.set(z + 1, d.length - 1));
|
|
50066
50066
|
}
|
|
50067
50067
|
}
|
|
50068
50068
|
const H = E.styles.paraStyle ? E.styles.paraStyle : E.styles.para, B = E.styles.defaultPara, Y = JSON.stringify(B), j = u.indexOf(Y);
|
|
50069
50069
|
j >= 0 ? D.set(0, j) : (p.styles.paraStyle.push(B), u.push(Y), D.set(0, u.length - 1));
|
|
50070
|
-
const U = (
|
|
50070
|
+
const U = (z) => {
|
|
50071
50071
|
const G = JSON.stringify(B), J = JSON.parse(G);
|
|
50072
|
-
return
|
|
50072
|
+
return z && (typeof z.charSpace < "u" && z.charSpace !== B.charSpace.toString() && (J.charSpace = z.charSpace), typeof z.lineSpace < "u" && z.lineSpace !== B.lineSpace.toString() && (J.lineSpace = z.lineSpace), typeof z.align < "u" && z.align !== B.align.toString() && (J.align = z.align), typeof z.firstIndent < "u" && z.firstIndent !== B.firstIndent.toString() && (J.firstIndent = z.firstIndent)), J;
|
|
50073
50073
|
};
|
|
50074
50074
|
let X = [];
|
|
50075
50075
|
H != "" && H != null && (H && !Array.isArray(H) ? X = [H] : X = H);
|
|
50076
|
-
for (let
|
|
50077
|
-
const G = U(X[
|
|
50078
|
-
ae >= 0 ? D.set(
|
|
50076
|
+
for (let z = 0; z < X.length; z++) {
|
|
50077
|
+
const G = U(X[z]), J = JSON.stringify(G), ae = u.indexOf(J);
|
|
50078
|
+
ae >= 0 ? D.set(z + 1, ae) : J == '""' ? D.set(z + 1, D.get(0)) : (p.styles.paraStyle.push(G), u.push(J), D.set(z + 1, u.length - 1));
|
|
50079
50079
|
}
|
|
50080
50080
|
if (w(E.main, _, D), p.pageSettingsTree = [], t[C][0]) {
|
|
50081
50081
|
w(E.header[0].subDocNodes, _, D);
|
|
50082
|
-
const
|
|
50083
|
-
E.header[0].beginPath =
|
|
50082
|
+
const z = o.gernerateCode.generateID("DocId");
|
|
50083
|
+
E.header[0].beginPath = z, E.header[0].pageIndex = -1, p.header.push(E.header[0]), w(E.footer[0].subDocNodes, _, D), E.footer[0].beginPath = z, E.footer[0].pageIndex = -1, (C == 1 || C > 2 && E.footer[0].subDocNodes.length > 1) && p.footer.push(E.footer[0]), Array.isArray(E.main) ? (E.main[0].printAsSinglePage = "true", E.main[0].docId = z) : (Array(E.main)[0].printAsSinglePage = "true", Array(E.main)[0].docId = z), p.pageSettingsTree.push(E.pageSettings), o.printStatus.pageSettingMap.set(z, {
|
|
50084
50084
|
widthMm: Number(E.pageSettings.widthMm),
|
|
50085
50085
|
heightMm: Number(E.pageSettings.heightMm),
|
|
50086
50086
|
pageSize: E.pageSettings.pageSize,
|
|
@@ -50088,8 +50088,8 @@ class VueController {
|
|
|
50088
50088
|
});
|
|
50089
50089
|
} else if (t[C][2]) {
|
|
50090
50090
|
w(E.header[0].subDocNodes, _, D);
|
|
50091
|
-
const
|
|
50092
|
-
E.header[0].beginPath =
|
|
50091
|
+
const z = o.gernerateCode.generateID("DocId");
|
|
50092
|
+
E.header[0].beginPath = z, E.header[0].pageIndex = -1, p.header.push(E.header[0]), Array.isArray(E.main) ? (E.main[0].forceChangeHeader = "true", E.main[0].docId = z) : (Array(E.main)[0].forceChangeHeader = "true", Array(E.main)[0].docId = z);
|
|
50093
50093
|
}
|
|
50094
50094
|
y(t[C][3], E.main), Array.isArray(E.main) ? p.main.push(...E.main) : p.main.push(...Array(E.main));
|
|
50095
50095
|
}
|
|
@@ -52353,7 +52353,7 @@ class VueController {
|
|
|
52353
52353
|
for (let me = 0; me < oe.length; me++)
|
|
52354
52354
|
oe[me].rowSpan > 1 && (oe[me].rowSpan = Math.min(oe[me].rowSpan, oe.length - oe[me].rowNo)), oe[me].colSpan > 1 && (oe[me].colSpan = Math.min(oe[me].colSpan, oe.length - oe[me].colNo));
|
|
52355
52355
|
}
|
|
52356
|
-
const
|
|
52356
|
+
const z = { defaultRowProperty: E, item: I }, G = { defaultColProperty: L, item: B }, J = { defaultCellProperty: Y, item: U };
|
|
52357
52357
|
return { TableNode: {
|
|
52358
52358
|
nodeType: NodeType$1[1],
|
|
52359
52359
|
rowCount: v.rowCount,
|
|
@@ -52362,7 +52362,7 @@ class VueController {
|
|
|
52362
52362
|
borderWidth: v.borderWidth,
|
|
52363
52363
|
headerRowCount: v.headerRowCount,
|
|
52364
52364
|
tableProperty: D,
|
|
52365
|
-
rowInfos:
|
|
52365
|
+
rowInfos: z,
|
|
52366
52366
|
colInfos: G,
|
|
52367
52367
|
childNodes: J
|
|
52368
52368
|
} };
|
|
@@ -54922,8 +54922,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
54922
54922
|
I[k++] = j;
|
|
54923
54923
|
}
|
|
54924
54924
|
}
|
|
54925
|
-
var X = I.subarray(0, D),
|
|
54926
|
-
m = max(X), g = max(
|
|
54925
|
+
var X = I.subarray(0, D), z = I.subarray(D);
|
|
54926
|
+
m = max(X), g = max(z), f = hMap(X, m, 1), p = hMap(z, g, 1);
|
|
54927
54927
|
} else
|
|
54928
54928
|
throw "invalid block type";
|
|
54929
54929
|
else {
|
|
@@ -54961,16 +54961,16 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
54961
54961
|
if (!ue)
|
|
54962
54962
|
throw "invalid distance";
|
|
54963
54963
|
d += ue & 15;
|
|
54964
|
-
var
|
|
54964
|
+
var z = fd[Q];
|
|
54965
54965
|
if (Q > 3) {
|
|
54966
54966
|
var me = fdeb[Q];
|
|
54967
|
-
|
|
54967
|
+
z += bits16(a, d) & (1 << me) - 1, d += me;
|
|
54968
54968
|
}
|
|
54969
54969
|
if (d > y)
|
|
54970
54970
|
throw "unexpected EOF";
|
|
54971
54971
|
n && l(u + 131072);
|
|
54972
54972
|
for (var ne = u + oe; u < ne; u += 4)
|
|
54973
|
-
t[u] = t[u -
|
|
54973
|
+
t[u] = t[u - z], t[u + 1] = t[u + 1 - z], t[u + 2] = t[u + 2 - z], t[u + 3] = t[u + 3 - z];
|
|
54974
54974
|
u = ne;
|
|
54975
54975
|
}
|
|
54976
54976
|
}
|
|
@@ -55072,9 +55072,9 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55072
55072
|
var j = u + 5 << 3, U = clen(n, flt) + clen(s, fdt) + l, X = clen(n, m) + clen(s, w) + l + 14 + 3 * Y + clen(M, H) + (2 * M[16] + 3 * M[17] + 7 * M[18]);
|
|
55073
55073
|
if (j <= U && j <= X)
|
|
55074
55074
|
return wfblk(t, f, a.subarray(d, d + u));
|
|
55075
|
-
var
|
|
55075
|
+
var z, G, J, ae;
|
|
55076
55076
|
if (wbits(t, f, 1 + (X < U)), f += 2, X < U) {
|
|
55077
|
-
|
|
55077
|
+
z = hMap(m, g, 0), G = m, J = hMap(w, v, 0), ae = w;
|
|
55078
55078
|
var Ce = hMap(H, B, 0);
|
|
55079
55079
|
wbits(t, f, D - 257), wbits(t, f + 5, I - 1), wbits(t, f + 10, Y - 4), f += 14;
|
|
55080
55080
|
for (var k = 0; k < Y; ++k)
|
|
@@ -55086,16 +55086,16 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55086
55086
|
wbits(t, f, Ce[Q]), f += H[Q], Q > 15 && (wbits(t, f, ue[k] >>> 5 & 127), f += ue[k] >>> 12);
|
|
55087
55087
|
}
|
|
55088
55088
|
} else
|
|
55089
|
-
|
|
55089
|
+
z = flm, G = flt, J = fdm, ae = fdt;
|
|
55090
55090
|
for (var k = 0; k < c; ++k)
|
|
55091
55091
|
if (o[k] > 255) {
|
|
55092
55092
|
var Q = o[k] >>> 18 & 31;
|
|
55093
|
-
wbits16(t, f,
|
|
55093
|
+
wbits16(t, f, z[Q + 257]), f += G[Q + 257], Q > 7 && (wbits(t, f, o[k] >>> 23 & 31), f += fleb[Q]);
|
|
55094
55094
|
var ne = o[k] & 31;
|
|
55095
55095
|
wbits16(t, f, J[ne]), f += ae[ne], ne > 3 && (wbits16(t, f, o[k] >>> 5 & 8191), f += fdeb[ne]);
|
|
55096
55096
|
} else
|
|
55097
|
-
wbits16(t, f,
|
|
55098
|
-
return wbits16(t, f,
|
|
55097
|
+
wbits16(t, f, z[o[k]]), f += G[o[k]];
|
|
55098
|
+
return wbits16(t, f, z[256]), f + G[256];
|
|
55099
55099
|
}, deo = /* @__PURE__ */ new u32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), dflt = function(a, t, r, o, n, s) {
|
|
55100
55100
|
var l = a.length, c = new u8(o + l + 5 * (1 + Math.floor(l / 7e3)) + n), d = c.subarray(o, c.length - n), u = 0;
|
|
55101
55101
|
if (!t || l < 8)
|
|
@@ -55109,8 +55109,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55109
55109
|
}, T = new u32(25e3), I = new u16(288), M = new u16(32), k = 0, L = 0, f = 0, H = 0, B = 0, Y = 0; f < l; ++f) {
|
|
55110
55110
|
var j = E(f), U = f & 32767, X = C[j];
|
|
55111
55111
|
if (v[U] = X, C[j] = U, B <= f) {
|
|
55112
|
-
var
|
|
55113
|
-
if ((k > 7e3 || H > 24576) &&
|
|
55112
|
+
var z = l - f;
|
|
55113
|
+
if ((k > 7e3 || H > 24576) && z > 423) {
|
|
55114
55114
|
u = wblk(a, d, 0, T, I, M, L, H, Y, f - Y, u), H = k = L = 0, Y = f;
|
|
55115
55115
|
for (var G = 0; G < 286; ++G)
|
|
55116
55116
|
I[G] = 0;
|
|
@@ -55118,8 +55118,8 @@ var flm = /* @__PURE__ */ hMap(flt, 9, 0), flrm = /* @__PURE__ */ hMap(flt, 9, 1
|
|
|
55118
55118
|
M[G] = 0;
|
|
55119
55119
|
}
|
|
55120
55120
|
var J = 2, ae = 0, Ce = y, oe = U - X & 32767;
|
|
55121
|
-
if (
|
|
55122
|
-
for (var me = Math.min(g,
|
|
55121
|
+
if (z > 2 && j == E(f - oe))
|
|
55122
|
+
for (var me = Math.min(g, z) - 1, ue = Math.min(32767, f), Q = Math.min(258, z); oe <= ue && --Ce && U != X; ) {
|
|
55123
55123
|
if (a[f + J] == a[f + J - oe]) {
|
|
55124
55124
|
for (var ne = 0; ne < Q && a[f + ne] == a[f + ne - oe]; ++ne)
|
|
55125
55125
|
;
|
|
@@ -55764,8 +55764,8 @@ function jsPDF(a) {
|
|
|
55764
55764
|
var y = "1.3", w = g.__private__.getPdfVersion = function() {
|
|
55765
55765
|
return y;
|
|
55766
55766
|
};
|
|
55767
|
-
g.__private__.setPdfVersion = function(
|
|
55768
|
-
y =
|
|
55767
|
+
g.__private__.setPdfVersion = function(W) {
|
|
55768
|
+
y = W;
|
|
55769
55769
|
};
|
|
55770
55770
|
var v = {
|
|
55771
55771
|
a0: [2383.94, 3370.39],
|
|
@@ -55813,8 +55813,8 @@ function jsPDF(a) {
|
|
|
55813
55813
|
g.__private__.getPageFormats = function() {
|
|
55814
55814
|
return v;
|
|
55815
55815
|
};
|
|
55816
|
-
var C = g.__private__.getPageFormat = function(
|
|
55817
|
-
return v[
|
|
55816
|
+
var C = g.__private__.getPageFormat = function(W) {
|
|
55817
|
+
return v[W];
|
|
55818
55818
|
};
|
|
55819
55819
|
o = o || "a4";
|
|
55820
55820
|
var _ = {
|
|
@@ -55827,57 +55827,57 @@ function jsPDF(a) {
|
|
|
55827
55827
|
function T() {
|
|
55828
55828
|
this.restoreGraphicsState(), u = "S", D = _.COMPAT;
|
|
55829
55829
|
}
|
|
55830
|
-
var I = g.__private__.combineFontStyleAndFontWeight = function(
|
|
55831
|
-
if (
|
|
55830
|
+
var I = g.__private__.combineFontStyleAndFontWeight = function(W, V) {
|
|
55831
|
+
if (W == "bold" && V == "normal" || W == "bold" && V == 400 || W == "normal" && V == "italic" || W == "bold" && V == "italic")
|
|
55832
55832
|
throw new Error("Invalid Combination of fontweight and fontstyle");
|
|
55833
|
-
return V && (
|
|
55833
|
+
return V && (W = V == 400 || V === "normal" ? W === "italic" ? "italic" : "normal" : (V == 700 || V === "bold") && W === "normal" ? "bold" : (V == 700 ? "bold" : V) + "" + W), W;
|
|
55834
55834
|
};
|
|
55835
|
-
g.advancedAPI = function(
|
|
55835
|
+
g.advancedAPI = function(W) {
|
|
55836
55836
|
var V = D === _.COMPAT;
|
|
55837
|
-
return V && E.call(this), typeof
|
|
55838
|
-
}, g.compatAPI = function(
|
|
55837
|
+
return V && E.call(this), typeof W != "function" ? this : (W(this), V && T.call(this), this);
|
|
55838
|
+
}, g.compatAPI = function(W) {
|
|
55839
55839
|
var V = D === _.ADVANCED;
|
|
55840
|
-
return V && T.call(this), typeof
|
|
55840
|
+
return V && T.call(this), typeof W != "function" ? this : (W(this), V && E.call(this), this);
|
|
55841
55841
|
}, g.isAdvancedAPI = function() {
|
|
55842
55842
|
return D === _.ADVANCED;
|
|
55843
55843
|
};
|
|
55844
55844
|
var M = function(V) {
|
|
55845
55845
|
if (D !== _.ADVANCED)
|
|
55846
55846
|
throw new Error(V + " is only available in 'advanced' API mode. You need to call advancedAPI() first.");
|
|
55847
|
-
}, k = g.roundToPrecision = g.__private__.roundToPrecision = function(
|
|
55847
|
+
}, k = g.roundToPrecision = g.__private__.roundToPrecision = function(W, V) {
|
|
55848
55848
|
var ye = c || V;
|
|
55849
|
-
if (isNaN(
|
|
55849
|
+
if (isNaN(W) || isNaN(ye))
|
|
55850
55850
|
throw new Error("Invalid argument passed to jsPDF.roundToPrecision");
|
|
55851
|
-
return
|
|
55851
|
+
return W.toFixed(ye).replace(/0+$/, "");
|
|
55852
55852
|
}, L;
|
|
55853
|
-
typeof d == "number" ? L = g.hpf = g.__private__.hpf = function(
|
|
55854
|
-
if (isNaN(
|
|
55853
|
+
typeof d == "number" ? L = g.hpf = g.__private__.hpf = function(W) {
|
|
55854
|
+
if (isNaN(W))
|
|
55855
55855
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55856
|
-
return k(
|
|
55857
|
-
} : d === "smart" ? L = g.hpf = g.__private__.hpf = function(
|
|
55858
|
-
if (isNaN(
|
|
55856
|
+
return k(W, d);
|
|
55857
|
+
} : d === "smart" ? L = g.hpf = g.__private__.hpf = function(W) {
|
|
55858
|
+
if (isNaN(W))
|
|
55859
55859
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55860
|
-
return
|
|
55861
|
-
} : L = g.hpf = g.__private__.hpf = function(
|
|
55862
|
-
if (isNaN(
|
|
55860
|
+
return W > -1 && W < 1 ? k(W, 16) : k(W, 5);
|
|
55861
|
+
} : L = g.hpf = g.__private__.hpf = function(W) {
|
|
55862
|
+
if (isNaN(W))
|
|
55863
55863
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
55864
|
-
return k(
|
|
55864
|
+
return k(W, 16);
|
|
55865
55865
|
};
|
|
55866
|
-
var H = g.f2 = g.__private__.f2 = function(
|
|
55867
|
-
if (isNaN(
|
|
55866
|
+
var H = g.f2 = g.__private__.f2 = function(W) {
|
|
55867
|
+
if (isNaN(W))
|
|
55868
55868
|
throw new Error("Invalid argument passed to jsPDF.f2");
|
|
55869
|
-
return k(
|
|
55870
|
-
}, B = g.__private__.f3 = function(
|
|
55871
|
-
if (isNaN(
|
|
55869
|
+
return k(W, 2);
|
|
55870
|
+
}, B = g.__private__.f3 = function(W) {
|
|
55871
|
+
if (isNaN(W))
|
|
55872
55872
|
throw new Error("Invalid argument passed to jsPDF.f3");
|
|
55873
|
-
return k(
|
|
55874
|
-
}, Y = g.scale = g.__private__.scale = function(
|
|
55875
|
-
if (isNaN(
|
|
55873
|
+
return k(W, 3);
|
|
55874
|
+
}, Y = g.scale = g.__private__.scale = function(W) {
|
|
55875
|
+
if (isNaN(W))
|
|
55876
55876
|
throw new Error("Invalid argument passed to jsPDF.scale");
|
|
55877
55877
|
if (D === _.COMPAT)
|
|
55878
|
-
return
|
|
55878
|
+
return W * kt;
|
|
55879
55879
|
if (D === _.ADVANCED)
|
|
55880
|
-
return
|
|
55880
|
+
return W;
|
|
55881
55881
|
}, j = function(V) {
|
|
55882
55882
|
if (D === _.COMPAT)
|
|
55883
55883
|
return Di() - V;
|
|
@@ -55886,54 +55886,54 @@ function jsPDF(a) {
|
|
|
55886
55886
|
}, U = function(V) {
|
|
55887
55887
|
return Y(j(V));
|
|
55888
55888
|
};
|
|
55889
|
-
g.__private__.setPrecision = g.setPrecision = function(
|
|
55890
|
-
typeof parseInt(
|
|
55889
|
+
g.__private__.setPrecision = g.setPrecision = function(W) {
|
|
55890
|
+
typeof parseInt(W, 10) == "number" && (c = parseInt(W, 10));
|
|
55891
55891
|
};
|
|
55892
|
-
var X = "00000000000000000000000000000000",
|
|
55892
|
+
var X = "00000000000000000000000000000000", z = g.__private__.getFileId = function() {
|
|
55893
55893
|
return X;
|
|
55894
|
-
}, G = g.__private__.setFileId = function(
|
|
55895
|
-
return typeof
|
|
55894
|
+
}, G = g.__private__.setFileId = function(W) {
|
|
55895
|
+
return typeof W < "u" && /^[a-fA-F0-9]{32}$/.test(W) ? X = W.toUpperCase() : X = X.split("").map(function() {
|
|
55896
55896
|
return "ABCDEF0123456789".charAt(Math.floor(Math.random() * 16));
|
|
55897
55897
|
}).join(""), f !== null && (Pr = new PDFSecurity(f.userPermissions, f.userPassword, f.ownerPassword, X)), X;
|
|
55898
55898
|
};
|
|
55899
|
-
g.setFileId = function(
|
|
55900
|
-
return G(
|
|
55899
|
+
g.setFileId = function(W) {
|
|
55900
|
+
return G(W), this;
|
|
55901
55901
|
}, g.getFileId = function() {
|
|
55902
|
-
return
|
|
55902
|
+
return z();
|
|
55903
55903
|
};
|
|
55904
|
-
var J, ae = g.__private__.convertDateToPDFDate = function(
|
|
55905
|
-
var V = "", ye =
|
|
55906
|
-
return V = ["D:",
|
|
55907
|
-
}, Ce = g.__private__.convertPDFDateToDate = function(
|
|
55908
|
-
var V = parseInt(
|
|
55904
|
+
var J, ae = g.__private__.convertDateToPDFDate = function(W) {
|
|
55905
|
+
var V = "", ye = W.getTimezoneOffset(), Fe = ye < 0 ? "+" : "-", We = Math.floor(Math.abs(ye / 60)), Ze = Math.abs(ye % 60), lt = [Fe, ue(We), "'", ue(Ze), "'"].join("");
|
|
55906
|
+
return V = ["D:", W.getFullYear(), ue(W.getMonth() + 1), ue(W.getDate()), ue(W.getHours()), ue(W.getMinutes()), ue(W.getSeconds()), lt].join(""), V;
|
|
55907
|
+
}, Ce = g.__private__.convertPDFDateToDate = function(W) {
|
|
55908
|
+
var V = parseInt(W.substr(2, 4), 10), ye = parseInt(W.substr(6, 2), 10) - 1, Fe = parseInt(W.substr(8, 2), 10), We = parseInt(W.substr(10, 2), 10), Ze = parseInt(W.substr(12, 2), 10), lt = parseInt(W.substr(14, 2), 10), ft = new Date(V, ye, Fe, We, Ze, lt, 0);
|
|
55909
55909
|
return ft;
|
|
55910
|
-
}, oe = g.__private__.setCreationDate = function(
|
|
55910
|
+
}, oe = g.__private__.setCreationDate = function(W) {
|
|
55911
55911
|
var V, ye = /^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/;
|
|
55912
|
-
if (typeof
|
|
55913
|
-
V = ae(
|
|
55914
|
-
else if (ye.test(
|
|
55915
|
-
V =
|
|
55912
|
+
if (typeof W > "u" && (W = /* @__PURE__ */ new Date()), W instanceof Date)
|
|
55913
|
+
V = ae(W);
|
|
55914
|
+
else if (ye.test(W))
|
|
55915
|
+
V = W;
|
|
55916
55916
|
else
|
|
55917
55917
|
throw new Error("Invalid argument passed to jsPDF.setCreationDate");
|
|
55918
55918
|
return J = V, J;
|
|
55919
|
-
}, me = g.__private__.getCreationDate = function(
|
|
55919
|
+
}, me = g.__private__.getCreationDate = function(W) {
|
|
55920
55920
|
var V = J;
|
|
55921
|
-
return
|
|
55921
|
+
return W === "jsDate" && (V = Ce(J)), V;
|
|
55922
55922
|
};
|
|
55923
|
-
g.setCreationDate = function(
|
|
55924
|
-
return oe(
|
|
55925
|
-
}, g.getCreationDate = function(
|
|
55926
|
-
return me(
|
|
55923
|
+
g.setCreationDate = function(W) {
|
|
55924
|
+
return oe(W), this;
|
|
55925
|
+
}, g.getCreationDate = function(W) {
|
|
55926
|
+
return me(W);
|
|
55927
55927
|
};
|
|
55928
|
-
var ue = g.__private__.padd2 = function(
|
|
55929
|
-
return ("0" + parseInt(
|
|
55930
|
-
}, Q = g.__private__.padd2Hex = function(
|
|
55931
|
-
return
|
|
55928
|
+
var ue = g.__private__.padd2 = function(W) {
|
|
55929
|
+
return ("0" + parseInt(W)).slice(-2);
|
|
55930
|
+
}, Q = g.__private__.padd2Hex = function(W) {
|
|
55931
|
+
return W = W.toString(), ("00" + W).substr(W.length);
|
|
55932
55932
|
}, ne = 0, xe = [], Ie = [], ve = 0, _e = [], pe = [], Pe, De = !1, Ve = Ie, Te = function() {
|
|
55933
55933
|
ne = 0, ve = 0, Ie = [], xe = [], _e = [], Zt = jt(), lr = jt();
|
|
55934
55934
|
};
|
|
55935
|
-
g.__private__.setCustomOutputDestination = function(
|
|
55936
|
-
De = !0, Ve =
|
|
55935
|
+
g.__private__.setCustomOutputDestination = function(W) {
|
|
55936
|
+
De = !0, Ve = W;
|
|
55937
55937
|
};
|
|
55938
55938
|
var He = function(V) {
|
|
55939
55939
|
De || (Ve = V);
|
|
@@ -55941,63 +55941,63 @@ function jsPDF(a) {
|
|
|
55941
55941
|
g.__private__.resetCustomOutputDestination = function() {
|
|
55942
55942
|
De = !1, Ve = Ie;
|
|
55943
55943
|
};
|
|
55944
|
-
var we = g.__private__.out = function(
|
|
55945
|
-
return
|
|
55946
|
-
}, le = g.__private__.write = function(
|
|
55947
|
-
return we(arguments.length === 1 ?
|
|
55948
|
-
}, he = g.__private__.getArrayBuffer = function(
|
|
55949
|
-
for (var V =
|
|
55950
|
-
Fe[V] =
|
|
55944
|
+
var we = g.__private__.out = function(W) {
|
|
55945
|
+
return W = W.toString(), ve += W.length + 1, Ve.push(W), Ve;
|
|
55946
|
+
}, le = g.__private__.write = function(W) {
|
|
55947
|
+
return we(arguments.length === 1 ? W.toString() : Array.prototype.join.call(arguments, " "));
|
|
55948
|
+
}, he = g.__private__.getArrayBuffer = function(W) {
|
|
55949
|
+
for (var V = W.length, ye = new ArrayBuffer(V), Fe = new Uint8Array(ye); V--; )
|
|
55950
|
+
Fe[V] = W.charCodeAt(V);
|
|
55951
55951
|
return ye;
|
|
55952
55952
|
}, $ = [["Helvetica", "helvetica", "normal", "WinAnsiEncoding"], ["Helvetica-Bold", "helvetica", "bold", "WinAnsiEncoding"], ["Helvetica-Oblique", "helvetica", "italic", "WinAnsiEncoding"], ["Helvetica-BoldOblique", "helvetica", "bolditalic", "WinAnsiEncoding"], ["Courier", "courier", "normal", "WinAnsiEncoding"], ["Courier-Bold", "courier", "bold", "WinAnsiEncoding"], ["Courier-Oblique", "courier", "italic", "WinAnsiEncoding"], ["Courier-BoldOblique", "courier", "bolditalic", "WinAnsiEncoding"], ["Times-Roman", "times", "normal", "WinAnsiEncoding"], ["Times-Bold", "times", "bold", "WinAnsiEncoding"], ["Times-Italic", "times", "italic", "WinAnsiEncoding"], ["Times-BoldItalic", "times", "bolditalic", "WinAnsiEncoding"], ["ZapfDingbats", "zapfdingbats", "normal", null], ["Symbol", "symbol", "normal", null]];
|
|
55953
55953
|
g.__private__.getStandardFonts = function() {
|
|
55954
55954
|
return $;
|
|
55955
55955
|
};
|
|
55956
55956
|
var Ne = a.fontSize || 16;
|
|
55957
|
-
g.__private__.setFontSize = g.setFontSize = function(
|
|
55958
|
-
return D === _.ADVANCED ? Ne =
|
|
55957
|
+
g.__private__.setFontSize = g.setFontSize = function(W) {
|
|
55958
|
+
return D === _.ADVANCED ? Ne = W / kt : Ne = W, this;
|
|
55959
55959
|
};
|
|
55960
55960
|
var Be = g.__private__.getFontSize = g.getFontSize = function() {
|
|
55961
55961
|
return D === _.COMPAT ? Ne : Ne * kt;
|
|
55962
55962
|
}, Qe = a.R2L || !1;
|
|
55963
|
-
g.__private__.setR2L = g.setR2L = function(
|
|
55964
|
-
return Qe =
|
|
55963
|
+
g.__private__.setR2L = g.setR2L = function(W) {
|
|
55964
|
+
return Qe = W, this;
|
|
55965
55965
|
}, g.__private__.getR2L = g.getR2L = function() {
|
|
55966
55966
|
return Qe;
|
|
55967
55967
|
};
|
|
55968
|
-
var Me, ze = g.__private__.setZoomMode = function(
|
|
55968
|
+
var Me, ze = g.__private__.setZoomMode = function(W) {
|
|
55969
55969
|
var V = [void 0, null, "fullwidth", "fullheight", "fullpage", "original"];
|
|
55970
|
-
if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(
|
|
55971
|
-
Me =
|
|
55972
|
-
else if (!isNaN(
|
|
55973
|
-
Me = parseInt(
|
|
55974
|
-
else if (V.indexOf(
|
|
55975
|
-
Me =
|
|
55970
|
+
if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(W))
|
|
55971
|
+
Me = W;
|
|
55972
|
+
else if (!isNaN(W))
|
|
55973
|
+
Me = parseInt(W, 10);
|
|
55974
|
+
else if (V.indexOf(W) !== -1)
|
|
55975
|
+
Me = W;
|
|
55976
55976
|
else
|
|
55977
|
-
throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "' +
|
|
55977
|
+
throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "' + W + '" is not recognized.');
|
|
55978
55978
|
};
|
|
55979
55979
|
g.__private__.getZoomMode = function() {
|
|
55980
55980
|
return Me;
|
|
55981
55981
|
};
|
|
55982
|
-
var ot, ht = g.__private__.setPageMode = function(
|
|
55982
|
+
var ot, ht = g.__private__.setPageMode = function(W) {
|
|
55983
55983
|
var V = [void 0, null, "UseNone", "UseOutlines", "UseThumbs", "FullScreen"];
|
|
55984
|
-
if (V.indexOf(
|
|
55985
|
-
throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' +
|
|
55986
|
-
ot =
|
|
55984
|
+
if (V.indexOf(W) == -1)
|
|
55985
|
+
throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' + W + '" is not recognized.');
|
|
55986
|
+
ot = W;
|
|
55987
55987
|
};
|
|
55988
55988
|
g.__private__.getPageMode = function() {
|
|
55989
55989
|
return ot;
|
|
55990
55990
|
};
|
|
55991
|
-
var bt, gt = g.__private__.setLayoutMode = function(
|
|
55991
|
+
var bt, gt = g.__private__.setLayoutMode = function(W) {
|
|
55992
55992
|
var V = [void 0, null, "continuous", "single", "twoleft", "tworight", "two"];
|
|
55993
|
-
if (V.indexOf(
|
|
55994
|
-
throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' +
|
|
55995
|
-
bt =
|
|
55993
|
+
if (V.indexOf(W) == -1)
|
|
55994
|
+
throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' + W + '" is not recognized.');
|
|
55995
|
+
bt = W;
|
|
55996
55996
|
};
|
|
55997
55997
|
g.__private__.getLayoutMode = function() {
|
|
55998
55998
|
return bt;
|
|
55999
|
-
}, g.__private__.setDisplayMode = g.setDisplayMode = function(
|
|
56000
|
-
return ze(
|
|
55999
|
+
}, g.__private__.setDisplayMode = g.setDisplayMode = function(W, V, ye) {
|
|
56000
|
+
return ze(W), gt(V), ht(ye), this;
|
|
56001
56001
|
};
|
|
56002
56002
|
var _t = {
|
|
56003
56003
|
title: "",
|
|
@@ -56006,30 +56006,30 @@ function jsPDF(a) {
|
|
|
56006
56006
|
keywords: "",
|
|
56007
56007
|
creator: ""
|
|
56008
56008
|
};
|
|
56009
|
-
g.__private__.getDocumentProperty = function(
|
|
56010
|
-
if (Object.keys(_t).indexOf(
|
|
56009
|
+
g.__private__.getDocumentProperty = function(W) {
|
|
56010
|
+
if (Object.keys(_t).indexOf(W) === -1)
|
|
56011
56011
|
throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");
|
|
56012
|
-
return _t[
|
|
56012
|
+
return _t[W];
|
|
56013
56013
|
}, g.__private__.getDocumentProperties = function() {
|
|
56014
56014
|
return _t;
|
|
56015
|
-
}, g.__private__.setDocumentProperties = g.setProperties = g.setDocumentProperties = function(
|
|
56015
|
+
}, g.__private__.setDocumentProperties = g.setProperties = g.setDocumentProperties = function(W) {
|
|
56016
56016
|
for (var V in _t)
|
|
56017
|
-
_t.hasOwnProperty(V) &&
|
|
56017
|
+
_t.hasOwnProperty(V) && W[V] && (_t[V] = W[V]);
|
|
56018
56018
|
return this;
|
|
56019
|
-
}, g.__private__.setDocumentProperty = function(
|
|
56020
|
-
if (Object.keys(_t).indexOf(
|
|
56019
|
+
}, g.__private__.setDocumentProperty = function(W, V) {
|
|
56020
|
+
if (Object.keys(_t).indexOf(W) === -1)
|
|
56021
56021
|
throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
56022
|
-
return _t[
|
|
56022
|
+
return _t[W] = V;
|
|
56023
56023
|
};
|
|
56024
56024
|
var pt = {}, Tt = {}, xt, It = [], St = {}, Qt = {}, At = {}, or = {}, wr = null, kt, Gt = 0, ee = [], se = new PubSub(g), Se = a.hotfixes || [], Ue = {}, Ge = {}, Dt = [], Ut, Jt, nr, Et = function() {
|
|
56025
|
-
pt = {}, Tt = {}, It = [], St = {}, Qt = {}, At = {}, or = {}, wr = null, Gt = 0, ee = [], se = null, Se = [], Ue = {}, Ge = {}, Dt = [], Ut = 0, Jt = 0, nr = {}, this.events.publish("destroy"), this.vFS && (Object.keys(this.vFS).forEach((
|
|
56026
|
-
delete this.vFS[
|
|
56027
|
-
}), this.vFS = {}), Ie = [], Ve = [], pe = [], Object.keys(this).forEach((
|
|
56028
|
-
|
|
56025
|
+
pt = {}, Tt = {}, It = [], St = {}, Qt = {}, At = {}, or = {}, wr = null, Gt = 0, ee = [], se = null, Se = [], Ue = {}, Ge = {}, Dt = [], Ut = 0, Jt = 0, nr = {}, this.events.publish("destroy"), this.vFS && (Object.keys(this.vFS).forEach((W) => {
|
|
56026
|
+
delete this.vFS[W];
|
|
56027
|
+
}), this.vFS = {}), Ie = [], Ve = [], pe = [], Object.keys(this).forEach((W) => {
|
|
56028
|
+
W != "destory" && delete this[W];
|
|
56029
56029
|
});
|
|
56030
|
-
}, Pt = function
|
|
56031
|
-
if (!(this instanceof
|
|
56032
|
-
return new
|
|
56030
|
+
}, Pt = function W(V, ye, Fe, We, Ze, lt) {
|
|
56031
|
+
if (!(this instanceof W))
|
|
56032
|
+
return new W(V, ye, Fe, We, Ze, lt);
|
|
56033
56033
|
isNaN(V) && (V = 1), isNaN(ye) && (ye = 0), isNaN(Fe) && (Fe = 0), isNaN(We) && (We = 1), isNaN(Ze) && (Ze = 0), isNaN(lt) && (lt = 0), this._matrix = [V, ye, Fe, We, Ze, lt];
|
|
56034
56034
|
};
|
|
56035
56035
|
Object.defineProperty(Pt.prototype, "sx", {
|
|
@@ -56132,40 +56132,40 @@ function jsPDF(a) {
|
|
|
56132
56132
|
get: function() {
|
|
56133
56133
|
return !(this.sx !== 1 || this.shy !== 0 || this.shx !== 0 || this.sy !== 1 || this.tx !== 0 || this.ty !== 0);
|
|
56134
56134
|
}
|
|
56135
|
-
}), Pt.prototype.join = function(
|
|
56136
|
-
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(L).join(
|
|
56137
|
-
}, Pt.prototype.multiply = function(
|
|
56138
|
-
var V =
|
|
56135
|
+
}), Pt.prototype.join = function(W) {
|
|
56136
|
+
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(L).join(W);
|
|
56137
|
+
}, Pt.prototype.multiply = function(W) {
|
|
56138
|
+
var V = W.sx * this.sx + W.shy * this.shx, ye = W.sx * this.shy + W.shy * this.sy, Fe = W.shx * this.sx + W.sy * this.shx, We = W.shx * this.shy + W.sy * this.sy, Ze = W.tx * this.sx + W.ty * this.shx + this.tx, lt = W.tx * this.shy + W.ty * this.sy + this.ty;
|
|
56139
56139
|
return new Pt(V, ye, Fe, We, Ze, lt);
|
|
56140
56140
|
}, Pt.prototype.decompose = function() {
|
|
56141
|
-
var
|
|
56142
|
-
|
|
56143
|
-
var ft =
|
|
56144
|
-
ye -=
|
|
56141
|
+
var W = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty, lt = Math.sqrt(W * W + V * V);
|
|
56142
|
+
W /= lt, V /= lt;
|
|
56143
|
+
var ft = W * ye + V * Fe;
|
|
56144
|
+
ye -= W * ft, Fe -= V * ft;
|
|
56145
56145
|
var mt = Math.sqrt(ye * ye + Fe * Fe);
|
|
56146
|
-
return ye /= mt, Fe /= mt, ft /= mt,
|
|
56146
|
+
return ye /= mt, Fe /= mt, ft /= mt, W * Fe < V * ye && (W = -W, V = -V, ft = -ft, lt = -lt), {
|
|
56147
56147
|
scale: new Pt(lt, 0, 0, mt, 0, 0),
|
|
56148
56148
|
translate: new Pt(1, 0, 0, 1, We, Ze),
|
|
56149
|
-
rotate: new Pt(
|
|
56149
|
+
rotate: new Pt(W, V, -V, W, 0, 0),
|
|
56150
56150
|
skew: new Pt(1, 0, ft, 1, 0, 0)
|
|
56151
56151
|
};
|
|
56152
|
-
}, Pt.prototype.toString = function(
|
|
56152
|
+
}, Pt.prototype.toString = function(W) {
|
|
56153
56153
|
return this.join(" ");
|
|
56154
56154
|
}, Pt.prototype.inversed = function() {
|
|
56155
|
-
var
|
|
56155
|
+
var W = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty, lt = 1 / (W * Fe - V * ye), ft = Fe * lt, mt = -V * lt, Bt = -ye * lt, Ht = W * lt, Kt = -ft * We - Bt * Ze, $t = -mt * We - Ht * Ze;
|
|
56156
56156
|
return new Pt(ft, mt, Bt, Ht, Kt, $t);
|
|
56157
|
-
}, Pt.prototype.applyToPoint = function(
|
|
56158
|
-
var V =
|
|
56157
|
+
}, Pt.prototype.applyToPoint = function(W) {
|
|
56158
|
+
var V = W.x * this.sx + W.y * this.shx + this.tx, ye = W.x * this.shy + W.y * this.sy + this.ty;
|
|
56159
56159
|
return new xo(V, ye);
|
|
56160
|
-
}, Pt.prototype.applyToRectangle = function(
|
|
56161
|
-
var V = this.applyToPoint(
|
|
56160
|
+
}, Pt.prototype.applyToRectangle = function(W) {
|
|
56161
|
+
var V = this.applyToPoint(W), ye = this.applyToPoint(new xo(W.x + W.w, W.y + W.h));
|
|
56162
56162
|
return new bo(V.x, V.y, ye.x - V.x, ye.y - V.y);
|
|
56163
56163
|
}, Pt.prototype.clone = function() {
|
|
56164
|
-
var
|
|
56165
|
-
return new Pt(
|
|
56164
|
+
var W = this.sx, V = this.shy, ye = this.shx, Fe = this.sy, We = this.tx, Ze = this.ty;
|
|
56165
|
+
return new Pt(W, V, ye, Fe, We, Ze);
|
|
56166
56166
|
}, g.Matrix = Pt;
|
|
56167
|
-
var Ot = g.matrixMult = function(
|
|
56168
|
-
return V.multiply(
|
|
56167
|
+
var Ot = g.matrixMult = function(W, V) {
|
|
56168
|
+
return V.multiply(W);
|
|
56169
56169
|
}, Cr = new Pt(1, 0, 0, 1, 0, 0);
|
|
56170
56170
|
g.unitMatrix = g.identityMatrix = Cr;
|
|
56171
56171
|
var Nr = function(V, ye) {
|
|
@@ -56174,17 +56174,17 @@ function jsPDF(a) {
|
|
|
56174
56174
|
ye.id = We, Qt[V] = We, St[We] = ye, se.publish("addPattern", ye);
|
|
56175
56175
|
}
|
|
56176
56176
|
};
|
|
56177
|
-
g.ShadingPattern = ShadingPattern, g.TilingPattern = TilingPattern, g.addShadingPattern = function(
|
|
56178
|
-
return M("addShadingPattern()"), Nr(
|
|
56179
|
-
}, g.beginTilingPattern = function(
|
|
56180
|
-
M("beginTilingPattern()"), wn(
|
|
56181
|
-
}, g.endTilingPattern = function(
|
|
56177
|
+
g.ShadingPattern = ShadingPattern, g.TilingPattern = TilingPattern, g.addShadingPattern = function(W, V) {
|
|
56178
|
+
return M("addShadingPattern()"), Nr(W, V), this;
|
|
56179
|
+
}, g.beginTilingPattern = function(W) {
|
|
56180
|
+
M("beginTilingPattern()"), wn(W.boundingBox[0], W.boundingBox[1], W.boundingBox[2] - W.boundingBox[0], W.boundingBox[3] - W.boundingBox[1], W.matrix);
|
|
56181
|
+
}, g.endTilingPattern = function(W, V) {
|
|
56182
56182
|
M("endTilingPattern()"), V.stream = pe[Pe].join(`
|
|
56183
|
-
`), Nr(
|
|
56183
|
+
`), Nr(W, V), se.publish("endTilingPattern", V), Dt.pop().restore();
|
|
56184
56184
|
};
|
|
56185
56185
|
var Xt = g.__private__.newObject = function() {
|
|
56186
|
-
var
|
|
56187
|
-
return tr(
|
|
56186
|
+
var W = jt();
|
|
56187
|
+
return tr(W, !0), W;
|
|
56188
56188
|
}, jt = g.__private__.newObjectDeferred = function() {
|
|
56189
56189
|
return ne++, xe[ne] = function() {
|
|
56190
56190
|
return ve;
|
|
@@ -56192,13 +56192,13 @@ function jsPDF(a) {
|
|
|
56192
56192
|
}, tr = function(V, ye) {
|
|
56193
56193
|
return ye = typeof ye == "boolean" ? ye : !1, xe[V] = ve, ye && we(V + " 0 obj"), V;
|
|
56194
56194
|
}, Vt = g.__private__.newAdditionalObject = function() {
|
|
56195
|
-
var
|
|
56196
|
-
objId:
|
|
56195
|
+
var W = jt(), V = {
|
|
56196
|
+
objId: W,
|
|
56197
56197
|
content: ""
|
|
56198
56198
|
};
|
|
56199
56199
|
return _e.push(V), V;
|
|
56200
|
-
}, Zt = jt(), lr = jt(), gr = g.__private__.decodeColorString = function(
|
|
56201
|
-
var V =
|
|
56200
|
+
}, Zt = jt(), lr = jt(), gr = g.__private__.decodeColorString = function(W) {
|
|
56201
|
+
var V = W.split(" ");
|
|
56202
56202
|
if (V.length === 2 && (V[1] === "g" || V[1] === "G")) {
|
|
56203
56203
|
var ye = parseFloat(V[0]);
|
|
56204
56204
|
V = [ye, ye, ye, "r"];
|
|
@@ -56209,12 +56209,12 @@ function jsPDF(a) {
|
|
|
56209
56209
|
for (var lt = "#", ft = 0; ft < 3; ft++)
|
|
56210
56210
|
lt += ("0" + Math.floor(parseFloat(V[ft]) * 255).toString(16)).slice(-2);
|
|
56211
56211
|
return lt;
|
|
56212
|
-
}, Rr = g.__private__.encodeColorString = function(
|
|
56212
|
+
}, Rr = g.__private__.encodeColorString = function(W) {
|
|
56213
56213
|
var V;
|
|
56214
|
-
typeof
|
|
56215
|
-
ch1:
|
|
56214
|
+
typeof W == "string" && (W = {
|
|
56215
|
+
ch1: W
|
|
56216
56216
|
});
|
|
56217
|
-
var ye =
|
|
56217
|
+
var ye = W.ch1, Fe = W.ch2, We = W.ch3, Ze = W.ch4, lt = W.pdfColorType === "draw" ? ["G", "RG", "K"] : ["g", "rg", "k"];
|
|
56218
56218
|
if (typeof ye == "string" && ye.charAt(0) !== "#") {
|
|
56219
56219
|
var ft = new RGBColor(ye);
|
|
56220
56220
|
if (ft.ok)
|
|
@@ -56230,7 +56230,7 @@ function jsPDF(a) {
|
|
|
56230
56230
|
if (typeof ye == "string")
|
|
56231
56231
|
V = ye + " " + lt[0];
|
|
56232
56232
|
else
|
|
56233
|
-
switch (
|
|
56233
|
+
switch (W.precision) {
|
|
56234
56234
|
case 2:
|
|
56235
56235
|
V = H(ye / 255) + " " + lt[0];
|
|
56236
56236
|
break;
|
|
@@ -56244,7 +56244,7 @@ function jsPDF(a) {
|
|
|
56244
56244
|
if (typeof ye == "string")
|
|
56245
56245
|
V = [ye, Fe, We, lt[1]].join(" ");
|
|
56246
56246
|
else
|
|
56247
|
-
switch (
|
|
56247
|
+
switch (W.precision) {
|
|
56248
56248
|
case 2:
|
|
56249
56249
|
V = [H(ye / 255), H(Fe / 255), H(We / 255), lt[1]].join(" ");
|
|
56250
56250
|
break;
|
|
@@ -56255,7 +56255,7 @@ function jsPDF(a) {
|
|
|
56255
56255
|
} else if (typeof ye == "string")
|
|
56256
56256
|
V = [ye, Fe, We, Ze, lt[2]].join(" ");
|
|
56257
56257
|
else
|
|
56258
|
-
switch (
|
|
56258
|
+
switch (W.precision) {
|
|
56259
56259
|
case 2:
|
|
56260
56260
|
V = [H(ye), H(Fe), H(We), H(Ze), lt[2]].join(" ");
|
|
56261
56261
|
break;
|
|
@@ -56266,9 +56266,9 @@ function jsPDF(a) {
|
|
|
56266
56266
|
return V;
|
|
56267
56267
|
}, hi = g.__private__.getFilters = function() {
|
|
56268
56268
|
return s;
|
|
56269
|
-
}, Or = g.__private__.putStream = function(
|
|
56270
|
-
|
|
56271
|
-
var V =
|
|
56269
|
+
}, Or = g.__private__.putStream = function(W) {
|
|
56270
|
+
W = W || {};
|
|
56271
|
+
var V = W.data || "", ye = W.filters || hi(), Fe = W.alreadyAppliedFilters || [], We = W.addLength1 || !1, Ze = V.length, lt = W.objectId, ft = function(br) {
|
|
56272
56272
|
return br;
|
|
56273
56273
|
};
|
|
56274
56274
|
if (f !== null && typeof lt > "u")
|
|
@@ -56276,7 +56276,7 @@ function jsPDF(a) {
|
|
|
56276
56276
|
f !== null && (ft = Pr.encryptor(lt, 0));
|
|
56277
56277
|
var mt = {};
|
|
56278
56278
|
ye === !0 && (ye = ["FlateEncode"]);
|
|
56279
|
-
var Bt =
|
|
56279
|
+
var Bt = W.additionalKeyValues || [];
|
|
56280
56280
|
typeof jsPDF.API.processDataByFilters < "u" ? mt = jsPDF.API.processDataByFilters(V, ye) : mt = {
|
|
56281
56281
|
data: V,
|
|
56282
56282
|
reverseChain: []
|
|
@@ -56310,9 +56310,9 @@ function jsPDF(a) {
|
|
|
56310
56310
|
for (var Sr = 0; Sr < Bt.length; Sr++)
|
|
56311
56311
|
we("/" + Bt[Sr].key + " " + Bt[Sr].value);
|
|
56312
56312
|
we(">>"), mt.data.length !== 0 && (we("stream"), we(ft(mt.data)), we("endstream"));
|
|
56313
|
-
}, Ur = g.__private__.putPage = function(
|
|
56314
|
-
var V =
|
|
56315
|
-
tr(Fe, !0), we("<</Type /Page"), we("/Parent " +
|
|
56313
|
+
}, Ur = g.__private__.putPage = function(W) {
|
|
56314
|
+
var V = W.number, ye = W.data, Fe = W.objId, We = W.contentsObjId;
|
|
56315
|
+
tr(Fe, !0), we("<</Type /Page"), we("/Parent " + W.rootDictionaryObjId + " 0 R"), we("/Resources " + W.resourceDictionaryObjId + " 0 R"), we("/MediaBox [" + parseFloat(L(W.mediaBox.bottomLeftX)) + " " + parseFloat(L(W.mediaBox.bottomLeftY)) + " " + L(W.mediaBox.topRightX) + " " + L(W.mediaBox.topRightY) + "]"), W.cropBox !== null && we("/CropBox [" + L(W.cropBox.bottomLeftX) + " " + L(W.cropBox.bottomLeftY) + " " + L(W.cropBox.topRightX) + " " + L(W.cropBox.topRightY) + "]"), W.bleedBox !== null && we("/BleedBox [" + L(W.bleedBox.bottomLeftX) + " " + L(W.bleedBox.bottomLeftY) + " " + L(W.bleedBox.topRightX) + " " + L(W.bleedBox.topRightY) + "]"), W.trimBox !== null && we("/TrimBox [" + L(W.trimBox.bottomLeftX) + " " + L(W.trimBox.bottomLeftY) + " " + L(W.trimBox.topRightX) + " " + L(W.trimBox.topRightY) + "]"), W.artBox !== null && we("/ArtBox [" + L(W.artBox.bottomLeftX) + " " + L(W.artBox.bottomLeftY) + " " + L(W.artBox.topRightX) + " " + L(W.artBox.topRightY) + "]"), typeof W.userUnit == "number" && W.userUnit !== 1 && we("/UserUnit " + W.userUnit), se.publish("putPage", {
|
|
56316
56316
|
objId: Fe,
|
|
56317
56317
|
pageContext: ee[V],
|
|
56318
56318
|
pageNumber: V,
|
|
@@ -56327,21 +56327,21 @@ Q`), tr(We, !0), Or({
|
|
|
56327
56327
|
objectId: We
|
|
56328
56328
|
}), we("endobj"), Fe;
|
|
56329
56329
|
}, Yr = g.__private__.putPages = function() {
|
|
56330
|
-
var
|
|
56331
|
-
for (
|
|
56332
|
-
ee[
|
|
56333
|
-
for (
|
|
56330
|
+
var W, V, ye = [];
|
|
56331
|
+
for (W = 1; W <= Gt; W++)
|
|
56332
|
+
ee[W].objId = jt(), ee[W].contentsObjId = jt();
|
|
56333
|
+
for (W = 1; W <= Gt; W++)
|
|
56334
56334
|
ye.push(Ur({
|
|
56335
|
-
number:
|
|
56336
|
-
data: pe[
|
|
56337
|
-
objId: ee[
|
|
56338
|
-
contentsObjId: ee[
|
|
56339
|
-
mediaBox: ee[
|
|
56340
|
-
cropBox: ee[
|
|
56341
|
-
bleedBox: ee[
|
|
56342
|
-
trimBox: ee[
|
|
56343
|
-
artBox: ee[
|
|
56344
|
-
userUnit: ee[
|
|
56335
|
+
number: W,
|
|
56336
|
+
data: pe[W],
|
|
56337
|
+
objId: ee[W].objId,
|
|
56338
|
+
contentsObjId: ee[W].contentsObjId,
|
|
56339
|
+
mediaBox: ee[W].mediaBox,
|
|
56340
|
+
cropBox: ee[W].cropBox,
|
|
56341
|
+
bleedBox: ee[W].bleedBox,
|
|
56342
|
+
trimBox: ee[W].trimBox,
|
|
56343
|
+
artBox: ee[W].artBox,
|
|
56344
|
+
userUnit: ee[W].userUnit,
|
|
56345
56345
|
rootDictionaryObjId: Zt,
|
|
56346
56346
|
resourceDictionaryObjId: lr
|
|
56347
56347
|
}));
|
|
@@ -56617,9 +56617,9 @@ Q`), tr(We, !0), Or({
|
|
|
56617
56617
|
mt.push(Kt), mt.push(Ht - (Kt << 8));
|
|
56618
56618
|
}
|
|
56619
56619
|
return String.fromCharCode.apply(void 0, mt);
|
|
56620
|
-
}, at = g.__private__.pdfEscape = g.pdfEscape = function(
|
|
56621
|
-
return ct(
|
|
56622
|
-
}, ut = g.__private__.beginPage = function(
|
|
56620
|
+
}, at = g.__private__.pdfEscape = g.pdfEscape = function(W, V) {
|
|
56621
|
+
return ct(W, V).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
|
|
56622
|
+
}, ut = g.__private__.beginPage = function(W) {
|
|
56623
56623
|
pe[++Gt] = [], ee[Gt] = {
|
|
56624
56624
|
objId: 0,
|
|
56625
56625
|
contentsObjId: 0,
|
|
@@ -56631,8 +56631,8 @@ Q`), tr(We, !0), Or({
|
|
|
56631
56631
|
mediaBox: {
|
|
56632
56632
|
bottomLeftX: 0,
|
|
56633
56633
|
bottomLeftY: 0,
|
|
56634
|
-
topRightX: Number(
|
|
56635
|
-
topRightY: Number(
|
|
56634
|
+
topRightX: Number(W[0]),
|
|
56635
|
+
topRightY: Number(W[1])
|
|
56636
56636
|
}
|
|
56637
56637
|
}, Yt(Gt), He(pe[Pe]);
|
|
56638
56638
|
}, vt = function(V, ye) {
|
|
@@ -56658,16 +56658,16 @@ Q`), tr(We, !0), Or({
|
|
|
56658
56658
|
var We = void 0, Ze;
|
|
56659
56659
|
return Fe = Fe || {}, V = V !== void 0 ? V : pt[xt].fontName, ye = ye !== void 0 ? ye : pt[xt].fontStyle, Ze = V.toLowerCase(), Tt[Ze] !== void 0 && Tt[Ze][ye] !== void 0 ? We = Tt[Ze][ye] : Tt[V] !== void 0 && Tt[V][ye] !== void 0 ? We = Tt[V][ye] : Fe.disableWarning === !1 && console$1.warn("Unable to look up font label for font '" + V + "', '" + ye + "'. Refer to getFontList() for available fonts."), !We && !Fe.noFallback && (We = Tt.times[ye], We == null && (We = Tt.times.normal)), We;
|
|
56660
56660
|
}, cr = g.__private__.putInfo = function() {
|
|
56661
|
-
var
|
|
56661
|
+
var W = Xt(), V = function(We) {
|
|
56662
56662
|
return We;
|
|
56663
56663
|
};
|
|
56664
|
-
f !== null && (V = Pr.encryptor(
|
|
56664
|
+
f !== null && (V = Pr.encryptor(W, 0)), we("<<"), we("/Producer (" + at(V("jsPDF " + jsPDF.version)) + ")");
|
|
56665
56665
|
for (var ye in _t)
|
|
56666
56666
|
_t.hasOwnProperty(ye) && _t[ye] && we("/" + ye.substr(0, 1).toUpperCase() + ye.substr(1) + " (" + at(V(_t[ye])) + ")");
|
|
56667
56667
|
we("/CreationDate (" + at(V(J)) + ")"), we(">>"), we("endobj");
|
|
56668
|
-
}, kr = g.__private__.putCatalog = function(
|
|
56669
|
-
|
|
56670
|
-
var V =
|
|
56668
|
+
}, kr = g.__private__.putCatalog = function(W) {
|
|
56669
|
+
W = W || {};
|
|
56670
|
+
var V = W.rootDictionaryObjId || Zt;
|
|
56671
56671
|
switch (Xt(), we("<<"), we("/Type /Catalog"), we("/Pages " + V + " 0 R"), Me || (Me = "fullwidth"), Me) {
|
|
56672
56672
|
case "fullwidth":
|
|
56673
56673
|
we("/OpenAction [3 0 R /FitH null]");
|
|
@@ -56706,19 +56706,19 @@ Q`), tr(We, !0), Or({
|
|
|
56706
56706
|
}, Qi = g.__private__.putHeader = function() {
|
|
56707
56707
|
we("%PDF-" + y), we("%ºß¬à");
|
|
56708
56708
|
}, Wo = g.__private__.putXRef = function() {
|
|
56709
|
-
var
|
|
56709
|
+
var W = "0000000000";
|
|
56710
56710
|
we("xref"), we("0 " + (ne + 1)), we("0000000000 65535 f ");
|
|
56711
56711
|
for (var V = 1; V <= ne; V++) {
|
|
56712
56712
|
var ye = xe[V];
|
|
56713
|
-
typeof ye == "function" ? we((
|
|
56713
|
+
typeof ye == "function" ? we((W + xe[V]()).slice(-10) + " 00000 n ") : typeof xe[V] < "u" ? we((W + xe[V]).slice(-10) + " 00000 n ") : we("0000000000 00000 n ");
|
|
56714
56714
|
}
|
|
56715
56715
|
}, Zr = g.__private__.buildDocument = function() {
|
|
56716
56716
|
Te(), He(Ie), se.publish("buildDocument"), Qi(), Yr(), ke(), be(), f !== null && mo(), cr(), kr();
|
|
56717
|
-
var
|
|
56718
|
-
return Wo(), Pi(), we("startxref"), we("" +
|
|
56717
|
+
var W = ve;
|
|
56718
|
+
return Wo(), Pi(), we("startxref"), we("" + W), we("%%EOF"), He(pe[Pe]), Ie.join(`
|
|
56719
56719
|
`);
|
|
56720
|
-
}, Ji = g.__private__.getBlob = function(
|
|
56721
|
-
return new Blob([he(
|
|
56720
|
+
}, Ji = g.__private__.getBlob = function(W) {
|
|
56721
|
+
return new Blob([he(W)], {
|
|
56722
56722
|
type: "application/pdf"
|
|
56723
56723
|
});
|
|
56724
56724
|
}, Ki = g.output = g.__private__.output = rt(function(V, ye) {
|
|
@@ -56821,20 +56821,20 @@ Q`), tr(We, !0), Or({
|
|
|
56821
56821
|
return f !== null ? Pr.encryptor(V, 0) : function(ye) {
|
|
56822
56822
|
return ye;
|
|
56823
56823
|
};
|
|
56824
|
-
}, un = g.__private__.getPageInfo = g.getPageInfo = function(
|
|
56825
|
-
if (isNaN(
|
|
56824
|
+
}, un = g.__private__.getPageInfo = g.getPageInfo = function(W) {
|
|
56825
|
+
if (isNaN(W) || W % 1 !== 0)
|
|
56826
56826
|
throw new Error("Invalid argument passed to jsPDF.getPageInfo");
|
|
56827
|
-
var V = ee[
|
|
56827
|
+
var V = ee[W].objId;
|
|
56828
56828
|
return {
|
|
56829
56829
|
objId: V,
|
|
56830
|
-
pageNumber:
|
|
56831
|
-
pageContext: ee[
|
|
56830
|
+
pageNumber: W,
|
|
56831
|
+
pageContext: ee[W]
|
|
56832
56832
|
};
|
|
56833
|
-
}, In = g.__private__.getPageInfoByObjId = function(
|
|
56834
|
-
if (isNaN(
|
|
56833
|
+
}, In = g.__private__.getPageInfoByObjId = function(W) {
|
|
56834
|
+
if (isNaN(W) || W % 1 !== 0)
|
|
56835
56835
|
throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");
|
|
56836
56836
|
for (var V in ee)
|
|
56837
|
-
if (ee[V].objId ===
|
|
56837
|
+
if (ee[V].objId === W)
|
|
56838
56838
|
break;
|
|
56839
56839
|
return un(V);
|
|
56840
56840
|
}, An = g.__private__.getCurrentPageInfo = g.getCurrentPageInfo = function() {
|
|
@@ -56848,39 +56848,39 @@ Q`), tr(We, !0), Or({
|
|
|
56848
56848
|
return vt.apply(this, arguments), this;
|
|
56849
56849
|
}, g.setPage = function() {
|
|
56850
56850
|
return Yt.apply(this, arguments), He.call(this, pe[Pe]), this;
|
|
56851
|
-
}, g.insertPage = function(
|
|
56852
|
-
return this.addPage(), this.movePage(Pe,
|
|
56853
|
-
}, g.movePage = function(
|
|
56851
|
+
}, g.insertPage = function(W) {
|
|
56852
|
+
return this.addPage(), this.movePage(Pe, W), this;
|
|
56853
|
+
}, g.movePage = function(W, V) {
|
|
56854
56854
|
var ye, Fe;
|
|
56855
|
-
if (
|
|
56856
|
-
ye = pe[
|
|
56857
|
-
for (var We =
|
|
56855
|
+
if (W > V) {
|
|
56856
|
+
ye = pe[W], Fe = ee[W];
|
|
56857
|
+
for (var We = W; We > V; We--)
|
|
56858
56858
|
pe[We] = pe[We - 1], ee[We] = ee[We - 1];
|
|
56859
56859
|
pe[V] = ye, ee[V] = Fe, this.setPage(V);
|
|
56860
|
-
} else if (
|
|
56861
|
-
ye = pe[
|
|
56862
|
-
for (var Ze =
|
|
56860
|
+
} else if (W < V) {
|
|
56861
|
+
ye = pe[W], Fe = ee[W];
|
|
56862
|
+
for (var Ze = W; Ze < V; Ze++)
|
|
56863
56863
|
pe[Ze] = pe[Ze + 1], ee[Ze] = ee[Ze + 1];
|
|
56864
56864
|
pe[V] = ye, ee[V] = Fe, this.setPage(V);
|
|
56865
56865
|
}
|
|
56866
56866
|
return this;
|
|
56867
56867
|
}, g.deletePage = function() {
|
|
56868
56868
|
return zt.apply(this, arguments), this;
|
|
56869
|
-
}, g.__private__.text = g.text = function(
|
|
56869
|
+
}, g.__private__.text = g.text = function(W, V, ye, Fe, We) {
|
|
56870
56870
|
Fe = Fe || {};
|
|
56871
56871
|
var Ze = Fe.scope || this, lt, ft, mt, Bt, Ht, Kt, $t, yr;
|
|
56872
|
-
if (typeof
|
|
56872
|
+
if (typeof W == "number" && typeof V == "number" && (typeof ye == "string" || Array.isArray(ye))) {
|
|
56873
56873
|
var Sr = ye;
|
|
56874
|
-
ye = V, V =
|
|
56874
|
+
ye = V, V = W, W = Sr;
|
|
56875
56875
|
}
|
|
56876
56876
|
var ur;
|
|
56877
56877
|
if (arguments[3] instanceof Pt ? (M("The transform parameter of text() with a Matrix value"), ur = We) : ($t = arguments[3], mt = arguments[4], Bt = arguments[5], (_typeof($t) !== "object" || $t === null) && (typeof mt == "string" && (Bt = mt, mt = null), typeof $t == "string" && (Bt = $t, $t = null), typeof $t == "number" && (mt = $t, $t = null), Fe = {
|
|
56878
56878
|
flags: $t,
|
|
56879
56879
|
angle: mt,
|
|
56880
56880
|
align: Bt
|
|
56881
|
-
})), isNaN(V) || isNaN(ye) || typeof
|
|
56881
|
+
})), isNaN(V) || isNaN(ye) || typeof W > "u" || W === null)
|
|
56882
56882
|
throw new Error("Invalid arguments passed to jsPDF.text");
|
|
56883
|
-
if (
|
|
56883
|
+
if (W.length === 0)
|
|
56884
56884
|
return Ze;
|
|
56885
56885
|
var br = "", Br = !1, Oi = typeof Fe.lineHeightFactor == "number" ? Fe.lineHeightFactor : $i, _o = Ze.internal.scaleFactor;
|
|
56886
56886
|
function fr(vr) {
|
|
@@ -56903,18 +56903,18 @@ Q`), tr(We, !0), Or({
|
|
|
56903
56903
|
return dr;
|
|
56904
56904
|
}
|
|
56905
56905
|
var io = !1, Qo = !0;
|
|
56906
|
-
if (typeof
|
|
56906
|
+
if (typeof W == "string")
|
|
56907
56907
|
io = !0;
|
|
56908
|
-
else if (Array.isArray(
|
|
56909
|
-
var Jr =
|
|
56908
|
+
else if (Array.isArray(W)) {
|
|
56909
|
+
var Jr = W.concat();
|
|
56910
56910
|
ft = [];
|
|
56911
56911
|
for (var Dr = Jr.length, si; Dr--; )
|
|
56912
56912
|
si = Jr.shift(), (typeof si != "string" || Array.isArray(si) && typeof si[0] != "string") && (Qo = !1);
|
|
56913
56913
|
io = Qo;
|
|
56914
56914
|
}
|
|
56915
56915
|
if (io === !1)
|
|
56916
|
-
throw new Error('Type of text must be string or Array. "' +
|
|
56917
|
-
typeof
|
|
56916
|
+
throw new Error('Type of text must be string or Array. "' + W + '" is not recognized.');
|
|
56917
|
+
typeof W == "string" && (W.match(/[\r?\n]/) ? W = [W.replace(/\r\n|\r|\n/g, "")] : W = [W]);
|
|
56918
56918
|
var oo = Ne / Ze.internal.scaleFactor, no = oo * (Oi - 1);
|
|
56919
56919
|
switch (Fe.baseline) {
|
|
56920
56920
|
case "bottom":
|
|
@@ -56930,10 +56930,10 @@ Q`), tr(We, !0), Or({
|
|
|
56930
56930
|
ye += oo / 2 - no;
|
|
56931
56931
|
break;
|
|
56932
56932
|
}
|
|
56933
|
-
if (Kt = Fe.maxWidth || 0, Kt > 0 && (typeof
|
|
56933
|
+
if (Kt = Fe.maxWidth || 0, Kt > 0 && (typeof W == "string" ? W = Ze.splitTextToSize(W, Kt) : Object.prototype.toString.call(W) === "[object Array]" && (W = W.reduce(function(vr, ar) {
|
|
56934
56934
|
return vr.concat(Ze.splitTextToSize(ar, Kt));
|
|
56935
56935
|
}, []))), lt = {
|
|
56936
|
-
text:
|
|
56936
|
+
text: W,
|
|
56937
56937
|
x: V,
|
|
56938
56938
|
y: ye,
|
|
56939
56939
|
options: Fe,
|
|
@@ -56943,7 +56943,7 @@ Q`), tr(We, !0), Or({
|
|
|
56943
56943
|
fonts: pt,
|
|
56944
56944
|
activeFontSize: Ne
|
|
56945
56945
|
}
|
|
56946
|
-
}, se.publish("preProcessText", lt),
|
|
56946
|
+
}, se.publish("preProcessText", lt), W = lt.text, Fe = lt.options, mt = Fe.angle, !(ur instanceof Pt) && mt && typeof mt == "number") {
|
|
56947
56947
|
mt *= Math.PI / 180, Fe.rotationDirection === 0 && (mt = -mt), D === _.ADVANCED && (mt = -mt);
|
|
56948
56948
|
var Jo = Math.cos(mt), Bi = Math.sin(mt);
|
|
56949
56949
|
ur = new Pt(Jo, Bi, -Bi, Jo, 0, 0);
|
|
@@ -57000,8 +57000,8 @@ Q`), tr(We, !0), Or({
|
|
|
57000
57000
|
noBOM: !0
|
|
57001
57001
|
}, Fe.flags);
|
|
57002
57002
|
var lo = [];
|
|
57003
|
-
if (Object.prototype.toString.call(
|
|
57004
|
-
ft = Xo(
|
|
57003
|
+
if (Object.prototype.toString.call(W) === "[object Array]") {
|
|
57004
|
+
ft = Xo(W);
|
|
57005
57005
|
var xi;
|
|
57006
57006
|
Bt !== "left" && (Kr = ft.map(function(vr) {
|
|
57007
57007
|
return Ze.getStringUnitWidth(vr, {
|
|
@@ -57013,29 +57013,29 @@ Q`), tr(We, !0), Or({
|
|
|
57013
57013
|
}));
|
|
57014
57014
|
var co = 0, bi;
|
|
57015
57015
|
if (Bt === "right") {
|
|
57016
|
-
V -= Kr[0],
|
|
57016
|
+
V -= Kr[0], W = [], Dr = ft.length;
|
|
57017
57017
|
for (var zi = 0; zi < Dr; zi++)
|
|
57018
|
-
zi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y(co - Kr[zi]), xi = -Ko),
|
|
57018
|
+
zi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y(co - Kr[zi]), xi = -Ko), W.push([ft[zi], bi, xi]), co = Kr[zi];
|
|
57019
57019
|
} else if (Bt === "center") {
|
|
57020
|
-
V -= Kr[0] / 2,
|
|
57020
|
+
V -= Kr[0] / 2, W = [], Dr = ft.length;
|
|
57021
57021
|
for (var Wi = 0; Wi < Dr; Wi++)
|
|
57022
|
-
Wi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y((co - Kr[Wi]) / 2), xi = -Ko),
|
|
57022
|
+
Wi === 0 ? (bi = Ni(V), xi = sr(ye)) : (bi = Y((co - Kr[Wi]) / 2), xi = -Ko), W.push([ft[Wi], bi, xi]), co = Kr[Wi];
|
|
57023
57023
|
} else if (Bt === "left") {
|
|
57024
|
-
|
|
57024
|
+
W = [], Dr = ft.length;
|
|
57025
57025
|
for (var To = 0; To < Dr; To++)
|
|
57026
|
-
|
|
57026
|
+
W.push(ft[To]);
|
|
57027
57027
|
} else if (Bt === "justify") {
|
|
57028
|
-
|
|
57028
|
+
W = [], Dr = ft.length, Kt = Kt !== 0 ? Kt : ao;
|
|
57029
57029
|
for (var ai = 0; ai < Dr; ai++)
|
|
57030
|
-
xi = ai === 0 ? sr(ye) : -Ko, bi = ai === 0 ? Ni(V) : 0, ai < Dr - 1 ? lo.push(L(Y((Kt - Kr[ai]) / (ft[ai].split("").length - 1)))) : lo.push(0),
|
|
57030
|
+
xi = ai === 0 ? sr(ye) : -Ko, bi = ai === 0 ? Ni(V) : 0, ai < Dr - 1 ? lo.push(L(Y((Kt - Kr[ai]) / (ft[ai].split("").length - 1)))) : lo.push(0), W.push([ft[ai], bi, xi]);
|
|
57031
57031
|
} else
|
|
57032
57032
|
throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');
|
|
57033
57033
|
}
|
|
57034
57034
|
var $o = typeof Fe.R2L == "boolean" ? Fe.R2L : Qe;
|
|
57035
|
-
$o === !0 && (
|
|
57035
|
+
$o === !0 && (W = qo(W, function(vr, ar, dr) {
|
|
57036
57036
|
return [vr.split("").reverse().join(""), ar, dr];
|
|
57037
57037
|
})), lt = {
|
|
57038
|
-
text:
|
|
57038
|
+
text: W,
|
|
57039
57039
|
x: V,
|
|
57040
57040
|
y: ye,
|
|
57041
57041
|
options: Fe,
|
|
@@ -57045,11 +57045,11 @@ Q`), tr(We, !0), Or({
|
|
|
57045
57045
|
fonts: pt,
|
|
57046
57046
|
activeFontSize: Ne
|
|
57047
57047
|
}
|
|
57048
|
-
}, se.publish("postProcessText", lt),
|
|
57048
|
+
}, se.publish("postProcessText", lt), W = lt.text, Br = lt.mutex.isHex || !1;
|
|
57049
57049
|
var en = pt[xt].encoding;
|
|
57050
|
-
(en === "WinAnsiEncoding" || en === "StandardEncoding") && (
|
|
57050
|
+
(en === "WinAnsiEncoding" || en === "StandardEncoding") && (W = qo(W, function(vr, ar, dr) {
|
|
57051
57051
|
return [fr(vr), ar, dr];
|
|
57052
|
-
})), ft = Xo(
|
|
57052
|
+
})), ft = Xo(W), W = [];
|
|
57053
57053
|
for (var Ei = 0, ho = 1, uo = Array.isArray(ft[0]) ? ho : Ei, Hr, Gr, Fi, ji = "", So = function(ar, dr, Fr) {
|
|
57054
57054
|
var xr = "";
|
|
57055
57055
|
return Fr instanceof Pt ? (typeof Fe.angle == "number" ? Fr = Ot(Fr, new Pt(1, 0, 0, 1, ar, dr)) : Fr = Ot(new Pt(1, 0, 0, 1, ar, dr), Fr), D === _.ADVANCED && (Fr = Ot(new Pt(1, 0, 0, -1, 0, 0), Fr)), xr = Fr.join(" ") + ` Tm
|
|
@@ -57065,37 +57065,37 @@ Q`), tr(We, !0), Or({
|
|
|
57065
57065
|
break;
|
|
57066
57066
|
}
|
|
57067
57067
|
typeof lo < "u" && typeof lo[Vr] < "u" && (ji = lo[Vr] + ` Tw
|
|
57068
|
-
`), Vr === 0 ?
|
|
57068
|
+
`), Vr === 0 ? W.push(ji + So(Hr, Gr, ur) + Fi) : uo === Ei ? W.push(ji + Fi) : uo === ho && W.push(ji + So(Hr, Gr, ur) + Fi);
|
|
57069
57069
|
}
|
|
57070
|
-
|
|
57071
|
-
T* `) :
|
|
57072
|
-
`),
|
|
57070
|
+
W = uo === Ei ? W.join(` Tj
|
|
57071
|
+
T* `) : W.join(` Tj
|
|
57072
|
+
`), W += ` Tj
|
|
57073
57073
|
`;
|
|
57074
57074
|
var li = `BT
|
|
57075
57075
|
/`;
|
|
57076
57076
|
return li += xt + " " + Ne + ` Tf
|
|
57077
57077
|
`, li += L(Ne * Oi) + ` TL
|
|
57078
57078
|
`, li += Hi + `
|
|
57079
|
-
`, li += br, li +=
|
|
57079
|
+
`, li += br, li += W, li += "ET", we(li), m[xt] = !0, Ze;
|
|
57080
57080
|
};
|
|
57081
|
-
var vo = g.__private__.clip = g.clip = function(
|
|
57082
|
-
return we(
|
|
57081
|
+
var vo = g.__private__.clip = g.clip = function(W) {
|
|
57082
|
+
return we(W === "evenodd" ? "W*" : "W"), this;
|
|
57083
57083
|
};
|
|
57084
57084
|
g.clipEvenOdd = function() {
|
|
57085
57085
|
return vo("evenodd");
|
|
57086
57086
|
}, g.__private__.discardPath = g.discardPath = function() {
|
|
57087
57087
|
return we("n"), this;
|
|
57088
57088
|
};
|
|
57089
|
-
var mi = g.__private__.isValidStyle = function(
|
|
57089
|
+
var mi = g.__private__.isValidStyle = function(W) {
|
|
57090
57090
|
var V = [void 0, null, "S", "D", "F", "DF", "FD", "f", "f*", "B", "B*", "n"], ye = !1;
|
|
57091
|
-
return V.indexOf(
|
|
57091
|
+
return V.indexOf(W) !== -1 && (ye = !0), ye;
|
|
57092
57092
|
};
|
|
57093
|
-
g.__private__.setDefaultPathOperation = g.setDefaultPathOperation = function(
|
|
57094
|
-
return mi(
|
|
57093
|
+
g.__private__.setDefaultPathOperation = g.setDefaultPathOperation = function(W) {
|
|
57094
|
+
return mi(W) && (u = W), this;
|
|
57095
57095
|
};
|
|
57096
|
-
var fn = g.__private__.getStyle = g.getStyle = function(
|
|
57096
|
+
var fn = g.__private__.getStyle = g.getStyle = function(W) {
|
|
57097
57097
|
var V = u;
|
|
57098
|
-
switch (
|
|
57098
|
+
switch (W) {
|
|
57099
57099
|
case "D":
|
|
57100
57100
|
case "S":
|
|
57101
57101
|
V = "S";
|
|
@@ -57111,7 +57111,7 @@ T* `) : z.join(` Tj
|
|
|
57111
57111
|
case "f*":
|
|
57112
57112
|
case "B":
|
|
57113
57113
|
case "B*":
|
|
57114
|
-
V =
|
|
57114
|
+
V = W;
|
|
57115
57115
|
break;
|
|
57116
57116
|
}
|
|
57117
57117
|
return V;
|
|
@@ -57120,24 +57120,24 @@ T* `) : z.join(` Tj
|
|
|
57120
57120
|
};
|
|
57121
57121
|
g.stroke = function() {
|
|
57122
57122
|
return we("S"), this;
|
|
57123
|
-
}, g.fill = function(
|
|
57124
|
-
return wo("f",
|
|
57125
|
-
}, g.fillEvenOdd = function(
|
|
57126
|
-
return wo("f*",
|
|
57127
|
-
}, g.fillStroke = function(
|
|
57128
|
-
return wo("B",
|
|
57129
|
-
}, g.fillStrokeEvenOdd = function(
|
|
57130
|
-
return wo("B*",
|
|
57123
|
+
}, g.fill = function(W) {
|
|
57124
|
+
return wo("f", W), this;
|
|
57125
|
+
}, g.fillEvenOdd = function(W) {
|
|
57126
|
+
return wo("f*", W), this;
|
|
57127
|
+
}, g.fillStroke = function(W) {
|
|
57128
|
+
return wo("B", W), this;
|
|
57129
|
+
}, g.fillStrokeEvenOdd = function(W) {
|
|
57130
|
+
return wo("B*", W), this;
|
|
57131
57131
|
};
|
|
57132
57132
|
var wo = function(V, ye) {
|
|
57133
57133
|
_typeof(ye) === "object" ? Mn(ye, V) : we(V);
|
|
57134
57134
|
}, Rt = function(V) {
|
|
57135
57135
|
V === null || D === _.ADVANCED && V === void 0 || (V = fn(V), we(V));
|
|
57136
57136
|
};
|
|
57137
|
-
function Ln(
|
|
57137
|
+
function Ln(W, V, ye, Fe, We) {
|
|
57138
57138
|
var Ze = new TilingPattern(V || this.boundingBox, ye || this.xStep, Fe || this.yStep, this.gState, We || this.matrix);
|
|
57139
57139
|
Ze.stream = this.stream;
|
|
57140
|
-
var lt =
|
|
57140
|
+
var lt = W + "$$" + this.cloneIndex++ + "$$";
|
|
57141
57141
|
return Nr(lt, Ze), Ze;
|
|
57142
57142
|
}
|
|
57143
57143
|
var Mn = function(V, ye) {
|
|
@@ -57166,27 +57166,27 @@ T* `) : z.join(` Tj
|
|
|
57166
57166
|
case "n":
|
|
57167
57167
|
return "W n";
|
|
57168
57168
|
}
|
|
57169
|
-
}, jo = g.moveTo = function(
|
|
57170
|
-
return we(L(Y(
|
|
57171
|
-
}, gn = g.lineTo = function(
|
|
57172
|
-
return we(L(Y(
|
|
57173
|
-
}, yi = g.curveTo = function(
|
|
57174
|
-
return we([L(Y(
|
|
57169
|
+
}, jo = g.moveTo = function(W, V) {
|
|
57170
|
+
return we(L(Y(W)) + " " + L(U(V)) + " m"), this;
|
|
57171
|
+
}, gn = g.lineTo = function(W, V) {
|
|
57172
|
+
return we(L(Y(W)) + " " + L(U(V)) + " l"), this;
|
|
57173
|
+
}, yi = g.curveTo = function(W, V, ye, Fe, We, Ze) {
|
|
57174
|
+
return we([L(Y(W)), L(U(V)), L(Y(ye)), L(U(Fe)), L(Y(We)), L(U(Ze)), "c"].join(" ")), this;
|
|
57175
57175
|
};
|
|
57176
|
-
g.__private__.line = g.line = function(
|
|
57177
|
-
if (isNaN(
|
|
57176
|
+
g.__private__.line = g.line = function(W, V, ye, Fe, We) {
|
|
57177
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57178
57178
|
throw new Error("Invalid arguments passed to jsPDF.line");
|
|
57179
|
-
return D === _.COMPAT ? this.lines([[ye -
|
|
57180
|
-
}, g.__private__.lines = g.lines = function(
|
|
57179
|
+
return D === _.COMPAT ? this.lines([[ye - W, Fe - V]], W, V, [1, 1], We || "S") : this.lines([[ye - W, Fe - V]], W, V, [1, 1]).stroke();
|
|
57180
|
+
}, g.__private__.lines = g.lines = function(W, V, ye, Fe, We, Ze) {
|
|
57181
57181
|
var lt, ft, mt, Bt, Ht, Kt, $t, yr, Sr, ur, br, Br;
|
|
57182
|
-
if (typeof
|
|
57182
|
+
if (typeof W == "number" && (Br = ye, ye = V, V = W, W = Br), Fe = Fe || [1, 1], Ze = Ze || !1, isNaN(V) || isNaN(ye) || !Array.isArray(W) || !Array.isArray(Fe) || !mi(We) || typeof Ze != "boolean")
|
|
57183
57183
|
throw new Error("Invalid arguments passed to jsPDF.lines");
|
|
57184
|
-
for (jo(V, ye), lt = Fe[0], ft = Fe[1], Bt =
|
|
57185
|
-
Ht =
|
|
57184
|
+
for (jo(V, ye), lt = Fe[0], ft = Fe[1], Bt = W.length, ur = V, br = ye, mt = 0; mt < Bt; mt++)
|
|
57185
|
+
Ht = W[mt], Ht.length === 2 ? (ur = Ht[0] * lt + ur, br = Ht[1] * ft + br, gn(ur, br)) : (Kt = Ht[0] * lt + ur, $t = Ht[1] * ft + br, yr = Ht[2] * lt + ur, Sr = Ht[3] * ft + br, ur = Ht[4] * lt + ur, br = Ht[5] * ft + br, yi(Kt, $t, yr, Sr, ur, br));
|
|
57186
57186
|
return Ze && pn(), Rt(We), this;
|
|
57187
|
-
}, g.path = function(
|
|
57188
|
-
for (var V = 0; V <
|
|
57189
|
-
var ye =
|
|
57187
|
+
}, g.path = function(W) {
|
|
57188
|
+
for (var V = 0; V < W.length; V++) {
|
|
57189
|
+
var ye = W[V], Fe = ye.c;
|
|
57190
57190
|
switch (ye.op) {
|
|
57191
57191
|
case "m":
|
|
57192
57192
|
jo(Fe[0], Fe[1]);
|
|
@@ -57203,53 +57203,53 @@ T* `) : z.join(` Tj
|
|
|
57203
57203
|
}
|
|
57204
57204
|
}
|
|
57205
57205
|
return this;
|
|
57206
|
-
}, g.__private__.rect = g.rect = function(
|
|
57207
|
-
if (isNaN(
|
|
57206
|
+
}, g.__private__.rect = g.rect = function(W, V, ye, Fe, We) {
|
|
57207
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57208
57208
|
throw new Error("Invalid arguments passed to jsPDF.rect");
|
|
57209
|
-
return D === _.COMPAT && (Fe = -Fe), we([L(Y(
|
|
57210
|
-
}, g.__private__.triangle = g.triangle = function(
|
|
57211
|
-
if (isNaN(
|
|
57209
|
+
return D === _.COMPAT && (Fe = -Fe), we([L(Y(W)), L(U(V)), L(Y(ye)), L(Y(Fe)), "re"].join(" ")), Rt(We), this;
|
|
57210
|
+
}, g.__private__.triangle = g.triangle = function(W, V, ye, Fe, We, Ze, lt) {
|
|
57211
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
|
|
57212
57212
|
throw new Error("Invalid arguments passed to jsPDF.triangle");
|
|
57213
57213
|
return this.lines(
|
|
57214
57214
|
[
|
|
57215
|
-
[ye -
|
|
57215
|
+
[ye - W, Fe - V],
|
|
57216
57216
|
// vector to point 2
|
|
57217
57217
|
[We - ye, Ze - Fe],
|
|
57218
57218
|
// vector to point 3
|
|
57219
|
-
[
|
|
57219
|
+
[W - We, V - Ze]
|
|
57220
57220
|
// closing vector back to point 1
|
|
57221
57221
|
],
|
|
57222
|
-
|
|
57222
|
+
W,
|
|
57223
57223
|
V,
|
|
57224
57224
|
// start of path
|
|
57225
57225
|
[1, 1],
|
|
57226
57226
|
lt,
|
|
57227
57227
|
!0
|
|
57228
57228
|
), this;
|
|
57229
|
-
}, g.__private__.roundedRect = g.roundedRect = function(
|
|
57230
|
-
if (isNaN(
|
|
57229
|
+
}, g.__private__.roundedRect = g.roundedRect = function(W, V, ye, Fe, We, Ze, lt) {
|
|
57230
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || isNaN(We) || isNaN(Ze) || !mi(lt))
|
|
57231
57231
|
throw new Error("Invalid arguments passed to jsPDF.roundedRect");
|
|
57232
57232
|
var ft = 4 / 3 * (Math.SQRT2 - 1);
|
|
57233
57233
|
return We = Math.min(We, ye * 0.5), Ze = Math.min(Ze, Fe * 0.5), this.lines(
|
|
57234
57234
|
[[ye - 2 * We, 0], [We * ft, 0, We, Ze - Ze * ft, We, Ze], [0, Fe - 2 * Ze], [0, Ze * ft, -(We * ft), Ze, -We, Ze], [-ye + 2 * We, 0], [-(We * ft), 0, -We, -(Ze * ft), -We, -Ze], [0, -Fe + 2 * Ze], [0, -(Ze * ft), We * ft, -Ze, We, -Ze]],
|
|
57235
|
-
|
|
57235
|
+
W + We,
|
|
57236
57236
|
V,
|
|
57237
57237
|
// start of path
|
|
57238
57238
|
[1, 1],
|
|
57239
57239
|
lt,
|
|
57240
57240
|
!0
|
|
57241
57241
|
), this;
|
|
57242
|
-
}, g.__private__.ellipse = g.ellipse = function(
|
|
57243
|
-
if (isNaN(
|
|
57242
|
+
}, g.__private__.ellipse = g.ellipse = function(W, V, ye, Fe, We) {
|
|
57243
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || isNaN(Fe) || !mi(We))
|
|
57244
57244
|
throw new Error("Invalid arguments passed to jsPDF.ellipse");
|
|
57245
57245
|
var Ze = 4 / 3 * (Math.SQRT2 - 1) * ye, lt = 4 / 3 * (Math.SQRT2 - 1) * Fe;
|
|
57246
|
-
return jo(
|
|
57247
|
-
}, g.__private__.circle = g.circle = function(
|
|
57248
|
-
if (isNaN(
|
|
57246
|
+
return jo(W + ye, V), yi(W + ye, V - lt, W + Ze, V - Fe, W, V - Fe), yi(W - Ze, V - Fe, W - ye, V - lt, W - ye, V), yi(W - ye, V + lt, W - Ze, V + Fe, W, V + Fe), yi(W + Ze, V + Fe, W + ye, V + lt, W + ye, V), Rt(We), this;
|
|
57247
|
+
}, g.__private__.circle = g.circle = function(W, V, ye, Fe) {
|
|
57248
|
+
if (isNaN(W) || isNaN(V) || isNaN(ye) || !mi(Fe))
|
|
57249
57249
|
throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
57250
|
-
return this.ellipse(
|
|
57251
|
-
}, g.setFont = function(
|
|
57252
|
-
return ye && (V = I(V, ye)), xt = hr(
|
|
57250
|
+
return this.ellipse(W, V, ye, ye, Fe);
|
|
57251
|
+
}, g.setFont = function(W, V, ye) {
|
|
57252
|
+
return ye && (V = I(V, ye)), xt = hr(W, V, {
|
|
57253
57253
|
disableWarning: !1
|
|
57254
57254
|
}), this;
|
|
57255
57255
|
};
|
|
@@ -57257,29 +57257,29 @@ T* `) : z.join(` Tj
|
|
|
57257
57257
|
return pt[hr.apply(g, arguments)];
|
|
57258
57258
|
};
|
|
57259
57259
|
g.__private__.getFontList = g.getFontList = function() {
|
|
57260
|
-
var
|
|
57260
|
+
var W = {}, V, ye;
|
|
57261
57261
|
for (V in Tt)
|
|
57262
57262
|
if (Tt.hasOwnProperty(V)) {
|
|
57263
|
-
|
|
57263
|
+
W[V] = [];
|
|
57264
57264
|
for (ye in Tt[V])
|
|
57265
|
-
Tt[V].hasOwnProperty(ye) &&
|
|
57265
|
+
Tt[V].hasOwnProperty(ye) && W[V].push(ye);
|
|
57266
57266
|
}
|
|
57267
|
-
return
|
|
57268
|
-
}, g.addFont = function(
|
|
57267
|
+
return W;
|
|
57268
|
+
}, g.addFont = function(W, V, ye, Fe, We) {
|
|
57269
57269
|
var Ze = ["StandardEncoding", "MacRomanEncoding", "Identity-H", "WinAnsiEncoding"];
|
|
57270
|
-
return arguments[3] && Ze.indexOf(arguments[3]) !== -1 ? We = arguments[3] : arguments[3] && Ze.indexOf(arguments[3]) == -1 && (ye = I(ye, Fe)), We = We || "Identity-H", Re.call(this,
|
|
57270
|
+
return arguments[3] && Ze.indexOf(arguments[3]) !== -1 ? We = arguments[3] : arguments[3] && Ze.indexOf(arguments[3]) == -1 && (ye = I(ye, Fe)), We = We || "Identity-H", Re.call(this, W, V, ye, We);
|
|
57271
57271
|
};
|
|
57272
57272
|
var Yo = a.lineWidth || 0.200025, mn = g.__private__.getLineWidth = g.getLineWidth = function() {
|
|
57273
57273
|
return Yo;
|
|
57274
|
-
}, yn = g.__private__.setLineWidth = g.setLineWidth = function(
|
|
57275
|
-
return Yo =
|
|
57274
|
+
}, yn = g.__private__.setLineWidth = g.setLineWidth = function(W) {
|
|
57275
|
+
return Yo = W, we(L(Y(W)) + " w"), this;
|
|
57276
57276
|
};
|
|
57277
|
-
g.__private__.setLineDash = jsPDF.API.setLineDash = jsPDF.API.setLineDashPattern = function(
|
|
57278
|
-
if (
|
|
57277
|
+
g.__private__.setLineDash = jsPDF.API.setLineDash = jsPDF.API.setLineDashPattern = function(W, V) {
|
|
57278
|
+
if (W = W || [], V = V || 0, isNaN(V) || !Array.isArray(W))
|
|
57279
57279
|
throw new Error("Invalid arguments passed to jsPDF.setLineDash");
|
|
57280
|
-
return
|
|
57280
|
+
return W = W.map(function(ye) {
|
|
57281
57281
|
return L(Y(ye));
|
|
57282
|
-
}).join(" "), V = L(Y(V)), we("[" +
|
|
57282
|
+
}).join(" "), V = L(Y(V)), we("[" + W + "] " + V + " d"), this;
|
|
57283
57283
|
};
|
|
57284
57284
|
var $i, Co = g.__private__.getLineHeight = g.getLineHeight = function() {
|
|
57285
57285
|
return Ne * $i;
|
|
@@ -57287,29 +57287,29 @@ T* `) : z.join(` Tj
|
|
|
57287
57287
|
g.__private__.getLineHeight = g.getLineHeight = function() {
|
|
57288
57288
|
return Ne * $i;
|
|
57289
57289
|
};
|
|
57290
|
-
var kn = g.__private__.setLineHeightFactor = g.setLineHeightFactor = function(
|
|
57291
|
-
return
|
|
57290
|
+
var kn = g.__private__.setLineHeightFactor = g.setLineHeightFactor = function(W) {
|
|
57291
|
+
return W = W || 1.15, typeof W == "number" && ($i = W), this;
|
|
57292
57292
|
}, Hn = g.__private__.getLineHeightFactor = g.getLineHeightFactor = function() {
|
|
57293
57293
|
return $i;
|
|
57294
57294
|
};
|
|
57295
57295
|
kn(a.lineHeight);
|
|
57296
|
-
var Ni = g.__private__.getHorizontalCoordinate = function(
|
|
57297
|
-
return Y(
|
|
57298
|
-
}, sr = g.__private__.getVerticalCoordinate = function(
|
|
57296
|
+
var Ni = g.__private__.getHorizontalCoordinate = function(W) {
|
|
57297
|
+
return Y(W);
|
|
57298
|
+
}, sr = g.__private__.getVerticalCoordinate = function(W) {
|
|
57299
57299
|
if (D === _.ADVANCED)
|
|
57300
|
-
return
|
|
57300
|
+
return W;
|
|
57301
57301
|
var V = ee[Pe].mediaBox.topRightY - ee[Pe].mediaBox.bottomLeftY;
|
|
57302
|
-
return V - Y(
|
|
57303
|
-
}, vi = g.__private__.getHorizontalCoordinateString = g.getHorizontalCoordinateString = function(
|
|
57304
|
-
return L(Ni(
|
|
57305
|
-
}, ki = g.__private__.getVerticalCoordinateString = g.getVerticalCoordinateString = function(
|
|
57306
|
-
return L(sr(
|
|
57302
|
+
return V - Y(W);
|
|
57303
|
+
}, vi = g.__private__.getHorizontalCoordinateString = g.getHorizontalCoordinateString = function(W) {
|
|
57304
|
+
return L(Ni(W));
|
|
57305
|
+
}, ki = g.__private__.getVerticalCoordinateString = g.getVerticalCoordinateString = function(W) {
|
|
57306
|
+
return L(sr(W));
|
|
57307
57307
|
}, eo = a.strokeColor || "0 G";
|
|
57308
57308
|
g.__private__.getStrokeColor = g.getDrawColor = function() {
|
|
57309
57309
|
return gr(eo);
|
|
57310
|
-
}, g.__private__.setStrokeColor = g.setDrawColor = function(
|
|
57310
|
+
}, g.__private__.setStrokeColor = g.setDrawColor = function(W, V, ye, Fe) {
|
|
57311
57311
|
var We = {
|
|
57312
|
-
ch1:
|
|
57312
|
+
ch1: W,
|
|
57313
57313
|
ch2: V,
|
|
57314
57314
|
ch3: ye,
|
|
57315
57315
|
ch4: Fe,
|
|
@@ -57321,9 +57321,9 @@ T* `) : z.join(` Tj
|
|
|
57321
57321
|
var to = a.fillColor || "0 g";
|
|
57322
57322
|
g.__private__.getFillColor = g.getFillColor = function() {
|
|
57323
57323
|
return gr(to);
|
|
57324
|
-
}, g.__private__.setFillColor = g.setFillColor = function(
|
|
57324
|
+
}, g.__private__.setFillColor = g.setFillColor = function(W, V, ye, Fe) {
|
|
57325
57325
|
var We = {
|
|
57326
|
-
ch1:
|
|
57326
|
+
ch1: W,
|
|
57327
57327
|
ch2: V,
|
|
57328
57328
|
ch3: ye,
|
|
57329
57329
|
ch4: Fe,
|
|
@@ -57335,9 +57335,9 @@ T* `) : z.join(` Tj
|
|
|
57335
57335
|
var Hi = a.textColor || "0 g", vn = g.__private__.getTextColor = g.getTextColor = function() {
|
|
57336
57336
|
return gr(Hi);
|
|
57337
57337
|
};
|
|
57338
|
-
g.__private__.setTextColor = g.setTextColor = function(
|
|
57338
|
+
g.__private__.setTextColor = g.setTextColor = function(W, V, ye, Fe) {
|
|
57339
57339
|
var We = {
|
|
57340
|
-
ch1:
|
|
57340
|
+
ch1: W,
|
|
57341
57341
|
ch2: V,
|
|
57342
57342
|
ch3: ye,
|
|
57343
57343
|
ch4: Fe,
|
|
@@ -57349,10 +57349,10 @@ T* `) : z.join(` Tj
|
|
|
57349
57349
|
var Ti = a.charSpace, wi = g.__private__.getCharSpace = g.getCharSpace = function() {
|
|
57350
57350
|
return parseFloat(Ti || 0);
|
|
57351
57351
|
};
|
|
57352
|
-
g.__private__.setCharSpace = g.setCharSpace = function(
|
|
57353
|
-
if (isNaN(
|
|
57352
|
+
g.__private__.setCharSpace = g.setCharSpace = function(W) {
|
|
57353
|
+
if (isNaN(W))
|
|
57354
57354
|
throw new Error("Invalid argument passed to jsPDF.setCharSpace");
|
|
57355
|
-
return Ti =
|
|
57355
|
+
return Ti = W, this;
|
|
57356
57356
|
};
|
|
57357
57357
|
var qr = 0;
|
|
57358
57358
|
g.CapJoinStyles = {
|
|
@@ -57369,24 +57369,24 @@ T* `) : z.join(` Tj
|
|
|
57369
57369
|
project: 2,
|
|
57370
57370
|
square: 2,
|
|
57371
57371
|
bevel: 2
|
|
57372
|
-
}, g.__private__.setLineCap = g.setLineCap = function(
|
|
57373
|
-
var V = g.CapJoinStyles[
|
|
57372
|
+
}, g.__private__.setLineCap = g.setLineCap = function(W) {
|
|
57373
|
+
var V = g.CapJoinStyles[W];
|
|
57374
57374
|
if (V === void 0)
|
|
57375
|
-
throw new Error("Line cap style of '" +
|
|
57375
|
+
throw new Error("Line cap style of '" + W + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
|
|
57376
57376
|
return qr = V, we(V + " J"), this;
|
|
57377
57377
|
};
|
|
57378
57378
|
var Ci = 0;
|
|
57379
|
-
g.__private__.setLineJoin = g.setLineJoin = function(
|
|
57380
|
-
var V = g.CapJoinStyles[
|
|
57379
|
+
g.__private__.setLineJoin = g.setLineJoin = function(W) {
|
|
57380
|
+
var V = g.CapJoinStyles[W];
|
|
57381
57381
|
if (V === void 0)
|
|
57382
|
-
throw new Error("Line join style of '" +
|
|
57382
|
+
throw new Error("Line join style of '" + W + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
|
|
57383
57383
|
return Ci = V, we(V + " j"), this;
|
|
57384
|
-
}, g.__private__.setLineMiterLimit = g.__private__.setMiterLimit = g.setLineMiterLimit = g.setMiterLimit = function(
|
|
57385
|
-
if (
|
|
57384
|
+
}, g.__private__.setLineMiterLimit = g.__private__.setMiterLimit = g.setLineMiterLimit = g.setMiterLimit = function(W) {
|
|
57385
|
+
if (W = W || 0, isNaN(W))
|
|
57386
57386
|
throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");
|
|
57387
|
-
return we(L(Y(
|
|
57388
|
-
}, g.GState = GState, g.setGState = function(
|
|
57389
|
-
typeof
|
|
57387
|
+
return we(L(Y(W)) + " M"), this;
|
|
57388
|
+
}, g.GState = GState, g.setGState = function(W) {
|
|
57389
|
+
typeof W == "string" ? W = At[or[W]] : W = Qr(null, W), W.equals(wr) || (we("/" + W.id + " gs"), wr = W);
|
|
57390
57390
|
};
|
|
57391
57391
|
var Qr = function(V, ye) {
|
|
57392
57392
|
if (!(V && or[V])) {
|
|
@@ -57405,8 +57405,8 @@ T* `) : z.join(` Tj
|
|
|
57405
57405
|
return V && (or[V] = ye.id), se.publish("addGState", ye), ye;
|
|
57406
57406
|
}
|
|
57407
57407
|
};
|
|
57408
|
-
g.addGState = function(
|
|
57409
|
-
return Qr(
|
|
57408
|
+
g.addGState = function(W, V) {
|
|
57409
|
+
return Qr(W, V), this;
|
|
57410
57410
|
}, g.saveGraphicsState = function() {
|
|
57411
57411
|
return we("q"), It.push({
|
|
57412
57412
|
key: xt,
|
|
@@ -57415,12 +57415,12 @@ T* `) : z.join(` Tj
|
|
|
57415
57415
|
}), this;
|
|
57416
57416
|
}, g.restoreGraphicsState = function() {
|
|
57417
57417
|
we("Q");
|
|
57418
|
-
var
|
|
57419
|
-
return xt =
|
|
57420
|
-
}, g.setCurrentTransformationMatrix = function(
|
|
57421
|
-
return we(
|
|
57422
|
-
}, g.comment = function(
|
|
57423
|
-
return we("#" +
|
|
57418
|
+
var W = It.pop();
|
|
57419
|
+
return xt = W.key, Ne = W.size, Hi = W.color, wr = null, this;
|
|
57420
|
+
}, g.setCurrentTransformationMatrix = function(W) {
|
|
57421
|
+
return we(W.toString() + " cm"), this;
|
|
57422
|
+
}, g.comment = function(W) {
|
|
57423
|
+
return we("#" + W), this;
|
|
57424
57424
|
};
|
|
57425
57425
|
var xo = function(V, ye) {
|
|
57426
57426
|
var Fe = V || 0;
|
|
@@ -57491,15 +57491,15 @@ T* `) : z.join(` Tj
|
|
|
57491
57491
|
var ye = new Zo(), Fe = "Xo" + (Object.keys(Ue).length + 1).toString(10);
|
|
57492
57492
|
ye.id = Fe, Ge[V] = Fe, Ue[Fe] = ye, se.publish("addFormObject", ye), Dt.pop().restore();
|
|
57493
57493
|
};
|
|
57494
|
-
g.beginFormObject = function(
|
|
57495
|
-
return wn(
|
|
57496
|
-
}, g.endFormObject = function(
|
|
57497
|
-
return On(
|
|
57498
|
-
}, g.doFormObject = function(
|
|
57499
|
-
var ye = Ue[Ge[
|
|
57494
|
+
g.beginFormObject = function(W, V, ye, Fe, We) {
|
|
57495
|
+
return wn(W, V, ye, Fe, We), this;
|
|
57496
|
+
}, g.endFormObject = function(W) {
|
|
57497
|
+
return On(W), this;
|
|
57498
|
+
}, g.doFormObject = function(W, V) {
|
|
57499
|
+
var ye = Ue[Ge[W]];
|
|
57500
57500
|
return we("q"), we(V.toString() + " cm"), we("/" + ye.id + " Do"), we("Q"), this;
|
|
57501
|
-
}, g.getFormObject = function(
|
|
57502
|
-
var V = Ue[Ge[
|
|
57501
|
+
}, g.getFormObject = function(W) {
|
|
57502
|
+
var V = Ue[Ge[W]];
|
|
57503
57503
|
return {
|
|
57504
57504
|
x: V.x,
|
|
57505
57505
|
y: V.y,
|
|
@@ -57507,10 +57507,10 @@ T* `) : z.join(` Tj
|
|
|
57507
57507
|
height: V.height,
|
|
57508
57508
|
matrix: V.matrix
|
|
57509
57509
|
};
|
|
57510
|
-
}, g.save = function(
|
|
57511
|
-
return
|
|
57510
|
+
}, g.save = function(W, V) {
|
|
57511
|
+
return W = W || "generated.pdf", V = V || {}, V.returnPromise = V.returnPromise || !1, V.returnPromise === !1 ? (saveAs(Ji(Zr()), W), typeof saveAs.unload == "function" && globalObject.setTimeout && setTimeout(saveAs.unload, 911), this) : new Promise(function(ye, Fe) {
|
|
57512
57512
|
try {
|
|
57513
|
-
var We = saveAs(Ji(Zr()),
|
|
57513
|
+
var We = saveAs(Ji(Zr()), W);
|
|
57514
57514
|
typeof saveAs.unload == "function" && globalObject.setTimeout && setTimeout(saveAs.unload, 911), ye(We);
|
|
57515
57515
|
} catch (Ze) {
|
|
57516
57516
|
Fe(Ze.message);
|
|
@@ -57518,19 +57518,19 @@ T* `) : z.join(` Tj
|
|
|
57518
57518
|
});
|
|
57519
57519
|
};
|
|
57520
57520
|
for (var Si in jsPDF.API)
|
|
57521
|
-
jsPDF.API.hasOwnProperty(Si) && (Si === "events" && jsPDF.API.events.length ? function(
|
|
57521
|
+
jsPDF.API.hasOwnProperty(Si) && (Si === "events" && jsPDF.API.events.length ? function(W, V) {
|
|
57522
57522
|
var ye, Fe, We;
|
|
57523
57523
|
for (We = V.length - 1; We !== -1; We--)
|
|
57524
|
-
ye = V[We][0], Fe = V[We][1],
|
|
57524
|
+
ye = V[We][0], Fe = V[We][1], W.subscribe.apply(W, [ye].concat(typeof Fe == "function" ? [Fe] : Fe));
|
|
57525
57525
|
}(se, jsPDF.API.events) : g[Si] = jsPDF.API[Si]);
|
|
57526
|
-
var ro = g.getPageWidth = function(
|
|
57527
|
-
return
|
|
57528
|
-
}, Go = g.setPageWidth = function(
|
|
57529
|
-
ee[
|
|
57530
|
-
}, Di = g.getPageHeight = function(
|
|
57531
|
-
return
|
|
57532
|
-
}, Vo = g.setPageHeight = function(
|
|
57533
|
-
ee[
|
|
57526
|
+
var ro = g.getPageWidth = function(W) {
|
|
57527
|
+
return W = W || Pe, (ee[W].mediaBox.topRightX - ee[W].mediaBox.bottomLeftX) / kt;
|
|
57528
|
+
}, Go = g.setPageWidth = function(W, V) {
|
|
57529
|
+
ee[W].mediaBox.topRightX = V * kt + ee[W].mediaBox.bottomLeftX;
|
|
57530
|
+
}, Di = g.getPageHeight = function(W) {
|
|
57531
|
+
return W = W || Pe, (ee[W].mediaBox.topRightY - ee[W].mediaBox.bottomLeftY) / kt;
|
|
57532
|
+
}, Vo = g.setPageHeight = function(W, V) {
|
|
57533
|
+
ee[W].mediaBox.topRightY = V * kt + ee[W].mediaBox.bottomLeftY;
|
|
57534
57534
|
};
|
|
57535
57535
|
return g.internal = {
|
|
57536
57536
|
pdfEscape: at,
|
|
@@ -57681,8 +57681,8 @@ var inherit = function a(t, r) {
|
|
|
57681
57681
|
f = f < 0 ? -f : f;
|
|
57682
57682
|
var p = function(Y, j, U) {
|
|
57683
57683
|
if (Y + 1 < s.length) {
|
|
57684
|
-
var X = j + " " + s[Y + 1],
|
|
57685
|
-
return
|
|
57684
|
+
var X = j + " " + s[Y + 1], z = calculateFontSpace(X, t, U).width, G = f - 2 * d;
|
|
57685
|
+
return z <= G;
|
|
57686
57686
|
} else
|
|
57687
57687
|
return !1;
|
|
57688
57688
|
};
|
|
@@ -59068,16 +59068,16 @@ jsPDF.AcroForm;
|
|
|
59068
59068
|
[80, 84]
|
|
59069
59069
|
//PT - OS/2 pointer
|
|
59070
59070
|
]
|
|
59071
|
-
}, s = a.__addimage__.getImageFileTypeByImageData = function(
|
|
59071
|
+
}, s = a.__addimage__.getImageFileTypeByImageData = function(z, G) {
|
|
59072
59072
|
G = G || r;
|
|
59073
59073
|
var J, ae, Ce = r, oe, me, ue;
|
|
59074
|
-
if (G === "RGBA" ||
|
|
59074
|
+
if (G === "RGBA" || z.data !== void 0 && z.data instanceof Uint8ClampedArray && "height" in z && "width" in z)
|
|
59075
59075
|
return "RGBA";
|
|
59076
|
-
if (B(
|
|
59076
|
+
if (B(z))
|
|
59077
59077
|
for (ue in n)
|
|
59078
59078
|
for (oe = n[ue], J = 0; J < oe.length; J += 1) {
|
|
59079
59079
|
for (me = !0, ae = 0; ae < oe[J].length; ae += 1)
|
|
59080
|
-
if (oe[J][ae] !== void 0 && oe[J][ae] !==
|
|
59080
|
+
if (oe[J][ae] !== void 0 && oe[J][ae] !== z[ae]) {
|
|
59081
59081
|
me = !1;
|
|
59082
59082
|
break;
|
|
59083
59083
|
}
|
|
@@ -59090,7 +59090,7 @@ jsPDF.AcroForm;
|
|
|
59090
59090
|
for (ue in n)
|
|
59091
59091
|
for (oe = n[ue], J = 0; J < oe.length; J += 1) {
|
|
59092
59092
|
for (me = !0, ae = 0; ae < oe[J].length; ae += 1)
|
|
59093
|
-
if (oe[J][ae] !== void 0 && oe[J][ae] !==
|
|
59093
|
+
if (oe[J][ae] !== void 0 && oe[J][ae] !== z.charCodeAt(ae)) {
|
|
59094
59094
|
me = !1;
|
|
59095
59095
|
break;
|
|
59096
59096
|
}
|
|
@@ -59100,7 +59100,7 @@ jsPDF.AcroForm;
|
|
|
59100
59100
|
}
|
|
59101
59101
|
}
|
|
59102
59102
|
return Ce === r && G !== r && (Ce = G), Ce;
|
|
59103
|
-
}, l = function
|
|
59103
|
+
}, l = function z(G) {
|
|
59104
59104
|
for (var J = this.internal.write, ae = this.internal.putStream, Ce = this.internal.getFilters, oe = Ce(); oe.indexOf("FlateEncode") !== -1; )
|
|
59105
59105
|
oe.splice(oe.indexOf("FlateEncode"), 1);
|
|
59106
59106
|
G.objectId = this.internal.newObject();
|
|
@@ -59160,7 +59160,7 @@ jsPDF.AcroForm;
|
|
|
59160
59160
|
decodeParameters: Ie,
|
|
59161
59161
|
data: G.sMask
|
|
59162
59162
|
};
|
|
59163
|
-
"filter" in G && (ve.filter = G.filter),
|
|
59163
|
+
"filter" in G && (ve.filter = G.filter), z.call(this, ve);
|
|
59164
59164
|
}
|
|
59165
59165
|
if (G.colorSpace === T.INDEXED) {
|
|
59166
59166
|
var _e = this.internal.newObject();
|
|
@@ -59278,22 +59278,22 @@ jsPDF.AcroForm;
|
|
|
59278
59278
|
FAST: "FAST",
|
|
59279
59279
|
MEDIUM: "MEDIUM",
|
|
59280
59280
|
SLOW: "SLOW"
|
|
59281
|
-
}, M = a.__addimage__.sHashCode = function(
|
|
59281
|
+
}, M = a.__addimage__.sHashCode = function(z) {
|
|
59282
59282
|
var G = 0, J, ae;
|
|
59283
|
-
if (typeof
|
|
59284
|
-
for (ae =
|
|
59285
|
-
G = (G << 5) - G +
|
|
59286
|
-
else if (B(
|
|
59287
|
-
for (ae =
|
|
59288
|
-
G = (G << 5) - G +
|
|
59283
|
+
if (typeof z == "string")
|
|
59284
|
+
for (ae = z.length, J = 0; J < ae; J++)
|
|
59285
|
+
G = (G << 5) - G + z.charCodeAt(J), G |= 0;
|
|
59286
|
+
else if (B(z))
|
|
59287
|
+
for (ae = z.byteLength / 2, J = 0; J < ae; J++)
|
|
59288
|
+
G = (G << 5) - G + z[J], G |= 0;
|
|
59289
59289
|
return G;
|
|
59290
|
-
}, k = a.__addimage__.validateStringAsBase64 = function(
|
|
59291
|
-
|
|
59290
|
+
}, k = a.__addimage__.validateStringAsBase64 = function(z) {
|
|
59291
|
+
z = z || "", z.toString().trim();
|
|
59292
59292
|
var G = !0;
|
|
59293
|
-
return
|
|
59294
|
-
}, L = a.__addimage__.extractImageFromDataUrl = function(
|
|
59295
|
-
|
|
59296
|
-
var G =
|
|
59293
|
+
return z.length === 0 && (G = !1), z.length % 4 !== 0 && (G = !1), /^[A-Za-z0-9+/]+$/.test(z.substr(0, z.length - 2)) === !1 && (G = !1), /^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(z.substr(-2)) === !1 && (G = !1), G;
|
|
59294
|
+
}, L = a.__addimage__.extractImageFromDataUrl = function(z) {
|
|
59295
|
+
z = z || "";
|
|
59296
|
+
var G = z.split("base64,"), J = null;
|
|
59297
59297
|
if (G.length === 2) {
|
|
59298
59298
|
var ae = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(G[0]);
|
|
59299
59299
|
Array.isArray(ae) && (J = {
|
|
@@ -59306,31 +59306,31 @@ jsPDF.AcroForm;
|
|
|
59306
59306
|
}, H = a.__addimage__.supportsArrayBuffer = function() {
|
|
59307
59307
|
return typeof ArrayBuffer < "u" && typeof Uint8Array < "u";
|
|
59308
59308
|
};
|
|
59309
|
-
a.__addimage__.isArrayBuffer = function(
|
|
59310
|
-
return H() &&
|
|
59309
|
+
a.__addimage__.isArrayBuffer = function(z) {
|
|
59310
|
+
return H() && z instanceof ArrayBuffer;
|
|
59311
59311
|
};
|
|
59312
|
-
var B = a.__addimage__.isArrayBufferView = function(
|
|
59313
|
-
return H() && typeof Uint32Array < "u" && (
|
|
59314
|
-
}, Y = a.__addimage__.binaryStringToUint8Array = function(
|
|
59315
|
-
for (var G =
|
|
59316
|
-
J[ae] =
|
|
59312
|
+
var B = a.__addimage__.isArrayBufferView = function(z) {
|
|
59313
|
+
return H() && typeof Uint32Array < "u" && (z instanceof Int8Array || z instanceof Uint8Array || typeof Uint8ClampedArray < "u" && z instanceof Uint8ClampedArray || z instanceof Int16Array || z instanceof Uint16Array || z instanceof Int32Array || z instanceof Uint32Array || z instanceof Float32Array || z instanceof Float64Array);
|
|
59314
|
+
}, Y = a.__addimage__.binaryStringToUint8Array = function(z) {
|
|
59315
|
+
for (var G = z.length, J = new Uint8Array(G), ae = 0; ae < G; ae++)
|
|
59316
|
+
J[ae] = z.charCodeAt(ae);
|
|
59317
59317
|
return J;
|
|
59318
|
-
}, j = a.__addimage__.arrayBufferToBinaryString = function(
|
|
59319
|
-
for (var G = "", J = B(
|
|
59318
|
+
}, j = a.__addimage__.arrayBufferToBinaryString = function(z) {
|
|
59319
|
+
for (var G = "", J = B(z) ? z : new Uint8Array(z), ae = 0; ae < J.length; ae += o)
|
|
59320
59320
|
G += String.fromCharCode.apply(null, J.subarray(ae, ae + o));
|
|
59321
|
-
return releaseArrayBuffer(
|
|
59321
|
+
return releaseArrayBuffer(z), G;
|
|
59322
59322
|
};
|
|
59323
59323
|
a.addImage = function() {
|
|
59324
|
-
var
|
|
59325
|
-
if (
|
|
59326
|
-
var ne =
|
|
59327
|
-
|
|
59324
|
+
var z, G, J, ae, Ce, oe, me, ue, Q;
|
|
59325
|
+
if (z = arguments[0], typeof arguments[1] == "number" ? (G = r, J = arguments[1], ae = arguments[2], Ce = arguments[3], oe = arguments[4], me = arguments[5], ue = arguments[6], Q = arguments[7]) : (G = arguments[1], J = arguments[2], ae = arguments[3], Ce = arguments[4], oe = arguments[5], me = arguments[6], ue = arguments[7], Q = arguments[8]), _typeof(z) === "object" && !v(z) && "imageData" in z) {
|
|
59326
|
+
var ne = z;
|
|
59327
|
+
z = ne.imageData, G = ne.format || G || r, J = ne.x || J || 0, ae = ne.y || ae || 0, Ce = ne.w || ne.width || Ce, oe = ne.h || ne.height || oe, me = ne.alias || me, ue = ne.compression || ue, Q = ne.rotation || ne.angle || Q;
|
|
59328
59328
|
}
|
|
59329
59329
|
var xe = this.internal.getFilters();
|
|
59330
59330
|
if (ue === void 0 && xe.indexOf("FlateEncode") !== -1 && (ue = "SLOW"), ue = "SLOW", isNaN(J) || isNaN(ae))
|
|
59331
59331
|
throw new Error("Invalid coordinates passed to jsPDF.addImage");
|
|
59332
59332
|
f.call(this);
|
|
59333
|
-
var Ie = U.call(this,
|
|
59333
|
+
var Ie = U.call(this, z, G, me, ue);
|
|
59334
59334
|
return E.call(this, J, ae, Ce, oe, Ie, Q), this;
|
|
59335
59335
|
};
|
|
59336
59336
|
var U = function(G, J, ae, Ce) {
|
|
@@ -59346,11 +59346,11 @@ jsPDF.AcroForm;
|
|
|
59346
59346
|
if (g(ae) && (ae = y(G)), oe = _.call(this, ae), oe || (H() && !(G instanceof Uint8Array) && J !== "RGBA" && (me = G, G = Y(G)), oe = this["process" + J.toUpperCase()](G, m.call(this), ae, u(Ce), me)), releaseArrayBuffer(G.data), !oe)
|
|
59347
59347
|
throw new Error("An unknown error occurred whilst processing the image.");
|
|
59348
59348
|
return oe.exifdata = ue, oe;
|
|
59349
|
-
}, X = a.__addimage__.convertBase64ToBinaryString = function(
|
|
59349
|
+
}, X = a.__addimage__.convertBase64ToBinaryString = function(z, G) {
|
|
59350
59350
|
G = typeof G == "boolean" ? G : !0;
|
|
59351
59351
|
var J, ae = "", Ce;
|
|
59352
|
-
if (typeof
|
|
59353
|
-
J = L(
|
|
59352
|
+
if (typeof z == "string") {
|
|
59353
|
+
J = L(z), Ce = J !== null ? J.data : z;
|
|
59354
59354
|
try {
|
|
59355
59355
|
ae = atob$1(Ce);
|
|
59356
59356
|
} catch (oe) {
|
|
@@ -59360,11 +59360,11 @@ jsPDF.AcroForm;
|
|
|
59360
59360
|
}
|
|
59361
59361
|
return ae;
|
|
59362
59362
|
};
|
|
59363
|
-
a.getImageProperties = function(
|
|
59363
|
+
a.getImageProperties = function(z) {
|
|
59364
59364
|
var G, J = "", ae;
|
|
59365
|
-
if (v(
|
|
59365
|
+
if (v(z) && (z = C(z)), typeof z == "string" && s(z) === r && (J = X(z, !1), J === "" && (J = a.loadFile(z) || ""), z = J), ae = s(z), !w(ae))
|
|
59366
59366
|
throw new Error("addImage does not support files of type '" + ae + "', please ensure that a plugin for '" + ae + "' support is added.");
|
|
59367
|
-
if (H() && !(
|
|
59367
|
+
if (H() && !(z instanceof Uint8Array) && (z = Y(z)), G = this["process" + ae.toUpperCase()](z), !G)
|
|
59368
59368
|
throw new Error("An unknown error occurred whilst processing the image");
|
|
59369
59369
|
return G.fileType = ae, G;
|
|
59370
59370
|
};
|
|
@@ -60015,12 +60015,12 @@ function releaseArrayBuffer(a) {
|
|
|
60015
60015
|
}
|
|
60016
60016
|
}
|
|
60017
60017
|
if (L) {
|
|
60018
|
-
var
|
|
60018
|
+
var z = {};
|
|
60019
60019
|
for (C = 0; C < y.length; C += 1)
|
|
60020
|
-
|
|
60021
|
-
var G = d.call(this,
|
|
60020
|
+
z[y[C]] = {}, z[y[C]].text = w[C], z[y[C]].align = v[C];
|
|
60021
|
+
var G = d.call(this, z, D);
|
|
60022
60022
|
M = y.map(function(oe) {
|
|
60023
|
-
return new l(u, f, D[oe], G,
|
|
60023
|
+
return new l(u, f, D[oe], G, z[oe].text, void 0, z[oe].align);
|
|
60024
60024
|
}), this.setTableHeaderRow(M), this.printHeaderRow(1, !1);
|
|
60025
60025
|
}
|
|
60026
60026
|
var J = m.reduce(function(oe, me) {
|
|
@@ -61056,7 +61056,7 @@ function parseFontFamily(a) {
|
|
|
61056
61056
|
return this.createLinearGradient();
|
|
61057
61057
|
};
|
|
61058
61058
|
var k = function(Q, ne, xe, Ie, ve, _e, pe, Pe, De) {
|
|
61059
|
-
for (var Ve =
|
|
61059
|
+
for (var Ve = z.call(this, xe, Ie, ve, _e), Te = 0; Te < Ve.length; Te++) {
|
|
61060
61060
|
var He = Ve[Te];
|
|
61061
61061
|
Te === 0 && (De ? B.call(this, He.x1 + Q, He.y1 + ne) : j.call(this, He.x1 + Q, He.y1 + ne)), X.call(this, Q, ne, He.x2, He.y2, He.x3, He.y3, He.x4, He.y4);
|
|
61062
61062
|
}
|
|
@@ -61141,7 +61141,7 @@ function parseFontFamily(a) {
|
|
|
61141
61141
|
return this.pdf.lines(Q, ne, xe, null, null);
|
|
61142
61142
|
}, X = function(Q, ne, xe, Ie, ve, _e, pe, Pe) {
|
|
61143
61143
|
this.pdf.internal.out([r(s(xe + Q)), r(l(Ie + ne)), r(s(ve + Q)), r(l(_e + ne)), r(s(pe + Q)), r(l(Pe + ne)), "c"].join(" "));
|
|
61144
|
-
},
|
|
61144
|
+
}, z = function(Q, ne, xe, Ie) {
|
|
61145
61145
|
for (var ve = 1e-5, _e = Math.PI * 2, pe = Math.PI / 2; ne > xe; )
|
|
61146
61146
|
ne = ne - _e;
|
|
61147
61147
|
var Pe = Math.abs(xe - ne);
|
|
@@ -61992,7 +61992,7 @@ var PNG = function() {
|
|
|
61992
61992
|
return new Uint8Array(0);
|
|
61993
61993
|
d = unzlibSync(d);
|
|
61994
61994
|
function g(y, w, v, C) {
|
|
61995
|
-
var _, D, E, T, I, M, k, L, H, B, Y, j, U, X,
|
|
61995
|
+
var _, D, E, T, I, M, k, L, H, B, Y, j, U, X, z, G, J, ae, Ce, oe, me, ue = Math.ceil((m.width - y) / v), Q = Math.ceil((m.height - w) / C), ne = m.width == ue && m.height == Q;
|
|
61996
61996
|
for (X = u * ue, j = ne ? f : new Uint8Array(X * Q), M = d.length, U = 0, D = 0; U < Q && p < M; ) {
|
|
61997
61997
|
switch (d[p++]) {
|
|
61998
61998
|
case 0:
|
|
@@ -62005,15 +62005,15 @@ var PNG = function() {
|
|
|
62005
62005
|
break;
|
|
62006
62006
|
case 2:
|
|
62007
62007
|
for (T = Ce = 0; Ce < X; T = Ce += 1)
|
|
62008
|
-
_ = d[p++], E = (T - T % u) / u,
|
|
62008
|
+
_ = d[p++], E = (T - T % u) / u, z = U && j[(U - 1) * X + E * u + T % u], j[D++] = (z + _) % 256;
|
|
62009
62009
|
break;
|
|
62010
62010
|
case 3:
|
|
62011
62011
|
for (T = oe = 0; oe < X; T = oe += 1)
|
|
62012
|
-
_ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u],
|
|
62012
|
+
_ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u], z = U && j[(U - 1) * X + E * u + T % u], j[D++] = (_ + Math.floor((I + z) / 2)) % 256;
|
|
62013
62013
|
break;
|
|
62014
62014
|
case 4:
|
|
62015
62015
|
for (T = me = 0; me < X; T = me += 1)
|
|
62016
|
-
_ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u], U === 0 ?
|
|
62016
|
+
_ = d[p++], E = (T - T % u) / u, I = T < u ? 0 : j[D - u], U === 0 ? z = G = 0 : (z = j[(U - 1) * X + E * u + T % u], G = E && j[(U - 1) * X + (E - 1) * u + T % u]), k = I + z - G, L = Math.abs(k - I), B = Math.abs(k - z), Y = Math.abs(k - G), L <= B && L <= Y ? H = I : B <= Y ? H = z : H = G, j[D++] = (_ + H) % 256;
|
|
62017
62017
|
break;
|
|
62018
62018
|
default:
|
|
62019
62019
|
console$1.warn(`Invalid filter algorithm: ${d[p - 1], d[p]}--png格式图片只包含[01234]`);
|
|
@@ -62210,7 +62210,7 @@ var PNG = function() {
|
|
|
62210
62210
|
return v;
|
|
62211
62211
|
};
|
|
62212
62212
|
a.processPNG = function(y, w, v, C) {
|
|
62213
|
-
var _, D = this.decode.FLATE_DECODE, E, T, I = "", M, k, L, H, B, Y, j, U, X,
|
|
62213
|
+
var _, D = this.decode.FLATE_DECODE, E, T, I = "", M, k, L, H, B, Y, j, U, X, z, G, J;
|
|
62214
62214
|
if (this.__addimage__.isArrayBuffer(y) && (y = new Uint8Array(y)), this.__addimage__.isArrayBufferView(y)) {
|
|
62215
62215
|
if (T = new PNG(y), y = T.imgData, E = T.bits, _ = T.colorSpace, k = T.colors, [4, 6].indexOf(T.colorType) !== -1) {
|
|
62216
62216
|
if (T.bits === 8) {
|
|
@@ -62218,15 +62218,15 @@ var PNG = function() {
|
|
|
62218
62218
|
var ae = T.pixelBitlength - T.bits;
|
|
62219
62219
|
G = 0, J = 0;
|
|
62220
62220
|
for (var Ce; G < Y; G++) {
|
|
62221
|
-
for (
|
|
62222
|
-
U[J++] =
|
|
62223
|
-
j[G] =
|
|
62221
|
+
for (z = B[G], Ce = 0; Ce < ae; )
|
|
62222
|
+
U[J++] = z >>> Ce & 255, Ce = Ce + T.bits;
|
|
62223
|
+
j[G] = z >>> Ce & 255;
|
|
62224
62224
|
}
|
|
62225
62225
|
}
|
|
62226
62226
|
if (T.bits === 16) {
|
|
62227
62227
|
B = new Uint32Array(T.decodePixels().buffer), Y = B.length, U = new Uint8Array(Y * (32 / T.pixelBitlength) * T.colors), j = new Uint8Array(Y * (32 / T.pixelBitlength)), X = T.colors > 1, G = 0, J = 0;
|
|
62228
62228
|
for (var oe = 0; G < Y; )
|
|
62229
|
-
|
|
62229
|
+
z = B[G++], U[J++] = z >>> 0 & 255, X && (U[J++] = z >>> 16 & 255, z = B[G++], U[J++] = z >>> 0 & 255), j[oe++] = z >>> 16 & 255;
|
|
62230
62230
|
E = 8;
|
|
62231
62231
|
}
|
|
62232
62232
|
t(C) ? (y = o(U, T.width * T.colors, T.colors, C), H = o(j, T.width, 1, C)) : (y = U, H = j, D = void 0);
|
|
@@ -62376,7 +62376,7 @@ function GifReader(a) {
|
|
|
62376
62376
|
}, this.frameInfo = function(X) {
|
|
62377
62377
|
if (X < 0 || X >= p.length) throw new Error("Frame index out of range.");
|
|
62378
62378
|
return p[X];
|
|
62379
|
-
}, this.decodeAndBlitFrameBGRA = function(X,
|
|
62379
|
+
}, this.decodeAndBlitFrameBGRA = function(X, z) {
|
|
62380
62380
|
var G = this.frameInfo(X), J = G.width * G.height, ae = new Uint8Array(J);
|
|
62381
62381
|
GifReaderLZWOutputIndexStream(a, G.data_offset, ae, J);
|
|
62382
62382
|
var Ce = G.palette_offset, oe = G.transparent_index;
|
|
@@ -62389,11 +62389,11 @@ function GifReader(a) {
|
|
|
62389
62389
|
Ie += 4;
|
|
62390
62390
|
else {
|
|
62391
62391
|
var Ve = a[Ce + De * 3], Te = a[Ce + De * 3 + 1], He = a[Ce + De * 3 + 2];
|
|
62392
|
-
|
|
62392
|
+
z[Ie++] = He, z[Ie++] = Te, z[Ie++] = Ve, z[Ie++] = 255;
|
|
62393
62393
|
}
|
|
62394
62394
|
--Q;
|
|
62395
62395
|
}
|
|
62396
|
-
}, this.decodeAndBlitFrameRGBA = function(X,
|
|
62396
|
+
}, this.decodeAndBlitFrameRGBA = function(X, z) {
|
|
62397
62397
|
var G = this.frameInfo(X), J = G.width * G.height, ae = new Uint8Array(J);
|
|
62398
62398
|
GifReaderLZWOutputIndexStream(a, G.data_offset, ae, J);
|
|
62399
62399
|
var Ce = G.palette_offset, oe = G.transparent_index;
|
|
@@ -62403,10 +62403,10 @@ function GifReader(a) {
|
|
|
62403
62403
|
for (var _e = 8, pe = 0, Pe = ae.length; pe < Pe; ++pe) {
|
|
62404
62404
|
var De = ae[pe];
|
|
62405
62405
|
if (Q === 0 && (Ie += ve, Q = me, Ie >= xe && (ve = ue * 4 + r * 4 * (_e - 1), Ie = ne + (me + ue) * (_e << 1), _e >>= 1)), De === oe)
|
|
62406
|
-
|
|
62406
|
+
z[Ie++] = 255, z[Ie++] = 255, z[Ie++] = 255, z[Ie++] = 255;
|
|
62407
62407
|
else {
|
|
62408
62408
|
var Ve = a[Ce + De * 3], Te = a[Ce + De * 3 + 1], He = a[Ce + De * 3 + 2];
|
|
62409
|
-
|
|
62409
|
+
z[Ie++] = Ve, z[Ie++] = Te, z[Ie++] = He, z[Ie++] = 255;
|
|
62410
62410
|
}
|
|
62411
62411
|
--Q;
|
|
62412
62412
|
}
|
|
@@ -62472,7 +62472,7 @@ function GifReaderLZWOutputIndexStream(a, t, r, o) {
|
|
|
62472
62472
|
*/
|
|
62473
62473
|
function JPEGEncoder(a) {
|
|
62474
62474
|
var t = Math.floor, r = new Array(64), o = new Array(64), n = new Array(64), s = new Array(64), l, c, d, u, f = new Array(65535), p = new Array(65535), m = new Array(64), g = new Array(64), y = [], w = 0, v = 7, C = new Array(64), _ = new Array(64), D = new Array(64), E = new Array(256), T = new Array(2048), I, M = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63], k = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], L = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], H = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], B = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], Y = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], j = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], U = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], X = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
|
|
62475
|
-
function
|
|
62475
|
+
function z(Te) {
|
|
62476
62476
|
for (var He = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], we = 0; we < 64; we++) {
|
|
62477
62477
|
var le = t((He[we] * Te + 50) / 100);
|
|
62478
62478
|
le = Math.min(Math.max(le, 1), 255), r[M[we]] = le;
|
|
@@ -62631,7 +62631,7 @@ function JPEGEncoder(a) {
|
|
|
62631
62631
|
function De(Te) {
|
|
62632
62632
|
if (Te = Math.min(Math.max(Te, 1), 100), I != Te) {
|
|
62633
62633
|
var He = Te < 50 ? Math.floor(5e3 / Te) : Math.floor(200 - Te * 2);
|
|
62634
|
-
|
|
62634
|
+
z(He), I = Te;
|
|
62635
62635
|
}
|
|
62636
62636
|
}
|
|
62637
62637
|
function Ve() {
|
|
@@ -62788,13 +62788,13 @@ function WebPDecoder(a) {
|
|
|
62788
62788
|
if (Y[j + X] != U.charCodeAt(X)) return !0;
|
|
62789
62789
|
return !1;
|
|
62790
62790
|
}
|
|
62791
|
-
function o(Y, j, U, X,
|
|
62792
|
-
for (var G = 0; G <
|
|
62791
|
+
function o(Y, j, U, X, z) {
|
|
62792
|
+
for (var G = 0; G < z; G++)
|
|
62793
62793
|
Y[j + G] = U[X + G];
|
|
62794
62794
|
}
|
|
62795
62795
|
function n(Y, j, U, X) {
|
|
62796
|
-
for (var
|
|
62797
|
-
Y[j +
|
|
62796
|
+
for (var z = 0; z < X; z++)
|
|
62797
|
+
Y[j + z] = U;
|
|
62798
62798
|
}
|
|
62799
62799
|
function s(Y) {
|
|
62800
62800
|
return new Int32Array(Y);
|
|
@@ -62805,17 +62805,17 @@ function WebPDecoder(a) {
|
|
|
62805
62805
|
return U;
|
|
62806
62806
|
}
|
|
62807
62807
|
function c() {
|
|
62808
|
-
function Y(U, X,
|
|
62809
|
-
for (var G =
|
|
62810
|
-
Y(U[J], X + 1,
|
|
62808
|
+
function Y(U, X, z) {
|
|
62809
|
+
for (var G = z[X], J = 0; J < G && (U.push(z.length > X + 1 ? [] : 0), !(z.length < X + 1)); J++)
|
|
62810
|
+
Y(U[J], X + 1, z);
|
|
62811
62811
|
}
|
|
62812
62812
|
var j = [];
|
|
62813
62813
|
return Y(j, 0, [3, 11]), j;
|
|
62814
62814
|
}
|
|
62815
62815
|
function d(Y, j) {
|
|
62816
|
-
function U(
|
|
62817
|
-
for (var ae = J[G], Ce = 0; Ce < ae && (
|
|
62818
|
-
U(
|
|
62816
|
+
function U(z, G, J) {
|
|
62817
|
+
for (var ae = J[G], Ce = 0; Ce < ae && (z.push(J.length > G + 1 ? [] : new j()), !(J.length < G + 1)); Ce++)
|
|
62818
|
+
U(z[Ce], G + 1, J);
|
|
62819
62819
|
}
|
|
62820
62820
|
var X = [];
|
|
62821
62821
|
return U(X, 0, Y), X;
|
|
@@ -62833,7 +62833,7 @@ function WebPDecoder(a) {
|
|
|
62833
62833
|
O -= R, N[F + O] = K;
|
|
62834
62834
|
while (0 < O);
|
|
62835
62835
|
}
|
|
62836
|
-
function
|
|
62836
|
+
function z(N, F, R, O, K, te) {
|
|
62837
62837
|
var re = F, ie = 1 << R, de, fe, Ee = s(16), Oe = s(16);
|
|
62838
62838
|
for (t(K != 0), t(O != null), t(N != null), t(0 < R), fe = 0; fe < K; ++fe) {
|
|
62839
62839
|
if (15 < O[fe]) return 0;
|
|
@@ -62869,7 +62869,7 @@ function WebPDecoder(a) {
|
|
|
62869
62869
|
function G(N, F, R, O, K) {
|
|
62870
62870
|
if (t(2328 >= K), 512 >= K) var te = s(512);
|
|
62871
62871
|
else if (te = s(K), te == null) return 0;
|
|
62872
|
-
return
|
|
62872
|
+
return z(N, F, R, O, K, te);
|
|
62873
62873
|
}
|
|
62874
62874
|
function J() {
|
|
62875
62875
|
this.value = this.g = 0;
|
|
@@ -64108,11 +64108,11 @@ function WebPDecoder(a) {
|
|
|
64108
64108
|
function Vo() {
|
|
64109
64109
|
this.nc = this.Ea = this.b = this.hc = 0, this.K = [], this.w = 0;
|
|
64110
64110
|
}
|
|
64111
|
-
function
|
|
64111
|
+
function W() {
|
|
64112
64112
|
this.ua = 0, this.Wa = new Qe(), this.vb = new Qe(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new Ce(), this.yc = new J();
|
|
64113
64113
|
}
|
|
64114
64114
|
function V() {
|
|
64115
|
-
this.xb = this.a = 0, this.l = new Re(), this.ca = new Ut(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new ve(), this.Pb = 0, this.wd = new ve(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new
|
|
64115
|
+
this.xb = this.a = 0, this.l = new Re(), this.ca = new Ut(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new ve(), this.Pb = 0, this.wd = new ve(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new W(), this.ab = 0, this.gc = l(4, Vo), this.Oc = 0;
|
|
64116
64116
|
}
|
|
64117
64117
|
function ye() {
|
|
64118
64118
|
this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Re(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;
|
|
@@ -64690,8 +64690,8 @@ function WebPDecoder(a) {
|
|
|
64690
64690
|
WebPRiffParser dominikhlbg@gmail.com
|
|
64691
64691
|
*/
|
|
64692
64692
|
function f(Y, j, U, X) {
|
|
64693
|
-
for (var
|
|
64694
|
-
if (Y[j +
|
|
64693
|
+
for (var z = 0; z < X; z++)
|
|
64694
|
+
if (Y[j + z] != U.charCodeAt(z)) return !0;
|
|
64695
64695
|
return !1;
|
|
64696
64696
|
}
|
|
64697
64697
|
function p(Y, j) {
|
|
@@ -64709,7 +64709,7 @@ function WebPDecoder(a) {
|
|
|
64709
64709
|
return (Y[j + 0] << 0 | Y[j + 1] << 8 | Y[j + 2] << 16 | Y[j + 3] << 24) >>> 0;
|
|
64710
64710
|
}
|
|
64711
64711
|
function w(Y, j) {
|
|
64712
|
-
var U = {}, X = 0,
|
|
64712
|
+
var U = {}, X = 0, z = !1, G = 0, J = 0;
|
|
64713
64713
|
if (U.frames = [], !f(Y, j, "RIFF", 4)) {
|
|
64714
64714
|
for (j += 4, y(Y, j) + 8, j += 8; j < Y.length; ) {
|
|
64715
64715
|
var ae = p(Y, j);
|
|
@@ -64722,7 +64722,7 @@ function WebPDecoder(a) {
|
|
|
64722
64722
|
case "VP8L":
|
|
64723
64723
|
typeof U.frames[X] > "u" && (U.frames[X] = {});
|
|
64724
64724
|
var Q = U.frames[X];
|
|
64725
|
-
Q.src_off =
|
|
64725
|
+
Q.src_off = z ? J : j - 8, Q.src_size = G + Ce + 8, X++, z && (z = !1, G = 0, J = 0);
|
|
64726
64726
|
break;
|
|
64727
64727
|
case "VP8X":
|
|
64728
64728
|
var Q = U.header = {};
|
|
@@ -64731,7 +64731,7 @@ function WebPDecoder(a) {
|
|
|
64731
64731
|
Q.canvas_width = 1 + g(Y, me), me += 3, Q.canvas_height = 1 + g(Y, me), me += 3;
|
|
64732
64732
|
break;
|
|
64733
64733
|
case "ALPH":
|
|
64734
|
-
|
|
64734
|
+
z = !0, G = oe + 8, J = j - 8;
|
|
64735
64735
|
break;
|
|
64736
64736
|
case "ANIM":
|
|
64737
64737
|
var Q = U.header;
|
|
@@ -65261,7 +65261,7 @@ WebPDecoder.prototype.getData = function() {
|
|
|
65261
65261
|
(function(a) {
|
|
65262
65262
|
function t() {
|
|
65263
65263
|
return function() {
|
|
65264
|
-
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-
|
|
65264
|
+
return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D47avd7h.mjs");
|
|
65265
65265
|
}().catch(function(r) {
|
|
65266
65266
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
65267
65267
|
}).then(function(r) {
|
|
@@ -65879,7 +65879,7 @@ end`, y;
|
|
|
65879
65879
|
_e++;
|
|
65880
65880
|
}
|
|
65881
65881
|
}
|
|
65882
|
-
},
|
|
65882
|
+
}, z = function(ae, Ce, oe) {
|
|
65883
65883
|
if (oe.hiLevel !== 0 && I)
|
|
65884
65884
|
for (var me = 0, ue; me < ae.length; me++)
|
|
65885
65885
|
Ce[me] === 1 && (ue = p.indexOf(ae[me]), ue >= 0 && (ae[me] = p[ue + 1]));
|
|
@@ -65887,7 +65887,7 @@ end`, y;
|
|
|
65887
65887
|
var me = ae.split(""), ue = {
|
|
65888
65888
|
hiLevel: M
|
|
65889
65889
|
};
|
|
65890
|
-
return oe || (oe = []), U(me, oe, ue),
|
|
65890
|
+
return oe || (oe = []), U(me, oe, ue), z(me, oe, ue), X(C + 1, me, Ce, oe, ue), X(C, me, Ce, oe, ue), me.join("");
|
|
65891
65891
|
};
|
|
65892
65892
|
return this.__bidiEngine__.doBidiReorder = function(J, ae, Ce) {
|
|
65893
65893
|
if (k(J, ae), !_ && E && !T)
|
|
@@ -66130,7 +66130,7 @@ var HeadTable = function(a) {
|
|
|
66130
66130
|
t.pos = m;
|
|
66131
66131
|
}
|
|
66132
66132
|
return a.encode = function(t, r) {
|
|
66133
|
-
var o, n, s, l, c, d, u, f, p, m, g, y, w, v, C, _, D, E, T, I, M, k, L, H, B, Y, j, U, X,
|
|
66133
|
+
var o, n, s, l, c, d, u, f, p, m, g, y, w, v, C, _, D, E, T, I, M, k, L, H, B, Y, j, U, X, z, G, J, ae, Ce, oe, me, ue, Q, ne, xe, Ie, ve, _e, pe, Pe, De;
|
|
66134
66134
|
switch (U = new Data(), l = Object.keys(t).sort(function(Ve, Te) {
|
|
66135
66135
|
return Ve - Te;
|
|
66136
66136
|
}), r) {
|
|
@@ -66153,8 +66153,8 @@ var HeadTable = function(a) {
|
|
|
66153
66153
|
maxGlyphID: w + 1
|
|
66154
66154
|
};
|
|
66155
66155
|
case "unicode":
|
|
66156
|
-
for (Y = [], p = [], D = 0, _ = {}, o = {}, C = u = null,
|
|
66157
|
-
n = l[
|
|
66156
|
+
for (Y = [], p = [], D = 0, _ = {}, o = {}, C = u = null, z = 0, Ce = l.length; z < Ce; z++)
|
|
66157
|
+
n = l[z], T = t[n], _[T] == null && (_[T] = ++D), o[n] = {
|
|
66158
66158
|
old: T,
|
|
66159
66159
|
new: _[T]
|
|
66160
66160
|
}, c = _[T] - n, (C == null || c !== u) && (C && p.push(C), Y.push(n), u = c), C = n;
|
|
@@ -67812,10 +67812,10 @@ function requireLocalforage() {
|
|
|
67812
67812
|
j(T[B], B);
|
|
67813
67813
|
return Y;
|
|
67814
67814
|
function j(U, X) {
|
|
67815
|
-
I.resolve(U).then(
|
|
67815
|
+
I.resolve(U).then(z, function(G) {
|
|
67816
67816
|
k || (k = !0, c.reject(Y, G));
|
|
67817
67817
|
});
|
|
67818
|
-
function
|
|
67818
|
+
function z(G) {
|
|
67819
67819
|
L[X] = G, ++H === M && !k && (k = !0, c.resolve(Y, L));
|
|
67820
67820
|
}
|
|
67821
67821
|
}
|
|
@@ -68004,7 +68004,7 @@ function requireLocalforage() {
|
|
|
68004
68004
|
}
|
|
68005
68005
|
return !1;
|
|
68006
68006
|
}
|
|
68007
|
-
function
|
|
68007
|
+
function z(ge) {
|
|
68008
68008
|
return new p(function(Ae, be) {
|
|
68009
68009
|
var ke = new FileReader();
|
|
68010
68010
|
ke.onerror = be, ke.onloadend = function(je) {
|
|
@@ -68167,7 +68167,7 @@ function requireLocalforage() {
|
|
|
68167
68167
|
var rt;
|
|
68168
68168
|
ke.ready().then(function() {
|
|
68169
68169
|
return rt = ke._dbInfo, D.call(Ae) === "[object Blob]" ? k(rt.db).then(function(ct) {
|
|
68170
|
-
return ct ? Ae :
|
|
68170
|
+
return ct ? Ae : z(Ae);
|
|
68171
68171
|
}) : Ae;
|
|
68172
68172
|
}).then(function(ct) {
|
|
68173
68173
|
oe(ke._dbInfo, T, function(at, ut) {
|
|
@@ -70400,10 +70400,10 @@ class DocController {
|
|
|
70400
70400
|
do
|
|
70401
70401
|
Y >= 0 && (j.set(Y, "old"), U.push(Y), Y = k.indexOf("(old)", Y + 5));
|
|
70402
70402
|
while (Y >= 0);
|
|
70403
|
-
U = U.sort((X,
|
|
70403
|
+
U = U.sort((X, z) => X - z);
|
|
70404
70404
|
for (let X = 0; X < U.length; X++) {
|
|
70405
|
-
const
|
|
70406
|
-
G.copyProperty(
|
|
70405
|
+
const z = a.docTree.styles[L], G = new TextStyle(this._hoEditorFactoryID);
|
|
70406
|
+
G.copyProperty(z, G), G.creatorIndex = void 0, G.deleterIndex = void 0, G.modifierIndex = void 0;
|
|
70407
70407
|
const J = j.get(U[X]);
|
|
70408
70408
|
if (J == "add") {
|
|
70409
70409
|
const ae = k.indexOf("(/add)", U[X]), Ce = k.substring(U[X] + 5, ae), me = new UserHistory(this._hoEditorFactoryID, HistoryEditType.hetCreate).userCompare();
|
|
@@ -78748,7 +78748,7 @@ function requireVueColor_min() {
|
|
|
78748
78748
|
for (var j = 0; j < Y.length; j++) {
|
|
78749
78749
|
var X = Y[j];
|
|
78750
78750
|
if (X.refs === 0) {
|
|
78751
|
-
for (var
|
|
78751
|
+
for (var z = 0; z < X.parts.length; z++) X.parts[z]();
|
|
78752
78752
|
delete m[X.id];
|
|
78753
78753
|
}
|
|
78754
78754
|
}
|
|
@@ -79098,9 +79098,9 @@ function requireVueColor_min() {
|
|
|
79098
79098
|
return function() {
|
|
79099
79099
|
return new D(this, Ce);
|
|
79100
79100
|
};
|
|
79101
|
-
}, Y = _ + " Iterator", j = T == "values", U = !1, X = C.prototype,
|
|
79102
|
-
if (ae && (H = g(ae.call(new C()))) !== Object.prototype && H.next && (m(H, Y, !0), s || u(H, y) || d(H, y, v)), j &&
|
|
79103
|
-
return
|
|
79101
|
+
}, Y = _ + " Iterator", j = T == "values", U = !1, X = C.prototype, z = X[y] || X["@@iterator"] || T && X[T], G = z || B(T), J = T ? j ? B("entries") : G : void 0, ae = _ == "Array" && X.entries || z;
|
|
79102
|
+
if (ae && (H = g(ae.call(new C()))) !== Object.prototype && H.next && (m(H, Y, !0), s || u(H, y) || d(H, y, v)), j && z && z.name !== "values" && (U = !0, G = function() {
|
|
79103
|
+
return z.call(this);
|
|
79104
79104
|
}), s && !M || !w && !U && X[y] || d(X, y, G), f[_] = G, f[Y] = v, T) if (k = { values: j ? G : B("values"), keys: I ? G : B("keys"), entries: J }, M) for (L in k) L in X || c(X, L, k[L]);
|
|
79105
79105
|
else l(l.P + l.F * (w || U), _, k);
|
|
79106
79106
|
return k;
|
|
@@ -79411,7 +79411,7 @@ function requireVueColor_min() {
|
|
|
79411
79411
|
function s(oe) {
|
|
79412
79412
|
return oe && oe.__esModule ? oe : { default: oe };
|
|
79413
79413
|
}
|
|
79414
|
-
var l = n(60), c = s(l), d = n(69), u = s(d), f = n(73), p = s(f), m = n(77), g = s(m), y = n(115), w = s(y), v = n(120), C = s(v), _ = n(135), D = s(_), E = n(139), T = s(E), I = n(143), M = s(I), k = n(19), L = s(k), H = n(20), B = s(H), Y = n(5), j = s(Y), U = n(12), X = s(U),
|
|
79414
|
+
var l = n(60), c = s(l), d = n(69), u = s(d), f = n(73), p = s(f), m = n(77), g = s(m), y = n(115), w = s(y), v = n(120), C = s(v), _ = n(135), D = s(_), E = n(139), T = s(E), I = n(143), M = s(I), k = n(19), L = s(k), H = n(20), B = s(H), Y = n(5), j = s(Y), U = n(12), X = s(U), z = n(18), G = s(z), J = n(3), ae = s(J), Ce = { version: "2.8.2", Compact: c.default, Grayscale: u.default, Twitter: M.default, Material: p.default, Slider: g.default, Swatches: w.default, Photoshop: C.default, Sketch: D.default, Chrome: T.default, Alpha: L.default, Checkboard: B.default, EditableInput: j.default, Hue: X.default, Saturation: G.default, ColorMixin: ae.default };
|
|
79415
79415
|
r.exports = Ce;
|
|
79416
79416
|
}, function(r, o, n) {
|
|
79417
79417
|
function s(g) {
|
|
@@ -79566,12 +79566,12 @@ function requireVueColor_min() {
|
|
|
79566
79566
|
function C(le, he) {
|
|
79567
79567
|
he = he === 0 ? 0 : he || 10;
|
|
79568
79568
|
var $ = c(le).toHsl();
|
|
79569
|
-
return $.s -= he / 100, $.s =
|
|
79569
|
+
return $.s -= he / 100, $.s = z($.s), c($);
|
|
79570
79570
|
}
|
|
79571
79571
|
function _(le, he) {
|
|
79572
79572
|
he = he === 0 ? 0 : he || 10;
|
|
79573
79573
|
var $ = c(le).toHsl();
|
|
79574
|
-
return $.s += he / 100, $.s =
|
|
79574
|
+
return $.s += he / 100, $.s = z($.s), c($);
|
|
79575
79575
|
}
|
|
79576
79576
|
function D(le) {
|
|
79577
79577
|
return c(le).desaturate(100);
|
|
@@ -79579,7 +79579,7 @@ function requireVueColor_min() {
|
|
|
79579
79579
|
function E(le, he) {
|
|
79580
79580
|
he = he === 0 ? 0 : he || 10;
|
|
79581
79581
|
var $ = c(le).toHsl();
|
|
79582
|
-
return $.l += he / 100, $.l =
|
|
79582
|
+
return $.l += he / 100, $.l = z($.l), c($);
|
|
79583
79583
|
}
|
|
79584
79584
|
function T(le, he) {
|
|
79585
79585
|
he = he === 0 ? 0 : he || 10;
|
|
@@ -79589,7 +79589,7 @@ function requireVueColor_min() {
|
|
|
79589
79589
|
function I(le, he) {
|
|
79590
79590
|
he = he === 0 ? 0 : he || 10;
|
|
79591
79591
|
var $ = c(le).toHsl();
|
|
79592
|
-
return $.l -= he / 100, $.l =
|
|
79592
|
+
return $.l -= he / 100, $.l = z($.l), c($);
|
|
79593
79593
|
}
|
|
79594
79594
|
function M(le, he) {
|
|
79595
79595
|
var $ = c(le).toHsl(), Ne = ($.h + he) % 360;
|
|
@@ -79630,7 +79630,7 @@ function requireVueColor_min() {
|
|
|
79630
79630
|
var $ = ae(le);
|
|
79631
79631
|
return le = Pe(he, De(0, parseFloat(le))), $ && (le = parseInt(le * he, 10) / 100), l.abs(le - he) < 1e-6 ? 1 : le % he / parseFloat(he);
|
|
79632
79632
|
}
|
|
79633
|
-
function
|
|
79633
|
+
function z(le) {
|
|
79634
79634
|
return Pe(1, De(0, le));
|
|
79635
79635
|
}
|
|
79636
79636
|
function G(le) {
|
|
@@ -80203,7 +80203,7 @@ function requireVueColor_min() {
|
|
|
80203
80203
|
}, function(r, o, n) {
|
|
80204
80204
|
n(102), n(108), n(109), n(110), r.exports = n(24).Symbol;
|
|
80205
80205
|
}, function(r, o, n) {
|
|
80206
|
-
var s = n(4), l = n(6), c = n(9), d = n(41), u = n(44), f = n(103).KEY, p = n(15), m = n(29), g = n(31), y = n(17), w = n(11), v = n(32), C = n(33), _ = n(104), D = n(105), E = n(13), T = n(10), I = n(25), M = n(16), k = n(45), L = n(106), H = n(107), B = n(8), Y = n(27), j = H.f, U = B.f, X = L.f,
|
|
80206
|
+
var s = n(4), l = n(6), c = n(9), d = n(41), u = n(44), f = n(103).KEY, p = n(15), m = n(29), g = n(31), y = n(17), w = n(11), v = n(32), C = n(33), _ = n(104), D = n(105), E = n(13), T = n(10), I = n(25), M = n(16), k = n(45), L = n(106), H = n(107), B = n(8), Y = n(27), j = H.f, U = B.f, X = L.f, z = s.Symbol, G = s.JSON, J = G && G.stringify, ae = w("_hidden"), Ce = w("toPrimitive"), oe = {}.propertyIsEnumerable, me = m("symbol-registry"), ue = m("symbols"), Q = m("op-symbols"), ne = Object.prototype, xe = typeof z == "function", Ie = s.QObject, ve = !Ie || !Ie.prototype || !Ie.prototype.findChild, _e = c && p(function() {
|
|
80207
80207
|
return k(U({}, "a", { get: function() {
|
|
80208
80208
|
return U(this, "a", { value: 7 }).a;
|
|
80209
80209
|
} })).a != 7;
|
|
@@ -80211,12 +80211,12 @@ function requireVueColor_min() {
|
|
|
80211
80211
|
var ht = j(ne, ze);
|
|
80212
80212
|
ht && delete ne[ze], U(Me, ze, ot), ht && Me !== ne && U(ne, ze, ht);
|
|
80213
80213
|
} : U, pe = function(Me) {
|
|
80214
|
-
var ze = ue[Me] = k(
|
|
80214
|
+
var ze = ue[Me] = k(z.prototype);
|
|
80215
80215
|
return ze._k = Me, ze;
|
|
80216
|
-
}, Pe = xe && typeof
|
|
80216
|
+
}, Pe = xe && typeof z.iterator == "symbol" ? function(Me) {
|
|
80217
80217
|
return typeof Me == "symbol";
|
|
80218
80218
|
} : function(Me) {
|
|
80219
|
-
return Me instanceof
|
|
80219
|
+
return Me instanceof z;
|
|
80220
80220
|
}, De = function(Me, ze, ot) {
|
|
80221
80221
|
return Me === ne && De(Q, ze, ot), E(Me), ze = I(ze, !0), E(ot), l(ue, ze) ? (ot.enumerable ? (l(Me, ae) && Me[ae][ze] && (Me[ae][ze] = !1), ot = k(ot, { enumerable: M(0, !1) })) : (l(Me, ae) || U(Me, ae, M(1, {})), Me[ae][ze] = !0), _e(Me, ze, ot)) : U(Me, ze, ot);
|
|
80222
80222
|
}, Ve = function(Me, ze) {
|
|
@@ -80240,21 +80240,21 @@ function requireVueColor_min() {
|
|
|
80240
80240
|
for (var ze, ot = Me === ne, ht = X(ot ? Q : T(Me)), bt = [], gt = 0; ht.length > gt; ) !l(ue, ze = ht[gt++]) || ot && !l(ne, ze) || bt.push(ue[ze]);
|
|
80241
80241
|
return bt;
|
|
80242
80242
|
};
|
|
80243
|
-
xe || (
|
|
80244
|
-
if (this instanceof
|
|
80243
|
+
xe || (z = function() {
|
|
80244
|
+
if (this instanceof z) throw TypeError("Symbol is not a constructor!");
|
|
80245
80245
|
var Me = y(arguments.length > 0 ? arguments[0] : void 0), ze = function(ot) {
|
|
80246
80246
|
this === ne && ze.call(Q, ot), l(this, ae) && l(this[ae], Me) && (this[ae][Me] = !1), _e(this, Me, M(1, ot));
|
|
80247
80247
|
};
|
|
80248
80248
|
return c && ve && _e(ne, Me, { configurable: !0, set: ze }), pe(Me);
|
|
80249
|
-
}, u(
|
|
80249
|
+
}, u(z.prototype, "toString", function() {
|
|
80250
80250
|
return this._k;
|
|
80251
80251
|
}), H.f = we, B.f = De, n(49).f = L.f = le, n(34).f = He, n(48).f = he, c && !n(23) && u(ne, "propertyIsEnumerable", He, !0), v.f = function(Me) {
|
|
80252
80252
|
return pe(w(Me));
|
|
80253
|
-
}), d(d.G + d.W + d.F * !xe, { Symbol:
|
|
80253
|
+
}), d(d.G + d.W + d.F * !xe, { Symbol: z });
|
|
80254
80254
|
for (var $ = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), Ne = 0; $.length > Ne; ) w($[Ne++]);
|
|
80255
80255
|
for (var Be = Y(w.store), Qe = 0; Be.length > Qe; ) C(Be[Qe++]);
|
|
80256
80256
|
d(d.S + d.F * !xe, "Symbol", { for: function(Me) {
|
|
80257
|
-
return l(me, Me += "") ? me[Me] : me[Me] =
|
|
80257
|
+
return l(me, Me += "") ? me[Me] : me[Me] = z(Me);
|
|
80258
80258
|
}, keyFor: function(Me) {
|
|
80259
80259
|
if (!Pe(Me)) throw TypeError(Me + " is not a symbol!");
|
|
80260
80260
|
for (var ze in me) if (me[ze] === Me) return ze;
|
|
@@ -80263,7 +80263,7 @@ function requireVueColor_min() {
|
|
|
80263
80263
|
}, useSimple: function() {
|
|
80264
80264
|
ve = !1;
|
|
80265
80265
|
} }), d(d.S + d.F * !xe, "Object", { create: Te, defineProperty: De, defineProperties: Ve, getOwnPropertyDescriptor: we, getOwnPropertyNames: le, getOwnPropertySymbols: he }), G && d(d.S + d.F * (!xe || p(function() {
|
|
80266
|
-
var Me =
|
|
80266
|
+
var Me = z();
|
|
80267
80267
|
return J([Me]) != "[null]" || J({ a: Me }) != "{}" || J(Object(Me)) != "{}";
|
|
80268
80268
|
})), "JSON", { stringify: function(Me) {
|
|
80269
80269
|
if (Me !== void 0 && !Pe(Me)) {
|
|
@@ -80272,7 +80272,7 @@ function requireVueColor_min() {
|
|
|
80272
80272
|
if (ot && (_t = ot.call(this, gt, _t)), !Pe(_t)) return _t;
|
|
80273
80273
|
}), ht[1] = ze, J.apply(G, ht);
|
|
80274
80274
|
}
|
|
80275
|
-
} }),
|
|
80275
|
+
} }), z.prototype[Ce] || n(7)(z.prototype, Ce, z.prototype.valueOf), g(z, "Symbol"), g(Math, "Math", !0), g(s.JSON, "JSON", !0);
|
|
80276
80276
|
}, function(r, o, n) {
|
|
80277
80277
|
var s = n(17)("meta"), l = n(14), c = n(6), d = n(8).f, u = 0, f = Object.isExtensible || function() {
|
|
80278
80278
|
return !0;
|
|
@@ -80773,13 +80773,13 @@ function requireVueColor_min() {
|
|
|
80773
80773
|
var Ve = De - Ie, Te = De - ve, He = B - Ve;
|
|
80774
80774
|
return pe ? k(He, Q - Te) : He;
|
|
80775
80775
|
}
|
|
80776
|
-
function
|
|
80776
|
+
function z(De) {
|
|
80777
80777
|
var Ve = De - Ie, Te = De - ve;
|
|
80778
80778
|
return Ie === void 0 || Ve >= B || Ve < 0 || pe && Te >= Q;
|
|
80779
80779
|
}
|
|
80780
80780
|
function G() {
|
|
80781
80781
|
var De = L();
|
|
80782
|
-
if (
|
|
80782
|
+
if (z(De)) return J(De);
|
|
80783
80783
|
xe = setTimeout(G, X(De));
|
|
80784
80784
|
}
|
|
80785
80785
|
function J(De) {
|
|
@@ -80792,7 +80792,7 @@ function requireVueColor_min() {
|
|
|
80792
80792
|
return xe === void 0 ? ne : J(L());
|
|
80793
80793
|
}
|
|
80794
80794
|
function oe() {
|
|
80795
|
-
var De = L(), Ve =
|
|
80795
|
+
var De = L(), Ve = z(De);
|
|
80796
80796
|
if (me = arguments, ue = this, Ie = De, Ve) {
|
|
80797
80797
|
if (xe === void 0) return U(Ie);
|
|
80798
80798
|
if (pe) return xe = setTimeout(G, B), j(Ie);
|
|
@@ -87902,10 +87902,10 @@ const HoRightMenu = __component__$1.exports, _sfc_main = defineComponent({
|
|
|
87902
87902
|
D: H.d
|
|
87903
87903
|
}) : H instanceof GestationNode ? (L.controlType = "gestation", L.controlStatus = "update", L.expressStyle = "") : (L.controlType = "", L.controlStatus = "add");
|
|
87904
87904
|
}, s = () => {
|
|
87905
|
-
var
|
|
87905
|
+
var z, G;
|
|
87906
87906
|
let H = null;
|
|
87907
87907
|
const B = HOEditorFactorys.instance().getFactory(L.activeDocId), Y = B.drawTree.selectRange.spStart, j = B.drawTree.selectRange.spEnd;
|
|
87908
|
-
let U = (
|
|
87908
|
+
let U = (z = B.docTree.findNodePositionByPath(Y.path)) == null ? void 0 : z.node, X = (G = B.docTree.findNodePositionByPath(j.path)) == null ? void 0 : G.node;
|
|
87909
87909
|
if (U instanceof MarkNode || U instanceof TextInputFieldNode) {
|
|
87910
87910
|
const J = U.parentNode;
|
|
87911
87911
|
J instanceof TextInputFieldNode ? H = J : H = U;
|