@silurus/ooxml 0.83.1 → 0.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -6
- package/dist/assets/render-worker-BZd4-U4w.js +10 -0
- package/dist/assets/render-worker-CiEWCh_T.js +11 -0
- package/dist/assets/render-worker-Cpmy3GDF.js +24 -0
- package/dist/{canvas-viewer-mechanics-h07vpVOQ.js → canvas-viewer-mechanics-CIfhCgYA.js} +57 -42
- package/dist/chart-ex.mjs +4 -4
- package/dist/{comment-ui-runtime-DD5a3x3k.js → comment-ui-runtime-C5qimVMD.js} +5 -5
- package/dist/{comment-ui-runtime-BelHJt73.js → comment-ui-runtime-CdMMApEN.js} +5 -5
- package/dist/comment-ui-runtime-aPzHfV_A.js +2 -0
- package/dist/{comments-AAaNnQTi.js → comments-BAlAyIhb.js} +1 -1
- package/dist/{document-pull-client-DSx36ZsB.js → document-pull-client-DeHUdQhH.js} +56 -53
- package/dist/{docx-BF-WKW73.js → docx-CbU51aPR.js} +17 -15
- package/dist/docx.mjs +5 -5
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{dom-interaction-boundary-CepOlXt6.js → dom-interaction-boundary-DS6BVyHA.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-D7A_wnJg.js → line-distribute-MqInuujx.js} +2 -2
- package/dist/{line-metrics-Bpn7OeZD.js → line-metrics-CXyjyYd5.js} +34 -32
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +9 -9
- package/dist/{plot-area-frame-DHV02PJU.js → plot-area-frame-DuXZzovH.js} +623 -663
- package/dist/{pptx-CA-Q09yW.js → pptx-C17oBD8Z.js} +18 -16
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +2 -2
- package/dist/{render-DtbFbO5c.js → render-CVeGktZG.js} +1 -1
- package/dist/{render-worker-host-CmPBviYJ.js → render-worker-host-BWdhjVH_.js} +1 -1
- package/dist/{render-worker-host-DCLyw6UR.js → render-worker-host-CZi7Mn5v.js} +1 -1
- package/dist/{render-worker-host-D1jcACJV.js → render-worker-host-CbaQivE7.js} +1 -1
- package/dist/{renderer-CYr9YTXM.js → renderer-Bmky2yBc.js} +3 -3
- package/dist/{renderer-module-contract-DLbb7zY0.js → renderer-module-contract-C6sYZvTV.js} +4 -3
- package/dist/{resource-measurement-DuiFWzam.js → resource-measurement-esyGbzAF.js} +2 -2
- package/dist/{session-CxT-t0BX.js → session-Cl0RVnMs.js} +3 -3
- package/dist/{slide-pull-client-B9rcJdO4.js → slide-pull-client-BS0EeZo2.js} +113 -107
- package/dist/{three-d-7MaVzQuZ.js → three-d-B7LsKeOS.js} +128 -127
- package/dist/three-d.mjs +4 -4
- package/dist/tiff-contract-Xjn3qXqK.js +69 -0
- package/dist/tiff.mjs +124 -0
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +17 -10
- package/dist/types/index.d.ts +26 -16
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +5 -5
- package/dist/types/pptx.d.ts +18 -10
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/tiff.d.ts +9 -0
- package/dist/types/xlsx.d.ts +17 -10
- package/dist/{worksheet-pull-client-DyFsDF4A.js → worksheet-pull-client-B0zfEVau.js} +3 -3
- package/dist/{xlsx-BibrHQ52.js → xlsx-FyKAiNo-.js} +55 -50
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +7 -1
- package/dist/assets/render-worker-4GSYWsM3.js +0 -11
- package/dist/assets/render-worker-DwFpY197.js +0 -10
- package/dist/assets/render-worker-Dw_wQRIh.js +0 -24
- package/dist/comment-ui-runtime-DTGN3Vyy.js +0 -2
- /package/dist/{comment-occurrence-X54si2ob.js → comment-occurrence-C34fWs_F.js} +0 -0
- /package/dist/{highlight-rect-Hes0z_Mj.js → highlight-rect-MaCt0om0.js} +0 -0
- /package/dist/{mathjax-DwIrafQ6.js → mathjax-DPEX346v.js} +0 -0
- /package/dist/{read-only-comment-decoration-DcFevX_Q.js → read-only-comment-decoration-BYCXoSdC.js} +0 -0
- /package/dist/{read-only-comment-margin-DrUX-YrP.js → read-only-comment-margin-C7b3l0ro.js} +0 -0
- /package/dist/{source-key-BklvnEyQ.js → source-key-DORuuFb-.js} +0 -0
- /package/dist/{transfer-R6NjgBKD.js → transfer-vNOFQuvv.js} +0 -0
- /package/dist/{units-BzZ0gAxs.js → units-EJdC96r6.js} +0 -0
- /package/dist/{visible-index-BFE3PWiY.js → visible-index-DwJzuGmJ.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Zt as e } from "./line-metrics-
|
|
1
|
+
import { Zt as e } from "./line-metrics-CXyjyYd5.js";
|
|
2
2
|
//#region packages/core/src/errors/cfb-sniff.ts
|
|
3
3
|
var t = [
|
|
4
4
|
208,
|
|
@@ -698,11 +698,26 @@ function we(e, t) {
|
|
|
698
698
|
}
|
|
699
699
|
//#endregion
|
|
700
700
|
//#region packages/core/src/interaction/zoom.ts
|
|
701
|
-
var Te = .
|
|
702
|
-
function
|
|
703
|
-
|
|
701
|
+
var Te = 1.1, Ee = 10, De = 3, Oe = 1;
|
|
702
|
+
function ke(e, t) {
|
|
703
|
+
let n;
|
|
704
|
+
switch (t) {
|
|
705
|
+
case 1:
|
|
706
|
+
n = e / De;
|
|
707
|
+
break;
|
|
708
|
+
case 2:
|
|
709
|
+
n = e / Oe;
|
|
710
|
+
break;
|
|
711
|
+
default:
|
|
712
|
+
n = e / Ee;
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
return Math.max(-1, Math.min(1, n));
|
|
716
|
+
}
|
|
717
|
+
function Ae(e, t, n = 0) {
|
|
718
|
+
return e * Te ** +-ke(t, n);
|
|
704
719
|
}
|
|
705
|
-
function
|
|
720
|
+
function je(e, t, n, r, i) {
|
|
706
721
|
let a = n > 0 ? r / n : 1, o = (e + t) * a - t, s = i.maxScroll > 0 ? i.maxScroll : 0;
|
|
707
722
|
return o < 0 ? 0 : o > s ? s : o;
|
|
708
723
|
}
|
|
@@ -725,21 +740,21 @@ var q = Object.freeze([
|
|
|
725
740
|
3,
|
|
726
741
|
4
|
|
727
742
|
]), J = .005;
|
|
728
|
-
function
|
|
743
|
+
function Me(e) {
|
|
729
744
|
for (let t of q) if (t > e + J) return t;
|
|
730
745
|
return q[q.length - 1];
|
|
731
746
|
}
|
|
732
|
-
function
|
|
747
|
+
function Ne(e) {
|
|
733
748
|
for (let t = q.length - 1; t >= 0; t--) {
|
|
734
749
|
let n = q[t];
|
|
735
750
|
if (n < e - J) return n;
|
|
736
751
|
}
|
|
737
752
|
return q[0];
|
|
738
753
|
}
|
|
739
|
-
function
|
|
754
|
+
function Pe(e, t, n) {
|
|
740
755
|
return e < t ? t : e > n ? n : e;
|
|
741
756
|
}
|
|
742
|
-
function
|
|
757
|
+
function Fe(e, t) {
|
|
743
758
|
let { contentWidth: n, contentHeight: r, containerWidth: i, containerHeight: a } = e;
|
|
744
759
|
if (n <= 0 || i <= 0) return 0;
|
|
745
760
|
let o = i / n;
|
|
@@ -760,7 +775,7 @@ function Y(e) {
|
|
|
760
775
|
}
|
|
761
776
|
return n;
|
|
762
777
|
}
|
|
763
|
-
function
|
|
778
|
+
function Ie(e) {
|
|
764
779
|
let t = Array(e.length), n = 0, r = "";
|
|
765
780
|
for (let i = 0; i < e.length; i++) t[i] = n, r += e[i].text, n += e[i].text.length;
|
|
766
781
|
return {
|
|
@@ -770,7 +785,7 @@ function Me(e) {
|
|
|
770
785
|
runCount: e.length
|
|
771
786
|
};
|
|
772
787
|
}
|
|
773
|
-
function
|
|
788
|
+
function Le(e, t) {
|
|
774
789
|
let { runStart: n } = e, r = 0, i = n.length - 1;
|
|
775
790
|
for (; r < i;) {
|
|
776
791
|
let e = r + i + 1 >> 1;
|
|
@@ -778,8 +793,8 @@ function Ne(e, t) {
|
|
|
778
793
|
}
|
|
779
794
|
return r;
|
|
780
795
|
}
|
|
781
|
-
function
|
|
782
|
-
let { runStart: r, runCount: i, text: a } = e, o = [], s =
|
|
796
|
+
function Re(e, t, n) {
|
|
797
|
+
let { runStart: r, runCount: i, text: a } = e, o = [], s = Le(e, t), c = t;
|
|
783
798
|
for (; c < n && s < i;) {
|
|
784
799
|
let e = s + 1 < i ? r[s + 1] : a.length, t = Math.min(n, e), l = c - r[s], u = t - r[s];
|
|
785
800
|
u > l && o.push({
|
|
@@ -790,7 +805,7 @@ function Pe(e, t, n) {
|
|
|
790
805
|
}
|
|
791
806
|
return o;
|
|
792
807
|
}
|
|
793
|
-
function
|
|
808
|
+
function ze(e, t, n = {}) {
|
|
794
809
|
if (t.length === 0) return [];
|
|
795
810
|
let r = n.caseSensitive ?? !1, i = r ? e.text : e.folded, a = r ? t : Y(t), o = [], s = 0, c = 0;
|
|
796
811
|
for (;;) {
|
|
@@ -798,23 +813,23 @@ function Fe(e, t, n = {}) {
|
|
|
798
813
|
if (t === -1) break;
|
|
799
814
|
o.push({
|
|
800
815
|
matchIndex: c,
|
|
801
|
-
slices:
|
|
816
|
+
slices: Re(e, t, t + a.length)
|
|
802
817
|
}), c++, s = t + a.length;
|
|
803
818
|
}
|
|
804
819
|
return o;
|
|
805
820
|
}
|
|
806
821
|
//#endregion
|
|
807
822
|
//#region packages/core/src/search/find-cursor.ts
|
|
808
|
-
function
|
|
823
|
+
function Be(e, t) {
|
|
809
824
|
return t <= 0 ? -1 : e < 0 ? 0 : (e + 1) % t;
|
|
810
825
|
}
|
|
811
|
-
function
|
|
826
|
+
function Ve(e, t) {
|
|
812
827
|
return t <= 0 ? -1 : e < 0 ? t - 1 : (e - 1 + t) % t;
|
|
813
828
|
}
|
|
814
829
|
//#endregion
|
|
815
830
|
//#region packages/core/src/internal/chart-context.ts
|
|
816
831
|
var X = 65536;
|
|
817
|
-
function
|
|
832
|
+
function He(e, t) {
|
|
818
833
|
let n = Math.min(e.length, t);
|
|
819
834
|
if (n > 0 && n < e.length) {
|
|
820
835
|
let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
|
|
@@ -822,19 +837,19 @@ function Re(e, t) {
|
|
|
822
837
|
}
|
|
823
838
|
return e.slice(0, n);
|
|
824
839
|
}
|
|
825
|
-
function
|
|
840
|
+
function Ue(e) {
|
|
826
841
|
let t = e ?? 16384;
|
|
827
842
|
if (!Number.isFinite(t) || t < 0) throw RangeError("maxTextCharacters must be a finite non-negative number.");
|
|
828
843
|
return Math.min(X, Math.floor(t));
|
|
829
844
|
}
|
|
830
|
-
function
|
|
831
|
-
let n =
|
|
845
|
+
function We(e, t) {
|
|
846
|
+
let n = Ue(t), r = [], i = 0, a = !1, o = !1, s = (e, t) => {
|
|
832
847
|
if (t && o) {
|
|
833
848
|
if (i >= n) return a = !0, !1;
|
|
834
849
|
r.push("\n"), i++;
|
|
835
850
|
}
|
|
836
851
|
o = !0;
|
|
837
|
-
let s =
|
|
852
|
+
let s = He(e, Math.max(0, n - i));
|
|
838
853
|
return r.push(s), i += s.length, s.length < e.length ? (a = !0, !1) : !0;
|
|
839
854
|
};
|
|
840
855
|
if (!s(`Chart type: ${e.chartType}`, !0) || e.title !== null && !s(`Title: ${e.title}`, !0)) return {
|
|
@@ -876,13 +891,13 @@ function Be(e, t) {
|
|
|
876
891
|
}
|
|
877
892
|
//#endregion
|
|
878
893
|
//#region packages/core/src/internal/canvas-viewer-mechanics.ts
|
|
879
|
-
var
|
|
894
|
+
var Ge = 65536, Ke = 1024;
|
|
880
895
|
function Z(e, t, n) {
|
|
881
896
|
let r = e ?? t;
|
|
882
897
|
if (!Number.isFinite(r) || r < 0) throw RangeError(`${n} must be a finite non-negative number.`);
|
|
883
898
|
return Math.min(t, Math.floor(r));
|
|
884
899
|
}
|
|
885
|
-
function
|
|
900
|
+
function qe(e, t) {
|
|
886
901
|
let n = Math.min(e.length, t);
|
|
887
902
|
if (n > 0 && n < e.length) {
|
|
888
903
|
let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
|
|
@@ -890,7 +905,7 @@ function Q(e, t) {
|
|
|
890
905
|
}
|
|
891
906
|
return e.slice(0, n);
|
|
892
907
|
}
|
|
893
|
-
function*
|
|
908
|
+
function* Je(e) {
|
|
894
909
|
let t = e.firstChild ?? e.childNodes[0] ?? null;
|
|
895
910
|
for (; t;) {
|
|
896
911
|
if (t.nodeType === 3 && (yield t), t.firstChild) {
|
|
@@ -902,13 +917,13 @@ function* Ue(e) {
|
|
|
902
917
|
t = t.nextSibling;
|
|
903
918
|
}
|
|
904
919
|
}
|
|
905
|
-
function
|
|
920
|
+
function Ye(e, t, n, r, i) {
|
|
906
921
|
for (let a of r) {
|
|
907
922
|
let r = !1;
|
|
908
923
|
try {
|
|
909
924
|
r = a.intersectsNode(n);
|
|
910
925
|
} catch {}
|
|
911
|
-
if (r) for (let r of
|
|
926
|
+
if (r) for (let r of Je(n)) {
|
|
912
927
|
let n = r.data, o, s;
|
|
913
928
|
if (a.startContainer === r) o = a.startOffset;
|
|
914
929
|
else try {
|
|
@@ -931,7 +946,7 @@ function We(e, t, n, r, i) {
|
|
|
931
946
|
}
|
|
932
947
|
return t;
|
|
933
948
|
}
|
|
934
|
-
function
|
|
949
|
+
function Xe(e, t, n, r = {}) {
|
|
935
950
|
if (!t || t.isCollapsed || t.rangeCount === 0) return null;
|
|
936
951
|
let i = [...e.matches?.("[data-ooxml-selection-surface]") ? [e] : [], ...e.querySelectorAll("[data-ooxml-selection-surface]")];
|
|
937
952
|
if (i.length === 0) return null;
|
|
@@ -941,7 +956,7 @@ function Ge(e, t, n, r = {}) {
|
|
|
941
956
|
if (!e.contains(r.startContainer) || !e.contains(r.endContainer) || !a(r.startContainer) || !a(r.endContainer)) return null;
|
|
942
957
|
o.push(r);
|
|
943
958
|
}
|
|
944
|
-
let s = Z(r.maxChars,
|
|
959
|
+
let s = Z(r.maxChars, Ge, "maxTextCharacters"), c = Z(r.maxLocators, Ke, "maxRunLocators"), l = [], u = !1, d = s + 2, f = [], p = 0;
|
|
945
960
|
for (let t of e.querySelectorAll("[data-ooxml-selection-run]")) {
|
|
946
961
|
if (!o.some((e) => {
|
|
947
962
|
try {
|
|
@@ -951,12 +966,12 @@ function Ge(e, t, n, r = {}) {
|
|
|
951
966
|
}
|
|
952
967
|
})) continue;
|
|
953
968
|
let e = n(t);
|
|
954
|
-
if (e !== null && (l.length >= c ? u = !0 : l.push(structuredClone(e)), p < d && (p =
|
|
969
|
+
if (e !== null && (l.length >= c ? u = !0 : l.push(structuredClone(e)), p < d && (p = Ye(f, p, t, o, d)), u && p >= d)) break;
|
|
955
970
|
}
|
|
956
971
|
if (l.length === 0 && !u) return null;
|
|
957
972
|
let m = f.join("");
|
|
958
973
|
if (m.length === 0) return null;
|
|
959
|
-
let h =
|
|
974
|
+
let h = qe(m, s), g = m.length > s;
|
|
960
975
|
return {
|
|
961
976
|
text: h,
|
|
962
977
|
locators: l,
|
|
@@ -967,7 +982,7 @@ function Ge(e, t, n, r = {}) {
|
|
|
967
982
|
maxLocators: c
|
|
968
983
|
};
|
|
969
984
|
}
|
|
970
|
-
var
|
|
985
|
+
var Ze = class {
|
|
971
986
|
wrapper;
|
|
972
987
|
originalParent;
|
|
973
988
|
originalNextSibling;
|
|
@@ -988,31 +1003,31 @@ var Ke = class {
|
|
|
988
1003
|
(this.options.restoreMode ?? "display") === "style-and-bitmap" ? (this.originalStyle === null ? this.canvas.removeAttribute("style") : this.canvas.setAttribute("style", this.originalStyle), this.canvas.width = this.originalWidth, this.canvas.height = this.originalHeight) : this.canvas.style.display = this.originalDisplay, this.wrapper.remove();
|
|
989
1004
|
}
|
|
990
1005
|
}
|
|
991
|
-
},
|
|
1006
|
+
}, Qe = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;user-select:text;-webkit-user-select:text;", Q = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;", $e = "position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;";
|
|
992
1007
|
function $(e, t) {
|
|
993
1008
|
if (!t) return null;
|
|
994
1009
|
let n = (e.ownerDocument ?? document).createElement("div");
|
|
995
|
-
return n.style.cssText =
|
|
1010
|
+
return n.style.cssText = $e, e.appendChild(n), n;
|
|
996
1011
|
}
|
|
997
|
-
function
|
|
1012
|
+
function et(e, t) {
|
|
998
1013
|
if (!e || (e.innerHTML = "", !t || !Number.isFinite(t.x) || !Number.isFinite(t.y) || !Number.isFinite(t.width) || !Number.isFinite(t.height) || t.width <= 0 || t.height <= 0)) return;
|
|
999
1014
|
let n = (e.ownerDocument ?? document).createElement("div"), r = Number.isFinite(t.rotation) ? t.rotation ?? 0 : 0;
|
|
1000
1015
|
n.style.cssText = `position:absolute;left:${t.x * 100}%;top:${t.y * 100}%;width:${t.width * 100}%;height:${t.height * 100}%;box-sizing:border-box;border:2px solid #1a73e8;background:color-mix(in srgb, #1a73e8 6%, transparent);transform:rotate(${r}deg);transform-origin:center;pointer-events:none;`, e.appendChild(n);
|
|
1001
1016
|
}
|
|
1002
|
-
var
|
|
1017
|
+
var tt = class {
|
|
1003
1018
|
textLayer;
|
|
1004
1019
|
highlightLayer;
|
|
1005
1020
|
elementLayer;
|
|
1006
1021
|
constructor(e, t, n = !1) {
|
|
1007
1022
|
let r = e.ownerDocument ?? document;
|
|
1008
|
-
this.textLayer = t ? r.createElement("div") : null, this.textLayer && (this.textLayer.style.cssText =
|
|
1023
|
+
this.textLayer = t ? r.createElement("div") : null, this.textLayer && (this.textLayer.style.cssText = Qe, e.appendChild(this.textLayer)), this.highlightLayer = r.createElement("div"), this.highlightLayer.style.cssText = Q, e.appendChild(this.highlightLayer), this.elementLayer = $(e, n);
|
|
1009
1024
|
}
|
|
1010
1025
|
};
|
|
1011
|
-
function
|
|
1026
|
+
function nt(e, t, n) {
|
|
1012
1027
|
if (n && t !== void 0 && t !== n.mode) throw Error(`${e}: opts.mode='${t}' conflicts with the borrowed engine's mode='${n.mode}'. Omit opts.mode when borrowing an engine — the engine owns its render mode.`);
|
|
1013
1028
|
return n?.mode ?? t ?? "main";
|
|
1014
1029
|
}
|
|
1015
|
-
var
|
|
1030
|
+
var rt = class {
|
|
1016
1031
|
generation = 0;
|
|
1017
1032
|
resource;
|
|
1018
1033
|
ownsResource;
|
|
@@ -1064,7 +1079,7 @@ var $e = class {
|
|
|
1064
1079
|
e.destroy();
|
|
1065
1080
|
} catch {}
|
|
1066
1081
|
}
|
|
1067
|
-
},
|
|
1082
|
+
}, it = class {
|
|
1068
1083
|
generation = 0;
|
|
1069
1084
|
destroyed = !1;
|
|
1070
1085
|
bitmapContext;
|
|
@@ -1103,7 +1118,7 @@ var $e = class {
|
|
|
1103
1118
|
destroy() {
|
|
1104
1119
|
this.destroyed || (this.destroyed = !0, this.generation++);
|
|
1105
1120
|
}
|
|
1106
|
-
},
|
|
1121
|
+
}, at = class {
|
|
1107
1122
|
closed = !1;
|
|
1108
1123
|
handled = /* @__PURE__ */ new WeakSet();
|
|
1109
1124
|
backgroundLifecycleOwners = 0;
|
|
@@ -1146,4 +1161,4 @@ var $e = class {
|
|
|
1146
1161
|
}
|
|
1147
1162
|
};
|
|
1148
1163
|
//#endregion
|
|
1149
|
-
export { Ce as C, xe as E, we as S, be as T,
|
|
1164
|
+
export { Ce as C, xe as E, we as S, be as T, Fe as _, rt as a, je as b, et as c, We as d, Be as f, Pe as g, ze as h, it as i, nt as l, Ie as m, tt as n, $ as o, Ve as p, at as r, Xe as s, Ze as t, X as u, Me as v, Se as w, Ae as x, Ne as y };
|
package/dist/chart-ex.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $t as e, Bt as t, Ft as n, Gt as r, Ht as i, It as a, J as o, K as s, Lt as c, Ot as l, Pt as u, Qt as d, Zt as f, ct as p, en as m, f as h, r as g, t as _, u as v } from "./plot-area-frame-
|
|
2
|
-
import { T as y, w as b } from "./three-d-
|
|
3
|
-
import { A as x, C as S, D as C, E as w, F as T, I as E, L as D, M as O, N as k, O as A, P as j, R as M, S as N, T as ee, _ as te, a as P, b as ne, c as re, d as F, f as I, g as ie, h as L, i as R, j as z, l as B, m as V, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he } from "./renderer-
|
|
4
|
-
import { t as ge } from "./renderer-module-contract-
|
|
1
|
+
import { $t as e, Bt as t, Ft as n, Gt as r, Ht as i, It as a, J as o, K as s, Lt as c, Ot as l, Pt as u, Qt as d, Zt as f, ct as p, en as m, f as h, r as g, t as _, u as v } from "./plot-area-frame-DuXZzovH.js";
|
|
2
|
+
import { T as y, w as b } from "./three-d-B7LsKeOS.js";
|
|
3
|
+
import { A as x, C as S, D as C, E as w, F as T, I as E, L as D, M as O, N as k, O as A, P as j, R as M, S as N, T as ee, _ as te, a as P, b as ne, c as re, d as F, f as I, g as ie, h as L, i as R, j as z, l as B, m as V, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he } from "./renderer-Bmky2yBc.js";
|
|
4
|
+
import { t as ge } from "./renderer-module-contract-C6sYZvTV.js";
|
|
5
5
|
function H(e) {
|
|
6
6
|
return e != null && Number.isFinite(e) ? e : null;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./highlight-rect-
|
|
2
|
-
import { o as t } from "./source-key-
|
|
3
|
-
import { n } from "./comments-
|
|
4
|
-
import { i as r, n as i, o as a, r as o, s, t as c } from "./read-only-comment-margin-
|
|
5
|
-
import { i as l, n as u, r as d, t as f } from "./read-only-comment-decoration-
|
|
1
|
+
import { t as e } from "./highlight-rect-MaCt0om0.js";
|
|
2
|
+
import { o as t } from "./source-key-DORuuFb-.js";
|
|
3
|
+
import { n } from "./comments-BAlAyIhb.js";
|
|
4
|
+
import { i as r, n as i, o as a, r as o, s, t as c } from "./read-only-comment-margin-C7b3l0ro.js";
|
|
5
|
+
import { i as l, n as u, r as d, t as f } from "./read-only-comment-decoration-BYCXoSdC.js";
|
|
6
6
|
//#region packages/docx/src/comment-margin.ts
|
|
7
7
|
function p(e, r) {
|
|
8
8
|
let i = /* @__PURE__ */ new Set();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as e } from "./units-
|
|
2
|
-
import { t } from "./highlight-rect-
|
|
3
|
-
import { t as n } from "./comment-occurrence-
|
|
4
|
-
import { i as r, n as i, o as a, r as o, t as s } from "./read-only-comment-margin-
|
|
5
|
-
import { i as c, n as l, r as u, t as d } from "./read-only-comment-decoration-
|
|
1
|
+
import { i as e } from "./units-EJdC96r6.js";
|
|
2
|
+
import { t } from "./highlight-rect-MaCt0om0.js";
|
|
3
|
+
import { t as n } from "./comment-occurrence-C34fWs_F.js";
|
|
4
|
+
import { i as r, n as i, o as a, r as o, t as s } from "./read-only-comment-margin-C7b3l0ro.js";
|
|
5
|
+
import { i as c, n as l, r as u, t as d } from "./read-only-comment-decoration-BYCXoSdC.js";
|
|
6
6
|
//#region packages/pptx/src/comment-margin.ts
|
|
7
7
|
function f(e, t, n) {
|
|
8
8
|
return {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { $ as e, A as t, At as n, C as r, Ct as i, D as a, Dt as o, E as s, Et as c, Ft as l, It as u, J as d, M as f, Mt as p, N as m, Nt as h, O as g, Ot as _, Pt as v, S as y, St as b, _ as x, _t as S, at as C, bt as w, c as T, d as E, dt as D, et as O, f as k, g as A, h as j, ht as M, it as N, j as P, jt as ee, k as F, l as te, m as ne, n as re, nt as ie, o as ae, ot as oe, pt as se, s as ce, t as le, tt as ue, u as de, ut as fe, v as pe, vt as me, w as he, y as ge } from "./line-metrics-
|
|
1
|
+
import { $ as e, A as t, At as n, C as r, Ct as i, D as a, Dt as o, E as s, Et as c, Ft as l, It as u, J as d, M as f, Mt as p, N as m, Nt as h, O as g, Ot as _, Pt as v, S as y, St as b, _ as x, _t as S, at as C, bt as w, c as T, d as E, dt as D, et as O, f as k, g as A, h as j, ht as M, it as N, j as P, jt as ee, k as F, l as te, m as ne, n as re, nt as ie, o as ae, ot as oe, pt as se, s as ce, t as le, tt as ue, u as de, ut as fe, v as pe, vt as me, w as he, y as ge } from "./line-metrics-CXyjyYd5.js";
|
|
2
2
|
import { c as _e, o as ve, r as ye, s as be } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
3
|
-
import { a as xe, c as Se, d as Ce, f as we, i as Te, n as Ee, o as De, s as Oe, t as ke, u as Ae } from "./line-distribute-
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { a as xe, c as Se, d as Ce, f as we, i as Te, n as Ee, o as De, s as Oe, t as ke, u as Ae } from "./line-distribute-MqInuujx.js";
|
|
4
|
+
import { s as je } from "./tiff-contract-Xjn3qXqK.js";
|
|
5
|
+
import { g as Me, h as Ne, in as Pe, k as I, nn as Fe, rn as Ie, v as Le, w as Re, y as ze } from "./plot-area-frame-DuXZzovH.js";
|
|
6
|
+
import "./units-EJdC96r6.js";
|
|
7
|
+
import { L as Be } from "./three-d-B7LsKeOS.js";
|
|
8
|
+
import { k as Ve } from "./renderer-Bmky2yBc.js";
|
|
9
|
+
import { a as He, i as L, n as R, o as z, r as Ue, s as B, t as We } from "./source-key-DORuuFb-.js";
|
|
9
10
|
//#region packages/core/src/fonts/canvas-route.ts
|
|
10
11
|
function Ge(e, t) {
|
|
11
12
|
let n = e.trim();
|
|
@@ -70,7 +71,7 @@ function Ze(e) {
|
|
|
70
71
|
return Xe.has(e) || e === "line" || e === "straightconnector1" || e.startsWith("bentconnector");
|
|
71
72
|
}
|
|
72
73
|
function Qe(e, t, n, r, i) {
|
|
73
|
-
if (
|
|
74
|
+
if (Ne(e, t, n), t.fill) {
|
|
74
75
|
let n = Le(t.fill, e, r.x, r.y, r.w, r.h, i);
|
|
75
76
|
n && (e.strokeStyle = n);
|
|
76
77
|
}
|
|
@@ -8796,14 +8797,15 @@ async function ef(e, t) {
|
|
|
8796
8797
|
for (let e = 0; e < s.data.length; e += 4) s.data[e] === n && s.data[e + 1] === r && s.data[e + 2] === i && (s.data[e + 3] = 0);
|
|
8797
8798
|
return o.putImageData(s, 0, 0), createImageBitmap(a);
|
|
8798
8799
|
}
|
|
8799
|
-
async function tf(e, t, n, r, i = 0, a = 0, o, s = !1) {
|
|
8800
|
-
let
|
|
8800
|
+
async function tf(e, t, n, r, i = 0, a = 0, o, s = !1, c) {
|
|
8801
|
+
let l = await se(e, t, r, {
|
|
8801
8802
|
widthPt: i,
|
|
8802
8803
|
heightPt: a,
|
|
8803
|
-
suppressBoundaryFrame: !0
|
|
8804
|
+
suppressBoundaryFrame: !0,
|
|
8805
|
+
tiff: c
|
|
8804
8806
|
});
|
|
8805
|
-
return
|
|
8806
|
-
let e =
|
|
8807
|
+
return l ? !n && !o ? l : M($d, `${Qd(e, n, o)}${s ? "|strict" : ""}`, r, async () => {
|
|
8808
|
+
let e = l;
|
|
8807
8809
|
try {
|
|
8808
8810
|
if (n && (e = await ef(e, n)), o) {
|
|
8809
8811
|
let { w: t, h: n } = Ie(e);
|
|
@@ -8812,26 +8814,26 @@ async function tf(e, t, n, r, i = 0, a = 0, o, s = !1) {
|
|
|
8812
8814
|
width: t,
|
|
8813
8815
|
height: n
|
|
8814
8816
|
});
|
|
8815
|
-
if (s && i === r) return r !==
|
|
8817
|
+
if (s && i === r) return r !== l && S(r), {
|
|
8816
8818
|
bitmap: null,
|
|
8817
8819
|
owned: !1
|
|
8818
8820
|
};
|
|
8819
|
-
e = i, r !==
|
|
8821
|
+
e = i, r !== l && e !== r && S(r);
|
|
8820
8822
|
}
|
|
8821
8823
|
}
|
|
8822
8824
|
return {
|
|
8823
8825
|
bitmap: e,
|
|
8824
|
-
owned: e !==
|
|
8826
|
+
owned: e !== l
|
|
8825
8827
|
};
|
|
8826
8828
|
} catch (t) {
|
|
8827
|
-
throw e !==
|
|
8829
|
+
throw e !== l && S(e), t;
|
|
8828
8830
|
}
|
|
8829
8831
|
}) : null;
|
|
8830
8832
|
}
|
|
8831
8833
|
function nf(e) {
|
|
8832
8834
|
let t = /* @__PURE__ */ new Map(), n = e.filter((e) => e.kind === "image" || e.kind === "picture-bullet").sort((e, t) => (e.documentOrder ?? 2 ** 53 - 1) - (t.documentOrder ?? 2 ** 53 - 1));
|
|
8833
8835
|
for (let e of n) {
|
|
8834
|
-
let n =
|
|
8836
|
+
let n = Pe(e.mimeType, e.srcRect, e.intrinsicSize.widthPt, e.intrinsicSize.heightPt);
|
|
8835
8837
|
if (!n) continue;
|
|
8836
8838
|
let r = {
|
|
8837
8839
|
imagePath: e.partPath,
|
|
@@ -8847,24 +8849,24 @@ function nf(e) {
|
|
|
8847
8849
|
}
|
|
8848
8850
|
return [...t.values()];
|
|
8849
8851
|
}
|
|
8850
|
-
async function rf(e, t) {
|
|
8852
|
+
async function rf(e, t, n) {
|
|
8851
8853
|
if (!t) return /* @__PURE__ */ new Map();
|
|
8852
|
-
let
|
|
8853
|
-
let
|
|
8854
|
+
let r = await Promise.all(nf(e).map(async (e) => {
|
|
8855
|
+
let r = e.mimeType === "image/svg+xml", i = {
|
|
8854
8856
|
svgImagePath: e.svgImagePath,
|
|
8855
8857
|
srcRect: e.hasCrop || null
|
|
8856
|
-
},
|
|
8857
|
-
if (C(
|
|
8858
|
-
|
|
8859
|
-
} catch (
|
|
8860
|
-
let
|
|
8861
|
-
if (!
|
|
8862
|
-
|
|
8863
|
-
}
|
|
8864
|
-
else
|
|
8865
|
-
return
|
|
8858
|
+
}, a;
|
|
8859
|
+
if (C(i)) try {
|
|
8860
|
+
a = await fe(i.svgImagePath, t);
|
|
8861
|
+
} catch (i) {
|
|
8862
|
+
let o = r ? await fe(e.imagePath, t) : await tf(e.imagePath, e.mimeType, e.colorReplaceFrom, t, e.widthPt, e.heightPt, e.duotone, !1, n);
|
|
8863
|
+
if (!o) throw i;
|
|
8864
|
+
a = o;
|
|
8865
|
+
}
|
|
8866
|
+
else a = r ? await fe(e.imagePath, t) : await tf(e.imagePath, e.mimeType, e.colorReplaceFrom, t, e.widthPt, e.heightPt, e.duotone, !1, n);
|
|
8867
|
+
return a == null ? null : [Qd(e.imagePath, e.colorReplaceFrom, e.duotone), a];
|
|
8866
8868
|
}));
|
|
8867
|
-
return new Map(
|
|
8869
|
+
return new Map(r.filter((e) => e !== null));
|
|
8868
8870
|
}
|
|
8869
8871
|
//#endregion
|
|
8870
8872
|
//#region packages/docx/src/paint/column-separator-raster.ts
|
|
@@ -9366,7 +9368,7 @@ function Tf(e) {
|
|
|
9366
9368
|
if (r !== "" && !/^\s+$/u.test(r)) throw Error(`Retained glyph slices are incomplete (paint end ${n}/${e.range.end})`);
|
|
9367
9369
|
}
|
|
9368
9370
|
function Ef(e, t) {
|
|
9369
|
-
return e.kind === "explicit" ? e.color : e.kind === "auto" ?
|
|
9371
|
+
return e.kind === "explicit" ? e.color : e.kind === "auto" ? Me(e.background ?? "#FFFFFF") : t.defaultTextColor ?? "#000000";
|
|
9370
9372
|
}
|
|
9371
9373
|
function Df(e, t) {
|
|
9372
9374
|
return Ef(e.color, t);
|
|
@@ -9823,7 +9825,7 @@ async function lp(e, t, n, r) {
|
|
|
9823
9825
|
}
|
|
9824
9826
|
let g;
|
|
9825
9827
|
try {
|
|
9826
|
-
g = await rf(r.registry.descriptors, r.fetchImage);
|
|
9828
|
+
g = await rf(r.registry.descriptors, r.fetchImage, r.tiff);
|
|
9827
9829
|
} catch (e) {
|
|
9828
9830
|
if (o()) return;
|
|
9829
9831
|
throw e;
|
|
@@ -9832,27 +9834,27 @@ async function lp(e, t, n, r) {
|
|
|
9832
9834
|
let _ = /* @__PURE__ */ new Map();
|
|
9833
9835
|
if (r.fetchImage) {
|
|
9834
9836
|
let e = r.fetchImage, t = /* @__PURE__ */ new Map();
|
|
9835
|
-
for (let e of
|
|
9837
|
+
for (let e of I(r.registry.descriptors.filter((e) => e.kind === "chart").map((e) => e.model))) {
|
|
9836
9838
|
let n = Re(e);
|
|
9837
9839
|
t.has(n) || t.set(n, e);
|
|
9838
9840
|
}
|
|
9839
9841
|
await Promise.all([...t].map(async ([t, n]) => {
|
|
9840
|
-
let
|
|
9841
|
-
if (!
|
|
9842
|
+
let i = Pe(n.mimeType, n.srcRect, 72, 72);
|
|
9843
|
+
if (!i) {
|
|
9842
9844
|
_.set(t, null);
|
|
9843
9845
|
return;
|
|
9844
9846
|
}
|
|
9845
9847
|
try {
|
|
9846
|
-
let
|
|
9848
|
+
let a = () => n.mimeType === "image/svg+xml" ? n.duotone ? Promise.resolve(null) : fe(n.imagePath, e) : tf(n.imagePath, n.mimeType, void 0, e, i.widthPt, i.heightPt, n.duotone, !0, r.tiff), o;
|
|
9847
9849
|
if (!n.duotone && C(n)) try {
|
|
9848
|
-
|
|
9850
|
+
o = await fe(n.svgImagePath, e);
|
|
9849
9851
|
} catch {
|
|
9850
|
-
|
|
9852
|
+
o = await a();
|
|
9851
9853
|
}
|
|
9852
|
-
else
|
|
9853
|
-
_.set(t,
|
|
9854
|
+
else o = await a();
|
|
9855
|
+
_.set(t, o);
|
|
9854
9856
|
} catch (e) {
|
|
9855
|
-
if (
|
|
9857
|
+
if (je(e)) throw e;
|
|
9856
9858
|
_.set(t, null);
|
|
9857
9859
|
}
|
|
9858
9860
|
}));
|
|
@@ -15600,7 +15602,7 @@ function Kg(e, t, n, r, i, a, o) {
|
|
|
15600
15602
|
};
|
|
15601
15603
|
}
|
|
15602
15604
|
function qg(e) {
|
|
15603
|
-
return e.kind === "explicit" ? e.color : e.kind === "auto" ?
|
|
15605
|
+
return e.kind === "explicit" ? e.color : e.kind === "auto" ? Me(e.background ?? "#FFFFFF") : "#000000";
|
|
15604
15606
|
}
|
|
15605
15607
|
function Jg(e) {
|
|
15606
15608
|
return e.inkBounds ?? {
|
|
@@ -21824,14 +21826,14 @@ function kS(e, t, n, r, i) {
|
|
|
21824
21826
|
}, l = kx({
|
|
21825
21827
|
...e.input,
|
|
21826
21828
|
rows: [c]
|
|
21827
|
-
})[0] ?? 0, u = Math.max(0, r - o - s - l), d = t.cells.map((t, n) => OS(e, t, a[n], u, i));
|
|
21828
|
-
if (
|
|
21829
|
+
})[0] ?? 0, u = Math.max(0, r - o - s - l), d = t.cells.map((t, n) => OS(e, t, a[n], u, i)), f = (e, t) => e.next.blockIndex !== a[t]?.blockIndex || e.next.paragraphLineStart !== a[t]?.paragraphLineStart || e.next.nestedFragmentIndex !== a[t]?.nestedFragmentIndex;
|
|
21830
|
+
if (d.some((e, t) => !e.complete && !f(e, t)) || !d.some(f)) return {
|
|
21829
21831
|
selected: null,
|
|
21830
21832
|
next: n,
|
|
21831
21833
|
complete: !1
|
|
21832
21834
|
};
|
|
21833
|
-
let
|
|
21834
|
-
return
|
|
21835
|
+
let p = d.every((e) => e.complete);
|
|
21836
|
+
return p && n.rowFragmentIndex === 0 ? {
|
|
21835
21837
|
selected: TS(t, "source"),
|
|
21836
21838
|
next: Object.freeze({
|
|
21837
21839
|
rowIndex: n.rowIndex + 1,
|
|
@@ -21857,11 +21859,11 @@ function kS(e, t, n, r, i) {
|
|
|
21857
21859
|
ranges: d.map((e) => e.range)
|
|
21858
21860
|
},
|
|
21859
21861
|
next: Object.freeze({
|
|
21860
|
-
rowIndex:
|
|
21861
|
-
rowFragmentIndex:
|
|
21862
|
-
cells: Object.freeze(
|
|
21862
|
+
rowIndex: p ? n.rowIndex + 1 : n.rowIndex,
|
|
21863
|
+
rowFragmentIndex: p ? 0 : n.rowFragmentIndex + 1,
|
|
21864
|
+
cells: Object.freeze(p ? [] : d.map((e) => e.next))
|
|
21863
21865
|
}),
|
|
21864
|
-
complete:
|
|
21866
|
+
complete: p
|
|
21865
21867
|
};
|
|
21866
21868
|
}
|
|
21867
21869
|
function AS(e, t, n) {
|
|
@@ -26699,7 +26701,8 @@ function RT(e, t, n, r) {
|
|
|
26699
26701
|
onTextRun: r.onTextRun,
|
|
26700
26702
|
threeD: r.threeD,
|
|
26701
26703
|
regionMap: r.regionMap,
|
|
26702
|
-
chartEx: r.chartEx
|
|
26704
|
+
chartEx: r.chartEx,
|
|
26705
|
+
tiff: r.tiff
|
|
26703
26706
|
}
|
|
26704
26707
|
};
|
|
26705
26708
|
}
|