@wix/himalaya-cli 0.1945.0 → 0.1946.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -0
  2. package/dist/browser-plane/assets.json +5 -5
  3. package/dist/browser-plane/preview-deferred/{e113c7cdcf8f56ad861b2564505fab2a1975c7a995f92d2f999f9c4ce1a09a40.bin → 9521361aa5be10b9a96b96c0ea2f7e157e728874b20de5200879cbd735eefb38.bin} +1 -1
  4. package/dist/browser-plane/sw.js +9 -9
  5. package/dist/cli.mjs +363 -268
  6. package/dist/preview-assets.generated.bin +0 -0
  7. package/guides/himi-json-output.md +7 -0
  8. package/package.json +2 -2
  9. package/templates/bare-fashion/tier5-src/_shared/engine-intl.ts +65 -0
  10. package/templates/beauty-salon/dev/index.ts +1 -0
  11. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +65 -0
  12. package/templates/beauty-salon/tier5-src/_shared/weekly-goal.ts +28 -12
  13. package/templates/beauty-salon/tier5-src/himi-booking-bookings/index.ts +7 -2
  14. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +8 -8
  15. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +65 -0
  16. package/templates/branded-lite/dev/index.ts +4 -2
  17. package/templates/branded-lite/l10n/ar.json +5 -5
  18. package/templates/branded-lite/l10n/cs.json +5 -5
  19. package/templates/branded-lite/l10n/da.json +5 -5
  20. package/templates/branded-lite/l10n/de.json +5 -5
  21. package/templates/branded-lite/l10n/el.json +5 -5
  22. package/templates/branded-lite/l10n/es.json +5 -5
  23. package/templates/branded-lite/l10n/fi.json +5 -5
  24. package/templates/branded-lite/l10n/fr.json +5 -5
  25. package/templates/branded-lite/l10n/he.json +4 -4
  26. package/templates/branded-lite/l10n/hu.json +5 -5
  27. package/templates/branded-lite/l10n/id.json +5 -5
  28. package/templates/branded-lite/l10n/it.json +5 -5
  29. package/templates/branded-lite/l10n/ja.json +5 -5
  30. package/templates/branded-lite/l10n/ko.json +5 -5
  31. package/templates/branded-lite/l10n/lt.json +5 -5
  32. package/templates/branded-lite/l10n/nl.json +5 -5
  33. package/templates/branded-lite/l10n/no.json +5 -5
  34. package/templates/branded-lite/l10n/pl.json +5 -5
  35. package/templates/branded-lite/l10n/pt.json +5 -5
  36. package/templates/branded-lite/l10n/ru.json +5 -5
  37. package/templates/branded-lite/l10n/sv.json +5 -5
  38. package/templates/branded-lite/l10n/th.json +5 -5
  39. package/templates/branded-lite/l10n/tr.json +5 -5
  40. package/templates/branded-lite/l10n/uk.json +5 -5
  41. package/templates/branded-lite/l10n/vi.json +5 -5
  42. package/templates/branded-lite/l10n/zh.json +5 -5
  43. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +65 -0
  44. package/templates/branded-lite/tier5-src/_shared/performance-tracker-section.ts +24 -16
  45. package/templates/branded-lite/tier5-src/_shared/performance-tracker-weeks.ts +27 -20
  46. package/templates/branded-lite/tier5-src/_shared/weekly-goal.ts +28 -12
  47. package/templates/branded-lite/tier5-src/himi-booking-bookings/index.ts +7 -2
  48. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +8 -8
  49. package/templates/brandy/tier5-src/_shared/engine-intl.ts +65 -0
  50. package/templates/community-club/dev/index.ts +1 -0
  51. package/templates/community-club/tier5-src/_shared/engine-intl.ts +65 -0
  52. package/templates/community-club/tier5-src/_shared/weekly-goal.ts +28 -12
  53. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +8 -8
  54. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +65 -0
  55. package/templates/conference/tier5-src/_shared/engine-intl.ts +65 -0
  56. package/templates/events-meetups/dev/index.ts +1 -0
  57. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +65 -0
  58. package/templates/events-meetups/tier5-src/_shared/weekly-goal.ts +28 -12
  59. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +8 -8
  60. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +65 -0
  61. package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +65 -0
  62. package/templates/fitness-gym/tier5-src/_shared/weekly-goal.ts +28 -12
  63. package/templates/fitness-gym/tier5-src/himi-booking-bookings/index.ts +7 -2
  64. package/templates/fitness-gym/tier5-src/himi-fitcoach-home/index.ts +3 -2
  65. package/templates/gym-fitness/dev/index.ts +3 -1
  66. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +65 -0
  67. package/templates/gym-fitness/tier5-src/_shared/weekly-goal.ts +28 -12
  68. package/templates/gym-fitness/tier5-src/himi-booking-bookings/index.ts +7 -2
  69. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +8 -8
  70. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +65 -0
  71. package/templates/medical-services/tier5-src/_shared/engine-intl.ts +65 -0
  72. package/templates/medical-services/tier5-src/_shared/weekly-goal.ts +28 -12
  73. package/templates/medical-services/tier5-src/himi-booking-bookings/index.ts +7 -2
  74. package/templates/nonprofit-cause/dev/index.ts +1 -0
  75. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +65 -0
  76. package/templates/nonprofit-cause/tier5-src/_shared/weekly-goal.ts +28 -12
  77. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +8 -8
  78. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +65 -0
  79. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +65 -0
  80. package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +65 -0
  81. package/templates/personal-fitness-trainer/tier5-src/_shared/weekly-goal.ts +28 -12
  82. package/templates/personal-fitness-trainer/tier5-src/himi-booking-bookings/index.ts +7 -2
  83. package/templates/podcast-creator/dev/index.ts +1 -0
  84. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +65 -0
  85. package/templates/podcast-creator/tier5-src/_shared/weekly-goal.ts +28 -12
  86. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +8 -8
  87. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +65 -0
  88. package/templates/portfolio-creative/dev/index.ts +1 -0
  89. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +65 -0
  90. package/templates/portfolio-creative/tier5-src/_shared/weekly-goal.ts +28 -12
  91. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +8 -8
  92. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +65 -0
  93. package/templates/professional-services/tier5-src/_shared/engine-intl.ts +65 -0
  94. package/templates/professional-services/tier5-src/_shared/weekly-goal.ts +28 -12
  95. package/templates/professional-services/tier5-src/himi-booking-bookings/index.ts +7 -2
  96. package/templates/restaurant/dev/index.ts +1 -0
  97. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +65 -0
  98. package/templates/restaurant/tier5-src/_shared/weekly-goal.ts +28 -12
  99. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +8 -8
  100. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +65 -0
  101. package/templates/retail-store/dev/index.ts +1 -0
  102. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +65 -0
  103. package/templates/retail-store/tier5-src/_shared/weekly-goal.ts +28 -12
  104. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +8 -8
  105. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +65 -0
  106. package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +65 -0
  107. package/templates/salon-spa/tier5-src/_shared/weekly-goal.ts +28 -12
  108. package/templates/salon-spa/tier5-src/himi-booking-bookings/index.ts +7 -2
  109. package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +65 -0
  110. package/templates/yoga-studio/dev/index.ts +3 -1
  111. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +65 -0
  112. package/templates/yoga-studio/tier5-src/_shared/weekly-goal.ts +28 -12
  113. package/templates/yoga-studio/tier5-src/himi-booking-bookings/index.ts +7 -2
  114. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +8 -8
  115. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +65 -0
package/dist/cli.mjs CHANGED
@@ -10026,12 +10026,12 @@ function fallbackOwnerPrefix(accountId) {
10026
10026
  const n2 = BigInt("0x" + h2.subarray(0, 8).toString("hex"));
10027
10027
  return ("u" + n2.toString(36)).slice(0, OWNER_PREFIX_MAX);
10028
10028
  }
10029
- function federatedOwnerPrefix(tag, subject) {
10030
- if (!/^[a-z]$/.test(tag)) throw new Error(`federatedOwnerPrefix: tag must be one lowercase letter, got ${JSON.stringify(tag)}`);
10029
+ function federatedOwnerPrefix(tag2, subject) {
10030
+ if (!/^[a-z]$/.test(tag2)) throw new Error(`federatedOwnerPrefix: tag must be one lowercase letter, got ${JSON.stringify(tag2)}`);
10031
10031
  const h2 = createHash("sha256").update(`federated:${subject}`).digest();
10032
10032
  const n2 = BigInt("0x" + h2.subarray(0, 10).toString("hex"));
10033
10033
  const width = OWNER_PREFIX_MAX - 3;
10034
- return `${tag}--${n2.toString(36).padStart(width, "0").slice(0, width)}`;
10034
+ return `${tag2}--${n2.toString(36).padStart(width, "0").slice(0, width)}`;
10035
10035
  }
10036
10036
  function ownerPrefixFor(account2) {
10037
10037
  return sanitizeOwnerPrefix(account2.slug) || fallbackOwnerPrefix(account2.accountId);
@@ -12731,10 +12731,10 @@ function compileV2(html, profile, options2) {
12731
12731
  return raw;
12732
12732
  }
12733
12733
  function compile(el2, treePath, row2 = false) {
12734
- const element = $2(el2), attrs = el2.attribs, tag = el2.tagName;
12735
- let type2 = attrs["data-component"] ?? tags.get(tag) ?? semantic[tag];
12736
- if (tag === "input" && attrs.type === "checkbox") type2 = "Toggle";
12737
- if (tag === "input" && attrs.type === "range") type2 = "Slider";
12734
+ const element = $2(el2), attrs = el2.attribs, tag2 = el2.tagName;
12735
+ let type2 = attrs["data-component"] ?? tags.get(tag2) ?? semantic[tag2];
12736
+ if (tag2 === "input" && attrs.type === "checkbox") type2 = "Toggle";
12737
+ if (tag2 === "input" && attrs.type === "range") type2 = "Slider";
12738
12738
  const props2 = {}, mods = {};
12739
12739
  const matching = rules.filter((r3) => element.is(r3.selector));
12740
12740
  const style = Object.assign({}, ...matching.filter((r3) => !r3.breakpoint).map((r3) => r3.declarations));
@@ -12751,8 +12751,8 @@ function compileV2(html, profile, options2) {
12751
12751
  error(el2, "HHP-CSS-COMPONENT", `CSS font sets a typography token, but ${type2}.style is not typography.`, 'Put font on text (p, span, h1-h6, label); choose a button or badge look with variant="...".');
12752
12752
  delete style.font;
12753
12753
  }
12754
- if (style.display && !["main", "div", "header", "footer", "nav", "himi-v-stack", "himi-h-stack", "himi-grid"].includes(tag))
12755
- error(el2, "HHP-CSS-COMPONENT", `<${tag}> sets display, but display layout rules require a stack or grid container.`, `Remove display/flex rules from <${tag}> and give it plain text; to lay several elements out together, put a <div> stack around them and style that.`);
12754
+ if (style.display && !["main", "div", "header", "footer", "nav", "himi-v-stack", "himi-h-stack", "himi-grid"].includes(tag2))
12755
+ error(el2, "HHP-CSS-COMPONENT", `<${tag2}> sets display, but display layout rules require a stack or grid container.`, `Remove display/flex rules from <${tag2}> and give it plain text; to lay several elements out together, put a <div> stack around them and style that.`);
12756
12756
  type2 = translateStyle(style, profile, type2, props2, mods, (message5, hint, property3) => diagnostics.push({ code: "HHP-CSS-VALUE", severity: "error", ...styleLocations[property3 ?? ""] ?? loc(el2), message: message5, ...hint ? { hint } : {} }));
12757
12757
  const spec = Object.hasOwn(profile.components, type2) ? profile.components[type2] : void 0;
12758
12758
  let id = attrs["data-id"] ?? attrs.id ?? `hhp.${screenId}.${treePath}`;
@@ -12763,7 +12763,7 @@ function compileV2(html, profile, options2) {
12763
12763
  sourceMap2[id] = loc(el2);
12764
12764
  const component = { id, body: { package: spec?.package ?? "himalaya", type: type2 ?? "Unknown", props: props2 }, modifiers: mods };
12765
12765
  if (!spec) {
12766
- error(el2, "HHP-COMPONENT", `Component ${type2 ?? tag} is not available for this app's enabled surfaces.`);
12766
+ error(el2, "HHP-COMPONENT", `Component ${type2 ?? tag2} is not available for this app's enabled surfaces.`);
12767
12767
  return component;
12768
12768
  }
12769
12769
  const textNodes = element.contents().toArray().filter((n2) => n2.type === "text");
@@ -12792,8 +12792,8 @@ function compileV2(html, profile, options2) {
12792
12792
  props2.template = { template, params };
12793
12793
  }
12794
12794
  } else if (text32) props2.text = text32;
12795
- if (/^h[1-6]$/.test(tag) && props2.style === void 0) {
12796
- const candidates = tag === "h1" ? ["largeTitle", "title1", "body"] : tag === "h2" ? ["title1", "headline", "body"] : ["headline", "body"];
12795
+ if (/^h[1-6]$/.test(tag2) && props2.style === void 0) {
12796
+ const candidates = tag2 === "h1" ? ["largeTitle", "title1", "body"] : tag2 === "h2" ? ["title1", "headline", "body"] : ["headline", "body"];
12797
12797
  const available = profile.tokens.typography ?? [];
12798
12798
  const heading = candidates.find((name) => available.includes(name));
12799
12799
  if (heading) props2.style = heading;
@@ -12813,7 +12813,7 @@ function compileV2(html, profile, options2) {
12813
12813
  }
12814
12814
  if (attrs.alt) mods.accessibilityLabel = attrs.alt;
12815
12815
  }
12816
- if (tag === "input" || tag === "textarea") {
12816
+ if (tag2 === "input" || tag2 === "textarea") {
12817
12817
  if (attrs.placeholder) props2.placeholder = attrs.placeholder;
12818
12818
  if (attrs.type === "password") props2.secure = true;
12819
12819
  else if (attrs.type === "email") props2.keyboard = "email";
@@ -12977,7 +12977,7 @@ function compileV2(html, profile, options2) {
12977
12977
  structured(el2, props2[name]);
12978
12978
  }
12979
12979
  }
12980
- if (tag === "a") {
12980
+ if (tag2 === "a") {
12981
12981
  if (attrs.href?.startsWith("#")) props2.action = { actionId: "himi.open", params: { screenId: attrs.href.slice(1) } };
12982
12982
  else if (/^https:\/\//.test(attrs.href ?? "")) {
12983
12983
  requiredCapabilities2.add("open_url");
@@ -13192,7 +13192,7 @@ function componentAuthoringReference() {
13192
13192
  }
13193
13193
  const examples = {};
13194
13194
  const pages2 = {};
13195
- const lines2 = ["# Native components", "", `Catalog: ${catalog.version}. Search by native type or himi-* tag.`, "", "## Use this reference", "", "Run `himi hhp profile --content . --json` first. The app profile is the intersection of enabled surfaces and is authoritative for eligibility. This complete catalog includes components unavailable in your app. Compilation support is not proof of native renderer, hardware or optional module availability.", "", "Examples demonstrate valid syntax and minimal required props; fill meaningful content/data and use real action handlers. Structured child JSON is for schema witnesses; author ordinary content with HTML children and named slots. Example navigation assumes registered screen home. Controlled examples require the state/policy described below.", "", "## Semantic HTML mapping", "", "| HTML | Native type |", "| --- | --- |", ...Object.entries(semantic).map(([tag, type2]) => `| ${tag} | ${type2} |`), "", "CSS flex/grid may change container layout types. Input checkbox/range have special native mappings; inspect their generated descriptor.", "", "## Component index", "", ...Object.entries(catalog.components).map(([name, entry]) => `- [${name} \u2014 ${entry.tag}](#${name.toLowerCase()})`), ""];
13195
+ const lines2 = ["# Native components", "", `Catalog: ${catalog.version}. Search by native type or himi-* tag.`, "", "## Use this reference", "", "Run `himi hhp profile --content . --json` first. The app profile is the intersection of enabled surfaces and is authoritative for eligibility. This complete catalog includes components unavailable in your app. Compilation support is not proof of native renderer, hardware or optional module availability.", "", "Examples demonstrate valid syntax and minimal required props; fill meaningful content/data and use real action handlers. Structured child JSON is for schema witnesses; author ordinary content with HTML children and named slots. Example navigation assumes registered screen home. Controlled examples require the state/policy described below.", "", "## Semantic HTML mapping", "", "| HTML | Native type |", "| --- | --- |", ...Object.entries(semantic).map(([tag2, type2]) => `| ${tag2} | ${type2} |`), "", "CSS flex/grid may change container layout types. Input checkbox/range have special native mappings; inspect their generated descriptor.", "", "## Component index", "", ...Object.entries(catalog.components).map(([name, entry]) => `- [${name} \u2014 ${entry.tag}](#${name.toLowerCase()})`), ""];
13196
13196
  for (const [name, entry] of Object.entries(catalog.components)) {
13197
13197
  const start2 = lines2.length;
13198
13198
  const props2 = { ...sample(entry.propsSchema ?? { type: "object" }) };
@@ -18319,15 +18319,15 @@ __export(locale_exports, {
18319
18319
  resolveAppLocale: () => resolveAppLocale,
18320
18320
  shipsLocale: () => shipsLocale
18321
18321
  });
18322
- function primarySubtag(tag) {
18323
- const primary = (tag ?? "").trim().split(/[-_]/)[0].toLowerCase();
18322
+ function primarySubtag(tag2) {
18323
+ const primary = (tag2 ?? "").trim().split(/[-_]/)[0].toLowerCase();
18324
18324
  return LANGUAGE_ALIASES[primary] ?? primary;
18325
18325
  }
18326
- function isSupportedLocale(tag) {
18327
- return SUPPORTED_LOCALES.includes(tag);
18326
+ function isSupportedLocale(tag2) {
18327
+ return SUPPORTED_LOCALES.includes(tag2);
18328
18328
  }
18329
- function coerceSupportedLocale(tag) {
18330
- const t2 = primarySubtag(tag);
18329
+ function coerceSupportedLocale(tag2) {
18330
+ const t2 = primarySubtag(tag2);
18331
18331
  return isSupportedLocale(t2) ? t2 : void 0;
18332
18332
  }
18333
18333
  function isRTL(locale) {
@@ -18336,8 +18336,8 @@ function isRTL(locale) {
18336
18336
  function layoutDirection(locale) {
18337
18337
  return isRTL(locale) ? "rtl" : "ltr";
18338
18338
  }
18339
- function shipsLocale(app2, tag) {
18340
- const t2 = coerceSupportedLocale(tag);
18339
+ function shipsLocale(app2, tag2) {
18340
+ const t2 = coerceSupportedLocale(tag2);
18341
18341
  if (!t2) return false;
18342
18342
  if (t2 === (coerceSupportedLocale(app2?.default) ?? "en")) return true;
18343
18343
  const list5 = app2?.translations;
@@ -18373,10 +18373,10 @@ function availableLocales(app2) {
18373
18373
  if (t2 && !tags.includes(t2)) tags.push(t2);
18374
18374
  }
18375
18375
  }
18376
- return tags.map((tag) => ({ tag, nativeName: LOCALE_NATIVE_NAMES[tag] ?? tag, dir: layoutDirection(tag) }));
18376
+ return tags.map((tag2) => ({ tag: tag2, nativeName: LOCALE_NATIVE_NAMES[tag2] ?? tag2, dir: layoutDirection(tag2) }));
18377
18377
  }
18378
- function parseLocaleSetTag(app2, tag) {
18379
- const raw = (tag ?? "").trim();
18378
+ function parseLocaleSetTag(app2, tag2) {
18379
+ const raw = (tag2 ?? "").trim();
18380
18380
  if (raw.toLowerCase() === LOCALE_SYSTEM) return { ok: true, tag: LOCALE_SYSTEM };
18381
18381
  const t2 = coerceSupportedLocale(raw);
18382
18382
  if (t2 && shipsLocale(app2, t2)) return { ok: true, tag: t2 };
@@ -18487,10 +18487,10 @@ function entriesOf(catalog4) {
18487
18487
  return Object.entries(catalog4);
18488
18488
  }
18489
18489
  function l10nSnapshot(locale, active2, source2) {
18490
- const tag = typeof locale === "string" && locale ? locale : "en";
18490
+ const tag2 = typeof locale === "string" && locale ? locale : "en";
18491
18491
  return {
18492
- locale: tag,
18493
- dir: layoutDirection(tag),
18492
+ locale: tag2,
18493
+ dir: layoutDirection(tag2),
18494
18494
  active: cleanCatalog(entriesOf(active2)),
18495
18495
  source: source2 && source2 !== active2 ? cleanCatalog(entriesOf(source2)) : /* @__PURE__ */ Object.create(null)
18496
18496
  };
@@ -39541,8 +39541,8 @@ var init_wix_cache_policy = __esm({
39541
39541
  });
39542
39542
 
39543
39543
  // ../l10n/pseudo.ts
39544
- function isPseudoLocale(tag) {
39545
- return typeof tag === "string" && PSEUDO_LOCALE_ALIASES.includes(tag.trim().toLowerCase());
39544
+ function isPseudoLocale(tag2) {
39545
+ return typeof tag2 === "string" && PSEUDO_LOCALE_ALIASES.includes(tag2.trim().toLowerCase());
39546
39546
  }
39547
39547
  function accentPlain(text32) {
39548
39548
  let out2 = "";
@@ -39686,10 +39686,10 @@ function pseudoCatalog(source2) {
39686
39686
  function prefersPseudoLocale(acceptLanguage) {
39687
39687
  if (!acceptLanguage) return false;
39688
39688
  const ranked = acceptLanguage.split(",").map((part7, order) => {
39689
- const [tag = "", ...params] = part7.split(";");
39689
+ const [tag2 = "", ...params] = part7.split(";");
39690
39690
  const q4 = params.map((p2) => /^\s*q\s*=\s*([0-9.]+)\s*$/i.exec(p2)?.[1]).find((v2) => v2 !== void 0);
39691
39691
  const weight2 = q4 === void 0 ? 1 : Number(q4);
39692
- return { tag: tag.trim(), weight: Number.isFinite(weight2) ? weight2 : 0, order };
39692
+ return { tag: tag2.trim(), weight: Number.isFinite(weight2) ? weight2 : 0, order };
39693
39693
  }).filter((e2) => e2.tag && e2.weight > 0);
39694
39694
  ranked.sort((x2, y2) => y2.weight - x2.weight || x2.order - y2.order);
39695
39695
  return ranked.length > 0 && isPseudoLocale(ranked[0].tag);
@@ -39705,32 +39705,32 @@ var init_l10n_catalog = __esm({
39705
39705
  import { readFileSync as readFileSync31, existsSync as existsSync33 } from "node:fs";
39706
39706
  import { resolve as resolve27 } from "node:path";
39707
39707
  import { fileURLToPath as fileURLToPath19 } from "node:url";
39708
- function loadCatalog(tag) {
39709
- if (catalogCache.has(tag)) return catalogCache.get(tag);
39710
- const pseudo = isPseudoLocale(tag);
39711
- const path2 = resolve27(ROOT3, `tools/l10n/catalog.${pseudo ? "en" : tag}.json`);
39708
+ function loadCatalog(tag2) {
39709
+ if (catalogCache.has(tag2)) return catalogCache.get(tag2);
39710
+ const pseudo = isPseudoLocale(tag2);
39711
+ const path2 = resolve27(ROOT3, `tools/l10n/catalog.${pseudo ? "en" : tag2}.json`);
39712
39712
  if (pseudo) {
39713
39713
  const map3 = existsSync33(path2) ? sourceMap(pseudoCatalog(parseCatalog(readFileSync31(path2, "utf8")))) : /* @__PURE__ */ new Map();
39714
- catalogCache.set(tag, map3);
39714
+ catalogCache.set(tag2, map3);
39715
39715
  return map3;
39716
39716
  }
39717
39717
  const map2 = existsSync33(path2) ? sourceMap(parseCatalog(readFileSync31(path2, "utf8"))) : /* @__PURE__ */ new Map();
39718
- catalogCache.set(tag, map2);
39718
+ catalogCache.set(tag2, map2);
39719
39719
  return map2;
39720
39720
  }
39721
39721
  function pickLocale(acceptLanguage) {
39722
39722
  if (!acceptLanguage) return null;
39723
39723
  if (prefersPseudoLocale(acceptLanguage)) return PSEUDO_LOCALE;
39724
39724
  const tags = acceptLanguage.split(",").map((s5) => s5.split(";")[0].trim().toLowerCase()).map((s5) => s5.split("-")[0]).filter((s5) => s5.length > 0);
39725
- for (const tag of tags) {
39726
- if (tag === "en") continue;
39727
- const path2 = resolve27(ROOT3, `tools/l10n/catalog.${tag}.json`);
39728
- if (existsSync33(path2)) return tag;
39725
+ for (const tag2 of tags) {
39726
+ if (tag2 === "en") continue;
39727
+ const path2 = resolve27(ROOT3, `tools/l10n/catalog.${tag2}.json`);
39728
+ if (existsSync33(path2)) return tag2;
39729
39729
  }
39730
39730
  return null;
39731
39731
  }
39732
- function translate(node4, tag) {
39733
- return translateWith(node4, loadCatalog(tag));
39732
+ function translate(node4, tag2) {
39733
+ return translateWith(node4, loadCatalog(tag2));
39734
39734
  }
39735
39735
  function translateWith(node4, map2) {
39736
39736
  if (map2.size === 0) return node4;
@@ -52530,9 +52530,9 @@ function keyboardDismissesOnTap(value2) {
52530
52530
  }
52531
52531
  function isTextEntry(el2) {
52532
52532
  if (!el2) return false;
52533
- const tag = el2.tagName;
52534
- if (tag === "TEXTAREA") return true;
52535
- if (tag === "INPUT") {
52533
+ const tag2 = el2.tagName;
52534
+ if (tag2 === "TEXTAREA") return true;
52535
+ if (tag2 === "INPUT") {
52536
52536
  const type2 = el2.type;
52537
52537
  return !["button", "submit", "reset", "checkbox", "radio", "range", "color", "file", "image"].includes(type2);
52538
52538
  }
@@ -59918,13 +59918,13 @@ function apply(els) {
59918
59918
  const attr3 = el2.getAttribute(SL_ATTR) ?? "";
59919
59919
  let r3 = resolved.get(el2);
59920
59920
  if (!r3 || r3.attr !== attr3 || r3.gen !== generation || generation < 0) {
59921
- let tag;
59921
+ let tag2;
59922
59922
  try {
59923
- tag = JSON.parse(attr3);
59923
+ tag2 = JSON.parse(attr3);
59924
59924
  } catch {
59925
59925
  return;
59926
59926
  }
59927
- r3 = { attr: attr3, gen: generation, tag, sc: tag.pin ? null : scroller(el2, tag) };
59927
+ r3 = { attr: attr3, gen: generation, tag: tag2, sc: tag2.pin ? null : scroller(el2, tag2) };
59928
59928
  resolved.set(el2, r3);
59929
59929
  }
59930
59930
  due.push([el2, scrollLinkedValues(r3.tag, r3.sc ? read(r3.sc, r3.tag.axis === "x") : 0)]);
@@ -59946,13 +59946,13 @@ function screenScroller(el2) {
59946
59946
  function railOnly(n2) {
59947
59947
  return /(auto|scroll|overlay)/.test(n2.style.overflowX) && !n2.style.overflowY && !n2.style.overflow;
59948
59948
  }
59949
- function scroller(el2, tag) {
59950
- const x2 = tag.axis === "x";
59949
+ function scroller(el2, tag2) {
59950
+ const x2 = tag2.axis === "x";
59951
59951
  let sc;
59952
- if (!tag.source) sc = screenScroller(el2);
59952
+ if (!tag2.source) sc = screenScroller(el2);
59953
59953
  else {
59954
59954
  let host = el2.parentElement;
59955
- while (host && host.getAttribute("data-component-id") !== tag.source) host = host.parentElement;
59955
+ while (host && host.getAttribute("data-component-id") !== tag2.source) host = host.parentElement;
59956
59956
  if (!host || !SOURCE_TYPES.has(host.getAttribute("data-component-type") ?? "")) return null;
59957
59957
  const scrollers = [host, ...Array.from(host.children)].filter((n2) => n2 === host || !n2.hasAttribute("data-component-type"));
59958
59958
  const own6 = scrollers.find((n2) => scrollableOn(n2, x2));
@@ -62192,8 +62192,8 @@ var init_pdf = __esm({
62192
62192
  }
62193
62193
  };
62194
62194
  module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it2) {
62195
- var O2, tag, result;
62196
- return it2 === void 0 ? "Undefined" : it2 === null ? "Null" : typeof (tag = tryGet(O2 = $Object(it2), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O2) : (result = classofRaw(O2)) === "Object" && isCallable(O2.callee) ? "Arguments" : result;
62195
+ var O2, tag2, result;
62196
+ return it2 === void 0 ? "Undefined" : it2 === null ? "Null" : typeof (tag2 = tryGet(O2 = $Object(it2), TO_STRING_TAG)) == "string" ? tag2 : CORRECT_ARGUMENTS ? classofRaw(O2) : (result = classofRaw(O2)) === "Object" && isCallable(O2.callee) ? "Arguments" : result;
62197
62197
  };
62198
62198
  },
62199
62199
  /***/
@@ -77825,19 +77825,19 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
77825
77825
  this.compose();
77826
77826
  this.#endKnockoutElement(started);
77827
77827
  }
77828
- markPoint(opIdx, tag) {
77828
+ markPoint(opIdx, tag2) {
77829
77829
  }
77830
- markPointProps(opIdx, tag, properties) {
77830
+ markPointProps(opIdx, tag2, properties) {
77831
77831
  }
77832
- beginMarkedContent(opIdx, tag) {
77832
+ beginMarkedContent(opIdx, tag2) {
77833
77833
  this.dependencyTracker?.beginMarkedContent(opIdx);
77834
77834
  this.markedContentStack.push({
77835
77835
  visible: true
77836
77836
  });
77837
77837
  }
77838
- beginMarkedContentProps(opIdx, tag, properties) {
77838
+ beginMarkedContentProps(opIdx, tag2, properties) {
77839
77839
  this.dependencyTracker?.beginMarkedContent(opIdx);
77840
- if (tag === "OC") {
77840
+ if (tag2 === "OC") {
77841
77841
  this.markedContentStack.push({
77842
77842
  visible: this.optionalContentConfig.isVisible(properties)
77843
77843
  });
@@ -154724,9 +154724,9 @@ function isWellFormedAppParam(app2) {
154724
154724
  }
154725
154725
  function sourceTranslationKeys(state) {
154726
154726
  if (!state.app) return void 0;
154727
- const tag = uiConfig(state.app.module.config).locale?.default ?? "en";
154728
- if (!/^[a-z]{2,3}(-[A-Za-z0-9]{1,8})?$/.test(tag)) return /* @__PURE__ */ new Set();
154729
- const path2 = resolve34(state.app.dir, "l10n", `${tag}.json`);
154727
+ const tag2 = uiConfig(state.app.module.config).locale?.default ?? "en";
154728
+ if (!/^[a-z]{2,3}(-[A-Za-z0-9]{1,8})?$/.test(tag2)) return /* @__PURE__ */ new Set();
154729
+ const path2 = resolve34(state.app.dir, "l10n", `${tag2}.json`);
154730
154730
  if (!existsSync40(path2)) return /* @__PURE__ */ new Set();
154731
154731
  try {
154732
154732
  return new Set(keyMap(parseCatalog(readFileSync43(path2, "utf8")), { sourceFallback: true }).keys());
@@ -154738,13 +154738,13 @@ function renderL10nFor(state, locale) {
154738
154738
  if (typeof locale !== "string" || !state.app) return void 0;
154739
154739
  const pseudo = isPseudoLocale(locale);
154740
154740
  const sourceLocale = uiConfig(state.app.module.config).locale?.default ?? "en";
154741
- const tag = pseudo ? sourceLocale : locale.trim();
154742
- if (!/^[a-z]{2,3}(-[A-Za-z0-9]{1,8})?$/.test(tag)) return void 0;
154743
- const path2 = resolve34(state.app.dir, "l10n", `${tag}.json`);
154741
+ const tag2 = pseudo ? sourceLocale : locale.trim();
154742
+ if (!/^[a-z]{2,3}(-[A-Za-z0-9]{1,8})?$/.test(tag2)) return void 0;
154743
+ const path2 = resolve34(state.app.dir, "l10n", `${tag2}.json`);
154744
154744
  if (!existsSync40(path2)) return void 0;
154745
154745
  try {
154746
154746
  const parsed = parseCatalog(readFileSync43(path2, "utf8"));
154747
- return { catalog: keyMap(pseudo ? pseudoCatalog(parsed) : parsed, { sourceFallback: tag === sourceLocale }), localeTag: pseudo ? PSEUDO_LOCALE : tag };
154747
+ return { catalog: keyMap(pseudo ? pseudoCatalog(parsed) : parsed, { sourceFallback: tag2 === sourceLocale }), localeTag: pseudo ? PSEUDO_LOCALE : tag2 };
154748
154748
  } catch {
154749
154749
  return void 0;
154750
154750
  }
@@ -154752,21 +154752,21 @@ function renderL10nFor(state, locale) {
154752
154752
  function handleL10nRequest(req, res, state) {
154753
154753
  const u2 = new URL(req.url ?? "", "http://localhost");
154754
154754
  const app2 = (u2.searchParams.get("app") ?? "").trim();
154755
- let tag = (u2.searchParams.get("tag") ?? "").trim();
154755
+ let tag2 = (u2.searchParams.get("tag") ?? "").trim();
154756
154756
  const cors = { "access-control-allow-origin": "*" };
154757
154757
  if (!isWellFormedAppParam(app2)) {
154758
154758
  return sendJson(res, 400, { error: "bad_app", hint: "pass ?app=<kebab-app-name>&tag=<locale>" }, cors);
154759
154759
  }
154760
- if (!/^[a-z]{2}(-[A-Za-z0-9]+)?$/.test(tag)) {
154760
+ if (!/^[a-z]{2}(-[A-Za-z0-9]+)?$/.test(tag2)) {
154761
154761
  return sendJson(res, 400, { error: "bad_tag", hint: "pass a BCP-47 primary subtag, e.g. tag=he" }, cors);
154762
154762
  }
154763
154763
  if (!state.app || !servedAppNameMatches(app2, state.app.name)) {
154764
154764
  return sendJson(res, 404, { error: "unknown_app", app: app2 }, cors);
154765
154765
  }
154766
154766
  const sourceLocale = uiConfig(state.app.module.config).locale?.default ?? "en";
154767
- if (isPseudoLocale(tag) || tag === sourceLocale && prefersPseudoLocale(String(req.headers["accept-language"] ?? ""))) tag = PSEUDO_LOCALE;
154768
- const pseudo = tag === PSEUDO_LOCALE;
154769
- const path2 = resolve34(state.app.dir, "l10n", `${pseudo ? sourceLocale : tag}.json`);
154767
+ if (isPseudoLocale(tag2) || tag2 === sourceLocale && prefersPseudoLocale(String(req.headers["accept-language"] ?? ""))) tag2 = PSEUDO_LOCALE;
154768
+ const pseudo = tag2 === PSEUDO_LOCALE;
154769
+ const path2 = resolve34(state.app.dir, "l10n", `${pseudo ? sourceLocale : tag2}.json`);
154770
154770
  if (!existsSync40(path2)) {
154771
154771
  res.writeHead(204, cors);
154772
154772
  res.end();
@@ -154776,12 +154776,12 @@ function handleL10nRequest(req, res, state) {
154776
154776
  try {
154777
154777
  const parsed = parseCatalog(readFileSync43(path2, "utf8"));
154778
154778
  messages = Object.fromEntries(
154779
- keyMap(pseudo ? pseudoCatalog(parsed) : parsed, { sourceFallback: tag === sourceLocale })
154779
+ keyMap(pseudo ? pseudoCatalog(parsed) : parsed, { sourceFallback: tag2 === sourceLocale })
154780
154780
  );
154781
154781
  } catch {
154782
- return sendJson(res, 500, { error: "catalog_unreadable", app: app2, tag }, cors);
154782
+ return sendJson(res, 500, { error: "catalog_unreadable", app: app2, tag: tag2 }, cors);
154783
154783
  }
154784
- const body = JSON.stringify({ app: app2, tag, messages });
154784
+ const body = JSON.stringify({ app: app2, tag: tag2, messages });
154785
154785
  const etag = makeEtag(body);
154786
154786
  if (req.headers["if-none-match"] === etag) {
154787
154787
  res.writeHead(304, { etag, ...cors });
@@ -158641,9 +158641,9 @@ var init_wix_placeholders = __esm({
158641
158641
  import { existsSync as existsSync42, readFileSync as readFileSync45 } from "node:fs";
158642
158642
  import { join as join37, relative as relative10, isAbsolute as isAbsolute4 } from "node:path";
158643
158643
  function pinsSingleLanguage(locale) {
158644
- const tag = locale?.default;
158645
- if (!tag || tag === "en" || !locale?.pin) return false;
158646
- return !locale.translations?.some((target) => target !== tag);
158644
+ const tag2 = locale?.default;
158645
+ if (!tag2 || tag2 === "en" || !locale?.pin) return false;
158646
+ return !locale.translations?.some((target) => target !== tag2);
158647
158647
  }
158648
158648
  function pinnedLanguageSwap(locale, appDir3) {
158649
158649
  if (!pinsSingleLanguage(locale)) return void 0;
@@ -159186,9 +159186,9 @@ function serializationProblem(value2, at2 = "result") {
159186
159186
  if (!v2 || typeof v2 !== "object") return null;
159187
159187
  if (seen.has(v2)) return { fatal: true, what: `a cycle at ${path2}` };
159188
159188
  if (typeof v2.toJSON === "function") return null;
159189
- const tag = tagOf(v2);
159190
- if (tag === "Map" || tag === "Set" || tag === "WeakMap" || tag === "WeakSet") {
159191
- return { fatal: false, what: `a ${tag} at ${path2} (JSON sends {})` };
159189
+ const tag2 = tagOf(v2);
159190
+ if (tag2 === "Map" || tag2 === "Set" || tag2 === "WeakMap" || tag2 === "WeakSet") {
159191
+ return { fatal: false, what: `a ${tag2} at ${path2} (JSON sends {})` };
159192
159192
  }
159193
159193
  seen.add(v2);
159194
159194
  try {
@@ -163344,8 +163344,8 @@ function l10nLintOptions(locale, appDir3) {
163344
163344
  if (!locale || !enforce || enforce === "off") return void 0;
163345
163345
  const tags = (locale.translations ?? []).filter((t2) => t2 !== locale.default);
163346
163346
  const catalog4 = /* @__PURE__ */ new Set();
163347
- for (const tag of tags) {
163348
- const path2 = join38(appDir3, "l10n", `${tag}.json`);
163347
+ for (const tag2 of tags) {
163348
+ const path2 = join38(appDir3, "l10n", `${tag2}.json`);
163349
163349
  if (!existsSync43(path2)) continue;
163350
163350
  try {
163351
163351
  const parsed = JSON.parse(readFileSync46(path2, "utf8"));
@@ -163360,10 +163360,10 @@ function l10nLintOptions(locale, appDir3) {
163360
163360
  return { enforce, catalog: catalog4, locales: tags };
163361
163361
  }
163362
163362
  function sourceTranslationKeys2(locale, appDir3) {
163363
- const tag = locale?.default || "en";
163364
- if (!/^[a-z]{2,3}(-[A-Za-z0-9]{1,8})?$/.test(tag)) return /* @__PURE__ */ new Set();
163363
+ const tag2 = locale?.default || "en";
163364
+ if (!/^[a-z]{2,3}(-[A-Za-z0-9]{1,8})?$/.test(tag2)) return /* @__PURE__ */ new Set();
163365
163365
  const l10nDir = join38(appDir3, "l10n");
163366
- const path2 = join38(l10nDir, `${tag}.json`);
163366
+ const path2 = join38(l10nDir, `${tag2}.json`);
163367
163367
  if (!existsSync43(path2)) return /* @__PURE__ */ new Set();
163368
163368
  try {
163369
163369
  const realDir = realpathSync6(l10nDir);
@@ -163380,13 +163380,13 @@ async function bakeCatalogs(app2, locale, fetchCatalog, putDoc) {
163380
163380
  const declared = locale?.translations ?? [];
163381
163381
  const source2 = locale?.default ?? "en";
163382
163382
  const tags = [.../* @__PURE__ */ new Set([source2, ...declared])];
163383
- for (const tag of tags) {
163384
- const text32 = await fetchCatalog(tag);
163383
+ for (const tag2 of tags) {
163384
+ const text32 = await fetchCatalog(tag2);
163385
163385
  if (!text32) continue;
163386
163386
  if (!declared.length && !servesMessages(text32)) continue;
163387
163387
  const hash3 = sha2563(text32);
163388
163388
  await putDoc(app2, hash3, text32);
163389
- out2[tag] = hash3;
163389
+ out2[tag2] = hash3;
163390
163390
  }
163391
163391
  return out2;
163392
163392
  }
@@ -164810,9 +164810,9 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
164810
164810
  Object.assign(catalogs, await bakeCatalogs(
164811
164811
  app2,
164812
164812
  config.locale,
164813
- async (tag) => {
164813
+ async (tag2) => {
164814
164814
  const res = await devFetch(
164815
- `${base2}/v1/l10n?app=${encodeURIComponent(app2)}&tag=${encodeURIComponent(tag)}`,
164815
+ `${base2}/v1/l10n?app=${encodeURIComponent(app2)}&tag=${encodeURIComponent(tag2)}`,
164816
164816
  { headers: { "X-Himalaya-App": app2 } }
164817
164817
  );
164818
164818
  return res.status === 200 ? await res.text() : null;
@@ -173411,7 +173411,7 @@ var init_Expression = __esm({
173411
173411
  throw new Error(`Invalid namespace in pattern: ${part7}`);
173412
173412
  }
173413
173413
  }
173414
- let tag = void 0;
173414
+ let tag2 = void 0;
173415
173415
  let positionMatch = null;
173416
173416
  if (tagAndPosition.includes(":")) {
173417
173417
  const colonIndex = tagAndPosition.lastIndexOf(":");
@@ -173419,18 +173419,18 @@ var init_Expression = __esm({
173419
173419
  const posPart = tagAndPosition.substring(colonIndex + 1).trim();
173420
173420
  const isPositionKeyword = ["first", "last", "odd", "even"].includes(posPart) || /^nth\(\d+\)$/.test(posPart);
173421
173421
  if (isPositionKeyword) {
173422
- tag = tagPart;
173422
+ tag2 = tagPart;
173423
173423
  positionMatch = posPart;
173424
173424
  } else {
173425
- tag = tagAndPosition;
173425
+ tag2 = tagAndPosition;
173426
173426
  }
173427
173427
  } else {
173428
- tag = tagAndPosition;
173428
+ tag2 = tagAndPosition;
173429
173429
  }
173430
- if (!tag) {
173430
+ if (!tag2) {
173431
173431
  throw new Error(`Invalid segment pattern: ${part7}`);
173432
173432
  }
173433
- segment3.tag = tag;
173433
+ segment3.tag = tag2;
173434
173434
  if (namespace) {
173435
173435
  segment3.namespace = namespace;
173436
173436
  }
@@ -173532,12 +173532,12 @@ var init_ExpressionSet = __esm({
173532
173532
  }
173533
173533
  const depth = expression.length;
173534
173534
  const lastSeg = expression.segments[expression.segments.length - 1];
173535
- const tag = lastSeg?.tag;
173536
- if (!tag || tag === "*") {
173535
+ const tag2 = lastSeg?.tag;
173536
+ if (!tag2 || tag2 === "*") {
173537
173537
  if (!this._wildcardByDepth.has(depth)) this._wildcardByDepth.set(depth, []);
173538
173538
  this._wildcardByDepth.get(depth).push(expression);
173539
173539
  } else {
173540
- const key4 = `${depth}:${tag}`;
173540
+ const key4 = `${depth}:${tag2}`;
173541
173541
  if (!this._byDepthAndTag.has(key4)) this._byDepthAndTag.set(key4, []);
173542
173542
  this._byDepthAndTag.get(key4).push(expression);
173543
173543
  }
@@ -173631,8 +173631,8 @@ var init_ExpressionSet = __esm({
173631
173631
  */
173632
173632
  findMatch(matcher) {
173633
173633
  const depth = matcher.getDepth();
173634
- const tag = matcher.getCurrentTag();
173635
- const exactKey = `${depth}:${tag}`;
173634
+ const tag2 = matcher.getCurrentTag();
173635
+ const exactKey = `${depth}:${tag2}`;
173636
173636
  const exactBucket = this._byDepthAndTag.get(exactKey);
173637
173637
  if (exactBucket) {
173638
173638
  for (let i2 = 0; i2 < exactBucket.length; i2++) {
@@ -176764,7 +176764,7 @@ function sha12(data) {
176764
176764
  }
176765
176765
  function readAt(buf, i2) {
176766
176766
  if (i2 >= buf.length) return void 0;
176767
- const tag = buf[i2];
176767
+ const tag2 = buf[i2];
176768
176768
  let lenOff = i2 + 1;
176769
176769
  if (lenOff >= buf.length) return void 0;
176770
176770
  const first = buf[lenOff];
@@ -176782,7 +176782,7 @@ function readAt(buf, i2) {
176782
176782
  }
176783
176783
  const end2 = lenOff + length2;
176784
176784
  if (end2 > buf.length) return void 0;
176785
- return { tag, contents: buf.subarray(lenOff, end2), end: end2 };
176785
+ return { tag: tag2, contents: buf.subarray(lenOff, end2), end: end2 };
176786
176786
  }
176787
176787
  function readSequence(buf, i2) {
176788
176788
  const t2 = readAt(buf, i2);
@@ -176852,12 +176852,12 @@ var init_pkcs12 = __esm({
176852
176852
  // ../../packages/serve/src/customer-signing-assets.ts
176853
176853
  import { createHash as createHash29 } from "node:crypto";
176854
176854
  function readValue(node4) {
176855
- const [tag, children2] = Object.entries(node4)[0] ?? [];
176856
- if (!tag || !Array.isArray(children2)) return refuse2("customer_profile_invalid");
176857
- if (tag === "true" || tag === "false") return tag === "true";
176858
- if (["string", "key", "date", "data", "integer"].includes(tag)) return String(children2[0]?.["#text"] ?? "");
176859
- if (tag === "array") return children2.map(readValue);
176860
- if (tag !== "dict" || children2.length % 2) return refuse2("customer_profile_invalid");
176855
+ const [tag2, children2] = Object.entries(node4)[0] ?? [];
176856
+ if (!tag2 || !Array.isArray(children2)) return refuse2("customer_profile_invalid");
176857
+ if (tag2 === "true" || tag2 === "false") return tag2 === "true";
176858
+ if (["string", "key", "date", "data", "integer"].includes(tag2)) return String(children2[0]?.["#text"] ?? "");
176859
+ if (tag2 === "array") return children2.map(readValue);
176860
+ if (tag2 !== "dict" || children2.length % 2) return refuse2("customer_profile_invalid");
176861
176861
  const dict = /* @__PURE__ */ Object.create(null);
176862
176862
  for (let index = 0; index < children2.length; index += 2) {
176863
176863
  if (!("key" in children2[index])) return refuse2("customer_profile_invalid");
@@ -185986,26 +185986,26 @@ __export(app_locale_edit_exports, {
185986
185986
  import { existsSync as existsSync60, readFileSync as readFileSync65 } from "node:fs";
185987
185987
  import { join as join53 } from "node:path";
185988
185988
  import ts13 from "typescript";
185989
- function setAppLocaleInConfig(source2, tag, fileName = "config.ts", translations = []) {
185990
- const others = [...new Set(translations)].filter((t2) => t2 !== tag);
185991
- if (tag === SOURCE_LANGUAGE && others.length === 0) return { source: source2, status: "source-language" };
185989
+ function setAppLocaleInConfig(source2, tag2, fileName = "config.ts", translations = []) {
185990
+ const others = [...new Set(translations)].filter((t2) => t2 !== tag2);
185991
+ if (tag2 === SOURCE_LANGUAGE && others.length === 0) return { source: source2, status: "source-language" };
185992
185992
  const file2 = ts13.createSourceFile(fileName, source2, ts13.ScriptTarget.Latest, true, ts13.ScriptKind.TS);
185993
185993
  const app2 = defineAppLiteral(file2);
185994
185994
  if (!app2 || lookup(app2, "locale").kind !== "absent") return { source: source2, status: "kept" };
185995
185995
  const lines2 = others.length > 0 ? [
185996
185996
  "// The app's languages. The release bakes a catalog for each, and the in-app language picker offers exactly these.",
185997
- `locale: { default: ${JSON.stringify(tag)}, translations: ${JSON.stringify(others)} },`
185997
+ `locale: { default: ${JSON.stringify(tag2)}, translations: ${JSON.stringify(others)} },`
185998
185998
  ] : [
185999
185999
  "// The app's language. Pinned, so a device in another language does not change the text or its direction.",
186000
- `locale: { default: ${JSON.stringify(tag)}, pin: true },`
186000
+ `locale: { default: ${JSON.stringify(tag2)}, pin: true },`
186001
186001
  ];
186002
186002
  const splice = appendProperties(app2, file2, lines2);
186003
186003
  return { source: applySplices(source2, [splice]), status: "written" };
186004
186004
  }
186005
- function applyAppLocale(dir, tag, translations = []) {
186005
+ function applyAppLocale(dir, tag2, translations = []) {
186006
186006
  const path2 = join53(dir, "config.ts");
186007
186007
  if (!existsSync60(path2)) return "kept";
186008
- const edit = setAppLocaleInConfig(readFileSync65(path2, "utf8"), tag, "config.ts", translations);
186008
+ const edit = setAppLocaleInConfig(readFileSync65(path2, "utf8"), tag2, "config.ts", translations);
186009
186009
  if (edit.status === "written") writeFileAtomic(path2, edit.source);
186010
186010
  return edit.status;
186011
186011
  }
@@ -186057,8 +186057,8 @@ function publishedCatalogs(template) {
186057
186057
  function isUnpublishedCatalog(template, rel2) {
186058
186058
  const keep = publishedCatalogs(template);
186059
186059
  if (!keep) return false;
186060
- const tag = CATALOG_PATH.exec(rel2.split(sep17).join("/"))?.[1];
186061
- return tag !== void 0 && !keep.includes(tag);
186060
+ const tag2 = CATALOG_PATH.exec(rel2.split(sep17).join("/"))?.[1];
186061
+ return tag2 !== void 0 && !keep.includes(tag2);
186062
186062
  }
186063
186063
  function omitUnpublishedCatalogs(template, files) {
186064
186064
  return Object.fromEntries(Object.entries(files).filter(([rel2]) => !isUnpublishedCatalog(template, rel2)));
@@ -186069,14 +186069,14 @@ function omitUnpublishedCatalogEntries(template, entries) {
186069
186069
  function restoreTemplateCatalogs(appDir3, template, tags, bundledDir = templateSourceDir) {
186070
186070
  if (!template || !publishedCatalogs(template)) return [];
186071
186071
  const restored = [];
186072
- for (const tag of new Set(tags)) {
186073
- if (!/^[a-z]{2,3}$/.test(tag)) continue;
186074
- const target = join54(appDir3, "l10n", `${tag}.json`);
186075
- const source2 = join54(bundledDir(template), "l10n", `${tag}.json`);
186072
+ for (const tag2 of new Set(tags)) {
186073
+ if (!/^[a-z]{2,3}$/.test(tag2)) continue;
186074
+ const target = join54(appDir3, "l10n", `${tag2}.json`);
186075
+ const source2 = join54(bundledDir(template), "l10n", `${tag2}.json`);
186076
186076
  if (existsSync61(target) || !existsSync61(source2)) continue;
186077
186077
  mkdirSync30(dirname37(target), { recursive: true });
186078
186078
  copyFileSync2(source2, target);
186079
- restored.push(tag);
186079
+ restored.push(tag2);
186080
186080
  }
186081
186081
  return restored;
186082
186082
  }
@@ -188515,13 +188515,13 @@ async function initCommand(ctx) {
188515
188515
  io2.error(JSON.stringify({ ok: false, code: "invalid_locale", error: `--locale "${localeFlag2}" is not supported`, hint: `choose one of ${SUPPORTED_LOCALES2.join(", ")}` }));
188516
188516
  return 2;
188517
188517
  }
188518
- const appLocale = localeFlag2 ?? migrationLocale2(resolve51(parentDir, name));
188518
+ const appLocale2 = localeFlag2 ?? migrationLocale2(resolve51(parentDir, name));
188519
188519
  const appLanguages = migrationLanguages2(resolve51(parentDir, name));
188520
188520
  const localeApplied = (dir) => {
188521
- if (appLocale === void 0) return {};
188522
- const config = applyAppLocale2(dir, appLocale, appLanguages);
188523
- const restored = restoreTemplateCatalogs2(dir, template, [appLocale, ...appLanguages]);
188524
- return { locale: { tag: appLocale, config, ...restored.length ? { catalogs: restored } : {}, ...config === "written" && appLanguages.length ? { translations: appLanguages } : {}, from: localeFlag2 === void 0 ? "one-app manifest" : "--locale" } };
188521
+ if (appLocale2 === void 0) return {};
188522
+ const config = applyAppLocale2(dir, appLocale2, appLanguages);
188523
+ const restored = restoreTemplateCatalogs2(dir, template, [appLocale2, ...appLanguages]);
188524
+ return { locale: { tag: appLocale2, config, ...restored.length ? { catalogs: restored } : {}, ...config === "written" && appLanguages.length ? { translations: appLanguages } : {}, from: localeFlag2 === void 0 ? "one-app manifest" : "--locale" } };
188525
188525
  };
188526
188526
  const base44Applied = (dir) => {
188527
188527
  if (base44AppId === void 0) return {};
@@ -191658,15 +191658,15 @@ function requireType() {
191658
191658
  }
191659
191659
  return result;
191660
191660
  }
191661
- function Type22(tag, options2) {
191661
+ function Type22(tag2, options2) {
191662
191662
  options2 = options2 || {};
191663
191663
  Object.keys(options2).forEach(function(name) {
191664
191664
  if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
191665
- throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
191665
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag2 + '" YAML type.');
191666
191666
  }
191667
191667
  });
191668
191668
  this.options = options2;
191669
- this.tag = tag;
191669
+ this.tag = tag2;
191670
191670
  this.kind = options2["kind"] || null;
191671
191671
  this.resolve = options2["resolve"] || function() {
191672
191672
  return true;
@@ -191682,7 +191682,7 @@ function requireType() {
191682
191682
  this.multi = options2["multi"] || false;
191683
191683
  this.styleAliases = compileStyleAliases(options2["styleAliases"] || null);
191684
191684
  if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
191685
- throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
191685
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag2 + '" YAML type.');
191686
191686
  }
191687
191687
  }
191688
191688
  type = Type22;
@@ -193837,16 +193837,16 @@ function requireDumper() {
193837
193837
  const result = {};
193838
193838
  const keys2 = Object.keys(map2);
193839
193839
  for (let index = 0, length2 = keys2.length; index < length2; index += 1) {
193840
- let tag = keys2[index];
193841
- let style = String(map2[tag]);
193842
- if (tag.slice(0, 2) === "!!") {
193843
- tag = "tag:yaml.org,2002:" + tag.slice(2);
193840
+ let tag2 = keys2[index];
193841
+ let style = String(map2[tag2]);
193842
+ if (tag2.slice(0, 2) === "!!") {
193843
+ tag2 = "tag:yaml.org,2002:" + tag2.slice(2);
193844
193844
  }
193845
- const type2 = schema2.compiledTypeMap["fallback"][tag];
193845
+ const type2 = schema2.compiledTypeMap["fallback"][tag2];
193846
193846
  if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
193847
193847
  style = type2.styleAliases[style];
193848
193848
  }
193849
- result[tag] = style;
193849
+ result[tag2] = style;
193850
193850
  }
193851
193851
  return result;
193852
193852
  }
@@ -197266,19 +197266,19 @@ function renderAndroidServicesXml(plan, indent) {
197266
197266
  for (const name of plan.removals?.services ?? []) lines2.push(`${indent}<service android:name="${name}" tools:node="remove" />`);
197267
197267
  for (const name of plan.removals?.receivers ?? []) lines2.push(`${indent}<receiver android:name="${name}" tools:node="remove" />`);
197268
197268
  for (const a3 of plan.activities ?? []) {
197269
- const tag = a3.targetActivity ? "activity-alias" : "activity";
197269
+ const tag2 = a3.targetActivity ? "activity-alias" : "activity";
197270
197270
  const attrs = [`android:name="${a3.name}"`];
197271
197271
  if (a3.targetActivity) attrs.push(`android:targetActivity="${a3.targetActivity}"`);
197272
197272
  attrs.push(`android:exported="${a3.exported}"`);
197273
197273
  if (a3.permission) attrs.push(`android:permission="${a3.permission}"`);
197274
- lines2.push(`${indent}<${tag} ${attrs.join(" ")}>`);
197274
+ lines2.push(`${indent}<${tag2} ${attrs.join(" ")}>`);
197275
197275
  for (const f2 of a3.intentFilters) {
197276
197276
  lines2.push(`${indent} <intent-filter>`);
197277
197277
  for (const act of f2.actions) lines2.push(`${indent} <action android:name="${act}" />`);
197278
197278
  for (const c2 of f2.categories ?? []) lines2.push(`${indent} <category android:name="${c2}" />`);
197279
197279
  lines2.push(`${indent} </intent-filter>`);
197280
197280
  }
197281
- lines2.push(`${indent}</${tag}>`);
197281
+ lines2.push(`${indent}</${tag2}>`);
197282
197282
  }
197283
197283
  return lines2;
197284
197284
  }
@@ -201234,16 +201234,16 @@ async function l10nWorkerSnapshot(dir) {
201234
201234
  }
201235
201235
  async function l10nSourceCatalogFile(dir) {
201236
201236
  const locale = (await loadContentConfigQuietly(dir))?.locale;
201237
- const tag = typeof locale?.default === "string" && locale.default ? locale.default : "en";
201238
- if (!L10N_TAG.test(tag)) return null;
201237
+ const tag2 = typeof locale?.default === "string" && locale.default ? locale.default : "en";
201238
+ if (!L10N_TAG.test(tag2)) return null;
201239
201239
  const l10nDir = resolve59(dir, "l10n");
201240
- const file2 = resolve59(l10nDir, `${tag}.json`);
201240
+ const file2 = resolve59(l10nDir, `${tag2}.json`);
201241
201241
  if (!existsSync87(file2)) return null;
201242
201242
  try {
201243
201243
  const realDir = realpathSync10(l10nDir);
201244
201244
  const realFile = realpathSync10(file2);
201245
201245
  if (!realDir.startsWith(realpathSync10(dir) + sep24) || dirname49(realFile) !== realDir) return null;
201246
- return { tag, text: readFileSync94(realFile, "utf8") };
201246
+ return { tag: tag2, text: readFileSync94(realFile, "utf8") };
201247
201247
  } catch {
201248
201248
  return null;
201249
201249
  }
@@ -206706,8 +206706,8 @@ var init_invite_flow = __esm({
206706
206706
  });
206707
206707
 
206708
206708
  // ../../stdlib/flows/screens/src/store-invite-message.ts
206709
- function storeInviteCopyFor(tag) {
206710
- const language = (tag ?? "en").toLowerCase().split("-")[0];
206709
+ function storeInviteCopyFor(tag2) {
206710
+ const language = (tag2 ?? "en").toLowerCase().split("-")[0];
206711
206711
  const lines2 = STORE_INVITE_TRANSLATIONS[language];
206712
206712
  return { copy: { ...STORE_INVITE_COPY, ...lines2 }, translated: lines2 !== void 0 };
206713
206713
  }
@@ -208696,6 +208696,114 @@ var init_recipes = __esm({
208696
208696
  }
208697
208697
  });
208698
208698
 
208699
+ // ../../core/dev-server/tier5-bundles-src/_shared/app-locale.ts
208700
+ function appLocale() {
208701
+ return tag;
208702
+ }
208703
+ function isIanaTimeZone(value2) {
208704
+ if (typeof value2 !== "string" || !/^(?:UTC|[A-Za-z]+(?:\/[A-Za-z0-9_+-]+)+)$/.test(value2)) return false;
208705
+ if (typeof Intl === "object" && typeof Intl.DateTimeFormat === "function") {
208706
+ try {
208707
+ new Intl.DateTimeFormat("en-US", { timeZone: value2 });
208708
+ return true;
208709
+ } catch {
208710
+ return false;
208711
+ }
208712
+ }
208713
+ return false;
208714
+ }
208715
+ var tag;
208716
+ var init_app_locale = __esm({
208717
+ "../../core/dev-server/tier5-bundles-src/_shared/app-locale.ts"() {
208718
+ init_define_HHP_CATALOG();
208719
+ tag = "en";
208720
+ }
208721
+ });
208722
+
208723
+ // ../../core/dev-server/tier5-bundles-src/_shared/engine-intl.ts
208724
+ function intlFirstDayOfWeek(locale) {
208725
+ try {
208726
+ if (typeof Intl !== "undefined" && typeof Intl.Locale === "function") {
208727
+ const loc = new Intl.Locale(locale);
208728
+ const firstDay = (typeof loc.getWeekInfo === "function" ? loc.getWeekInfo() : loc.weekInfo)?.firstDay;
208729
+ if (typeof firstDay === "number" && Number.isInteger(firstDay) && firstDay >= 1 && firstDay <= 7) return firstDay;
208730
+ }
208731
+ } catch {
208732
+ }
208733
+ return void 0;
208734
+ }
208735
+ function regionOf(locale) {
208736
+ const parts = locale.split(/[-_]/);
208737
+ const region = parts.slice(1).find((p2) => /^(?:[A-Za-z]{2}|\d{3})$/.test(p2));
208738
+ if (region) return region.toUpperCase();
208739
+ if (parts[0]?.toLowerCase() === "zh" && parts.some((p2) => p2.toLowerCase() === "hant")) return "TW";
208740
+ return LIKELY_REGION[(parts[0] ?? "").toLowerCase()] ?? "";
208741
+ }
208742
+ function firstWeekdayOf(locale = appLocale()) {
208743
+ const firstDay = intlFirstDayOfWeek(locale);
208744
+ if (firstDay !== void 0) return firstDay % 7;
208745
+ const region = regionOf(locale);
208746
+ if (SUNDAY_REGIONS.has(region)) return 0;
208747
+ if (SATURDAY_REGIONS.has(region)) return 6;
208748
+ if (FRIDAY_REGIONS.has(region)) return 5;
208749
+ return MONDAY;
208750
+ }
208751
+ var CURRENCY_SYMBOL, KNOWN_SYMBOLS, MONDAY, SUNDAY_REGIONS, SATURDAY_REGIONS, FRIDAY_REGIONS, LIKELY_REGION;
208752
+ var init_engine_intl = __esm({
208753
+ "../../core/dev-server/tier5-bundles-src/_shared/engine-intl.ts"() {
208754
+ init_define_HHP_CATALOG();
208755
+ init_app_locale();
208756
+ CURRENCY_SYMBOL = {
208757
+ USD: "$",
208758
+ EUR: "\u20AC",
208759
+ GBP: "\xA3",
208760
+ ILS: "\u20AA",
208761
+ JPY: "\xA5",
208762
+ CAD: "CA$",
208763
+ AUD: "A$"
208764
+ };
208765
+ KNOWN_SYMBOLS = new Set(Object.values(CURRENCY_SYMBOL));
208766
+ MONDAY = 1;
208767
+ SUNDAY_REGIONS = new Set("AG AS BD BR BS BT BW BZ CA CN CO DM DO ET GT GU HK HN ID IL IN JM JP KE KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE VI WS YE ZA ZW".split(" "));
208768
+ SATURDAY_REGIONS = new Set("AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".split(" "));
208769
+ FRIDAY_REGIONS = /* @__PURE__ */ new Set(["MV"]);
208770
+ LIKELY_REGION = {
208771
+ en: "US",
208772
+ he: "IL",
208773
+ iw: "IL",
208774
+ ar: "EG",
208775
+ pt: "BR",
208776
+ ja: "JP",
208777
+ zh: "CN",
208778
+ ko: "KR",
208779
+ hi: "IN",
208780
+ bn: "BD",
208781
+ th: "TH",
208782
+ id: "ID",
208783
+ fa: "IR",
208784
+ ur: "PK",
208785
+ my: "MM",
208786
+ km: "KH",
208787
+ lo: "LA",
208788
+ ne: "NP",
208789
+ am: "ET",
208790
+ mr: "IN",
208791
+ ta: "IN",
208792
+ te: "IN",
208793
+ gu: "IN",
208794
+ kn: "IN",
208795
+ ml: "IN",
208796
+ pa: "IN",
208797
+ fil: "PH",
208798
+ tl: "PH",
208799
+ zu: "ZA",
208800
+ dz: "BT",
208801
+ dv: "MV",
208802
+ ps: "AF"
208803
+ };
208804
+ }
208805
+ });
208806
+
208699
208807
  // ../../stdlib/flows/screens/src/podcast.ts
208700
208808
  function publicHttpHost(raw) {
208701
208809
  if (!raw || raw.length > MAX_URL_LENGTH || CONTROL.test(raw)) return "";
@@ -208988,6 +209096,9 @@ function plansSection(id, s5, index, ctx, options2) {
208988
209096
  function textAlign(alignment) {
208989
209097
  return alignment === "center" ? "center" : alignment === "right" || alignment === "end" ? "trailing" : "leading";
208990
209098
  }
209099
+ function weekFirstDayOf(locale) {
209100
+ return locale ? String(firstWeekdayOf(locale)) : void 0;
209101
+ }
208991
209102
  function membersDirectory(id, s5, index, ctx) {
208992
209103
  const svc = ctx.uses("members", `members${index}`, { showRole: true, showActivity: true, showBadges: true, showFollow: true, letterBands: true });
208993
209104
  return composed2(id, s5, svc, ctx.recipeNodes("members-list", { svc, id, detailScreen: "himi_member" }));
@@ -209533,7 +209644,8 @@ function generateScreens(input) {
209533
209644
  return true;
209534
209645
  }
209535
209646
  return claimed.params[key4] === value2;
209536
- }
209647
+ },
209648
+ firstWeekday: weekFirstDayOf(input.homeInvite?.locale)
209537
209649
  };
209538
209650
  const children2 = [];
209539
209651
  elements2.forEach((element) => {
@@ -209976,6 +210088,7 @@ var init_generate = __esm({
209976
210088
  init_define_HHP_CATALOG();
209977
210089
  init_recipes();
209978
210090
  init_recipes();
210091
+ init_engine_intl();
209979
210092
  init_podcast();
209980
210093
  init_tab_ids();
209981
210094
  init_events_section();
@@ -210766,7 +210879,7 @@ var init_generate = __esm({
210766
210879
  const goal = countOf2(obj19(display.defaultWeeklyGoal).value);
210767
210880
  const showTotal = obj19(display.totalNumberOfSessions).show !== false;
210768
210881
  const mode = str15(obj19(st2.progressCalculation).calculationMode).trim();
210769
- ctx.gap(sectionId, type2, `the section counts the member's confirmed bookings that already took place (the rule of My Bookings' "This week"), not the source's tracker service; a weekly goal of ${goal ?? "2"} is the default, a member picks their own from 1 to 14 as in the source but it stays on that member's device (the source keeps it in a private service a member's session cannot call, so it is not shared with the source app or the member's other devices); weeks run Monday to Sunday (the rule of My Bookings), where the source starts the week on the language's first day; the "N of G sessions this week" lines and a See All button to My Bookings are additions the source's card does not show`);
210882
+ ctx.gap(sectionId, type2, `the section counts the member's confirmed bookings that already took place (the rule of My Bookings' "This week"), not the source's tracker service; a weekly goal of ${goal ?? "2"} is the default, a member picks their own from 1 to 14 as in the source but it stays on that member's device (the source keeps it in a private service a member's session cannot call, so it is not shared with the source app or the member's other devices); weeks start on the app language's first day, as in the source; the all-time row reads "All-time sessions", not the source's "Sessions attended in total", because a member cannot read check-ins; the "N of G sessions this week" lines and a See All button to My Bookings are additions the source's card does not show`);
210770
210883
  ctx.gap(sectionId, type2, mode === "all" ? "the source counts every scheduled session in the week, including those still to come; the section counts only those that took place" : "the source counts only sessions marked attended; a visitor cannot read attendance, so the section counts every confirmed session that took place");
210771
210884
  if (obj19(st2.dailyActivity).enabled === true) ctx.gap(sectionId, type2, "the source shows the member's daily activity from Apple Health; the section has no health data");
210772
210885
  const svc = ctx.uses("performanceTracker", `performanceTracker${index}`, { ...goal !== void 0 ? { goal } : {}, showTotal });
@@ -210776,7 +210889,8 @@ var init_generate = __esm({
210776
210889
  if (!title) card2 = withoutNode(card2, `${id}.title`);
210777
210890
  if (!ctx.hasScreen("himi_sign_in")) card2 = withoutNode(card2, `${id}.signin.button`);
210778
210891
  children2.push(card2, ...ctx.optionalRecipe("section-error", { svc, id, action: "load" }));
210779
- return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params: {} } });
210892
+ const params = ctx.firstWeekday !== void 0 ? { firstWeekday: ctx.firstWeekday } : {};
210893
+ return vstack(`${id}.box`, children2, 12, { ...inset(16, 16), onAppear: { actionId: `tier5.${svc}.load`, params } });
210780
210894
  },
210781
210895
  // The programs carousel: the shared programs module in carousel layout, configured from the section's own settings. The source
210782
210896
  // component always offers See All to the programs screen (no setting turns it off), so it is drawn whenever the scaffold can.
@@ -221441,8 +221555,8 @@ function length(n2) {
221441
221555
  bytes2.unshift(v2 & 255);
221442
221556
  return Buffer.from([128 | bytes2.length, ...bytes2]);
221443
221557
  }
221444
- function tlv(tag, value2) {
221445
- return Buffer.concat([Buffer.from([tag]), length(value2.length), value2]);
221558
+ function tlv(tag2, value2) {
221559
+ return Buffer.concat([Buffer.from([tag2]), length(value2.length), value2]);
221446
221560
  }
221447
221561
  function integer(value2) {
221448
221562
  let bytes2;
@@ -221508,10 +221622,10 @@ function readOne(buf, start2, depth) {
221508
221622
  throw new DerError("ASN.1 nested too deeply");
221509
221623
  if (start2 + 2 > buf.length)
221510
221624
  throw new DerError("ASN.1 truncated");
221511
- const tag = buf[start2];
221512
- if ((tag & 31) === 31)
221625
+ const tag2 = buf[start2];
221626
+ if ((tag2 & 31) === 31)
221513
221627
  throw new DerError("multi-byte ASN.1 tags aren't expected here");
221514
- const constructed = (tag & 32) !== 0;
221628
+ const constructed = (tag2 & 32) !== 0;
221515
221629
  let i2 = start2 + 1;
221516
221630
  const first = buf[i2++];
221517
221631
  let len;
@@ -221562,9 +221676,9 @@ function readOne(buf, start2, depth) {
221562
221676
  }
221563
221677
  const contentEnd = len === void 0 ? end2 - 2 : end2;
221564
221678
  let value2 = buf.subarray(contentStart, contentEnd);
221565
- if (constructed && (tag & 31) === TAG.OCTET_STRING)
221679
+ if (constructed && (tag2 & 31) === TAG.OCTET_STRING)
221566
221680
  value2 = Buffer.concat(children2.map((c2) => c2.value));
221567
- return { node: { tag, constructed, raw: buf.subarray(start2, end2), value: value2, children: children2 }, end: end2 };
221681
+ return { node: { tag: tag2, constructed, raw: buf.subarray(start2, end2), value: value2, children: children2 }, end: end2 };
221568
221682
  }
221569
221683
  function parse4(buf) {
221570
221684
  const { node: node4, end: end2 } = readOne(buf, 0, 0);
@@ -221572,12 +221686,12 @@ function parse4(buf) {
221572
221686
  throw new DerError("trailing bytes after ASN.1 value");
221573
221687
  return node4;
221574
221688
  }
221575
- function child2(node4, index, tag) {
221689
+ function child2(node4, index, tag2) {
221576
221690
  const c2 = node4.children[index];
221577
221691
  if (!c2)
221578
221692
  throw new DerError(`ASN.1: no element ${index}`);
221579
- if (tag !== void 0 && c2.tag !== tag)
221580
- throw new DerError(`ASN.1: element ${index} has tag 0x${c2.tag.toString(16)}, expected 0x${tag.toString(16)}`);
221693
+ if (tag2 !== void 0 && c2.tag !== tag2)
221694
+ throw new DerError(`ASN.1: element ${index} has tag 0x${c2.tag.toString(16)}, expected 0x${tag2.toString(16)}`);
221581
221695
  return c2;
221582
221696
  }
221583
221697
  function readOid2(node4) {
@@ -274135,13 +274249,13 @@ ${releaseId}`;
274135
274249
  }
274136
274250
  if (path2 === "/v1/l10n") {
274137
274251
  if (!app2) return json6(400, { error: "missing_app" });
274138
- const tag = (url.searchParams.get("tag") ?? "").trim();
274139
- if (!/^[a-z]{2}(-[A-Za-z0-9]+)?$/.test(tag)) {
274252
+ const tag2 = (url.searchParams.get("tag") ?? "").trim();
274253
+ if (!/^[a-z]{2}(-[A-Za-z0-9]+)?$/.test(tag2)) {
274140
274254
  return json6(400, { error: "bad_tag", hint: "pass a BCP-47 primary subtag, e.g. tag=he" });
274141
274255
  }
274142
274256
  const m2 = pin ? await pinnedManifest(app2, pin) : await manifest2(app2);
274143
274257
  if (!m2) return json6(404, pin ? { error: "release_not_found", app: app2, releaseId: pin } : { error: "no_release", app: app2 });
274144
- const hash3 = m2.catalogs?.[tag];
274258
+ const hash3 = m2.catalogs?.[tag2];
274145
274259
  if (!hash3) return new Response(null, { status: 204 });
274146
274260
  if (!store.getDoc) return json6(501, { error: "docs_unsupported" });
274147
274261
  const bytes2 = await store.getDoc(app2, hash3);
@@ -274445,7 +274559,7 @@ function embedManifest(assets) {
274445
274559
  });
274446
274560
  }
274447
274561
  const html = new TextDecoder().decode(assetBytes(index)).replace(/(=|url\()(["']?)\/preview\//g, "$1$2");
274448
- const attr3 = (tag, name) => tag.match(new RegExp(`\\s${name}=["']([^"']+)["']`, "i"))?.[1];
274562
+ const attr3 = (tag2, name) => tag2.match(new RegExp(`\\s${name}=["']([^"']+)["']`, "i"))?.[1];
274449
274563
  const script2 = [...html.matchAll(/<script\b[^>]*>/gi)].map((m2) => m2[0]).filter((t2) => /type=["']module["']/i.test(t2)).map((t2) => attr3(t2, "src")).find(Boolean);
274450
274564
  const styles = [...html.matchAll(/<link\b[^>]*>/gi)].map((m2) => m2[0]).filter((t2) => /rel=["']stylesheet["']/i.test(t2)).map((t2) => attr3(t2, "href")).filter((h2) => !!h2);
274451
274565
  const css = [...html.matchAll(/<style\b[^>]*>([\s\S]*?)<\/style>/gi)].map((m2) => m2[1]).join("\n");
@@ -274478,13 +274592,13 @@ function stripHandoverParamJs() {
274478
274592
  }
274479
274593
  function parserAssetRefs(html, nonce) {
274480
274594
  const js2 = (s5) => JSON.stringify(s5).replace(/</g, "\\u003c");
274481
- return html.replace(/<script\b[^>]*>\s*<\/script>|<link\b[^>]*>/gi, (tag) => {
274482
- const attr3 = /\b(?:src|href)=(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(tag);
274483
- if (!attr3) return tag;
274595
+ return html.replace(/<script\b[^>]*>\s*<\/script>|<link\b[^>]*>/gi, (tag2) => {
274596
+ const attr3 = /\b(?:src|href)=(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(tag2);
274597
+ if (!attr3) return tag2;
274484
274598
  const ref = attr3[1] ?? attr3[2] ?? attr3[3];
274485
- if (!/^(?:\.\/)?assets\//.test(ref)) return tag;
274599
+ if (!/^(?:\.\/)?assets\//.test(ref)) return tag2;
274486
274600
  const start2 = attr3.index + attr3[0].indexOf(ref);
274487
- return `<script nonce="${nonce}">document.write(${js2(tag.slice(0, start2))}+new URL(${js2(ref)},document.baseURI).href+${js2(tag.slice(start2 + ref.length))})</script>`;
274601
+ return `<script nonce="${nonce}">document.write(${js2(tag2.slice(0, start2))}+new URL(${js2(ref)},document.baseURI).href+${js2(tag2.slice(start2 + ref.length))})</script>`;
274488
274602
  });
274489
274603
  }
274490
274604
  function indexHtml(asset, pathname, creds, handoverAttempted = false) {
@@ -274492,7 +274606,7 @@ function indexHtml(asset, pathname, creds, handoverAttempted = false) {
274492
274606
  const nonce = scriptNonce();
274493
274607
  const raw = new TextDecoder().decode(assetBytes(asset));
274494
274608
  const head2 = `<script nonce="${nonce}">${PREVIEW_BASE_JS}</script><script nonce="${nonce}">${PREVIEW_ENTRY_RECOVERY_JS}</script>` + (creds ? `<script nonce="${nonce}">${previewCredentialsJs(creds)}</script>` : handoverAttempted ? `<script nonce="${nonce}">${stripHandoverParamJs()}</script>` : "");
274495
- const html = parserAssetRefs(raw.replace(/(=|url\()(["']?)\/preview\//g, "$1$2"), nonce).replace(/<head(\s[^>]*)?>/i, (tag) => `${tag}${head2}`);
274609
+ const html = parserAssetRefs(raw.replace(/(=|url\()(["']?)\/preview\//g, "$1$2"), nonce).replace(/<head(\s[^>]*)?>/i, (tag2) => `${tag2}${head2}`);
274496
274610
  return new Response(html, {
274497
274611
  status: 200,
274498
274612
  // The shell only changes on an artifact deploy, and everything it loads is
@@ -274952,55 +275066,55 @@ var init_preview_assets_generated = __esm({
274952
275066
  init_define_HHP_CATALOG();
274953
275067
  init_preview_assets_format();
274954
275068
  PREVIEW_ASSET_MANIFEST = [
274955
- { key: "assets/DashboardHost-Drp6vx1c.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "7853a65d5d3f533c15fb28d960f354423f61b7b5a7aa23cc0d5116501077f200" },
274956
- { key: "assets/DevDrawer-DTw7VsKP.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "996ecd9a7970346276cf8bf65872928350c27d50afda4193bba255fc257ea50d" },
274957
- { key: "assets/IdiomCompare-YzfPuZwh.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "1aa1e0388523df1e9d1e98255d9db45b509e9e7c88c43b120f06729eb0b1b23a" },
274958
- { key: "assets/LightboxViewer-Bu0hk9HG.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15970, sha256: "44cab5544b638cb8ffa97ad1419108ca0d7a37210cc2e171408f1f4cdaa1ee07" },
274959
- { key: "assets/OfflineReadingBar-B5xZBXrw.js", contentType: "application/javascript; charset=utf-8", offset: 37672, length: 1761, sha256: "fea607255b8d6d73e0287c2c66b4f279c7e4a36fa8f151666544577c626b9951" },
274960
- { key: "assets/PhonePreviewControl-0NMbzWz1.js", contentType: "application/javascript; charset=utf-8", offset: 39433, length: 37851, sha256: "d6fba966a006ee920d282392e88a59ca291f3fb6bdc083eb02851201fd3d25b4" },
274961
- { key: "assets/SchemeCompare-C63tBY2s.js", contentType: "application/javascript; charset=utf-8", offset: 77284, length: 1858, sha256: "ffb6628558fe858855c031512a0fcbd68099dace2062c6b10b9cf0601cef075a" },
274962
- { key: "assets/TopBarSearchStates-Dz6qD1NH.js", contentType: "application/javascript; charset=utf-8", offset: 79142, length: 4068, sha256: "0e8072cc119b5be63452c50f98afb371ac1036834ff9abfe3ec1ea8c1e1f3c0b" },
274963
- { key: "assets/WixFrogTelemetrySink-BvSQZcY7.js", contentType: "application/javascript; charset=utf-8", offset: 83210, length: 3586, sha256: "83b2b9fc5ac8e830fd306fcdbddb9acdd2f1d67ecd3e767d7b1c1fc7069ab626" },
275069
+ { key: "assets/DashboardHost-Yz1w8FH6.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "d3697d9ac2f852c8a5d6474249c0fabf6b45dc03f3346819711054a2c3e2a177" },
275070
+ { key: "assets/DevDrawer-B6Si-_5U.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "5614c362d4317ab95c789cc585d8fcc8ceac77a9f38b16198dbae0970528f39b" },
275071
+ { key: "assets/IdiomCompare-DpqHmGxd.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "c2690fc7b1ed9e5c29d5f45d999502611af97d1d812573d72a66dfe5f4702ac6" },
275072
+ { key: "assets/LightboxViewer-C0FGmmqu.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15970, sha256: "689ef101e2033d7a125938cbba22853d8df16e408c52cc269a0297e47eaa083f" },
275073
+ { key: "assets/OfflineReadingBar-C73lYqPk.js", contentType: "application/javascript; charset=utf-8", offset: 37672, length: 1761, sha256: "d7f4df1c98c1dee4f94814f7b3bfae70f5cd6eba4876fcf5f3627949859f6d46" },
275074
+ { key: "assets/PhonePreviewControl-BajnfX_m.js", contentType: "application/javascript; charset=utf-8", offset: 39433, length: 37851, sha256: "d486116a81ca6c847e188a7c4097a070c34e826142a78ad6e9f704bcef6acb42" },
275075
+ { key: "assets/SchemeCompare-B5RledHL.js", contentType: "application/javascript; charset=utf-8", offset: 77284, length: 1858, sha256: "bc29909fe33fda475b9dd266912bdac18405581aad9a7f63c545cea30c1c5a75" },
275076
+ { key: "assets/TopBarSearchStates-BINsLxko.js", contentType: "application/javascript; charset=utf-8", offset: 79142, length: 4068, sha256: "9f2ff41d8b88aae40d8fbd8ad3d0aa9f11a7a9b6edea51f9dd9795898c855da6" },
275077
+ { key: "assets/WixFrogTelemetrySink-DIo9ZUkJ.js", contentType: "application/javascript; charset=utf-8", offset: 83210, length: 3586, sha256: "b949ee2306a5753692afd0fba99342d56217a4ce4cf1e67f209af6c6f41bbf7a" },
274964
275078
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 86796, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
274965
275079
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 88988, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
274966
- { key: "assets/catalogFontFaces-CiOAr3I1.js", contentType: "application/javascript; charset=utf-8", offset: 124614, length: 1111, sha256: "ff91350913fe0d80a7770dd0f64c3c752e231f1f98879ebbc11dae67d2123ed1" },
275080
+ { key: "assets/catalogFontFaces-D-PpCpnT.js", contentType: "application/javascript; charset=utf-8", offset: 124614, length: 1111, sha256: "c1e8c985e4cd0db625cfb94c336d225a87b9c209e272f67713c5be80da6d771c" },
274967
275081
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 125725, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
274968
- { key: "assets/files-transfer-B4LoKx_9.js", contentType: "application/javascript; charset=utf-8", offset: 128292, length: 6446, sha256: "5f49aa40b6467be459585d24df2951c4220b19ff9e494386b2684d910e22baa9" },
275082
+ { key: "assets/files-transfer-Dc-4WFRe.js", contentType: "application/javascript; charset=utf-8", offset: 128292, length: 6446, sha256: "05a691f01910f3b8f1dfe7c54c328dea5b9aa8441ef685e0ace527573c87d060" },
274969
275083
  { key: "assets/frogActionMap-DzUppDSb.js", contentType: "application/javascript; charset=utf-8", offset: 134738, length: 1172, sha256: "6d59e1dd1c68aaeb2d9927693f6e107c354cc82a611979679c137277f29e14c9" },
274970
- { key: "assets/frogApiRules-Bc9W_G98.js", contentType: "application/javascript; charset=utf-8", offset: 135910, length: 2207, sha256: "87b43fb296fc41d39e9886453f24fe9ed46927cec453c378c57aca755437541b" },
275084
+ { key: "assets/frogApiRules-Bf4aAat_.js", contentType: "application/javascript; charset=utf-8", offset: 135910, length: 2207, sha256: "e080cc1cf391663a962f5de7dbd3bbca89e7d6b2ce758cf64fd1a82229787da6" },
274971
275085
  { key: "assets/frogScreenMap-LM0nfzDQ.js", contentType: "application/javascript; charset=utf-8", offset: 138117, length: 1096, sha256: "991b931a02a029c9c4514f0ccbdc8a07f4cf2168ea3e23ffe5e244327fa05141" },
274972
275086
  { key: "assets/frogScreenNavArgs-mIYDwUYX.js", contentType: "application/javascript; charset=utf-8", offset: 139213, length: 780, sha256: "6c9e52135322e0a752b57ef6f360d71400cb77414b4f29d480230ae174201230" },
274973
275087
  { key: "assets/glassPreviewBrowser-OVmIRgHt.js", contentType: "application/javascript; charset=utf-8", offset: 139993, length: 6800, sha256: "3671697a4f66a1f5f68610fab57d590630be70be934f59675ef1bda9a96e6fe3" },
274974
275088
  { key: "assets/godot-pack-cache-Cuhrw41M.js", contentType: "application/javascript; charset=utf-8", offset: 146793, length: 1626, sha256: "70b16367b8938ebd6eb8494a2b472171dd2acdcb452c52f35f140eb8ede9c0b7" },
274975
275089
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 148419, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
274976
- { key: "assets/index-iW2q5F41.js", contentType: "application/javascript; charset=utf-8", offset: 151123, length: 1745925, sha256: "41cf7689670d8a2e6df17c4c090d29c2a20de2a95a32a2669e7ef5b8160c4693" },
274977
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1897048, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
274978
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1904799, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
274979
- { key: "assets/pdf-BZQfgqN2.js", contentType: "application/javascript; charset=utf-8", offset: 1915330, length: 488215, sha256: "e113c7cdcf8f56ad861b2564505fab2a1975c7a995f92d2f999f9c4ce1a09a40" },
274980
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2403545, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
274981
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2403635, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
274982
- { key: "assets/pdfDocument-CVb0wzJg.js", contentType: "application/javascript; charset=utf-8", offset: 3720669, length: 3836, sha256: "7e6554b0d612cfb4c9c8873ea8b1fbea4a020b6edd2720fd0512cd5e1b290c4e" },
274983
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3724505, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
274984
- { key: "assets/scrollLinkedRuntime-BEn1lJ51.js", contentType: "application/javascript; charset=utf-8", offset: 3726771, length: 2278, sha256: "ccdff797f79a933963484ef4744daf5ee884c6a54b164d593a3e610b50a9393d" },
274985
- { key: "assets/webviewBridgeHost-DmLNk09m.js", contentType: "application/javascript; charset=utf-8", offset: 3729049, length: 9889, sha256: "da8ec3aaadc4a2aea58ac1abd1c9cb1b47c246dd5ee9598333f391de1d4beafd" },
274986
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3738938, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
274987
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3743548, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
274988
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4232132, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
274989
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4323056, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
274990
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4414040, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
274991
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4505020, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
274992
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4595892, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
274993
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4686872, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
274994
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4795508, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
274995
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4904592, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
274996
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 5013640, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
274997
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5121340, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
274998
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5209448, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
274999
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5216266, length: 4924, sha256: "a6fc09fcc80d0ef1e8a62c3fc81eb34ffb51fff20349f22af34a6bb119ee14d4" },
275000
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5221190, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
275001
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5236775, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
275002
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5237946, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
275003
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5262249, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
275090
+ { key: "assets/index-l43LJft1.js", contentType: "application/javascript; charset=utf-8", offset: 151123, length: 1745975, sha256: "4020a0a4e220830600a25e64937b6adaebf7e8a6f2e5513c58ebcf182f92e61a" },
275091
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1897098, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
275092
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1904849, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
275093
+ { key: "assets/pdf-DdwUM4l9.js", contentType: "application/javascript; charset=utf-8", offset: 1915380, length: 488215, sha256: "9521361aa5be10b9a96b96c0ea2f7e157e728874b20de5200879cbd735eefb38" },
275094
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2403595, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
275095
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2403685, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
275096
+ { key: "assets/pdfDocument-DlY2TR_Y.js", contentType: "application/javascript; charset=utf-8", offset: 3720719, length: 3836, sha256: "0e3f94447c9d10160672d6ef7b8396b254a4511268db543271fdabade3550ed9" },
275097
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3724555, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
275098
+ { key: "assets/scrollLinkedRuntime-BFIfW6nD.js", contentType: "application/javascript; charset=utf-8", offset: 3726821, length: 2278, sha256: "90a963c0aedeaff634afb7eef44c940e7d91776ac9da6cd67f9c471fdf3b4551" },
275099
+ { key: "assets/webviewBridgeHost-DYxzUmJu.js", contentType: "application/javascript; charset=utf-8", offset: 3729099, length: 9889, sha256: "00d21e7e90fe94e0a0d577e2c46ffe6ef89d6028fcd3537426a78ac9dcb438f3" },
275100
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3738988, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
275101
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3743598, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
275102
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4232182, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
275103
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4323106, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
275104
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4414090, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
275105
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4505070, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
275106
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4595942, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
275107
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4686922, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
275108
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4795558, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
275109
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4904642, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
275110
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 5013690, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
275111
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5121390, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
275112
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5209498, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
275113
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5216316, length: 4924, sha256: "ce0a829951378fea9d7e91573bb72e78dfcf160608ea3ee1d9b31869c9335f49" },
275114
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5221240, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
275115
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5236825, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
275116
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5237996, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
275117
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5262299, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
275004
275118
  ];
275005
275119
  }
275006
275120
  });
@@ -276550,18 +276664,18 @@ function defaultGitOps(cwd = process.cwd()) {
276550
276664
  return null;
276551
276665
  }
276552
276666
  },
276553
- tagExists(tag) {
276667
+ tagExists(tag2) {
276554
276668
  try {
276555
- return run4(["tag", "--list", tag]).length > 0;
276669
+ return run4(["tag", "--list", tag2]).length > 0;
276556
276670
  } catch {
276557
276671
  return false;
276558
276672
  }
276559
276673
  },
276560
- createTag(tag, message5) {
276561
- run4(["tag", "-a", tag, "-m", message5]);
276674
+ createTag(tag2, message5) {
276675
+ run4(["tag", "-a", tag2, "-m", message5]);
276562
276676
  },
276563
- pushTag(tag) {
276564
- run4(["push", "origin", tag]);
276677
+ pushTag(tag2) {
276678
+ run4(["push", "origin", tag2]);
276565
276679
  }
276566
276680
  };
276567
276681
  }
@@ -292690,29 +292804,29 @@ function convertOneApp(options2) {
292690
292804
  sourceByKey.set(key4, { id: keyOf4(shared ? key4 + "\0" + text32 : text32), text: text32 });
292691
292805
  }
292692
292806
  const catalogs = {};
292693
- for (const tag of [...tags]) {
292694
- const raw = files[tag];
292695
- if (!raw) throw new Error(`convertOneApp: files["${tag}"] is required for a requested tag`);
292807
+ for (const tag2 of [...tags]) {
292808
+ const raw = files[tag2];
292809
+ if (!raw) throw new Error(`convertOneApp: files["${tag2}"] is required for a requested tag`);
292696
292810
  const imported = /* @__PURE__ */ new Map();
292697
292811
  for (const key4 of Object.keys(raw).sort()) {
292698
292812
  const src = sourceByKey.get(key4);
292699
292813
  if (!src) {
292700
- if (tag !== source2) {
292814
+ if (tag2 !== source2) {
292701
292815
  const locales = missing4.get(key4) ?? [];
292702
- locales.push(tag);
292816
+ locales.push(tag2);
292703
292817
  missing4.set(key4, locales);
292704
292818
  }
292705
292819
  continue;
292706
292820
  }
292707
292821
  let translation = "";
292708
- if (tag !== source2) {
292822
+ if (tag2 !== source2) {
292709
292823
  const analysis = analyzePattern(raw[key4]);
292710
- report9(key4, tag, analysis);
292824
+ report9(key4, tag2, analysis);
292711
292825
  translation = analysis.text;
292712
292826
  }
292713
292827
  imported.set(src.id, { source: src.text, key: key4, translation });
292714
292828
  }
292715
- const prior = existing[tag]?.messages ?? {};
292829
+ const prior = existing[tag2]?.messages ?? {};
292716
292830
  const merged = {};
292717
292831
  const finalKey = /* @__PURE__ */ new Map();
292718
292832
  for (const [id, now] of imported) {
@@ -292729,7 +292843,7 @@ function convertOneApp(options2) {
292729
292843
  for (const [id, now] of imported) {
292730
292844
  const key4 = finalKey.get(id);
292731
292845
  if (key4 === void 0 || key4 === now.key || !losesKey(id, key4)) continue;
292732
- staleKeys.push({ tag, id, key: key4, replacedBy: sourceByKey.get(key4).id });
292846
+ staleKeys.push({ tag: tag2, id, key: key4, replacedBy: sourceByKey.get(key4).id });
292733
292847
  finalKey.set(id, now.key);
292734
292848
  changed = true;
292735
292849
  }
@@ -292739,7 +292853,7 @@ function convertOneApp(options2) {
292739
292853
  for (const [id, was] of Object.entries(prior)) {
292740
292854
  if (imported.has(id) || typeof was?.key !== "string" || !was.key || !losesKey(id, was.key)) continue;
292741
292855
  const home2 = sourceByKey.get(was.key);
292742
- staleKeys.push({ tag, id, key: was.key, replacedBy: home2.id });
292856
+ staleKeys.push({ tag: tag2, id, key: was.key, replacedBy: home2.id });
292743
292857
  const { key: _key, keyOrigin: _origin, ...rest } = was;
292744
292858
  stripped.set(id, rest);
292745
292859
  const dest = prior[home2.id];
@@ -292762,7 +292876,7 @@ function convertOneApp(options2) {
292762
292876
  continue;
292763
292877
  }
292764
292878
  if (key4 !== now.key && typeof was.key === "string" && now.key !== void 0) {
292765
- keyConflicts.push({ tag, id, existingKey: was.key, importedKey: now.key });
292879
+ keyConflicts.push({ tag: tag2, id, existingKey: was.key, importedKey: now.key });
292766
292880
  }
292767
292881
  merged[id] = {
292768
292882
  ...was,
@@ -292773,7 +292887,7 @@ function convertOneApp(options2) {
292773
292887
  };
292774
292888
  if (merged[id].key !== was.key) delete merged[id].keyOrigin;
292775
292889
  }
292776
- catalogs[tag] = { $source: tag, messages: merged };
292890
+ catalogs[tag2] = { $source: tag2, messages: merged };
292777
292891
  }
292778
292892
  return {
292779
292893
  catalogs,
@@ -292949,8 +293063,8 @@ async function l10nCommand(ctx) {
292949
293063
  return fail19("locale_file_missing", { error: `no messages_<tag>.json for: ${absent.join(", ")}`, missing: absent, found }, 1);
292950
293064
  }
292951
293065
  const files = {};
292952
- for (const tag of [.../* @__PURE__ */ new Set([source2, ...requested])]) {
292953
- const path2 = fileByTag.get(tag);
293066
+ for (const tag2 of [.../* @__PURE__ */ new Set([source2, ...requested])]) {
293067
+ const path2 = fileByTag.get(tag2);
292954
293068
  let buf;
292955
293069
  try {
292956
293070
  buf = readRegularFile(path2);
@@ -292978,7 +293092,7 @@ async function l10nCommand(ctx) {
292978
293092
  if (bad4.length > 0) {
292979
293093
  return fail19("messages_unreadable", { error: `${relative37(process.cwd(), path2)} has non-string values`, file: path2, keys: bad4.slice(0, 5) }, 1);
292980
293094
  }
292981
- files[tag] = parsed;
293095
+ files[tag2] = parsed;
292982
293096
  }
292983
293097
  const { convertOneApp: convertOneApp2, undeclaredLocales: undeclaredLocales2 } = await Promise.resolve().then(() => (init_import_oneapp(), import_oneapp_exports));
292984
293098
  const existing = {};
@@ -292991,15 +293105,15 @@ async function l10nCommand(ctx) {
292991
293105
  if (unsafe3 !== void 0) {
292992
293106
  return fail19("unsafe_path", { error: `${unsafe3} \u2014 the import does not read or write through links`, hint: "replace the link with a real directory/file inside the app, then re-run" }, 1);
292993
293107
  }
292994
- for (const tag of requested) {
292995
- const path2 = join201(appDir3, "l10n", `${tag}.json`);
293108
+ for (const tag2 of requested) {
293109
+ const path2 = join201(appDir3, "l10n", `${tag2}.json`);
292996
293110
  if (!existsSync160(path2)) continue;
292997
293111
  try {
292998
293112
  const parsed = JSON.parse(readRegularFile(path2).toString("utf8"));
292999
293113
  if (!parsed || typeof parsed !== "object" || !parsed.messages || typeof parsed.messages !== "object") throw new Error("no messages object");
293000
293114
  const badRow = Object.entries(parsed.messages).find(([, v2]) => !v2 || typeof v2 !== "object" || Array.isArray(v2));
293001
293115
  if (badRow) throw new Error(`message "${badRow[0]}" is not an object`);
293002
- existing[tag] = parsed;
293116
+ existing[tag2] = parsed;
293003
293117
  } catch (e2) {
293004
293118
  return fail19("catalog_unreadable", {
293005
293119
  error: `existing catalog ${relative37(process.cwd(), path2)} cannot be parsed \u2014 refusing to overwrite it`,
@@ -293075,10 +293189,10 @@ async function l10nCommand(ctx) {
293075
293189
  if (swapped !== void 0 || l10nReal !== join201(realpathSync23(appDir3), "l10n")) {
293076
293190
  throw new UnsafePath(swapped ?? `${join201(appDir3, "l10n")} resolves outside the app`);
293077
293191
  }
293078
- for (const tag of requested) {
293079
- const path2 = join201(appDir3, "l10n", `${tag}.json`);
293080
- writeCatalog(path2, JSON.stringify(catalogs[tag], null, 2) + "\n");
293081
- written.push({ tag, path: relative37(process.cwd(), path2), count: Object.keys(catalogs[tag].messages).length });
293192
+ for (const tag2 of requested) {
293193
+ const path2 = join201(appDir3, "l10n", `${tag2}.json`);
293194
+ writeCatalog(path2, JSON.stringify(catalogs[tag2], null, 2) + "\n");
293195
+ written.push({ tag: tag2, path: relative37(process.cwd(), path2), count: Object.keys(catalogs[tag2].messages).length });
293082
293196
  }
293083
293197
  } catch (e2) {
293084
293198
  if (isUnsafe2(e2)) return fail19("unsafe_path", { error: `${e2.message} \u2014 nothing more was written`, written }, 1);
@@ -295185,9 +295299,9 @@ function parsePublishedHtml2(html, base2) {
295185
295299
  const lang = /<html\b[^>]*>/i.exec(html);
295186
295300
  if (lang) out2.lang = attr2(lang[0], "lang");
295187
295301
  for (const m2 of html.matchAll(/<meta\b[^>]*>/gi)) {
295188
- const tag = m2[0];
295189
- const key4 = (attr2(tag, "name") ?? attr2(tag, "property") ?? "").toLowerCase();
295190
- const content = attr2(tag, "content");
295302
+ const tag2 = m2[0];
295303
+ const key4 = (attr2(tag2, "name") ?? attr2(tag2, "property") ?? "").toLowerCase();
295304
+ const content = attr2(tag2, "content");
295191
295305
  if (!content) continue;
295192
295306
  if (key4 === "description" || key4 === "og:description") out2.description ??= decodeEntities2(content);
295193
295307
  else if (key4 === "og:site_name" || key4 === "application-name" || key4 === "apple-mobile-web-app-title") out2.siteName ??= decodeEntities2(content);
@@ -295426,8 +295540,8 @@ var init_visitor = __esm({
295426
295540
  MAX_BUNDLES = 4;
295427
295541
  MAX_ROUTES = 80;
295428
295542
  APP_ID4 = /^[a-f0-9]{24}$/;
295429
- attr2 = (tag, name) => {
295430
- const m2 = new RegExp(`\\b${name}\\s*=\\s*("([^"]*)"|'([^']*)')`, "i").exec(tag);
295543
+ attr2 = (tag2, name) => {
295544
+ const m2 = new RegExp(`\\b${name}\\s*=\\s*("([^"]*)"|'([^']*)')`, "i").exec(tag2);
295431
295545
  return m2 ? m2[2] ?? m2[3] : void 0;
295432
295546
  };
295433
295547
  decodeEntities2 = (s5) => s5.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#39;/g, "'").trim();
@@ -299793,25 +299907,6 @@ var init_business_address = __esm({
299793
299907
  }
299794
299908
  });
299795
299909
 
299796
- // ../../core/dev-server/tier5-bundles-src/_shared/app-locale.ts
299797
- function isIanaTimeZone(value2) {
299798
- if (typeof value2 !== "string" || !/^(?:UTC|[A-Za-z]+(?:\/[A-Za-z0-9_+-]+)+)$/.test(value2)) return false;
299799
- if (typeof Intl === "object" && typeof Intl.DateTimeFormat === "function") {
299800
- try {
299801
- new Intl.DateTimeFormat("en-US", { timeZone: value2 });
299802
- return true;
299803
- } catch {
299804
- return false;
299805
- }
299806
- }
299807
- return false;
299808
- }
299809
- var init_app_locale = __esm({
299810
- "../../core/dev-server/tier5-bundles-src/_shared/app-locale.ts"() {
299811
- init_define_HHP_CATALOG();
299812
- }
299813
- });
299814
-
299815
299910
  // ../../stdlib/wix-sdk/rich-content/src/display.ts
299816
299911
  function trimAscii(s5) {
299817
299912
  return s5.replace(/^[\t\n\v\f\r ]+|[\t\n\v\f\r ]+$/g, "");
@@ -303212,7 +303307,7 @@ validate-payments checks site-bound payment evidence and explicit paid-flow deci
303212
303307
  } else languageWarnings.push({ code: "source_language_unavailable", message: `${found.reason ?? "The source language is unknown"}. The source was collected in English: pass --locale <tag> if the app is in another language.` });
303213
303308
  }
303214
303309
  locale ??= "en";
303215
- const languages = options2.languages.filter((tag) => tag !== locale);
303310
+ const languages = options2.languages.filter((tag2) => tag2 !== locale);
303216
303311
  const { languages: _flagLanguages, ...requested } = manifest2.requested;
303217
303312
  manifest2 = { ...manifest2, requested: { ...requested, locale, localeSource, ...languages.length ? { languages } : {} } };
303218
303313
  progress("collecting");
@@ -304919,8 +305014,8 @@ function siteFetchFor(ports) {
304919
305014
  return ports.siteFetch ?? guardedSiteFetch;
304920
305015
  }
304921
305016
  function localeFromSiteLanguage(languageCode) {
304922
- const tag = coerceSupportedLocale(languageCode);
304923
- return tag && tag !== "en" ? { default: tag, pin: true } : void 0;
305017
+ const tag2 = coerceSupportedLocale(languageCode);
305018
+ return tag2 && tag2 !== "en" ? { default: tag2, pin: true } : void 0;
304924
305019
  }
304925
305020
  async function analyzeSite(input, ports) {
304926
305021
  const clientId = input.clientId?.trim() || void 0;