filens-preview 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +60 -13
  2. package/dist/all-in-one/THIRD-PARTY-NOTICES.txt +969 -0
  3. package/dist/all-in-one/archive/7zz.wasm +0 -0
  4. package/dist/all-in-one/assets/archive-worker-Cy3bEdVg.js +2 -0
  5. package/dist/all-in-one/filens.js +70557 -64591
  6. package/dist/all-in-one/index.html +12 -3
  7. package/dist/index.d.ts +5 -0
  8. package/dist/split/THIRD-PARTY-NOTICES.txt +969 -0
  9. package/dist/split/archive/7zz.wasm +0 -0
  10. package/dist/split/assets/archive-worker-Cy3bEdVg.js +2 -0
  11. package/dist/split/assets/{iwork-worker-DiTOJG8f.js → iwork-worker-B9KPoDW3.js} +17 -17
  12. package/dist/split/chunks/archive-B4jVwD9o.js +921 -0
  13. package/dist/split/chunks/{cad-Cyh8aipO.js → cad-DMg-lGJX.js} +1 -1
  14. package/dist/split/chunks/{core-gp02JQ3r.js → core--zVW212C.js} +4205 -3760
  15. package/dist/split/chunks/{diagram-rxvArV-1.js → diagram-CDwCA6LZ.js} +2 -2
  16. package/dist/split/chunks/{docx-ecvZsSWm.js → docx-CuQfFJqr.js} +2 -2
  17. package/dist/split/chunks/{ebook-5FyKWZ8s.js → ebook-CLlJ8KX3.js} +2 -2
  18. package/dist/split/chunks/{iwork-DlaehzuR.js → iwork-dNVC0X8j.js} +39 -39
  19. package/dist/split/chunks/media-runtime-gcsBQMuo.js +48 -0
  20. package/dist/split/chunks/{mindmap-D9lNNDoa.js → mindmap-g0-VoK-K.js} +2 -2
  21. package/dist/split/chunks/{model3d-BtFT01ZH.js → model3d-1G1CC52V.js} +3 -3
  22. package/dist/split/chunks/{panorama-Ci6DK6sa.js → panorama-D7GVivtM.js} +246 -234
  23. package/dist/split/chunks/{vendor-DvWhw-zP.js → vendor-DPFNKNkh.js} +28487 -23383
  24. package/dist/split/chunks/{xlsx-VJTu9XNS.js → xlsx-Co26yo-R.js} +2 -2
  25. package/dist/split/filens.js +2714 -2483
  26. package/dist/split/index.html +12 -3
  27. package/package.json +2 -2
  28. package/dist/split/chunks/archive-_cUUL2-3.js +0 -731
  29. package/dist/split/chunks/media-runtime-DwW7eq4g.js +0 -48
@@ -1,8 +1,8 @@
1
1
  var _ = Object.defineProperty;
2
2
  var R = (e, t, r) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var f = (e, t, r) => R(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { c as G } from "./core-gp02JQ3r.js";
5
- import { J as Y, i as W, a as H, s as j } from "./vendor-DvWhw-zP.js";
4
+ import { c as G } from "./core--zVW212C.js";
5
+ import { J as Y, i as W, a as H, s as j } from "./vendor-DPFNKNkh.js";
6
6
  const q = [
7
7
  {
8
8
  extensions: ["drawio", "dio", "vdx", "vsdx"],
@@ -1,8 +1,8 @@
1
1
  var A = Object.defineProperty;
2
2
  var H = (o, s, t) => s in o ? A(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
3
3
  var v = (o, s, t) => H(o, typeof s != "symbol" ? s + "" : s, t);
4
- import { ak as j, al as k } from "./vendor-DvWhw-zP.js";
5
- import { h as R, i as B, s as E, f as U, a as T, k as W, l as _, c as z, b as I } from "./core-gp02JQ3r.js";
4
+ import { am as j, an as k } from "./vendor-DPFNKNkh.js";
5
+ import { h as R, i as B, y as E, f as U, a as T, k as W, v as _, c as z, b as I } from "./core--zVW212C.js";
6
6
  const x = /* @__PURE__ */ new WeakMap();
7
7
  async function X(o, s) {
8
8
  var r, c;
@@ -1,8 +1,8 @@
1
1
  var q = Object.defineProperty;
2
2
  var G = (t, e, r) => e in t ? q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var T = (t, e, r) => G(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { J as N } from "./vendor-DvWhw-zP.js";
5
- import { c as Z } from "./core-gp02JQ3r.js";
4
+ import { J as N } from "./vendor-DPFNKNkh.js";
5
+ import { c as Z } from "./core--zVW212C.js";
6
6
  async function W(t, e) {
7
7
  const r = [];
8
8
  for (let i = 0; i < t.length; ) {
@@ -1,8 +1,8 @@
1
1
  var ge = Object.defineProperty;
2
2
  var me = (e, t, n) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var S = (e, t, n) => me(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { M as se, r as we, c as pe, b as be, a as Y, d as ve, e as K, f as Z, g as ke } from "./core-gp02JQ3r.js";
5
- import { R as j, c as Se, a as ye } from "./xlsx-VJTu9XNS.js";
4
+ import { M as se, r as we, c as pe, b as be, a as J, d as ve, e as K, f as Z, g as ke } from "./core--zVW212C.js";
5
+ import { R as j, c as Se, a as ye } from "./xlsx-Co26yo-R.js";
6
6
  async function Ee(e, t = {}) {
7
7
  if (q(t.signal), typeof e == "string") {
8
8
  const n = await fetch(e, {
@@ -75,7 +75,7 @@ class Le {
75
75
  if (this.destroyed) throw new Error("iWork parser worker has been destroyed.");
76
76
  return this.worker ? this.worker : (this.worker = new Worker(new URL(
77
77
  /* @vite-ignore */
78
- "" + new URL("../assets/iwork-worker-DiTOJG8f.js", import.meta.url).href,
78
+ "" + new URL("../assets/iwork-worker-B9KPoDW3.js", import.meta.url).href,
79
79
  import.meta.url
80
80
  ), {
81
81
  type: "module"
@@ -179,7 +179,7 @@ function Pe(e) {
179
179
  };
180
180
  }
181
181
  function Ae(e, t = {}) {
182
- var J;
182
+ var G;
183
183
  const n = /* @__PURE__ */ new Map(), s = new Le(), i = t.fit === void 0;
184
184
  let a = null, u = null, g = null, R = 0, v = !1;
185
185
  const r = {
@@ -198,7 +198,7 @@ function Ae(e, t = {}) {
198
198
  e.classList.add("iworkv-root"), e.innerHTML = '<div class="iworkv-stage"></div>';
199
199
  const k = e.querySelector(".iworkv-stage");
200
200
  let C = null, F = [];
201
- const D = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Set(), B = /* @__PURE__ */ new Map();
201
+ const B = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Map();
202
202
  let N, P = 0;
203
203
  const y = (o, h) => {
204
204
  var l;
@@ -208,9 +208,9 @@ function Ae(e, t = {}) {
208
208
  }, E = () => ({
209
209
  ...r,
210
210
  warnings: r.warnings.slice()
211
- }), z = () => {
211
+ }), O = () => {
212
212
  const o = u;
213
- u = null, o == null || o.abort(), s.cancel(), g == null || g.abort(), g = null, C == null || C.disconnect(), C = null, P && typeof cancelAnimationFrame < "u" && cancelAnimationFrame(P), P = 0, k.replaceChildren(), k.classList.remove("iworkv-numbers-stage"), F = [], D.clear(), L.clear(), B.clear(), a == null || a.destroy(), a = null, Object.assign(r, {
213
+ u = null, o == null || o.abort(), s.cancel(), g == null || g.abort(), g = null, C == null || C.disconnect(), C = null, P && typeof cancelAnimationFrame < "u" && cancelAnimationFrame(P), P = 0, k.replaceChildren(), k.classList.remove("iworkv-numbers-stage"), F = [], B.clear(), L.clear(), D.clear(), a == null || a.destroy(), a = null, Object.assign(r, {
214
214
  document: null,
215
215
  kind: null,
216
216
  loading: !1,
@@ -223,7 +223,7 @@ function Ae(e, t = {}) {
223
223
  }), e.scrollTop = 0, e.scrollLeft = 0;
224
224
  }, I = () => {
225
225
  var h;
226
- if (g == null || g.abort(), g = new AbortController(), k.innerHTML = "", k.classList.toggle("iworkv-numbers-stage", ((h = r.document) == null ? void 0 : h.kind) === "numbers"), F = [], D.clear(), L.clear(), !r.document)
226
+ if (g == null || g.abort(), g = new AbortController(), k.innerHTML = "", k.classList.toggle("iworkv-numbers-stage", ((h = r.document) == null ? void 0 : h.kind) === "numbers"), F = [], B.clear(), L.clear(), !r.document)
227
227
  return;
228
228
  const o = U(r.document);
229
229
  if (o.length) {
@@ -237,7 +237,7 @@ function Ae(e, t = {}) {
237
237
  const c = k.getBoundingClientRect();
238
238
  o.forEach((d, m) => {
239
239
  const w = document.createElement("div");
240
- w.className = "iworkv-page-shell", O(w, d.width, d.height, _(d.width, d.height, c)), w.dataset.pageIndex = String(m), l.appendChild(w), F.push(w);
240
+ w.className = "iworkv-page-shell", z(w, d.width, d.height, _(d.width, d.height, c)), w.dataset.pageIndex = String(m), l.appendChild(w), F.push(w);
241
241
  }), k.appendChild(l), L.add(r.currentPage), V();
242
242
  return;
243
243
  }
@@ -251,7 +251,7 @@ function Ae(e, t = {}) {
251
251
  const h = document.createElement("div");
252
252
  h.className = "xlsxv-sheet-tabs", r.document.sheets.forEach((f, M) => {
253
253
  const b = document.createElement("button");
254
- b.type = "button", b.className = "xlsxv-sheet-tab", b.classList.toggle("is-active", M === r.currentSheet), b.textContent = f.name, b.addEventListener("click", () => G(M), { signal: g.signal }), h.appendChild(b);
254
+ b.type = "button", b.className = "xlsxv-sheet-tab", b.classList.toggle("is-active", M === r.currentSheet), b.textContent = f.name, b.addEventListener("click", () => Y(M), { signal: g.signal }), h.appendChild(b);
255
255
  });
256
256
  const l = document.createElement("div");
257
257
  l.className = "xlsxv-grid";
@@ -276,7 +276,7 @@ function Ae(e, t = {}) {
276
276
  items: w
277
277
  }
278
278
  }, x = Q(document, r.document, b, a ?? void 0), T = Math.max(k.getBoundingClientRect().width - 32, 1);
279
- O(x, b.width, b.height, T / Math.max(b.width, 1)), f.className = "iworkv-numbers-objects", f.append(M, x), c.appendChild(f);
279
+ z(x, b.width, b.height, T / Math.max(b.width, 1)), f.className = "iworkv-numbers-objects", f.append(M, x), c.appendChild(f);
280
280
  }
281
281
  l.appendChild(c), l.addEventListener("scroll", () => {
282
282
  if (!(l.scrollHeight - l.scrollTop - l.clientHeight > l.clientHeight * 2))
@@ -289,21 +289,21 @@ function Ae(e, t = {}) {
289
289
  if (!r.document || r.document.kind === "numbers")
290
290
  return;
291
291
  const o = U(r.document), l = t.virtual ?? r.document.kind === "pages" ? L : new Set(F.map((c, d) => d));
292
- for (const [c, d] of D)
293
- l.has(c) || (d.remove(), D.delete(c));
292
+ for (const [c, d] of B)
293
+ l.has(c) || (d.remove(), B.delete(c));
294
294
  for (const c of l) {
295
- if (D.has(c))
295
+ if (B.has(c))
296
296
  continue;
297
297
  const d = F[c], m = o[c];
298
298
  if (!d || !m)
299
299
  continue;
300
300
  const w = Q(document, r.document, m, a ?? void 0).firstElementChild;
301
- w && (d.appendChild(w), O(d, m.width, m.height, r.scale), D.set(c, w));
301
+ w && (d.appendChild(w), z(d, m.width, m.height, r.scale), B.set(c, w));
302
302
  }
303
303
  }, H = () => {
304
304
  if (P = 0, !r.document || r.document.kind === "numbers" || !F.length)
305
305
  return;
306
- const o = Be(e), h = (o.top + o.bottom) / 2, l = Math.max(o.height, 1);
306
+ const o = De(e), h = (o.top + o.bottom) / 2, l = Math.max(o.height, 1);
307
307
  let c = r.currentPage, d = Number.POSITIVE_INFINITY;
308
308
  L.clear(), F.forEach((m, w) => {
309
309
  const p = m.getBoundingClientRect();
@@ -318,7 +318,7 @@ function Ae(e, t = {}) {
318
318
  }
319
319
  P = requestAnimationFrame(H);
320
320
  };
321
- e.addEventListener("scroll", W, { passive: !0 }), e.ownerDocument.addEventListener("scroll", W, { capture: !0, passive: !0 }), (J = e.ownerDocument.defaultView) == null || J.addEventListener("scroll", W, { passive: !0 });
321
+ e.addEventListener("scroll", W, { passive: !0 }), e.ownerDocument.addEventListener("scroll", W, { capture: !0, passive: !0 }), (G = e.ownerDocument.defaultView) == null || G.addEventListener("scroll", W, { passive: !0 });
322
322
  const ae = (o) => {
323
323
  if (!r.document || r.document.kind === "numbers")
324
324
  return;
@@ -341,20 +341,20 @@ function Ae(e, t = {}) {
341
341
  const l = (h = r.document.sheets[r.currentSheet]) == null ? void 0 : h.canvas, c = k.querySelector(".iworkv-numbers-objects .iworkv-page-shell");
342
342
  if (l && c) {
343
343
  const d = Math.max(k.getBoundingClientRect().width - 32, 1);
344
- O(c, l.width, l.height, d / Math.max(l.width, 1));
344
+ z(c, l.width, l.height, d / Math.max(l.width, 1));
345
345
  }
346
346
  return;
347
347
  }
348
348
  const o = k.getBoundingClientRect();
349
349
  U(r.document).forEach((l, c) => {
350
350
  const d = F[c];
351
- d && O(d, l.width, l.height, _(l.width, l.height, o));
351
+ d && z(d, l.width, l.height, _(l.width, l.height, o));
352
352
  }), y("scalechange", E());
353
353
  }), C.observe(k));
354
354
  }, ce = (o) => {
355
355
  var c, d;
356
356
  const h = ((c = r.document) == null ? void 0 : c.kind) === "numbers" ? r.document : null;
357
- if (!h || ((d = h.sheets[o]) == null ? void 0 : d.loaded) !== !1 || (r.currentSheet === o && (e.classList.add("is-loading"), e.dataset.status = "Loading sheet..."), B.has(o)))
357
+ if (!h || ((d = h.sheets[o]) == null ? void 0 : d.loaded) !== !1 || (r.currentSheet === o && (e.classList.add("is-loading"), e.dataset.status = "Loading sheet..."), D.has(o)))
358
358
  return;
359
359
  const l = s.parseSheet(o).then((m) => {
360
360
  r.document === h && (h.sheets[o] = m, r.currentSheet === o && (I(), A()), y("sheetchange", E()));
@@ -364,18 +364,18 @@ function Ae(e, t = {}) {
364
364
  const w = m instanceof Error ? m : new Error(String(m));
365
365
  r.currentSheet === o && (r.error = w.message, A(), y("error", w));
366
366
  }).finally(() => {
367
- B.get(o) === l && B.delete(o);
367
+ D.get(o) === l && D.delete(o);
368
368
  });
369
- B.set(o, l);
369
+ D.set(o, l);
370
370
  }, de = async (o, h = {}) => {
371
371
  var m, w;
372
372
  if (v) throw new Error("iWork viewer has been destroyed.");
373
373
  const l = ++R;
374
- z();
374
+ O();
375
375
  const c = new AbortController();
376
376
  u = c;
377
377
  const d = () => {
378
- u === c && (z(), A(), y("loadingchange", E()));
378
+ u === c && (O(), A(), y("loadingchange", E()));
379
379
  };
380
380
  if ((m = h.signal) == null || m.addEventListener("abort", d, { once: !0 }), c.signal.addEventListener("abort", () => {
381
381
  var p;
@@ -388,13 +388,13 @@ function Ae(e, t = {}) {
388
388
  if (c.signal.aborted) throw new DOMException("The operation was aborted.", "AbortError");
389
389
  const f = await X(s.parse(p, t.type, Re(o)), c.signal);
390
390
  if (c.signal.aborted) throw new DOMException("The operation was aborted.", "AbortError");
391
- if (r.document = f, r.kind = f.kind, r.warnings = f.warnings.slice(), i && (f.kind === "key" || f.kind === "pages") && r.fit === "contain" && (r.fit = "width"), r.currentPage = 0, r.currentSheet = 0, B.clear(), r.pageCount = f.kind === "numbers" ? 0 : f.kind === "key" ? f.slides.length : f.pages.length, r.sheetCount = f.kind === "numbers" ? f.sheets.length : 0, a == null || a.destroy(), a = Te(f), r.loading = !1, I(), le(), A(), y("loadingchange", E()), u !== c) return;
391
+ if (r.document = f, r.kind = f.kind, r.warnings = f.warnings.slice(), i && (f.kind === "key" || f.kind === "pages") && r.fit === "contain" && (r.fit = "width"), r.currentPage = 0, r.currentSheet = 0, D.clear(), r.pageCount = f.kind === "numbers" ? 0 : f.kind === "key" ? f.slides.length : f.pages.length, r.sheetCount = f.kind === "numbers" ? f.sheets.length : 0, a == null || a.destroy(), a = Te(f), r.loading = !1, I(), le(), A(), y("loadingchange", E()), u !== c) return;
392
392
  y("warnings", r.warnings), u === c && y("rendered", E());
393
393
  } catch (p) {
394
394
  if (v || R !== l) return;
395
395
  if (c.signal.aborted) throw new DOMException("The operation was aborted.", "AbortError");
396
396
  const f = p instanceof Error ? p : new Error(String(p));
397
- z(), r.error = f.message, A(), y("loadingchange", E()), !v && R === l && y("error", f);
397
+ O(), r.error = f.message, A(), y("loadingchange", E()), !v && R === l && y("error", f);
398
398
  }
399
399
  }, ue = (o) => {
400
400
  v || r.kind === "numbers" || (r.fit = "none", r.scale = Math.max(t.minScale ?? 0.25, Math.min(o, t.maxScale ?? 4)), I(), y("scalechange", E()));
@@ -407,7 +407,7 @@ function Ae(e, t = {}) {
407
407
  return l.add(h), n.set(o, l), () => {
408
408
  l.delete(h);
409
409
  };
410
- }, G = (o) => {
410
+ }, Y = (o) => {
411
411
  v || r.kind !== "numbers" || (r.currentSheet = Math.max(0, Math.min(o, Math.max(r.sheetCount - 1, 0))), r.error = null, I(), A(), ce(r.currentSheet), y("sheetchange", E()));
412
412
  };
413
413
  return {
@@ -430,14 +430,14 @@ function Ae(e, t = {}) {
430
430
  },
431
431
  destroy() {
432
432
  var o;
433
- v || (v = !0, ++R, n.clear(), z(), e.removeEventListener("scroll", W), e.ownerDocument.removeEventListener("scroll", W, !0), (o = e.ownerDocument.defaultView) == null || o.removeEventListener("scroll", W), s.destroy(), e.classList.remove("iworkv-root", "is-loading", "is-error"), e.removeAttribute("data-status"), e.innerHTML = "");
433
+ v || (v = !0, ++R, n.clear(), O(), e.removeEventListener("scroll", W), e.ownerDocument.removeEventListener("scroll", W, !0), (o = e.ownerDocument.defaultView) == null || o.removeEventListener("scroll", W), s.destroy(), e.classList.remove("iworkv-root", "is-loading", "is-error"), e.removeAttribute("data-status"), e.innerHTML = "");
434
434
  },
435
435
  setScale: ue,
436
436
  fit: he,
437
437
  goToPage(o) {
438
438
  v || (r.currentPage = Math.max(0, Math.min(o, Math.max(r.pageCount - 1, 0))), r.document && r.document.kind !== "numbers" ? (L.clear(), L.add(r.currentPage), V(), ae(r.currentPage)) : I(), y("pagechange", E()));
439
439
  },
440
- goToSheet: G,
440
+ goToSheet: Y,
441
441
  next() {
442
442
  r.kind === "numbers" ? this.goToSheet(Math.min(r.currentSheet + 1, Math.max(r.sheetCount - 1, 0))) : this.goToPage(Math.min(r.currentPage + 1, Math.max(r.pageCount - 1, 0)));
443
443
  },
@@ -491,11 +491,11 @@ function ee(e, t, n) {
491
491
  }
492
492
  function Re(e) {
493
493
  if (typeof e == "string")
494
- return De(e);
494
+ return Be(e);
495
495
  if (typeof File < "u" && e instanceof File)
496
496
  return e.name;
497
497
  }
498
- function De(e) {
498
+ function Be(e) {
499
499
  var i;
500
500
  const s = (((i = e.split("?")[0]) == null ? void 0 : i.split("#")[0]) ?? "").split(/[\\/]/).filter(Boolean).at(-1);
501
501
  if (s)
@@ -505,7 +505,7 @@ function De(e) {
505
505
  return s;
506
506
  }
507
507
  }
508
- function Be(e) {
508
+ function De(e) {
509
509
  const t = e.ownerDocument.defaultView, n = e.getBoundingClientRect();
510
510
  let s = t ? 0 : n.top, i = t ? t.innerHeight : n.bottom;
511
511
  for (let a = e; a; a = a.parentElement) {
@@ -525,7 +525,7 @@ function Be(e) {
525
525
  }
526
526
  return { top: s, bottom: i, height: i - s };
527
527
  }
528
- function O(e, t, n, s) {
528
+ function z(e, t, n, s) {
529
529
  e.style.width = `${t * s}px`, e.style.height = `${n * s}px`, e.style.position = "relative";
530
530
  const i = e.firstElementChild;
531
531
  i && (i.style.transform = `scale(${s})`, i.style.transformOrigin = "top left");
@@ -565,7 +565,7 @@ class We {
565
565
  S(this, "destroyed", !1);
566
566
  S(this, "fontDocument", null);
567
567
  S(this, "fontScenes", []);
568
- S(this, "fontAnalysis", Y([]));
568
+ S(this, "fontAnalysis", J([]));
569
569
  S(this, "fontUpdate", null);
570
570
  S(this, "fontLoading");
571
571
  this.host = t, this.viewer = Ae(t, {
@@ -682,7 +682,7 @@ class We {
682
682
  if (this.fontUpdate) {
683
683
  const R = new Map(this.fontUpdate.references.map((v) => [v.fontFamily, v]));
684
684
  this.fontAnalysis = Z({ ...this.fontUpdate, references: g.map((v) => R.get(v.fontFamily) ?? v) }, this.host.ownerDocument), K([...s, ...u], this.fontUpdate.references);
685
- } else this.fontAnalysis = Y(g, this.host.ownerDocument);
685
+ } else this.fontAnalysis = J(g, this.host.ownerDocument);
686
686
  }
687
687
  this.lastState = {
688
688
  ...ne(t),
@@ -699,7 +699,7 @@ function Ve() {
699
699
  return {
700
700
  id: "iwork",
701
701
  family: "paged",
702
- supports: (e) => ze(e) != null,
702
+ supports: (e) => Oe(e) != null,
703
703
  createSession: (e, t) => new We(e, t)
704
704
  };
705
705
  }
@@ -747,7 +747,7 @@ function ne(e) {
747
747
  pageIndex: e.currentPage,
748
748
  pageCount: e.pageCount,
749
749
  scale: e.scale,
750
- fit: Oe(e.fit)
750
+ fit: ze(e.fit)
751
751
  };
752
752
  }
753
753
  function Ne(e) {
@@ -759,10 +759,10 @@ function Ne(e) {
759
759
  function re(e) {
760
760
  return e === "contain" || e === "width" || e === "none" ? e : e === "height" ? "height" : "contain";
761
761
  }
762
- function Oe(e) {
762
+ function ze(e) {
763
763
  return e === "contain" || e === "width" || e === "height" || e === "none" ? e : "contain";
764
764
  }
765
- function ze(e) {
765
+ function Oe(e) {
766
766
  const t = String(e ?? "").trim().replace(/^\./, "").toLowerCase();
767
767
  return t === "key" || t === "pages" || t === "numbers" ? t : null;
768
768
  }