@wix/himalaya-cli 0.1982.0 → 0.1983.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 (60) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/launch-manifest.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +33 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/splash-timeline.d.ts +48 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +70 -7
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +2 -1
  7. package/dist/browser-plane/assets.json +5 -5
  8. package/dist/browser-plane/preview-deferred/{4a6f910bf580b4fbc462abad75f9f9a8274914d66d468efef11bb741e11f834e.bin → dd1ab57b35f99c571d48e6f87b0b43cb84e090091d517c830ea4f3dc02631fbd.bin} +1 -1
  9. package/dist/browser-plane/sw.js +6 -6
  10. package/dist/cli.mjs +1007 -807
  11. package/dist/preview-assets.generated.bin +0 -0
  12. package/guides/sdk-reference.json +1 -1
  13. package/guides/splash-screens.md +107 -41
  14. package/package.json +2 -2
  15. package/templates/beauty-salon/config.ts +13 -3
  16. package/templates/beauty-salon/dev/index.ts +6 -6
  17. package/templates/beauty-salon/tokens.json +5 -0
  18. package/templates/beauty-salon-owner/config.ts +2 -1
  19. package/templates/branded-lite/config.ts +13 -3
  20. package/templates/branded-lite/dev/index.ts +6 -6
  21. package/templates/branded-lite/tokens.json +1 -0
  22. package/templates/community-club/config.ts +13 -3
  23. package/templates/community-club/dev/index.ts +6 -6
  24. package/templates/community-club/tokens.json +5 -0
  25. package/templates/community-club-owner/config.ts +2 -1
  26. package/templates/events-meetups/config.ts +13 -3
  27. package/templates/events-meetups/dev/index.ts +6 -6
  28. package/templates/events-meetups/tokens.json +5 -0
  29. package/templates/events-meetups-owner/config.ts +2 -1
  30. package/templates/gym-fitness/config.ts +13 -3
  31. package/templates/gym-fitness/dev/index.ts +6 -6
  32. package/templates/gym-fitness/tokens.json +5 -0
  33. package/templates/gym-fitness-owner/config.ts +2 -1
  34. package/templates/nonprofit-cause/config.ts +13 -3
  35. package/templates/nonprofit-cause/dev/index.ts +6 -6
  36. package/templates/nonprofit-cause/tokens.json +5 -0
  37. package/templates/nonprofit-cause-owner/config.ts +2 -1
  38. package/templates/owner-lite/config.ts +2 -1
  39. package/templates/personal-fitness-trainer/dev/index.ts +6 -6
  40. package/templates/personal-fitness-trainer/tokens.json +5 -0
  41. package/templates/podcast-creator/config.ts +13 -3
  42. package/templates/podcast-creator/dev/index.ts +6 -6
  43. package/templates/podcast-creator/tokens.json +5 -0
  44. package/templates/podcast-creator-owner/config.ts +2 -1
  45. package/templates/portfolio-creative/config.ts +13 -3
  46. package/templates/portfolio-creative/dev/index.ts +6 -6
  47. package/templates/portfolio-creative/tokens.json +5 -0
  48. package/templates/portfolio-creative-owner/config.ts +2 -1
  49. package/templates/restaurant/config.ts +13 -3
  50. package/templates/restaurant/dev/index.ts +6 -6
  51. package/templates/restaurant/tokens.json +5 -0
  52. package/templates/restaurant-owner/config.ts +2 -1
  53. package/templates/retail-store/config.ts +13 -3
  54. package/templates/retail-store/dev/index.ts +6 -6
  55. package/templates/retail-store/tokens.json +5 -0
  56. package/templates/retail-store-owner/config.ts +2 -1
  57. package/templates/yoga-studio/config.ts +13 -3
  58. package/templates/yoga-studio/dev/index.ts +6 -6
  59. package/templates/yoga-studio/tokens.json +5 -0
  60. package/templates/yoga-studio-owner/config.ts +2 -1
package/dist/cli.mjs CHANGED
@@ -9434,27 +9434,74 @@ var init_paths = __esm({
9434
9434
  }
9435
9435
  });
9436
9436
 
9437
+ // ../native-config/config-ast.ts
9438
+ import ts from "typescript";
9439
+ function parseConfigSource(source2) {
9440
+ return ts.createSourceFile("config.ts", source2, ts.ScriptTarget.Latest, false, ts.ScriptKind.TS);
9441
+ }
9442
+ function collectConsts(file2) {
9443
+ const consts = /* @__PURE__ */ new Map();
9444
+ const collect2 = (node4) => {
9445
+ if (ts.isVariableDeclaration(node4) && ts.isIdentifier(node4.name) && node4.initializer) consts.set(node4.name.text, node4.initializer);
9446
+ ts.forEachChild(node4, collect2);
9447
+ };
9448
+ collect2(file2);
9449
+ return consts;
9450
+ }
9451
+ function propName(p2) {
9452
+ if (!ts.isPropertyAssignment(p2) && !ts.isShorthandPropertyAssignment(p2)) return void 0;
9453
+ return ts.isIdentifier(p2.name) || ts.isStringLiteral(p2.name) ? p2.name.text : void 0;
9454
+ }
9455
+ function makeResolver(consts) {
9456
+ const resolve141 = (e2, depth = 0) => {
9457
+ while (e2 && (ts.isAsExpression(e2) || ts.isSatisfiesExpression(e2) || ts.isParenthesizedExpression(e2))) e2 = e2.expression;
9458
+ return e2 && ts.isIdentifier(e2) && depth < 8 ? resolve141(consts.get(e2.text), depth + 1) : e2;
9459
+ };
9460
+ return resolve141;
9461
+ }
9462
+ function propValue(p2) {
9463
+ if (ts.isPropertyAssignment(p2)) return p2.initializer;
9464
+ if (ts.isShorthandPropertyAssignment(p2)) return p2.name;
9465
+ return void 0;
9466
+ }
9467
+ function isModuleSource(file2) {
9468
+ return file2.statements.some((s5) => ts.isImportDeclaration(s5) || ts.isExportDeclaration(s5) || ts.isExportAssignment(s5) || ts.canHaveModifiers(s5) && (ts.getModifiers(s5) ?? []).some((m2) => m2.kind === ts.SyntaxKind.ExportKeyword));
9469
+ }
9470
+ var init_config_ast = __esm({
9471
+ "../native-config/config-ast.ts"() {
9472
+ init_define_HHP_CATALOG();
9473
+ }
9474
+ });
9475
+
9437
9476
  // ../native-config/splash.ts
9438
9477
  var splash_exports = {};
9439
9478
  __export(splash_exports, {
9440
9479
  ANDROID_COLOR_RES: () => ANDROID_COLOR_RES,
9480
+ ANDROID_LAUNCH_ICON_ART: () => ANDROID_LAUNCH_ICON_ART,
9441
9481
  ANDROID_SPLASH_FILE: () => ANDROID_SPLASH_FILE,
9482
+ ANDROID_SPLASH_ICON_CANVAS_DP: () => ANDROID_SPLASH_ICON_CANVAS_DP,
9483
+ ANDROID_SPLASH_ICON_MASK_DP: () => ANDROID_SPLASH_ICON_MASK_DP,
9442
9484
  ANDROID_SPLASH_PARENT: () => ANDROID_SPLASH_PARENT,
9443
9485
  ANDROID_STYLE_NAME: () => ANDROID_STYLE_NAME,
9444
9486
  DEFAULT_BACKGROUND_TOKEN: () => DEFAULT_BACKGROUND_TOKEN,
9445
9487
  IOS_COLORSET_NAME: () => IOS_COLORSET_NAME,
9488
+ IOS_LAUNCH_ICON_NAME: () => IOS_LAUNCH_ICON_NAME,
9446
9489
  LABEL_IOS_SPLASH: () => LABEL_IOS_SPLASH,
9490
+ LOGO_WIDTH_DEFAULT: () => LOGO_WIDTH_DEFAULT,
9447
9491
  androidColorsXml: () => androidColorsXml,
9448
9492
  androidOptedIn: () => androidOptedIn,
9449
9493
  androidResDir: () => androidResDir,
9450
9494
  androidSplashArtifacts: () => androidSplashArtifacts,
9451
9495
  androidSplashNightXml: () => androidSplashNightXml,
9452
9496
  androidSplashXml: () => androidSplashXml,
9497
+ appearanceSplashColors: () => appearanceSplashColors,
9453
9498
  assertNoStoryboard: () => assertNoStoryboard,
9454
9499
  iosAssetCatalog: () => iosAssetCatalog,
9455
9500
  iosColorsetContents: () => iosColorsetContents,
9501
+ iosLaunchIconContents: () => iosLaunchIconContents,
9456
9502
  iosSplashArtifacts: () => iosSplashArtifacts,
9457
9503
  isNativeConfigInputToken: () => isNativeConfigInputToken,
9504
+ launchIconGeometry: () => launchIconGeometry,
9458
9505
  macosSplashArtifacts: () => macosSplashArtifacts,
9459
9506
  nativeConfigInputTokens: () => nativeConfigInputTokens,
9460
9507
  normalizeHex: () => normalizeHex,
@@ -9465,12 +9512,153 @@ __export(splash_exports, {
9465
9512
  });
9466
9513
  import { existsSync as existsSync4, readFileSync as readFileSync4, readdirSync as readdirSync3 } from "node:fs";
9467
9514
  import { dirname as dirname5, join as join5 } from "node:path";
9515
+ import ts2 from "typescript";
9516
+ function findSplashLiteral(file2) {
9517
+ const resolve141 = makeResolver(collectConsts(file2));
9518
+ const named5 = (name) => !!name && (ts2.isIdentifier(name) || ts2.isStringLiteral(name)) && name.text === "splash";
9519
+ let appLevel;
9520
+ let sawDefineApp = false;
9521
+ const splashOf = (config, depth) => {
9522
+ let result;
9523
+ for (const prop2 of config.properties) {
9524
+ if (ts2.isSpreadAssignment(prop2)) {
9525
+ const inner = spreadSplash(prop2.expression, depth);
9526
+ if (inner !== void 0) result = inner;
9527
+ continue;
9528
+ }
9529
+ if (propName(prop2) !== "splash") continue;
9530
+ const value2 = resolve141(propValue(prop2));
9531
+ result = value2 && ts2.isObjectLiteralExpression(value2) ? value2 : null;
9532
+ }
9533
+ return result;
9534
+ };
9535
+ const spreadSplash = (expr, depth) => {
9536
+ const value2 = resolve141(expr);
9537
+ if (!value2 || depth >= 8) return void 0;
9538
+ if (ts2.isConditionalExpression(value2)) {
9539
+ const a3 = spreadSplash(value2.whenTrue, depth + 1);
9540
+ const b3 = spreadSplash(value2.whenFalse, depth + 1);
9541
+ return a3 === void 0 && b3 === void 0 ? void 0 : null;
9542
+ }
9543
+ if (ts2.isObjectLiteralExpression(value2)) return splashOf(value2, depth + 1);
9544
+ return void 0;
9545
+ };
9546
+ const findDefineApp = (node4) => {
9547
+ if (sawDefineApp) return;
9548
+ if (ts2.isCallExpression(node4) && ts2.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
9549
+ sawDefineApp = true;
9550
+ const config = resolve141(node4.arguments[0]);
9551
+ if (config && ts2.isObjectLiteralExpression(config)) appLevel = splashOf(config, 0);
9552
+ return;
9553
+ }
9554
+ ts2.forEachChild(node4, findDefineApp);
9555
+ };
9556
+ findDefineApp(file2);
9557
+ if (appLevel) return { literal: appLevel, resolve: resolve141 };
9558
+ if (appLevel === null) return void 0;
9559
+ let found;
9560
+ const visit = (node4) => {
9561
+ if (found) return;
9562
+ let value2;
9563
+ if (ts2.isPropertyAssignment(node4) || ts2.isShorthandPropertyAssignment(node4)) {
9564
+ if (propName(node4) === "splash") value2 = propValue(node4);
9565
+ } else if (ts2.isVariableDeclaration(node4) && named5(node4.name)) {
9566
+ value2 = node4.initializer;
9567
+ } else if (ts2.isBinaryExpression(node4) && node4.operatorToken.kind === ts2.SyntaxKind.EqualsToken && ts2.isPropertyAccessExpression(node4.left) && named5(node4.left.name)) {
9568
+ value2 = node4.right;
9569
+ }
9570
+ const resolved3 = resolve141(value2);
9571
+ if (resolved3 && ts2.isObjectLiteralExpression(resolved3)) {
9572
+ found = resolved3;
9573
+ return;
9574
+ }
9575
+ ts2.forEachChild(node4, visit);
9576
+ };
9577
+ visit(file2);
9578
+ return found ? { literal: found, resolve: resolve141 } : void 0;
9579
+ }
9580
+ function splashFields(literal5, resolve141, depth = 0) {
9581
+ const fields2 = /* @__PURE__ */ new Map();
9582
+ for (const prop2 of literal5.properties) {
9583
+ if (ts2.isSpreadAssignment(prop2)) {
9584
+ const spread = resolve141(prop2.expression);
9585
+ if (spread && ts2.isObjectLiteralExpression(spread) && depth < 8) {
9586
+ for (const [k3, v2] of splashFields(spread, resolve141, depth + 1)) {
9587
+ fields2.delete(k3);
9588
+ fields2.set(k3, v2);
9589
+ }
9590
+ }
9591
+ continue;
9592
+ }
9593
+ const key4 = propName(prop2);
9594
+ if (key4 === void 0) continue;
9595
+ fields2.delete(key4);
9596
+ const value2 = resolve141(propValue(prop2));
9597
+ if (!value2) continue;
9598
+ if (ts2.isStringLiteralLike(value2)) fields2.set(key4, value2.text);
9599
+ else if (ts2.isNumericLiteral(value2)) fields2.set(key4, Number(value2.text));
9600
+ }
9601
+ return fields2;
9602
+ }
9468
9603
  function parseSplashConfig(configTs) {
9469
- const block = /["']?splash["']?\s*[:=]\s*\{([^}]*)\}/.exec(configTs);
9470
- if (!block) return {};
9471
- const backgroundColor = /["']?backgroundColor["']?\s*:\s*["']([^"']+)["']/.exec(block[1])?.[1];
9472
- const logoAsset = /["']?logoAsset["']?\s*:\s*["']([^"']*)["']/.exec(block[1])?.[1];
9473
- return { ...backgroundColor ? { backgroundColor } : {}, ...logoAsset !== void 0 ? { logoAsset } : {} };
9604
+ if (!configTs.includes("splash")) return {};
9605
+ const file2 = parseConfigSource(configTs);
9606
+ const hit = findSplashLiteral(file2) ?? (isModuleSource(file2) ? void 0 : findSplashLiteral(parseConfigSource(`({
9607
+ ${configTs}
9608
+ })`)));
9609
+ if (!hit) return {};
9610
+ const fields2 = splashFields(hit.literal, hit.resolve);
9611
+ const str26 = (k3) => {
9612
+ const v2 = fields2.get(k3);
9613
+ return typeof v2 === "string" ? v2 : void 0;
9614
+ };
9615
+ const num6 = (k3) => {
9616
+ const v2 = fields2.get(k3);
9617
+ return typeof v2 === "number" ? v2 : void 0;
9618
+ };
9619
+ const backgroundColor = str26("backgroundColor");
9620
+ const logoAsset = str26("logoAsset");
9621
+ const appearance = str26("appearance");
9622
+ const logoShape = str26("logoShape");
9623
+ const logoWidth = num6("logoWidth");
9624
+ return {
9625
+ ...backgroundColor ? { backgroundColor } : {},
9626
+ ...logoAsset !== void 0 ? { logoAsset } : {},
9627
+ ...appearance ? { appearance } : {},
9628
+ ...logoWidth !== void 0 ? { logoWidth } : {},
9629
+ ...logoShape ? { logoShape } : {}
9630
+ };
9631
+ }
9632
+ function appearanceSplashColors(cfg) {
9633
+ switch (cfg.appearance) {
9634
+ case "system":
9635
+ return { light: "#FFFFFF", dark: "#000000" };
9636
+ case "light":
9637
+ return { light: "#FFFFFF", dark: "#FFFFFF" };
9638
+ case "dark":
9639
+ return { light: "#000000", dark: "#000000" };
9640
+ default:
9641
+ return void 0;
9642
+ }
9643
+ }
9644
+ function launchIconGeometry(cfg) {
9645
+ const diameter = cfg.logoWidth && cfg.logoWidth > 0 ? cfg.logoWidth : LOGO_WIDTH_DEFAULT;
9646
+ const xxxhdpi = 4;
9647
+ return {
9648
+ diameter,
9649
+ // Configs from before `logoShape` named the crop by its asset, as the runtime's logoIsCircle does.
9650
+ circle: cfg.logoShape === "circle" || cfg.logoAsset === "branded_lite_app_icon",
9651
+ // Whole pixels: a fractional `logoWidth` (a seeded app-config.json) would fail the render.
9652
+ ios: [1, 2, 3].map((scale) => ({ scale, px: Math.round(diameter * scale) })),
9653
+ android: { canvasPx: ANDROID_SPLASH_ICON_CANVAS_DP * xxxhdpi, diameterPx: Math.round(Math.min(diameter, ANDROID_SPLASH_ICON_MASK_DP) * xxxhdpi) }
9654
+ };
9655
+ }
9656
+ function iosLaunchIconContents() {
9657
+ return `${JSON.stringify({
9658
+ images: [1, 2, 3].map((n2) => ({ filename: `launch-icon@${n2}x.png`, idiom: "universal", scale: `${n2}x` })),
9659
+ info: { author: "xcode", version: 1 }
9660
+ }, null, 2)}
9661
+ `;
9474
9662
  }
9475
9663
  function nativeConfigInputTokens(configTs) {
9476
9664
  const declared = configTs ? parseSplashConfig(configTs).backgroundColor : void 0;
@@ -9488,6 +9676,8 @@ function normalizeHex(hex2, ctx) {
9488
9676
  return body.length === 3 ? `#${body[0]}${body[0]}${body[1]}${body[1]}${body[2]}${body[2]}` : `#${body}`;
9489
9677
  }
9490
9678
  function resolveSplashColors(app2, cfg = {}, tokensPathOverride) {
9679
+ const plain5 = appearanceSplashColors(cfg);
9680
+ if (plain5) return plain5;
9491
9681
  const token = cfg.backgroundColor ?? DEFAULT_BACKGROUND_TOKEN;
9492
9682
  const tokensPath = tokensPathOverride ?? join5(appDir(app2), "tokens.json");
9493
9683
  if (!existsSync4(tokensPath)) {
@@ -9560,8 +9750,12 @@ function androidSplashNightXml(colors) {
9560
9750
  ""
9561
9751
  ].join("\n");
9562
9752
  }
9563
- function renderSplashYaml(indent) {
9564
- return [`${indent}UILaunchScreen:`, `${indent} UIColorName: ${IOS_COLORSET_NAME}`];
9753
+ function renderSplashYaml(indent, imageName) {
9754
+ return [
9755
+ `${indent}UILaunchScreen:`,
9756
+ `${indent} UIColorName: ${IOS_COLORSET_NAME}`,
9757
+ ...imageName ? [`${indent} UIImageName: ${imageName}`] : []
9758
+ ];
9565
9759
  }
9566
9760
  function iosAssetCatalog(app2) {
9567
9761
  const iosDir = join5(appDir(app2), "ios");
@@ -9619,11 +9813,12 @@ function splashPlan(app2, configTs, manifestPath, hasIosMarkers) {
9619
9813
  ]
9620
9814
  };
9621
9815
  }
9622
- var LABEL_IOS_SPLASH, IOS_COLORSET_NAME, ANDROID_COLOR_RES, ANDROID_STYLE_NAME, ANDROID_SPLASH_FILE, ANDROID_SPLASH_PARENT, DEFAULT_BACKGROUND_TOKEN, GENERATED_XML_NOTE;
9816
+ var LABEL_IOS_SPLASH, IOS_COLORSET_NAME, ANDROID_COLOR_RES, ANDROID_STYLE_NAME, ANDROID_SPLASH_FILE, ANDROID_SPLASH_PARENT, DEFAULT_BACKGROUND_TOKEN, IOS_LAUNCH_ICON_NAME, ANDROID_LAUNCH_ICON_ART, LOGO_WIDTH_DEFAULT, ANDROID_SPLASH_ICON_CANVAS_DP, ANDROID_SPLASH_ICON_MASK_DP, GENERATED_XML_NOTE;
9623
9817
  var init_splash = __esm({
9624
9818
  "../native-config/splash.ts"() {
9625
9819
  init_define_HHP_CATALOG();
9626
9820
  init_paths();
9821
+ init_config_ast();
9627
9822
  LABEL_IOS_SPLASH = "himalaya:splash:info";
9628
9823
  IOS_COLORSET_NAME = "HimalayaLaunchBackground";
9629
9824
  ANDROID_COLOR_RES = "himalaya_splash_background";
@@ -9631,6 +9826,11 @@ var init_splash = __esm({
9631
9826
  ANDROID_SPLASH_FILE = "himalaya-splash.xml";
9632
9827
  ANDROID_SPLASH_PARENT = "@android:style/Theme.Material.Light.NoActionBar";
9633
9828
  DEFAULT_BACKGROUND_TOKEN = "accentPrimary";
9829
+ IOS_LAUNCH_ICON_NAME = "HimalayaLaunchIcon";
9830
+ ANDROID_LAUNCH_ICON_ART = "himalaya_launch_icon_art";
9831
+ LOGO_WIDTH_DEFAULT = 96;
9832
+ ANDROID_SPLASH_ICON_CANVAS_DP = 288;
9833
+ ANDROID_SPLASH_ICON_MASK_DP = 192;
9634
9834
  GENERATED_XML_NOTE = "<!-- GENERATED from config.ts `splash` + tokens.json by tools/native-config. Do not edit. -->";
9635
9835
  }
9636
9836
  });
@@ -11417,17 +11617,17 @@ var init_util = __esm({
11417
11617
 
11418
11618
  // ../html-to-t5/src/parse.ts
11419
11619
  import * as cheerio from "cheerio";
11420
- import ts from "typescript";
11620
+ import ts3 from "typescript";
11421
11621
  function isStaticInitializer(expr) {
11422
- if (ts.isStringLiteral(expr) || ts.isNumericLiteral(expr) || expr.kind === ts.SyntaxKind.TrueKeyword || expr.kind === ts.SyntaxKind.FalseKeyword || expr.kind === ts.SyntaxKind.NullKeyword || ts.isPrefixUnaryExpression(expr) && ts.isNumericLiteral(expr.operand)) {
11622
+ if (ts3.isStringLiteral(expr) || ts3.isNumericLiteral(expr) || expr.kind === ts3.SyntaxKind.TrueKeyword || expr.kind === ts3.SyntaxKind.FalseKeyword || expr.kind === ts3.SyntaxKind.NullKeyword || ts3.isPrefixUnaryExpression(expr) && ts3.isNumericLiteral(expr.operand)) {
11423
11623
  return true;
11424
11624
  }
11425
- if (ts.isObjectLiteralExpression(expr)) {
11625
+ if (ts3.isObjectLiteralExpression(expr)) {
11426
11626
  return expr.properties.every(
11427
- (p2) => ts.isPropertyAssignment(p2) && isStaticInitializer(p2.initializer)
11627
+ (p2) => ts3.isPropertyAssignment(p2) && isStaticInitializer(p2.initializer)
11428
11628
  );
11429
11629
  }
11430
- if (ts.isArrayLiteralExpression(expr)) {
11630
+ if (ts3.isArrayLiteralExpression(expr)) {
11431
11631
  return expr.elements.every((e2) => isStaticInitializer(e2));
11432
11632
  }
11433
11633
  return false;
@@ -11435,12 +11635,12 @@ function isStaticInitializer(expr) {
11435
11635
  function collectPaths(obj30, prefix, out2) {
11436
11636
  for (const p2 of obj30.properties) {
11437
11637
  let key4;
11438
- if (ts.isPropertyAssignment(p2)) key4 = propName(p2.name);
11439
- else if (ts.isShorthandPropertyAssignment(p2)) key4 = p2.name.text;
11638
+ if (ts3.isPropertyAssignment(p2)) key4 = propName2(p2.name);
11639
+ else if (ts3.isShorthandPropertyAssignment(p2)) key4 = p2.name.text;
11440
11640
  if (!key4) continue;
11441
11641
  const path2 = prefix ? `${prefix}.${key4}` : key4;
11442
11642
  out2.add(path2);
11443
- if (ts.isPropertyAssignment(p2) && ts.isObjectLiteralExpression(p2.initializer)) {
11643
+ if (ts3.isPropertyAssignment(p2) && ts3.isObjectLiteralExpression(p2.initializer)) {
11444
11644
  collectPaths(p2.initializer, path2, out2);
11445
11645
  }
11446
11646
  }
@@ -11460,7 +11660,7 @@ function analyzeService(source2, forbidden2) {
11460
11660
  const forbiddenSet = new Set(forbidden2);
11461
11661
  let sf2;
11462
11662
  try {
11463
- sf2 = ts.createSourceFile("service.ts", source2, ts.ScriptTarget.ES2020, true, ts.ScriptKind.TS);
11663
+ sf2 = ts3.createSourceFile("service.ts", source2, ts3.ScriptTarget.ES2020, true, ts3.ScriptKind.TS);
11464
11664
  } catch (e2) {
11465
11665
  info4.analysisErrors.push(`service block failed to parse: ${e2.message}`);
11466
11666
  return info4;
@@ -11468,53 +11668,53 @@ function analyzeService(source2, forbidden2) {
11468
11668
  const lineOfPos = (pos) => sf2.getLineAndCharacterOfPosition(pos).line + 1;
11469
11669
  const seenForbidden = /* @__PURE__ */ new Set();
11470
11670
  for (const stmt of sf2.statements) {
11471
- if (ts.isImportDeclaration(stmt) && ts.isStringLiteral(stmt.moduleSpecifier)) {
11671
+ if (ts3.isImportDeclaration(stmt) && ts3.isStringLiteral(stmt.moduleSpecifier)) {
11472
11672
  const mod = stmt.moduleSpecifier.text;
11473
11673
  const names2 = [];
11474
11674
  const ic = stmt.importClause;
11475
11675
  if (ic?.name) names2.push(ic.name.text);
11476
11676
  if (ic?.namedBindings) {
11477
- if (ts.isNamedImports(ic.namedBindings)) for (const el2 of ic.namedBindings.elements) names2.push(el2.name.text);
11478
- else if (ts.isNamespaceImport(ic.namedBindings)) names2.push(ic.namedBindings.name.text);
11677
+ if (ts3.isNamedImports(ic.namedBindings)) for (const el2 of ic.namedBindings.elements) names2.push(el2.name.text);
11678
+ else if (ts3.isNamespaceImport(ic.namedBindings)) names2.push(ic.namedBindings.name.text);
11479
11679
  }
11480
11680
  info4.imports.push({ module: mod, names: names2, line: lineOfPos(stmt.getStart(sf2)) });
11481
11681
  if (mod.startsWith("@himalaya/")) info4.usedModules.add(mod);
11482
11682
  }
11483
11683
  }
11484
11684
  const walk6 = (node4) => {
11485
- if (ts.isCallExpression(node4) && ts.isIdentifier(node4.expression) && node4.expression.text === "defineService") {
11685
+ if (ts3.isCallExpression(node4) && ts3.isIdentifier(node4.expression) && node4.expression.text === "defineService") {
11486
11686
  info4.hasDefineService = true;
11487
11687
  info4.defineServiceCount++;
11488
11688
  const [arg0, arg1] = node4.arguments;
11489
- if (arg0 && ts.isStringLiteral(arg0) && info4.serviceName === void 0) {
11689
+ if (arg0 && ts3.isStringLiteral(arg0) && info4.serviceName === void 0) {
11490
11690
  info4.serviceName = arg0.text;
11491
11691
  info4.serviceNameLine = lineOfPos(arg0.getStart(sf2));
11492
11692
  }
11493
- if (arg1 && ts.isObjectLiteralExpression(arg1)) {
11693
+ if (arg1 && ts3.isObjectLiteralExpression(arg1)) {
11494
11694
  for (const p2 of arg1.properties) {
11495
- if (!ts.isPropertyAssignment(p2)) continue;
11496
- const key4 = propName(p2.name);
11695
+ if (!ts3.isPropertyAssignment(p2)) continue;
11696
+ const key4 = propName2(p2.name);
11497
11697
  if (key4 === "state") {
11498
- if (ts.isObjectLiteralExpression(p2.initializer)) {
11698
+ if (ts3.isObjectLiteralExpression(p2.initializer)) {
11499
11699
  info4.stateIsLiteral = isStaticInitializer(p2.initializer);
11500
11700
  collectPaths(p2.initializer, "", info4.statePaths);
11501
11701
  } else {
11502
11702
  info4.stateIsLiteral = false;
11503
11703
  }
11504
- } else if (key4 === "actions" && ts.isObjectLiteralExpression(p2.initializer)) {
11704
+ } else if (key4 === "actions" && ts3.isObjectLiteralExpression(p2.initializer)) {
11505
11705
  for (const a3 of p2.initializer.properties) {
11506
- const n2 = a3.name ? propName(a3.name) : void 0;
11706
+ const n2 = a3.name ? propName2(a3.name) : void 0;
11507
11707
  if (n2) info4.actionNames.add(n2);
11508
11708
  }
11509
11709
  }
11510
11710
  }
11511
11711
  }
11512
11712
  }
11513
- if (ts.isIdentifier(node4) && forbiddenSet.has(node4.text)) {
11713
+ if (ts3.isIdentifier(node4) && forbiddenSet.has(node4.text)) {
11514
11714
  const parent = node4.parent;
11515
- const isMemberName = parent && ts.isPropertyAccessExpression(parent) && parent.name === node4;
11516
- const isPropKey = parent && (ts.isPropertyAssignment(parent) || ts.isShorthandPropertyAssignment(parent)) && parent.name === node4;
11517
- const isDeclName = parent && (ts.isVariableDeclaration(parent) || ts.isParameter(parent) || ts.isBindingElement(parent) || ts.isFunctionDeclaration(parent) || ts.isPropertySignature(parent)) && parent.name === node4;
11715
+ const isMemberName = parent && ts3.isPropertyAccessExpression(parent) && parent.name === node4;
11716
+ const isPropKey = parent && (ts3.isPropertyAssignment(parent) || ts3.isShorthandPropertyAssignment(parent)) && parent.name === node4;
11717
+ const isDeclName = parent && (ts3.isVariableDeclaration(parent) || ts3.isParameter(parent) || ts3.isBindingElement(parent) || ts3.isFunctionDeclaration(parent) || ts3.isPropertySignature(parent)) && parent.name === node4;
11518
11718
  if (!isMemberName && !isPropKey && !isDeclName) {
11519
11719
  const line = lineOfPos(node4.getStart(sf2));
11520
11720
  const dedup = `${node4.text}@${line}`;
@@ -11524,19 +11724,19 @@ function analyzeService(source2, forbidden2) {
11524
11724
  }
11525
11725
  }
11526
11726
  }
11527
- ts.forEachChild(node4, walk6);
11727
+ ts3.forEachChild(node4, walk6);
11528
11728
  };
11529
11729
  walk6(sf2);
11530
11730
  return info4;
11531
11731
  }
11532
- var propName;
11732
+ var propName2;
11533
11733
  var init_parse = __esm({
11534
11734
  "../html-to-t5/src/parse.ts"() {
11535
11735
  init_define_HHP_CATALOG();
11536
11736
  init_util();
11537
11737
  init_util();
11538
- propName = (n2) => {
11539
- if (ts.isIdentifier(n2) || ts.isStringLiteral(n2) || ts.isNumericLiteral(n2)) return n2.text;
11738
+ propName2 = (n2) => {
11739
+ if (ts3.isIdentifier(n2) || ts3.isStringLiteral(n2) || ts3.isNumericLiteral(n2)) return n2.text;
11540
11740
  return void 0;
11541
11741
  };
11542
11742
  }
@@ -11582,17 +11782,17 @@ var init_implications = __esm({
11582
11782
  });
11583
11783
 
11584
11784
  // ../html-to-t5/src/v2/controller.ts
11585
- import ts2 from "typescript";
11785
+ import ts4 from "typescript";
11586
11786
  function moduleCapabilities(source2, file2, profile) {
11587
- const sf2 = ts2.createSourceFile(file2, source2, ts2.ScriptTarget.Latest, true);
11787
+ const sf2 = ts4.createSourceFile(file2, source2, ts4.ScriptTarget.Latest, true);
11588
11788
  const required3 = /* @__PURE__ */ new Set();
11589
11789
  function walk6(n2) {
11590
- if ((ts2.isImportDeclaration(n2) || ts2.isExportDeclaration(n2)) && n2.moduleSpecifier && ts2.isStringLiteral(n2.moduleSpecifier)) {
11591
- const typeOnly = ts2.isImportDeclaration(n2) ? n2.importClause?.isTypeOnly || !n2.importClause?.name && n2.importClause?.namedBindings && ts2.isNamedImports(n2.importClause.namedBindings) && n2.importClause.namedBindings.elements.every((e2) => e2.isTypeOnly) : n2.isTypeOnly || n2.exportClause && ts2.isNamedExports(n2.exportClause) && n2.exportClause.elements.every((e2) => e2.isTypeOnly);
11790
+ if ((ts4.isImportDeclaration(n2) || ts4.isExportDeclaration(n2)) && n2.moduleSpecifier && ts4.isStringLiteral(n2.moduleSpecifier)) {
11791
+ const typeOnly = ts4.isImportDeclaration(n2) ? n2.importClause?.isTypeOnly || !n2.importClause?.name && n2.importClause?.namedBindings && ts4.isNamedImports(n2.importClause.namedBindings) && n2.importClause.namedBindings.elements.every((e2) => e2.isTypeOnly) : n2.isTypeOnly || n2.exportClause && ts4.isNamedExports(n2.exportClause) && n2.exportClause.elements.every((e2) => e2.isTypeOnly);
11592
11792
  if (!typeOnly) for (const cap2 of profile.imports[n2.moduleSpecifier.text]?.capabilities ?? []) required3.add(cap2);
11593
11793
  }
11594
- if (ts2.isCallExpression(n2) && ts2.isIdentifier(n2.expression) && n2.expression.text === "withStream") required3.add("stream");
11595
- ts2.forEachChild(n2, walk6);
11794
+ if (ts4.isCallExpression(n2) && ts4.isIdentifier(n2.expression) && n2.expression.text === "withStream") required3.add("stream");
11795
+ ts4.forEachChild(n2, walk6);
11596
11796
  }
11597
11797
  walk6(sf2);
11598
11798
  return [...required3].sort();
@@ -11608,13 +11808,13 @@ function inspectModule(source2, file2, profile, diagnostics) {
11608
11808
  else for (const cap2 of entry.capabilities.filter((c2) => requirements.includes(c2))) if (!grants(profile.declaredCapabilities, cap2))
11609
11809
  diagnostics.push({ code: "HHP-CAPABILITY-MISSING", severity: "error", file: file2, line: imp.line, column: 1, message: `${imp.module} requires declared capability ${cap2}.`, hint: `Declare ${cap2} in app configuration after checking its native prerequisites.` });
11610
11810
  }
11611
- const sf2 = ts2.createSourceFile(file2, source2, ts2.ScriptTarget.Latest, true);
11811
+ const sf2 = ts4.createSourceFile(file2, source2, ts4.ScriptTarget.Latest, true);
11612
11812
  function walk6(n2) {
11613
- if (ts2.isImportDeclaration(n2) && ts2.isStringLiteral(n2.moduleSpecifier)) {
11813
+ if (ts4.isImportDeclaration(n2) && ts4.isStringLiteral(n2.moduleSpecifier)) {
11614
11814
  const entry = profile.imports[n2.moduleSpecifier.text];
11615
11815
  if (entry) {
11616
11816
  const bindings = n2.importClause?.namedBindings;
11617
- const requested = bindings && ts2.isNamedImports(bindings) ? bindings.elements.map((e2) => (e2.propertyName ?? e2.name).text) : [];
11817
+ const requested = bindings && ts4.isNamedImports(bindings) ? bindings.elements.map((e2) => (e2.propertyName ?? e2.name).text) : [];
11618
11818
  if (n2.importClause?.name) requested.push("default");
11619
11819
  for (const name of requested) if (!entry.exports.includes(name)) {
11620
11820
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
@@ -11622,62 +11822,62 @@ function inspectModule(source2, file2, profile, diagnostics) {
11622
11822
  }
11623
11823
  }
11624
11824
  }
11625
- if (ts2.isCallExpression(n2) && ts2.isIdentifier(n2.expression) && n2.expression.text === "withStream" && !grants(profile.declaredCapabilities, "stream")) {
11825
+ if (ts4.isCallExpression(n2) && ts4.isIdentifier(n2.expression) && n2.expression.text === "withStream" && !grants(profile.declaredCapabilities, "stream")) {
11626
11826
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
11627
11827
  diagnostics.push({ code: "HHP-CAPABILITY-MISSING", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: "withStream requires declared capability stream." });
11628
11828
  }
11629
- if ((ts2.isPropertyAccessExpression(n2) && forbidden.includes(n2.name.text) || ts2.isElementAccessExpression(n2) && ts2.isStringLiteral(n2.argumentExpression) && forbidden.includes(n2.argumentExpression.text)) && ts2.isIdentifier(n2.expression) && n2.expression.text === "globalThis") {
11829
+ if ((ts4.isPropertyAccessExpression(n2) && forbidden.includes(n2.name.text) || ts4.isElementAccessExpression(n2) && ts4.isStringLiteral(n2.argumentExpression) && forbidden.includes(n2.argumentExpression.text)) && ts4.isIdentifier(n2.expression) && n2.expression.text === "globalThis") {
11630
11830
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
11631
11831
  diagnostics.push({ code: "HHP-WORKER-GLOBAL", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: `${n2.getText(sf2)} is unavailable in T5.`, hint: "Use an SDK call." });
11632
11832
  }
11633
- if (ts2.isExportDeclaration(n2) && n2.moduleSpecifier && ts2.isStringLiteral(n2.moduleSpecifier) && !n2.moduleSpecifier.text.startsWith(".")) {
11833
+ if (ts4.isExportDeclaration(n2) && n2.moduleSpecifier && ts4.isStringLiteral(n2.moduleSpecifier) && !n2.moduleSpecifier.text.startsWith(".")) {
11634
11834
  const entry = Object.hasOwn(profile.imports, n2.moduleSpecifier.text) ? profile.imports[n2.moduleSpecifier.text] : void 0;
11635
11835
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
11636
11836
  if (!entry) diagnostics.push({ code: "HHP-WORKER-IMPORT", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: `Export ${n2.moduleSpecifier.text} is not worker-safe.` });
11637
11837
  else for (const capability of entry.capabilities.filter((c2) => requirements.includes(c2))) if (!grants(profile.declaredCapabilities, capability)) diagnostics.push({ code: "HHP-CAPABILITY-MISSING", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: `Export requires ${capability}.` });
11638
11838
  }
11639
- if (ts2.isCallExpression(n2) && (n2.expression.kind === ts2.SyntaxKind.ImportKeyword || ts2.isIdentifier(n2.expression) && ["require", "eval"].includes(n2.expression.text))) {
11839
+ if (ts4.isCallExpression(n2) && (n2.expression.kind === ts4.SyntaxKind.ImportKeyword || ts4.isIdentifier(n2.expression) && ["require", "eval"].includes(n2.expression.text))) {
11640
11840
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
11641
11841
  diagnostics.push({ code: "HHP-WORKER-DYNAMIC-IMPORT", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: "Use static imports in HHP workers." });
11642
11842
  }
11643
- ts2.forEachChild(n2, walk6);
11843
+ ts4.forEachChild(n2, walk6);
11644
11844
  }
11645
11845
  walk6(sf2);
11646
11846
  }
11647
11847
  function analyzeController(source2, file2, profile, diagnostics) {
11648
11848
  inspectModule(source2, file2, profile, diagnostics);
11649
- const sf2 = ts2.createSourceFile(file2, source2, ts2.ScriptTarget.Latest, true);
11849
+ const sf2 = ts4.createSourceFile(file2, source2, ts4.ScriptTarget.Latest, true);
11650
11850
  const error = (node4, message5) => {
11651
11851
  const p2 = sf2.getLineAndCharacterOfPosition(node4.getStart(sf2));
11652
11852
  diagnostics.push({ code: "HHP-CONTROLLER", severity: "error", file: file2, line: p2.line + 1, column: p2.character + 1, message: message5 });
11653
11853
  };
11654
- const declaration2 = sf2.statements.find((n2) => ts2.isExportAssignment(n2) && !n2.isExportEquals);
11655
- if (!declaration2 || !ts2.isCallExpression(declaration2.expression) || declaration2.expression.expression.getText(sf2) !== "defineController") {
11854
+ const declaration2 = sf2.statements.find((n2) => ts4.isExportAssignment(n2) && !n2.isExportEquals);
11855
+ if (!declaration2 || !ts4.isCallExpression(declaration2.expression) || declaration2.expression.expression.getText(sf2) !== "defineController") {
11656
11856
  error(declaration2 ?? sf2, "Default-export defineController({ initialState, handlers }).");
11657
11857
  return;
11658
11858
  }
11659
11859
  const object16 = declaration2.expression.arguments[0];
11660
- if (!object16 || !ts2.isObjectLiteralExpression(object16)) {
11860
+ if (!object16 || !ts4.isObjectLiteralExpression(object16)) {
11661
11861
  error(declaration2, "Controller definition must be an object literal.");
11662
11862
  return;
11663
11863
  }
11664
11864
  const props2 = new Map(object16.properties.map((p2) => [p2.name?.getText(sf2).replace(/^["']|["']$/g, ""), p2]));
11665
11865
  const state = props2.get("initialState"), handlers = props2.get("handlers");
11666
- if (!state || !ts2.isPropertyAssignment(state) || !handlers || !ts2.isPropertyAssignment(handlers) || !ts2.isObjectLiteralExpression(handlers.initializer)) {
11866
+ if (!state || !ts4.isPropertyAssignment(state) || !handlers || !ts4.isPropertyAssignment(handlers) || !ts4.isObjectLiteralExpression(handlers.initializer)) {
11667
11867
  error(object16, "initialState and handlers must be object literals.");
11668
11868
  return;
11669
11869
  }
11670
11870
  function literal5(n2) {
11671
- if (ts2.isAsExpression(n2) || ts2.isSatisfiesExpression(n2) || ts2.isParenthesizedExpression(n2)) return literal5(n2.expression);
11672
- if (ts2.isStringLiteral(n2) || ts2.isNoSubstitutionTemplateLiteral(n2)) return n2.text;
11673
- if (ts2.isNumericLiteral(n2)) return Number(n2.text);
11674
- if (n2.kind === ts2.SyntaxKind.TrueKeyword) return true;
11675
- if (n2.kind === ts2.SyntaxKind.FalseKeyword) return false;
11676
- if (n2.kind === ts2.SyntaxKind.NullKeyword) return null;
11677
- if (ts2.isPrefixUnaryExpression(n2) && n2.operator === ts2.SyntaxKind.MinusToken && ts2.isNumericLiteral(n2.operand)) return -Number(n2.operand.text);
11678
- if (ts2.isArrayLiteralExpression(n2)) return n2.elements.map((e2) => literal5(e2));
11679
- if (ts2.isObjectLiteralExpression(n2)) return Object.fromEntries(n2.properties.map((p2) => {
11680
- if (!ts2.isPropertyAssignment(p2) || ts2.isComputedPropertyName(p2.name)) throw new Error("State must contain JSON literals; no spreads, calls, or computed keys.");
11871
+ if (ts4.isAsExpression(n2) || ts4.isSatisfiesExpression(n2) || ts4.isParenthesizedExpression(n2)) return literal5(n2.expression);
11872
+ if (ts4.isStringLiteral(n2) || ts4.isNoSubstitutionTemplateLiteral(n2)) return n2.text;
11873
+ if (ts4.isNumericLiteral(n2)) return Number(n2.text);
11874
+ if (n2.kind === ts4.SyntaxKind.TrueKeyword) return true;
11875
+ if (n2.kind === ts4.SyntaxKind.FalseKeyword) return false;
11876
+ if (n2.kind === ts4.SyntaxKind.NullKeyword) return null;
11877
+ if (ts4.isPrefixUnaryExpression(n2) && n2.operator === ts4.SyntaxKind.MinusToken && ts4.isNumericLiteral(n2.operand)) return -Number(n2.operand.text);
11878
+ if (ts4.isArrayLiteralExpression(n2)) return n2.elements.map((e2) => literal5(e2));
11879
+ if (ts4.isObjectLiteralExpression(n2)) return Object.fromEntries(n2.properties.map((p2) => {
11880
+ if (!ts4.isPropertyAssignment(p2) || ts4.isComputedPropertyName(p2.name)) throw new Error("State must contain JSON literals; no spreads, calls, or computed keys.");
11681
11881
  const key4 = p2.name.getText(sf2).replace(/^["']|["']$/g, "");
11682
11882
  if (unsafe.has(key4) || key4.startsWith("__hhp")) throw new Error(`Unsafe or reserved state key ${key4}.`);
11683
11883
  return [key4, literal5(p2.initializer)];
@@ -11698,7 +11898,7 @@ function analyzeController(source2, file2, profile, diagnostics) {
11698
11898
  collect2(initial);
11699
11899
  const names2 = /* @__PURE__ */ new Set();
11700
11900
  for (const handler of handlers.initializer.properties) {
11701
- if (!handler.name || ts2.isComputedPropertyName(handler.name) || ts2.isSpreadAssignment(handler)) {
11901
+ if (!handler.name || ts4.isComputedPropertyName(handler.name) || ts4.isSpreadAssignment(handler)) {
11702
11902
  error(handler, "Handlers need static names.");
11703
11903
  continue;
11704
11904
  }
@@ -11714,19 +11914,19 @@ function analyzeController(source2, file2, profile, diagnostics) {
11714
11914
  }
11715
11915
  function analyzeDirectService(source2, file2, profile, diagnostics) {
11716
11916
  inspectModule(source2, file2, profile, diagnostics);
11717
- const sf2 = ts2.createSourceFile(file2, source2, ts2.ScriptTarget.Latest, true);
11917
+ const sf2 = ts4.createSourceFile(file2, source2, ts4.ScriptTarget.Latest, true);
11718
11918
  const calls = [];
11719
11919
  function walk6(node4) {
11720
- if (ts2.isCallExpression(node4) && ts2.isIdentifier(node4.expression) && node4.expression.text === "defineService") calls.push(node4);
11721
- ts2.forEachChild(node4, walk6);
11920
+ if (ts4.isCallExpression(node4) && ts4.isIdentifier(node4.expression) && node4.expression.text === "defineService") calls.push(node4);
11921
+ ts4.forEachChild(node4, walk6);
11722
11922
  }
11723
11923
  walk6(sf2);
11724
11924
  const call = calls[0], name = call?.arguments[0], definition = call?.arguments[1];
11725
- if (calls.length !== 1 || !name || !ts2.isStringLiteral(name) || !definition || !ts2.isObjectLiteralExpression(definition)) {
11925
+ if (calls.length !== 1 || !name || !ts4.isStringLiteral(name) || !definition || !ts4.isObjectLiteralExpression(definition)) {
11726
11926
  diagnostics.push({ code: "HHP-SERVICE", severity: "error", file: file2, line: 1, column: 1, message: "Use exactly one defineService with a literal name and state/actions object." });
11727
11927
  return;
11728
11928
  }
11729
- const properties = new Map(definition.properties.filter(ts2.isPropertyAssignment).map((p2) => [p2.name.getText(sf2), p2.initializer]));
11929
+ const properties = new Map(definition.properties.filter(ts4.isPropertyAssignment).map((p2) => [p2.name.getText(sf2), p2.initializer]));
11730
11930
  const state = properties.get("state"), actions = properties.get("actions");
11731
11931
  if (!state || !actions) {
11732
11932
  diagnostics.push({ code: "HHP-SERVICE", severity: "error", file: file2, line: 1, column: 1, message: "Service needs literal state and actions." });
@@ -15764,8 +15964,8 @@ function tsExtResolvePlugin() {
15764
15964
  setup(b3) {
15765
15965
  b3.onResolve({ filter: /\.js$/ }, (args) => {
15766
15966
  if (args.kind === "entry-point" || !args.path.startsWith(".")) return void 0;
15767
- const ts44 = resolve11(args.resolveDir, args.path.replace(/\.js$/, ".ts"));
15768
- return existsSync13(ts44) ? { path: ts44 } : void 0;
15967
+ const ts46 = resolve11(args.resolveDir, args.path.replace(/\.js$/, ".ts"));
15968
+ return existsSync13(ts46) ? { path: ts46 } : void 0;
15769
15969
  });
15770
15970
  }
15771
15971
  };
@@ -16561,7 +16761,7 @@ function bundleFor(file2) {
16561
16761
  const match = /^tier5-src\/([^/]+)\//.exec(file2);
16562
16762
  return match?.[1] ?? "_shared";
16563
16763
  }
16564
- function toIssue(ts44, contentDir2, diagnostic) {
16764
+ function toIssue(ts46, contentDir2, diagnostic) {
16565
16765
  const file2 = diagnostic.file ? relativeFile(contentDir2, diagnostic.file.fileName) : void 0;
16566
16766
  const position = diagnostic.file && diagnostic.start !== void 0 ? diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start) : void 0;
16567
16767
  return {
@@ -16569,13 +16769,13 @@ function toIssue(ts44, contentDir2, diagnostic) {
16569
16769
  ...file2 ? { file: file2 } : {},
16570
16770
  ...position ? { line: position.line + 1, column: position.character + 1 } : {},
16571
16771
  code: `TS${diagnostic.code}`,
16572
- message: ts44.flattenDiagnosticMessageText(diagnostic.messageText, "\n")
16772
+ message: ts46.flattenDiagnosticMessageText(diagnostic.messageText, "\n")
16573
16773
  };
16574
16774
  }
16575
- function confinedHost(ts44, contentDir2, options2) {
16775
+ function confinedHost(ts46, contentDir2, options2) {
16576
16776
  if (!buildConfinementRequired()) return void 0;
16577
- const host = ts44.createCompilerHost(options2);
16578
- const libDir = resolve13(ts44.getDefaultLibFilePath(options2), "..");
16777
+ const host = ts46.createCompilerHost(options2);
16778
+ const libDir = resolve13(ts46.getDefaultLibFilePath(options2), "..");
16579
16779
  const allows = confinementMatcher(contentDir2, [libDir]);
16580
16780
  const getSourceFile = host.getSourceFile.bind(host);
16581
16781
  const readFile26 = host.readFile.bind(host);
@@ -16687,13 +16887,13 @@ function recordingHost(base2, spellings) {
16687
16887
  }
16688
16888
  return { host, answers: () => h2.digest("hex") };
16689
16889
  }
16690
- function programKey(ts44, spellings, rootNames, options2, answers2) {
16890
+ function programKey(ts46, spellings, rootNames, options2, answers2) {
16691
16891
  const opts = JSON.stringify(options2, (_key, value2) => typeof value2 === "string" ? tokenized(spellings, value2) : value2);
16692
- return digest(["tier5-typecheck-v1", ts44.version, opts, ...rootNames.map((name) => tokenized(spellings, name)), answers2()].join("\n"));
16892
+ return digest(["tier5-typecheck-v1", ts46.version, opts, ...rootNames.map((name) => tokenized(spellings, name)), answers2()].join("\n"));
16693
16893
  }
16694
16894
  async function typecheckContentWorkers(contentDir2, options2) {
16695
16895
  if (!existsSync14(resolve13(contentDir2, "tier5-src"))) return [];
16696
- const ts44 = await compiler2();
16896
+ const ts46 = await compiler2();
16697
16897
  const config = {
16698
16898
  compilerOptions: {
16699
16899
  ...CONTENT_WORKER_COMPILER_OPTIONS,
@@ -16703,29 +16903,29 @@ async function typecheckContentWorkers(contentDir2, options2) {
16703
16903
  // The deployed authoring runtime stages TypeScript 6, which requires an explicit
16704
16904
  // acknowledgement for this compatibility `baseUrl`; the repository's TypeScript 5 lane
16705
16905
  // rejects that 6.0 value, so keep it specific to the compiler that needs it.
16706
- ...Number.parseInt(ts44.versionMajorMinor, 10) >= 6 ? { ignoreDeprecations: "6.0" } : {}
16906
+ ...Number.parseInt(ts46.versionMajorMinor, 10) >= 6 ? { ignoreDeprecations: "6.0" } : {}
16707
16907
  },
16708
16908
  include: ["tier5-src/*/index.ts", "tier5-src/_shared/**/*.ts"]
16709
16909
  };
16710
- const parsed = ts44.parseJsonConfigFileContent(config, ts44.sys, contentDir2);
16910
+ const parsed = ts46.parseJsonConfigFileContent(config, ts46.sys, contentDir2);
16711
16911
  if (parsed.fileNames.length === 0) return [];
16712
- const contentIssues = (diagnostics) => diagnostics.filter((diagnostic) => diagnostic.category === ts44.DiagnosticCategory.Error && belongsToContentWorkers(contentDir2, diagnostic)).map((diagnostic) => toIssue(ts44, contentDir2, diagnostic));
16713
- const host = confinedHost(ts44, contentDir2, parsed.options) ?? ts44.createCompilerHost(parsed.options);
16912
+ const contentIssues = (diagnostics) => diagnostics.filter((diagnostic) => diagnostic.category === ts46.DiagnosticCategory.Error && belongsToContentWorkers(contentDir2, diagnostic)).map((diagnostic) => toIssue(ts46, contentDir2, diagnostic));
16913
+ const host = confinedHost(ts46, contentDir2, parsed.options) ?? ts46.createCompilerHost(parsed.options);
16714
16914
  const spellings = contentDirSpellings(contentDir2);
16715
16915
  const recorder = recordingHost(host, spellings);
16716
- const program = ts44.createProgram({
16916
+ const program = ts46.createProgram({
16717
16917
  rootNames: parsed.fileNames,
16718
16918
  options: parsed.options,
16719
16919
  host: recorder.host
16720
16920
  });
16721
- const key4 = programKey(ts44, spellings, parsed.fileNames, parsed.options, recorder.answers);
16921
+ const key4 = programKey(ts46, spellings, parsed.fileNames, parsed.options, recorder.answers);
16722
16922
  let checked = checkedPrograms.get(key4);
16723
16923
  if (checked) {
16724
16924
  checkedPrograms.delete(key4);
16725
16925
  checkedPrograms.set(key4, checked);
16726
16926
  } else {
16727
16927
  checkerRuns++;
16728
- checked = contentIssues(ts44.getPreEmitDiagnostics(program)).map((issue3) => ({ ...issue3, message: tokenized(spellings, issue3.message) }));
16928
+ checked = contentIssues(ts46.getPreEmitDiagnostics(program)).map((issue3) => ({ ...issue3, message: tokenized(spellings, issue3.message) }));
16729
16929
  checkedPrograms.set(key4, checked);
16730
16930
  if (checkedPrograms.size > CHECKED_PROGRAMS_MAX) checkedPrograms.delete(checkedPrograms.keys().next().value);
16731
16931
  }
@@ -23451,24 +23651,25 @@ function descriptorFloor(doc, opts = {}) {
23451
23651
  const floor2 = uses.reduce((max, u2) => compareVocabularyVersions(u2.since, max) > 0 ? u2.since : max, table.baseline);
23452
23652
  return { floor: floor2, uses };
23453
23653
  }
23454
- var V, VOCABULARY_FLOOR, ICON_KEYS, normIcon, SEE_THROUGH, colourKey, SCALAR_CASE, isNode3;
23654
+ var V, V13, VOCABULARY_FLOOR, ICON_KEYS, normIcon, SEE_THROUGH, colourKey, SCALAR_CASE, isNode3;
23455
23655
  var init_vocabulary_floor = __esm({
23456
23656
  "../../core/ts/src/vocabulary-floor.ts"() {
23457
23657
  init_define_HHP_CATALOG();
23458
23658
  V = "1.12.0";
23659
+ V13 = "1.13.0";
23459
23660
  VOCABULARY_FLOOR = {
23460
- current: V,
23661
+ current: V13,
23461
23662
  baseline: "1.11.0",
23462
23663
  fields: [
23463
23664
  { field: "Component.chromeOutlet", since: V, paths: ["type:ChromeOutlet"] },
23464
23665
  { field: "Modifiers.minHeight", since: V, paths: ["modifiers:minHeight"] },
23465
23666
  { field: "Modifiers.fillMaxHeight", since: V, paths: ["modifiers:fillMaxHeight"] },
23466
23667
  { field: "Modifiers.paintPath", since: V, paths: ["modifiers:paintPath"] },
23467
- { field: "Modifiers.topBand", since: V, paths: ["modifiers:topBand"] },
23468
- { field: "Modifiers.focusWithinBorder", since: V, paths: ["modifiers:focusWithinBorder"] },
23668
+ { field: "Modifiers.topBand", since: V13, paths: ["modifiers:topBand"] },
23669
+ { field: "Modifiers.focusWithinBorder", since: V13, paths: ["modifiers:focusWithinBorder"] },
23469
23670
  { field: "Border.inset", since: V, paths: ["FormField:text.focusedBorder.inset", "TextField:focusedBorder.inset", "modifiers:border.inset", "modifiers:focusWithinBorder.inset"] },
23470
- { field: "TabsProps.labelStyle", since: V, paths: ["Tabs:labelStyle"] },
23471
- { field: "TabsProps.selectedLabelStyle", since: V, paths: ["Tabs:selectedLabelStyle"] },
23671
+ { field: "TabsProps.labelStyle", since: V13, paths: ["Tabs:labelStyle"] },
23672
+ { field: "TabsProps.selectedLabelStyle", since: V13, paths: ["Tabs:selectedLabelStyle"] },
23472
23673
  { field: "Border.edges", since: V, paths: ["FormField:text.focusedBorder.edges", "TextField:focusedBorder.edges", "modifiers:border.edges", "modifiers:focusWithinBorder.edges"] },
23473
23674
  { field: "TypographyOverride.lineBox", since: V, paths: ["modifiers:theme.typography.*.lineBox"] },
23474
23675
  { field: "NavigationConfig.topBarContent", since: V, paths: ["navigation:topBarContent"] },
@@ -23477,22 +23678,28 @@ var init_vocabulary_floor = __esm({
23477
23678
  { field: "DrawerConfig.content", since: V, paths: ["navigation:drawer.content"] },
23478
23679
  { field: "TopBarConfig.content", since: V, paths: ["navigation:topBarDefault.content", "screen:topBar.content"] },
23479
23680
  { field: "TopBarConfig.accessory", since: V, paths: ["navigation:topBarDefault.accessory", "screen:topBar.accessory"] },
23480
- { field: "NavTabItem.reselectScrollDisabled", since: V, paths: ["navigation:sidebar.items.reselectScrollDisabled", "navigation:tabBar.items.reselectScrollDisabled"] },
23681
+ { field: "NavTabItem.reselectScrollDisabled", since: V13, paths: ["navigation:sidebar.items.reselectScrollDisabled", "navigation:tabBar.items.reselectScrollDisabled"] },
23481
23682
  { field: "PushRoute.passQuery", since: V, paths: ["navigation:push.routes.passQuery"] },
23482
23683
  { field: "SplashConfig.exitTransition", since: V, paths: ["navigation:splash.exitTransition"] },
23483
- { field: "SplashConfig.statusBarStyle", since: V, paths: ["navigation:splash.statusBarStyle"] },
23684
+ { field: "SplashConfig.statusBarStyle", since: V13, paths: ["navigation:splash.statusBarStyle"] },
23685
+ { field: "SplashConfig.appearance", since: V13, paths: ["navigation:splash.appearance"] },
23686
+ { field: "SplashConfig.logoShape", since: V13, paths: ["navigation:splash.logoShape"] },
23687
+ { field: "SplashConfig.extended", since: V13, paths: ["navigation:splash.extended"] },
23484
23688
  { field: "HStackProps.alignBaseline", since: V, paths: ["HStack:alignBaseline"] },
23485
23689
  { field: "HStackProps.wrap", since: V, paths: ["HStack:wrap"] },
23486
23690
  { field: "HStackProps.lineSpacing", since: V, paths: ["HStack:lineSpacing"] },
23487
23691
  { field: "ZStackProps.verticalAlignment", since: V, paths: ["ZStack:verticalAlignment"] },
23488
23692
  { field: "GridProps.minColumnWidth", since: V, paths: ["Grid:minColumnWidth"] },
23489
- { field: "GridProps.rowSpacing", since: V, paths: ["Grid:rowSpacing"] },
23693
+ { field: "GridProps.rowSpacing", since: V13, paths: ["Grid:rowSpacing"] },
23490
23694
  { field: "ButtonProps.minWidth", since: V, paths: ["Button:minWidth"] },
23491
- { field: "ButtonProps.horizontalPadding", since: V, paths: ["Button:horizontalPadding"] },
23695
+ { field: "ButtonProps.horizontalPadding", since: V13, paths: ["Button:horizontalPadding"] },
23492
23696
  { field: "ToggleProps.fullWidth", since: V, paths: ["FormField:toggle.fullWidth", "Toggle:fullWidth"] },
23493
- { field: "PageControlProps.style", since: V, paths: ["PageControl:style"] }
23697
+ { field: "PageControlProps.style", since: V13, paths: ["PageControl:style"] }
23698
+ ],
23699
+ values: [
23700
+ { path: "Text:textDirection", equals: "autoInRtl", since: V },
23701
+ { path: "navigation:splash.readySignal", equals: "first_screen", since: V13 }
23494
23702
  ],
23495
- values: [{ path: "Text:textDirection", equals: "autoInRtl", since: V }],
23496
23703
  icons: { arrow_outward: V, circle_half: V, trending_down: V, trending_up: V },
23497
23704
  rules: [
23498
23705
  { id: "fragmentSlotScalarCase", since: V, what: "a FragmentSlot whose case ids are a boolean's or a number's text, picked by a bound boolean or number" },
@@ -31797,22 +32004,22 @@ var init_pixels = __esm({
31797
32004
  });
31798
32005
 
31799
32006
  // ../../core/dev-server/src/declared-navigation-ast.ts
31800
- function fixedNavigations(bundleJs, ts44) {
31801
- literalTargets(bundleJs, ts44);
32007
+ function fixedNavigations(bundleJs, ts46) {
32008
+ literalTargets(bundleJs, ts46);
31802
32009
  return fixedCache.get(bundleJs) ?? /* @__PURE__ */ new Map();
31803
32010
  }
31804
- function literalTargets(bundleJs, ts44) {
31805
- const name = (n2) => n2 && (ts44.isIdentifier(n2) || ts44.isStringLiteral(n2) || ts44.isNoSubstitutionTemplateLiteral(n2)) ? n2.text : void 0;
32011
+ function literalTargets(bundleJs, ts46) {
32012
+ const name = (n2) => n2 && (ts46.isIdentifier(n2) || ts46.isStringLiteral(n2) || ts46.isNoSubstitutionTemplateLiteral(n2)) ? n2.text : void 0;
31806
32013
  const object16 = (n2) => {
31807
- while (n2 && ts44.isParenthesizedExpression(n2)) n2 = n2.expression;
31808
- return n2 && ts44.isObjectLiteralExpression(n2) ? n2 : void 0;
32014
+ while (n2 && ts46.isParenthesizedExpression(n2)) n2 = n2.expression;
32015
+ return n2 && ts46.isObjectLiteralExpression(n2) ? n2 : void 0;
31809
32016
  };
31810
32017
  const property3 = (o2, key4) => o2?.properties.find((p2) => name(p2.name) === key4);
31811
- const initializer = (p2) => p2 && ts44.isPropertyAssignment(p2) ? p2.initializer : void 0;
31812
- const callable = (n2) => !!n2 && (ts44.isArrowFunction(n2) || ts44.isFunctionExpression(n2) || ts44.isFunctionDeclaration(n2) || ts44.isMethodDeclaration(n2));
32018
+ const initializer = (p2) => p2 && ts46.isPropertyAssignment(p2) ? p2.initializer : void 0;
32019
+ const callable = (n2) => !!n2 && (ts46.isArrowFunction(n2) || ts46.isFunctionExpression(n2) || ts46.isFunctionDeclaration(n2) || ts46.isMethodDeclaration(n2));
31813
32020
  const cached3 = cache.get(bundleJs);
31814
32021
  if (cached3) return cached3;
31815
- const file2 = ts44.createSourceFile("himi-bundle.js", bundleJs, ts44.ScriptTarget.Latest, true, ts44.ScriptKind.JS);
32022
+ const file2 = ts46.createSourceFile("himi-bundle.js", bundleJs, ts46.ScriptTarget.Latest, true, ts46.ScriptKind.JS);
31816
32023
  const symbols = /* @__PURE__ */ new Map();
31817
32024
  const note = (key4, fn2) => {
31818
32025
  if (!key4) return;
@@ -31820,16 +32027,16 @@ function literalTargets(bundleJs, ts44) {
31820
32027
  symbols.set(key4, { count: (prior?.count ?? 0) + 1, fn: fn2 });
31821
32028
  };
31822
32029
  const declarations = (node4) => {
31823
- if (ts44.isFunctionDeclaration(node4)) note(name(node4.name), node4);
31824
- else if (ts44.isVariableDeclaration(node4)) note(name(node4.name), callable(node4.initializer) ? node4.initializer : void 0);
31825
- else if (ts44.isParameter(node4)) note(name(node4.name));
31826
- else if (ts44.isBindingElement(node4)) note(name(node4.name));
31827
- ts44.forEachChild(node4, declarations);
32030
+ if (ts46.isFunctionDeclaration(node4)) note(name(node4.name), node4);
32031
+ else if (ts46.isVariableDeclaration(node4)) note(name(node4.name), callable(node4.initializer) ? node4.initializer : void 0);
32032
+ else if (ts46.isParameter(node4)) note(name(node4.name));
32033
+ else if (ts46.isBindingElement(node4)) note(name(node4.name));
32034
+ ts46.forEachChild(node4, declarations);
31828
32035
  };
31829
32036
  declarations(file2);
31830
32037
  const resolve141 = (node4) => {
31831
32038
  if (callable(node4)) return node4;
31832
- if (node4 && ts44.isIdentifier(node4)) {
32039
+ if (node4 && ts46.isIdentifier(node4)) {
31833
32040
  const symbol = symbols.get(node4.text);
31834
32041
  if (symbol?.count === 1) return symbol.fn;
31835
32042
  }
@@ -31843,9 +32050,9 @@ function literalTargets(bundleJs, ts44) {
31843
32050
  const nav = {};
31844
32051
  for (const p2 of o2.properties) {
31845
32052
  const key4 = name(p2.name);
31846
- if (!ts44.isPropertyAssignment(p2) || !key4 || !NAV_KEYS.has(key4)) return void 0;
31847
- if (ts44.isStringLiteralLike(p2.initializer) && p2.initializer.text) nav[key4] = p2.initializer.text;
31848
- else if (key4 === "reset" && p2.initializer.kind === ts44.SyntaxKind.TrueKeyword) nav[key4] = true;
32053
+ if (!ts46.isPropertyAssignment(p2) || !key4 || !NAV_KEYS.has(key4)) return void 0;
32054
+ if (ts46.isStringLiteralLike(p2.initializer) && p2.initializer.text) nav[key4] = p2.initializer.text;
32055
+ else if (key4 === "reset" && p2.initializer.kind === ts46.SyntaxKind.TrueKeyword) nav[key4] = true;
31849
32056
  else return void 0;
31850
32057
  }
31851
32058
  const { screenId, presentation, tab, reset } = nav;
@@ -31856,75 +32063,75 @@ function literalTargets(bundleJs, ts44) {
31856
32063
  };
31857
32064
  const assigned = /* @__PURE__ */ new Set();
31858
32065
  const assignedNames = (n2) => {
31859
- if (ts44.isIdentifier(n2)) assigned.add(n2.text);
31860
- else ts44.forEachChild(n2, assignedNames);
32066
+ if (ts46.isIdentifier(n2)) assigned.add(n2.text);
32067
+ else ts46.forEachChild(n2, assignedNames);
31861
32068
  };
31862
32069
  const assignments = (n2) => {
31863
- if (ts44.isBinaryExpression(n2) && n2.operatorToken.kind >= ts44.SyntaxKind.FirstAssignment && n2.operatorToken.kind <= ts44.SyntaxKind.LastAssignment) assignedNames(n2.left);
31864
- else if ((ts44.isPrefixUnaryExpression(n2) || ts44.isPostfixUnaryExpression(n2)) && (n2.operator === ts44.SyntaxKind.PlusPlusToken || n2.operator === ts44.SyntaxKind.MinusMinusToken)) assignedNames(n2.operand);
31865
- else if ((ts44.isForOfStatement(n2) || ts44.isForInStatement(n2)) && !ts44.isVariableDeclarationList(n2.initializer)) assignedNames(n2.initializer);
31866
- ts44.forEachChild(n2, assignments);
32070
+ if (ts46.isBinaryExpression(n2) && n2.operatorToken.kind >= ts46.SyntaxKind.FirstAssignment && n2.operatorToken.kind <= ts46.SyntaxKind.LastAssignment) assignedNames(n2.left);
32071
+ else if ((ts46.isPrefixUnaryExpression(n2) || ts46.isPostfixUnaryExpression(n2)) && (n2.operator === ts46.SyntaxKind.PlusPlusToken || n2.operator === ts46.SyntaxKind.MinusMinusToken)) assignedNames(n2.operand);
32072
+ else if ((ts46.isForOfStatement(n2) || ts46.isForInStatement(n2)) && !ts46.isVariableDeclarationList(n2.initializer)) assignedNames(n2.initializer);
32073
+ ts46.forEachChild(n2, assignments);
31867
32074
  };
31868
32075
  assignments(file2);
31869
32076
  const plain5 = (fn2) => {
31870
- const modifiers = ts44.canHaveModifiers(fn2) ? ts44.getModifiers(fn2) ?? [] : [];
31871
- return !fn2.asteriskToken && !modifiers.some((m2) => m2.kind === ts44.SyntaxKind.AsyncKeyword);
32077
+ const modifiers = ts46.canHaveModifiers(fn2) ? ts46.getModifiers(fn2) ?? [] : [];
32078
+ return !fn2.asteriskToken && !modifiers.some((m2) => m2.kind === ts46.SyntaxKind.AsyncKeyword);
31872
32079
  };
31873
32080
  const plainParams = (fn2) => {
31874
32081
  const names2 = /* @__PURE__ */ new Set();
31875
32082
  for (const p2 of fn2.parameters) {
31876
- if (!ts44.isIdentifier(p2.name) || p2.initializer || p2.dotDotDotToken) return void 0;
32083
+ if (!ts46.isIdentifier(p2.name) || p2.initializer || p2.dotDotDotToken) return void 0;
31877
32084
  names2.add(p2.name.text);
31878
32085
  }
31879
32086
  return names2;
31880
32087
  };
31881
32088
  const provenSafe = (expr, params) => {
31882
- while (ts44.isParenthesizedExpression(expr)) expr = expr.expression;
31883
- if (ts44.isStringLiteral(expr) || ts44.isNoSubstitutionTemplateLiteral(expr) || ts44.isNumericLiteral(expr)) return true;
31884
- if (expr.kind === ts44.SyntaxKind.TrueKeyword || expr.kind === ts44.SyntaxKind.FalseKeyword || expr.kind === ts44.SyntaxKind.NullKeyword) return true;
31885
- if (ts44.isIdentifier(expr)) return params.has(expr.text);
31886
- if (ts44.isArrayLiteralExpression(expr)) {
31887
- return expr.elements.every((e2) => !ts44.isSpreadElement(e2) && !ts44.isOmittedExpression(e2) && provenSafe(e2, params));
31888
- }
31889
- if (ts44.isObjectLiteralExpression(expr)) return expr.properties.every((p2) => safeProperty(p2, params));
32089
+ while (ts46.isParenthesizedExpression(expr)) expr = expr.expression;
32090
+ if (ts46.isStringLiteral(expr) || ts46.isNoSubstitutionTemplateLiteral(expr) || ts46.isNumericLiteral(expr)) return true;
32091
+ if (expr.kind === ts46.SyntaxKind.TrueKeyword || expr.kind === ts46.SyntaxKind.FalseKeyword || expr.kind === ts46.SyntaxKind.NullKeyword) return true;
32092
+ if (ts46.isIdentifier(expr)) return params.has(expr.text);
32093
+ if (ts46.isArrayLiteralExpression(expr)) {
32094
+ return expr.elements.every((e2) => !ts46.isSpreadElement(e2) && !ts46.isOmittedExpression(e2) && provenSafe(e2, params));
32095
+ }
32096
+ if (ts46.isObjectLiteralExpression(expr)) return expr.properties.every((p2) => safeProperty(p2, params));
31890
32097
  return false;
31891
32098
  };
31892
32099
  const safeProperty = (p2, params) => {
31893
- if (ts44.isSpreadAssignment(p2)) return provenSafe(p2.expression, params);
31894
- if (ts44.isPropertyAssignment(p2)) return !ts44.isComputedPropertyName(p2.name) && provenSafe(p2.initializer, params);
31895
- if (ts44.isShorthandPropertyAssignment(p2)) return params.has(p2.name.text) && !p2.objectAssignmentInitializer;
32100
+ if (ts46.isSpreadAssignment(p2)) return provenSafe(p2.expression, params);
32101
+ if (ts46.isPropertyAssignment(p2)) return !ts46.isComputedPropertyName(p2.name) && provenSafe(p2.initializer, params);
32102
+ if (ts46.isShorthandPropertyAssignment(p2)) return params.has(p2.name.text) && !p2.objectAssignmentInitializer;
31896
32103
  return false;
31897
32104
  };
31898
32105
  const isNavigateHelper = (callee) => {
31899
- if (!ts44.isIdentifier(callee) || !/^navigate[0-9]*$/.test(callee.text) || assigned.has(callee.text)) return false;
32106
+ if (!ts46.isIdentifier(callee) || !/^navigate[0-9]*$/.test(callee.text) || assigned.has(callee.text)) return false;
31900
32107
  const symbol = symbols.get(callee.text);
31901
32108
  const helper = symbol?.count === 1 ? symbol.fn : void 0;
31902
32109
  if (!helper?.body || !plain5(helper) || helper.parameters.length !== 2 || !plainParams(helper)) return false;
31903
32110
  const [stateParam, navParam] = helper.parameters.map((p2) => name(p2.name));
31904
- const body = ts44.isBlock(helper.body) ? helper.body.statements.length === 1 && ts44.isReturnStatement(helper.body.statements[0]) ? helper.body.statements[0].expression : void 0 : helper.body;
32111
+ const body = ts46.isBlock(helper.body) ? helper.body.statements.length === 1 && ts46.isReturnStatement(helper.body.statements[0]) ? helper.body.statements[0].expression : void 0 : helper.body;
31905
32112
  const o2 = object16(body);
31906
32113
  if (!o2 || o2.properties.length !== 2 || !stateParam || !navParam) return false;
31907
32114
  const [spread, nav] = o2.properties;
31908
- return ts44.isSpreadAssignment(spread) && ts44.isIdentifier(spread.expression) && spread.expression.text === stateParam && ts44.isPropertyAssignment(nav) && name(nav.name) === "_nav" && ts44.isIdentifier(nav.initializer) && nav.initializer.text === navParam;
32115
+ return ts46.isSpreadAssignment(spread) && ts46.isIdentifier(spread.expression) && spread.expression.text === stateParam && ts46.isPropertyAssignment(nav) && name(nav.name) === "_nav" && ts46.isIdentifier(nav.initializer) && nav.initializer.text === navParam;
31909
32116
  };
31910
32117
  const fixedOf = (fn2) => {
31911
32118
  const params = plainParams(fn2);
31912
32119
  if (!fn2.body || !plain5(fn2) || !params) return void 0;
31913
32120
  let result = void 0;
31914
- if (ts44.isBlock(fn2.body)) {
32121
+ if (ts46.isBlock(fn2.body)) {
31915
32122
  const [only, ...rest] = fn2.body.statements;
31916
- if (!only || rest.length > 0 || !ts44.isReturnStatement(only)) return void 0;
32123
+ if (!only || rest.length > 0 || !ts46.isReturnStatement(only)) return void 0;
31917
32124
  result = only.expression;
31918
32125
  } else result = fn2.body;
31919
- while (result && ts44.isParenthesizedExpression(result)) result = result.expression;
32126
+ while (result && ts46.isParenthesizedExpression(result)) result = result.expression;
31920
32127
  let navNode;
31921
- if (result && ts44.isObjectLiteralExpression(result)) {
32128
+ if (result && ts46.isObjectLiteralExpression(result)) {
31922
32129
  const props2 = result.properties;
31923
32130
  const lastProp = props2[props2.length - 1];
31924
- if (!lastProp || !ts44.isPropertyAssignment(lastProp) || ts44.isComputedPropertyName(lastProp.name) || name(lastProp.name) !== "_nav") return void 0;
32131
+ if (!lastProp || !ts46.isPropertyAssignment(lastProp) || ts46.isComputedPropertyName(lastProp.name) || name(lastProp.name) !== "_nav") return void 0;
31925
32132
  if (!props2.slice(0, -1).every((p2) => safeProperty(p2, params))) return void 0;
31926
32133
  navNode = lastProp.initializer;
31927
- } else if (result && ts44.isCallExpression(result) && result.arguments.length === 2 && isNavigateHelper(result.expression)) {
32134
+ } else if (result && ts46.isCallExpression(result) && result.arguments.length === 2 && isNavigateHelper(result.expression)) {
31928
32135
  if (!provenSafe(result.arguments[0], params)) return void 0;
31929
32136
  navNode = result.arguments[1];
31930
32137
  }
@@ -31934,58 +32141,58 @@ function literalTargets(bundleJs, ts44) {
31934
32141
  return { nav, line: position.line + 1, column: position.character };
31935
32142
  };
31936
32143
  const visit = (node4) => {
31937
- if (ts44.isCallExpression(node4)) {
31938
- const callee = ts44.isPropertyAccessExpression(node4.expression) ? node4.expression.name.text : name(node4.expression);
32144
+ if (ts46.isCallExpression(node4)) {
32145
+ const callee = ts46.isPropertyAccessExpression(node4.expression) ? node4.expression.name.text : name(node4.expression);
31939
32146
  const service = node4.arguments[0];
31940
- if (callee && /^defineService[0-9]*$/.test(callee) && service && ts44.isStringLiteralLike(service)) {
32147
+ if (callee && /^defineService[0-9]*$/.test(callee) && service && ts46.isStringLiteralLike(service)) {
31941
32148
  const actions = object16(initializer(property3(object16(node4.arguments[1]), "actions")));
31942
32149
  for (const member of actions?.properties ?? []) {
31943
32150
  const action = name(member.name);
31944
- const fn2 = ts44.isMethodDeclaration(member) ? member : resolve141(ts44.isShorthandPropertyAssignment(member) ? member.name : initializer(member));
32151
+ const fn2 = ts46.isMethodDeclaration(member) ? member : resolve141(ts46.isShorthandPropertyAssignment(member) ? member.name : initializer(member));
31945
32152
  if (!action || !fn2?.body) continue;
31946
32153
  const targets = [];
31947
32154
  const target = (expr) => {
31948
32155
  const sid = initializer(property3(object16(expr), "screenId"));
31949
- if (!sid || !ts44.isStringLiteralLike(sid)) return;
32156
+ if (!sid || !ts46.isStringLiteralLike(sid)) return;
31950
32157
  const position = file2.getLineAndCharacterOfPosition(sid.getStart(file2));
31951
32158
  targets.push({ screenId: sid.text, line: position.line + 1, column: position.character });
31952
32159
  };
31953
32160
  const returned = (expr) => {
31954
32161
  if (!expr) return;
31955
- if (ts44.isParenthesizedExpression(expr) || ts44.isAwaitExpression(expr)) {
32162
+ if (ts46.isParenthesizedExpression(expr) || ts46.isAwaitExpression(expr)) {
31956
32163
  returned(expr.expression);
31957
32164
  return;
31958
32165
  }
31959
- if (ts44.isConditionalExpression(expr)) {
32166
+ if (ts46.isConditionalExpression(expr)) {
31960
32167
  returned(expr.whenTrue);
31961
32168
  returned(expr.whenFalse);
31962
32169
  return;
31963
32170
  }
31964
- if (ts44.isObjectLiteralExpression(expr)) {
32171
+ if (ts46.isObjectLiteralExpression(expr)) {
31965
32172
  target(initializer(property3(expr, "_nav")));
31966
32173
  return;
31967
32174
  }
31968
- if (ts44.isCallExpression(expr)) {
31969
- const called = ts44.isPropertyAccessExpression(expr.expression) ? expr.expression.name.text : name(expr.expression);
32175
+ if (ts46.isCallExpression(expr)) {
32176
+ const called = ts46.isPropertyAccessExpression(expr.expression) ? expr.expression.name.text : name(expr.expression);
31970
32177
  if (called && /^navigate[0-9]*$/.test(called)) target(expr.arguments[1]);
31971
32178
  }
31972
32179
  };
31973
- if (ts44.isBlock(fn2.body)) {
32180
+ if (ts46.isBlock(fn2.body)) {
31974
32181
  const returns = (part7) => {
31975
32182
  if (callable(part7)) return;
31976
- if (ts44.isReturnStatement(part7)) returned(part7.expression);
31977
- else ts44.forEachChild(part7, returns);
32183
+ if (ts46.isReturnStatement(part7)) returned(part7.expression);
32184
+ else ts46.forEachChild(part7, returns);
31978
32185
  };
31979
32186
  returns(fn2.body);
31980
32187
  } else returned(fn2.body);
31981
32188
  results.set("tier5." + service.text + "." + action, targets);
31982
- const ref = ts44.isShorthandPropertyAssignment(member) ? member.name : initializer(member);
31983
- const always = ref && ts44.isIdentifier(ref) && assigned.has(ref.text) ? void 0 : fixedOf(fn2);
32189
+ const ref = ts46.isShorthandPropertyAssignment(member) ? member.name : initializer(member);
32190
+ const always = ref && ts46.isIdentifier(ref) && assigned.has(ref.text) ? void 0 : fixedOf(fn2);
31984
32191
  if (always) fixed.set("tier5." + service.text + "." + action, always);
31985
32192
  }
31986
32193
  }
31987
32194
  }
31988
- ts44.forEachChild(node4, visit);
32195
+ ts46.forEachChild(node4, visit);
31989
32196
  };
31990
32197
  visit(file2);
31991
32198
  cache.set(bundleJs, results);
@@ -32011,7 +32218,7 @@ var init_player_host_manifest = __esm({
32011
32218
  "../../apps/himi-player/player-host-manifest.ts"() {
32012
32219
  init_define_HHP_CATALOG();
32013
32220
  PLAYER_HOST_MANIFEST = {
32014
- "version": "1.12.0",
32221
+ "version": "1.13.0",
32015
32222
  "capabilities": [
32016
32223
  "animation",
32017
32224
  "app_info",
@@ -32855,7 +33062,7 @@ __export(hhp_exports, {
32855
33062
  import { existsSync as existsSync22, readFileSync as readFileSync22, writeFileSync as writeFileSync13, mkdirSync as mkdirSync14, renameSync as renameSync6, rmSync as rmSync8, lstatSync as lstatSync11, readdirSync as readdirSync16 } from "node:fs";
32856
33063
  import { basename as basename8, dirname as dirname18, resolve as resolve22, relative as relative8, sep as sep10, join as join18 } from "node:path";
32857
33064
  import { createHash as createHash10, randomUUID as randomUUID5 } from "node:crypto";
32858
- import ts3 from "typescript";
33065
+ import ts5 from "typescript";
32859
33066
  function localPath(root, path2, from = join18(root, "hhp.json")) {
32860
33067
  if (/^[a-z]+:|^\/\//i.test(path2)) throw new Error("HHP source dependencies must be local files.");
32861
33068
  const target = resolve22(dirname18(from), path2), rel2 = relative8(resolve22(root), target);
@@ -32912,18 +33119,18 @@ async function profileForContent(root) {
32912
33119
  return appProfile({ app: loaded2?.name ?? config.name, tokens: tokens2, surfaces: [...new Set(surfaces)], capabilities: config.capabilities ?? [], components: appComponents, handlers: [...DEFAULT_HANDLERS, ...loaded2?.module.actions.map((action) => action.descriptor.id) ?? []], workerSubtreeScreens: config.workerSubtreeScreens ?? [] });
32913
33120
  }
32914
33121
  function managedRegistry(source2) {
32915
- const sf2 = ts3.createSourceFile("dev/index.ts", source2, ts3.ScriptTarget.Latest, true);
32916
- const defaults = sf2.statements.filter((s5) => ts3.isExportAssignment(s5) && !s5.isExportEquals);
33122
+ const sf2 = ts5.createSourceFile("dev/index.ts", source2, ts5.ScriptTarget.Latest, true);
33123
+ const defaults = sf2.statements.filter((s5) => ts5.isExportAssignment(s5) && !s5.isExportEquals);
32917
33124
  if (defaults.length !== 1) throw new Error("HHP registry wiring requires one default-exported app object or identifier.");
32918
33125
  const expression = defaults[0].expression;
32919
- if (ts3.isCallExpression(expression) && expression.expression.getText(sf2) === "__himiHhp") {
33126
+ if (ts5.isCallExpression(expression) && expression.expression.getText(sf2) === "__himiHhp") {
32920
33127
  if (!source2.includes(BEGIN) || !source2.includes(END)) throw new Error("HHP registry markers are missing; refusing an ambiguous edit.");
32921
33128
  return source2;
32922
33129
  }
32923
33130
  if (source2.includes(BEGIN) || source2.includes(END) || /\b__himiHhp\b/.test(source2)) throw new Error("HHP registry markers/name conflict with authored code.");
32924
33131
  let base2 = expression;
32925
- while (ts3.isAsExpression(base2) || ts3.isSatisfiesExpression(base2) || ts3.isParenthesizedExpression(base2)) base2 = base2.expression;
32926
- if (!ts3.isObjectLiteralExpression(base2) && !ts3.isIdentifier(base2)) throw new Error("HHP cannot safely wire this default export. Export an app object or identifier first.");
33132
+ while (ts5.isAsExpression(base2) || ts5.isSatisfiesExpression(base2) || ts5.isParenthesizedExpression(base2)) base2 = base2.expression;
33133
+ if (!ts5.isObjectLiteralExpression(base2) && !ts5.isIdentifier(base2)) throw new Error("HHP cannot safely wire this default export. Export an app object or identifier first.");
32927
33134
  const wrapped2 = source2.slice(0, expression.getStart(sf2)) + `__himiHhp(${expression.getText(sf2)})` + source2.slice(expression.end);
32928
33135
  return `${BEGIN}
32929
33136
  import { withHhpScreens as __himiHhp } from "./hhp/index.js";
@@ -32979,8 +33186,8 @@ async function compileContentHhp(root, opts = {}) {
32979
33186
  const source2 = readFileSync22(file3, "utf8");
32980
33187
  inspectModule(source2, file3, profile, diagnostics);
32981
33188
  for (const cap2 of moduleCapabilities(source2, file3, profile)) requiredCapabilities2.add(cap2);
32982
- const sf2 = ts3.createSourceFile(file3, source2, ts3.ScriptTarget.Latest, true);
32983
- for (const stmt of sf2.statements) if ((ts3.isImportDeclaration(stmt) || ts3.isExportDeclaration(stmt)) && stmt.moduleSpecifier && ts3.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text.startsWith(".")) {
33189
+ const sf2 = ts5.createSourceFile(file3, source2, ts5.ScriptTarget.Latest, true);
33190
+ for (const stmt of sf2.statements) if ((ts5.isImportDeclaration(stmt) || ts5.isExportDeclaration(stmt)) && stmt.moduleSpecifier && ts5.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text.startsWith(".")) {
32984
33191
  let imported = localPath(root, stmt.moduleSpecifier.text, file3);
32985
33192
  if (!existsSync22(imported) && imported.endsWith(".js")) imported = imported.slice(0, -3) + ".ts";
32986
33193
  if (!existsSync22(imported)) imported += ".ts";
@@ -33407,14 +33614,14 @@ var init_validation_comparison = __esm({
33407
33614
  // src/config-source-edit.ts
33408
33615
  import { lstatSync as lstatSync13 } from "node:fs";
33409
33616
  import { join as join20 } from "node:path";
33410
- import ts4 from "typescript";
33617
+ import ts6 from "typescript";
33411
33618
  function defineAppLiteral(file2) {
33412
33619
  for (const statement of file2.statements) {
33413
- if (!ts4.isExportAssignment(statement)) continue;
33620
+ if (!ts6.isExportAssignment(statement)) continue;
33414
33621
  const exported = localValue(file2, unwrap(statement.expression));
33415
- if (ts4.isObjectLiteralExpression(exported)) return exported;
33416
- const [first] = ts4.isCallExpression(exported) ? exported.arguments : [];
33417
- return first && ts4.isObjectLiteralExpression(unwrap(first)) ? unwrap(first) : void 0;
33622
+ if (ts6.isObjectLiteralExpression(exported)) return exported;
33623
+ const [first] = ts6.isCallExpression(exported) ? exported.arguments : [];
33624
+ return first && ts6.isObjectLiteralExpression(unwrap(first)) ? unwrap(first) : void 0;
33418
33625
  }
33419
33626
  return void 0;
33420
33627
  }
@@ -33422,27 +33629,27 @@ function loginOf(app2) {
33422
33629
  const auth = lookup(app2, "auth");
33423
33630
  if (auth.kind !== "written") return { kind: auth.kind === "absent" ? "other" : "opaque" };
33424
33631
  const value2 = unwrap(auth.node.initializer);
33425
- if (ts4.isObjectLiteralExpression(value2)) return { kind: "other" };
33426
- if (!ts4.isCallExpression(value2)) return { kind: "opaque" };
33632
+ if (ts6.isObjectLiteralExpression(value2)) return { kind: "other" };
33633
+ if (!ts6.isCallExpression(value2)) return { kind: "opaque" };
33427
33634
  const provider = calleeName(value2);
33428
33635
  if (provider === "WixOwnerAuthProvider" || provider === "WixAuthProvider") return { kind: "owner" };
33429
33636
  if (provider === "WixNativeAuthProvider") return nativeMode(value2) === "owner" ? { kind: "owner" } : { kind: "other" };
33430
33637
  if (provider !== "WixConsumerAuthProvider") return { kind: "other" };
33431
33638
  const [first] = value2.arguments;
33432
- return first && ts4.isObjectLiteralExpression(first) ? { kind: "member", literal: first } : { kind: "opaque" };
33639
+ return first && ts6.isObjectLiteralExpression(first) ? { kind: "member", literal: first } : { kind: "opaque" };
33433
33640
  }
33434
33641
  function nativeMode(call) {
33435
33642
  const [first] = call.arguments;
33436
- return first && ts4.isObjectLiteralExpression(first) ? stringValue(first, "mode") : void 0;
33643
+ return first && ts6.isObjectLiteralExpression(first) ? stringValue(first, "mode") : void 0;
33437
33644
  }
33438
33645
  function calleeName(call) {
33439
33646
  const callee = call.expression;
33440
- if (ts4.isIdentifier(callee)) return callee.text;
33441
- return ts4.isPropertyAccessExpression(callee) ? callee.name.text : void 0;
33647
+ if (ts6.isIdentifier(callee)) return callee.text;
33648
+ return ts6.isPropertyAccessExpression(callee) ? callee.name.text : void 0;
33442
33649
  }
33443
33650
  function unwrap(node4) {
33444
33651
  let current = node4;
33445
- while (ts4.isParenthesizedExpression(current) || ts4.isAsExpression(current) || ts4.isSatisfiesExpression(current)) {
33652
+ while (ts6.isParenthesizedExpression(current) || ts6.isAsExpression(current) || ts6.isSatisfiesExpression(current)) {
33446
33653
  current = current.expression;
33447
33654
  }
33448
33655
  return current;
@@ -33450,17 +33657,17 @@ function unwrap(node4) {
33450
33657
  function lookup(literal5, name) {
33451
33658
  let found = { kind: "absent" };
33452
33659
  for (const p2 of literal5.properties) {
33453
- const key4 = p2.name && (ts4.isIdentifier(p2.name) || ts4.isStringLiteral(p2.name)) ? p2.name.text : void 0;
33454
- if (ts4.isPropertyAssignment(p2) && key4 === name) found = { kind: "written", node: p2 };
33455
- else if (ts4.isSpreadAssignment(p2) || p2.name && ts4.isComputedPropertyName(p2.name) || key4 === name) found = { kind: "opaque" };
33660
+ const key4 = p2.name && (ts6.isIdentifier(p2.name) || ts6.isStringLiteral(p2.name)) ? p2.name.text : void 0;
33661
+ if (ts6.isPropertyAssignment(p2) && key4 === name) found = { kind: "written", node: p2 };
33662
+ else if (ts6.isSpreadAssignment(p2) || p2.name && ts6.isComputedPropertyName(p2.name) || key4 === name) found = { kind: "opaque" };
33456
33663
  }
33457
33664
  return found;
33458
33665
  }
33459
33666
  function stringValue(node4, name) {
33460
33667
  const literal5 = unwrap(node4);
33461
- const found = ts4.isObjectLiteralExpression(literal5) ? lookup(literal5, name) : void 0;
33668
+ const found = ts6.isObjectLiteralExpression(literal5) ? lookup(literal5, name) : void 0;
33462
33669
  const value2 = found?.kind === "written" ? found.node.initializer : void 0;
33463
- return value2 && ts4.isStringLiteralLike(value2) ? value2.text : void 0;
33670
+ return value2 && ts6.isStringLiteralLike(value2) ? value2.text : void 0;
33464
33671
  }
33465
33672
  function appendProperties(literal5, file2, lines2) {
33466
33673
  const inline = () => lines2.filter((line) => !line.trimStart().startsWith("//")).join(" ");
@@ -33492,11 +33699,11 @@ function applySplices(source2, splices) {
33492
33699
  return [...splices].sort((a3, b3) => b3.at - a3.at).reduce((out2, s5) => out2.slice(0, s5.at) + s5.text + out2.slice(s5.end), source2);
33493
33700
  }
33494
33701
  function localValue(file2, node4) {
33495
- if (!ts4.isIdentifier(node4)) return node4;
33702
+ if (!ts6.isIdentifier(node4)) return node4;
33496
33703
  for (const statement of file2.statements) {
33497
- if (!ts4.isVariableStatement(statement) || !(statement.declarationList.flags & ts4.NodeFlags.Const)) continue;
33704
+ if (!ts6.isVariableStatement(statement) || !(statement.declarationList.flags & ts6.NodeFlags.Const)) continue;
33498
33705
  for (const declaration2 of statement.declarationList.declarations) {
33499
- if (ts4.isIdentifier(declaration2.name) && declaration2.name.text === node4.text && declaration2.initializer) return unwrap(declaration2.initializer);
33706
+ if (ts6.isIdentifier(declaration2.name) && declaration2.name.text === node4.text && declaration2.initializer) return unwrap(declaration2.initializer);
33500
33707
  }
33501
33708
  }
33502
33709
  return node4;
@@ -34959,9 +35166,9 @@ var init_codegen = __esm({
34959
35166
  });
34960
35167
 
34961
35168
  // ../native-extensions/interface-parse.ts
34962
- import ts5 from "typescript";
35169
+ import ts7 from "typescript";
34963
35170
  function parseExtensionInterface(source2, manifest2, fileName = "interface.ts") {
34964
- const file2 = ts5.createSourceFile(fileName, source2, ts5.ScriptTarget.ES2022, true, ts5.ScriptKind.TS);
35171
+ const file2 = ts7.createSourceFile(fileName, source2, ts7.ScriptTarget.ES2022, true, ts7.ScriptKind.TS);
34965
35172
  const problems = [];
34966
35173
  const at2 = (node4) => file2.getLineAndCharacterOfPosition(node4.getStart(file2)).line + 1;
34967
35174
  const bad4 = (node4, message5) => problems.push({ code: "extension_interface_invalid", line: at2(node4), message: message5 });
@@ -34969,18 +35176,18 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
34969
35176
  const named5 = /* @__PURE__ */ new Map();
34970
35177
  let main4;
34971
35178
  for (const statement of file2.statements) {
34972
- if (ts5.isImportDeclaration(statement) || ts5.isImportEqualsDeclaration(statement)) {
35179
+ if (ts7.isImportDeclaration(statement) || ts7.isImportEqualsDeclaration(statement)) {
34973
35180
  bad4(statement, "interface.ts must be self-contained: no imports");
34974
- } else if (ts5.isInterfaceDeclaration(statement)) {
35181
+ } else if (ts7.isInterfaceDeclaration(statement)) {
34975
35182
  if (statement.typeParameters?.length) bad4(statement, `interface ${statement.name.text} must not be generic`);
34976
35183
  if (statement.heritageClauses?.length) bad4(statement, `interface ${statement.name.text} must not extend another type`);
34977
35184
  if (statement.name.text === pascal2) main4 = statement;
34978
35185
  else named5.set(statement.name.text, statement);
34979
- } else if (ts5.isTypeAliasDeclaration(statement)) {
35186
+ } else if (ts7.isTypeAliasDeclaration(statement)) {
34980
35187
  if (statement.typeParameters?.length) bad4(statement, `type ${statement.name.text} must not be generic`);
34981
- if (ts5.isTypeLiteralNode(statement.type)) named5.set(statement.name.text, statement.type);
35188
+ if (ts7.isTypeLiteralNode(statement.type)) named5.set(statement.name.text, statement.type);
34982
35189
  else bad4(statement, `type ${statement.name.text} must be an object type ({ \u2026 })`);
34983
- } else if (!ts5.isEmptyStatement(statement)) {
35190
+ } else if (!ts7.isEmptyStatement(statement)) {
34984
35191
  bad4(statement, "interface.ts may declare only interfaces and object type aliases");
34985
35192
  }
34986
35193
  }
@@ -34989,7 +35196,7 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
34989
35196
  problems.push({ code: "extension_interface_invalid", line: 1, message: `interface.ts must export \`interface ${pascal2}\` (the extension "${manifest2.name}" in PascalCase)` });
34990
35197
  return { ok: false, problems };
34991
35198
  }
34992
- if (main4 && !main4.modifiers?.some((m2) => m2.kind === ts5.SyntaxKind.ExportKeyword)) bad4(main4, `interface ${pascal2} must be exported`);
35199
+ if (main4 && !main4.modifiers?.some((m2) => m2.kind === ts7.SyntaxKind.ExportKeyword)) bad4(main4, `interface ${pascal2} must be exported`);
34993
35200
  const structs = /* @__PURE__ */ new Map();
34994
35201
  const origin = /* @__PURE__ */ new Map();
34995
35202
  const structName = (tsName) => tsName.startsWith(pascal2) ? tsName : `${pascal2}${tsName}`;
@@ -35009,7 +35216,7 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35009
35216
  building.add(name);
35010
35217
  const fields2 = [];
35011
35218
  for (const member of members2) {
35012
- if (!ts5.isPropertySignature(member) || !member.name || !(ts5.isIdentifier(member.name) || ts5.isStringLiteral(member.name))) {
35219
+ if (!ts7.isPropertySignature(member) || !member.name || !(ts7.isIdentifier(member.name) || ts7.isStringLiteral(member.name))) {
35013
35220
  bad4(member, "an object type may contain only named properties");
35014
35221
  continue;
35015
35222
  }
@@ -35031,8 +35238,8 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35031
35238
  return name;
35032
35239
  };
35033
35240
  const objectStruct = (node4, anonymousName) => {
35034
- if (ts5.isTypeLiteralNode(node4)) return structFrom(node4.members, anonymousName, node4, node4);
35035
- if (ts5.isTypeReferenceNode(node4) && ts5.isIdentifier(node4.typeName) && !node4.typeArguments) {
35241
+ if (ts7.isTypeLiteralNode(node4)) return structFrom(node4.members, anonymousName, node4, node4);
35242
+ if (ts7.isTypeReferenceNode(node4) && ts7.isIdentifier(node4.typeName) && !node4.typeArguments) {
35036
35243
  const decl = named5.get(node4.typeName.text);
35037
35244
  if (!decl) {
35038
35245
  bad4(node4, `type ${node4.typeName.text} is not declared in interface.ts`);
@@ -35045,23 +35252,23 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35045
35252
  };
35046
35253
  const fieldType2 = (node4, anonymousName) => {
35047
35254
  switch (node4.kind) {
35048
- case ts5.SyntaxKind.StringKeyword:
35255
+ case ts7.SyntaxKind.StringKeyword:
35049
35256
  return { kind: "string" };
35050
- case ts5.SyntaxKind.NumberKeyword:
35257
+ case ts7.SyntaxKind.NumberKeyword:
35051
35258
  return { kind: "number" };
35052
- case ts5.SyntaxKind.BooleanKeyword:
35259
+ case ts7.SyntaxKind.BooleanKeyword:
35053
35260
  return { kind: "boolean" };
35054
35261
  }
35055
- if (ts5.isArrayTypeNode(node4)) {
35262
+ if (ts7.isArrayTypeNode(node4)) {
35056
35263
  const of2 = fieldType2(node4.elementType, `${anonymousName}Item`);
35057
35264
  return of2 && { kind: "array", of: of2 };
35058
35265
  }
35059
- if (ts5.isTypeReferenceNode(node4) && ts5.isIdentifier(node4.typeName) && node4.typeName.text === "Array" && node4.typeArguments?.length === 1) {
35266
+ if (ts7.isTypeReferenceNode(node4) && ts7.isIdentifier(node4.typeName) && node4.typeName.text === "Array" && node4.typeArguments?.length === 1) {
35060
35267
  const of2 = fieldType2(node4.typeArguments[0], `${anonymousName}Item`);
35061
35268
  return of2 && { kind: "array", of: of2 };
35062
35269
  }
35063
- if (ts5.isParenthesizedTypeNode(node4)) return fieldType2(node4.type, anonymousName);
35064
- if (ts5.isTypeLiteralNode(node4) || ts5.isTypeReferenceNode(node4)) {
35270
+ if (ts7.isParenthesizedTypeNode(node4)) return fieldType2(node4.type, anonymousName);
35271
+ if (ts7.isTypeLiteralNode(node4) || ts7.isTypeReferenceNode(node4)) {
35065
35272
  const struct = objectStruct(node4, anonymousName);
35066
35273
  return struct ? { kind: "object", struct } : void 0;
35067
35274
  }
@@ -35070,7 +35277,7 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35070
35277
  };
35071
35278
  const methods = [];
35072
35279
  for (const member of main4?.members ?? []) {
35073
- if (!ts5.isMethodSignature(member) || !ts5.isIdentifier(member.name)) {
35280
+ if (!ts7.isMethodSignature(member) || !ts7.isIdentifier(member.name)) {
35074
35281
  bad4(member, `interface ${pascal2} may contain only methods (\`read(opts: {\u2026}): Promise<\u2026>\`)`);
35075
35282
  continue;
35076
35283
  }
@@ -35091,11 +35298,11 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35091
35298
  else method.input = objectStruct(param.type, `${pascal2}${methodPascal}Input`);
35092
35299
  }
35093
35300
  const ret = member.type;
35094
- if (!ret || !ts5.isTypeReferenceNode(ret) || !ts5.isIdentifier(ret.typeName) || ret.typeName.text !== "Promise" || ret.typeArguments?.length !== 1) {
35301
+ if (!ret || !ts7.isTypeReferenceNode(ret) || !ts7.isIdentifier(ret.typeName) || ret.typeName.text !== "Promise" || ret.typeArguments?.length !== 1) {
35095
35302
  bad4(member, `method ${name} must return Promise<\u2026>`);
35096
35303
  } else {
35097
35304
  const inner = ret.typeArguments[0];
35098
- if (inner.kind !== ts5.SyntaxKind.VoidKeyword) method.result = objectStruct(inner, `${pascal2}${methodPascal}Result`);
35305
+ if (inner.kind !== ts7.SyntaxKind.VoidKeyword) method.result = objectStruct(inner, `${pascal2}${methodPascal}Result`);
35099
35306
  }
35100
35307
  methods.push(method);
35101
35308
  }
@@ -35109,8 +35316,8 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35109
35316
  problems.push({ code: "extension_interface_invalid", line: 1, message: `himi-extension.json view "${view}" names props type ${spec.props}, which interface.ts does not declare` });
35110
35317
  continue;
35111
35318
  }
35112
- const owner = ts5.isInterfaceDeclaration(decl) ? decl : decl.parent;
35113
- const clash = decl.members.find((m2) => ts5.isPropertySignature(m2) && m2.name && (ts5.isIdentifier(m2.name) || ts5.isStringLiteral(m2.name)) && m2.name.text === VIEW_FALLBACK_PROP);
35319
+ const owner = ts7.isInterfaceDeclaration(decl) ? decl : decl.parent;
35320
+ const clash = decl.members.find((m2) => ts7.isPropertySignature(m2) && m2.name && (ts7.isIdentifier(m2.name) || ts7.isStringLiteral(m2.name)) && m2.name.text === VIEW_FALLBACK_PROP);
35114
35321
  if (clash) bad4(clash, `view props may not have a "${VIEW_FALLBACK_PROP}" field: the renderers read it as the view's fallback (RFC 0080 \xA77.3)`);
35115
35322
  const struct = structFrom(decl.members, structName(spec.props), owner, decl);
35116
35323
  views2.push({ name: view, props: struct, propsTsName: spec.props, whenMissing: viewWhenMissing(manifest2, view) });
@@ -35129,8 +35336,8 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35129
35336
  };
35130
35337
  }
35131
35338
  function stripNullable(node4) {
35132
- if (!ts5.isUnionTypeNode(node4)) return { type: node4, nullable: false };
35133
- const rest = node4.types.filter((t2) => !(t2.kind === ts5.SyntaxKind.UndefinedKeyword || ts5.isLiteralTypeNode(t2) && t2.literal.kind === ts5.SyntaxKind.NullKeyword));
35339
+ if (!ts7.isUnionTypeNode(node4)) return { type: node4, nullable: false };
35340
+ const rest = node4.types.filter((t2) => !(t2.kind === ts7.SyntaxKind.UndefinedKeyword || ts7.isLiteralTypeNode(t2) && t2.literal.kind === ts7.SyntaxKind.NullKeyword));
35134
35341
  return rest.length === 1 ? { type: rest[0], nullable: rest.length !== node4.types.length } : { type: node4, nullable: false };
35135
35342
  }
35136
35343
  var init_interface_parse = __esm({
@@ -35484,17 +35691,17 @@ var init_package = __esm({
35484
35691
  // src/extension-views.ts
35485
35692
  import { existsSync as existsSync26, readFileSync as readFileSync26 } from "node:fs";
35486
35693
  import { join as join23 } from "node:path";
35487
- import ts6 from "typescript";
35694
+ import ts8 from "typescript";
35488
35695
  function schemaRangeOf(source2) {
35489
- const file2 = ts6.createSourceFile("config.ts", source2, ts6.ScriptTarget.ES2022, true, ts6.ScriptKind.TS);
35696
+ const file2 = ts8.createSourceFile("config.ts", source2, ts8.ScriptTarget.ES2022, true, ts8.ScriptKind.TS);
35490
35697
  const app2 = defineAppLiteral(file2);
35491
35698
  const found = app2 ? lookup(app2, "schemaPackageRange") : void 0;
35492
35699
  if (found?.kind !== "written") return void 0;
35493
35700
  const literal5 = unwrap(found.node.initializer);
35494
- if (!ts6.isObjectLiteralExpression(literal5)) return void 0;
35701
+ if (!ts8.isObjectLiteralExpression(literal5)) return void 0;
35495
35702
  const num6 = (name) => {
35496
35703
  const f2 = lookup(literal5, name);
35497
- return f2.kind === "written" && ts6.isNumericLiteral(unwrap(f2.node.initializer)) ? Number(unwrap(f2.node.initializer).text) : void 0;
35704
+ return f2.kind === "written" && ts8.isNumericLiteral(unwrap(f2.node.initializer)) ? Number(unwrap(f2.node.initializer).text) : void 0;
35498
35705
  };
35499
35706
  const min = num6("min");
35500
35707
  const max = num6("max");
@@ -35504,7 +35711,7 @@ function isPlaceholderRange(r3) {
35504
35711
  return !r3 || r3.min === PLACEHOLDER_RANGE.min && r3.max === PLACEHOLDER_RANGE.max;
35505
35712
  }
35506
35713
  function setSchemaRangeInSource(source2, range) {
35507
- const file2 = ts6.createSourceFile("config.ts", source2, ts6.ScriptTarget.ES2022, true, ts6.ScriptKind.TS);
35714
+ const file2 = ts8.createSourceFile("config.ts", source2, ts8.ScriptTarget.ES2022, true, ts8.ScriptKind.TS);
35508
35715
  const app2 = defineAppLiteral(file2);
35509
35716
  if (!app2) throw new Error("config.ts has no defineApp({ \u2026 }) literal");
35510
35717
  const text32 = `{ min: ${range.min}, max: ${range.max} }`;
@@ -35594,16 +35801,16 @@ __export(extensions_exports, {
35594
35801
  });
35595
35802
  import { existsSync as existsSync27, readFileSync as readFileSync27, readdirSync as readdirSync20, statSync as statSync7 } from "node:fs";
35596
35803
  import { join as join24 } from "node:path";
35597
- import ts7 from "typescript";
35804
+ import ts9 from "typescript";
35598
35805
  function declaredExtensionsOf(source2, fileName = "config.ts") {
35599
- const file2 = ts7.createSourceFile(fileName, source2, ts7.ScriptTarget.ES2022, true, ts7.ScriptKind.TS);
35806
+ const file2 = ts9.createSourceFile(fileName, source2, ts9.ScriptTarget.ES2022, true, ts9.ScriptKind.TS);
35600
35807
  const app2 = defineAppLiteral(file2);
35601
35808
  if (!app2) return { kind: "opaque" };
35602
35809
  const found = lookup(app2, "extensions");
35603
35810
  if (found.kind === "absent") return { kind: "list", names: [] };
35604
35811
  if (found.kind === "opaque") return { kind: "opaque" };
35605
35812
  const value2 = unwrap(found.node.initializer);
35606
- if (!ts7.isArrayLiteralExpression(value2) || !value2.elements.every((e2) => ts7.isStringLiteralLike(e2))) return { kind: "opaque" };
35813
+ if (!ts9.isArrayLiteralExpression(value2) || !value2.elements.every((e2) => ts9.isStringLiteralLike(e2))) return { kind: "opaque" };
35607
35814
  return { kind: "list", names: value2.elements.map((e2) => e2.text), node: value2 };
35608
35815
  }
35609
35816
  function declaredExtensions(contentDir2) {
@@ -45886,6 +46093,13 @@ var init_media = __esm({
45886
46093
  }
45887
46094
  });
45888
46095
 
46096
+ // ../../core/ts/src/splash-timeline.ts
46097
+ var init_splash_timeline = __esm({
46098
+ "../../core/ts/src/splash-timeline.ts"() {
46099
+ init_define_HHP_CATALOG();
46100
+ }
46101
+ });
46102
+
45889
46103
  // ../../core/ts/src/distribution.ts
45890
46104
  var init_distribution = __esm({
45891
46105
  "../../core/ts/src/distribution.ts"() {
@@ -46222,6 +46436,7 @@ var init_define_app = __esm({
46222
46436
  init_define_HHP_CATALOG();
46223
46437
  init_admob_ids();
46224
46438
  init_app_services_gate();
46439
+ init_splash_timeline();
46225
46440
  init_locale();
46226
46441
  init_distribution();
46227
46442
  init_store_adopt();
@@ -46715,7 +46930,8 @@ var init_launch_manifest = __esm({
46715
46930
  freezeClock: { type: "string" },
46716
46931
  disableAnimations: { type: "boolean" },
46717
46932
  seedRandom: { type: "number" },
46718
- networkLatencyMs: { type: "number" }
46933
+ networkLatencyMs: { type: "number" },
46934
+ firstScreenDelayMs: { type: "number" }
46719
46935
  }),
46720
46936
  flags: { type: "object", additionalProperties: true },
46721
46937
  demo: directiveObject({
@@ -97068,7 +97284,7 @@ async function incrementalUpdate({ originalData: e2, xrefInfo: t2, changes: n2,
97068
97284
  for (const e3 of m2) j2 = writeString(e3, j2, w2);
97069
97285
  return w2;
97070
97286
  }
97071
- var e, t, n, a, r, s, i, o, l2, f, c, h, u, m, p, d, g, b2, w, j, k, y, q, v, S, x, C, T, O, R, D, H, M, N, _, E, z, L, U, W, X, K2, G, V2, $, Y, J, Q, Z, ee, te, ne, ae, re, se, ie, oe, le, fe, ce, he, ue, me, pe, de, ge, be, we, je, ke, ye, qe, ve, Se, Ae, xe, Ce, Ie, Fe, Te, Oe, Re, Be, De, He, Me, Ne, Pe, _e, Ee, ze, Le, Ue, We, Xe, Ke, Ge, Ve, $e, Ye, Je, Qe, Ze, et, tt, nt, rt, st, it, ot, lt, ft, ct, ht, ut, mt, pt, dt, gt, bt, wt, jt, kt, yt, qt, vt, St, At, xt, Ct, It, Ft, Tt, Ot, Rt, Bt, Dt, Ht, Mt, Nt, Pt, _t, Et, zt, Lt, Ut, Wt, Xt, Kt, Gt, Vt, $t, Yt, Jt, Qt, Zt, en, tn, nn, an, rn, sn, on, ln, PasswordException2, UnknownErrorException2, InvalidPDFException2, ResponseException2, FormatError2, AbortException2, FeatureTest2, Util2, fn, cn, makeArr2, makeMap2, makeObj2, makeSet2, hn, un, mn, pn, dn, Name, Cmd, nonSerializable, Dict, Ref, RefSet, RefMap, BaseStream, gn, bn, wn, jn, kn, yn, qn, vn, MissingDataException, ParserEOFException, XRefEntryException, XRefParseException, Sn, An, xn, Cn, QCMS, In, Fn, Tn, On, Rn, Bn, Dn, Hn, Mn, Nn, ColorSpace, AlternateCS, PatternCS, IndexedCS, DeviceGrayCS, DeviceRgbCS, DeviceRgbaCS, DeviceCmykCS, CalGrayCS, CalRGBCS, LabCS, IccColorSpace, CmykICCBasedCS, Stream, StringStream, NullStream, ChunkedStream, ChunkedStreamManager, ImageResizer, Pn, DecodeStream, StreamsSequenceStream, ColorSpaceUtils, JpegError, DNLMarkerError, EOIMarkerError, _n, En, zn, Ln, Un, Wn, Xn, Kn, Gn, JpegImage, JpegStream, Vn, NullOptimizer, QueueOptimizer, OperatorList, CheckedOperatorList, $n, Yn, Jn, Qn, Zn, ea, ta, Pattern, BaseShading, RadialAxialShading, FunctionBasedShading, MeshStreamReader, na, MeshShading, DummyShading, aa, BinaryCMapStream, BinaryCMapReader, Ascii85Stream, AsciiHexStream, ra, BrotliStream, sa, WasmImage, Jbig2Error, JBig2CCITTFaxImage, CCITTFaxStream, ia, oa, la, fa, ca, FlateStream, Jbig2Stream, ha, JpxError, JpxImage, JpxStream, LZWStream, PredictorStream, RunLengthStream, Parser, ua, Lexer, Linearization, ma, pa, CMap, IdentityCMap, CMapFactory, da, ga, ba, wa, ja, ka, ya, qa, va, Sa, Aa, xa, Ca, Ia, Fa, Ta, Oa, Ra, Ba, Da, Ha, Ma, DataBuilder, Na, Pa, _a2, Ea, za, CFFParser, CFF, CFFHeader, CFFStrings, CFFIndex, CFFDict, La, CFFTopDict, Ua, CFFPrivateDict, Wa, CFFCharset, CFFEncoding, CFFFDSelect, CFFOffsetTracker, CFFCompiler, Xa, Ka, Ga, Va, $a, Ya, Ja, Qa, Za, er, tr, nr, GlyfTable, Glyph2, GlyphHeader, Contour, SimpleGlyph, CompositeGlyph, ToUnicodeMap, IdentityToUnicodeMap, CFFFont, CSS_FONT_INFO2, SYSTEM_FONT_INFO2, FONT_INFO2, PATTERN_INFO2, InfoUtils2, Commands, CompiledFont, TrueTypeCompiled, Type2Compiled, FontRendererFactory, ar, rr, OpenTypeFileBuilder, sr, ir, or, lr, fr, cr, hr, ur, mr, pr, dr, Type1CharString, Type1Parser, Type1Font, gr, br, wr, jr, fonts_Glyph, kr, Font, ErrorFont, yr, qr, vr, Sr, Ar, xr, Cr, Ir, Fr, Tr, Or, Rr, Dr, Hr, Mr, Nr, Pr, _r, Er, zr, Lr, Ur, Wr, Xr, Kr, Gr, Vr, $r, Yr, Jr, Qr, Zr, es, ts8, ns, as, rs, ss, is, os, ls, fs, Token, lexer_Lexer, cs, hs, us, ms, ps, ds, gs, bs, ws, js, ks, ys, qs, vs, PsNode, PsProgram, PsBlock, PsNumber, PsOperator, PsIf, PsIfElse, PsArgNode, PsConstNode, PsUnaryNode, PsBinaryNode, PsTernaryNode, ast_Parser, Ss, PSStackToTree, As, xs, Cs, Is, Fs, Ts, Os, Rs, Bs, Ds, Hs, Ms, Ns, _s, Es, zs, Ls, Us, Ws, Xs, Ks, Gs, Vs, $s, Ys, Js, Qs, Zs, ei, ti, ni, ai, ri, si, ii, oi, li, fi, ci, hi, ui, mi, pi, PsJsCompiler, PSStackBasedInterpreter, di, gi, bi, wi, ji, ki, yi, qi, vi, Si, PsWasmCompiler, BaseLocalCache, LocalImageCache, LocalColorSpaceCache, LocalFunctionCache, LocalGStateCache, LocalTilingPatternCache, RegionalImageCache, GlobalColorSpaceCache, GlobalImageCache, Ai, xi, Ci, Ii, PDFFunctionFactory, PDFFunction, Fi, Ti, Oi, Ri, Bi, Di, Hi, Mi, Ni, Pi, _i, Ei, zi, Wi, MurmurHash3_642, PDFImage, Xi, Ki, Gi, Vi, TimeSlotManager, PartialEvaluator, TranslatedFont, StateManager, TextState, EvalState, EvaluatorPreprocessor, DefaultAppearanceEvaluator, AppearanceStreamEvaluator, FakeUnicodeFont, $i, Yi, NameOrNumberTree, NameTree, NumberTree, FileSpec, Ji, Qi, Zi, eo, to, no, ao, XMLParserBase, SimpleDOMNode, SimpleXMLParser, MetadataParser, ro, so, io, oo, lo, fo, StructTreeRoot, StructElementNode, StructElement, StructTreePage, co, Catalog, ObjectLoader, ho, uo, mo, po, go, bo, wo, jo, ko, yo, qo, vo, So, Ao, xo, Co, Io, Fo, Oo, Ro, Bo, Do, Ho, Mo, No, Po, _o, Eo, zo, Lo, Uo, Wo, Xo, Ko, Go, Vo, $o, Yo, Jo, Qo, Zo, el, tl, nl, al, rl, sl, il, ol, ll, fl, cl, hl, ul, ml, pl, dl, gl, bl, wl, jl, kl, yl, ql, vl, Sl, Al, xl, Cl, Il, Fl, Tl, HTMLResult, FontFinder, FontInfo2, FontSelector, TextMeasure, Rl, Bl, Dl, Hl, Ml, Nl, Pl, _l, El, zl, Ll, Wl, Xl, Kl, Gl, Vl, $l, Yl, Jl, Ql, Zl, ef, tf, nf, af, rf, sf, of, XFAObject, XFAObjectArray, XFAAttribute, XmlObject, ContentObject, OptionObject, StringObject, IntegerObject, Option01, Option10, lf, ff, cf, hf, uf, AppearanceFilter, Arc, Area, Assist, Barcode, Bind, BindItems, Bookend, BooleanElement, Border, Break, BreakAfter, BreakBefore, Button, Calculate, Caption, Certificate, Certificates, CheckButton, ChoiceList, Color, Comb, Connect, ContentArea, Corner, DateElement, DateTime, DateTimeEdit, Decimal, DefaultUi, Desc, DigestMethod, DigestMethods, Draw, Edge, Encoding, Encodings, Encrypt, EncryptData, Encryption, EncryptionMethod, EncryptionMethods, Event2, ExData, ExObject, ExclGroup, Execute, Extras, Field, Fill, Filter, Float, template_Font, Format, Handler, Hyphenation, Image2, ImageEdit, Integer, Issuers, Items, Keep, KeyUsage, Line, Linear, LockDocument, Manifest, Margin, Mdp, Medium, Message, NumericEdit, Occur, Oid, Oids, Overflow, PageArea, PageSet, Para, PasswordEdit, template_Pattern, Picture, Proto, Radial, Reason, Reasons, Rectangle, RefElement, Script2, SetProperty, SignData, Signature, Signing, Solid, Speak, Stipple, Subform, SubformSet, SubjectDN, SubjectDNs, Submit, Template, Text, TextEdit, Time, TimeStamp, ToolTip, Traversal, Traverse, Ui, Validate, Value, Variables, TemplateNamespace, mf, Binder, DataHandler, pf, Acrobat, Acrobat7, ADBE_JSConsole, ADBE_JSDebugger, AddSilentPrint, AddViewerPreferences, AdjustData, AdobeExtensionLevel, Agent, AlwaysEmbed, Amd, config_Area, Attributes, AutoSave, Base, BatchOutput, BehaviorOverride, Cache, Change, Common, Compress, CompressLogicalStructure, CompressObjectStream, Compression, Config, Conformance, ContentCopy, Copies, Creator, CurrentPage, Data, Debug, DefaultTypeface, Destination, DocumentAssembly, Driver, DuplexOption, DynamicRender, Embed, config_Encrypt, config_Encryption, EncryptionLevel, Enforce, Equate, EquateRange, Exclude, ExcludeNS, FlipLabel, config_FontInfo, FormFieldFilling, GroupParent, IfEmpty, IncludeXDPContent, IncrementalLoad, IncrementalMerge, Interactive, Jog, LabelPrinter, Layout, Level, Linearized, Locale, LocaleSet, Log, MapElement, MediumInfo, config_Message, Messaging, Mode, ModifyAnnots, MsgId, NameAttr, NeverEmbed, NumberOfCopies, OpenAction, Output, OutputBin, OutputXSL, Overprint, Packets, PageOffset, PageRange, Pagination, PaginationOverride, Part, Pcl, Pdf, Pdfa, Permissions, PickTrayByPDFSize, config_Picture, PlaintextMetadata, Presence, Present, Print, PrintHighQuality, PrintScaling, PrinterName, Producer, Ps, Range2, Record, Relevant, Rename, RenderPolicy, RunScripts, config_Script, ScriptModel, Severity, SilentPrint, Staple, StartNode, StartPage, SubmitFormat, SubmitUrl, SubsetBelow, SuppressBanner, Tagged, config_Template, Threshold, To, TemplateCache, Trace, Transform, Type, Uri, config_Validate, ValidateApprovalSignatures, ValidationMessaging, Version, VersionControl, ViewerPreferences, WebClient, Whitespace, Window, Xdc, Xdp, Xsl, Zpl, ConfigNamespace, df, ConnectionSet, EffectiveInputPolicy, EffectiveOutputPolicy, Operation, RootElement, SoapAction, SoapAddress, connection_set_Uri, WsdlAddress, WsdlConnection, XmlConnection, XsdConnection, ConnectionSetNamespace, gf, datasets_Data, Datasets, DatasetsNamespace, bf, CalendarSymbols, CurrencySymbol, CurrencySymbols, DatePattern, DatePatterns, DateTimeSymbols, Day, DayNames, Era, EraNames, locale_set_Locale, locale_set_LocaleSet, Meridiem, MeridiemNames, Month, MonthNames, NumberPattern, NumberPatterns, NumberSymbol, NumberSymbols, TimePattern, TimePatterns, TypeFace, TypeFaces, LocaleSetNamespace, wf, signature_Signature, SignatureNamespace, jf, Stylesheet, StylesheetNamespace, kf, xdp_Xdp, XdpNamespace, yf, qf, vf, Sf, Af, xf, Cf, If, XhtmlObject, A, B, Body, Br, Html, I, Li, Ol, P, Span, Sub, Sup, Ul, XhtmlNamespace, Ff, UnknownNamespace, Root, Empty, Builder, XFAParser, XFAFactory, AnnotationFactory, Annotation, AnnotationBorderStyle, MarkupAnnotation, WidgetAnnotation, TextWidgetAnnotation, ButtonWidgetAnnotation, ChoiceWidgetAnnotation, SignatureWidgetAnnotation, TextAnnotation, LinkAnnotation, PopupAnnotation, FreeTextAnnotation, LineAnnotation, SquareAnnotation, CircleAnnotation, PolylineAnnotation, PolygonAnnotation, CaretAnnotation, InkAnnotation, HighlightAnnotation, UnderlineAnnotation, SquigglyAnnotation, StrikeOutAnnotation, StampAnnotation, FileAttachmentAnnotation, MediaAnnotation, RichMediaAnnotation, ScreenAnnotation, SoundAnnotation, Tf, DatasetXMLParser, DatasetReader, SingleIntersector, Of, Intersector, Word64, Rf, Bf, DecryptStream, Df, Hf, ARCFourCipher, NullCipher, AESBaseCipher, AES128Cipher, AES256Cipher, PDFBase, PDF17, PDF20, CipherTransform, CipherTransformFactory, XRef, Mf, Page, Nf, Pf, _f, PDFDocument, BasePdfManager, LocalPdfManager, NetworkPdfManager, Ef, zf, Lf, Uf, Wf, Xf, Kf, Gf, Vf, $f, MessageHandler2, PageData, DocumentData, XRefWrapper, PDFEditor, BasePDFStream2, BasePDFStreamReader2, BasePDFStreamRangeReader2, PDFWorkerStream, PDFWorkerStreamReader, PDFWorkerStreamRangeReader, WorkerTask, WorkerMessageHandler;
97287
+ var e, t, n, a, r, s, i, o, l2, f, c, h, u, m, p, d, g, b2, w, j, k, y, q, v, S, x, C, T, O, R, D, H, M, N, _, E, z, L, U, W, X, K2, G, V2, $, Y, J, Q, Z, ee, te, ne, ae, re, se, ie, oe, le, fe, ce, he, ue, me, pe, de, ge, be, we, je, ke, ye, qe, ve, Se, Ae, xe, Ce, Ie, Fe, Te, Oe, Re, Be, De, He, Me, Ne, Pe, _e, Ee, ze, Le, Ue, We, Xe, Ke, Ge, Ve, $e, Ye, Je, Qe, Ze, et, tt, nt, rt, st, it, ot, lt, ft, ct, ht, ut, mt, pt, dt, gt, bt, wt, jt, kt, yt, qt, vt, St, At, xt, Ct, It, Ft, Tt, Ot, Rt, Bt, Dt, Ht, Mt, Nt, Pt, _t, Et, zt, Lt, Ut, Wt, Xt, Kt, Gt, Vt, $t, Yt, Jt, Qt, Zt, en, tn, nn, an, rn, sn, on, ln, PasswordException2, UnknownErrorException2, InvalidPDFException2, ResponseException2, FormatError2, AbortException2, FeatureTest2, Util2, fn, cn, makeArr2, makeMap2, makeObj2, makeSet2, hn, un, mn, pn, dn, Name, Cmd, nonSerializable, Dict, Ref, RefSet, RefMap, BaseStream, gn, bn, wn, jn, kn, yn, qn, vn, MissingDataException, ParserEOFException, XRefEntryException, XRefParseException, Sn, An, xn, Cn, QCMS, In, Fn, Tn, On, Rn, Bn, Dn, Hn, Mn, Nn, ColorSpace, AlternateCS, PatternCS, IndexedCS, DeviceGrayCS, DeviceRgbCS, DeviceRgbaCS, DeviceCmykCS, CalGrayCS, CalRGBCS, LabCS, IccColorSpace, CmykICCBasedCS, Stream, StringStream, NullStream, ChunkedStream, ChunkedStreamManager, ImageResizer, Pn, DecodeStream, StreamsSequenceStream, ColorSpaceUtils, JpegError, DNLMarkerError, EOIMarkerError, _n, En, zn, Ln, Un, Wn, Xn, Kn, Gn, JpegImage, JpegStream, Vn, NullOptimizer, QueueOptimizer, OperatorList, CheckedOperatorList, $n, Yn, Jn, Qn, Zn, ea, ta, Pattern, BaseShading, RadialAxialShading, FunctionBasedShading, MeshStreamReader, na, MeshShading, DummyShading, aa, BinaryCMapStream, BinaryCMapReader, Ascii85Stream, AsciiHexStream, ra, BrotliStream, sa, WasmImage, Jbig2Error, JBig2CCITTFaxImage, CCITTFaxStream, ia, oa, la, fa, ca, FlateStream, Jbig2Stream, ha, JpxError, JpxImage, JpxStream, LZWStream, PredictorStream, RunLengthStream, Parser, ua, Lexer, Linearization, ma, pa, CMap, IdentityCMap, CMapFactory, da, ga, ba, wa, ja, ka, ya, qa, va, Sa, Aa, xa, Ca, Ia, Fa, Ta, Oa, Ra, Ba, Da, Ha, Ma, DataBuilder, Na, Pa, _a2, Ea, za, CFFParser, CFF, CFFHeader, CFFStrings, CFFIndex, CFFDict, La, CFFTopDict, Ua, CFFPrivateDict, Wa, CFFCharset, CFFEncoding, CFFFDSelect, CFFOffsetTracker, CFFCompiler, Xa, Ka, Ga, Va, $a, Ya, Ja, Qa, Za, er, tr, nr, GlyfTable, Glyph2, GlyphHeader, Contour, SimpleGlyph, CompositeGlyph, ToUnicodeMap, IdentityToUnicodeMap, CFFFont, CSS_FONT_INFO2, SYSTEM_FONT_INFO2, FONT_INFO2, PATTERN_INFO2, InfoUtils2, Commands, CompiledFont, TrueTypeCompiled, Type2Compiled, FontRendererFactory, ar, rr, OpenTypeFileBuilder, sr, ir, or, lr, fr, cr, hr, ur, mr, pr, dr, Type1CharString, Type1Parser, Type1Font, gr, br, wr, jr, fonts_Glyph, kr, Font, ErrorFont, yr, qr, vr, Sr, Ar, xr, Cr, Ir, Fr, Tr, Or, Rr, Dr, Hr, Mr, Nr, Pr, _r, Er, zr, Lr, Ur, Wr, Xr, Kr, Gr, Vr, $r, Yr, Jr, Qr, Zr, es, ts10, ns, as, rs, ss, is, os, ls, fs, Token, lexer_Lexer, cs, hs, us, ms, ps, ds, gs, bs, ws, js, ks, ys, qs, vs, PsNode, PsProgram, PsBlock, PsNumber, PsOperator, PsIf, PsIfElse, PsArgNode, PsConstNode, PsUnaryNode, PsBinaryNode, PsTernaryNode, ast_Parser, Ss, PSStackToTree, As, xs, Cs, Is, Fs, Ts, Os, Rs, Bs, Ds, Hs, Ms, Ns, _s, Es, zs, Ls, Us, Ws, Xs, Ks, Gs, Vs, $s, Ys, Js, Qs, Zs, ei, ti, ni, ai, ri, si, ii, oi, li, fi, ci, hi, ui, mi, pi, PsJsCompiler, PSStackBasedInterpreter, di, gi, bi, wi, ji, ki, yi, qi, vi, Si, PsWasmCompiler, BaseLocalCache, LocalImageCache, LocalColorSpaceCache, LocalFunctionCache, LocalGStateCache, LocalTilingPatternCache, RegionalImageCache, GlobalColorSpaceCache, GlobalImageCache, Ai, xi, Ci, Ii, PDFFunctionFactory, PDFFunction, Fi, Ti, Oi, Ri, Bi, Di, Hi, Mi, Ni, Pi, _i, Ei, zi, Wi, MurmurHash3_642, PDFImage, Xi, Ki, Gi, Vi, TimeSlotManager, PartialEvaluator, TranslatedFont, StateManager, TextState, EvalState, EvaluatorPreprocessor, DefaultAppearanceEvaluator, AppearanceStreamEvaluator, FakeUnicodeFont, $i, Yi, NameOrNumberTree, NameTree, NumberTree, FileSpec, Ji, Qi, Zi, eo, to, no, ao, XMLParserBase, SimpleDOMNode, SimpleXMLParser, MetadataParser, ro, so, io, oo, lo, fo, StructTreeRoot, StructElementNode, StructElement, StructTreePage, co, Catalog, ObjectLoader, ho, uo, mo, po, go, bo, wo, jo, ko, yo, qo, vo, So, Ao, xo, Co, Io, Fo, Oo, Ro, Bo, Do, Ho, Mo, No, Po, _o, Eo, zo, Lo, Uo, Wo, Xo, Ko, Go, Vo, $o, Yo, Jo, Qo, Zo, el, tl, nl, al, rl, sl, il, ol, ll, fl, cl, hl, ul, ml, pl, dl, gl, bl, wl, jl, kl, yl, ql, vl, Sl, Al, xl, Cl, Il, Fl, Tl, HTMLResult, FontFinder, FontInfo2, FontSelector, TextMeasure, Rl, Bl, Dl, Hl, Ml, Nl, Pl, _l, El, zl, Ll, Wl, Xl, Kl, Gl, Vl, $l, Yl, Jl, Ql, Zl, ef, tf, nf, af, rf, sf, of, XFAObject, XFAObjectArray, XFAAttribute, XmlObject, ContentObject, OptionObject, StringObject, IntegerObject, Option01, Option10, lf, ff, cf, hf, uf, AppearanceFilter, Arc, Area, Assist, Barcode, Bind, BindItems, Bookend, BooleanElement, Border, Break, BreakAfter, BreakBefore, Button, Calculate, Caption, Certificate, Certificates, CheckButton, ChoiceList, Color, Comb, Connect, ContentArea, Corner, DateElement, DateTime, DateTimeEdit, Decimal, DefaultUi, Desc, DigestMethod, DigestMethods, Draw, Edge, Encoding, Encodings, Encrypt, EncryptData, Encryption, EncryptionMethod, EncryptionMethods, Event2, ExData, ExObject, ExclGroup, Execute, Extras, Field, Fill, Filter, Float, template_Font, Format, Handler, Hyphenation, Image2, ImageEdit, Integer, Issuers, Items, Keep, KeyUsage, Line, Linear, LockDocument, Manifest, Margin, Mdp, Medium, Message, NumericEdit, Occur, Oid, Oids, Overflow, PageArea, PageSet, Para, PasswordEdit, template_Pattern, Picture, Proto, Radial, Reason, Reasons, Rectangle, RefElement, Script2, SetProperty, SignData, Signature, Signing, Solid, Speak, Stipple, Subform, SubformSet, SubjectDN, SubjectDNs, Submit, Template, Text, TextEdit, Time, TimeStamp, ToolTip, Traversal, Traverse, Ui, Validate, Value, Variables, TemplateNamespace, mf, Binder, DataHandler, pf, Acrobat, Acrobat7, ADBE_JSConsole, ADBE_JSDebugger, AddSilentPrint, AddViewerPreferences, AdjustData, AdobeExtensionLevel, Agent, AlwaysEmbed, Amd, config_Area, Attributes, AutoSave, Base, BatchOutput, BehaviorOverride, Cache, Change, Common, Compress, CompressLogicalStructure, CompressObjectStream, Compression, Config, Conformance, ContentCopy, Copies, Creator, CurrentPage, Data, Debug, DefaultTypeface, Destination, DocumentAssembly, Driver, DuplexOption, DynamicRender, Embed, config_Encrypt, config_Encryption, EncryptionLevel, Enforce, Equate, EquateRange, Exclude, ExcludeNS, FlipLabel, config_FontInfo, FormFieldFilling, GroupParent, IfEmpty, IncludeXDPContent, IncrementalLoad, IncrementalMerge, Interactive, Jog, LabelPrinter, Layout, Level, Linearized, Locale, LocaleSet, Log, MapElement, MediumInfo, config_Message, Messaging, Mode, ModifyAnnots, MsgId, NameAttr, NeverEmbed, NumberOfCopies, OpenAction, Output, OutputBin, OutputXSL, Overprint, Packets, PageOffset, PageRange, Pagination, PaginationOverride, Part, Pcl, Pdf, Pdfa, Permissions, PickTrayByPDFSize, config_Picture, PlaintextMetadata, Presence, Present, Print, PrintHighQuality, PrintScaling, PrinterName, Producer, Ps, Range2, Record, Relevant, Rename, RenderPolicy, RunScripts, config_Script, ScriptModel, Severity, SilentPrint, Staple, StartNode, StartPage, SubmitFormat, SubmitUrl, SubsetBelow, SuppressBanner, Tagged, config_Template, Threshold, To, TemplateCache, Trace, Transform, Type, Uri, config_Validate, ValidateApprovalSignatures, ValidationMessaging, Version, VersionControl, ViewerPreferences, WebClient, Whitespace, Window, Xdc, Xdp, Xsl, Zpl, ConfigNamespace, df, ConnectionSet, EffectiveInputPolicy, EffectiveOutputPolicy, Operation, RootElement, SoapAction, SoapAddress, connection_set_Uri, WsdlAddress, WsdlConnection, XmlConnection, XsdConnection, ConnectionSetNamespace, gf, datasets_Data, Datasets, DatasetsNamespace, bf, CalendarSymbols, CurrencySymbol, CurrencySymbols, DatePattern, DatePatterns, DateTimeSymbols, Day, DayNames, Era, EraNames, locale_set_Locale, locale_set_LocaleSet, Meridiem, MeridiemNames, Month, MonthNames, NumberPattern, NumberPatterns, NumberSymbol, NumberSymbols, TimePattern, TimePatterns, TypeFace, TypeFaces, LocaleSetNamespace, wf, signature_Signature, SignatureNamespace, jf, Stylesheet, StylesheetNamespace, kf, xdp_Xdp, XdpNamespace, yf, qf, vf, Sf, Af, xf, Cf, If, XhtmlObject, A, B, Body, Br, Html, I, Li, Ol, P, Span, Sub, Sup, Ul, XhtmlNamespace, Ff, UnknownNamespace, Root, Empty, Builder, XFAParser, XFAFactory, AnnotationFactory, Annotation, AnnotationBorderStyle, MarkupAnnotation, WidgetAnnotation, TextWidgetAnnotation, ButtonWidgetAnnotation, ChoiceWidgetAnnotation, SignatureWidgetAnnotation, TextAnnotation, LinkAnnotation, PopupAnnotation, FreeTextAnnotation, LineAnnotation, SquareAnnotation, CircleAnnotation, PolylineAnnotation, PolygonAnnotation, CaretAnnotation, InkAnnotation, HighlightAnnotation, UnderlineAnnotation, SquigglyAnnotation, StrikeOutAnnotation, StampAnnotation, FileAttachmentAnnotation, MediaAnnotation, RichMediaAnnotation, ScreenAnnotation, SoundAnnotation, Tf, DatasetXMLParser, DatasetReader, SingleIntersector, Of, Intersector, Word64, Rf, Bf, DecryptStream, Df, Hf, ARCFourCipher, NullCipher, AESBaseCipher, AES128Cipher, AES256Cipher, PDFBase, PDF17, PDF20, CipherTransform, CipherTransformFactory, XRef, Mf, Page, Nf, Pf, _f, PDFDocument, BasePdfManager, LocalPdfManager, NetworkPdfManager, Ef, zf, Lf, Uf, Wf, Xf, Kf, Gf, Vf, $f, MessageHandler2, PageData, DocumentData, XRefWrapper, PDFEditor, BasePDFStream2, BasePDFStreamReader2, BasePDFStreamRangeReader2, PDFWorkerStream, PDFWorkerStreamReader, PDFWorkerStreamRangeReader, WorkerTask, WorkerMessageHandler;
97072
97288
  var init_pdf_worker_min = __esm({
97073
97289
  "../../node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs?url"() {
97074
97290
  init_define_HHP_CATALOG();
@@ -119217,7 +119433,7 @@ var init_pdf_worker_min = __esm({
119217
119433
  Qr = [1.36898, 1, 1, 0.76305, 0.82784, 0.94935, 0.89364, 0.92241, 0.89073, 0.90706, 0.98472, 0.85283, 0.85283, 1.0664, 1.02058, 0.74505, 0.9219, 0.74505, 1.23456, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.74505, 0.74505, 1.02058, 1.02058, 1.02058, 0.73002, 0.72601, 0.91755, 0.8126, 0.80314, 0.92222, 0.73764, 0.79726, 0.83051, 0.90284, 0.86023, 0.74, 0.8126, 0.84869, 0.96518, 0.91115, 0.8858, 0.79761, 0.8858, 0.74498, 0.73914, 0.81363, 0.89591, 0.83659, 0.89633, 0.85608, 0.8111, 0.90531, 1.0222, 1.22736, 1.0222, 1.27014, 0.89903, 0.90088, 0.86667, 1.0231, 0.896, 1.01411, 0.90083, 1.05099, 1.00512, 0.99793, 1.05326, 1.09377, 0.938, 1.06226, 1.00119, 0.99793, 0.98714, 1.0231, 1.01231, 0.98196, 0.792, 1.19137, 0.99074, 0.962, 1.01915, 0.926, 0.942, 0.856, 0.85034, 0.92006, 0.85034, 1.02058, 0.69067, 0.92241, 0.92241, 0.92241, 0.92241, 0.92006, 0.9332, 0.90088, 0.91882, 0.93484, 0.75339, 1.02058, 0.56866, 0.54324, 0.79519, 1.08595, 1, 1, 0.90088, 1, 0.95325, 0.74505, 0.90088, 1, 0.97198, 0.75339, 0.91009, 0.91009, 0.91009, 0.66466, 0.91755, 0.91755, 0.91755, 0.91755, 0.91755, 0.91755, 0.788, 0.80314, 0.73764, 0.73764, 0.73764, 0.73764, 0.86023, 0.86023, 0.86023, 0.86023, 0.92915, 0.91115, 0.8858, 0.8858, 0.8858, 0.8858, 0.8858, 1.02058, 0.8858, 0.89591, 0.89591, 0.89591, 0.89591, 0.8111, 0.79611, 0.89713, 0.86667, 0.86667, 0.86667, 0.86667, 0.86667, 0.86667, 0.86936, 0.896, 0.90083, 0.90083, 0.90083, 0.90083, 0.84224, 0.84224, 0.84224, 0.84224, 0.97276, 0.99793, 0.98714, 0.98714, 0.98714, 0.98714, 0.98714, 1.08595, 0.89876, 0.99074, 0.99074, 0.99074, 0.99074, 0.942, 1.0231, 0.942, 0.91755, 0.86667, 0.91755, 0.86667, 0.91755, 0.86667, 0.80314, 0.896, 0.80314, 0.896, 0.80314, 0.896, 0.80314, 0.896, 0.92222, 0.93372, 0.92915, 1.01411, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.83051, 1.00512, 0.83051, 1.00512, 0.83051, 1.00512, 1, 1, 0.90284, 0.99793, 0.90976, 0.99793, 0.86023, 0.84224, 0.86023, 0.84224, 0.86023, 0.84224, 0.86023, 1.05326, 0.86023, 0.84224, 0.82873, 1.07469, 0.74, 1.09377, 1, 1, 0.938, 0.84869, 1.06226, 1, 1, 0.84869, 0.83704, 0.84869, 0.81441, 0.85588, 1.08927, 0.91115, 0.99793, 1, 1, 0.91115, 0.99793, 0.91887, 0.90991, 0.99793, 0.8858, 0.98714, 0.8858, 0.98714, 0.8858, 0.98714, 0.894, 0.91434, 0.74498, 0.98196, 1, 1, 0.74498, 0.98196, 0.73914, 0.792, 0.73914, 0.792, 1, 1, 0.73914, 0.792, 1, 1, 0.81363, 0.904, 0.81363, 1.19137, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89633, 1.01915, 0.8111, 0.942, 0.8111, 0.90531, 0.856, 0.90531, 0.856, 0.90531, 0.856, 1, 0.92241, 0.91755, 0.86667, 0.788, 0.86936, 0.8858, 0.89876, 1, 1, 0.81363, 1.19137, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90388, 1.03901, 0.92138, 0.78105, 0.7154, 0.86169, 0.80513, 0.94007, 0.82528, 0.98612, 1.06226, 0.91755, 0.8126, 0.81884, 0.92819, 0.73764, 0.90531, 0.90284, 0.8858, 0.86023, 0.8126, 0.91172, 0.96518, 0.91115, 0.83089, 0.8858, 0.87791, 0.79761, 0.89297, 0.81363, 0.88157, 0.89992, 0.85608, 0.81992, 0.94307, 0.86023, 0.88157, 0.95308, 0.98699, 0.99793, 1.06226, 0.95817, 0.95308, 0.97358, 0.928, 0.98088, 0.98699, 0.92761, 0.99793, 0.96017, 1.06226, 0.986, 0.944, 0.95978, 0.938, 0.96705, 0.98714, 0.80442, 0.98972, 1, 0.89762, 1.04552, 0.95817, 0.99007, 0.87064, 0.91879, 0.88888, 1.06226, 0.95817, 0.98714, 0.95817, 0.88888, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.89633, 1.01915, 0.89633, 1.01915, 0.89633, 1.01915, 0.8111, 0.942, 0.9219, 1, 0.89903, 1, 1, 1, 0.93173, 0.93173, 0.93173, 1, 1.06304, 1.06304, 1.06904, 0.89903, 0.89903, 0.80549, 1, 1.156, 1, 1, 0.76575, 0.76575, 1, 1, 0.72458, 1, 1, 1, 1, 0.92241, 1, 1, 1, 0.619, 1, 1.36145, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.07257, 1, 0.74705, 0.71119, 1.02058, 1.024, 1.02119, 1, 1, 1.1536, 1.08595, 1.08595, 1, 1.08595, 1.08595, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.05638, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
119218
119434
  Zr = { lineHeight: 1.2, lineGap: 0.2 };
119219
119435
  es = [1.76738, 1, 1, 0.99297, 0.9824, 1.04016, 1.06497, 1.03424, 0.97529, 1.17647, 1.23203, 1.1085, 1.1085, 1.16939, 1.2107, 0.9754, 1.21408, 0.9754, 1.59578, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 0.81378, 0.81378, 1.2107, 1.2107, 1.2107, 0.71703, 0.97847, 0.97363, 0.88776, 0.8641, 1.02096, 0.79795, 0.85132, 0.914, 1.06085, 1.1406, 0.8007, 0.89858, 0.83693, 1.14889, 1.09398, 0.97489, 0.92094, 0.97489, 0.90399, 0.84041, 0.95923, 1.00135, 1, 1.06467, 0.98243, 0.90996, 0.99361, 1.1085, 1.56942, 1.1085, 1.2107, 0.74627, 0.94282, 0.96752, 1.01519, 0.86304, 1.01359, 0.97278, 1.15103, 1.01359, 0.98561, 1.02285, 1.02285, 1.00527, 1.02285, 1.0302, 0.99041, 1.0008, 1.01519, 1.01359, 1.02258, 0.79104, 1.16862, 0.99041, 0.97454, 1.02511, 0.99298, 0.96752, 0.95801, 0.94856, 1.16579, 0.94856, 1.2107, 0.9824, 1.03424, 1.03424, 1, 1.03424, 1.16579, 0.8727, 1.3871, 1.18622, 1.10818, 1.04478, 1.2107, 1.18622, 0.75155, 0.94994, 1.28826, 1.21408, 1.21408, 0.91056, 1, 0.91572, 0.9754, 0.64663, 1.18328, 1.24866, 1.04478, 1.14169, 1.15749, 1.17389, 0.71703, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.93506, 0.8641, 0.79795, 0.79795, 0.79795, 0.79795, 1.1406, 1.1406, 1.1406, 1.1406, 1.02096, 1.09398, 0.97426, 0.97426, 0.97426, 0.97426, 0.97426, 1.2107, 0.97489, 1.00135, 1.00135, 1.00135, 1.00135, 0.90996, 0.92094, 1.02798, 0.96752, 0.96752, 0.96752, 0.96752, 0.96752, 0.96752, 0.93136, 0.86304, 0.97278, 0.97278, 0.97278, 0.97278, 1.02285, 1.02285, 1.02285, 1.02285, 0.97122, 0.99041, 1, 1, 1, 1, 1, 1.28826, 1.0008, 0.99041, 0.99041, 0.99041, 0.99041, 0.96752, 1.01519, 0.96752, 0.97363, 0.96752, 0.97363, 0.96752, 0.97363, 0.96752, 0.8641, 0.86304, 0.8641, 0.86304, 0.8641, 0.86304, 0.8641, 0.86304, 1.02096, 1.03057, 1.02096, 1.03517, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.914, 1.01359, 0.914, 1.01359, 0.914, 1.01359, 1, 1, 1.06085, 0.98561, 1.06085, 1.00879, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 0.97138, 1.08692, 0.8007, 1.02285, 1, 1, 1.00527, 0.83693, 1.02285, 1, 1, 0.83693, 0.9455, 0.83693, 0.90418, 0.83693, 1.13005, 1.09398, 0.99041, 1, 1, 1.09398, 0.99041, 0.96692, 1.09251, 0.99041, 0.97489, 1.0008, 0.97489, 1.0008, 0.97489, 1.0008, 0.93994, 0.97931, 0.90399, 1.02258, 1, 1, 0.90399, 1.02258, 0.84041, 0.79104, 0.84041, 0.79104, 0.84041, 0.79104, 0.84041, 0.79104, 1, 1, 0.95923, 1.07034, 0.95923, 1.16862, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.06467, 1.02511, 0.90996, 0.96752, 0.90996, 0.99361, 0.95801, 0.99361, 0.95801, 0.99361, 0.95801, 1.07733, 1.03424, 0.97363, 0.96752, 0.93506, 0.93136, 0.97489, 1.0008, 1, 1, 0.95923, 1.16862, 1.15103, 1.15103, 1.01173, 1.03959, 0.75953, 0.81378, 0.79912, 1.15103, 1.21994, 0.95161, 0.87815, 1.01149, 0.81525, 0.7676, 0.98167, 1.01134, 1.02546, 0.84097, 1.03089, 1.18102, 0.97363, 0.88776, 0.85134, 0.97826, 0.79795, 0.99361, 1.06085, 0.97489, 1.1406, 0.89858, 1.0388, 1.14889, 1.09398, 0.86039, 0.97489, 1.0595, 0.92094, 0.94793, 0.95923, 0.90996, 0.99346, 0.98243, 1.02112, 0.95493, 1.1406, 0.90996, 1.03574, 1.02597, 1.0008, 1.18102, 1.06628, 1.03574, 1.0192, 1.01932, 1.00886, 0.97531, 1.0106, 1.0008, 1.13189, 1.18102, 1.02277, 0.98683, 1.0016, 0.99561, 1.07237, 1.0008, 0.90434, 0.99921, 0.93803, 0.8965, 1.23085, 1.06628, 1.04983, 0.96268, 1.0499, 0.98439, 1.18102, 1.06628, 1.0008, 1.06628, 0.98439, 0.79795, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.09466, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.97278, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.02065, 1, 1, 1, 1, 1, 1, 1.06467, 1.02511, 1.06467, 1.02511, 1.06467, 1.02511, 0.90996, 0.96752, 1, 1.21408, 0.89903, 1, 1, 0.75155, 1.04394, 1.04394, 1.04394, 1.04394, 0.98633, 0.98633, 0.98633, 0.73047, 0.73047, 1.20642, 0.91211, 1.25635, 1.222, 1.02956, 1.03372, 1.03372, 0.96039, 1.24633, 1, 1.12454, 0.93503, 1.03424, 1.19687, 1.03424, 1, 1, 1, 0.771, 1, 1, 1.15749, 1.15749, 1.15749, 1.10948, 0.86279, 0.94434, 0.86279, 0.94434, 0.86182, 1, 1, 1.16897, 1, 0.96085, 0.90137, 1.2107, 1.18416, 1.13973, 0.69825, 0.9716, 2.10339, 1.29004, 1.29004, 1.21172, 1.29004, 1.29004, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.18874, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.09193, 1.09193, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
119220
- ts8 = { lineHeight: 1.33008, lineGap: 0 };
119436
+ ts10 = { lineHeight: 1.33008, lineGap: 0 };
119221
119437
  ns = [1.76738, 1, 1, 0.98946, 1.03959, 1.04016, 1.02809, 1.036, 0.97639, 1.10953, 1.23203, 1.11144, 1.11144, 1.16939, 1.21237, 0.9754, 1.21261, 0.9754, 1.59754, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 0.81378, 0.81378, 1.21237, 1.21237, 1.21237, 0.73541, 0.97847, 0.97363, 0.89723, 0.87897, 1.0426, 0.79429, 0.85292, 0.91149, 1.05815, 1.1406, 0.79631, 0.90128, 0.83853, 1.04396, 1.10615, 0.97552, 0.94436, 0.97552, 0.88641, 0.80527, 0.96083, 1.00135, 1, 1.06777, 0.9817, 0.91142, 0.99361, 1.11144, 1.57293, 1.11144, 1.21237, 0.74627, 1.31818, 1.06585, 0.97042, 0.83055, 0.97042, 0.93503, 1.1261, 0.97042, 0.97922, 1.14236, 0.94552, 1.01054, 1.14236, 1.02471, 0.97922, 0.94165, 0.97042, 0.97042, 1.0276, 0.78929, 1.1261, 0.97922, 0.95874, 1.02197, 0.98507, 0.96752, 0.97168, 0.95107, 1.16579, 0.95107, 1.21237, 1.03959, 1.036, 1.036, 1, 1.036, 1.16579, 0.87357, 1.31818, 1.18754, 1.26781, 1.05356, 1.21237, 1.18622, 0.79487, 0.94994, 1.29004, 1.24047, 1.24047, 1.31818, 1, 0.91484, 0.9754, 1.31818, 1.1349, 1.24866, 1.05356, 1.13934, 1.15574, 1.17389, 0.73541, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.94385, 0.87897, 0.79429, 0.79429, 0.79429, 0.79429, 1.1406, 1.1406, 1.1406, 1.1406, 1.0426, 1.10615, 0.97552, 0.97552, 0.97552, 0.97552, 0.97552, 1.21237, 0.97552, 1.00135, 1.00135, 1.00135, 1.00135, 0.91142, 0.94436, 0.98721, 1.06585, 1.06585, 1.06585, 1.06585, 1.06585, 1.06585, 0.96705, 0.83055, 0.93503, 0.93503, 0.93503, 0.93503, 1.14236, 1.14236, 1.14236, 1.14236, 0.93125, 0.97922, 0.94165, 0.94165, 0.94165, 0.94165, 0.94165, 1.29004, 0.94165, 0.97922, 0.97922, 0.97922, 0.97922, 0.96752, 0.97042, 0.96752, 0.97363, 1.06585, 0.97363, 1.06585, 0.97363, 1.06585, 0.87897, 0.83055, 0.87897, 0.83055, 0.87897, 0.83055, 0.87897, 0.83055, 1.0426, 1.0033, 1.0426, 0.97042, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.91149, 0.97042, 0.91149, 0.97042, 0.91149, 0.97042, 1, 1, 1.05815, 0.97922, 1.05815, 0.97922, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 0.97441, 1.04302, 0.79631, 1.01582, 1, 1, 1.01054, 0.83853, 1.14236, 1, 1, 0.83853, 1.09125, 0.83853, 0.90418, 0.83853, 1.19508, 1.10615, 0.97922, 1, 1, 1.10615, 0.97922, 1.01034, 1.10466, 0.97922, 0.97552, 0.94165, 0.97552, 0.94165, 0.97552, 0.94165, 0.91602, 0.91981, 0.88641, 1.0276, 1, 1, 0.88641, 1.0276, 0.80527, 0.78929, 0.80527, 0.78929, 0.80527, 0.78929, 0.80527, 0.78929, 1, 1, 0.96083, 1.05403, 0.95923, 1.16862, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.06777, 1.02197, 0.91142, 0.96752, 0.91142, 0.99361, 0.97168, 0.99361, 0.97168, 0.99361, 0.97168, 1.23199, 1.036, 0.97363, 1.06585, 0.94385, 0.96705, 0.97552, 0.94165, 1, 1, 0.96083, 1.1261, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 0.95161, 1.27126, 1.00811, 0.83284, 0.77702, 0.99137, 0.95253, 1.0347, 0.86142, 1.07205, 1.14236, 0.97363, 0.89723, 0.86869, 1.09818, 0.79429, 0.99361, 1.05815, 0.97552, 1.1406, 0.90128, 1.06662, 1.04396, 1.10615, 0.84918, 0.97552, 1.04694, 0.94436, 0.98015, 0.96083, 0.91142, 1.00356, 0.9817, 1.01945, 0.98999, 1.1406, 0.91142, 1.04961, 0.9898, 1.00639, 1.14236, 1.07514, 1.04961, 0.99607, 1.02897, 1.008, 0.9898, 0.95134, 1.00639, 1.11121, 1.14236, 1.00518, 0.97981, 1.02186, 1, 1.08578, 0.94165, 0.99314, 0.98387, 0.93028, 0.93377, 1.35125, 1.07514, 1.10687, 0.93491, 1.04232, 1.00351, 1.14236, 1.07514, 0.94165, 1.07514, 1.00351, 0.79429, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.09097, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.93503, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.96609, 1, 1, 1, 1, 1, 1, 1.06777, 1.02197, 1.06777, 1.02197, 1.06777, 1.02197, 0.91142, 0.96752, 1, 1.21261, 0.89903, 1, 1, 0.75155, 1.04745, 1.04745, 1.04745, 1.04394, 0.98633, 0.98633, 0.98633, 0.72959, 0.72959, 1.20502, 0.91406, 1.26514, 1.222, 1.02956, 1.03372, 1.03372, 0.96039, 1.24633, 1, 1.09125, 0.93327, 1.03336, 1.16541, 1.036, 1, 1, 1, 0.771, 1, 1, 1.15574, 1.15574, 1.15574, 1.15574, 0.86364, 0.94434, 0.86279, 0.94434, 0.86224, 1, 1, 1.16798, 1, 0.96085, 0.90068, 1.21237, 1.18416, 1.13904, 0.69825, 0.9716, 2.10339, 1.29004, 1.29004, 1.21339, 1.29004, 1.29004, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.18775, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.13269, 1.13269, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
119222
119438
  as = { lineHeight: 1.33008, lineGap: 0 };
119223
119439
  rs = [1.76738, 1, 1, 0.98946, 1.14763, 1.05365, 1.06234, 0.96927, 0.92586, 1.15373, 1.18414, 0.91349, 0.91349, 1.07403, 1.17308, 0.78383, 1.20088, 0.78383, 1.42531, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.78383, 0.78383, 1.17308, 1.17308, 1.17308, 0.77349, 0.94565, 0.94729, 0.85944, 0.88506, 0.9858, 0.74817, 0.80016, 0.88449, 0.98039, 0.95782, 0.69238, 0.89898, 0.83231, 0.98183, 1.03989, 0.96924, 0.86237, 0.96924, 0.80595, 0.74524, 0.86091, 0.95402, 0.94143, 0.98448, 0.8858, 0.83089, 0.93285, 1.0949, 1.39016, 1.0949, 1.45994, 0.74627, 1.04839, 0.97454, 0.97454, 0.87207, 0.97454, 0.87533, 1.06151, 0.97454, 1.00176, 1.16484, 1.08132, 0.98047, 1.16484, 1.02989, 1.01054, 0.96225, 0.97454, 0.97454, 1.06598, 0.79004, 1.16344, 1.00351, 0.94629, 0.9973, 0.91016, 0.96777, 0.9043, 0.91082, 0.92481, 0.91082, 1.17308, 0.95748, 0.96927, 0.96927, 1, 0.96927, 0.92481, 0.80597, 1.04839, 1.23393, 1.1781, 0.9245, 1.17308, 1.20808, 0.63218, 0.94261, 1.24822, 1.09971, 1.09971, 1.04839, 1, 0.85273, 0.78032, 1.04839, 1.09971, 1.22326, 0.9245, 1.09836, 1.13525, 1.15222, 0.70424, 0.94729, 0.94729, 0.94729, 0.94729, 0.94729, 0.94729, 0.85498, 0.88506, 0.74817, 0.74817, 0.74817, 0.74817, 0.95782, 0.95782, 0.95782, 0.95782, 0.9858, 1.03989, 0.96924, 0.96924, 0.96924, 0.96924, 0.96924, 1.17308, 0.96924, 0.95402, 0.95402, 0.95402, 0.95402, 0.83089, 0.86237, 0.88409, 0.97454, 0.97454, 0.97454, 0.97454, 0.97454, 0.97454, 0.92916, 0.87207, 0.87533, 0.87533, 0.87533, 0.87533, 0.93146, 0.93146, 0.93146, 0.93146, 0.93854, 1.01054, 0.96225, 0.96225, 0.96225, 0.96225, 0.96225, 1.24822, 0.8761, 1.00351, 1.00351, 1.00351, 1.00351, 0.96777, 0.97454, 0.96777, 0.94729, 0.97454, 0.94729, 0.97454, 0.94729, 0.97454, 0.88506, 0.87207, 0.88506, 0.87207, 0.88506, 0.87207, 0.88506, 0.87207, 0.9858, 0.95391, 0.9858, 0.97454, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.88449, 0.97454, 0.88449, 0.97454, 0.88449, 0.97454, 1, 1, 0.98039, 1.00176, 0.98039, 1.00176, 0.95782, 0.93146, 0.95782, 0.93146, 0.95782, 0.93146, 0.95782, 1.16484, 0.95782, 0.93146, 0.84421, 1.12761, 0.69238, 1.08132, 1, 1, 0.98047, 0.83231, 1.16484, 1, 1, 0.84723, 1.04861, 0.84723, 0.78755, 0.83231, 1.23736, 1.03989, 1.01054, 1, 1, 1.03989, 1.01054, 0.9857, 1.03849, 1.01054, 0.96924, 0.96225, 0.96924, 0.96225, 0.96924, 0.96225, 0.92383, 0.90171, 0.80595, 1.06598, 1, 1, 0.80595, 1.06598, 0.74524, 0.79004, 0.74524, 0.79004, 0.74524, 0.79004, 0.74524, 0.79004, 1, 1, 0.86091, 1.02759, 0.85771, 1.16344, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.98448, 0.9973, 0.83089, 0.96777, 0.83089, 0.93285, 0.9043, 0.93285, 0.9043, 0.93285, 0.9043, 1.31868, 0.96927, 0.94729, 0.97454, 0.85498, 0.92916, 0.96924, 0.8761, 1, 1, 0.86091, 1.16344, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 0.81965, 0.81965, 0.94729, 0.78032, 0.71022, 0.90883, 0.84171, 0.99877, 0.77596, 1.05734, 1.2, 0.94729, 0.85944, 0.82791, 0.9607, 0.74817, 0.93285, 0.98039, 0.96924, 0.95782, 0.89898, 0.98316, 0.98183, 1.03989, 0.78614, 0.96924, 0.97642, 0.86237, 0.86075, 0.86091, 0.83089, 0.90082, 0.8858, 0.97296, 1.01284, 0.95782, 0.83089, 1.0976, 1.04, 1.03342, 1.2, 1.0675, 1.0976, 0.98205, 1.03809, 1.05097, 1.04, 0.95364, 1.03342, 1.05401, 1.2, 1.02148, 1.0119, 1.04724, 1.0127, 1.02732, 0.96225, 0.8965, 0.97783, 0.93574, 0.94818, 1.30679, 1.0675, 1.11826, 0.99821, 1.0557, 1.0326, 1.2, 1.0675, 0.96225, 1.0675, 1.0326, 0.74817, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.03754, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.87533, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.98705, 1, 1, 1, 1, 1, 1, 0.98448, 0.9973, 0.98448, 0.9973, 0.98448, 0.9973, 0.83089, 0.96777, 1, 1.20088, 0.89903, 1, 1, 0.75155, 0.94945, 0.94945, 0.94945, 0.94945, 1.12317, 1.12317, 1.12317, 0.67603, 0.67603, 1.15621, 0.73584, 1.21191, 1.22135, 1.06483, 0.94868, 0.94868, 0.95996, 1.24633, 1, 1.07497, 0.87709, 0.96927, 1.01473, 0.96927, 1, 1, 1, 0.77295, 1, 1, 1.09836, 1.09836, 1.09836, 1.01522, 0.86321, 0.94434, 0.8649, 0.94434, 0.86182, 1, 1, 1.083, 1, 0.91578, 0.86438, 1.17308, 1.18416, 1.14589, 0.69825, 0.97622, 1.96791, 1.24822, 1.24822, 1.17308, 1.24822, 1.24822, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.17984, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.10742, 1.10742, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
@@ -119238,7 +119454,7 @@ var init_pdf_worker_min = __esm({
119238
119454
  e2["Calibri-Italic"] = { name: "LiberationSans-Italic", factors: Ar, baseWidths: Lr, baseMapping: Ur, metrics: xr };
119239
119455
  e2["Calibri-BoldItalic"] = { name: "LiberationSans-BoldItalic", factors: vr, baseWidths: Er, baseMapping: zr, metrics: Sr };
119240
119456
  e2["Segoeui-Regular"] = { name: "LiberationSans-Regular", factors: is, baseWidths: Wr, baseMapping: Xr, metrics: os };
119241
- e2["Segoeui-Bold"] = { name: "LiberationSans-Bold", factors: es, baseWidths: Pr, baseMapping: _r, metrics: ts8 };
119457
+ e2["Segoeui-Bold"] = { name: "LiberationSans-Bold", factors: es, baseWidths: Pr, baseMapping: _r, metrics: ts10 };
119242
119458
  e2["Segoeui-Italic"] = { name: "LiberationSans-Italic", factors: rs, baseWidths: Lr, baseMapping: Ur, metrics: ss };
119243
119459
  e2["Segoeui-BoldItalic"] = { name: "LiberationSans-BoldItalic", factors: ns, baseWidths: Er, baseMapping: zr, metrics: as };
119244
119460
  e2["Helvetica-Regular"] = e2.Helvetica = { name: "LiberationSans-Regular", factors: Mr, baseWidths: Wr, baseMapping: Xr, metrics: Nr };
@@ -167185,9 +167401,9 @@ function stateOf(view) {
167185
167401
  build: b3 && view.live ? { ok: b3.ok, ms: b3.ms, screens: b3.screens, at: b3.at, run: view.live.runId } : null
167186
167402
  };
167187
167403
  }
167188
- function frameFor(state, prev, ts44, v2, key4) {
167189
- if (key4 || !prev) return { ts: ts44, v: v2, key: true, ...state };
167190
- const f2 = { ts: ts44, v: v2 };
167404
+ function frameFor(state, prev, ts46, v2, key4) {
167405
+ if (key4 || !prev) return { ts: ts46, v: v2, key: true, ...state };
167406
+ const f2 = { ts: ts46, v: v2 };
167191
167407
  if (!same2(state.step, prev.step)) f2.step = state.step;
167192
167408
  if (!same2(state.now, prev.now)) f2.now = state.now;
167193
167409
  const screens = {};
@@ -176557,7 +176773,7 @@ function compress(arr7, options2, matcher, readonlyMatcher) {
176557
176773
  const compressedObj = {};
176558
176774
  for (let i2 = 0; i2 < arr7.length; i2++) {
176559
176775
  const tagObj = arr7[i2];
176560
- const property3 = propName2(tagObj);
176776
+ const property3 = propName3(tagObj);
176561
176777
  if (property3 !== void 0 && property3 !== options2.textNodeName) {
176562
176778
  const rawAttrs = stripAttributePrefix(
176563
176779
  tagObj[":@"] || {},
@@ -176610,7 +176826,7 @@ function compress(arr7, options2, matcher, readonlyMatcher) {
176610
176826
  } else if (text32 !== void 0) compressedObj[options2.textNodeName] = text32;
176611
176827
  return compressedObj;
176612
176828
  }
176613
- function propName2(obj30) {
176829
+ function propName3(obj30) {
176614
176830
  const keys2 = Object.keys(obj30);
176615
176831
  for (let i2 = 0; i2 < keys2.length; i2++) {
176616
176832
  const key4 = keys2[i2];
@@ -176745,7 +176961,7 @@ var init_util3 = __esm({
176745
176961
  function detectXmlVersionFromArray(jArray, options2) {
176746
176962
  if (!Array.isArray(jArray) || jArray.length === 0) return "1.0";
176747
176963
  const first = jArray[0];
176748
- const firstKey = propName3(first);
176964
+ const firstKey = propName4(first);
176749
176965
  if (firstKey === "?xml") {
176750
176966
  const attrs = first[":@"];
176751
176967
  if (attrs) {
@@ -176796,7 +177012,7 @@ function arrToStr(arr7, options2, indentation, matcher, stopNodeExpressions, xml
176796
177012
  }
176797
177013
  for (let i2 = 0; i2 < arr7.length; i2++) {
176798
177014
  const tagObj = arr7[i2];
176799
- const rawTagName = propName3(tagObj);
177015
+ const rawTagName = propName4(tagObj);
176800
177016
  if (rawTagName === void 0) continue;
176801
177017
  const isSpecialName = rawTagName === options2.textNodeName || rawTagName === options2.cdataPropName || rawTagName === options2.commentPropName || rawTagName[0] === "?";
176802
177018
  const tagName2 = isSpecialName ? rawTagName : resolveTagName(rawTagName, false, options2, matcher, xmlVersion);
@@ -176896,7 +177112,7 @@ function getRawContent(arr7, options2) {
176896
177112
  let content = "";
176897
177113
  for (let i2 = 0; i2 < arr7.length; i2++) {
176898
177114
  const item2 = arr7[i2];
176899
- const tagName2 = propName3(item2);
177115
+ const tagName2 = propName4(item2);
176900
177116
  if (tagName2 === options2.textNodeName) {
176901
177117
  content += item2[tagName2];
176902
177118
  } else if (tagName2 === options2.cdataPropName) {
@@ -176932,7 +177148,7 @@ function attr_to_str_raw(attrMap, options2) {
176932
177148
  }
176933
177149
  return attrStr;
176934
177150
  }
176935
- function propName3(obj30) {
177151
+ function propName4(obj30) {
176936
177152
  const keys2 = Object.keys(obj30);
176937
177153
  for (let i2 = 0; i2 < keys2.length; i2++) {
176938
177154
  const key4 = keys2[i2];
@@ -179163,7 +179379,7 @@ __export(template_trim_exports, {
179163
179379
  });
179164
179380
  import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync27, readdirSync as readdirSync31, readFileSync as readFileSync59, renameSync as renameSync11, rmSync as rmSync16, statSync as statSync18, writeFileSync as writeFileSync23 } from "node:fs";
179165
179381
  import { dirname as dirname33, join as join48 } from "node:path";
179166
- import ts9 from "typescript";
179382
+ import ts11 from "typescript";
179167
179383
  function routeMatcher(pattern) {
179168
179384
  const detail = /^\^([A-Za-z0-9_]+)\(\?:\[_\/\]\(\.\+\)\)\?\$$/.exec(pattern);
179169
179385
  if (detail) {
@@ -179328,11 +179544,11 @@ function parseJson2(text32, what) {
179328
179544
  }
179329
179545
  }
179330
179546
  function configWithoutComments(text32) {
179331
- const scanner = ts9.createScanner(ts9.ScriptTarget.Latest, false, ts9.LanguageVariant.Standard, text32);
179547
+ const scanner = ts11.createScanner(ts11.ScriptTarget.Latest, false, ts11.LanguageVariant.Standard, text32);
179332
179548
  const parts = [];
179333
179549
  let end2 = 0;
179334
- for (let token = scanner.scan(); token !== ts9.SyntaxKind.EndOfFileToken; token = scanner.scan()) {
179335
- if (token !== ts9.SyntaxKind.SingleLineCommentTrivia && token !== ts9.SyntaxKind.MultiLineCommentTrivia) continue;
179550
+ for (let token = scanner.scan(); token !== ts11.SyntaxKind.EndOfFileToken; token = scanner.scan()) {
179551
+ if (token !== ts11.SyntaxKind.SingleLineCommentTrivia && token !== ts11.SyntaxKind.MultiLineCommentTrivia) continue;
179336
179552
  parts.push(text32.slice(end2, scanner.getTokenPos()), text32.slice(scanner.getTokenPos(), scanner.getTextPos()).replace(/[^\r\n]/g, " "));
179337
179553
  end2 = scanner.getTextPos();
179338
179554
  }
@@ -180542,7 +180758,7 @@ __export(template_adopt_exports, {
180542
180758
  });
180543
180759
  import { existsSync as existsSync55, lstatSync as lstatSync19, mkdirSync as mkdirSync28, readdirSync as readdirSync32, readFileSync as readFileSync60, renameSync as renameSync12, statSync as statSync19, writeFileSync as writeFileSync24 } from "node:fs";
180544
180760
  import { dirname as dirname34, join as join49, posix as posix2, relative as relative13 } from "node:path";
180545
- import ts10 from "typescript";
180761
+ import ts12 from "typescript";
180546
180762
  function readAppEntrySources(dir) {
180547
180763
  const devPath = join49(dir, "dev", "index.ts");
180548
180764
  const configPath = join49(dir, "config.ts");
@@ -180576,7 +180792,7 @@ function readAppSources(dir) {
180576
180792
  return { dev, config, workers };
180577
180793
  }
180578
180794
  function moduleEvaluationCalls(text32, fileName = "worker.ts") {
180579
- const kind = /\.[cm]?tsx$|\.jsx$/.test(fileName) ? ts10.ScriptKind.TSX : ts10.ScriptKind.TS;
180795
+ const kind = /\.[cm]?tsx$|\.jsx$/.test(fileName) ? ts12.ScriptKind.TSX : ts12.ScriptKind.TS;
180580
180796
  const key4 = `${kind}\0${text32}`;
180581
180797
  const cached3 = moduleCallsCache.get(key4);
180582
180798
  if (cached3) return [...cached3];
@@ -180590,41 +180806,41 @@ function moduleEvaluationParses() {
180590
180806
  }
180591
180807
  function parseModuleEvaluationCalls(text32, fileName, kind) {
180592
180808
  moduleCallParses += 1;
180593
- const source2 = ts10.createSourceFile(fileName, text32, ts10.ScriptTarget.Latest, false, kind);
180809
+ const source2 = ts12.createSourceFile(fileName, text32, ts12.ScriptTarget.Latest, false, kind);
180594
180810
  const out2 = [];
180595
180811
  const label4 = (callee) => {
180596
180812
  let e2 = callee;
180597
- while (ts10.isNonNullExpression(e2) || ts10.isAsExpression(e2) || ts10.isSatisfiesExpression(e2)) e2 = e2.expression;
180598
- if (ts10.isIdentifier(e2) || ts10.isPropertyAccessExpression(e2)) return `${e2.getText(source2).replace(/\s+/g, "").replace(/\?\./g, ".")}()`;
180599
- if (e2.kind === ts10.SyntaxKind.ImportKeyword) return "import()";
180813
+ while (ts12.isNonNullExpression(e2) || ts12.isAsExpression(e2) || ts12.isSatisfiesExpression(e2)) e2 = e2.expression;
180814
+ if (ts12.isIdentifier(e2) || ts12.isPropertyAccessExpression(e2)) return `${e2.getText(source2).replace(/\s+/g, "").replace(/\?\./g, ".")}()`;
180815
+ if (e2.kind === ts12.SyntaxKind.ImportKeyword) return "import()";
180600
180816
  return "(\u2026)()";
180601
180817
  };
180602
180818
  const visit = (node4) => {
180603
- if (ts10.isHeritageClause(node4)) {
180604
- if (node4.token === ts10.SyntaxKind.ExtendsKeyword) for (const t2 of node4.types) visit(t2.expression);
180819
+ if (ts12.isHeritageClause(node4)) {
180820
+ if (node4.token === ts12.SyntaxKind.ExtendsKeyword) for (const t2 of node4.types) visit(t2.expression);
180605
180821
  return;
180606
180822
  }
180607
180823
  const runsNow = (member) => {
180608
- for (const m2 of ts10.canHaveModifiers(member) ? ts10.getModifiers(member) ?? [] : []) visit(m2);
180609
- for (const d2 of ts10.canHaveDecorators(member) ? ts10.getDecorators(member) ?? [] : []) visit(d2);
180824
+ for (const m2 of ts12.canHaveModifiers(member) ? ts12.getModifiers(member) ?? [] : []) visit(m2);
180825
+ for (const d2 of ts12.canHaveDecorators(member) ? ts12.getDecorators(member) ?? [] : []) visit(d2);
180610
180826
  const name = member.name;
180611
- if (name && ts10.isComputedPropertyName(name)) visit(name.expression);
180827
+ if (name && ts12.isComputedPropertyName(name)) visit(name.expression);
180612
180828
  };
180613
- if (ts10.isFunctionLike(node4) && !ts10.isCallSignatureDeclaration(node4)) return runsNow(node4);
180614
- if (ts10.isPropertyDeclaration(node4) && !node4.modifiers?.some((m2) => m2.kind === ts10.SyntaxKind.StaticKeyword)) return runsNow(node4);
180615
- if (ts10.isDecorator(node4) && !ts10.isCallExpression(node4.expression)) out2.push(`@${label4(node4.expression).slice(0, -2)}`);
180616
- if (ts10.isTypeNode(node4) || ts10.isTypeAliasDeclaration(node4) || ts10.isInterfaceDeclaration(node4)) return;
180617
- if (ts10.isCallExpression(node4)) {
180829
+ if (ts12.isFunctionLike(node4) && !ts12.isCallSignatureDeclaration(node4)) return runsNow(node4);
180830
+ if (ts12.isPropertyDeclaration(node4) && !node4.modifiers?.some((m2) => m2.kind === ts12.SyntaxKind.StaticKeyword)) return runsNow(node4);
180831
+ if (ts12.isDecorator(node4) && !ts12.isCallExpression(node4.expression)) out2.push(`@${label4(node4.expression).slice(0, -2)}`);
180832
+ if (ts12.isTypeNode(node4) || ts12.isTypeAliasDeclaration(node4) || ts12.isInterfaceDeclaration(node4)) return;
180833
+ if (ts12.isCallExpression(node4)) {
180618
180834
  const name = label4(node4.expression);
180619
180835
  if (!PURE_CALLS.has(name.slice(0, -2))) out2.push(name);
180620
- } else if (ts10.isNewExpression(node4)) {
180836
+ } else if (ts12.isNewExpression(node4)) {
180621
180837
  const name = label4(node4.expression).slice(0, -2);
180622
180838
  if (!BUILTIN_CONSTRUCTORS.has(name)) out2.push(`new ${name}()`);
180623
180839
  if (name === "Promise") {
180624
- for (const arg2 of node4.arguments ?? []) if ((ts10.isArrowFunction(arg2) || ts10.isFunctionExpression(arg2)) && arg2.body) visit(arg2.body);
180840
+ for (const arg2 of node4.arguments ?? []) if ((ts12.isArrowFunction(arg2) || ts12.isFunctionExpression(arg2)) && arg2.body) visit(arg2.body);
180625
180841
  }
180626
- } else if (ts10.isTaggedTemplateExpression(node4)) out2.push(label4(node4.tag));
180627
- ts10.forEachChild(node4, visit);
180842
+ } else if (ts12.isTaggedTemplateExpression(node4)) out2.push(label4(node4.tag));
180843
+ ts12.forEachChild(node4, visit);
180628
180844
  };
180629
180845
  visit(source2);
180630
180846
  return out2;
@@ -186228,12 +186444,12 @@ __export(config_push_edit_exports, {
186228
186444
  });
186229
186445
  import { readFileSync as readFileSync64 } from "node:fs";
186230
186446
  import { basename as basename16 } from "node:path";
186231
- import ts11 from "typescript";
186447
+ import ts13 from "typescript";
186232
186448
  function enablePushInConfig(source2, options2) {
186233
186449
  const pingAppName = DEFAULT_PING_APP_NAME;
186234
186450
  const fileName = options2.fileName ?? "config.ts";
186235
- const kind = fileName.endsWith(".ts") ? ts11.ScriptKind.TS : ts11.ScriptKind.JS;
186236
- const file2 = ts11.createSourceFile(fileName, source2, ts11.ScriptTarget.Latest, true, kind);
186451
+ const kind = fileName.endsWith(".ts") ? ts13.ScriptKind.TS : ts13.ScriptKind.JS;
186452
+ const file2 = ts13.createSourceFile(fileName, source2, ts13.ScriptTarget.Latest, true, kind);
186237
186453
  const app2 = defineAppLiteral(file2);
186238
186454
  const named5 = (instruction) => instruction.replaceAll("config.ts", fileName);
186239
186455
  const unchanged = (instruction) => ({ source: source2, changed: false, applied: [], instructions: [named5(instruction)], pushOn: false });
@@ -186285,9 +186501,9 @@ function planPush(app2, pingAppName, plan) {
186285
186501
  }
186286
186502
  function planRetiredFamily(block, plan) {
186287
186503
  const literal5 = unwrap(block);
186288
- const found = ts11.isObjectLiteralExpression(literal5) ? lookup(literal5, "pingAppName") : void 0;
186504
+ const found = ts13.isObjectLiteralExpression(literal5) ? lookup(literal5, "pingAppName") : void 0;
186289
186505
  const value2 = found?.kind === "written" ? unwrap(found.node.initializer) : void 0;
186290
- const replacement = value2 && ts11.isStringLiteralLike(value2) ? replacementPingFamily(value2.text) : void 0;
186506
+ const replacement = value2 && ts13.isStringLiteralLike(value2) ? replacementPingFamily(value2.text) : void 0;
186291
186507
  if (!value2 || !replacement) return;
186292
186508
  plan.splices.push({ at: value2.getStart(), end: value2.end, text: JSON.stringify(replacement) });
186293
186509
  plan.applied.push(`pingAppName ${JSON.stringify(replacement)} in place of ${value2.getText()}`);
@@ -186300,11 +186516,11 @@ function planCapability(app2, plan) {
186300
186516
  return;
186301
186517
  }
186302
186518
  const list5 = capabilities.kind === "written" ? unwrap(capabilities.node.initializer) : void 0;
186303
- if (!list5 || !ts11.isArrayLiteralExpression(list5)) {
186519
+ if (!list5 || !ts13.isArrayLiteralExpression(list5)) {
186304
186520
  plan.instructions.push('Add "push" to capabilities: Wix push needs the push capability, and config.ts does not list it inline.');
186305
186521
  return;
186306
186522
  }
186307
- if (list5.elements.some((e2) => ts11.isStringLiteralLike(e2) && e2.text === "push")) return;
186523
+ if (list5.elements.some((e2) => ts13.isStringLiteralLike(e2) && e2.text === "push")) return;
186308
186524
  const last = list5.elements[list5.elements.length - 1];
186309
186525
  plan.splices.push(last ? { at: last.end, end: last.end, text: ', "push"' } : { at: list5.getStart(), end: list5.end, text: '["push"]' });
186310
186526
  plan.applied.push("push capability");
@@ -186332,7 +186548,7 @@ function planAuthSite(login2, file2, site, plan) {
186332
186548
  const current = siteId.kind === "written" ? unwrap(siteId.node.initializer) : void 0;
186333
186549
  if (!current) {
186334
186550
  plan.instructions.push(`auth may get its siteId from elsewhere, so none was added. Wix push needs ${wanted}.`);
186335
- } else if (!ts11.isStringLiteralLike(current)) {
186551
+ } else if (!ts13.isStringLiteralLike(current)) {
186336
186552
  plan.instructions.push(`auth's siteId is computed, so it was not checked: make sure it evaluates to ${JSON.stringify(site)}.`);
186337
186553
  } else if (current.text !== site) {
186338
186554
  plan.instructions.push(
@@ -186825,7 +187041,7 @@ __export(apply_exports, {
186825
187041
  import { existsSync as existsSync59, mkdtempSync as mkdtempSync2, readFileSync as readFileSync65, rmSync as rmSync18, writeFileSync as writeFileSync27 } from "node:fs";
186826
187042
  import { tmpdir as tmpdir3 } from "node:os";
186827
187043
  import { join as join53 } from "node:path";
186828
- import ts12 from "typescript";
187044
+ import ts14 from "typescript";
186829
187045
  function provisioningFor(current, app2) {
186830
187046
  const { base44: _oldBase44, bindings, ...rest } = current;
186831
187047
  const otherBindings = bindings && typeof bindings === "object" ? Object.fromEntries(Object.entries(bindings).filter(([k3]) => k3 !== "base44")) : void 0;
@@ -186863,11 +187079,11 @@ function tokensFor(current, app2) {
186863
187079
  return { ...current, colors: next };
186864
187080
  }
186865
187081
  function stringReplace(node4, value2, file2) {
186866
- if (!ts12.isStringLiteralLike(node4)) return void 0;
187082
+ if (!ts14.isStringLiteralLike(node4)) return void 0;
186867
187083
  return { at: node4.getStart(file2), end: node4.getEnd(), text: JSON.stringify(value2) };
186868
187084
  }
186869
187085
  function configFor(source2, app2) {
186870
- const file2 = ts12.createSourceFile("config.ts", source2, ts12.ScriptTarget.Latest, true, ts12.ScriptKind.TS);
187086
+ const file2 = ts14.createSourceFile("config.ts", source2, ts14.ScriptTarget.Latest, true, ts14.ScriptKind.TS);
186871
187087
  const literal5 = defineAppLiteral(file2);
186872
187088
  if (!literal5) throw new Error("config.ts: no defineApp({ \u2026 }) literal to edit");
186873
187089
  const splices = [];
@@ -186876,7 +187092,7 @@ function configFor(source2, app2) {
186876
187092
  if (!nameSplice) throw new Error("config.ts: `name` is not a string literal");
186877
187093
  splices.push(nameSplice);
186878
187094
  const splash = lookup(literal5, "splash");
186879
- if (splash.kind !== "written" || !ts12.isObjectLiteralExpression(splash.node.initializer)) throw new Error("config.ts: `splash` is not an object literal");
187095
+ if (splash.kind !== "written" || !ts14.isObjectLiteralExpression(splash.node.initializer)) throw new Error("config.ts: `splash` is not an object literal");
186880
187096
  const block = splash.node.initializer;
186881
187097
  const caption = lookup(block, "caption");
186882
187098
  const captionValue = app2.splash.caption.value;
@@ -187021,11 +187237,11 @@ __export(app_locale_edit_exports, {
187021
187237
  });
187022
187238
  import { existsSync as existsSync60, readFileSync as readFileSync66 } from "node:fs";
187023
187239
  import { join as join54 } from "node:path";
187024
- import ts13 from "typescript";
187240
+ import ts15 from "typescript";
187025
187241
  function setAppLocaleInConfig(source2, tag2, fileName = "config.ts", translations = []) {
187026
187242
  const others = [...new Set(translations)].filter((t2) => t2 !== tag2);
187027
187243
  if (tag2 === SOURCE_LANGUAGE && others.length === 0) return { source: source2, status: "source-language" };
187028
- const file2 = ts13.createSourceFile(fileName, source2, ts13.ScriptTarget.Latest, true, ts13.ScriptKind.TS);
187244
+ const file2 = ts15.createSourceFile(fileName, source2, ts15.ScriptTarget.Latest, true, ts15.ScriptKind.TS);
187029
187245
  const app2 = defineAppLiteral(file2);
187030
187246
  if (!app2 || lookup(app2, "locale").kind !== "absent") return { source: source2, status: "kept" };
187031
187247
  const lines2 = others.length > 0 ? [
@@ -188389,15 +188605,15 @@ function loadMemory2(dir) {
188389
188605
  for (const t2 of m2.timeline) {
188390
188606
  if (!isObj3(t2)) continue;
188391
188607
  const file2 = historyName(t2.sha, t2.ext);
188392
- const ts44 = str7(t2.ts);
188608
+ const ts46 = str7(t2.ts);
188393
188609
  const id = str7(t2.id);
188394
- if (file2 && ts44 && id) timeline.push({ ts: ts44, id, file: file2 });
188610
+ if (file2 && ts46 && id) timeline.push({ ts: ts46, id, file: file2 });
188395
188611
  }
188396
188612
  return { createdAt: str7(m2.createdAt), shots, timeline };
188397
188613
  }
188398
- function captionAt(entries, ts44) {
188614
+ function captionAt(entries, ts46) {
188399
188615
  let best = null;
188400
- for (const e2 of entries) if (e2.ts <= ts44) best = e2;
188616
+ for (const e2 of entries) if (e2.ts <= ts46) best = e2;
188401
188617
  return best ? best.message : null;
188402
188618
  }
188403
188619
  function thin(items, max) {
@@ -188517,13 +188733,13 @@ function duration(ms2) {
188517
188733
  const m2 = Math.round(ms2 / 6e4);
188518
188734
  return m2 < 60 ? `${m2} min` : `${Math.floor(m2 / 60)} h ${m2 % 60} min`;
188519
188735
  }
188520
- function utcDay(ts44) {
188521
- const d2 = new Date(ts44);
188736
+ function utcDay(ts46) {
188737
+ const d2 = new Date(ts46);
188522
188738
  return Number.isNaN(d2.getTime()) ? "" : `${d2.toUTCString().slice(0, 16)} (UTC)`;
188523
188739
  }
188524
- function sinceStart(start2, ts44) {
188740
+ function sinceStart(start2, ts46) {
188525
188741
  if (!start2) return "";
188526
- const s5 = Math.max(0, Math.round((Date.parse(ts44) - Date.parse(start2)) / 1e3));
188742
+ const s5 = Math.max(0, Math.round((Date.parse(ts46) - Date.parse(start2)) / 1e3));
188527
188743
  const h2 = Math.floor(s5 / 3600);
188528
188744
  const m2 = Math.floor(s5 % 3600 / 60);
188529
188745
  const sec = String(s5 % 60).padStart(2, "0");
@@ -188533,7 +188749,7 @@ function renderReel(plan, images) {
188533
188749
  const img = (f2, alt, cls = "") => f2 && images.has(f2) ? `<img class="${cls}" src="${images.get(f2)}" alt="${escapeHtml(alt)}">` : "";
188534
188750
  const count3 = (n2) => escapeHtml(String(Number.isSafeInteger(n2) && n2 >= 0 ? n2 : 0));
188535
188751
  const accent = ACCENT2.test(plan.accent) ? plan.accent : DEFAULT_ACCENT;
188536
- const clock = (ts44) => sinceStart(plan.startedAt, ts44);
188752
+ const clock = (ts46) => sinceStart(plan.startedAt, ts46);
188537
188753
  const frames = plan.frames.filter((f2) => images.has(f2.file));
188538
188754
  const flip = frames.length ? `<section class="flip"><div class="phone">${frames.map((f2, i2) => `<img class="fr${i2 === 0 ? " on" : ""}" src="${images.get(f2.file)}" alt="${escapeHtml(plan.focusId ?? "")} at ${clock(f2.ts)}">`).join("")}</div>
188539
188755
  <div class="flipcap"><div class="t" id="ft">${frames[0] ? clock(frames[0].ts) : ""}</div><div id="fc">${escapeHtml(frames[0]?.caption ?? "")}</div><div class="bar"><div id="fb"></div></div></div></section>` : `<p class="muted">No screen versions were recorded \u2014 open the build board with <code>himi studio</code> before building to capture them.</p>`;
@@ -190207,19 +190423,19 @@ var init_surface_lint = __esm({
190207
190423
  // src/token-lint.ts
190208
190424
  import { existsSync as existsSync68, readFileSync as readFileSync75 } from "node:fs";
190209
190425
  import { join as join65 } from "node:path";
190210
- import ts14 from "typescript";
190426
+ import ts16 from "typescript";
190211
190427
  function configuredTokensPath(dir) {
190212
190428
  for (const name of ["config.ts", "config.js", "himi.config.ts"]) {
190213
190429
  const f2 = join65(dir, name);
190214
190430
  if (!existsSync68(f2)) continue;
190215
190431
  const src = readFileSync75(f2, "utf8");
190216
- const app2 = defineAppLiteral(ts14.createSourceFile(f2, src, ts14.ScriptTarget.Latest, true));
190432
+ const app2 = defineAppLiteral(ts16.createSourceFile(f2, src, ts16.ScriptTarget.Latest, true));
190217
190433
  if (!app2) return { computed: true };
190218
190434
  const field = lookup(app2, "designTokensPath");
190219
190435
  if (field.kind === "opaque") return { computed: true };
190220
190436
  if (field.kind === "written") {
190221
190437
  const value2 = unwrap(field.node.initializer);
190222
- return ts14.isStringLiteralLike(value2) && !ts14.isTemplateExpression(value2) ? { path: value2.text.replace(/^\.\//, "") } : { computed: true };
190438
+ return ts16.isStringLiteralLike(value2) && !ts16.isTemplateExpression(value2) ? { path: value2.text.replace(/^\.\//, "") } : { computed: true };
190223
190439
  }
190224
190440
  }
190225
190441
  return {};
@@ -191036,13 +191252,13 @@ __export(template_screens_summary_exports, {
191036
191252
  });
191037
191253
  import { existsSync as existsSync71, readFileSync as readFileSync78 } from "node:fs";
191038
191254
  import { join as join68 } from "node:path";
191039
- import ts15 from "typescript";
191255
+ import ts17 from "typescript";
191040
191256
  function isSharedScreen(id) {
191041
191257
  return SHARED_CONSUMER.test(id) || SHARED_OWNER.test(id);
191042
191258
  }
191043
191259
  function staticLabel(e2) {
191044
191260
  if (!e2) return void 0;
191045
- if (ts15.isCallExpression(e2)) {
191261
+ if (ts17.isCallExpression(e2)) {
191046
191262
  return e2.arguments.length === 2 && literal2(e2.arguments[0]) !== void 0 ? literal2(e2.arguments[1]) : void 0;
191047
191263
  }
191048
191264
  return literal2(e2);
@@ -191051,29 +191267,29 @@ function navigationObject(source2) {
191051
191267
  let found;
191052
191268
  const visit = (node4) => {
191053
191269
  if (found) return;
191054
- if (ts15.isPropertyAssignment(node4) && propName4(node4) === "navigation" && ts15.isObjectLiteralExpression(node4.initializer)) {
191270
+ if (ts17.isPropertyAssignment(node4) && propName5(node4) === "navigation" && ts17.isObjectLiteralExpression(node4.initializer)) {
191055
191271
  found = node4.initializer;
191056
191272
  return;
191057
191273
  }
191058
- ts15.forEachChild(node4, visit);
191274
+ ts17.forEachChild(node4, visit);
191059
191275
  };
191060
191276
  visit(source2);
191061
191277
  return found;
191062
191278
  }
191063
191279
  function configTabs(configText) {
191064
- const source2 = ts15.createSourceFile("config.ts", configText, ts15.ScriptTarget.Latest, false, ts15.ScriptKind.TS);
191280
+ const source2 = ts17.createSourceFile("config.ts", configText, ts17.ScriptTarget.Latest, false, ts17.ScriptKind.TS);
191065
191281
  const nav = navigationObject(source2);
191066
191282
  if (!nav) return [];
191067
191283
  const items = (key4) => {
191068
- const block = propValue(nav, key4);
191069
- const list5 = block && ts15.isObjectLiteralExpression(block) ? propValue(block, "items") : void 0;
191070
- return list5 && ts15.isArrayLiteralExpression(list5) ? list5.elements.filter(ts15.isObjectLiteralExpression) : [];
191284
+ const block = propValue2(nav, key4);
191285
+ const list5 = block && ts17.isObjectLiteralExpression(block) ? propValue2(block, "items") : void 0;
191286
+ return list5 && ts17.isArrayLiteralExpression(list5) ? list5.elements.filter(ts17.isObjectLiteralExpression) : [];
191071
191287
  };
191072
- const rows = propValue(nav, "tabBar") ? items("tabBar") : items("drawer").filter((i2) => literal2(propValue(i2, "role")) !== "section");
191288
+ const rows = propValue2(nav, "tabBar") ? items("tabBar") : items("drawer").filter((i2) => literal2(propValue2(i2, "role")) !== "section");
191073
191289
  const tabs = [];
191074
191290
  for (const row2 of rows) {
191075
- const label4 = staticLabel(propValue(row2, "label"))?.trim();
191076
- const screenId = literal2(propValue(row2, "screenId"));
191291
+ const label4 = staticLabel(propValue2(row2, "label"))?.trim();
191292
+ const screenId = literal2(propValue2(row2, "screenId"));
191077
191293
  if (label4 && screenId && !tabs.some((t2) => t2.label === label4)) tabs.push({ label: label4, screenId });
191078
191294
  }
191079
191295
  return tabs;
@@ -191108,18 +191324,18 @@ function templateScreensSummary(dir) {
191108
191324
  }
191109
191325
  return { count: ids2.length, tabs: tabs.map((t2) => t2.label), screens: own6 };
191110
191326
  }
191111
- var SHARED_CONSUMER, SHARED_OWNER, propName4, propValue, literal2;
191327
+ var SHARED_CONSUMER, SHARED_OWNER, propName5, propValue2, literal2;
191112
191328
  var init_template_screens_summary = __esm({
191113
191329
  "src/template-screens-summary.ts"() {
191114
191330
  init_define_HHP_CATALOG();
191115
191331
  SHARED_CONSUMER = /^himi_(?:account(?:_|$)|delete_account$|sign_in$|business_contact$|appearance$|view_profile$|app_info$|app_language$|branded_splash$|notif_settings$|notification_settings$|whats_new$|address(?:es)?$)/;
191116
191332
  SHARED_OWNER = /^himi_owner_lite_(?:module_|record_|aria|maestro|analytics|widget|wrist_|account$|drawer$|home$|inbox|search$|sites$|overview$|ask$|brief$)/;
191117
- propName4 = (p2) => ts15.isPropertyAssignment(p2) && (ts15.isIdentifier(p2.name) || ts15.isStringLiteral(p2.name)) ? p2.name.text : void 0;
191118
- propValue = (obj30, name) => {
191119
- for (const p2 of obj30.properties) if (propName4(p2) === name) return p2.initializer;
191333
+ propName5 = (p2) => ts17.isPropertyAssignment(p2) && (ts17.isIdentifier(p2.name) || ts17.isStringLiteral(p2.name)) ? p2.name.text : void 0;
191334
+ propValue2 = (obj30, name) => {
191335
+ for (const p2 of obj30.properties) if (propName5(p2) === name) return p2.initializer;
191120
191336
  return void 0;
191121
191337
  };
191122
- literal2 = (e2) => e2 && (ts15.isStringLiteral(e2) || ts15.isNoSubstitutionTemplateLiteral(e2)) ? e2.text : void 0;
191338
+ literal2 = (e2) => e2 && (ts17.isStringLiteral(e2) || ts17.isNoSubstitutionTemplateLiteral(e2)) ? e2.text : void 0;
191123
191339
  }
191124
191340
  });
191125
191341
 
@@ -191131,17 +191347,17 @@ __export(template_sweep_exports, {
191131
191347
  });
191132
191348
  import { readFileSync as readFileSync79, writeFileSync as writeFileSync31 } from "node:fs";
191133
191349
  import { join as join69 } from "node:path";
191134
- import ts16 from "typescript";
191350
+ import ts18 from "typescript";
191135
191351
  function isCopy(node4, file2) {
191136
191352
  const parent = node4.parent;
191137
- if (ts16.isPropertyAssignment(parent) && parent.name === node4) return false;
191138
- if (ts16.isImportDeclaration(parent) || ts16.isExportDeclaration(parent) || ts16.isExternalModuleReference(parent)) return false;
191139
- if (ts16.isLiteralTypeNode(parent) || ts16.isImportTypeNode(parent)) return false;
191140
- if (ts16.isCallExpression(parent) && ts16.isIdentifier(parent.expression) && parent.expression.text === "require") return false;
191353
+ if (ts18.isPropertyAssignment(parent) && parent.name === node4) return false;
191354
+ if (ts18.isImportDeclaration(parent) || ts18.isExportDeclaration(parent) || ts18.isExternalModuleReference(parent)) return false;
191355
+ if (ts18.isLiteralTypeNode(parent) || ts18.isImportTypeNode(parent)) return false;
191356
+ if (ts18.isCallExpression(parent) && ts18.isIdentifier(parent.expression) && parent.expression.text === "require") return false;
191141
191357
  const value2 = node4.text;
191142
191358
  if (/\s/.test(value2) || PLACEHOLDER.test(value2)) return true;
191143
191359
  if (ID_LIKE.test(value2)) return false;
191144
- const key4 = ts16.isPropertyAssignment(parent) ? propName5(parent.name) : void 0;
191360
+ const key4 = ts18.isPropertyAssignment(parent) ? propName6(parent.name) : void 0;
191145
191361
  if (!key4) return false;
191146
191362
  return COPY_KEYS.has(key4) || key4 === "name" && file2 === "config.ts";
191147
191363
  }
@@ -191159,8 +191375,8 @@ function syntaxErrors(file2, text32) {
191159
191375
  return [e2.message];
191160
191376
  }
191161
191377
  }
191162
- const out2 = ts16.transpileModule(text32, { fileName: file2, reportDiagnostics: true, compilerOptions: { target: ts16.ScriptTarget.ES2022 } });
191163
- return (out2.diagnostics ?? []).map((d2) => ts16.flattenDiagnosticMessageText(d2.messageText, "\n"));
191378
+ const out2 = ts18.transpileModule(text32, { fileName: file2, reportDiagnostics: true, compilerOptions: { target: ts18.ScriptTarget.ES2022 } });
191379
+ return (out2.diagnostics ?? []).map((d2) => ts18.flattenDiagnosticMessageText(d2.messageText, "\n"));
191164
191380
  }
191165
191381
  function parses(dev, config) {
191166
191382
  try {
@@ -191206,11 +191422,11 @@ function sweepCopy(dir, pairs2, dryRun) {
191206
191422
  if (changed) next.set(f2, JSON.stringify(catalog4, null, 2) + "\n");
191207
191423
  continue;
191208
191424
  }
191209
- const kind = f2.endsWith(".json") ? ts16.ScriptKind.JSON : f2.endsWith("x") ? ts16.ScriptKind.TSX : ts16.ScriptKind.TS;
191210
- const sf2 = ts16.createSourceFile(f2, text32, ts16.ScriptTarget.Latest, true, kind);
191425
+ const kind = f2.endsWith(".json") ? ts18.ScriptKind.JSON : f2.endsWith("x") ? ts18.ScriptKind.TSX : ts18.ScriptKind.TS;
191426
+ const sf2 = ts18.createSourceFile(f2, text32, ts18.ScriptTarget.Latest, true, kind);
191211
191427
  const edits = [];
191212
191428
  const visit = (node4) => {
191213
- if ((ts16.isStringLiteral(node4) || ts16.isNoSubstitutionTemplateLiteral(node4)) && isCopy(node4, f2)) {
191429
+ if ((ts18.isStringLiteral(node4) || ts18.isNoSubstitutionTemplateLiteral(node4)) && isCopy(node4, f2)) {
191214
191430
  let value2 = node4.text;
191215
191431
  pairs2.forEach(([from, to2], i2) => {
191216
191432
  const n2 = value2.split(from).length - 1;
@@ -191223,7 +191439,7 @@ function sweepCopy(dir, pairs2, dryRun) {
191223
191439
  edits.push({ start: start2, end: node4.end, text: encode(value2, text32[start2]) });
191224
191440
  }
191225
191441
  }
191226
- ts16.forEachChild(node4, visit);
191442
+ ts18.forEachChild(node4, visit);
191227
191443
  };
191228
191444
  visit(sf2);
191229
191445
  if (!edits.length) continue;
@@ -191274,7 +191490,7 @@ function sweepPairs(set3, mapFile) {
191274
191490
  if (!pairs2.length) throw new TrimRefusal('nothing to sweep \u2014 pass --set "Old=>New" (repeatable) or --map <file.json>');
191275
191491
  return pairs2;
191276
191492
  }
191277
- var ID_LIKE, COPY_KEYS, propName5;
191493
+ var ID_LIKE, COPY_KEYS, propName6;
191278
191494
  var init_template_sweep = __esm({
191279
191495
  "src/template-sweep.ts"() {
191280
191496
  init_define_HHP_CATALOG();
@@ -191303,7 +191519,7 @@ var init_template_sweep = __esm({
191303
191519
  "appName",
191304
191520
  "displayName"
191305
191521
  ]);
191306
- propName5 = (n2) => ts16.isIdentifier(n2) || ts16.isStringLiteral(n2) || ts16.isNoSubstitutionTemplateLiteral(n2) ? n2.text : void 0;
191522
+ propName6 = (n2) => ts18.isIdentifier(n2) || ts18.isStringLiteral(n2) || ts18.isNoSubstitutionTemplateLiteral(n2) ? n2.text : void 0;
191307
191523
  }
191308
191524
  });
191309
191525
 
@@ -191650,28 +191866,28 @@ __export(seed_home_lint_exports, {
191650
191866
  seedRecords: () => seedRecords,
191651
191867
  workerSeedRecords: () => workerSeedRecords
191652
191868
  });
191653
- import ts17 from "typescript";
191869
+ import ts19 from "typescript";
191654
191870
  import { existsSync as existsSync73, lstatSync as lstatSync25, readdirSync as readdirSync37, readFileSync as readFileSync81 } from "node:fs";
191655
191871
  import { join as join71, relative as relative16, sep as sep21 } from "node:path";
191656
191872
  function propertyName(name) {
191657
- if (name && (ts17.isIdentifier(name) || ts17.isStringLiteralLike(name) || ts17.isNumericLiteral(name))) return name.text;
191873
+ if (name && (ts19.isIdentifier(name) || ts19.isStringLiteralLike(name) || ts19.isNumericLiteral(name))) return name.text;
191658
191874
  return null;
191659
191875
  }
191660
191876
  function unwrap2(node4) {
191661
- while (ts17.isAsExpression(node4) || ts17.isSatisfiesExpression(node4) || ts17.isParenthesizedExpression(node4)) node4 = node4.expression;
191877
+ while (ts19.isAsExpression(node4) || ts19.isSatisfiesExpression(node4) || ts19.isParenthesizedExpression(node4)) node4 = node4.expression;
191662
191878
  return node4;
191663
191879
  }
191664
191880
  function literalValue(node4) {
191665
191881
  const inner = unwrap2(node4);
191666
- if (ts17.isStringLiteralLike(inner)) return inner.text;
191667
- if (ts17.isNumericLiteral(inner)) return `#${inner.text}`;
191882
+ if (ts19.isStringLiteralLike(inner)) return inner.text;
191883
+ if (ts19.isNumericLiteral(inner)) return `#${inner.text}`;
191668
191884
  return null;
191669
191885
  }
191670
191886
  function readRecord2(obj30) {
191671
191887
  let id = null;
191672
191888
  const values = /* @__PURE__ */ new Set();
191673
191889
  for (const prop2 of obj30.properties) {
191674
- if (!ts17.isPropertyAssignment(prop2)) continue;
191890
+ if (!ts19.isPropertyAssignment(prop2)) continue;
191675
191891
  const key4 = propertyName(prop2.name);
191676
191892
  const value2 = literalValue(prop2.initializer);
191677
191893
  if (key4 === null || value2 === null) continue;
@@ -191684,10 +191900,10 @@ function readRecord2(obj30) {
191684
191900
  function recordMapEntries(obj30) {
191685
191901
  const entries = [];
191686
191902
  for (const prop2 of obj30.properties) {
191687
- if (!ts17.isPropertyAssignment(prop2)) return null;
191903
+ if (!ts19.isPropertyAssignment(prop2)) return null;
191688
191904
  const value2 = unwrap2(prop2.initializer);
191689
191905
  const key4 = propertyName(prop2.name);
191690
- if (!ts17.isObjectLiteralExpression(value2) || key4 === null) return null;
191906
+ if (!ts19.isObjectLiteralExpression(value2) || key4 === null) return null;
191691
191907
  entries.push([key4, value2]);
191692
191908
  }
191693
191909
  if (entries.length < 2) return null;
@@ -191703,20 +191919,20 @@ function recordMapEntries(obj30) {
191703
191919
  return common2.size ? entries : null;
191704
191920
  }
191705
191921
  function scriptKind(file2) {
191706
- if (/\.[cm]?tsx$/i.test(file2)) return ts17.ScriptKind.TSX;
191707
- if (/\.[cm]?jsx$/i.test(file2)) return ts17.ScriptKind.JSX;
191708
- if (/\.[cm]?js$/i.test(file2)) return ts17.ScriptKind.JS;
191709
- return ts17.ScriptKind.TS;
191922
+ if (/\.[cm]?tsx$/i.test(file2)) return ts19.ScriptKind.TSX;
191923
+ if (/\.[cm]?jsx$/i.test(file2)) return ts19.ScriptKind.JSX;
191924
+ if (/\.[cm]?js$/i.test(file2)) return ts19.ScriptKind.JS;
191925
+ return ts19.ScriptKind.TS;
191710
191926
  }
191711
191927
  function seedRecords(source2, file2) {
191712
- const sf2 = ts17.createSourceFile(file2, source2, ts17.ScriptTarget.Latest, false, scriptKind(file2));
191928
+ const sf2 = ts19.createSourceFile(file2, source2, ts19.ScriptTarget.Latest, false, scriptKind(file2));
191713
191929
  const records = [];
191714
191930
  const add = (id, values) => {
191715
191931
  values.delete(id);
191716
191932
  if (values.size) records.push({ id, file: file2, values });
191717
191933
  };
191718
191934
  const visit = (node4) => {
191719
- if (ts17.isObjectLiteralExpression(node4)) {
191935
+ if (ts19.isObjectLiteralExpression(node4)) {
191720
191936
  const own6 = readRecord2(node4);
191721
191937
  if (own6.id !== null) add(own6.id, own6.values);
191722
191938
  for (const [key4, value2] of recordMapEntries(node4) ?? []) {
@@ -191724,7 +191940,7 @@ function seedRecords(source2, file2) {
191724
191940
  if (entry.id === null) add(key4, entry.values);
191725
191941
  }
191726
191942
  }
191727
- ts17.forEachChild(node4, visit);
191943
+ ts19.forEachChild(node4, visit);
191728
191944
  };
191729
191945
  visit(sf2);
191730
191946
  return records;
@@ -191966,7 +192182,7 @@ var init_shell_capabilities_generated = __esm({
191966
192182
 
191967
192183
  // ../native-config/social-sign-in.ts
191968
192184
  import { dirname as dirname41, join as join72 } from "node:path";
191969
- import ts18 from "typescript";
192185
+ import ts20 from "typescript";
191970
192186
  function assertGoogleClientId(id, where) {
191971
192187
  if (!isBakeableGoogleClientId(id)) {
191972
192188
  throw new Error(`${where}: ${JSON.stringify(id)} is not a Google OAuth client ID (<digits>[-<id>]${GOOGLE_CLIENT_SUFFIX})`);
@@ -192012,48 +192228,31 @@ function renderGoogleSignInResource(serverClientId) {
192012
192228
  }
192013
192229
  function parseSocialSignInConfig(configTs) {
192014
192230
  if (!configTs.includes("socialSignIn")) return {};
192015
- const file2 = ts18.createSourceFile("config.ts", configTs, ts18.ScriptTarget.Latest, false, ts18.ScriptKind.TS);
192016
- const consts = collectConsts(file2);
192017
- const resolve141 = (e2, depth = 0) => {
192018
- while (e2 && (ts18.isAsExpression(e2) || ts18.isSatisfiesExpression(e2) || ts18.isParenthesizedExpression(e2))) e2 = e2.expression;
192019
- return e2 && ts18.isIdentifier(e2) && depth < 8 ? resolve141(consts.get(e2.text), depth + 1) : e2;
192020
- };
192231
+ const file2 = parseConfigSource(configTs);
192232
+ const resolve141 = makeResolver(collectConsts(file2));
192021
192233
  const objectProp2 = (o2, name) => {
192022
- const p2 = o2.properties.filter((x2) => propName6(x2) === name).pop();
192234
+ const p2 = o2.properties.filter((x2) => propName(x2) === name).pop();
192023
192235
  if (!p2) return void 0;
192024
- return resolve141(ts18.isPropertyAssignment(p2) ? p2.initializer : ts18.isShorthandPropertyAssignment(p2) ? p2.name : void 0);
192236
+ return resolve141(propValue(p2));
192025
192237
  };
192026
192238
  const literal5 = (o2, name) => {
192027
192239
  const v2 = objectProp2(o2, name);
192028
- return v2 && ts18.isStringLiteralLike(v2) ? v2.text : void 0;
192240
+ return v2 && ts20.isStringLiteralLike(v2) ? v2.text : void 0;
192029
192241
  };
192030
192242
  let found = {};
192031
192243
  const visit = (node4) => {
192032
- if ((ts18.isPropertyAssignment(node4) || ts18.isShorthandPropertyAssignment(node4)) && propName6(node4) === "socialSignIn") {
192033
- const block = resolve141(ts18.isPropertyAssignment(node4) ? node4.initializer : node4.name);
192034
- if (block && ts18.isObjectLiteralExpression(block)) {
192244
+ if ((ts20.isPropertyAssignment(node4) || ts20.isShorthandPropertyAssignment(node4)) && propName(node4) === "socialSignIn") {
192245
+ const block = resolve141(ts20.isPropertyAssignment(node4) ? node4.initializer : node4.name);
192246
+ if (block && ts20.isObjectLiteralExpression(block)) {
192035
192247
  const google = objectProp2(block, "google");
192036
- found = google && ts18.isObjectLiteralExpression(google) ? { google: definedOnly({ iosClientId: literal5(google, "iosClientId"), serverClientId: literal5(google, "serverClientId") }) } : {};
192248
+ found = google && ts20.isObjectLiteralExpression(google) ? { google: definedOnly({ iosClientId: literal5(google, "iosClientId"), serverClientId: literal5(google, "serverClientId") }) } : {};
192037
192249
  }
192038
192250
  }
192039
- ts18.forEachChild(node4, visit);
192251
+ ts20.forEachChild(node4, visit);
192040
192252
  };
192041
192253
  visit(file2);
192042
192254
  return found;
192043
192255
  }
192044
- function collectConsts(file2) {
192045
- const consts = /* @__PURE__ */ new Map();
192046
- const collect2 = (node4) => {
192047
- if (ts18.isVariableDeclaration(node4) && ts18.isIdentifier(node4.name) && node4.initializer) consts.set(node4.name.text, node4.initializer);
192048
- ts18.forEachChild(node4, collect2);
192049
- };
192050
- collect2(file2);
192051
- return consts;
192052
- }
192053
- function propName6(p2) {
192054
- if (!ts18.isPropertyAssignment(p2) && !ts18.isShorthandPropertyAssignment(p2)) return void 0;
192055
- return ts18.isIdentifier(p2.name) || ts18.isStringLiteral(p2.name) ? p2.name.text : void 0;
192056
- }
192057
192256
  function definedOnly(binding2) {
192058
192257
  return Object.fromEntries(Object.entries(binding2).filter(([, v2]) => v2 !== void 0));
192059
192258
  }
@@ -192062,6 +192261,7 @@ var init_social_sign_in = __esm({
192062
192261
  "../native-config/social-sign-in.ts"() {
192063
192262
  init_define_HHP_CATALOG();
192064
192263
  init_bake_safe();
192264
+ init_config_ast();
192065
192265
  IOS_GOOGLE_CLIENT_ID_KEY = "GIDClientID";
192066
192266
  IOS_GOOGLE_SERVER_CLIENT_ID_KEY = "GIDServerClientID";
192067
192267
  ANDROID_GOOGLE_SERVER_CLIENT_ID_RES = "himalaya_google_server_client_id";
@@ -196576,7 +196776,7 @@ var init_native_core2 = __esm({
196576
196776
  // ../native-config/native-core-needs.ts
196577
196777
  import { existsSync as existsSync79, readFileSync as readFileSync87 } from "node:fs";
196578
196778
  import { join as join78 } from "node:path";
196579
- import ts19 from "typescript";
196779
+ import ts21 from "typescript";
196580
196780
  function validateEntry(app2, raw, fail19) {
196581
196781
  const at2 = `apps.${app2}`;
196582
196782
  if (raw === null || typeof raw !== "object" || Array.isArray(raw)) fail19(`${at2} must be a JSON object`);
@@ -196643,31 +196843,31 @@ function adoptingApps(root = REPO_ROOT) {
196643
196843
  return Object.keys(readAdoptionStages(root)).sort();
196644
196844
  }
196645
196845
  function propName7(p2) {
196646
- return (ts19.isPropertyAssignment(p2) || ts19.isShorthandPropertyAssignment(p2)) && (ts19.isIdentifier(p2.name) || ts19.isStringLiteral(p2.name)) ? p2.name.text : void 0;
196846
+ return (ts21.isPropertyAssignment(p2) || ts21.isShorthandPropertyAssignment(p2)) && (ts21.isIdentifier(p2.name) || ts21.isStringLiteral(p2.name)) ? p2.name.text : void 0;
196647
196847
  }
196648
196848
  function literalProp(o2, name) {
196649
196849
  const p2 = o2.properties.find((x2) => propName7(x2) === name);
196650
- return p2 && ts19.isPropertyAssignment(p2) && ts19.isStringLiteralLike(p2.initializer) ? p2.initializer.text : void 0;
196850
+ return p2 && ts21.isPropertyAssignment(p2) && ts21.isStringLiteralLike(p2.initializer) ? p2.initializer.text : void 0;
196651
196851
  }
196652
196852
  function appObject(file2) {
196653
196853
  const consts = topLevelConsts(file2);
196654
196854
  const literal5 = (e2) => {
196655
196855
  let n2 = e2 && unwrap3(e2);
196656
- if (n2 && ts19.isIdentifier(n2)) n2 = consts.get(n2.text) && unwrap3(consts.get(n2.text));
196657
- return n2 && ts19.isObjectLiteralExpression(n2) ? n2 : void 0;
196856
+ if (n2 && ts21.isIdentifier(n2)) n2 = consts.get(n2.text) && unwrap3(consts.get(n2.text));
196857
+ return n2 && ts21.isObjectLiteralExpression(n2) ? n2 : void 0;
196658
196858
  };
196659
196859
  let found;
196660
196860
  const visit = (n2) => {
196661
196861
  if (found) return;
196662
- if (ts19.isCallExpression(n2) && ts19.isIdentifier(n2.expression) && n2.expression.text === "defineApp" && literal5(n2.arguments[0])) {
196862
+ if (ts21.isCallExpression(n2) && ts21.isIdentifier(n2.expression) && n2.expression.text === "defineApp" && literal5(n2.arguments[0])) {
196663
196863
  found = literal5(n2.arguments[0]);
196664
196864
  return;
196665
196865
  }
196666
- if (ts19.isExportAssignment(n2) && literal5(n2.expression)) {
196866
+ if (ts21.isExportAssignment(n2) && literal5(n2.expression)) {
196667
196867
  found = literal5(n2.expression);
196668
196868
  return;
196669
196869
  }
196670
- ts19.forEachChild(n2, visit);
196870
+ ts21.forEachChild(n2, visit);
196671
196871
  };
196672
196872
  visit(file2);
196673
196873
  return found;
@@ -196675,8 +196875,8 @@ function appObject(file2) {
196675
196875
  function importedFactories(file2) {
196676
196876
  const local = new Map(Object.keys(WIX_PROVIDER_FACTORIES).map((f2) => [f2, f2]));
196677
196877
  for (const st2 of file2.statements) {
196678
- const named5 = ts19.isImportDeclaration(st2) ? st2.importClause?.namedBindings : void 0;
196679
- if (!named5 || !ts19.isNamedImports(named5)) continue;
196878
+ const named5 = ts21.isImportDeclaration(st2) ? st2.importClause?.namedBindings : void 0;
196879
+ if (!named5 || !ts21.isNamedImports(named5)) continue;
196680
196880
  for (const el2 of named5.elements) {
196681
196881
  const imported = (el2.propertyName ?? el2.name).text;
196682
196882
  if (imported in WIX_PROVIDER_FACTORIES) local.set(el2.name.text, imported);
@@ -196685,47 +196885,47 @@ function importedFactories(file2) {
196685
196885
  return local;
196686
196886
  }
196687
196887
  function factoryOf(callee, factories) {
196688
- if (ts19.isIdentifier(callee)) return factories.get(callee.text);
196689
- if (ts19.isPropertyAccessExpression(callee) && callee.name.text in WIX_PROVIDER_FACTORIES) return callee.name.text;
196888
+ if (ts21.isIdentifier(callee)) return factories.get(callee.text);
196889
+ if (ts21.isPropertyAccessExpression(callee) && callee.name.text in WIX_PROVIDER_FACTORIES) return callee.name.text;
196690
196890
  return void 0;
196691
196891
  }
196692
196892
  function unwrap3(n2) {
196693
- while (ts19.isAsExpression(n2) || ts19.isSatisfiesExpression(n2) || ts19.isParenthesizedExpression(n2) || ts19.isNonNullExpression(n2)) n2 = n2.expression;
196893
+ while (ts21.isAsExpression(n2) || ts21.isSatisfiesExpression(n2) || ts21.isParenthesizedExpression(n2) || ts21.isNonNullExpression(n2)) n2 = n2.expression;
196694
196894
  return n2;
196695
196895
  }
196696
196896
  function selectedProperty(n2, consts) {
196697
- const key4 = ts19.isPropertyAccessExpression(n2) ? n2.name.text : ts19.isElementAccessExpression(n2) && ts19.isStringLiteralLike(n2.argumentExpression) ? n2.argumentExpression.text : void 0;
196698
- if (key4 === void 0 || !ts19.isIdentifier(n2.expression)) return void 0;
196897
+ const key4 = ts21.isPropertyAccessExpression(n2) ? n2.name.text : ts21.isElementAccessExpression(n2) && ts21.isStringLiteralLike(n2.argumentExpression) ? n2.argumentExpression.text : void 0;
196898
+ if (key4 === void 0 || !ts21.isIdentifier(n2.expression)) return void 0;
196699
196899
  const found = consts.get(n2.expression.text);
196700
196900
  const target = found && unwrap3(found);
196701
- if (!target || !ts19.isObjectLiteralExpression(target)) return void 0;
196901
+ if (!target || !ts21.isObjectLiteralExpression(target)) return void 0;
196702
196902
  const p2 = target.properties.find((x2) => propName7(x2) === key4);
196703
- return p2 && ts19.isPropertyAssignment(p2) ? p2.initializer : p2 && ts19.isShorthandPropertyAssignment(p2) ? p2.name : void 0;
196903
+ return p2 && ts21.isPropertyAssignment(p2) ? p2.initializer : p2 && ts21.isShorthandPropertyAssignment(p2) ? p2.name : void 0;
196704
196904
  }
196705
196905
  function isReference(n2) {
196706
196906
  const p2 = n2.parent;
196707
- return !(p2 && (ts19.isPropertyAssignment(p2) || ts19.isPropertyAccessExpression(p2)) && p2.name === n2);
196907
+ return !(p2 && (ts21.isPropertyAssignment(p2) || ts21.isPropertyAccessExpression(p2)) && p2.name === n2);
196708
196908
  }
196709
196909
  function topLevelConsts(file2) {
196710
196910
  const consts = /* @__PURE__ */ new Map();
196711
196911
  for (const st2 of file2.statements) {
196712
- if (ts19.isFunctionDeclaration(st2) && st2.name && st2.body) consts.set(st2.name.text, st2.body);
196713
- if (!ts19.isVariableStatement(st2)) continue;
196714
- for (const d2 of st2.declarationList.declarations) if (ts19.isIdentifier(d2.name) && d2.initializer) consts.set(d2.name.text, d2.initializer);
196912
+ if (ts21.isFunctionDeclaration(st2) && st2.name && st2.body) consts.set(st2.name.text, st2.body);
196913
+ if (!ts21.isVariableStatement(st2)) continue;
196914
+ for (const d2 of st2.declarationList.declarations) if (ts21.isIdentifier(d2.name) && d2.initializer) consts.set(d2.name.text, d2.initializer);
196715
196915
  }
196716
196916
  return consts;
196717
196917
  }
196718
196918
  function declaredAuth(configTs) {
196719
- const file2 = ts19.createSourceFile("config.ts", configTs, ts19.ScriptTarget.Latest, true, ts19.ScriptKind.TS);
196919
+ const file2 = ts21.createSourceFile("config.ts", configTs, ts21.ScriptTarget.Latest, true, ts21.ScriptKind.TS);
196720
196920
  const auth = appObject(file2)?.properties.find((p2) => propName7(p2) === "auth");
196721
196921
  const out2 = { declaresMemberProvider: false };
196722
- const initializer = auth && (ts19.isPropertyAssignment(auth) ? auth.initializer : ts19.isShorthandPropertyAssignment(auth) ? auth.name : void 0);
196922
+ const initializer = auth && (ts21.isPropertyAssignment(auth) ? auth.initializer : ts21.isShorthandPropertyAssignment(auth) ? auth.name : void 0);
196723
196923
  if (!initializer) return out2;
196724
196924
  const consts = topLevelConsts(file2);
196725
196925
  const factories = importedFactories(file2);
196726
196926
  const followed = /* @__PURE__ */ new Set();
196727
196927
  const visit = (n2) => {
196728
- if (ts19.isIdentifier(n2) && isReference(n2) && consts.has(n2.text) && !followed.has(n2.text)) {
196928
+ if (ts21.isIdentifier(n2) && isReference(n2) && consts.has(n2.text) && !followed.has(n2.text)) {
196729
196929
  followed.add(n2.text);
196730
196930
  visit(consts.get(n2.text));
196731
196931
  return;
@@ -196735,46 +196935,46 @@ function declaredAuth(configTs) {
196735
196935
  visit(picked);
196736
196936
  return;
196737
196937
  }
196738
- const factory = ts19.isCallExpression(n2) ? factoryOf(n2.expression, factories) : void 0;
196739
- if (ts19.isCallExpression(n2) && factory) {
196938
+ const factory = ts21.isCallExpression(n2) ? factoryOf(n2.expression, factories) : void 0;
196939
+ if (ts21.isCallExpression(n2) && factory) {
196740
196940
  if (factory === MEMBER_FACTORY) out2.declaresMemberProvider = true;
196741
196941
  if (!out2.providerId) {
196742
196942
  out2.providerId = WIX_PROVIDER_FACTORIES[factory];
196743
196943
  const arg2 = n2.arguments[0];
196744
- const mode = arg2 && ts19.isObjectLiteralExpression(arg2) ? literalProp(arg2, "mode") : void 0;
196944
+ const mode = arg2 && ts21.isObjectLiteralExpression(arg2) ? literalProp(arg2, "mode") : void 0;
196745
196945
  if (mode) out2.mode = mode;
196746
196946
  }
196747
- } else if (ts19.isObjectLiteralExpression(n2)) {
196947
+ } else if (ts21.isObjectLiteralExpression(n2)) {
196748
196948
  const id = literalProp(n2, "providerId");
196749
196949
  if (id && !out2.providerId) {
196750
196950
  out2.providerId = id;
196751
196951
  const config = n2.properties.find((x2) => propName7(x2) === "config");
196752
- const mode = config && ts19.isPropertyAssignment(config) && ts19.isObjectLiteralExpression(config.initializer) ? literalProp(config.initializer, "mode") : void 0;
196952
+ const mode = config && ts21.isPropertyAssignment(config) && ts21.isObjectLiteralExpression(config.initializer) ? literalProp(config.initializer, "mode") : void 0;
196753
196953
  if (mode) out2.mode = mode;
196754
196954
  }
196755
196955
  if (id === MEMBER_PROVIDER_ID) out2.declaresMemberProvider = true;
196756
196956
  }
196757
- ts19.forEachChild(n2, visit);
196957
+ ts21.forEachChild(n2, visit);
196758
196958
  };
196759
196959
  visit(initializer);
196760
196960
  return out2;
196761
196961
  }
196762
196962
  function configLiteral(configTs, key4) {
196763
- const file2 = ts19.createSourceFile("config.ts", configTs, ts19.ScriptTarget.Latest, true, ts19.ScriptKind.TS);
196963
+ const file2 = ts21.createSourceFile("config.ts", configTs, ts21.ScriptTarget.Latest, true, ts21.ScriptKind.TS);
196764
196964
  const app2 = appObject(file2);
196765
196965
  return app2 && literalProp(app2, key4);
196766
196966
  }
196767
196967
  function pushPayloadAdapter(configTs) {
196768
- const file2 = ts19.createSourceFile("config.ts", configTs, ts19.ScriptTarget.Latest, true, ts19.ScriptKind.TS);
196968
+ const file2 = ts21.createSourceFile("config.ts", configTs, ts21.ScriptTarget.Latest, true, ts21.ScriptKind.TS);
196769
196969
  const push = appObject(file2)?.properties.find((p2) => propName7(p2) === "push");
196770
- const initializer = push && (ts19.isPropertyAssignment(push) ? push.initializer : ts19.isShorthandPropertyAssignment(push) ? push.name : void 0);
196970
+ const initializer = push && (ts21.isPropertyAssignment(push) ? push.initializer : ts21.isShorthandPropertyAssignment(push) ? push.name : void 0);
196771
196971
  if (!initializer) return void 0;
196772
196972
  const consts = topLevelConsts(file2);
196773
196973
  const followed = /* @__PURE__ */ new Set();
196774
196974
  let adapter;
196775
196975
  const visit = (n2) => {
196776
196976
  if (adapter) return;
196777
- if (ts19.isIdentifier(n2) && isReference(n2) && consts.has(n2.text) && !followed.has(n2.text)) {
196977
+ if (ts21.isIdentifier(n2) && isReference(n2) && consts.has(n2.text) && !followed.has(n2.text)) {
196778
196978
  followed.add(n2.text);
196779
196979
  visit(consts.get(n2.text));
196780
196980
  return;
@@ -196784,8 +196984,8 @@ function pushPayloadAdapter(configTs) {
196784
196984
  visit(picked);
196785
196985
  return;
196786
196986
  }
196787
- if (ts19.isObjectLiteralExpression(n2)) adapter = literalProp(n2, "payloadAdapter");
196788
- ts19.forEachChild(n2, visit);
196987
+ if (ts21.isObjectLiteralExpression(n2)) adapter = literalProp(n2, "payloadAdapter");
196988
+ ts21.forEachChild(n2, visit);
196789
196989
  };
196790
196990
  visit(initializer);
196791
196991
  return adapter;
@@ -198382,7 +198582,7 @@ __export(gen_native_config_exports, {
198382
198582
  import { existsSync as existsSync82, mkdirSync as mkdirSync35, readFileSync as readFileSync91, readdirSync as readdirSync41, rmSync as rmSync24, statSync as statSync25, writeFileSync as writeFileSync35 } from "node:fs";
198383
198583
  import { dirname as dirname47, join as join81 } from "node:path";
198384
198584
  import { fileURLToPath as fileURLToPath31 } from "node:url";
198385
- import ts20 from "typescript";
198585
+ import ts22 from "typescript";
198386
198586
  function withoutComments(src) {
198387
198587
  let out2 = "";
198388
198588
  for (let i2 = 0; i2 < src.length; ) {
@@ -198437,48 +198637,48 @@ function parseStringArray(configTs, field) {
198437
198637
  }
198438
198638
  function legacyImportSourceKinds(configTs) {
198439
198639
  if (!configTs.includes("legacyImport")) return [];
198440
- const file2 = ts20.createSourceFile("config.ts", configTs, ts20.ScriptTarget.Latest, false, ts20.ScriptKind.TS);
198640
+ const file2 = ts22.createSourceFile("config.ts", configTs, ts22.ScriptTarget.Latest, false, ts22.ScriptKind.TS);
198441
198641
  const kinds = /* @__PURE__ */ new Set();
198442
- const nameOf2 = (p2) => (ts20.isPropertyAssignment(p2) || ts20.isShorthandPropertyAssignment(p2)) && (ts20.isIdentifier(p2.name) || ts20.isStringLiteral(p2.name)) ? p2.name.text : void 0;
198642
+ const nameOf2 = (p2) => (ts22.isPropertyAssignment(p2) || ts22.isShorthandPropertyAssignment(p2)) && (ts22.isIdentifier(p2.name) || ts22.isStringLiteral(p2.name)) ? p2.name.text : void 0;
198443
198643
  const consts = /* @__PURE__ */ new Map();
198444
198644
  const collect2 = (node4) => {
198445
- if (ts20.isVariableDeclaration(node4) && ts20.isIdentifier(node4.name) && node4.initializer) consts.set(node4.name.text, node4.initializer);
198446
- ts20.forEachChild(node4, collect2);
198645
+ if (ts22.isVariableDeclaration(node4) && ts22.isIdentifier(node4.name) && node4.initializer) consts.set(node4.name.text, node4.initializer);
198646
+ ts22.forEachChild(node4, collect2);
198447
198647
  };
198448
198648
  collect2(file2);
198449
198649
  const resolve141 = (e2, depth = 0) => {
198450
- while (e2 && (ts20.isAsExpression(e2) || ts20.isSatisfiesExpression(e2) || ts20.isParenthesizedExpression(e2))) e2 = e2.expression;
198451
- return e2 && ts20.isIdentifier(e2) && depth < 8 ? resolve141(consts.get(e2.text), depth + 1) : e2;
198650
+ while (e2 && (ts22.isAsExpression(e2) || ts22.isSatisfiesExpression(e2) || ts22.isParenthesizedExpression(e2))) e2 = e2.expression;
198651
+ return e2 && ts22.isIdentifier(e2) && depth < 8 ? resolve141(consts.get(e2.text), depth + 1) : e2;
198452
198652
  };
198453
- const valueOf2 = (p2) => !p2 ? void 0 : ts20.isPropertyAssignment(p2) ? resolve141(p2.initializer) : ts20.isShorthandPropertyAssignment(p2) ? resolve141(p2.name) : void 0;
198653
+ const valueOf2 = (p2) => !p2 ? void 0 : ts22.isPropertyAssignment(p2) ? resolve141(p2.initializer) : ts22.isShorthandPropertyAssignment(p2) ? resolve141(p2.name) : void 0;
198454
198654
  const props2 = (o2, depth = 0) => o2.properties.flatMap((p2) => {
198455
- if (!ts20.isSpreadAssignment(p2)) return [p2];
198655
+ if (!ts22.isSpreadAssignment(p2)) return [p2];
198456
198656
  const inner = resolve141(p2.expression);
198457
- return inner && ts20.isObjectLiteralExpression(inner) && depth < 8 ? props2(inner, depth + 1) : [];
198657
+ return inner && ts22.isObjectLiteralExpression(inner) && depth < 8 ? props2(inner, depth + 1) : [];
198458
198658
  });
198459
198659
  const prop2 = (o2, name) => props2(o2).filter((p2) => nameOf2(p2) === name).pop();
198460
198660
  const visit = (node4) => {
198461
- if ((ts20.isPropertyAssignment(node4) || ts20.isShorthandPropertyAssignment(node4)) && nameOf2(node4) === "legacyImport") {
198661
+ if ((ts22.isPropertyAssignment(node4) || ts22.isShorthandPropertyAssignment(node4)) && nameOf2(node4) === "legacyImport") {
198462
198662
  const block = valueOf2(node4);
198463
- if (block && ts20.isObjectLiteralExpression(block)) {
198663
+ if (block && ts22.isObjectLiteralExpression(block)) {
198464
198664
  const sources = valueOf2(prop2(block, "sources"));
198465
- if (sources && ts20.isArrayLiteralExpression(sources)) {
198665
+ if (sources && ts22.isArrayLiteralExpression(sources)) {
198466
198666
  const flat2 = (els, depth = 0) => els.flatMap((x2) => {
198467
- if (!ts20.isSpreadElement(x2)) return [x2];
198667
+ if (!ts22.isSpreadElement(x2)) return [x2];
198468
198668
  const arr7 = resolve141(x2.expression);
198469
- return arr7 && ts20.isArrayLiteralExpression(arr7) && depth < 8 ? flat2(arr7.elements, depth + 1) : [];
198669
+ return arr7 && ts22.isArrayLiteralExpression(arr7) && depth < 8 ? flat2(arr7.elements, depth + 1) : [];
198470
198670
  });
198471
198671
  for (const raw of flat2(sources.elements)) {
198472
198672
  const el2 = resolve141(raw);
198473
- if (!el2 || !ts20.isObjectLiteralExpression(el2)) continue;
198673
+ if (!el2 || !ts22.isObjectLiteralExpression(el2)) continue;
198474
198674
  const kind = valueOf2(prop2(el2, "kind"));
198475
- if (kind && ts20.isStringLiteralLike(kind)) kinds.add(kind.text);
198675
+ if (kind && ts22.isStringLiteralLike(kind)) kinds.add(kind.text);
198476
198676
  }
198477
198677
  }
198478
198678
  }
198479
198679
  return;
198480
198680
  }
198481
- ts20.forEachChild(node4, visit);
198681
+ ts22.forEachChild(node4, visit);
198482
198682
  };
198483
198683
  visit(file2);
198484
198684
  return [...kinds].sort();
@@ -199206,18 +199406,18 @@ function base44BindingInfo(binding2) {
199206
199406
  }
199207
199407
  function parseAdsConfig(configTs) {
199208
199408
  if (!/\bads\b/.test(configTs)) return void 0;
199209
- const file2 = ts20.createSourceFile("config.ts", configTs, ts20.ScriptTarget.Latest, false, ts20.ScriptKind.TS);
199409
+ const file2 = ts22.createSourceFile("config.ts", configTs, ts22.ScriptTarget.Latest, false, ts22.ScriptKind.TS);
199210
199410
  let found;
199211
199411
  const visit = (node4) => {
199212
- if (ts20.isPropertyAssignment(node4) && (ts20.isIdentifier(node4.name) || ts20.isStringLiteral(node4.name)) && node4.name.text === "ads" && ts20.isObjectLiteralExpression(node4.initializer)) {
199412
+ if (ts22.isPropertyAssignment(node4) && (ts22.isIdentifier(node4.name) || ts22.isStringLiteral(node4.name)) && node4.name.text === "ads" && ts22.isObjectLiteralExpression(node4.initializer)) {
199213
199413
  const out2 = {};
199214
199414
  for (const p2 of node4.initializer.properties) {
199215
- if (ts20.isPropertyAssignment(p2) && ts20.isIdentifier(p2.name) && ts20.isStringLiteralLike(p2.initializer) && (p2.name.text === "iosAppId" || p2.name.text === "androidAppId")) out2[p2.name.text] = p2.initializer.text;
199415
+ if (ts22.isPropertyAssignment(p2) && ts22.isIdentifier(p2.name) && ts22.isStringLiteralLike(p2.initializer) && (p2.name.text === "iosAppId" || p2.name.text === "androidAppId")) out2[p2.name.text] = p2.initializer.text;
199216
199416
  }
199217
199417
  found = out2;
199218
199418
  return;
199219
199419
  }
199220
- ts20.forEachChild(node4, visit);
199420
+ ts22.forEachChild(node4, visit);
199221
199421
  };
199222
199422
  visit(file2);
199223
199423
  return found;
@@ -201433,7 +201633,7 @@ __export(account_screens_lint_exports, {
201433
201633
  staticNavTargets: () => staticNavTargets
201434
201634
  });
201435
201635
  import { createHash as createHash39 } from "node:crypto";
201436
- import ts21 from "typescript";
201636
+ import ts23 from "typescript";
201437
201637
  function memberSignInIn(bundleJs) {
201438
201638
  if (![...MEMBER_SIGN_IN_VERBS, `.wix.${HOSTED_SIGN_IN_VERB}`, WIX_PLATFORM_SIGN_IN_ID].some((v2) => bundleJs.includes(v2)) && !AUTH_SIGN_IN_GATE.test(bundleJs)) return null;
201439
201639
  const key4 = createHash39("sha1").update(bundleJs).digest("hex");
@@ -201458,21 +201658,21 @@ function parseMemberSignIn(bundleJs) {
201458
201658
  return parts.length === 3 && parts[1] === "wix" && verbs.has(parts[2]);
201459
201659
  };
201460
201660
  const isAuthSignInCall = (node4) => {
201461
- if (!ts21.isCallExpression(node4) || !ts21.isPropertyAccessExpression(node4.expression)) return false;
201661
+ if (!ts23.isCallExpression(node4) || !ts23.isPropertyAccessExpression(node4.expression)) return false;
201462
201662
  const callee = node4.expression;
201463
201663
  if (callee.name.text !== HOSTED_SIGN_IN_VERB) return false;
201464
201664
  const owner = callee.expression;
201465
- return ts21.isIdentifier(owner) && owner.text === "auth" || ts21.isPropertyAccessExpression(owner) && owner.name.text === "auth";
201665
+ return ts23.isIdentifier(owner) && owner.text === "auth" || ts23.isPropertyAccessExpression(owner) && owner.name.text === "auth";
201466
201666
  };
201467
- const file2 = ts21.createSourceFile("bundle.js", bundleJs, ts21.ScriptTarget.Latest, false, ts21.ScriptKind.JS);
201667
+ const file2 = ts23.createSourceFile("bundle.js", bundleJs, ts23.ScriptTarget.Latest, false, ts23.ScriptKind.JS);
201468
201668
  let found = null;
201469
201669
  const visit = (node4) => {
201470
201670
  if (found) return;
201471
- if ((ts21.isStringLiteral(node4) || ts21.isNoSubstitutionTemplateLiteral(node4)) && isVerbId(node4.text)) {
201671
+ if ((ts23.isStringLiteral(node4) || ts23.isNoSubstitutionTemplateLiteral(node4)) && isVerbId(node4.text)) {
201472
201672
  found = `"${node4.text}"`;
201473
201673
  return;
201474
201674
  }
201475
- if (ts21.isTemplateExpression(node4)) {
201675
+ if (ts23.isTemplateExpression(node4)) {
201476
201676
  const tail = node4.templateSpans[node4.templateSpans.length - 1]?.literal.text ?? "";
201477
201677
  if (isVerbTail(tail)) {
201478
201678
  found = `\`\u2026${tail}\``;
@@ -201483,7 +201683,7 @@ function parseMemberSignIn(bundleJs) {
201483
201683
  found = "auth.signIn()";
201484
201684
  return;
201485
201685
  }
201486
- ts21.forEachChild(node4, visit);
201686
+ ts23.forEachChild(node4, visit);
201487
201687
  };
201488
201688
  visit(file2);
201489
201689
  return found;
@@ -206043,12 +206243,12 @@ var init_mobile_ux_lint = __esm({
206043
206243
  // src/ads-config-edit.ts
206044
206244
  import { readFileSync as readFileSync104 } from "node:fs";
206045
206245
  import { basename as basename25 } from "node:path";
206046
- import ts22 from "typescript";
206246
+ import ts24 from "typescript";
206047
206247
  function objectProp(literal5, name) {
206048
206248
  const found = lookup(literal5, name);
206049
206249
  if (found.kind === "absent") return "absent";
206050
206250
  const value2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206051
- return value2 && ts22.isObjectLiteralExpression(value2) ? value2 : "computed";
206251
+ return value2 && ts24.isObjectLiteralExpression(value2) ? value2 : "computed";
206052
206252
  }
206053
206253
  function upsertString(literal5, file2, key4, value2) {
206054
206254
  const found = lookup(literal5, key4);
@@ -206056,7 +206256,7 @@ function upsertString(literal5, file2, key4, value2) {
206056
206256
  if (found.kind !== "written") return "computed";
206057
206257
  const init = found.node.initializer;
206058
206258
  const current = unwrap(init);
206059
- if (!ts22.isStringLiteralLike(current)) return "computed";
206259
+ if (!ts24.isStringLiteralLike(current)) return "computed";
206060
206260
  if (current.text === value2) return "same";
206061
206261
  return { at: init.getStart(file2), end: init.end, text: JSON.stringify(value2) };
206062
206262
  }
@@ -206064,22 +206264,22 @@ function upsertBoolean(literal5, file2, key4, value2) {
206064
206264
  const found = lookup(literal5, key4);
206065
206265
  if (found.kind === "absent") return appendProperties(literal5, file2, [`${key4}: ${value2},`]);
206066
206266
  const current = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206067
- const written = current?.kind === ts22.SyntaxKind.TrueKeyword ? true : current?.kind === ts22.SyntaxKind.FalseKeyword ? false : void 0;
206267
+ const written = current?.kind === ts24.SyntaxKind.TrueKeyword ? true : current?.kind === ts24.SyntaxKind.FalseKeyword ? false : void 0;
206068
206268
  if (written === void 0) return "computed";
206069
206269
  if (written === value2) return "same";
206070
206270
  return { at: current.getStart(file2), end: current.end, text: String(value2) };
206071
206271
  }
206072
206272
  function parse2(source2, fileName) {
206073
- const kind = fileName.endsWith(".ts") ? ts22.ScriptKind.TS : ts22.ScriptKind.JS;
206074
- const file2 = ts22.createSourceFile(fileName, source2, ts22.ScriptTarget.Latest, true, kind);
206273
+ const kind = fileName.endsWith(".ts") ? ts24.ScriptKind.TS : ts24.ScriptKind.JS;
206274
+ const file2 = ts24.createSourceFile(fileName, source2, ts24.ScriptTarget.Latest, true, kind);
206075
206275
  return { file: file2, app: defineAppLiteral(file2) };
206076
206276
  }
206077
206277
  function capabilitySplice(app2, file2, fileName) {
206078
206278
  const found = lookup(app2, "capabilities");
206079
206279
  if (found.kind === "absent") return appendProperties(app2, file2, [`capabilities: ["ads"],`]);
206080
206280
  const list5 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206081
- if (!list5 || !ts22.isArrayLiteralExpression(list5)) return computed(fileName, "capabilities", `add "ads" to capabilities.`);
206082
- if (list5.elements.some((e2) => ts22.isStringLiteralLike(e2) && e2.text === "ads")) return void 0;
206281
+ if (!list5 || !ts24.isArrayLiteralExpression(list5)) return computed(fileName, "capabilities", `add "ads" to capabilities.`);
206282
+ if (list5.elements.some((e2) => ts24.isStringLiteralLike(e2) && e2.text === "ads")) return void 0;
206083
206283
  const last = list5.elements[list5.elements.length - 1];
206084
206284
  return last ? { at: last.end, end: last.end, text: ', "ads"' } : { at: list5.getStart(file2), end: list5.end, text: '["ads"]' };
206085
206285
  }
@@ -206123,7 +206323,7 @@ function connect(app2, file2, fileName, op) {
206123
206323
  function stringOf(literal5, key4) {
206124
206324
  const found = lookup(literal5, key4);
206125
206325
  const v2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206126
- return v2 && ts22.isStringLiteralLike(v2) ? v2.text : void 0;
206326
+ return v2 && ts24.isStringLiteralLike(v2) ? v2.text : void 0;
206127
206327
  }
206128
206328
  function connectedBlock(app2, fileName) {
206129
206329
  const block = objectProp(app2, "ads");
@@ -206160,8 +206360,8 @@ function slotEdit(block, file2, fileName, op) {
206160
206360
  if (slots === "absent") return [appendProperties(block, file2, [`slots: { ${op.slot}: ${text32} },`])];
206161
206361
  const existing = slots.properties.find((p2) => keyOf(p2) === op.slot);
206162
206362
  if (!existing) return [appendProperties(slots, file2, [`${op.slot}: ${text32},`])];
206163
- const value2 = ts22.isPropertyAssignment(existing) ? unwrap(existing.initializer) : void 0;
206164
- if (!value2 || !ts22.isObjectLiteralExpression(value2)) return computed(fileName, `ads.slots.${op.slot}`, `ads.slots.${op.slot} must be ${text32}.`);
206363
+ const value2 = ts24.isPropertyAssignment(existing) ? unwrap(existing.initializer) : void 0;
206364
+ if (!value2 || !ts24.isObjectLiteralExpression(value2)) return computed(fileName, `ads.slots.${op.slot}`, `ads.slots.${op.slot} must be ${text32}.`);
206165
206365
  const splices = [];
206166
206366
  for (const [key4, id] of units) {
206167
206367
  const r3 = upsertString(value2, file2, key4, id);
@@ -206177,8 +206377,8 @@ function adFreeEdit(block, file2, fileName, op) {
206177
206377
  return op.op === "add" ? [appendProperties(block, file2, [`adFreeEntitlements: [${JSON.stringify(op.productId)}],`])] : [];
206178
206378
  }
206179
206379
  const list5 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206180
- if (!list5 || !ts22.isArrayLiteralExpression(list5)) return computed(fileName, "ads.adFreeEntitlements", "edit the list there.");
206181
- const at2 = list5.elements.find((e2) => ts22.isStringLiteralLike(e2) && e2.text === op.productId);
206380
+ if (!list5 || !ts24.isArrayLiteralExpression(list5)) return computed(fileName, "ads.adFreeEntitlements", "edit the list there.");
206381
+ const at2 = list5.elements.find((e2) => ts24.isStringLiteralLike(e2) && e2.text === op.productId);
206182
206382
  if (op.op === "rm") return at2 ? [removeItem(list5.elements, at2, list5, file2)] : [];
206183
206383
  if (at2) return [];
206184
206384
  const last = list5.elements[list5.elements.length - 1];
@@ -206243,7 +206443,7 @@ function readAdsSource(source2, fileName = "config.ts") {
206243
206443
  if (!app2) return { ...out2, computed: true };
206244
206444
  const caps = lookup(app2, "capabilities");
206245
206445
  const list5 = caps.kind === "written" ? unwrap(caps.node.initializer) : void 0;
206246
- if (list5 && ts22.isArrayLiteralExpression(list5)) out2.capability = list5.elements.some((e2) => ts22.isStringLiteralLike(e2) && e2.text === "ads");
206446
+ if (list5 && ts24.isArrayLiteralExpression(list5)) out2.capability = list5.elements.some((e2) => ts24.isStringLiteralLike(e2) && e2.text === "ads");
206247
206447
  else if (caps.kind === "opaque" || caps.kind === "written") out2.computed = true;
206248
206448
  const block = objectProp(app2, "ads");
206249
206449
  if (block === "absent") return out2;
@@ -206253,8 +206453,8 @@ function readAdsSource(source2, fileName = "config.ts") {
206253
206453
  out2.androidAppId = stringOf(block, "androidAppId");
206254
206454
  const en2 = lookup(block, "enabled");
206255
206455
  const ev = en2.kind === "written" ? unwrap(en2.node.initializer) : void 0;
206256
- if (ev?.kind === ts22.SyntaxKind.TrueKeyword) out2.enabled = true;
206257
- else if (ev?.kind === ts22.SyntaxKind.FalseKeyword) out2.enabled = false;
206456
+ if (ev?.kind === ts24.SyntaxKind.TrueKeyword) out2.enabled = true;
206457
+ else if (ev?.kind === ts24.SyntaxKind.FalseKeyword) out2.enabled = false;
206258
206458
  const slots = objectProp(block, "slots");
206259
206459
  if (slots === "computed") out2.computed = true;
206260
206460
  else if (slots !== "absent") {
@@ -206264,8 +206464,8 @@ function readAdsSource(source2, fileName = "config.ts") {
206264
206464
  out2.computed = true;
206265
206465
  continue;
206266
206466
  }
206267
- const v2 = ts22.isPropertyAssignment(p2) ? unwrap(p2.initializer) : void 0;
206268
- if (!v2 || !ts22.isObjectLiteralExpression(v2)) {
206467
+ const v2 = ts24.isPropertyAssignment(p2) ? unwrap(p2.initializer) : void 0;
206468
+ if (!v2 || !ts24.isObjectLiteralExpression(v2)) {
206269
206469
  out2.computed = true;
206270
206470
  continue;
206271
206471
  }
@@ -206276,7 +206476,7 @@ function readAdsSource(source2, fileName = "config.ts") {
206276
206476
  }
206277
206477
  const free = lookup(block, "adFreeEntitlements");
206278
206478
  const fv = free.kind === "written" ? unwrap(free.node.initializer) : void 0;
206279
- if (fv && ts22.isArrayLiteralExpression(fv)) out2.adFreeEntitlements = fv.elements.filter(ts22.isStringLiteralLike).map((e2) => e2.text);
206479
+ if (fv && ts24.isArrayLiteralExpression(fv)) out2.adFreeEntitlements = fv.elements.filter(ts24.isStringLiteralLike).map((e2) => e2.text);
206280
206480
  else if (free.kind !== "absent") out2.computed = true;
206281
206481
  return out2;
206282
206482
  }
@@ -206304,7 +206504,7 @@ var init_ads_config_edit = __esm({
206304
206504
  SLOT_NAME = /^[A-Za-z][A-Za-z0-9_]{0,63}$/;
206305
206505
  PRODUCT_ID = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;
206306
206506
  fail6 = (code3, error, instruction) => ({ ok: false, code: code3, error, ...instruction ? { instruction } : {} });
206307
- keyOf = (p2) => p2.name && (ts22.isIdentifier(p2.name) || ts22.isStringLiteral(p2.name)) ? p2.name.text : void 0;
206507
+ keyOf = (p2) => p2.name && (ts24.isIdentifier(p2.name) || ts24.isStringLiteral(p2.name)) ? p2.name.text : void 0;
206308
206508
  computed = (fileName, what, wanted) => fail6("ads_config_computed", `${fileName} computes ${what}, so it was not edited.`, `Edit ${fileName} by hand: ${wanted}`);
206309
206509
  }
206310
206510
  });
@@ -207163,11 +207363,11 @@ var init_graph = __esm({
207163
207363
  });
207164
207364
 
207165
207365
  // src/one-app/header-badges.ts
207166
- import ts23 from "typescript";
207366
+ import ts25 from "typescript";
207167
207367
  function bundleNameOf(property3) {
207168
- const bundle = property3 && ts23.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
207368
+ const bundle = property3 && ts25.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
207169
207369
  const url = bundle && findProperty(bundle, "url")?.initializer;
207170
- return url && ts23.isStringLiteralLike(url) ? url.text.split("/").filter(Boolean).pop() : void 0;
207370
+ return url && ts25.isStringLiteralLike(url) ? url.text.split("/").filter(Boolean).pop() : void 0;
207171
207371
  }
207172
207372
  function counterOfValuePath(valuePath) {
207173
207373
  return HEADER_BADGE_COUNTERS.find((counter) => headerBadgeValuePath(counter) === valuePath);
@@ -207248,68 +207448,68 @@ function headerBadgesBundleRef(bundle = HEADER_BADGES_BUNDLE) {
207248
207448
  };
207249
207449
  }
207250
207450
  function propName8(node4) {
207251
- return ts23.isIdentifier(node4) || ts23.isStringLiteral(node4) ? node4.text : void 0;
207451
+ return ts25.isIdentifier(node4) || ts25.isStringLiteral(node4) ? node4.text : void 0;
207252
207452
  }
207253
207453
  function findProperty(object16, name) {
207254
- return object16.properties.find((property3) => ts23.isPropertyAssignment(property3) && propName8(property3.name) === name);
207454
+ return object16.properties.find((property3) => ts25.isPropertyAssignment(property3) && propName8(property3.name) === name);
207255
207455
  }
207256
207456
  function appObject2(source2) {
207257
- const exported = source2.statements.find(ts23.isExportAssignment);
207457
+ const exported = source2.statements.find(ts25.isExportAssignment);
207258
207458
  let expression = exported?.expression;
207259
- while (expression && (ts23.isParenthesizedExpression(expression) || ts23.isAsExpression(expression) || ts23.isSatisfiesExpression(expression))) expression = expression.expression;
207260
- if (expression && ts23.isIdentifier(expression)) {
207459
+ while (expression && (ts25.isParenthesizedExpression(expression) || ts25.isAsExpression(expression) || ts25.isSatisfiesExpression(expression))) expression = expression.expression;
207460
+ if (expression && ts25.isIdentifier(expression)) {
207261
207461
  const name = expression.text;
207262
207462
  for (const statement of source2.statements) {
207263
- if (!ts23.isVariableStatement(statement)) continue;
207264
- const declaration2 = statement.declarationList.declarations.find((item2) => ts23.isIdentifier(item2.name) && item2.name.text === name);
207463
+ if (!ts25.isVariableStatement(statement)) continue;
207464
+ const declaration2 = statement.declarationList.declarations.find((item2) => ts25.isIdentifier(item2.name) && item2.name.text === name);
207265
207465
  if (declaration2?.initializer) {
207266
207466
  expression = declaration2.initializer;
207267
207467
  break;
207268
207468
  }
207269
207469
  }
207270
207470
  }
207271
- const call = expression && ts23.isCallExpression(expression) ? expression : void 0;
207471
+ const call = expression && ts25.isCallExpression(expression) ? expression : void 0;
207272
207472
  const argument = call?.arguments[0];
207273
- return argument && ts23.isObjectLiteralExpression(argument) ? argument : void 0;
207473
+ return argument && ts25.isObjectLiteralExpression(argument) ? argument : void 0;
207274
207474
  }
207275
207475
  function appMayBeOverridden(app2) {
207276
207476
  const literal5 = findProperty(app2, "app");
207277
207477
  const after = literal5 ? app2.properties.slice(app2.properties.indexOf(literal5) + 1) : app2.properties;
207278
- return after.some((property3) => ts23.isSpreadAssignment(property3) || ts23.isComputedPropertyName(property3.name) || propName8(property3.name) === "app");
207478
+ return after.some((property3) => ts25.isSpreadAssignment(property3) || ts25.isComputedPropertyName(property3.name) || propName8(property3.name) === "app");
207279
207479
  }
207280
207480
  function declaresNewApp(configText) {
207281
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207481
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207282
207482
  const app2 = appObject2(source2);
207283
207483
  const block = app2 && findProperty(app2, "app");
207284
- const declared = block && ts23.isObjectLiteralExpression(block.initializer) ? findProperty(block.initializer, "newApp") : void 0;
207285
- return declared?.initializer.kind === ts23.SyntaxKind.TrueKeyword && !appMayBeOverridden(app2);
207484
+ const declared = block && ts25.isObjectLiteralExpression(block.initializer) ? findProperty(block.initializer, "newApp") : void 0;
207485
+ return declared?.initializer.kind === ts25.SyntaxKind.TrueKeyword && !appMayBeOverridden(app2);
207286
207486
  }
207287
207487
  function avatarNavWorkerOf(configText) {
207288
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207488
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207289
207489
  const app2 = appObject2(source2);
207290
207490
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
207291
207491
  const services2 = app2 && findProperty(app2, "app")?.initializer;
207292
- const named5 = bundleNameOf((navigation && ts23.isObjectLiteralExpression(navigation) ? findProperty(navigation, "navLogicBundle") : void 0) ?? (services2 && ts23.isObjectLiteralExpression(services2) ? findProperty(services2, "logicBundle") : void 0));
207492
+ const named5 = bundleNameOf((navigation && ts25.isObjectLiteralExpression(navigation) ? findProperty(navigation, "navLogicBundle") : void 0) ?? (services2 && ts25.isObjectLiteralExpression(services2) ? findProperty(services2, "logicBundle") : void 0));
207293
207493
  return named5 !== void 0 && AVATAR_WORKER_BUNDLES.includes(named5) ? named5 : REFERENCE_NAV_BUNDLE;
207294
207494
  }
207295
207495
  function servesMemberAvatar(workerText) {
207296
- const source2 = ts23.createSourceFile("index.ts", workerText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207496
+ const source2 = ts25.createSourceFile("index.ts", workerText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207297
207497
  let found = false;
207298
207498
  const visit = (node4) => {
207299
207499
  if (found) return;
207300
- if (ts23.isImportDeclaration(node4) && ts23.isStringLiteralLike(node4.moduleSpecifier) && node4.moduleSpecifier.text === "../_shared/nav-member-avatar.js") found = true;
207301
- else if (ts23.isCallExpression(node4) && ts23.isIdentifier(node4.expression) && node4.expression.text === "memberAvatar") found = true;
207302
- else ts23.forEachChild(node4, visit);
207500
+ if (ts25.isImportDeclaration(node4) && ts25.isStringLiteralLike(node4.moduleSpecifier) && node4.moduleSpecifier.text === "../_shared/nav-member-avatar.js") found = true;
207501
+ else if (ts25.isCallExpression(node4) && ts25.isIdentifier(node4.expression) && node4.expression.text === "memberAvatar") found = true;
207502
+ else ts25.forEachChild(node4, visit);
207303
207503
  };
207304
207504
  visit(source2);
207305
207505
  return found;
207306
207506
  }
207307
207507
  function declaresVisitorOnly(configText) {
207308
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207508
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207309
207509
  const app2 = appObject2(source2);
207310
207510
  const auth = app2 && findProperty(app2, "auth")?.initializer;
207311
- if (auth && ts23.isIdentifier(auth)) return auth.text === "VISITOR_ONLY_AUTH";
207312
- return !!auth && ts23.isObjectLiteralExpression(auth) && stringOf2(findProperty(auth, "providerId")) === "none";
207511
+ if (auth && ts25.isIdentifier(auth)) return auth.text === "VISITOR_ONLY_AUTH";
207512
+ return !!auth && ts25.isObjectLiteralExpression(auth) && stringOf2(findProperty(auth, "providerId")) === "none";
207313
207513
  }
207314
207514
  function patchConfig(configText, counters, options2 = {}) {
207315
207515
  const avatar = options2.avatar === true;
@@ -207317,16 +207517,16 @@ function patchConfig(configText, counters, options2 = {}) {
207317
207517
  const bundle = headerBadgesBundleRef(avatar ? REFERENCE_NAV_BUNDLE : HEADER_BADGES_BUNDLE);
207318
207518
  const literal5 = (value2, indent2) => JSON.stringify(value2, null, 2).replaceAll("\n", `
207319
207519
  ${indent2}`);
207320
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207520
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207321
207521
  const diagnostics = source2.parseDiagnostics;
207322
207522
  const snippetFor = (indent2) => `${indent2}"topBarDefault": ${literal5(topBar, indent2)},
207323
207523
  ${indent2}"navLogicBundle": ${literal5(bundle, indent2)},`;
207324
207524
  if (diagnostics.length) return { status: "manual", reason: "config.ts could not be parsed", snippet: snippetFor(" ") };
207325
207525
  const app2 = appObject2(source2);
207326
207526
  const navigationProperty = app2 && findProperty(app2, "navigation");
207327
- const navigation = navigationProperty && ts23.isObjectLiteralExpression(navigationProperty.initializer) ? navigationProperty.initializer : void 0;
207527
+ const navigation = navigationProperty && ts25.isObjectLiteralExpression(navigationProperty.initializer) ? navigationProperty.initializer : void 0;
207328
207528
  if (!navigation) return { status: "manual", reason: "config.ts has no literal `navigation: {...}` in its defineApp call", snippet: snippetFor(" ") };
207329
- if (navigation.properties.some((property3) => !ts23.isPropertyAssignment(property3))) {
207529
+ if (navigation.properties.some((property3) => !ts25.isPropertyAssignment(property3))) {
207330
207530
  return { status: "manual", reason: "navigation has spreads or accessors, so it cannot be edited safely", snippet: snippetFor(" ") };
207331
207531
  }
207332
207532
  const first = navigation.properties[0];
@@ -207334,7 +207534,7 @@ ${indent2}"navLogicBundle": ${literal5(bundle, indent2)},`;
207334
207534
  const snippet4 = snippetFor(indent);
207335
207535
  const existingBar = findProperty(navigation, "topBarDefault");
207336
207536
  const appServicesProperty = findProperty(app2, "app");
207337
- const appServices = appServicesProperty && ts23.isObjectLiteralExpression(appServicesProperty.initializer) ? appServicesProperty.initializer : void 0;
207537
+ const appServices = appServicesProperty && ts25.isObjectLiteralExpression(appServicesProperty.initializer) ? appServicesProperty.initializer : void 0;
207338
207538
  const existingBundle = findProperty(navigation, "navLogicBundle") ?? (appServices && findProperty(appServices, "logicBundle"));
207339
207539
  if (!existingBar && !existingBundle) {
207340
207540
  const open6 = navigation.getStart(source2) + 1;
@@ -207354,13 +207554,13 @@ ${snippet4}${configText.slice(open6)}`, snippet: snippet4 };
207354
207554
  return { status: "written", text: `${configText.slice(0, at2)}
207355
207555
  ${indent}"topBarDefault": ${literal5(topBar, indent)},${configText.slice(at2)}`, snippet: snippet4 };
207356
207556
  }
207357
- const bar = ts23.isObjectLiteralExpression(existingBar.initializer) ? existingBar.initializer : void 0;
207557
+ const bar = ts25.isObjectLiteralExpression(existingBar.initializer) ? existingBar.initializer : void 0;
207358
207558
  if (!bar || !existingBundle) return manual(`navigation already has ${[existingBar && "topBarDefault", existingBundle && whichBundle].filter(Boolean).join(" and ")}`);
207359
207559
  const barIndent = " ".repeat(bar.properties[0] ? source2.getLineAndCharacterOfPosition(bar.properties[0].getStart()).character : indent.length + 2);
207360
207560
  const edits = [];
207361
207561
  const actions = findProperty(bar, "actions");
207362
- const actionList = actions && ts23.isArrayLiteralExpression(actions.initializer) ? actions.initializer : void 0;
207363
- const dropped = avatar && actionList ? actionList.elements.filter((element) => ts23.isObjectLiteralExpression(element) && opensAccount(element, tabRoots(navigation))) : [];
207562
+ const actionList = actions && ts25.isArrayLiteralExpression(actions.initializer) ? actions.initializer : void 0;
207563
+ const dropped = avatar && actionList ? actionList.elements.filter((element) => ts25.isObjectLiteralExpression(element) && opensAccount(element, tabRoots(navigation))) : [];
207364
207564
  const kept = actionList ? actionList.elements.filter((element) => !dropped.includes(element)) : [];
207365
207565
  if (dropped.length) {
207366
207566
  edits.push({
@@ -207380,7 +207580,7 @@ ${barIndent}"actions": ${literal5(topBar.actions, barIndent)},` });
207380
207580
  }
207381
207581
  if (avatar) {
207382
207582
  const items = findProperty(bar, "items");
207383
- const list5 = items && ts23.isArrayLiteralExpression(items.initializer) ? items.initializer : void 0;
207583
+ const list5 = items && ts25.isArrayLiteralExpression(items.initializer) ? items.initializer : void 0;
207384
207584
  if (items && !list5) return manual("navigation already has topBarDefault with items that are not a literal list");
207385
207585
  const hasAvatar = !!list5 && listHasAvatar(list5);
207386
207586
  if (!items) edits.push({ at: bar.getStart(source2) + 1, text: `
@@ -207396,32 +207596,32 @@ ${barIndent} ${literal5(PROFILE_AVATAR_ITEM, `${barIndent} `)}${list5.elements
207396
207596
  }
207397
207597
  function tabRoots(navigation) {
207398
207598
  const bar = findProperty(navigation, "tabBar")?.initializer;
207399
- const items = bar && ts23.isObjectLiteralExpression(bar) ? findProperty(bar, "items")?.initializer : void 0;
207400
- if (!items || !ts23.isArrayLiteralExpression(items)) return void 0;
207599
+ const items = bar && ts25.isObjectLiteralExpression(bar) ? findProperty(bar, "items")?.initializer : void 0;
207600
+ if (!items || !ts25.isArrayLiteralExpression(items)) return void 0;
207401
207601
  const roots2 = /* @__PURE__ */ new Map();
207402
207602
  for (const item2 of items.elements) {
207403
- const id = ts23.isObjectLiteralExpression(item2) ? stringOf2(findProperty(item2, "id")) : void 0;
207404
- const screenId = ts23.isObjectLiteralExpression(item2) ? stringOf2(findProperty(item2, "screenId")) : void 0;
207603
+ const id = ts25.isObjectLiteralExpression(item2) ? stringOf2(findProperty(item2, "id")) : void 0;
207604
+ const screenId = ts25.isObjectLiteralExpression(item2) ? stringOf2(findProperty(item2, "screenId")) : void 0;
207405
207605
  if (id && screenId) roots2.set(id, screenId);
207406
207606
  }
207407
207607
  return roots2;
207408
207608
  }
207409
207609
  function opensAccount(action, roots2) {
207410
207610
  const onTap = findProperty(action, "onTap")?.initializer;
207411
- if (!onTap || !ts23.isObjectLiteralExpression(onTap)) return false;
207611
+ if (!onTap || !ts25.isObjectLiteralExpression(onTap)) return false;
207412
207612
  const params = findProperty(onTap, "params")?.initializer;
207413
- const param = (name) => params && ts23.isObjectLiteralExpression(params) ? stringOf2(findProperty(params, name)) : void 0;
207613
+ const param = (name) => params && ts25.isObjectLiteralExpression(params) ? stringOf2(findProperty(params, name)) : void 0;
207414
207614
  const actionId = stringOf2(findProperty(onTap, "actionId"));
207415
207615
  const tab = param("tab");
207416
207616
  return actionId === "himi.open" && param("screenId") === ACCOUNT_SCREEN || actionId === "himi.tab" && tab !== void 0 && roots2?.get(tab) === ACCOUNT_SCREEN;
207417
207617
  }
207418
207618
  function hasProfileAvatar(configText) {
207419
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207619
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207420
207620
  const app2 = appObject2(source2);
207421
207621
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
207422
- const bar = navigation && ts23.isObjectLiteralExpression(navigation) ? findProperty(navigation, "topBarDefault")?.initializer : void 0;
207423
- const items = bar && ts23.isObjectLiteralExpression(bar) ? findProperty(bar, "items")?.initializer : void 0;
207424
- return !!items && ts23.isArrayLiteralExpression(items) && listHasAvatar(items);
207622
+ const bar = navigation && ts25.isObjectLiteralExpression(navigation) ? findProperty(navigation, "topBarDefault")?.initializer : void 0;
207623
+ const items = bar && ts25.isObjectLiteralExpression(bar) ? findProperty(bar, "items")?.initializer : void 0;
207624
+ return !!items && ts25.isArrayLiteralExpression(items) && listHasAvatar(items);
207425
207625
  }
207426
207626
  var HEADER_BADGE_COUNTERS, CONTROL_TERMS, NAV_SERVICE, HEADER_BADGES_BUNDLE, ACCESS_NAV_BUNDLE, REFERENCE_NAV_BUNDLE, NAV_WORKER_BUNDLES, ACCESS_NAV_SERVES, HEADER_BADGE_SPEC, headerBadgeValuePath, BRANDED_RIGHT_ORDER, REFERENCE_NAV_CAPABILITIES, WIX_API_ONLY, squash, PROFILE_AVATAR_ITEM, ACCOUNT_SCREEN, INBOX_SCREEN, CONTROL_DESTINATIONS, AVATAR_WORKER_BUNDLES, listHasAvatar, stringOf2;
207427
207627
  var init_header_badges = __esm({
@@ -207487,33 +207687,33 @@ var init_header_badges = __esm({
207487
207687
  cart: [HEADER_BADGE_SPEC.cart.screenId]
207488
207688
  };
207489
207689
  AVATAR_WORKER_BUNDLES = [ACCESS_NAV_BUNDLE, REFERENCE_NAV_BUNDLE];
207490
- listHasAvatar = (list5) => list5.elements.some((element) => ts23.isObjectLiteralExpression(element) && stringOf2(findProperty(element, "id")) === PROFILE_AVATAR_ITEM.id);
207491
- stringOf2 = (property3) => property3 && ts23.isStringLiteralLike(property3.initializer) ? property3.initializer.text : void 0;
207690
+ listHasAvatar = (list5) => list5.elements.some((element) => ts25.isObjectLiteralExpression(element) && stringOf2(findProperty(element, "id")) === PROFILE_AVATAR_ITEM.id);
207691
+ stringOf2 = (property3) => property3 && ts25.isStringLiteralLike(property3.initializer) ? property3.initializer.text : void 0;
207492
207692
  }
207493
207693
  });
207494
207694
 
207495
207695
  // src/one-app/invite-drawer.ts
207496
207696
  import { createHash as createHash45 } from "node:crypto";
207497
- import ts24 from "typescript";
207697
+ import ts26 from "typescript";
207498
207698
  function drawerOffersInvite(configText, profileHasRow = false) {
207499
- const file2 = ts24.createSourceFile("config.ts", configText, ts24.ScriptTarget.Latest, true, ts24.ScriptKind.TS);
207699
+ const file2 = ts26.createSourceFile("config.ts", configText, ts26.ScriptTarget.Latest, true, ts26.ScriptKind.TS);
207500
207700
  const app2 = appObject2(file2);
207501
207701
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
207502
- if (!navigation || !ts24.isObjectLiteralExpression(navigation)) return false;
207702
+ if (!navigation || !ts26.isObjectLiteralExpression(navigation)) return false;
207503
207703
  const drawer = findProperty(navigation, "drawer")?.initializer;
207504
- const items = drawer && ts24.isObjectLiteralExpression(drawer) ? findProperty(drawer, "items")?.initializer : void 0;
207704
+ const items = drawer && ts26.isObjectLiteralExpression(drawer) ? findProperty(drawer, "items")?.initializer : void 0;
207505
207705
  const linked = findProperty(navigation, "linkableScreens")?.initializer;
207506
207706
  const services2 = app2 && findProperty(app2, "app")?.initializer;
207507
- const worker = bundleNameOf(findProperty(navigation, "navLogicBundle")) ?? (services2 && ts24.isObjectLiteralExpression(services2) ? bundleNameOf(findProperty(services2, "logicBundle")) : void 0);
207508
- if (!worker || !linked || !ts24.isArrayLiteralExpression(linked)) return false;
207707
+ const worker = bundleNameOf(findProperty(navigation, "navLogicBundle")) ?? (services2 && ts26.isObjectLiteralExpression(services2) ? bundleNameOf(findProperty(services2, "logicBundle")) : void 0);
207708
+ if (!worker || !linked || !ts26.isArrayLiteralExpression(linked)) return false;
207509
207709
  const declared = flowDeclared(navigation);
207510
207710
  if (profileHasRow) return declared;
207511
- if (!items || !ts24.isArrayLiteralExpression(items)) return false;
207512
- return declared && items.elements.some((row2) => ts24.isObjectLiteralExpression(row2) && literal3(findProperty(row2, "screenId")?.initializer) === INVITE_SCREEN && literal3(findProperty(row2, "hiddenPath")?.initializer) === INVITE_ACTION.hiddenPath);
207711
+ if (!items || !ts26.isArrayLiteralExpression(items)) return false;
207712
+ return declared && items.elements.some((row2) => ts26.isObjectLiteralExpression(row2) && literal3(findProperty(row2, "screenId")?.initializer) === INVITE_SCREEN && literal3(findProperty(row2, "hiddenPath")?.initializer) === INVITE_ACTION.hiddenPath);
207513
207713
  }
207514
207714
  function flowDeclared(navigation) {
207515
207715
  const linkValue = findProperty(navigation, "linkableScreens")?.initializer;
207516
- return !!linkValue && ts24.isArrayLiteralExpression(linkValue) && linkValue.elements.some((item2) => ts24.isObjectLiteralExpression(item2) && literal3(findProperty(item2, "screenId")?.initializer) === INVITE_SCREEN);
207716
+ return !!linkValue && ts26.isArrayLiteralExpression(linkValue) && linkValue.elements.some((item2) => ts26.isObjectLiteralExpression(item2) && literal3(findProperty(item2, "screenId")?.initializer) === INVITE_SCREEN);
207517
207717
  }
207518
207718
  function withTranslationRow(catalogText2, row2, translation) {
207519
207719
  let catalog4;
@@ -207549,7 +207749,7 @@ var init_invite_drawer = __esm({
207549
207749
  INVITE_ACTION = { icon: "share", hiddenPath: "$service:invite.hidden" };
207550
207750
  INVITE_LABEL = "Invite";
207551
207751
  obj4 = (v2) => v2 && typeof v2 === "object" && !Array.isArray(v2) ? v2 : {};
207552
- literal3 = (node4) => node4 && ts24.isStringLiteralLike(node4) ? node4.text : void 0;
207752
+ literal3 = (node4) => node4 && ts26.isStringLiteralLike(node4) ? node4.text : void 0;
207553
207753
  INVITE_PROFILE_ROW = { id: INVITE_DRAWER_ID, screenId: INVITE_SCREEN, label: INVITE_LABEL, icon: INVITE_ACTION.icon, hiddenPath: INVITE_ACTION.hiddenPath.replace("$service:", "$app:") };
207554
207754
  INVITE_TRANSLATIONS = { he: "\u05D4\u05D6\u05DE\u05E0\u05EA \u05D7\u05D1\u05E8\u05D9\u05DD", it: "Invita", es: "Invitar", fr: "Inviter", de: "Einladen", pt: "Convidar" };
207555
207755
  }
@@ -207558,15 +207758,15 @@ var init_invite_drawer = __esm({
207558
207758
  // src/one-app/side-menu.ts
207559
207759
  import { existsSync as existsSync96, readFileSync as readFileSync108 } from "node:fs";
207560
207760
  import { join as join97 } from "node:path";
207561
- import ts25 from "typescript";
207761
+ import ts27 from "typescript";
207562
207762
  function drawerOf(file2) {
207563
207763
  const app2 = appObject2(file2);
207564
207764
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
207565
- if (!navigation || !ts25.isObjectLiteralExpression(navigation)) return void 0;
207765
+ if (!navigation || !ts27.isObjectLiteralExpression(navigation)) return void 0;
207566
207766
  const drawer = findProperty(navigation, "drawer")?.initializer;
207567
- if (!drawer || !ts25.isObjectLiteralExpression(drawer)) return { navigation };
207767
+ if (!drawer || !ts27.isObjectLiteralExpression(drawer)) return { navigation };
207568
207768
  const items = findProperty(drawer, "items")?.initializer;
207569
- return { navigation, drawer, ...items && ts25.isArrayLiteralExpression(items) ? { items } : {} };
207769
+ return { navigation, drawer, ...items && ts27.isArrayLiteralExpression(items) ? { items } : {} };
207570
207770
  }
207571
207771
  function accountDescriptor(dir, app2, dev = readAppSources(dir).dev) {
207572
207772
  const route = app2.routes.find((candidate) => candidate.label === ACCOUNT_SCREEN && candidate.kind === "screen");
@@ -207658,11 +207858,11 @@ function removeProfileInviteRow(dir, dryRun = false) {
207658
207858
  function memberOnlyScreens(navigation) {
207659
207859
  const list5 = findProperty(navigation, "linkableScreens")?.initializer;
207660
207860
  const out2 = /* @__PURE__ */ new Set();
207661
- if (!list5 || !ts25.isArrayLiteralExpression(list5)) return out2;
207861
+ if (!list5 || !ts27.isArrayLiteralExpression(list5)) return out2;
207662
207862
  for (const entry of list5.elements) {
207663
- if (!ts25.isObjectLiteralExpression(entry)) continue;
207863
+ if (!ts27.isObjectLiteralExpression(entry)) continue;
207664
207864
  const screenId = stringOf3(findProperty(entry, "screenId")?.initializer);
207665
- if (screenId && findProperty(entry, "isPublic")?.initializer.kind === ts25.SyntaxKind.FalseKeyword && !GUEST_USABLE.has(screenId)) out2.add(screenId);
207865
+ if (screenId && findProperty(entry, "isPublic")?.initializer.kind === ts27.SyntaxKind.FalseKeyword && !GUEST_USABLE.has(screenId)) out2.add(screenId);
207666
207866
  }
207667
207867
  return out2;
207668
207868
  }
@@ -207670,7 +207870,7 @@ function rowsOf(items) {
207670
207870
  const rows = [];
207671
207871
  const unreadable = [];
207672
207872
  for (const element of items.elements) {
207673
- if (!ts25.isObjectLiteralExpression(element)) {
207873
+ if (!ts27.isObjectLiteralExpression(element)) {
207674
207874
  unreadable.push(element.getText().slice(0, 40));
207675
207875
  continue;
207676
207876
  }
@@ -207694,11 +207894,11 @@ function retireSideMenu(dir, dryRun = false, extraRows = []) {
207694
207894
  const configPath = join97(dir, "config.ts");
207695
207895
  if (!existsSync96(configPath)) return kept("there is no config.ts");
207696
207896
  const configText = readFileSync108(configPath, "utf8");
207697
- const file2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207897
+ const file2 = ts27.createSourceFile("config.ts", configText, ts27.ScriptTarget.Latest, true, ts27.ScriptKind.TS);
207698
207898
  const found = drawerOf(file2);
207699
207899
  if (!found) return kept("config.ts has no literal `navigation: {...}` in its defineApp call");
207700
207900
  if (found.drawer && !found.items) return kept("navigation.drawer.items is not an array literal, so it cannot be edited safely");
207701
- if (found.drawer?.properties.some((property3) => !ts25.isPropertyAssignment(property3) || !["items", "header"].includes(ts25.isIdentifier(property3.name) || ts25.isStringLiteral(property3.name) ? property3.name.text : ""))) {
207901
+ if (found.drawer?.properties.some((property3) => !ts27.isPropertyAssignment(property3) || !["items", "header"].includes(ts27.isIdentifier(property3.name) || ts27.isStringLiteral(property3.name) ? property3.name.text : ""))) {
207702
207902
  return kept("navigation.drawer holds more than a list of rows and a header, so it is not only a side menu");
207703
207903
  }
207704
207904
  if (stringOf3(findProperty(found.navigation, "navKind")?.initializer) === "drawer") return kept(`navKind is "drawer": the side menu is this app's navigation`);
@@ -207750,7 +207950,7 @@ var init_side_menu = __esm({
207750
207950
  obj5 = (value2) => value2 && typeof value2 === "object" && !Array.isArray(value2) ? value2 : {};
207751
207951
  PAGES_HEADING_ID = "himi_account.pages_heading";
207752
207952
  PAGE_ROW_PREFIX = "himi_account.page_";
207753
- stringOf3 = (node4) => node4 && ts25.isStringLiteralLike(node4) ? node4.text : void 0;
207953
+ stringOf3 = (node4) => node4 && ts27.isStringLiteralLike(node4) ? node4.text : void 0;
207754
207954
  GUEST_USABLE = /* @__PURE__ */ new Set(["himi_saved", "himi_bookings", INVITE_PROFILE_ROW.screenId]);
207755
207955
  }
207756
207956
  });
@@ -208785,7 +208985,7 @@ __export(validate_identity_exports, {
208785
208985
  });
208786
208986
  import { createHash as createHash48 } from "node:crypto";
208787
208987
  import { existsSync as existsSync99, readFileSync as readFileSync111, writeFileSync as writeFileSync44 } from "node:fs";
208788
- import ts26 from "typescript";
208988
+ import ts28 from "typescript";
208789
208989
  import { join as join100, resolve as resolve69 } from "node:path";
208790
208990
  function ricosTexts(documentJson) {
208791
208991
  let root;
@@ -208841,23 +209041,23 @@ function literalSlugFindings(slug, displayName3, screens, authoredText = []) {
208841
209041
  return findings;
208842
209042
  }
208843
209043
  function appNameLiteral(configSource) {
208844
- const file2 = ts26.createSourceFile("config.ts", configSource, ts26.ScriptTarget.Latest, true, ts26.ScriptKind.TS);
209044
+ const file2 = ts28.createSourceFile("config.ts", configSource, ts28.ScriptTarget.Latest, true, ts28.ScriptKind.TS);
208845
209045
  let found;
208846
209046
  const visit = (node4) => {
208847
209047
  if (found) return;
208848
- if (ts26.isCallExpression(node4) && ts26.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
209048
+ if (ts28.isCallExpression(node4) && ts28.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
208849
209049
  const arg2 = node4.arguments[0];
208850
- if (arg2 && ts26.isObjectLiteralExpression(arg2)) {
209050
+ if (arg2 && ts28.isObjectLiteralExpression(arg2)) {
208851
209051
  for (const property3 of arg2.properties) {
208852
- const key4 = ts26.isPropertyAssignment(property3) && (ts26.isIdentifier(property3.name) || ts26.isStringLiteral(property3.name)) ? property3.name.text : void 0;
208853
- if (key4 === "name" && ts26.isPropertyAssignment(property3) && ts26.isStringLiteralLike(property3.initializer)) {
209052
+ const key4 = ts28.isPropertyAssignment(property3) && (ts28.isIdentifier(property3.name) || ts28.isStringLiteral(property3.name)) ? property3.name.text : void 0;
209053
+ if (key4 === "name" && ts28.isPropertyAssignment(property3) && ts28.isStringLiteralLike(property3.initializer)) {
208854
209054
  found = { value: property3.initializer.text, start: property3.initializer.getStart(file2), end: property3.initializer.getEnd() };
208855
209055
  }
208856
209056
  }
208857
209057
  }
208858
209058
  return;
208859
209059
  }
208860
- ts26.forEachChild(node4, visit);
209060
+ ts28.forEachChild(node4, visit);
208861
209061
  };
208862
209062
  visit(file2);
208863
209063
  return found;
@@ -208999,7 +209199,7 @@ var init_validate_identity = __esm({
208999
209199
  // src/one-app/invite-flow.ts
209000
209200
  import { existsSync as existsSync100, lstatSync as lstatSync29, readFileSync as readFileSync112, readdirSync as readdirSync43, rmdirSync as rmdirSync4, rmSync as rmSync28 } from "node:fs";
209001
209201
  import { join as join101 } from "node:path";
209002
- import ts27 from "typescript";
209202
+ import ts29 from "typescript";
209003
209203
  function assertNoSymlink(dir, rel2) {
209004
209204
  let current = dir;
209005
209205
  for (const part7 of rel2.split("/")) {
@@ -209062,33 +209262,33 @@ function navBundle(file2) {
209062
209262
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
209063
209263
  const services2 = app2 && findProperty(app2, "app")?.initializer;
209064
209264
  const holders = [
209065
- navigation && ts27.isObjectLiteralExpression(navigation) ? findProperty(navigation, "navLogicBundle") : void 0,
209066
- services2 && ts27.isObjectLiteralExpression(services2) ? findProperty(services2, "logicBundle") : void 0
209265
+ navigation && ts29.isObjectLiteralExpression(navigation) ? findProperty(navigation, "navLogicBundle") : void 0,
209266
+ services2 && ts29.isObjectLiteralExpression(services2) ? findProperty(services2, "logicBundle") : void 0
209067
209267
  ];
209068
209268
  for (const property3 of holders) {
209069
209269
  const name = bundleNameOf(property3);
209070
209270
  if (!property3 || !name) continue;
209071
- const bundle = ts27.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
209271
+ const bundle = ts29.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
209072
209272
  const declared = bundle && findProperty(bundle, "declaredCapabilities")?.initializer;
209073
- return { name, capabilities: declared && ts27.isArrayLiteralExpression(declared) ? declared : void 0 };
209273
+ return { name, capabilities: declared && ts29.isArrayLiteralExpression(declared) ? declared : void 0 };
209074
209274
  }
209075
209275
  return void 0;
209076
209276
  }
209077
209277
  function literalOf(node4) {
209078
- if (ts27.isStringLiteralLike(node4)) return node4.text;
209079
- if (node4.kind === ts27.SyntaxKind.TrueKeyword) return true;
209080
- if (node4.kind === ts27.SyntaxKind.FalseKeyword) return false;
209278
+ if (ts29.isStringLiteralLike(node4)) return node4.text;
209279
+ if (node4.kind === ts29.SyntaxKind.TrueKeyword) return true;
209280
+ if (node4.kind === ts29.SyntaxKind.FalseKeyword) return false;
209081
209281
  return Symbol.for("not-literal");
209082
209282
  }
209083
209283
  function withoutDrawerInviteRow(configText) {
209084
- const file2 = ts27.createSourceFile("config.ts", configText, ts27.ScriptTarget.Latest, true, ts27.ScriptKind.TS);
209284
+ const file2 = ts29.createSourceFile("config.ts", configText, ts29.ScriptTarget.Latest, true, ts29.ScriptKind.TS);
209085
209285
  const app2 = appObject2(file2);
209086
209286
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
209087
- const drawer = navigation && ts27.isObjectLiteralExpression(navigation) ? findProperty(navigation, "drawer")?.initializer : void 0;
209088
- const items = drawer && ts27.isObjectLiteralExpression(drawer) ? findProperty(drawer, "items")?.initializer : void 0;
209089
- if (!items || !ts27.isArrayLiteralExpression(items)) return void 0;
209287
+ const drawer = navigation && ts29.isObjectLiteralExpression(navigation) ? findProperty(navigation, "drawer")?.initializer : void 0;
209288
+ const items = drawer && ts29.isObjectLiteralExpression(drawer) ? findProperty(drawer, "items")?.initializer : void 0;
209289
+ if (!items || !ts29.isArrayLiteralExpression(items)) return void 0;
209090
209290
  const elements2 = items.elements;
209091
- const at2 = elements2.findIndex((row3) => ts27.isObjectLiteralExpression(row3) && row3.properties.length === Object.keys(DRAWER_ROW).length && row3.properties.every((p2) => ts27.isPropertyAssignment(p2) && (ts27.isIdentifier(p2.name) || ts27.isStringLiteral(p2.name)) && Object.hasOwn(DRAWER_ROW, p2.name.text) && literalOf(p2.initializer) === DRAWER_ROW[p2.name.text]));
209291
+ const at2 = elements2.findIndex((row3) => ts29.isObjectLiteralExpression(row3) && row3.properties.length === Object.keys(DRAWER_ROW).length && row3.properties.every((p2) => ts29.isPropertyAssignment(p2) && (ts29.isIdentifier(p2.name) || ts29.isStringLiteral(p2.name)) && Object.hasOwn(DRAWER_ROW, p2.name.text) && literalOf(p2.initializer) === DRAWER_ROW[p2.name.text]));
209092
209292
  if (at2 < 0) return void 0;
209093
209293
  const row2 = elements2[at2], next = elements2[at2 + 1], prev = elements2[at2 - 1];
209094
209294
  if (next) return `${configText.slice(0, row2.getFullStart())}${configText.slice(next.getFullStart())}`;
@@ -209174,7 +209374,7 @@ function retireLegacyInvite(dir, metaSiteId, dryRun = false, removeProfileRow) {
209174
209374
  removed.push(workerRel);
209175
209375
  } else kept.push(`${workerRel} (changed after provision)`);
209176
209376
  }
209177
- const navName = navBundle(ts27.createSourceFile("config.ts", config, ts27.ScriptTarget.Latest, true, ts27.ScriptKind.TS))?.name;
209377
+ const navName = navBundle(ts29.createSourceFile("config.ts", config, ts29.ScriptTarget.Latest, true, ts29.ScriptKind.TS))?.name;
209178
209378
  const navRel = navName && BUNDLE_NAME.test(navName) ? `tier5-src/${navName}/index.ts` : void 0;
209179
209379
  if (flowGone && navRel && metaSiteId && existsSync100(join101(dir, navRel))) {
209180
209380
  assertNoSymlink(dir, navRel);
@@ -209752,7 +209952,7 @@ var init_home_invite = __esm({
209752
209952
  });
209753
209953
 
209754
209954
  // src/one-app/access.ts
209755
- import ts28 from "typescript";
209955
+ import ts30 from "typescript";
209756
209956
  import { createHash as createHash49 } from "node:crypto";
209757
209957
  import { isDeepStrictEqual } from "node:util";
209758
209958
  function gateKey(layoutItemId) {
@@ -209879,7 +210079,7 @@ function parse3(fileName, source2) {
209879
210079
  return hit;
209880
210080
  }
209881
210081
  parseStats.runs++;
209882
- const file2 = ts28.createSourceFile(fileName, source2, ts28.ScriptTarget.Latest, true, ts28.ScriptKind.TS);
210082
+ const file2 = ts30.createSourceFile(fileName, source2, ts30.ScriptTarget.Latest, true, ts30.ScriptKind.TS);
209883
210083
  const result = file2.parseDiagnostics.length ? void 0 : file2;
209884
210084
  memo.set(source2, result);
209885
210085
  while (memo.size > PARSE_MEMO_ENTRIES) memo.delete(memo.keys().next().value);
@@ -209887,13 +210087,13 @@ function parse3(fileName, source2) {
209887
210087
  }
209888
210088
  function screensObject(file2) {
209889
210089
  for (const statement of file2.statements) {
209890
- if (!ts28.isVariableStatement(statement)) continue;
210090
+ if (!ts30.isVariableStatement(statement)) continue;
209891
210091
  for (const declaration2 of statement.declarationList.declarations) {
209892
- if (!ts28.isIdentifier(declaration2.name) || declaration2.name.text !== "SCREENS" || !declaration2.initializer) continue;
210092
+ if (!ts30.isIdentifier(declaration2.name) || declaration2.name.text !== "SCREENS" || !declaration2.initializer) continue;
209893
210093
  let init = declaration2.initializer;
209894
- while (ts28.isParenthesizedExpression(init) || ts28.isAsExpression(init) || ts28.isSatisfiesExpression(init)) init = init.expression;
209895
- if (ts28.isCallExpression(init) && init.arguments[0] && ts28.isObjectLiteralExpression(init.arguments[0])) return init.arguments[0];
209896
- if (ts28.isObjectLiteralExpression(init)) return init;
210094
+ while (ts30.isParenthesizedExpression(init) || ts30.isAsExpression(init) || ts30.isSatisfiesExpression(init)) init = init.expression;
210095
+ if (ts30.isCallExpression(init) && init.arguments[0] && ts30.isObjectLiteralExpression(init.arguments[0])) return init.arguments[0];
210096
+ if (ts30.isObjectLiteralExpression(init)) return init;
209897
210097
  }
209898
210098
  }
209899
210099
  return void 0;
@@ -209903,7 +210103,7 @@ function declaredScreens(source2) {
209903
210103
  const screens = file2 && screensObject(file2);
209904
210104
  if (!screens) return void 0;
209905
210105
  const out2 = /* @__PURE__ */ new Set();
209906
- for (const property3 of screens.properties) if (ts28.isPropertyAssignment(property3)) {
210106
+ for (const property3 of screens.properties) if (ts30.isPropertyAssignment(property3)) {
209907
210107
  const name = propName8(property3.name);
209908
210108
  if (name) out2.add(name);
209909
210109
  }
@@ -209912,7 +210112,7 @@ function declaredScreens(source2) {
209912
210112
  function payloadParts(source2, payload) {
209913
210113
  const parts = {};
209914
210114
  for (const property3 of payload.properties) {
209915
- if (!ts28.isPropertyAssignment(property3)) return void 0;
210115
+ if (!ts30.isPropertyAssignment(property3)) return void 0;
209916
210116
  const name = propName8(property3.name);
209917
210117
  if (!name || !PAYLOAD_KEYS.has(name)) return void 0;
209918
210118
  parts[name] = slice(source2, property3.initializer);
@@ -209925,9 +210125,9 @@ function openCase(payload, gate, source2) {
209925
210125
  if (!body || stringValue2(findProperty(body, "type")?.initializer) !== "FragmentSlot" || !props2) return "none";
209926
210126
  if (stringValue2(findProperty(props2, "casePath")?.initializer) !== accessStatePath(gate)) return "none";
209927
210127
  const cases = findProperty(props2, "cases")?.initializer;
209928
- if (!cases || !ts28.isArrayLiteralExpression(cases)) return void 0;
210128
+ if (!cases || !ts30.isArrayLiteralExpression(cases)) return void 0;
209929
210129
  for (const element of cases.elements) {
209930
- if (!ts28.isObjectLiteralExpression(element)) continue;
210130
+ if (!ts30.isObjectLiteralExpression(element)) continue;
209931
210131
  if (stringValue2(findProperty(element, "id")?.initializer) !== "open") continue;
209932
210132
  const content = objectValue(findProperty(element, "content"));
209933
210133
  return content ? payloadParts(source2, content) : void 0;
@@ -209989,7 +210189,7 @@ function applyScreens(source2, gates, context) {
209989
210189
  const conflicts = [];
209990
210190
  const hiding = gates.filter(mayHide);
209991
210191
  const visit = (current) => {
209992
- if (ts28.isPropertyAssignment(current) && propName8(current.name) === "onTap" && ts28.isObjectLiteralExpression(current.initializer) && ts28.isObjectLiteralExpression(current.parent)) {
210192
+ if (ts30.isPropertyAssignment(current) && propName8(current.name) === "onTap" && ts30.isObjectLiteralExpression(current.initializer) && ts30.isObjectLiteralExpression(current.parent)) {
209993
210193
  const params = objectValue(findProperty(current.initializer, "params"));
209994
210194
  const opens = stringValue2(findProperty(current.initializer, "actionId")?.initializer) === "himi.open" ? stringValue2(params && findProperty(params, "screenId")?.initializer) : void 0;
209995
210195
  const gate = hiding.find((item2) => item2.screenId === opens);
@@ -210001,7 +210201,7 @@ function applyScreens(source2, gates, context) {
210001
210201
  } else if (stringValue2(existing.initializer) !== accessRowHiddenPath(gate)) conflicts.push(`an entry opening ${gate.screenId} already has hiddenPath ${slice(source2, existing.initializer)}`);
210002
210202
  }
210003
210203
  }
210004
- ts28.forEachChild(current, visit);
210204
+ ts30.forEachChild(current, visit);
210005
210205
  };
210006
210206
  visit(first);
210007
210207
  if (conflicts.length) return refuse11(conflicts.join("; "));
@@ -210012,7 +210212,7 @@ function applyScreens(source2, gates, context) {
210012
210212
  const missing4 = [];
210013
210213
  const edits = [];
210014
210214
  for (const gate of gates) {
210015
- const screen = screens.properties.find((property3) => ts28.isPropertyAssignment(property3) && propName8(property3.name) === gate.screenId);
210215
+ const screen = screens.properties.find((property3) => ts30.isPropertyAssignment(property3) && propName8(property3.name) === gate.screenId);
210016
210216
  if (!screen) {
210017
210217
  missing4.push(gate.screenId);
210018
210218
  continue;
@@ -210040,7 +210240,7 @@ function newAppEdit(file2, app2) {
210040
210240
  const appBlock = objectValue(appProperty);
210041
210241
  if (appProperty && !appBlock || appMayBeOverridden(app2)) return { kind: "not_literal" };
210042
210242
  const declared = appBlock && findProperty(appBlock, "newApp");
210043
- if (declared) return { kind: declared.initializer.kind === ts28.SyntaxKind.TrueKeyword ? "declared" : "declared_false" };
210243
+ if (declared) return { kind: declared.initializer.kind === ts30.SyntaxKind.TrueKeyword ? "declared" : "declared_false" };
210044
210244
  if (appBlock) return { kind: "missing", edit: { start: appBlock.getStart() + 1, end: appBlock.getStart() + 1, replacement: `
210045
210245
  ${" ".repeat(Math.max(2, file2.getLineAndCharacterOfPosition(appBlock.getStart()).character + 2))}"newApp": true,` } };
210046
210246
  const first = app2.properties[0];
@@ -210061,8 +210261,8 @@ function navMembersNamed(file2) {
210061
210261
  const members2 = /* @__PURE__ */ new Set();
210062
210262
  const member = new RegExp(`(?:^|[:.])${NAV_SERVICE}\\.([A-Za-z0-9_]+)`, "g");
210063
210263
  const visit = (node4) => {
210064
- if (ts28.isStringLiteral(node4) || ts28.isNoSubstitutionTemplateLiteral(node4)) for (const match of node4.text.matchAll(member)) members2.add(match[1]);
210065
- ts28.forEachChild(node4, visit);
210264
+ if (ts30.isStringLiteral(node4) || ts30.isNoSubstitutionTemplateLiteral(node4)) for (const match of node4.text.matchAll(member)) members2.add(match[1]);
210265
+ ts30.forEachChild(node4, visit);
210066
210266
  };
210067
210267
  visit(file2);
210068
210268
  return members2;
@@ -210075,7 +210275,7 @@ function applyConfig(configText, gates, options2 = {}) {
210075
210275
  const navigationProperty = app2 && findProperty(app2, "navigation");
210076
210276
  const navigation = objectValue(navigationProperty);
210077
210277
  if (!navigation) return refuse11("config.ts has no literal `navigation: {...}` in its defineApp call");
210078
- if (navigation.properties.some((property3) => !ts28.isPropertyAssignment(property3))) return refuse11("navigation has spreads or accessors, so it cannot be edited safely");
210278
+ if (navigation.properties.some((property3) => !ts30.isPropertyAssignment(property3))) return refuse11("navigation has spreads or accessors, so it cannot be edited safely");
210079
210279
  const edits = [];
210080
210280
  const bound2 = [];
210081
210281
  const conflicts = [];
@@ -210125,7 +210325,7 @@ ${indent}"navLogicBundle": ${indented(headerBadgesBundleRef(ACCESS_NAV_BUNDLE),
210125
210325
  const itemsOf = (name) => {
210126
210326
  const block = objectValue(findProperty(navigation, name));
210127
210327
  const list5 = block && findProperty(block, "items")?.initializer;
210128
- return list5 && ts28.isArrayLiteralExpression(list5) ? list5.elements.filter(ts28.isObjectLiteralExpression) : [];
210328
+ return list5 && ts30.isArrayLiteralExpression(list5) ? list5.elements.filter(ts30.isObjectLiteralExpression) : [];
210129
210329
  };
210130
210330
  const screenOf = (row2) => stringValue2(findProperty(row2, "screenId")?.initializer);
210131
210331
  const tabs = itemsOf("tabBar");
@@ -210142,7 +210342,7 @@ ${indent}"navLogicBundle": ${indented(headerBadgesBundleRef(ACCESS_NAV_BUNDLE),
210142
210342
  const home2 = [];
210143
210343
  const found = /* @__PURE__ */ new Set();
210144
210344
  const visit = (current) => {
210145
- if (ts28.isObjectLiteralExpression(current) && findProperty(current, "label")) {
210345
+ if (ts30.isObjectLiteralExpression(current) && findProperty(current, "label")) {
210146
210346
  const screenId = stringValue2(findProperty(current, "screenId")?.initializer);
210147
210347
  const gate = hiding.find((item2) => item2.screenId === screenId);
210148
210348
  if (gate) {
@@ -210164,11 +210364,11 @@ ${indent}` });
210164
210364
  edits.push({ start: existing.getStart(), end: existing.getStart(), replacement: `"hiddenUntilResolved": true,
210165
210365
  ${indent}` });
210166
210366
  bound2.push(gate.screenId);
210167
- } else if (resolved3.initializer.kind !== ts28.SyntaxKind.TrueKeyword) conflicts.push(`the entry for ${gate.screenId} sets hiddenUntilResolved to something other than true, which would show a hidden tab before the lock is decided`);
210367
+ } else if (resolved3.initializer.kind !== ts30.SyntaxKind.TrueKeyword) conflicts.push(`the entry for ${gate.screenId} sets hiddenUntilResolved to something other than true, which would show a hidden tab before the lock is decided`);
210168
210368
  }
210169
210369
  }
210170
210370
  }
210171
- ts28.forEachChild(current, visit);
210371
+ ts30.forEachChild(current, visit);
210172
210372
  };
210173
210373
  visit(navigation);
210174
210374
  if (conflicts.length) return refuse11(conflicts.join("; "));
@@ -210181,37 +210381,37 @@ function loginWallGateScreen(configText, gateScreenId) {
210181
210381
  const app2 = file2 && appObject2(file2);
210182
210382
  const authProperty = app2 && findProperty(app2, "auth");
210183
210383
  const init = authProperty?.initializer;
210184
- const wrapped2 = init && ts28.isCallExpression(init) && ts28.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
210384
+ const wrapped2 = init && ts30.isCallExpression(init) && ts30.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
210185
210385
  if (!file2 || !wrapped2) return void 0;
210186
210386
  let own6;
210187
210387
  const visit = (node4) => {
210188
210388
  if (own6 !== void 0) return;
210189
- if (ts28.isPropertyAssignment(node4) && propName8(node4.name) === "gateScreenId") {
210190
- own6 = ts28.isStringLiteralLike(node4.initializer) ? node4.initializer.text : "author";
210389
+ if (ts30.isPropertyAssignment(node4) && propName8(node4.name) === "gateScreenId") {
210390
+ own6 = ts30.isStringLiteralLike(node4.initializer) ? node4.initializer.text : "author";
210191
210391
  return;
210192
210392
  }
210193
- if (ts28.isShorthandPropertyAssignment(node4) && node4.name.text === "gateScreenId") {
210393
+ if (ts30.isShorthandPropertyAssignment(node4) && node4.name.text === "gateScreenId") {
210194
210394
  own6 = "author";
210195
210395
  return;
210196
210396
  }
210197
- if (ts28.isSpreadAssignment(node4)) {
210397
+ if (ts30.isSpreadAssignment(node4)) {
210198
210398
  own6 = "author";
210199
210399
  return;
210200
210400
  }
210201
- const opaque2 = (expr) => ts28.isIdentifier(expr) || ts28.isPropertyAccessExpression(expr) || ts28.isElementAccessExpression(expr);
210202
- if (ts28.isCallExpression(node4) && node4.arguments.some(opaque2)) {
210401
+ const opaque2 = (expr) => ts30.isIdentifier(expr) || ts30.isPropertyAccessExpression(expr) || ts30.isElementAccessExpression(expr);
210402
+ if (ts30.isCallExpression(node4) && node4.arguments.some(opaque2)) {
210203
210403
  own6 = "author";
210204
210404
  return;
210205
210405
  }
210206
- if (ts28.isPropertyAssignment(node4) && propName8(node4.name) === "config" && opaque2(node4.initializer)) {
210406
+ if (ts30.isPropertyAssignment(node4) && propName8(node4.name) === "config" && opaque2(node4.initializer)) {
210207
210407
  own6 = "author";
210208
210408
  return;
210209
210409
  }
210210
- ts28.forEachChild(node4, visit);
210410
+ ts30.forEachChild(node4, visit);
210211
210411
  };
210212
210412
  visit(init);
210213
210413
  if (own6 !== void 0) return own6;
210214
- const helper = file2.statements.find((statement) => ts28.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts28.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
210414
+ const helper = file2.statements.find((statement) => ts30.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts30.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
210215
210415
  const text32 = helper?.getText(file2);
210216
210416
  if (text32 !== void 0 && gateScreenId && sameStatement(text32, loginHelperSource(gateScreenId))) return gateScreenId;
210217
210417
  if (text32 !== void 0 && sameStatement(text32, loginHelperSource())) return "stock";
@@ -210225,17 +210425,17 @@ function applyLoginWall(configText, wall, options2 = {}) {
210225
210425
  const authProperty = app2 && findProperty(app2, "auth");
210226
210426
  if (!authProperty) return refuse11("config.ts has no literal `auth: ...` in its defineApp call");
210227
210427
  const init = authProperty.initializer;
210228
- const wrapped2 = ts28.isCallExpression(init) && ts28.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
210428
+ const wrapped2 = ts30.isCallExpression(init) && ts30.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
210229
210429
  if (wall === "none") {
210230
210430
  if (wrapped2 && options2.keepExisting) return { status: "unchanged", text: configText, kept: true };
210231
210431
  return wrapped2 ? refuse11("the app requires login (`requireLogin` in config.ts) but the source no longer does: remove it by hand, a login requirement is not taken out automatically") : { status: "unchanged", text: configText };
210232
210432
  }
210233
- const helper = file2.statements.find((statement) => ts28.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts28.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
210433
+ const helper = file2.statements.find((statement) => ts30.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts30.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
210234
210434
  const edits = [];
210235
210435
  if (!wrapped2) edits.push({ start: init.getStart(), end: init.getEnd(), replacement: `${LOGIN_HELPER}(${init.getText(file2)})` });
210236
210436
  if (!helper && wrapped2) return { status: "unchanged", text: configText };
210237
210437
  if (!helper) {
210238
- const imports = file2.statements.filter(ts28.isImportDeclaration);
210438
+ const imports = file2.statements.filter(ts30.isImportDeclaration);
210239
210439
  const at2 = imports.length ? imports[imports.length - 1].getEnd() : 0;
210240
210440
  edits.push({ start: at2, end: at2, replacement: `
210241
210441
 
@@ -210252,14 +210452,14 @@ function tableGates(tableText) {
210252
210452
  const file2 = parse3("access-gates-table.ts", tableText);
210253
210453
  if (!file2) return void 0;
210254
210454
  for (const statement of file2.statements) {
210255
- if (!ts28.isVariableStatement(statement)) continue;
210455
+ if (!ts30.isVariableStatement(statement)) continue;
210256
210456
  for (const declaration2 of statement.declarationList.declarations) {
210257
- if (!ts28.isIdentifier(declaration2.name) || declaration2.name.text !== "ACCESS_GATES" || !declaration2.initializer) continue;
210457
+ if (!ts30.isIdentifier(declaration2.name) || declaration2.name.text !== "ACCESS_GATES" || !declaration2.initializer) continue;
210258
210458
  let init = declaration2.initializer;
210259
- while (ts28.isParenthesizedExpression(init) || ts28.isAsExpression(init) || ts28.isSatisfiesExpression(init)) init = init.expression;
210260
- if (!ts28.isArrayLiteralExpression(init)) return void 0;
210459
+ while (ts30.isParenthesizedExpression(init) || ts30.isAsExpression(init) || ts30.isSatisfiesExpression(init)) init = init.expression;
210460
+ if (!ts30.isArrayLiteralExpression(init)) return void 0;
210261
210461
  return init.elements.flatMap((element) => {
210262
- if (!ts28.isObjectLiteralExpression(element)) return [];
210462
+ if (!ts30.isObjectLiteralExpression(element)) return [];
210263
210463
  const key4 = stringValue2(findProperty(element, "key")?.initializer);
210264
210464
  if (key4 === void 0) return [];
210265
210465
  return [{ key: key4, layoutItemId: stringValue2(findProperty(element, "layoutItemId")?.initializer) ?? "", screenId: stringValue2(findProperty(element, "screenId")?.initializer) ?? "" }];
@@ -210272,12 +210472,12 @@ function tableGateRows(tableText) {
210272
210472
  const file2 = parse3("access-gates-table.ts", tableText);
210273
210473
  if (!file2) return void 0;
210274
210474
  for (const statement of file2.statements) {
210275
- if (!ts28.isVariableStatement(statement)) continue;
210475
+ if (!ts30.isVariableStatement(statement)) continue;
210276
210476
  for (const declaration2 of statement.declarationList.declarations) {
210277
- if (!ts28.isIdentifier(declaration2.name) || declaration2.name.text !== "ACCESS_GATES" || !declaration2.initializer) continue;
210477
+ if (!ts30.isIdentifier(declaration2.name) || declaration2.name.text !== "ACCESS_GATES" || !declaration2.initializer) continue;
210278
210478
  let init = declaration2.initializer;
210279
- while (ts28.isParenthesizedExpression(init) || ts28.isAsExpression(init) || ts28.isSatisfiesExpression(init)) init = init.expression;
210280
- if (!ts28.isArrayLiteralExpression(init)) return void 0;
210479
+ while (ts30.isParenthesizedExpression(init) || ts30.isAsExpression(init) || ts30.isSatisfiesExpression(init)) init = init.expression;
210480
+ if (!ts30.isArrayLiteralExpression(init)) return void 0;
210281
210481
  try {
210282
210482
  const rows = JSON.parse(slice(tableText, init));
210283
210483
  return Array.isArray(rows) ? rows : void 0;
@@ -210336,8 +210536,8 @@ var init_access = __esm({
210336
210536
  parseMemo = /* @__PURE__ */ new Map();
210337
210537
  parseStats = { calls: 0, runs: 0 };
210338
210538
  slice = (source2, node4) => source2.slice(node4.getStart(), node4.getEnd());
210339
- stringValue2 = (node4) => node4 && (ts28.isStringLiteral(node4) || ts28.isNoSubstitutionTemplateLiteral(node4)) ? node4.text : void 0;
210340
- objectValue = (property3) => property3 && ts28.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
210539
+ stringValue2 = (node4) => node4 && (ts30.isStringLiteral(node4) || ts30.isNoSubstitutionTemplateLiteral(node4)) ? node4.text : void 0;
210540
+ objectValue = (property3) => property3 && ts30.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
210341
210541
  PAYLOAD_KEYS = /* @__PURE__ */ new Set(["id", "body", "modifiers"]);
210342
210542
  indented = (value2, indent) => JSON.stringify(value2, null, 2).replaceAll("\n", `
210343
210543
  ${indent}`);
@@ -210993,27 +211193,27 @@ var init_overlapping_panel_header = __esm({
210993
211193
  // src/one-app/home-topbar.ts
210994
211194
  import { existsSync as existsSync103, readFileSync as readFileSync115 } from "node:fs";
210995
211195
  import { join as join104 } from "node:path";
210996
- import ts29 from "typescript";
211196
+ import ts31 from "typescript";
210997
211197
  function detailedHomeTopBar(topBarDefault, coverNodeId, hasCoverImage = true) {
210998
211198
  const { coverTone: _tone, ...bar } = structuredClone(obj17(topBarDefault));
210999
211199
  return { ...bar, ...hasCoverImage ? { style: "immersive", coverTone: "dark" } : { style: "transparent" }, titleDisplay: "hidden", solidAfter: { nodeId: coverNodeId } };
211000
211200
  }
211001
211201
  function literalValue2(node4) {
211002
211202
  const e2 = unwrap4(node4);
211003
- if (ts29.isStringLiteral(e2) || ts29.isNoSubstitutionTemplateLiteral(e2)) return e2.text;
211004
- if (ts29.isNumericLiteral(e2)) return Number(e2.text);
211005
- if (ts29.isPrefixUnaryExpression(e2) && e2.operator === ts29.SyntaxKind.MinusToken && ts29.isNumericLiteral(e2.operand)) return -Number(e2.operand.text);
211006
- if (e2.kind === ts29.SyntaxKind.TrueKeyword) return true;
211007
- if (e2.kind === ts29.SyntaxKind.FalseKeyword) return false;
211008
- if (e2.kind === ts29.SyntaxKind.NullKeyword) return null;
211009
- if (ts29.isArrayLiteralExpression(e2)) {
211010
- const items = e2.elements.map((item2) => ts29.isSpreadElement(item2) ? NOT_LITERAL : literalValue2(item2));
211203
+ if (ts31.isStringLiteral(e2) || ts31.isNoSubstitutionTemplateLiteral(e2)) return e2.text;
211204
+ if (ts31.isNumericLiteral(e2)) return Number(e2.text);
211205
+ if (ts31.isPrefixUnaryExpression(e2) && e2.operator === ts31.SyntaxKind.MinusToken && ts31.isNumericLiteral(e2.operand)) return -Number(e2.operand.text);
211206
+ if (e2.kind === ts31.SyntaxKind.TrueKeyword) return true;
211207
+ if (e2.kind === ts31.SyntaxKind.FalseKeyword) return false;
211208
+ if (e2.kind === ts31.SyntaxKind.NullKeyword) return null;
211209
+ if (ts31.isArrayLiteralExpression(e2)) {
211210
+ const items = e2.elements.map((item2) => ts31.isSpreadElement(item2) ? NOT_LITERAL : literalValue2(item2));
211011
211211
  return items.includes(NOT_LITERAL) ? NOT_LITERAL : items;
211012
211212
  }
211013
- if (!ts29.isObjectLiteralExpression(e2)) return NOT_LITERAL;
211213
+ if (!ts31.isObjectLiteralExpression(e2)) return NOT_LITERAL;
211014
211214
  const out2 = {};
211015
211215
  for (const p2 of e2.properties) {
211016
- const name = ts29.isPropertyAssignment(p2) && (ts29.isIdentifier(p2.name) || ts29.isStringLiteral(p2.name) || ts29.isNumericLiteral(p2.name)) ? p2.name.text : void 0;
211216
+ const name = ts31.isPropertyAssignment(p2) && (ts31.isIdentifier(p2.name) || ts31.isStringLiteral(p2.name) || ts31.isNumericLiteral(p2.name)) ? p2.name.text : void 0;
211017
211217
  const value2 = name === void 0 ? NOT_LITERAL : literalValue2(p2.initializer);
211018
211218
  if (value2 === NOT_LITERAL) return NOT_LITERAL;
211019
211219
  out2[name] = value2;
@@ -211021,14 +211221,14 @@ function literalValue2(node4) {
211021
211221
  return out2;
211022
211222
  }
211023
211223
  function topBarDefaultOf(configText) {
211024
- const source2 = ts29.createSourceFile("config.ts", configText, ts29.ScriptTarget.Latest, true, ts29.ScriptKind.TS);
211224
+ const source2 = ts31.createSourceFile("config.ts", configText, ts31.ScriptTarget.Latest, true, ts31.ScriptKind.TS);
211025
211225
  if (source2.parseDiagnostics.length) return { status: "uninspectable", reason: "config.ts could not be parsed" };
211026
211226
  const app2 = appObject2(source2);
211027
211227
  if (!app2) return { status: "uninspectable", reason: "config.ts does not default-export defineApp({...})" };
211028
211228
  const navigation = findProperty(app2, "navigation")?.initializer;
211029
211229
  if (!navigation) return { status: "absent" };
211030
211230
  const nav = unwrap4(navigation);
211031
- if (!ts29.isObjectLiteralExpression(nav)) return { status: "uninspectable", reason: "navigation is not an object literal" };
211231
+ if (!ts31.isObjectLiteralExpression(nav)) return { status: "uninspectable", reason: "navigation is not an object literal" };
211032
211232
  const bar = findProperty(nav, "topBarDefault")?.initializer;
211033
211233
  if (!bar) return { status: "absent" };
211034
211234
  const value2 = literalValue2(bar);
@@ -211146,7 +211346,7 @@ var init_home_topbar = __esm({
211146
211346
  detailedHomeHeaderId = (screenId) => `${screenId}.detailedHeader`;
211147
211347
  unwrap4 = (node4) => {
211148
211348
  let n2 = node4;
211149
- while (ts29.isParenthesizedExpression(n2) || ts29.isAsExpression(n2) || ts29.isSatisfiesExpression(n2) || ts29.isTypeAssertionExpression(n2)) n2 = n2.expression;
211349
+ while (ts31.isParenthesizedExpression(n2) || ts31.isAsExpression(n2) || ts31.isSatisfiesExpression(n2) || ts31.isTypeAssertionExpression(n2)) n2 = n2.expression;
211150
211350
  return n2;
211151
211351
  };
211152
211352
  NOT_LITERAL = Symbol("not literal");
@@ -213924,29 +214124,29 @@ var init_generate = __esm({
213924
214124
  // src/one-app/provision.ts
213925
214125
  import { existsSync as existsSync105, readdirSync as readdirSync44, readFileSync as readFileSync117, writeFileSync as writeFileSync47 } from "node:fs";
213926
214126
  import { join as join106, resolve as resolve71 } from "node:path";
213927
- import ts30 from "typescript";
214127
+ import ts32 from "typescript";
213928
214128
  function rootOnAppear2(descriptor) {
213929
214129
  const modifiers = obj20(obj20(descriptor.payload).modifiers);
213930
214130
  const appear = modifiers.onAppear;
213931
214131
  return appear && typeof appear === "object" && !Array.isArray(appear) ? appear : void 0;
213932
214132
  }
213933
214133
  function nativeTabBar(configSource) {
213934
- const file2 = ts30.createSourceFile("config.ts", configSource, ts30.ScriptTarget.Latest, true, ts30.ScriptKind.TS);
214134
+ const file2 = ts32.createSourceFile("config.ts", configSource, ts32.ScriptTarget.Latest, true, ts32.ScriptKind.TS);
213935
214135
  let tabBar;
213936
214136
  const visit = (node4) => {
213937
214137
  if (tabBar) return;
213938
- if (ts30.isCallExpression(node4) && ts30.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
213939
- const navigation = node4.arguments[0] && ts30.isObjectLiteralExpression(node4.arguments[0]) ? propOf(node4.arguments[0], "navigation")?.initializer : void 0;
213940
- const bar = navigation && ts30.isObjectLiteralExpression(navigation) ? propOf(navigation, "tabBar")?.initializer : void 0;
213941
- if (bar && ts30.isObjectLiteralExpression(bar)) tabBar = bar;
214138
+ if (ts32.isCallExpression(node4) && ts32.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
214139
+ const navigation = node4.arguments[0] && ts32.isObjectLiteralExpression(node4.arguments[0]) ? propOf(node4.arguments[0], "navigation")?.initializer : void 0;
214140
+ const bar = navigation && ts32.isObjectLiteralExpression(navigation) ? propOf(navigation, "tabBar")?.initializer : void 0;
214141
+ if (bar && ts32.isObjectLiteralExpression(bar)) tabBar = bar;
213942
214142
  return;
213943
214143
  }
213944
- ts30.forEachChild(node4, visit);
214144
+ ts32.forEachChild(node4, visit);
213945
214145
  };
213946
214146
  visit(file2);
213947
214147
  if (!tabBar) return void 0;
213948
214148
  const current = propOf(tabBar, "presentation")?.initializer;
213949
- if (current && ts30.isStringLiteralLike(current) && current.text.trim()) return { presentation: current.text };
214149
+ if (current && ts32.isStringLiteralLike(current) && current.text.trim()) return { presentation: current.text };
213950
214150
  if (current || !tabBar.properties[0]) return void 0;
213951
214151
  const indent = file2.getLineAndCharacterOfPosition(tabBar.properties[0].getStart(file2)).character;
213952
214152
  const at2 = tabBar.getStart(file2) + 1;
@@ -213968,22 +214168,22 @@ function provisionSiteBinding(dir, binding2, dryRun = false) {
213968
214168
  return { status: "unverified", reason: "the collection has no verified source site id and URL; the auth is left as it is" };
213969
214169
  }
213970
214170
  const source2 = readFileSync117(configPath, "utf8");
213971
- const file2 = ts30.createSourceFile("config.ts", source2, ts30.ScriptTarget.Latest, true, ts30.ScriptKind.TS);
214171
+ const file2 = ts32.createSourceFile("config.ts", source2, ts32.ScriptTarget.Latest, true, ts32.ScriptKind.TS);
213972
214172
  let argument;
213973
214173
  const visit = (node4) => {
213974
214174
  if (argument) return;
213975
- if (ts30.isCallExpression(node4) && ts30.isIdentifier(node4.expression) && node4.expression.text === "WixConsumerAuthProvider") {
214175
+ if (ts32.isCallExpression(node4) && ts32.isIdentifier(node4.expression) && node4.expression.text === "WixConsumerAuthProvider") {
213976
214176
  const arg2 = node4.arguments[0];
213977
- if (arg2 && ts30.isObjectLiteralExpression(arg2)) argument = arg2;
214177
+ if (arg2 && ts32.isObjectLiteralExpression(arg2)) argument = arg2;
213978
214178
  return;
213979
214179
  }
213980
- ts30.forEachChild(node4, visit);
214180
+ ts32.forEachChild(node4, visit);
213981
214181
  };
213982
214182
  visit(file2);
213983
214183
  if (!argument) return { status: "absent", reason: "config.ts has no WixConsumerAuthProvider({...}) to bind" };
213984
214184
  const text32 = (name) => {
213985
214185
  const v2 = propOf(argument, name)?.initializer;
213986
- return v2 && ts30.isStringLiteralLike(v2) ? v2.text : void 0;
214186
+ return v2 && ts32.isStringLiteralLike(v2) ? v2.text : void 0;
213987
214187
  };
213988
214188
  if (text32("visitorSource") === "one-app" && text32("metaSiteId")?.toLowerCase() === binding2.metaSiteId.toLowerCase()) return { status: "unchanged" };
213989
214189
  const clientId = propOf(argument, "clientId")?.initializer;
@@ -214003,18 +214203,18 @@ ${indent}}`;
214003
214203
  return { status: "set" };
214004
214204
  }
214005
214205
  function inboxEntriesInConfig(configSource) {
214006
- const file2 = ts30.createSourceFile("config.ts", configSource, ts30.ScriptTarget.Latest, true, ts30.ScriptKind.TS);
214206
+ const file2 = ts32.createSourceFile("config.ts", configSource, ts32.ScriptTarget.Latest, true, ts32.ScriptKind.TS);
214007
214207
  const found = [];
214008
214208
  const literalOf2 = (o2, name) => {
214009
214209
  const v2 = propOf(o2, name)?.initializer;
214010
- return v2 && ts30.isStringLiteralLike(v2) ? v2 : void 0;
214210
+ return v2 && ts32.isStringLiteralLike(v2) ? v2 : void 0;
214011
214211
  };
214012
214212
  const visit = (node4) => {
214013
- if (ts30.isObjectLiteralExpression(node4)) {
214213
+ if (ts32.isObjectLiteralExpression(node4)) {
214014
214214
  const id = literalOf2(node4, "id")?.text;
214015
214215
  const onTap = propOf(node4, "onTap")?.initializer;
214016
- const params = onTap && ts30.isObjectLiteralExpression(onTap) ? propOf(onTap, "params")?.initializer : void 0;
214017
- const tapTarget2 = params && ts30.isObjectLiteralExpression(params) ? literalOf2(params, "screenId") : void 0;
214216
+ const params = onTap && ts32.isObjectLiteralExpression(onTap) ? propOf(onTap, "params")?.initializer : void 0;
214217
+ const tapTarget2 = params && ts32.isObjectLiteralExpression(params) ? literalOf2(params, "screenId") : void 0;
214018
214218
  if (id === "chat" && tapTarget2) found.push({ site: "top-bar chat", literal: tapTarget2 });
214019
214219
  const screenId = literalOf2(node4, "screenId");
214020
214220
  if (id === "drawer_inbox" && screenId) found.push({ site: "drawer Inbox", literal: screenId });
@@ -214022,7 +214222,7 @@ function inboxEntriesInConfig(configSource) {
214022
214222
  if (screenId?.text === "himi_chat_thread" && parent) found.push({ site: "chat thread parent", literal: parent });
214023
214223
  if (screenId?.text === BUSINESS_CHAT_SCREEN2 && parent?.text === "") found.push({ site: "business chat parent", literal: parent });
214024
214224
  }
214025
- ts30.forEachChild(node4, visit);
214225
+ ts32.forEachChild(node4, visit);
214026
214226
  };
214027
214227
  visit(file2);
214028
214228
  const stale = found.filter((f2) => f2.literal.text === BUSINESS_CHAT_SCREEN2 || f2.site === "business chat parent");
@@ -214317,8 +214517,8 @@ var init_provision = __esm({
214317
214517
  { screenId: "himi_service", param: "businessTimeZone", evidence: "timeZone" },
214318
214518
  { screenId: "himi_time", param: "businessTimeZone", evidence: "timeZone" }
214319
214519
  ];
214320
- propName9 = (p2) => ts30.isPropertyAssignment(p2) && (ts30.isIdentifier(p2.name) || ts30.isStringLiteral(p2.name)) ? p2.name.text : void 0;
214321
- propOf = (o2, name) => o2.properties.find((p2) => propName9(p2) === name && ts30.isPropertyAssignment(p2));
214520
+ propName9 = (p2) => ts32.isPropertyAssignment(p2) && (ts32.isIdentifier(p2.name) || ts32.isStringLiteral(p2.name)) ? p2.name.text : void 0;
214521
+ propOf = (o2, name) => o2.properties.find((p2) => propName9(p2) === name && ts32.isPropertyAssignment(p2));
214322
214522
  GUID2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
214323
214523
  BUSINESS_CHAT_SCREEN2 = "himi_business_chat";
214324
214524
  INBOX_DOOR_SCREENS = ["himi_account", "himi_chat_thread"];
@@ -214341,7 +214541,7 @@ __export(validate_topbar_exports, {
214341
214541
  import { createHash as createHash51 } from "node:crypto";
214342
214542
  import { existsSync as existsSync106, readFileSync as readFileSync118, statSync as statSync29 } from "node:fs";
214343
214543
  import { resolve as resolve72, join as join107 } from "node:path";
214344
- import ts31 from "typescript";
214544
+ import ts33 from "typescript";
214345
214545
  function enrichedControls(raw, views2, omit) {
214346
214546
  const result = /* @__PURE__ */ new Map();
214347
214547
  const orders = /* @__PURE__ */ new Map();
@@ -214484,22 +214684,22 @@ function authoredControls(raw) {
214484
214684
  return { controls, byScreen, inviteDisabled, screens: count3 };
214485
214685
  }
214486
214686
  function property(node4, name) {
214487
- const item2 = node4?.properties.find((candidate) => ts31.isPropertyAssignment(candidate) && ((ts31.isIdentifier(candidate.name) || ts31.isStringLiteral(candidate.name)) && candidate.name.text === name));
214488
- return item2 && ts31.isPropertyAssignment(item2) ? item2.initializer : void 0;
214687
+ const item2 = node4?.properties.find((candidate) => ts33.isPropertyAssignment(candidate) && ((ts33.isIdentifier(candidate.name) || ts33.isStringLiteral(candidate.name)) && candidate.name.text === name));
214688
+ return item2 && ts33.isPropertyAssignment(item2) ? item2.initializer : void 0;
214489
214689
  }
214490
214690
  function unwrap5(node4) {
214491
- while (ts31.isParenthesizedExpression(node4) || ts31.isAsExpression(node4) || ts31.isSatisfiesExpression(node4)) node4 = node4.expression;
214691
+ while (ts33.isParenthesizedExpression(node4) || ts33.isAsExpression(node4) || ts33.isSatisfiesExpression(node4)) node4 = node4.expression;
214492
214692
  return node4;
214493
214693
  }
214494
214694
  function resolveObject(node4, source2, seen = /* @__PURE__ */ new Set()) {
214495
214695
  if (!node4) return void 0;
214496
214696
  const value2 = unwrap5(node4);
214497
- if (ts31.isObjectLiteralExpression(value2)) return value2;
214498
- if (!ts31.isIdentifier(value2) || seen.has(value2.text)) return void 0;
214697
+ if (ts33.isObjectLiteralExpression(value2)) return value2;
214698
+ if (!ts33.isIdentifier(value2) || seen.has(value2.text)) return void 0;
214499
214699
  seen.add(value2.text);
214500
214700
  for (const statement of source2.statements) {
214501
- if (!ts31.isVariableStatement(statement)) continue;
214502
- const declaration2 = statement.declarationList.declarations.find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === value2.text);
214701
+ if (!ts33.isVariableStatement(statement)) continue;
214702
+ const declaration2 = statement.declarationList.declarations.find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === value2.text);
214503
214703
  if (declaration2?.initializer) return resolveObject(declaration2.initializer, source2, seen);
214504
214704
  }
214505
214705
  return void 0;
@@ -214508,21 +214708,21 @@ function resolveScreenObject(node4, source2) {
214508
214708
  const direct = resolveObject(node4, source2);
214509
214709
  if (direct) return direct;
214510
214710
  const value2 = unwrap5(node4);
214511
- const name = ts31.isCallExpression(value2) && ts31.isIdentifier(value2.expression) ? value2.expression.text : ts31.isIdentifier(value2) ? value2.text : void 0;
214711
+ const name = ts33.isCallExpression(value2) && ts33.isIdentifier(value2.expression) ? value2.expression.text : ts33.isIdentifier(value2) ? value2.text : void 0;
214512
214712
  if (!name) return void 0;
214513
- const functionBody = source2.statements.find((statement) => ts31.isFunctionDeclaration(statement) && statement.name?.text === name)?.body;
214514
- const variable = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === name);
214713
+ const functionBody = source2.statements.find((statement) => ts33.isFunctionDeclaration(statement) && statement.name?.text === name)?.body;
214714
+ const variable = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === name);
214515
214715
  const initializer = variable?.initializer && unwrap5(variable.initializer);
214516
- const body = functionBody ?? (initializer && (ts31.isArrowFunction(initializer) || ts31.isFunctionExpression(initializer)) ? initializer.body : void 0);
214716
+ const body = functionBody ?? (initializer && (ts33.isArrowFunction(initializer) || ts33.isFunctionExpression(initializer)) ? initializer.body : void 0);
214517
214717
  if (!body) return void 0;
214518
- if (!ts31.isBlock(body)) return resolveObject(body, source2);
214519
- const returns = body.statements.filter(ts31.isReturnStatement);
214718
+ if (!ts33.isBlock(body)) return resolveObject(body, source2);
214719
+ const returns = body.statements.filter(ts33.isReturnStatement);
214520
214720
  return returns.length === 1 ? resolveObject(returns[0]?.expression, source2) : void 0;
214521
214721
  }
214522
214722
  function stringValue3(node4) {
214523
214723
  if (!node4) return void 0;
214524
214724
  const value2 = unwrap5(node4);
214525
- return ts31.isStringLiteralLike(value2) ? value2.text : void 0;
214725
+ return ts33.isStringLiteralLike(value2) ? value2.text : void 0;
214526
214726
  }
214527
214727
  function actionTokens(action) {
214528
214728
  const values = ["id", "icon", "label", "accessibilityLabel"].map((key4) => stringValue3(property(action, key4)) ?? "").join(" ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().match(/[a-z0-9]+/g) ?? [];
@@ -214535,18 +214735,18 @@ function hasAction(node4, source2) {
214535
214735
  }
214536
214736
  function inviteRecipe(node4, source2, seen = /* @__PURE__ */ new Set()) {
214537
214737
  const value2 = unwrap5(node4);
214538
- if (ts31.isIdentifier(value2)) {
214738
+ if (ts33.isIdentifier(value2)) {
214539
214739
  if (seen.has(value2.text)) return void 0;
214540
214740
  seen.add(value2.text);
214541
- const declaration2 = source2.statements.filter(ts31.isVariableStatement).flatMap((s5) => [...s5.declarationList.declarations]).find((d2) => ts31.isIdentifier(d2.name) && d2.name.text === value2.text);
214741
+ const declaration2 = source2.statements.filter(ts33.isVariableStatement).flatMap((s5) => [...s5.declarationList.declarations]).find((d2) => ts33.isIdentifier(d2.name) && d2.name.text === value2.text);
214542
214742
  return declaration2?.initializer ? inviteRecipe(declaration2.initializer, source2, seen) : void 0;
214543
214743
  }
214544
- if (!ts31.isCallExpression(value2) || !ts31.isIdentifier(value2.expression) || value2.arguments.length > 1) return void 0;
214744
+ if (!ts33.isCallExpression(value2) || !ts33.isIdentifier(value2.expression) || value2.arguments.length > 1) return void 0;
214545
214745
  const localName = value2.expression.text;
214546
- const imported = source2.statements.filter(ts31.isImportDeclaration).some((statement) => {
214746
+ const imported = source2.statements.filter(ts33.isImportDeclaration).some((statement) => {
214547
214747
  if (statement.importClause?.isTypeOnly || !["@wix/himalaya/screens", "@himalaya/screens"].includes(stringValue3(statement.moduleSpecifier) ?? "")) return false;
214548
214748
  const names2 = statement.importClause?.namedBindings;
214549
- return names2 && ts31.isNamedImports(names2) && names2.elements.some((specifier) => !specifier.isTypeOnly && specifier.name.text === localName && (specifier.propertyName?.text ?? specifier.name.text) === "inviteAction");
214749
+ return names2 && ts33.isNamedImports(names2) && names2.elements.some((specifier) => !specifier.isTypeOnly && specifier.name.text === localName && (specifier.propertyName?.text ?? specifier.name.text) === "inviteAction");
214550
214750
  });
214551
214751
  if (!imported) return void 0;
214552
214752
  const options2 = value2.arguments[0] ? resolveObject(value2.arguments[0], source2) : void 0;
@@ -214567,7 +214767,7 @@ function inviteRecipe(node4, source2, seen = /* @__PURE__ */ new Set()) {
214567
214767
  function knownProperties(node4) {
214568
214768
  const names2 = /* @__PURE__ */ new Set();
214569
214769
  return node4.properties.every((prop2) => {
214570
- if (!ts31.isPropertyAssignment(prop2) || !ts31.isIdentifier(prop2.name) && !ts31.isStringLiteral(prop2.name)) return false;
214770
+ if (!ts33.isPropertyAssignment(prop2) || !ts33.isIdentifier(prop2.name) && !ts33.isStringLiteral(prop2.name)) return false;
214571
214771
  if (names2.has(prop2.name.text)) return false;
214572
214772
  names2.add(prop2.name.text);
214573
214773
  return true;
@@ -214576,19 +214776,19 @@ function knownProperties(node4) {
214576
214776
  function absentValue(node4) {
214577
214777
  if (!node4) return true;
214578
214778
  const value2 = unwrap5(node4);
214579
- return value2.kind === ts31.SyntaxKind.NullKeyword || ts31.isIdentifier(value2) && value2.text === "undefined";
214779
+ return value2.kind === ts33.SyntaxKind.NullKeyword || ts33.isIdentifier(value2) && value2.text === "undefined";
214580
214780
  }
214581
214781
  function itemObjects(topBar, source2) {
214582
214782
  const node4 = property(topBar, "items");
214583
214783
  let list5 = node4 && unwrap5(node4);
214584
- if (list5 && ts31.isIdentifier(list5)) {
214784
+ if (list5 && ts33.isIdentifier(list5)) {
214585
214785
  const name = list5.text;
214586
- const init = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === name)?.initializer;
214786
+ const init = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === name)?.initializer;
214587
214787
  list5 = init && unwrap5(init);
214588
214788
  }
214589
- if (!list5 || !ts31.isArrayLiteralExpression(list5)) return [];
214789
+ if (!list5 || !ts33.isArrayLiteralExpression(list5)) return [];
214590
214790
  return list5.elements.flatMap((item2) => {
214591
- const object16 = ts31.isExpression(item2) ? resolveObject(item2, source2) : void 0;
214791
+ const object16 = ts33.isExpression(item2) ? resolveObject(item2, source2) : void 0;
214592
214792
  return object16 ? [object16] : [];
214593
214793
  });
214594
214794
  }
@@ -214609,12 +214809,12 @@ function itemsReadable(topBar, source2) {
214609
214809
  const node4 = property(topBar, "items");
214610
214810
  if (!node4 || absentValue(node4)) return true;
214611
214811
  let list5 = unwrap5(node4);
214612
- if (ts31.isIdentifier(list5)) {
214812
+ if (ts33.isIdentifier(list5)) {
214613
214813
  const name = list5.text;
214614
- const init = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === name)?.initializer;
214814
+ const init = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === name)?.initializer;
214615
214815
  list5 = init && unwrap5(init);
214616
214816
  }
214617
- return !!list5 && ts31.isArrayLiteralExpression(list5) && list5.elements.every((item2) => ts31.isExpression(item2) && !!resolveObject(item2, source2));
214817
+ return !!list5 && ts33.isArrayLiteralExpression(list5) && list5.elements.every((item2) => ts33.isExpression(item2) && !!resolveObject(item2, source2));
214618
214818
  }
214619
214819
  function leadingSlot(topBar, source2) {
214620
214820
  const leading = stringValue3(property(topBar, "leading"));
@@ -214653,12 +214853,12 @@ function parseActions(topBar, source2) {
214653
214853
  if (!actionExpr) return { actions: [], items, leading };
214654
214854
  const actionsNode = unwrap5(actionExpr);
214655
214855
  let elements2;
214656
- if (ts31.isArrayLiteralExpression(actionsNode)) elements2 = actionsNode.elements.filter(ts31.isExpression);
214657
- else if (ts31.isIdentifier(actionsNode)) {
214658
- const declaration2 = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === actionsNode.text);
214856
+ if (ts33.isArrayLiteralExpression(actionsNode)) elements2 = actionsNode.elements.filter(ts33.isExpression);
214857
+ else if (ts33.isIdentifier(actionsNode)) {
214858
+ const declaration2 = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === actionsNode.text);
214659
214859
  const init = declaration2?.initializer && unwrap5(declaration2.initializer);
214660
- if (!init || !ts31.isArrayLiteralExpression(init)) return { actions: [], items, leading, error: "Top-bar actions cannot be statically inspected." };
214661
- elements2 = init.elements.filter(ts31.isExpression);
214860
+ if (!init || !ts33.isArrayLiteralExpression(init)) return { actions: [], items, leading, error: "Top-bar actions cannot be statically inspected." };
214861
+ elements2 = init.elements.filter(ts33.isExpression);
214662
214862
  } else return { actions: [], items, leading, error: "Top-bar actions cannot be statically inspected." };
214663
214863
  const actions = [];
214664
214864
  for (const item2 of elements2) {
@@ -214698,23 +214898,23 @@ function parseActions(topBar, source2) {
214698
214898
  return { actions, items, leading };
214699
214899
  }
214700
214900
  function appLevelBundleUrl(configPath) {
214701
- const source2 = ts31.createSourceFile(configPath, readFileSync118(configPath, "utf8"), ts31.ScriptTarget.Latest, true, ts31.ScriptKind.TS);
214901
+ const source2 = ts33.createSourceFile(configPath, readFileSync118(configPath, "utf8"), ts33.ScriptTarget.Latest, true, ts33.ScriptKind.TS);
214702
214902
  if (source2.parseDiagnostics.length) return void 0;
214703
- const exportAssignment = source2.statements.find(ts31.isExportAssignment);
214903
+ const exportAssignment = source2.statements.find(ts33.isExportAssignment);
214704
214904
  if (!exportAssignment) return void 0;
214705
214905
  let exported = unwrap5(exportAssignment.expression);
214706
- if (ts31.isIdentifier(exported)) {
214906
+ if (ts33.isIdentifier(exported)) {
214707
214907
  const exportedName = exported.text;
214708
214908
  for (const statement of source2.statements) {
214709
- if (!ts31.isVariableStatement(statement)) continue;
214710
- const declaration2 = statement.declarationList.declarations.find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === exportedName);
214909
+ if (!ts33.isVariableStatement(statement)) continue;
214910
+ const declaration2 = statement.declarationList.declarations.find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === exportedName);
214711
214911
  if (declaration2?.initializer) {
214712
214912
  exported = unwrap5(declaration2.initializer);
214713
214913
  break;
214714
214914
  }
214715
214915
  }
214716
214916
  }
214717
- if (!ts31.isCallExpression(exported) || !exported.arguments[0]) return void 0;
214917
+ if (!ts33.isCallExpression(exported) || !exported.arguments[0]) return void 0;
214718
214918
  const app2 = resolveObject(exported.arguments[0], source2);
214719
214919
  if (!app2 || !knownProperties(app2)) return void 0;
214720
214920
  const navigation = resolveObject(property(app2, "navigation"), source2);
@@ -214723,23 +214923,23 @@ function appLevelBundleUrl(configPath) {
214723
214923
  return stringValue3(property(worker, "url"));
214724
214924
  }
214725
214925
  function configActions(configPath) {
214726
- const source2 = ts31.createSourceFile(configPath, readFileSync118(configPath, "utf8"), ts31.ScriptTarget.Latest, true, ts31.ScriptKind.TS);
214926
+ const source2 = ts33.createSourceFile(configPath, readFileSync118(configPath, "utf8"), ts33.ScriptTarget.Latest, true, ts33.ScriptKind.TS);
214727
214927
  if (source2.parseDiagnostics.length) return { actions: [], error: "config.ts could not be parsed." };
214728
- const exportAssignment = source2.statements.find(ts31.isExportAssignment);
214928
+ const exportAssignment = source2.statements.find(ts33.isExportAssignment);
214729
214929
  if (!exportAssignment) return { actions: [], error: "config.ts has no default app export." };
214730
214930
  let exported = unwrap5(exportAssignment.expression);
214731
- if (ts31.isIdentifier(exported)) {
214931
+ if (ts33.isIdentifier(exported)) {
214732
214932
  const exportedName = exported.text;
214733
214933
  for (const statement of source2.statements) {
214734
- if (!ts31.isVariableStatement(statement)) continue;
214735
- const declaration2 = statement.declarationList.declarations.find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === exportedName);
214934
+ if (!ts33.isVariableStatement(statement)) continue;
214935
+ const declaration2 = statement.declarationList.declarations.find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === exportedName);
214736
214936
  if (declaration2?.initializer) {
214737
214937
  exported = unwrap5(declaration2.initializer);
214738
214938
  break;
214739
214939
  }
214740
214940
  }
214741
214941
  }
214742
- if (!ts31.isCallExpression(exported) || !exported.arguments[0]) return { actions: [], error: "config.ts does not default-export defineApp({...})." };
214942
+ if (!ts33.isCallExpression(exported) || !exported.arguments[0]) return { actions: [], error: "config.ts does not default-export defineApp({...})." };
214743
214943
  const uninspectable = { actions: [], error: "navigation.topBarDefault cannot be statically inspected." };
214744
214944
  const app2 = resolveObject(exported.arguments[0], source2);
214745
214945
  if (!app2 || !knownProperties(app2)) return uninspectable;
@@ -214755,7 +214955,7 @@ function configActions(configPath) {
214755
214955
  const appServices = resolveObject(property(app2, "app"), source2);
214756
214956
  const worker = resolveObject(property(navigation, "navLogicBundle") ?? property(appServices, "logicBundle"), source2);
214757
214957
  const links = property(navigation, "linkableScreens");
214758
- const linkableScreens = new Set(links && ts31.isArrayLiteralExpression(unwrap5(links)) ? unwrap5(links).elements.map((item2) => stringValue3(property(resolveObject(item2, source2), "screenId"))).filter((id) => !!id) : []);
214958
+ const linkableScreens = new Set(links && ts33.isArrayLiteralExpression(unwrap5(links)) ? unwrap5(links).elements.map((item2) => stringValue3(property(resolveObject(item2, source2), "screenId"))).filter((id) => !!id) : []);
214759
214959
  return {
214760
214960
  ...parsed,
214761
214961
  linkableScreens,
@@ -214768,13 +214968,13 @@ function configActions(configPath) {
214768
214968
  function screenActions2(contentDir2) {
214769
214969
  const path2 = join107(contentDir2, "dev", "index.ts");
214770
214970
  if (!existsSync106(path2)) return /* @__PURE__ */ new Map();
214771
- const source2 = ts31.createSourceFile(path2, readFileSync118(path2, "utf8"), ts31.ScriptTarget.Latest, true, ts31.ScriptKind.TS);
214971
+ const source2 = ts33.createSourceFile(path2, readFileSync118(path2, "utf8"), ts33.ScriptTarget.Latest, true, ts33.ScriptKind.TS);
214772
214972
  if (source2.parseDiagnostics.length) throw Error("dev/index.ts could not be parsed.");
214773
- const declaration2 = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === "SCREENS");
214973
+ const declaration2 = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === "SCREENS");
214774
214974
  const initializer = declaration2?.initializer && unwrap5(declaration2.initializer);
214775
- let registry2 = initializer && ts31.isCallExpression(initializer) ? resolveObject(initializer.arguments[0], source2) : resolveObject(initializer, source2);
214975
+ let registry2 = initializer && ts33.isCallExpression(initializer) ? resolveObject(initializer.arguments[0], source2) : resolveObject(initializer, source2);
214776
214976
  if (!declaration2) {
214777
- const exported = source2.statements.find(ts31.isExportAssignment);
214977
+ const exported = source2.statements.find(ts33.isExportAssignment);
214778
214978
  const module = resolveObject(exported?.expression, source2);
214779
214979
  const screens = resolveObject(property(module, "screens"), source2);
214780
214980
  registry2 = resolveObject(property(screens, "exact"), source2);
@@ -214782,11 +214982,11 @@ function screenActions2(contentDir2) {
214782
214982
  if (!registry2) throw Error("dev/index.ts screen registry cannot be statically inspected.");
214783
214983
  const result = /* @__PURE__ */ new Map();
214784
214984
  for (const item2 of registry2.properties) {
214785
- if (!ts31.isPropertyAssignment(item2) || !ts31.isIdentifier(item2.name) && !ts31.isStringLiteral(item2.name)) {
214985
+ if (!ts33.isPropertyAssignment(item2) || !ts33.isIdentifier(item2.name) && !ts33.isStringLiteral(item2.name)) {
214786
214986
  throw Error("dev/index.ts screen registry contains entries that cannot be statically inspected.");
214787
214987
  }
214788
214988
  const screen = resolveScreenObject(item2.initializer, source2);
214789
- if (!screen || screen.properties.some(ts31.isSpreadAssignment)) {
214989
+ if (!screen || screen.properties.some(ts33.isSpreadAssignment)) {
214790
214990
  result.set(item2.name.text, { actions: [], error: "ScreenDescriptor cannot be statically inspected." });
214791
214991
  continue;
214792
214992
  }
@@ -215166,9 +215366,9 @@ __export(shell_warnings_exports, {
215166
215366
  });
215167
215367
  import { existsSync as existsSync107, readFileSync as readFileSync119 } from "node:fs";
215168
215368
  import { join as join108 } from "node:path";
215169
- import ts32 from "typescript";
215369
+ import ts34 from "typescript";
215170
215370
  function drawerRows(configText) {
215171
- const file2 = ts32.createSourceFile("config.ts", configText, ts32.ScriptTarget.Latest, true, ts32.ScriptKind.TS);
215371
+ const file2 = ts34.createSourceFile("config.ts", configText, ts34.ScriptTarget.Latest, true, ts34.ScriptKind.TS);
215172
215372
  return drawerOf(file2)?.items?.elements.length ?? 0;
215173
215373
  }
215174
215374
  function keptReason(dir) {
@@ -267640,19 +267840,19 @@ __export(app_services_exports, {
267640
267840
  appLevelServices: () => appLevelServices,
267641
267841
  definedServices: () => definedServices
267642
267842
  });
267643
- import ts33 from "typescript";
267843
+ import ts35 from "typescript";
267644
267844
  import { existsSync as existsSync125, readFileSync as readFileSync148 } from "node:fs";
267645
267845
  import { join as join158 } from "node:path";
267646
267846
  function definedServices(source2, fileName = "worker.ts") {
267647
- const file2 = ts33.createSourceFile(fileName, source2, ts33.ScriptTarget.Latest, true, ts33.ScriptKind.TS);
267847
+ const file2 = ts35.createSourceFile(fileName, source2, ts35.ScriptTarget.Latest, true, ts35.ScriptKind.TS);
267648
267848
  const names2 = [];
267649
267849
  const visit = (node4) => {
267650
- if (ts33.isCallExpression(node4)) {
267651
- const callee = ts33.isIdentifier(node4.expression) ? node4.expression.text : ts33.isPropertyAccessExpression(node4.expression) ? node4.expression.name.text : "";
267850
+ if (ts35.isCallExpression(node4)) {
267851
+ const callee = ts35.isIdentifier(node4.expression) ? node4.expression.text : ts35.isPropertyAccessExpression(node4.expression) ? node4.expression.name.text : "";
267652
267852
  const first = node4.arguments[0];
267653
- if (/^defineService[0-9]*$/.test(callee) && first && ts33.isStringLiteralLike(first)) names2.push(first.text);
267853
+ if (/^defineService[0-9]*$/.test(callee) && first && ts35.isStringLiteralLike(first)) names2.push(first.text);
267654
267854
  }
267655
- ts33.forEachChild(node4, visit);
267855
+ ts35.forEachChild(node4, visit);
267656
267856
  };
267657
267857
  visit(file2);
267658
267858
  return names2;
@@ -268123,7 +268323,7 @@ var init_coverage2 = __esm({
268123
268323
  // src/one-app/apply-navigation.ts
268124
268324
  import { existsSync as existsSync127, readFileSync as readFileSync151 } from "node:fs";
268125
268325
  import { join as join161 } from "node:path";
268126
- import ts34 from "typescript";
268326
+ import ts36 from "typescript";
268127
268327
  function pagesWithoutScreen(plan, planned2) {
268128
268328
  const have = new Map((plan.pages ?? []).map((page) => [page.layoutItemId, page]));
268129
268329
  const missing4 = /* @__PURE__ */ new Map();
@@ -268156,14 +268356,14 @@ ${indent}`);
268156
268356
  }
268157
268357
  function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268158
268358
  const kept = (reason) => ({ source: source2, status: "kept", tabIds: [], repointed: 0, reason });
268159
- const file2 = ts34.createSourceFile(fileName, source2, ts34.ScriptTarget.Latest, true, ts34.ScriptKind.TS);
268359
+ const file2 = ts36.createSourceFile(fileName, source2, ts36.ScriptTarget.Latest, true, ts36.ScriptKind.TS);
268160
268360
  const app2 = defineAppLiteral(file2);
268161
268361
  const navigation = app2 && objectOf(property2(app2, "navigation"));
268162
268362
  if (!navigation) return kept("config.ts has no `navigation: { \u2026 }` object literal in its defineApp call");
268163
268363
  const tabBar = objectOf(property2(navigation, "tabBar"));
268164
268364
  const itemsNode = tabBar && property2(tabBar, "items");
268165
268365
  const items = itemsNode && unwrap(itemsNode.initializer);
268166
- if (!items || !ts34.isArrayLiteralExpression(items)) return kept("`navigation.tabBar.items` is not an array literal this step can rewrite");
268366
+ if (!items || !ts36.isArrayLiteralExpression(items)) return kept("`navigation.tabBar.items` is not an array literal this step can rewrite");
268167
268367
  if (!plan.tabs.length) return kept("the generated tabs file lists no tabs");
268168
268368
  const taken2 = /* @__PURE__ */ new Set();
268169
268369
  const tabs = plan.tabs.map((tab) => ({ tab, id: tabIdFor(tab, taken2) }));
@@ -268174,7 +268374,7 @@ function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268174
268374
  });
268175
268375
  const splices = [{ at: items.getStart(file2), end: items.end, text: indentedJson(written, file2, items) }];
268176
268376
  const navKind = property2(navigation, "navKind");
268177
- if (navKind && ts34.isStringLiteralLike(unwrap(navKind.initializer)) && unwrap(navKind.initializer).text !== plan.navKind) {
268377
+ if (navKind && ts36.isStringLiteralLike(unwrap(navKind.initializer)) && unwrap(navKind.initializer).text !== plan.navKind) {
268178
268378
  const value2 = unwrap(navKind.initializer);
268179
268379
  splices.push({ at: value2.getStart(file2), end: value2.end, text: JSON.stringify(plan.navKind) });
268180
268380
  }
@@ -268184,18 +268384,18 @@ function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268184
268384
  const newScreenOf = new Map(tabs.map(({ tab, id }) => [id, tab.screenId]));
268185
268385
  const reused = new Set(items.elements.flatMap((element) => {
268186
268386
  const entry = unwrap(element);
268187
- if (!ts34.isObjectLiteralExpression(entry)) return [];
268387
+ if (!ts36.isObjectLiteralExpression(entry)) return [];
268188
268388
  const id = stringOf4(property2(entry, "id")), screenId = stringOf4(property2(entry, "screenId"));
268189
268389
  return id && newScreenOf.has(id) && newScreenOf.get(id) !== screenId ? [id] : [];
268190
268390
  }));
268191
268391
  let repointed = 0;
268192
268392
  const links = property2(navigation, "linkableScreens");
268193
268393
  const linkItems = links && unwrap(links.initializer);
268194
- if (linkItems && ts34.isArrayLiteralExpression(linkItems)) {
268394
+ if (linkItems && ts36.isArrayLiteralExpression(linkItems)) {
268195
268395
  const parentOf2 = /* @__PURE__ */ new Map();
268196
268396
  for (const element of linkItems.elements) {
268197
268397
  const entry = unwrap(element);
268198
- if (ts34.isObjectLiteralExpression(entry)) parentOf2.set(stringOf4(property2(entry, "screenId")), stringOf4(property2(entry, "parentScreenId")));
268398
+ if (ts36.isObjectLiteralExpression(entry)) parentOf2.set(stringOf4(property2(entry, "screenId")), stringOf4(property2(entry, "parentScreenId")));
268199
268399
  }
268200
268400
  const ownerOf = (screenId, seen = /* @__PURE__ */ new Set()) => {
268201
268401
  if (!screenId || seen.has(screenId)) return void 0;
@@ -268204,10 +268404,10 @@ function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268204
268404
  };
268205
268405
  for (const element of linkItems.elements) {
268206
268406
  const entry = unwrap(element);
268207
- if (!ts34.isObjectLiteralExpression(entry)) continue;
268407
+ if (!ts36.isObjectLiteralExpression(entry)) continue;
268208
268408
  const tabId = property2(entry, "tabId");
268209
268409
  const value2 = tabId && unwrap(tabId.initializer);
268210
- if (!value2 || !ts34.isStringLiteralLike(value2) || value2.text === "") continue;
268410
+ if (!value2 || !ts36.isStringLiteralLike(value2) || value2.text === "") continue;
268211
268411
  if (valid3.has(value2.text) && !reused.has(value2.text)) continue;
268212
268412
  const owner = ownerOf(stringOf4(property2(entry, "screenId"))) ?? "";
268213
268413
  if (owner === value2.text) continue;
@@ -268220,7 +268420,7 @@ function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268220
268420
  }
268221
268421
  function stringOf4(node4) {
268222
268422
  const value2 = node4 && unwrap(node4.initializer);
268223
- return value2 && ts34.isStringLiteralLike(value2) ? value2.text : "";
268423
+ return value2 && ts36.isStringLiteralLike(value2) ? value2.text : "";
268224
268424
  }
268225
268425
  function definedScreens(contentDir2) {
268226
268426
  try {
@@ -268369,7 +268569,7 @@ var init_apply_navigation = __esm({
268369
268569
  FALLBACK_ICON = "list";
268370
268570
  objectOf = (node4) => {
268371
268571
  const value2 = node4 && unwrap(node4.initializer);
268372
- return value2 && ts34.isObjectLiteralExpression(value2) ? value2 : void 0;
268572
+ return value2 && ts36.isObjectLiteralExpression(value2) ? value2 : void 0;
268373
268573
  };
268374
268574
  }
268375
268575
  });
@@ -268394,7 +268594,7 @@ var init_bookings = __esm({
268394
268594
  // src/one-app/starter-keep-list.ts
268395
268595
  import { existsSync as existsSync128, readFileSync as readFileSync152, writeFileSync as writeFileSync60 } from "node:fs";
268396
268596
  import { join as join162 } from "node:path";
268397
- import ts35 from "typescript";
268597
+ import ts37 from "typescript";
268398
268598
  function screensOpenedBy(node4, found = /* @__PURE__ */ new Set()) {
268399
268599
  if (Array.isArray(node4)) {
268400
268600
  for (const child3 of node4) screensOpenedBy(child3, found);
@@ -268599,21 +268799,21 @@ ${block(columns)}${spec.slice(lastRowEnd)}`, added };
268599
268799
  ${spec.slice(end2).replace(/^\n*/, "\n")}`, added };
268600
268800
  }
268601
268801
  function sharedModulesOf(workerSource) {
268602
- const file2 = ts35.createSourceFile("worker.ts", workerSource, ts35.ScriptTarget.Latest, true);
268802
+ const file2 = ts37.createSourceFile("worker.ts", workerSource, ts37.ScriptTarget.Latest, true);
268603
268803
  const modules = [];
268604
268804
  for (const statement of file2.statements) {
268605
- if (!ts35.isImportDeclaration(statement) || !ts35.isStringLiteral(statement.moduleSpecifier)) continue;
268805
+ if (!ts37.isImportDeclaration(statement) || !ts37.isStringLiteral(statement.moduleSpecifier)) continue;
268606
268806
  const specifier = statement.moduleSpecifier.text;
268607
268807
  if (specifier.startsWith("../_shared/") && specifier.endsWith(".js")) modules.push(specifier.slice("../_shared/".length, -".js".length));
268608
268808
  }
268609
268809
  return modules;
268610
268810
  }
268611
268811
  function literalsOf(text32) {
268612
- const file2 = ts35.createSourceFile("module.ts", text32, ts35.ScriptTarget.Latest, true);
268812
+ const file2 = ts37.createSourceFile("module.ts", text32, ts37.ScriptTarget.Latest, true);
268613
268813
  const out2 = [];
268614
268814
  const visit = (node4) => {
268615
- if (ts35.isStringLiteral(node4) || ts35.isNoSubstitutionTemplateLiteral(node4) || ts35.isTemplateHead(node4)) out2.push(node4.text);
268616
- ts35.forEachChild(node4, visit);
268815
+ if (ts37.isStringLiteral(node4) || ts37.isNoSubstitutionTemplateLiteral(node4) || ts37.isTemplateHead(node4)) out2.push(node4.text);
268816
+ ts37.forEachChild(node4, visit);
268617
268817
  };
268618
268818
  visit(file2);
268619
268819
  return out2;
@@ -268667,21 +268867,21 @@ var init_starter_keep_list = __esm({
268667
268867
  // src/one-app/custom-widget-component.ts
268668
268868
  import { existsSync as existsSync129, readFileSync as readFileSync153 } from "node:fs";
268669
268869
  import { join as join163 } from "node:path";
268670
- import ts36 from "typescript";
268870
+ import ts38 from "typescript";
268671
268871
  function exportsWidgetRegister(source2) {
268672
- const file2 = ts36.createSourceFile("widget.ts", source2, ts36.ScriptTarget.Latest, false, ts36.ScriptKind.TS);
268673
- const exported = (node4) => !!(ts36.canHaveModifiers(node4) && ts36.getModifiers(node4)?.some((m2) => m2.kind === ts36.SyntaxKind.ExportKeyword));
268872
+ const file2 = ts38.createSourceFile("widget.ts", source2, ts38.ScriptTarget.Latest, false, ts38.ScriptKind.TS);
268873
+ const exported = (node4) => !!(ts38.canHaveModifiers(node4) && ts38.getModifiers(node4)?.some((m2) => m2.kind === ts38.SyntaxKind.ExportKeyword));
268674
268874
  const unwrap6 = (e2) => {
268675
- while (e2 && (ts36.isParenthesizedExpression(e2) || ts36.isAsExpression(e2) || ts36.isSatisfiesExpression(e2))) e2 = e2.expression;
268875
+ while (e2 && (ts38.isParenthesizedExpression(e2) || ts38.isAsExpression(e2) || ts38.isSatisfiesExpression(e2))) e2 = e2.expression;
268676
268876
  return e2;
268677
268877
  };
268678
- const isFunctionNamed = (name) => file2.statements.some((statement) => ts36.isFunctionDeclaration(statement) && statement.name?.text === name && !!statement.body || ts36.isVariableStatement(statement) && (statement.declarationList.flags & ts36.NodeFlags.Const) !== 0 && statement.declarationList.declarations.some((d2) => {
268878
+ const isFunctionNamed = (name) => file2.statements.some((statement) => ts38.isFunctionDeclaration(statement) && statement.name?.text === name && !!statement.body || ts38.isVariableStatement(statement) && (statement.declarationList.flags & ts38.NodeFlags.Const) !== 0 && statement.declarationList.declarations.some((d2) => {
268679
268879
  const init = unwrap6(d2.initializer);
268680
- return ts36.isIdentifier(d2.name) && d2.name.text === name && !!init && (ts36.isArrowFunction(init) || ts36.isFunctionExpression(init));
268880
+ return ts38.isIdentifier(d2.name) && d2.name.text === name && !!init && (ts38.isArrowFunction(init) || ts38.isFunctionExpression(init));
268681
268881
  }));
268682
268882
  for (const statement of file2.statements) {
268683
- if ((ts36.isFunctionDeclaration(statement) || ts36.isVariableStatement(statement)) && exported(statement) && isFunctionNamed(WIDGET_REGISTER) && (ts36.isFunctionDeclaration(statement) ? statement.name?.text === WIDGET_REGISTER : statement.declarationList.declarations.some((d2) => ts36.isIdentifier(d2.name) && d2.name.text === WIDGET_REGISTER))) return true;
268684
- if (ts36.isExportDeclaration(statement) && !statement.moduleSpecifier && statement.exportClause && ts36.isNamedExports(statement.exportClause)) {
268883
+ if ((ts38.isFunctionDeclaration(statement) || ts38.isVariableStatement(statement)) && exported(statement) && isFunctionNamed(WIDGET_REGISTER) && (ts38.isFunctionDeclaration(statement) ? statement.name?.text === WIDGET_REGISTER : statement.declarationList.declarations.some((d2) => ts38.isIdentifier(d2.name) && d2.name.text === WIDGET_REGISTER))) return true;
268884
+ if (ts38.isExportDeclaration(statement) && !statement.moduleSpecifier && statement.exportClause && ts38.isNamedExports(statement.exportClause)) {
268685
268885
  const element = statement.exportClause.elements.find((e2) => e2.name.text === WIDGET_REGISTER);
268686
268886
  if (element && isFunctionNamed((element.propertyName ?? element.name).text)) return true;
268687
268887
  }
@@ -268873,7 +269073,7 @@ var init_widgets_plan = __esm({
268873
269073
  // src/one-app/generate-cli.ts
268874
269074
  import { existsSync as existsSync131, mkdirSync as mkdirSync59, readdirSync as readdirSync56, readFileSync as readFileSync155, rmSync as rmSync37, writeFileSync as writeFileSync61 } from "node:fs";
268875
269075
  import { dirname as dirname74, join as join165, resolve as resolve101 } from "node:path";
268876
- import ts37 from "typescript";
269076
+ import ts39 from "typescript";
268877
269077
  import { relative as relativePath, isAbsolute as isAbsolute21 } from "node:path";
268878
269078
  function removeStaleGeneratedWorkers(contentDir2, current) {
268879
269079
  const root = join165(contentDir2, "tier5-src");
@@ -269179,13 +269379,13 @@ function keyedWorkerCopy(contentDir2, locale, source2) {
269179
269379
  function copyParamKeys(source2) {
269180
269380
  const keys2 = /* @__PURE__ */ new Set();
269181
269381
  const visit = (node4) => {
269182
- if (ts37.isCallExpression(node4) && ts37.isIdentifier(node4.expression) && node4.expression.text === "copyParam") {
269382
+ if (ts39.isCallExpression(node4) && ts39.isIdentifier(node4.expression) && node4.expression.text === "copyParam") {
269183
269383
  const [key4] = node4.arguments;
269184
- if (key4 && ts37.isStringLiteralLike(key4)) keys2.add(key4.text);
269384
+ if (key4 && ts39.isStringLiteralLike(key4)) keys2.add(key4.text);
269185
269385
  }
269186
- ts37.forEachChild(node4, visit);
269386
+ ts39.forEachChild(node4, visit);
269187
269387
  };
269188
- visit(ts37.createSourceFile("module.ts", source2, ts37.ScriptTarget.Latest, true));
269388
+ visit(ts39.createSourceFile("module.ts", source2, ts39.ScriptTarget.Latest, true));
269189
269389
  return [...keys2];
269190
269390
  }
269191
269391
  var GENERATE_USAGE, idsFile, homeFile, shellArg, generatedPagesFile;
@@ -271747,7 +271947,7 @@ __export(validate_design_exports, {
271747
271947
  import { randomBytes as randomBytes22 } from "node:crypto";
271748
271948
  import { closeSync as closeSync12, constants as constants10, existsSync as existsSync138, lstatSync as lstatSync37, openSync as openSync11, readFileSync as readFileSync162, realpathSync as realpathSync21, renameSync as renameSync22, unlinkSync as unlinkSync9, writeFileSync as writeFileSync64 } from "node:fs";
271749
271949
  import { dirname as dirname76, isAbsolute as isAbsolute22, join as join173, relative as relative31, resolve as resolve105, sep as sep33, win32 } from "node:path";
271750
- import ts38 from "typescript";
271950
+ import ts40 from "typescript";
271751
271951
  function readColorToken(tokens2, name) {
271752
271952
  const entry = obj24(tokens2.colors)?.[name];
271753
271953
  if (typeof entry === "string") return { value: entry, origin: "token" };
@@ -271918,11 +272118,11 @@ function tokensLocation(contentDir2) {
271918
272118
  }
271919
272119
  function literalPolicyValue(expression) {
271920
272120
  const node4 = unwrap(expression);
271921
- if (ts38.isStringLiteralLike(node4)) return node4.text;
271922
- if (!ts38.isObjectLiteralExpression(node4)) throw new Error("The app idiom policy is computed and cannot be checked.");
272121
+ if (ts40.isStringLiteralLike(node4)) return node4.text;
272122
+ if (!ts40.isObjectLiteralExpression(node4)) throw new Error("The app idiom policy is computed and cannot be checked.");
271923
272123
  const value2 = {};
271924
272124
  for (const property3 of node4.properties) {
271925
- if (!ts38.isPropertyAssignment(property3) || !property3.name || !ts38.isIdentifier(property3.name) && !ts38.isStringLiteral(property3.name)) {
272125
+ if (!ts40.isPropertyAssignment(property3) || !property3.name || !ts40.isIdentifier(property3.name) && !ts40.isStringLiteral(property3.name)) {
271926
272126
  throw new Error("The app idiom policy is computed and cannot be checked.");
271927
272127
  }
271928
272128
  value2[property3.name.text] = literalPolicyValue(property3.initializer);
@@ -271935,7 +272135,7 @@ function activeIdiomNames(contentDir2, tokens2) {
271935
272135
  for (const name of ["config.ts", "config.js", "himi.config.ts"]) {
271936
272136
  const file2 = join173(contentDir2, name);
271937
272137
  if (!existsSync138(file2)) continue;
271938
- const source2 = ts38.createSourceFile(file2, readFileSync162(file2, "utf8"), ts38.ScriptTarget.Latest, true);
272138
+ const source2 = ts40.createSourceFile(file2, readFileSync162(file2, "utf8"), ts40.ScriptTarget.Latest, true);
271939
272139
  const app2 = defineAppLiteral(source2);
271940
272140
  if (!app2) throw new Error("The app config cannot be inspected for active idiom overlays.");
271941
272141
  const field = lookup(app2, "idiom");
@@ -277947,57 +278147,57 @@ var init_preview_assets_generated = __esm({
277947
278147
  init_define_HHP_CATALOG();
277948
278148
  init_preview_assets_format();
277949
278149
  PREVIEW_ASSET_MANIFEST = [
277950
- { key: "assets/DashboardHost-CmxkZdxD.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "889534c4a1e70a4c83ffdd04dc4a17e6ca62ad8c5d84b6fa90fdccb006bc135e" },
277951
- { key: "assets/DevDrawer-B5CbOJ5l.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "a60a7c31c5b09d0b2b756b7b4988ce5039662f73817356392ddd1ceedd493230" },
277952
- { key: "assets/IdiomCompare-Dm6eQkgH.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "3acb56c1bb50f7114ceaa43d92571e5ab1dccd0b9283fba3ad6102149e151163" },
277953
- { key: "assets/LightboxViewer-BeDlB9da.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15970, sha256: "886a5fba6e7677f721cc9e45397a841d1cb4cdb8d01119f4f55f69ec0c4db53d" },
277954
- { key: "assets/OfflineReadingBar-CmzHoKy8.js", contentType: "application/javascript; charset=utf-8", offset: 37672, length: 1761, sha256: "e92947ed0ca2103dbd62a2f6daf8f0d65ee0e0cdd736dd498705800cd4de9e01" },
277955
- { key: "assets/PhonePreviewControl-DSCr1Ceu.js", contentType: "application/javascript; charset=utf-8", offset: 39433, length: 37851, sha256: "55ef0a5d07044ac940d0148de5d9350a756b862863d8e6f72aa839f58eb7e874" },
277956
- { key: "assets/SchemeCompare-BZOqzbSJ.js", contentType: "application/javascript; charset=utf-8", offset: 77284, length: 1858, sha256: "bd8d7b2cf1cb00b851096a06fb621eae6b61d6ee41f92c39f1894c94aac12a1e" },
277957
- { key: "assets/TopBandLayer-BPoqM6MV.js", contentType: "application/javascript; charset=utf-8", offset: 79142, length: 1275, sha256: "a2b91d6557a104dd0dcc396407d82e1a2c2e7ec528ca83f559a916bed2387a5a" },
277958
- { key: "assets/TopBarSearchStates-FnmS57SO.js", contentType: "application/javascript; charset=utf-8", offset: 80417, length: 4069, sha256: "0e538ff04858d79a93c715fa335c3e9645299a65e27033923a6c80966c820dbf" },
277959
- { key: "assets/WixFrogTelemetrySink-C0SSAHLb.js", contentType: "application/javascript; charset=utf-8", offset: 84486, length: 3586, sha256: "9552aa5ae26583c013b00c3ac7e05c80621864cc07ed067c8a008bac79bb9522" },
278150
+ { key: "assets/DashboardHost-DSyw9Zjk.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "048f98021313e4e4c7b60cd2d9582346cbc299007f1f5423f0d17aab18b6c6b7" },
278151
+ { key: "assets/DevDrawer-7FDW10ku.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "9b459d0b6faa6866c61a0cbcc8d0db23e695a50704508966d13658d48f0f7432" },
278152
+ { key: "assets/IdiomCompare-hLULF0x0.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "a79b985828d2ffb4e0be99ee261f72efac4f558ee4c3fbc25149df76d5597875" },
278153
+ { key: "assets/LightboxViewer-B8kPSB1Y.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15970, sha256: "eaa4aef1d34022c69220c2d532ceecd953a486ae286246a47a2e6b608e95f038" },
278154
+ { key: "assets/OfflineReadingBar-Dtw_76f3.js", contentType: "application/javascript; charset=utf-8", offset: 37672, length: 1761, sha256: "419ee64aa2673fee4171c32399144f425b2d1a29c2cfee0a1dd231aa40a3a4a7" },
278155
+ { key: "assets/PhonePreviewControl-BgUreQJ_.js", contentType: "application/javascript; charset=utf-8", offset: 39433, length: 37851, sha256: "74f57760a725105f77218690069fbf22c2cd50924e61716442065e623f3227a4" },
278156
+ { key: "assets/SchemeCompare-Vfo7K-39.js", contentType: "application/javascript; charset=utf-8", offset: 77284, length: 1858, sha256: "ec2053b6e61c930071b0c4014450fe74d1f55a7230bfe760df1fe50255cedcb5" },
278157
+ { key: "assets/TopBandLayer-CkcsECh0.js", contentType: "application/javascript; charset=utf-8", offset: 79142, length: 1275, sha256: "544f18e6e17a261a66d468429ac784d77a3979373abdd9bd0591127f659239ed" },
278158
+ { key: "assets/TopBarSearchStates-Bu8V0HRS.js", contentType: "application/javascript; charset=utf-8", offset: 80417, length: 4069, sha256: "3c01cef2a3f9b0e698ed093e7ecbc54920782ab31fd1ed4dbbb6a0a4588a5f79" },
278159
+ { key: "assets/WixFrogTelemetrySink-DoXTPgkt.js", contentType: "application/javascript; charset=utf-8", offset: 84486, length: 3586, sha256: "8d06bab8303305a2721f8ca2dc1554f2980f31598065a04bb46c8ed5e1b8161a" },
277960
278160
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 88072, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
277961
278161
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 90264, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
277962
- { key: "assets/catalogFontFaces-CuMGTd7j.js", contentType: "application/javascript; charset=utf-8", offset: 125890, length: 1111, sha256: "4687d31be8096624653437cd02a910cd5f0c1d7519eec51ed3e5a003cae30ff0" },
278162
+ { key: "assets/catalogFontFaces-BjZxhRK2.js", contentType: "application/javascript; charset=utf-8", offset: 125890, length: 1111, sha256: "412a981da66fa9e3a4f4528847080df5e5c6ca150a485252589ef05322191aae" },
277963
278163
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 127001, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
277964
- { key: "assets/files-transfer-BNlfwh5F.js", contentType: "application/javascript; charset=utf-8", offset: 129568, length: 9311, sha256: "52661386c152ea5f2a4bf3702af015d7399c5d1bf003a79b1571ea8a7fede5d7" },
278164
+ { key: "assets/files-transfer-DAIO4d-D.js", contentType: "application/javascript; charset=utf-8", offset: 129568, length: 9311, sha256: "d4196a6f9004733def92bcf9470576c0becfeb59924bdb741dc19c39f343df01" },
277965
278165
  { key: "assets/frogActionMap-DzUppDSb.js", contentType: "application/javascript; charset=utf-8", offset: 138879, length: 1172, sha256: "6d59e1dd1c68aaeb2d9927693f6e107c354cc82a611979679c137277f29e14c9" },
277966
- { key: "assets/frogApiRules-vYwkTwg7.js", contentType: "application/javascript; charset=utf-8", offset: 140051, length: 2207, sha256: "134b592aa0004033ba599330512b742e9d7a5e5fee05475f433e34e3edd22659" },
278166
+ { key: "assets/frogApiRules-C5gr0zO5.js", contentType: "application/javascript; charset=utf-8", offset: 140051, length: 2207, sha256: "3be4774e777549b4d3f40c82782bcdae2f1d47252c5111ab00e12460560f15a4" },
277967
278167
  { key: "assets/frogScreenMap-LM0nfzDQ.js", contentType: "application/javascript; charset=utf-8", offset: 142258, length: 1096, sha256: "991b931a02a029c9c4514f0ccbdc8a07f4cf2168ea3e23ffe5e244327fa05141" },
277968
278168
  { key: "assets/frogScreenNavArgs-mIYDwUYX.js", contentType: "application/javascript; charset=utf-8", offset: 143354, length: 780, sha256: "6c9e52135322e0a752b57ef6f360d71400cb77414b4f29d480230ae174201230" },
277969
278169
  { key: "assets/glassPreviewBrowser-OVmIRgHt.js", contentType: "application/javascript; charset=utf-8", offset: 144134, length: 6800, sha256: "3671697a4f66a1f5f68610fab57d590630be70be934f59675ef1bda9a96e6fe3" },
277970
278170
  { key: "assets/godot-pack-cache-Cuhrw41M.js", contentType: "application/javascript; charset=utf-8", offset: 150934, length: 1626, sha256: "70b16367b8938ebd6eb8494a2b472171dd2acdcb452c52f35f140eb8ede9c0b7" },
277971
278171
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 152560, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
277972
- { key: "assets/index-FRd-7j3m.js", contentType: "application/javascript; charset=utf-8", offset: 155264, length: 1748692, sha256: "0c2c957076b5ad228c7b559f8ac063f9d540861e8f6f91b5a5fd26b640d5f31b" },
277973
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1903956, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
277974
- { key: "assets/network-watches-BzUbqhPs.js", contentType: "application/javascript; charset=utf-8", offset: 1911707, length: 1299, sha256: "cf0363d66dfdc46653dc8992ffa25f85fb19b7cde8e907c7c6bf12908cd45430" },
277975
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1913006, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
277976
- { key: "assets/pdf-C3rJCYHp.js", contentType: "application/javascript; charset=utf-8", offset: 1923537, length: 488215, sha256: "4a6f910bf580b4fbc462abad75f9f9a8274914d66d468efef11bb741e11f834e" },
277977
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2411752, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
277978
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2411842, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
277979
- { key: "assets/pdfDocument-BmbO2Yaw.js", contentType: "application/javascript; charset=utf-8", offset: 3728876, length: 3836, sha256: "a0837b0f9fc9094c5495a07b9fcd2c57c7ac36f67b5ed48e8d2870ce49b4ddf5" },
277980
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3732712, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
277981
- { key: "assets/scrollLinkedRuntime-BpoAtRvM.js", contentType: "application/javascript; charset=utf-8", offset: 3734978, length: 2278, sha256: "ee71bdc237e882ff884c811b72463b9780bf7e9433af2ef386035b19033637eb" },
277982
- { key: "assets/webviewBridgeHost-Bo9Y7eGN.js", contentType: "application/javascript; charset=utf-8", offset: 3737256, length: 9946, sha256: "d0133d20239da06edddcb54e975dc8673fee5857fe1e7e454a609364d484a9ee" },
277983
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3747202, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
277984
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3751812, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
277985
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4240396, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
277986
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4331320, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
277987
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4422304, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
277988
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4513284, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
277989
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4604156, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
277990
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4695136, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
277991
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4803772, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
277992
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4912856, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
277993
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 5021904, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
277994
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5129604, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
277995
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5217712, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
277996
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5224530, length: 4924, sha256: "1258caf3d295ce00f7c9597262d495277b110871709ecf719dd0ecb77f19e354" },
277997
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5229454, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
277998
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5245039, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
277999
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5246210, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
278000
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5270513, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
278172
+ { key: "assets/index-BnHI3Uuu.js", contentType: "application/javascript; charset=utf-8", offset: 155264, length: 1749363, sha256: "b09236fffee4f605a9544af5b3ff73ab93f6ed345beda7b42849874c0c49688a" },
278173
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1904627, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
278174
+ { key: "assets/network-watches-DQDis2s6.js", contentType: "application/javascript; charset=utf-8", offset: 1912378, length: 1299, sha256: "20999a7819ed5a2e321195867d2e2b413dc3f6e2df9f8aeedabf326f38743f32" },
278175
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1913677, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
278176
+ { key: "assets/pdf-C2Hy2Nzg.js", contentType: "application/javascript; charset=utf-8", offset: 1924208, length: 488215, sha256: "dd1ab57b35f99c571d48e6f87b0b43cb84e090091d517c830ea4f3dc02631fbd" },
278177
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2412423, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
278178
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2412513, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
278179
+ { key: "assets/pdfDocument-CAyEn_mG.js", contentType: "application/javascript; charset=utf-8", offset: 3729547, length: 3836, sha256: "858a7cfbc609bc2995b840324997b18a7acd6748f0cbf8be00c704c3b9994566" },
278180
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3733383, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
278181
+ { key: "assets/scrollLinkedRuntime-CDhS74IJ.js", contentType: "application/javascript; charset=utf-8", offset: 3735649, length: 2278, sha256: "e82f61f374f35d7f8d4cd2c0434d952c50ce1db9bb7c7b0982e07a0c1e64d98a" },
278182
+ { key: "assets/webviewBridgeHost-Db5IfySN.js", contentType: "application/javascript; charset=utf-8", offset: 3737927, length: 9946, sha256: "6bdaf648d3162ab4a0bb57ae85b981f7667b4ec0eb4688202aace64ab882b608" },
278183
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3747873, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
278184
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3752483, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
278185
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4241067, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
278186
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4331991, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
278187
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4422975, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
278188
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4513955, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
278189
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4604827, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
278190
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4695807, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
278191
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4804443, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
278192
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4913527, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
278193
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 5022575, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
278194
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5130275, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
278195
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5218383, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
278196
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5225201, length: 4924, sha256: "e4b961edff321d5ca41aaf12cea33169094b1f6f46133b99223ec83bd159ee19" },
278197
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5230125, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
278198
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5245710, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
278199
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5246881, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
278200
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5271184, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
278001
278201
  ];
278002
278202
  }
278003
278203
  });
@@ -286311,11 +286511,11 @@ var init_redact = __esm({
286311
286511
  // src/iap-config-edit.ts
286312
286512
  import { existsSync as existsSync152, readFileSync as readFileSync179 } from "node:fs";
286313
286513
  import { basename as basename42, join as join189 } from "node:path";
286314
- import ts39 from "typescript";
286514
+ import ts41 from "typescript";
286315
286515
  function bindPurchasesAppInConfig(source2, options2) {
286316
286516
  const fileName = options2.fileName ?? "config.ts";
286317
- const kind = fileName.endsWith(".ts") ? ts39.ScriptKind.TS : ts39.ScriptKind.JS;
286318
- const file2 = ts39.createSourceFile(fileName, source2, ts39.ScriptTarget.Latest, true, kind);
286517
+ const kind = fileName.endsWith(".ts") ? ts41.ScriptKind.TS : ts41.ScriptKind.JS;
286518
+ const file2 = ts41.createSourceFile(fileName, source2, ts41.ScriptTarget.Latest, true, kind);
286319
286519
  const wanted = `wixIap: { purchasesAppId: ${JSON.stringify(options2.purchasesAppId)} }`;
286320
286520
  const unchanged = (result) => ({ source: source2, changed: false, applied: [], conflicts: [], instructions: [], ...result });
286321
286521
  const app2 = defineAppLiteral(file2);
@@ -286343,7 +286543,7 @@ function siteFinding(app2, siteId, fileName) {
286343
286543
  if (login2.kind !== "member") return { instruction: `${fileName} does not write auth as a WixConsumerAuthProvider({ \u2026 }) call it can read, so ${check}` };
286344
286544
  const found = lookup(login2.literal, "siteId");
286345
286545
  const value2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
286346
- if (!value2 || !ts39.isStringLiteralLike(value2)) return { instruction: `auth's siteId is not written as a literal, so ${check}` };
286546
+ if (!value2 || !ts41.isStringLiteralLike(value2)) return { instruction: `auth's siteId is not written as a literal, so ${check}` };
286347
286547
  if (value2.text.toLowerCase() === siteId.toLowerCase()) return {};
286348
286548
  return { conflict: `auth's siteId is "${value2.text}", but the purchases app is registered on site "${siteId}". A build bakes the binding only when they match, so ${fileName} was not edited.` };
286349
286549
  }
@@ -286354,7 +286554,7 @@ function bundleFinding(app2, { bundleId, storeBundleId }, fileName) {
286354
286554
  }
286355
286555
  const found = lookup(app2, "bundleId");
286356
286556
  const value2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
286357
- if (!value2 || !ts39.isStringLiteralLike(value2)) {
286557
+ if (!value2 || !ts41.isStringLiteralLike(value2)) {
286358
286558
  return { instruction: `${fileName} does not write bundleId as a literal: make sure this app builds bundle ${JSON.stringify(bundleId)}, the one the purchases app is registered for.` };
286359
286559
  }
286360
286560
  if (value2.text === bundleId || defaultProdBundleId(value2.text) === bundleId) return {};
@@ -286364,23 +286564,23 @@ function bindingFinding2(app2, file2, purchasesAppId, wanted, fileName) {
286364
286564
  const wixIap = lookup(app2, "wixIap");
286365
286565
  if (wixIap.kind === "absent") return { splice: appendProperties(app2, file2, [`${wanted},`]), applied: "wixIap.purchasesAppId" };
286366
286566
  const literal5 = wixIap.kind === "written" ? unwrap(wixIap.node.initializer) : void 0;
286367
- if (!literal5 || !ts39.isObjectLiteralExpression(literal5)) return { instruction: `${fileName} computes wixIap, so it was not edited: it must evaluate to ${wanted}.` };
286567
+ if (!literal5 || !ts41.isObjectLiteralExpression(literal5)) return { instruction: `${fileName} computes wixIap, so it was not edited: it must evaluate to ${wanted}.` };
286368
286568
  const current = lookup(literal5, "purchasesAppId");
286369
286569
  if (current.kind === "absent") return { splice: appendProperties(literal5, file2, [`purchasesAppId: ${JSON.stringify(purchasesAppId)},`]), applied: "wixIap.purchasesAppId" };
286370
286570
  const value2 = current.kind === "written" ? unwrap(current.node.initializer) : void 0;
286371
- if (!value2 || !ts39.isStringLiteralLike(value2)) return { instruction: `${fileName} computes wixIap.purchasesAppId, so it was not edited: it must evaluate to ${JSON.stringify(purchasesAppId)}.` };
286571
+ if (!value2 || !ts41.isStringLiteralLike(value2)) return { instruction: `${fileName} computes wixIap.purchasesAppId, so it was not edited: it must evaluate to ${JSON.stringify(purchasesAppId)}.` };
286372
286572
  if (value2.text === purchasesAppId) return {};
286373
286573
  return { conflict: `${fileName} already binds purchases app "${value2.text}", but this site's purchases app for the bundle is "${purchasesAppId}". Nothing was changed; fix whichever is stale.` };
286374
286574
  }
286375
286575
  function capabilityFinding(app2, fileName) {
286376
286576
  const capabilities = lookup(app2, "capabilities");
286377
286577
  const list5 = capabilities.kind === "written" ? unwrap(capabilities.node.initializer) : void 0;
286378
- if (capabilities.kind !== "absent" && (!list5 || !ts39.isArrayLiteralExpression(list5))) {
286578
+ if (capabilities.kind !== "absent" && (!list5 || !ts41.isArrayLiteralExpression(list5))) {
286379
286579
  return { instruction: `Add "iap" to capabilities: the purchases app is baked only into a build that declares it, and ${fileName} does not list capabilities inline.` };
286380
286580
  }
286381
286581
  if (!list5) return { instruction: `Add capabilities: ["iap"] (with the app's other capabilities) to ${fileName}: the purchases app is baked only into a build that declares it.` };
286382
286582
  const elements2 = list5.elements;
286383
- if (elements2.some((e2) => ts39.isStringLiteralLike(e2) && e2.text === "iap")) return {};
286583
+ if (elements2.some((e2) => ts41.isStringLiteralLike(e2) && e2.text === "iap")) return {};
286384
286584
  const last = elements2[elements2.length - 1];
286385
286585
  return {
286386
286586
  splice: last ? { at: last.end, end: last.end, text: ', "iap"' } : { at: list5.getStart(), end: list5.end, text: '["iap"]' },
@@ -304237,7 +304437,7 @@ var init_header_badges_cli = __esm({
304237
304437
 
304238
304438
  // src/site-analyze/velo-source.ts
304239
304439
  import path from "node:path";
304240
- import ts40 from "typescript";
304440
+ import ts42 from "typescript";
304241
304441
  function applySourceEdits(source2, edits) {
304242
304442
  const chunks = [];
304243
304443
  let cursor = 0;
@@ -304255,13 +304455,13 @@ function redactVeloSource(source2, knownSecrets = []) {
304255
304455
  /\b(?:IST\.[\w.-]+|eyJ[\w-]+\.[\w-]+\.[\w-]+|(?:sk|rk)_(?:live|test)_[\w-]+|gh[pousr]_[\w]+|github_pat_[\w]+|AKIA[A-Z0-9]{16})\b/g,
304256
304456
  REDACTED2
304257
304457
  ).replace(/\b(?:Bearer|Basic)\s+[A-Za-z0-9._~+/=-]+/gi, REDACTED2).replace(/\b([a-z][a-z0-9+.-]*:\/\/)[^\s/'"`]+:[^\s/'"`]+@/gi, "$1[REDACTED]@").replace(/([?&](?:api[-_]?key|token|secret|password|signature)=)[^&#\s'"`]+/gi, "$1[REDACTED]");
304258
- const parsed = ts40.createSourceFile("backend.ts", source2, ts40.ScriptTarget.Latest, true);
304458
+ const parsed = ts42.createSourceFile("backend.ts", source2, ts42.ScriptTarget.Latest, true);
304259
304459
  const comments = /* @__PURE__ */ new Map();
304260
304460
  const visitComments = (node4) => {
304261
304461
  for (const range of [
304262
- ...ts40.getLeadingCommentRanges(source2, node4.pos) ?? [],
304263
- ...ts40.getTrailingCommentRanges(source2, node4.pos) ?? [],
304264
- ...ts40.getTrailingCommentRanges(source2, node4.end) ?? []
304462
+ ...ts42.getLeadingCommentRanges(source2, node4.pos) ?? [],
304463
+ ...ts42.getTrailingCommentRanges(source2, node4.pos) ?? [],
304464
+ ...ts42.getTrailingCommentRanges(source2, node4.end) ?? []
304265
304465
  ]) comments.set(range.pos, range.end);
304266
304466
  for (const child3 of node4.getChildren(parsed)) visitComments(child3);
304267
304467
  };
@@ -304280,22 +304480,22 @@ function redactVeloSource(source2, knownSecrets = []) {
304280
304480
  if (/^["'`][A-Za-z0-9_+/=-]{24,}["'`]$/.test(token)) return JSON.stringify(REDACTED2);
304281
304481
  return token;
304282
304482
  };
304283
- const clean4 = ts40.createSourceFile("backend.ts", source2, ts40.ScriptTarget.Latest, true);
304483
+ const clean4 = ts42.createSourceFile("backend.ts", source2, ts42.ScriptTarget.Latest, true);
304284
304484
  const masks = [];
304285
304485
  const collectMasks = (node4) => {
304286
304486
  const start2 = node4.getStart(clean4);
304287
- if (ts40.isRegularExpressionLiteral(node4)) {
304487
+ if (ts42.isRegularExpressionLiteral(node4)) {
304288
304488
  masks.push({ start: start2, end: node4.end, text: " ".repeat(node4.end - start2) });
304289
- } else if (ts40.isStringLiteral(node4) || ts40.isTemplateLiteralToken(node4)) {
304489
+ } else if (ts42.isStringLiteral(node4) || ts42.isTemplateLiteralToken(node4)) {
304290
304490
  masks.push({ start: start2, end: node4.end, text: source2.slice(start2, node4.end).replace(/;/g, " ") });
304291
304491
  }
304292
- ts40.forEachChild(node4, collectMasks);
304492
+ ts42.forEachChild(node4, collectMasks);
304293
304493
  };
304294
304494
  collectMasks(clean4);
304295
304495
  const assignmentContext = applySourceEdits(source2, masks);
304296
304496
  const edits = [];
304297
304497
  const visitLiterals = (node4) => {
304298
- if (ts40.isStringLiteral(node4) || ts40.isNoSubstitutionTemplateLiteral(node4) || ts40.isTemplateExpression(node4)) {
304498
+ if (ts42.isStringLiteral(node4) || ts42.isNoSubstitutionTemplateLiteral(node4) || ts42.isTemplateExpression(node4)) {
304299
304499
  const start2 = node4.getStart(clean4);
304300
304500
  const text32 = source2.slice(start2, node4.end);
304301
304501
  const redacted = redactLiteral(text32, start2);
@@ -304304,7 +304504,7 @@ function redactVeloSource(source2, knownSecrets = []) {
304304
304504
  return;
304305
304505
  }
304306
304506
  }
304307
- ts40.forEachChild(node4, visitLiterals);
304507
+ ts42.forEachChild(node4, visitLiterals);
304308
304508
  };
304309
304509
  visitLiterals(clean4);
304310
304510
  return applySourceEdits(source2, edits);
@@ -304343,19 +304543,19 @@ function selectVeloSource(files, request2, knownSecrets = []) {
304343
304543
  selected.set(file2.path, { source: excerpt, sourceTruncated: excerpt.length < redacted.length });
304344
304544
  remaining -= excerpt.length;
304345
304545
  const dependencies = [];
304346
- const parsed = ts40.createSourceFile(file2.path, file2.content, ts40.ScriptTarget.Latest, true);
304546
+ const parsed = ts42.createSourceFile(file2.path, file2.content, ts42.ScriptTarget.Latest, true);
304347
304547
  const specifiers = [];
304348
304548
  const collectImports = (node4) => {
304349
304549
  let specifier;
304350
- if (ts40.isImportDeclaration(node4) || ts40.isExportDeclaration(node4)) {
304550
+ if (ts42.isImportDeclaration(node4) || ts42.isExportDeclaration(node4)) {
304351
304551
  specifier = node4.moduleSpecifier;
304352
- } else if (ts40.isImportEqualsDeclaration(node4) && ts40.isExternalModuleReference(node4.moduleReference)) {
304552
+ } else if (ts42.isImportEqualsDeclaration(node4) && ts42.isExternalModuleReference(node4.moduleReference)) {
304353
304553
  specifier = node4.moduleReference.expression;
304354
- } else if (ts40.isCallExpression(node4) && (node4.expression.kind === ts40.SyntaxKind.ImportKeyword || ts40.isIdentifier(node4.expression) && node4.expression.text === "require")) {
304554
+ } else if (ts42.isCallExpression(node4) && (node4.expression.kind === ts42.SyntaxKind.ImportKeyword || ts42.isIdentifier(node4.expression) && node4.expression.text === "require")) {
304355
304555
  specifier = node4.arguments[0];
304356
304556
  }
304357
- if (specifier && ts40.isStringLiteralLike(specifier)) specifiers.push(specifier.text);
304358
- ts40.forEachChild(node4, collectImports);
304557
+ if (specifier && ts42.isStringLiteralLike(specifier)) specifiers.push(specifier.text);
304558
+ ts42.forEachChild(node4, collectImports);
304359
304559
  };
304360
304560
  collectImports(parsed);
304361
304561
  for (const specifier of specifiers) {
@@ -304387,13 +304587,13 @@ var init_velo_source = __esm({
304387
304587
  });
304388
304588
 
304389
304589
  // src/one-app/widget-velo.ts
304390
- import ts41 from "typescript";
304590
+ import ts43 from "typescript";
304391
304591
  function analyzeVeloSource(source2) {
304392
- const file2 = ts41.createSourceFile("page.js", source2, ts41.ScriptTarget.Latest, true, ts41.ScriptKind.JS);
304592
+ const file2 = ts43.createSourceFile("page.js", source2, ts43.ScriptTarget.Latest, true, ts43.ScriptKind.JS);
304393
304593
  const result = { imports: [], mobileCalls: [], onPress: 0, onClick: 0, data: [], backendImports: [], parseErrors: file2.parseDiagnostics?.length ?? 0 };
304394
304594
  const bindings = /* @__PURE__ */ new Map();
304395
304595
  for (const statement of file2.statements) {
304396
- if (!ts41.isImportDeclaration(statement) || !ts41.isStringLiteral(statement.moduleSpecifier)) continue;
304596
+ if (!ts43.isImportDeclaration(statement) || !ts43.isStringLiteral(statement.moduleSpecifier)) continue;
304397
304597
  const module = statement.moduleSpecifier.text.slice(0, MAX_LITERAL);
304398
304598
  const names2 = [];
304399
304599
  const clause = statement.importClause;
@@ -304402,11 +304602,11 @@ function analyzeVeloSource(source2) {
304402
304602
  bindings.set(clause.name.text, { module, member: "*" });
304403
304603
  }
304404
304604
  const named5 = clause?.namedBindings;
304405
- if (named5 && ts41.isNamespaceImport(named5)) {
304605
+ if (named5 && ts43.isNamespaceImport(named5)) {
304406
304606
  names2.push("*");
304407
304607
  bindings.set(named5.name.text, { module, member: "*" });
304408
304608
  }
304409
- if (named5 && ts41.isNamedImports(named5)) for (const el2 of named5.elements) {
304609
+ if (named5 && ts43.isNamedImports(named5)) for (const el2 of named5.elements) {
304410
304610
  const imported = (el2.propertyName ?? el2.name).text;
304411
304611
  names2.push(imported);
304412
304612
  bindings.set(el2.name.text, { module, member: imported });
@@ -304415,19 +304615,19 @@ function analyzeVeloSource(source2) {
304415
304615
  if (/^backend\//.test(module) && result.backendImports.length < MAX_ITEMS2) result.backendImports.push({ module, names: names2.filter((n2) => n2 !== "*" && n2 !== "default") });
304416
304616
  }
304417
304617
  const resolveCallee = (callee) => {
304418
- if (ts41.isIdentifier(callee)) {
304618
+ if (ts43.isIdentifier(callee)) {
304419
304619
  const b3 = bindings.get(callee.text);
304420
304620
  return b3 && b3.member !== "*" ? b3 : void 0;
304421
304621
  }
304422
- if (ts41.isPropertyAccessExpression(callee)) {
304622
+ if (ts43.isPropertyAccessExpression(callee)) {
304423
304623
  const member = callee.name.text;
304424
304624
  const target = callee.expression;
304425
- if (ts41.isIdentifier(target)) {
304625
+ if (ts43.isIdentifier(target)) {
304426
304626
  const b3 = bindings.get(target.text);
304427
304627
  if (!b3) return void 0;
304428
304628
  return { module: b3.module, member: b3.member === "*" ? member : `${b3.member}.${member}` };
304429
304629
  }
304430
- if (ts41.isPropertyAccessExpression(target) && ts41.isIdentifier(target.expression)) {
304630
+ if (ts43.isPropertyAccessExpression(target) && ts43.isIdentifier(target.expression)) {
304431
304631
  const b3 = bindings.get(target.expression.text);
304432
304632
  if (!b3) return void 0;
304433
304633
  return { module: b3.module, member: `${b3.member === "*" ? "" : `${b3.member}.`}${target.name.text}.${member}` };
@@ -304436,9 +304636,9 @@ function analyzeVeloSource(source2) {
304436
304636
  return void 0;
304437
304637
  };
304438
304638
  const visit = (node4) => {
304439
- if (ts41.isCallExpression(node4)) {
304639
+ if (ts43.isCallExpression(node4)) {
304440
304640
  const callee = node4.expression;
304441
- if (ts41.isPropertyAccessExpression(callee)) {
304641
+ if (ts43.isPropertyAccessExpression(callee)) {
304442
304642
  if (callee.name.text === "onPress") result.onPress++;
304443
304643
  else if (callee.name.text === "onClick") result.onClick++;
304444
304644
  }
@@ -304454,23 +304654,23 @@ function analyzeVeloSource(source2) {
304454
304654
  }
304455
304655
  }
304456
304656
  }
304457
- ts41.forEachChild(node4, visit);
304657
+ ts43.forEachChild(node4, visit);
304458
304658
  };
304459
304659
  visit(file2);
304460
304660
  return result;
304461
304661
  }
304462
304662
  function backendExportNames(stub) {
304463
- const file2 = ts41.createSourceFile("backend.js", stub, ts41.ScriptTarget.Latest, true, ts41.ScriptKind.JS);
304663
+ const file2 = ts43.createSourceFile("backend.js", stub, ts43.ScriptTarget.Latest, true, ts43.ScriptKind.JS);
304464
304664
  const names2 = /* @__PURE__ */ new Set();
304465
304665
  const visit = (node4) => {
304466
- if (ts41.isBinaryExpression(node4) && node4.operatorToken.kind === ts41.SyntaxKind.EqualsToken && ts41.isPropertyAccessExpression(node4.left) && ts41.isIdentifier(node4.left.expression) && node4.left.expression.text === "exports") names2.add(node4.left.name.text);
304467
- if ((ts41.isFunctionDeclaration(node4) || ts41.isVariableStatement(node4)) && ts41.canHaveModifiers(node4) && ts41.getModifiers(node4)?.some((m2) => m2.kind === ts41.SyntaxKind.ExportKeyword)) {
304468
- if (ts41.isFunctionDeclaration(node4) && node4.name) names2.add(node4.name.text);
304469
- if (ts41.isVariableStatement(node4)) {
304470
- for (const d2 of node4.declarationList.declarations) if (ts41.isIdentifier(d2.name)) names2.add(d2.name.text);
304666
+ if (ts43.isBinaryExpression(node4) && node4.operatorToken.kind === ts43.SyntaxKind.EqualsToken && ts43.isPropertyAccessExpression(node4.left) && ts43.isIdentifier(node4.left.expression) && node4.left.expression.text === "exports") names2.add(node4.left.name.text);
304667
+ if ((ts43.isFunctionDeclaration(node4) || ts43.isVariableStatement(node4)) && ts43.canHaveModifiers(node4) && ts43.getModifiers(node4)?.some((m2) => m2.kind === ts43.SyntaxKind.ExportKeyword)) {
304668
+ if (ts43.isFunctionDeclaration(node4) && node4.name) names2.add(node4.name.text);
304669
+ if (ts43.isVariableStatement(node4)) {
304670
+ for (const d2 of node4.declarationList.declarations) if (ts43.isIdentifier(d2.name)) names2.add(d2.name.text);
304471
304671
  }
304472
304672
  }
304473
- ts41.forEachChild(node4, visit);
304673
+ ts43.forEachChild(node4, visit);
304474
304674
  };
304475
304675
  visit(file2);
304476
304676
  return [...names2].slice(0, MAX_ITEMS2);
@@ -304486,7 +304686,7 @@ var init_widget_velo = __esm({
304486
304686
  MAX_ITEMS2 = 200;
304487
304687
  literal4 = (node4) => {
304488
304688
  if (!node4) return void 0;
304489
- if (ts41.isStringLiteral(node4) || ts41.isNoSubstitutionTemplateLiteral(node4)) return node4.text.slice(0, MAX_LITERAL);
304689
+ if (ts43.isStringLiteral(node4) || ts43.isNoSubstitutionTemplateLiteral(node4)) return node4.text.slice(0, MAX_LITERAL);
304490
304690
  return void 0;
304491
304691
  };
304492
304692
  }
@@ -306381,7 +306581,7 @@ var init_spaces_host_manifest = __esm({
306381
306581
  "../../apps/himi-spaces-lite/spaces-host-manifest.ts"() {
306382
306582
  init_define_HHP_CATALOG();
306383
306583
  SPACES_HOST_MANIFEST = {
306384
- "version": "1.12.0",
306584
+ "version": "1.13.0",
306385
306585
  "capabilities": [
306386
306586
  "animation",
306387
306587
  "app_info",
@@ -308323,7 +308523,7 @@ var init_analyze2 = __esm({
308323
308523
  // src/site-analyze/site-pages-apply.ts
308324
308524
  import { existsSync as existsSync174, readFileSync as readFileSync207 } from "node:fs";
308325
308525
  import { join as join219 } from "node:path";
308326
- import ts42 from "typescript";
308526
+ import ts44 from "typescript";
308327
308527
  function packageScreenIds(dir) {
308328
308528
  const dev = join219(dir, "dev", "index.ts");
308329
308529
  const config = join219(dir, "config.ts");
@@ -308336,20 +308536,20 @@ function packageScreenIds(dir) {
308336
308536
  }
308337
308537
  }
308338
308538
  function spliceWebsiteDrawer(source2, site, fileName = "config.ts") {
308339
- const file2 = ts42.createSourceFile(fileName, source2, ts42.ScriptTarget.Latest, true, ts42.ScriptKind.TS);
308539
+ const file2 = ts44.createSourceFile(fileName, source2, ts44.ScriptTarget.Latest, true, ts44.ScriptKind.TS);
308340
308540
  const objectOf2 = (literal5, name) => {
308341
308541
  if (!literal5) return void 0;
308342
308542
  const found = lookup(literal5, name);
308343
308543
  const value2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
308344
- return value2 && ts42.isObjectLiteralExpression(value2) ? value2 : void 0;
308544
+ return value2 && ts44.isObjectLiteralExpression(value2) ? value2 : void 0;
308345
308545
  };
308346
308546
  const navigation = objectOf2(defineAppLiteral(file2), "navigation");
308347
308547
  if (!navigation) return { refused: "config.ts has no `navigation: { \u2026 }` object literal in its defineApp call" };
308348
308548
  const drawer = objectOf2(navigation, "drawer");
308349
308549
  const itemsProp = drawer ? lookup(drawer, "items") : void 0;
308350
308550
  const items = itemsProp?.kind === "written" ? unwrap(itemsProp.node.initializer) : void 0;
308351
- if (!items || !ts42.isArrayLiteralExpression(items)) return { refused: "`navigation.drawer.items` is not an array literal this step can rewrite" };
308352
- const commentAt = (pos) => (ts42.getLeadingCommentRanges(source2, pos) ?? []).length > 0;
308551
+ if (!items || !ts44.isArrayLiteralExpression(items)) return { refused: "`navigation.drawer.items` is not an array literal this step can rewrite" };
308552
+ const commentAt = (pos) => (ts44.getLeadingCommentRanges(source2, pos) ?? []).length > 0;
308353
308553
  if (items.elements.some((element) => commentAt(element.pos)) || commentAt(items.elements.end)) {
308354
308554
  return { refused: "`navigation.drawer.items` has comments between its rows, which rewriting the drawer would drop" };
308355
308555
  }
@@ -313433,7 +313633,7 @@ __export(ext_impl_exports, {
313433
313633
  });
313434
313634
  import { existsSync as existsSync182, mkdirSync as mkdirSync78, readFileSync as readFileSync213, writeFileSync as writeFileSync90 } from "node:fs";
313435
313635
  import { join as join229 } from "node:path";
313436
- import ts43 from "typescript";
313636
+ import ts45 from "typescript";
313437
313637
  async function runExt(ctx) {
313438
313638
  const { pos, flags, io: io2, print } = ctx;
313439
313639
  const fail19 = (code3, error, extra = {}, exit = 1) => {
@@ -313547,7 +313747,7 @@ function loadModelFor(extDir) {
313547
313747
  return { ok: true, model: iface.model };
313548
313748
  }
313549
313749
  function addExtensionToConfigSource(source2, name) {
313550
- const file2 = ts43.createSourceFile("config.ts", source2, ts43.ScriptTarget.ES2022, true, ts43.ScriptKind.TS);
313750
+ const file2 = ts45.createSourceFile("config.ts", source2, ts45.ScriptTarget.ES2022, true, ts45.ScriptKind.TS);
313551
313751
  const app2 = defineAppLiteral(file2);
313552
313752
  if (!app2) throw new Error("config.ts has no defineApp({ \u2026 }) literal");
313553
313753
  const existing = declaredExtensionsNode(app2);
@@ -313565,7 +313765,7 @@ function addExtensionToConfigSource(source2, name) {
313565
313765
  }
313566
313766
  function declaredExtensionsNode(app2) {
313567
313767
  for (const p2 of app2.properties) {
313568
- if (ts43.isPropertyAssignment(p2) && p2.name && (ts43.isIdentifier(p2.name) || ts43.isStringLiteral(p2.name)) && p2.name.text === "extensions" && ts43.isArrayLiteralExpression(p2.initializer)) return p2.initializer;
313768
+ if (ts45.isPropertyAssignment(p2) && p2.name && (ts45.isIdentifier(p2.name) || ts45.isStringLiteral(p2.name)) && p2.name.text === "extensions" && ts45.isArrayLiteralExpression(p2.initializer)) return p2.initializer;
313569
313769
  }
313570
313770
  return void 0;
313571
313771
  }