@vectoriox/iox-ui 5.140.0 → 5.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/assist-core/index.d.ts +19 -2
  2. package/design-core/index.d.ts +171 -2
  3. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +29 -3
  4. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +358 -172
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1671 -861
  8. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +49 -18
  10. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +32 -9
  12. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +85 -4
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/generation-core/index.d.ts +525 -144
  16. package/harness-core/index.d.ts +18 -18
  17. package/index.d.ts +92 -2
  18. package/package.json +1 -1
  19. package/scene-core/index.d.ts +17 -1
  20. package/src/assist-core/assist-turn.ts +34 -2
  21. package/src/design-core/flavor-spec.generated.ts +141 -0
  22. package/src/design-core/ink-on-ground.ts +36 -0
  23. package/src/design-core/list-classes.ts +37 -0
  24. package/src/design-core/node-classes.ts +3 -2
  25. package/src/design-core/public-api.ts +2 -0
  26. package/src/generation-core/check-layout.ts +23 -1
  27. package/src/generation-core/check-list.ts +144 -5
  28. package/src/generation-core/compose-layout.ts +188 -23
  29. package/src/generation-core/compose-site.ts +14 -2
  30. package/src/generation-core/header-edit.ts +15 -11
  31. package/src/generation-core/layout-fingerprint.ts +5 -1
  32. package/src/generation-core/layout-language.ts +10 -0
  33. package/src/generation-core/layout-wire.ts +64 -24
  34. package/src/generation-core/list-panel.ts +122 -0
  35. package/src/generation-core/list-space.ts +205 -0
  36. package/src/generation-core/list-table.ts +101 -0
  37. package/src/generation-core/node-baselines.generated.ts +3 -1
  38. package/src/generation-core/public-api.ts +2 -0
  39. package/src/generation-core/serialized-node.ts +2 -0
  40. package/src/generation-core/site-plan.model.ts +6 -0
  41. package/src/generation-core/site-spec.generated.ts +188 -70
  42. package/src/generation-core/validate-site-plan.ts +8 -4
  43. package/src/harness-core/harness-spec.generated.ts +49 -18
  44. package/src/scene-core/split-text.ts +31 -7
  45. package/styles/iox-design.css +438 -4
@@ -1,6 +1,6 @@
1
- import { NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, setColorScheme, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, wcagContrastRatio, isScrubId, HeaderBehaviour, headerBehaviourOf, headerEdgeOf } from '@vectoriox/iox-ui/design-core';
1
+ import { NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, isScrubId, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, wcagContrastRatio, HeaderBehaviour, headerBehaviourOf, headerEdgeOf } from '@vectoriox/iox-ui/design-core';
2
2
  export { HeaderInk } from '@vectoriox/iox-ui/design-core';
3
- import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, buildMarqueeRecipe, SceneRole, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, ACCORDION_WORDS, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, TABS_WORDS, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
3
+ import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, SceneRole, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, ACCORDION_WORDS, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, TABS_WORDS, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
4
4
  import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
5
5
  import { normalizeFrameSequence, filmScreensFor, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
6
6
  import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
@@ -109,7 +109,8 @@ const SPEC_SITE_PLAN_SHAPE = {
109
109
  "icon?": "string — a field: an icon name",
110
110
  "quote?": "string — a field: someone's words",
111
111
  "person?": "string — a field: who said or made it",
112
- "link?": "string — a field: where the item leads (a route or an address)"
112
+ "link?": "string — a field: where the item leads (a route or an address)",
113
+ "colour?": "string — a field: its own colour, a hex (a colour block's ground)"
113
114
  },
114
115
  "field": {
115
116
  "name": "string — unique in the type",
@@ -215,6 +216,7 @@ const SPEC_SITE_ROLES = {
215
216
  "quote": "someone's words — a testimonial or a story's line, shown in quotation marks",
216
217
  "person": "who said or made it — a name (their role or place goes in meta)",
217
218
  "link": "where the item leads — its own page or an address; the card's arrow goes there",
219
+ "colour": "its own colour (a hex) — the ground of its block; the words on it are chosen to read",
218
220
  "price": "its price — the shop's own field, shown through the money pipe in the studio currency",
219
221
  "compareAt": "its earlier price, struck through beside the price (the shop's own field)"
220
222
  };
@@ -7450,71 +7452,90 @@ const SPEC_SITE_LAYOUT = {
7450
7452
  "hover.tilt": "the card's ground turns, its content settles smaller",
7451
7453
  "arrive.clip-up": "each card opens from its bottom edge, its content rising inside"
7452
7454
  },
7453
- "waits": {
7454
- "item.title-on-photo": {
7455
- "phase": "AW11",
7456
- "drawnAs": "photo"
7457
- },
7458
- "item.packshot": {
7459
- "phase": "AW11",
7460
- "drawnAs": "card"
7461
- },
7462
- "item.colour-block": {
7463
- "phase": "AW11",
7464
- "drawnAs": "card"
7465
- },
7466
- "item.numbered": {
7467
- "phase": "AW11",
7468
- "drawnAs": "card"
7469
- },
7470
- "arrange.hang": {
7471
- "phase": "AW11",
7472
- "drawnAs": "masonry"
7473
- },
7474
- "arrange.bento": {
7475
- "phase": "AW11",
7476
- "drawnAs": "grid"
7477
- },
7478
- "arrange.rows": {
7479
- "phase": "AW11",
7480
- "drawnAs": "grid"
7481
- },
7482
- "arrange.stage": {
7483
- "phase": "AW11",
7484
- "drawnAs": "grid"
7485
- },
7486
- "arrange.fan": {
7487
- "phase": "AW11",
7488
- "drawnAs": "row"
7489
- },
7490
- "arrange.tilted": {
7491
- "phase": "AW11",
7492
- "drawnAs": "grid"
7493
- },
7494
- "move.rows": {
7495
- "phase": "AW11",
7496
- "drawnAs": "auto"
7497
- },
7498
- "hover.swap": {
7499
- "phase": "AW11",
7500
- "drawnAs": "zoom"
7501
- },
7502
- "hover.unveil": {
7503
- "phase": "AW11",
7504
- "drawnAs": "zoom"
7505
- },
7506
- "hover.fill": {
7507
- "phase": "AW11",
7508
- "drawnAs": null
7509
- },
7510
- "hover.tilt": {
7511
- "phase": "AW11",
7512
- "drawnAs": "rise"
7513
- },
7514
- "arrive.clip-up": {
7515
- "phase": "AW11",
7516
- "drawnAs": "one-by-one"
7517
- }
7455
+ "waits": {},
7456
+ "belowPro": {
7457
+ "item.title-on-photo": "photo",
7458
+ "item.packshot": "card",
7459
+ "item.colour-block": "card",
7460
+ "item.numbered": "card",
7461
+ "arrange.hang": "masonry",
7462
+ "arrange.bento": "grid",
7463
+ "arrange.rows": "grid",
7464
+ "arrange.stage": "grid",
7465
+ "arrange.fan": "row",
7466
+ "arrange.tilted": "grid",
7467
+ "move.rows": "auto",
7468
+ "hover.swap": "zoom",
7469
+ "hover.unveil": "zoom",
7470
+ "hover.fill": null,
7471
+ "hover.tilt": "rise",
7472
+ "arrive.clip-up": "one-by-one"
7473
+ },
7474
+ "rhythms": {
7475
+ "hang": [
7476
+ {
7477
+ "span": 5,
7478
+ "drop": 0,
7479
+ "ratio": "4 / 5"
7480
+ },
7481
+ {
7482
+ "span": 4,
7483
+ "drop": 48,
7484
+ "ratio": "1 / 1"
7485
+ },
7486
+ {
7487
+ "span": 3,
7488
+ "drop": 16,
7489
+ "ratio": "3 / 4"
7490
+ },
7491
+ {
7492
+ "span": 3,
7493
+ "start": 2,
7494
+ "drop": 8,
7495
+ "ratio": "1 / 1"
7496
+ },
7497
+ {
7498
+ "span": 4,
7499
+ "drop": 0,
7500
+ "ratio": "3 / 4"
7501
+ },
7502
+ {
7503
+ "span": 4,
7504
+ "drop": 30,
7505
+ "ratio": "4 / 5"
7506
+ }
7507
+ ],
7508
+ "bento": [
7509
+ 3,
7510
+ 5,
7511
+ 7
7512
+ ],
7513
+ "tilt": [
7514
+ -1,
7515
+ 0.6,
7516
+ -0.4,
7517
+ 1
7518
+ ],
7519
+ "tiltMaxDeg": 4,
7520
+ "fanRadius": 1.7,
7521
+ "hoverTiltDeg": 2.5,
7522
+ "hoverSettle": 0.97,
7523
+ "clipUpRise": 22,
7524
+ "numberBehindInk": 0.1,
7525
+ "colourRamp": [
7526
+ {
7527
+ "ground": "accent",
7528
+ "ink": "accent-ink"
7529
+ },
7530
+ {
7531
+ "ground": "surface-2",
7532
+ "ink": "text"
7533
+ },
7534
+ {
7535
+ "ground": "inverse-bg",
7536
+ "ink": "inverse-text"
7537
+ }
7538
+ ]
7518
7539
  },
7519
7540
  "tiers": {
7520
7541
  "item.photo": "all",
@@ -7552,6 +7573,7 @@ const SPEC_SITE_LAYOUT = {
7552
7573
  "rules.onlyRow": "all",
7553
7574
  "rules.moving": "all",
7554
7575
  "rules.neverSwipe": "all",
7576
+ "rules.alone": "all",
7555
7577
  "item.title-on-photo": "pro",
7556
7578
  "item.packshot": "pro",
7557
7579
  "item.colour-block": "pro",
@@ -7567,7 +7589,19 @@ const SPEC_SITE_LAYOUT = {
7567
7589
  "hover.unveil": "pro",
7568
7590
  "hover.fill": "pro",
7569
7591
  "hover.tilt": "pro",
7570
- "arrive.clip-up": "pro"
7592
+ "arrive.clip-up": "pro",
7593
+ "rules.counts": "pro",
7594
+ "rules.bento": "pro",
7595
+ "rules.fanDragFrom": "pro",
7596
+ "rules.leaning": "pro",
7597
+ "rules.pictured": "pro",
7598
+ "rules.secondPicture": "pro",
7599
+ "rules.still": "pro",
7600
+ "rules.titleOnPhotoWords": "pro",
7601
+ "rules.rowsStandout": "pro",
7602
+ "rules.notFirstScreen": "pro",
7603
+ "rules.onlyPictures": "pro",
7604
+ "rules.middle": "pro"
7571
7605
  },
7572
7606
  "defaults": {
7573
7607
  "item": "card",
@@ -7766,7 +7800,8 @@ const SPEC_SITE_LAYOUT = {
7766
7800
  "middle"
7767
7801
  ],
7768
7802
  "move": [
7769
- "page"
7803
+ "page",
7804
+ "rows"
7770
7805
  ]
7771
7806
  },
7772
7807
  "moving": [
@@ -7775,8 +7810,91 @@ const SPEC_SITE_LAYOUT = {
7775
7810
  ],
7776
7811
  "neverSwipe": [
7777
7812
  "grid",
7778
- "masonry"
7779
- ]
7813
+ "masonry",
7814
+ "hang",
7815
+ "bento",
7816
+ "rows",
7817
+ "tilted"
7818
+ ],
7819
+ "alone": [
7820
+ "page",
7821
+ "rows"
7822
+ ],
7823
+ "counts": {
7824
+ "hang": [
7825
+ 5,
7826
+ 12
7827
+ ],
7828
+ "stage": [
7829
+ 3,
7830
+ 10
7831
+ ],
7832
+ "fan": [
7833
+ 3,
7834
+ 9
7835
+ ],
7836
+ "tilted": [
7837
+ 3,
7838
+ 9
7839
+ ],
7840
+ "rows": [
7841
+ 3,
7842
+ 12
7843
+ ]
7844
+ },
7845
+ "bento": [
7846
+ 3,
7847
+ 5,
7848
+ 7
7849
+ ],
7850
+ "fanDragFrom": 5,
7851
+ "leaning": [
7852
+ "fan",
7853
+ "tilted"
7854
+ ],
7855
+ "pictured": {
7856
+ "arrange": [
7857
+ "hang",
7858
+ "stage"
7859
+ ],
7860
+ "item": [
7861
+ "title-on-photo",
7862
+ "packshot"
7863
+ ],
7864
+ "hover": [
7865
+ "fill"
7866
+ ]
7867
+ },
7868
+ "secondPicture": {
7869
+ "hover": [
7870
+ "swap",
7871
+ "unveil"
7872
+ ]
7873
+ },
7874
+ "still": {
7875
+ "hover": [
7876
+ "tilt"
7877
+ ]
7878
+ },
7879
+ "titleOnPhotoWords": 6,
7880
+ "middle": [
7881
+ "row",
7882
+ "fan"
7883
+ ],
7884
+ "rowsStandout": {
7885
+ "who": "pointed",
7886
+ "how": "brighter"
7887
+ },
7888
+ "notFirstScreen": {
7889
+ "arrive": [
7890
+ "clip-up"
7891
+ ]
7892
+ },
7893
+ "onlyPictures": {
7894
+ "move": [
7895
+ "rows"
7896
+ ]
7897
+ }
7780
7898
  }
7781
7899
  },
7782
7900
  "header": {
@@ -11845,7 +11963,8 @@ const NODE_BASELINES = {
11845
11963
  "marqueeFade",
11846
11964
  "marqueePauseOnHover",
11847
11965
  "seam",
11848
- "sectionShape"
11966
+ "sectionShape",
11967
+ "listMix"
11849
11968
  ],
11850
11969
  "styleTraits": [
11851
11970
  "position",
@@ -14390,6 +14509,7 @@ const NODE_BASELINES = {
14390
14509
  "__effectsLabel",
14391
14510
  "effect",
14392
14511
  "speed",
14512
+ "creativePreset",
14393
14513
  "scrollPlays",
14394
14514
  "__navLabel",
14395
14515
  "controlsPlacement",
@@ -16734,6 +16854,9 @@ var ContentFieldControl;
16734
16854
  ContentFieldControl["List"] = "list";
16735
16855
  ContentFieldControl["Number"] = "number";
16736
16856
  ContentFieldControl["Switch"] = "switch";
16857
+ /** AW11-D10: the item's own colour (a colour block's ground) — the admin's colour picker; a hex is drawn, a token or
16858
+ * a gradient leaves the look's ramp in place. */
16859
+ ContentFieldControl["Colour"] = "colorPicker";
16737
16860
  })(ContentFieldControl || (ContentFieldControl = {}));
16738
16861
  /** How a field is stored. The schema editor's and the item editor's own list: anything else renders no input. */
16739
16862
  var ContentFieldType;
@@ -16752,6 +16875,7 @@ const FIELD_TYPE_OF_CONTROL = {
16752
16875
  [ContentFieldControl.List]: ContentFieldType.Array,
16753
16876
  [ContentFieldControl.Number]: ContentFieldType.Number,
16754
16877
  [ContentFieldControl.Switch]: ContentFieldType.Boolean,
16878
+ [ContentFieldControl.Colour]: ContentFieldType.String,
16755
16879
  };
16756
16880
  /** The part a field plays (contract `site.roles`, AI plan L0-3): what a pattern binds instead of a field name, so one
16757
16881
  * card grid shows projects, services or a menu. `title` is required on every type. */
@@ -16773,6 +16897,8 @@ var ContentRole;
16773
16897
  ContentRole["Person"] = "person";
16774
16898
  /** LI0: where the item leads — its own page or an address. */
16775
16899
  ContentRole["Link"] = "link";
16900
+ /** AW11-D10: its own colour (a hex) — a colour block's ground; the ink on it is chosen when the page is drawn. */
16901
+ ContentRole["Colour"] = "colour";
16776
16902
  /** Commerce C-D21: the shop's own price — played only by the shop's fields (`SHOP_ROLES`), never a content type's. */
16777
16903
  ContentRole["Price"] = "price";
16778
16904
  /** Commerce C-D21: the shop's earlier price, struck through. */
@@ -17951,6 +18077,10 @@ var LayoutMendKind;
17951
18077
  /** A list section's mix that breaks a list rule the composer can settle (list-ingredients §6, `checkList`): the layer
17952
18078
  * takes the repaired mix — every repair of one list carries the same one. */
17953
18079
  LayoutMendKind["List"] = "list";
18080
+ /** LI7: a list section that reads empty — the list beside an empty side of its section, or on its own with nothing that
18081
+ * reads (`layoutListBare`): its words are set beside it, the list's own name as its heading where none reads
18082
+ * (`layoutListPair`). Places change, words never (the name is the plan's). */
18083
+ LayoutMendKind["ListWords"] = "list-words";
17954
18084
  /** A carried part whose action points at a node the new page no longer has (RD1 — a scroll link to a section that
17955
18085
  * left): the action is dropped from the carry and the drop is said (`mendCarry`), never refused. */
17956
18086
  LayoutMendKind["Link"] = "link";
@@ -19579,6 +19709,61 @@ function listBuiltWords(k) {
19579
19709
  function listMeaning(k, word) {
19580
19710
  return MEANINGS$2[`${k}.${word}`] ?? word;
19581
19711
  }
19712
+ // ── AW11 (award-ingredients-plan.md §7.1f, board award-lists): the award tier, the rhythms, what each word needs ─────
19713
+ /** AW-D23: a word every plan wears (`all`) or the award tier's alone (`pro`). */
19714
+ function listWordTier(k, word) {
19715
+ return LIST_TABLE.tiers[`${k}.${word}`] === 'pro' ? 'pro' : 'all';
19716
+ }
19717
+ /** May a build at `tier` wear this word? (`award` wears every word; anything else the `all` ones.) */
19718
+ function listWordOffered(k, word, tier) {
19719
+ return listWordTier(k, word) === 'all' || tier === 'award';
19720
+ }
19721
+ /** The word a round-two word is drawn as below the award tier (null: left out), from the contract's `belowPro`. */
19722
+ function listBelowPro(k, word) {
19723
+ const stand = LIST_TABLE.belowPro[`${k}.${word}`];
19724
+ return stand === undefined ? undefined : stand;
19725
+ }
19726
+ /** The numbers the round-two arrangements are drawn with (the contract's `rhythms`, AW11-D3) — never the model's. */
19727
+ const LIST_RHYTHMS = LIST_TABLE.rhythms;
19728
+ /** The rules `checkList` holds, typed (the contract's `rules`). */
19729
+ const LIST_RULES = LIST_TABLE.rules;
19730
+ /** The largest bento fill a list of `items` can show without a hole (3, 5 or 7), or null under the smallest. */
19731
+ function bentoFill(items) {
19732
+ const fills = LIST_RULES.bento.filter(n => n <= items);
19733
+ return fills.length ? fills[fills.length - 1] : null;
19734
+ }
19735
+ /** Why a list cannot carry a word (R-H-AW11-7 — ONE table for the wire, the judge and Bindings ▸ List). */
19736
+ var ListWordRefusal;
19737
+ (function (ListWordRefusal) {
19738
+ /** The award tier's word, on a plan below it (AW-D23). */
19739
+ ListWordRefusal["ProOnly"] = "pro-only";
19740
+ /** The word shows a picture in every item, and the list has none. */
19741
+ ListWordRefusal["NoPictures"] = "no-pictures";
19742
+ /** The word shows a second picture (the gallery role), and the list has none (AW11-D12). */
19743
+ ListWordRefusal["NoSecondPicture"] = "no-second-picture";
19744
+ /** The business type's lists never take it (L-D12, AW11-D7). */
19745
+ ListWordRefusal["Never"] = "never";
19746
+ })(ListWordRefusal || (ListWordRefusal = {}));
19747
+ const inRule = (rule, k, w) => !!rule[k]?.includes(w);
19748
+ /**
19749
+ * Can this list carry this word — and if not, why (R-H-AW11-7)? The ONE answer the wire's offer, `checkList` and
19750
+ * Bindings ▸ List read: a word the list's data cannot carry is never offered, never picked. `shape` null: nothing is
19751
+ * known of the list (any word its tier allows). `tier` absent: no tier is judged (the judge's own tier step, the owner's
19752
+ * builder).
19753
+ */
19754
+ function listWordRefusal(k, word, shape, tier, never) {
19755
+ if (tier !== undefined && tier !== null && !listWordOffered(k, word, tier))
19756
+ return ListWordRefusal.ProOnly;
19757
+ if (never && ((k === 'arrange' && never.arranges.includes(word)) || (k === 'move' && never.moves.includes(word))))
19758
+ return ListWordRefusal.Never;
19759
+ if (!shape)
19760
+ return null;
19761
+ if (inRule(LIST_RULES.pictured, k, word) && !shape.roles.includes('image'))
19762
+ return ListWordRefusal.NoPictures;
19763
+ if (inRule(LIST_RULES.secondPicture, k, word) && !shape.roles.includes('gallery'))
19764
+ return ListWordRefusal.NoSecondPicture;
19765
+ return null;
19766
+ }
19582
19767
 
19583
19768
  /**
19584
19769
  * THE LIST JUDGE (list-ingredients-plan.md §6, LI2; the demo's `checkMix`): one function for any mix of the seven
@@ -19588,6 +19773,9 @@ function listMeaning(k, word) {
19588
19773
  */
19589
19774
  const R = SPEC_SITE_LAYOUT.list.rules;
19590
19775
  const IMAGE$1 = 'image';
19776
+ const AWARD$1 = 'award';
19777
+ /** What a name set on its picture may show beside the picture: the name and a short detail (AW11-D8). */
19778
+ const TITLE_ON_PHOTO_PARTS$1 = new Set(['title', 'meta', 'date']);
19591
19779
  const inList$1 = (values, v) => typeof v === 'string' && values.includes(v);
19592
19780
  const enumValues = (e) => Object.values(e);
19593
19781
  /** The words a refusal names: the DRAWN ones only — a refusal is the model's next turn, and a waiting word is never offered. */
@@ -19601,7 +19789,7 @@ const listNeverIsEmpty = (never) => !never || (!never.arranges.length && !never.
19601
19789
  * Judge one list section's mix against the list it shows (`shape`, from `layoutListShapes`; null when the source is no
19602
19790
  * list — the source check says that). `layer` is the layer's path (`sections[1].layers[0]`).
19603
19791
  */
19604
- function checkList(mix, shape, layer, never) {
19792
+ function checkList(mix, shape, layer, never, options = {}) {
19605
19793
  const at = `${layer}.gallery.list`;
19606
19794
  const refused = [];
19607
19795
  const refuse = (code, path, message) => refused.push({ code, path, message });
@@ -19654,6 +19842,29 @@ function checkList(mix, shape, layer, never) {
19654
19842
  const drawn = next[k].map(w => { const stand = waiting(k, w); return stand === undefined ? w : stand; }).filter((w) => !!w);
19655
19843
  next[k] = [...new Set(drawn)];
19656
19844
  }
19845
+ // AW-D23: a round-two word on a site built below the award tier is drawn as its stand-in (the contract's belowPro).
19846
+ if (options.tier !== undefined && options.tier !== null && options.tier !== AWARD$1) {
19847
+ const below = (k, fallback) => {
19848
+ const stand = listBelowPro(k, next[k]);
19849
+ if (stand === undefined)
19850
+ return;
19851
+ repair(`${k} "${next[k]}" comes with the award plan: "${stand ?? fallback}" instead`);
19852
+ next[k] = stand ?? fallback;
19853
+ };
19854
+ below('item', LayoutListItem.Card);
19855
+ below('arrange', LayoutListArrange.Grid);
19856
+ below('arrive', LayoutListArrive.Together);
19857
+ for (const k of ['move', 'hover']) {
19858
+ const kept = next[k].flatMap(w => {
19859
+ const stand = listBelowPro(k, w);
19860
+ if (stand === undefined)
19861
+ return [w];
19862
+ repair(`${k} "${w}" comes with the award plan: ${stand ? `"${stand}" instead` : 'left out'}`);
19863
+ return stand ? [stand] : [];
19864
+ });
19865
+ next[k] = [...new Set(kept)];
19866
+ }
19867
+ }
19657
19868
  const roles = shape.roles;
19658
19869
  const pictured = roles.includes(IMAGE$1);
19659
19870
  // What the items show: only what the list holds, each once.
@@ -19674,6 +19885,29 @@ function checkList(mix, shape, layer, never) {
19674
19885
  next.parts = [IMAGE$1];
19675
19886
  }
19676
19887
  }
19888
+ // AW11: round-two items — each needs what it shows (one table: listWordRefusal).
19889
+ const itemRefusal = listWordRefusal('item', next.item, shape);
19890
+ if (itemRefusal === ListWordRefusal.NoPictures) {
19891
+ repair(`"${shape.alias}" has no pictures — ${listMeaning('item', next.item)} needs one: its items are cards`);
19892
+ next.item = LayoutListItem.Card;
19893
+ }
19894
+ if (next.item === LayoutListItem.TitleOnPhoto && (shape.titleWords ?? 0) > LIST_RULES.titleOnPhotoWords) {
19895
+ repair(`"${shape.alias}" has names of ${shape.titleWords} words — more than ${LIST_RULES.titleOnPhotoWords} would cover the picture: its items are cards`);
19896
+ next.item = LayoutListItem.Card;
19897
+ }
19898
+ if (next.item === LayoutListItem.Packshot && shape.plainPictures === false) {
19899
+ repair(`"${shape.alias}"'s pictures do not stand on a plain ground — a packshot needs one: its items are cards`);
19900
+ next.item = LayoutListItem.Card;
19901
+ }
19902
+ if (next.item === LayoutListItem.TitleOnPhoto) {
19903
+ const words = next.parts.filter(p => p === IMAGE$1 || TITLE_ON_PHOTO_PARTS$1.has(p));
19904
+ if (words.length !== next.parts.length) {
19905
+ repair('a name on its picture shows the picture, the name and a short detail only');
19906
+ next.parts = words;
19907
+ }
19908
+ if (!next.parts.includes(IMAGE$1))
19909
+ next.parts = [IMAGE$1, ...next.parts];
19910
+ }
19677
19911
  // The arrangement first: what follows is judged against the one the list ends with.
19678
19912
  if (next.arrange === LayoutListArrange.Strips && !pictured) {
19679
19913
  repair('strips need a picture in every item — a still grid instead');
@@ -19689,6 +19923,36 @@ function checkList(mix, shape, layer, never) {
19689
19923
  repair(`${why} — ${say(LayoutListArrange.Row)}`);
19690
19924
  next.arrange = LayoutListArrange.Row;
19691
19925
  }
19926
+ // AW11: round-two arrangements — pictures where they need them, the counts they are drawn at.
19927
+ const arrangeRefusal = listWordRefusal('arrange', next.arrange, shape);
19928
+ if (arrangeRefusal === ListWordRefusal.NoPictures) {
19929
+ return [{ code: LayoutIssueCode.Content, path: `${at}.arrange`, message: `${say(next.arrange)} needs a picture in every item — "${shape.alias}" has none; arrange it another way` }];
19930
+ }
19931
+ const count = LIST_RULES.counts[next.arrange];
19932
+ if (count && shape.items !== null) {
19933
+ const [fewest, most] = count;
19934
+ if (shape.items < fewest) {
19935
+ const instead = next.arrange === LayoutListArrange.Hang ? LayoutListArrange.Masonry : LayoutListArrange.Grid;
19936
+ repair(`${say(next.arrange)} needs ${fewest} items — "${shape.alias}" has ${shape.items}: ${say(instead)}`);
19937
+ next.arrange = instead;
19938
+ }
19939
+ else if (shape.items > most) {
19940
+ repair(`${say(next.arrange)} shows the first ${most} of "${shape.alias}"'s ${shape.items}, then the link to all of them`);
19941
+ }
19942
+ }
19943
+ if (next.arrange === LayoutListArrange.Bento && shape.items !== null) {
19944
+ const fill = bentoFill(shape.items);
19945
+ if (fill === null) {
19946
+ repair(`a bento needs ${LIST_RULES.bento[0]} items — ${say(LayoutListArrange.Grid)}`);
19947
+ next.arrange = LayoutListArrange.Grid;
19948
+ }
19949
+ else if (fill < shape.items) {
19950
+ repair(`a bento fits ${LIST_RULES.bento.join(', ')} — "${shape.alias}" has ${shape.items}, so it shows ${fill} and the link to all of them`);
19951
+ }
19952
+ }
19953
+ const tiltedText = next.arrange === LayoutListArrange.Tilted && next.item !== LayoutListItem.Photo ? shape.long.filter(role => next.parts.includes(role)) : [];
19954
+ if (tiltedText.length)
19955
+ repair(`its ${tiltedText.join(' and ')} run long — a turned card shows their first lines`);
19692
19956
  const longShown = shape.long.filter(role => next.parts.includes(role));
19693
19957
  if (longShown.length && next.arrange === LayoutListArrange.Grid) {
19694
19958
  repair(`its ${longShown.join(' and ')} run long — a grid would cut them: ${say(LayoutListArrange.Masonry)}`);
@@ -19716,7 +19980,7 @@ function checkList(mix, shape, layer, never) {
19716
19980
  delete next.standout;
19717
19981
  }
19718
19982
  else {
19719
- if (has$1(R.onlyRow.who, next.standout.who) && !row) {
19983
+ if (has$1(R.onlyRow.who, next.standout.who) && !row && !has$1(LIST_RULES.middle ?? [], arrange)) {
19720
19984
  repair(`"${next.standout.who}" is a row's — the first stands out`);
19721
19985
  next.standout.who = LayoutListWho.First;
19722
19986
  }
@@ -19726,13 +19990,29 @@ function checkList(mix, shape, layer, never) {
19726
19990
  }
19727
19991
  }
19728
19992
  }
19993
+ if (arrange === LayoutListArrange.Rows && next.standout && (next.standout.who !== LIST_RULES.rowsStandout.who || next.standout.how !== LIST_RULES.rowsStandout.how)) {
19994
+ repair('numbered rows stand out one way: the one pointed at, the rest dimmed');
19995
+ next.standout = { who: LIST_RULES.rowsStandout.who, how: LIST_RULES.rowsStandout.how };
19996
+ }
19729
19997
  // How the visitor moves through them — never a way the business's lists never move (L-D12).
19730
19998
  const banned = never ? next.move.filter(m => has$1(never.moves, m)) : [];
19731
19999
  if (banned.length) {
19732
20000
  repair(`${why} — no ${banned.join(', ')}`);
19733
20001
  next.move = next.move.filter(m => !banned.includes(m));
19734
20002
  }
19735
- const moving = has$1(R.moving, arrange);
20003
+ // AW11: a fan moves only by being dragged, and only with enough cards to drag.
20004
+ if (arrange === LayoutListArrange.Fan && next.move.length) {
20005
+ const dragged = next.move.includes(LayoutListMove.Drag) && (shape.items === null || shape.items >= LIST_RULES.fanDragFrom);
20006
+ const dropped = next.move.filter(m => m !== LayoutListMove.Drag || !dragged);
20007
+ if (dropped.length)
20008
+ repair(dragged || !next.move.includes(LayoutListMove.Drag) ? `a fan is only dragged — no ${dropped.join(', ')}` : `a fan of fewer than ${LIST_RULES.fanDragFrom} cards stays still`);
20009
+ next.move = dragged ? [LayoutListMove.Drag] : [];
20010
+ }
20011
+ if (next.move.includes(LayoutListMove.Rows) && !pictured) {
20012
+ repair(`"${shape.alias}" has no pictures — no drifting rows`);
20013
+ next.move = next.move.filter(m => m !== LayoutListMove.Rows);
20014
+ }
20015
+ const moving = has$1(R.moving, arrange) || (arrange === LayoutListArrange.Fan && next.move.length > 0);
19736
20016
  if (!moving && next.move.length) {
19737
20017
  repair(`${say(arrange)} does not move — no ${next.move.join(', ')}`);
19738
20018
  next.move = [];
@@ -19747,6 +20027,15 @@ function checkList(mix, shape, layer, never) {
19747
20027
  repair('the page\'s scroll carries the row alone');
19748
20028
  next.move = [LayoutListMove.Page];
19749
20029
  }
20030
+ if (next.move.includes(LayoutListMove.Rows) && next.move.length > 1) {
20031
+ repair('drifting rows move by themselves alone');
20032
+ next.move = [LayoutListMove.Rows];
20033
+ }
20034
+ if (next.move.includes(LayoutListMove.Rows) && next.item !== LayoutListItem.Photo) {
20035
+ repair('drifting rows hold pictures only');
20036
+ next.item = LayoutListItem.Photo;
20037
+ next.parts = [IMAGE$1];
20038
+ }
19750
20039
  if (!next.move.length) {
19751
20040
  repair(`${say(arrange)} — the visitor drags it`);
19752
20041
  next.move = [LayoutListMove.Drag];
@@ -19757,19 +20046,47 @@ function checkList(mix, shape, layer, never) {
19757
20046
  repair(`"${stripHovers.join(', ')}" is a strip's`);
19758
20047
  next.hover = next.hover.filter(h => !has$1(R.onlyStrips.hover, h));
19759
20048
  }
20049
+ // AW11: hover words that need what the list may not have (one table), and the hover tilt — a still card's.
20050
+ const unread = next.hover.filter(h => listWordRefusal('hover', h, shape) !== null && listWordRefusal('hover', h, shape) !== ListWordRefusal.ProOnly);
20051
+ if (unread.length) {
20052
+ repair(unread.map(h => listWordRefusal('hover', h, shape) === ListWordRefusal.NoSecondPicture
20053
+ ? `"${h}" needs a second picture — "${shape.alias}" has one per item`
20054
+ : `"${h}" needs a picture — "${shape.alias}" has none`).join('; '));
20055
+ next.hover = next.hover.filter(h => !unread.includes(h));
20056
+ }
20057
+ if (next.hover.includes(LayoutListHover.Tilt) && (moving || next.item !== LayoutListItem.Card && next.item !== LayoutListItem.Packshot && next.item !== LayoutListItem.ColourBlock && next.item !== LayoutListItem.Numbered)) {
20058
+ repair(moving ? `${say(arrange)} moves — its card rises instead of turning` : 'only a card turns its ground — it rises instead');
20059
+ next.hover = [...new Set(next.hover.map(h => (h === LayoutListHover.Tilt ? LayoutListHover.Rise : h)))];
20060
+ }
19760
20061
  if (new Set(next.hover).size !== next.hover.length)
19761
20062
  next.hover = [...new Set(next.hover)];
20063
+ // AW11-D15: what is seen at once is there at once — no clip-up in the first screen.
20064
+ if (options.firstScreen && has$1(LIST_RULES.notFirstScreen.arrive ?? [], next.arrive)) {
20065
+ repair(`the first screen shows its items at once — "${next.arrive}" plays further down the page`);
20066
+ next.arrive = LayoutListArrive.Together;
20067
+ }
19762
20068
  // A phone.
19763
20069
  if (has$1(R.neverSwipe, arrange) && next.phone === LayoutListPhone.Swipe) {
19764
20070
  repair(`${say(arrange)} does not swipe on a phone — it stacks`);
19765
20071
  next.phone = LayoutListPhone.Stack;
19766
20072
  }
20073
+ // AW11-D6: a stage is a row of cards you swipe on a phone; a fan swipes or stacks.
20074
+ if (arrange === LayoutListArrange.Stage && next.phone !== LayoutListPhone.Swipe) {
20075
+ repair('a stage is a row of cards you swipe on a phone');
20076
+ next.phone = LayoutListPhone.Swipe;
20077
+ }
20078
+ if (arrange === LayoutListArrange.Fan && next.phone === LayoutListPhone.TwoUp) {
20079
+ repair('a fan is a row you swipe on a phone');
20080
+ next.phone = LayoutListPhone.Swipe;
20081
+ }
19767
20082
  return said.map(message => ({ code: LayoutIssueCode.Structure, path: at, message, mend: { kind: LayoutMendKind.List, layer, mix: next } }));
19768
20083
  }
19769
- /** Two list sections of one page never share an arrangement (list-ingredients §7): the later ones are the model's. */
20084
+ /** Two list sections of one page never share an arrangement (list-ingredients §7), and never two lean (AW11-D7): the
20085
+ * later ones are the model's. */
19770
20086
  function pageListIssues(page) {
19771
20087
  const issues = [];
19772
20088
  const seen = new Map();
20089
+ let leaning = null;
19773
20090
  (page?.sections ?? []).forEach((s, si) => (s.layers ?? []).forEach((l, li) => {
19774
20091
  const mix = l.kind === LayoutLayerKind.Gallery ? l.gallery?.list : undefined;
19775
20092
  if (!mix || typeof mix.arrange !== 'string')
@@ -19778,12 +20095,448 @@ function pageListIssues(page) {
19778
20095
  const first = seen.get(mix.arrange);
19779
20096
  if (first)
19780
20097
  issues.push({ code: LayoutIssueCode.Sameness, path, message: `${first} is already ${say(mix.arrange)} — arrange this list another way` });
20098
+ else if (leaning && has$1(LIST_RULES.leaning, mix.arrange))
20099
+ issues.push({ code: LayoutIssueCode.Sameness, path, message: `${leaning} already leans — one leaning list a page; arrange this one straight` });
19781
20100
  else
19782
20101
  seen.set(mix.arrange, `sections[${si}]`);
20102
+ if (!leaning && has$1(LIST_RULES.leaning, mix.arrange))
20103
+ leaning = `sections[${si}]`;
19783
20104
  }));
19784
20105
  return issues;
19785
20106
  }
19786
20107
 
20108
+ /**
20109
+ * Space on a composed page (the M8 demo, the bar's live page 2026-11-10): what the static check can read off the grid
20110
+ * about stillness and emptiness — a held section where nothing moves, a shape that is there for nothing, a stretch of the
20111
+ * laptop's screen with nothing on it, an opening with no display. Estimates on the check's laptop (1440 × 900), the
20112
+ * render check measures the real page. Pure.
20113
+ */
20114
+ const L$2 = SPEC_SITE_LAYOUT;
20115
+ const LIM$1 = L$2.limits;
20116
+ /**
20117
+ * The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
20118
+ * as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
20119
+ * are left out, so a box reads about a fifth wider than it renders — the render check measures the real one.
20120
+ */
20121
+ const LAYOUT_CHECK_VIEWPORT = { width: 1440, height: 900 };
20122
+ const GRID$2 = 12;
20123
+ const COLUMN_PX$2 = LAYOUT_CHECK_VIEWPORT.width / GRID$2;
20124
+ /** A line of words stands its size × this tall. */
20125
+ const LAYOUT_LINE_HEIGHT = 1.2;
20126
+ const HEBREW$4 = /[֐-׿]/;
20127
+ /** A button's ink, as tall as its padding and one line. */
20128
+ const BUTTON_PX = 56;
20129
+ /** How far the screens mend lowers a section at a time, and how often it tries. */
20130
+ const SCREENS_STEP = 0.25;
20131
+ const SCREENS_TRIES = 40;
20132
+ /** The kinds the composer stretches over their whole cell (`place`); every other kind sits in its cell's middle. */
20133
+ const FULL_CELL = new Set([LayoutLayerKind.Photo, LayoutLayerKind.Shape, LayoutLayerKind.Gallery, LayoutLayerKind.Form, LayoutLayerKind.Marquee]);
20134
+ /** The kinds a held section's line may be lit by the scroll (`kinetic`). */
20135
+ const LAYOUT_KINETIC_KINDS = new Set([LayoutLayerKind.Word, LayoutLayerKind.Heading, LayoutLayerKind.Text]);
20136
+ const span$2 = (r) => (r ? r[1] - r[0] : 0);
20137
+ const isText$1 = (l) => LAYOUT_TEXT_KINDS.has(l.kind);
20138
+ const isPictured$1 = (l) => l.kind === LayoutLayerKind.Photo || l.kind === LayoutLayerKind.Gallery;
20139
+ const wordsOf$4 = (t) => String(t ?? '').trim().split(/\s+/).filter(Boolean).length;
20140
+ const meets = (a, b) => {
20141
+ const ov = (p, q) => p[0] < q[1] && q[0] < p[1];
20142
+ return ov(a.col ?? [0, 0], b.col ?? [0, 0]) && ov(a.row ?? [0, 0], b.row ?? [0, 0]);
20143
+ };
20144
+ const textOf$3 = (l) => String(l.text ?? (l.items ?? []).join(' '));
20145
+ const advanceOf = (text) => (HEBREW$4.test(text) ? LIM$1.advance.hebrew : LIM$1.advance.latin);
20146
+ /** A grid box's size in px on the laptop. */
20147
+ function layoutBoxPx(col, row, s) {
20148
+ const height = (s.pin ? 1 : s.screens) * LAYOUT_CHECK_VIEWPORT.height;
20149
+ return { w: span$2(col) * COLUMN_PX$2, h: (span$2(row) * height) / Math.max(1, s.rows) };
20150
+ }
20151
+ /** Whether a sized text layer's words fit its box at its size (the check's estimate; a `screen` word is sized to fit). */
20152
+ function layoutTextFits(l, s, size = l.size) {
20153
+ const text = textOf$3(l);
20154
+ if (!isText$1(l) || !size || size === LayoutSize.Screen || !text)
20155
+ return true;
20156
+ const px = L$2.sizePx[size];
20157
+ const box = layoutBoxPx(l.col, l.row, s);
20158
+ const lines = Math.floor(box.h / (px * LAYOUT_LINE_HEIGHT));
20159
+ const items = l.kind === LayoutLayerKind.List ? Math.max(1, l.items?.length ?? 1) : 1;
20160
+ return lines >= items && (text.length * px * advanceOf(text)) / Math.max(1, lines) <= box.w * LIM$1.textFitSlack;
20161
+ }
20162
+ /** Words or a button drawn over a layer (above it, meeting it). */
20163
+ function wordsOver(s, li) {
20164
+ const l = s.layers[li];
20165
+ return s.layers.some((o, oi) => oi !== li && (isText$1(o) || o.kind === LayoutLayerKind.Button) && (o.z ?? 0) > (l.z ?? 0) && meets(o, l));
20166
+ }
20167
+ /**
20168
+ * A rule: a shape one row high with no words on it — the looks' hairline ("a shape one row high"). The composer draws it
20169
+ * as a line, never as the row's full height (the bar's grey boxes: a 150–180 px block where a hairline was meant).
20170
+ */
20171
+ function isLayoutRule(s, li) {
20172
+ const l = s.layers?.[li];
20173
+ return !!l && l.kind === LayoutLayerKind.Shape && span$2(l.row) === 1 && !wordsOver(s, li);
20174
+ }
20175
+ /** Where a rule's line sits in its row: against the words it belongs to (above it → its top, below it → its bottom). */
20176
+ function layoutRuleEdge(s, li) {
20177
+ const l = s.layers[li];
20178
+ const beside = (o) => isText$1(o) && (o.col?.[0] ?? 0) < (l.col?.[1] ?? 0) && (l.col?.[0] ?? 0) < (o.col?.[1] ?? 0);
20179
+ if (s.layers.some((o, oi) => oi !== li && beside(o) && o.row?.[1] === l.row[0]))
20180
+ return 'start';
20181
+ if (s.layers.some((o, oi) => oi !== li && beside(o) && o.row?.[0] === l.row[1]))
20182
+ return 'end';
20183
+ return 'center';
20184
+ }
20185
+ /**
20186
+ * A shape is there for something: a rule, a band of colour (wide, or off an edge), a backdrop to words, a frame meeting
20187
+ * a picture, or it moves (tracks, a depth). Anything else is an empty box on the page.
20188
+ */
20189
+ function layoutShapeHasPurpose(s, li) {
20190
+ const l = s.layers?.[li];
20191
+ if (!l || l.kind !== LayoutLayerKind.Shape)
20192
+ return true;
20193
+ if (isLayoutRule(s, li) || wordsOver(s, li))
20194
+ return true;
20195
+ if (span$2(l.col) >= LIM$1.bandColumns || (l.bleed && l.bleed !== 'none'))
20196
+ return true;
20197
+ if (s.layers.some((o, oi) => oi !== li && isPictured$1(o) && meets(o, l)))
20198
+ return true;
20199
+ return !!l.motion?.length || (!!l.depth && l.depth !== LayoutDepth.Mid);
20200
+ }
20201
+ /** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns. */
20202
+ function layoutHeldStill(s) {
20203
+ if (!s.pin || (s.track ?? 1) > 1 || s.readyMade || s.carry)
20204
+ return false;
20205
+ return !(s.layers ?? []).some(l => !!l.motion?.length || !!l.kinetic || (l.kind === LayoutLayerKind.Gallery && !!l.gallery?.scroll));
20206
+ }
20207
+ /**
20208
+ * The line a still hold can light word by word: a word, heading or text of 2 to the kinetic words, never over a picture —
20209
+ * the lead first, then by size. -1: none.
20210
+ */
20211
+ function layoutStillLine(s) {
20212
+ const sizes = Object.keys(L$2.sizePx);
20213
+ const found = (s.layers ?? [])
20214
+ .map((l, li) => ({ l, li }))
20215
+ .filter(({ l }) => LAYOUT_KINETIC_KINDS.has(l.kind) && wordsOf$4(l.text) >= 2 && wordsOf$4(l.text) <= LIM$1.kineticWords)
20216
+ .filter(({ l }) => !(s.layers ?? []).some(o => o !== l && isPictured$1(o) && meets(o, l)))
20217
+ .sort((a, b) => Number(b.l.role === LayoutRole.Lead) - Number(a.l.role === LayoutRole.Lead) || sizes.indexOf(b.l.size ?? 'm') - sizes.indexOf(a.l.size ?? 'm') || a.li - b.li);
20218
+ return found[0]?.li ?? -1;
20219
+ }
20220
+ /** A held section's largest photo that may move (not decoration — decoration only fades), for a still hold that cannot
20221
+ * let go of the page: -1, none. */
20222
+ function layoutDriftPhoto(s) {
20223
+ const area = (l) => span$2(l.col) * span$2(l.row);
20224
+ const found = (s.layers ?? []).map((l, li) => ({ l, li }))
20225
+ .filter(({ l }) => l.kind === LayoutLayerKind.Photo && l.role !== LayoutRole.Decoration && Array.isArray(l.col) && Array.isArray(l.row))
20226
+ .sort((a, b) => area(b.l) - area(a.l) || a.li - b.li);
20227
+ return found[0]?.li ?? -1;
20228
+ }
20229
+ /** The drift a still hold's photo takes: a slow scale over the whole hold — transform only, inside the track's bounds. */
20230
+ const LAYOUT_DRIFT = { prop: LayoutTrackProp.Scale, from: 1, to: 1.08, at: [0, 1] };
20231
+ /** A section whose screen is spoken for: what is on it never leaves it (held, sideways, a photo ground, ready-made), or
20232
+ * its space is the point (an inhale — the page's one breath, a word in the quiet). */
20233
+ const filled = (s) => !!s.pin || (s.track ?? 1) > 1 || !!s.readyMade || !!s.carry || String(s.ground ?? '').startsWith('photo:')
20234
+ || s.kind === LayoutSectionKind.Inhale;
20235
+ /** Where a layer's ink is in its section (px from the section's top): its cell for what stretches, its words' lines in the
20236
+ * cell's middle for the rest, the line of a rule. */
20237
+ function inkOf(s, li, rowPx) {
20238
+ const l = s.layers[li];
20239
+ const t = (l.row[0] - 1) * rowPx;
20240
+ const b = (l.row[1] - 1) * rowPx;
20241
+ const mid = (t + b) / 2;
20242
+ if (l.kind === LayoutLayerKind.Shape && isLayoutRule(s, li)) {
20243
+ const edge = layoutRuleEdge(s, li);
20244
+ const at = edge === 'start' ? t : edge === 'end' ? b : mid;
20245
+ return [at, at];
20246
+ }
20247
+ if (FULL_CELL.has(l.kind) || l.size === LayoutSize.Screen)
20248
+ return [t, b];
20249
+ let h = BUTTON_PX;
20250
+ if (isText$1(l)) {
20251
+ const text = textOf$3(l);
20252
+ const px = L$2.sizePx[(l.size ?? LayoutSize.M)] ?? L$2.sizePx.m;
20253
+ const w = Math.max(1, span$2(l.col) * COLUMN_PX$2);
20254
+ const items = l.kind === LayoutLayerKind.List ? Math.max(1, l.items?.length ?? 1) : 1;
20255
+ const lines = Math.max(items, Math.ceil((text.length * px * advanceOf(text)) / (w * LIM$1.textFitSlack)));
20256
+ h = lines * px * LAYOUT_LINE_HEIGHT;
20257
+ }
20258
+ h = Math.min(b - t, h);
20259
+ return [mid - h / 2, mid + h / 2];
20260
+ }
20261
+ /**
20262
+ * Every stretch more than `voidScreen` of a screen tall with nothing on it, top to bottom. A section that holds (or is a
20263
+ * photo, or ready-made) fills its height; one that flows has its layers' ink (`inkOf`). Judged across the sections, as a
20264
+ * visitor scrolls them; the end of the page counts (the footer is not the page's).
20265
+ */
20266
+ function layoutVoids(sections) {
20267
+ const ink = [];
20268
+ const bounds = [];
20269
+ let top = 0;
20270
+ for (const s of sections) {
20271
+ const height = Math.max(1, Number(s.screens) || 1) * LAYOUT_CHECK_VIEWPORT.height;
20272
+ bounds.push([top, top + height]);
20273
+ if (filled(s))
20274
+ ink.push([top, top + height]);
20275
+ else {
20276
+ const rowPx = height / Math.max(1, s.rows);
20277
+ (s.layers ?? []).forEach((l, li) => {
20278
+ if (!Array.isArray(l.row) || !Array.isArray(l.col))
20279
+ return;
20280
+ const [a, b] = inkOf(s, li, rowPx);
20281
+ ink.push([top + a, top + b]);
20282
+ });
20283
+ }
20284
+ top += height;
20285
+ }
20286
+ ink.sort((a, b) => a[0] - b[0]);
20287
+ const voids = [];
20288
+ const least = LIM$1.voidScreen * LAYOUT_CHECK_VIEWPORT.height;
20289
+ let end = 0;
20290
+ const push = (from, to) => {
20291
+ if (to - from <= least)
20292
+ return;
20293
+ const within = bounds.map((b, i) => (b[0] < to && from < b[1] ? i : -1)).filter(i => i >= 0);
20294
+ voids.push({ from: Math.round(from), to: Math.round(to), sections: within });
20295
+ };
20296
+ for (const [a, b] of ink) {
20297
+ push(end, a);
20298
+ end = Math.max(end, b);
20299
+ }
20300
+ push(end, top);
20301
+ return voids;
20302
+ }
20303
+ /**
20304
+ * The heights that close every void: the sections a void lies in that flow come down a quarter screen at a time (never
20305
+ * under one screen; their rows keep their share, and each of their words still fits) until no void is left. Null when
20306
+ * that cannot close them — then the model is asked.
20307
+ */
20308
+ function layoutVoidScreens(sections) {
20309
+ const next = sections.map(s => ({ ...s }));
20310
+ const stuck = new Set();
20311
+ for (let tries = 0; tries < SCREENS_TRIES; tries++) {
20312
+ const voids = layoutVoids(next);
20313
+ if (!voids.length) {
20314
+ return next.map((s, i) => ({ section: i, screens: s.screens })).filter(({ section, screens }) => screens !== sections[section].screens);
20315
+ }
20316
+ const free = [...new Set(voids.flatMap(v => v.sections))]
20317
+ .filter(i => !filled(next[i]) && !stuck.has(i) && next[i].screens > 1)
20318
+ .sort((a, b) => next[b].screens - next[a].screens || a - b);
20319
+ if (!free.length)
20320
+ return null;
20321
+ const i = free[0];
20322
+ const lower = { ...next[i], screens: Math.max(1, Math.round((next[i].screens - SCREENS_STEP) * 100) / 100) };
20323
+ if ((lower.layers ?? []).every(l => layoutTextFits(l, lower)))
20324
+ next[i] = lower;
20325
+ else
20326
+ stuck.add(i);
20327
+ }
20328
+ return null;
20329
+ }
20330
+ /** The layers that make an opening's display: a word (set in the display face), or words at xxl or screen size. */
20331
+ function layoutOpeningDisplays(page) {
20332
+ const first = page.sections?.[0];
20333
+ if (!first || first.readyMade || first.carry)
20334
+ return [];
20335
+ return (first.layers ?? []).map((l, li) => ({ l, li }))
20336
+ .filter(({ l }) => isText$1(l) && (l.kind === LayoutLayerKind.Word || l.size === LayoutSize.Screen || l.size === LayoutSize.Xxl))
20337
+ .map(({ li }) => li);
20338
+ }
20339
+ /**
20340
+ * The opening's lead set as its display (a word) where it can be: a heading of at most `xl`'s characters. Its size goes
20341
+ * up to xl where it still fits there. Null: no such lead.
20342
+ */
20343
+ function layoutOpeningDisplayMend(page) {
20344
+ const first = page.sections?.[0];
20345
+ if (!first || first.readyMade || first.carry)
20346
+ return null;
20347
+ const li = (first.layers ?? []).findIndex(l => l.role === LayoutRole.Lead && l.kind === LayoutLayerKind.Heading);
20348
+ if (li < 0)
20349
+ return null;
20350
+ const lead = first.layers[li];
20351
+ if (textOf$3(lead).length > L$2.maxChars.xl)
20352
+ return null;
20353
+ const small = lead.size !== LayoutSize.Xl && lead.size !== LayoutSize.Xxl;
20354
+ return small && layoutTextFits(lead, first, LayoutSize.Xl) ? { layer: li, size: LayoutSize.Xl } : { layer: li };
20355
+ }
20356
+
20357
+ /**
20358
+ * Where a list sits in its section (list-ingredients-plan.md LI7, Doron 2026-11-22: "the page looks very empty"): a list
20359
+ * whose items take less than its section's width — a deck is one card wide, any list can be set in a few columns — leaves
20360
+ * a stretch of the section with nothing on it unless its words stand beside it. The judge reads the grid on the check's
20361
+ * laptop (`LAYOUT_CHECK_VIEWPORT`); the pairing sets the section's words beside the list. Pure.
20362
+ */
20363
+ /** A deck is one card wide (LI4): at most this many px, and this share of its cell (the composer draws exactly this). */
20364
+ const LIST_DECK_MAX_PX = 440;
20365
+ const LIST_DECK_SHARE = 0.8;
20366
+ /** The prompt's line for it (the layout brief reads it — one sentence, said once). */
20367
+ const LIST_WORDS_BESIDE_RULE = 'a list that takes part of its section (a deck is one card wide) has its words beside it — a heading, a line, the link to all of it — or is centred under them; never a list beside an empty half';
20368
+ /** The side of the section a list leaves empty: towards grid line 1 (`start`) or line 13 (`end`). */
20369
+ var LayoutListSide;
20370
+ (function (LayoutListSide) {
20371
+ LayoutListSide["Start"] = "start";
20372
+ LayoutListSide["End"] = "end";
20373
+ })(LayoutListSide || (LayoutListSide = {}));
20374
+ const GRID$1 = 12;
20375
+ const COLUMN_PX$1 = LAYOUT_CHECK_VIEWPORT.width / GRID$1;
20376
+ /** Columns with nothing on them at a list's rows, on one side, before the section reads empty (more than a third)… */
20377
+ const BARE_COLUMNS = 5;
20378
+ /** …unless the other side is as empty (a list centred under its words is a composition, not a gap). */
20379
+ const BARE_SKEW = 2;
20380
+ /** A list this many columns wide or fewer, with no words in its section, is a list on its own in the middle of nothing. */
20381
+ const NARROW_COLUMNS = GRID$1 / 2;
20382
+ /** Paired: the words take the empty side's five columns, one column apart from the list's six. */
20383
+ const PAIR_WORDS = { [LayoutListSide.Start]: [1, 6], [LayoutListSide.End]: [8, 13] };
20384
+ const PAIR_LIST = { [LayoutListSide.Start]: [7, 13], [LayoutListSide.End]: [1, 7] };
20385
+ /** The size a heading the pairing writes (the list's own name) is set at. */
20386
+ const PAIR_HEADING_SIZE = LayoutSize.L;
20387
+ const isList = (l) => l.kind === LayoutLayerKind.Gallery && !!l.gallery?.list && !!l.gallery?.source;
20388
+ /** Words that read: a word, a heading, a line of text, a label, a number, a list of lines. */
20389
+ const reads = (l) => LAYOUT_TEXT_KINDS.has(l.kind);
20390
+ /** The section's words: what reads, and its buttons (the link to all of it). */
20391
+ const isWords = (l) => reads(l) || l.kind === LayoutLayerKind.Button;
20392
+ const placed = (l) => Array.isArray(l.col) && Array.isArray(l.row);
20393
+ const overlaps$1 = (p, q) => p[0] < q[1] && q[0] < p[1];
20394
+ /** The columns a list's items take on the laptop (grid lines, fractional): a deck a card wide in its cell's middle, any
20395
+ * other arrangement its cell. */
20396
+ function layoutListDrawnCols(l) {
20397
+ const [a, b] = l.col;
20398
+ if (l.gallery?.list?.arrange !== LayoutListArrange.Deck)
20399
+ return [a, b];
20400
+ const cols = Math.min((b - a) * LIST_DECK_SHARE, LIST_DECK_MAX_PX / COLUMN_PX$1);
20401
+ const mid = (a + b) / 2;
20402
+ return [mid - cols / 2, mid + cols / 2];
20403
+ }
20404
+ /**
20405
+ * The first list layer of a section that reads empty on the laptop, or null: at the list's rows, one side of the section
20406
+ * has more than a third of its columns with nothing on them and the other side is not as empty, or the list is half the
20407
+ * width or less and nothing in the section reads. A section that is not a grid of its own (ready-made, carried,
20408
+ * sideways) is never judged.
20409
+ */
20410
+ function layoutListBare(s) {
20411
+ if (s.readyMade || s.carry || (s.track ?? 1) > 1 || !Array.isArray(s.layers))
20412
+ return null;
20413
+ const anyReads = s.layers.some(l => reads(l) && !!String(l.text ?? (l.items ?? []).join('')).trim());
20414
+ for (let li = 0; li < s.layers.length; li++) {
20415
+ const l = s.layers[li];
20416
+ if (!isList(l) || !placed(l))
20417
+ continue;
20418
+ const [d0, d1] = layoutListDrawnCols(l);
20419
+ const covered = Array.from({ length: GRID$1 }, (_, k) => {
20420
+ const centre = k + 1.5;
20421
+ if (centre > d0 && centre < d1)
20422
+ return true;
20423
+ return s.layers.some((o, oi) => oi !== li && placed(o) && overlaps$1(o.row, l.row) && centre > o.col[0] && centre < o.col[1]);
20424
+ });
20425
+ const start = covered.findIndex(c => c);
20426
+ if (start < 0)
20427
+ continue;
20428
+ const end = GRID$1 - 1 - [...covered].reverse().findIndex(c => c);
20429
+ const startRun = start;
20430
+ const endRun = GRID$1 - 1 - end;
20431
+ const lopsided = Math.max(startRun, endRun) >= BARE_COLUMNS && Math.abs(startRun - endRun) >= BARE_SKEW;
20432
+ const alone = !anyReads && d1 - d0 <= NARROW_COLUMNS;
20433
+ if (lopsided || alone)
20434
+ return { layer: li, side: startRun >= endRun ? LayoutListSide.Start : LayoutListSide.End, reads: anyReads };
20435
+ }
20436
+ return null;
20437
+ }
20438
+ /**
20439
+ * The pairing (LI7): the list takes six columns on its own side, the section's words — every word, heading, line and
20440
+ * button, in reading order — the other five, stacked in the middle of the rows the list and its words spanned, each as
20441
+ * tall as its words need. A section where nothing reads gets the list's own name as its heading (`heading` — the plan's
20442
+ * name for the list, never a word made up). On a phone the words come first, then the list, then the rest as they were.
20443
+ * Null when it cannot: another layer (a photo, a shape) stands where the words or the list would go, no words and no
20444
+ * name, or more words than rows.
20445
+ */
20446
+ function layoutListPair(s, li, side, heading) {
20447
+ const list = s.layers?.[li];
20448
+ if (!list || !isList(list) || !placed(list))
20449
+ return null;
20450
+ const next = structuredClone(s);
20451
+ const name = String(heading ?? '').trim();
20452
+ const anyReads = next.layers.some(l => reads(l) && !!String(l.text ?? (l.items ?? []).join('')).trim());
20453
+ // What the words spanned before (the list's rows and theirs) is the pairing's height; a heading it writes has no place yet.
20454
+ const before = next.layers.filter((l, i) => i !== li && isWords(l) && placed(l));
20455
+ const r0 = Math.min(list.row[0], ...before.map(l => l.row[0]));
20456
+ const r1 = Math.max(list.row[1], ...before.map(l => l.row[1]));
20457
+ const rows = r1 - r0;
20458
+ const added = anyReads ? -1 : next.layers.length;
20459
+ if (!anyReads) {
20460
+ if (!name)
20461
+ return null;
20462
+ next.layers.push({ kind: LayoutLayerKind.Heading, role: LayoutRole.Support, text: name, size: PAIR_HEADING_SIZE, col: [1, 2], row: [r0, r0 + 1] });
20463
+ }
20464
+ const words = next.layers
20465
+ .map((l, i) => ({ l, i }))
20466
+ .filter(({ l, i }) => i !== li && isWords(l) && placed(l))
20467
+ // The list's name it writes leads; the rest in reading order.
20468
+ .sort((a, b) => Number(b.i === added) - Number(a.i === added) || a.l.row[0] - b.l.row[0] || a.l.col[0] - b.l.col[0] || a.i - b.i);
20469
+ if (words.length > rows)
20470
+ return null;
20471
+ const wordsCol = PAIR_WORDS[side];
20472
+ const listCol = PAIR_LIST[side];
20473
+ const others = next.layers.filter((l, i) => i !== li && !isWords(l) && placed(l));
20474
+ if (others.some(o => overlaps$1(o.row, [r0, r1]) && (overlaps$1(o.col, wordsCol) || overlaps$1(o.col, listCol))))
20475
+ return null;
20476
+ // Each word as tall as its words need (one row at least), the block in the middle of the span.
20477
+ const heights = words.map(() => 1);
20478
+ const fits = (k) => layoutTextFits({ ...words[k].l, col: wordsCol, row: [0, heights[k]] }, next);
20479
+ for (let grow = true; grow && heights.reduce((a, b) => a + b, 0) < rows;) {
20480
+ const k = words.findIndex((_, j) => !fits(j));
20481
+ grow = k >= 0;
20482
+ if (grow)
20483
+ heights[k]++;
20484
+ }
20485
+ let at = r0 + Math.floor((rows - heights.reduce((a, b) => a + b, 0)) / 2);
20486
+ words.forEach((w, k) => {
20487
+ w.l.col = [...wordsCol];
20488
+ w.l.row = [at, at + heights[k]];
20489
+ at += heights[k];
20490
+ });
20491
+ next.layers[li].col = [...listCol];
20492
+ next.layers[li].row = [r0, r1];
20493
+ // A phone reads the words, then the list, then the rest in the order it had.
20494
+ const was = Array.isArray(s.phone) && s.phone.length === s.layers.length ? s.phone : s.layers.map((_, i) => i);
20495
+ const first = [...words.map(w => w.i), li];
20496
+ next.phone = [...first, ...was.filter(i => !first.includes(i)), ...next.layers.map((_, i) => i).filter(i => !first.includes(i) && !was.includes(i))];
20497
+ return next;
20498
+ }
20499
+ /** The box a turned item is measured on (a card a third of the laptop's row). */
20500
+ const TURNED_ITEM = { width: 360, height: 480 };
20501
+ /** A card's own lift under the mouse (the look's card-lift is at most this), added where an item may rise. */
20502
+ const LIFT_ROOM = 8;
20503
+ const deg = (d) => (d * Math.PI) / 180;
20504
+ const up4 = (px) => Math.ceil(px / 4) * 4;
20505
+ /** How far a box's corner passes its own edge, turned by `d` degrees about its middle. */
20506
+ function turnRoom(d) {
20507
+ const t = deg(Math.abs(d));
20508
+ const { width: w, height: h } = TURNED_ITEM;
20509
+ return { block: (w / 2) * Math.sin(t) + (h / 2) * (1 - Math.cos(t)), inline: (h / 2) * Math.sin(t) + (w / 2) * (1 - Math.cos(t)) };
20510
+ }
20511
+ /**
20512
+ * The room a list mix keeps (AW11, R-H-AW11-2) — from the contract's rhythms, never a guess: a gallery wall's items hang
20513
+ * by margins (real room, inside the list), so it keeps only the lift of a picture under the mouse; a tilted list turns
20514
+ * its items up to `tiltMaxDeg`; a hover tilt turns a card's ground by `hoverTiltDeg`. A fan holds its arc in its own
20515
+ * height (the shared CSS), so it needs none here. Pure.
20516
+ */
20517
+ function listOverhang(mix) {
20518
+ let blockStart = 0;
20519
+ let blockEnd = 0;
20520
+ let inline = 0;
20521
+ if (mix.arrange === LayoutListArrange.Hang) {
20522
+ blockStart = LIFT_ROOM;
20523
+ blockEnd = LIFT_ROOM;
20524
+ }
20525
+ if (mix.arrange === LayoutListArrange.Tilted) {
20526
+ const room = turnRoom(LIST_RHYTHMS.tiltMaxDeg);
20527
+ blockStart = Math.max(blockStart, room.block + LIFT_ROOM);
20528
+ blockEnd = Math.max(blockEnd, room.block);
20529
+ inline = Math.max(inline, room.inline);
20530
+ }
20531
+ if ((mix.hover ?? []).includes(LayoutListHover.Tilt)) {
20532
+ const room = turnRoom(LIST_RHYTHMS.hoverTiltDeg);
20533
+ blockStart = Math.max(blockStart, room.block);
20534
+ blockEnd = Math.max(blockEnd, room.block);
20535
+ inline = Math.max(inline, room.inline);
20536
+ }
20537
+ return { blockStart: up4(blockStart), blockEnd: up4(blockEnd), inline: up4(inline) };
20538
+ }
20539
+
19787
20540
  /**
19788
20541
  * THE BODY (award-ingredients-plan §3.4, AW6; board award-body): how a site's sections meet (the seam), how their grounds
19789
20542
  * follow one another (the rhythm), the texture laid on a ground (AW7) and the extra kinds of section a site may hold. Every
@@ -19843,12 +20596,12 @@ var BodySectionWord;
19843
20596
  })(BodySectionWord || (BodySectionWord = {}));
19844
20597
  class BodyMixError extends Error {
19845
20598
  }
19846
- const HEBREW$4 = 'he';
20599
+ const HEBREW$3 = 'he';
19847
20600
  const INGREDIENTS$3 = B.ingredients;
19848
- const MANY$2 = new Set(B.many);
20601
+ const MANY$3 = new Set(B.many);
19849
20602
  const WAITS$3 = B.waits;
19850
20603
  const ORDER$1 = Object.values(BodyIngredient);
19851
- const isMany$1 = (k) => MANY$2.has(k);
20604
+ const isMany$1 = (k) => MANY$3.has(k);
19852
20605
  const listOf$2 = (v) => (v === undefined ? [] : Array.isArray(v) ? [...v] : [v]);
19853
20606
  const ordered$1 = (k, words) => bodyWords(k).filter(w => words.includes(w));
19854
20607
  /** The words an ingredient may take, in the table's order. */
@@ -19858,7 +20611,7 @@ function bodyWords(ingredient) {
19858
20611
  /** What a word means — in Hebrew when the builder speaks it. */
19859
20612
  function bodyMeaning(ingredient, word, locale) {
19860
20613
  const key = `${ingredient}.${word}`;
19861
- return (locale === HEBREW$4 ? B.meaningsHe?.[key] : undefined) ?? B.meanings[key] ?? word;
20614
+ return (locale === HEBREW$3 ? B.meaningsHe?.[key] : undefined) ?? B.meanings[key] ?? word;
19862
20615
  }
19863
20616
  /** Whether the product draws a word today (a waiting word is listed with its phase, drawn as its stand-in). */
19864
20617
  function bodyWordDrawn(ingredient, word) {
@@ -20103,10 +20856,10 @@ function groundToneOf(luminance) {
20103
20856
  return luminance > TONE_SPLIT ? GroundTone.Light : GroundTone.Dark;
20104
20857
  }
20105
20858
  const PICTURED = new Set([LayoutLayerKind.Photo, LayoutLayerKind.Gallery, LayoutLayerKind.List, LayoutLayerKind.Marquee]);
20106
- const span$2 = (l) => (Array.isArray(l.col) ? l.col[1] - l.col[0] : 0);
20859
+ const span$1 = (l) => (Array.isArray(l.col) ? l.col[1] - l.col[0] : 0);
20107
20860
  const pictured = (s) => String(s.ground ?? '').startsWith('photo:') || (s.layers ?? []).some(l => PICTURED.has(l.kind));
20108
20861
  /** A quiet section: words only, centred, every layer within `cols` of the twelve. */
20109
- const quiet = (s, cols) => !pictured(s) && !!(s.layers ?? []).length && (s.layers ?? []).every(l => l.kind === LayoutLayerKind.Shape || (span$2(l) <= cols && (l.align ?? 'start') === 'center'));
20862
+ const quiet = (s, cols) => !pictured(s) && !!(s.layers ?? []).length && (s.layers ?? []).every(l => l.kind === LayoutLayerKind.Shape || (span$1(l) <= cols && (l.align ?? 'start') === 'center'));
20110
20863
  const startsChapter = (s, at) => (at.includes('inhale') && s.kind === LayoutSectionKind.Inhale) || (at.includes('signature') && !!s.signature);
20111
20864
  /**
20112
20865
  * A composed page's grounds judged against the body's rhythm (`BODY.rhythms`): each issue a `Structure` issue on the page,
@@ -20166,255 +20919,6 @@ function rhythmIssues(sections, rhythm, ctx) {
20166
20919
  return issues;
20167
20920
  }
20168
20921
 
20169
- /**
20170
- * Space on a composed page (the M8 demo, the bar's live page 2026-11-10): what the static check can read off the grid
20171
- * about stillness and emptiness — a held section where nothing moves, a shape that is there for nothing, a stretch of the
20172
- * laptop's screen with nothing on it, an opening with no display. Estimates on the check's laptop (1440 × 900), the
20173
- * render check measures the real page. Pure.
20174
- */
20175
- const L$2 = SPEC_SITE_LAYOUT;
20176
- const LIM$1 = L$2.limits;
20177
- /**
20178
- * The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
20179
- * as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
20180
- * are left out, so a box reads about a fifth wider than it renders — the render check measures the real one.
20181
- */
20182
- const LAYOUT_CHECK_VIEWPORT = { width: 1440, height: 900 };
20183
- const GRID$1 = 12;
20184
- const COLUMN_PX$1 = LAYOUT_CHECK_VIEWPORT.width / GRID$1;
20185
- /** A line of words stands its size × this tall. */
20186
- const LAYOUT_LINE_HEIGHT = 1.2;
20187
- const HEBREW$3 = /[֐-׿]/;
20188
- /** A button's ink, as tall as its padding and one line. */
20189
- const BUTTON_PX = 56;
20190
- /** How far the screens mend lowers a section at a time, and how often it tries. */
20191
- const SCREENS_STEP = 0.25;
20192
- const SCREENS_TRIES = 40;
20193
- /** The kinds the composer stretches over their whole cell (`place`); every other kind sits in its cell's middle. */
20194
- const FULL_CELL = new Set([LayoutLayerKind.Photo, LayoutLayerKind.Shape, LayoutLayerKind.Gallery, LayoutLayerKind.Form, LayoutLayerKind.Marquee]);
20195
- /** The kinds a held section's line may be lit by the scroll (`kinetic`). */
20196
- const LAYOUT_KINETIC_KINDS = new Set([LayoutLayerKind.Word, LayoutLayerKind.Heading, LayoutLayerKind.Text]);
20197
- const span$1 = (r) => (r ? r[1] - r[0] : 0);
20198
- const isText$1 = (l) => LAYOUT_TEXT_KINDS.has(l.kind);
20199
- const isPictured$1 = (l) => l.kind === LayoutLayerKind.Photo || l.kind === LayoutLayerKind.Gallery;
20200
- const wordsOf$4 = (t) => String(t ?? '').trim().split(/\s+/).filter(Boolean).length;
20201
- const meets = (a, b) => {
20202
- const ov = (p, q) => p[0] < q[1] && q[0] < p[1];
20203
- return ov(a.col ?? [0, 0], b.col ?? [0, 0]) && ov(a.row ?? [0, 0], b.row ?? [0, 0]);
20204
- };
20205
- const textOf$3 = (l) => String(l.text ?? (l.items ?? []).join(' '));
20206
- const advanceOf = (text) => (HEBREW$3.test(text) ? LIM$1.advance.hebrew : LIM$1.advance.latin);
20207
- /** A grid box's size in px on the laptop. */
20208
- function layoutBoxPx(col, row, s) {
20209
- const height = (s.pin ? 1 : s.screens) * LAYOUT_CHECK_VIEWPORT.height;
20210
- return { w: span$1(col) * COLUMN_PX$1, h: (span$1(row) * height) / Math.max(1, s.rows) };
20211
- }
20212
- /** Whether a sized text layer's words fit its box at its size (the check's estimate; a `screen` word is sized to fit). */
20213
- function layoutTextFits(l, s, size = l.size) {
20214
- const text = textOf$3(l);
20215
- if (!isText$1(l) || !size || size === LayoutSize.Screen || !text)
20216
- return true;
20217
- const px = L$2.sizePx[size];
20218
- const box = layoutBoxPx(l.col, l.row, s);
20219
- const lines = Math.floor(box.h / (px * LAYOUT_LINE_HEIGHT));
20220
- const items = l.kind === LayoutLayerKind.List ? Math.max(1, l.items?.length ?? 1) : 1;
20221
- return lines >= items && (text.length * px * advanceOf(text)) / Math.max(1, lines) <= box.w * LIM$1.textFitSlack;
20222
- }
20223
- /** Words or a button drawn over a layer (above it, meeting it). */
20224
- function wordsOver(s, li) {
20225
- const l = s.layers[li];
20226
- return s.layers.some((o, oi) => oi !== li && (isText$1(o) || o.kind === LayoutLayerKind.Button) && (o.z ?? 0) > (l.z ?? 0) && meets(o, l));
20227
- }
20228
- /**
20229
- * A rule: a shape one row high with no words on it — the looks' hairline ("a shape one row high"). The composer draws it
20230
- * as a line, never as the row's full height (the bar's grey boxes: a 150–180 px block where a hairline was meant).
20231
- */
20232
- function isLayoutRule(s, li) {
20233
- const l = s.layers?.[li];
20234
- return !!l && l.kind === LayoutLayerKind.Shape && span$1(l.row) === 1 && !wordsOver(s, li);
20235
- }
20236
- /** Where a rule's line sits in its row: against the words it belongs to (above it → its top, below it → its bottom). */
20237
- function layoutRuleEdge(s, li) {
20238
- const l = s.layers[li];
20239
- const beside = (o) => isText$1(o) && (o.col?.[0] ?? 0) < (l.col?.[1] ?? 0) && (l.col?.[0] ?? 0) < (o.col?.[1] ?? 0);
20240
- if (s.layers.some((o, oi) => oi !== li && beside(o) && o.row?.[1] === l.row[0]))
20241
- return 'start';
20242
- if (s.layers.some((o, oi) => oi !== li && beside(o) && o.row?.[0] === l.row[1]))
20243
- return 'end';
20244
- return 'center';
20245
- }
20246
- /**
20247
- * A shape is there for something: a rule, a band of colour (wide, or off an edge), a backdrop to words, a frame meeting
20248
- * a picture, or it moves (tracks, a depth). Anything else is an empty box on the page.
20249
- */
20250
- function layoutShapeHasPurpose(s, li) {
20251
- const l = s.layers?.[li];
20252
- if (!l || l.kind !== LayoutLayerKind.Shape)
20253
- return true;
20254
- if (isLayoutRule(s, li) || wordsOver(s, li))
20255
- return true;
20256
- if (span$1(l.col) >= LIM$1.bandColumns || (l.bleed && l.bleed !== 'none'))
20257
- return true;
20258
- if (s.layers.some((o, oi) => oi !== li && isPictured$1(o) && meets(o, l)))
20259
- return true;
20260
- return !!l.motion?.length || (!!l.depth && l.depth !== LayoutDepth.Mid);
20261
- }
20262
- /** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns. */
20263
- function layoutHeldStill(s) {
20264
- if (!s.pin || (s.track ?? 1) > 1 || s.readyMade || s.carry)
20265
- return false;
20266
- return !(s.layers ?? []).some(l => !!l.motion?.length || !!l.kinetic || (l.kind === LayoutLayerKind.Gallery && !!l.gallery?.scroll));
20267
- }
20268
- /**
20269
- * The line a still hold can light word by word: a word, heading or text of 2 to the kinetic words, never over a picture —
20270
- * the lead first, then by size. -1: none.
20271
- */
20272
- function layoutStillLine(s) {
20273
- const sizes = Object.keys(L$2.sizePx);
20274
- const found = (s.layers ?? [])
20275
- .map((l, li) => ({ l, li }))
20276
- .filter(({ l }) => LAYOUT_KINETIC_KINDS.has(l.kind) && wordsOf$4(l.text) >= 2 && wordsOf$4(l.text) <= LIM$1.kineticWords)
20277
- .filter(({ l }) => !(s.layers ?? []).some(o => o !== l && isPictured$1(o) && meets(o, l)))
20278
- .sort((a, b) => Number(b.l.role === LayoutRole.Lead) - Number(a.l.role === LayoutRole.Lead) || sizes.indexOf(b.l.size ?? 'm') - sizes.indexOf(a.l.size ?? 'm') || a.li - b.li);
20279
- return found[0]?.li ?? -1;
20280
- }
20281
- /** A held section's largest photo that may move (not decoration — decoration only fades), for a still hold that cannot
20282
- * let go of the page: -1, none. */
20283
- function layoutDriftPhoto(s) {
20284
- const area = (l) => span$1(l.col) * span$1(l.row);
20285
- const found = (s.layers ?? []).map((l, li) => ({ l, li }))
20286
- .filter(({ l }) => l.kind === LayoutLayerKind.Photo && l.role !== LayoutRole.Decoration && Array.isArray(l.col) && Array.isArray(l.row))
20287
- .sort((a, b) => area(b.l) - area(a.l) || a.li - b.li);
20288
- return found[0]?.li ?? -1;
20289
- }
20290
- /** The drift a still hold's photo takes: a slow scale over the whole hold — transform only, inside the track's bounds. */
20291
- const LAYOUT_DRIFT = { prop: LayoutTrackProp.Scale, from: 1, to: 1.08, at: [0, 1] };
20292
- /** A section whose screen is spoken for: what is on it never leaves it (held, sideways, a photo ground, ready-made), or
20293
- * its space is the point (an inhale — the page's one breath, a word in the quiet). */
20294
- const filled = (s) => !!s.pin || (s.track ?? 1) > 1 || !!s.readyMade || !!s.carry || String(s.ground ?? '').startsWith('photo:')
20295
- || s.kind === LayoutSectionKind.Inhale;
20296
- /** Where a layer's ink is in its section (px from the section's top): its cell for what stretches, its words' lines in the
20297
- * cell's middle for the rest, the line of a rule. */
20298
- function inkOf(s, li, rowPx) {
20299
- const l = s.layers[li];
20300
- const t = (l.row[0] - 1) * rowPx;
20301
- const b = (l.row[1] - 1) * rowPx;
20302
- const mid = (t + b) / 2;
20303
- if (l.kind === LayoutLayerKind.Shape && isLayoutRule(s, li)) {
20304
- const edge = layoutRuleEdge(s, li);
20305
- const at = edge === 'start' ? t : edge === 'end' ? b : mid;
20306
- return [at, at];
20307
- }
20308
- if (FULL_CELL.has(l.kind) || l.size === LayoutSize.Screen)
20309
- return [t, b];
20310
- let h = BUTTON_PX;
20311
- if (isText$1(l)) {
20312
- const text = textOf$3(l);
20313
- const px = L$2.sizePx[(l.size ?? LayoutSize.M)] ?? L$2.sizePx.m;
20314
- const w = Math.max(1, span$1(l.col) * COLUMN_PX$1);
20315
- const items = l.kind === LayoutLayerKind.List ? Math.max(1, l.items?.length ?? 1) : 1;
20316
- const lines = Math.max(items, Math.ceil((text.length * px * advanceOf(text)) / (w * LIM$1.textFitSlack)));
20317
- h = lines * px * LAYOUT_LINE_HEIGHT;
20318
- }
20319
- h = Math.min(b - t, h);
20320
- return [mid - h / 2, mid + h / 2];
20321
- }
20322
- /**
20323
- * Every stretch more than `voidScreen` of a screen tall with nothing on it, top to bottom. A section that holds (or is a
20324
- * photo, or ready-made) fills its height; one that flows has its layers' ink (`inkOf`). Judged across the sections, as a
20325
- * visitor scrolls them; the end of the page counts (the footer is not the page's).
20326
- */
20327
- function layoutVoids(sections) {
20328
- const ink = [];
20329
- const bounds = [];
20330
- let top = 0;
20331
- for (const s of sections) {
20332
- const height = Math.max(1, Number(s.screens) || 1) * LAYOUT_CHECK_VIEWPORT.height;
20333
- bounds.push([top, top + height]);
20334
- if (filled(s))
20335
- ink.push([top, top + height]);
20336
- else {
20337
- const rowPx = height / Math.max(1, s.rows);
20338
- (s.layers ?? []).forEach((l, li) => {
20339
- if (!Array.isArray(l.row) || !Array.isArray(l.col))
20340
- return;
20341
- const [a, b] = inkOf(s, li, rowPx);
20342
- ink.push([top + a, top + b]);
20343
- });
20344
- }
20345
- top += height;
20346
- }
20347
- ink.sort((a, b) => a[0] - b[0]);
20348
- const voids = [];
20349
- const least = LIM$1.voidScreen * LAYOUT_CHECK_VIEWPORT.height;
20350
- let end = 0;
20351
- const push = (from, to) => {
20352
- if (to - from <= least)
20353
- return;
20354
- const within = bounds.map((b, i) => (b[0] < to && from < b[1] ? i : -1)).filter(i => i >= 0);
20355
- voids.push({ from: Math.round(from), to: Math.round(to), sections: within });
20356
- };
20357
- for (const [a, b] of ink) {
20358
- push(end, a);
20359
- end = Math.max(end, b);
20360
- }
20361
- push(end, top);
20362
- return voids;
20363
- }
20364
- /**
20365
- * The heights that close every void: the sections a void lies in that flow come down a quarter screen at a time (never
20366
- * under one screen; their rows keep their share, and each of their words still fits) until no void is left. Null when
20367
- * that cannot close them — then the model is asked.
20368
- */
20369
- function layoutVoidScreens(sections) {
20370
- const next = sections.map(s => ({ ...s }));
20371
- const stuck = new Set();
20372
- for (let tries = 0; tries < SCREENS_TRIES; tries++) {
20373
- const voids = layoutVoids(next);
20374
- if (!voids.length) {
20375
- return next.map((s, i) => ({ section: i, screens: s.screens })).filter(({ section, screens }) => screens !== sections[section].screens);
20376
- }
20377
- const free = [...new Set(voids.flatMap(v => v.sections))]
20378
- .filter(i => !filled(next[i]) && !stuck.has(i) && next[i].screens > 1)
20379
- .sort((a, b) => next[b].screens - next[a].screens || a - b);
20380
- if (!free.length)
20381
- return null;
20382
- const i = free[0];
20383
- const lower = { ...next[i], screens: Math.max(1, Math.round((next[i].screens - SCREENS_STEP) * 100) / 100) };
20384
- if ((lower.layers ?? []).every(l => layoutTextFits(l, lower)))
20385
- next[i] = lower;
20386
- else
20387
- stuck.add(i);
20388
- }
20389
- return null;
20390
- }
20391
- /** The layers that make an opening's display: a word (set in the display face), or words at xxl or screen size. */
20392
- function layoutOpeningDisplays(page) {
20393
- const first = page.sections?.[0];
20394
- if (!first || first.readyMade || first.carry)
20395
- return [];
20396
- return (first.layers ?? []).map((l, li) => ({ l, li }))
20397
- .filter(({ l }) => isText$1(l) && (l.kind === LayoutLayerKind.Word || l.size === LayoutSize.Screen || l.size === LayoutSize.Xxl))
20398
- .map(({ li }) => li);
20399
- }
20400
- /**
20401
- * The opening's lead set as its display (a word) where it can be: a heading of at most `xl`'s characters. Its size goes
20402
- * up to xl where it still fits there. Null: no such lead.
20403
- */
20404
- function layoutOpeningDisplayMend(page) {
20405
- const first = page.sections?.[0];
20406
- if (!first || first.readyMade || first.carry)
20407
- return null;
20408
- const li = (first.layers ?? []).findIndex(l => l.role === LayoutRole.Lead && l.kind === LayoutLayerKind.Heading);
20409
- if (li < 0)
20410
- return null;
20411
- const lead = first.layers[li];
20412
- if (textOf$3(lead).length > L$2.maxChars.xl)
20413
- return null;
20414
- const small = lead.size !== LayoutSize.Xl && lead.size !== LayoutSize.Xxl;
20415
- return small && layoutTextFits(lead, first, LayoutSize.Xl) ? { layer: li, size: LayoutSize.Xl } : { layer: li };
20416
- }
20417
-
20418
20922
  /**
20419
20923
  * THE STATIC LAYOUT GATE (premium components M8 gate 2, M8-G2-D6; the prototype's `check` + `check21`, `code/cl2.mjs` and
20420
20924
  * `cl21.mjs`): one composed page against every rule the language keeps — structure, the look's composition notes, Emil's
@@ -20968,7 +21472,7 @@ function examineLayout(page, ctx, carried, given) {
20968
21472
  if (g.list) {
20969
21473
  if (g.source === undefined)
20970
21474
  add(LayoutIssueCode.Content, `${lp}.gallery.source`, 'a list section names the list it shows');
20971
- issues.push(...checkList(g.list, ctx.listShapes?.find(x => x.alias === g.source) ?? null, lp, ctx.listNever));
21475
+ issues.push(...checkList(g.list, ctx.listShapes?.find(x => x.alias === g.source) ?? null, lp, ctx.listNever, { tier: ctx.tier, firstScreen: i === 0 }));
20972
21476
  }
20973
21477
  if (!g.scroll)
20974
21478
  swappable++;
@@ -21139,6 +21643,17 @@ function examineLayout(page, ctx, carried, given) {
21139
21643
  for (const v of voids) {
21140
21644
  add(LayoutIssueCode.Look, `sections[${v.sections[0]}]`, `${Math.round(v.to - v.from)}px of the laptop's screen with nothing on it (${v.sections.map(i => sections[i].id).join(' → ')}) — a section that flows fills its screens: fewer screens, or layers where the eye would land`, voidScreens ? { kind: LayoutMendKind.Screens, sections: voidScreens } : undefined);
21141
21645
  }
21646
+ // LI7: a list section never reads empty — its words beside the list, or the list centred under them.
21647
+ sections.forEach((s, i) => {
21648
+ const bare = layoutListBare(s);
21649
+ if (!bare)
21650
+ return;
21651
+ const source = s.layers[bare.layer].gallery?.source;
21652
+ const heading = ctx.listShapes?.find(x => x.alias === source)?.label;
21653
+ const paired = layoutListPair(s, bare.layer, bare.side, heading);
21654
+ add(LayoutIssueCode.Look, `sections[${i}].layers[${bare.layer}].col`, bare.reads ? `the list leaves the ${bare.side === LayoutListSide.Start ? 'first' : 'last'} columns of its section empty — ${LIST_WORDS_BESIDE_RULE}`
21655
+ : `the list stands alone, nothing in its section reads — ${LIST_WORDS_BESIDE_RULE}`, paired ? { kind: LayoutMendKind.ListWords, section: i, layer: bare.layer, side: bare.side, ...(heading && !bare.reads ? { heading } : {}) } : undefined);
21656
+ });
21142
21657
  const opening = layoutOpeningDisplays(page);
21143
21658
  if ((daring || ctx.design?.animate === SCENE_LEVEL) && sections[0] && !sections[0].readyMade) {
21144
21659
  if (!opening.length) {
@@ -21555,6 +22070,14 @@ function mendLayout(page, issues) {
21555
22070
  layer.gallery.list = structuredClone(mend.mix);
21556
22071
  mended.push(issue);
21557
22072
  }
22073
+ else if (mend?.kind === LayoutMendKind.ListWords) {
22074
+ const section = next.sections?.[mend.section];
22075
+ const paired = section ? layoutListPair(section, mend.layer, mend.side, mend.heading) : null;
22076
+ if (!paired)
22077
+ continue;
22078
+ next.sections[mend.section] = paired;
22079
+ mended.push(issue);
22080
+ }
21558
22081
  else if (mend?.kind === LayoutMendKind.Words) {
21559
22082
  const layer = layerAt(mend.layer);
21560
22083
  if (!layer)
@@ -21769,7 +22292,7 @@ class FooterMixError extends Error {
21769
22292
  }
21770
22293
  const INGREDIENTS$2 = F.ingredients;
21771
22294
  const MEANINGS$1 = F.meanings;
21772
- const MANY$1 = F.many;
22295
+ const MANY$2 = F.many;
21773
22296
  const WAITS$2 = F.waits;
21774
22297
  /** The footer pattern a plan names when it names none the table knows (the Studio footer). */
21775
22298
  const DEFAULT_FOOTER_PATTERN = 'footer.three-column';
@@ -21801,12 +22324,12 @@ function footerMix(partial = {}) {
21801
22324
  if (!INGREDIENTS$2[k])
21802
22325
  throw new FooterMixError(`no footer ingredient "${k}"`);
21803
22326
  const words = typeof v === 'string' ? [v] : v;
21804
- if (MANY$1.includes(k) !== (typeof v !== 'string'))
21805
- throw new FooterMixError(`a footer's ${k} is ${MANY$1.includes(k) ? 'a list of words' : 'one word'}`);
22327
+ if (MANY$2.includes(k) !== (typeof v !== 'string'))
22328
+ throw new FooterMixError(`a footer's ${k} is ${MANY$2.includes(k) ? 'a list of words' : 'one word'}`);
21806
22329
  for (const w of words)
21807
22330
  if (!INGREDIENTS$2[k].includes(w))
21808
22331
  throw new FooterMixError(`a footer's ${k} cannot be "${w}" (${footerWords(k).join(' · ')})`);
21809
- mix[k] = MANY$1.includes(k) ? inOrder(k, words) : words[0];
22332
+ mix[k] = MANY$2.includes(k) ? inOrder(k, words) : words[0];
21810
22333
  }
21811
22334
  return mix;
21812
22335
  }
@@ -21825,7 +22348,7 @@ function footerPatternIdOf(mix) {
21825
22348
  }
21826
22349
  /** A mix on the wire: ONE list of `<ingredient>:<word>` words (the list wire's encoding), `holds` once per block. */
21827
22350
  function footerMixWords(mix) {
21828
- return Object.values(FooterIngredient).flatMap(k => (MANY$1.includes(k) ? mix[k] : [mix[k]]).map(w => `${k}:${w}`));
22351
+ return Object.values(FooterIngredient).flatMap(k => (MANY$2.includes(k) ? mix[k] : [mix[k]]).map(w => `${k}:${w}`));
21829
22352
  }
21830
22353
  /** Every `<ingredient>:<word>` the wire may carry: the drawn words only. */
21831
22354
  function footerWireWords() {
@@ -21857,7 +22380,7 @@ function footerMixFromWords(words) {
21857
22380
  const [k, w] = String(pair).split(':');
21858
22381
  if (!INGREDIENTS$2[k] || !w)
21859
22382
  throw new FooterMixError(`"${pair}" is no footer word (<ingredient>:<word>)`);
21860
- if (MANY$1.includes(k))
22383
+ if (MANY$2.includes(k))
21861
22384
  (partial[k] ??= []).push(w);
21862
22385
  else if (partial[k] !== undefined && partial[k] !== w)
21863
22386
  throw new FooterMixError(`a footer has one ${k} ("${partial[k]}" and "${w}")`);
@@ -23394,10 +23917,10 @@ var OpeningRole;
23394
23917
  const OPENING_MIX_PROP = 'openingMix';
23395
23918
  const HEBREW$1 = 'he';
23396
23919
  const INGREDIENTS = O.ingredients;
23397
- const MANY = new Set(O.many);
23920
+ const MANY$1 = new Set(O.many);
23398
23921
  const WAITS = O.waits;
23399
23922
  const ORDER = Object.values(OpeningIngredient);
23400
- const isMany = (k) => MANY.has(k);
23923
+ const isMany = (k) => MANY$1.has(k);
23401
23924
  /** The words an ingredient may take, in the table's order. */
23402
23925
  function openingWords$1(ingredient) {
23403
23926
  return INGREDIENTS[ingredient] ?? [];
@@ -24175,7 +24698,8 @@ function validateContentTypes(c, list) {
24175
24698
  c.unique(names, j => `${path}.fields[${j}].name`, 'field');
24176
24699
  const fieldSet = new Set(names.filter((n) => !!n));
24177
24700
  const fieldTypes = new Map(fields.filter(isPlainObject).map(f => [f['name'], f['type']]));
24178
- const roles = validateRoles(c, raw['roles'], `${path}.roles`, name, fieldSet, fieldTypes);
24701
+ const fieldControls = new Map(fields.filter(isPlainObject).map(f => [f['name'], f['controller']]));
24702
+ const roles = validateRoles(c, raw['roles'], `${path}.roles`, name, fieldSet, fieldTypes, fieldControls);
24179
24703
  const seed = raw['seed'];
24180
24704
  if (seed !== undefined) {
24181
24705
  if (!isPlainObject(seed))
@@ -24215,8 +24739,9 @@ function validateContentTypes(c, list) {
24215
24739
  return types;
24216
24740
  }
24217
24741
  const describeField = (f) => ({ name: String(f['name']), type: typeof f['type'] === 'string' ? f['type'] : undefined, controller: typeof f['controller'] === 'string' ? f['controller'] : undefined });
24218
- /** A content type's roles (L0-3): known roles only, each played by a field of the type; `title` always; `gallery` a list. */
24219
- function validateRoles(c, roles, path, typeName, fields, fieldTypes) {
24742
+ /** A content type's roles (L0-3): known roles only, each played by a field of the type; `title` always; `gallery` a list;
24743
+ * `colour` (AW11-D10) a colour-picker field — any other field would paint a block from words. */
24744
+ function validateRoles(c, roles, path, typeName, fields, fieldTypes, fieldControls) {
24220
24745
  if (!isPlainObject(roles)) {
24221
24746
  c.add(SitePlanIssueCode.Shape, path, 'must be an object (which field plays each role)');
24222
24747
  return {};
@@ -24235,6 +24760,10 @@ function validateRoles(c, roles, path, typeName, fields, fieldTypes) {
24235
24760
  c.add(SitePlanIssueCode.UnknownRole, `${path}.${role}`, `"${field}" is not a list field — a gallery is a list of pictures`);
24236
24761
  continue;
24237
24762
  }
24763
+ if (role === ContentRole.Colour && fieldControls.get(field) !== ContentFieldControl.Colour) {
24764
+ c.add(SitePlanIssueCode.UnknownRole, `${path}.${role}`, `"${field}" is not a colour field — a colour block's ground is a picked colour`);
24765
+ continue;
24766
+ }
24238
24767
  out[role] = field;
24239
24768
  }
24240
24769
  for (const role of REQUIRED_CONTENT_ROLES)
@@ -25116,6 +25645,471 @@ function legalFormLine(lang, withTerms) {
25116
25645
  return parts;
25117
25646
  }
25118
25647
 
25648
+ /**
25649
+ * The LAYOUT WIRE (premium M8 gate 2, M8-G2-D2): the strict format a model writes ONE composed page in. Every key is
25650
+ * required — "none" is `''`, `0`, `[]` or `'none'` — so the request stays at 37 properties, no optional key and no
25651
+ * union (`strictSchemaComplexity`, held by iox-cms strict-schemas.spec). `expandLayoutWire` turns it into the layout
25652
+ * language (`LayoutSection[]`, what `checkLayout` judges and `composeLayout` stamps); `layoutToWire` writes a layout back
25653
+ * (the three proof sites, a repair's starting point). What the wire leaves out is derived, never asked: a layer's beat
25654
+ * (the order it is written), the look, the pace and ease, the nav, the site's name and language.
25655
+ */
25656
+ const V = SPEC_SITE_LAYOUT.vocab;
25657
+ const GALLERY_EFFECTS = V.galleryEffects;
25658
+ const FORM_PRESETS = V.formPresets;
25659
+ const BUTTON_VARIANTS = V.buttonVariants;
25660
+ const NONE$1 = 'none';
25661
+ const CLIP = 'clipReveal';
25662
+ const CLIP_SIDE = `${CLIP}-`;
25663
+ /** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
25664
+ const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
25665
+ const CHIP_SLOTS = Array.from(new Set(Object.values(V.formChips).flat()));
25666
+ const SLOT_NAMES = [...V.formSlots, ...CHIP_SLOTS];
25667
+ const ENTER_ON_WIRE = V.enters.flatMap((e) => (e === CLIP ? V.sides.map((s) => `${CLIP_SIDE}${s}`) : [e]));
25668
+ const VARIANT_ON_WIRE = [NONE$1, ...V.buttonVariants, ...V.galleryEffects, ...V.formPresets];
25669
+ /**
25670
+ * List ingredients (list-ingredients-plan.md §2, LI1): a list section's mix travels as ONE list of `<ingredient>:<word>`
25671
+ * words (`arrange:strips`, `hover:dim`) and its parts as `<list>.<role>` (`stories.quote`) — two properties, so the
25672
+ * request stays inside the 40 the budget allows, and the parts enum is generated from the plan's own lists: a model
25673
+ * cannot name a part its list does not have (R-H2).
25674
+ */
25675
+ var LayoutMixIngredient;
25676
+ (function (LayoutMixIngredient) {
25677
+ LayoutMixIngredient["Item"] = "item";
25678
+ LayoutMixIngredient["Arrange"] = "arrange";
25679
+ LayoutMixIngredient["Who"] = "who";
25680
+ LayoutMixIngredient["How"] = "how";
25681
+ LayoutMixIngredient["Move"] = "move";
25682
+ LayoutMixIngredient["Hover"] = "hover";
25683
+ LayoutMixIngredient["Arrive"] = "arrive";
25684
+ LayoutMixIngredient["Phone"] = "phone";
25685
+ })(LayoutMixIngredient || (LayoutMixIngredient = {}));
25686
+ const MIX_SEPARATOR = ':';
25687
+ const BASIC = 'basic';
25688
+ const AWARD = 'award';
25689
+ const PART_SEPARATOR = '.';
25690
+ /** Every word a stored mix may hold, ingredient by ingredient (a waiting word too: a stored answer still reads). */
25691
+ const LAYOUT_MIX_WORDS = LIST_INGREDIENTS.flatMap(k => listIngredientWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
25692
+ /** The words the wire OFFERS a site below the award tier — the built ones only (ingredients.md §3.3: a waiting word would
25693
+ * put its stand-in on every site that asked for it), less the award tier's (AW-D23, AW11). */
25694
+ const LAYOUT_MIX_OFFERED = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).filter(w => listWordOffered(k, w, BASIC)).map(w => `${k}${MIX_SEPARATOR}${w}`));
25695
+ /** AW11: every built word, the award tier's included — what the wire offers an award site before the lists are read. */
25696
+ const LAYOUT_MIX_OFFERED_AWARD = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
25697
+ /** AW10: the entrance and the switch a look that never scrubs is not offered. */
25698
+ const LETTERS = 'letters';
25699
+ const SCRUB_FLAG = 'scrub';
25700
+ /** The entrances the wire offers under the look's scrub (AW10 H3). */
25701
+ function layoutEntersOffered(scrub) {
25702
+ return ENTER_ON_WIRE.filter(e => e !== LETTERS || scrubOffered(scrub));
25703
+ }
25704
+ /** The switches the wire offers under the look's scrub (AW10 H3). */
25705
+ function layoutFlagsOffered(scrub) {
25706
+ return V.flags.filter(f => f !== SCRUB_FLAG || scrubOffered(scrub));
25707
+ }
25708
+ const scrubOffered = (scrub) => !!scrub && scrub !== ScrubId.Never && isScrubId(scrub);
25709
+ /** A handle the wire places as a whole SECTION (RD-D20): a bound part, a block or a kept section. */
25710
+ const SECTION_HANDLE = /^(?:bind|block|keep):/;
25711
+ /** Is `handle` one a section places whole (`bind:`/`block:`/`keep:`), never a layer's words or photo? */
25712
+ function isSectionCarryHandle(handle) {
25713
+ return SECTION_HANDLE.test(handle);
25714
+ }
25715
+ /**
25716
+ * The mix words offered to a business whose lists never do `never` (L-D12): the built words less the forbidden ones —
25717
+ * and since AW11, the award tier's only to an award site, and a word NO list of the plan can carry (a second picture, a
25718
+ * picture at all) never (R-H-AW11-7: the one table, `listWordRefusal`; `checkList` judges each list).
25719
+ */
25720
+ function layoutMixOffered(never, options = {}) {
25721
+ const banned = new Set([...(never?.arranges ?? []).map(w => `arrange${MIX_SEPARATOR}${w}`), ...(never?.moves ?? []).map(w => `move${MIX_SEPARATOR}${w}`)]);
25722
+ const offered = options.tier === AWARD ? LAYOUT_MIX_OFFERED_AWARD : LAYOUT_MIX_OFFERED;
25723
+ const lists = options.lists;
25724
+ return offered.filter(w => {
25725
+ if (banned.has(w))
25726
+ return false;
25727
+ if (!lists?.length)
25728
+ return true;
25729
+ const [k, word] = w.split(MIX_SEPARATOR);
25730
+ return lists.some(l => listWordRefusal(k, word, l) === null);
25731
+ });
25732
+ }
25733
+ const mixHint = (offered) => LIST_INGREDIENTS.map(k => {
25734
+ const words = offered.filter(w => w.startsWith(`${k}${MIX_SEPARATOR}`)).map(w => w.slice(k.length + MIX_SEPARATOR.length));
25735
+ return `${k}:${words.join('|')}${LIST_TABLE.many.includes(k) ? ' (any)' : ''}`;
25736
+ }).join(' · ');
25737
+ /** `<list>.<role>` for every role of every list — what a list section's `parts` may name. */
25738
+ function layoutWirePartWords(lists) {
25739
+ return lists.flatMap(l => l.roles.map(r => `${l.alias}${PART_SEPARATOR}${r}`));
25740
+ }
25741
+ const text$1 = (d) => ({ ...jsonText(), description: d });
25742
+ const integer = (d) => ({ ...jsonInteger(), description: d });
25743
+ const oneOf$1 = (values, d) => ({ ...jsonOneOf(values), description: d });
25744
+ const listOf = (items, d) => ({ ...jsonListOf(items), description: d });
25745
+ const closed = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
25746
+ /** The strict format for one composed page — with the list ingredients when `options.lists` is given. */
25747
+ function layoutWireJsonSchema(options = {}) {
25748
+ const partWords = options.lists ? layoutWirePartWords(options.lists) : [];
25749
+ // A list (round one) keeps today's offer exactly: the plan's lists narrow only what the award tier adds.
25750
+ const mixOffered = options.tier === AWARD ? layoutMixOffered(options.never, { tier: AWARD, lists: options.lists }) : layoutMixOffered(options.never);
25751
+ const lists = options.lists
25752
+ ? {
25753
+ mix: listOf(jsonOneOf(mixOffered), `gallery showing a list (source): how its items are shown, one word per choice — ${mixHint(mixOffered)}; [] for none`),
25754
+ parts: listOf(jsonOneOf(partWords.length ? partWords : [NONE$1]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
25755
+ }
25756
+ : {};
25757
+ const carried = options.carry
25758
+ ? {
25759
+ carry: oneOf$1([NONE$1, ...options.carry], "a redesign: the owner's part this layer shows, by handle — its words, photo or form as they are (write no text of your own then); a section's ONLY layer naming a bind:/block:/keep: handle makes the whole section that part; 'none' for a layer of your own"),
25760
+ }
25761
+ : {};
25762
+ const layer = closed({
25763
+ kind: oneOf$1(V.kinds, 'what the layer is'),
25764
+ role: oneOf$1(V.roles, 'lead: the ONE thing the eye finds first in its section · support: follows it · decoration: only fades · static: never moves'),
25765
+ text: text$1("the words (word, heading, text, label, number, button); '' for none; a fact you were not given is {fact:<key>}"),
25766
+ items: listOf(jsonText(), 'list items · marquee phrases · one caption per gallery photo; [] for none'),
25767
+ photos: listOf(jsonText(), 'photo: one photo id · gallery: its slides, in order; ids from the photos you are given; [] for none'),
25768
+ source: text$1("gallery: the alias of a list data source whose items it shows instead of photos; '' for none"),
25769
+ box: listOf(jsonInteger(), '[colStart, colEnd, rowStart, rowEnd]: grid lines 1..13 (1..12×hold+1 sideways) and 1..rows+1'),
25770
+ size: oneOf$1([NONE$1, ...V.sizes], "type size; 'screen' = as wide as its columns, a word, never a sentence"),
25771
+ color: oneOf$1(V.colours, "the look's colour by name"),
25772
+ align: oneOf$1(V.aligns, 'text alignment'),
25773
+ z: integer('0..9 stacking'),
25774
+ bleed: oneOf$1(V.bleeds, 'runs off the screen at that edge'),
25775
+ rotate: integer("degrees, within the look's limit"),
25776
+ to: text$1("button: a section id of this page or a page route ('/contact'); '' for none"),
25777
+ variant: oneOf$1(VARIANT_ON_WIRE, 'button: primary | secondary | ghost · gallery: its effect · form: its preset · none'),
25778
+ enter: oneOf$1(layoutEntersOffered(options.scrub), scrubOffered(options.scrub)
25779
+ ? 'plays once as it arrives (time); clipReveal opens from that side; letters: a line of words rises letter by letter (a display line)'
25780
+ : 'plays once as it arrives (time); clipReveal opens from that side'),
25781
+ depth: oneOf$1([NONE$1, ...V.depths], 'the parallax trio (not in held sections)'),
25782
+ inner: integer('0..3: how far a photo drifts inside its frame'),
25783
+ flags: listOf(jsonOneOf(layoutFlagsOffered(options.scrub)), `switches: scrim (a shadow under words on a photo) · kinetic (lit word by word, held only) · contain · gallery: centered, freeMode, loop, drift, scroll (held only: the scroll turns it), autoplay${scrubOffered(options.scrub) ? ` · scrub (its entrance follows the scroll instead of playing once — ${options.scrub === ScrubId.Words ? 'a mask rise or letters only' : 'any entrance'}; never in the first section)` : ''}; [] for none`),
25784
+ perView: { type: 'number', description: 'gallery slides per view; 0 for none' },
25785
+ slots: listOf(closed({ slot: oneOf$1(SLOT_NAMES, 'which words'), text: text$1('the words, in the business\'s language') }), "form: its title, intro, submit, successTitle, successText, channel, and one entry per chip (needs · budget · guests); [] for none"),
25786
+ motion: listOf(closed({
25787
+ prop: oneOf$1(V.trackProps, 'what moves'),
25788
+ ease: oneOf$1(V.eases, 'how'),
25789
+ values: listOf({ type: 'number' }, '[from, to, at0, at1]: values and the part of the hold it plays over (0..1)'),
25790
+ }), 'held sections only: tracks the scroll plays; [] for none'),
25791
+ ...lists,
25792
+ ...carried,
25793
+ });
25794
+ const section = closed({
25795
+ id: text$1('a short slug, unique on the page'),
25796
+ kind: oneOf$1(V.sectionKinds, 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
25797
+ screens: integer('1..5 screen heights'),
25798
+ hold: integer('0 flows · 1 held (the page stops while its layers move) · 2..4 held and carried sideways that many screens'),
25799
+ ground: text$1("a colour name, or photo:<id>"),
25800
+ rows: integer('4..16 grid rows'),
25801
+ transition: oneOf$1(V.transitions, 'how it arrives over the section before'),
25802
+ phone: listOf(jsonInteger(), "every layer's index exactly once, in a phone's reading order"),
25803
+ layers: listOf(layer, 'the layers'),
25804
+ });
25805
+ return closed({ sections: listOf(section, '4..8 sections') }, 'one composed page in the layout language');
25806
+ }
25807
+ const nonEmpty$2 = (v) => typeof v === 'string' && v.trim() !== '';
25808
+ const num = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
25809
+ const strings = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
25810
+ function expandForm(l, preset) {
25811
+ const form = { preset: preset };
25812
+ const options = {};
25813
+ for (const s of Array.isArray(l['slots']) ? l['slots'] : []) {
25814
+ if (!isPlainObject(s) || !nonEmpty$2(s['text']))
25815
+ continue;
25816
+ const slot = String(s['slot']);
25817
+ const words = String(s['text']).trim();
25818
+ if (CHIP_SLOTS.includes(slot))
25819
+ (options[slot] ??= []).push(words);
25820
+ else if (slot === 'channel')
25821
+ form.channel = { label: words };
25822
+ else if (slot === 'title' || slot === 'intro' || slot === 'submit' || slot === 'successTitle' || slot === 'successText')
25823
+ form[slot] = words;
25824
+ }
25825
+ if (Object.keys(options).length)
25826
+ form.options = options;
25827
+ return form;
25828
+ }
25829
+ function expandGallery(l, flags, variant) {
25830
+ const captions = strings(l['items']);
25831
+ const gallery = {
25832
+ slides: strings(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty$2(captions[i]) ? { caption: captions[i] } : {}) })),
25833
+ };
25834
+ if (GALLERY_EFFECTS.includes(variant))
25835
+ gallery.effect = variant;
25836
+ const perView = num(l['perView']);
25837
+ if (perView > 0)
25838
+ gallery.perView = perView;
25839
+ for (const f of ['centered', 'freeMode', 'loop', 'drift', 'scroll'])
25840
+ if (flags.has(f))
25841
+ gallery[f] = true;
25842
+ if (flags.has('autoplay'))
25843
+ gallery.autoplay = LAYOUT_WIRE_AUTOPLAY_MS;
25844
+ if (nonEmpty$2(l['source']))
25845
+ gallery.source = String(l['source']).trim();
25846
+ const list = expandListMix(l, gallery);
25847
+ if (list)
25848
+ gallery.list = list;
25849
+ return gallery;
25850
+ }
25851
+ /** `mix` + `parts` → a list mix, or null when the wire names no mix. Words are kept as written (`checkList` judges them);
25852
+ * parts of another list than the gallery's are left out, and the first part names the list when `source` is empty. */
25853
+ function expandListMix(l, gallery) {
25854
+ const words = strings(l['mix']);
25855
+ if (!words.length)
25856
+ return null;
25857
+ const parts = strings(l['parts']).filter(p => p !== NONE$1).map(p => {
25858
+ const at = p.lastIndexOf(PART_SEPARATOR);
25859
+ return at > 0 ? { list: p.slice(0, at), role: p.slice(at + 1) } : null;
25860
+ }).filter((p) => !!p);
25861
+ if (!gallery.source && parts[0])
25862
+ gallery.source = parts[0].list;
25863
+ return listMixFromWords(words, parts.filter(p => p.list === gallery.source).map(p => p.role));
25864
+ }
25865
+ /**
25866
+ * `<ingredient>:<word>` words (the wire's `mix`, or what a composed list's frame stores — design-core `LIST_MIX_PROP`)
25867
+ * and the roles each item shows → a list mix, or null when there are no words. Words are kept as written (`checkList`
25868
+ * judges them); what is not named takes the wire's defaults. Bindings ▸ List reads a list back through this.
25869
+ */
25870
+ function listMixFromWords(words, parts = []) {
25871
+ if (!words.length)
25872
+ return null;
25873
+ const picked = new Map();
25874
+ for (const w of words) {
25875
+ const at = w.indexOf(MIX_SEPARATOR);
25876
+ if (at > 0)
25877
+ (picked.get(w.slice(0, at)) ?? picked.set(w.slice(0, at), []).get(w.slice(0, at))).push(w.slice(at + 1));
25878
+ }
25879
+ const one = (k) => picked.get(k)?.[0];
25880
+ const own = [...parts];
25881
+ const arrange = (one(LayoutMixIngredient.Arrange) ?? LayoutListArrange.Row);
25882
+ const who = one(LayoutMixIngredient.Who);
25883
+ const how = one(LayoutMixIngredient.How);
25884
+ return {
25885
+ item: (one(LayoutMixIngredient.Item) ?? (own.length ? LayoutListItem.Card : LayoutListItem.Photo)),
25886
+ parts: Array.from(new Set(own)),
25887
+ arrange,
25888
+ ...(who && who !== LayoutListWho.None ? { standout: { who: who, ...(how ? { how: how } : {}) } } : {}),
25889
+ move: Array.from(new Set(picked.get(LayoutMixIngredient.Move) ?? [])),
25890
+ hover: Array.from(new Set(picked.get(LayoutMixIngredient.Hover) ?? [])),
25891
+ arrive: (one(LayoutMixIngredient.Arrive) ?? LayoutListArrive.Together),
25892
+ phone: (one(LayoutMixIngredient.Phone) ?? (arrange === LayoutListArrange.Row ? LayoutListPhone.Swipe : LayoutListPhone.Stack)),
25893
+ };
25894
+ }
25895
+ /** A list mix's words, `<ingredient>:<word>` — the wire's `mix`, and what a composed list's frame stores (AW11,
25896
+ * design-core `LIST_MIX_PROP`) for Bindings ▸ List and the shared CSS. */
25897
+ function listMixWords(mix) {
25898
+ const w = (k, v) => `${k}${MIX_SEPARATOR}${v}`;
25899
+ return [
25900
+ w(LayoutMixIngredient.Item, mix.item), w(LayoutMixIngredient.Arrange, mix.arrange),
25901
+ ...(mix.standout ? [w(LayoutMixIngredient.Who, mix.standout.who), ...(mix.standout.how ? [w(LayoutMixIngredient.How, mix.standout.how)] : [])] : []),
25902
+ ...mix.move.map(m => w(LayoutMixIngredient.Move, m)), ...mix.hover.map(h => w(LayoutMixIngredient.Hover, h)),
25903
+ w(LayoutMixIngredient.Arrive, mix.arrive), w(LayoutMixIngredient.Phone, mix.phone),
25904
+ ];
25905
+ }
25906
+ /** A list mix → the wire's `mix` words and `parts`. */
25907
+ function listMixToWire(mix, source) {
25908
+ return { mix: listMixWords(mix), parts: mix.parts.map(r => `${source}${PART_SEPARATOR}${r}`) };
25909
+ }
25910
+ function expandTrack(t) {
25911
+ const v = Array.isArray(t['values']) ? t['values'].map(x => num(x)) : [];
25912
+ return { prop: String(t['prop']), from: v[0] ?? 0, to: v[1] ?? 0, at: [v[2] ?? 0, v[3] ?? 1], ease: String(t['ease']) };
25913
+ }
25914
+ function expandLayer(l, beat) {
25915
+ const kind = String(l['kind']);
25916
+ const box = Array.isArray(l['box']) ? l['box'].map(x => num(x)) : [];
25917
+ const flags = new Set(strings(l['flags']));
25918
+ const variant = String(l['variant'] ?? NONE$1);
25919
+ const out = {
25920
+ kind: kind,
25921
+ role: String(l['role']),
25922
+ col: [box[0] ?? 1, box[1] ?? 2],
25923
+ row: [box[2] ?? 1, box[3] ?? 2],
25924
+ };
25925
+ if (nonEmpty$2(l['text']))
25926
+ out.text = String(l['text']);
25927
+ const items = strings(l['items']);
25928
+ if (items.length && kind !== 'gallery')
25929
+ out.items = items;
25930
+ if (kind === 'photo' && strings(l['photos'])[0])
25931
+ out.photo = { id: strings(l['photos'])[0] };
25932
+ if (kind === 'gallery')
25933
+ out.gallery = expandGallery(l, flags, variant);
25934
+ if (kind === 'form')
25935
+ out.form = expandForm(l, FORM_PRESETS.includes(variant) ? variant : 'contact');
25936
+ if (kind === 'button' && BUTTON_VARIANTS.includes(variant))
25937
+ out.variant = variant;
25938
+ if (nonEmpty$2(l['size']) && l['size'] !== NONE$1)
25939
+ out.size = String(l['size']);
25940
+ if (nonEmpty$2(l['color']))
25941
+ out.color = String(l['color']);
25942
+ if (nonEmpty$2(l['align']))
25943
+ out.align = String(l['align']);
25944
+ if (num(l['z']))
25945
+ out.z = num(l['z']);
25946
+ if (nonEmpty$2(l['bleed']) && l['bleed'] !== NONE$1)
25947
+ out.bleed = String(l['bleed']);
25948
+ if (num(l['rotate']))
25949
+ out.rotate = num(l['rotate']);
25950
+ if (nonEmpty$2(l['to']))
25951
+ out.to = String(l['to']).trim();
25952
+ if (flags.has('scrim'))
25953
+ out.scrim = true;
25954
+ if (flags.has('kinetic'))
25955
+ out.kinetic = true;
25956
+ if (flags.has('contain'))
25957
+ out.fit = 'contain';
25958
+ if (flags.has(SCRUB_FLAG))
25959
+ out.scrub = true;
25960
+ const enter = String(l['enter'] ?? NONE$1);
25961
+ if (enter.startsWith(CLIP_SIDE)) {
25962
+ out.enter = CLIP;
25963
+ out.from = enter.slice(CLIP_SIDE.length);
25964
+ }
25965
+ else if (enter !== NONE$1)
25966
+ out.enter = enter;
25967
+ if (out.enter)
25968
+ out.beat = beat;
25969
+ if (nonEmpty$2(l['depth']) && l['depth'] !== NONE$1)
25970
+ out.depth = String(l['depth']);
25971
+ if (num(l['inner']))
25972
+ out.inner = num(l['inner']);
25973
+ const motion = (Array.isArray(l['motion']) ? l['motion'] : []).filter(isPlainObject).map(expandTrack);
25974
+ if (motion.length)
25975
+ out.motion = motion;
25976
+ if (nonEmpty$2(l['carry']) && l['carry'] !== NONE$1)
25977
+ out.carry = String(l['carry']).trim();
25978
+ return out;
25979
+ }
25980
+ /**
25981
+ * A section's beats, never asked: the lead enters first; every other entering layer takes the next beat in the order it
25982
+ * was written, held at the stagger's last (Emil's shrinking stagger reads the beat and stops shrinking at the sixth; the
25983
+ * prototype wrote it on fewer than half the layers). ONE rule
25984
+ * for the wire's expansion and for a page a repair edited (`applyLayoutEdits`).
25985
+ */
25986
+ function derivedBeats(layers) {
25987
+ const last = LAYOUT_BEAT_DELAY.length - 1;
25988
+ let beat = 0;
25989
+ return layers.map(l => (l.role === 'lead' ? 0 : String(l.enter ?? NONE$1) !== NONE$1 ? Math.min(++beat, last) : 0));
25990
+ }
25991
+ function expandSection(s) {
25992
+ const kind = String(s['kind']);
25993
+ const hold = Math.max(0, Math.round(num(s['hold'])));
25994
+ const wired = (Array.isArray(s['layers']) ? s['layers'] : []).filter(isPlainObject);
25995
+ // RD-D20: a section whose ONLY layer names a bound part, a block or a kept section IS that part — a section place.
25996
+ const whole = wired.length === 1 && nonEmpty$2(wired[0]['carry']) && isSectionCarryHandle(String(wired[0]['carry']).trim())
25997
+ ? String(wired[0]['carry']).trim() : null;
25998
+ if (whole)
25999
+ return { id: String(s['id'] ?? ''), screens: 1, rows: 1, layers: [], phone: [], carry: whole };
26000
+ const beats = derivedBeats(wired);
26001
+ const layers = wired.map((l, i) => expandLayer(l, beats[i]));
26002
+ const out = {
26003
+ id: String(s['id'] ?? ''),
26004
+ screens: num(s['screens'], 1),
26005
+ rows: num(s['rows'], 8),
26006
+ ground: String(s['ground'] ?? 'ground'),
26007
+ transition: String(s['transition'] ?? 'cut'),
26008
+ layers,
26009
+ phone: Array.isArray(s['phone']) ? s['phone'].map(x => num(x, -1)) : [],
26010
+ };
26011
+ if (kind === 'inhale')
26012
+ out.kind = 'inhale';
26013
+ if (kind === 'signature')
26014
+ out.signature = true;
26015
+ if (hold >= 1)
26016
+ out.pin = true;
26017
+ if (hold >= 2)
26018
+ out.track = hold;
26019
+ return out;
26020
+ }
26021
+ /**
26022
+ * The wire → a layout page. Refuses (issues with a path) only what it cannot read at all — a missing `sections`, a
26023
+ * section or layer that is not an object; everything a model can get wrong in a well-formed answer is `checkLayout`'s.
26024
+ */
26025
+ function expandLayoutWire(wire, dial) {
26026
+ const issues = [];
26027
+ const add = (path, message) => issues.push({ code: LayoutIssueCode.Shape, path, message });
26028
+ if (!isPlainObject(wire) || !Array.isArray(wire['sections'])) {
26029
+ add('sections', 'the answer has no sections');
26030
+ return { page: null, issues };
26031
+ }
26032
+ wire['sections'].forEach((s, i) => {
26033
+ if (!isPlainObject(s))
26034
+ add(`sections[${i}]`, 'not an object');
26035
+ else if (!Array.isArray(s['layers']))
26036
+ add(`sections[${i}].layers`, 'no layers');
26037
+ else
26038
+ s['layers'].forEach((l, j) => { if (!isPlainObject(l))
26039
+ add(`sections[${i}].layers[${j}]`, 'not an object'); });
26040
+ });
26041
+ if (issues.length)
26042
+ return { page: null, issues };
26043
+ return { page: { dial, sections: wire['sections'].map(expandSection) }, issues: [] };
26044
+ }
26045
+ function layerToWire(l) {
26046
+ const g = l.gallery;
26047
+ const f = l.form;
26048
+ const flags = [
26049
+ l.scrim && 'scrim', l.kinetic && 'kinetic', l.fit === 'contain' && 'contain',
26050
+ g?.centered && 'centered', g?.freeMode && 'freeMode', g?.loop && 'loop', g?.drift && 'drift', g?.scroll && 'scroll', g?.autoplay ? 'autoplay' : null,
26051
+ l.scrub && SCRUB_FLAG,
26052
+ ].filter((x) => !!x);
26053
+ const slots = f
26054
+ ? [
26055
+ ...['title', 'intro', 'submit', 'successTitle', 'successText'].filter(k => nonEmpty$2(f[k])).map(k => ({ slot: k, text: String(f[k]) })),
26056
+ ...(f.channel?.label ? [{ slot: 'channel', text: f.channel.label }] : []),
26057
+ ...Object.entries(f.options ?? {}).flatMap(([slot, words]) => (words ?? []).map(t => ({ slot, text: t }))),
26058
+ ]
26059
+ : [];
26060
+ return {
26061
+ kind: l.kind,
26062
+ role: l.role ?? 'support',
26063
+ text: l.text ?? '',
26064
+ items: g ? g.slides.map(s => s.caption ?? '') : l.items ?? [],
26065
+ photos: g ? g.slides.map(s => s.photo?.id ?? '') : l.photo ? [l.photo.id] : [],
26066
+ source: g?.source ?? '',
26067
+ box: [...(l.col ?? [1, 2]), ...(l.row ?? [1, 2])],
26068
+ size: l.size ?? NONE$1,
26069
+ color: l.color ?? 'ink',
26070
+ align: l.align ?? 'start',
26071
+ z: l.z ?? 0,
26072
+ bleed: l.bleed ?? NONE$1,
26073
+ rotate: l.rotate ?? 0,
26074
+ to: l.to ?? '',
26075
+ variant: l.variant ?? g?.effect ?? f?.preset ?? NONE$1,
26076
+ enter: l.enter === CLIP ? `${CLIP_SIDE}${l.from ?? 'bottom'}` : l.enter ?? NONE$1,
26077
+ depth: l.depth ?? NONE$1,
26078
+ inner: l.inner ?? 0,
26079
+ flags,
26080
+ perView: typeof g?.perView === 'number' ? g.perView : 0,
26081
+ slots,
26082
+ motion: (l.motion ?? []).map(t => ({ prop: t.prop, ease: t.ease ?? 'out', values: [t.from, t.to, ...(t.at ?? [0, 1])] })),
26083
+ ...(g?.list ? listMixToWire(g.list, g.source ?? '') : {}),
26084
+ ...(l.carry ? { carry: l.carry } : {}),
26085
+ };
26086
+ }
26087
+ /** A section place (RD-D20) on the wire: ONE layer naming its handle — what `expandSection` reads back as the place. */
26088
+ function carryPlaceToWire(s) {
26089
+ const layer = {
26090
+ kind: 'text', role: 'lead', text: '', items: [], photos: [], source: '', box: [1, 13, 1, 2], size: NONE$1, color: 'ink', align: 'start',
26091
+ z: 0, bleed: NONE$1, rotate: 0, to: '', variant: NONE$1, enter: NONE$1, depth: NONE$1, inner: 0, flags: [], perView: 0, slots: [], motion: [],
26092
+ carry: s.carry,
26093
+ };
26094
+ return { id: s.id, kind: 'content', screens: 1, hold: 0, ground: 'ground', rows: 4, transition: 'cut', phone: [0], layers: [layer] };
26095
+ }
26096
+ /** A layout page (or a saved CL2.1 site's sections) → the wire. */
26097
+ function layoutToWire(page) {
26098
+ return {
26099
+ sections: page.sections.map(s => (s.carry ? carryPlaceToWire(s) : {
26100
+ id: s.id,
26101
+ kind: s.signature ? 'signature' : s.kind ?? 'content',
26102
+ screens: s.screens,
26103
+ hold: s.pin ? s.track ?? 1 : 0,
26104
+ ground: s.ground ?? 'ground',
26105
+ rows: s.rows,
26106
+ transition: s.transition ?? 'cut',
26107
+ phone: s.phone ?? [],
26108
+ layers: s.layers.map(layerToWire),
26109
+ })),
26110
+ };
26111
+ }
26112
+
25119
26113
  /**
25120
26114
  * THE layout composer (premium components M8, gate 1): a page written in the layout language (`layout-language.ts`) in,
25121
26115
  * ordinary builder nodes out — the same `createSerializedNode` every composed page is made of, so the builder reloads it
@@ -25185,7 +26179,32 @@ var LayoutListRole;
25185
26179
  LayoutListRole["StripsSwipe"] = "list.strips-swipe";
25186
26180
  LayoutListRole["StripItem"] = "list.strip-item";
25187
26181
  LayoutListRole["Item"] = "list.item";
26182
+ // AW11 (board award-lists): the round-two arrangements — a Repeater's role, drawn by iox-design.css from each row's
26183
+ // index (no runtime), each with its phone variant.
26184
+ LayoutListRole["Hang"] = "list.hang";
26185
+ LayoutListRole["HangTwo"] = "list.hang-two";
26186
+ LayoutListRole["Bento"] = "list.bento";
26187
+ LayoutListRole["Rows"] = "list.rows";
26188
+ LayoutListRole["Stage"] = "list.stage";
26189
+ LayoutListRole["Fan"] = "list.fan";
26190
+ LayoutListRole["FanStack"] = "list.fan-stack";
26191
+ LayoutListRole["Tilted"] = "list.tilted";
26192
+ LayoutListRole["TiltedTwo"] = "list.tilted-two";
26193
+ /** AW11-D16: a band of drifting picture rows (two Marquees), its rows' Repeaters. */
26194
+ LayoutListRole["DriftRows"] = "list.drift";
26195
+ LayoutListRole["DriftRow"] = "list.drift-row";
26196
+ /** AW11-D12: an item's second picture (swap, unveil), over the first inside its frame. */
26197
+ LayoutListRole["Second"] = "list.second";
25188
26198
  })(LayoutListRole || (LayoutListRole = {}));
26199
+ /** A round-two arrangement's Repeater role, by the phone the mix asks for (AW11). */
26200
+ const ARRANGE_ROLE = {
26201
+ hang: { stack: LayoutListRole.Hang, swipe: LayoutListRole.Hang, 'two-up': LayoutListRole.HangTwo },
26202
+ bento: { stack: LayoutListRole.Bento, swipe: LayoutListRole.Bento, 'two-up': LayoutListRole.Bento },
26203
+ rows: { stack: LayoutListRole.Rows, swipe: LayoutListRole.Rows, 'two-up': LayoutListRole.Rows },
26204
+ stage: { stack: LayoutListRole.Stage, swipe: LayoutListRole.Stage, 'two-up': LayoutListRole.Stage },
26205
+ fan: { stack: LayoutListRole.FanStack, swipe: LayoutListRole.Fan, 'two-up': LayoutListRole.Fan },
26206
+ tilted: { stack: LayoutListRole.Tilted, swipe: LayoutListRole.Tilted, 'two-up': LayoutListRole.TiltedTwo },
26207
+ };
25189
26208
  /** A strips list's Repeater role by the phone the mix asks for. */
25190
26209
  const STRIPS_ROLE = {
25191
26210
  stack: LayoutListRole.Strips, 'two-up': LayoutListRole.StripsTwo, swipe: LayoutListRole.StripsSwipe,
@@ -25748,8 +26767,16 @@ function galleryLayer(id, l, lc, ctx) {
25748
26767
  /** The width a row's card takes: three across a laptop, most of a phone's width with the next one peeking. */
25749
26768
  const LIST_ROW_SLIDE = `calc((100% - ${2 * SLIDE_GAP}px) / 3)`;
25750
26769
  const LIST_ROW_SLIDE_PHONE = '82%';
25751
- /** A deck is one card wide (LI4): a laptop's card, most of a phone. */
25752
- const LIST_DECK_WIDTH = 'min(440px, 80%)';
26770
+ /** A deck is one card wide (LI4): a laptop's card, most of a phone — the width the list judge reads (list-space). */
26771
+ const LIST_DECK_WIDTH = `min(${LIST_DECK_MAX_PX}px, ${LIST_DECK_SHARE * 100}%)`;
26772
+ /** LI7: a deck's card turns in this share of the look's pace (Normal 650ms → 455ms): a card thrown, never a slide crawling. */
26773
+ const LIST_DECK_TURN = 0.7;
26774
+ /** LI7: the corner a list item wears — a card's the look's card radius, a picture's its image radius; a deck's slide and a
26775
+ * strip wear it too, so a peeking card, its shading and a closed strip keep the item's own corners. */
26776
+ const LIST_CARD_RADIUS = 'var(--iox-card-radius)';
26777
+ const LIST_PHOTO_RADIUS = 'var(--iox-image-radius)';
26778
+ /** A picture's deck slide carries the look's card shadow (a card carries its own). */
26779
+ const LIST_PHOTO_SHADOW = 'var(--iox-card-shadow)';
25753
26780
  const LIST_GAP = 'var(--iox-space-gap)';
25754
26781
  const LIST_PHOTO_ASPECT = '4 / 3';
25755
26782
  /** A row or a deck turns by itself this often (the wire's autoplay). */
@@ -25775,11 +26802,14 @@ function listArriveInteraction(nodeId, arrive, ctx) {
25775
26802
  const stagger = Math.round(LIST_STAGGER * ctx.pace.gap);
25776
26803
  const action = arrive === LayoutListArrive.Together ? { type: 'fadeIn', params: {} }
25777
26804
  : arrive === LayoutListArrive.SlideIn ? { type: ctx.rtl ? 'moveRight' : 'moveLeft', params: { distance: LIST_SLIDE_DISTANCE, stagger, cap: LIST_STAGGER_CAP } }
25778
- : { type: 'moveUp', params: { distance: LAYOUT_RISE[LayoutRole.Support], stagger, cap: LIST_STAGGER_CAP } };
26805
+ // AW11-D15: each card opens from its bottom edge — the ONE keyframe map's clipReveal, with the shrinking stagger.
26806
+ : arrive === LayoutListArrive.ClipUp ? { type: 'clipReveal', params: { from: LayoutSide.Bottom, stagger, cap: LIST_STAGGER_CAP } }
26807
+ : { type: 'moveUp', params: { distance: LAYOUT_RISE[LayoutRole.Support], stagger, cap: LIST_STAGGER_CAP } };
26808
+ const clip = arrive === LayoutListArrive.ClipUp;
25779
26809
  return {
25780
26810
  id: `${nodeId}-enter`,
25781
26811
  trigger: 'viewportEnter',
25782
- actions: [{ type: action.type, target: 'self', duration, delay: 0, easing: ctx.ease, once: true, ...(Object.keys(action.params).length ? { params: action.params } : {}) }],
26812
+ actions: [{ type: action.type, target: 'self', duration: clip ? Math.round(duration * CLIP_DURATION) : duration, delay: 0, easing: ctx.ease, once: true, ...(Object.keys(action.params).length ? { params: action.params } : {}) }],
25783
26813
  };
25784
26814
  }
25785
26815
  /** An item's link to its own page: the page's route, its param filled from the row's field. */
@@ -25807,6 +26837,9 @@ function listCard(id, mix, source, list, masonry, path, ctx, layout = CardLayout
25807
26837
  return part;
25808
26838
  const node = role === CardRole.Media ? part.children?.find(c => c.type === T.Image) : part;
25809
26839
  node?.bindings.push({ prop, source, path: f });
26840
+ // iox-ui#111: bound words are the row's — never the recipe's own ("Category"), which a row with no value showed live.
26841
+ if (node && prop === 'content')
26842
+ node.props['content'] = '';
25810
26843
  return node;
25811
26844
  };
25812
26845
  const title = list.roles['title'];
@@ -25884,6 +26917,15 @@ function composeList(id, l, mix, source, list, lc, ctx) {
25884
26917
  const scheme = layoutBandScheme(lc.section.ground);
25885
26918
  if (scheme)
25886
26919
  setColorScheme(frame, scheme);
26920
+ // AW11: the mix rides on the frame (design-core LIST_MIX_PROP) — the shared CSS draws its item and hover words from
26921
+ // the classes it becomes, and Bindings ▸ List reads it back.
26922
+ frame.props[LIST_MIX_PROP] = listMixWords(mix).join(' ');
26923
+ // AW11 rule 2 (never cut): what leans, hangs or turns keeps its room inside the frame — its section clips.
26924
+ const room = listOverhang(mix);
26925
+ if (room.blockStart || room.blockEnd || room.inline) {
26926
+ setStyleProps(frame, { padding: `${room.blockStart}px ${room.inline}px ${room.blockEnd}px ${room.inline}px` });
26927
+ phone(frame, { padding: `${Math.round(room.blockStart / 2)}px ${Math.round(room.inline / 2)}px ${Math.round(room.blockEnd / 2)}px ${Math.round(room.inline / 2)}px` });
26928
+ }
25887
26929
  // A word the product does not draw yet (the contract's list table): drawn as its stand-in, and said.
25888
26930
  let arrange = mix.arrange;
25889
26931
  const arrangeWait = listWait('arrange', arrange);
@@ -25898,24 +26940,30 @@ function composeList(id, l, mix, source, list, lc, ctx) {
25898
26940
  if (standout && standWait) {
25899
26941
  gap(ctx, LayoutGapCode.ListLater, `${lc.path}.gallery.list.standout`, `standing out (${standout.who}${standout.how ? ` · ${standout.how}` : ''}) is drawn in ${standWait.phase}`);
25900
26942
  }
25901
- const masonry = arrange === LayoutListArrange.Masonry;
25902
- const item = mix.item === LayoutListItem.Card
25903
- ? listCard(`${id}-item`, mix, source, list, masonry, lc.path, ctx, strips ? CardLayout.Overlay : CardLayout.Top)
25904
- : listPhoto(`${id}-item`, source, list, masonry);
26943
+ const masonry = arrange === LayoutListArrange.Masonry || arrange === LayoutListArrange.Hang;
26944
+ const item = listItem(`${id}-item`, mix, source, list, masonry, lc.path, ctx, strips);
25905
26945
  if (strips)
25906
- return composeStrips(id, frame, item, mix, source, ctx);
26946
+ return composeStrips(id, frame, item, mix, source, ctx, listItemRadius(mix));
26947
+ // AW11-D16: drifting picture rows — the Marquee holding the list's pictures, twice.
26948
+ if (mix.move.includes(LayoutListMove.Rows) && arrange === LayoutListArrange.Row && !lc.held)
26949
+ return composeDriftRows(id, frame, item, source, l);
25907
26950
  item.interactions = [...item.interactions, listArriveInteraction(item.id, mix.arrive, ctx)];
26951
+ if (mix.arrive === LayoutListArrive.ClipUp)
26952
+ riseInside(item, ctx);
25908
26953
  // LI4: the one that stands out — a deck's top card IS its standing out; strips draw their own (wider).
25909
26954
  const shown = standout && !standWait && !deck ? standWrap(`${id}-stand`, item, standout) : item;
25910
- if (arrange === LayoutListArrange.Row || deck) {
26955
+ const fanDragged = arrange === LayoutListArrange.Fan && mix.move.includes(LayoutListMove.Drag);
26956
+ if (arrange === LayoutListArrange.Row || deck || fanDragged) {
25911
26957
  const scrollPlays = mix.move.includes(LayoutListMove.Page) && !lc.held;
25912
26958
  const played = scrollPlays || lc.held;
25913
26959
  const drag = mix.move.includes(LayoutListMove.Drag);
25914
26960
  const slider = create$1(`${id}-slider`, T.Slider, {
25915
26961
  // A deck (LI4) is Swiper's cards: one card on top, the rest waiting behind, dragged away or stepped.
25916
- dir: ctx.rtl ? 'rtl' : 'ltr', effect: deck ? 'cards' : 'slide', slidesPerView: deck ? 1 : 'auto', spaceBetween: deck ? 0 : SLIDE_GAP,
25917
- centeredSlides: !deck && standout?.who === LayoutListWho.Middle, loop: 'off', freeMode: !deck && drag && !played, grabCursor: drag && !played,
25918
- speed: GALLERY_SPEED, enableParallax: false, enableAutoplay: mix.move.includes(LayoutListMove.Auto) && !played,
26962
+ // AW11-D1: a fan you drag is Swiper's creative effect, set by the ONE planSwiperOptions (`creativePreset: fan`).
26963
+ dir: ctx.rtl ? 'rtl' : 'ltr', effect: deck ? 'cards' : fanDragged ? 'creative' : 'slide', slidesPerView: deck || fanDragged ? 1 : 'auto',
26964
+ spaceBetween: deck || fanDragged ? 0 : SLIDE_GAP, ...(fanDragged ? { creativePreset: SLIDER_FAN_PRESET } : {}),
26965
+ centeredSlides: !deck && !fanDragged && standout?.who === LayoutListWho.Middle, loop: 'off', freeMode: !deck && !fanDragged && drag && !played, grabCursor: drag && !played,
26966
+ speed: deck ? Math.round(ctx.pace.support * LIST_DECK_TURN) : GALLERY_SPEED, enableParallax: false, enableAutoplay: mix.move.includes(LayoutListMove.Auto) && !played,
25919
26967
  autoplayDelay: LIST_AUTOPLAY_MS, autoplayDisableOnInteraction: true, enableKeyboard: true, scrollPlays,
25920
26968
  enableCaption: false, enableCount: false, enableNavigation: mix.move.includes(LayoutListMove.Arrows) && !played,
25921
26969
  [SLIDER_PLACEMENT_TRAIT]: SliderPlacement.Under, ariaLabel: l.text ?? '',
@@ -25931,13 +26979,18 @@ function composeList(id, l, mix, source, list, lc, ctx) {
25931
26979
  phone(slider, scrollPlays || deck ? { height: 'auto' } : { position: 'relative', height: 'auto' });
25932
26980
  // A row keeps its own slide width on a phone (most of the screen, the next item peeking): the slider's phone
25933
26981
  // default is one slide the full width, unless the phone layer names its slides per view. A deck stays a deck.
25934
- if (!deck)
26982
+ if (!deck && !fanDragged)
25935
26983
  slider.responsive[LAYOUT_PHONE_BREAKPOINT].inputs = { slidesPerView: 'auto' };
25936
26984
  if (mix.phone !== LayoutListPhone.Swipe)
25937
26985
  gap(ctx, LayoutGapCode.ListLater, `${lc.path}.gallery.list.phone`, `a ${arrange} stays one you swipe on a phone (${mix.phone} is a grid's)`);
25938
26986
  const slide = create$1(`${id}-slide`, T.Slide, { caption: '' }, NO_ELEMENT_STYLE);
25939
- setStyleProps(slide, { width: deck ? FULL : LIST_ROW_SLIDE, height: FULL, display: 'flex', aspectRatio: 'auto' });
25940
- if (!deck)
26987
+ const oneWide = deck || fanDragged;
26988
+ setStyleProps(slide, { width: oneWide ? FULL : LIST_ROW_SLIDE, height: FULL, display: 'flex', aspectRatio: 'auto' });
26989
+ // LI7: a deck's peeking cards and Swiper's shading over them wear the item's corner (the shared CSS rounds the
26990
+ // shading to the slide's), and a picture's card the look's shadow.
26991
+ if (oneWide)
26992
+ setStyleProps(slide, { borderRadius: listItemRadius(mix), ...(mix.item !== LayoutListItem.Card ? { boxShadow: LIST_PHOTO_SHADOW } : {}) });
26993
+ if (!oneWide)
25941
26994
  phone(slide, { width: LIST_ROW_SLIDE_PHONE });
25942
26995
  slide.children = [shown];
25943
26996
  slider.children = [slide];
@@ -25946,7 +26999,18 @@ function composeList(id, l, mix, source, list, lc, ctx) {
25946
26999
  if (node.role === SliderRole.Prev || node.role === SliderRole.Next)
25947
27000
  node.props[LAYOUT_TOOLTIP_TRAIT] = node.props['ariaLabel'];
25948
27001
  });
25949
- frame.children = [deck ? deckHolder(`${id}-deck`, slider) : slider];
27002
+ frame.children = [oneWide ? deckHolder(`${id}-deck`, slider) : slider];
27003
+ return frame;
27004
+ }
27005
+ // AW11: a round-two arrangement is a Repeater whose role the shared CSS draws from each row's index (D1).
27006
+ const roundTwo = ARRANGE_ROLE[arrange];
27007
+ if (roundTwo) {
27008
+ const items = create$1(`${id}-items`, 'Repeater', {}, 'box');
27009
+ items.role = roundTwo[mix.phone];
27010
+ items.bindings.push({ prop: 'source', source, path: '' });
27011
+ setStyleProps(items, { display: 'block', width: FULL });
27012
+ items.children = [shown];
27013
+ frame.children = [items];
25950
27014
  return frame;
25951
27015
  }
25952
27016
  const items = create$1(`${id}-items`, 'Repeater', {}, 'box');
@@ -25968,6 +27032,10 @@ function composeList(id, l, mix, source, list, lc, ctx) {
25968
27032
  frame.children = [items];
25969
27033
  return frame;
25970
27034
  }
27035
+ /** The corner a list's items wear (LI7). */
27036
+ function listItemRadius(mix) {
27037
+ return mix.item === LayoutListItem.Card ? LIST_CARD_RADIUS : LIST_PHOTO_RADIUS;
27038
+ }
25971
27039
  /**
25972
27040
  * A deck (LI4) is a card wide, centred in its cell. The width sits on a holder, never the slider: the slider's own
25973
27041
  * scoped `.swiper { width: 100% }` out-ranks a node's width class. On a phone the holder is the cell's width and the
@@ -26002,10 +27070,11 @@ function standWrap(id, item, standout) {
26002
27070
  * the scrim) or the picture. Everything strips DO — the open one wider, pointing and focus, the phone — is the shared
26003
27071
  * CSS's (iox-design.css, by the Repeater's role), so the canvas and the live site draw the same strips with no runtime.
26004
27072
  */
26005
- function composeStrips(id, frame, item, mix, source, ctx) {
27073
+ function composeStrips(id, frame, item, mix, source, ctx, radius) {
26006
27074
  const strip = create$1(`${id}-strip`, T.Container, {}, NO_ELEMENT_STYLE);
26007
27075
  strip.role = LayoutListRole.StripItem;
26008
- setStyleProps(strip, { position: 'relative', display: 'block', width: FULL, height: FULL, minHeight: ZERO$1, overflow: 'hidden' });
27076
+ // LI7: the strip's clip is the item's own corner — a closed strip is a rounded strip, never a square cut of a card.
27077
+ setStyleProps(strip, { position: 'relative', display: 'block', width: FULL, height: FULL, minHeight: ZERO$1, overflow: 'hidden', borderRadius: radius });
26009
27078
  setStyleProps(item, { width: FULL, height: FULL, minHeight: ZERO$1 });
26010
27079
  if (item.role === LayoutListRole.Item) {
26011
27080
  const image = item.children?.[0];
@@ -26023,6 +27092,95 @@ function composeStrips(id, frame, item, mix, source, ctx) {
26023
27092
  frame.children = [items];
26024
27093
  return frame;
26025
27094
  }
27095
+ // ── AW11 (board award-lists): the round-two items, the second picture, the clip-up's inside, the drifting rows ──────
27096
+ /** The fan's Swiper preset (AW11-D1): planSwiperOptions draws a dragged fan from it — the ONE slider planner. */
27097
+ const SLIDER_FAN_PRESET = 'fan';
27098
+ /** A colour block's ground and ink, set per row from its own colour (AW11-D10) — `style:` bindings the renderers apply
27099
+ * through iox-ui `boundStyleOf`, the shared CSS's fallback the look's ramp. */
27100
+ const ITEM_GROUND = 'style:--list-item-ground';
27101
+ const ITEM_INK = 'style:--list-item-ink';
27102
+ const GROUND_PIPE = 'aaGround';
27103
+ const INK_PIPE = 'inkOnGround';
27104
+ /** The parts a name set on its picture keeps (AW11-D8). */
27105
+ const TITLE_ON_PHOTO_PARTS = new Set(['image', 'title', 'meta', 'date']);
27106
+ /**
27107
+ * One list item by the mix's item word: a picture, a card (Card v2 — the palette's recipe), a card whose name is set on
27108
+ * its picture (the Overlay layout, title + a short detail), or a card the shared CSS dresses by the frame's mix classes
27109
+ * (a packshot's even tile, a colour block's own ground, a numeral). Hover words that need a second picture get it here.
27110
+ */
27111
+ function listItem(id, mix, source, list, masonry, path, ctx, strips) {
27112
+ if (mix.item === LayoutListItem.Photo)
27113
+ return listPhoto(id, source, list, masonry);
27114
+ const onPhoto = mix.item === LayoutListItem.TitleOnPhoto;
27115
+ const shown = onPhoto ? { ...mix, parts: mix.parts.filter(p => TITLE_ON_PHOTO_PARTS.has(p)) } : mix;
27116
+ const card = listCard(id, shown, source, list, masonry && !onPhoto, path, ctx, strips || onPhoto ? CardLayout.Overlay : CardLayout.Top);
27117
+ if (mix.hover.some(h => h === LayoutListHover.Swap || h === LayoutListHover.Unveil))
27118
+ secondPicture(card, source, list);
27119
+ if (mix.item === LayoutListItem.ColourBlock && list.roles['colour']) {
27120
+ card.bindings.push({ prop: ITEM_GROUND, source, path: list.roles['colour'], pipes: [{ name: GROUND_PIPE }] });
27121
+ card.bindings.push({ prop: ITEM_INK, source, path: list.roles['colour'], pipes: [{ name: INK_PIPE }] });
27122
+ }
27123
+ return card;
27124
+ }
27125
+ /** The item's second picture (swap, unveil — AW11-D12): the gallery's second, over the first inside its frame. The first
27126
+ * stays drawn under it, so a second still loading shows the first, never a hole. */
27127
+ function secondPicture(card, source, list) {
27128
+ const gallery = list.roles['gallery'];
27129
+ const media = findByRole(card, CardRole.Media);
27130
+ if (!gallery || !media)
27131
+ return;
27132
+ const second = create$1(`${card.id}-second`, T.Image, { src: '', alt: '' }, NO_ELEMENT_STYLE);
27133
+ second.role = LayoutListRole.Second;
27134
+ setStyleProps(second, { position: 'absolute', top: ZERO$1, right: ZERO$1, bottom: ZERO$1, left: ZERO$1, width: FULL, height: FULL, maxWidth: 'none', objectFit: 'cover' });
27135
+ second.bindings.push({ prop: 'src', source, path: `${gallery}.1` });
27136
+ if (list.roles['title'])
27137
+ second.bindings.push({ prop: 'alt', source, path: list.roles['title'] });
27138
+ setStyleProps(media, { position: 'relative', overflow: 'hidden' });
27139
+ media.children = [...(media.children ?? []), second];
27140
+ }
27141
+ /** The clip-up's inside (AW11-D15): the card's words rise the contract's distance as the card opens from its bottom edge. */
27142
+ function riseInside(item, ctx) {
27143
+ const content = findByRole(item, CardRole.Content);
27144
+ if (!content)
27145
+ return;
27146
+ const stagger = Math.round(LIST_STAGGER * ctx.pace.gap);
27147
+ content.interactions = [...content.interactions, {
27148
+ id: `${content.id}-enter`,
27149
+ trigger: 'viewportEnter',
27150
+ actions: [{ type: 'moveUp', target: 'self', duration: ctx.pace.support, delay: Math.round(ctx.pace.support / 3), easing: ctx.ease, once: true,
27151
+ params: { distance: LIST_RHYTHMS.clipUpRise, stagger, cap: LIST_STAGGER_CAP } }],
27152
+ }];
27153
+ }
27154
+ /**
27155
+ * Drifting picture rows (AW11-D16): two Marquees (the M6 recipe — a pause control first, still under reduced motion and a
27156
+ * look whose motion is Off, the ends faded), each holding the list's pictures, at different speeds and opposite ways.
27157
+ */
27158
+ function composeDriftRows(id, frame, item, source, l) {
27159
+ frame.role = LayoutListRole.DriftRows;
27160
+ const rows = [
27161
+ { speed: MarqueeSpeed.Normal, direction: MarqueeDirection.Start },
27162
+ { speed: MarqueeSpeed.Slow, direction: MarqueeDirection.End },
27163
+ ].map((how, k) => {
27164
+ const band = buildMarqueeRecipe(partFactory(`${id}-row${k + 1}`), { words: [] });
27165
+ setMarqueeSettings(band, { ...how, fade: true });
27166
+ const track = findByRole(band, MarqueeRole.Track);
27167
+ const items = create$1(`${id}-row${k + 1}-items`, 'Repeater', {}, 'box');
27168
+ items.role = LayoutListRole.DriftRow;
27169
+ items.bindings.push({ prop: 'source', source, path: '' });
27170
+ setStyleProps(items, { display: 'block', width: 'auto' });
27171
+ const copy = structuredClone(item);
27172
+ walkSerialized([copy], n => { n.id = n.id.replace(`${id}-item`, `${id}-row${k + 1}-item`); });
27173
+ items.children = [copy];
27174
+ if (track)
27175
+ track.children = [items];
27176
+ if (l.text)
27177
+ band.props['ariaLabel'] = l.text;
27178
+ return band;
27179
+ });
27180
+ setStyleProps(frame, { display: 'flex', flexDirection: 'column', gap: LIST_GAP });
27181
+ frame.children = rows;
27182
+ return frame;
27183
+ }
26026
27184
  /** Recipe parts stamped with this composer's ids (`<id>-<key>`). */
26027
27185
  function partFactory(id) {
26028
27186
  return spec => create$1(`${id}-${spec.key}`, spec.type, { ...(spec.props ?? {}) }, spec.elementStyle ?? null);
@@ -26722,7 +27880,7 @@ function stableHash(text) {
26722
27880
  return h.toString(36).padStart(7, '0').slice(-6);
26723
27881
  }
26724
27882
  const create = (id, type, props = {}, elementStyle) => createSerializedNode(id, type, props, elementStyle, COMPOSED);
26725
- function nonEmpty$2(v) {
27883
+ function nonEmpty$1(v) {
26726
27884
  return typeof v === 'string' && v.trim() !== '';
26727
27885
  }
26728
27886
  /** A pattern's own words with the compose-time variables filled: `{year}`, `{business.name}`. */
@@ -26738,16 +27896,16 @@ function ownWords(pn, locale) {
26738
27896
  function chooseText(pn, ctx) {
26739
27897
  const fact = pn.ph && FACT_KEYS.includes(pn.ph) ? pn.ph : null;
26740
27898
  const slotValue = pn.slot ? ctx.section?.slots?.[pn.slot] : undefined;
26741
- if (nonEmpty$2(slotValue))
27899
+ if (nonEmpty$1(slotValue))
26742
27900
  return { value: slotValue };
26743
27901
  if (pn.fromBusiness) {
26744
27902
  const v = ctx.plan.business[pn.fromBusiness];
26745
- if (nonEmpty$2(v))
27903
+ if (nonEmpty$1(v))
26746
27904
  return { value: v };
26747
27905
  }
26748
27906
  if (fact) {
26749
27907
  const given = ctx.plan.business.facts?.[fact];
26750
- return nonEmpty$2(given) ? { value: given } : { value: SITE_FACT_LABELS[fact], placeholder: { kind: PlaceholderKind.Fact, fact } };
27908
+ return nonEmpty$1(given) ? { value: given } : { value: SITE_FACT_LABELS[fact], placeholder: { kind: PlaceholderKind.Fact, fact } };
26751
27909
  }
26752
27910
  const own = pn.text === undefined ? undefined : fillVariables(ownWords(pn, ctx.plan.locale), ctx);
26753
27911
  if (pn.ph === PatternPlaceholder.Copy)
@@ -26853,7 +28011,7 @@ function layoutGalleryLists(plan) {
26853
28011
  /** The words a list's roles are called in the brief — what a visitor would see, never the field name. */
26854
28012
  const LIST_ROLE_WORDS = {
26855
28013
  title: 'name', summary: 'summary', image: 'picture', meta: 'detail', date: 'date', gallery: 'pictures',
26856
- logo: 'mark', icon: 'icon', quote: 'quote', person: 'person', link: 'link', price: 'price', compareAt: 'earlier price',
28014
+ logo: 'mark', icon: 'icon', quote: 'quote', person: 'person', link: 'link', colour: 'colour', price: 'price', compareAt: 'earlier price',
26857
28015
  };
26858
28016
  /** A text role whose planned samples run past this many words (median) is called long: a small card would cut it. */
26859
28017
  const LIST_LONG_WORDS = 20;
@@ -26875,7 +28033,13 @@ function layoutListShapes(plan) {
26875
28033
  });
26876
28034
  // A shop list holds the plan's sample products (the build writes them unless the shop has its own).
26877
28035
  const count = d.type === PlanDataSourceType.Shop ? plan.shop?.products?.length : type?.seed?.count;
26878
- return { alias: d.alias, label: type?.label ?? d.alias, items: typeof count === 'number' && count > 0 ? count : null, roles: played, long };
28036
+ // AW11: how long the planned names run (a long one is not set on its picture).
28037
+ const titleField = roleField(type, ContentRole.Title);
28038
+ const titles = titleField ? (perItem[titleField] ?? []).filter(s => typeof s === 'string') : [];
28039
+ return {
28040
+ alias: d.alias, label: type?.label ?? d.alias, items: typeof count === 'number' && count > 0 ? count : null, roles: played, long,
28041
+ ...(titles.length ? { titleWords: median(titles.map(wordCount)) } : {}),
28042
+ };
26879
28043
  });
26880
28044
  }
26881
28045
  /**
@@ -26917,12 +28081,18 @@ function layoutListsContext(page, plan) {
26917
28081
  function layoutGallerySources(plan) {
26918
28082
  return layoutGalleryLists(plan).filter(l => l.pictures).map(l => l.alias);
26919
28083
  }
28084
+ /** The prop a node's words live in (iox-ui#111: emptied when it is bound). */
28085
+ const BOUND_WORDS_PROP = 'content';
26920
28086
  function addBinding(node, binding) {
26921
28087
  const declared = NODE_BASELINES[node.type]?.traits ?? [];
26922
28088
  if (!declared.includes(binding.prop) && !binding.prop.startsWith('routeParam:')) {
26923
28089
  throw new ComposeError(`${node.type} has no trait "${binding.prop}" to bind`);
26924
28090
  }
26925
28091
  node.bindings.push(binding);
28092
+ // iox-ui#111: bound words are the row's — never the recipe's or the type's own ("Category", "Card title", "Enter text
28093
+ // here"): a renderer keeps the static words when the row has no value there, and they reached the live site.
28094
+ if (binding.prop === BOUND_WORDS_PROP)
28095
+ node.props[BOUND_WORDS_PROP] = '';
26926
28096
  }
26927
28097
  function assertTraits(type, names) {
26928
28098
  const declared = NODE_BASELINES[type]?.traits ?? [];
@@ -27875,12 +29045,12 @@ function fitSeo(text, max) {
27875
29045
  */
27876
29046
  function composePageSeo(page, plan) {
27877
29047
  const name = plan.business.name.trim();
27878
- const tagline = nonEmpty$2(plan.business.tagline) ? plan.business.tagline.trim() : '';
27879
- const city = nonEmpty$2(plan.business.facts?.city) ? plan.business.facts.city.trim() : '';
29048
+ const tagline = nonEmpty$1(plan.business.tagline) ? plan.business.tagline.trim() : '';
29049
+ const city = nonEmpty$1(plan.business.facts?.city) ? plan.business.facts.city.trim() : '';
27880
29050
  const perItem = !!page.routeSource;
27881
- const title = nonEmpty$2(page.seo?.title) ? page.seo.title
29051
+ const title = nonEmpty$1(page.seo?.title) ? page.seo.title
27882
29052
  : perItem ? undefined : fitSeo(page.isHome ? (tagline ? `${name}${SEO_LINE}${tagline}` : name) : `${page.name}${SEO_JOIN}${name}`, SEO_TITLE_MAX);
27883
- const description = nonEmpty$2(page.seo?.description) ? page.seo.description
29053
+ const description = nonEmpty$1(page.seo?.description) ? page.seo.description
27884
29054
  : perItem ? undefined : fitSeo(tagline || `${page.name}${SEO_LINE}${name}${city ? `, ${city}` : ''}.`, SEO_DESCRIPTION_MAX);
27885
29055
  return { ...(title ? { title } : {}), ...(description ? { description } : {}) };
27886
29056
  }
@@ -28001,7 +29171,7 @@ function composeLayoutPage(page, layout, plan, context, design, placeholders, re
28001
29171
  const missing = [];
28002
29172
  node.props[prop] = value.replace(FACT_TOKEN, (_, key) => {
28003
29173
  const given = facts[key];
28004
- if (nonEmpty$2(given))
29174
+ if (nonEmpty$1(given))
28005
29175
  return given.trim();
28006
29176
  missing.push(key);
28007
29177
  return SITE_FACT_LABELS[key] ?? key;
@@ -28040,7 +29210,7 @@ function composeSite(plan, context) {
28040
29210
  const issues = [];
28041
29211
  const routes = new Set(plan.pages.map(p => p.route));
28042
29212
  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 }]));
28043
- const email = nonEmpty$2(plan.business.facts?.email) ? plan.business.facts.email.trim() : null;
29213
+ const email = nonEmpty$1(plan.business.facts?.email) ? plan.business.facts.email.trim() : null;
28044
29214
  const base = { plan, placeholders, issues, routes, year: context.year, email, navPage: null };
28045
29215
  // AW-D23 / MB-D6: a lower plan wears its own words of the look's motion language (a Pro Feel arrives on today's
28046
29216
  // curve, a Pro move fades) — in the tokens the build applies AND the entrances it stamps.
@@ -28375,11 +29545,11 @@ function navHeaderContext(input) {
28375
29545
  return headerContextOfPlan(navHeaderPlan(input), input.shop ?? null);
28376
29546
  }
28377
29547
  function composeNavHeader(input, options) {
28378
- if (!nonEmpty$2(options?.id))
29548
+ if (!nonEmpty$1(options?.id))
28379
29549
  throw new ComposeError('composeNavHeader needs the header id');
28380
29550
  const plan = navHeaderPlan(input);
28381
29551
  const pages = plan.pages;
28382
- const email = nonEmpty$2(input.business.facts?.email) ? input.business.facts.email.trim() : null;
29552
+ const email = nonEmpty$1(input.business.facts?.email) ? input.business.facts.email.trim() : null;
28383
29553
  const issues = [];
28384
29554
  // HI1: ONE recipe with composeSite — the mix drawn as the product draws it, checked against this studio, arranged.
28385
29555
  const context = headerContextOfPlan(plan, input.shop ?? null);
@@ -28419,7 +29589,7 @@ const PRICING_PATTERN = 'pricing.tiers';
28419
29589
  * words, unlinked, for the author to link. Pure.
28420
29590
  */
28421
29591
  function composeSection(patternId, input, options) {
28422
- if (!nonEmpty$2(options?.id))
29592
+ if (!nonEmpty$1(options?.id))
28423
29593
  throw new ComposeError('composeSection needs the section id');
28424
29594
  const pattern = patternById(patternId);
28425
29595
  if (!pattern)
@@ -28429,7 +29599,7 @@ function composeSection(patternId, input, options) {
28429
29599
  const business = input.business ?? { name: '' };
28430
29600
  const pages = navPagePlans(input.pages ?? []);
28431
29601
  const plan = { business, pages, dataSources: [], contentTypes: [] };
28432
- const email = nonEmpty$2(business.facts?.email) ? business.facts.email.trim() : null;
29602
+ const email = nonEmpty$1(business.facts?.email) ? business.facts.email.trim() : null;
28433
29603
  const placeholders = [];
28434
29604
  const issues = [];
28435
29605
  const ctx = {
@@ -28569,7 +29739,7 @@ function openingContextOf(input) {
28569
29739
  * written for them. The root stores the mix (OB-5). Pure.
28570
29740
  */
28571
29741
  function composeOpening(input, options) {
28572
- if (!nonEmpty$2(options?.id))
29742
+ if (!nonEmpty$1(options?.id))
28573
29743
  throw new ComposeError('composeOpening needs the section id');
28574
29744
  const business = input.business ?? { name: '' };
28575
29745
  const context = openingContextOf(input);
@@ -28577,7 +29747,7 @@ function composeOpening(input, options) {
28577
29747
  const checked = input.asAsked ? { mix: drawn, repairs: [] } : checkOpening(drawn, context);
28578
29748
  const pages = navPagePlans(input.pages ?? []);
28579
29749
  const plan = { business, pages, dataSources: [], contentTypes: [], locale: input.locale };
28580
- const email = nonEmpty$2(business.facts?.email) ? business.facts.email.trim() : null;
29750
+ const email = nonEmpty$1(business.facts?.email) ? business.facts.email.trim() : null;
28581
29751
  const placeholders = [];
28582
29752
  const issues = [];
28583
29753
  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)]) {
@@ -29574,8 +30744,8 @@ class PlanWireShapeError extends Error {
29574
30744
  }
29575
30745
  // ── The format ─────────────────────────────────────────────────────────────────────────────────────────────────────
29576
30746
  const unique = (values) => [...new Set(values)];
29577
- const NONE$1 = '';
29578
- const orNone = (values) => jsonOneOf([NONE$1, ...values]);
30747
+ const NONE = '';
30748
+ const orNone = (values) => jsonOneOf([NONE, ...values]);
29579
30749
  const closedOrText = (values) => (values.length ? jsonOneOf(values) : jsonText());
29580
30750
  const shaped = (entry, properties) => jsonShapedObject(PLAN_WIRE_SHAPE[entry], properties, `wire ${entry}`);
29581
30751
  /** The patterns a page section may use (every non-global one but a film's, which `placeFilm` places), in library order. */
@@ -29688,7 +30858,7 @@ function planWirePartJsonSchema(part, options = {}) {
29688
30858
  return jsonShapedObject(planWirePartShape(part, options), Object.fromEntries(PLAN_PART_KEYS[part].map(k => [k, PLAN_TOP_SCHEMAS[k](options)])), `wire plan ${part}`);
29689
30859
  }
29690
30860
  /** A value standing for "absent": `''` (or nothing at all). */
29691
- const isNone = (v) => v === undefined || v === NONE$1;
30861
+ const isNone = (v) => v === undefined || v === NONE;
29692
30862
  const optional = (name, v, none = isNone) => (none(v) ? {} : { [name]: v });
29693
30863
  const emptyList = (v) => v === undefined || (Array.isArray(v) && v.length === 0);
29694
30864
  /** `[{ <keyName>, <valueName> }]` → `{ key: value }`; anything else is left for the gate to refuse. */
@@ -29817,7 +30987,7 @@ function expandPlanWire(parts, context) {
29817
30987
  ...rest,
29818
30988
  ...expandWireGlobals(globals),
29819
30989
  ...(sells === undefined ? {} : { shop: sells }),
29820
- ...(isPlainObject(direction) && direction['idea'] === NONE$1 ? {} : direction === undefined ? {} : { direction }),
30990
+ ...(isPlainObject(direction) && direction['idea'] === NONE ? {} : direction === undefined ? {} : { direction }),
29821
30991
  version: SITE_PLAN_VERSION,
29822
30992
  source: { ...context.source },
29823
30993
  business: expandWireBusiness(business, context.facts),
@@ -29865,7 +31035,7 @@ function expandWireGlobals(globals) {
29865
31035
  }
29866
31036
  // ── The plan → the wire ────────────────────────────────────────────────────────────────────────────────────────────
29867
31037
  function fieldToWire(field) {
29868
- return { name: field.name, controller: field.controller, required: field.required ?? false, note: field.note ?? NONE$1 };
31038
+ return { name: field.name, controller: field.controller, required: field.required ?? false, note: field.note ?? NONE };
29869
31039
  }
29870
31040
  function contentTypeToWire(type, options = {}) {
29871
31041
  const played = type.roles;
@@ -29877,37 +31047,37 @@ function contentTypeToWire(type, options = {}) {
29877
31047
  };
29878
31048
  }
29879
31049
  function dataSourceToWire(source) {
29880
- const blank = { alias: source.alias, type: source.type, mode: NONE$1, contentType: NONE$1, limit: 0, filterField: NONE$1, routeParam: NONE$1, of: NONE$1, op: NONE$1, within: NONE$1 };
31050
+ const blank = { alias: source.alias, type: source.type, mode: NONE, contentType: NONE, limit: 0, filterField: NONE, routeParam: NONE, of: NONE, op: NONE, within: NONE };
29881
31051
  if (source.type === PlanDataSourceType.Relative)
29882
31052
  return { ...blank, of: source.of, op: source.op, within: source.within };
29883
31053
  if (source.type === PlanDataSourceType.Shop) {
29884
31054
  return {
29885
31055
  ...blank, mode: source.mode, contentType: source.resource, limit: source.limit ?? 0,
29886
- filterField: source.filterByRouteParam?.field ?? NONE$1, routeParam: source.filterByRouteParam?.routeParam ?? NONE$1,
31056
+ filterField: source.filterByRouteParam?.field ?? NONE, routeParam: source.filterByRouteParam?.routeParam ?? NONE,
29887
31057
  };
29888
31058
  }
29889
31059
  return {
29890
31060
  ...blank, mode: source.mode, contentType: source.contentType, limit: source.limit ?? 0,
29891
- filterField: source.filterByRouteParam?.field ?? NONE$1, routeParam: source.filterByRouteParam?.routeParam ?? NONE$1,
31061
+ filterField: source.filterByRouteParam?.field ?? NONE, routeParam: source.filterByRouteParam?.routeParam ?? NONE,
29892
31062
  };
29893
31063
  }
29894
31064
  function sectionToWire(section) {
29895
31065
  return {
29896
31066
  pattern: section.pattern, slots: mapToList(section.slots, 'slot', 'text'), links: mapToList(section.links, 'slot', 'route'),
29897
- binding: section.binding ?? NONE$1, without: [...(section.without ?? [])], form: section.form ?? NONE$1, enter: section.enter ?? NONE$1,
31067
+ binding: section.binding ?? NONE, without: [...(section.without ?? [])], form: section.form ?? NONE, enter: section.enter ?? NONE,
29898
31068
  };
29899
31069
  }
29900
31070
  function pageToWire(page, options = {}) {
29901
31071
  return {
29902
- key: page.key, name: page.name, route: page.route, inNav: page.inNav ?? false, archetype: page.archetype ?? NONE$1, need: page.need ?? NONE$1,
29903
- template: page.template ?? NONE$1, routeSource: page.routeSource ?? NONE$1,
29904
- seo: { title: page.seo?.title ?? NONE$1, description: page.seo?.description ?? NONE$1 },
31072
+ key: page.key, name: page.name, route: page.route, inNav: page.inNav ?? false, archetype: page.archetype ?? NONE, need: page.need ?? NONE,
31073
+ template: page.template ?? NONE, routeSource: page.routeSource ?? NONE,
31074
+ seo: { title: page.seo?.title ?? NONE, description: page.seo?.description ?? NONE },
29905
31075
  ...(options.children === false ? {} : { sections: page.sections.map(sectionToWire) }),
29906
31076
  compose: page.compose ?? false,
29907
31077
  };
29908
31078
  }
29909
31079
  const PLAN_TO_WIRE = {
29910
- business: plan => ({ name: plan.business.name, tagline: plan.business.tagline ?? NONE$1 }),
31080
+ business: plan => ({ name: plan.business.name, tagline: plan.business.tagline ?? NONE }),
29911
31081
  contentTypes: plan => plan.contentTypes.map(type => contentTypeToWire(type)),
29912
31082
  dataSources: plan => plan.dataSources.map(dataSourceToWire),
29913
31083
  pages: plan => plan.pages.map(page => pageToWire(page)),
@@ -29917,7 +31087,7 @@ const PLAN_TO_WIRE = {
29917
31087
  // AW6: the award tier's wire writes the body ([] = none); every other tier's has no such key (its plan wears none).
29918
31088
  ...(isAward(options) ? { [BODY_WIRE_KEY]: [...(plan.mixes?.body ?? [])] } : {}),
29919
31089
  }),
29920
- direction: plan => ({ idea: plan.direction?.idea ?? NONE$1, cliche: plan.direction?.cliche ?? NONE$1, flip: plan.direction?.flip ?? NONE$1, rules: [...(plan.direction?.rules ?? [])] }),
31090
+ direction: plan => ({ idea: plan.direction?.idea ?? NONE, cliche: plan.direction?.cliche ?? NONE, flip: plan.direction?.flip ?? NONE, rules: [...(plan.direction?.rules ?? [])] }),
29921
31091
  shop: plan => (plan.shop?.products ?? []).map(p => ({ name: p.name, category: p.category, description: p.description, options: p.options.map(o => ({ name: o.name, values: [...o.values] })) })),
29922
31092
  };
29923
31093
  /** One part of the plan on the wire: what that part's request (asked at `options`' tier) would have answered. */
@@ -30015,7 +31185,7 @@ function additionSourcesOf(typeName) {
30015
31185
  ];
30016
31186
  }
30017
31187
  const list = (value) => (Array.isArray(value) ? value : []);
30018
- const text$1 = (value) => (typeof value === 'string' ? value : '');
31188
+ const text = (value) => (typeof value === 'string' ? value : '');
30019
31189
  /** Does the Pages answer ask for content (so the Content request is asked). */
30020
31190
  function additionsNeedContent(pagesAnswer) {
30021
31191
  return isPlainObject(pagesAnswer) && (list(pagesAnswer['newTypes']).length > 0 || list(pagesAnswer['newItems']).length > 0);
@@ -30027,21 +31197,21 @@ function additionsNeedContent(pagesAnswer) {
30027
31197
  function expandAdditions(pagesAnswer, contentAnswer) {
30028
31198
  const pages = isPlainObject(pagesAnswer) ? pagesAnswer : {};
30029
31199
  const content = isPlainObject(contentAnswer) ? contentAnswer : {};
30030
- const newTypes = list(pages['newTypes']).filter(isPlainObject).map(t => ({ name: text$1(t['name']), label: text$1(t['label']) }));
31200
+ const newTypes = list(pages['newTypes']).filter(isPlainObject).map(t => ({ name: text(t['name']), label: text(t['label']) }));
30031
31201
  return {
30032
31202
  pages: list(pages['pages']).filter(isPlainObject).map(wire => {
30033
31203
  const { origin, reason, ...page } = wire;
30034
- return { page: expandWirePage(page), origin: origin, reason: text$1(reason) };
31204
+ return { page: expandWirePage(page), origin: origin, reason: text(reason) };
30035
31205
  }),
30036
31206
  contentTypes: list(content['contentTypes']).map(t => expandWireContentType(t)),
30037
31207
  dataSources: newTypes.filter(t => t.name).flatMap(t => additionSourcesOf(t.name)),
30038
31208
  items: list(content['items']).filter(isPlainObject).map(item => ({
30039
- contentType: text$1(item['contentType']),
30040
- values: Object.fromEntries(list(item['values']).filter(isPlainObject).map(v => [text$1(v['field']), v['value']])),
31209
+ contentType: text(item['contentType']),
31210
+ values: Object.fromEntries(list(item['values']).filter(isPlainObject).map(v => [text(v['field']), v['value']])),
30041
31211
  })),
30042
31212
  asks: {
30043
31213
  newTypes,
30044
- newItems: list(pages['newItems']).filter(isPlainObject).map(n => ({ contentType: text$1(n['contentType']), count: Number(n['count']) || 0 })),
31214
+ newItems: list(pages['newItems']).filter(isPlainObject).map(n => ({ contentType: text(n['contentType']), count: Number(n['count']) || 0 })),
30045
31215
  },
30046
31216
  };
30047
31217
  }
@@ -31049,7 +32219,7 @@ const NO_INDEX = -1;
31049
32219
  /** A new page or content type on the wire: its children are edits of their own. */
31050
32220
  const CHILDLESS = { children: false };
31051
32221
  /** A list holding exactly one object: none → absent, one → it (expanded), more → the list (the gate refuses it). */
31052
- const oneOf$1 = (schema, expand, toWire, what) => ({
32222
+ const oneOf = (schema, expand, toWire, what) => ({
31053
32223
  text: `${what}[] — exactly one when the op takes it`,
31054
32224
  none: [],
31055
32225
  schema: () => jsonListOf(schema()),
@@ -31073,12 +32243,12 @@ const EDIT_WIRE = {
31073
32243
  binding: textKey('setSectionData: the list source the section repeats'),
31074
32244
  contentType: textKey('addField: a content type of the plan'),
31075
32245
  newPage: {
31076
- ...oneOf$1(() => wirePageJsonSchema(CHILDLESS), v => expandWirePage(v, CHILDLESS), p => pageToWire(p, CHILDLESS), 'page'),
32246
+ ...oneOf(() => wirePageJsonSchema(CHILDLESS), v => expandWirePage(v, CHILDLESS), p => pageToWire(p, CHILDLESS), 'page'),
31077
32247
  text: 'page[] — exactly one when the op takes it, WITHOUT sections: each is an addSection after it',
31078
32248
  },
31079
- newSection: oneOf$1(wireSectionJsonSchema, expandWireSection, sectionToWire, 'section'),
32249
+ newSection: oneOf(wireSectionJsonSchema, expandWireSection, sectionToWire, 'section'),
31080
32250
  newContentType: {
31081
- ...oneOf$1(() => wireContentTypeJsonSchema(CHILDLESS), v => expandWireContentType(v, CHILDLESS), t => contentTypeToWire(t, CHILDLESS), 'contentType'),
32251
+ ...oneOf(() => wireContentTypeJsonSchema(CHILDLESS), v => expandWireContentType(v, CHILDLESS), t => contentTypeToWire(t, CHILDLESS), 'contentType'),
31082
32252
  text: "contentType[] — exactly one when the op takes it, WITHOUT fields: each is an addField after it (the samples' values stay in its seed)",
31083
32253
  },
31084
32254
  dataSources: {
@@ -31087,7 +32257,7 @@ const EDIT_WIRE = {
31087
32257
  expand: v => (Array.isArray(v) ? v.map(expandWireDataSource) : v),
31088
32258
  toWire: (v) => v.map(dataSourceToWire),
31089
32259
  },
31090
- newField: oneOf$1(wireFieldJsonSchema, expandWireField, fieldToWire, 'field'),
32260
+ newField: oneOf(wireFieldJsonSchema, expandWireField, fieldToWire, 'field'),
31091
32261
  sample: { text: "string | string[] — addField: the samples' value for it", none: '', schema: () => jsonAnyOf([jsonText(), jsonListOf(jsonText())]) },
31092
32262
  };
31093
32263
  /** Each op's keys (`PLAN_EDIT_SHAPE`) → the wire key that carries it. */
@@ -31424,14 +32594,14 @@ function routeMatches(pattern, path) {
31424
32594
  const b = String(path ?? '').split(/[?#]/)[0].split('/').filter(Boolean);
31425
32595
  return a.length === b.length && a.every((seg, i) => seg.startsWith(':') || seg === b[i]);
31426
32596
  }
31427
- const nonEmpty$1 = (v) => typeof v === 'string' && v.trim() !== '';
32597
+ const nonEmpty = (v) => typeof v === 'string' && v.trim() !== '';
31428
32598
  /** A stored SEO field (a string, or `{ override, binding, auto }`) has a value, or may be derived. */
31429
32599
  function seoField(raw, derivable) {
31430
- if (nonEmpty$1(raw))
32600
+ if (nonEmpty(raw))
31431
32601
  return true;
31432
32602
  if (raw && typeof raw === 'object') {
31433
32603
  const v = raw;
31434
- if (nonEmpty$1(v.override) || v.binding)
32604
+ if (nonEmpty(v.override) || v.binding)
31435
32605
  return true;
31436
32606
  if (v.auto === false)
31437
32607
  return false;
@@ -31443,7 +32613,7 @@ function hasContent(layout, type) {
31443
32613
  walkSerialized(layout, n => {
31444
32614
  if (n.type !== type || found)
31445
32615
  return;
31446
- found = nonEmpty$1(n.props['content']) || n.bindings.some(b => b.prop === 'content');
32616
+ found = nonEmpty(n.props['content']) || n.bindings.some(b => b.prop === 'content');
31447
32617
  });
31448
32618
  return found;
31449
32619
  }
@@ -31472,7 +32642,7 @@ function checkForms(ctx, snapshot, pages) {
31472
32642
  if (n.type !== FORM_NODE_TYPE)
31473
32643
  return;
31474
32644
  const spec = collectFormSpec(n);
31475
- if (!spec || !nonEmpty$1(spec.formId))
32645
+ if (!spec || !nonEmpty(spec.formId))
31476
32646
  add(ctx, SiteFindingCode.FormWithoutId, 'A form has no id, so what visitors send is never stored.', { ...where, nodeId: n.id });
31477
32647
  if (spec?.actions.some(a => a.type === EMAIL_DELIVERY) && snapshot.connectors[MAILER] !== true) {
31478
32648
  add(ctx, SiteFindingCode.EmailNeedsMailer, 'A form emails what visitors send, but Email is not connected — it is stored and never sent.', { ...where, nodeId: n.id });
@@ -31678,14 +32848,14 @@ function checkAccessibility(ctx, snapshot, pages) {
31678
32848
  eachNode(snapshot, pages, (n, where) => {
31679
32849
  if (n.type !== 'Image')
31680
32850
  return;
31681
- if (!nonEmpty$1(n.props['src']) && !n.bindings.some(b => b.prop === 'src')) {
32851
+ if (!nonEmpty(n.props['src']) && !n.bindings.some(b => b.prop === 'src')) {
31682
32852
  if (!said.has(n.id))
31683
32853
  add(ctx, SiteFindingCode.PictureMissing, 'A box on this page waits for a picture — add one of yours.', { ...where, nodeId: n.id });
31684
32854
  return;
31685
32855
  }
31686
32856
  const decorative = n.props['alt'] === '' && n.props['decorative'] === true;
31687
32857
  const bound = n.bindings.some(b => b.prop === 'alt');
31688
- if (!decorative && !bound && !nonEmpty$1(n.props['alt']))
32858
+ if (!decorative && !bound && !nonEmpty(n.props['alt']))
31689
32859
  add(ctx, SiteFindingCode.ImageWithoutAlt, 'A picture has no description for people who cannot see it.', { ...where, nodeId: n.id });
31690
32860
  });
31691
32861
  }
@@ -32726,440 +33896,6 @@ function luminanceOf(colour) {
32726
33896
  return c ? relativeLuminance(c) : null;
32727
33897
  }
32728
33898
 
32729
- /**
32730
- * The LAYOUT WIRE (premium M8 gate 2, M8-G2-D2): the strict format a model writes ONE composed page in. Every key is
32731
- * required — "none" is `''`, `0`, `[]` or `'none'` — so the request stays at 37 properties, no optional key and no
32732
- * union (`strictSchemaComplexity`, held by iox-cms strict-schemas.spec). `expandLayoutWire` turns it into the layout
32733
- * language (`LayoutSection[]`, what `checkLayout` judges and `composeLayout` stamps); `layoutToWire` writes a layout back
32734
- * (the three proof sites, a repair's starting point). What the wire leaves out is derived, never asked: a layer's beat
32735
- * (the order it is written), the look, the pace and ease, the nav, the site's name and language.
32736
- */
32737
- const V = SPEC_SITE_LAYOUT.vocab;
32738
- const GALLERY_EFFECTS = V.galleryEffects;
32739
- const FORM_PRESETS = V.formPresets;
32740
- const BUTTON_VARIANTS = V.buttonVariants;
32741
- const NONE = 'none';
32742
- const CLIP = 'clipReveal';
32743
- const CLIP_SIDE = `${CLIP}-`;
32744
- /** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
32745
- const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
32746
- const CHIP_SLOTS = Array.from(new Set(Object.values(V.formChips).flat()));
32747
- const SLOT_NAMES = [...V.formSlots, ...CHIP_SLOTS];
32748
- const ENTER_ON_WIRE = V.enters.flatMap((e) => (e === CLIP ? V.sides.map((s) => `${CLIP_SIDE}${s}`) : [e]));
32749
- const VARIANT_ON_WIRE = [NONE, ...V.buttonVariants, ...V.galleryEffects, ...V.formPresets];
32750
- /**
32751
- * List ingredients (list-ingredients-plan.md §2, LI1): a list section's mix travels as ONE list of `<ingredient>:<word>`
32752
- * words (`arrange:strips`, `hover:dim`) and its parts as `<list>.<role>` (`stories.quote`) — two properties, so the
32753
- * request stays inside the 40 the budget allows, and the parts enum is generated from the plan's own lists: a model
32754
- * cannot name a part its list does not have (R-H2).
32755
- */
32756
- var LayoutMixIngredient;
32757
- (function (LayoutMixIngredient) {
32758
- LayoutMixIngredient["Item"] = "item";
32759
- LayoutMixIngredient["Arrange"] = "arrange";
32760
- LayoutMixIngredient["Who"] = "who";
32761
- LayoutMixIngredient["How"] = "how";
32762
- LayoutMixIngredient["Move"] = "move";
32763
- LayoutMixIngredient["Hover"] = "hover";
32764
- LayoutMixIngredient["Arrive"] = "arrive";
32765
- LayoutMixIngredient["Phone"] = "phone";
32766
- })(LayoutMixIngredient || (LayoutMixIngredient = {}));
32767
- const MIX_SEPARATOR = ':';
32768
- const PART_SEPARATOR = '.';
32769
- /** Every word a stored mix may hold, ingredient by ingredient (a waiting word too: a stored answer still reads). */
32770
- const LAYOUT_MIX_WORDS = LIST_INGREDIENTS.flatMap(k => listIngredientWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
32771
- /** The words the wire OFFERS — the built ones only (ingredients.md §3.3): a waiting word would put its stand-in on every
32772
- * site that asked for it. */
32773
- const LAYOUT_MIX_OFFERED = LIST_INGREDIENTS.flatMap(k => listBuiltWords(k).map(w => `${k}${MIX_SEPARATOR}${w}`));
32774
- /** AW10: the entrance and the switch a look that never scrubs is not offered. */
32775
- const LETTERS = 'letters';
32776
- const SCRUB_FLAG = 'scrub';
32777
- /** The entrances the wire offers under the look's scrub (AW10 H3). */
32778
- function layoutEntersOffered(scrub) {
32779
- return ENTER_ON_WIRE.filter(e => e !== LETTERS || scrubOffered(scrub));
32780
- }
32781
- /** The switches the wire offers under the look's scrub (AW10 H3). */
32782
- function layoutFlagsOffered(scrub) {
32783
- return V.flags.filter(f => f !== SCRUB_FLAG || scrubOffered(scrub));
32784
- }
32785
- const scrubOffered = (scrub) => !!scrub && scrub !== ScrubId.Never && isScrubId(scrub);
32786
- /** A handle the wire places as a whole SECTION (RD-D20): a bound part, a block or a kept section. */
32787
- const SECTION_HANDLE = /^(?:bind|block|keep):/;
32788
- /** Is `handle` one a section places whole (`bind:`/`block:`/`keep:`), never a layer's words or photo? */
32789
- function isSectionCarryHandle(handle) {
32790
- return SECTION_HANDLE.test(handle);
32791
- }
32792
- /** The mix words offered to a business whose lists never do `never` (L-D12): the built words less the forbidden ones. */
32793
- function layoutMixOffered(never) {
32794
- const banned = new Set([...(never?.arranges ?? []).map(w => `arrange${MIX_SEPARATOR}${w}`), ...(never?.moves ?? []).map(w => `move${MIX_SEPARATOR}${w}`)]);
32795
- return LAYOUT_MIX_OFFERED.filter(w => !banned.has(w));
32796
- }
32797
- const mixHint = (offered) => LIST_INGREDIENTS.map(k => {
32798
- const words = offered.filter(w => w.startsWith(`${k}${MIX_SEPARATOR}`)).map(w => w.slice(k.length + MIX_SEPARATOR.length));
32799
- return `${k}:${words.join('|')}${LIST_TABLE.many.includes(k) ? ' (any)' : ''}`;
32800
- }).join(' · ');
32801
- /** `<list>.<role>` for every role of every list — what a list section's `parts` may name. */
32802
- function layoutWirePartWords(lists) {
32803
- return lists.flatMap(l => l.roles.map(r => `${l.alias}${PART_SEPARATOR}${r}`));
32804
- }
32805
- const text = (d) => ({ ...jsonText(), description: d });
32806
- const integer = (d) => ({ ...jsonInteger(), description: d });
32807
- const oneOf = (values, d) => ({ ...jsonOneOf(values), description: d });
32808
- const listOf = (items, d) => ({ ...jsonListOf(items), description: d });
32809
- const closed = (properties, d) => jsonClosedObject(properties, Object.keys(properties), d);
32810
- /** The strict format for one composed page — with the list ingredients when `options.lists` is given. */
32811
- function layoutWireJsonSchema(options = {}) {
32812
- const partWords = options.lists ? layoutWirePartWords(options.lists) : [];
32813
- const lists = options.lists
32814
- ? {
32815
- mix: listOf(jsonOneOf(layoutMixOffered(options.never)), `gallery showing a list (source): how its items are shown, one word per choice — ${mixHint(layoutMixOffered(options.never))}; [] for none`),
32816
- parts: listOf(jsonOneOf(partWords.length ? partWords : [NONE]), "gallery showing a list as cards: the list's fields each card shows, <list>.<role>, the source's own; [] for none"),
32817
- }
32818
- : {};
32819
- const carried = options.carry
32820
- ? {
32821
- carry: oneOf([NONE, ...options.carry], "a redesign: the owner's part this layer shows, by handle — its words, photo or form as they are (write no text of your own then); a section's ONLY layer naming a bind:/block:/keep: handle makes the whole section that part; 'none' for a layer of your own"),
32822
- }
32823
- : {};
32824
- const layer = closed({
32825
- kind: oneOf(V.kinds, 'what the layer is'),
32826
- role: oneOf(V.roles, 'lead: the ONE thing the eye finds first in its section · support: follows it · decoration: only fades · static: never moves'),
32827
- text: text("the words (word, heading, text, label, number, button); '' for none; a fact you were not given is {fact:<key>}"),
32828
- items: listOf(jsonText(), 'list items · marquee phrases · one caption per gallery photo; [] for none'),
32829
- photos: listOf(jsonText(), 'photo: one photo id · gallery: its slides, in order; ids from the photos you are given; [] for none'),
32830
- source: text("gallery: the alias of a list data source whose items it shows instead of photos; '' for none"),
32831
- box: listOf(jsonInteger(), '[colStart, colEnd, rowStart, rowEnd]: grid lines 1..13 (1..12×hold+1 sideways) and 1..rows+1'),
32832
- size: oneOf([NONE, ...V.sizes], "type size; 'screen' = as wide as its columns, a word, never a sentence"),
32833
- color: oneOf(V.colours, "the look's colour by name"),
32834
- align: oneOf(V.aligns, 'text alignment'),
32835
- z: integer('0..9 stacking'),
32836
- bleed: oneOf(V.bleeds, 'runs off the screen at that edge'),
32837
- rotate: integer("degrees, within the look's limit"),
32838
- to: text("button: a section id of this page or a page route ('/contact'); '' for none"),
32839
- variant: oneOf(VARIANT_ON_WIRE, 'button: primary | secondary | ghost · gallery: its effect · form: its preset · none'),
32840
- enter: oneOf(layoutEntersOffered(options.scrub), scrubOffered(options.scrub)
32841
- ? 'plays once as it arrives (time); clipReveal opens from that side; letters: a line of words rises letter by letter (a display line)'
32842
- : 'plays once as it arrives (time); clipReveal opens from that side'),
32843
- depth: oneOf([NONE, ...V.depths], 'the parallax trio (not in held sections)'),
32844
- inner: integer('0..3: how far a photo drifts inside its frame'),
32845
- flags: listOf(jsonOneOf(layoutFlagsOffered(options.scrub)), `switches: scrim (a shadow under words on a photo) · kinetic (lit word by word, held only) · contain · gallery: centered, freeMode, loop, drift, scroll (held only: the scroll turns it), autoplay${scrubOffered(options.scrub) ? ` · scrub (its entrance follows the scroll instead of playing once — ${options.scrub === ScrubId.Words ? 'a mask rise or letters only' : 'any entrance'}; never in the first section)` : ''}; [] for none`),
32846
- perView: { type: 'number', description: 'gallery slides per view; 0 for none' },
32847
- slots: listOf(closed({ slot: oneOf(SLOT_NAMES, 'which words'), text: text('the words, in the business\'s language') }), "form: its title, intro, submit, successTitle, successText, channel, and one entry per chip (needs · budget · guests); [] for none"),
32848
- motion: listOf(closed({
32849
- prop: oneOf(V.trackProps, 'what moves'),
32850
- ease: oneOf(V.eases, 'how'),
32851
- values: listOf({ type: 'number' }, '[from, to, at0, at1]: values and the part of the hold it plays over (0..1)'),
32852
- }), 'held sections only: tracks the scroll plays; [] for none'),
32853
- ...lists,
32854
- ...carried,
32855
- });
32856
- const section = closed({
32857
- id: text('a short slug, unique on the page'),
32858
- kind: oneOf(V.sectionKinds, 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
32859
- screens: integer('1..5 screen heights'),
32860
- hold: integer('0 flows · 1 held (the page stops while its layers move) · 2..4 held and carried sideways that many screens'),
32861
- ground: text("a colour name, or photo:<id>"),
32862
- rows: integer('4..16 grid rows'),
32863
- transition: oneOf(V.transitions, 'how it arrives over the section before'),
32864
- phone: listOf(jsonInteger(), "every layer's index exactly once, in a phone's reading order"),
32865
- layers: listOf(layer, 'the layers'),
32866
- });
32867
- return closed({ sections: listOf(section, '4..8 sections') }, 'one composed page in the layout language');
32868
- }
32869
- const nonEmpty = (v) => typeof v === 'string' && v.trim() !== '';
32870
- const num = (v, fallback = 0) => (typeof v === 'number' && Number.isFinite(v) ? v : fallback);
32871
- const strings = (v) => (Array.isArray(v) ? v.filter((x) => typeof x === 'string') : []);
32872
- function expandForm(l, preset) {
32873
- const form = { preset: preset };
32874
- const options = {};
32875
- for (const s of Array.isArray(l['slots']) ? l['slots'] : []) {
32876
- if (!isPlainObject(s) || !nonEmpty(s['text']))
32877
- continue;
32878
- const slot = String(s['slot']);
32879
- const words = String(s['text']).trim();
32880
- if (CHIP_SLOTS.includes(slot))
32881
- (options[slot] ??= []).push(words);
32882
- else if (slot === 'channel')
32883
- form.channel = { label: words };
32884
- else if (slot === 'title' || slot === 'intro' || slot === 'submit' || slot === 'successTitle' || slot === 'successText')
32885
- form[slot] = words;
32886
- }
32887
- if (Object.keys(options).length)
32888
- form.options = options;
32889
- return form;
32890
- }
32891
- function expandGallery(l, flags, variant) {
32892
- const captions = strings(l['items']);
32893
- const gallery = {
32894
- slides: strings(l['photos']).map((id, i) => ({ photo: { id }, ...(nonEmpty(captions[i]) ? { caption: captions[i] } : {}) })),
32895
- };
32896
- if (GALLERY_EFFECTS.includes(variant))
32897
- gallery.effect = variant;
32898
- const perView = num(l['perView']);
32899
- if (perView > 0)
32900
- gallery.perView = perView;
32901
- for (const f of ['centered', 'freeMode', 'loop', 'drift', 'scroll'])
32902
- if (flags.has(f))
32903
- gallery[f] = true;
32904
- if (flags.has('autoplay'))
32905
- gallery.autoplay = LAYOUT_WIRE_AUTOPLAY_MS;
32906
- if (nonEmpty(l['source']))
32907
- gallery.source = String(l['source']).trim();
32908
- const list = expandListMix(l, gallery);
32909
- if (list)
32910
- gallery.list = list;
32911
- return gallery;
32912
- }
32913
- /** `mix` + `parts` → a list mix, or null when the wire names no mix. Words are kept as written (`checkList` judges them);
32914
- * parts of another list than the gallery's are left out, and the first part names the list when `source` is empty. */
32915
- function expandListMix(l, gallery) {
32916
- const words = strings(l['mix']);
32917
- if (!words.length)
32918
- return null;
32919
- const picked = new Map();
32920
- for (const w of words) {
32921
- const at = w.indexOf(MIX_SEPARATOR);
32922
- if (at > 0)
32923
- (picked.get(w.slice(0, at)) ?? picked.set(w.slice(0, at), []).get(w.slice(0, at))).push(w.slice(at + 1));
32924
- }
32925
- const one = (k) => picked.get(k)?.[0];
32926
- const parts = strings(l['parts']).filter(p => p !== NONE).map(p => {
32927
- const at = p.lastIndexOf(PART_SEPARATOR);
32928
- return at > 0 ? { list: p.slice(0, at), role: p.slice(at + 1) } : null;
32929
- }).filter((p) => !!p);
32930
- if (!gallery.source && parts[0])
32931
- gallery.source = parts[0].list;
32932
- const own = parts.filter(p => p.list === gallery.source).map(p => p.role);
32933
- const arrange = (one(LayoutMixIngredient.Arrange) ?? LayoutListArrange.Row);
32934
- const who = one(LayoutMixIngredient.Who);
32935
- const how = one(LayoutMixIngredient.How);
32936
- return {
32937
- item: (one(LayoutMixIngredient.Item) ?? (own.length ? LayoutListItem.Card : LayoutListItem.Photo)),
32938
- parts: Array.from(new Set(own)),
32939
- arrange,
32940
- ...(who && who !== LayoutListWho.None ? { standout: { who: who, ...(how ? { how: how } : {}) } } : {}),
32941
- move: Array.from(new Set(picked.get(LayoutMixIngredient.Move) ?? [])),
32942
- hover: Array.from(new Set(picked.get(LayoutMixIngredient.Hover) ?? [])),
32943
- arrive: (one(LayoutMixIngredient.Arrive) ?? LayoutListArrive.Together),
32944
- phone: (one(LayoutMixIngredient.Phone) ?? (arrange === LayoutListArrange.Row ? LayoutListPhone.Swipe : LayoutListPhone.Stack)),
32945
- };
32946
- }
32947
- /** A list mix → the wire's `mix` words and `parts`. */
32948
- function listMixToWire(mix, source) {
32949
- const w = (k, v) => `${k}${MIX_SEPARATOR}${v}`;
32950
- return {
32951
- mix: [
32952
- w(LayoutMixIngredient.Item, mix.item), w(LayoutMixIngredient.Arrange, mix.arrange),
32953
- ...(mix.standout ? [w(LayoutMixIngredient.Who, mix.standout.who), ...(mix.standout.how ? [w(LayoutMixIngredient.How, mix.standout.how)] : [])] : []),
32954
- ...mix.move.map(m => w(LayoutMixIngredient.Move, m)), ...mix.hover.map(h => w(LayoutMixIngredient.Hover, h)),
32955
- w(LayoutMixIngredient.Arrive, mix.arrive), w(LayoutMixIngredient.Phone, mix.phone),
32956
- ],
32957
- parts: mix.parts.map(r => `${source}${PART_SEPARATOR}${r}`),
32958
- };
32959
- }
32960
- function expandTrack(t) {
32961
- const v = Array.isArray(t['values']) ? t['values'].map(x => num(x)) : [];
32962
- return { prop: String(t['prop']), from: v[0] ?? 0, to: v[1] ?? 0, at: [v[2] ?? 0, v[3] ?? 1], ease: String(t['ease']) };
32963
- }
32964
- function expandLayer(l, beat) {
32965
- const kind = String(l['kind']);
32966
- const box = Array.isArray(l['box']) ? l['box'].map(x => num(x)) : [];
32967
- const flags = new Set(strings(l['flags']));
32968
- const variant = String(l['variant'] ?? NONE);
32969
- const out = {
32970
- kind: kind,
32971
- role: String(l['role']),
32972
- col: [box[0] ?? 1, box[1] ?? 2],
32973
- row: [box[2] ?? 1, box[3] ?? 2],
32974
- };
32975
- if (nonEmpty(l['text']))
32976
- out.text = String(l['text']);
32977
- const items = strings(l['items']);
32978
- if (items.length && kind !== 'gallery')
32979
- out.items = items;
32980
- if (kind === 'photo' && strings(l['photos'])[0])
32981
- out.photo = { id: strings(l['photos'])[0] };
32982
- if (kind === 'gallery')
32983
- out.gallery = expandGallery(l, flags, variant);
32984
- if (kind === 'form')
32985
- out.form = expandForm(l, FORM_PRESETS.includes(variant) ? variant : 'contact');
32986
- if (kind === 'button' && BUTTON_VARIANTS.includes(variant))
32987
- out.variant = variant;
32988
- if (nonEmpty(l['size']) && l['size'] !== NONE)
32989
- out.size = String(l['size']);
32990
- if (nonEmpty(l['color']))
32991
- out.color = String(l['color']);
32992
- if (nonEmpty(l['align']))
32993
- out.align = String(l['align']);
32994
- if (num(l['z']))
32995
- out.z = num(l['z']);
32996
- if (nonEmpty(l['bleed']) && l['bleed'] !== NONE)
32997
- out.bleed = String(l['bleed']);
32998
- if (num(l['rotate']))
32999
- out.rotate = num(l['rotate']);
33000
- if (nonEmpty(l['to']))
33001
- out.to = String(l['to']).trim();
33002
- if (flags.has('scrim'))
33003
- out.scrim = true;
33004
- if (flags.has('kinetic'))
33005
- out.kinetic = true;
33006
- if (flags.has('contain'))
33007
- out.fit = 'contain';
33008
- if (flags.has(SCRUB_FLAG))
33009
- out.scrub = true;
33010
- const enter = String(l['enter'] ?? NONE);
33011
- if (enter.startsWith(CLIP_SIDE)) {
33012
- out.enter = CLIP;
33013
- out.from = enter.slice(CLIP_SIDE.length);
33014
- }
33015
- else if (enter !== NONE)
33016
- out.enter = enter;
33017
- if (out.enter)
33018
- out.beat = beat;
33019
- if (nonEmpty(l['depth']) && l['depth'] !== NONE)
33020
- out.depth = String(l['depth']);
33021
- if (num(l['inner']))
33022
- out.inner = num(l['inner']);
33023
- const motion = (Array.isArray(l['motion']) ? l['motion'] : []).filter(isPlainObject).map(expandTrack);
33024
- if (motion.length)
33025
- out.motion = motion;
33026
- if (nonEmpty(l['carry']) && l['carry'] !== NONE)
33027
- out.carry = String(l['carry']).trim();
33028
- return out;
33029
- }
33030
- /**
33031
- * A section's beats, never asked: the lead enters first; every other entering layer takes the next beat in the order it
33032
- * was written, held at the stagger's last (Emil's shrinking stagger reads the beat and stops shrinking at the sixth; the
33033
- * prototype wrote it on fewer than half the layers). ONE rule
33034
- * for the wire's expansion and for a page a repair edited (`applyLayoutEdits`).
33035
- */
33036
- function derivedBeats(layers) {
33037
- const last = LAYOUT_BEAT_DELAY.length - 1;
33038
- let beat = 0;
33039
- return layers.map(l => (l.role === 'lead' ? 0 : String(l.enter ?? NONE) !== NONE ? Math.min(++beat, last) : 0));
33040
- }
33041
- function expandSection(s) {
33042
- const kind = String(s['kind']);
33043
- const hold = Math.max(0, Math.round(num(s['hold'])));
33044
- const wired = (Array.isArray(s['layers']) ? s['layers'] : []).filter(isPlainObject);
33045
- // RD-D20: a section whose ONLY layer names a bound part, a block or a kept section IS that part — a section place.
33046
- const whole = wired.length === 1 && nonEmpty(wired[0]['carry']) && isSectionCarryHandle(String(wired[0]['carry']).trim())
33047
- ? String(wired[0]['carry']).trim() : null;
33048
- if (whole)
33049
- return { id: String(s['id'] ?? ''), screens: 1, rows: 1, layers: [], phone: [], carry: whole };
33050
- const beats = derivedBeats(wired);
33051
- const layers = wired.map((l, i) => expandLayer(l, beats[i]));
33052
- const out = {
33053
- id: String(s['id'] ?? ''),
33054
- screens: num(s['screens'], 1),
33055
- rows: num(s['rows'], 8),
33056
- ground: String(s['ground'] ?? 'ground'),
33057
- transition: String(s['transition'] ?? 'cut'),
33058
- layers,
33059
- phone: Array.isArray(s['phone']) ? s['phone'].map(x => num(x, -1)) : [],
33060
- };
33061
- if (kind === 'inhale')
33062
- out.kind = 'inhale';
33063
- if (kind === 'signature')
33064
- out.signature = true;
33065
- if (hold >= 1)
33066
- out.pin = true;
33067
- if (hold >= 2)
33068
- out.track = hold;
33069
- return out;
33070
- }
33071
- /**
33072
- * The wire → a layout page. Refuses (issues with a path) only what it cannot read at all — a missing `sections`, a
33073
- * section or layer that is not an object; everything a model can get wrong in a well-formed answer is `checkLayout`'s.
33074
- */
33075
- function expandLayoutWire(wire, dial) {
33076
- const issues = [];
33077
- const add = (path, message) => issues.push({ code: LayoutIssueCode.Shape, path, message });
33078
- if (!isPlainObject(wire) || !Array.isArray(wire['sections'])) {
33079
- add('sections', 'the answer has no sections');
33080
- return { page: null, issues };
33081
- }
33082
- wire['sections'].forEach((s, i) => {
33083
- if (!isPlainObject(s))
33084
- add(`sections[${i}]`, 'not an object');
33085
- else if (!Array.isArray(s['layers']))
33086
- add(`sections[${i}].layers`, 'no layers');
33087
- else
33088
- s['layers'].forEach((l, j) => { if (!isPlainObject(l))
33089
- add(`sections[${i}].layers[${j}]`, 'not an object'); });
33090
- });
33091
- if (issues.length)
33092
- return { page: null, issues };
33093
- return { page: { dial, sections: wire['sections'].map(expandSection) }, issues: [] };
33094
- }
33095
- function layerToWire(l) {
33096
- const g = l.gallery;
33097
- const f = l.form;
33098
- const flags = [
33099
- l.scrim && 'scrim', l.kinetic && 'kinetic', l.fit === 'contain' && 'contain',
33100
- g?.centered && 'centered', g?.freeMode && 'freeMode', g?.loop && 'loop', g?.drift && 'drift', g?.scroll && 'scroll', g?.autoplay ? 'autoplay' : null,
33101
- l.scrub && SCRUB_FLAG,
33102
- ].filter((x) => !!x);
33103
- const slots = f
33104
- ? [
33105
- ...['title', 'intro', 'submit', 'successTitle', 'successText'].filter(k => nonEmpty(f[k])).map(k => ({ slot: k, text: String(f[k]) })),
33106
- ...(f.channel?.label ? [{ slot: 'channel', text: f.channel.label }] : []),
33107
- ...Object.entries(f.options ?? {}).flatMap(([slot, words]) => (words ?? []).map(t => ({ slot, text: t }))),
33108
- ]
33109
- : [];
33110
- return {
33111
- kind: l.kind,
33112
- role: l.role ?? 'support',
33113
- text: l.text ?? '',
33114
- items: g ? g.slides.map(s => s.caption ?? '') : l.items ?? [],
33115
- photos: g ? g.slides.map(s => s.photo?.id ?? '') : l.photo ? [l.photo.id] : [],
33116
- source: g?.source ?? '',
33117
- box: [...(l.col ?? [1, 2]), ...(l.row ?? [1, 2])],
33118
- size: l.size ?? NONE,
33119
- color: l.color ?? 'ink',
33120
- align: l.align ?? 'start',
33121
- z: l.z ?? 0,
33122
- bleed: l.bleed ?? NONE,
33123
- rotate: l.rotate ?? 0,
33124
- to: l.to ?? '',
33125
- variant: l.variant ?? g?.effect ?? f?.preset ?? NONE,
33126
- enter: l.enter === CLIP ? `${CLIP_SIDE}${l.from ?? 'bottom'}` : l.enter ?? NONE,
33127
- depth: l.depth ?? NONE,
33128
- inner: l.inner ?? 0,
33129
- flags,
33130
- perView: typeof g?.perView === 'number' ? g.perView : 0,
33131
- slots,
33132
- motion: (l.motion ?? []).map(t => ({ prop: t.prop, ease: t.ease ?? 'out', values: [t.from, t.to, ...(t.at ?? [0, 1])] })),
33133
- ...(g?.list ? listMixToWire(g.list, g.source ?? '') : {}),
33134
- ...(l.carry ? { carry: l.carry } : {}),
33135
- };
33136
- }
33137
- /** A section place (RD-D20) on the wire: ONE layer naming its handle — what `expandSection` reads back as the place. */
33138
- function carryPlaceToWire(s) {
33139
- const layer = {
33140
- kind: 'text', role: 'lead', text: '', items: [], photos: [], source: '', box: [1, 13, 1, 2], size: NONE, color: 'ink', align: 'start',
33141
- z: 0, bleed: NONE, rotate: 0, to: '', variant: NONE, enter: NONE, depth: NONE, inner: 0, flags: [], perView: 0, slots: [], motion: [],
33142
- carry: s.carry,
33143
- };
33144
- return { id: s.id, kind: 'content', screens: 1, hold: 0, ground: 'ground', rows: 4, transition: 'cut', phone: [0], layers: [layer] };
33145
- }
33146
- /** A layout page (or a saved CL2.1 site's sections) → the wire. */
33147
- function layoutToWire(page) {
33148
- return {
33149
- sections: page.sections.map(s => (s.carry ? carryPlaceToWire(s) : {
33150
- id: s.id,
33151
- kind: s.signature ? 'signature' : s.kind ?? 'content',
33152
- screens: s.screens,
33153
- hold: s.pin ? s.track ?? 1 : 0,
33154
- ground: s.ground ?? 'ground',
33155
- rows: s.rows,
33156
- transition: s.transition ?? 'cut',
33157
- phone: s.phone ?? [],
33158
- layers: s.layers.map(layerToWire),
33159
- })),
33160
- };
33161
- }
33162
-
33163
33899
  /**
33164
33900
  * The render check of a composed page (M8-G2-D8), split where it can run. `measureLayout` runs in a BROWSER (the owner's,
33165
33901
  * on the Plan step — iox-cms has none): it reads the rendered boxes of the composed page's layers. `wordsOverPhotos` names
@@ -33573,6 +34309,73 @@ function planLayoutPhotos(plan) {
33573
34309
  return { [LayoutPhotoSource.Own]: [...out.own], [LayoutPhotoSource.Stock]: [...out.stock], [LayoutPhotoSource.Box]: [...out.box] };
33574
34310
  }
33575
34311
 
34312
+ const MANY = new Set(LIST_TABLE.many);
34313
+ const HOVER = 'hover';
34314
+ /** The word(s) a mix wears for an ingredient. */
34315
+ function listMixValue(mix, k) {
34316
+ switch (k) {
34317
+ case 'who': return mix.standout?.who ?? LayoutListWho.None;
34318
+ case 'how': return mix.standout?.how ?? String(LIST_TABLE.defaults['how']);
34319
+ case 'move': return mix.move;
34320
+ case 'hover': return mix.hover;
34321
+ default: return mix[k];
34322
+ }
34323
+ }
34324
+ /** The group's rows for a list — every ingredient the product draws, in the table's order. */
34325
+ function listPanelRows(mix, ctx) {
34326
+ return LIST_INGREDIENTS.map(k => ({
34327
+ ingredient: k,
34328
+ many: MANY.has(k),
34329
+ value: listMixValue(mix, k),
34330
+ words: listBuiltWords(k).map(word => ({
34331
+ word,
34332
+ meaning: listMeaning(k, word),
34333
+ pro: listWordTier(k, word) === 'pro',
34334
+ mouse: k === HOVER,
34335
+ refusal: listWordRefusal(k, word, ctx.shape, ctx.tier, ctx.never),
34336
+ })),
34337
+ }));
34338
+ }
34339
+ /** The mix with one ingredient set (a single word) or toggled (a word of a `many` ingredient). Pure. */
34340
+ function withListWord(mix, k, word) {
34341
+ const next = structuredClone(mix);
34342
+ if (k === 'move' || k === 'hover') {
34343
+ const list = next[k];
34344
+ next[k] = list.includes(word) ? list.filter(w => w !== word) : [...list, word];
34345
+ }
34346
+ else if (k === 'who') {
34347
+ if (word === LayoutListWho.None)
34348
+ delete next.standout;
34349
+ else
34350
+ next.standout = { who: word, ...(next.standout?.how ? { how: next.standout.how } : {}) };
34351
+ }
34352
+ else if (k === 'how') {
34353
+ next.standout = { who: next.standout?.who ?? LayoutListWho.First, how: word };
34354
+ }
34355
+ else {
34356
+ next[k] = word;
34357
+ }
34358
+ return next;
34359
+ }
34360
+ /**
34361
+ * The owner picks a word: refused outright when the word cannot be picked here (the row shows why), else the new mix
34362
+ * judged by the ONE `checkList` — its mends applied and said, its refusals returned (the list stays as it was). Pure.
34363
+ */
34364
+ function pickListWord(mix, k, word, ctx) {
34365
+ const refusal = listWordRefusal(k, word, ctx.shape, ctx.tier, ctx.never);
34366
+ const adding = !(k === 'move' || k === 'hover') || !mix[k].includes(word);
34367
+ if (refusal && adding) {
34368
+ return { mix, said: [], refused: [{ code: LayoutIssueCode.Value, path: `list.${k}`, message: `${k} "${word}": ${refusal}` }] };
34369
+ }
34370
+ const next = withListWord(mix, k, word);
34371
+ const issues = checkList(next, ctx.shape, 'list', ctx.never, { tier: ctx.tier });
34372
+ const refused = issues.filter(i => !i.mend);
34373
+ if (refused.length)
34374
+ return { mix, said: [], refused };
34375
+ const mend = issues.map(i => i.mend).find(m => m?.kind === LayoutMendKind.List);
34376
+ return { mix: mend?.kind === LayoutMendKind.List ? mend.mix : next, said: issues.map(i => i.message), refused: [] };
34377
+ }
34378
+
33576
34379
  /**
33577
34380
  * THE CROSS-SITE FINGERPRINT (premium components M8 gate 2, M8-G2-D7; the prototype's `fingerprint` + `sameness`,
33578
34381
  * `code/cl2.mjs`): what makes two composed pages read as the same — how the page opens, the sequence of its sections, the
@@ -33635,7 +34438,10 @@ const LAYOUT_LIST_TOKEN = 'list';
33635
34438
  function listTokenOf(mix) {
33636
34439
  const who = mix.standout && mix.standout.who !== LayoutListWho.None ? `${mix.standout.who}${mix.standout.how ? `-${mix.standout.how}` : ''}` : 'none';
33637
34440
  const moves = Array.isArray(mix.move) && mix.move.length ? [...new Set(mix.move)].sort().join('+') : 'still';
33638
- return `${LAYOUT_LIST_TOKEN}:${mix.arrange}/${who}/${moves}`;
34441
+ // AW11-D18: a round-two item (a name on its picture, a packshot, a colour block, a numeral) is seen at once too — it
34442
+ // joins the token; a round-one item adds nothing, so every fingerprint stored before AW11 reads as it did.
34443
+ const item = typeof mix.item === 'string' && listWordTier('item', mix.item) === 'pro' ? `/${mix.item}` : '';
34444
+ return `${LAYOUT_LIST_TOKEN}:${mix.arrange}/${who}/${moves}${item}`;
33639
34445
  }
33640
34446
  /** A section's token in the sequence: a list section's mix, else its kind (`sequenceTokenOf`). */
33641
34447
  function sectionTokenOf(s) {
@@ -33815,8 +34621,8 @@ const PROOF_FINGERPRINTS = [
33815
34621
  const STORE_SLOT_ROLES = new Set([ShopRole.CartButton, AccountRole.Entry]);
33816
34622
  /** The roles that link to one of the site's pages (the bar's row, the drawer's list, the bottom bar's items). */
33817
34623
  const PAGE_LINK_ROLES = new Set([NavRole.Link, NavRole.DrawerLink, NavRole.BarItem]);
33818
- /** The pages a header and its companions link to, in their order, once each — what the header is recomposed with when the
33819
- * studio's own page list is not known (yet): a mix change never takes the owner's links away (CC1's `phoneMenuPages`). */
34624
+ /** The pages a header and its companions link to, in their order, once each — what the header is recomposed with: a mix
34625
+ * change never takes the owner's links away, nor adds the studio's other pages (CC1's `phoneMenuPages`; iox-cms-client#82). */
33820
34626
  function pagesOfHeader(current, companions) {
33821
34627
  const out = [];
33822
34628
  const walk = (n) => {
@@ -33828,15 +34634,19 @@ function pagesOfHeader(current, companions) {
33828
34634
  [current, ...companions].forEach(walk);
33829
34635
  return out;
33830
34636
  }
33831
- /** The site a header is recomposed for: a header that holds the bag or the account entry is a selling site's (unless the
33832
- * site says), and a studio whose pages are not known keeps the pages the header links to. */
33833
- function siteFor$1(site, current, companions = []) {
34637
+ /**
34638
+ * The site a header is read, recomposed and advised for (`readHeader`, `applyHeaderMix`, and the studio's `headerAdvice`):
34639
+ * the pages are the ones the header links to — every ingredient is HOW the header shows its pages, never WHICH (the
34640
+ * Pages word is inline / menu / menu-pinned), so an Apply keeps the bar's links exactly (iox-cms-client#82: changing only
34641
+ * "Its colours follow" re-made the bar with every page the studio ever had — drafts, archived `-previous` copies, legal
34642
+ * pages). Only a header that links to no page takes the studio's. A header that holds the bag or the account entry is a
34643
+ * selling site's (unless the site says). Pure.
34644
+ */
34645
+ function headerSiteFor(site, current, companions = []) {
33834
34646
  let at = site;
33835
- if (!site.pages?.length) {
33836
- const own = pagesOfHeader(current, companions);
33837
- if (own.length)
33838
- at = { ...at, pages: own };
33839
- }
34647
+ const own = pagesOfHeader(current, companions);
34648
+ if (own.length)
34649
+ at = { ...at, pages: own };
33840
34650
  if (at.storeSlots !== undefined)
33841
34651
  return at;
33842
34652
  let sells = false;
@@ -33950,7 +34760,7 @@ function compose$1(mix, site, id, options) {
33950
34760
  function readHeader(root, site, options = {}) {
33951
34761
  const stored = storedHeaderMix(root);
33952
34762
  const mix = stored ?? nearestHeaderMix(root, options.companions ?? []);
33953
- const custom = headerShape(root) !== headerShape(compose$1(mix, siteFor$1(site, root, options.companions), root.id, options).header);
34763
+ const custom = headerShape(root) !== headerShape(compose$1(mix, headerSiteFor(site, root, options.companions), root.id, options).header);
33954
34764
  return { mix, stored: !!stored, custom, galleryId: headerGalleryIdOf(mix) };
33955
34765
  }
33956
34766
  var HeaderReplacedKind;
@@ -33983,7 +34793,7 @@ function wordsOf$1(n) {
33983
34793
  function applyHeaderMix(current, next, site, options = {}) {
33984
34794
  const curCompanions = options.companions ?? [];
33985
34795
  const baseMix = storedHeaderMix(current) ?? nearestHeaderMix(current, curCompanions);
33986
- const at = siteFor$1(site, current, curCompanions);
34796
+ const at = headerSiteFor(site, current, curCompanions);
33987
34797
  const baseComposed = compose$1(baseMix, at, current.id, options);
33988
34798
  const composed = compose$1(next, at, current.id, options);
33989
34799
  const freshGroup = clone(grouped(composed.header, composed.companions));
@@ -34783,5 +35593,5 @@ function siteGlobalsOf(globals) {
34783
35593
  * Generated bundle index. Do not edit.
34784
35594
  */
34785
35595
 
34786
- 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_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, 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_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, 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, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, 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_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, 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_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, 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_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, 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, 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, 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, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, 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, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, composablePage, composeContextOf, composeLayout, 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, 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, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, 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, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, 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, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, 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, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, 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, 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, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, 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, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
35596
+ 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_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, 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_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, 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, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, 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_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, 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_INGREDIENTS, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, 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, 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_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, 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, 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, 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, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, 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, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, composablePage, composeContextOf, composeLayout, 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, 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, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, 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, layerShownSpans, layoutBandScheme, layoutBoxPx, 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, listBuiltWords, listIngredientWords, listMeaning, listMixFromWords, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listTokenOf, listTokensOf, listWait, listWordOffered, 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, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, 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, 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, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, 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 };
34787
35597
  //# sourceMappingURL=vectoriox-iox-ui-generation-core.mjs.map