@vectoriox/iox-ui 5.155.0 → 5.156.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.
@@ -8978,7 +8978,8 @@ const SPEC_SITE_LAYOUT = {
8978
8978
  "object",
8979
8979
  "diptych",
8980
8980
  "material",
8981
- "live"
8981
+ "live",
8982
+ "none"
8982
8983
  ],
8983
8984
  "words": [
8984
8985
  "headline",
@@ -9015,6 +9016,7 @@ const SPEC_SITE_LAYOUT = {
9015
9016
  "media.diptych": "two full-height pictures side by side; a phone keeps the first",
9016
9017
  "media.material": "an ambient ground drawn from the look's tokens (a glow behind ribs, a dotted grid, a slow light)",
9017
9018
  "media.live": "a working form of the site's own in the first screen (a lead form, a booking)",
9019
+ "media.none": "no picture: the look's own ground, and the words carry the first screen",
9018
9020
  "words.headline": "a heading, a line and one action",
9019
9021
  "words.on-edge": "one display line at screen size sitting on the bottom edge, cropped by it",
9020
9022
  "words.apart": "two or three giant words placed apart across the screen",
@@ -9040,6 +9042,7 @@ const SPEC_SITE_LAYOUT = {
9040
9042
  "media.diptych": "שתי תמונות בגובה מלא זו לצד זו; בטלפון נשארת הראשונה",
9041
9043
  "media.material": "רקע מהמראה של האתר (זוהר מאחורי פסים, רשת נקודות, אור איטי)",
9042
9044
  "media.live": "טופס אמיתי של האתר במסך הראשון (פנייה, הזמנה)",
9045
+ "media.none": "בלי תמונה: הרקע של המראה, והמילים נושאות את המסך הראשון",
9043
9046
  "words.headline": "כותרת, שורה ופעולה אחת",
9044
9047
  "words.on-edge": "שורה אחת בגודל המסך שיושבת על הקצה התחתון, חתוכה בו",
9045
9048
  "words.apart": "שתיים או שלוש מילים ענקיות, מפוזרות על המסך",
@@ -9074,6 +9077,48 @@ const SPEC_SITE_LAYOUT = {
9074
9077
  "extras": [],
9075
9078
  "motion": []
9076
9079
  },
9080
+ "harness": [
9081
+ "media.none"
9082
+ ],
9083
+ "typeLed": [
9084
+ {
9085
+ "frame": "full",
9086
+ "words": "wordmark"
9087
+ },
9088
+ {
9089
+ "frame": "inset",
9090
+ "words": "headline"
9091
+ },
9092
+ {
9093
+ "frame": "full",
9094
+ "words": "on-edge"
9095
+ },
9096
+ {
9097
+ "frame": "shrinks",
9098
+ "words": "headline"
9099
+ },
9100
+ {
9101
+ "frame": "inset",
9102
+ "words": "wordmark"
9103
+ },
9104
+ {
9105
+ "frame": "full",
9106
+ "words": "apart"
9107
+ },
9108
+ {
9109
+ "frame": "inset",
9110
+ "words": "on-edge"
9111
+ },
9112
+ {
9113
+ "frame": "shrinks",
9114
+ "words": "wordmark"
9115
+ },
9116
+ {
9117
+ "frame": "full",
9118
+ "words": "headline"
9119
+ }
9120
+ ],
9121
+ "typeLedEveryTier": true,
9077
9122
  "named": {
9078
9123
  "hero.split": {},
9079
9124
  "hero.full-bleed-media": {
@@ -9209,6 +9254,7 @@ const SPEC_SITE_LAYOUT = {
9209
9254
  "media.film": "all",
9210
9255
  "media.slideshow": "all",
9211
9256
  "media.object": "all",
9257
+ "media.none": "all",
9212
9258
  "words.headline": "all",
9213
9259
  "rules.wordsNeverCut": "all",
9214
9260
  "rules.badgeOwnersOnly": "all",
@@ -18439,7 +18485,7 @@ function phoneGapBefore(prev, next) {
18439
18485
  * columns (`LAYOUT_COLUMN_GAP`), and 12 columns. */
18440
18486
  const GRID_VW = 92;
18441
18487
  const COLUMN_GAP_VW = 1.2;
18442
- const GRID_COLUMNS$1 = 12;
18488
+ const GRID_COLUMNS$2 = 12;
18443
18489
  /** A `screen` word's smallest and largest size (px), and the share of its room it fills (the renderer's margin). */
18444
18490
  const LAYOUT_SCREEN_PX = [36, 560];
18445
18491
  const SCREEN_FILL = 0.98;
@@ -18447,7 +18493,7 @@ const round2 = (n) => Math.round(n * 100) / 100;
18447
18493
  const round4 = (n) => Math.round(n * 10000) / 10000;
18448
18494
  /** How wide `cols` columns of the laptop grid stand, in vw (12 columns: 92vw). */
18449
18495
  function layoutColumnsVw(cols) {
18450
- const column = (GRID_VW - (GRID_COLUMNS$1 - 1) * COLUMN_GAP_VW) / GRID_COLUMNS$1;
18496
+ const column = (GRID_VW - (GRID_COLUMNS$2 - 1) * COLUMN_GAP_VW) / GRID_COLUMNS$2;
18451
18497
  return cols * column + Math.max(0, cols - 1) * COLUMN_GAP_VW;
18452
18498
  }
18453
18499
  const LEGACY_GUTTER_PX = 16;
@@ -18465,7 +18511,7 @@ function layoutRoomPx(cols, width, phone, page = {}) {
18465
18511
  return vw;
18466
18512
  const gap = (COLUMN_GAP_VW / 100) * width;
18467
18513
  const grid = Math.min(width - 2 * Math.max(0.04 * width, gutter), page.columnPx);
18468
- return Math.min(vw, (cols * (grid - (GRID_COLUMNS$1 - 1) * gap)) / GRID_COLUMNS$1 + Math.max(0, cols - 1) * gap);
18514
+ return Math.min(vw, (cols * (grid - (GRID_COLUMNS$2 - 1) * gap)) / GRID_COLUMNS$2 + Math.max(0, cols - 1) * gap);
18469
18515
  }
18470
18516
  /** A `screen` word's width term at a column `columnPx` wide: the px its `cols` columns stand where the column binds
18471
18517
  * (12 columns of the column, 11 gaps of 1.2vw), at `fill / em` — `A px − B vw`. */
@@ -18473,8 +18519,8 @@ function layoutRoomPx(cols, width, phone, page = {}) {
18473
18519
  * read — re-declared by the page's word, iox-ui#117), the stamped column (`fallback`) where a studio's rows lack it. */
18474
18520
  function columnCapCss(cols, widthEm, fallback) {
18475
18521
  const k = SCREEN_FILL / Math.max(widthEm, 0.01);
18476
- const share = round4((cols / GRID_COLUMNS$1) * k);
18477
- const vw = round2(COLUMN_GAP_VW * (1 - cols / GRID_COLUMNS$1) * k);
18522
+ const share = round4((cols / GRID_COLUMNS$2) * k);
18523
+ const vw = round2(COLUMN_GAP_VW * (1 - cols / GRID_COLUMNS$2) * k);
18478
18524
  const cap = `var(--iox-content-cap, ${fallback})`;
18479
18525
  return vw > 0 ? `calc(${cap} * ${share} - ${vw}vw)` : `calc(${cap} * ${share})`;
18480
18526
  }
@@ -18492,7 +18538,7 @@ function screenFontSize(widthEm, cols, rows, sectionRows, screens, columnPx = nu
18492
18538
  // in wide, so a page set narrower than the site never sees it run past its column.
18493
18539
  // CW2: a word across all twelve columns also keeps inside the one gutter (`space-gutter` is a px token, so font-size
18494
18540
  // may read it): on a phone and wherever the gutter is wider than 4% of the window, 92vw is more than the room.
18495
- const room = cols >= GRID_COLUMNS$1 ? [`calc((100vw - 2 * var(--iox-space-gutter, ${LEGACY_GUTTER_PX}px)) * ${round4(SCREEN_FILL / Math.max(widthEm, 0.01))})`] : [];
18541
+ const room = cols >= GRID_COLUMNS$2 ? [`calc((100vw - 2 * var(--iox-space-gutter, ${LEGACY_GUTTER_PX}px)) * ${round4(SCREEN_FILL / Math.max(widthEm, 0.01))})`] : [];
18496
18542
  const capFallback = columnPx ? `${columnPx}px` : capAlways ? WIDE_CAP : null;
18497
18543
  const width = [`${widthVw}vw`, ...(capFallback ? [columnCapCss(cols, widthEm, capFallback)] : []), ...room];
18498
18544
  if (!rows || !sectionRows)
@@ -19716,14 +19762,14 @@ var LayoutMixIngredient;
19716
19762
  LayoutMixIngredient["Phone"] = "phone";
19717
19763
  })(LayoutMixIngredient || (LayoutMixIngredient = {}));
19718
19764
  const MIX_SEPARATOR = ':';
19719
- const BASIC = 'basic';
19765
+ const BASIC$1 = 'basic';
19720
19766
  const AWARD$1 = 'award';
19721
19767
  const PART_SEPARATOR = '.';
19722
19768
  /** Every word a stored mix may hold, ingredient by ingredient (a waiting word too: a stored answer still reads). */
19723
19769
  const LAYOUT_MIX_WORDS = LIST_INGREDIENTS.flatMap(k => listIngredientWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
19724
19770
  /** The words the wire OFFERS a site below the award tier — the built ones only (ingredients.md §3.3: a waiting word would
19725
19771
  * put its stand-in on every site that asked for it), less the award tier's (AW-D23, AW11). */
19726
- const LAYOUT_MIX_OFFERED = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).filter(w => listWordOffered(k, w, BASIC)).map(w => `${k}${MIX_SEPARATOR}${w}`));
19772
+ const LAYOUT_MIX_OFFERED = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).filter(w => listWordOffered(k, w, BASIC$1)).map(w => `${k}${MIX_SEPARATOR}${w}`));
19727
19773
  /** AW11: every built word, the award tier's included — what the wire offers an award site before the lists are read. */
19728
19774
  const LAYOUT_MIX_OFFERED_AWARD = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
19729
19775
  /** The column words a page of a type is offered (award §0c, AW-D34): the axis's words less what the type never wears. */
@@ -25066,6 +25112,7 @@ var OpeningMedia;
25066
25112
  OpeningMedia["Diptych"] = "diptych";
25067
25113
  OpeningMedia["Material"] = "material";
25068
25114
  OpeningMedia["Live"] = "live";
25115
+ OpeningMedia["None"] = "none";
25069
25116
  })(OpeningMedia || (OpeningMedia = {}));
25070
25117
  var OpeningWords;
25071
25118
  (function (OpeningWords) {
@@ -25110,6 +25157,12 @@ var OpeningRole;
25110
25157
  OpeningRole["Title"] = "opening.title";
25111
25158
  OpeningRole["Lead"] = "opening.lead";
25112
25159
  OpeningRole["Action"] = "opening.action";
25160
+ /** #129, a type-led first screen only: the line above the title, the hero's headline beside a display-size name, the
25161
+ * second action and the row that holds the actions — every part the hero it replaces says, so no word is lost. */
25162
+ OpeningRole["Eyebrow"] = "opening.eyebrow";
25163
+ OpeningRole["Line"] = "opening.line";
25164
+ OpeningRole["SecondAction"] = "opening.action-2";
25165
+ OpeningRole["Actions"] = "opening.actions";
25113
25166
  OpeningRole["Apart"] = "opening.apart";
25114
25167
  /** The second and third of the words placed apart. */
25115
25168
  OpeningRole["ApartWord"] = "opening.apart-word";
@@ -25323,6 +25376,22 @@ function openingTokenOf(mix) {
25323
25376
  function openingWireWords(tier = GenerationTier.Basic) {
25324
25377
  return ORDER.flatMap(k => openingWords$1(k).filter(w => openingWordDrawn(k, w) && openingWordOffered(k, w, tier)).map(w => `${k}:${w}`));
25325
25378
  }
25379
+ /** #129: a word the harness alone chooses (`media:none` — no picture fills the first screen), never offered to a model. */
25380
+ function openingHarnessWord(ingredient, word) {
25381
+ return (O.harness ?? []).includes(`${ingredient}.${word}`);
25382
+ }
25383
+ /** #129: the ways a type-led first screen may open, best first, each a whole mix on no picture (the contract's
25384
+ * `opening.typeLed`). */
25385
+ function typeLedOpeningWays() {
25386
+ return (O.typeLed ?? []).map(w => openingMix({ frame: w.frame, words: w.words, media: OpeningMedia.None }));
25387
+ }
25388
+ /** AW-D23 amended (2026-11-24): a type-led first screen's frame and words are worn at every tier when they are one of
25389
+ * the contract's type-led ways — with no picture they are all the screen has. */
25390
+ function typeLedWayEveryTier(mix) {
25391
+ return !!O.typeLedEveryTier && mix.media === OpeningMedia.None && (O.typeLed ?? []).some(w => w.frame === mix.frame && w.words === mix.words);
25392
+ }
25393
+ /** #129: is the mix a type-led first screen (nothing to show but its words)? */
25394
+ const openingIsTypeLed = (mix) => mix.media === OpeningMedia.None;
25326
25395
  // ── The check: a mix judged against the site, mended where the site cannot carry it, each mend said ──────────────────
25327
25396
  var OpeningRepairCode;
25328
25397
  (function (OpeningRepairCode) {
@@ -25383,7 +25452,10 @@ function checkOpening(mix, ctx) {
25383
25452
  const repairs = [];
25384
25453
  const say = (code, said) => repairs.push({ code, said });
25385
25454
  if (ctx.tier && ctx.tier !== GenerationTier.Award) {
25455
+ const everyTier = typeLedWayEveryTier(m);
25386
25456
  for (const k of ORDER) {
25457
+ if (everyTier && (k === OpeningIngredient.Frame || k === OpeningIngredient.Words))
25458
+ continue;
25387
25459
  if (isMany(k)) {
25388
25460
  const kept = m[k].filter(w => openingWordTier(k, w) === 'all');
25389
25461
  for (const w of m[k].filter(x => !kept.includes(x)))
@@ -25434,7 +25506,8 @@ function checkOpening(mix, ctx) {
25434
25506
  const still = m.media === OpeningMedia.Photo || m.media === OpeningMedia.Diptych || m.media === OpeningMedia.Live;
25435
25507
  if (m.motion.includes(OpeningMotion.SlowZoom) && !still) {
25436
25508
  m.motion = m.motion.filter(w => w !== OpeningMotion.SlowZoom);
25437
- say(OpeningRepairCode.ZoomOnAPicture, 'a slow zoom moves a still picture: left out on moving pictures');
25509
+ say(OpeningRepairCode.ZoomOnAPicture, m.media === OpeningMedia.None ? 'a slow zoom moves a picture, and this first screen has none: left out'
25510
+ : 'a slow zoom moves a still picture: left out on moving pictures');
25438
25511
  }
25439
25512
  return { mix: m, repairs };
25440
25513
  }
@@ -25445,6 +25518,11 @@ function checkOpening(mix, ctx) {
25445
25518
  // so a Hebrew site mirrors them.
25446
25519
  /** How tall the first screen stands: a little less than the window, so the next section's edge says "there is more". */
25447
25520
  const OPENING_HEIGHT = '88svh';
25521
+ /** #129: a type-led first screen holds only words, so it is as tall as they need — a picture's 88svh left a dark field
25522
+ * above them (the proof's shots: law, ceramics, the salon's phone). Words apart keep the full height: they spread over it.
25523
+ * On a phone the frame hugs its words; the name on the edge then follows them in flow. */
25524
+ const TYPE_LED_HEIGHT = 'min(64svh, 600px)';
25525
+ const typeLedHeights = (mix) => mix.words === OpeningWords.Apart ? { laptop: OPENING_HEIGHT } : { laptop: TYPE_LED_HEIGHT, phone: '0px' };
25448
25526
  const INSET_LAPTOP = '24px';
25449
25527
  const ABS_FILL = { position: 'absolute', top: '0px', left: '0px', width: '100%', height: '100%', zIndex: '0' };
25450
25528
  const MEDIA_FILL = { ...ABS_FILL, aspectRatio: 'auto', borderRadius: '0px', objectFit: 'cover' };
@@ -25459,18 +25537,27 @@ function openingPhoneInset() {
25459
25537
  }
25460
25538
  const insetClip = (inset) => `inset(${inset} round var(--iox-card-radius))`;
25461
25539
  /** A display size that keeps `em` of text within the width (`side` px kept per side), never above `cap`. */
25540
+ /** The frame's padding on a phone: an inset frame adds its inset. */
25541
+ const phoneFramePad = (mix) => (mix.frame === OpeningFrame.Inset || mix.frame === OpeningFrame.Shrinks ? `calc(${openingPhoneInset()} + 20px)` : FRAME_PAD);
25462
25542
  const sizedPx = (em, side, cap) => `min(calc((100vw - ${2 * side}px) * ${FIT} / ${Math.max(em, 1).toFixed(3)}), ${cap})`;
25463
25543
  function frameNode(mix, children) {
25464
25544
  const inset = mix.frame === OpeningFrame.Inset || mix.frame === OpeningFrame.Shrinks;
25545
+ const height = mix.media === OpeningMedia.None ? typeLedHeights(mix) : { laptop: OPENING_HEIGHT };
25546
+ const phone = {
25547
+ ...(inset ? { clipPath: insetClip(openingPhoneInset()), padding: phoneFramePad(mix) } : {}),
25548
+ ...(height.phone ? { minHeight: height.phone } : {}),
25549
+ };
25465
25550
  return {
25466
- t: 'Container', es: 'box', scheme: 'inverse',
25551
+ // A pictured frame is a box its picture fills; a type-led one (no picture) paints its scheme's own ground — a
25552
+ // box paints nothing, and the scheme's light words stood on the page's light ground (the #129 proof's shots).
25553
+ t: 'Container', es: mix.media === OpeningMedia.None ? 'section' : 'box', scheme: 'inverse',
25467
25554
  role: mix.frame === OpeningFrame.Shrinks ? OpeningRole.FrameSettles : OpeningRole.Frame,
25468
25555
  lay: {
25469
25556
  position: 'relative', overflow: 'hidden', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', gap: 'var(--iox-space-gap)',
25470
- minHeight: OPENING_HEIGHT, padding: inset ? `calc(${INSET_LAPTOP} + ${FRAME_PAD})` : FRAME_PAD, borderRadius: '0px',
25557
+ minHeight: height.laptop, padding: inset ? `calc(${INSET_LAPTOP} + ${FRAME_PAD})` : FRAME_PAD, borderRadius: '0px',
25471
25558
  ...(inset ? { clipPath: insetClip(INSET_LAPTOP) } : {}),
25472
25559
  },
25473
- ...(inset ? { resp: { mobile: { clipPath: insetClip(openingPhoneInset()), padding: `calc(${openingPhoneInset()} + 20px)` } } } : {}),
25560
+ ...(Object.keys(phone).length ? { resp: { mobile: phone } } : {}),
25474
25561
  c: children,
25475
25562
  };
25476
25563
  }
@@ -25495,6 +25582,8 @@ function mediaNodes(mix) {
25495
25582
  { ...picture(OpeningRole.Second, CELL_PICTURE), resp: { mobile: { display: 'none' } } },
25496
25583
  ],
25497
25584
  }];
25585
+ case OpeningMedia.None:
25586
+ return [];
25498
25587
  default:
25499
25588
  return [picture(zooms ? OpeningRole.MediaZooms : OpeningRole.Media)];
25500
25589
  }
@@ -25515,9 +25604,109 @@ const aside = (at = 'top') => ({
25515
25604
  lay: { ...OVER(1), display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: '14px', maxWidth: '420px', margin: at === 'top' ? '0px 0px auto 0px' : 'auto 0px 0px 0px' },
25516
25605
  c: [lead(), action()],
25517
25606
  });
25607
+ // ── #129: a type-led first screen — no picture, the words carry it. It holds every part a hero says (the line above,
25608
+ // the headline, the lead, two actions), each optional but the title, so the hero it replaces gives it its words slot by
25609
+ // slot (`TYPE_LED_OPENING_SLOTS`) and nothing it said is lost; a part the hero did not say is left out (`without`).
25610
+ /** The type-led parts a page may leave out, and what a composition with no hero to carry leaves out (the builder). */
25611
+ const TYPE_LED_OPTIONAL_PARTS = ['eyebrow', 'line', 'cta2'];
25612
+ const eyebrowPart = (lay = {}) => ({
25613
+ t: 'Text', es: 'eyebrow', slot: 'eyebrow', optional: 'eyebrow', max: 32, ph: PatternPlaceholder.Copy, text: 'What you do · where', textHe: 'מה אתם עושים · איפה',
25614
+ role: OpeningRole.Eyebrow, lay,
25615
+ });
25616
+ /** The hero's headline beside a display-size name (an h2: the name is the page's h1). */
25617
+ const linePart = (lay = {}) => ({
25618
+ t: 'Heading', es: 'h2', level: 'h2', slot: 'line', optional: 'line', max: 56, ph: PatternPlaceholder.Copy, text: 'What you do, in a few words',
25619
+ textHe: 'מה אתם עושים, בכמה מילים', role: OpeningRole.Line, lay: { margin: '0px', ...lay },
25620
+ });
25621
+ const actionsPart = (centred = false) => ({
25622
+ t: 'Container', es: 'box', role: OpeningRole.Actions,
25623
+ lay: { display: 'flex', flexWrap: 'wrap', gap: '12px', alignItems: 'center', ...(centred ? { justifyContent: 'center' } : {}) },
25624
+ c: [action(), { t: 'ButtonBlock', es: 'button-secondary', href: '/contact', slot: 'cta2', optional: 'cta2', max: 24, text: 'Learn more', textHe: 'למידע נוסף', role: OpeningRole.SecondAction }],
25625
+ });
25626
+ /** A hero's lead, as long as the hero's own (hero.centered: 180). */
25627
+ const TYPE_LED_LEAD_MAX = 180;
25628
+ const typeLedLead = (lay = {}) => ({ ...lead(lay), max: TYPE_LED_LEAD_MAX });
25629
+ /** What sits beside a display-size name: the line above, the headline, the lead and the actions. */
25630
+ const typeLedAside = (at) => ({
25631
+ t: 'Container', es: 'box', role: OpeningRole.Aside,
25632
+ lay: { ...OVER(1), display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: '14px', maxWidth: '560px', margin: at === 'top' ? '0px 0px auto 0px' : 'auto 0px 0px 0px' },
25633
+ c: [eyebrowPart(), linePart(), typeLedLead(), actionsPart()],
25634
+ });
25635
+ /** Where each slot of a type-led hero goes in a type-led first screen; `headline` is the title, or the line beside a
25636
+ * display-size name (the name is then the title). Only patterns every one of whose slots has a place. */
25637
+ const TYPE_LED_OPENING_FROM = {
25638
+ 'hero.centered': { eyebrow: 'eyebrow', headline: 'headline', lead: 'lead', primary: 'cta', secondary: 'cta2' },
25639
+ };
25640
+ const DISPLAY_WORDS = new Set([OpeningWords.OnEdge, OpeningWords.Wordmark, OpeningWords.Behind, OpeningWords.Apart]);
25641
+ /** What a type-led first screen is composed from, given the hero section it takes the place of: the hero's words and
25642
+ * links slot by slot, and every optional part the hero did not say left out — or null when the hero is not one whose
25643
+ * every slot has a place (it is then carried part by part, as any opening). Pure. */
25644
+ function typeLedOpeningSection(mix, hero) {
25645
+ const from = TYPE_LED_OPENING_FROM[hero.pattern];
25646
+ if (!from || mix.media !== OpeningMedia.None)
25647
+ return null;
25648
+ const display = DISPLAY_WORDS.has(mix.words);
25649
+ const to = (slot) => (from[slot] === 'headline' ? (display ? 'line' : 'title') : from[slot]);
25650
+ const slots = {};
25651
+ const links = {};
25652
+ for (const [slot, value] of Object.entries(hero.slots ?? {})) {
25653
+ const at = to(slot);
25654
+ if (!at)
25655
+ return null;
25656
+ if (value.trim())
25657
+ slots[at] = value;
25658
+ }
25659
+ for (const [slot, route] of Object.entries(hero.links ?? {})) {
25660
+ const at = to(slot);
25661
+ if (at)
25662
+ links[at] = route;
25663
+ }
25664
+ return { slots, links, without: TYPE_LED_OPTIONAL_PARTS.filter(part => !slots[part]) };
25665
+ }
25666
+ /** The words of a type-led first screen, as the mix places them — the same measured display sizes as a pictured one
25667
+ * (R-H6), no scrim (nothing is under the words). */
25668
+ function typeLedWordsNodes(mix, ctx) {
25669
+ const { line, longest } = nameEm(ctx);
25670
+ const phoneSize = sizedPx(longest, PHONE_SIDE_PX, '22vw');
25671
+ switch (mix.words) {
25672
+ case OpeningWords.OnEdge:
25673
+ // On a phone the frame hugs its words, so the name follows them in flow and sits on the edge by a margin as
25674
+ // deep as the frame's padding (an absolute name would overlap them).
25675
+ return [typeLedAside('top'), {
25676
+ t: 'Container', es: 'box', role: OpeningRole.Words,
25677
+ lay: { position: 'absolute', left: '0px', bottom: '0px', width: '100%', zIndex: '1', padding: `0px ${LAPTOP_SIDE_PX}px`, overflow: 'visible' },
25678
+ resp: { mobile: { position: 'relative', left: 'auto', bottom: 'auto', padding: '0px', margin: `auto 0px calc(-1 * ${phoneFramePad(mix)}) 0px` } },
25679
+ c: [title({ fontSize: sizedPx(line, LAPTOP_SIDE_PX, '50svh'), lineHeight: '0.82', margin: '0px', translateY: '0.16em' }, { resp: { mobile: { fontSize: phoneSize } } })],
25680
+ }];
25681
+ case OpeningWords.Wordmark:
25682
+ case OpeningWords.Behind:
25683
+ return [{
25684
+ t: 'Container', es: 'box', role: OpeningRole.Words,
25685
+ lay: { ...OVER(1), display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '18px', textAlign: 'center', margin: 'auto 0px auto 0px', width: '100%' },
25686
+ c: [
25687
+ eyebrowPart({ textAlign: 'center' }),
25688
+ title({ fontSize: sizedPx(line, LAPTOP_SIDE_PX + 24, '40svh'), lineHeight: '0.9', margin: '0px', textAlign: 'center' }, { resp: { mobile: { fontSize: phoneSize } } }),
25689
+ linePart({ textAlign: 'center' }), typeLedLead({ textAlign: 'center' }), actionsPart(true),
25690
+ ],
25691
+ }];
25692
+ case OpeningWords.Apart: {
25693
+ const [apart] = wordsNodes({ ...mix, media: OpeningMedia.Photo }, ctx).filter(n => n.role === OpeningRole.Apart);
25694
+ return [apart, typeLedAside('bottom')];
25695
+ }
25696
+ default:
25697
+ return [{
25698
+ t: 'Container', es: 'box', role: OpeningRole.Words,
25699
+ lay: { ...OVER(1), display: 'flex', flexDirection: 'column', gap: '14px', maxWidth: '760px' },
25700
+ enter: 'heroText',
25701
+ c: [eyebrowPart(), title({}), typeLedLead(), actionsPart()],
25702
+ }];
25703
+ }
25704
+ }
25518
25705
  /** The words, as the mix places them. Display sizes are measured on the look's own face (never a guess — R-H6): a laptop
25519
25706
  * line by the whole name, a phone by its longest word, so a word is never cut by the screen. */
25520
25707
  function wordsNodes(mix, ctx) {
25708
+ if (mix.media === OpeningMedia.None)
25709
+ return typeLedWordsNodes(mix, ctx);
25521
25710
  const { line, longest } = nameEm(ctx);
25522
25711
  const phoneSize = sizedPx(longest, PHONE_SIDE_PX, '22vw');
25523
25712
  switch (mix.words) {
@@ -26854,145 +27043,938 @@ function legalFormLine(lang, withTerms) {
26854
27043
  }
26855
27044
 
26856
27045
  /**
26857
- * THE OWNER'S EDITS INSIDE A LIST CARD (vectoriox/iox-ui#122, board bindings-list BL-D8). Recomposing a list (Bindings ▸
26858
- * List, Ask) draws its card again from the new mix; before #122 the card template was replaced and whatever the owner had
26859
- * changed inside it was lost silently. `keepListParts` keeps it, part by part — the carry's rule (site-redesign RD1:
26860
- * the owner's is placed, never retyped, and what finds no place is SAID, never dropped silently):
26861
- *
26862
- * - What is the owner's is told by the composer itself: the frame as the composer would draw it with the mix it wears
26863
- * now (`baseline`) against the frame on the page (`previous`). A value that differs is the owner's; one that does not
26864
- * is the composer's and follows the new mix.
26865
- * - A part is found by its ROLE (`card.title`, `card.eyebrow`…), else by its place in the frame (the composer's ids are
26866
- * the frame id + a fixed suffix: `-item-image`). An edited part whose role survives in the new card takes the edits
26867
- * there (kept); one whose role is gone is redrawn — and listed.
26868
- * - A node the owner added goes into the same parent part in the new card (at the same place among its children);
26869
- * a part the owner deleted stays deleted. Either is listed as redrawn when its parent part is gone.
26870
- *
26871
- * Pure: `composed` is not changed; the result's `children` are the new card with the owner's edits.
27046
+ * THE CROSS-SITE FINGERPRINT (premium components M8 gate 2, M8-G2-D7; the prototype's `fingerprint` + `sameness`,
27047
+ * `code/cl2.mjs`): what makes two composed pages read as the same — how the page opens, the sequence of its sections, the
27048
+ * mechanism of its signature, whether it opens light or dark, and the preset it wears. Structure only: no words, no
27049
+ * business data. Round three found that pages composed alone converge on one skeleton, and that telling the model what
27050
+ * already exists is what broke it. Pure.
26872
27051
  */
26873
- /** What became of one part the owner changed. */
26874
- var ListPartOutcome;
26875
- (function (ListPartOutcome) {
26876
- /** The part's role is in the new card: the owner's edits are on it there. */
26877
- ListPartOutcome["Kept"] = "kept";
26878
- /** The new card has no such part: the edits are lost — said before Apply (the kept notice, BL-D8). */
26879
- ListPartOutcome["Redrawn"] = "redrawn";
26880
- })(ListPartOutcome || (ListPartOutcome = {}));
26881
- /** How the owner changed a part. */
26882
- var ListPartChange;
26883
- (function (ListPartChange) {
26884
- /** Values on a composed part (a style, its words, an element style, a binding…). */
26885
- ListPartChange["Edited"] = "edited";
26886
- /** A node the owner put in the card. */
26887
- ListPartChange["Added"] = "added";
26888
- /** A composed part the owner deleted. */
26889
- ListPartChange["Removed"] = "removed";
26890
- })(ListPartChange || (ListPartChange = {}));
26891
- /** Node fields whose values are maps — compared and carried value by value (`styleProps.color`, `props.content`…). */
26892
- const MAP_FIELDS = ['props', 'styleProps', 'stateStyles', 'responsive', 'stateTriggers'];
26893
- /** Fields that are the node's identity or its subtree, never an edit. */
26894
- const SKIP_FIELDS = new Set(['id', 'children']);
26895
- const same$1 = (a, b) => JSON.stringify(a) === JSON.stringify(b);
26896
- /** Every node under the frame by its part key (the first of a key wins; a repeat is keyed by its place). */
26897
- function partsOf$1(frame) {
26898
- const out = new Map();
26899
- const prefix = `${frame.id}-`;
26900
- const keyOf = (n) => n.role ?? (n.id.startsWith(prefix) ? n.id.slice(prefix.length) : `node:${n.id}`);
26901
- const visit = (n, parent, index) => {
26902
- let key = keyOf(n);
26903
- if (out.has(key))
26904
- key = n.id.startsWith(prefix) ? n.id.slice(prefix.length) : `node:${n.id}`;
26905
- if (!out.has(key))
26906
- out.set(key, { node: n, parent, index });
26907
- (n.children ?? []).forEach((c, i) => visit(c, key, i));
26908
- };
26909
- (frame.children ?? []).forEach((c, i) => visit(c, null, i));
26910
- return out;
26911
- }
26912
- /** What differs on a part between the composer's drawing and the page. */
26913
- function editsOn(baseline, page) {
26914
- const edits = [];
26915
- const fields = new Set([...Object.keys(baseline), ...Object.keys(page)].filter(f => !SKIP_FIELDS.has(f)));
26916
- for (const field of fields) {
26917
- const was = baseline[field];
26918
- const now = page[field];
26919
- if (same$1(was, now))
26920
- continue;
26921
- if (MAP_FIELDS.includes(field) && (was === undefined || isMap(was)) && (now === undefined || isMap(now))) {
26922
- const a = (was ?? {});
26923
- const b = (now ?? {});
26924
- for (const key of new Set([...Object.keys(a), ...Object.keys(b)]))
26925
- if (!same$1(a[key], b[key]))
26926
- edits.push({ field, key, value: b[key] });
26927
- }
26928
- else {
26929
- edits.push({ field, value: now });
26930
- }
26931
- }
26932
- return edits;
26933
- }
26934
- const isMap = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
26935
- function applyEdits(node, edits) {
26936
- const target = node;
26937
- for (const e of edits) {
26938
- if (e.key === undefined) {
26939
- if (e.value === undefined)
26940
- delete target[e.field];
26941
- else
26942
- target[e.field] = structuredClone(e.value);
26943
- continue;
26944
- }
26945
- const map = { ...(target[e.field] ?? {}) };
26946
- if (e.value === undefined)
26947
- delete map[e.key];
26948
- else
26949
- map[e.key] = structuredClone(e.value);
26950
- target[e.field] = map;
27052
+ /** How a section reads in the page's sequence (the contract's `sequenceTokens`). */
27053
+ var LayoutSequenceToken;
27054
+ (function (LayoutSequenceToken) {
27055
+ LayoutSequenceToken["Inhale"] = "inhale";
27056
+ LayoutSequenceToken["Sideways"] = "sideways";
27057
+ LayoutSequenceToken["HeldWords"] = "held-words";
27058
+ LayoutSequenceToken["HeldReel"] = "held-reel";
27059
+ LayoutSequenceToken["Held"] = "held";
27060
+ LayoutSequenceToken["PhotoGround"] = "photo-ground";
27061
+ LayoutSequenceToken["Gallery"] = "gallery";
27062
+ LayoutSequenceToken["Split"] = "split";
27063
+ LayoutSequenceToken["Composition"] = "composition";
27064
+ })(LayoutSequenceToken || (LayoutSequenceToken = {}));
27065
+ /** The signature mechanisms (the contract's `signatures`); `held-screen` is the fallback, never the aim. */
27066
+ var LayoutSignatureId;
27067
+ (function (LayoutSignatureId) {
27068
+ LayoutSignatureId["WordsLit"] = "words-lit";
27069
+ LayoutSignatureId["PhotoUnveiled"] = "photo-unveiled";
27070
+ LayoutSignatureId["ZoomThrough"] = "zoom-through";
27071
+ LayoutSignatureId["ScrollReel"] = "scroll-reel";
27072
+ LayoutSignatureId["PicturesStacking"] = "pictures-stacking";
27073
+ LayoutSignatureId["HalvesApart"] = "halves-apart";
27074
+ LayoutSignatureId["SidewaysWalk"] = "sideways-walk";
27075
+ LayoutSignatureId["ObjectTurning"] = "object-turning";
27076
+ LayoutSignatureId["HeldScreen"] = "held-screen";
27077
+ })(LayoutSignatureId || (LayoutSignatureId = {}));
27078
+ const OPENING_SCREEN_WORD = 'screen-word';
27079
+ /** A section's token in the page's sequence. */
27080
+ function sequenceTokenOf(s) {
27081
+ if (s.kind === LayoutSectionKind.Inhale)
27082
+ return LayoutSequenceToken.Inhale;
27083
+ if ((s.track ?? 1) > 1)
27084
+ return LayoutSequenceToken.Sideways;
27085
+ const layers = s.layers ?? [];
27086
+ if (s.pin) {
27087
+ if (layers.some(l => l.kinetic))
27088
+ return LayoutSequenceToken.HeldWords;
27089
+ return layers.some(l => l.gallery?.scroll) ? LayoutSequenceToken.HeldReel : LayoutSequenceToken.Held;
26951
27090
  }
27091
+ if (String(s.ground ?? '').startsWith('photo:'))
27092
+ return LayoutSequenceToken.PhotoGround;
27093
+ if (layers.some(l => l.kind === LayoutLayerKind.Gallery))
27094
+ return LayoutSequenceToken.Gallery;
27095
+ return splitSide(s) ? LayoutSequenceToken.Split : LayoutSequenceToken.Composition;
26952
27096
  }
27097
+ /** A list section's prefix in the sequence (list-ingredients §7). */
27098
+ const LAYOUT_LIST_TOKEN = 'list';
26953
27099
  /**
26954
- * The new card (`composed`'s children) with the owner's edits from the frame on the page (`previous`), told from what the
26955
- * composer would draw for the mix the frame wears now (`baseline`). With no baseline nothing is known to be the owner's:
26956
- * the new card as composed, nothing listed.
27100
+ * A list mix as the fingerprint sees it (list-ingredients §7, LI2): `list:<arrange>/<who-how>/<moves>` — how the items
27101
+ * sit, which stands out and how, how the visitor moves through them. What a mouse does and how they arrive are too fine
27102
+ * to count. Two pages with `list:row/middle-raised/arrows` show the same list.
26957
27103
  */
26958
- function keepListParts(previous, baseline, composed) {
26959
- const out = structuredClone(composed);
26960
- out.id = previous.id;
26961
- if (!baseline)
26962
- return { children: out.children ?? [], edits: [] };
26963
- // The composer draws every frame from its id: a baseline drawn under another id is read under the page's.
26964
- const was = partsOf$1({ ...baseline, id: previous.id });
26965
- const page = partsOf$1(previous);
26966
- const now = partsOf$1(out);
26967
- const edits = [];
26968
- const say = (part, n, change, count, kept) => edits.push({ part, ...(n.role ? { role: n.role } : {}), type: n.type, change, edits: count, outcome: kept ? ListPartOutcome.Kept : ListPartOutcome.Redrawn });
26969
- for (const [key, placed] of page) {
26970
- const drawn = was.get(key);
26971
- if (!drawn) {
26972
- // The owner added it — unless its parent is itself the owner's (it travels inside it).
26973
- if (placed.parent !== null && !was.has(placed.parent))
26974
- continue;
26975
- const into = placed.parent === null ? out : now.get(placed.parent)?.node;
26976
- if (into) {
26977
- const children = [...(into.children ?? [])];
26978
- children.splice(Math.min(placed.index, children.length), 0, structuredClone(placed.node));
26979
- into.children = children;
26980
- }
26981
- say(key, placed.node, ListPartChange.Added, 1, !!into);
26982
- continue;
26983
- }
26984
- const changes = editsOn(drawn.node, placed.node);
26985
- if (!changes.length)
26986
- continue;
26987
- const target = now.get(key)?.node;
26988
- if (target)
26989
- applyEdits(target, changes);
26990
- say(key, placed.node, ListPartChange.Edited, changes.length, !!target);
26991
- }
26992
- for (const [key, drawn] of was) {
26993
- if (page.has(key))
26994
- continue;
26995
- // The owner deleted it — once, at the topmost part deleted (its own parts went with it).
27104
+ function listTokenOf(mix) {
27105
+ const who = mix.standout && mix.standout.who !== LayoutListWho.None ? `${mix.standout.who}${mix.standout.how ? `-${mix.standout.how}` : ''}` : 'none';
27106
+ const moves = Array.isArray(mix.move) && mix.move.length ? [...new Set(mix.move)].sort().join('+') : 'still';
27107
+ // AW11-D18: a round-two item (a name on its picture, a packshot, a colour block, a numeral) is seen at once too — it
27108
+ // joins the token; a round-one item adds nothing, so every fingerprint stored before AW11 reads as it did.
27109
+ const item = typeof mix.item === 'string' && listWordTier('item', mix.item) === 'pro' ? `/${mix.item}` : '';
27110
+ return `${LAYOUT_LIST_TOKEN}:${mix.arrange}/${who}/${moves}${item}`;
27111
+ }
27112
+ /** A section's token in the sequence: a list section's mix, else its kind (`sequenceTokenOf`). */
27113
+ function sectionTokenOf(s) {
27114
+ const list = s.pin || (s.track ?? 1) > 1 ? undefined : (s.layers ?? []).find(l => l.kind === LayoutLayerKind.Gallery && l.gallery?.list)?.gallery?.list;
27115
+ return list && !String(s.ground ?? '').startsWith('photo:') ? listTokenOf(list) : sequenceTokenOf(s);
27116
+ }
27117
+ /** Every list mix a page shows, in order. */
27118
+ function listTokensOf(page) {
27119
+ return (page.sections ?? []).flatMap(s => (s.layers ?? []).filter(l => l.kind === LayoutLayerKind.Gallery && l.gallery?.list).map(l => listTokenOf(l.gallery.list)));
27120
+ }
27121
+ /** The mechanism of the signature section, by what moves in it (first match wins, as the prototype's). */
27122
+ const SIGNATURE_BY_TRACK = [
27123
+ [LayoutTrackProp.Clip, LayoutSignatureId.PhotoUnveiled],
27124
+ [LayoutTrackProp.Rotate, LayoutSignatureId.ObjectTurning],
27125
+ [LayoutTrackProp.X, LayoutSignatureId.HalvesApart],
27126
+ [LayoutTrackProp.Y, LayoutSignatureId.PicturesStacking],
27127
+ [LayoutTrackProp.Scale, LayoutSignatureId.ZoomThrough],
27128
+ ];
27129
+ function signatureOf(s) {
27130
+ if (!s)
27131
+ return LayoutSignatureId.HeldScreen;
27132
+ const layers = s.layers ?? [];
27133
+ if (layers.some(l => l.kinetic))
27134
+ return LayoutSignatureId.WordsLit;
27135
+ if (layers.some(l => l.gallery?.scroll))
27136
+ return LayoutSignatureId.ScrollReel;
27137
+ if ((s.track ?? 1) > 1)
27138
+ return LayoutSignatureId.SidewaysWalk;
27139
+ const props = new Set(layers.flatMap(l => (l.motion ?? []).map(m => m.prop)));
27140
+ return SIGNATURE_BY_TRACK.find(([prop]) => props.has(prop))?.[1] ?? LayoutSignatureId.HeldScreen;
27141
+ }
27142
+ /** A place given to the plan's ready-made section (silent section fallback): its token in the sequence and the opening. */
27143
+ const LAYOUT_READY_MADE_TOKEN = 'ready-made';
27144
+ const READY_MADE_OPENING = `${LAYOUT_READY_MADE_TOKEN}:`;
27145
+ /** A redesign's section place (RD-D20) opens on the owner's part — never a composition of the model's. */
27146
+ const CARRIED_OPENING = `${READY_MADE_OPENING}carried`;
27147
+ function openingOf(s) {
27148
+ if (s?.readyMade)
27149
+ return `${READY_MADE_OPENING}${s.readyMade.pattern}`;
27150
+ if (s?.carry)
27151
+ return CARRIED_OPENING;
27152
+ const layers = s?.layers ?? [];
27153
+ const lead = layers.find(l => l.role === LayoutRole.Lead) ?? layers[0];
27154
+ if (!lead)
27155
+ return 'none';
27156
+ if (lead.size === LayoutSize.Screen)
27157
+ return OPENING_SCREEN_WORD;
27158
+ if (lead.kind === LayoutLayerKind.Photo || lead.kind === LayoutLayerKind.Gallery)
27159
+ return lead.kind;
27160
+ return lead.size ? `${lead.size}-${lead.kind}` : lead.kind;
27161
+ }
27162
+ const SCRUB_TOKEN = 'scrub';
27163
+ /** What of AW10 a page wears (`LayoutFingerprint.scrub`): letters rising, entrances following the scroll, both — or
27164
+ * null for neither. */
27165
+ function scrubTokenOf(page) {
27166
+ const layers = (page.sections ?? []).flatMap(s => s.layers ?? []);
27167
+ const parts = [
27168
+ layers.some(l => l.enter === LayoutEnter.Letters) && LayoutEnter.Letters,
27169
+ layers.some(l => l.scrub) && SCRUB_TOKEN,
27170
+ ].filter((x) => !!x);
27171
+ return parts.length ? parts.join('+') : null;
27172
+ }
27173
+ /** A page's fingerprint, worn in `preset` and `mode`, under the site's `header` and `footer` when they are known. A photo ground opens on
27174
+ * the page's own ground colour. */
27175
+ function fingerprintOf(page, preset, mode, header, footer) {
27176
+ const sections = page.sections ?? [];
27177
+ const lists = listTokensOf(page);
27178
+ const scrub = scrubTokenOf(page);
27179
+ const first = sections[0];
27180
+ const ground = String(first?.ground ?? LayoutColour.Ground);
27181
+ const name = Object.values(LayoutColour).includes(ground) ? ground : LayoutColour.Ground;
27182
+ const colour = parseCssColour(layoutPresetColours(preset, mode)?.[name]);
27183
+ const light = colour ? relativeLuminance(colour) > PHOTO_LIGHT_LUMINANCE : mode === 'light';
27184
+ return {
27185
+ opening: openingOf(first),
27186
+ sequence: sections.map(s => (s.readyMade || s.carry ? LAYOUT_READY_MADE_TOKEN : sectionTokenOf(s))),
27187
+ signature: signatureOf(sections.find(s => s.signature)),
27188
+ ground: light ? PhotoTone.Light : PhotoTone.Dark,
27189
+ preset,
27190
+ ...(lists.length ? { lists } : {}),
27191
+ ...(header ? { header: headerTokenOf(header) } : {}),
27192
+ ...(footer ? { footer: footerTokenOf(footer) } : {}),
27193
+ ...(scrub ? { scrub } : {}),
27194
+ };
27195
+ }
27196
+ /** A composed page's fingerprint under its site plan's header and footer — the ONE call every reader of a plan makes. */
27197
+ function fingerprintOfPlanPage(page, preset, mode, plan) {
27198
+ return fingerprintOf(page, preset, mode, wornHeaderOfPlan(plan).mix, footerMixOfPlan(plan));
27199
+ }
27200
+ /** The longest common subsequence of two sequences. */
27201
+ function lcs(a, b) {
27202
+ const d = Array.from({ length: a.length + 1 }, () => new Array(b.length + 1).fill(0));
27203
+ for (let i = 1; i <= a.length; i++)
27204
+ for (let j = 1; j <= b.length; j++)
27205
+ d[i][j] = a[i - 1] === b[j - 1] ? d[i - 1][j - 1] + 1 : Math.max(d[i - 1][j], d[i][j - 1]);
27206
+ return d[a.length][b.length];
27207
+ }
27208
+ /** The share of the longer sequence two pages have in common. */
27209
+ function sequenceShare(a, b) {
27210
+ return lcs(a, b) / Math.max(1, a.length, b.length);
27211
+ }
27212
+ /** #129: an opening mix's token (`opening:<frame>/<media>/<words>`, opening-mix `openingTokenOf`) — a type-led first
27213
+ * screen's. Literal here: importing opening-mix from this module reorders the generation-core load (a cycle). */
27214
+ const MIX_OPENING = 'opening:';
27215
+ const openingWords = (opening) => opening.startsWith(MIX_OPENING) ? `an opening of ${opening.slice(MIX_OPENING.length).split('/').join(' · ')}`
27216
+ : opening.startsWith(READY_MADE_OPENING) ? `the ready-made ${opening.slice(READY_MADE_OPENING.length)}` : opening === OPENING_SCREEN_WORD ? 'a screen-size word' : opening === 'photo' || opening === 'gallery' ? `a ${opening}` : `a ${opening.replace('-', ' ')}`;
27217
+ /** A list token in words: `list:row/middle-raised/arrows` → "row · middle raised · arrows". */
27218
+ const listWords = (token) => token.replace(`${LAYOUT_LIST_TOKEN}:`, '').split('/').map(p => p.replace(/[-+]/g, ' ')).join(' · ');
27219
+ const signatureWords = (id) => SPEC_SITE_LAYOUT.signatures.find(s => s.id === id)?.label ?? id;
27220
+ /**
27221
+ * Refuses a page that repeats one already made (M8-G2-D7): most of the same sequence (`SPEC_SITE_LAYOUT.sameness.sequence`,
27222
+ * 6 of 7), or the same opening AND signature; against a page of the same business type, the same opening or the same
27223
+ * signature alone — never a page of THIS site (`sameSite`), which is always the same kind. The sequence is compared with real pages only — this studio's, other studios', this site's — never a
27224
+ * demo's (Doron, 2026-11-09: the proof sites' order is the product's grammar, not someone's site). The look is the
27225
+ * owner's pick and is never a reason.
27226
+ */
27227
+ function samenessIssues(me, others, businessType) {
27228
+ const issues = [];
27229
+ const add = (path, message) => {
27230
+ issues.push({ code: LayoutIssueCode.Sameness, path, message });
27231
+ };
27232
+ for (const o of others) {
27233
+ const them = o.fingerprint;
27234
+ const sameType = !o.sameSite && !!businessType && o.businessType === businessType;
27235
+ const opening = me.opening === them.opening;
27236
+ const signature = me.signature === them.signature;
27237
+ if (opening && (signature || sameType))
27238
+ add('sections[0]', `"${o.name}" already opens on ${openingWords(them.opening)}${sameType ? ', and it is the same kind of business' : ` with ${signatureWords(them.signature)}`} — open another way`);
27239
+ if (signature && (opening || sameType))
27240
+ add('sections', `"${o.name}"'s signature is already ${signatureWords(them.signature)} — find another mechanism`);
27241
+ // A list mix: refused against the same kind of business (list-ingredients §7); the brief names every other one.
27242
+ if (sameType)
27243
+ for (const token of (me.lists ?? []).filter(t => (them.lists ?? []).includes(t))) {
27244
+ add('sections', `"${o.name}" already shows a list as ${listWords(token)}, and it is the same kind of business — mix this list another way`);
27245
+ }
27246
+ if (!o.demo && sequenceShare(me.sequence, them.sequence) >= SPEC_SITE_LAYOUT.sameness.sequence) {
27247
+ add('sections', `your sequence (${me.sequence.join(' → ')}) repeats "${o.name}"'s (${them.sequence.join(' → ')}) — change the order and the kinds of sections`);
27248
+ }
27249
+ }
27250
+ return issues;
27251
+ }
27252
+ /**
27253
+ * The openings the studio's OTHER sites already wear, as the memory holds them (`LayoutFingerprint.opening`). This site's
27254
+ * own pages (`sameSite`) and the demos are never a reason: every page of a site may open alike, and a demo is not a site.
27255
+ * The ONE reading of the memory for an opening — a fallen page's (`distinctFallbackSections`) and a type-led first
27256
+ * screen's (#129, `typeLedRound`).
27257
+ */
27258
+ function wornOpenings(others) {
27259
+ return new Set(others.filter(o => !o.sameSite && !o.demo).map(o => o.fingerprint.opening));
27260
+ }
27261
+ /** The three proof sites' fingerprints (premium M8): every new page's opening and signature are compared with them, never
27262
+ * its order of sections (`demo`). layout-fingerprint.spec holds them equal to `fingerprintOf` of the proof layouts. */
27263
+ const PROOF_FINGERPRINTS = [
27264
+ {
27265
+ name: 'bar-daring',
27266
+ demo: true,
27267
+ fingerprint: {
27268
+ opening: OPENING_SCREEN_WORD,
27269
+ sequence: [LayoutSequenceToken.Composition, LayoutSequenceToken.Gallery, LayoutSequenceToken.Inhale, LayoutSequenceToken.HeldWords, LayoutSequenceToken.Sideways, LayoutSequenceToken.Gallery, LayoutSequenceToken.Composition],
27270
+ signature: LayoutSignatureId.WordsLit,
27271
+ ground: PhotoTone.Dark,
27272
+ preset: 'after-dark',
27273
+ },
27274
+ },
27275
+ {
27276
+ name: 'makers-daring',
27277
+ demo: true,
27278
+ fingerprint: {
27279
+ opening: OPENING_SCREEN_WORD,
27280
+ sequence: [LayoutSequenceToken.Composition, LayoutSequenceToken.Sideways, LayoutSequenceToken.Gallery, LayoutSequenceToken.Gallery, LayoutSequenceToken.Inhale, LayoutSequenceToken.HeldWords, LayoutSequenceToken.PhotoGround],
27281
+ signature: LayoutSignatureId.WordsLit,
27282
+ ground: PhotoTone.Light,
27283
+ preset: 'warm-editorial',
27284
+ },
27285
+ },
27286
+ {
27287
+ name: 'cafe-he-daring',
27288
+ demo: true,
27289
+ fingerprint: {
27290
+ opening: 'xxl-heading',
27291
+ sequence: [LayoutSequenceToken.Composition, LayoutSequenceToken.Composition, LayoutSequenceToken.Inhale, LayoutSequenceToken.Held, LayoutSequenceToken.HeldReel, LayoutSequenceToken.Gallery, LayoutSequenceToken.Composition],
27292
+ signature: LayoutSignatureId.PhotoUnveiled,
27293
+ ground: PhotoTone.Light,
27294
+ preset: 'warm-editorial',
27295
+ },
27296
+ },
27297
+ ];
27298
+
27299
+ /**
27300
+ * The words that carry no subject in the languages a site is written in (English, Hebrew): "the", "with", "our", "כמו",
27301
+ * "שלנו"… Shared by every comparison of meaning by words — a stock photo against a slot (`stockWords`), a model's section
27302
+ * against a ready-made one (silent section fallback). Lower case; only words of three letters or more (shorter ones never
27303
+ * count anywhere).
27304
+ */
27305
+ const FUNCTION_WORDS = new Set([
27306
+ 'the', 'and', 'with', 'for', 'your', 'our', 'you', 'from', 'into', 'this', 'that', 'here', 'there', 'about', 'how', 'what',
27307
+ 'who', 'are', 'all', 'but', 'not', 'was', 'were', 'has', 'have', 'had', 'its', 'they', 'them', 'their', 'then', 'than',
27308
+ 'when', 'where', 'which', 'will', 'can', 'just', 'out', 'over', 'under', 'onto', 'each', 'every', 'some', 'any', 'one', 'also',
27309
+ 'too', 'very', 'more', 'most', 'less', 'only', 'own', 'yours', 'ours', 'these', 'those',
27310
+ 'אנחנו', 'אני', 'הוא', 'היא', 'אתם', 'אתן', 'שלנו', 'שלכם', 'שלך', 'שלו', 'שלה', 'אצלנו', 'כמו', 'אבל', 'זאת', 'כאן', 'יותר',
27311
+ 'מאוד', 'כבר', 'עוד', 'אחרי', 'לפני', 'בין', 'כדי', 'איך',
27312
+ ]);
27313
+
27314
+ /**
27315
+ * SILENT SECTION FALLBACK (Doron, 2026-11-09: "for now we need to do silent section fallback and not fallback whole page").
27316
+ * A composed page that still fails after the mends and its one repair — or after the browser's check — no longer falls
27317
+ * back whole: each section an issue names is given to the plan's READY-MADE section for the same place (the pattern the
27318
+ * whole-page fallback would have stamped there, worn in the same look), or dropped where none fits and the page keeps its
27319
+ * opening and its close. Then the page is judged again, once, exactly like any composed page — its MINIMUMS on the model's
27320
+ * own remaining sections (the given-away ones ride on `page.givenAway`; iox-ui#67, Doron 2026-11-09), its maximums on the
27321
+ * whole page. A ready-made section that would say again what a section the model kept already says (its title, its text —
27322
+ * iox-ui#68) is never given a place: a page that repeats a paragraph is worse than the last resort. Only a page that still
27323
+ * fails — an issue that names no section, a place with nothing to give it, a swap that
27324
+ * breaks a section kept or a maximum of the page — falls back whole: the last resort, counted. A swap never leads to another swap. The owner sees a composed page; the swaps are recorded for us, the model's sections kept.
27325
+ * Pure: the service and `ai:replay` run this one function.
27326
+ */
27327
+ /** What became of one place of the model's page. */
27328
+ var SectionSwapAction;
27329
+ (function (SectionSwapAction) {
27330
+ /** The plan's ready-made section stands there. */
27331
+ SectionSwapAction["Replaced"] = "replaced";
27332
+ /** Nothing fitted the place: the page goes on without it. */
27333
+ SectionSwapAction["Dropped"] = "dropped";
27334
+ })(SectionSwapAction || (SectionSwapAction = {}));
27335
+ /** Why a place was given away (and which ready-made section took it). */
27336
+ var SectionSwapRule;
27337
+ (function (SectionSwapRule) {
27338
+ /** The page's first section: always the plan's opening, never dropped. */
27339
+ SectionSwapRule["Opening"] = "opening";
27340
+ /** The page's last section: always the plan's close, never dropped. */
27341
+ SectionSwapRule["Close"] = "close";
27342
+ /** A middle section: the ready-made section that shows the same list, holds the form, or says most of its words. */
27343
+ SectionSwapRule["Fit"] = "fit";
27344
+ /** A middle section no ready-made section fits (or every one that does would repeat a kept section, iox-ui#68): dropped. */
27345
+ SectionSwapRule["NoFit"] = "no-fit";
27346
+ })(SectionSwapRule || (SectionSwapRule = {}));
27347
+ /** Why a page fell back whole after all (the last resort). */
27348
+ var SectionFallbackLastResort;
27349
+ (function (SectionFallbackLastResort) {
27350
+ /** Nothing left names a section (a count, a share, the order of sections), or after the swaps only such an issue is. */
27351
+ SectionFallbackLastResort["PageWide"] = "page-wide";
27352
+ /** The place named is the opening or the close, and the plan has no ready-made section left for it — or only one that
27353
+ * would repeat what a kept section says (iox-ui#68). */
27354
+ SectionFallbackLastResort["NoReadyMade"] = "no-ready-made";
27355
+ /** It names a section already given to a ready-made one. */
27356
+ SectionFallbackLastResort["ReadyMadeNamed"] = "ready-made-named";
27357
+ /** After the swaps, the check names a section the model composed and kept (a neighbour the swap broke). */
27358
+ SectionFallbackLastResort["Neighbour"] = "neighbour";
27359
+ })(SectionFallbackLastResort || (SectionFallbackLastResort = {}));
27360
+ const NAMED = /sections\[(\d+)\]/g;
27361
+ /** The sections an issue names: its path's, and any its words name. */
27362
+ function sectionsNamed(issue) {
27363
+ const at = new Set();
27364
+ for (const text of [issue.path, issue.message])
27365
+ for (const m of String(text ?? '').matchAll(NAMED))
27366
+ at.add(Number(m[1]));
27367
+ return [...at].sort((a, b) => a - b);
27368
+ }
27369
+ const WORD = /[\p{L}\p{N}]{3,}/gu;
27370
+ /** The words that can make a fit: three letters or more, never a function word (iox-ui#68: "the" made one). */
27371
+ const wordsOf$2 = (text) => (String(text ?? '').toLowerCase().match(WORD) ?? []).filter(w => !FUNCTION_WORDS.has(w));
27372
+ const layerTexts = (l) => [l.text ?? '', ...(l.items ?? []), ...(l.gallery?.slides ?? []).map(s => s.caption ?? ''), l.form?.title ?? '', l.form?.intro ?? ''];
27373
+ const layerWords = (l) => layerTexts(l).flatMap(wordsOf$2);
27374
+ /** Every word of a text, in order, as a phrase that can be found inside another (` a small room kept slow `). */
27375
+ const PHRASE_WORD = /[\p{L}\p{N}]+/gu;
27376
+ const phraseOf = (text) => {
27377
+ const words = String(text ?? '').toLowerCase().match(PHRASE_WORD) ?? [];
27378
+ return { phrase: ` ${words.join(' ')} `, words: words.length };
27379
+ };
27380
+ /** The fewest words a text needs to count as said twice — a two-word label ("The room") may well appear twice. */
27381
+ const REPEAT_MIN_WORDS = 3;
27382
+ /** The share of the shorter text's words the longer one holds for the two to be the same sentence said twice: one word
27383
+ * changed is still a repeat (the café's quote, "…וחברים צריכים שולחן" and "…וחברים טובים צריכים שולחן"). */
27384
+ const REPEAT_SHARED = 0.8;
27385
+ /** Whether two texts say the same thing: one inside the other, or the shorter's words (function words aside) nearly all
27386
+ * in the longer. */
27387
+ function sameSaying(a, b) {
27388
+ if (a.phrase.includes(b.phrase) || b.phrase.includes(a.phrase))
27389
+ return true;
27390
+ const [short, long] = [new Set(wordsOf$2(a.text)), new Set(wordsOf$2(b.text))].sort((x, y) => x.size - y.size);
27391
+ if (short.size < REPEAT_MIN_WORDS)
27392
+ return false;
27393
+ return [...short].filter(w => long.has(w)).length / short.size >= REPEAT_SHARED;
27394
+ }
27395
+ /**
27396
+ * Whether the plan section would say again what the sections the model kept already say (iox-ui#68): a title or a text of
27397
+ * its slots found inside a kept layer's words, or a kept layer's words found inside it, or the two the same sentence
27398
+ * with a word changed — each of three words or more.
27399
+ */
27400
+ function repeatsKept(plan, kept) {
27401
+ const long = (text) => ({ ...phraseOf(text), text });
27402
+ const said = kept.flatMap(s => (s.layers ?? []).flatMap(layerTexts)).map(long).filter(p => p.words >= REPEAT_MIN_WORDS);
27403
+ return Object.values(plan.slots ?? {}).map(long).filter(p => p.words >= REPEAT_MIN_WORDS)
27404
+ .some(slot => said.some(k => sameSaying(slot, k)));
27405
+ }
27406
+ /** How well a ready-made section stands for a model's section: the same list, the form, the words they share. */
27407
+ function fitScore(section, plan) {
27408
+ const layers = section.layers ?? [];
27409
+ let score = 0;
27410
+ if (plan.binding && layers.some(l => l.gallery?.source === plan.binding))
27411
+ score += 10;
27412
+ if ((plan.form || /^(contact|cta)\./.test(plan.pattern)) && layers.some(l => l.kind === 'form'))
27413
+ score += 5;
27414
+ const said = new Set(layers.flatMap(layerWords));
27415
+ score += new Set(Object.values(plan.slots ?? {}).flatMap(wordsOf$2).filter(w => said.has(w))).size;
27416
+ return score;
27417
+ }
27418
+ /** The least a middle section's fit scores to be given a ready-made section (two shared words, a form or a list). */
27419
+ const FIT_MIN = 2;
27420
+ /** A ready-made stub at a place: no layers of its own — the composer stamps the plan section's pattern there. */
27421
+ function readyMadeSection(original, at, plan) {
27422
+ return { id: original.id, kind: 'content', screens: 1, rows: 1, layers: [], phone: [], readyMade: { at, pattern: plan.pattern } };
27423
+ }
27424
+ /**
27425
+ * Give every section the issues name to the plan's ready-made section for its place, or drop it, then judge the page once
27426
+ * more (a page-wide issue beside them may be cured by the swap — the judge says). `plan` is the page's ready-made
27427
+ * sections (`PagePlan.sections`), in order; `issues` what is left after the mends and the one repair.
27428
+ */
27429
+ function fallBackBySection(page, plan, issues, judge) {
27430
+ const current = structuredClone(page);
27431
+ const swaps = [];
27432
+ const last = (lastResort, left, at = current) => ({ page: at, swaps, left, lastResort });
27433
+ if (!issues.length)
27434
+ return { page: current, swaps, left: [] };
27435
+ const named = new Map();
27436
+ for (const issue of issues)
27437
+ for (const i of sectionsNamed(issue))
27438
+ if (i < current.sections.length)
27439
+ named.set(i, [...(named.get(i) ?? []), issue.message]);
27440
+ if (!named.size)
27441
+ return last(SectionFallbackLastResort.PageWide, [...issues]);
27442
+ if ([...named.keys()].some(i => current.sections[i].readyMade))
27443
+ return last(SectionFallbackLastResort.ReadyMadeNamed, [...issues]);
27444
+ const used = new Set(current.sections.map(s => s.readyMade?.at).filter((n) => n !== undefined));
27445
+ // The sections the model composed and keeps: a ready-made section must not say again what they say.
27446
+ const keptSections = current.sections.filter((s, i) => !s.readyMade && !named.has(i));
27447
+ const lastAt = current.sections.length - 1;
27448
+ const next = [...current.sections];
27449
+ const drop = new Set();
27450
+ for (const [i, why] of [...named.entries()].sort((a, b) => a[0] - b[0])) {
27451
+ const s = current.sections[i];
27452
+ const record = (action, rule, readyMade) => swaps.push({ id: s.id, at: i, action, rule, ...(readyMade ? { readyMade } : {}), why, original: structuredClone(s) });
27453
+ if (i === 0 || i === lastAt) {
27454
+ const at = i === 0 ? 0 : plan.length - 1;
27455
+ if (!plan[at] || used.has(at) || repeatsKept(plan[at], keptSections))
27456
+ return last(SectionFallbackLastResort.NoReadyMade, [...issues]);
27457
+ used.add(at);
27458
+ next[i] = readyMadeSection(s, at, plan[at]);
27459
+ record(SectionSwapAction.Replaced, i === 0 ? SectionSwapRule.Opening : SectionSwapRule.Close, { at, pattern: plan[at].pattern });
27460
+ continue;
27461
+ }
27462
+ const best = plan
27463
+ .map((p, at) => ({ at, score: at > 0 && at < plan.length - 1 && !used.has(at) && !repeatsKept(p, keptSections) ? fitScore(s, p) : -1 }))
27464
+ .filter(c => c.score >= FIT_MIN)
27465
+ .sort((a, b) => b.score - a.score || a.at - b.at)[0];
27466
+ if (best) {
27467
+ used.add(best.at);
27468
+ next[i] = readyMadeSection(s, best.at, plan[best.at]);
27469
+ record(SectionSwapAction.Replaced, SectionSwapRule.Fit, { at: best.at, pattern: plan[best.at].pattern });
27470
+ }
27471
+ else {
27472
+ drop.add(i);
27473
+ record(SectionSwapAction.Dropped, SectionSwapRule.NoFit);
27474
+ }
27475
+ }
27476
+ // What the given-away sections carried toward the page's minimums goes with the page (checkLayout forgives exactly
27477
+ // that, iox-ui#67); its maximums stay the whole page's.
27478
+ const givenAway = [...(current.givenAway ?? []), ...swaps.map(w => ({ at: w.at, section: w.original }))];
27479
+ const judged = judge({ ...current, sections: next.filter((_, i) => !drop.has(i)), givenAway });
27480
+ if (!judged.issues.length)
27481
+ return { page: judged.page, swaps, left: [] };
27482
+ const kept = judged.issues.flatMap(sectionsNamed).filter(i => !judged.page.sections[i]?.readyMade);
27483
+ const reason = kept.length ? SectionFallbackLastResort.Neighbour
27484
+ : judged.issues.some(i => sectionsNamed(i).length) ? SectionFallbackLastResort.ReadyMadeNamed : SectionFallbackLastResort.PageWide;
27485
+ return last(reason, judged.issues, judged.page);
27486
+ }
27487
+
27488
+ /** The type-led patterns a picture-led one becomes, best first: the first whose budgets hold every carried word wins. */
27489
+ const TYPE_LED_SWAPS = {
27490
+ 'hero.split': [{ pattern: 'hero.centered', slots: { eyebrow: 'eyebrow', headline: 'headline', lead: 'lead', primary: 'primary', secondary: 'secondary' } }],
27491
+ 'hero.stacked-editorial': [{ pattern: 'hero.centered', slots: { eyebrow: 'eyebrow', headline: 'headline', lead: 'lead', primary: 'primary' } }],
27492
+ 'hero.full-bleed-media': [{ pattern: 'hero.centered', slots: { title: 'headline', lead: 'lead', cta: 'primary' } }],
27493
+ 'hero.scene-depth': [{ pattern: 'hero.centered', slots: { headline: 'headline', lead: 'lead', cta: 'primary' } }],
27494
+ 'hero.scene-object': [{ pattern: 'hero.centered', slots: { headline: 'headline', lead: 'lead', cta: 'primary' } }],
27495
+ 'about.story': [{ pattern: 'story.long-form', slots: { title: 'title', story: 'body1' } }],
27496
+ 'feature.alternating-rows': [{
27497
+ pattern: 'feature.triad',
27498
+ slots: { title: 'title', row1: 'item1', row1Text: 'item1Text', row2: 'item2', row2Text: 'item2Text', row3: 'item3', row3Text: 'item3Text' },
27499
+ }],
27500
+ 'story.scene-chapters': [{
27501
+ pattern: 'feature.triad',
27502
+ slots: { eyebrow: 'title', title: 'item1', text: 'item1Text', title2: 'item2', text2: 'item2Text', title3: 'item3', text3: 'item3Text' },
27503
+ }],
27504
+ };
27505
+ /** Picture-led patterns kept as they are with an empty picture: their pictures are the owner's by nature (a row of the
27506
+ * studio's own client logos) — no type-led section says what they say. A spec holds every static-picture pattern to
27507
+ * one of the two lists. */
27508
+ const TYPE_LED_KEPT = new Set(['proof.logo-strip']);
27509
+ var TypeLedChangeKind;
27510
+ (function (TypeLedChangeKind) {
27511
+ /** A pattern section became its type-led pattern. */
27512
+ TypeLedChangeKind["Section"] = "section";
27513
+ /** The home page's first screen had no picture to show: it opens type-led (`media:none`), a way no other site of the
27514
+ * studio opens — or, when its first section cannot give its words slot by slot, on that section (the mix left out). */
27515
+ TypeLedChangeKind["Opening"] = "opening";
27516
+ /** A model-laid section holding an empty photo was given to the plan's ready-made section. */
27517
+ TypeLedChangeKind["LayoutSection"] = "layout-section";
27518
+ /** A model-laid section holding an empty photo that no ready-made section fits keeps its words, its photos left out
27519
+ * (it is never dropped: the owner's or the model's copy is content). */
27520
+ TypeLedChangeKind["LayoutWords"] = "layout-words";
27521
+ /** A model-laid page that could not give its empty photos away section by section is made from its plan sections. */
27522
+ TypeLedChangeKind["Layout"] = "layout";
27523
+ /** A list's items have no picture at all: its cards show no picture part. */
27524
+ TypeLedChangeKind["List"] = "list";
27525
+ })(TypeLedChangeKind || (TypeLedChangeKind = {}));
27526
+ /** A picture placeholder (read at call time: the composer imports this module, so its enum is not ready at load). */
27527
+ const isPictureKind = (kind) => kind === PlaceholderKind.Image || kind === PlaceholderKind.Video;
27528
+ /** A picture slot's key as `pictureSlotKey` makes it (kept here: pictures.ts imports the composer). */
27529
+ const pageSlotKey = (owner, nodeId) => `page:${owner}:${nodeId}`;
27530
+ const itemSlotKey = (type, index, field) => `item:${type}:${index}:${field}`;
27531
+ /** The empty pictures nothing fills: an image placeholder no filled slot names, every video placeholder (a clip is the
27532
+ * studio's own, never stock). Only a page's — a global's are its own concern. */
27533
+ function emptyPictures(composed, filled) {
27534
+ const pages = new Set(composed.pages.map(p => p.key));
27535
+ return composed.placeholders.filter(p => isPictureKind(p.kind) && pages.has(p.owner)
27536
+ && !(p.kind === PlaceholderKind.Image && filled.has(pageSlotKey(p.owner, p.nodeId))));
27537
+ }
27538
+ /** The content types whose items would show no picture: every item's picture empty and none filled (a type with no items
27539
+ * yet keeps its picture — the owner's first items bring theirs). The shop's products read as their resource's name. */
27540
+ function picturelessTypes(plan, composed, filled) {
27541
+ const out = [];
27542
+ const judge = (type, field, items) => {
27543
+ if (!field || !items.length)
27544
+ return;
27545
+ if (items.every((item, i) => !item[field] && !filled.has(itemSlotKey(type, i, field))))
27546
+ out.push(type);
27547
+ };
27548
+ judge(ShopResource.Products, SHOP_ROLES[ShopResource.Products].image, (composed.shop?.products ?? []));
27549
+ for (const type of plan.contentTypes)
27550
+ judge(type.name, roleField(type, ContentRole.Image), (composed.items[type.name] ?? []));
27551
+ return out;
27552
+ }
27553
+ /** The type-led place for a section, or null: no swap names its pattern, or no target's budgets hold its words. */
27554
+ function typeLedSection(section, density) {
27555
+ for (const target of TYPE_LED_SWAPS[section.pattern] ?? []) {
27556
+ const pattern = patternById(target.pattern);
27557
+ if (!pattern)
27558
+ continue;
27559
+ const declared = new Set(patternSlots(pattern));
27560
+ const slots = {};
27561
+ let fits = true;
27562
+ for (const [slot, value] of Object.entries(section.slots ?? {})) {
27563
+ const to = target.slots[slot];
27564
+ const budget = to ? slotBudget(pattern, to, density) : null;
27565
+ if (!to || !declared.has(to) || (budget !== null && value.length > budget)) {
27566
+ fits = false;
27567
+ break;
27568
+ }
27569
+ slots[to] = value;
27570
+ }
27571
+ if (!fits)
27572
+ continue;
27573
+ const linkSlots = new Set(patternLinkSlots(pattern));
27574
+ const links = Object.fromEntries(Object.entries(section.links ?? {}).map(([slot, route]) => [target.slots[slot], route]).filter(([slot]) => !!slot && linkSlots.has(slot)));
27575
+ const parts = new Set(patternOptionalParts(pattern));
27576
+ const without = (section.without ?? []).filter(w => parts.has(w));
27577
+ const next = {
27578
+ pattern: target.pattern,
27579
+ ...(Object.keys(slots).length ? { slots } : {}),
27580
+ ...(Object.keys(links).length ? { links } : {}),
27581
+ ...(without.length ? { without } : {}),
27582
+ ...(section.enter ? { enter: section.enter } : {}),
27583
+ };
27584
+ return { section: next, to: target.pattern };
27585
+ }
27586
+ return null;
27587
+ }
27588
+ function rootsOf(page, layout) {
27589
+ const out = new Map();
27590
+ const sections = page.layout?.sections ?? [];
27591
+ // A model-laid page keeps one root per layout section, in order (an opening it could not replace stands first).
27592
+ const offset = page.layout ? Math.max(0, layout.length - sections.length) : 0;
27593
+ const whereOf = (root, pos) => {
27594
+ const opening = typeof root.props?.[OPENING_MIX_PROP] === 'string';
27595
+ if (!page.layout) {
27596
+ const m = /-(\d+)$/.exec(root.id);
27597
+ return { pos, opening, laid: -1, planAt: m && root.id === `${page.key}-${m[1]}` ? Number(m[1]) : -1 };
27598
+ }
27599
+ // Its stamp names its layout section (M2-1); a ready-made place is stamped with its plan section's pattern.
27600
+ if (root.composed?.layout)
27601
+ return { pos, opening, laid: sections.findIndex(s => s.id === root.composed.layout), planAt: -1 };
27602
+ const readyMade = sections[pos - offset]?.readyMade;
27603
+ return { pos, opening, laid: -1, planAt: readyMade ? readyMade.at : -1 };
27604
+ };
27605
+ layout.forEach((root, pos) => {
27606
+ const where = whereOf(root, pos);
27607
+ walkSerialized([root], n => { out.set(n.id, where); });
27608
+ });
27609
+ return out;
27610
+ }
27611
+ /** The layer a composed layout node belongs to (`<page>-s<section>-l<layer>…`), or null. */
27612
+ function layerOf(nodeId) {
27613
+ const m = /-s(\d+)-l(\d+)(?:-|$)/.exec(nodeId);
27614
+ return m ? { section: Number(m[1]), layer: Number(m[2]) } : null;
27615
+ }
27616
+ /** The layers that hold words (what a section must keep when its photos go). */
27617
+ const WORD_LAYERS = new Set([
27618
+ LayoutLayerKind.Word, LayoutLayerKind.Heading, LayoutLayerKind.Text, LayoutLayerKind.Label, LayoutLayerKind.Number,
27619
+ LayoutLayerKind.Button, LayoutLayerKind.List, LayoutLayerKind.Form, LayoutLayerKind.Marquee,
27620
+ ]);
27621
+ const GRID_COLUMNS$1 = 12;
27622
+ /** The widest the words of a section whose photos went may grow to (columns): a reading measure, never the full grid. */
27623
+ const WORDS_MEASURE = 10;
27624
+ const BOX_PHOTO = 'photo:box:';
27625
+ const PLAIN_GROUND = 'ground';
27626
+ /**
27627
+ * A model-laid section with its empty photos left out — its words kept where the model put them, given the width the
27628
+ * photos held beside them (centred, at most a reading measure) and the rows they held under them (empty rows close up,
27629
+ * the section's height following unless it is pinned). Null when it says nothing without its photos. Pure.
27630
+ */
27631
+ function typeLedLayoutSection(section, gone) {
27632
+ const kept = section.layers.map((layer, i) => ({ layer, i })).filter(x => !gone.has(x.i));
27633
+ if (!kept.some(x => WORD_LAYERS.has(x.layer.kind)))
27634
+ return null;
27635
+ const index = new Map(kept.map((x, n) => [x.i, n]));
27636
+ const photos = [...gone].map(i => section.layers[i]).filter(Boolean);
27637
+ const words = kept.filter(x => x.layer.kind !== LayoutLayerKind.Shape).map(x => x.layer);
27638
+ const from = Math.min(...words.map(l => l.col[0]));
27639
+ const to = Math.max(...words.map(l => l.col[1]));
27640
+ const beside = photos.length > 0 && photos.every(p => p.col[0] >= to || p.col[1] <= from);
27641
+ const width = Math.max(1, to - from);
27642
+ const grown = beside ? Math.min(WORDS_MEASURE, GRID_COLUMNS$1, width + Math.max(...photos.map(p => p.col[1] - p.col[0]))) : width;
27643
+ const start = beside ? 1 + Math.floor((GRID_COLUMNS$1 - grown) / 2) : from;
27644
+ const col = (c) => (beside ? start + Math.round(((c - from) * grown) / width) : c);
27645
+ const used = new Set();
27646
+ for (const { layer } of kept)
27647
+ for (let r = layer.row[0]; r < layer.row[1]; r++)
27648
+ used.add(r);
27649
+ const line = (r) => 1 + [...used].filter(u => u < r).length;
27650
+ const rows = used.size;
27651
+ const layers = kept.map(({ layer }) => {
27652
+ const c0 = col(layer.col[0]);
27653
+ return { ...layer, col: [c0, Math.max(c0 + 1, col(layer.col[1]))], row: [line(layer.row[0]), line(layer.row[1])] };
27654
+ });
27655
+ const screens = section.pin ? section.screens : Math.max(1, Math.round((section.screens * rows) / Math.max(1, section.rows)));
27656
+ const ground = section.ground?.startsWith(BOX_PHOTO) ? PLAIN_GROUND : section.ground;
27657
+ const { phone, ...rest } = section;
27658
+ const order = phone?.filter(i => index.has(i)).map(i => index.get(i));
27659
+ return { ...rest, ...(ground !== undefined ? { ground } : {}), screens, rows, layers, ...(order?.length ? { phone: order } : {}) };
27660
+ }
27661
+ const SAID_LAYOUT = 'holds a photo nothing fills';
27662
+ /** A model-laid page that would lose more than a third of its sections to empty photos is made from its plan sections
27663
+ * instead: a page of three survivors is thinner than the plan's own page (its type-led sections). Only a section that
27664
+ * says nothing without its photos is lost now. */
27665
+ const THIN_SHARE = 3;
27666
+ const keepAsLaid = (page) => ({ page, issues: [] });
27667
+ /** The tier a build is at when none is said (GenerationTier.Basic — a value import of site-plan.model here reorders the
27668
+ * generation-core load). */
27669
+ const BASIC = 'basic';
27670
+ const isHome = (page) => page.isHome === true || page.route === '/';
27671
+ /**
27672
+ * The type-led first screen for a home page: the plan's own frame and words first, then the contract's ways
27673
+ * (`typeLedOpeningWays`), the first the site carries unmended (its tier, the business name's fit) that no OTHER site of
27674
+ * the studio opens on — else the first it carries, said as worn. Pure.
27675
+ */
27676
+ function chooseTypeLedOpening(plan, context = {}) {
27677
+ const own = openingMixOfPlan(plan);
27678
+ // The plan's own frame and words, on no picture (a slow zoom has nothing to move: it goes with the picture).
27679
+ const mine = own ? [{ ...own, media: OpeningMedia.None, extras: [...own.extras], motion: own.motion.filter(m => m !== OpeningMotion.SlowZoom) }] : [];
27680
+ const ways = [...mine, ...typeLedOpeningWays()];
27681
+ const site = openingContextOf({ business: plan.business, design: plan.design, tier: context.tier ?? BASIC, badge: null, cutOut: false });
27682
+ const carried = ways.map(m => drawnOpeningMix(m).drawn).filter(m => !checkOpening(m, site).repairs.length);
27683
+ const worn = wornOpenings(context.studio ?? []);
27684
+ const free = carried.find(m => !worn.has(openingTokenOf(m)));
27685
+ // The contract's last way is every tier's and fits any name (a heading): there is always one.
27686
+ const mix = free ?? carried[0] ?? checkOpening(ways[ways.length - 1], site).mix;
27687
+ return { mix, token: openingTokenOf(mix), worn: !free };
27688
+ }
27689
+ /**
27690
+ * One round: the plan a composition should have been composed from, given what fills its pictures — or no changes. The
27691
+ * caller composes again and asks once more (an opening left out shows the first section's own picture, judged next).
27692
+ */
27693
+ function typeLedRound(plan, composed, filled, context = {}) {
27694
+ const changes = [];
27695
+ const empty = emptyPictures(composed, filled);
27696
+ const density = typeof plan.design?.density === 'string' ? plan.design.density : null;
27697
+ let firstScreen = null;
27698
+ let homeAt = -1;
27699
+ const swapSection = (page, sections, i) => {
27700
+ const section = sections[i];
27701
+ if (!section || TYPE_LED_KEPT.has(section.pattern))
27702
+ return false;
27703
+ const led = typeLedSection(section, density);
27704
+ if (!led)
27705
+ return false;
27706
+ sections[i] = led.section;
27707
+ changes.push({ kind: TypeLedChangeKind.Section, page: page.key, at: i, from: section.pattern, to: led.to, said: `${page.name}: ${section.pattern} has no picture — ${led.to} says its words` });
27708
+ return true;
27709
+ };
27710
+ const pages = plan.pages.map((page, p) => {
27711
+ const made = composed.pages.find(c => c.key === page.key) ?? composed.pages[p];
27712
+ const mine = empty.filter(e => e.owner === page.key);
27713
+ if (!made || !mine.length)
27714
+ return page;
27715
+ const roots = rootsOf(page, made.layout);
27716
+ const laid = new Map();
27717
+ const planAt = new Set();
27718
+ let first = false;
27719
+ for (const e of mine) {
27720
+ const where = roots.get(e.nodeId);
27721
+ if (!where)
27722
+ continue;
27723
+ if (where.pos === 0 && isHome(page))
27724
+ first = true;
27725
+ if (where.opening)
27726
+ continue;
27727
+ if (where.laid >= 0) {
27728
+ const at = layerOf(e.nodeId);
27729
+ const layers = laid.get(where.laid) ?? new Set();
27730
+ if (at && at.section === where.laid)
27731
+ layers.add(at.layer);
27732
+ laid.set(where.laid, layers);
27733
+ }
27734
+ else if (where.planAt >= 0)
27735
+ planAt.add(where.planAt);
27736
+ }
27737
+ let next = page;
27738
+ // A plan section's pattern (a pattern page's, a ready-made place's) whose picture nothing fills: its type-led pattern.
27739
+ let sections = null;
27740
+ for (const i of [...planAt].sort((a, b) => a - b)) {
27741
+ const copy = sections ?? [...page.sections];
27742
+ if (swapSection(page, copy, i))
27743
+ sections = copy;
27744
+ }
27745
+ if (sections)
27746
+ next = { ...next, sections };
27747
+ // A section the model laid with a photo nothing fills: the plan's ready-made section for its place (the ONE
27748
+ // fallback picker); one no ready-made section fits keeps its words with its photos left out (never dropped); the
27749
+ // whole page from its sections when no place can be given away.
27750
+ if (page.layout && laid.size) {
27751
+ const issues = [...laid.keys()].map(i => ({ code: LayoutIssueCode.Content, path: `sections[${i}]`, message: `sections[${i}] ${SAID_LAYOUT}` }));
27752
+ const fallback = fallBackBySection(page.layout, next.sections, issues, keepAsLaid);
27753
+ const words = new Map();
27754
+ for (const w of fallback.swaps) {
27755
+ if (w.action !== SectionSwapAction.Dropped)
27756
+ continue;
27757
+ const kept = typeLedLayoutSection(page.layout.sections[w.at], laid.get(w.at) ?? new Set());
27758
+ if (kept)
27759
+ words.set(w.at, kept);
27760
+ }
27761
+ const dropped = fallback.swaps.filter(w => w.action === SectionSwapAction.Dropped && !words.has(w.at)).length;
27762
+ const thin = dropped * THIN_SHARE > page.layout.sections.length;
27763
+ if (fallback.lastResort || thin) {
27764
+ const why = thin ? `${dropped} of its ${page.layout.sections.length} sections would be left out`
27765
+ : fallback.lastResort === SectionFallbackLastResort.NoReadyMade ? 'no ready-made section left for a place' : 'its empty photos could not be given away';
27766
+ changes.push({ kind: TypeLedChangeKind.Layout, page: page.key, said: `${page.name}: made from its sections — ${why}` });
27767
+ const { layout: _laid, ...rest } = next;
27768
+ next = rest;
27769
+ }
27770
+ else {
27771
+ for (const swap of fallback.swaps) {
27772
+ const kept = words.get(swap.at);
27773
+ changes.push({
27774
+ kind: kept ? TypeLedChangeKind.LayoutWords : TypeLedChangeKind.LayoutSection, page: page.key, at: swap.at, ...(swap.readyMade ? { to: swap.readyMade.pattern } : {}),
27775
+ said: `${page.name}: section ${swap.at + 1} ${SAID_LAYOUT} — ${swap.readyMade ? `the ready-made ${swap.readyMade.pattern} stands there` : kept ? 'its words stay, its photos left out' : 'left out (it says nothing without its photos)'}`,
27776
+ });
27777
+ }
27778
+ // The dropped places that keep their words go back where the model laid them.
27779
+ const swapped = new Set(fallback.swaps.filter(w => w.action === SectionSwapAction.Dropped).map(w => w.at));
27780
+ const left = [...fallback.page.sections];
27781
+ const sectionsBack = [];
27782
+ page.layout.sections.forEach((_, i) => {
27783
+ if (words.has(i))
27784
+ sectionsBack.push(words.get(i));
27785
+ else if (!swapped.has(i))
27786
+ sectionsBack.push(left.shift());
27787
+ });
27788
+ const givenAway = (fallback.page.givenAway ?? []).filter(g => !words.has(g.at));
27789
+ next = { ...next, layout: { ...fallback.page, sections: sectionsBack, ...(givenAway.length ? { givenAway } : {}) } };
27790
+ if (!givenAway.length)
27791
+ delete next.layout.givenAway;
27792
+ }
27793
+ }
27794
+ if (first) {
27795
+ firstScreen = next;
27796
+ homeAt = p;
27797
+ }
27798
+ return next;
27799
+ });
27800
+ let next = changes.length ? { ...plan, pages } : plan;
27801
+ let opening;
27802
+ if (firstScreen) {
27803
+ // The home page's first screen shows no picture: it opens type-led, its hero's words slot by slot — when the hero
27804
+ // that stands first (after this round's swaps) can give them so; else as v1: the page opens on that section.
27805
+ const home = firstScreen;
27806
+ const sections = [...home.sections];
27807
+ const at = home.layout ? home.layout.sections[0]?.readyMade?.at ?? -1 : 0;
27808
+ const chosen = chooseTypeLedOpening(plan, context);
27809
+ const plain = at >= 0 ? sections[at] : undefined;
27810
+ if (plain && !typeLedOpeningSection(chosen.mix, plain))
27811
+ swapSection(home, sections, at);
27812
+ const hero = at >= 0 ? sections[at] : undefined;
27813
+ const takes = !!hero && !!typeLedOpeningSection(chosen.mix, hero);
27814
+ const nextPages = [...pages];
27815
+ nextPages[homeAt] = { ...home, sections };
27816
+ next = { ...next, pages: nextPages };
27817
+ if (takes) {
27818
+ const words = openingMixWords(chosen.mix);
27819
+ next = { ...next, mixes: { ...next.mixes, opening: words } };
27820
+ opening = { words, token: chosen.token, ...(chosen.worn ? { worn: true } : {}) };
27821
+ const was = plan.mixes?.opening?.join(' ');
27822
+ if (was !== words.join(' ')) {
27823
+ changes.push({
27824
+ kind: TypeLedChangeKind.Opening, page: home.key, to: chosen.token,
27825
+ said: `${home.name}: the first screen has no picture — it opens on its words (${words.join(' ')})${chosen.worn ? ', a way another site of the studio already opens' : ''}`,
27826
+ });
27827
+ }
27828
+ }
27829
+ else if (plan.mixes?.opening?.length) {
27830
+ const { opening: _left, ...mixes } = plan.mixes;
27831
+ next = { ...next, mixes };
27832
+ changes.push({ kind: TypeLedChangeKind.Opening, page: home.key, said: `the opening (${plan.mixes.opening.join(' ')}) has no picture — the home page opens on its first section` });
27833
+ }
27834
+ }
27835
+ return { plan: next, changes, pictureless: picturelessTypes(plan, composed, filled), ...(opening ? { opening } : {}) };
27836
+ }
27837
+
27838
+ /**
27839
+ * THE OWNER'S EDITS INSIDE A LIST CARD (vectoriox/iox-ui#122, board bindings-list BL-D8). Recomposing a list (Bindings ▸
27840
+ * List, Ask) draws its card again from the new mix; before #122 the card template was replaced and whatever the owner had
27841
+ * changed inside it was lost silently. `keepListParts` keeps it, part by part — the carry's rule (site-redesign RD1:
27842
+ * the owner's is placed, never retyped, and what finds no place is SAID, never dropped silently):
27843
+ *
27844
+ * - What is the owner's is told by the composer itself: the frame as the composer would draw it with the mix it wears
27845
+ * now (`baseline`) against the frame on the page (`previous`). A value that differs is the owner's; one that does not
27846
+ * is the composer's and follows the new mix.
27847
+ * - A part is found by its ROLE (`card.title`, `card.eyebrow`…), else by its place in the frame (the composer's ids are
27848
+ * the frame id + a fixed suffix: `-item-image`). An edited part whose role survives in the new card takes the edits
27849
+ * there (kept); one whose role is gone is redrawn — and listed.
27850
+ * - A node the owner added goes into the same parent part in the new card (at the same place among its children);
27851
+ * a part the owner deleted stays deleted. Either is listed as redrawn when its parent part is gone.
27852
+ *
27853
+ * Pure: `composed` is not changed; the result's `children` are the new card with the owner's edits.
27854
+ */
27855
+ /** What became of one part the owner changed. */
27856
+ var ListPartOutcome;
27857
+ (function (ListPartOutcome) {
27858
+ /** The part's role is in the new card: the owner's edits are on it there. */
27859
+ ListPartOutcome["Kept"] = "kept";
27860
+ /** The new card has no such part: the edits are lost — said before Apply (the kept notice, BL-D8). */
27861
+ ListPartOutcome["Redrawn"] = "redrawn";
27862
+ })(ListPartOutcome || (ListPartOutcome = {}));
27863
+ /** How the owner changed a part. */
27864
+ var ListPartChange;
27865
+ (function (ListPartChange) {
27866
+ /** Values on a composed part (a style, its words, an element style, a binding…). */
27867
+ ListPartChange["Edited"] = "edited";
27868
+ /** A node the owner put in the card. */
27869
+ ListPartChange["Added"] = "added";
27870
+ /** A composed part the owner deleted. */
27871
+ ListPartChange["Removed"] = "removed";
27872
+ })(ListPartChange || (ListPartChange = {}));
27873
+ /** Node fields whose values are maps — compared and carried value by value (`styleProps.color`, `props.content`…). */
27874
+ const MAP_FIELDS = ['props', 'styleProps', 'stateStyles', 'responsive', 'stateTriggers'];
27875
+ /** Fields that are the node's identity or its subtree, never an edit. */
27876
+ const SKIP_FIELDS = new Set(['id', 'children']);
27877
+ const same$1 = (a, b) => JSON.stringify(a) === JSON.stringify(b);
27878
+ /** Every node under the frame by its part key (the first of a key wins; a repeat is keyed by its place). */
27879
+ function partsOf$1(frame) {
27880
+ const out = new Map();
27881
+ const prefix = `${frame.id}-`;
27882
+ const keyOf = (n) => n.role ?? (n.id.startsWith(prefix) ? n.id.slice(prefix.length) : `node:${n.id}`);
27883
+ const visit = (n, parent, index) => {
27884
+ let key = keyOf(n);
27885
+ if (out.has(key))
27886
+ key = n.id.startsWith(prefix) ? n.id.slice(prefix.length) : `node:${n.id}`;
27887
+ if (!out.has(key))
27888
+ out.set(key, { node: n, parent, index });
27889
+ (n.children ?? []).forEach((c, i) => visit(c, key, i));
27890
+ };
27891
+ (frame.children ?? []).forEach((c, i) => visit(c, null, i));
27892
+ return out;
27893
+ }
27894
+ /** What differs on a part between the composer's drawing and the page. */
27895
+ function editsOn(baseline, page) {
27896
+ const edits = [];
27897
+ const fields = new Set([...Object.keys(baseline), ...Object.keys(page)].filter(f => !SKIP_FIELDS.has(f)));
27898
+ for (const field of fields) {
27899
+ const was = baseline[field];
27900
+ const now = page[field];
27901
+ if (same$1(was, now))
27902
+ continue;
27903
+ if (MAP_FIELDS.includes(field) && (was === undefined || isMap(was)) && (now === undefined || isMap(now))) {
27904
+ const a = (was ?? {});
27905
+ const b = (now ?? {});
27906
+ for (const key of new Set([...Object.keys(a), ...Object.keys(b)]))
27907
+ if (!same$1(a[key], b[key]))
27908
+ edits.push({ field, key, value: b[key] });
27909
+ }
27910
+ else {
27911
+ edits.push({ field, value: now });
27912
+ }
27913
+ }
27914
+ return edits;
27915
+ }
27916
+ const isMap = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
27917
+ function applyEdits(node, edits) {
27918
+ const target = node;
27919
+ for (const e of edits) {
27920
+ if (e.key === undefined) {
27921
+ if (e.value === undefined)
27922
+ delete target[e.field];
27923
+ else
27924
+ target[e.field] = structuredClone(e.value);
27925
+ continue;
27926
+ }
27927
+ const map = { ...(target[e.field] ?? {}) };
27928
+ if (e.value === undefined)
27929
+ delete map[e.key];
27930
+ else
27931
+ map[e.key] = structuredClone(e.value);
27932
+ target[e.field] = map;
27933
+ }
27934
+ }
27935
+ /**
27936
+ * The new card (`composed`'s children) with the owner's edits from the frame on the page (`previous`), told from what the
27937
+ * composer would draw for the mix the frame wears now (`baseline`). With no baseline nothing is known to be the owner's:
27938
+ * the new card as composed, nothing listed.
27939
+ */
27940
+ function keepListParts(previous, baseline, composed) {
27941
+ const out = structuredClone(composed);
27942
+ out.id = previous.id;
27943
+ if (!baseline)
27944
+ return { children: out.children ?? [], edits: [] };
27945
+ // The composer draws every frame from its id: a baseline drawn under another id is read under the page's.
27946
+ const was = partsOf$1({ ...baseline, id: previous.id });
27947
+ const page = partsOf$1(previous);
27948
+ const now = partsOf$1(out);
27949
+ const edits = [];
27950
+ const say = (part, n, change, count, kept) => edits.push({ part, ...(n.role ? { role: n.role } : {}), type: n.type, change, edits: count, outcome: kept ? ListPartOutcome.Kept : ListPartOutcome.Redrawn });
27951
+ for (const [key, placed] of page) {
27952
+ const drawn = was.get(key);
27953
+ if (!drawn) {
27954
+ // The owner added it — unless its parent is itself the owner's (it travels inside it).
27955
+ if (placed.parent !== null && !was.has(placed.parent))
27956
+ continue;
27957
+ const into = placed.parent === null ? out : now.get(placed.parent)?.node;
27958
+ if (into) {
27959
+ const children = [...(into.children ?? [])];
27960
+ children.splice(Math.min(placed.index, children.length), 0, structuredClone(placed.node));
27961
+ into.children = children;
27962
+ }
27963
+ say(key, placed.node, ListPartChange.Added, 1, !!into);
27964
+ continue;
27965
+ }
27966
+ const changes = editsOn(drawn.node, placed.node);
27967
+ if (!changes.length)
27968
+ continue;
27969
+ const target = now.get(key)?.node;
27970
+ if (target)
27971
+ applyEdits(target, changes);
27972
+ say(key, placed.node, ListPartChange.Edited, changes.length, !!target);
27973
+ }
27974
+ for (const [key, drawn] of was) {
27975
+ if (page.has(key))
27976
+ continue;
27977
+ // The owner deleted it — once, at the topmost part deleted (its own parts went with it).
26996
27978
  if (drawn.parent !== null && !page.has(drawn.parent))
26997
27979
  continue;
26998
27980
  const gone = now.get(key);
@@ -28971,7 +29953,11 @@ function resolveScopedPath(path, repeater, ctx, nodeId) {
28971
29953
  const { source, typeSource } = scopeOf(parsed.scope, path, repeater, ctx, nodeId);
28972
29954
  if (!parsed.role)
28973
29955
  return { source, path: parsed.field || ITEM_VALUE_PATH };
28974
- const field = roleField(typeSource ? contentTypeOfSource(typeSource, ctx.plan) : undefined, parsed.role);
29956
+ const type = typeSource ? contentTypeOfSource(typeSource, ctx.plan) : undefined;
29957
+ // #129: a list whose items have no picture shows its cards without one, never an empty box per card.
29958
+ if (parsed.optional && parsed.role === ContentRole.Image && type && ctx.pictureless?.has(type.name))
29959
+ return null;
29960
+ const field = roleField(type, parsed.role);
28975
29961
  if (field)
28976
29962
  return { source, path: field };
28977
29963
  if (parsed.optional)
@@ -30172,7 +31158,7 @@ const LAYOUT_TEXT_PROPS = ['content', 'caption', 'alt', 'label', 'ariaLabel'];
30172
31158
  * one they did not becomes the fact's label and a contact placeholder (never invented; a reminder, left out of the live site). A photo with no
30173
31159
  * address is the empty image box, a placeholder like a pattern's. The site's header and footer are the plan's globals.
30174
31160
  */
30175
- function composeLayoutPage(page, layout, plan, context, design, placeholders, readyMade) {
31161
+ function composeLayoutPage(page, layout, plan, context, design, placeholders, readyMade, pictureless) {
30176
31162
  const preset = layoutPresetOf(plan.design);
30177
31163
  const site = {
30178
31164
  name: plan.business.name,
@@ -30202,10 +31188,18 @@ function composeLayoutPage(page, layout, plan, context, design, placeholders, re
30202
31188
  photoShape: id => boxShape(id) ?? context.photoShape?.(id),
30203
31189
  sourceFields: alias => {
30204
31190
  const type = contentTypeOfSource(alias, plan);
30205
- const image = roleField(type, 'image');
31191
+ const image = type && pictureless.has(type.name) ? undefined : roleField(type, 'image');
30206
31192
  return image ? { image, ...(roleField(type, 'title') ? { title: roleField(type, 'title') } : {}) } : null;
30207
31193
  },
30208
- listOf: alias => layoutListBinding(alias, plan),
31194
+ listOf: alias => {
31195
+ const binding = layoutListBinding(alias, plan);
31196
+ const type = contentTypeOfSource(alias, plan);
31197
+ // #129: a list whose items have no picture is read as a list without one (its cards draw no picture part).
31198
+ if (!binding || !type || !pictureless.has(type.name) || !binding.roles[ContentRole.Image])
31199
+ return binding;
31200
+ const { [ContentRole.Image]: _none, ...roles } = binding.roles;
31201
+ return { ...binding, roles };
31202
+ },
30209
31203
  ...(context.carry?.[page.key] ? { carry: context.carry[page.key] } : {}),
30210
31204
  });
30211
31205
  const facts = plan.business.facts ?? {};
@@ -30249,6 +31243,38 @@ function stampLayoutSections(page, layout, nodes) {
30249
31243
  * composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
30250
31244
  */
30251
31245
  function composeSite(plan, context) {
31246
+ if (!context?.pictures)
31247
+ return composeSiteOnce(plan, context, NO_TYPES);
31248
+ // #129: compose, find the pictures nothing fills, compose again type-led — until a round changes nothing (an opening
31249
+ // left out shows its first section's own picture, judged in the next round). Monotone: a type-led section has no
31250
+ // picture to lose, so it ends.
31251
+ const filled = new Set(context.pictures.filled);
31252
+ const changes = [];
31253
+ let current = plan;
31254
+ let pictureless = NO_TYPES;
31255
+ let site = composeSiteOnce(current, context, pictureless);
31256
+ let opening;
31257
+ const roundContext = { tier: context.tier, studio: context.pictures.studio };
31258
+ for (let round = 0; round < TYPE_LED_ROUNDS; round++) {
31259
+ const next = typeLedRound(current, site, filled, roundContext);
31260
+ if (next.opening)
31261
+ opening = next.opening;
31262
+ const newly = next.pictureless.filter(t => !pictureless.has(t));
31263
+ if (!next.changes.length && !newly.length)
31264
+ break;
31265
+ changes.push(...next.changes);
31266
+ for (const type of newly)
31267
+ changes.push({ kind: TypeLedChangeKind.List, contentType: type, said: `the ${type} have no pictures yet — their cards show their words` });
31268
+ current = next.plan;
31269
+ pictureless = new Set([...pictureless, ...newly]);
31270
+ site = composeSiteOnce(current, context, pictureless);
31271
+ }
31272
+ return { ...site, typeLed: { plan: current, changes, pictureless: [...pictureless], ...(opening ? { opening } : {}) } };
31273
+ }
31274
+ const NO_TYPES = new Set();
31275
+ /** The most rounds a composition takes to wear no empty picture: the opening, then its first section, then a margin. */
31276
+ const TYPE_LED_ROUNDS = 4;
31277
+ function composeSiteOnce(plan, context, pictureless) {
30252
31278
  assertValidSitePlan(plan, context?.tier ? { tier: context.tier } : {});
30253
31279
  if (!Number.isInteger(context?.year))
30254
31280
  throw new ComposeError('composeSite needs the year (ComposeContext.year) — the composer reads no clock');
@@ -30257,7 +31283,7 @@ function composeSite(plan, context) {
30257
31283
  const routes = new Set(plan.pages.map(p => p.route));
30258
31284
  const relatives = new Map(plan.dataSources.map(d => [d.alias, d.type === PlanDataSourceType.Relative ? { type: d.type, of: d.of, op: d.op } : { type: d.type }]));
30259
31285
  const email = nonEmpty$1(plan.business.facts?.email) ? plan.business.facts.email.trim() : null;
30260
- const base = { plan, placeholders, issues, routes, year: context.year, email, navPage: null };
31286
+ const base = { plan, placeholders, issues, routes, year: context.year, email, navPage: null, pictureless };
30261
31287
  // AW-D23 / MB-D6: a lower plan wears its own words of the look's motion language (a Pro Feel arrives on today's
30262
31288
  // curve, a Pro move fades) — in the tokens the build applies AND the entrances it stamps.
30263
31289
  const design = motionLanguageForPlan(resolveDesignChoices(clone$2(plan.design)), context?.tier === GenerationTier.Award);
@@ -30274,10 +31300,10 @@ function composeSite(plan, context) {
30274
31300
  if (page.layout) {
30275
31301
  // vectoriox/iox-ui#99: a composed page that is where the site lists the shop lists it (a stored layout too).
30276
31302
  const layout = withShownList(page.layout, layoutListsContext(page, plan)) ?? page.layout;
30277
- const stamped = stampLayoutSections(page, layout, composeLayoutPage(page, layout, plan, context, design, placeholders, (section, id) => composePattern(patternById(section.pattern), id, { ...base, owner: page.key, page, section, nextAlias }, { level: section.enter ?? design.animate ?? null, rtl, move: design.headings ?? null })));
31303
+ const stamped = stampLayoutSections(page, layout, composeLayoutPage(page, layout, plan, context, design, placeholders, (section, id) => composePattern(patternById(section.pattern), id, { ...base, owner: page.key, page, section, nextAlias }, { level: section.enter ?? design.animate ?? null, rtl, move: design.headings ?? null }), pictureless));
30278
31304
  // AW8: the plan's opening is the home page's first screen; a pinned or kept first place is never replaced.
30279
31305
  const first = layout.sections[0];
30280
- const worn = wearPlanOpening(page, stamped, plan, context, design, placeholders, issues, !!(first?.pin || first?.carry));
31306
+ const worn = wearPlanOpening(page, stamped, plan, context, design, placeholders, issues, !!(first?.pin || first?.carry), first?.readyMade ? page.sections[first.readyMade.at] : undefined);
30281
31307
  const opening = worn === stamped ? layoutBandScheme(first?.ground) : schemeOfFirst(worn);
30282
31308
  // Award §0c CW2 (AW-D34): the column the model chose for this page is the page's own word (absent: the site's).
30283
31309
  const column = columnWordOf(layout.column);
@@ -30291,7 +31317,7 @@ function composeSite(plan, context) {
30291
31317
  const pattern = patternById(section.pattern);
30292
31318
  const motion = { level: section.enter ?? design.animate ?? null, rtl, move: design.headings ?? null, scrub: design.scrub ?? null, opening: i === 0 };
30293
31319
  return stampSection(composePattern(pattern, `${page.key}-${i}`, { ...base, owner: page.key, page, section, nextAlias }, motion), { pattern: section.pattern });
30294
- }), plan, context, design, placeholders, issues, false);
31320
+ }), plan, context, design, placeholders, issues, false, page.sections[0]);
30295
31321
  const opening = schemeOfFirst(layout);
30296
31322
  return {
30297
31323
  key: page.key,
@@ -30755,20 +31781,22 @@ function shownWords(root) {
30755
31781
  * first. Every mend, and every part that found no place, is said (`opening-mended`). Any other page, or a plan with no
30756
31782
  * opening mix, is returned as it was. Mutates `placeholders` / `issues` like the composer; pure otherwise.
30757
31783
  */
30758
- function wearPlanOpening(page, layout, plan, context, design, placeholders, issues, keep) {
31784
+ function wearPlanOpening(page, layout, plan, context, design, placeholders, issues, keep, source) {
30759
31785
  const mix = openingMixOfPlan(plan);
30760
31786
  if (!mix || !(page.isHome === true || page.route === HOME_PATH))
30761
31787
  return layout;
30762
31788
  const first = layout[0];
30763
31789
  const replace = !!first && !keep && openingMayReplace(first);
30764
31790
  const id = replace ? first.id : `${page.key}-opening`;
30765
- const heading = replace ? swapParts(first)['heading'][0] : undefined;
31791
+ const tier = context.tier ?? GenerationTier.Basic;
31792
+ const site = { pages: plan.pages.map(p => ({ name: p.name, route: p.route, isHome: p.isHome === true })), locale: plan.locale, design, badge: null, cutOut: false, tier };
31793
+ // #129: a type-led first screen takes the type-led hero's words slot by slot (nothing it said is lost); the name is
31794
+ // the business's, as every display-size opening's is.
31795
+ const checked = replace && source ? checkOpening(drawnOpeningMix(mix).drawn, openingContextOf({ ...site, business: plan.business })).mix : null;
31796
+ const parts = checked && source ? typeLedOpeningSection(checked, source) : null;
31797
+ const heading = replace && !parts ? swapParts(first)['heading'][0] : undefined;
30766
31798
  const title = shownWords(heading);
30767
- const composed = composeOpening({
30768
- business: { ...plan.business, name: title || plan.business.name },
30769
- pages: plan.pages.map(p => ({ name: p.name, route: p.route, isHome: p.isHome === true })),
30770
- mix, locale: plan.locale, design, badge: null, cutOut: false, tier: context.tier ?? GenerationTier.Basic,
30771
- }, { id });
31799
+ const composed = composeOpening({ ...site, business: { ...plan.business, name: title || plan.business.name }, mix, ...(parts ? { parts } : {}) }, { id });
30772
31800
  const section = composed.section;
30773
31801
  const said = composed.issues.map(i => i.detail);
30774
31802
  let own = composed.placeholders.map(p => ({ ...p, owner: page.key }));
@@ -30779,6 +31807,14 @@ function wearPlanOpening(page, layout, plan, context, design, placeholders, issu
30779
31807
  for (let i = placeholders.length - 1; i >= 0; i--)
30780
31808
  if (gone.has(placeholders[i].nodeId))
30781
31809
  placeholders.splice(i, 1);
31810
+ if (parts) {
31811
+ // The words came slot by slot: nothing to carry, the composer's placeholders stand.
31812
+ placeholders.push(...own);
31813
+ for (const detail of said)
31814
+ issues.push({ code: ComposeIssueCode.OpeningMended, nodeId: id, owner: page.key, detail });
31815
+ stampSection(section, first.composed?.pattern ? { pattern: first.composed.pattern } : { layout: first.composed?.layout ?? OPENING_ORIGIN });
31816
+ return [section, ...layout.slice(1)];
31817
+ }
30782
31818
  // The hero's title is already the opening's display words (composed above — split apart, set as a wordmark); the
30783
31819
  // carry places everything else, never over those words.
30784
31820
  const fromRest = withoutNodes(first, n => n === heading);
@@ -30857,17 +31893,19 @@ function composeOpening(input, options) {
30857
31893
  for (const said of [...gaps.map(g => `the opening's ${g.ingredient} "${g.word}" is drawn as ${g.drawnAs ? `"${g.drawnAs}"` : 'nothing'} until ${g.phase}`), ...checked.repairs.map(r => r.said)]) {
30858
31894
  issues.push({ code: ComposeIssueCode.OpeningMended, nodeId: options.id, owner: options.id, detail: said });
30859
31895
  }
31896
+ const parts = input.parts ?? (openingIsTypeLed(checked.mix) ? { slots: {}, links: {}, without: TYPE_LED_OPTIONAL_PARTS } : null);
31897
+ const section = parts ? { pattern: OPENING_ORIGIN, slots: parts.slots, links: parts.links, without: [...parts.without] } : null;
30860
31898
  const ctx = {
30861
- owner: options.id, page: null, section: null, plan, year: 0, email, navPage: null, nextAlias: null,
31899
+ owner: options.id, page: null, section, plan, year: 0, email, navPage: null, nextAlias: null,
30862
31900
  placeholders, issues, routes: new Set(pages.map(p => p.route)), keepButtons: true,
30863
31901
  };
30864
31902
  const recipe = openingRecipe(checked.mix, context);
30865
- const section = composePattern(recipe.pattern, options.id, ctx);
30866
- stampOpeningMix(section, recipe.mix);
30867
- stampOpeningMotion(section, recipe.mix);
31903
+ const root = composePattern(recipe.pattern, options.id, ctx);
31904
+ stampOpeningMix(root, recipe.mix);
31905
+ stampOpeningMotion(root, recipe.mix);
30868
31906
  const badge = typeof input.badge === 'string' && input.badge.trim() ? input.badge.trim() : null;
30869
31907
  if (badge) {
30870
- walkSerialized([section], n => {
31908
+ walkSerialized([root], n => {
30871
31909
  const holder = n.role === OpeningRole.Badge ? n : null;
30872
31910
  for (const words of holder?.children ?? []) {
30873
31911
  words.props = { ...words.props, content: badge };
@@ -30877,7 +31915,7 @@ function composeOpening(input, options) {
30877
31915
  }
30878
31916
  });
30879
31917
  }
30880
- return { section, placeholders, issues, mix: recipe.mix };
31918
+ return { section: root, placeholders, issues, mix: recipe.mix };
30881
31919
  }
30882
31920
 
30883
31921
  /**
@@ -31640,7 +32678,7 @@ const OPENING_WIRE_TEXT = "string[] — the home page's opening (its first scree
31640
32678
  + "section as written. The opening takes the place of the home page's first section when that is a hero (its words and pictures carried in); "
31641
32679
  + 'a word marked (award) is worn by an award build only — elsewhere it is mended. '
31642
32680
  + Object.values(OpeningIngredient).map(k => `${k}: ${openingWireWords(GenerationTier.Award).filter(w => w.startsWith(`${k}:`)).map(w => w.slice(k.length + 1))
31643
- .map(w => `${w} (${openingMeaning(k, w)}${openingWordTier(k, w) === 'pro' ? ', award' : ''})`).join(' | ')}`).join('; ');
32681
+ .map(w => `${w} (${openingMeaning(k, w)}${openingWordTier(k, w) === 'pro' ? ', award' : ''}${openingHarnessWord(k, w) ? ', the build\'s own — keep it where the plan has it, never choose it' : ''})`).join(' | ')}`).join('; ');
31644
32682
  /** The header's words as the model reads them (HI1): each ingredient, the words the product draws and their meanings,
31645
32683
  * from the contract's header table. */
31646
32684
  const HEADER_WIRE_TEXT = 'string[] — the header as ONE list of <ingredient>:<word> words, one word per ingredient; an ingredient left out is the '
@@ -34459,21 +35497,6 @@ function publishVerdict(audit, acknowledged = []) {
34459
35497
  return { ok: !blocked && missing.length === 0, blocked, missing };
34460
35498
  }
34461
35499
 
34462
- /**
34463
- * The words that carry no subject in the languages a site is written in (English, Hebrew): "the", "with", "our", "כמו",
34464
- * "שלנו"… Shared by every comparison of meaning by words — a stock photo against a slot (`stockWords`), a model's section
34465
- * against a ready-made one (silent section fallback). Lower case; only words of three letters or more (shorter ones never
34466
- * count anywhere).
34467
- */
34468
- const FUNCTION_WORDS = new Set([
34469
- 'the', 'and', 'with', 'for', 'your', 'our', 'you', 'from', 'into', 'this', 'that', 'here', 'there', 'about', 'how', 'what',
34470
- 'who', 'are', 'all', 'but', 'not', 'was', 'were', 'has', 'have', 'had', 'its', 'they', 'them', 'their', 'then', 'than',
34471
- 'when', 'where', 'which', 'will', 'can', 'just', 'out', 'over', 'under', 'onto', 'each', 'every', 'some', 'any', 'one', 'also',
34472
- 'too', 'very', 'more', 'most', 'less', 'only', 'own', 'yours', 'ours', 'these', 'those',
34473
- 'אנחנו', 'אני', 'הוא', 'היא', 'אתם', 'אתן', 'שלנו', 'שלכם', 'שלך', 'שלו', 'שלה', 'אצלנו', 'כמו', 'אבל', 'זאת', 'כאן', 'יותר',
34474
- 'מאוד', 'כבר', 'עוד', 'אחרי', 'לפני', 'בין', 'כדי', 'איך',
34475
- ]);
34476
-
34477
35500
  /**
34478
35501
  * How a stock photo is judged against a picture slot (AI plan §3g, I2.1) — pure and deterministic, so the same plan and
34479
35502
  * the same library always place the same photos. A photo is described by what the library's manifest carries (the
@@ -35598,187 +36621,13 @@ function judgeLayoutRender(measured, pixels = []) {
35598
36621
  continue;
35599
36622
  const big = l.size >= 24 || (l.size >= 18.6 && l.weight >= 700);
35600
36623
  const need = big ? RENDER_CHECK.contrastLarge : RENDER_CHECK.contrastBody;
35601
- const r = ratio(relativeLuminance(colour), px.luminance);
35602
- if (r < need)
35603
- say(`contrast:${px.path}`, px.path, `${px.path}: ${r.toFixed(1)}:1 against the photo behind it on the ${px.viewport} (needs ${need}) — another colour, a calm part, or off the photo`);
35604
- else if (px.spread > RENDER_CHECK.busy)
35605
- say(`busy:${px.path}`, px.path, `${px.path}: sits on a busy part of a photo on the ${px.viewport} (light varies ${px.spread.toFixed(2)}) — move it to a calm part or onto the ground`);
35606
- }
35607
- return [...issues.values()];
35608
- }
35609
-
35610
- /**
35611
- * SILENT SECTION FALLBACK (Doron, 2026-11-09: "for now we need to do silent section fallback and not fallback whole page").
35612
- * A composed page that still fails after the mends and its one repair — or after the browser's check — no longer falls
35613
- * back whole: each section an issue names is given to the plan's READY-MADE section for the same place (the pattern the
35614
- * whole-page fallback would have stamped there, worn in the same look), or dropped where none fits and the page keeps its
35615
- * opening and its close. Then the page is judged again, once, exactly like any composed page — its MINIMUMS on the model's
35616
- * own remaining sections (the given-away ones ride on `page.givenAway`; iox-ui#67, Doron 2026-11-09), its maximums on the
35617
- * whole page. A ready-made section that would say again what a section the model kept already says (its title, its text —
35618
- * iox-ui#68) is never given a place: a page that repeats a paragraph is worse than the last resort. Only a page that still
35619
- * fails — an issue that names no section, a place with nothing to give it, a swap that
35620
- * breaks a section kept or a maximum of the page — falls back whole: the last resort, counted. A swap never leads to another swap. The owner sees a composed page; the swaps are recorded for us, the model's sections kept.
35621
- * Pure: the service and `ai:replay` run this one function.
35622
- */
35623
- /** What became of one place of the model's page. */
35624
- var SectionSwapAction;
35625
- (function (SectionSwapAction) {
35626
- /** The plan's ready-made section stands there. */
35627
- SectionSwapAction["Replaced"] = "replaced";
35628
- /** Nothing fitted the place: the page goes on without it. */
35629
- SectionSwapAction["Dropped"] = "dropped";
35630
- })(SectionSwapAction || (SectionSwapAction = {}));
35631
- /** Why a place was given away (and which ready-made section took it). */
35632
- var SectionSwapRule;
35633
- (function (SectionSwapRule) {
35634
- /** The page's first section: always the plan's opening, never dropped. */
35635
- SectionSwapRule["Opening"] = "opening";
35636
- /** The page's last section: always the plan's close, never dropped. */
35637
- SectionSwapRule["Close"] = "close";
35638
- /** A middle section: the ready-made section that shows the same list, holds the form, or says most of its words. */
35639
- SectionSwapRule["Fit"] = "fit";
35640
- /** A middle section no ready-made section fits (or every one that does would repeat a kept section, iox-ui#68): dropped. */
35641
- SectionSwapRule["NoFit"] = "no-fit";
35642
- })(SectionSwapRule || (SectionSwapRule = {}));
35643
- /** Why a page fell back whole after all (the last resort). */
35644
- var SectionFallbackLastResort;
35645
- (function (SectionFallbackLastResort) {
35646
- /** Nothing left names a section (a count, a share, the order of sections), or after the swaps only such an issue is. */
35647
- SectionFallbackLastResort["PageWide"] = "page-wide";
35648
- /** The place named is the opening or the close, and the plan has no ready-made section left for it — or only one that
35649
- * would repeat what a kept section says (iox-ui#68). */
35650
- SectionFallbackLastResort["NoReadyMade"] = "no-ready-made";
35651
- /** It names a section already given to a ready-made one. */
35652
- SectionFallbackLastResort["ReadyMadeNamed"] = "ready-made-named";
35653
- /** After the swaps, the check names a section the model composed and kept (a neighbour the swap broke). */
35654
- SectionFallbackLastResort["Neighbour"] = "neighbour";
35655
- })(SectionFallbackLastResort || (SectionFallbackLastResort = {}));
35656
- const NAMED = /sections\[(\d+)\]/g;
35657
- /** The sections an issue names: its path's, and any its words name. */
35658
- function sectionsNamed(issue) {
35659
- const at = new Set();
35660
- for (const text of [issue.path, issue.message])
35661
- for (const m of String(text ?? '').matchAll(NAMED))
35662
- at.add(Number(m[1]));
35663
- return [...at].sort((a, b) => a - b);
35664
- }
35665
- const WORD = /[\p{L}\p{N}]{3,}/gu;
35666
- /** The words that can make a fit: three letters or more, never a function word (iox-ui#68: "the" made one). */
35667
- const wordsOf$2 = (text) => (String(text ?? '').toLowerCase().match(WORD) ?? []).filter(w => !FUNCTION_WORDS.has(w));
35668
- const layerTexts = (l) => [l.text ?? '', ...(l.items ?? []), ...(l.gallery?.slides ?? []).map(s => s.caption ?? ''), l.form?.title ?? '', l.form?.intro ?? ''];
35669
- const layerWords = (l) => layerTexts(l).flatMap(wordsOf$2);
35670
- /** Every word of a text, in order, as a phrase that can be found inside another (` a small room kept slow `). */
35671
- const PHRASE_WORD = /[\p{L}\p{N}]+/gu;
35672
- const phraseOf = (text) => {
35673
- const words = String(text ?? '').toLowerCase().match(PHRASE_WORD) ?? [];
35674
- return { phrase: ` ${words.join(' ')} `, words: words.length };
35675
- };
35676
- /** The fewest words a text needs to count as said twice — a two-word label ("The room") may well appear twice. */
35677
- const REPEAT_MIN_WORDS = 3;
35678
- /** The share of the shorter text's words the longer one holds for the two to be the same sentence said twice: one word
35679
- * changed is still a repeat (the café's quote, "…וחברים צריכים שולחן" and "…וחברים טובים צריכים שולחן"). */
35680
- const REPEAT_SHARED = 0.8;
35681
- /** Whether two texts say the same thing: one inside the other, or the shorter's words (function words aside) nearly all
35682
- * in the longer. */
35683
- function sameSaying(a, b) {
35684
- if (a.phrase.includes(b.phrase) || b.phrase.includes(a.phrase))
35685
- return true;
35686
- const [short, long] = [new Set(wordsOf$2(a.text)), new Set(wordsOf$2(b.text))].sort((x, y) => x.size - y.size);
35687
- if (short.size < REPEAT_MIN_WORDS)
35688
- return false;
35689
- return [...short].filter(w => long.has(w)).length / short.size >= REPEAT_SHARED;
35690
- }
35691
- /**
35692
- * Whether the plan section would say again what the sections the model kept already say (iox-ui#68): a title or a text of
35693
- * its slots found inside a kept layer's words, or a kept layer's words found inside it, or the two the same sentence
35694
- * with a word changed — each of three words or more.
35695
- */
35696
- function repeatsKept(plan, kept) {
35697
- const long = (text) => ({ ...phraseOf(text), text });
35698
- const said = kept.flatMap(s => (s.layers ?? []).flatMap(layerTexts)).map(long).filter(p => p.words >= REPEAT_MIN_WORDS);
35699
- return Object.values(plan.slots ?? {}).map(long).filter(p => p.words >= REPEAT_MIN_WORDS)
35700
- .some(slot => said.some(k => sameSaying(slot, k)));
35701
- }
35702
- /** How well a ready-made section stands for a model's section: the same list, the form, the words they share. */
35703
- function fitScore(section, plan) {
35704
- const layers = section.layers ?? [];
35705
- let score = 0;
35706
- if (plan.binding && layers.some(l => l.gallery?.source === plan.binding))
35707
- score += 10;
35708
- if ((plan.form || /^(contact|cta)\./.test(plan.pattern)) && layers.some(l => l.kind === 'form'))
35709
- score += 5;
35710
- const said = new Set(layers.flatMap(layerWords));
35711
- score += new Set(Object.values(plan.slots ?? {}).flatMap(wordsOf$2).filter(w => said.has(w))).size;
35712
- return score;
35713
- }
35714
- /** The least a middle section's fit scores to be given a ready-made section (two shared words, a form or a list). */
35715
- const FIT_MIN = 2;
35716
- /** A ready-made stub at a place: no layers of its own — the composer stamps the plan section's pattern there. */
35717
- function readyMadeSection(original, at, plan) {
35718
- return { id: original.id, kind: 'content', screens: 1, rows: 1, layers: [], phone: [], readyMade: { at, pattern: plan.pattern } };
35719
- }
35720
- /**
35721
- * Give every section the issues name to the plan's ready-made section for its place, or drop it, then judge the page once
35722
- * more (a page-wide issue beside them may be cured by the swap — the judge says). `plan` is the page's ready-made
35723
- * sections (`PagePlan.sections`), in order; `issues` what is left after the mends and the one repair.
35724
- */
35725
- function fallBackBySection(page, plan, issues, judge) {
35726
- const current = structuredClone(page);
35727
- const swaps = [];
35728
- const last = (lastResort, left, at = current) => ({ page: at, swaps, left, lastResort });
35729
- if (!issues.length)
35730
- return { page: current, swaps, left: [] };
35731
- const named = new Map();
35732
- for (const issue of issues)
35733
- for (const i of sectionsNamed(issue))
35734
- if (i < current.sections.length)
35735
- named.set(i, [...(named.get(i) ?? []), issue.message]);
35736
- if (!named.size)
35737
- return last(SectionFallbackLastResort.PageWide, [...issues]);
35738
- if ([...named.keys()].some(i => current.sections[i].readyMade))
35739
- return last(SectionFallbackLastResort.ReadyMadeNamed, [...issues]);
35740
- const used = new Set(current.sections.map(s => s.readyMade?.at).filter((n) => n !== undefined));
35741
- // The sections the model composed and keeps: a ready-made section must not say again what they say.
35742
- const keptSections = current.sections.filter((s, i) => !s.readyMade && !named.has(i));
35743
- const lastAt = current.sections.length - 1;
35744
- const next = [...current.sections];
35745
- const drop = new Set();
35746
- for (const [i, why] of [...named.entries()].sort((a, b) => a[0] - b[0])) {
35747
- const s = current.sections[i];
35748
- const record = (action, rule, readyMade) => swaps.push({ id: s.id, at: i, action, rule, ...(readyMade ? { readyMade } : {}), why, original: structuredClone(s) });
35749
- if (i === 0 || i === lastAt) {
35750
- const at = i === 0 ? 0 : plan.length - 1;
35751
- if (!plan[at] || used.has(at) || repeatsKept(plan[at], keptSections))
35752
- return last(SectionFallbackLastResort.NoReadyMade, [...issues]);
35753
- used.add(at);
35754
- next[i] = readyMadeSection(s, at, plan[at]);
35755
- record(SectionSwapAction.Replaced, i === 0 ? SectionSwapRule.Opening : SectionSwapRule.Close, { at, pattern: plan[at].pattern });
35756
- continue;
35757
- }
35758
- const best = plan
35759
- .map((p, at) => ({ at, score: at > 0 && at < plan.length - 1 && !used.has(at) && !repeatsKept(p, keptSections) ? fitScore(s, p) : -1 }))
35760
- .filter(c => c.score >= FIT_MIN)
35761
- .sort((a, b) => b.score - a.score || a.at - b.at)[0];
35762
- if (best) {
35763
- used.add(best.at);
35764
- next[i] = readyMadeSection(s, best.at, plan[best.at]);
35765
- record(SectionSwapAction.Replaced, SectionSwapRule.Fit, { at: best.at, pattern: plan[best.at].pattern });
35766
- }
35767
- else {
35768
- drop.add(i);
35769
- record(SectionSwapAction.Dropped, SectionSwapRule.NoFit);
35770
- }
36624
+ const r = ratio(relativeLuminance(colour), px.luminance);
36625
+ if (r < need)
36626
+ say(`contrast:${px.path}`, px.path, `${px.path}: ${r.toFixed(1)}:1 against the photo behind it on the ${px.viewport} (needs ${need}) — another colour, a calm part, or off the photo`);
36627
+ else if (px.spread > RENDER_CHECK.busy)
36628
+ say(`busy:${px.path}`, px.path, `${px.path}: sits on a busy part of a photo on the ${px.viewport} (light varies ${px.spread.toFixed(2)}) — move it to a calm part or onto the ground`);
35771
36629
  }
35772
- // What the given-away sections carried toward the page's minimums goes with the page (checkLayout forgives exactly
35773
- // that, iox-ui#67); its maximums stay the whole page's.
35774
- const givenAway = [...(current.givenAway ?? []), ...swaps.map(w => ({ at: w.at, section: w.original }))];
35775
- const judged = judge({ ...current, sections: next.filter((_, i) => !drop.has(i)), givenAway });
35776
- if (!judged.issues.length)
35777
- return { page: judged.page, swaps, left: [] };
35778
- const kept = judged.issues.flatMap(sectionsNamed).filter(i => !judged.page.sections[i]?.readyMade);
35779
- const reason = kept.length ? SectionFallbackLastResort.Neighbour
35780
- : judged.issues.some(i => sectionsNamed(i).length) ? SectionFallbackLastResort.ReadyMadeNamed : SectionFallbackLastResort.PageWide;
35781
- return last(reason, judged.issues, judged.page);
36630
+ return [...issues.values()];
35782
36631
  }
35783
36632
 
35784
36633
  /**
@@ -35871,247 +36720,6 @@ function pickListWord(mix, k, word, ctx) {
35871
36720
  };
35872
36721
  }
35873
36722
 
35874
- /**
35875
- * THE CROSS-SITE FINGERPRINT (premium components M8 gate 2, M8-G2-D7; the prototype's `fingerprint` + `sameness`,
35876
- * `code/cl2.mjs`): what makes two composed pages read as the same — how the page opens, the sequence of its sections, the
35877
- * mechanism of its signature, whether it opens light or dark, and the preset it wears. Structure only: no words, no
35878
- * business data. Round three found that pages composed alone converge on one skeleton, and that telling the model what
35879
- * already exists is what broke it. Pure.
35880
- */
35881
- /** How a section reads in the page's sequence (the contract's `sequenceTokens`). */
35882
- var LayoutSequenceToken;
35883
- (function (LayoutSequenceToken) {
35884
- LayoutSequenceToken["Inhale"] = "inhale";
35885
- LayoutSequenceToken["Sideways"] = "sideways";
35886
- LayoutSequenceToken["HeldWords"] = "held-words";
35887
- LayoutSequenceToken["HeldReel"] = "held-reel";
35888
- LayoutSequenceToken["Held"] = "held";
35889
- LayoutSequenceToken["PhotoGround"] = "photo-ground";
35890
- LayoutSequenceToken["Gallery"] = "gallery";
35891
- LayoutSequenceToken["Split"] = "split";
35892
- LayoutSequenceToken["Composition"] = "composition";
35893
- })(LayoutSequenceToken || (LayoutSequenceToken = {}));
35894
- /** The signature mechanisms (the contract's `signatures`); `held-screen` is the fallback, never the aim. */
35895
- var LayoutSignatureId;
35896
- (function (LayoutSignatureId) {
35897
- LayoutSignatureId["WordsLit"] = "words-lit";
35898
- LayoutSignatureId["PhotoUnveiled"] = "photo-unveiled";
35899
- LayoutSignatureId["ZoomThrough"] = "zoom-through";
35900
- LayoutSignatureId["ScrollReel"] = "scroll-reel";
35901
- LayoutSignatureId["PicturesStacking"] = "pictures-stacking";
35902
- LayoutSignatureId["HalvesApart"] = "halves-apart";
35903
- LayoutSignatureId["SidewaysWalk"] = "sideways-walk";
35904
- LayoutSignatureId["ObjectTurning"] = "object-turning";
35905
- LayoutSignatureId["HeldScreen"] = "held-screen";
35906
- })(LayoutSignatureId || (LayoutSignatureId = {}));
35907
- const OPENING_SCREEN_WORD = 'screen-word';
35908
- /** A section's token in the page's sequence. */
35909
- function sequenceTokenOf(s) {
35910
- if (s.kind === LayoutSectionKind.Inhale)
35911
- return LayoutSequenceToken.Inhale;
35912
- if ((s.track ?? 1) > 1)
35913
- return LayoutSequenceToken.Sideways;
35914
- const layers = s.layers ?? [];
35915
- if (s.pin) {
35916
- if (layers.some(l => l.kinetic))
35917
- return LayoutSequenceToken.HeldWords;
35918
- return layers.some(l => l.gallery?.scroll) ? LayoutSequenceToken.HeldReel : LayoutSequenceToken.Held;
35919
- }
35920
- if (String(s.ground ?? '').startsWith('photo:'))
35921
- return LayoutSequenceToken.PhotoGround;
35922
- if (layers.some(l => l.kind === LayoutLayerKind.Gallery))
35923
- return LayoutSequenceToken.Gallery;
35924
- return splitSide(s) ? LayoutSequenceToken.Split : LayoutSequenceToken.Composition;
35925
- }
35926
- /** A list section's prefix in the sequence (list-ingredients §7). */
35927
- const LAYOUT_LIST_TOKEN = 'list';
35928
- /**
35929
- * A list mix as the fingerprint sees it (list-ingredients §7, LI2): `list:<arrange>/<who-how>/<moves>` — how the items
35930
- * sit, which stands out and how, how the visitor moves through them. What a mouse does and how they arrive are too fine
35931
- * to count. Two pages with `list:row/middle-raised/arrows` show the same list.
35932
- */
35933
- function listTokenOf(mix) {
35934
- const who = mix.standout && mix.standout.who !== LayoutListWho.None ? `${mix.standout.who}${mix.standout.how ? `-${mix.standout.how}` : ''}` : 'none';
35935
- const moves = Array.isArray(mix.move) && mix.move.length ? [...new Set(mix.move)].sort().join('+') : 'still';
35936
- // AW11-D18: a round-two item (a name on its picture, a packshot, a colour block, a numeral) is seen at once too — it
35937
- // joins the token; a round-one item adds nothing, so every fingerprint stored before AW11 reads as it did.
35938
- const item = typeof mix.item === 'string' && listWordTier('item', mix.item) === 'pro' ? `/${mix.item}` : '';
35939
- return `${LAYOUT_LIST_TOKEN}:${mix.arrange}/${who}/${moves}${item}`;
35940
- }
35941
- /** A section's token in the sequence: a list section's mix, else its kind (`sequenceTokenOf`). */
35942
- function sectionTokenOf(s) {
35943
- const list = s.pin || (s.track ?? 1) > 1 ? undefined : (s.layers ?? []).find(l => l.kind === LayoutLayerKind.Gallery && l.gallery?.list)?.gallery?.list;
35944
- return list && !String(s.ground ?? '').startsWith('photo:') ? listTokenOf(list) : sequenceTokenOf(s);
35945
- }
35946
- /** Every list mix a page shows, in order. */
35947
- function listTokensOf(page) {
35948
- return (page.sections ?? []).flatMap(s => (s.layers ?? []).filter(l => l.kind === LayoutLayerKind.Gallery && l.gallery?.list).map(l => listTokenOf(l.gallery.list)));
35949
- }
35950
- /** The mechanism of the signature section, by what moves in it (first match wins, as the prototype's). */
35951
- const SIGNATURE_BY_TRACK = [
35952
- [LayoutTrackProp.Clip, LayoutSignatureId.PhotoUnveiled],
35953
- [LayoutTrackProp.Rotate, LayoutSignatureId.ObjectTurning],
35954
- [LayoutTrackProp.X, LayoutSignatureId.HalvesApart],
35955
- [LayoutTrackProp.Y, LayoutSignatureId.PicturesStacking],
35956
- [LayoutTrackProp.Scale, LayoutSignatureId.ZoomThrough],
35957
- ];
35958
- function signatureOf(s) {
35959
- if (!s)
35960
- return LayoutSignatureId.HeldScreen;
35961
- const layers = s.layers ?? [];
35962
- if (layers.some(l => l.kinetic))
35963
- return LayoutSignatureId.WordsLit;
35964
- if (layers.some(l => l.gallery?.scroll))
35965
- return LayoutSignatureId.ScrollReel;
35966
- if ((s.track ?? 1) > 1)
35967
- return LayoutSignatureId.SidewaysWalk;
35968
- const props = new Set(layers.flatMap(l => (l.motion ?? []).map(m => m.prop)));
35969
- return SIGNATURE_BY_TRACK.find(([prop]) => props.has(prop))?.[1] ?? LayoutSignatureId.HeldScreen;
35970
- }
35971
- /** A place given to the plan's ready-made section (silent section fallback): its token in the sequence and the opening. */
35972
- const LAYOUT_READY_MADE_TOKEN = 'ready-made';
35973
- const READY_MADE_OPENING = `${LAYOUT_READY_MADE_TOKEN}:`;
35974
- /** A redesign's section place (RD-D20) opens on the owner's part — never a composition of the model's. */
35975
- const CARRIED_OPENING = `${READY_MADE_OPENING}carried`;
35976
- function openingOf(s) {
35977
- if (s?.readyMade)
35978
- return `${READY_MADE_OPENING}${s.readyMade.pattern}`;
35979
- if (s?.carry)
35980
- return CARRIED_OPENING;
35981
- const layers = s?.layers ?? [];
35982
- const lead = layers.find(l => l.role === LayoutRole.Lead) ?? layers[0];
35983
- if (!lead)
35984
- return 'none';
35985
- if (lead.size === LayoutSize.Screen)
35986
- return OPENING_SCREEN_WORD;
35987
- if (lead.kind === LayoutLayerKind.Photo || lead.kind === LayoutLayerKind.Gallery)
35988
- return lead.kind;
35989
- return lead.size ? `${lead.size}-${lead.kind}` : lead.kind;
35990
- }
35991
- const SCRUB_TOKEN = 'scrub';
35992
- /** What of AW10 a page wears (`LayoutFingerprint.scrub`): letters rising, entrances following the scroll, both — or
35993
- * null for neither. */
35994
- function scrubTokenOf(page) {
35995
- const layers = (page.sections ?? []).flatMap(s => s.layers ?? []);
35996
- const parts = [
35997
- layers.some(l => l.enter === LayoutEnter.Letters) && LayoutEnter.Letters,
35998
- layers.some(l => l.scrub) && SCRUB_TOKEN,
35999
- ].filter((x) => !!x);
36000
- return parts.length ? parts.join('+') : null;
36001
- }
36002
- /** A page's fingerprint, worn in `preset` and `mode`, under the site's `header` and `footer` when they are known. A photo ground opens on
36003
- * the page's own ground colour. */
36004
- function fingerprintOf(page, preset, mode, header, footer) {
36005
- const sections = page.sections ?? [];
36006
- const lists = listTokensOf(page);
36007
- const scrub = scrubTokenOf(page);
36008
- const first = sections[0];
36009
- const ground = String(first?.ground ?? LayoutColour.Ground);
36010
- const name = Object.values(LayoutColour).includes(ground) ? ground : LayoutColour.Ground;
36011
- const colour = parseCssColour(layoutPresetColours(preset, mode)?.[name]);
36012
- const light = colour ? relativeLuminance(colour) > PHOTO_LIGHT_LUMINANCE : mode === 'light';
36013
- return {
36014
- opening: openingOf(first),
36015
- sequence: sections.map(s => (s.readyMade || s.carry ? LAYOUT_READY_MADE_TOKEN : sectionTokenOf(s))),
36016
- signature: signatureOf(sections.find(s => s.signature)),
36017
- ground: light ? PhotoTone.Light : PhotoTone.Dark,
36018
- preset,
36019
- ...(lists.length ? { lists } : {}),
36020
- ...(header ? { header: headerTokenOf(header) } : {}),
36021
- ...(footer ? { footer: footerTokenOf(footer) } : {}),
36022
- ...(scrub ? { scrub } : {}),
36023
- };
36024
- }
36025
- /** A composed page's fingerprint under its site plan's header and footer — the ONE call every reader of a plan makes. */
36026
- function fingerprintOfPlanPage(page, preset, mode, plan) {
36027
- return fingerprintOf(page, preset, mode, wornHeaderOfPlan(plan).mix, footerMixOfPlan(plan));
36028
- }
36029
- /** The longest common subsequence of two sequences. */
36030
- function lcs(a, b) {
36031
- const d = Array.from({ length: a.length + 1 }, () => new Array(b.length + 1).fill(0));
36032
- for (let i = 1; i <= a.length; i++)
36033
- for (let j = 1; j <= b.length; j++)
36034
- d[i][j] = a[i - 1] === b[j - 1] ? d[i - 1][j - 1] + 1 : Math.max(d[i - 1][j], d[i][j - 1]);
36035
- return d[a.length][b.length];
36036
- }
36037
- /** The share of the longer sequence two pages have in common. */
36038
- function sequenceShare(a, b) {
36039
- return lcs(a, b) / Math.max(1, a.length, b.length);
36040
- }
36041
- const openingWords = (opening) => opening.startsWith(READY_MADE_OPENING) ? `the ready-made ${opening.slice(READY_MADE_OPENING.length)}` : opening === OPENING_SCREEN_WORD ? 'a screen-size word' : opening === 'photo' || opening === 'gallery' ? `a ${opening}` : `a ${opening.replace('-', ' ')}`;
36042
- /** A list token in words: `list:row/middle-raised/arrows` → "row · middle raised · arrows". */
36043
- const listWords = (token) => token.replace(`${LAYOUT_LIST_TOKEN}:`, '').split('/').map(p => p.replace(/[-+]/g, ' ')).join(' · ');
36044
- const signatureWords = (id) => SPEC_SITE_LAYOUT.signatures.find(s => s.id === id)?.label ?? id;
36045
- /**
36046
- * Refuses a page that repeats one already made (M8-G2-D7): most of the same sequence (`SPEC_SITE_LAYOUT.sameness.sequence`,
36047
- * 6 of 7), or the same opening AND signature; against a page of the same business type, the same opening or the same
36048
- * signature alone — never a page of THIS site (`sameSite`), which is always the same kind. The sequence is compared with real pages only — this studio's, other studios', this site's — never a
36049
- * demo's (Doron, 2026-11-09: the proof sites' order is the product's grammar, not someone's site). The look is the
36050
- * owner's pick and is never a reason.
36051
- */
36052
- function samenessIssues(me, others, businessType) {
36053
- const issues = [];
36054
- const add = (path, message) => {
36055
- issues.push({ code: LayoutIssueCode.Sameness, path, message });
36056
- };
36057
- for (const o of others) {
36058
- const them = o.fingerprint;
36059
- const sameType = !o.sameSite && !!businessType && o.businessType === businessType;
36060
- const opening = me.opening === them.opening;
36061
- const signature = me.signature === them.signature;
36062
- if (opening && (signature || sameType))
36063
- add('sections[0]', `"${o.name}" already opens on ${openingWords(them.opening)}${sameType ? ', and it is the same kind of business' : ` with ${signatureWords(them.signature)}`} — open another way`);
36064
- if (signature && (opening || sameType))
36065
- add('sections', `"${o.name}"'s signature is already ${signatureWords(them.signature)} — find another mechanism`);
36066
- // A list mix: refused against the same kind of business (list-ingredients §7); the brief names every other one.
36067
- if (sameType)
36068
- for (const token of (me.lists ?? []).filter(t => (them.lists ?? []).includes(t))) {
36069
- add('sections', `"${o.name}" already shows a list as ${listWords(token)}, and it is the same kind of business — mix this list another way`);
36070
- }
36071
- if (!o.demo && sequenceShare(me.sequence, them.sequence) >= SPEC_SITE_LAYOUT.sameness.sequence) {
36072
- add('sections', `your sequence (${me.sequence.join(' → ')}) repeats "${o.name}"'s (${them.sequence.join(' → ')}) — change the order and the kinds of sections`);
36073
- }
36074
- }
36075
- return issues;
36076
- }
36077
- /** The three proof sites' fingerprints (premium M8): every new page's opening and signature are compared with them, never
36078
- * its order of sections (`demo`). layout-fingerprint.spec holds them equal to `fingerprintOf` of the proof layouts. */
36079
- const PROOF_FINGERPRINTS = [
36080
- {
36081
- name: 'bar-daring',
36082
- demo: true,
36083
- fingerprint: {
36084
- opening: OPENING_SCREEN_WORD,
36085
- sequence: [LayoutSequenceToken.Composition, LayoutSequenceToken.Gallery, LayoutSequenceToken.Inhale, LayoutSequenceToken.HeldWords, LayoutSequenceToken.Sideways, LayoutSequenceToken.Gallery, LayoutSequenceToken.Composition],
36086
- signature: LayoutSignatureId.WordsLit,
36087
- ground: PhotoTone.Dark,
36088
- preset: 'after-dark',
36089
- },
36090
- },
36091
- {
36092
- name: 'makers-daring',
36093
- demo: true,
36094
- fingerprint: {
36095
- opening: OPENING_SCREEN_WORD,
36096
- sequence: [LayoutSequenceToken.Composition, LayoutSequenceToken.Sideways, LayoutSequenceToken.Gallery, LayoutSequenceToken.Gallery, LayoutSequenceToken.Inhale, LayoutSequenceToken.HeldWords, LayoutSequenceToken.PhotoGround],
36097
- signature: LayoutSignatureId.WordsLit,
36098
- ground: PhotoTone.Light,
36099
- preset: 'warm-editorial',
36100
- },
36101
- },
36102
- {
36103
- name: 'cafe-he-daring',
36104
- demo: true,
36105
- fingerprint: {
36106
- opening: 'xxl-heading',
36107
- sequence: [LayoutSequenceToken.Composition, LayoutSequenceToken.Composition, LayoutSequenceToken.Inhale, LayoutSequenceToken.Held, LayoutSequenceToken.HeldReel, LayoutSequenceToken.Gallery, LayoutSequenceToken.Composition],
36108
- signature: LayoutSignatureId.PhotoUnveiled,
36109
- ground: PhotoTone.Light,
36110
- preset: 'warm-editorial',
36111
- },
36112
- },
36113
- ];
36114
-
36115
36723
  /**
36116
36724
  * A PAGE BUILT FROM ITS SECTIONS IN THE STUDIO'S MEMORY (vectoriox/iox-ui#119, option C — Doron, 2026-11-23). A composed
36117
36725
  * page that falls back whole is stamped from the plan's ready-made sections, and four of six J10 Homes did — two hero
@@ -36216,7 +36824,7 @@ var FallbackOpeningKept;
36216
36824
  function distinctFallbackSections(sections, others) {
36217
36825
  const all = [...sections];
36218
36826
  const first = all[0];
36219
- const worn = new Set(others.filter(o => !o.sameSite && !o.demo).map(o => o.fingerprint.opening));
36827
+ const worn = wornOpenings(others);
36220
36828
  if (!first || !worn.has(readyMadeToken(first.pattern)))
36221
36829
  return { sections: all, kept: FallbackOpeningKept.Free };
36222
36830
  const family = patternById(first.pattern)?.family;
@@ -37234,5 +37842,5 @@ function siteGlobalsOf(globals) {
37234
37842
  * Generated bundle index. Do not edit.
37235
37843
  */
37236
37844
 
37237
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
37845
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, TYPE_LED_KEPT, TYPE_LED_OPTIONAL_PARTS, TYPE_LED_SWAPS, TypeLedChangeKind, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, chooseTypeLedOpening, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, emptyPictures, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingHarnessWord, openingIsTypeLed, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords$1 as openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, picturelessTypes, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typeLedLayoutSection, typeLedOpeningSection, typeLedOpeningWays, typeLedRound, typeLedSection, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, wornOpenings, writtenTexts };
37238
37846
  //# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map