@wix/himalaya-cli 0.1754.0 → 0.1756.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -4272,10 +4272,10 @@ function parseZipEntries(buf) {
4272
4272
  }
4273
4273
  }
4274
4274
  if (eocd < 0) throw new Error("not a zip archive (no end-of-central-directory record)");
4275
- const count2 = u16(eocd + 10);
4275
+ const count3 = u16(eocd + 10);
4276
4276
  let p2 = u32(eocd + 16);
4277
4277
  const out2 = [];
4278
- for (let i2 = 0; i2 < count2; i2++) {
4278
+ for (let i2 = 0; i2 < count3; i2++) {
4279
4279
  if (p2 + 46 > buf.length || u32(p2) !== ZIP_CENTRAL_SIG) throw new Error("corrupt zip central directory");
4280
4280
  const method = u16(p2 + 10);
4281
4281
  const crc = u32(p2 + 16);
@@ -11008,8 +11008,8 @@ function componentShape(value2) {
11008
11008
  if (!isRecord(value2) || typeof value2.id !== "string" || !isRecord(value2.body)) return false;
11009
11009
  return typeof value2.body.package === "string" && typeof value2.body.type === "string" && isRecord(value2.body.props);
11010
11010
  }
11011
- function rotateRight(value2, count2) {
11012
- return value2 >>> count2 | value2 << 32 - count2;
11011
+ function rotateRight(value2, count3) {
11012
+ return value2 >>> count3 | value2 << 32 - count3;
11013
11013
  }
11014
11014
  function workerSubtreeSha256(raw) {
11015
11015
  const input = new TextEncoder().encode(raw);
@@ -21359,18 +21359,18 @@ function repairLoneSurrogateEscapes(json9) {
21359
21359
  return out2;
21360
21360
  }
21361
21361
  function measure(nodes2, limits) {
21362
- let count2 = 0;
21362
+ let count3 = 0;
21363
21363
  const work = [];
21364
21364
  for (let i2 = nodes2.length - 1; i2 >= 0; i2--) work.push([nodes2[i2], 1]);
21365
21365
  while (work.length) {
21366
21366
  const [n2, depth] = work.pop();
21367
21367
  if (!isObj(n2)) continue;
21368
21368
  if (depth > limits.maxDepth) return "too_deep";
21369
- count2++;
21369
+ count3++;
21370
21370
  const k3 = kids(n2);
21371
21371
  for (let i2 = k3.length - 1; i2 >= 0; i2--) work.push([k3[i2], depth + 1]);
21372
21372
  }
21373
- return count2 > limits.maxNodes ? "too_many_nodes" : null;
21373
+ return count3 > limits.maxNodes ? "too_many_nodes" : null;
21374
21374
  }
21375
21375
  function layoutRichContent(json9, limits = RICH_CONTENT_LIMITS2) {
21376
21376
  if (json9 === "") return { blocks: [] };
@@ -39880,6 +39880,7 @@ function resolveIdiom(tokens2, ctx = {}) {
39880
39880
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
39881
39881
  var init_idiom = __esm({
39882
39882
  "../../core/ts/src/idiom.ts"() {
39883
+ "use strict";
39883
39884
  init_define_HHP_CATALOG();
39884
39885
  IDIOM_CONTEXTS = {
39885
39886
  ios: { native: ["ios"] },
@@ -40674,8 +40675,8 @@ var init_store2 = __esm({
40674
40675
  `);
40675
40676
  }
40676
40677
  seedNotesIfEmpty() {
40677
- const count2 = this.db.prepare("SELECT COUNT(*) as c FROM notes").get();
40678
- if (count2.c > 0) return;
40678
+ const count3 = this.db.prepare("SELECT COUNT(*) as c FROM notes").get();
40679
+ if (count3.c > 0) return;
40679
40680
  const seedNotes = [
40680
40681
  {
40681
40682
  id: "n_001",
@@ -40715,8 +40716,8 @@ var init_store2 = __esm({
40715
40716
  }
40716
40717
  }
40717
40718
  seedProductsIfEmpty() {
40718
- const count2 = this.db.prepare("SELECT COUNT(*) as c FROM products").get();
40719
- if (count2.c > 0) return;
40719
+ const count3 = this.db.prepare("SELECT COUNT(*) as c FROM products").get();
40720
+ if (count3.c > 0) return;
40720
40721
  const now = Math.floor(Date.now() / 1e3);
40721
40722
  const seed2 = [
40722
40723
  { id: "p_001", sku: "MNT-CAP-01", title: "Summit cap", description: "Wool-blend beanie. Charcoal. One size, packs flat.", price_cents: 2900, currency: "USD", category: "apparel", inventory: 28, status: "active" },
@@ -46187,13 +46188,13 @@ function imagePreviewNodeId(node3) {
46187
46188
  const own6 = node3?.[PREVIEW_NODE_ID];
46188
46189
  return typeof own6 === "string" ? own6 : node3?.id;
46189
46190
  }
46190
- function imagePreviewPageKeys(items, templateId, count2 = items.length) {
46191
+ function imagePreviewPageKeys(items, templateId, count3 = items.length) {
46191
46192
  const keys2 = [], seen = /* @__PURE__ */ new Set();
46192
- for (let i2 = 0; i2 < count2; i2++) {
46193
+ for (let i2 = 0; i2 < count3; i2++) {
46193
46194
  const id = items[i2]?.id;
46194
46195
  const key4 = typeof id === "string" || typeof id === "number" ? String(id) : "";
46195
46196
  if (!key4 || seen.has(key4)) {
46196
- return imagePreviewRowKeys(items.map((item2, i3) => ({ ...item2 && typeof item2 === "object" ? item2 : { value: item2 }, __index: i3 })), templateId).slice(0, count2);
46197
+ return imagePreviewRowKeys(items.map((item2, i3) => ({ ...item2 && typeof item2 === "object" ? item2 : { value: item2 }, __index: i3 })), templateId).slice(0, count3);
46197
46198
  }
46198
46199
  seen.add(key4);
46199
46200
  keys2.push(key4);
@@ -46829,9 +46830,9 @@ function installImageNetworkReturns(doc = typeof document === "undefined" ? void
46829
46830
  failed3.delete(img);
46830
46831
  const source2 = img.getAttribute("src") ?? "";
46831
46832
  const tried = tries.get(img);
46832
- const count2 = tried?.source === source2 ? tried.count : 0;
46833
- if (count2 >= LIMIT) continue;
46834
- tries.set(img, { source: source2, count: count2 + 1 });
46833
+ const count3 = tried?.source === source2 ? tried.count : 0;
46834
+ if (count3 >= LIMIT) continue;
46835
+ tries.set(img, { source: source2, count: count3 + 1 });
46835
46836
  const srcset = img.getAttribute("srcset");
46836
46837
  if (srcset !== null) img.setAttribute("srcset", srcset);
46837
46838
  img.setAttribute("src", source2);
@@ -46847,9 +46848,9 @@ function useReloadOnNetworkReturn(failed3, reload) {
46847
46848
  if (!failed3 || !view) return;
46848
46849
  installImageNetworkReturns(view.document);
46849
46850
  const returned = () => {
46850
- const count2 = tries.current?.source === failed3 ? tries.current.count : 0;
46851
- if (count2 >= LIMIT) return;
46852
- tries.current = { source: failed3, count: count2 + 1 };
46851
+ const count3 = tries.current?.source === failed3 ? tries.current.count : 0;
46852
+ if (count3 >= LIMIT) return;
46853
+ tries.current = { source: failed3, count: count3 + 1 };
46853
46854
  latest.current();
46854
46855
  };
46855
46856
  view.addEventListener(RETURNED, returned);
@@ -47478,23 +47479,23 @@ var init_modifiers = __esm({
47478
47479
 
47479
47480
  // ../../core/web-renderer/src/liveWindow.ts
47480
47481
  import React6 from "react";
47481
- function liveWindowCurrent(current, count2) {
47482
- if (count2 <= 0 || !Number.isFinite(current)) return 0;
47483
- return Math.min(Math.max(Math.trunc(current), 0), count2 - 1);
47482
+ function liveWindowCurrent(current, count3) {
47483
+ if (count3 <= 0 || !Number.isFinite(current)) return 0;
47484
+ return Math.min(Math.max(Math.trunc(current), 0), count3 - 1);
47484
47485
  }
47485
- function liveWindowRange(current, count2, n2) {
47486
+ function liveWindowRange(current, count3, n2) {
47486
47487
  if (typeof n2 !== "number" || !Number.isFinite(n2) && n2 !== Infinity) return null;
47487
47488
  const w2 = Math.floor(n2);
47488
- if (!(w2 > 0) || count2 <= 0) return null;
47489
- const c2 = liveWindowCurrent(current, count2);
47490
- return { lo: Math.max(0, c2 - w2), hi: Math.min(count2 - 1, c2 + w2) };
47489
+ if (!(w2 > 0) || count3 <= 0) return null;
47490
+ const c2 = liveWindowCurrent(current, count3);
47491
+ return { lo: Math.max(0, c2 - w2), hi: Math.min(count3 - 1, c2 + w2) };
47491
47492
  }
47492
- function liveWindowMounted(i2, current, count2, n2) {
47493
- const r3 = liveWindowRange(current, count2, n2);
47493
+ function liveWindowMounted(i2, current, count3, n2) {
47494
+ const r3 = liveWindowRange(current, count3, n2);
47494
47495
  return r3 == null || i2 >= r3.lo && i2 <= r3.hi;
47495
47496
  }
47496
- function liveWindowActive(i2, current, count2, n2) {
47497
- return liveWindowRange(current, count2, n2) == null || i2 === liveWindowCurrent(current, count2);
47497
+ function liveWindowActive(i2, current, count3, n2) {
47498
+ return liveWindowRange(current, count3, n2) == null || i2 === liveWindowCurrent(current, count3);
47498
47499
  }
47499
47500
  function liveWindowFirstImage(page) {
47500
47501
  const stack = page && typeof page === "object" ? [page] : [];
@@ -47805,12 +47806,12 @@ var init_bindings2 = __esm({
47805
47806
  React7.useEffect(() => {
47806
47807
  if (revealAt >= 0) setSize((n2) => Math.max(n2, revealAt + 1));
47807
47808
  }, [revealAt]);
47808
- const count2 = on4 ? Math.min(Math.max(Math.ceil(size / per) * per, revealAt + 1), items.length) : items.length;
47809
+ const count3 = on4 ? Math.min(Math.max(Math.ceil(size / per) * per, revealAt + 1), items.length) : items.length;
47809
47810
  useImagePreviewCollection(ctx, (index) => {
47810
- if (on4 && index >= count2) setSize(Math.min(items.length, index + BOUND_LIST_WINDOW_STEP));
47811
+ if (on4 && index >= count3) setSize(Math.min(items.length, index + BOUND_LIST_WINDOW_STEP));
47811
47812
  });
47812
- const previewKeys = React7.useMemo(() => ctx.imagePreview ? imagePreviewPageKeys(items, template.id ?? "", count2) : void 0, [ctx.imagePreview, items, template.id, count2]);
47813
- const rows = items.slice(0, count2).map((item2, i2) => {
47813
+ const previewKeys = React7.useMemo(() => ctx.imagePreview ? imagePreviewPageKeys(items, template.id ?? "", count3) : void 0, [ctx.imagePreview, items, template.id, count3]);
47814
+ const rows = items.slice(0, count3).map((item2, i2) => {
47814
47815
  const id = item2?.id;
47815
47816
  const key4 = String(id ?? i2);
47816
47817
  if (tagRows && typeof id === "string" && id) {
@@ -47820,7 +47821,7 @@ var init_bindings2 = __esm({
47820
47821
  });
47821
47822
  return /* @__PURE__ */ jsxs2(Fragment, { children: [
47822
47823
  wrapRows ? wrapRows(rows) : rows,
47823
- count2 < items.length ? /* @__PURE__ */ jsx4(WindowGrowth, { style: markerStyle, onNear: () => setSize((n2) => Math.max(n2, count2) + BOUND_LIST_WINDOW_STEP) }, count2) : footer && pageCursor !== void 0 ? /* @__PURE__ */ jsx4(PageCycleContext.Provider, { value: pages2, children: footer }) : footer ?? null
47824
+ count3 < items.length ? /* @__PURE__ */ jsx4(WindowGrowth, { style: markerStyle, onNear: () => setSize((n2) => Math.max(n2, count3) + BOUND_LIST_WINDOW_STEP) }, count3) : footer && pageCursor !== void 0 ? /* @__PURE__ */ jsx4(PageCycleContext.Provider, { value: pages2, children: footer }) : footer ?? null
47824
47825
  ] });
47825
47826
  };
47826
47827
  ROW_SHELL_STYLE = { display: "contents" };
@@ -51628,10 +51629,10 @@ function sheetIsNonModal(modal) {
51628
51629
  function sheetPlacement(raw) {
51629
51630
  return raw === "inline" ? "inline" : "overlay";
51630
51631
  }
51631
- function drawerDragOutcome(index, count2, dy, dismissible) {
51632
- const at2 = Math.max(0, Math.min(index, Math.max(count2 - 1, 0)));
51633
- if (count2 <= 1) return dy >= DRAWER_SWIPE_DISMISS && dismissible ? -1 : at2;
51634
- if (dy <= -DRAWER_DETENT_DRAG) return Math.min(at2 + 1, count2 - 1);
51632
+ function drawerDragOutcome(index, count3, dy, dismissible) {
51633
+ const at2 = Math.max(0, Math.min(index, Math.max(count3 - 1, 0)));
51634
+ if (count3 <= 1) return dy >= DRAWER_SWIPE_DISMISS && dismissible ? -1 : at2;
51635
+ if (dy <= -DRAWER_DETENT_DRAG) return Math.min(at2 + 1, count3 - 1);
51635
51636
  if (dy >= DRAWER_DETENT_DRAG && at2 > 0) return at2 - 1;
51636
51637
  if (dy >= DRAWER_SWIPE_DISMISS && at2 === 0 && dismissible) return -1;
51637
51638
  return at2;
@@ -51672,12 +51673,12 @@ function sheetDetents(detents) {
51672
51673
  const kept = detents.filter((d2) => typeof d2 === "number" && d2 > 0 && d2 <= 1);
51673
51674
  return [...new Set(kept)].sort((a3, b3) => a3 - b3);
51674
51675
  }
51675
- function nextDetentIndex(index, count2) {
51676
- return count2 <= 1 ? 0 : (index + 1) % count2;
51676
+ function nextDetentIndex(index, count3) {
51677
+ return count3 <= 1 ? 0 : (index + 1) % count3;
51677
51678
  }
51678
- function detentAfterDrag(index, count2, dy) {
51679
- if (count2 <= 1 || Math.abs(dy) < DETENT_DRAG_THRESHOLD) return Math.max(0, Math.min(index, count2 - 1));
51680
- return Math.max(0, Math.min(count2 - 1, index + (dy < 0 ? 1 : -1)));
51679
+ function detentAfterDrag(index, count3, dy) {
51680
+ if (count3 <= 1 || Math.abs(dy) < DETENT_DRAG_THRESHOLD) return Math.max(0, Math.min(index, count3 - 1));
51681
+ return Math.max(0, Math.min(count3 - 1, index + (dy < 0 ? 1 : -1)));
51681
51682
  }
51682
51683
  function sheetEdge(edge) {
51683
51684
  return edge === "leading" || edge === "trailing" ? edge : "bottom";
@@ -52849,10 +52850,10 @@ function pdfPageCount(bytes2) {
52849
52850
  const n2 = c2 ? Number(c2[1]) : NaN;
52850
52851
  if (Number.isFinite(n2) && n2 > 0 && (scanned === null || n2 > scanned)) scanned = n2;
52851
52852
  }
52852
- const count2 = rooted ?? scanned;
52853
- if (count2 === null) return null;
52853
+ const count3 = rooted ?? scanned;
52854
+ if (count3 === null) return null;
52854
52855
  if (rooted !== null && scanned !== null && rooted !== scanned) return null;
52855
- return count2 <= PDF_MAX_PLAUSIBLE_PAGES ? count2 : null;
52856
+ return count3 <= PDF_MAX_PLAUSIBLE_PAGES ? count3 : null;
52856
52857
  }
52857
52858
  function pdfObjectSyntax(text30) {
52858
52859
  const out2 = text30.split("");
@@ -58960,10 +58961,10 @@ var init_pdf = __esm({
58960
58961
  // eslint-disable-next-line max-statements -- ok
58961
58962
  sumPrecise: function sumPrecise(items) {
58962
58963
  var numbers = [];
58963
- var count2 = 0;
58964
+ var count3 = 0;
58964
58965
  var state = MINUS_ZERO;
58965
58966
  iterate(items, function(n3) {
58966
- if (++count2 > MAX_SAFE_INTEGER) throw new $RangeError("Maximum allowed index exceeded");
58967
+ if (++count3 > MAX_SAFE_INTEGER) throw new $RangeError("Maximum allowed index exceeded");
58967
58968
  if (typeof n3 != "number") throw new $TypeError("Value is not a number");
58968
58969
  if (state !== NOT_A_NUMBER) {
58969
58970
  if (n3 !== n3) state = NOT_A_NUMBER;
@@ -71131,9 +71132,9 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
71131
71132
  if (!this.contentVisible) {
71132
71133
  return;
71133
71134
  }
71134
- const count2 = img.count;
71135
+ const count3 = img.count;
71135
71136
  img = this.getObject(opIdx, img.data, img);
71136
- img.count = count2;
71137
+ img.count = count3;
71137
71138
  const started = this.#beginKnockoutElement(this.current.fillAlpha);
71138
71139
  const ctx = this.ctx;
71139
71140
  const mask = this._createMaskCanvas(opIdx, img);
@@ -134198,8 +134199,8 @@ function PdfDocument({ src, nativeSrc, title, height, startPage, zoomPercent, st
134198
134199
  }
134199
134200
  loading = task;
134200
134201
  const document2 = await task.promise;
134201
- const count2 = await paintPdfDocument(document2, container, container.clientWidth || 600, startPageRef.current, zoomPercent, () => live4, onPageCount);
134202
- if (live4) setPages(count2);
134202
+ const count3 = await paintPdfDocument(document2, container, container.clientWidth || 600, startPageRef.current, zoomPercent, () => live4, onPageCount);
134203
+ if (live4) setPages(count3);
134203
134204
  })().catch(() => {
134204
134205
  if (live4) setFailedRequest(request2);
134205
134206
  });
@@ -135976,14 +135977,14 @@ function DataTableTotals({ totalsPath, totals, columns, ctx, td }) {
135976
135977
  if (totalsRow == null) return null;
135977
135978
  return /* @__PURE__ */ jsx14("tfoot", { children: /* @__PURE__ */ jsx14("tr", { children: dataTableCells(totalsRow, columns).map((cell3, ci2) => /* @__PURE__ */ jsx14("td", { style: { ...td, fontWeight: 600, borderTop: `1px solid ${ctx.color("border", "#e5e5e5")}`, textAlign: cellAlign(columns[ci2].align) }, children: txt(cell3, ctx) }, ci2)) }) });
135978
135979
  }
135979
- function resampleWaveform(samples, count2) {
135980
+ function resampleWaveform(samples, count3) {
135980
135981
  const clean3 = samples.map((n2) => Number.isFinite(n2) ? Math.min(Math.max(n2, 0), 1) : 0);
135981
- if (count2 <= 0 || clean3.length === 0) return [];
135982
- if (clean3.length <= count2) return clean3;
135982
+ if (count3 <= 0 || clean3.length === 0) return [];
135983
+ if (clean3.length <= count3) return clean3;
135983
135984
  const out2 = [];
135984
- for (let i2 = 0; i2 < count2; i2++) {
135985
- const lo2 = Math.floor(i2 * clean3.length / count2);
135986
- const hi2 = Math.min(Math.max(lo2 + 1, Math.floor((i2 + 1) * clean3.length / count2)), clean3.length);
135985
+ for (let i2 = 0; i2 < count3; i2++) {
135986
+ const lo2 = Math.floor(i2 * clean3.length / count3);
135987
+ const hi2 = Math.min(Math.max(lo2 + 1, Math.floor((i2 + 1) * clean3.length / count3)), clean3.length);
135987
135988
  let sum = 0;
135988
135989
  for (let j2 = lo2; j2 < hi2; j2++) sum += clean3[j2];
135989
135990
  out2.push(sum / (hi2 - lo2));
@@ -136001,8 +136002,8 @@ function voiceNoteSpokenDuration(ms2) {
136001
136002
  if (s5 === 0) return `${m2} minute${m2 === 1 ? "" : "s"}`;
136002
136003
  return `${m2} minute${m2 === 1 ? "" : "s"} ${s5} second${s5 === 1 ? "" : "s"}`;
136003
136004
  }
136004
- function resolvePagedIndex(value2, count2) {
136005
- if (count2 <= 0) return void 0;
136005
+ function resolvePagedIndex(value2, count3) {
136006
+ if (count3 <= 0) return void 0;
136006
136007
  let n2;
136007
136008
  if (typeof value2 === "number") n2 = value2;
136008
136009
  else if (typeof value2 === "string" && /^-?\d+$/.test(value2)) {
@@ -136010,7 +136011,7 @@ function resolvePagedIndex(value2, count2) {
136010
136011
  if (!Number.isFinite(n2)) n2 = value2.startsWith("-") ? -Number.MAX_SAFE_INTEGER : Number.MAX_SAFE_INTEGER;
136011
136012
  } else n2 = NaN;
136012
136013
  if (!Number.isInteger(n2)) return void 0;
136013
- return Math.max(0, Math.min(count2 - 1, n2));
136014
+ return Math.max(0, Math.min(count3 - 1, n2));
136014
136015
  }
136015
136016
  function rememberReported(echoes, index) {
136016
136017
  const now = Date.now();
@@ -136030,7 +136031,7 @@ function takesHoldOfRail(event) {
136030
136031
  }
136031
136032
  return true;
136032
136033
  }
136033
- function useBoundPageIndex(ctx, path2, count2, currentRef, move, echoes) {
136034
+ function useBoundPageIndex(ctx, path2, count3, currentRef, move, echoes) {
136034
136035
  const binding2 = typeof path2 === "string" && isBinding(path2) ? path2 : "";
136035
136036
  const value2 = useBoundValue(ctx, binding2);
136036
136037
  if (echoes) heldPageIndex.set(echoes, binding2 && typeof value2 === "number" ? value2 : void 0);
@@ -136038,7 +136039,7 @@ function useBoundPageIndex(ctx, path2, count2, currentRef, move, echoes) {
136038
136039
  const seen = React21.useRef(null);
136039
136040
  React21.useEffect(() => {
136040
136041
  if (!binding2) return;
136041
- const index = resolvePagedIndex(value2, count2);
136042
+ const index = resolvePagedIndex(value2, count3);
136042
136043
  if (index === void 0) {
136043
136044
  if (resolvePagedIndex(value2, Number.MAX_SAFE_INTEGER) === void 0) {
136044
136045
  seen.current = { binding: binding2, provider: ctx.provider, value: value2, clamped: false, index: -1 };
@@ -136048,7 +136049,7 @@ function useBoundPageIndex(ctx, path2, count2, currentRef, move, echoes) {
136048
136049
  const last = seen.current;
136049
136050
  if (last && last.binding === binding2 && last.provider === ctx.provider && last.value === value2 && !last.clamped) {
136050
136051
  const unbounded = resolvePagedIndex(value2, Number.MAX_SAFE_INTEGER);
136051
- if (unbounded !== index && shownBefore > count2 - 1) seen.current = { ...last, clamped: true, index };
136052
+ if (unbounded !== index && shownBefore > count3 - 1) seen.current = { ...last, clamped: true, index };
136052
136053
  return;
136053
136054
  }
136054
136055
  if (last && last.binding === binding2 && last.provider === ctx.provider && last.value === value2 && currentRef.current !== last.index) {
@@ -136067,9 +136068,9 @@ function useBoundPageIndex(ctx, path2, count2, currentRef, move, echoes) {
136067
136068
  pending2.length = 0;
136068
136069
  }
136069
136070
  if (index !== currentRef.current) move(index);
136070
- }, [binding2, ctx.provider, value2, count2]);
136071
+ }, [binding2, ctx.provider, value2, count3]);
136071
136072
  return (shown3 = currentRef.current) => {
136072
- const target = binding2 ? resolvePagedIndex(value2, count2) : void 0;
136073
+ const target = binding2 ? resolvePagedIndex(value2, count3) : void 0;
136073
136074
  if (target === void 0) return false;
136074
136075
  const last = seen.current;
136075
136076
  if (!(last && last.binding === binding2 && last.provider === ctx.provider && last.value === value2)) {
@@ -137407,7 +137408,7 @@ function renderInner(node3, ctx, boundMotion) {
137407
137408
  if (ctx.rowDivider) {
137408
137409
  return /* @__PURE__ */ jsx14("div", { style: { width: 1, alignSelf: "stretch", flexShrink: 0, margin: "4px 0", background: C2("border", "#e6edf3"), ...wrap } });
137409
137410
  }
137410
- return /* @__PURE__ */ jsx14("div", { style: { height: 1, alignSelf: "stretch", width: "100%", background: C2("border", "#e6edf3"), ...wrap } });
137411
+ return /* @__PURE__ */ jsx14("div", { style: { alignSelf: "stretch", width: "100%", ...wrap }, children: /* @__PURE__ */ jsx14("div", { style: { height: 1, background: C2("border", "#e6edf3") } }) });
137411
137412
  case "Spacer": {
137412
137413
  if (props2.collapseWhenEmpty === true) {
137413
137414
  const raw = props2.value;
@@ -137646,10 +137647,10 @@ function renderInner(node3, ctx, boundMotion) {
137646
137647
  case "Agenda":
137647
137648
  return /* @__PURE__ */ jsx14(AgendaNode, { props: props2, ctx, wrap });
137648
137649
  case "PageControl": {
137649
- const count2 = props2.count ?? 0;
137650
+ const count3 = props2.count ?? 0;
137650
137651
  const cur = props2.currentIndex ?? 0;
137651
137652
  const accent = C2("accentPrimary", "#116DFF");
137652
- return /* @__PURE__ */ jsx14("div", { style: { display: "inline-flex", alignItems: "center", gap: 8, ...wrap }, children: Array.from({ length: count2 }).map((_2, i2) => /* @__PURE__ */ jsx14("span", { style: { width: i2 === cur ? 22 : 9, height: 9, borderRadius: 999, background: i2 === cur ? accent : C2("textTertiary", "#aab2bd"), transition: "width .2s" } }, i2)) });
137653
+ return /* @__PURE__ */ jsx14("div", { style: { display: "inline-flex", alignItems: "center", gap: 8, ...wrap }, children: Array.from({ length: count3 }).map((_2, i2) => /* @__PURE__ */ jsx14("span", { style: { width: i2 === cur ? 22 : 9, height: 9, borderRadius: 999, background: i2 === cur ? accent : C2("textTertiary", "#aab2bd"), transition: "width .2s" } }, i2)) });
137653
137654
  }
137654
137655
  // ───────────── pickers & inputs (RFC 0033) ─────────────
137655
137656
  case "WheelPicker":
@@ -137773,7 +137774,7 @@ function renderInner(node3, ctx, boundMotion) {
137773
137774
  case "RichContentEditor":
137774
137775
  return /* @__PURE__ */ jsx14(RichContentEditorNode, { props: props2, ctx, wrap, nodeId: node3.id });
137775
137776
  case "Skeleton": {
137776
- const count2 = typeof props2.count === "number" ? props2.count : 1;
137777
+ const count3 = typeof props2.count === "number" ? props2.count : 1;
137777
137778
  const base2 = C2("surfaceTertiary", "#f0f0f3");
137778
137779
  const motion = skeletonMotion(rowValue(props2.style, ctx), {
137779
137780
  motionDefaultsAnimate: motionDefaultsAnimate(ctx),
@@ -137786,8 +137787,8 @@ function renderInner(node3, ctx, boundMotion) {
137786
137787
  backgroundSize: "300% 100%",
137787
137788
  animation: `himalaya-shimmer ${motion === "shimmer" ? SKELETON_SHIMMER_PERIOD_MS : motionDefaultsDuration(ctx.kit, 1400)}ms linear infinite`
137788
137789
  }) : { background: base2 };
137789
- if (count2 <= 1) return /* @__PURE__ */ jsx14("div", { "data-hm-skeleton": "", style: { width: props2.width ?? "100%", height: props2.height ?? 16, borderRadius: props2.cornerRadius ?? 8, ...bar, flex: "none", ...wrap, ...shimmer ? bar : {} } });
137790
- return /* @__PURE__ */ jsx14("div", { "data-hm-skeleton": "", style: { display: "flex", flexDirection: "column", gap: 10, width: "100%", ...wrap }, children: Array.from({ length: count2 }).map((_2, i2) => /* @__PURE__ */ jsx14("div", { style: { height: props2.height ?? 16, width: `${100 - i2 * 8}%`, borderRadius: props2.cornerRadius ?? 8, ...bar } }, i2)) });
137790
+ if (count3 <= 1) return /* @__PURE__ */ jsx14("div", { "data-hm-skeleton": "", style: { width: props2.width ?? "100%", height: props2.height ?? 16, borderRadius: props2.cornerRadius ?? 8, ...bar, flex: "none", ...wrap, ...shimmer ? bar : {} } });
137791
+ return /* @__PURE__ */ jsx14("div", { "data-hm-skeleton": "", style: { display: "flex", flexDirection: "column", gap: 10, width: "100%", ...wrap }, children: Array.from({ length: count3 }).map((_2, i2) => /* @__PURE__ */ jsx14("div", { style: { height: props2.height ?? 16, width: `${100 - i2 * 8}%`, borderRadius: props2.cornerRadius ?? 8, ...bar } }, i2)) });
137791
137792
  }
137792
137793
  // ───────────── search & filter ─────────────
137793
137794
  case "SearchField":
@@ -139823,9 +139824,9 @@ var init_renderNode = __esm({
139823
139824
  const view = nav.from === rawUrl ? nav : { from: rawUrl, page: null, zoom: null };
139824
139825
  const src = plan?.mode === "direct" ? plan.src : settled?.url ?? null;
139825
139826
  const [canvasCount, setCanvasCount] = React21.useState(null);
139826
- const onPageCount = React21.useCallback((count2) => {
139827
- if (!Number.isInteger(count2) || count2 < 1) return;
139828
- setCanvasCount((cur) => cur?.from === src && cur.count === count2 ? cur : { from: src, count: count2 });
139827
+ const onPageCount = React21.useCallback((count3) => {
139828
+ if (!Number.isInteger(count3) || count3 < 1) return;
139829
+ setCanvasCount((cur) => cur?.from === src && cur.count === count3 ? cur : { from: src, count: count3 });
139829
139830
  }, [src]);
139830
139831
  const pageCount = canvasCount?.from === src ? canvasCount.count : fallbackPageCount;
139831
139832
  const onFallback = React21.useCallback(() => setFellBackFrom(src), [src]);
@@ -141707,9 +141708,9 @@ var init_renderNode = __esm({
141707
141708
  const d2 = drag.current;
141708
141709
  if (!d2 || d2.id !== ev.pointerId) return;
141709
141710
  drag.current = null;
141710
- const { index: at2, count: count2, dismissible: canClose } = dragState.current;
141711
+ const { index: at2, count: count3, dismissible: canClose } = dragState.current;
141711
141712
  const dy = ev.clientY - d2.y;
141712
- const next = ev.type === "pointerup" ? drawerDragOutcome(at2, count2, dy, canClose) : at2;
141713
+ const next = ev.type === "pointerup" ? drawerDragOutcome(at2, count3, dy, canClose) : at2;
141713
141714
  dragged.current = ev.type === "pointerup" && Math.abs(dy) >= DETENT_DRAG_THRESHOLD;
141714
141715
  if (next === -1) close();
141715
141716
  else if (next !== at2) toDetent(next, at2);
@@ -142187,8 +142188,8 @@ var init_renderNode = __esm({
142187
142188
  const overflow = (props2.showOverflow ?? props2.show_overflow) === false ? 0 : props2.overflowCount || Math.max(0, avatars.length - maxVisible);
142188
142189
  const shift = Math.round(size * (1 - (props2.overlapRatio ?? 0.67)));
142189
142190
  const caption = useBoundString(props2.caption, ctx).trim();
142190
- const count2 = shown3.length + overflow;
142191
- const countText = count2 > 0 ? `${count2} ${count2 === 1 ? "person" : "people"}` : "";
142191
+ const count3 = shown3.length + overflow;
142192
+ const countText = count3 > 0 ? `${count3} ${count3 === 1 ? "person" : "people"}` : "";
142192
142193
  const groupName = [caption, countText].filter(Boolean).join(", ");
142193
142194
  return /* @__PURE__ */ jsxs11("div", { role: "group", "aria-label": groupName || void 0, "data-a11y-value": countText || void 0, ...{ [SELF_RENDERED_LEAF]: true, [A11Y_PART]: "root" }, style: { width: "100%", ...wrap }, children: [
142194
142195
  /* @__PURE__ */ jsxs11("div", { role: "list", style: { display: "flex" }, children: [
@@ -142923,17 +142924,17 @@ var init_renderNode = __esm({
142923
142924
  }, [index, heights]);
142924
142925
  return /* @__PURE__ */ jsx14("div", { ref, style: { width: "100%" }, children: children2 });
142925
142926
  };
142926
- LiveWindowPage = ({ page, index, count: count2, current, liveWindow, ownerId, heights, ctx }) => {
142927
+ LiveWindowPage = ({ page, index, count: count3, current, liveWindow, ownerId, heights, ctx }) => {
142927
142928
  const outerActive = React21.useContext(PageActiveContext);
142928
- if (liveWindowRange(current, count2, liveWindow) == null) return /* @__PURE__ */ jsx14(Fragment4, { children: renderNode(page, ctx) });
142929
- if (liveWindowMounted(index, current, count2, liveWindow)) {
142930
- return /* @__PURE__ */ jsx14(PageActiveContext.Provider, { value: outerActive && liveWindowActive(index, current, count2, liveWindow), children: /* @__PURE__ */ jsx14(LiveWindowMeasured, { index, heights, children: renderNode(page, ctx) }) });
142929
+ if (liveWindowRange(current, count3, liveWindow) == null) return /* @__PURE__ */ jsx14(Fragment4, { children: renderNode(page, ctx) });
142930
+ if (liveWindowMounted(index, current, count3, liveWindow)) {
142931
+ return /* @__PURE__ */ jsx14(PageActiveContext.Provider, { value: outerActive && liveWindowActive(index, current, count3, liveWindow), children: /* @__PURE__ */ jsx14(LiveWindowMeasured, { index, heights, children: renderNode(page, ctx) }) });
142931
142932
  }
142932
142933
  const bg = normalize2(page ?? {}).modifiers?.background;
142933
142934
  const token = typeof bg === "string" ? bg : typeof bg?.token === "string" ? bg.token : void 0;
142934
142935
  const image = liveWindowFirstImage(page);
142935
142936
  const picture = image ? normalize2(image) : null;
142936
- const remembered = heights.map.get(index) ?? heights.map.get(liveWindowCurrent(current, count2));
142937
+ const remembered = heights.map.get(index) ?? heights.map.get(liveWindowCurrent(current, count3));
142937
142938
  return (
142938
142939
  // Hidden from assistive tech except as the page's position; the picture is inert (no id, no actions).
142939
142940
  /* @__PURE__ */ jsx14(
@@ -142942,7 +142943,7 @@ var init_renderNode = __esm({
142942
142943
  "data-component-id": liveWindowPlaceholderId(ownerId, index),
142943
142944
  "data-live-window-placeholder": "",
142944
142945
  role: "group",
142945
- "aria-label": `page ${index + 1} of ${count2}`,
142946
+ "aria-label": `page ${index + 1} of ${count3}`,
142946
142947
  style: { width: "100%", height: remembered ? remembered : "100%", minHeight: remembered ? remembered : "100%", position: "relative", overflow: "hidden", background: token && !isBinding(token) ? ctx.color(token, "transparent") : void 0 },
142947
142948
  children: picture ? /* @__PURE__ */ jsx14("div", { "aria-hidden": "true", style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: renderNode({ type: picture.type, props: picture.props }, { ...ctx, onAction: null }) }) : null
142948
142949
  }
@@ -143601,7 +143602,7 @@ var init_renderNode = __esm({
143601
143602
  const parsedIndex = resolvePagedIndex(boundIndex, Number.MAX_SAFE_INTEGER) ?? NaN;
143602
143603
  const effectiveIndex = Number.isInteger(parsedIndex) ? parsedIndex : props2.currentIndex;
143603
143604
  const pages2 = items.filter((p2) => isNodeLike(p2) || p2?.type);
143604
- const count2 = pages2.length;
143605
+ const count3 = pages2.length;
143605
143606
  const [index, setIndex] = React21.useState(typeof effectiveIndex === "number" ? effectiveIndex : 0);
143606
143607
  const indexRef = React21.useRef(index);
143607
143608
  const { settled, scrolling } = useSettledPage(index);
@@ -143613,7 +143614,7 @@ var init_renderNode = __esm({
143613
143614
  const [focused, setFocused] = React21.useState(false);
143614
143615
  const paused = hovered || focused;
143615
143616
  const interval = typeof props2.autoplayIntervalMs === "number" && props2.autoplayIntervalMs > 0 ? props2.autoplayIntervalMs : 0;
143616
- const autoplay = interval > 0 && count2 > 1 && !ctx.reduceMotion();
143617
+ const autoplay = interval > 0 && count3 > 1 && !ctx.reduceMotion();
143617
143618
  const onChange = props2.onChange;
143618
143619
  const onChangeRef = React21.useRef(onChange);
143619
143620
  onChangeRef.current = onChange;
@@ -143627,7 +143628,7 @@ var init_renderNode = __esm({
143627
143628
  const carouselEchoes = React21.useRef([]);
143628
143629
  const carouselIndexBoundRaw = props2.currentIndexPath ?? props2.current_index_path;
143629
143630
  const carouselIndexBound = typeof carouselIndexBoundRaw === "string" && isBinding(carouselIndexBoundRaw) && !carouselIndexBoundRaw.startsWith("$item.");
143630
- useBoundPageIndex(ctx, carouselIndexBound ? carouselIndexBoundRaw : "", count2, indexRef, (index2) => {
143631
+ useBoundPageIndex(ctx, carouselIndexBound ? carouselIndexBoundRaw : "", count3, indexRef, (index2) => {
143631
143632
  endAutoScroll();
143632
143633
  indexRef.current = index2;
143633
143634
  setIndex(index2);
@@ -143641,15 +143642,15 @@ var init_renderNode = __esm({
143641
143642
  scrollCarouselTo(el2, index2);
143642
143643
  }, carouselEchoes);
143643
143644
  const placedIndex = !carouselIndexBound && Number.isInteger(parsedIndex) ? parsedIndex : void 0;
143644
- const requestedIndex = Math.max(0, Math.min(count2 - 1, placedIndex ?? (typeof props2.currentIndex === "number" ? props2.currentIndex : 0)));
143645
- const hasPages = count2 > 0;
143645
+ const requestedIndex = Math.max(0, Math.min(count3 - 1, placedIndex ?? (typeof props2.currentIndex === "number" ? props2.currentIndex : 0)));
143646
+ const hasPages = count3 > 0;
143646
143647
  useIsomorphicLayoutEffect3(() => {
143647
143648
  const el2 = trackRef.current;
143648
143649
  if (el2 && hasPages && indexRef.current > 0) el2.scrollLeft = carouselScrollLeft(el2, indexRef.current);
143649
143650
  }, [hasPages]);
143650
143651
  React21.useEffect(() => {
143651
143652
  if (carouselIndexBound && indexRef.current !== requestedIndex) {
143652
- const last = count2 - 1;
143653
+ const last = count3 - 1;
143653
143654
  if (last < 0 || indexRef.current <= last) return;
143654
143655
  endAutoScroll();
143655
143656
  indexRef.current = last;
@@ -143666,7 +143667,7 @@ var init_renderNode = __esm({
143666
143667
  indexRef.current = requestedIndex;
143667
143668
  setIndex(requestedIndex);
143668
143669
  if (trackRef.current) trackRef.current.scrollLeft = carouselScrollLeft(trackRef.current, requestedIndex);
143669
- }, [requestedIndex, count2, endAutoScroll]);
143670
+ }, [requestedIndex, count3, endAutoScroll]);
143670
143671
  React21.useEffect(() => {
143671
143672
  const el2 = trackRef.current;
143672
143673
  el2?.addEventListener("scrollend", settleAutoScroll);
@@ -143686,7 +143687,7 @@ var init_renderNode = __esm({
143686
143687
  }
143687
143688
  }, [ctx]);
143688
143689
  useImagePreviewCollection(ctx, (page) => {
143689
- if (page < 0 || page >= count2) return;
143690
+ if (page < 0 || page >= count3) return;
143690
143691
  endAutoScroll();
143691
143692
  pageTo(page);
143692
143693
  if (trackRef.current) trackRef.current.scrollLeft = carouselScrollLeft(trackRef.current, page);
@@ -143696,25 +143697,25 @@ var init_renderNode = __esm({
143696
143697
  endAutoScroll();
143697
143698
  const el2 = trackRef.current;
143698
143699
  if (!locked || !el2 || el2.clientWidth <= 0) return;
143699
- const page = Math.max(0, Math.min(count2 - 1, Math.round(Math.abs(el2.scrollLeft) / el2.clientWidth)));
143700
+ const page = Math.max(0, Math.min(count3 - 1, Math.round(Math.abs(el2.scrollLeft) / el2.clientWidth)));
143700
143701
  scrolling(page);
143701
143702
  pageTo(page);
143702
143703
  };
143703
143704
  React21.useEffect(() => {
143704
143705
  if (!autoplay || paused) return;
143705
143706
  const id = setInterval(() => {
143706
- const next = (indexRef.current + 1) % count2;
143707
+ const next = (indexRef.current + 1) % count3;
143707
143708
  endAutoScroll();
143708
143709
  autoScrollRef.current = { target: next, timer: setTimeout(endAutoScroll, CAROUSEL_SETTLE_MS) };
143709
143710
  pageTo(next);
143710
143711
  scrollCarouselTo(trackRef.current, next);
143711
143712
  }, interval);
143712
143713
  return () => clearInterval(id);
143713
- }, [autoplay, paused, interval, count2, pageTo, endAutoScroll]);
143714
+ }, [autoplay, paused, interval, count3, pageTo, endAutoScroll]);
143714
143715
  const onScroll = (e2) => {
143715
143716
  const el2 = e2.currentTarget;
143716
143717
  if (el2.clientWidth <= 0) return;
143717
- const page = Math.max(0, Math.min(count2 - 1, Math.round(Math.abs(el2.scrollLeft) / el2.clientWidth)));
143718
+ const page = Math.max(0, Math.min(count3 - 1, Math.round(Math.abs(el2.scrollLeft) / el2.clientWidth)));
143718
143719
  if (autoScrollRef.current) {
143719
143720
  if (page === autoScrollRef.current.target) endAutoScroll();
143720
143721
  return;
@@ -143773,15 +143774,15 @@ var init_renderNode = __esm({
143773
143774
  userTakesOver(event);
143774
143775
  if (event.target !== event.currentTarget || !["ArrowLeft", "ArrowRight", "Home", "End"].includes(event.key)) return;
143775
143776
  event.preventDefault();
143776
- const next = event.key === "Home" ? 0 : event.key === "End" ? count2 - 1 : Math.max(0, Math.min(count2 - 1, indexRef.current + (event.key === "ArrowRight" ? 1 : -1) * (event.currentTarget.ownerDocument.defaultView?.getComputedStyle(event.currentTarget).direction === "rtl" ? -1 : 1)));
143777
+ const next = event.key === "Home" ? 0 : event.key === "End" ? count3 - 1 : Math.max(0, Math.min(count3 - 1, indexRef.current + (event.key === "ArrowRight" ? 1 : -1) * (event.currentTarget.ownerDocument.defaultView?.getComputedStyle(event.currentTarget).direction === "rtl" ? -1 : 1)));
143777
143778
  if (trackRef.current) trackRef.current.scrollLeft = next * trackRef.current.clientWidth * (event.currentTarget.ownerDocument.defaultView?.getComputedStyle(event.currentTarget).direction === "rtl" ? -1 : 1);
143778
143779
  pageTo(next);
143779
143780
  },
143780
143781
  style: { display: "flex", overflowX: "auto", scrollSnapType: "x mandatory", width: "100%" },
143781
- children: pages2.map((pg, i2) => /* @__PURE__ */ jsx14("div", { style: { minWidth: "100%", scrollSnapAlign: "start" }, children: /* @__PURE__ */ jsx14(LiveWindowPage, { page: pg, index: i2, count: count2, current: settled, liveWindow: props2.liveWindow, ownerId: nodeId || "carousel", heights: pageHeights, ctx: pg.__itemScope ? { ...ctx, itemScope: pg.__itemScope, ...pg.__previewKey !== void 0 ? { imagePreviewRows: [...ctx.imagePreviewRows ?? [], pg.__previewKey] } : {} } : ctx }) }, pg?.id ?? i2))
143782
+ children: pages2.map((pg, i2) => /* @__PURE__ */ jsx14("div", { style: { minWidth: "100%", scrollSnapAlign: "start" }, children: /* @__PURE__ */ jsx14(LiveWindowPage, { page: pg, index: i2, count: count3, current: settled, liveWindow: props2.liveWindow, ownerId: nodeId || "carousel", heights: pageHeights, ctx: pg.__itemScope ? { ...ctx, itemScope: pg.__itemScope, ...pg.__previewKey !== void 0 ? { imagePreviewRows: [...ctx.imagePreviewRows ?? [], pg.__previewKey] } : {} } : ctx }) }, pg?.id ?? i2))
143782
143783
  }
143783
143784
  ),
143784
- count2 > 1 && /* @__PURE__ */ jsx14("div", { "aria-label": `Page ${index + 1} of ${count2}`, style: { display: "flex", gap: 6, justifyContent: "center", marginTop: 10 }, children: pages2.map((_2, i2) => /* @__PURE__ */ jsx14("span", { "aria-current": i2 === index ? "true" : void 0, style: { width: i2 === index ? 18 : 7, height: 7, borderRadius: 999, background: i2 === index ? C2("accentPrimary", "#116DFF") : C2("border", "#ccc") } }, i2)) })
143785
+ count3 > 1 && /* @__PURE__ */ jsx14("div", { "aria-label": `Page ${index + 1} of ${count3}`, style: { display: "flex", gap: 6, justifyContent: "center", marginTop: 10 }, children: pages2.map((_2, i2) => /* @__PURE__ */ jsx14("span", { "aria-current": i2 === index ? "true" : void 0, style: { width: i2 === index ? 18 : 7, height: 7, borderRadius: 999, background: i2 === index ? C2("accentPrimary", "#116DFF") : C2("border", "#ccc") } }, i2)) })
143785
143786
  ]
143786
143787
  }
143787
143788
  );
@@ -160047,11 +160048,11 @@ function resolveWixUrl(path2) {
160047
160048
  if (/^https?:\/\//i.test(path2)) return path2;
160048
160049
  return `${WIX_API2}${path2}`;
160049
160050
  }
160050
- function classifyHttp(status2, count2) {
160051
+ function classifyHttp(status2, count3) {
160051
160052
  if (status2 === 428) return "not-installed";
160052
160053
  if (status2 === 404) return "wrong-path";
160053
160054
  if (status2 && status2 >= 400) return "error";
160054
- return count2 > 0 ? "ok" : "empty";
160055
+ return count3 > 0 ? "ok" : "empty";
160055
160056
  }
160056
160057
  function makeTransport(fetchImpl, auth, timeoutMs = DEFAULT_TIMEOUT_MS2) {
160057
160058
  return async (method, path2, body) => {
@@ -161215,9 +161216,9 @@ function validateAmpersand(xmlData, i2) {
161215
161216
  i2++;
161216
161217
  return validateNumberAmpersand(xmlData, i2);
161217
161218
  }
161218
- let count2 = 0;
161219
- for (; i2 < xmlData.length; i2++, count2++) {
161220
- if (xmlData[i2].match(/\w/) && count2 < 20)
161219
+ let count3 = 0;
161220
+ for (; i2 < xmlData.length; i2++, count3++) {
161221
+ if (xmlData[i2].match(/\w/) && count3 < 20)
161221
161222
  continue;
161222
161223
  if (xmlData[i2] === ";")
161223
161224
  break;
@@ -164278,8 +164279,8 @@ var init_Matcher = __esm({
164278
164279
  const siblingKey = namespace ? `${namespace}:${tagName2}` : tagName2;
164279
164280
  const counter = siblings.get(siblingKey) || 0;
164280
164281
  let position = 0;
164281
- for (const count2 of siblings.values()) {
164282
- position += count2;
164282
+ for (const count3 of siblings.values()) {
164283
+ position += count3;
164283
164284
  }
164284
164285
  siblings.set(siblingKey, counter + 1);
164285
164286
  const node3 = {
@@ -172601,7 +172602,7 @@ function sinceStart(start2, ts32) {
172601
172602
  }
172602
172603
  function renderReel(plan, images) {
172603
172604
  const img = (f2, alt, cls = "") => f2 && images.has(f2) ? `<img class="${cls}" src="${images.get(f2)}" alt="${escapeHtml(alt)}">` : "";
172604
- const count2 = (n2) => escapeHtml(String(Number.isSafeInteger(n2) && n2 >= 0 ? n2 : 0));
172605
+ const count3 = (n2) => escapeHtml(String(Number.isSafeInteger(n2) && n2 >= 0 ? n2 : 0));
172605
172606
  const accent = ACCENT.test(plan.accent) ? plan.accent : DEFAULT_ACCENT;
172606
172607
  const clock = (ts32) => sinceStart(plan.startedAt, ts32);
172607
172608
  const frames = plan.frames.filter((f2) => images.has(f2.file));
@@ -172627,14 +172628,14 @@ figcaption{font-size:12px;color:var(--muted);margin-top:6px;word-break:break-all
172627
172628
  footer{margin-top:48px;font-size:12px;color:var(--muted)}
172628
172629
  </style></head><body><div class="wrap">
172629
172630
  <h1>${escapeHtml(plan.app)}</h1><div class="muted">The making of \u2014 every version of the app as it was built${plan.startedAt ? `, ${escapeHtml(utcDay(plan.startedAt))}` : ""}</div>
172630
- <div class="stats"><div><b>${duration(plan.stats.elapsedMs)}</b><span class="muted">from first picture to last</span></div><div><b>${count2(plan.stats.screens)}</b><span class="muted">screens</span></div><div><b>${count2(plan.stats.versions)}</b><span class="muted">versions rendered</span></div><div><b>${count2(plan.stats.postcards)}</b><span class="muted">postcards</span></div></div>
172631
+ <div class="stats"><div><b>${duration(plan.stats.elapsedMs)}</b><span class="muted">from first picture to last</span></div><div><b>${count3(plan.stats.screens)}</b><span class="muted">screens</span></div><div><b>${count3(plan.stats.versions)}</b><span class="muted">versions rendered</span></div><div><b>${count3(plan.stats.postcards)}</b><span class="muted">postcards</span></div></div>
172631
172632
  <h2>${escapeHtml(plan.focusId ?? "The app")}, version by version</h2>
172632
172633
  ${flip}
172633
172634
  <h2>Where it ended up</h2>
172634
172635
  <div class="grid">${plan.finals.map((f2) => `<figure>${img(f2.file, f2.id)}<figcaption>${escapeHtml(f2.id)}</figcaption></figure>`).join("")}</div>
172635
172636
  <h2>Postcards</h2>
172636
172637
  <ul class="log">${plan.postcards.map((c2) => `<li><div class="t">${clock(c2.ts)}</div><div><div>${escapeHtml(c2.message)}</div>${c2.step ? `<div class="s">step ${JOURNEY_STEPS.indexOf(c2.step) + 1} \xB7 ${escapeHtml(c2.step)}</div>` : ""}${c2.by ? `<div class="by">noted by ${escapeHtml(c2.by)}</div>` : ""}${c2.files.length ? `<div class="imgs">${c2.files.map((f2) => img(f2, c2.message)).join("")}</div>` : ""}</div></li>`).join("") || `<li class="muted">No postcards were journaled.</li>`}</ul>
172637
- <footer>Built with himi.${plan.dropped ? ` ${count2(plan.dropped)} pictures were left out to keep this file small.` : ""}</footer>
172638
+ <footer>Built with himi.${plan.dropped ? ` ${count3(plan.dropped)} pictures were left out to keep this file small.` : ""}</footer>
172638
172639
  </div>
172639
172640
  <script>
172640
172641
  (function(){var F=${data};var imgs=document.querySelectorAll(".phone img");if(imgs.length<2)return;var i=0;
@@ -177242,9 +177243,9 @@ function requireCommon() {
177242
177243
  }
177243
177244
  return target;
177244
177245
  }
177245
- function repeat(string7, count2) {
177246
+ function repeat(string7, count3) {
177246
177247
  let result = "";
177247
- for (let cycle = 0; cycle < count2; cycle += 1) {
177248
+ for (let cycle = 0; cycle < count3; cycle += 1) {
177248
177249
  result += string7;
177249
177250
  }
177250
177251
  return result;
@@ -178561,11 +178562,11 @@ function requireLoader() {
178561
178562
  }
178562
178563
  return false;
178563
178564
  }
178564
- function writeFoldedLines(state, count2) {
178565
- if (count2 === 1) {
178565
+ function writeFoldedLines(state, count3) {
178566
+ if (count3 === 1) {
178566
178567
  state.result += " ";
178567
- } else if (count2 > 1) {
178568
- state.result += common2.repeat("\n", count2 - 1);
178568
+ } else if (count3 > 1) {
178569
+ state.result += common2.repeat("\n", count3 - 1);
178569
178570
  }
178570
178571
  }
178571
178572
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
@@ -184838,13 +184839,13 @@ function logicalName(spec) {
184838
184839
  return (isAdoptedEntity(spec) ? spec.base44Name : spec.name) ?? "";
184839
184840
  }
184840
184841
  function exportNames(entities, app2) {
184841
- const count2 = /* @__PURE__ */ new Map();
184842
- for (const e2 of entities) count2.set(logicalName(e2), (count2.get(logicalName(e2)) ?? 0) + 1);
184842
+ const count3 = /* @__PURE__ */ new Map();
184843
+ for (const e2 of entities) count3.set(logicalName(e2), (count3.get(logicalName(e2)) ?? 0) + 1);
184843
184844
  const out2 = /* @__PURE__ */ new Map();
184844
184845
  const taken2 = /* @__PURE__ */ new Set();
184845
184846
  const ordered = [...entities].sort((a3, b3) => physicalEntityName(a3, app2) < physicalEntityName(b3, app2) ? -1 : 1);
184846
184847
  const preferred = (e2) => {
184847
- const n2 = (count2.get(logicalName(e2)) ?? 0) > 1 ? physicalEntityName(e2, app2) : logicalName(e2);
184848
+ const n2 = (count3.get(logicalName(e2)) ?? 0) > 1 ? physicalEntityName(e2, app2) : logicalName(e2);
184848
184849
  return UNEXPORTABLE.has(n2) ? `${n2}Entity` : n2;
184849
184850
  };
184850
184851
  for (const e2 of ordered) {
@@ -186212,8 +186213,8 @@ function readCannedResponses() {
186212
186213
  for (const [k3, v2] of Object.entries(parsed)) {
186213
186214
  if (!k3.startsWith("//")) byKey[k3] = v2;
186214
186215
  }
186215
- const count2 = Object.keys(byKey).length;
186216
- if (count2) return { byKey, count: count2, from: url.pathname.includes("web-renderer") ? "in-repo fixture" : "bundled fixture" };
186216
+ const count3 = Object.keys(byKey).length;
186217
+ if (count3) return { byKey, count: count3, from: url.pathname.includes("web-renderer") ? "in-repo fixture" : "bundled fixture" };
186217
186218
  } catch {
186218
186219
  }
186219
186220
  }
@@ -187595,7 +187596,7 @@ function isAttestationV2(value2) {
187595
187596
  const a3 = value2;
187596
187597
  const coverage2 = a3.coverage;
187597
187598
  const report9 = a3.report;
187598
- return a3.attestation === 2 && typeof a3.runId === "string" && ["himi-test", "himi-render", "himi-shots"].includes(a3.tool) && [a3.app, a3.contentDir, a3.gitDiffHash, a3.gitUntrackedHash, a3.releaseId, a3.releaseHash, a3.selfHash].every((item2) => typeof item2 === "string" && item2.length > 0) && stringRecord(a3.descriptorHashes) && stringRecord(a3.screenshots) && !!coverage2 && [coverage2.screens, coverage2.actionsDispatched, coverage2.uncoveredFns, coverage2.gaps].every((count2) => typeof count2 === "number" && Number.isFinite(count2) && count2 >= 0) && typeof report9?.ok === "boolean" && !!report9.counts && [report9.counts.errors, report9.counts.warnings, report9.counts.gaps].every((count2) => typeof count2 === "number" && Number.isFinite(count2) && count2 >= 0) && (a3.prev === null || typeof a3.prev === "string");
187599
+ return a3.attestation === 2 && typeof a3.runId === "string" && ["himi-test", "himi-render", "himi-shots"].includes(a3.tool) && [a3.app, a3.contentDir, a3.gitDiffHash, a3.gitUntrackedHash, a3.releaseId, a3.releaseHash, a3.selfHash].every((item2) => typeof item2 === "string" && item2.length > 0) && stringRecord(a3.descriptorHashes) && stringRecord(a3.screenshots) && !!coverage2 && [coverage2.screens, coverage2.actionsDispatched, coverage2.uncoveredFns, coverage2.gaps].every((count3) => typeof count3 === "number" && Number.isFinite(count3) && count3 >= 0) && typeof report9?.ok === "boolean" && !!report9.counts && [report9.counts.errors, report9.counts.warnings, report9.counts.gaps].every((count3) => typeof count3 === "number" && Number.isFinite(count3) && count3 >= 0) && (a3.prev === null || typeof a3.prev === "string");
187599
187600
  }
187600
187601
  function readLatestAttestation(contentDir2) {
187601
187602
  try {
@@ -193782,16 +193783,16 @@ async function readDeclarations(page, developerId, appId3, opts = {}) {
193782
193783
  const actioned = await page.evaluate(tabScript("^Actioned"));
193783
193784
  const countText = [...attention.tabs, ...actioned.tabs].map((t2) => /^Need attention \((\d+)\)/.exec(t2)?.[1]).find((n2) => n2 !== void 0);
193784
193785
  const plainTab = [...attention.tabs, ...actioned.tabs].some((t2) => t2 === "Need attention");
193785
- const count2 = countText !== void 0 ? Number(countText) : plainTab ? 0 : void 0;
193786
+ const count3 = countText !== void 0 ? Number(countText) : plainTab ? 0 : void 0;
193786
193787
  const attentionItems = attention.found ? parseDeclarationList(attention.text ?? "") : [];
193787
193788
  if (!attention.found)
193788
193789
  notes.push(`no Need attention tab (tabs: ${attention.tabs.join(", ") || "none"})`);
193789
193790
  if (!actioned.found)
193790
193791
  notes.push(`no Actioned tab (tabs: ${actioned.tabs.join(", ") || "none"})`);
193791
- const complete = count2 !== void 0 && attentionItems.length === count2;
193792
- if (count2 !== void 0 && !complete)
193793
- notes.push(`the Need attention tab says ${count2}, ${attentionItems.length} recognised: a declaration this tool doesn't know may be listed`);
193794
- return { needAttention: { ...count2 === void 0 ? {} : { count: count2 }, items: attentionItems }, actioned: { items: actioned.found ? parseDeclarationList(actioned.text ?? "") : [] }, complete, notes };
193792
+ const complete = count3 !== void 0 && attentionItems.length === count3;
193793
+ if (count3 !== void 0 && !complete)
193794
+ notes.push(`the Need attention tab says ${count3}, ${attentionItems.length} recognised: a declaration this tool doesn't know may be listed`);
193795
+ return { needAttention: { ...count3 === void 0 ? {} : { count: count3 }, items: attentionItems }, actioned: { items: actioned.found ? parseDeclarationList(actioned.text ?? "") : [] }, complete, notes };
193795
193796
  }
193796
193797
  function planDeclaration(form, answer) {
193797
193798
  const raw = answer.trim();
@@ -196379,10 +196380,10 @@ function readZip2(buf) {
196379
196380
  throw new ZipError("ZIP64 archives (over 4 GB or 65535 entries) aren't supported");
196380
196381
  const disk = buf.readUInt16LE(end2 + 4);
196381
196382
  const cdDisk = buf.readUInt16LE(end2 + 6);
196382
- const count2 = buf.readUInt16LE(end2 + 10);
196383
+ const count3 = buf.readUInt16LE(end2 + 10);
196383
196384
  const cdSize = buf.readUInt32LE(end2 + 12);
196384
196385
  const cdOffset = buf.readUInt32LE(end2 + 16);
196385
- if (disk !== 0 || cdDisk !== 0 || buf.readUInt16LE(end2 + 8) !== count2)
196386
+ if (disk !== 0 || cdDisk !== 0 || buf.readUInt16LE(end2 + 8) !== count3)
196386
196387
  throw new ZipError("multi-disk zip archives aren't supported");
196387
196388
  if (cdOffset + cdSize > end2)
196388
196389
  throw new ZipError("zip central directory is out of bounds");
@@ -196390,7 +196391,7 @@ function readZip2(buf) {
196390
196391
  const entries = [];
196391
196392
  const seen = /* @__PURE__ */ new Set();
196392
196393
  let p2 = cdOffset;
196393
- for (let n2 = 0; n2 < count2; n2++) {
196394
+ for (let n2 = 0; n2 < count3; n2++) {
196394
196395
  if (p2 + 46 > end2 || buf.readUInt32LE(p2) !== CENTRAL)
196395
196396
  throw new ZipError("zip central directory is damaged");
196396
196397
  const flags = buf.readUInt16LE(p2 + 8);
@@ -197960,13 +197961,13 @@ function edgeColor(image, edge) {
197960
197961
  let most = 0;
197961
197962
  let total = 0;
197962
197963
  const sum = [0, 0, 0];
197963
- for (const [key4, count2] of counts) {
197964
- if (count2 > most)
197965
- [best, most] = [key4, count2];
197966
- total += count2;
197967
- sum[0] += (key4 >> 16 & 255) * count2;
197968
- sum[1] += (key4 >> 8 & 255) * count2;
197969
- sum[2] += (key4 & 255) * count2;
197964
+ for (const [key4, count3] of counts) {
197965
+ if (count3 > most)
197966
+ [best, most] = [key4, count3];
197967
+ total += count3;
197968
+ sum[0] += (key4 >> 16 & 255) * count3;
197969
+ sum[1] += (key4 >> 8 & 255) * count3;
197970
+ sum[2] += (key4 & 255) * count3;
197970
197971
  }
197971
197972
  if (total && most * 4 < total)
197972
197973
  return [Math.round(sum[0] / total), Math.round(sum[1] / total), Math.round(sum[2] / total)];
@@ -198689,7 +198690,7 @@ function verifyJar(input) {
198689
198690
  throw new JarError(`the .SF's digest of the manifest section for ${name} doesn't match`);
198690
198691
  manifestByName.set(name, section3.attrs);
198691
198692
  }
198692
- let count2 = 0;
198693
+ let count3 = 0;
198693
198694
  for (const e2 of entries) {
198694
198695
  if (e2.name.endsWith("/") || isSignatureFile(e2.name))
198695
198696
  continue;
@@ -198698,12 +198699,12 @@ function verifyJar(input) {
198698
198699
  throw new JarError(`${e2.name} isn't signed`);
198699
198700
  if (expected !== b64(entryData(e2)))
198700
198701
  throw new JarError(`${e2.name} doesn't match its digest`);
198701
- count2++;
198702
+ count3++;
198702
198703
  }
198703
198704
  for (const name of manifestByName.keys())
198704
198705
  if (!byName3.has(name))
198705
198706
  throw new JarError(`the manifest names ${name}, which isn't in the zip`);
198706
- return { signer: signer2, entries: count2, signatureFile: sfName };
198707
+ return { signer: signer2, entries: count3, signatureFile: sfName };
198707
198708
  }
198708
198709
  var X509Certificate4, createHash49, createPublicKey4, sign3, verify, JarError, CRLF, CREATED_BY, b64;
198709
198710
  var init_jar = __esm({
@@ -200789,11 +200790,11 @@ var init_actions_console = __esm({
200789
200790
  if ((publicPending === void 0 || publicPending.length) && !input.productionOwner) {
200790
200791
  throw refuse6(`productionOwnerApprovalId is required: sending for review now also sends ${goingPublic}, which needs the owner's recorded yes, as promoting to production does`);
200791
200792
  }
200792
- const count2 = seen.overview.changes === null ? "the app's pending changes" : `${seen.overview.changes} change${seen.overview.changes === 1 ? "" : "s"}`;
200793
+ const count3 = seen.overview.changes === null ? "the app's pending changes" : `${seen.overview.changes} change${seen.overview.changes === 1 ? "" : "s"}`;
200793
200794
  return {
200794
200795
  changes: [
200795
200796
  ...hasDraft ? [change("update", `tracks/${input.track}/releases`, `confirm the draft release on ${where} (Edit release, Next, Save)`)] : [],
200796
- change("create", `review/${input.packageName}`, `send ${count2} to Google for review from the Publishing overview (Play Console app ${input.appId}, ${input.packageName})`)
200797
+ change("create", `review/${input.packageName}`, `send ${count3} to Google for review from the Publishing overview (Play Console app ${input.appId}, ${input.packageName})`)
200797
200798
  ],
200798
200799
  sideEffects: [
200799
200800
  input.production ? `Google reviews the changes (typically within 7 days); once approved the production release reaches users on Google Play, on owner approval ${input.productionOwner}` : "Google reviews the changes (typically within 7 days); once approved the closed test reaches its testers",
@@ -201930,6 +201931,98 @@ var init_text = __esm({
201930
201931
  }
201931
201932
  });
201932
201933
 
201934
+ // ../../node_modules/@wix/asc-core/dist/store-record/pool.js
201935
+ function poolStatusOf(input) {
201936
+ if (!isPlain(input))
201937
+ throw new Error("pool: expected a JSON object");
201938
+ const p2 = isPlain(input.pool) ? input.pool : input;
201939
+ const status2 = p2.status;
201940
+ if (typeof status2 !== "string" || !POOL_STATUSES.includes(status2))
201941
+ throw new Error(`pool: status must be one of ${POOL_STATUSES.join(", ")}, not ${JSON.stringify(status2)}`);
201942
+ const startedAt = p2.startedAt;
201943
+ if (typeof startedAt !== "string" || Number.isNaN(Date.parse(startedAt)))
201944
+ throw new Error(`pool: startedAt must be a date-time, not ${JSON.stringify(startedAt)}`);
201945
+ if (p2.source !== void 0 && p2.source !== "himi-serve")
201946
+ throw new Error(`pool: source must be "himi-serve", not ${JSON.stringify(p2.source)}`);
201947
+ if (p2.groupOnTrack !== void 0 && typeof p2.groupOnTrack !== "boolean")
201948
+ throw new Error("pool: groupOnTrack must be true or false");
201949
+ return {
201950
+ status: status2,
201951
+ installed: count2(p2.installed, "installed"),
201952
+ of: p2.of === void 0 ? POOL_TESTERS : count2(p2.of, "of"),
201953
+ startedAt,
201954
+ day: count2(p2.day, "day"),
201955
+ ...p2.groupOnTrack !== void 0 ? { groupOnTrack: p2.groupOnTrack } : {},
201956
+ source: "himi-serve"
201957
+ };
201958
+ }
201959
+ async function writePoolStatus(record5, appKey, pool2, opts = {}) {
201960
+ const checked = poolStatusOf(pool2);
201961
+ const at2 = opts.at ?? (/* @__PURE__ */ new Date()).toISOString();
201962
+ if (Number.isNaN(Date.parse(at2)))
201963
+ throw new Error(`pool: at must be a date-time, not ${JSON.stringify(at2)}`);
201964
+ return record5.updateSlot(appKey, CLOSED_TEST_PATH, CLOSED_TEST_SCHEMA, "live", (prev) => ({ ...prev ?? {}, pool: checked }), { at: at2, source: "himi-serve", read: POOL_READ });
201965
+ }
201966
+ function poolOf(closedTestFile) {
201967
+ const raw = isPlain(closedTestFile?.live?.data) ? closedTestFile.live.data.pool : void 0;
201968
+ try {
201969
+ return raw === void 0 ? void 0 : poolStatusOf(raw);
201970
+ } catch {
201971
+ return void 0;
201972
+ }
201973
+ }
201974
+ function closedTestReadiness(closedTestFile, productionAccessFile, now = Date.now()) {
201975
+ const nowMs = typeof now === "number" ? now : now.getTime();
201976
+ const reasons = [];
201977
+ const pool2 = poolOf(closedTestFile);
201978
+ const day = pool2?.day ?? 0;
201979
+ const installed3 = pool2?.installed ?? 0;
201980
+ const of2 = pool2?.of ?? POOL_TESTERS;
201981
+ if (!closedTestFile)
201982
+ reasons.push("no closed-test record (google/closed-test.json)");
201983
+ else if (!pool2)
201984
+ reasons.push("no pool status in the closed-test record (gplay-node record pool writes it)");
201985
+ else {
201986
+ if (day < POOL_DAYS)
201987
+ reasons.push(`day ${day} of ${POOL_DAYS}`);
201988
+ if (installed3 < POOL_TESTERS)
201989
+ reasons.push(`${installed3} of ${POOL_TESTERS} phones installed`);
201990
+ if (pool2.status === "stuck" || pool2.status === "failed")
201991
+ reasons.push(`pool ${pool2.status}`);
201992
+ }
201993
+ const access3 = isPlain(productionAccessFile?.live?.data) ? productionAccessFile.live.data : void 0;
201994
+ if (!productionAccessFile)
201995
+ reasons.push("no production access record (google/production-access.json; refresh --part policy reads it)");
201996
+ else if (!access3)
201997
+ reasons.push("the production access record has no live read (refresh --part policy reads it)");
201998
+ else if (access3.eligible !== true && access3.applied !== true && access3.granted !== true) {
201999
+ const at2 = productionAccessFile.live.fetchedAt;
202000
+ const hours = Math.max(0, Math.floor((nowMs - Date.parse(at2)) / 36e5));
202001
+ reasons.push(`the production access card does not say eligible (read ${Number.isNaN(hours) ? "at an unknown time" : `${hours}h ago`})`);
202002
+ }
202003
+ return { done: reasons.length === 0, day, installed: installed3, of: of2, reasons };
202004
+ }
202005
+ var POOL_STATUSES, POOL_TESTERS, POOL_DAYS, CLOSED_TEST_PATH, CLOSED_TEST_SCHEMA, PRODUCTION_ACCESS_PATH2, POOL_READ, isPlain, count2;
202006
+ var init_pool = __esm({
202007
+ "../../node_modules/@wix/asc-core/dist/store-record/pool.js"() {
202008
+ init_define_HHP_CATALOG();
202009
+ POOL_STATUSES = ["adding", "active", "ending", "archived", "stuck", "failed"];
202010
+ POOL_TESTERS = 12;
202011
+ POOL_DAYS = 14;
202012
+ CLOSED_TEST_PATH = "google/closed-test.json";
202013
+ CLOSED_TEST_SCHEMA = "google.closed-test@1";
202014
+ PRODUCTION_ACCESS_PATH2 = "google/production-access.json";
202015
+ POOL_READ = "pool";
202016
+ isPlain = (v2) => !!v2 && typeof v2 === "object" && !Array.isArray(v2);
202017
+ count2 = (v2, name) => {
202018
+ const n2 = typeof v2 === "string" && v2.trim() !== "" ? Number(v2) : v2;
202019
+ if (typeof n2 !== "number" || !Number.isInteger(n2) || n2 < 0)
202020
+ throw new Error(`pool: ${name} must be a whole number of 0 or more, not ${JSON.stringify(v2)}`);
202021
+ return n2;
202022
+ };
202023
+ }
202024
+ });
202025
+
201933
202026
  // ../../node_modules/@wix/asc-core/dist/store-record/sync.js
201934
202027
  import * as __ascBuiltin032 from "node:crypto";
201935
202028
  function describe(e2) {
@@ -202559,7 +202652,14 @@ var init_sync = __esm({
202559
202652
  var store_record_exports = {};
202560
202653
  __export(store_record_exports, {
202561
202654
  BLOB_TYPES: () => BLOB_TYPES,
202655
+ CLOSED_TEST_PATH: () => CLOSED_TEST_PATH,
202656
+ CLOSED_TEST_SCHEMA: () => CLOSED_TEST_SCHEMA,
202562
202657
  LIVE_PARTS: () => LIVE_PARTS,
202658
+ POOL_DAYS: () => POOL_DAYS,
202659
+ POOL_READ: () => POOL_READ,
202660
+ POOL_STATUSES: () => POOL_STATUSES,
202661
+ POOL_TESTERS: () => POOL_TESTERS,
202662
+ PRODUCTION_ACCESS_PATH: () => PRODUCTION_ACCESS_PATH2,
202563
202663
  SECRET_KEY: () => SECRET_KEY,
202564
202664
  SUPPORTED_MAJOR: () => SUPPORTED_MAJOR,
202565
202665
  SYNC_LIMITS: () => SYNC_LIMITS,
@@ -202567,6 +202667,7 @@ __export(store_record_exports, {
202567
202667
  ago: () => ago,
202568
202668
  appKeyOf: () => appKeyOf,
202569
202669
  canonicalJson: () => canonicalJson3,
202670
+ closedTestReadiness: () => closedTestReadiness,
202570
202671
  drift: () => drift,
202571
202672
  driftViewOf: () => driftViewOf,
202572
202673
  envelopeProblem: () => envelopeProblem,
@@ -202577,6 +202678,8 @@ __export(store_record_exports, {
202577
202678
  mergeLive: () => mergeLive,
202578
202679
  mergeOlderUnder: () => mergeOlderUnder,
202579
202680
  mergeRecordFiles: () => mergeRecordFiles,
202681
+ poolOf: () => poolOf,
202682
+ poolStatusOf: () => poolStatusOf,
202580
202683
  readKeyFor: () => readKeyFor,
202581
202684
  recordFileSha256: () => recordFileSha256,
202582
202685
  recordRoot: () => recordRoot,
@@ -202593,7 +202696,8 @@ __export(store_record_exports, {
202593
202696
  stripSecrets: () => stripSecrets,
202594
202697
  syncRecord: () => syncRecord,
202595
202698
  textDigest: () => textDigest,
202596
- writeKeyFor: () => writeKeyFor
202699
+ writeKeyFor: () => writeKeyFor,
202700
+ writePoolStatus: () => writePoolStatus
202597
202701
  });
202598
202702
  import * as __ascBuiltin033 from "node:crypto";
202599
202703
  import * as __ascBuiltin123 from "node:fs/promises";
@@ -202601,14 +202705,14 @@ import * as __ascBuiltin211 from "node:path";
202601
202705
  function unionById(older, newer2) {
202602
202706
  const seen = new Set(newer2.map(itemId2));
202603
202707
  const all = [...newer2, ...older.filter((x2) => !seen.has(itemId2(x2)))];
202604
- if (all.every((x2) => isPlain(x2) && typeof x2.at === "string"))
202708
+ if (all.every((x2) => isPlain2(x2) && typeof x2.at === "string"))
202605
202709
  return [...all].sort((x2, y2) => timeOf2(x2.at) - timeOf2(y2.at));
202606
202710
  if (all.every((x2) => typeof x2 === "string"))
202607
202711
  return [...all].sort();
202608
202712
  return all;
202609
202713
  }
202610
202714
  function mergeOlderUnder(older, newer2, collections2, deep = []) {
202611
- if (!isPlain(newer2) || !isPlain(older) || newer2.deleted === true)
202715
+ if (!isPlain2(newer2) || !isPlain2(older) || newer2.deleted === true)
202612
202716
  return newer2;
202613
202717
  const out2 = { ...older, ...newer2 };
202614
202718
  for (const k3 of /* @__PURE__ */ new Set([...collections2, ...deep])) {
@@ -202616,13 +202720,13 @@ function mergeOlderUnder(older, newer2, collections2, deep = []) {
202616
202720
  const b3 = newer2[k3];
202617
202721
  if (Array.isArray(a3) && Array.isArray(b3))
202618
202722
  out2[k3] = unionById(a3, b3);
202619
- else if (isPlain(a3) && isPlain(b3)) {
202723
+ else if (isPlain2(a3) && isPlain2(b3)) {
202620
202724
  const merged = { ...a3, ...b3 };
202621
202725
  if (deep.includes(k3)) {
202622
202726
  for (const id of Object.keys(b3)) {
202623
202727
  const ea2 = a3[id];
202624
202728
  const eb = b3[id];
202625
- if (!isPlain(ea2) || !isPlain(eb) || eb.deleted === true)
202729
+ if (!isPlain2(ea2) || !isPlain2(eb) || eb.deleted === true)
202626
202730
  continue;
202627
202731
  const entry = { ...ea2, ...eb };
202628
202732
  for (const f2 of Object.keys(eb))
@@ -202688,7 +202792,7 @@ async function readKeyFor(record5, oldKey, appKey) {
202688
202792
  const claimed = Object.entries(await record5.aliases()).some(([k3, v2]) => v2 === target && k3.startsWith(kind) && k3 !== oldKey);
202689
202793
  return claimed ? oldKey : target;
202690
202794
  }
202691
- var createHash55, chmod2, mkdir15, readdir6, readFile14, rename5, stat9, unlink4, join112, LOGS2, STORES, INDEX_SCHEMA, SYNC_STATE_SCHEMA, SHA256_RE2, isNotFound, resourceOf2, timeOf2, ITEM_IDS, isPlain, itemId2, OLD_KEY2, MAX_HOPS, StoreRecord, kindOf;
202795
+ var createHash55, chmod2, mkdir15, readdir6, readFile14, rename5, stat9, unlink4, join112, LOGS2, STORES, INDEX_SCHEMA, SYNC_STATE_SCHEMA, SHA256_RE2, isNotFound, resourceOf2, timeOf2, ITEM_IDS, isPlain2, itemId2, OLD_KEY2, MAX_HOPS, StoreRecord, kindOf;
202692
202796
  var init_store_record = __esm({
202693
202797
  "../../node_modules/@wix/asc-core/dist/store-record/index.js"() {
202694
202798
  init_define_HHP_CATALOG();
@@ -202706,6 +202810,7 @@ var init_store_record = __esm({
202706
202810
  init_blobs();
202707
202811
  init_secrets2();
202708
202812
  init_text();
202813
+ init_pool();
202709
202814
  init_canonical();
202710
202815
  init_sync();
202711
202816
  ({ createHash: createHash55 } = __ascBuiltin033);
@@ -202720,9 +202825,9 @@ var init_store_record = __esm({
202720
202825
  resourceOf2 = (schema2) => schema2.replace(/@\d+$/, "");
202721
202826
  timeOf2 = (iso) => iso === void 0 ? Number.NEGATIVE_INFINITY : Date.parse(iso) || Number.NEGATIVE_INFINITY;
202722
202827
  ITEM_IDS = ["jobId", "id", "locale", "language", "territory", "productId", "groupId", "email", "name"];
202723
- isPlain = (v2) => !!v2 && typeof v2 === "object" && !Array.isArray(v2);
202828
+ isPlain2 = (v2) => !!v2 && typeof v2 === "object" && !Array.isArray(v2);
202724
202829
  itemId2 = (v2) => {
202725
- if (isPlain(v2)) {
202830
+ if (isPlain2(v2)) {
202726
202831
  for (const k3 of ITEM_IDS)
202727
202832
  if (typeof v2[k3] === "string" || typeof v2[k3] === "number")
202728
202833
  return `${k3}:${String(v2[k3])}`;
@@ -202814,9 +202919,9 @@ var init_store_record = __esm({
202814
202919
  if (older === "replace" || prev === void 0 || prev === null)
202815
202920
  return { ...skip, outcome: "skipped" };
202816
202921
  const computed = asJson(compute(prev));
202817
- if (older.sameAs !== void 0 && isPlain(prev) && prev[older.sameAs] !== void 0) {
202922
+ if (older.sameAs !== void 0 && isPlain2(prev) && prev[older.sameAs] !== void 0) {
202818
202923
  const own6 = asJson(compute(void 0));
202819
- if (!isPlain(own6) || !sameData(own6[older.sameAs], prev[older.sameAs]))
202924
+ if (!isPlain2(own6) || !sameData(own6[older.sameAs], prev[older.sameAs]))
202820
202925
  return { ...skip, outcome: "skipped" };
202821
202926
  }
202822
202927
  const merged = asJson(mergeOlderUnder(computed, prev, older.merge, older.deep ?? []));
@@ -205646,7 +205751,7 @@ function parseBinary(b3) {
205646
205751
  throw badPlist("binary plist's top object is out of range");
205647
205752
  if (table + objectCount * BigInt(offsetSize) > BigInt(trailer))
205648
205753
  throw badPlist("binary plist's offset table is outside the file");
205649
- const count2 = Number(objectCount);
205754
+ const count3 = Number(objectCount);
205650
205755
  const tableAt = Number(table);
205651
205756
  let budget = MAX_OBJECTS;
205652
205757
  const active2 = /* @__PURE__ */ new Set();
@@ -205673,7 +205778,7 @@ function parseBinary(b3) {
205673
205778
  return b3.readUIntBE(at2, refSize);
205674
205779
  };
205675
205780
  const read2 = (index, depth) => {
205676
- if (index >= count2)
205781
+ if (index >= count3)
205677
205782
  throw badPlist("binary plist has a reference out of range");
205678
205783
  if (depth >= MAX_DEPTH)
205679
205784
  throw badPlist(`nested too deep (over ${MAX_DEPTH})`);
@@ -215250,10 +215355,10 @@ function lengthChecks(text30) {
215250
215355
  return checks;
215251
215356
  }
215252
215357
  function summarize4(checks, strict) {
215253
- const count2 = (s5) => checks.filter((c2) => c2.severity === s5).length;
215254
- const errors = count2("error");
215255
- const warnings = count2("warning");
215256
- return { errors, warnings, infos: count2("info"), blocking: errors + (strict ? warnings : 0) };
215358
+ const count3 = (s5) => checks.filter((c2) => c2.severity === s5).length;
215359
+ const errors = count3("error");
215360
+ const warnings = count3("warning");
215361
+ return { errors, warnings, infos: count3("info"), blocking: errors + (strict ? warnings : 0) };
215257
215362
  }
215258
215363
  var SPACE, phrase, marker2, OTHER_STORES, CONTENT_RULES, TOKEN, LABELS, COPYRIGHT_YEAR, AGE_RATING_BOOLEANS, AGE_RATING_LEVELS, LEVEL_VALUES, AGE_RATING_OPTIONAL, AGE_RATING_FIX, REQUIRED_IPAD, RANK3, ValidateApi;
215259
215364
  var init_validate2 = __esm({
@@ -234852,6 +234957,29 @@ async function readRecord3(ref, app2, clients) {
234852
234957
  return { drift: [], view: { source: "live", sourceNote: "read live from Google: the store record could not be read (see record.error).", record: { ...key4 ? { appKey: key4 } : {}, error: scrubSecrets(e2?.message ?? String(e2)) } } };
234853
234958
  }
234854
234959
  }
234960
+ async function readPool(ref, app2, nowMs) {
234961
+ try {
234962
+ const record5 = new StoreRecord(ref.root);
234963
+ const key4 = await recordReadKey(record5, app2.packageName, appKeyFor(app2, ref));
234964
+ const closed = await record5.read(key4, CLOSED_TEST_PATH);
234965
+ const pool2 = poolOf(closed);
234966
+ if (!pool2)
234967
+ return void 0;
234968
+ const access3 = await record5.read(key4, PRODUCTION_ACCESS_PATH2);
234969
+ const asOf = closed.live.fetched?.[POOL_READ] ?? closed.live.fetchedAt;
234970
+ const readiness2 = closedTestReadiness(closed, access3, nowMs);
234971
+ const ended = ["ending", "archived"].includes(pool2.status);
234972
+ const parts = [`pool: ${pool2.installed}/${pool2.of} phones, day ${pool2.day} of ${POOL_DAYS} (as of ${ago(asOf, nowMs)})`];
234973
+ if (pool2.status !== "active")
234974
+ parts.push(`pool ${pool2.status}`);
234975
+ if (ended && pool2.groupOnTrack)
234976
+ parts.push("group still on track: the owner removes the pool's tester group from the closed track");
234977
+ parts.push(readiness2.done ? "closed test done: 14 days at 12 or more phones and the production access card says eligible" : `closed test not done: ${readiness2.reasons.join("; ")}`);
234978
+ return { ...pool2, asOf, age: ago(asOf, nowMs), readiness: readiness2, line: parts.join("; ") };
234979
+ } catch (e2) {
234980
+ return { error: scrubSecrets(e2?.message ?? String(e2)) };
234981
+ }
234982
+ }
234855
234983
  function nothingLeft(r3) {
234856
234984
  if (!r3)
234857
234985
  return "Nothing is left to do.";
@@ -235022,6 +235150,7 @@ var init_store_android = __esm({
235022
235150
  }
235023
235151
  gaps.push(...todo(steps).map((s5) => `${s5.id}: ${s5.title}`));
235024
235152
  const complete = !error && !todo(steps).length && !signing && !fromRecord?.stale;
235153
+ const pool2 = ref ? await readPool(ref, app2, nowOf(clients)) : void 0;
235025
235154
  return ok2({
235026
235155
  platform: "android",
235027
235156
  packageName: app2.packageName,
@@ -235034,7 +235163,8 @@ var init_store_android = __esm({
235034
235163
  ...error ? { error } : {},
235035
235164
  complete,
235036
235165
  ...fromRecord ? fromRecord.view : {},
235037
- next: `${driftNote(fromRecord?.drift ?? [])}${error ? `This status is incomplete: Google could not be read (${error}).` : `${staleNote(fromRecord)}${signing ? "The host's signing path does not fit this package: fix the app's facts before store_plan." : !todo(steps).length ? nothingLeft(fromRecord) : "store_plan plans what it can of these as jobs; the rest is the owner's."}`}`
235166
+ ...pool2 ? { pool: pool2 } : {},
235167
+ next: `${driftNote(fromRecord?.drift ?? [])}${typeof pool2?.line === "string" ? `${pool2.line}. ` : ""}${error ? `This status is incomplete: Google could not be read (${error}).` : `${staleNote(fromRecord)}${signing ? "The host's signing path does not fit this package: fix the app's facts before store_plan." : !todo(steps).length ? nothingLeft(fromRecord) : "store_plan plans what it can of these as jobs; the rest is the owner's."}`}`
235038
235168
  });
235039
235169
  },
235040
235170
  async plan(google, ctx, appRef2, ref) {
@@ -235275,7 +235405,7 @@ async function recordAppleApplied(ctx, host, jobs) {
235275
235405
  return {};
235276
235406
  const warnings = [];
235277
235407
  let files = 0;
235278
- let count2 = 0;
235408
+ let count3 = 0;
235279
235409
  try {
235280
235410
  const record5 = new StoreRecord(ref.root);
235281
235411
  const api4 = await ctx.api({ readOnly: true });
@@ -235305,7 +235435,7 @@ async function recordAppleApplied(ctx, host, jobs) {
235305
235435
  }
235306
235436
  const out2 = await recordAppleJob(record5, job, { api: api4, ...now ? { now: () => new Date(now()) } : {}, ...appKey ? { appKey } : {} });
235307
235437
  files += out2.files.length;
235308
- count2++;
235438
+ count3++;
235309
235439
  warnings.push(...out2.warnings.map((w2) => `${job.id}: ${w2}`));
235310
235440
  } catch (e2) {
235311
235441
  warnings.push(`${label4}: ${e2?.message ?? String(e2)}`);
@@ -235314,7 +235444,7 @@ async function recordAppleApplied(ctx, host, jobs) {
235314
235444
  } catch (e2) {
235315
235445
  warnings.push(e2?.message ?? String(e2));
235316
235446
  }
235317
- return { ...count2 ? { record: { jobs: count2, files } } : {}, ...warnings.length ? { recordWarning: scrubSecrets(warnings.join("; ")) } : {} };
235447
+ return { ...count3 ? { record: { jobs: count3, files } } : {}, ...warnings.length ? { recordWarning: scrubSecrets(warnings.join("; ")) } : {} };
235318
235448
  }
235319
235449
  function connectView(r3) {
235320
235450
  if (r3.status !== "connected")
@@ -240561,16 +240691,16 @@ function authoredControls(raw) {
240561
240691
  const controls = /* @__PURE__ */ new Set();
240562
240692
  const byScreen = /* @__PURE__ */ new Map();
240563
240693
  const inviteDisabled = /* @__PURE__ */ new Set();
240564
- let count2 = 0;
240694
+ let count3 = 0;
240565
240695
  for (const [screenId, rawScreen] of Object.entries(screens)) {
240566
240696
  const screen = object11(rawScreen);
240567
240697
  const headerId = typeof screen?.headerId === "string" ? screen.headerId : void 0;
240568
240698
  const screenControls = /* @__PURE__ */ new Set();
240569
240699
  byScreen.set(screenId, screenControls);
240570
240700
  if (!headerId) continue;
240571
- count2++;
240701
+ count3++;
240572
240702
  const header2 = object11(headers2[headerId]);
240573
- if (!header2) return { controls, byScreen, inviteDisabled, screens: count2, error: `Authored header ${headerId} is missing for screen ${screenId}.` };
240703
+ if (!header2) return { controls, byScreen, inviteDisabled, screens: count3, error: `Authored header ${headerId} is missing for screen ${screenId}.` };
240574
240704
  const settings = object11(header2?.settings) ?? header2;
240575
240705
  const topBarSettings = object11(settings?.topBarSettings);
240576
240706
  const choice = (modern, legacy) => {
@@ -240583,7 +240713,7 @@ function authoredControls(raw) {
240583
240713
  const showCart = choice("showCartIcon", "showCartIconInTopBar");
240584
240714
  const showChat = choice("showChatIcon", "showChatIconInTopBar");
240585
240715
  if (showCart === void 0 || showChat === void 0) {
240586
- return { controls, byScreen, inviteDisabled, screens: count2, error: `Authored cart/chat settings are invalid for screen ${screenId} (header ${headerId}).` };
240716
+ return { controls, byScreen, inviteDisabled, screens: count3, error: `Authored cart/chat settings are invalid for screen ${screenId} (header ${headerId}).` };
240587
240717
  }
240588
240718
  if (showCart) {
240589
240719
  controls.add("cart");
@@ -240599,8 +240729,8 @@ function authoredControls(raw) {
240599
240729
  screenControls.add("invite");
240600
240730
  }
240601
240731
  }
240602
- if (!count2) return { controls, byScreen, inviteDisabled, screens: 0, error: "No screen references an authored header in raw-structure.json." };
240603
- return { controls, byScreen, inviteDisabled, screens: count2 };
240732
+ if (!count3) return { controls, byScreen, inviteDisabled, screens: 0, error: "No screen references an authored header in raw-structure.json." };
240733
+ return { controls, byScreen, inviteDisabled, screens: count3 };
240604
240734
  }
240605
240735
  function property(node3, name) {
240606
240736
  const item2 = node3?.properties.find((candidate) => ts19.isPropertyAssignment(candidate) && ((ts19.isIdentifier(candidate.name) || ts19.isStringLiteral(candidate.name)) && candidate.name.text === name));
@@ -242875,9 +243005,9 @@ function planDetail(p2) {
242875
243005
  const pricing = p2.pricing && typeof p2.pricing === "object" ? p2.pricing : void 0;
242876
243006
  const sub = pricing?.subscription && typeof pricing.subscription === "object" ? pricing.subscription : void 0;
242877
243007
  const cycleDur = sub?.cycleDuration && typeof sub.cycleDuration === "object" ? sub.cycleDuration : void 0;
242878
- const count2 = cycleDur?.count;
243008
+ const count3 = cycleDur?.count;
242879
243009
  const unit = str12(cycleDur?.unit ?? cycleDur?.period).toLowerCase();
242880
- const cycle = typeof count2 === "number" && unit ? `${count2} ${unit}` : str12(sub?.cycle ?? pricing?.cycle ?? p2.period ?? p2.billingPeriod);
243010
+ const cycle = typeof count3 === "number" && unit ? `${count3} ${unit}` : str12(sub?.cycle ?? pricing?.cycle ?? p2.period ?? p2.billingPeriod);
242881
243011
  const perks = asArr(p2.perks ?? p2.benefits).map((x2) => str12(x2) || str12(x2.name)).filter(Boolean);
242882
243012
  const bits = [cycle, perks.slice(0, 4).join("; ")].filter(Boolean);
242883
243013
  return bits.length ? bits.join(" \xB7 ") : void 0;
@@ -248335,52 +248465,52 @@ var init_preview_assets_generated = __esm({
248335
248465
  init_define_HHP_CATALOG();
248336
248466
  init_preview_assets_format();
248337
248467
  PREVIEW_ASSET_MANIFEST = [
248338
- { key: "assets/DashboardHost-LgDNXKI8.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "fcd15600a4c3d0ed9865f2af6fd6531ecb5239e87ecf2022982721e48b7a882b" },
248339
- { key: "assets/DevDrawer-BvW8wbNh.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "a5f7207fd35f83030743c2d8d7fd4c826a391ca97fbf6cb9970279e904d03f89" },
248340
- { key: "assets/IdiomCompare-BK-NvI4T.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "a6350980d3181b6c86b65beddd6eb30ca8f352b22bf670d1b2828280b6fddab9" },
248341
- { key: "assets/LightboxViewer-Bl0Q0xx-.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "264d261a9751378771959b6f417802249179c922bdb710cfb238ed63f9e52117" },
248342
- { key: "assets/OfflineReadingBar-LeE7yo2z.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "c34a0d85c0685530b074d48f3bca16d24bf013d9b7912ad4aef9cd8901a14141" },
248343
- { key: "assets/PhonePreviewControl-C51ivahD.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "842982554430cf7727d0527c4ee8c95152d3e228adc89bdda2b3bb8dbfa73f45" },
248344
- { key: "assets/SchemeCompare-Dd-R5EeP.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "17b32e8d7f64d6ceb7ac38637b95927d9bcfb5327b8f0d386d2c6054b577165a" },
248345
- { key: "assets/WixFrogTelemetrySink-Cf9QfC-_.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "a44ac6529114a0e8322988b34988858512db248482854fe563c7b607395649a8" },
248468
+ { key: "assets/DashboardHost-BIjuaHZW.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "5566d9b1291878aa6275679bc992df770c469da7769ee16ce39b4de1b74cb156" },
248469
+ { key: "assets/DevDrawer-CpdaXDvo.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "bf2d555c43ba98746c6cfbcd4d1ecb3c31476c58f9e38d947ca0bf4b9f92b785" },
248470
+ { key: "assets/IdiomCompare-Ndzcpfft.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "461e80b00755e65bfb7b4094cc4851ed1d0539ab06d2064e1cee8a23a6ae15f5" },
248471
+ { key: "assets/LightboxViewer-BFRHHpbE.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "c2af7cb8898c3c3e183d2335393d90c4478b72d63b7324c51741294b70ea9efe" },
248472
+ { key: "assets/OfflineReadingBar-DcUqa3Xo.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "17f64a7f36408de841ddc0372ae49f6aff0545321d993e3013af86bb7655086a" },
248473
+ { key: "assets/PhonePreviewControl-DeO5XlVp.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "23b02ceb4bbd02463a6e16d36289db6de45ab23222400de54c5ab6fa83d264a0" },
248474
+ { key: "assets/SchemeCompare-B6fHM_i-.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "f0f8bf42615171cab196c4c89e57053de0876dca83bfa63ab9e0205fe0b7ef82" },
248475
+ { key: "assets/WixFrogTelemetrySink-D0htg7PN.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "3882bbeeed635b081fd341bee54a230106390e3c42e7aef7fcb58c7774dc3edc" },
248346
248476
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
248347
248477
  { key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
248348
- { key: "assets/catalogFontFaces-CjGvsXZi.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "5be6c3c16757ed4f40463ba7ceaf59161c1fe983ac6f7b0dd796ce70630ea393" },
248478
+ { key: "assets/catalogFontFaces-BR50glXK.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "f3a90c5c0cf18de5ae27a99b73d7d98b8f713e02500baa101c28005e87265246" },
248349
248479
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
248350
- { key: "assets/files-transfer-CygHWCtU.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "ec372cbb0e5c22c64bab012efebe651788f44a46655a190269e6fb8f4478106b" },
248480
+ { key: "assets/files-transfer-CzFnmyDL.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "109538cecaa63140fa0172b04713b6ede9d35066efc32be6d367e640c179d8a4" },
248351
248481
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
248352
- { key: "assets/frogApiRules-KhYWTN0E.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "f410e02e8bc7e9bda4added40a8fc35a48554c3347290e70ee7218790ab89710" },
248482
+ { key: "assets/frogApiRules-Cm4CcxzI.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "9ff41be5ea82e26835bb80c36f5d50f546c7903a8c879a10d8332cc18a9578fd" },
248353
248483
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
248354
248484
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
248355
248485
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
248356
- { key: "assets/index-DSqKsIv8.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1589985, sha256: "c66acc3dc93084ab71d31486b9298be4b94d87a33cab841b0ea7468c05fa4be4" },
248357
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1726029, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
248358
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1733780, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
248359
- { key: "assets/pdf-CR8c7gMK.js", contentType: "application/javascript; charset=utf-8", offset: 1744311, length: 488215, sha256: "707207384524513171a679366d75e91a1652b53eb3de01ef15418c4ba68c9370" },
248360
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2232526, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
248361
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2232616, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
248362
- { key: "assets/pdfDocument-Hnmv5SLy.js", contentType: "application/javascript; charset=utf-8", offset: 3549650, length: 3470, sha256: "0badf0709bce3e5f8d1f202e24a044f5385dfcd42829bd0b55c88eda89a05934" },
248363
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3553120, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
248364
- { key: "assets/scrollLinkedRuntime-CvjaAZ33.js", contentType: "application/javascript; charset=utf-8", offset: 3555386, length: 2278, sha256: "978dbdb79a93e3c66948bbc29f335812a4967e381152983c3058571e434ebfe8" },
248365
- { key: "assets/webviewBridgeHost-Bh3x9zWn.js", contentType: "application/javascript; charset=utf-8", offset: 3557664, length: 9889, sha256: "e197bbd81ec60424afc614ece23928d943d7a2c5e47c66e58ea1eaa394d7fa4a" },
248366
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3567553, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
248367
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3572163, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
248368
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4060747, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
248369
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4151671, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
248370
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4242655, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
248371
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4333635, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
248372
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4424507, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
248373
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4515487, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
248374
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4624123, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
248375
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4733207, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
248376
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4842255, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
248377
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4949955, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
248378
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5038063, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
248379
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5044881, length: 4924, sha256: "7b5bfa0770e82498a845f051774cfae07892bcd0b797029ef22c74c6a862e6eb" },
248380
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5049805, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
248381
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5061262, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
248382
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5062433, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
248383
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5086736, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
248486
+ { key: "assets/index-BdfRosHF.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1590021, sha256: "c1c290ef3e9689e8badefcf362e08df5c2803372fd08f20a9d82ca40a0c3afb0" },
248487
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1726065, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
248488
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1733816, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
248489
+ { key: "assets/pdf-B5DzoH34.js", contentType: "application/javascript; charset=utf-8", offset: 1744347, length: 488215, sha256: "ce90f5b64f4b5d5f20f91f73e76d9efcb1693d00f678279740d2504b5e629752" },
248490
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2232562, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
248491
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2232652, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
248492
+ { key: "assets/pdfDocument-DOwA2sfm.js", contentType: "application/javascript; charset=utf-8", offset: 3549686, length: 3470, sha256: "8c62b9cbaac63b3551d6d9488c0f6cfe9f96eb90b86e301176ea05817308dc08" },
248493
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3553156, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
248494
+ { key: "assets/scrollLinkedRuntime-DVW_b20D.js", contentType: "application/javascript; charset=utf-8", offset: 3555422, length: 2278, sha256: "00615c2e207cb55707e36c2c6cfac16625aa5c07f6465007555fb6e8ac291812" },
248495
+ { key: "assets/webviewBridgeHost-C8aQop1z.js", contentType: "application/javascript; charset=utf-8", offset: 3557700, length: 9889, sha256: "25a6b084d8d69b3f93934c93efab4312e9bb3ceef6084a104346a2ea0aeafcfa" },
248496
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3567589, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
248497
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3572199, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
248498
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4060783, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
248499
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4151707, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
248500
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4242691, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
248501
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4333671, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
248502
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4424543, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
248503
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4515523, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
248504
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4624159, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
248505
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4733243, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
248506
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4842291, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
248507
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4949991, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
248508
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5038099, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
248509
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5044917, length: 4924, sha256: "400a0efe471129dfba7bd8f92a5ec9d197f7f612bb08a56367151fb1c09e0369" },
248510
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5049841, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
248511
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5061298, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
248512
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5062469, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
248513
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5086772, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
248384
248514
  ];
248385
248515
  }
248386
248516
  });
@@ -250977,6 +251107,68 @@ __export(store_relops_pool_exports, {
250977
251107
  STORE_RELOPS_POOL_USAGE: () => STORE_RELOPS_POOL_USAGE,
250978
251108
  runStoreRelopsPool: () => runStoreRelopsPool
250979
251109
  });
251110
+ function poolFromAnswer(op, body, held, at2) {
251111
+ if (typeof body.state !== "string") return void 0;
251112
+ if (op === "status") {
251113
+ if (held?.groupOnTrack === true && body.state !== "active") {
251114
+ const { source: _source, ...snapshot4 } = held;
251115
+ return { ...snapshot4, status: body.state };
251116
+ }
251117
+ return { status: body.state, installed: body.installed ?? 0, of: body.of ?? 12, day: body.day ?? 0, startedAt: body.addedAt ?? held?.startedAt ?? at2 };
251118
+ }
251119
+ if (op === "add") return { status: body.state, installed: 0, of: 12, day: 0, startedAt: at2 };
251120
+ return { status: body.state, installed: held?.installed ?? 0, of: held?.of ?? 12, day: held?.day ?? 0, startedAt: held?.startedAt ?? at2, groupOnTrack: true };
251121
+ }
251122
+ async function recordPool(op, app2, site, body, io2, deps, owner) {
251123
+ const env = deps.env ?? process.env;
251124
+ const at2 = new Date((deps.now ?? Date.now)()).toISOString();
251125
+ const out2 = { written: false };
251126
+ const warn4 = (line) => io2.error(`[himi store] warning: ${line}`);
251127
+ let lib;
251128
+ let record5;
251129
+ try {
251130
+ lib = await Promise.resolve().then(() => (init_store_record(), store_record_exports));
251131
+ const { storeRecordRootOf: storeRecordRootOf2 } = await Promise.resolve().then(() => (init_store_host(), store_host_exports));
251132
+ const root = storeRecordRootOf2(env);
251133
+ record5 = new lib.StoreRecord(root);
251134
+ const storeRecord = await Promise.resolve().then(() => (init_store_record2(), store_record_exports2));
251135
+ let pulled = storeRecord.storeRecordSyncOff(env);
251136
+ if (!pulled && owner.ok) {
251137
+ const pull = await storeRecord.pullStoreRecord({ app: app2, site, root, session: owner.session, ...deps.fetchImpl ? { fetchImpl: deps.fetchImpl } : {} });
251138
+ pulled = pull.ok;
251139
+ if (!pull.ok) {
251140
+ out2.syncWarning = `the store record of ${app2} was not read from Wix, so it was not pushed: ${pull.error}`;
251141
+ warn4(out2.syncWarning);
251142
+ }
251143
+ }
251144
+ const held = lib.poolOf(await record5.read(app2, lib.CLOSED_TEST_PATH));
251145
+ const pool2 = poolFromAnswer(op, body, held, at2);
251146
+ if (pool2) {
251147
+ try {
251148
+ await lib.writePoolStatus(record5, app2, pool2, { at: at2 });
251149
+ out2.written = true;
251150
+ } catch (e2) {
251151
+ out2.warning = `the pool status was not written into the store record of ${app2}: ${e2.message}`;
251152
+ warn4(out2.warning);
251153
+ }
251154
+ }
251155
+ if (out2.written && pulled) {
251156
+ const synced = await storeRecord.autoSyncStoreRecord({ identity: { himiAppId: app2, msid: site }, env, log: (l3) => io2.error(l3), deps: { session: async () => owner, ...deps.fetchImpl ? { fetchImpl: deps.fetchImpl } : {} } });
251157
+ out2.synced = synced.synced;
251158
+ if (synced.warning) out2.syncWarning = synced.warning;
251159
+ }
251160
+ } catch (e2) {
251161
+ out2.warning ??= `the store record of ${app2} was not read or written: ${e2.message}`;
251162
+ warn4(out2.warning);
251163
+ return out2;
251164
+ }
251165
+ try {
251166
+ out2.readiness = lib.closedTestReadiness(await record5.read(app2, lib.CLOSED_TEST_PATH), await record5.read(app2, lib.PRODUCTION_ACCESS_PATH), Date.parse(at2));
251167
+ } catch (e2) {
251168
+ warn4(`the closed test's readiness of ${app2} was not read: ${e2.message}`);
251169
+ }
251170
+ return out2;
251171
+ }
250980
251172
  function fail14(io2, code2, error, extra = {}) {
250981
251173
  io2.error(JSON.stringify({ ok: false, code: code2, error, ...extra }));
250982
251174
  return code2 === "invalid_usage" ? 2 : 1;
@@ -251025,29 +251217,53 @@ async function runStoreRelopsPool(pos, flags, io2, deps = {}) {
251025
251217
  );
251026
251218
  }
251027
251219
  if (all) {
251220
+ const json9 = flags.json === true || flags.json === "true";
251221
+ const records = [];
251222
+ for (const e2 of body.cancelled ?? []) {
251223
+ if (typeof e2?.app !== "string" || typeof e2?.site !== "string") continue;
251224
+ const s5 = e2.site.toLowerCase();
251225
+ records.push({ app: e2.app, site: s5, record: await recordPool("end", e2.app, s5, { state: typeof e2.state === "string" ? e2.state : "ending" }, io2, deps, owner) });
251226
+ }
251227
+ if (json9) {
251228
+ io2.log(JSON.stringify({ ok: true, op, all: true, ...body, records }));
251229
+ return 0;
251230
+ }
251028
251231
  io2.log(`Cancelled ${body.cancelled?.length ?? 0} Himi pool entr${body.cancelled?.length === 1 ? "y" : "ies"}.`);
251029
- for (const e2 of body.cancelled ?? []) io2.log(` ${e2.packageName} app ${e2.app} site ${e2.site}`);
251232
+ for (const e2 of body.cancelled ?? []) {
251233
+ io2.log(` ${e2.packageName} app ${e2.app} site ${e2.site}`);
251234
+ const ready2 = readinessLine(records.find((r3) => r3.app === e2.app && r3.site === String(e2.site).toLowerCase())?.record.readiness);
251235
+ if (ready2) io2.log(` ${ready2}`);
251236
+ }
251030
251237
  const left = body.notArchived ?? [];
251031
251238
  io2.log(left.length ? `${left.length} not archived after the wait; the daily sweep follows them (state "stuck" after 3 days).` : "Nothing left in the pool.");
251032
251239
  io2.log("Ask each owner to remove the pool's group from the closed track: himi store google testers pool-remove");
251033
251240
  return 0;
251034
251241
  }
251242
+ const rec = await recordPool(op, app2, site.toLowerCase(), body, io2, deps, owner);
251243
+ if (flags.json === true || flags.json === "true") {
251244
+ io2.log(JSON.stringify({ ok: true, op, app: app2, site: site.toLowerCase(), ...body, record: rec }));
251245
+ return 0;
251246
+ }
251247
+ const ready = readinessLine(rec.readiness);
251035
251248
  if (op === "add") {
251036
251249
  io2.log(`On the pool: ${body.packageName} (app ${app2}, site ${site}). Deadline ${body.deadline}.`);
251037
251250
  io2.log(`Owner's step: ${body.ownerStep}`);
251038
251251
  io2.log(`Owner's command (on their computer, with HIMI_POOL_TESTER_GROUP set): ${ownerCommand(OWNER_POOL_ADD, body.packageName)}`);
251252
+ if (ready) io2.log(ready);
251039
251253
  return 0;
251040
251254
  }
251041
251255
  if (op === "end") {
251042
251256
  io2.log(`Ended: ${body.packageName} is cancelled on the pool (state ${body.state}); the phones uninstall it.`);
251043
251257
  io2.log(`Owner's step: ${body.ownerStep}`);
251044
251258
  io2.log(`Owner's command (on their computer, with HIMI_POOL_TESTER_GROUP set): ${ownerCommand(OWNER_POOL_REMOVE, body.packageName)}`);
251259
+ if (ready) io2.log(ready);
251045
251260
  return 0;
251046
251261
  }
251047
251262
  io2.log(`${body.packageName ?? "(no entry)"}: ${body.installed}/${body.of} installed, day ${body.day} of ${body.days}, state ${body.state ?? "none"}${body.serviceStatus ? ` (service ${body.serviceStatus})` : ""}`);
251263
+ if (ready) io2.log(ready);
251048
251264
  return 0;
251049
251265
  }
251050
- var STORE_POOL_PATH, STORE_POOL_TEARDOWN_PATH, OWNER_POOL_ADD, ownerCommand, OWNER_POOL_REMOVE, STORE_RELOPS_POOL_USAGE, text22, SITE_RE9;
251266
+ var STORE_POOL_PATH, STORE_POOL_TEARDOWN_PATH, OWNER_POOL_ADD, ownerCommand, OWNER_POOL_REMOVE, STORE_RELOPS_POOL_USAGE, readinessLine, text22, SITE_RE9;
251051
251267
  var init_store_relops_pool = __esm({
251052
251268
  "src/store-relops-pool.ts"() {
251053
251269
  init_define_HHP_CATALOG();
@@ -251057,6 +251273,7 @@ var init_store_relops_pool = __esm({
251057
251273
  ownerCommand = (base2, pkg) => typeof pkg === "string" && pkg ? `${base2} --android-package ${pkg}` : base2;
251058
251274
  OWNER_POOL_REMOVE = "himi store google testers pool-remove --dir <app> --track alpha";
251059
251275
  STORE_RELOPS_POOL_USAGE = "himi store relops pool add|status|end --app <id> --site <msid> | himi store relops pool end --all-himi";
251276
+ readinessLine = (r3) => !r3 ? void 0 : r3.done ? "Closed test: done (14 days, 12 or more installed, production access eligible)." : `Closed test: not done: ${r3.reasons.join("; ")}.`;
251060
251277
  text22 = (v2) => typeof v2 === "string" && v2.trim() ? v2.trim() : void 0;
251061
251278
  SITE_RE9 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
251062
251279
  }
@@ -260100,7 +260317,7 @@ function placeholder2(f2, i2) {
260100
260317
  }
260101
260318
  }
260102
260319
  function writeBase44SeedRows(opts) {
260103
- const { dir, app: app2, count: count2 = 8 } = opts;
260320
+ const { dir, app: app2, count: count3 = 8 } = opts;
260104
260321
  const path2 = join179(dir, BASE44_SEED_FILE);
260105
260322
  const owned = opts.entities.filter((s5) => !!s5 && typeof s5 === "object" && isOwnedEntity(s5) && (!opts.only || opts.only.includes(physicalEntityName(s5, app2)) || opts.only.includes(s5.name ?? "")));
260106
260323
  if (!owned.length) {
@@ -260125,8 +260342,8 @@ function writeBase44SeedRows(opts) {
260125
260342
  fieldless.push(name);
260126
260343
  continue;
260127
260344
  }
260128
- existing[name] = Array.from({ length: count2 }, (_2, i2) => Object.fromEntries((spec.fields ?? []).map((f2) => [f2.key, placeholder2(f2, i2)])));
260129
- entities[name] = count2;
260345
+ existing[name] = Array.from({ length: count3 }, (_2, i2) => Object.fromEntries((spec.fields ?? []).map((f2) => [f2.key, placeholder2(f2, i2)])));
260346
+ entities[name] = count3;
260130
260347
  }
260131
260348
  writeFileSync63(path2, `${JSON.stringify(existing, null, 2)}
260132
260349
  `);
@@ -260143,7 +260360,7 @@ ${(s5.fields ?? []).map((f2) => ` ${f2.key} (${f2.type}${f2.format ? `, ${f
260143
260360
  schema2,
260144
260361
  ``,
260145
260362
  `Rules:`,
260146
- ` - Keep the exact JSON shape: one key per entity name, an array of ${count2} row objects.`,
260363
+ ` - Keep the exact JSON shape: one key per entity name, an array of ${count3} row objects.`,
260147
260364
  ` - Use ONLY the field keys listed above and keep each value's JSON type; an enum field takes one of its listed values.`,
260148
260365
  ` - Make the content specific and plausible for this app's domain. No "Lorem ipsum", no "Sample item 1".`,
260149
260366
  ` - Leave any entity key already in the file that is not listed above untouched.`,
@@ -266746,8 +266963,8 @@ function composed2(id, s5, svc, nodes2) {
266746
266963
  function programsLimit(section3, settings) {
266747
266964
  const extra = obj8(section3.extraProps);
266748
266965
  const authored2 = extra.limit ?? settings.limit;
266749
- const count2 = countOf2(authored2);
266750
- if (count2 !== void 0) return count2;
266966
+ const count3 = countOf2(authored2);
266967
+ if (count3 !== void 0) return count3;
266751
266968
  if (settings.isInfinite === true || settings.infinite === true || settings.allowInfinite === true || extra.infinite === true || extra.allowInfinite === true) return void 0;
266752
266969
  if (authored2 === void 0 || authored2 === null) return PROGRAMS_DEFAULT_LIMIT;
266753
266970
  return void 0;
@@ -266796,8 +267013,8 @@ function blogOptions(st2) {
266796
267013
  const content = obj8(st2.contentSettings);
266797
267014
  const display = obj8(st2.displayOptions);
266798
267015
  const raw = content.postsPerCategory;
266799
- const count2 = typeof raw === "string" ? /^\d+$/.test(raw) ? Number(raw) : void 0 : Number.isSafeInteger(raw) ? raw : void 0;
266800
- const limit = count2 !== void 0 && count2 > 0 ? count2 : void 0;
267016
+ const count3 = typeof raw === "string" ? /^\d+$/.test(raw) ? Number(raw) : void 0 : Number.isSafeInteger(raw) ? raw : void 0;
267017
+ const limit = count3 !== void 0 && count3 > 0 ? count3 : void 0;
266801
267018
  const base2 = {
266802
267019
  ...str16(content.categoryId).trim() && str16(content.categoryId).trim() !== "all" ? { categoryId: str16(content.categoryId).trim() } : {},
266803
267020
  // Only the facts the source switches on; an absent key stays hidden.
@@ -267365,8 +267582,8 @@ var init_generate2 = __esm({
267365
267582
  stores_products_carousel_section: (_section, st2) => collectionParams(st2)
267366
267583
  };
267367
267584
  countOf2 = (value2) => {
267368
- const count2 = typeof value2 === "string" ? /^\d+$/.test(value2) ? Number(value2) : void 0 : Number.isSafeInteger(value2) ? value2 : void 0;
267369
- return count2 !== void 0 && count2 > 0 ? count2 : void 0;
267585
+ const count3 = typeof value2 === "string" ? /^\d+$/.test(value2) ? Number(value2) : void 0 : Number.isSafeInteger(value2) ? value2 : void 0;
267586
+ return count3 !== void 0 && count3 > 0 ? count3 : void 0;
267370
267587
  };
267371
267588
  SCREEN_ADAPTATIONS = {
267372
267589
  upcoming_bookings_section: (st2) => [
@@ -271989,13 +272206,13 @@ function duplicateMedia(look, probes) {
271989
272206
  const k3 = mediaKey(u2);
271990
272207
  counts.set(k3, (counts.get(k3) ?? 0) + 1);
271991
272208
  }
271992
- for (const [k3, count2] of counts) {
271993
- if (count2 < DUPLICATE_MEDIA_MIN || out2.length >= CAP4.perKind) continue;
272209
+ for (const [k3, count3] of counts) {
272210
+ if (count3 < DUPLICATE_MEDIA_MIN || out2.length >= CAP4.perKind) continue;
271994
272211
  out2.push({
271995
272212
  kind: "duplicate-media",
271996
272213
  value: k3.slice(0, 80),
271997
272214
  where: [where],
271998
- note: `the same image is used ${count2} times here \u2014 template filler, not ${count2} distinct photos; do not present it as the business's gallery`
272215
+ note: `the same image is used ${count3} times here \u2014 template filler, not ${count3} distinct photos; do not present it as the business's gallery`
271999
272216
  });
272000
272217
  }
272001
272218
  };
@@ -281168,11 +281385,11 @@ async function progressCommand2(ctx) {
281168
281385
  try {
281169
281386
  const entry = appendProgress2(dir, { message: message5, ...step ? { step } : {}, images });
281170
281387
  const notified = flags.notify === true ? await notifyDesktop2(`himi \xB7 ${appLabel2(dir) ?? "your app"}`, message5) : void 0;
281171
- const { count: count2 } = summarizeProgress2(readProgress2(dir).entries);
281388
+ const { count: count3 } = summarizeProgress2(readProgress2(dir).entries);
281172
281389
  const imageAttached = (entry.images?.length ?? 0) > 0;
281173
281390
  const handed = handover && isContentPackage ? (await Promise.resolve().then(() => (init_milestones(), milestones_exports))).afterHandoverPostcard(dir, { content: str3(flags.content) }) : null;
281174
281391
  const progressReminder = isContentPackage ? (await Promise.resolve().then(() => (init_milestones(), milestones_exports))).watchReminder(dir, { content: str3(flags.content) }) : void 0;
281175
- print({ ok: true, entry, journal: journal2, count: count2, imageAttached, ...imageNote ? { imageNote } : {}, ...notified === void 0 ? {} : { notified }, ...handed ? { makingOf: handed.makingOf, next: handed.next } : {}, ...hint, ...progressReminder ? { reminder: progressReminder } : {} });
281392
+ print({ ok: true, entry, journal: journal2, count: count3, imageAttached, ...imageNote ? { imageNote } : {}, ...notified === void 0 ? {} : { notified }, ...handed ? { makingOf: handed.makingOf, next: handed.next } : {}, ...hint, ...progressReminder ? { reminder: progressReminder } : {} });
281176
281393
  return 0;
281177
281394
  } catch (e2) {
281178
281395
  if (e2 instanceof ProgressError2) {
@@ -281717,7 +281934,7 @@ async function testCommand(ctx) {
281717
281934
  coverage: {
281718
281935
  screens: crawledScreens.size,
281719
281936
  actionsDispatched: result.actions.exercised,
281720
- uncoveredFns: (result.crawled ?? []).reduce((count2, screen) => count2 + (screen.uncoveredFunctions?.length ?? 0), 0),
281937
+ uncoveredFns: (result.crawled ?? []).reduce((count3, screen) => count3 + (screen.uncoveredFunctions?.length ?? 0), 0),
281721
281938
  gaps: ledger.length
281722
281939
  },
281723
281940
  report: {
@@ -287746,14 +287963,14 @@ async function seedCms(opts) {
287746
287963
  report9.ok = false;
287747
287964
  continue;
287748
287965
  }
287749
- const count2 = await countItems(call, id);
287750
- if (count2 === null && !force) {
287966
+ const count3 = await countItems(call, id);
287967
+ if (count3 === null && !force) {
287751
287968
  report9.skipped.push({ collection: id, reason: "could not read the current row count, so seeding might bury existing content. Re-run, or pass --force if you are sure." });
287752
287969
  report9.ok = false;
287753
287970
  continue;
287754
287971
  }
287755
- if (count2 !== null && count2 > 0 && !force) {
287756
- report9.skipped.push({ collection: id, reason: `already has ${count2} items \u2014 seeding an already-populated collection needs --force so real content is never buried under sample rows` });
287972
+ if (count3 !== null && count3 > 0 && !force) {
287973
+ report9.skipped.push({ collection: id, reason: `already has ${count3} items \u2014 seeding an already-populated collection needs --force so real content is never buried under sample rows` });
287757
287974
  continue;
287758
287975
  }
287759
287976
  let inserted = rows.length;
@@ -287886,7 +288103,7 @@ function placeholder(type2, key4, i2) {
287886
288103
  }
287887
288104
  }
287888
288105
  async function writeSeedRows(opts) {
287889
- const { app: app2, cms, dir, count: count2 = 8 } = opts;
288106
+ const { app: app2, cms, dir, count: count3 = 8 } = opts;
287890
288107
  const file2 = join171(dir, "cms-seed.json");
287891
288108
  const owned = (cms?.collections ?? []).filter((s5) => s5.id?.startsWith(namespacePrefix(app2)));
287892
288109
  if (!owned.length) {
@@ -287917,10 +288134,10 @@ async function writeSeedRows(opts) {
287917
288134
  const collections2 = {};
287918
288135
  for (const spec of owned) {
287919
288136
  existing[spec.id] = Array.from(
287920
- { length: count2 },
288137
+ { length: count3 },
287921
288138
  (_2, i2) => Object.fromEntries(spec.fields.map((f2) => [f2.key, placeholder(f2.type, f2.displayName || f2.key, i2)]))
287922
288139
  );
287923
- collections2[spec.id] = count2;
288140
+ collections2[spec.id] = count3;
287924
288141
  }
287925
288142
  writeFileSync56(file2, `${JSON.stringify(existing, null, 2)}
287926
288143
  `);
@@ -287935,7 +288152,7 @@ ${s5.fields.map((f2) => ` ${f2.key} (${f2.type})`).join("\n")}`
287935
288152
  schema2,
287936
288153
  ``,
287937
288154
  `Rules:`,
287938
- ` - Keep the exact same JSON shape: one key per collection id, an array of ${count2} row objects.`,
288155
+ ` - Keep the exact same JSON shape: one key per collection id, an array of ${count3} row objects.`,
287939
288156
  ` - Use ONLY the field keys listed above, and keep each value's JSON type (TEXT\u2192string, NUMBER\u2192number, BOOLEAN\u2192boolean, DATE/DATETIME\u2192ISO string, IMAGE/VIDEO/AUDIO/DOCUMENT\u2192an https URL).`,
287940
288157
  ` - Make the content specific and plausible for this app's domain \u2014 real-sounding names, sensible prices, varied categories. No "Lorem ipsum", no "Sample item 1".`,
287941
288158
  ` - Leave any collection key already in the file that is not listed above untouched.`,