@silurus/ooxml 0.83.0 → 0.83.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.
@@ -8335,6 +8335,7 @@ var xd = class {
8335
8335
  #r;
8336
8336
  #i;
8337
8337
  #a = null;
8338
+ #o = /* @__PURE__ */ new Set();
8338
8339
  constructor(e, t, n) {
8339
8340
  this.#e = e, this.#r = Object.freeze({ ...t }), this.#i = Kr(this.#r, this.#e), this.#t = n;
8340
8341
  }
@@ -8346,7 +8347,7 @@ var xd = class {
8346
8347
  }
8347
8348
  select(e) {
8348
8349
  let t = Object.isFrozen(e) ? e : Object.freeze({ ...e }), n = Kr(t, this.#e), r = this.#n.get(n);
8349
- return r || (r = vd(this.#t(t)), n !== this.#i && (this.#a !== null && this.#a !== n && this.#n.delete(this.#a), this.#a = n), this.#n.set(n, r)), Object.freeze({
8350
+ return r || (this.#c(n, t), r = vd(this.#t(t)), this.#n.set(n, r)), Object.freeze({
8350
8351
  key: n,
8351
8352
  options: t,
8352
8353
  layout: r
@@ -8360,16 +8361,26 @@ var xd = class {
8360
8361
  });
8361
8362
  }
8362
8363
  prime(e, t) {
8363
- let n = Kr(Object.isFrozen(e) ? e : Object.freeze({ ...e }), this.#e);
8364
- return this.#n.get(n) || this.#o(n, t);
8364
+ let n = Object.isFrozen(e) ? e : Object.freeze({ ...e }), r = Kr(n, this.#e);
8365
+ return this.#n.get(r) || this.#s(r, n, t);
8365
8366
  }
8366
8367
  replaceIfCurrent(e, t, n) {
8367
- let r = Kr(Object.isFrozen(e) ? e : Object.freeze({ ...e }), this.#e);
8368
- return (this.#n.get(r) ?? null) === t ? this.#o(r, n) : null;
8369
- }
8370
- #o(e, t) {
8371
- let n = vd(t);
8372
- return e !== this.#i && (this.#a !== null && this.#a !== e && this.#n.delete(this.#a), this.#a = e), this.#n.set(e, n), n;
8368
+ let r = Object.isFrozen(e) ? e : Object.freeze({ ...e }), i = Kr(r, this.#e);
8369
+ return (this.#n.get(i) ?? null) === t ? this.#s(i, r, n) : null;
8370
+ }
8371
+ #s(e, t, n) {
8372
+ this.#c(e, t);
8373
+ let r = vd(n);
8374
+ return this.#n.set(e, r), r;
8375
+ }
8376
+ #c(e, t) {
8377
+ if (e !== this.#i) {
8378
+ if (this.#a !== t.currentDateMs) {
8379
+ for (let e of this.#o) this.#n.delete(e);
8380
+ this.#o.clear(), this.#a = t.currentDateMs;
8381
+ }
8382
+ this.#o.add(e);
8383
+ }
8373
8384
  }
8374
8385
  hasLayoutFor(e) {
8375
8386
  return this.#n.has(Kr(e, this.#e));