@vue-pdf-viewer/annotation 1.6.0-beta.0 → 1.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.js +314 -299
- package/dist/index.umd.cjs +10 -10
- package/dist/utils/xfdfSerializer.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vp-text-xl[data-v-9d5f0033]{font-size:1.25rem;line-height:1.75rem}.vpv-toolbar-btn.vpv-toolbar-btn-active[data-v-df5778ee],.vpv-toolbar-btn[data-v-df5778ee]:hover{background-color:var(--vpv-primary-color);color:#fff}.vpv-annotation-editor-layer{position:absolute;left:0;top:0;transform-origin:0 0;width:round(down,var(--page-width) * var(--scale-factor),var(--scale-round-x));height:round(down,var(--page-height) * var(--scale-factor),var(--scale-round-y));pointer-events:none}.vpv-annotation-editor-layer[data-main-rotation="90"],.vpv-annotation-editor-layer[data-main-rotation="270"]{width:round(down,var(--page-height) * var(--scale-factor),var(--scale-round-y));height:round(down,var(--page-width) * var(--scale-factor),var(--scale-round-x))}.vpv-annotation-editor-layer *{pointer-events:auto}.vpv-annotation-editor-layer .vpv-annotation-editor{z-index:calc(var(--vpv-base-z-index) * 4)}.vpv-annotation-editor-layer.highlight-mode,.vpv-annotation-editor-layer.underline-mode,.vpv-annotation-editor-layer.strikeout-mode{cursor:text}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path{position:absolute;inset:0;pointer-events:none;z-index:calc(var(--vpv-base-z-index) * 5)}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor:is(.vpv-annotation-editor__highlight,.vpv-annotation-editor__underline,.vpv-annotation-editor__strikeout){pointer-events:none}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor:is(.vpv-annotation-editor__highlight,.vpv-annotation-editor__underline,.vpv-annotation-editor__strikeout) .vpv-annotation-editor__clip-path{pointer-events:none}.vpv-annotation-text-selection__color-picker-wrapper{padding-left:4px;padding-right:4px;padding-bottom:4px;text-align:left}.vpv-annotation-text-selection__color-picker-wrapper>p{margin-bottom:.75rem}.vpv-canvas-layer>.vpv-highlight:is(svg),.vpv-canvas-layer>.vpv-underline:is(svg),.vpv-canvas-layer>.vpv-underline-interaction:is(svg),.vpv-canvas-layer>.vpv-strikeout:is(svg),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg){position:absolute;mix-blend-mode:multiply;pointer-events:none}.vpv-canvas-layer>.vpv-highlight:is(svg)>use,.vpv-canvas-layer>.vpv-underline:is(svg)>use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg)>use{fill:inherit}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free){fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg),.vpv-canvas-layer>.vpv-underline-outline:is(svg),.vpv-canvas-layer>.vpv-strikeout-outline:is(svg){position:absolute;mix-blend-mode:normal;fill-rule:evenodd;fill:transparent;pointer-events:none;stroke:transparent;stroke-width:var(--vpv-annotation-text-selection__outline-width);vector-effect:non-scaling-stroke}.vpv-canvas-layer>.vpv-highlight-outline:is(svg) path,.vpv-canvas-layer>.vpv-highlight-outline:is(svg) use,.vpv-canvas-layer>.vpv-underline-outline:is(svg) path,.vpv-canvas-layer>.vpv-underline-outline:is(svg) use,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) path,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) use{fill-rule:evenodd;stroke:inherit;stroke-width:inherit;vector-effect:inherit}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).selected,.vpv-canvas-layer>.vpv-underline-outline:is(svg).selected,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).selected{stroke:var(--vpv-annotation-text-selection__outline-selected-color)}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor{pointer-events:none}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor__underline,.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor__strikeout,.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor__highlight,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor__underline,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor__strikeout,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor__highlight,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor__underline,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor__strikeout,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor__highlight{cursor:pointer}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text{position:absolute;user-select:none;padding:calc(var(--vpv-annotation-free-text__padding, 2px) * var(--scale-factor));cursor:auto}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text.draggable{cursor:move}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--selected:has([role=textbox][contenteditable=true]){width:auto!important;height:auto!important}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--selected,.vpv-annotation-editor-layer .vpv-annotation-editor__free-text:hover{outline:1px solid #0082ff}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text [role=textbox]{outline:none!important;text-align:start;font:10px sans-serif;line-height:var(--vpv-annotation-free-text__line-height);width:auto;height:auto;white-space:pre-wrap;word-wrap:break-word}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp{min-width:100px;min-height:calc(20px * var(--scale-factor));border:1px dashed #007bff;background-color:#ffffffe6;color:#000;cursor:text}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp>[role=textbox]{outline:none;font-size:calc(16px * var(--scale-factor));font-family:sans-serif;min-height:calc(16px * var(--scale-factor));white-space:nowrap}.vpv-annotation-editor-layer.freetext-mode>:not(.vpv-annotation-editor__free-text){user-select:none;pointer-events:none}.vpv-annotation-editor-layer:not(.freetext-mode) .vpv-annotation-editor__free-text,.vpv-annotation-editor-layer:not(.freetext-mode) .vpv-annotation-editor__free-text [role=textbox]{pointer-events:none}.vpv-resizers{position:absolute;inset:0;pointer-events:none}.vpv-resizers .vpv-resizer{position:absolute;width:var(--vpv-annotation-outline-resizer-size);height:var(--vpv-annotation-outline-resizer-size);background:white;border:1px solid var(--vpv-annotation-outline-resizer-border-color);border-radius:50%;pointer-events:auto;cursor:pointer;z-index:calc(var(--vpv-base-z-index) * 9999);transition:opacity .2s ease,visibility .2s ease}.vpv-resizers .vpv-resizer:hover,.vpv-resizers .vpv-resizer:focus{transform:scale(1.5)}.vpv-resizers .vpv-resizer--top-left{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-resizers .vpv-resizer--top-right{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-left{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-right{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-left{cursor:nesw-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-left{cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-right{cursor:nesw-resize}.vpv-resizer--dark{background:#80ebff;border-color:#2b2a33}.vpv-resizer--dark:focus{outline-color:#80ebff}.vpv-annotation-editor__image{position:absolute;cursor:pointer;touch-action:none;user-select:none;will-change:transform}.vpv-annotation-editor__image.hovered,.vpv-annotation-editor__image:hover{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-color:var(--vpv-annotation-outline-hovered-color)}.vpv-annotation-editor__image.selected{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-offset:var(--vpv-annotation-outline-selected-offset);outline-color:var(--vpv-annotation-outline-selected-color);cursor:move}.vpv-annotation-editor__image canvas{position:absolute;width:100%;height:100%;margin:0;top:0;left:0}.vpv-annotation-editor__image.dragging canvas{user-drag:none;-webkit-user-drag:none;pointer-events:none;touch-action:none}.vpv-page:not([data-main-rotation="0"]) .vpv-annotation-editor__image:hover{outline:none}.vpv-annotation-tools-container[data-v-c9502027]{padding-top:.5rem;padding-bottom:.5rem;border-top:1px solid #c6ccd2;max-width:min-content;margin:.5rem auto}.vpv-annotation-tools-container[data-v-c9502027] .vpv-toolbar-btn{margin-bottom:.25rem}.slide-enter-active[data-v-c9502027],.slide-leave-active[data-v-c9502027]{transition:all .3s ease-out}.slide-enter-from[data-v-c9502027],.slide-leave-to[data-v-c9502027]{opacity:0}.slide-enter-from[data-v-c9502027],.slide-leave-to[data-v-c9502027]{transform:translateY(-20px)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { defineComponent as qe, inject as Ln, computed as pe, openBlock as te, createBlock as ue, resolveDynamicComponent as Be, normalizeProps as Dt, mergeProps as
|
|
2
|
+
import { defineComponent as qe, inject as Ln, computed as pe, openBlock as te, createBlock as ue, resolveDynamicComponent as Be, normalizeProps as Dt, mergeProps as Te, createSlots as bn, withCtx as ee, renderSlot as ve, renderList as Uc, createElementBlock as Dn, useAttrs as $c, defineAsyncComponent as Gc, unref as ze, ref as br, createTextVNode as Mn, toDisplayString as jn, createVNode as Re, normalizeClass as Hc, mergeModels as Ti, useModel as Ei, createCommentVNode as Ae, reactive as Wc, onMounted as Kc, watch as tr, onUnmounted as Zc, Transition as Vc, markRaw as Ft, h as dr } from "vue";
|
|
3
3
|
var qc = Object.defineProperty, Xc = (e, t, n) => t in e ? qc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (e, t, n) => (Xc(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
const $t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", mn = new Uint8Array(256);
|
|
5
5
|
for (let e = 0; e < $t.length; e++)
|
|
@@ -93,7 +93,7 @@ const Yc = (e) => {
|
|
|
93
93
|
for (let n = 0, r = e.length; n < r; n++)
|
|
94
94
|
t += lt(e[n]);
|
|
95
95
|
return t;
|
|
96
|
-
},
|
|
96
|
+
}, Nt = (e) => {
|
|
97
97
|
const t = e.length;
|
|
98
98
|
for (let n = 0, r = Math.floor(t / 2); n < r; n++) {
|
|
99
99
|
const i = n, s = t - n - 1, o = e[n];
|
|
@@ -153,7 +153,7 @@ const Tr = (e) => {
|
|
|
153
153
|
n > 20 && (n -= 20, e /= Math.pow(10, n), t = e.toString() + new Array(n + 1).join("0"));
|
|
154
154
|
}
|
|
155
155
|
return t;
|
|
156
|
-
}, ur = (e) => Math.ceil(e.toString(2).length / 8),
|
|
156
|
+
}, ur = (e) => Math.ceil(e.toString(2).length / 8), zt = (e) => {
|
|
157
157
|
const t = new Uint8Array(ur(e));
|
|
158
158
|
for (let n = 1; n <= t.length; n++)
|
|
159
159
|
t[n - 1] = e >> (t.length - n) * 8;
|
|
@@ -459,7 +459,7 @@ class Ol extends vt {
|
|
|
459
459
|
super(t, r);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
class
|
|
462
|
+
class De {
|
|
463
463
|
clone(t) {
|
|
464
464
|
throw new tt(this.constructor.name, "clone");
|
|
465
465
|
}
|
|
@@ -473,7 +473,7 @@ class Ce {
|
|
|
473
473
|
throw new tt(this.constructor.name, "copyBytesInto");
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
const Ii = class extends
|
|
476
|
+
const Ii = class extends De {
|
|
477
477
|
constructor(e) {
|
|
478
478
|
super(), b(this, "numberValue"), b(this, "stringValue"), this.numberValue = e, this.stringValue = al(e);
|
|
479
479
|
}
|
|
@@ -499,7 +499,7 @@ const Ii = class extends Ce {
|
|
|
499
499
|
let U = Ii;
|
|
500
500
|
b(U, "of", (e) => new Ii(e));
|
|
501
501
|
var p = /* @__PURE__ */ ((e) => (e[e.Null = 0] = "Null", e[e.Backspace = 8] = "Backspace", e[e.Tab = 9] = "Tab", e[e.Newline = 10] = "Newline", e[e.FormFeed = 12] = "FormFeed", e[e.CarriageReturn = 13] = "CarriageReturn", e[e.Space = 32] = "Space", e[e.ExclamationPoint = 33] = "ExclamationPoint", e[e.Hash = 35] = "Hash", e[e.Percent = 37] = "Percent", e[e.LeftParen = 40] = "LeftParen", e[e.RightParen = 41] = "RightParen", e[e.Plus = 43] = "Plus", e[e.Minus = 45] = "Minus", e[e.Dash = 45] = "Dash", e[e.Period = 46] = "Period", e[e.ForwardSlash = 47] = "ForwardSlash", e[e.Zero = 48] = "Zero", e[e.One = 49] = "One", e[e.Two = 50] = "Two", e[e.Three = 51] = "Three", e[e.Four = 52] = "Four", e[e.Five = 53] = "Five", e[e.Six = 54] = "Six", e[e.Seven = 55] = "Seven", e[e.Eight = 56] = "Eight", e[e.Nine = 57] = "Nine", e[e.LessThan = 60] = "LessThan", e[e.GreaterThan = 62] = "GreaterThan", e[e.A = 65] = "A", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.R = 82] = "R", e[e.LeftSquareBracket = 91] = "LeftSquareBracket", e[e.BackSlash = 92] = "BackSlash", e[e.RightSquareBracket = 93] = "RightSquareBracket", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.x = 120] = "x", e[e.LeftCurly = 123] = "LeftCurly", e[e.RightCurly = 125] = "RightCurly", e[e.Tilde = 126] = "Tilde", e))(p || {});
|
|
502
|
-
const Oi = class extends
|
|
502
|
+
const Oi = class extends De {
|
|
503
503
|
constructor(e) {
|
|
504
504
|
super(), b(this, "array"), b(this, "context"), this.array = [], this.context = e;
|
|
505
505
|
}
|
|
@@ -605,7 +605,7 @@ const Fi = new Uint8Array(256);
|
|
|
605
605
|
for (let e = 0, t = 256; e < t; e++)
|
|
606
606
|
Fi[e] = ut[e] || We[e] ? 1 : 0;
|
|
607
607
|
Fi[p.Hash] = 1;
|
|
608
|
-
const Fl = (e) => e.replace(/#([\dABCDEF]{2})/g, (t, n) => el(n)),
|
|
608
|
+
const Fl = (e) => e.replace(/#([\dABCDEF]{2})/g, (t, n) => el(n)), Nl = (e) => e >= p.ExclamationPoint && e <= p.Tilde && !Fi[e], la = {}, Ks = /* @__PURE__ */ new Map(), ie = class extends De {
|
|
609
609
|
constructor(e, t) {
|
|
610
610
|
if (e !== la)
|
|
611
611
|
throw new Bi("PDFName");
|
|
@@ -613,7 +613,7 @@ const Fl = (e) => e.replace(/#([\dABCDEF]{2})/g, (t, n) => el(n)), zl = (e) => e
|
|
|
613
613
|
let n = "/";
|
|
614
614
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
615
615
|
const s = t[r], o = $(s);
|
|
616
|
-
n +=
|
|
616
|
+
n += Nl(o) ? s : `#${Yo(o)}`;
|
|
617
617
|
}
|
|
618
618
|
this.encodedName = n;
|
|
619
619
|
}
|
|
@@ -683,7 +683,7 @@ b(g, "Keywords", ie.of("Keywords"));
|
|
|
683
683
|
b(g, "Producer", ie.of("Producer"));
|
|
684
684
|
b(g, "CreationDate", ie.of("CreationDate"));
|
|
685
685
|
b(g, "ModDate", ie.of("ModDate"));
|
|
686
|
-
const Er = class extends
|
|
686
|
+
const Er = class extends De {
|
|
687
687
|
constructor(e) {
|
|
688
688
|
super(), b(this, "value"), this.value = e;
|
|
689
689
|
}
|
|
@@ -732,13 +732,13 @@ b(J, "fromText", (e) => {
|
|
|
732
732
|
return new Er(n);
|
|
733
733
|
});
|
|
734
734
|
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
735
|
-
const
|
|
735
|
+
const zl = 4, Zs = 0, Vs = 1, Ll = 2;
|
|
736
736
|
function tn(e) {
|
|
737
737
|
let t = e.length;
|
|
738
738
|
for (; --t >= 0; )
|
|
739
739
|
e[t] = 0;
|
|
740
740
|
}
|
|
741
|
-
const Ml = 0, ha = 1, jl = 2, Ul = 3, $l = 258,
|
|
741
|
+
const Ml = 0, ha = 1, jl = 2, Ul = 3, $l = 258, Ni = 29, Un = 256, Tn = Un + 1 + Ni, Kt = 30, zi = 19, da = 2 * Tn + 1, kt = 15, Jr = 16, Gl = 7, Li = 256, ua = 16, fa = 17, ga = 18, gi = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]), fr = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), Hl = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), pa = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Wl = 512, at = new Array((Tn + 2) * 2);
|
|
742
742
|
tn(at);
|
|
743
743
|
const kn = new Array(Kt * 2);
|
|
744
744
|
tn(kn);
|
|
@@ -746,7 +746,7 @@ const En = new Array(Wl);
|
|
|
746
746
|
tn(En);
|
|
747
747
|
const Bn = new Array($l - Ul + 1);
|
|
748
748
|
tn(Bn);
|
|
749
|
-
const Mi = new Array(
|
|
749
|
+
const Mi = new Array(Ni);
|
|
750
750
|
tn(Mi);
|
|
751
751
|
const _r = new Array(Kt);
|
|
752
752
|
tn(_r);
|
|
@@ -800,7 +800,7 @@ const _a = (e) => e < 256 ? En[e] : En[256 + (e >>> 7)], Pn = (e, t) => {
|
|
|
800
800
|
}, Vl = () => {
|
|
801
801
|
let e, t, n, r, i;
|
|
802
802
|
const s = new Array(kt + 1);
|
|
803
|
-
for (n = 0, r = 0; r <
|
|
803
|
+
for (n = 0, r = 0; r < Ni - 1; r++)
|
|
804
804
|
for (Mi[r] = n, e = 0; e < 1 << gi[r]; e++)
|
|
805
805
|
Bn[n++] = r;
|
|
806
806
|
for (Bn[n - 1] = r, i = 0, r = 0; r < 16; r++)
|
|
@@ -821,14 +821,14 @@ const _a = (e) => e < 256 ? En[e] : En[256 + (e >>> 7)], Pn = (e, t) => {
|
|
|
821
821
|
at[e * 2 + 1] = 8, e++, s[8]++;
|
|
822
822
|
for (va(at, Tn + 1, s), e = 0; e < Kt; e++)
|
|
823
823
|
kn[e * 2 + 1] = 5, kn[e * 2] = wa(e, 5);
|
|
824
|
-
ba = new Qr(at, gi, Un + 1, Tn, kt), ma = new Qr(kn, fr, 0, Kt, kt), ya = new Qr(new Array(0), Hl, 0,
|
|
824
|
+
ba = new Qr(at, gi, Un + 1, Tn, kt), ma = new Qr(kn, fr, 0, Kt, kt), ya = new Qr(new Array(0), Hl, 0, zi, Gl);
|
|
825
825
|
}, xa = (e) => {
|
|
826
826
|
let t;
|
|
827
827
|
for (t = 0; t < Tn; t++)
|
|
828
828
|
e.dyn_ltree[t * 2] = 0;
|
|
829
829
|
for (t = 0; t < Kt; t++)
|
|
830
830
|
e.dyn_dtree[t * 2] = 0;
|
|
831
|
-
for (t = 0; t <
|
|
831
|
+
for (t = 0; t < zi; t++)
|
|
832
832
|
e.bl_tree[t * 2] = 0;
|
|
833
833
|
e.dyn_ltree[Li * 2] = 1, e.opt_len = e.static_len = 0, e.sym_next = e.matches = 0;
|
|
834
834
|
}, Sa = (e) => {
|
|
@@ -881,7 +881,7 @@ const _a = (e) => e < 256 ? En[e] : En[256 + (e >>> 7)], Pn = (e, t) => {
|
|
|
881
881
|
}
|
|
882
882
|
}, ql = (e) => {
|
|
883
883
|
let t;
|
|
884
|
-
for (Ys(e, e.dyn_ltree, e.l_desc.max_code), Ys(e, e.dyn_dtree, e.d_desc.max_code), pi(e, e.bl_desc), t =
|
|
884
|
+
for (Ys(e, e.dyn_ltree, e.l_desc.max_code), Ys(e, e.dyn_dtree, e.d_desc.max_code), pi(e, e.bl_desc), t = zi - 1; t >= 3 && e.bl_tree[pa[t] * 2 + 1] === 0; t--)
|
|
885
885
|
;
|
|
886
886
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
887
887
|
}, Xl = (e, t, n, r) => {
|
|
@@ -910,7 +910,7 @@ const Jl = (e) => {
|
|
|
910
910
|
Ie(e, ha << 1, 3), et(e, Li, at), Kl(e);
|
|
911
911
|
}, eh = (e, t, n, r) => {
|
|
912
912
|
let i, s, o = 0;
|
|
913
|
-
e.level > 0 ? (e.strm.data_type === Ll && (e.strm.data_type = Yl(e)), pi(e, e.l_desc), pi(e, e.d_desc), o = ql(e), i = e.opt_len + 3 + 7 >>> 3, s = e.static_len + 3 + 7 >>> 3, s <= i && (i = s)) : i = s = n + 5, n + 4 <= i && t !== -1 ? ka(e, t, n, r) : e.strategy ===
|
|
913
|
+
e.level > 0 ? (e.strm.data_type === Ll && (e.strm.data_type = Yl(e)), pi(e, e.l_desc), pi(e, e.d_desc), o = ql(e), i = e.opt_len + 3 + 7 >>> 3, s = e.static_len + 3 + 7 >>> 3, s <= i && (i = s)) : i = s = n + 5, n + 4 <= i && t !== -1 ? ka(e, t, n, r) : e.strategy === zl || s === i ? (Ie(e, (ha << 1) + (r ? 1 : 0), 3), Xs(e, at, kn)) : (Ie(e, (jl << 1) + (r ? 1 : 0), 3), Xl(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, o + 1), Xs(e, e.dyn_ltree, e.dyn_dtree)), xa(e), r && Sa(e);
|
|
914
914
|
}, th = (e, t, n) => (e.pending_buf[e.sym_buf + e.sym_next++] = t, e.pending_buf[e.sym_buf + e.sym_next++] = t >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = n, t === 0 ? e.dyn_ltree[n * 2]++ : (e.matches++, t--, e.dyn_ltree[(Bn[n] + Un + 1) * 2]++, e.dyn_dtree[_a(t) * 2]++), e.sym_next === e.sym_end);
|
|
915
915
|
var nh = Jl, rh = ka, ih = eh, sh = th, oh = Ql, ah = {
|
|
916
916
|
_tr_init: nh,
|
|
@@ -1006,7 +1006,7 @@ const { _tr_init: uh, _tr_stored_block: bi, _tr_flush_block: fh, _tr_tally: bt,
|
|
|
1006
1006
|
Z_DEFAULT_STRATEGY: xh,
|
|
1007
1007
|
Z_UNKNOWN: Sh,
|
|
1008
1008
|
Z_DEFLATED: Br
|
|
1009
|
-
} = It, kh = 9, Ah = 15, Ch = 8, Dh = 29, Th = 256, mi = Th + 1 + Dh, Eh = 30, Bh = 19, Ph = 2 * mi + 1, Rh = 15, X = 3, gt = 258, rt = gt + X + 1, Ih = 32, Yt = 42, ji = 57, yi = 69, _i = 73, wi = 91, vi = 103, At = 113, _n = 666,
|
|
1009
|
+
} = It, kh = 9, Ah = 15, Ch = 8, Dh = 29, Th = 256, mi = Th + 1 + Dh, Eh = 30, Bh = 19, Ph = 2 * mi + 1, Rh = 15, X = 3, gt = 258, rt = gt + X + 1, Ih = 32, Yt = 42, ji = 57, yi = 69, _i = 73, wi = 91, vi = 103, At = 113, _n = 666, Ce = 1, nn = 2, Et = 3, rn = 4, Oh = 3, Ct = (e, t) => (e.msg = Tt[t], t), no = (e) => e * 2 - (e > 4 ? 9 : 0), ft = (e) => {
|
|
1010
1010
|
let t = e.length;
|
|
1011
1011
|
for (; --t >= 0; )
|
|
1012
1012
|
e[t] = 0;
|
|
@@ -1021,13 +1021,13 @@ const { _tr_init: uh, _tr_stored_block: bi, _tr_flush_block: fh, _tr_tally: bt,
|
|
|
1021
1021
|
n = e.prev[--r], e.prev[r] = n >= i ? n - i : 0;
|
|
1022
1022
|
while (--t);
|
|
1023
1023
|
};
|
|
1024
|
-
let
|
|
1025
|
-
const
|
|
1024
|
+
let Nh = (e, t, n) => (t << e.hash_shift ^ n) & e.hash_mask, yt = Nh;
|
|
1025
|
+
const Ne = (e) => {
|
|
1026
1026
|
const t = e.state;
|
|
1027
1027
|
let n = t.pending;
|
|
1028
1028
|
n > e.avail_out && (n = e.avail_out), n !== 0 && (e.output.set(t.pending_buf.subarray(t.pending_out, t.pending_out + n), e.next_out), e.next_out += n, t.pending_out += n, e.total_out += n, e.avail_out -= n, t.pending -= n, t.pending === 0 && (t.pending_out = 0));
|
|
1029
1029
|
}, Le = (e, t) => {
|
|
1030
|
-
fh(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart,
|
|
1030
|
+
fh(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, Ne(e.strm);
|
|
1031
1031
|
}, Q = (e, t) => {
|
|
1032
1032
|
e.pending_buf[e.pending++] = t;
|
|
1033
1033
|
}, hn = (e, t) => {
|
|
@@ -1069,15 +1069,15 @@ const ze = (e) => {
|
|
|
1069
1069
|
do {
|
|
1070
1070
|
if (r = 65535, s = e.bi_valid + 42 >> 3, e.strm.avail_out < s || (s = e.strm.avail_out - s, i = e.strstart - e.block_start, r > i + e.strm.avail_in && (r = i + e.strm.avail_in), r > s && (r = s), r < n && (r === 0 && t !== Ge || t === mt || r !== i + e.strm.avail_in)))
|
|
1071
1071
|
break;
|
|
1072
|
-
o = t === Ge && r === i + e.strm.avail_in ? 1 : 0, bi(e, 0, 0, o), e.pending_buf[e.pending - 4] = r, e.pending_buf[e.pending - 3] = r >> 8, e.pending_buf[e.pending - 2] = ~r, e.pending_buf[e.pending - 1] = ~r >> 8,
|
|
1072
|
+
o = t === Ge && r === i + e.strm.avail_in ? 1 : 0, bi(e, 0, 0, o), e.pending_buf[e.pending - 4] = r, e.pending_buf[e.pending - 3] = r >> 8, e.pending_buf[e.pending - 2] = ~r, e.pending_buf[e.pending - 1] = ~r >> 8, Ne(e.strm), i && (i > r && (i = r), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + i), e.strm.next_out), e.strm.next_out += i, e.strm.avail_out -= i, e.strm.total_out += i, e.block_start += i, r -= i), r && (xi(e.strm, e.strm.output, e.strm.next_out, r), e.strm.next_out += r, e.strm.avail_out -= r, e.strm.total_out += r);
|
|
1073
1073
|
} while (o === 0);
|
|
1074
|
-
return c -= e.strm.avail_in, c && (c >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= c && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - c, e.strm.next_in), e.strstart), e.strstart += c, e.insert += c > e.w_size - e.insert ? e.w_size - e.insert : c), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? rn : t !== mt && t !== Ge && e.strm.avail_in === 0 && e.strstart === e.block_start ? nn : (s = e.window_size - e.strstart, e.strm.avail_in > s && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, s += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), s > e.strm.avail_in && (s = e.strm.avail_in), s && (xi(e.strm, e.window, e.strstart, s), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.high_water < e.strstart && (e.high_water = e.strstart), s = e.bi_valid + 42 >> 3, s = e.pending_buf_size - s > 65535 ? 65535 : e.pending_buf_size - s, n = s > e.w_size ? e.w_size : s, i = e.strstart - e.block_start, (i >= n || (i || t === Ge) && t !== mt && e.strm.avail_in === 0 && i <= s) && (r = i > s ? s : i, o = t === Ge && e.strm.avail_in === 0 && r === i ? 1 : 0, bi(e, e.block_start, r, o), e.block_start += r,
|
|
1074
|
+
return c -= e.strm.avail_in, c && (c >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= c && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - c, e.strm.next_in), e.strstart), e.strstart += c, e.insert += c > e.w_size - e.insert ? e.w_size - e.insert : c), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? rn : t !== mt && t !== Ge && e.strm.avail_in === 0 && e.strstart === e.block_start ? nn : (s = e.window_size - e.strstart, e.strm.avail_in > s && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, s += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), s > e.strm.avail_in && (s = e.strm.avail_in), s && (xi(e.strm, e.window, e.strstart, s), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.high_water < e.strstart && (e.high_water = e.strstart), s = e.bi_valid + 42 >> 3, s = e.pending_buf_size - s > 65535 ? 65535 : e.pending_buf_size - s, n = s > e.w_size ? e.w_size : s, i = e.strstart - e.block_start, (i >= n || (i || t === Ge) && t !== mt && e.strm.avail_in === 0 && i <= s) && (r = i > s ? s : i, o = t === Ge && e.strm.avail_in === 0 && r === i ? 1 : 0, bi(e, e.block_start, r, o), e.block_start += r, Ne(e.strm)), o ? Et : Ce);
|
|
1075
1075
|
}, ri = (e, t) => {
|
|
1076
1076
|
let n, r;
|
|
1077
1077
|
for (; ; ) {
|
|
1078
1078
|
if (e.lookahead < rt) {
|
|
1079
1079
|
if (Jt(e), e.lookahead < rt && t === mt)
|
|
1080
|
-
return
|
|
1080
|
+
return Ce;
|
|
1081
1081
|
if (e.lookahead === 0)
|
|
1082
1082
|
break;
|
|
1083
1083
|
}
|
|
@@ -1093,15 +1093,15 @@ const ze = (e) => {
|
|
|
1093
1093
|
else
|
|
1094
1094
|
r = bt(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
|
|
1095
1095
|
if (r && (Le(e, !1), e.strm.avail_out === 0))
|
|
1096
|
-
return
|
|
1096
|
+
return Ce;
|
|
1097
1097
|
}
|
|
1098
|
-
return e.insert = e.strstart < X - 1 ? e.strstart : X - 1, t === Ge ? (Le(e, !0), e.strm.avail_out === 0 ? Et : rn) : e.sym_next && (Le(e, !1), e.strm.avail_out === 0) ?
|
|
1098
|
+
return e.insert = e.strstart < X - 1 ? e.strstart : X - 1, t === Ge ? (Le(e, !0), e.strm.avail_out === 0 ? Et : rn) : e.sym_next && (Le(e, !1), e.strm.avail_out === 0) ? Ce : nn;
|
|
1099
1099
|
}, Lt = (e, t) => {
|
|
1100
1100
|
let n, r, i;
|
|
1101
1101
|
for (; ; ) {
|
|
1102
1102
|
if (e.lookahead < rt) {
|
|
1103
1103
|
if (Jt(e), e.lookahead < rt && t === mt)
|
|
1104
|
-
return
|
|
1104
|
+
return Ce;
|
|
1105
1105
|
if (e.lookahead === 0)
|
|
1106
1106
|
break;
|
|
1107
1107
|
}
|
|
@@ -1111,21 +1111,21 @@ const ze = (e) => {
|
|
|
1111
1111
|
++e.strstart <= i && (e.ins_h = yt(e, e.ins_h, e.window[e.strstart + X - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
|
|
1112
1112
|
while (--e.prev_length !== 0);
|
|
1113
1113
|
if (e.match_available = 0, e.match_length = X - 1, e.strstart++, r && (Le(e, !1), e.strm.avail_out === 0))
|
|
1114
|
-
return
|
|
1114
|
+
return Ce;
|
|
1115
1115
|
} else if (e.match_available) {
|
|
1116
1116
|
if (r = bt(e, 0, e.window[e.strstart - 1]), r && Le(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
|
|
1117
|
-
return
|
|
1117
|
+
return Ce;
|
|
1118
1118
|
} else
|
|
1119
1119
|
e.match_available = 1, e.strstart++, e.lookahead--;
|
|
1120
1120
|
}
|
|
1121
|
-
return e.match_available && (r = bt(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < X - 1 ? e.strstart : X - 1, t === Ge ? (Le(e, !0), e.strm.avail_out === 0 ? Et : rn) : e.sym_next && (Le(e, !1), e.strm.avail_out === 0) ?
|
|
1122
|
-
},
|
|
1121
|
+
return e.match_available && (r = bt(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < X - 1 ? e.strstart : X - 1, t === Ge ? (Le(e, !0), e.strm.avail_out === 0 ? Et : rn) : e.sym_next && (Le(e, !1), e.strm.avail_out === 0) ? Ce : nn;
|
|
1122
|
+
}, zh = (e, t) => {
|
|
1123
1123
|
let n, r, i, s;
|
|
1124
1124
|
const o = e.window;
|
|
1125
1125
|
for (; ; ) {
|
|
1126
1126
|
if (e.lookahead <= gt) {
|
|
1127
1127
|
if (Jt(e), e.lookahead <= gt && t === mt)
|
|
1128
|
-
return
|
|
1128
|
+
return Ce;
|
|
1129
1129
|
if (e.lookahead === 0)
|
|
1130
1130
|
break;
|
|
1131
1131
|
}
|
|
@@ -1137,21 +1137,21 @@ const ze = (e) => {
|
|
|
1137
1137
|
e.match_length = gt - (s - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
|
|
1138
1138
|
}
|
|
1139
1139
|
if (e.match_length >= X ? (n = bt(e, 1, e.match_length - X), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = bt(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (Le(e, !1), e.strm.avail_out === 0))
|
|
1140
|
-
return
|
|
1140
|
+
return Ce;
|
|
1141
1141
|
}
|
|
1142
|
-
return e.insert = 0, t === Ge ? (Le(e, !0), e.strm.avail_out === 0 ? Et : rn) : e.sym_next && (Le(e, !1), e.strm.avail_out === 0) ?
|
|
1142
|
+
return e.insert = 0, t === Ge ? (Le(e, !0), e.strm.avail_out === 0 ? Et : rn) : e.sym_next && (Le(e, !1), e.strm.avail_out === 0) ? Ce : nn;
|
|
1143
1143
|
}, Lh = (e, t) => {
|
|
1144
1144
|
let n;
|
|
1145
1145
|
for (; ; ) {
|
|
1146
1146
|
if (e.lookahead === 0 && (Jt(e), e.lookahead === 0)) {
|
|
1147
1147
|
if (t === mt)
|
|
1148
|
-
return
|
|
1148
|
+
return Ce;
|
|
1149
1149
|
break;
|
|
1150
1150
|
}
|
|
1151
1151
|
if (e.match_length = 0, n = bt(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (Le(e, !1), e.strm.avail_out === 0))
|
|
1152
|
-
return
|
|
1152
|
+
return Ce;
|
|
1153
1153
|
}
|
|
1154
|
-
return e.insert = 0, t === Ge ? (Le(e, !0), e.strm.avail_out === 0 ? Et : rn) : e.sym_next && (Le(e, !1), e.strm.avail_out === 0) ?
|
|
1154
|
+
return e.insert = 0, t === Ge ? (Le(e, !0), e.strm.avail_out === 0 ? Et : rn) : e.sym_next && (Le(e, !1), e.strm.avail_out === 0) ? Ce : nn;
|
|
1155
1155
|
};
|
|
1156
1156
|
function Je(e, t, n, r, i) {
|
|
1157
1157
|
this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = i;
|
|
@@ -1204,7 +1204,7 @@ const $n = (e) => {
|
|
|
1204
1204
|
return Ct(e, e.avail_out === 0 ? ni : nt);
|
|
1205
1205
|
const r = n.last_flush;
|
|
1206
1206
|
if (n.last_flush = t, n.pending !== 0) {
|
|
1207
|
-
if (
|
|
1207
|
+
if (Ne(e), e.avail_out === 0)
|
|
1208
1208
|
return n.last_flush = -1, _e;
|
|
1209
1209
|
} else if (e.avail_in === 0 && no(t) <= no(r) && t !== Ge)
|
|
1210
1210
|
return Ct(e, ni);
|
|
@@ -1212,7 +1212,7 @@ const $n = (e) => {
|
|
|
1212
1212
|
return Ct(e, ni);
|
|
1213
1213
|
if (n.status === Yt && n.wrap === 0 && (n.status = At), n.status === Yt) {
|
|
1214
1214
|
let i = Br + (n.w_bits - 8 << 4) << 8, s = -1;
|
|
1215
|
-
if (n.strategy >= rr || n.level < 2 ? s = 0 : n.level < 6 ? s = 1 : n.level === 6 ? s = 2 : s = 3, i |= s << 6, n.strstart !== 0 && (i |= Ih), i += 31 - i % 31, hn(n, i), n.strstart !== 0 && (hn(n, e.adler >>> 16), hn(n, e.adler & 65535)), e.adler = 1, n.status = At,
|
|
1215
|
+
if (n.strategy >= rr || n.level < 2 ? s = 0 : n.level < 6 ? s = 1 : n.level === 6 ? s = 2 : s = 3, i |= s << 6, n.strstart !== 0 && (i |= Ih), i += 31 - i % 31, hn(n, i), n.strstart !== 0 && (hn(n, e.adler >>> 16), hn(n, e.adler & 65535)), e.adler = 1, n.status = At, Ne(e), n.pending !== 0)
|
|
1216
1216
|
return n.last_flush = -1, _e;
|
|
1217
1217
|
}
|
|
1218
1218
|
if (n.status === ji) {
|
|
@@ -1221,7 +1221,7 @@ const $n = (e) => {
|
|
|
1221
1221
|
n,
|
|
1222
1222
|
(n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)
|
|
1223
1223
|
), Q(n, n.gzhead.time & 255), Q(n, n.gzhead.time >> 8 & 255), Q(n, n.gzhead.time >> 16 & 255), Q(n, n.gzhead.time >> 24 & 255), Q(n, n.level === 9 ? 2 : n.strategy >= rr || n.level < 2 ? 4 : 0), Q(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (Q(n, n.gzhead.extra.length & 255), Q(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = ye(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = yi;
|
|
1224
|
-
else if (Q(n, 0), Q(n, 0), Q(n, 0), Q(n, 0), Q(n, 0), Q(n, n.level === 9 ? 2 : n.strategy >= rr || n.level < 2 ? 4 : 0), Q(n, Oh), n.status = At,
|
|
1224
|
+
else if (Q(n, 0), Q(n, 0), Q(n, 0), Q(n, 0), Q(n, 0), Q(n, n.level === 9 ? 2 : n.strategy >= rr || n.level < 2 ? 4 : 0), Q(n, Oh), n.status = At, Ne(e), n.pending !== 0)
|
|
1225
1225
|
return n.last_flush = -1, _e;
|
|
1226
1226
|
}
|
|
1227
1227
|
if (n.status === yi) {
|
|
@@ -1229,7 +1229,7 @@ const $n = (e) => {
|
|
|
1229
1229
|
let i = n.pending, s = (n.gzhead.extra.length & 65535) - n.gzindex;
|
|
1230
1230
|
for (; n.pending + s > n.pending_buf_size; ) {
|
|
1231
1231
|
let c = n.pending_buf_size - n.pending;
|
|
1232
|
-
if (n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex, n.gzindex + c), n.pending), n.pending = n.pending_buf_size, n.gzhead.hcrc && n.pending > i && (e.adler = ye(e.adler, n.pending_buf, n.pending - i, i)), n.gzindex += c,
|
|
1232
|
+
if (n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex, n.gzindex + c), n.pending), n.pending = n.pending_buf_size, n.gzhead.hcrc && n.pending > i && (e.adler = ye(e.adler, n.pending_buf, n.pending - i, i)), n.gzindex += c, Ne(e), n.pending !== 0)
|
|
1233
1233
|
return n.last_flush = -1, _e;
|
|
1234
1234
|
i = 0, s -= c;
|
|
1235
1235
|
}
|
|
@@ -1243,7 +1243,7 @@ const $n = (e) => {
|
|
|
1243
1243
|
let i = n.pending, s;
|
|
1244
1244
|
do {
|
|
1245
1245
|
if (n.pending === n.pending_buf_size) {
|
|
1246
|
-
if (n.gzhead.hcrc && n.pending > i && (e.adler = ye(e.adler, n.pending_buf, n.pending - i, i)),
|
|
1246
|
+
if (n.gzhead.hcrc && n.pending > i && (e.adler = ye(e.adler, n.pending_buf, n.pending - i, i)), Ne(e), n.pending !== 0)
|
|
1247
1247
|
return n.last_flush = -1, _e;
|
|
1248
1248
|
i = 0;
|
|
1249
1249
|
}
|
|
@@ -1258,7 +1258,7 @@ const $n = (e) => {
|
|
|
1258
1258
|
let i = n.pending, s;
|
|
1259
1259
|
do {
|
|
1260
1260
|
if (n.pending === n.pending_buf_size) {
|
|
1261
|
-
if (n.gzhead.hcrc && n.pending > i && (e.adler = ye(e.adler, n.pending_buf, n.pending - i, i)),
|
|
1261
|
+
if (n.gzhead.hcrc && n.pending > i && (e.adler = ye(e.adler, n.pending_buf, n.pending - i, i)), Ne(e), n.pending !== 0)
|
|
1262
1262
|
return n.last_flush = -1, _e;
|
|
1263
1263
|
i = 0;
|
|
1264
1264
|
}
|
|
@@ -1270,21 +1270,21 @@ const $n = (e) => {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
if (n.status === vi) {
|
|
1272
1272
|
if (n.gzhead.hcrc) {
|
|
1273
|
-
if (n.pending + 2 > n.pending_buf_size && (
|
|
1273
|
+
if (n.pending + 2 > n.pending_buf_size && (Ne(e), n.pending !== 0))
|
|
1274
1274
|
return n.last_flush = -1, _e;
|
|
1275
1275
|
Q(n, e.adler & 255), Q(n, e.adler >> 8 & 255), e.adler = 0;
|
|
1276
1276
|
}
|
|
1277
|
-
if (n.status = At,
|
|
1277
|
+
if (n.status = At, Ne(e), n.pending !== 0)
|
|
1278
1278
|
return n.last_flush = -1, _e;
|
|
1279
1279
|
}
|
|
1280
1280
|
if (e.avail_in !== 0 || n.lookahead !== 0 || t !== mt && n.status !== _n) {
|
|
1281
|
-
let i = n.level === 0 ? Ca(n, t) : n.strategy === rr ? Lh(n, t) : n.strategy === wh ?
|
|
1282
|
-
if ((i === Et || i === rn) && (n.status = _n), i ===
|
|
1281
|
+
let i = n.level === 0 ? Ca(n, t) : n.strategy === rr ? Lh(n, t) : n.strategy === wh ? zh(n, t) : wn[n.level].func(n, t);
|
|
1282
|
+
if ((i === Et || i === rn) && (n.status = _n), i === Ce || i === Et)
|
|
1283
1283
|
return e.avail_out === 0 && (n.last_flush = -1), _e;
|
|
1284
|
-
if (i === nn && (t === ph ? gh(n) : t !== eo && (bi(n, 0, 0, !1), t === bh && (ft(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))),
|
|
1284
|
+
if (i === nn && (t === ph ? gh(n) : t !== eo && (bi(n, 0, 0, !1), t === bh && (ft(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Ne(e), e.avail_out === 0))
|
|
1285
1285
|
return n.last_flush = -1, _e;
|
|
1286
1286
|
}
|
|
1287
|
-
return t !== Ge ? _e : n.wrap <= 0 ? to : (n.wrap === 2 ? (Q(n, e.adler & 255), Q(n, e.adler >> 8 & 255), Q(n, e.adler >> 16 & 255), Q(n, e.adler >> 24 & 255), Q(n, e.total_in & 255), Q(n, e.total_in >> 8 & 255), Q(n, e.total_in >> 16 & 255), Q(n, e.total_in >> 24 & 255)) : (hn(n, e.adler >>> 16), hn(n, e.adler & 65535)),
|
|
1287
|
+
return t !== Ge ? _e : n.wrap <= 0 ? to : (n.wrap === 2 ? (Q(n, e.adler & 255), Q(n, e.adler >> 8 & 255), Q(n, e.adler >> 16 & 255), Q(n, e.adler >> 24 & 255), Q(n, e.total_in & 255), Q(n, e.total_in >> 8 & 255), Q(n, e.total_in >> 16 & 255), Q(n, e.total_in >> 24 & 255)) : (hn(n, e.adler >>> 16), hn(n, e.adler & 65535)), Ne(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending !== 0 ? _e : to);
|
|
1288
1288
|
}, Hh = (e) => {
|
|
1289
1289
|
if ($n(e))
|
|
1290
1290
|
return nt;
|
|
@@ -1731,7 +1731,7 @@ const Mt = 15, ro = 852, io = 592, so = 0, ii = 1, oo = 2, Dd = new Uint16Array(
|
|
|
1731
1731
|
const l = c.bits;
|
|
1732
1732
|
let a = 0, h = 0, d = 0, f = 0, u = 0, m = 0, _ = 0, w = 0, y = 0, C = 0, x, v, O, A, S, F = null, R;
|
|
1733
1733
|
const E = new Uint16Array(Mt + 1), P = new Uint16Array(Mt + 1);
|
|
1734
|
-
let q = null,
|
|
1734
|
+
let q = null, N, I, B;
|
|
1735
1735
|
for (a = 0; a <= Mt; a++)
|
|
1736
1736
|
E[a] = 0;
|
|
1737
1737
|
for (h = 0; h < r; h++)
|
|
@@ -1754,9 +1754,9 @@ const Mt = 15, ro = 852, io = 592, so = 0, ii = 1, oo = 2, Dd = new Uint16Array(
|
|
|
1754
1754
|
if (e === so ? (F = q = o, R = 20) : e === ii ? (F = Dd, q = Td, R = 257) : (F = Ed, q = Bd, R = 0), C = 0, h = 0, a = d, S = s, m = u, _ = 0, O = -1, y = 1 << u, A = y - 1, e === ii && y > ro || e === oo && y > io)
|
|
1755
1755
|
return 1;
|
|
1756
1756
|
for (; ; ) {
|
|
1757
|
-
|
|
1757
|
+
N = a - _, o[h] + 1 < R ? (I = 0, B = o[h]) : o[h] >= R ? (I = q[o[h] - R], B = F[o[h] - R]) : (I = 32 + 64, B = 0), x = 1 << a - _, v = 1 << m, d = v;
|
|
1758
1758
|
do
|
|
1759
|
-
v -= x, i[S + (C >> _) + v] =
|
|
1759
|
+
v -= x, i[S + (C >> _) + v] = N << 24 | I << 16 | B | 0;
|
|
1760
1760
|
while (v !== 0);
|
|
1761
1761
|
for (x = 1 << a - 1; C & x; )
|
|
1762
1762
|
x >>= 1;
|
|
@@ -1785,10 +1785,10 @@ const Rd = 0, Ia = 1, Oa = 2, {
|
|
|
1785
1785
|
Z_NEED_DICT: Fd,
|
|
1786
1786
|
Z_STREAM_ERROR: He,
|
|
1787
1787
|
Z_DATA_ERROR: Fa,
|
|
1788
|
-
Z_MEM_ERROR:
|
|
1789
|
-
Z_BUF_ERROR:
|
|
1788
|
+
Z_MEM_ERROR: Na,
|
|
1789
|
+
Z_BUF_ERROR: Nd,
|
|
1790
1790
|
Z_DEFLATED: co
|
|
1791
|
-
} = It, Rr = 16180, lo = 16181, ho = 16182, uo = 16183, fo = 16184, go = 16185, po = 16186, bo = 16187, mo = 16188, yo = 16189, vr = 16190, ot = 16191, si = 16192, _o = 16193, oi = 16194, wo = 16195, vo = 16196, xo = 16197, So = 16198, or = 16199, ar = 16200, ko = 16201, Ao = 16202, Co = 16203, Do = 16204, To = 16205, ai = 16206, Eo = 16207, Bo = 16208, le = 16209,
|
|
1791
|
+
} = It, Rr = 16180, lo = 16181, ho = 16182, uo = 16183, fo = 16184, go = 16185, po = 16186, bo = 16187, mo = 16188, yo = 16189, vr = 16190, ot = 16191, si = 16192, _o = 16193, oi = 16194, wo = 16195, vo = 16196, xo = 16197, So = 16198, or = 16199, ar = 16200, ko = 16201, Ao = 16202, Co = 16203, Do = 16204, To = 16205, ai = 16206, Eo = 16207, Bo = 16208, le = 16209, za = 16210, La = 16211, zd = 852, Ld = 592, Md = 15, jd = Md, Po = (e) => (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
|
1792
1792
|
function Ud() {
|
|
1793
1793
|
this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1794
1794
|
}
|
|
@@ -1801,7 +1801,7 @@ const Ot = (e) => {
|
|
|
1801
1801
|
if (Ot(e))
|
|
1802
1802
|
return He;
|
|
1803
1803
|
const t = e.state;
|
|
1804
|
-
return e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = Rr, t.last = 0, t.havedict = 0, t.flags = -1, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new Int32Array(
|
|
1804
|
+
return e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = Rr, t.last = 0, t.havedict = 0, t.flags = -1, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new Int32Array(zd), t.distcode = t.distdyn = new Int32Array(Ld), t.sane = 1, t.back = -1, Bt;
|
|
1805
1805
|
}, ja = (e) => {
|
|
1806
1806
|
if (Ot(e))
|
|
1807
1807
|
return He;
|
|
@@ -2257,13 +2257,13 @@ const Gd = (e) => {
|
|
|
2257
2257
|
case le:
|
|
2258
2258
|
F = Fa;
|
|
2259
2259
|
break e;
|
|
2260
|
-
case
|
|
2261
|
-
return
|
|
2260
|
+
case za:
|
|
2261
|
+
return Na;
|
|
2262
2262
|
case La:
|
|
2263
2263
|
default:
|
|
2264
2264
|
return He;
|
|
2265
2265
|
}
|
|
2266
|
-
return e.next_out = o, e.avail_out = l, e.next_in = s, e.avail_in = c, n.hold = a, n.bits = h, (n.wsize || f !== e.avail_out && n.mode < le && (n.mode < ai || t !== ao)) && Ga(e, e.output, e.next_out, f - e.avail_out), d -= e.avail_in, f -= e.avail_out, e.total_in += d, e.total_out += f, n.total += f, n.wrap & 4 && f && (e.adler = n.check = n.flags ? ye(n.check, i, f, e.next_out - f) : Rn(n.check, i, f, e.next_out - f)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === ot ? 128 : 0) + (n.mode === or || n.mode === oi ? 256 : 0), (d === 0 && f === 0 || t === ao) && F === Bt && (F =
|
|
2266
|
+
return e.next_out = o, e.avail_out = l, e.next_in = s, e.avail_in = c, n.hold = a, n.bits = h, (n.wsize || f !== e.avail_out && n.mode < le && (n.mode < ai || t !== ao)) && Ga(e, e.output, e.next_out, f - e.avail_out), d -= e.avail_in, f -= e.avail_out, e.total_in += d, e.total_out += f, n.total += f, n.wrap & 4 && f && (e.adler = n.check = n.flags ? ye(n.check, i, f, e.next_out - f) : Rn(n.check, i, f, e.next_out - f)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === ot ? 128 : 0) + (n.mode === or || n.mode === oi ? 256 : 0), (d === 0 && f === 0 || t === ao) && F === Bt && (F = Nd), F;
|
|
2267
2267
|
}, Wd = (e) => {
|
|
2268
2268
|
if (Ot(e))
|
|
2269
2269
|
return He;
|
|
@@ -2277,7 +2277,7 @@ const Gd = (e) => {
|
|
|
2277
2277
|
}, Zd = (e, t) => {
|
|
2278
2278
|
const n = t.length;
|
|
2279
2279
|
let r, i, s;
|
|
2280
|
-
return Ot(e) || (r = e.state, r.wrap !== 0 && r.mode !== vr) ? He : r.mode === vr && (i = 1, i = Rn(i, t, n, 0), i !== r.check) ? Fa : (s = Ga(e, t, n, n), s ? (r.mode =
|
|
2280
|
+
return Ot(e) || (r = e.state, r.wrap !== 0 && r.mode !== vr) ? He : r.mode === vr && (i = 1, i = Rn(i, t, n, 0), i !== r.check) ? Fa : (s = Ga(e, t, n, n), s ? (r.mode = za, Na) : (r.havedict = 1, Bt));
|
|
2281
2281
|
};
|
|
2282
2282
|
var Vd = ja, qd = Ua, Xd = Ma, Yd = $d, Jd = $a, Qd = Hd, eu = Wd, tu = Kd, nu = Zd, ru = "pako inflate (from Nodeca project)", ct = {
|
|
2283
2283
|
inflateReset: Vd,
|
|
@@ -2405,7 +2405,7 @@ const Wa = class {
|
|
|
2405
2405
|
};
|
|
2406
2406
|
let Wn = Wa;
|
|
2407
2407
|
b(Wn, "forVersion", (e, t) => new Wa(e, t));
|
|
2408
|
-
const Hi = {}, Wi = class extends
|
|
2408
|
+
const Hi = {}, Wi = class extends De {
|
|
2409
2409
|
constructor(e, t) {
|
|
2410
2410
|
if (e !== Hi)
|
|
2411
2411
|
throw new Bi("PDFBool");
|
|
@@ -2430,7 +2430,7 @@ const Hi = {}, Wi = class extends Ce {
|
|
|
2430
2430
|
let Pt = Wi;
|
|
2431
2431
|
b(Pt, "True", new Wi(Hi, !0));
|
|
2432
2432
|
b(Pt, "False", new Wi(Hi, !1));
|
|
2433
|
-
class Ou extends
|
|
2433
|
+
class Ou extends De {
|
|
2434
2434
|
asNull() {
|
|
2435
2435
|
return null;
|
|
2436
2436
|
}
|
|
@@ -2447,7 +2447,7 @@ class Ou extends Ce {
|
|
|
2447
2447
|
return t[n++] = p.n, t[n++] = p.u, t[n++] = p.l, t[n++] = p.l, 4;
|
|
2448
2448
|
}
|
|
2449
2449
|
}
|
|
2450
|
-
const Pe = new Ou(), Ir = class extends
|
|
2450
|
+
const Pe = new Ou(), Ir = class extends De {
|
|
2451
2451
|
constructor(e, t) {
|
|
2452
2452
|
super(), b(this, "context"), b(this, "dict"), this.dict = e, this.context = t;
|
|
2453
2453
|
}
|
|
@@ -2543,7 +2543,7 @@ const Pe = new Ou(), Ir = class extends Ce {
|
|
|
2543
2543
|
let H = Ir;
|
|
2544
2544
|
b(H, "withContext", (e) => new Ir(/* @__PURE__ */ new Map(), e));
|
|
2545
2545
|
b(H, "fromMapWithContext", (e, t) => new Ir(e, t));
|
|
2546
|
-
class _t extends
|
|
2546
|
+
class _t extends De {
|
|
2547
2547
|
constructor(t) {
|
|
2548
2548
|
super(), b(this, "dict"), this.dict = t;
|
|
2549
2549
|
}
|
|
@@ -2612,7 +2612,7 @@ const Ki = class extends _t {
|
|
|
2612
2612
|
};
|
|
2613
2613
|
let Qt = Ki;
|
|
2614
2614
|
b(Qt, "of", (e, t) => new Ki(e, t));
|
|
2615
|
-
const Ka = {}, Oo = /* @__PURE__ */ new Map(), Za = class extends
|
|
2615
|
+
const Ka = {}, Oo = /* @__PURE__ */ new Map(), Za = class extends De {
|
|
2616
2616
|
constructor(e, t, n) {
|
|
2617
2617
|
if (e !== Ka)
|
|
2618
2618
|
throw new Bi("PDFRef");
|
|
@@ -2645,7 +2645,7 @@ const Zi = class {
|
|
|
2645
2645
|
const t = new Array(this.args.length);
|
|
2646
2646
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
2647
2647
|
const i = this.args[n];
|
|
2648
|
-
t[n] = i instanceof
|
|
2648
|
+
t[n] = i instanceof De ? i.clone(e) : i;
|
|
2649
2649
|
}
|
|
2650
2650
|
return Zi.of(this.name, t);
|
|
2651
2651
|
}
|
|
@@ -2659,7 +2659,7 @@ const Zi = class {
|
|
|
2659
2659
|
let e = 0;
|
|
2660
2660
|
for (let t = 0, n = this.args.length; t < n; t++) {
|
|
2661
2661
|
const r = this.args[t];
|
|
2662
|
-
e += (r instanceof
|
|
2662
|
+
e += (r instanceof De ? r.sizeInBytes() : r.length) + 1;
|
|
2663
2663
|
}
|
|
2664
2664
|
return e += this.name.length, e;
|
|
2665
2665
|
}
|
|
@@ -2667,7 +2667,7 @@ const Zi = class {
|
|
|
2667
2667
|
const n = t;
|
|
2668
2668
|
for (let r = 0, i = this.args.length; r < i; r++) {
|
|
2669
2669
|
const s = this.args[r];
|
|
2670
|
-
s instanceof
|
|
2670
|
+
s instanceof De ? t += s.copyBytesInto(e, t) : t += we(s, e, t), e[t++] = p.Space;
|
|
2671
2671
|
}
|
|
2672
2672
|
return t += we(this.name, e, t), t - n;
|
|
2673
2673
|
}
|
|
@@ -2802,7 +2802,7 @@ const Fu = ([e], [t]) => e.objectNumber - t.objectNumber, Xa = class {
|
|
|
2802
2802
|
);
|
|
2803
2803
|
}
|
|
2804
2804
|
obj(e) {
|
|
2805
|
-
if (e instanceof
|
|
2805
|
+
if (e instanceof De)
|
|
2806
2806
|
return e;
|
|
2807
2807
|
if (e == null)
|
|
2808
2808
|
return Pe;
|
|
@@ -3080,7 +3080,7 @@ const ec = class {
|
|
|
3080
3080
|
};
|
|
3081
3081
|
let es = ec;
|
|
3082
3082
|
b(es, "forContext", (e, t) => new ec(e, t));
|
|
3083
|
-
const
|
|
3083
|
+
const Nr = class extends De {
|
|
3084
3084
|
constructor(e) {
|
|
3085
3085
|
super(), b(this, "value"), this.value = e;
|
|
3086
3086
|
}
|
|
@@ -3110,7 +3110,7 @@ const zr = class extends Ce {
|
|
|
3110
3110
|
return this.value;
|
|
3111
3111
|
}
|
|
3112
3112
|
clone() {
|
|
3113
|
-
return
|
|
3113
|
+
return Nr.of(this.value);
|
|
3114
3114
|
}
|
|
3115
3115
|
toString() {
|
|
3116
3116
|
return `(${this.value})`;
|
|
@@ -3122,13 +3122,13 @@ const zr = class extends Ce {
|
|
|
3122
3122
|
return e[t++] = p.LeftParen, t += we(this.value, e, t), e[t++] = p.RightParen, this.value.length + 2;
|
|
3123
3123
|
}
|
|
3124
3124
|
};
|
|
3125
|
-
let re =
|
|
3126
|
-
b(re, "of", (e) => new
|
|
3125
|
+
let re = Nr;
|
|
3126
|
+
b(re, "of", (e) => new Nr(e));
|
|
3127
3127
|
b(re, "fromDate", (e) => {
|
|
3128
3128
|
const t = Ze(String(e.getUTCFullYear()), 4, "0"), n = Ze(String(e.getUTCMonth() + 1), 2, "0"), r = Ze(String(e.getUTCDate()), 2, "0"), i = Ze(String(e.getUTCHours()), 2, "0"), s = Ze(String(e.getUTCMinutes()), 2, "0"), o = Ze(String(e.getUTCSeconds()), 2, "0");
|
|
3129
|
-
return new
|
|
3129
|
+
return new Nr(`D:${t}${n}${r}${i}${s}${o}Z`);
|
|
3130
3130
|
});
|
|
3131
|
-
class
|
|
3131
|
+
class zr {
|
|
3132
3132
|
constructor(t, n, r) {
|
|
3133
3133
|
b(this, "bytes"), b(this, "start"), b(this, "pos"), b(this, "end"), this.bytes = t, this.start = n || 0, this.pos = this.start, this.end = !!n && !!r ? n + r : this.bytes.length;
|
|
3134
3134
|
}
|
|
@@ -3179,16 +3179,16 @@ class Nr {
|
|
|
3179
3179
|
this.start = this.pos;
|
|
3180
3180
|
}
|
|
3181
3181
|
makeSubStream(t, n) {
|
|
3182
|
-
return new
|
|
3182
|
+
return new zr(this.bytes, t, n);
|
|
3183
3183
|
}
|
|
3184
3184
|
decode() {
|
|
3185
3185
|
return this.bytes;
|
|
3186
3186
|
}
|
|
3187
3187
|
}
|
|
3188
|
-
const
|
|
3188
|
+
const Nu = new Uint8Array(0);
|
|
3189
3189
|
class Kn {
|
|
3190
3190
|
constructor(t) {
|
|
3191
|
-
if (b(this, "bufferLength"), b(this, "buffer"), b(this, "eof"), b(this, "pos"), b(this, "minBufferLength"), this.pos = 0, this.bufferLength = 0, this.eof = !1, this.buffer =
|
|
3191
|
+
if (b(this, "bufferLength"), b(this, "buffer"), b(this, "eof"), b(this, "pos"), b(this, "minBufferLength"), this.pos = 0, this.bufferLength = 0, this.eof = !1, this.buffer = Nu, this.minBufferLength = 512, t)
|
|
3192
3192
|
for (; this.minBufferLength < t; )
|
|
3193
3193
|
this.minBufferLength *= 2;
|
|
3194
3194
|
}
|
|
@@ -3249,7 +3249,7 @@ class Kn {
|
|
|
3249
3249
|
const r = t + n;
|
|
3250
3250
|
for (; this.bufferLength <= r && !this.eof; )
|
|
3251
3251
|
this.readBlock();
|
|
3252
|
-
return new
|
|
3252
|
+
return new zr(this.buffer, t, n);
|
|
3253
3253
|
}
|
|
3254
3254
|
decode() {
|
|
3255
3255
|
for (; !this.eof; )
|
|
@@ -3271,7 +3271,7 @@ class Kn {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
}
|
|
3273
3273
|
const Fo = (e) => e === 32 || e === 9 || e === 13 || e === 10;
|
|
3274
|
-
class
|
|
3274
|
+
class zu extends Kn {
|
|
3275
3275
|
constructor(t, n) {
|
|
3276
3276
|
super(n), b(this, "stream"), b(this, "input"), this.stream = t, this.input = new Uint8Array(5), n && (n = 0.8 * n);
|
|
3277
3277
|
}
|
|
@@ -3340,7 +3340,7 @@ class Lu extends Kn {
|
|
|
3340
3340
|
o >= 0 && this.eof && (i[s++] = o << 4, o = -1), this.firstDigit = o, this.bufferLength = s;
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
|
-
const
|
|
3343
|
+
const No = new Int32Array([
|
|
3344
3344
|
16,
|
|
3345
3345
|
17,
|
|
3346
3346
|
18,
|
|
@@ -4024,10 +4024,10 @@ class Gu extends Kn {
|
|
|
4024
4024
|
if (i === 1)
|
|
4025
4025
|
s = Uu, o = $u;
|
|
4026
4026
|
else if (i === 2) {
|
|
4027
|
-
const a = this.getBits(5) + 257, h = this.getBits(5) + 1, d = this.getBits(4) + 4, f = new Uint8Array(
|
|
4027
|
+
const a = this.getBits(5) + 257, h = this.getBits(5) + 1, d = this.getBits(4) + 4, f = new Uint8Array(No.length);
|
|
4028
4028
|
let u;
|
|
4029
4029
|
for (u = 0; u < d; ++u)
|
|
4030
|
-
f[
|
|
4030
|
+
f[No[u]] = this.getBits(3);
|
|
4031
4031
|
const m = this.generateHuffmanTable(f);
|
|
4032
4032
|
n = 0, u = 0;
|
|
4033
4033
|
const _ = a + h, w = new Uint8Array(_);
|
|
@@ -4215,7 +4215,7 @@ class Wu extends Kn {
|
|
|
4215
4215
|
this.bufferLength = r;
|
|
4216
4216
|
}
|
|
4217
4217
|
}
|
|
4218
|
-
const
|
|
4218
|
+
const zo = (e, t, n) => {
|
|
4219
4219
|
if (t === g.of("FlateDecode"))
|
|
4220
4220
|
return new Gu(e);
|
|
4221
4221
|
if (t === g.of("LZWDecode")) {
|
|
@@ -4227,24 +4227,24 @@ const No = (e, t, n) => {
|
|
|
4227
4227
|
return new Hu(e, void 0, r);
|
|
4228
4228
|
}
|
|
4229
4229
|
if (t === g.of("ASCII85Decode"))
|
|
4230
|
-
return new
|
|
4230
|
+
return new zu(e);
|
|
4231
4231
|
if (t === g.of("ASCIIHexDecode"))
|
|
4232
4232
|
return new Lu(e);
|
|
4233
4233
|
if (t === g.of("RunLengthDecode"))
|
|
4234
4234
|
return new Wu(e);
|
|
4235
4235
|
throw new wl(t.asString());
|
|
4236
4236
|
}, tc = ({ dict: e, contents: t }) => {
|
|
4237
|
-
let n = new
|
|
4237
|
+
let n = new zr(t);
|
|
4238
4238
|
const r = e.lookup(g.of("Filter")), i = e.lookup(g.of("DecodeParms"));
|
|
4239
4239
|
if (r instanceof g)
|
|
4240
|
-
n =
|
|
4240
|
+
n = zo(
|
|
4241
4241
|
n,
|
|
4242
4242
|
r,
|
|
4243
4243
|
i
|
|
4244
4244
|
);
|
|
4245
4245
|
else if (r instanceof Y)
|
|
4246
4246
|
for (let s = 0, o = r.size(); s < o; s++)
|
|
4247
|
-
n =
|
|
4247
|
+
n = zo(
|
|
4248
4248
|
n,
|
|
4249
4249
|
r.lookup(s, g),
|
|
4250
4250
|
i && i.lookupMaybe(s, H)
|
|
@@ -4295,7 +4295,7 @@ class ts {
|
|
|
4295
4295
|
return rl(...r);
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
|
-
const ns = class extends
|
|
4298
|
+
const ns = class extends De {
|
|
4299
4299
|
constructor(e) {
|
|
4300
4300
|
super(), b(this, "data"), this.data = e;
|
|
4301
4301
|
}
|
|
@@ -4371,7 +4371,7 @@ const Lr = class extends Vi {
|
|
|
4371
4371
|
const e = this.entryTuplesCache.access(), t = this.maxByteWidthsCache.access();
|
|
4372
4372
|
let n = "";
|
|
4373
4373
|
for (let r = 0, i = e.length; r < i; r++) {
|
|
4374
|
-
const [s, o, c] = e[r], l = zt(
|
|
4374
|
+
const [s, o, c] = e[r], l = Nt(zt(s)), a = Nt(zt(o)), h = Nt(zt(c));
|
|
4375
4375
|
for (let d = t[0] - 1; d >= 0; d--)
|
|
4376
4376
|
n += (l[d] || 0).toString(2);
|
|
4377
4377
|
for (let d = t[1] - 1; d >= 0; d--)
|
|
@@ -4385,7 +4385,7 @@ const Lr = class extends Vi {
|
|
|
4385
4385
|
const e = this.entryTuplesCache.access(), t = this.maxByteWidthsCache.access(), n = new Uint8Array(this.getUnencodedContentsSize());
|
|
4386
4386
|
let r = 0;
|
|
4387
4387
|
for (let i = 0, s = e.length; i < s; i++) {
|
|
4388
|
-
const [o, c, l] = e[i], a = zt(
|
|
4388
|
+
const [o, c, l] = e[i], a = Nt(zt(o)), h = Nt(zt(c)), d = Nt(zt(l));
|
|
4389
4389
|
for (let f = t[0] - 1; f >= 0; f--)
|
|
4390
4390
|
n[r++] = a[f] || 0;
|
|
4391
4391
|
for (let f = t[1] - 1; f >= 0; f--)
|
|
@@ -4606,41 +4606,41 @@ k.toRGBA8.decodeImage = function(e, t, n, r) {
|
|
|
4606
4606
|
} else if (a == 4) {
|
|
4607
4607
|
if (h == 8)
|
|
4608
4608
|
for (var u = 0; u < i; u++) {
|
|
4609
|
-
var x = u << 2, q = u << 1,
|
|
4610
|
-
c[x] =
|
|
4609
|
+
var x = u << 2, q = u << 1, N = e[q];
|
|
4610
|
+
c[x] = N, c[x + 1] = N, c[x + 2] = N, c[x + 3] = e[q + 1];
|
|
4611
4611
|
}
|
|
4612
4612
|
if (h == 16)
|
|
4613
4613
|
for (var u = 0; u < i; u++) {
|
|
4614
|
-
var x = u << 2, q = u << 2,
|
|
4615
|
-
c[x] =
|
|
4614
|
+
var x = u << 2, q = u << 2, N = e[q];
|
|
4615
|
+
c[x] = N, c[x + 1] = N, c[x + 2] = N, c[x + 3] = e[q + 2];
|
|
4616
4616
|
}
|
|
4617
4617
|
} else if (a == 0)
|
|
4618
4618
|
for (var w = r.tabs.tRNS ? r.tabs.tRNS : -1, S = 0; S < n; S++) {
|
|
4619
4619
|
var I = S * o, B = S * t;
|
|
4620
4620
|
if (h == 1)
|
|
4621
4621
|
for (var D = 0; D < t; D++) {
|
|
4622
|
-
var
|
|
4623
|
-
l[B + D] = j << 24 |
|
|
4622
|
+
var N = 255 * (e[I + (D >>> 3)] >>> 7 - (D & 7) & 1), j = N == w * 255 ? 0 : 255;
|
|
4623
|
+
l[B + D] = j << 24 | N << 16 | N << 8 | N;
|
|
4624
4624
|
}
|
|
4625
4625
|
else if (h == 2)
|
|
4626
4626
|
for (var D = 0; D < t; D++) {
|
|
4627
|
-
var
|
|
4628
|
-
l[B + D] = j << 24 |
|
|
4627
|
+
var N = 85 * (e[I + (D >>> 2)] >>> 6 - ((D & 3) << 1) & 3), j = N == w * 85 ? 0 : 255;
|
|
4628
|
+
l[B + D] = j << 24 | N << 16 | N << 8 | N;
|
|
4629
4629
|
}
|
|
4630
4630
|
else if (h == 4)
|
|
4631
4631
|
for (var D = 0; D < t; D++) {
|
|
4632
|
-
var
|
|
4633
|
-
l[B + D] = j << 24 |
|
|
4632
|
+
var N = 17 * (e[I + (D >>> 1)] >>> 4 - ((D & 1) << 2) & 15), j = N == w * 17 ? 0 : 255;
|
|
4633
|
+
l[B + D] = j << 24 | N << 16 | N << 8 | N;
|
|
4634
4634
|
}
|
|
4635
4635
|
else if (h == 8)
|
|
4636
4636
|
for (var D = 0; D < t; D++) {
|
|
4637
|
-
var
|
|
4638
|
-
l[B + D] = j << 24 |
|
|
4637
|
+
var N = e[I + D], j = N == w ? 0 : 255;
|
|
4638
|
+
l[B + D] = j << 24 | N << 16 | N << 8 | N;
|
|
4639
4639
|
}
|
|
4640
4640
|
else if (h == 16)
|
|
4641
4641
|
for (var D = 0; D < t; D++) {
|
|
4642
|
-
var
|
|
4643
|
-
l[B + D] = j << 24 |
|
|
4642
|
+
var N = e[I + (D << 1)], j = d(e, I + (D << u)) == w ? 0 : 255;
|
|
4643
|
+
l[B + D] = j << 24 | N << 16 | N << 8 | N;
|
|
4644
4644
|
}
|
|
4645
4645
|
}
|
|
4646
4646
|
return c;
|
|
@@ -4786,10 +4786,10 @@ k.inflateRaw = function() {
|
|
|
4786
4786
|
A.Q[(A.X[P] << 1) + 1] = q, q > E && (E = q);
|
|
4787
4787
|
}
|
|
4788
4788
|
f += 3 * l, x(A.Q, E), v(A.Q, E, A.u), u = A.w, m = A.d, f = C(A.u, (1 << E) - 1, o + c, t, f, A.v);
|
|
4789
|
-
var
|
|
4790
|
-
a = (1 <<
|
|
4789
|
+
var N = _.V(A.v, 0, o, A.C);
|
|
4790
|
+
a = (1 << N) - 1;
|
|
4791
4791
|
var I = _.V(A.v, o, c, A.D);
|
|
4792
|
-
h = (1 << I) - 1, x(A.C,
|
|
4792
|
+
h = (1 << I) - 1, x(A.C, N), v(A.C, N, u), x(A.D, I), v(A.D, I, m);
|
|
4793
4793
|
}
|
|
4794
4794
|
for (; ; ) {
|
|
4795
4795
|
var B = u[O(t, f) & a];
|
|
@@ -4807,8 +4807,8 @@ k.inflateRaw = function() {
|
|
|
4807
4807
|
}
|
|
4808
4808
|
var de = m[O(t, f) & h];
|
|
4809
4809
|
f += de & 15;
|
|
4810
|
-
var be = de >>> 4,
|
|
4811
|
-
for (f +=
|
|
4810
|
+
var be = de >>> 4, Ee = A.c[be], je = (Ee >>> 4) + w(t, f, Ee & 15);
|
|
4811
|
+
for (f += Ee & 15; d < j; )
|
|
4812
4812
|
n[d] = n[d++ - je], n[d] = n[d++ - je], n[d] = n[d++ - je], n[d] = n[d++ - je];
|
|
4813
4813
|
d = j;
|
|
4814
4814
|
}
|
|
@@ -5305,7 +5305,7 @@ k.encode.compress = function(e, t, n, r, i) {
|
|
|
5305
5305
|
v.push(F.plte[w].est.rgba);
|
|
5306
5306
|
} else
|
|
5307
5307
|
for (var u = 0; u < C.length; u++) {
|
|
5308
|
-
var
|
|
5308
|
+
var N = C[u], I = new Uint32Array(N.img.buffer), B = N.rect.width, _ = I.length, D = new Uint8Array(_);
|
|
5309
5309
|
O.push(D);
|
|
5310
5310
|
for (var w = 0; w < _; w++) {
|
|
5311
5311
|
var j = I[w];
|
|
@@ -5324,10 +5324,10 @@ k.encode.compress = function(e, t, n, r, i) {
|
|
|
5324
5324
|
var de = v.length;
|
|
5325
5325
|
de <= 256 && a == !1 && (de <= 2 ? d = 1 : de <= 4 ? d = 2 : de <= 16 ? d = 4 : d = 8, d = Math.max(d, l));
|
|
5326
5326
|
for (var u = 0; u < C.length; u++) {
|
|
5327
|
-
var
|
|
5328
|
-
|
|
5329
|
-
var B =
|
|
5330
|
-
new Uint32Array(
|
|
5327
|
+
var N = C[u];
|
|
5328
|
+
N.rect.x, N.rect.y;
|
|
5329
|
+
var B = N.rect.width, be = N.rect.height, Ee = N.img;
|
|
5330
|
+
new Uint32Array(Ee.buffer);
|
|
5331
5331
|
var je = 4 * B, Xr = 4;
|
|
5332
5332
|
if (de <= 256 && a == !1) {
|
|
5333
5333
|
je = Math.ceil(d * B / 8);
|
|
@@ -5346,15 +5346,15 @@ k.encode.compress = function(e, t, n, r, i) {
|
|
|
5346
5346
|
for (var fe = 0; fe < B; fe++)
|
|
5347
5347
|
Xe[w + (fe >> 3)] |= Jn[er + fe] << 7 - (fe & 7) * 1;
|
|
5348
5348
|
}
|
|
5349
|
-
|
|
5349
|
+
Ee = Xe, h = 3, Xr = 1;
|
|
5350
5350
|
} else if (y == !1 && C.length == 1) {
|
|
5351
5351
|
for (var Xe = new Uint8Array(B * be * 3), jc = B * be, w = 0; w < jc; w++) {
|
|
5352
5352
|
var P = w * 3, Yr = w * 4;
|
|
5353
|
-
Xe[P] =
|
|
5353
|
+
Xe[P] = Ee[Yr], Xe[P + 1] = Ee[Yr + 1], Xe[P + 2] = Ee[Yr + 2];
|
|
5354
5354
|
}
|
|
5355
|
-
|
|
5355
|
+
Ee = Xe, h = 2, Xr = 3, je = 3 * B;
|
|
5356
5356
|
}
|
|
5357
|
-
|
|
5357
|
+
N.img = Ee, N.bpl = je, N.bpp = Xr;
|
|
5358
5358
|
}
|
|
5359
5359
|
return { ctype: h, depth: d, plte: v, frames: C };
|
|
5360
5360
|
};
|
|
@@ -5363,7 +5363,7 @@ k.encode.framize = function(e, t, n, r, i, s) {
|
|
|
5363
5363
|
var l = new Uint8Array(e[c]), a = new Uint32Array(l.buffer), h, d = 0, f = 0, u = t, m = n, _ = r ? 1 : 0;
|
|
5364
5364
|
if (c != 0) {
|
|
5365
5365
|
for (var w = s || r || c == 1 || o[c - 2].dispose != 0 ? 1 : 2, y = 0, C = 1e9, x = 0; x < w; x++) {
|
|
5366
|
-
for (var
|
|
5366
|
+
for (var N = new Uint8Array(e[c - 1 - x]), v = new Uint32Array(e[c - 1 - x]), O = t, A = n, S = -1, F = -1, R = 0; R < n; R++)
|
|
5367
5367
|
for (var E = 0; E < t; E++) {
|
|
5368
5368
|
var P = R * t + E;
|
|
5369
5369
|
a[P] != v[P] && (E < O && (O = E), E > S && (S = E), R < A && (A = R), R > F && (F = R));
|
|
@@ -5372,8 +5372,8 @@ k.encode.framize = function(e, t, n, r, i, s) {
|
|
|
5372
5372
|
var q = (S - O + 1) * (F - A + 1);
|
|
5373
5373
|
q < C && (C = q, y = x, d = O, f = A, u = S - O + 1, m = F - A + 1);
|
|
5374
5374
|
}
|
|
5375
|
-
var
|
|
5376
|
-
y == 1 && (o[c - 1].dispose = 2), h = new Uint8Array(u * m * 4), k._copyTile(
|
|
5375
|
+
var N = new Uint8Array(e[c - 1 - y]);
|
|
5376
|
+
y == 1 && (o[c - 1].dispose = 2), h = new Uint8Array(u * m * 4), k._copyTile(N, t, n, h, u, m, -d, -f, 0), _ = k._copyTile(l, t, n, h, u, m, -d, -f, 3) ? 1 : 0, _ == 1 ? k.encode._prepareDiff(l, t, n, h, {
|
|
5377
5377
|
x: d,
|
|
5378
5378
|
y: f,
|
|
5379
5379
|
width: u,
|
|
@@ -5392,8 +5392,8 @@ k.encode.framize = function(e, t, n, r, i, s) {
|
|
|
5392
5392
|
for (var c = 0; c < o.length; c++) {
|
|
5393
5393
|
var I = o[c];
|
|
5394
5394
|
if (I.blend != 1) {
|
|
5395
|
-
var B = I.rect, D = o[c - 1].rect, j = Math.min(B.x, D.x), se = Math.min(B.y, D.y), de = Math.max(B.x + B.width, D.x + D.width), be = Math.max(B.y + B.height, D.y + D.height),
|
|
5396
|
-
o[c - 1].dispose = 1, c - 1 != 0 && k.encode._updateFrame(e, t, n, o, c - 1,
|
|
5395
|
+
var B = I.rect, D = o[c - 1].rect, j = Math.min(B.x, D.x), se = Math.min(B.y, D.y), de = Math.max(B.x + B.width, D.x + D.width), be = Math.max(B.y + B.height, D.y + D.height), Ee = { x: j, y: se, width: de - j, height: be - se };
|
|
5396
|
+
o[c - 1].dispose = 1, c - 1 != 0 && k.encode._updateFrame(e, t, n, o, c - 1, Ee, i), k.encode._updateFrame(e, t, n, o, c, Ee, i);
|
|
5397
5397
|
}
|
|
5398
5398
|
}
|
|
5399
5399
|
var je = 0;
|
|
@@ -6258,7 +6258,7 @@ b(hs, "create", (e) => {
|
|
|
6258
6258
|
return new ls(t, n);
|
|
6259
6259
|
});
|
|
6260
6260
|
const ge = (e) => 1 << e;
|
|
6261
|
-
var Ju = ((e) => (e[e.ReadOnly = ge(0)] = "ReadOnly", e[e.Required = ge(1)] = "Required", e[e.NoExport = ge(2)] = "NoExport", e))(Ju || {}),
|
|
6261
|
+
var Ju = ((e) => (e[e.ReadOnly = ge(0)] = "ReadOnly", e[e.Required = ge(1)] = "Required", e[e.NoExport = ge(2)] = "NoExport", e))(Ju || {}), Nn = ((e) => (e[e.NoToggleToOff = ge(14)] = "NoToggleToOff", e[e.Radio = ge(15)] = "Radio", e[e.PushButton = ge(16)] = "PushButton", e[e.RadiosInUnison = ge(25)] = "RadiosInUnison", e))(Nn || {}), Qu = ((e) => (e[e.Multiline = ge(12)] = "Multiline", e[e.Password = ge(13)] = "Password", e[e.FileSelect = ge(20)] = "FileSelect", e[e.DoNotSpellCheck = ge(22)] = "DoNotSpellCheck", e[e.DoNotScroll = ge(23)] = "DoNotScroll", e[e.Comb = ge(24)] = "Comb", e[e.RichText = ge(25)] = "RichText", e))(Qu || {}), Vt = ((e) => (e[e.Combo = ge(17)] = "Combo", e[e.Edit = ge(18)] = "Edit", e[e.Sort = ge(19)] = "Sort", e[e.MultiSelect = ge(21)] = "MultiSelect", e[e.DoNotSpellCheck = ge(22)] = "DoNotSpellCheck", e[e.CommitOnSelChange = ge(26)] = "CommitOnSelChange", e))(Vt || {});
|
|
6262
6262
|
class dc extends sn {
|
|
6263
6263
|
setValues(t) {
|
|
6264
6264
|
if (this.hasFlag(Vt.Combo) && !this.hasFlag(Vt.Edit) && !this.valuesAreValid(t))
|
|
@@ -6428,7 +6428,7 @@ b(ms, "fromDict", (e, t) => new bs(e, t));
|
|
|
6428
6428
|
b(ms, "create", (e) => {
|
|
6429
6429
|
const t = e.obj({
|
|
6430
6430
|
FT: "Btn",
|
|
6431
|
-
Ff:
|
|
6431
|
+
Ff: Nn.PushButton,
|
|
6432
6432
|
Kids: []
|
|
6433
6433
|
}), n = e.register(t);
|
|
6434
6434
|
return new bs(t, n);
|
|
@@ -6462,7 +6462,7 @@ b(_s, "fromDict", (e, t) => new ys(e, t));
|
|
|
6462
6462
|
b(_s, "create", (e) => {
|
|
6463
6463
|
const t = e.obj({
|
|
6464
6464
|
FT: "Btn",
|
|
6465
|
-
Ff:
|
|
6465
|
+
Ff: Nn.Radio,
|
|
6466
6466
|
Kids: []
|
|
6467
6467
|
}), n = e.register(t);
|
|
6468
6468
|
return new ys(t, n);
|
|
@@ -6502,7 +6502,7 @@ const ef = (e) => {
|
|
|
6502
6502
|
}, rf = (e, t) => {
|
|
6503
6503
|
var n;
|
|
6504
6504
|
const r = xs(e, g.of("Ff")), i = e.context.lookupMaybe(r, U), s = (n = i?.asNumber()) != null ? n : 0;
|
|
6505
|
-
return Si(s,
|
|
6505
|
+
return Si(s, Nn.PushButton) ? ms.fromDict(e, t) : Si(s, Nn.Radio) ? _s.fromDict(e, t) : hs.fromDict(e, t);
|
|
6506
6506
|
}, sf = (e, t) => {
|
|
6507
6507
|
var n;
|
|
6508
6508
|
const r = xs(e, g.of("Ff")), i = e.context.lookupMaybe(r, U), s = (n = i?.asNumber()) != null ? n : 0;
|
|
@@ -7019,24 +7019,24 @@ const Ds = class {
|
|
|
7019
7019
|
let on = Ds;
|
|
7020
7020
|
b(on, "of", (e) => new Ds(e));
|
|
7021
7021
|
b(on, "fromPDFRawStream", (e) => Ds.of(tc(e).decode()));
|
|
7022
|
-
const
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7022
|
+
const Se = new Uint8Array(256);
|
|
7023
|
+
Se[p.Zero] = 1;
|
|
7024
|
+
Se[p.One] = 1;
|
|
7025
|
+
Se[p.Two] = 1;
|
|
7026
|
+
Se[p.Three] = 1;
|
|
7027
|
+
Se[p.Four] = 1;
|
|
7028
|
+
Se[p.Five] = 1;
|
|
7029
|
+
Se[p.Six] = 1;
|
|
7030
|
+
Se[p.Seven] = 1;
|
|
7031
|
+
Se[p.Eight] = 1;
|
|
7032
|
+
Se[p.Nine] = 1;
|
|
7033
7033
|
const $r = new Uint8Array(256);
|
|
7034
7034
|
$r[p.Period] = 1;
|
|
7035
7035
|
$r[p.Plus] = 1;
|
|
7036
7036
|
$r[p.Minus] = 1;
|
|
7037
7037
|
const Ts = new Uint8Array(256);
|
|
7038
7038
|
for (let e = 0, t = 256; e < t; e++)
|
|
7039
|
-
Ts[e] =
|
|
7039
|
+
Ts[e] = Se[e] || $r[e] ? 1 : 0;
|
|
7040
7040
|
const { Newline: Mo, CarriageReturn: jo } = p;
|
|
7041
7041
|
class of {
|
|
7042
7042
|
constructor(t, n = !1) {
|
|
@@ -7046,7 +7046,7 @@ class of {
|
|
|
7046
7046
|
let t = "";
|
|
7047
7047
|
for (; !this.bytes.done(); ) {
|
|
7048
7048
|
const r = this.bytes.peek();
|
|
7049
|
-
if (!
|
|
7049
|
+
if (!Se[r])
|
|
7050
7050
|
break;
|
|
7051
7051
|
t += lt(this.bytes.next());
|
|
7052
7052
|
}
|
|
@@ -7064,7 +7064,7 @@ class of {
|
|
|
7064
7064
|
}
|
|
7065
7065
|
for (; !this.bytes.done(); ) {
|
|
7066
7066
|
const r = this.bytes.peek();
|
|
7067
|
-
if (!
|
|
7067
|
+
if (!Se[r])
|
|
7068
7068
|
break;
|
|
7069
7069
|
t += lt(this.bytes.next());
|
|
7070
7070
|
}
|
|
@@ -7316,7 +7316,7 @@ const { Space: af, CarriageReturn: dn, Newline: un } = p, fn = [
|
|
|
7316
7316
|
const e = this.parseRawNumber();
|
|
7317
7317
|
this.skipWhitespaceAndComments();
|
|
7318
7318
|
const t = this.bytes.offset();
|
|
7319
|
-
if (
|
|
7319
|
+
if (Se[this.bytes.peek()]) {
|
|
7320
7320
|
const n = this.parseRawNumber();
|
|
7321
7321
|
if (this.skipWhitespaceAndComments(), this.bytes.peek() === p.R)
|
|
7322
7322
|
return this.bytes.assertNext(p.R), ae.of(e, n);
|
|
@@ -7563,7 +7563,7 @@ const wc = class extends Gr {
|
|
|
7563
7563
|
return this.context.assign(n, o), n;
|
|
7564
7564
|
}
|
|
7565
7565
|
async parseIndirectObjects() {
|
|
7566
|
-
for (this.skipWhitespaceAndComments(); !this.bytes.done() &&
|
|
7566
|
+
for (this.skipWhitespaceAndComments(); !this.bytes.done() && Se[this.bytes.peek()]; ) {
|
|
7567
7567
|
const e = this.bytes.offset();
|
|
7568
7568
|
try {
|
|
7569
7569
|
await this.parseIndirectObject();
|
|
@@ -7579,7 +7579,7 @@ const wc = class extends Gr {
|
|
|
7579
7579
|
this.skipWhitespaceAndComments();
|
|
7580
7580
|
let e = -1;
|
|
7581
7581
|
const t = Or.createEmpty();
|
|
7582
|
-
for (; !this.bytes.done() &&
|
|
7582
|
+
for (; !this.bytes.done() && Se[this.bytes.peek()]; ) {
|
|
7583
7583
|
const n = this.parseRawInt();
|
|
7584
7584
|
this.skipWhitespaceAndComments();
|
|
7585
7585
|
const r = this.parseRawInt();
|
|
@@ -7647,7 +7647,7 @@ const Fe = (e) => (T(e, "degreeAngle", ["number"]), { type: "degrees", angle: e
|
|
|
7647
7647
|
W(r),
|
|
7648
7648
|
W(i),
|
|
7649
7649
|
W(s)
|
|
7650
|
-
]), an = (e, t) => Hr(1, 0, 0, 1, e, t),
|
|
7650
|
+
]), an = (e, t) => Hr(1, 0, 0, 1, e, t), zn = (e, t) => Hr(e, 0, 0, t, 0, 0), Zn = (e) => Hr(
|
|
7651
7651
|
Uo(Oe(e)),
|
|
7652
7652
|
$o(Oe(e)),
|
|
7653
7653
|
-$o(Oe(e)),
|
|
@@ -7717,7 +7717,7 @@ class _f extends Error {
|
|
|
7717
7717
|
super(t);
|
|
7718
7718
|
}
|
|
7719
7719
|
}
|
|
7720
|
-
let
|
|
7720
|
+
let z = 0, L = 0, K = 0, Z = 0, xn = 0, Sn = 0;
|
|
7721
7721
|
const Ho = /* @__PURE__ */ new Map([
|
|
7722
7722
|
["A", 7],
|
|
7723
7723
|
["a", 7],
|
|
@@ -7754,7 +7754,7 @@ const Ho = /* @__PURE__ */ new Map([
|
|
|
7754
7754
|
i += c, c === "." && (s = !0);
|
|
7755
7755
|
return i.length > 0 && (r.length === o ? (n[n.length] = { cmd: t, args: r }, r = [+i], t === "M" && (t = "L"), t === "m" && (t = "l")) : r[r.length] = +i), n[n.length] = { cmd: t, args: r }, n;
|
|
7756
7756
|
}, vf = (e) => {
|
|
7757
|
-
|
|
7757
|
+
z = L = K = Z = xn = Sn = 0;
|
|
7758
7758
|
let t = [];
|
|
7759
7759
|
for (let n = 0; n < e.length; n++) {
|
|
7760
7760
|
const r = e[n];
|
|
@@ -7766,105 +7766,105 @@ const Ho = /* @__PURE__ */ new Map([
|
|
|
7766
7766
|
return t;
|
|
7767
7767
|
}, Wo = {
|
|
7768
7768
|
M(e) {
|
|
7769
|
-
return
|
|
7769
|
+
return z = e[0], L = e[1], K = Z = null, xn = z, Sn = L, Rt(z, L);
|
|
7770
7770
|
},
|
|
7771
7771
|
m(e) {
|
|
7772
|
-
return
|
|
7772
|
+
return z += e[0], L += e[1], K = Z = null, xn = z, Sn = L, Rt(z, L);
|
|
7773
7773
|
},
|
|
7774
7774
|
C(e) {
|
|
7775
|
-
return
|
|
7775
|
+
return z = e[4], L = e[5], K = e[2], Z = e[3], Me(e[0], e[1], e[2], e[3], e[4], e[5]);
|
|
7776
7776
|
},
|
|
7777
7777
|
c(e) {
|
|
7778
7778
|
const t = Me(
|
|
7779
|
-
e[0] +
|
|
7779
|
+
e[0] + z,
|
|
7780
7780
|
e[1] + L,
|
|
7781
|
-
e[2] +
|
|
7781
|
+
e[2] + z,
|
|
7782
7782
|
e[3] + L,
|
|
7783
|
-
e[4] +
|
|
7783
|
+
e[4] + z,
|
|
7784
7784
|
e[5] + L
|
|
7785
7785
|
);
|
|
7786
|
-
return K =
|
|
7786
|
+
return K = z + e[2], Z = L + e[3], z += e[4], L += e[5], t;
|
|
7787
7787
|
},
|
|
7788
7788
|
S(e) {
|
|
7789
|
-
(K === null || Z === null) && (K =
|
|
7789
|
+
(K === null || Z === null) && (K = z, Z = L);
|
|
7790
7790
|
const t = Me(
|
|
7791
|
-
|
|
7791
|
+
z - (K - z),
|
|
7792
7792
|
L - (Z - L),
|
|
7793
7793
|
e[0],
|
|
7794
7794
|
e[1],
|
|
7795
7795
|
e[2],
|
|
7796
7796
|
e[3]
|
|
7797
7797
|
);
|
|
7798
|
-
return K = e[0], Z = e[1],
|
|
7798
|
+
return K = e[0], Z = e[1], z = e[2], L = e[3], t;
|
|
7799
7799
|
},
|
|
7800
7800
|
s(e) {
|
|
7801
|
-
(K === null || Z === null) && (K =
|
|
7801
|
+
(K === null || Z === null) && (K = z, Z = L);
|
|
7802
7802
|
const t = Me(
|
|
7803
|
-
|
|
7803
|
+
z - (K - z),
|
|
7804
7804
|
L - (Z - L),
|
|
7805
|
-
|
|
7805
|
+
z + e[0],
|
|
7806
7806
|
L + e[1],
|
|
7807
|
-
|
|
7807
|
+
z + e[2],
|
|
7808
7808
|
L + e[3]
|
|
7809
7809
|
);
|
|
7810
|
-
return K =
|
|
7810
|
+
return K = z + e[0], Z = L + e[1], z += e[2], L += e[3], t;
|
|
7811
7811
|
},
|
|
7812
7812
|
Q(e) {
|
|
7813
|
-
return K = e[0], Z = e[1],
|
|
7813
|
+
return K = e[0], Z = e[1], z = e[2], L = e[3], hr(e[0], e[1], z, L);
|
|
7814
7814
|
},
|
|
7815
7815
|
q(e) {
|
|
7816
7816
|
const t = hr(
|
|
7817
|
-
e[0] +
|
|
7817
|
+
e[0] + z,
|
|
7818
7818
|
e[1] + L,
|
|
7819
|
-
e[2] +
|
|
7819
|
+
e[2] + z,
|
|
7820
7820
|
e[3] + L
|
|
7821
7821
|
);
|
|
7822
|
-
return K =
|
|
7822
|
+
return K = z + e[0], Z = L + e[1], z += e[2], L += e[3], t;
|
|
7823
7823
|
},
|
|
7824
7824
|
T(e) {
|
|
7825
|
-
K === null || Z === null ? (K =
|
|
7825
|
+
K === null || Z === null ? (K = z, Z = L) : (K = z - (K - z), Z = L - (Z - L));
|
|
7826
7826
|
const t = hr(K, Z, e[0], e[1]);
|
|
7827
|
-
return K =
|
|
7827
|
+
return K = z - (K - z), Z = L - (Z - L), z = e[0], L = e[1], t;
|
|
7828
7828
|
},
|
|
7829
7829
|
t(e) {
|
|
7830
|
-
K === null || Z === null ? (K =
|
|
7831
|
-
const t = hr(K, Z,
|
|
7832
|
-
return
|
|
7830
|
+
K === null || Z === null ? (K = z, Z = L) : (K = z - (K - z), Z = L - (Z - L));
|
|
7831
|
+
const t = hr(K, Z, z + e[0], L + e[1]);
|
|
7832
|
+
return z += e[0], L += e[1], t;
|
|
7833
7833
|
},
|
|
7834
7834
|
A(e) {
|
|
7835
|
-
const t = Ko(
|
|
7836
|
-
return
|
|
7835
|
+
const t = Ko(z, L, e);
|
|
7836
|
+
return z = e[5], L = e[6], t;
|
|
7837
7837
|
},
|
|
7838
7838
|
a(e) {
|
|
7839
|
-
e[5] +=
|
|
7840
|
-
const t = Ko(
|
|
7841
|
-
return
|
|
7839
|
+
e[5] += z, e[6] += L;
|
|
7840
|
+
const t = Ko(z, L, e);
|
|
7841
|
+
return z = e[5], L = e[6], t;
|
|
7842
7842
|
},
|
|
7843
7843
|
L(e) {
|
|
7844
|
-
return
|
|
7844
|
+
return z = e[0], L = e[1], K = Z = null, Qe(z, L);
|
|
7845
7845
|
},
|
|
7846
7846
|
l(e) {
|
|
7847
|
-
return
|
|
7847
|
+
return z += e[0], L += e[1], K = Z = null, Qe(z, L);
|
|
7848
7848
|
},
|
|
7849
7849
|
H(e) {
|
|
7850
|
-
return
|
|
7850
|
+
return z = e[0], K = Z = null, Qe(z, L);
|
|
7851
7851
|
},
|
|
7852
7852
|
h(e) {
|
|
7853
|
-
return
|
|
7853
|
+
return z += e[0], K = Z = null, Qe(z, L);
|
|
7854
7854
|
},
|
|
7855
7855
|
V(e) {
|
|
7856
|
-
return L = e[0], K = Z = null, Qe(
|
|
7856
|
+
return L = e[0], K = Z = null, Qe(z, L);
|
|
7857
7857
|
},
|
|
7858
7858
|
v(e) {
|
|
7859
|
-
return L += e[0], K = Z = null, Qe(
|
|
7859
|
+
return L += e[0], K = Z = null, Qe(z, L);
|
|
7860
7860
|
},
|
|
7861
7861
|
Z() {
|
|
7862
7862
|
const e = en();
|
|
7863
|
-
return
|
|
7863
|
+
return z = xn, L = Sn, e;
|
|
7864
7864
|
},
|
|
7865
7865
|
z() {
|
|
7866
7866
|
const e = en();
|
|
7867
|
-
return
|
|
7867
|
+
return z = xn, L = Sn, e;
|
|
7868
7868
|
}
|
|
7869
7869
|
}, Ko = (e, t, n) => {
|
|
7870
7870
|
const [r, i, s, o, c, l, a] = n, h = xf(l, a, r, i, o, c, s, e, t), d = [];
|
|
@@ -7886,9 +7886,9 @@ const Ho = /* @__PURE__ */ new Map([
|
|
|
7886
7886
|
const F = 0.5 * (y + x) - S * (v - C), R = 0.5 * (C + v) + S * (x - y), E = Math.atan2(C - R, y - F);
|
|
7887
7887
|
let q = Math.atan2(v - R, x - F) - E;
|
|
7888
7888
|
q < 0 && s === 1 ? q += 2 * Math.PI : q > 0 && s === 0 && (q -= 2 * Math.PI);
|
|
7889
|
-
const
|
|
7890
|
-
for (let B = 0; B <
|
|
7891
|
-
const D = E + B * q /
|
|
7889
|
+
const N = Math.ceil(Math.abs(q / (Math.PI * 0.5 + 1e-3))), I = [];
|
|
7890
|
+
for (let B = 0; B < N; B++) {
|
|
7891
|
+
const D = E + B * q / N, j = E + (B + 1) * q / N;
|
|
7892
7892
|
I[B] = [F, R, D, j, n, r, h, d];
|
|
7893
7893
|
}
|
|
7894
7894
|
return I;
|
|
@@ -7907,7 +7907,7 @@ const Ho = /* @__PURE__ */ new Map([
|
|
|
7907
7907
|
t.graphicsState && cn(t.graphicsState),
|
|
7908
7908
|
an(t.x, t.y),
|
|
7909
7909
|
Zn(Ve(t.rotate)),
|
|
7910
|
-
|
|
7910
|
+
zn(t.width, t.height),
|
|
7911
7911
|
Ps(Ve(t.xSkew), Ve(t.ySkew)),
|
|
7912
7912
|
Cc(e),
|
|
7913
7913
|
dt()
|
|
@@ -7916,7 +7916,7 @@ const Ho = /* @__PURE__ */ new Map([
|
|
|
7916
7916
|
t.graphicsState && cn(t.graphicsState),
|
|
7917
7917
|
an(t.x, t.y),
|
|
7918
7918
|
Zn(Ve(t.rotate)),
|
|
7919
|
-
|
|
7919
|
+
zn(t.xScale, t.yScale),
|
|
7920
7920
|
Ps(Ve(t.xSkew), Ve(t.ySkew)),
|
|
7921
7921
|
Cc(e),
|
|
7922
7922
|
dt()
|
|
@@ -8013,7 +8013,7 @@ const Ho = /* @__PURE__ */ new Map([
|
|
|
8013
8013
|
t.graphicsState && cn(t.graphicsState),
|
|
8014
8014
|
an(t.x, t.y),
|
|
8015
8015
|
Zn(Ve((n = t.rotate) != null ? n : Fe(0))),
|
|
8016
|
-
t.scale ?
|
|
8016
|
+
t.scale ? zn(t.scale, -t.scale) : zn(1, -1),
|
|
8017
8017
|
t.color && Os(t.color),
|
|
8018
8018
|
t.borderColor && qr(t.borderColor),
|
|
8019
8019
|
t.borderWidth && Zr(t.borderWidth),
|
|
@@ -8148,8 +8148,8 @@ const Fc = class {
|
|
|
8148
8148
|
}
|
|
8149
8149
|
}
|
|
8150
8150
|
};
|
|
8151
|
-
let
|
|
8152
|
-
b(
|
|
8151
|
+
let Nc = Fc;
|
|
8152
|
+
b(Nc, "of", (e, t, n) => new Fc(e, t, n));
|
|
8153
8153
|
const Fs = class {
|
|
8154
8154
|
constructor(e, t, n) {
|
|
8155
8155
|
b(this, "node"), b(this, "ref"), b(this, "doc"), b(this, "fontKey"), b(this, "font"), b(this, "fontSize", 24), b(this, "fontColor", gn(0, 0, 0)), b(this, "lineHeight", 24), b(this, "x", 0), b(this, "y", 0), b(this, "contentStream"), b(this, "contentStreamRef"), T(e, "leafNode", [[it, "PDFPageLeaf"]]), T(t, "ref", [[ae, "PDFRef"]]), T(n, "doc", [[xt, "PDFDocument"]]), this.node = e, this.ref = t, this.doc = n;
|
|
@@ -8246,7 +8246,7 @@ const Fs = class {
|
|
|
8246
8246
|
}
|
|
8247
8247
|
scaleContent(e, t) {
|
|
8248
8248
|
T(e, "x", ["number"]), T(t, "y", ["number"]), this.node.normalize(), this.getContentStream();
|
|
8249
|
-
const n = this.createContentStream(ht(),
|
|
8249
|
+
const n = this.createContentStream(ht(), zn(e, t)), r = this.doc.context.register(n), i = this.createContentStream(dt()), s = this.doc.context.register(i);
|
|
8250
8250
|
this.node.wrapContentStreams(r, s);
|
|
8251
8251
|
}
|
|
8252
8252
|
scaleAnnotations(e, t) {
|
|
@@ -8302,7 +8302,7 @@ const Fs = class {
|
|
|
8302
8302
|
}
|
|
8303
8303
|
drawImage(e, t = {}) {
|
|
8304
8304
|
var n, r, i, s, o, c, l;
|
|
8305
|
-
T(e, "image", [[
|
|
8305
|
+
T(e, "image", [[Nc, "PDFImage"]]), M(t.x, "options.x", ["number"]), M(t.y, "options.y", ["number"]), M(t.width, "options.width", ["number"]), M(t.height, "options.height", ["number"]), M(t.rotate, "options.rotate", [[Object, "Rotation"]]), M(t.xSkew, "options.xSkew", [[Object, "Rotation"]]), M(t.ySkew, "options.ySkew", [[Object, "Rotation"]]), st(t.opacity, "opacity.opacity", 0, 1), Ye(t.blendMode, "options.blendMode", St);
|
|
8306
8306
|
const a = this.node.newXObject("Image", e.ref), h = this.maybeEmbedGraphicsState({
|
|
8307
8307
|
opacity: t.opacity,
|
|
8308
8308
|
blendMode: t.blendMode
|
|
@@ -8541,7 +8541,7 @@ b(Gt, "create", (e) => {
|
|
|
8541
8541
|
const t = ae.of(-1), n = it.withContextAndParent(e.context, t), r = e.context.register(n);
|
|
8542
8542
|
return new Fs(n, r, e);
|
|
8543
8543
|
});
|
|
8544
|
-
const
|
|
8544
|
+
const zc = class {
|
|
8545
8545
|
constructor(e, t, n) {
|
|
8546
8546
|
b(this, "ref"), b(this, "doc"), b(this, "alreadyEmbedded", !1), b(this, "embedder"), this.ref = e, this.doc = t, this.embedder = n;
|
|
8547
8547
|
}
|
|
@@ -8561,14 +8561,14 @@ const Nc = class {
|
|
|
8561
8561
|
}
|
|
8562
8562
|
}
|
|
8563
8563
|
};
|
|
8564
|
-
let Lc =
|
|
8565
|
-
b(Lc, "of", (e, t, n) => new
|
|
8566
|
-
class
|
|
8564
|
+
let Lc = zc;
|
|
8565
|
+
b(Lc, "of", (e, t, n) => new zc(e, t, n));
|
|
8566
|
+
class Ns {
|
|
8567
8567
|
constructor(t, n) {
|
|
8568
8568
|
b(this, "script"), b(this, "scriptName"), this.script = t, this.scriptName = n;
|
|
8569
8569
|
}
|
|
8570
8570
|
static for(t, n) {
|
|
8571
|
-
return new
|
|
8571
|
+
return new Ns(t, n);
|
|
8572
8572
|
}
|
|
8573
8573
|
async embedIntoContext(t, n) {
|
|
8574
8574
|
const r = t.obj({
|
|
@@ -8646,7 +8646,7 @@ class xt {
|
|
|
8646
8646
|
}
|
|
8647
8647
|
addJavaScript(t, n) {
|
|
8648
8648
|
T(t, "name", ["string"]), T(n, "script", ["string"]);
|
|
8649
|
-
const r =
|
|
8649
|
+
const r = Ns.for(n, t), i = this.context.nextRef(), s = Lc.of(i, this, r);
|
|
8650
8650
|
this.javaScripts.push(s);
|
|
8651
8651
|
}
|
|
8652
8652
|
async flush() {
|
|
@@ -8706,7 +8706,7 @@ var Zo;
|
|
|
8706
8706
|
})(Zo || (Zo = {}));
|
|
8707
8707
|
const Of = {
|
|
8708
8708
|
ANNOTATIONS: "annotations"
|
|
8709
|
-
}, Vn = Symbol("VPV Shared UIs"), Mc = Symbol("VPV Current Localization"), pn = Dr,
|
|
8709
|
+
}, Vn = Symbol("VPV Shared UIs"), Mc = Symbol("VPV Current Localization"), pn = Dr, zs = {
|
|
8710
8710
|
Black: "#000000",
|
|
8711
8711
|
DarkGray: "#444444",
|
|
8712
8712
|
Gray: "#696969",
|
|
@@ -8714,7 +8714,7 @@ const Of = {
|
|
|
8714
8714
|
LightestGray: "#CDCDCD",
|
|
8715
8715
|
ChristmasWhite: "#EDEDED"
|
|
8716
8716
|
}, Ue = {
|
|
8717
|
-
...
|
|
8717
|
+
...zs,
|
|
8718
8718
|
Purple: "#7862FF",
|
|
8719
8719
|
Blue: "#1777FF",
|
|
8720
8720
|
Red: "#F66365",
|
|
@@ -8728,7 +8728,7 @@ const Of = {
|
|
|
8728
8728
|
Orange: "#FFBD82",
|
|
8729
8729
|
Yellow: "#FCE244",
|
|
8730
8730
|
Green: "#A0F751",
|
|
8731
|
-
...
|
|
8731
|
+
...zs
|
|
8732
8732
|
}, he = {
|
|
8733
8733
|
Purple: "#7862FF",
|
|
8734
8734
|
Blue: "#1777FF",
|
|
@@ -8736,7 +8736,7 @@ const Of = {
|
|
|
8736
8736
|
Orange: "#F67E63",
|
|
8737
8737
|
Yellow: "#F5C463",
|
|
8738
8738
|
Green: "#48BB77",
|
|
8739
|
-
...
|
|
8739
|
+
...zs
|
|
8740
8740
|
}, Ff = {
|
|
8741
8741
|
[$e.Purple]: "Purple",
|
|
8742
8742
|
[$e.Cyan]: "Cyan",
|
|
@@ -8750,7 +8750,7 @@ const Of = {
|
|
|
8750
8750
|
[$e.LightGray]: "Light Gray",
|
|
8751
8751
|
[$e.LightestGray]: "Lightest Gray",
|
|
8752
8752
|
[$e.ChristmasWhite]: "Christmas White"
|
|
8753
|
-
},
|
|
8753
|
+
}, Nf = {
|
|
8754
8754
|
[he.Purple]: "Purple",
|
|
8755
8755
|
[he.Blue]: "Blue",
|
|
8756
8756
|
[he.Red]: "Red",
|
|
@@ -8763,7 +8763,7 @@ const Of = {
|
|
|
8763
8763
|
[he.LightGray]: "Light Gray",
|
|
8764
8764
|
[he.LightestGray]: "Lightest Gray",
|
|
8765
8765
|
[he.ChristmasWhite]: "Christmas White"
|
|
8766
|
-
},
|
|
8766
|
+
}, zf = {
|
|
8767
8767
|
[he.Purple]: "Purple",
|
|
8768
8768
|
[he.Blue]: "Blue",
|
|
8769
8769
|
[he.Red]: "Red",
|
|
@@ -8985,7 +8985,7 @@ class $f {
|
|
|
8985
8985
|
return r;
|
|
8986
8986
|
}
|
|
8987
8987
|
}
|
|
8988
|
-
const
|
|
8988
|
+
const ke = "http://ns.adobe.com/xfdf/";
|
|
8989
8989
|
function Vo(e) {
|
|
8990
8990
|
e || (e = new Date());
|
|
8991
8991
|
const t = e instanceof Date ? e : new Date(e);
|
|
@@ -9006,14 +9006,14 @@ function Hf(e) {
|
|
|
9006
9006
|
isNaN(i) ? 0 : i
|
|
9007
9007
|
]);
|
|
9008
9008
|
}
|
|
9009
|
-
class
|
|
9009
|
+
class xe {
|
|
9010
9010
|
static serializeAnnotation(t, n) {
|
|
9011
9011
|
if (t.deleted)
|
|
9012
9012
|
return null;
|
|
9013
9013
|
const r = Uf[t.annotationType];
|
|
9014
9014
|
if (!r)
|
|
9015
9015
|
return null;
|
|
9016
|
-
const i = n.createElementNS(
|
|
9016
|
+
const i = n.createElementNS(ke, r);
|
|
9017
9017
|
i.setAttribute("page", String(t.pageIndex ?? 0)), t.rect && t.rect.length === 4 && i.setAttribute(
|
|
9018
9018
|
"rect",
|
|
9019
9019
|
t.rect.map((c) => c.toFixed(4)).join(",")
|
|
@@ -9034,62 +9034,75 @@ class ke {
|
|
|
9034
9034
|
case V.Highlight:
|
|
9035
9035
|
case V.Underline:
|
|
9036
9036
|
case V.StrikeOut:
|
|
9037
|
-
return
|
|
9037
|
+
return xe.serializeTextMarkup(t, i, n);
|
|
9038
9038
|
case V.FreeText:
|
|
9039
|
-
return
|
|
9039
|
+
return xe.serializeFreeText(t, i, n);
|
|
9040
9040
|
case V.Stamp:
|
|
9041
|
-
return
|
|
9041
|
+
return xe.serializeStamp(t, i, n);
|
|
9042
9042
|
case V.Ink:
|
|
9043
|
-
return
|
|
9043
|
+
return xe.serializeInk(t, i, n);
|
|
9044
9044
|
case V.Popup:
|
|
9045
|
-
return
|
|
9045
|
+
return xe.serializePopup(t, i, n);
|
|
9046
9046
|
default:
|
|
9047
9047
|
return null;
|
|
9048
9048
|
}
|
|
9049
9049
|
}
|
|
9050
9050
|
static serializeTextMarkup(t, n, r) {
|
|
9051
9051
|
if (t.quadPoints && t.quadPoints.length > 0) {
|
|
9052
|
-
const i = r.createElementNS(
|
|
9052
|
+
const i = r.createElementNS(ke, "coords");
|
|
9053
9053
|
i.textContent = Array.from(t.quadPoints).map((s) => s.toFixed(4)).join(","), n.appendChild(i);
|
|
9054
9054
|
}
|
|
9055
9055
|
if (t.contents) {
|
|
9056
|
-
const i = r.createElementNS(
|
|
9056
|
+
const i = r.createElementNS(ke, "contents");
|
|
9057
9057
|
i.textContent = t.contents, n.appendChild(i);
|
|
9058
9058
|
}
|
|
9059
9059
|
return n;
|
|
9060
9060
|
}
|
|
9061
9061
|
static serializeFreeText(t, n, r) {
|
|
9062
|
-
const i = t.value ?? t.contents ?? t.contentsObj?.str ?? "", s = r.createElementNS(
|
|
9062
|
+
const i = t.value ?? t.contents ?? t.contentsObj?.str ?? "", s = r.createElementNS(ke, "contents");
|
|
9063
9063
|
s.textContent = i, n.appendChild(s);
|
|
9064
|
-
const o = t.defaultAppearanceData;
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9064
|
+
const o = t.defaultAppearanceData, c = o?.fontName ?? "Helvetica", l = o?.fontSize ?? t.fontSize ?? 12;
|
|
9065
|
+
let a = "0 0 0";
|
|
9066
|
+
const h = o?.fontColor ?? t.color;
|
|
9067
|
+
h && (a = `${(h[0] / 255).toFixed(3)} ${(h[1] / 255).toFixed(3)} ${(h[2] / 255).toFixed(3)}`);
|
|
9068
|
+
const d = r.createElementNS(ke, "defaultappearance");
|
|
9069
|
+
return d.textContent = `/${c} ${l} Tf ${a} rg`, n.appendChild(d), n;
|
|
9070
|
+
}
|
|
9071
|
+
static bitmapToDataUrlSync(t) {
|
|
9072
|
+
try {
|
|
9073
|
+
const n = t?.width, r = t?.height;
|
|
9074
|
+
if (!n || !r)
|
|
9075
|
+
return null;
|
|
9076
|
+
const i = document.createElement("canvas");
|
|
9077
|
+
i.width = n, i.height = r;
|
|
9078
|
+
const s = i.getContext("2d");
|
|
9079
|
+
return s ? (s.drawImage(t, 0, 0), i.toDataURL("image/png")) : null;
|
|
9080
|
+
} catch {
|
|
9081
|
+
return null;
|
|
9077
9082
|
}
|
|
9078
|
-
return n;
|
|
9079
9083
|
}
|
|
9080
9084
|
static serializeStamp(t, n, r) {
|
|
9081
9085
|
if (t.iconName && n.setAttribute("icon", t.iconName), t.contents) {
|
|
9082
|
-
const
|
|
9083
|
-
|
|
9086
|
+
const s = r.createElementNS(ke, "contents");
|
|
9087
|
+
s.textContent = t.contents, n.appendChild(s);
|
|
9088
|
+
}
|
|
9089
|
+
let i = t.imageDataUrl ?? null;
|
|
9090
|
+
if (!i) {
|
|
9091
|
+
const s = t.bitmap;
|
|
9092
|
+
s && (i = xe.bitmapToDataUrlSync(s));
|
|
9093
|
+
}
|
|
9094
|
+
if (i) {
|
|
9095
|
+
const s = r.createElementNS(ke, "imagedata");
|
|
9096
|
+
s.textContent = i, n.appendChild(s);
|
|
9084
9097
|
}
|
|
9085
9098
|
return n;
|
|
9086
9099
|
}
|
|
9087
9100
|
static serializeInk(t, n, r) {
|
|
9088
9101
|
const i = t.inkLists;
|
|
9089
9102
|
if (i && i.length > 0) {
|
|
9090
|
-
const s = r.createElementNS(
|
|
9103
|
+
const s = r.createElementNS(ke, "inklist");
|
|
9091
9104
|
for (const o of i) {
|
|
9092
|
-
const c = r.createElementNS(
|
|
9105
|
+
const c = r.createElementNS(ke, "gesture"), l = [];
|
|
9093
9106
|
for (let a = 0; a < o.length; a += 2)
|
|
9094
9107
|
l.push(`${o[a].toFixed(4)};${o[a + 1].toFixed(4)}`);
|
|
9095
9108
|
c.textContent = l.join(";"), s.appendChild(c);
|
|
@@ -9106,21 +9119,21 @@ class ke {
|
|
|
9106
9119
|
"icon",
|
|
9107
9120
|
t.iconName ?? "Comment"
|
|
9108
9121
|
), t.contents) {
|
|
9109
|
-
const i = r.createElementNS(
|
|
9122
|
+
const i = r.createElementNS(ke, "contents");
|
|
9110
9123
|
i.textContent = t.contents, n.appendChild(i);
|
|
9111
9124
|
}
|
|
9112
9125
|
return n;
|
|
9113
9126
|
}
|
|
9114
9127
|
static exportToXfdf(t, n) {
|
|
9115
9128
|
const r = document.implementation.createDocument(
|
|
9116
|
-
|
|
9129
|
+
ke,
|
|
9117
9130
|
"xfdf",
|
|
9118
9131
|
null
|
|
9119
9132
|
), i = r.documentElement;
|
|
9120
|
-
i.setAttribute("xmlns",
|
|
9121
|
-
const s = r.createElementNS(
|
|
9133
|
+
i.setAttribute("xmlns", ke), i.setAttribute("xml:space", "preserve");
|
|
9134
|
+
const s = r.createElementNS(ke, "f");
|
|
9122
9135
|
s.setAttribute("href", n ?? "document.pdf"), i.appendChild(s);
|
|
9123
|
-
const o = r.createElementNS(
|
|
9136
|
+
const o = r.createElementNS(ke, "annots"), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
9124
9137
|
for (const d of t) {
|
|
9125
9138
|
if (!d.id)
|
|
9126
9139
|
continue;
|
|
@@ -9138,7 +9151,7 @@ class ke {
|
|
|
9138
9151
|
...d,
|
|
9139
9152
|
id: l.get(d.id) ?? d.id,
|
|
9140
9153
|
inReplyTo: d.inReplyTo && l.has(d.inReplyTo) ? l.get(d.inReplyTo) ?? d.inReplyTo : d.inReplyTo
|
|
9141
|
-
} : d, u =
|
|
9154
|
+
} : d, u = xe.serializeAnnotation(f, r);
|
|
9142
9155
|
u && o.appendChild(u);
|
|
9143
9156
|
}
|
|
9144
9157
|
return i.appendChild(o), `<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -9202,19 +9215,19 @@ ${new XMLSerializer().serializeToString(r)}`;
|
|
|
9202
9215
|
case V.Highlight:
|
|
9203
9216
|
case V.Underline:
|
|
9204
9217
|
case V.StrikeOut:
|
|
9205
|
-
|
|
9218
|
+
xe.parseTextMarkup(t, C, a);
|
|
9206
9219
|
break;
|
|
9207
9220
|
case V.FreeText:
|
|
9208
|
-
|
|
9221
|
+
xe.parseFreeText(t, C);
|
|
9209
9222
|
break;
|
|
9210
9223
|
case V.Stamp:
|
|
9211
|
-
|
|
9224
|
+
xe.parseStamp(t, C);
|
|
9212
9225
|
break;
|
|
9213
9226
|
case V.Ink:
|
|
9214
|
-
|
|
9227
|
+
xe.parseInk(t, C);
|
|
9215
9228
|
break;
|
|
9216
9229
|
case V.Popup:
|
|
9217
|
-
|
|
9230
|
+
xe.parsePopup(t, C);
|
|
9218
9231
|
break;
|
|
9219
9232
|
}
|
|
9220
9233
|
return { annotation: C, skipped: null };
|
|
@@ -9244,14 +9257,16 @@ ${new XMLSerializer().serializeToString(r)}`;
|
|
|
9244
9257
|
fontName: l,
|
|
9245
9258
|
fontSize: a,
|
|
9246
9259
|
fontColor: h
|
|
9247
|
-
}, n.fontSize = a;
|
|
9260
|
+
}, n.fontSize = a, !n.color && c && (n.color = h);
|
|
9248
9261
|
}
|
|
9249
9262
|
}
|
|
9250
9263
|
static parseStamp(t, n) {
|
|
9251
9264
|
const r = t.getAttribute("icon");
|
|
9252
9265
|
r && (n.iconName = r);
|
|
9253
9266
|
const i = t.querySelector("contents");
|
|
9254
|
-
i?.textContent && (n.contents = i.textContent)
|
|
9267
|
+
i?.textContent && (n.contents = i.textContent);
|
|
9268
|
+
const o = t.querySelector("imagedata")?.textContent?.trim();
|
|
9269
|
+
o && (n.imageDataUrl = o), n.hasOwnCanvas = !0;
|
|
9255
9270
|
}
|
|
9256
9271
|
static parseInk(t, n) {
|
|
9257
9272
|
const r = t.querySelector("inklist");
|
|
@@ -9311,7 +9326,7 @@ ${new XMLSerializer().serializeToString(r)}`;
|
|
|
9311
9326
|
`Invalid XFDF: root element must be <xfdf>, got <${o?.localName ?? "unknown"}>`
|
|
9312
9327
|
), r;
|
|
9313
9328
|
const c = o.getAttribute("xmlns");
|
|
9314
|
-
c && c !==
|
|
9329
|
+
c && c !== ke && r.errors.push(
|
|
9315
9330
|
`Warning: unexpected namespace '${c}', attempting tag-name matching`
|
|
9316
9331
|
);
|
|
9317
9332
|
const l = o.querySelector("annots");
|
|
@@ -9322,7 +9337,7 @@ ${new XMLSerializer().serializeToString(r)}`;
|
|
|
9322
9337
|
return r;
|
|
9323
9338
|
const h = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
|
9324
9339
|
for (const f of a) {
|
|
9325
|
-
const { annotation: u, skipped: m } =
|
|
9340
|
+
const { annotation: u, skipped: m } = xe.parseAnnotationElement(f, n);
|
|
9326
9341
|
if (m) {
|
|
9327
9342
|
r.skipped.push(m);
|
|
9328
9343
|
continue;
|
|
@@ -9484,7 +9499,7 @@ const Wf = {
|
|
|
9484
9499
|
__name: "AppTooltip",
|
|
9485
9500
|
setup(e) {
|
|
9486
9501
|
const t = Ln(Vn), n = pe(() => t?.AppTooltip);
|
|
9487
|
-
return (r, i) => n.value ? (te(), ue(Be(n.value), Dt(
|
|
9502
|
+
return (r, i) => n.value ? (te(), ue(Be(n.value), Dt(Te({ key: 0 }, r.$attrs)), bn({
|
|
9488
9503
|
default: ee(() => [
|
|
9489
9504
|
ve(r.$slots, "default")
|
|
9490
9505
|
]),
|
|
@@ -9496,7 +9511,7 @@ const Wf = {
|
|
|
9496
9511
|
ve(r.$slots, o)
|
|
9497
9512
|
])
|
|
9498
9513
|
}))
|
|
9499
|
-
]), 1040)) : (te(), Dn("div", Dt(
|
|
9514
|
+
]), 1040)) : (te(), Dn("div", Dt(Te({ key: 1 }, r.$attrs)), [
|
|
9500
9515
|
ve(r.$slots, "default")
|
|
9501
9516
|
], 16));
|
|
9502
9517
|
}
|
|
@@ -9513,12 +9528,12 @@ const Wf = {
|
|
|
9513
9528
|
"aria-disabled": t.ariaDisabled,
|
|
9514
9529
|
...n
|
|
9515
9530
|
}));
|
|
9516
|
-
return (o, c) => i.value ? (te(), ue(Be(i.value), Dt(
|
|
9531
|
+
return (o, c) => i.value ? (te(), ue(Be(i.value), Dt(Te({ key: 0 }, s.value)), {
|
|
9517
9532
|
default: ee(() => [
|
|
9518
9533
|
ve(o.$slots, "default")
|
|
9519
9534
|
]),
|
|
9520
9535
|
_: 3
|
|
9521
|
-
}, 16)) : (te(), Dn("button", Dt(
|
|
9536
|
+
}, 16)) : (te(), Dn("button", Dt(Te({ key: 1 }, s.value)), [
|
|
9522
9537
|
ve(o.$slots, "default")
|
|
9523
9538
|
], 16));
|
|
9524
9539
|
}
|
|
@@ -9536,7 +9551,7 @@ const Wf = {
|
|
|
9536
9551
|
const t = e, n = Gc({
|
|
9537
9552
|
loader: () => Zf(/* @__PURE__ */ Object.assign({ "../assets/icons/annotations.svg": () => import("./annotations.1350dbe1.js"), "../assets/icons/tool-comment.svg": () => import("./tool-comment.35e183f7.js"), "../assets/icons/tool-free-text.svg": () => import("./tool-free-text.5d283e24.js"), "../assets/icons/tool-highlight.svg": () => import("./tool-highlight.0a507b04.js"), "../assets/icons/tool-image.svg": () => import("./tool-image.9f910d29.js"), "../assets/icons/tool-signature.svg": () => import("./tool-signature.2b6fe80c.js"), "../assets/icons/tool-strikethrough.svg": () => import("./tool-strikethrough.406b53bc.js"), "../assets/icons/tool-text-selection.svg": () => import("./tool-text-selection.12e94e20.js"), "../assets/icons/tool-underline.svg": () => import("./tool-underline.b3cc1b7e.js") }), `../assets/icons/${t.name}.svg`)
|
|
9538
9553
|
});
|
|
9539
|
-
return (r, i) => (te(), ue(Be(
|
|
9554
|
+
return (r, i) => (te(), ue(Be(ze(n)), { class: "vp-text-xl" }));
|
|
9540
9555
|
}
|
|
9541
9556
|
});
|
|
9542
9557
|
const Ls = (e, t) => {
|
|
@@ -9568,11 +9583,11 @@ const Ls = (e, t) => {
|
|
|
9568
9583
|
onClick: s
|
|
9569
9584
|
}, void 0, !0) : (te(), ue(qn, { key: 1 }, {
|
|
9570
9585
|
content: ee(() => [
|
|
9571
|
-
Mn(jn(i.value ?
|
|
9586
|
+
Mn(jn(i.value ? ze(n)("annotationToggleHideTooltip") : ze(n)("annotationToggleShowTooltip")), 1)
|
|
9572
9587
|
]),
|
|
9573
9588
|
default: ee(() => [
|
|
9574
9589
|
Re(Xn, {
|
|
9575
|
-
"aria-label": i.value ?
|
|
9590
|
+
"aria-label": i.value ? ze(n)("annotationToggleHideTooltip") : ze(n)("annotationToggleShowTooltip"),
|
|
9576
9591
|
class: Hc(["vpv-toolbar-btn", { "vpv-toolbar-btn-active": i.value }]),
|
|
9577
9592
|
onClick: s
|
|
9578
9593
|
}, {
|
|
@@ -9603,13 +9618,13 @@ const Xf = /* @__PURE__ */ Ls(qf, [["__scopeId", "data-v-df5778ee"]]), Yf = /* @
|
|
|
9603
9618
|
const t = e, n = Ei(e, "active"), { t: r } = Yn(), i = pe(() => t.ariaDisabled === !0), s = () => {
|
|
9604
9619
|
i.value || (n.value = !n.value);
|
|
9605
9620
|
};
|
|
9606
|
-
return (o, c) => o.$slots.default ? ve(o.$slots, "default",
|
|
9621
|
+
return (o, c) => o.$slots.default ? ve(o.$slots, "default", Te({ key: 0 }, o.$attrs, { onClick: s })) : (te(), ue(qn, { key: 1 }, {
|
|
9607
9622
|
content: ee(() => [
|
|
9608
|
-
Mn(jn(
|
|
9623
|
+
Mn(jn(ze(r)("annotationTextSelectionTooltip")), 1)
|
|
9609
9624
|
]),
|
|
9610
9625
|
default: ee(() => [
|
|
9611
|
-
Re(Xn,
|
|
9612
|
-
"aria-label":
|
|
9626
|
+
Re(Xn, Te({
|
|
9627
|
+
"aria-label": ze(r)("annotationTextSelectionLabel"),
|
|
9613
9628
|
class: ["vpv-toolbar-btn", { "vpv-toolbar-btn-active": n.value }]
|
|
9614
9629
|
}, o.$attrs, { onClick: s }), {
|
|
9615
9630
|
default: ee(() => [
|
|
@@ -9634,7 +9649,7 @@ const Xf = /* @__PURE__ */ Ls(qf, [["__scopeId", "data-v-df5778ee"]]), Yf = /* @
|
|
|
9634
9649
|
},
|
|
9635
9650
|
setup(e) {
|
|
9636
9651
|
const t = e, n = Ln(Vn), r = pe(() => n?.AppPopover);
|
|
9637
|
-
return (i, s) => r.value ? (te(), ue(Be(r.value), Dt(
|
|
9652
|
+
return (i, s) => r.value ? (te(), ue(Be(r.value), Dt(Te({ key: 0 }, t)), {
|
|
9638
9653
|
trigger: ee(() => [
|
|
9639
9654
|
ve(i.$slots, "trigger")
|
|
9640
9655
|
]),
|
|
@@ -9642,7 +9657,7 @@ const Xf = /* @__PURE__ */ Ls(qf, [["__scopeId", "data-v-df5778ee"]]), Yf = /* @
|
|
|
9642
9657
|
ve(i.$slots, "default")
|
|
9643
9658
|
]),
|
|
9644
9659
|
_: 3
|
|
9645
|
-
}, 16)) : (te(), Dn("button", Dt(
|
|
9660
|
+
}, 16)) : (te(), Dn("button", Dt(Te({ key: 1 }, t)), [
|
|
9646
9661
|
ve(i.$slots, "default")
|
|
9647
9662
|
], 16));
|
|
9648
9663
|
}
|
|
@@ -9650,7 +9665,7 @@ const Xf = /* @__PURE__ */ Ls(qf, [["__scopeId", "data-v-df5778ee"]]), Yf = /* @
|
|
|
9650
9665
|
__name: "AppSignatures",
|
|
9651
9666
|
setup(e) {
|
|
9652
9667
|
const t = Ln(Vn), n = pe(() => t?.AppSignatures);
|
|
9653
|
-
return (r, i) => n.value ? (te(), ue(Be(n.value), Dt(
|
|
9668
|
+
return (r, i) => n.value ? (te(), ue(Be(n.value), Dt(Te({ key: 0 }, r.$attrs)), null, 16)) : Ae("", !0);
|
|
9654
9669
|
}
|
|
9655
9670
|
}), e0 = /* @__PURE__ */ qe({
|
|
9656
9671
|
__name: "ToolAnnotationSignature",
|
|
@@ -9668,7 +9683,7 @@ const Xf = /* @__PURE__ */ Ls(qf, [["__scopeId", "data-v-df5778ee"]]), Yf = /* @
|
|
|
9668
9683
|
}, c = (l) => {
|
|
9669
9684
|
i.value = !1;
|
|
9670
9685
|
};
|
|
9671
|
-
return (l, a) => l.$slots.default ? ve(l.$slots, "default",
|
|
9686
|
+
return (l, a) => l.$slots.default ? ve(l.$slots, "default", Te({ key: 0 }, l.$attrs, { onClick: o })) : (te(), ue(Jf, {
|
|
9672
9687
|
key: 1,
|
|
9673
9688
|
open: i.value,
|
|
9674
9689
|
side: "right",
|
|
@@ -9679,11 +9694,11 @@ const Xf = /* @__PURE__ */ Ls(qf, [["__scopeId", "data-v-df5778ee"]]), Yf = /* @
|
|
|
9679
9694
|
trigger: ee(() => [
|
|
9680
9695
|
Re(qn, null, {
|
|
9681
9696
|
content: ee(() => [
|
|
9682
|
-
Mn(jn(
|
|
9697
|
+
Mn(jn(ze(r)("annotationSignatureTooltip")), 1)
|
|
9683
9698
|
]),
|
|
9684
9699
|
default: ee(() => [
|
|
9685
|
-
Re(Xn,
|
|
9686
|
-
"aria-label":
|
|
9700
|
+
Re(Xn, Te({
|
|
9701
|
+
"aria-label": ze(r)("annotationSignatureLabel"),
|
|
9687
9702
|
class: ["vpv-toolbar-btn", { "vpv-toolbar-btn-active": n.value }]
|
|
9688
9703
|
}, l.$attrs, { onClick: o }), {
|
|
9689
9704
|
default: ee(() => [
|
|
@@ -9717,13 +9732,13 @@ const Xf = /* @__PURE__ */ Ls(qf, [["__scopeId", "data-v-df5778ee"]]), Yf = /* @
|
|
|
9717
9732
|
const t = e, n = Ei(e, "active"), { t: r } = Yn(), i = pe(() => t.ariaDisabled === !0), s = () => {
|
|
9718
9733
|
i.value || (n.value = !n.value);
|
|
9719
9734
|
};
|
|
9720
|
-
return (o, c) => o.$slots.default ? ve(o.$slots, "default",
|
|
9735
|
+
return (o, c) => o.$slots.default ? ve(o.$slots, "default", Te({ key: 0 }, o.$attrs, { onClick: s })) : (te(), ue(qn, { key: 1 }, {
|
|
9721
9736
|
content: ee(() => [
|
|
9722
|
-
Mn(jn(
|
|
9737
|
+
Mn(jn(ze(r)("annotationFreeTextTooltip")), 1)
|
|
9723
9738
|
]),
|
|
9724
9739
|
default: ee(() => [
|
|
9725
|
-
Re(Xn,
|
|
9726
|
-
"aria-label":
|
|
9740
|
+
Re(Xn, Te({
|
|
9741
|
+
"aria-label": ze(r)("annotationFreeTextLabel"),
|
|
9727
9742
|
class: ["vpv-toolbar-btn", { "vpv-toolbar-btn-active": n.value }]
|
|
9728
9743
|
}, o.$attrs, { onClick: s }), {
|
|
9729
9744
|
default: ee(() => [
|
|
@@ -9753,13 +9768,13 @@ const Xf = /* @__PURE__ */ Ls(qf, [["__scopeId", "data-v-df5778ee"]]), Yf = /* @
|
|
|
9753
9768
|
i("change", a);
|
|
9754
9769
|
}, c.click();
|
|
9755
9770
|
};
|
|
9756
|
-
return (c, l) => c.$slots.default ? ve(c.$slots, "default",
|
|
9771
|
+
return (c, l) => c.$slots.default ? ve(c.$slots, "default", Te({ key: 0 }, c.$attrs, { onClick: o })) : (te(), ue(qn, { key: 1 }, {
|
|
9757
9772
|
content: ee(() => [
|
|
9758
|
-
Mn(jn(
|
|
9773
|
+
Mn(jn(ze(r)("annotationImageTooltip")), 1)
|
|
9759
9774
|
]),
|
|
9760
9775
|
default: ee(() => [
|
|
9761
|
-
Re(Xn,
|
|
9762
|
-
"aria-label":
|
|
9776
|
+
Re(Xn, Te({
|
|
9777
|
+
"aria-label": ze(r)("annotationImageLabel"),
|
|
9763
9778
|
class: "vpv-toolbar-btn"
|
|
9764
9779
|
}, c.$attrs, { onClick: o }), {
|
|
9765
9780
|
default: ee(() => [
|
|
@@ -9936,11 +9951,11 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
9936
9951
|
).map(
|
|
9937
9952
|
([I, B]) => ({ value: I, label: B })
|
|
9938
9953
|
), x = Object.entries(
|
|
9939
|
-
|
|
9954
|
+
Nf
|
|
9940
9955
|
).map(
|
|
9941
9956
|
([I, B]) => ({ value: I, label: B })
|
|
9942
9957
|
), v = Object.entries(
|
|
9943
|
-
|
|
9958
|
+
zf
|
|
9944
9959
|
).map(
|
|
9945
9960
|
([I, B]) => ({ value: I, label: B })
|
|
9946
9961
|
), O = (I) => {
|
|
@@ -10013,7 +10028,7 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10013
10028
|
tr(i, (I) => {
|
|
10014
10029
|
I && (l.textSelection = !1, l.freeText = !1, l.signature = !1, E());
|
|
10015
10030
|
});
|
|
10016
|
-
const
|
|
10031
|
+
const N = (I) => {
|
|
10017
10032
|
const { id: B, ...D } = I;
|
|
10018
10033
|
return {
|
|
10019
10034
|
...D,
|
|
@@ -10026,7 +10041,7 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10026
10041
|
if (!I)
|
|
10027
10042
|
return;
|
|
10028
10043
|
const j = (de) => {
|
|
10029
|
-
I(
|
|
10044
|
+
I(N(de.detail));
|
|
10030
10045
|
}, se = jt(
|
|
10031
10046
|
n.instanceId,
|
|
10032
10047
|
pn.AnnotationCreated
|
|
@@ -10042,7 +10057,7 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10042
10057
|
if (!I)
|
|
10043
10058
|
return;
|
|
10044
10059
|
const j = (de) => {
|
|
10045
|
-
I(
|
|
10060
|
+
I(N(de.detail));
|
|
10046
10061
|
}, se = jt(
|
|
10047
10062
|
n.instanceId,
|
|
10048
10063
|
pn.AnnotationUpdated
|
|
@@ -10058,7 +10073,7 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10058
10073
|
if (!I)
|
|
10059
10074
|
return;
|
|
10060
10075
|
const j = (de) => {
|
|
10061
|
-
I(
|
|
10076
|
+
I(N(de.detail));
|
|
10062
10077
|
}, se = jt(
|
|
10063
10078
|
n.instanceId,
|
|
10064
10079
|
pn.AnnotationDeleted
|
|
@@ -10084,7 +10099,7 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10084
10099
|
typeof n.textSelection == "object" && n.textSelection.icon ? {
|
|
10085
10100
|
name: "icon",
|
|
10086
10101
|
fn: ee(() => [
|
|
10087
|
-
typeof n.textSelection == "object" && n.textSelection.icon ? (te(), ue(Be(n.textSelection.icon), { key: 0 })) :
|
|
10102
|
+
typeof n.textSelection == "object" && n.textSelection.icon ? (te(), ue(Be(n.textSelection.icon), { key: 0 })) : Ae("", !0)
|
|
10088
10103
|
]),
|
|
10089
10104
|
key: "0"
|
|
10090
10105
|
} : typeof n.textSelection == "object" && n.textSelection.component ? {
|
|
@@ -10093,11 +10108,11 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10093
10108
|
typeof n.textSelection == "object" && n.textSelection.component ? (te(), ue(Be(n.textSelection.component), {
|
|
10094
10109
|
key: 0,
|
|
10095
10110
|
onClick: D
|
|
10096
|
-
}, null, 8, ["onClick"])) :
|
|
10111
|
+
}, null, 8, ["onClick"])) : Ae("", !0)
|
|
10097
10112
|
]),
|
|
10098
10113
|
key: "1"
|
|
10099
10114
|
} : void 0
|
|
10100
|
-
]), 1032, ["active", "aria-disabled"])) :
|
|
10115
|
+
]), 1032, ["active", "aria-disabled"])) : Ae("", !0),
|
|
10101
10116
|
u.value ? (te(), ue(t0, {
|
|
10102
10117
|
key: 1,
|
|
10103
10118
|
active: h.value,
|
|
@@ -10107,8 +10122,8 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10107
10122
|
typeof n.freeText == "object" && n.freeText.icon ? {
|
|
10108
10123
|
name: "icon",
|
|
10109
10124
|
fn: ee(() => [
|
|
10110
|
-
typeof n.freeText == "object" && n.freeText.icon ? (te(), ue(Be(n.freeText.icon), { key: 0 })) :
|
|
10111
|
-
typeof n.freeText == "object" && n.freeText.icon ? (te(), ue(Be(n.freeText.icon), { key: 1 })) :
|
|
10125
|
+
typeof n.freeText == "object" && n.freeText.icon ? (te(), ue(Be(n.freeText.icon), { key: 0 })) : Ae("", !0),
|
|
10126
|
+
typeof n.freeText == "object" && n.freeText.icon ? (te(), ue(Be(n.freeText.icon), { key: 1 })) : Ae("", !0)
|
|
10112
10127
|
]),
|
|
10113
10128
|
key: "0"
|
|
10114
10129
|
} : typeof n.freeText == "object" && n.freeText.component ? {
|
|
@@ -10117,11 +10132,11 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10117
10132
|
typeof n.freeText == "object" && n.freeText.component ? (te(), ue(Be(n.freeText.component), {
|
|
10118
10133
|
key: 0,
|
|
10119
10134
|
onClick: D
|
|
10120
|
-
}, null, 8, ["onClick"])) :
|
|
10135
|
+
}, null, 8, ["onClick"])) : Ae("", !0)
|
|
10121
10136
|
]),
|
|
10122
10137
|
key: "1"
|
|
10123
10138
|
} : void 0
|
|
10124
|
-
]), 1032, ["active", "aria-disabled"])) :
|
|
10139
|
+
]), 1032, ["active", "aria-disabled"])) : Ae("", !0),
|
|
10125
10140
|
_.value ? (te(), ue(n0, {
|
|
10126
10141
|
key: 2,
|
|
10127
10142
|
onChange: R,
|
|
@@ -10130,7 +10145,7 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10130
10145
|
typeof n.image == "object" && n.image ? {
|
|
10131
10146
|
name: "icon",
|
|
10132
10147
|
fn: ee(() => [
|
|
10133
|
-
typeof n.image == "object" && n.image.icon ? (te(), ue(Be(n.image.icon), { key: 0 })) :
|
|
10148
|
+
typeof n.image == "object" && n.image.icon ? (te(), ue(Be(n.image.icon), { key: 0 })) : Ae("", !0)
|
|
10134
10149
|
]),
|
|
10135
10150
|
key: "0"
|
|
10136
10151
|
} : typeof n.image == "object" && n.image && "component" in n.image ? {
|
|
@@ -10139,11 +10154,11 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10139
10154
|
typeof n.image == "object" && n.image && "component" in n.image ? (te(), ue(Be(n.image.component), {
|
|
10140
10155
|
key: 0,
|
|
10141
10156
|
onClick: D
|
|
10142
|
-
}, null, 8, ["onClick"])) :
|
|
10157
|
+
}, null, 8, ["onClick"])) : Ae("", !0)
|
|
10143
10158
|
]),
|
|
10144
10159
|
key: "1"
|
|
10145
10160
|
} : void 0
|
|
10146
|
-
]), 1032, ["aria-disabled"])) :
|
|
10161
|
+
]), 1032, ["aria-disabled"])) : Ae("", !0),
|
|
10147
10162
|
m.value ? (te(), ue(e0, {
|
|
10148
10163
|
key: 3,
|
|
10149
10164
|
active: d.value,
|
|
@@ -10153,7 +10168,7 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10153
10168
|
typeof n.signature == "object" && n.signature.icon ? {
|
|
10154
10169
|
name: "icon",
|
|
10155
10170
|
fn: ee(() => [
|
|
10156
|
-
typeof n.signature == "object" && n.signature.icon ? (te(), ue(Be(n.signature.icon), { key: 0 })) :
|
|
10171
|
+
typeof n.signature == "object" && n.signature.icon ? (te(), ue(Be(n.signature.icon), { key: 0 })) : Ae("", !0)
|
|
10157
10172
|
]),
|
|
10158
10173
|
key: "0"
|
|
10159
10174
|
} : typeof n.signature == "object" && n.signature.component ? {
|
|
@@ -10162,12 +10177,12 @@ const o0 = { class: "vpv-annotation-tools-container" }, a0 = {
|
|
|
10162
10177
|
typeof n.signature == "object" && n.signature.component ? (te(), ue(Be(n.signature.component), {
|
|
10163
10178
|
key: 0,
|
|
10164
10179
|
onClick: D
|
|
10165
|
-
}, null, 8, ["onClick"])) :
|
|
10180
|
+
}, null, 8, ["onClick"])) : Ae("", !0)
|
|
10166
10181
|
]),
|
|
10167
10182
|
key: "1"
|
|
10168
10183
|
} : void 0
|
|
10169
|
-
]), 1032, ["active", "aria-disabled"])) :
|
|
10170
|
-
])) :
|
|
10184
|
+
]), 1032, ["active", "aria-disabled"])) : Ae("", !0)
|
|
10185
|
+
])) : Ae("", !0)
|
|
10171
10186
|
]),
|
|
10172
10187
|
_: 1
|
|
10173
10188
|
})
|
|
@@ -10198,8 +10213,8 @@ const l0 = /* @__PURE__ */ Ls(c0, [["__scopeId", "data-v-c9502027"]]), d0 = (e =
|
|
|
10198
10213
|
), l.localization?.value ? h.provide(Mc, l.localization) : console.warn(
|
|
10199
10214
|
"VPdfAnnotationPlugin - No localization found in plugin context"
|
|
10200
10215
|
), l.pdf || console.warn("VPdfAnnotationPlugin - PDF context not available"), s = {
|
|
10201
|
-
exportToXfdf: (d, f) =>
|
|
10202
|
-
importFromXfdf: (d, f) =>
|
|
10216
|
+
exportToXfdf: (d, f) => xe.exportToXfdf(d, f),
|
|
10217
|
+
importFromXfdf: (d, f) => xe.importFromXfdf(d, f),
|
|
10203
10218
|
exportToPdf: async (d, f) => {
|
|
10204
10219
|
const u = await l.pdf?.getOriginalBytes();
|
|
10205
10220
|
if (!u)
|