@homepages/concrete 1.0.2 → 2.0.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 (68) hide show
  1. package/CHANGELOG.md +112 -0
  2. package/codemods/manifest.json +12 -0
  3. package/codemods/unlayer-author-css.mjs +194 -0
  4. package/dist/artifact/playground/client/assets/index-CW7co-u9.js +1101 -0
  5. package/dist/artifact/playground/client/assets/index-CckS2ONm.css +1 -0
  6. package/dist/artifact/playground/client/index.html +2 -2
  7. package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
  8. package/dist/artifact/playground/host.mjs +24 -24
  9. package/dist/base.css +15 -2
  10. package/dist/cli/build/artifact.js +5 -2
  11. package/dist/cli/build/captures.js +15 -18
  12. package/dist/cli/build/fixtures.js +11 -3
  13. package/dist/cli/build/sections.js +13 -4
  14. package/dist/cli/build/static.js +1 -1
  15. package/dist/cli/check/load-workspace.js +6 -1
  16. package/dist/cli/check/stages/bundles.js +3 -1
  17. package/dist/cli/commands.js +1 -1
  18. package/dist/cli/dev/load-template.js +32 -25
  19. package/dist/cli/dev/server.js +11 -3
  20. package/dist/cli/dev/vite.js +78 -22
  21. package/dist/cli/dev/workspace-reader.js +2 -6
  22. package/dist/cli/media/derive.js +30 -3
  23. package/dist/cli/media/deriver-plugin.js +6 -2
  24. package/dist/cli/media/frame-rung-floor.js +18 -0
  25. package/dist/css/compile.js +26 -4
  26. package/dist/css/graph.js +2 -1
  27. package/dist/css/rules.js +72 -1
  28. package/dist/eslint/authoring.js +2 -0
  29. package/dist/eslint/rules/island-ids.js +39 -0
  30. package/dist/fixtures/load.js +6 -1
  31. package/dist/fixtures/media-plugin.js +32 -17
  32. package/dist/fixtures/media.js +41 -8
  33. package/dist/fixtures/package-stylesheets.js +59 -0
  34. package/dist/fixtures/property.js +40 -9
  35. package/dist/fixtures/resolve.js +58 -5
  36. package/dist/fixtures/rows.js +6 -1
  37. package/dist/fixtures.d.ts +80 -12
  38. package/dist/fixtures.js +7 -3
  39. package/dist/index.d.ts +2 -1
  40. package/dist/index.js +2 -1
  41. package/dist/islands/island-id.js +8 -0
  42. package/dist/islands/marker.d.ts +14 -4
  43. package/dist/islands/marker.js +18 -6
  44. package/dist/packages/external/concrete/package.js +1 -1
  45. package/dist/packages/internal/island-runtime/dist/index.js +4 -2
  46. package/dist/packages/internal/island-runtime/dist/island-id-context.js +15 -0
  47. package/dist/packages/internal/island-runtime/dist/use-island-id.d.ts +24 -0
  48. package/dist/packages/internal/island-runtime/dist/use-island-id.js +44 -0
  49. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1 -1
  50. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +44 -2
  51. package/dist/primitives/slot-bindings.d.ts +19 -13
  52. package/dist/primitives/slot-bindings.js +7 -3
  53. package/dist/rules/registry.js +19 -0
  54. package/dist/section/section.d.ts +6 -1
  55. package/dist/template/logic-shim.d.ts +2 -1
  56. package/dist/template/logic-shim.js +2 -1
  57. package/guide/reference/cli/INDEX.md +2 -2
  58. package/guide/reference/cli/build.md +2 -2
  59. package/guide/reference/cli/check.md +1 -1
  60. package/guide/reference/cli/dev.md +1 -1
  61. package/guide/reference/cli/property-add.md +1 -1
  62. package/guide/reference/cli/property-list.md +1 -1
  63. package/guide/reference/cli/publish.md +1 -1
  64. package/guide/reference/cli/upgrade.md +1 -1
  65. package/guide/reference/rules/INDEX.md +4 -1
  66. package/package.json +1 -1
  67. package/dist/artifact/playground/client/assets/index-BSA1yutg.css +0 -1
  68. package/dist/artifact/playground/client/assets/index-JloQyj8h.js +0 -1101
@@ -0,0 +1 @@
1
+ /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme;@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer playground{*{box-sizing:border-box}html,body,#root{color:#e6e7eb;background:#0f1115;height:100%;min-height:100dvh;margin:0;padding:0;font:14px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif}a{color:inherit;text-decoration:none}button,select,input,textarea{font:inherit;color:inherit;background:#1a1d24;border:1px solid #2c313a;border-radius:4px;padding:6px 10px}button{cursor:pointer}button:hover{background:#232831}button:disabled{opacity:.4;cursor:default}.empty{color:#9ca0a8;text-align:center;padding:40px}.boot-error{color:#ff8b8b;white-space:pre-wrap;padding:24px;font:13px/1.5 ui-monospace,Menlo,monospace}.canvas-mirror{flex-direction:column;height:100%;min-height:0;display:flex;position:relative}.canvas-bar{left:0;right:calc(400 * var(--frame) + 20px);z-index:5;pointer-events:none;justify-content:center;display:flex;position:absolute;bottom:18px}@media(max-width:1100px){.canvas-bar{right:408px}}.canvas-bar__card{border-radius:var(--radius-lg);border:1px solid var(--color-line);background:var(--color-canvas);pointer-events:auto;align-items:center;max-width:100%;padding:4px;display:inline-flex;overflow-x:auto;box-shadow:0 1px 2px #14120d0a,0 8px 20px -12px #14120d2e}.canvas-bar__tab{border-radius:var(--radius-md);height:28px;color:var(--color-ink-3);font:inherit;font-size:calc(13 * var(--content));cursor:pointer;background:0 0;border:none;flex:none;padding:0 10px;font-weight:500;transition:color .12s,background-color .12s}.canvas-bar__tab:hover{color:var(--color-ink);background:#14120d0a}.canvas-bar__tab.is-current{color:var(--color-ink);font-weight:600}.canvas-mirror__stage{background:#fafaf8;flex:1;min-height:0;position:relative}.canvas-mirror__sidebar{z-index:20;width:calc(400 * var(--frame));border:1px solid var(--color-line);background:var(--color-canvas);border-radius:9px;flex-direction:column;min-height:0;display:flex;position:absolute;top:20px;bottom:20px;right:20px;overflow:hidden;box-shadow:0 1px #14120d0a,0 24px 60px -20px #14120d38,0 6px 18px -8px #14120d1a}@media(max-width:1100px){.canvas-mirror__sidebar{width:388px}}.sidebar-template{background:#fff;border-bottom:1px solid #e5e7eb;flex-direction:column;flex:none;gap:8px;padding:12px 12px 10px;font:13px system-ui,sans-serif;display:flex}.sidebar-template__field{color:#6b7280;flex-direction:column;gap:3px;font-size:12px;display:flex}.sidebar-template__toggle{color:#6b7280;cursor:pointer;align-items:center;gap:6px;font-size:12px;display:flex}.sidebar-template__field select{background:var(--color-canvas);border:1px solid var(--color-line);border-radius:var(--radius-sm);width:100%;color:var(--color-ink);padding:4px 8px;font-size:12px}.instance-panel{min-height:0;color:var(--color-ink);flex-direction:column;flex:auto;font:13px system-ui,sans-serif;display:flex;overflow:hidden}.instance-panel__cards{flex-direction:column;flex:auto;gap:12px;min-height:0;padding:8px 16px 24px;display:flex;overflow-y:auto}.instance-panel__dock{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative}.instance-panel__cards[data-dirty]{padding-bottom:124px}.instance-panel__we{margin-top:auto}.instance-panel__we-anchor{height:0;position:relative}.instance-panel__we-caption{color:#6b7280;margin:0;padding:8px 12px 2px;font-size:11.5px;line-height:1.35}.instance-panel__empty{color:#6b7280;padding:8px 4px}.instance-panel__error{color:#b91c1c;white-space:pre-wrap;margin:0;padding:0 20px 8px}.instance-panel>.instance-panel__empty{margin:0;padding:8px 20px}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{inset-inline:0}.top-0{top:0}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\.25{top:calc(var(--spacing) * 1.25)}.top-3{top:calc(var(--spacing) * 3)}.top-\[5px\]{top:5px}.top-\[15px\]{top:15px}.top-\[calc\(100\%\+4\*var\(--content\)\)\]{top:calc(100% + 4 * var(--content))}.right-0{right:0}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-1\.25{right:calc(var(--spacing) * 1.25)}.right-3{right:calc(var(--spacing) * 3)}.right-10{right:calc(var(--spacing) * 10)}.right-\[5px\]{right:5px}.right-\[6px\]{right:6px}.bottom-0{bottom:0}.bottom-1\.5{bottom:calc(var(--spacing) * 1.5)}.bottom-1\.25{bottom:calc(var(--spacing) * 1.25)}.bottom-\[6px\]{bottom:6px}.bottom-\[10px\]{bottom:10px}.left-0{left:0}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-1\.25{left:calc(var(--spacing) * 1.25)}.z-10{z-index:10}.z-50{z-index:50}.z-\[3\]{z-index:3}.z-\[4\]{z-index:4}.z-\[5\]{z-index:5}.z-\[6\]{z-index:6}.z-\[30\]{z-index:30}.z-\[40\]{z-index:40}.z-\[60\]{z-index:60}.z-\[120\]{z-index:120}.\[grid-column\:1\/-1\],.col-span-full{grid-column:1/-1}.row-42{grid-row:42}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-3{margin-inline:calc(var(--spacing) * 3)}.mx-auto{margin-inline:auto}.-mt-0\.5{margin-top:calc(var(--spacing) * -.5)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-\[calc\(10\*var\(--content\)\)\]{margin-top:calc(10 * var(--content))}.-mr-0\.5{margin-right:calc(var(--spacing) * -.5)}.-mr-1{margin-right:calc(var(--spacing) * -1)}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.list-item{display:list-item}.table{display:table}.aspect-\[4\/3\]{aspect-ratio:4/3}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-5\.5{width:calc(var(--spacing) * 5.5);height:calc(var(--spacing) * 5.5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-6\.5{width:calc(var(--spacing) * 6.5);height:calc(var(--spacing) * 6.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-\[22px\]{width:22px;height:22px}.size-\[38px\]{width:38px;height:38px}.size-\[calc\(14\*var\(--content\)\)\]{width:calc(14 * var(--content));height:calc(14 * var(--content))}.size-\[calc\(15\*var\(--content\)\)\]{width:calc(15 * var(--content));height:calc(15 * var(--content))}.size-\[calc\(26\*var\(--content\)\)\]{width:calc(26 * var(--content));height:calc(26 * var(--content))}.size-\[calc\(34\*var\(--content\)\)\]{width:calc(34 * var(--content));height:calc(34 * var(--content))}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing) * 4)}.h-6\.5{height:calc(var(--spacing) * 6.5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-8\.5{height:calc(var(--spacing) * 8.5)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-72\.5{height:calc(var(--spacing) * 72.5)}.h-\[18px\]{height:18px}.h-\[38px\]{height:38px}.h-\[60vh\]{height:60vh}.h-\[120px\]{height:120px}.h-\[412px\]{height:412px}.h-\[calc\(14\*var\(--content\)\)\]{height:calc(14 * var(--content))}.h-\[calc\(20\*var\(--content\)\)\]{height:calc(20 * var(--content))}.h-\[calc\(34\*var\(--content\)\)\]{height:calc(34 * var(--content))}.h-auto{height:auto}.max-h-35{max-height:calc(var(--spacing) * 35)}.max-h-\[120px\]{max-height:120px}.max-h-\[620px\]{max-height:620px}.max-h-\[calc\(240\*var\(--content\)\)\]{max-height:calc(240 * var(--content))}.max-h-\[calc\(264\*var\(--content\)\)\]{max-height:calc(264 * var(--content))}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-6\.5{min-height:calc(var(--spacing) * 6.5)}.min-h-10\.5{min-height:calc(var(--spacing) * 10.5)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-\[calc\(56\*var\(--content\)\)\]{min-height:calc(56 * var(--content))}.min-h-\[calc\(76\*var\(--content\)\)\]{min-height:calc(76 * var(--content))}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-8{width:calc(var(--spacing) * 8)}.w-\[160px\]{width:160px}.w-\[calc\(14\*var\(--content\)\)\]{width:calc(14 * var(--content))}.w-\[calc\(20\*var\(--content\)\)\]{width:calc(20 * var(--content))}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[680px\]{max-width:680px}.max-w-\[700px\]{max-width:700px}.max-w-\[920px\]{max-width:920px}.max-w-\[calc\(100vw-80px\)\]{max-width:calc(100vw - 80px)}.max-w-\[calc\(220\*var\(--content\)\)\]{max-width:calc(220 * var(--content))}.max-w-\[calc\(420\*var\(--frame\)\)\]{max-width:calc(420 * var(--frame))}.max-w-\[calc\(520\*var\(--frame\)\)\]{max-width:calc(520 * var(--frame))}.max-w-\[calc\(800\*var\(--frame\)\)\]{max-width:calc(800 * var(--frame))}.max-w-\[calc\(1240\*var\(--frame\)\)\]{max-width:calc(1240 * var(--frame))}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-\[54px\]{min-width:54px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-center{transform-origin:50%}.translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-1{--tw-translate-y:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-180{rotate:180deg}.\[transform\:scale\(var\(--gx\,1\)\,var\(--gy\,1\)\)\]{transform:scale(var(--gx,1),var(--gy,1))}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.\[animation\:we-ub-pop_\.34s_cubic-bezier\(\.2\,1\.3\,\.4\,1\)_both\]{animation:.34s cubic-bezier(.2,1.3,.4,1) both we-ub-pop}.animate-\[we-ml-rowin_\.26s_cubic-bezier\(\.2\,\.7\,\.3\,1\)_both\]{animation:.26s cubic-bezier(.2,.7,.3,1) both we-ml-rowin}.animate-\[we-ml-spin_\.7s_linear_infinite\]{animation:.7s linear infinite we-ml-spin}.animate-spin{animation:var(--animate-spin)}.cursor-\[inherit\]{cursor:inherit}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.resize{resize:both}.resize-none{resize:none}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-rows-\[0fr\]{grid-template-rows:0fr}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-0\.75{gap:calc(var(--spacing) * .75)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-1\.25{gap:calc(var(--spacing) * 1.25)}.gap-1\.75{gap:calc(var(--spacing) * 1.75)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-2\.25{gap:calc(var(--spacing) * 2.25)}.gap-2\.75{gap:calc(var(--spacing) * 2.75)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-\[3px\]{gap:3px}.gap-\[7px\]{gap:7px}.gap-\[14px\]{gap:14px}.gap-\[calc\(6\*var\(--content\)\)\]{gap:calc(6 * var(--content))}.gap-\[calc\(9\*var\(--content\)\)\]{gap:calc(9 * var(--content))}.gap-px{gap:1px}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-\[14px\]{row-gap:14px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-\[6px\]{border-radius:6px}.rounded-\[7px\]{border-radius:7px}.rounded-\[8px\]{border-radius:8px}.rounded-\[9px\]{border-radius:9px}.rounded-\[14px\]{border-radius:14px}.rounded-\[calc\(4\*var\(--content\)\)\]{border-radius:calc(4 * var(--content))}.rounded-\[calc\(5\*var\(--content\)\)\]{border-radius:calc(5 * var(--content))}.rounded-\[calc\(6\*var\(--content\)\)\]{border-radius:calc(6 * var(--content))}.rounded-\[calc\(8\*var\(--content\)\)\]{border-radius:calc(8 * var(--content))}.rounded-\[calc\(9\*var\(--content\)\)\]{border-radius:calc(9 * var(--content))}.rounded-\[calc\(11\*var\(--content\)\)\]{border-radius:calc(11 * var(--content))}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[\#d9d5c9\]{border-color:#d9d5c9}.border-accent{border-color:var(--color-accent)}.border-accent\/40{border-color:#0f2a2266}@supports (color:color-mix(in lab,red,red)){.border-accent\/40{border-color:color-mix(in oklab,var(--color-accent) 40%,transparent)}}.border-danger{border-color:var(--color-danger)}.border-honey-2{border-color:var(--color-honey-2)}.border-ink-4{border-color:var(--color-ink-4)}.border-line{border-color:#ebebe6}.border-line-soft{border-color:var(--color-line-soft)}.border-transparent{border-color:#0000}.border-white\/40{border-color:#fff6}@supports (color:color-mix(in lab,red,red)){.border-white\/40{border-color:color-mix(in oklab,var(--color-white) 40%,transparent)}}.border-t-accent{border-top-color:var(--color-accent)}.border-t-white{border-top-color:var(--color-white)}.bg-\[\#e6e3da\]{background-color:#e6e3da}.bg-\[\#f1f0ea\]{background-color:#f1f0ea}.bg-\[\#f3f1ea\]{background-color:#f3f1ea}.bg-\[\#f4f3ee\]{background-color:#f4f3ee}.bg-\[\#fafaf6\]{background-color:#fafaf6}.bg-\[\#fafaf8\]{background-color:#fafaf8}.bg-\[rgba\(15\,18\,9\,0\.6\)\]{background-color:#0f120999}.bg-\[rgba\(15\,18\,9\,0\.55\)\]{background-color:#0f12098c}.bg-\[rgba\(15\,18\,9\,0\.72\)\]{background-color:#0f1209b8}.bg-\[rgba\(20\,18\,13\,0\.06\)\]{background-color:#14120d0f}.bg-\[rgba\(255\,255\,255\,0\.94\)\]{background-color:#fffffff0}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-canvas{background-color:#fff}.bg-honey{background-color:var(--color-honey)}.bg-honey\/20{background-color:#f2ca4b33}@supports (color:color-mix(in lab,red,red)){.bg-honey\/20{background-color:color-mix(in oklab,var(--color-honey) 20%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-\[linear-gradient\(to_top\,rgba\(15\,18\,9\,0\.55\)\,transparent\)\]{background-image:linear-gradient(#0000,#0f12098c)}.bg-\[repeating-linear-gradient\(135deg\,rgba\(20\,18\,13\,0\.05\)_0_1px\,transparent_1px_9px\)\]{background-image:repeating-linear-gradient(135deg,#14120d0d 0,#14120d0d 1px,#0000 1px,#0000 9px)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-2\.75{padding:calc(var(--spacing) * 2.75)}.p-3{padding:calc(var(--spacing) * 3)}.p-\[3px\]{padding:3px}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-1\.75{padding-inline:calc(var(--spacing) * 1.75)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-2\.75{padding-inline:calc(var(--spacing) * 2.75)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-\[7px\]{padding-inline:7px}.px-\[13px\]{padding-inline:13px}.px-\[18px\]{padding-inline:18px}.px-\[calc\(13\*var\(--content\)\)\]{padding-inline:calc(13 * var(--content))}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-1\.75{padding-block:calc(var(--spacing) * 1.75)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-2\.25{padding-block:calc(var(--spacing) * 2.25)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-\[6px\]{padding-block:6px}.py-\[13px\]{padding-block:13px}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-\[14px\]{padding-top:14px}.pt-\[calc\(11\*var\(--content\)\)\]{padding-top:calc(11 * var(--content))}.pr-0\.5{padding-right:calc(var(--spacing) * .5)}.pr-2\.75{padding-right:calc(var(--spacing) * 2.75)}.pr-3\.5{padding-right:calc(var(--spacing) * 3.5)}.pb-1{padding-bottom:var(--spacing)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-\[18px\]{padding-bottom:18px}.pb-\[calc\(12\*var\(--content\)\)\]{padding-bottom:calc(12 * var(--content))}.pl-0\.5{padding-left:calc(var(--spacing) * .5)}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\.25{padding-left:calc(var(--spacing) * 2.25)}.pl-2\.75{padding-left:calc(var(--spacing) * 2.75)}.pl-3\.5{padding-left:calc(var(--spacing) * 3.5)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.\[font-feature-settings\:\'tnum\'\]{font-feature-settings:"tnum"}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11\.5px\]{font-size:11.5px}.text-\[11px\]{font-size:11px}.text-\[12\.5px\]{font-size:12.5px}.text-\[12px\]{font-size:12px}.text-\[13\.5px\]{font-size:13.5px}.text-\[13px\]{font-size:13px}.text-\[16px\]{font-size:16px}.text-\[length\:calc\(7\.5\*var\(--content\)\)\]{font-size:calc(7.5 * var(--content))}.text-\[length\:calc\(10\.5\*var\(--content\)\)\]{font-size:calc(10.5 * var(--content))}.text-\[length\:calc\(11\*var\(--content\)\)\]{font-size:calc(11 * var(--content))}.text-\[length\:calc\(11\.5\*var\(--content\)\)\]{font-size:calc(11.5 * var(--content))}.text-\[length\:calc\(12\.5\*var\(--content\)\)\]{font-size:calc(12.5 * var(--content))}.text-\[length\:calc\(13\.5\*var\(--content\)\)\]{font-size:calc(13.5 * var(--content))}.text-body{font-size:var(--text-body)}.text-body-lg{font-size:var(--text-body-lg)}.text-caption{font-size:var(--text-caption)}.text-small{font-size:var(--text-small)}.leading-\[1\.4\]{--tw-leading:1.4;line-height:1.4}.leading-\[1\.5\]{--tw-leading:1.5;line-height:1.5}.leading-\[1\.35\]{--tw-leading:1.35;line-height:1.35}.leading-\[1\.45\]{--tw-leading:1.45;line-height:1.45}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.01em\]{--tw-tracking:-.01em;letter-spacing:-.01em}.tracking-\[-0\.005em\]{--tw-tracking:-.005em;letter-spacing:-.005em}.tracking-\[0\.02em\]{--tw-tracking:.02em;letter-spacing:.02em}.tracking-\[0\.04em\]{--tw-tracking:.04em;letter-spacing:.04em}.text-\[\#7a5a14\]{color:#7a5a14}.text-\[\#b4342b\]{color:#b4342b}.text-accent{color:var(--color-accent)}.text-accent-ink{color:var(--color-accent-ink)}.text-danger{color:var(--color-danger)}.text-good{color:var(--color-good)}.text-honey-ink{color:var(--color-honey-ink)}.text-ink{color:var(--color-ink)}.text-ink-2{color:var(--color-ink-2)}.text-ink-3{color:var(--color-ink-3)}.text-ink-4{color:var(--color-ink-4)}.text-white{color:var(--color-white)}.text-white\/85{color:#ffffffd9}@supports (color:color-mix(in lab,red,red)){.text-white\/85{color:color-mix(in oklab,var(--color-white) 85%,transparent)}}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.\[font-variant-numeric\:tabular-nums\]{font-variant-numeric:tabular-nums}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-100{opacity:1}.opacity-\[0\.28\]{opacity:.28}.shadow-\[0_1px_2px_rgba\(20\,18\,13\,0\.18\)\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#14120d2e);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_1px_3px_rgba\(20\,18\,13\,0\.1\)\]{--tw-shadow:0 1px 3px var(--tw-shadow-color,#14120d1a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_1px_3px_rgba\(20\,18\,13\,0\.25\)\]{--tw-shadow:0 1px 3px var(--tw-shadow-color,#14120d40);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_2px_6px_rgba\(0\,0\,0\,0\.25\)\]{--tw-shadow:0 2px 6px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_8px_22px_-8px_rgba\(20\,18\,13\,\.26\)\,0_2px_6px_rgba\(20\,18\,13\,\.08\)\]{--tw-shadow:0 8px 22px -8px var(--tw-shadow-color,#14120d42), 0 2px 6px var(--tw-shadow-color,#14120d14);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_14px_30px_-10px_rgba\(20\,18\,13\,0\.35\)\]{--tw-shadow:0 14px 30px -10px var(--tw-shadow-color,#14120d59);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_14px_30px_-12px_rgba\(20\,18\,13\,0\.28\)\]{--tw-shadow:0 14px 30px -12px var(--tw-shadow-color,#14120d47);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_16px_38px_-8px_rgba\(20\,18\,13\,0\.5\)\]{--tw-shadow:0 16px 38px -8px var(--tw-shadow-color,#14120d80);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_16px_38px_-12px_rgba\(20\,18\,13\,0\.4\)\]{--tw-shadow:0 16px 38px -12px var(--tw-shadow-color,#14120d66);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_24px_70px_-24px_rgba\(20\,18\,13\,0\.5\)\,0_2px_0_rgba\(20\,18\,13\,0\.04\)\]{--tw-shadow:0 24px 70px -24px var(--tw-shadow-color,#14120d80), 0 2px 0 var(--tw-shadow-color,#14120d0a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.\[box-shadow\:inset_0_0_0_1px_var\(--color-line\)\]{box-shadow:inset 0 0 0 1px var(--color-line)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background\,border-color\,box-shadow\]{transition-property:background,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background\,color\]{transition-property:background,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\,transform\]{transition-property:background-color,border-color,box-shadow,color,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,color\]{transition-property:background-color,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,transform\]{transition-property:background-color,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background\]{transition-property:background;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[border-color\,background-color\]{transition-property:border-color,background-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[border-color\,box-shadow\]{transition-property:border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[border-color\]{transition-property:border-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[box-shadow\,border-color\]{transition-property:box-shadow,border-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[grid-template-rows\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,transform\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[120ms\]{--tw-duration:.12s;transition-duration:.12s}.ease-\[ease\]{--tw-ease:ease;transition-timing-function:ease}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.\[will-change\:transform\]{will-change:transform}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[animation-duration\:0\.7s\]{animation-duration:.7s}.\[transition\:border-color_\.14s\,box-shadow_\.14s\,background_\.3s\]{transition:border-color .14s,box-shadow .14s,background .3s}.\[transition\:transform_\.18s_cubic-bezier\(\.34\,1\.56\,\.64\,1\)\,box-shadow_\.18s_ease\,border-color_\.16s_ease\]{transition:transform .18s cubic-bezier(.34,1.56,.64,1),box-shadow .18s,border-color .16s}@media(hover:hover){.group-hover\:text-ink:is(:where(.group):hover *){color:var(--color-ink)}.group-hover\/card\:opacity-100:is(:where(.group\/card):hover *){opacity:1}.group-hover\/cell\:border-ink-4:is(:where(.group\/cell):hover *){border-color:var(--color-ink-4)}.group-hover\/row\:opacity-100:is(:where(.group\/row):hover *),.group-hover\/tile\:opacity-100:is(:where(.group\/tile):hover *){opacity:1}.group-hover\/up\:border-accent:is(:where(.group\/up):hover *){border-color:var(--color-accent)}}.group-data-\[ghost\]\/li\:opacity-\[0\.25\]:is(:where(.group\/li)[data-ghost] *){opacity:.25}.group-data-\[ghost\]\/tile\:hidden:is(:where(.group\/tile)[data-ghost] *){display:none}.group-data-\[ghost\]\/tile\:opacity-\[0\.28\]:is(:where(.group\/tile)[data-ghost] *){opacity:.28}.group-data-\[selected\]\/cell\:border-accent:is(:where(.group\/cell)[data-selected] *){border-color:var(--color-accent)}.group-data-\[selected\]\/cell\:shadow-\[0_0_0_3px_rgba\(15\,42\,34\,0\.18\)\]:is(:where(.group\/cell)[data-selected] *){--tw-shadow:0 0 0 3px var(--tw-shadow-color,#0f2a222e);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[selected\=true\]\/case\:border-accent:is(:where(.group\/case)[data-selected=true] *){border-color:var(--color-accent)}.group-data-\[selected\=true\]\/case\:opacity-100:is(:where(.group\/case)[data-selected=true] *){opacity:1}.placeholder\:font-medium::placeholder{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\:text-ink-4::placeholder{color:var(--color-ink-4)}.before\:size-\[calc\(5\*var\(--content\)\)\]:before{content:var(--tw-content);width:calc(5 * var(--content));height:calc(5 * var(--content))}.before\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\:bg-accent:before{content:var(--tw-content);background-color:var(--color-accent)}.before\:opacity-\[0\.55\]:before{content:var(--tw-content);opacity:.55}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\:rounded-\[8px\]:after{content:var(--tw-content);border-radius:8px}.after\:rounded-\[calc\(9\*var\(--content\)\)\]:after{content:var(--tw-content);border-radius:calc(9 * var(--content))}.after\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\:border-2:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:2px}.after\:border-dashed:after{content:var(--tw-content);--tw-border-style:dashed;border-style:dashed}.after\:border-solid:after{content:var(--tw-content);--tw-border-style:solid;border-style:solid}.after\:border-\[\#111\]:after{content:var(--tw-content);border-color:#111}.after\:border-\[\#d9d5c9\]:after{content:var(--tw-content);border-color:#d9d5c9}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.focus-within\:border-accent:focus-within{border-color:var(--color-accent)}.focus-within\:border-ink-3:focus-within{border-color:var(--color-ink-3)}.focus-within\:bg-white:focus-within{background-color:var(--color-white)}.focus-within\:shadow-\[0_0_0_3px_rgba\(15\,42\,34\,0\.07\)\]:focus-within{--tw-shadow:0 0 0 3px var(--tw-shadow-color,#0f2a2212);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:shadow-\[0_0_0_3px_rgba\(20\,18\,13\,0\.05\)\]:focus-within{--tw-shadow:0 0 0 3px var(--tw-shadow-color,#14120d0d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.hover\:border-\[\#d9d5c9\]:hover{border-color:#d9d5c9}.hover\:border-\[var\(--color-ink-4\)\]:hover{border-color:var(--color-ink-4)}.hover\:border-accent:hover{border-color:var(--color-accent)}.hover\:border-ink-4:hover{border-color:var(--color-ink-4)}.hover\:bg-\[\#143a2f\]:hover{background-color:#143a2f}.hover\:bg-\[\#FBE6E2\]:hover{background-color:#fbe6e2}.hover\:bg-\[\#ece9df\]:hover{background-color:#ece9df}.hover\:bg-\[\#f1f0ea\]:hover{background-color:#f1f0ea}.hover\:bg-\[\#f3f1ea\]:hover{background-color:#f3f1ea}.hover\:bg-\[\#faf9f6\]:hover{background-color:#faf9f6}.hover\:bg-\[\#fafaf8\]:hover{background-color:#fafaf8}.hover\:bg-\[\#fbe6e2\]:hover{background-color:#fbe6e2}.hover\:bg-\[\#fbecea\]:hover{background-color:#fbecea}.hover\:bg-\[rgba\(20\,18\,13\,\.06\)\]:hover,.hover\:bg-\[rgba\(20\,18\,13\,0\.06\)\]:hover{background-color:#14120d0f}.hover\:bg-accent-ink:hover{background-color:var(--color-accent-ink)}.hover\:bg-accent-soft:hover{background-color:var(--color-accent-soft)}.hover\:bg-danger\/15:hover{background-color:#b94a3b26}@supports (color:color-mix(in lab,red,red)){.hover\:bg-danger\/15:hover{background-color:color-mix(in oklab,var(--color-danger) 15%,transparent)}}.hover\:bg-honey-2:hover{background-color:var(--color-honey-2)}.hover\:bg-line-soft:hover{background-color:var(--color-line-soft)}.hover\:bg-transparent:hover{background-color:#0000}.hover\:bg-white:hover{background-color:var(--color-white)}.hover\:text-\[\#8E2C1E\]:hover,.hover\:text-\[\#8e2c1e\]:hover{color:#8e2c1e}.hover\:text-accent:hover{color:var(--color-accent)}.hover\:text-danger:hover{color:var(--color-danger)}.hover\:text-ink:hover{color:var(--color-ink)}.hover\:text-ink-2:hover{color:var(--color-ink-2)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:underline-offset-\[3px\]:hover{text-underline-offset:3px}.hover\:shadow-\[0_2px_6px_rgba\(40\,44\,50\,0\.12\)\]:hover{--tw-shadow:0 2px 6px var(--tw-shadow-color,#282c321f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus-visible\:bg-danger\/15:focus-visible{background-color:#b94a3b26}@supports (color:color-mix(in lab,red,red)){.focus-visible\:bg-danger\/15:focus-visible{background-color:color-mix(in oklab,var(--color-danger) 15%,transparent)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-danger\/25:focus-visible{--tw-ring-color:#b94a3b40}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-danger\/25:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-danger) 25%, transparent)}}.active\:translate-y-\[0\.5px\]:active{--tw-translate-y:.5px;translate:var(--tw-translate-x) var(--tw-translate-y)}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:text-ink-4:disabled{color:var(--color-ink-4)}.disabled\:opacity-45:disabled{opacity:.45}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-100:disabled{opacity:1}@media(hover:hover){.disabled\:hover\:bg-accent:disabled:hover{background-color:var(--color-accent)}.disabled\:hover\:bg-transparent:disabled:hover{background-color:#0000}.disabled\:hover\:text-ink-4:disabled:hover{color:var(--color-ink-4)}}.disabled\:active\:translate-y-0:disabled:active{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.has-\[\:focus-visible\]\:border-accent:has(:focus-visible){border-color:var(--color-accent)}.has-\[\>\.we-acc-head\:active\]\:\[transition-duration\:\.08s\]:has(>.we-acc-head:active){transition-duration:80ms}.has-\[\>\.we-acc-head\:hover\]\:shadow-\[0_4px_14px_-6px_rgba\(20\,24\,15\,0\.18\)\]:has(>.we-acc-head:hover){--tw-shadow:0 4px 14px -6px var(--tw-shadow-color,#14180f2e);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[acc-open\=true\]\:rotate-180[data-acc-open=true]{rotate:180deg}.data-\[acc-open\=true\]\:grid-rows-\[1fr\][data-acc-open=true]{grid-template-rows:1fr}.data-\[acc-open\=true\]\:opacity-100[data-acc-open=true]{opacity:1}.data-\[active\=true\]\:bg-accent-soft[data-active=true]{background-color:var(--color-accent-soft)}.data-\[done\]\:border-\[\#cfe6d4\][data-done]{border-color:#cfe6d4}.data-\[done\]\:bg-\[\#eef6ef\][data-done]{background-color:#eef6ef}.data-\[ghost\]\:opacity-40[data-ghost]{opacity:.4}.data-\[selected\=true\]\:border-accent[data-selected=true]{border-color:var(--color-accent)}.data-\[selected\=true\]\:bg-accent-soft[data-selected=true]{background-color:var(--color-accent-soft)}@media(prefers-reduced-motion:reduce){.motion-reduce\:\[transform\:none\]{transform:none}.motion-reduce\:transition-none{transition-property:none}.motion-reduce\:\[transition\:box-shadow_\.18s_ease\,border-color_\.16s_ease\]{transition:box-shadow .18s,border-color .16s}}.\[\&_\*\]\:select-none *{-webkit-user-select:none;user-select:none}.\[\&\>\*\]\:opacity-\[0\.25\]>*{opacity:.25}}:root,:host{--color-canvas:#fff;--color-line:#ebebe6;--color-accent:#0f2a22;--color-accent-ink:#061812;--color-accent-soft:#f3f6ef;--color-danger:#b94a3b;--color-good:#2f7a4e;--color-honey:#f2ca4b;--color-honey-2:#e5b832;--color-honey-ink:#282c32;--color-ink:#14180f;--color-ink-2:#4a4842;--color-ink-3:#8a877e;--color-ink-4:#b9b6ab;--color-line-soft:#f0efe9;--font-mono:var(--font-jetbrains), ui-monospace, SFMono-Regular, monospace;--radius-lg:calc(9 * var(--content));--radius-md:calc(6 * var(--content));--radius-sm:calc(7 * var(--content));--text-body:calc(13 * var(--content));--text-body-lg:calc(14 * var(--content));--text-caption:calc(11 * var(--content));--text-small:calc(12 * var(--content));--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--color-white:#fff;--spacing:.25rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}:root{--frame:clamp(1px, calc(1px + (100vw - 1536px) * .0006076), 1.41667px);--content-follow:.25;--content:calc(1px + (var(--frame) - 1px) * var(--content-follow))}@keyframes we-ml-spin{to{transform:rotate(360deg)}}@keyframes we-ml-rowin{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}@keyframes we-ub-pop{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}@keyframes hp-rest-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.hp-rest-in{animation:.2s cubic-bezier(.22,1,.36,1) hp-rest-in}@media(prefers-reduced-motion:reduce){.hp-rest-in{animation:none}}@keyframes hp-modal-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes hp-modal-backdrop-out{0%{opacity:1}to{opacity:0}}@keyframes hp-modal-panel-in{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes hp-modal-panel-out{0%{opacity:1;transform:translateY(0)scale(1)}to{opacity:0;transform:translateY(8px)scale(.98)}}.hp-modal-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#14120d66;place-items:center;padding:24px;display:grid;position:fixed;top:0;right:0;bottom:0;left:0}.hp-modal-backdrop[data-state=open]{animation:.14s ease-out hp-modal-backdrop-in}.hp-modal-backdrop[data-state=closing]{animation:.14s ease-in forwards hp-modal-backdrop-out}.hp-modal-panel[data-state=open]{animation:.18s cubic-bezier(.4,0,.2,1) hp-modal-panel-in}.hp-modal-panel[data-state=closing]{animation:.15s ease-in forwards hp-modal-panel-out}@media(prefers-reduced-motion:reduce){.hp-modal-backdrop,.hp-modal-panel{animation:none!important}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}
@@ -4,8 +4,8 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>Playground</title>
7
- <script type="module" crossorigin src="./assets/index-JloQyj8h.js"></script>
8
- <link rel="stylesheet" crossorigin href="./assets/index-BSA1yutg.css">
7
+ <script type="module" crossorigin src="./assets/index-CW7co-u9.js"></script>
8
+ <link rel="stylesheet" crossorigin href="./assets/index-CckS2ONm.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -1 +1 @@
1
- var m="data-tr-island",H="data-tr-island-id",T="data-tr-island-props",j="data-tr-island-frameless";var x=class extends Error{name="IslandPropsError"};function z(t){let o;try{o=JSON.parse(t)}catch(e){throw new x(`island props payload is not valid JSON: ${String(e)}`)}if(o===null||typeof o!="object"||Array.isArray(o))throw new x("island props payload must be a JSON object");return o}var B=Symbol.for("homepages.tr-island-editor-instance");function J(t){let o=globalThis,e=o[B];return e||(e=t.createContext(null),o[B]=e),e}var X="100%";function N(t){let o=t.getBoundingClientRect();return o.width>0||o.height>0}function Q(t){if(N(t))return t;let o=t.firstElementChild;if(o&&N(o))return o;for(let e=t.previousElementSibling;e;e=e.previousElementSibling)if(N(e))return e;for(let e=t.parentElement;e;e=e.parentElement)if(N(e))return e;return o??t}function Z(t){let o=t.getBoundingClientRect();return o.bottom>0&&o.right>0&&o.top<window.innerHeight&&o.left<window.innerWidth}function tt(){return navigator.connection?.saveData===!0}function et(t){typeof requestIdleCallback=="function"?requestIdleCallback(t):setTimeout(t,1)}async function q(t){let{markers:o,hydrate:e,warm:a,moduleUrl:l}=t,c=n=>n.getAttribute(m)??"",f=new Set,p=n=>f.has(n)?Promise.resolve(null):(f.add(n),e(n)),w=new Map;for(let n of o)w.set(n,Q(n));let b=n=>w.get(n)??n,E=[],h=[];for(let n of o)(Z(b(n))?E:h).push(n);if(l&&!tt()){let n=new Set;for(let i of h){let s=l(c(i));if(s==null||s===""||n.has(s))continue;n.add(s);let d=document.createElement("link");d.rel="modulepreload",d.href=s,d.setAttribute("fetchpriority","low"),document.head.appendChild(d)}}for(let n of E)a(c(n));let I=[];for(let n of E){let i=await p(n);i&&I.push(i)}let y=null,g=new Map,_=n=>{let i=p(n),s=b(n),d=g.get(s);return(!d||d.every(u=>f.has(u)))&&y?.unobserve(s),i};if(typeof IntersectionObserver<"u"){y=new IntersectionObserver(n=>{for(let i of n)if(i.isIntersecting)for(let s of g.get(i.target)??[])_(s)},{rootMargin:X});for(let n of h){let i=b(n),s=g.get(i);s?s.push(n):(g.set(i,[n]),y.observe(i))}}let R=h.slice(),r=()=>{et(()=>{let n=R.shift();for(;n&&f.has(n);)n=R.shift();if(!n){y?.disconnect();return}_(n).then(r,r)})};return r(),I}var U="data-section-instance-id",C=new WeakMap;async function D(t){let o=t.root??document,e=Array.from(o.querySelectorAll(`[${m}]`)).filter(r=>!C.has(r)&&r.parentElement?.closest(`[${m}]`)==null);if(e.length===0)return[];let a=new Map,l=new Set;for(let r of o.querySelectorAll(`script[${T}]`)){let n=r.getAttribute(T);n!==null&&(a.has(n)&&l.add(n),a.set(n,r.textContent??""))}let[c,{createRoot:f,hydrateRoot:p}]=await Promise.all([import("react"),import("react-dom/client")]),{createElement:w}=c,b=J(c),E=({onMounted:r,children:n})=>{let[i,s]=c.useState(0);return c.useEffect(()=>{i===0?s(1):r()},[i,r]),n},h=new Map,I=r=>{let n=h.get(r);return n||(n=t.load(r),h.set(r,n)),n},y=t.schedule!=="eager",g=y?I:t.load,_=async r=>{let n=r.getAttribute(m)??"",i=r.getAttribute(H)??"",s=()=>{},d=new Promise(S=>{s=S}),u={id:i,key:n,element:r,mounted:d};try{if(l.has(i))throw new Error(`island "${i}" (${n}) shares its id with another ${T} payload \u2014 refusing to hydrate either instance rather than guess whose props belong to which marker`);let S=a.get(i);if(S===void 0)throw new Error(`island "${i}" (${n}) has no ${T} payload`);let F=z(S),v=await g(n);if(u.editor=v.editor,t.shouldHydrate&&!t.shouldHydrate(u)||C.has(r)||!r.isConnected)return s(),null;let W=r.closest(`[${U}]`)?.getAttribute(U)??null,M=w(b,{value:W},w(E,{onMounted:s,children:w(v.default,F)})),k={onUncaughtError:L=>{t.onError?.(L,u),s()},onCaughtError:L=>{t.onError?.(L,u),s()}},O;return r.hasAttribute(j)?(O=f(r,k),O.render(M)):O=p(r,M,k),C.set(r,O),t.onHydrated?.(u),u}catch(S){return t.onError?.(S,u),s(),null}};if(y)return q({markers:e,hydrate:_,warm:r=>{I(r).catch(()=>{})},moduleUrl:t.moduleUrl});let R=[];for(let r of e){let n=await _(r);n&&R.push(n)}return R}function P(t=document){let o=t instanceof Element&&t.matches(`[${m}]`)?[t]:[];for(let e of[...o,...t.querySelectorAll(`[${m}]`)]){let a=C.get(e);a&&(C.delete(e),a.unmount())}}import{createElement as ot,useLayoutEffect as rt}from"react";var A="we-enh-shield",Y="we-enh-shield--item",st="data-we-live",it="data-slot-item",at=window.__TR_ISLAND_MAP||{};function lt(t){let o=at[t];return o?import(new URL(o,document.baseURI).href):Promise.reject(new Error("playground: no island module for "+t))}var $=new WeakMap;function ct(t,o){return function(a){return rt(o,[]),ot(t,a)}}function dt(t){return t.__trIslandReal||t.default}async function ut(t){let o=await lt(t),e,a=new Promise(c=>{e=c}),l=o.editor?{...o.editor}:void 0;return l&&$.set(l,{committed:a,signalCommit:e}),{...o,editor:l,default:ct(dt(o),e)}}function ft(t,o){let e=t.createElement("div");return e.className=o?A+" "+Y:A,e.setAttribute("aria-hidden","true"),e}function V(t,o){let e=t.ownerDocument,a=e.defaultView,l=a?a.getComputedStyle(t).position:"";(!l||l==="static")&&(t.style.position="relative"),!Array.from(t.children).some(c=>c.classList.contains(A))&&t.appendChild(ft(e,o))}function pt(t){let o=t.editor;if(!o||o.live!==!0)return;let e=t.element;for(let p of Array.from(e.querySelectorAll("["+it+"]")))V(p,!0);let l=e.ownerDocument.defaultView,f=(l?l.getComputedStyle(e).display:"")==="contents"?Array.from(e.children):[e];for(let p of f)V(p,!1)}var G=!1;function mt(){if(G||document.getElementById("tr-canvas-shield-style"))return;G=!0;let t=document.createElement("style");t.id="tr-canvas-shield-style",t.textContent="."+A+"{position:absolute;inset:0;z-index:1;cursor:pointer;background:transparent;}."+Y+"{z-index:2;}["+st+"] ."+A+"{display:none;}",document.head.appendChild(t)}async function K(t){mt();let o=await D({root:t,load:ut,schedule:"eager",shouldHydrate:e=>e.editor?e.editor.live===!0:!1,onError:(e,a)=>{if(console.error("playground: canvas island failed to hydrate:",a.key,e),a.editor){let l=$.get(a.editor);l&&l.signalCommit()}}});await Promise.all(o.map(e=>e.editor?$.get(e.editor):void 0).filter(e=>e!==void 0).map(e=>e.committed));for(let e of o)pt(e);return o}function ht(t){P(t),t.querySelectorAll("."+A).forEach(o=>o.remove())}window.__trCanvasIslands={hydrateRoot:K,unmountRoot:ht};K(document.body);
1
+ var f="data-tr-island",j="data-tr-island-id",T="data-tr-island-props",z="data-tr-island-frameless";var O=class extends Error{name="IslandPropsError"};function B(t){let o;try{o=JSON.parse(t)}catch(e){throw new O(`island props payload is not valid JSON: ${String(e)}`)}if(o===null||typeof o!="object"||Array.isArray(o))throw new O("island props payload must be a JSON object");return o}var J=Symbol.for("homepages.tr-island-editor-instance");function q(t){let o=globalThis,e=o[J];return e||(e=t.createContext(null),o[J]=e),e}var U=Symbol.for("homepages.tr-island-id");function V(t){let o=globalThis,e=o[U];return e||(e=t.createContext(null),o[U]=e),e}var tt="100%";function N(t){let o=t.getBoundingClientRect();return o.width>0||o.height>0}function et(t){if(N(t))return t;let o=t.firstElementChild;if(o&&N(o))return o;for(let e=t.previousElementSibling;e;e=e.previousElementSibling)if(N(e))return e;for(let e=t.parentElement;e;e=e.parentElement)if(N(e))return e;return o??t}function nt(t){let o=t.getBoundingClientRect();return o.bottom>0&&o.right>0&&o.top<window.innerHeight&&o.left<window.innerWidth}function ot(){return navigator.connection?.saveData===!0}function rt(t){typeof requestIdleCallback=="function"?requestIdleCallback(t):setTimeout(t,1)}async function Y(t){let{markers:o,hydrate:e,warm:i,moduleUrl:a}=t,c=n=>n.getAttribute(f)??"",d=new Set,u=n=>d.has(n)?Promise.resolve(null):(d.add(n),e(n)),p=new Map;for(let n of o)p.set(n,et(n));let I=n=>p.get(n)??n,b=[],w=[];for(let n of o)(nt(I(n))?b:w).push(n);if(a&&!ot()){let n=new Set;for(let r of w){let s=a(c(r));if(s==null||s===""||n.has(s))continue;n.add(s);let l=document.createElement("link");l.rel="modulepreload",l.href=s,l.setAttribute("fetchpriority","low"),document.head.appendChild(l)}}for(let n of b)i(c(n));let E=[];for(let n of b){let r=await u(n);r&&E.push(r)}let m=null,h=new Map,R=n=>{let r=u(n),s=I(n),l=h.get(s);return(!l||l.every(L=>d.has(L)))&&m?.unobserve(s),r};if(typeof IntersectionObserver<"u"){m=new IntersectionObserver(n=>{for(let r of n)if(r.isIntersecting)for(let s of h.get(r.target)??[])R(s)},{rootMargin:tt});for(let n of w){let r=I(n),s=h.get(r);s?s.push(n):(h.set(r,[n]),m.observe(r))}}let _=w.slice(),g=()=>{rt(()=>{let n=_.shift();for(;n&&d.has(n);)n=_.shift();if(!n){m?.disconnect();return}R(n).then(g,g)})};return g(),E}var G="data-section-instance-id",C=new WeakMap;async function P(t){let o=t.root??document,e=Array.from(o.querySelectorAll(`[${f}]`)).filter(n=>!C.has(n)&&n.parentElement?.closest(`[${f}]`)==null);if(e.length===0)return[];let i=new Map,a=new Set;for(let n of o.querySelectorAll(`script[${T}]`)){let r=n.getAttribute(T);r!==null&&(i.has(r)&&a.add(r),i.set(r,n.textContent??""))}let[c,{createRoot:d,hydrateRoot:u}]=await Promise.all([import("react"),import("react-dom/client")]),{createElement:p}=c,I=q(c),b=V(c),w=({onMounted:n,children:r})=>{let[s,l]=c.useState(0);return c.useEffect(()=>{s===0?l(1):n()},[s,n]),r},E=new Map,m=n=>{let r=E.get(n);return r||(r=t.load(n),E.set(n,r)),r},h=t.schedule!=="eager",R=h?m:t.load,_=async n=>{let r=n.getAttribute(f)??"",s=n.getAttribute(j)??"",l=()=>{},L=new Promise(S=>{l=S}),y={id:s,key:r,element:n,mounted:L};try{if(a.has(s))throw new Error(`island "${s}" (${r}) shares its id with another ${T} payload \u2014 refusing to hydrate either instance rather than guess whose props belong to which marker`);let S=i.get(s);if(S===void 0)throw new Error(`island "${s}" (${r}) has no ${T} payload`);let Q=B(S),M=await R(r);if(y.editor=M.editor,t.shouldHydrate&&!t.shouldHydrate(y)||C.has(n)||!n.isConnected)return l(),null;let Z=n.closest(`[${G}]`)?.getAttribute(G)??null,k=p(I,{value:Z},p(b,{value:s},p(w,{onMounted:l,children:p(M.default,Q)}))),H={onUncaughtError:D=>{t.onError?.(D,y),l()},onCaughtError:D=>{t.onError?.(D,y),l()}},x;return n.hasAttribute(z)?(x=d(n,H),x.render(k)):x=u(n,k,H),C.set(n,x),t.onHydrated?.(y),y}catch(S){return t.onError?.(S,y),l(),null}};if(h)return Y({markers:e,hydrate:_,warm:n=>{m(n).catch(()=>{})},moduleUrl:t.moduleUrl});let g=[];for(let n of e){let r=await _(n);r&&g.push(r)}return g}function $(t=document){let o=t instanceof Element&&t.matches(`[${f}]`)?[t]:[];for(let e of[...o,...t.querySelectorAll(`[${f}]`)]){let i=C.get(e);i&&(C.delete(e),i.unmount())}}import{createElement as it,useLayoutEffect as at}from"react";var A="we-enh-shield",W="we-enh-shield--item",lt="data-we-live",ct="data-slot-item",dt=window.__TR_ISLAND_MAP||{};function ut(t){let o=dt[t];return o?import(new URL(o,document.baseURI).href):Promise.reject(new Error("playground: no island module for "+t))}var v=new WeakMap;function ft(t,o){return function(i){return at(o,[]),it(t,i)}}function pt(t){return t.__trIslandReal||t.default}async function mt(t){let o=await ut(t),e,i=new Promise(c=>{e=c}),a=o.editor?{...o.editor}:void 0;return a&&v.set(a,{committed:i,signalCommit:e}),{...o,editor:a,default:ft(pt(o),e)}}function ht(t,o){let e=t.createElement("div");return e.className=o?A+" "+W:A,e.setAttribute("aria-hidden","true"),e}function K(t,o){let e=t.ownerDocument,i=e.defaultView,a=i?i.getComputedStyle(t).position:"";(!a||a==="static")&&(t.style.position="relative"),!Array.from(t.children).some(c=>c.classList.contains(A))&&t.appendChild(ht(e,o))}function yt(t){let o=t.editor;if(!o||o.live!==!0)return;let e=t.element;for(let u of Array.from(e.querySelectorAll("["+ct+"]")))K(u,!0);let a=e.ownerDocument.defaultView,d=(a?a.getComputedStyle(e).display:"")==="contents"?Array.from(e.children):[e];for(let u of d)K(u,!1)}var F=!1;function wt(){if(F||document.getElementById("tr-canvas-shield-style"))return;F=!0;let t=document.createElement("style");t.id="tr-canvas-shield-style",t.textContent="."+A+"{position:absolute;inset:0;z-index:1;cursor:pointer;background:transparent;}."+W+"{z-index:2;}["+lt+"] ."+A+"{display:none;}",document.head.appendChild(t)}async function X(t){wt();let o=await P({root:t,load:mt,schedule:"eager",shouldHydrate:e=>e.editor?e.editor.live===!0:!1,onError:(e,i)=>{if(console.error("playground: canvas island failed to hydrate:",i.key,e),i.editor){let a=v.get(i.editor);a&&a.signalCommit()}}});await Promise.all(o.map(e=>e.editor?v.get(e.editor):void 0).filter(e=>e!==void 0).map(e=>e.committed));for(let e of o)yt(e);return o}function gt(t){$(t),t.querySelectorAll("."+A).forEach(o=>o.remove())}window.__trCanvasIslands={hydrateRoot:X,unmountRoot:gt};X(document.body);
@@ -1,4 +1,4 @@
1
- var Ve=/^(\d+(?:\.\d+)?)(in|mm)$/;function J(e){let t=Ve.exec(e),[,n,o]=t??[];if(n===void 0||o===void 0)throw new Error(`malformed physical length: "${e}"`);let s=Number.parseFloat(n);return o==="mm"?s/25.4:s}function N(e){if(typeof e.width=="number"&&typeof e.height=="number")return{frameWidth:e.width,frameHeight:e.height,bleed:0,viewportWidth:e.width,viewportHeight:e.height,deviceScaleFactor:1,pixelWidth:e.width,pixelHeight:e.height,pointWidth:e.width/96*72,pointHeight:e.height/96*72,bleedPoints:0};let t=e,n=J(t.width),o=J(t.height),s=t.bleed===void 0?0:J(t.bleed),l=n*96,f=o*96,r=s*96,m=l+2*r,v=f+2*r,R=t.dpi/96;return{frameWidth:l,frameHeight:f,bleed:r,viewportWidth:m,viewportHeight:v,deviceScaleFactor:R,pixelWidth:Math.round(m*R),pixelHeight:Math.round(v*R),pointWidth:(n+2*s)*72,pointHeight:(o+2*s)*72,bleedPoints:s*72}}var T="tr-frame";function M(e){let t=N(e);return{"--frame-w":`${t.frameWidth}px`,"--frame-h":`${t.frameHeight}px`,"--frame-bleed":`${t.bleed}px`}}var K=`(function () {
1
+ var Xe=/^(\d+(?:\.\d+)?)(in|mm)$/;function Y(e){let t=Xe.exec(e),[,n,r]=t??[];if(n===void 0||r===void 0)throw new Error(`malformed physical length: "${e}"`);let o=Number.parseFloat(n);return r==="mm"?o/25.4:o}function N(e){if(typeof e.width=="number"&&typeof e.height=="number")return{frameWidth:e.width,frameHeight:e.height,bleed:0,viewportWidth:e.width,viewportHeight:e.height,deviceScaleFactor:1,pixelWidth:e.width,pixelHeight:e.height,pointWidth:e.width/96*72,pointHeight:e.height/96*72,bleedPoints:0};let t=e,n=Y(t.width),r=Y(t.height),o=t.bleed===void 0?0:Y(t.bleed),l=n*96,u=r*96,d=o*96,a=l+2*d,h=u+2*d,v=t.dpi/96;return{frameWidth:l,frameHeight:u,bleed:d,viewportWidth:a,viewportHeight:h,deviceScaleFactor:v,pixelWidth:Math.round(a*v),pixelHeight:Math.round(h*v),pointWidth:(n+2*o)*72,pointHeight:(r+2*o)*72,bleedPoints:o*72}}var $="tr-frame";function O(e){let t=N(e);return{"--frame-w":`${t.frameWidth}px`,"--frame-h":`${t.frameHeight}px`,"--frame-bleed":`${t.bleed}px`}}var J=`(function () {
2
2
  function CaptureIntersectionObserver(callback, options) {
3
3
  var opts = options || {};
4
4
  this.root = opts.root || null;
@@ -46,27 +46,27 @@ var Ve=/^(\d+(?:\.\d+)?)(in|mm)$/;function J(e){let t=Ve.exec(e),[,n,o]=t??[];if
46
46
  return entries;
47
47
  };
48
48
  window.IntersectionObserver = CaptureIntersectionObserver;
49
- })();`;var Y="__trIslandsReady",ze=`(async () => {
50
- const ready = window.${Y};
49
+ })();`;var K="__trIslandsReady",Ke=`(async () => {
50
+ const ready = window.${K};
51
51
  if (ready === undefined) {
52
52
  throw new Error(
53
53
  "capture blocked: the page ships island markers but its host published no " +
54
- "window.${Y} \u2014 the island runtime never ran",
54
+ "window.${K} \u2014 the island runtime never ran",
55
55
  );
56
56
  }
57
57
  await ready;
58
- })()`;var le=400;var Be=`(async () => {
58
+ })()`;var le=400;var Je=`(async () => {
59
59
  await new Promise((resolve) => {
60
60
  setTimeout(resolve, ${le});
61
61
  });
62
62
  await new Promise((resolve) => {
63
63
  requestAnimationFrame(() => resolve(undefined));
64
64
  });
65
- })()`,de=5,Ge=`(async () => {
65
+ })()`,ce=5,Qe=`(async () => {
66
66
  const frame = () => new Promise((resolve) => {
67
67
  requestAnimationFrame(() => resolve(undefined));
68
68
  });
69
- for (let pass = 0; pass < ${de}; pass += 1) {
69
+ for (let pass = 0; pass < ${ce}; pass += 1) {
70
70
  const running = document.getAnimations().filter((animation) => {
71
71
  if (animation.playState === "finished" || animation.playState === "idle") return false;
72
72
  const timing = animation.effect && animation.effect.getComputedTiming();
@@ -83,14 +83,14 @@ var Ve=/^(\d+(?:\.\d+)?)(in|mm)$/;function J(e){let t=Ve.exec(e),[,n,o]=t??[];if
83
83
  await frame();
84
84
  }
85
85
  await frame();
86
- })()`;function D(e){return JSON.stringify(e).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026")}function y(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ce(e){return ue(e.id,{...M(e)})}function ue(e,t){let n=Object.entries(t).map(([o,s])=>`${o}:${s}`).join(";");return{class:T,dataFormat:e,style:n}}function j(e,t){let n=ce(e);return`<div class="${y(n.class)}" data-format="${y(n.dataFormat)}" style="${y(n.style)}">${t.join("")}</div>`}function k(e){switch(e.destination){case"published":return Xe(e);case"artifact":return Je(e);case"preview":return Ye(e);case"diff":return Ke(e)}}function pe(e){return e.kind==="none"||Object.keys(e.islandMap).length===0?[]:[`<script>${K}</script>`]}var fe="html, body { margin: 0; padding: 0; }";function me(e){let t=[`rel="${e.rel}"`,`href="${y(e.href)}"`];return e.sizes!==void 0&&t.push(`sizes="${y(e.sizes)}"`),e.type!==void 0&&t.push(`type="${y(e.type)}"`),`<link ${t.join(" ")} />`}function Xe(e){let{meta:t}=e,n=['<meta charset="utf-8" />','<meta name="viewport" content="width=device-width, initial-scale=1" />',`<title>${y(t.title)}</title>`,`<meta name="description" content="${y(t.description)}" />`];t.canonical&&n.push(`<link rel="canonical" href="${y(t.canonical)}" />`);for(let s of t.icons??[])n.push(me(s));n.push('<meta property="og:type" content="website" />'),t.siteName&&n.push(`<meta property="og:site_name" content="${y(t.siteName)}" />`),n.push(`<meta property="og:title" content="${y(t.title)}" />`),n.push(`<meta property="og:description" content="${y(t.description)}" />`),t.ogUrl&&n.push(`<meta property="og:url" content="${y(t.ogUrl)}" />`),t.ogImage&&(n.push(`<meta property="og:image" content="${y(t.ogImage)}" />`),t.ogImageWidth&&n.push(`<meta property="og:image:width" content="${t.ogImageWidth}" />`),t.ogImageHeight&&n.push(`<meta property="og:image:height" content="${t.ogImageHeight}" />`),t.ogImageType&&n.push(`<meta property="og:image:type" content="${y(t.ogImageType)}" />`),t.ogImageAlt&&n.push(`<meta property="og:image:alt" content="${y(t.ogImageAlt)}" />`),n.push('<meta name="twitter:card" content="summary_large_image" />'),n.push(`<meta name="twitter:title" content="${y(t.title)}" />`),n.push(`<meta name="twitter:description" content="${y(t.description)}" />`),n.push(`<meta name="twitter:image" content="${y(t.ogImage)}" />`)),n.push(...W(e.stylesheets)),n.push(...Z(e.islands)),e.prefetchUrls&&e.prefetchUrls.length>0&&n.push(`<script type="speculationrules">${D({prefetch:[{source:"list",urls:[...e.prefetchUrls]}]})}</script>`);let o=e.siteConfig?`
87
- <script type="application/json" id="tr-site-config">${D(e.siteConfig)}</script>`:"";return L({lang:t.lang??"en",head:n,body:` <body class="tr-root">
88
- ${e.root.bodyHtml}${o}${ee(e.islands,"viewport")}
86
+ })()`;function M(e){return JSON.stringify(e).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026")}function y(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function de(e){return ue(e.id,{...O(e)})}function ue(e,t){let n=Object.entries(t).map(([r,o])=>`${r}:${o}`).join(";");return{class:$,dataFormat:e,style:n}}function L(e,t){let n=de(e);return`<div class="${y(n.class)}" data-format="${y(n.dataFormat)}" style="${y(n.style)}">${t.join("")}</div>`}function C(e){switch(e.destination){case"published":return Ze(e);case"artifact":return et(e);case"preview":return tt(e);case"diff":return nt(e)}}function pe(e){return e.kind==="none"||Object.keys(e.islandMap).length===0?[]:[`<script>${J}</script>`]}var me="html, body { margin: 0; padding: 0; }";function fe(e){let t=[`rel="${e.rel}"`,`href="${y(e.href)}"`];return e.sizes!==void 0&&t.push(`sizes="${y(e.sizes)}"`),e.type!==void 0&&t.push(`type="${y(e.type)}"`),`<link ${t.join(" ")} />`}function Ze(e){let{meta:t}=e,n=['<meta charset="utf-8" />','<meta name="viewport" content="width=device-width, initial-scale=1" />',`<title>${y(t.title)}</title>`,`<meta name="description" content="${y(t.description)}" />`];t.canonical&&n.push(`<link rel="canonical" href="${y(t.canonical)}" />`);for(let o of t.icons??[])n.push(fe(o));n.push('<meta property="og:type" content="website" />'),t.siteName&&n.push(`<meta property="og:site_name" content="${y(t.siteName)}" />`),n.push(`<meta property="og:title" content="${y(t.title)}" />`),n.push(`<meta property="og:description" content="${y(t.description)}" />`),t.ogUrl&&n.push(`<meta property="og:url" content="${y(t.ogUrl)}" />`),t.ogImage&&(n.push(`<meta property="og:image" content="${y(t.ogImage)}" />`),t.ogImageWidth&&n.push(`<meta property="og:image:width" content="${t.ogImageWidth}" />`),t.ogImageHeight&&n.push(`<meta property="og:image:height" content="${t.ogImageHeight}" />`),t.ogImageType&&n.push(`<meta property="og:image:type" content="${y(t.ogImageType)}" />`),t.ogImageAlt&&n.push(`<meta property="og:image:alt" content="${y(t.ogImageAlt)}" />`),n.push('<meta name="twitter:card" content="summary_large_image" />'),n.push(`<meta name="twitter:title" content="${y(t.title)}" />`),n.push(`<meta name="twitter:description" content="${y(t.description)}" />`),n.push(`<meta name="twitter:image" content="${y(t.ogImage)}" />`)),n.push(...q(e.stylesheets)),n.push(...Z(e.islands)),e.prefetchUrls&&e.prefetchUrls.length>0&&n.push(`<script type="speculationrules">${M({prefetch:[{source:"list",urls:[...e.prefetchUrls]}]})}</script>`);let r=e.siteConfig?`
87
+ <script type="application/json" id="tr-site-config">${M(e.siteConfig)}</script>`:"";return j({lang:t.lang??"en",head:n,body:` <body class="tr-root">
88
+ ${e.root.bodyHtml}${r}${ee(e.islands,"viewport")}
89
89
  <script type="module" src="${y(e.analyticsJs.url)}"></script>
90
- </body>`})}function Je(e){let t=['<meta charset="utf-8" />'];e.title!==void 0&&t.push(`<title>${y(e.title)}</title>`),t.push(...W(e.stylesheets));let n=[fe,...Ze(e.root)];return t.push(Q(n)),t.push(...pe(e.islands)),t.push(...Z(e.islands)),L({lang:"en",head:t,body:` <body>${Qe(e.root)}${ee(e.islands,"eager")}</body>`})}function Ye(e){let t=['<meta charset="utf-8" />','<meta name="viewport" content="width=device-width, initial-scale=1" />',`<title>${y(e.title)}</title>`,...e.icon===void 0?[]:[me({rel:"icon",href:e.icon})],...W(e.stylesheets),Q([fe,...e.extraCss??[]]),...e.capture===!0?pe(e.islands):[],...Z(e.islands)],n=(e.devScripts??[]).map(o=>`
91
- ${o}`).join("");return L({lang:"en",head:t,body:` <body>
90
+ </body>`})}function et(e){let t=['<meta charset="utf-8" />'];e.title!==void 0&&t.push(`<title>${y(e.title)}</title>`),t.push(...q(e.stylesheets));let n=[me,...ot(e.root)];return t.push(Q(n)),t.push(...pe(e.islands)),t.push(...Z(e.islands)),j({lang:"en",head:t,body:` <body>${rt(e.root)}${ee(e.islands,"eager")}</body>`})}function tt(e){let t=['<meta charset="utf-8" />','<meta name="viewport" content="width=device-width, initial-scale=1" />',`<title>${y(e.title)}</title>`,...e.icon===void 0?[]:[fe({rel:"icon",href:e.icon})],...q(e.stylesheets),Q([me,...e.extraCss??[]]),...e.capture===!0?pe(e.islands):[],...Z(e.islands)],n=(e.devScripts??[]).map(r=>`
91
+ ${r}`).join("");return j({lang:"en",head:t,body:` <body>
92
92
  ${e.root.bodyHtml}${ee(e.islands,e.capture===!0?"eager":"viewport")}${n}
93
- </body>`})}function Ke(e){let t=['<meta charset="utf-8" />',`<meta name="viewport" content="width=${e.viewportWidth}, initial-scale=1" />`,`<title>${y(e.title)}</title>`,...W(e.stylesheets),Q([`html, body { margin: 0; padding: 0; width: ${e.viewportWidth}px; }`])];return L({lang:"en",head:t,body:` <body>${e.root.bodyHtml}</body>`})}function L(e){let t=e.head.map(n=>` ${n}`).join(`
93
+ </body>`})}function nt(e){let t=['<meta charset="utf-8" />',`<meta name="viewport" content="width=${e.viewportWidth}, initial-scale=1" />`,`<title>${y(e.title)}</title>`,...q(e.stylesheets),Q([`html, body { margin: 0; padding: 0; width: ${e.viewportWidth}px; }`])];return j({lang:"en",head:t,body:` <body>${e.root.bodyHtml}</body>`})}function j(e){let t=e.head.map(n=>` ${n}`).join(`
94
94
  `);return`<!doctype html>
95
95
  <html lang="${y(e.lang)}">
96
96
  <head>
@@ -98,22 +98,22 @@ ${t}
98
98
  </head>
99
99
  ${e.body}
100
100
  </html>
101
- `}function Qe(e){return e.kind==="frame"?j(e.format,e.sectionHtml):e.pages.map(t=>j(e.format,t)).join(`
102
- `)}function Ze(e){return e.kind!=="frameStack"?[]:[`body > .${T} { break-after: page; }`,`body > .${T}:last-child { break-after: auto; }`]}function W(e){return e.kind==="links"?e.hrefs.map(t=>`<link rel="stylesheet" href="${y(t)}" />`):e.css.map(t=>`<style>${t}</style>`)}function Q(e){let[t,...n]=e;return t===void 0?"<style></style>":n.length===0?`<style>${t}</style>`:`<style>${t}
101
+ `}function rt(e){return e.kind==="frame"?L(e.format,e.sectionHtml):e.pages.map(t=>L(e.format,t)).join(`
102
+ `)}function ot(e){return e.kind!=="frameStack"?[]:[`body > .${$} { break-after: page; }`,`body > .${$}:last-child { break-after: auto; }`]}function q(e){return e.kind==="links"?e.hrefs.map(t=>`<link rel="stylesheet" href="${y(t)}" />`):e.css.map(t=>`<style>${t}</style>`)}function Q(e){let[t,...n]=e;return t===void 0?"<style></style>":n.length===0?`<style>${t}</style>`:`<style>${t}
103
103
  ${n.join(`
104
104
  `)}
105
- </style>`}function Z(e){if(e.kind!=="bundles")return[];let t=[],n=e.reactVendorMap;if(n&&Object.keys(n).length>0&&t.push(`<script type="importmap">${D({imports:n})}</script>`),Object.keys(e.islandMap).length===0)return t;for(let o of[e.runtime.url,...Object.values(n??{}),...e.reactVendorCore?[e.reactVendorCore.url]:[]])t.push(`<link rel="modulepreload" href="${y(o)}" />`);return t}function ee(e,t){if(e.kind==="none"||Object.keys(e.islandMap).length===0)return"";let n=D(e.islandMap),o=t==="eager"?' window.__TR_ISLAND_SCHEDULE = "eager";':"";return e.kind==="bundles"?`
106
- <script>window.__TR_ISLAND_MAP=${n};${o}</script>
105
+ </style>`}function Z(e){if(e.kind!=="bundles")return[];let t=[],n=e.reactVendorMap;if(n&&Object.keys(n).length>0&&t.push(`<script type="importmap">${M({imports:n})}</script>`),Object.keys(e.islandMap).length===0)return t;for(let r of[e.runtime.url,...Object.values(n??{}),...e.reactVendorCore?[e.reactVendorCore.url]:[]])t.push(`<link rel="modulepreload" href="${y(r)}" />`);return t}function ee(e,t){if(e.kind==="none"||Object.keys(e.islandMap).length===0)return"";let n=M(e.islandMap),r=t==="eager"?' window.__TR_ISLAND_SCHEDULE = "eager";':"";return e.kind==="bundles"?`
106
+ <script>window.__TR_ISLAND_MAP=${n};${r}</script>
107
107
  <script type="module" src="${y(e.runtime.url)}"></script>`:`
108
- ${et}
109
- <script>window.__TR_ISLAND_MAP = ${n};${o}</script>
110
- <script type="module" src="${y(e.bootstrapUrl)}"></script>`}var et=`<script type="module">
108
+ ${it}
109
+ <script>window.__TR_ISLAND_MAP = ${n};${r}</script>
110
+ <script type="module" src="${y(e.bootstrapUrl)}"></script>`}var it=`<script type="module">
111
111
  import RefreshRuntime from "/@react-refresh";
112
112
  RefreshRuntime.injectIntoGlobalHook(window);
113
113
  window.$RefreshReg$ = () => {};
114
114
  window.$RefreshSig$ = () => (type) => type;
115
115
  window.__vite_plugin_react_preamble_installed__ = true;
116
- </script>`;function ge(){let e={};return new Proxy(e,{get:(t,n)=>typeof n!="string"||n in e||n==="then"||n==="toJSON"?e[n]:`#${n}`})}function ye(e){let t=new URLSearchParams;for(let[o,s]of Object.entries(e))s!=null&&s!==""&&t.set(o,s);let n=t.toString();return n===""?"":`?${n}`}var E={catalog:"api/catalog",render:"api/render",media:e=>`api/media${ye({fixture:e})}`,capture:(e,t)=>`api/capture/${e}${ye({fixture:t.fixture,format:t.format,page:t.page,canvas:t.canvas})}`,live:(e,t)=>`fixtures/${encodeURIComponent(e)}/live${t==="/"?"/":`${t}/`}`,hmr:"__hmr"};var g=class extends Error{constructor(n,o){super(o);this.status=n}status};function tt(e){return e.split("-").map(t=>t&&t[0].toUpperCase()+t.slice(1)).join(" ")}function he(e){let{variant:t}=e;return{required:e.required,variant:t===null?null:{cases:t.cases.map(n=>({value:n,label:tt(n)})),locked:t.locked}}}function we(e){return Object.fromEntries(e.map(t=>[t.instance_id,{enabled:t.enabled,...t.variant===void 0?{}:{variant:t.variant}}]))}function Re(e){if(e==null)return{};if(typeof e!="object"||Array.isArray(e))throw new g(400,"A render request's display is an object keyed by instance id.");let t={};for(let[n,o]of Object.entries(e)){if(typeof o!="object"||o===null||Array.isArray(o))throw new g(400,`The display state of "${n}" is not an object.`);let{enabled:s,variant:l}=o;if(s!==void 0&&typeof s!="boolean")throw new g(400,`The display state of "${n}" has a non-boolean enabled.`);if(l!==void 0&&typeof l!="string")throw new g(400,`The display state of "${n}" has a non-string variant.`);t[n]={...s===void 0?{}:{enabled:s},...l===void 0?{}:{variant:l}}}return t}function be(e,t){for(let[n,o]of Object.entries(t)){let s=e.instances.find(f=>f.instanceId===n);if(s===void 0)throw new g(400,`The composition places no instance "${n}".`);if(o.enabled===!1&&s.display.required)throw new g(400,`Section instance "${n}" is required and cannot be hidden.`);if(o.variant===void 0)continue;let l=s.display.variant;if(l===null)throw new g(400,`Section instance "${n}" declares no display variant.`);if(l.locked)throw new g(400,`Section instance "${n}" declares a locked variant, which the user cannot switch.`);if(!l.cases.includes(o.variant))throw new g(400,`"${o.variant}" is not a declared case of section instance "${n}" (declared: ${l.cases.join(", ")}).`)}}function Se(e,t){return new Map(e.instances.map(n=>[n.instance_id,t[n.instance_id]?.enabled??n.enabled]))}function _e(e,t,n){let o=n[e.instance_id]?.variant;if(o===void 0||o===e.variant)return e;let s={...e.slots};for(let[l,f]of Object.entries(t))l in s||(f.variant===void 0||f.variant.cases.includes(o))&&(s[l]=f.type==="list"?[]:null);return{...e,variant:o,slots:s}}function ve(e){return Array.isArray(e)?e.length:0}function xe(e){return typeof e=="string"&&e!==""?e:null}function nt(e){return{propertyType:xe(e.property_type),listingIntent:xe(e.listing_intent),units:ve(e.units),photos:ve(e.photos)}}function rt(e){let t=JSON.stringify(e),n=3735928559,o=1103547991;for(let s=0;s<t.length;s++){let l=t.charCodeAt(s);n=Math.imul(n^l,2654435761),o=Math.imul(o^l,1597334677)}return n=Math.imul(n^n>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&o)+(n>>>0)).toString(16).padStart(14,"0")}function Ie(e){return{id:e.id,label:e.label,group:e.synthesized===!0?"empties":"fixtures",summary:nt(e.facts),doc:rt(e.instances),display:we(e.instances)}}function Pe(e,t){let n=e.replace(/\/+$/,"");return t==="/"?`${n}/`:`${n}${t}/`}function $e(e){let{pages:t,currentPageId:n,basePath:o}=e,s=t.find(r=>r.id===n);if(!s)throw new Error(`nav: page "${n}" is not one of the declared pages (${t.map(r=>r.id).join(", ")}).`);let l=[s,...t.filter(r=>r.id!==s.id&&r.enabled!==!1)],f={};for(let r of l)for(let m of r.sections)m.enabled===!1||m.key in f||(f[m.key]=r.id===s.id?`#${m.anchor}`:`${Pe(o,r.path)}#${m.anchor}`);return{anchors:f,pages:t.filter(r=>r.enabled!==!1).map(r=>({id:r.id,label:r.label,href:Pe(o,r.path),current:r.id===s.id}))}}function V(e,t){return e.pages?.[t]?.enabled!==!1}function te(e,t){return t.filter(n=>V(e,n.id))}var O={base:"stylesheets/base.css",template:"stylesheets/template.css"},I={frame:"__capture/frame",print:"__capture/print"};function Ee(e){return new URLSearchParams(e).toString()}function ne(e,t,n){return`${I.frame}?${Ee({fixture:e,page:t,format:n})}`}function Te(e,t){return`${I.print}?${Ee({fixture:e,format:t})}`}var q=e=>e<0?0:e>1?1:e;function F(e){if(typeof e!="object"||e===null)return null;let{nx:t=0,ny:n=0,nw:o=1,nh:s=1}=e;if(![t,n,o,s].every(m=>typeof m=="number"&&Number.isFinite(m)))return null;let l=q(t),f=q(n),r={nx:l,ny:f,nw:Math.min(q(o),1-l),nh:Math.min(q(s),1-f)};return r.nw<=0||r.nh<=0||r.nx===0&&r.ny===0&&r.nw===1&&r.nh===1?null:r}var z={file(e){return typeof e=="string"?{url:e,responsive:null}:{url:e.url,responsive:e.responsive}}};function ot(e){if(typeof e!="object"||e===null)return null;let t=e.asset_id;return typeof t=="string"&&t!==""?t:null}function st(e,t,n){if(e.file===null)return null;let o=n.crop===void 0?null:F(t.rect),s=n.crop===void 0?null:F(t.mobile_rect),l=n.file(e.file),f=o===null?{photo_id:e.id,url:l.url,alt:e.alt,responsive:l.responsive}:{photo_id:e.id,url:n.crop(e.file,o),alt:e.alt,responsive:null,rect:o};return s!==null&&(f.mobile={url:n.crop(e.file,s),responsive:null}),f}function it(e,t){return e.file===null?{video_id:e.id,url:e.url??"",poster:"",alt:e.alt,source:"link",...e.provider===null?{}:{provider:e.provider}}:{video_id:e.id,url:t.file(e.file).url,poster:"",alt:e.alt,source:"upload"}}function at(e){return{tour_id:e.id,url:e.url??"",poster:"",alt:e.alt,...e.provider===null?{}:{provider:e.provider}}}function lt(e,t){return e.file===null?null:{asset_id:e.id,url:t.file(e.file).url,filename:e.filename,content_type:e.mime,size_bytes:0}}function dt(e,t,n,o){let s=ot(t),l=s===null?void 0:n.get(s);if(l===void 0||l.kind!==e)return null;switch(e){case"image":return st(l,t,o);case"video":return it(l,o);case"tour":return at(l);case"document":return lt(l,o);default:return null}}var ct=new Set(["image","video","tour","document"]);function re(e,t,n,o){if(t==null)return t;if(ct.has(e.type))return dt(e.type,t,n,o);if(e.type!=="list"||!Array.isArray(t))return t;let s=t;if(e.fields!==void 0){let l=e.fields;return s.map(f=>{if(typeof f!="object"||f===null)return f;let r={...f};for(let[m,v]of Object.entries(l))r[m]=re(v,r[m],n,o);return r})}if(e.element!==void 0){let l=e.element;return s.map(f=>re(l,f,n,o))}return s}function ke(e,t,n,o=z){let s={};for(let[l,f]of Object.entries(e.slots)){let r=t.schema.slots[l];s[l]=r===void 0?f:re(r,f,n,o)}return s}function ut(e){return typeof e=="string"?e:e.url}function pt(e,t){return e.split(",").map(n=>{let[o="",...s]=n.trim().split(/\s+/);return[t(o),...s].join(" ")}).join(", ")}function ft(e){return{file(t){let n=z.file(t),o=n.responsive===null?null:{...n.responsive,sources:n.responsive.sources.map(s=>({...s,srcset:pt(s.srcset,e)}))};return{url:e(n.url),responsive:o}},crop(t,n){return e(z.file(t).url,{crop:n})}}}function C(e){return Array.isArray(e)?e:[]}function Ce(e,t){let{facts:n}=e,o=r=>e.media[r],s=r=>r?.file===null||r?.file===void 0?"":t(ut(r.file)),l=[];for(let r of C(n.photos)){let m=o(r.id);l.push({id:r.id,kind:"photo",name:m?.filename||r.id,size:"",src:s(m),caption:r.caption??null})}for(let r of C(n.floor_plans)){let m=o(r.id);l.push({id:r.id,kind:"plan",name:m?.filename||r.id,size:"",src:s(m)})}for(let r of C(n.videos)){let m=r.provider??void 0;l.push({id:r.id,kind:"video",name:r.caption??o(r.id)?.filename??r.id,size:"",src:"",caption:r.caption??null,ready:!0,durationMs:r.duration_ms??null,...m===void 0?{}:{provider:m}})}for(let r of C(n.tours))l.push({id:r.id,kind:"tour",name:`${r.provider??"Tour"} ${r.id}`,size:"",src:"",ready:!0,provider:r.provider??""});for(let r of C(n.documents)){let m=o(r.id)?.sizeBytes;l.push({id:r.id,kind:"document",name:r.filename??r.id,size:"",src:"",mime:r.mime??"",...m===void 0?{}:{sizeBytes:m}})}let f=[["avatar_upload_id","headshot"],["logo_dark_upload_id","logo (dark)"],["logo_light_upload_id","logo (light)"]];for(let r of C(n.contacts)){let m=typeof r.name=="string"?r.name:"Contact";for(let[v,R]of f){let x=r[v];typeof x=="string"&&l.push({id:x,kind:"library",name:`${m} \u2014 ${R}`,size:"",src:s(o(x)),caption:m})}}return l}var mt={image:["photo_id","asset_id"],video:["video_id","asset_id"],tour:["tour_id","asset_id"],document:["asset_id"]};function oe(e,t){if(t==null)return t;let n=mt[e.type];if(n!==void 0){if(typeof t!="object")return null;let s=t,l=n.map(m=>s[m]).find(m=>typeof m=="string"&&m!=="");if(typeof l!="string")return null;if(e.type!=="image")return{asset_id:l};let f=F(s.rect),r=typeof s.mobile=="object"&&s.mobile!==null?F(s.mobile.rect):null;return{asset_id:l,...f===null?{}:{rect:f},...r===null?{}:{mobile_rect:r}}}if(e.type!=="list"||!Array.isArray(t))return t;let o=t;if(e.fields!==void 0){let s=e.fields;return o.map(l=>{if(typeof l!="object"||l===null)return l;let f={...l};for(let[r,m]of Object.entries(s))r in f&&(f[r]=oe(m,f[r]));return f})}if(e.element!==void 0){let s=e.element;return o.map(l=>oe(s,l))}return o}function Ae(e){let{instance:t,slots:n,fixture:o,session:s,assetUrl:l}=e,f={...t.slots},r={},m=o.provenance[t.instance_id]??{};for(let R of Object.keys(n))r[R]=m[R]??{kind:"empty"};for(let[R,x]of Object.entries(s??{})){let A=n[R];A!==void 0&&(f[R]=oe(A,x),r[R]={kind:"session"})}let v=new Map(Object.entries(o.media));return{slots:ke({...t,slots:f},{schema:{slots:n}},v,ft(l)),provenance:r}}var He=1024*1024;function yt(e){let t=N(e),n=typeof e.width=="string"?`${e.width} \xD7 ${String(e.height)}`:void 0;return{id:e.id,label:e.label,cssWidth:t.viewportWidth,cssHeight:t.viewportHeight,bleed:t.bleed,pixelWidth:t.pixelWidth,pixelHeight:t.pixelHeight,...n===void 0?{}:{physical:n},tokens:{...M(e)}}}function ht(e,t){return new Response(t,{status:e,headers:{"content-type":"text/plain; charset=utf-8"}})}function se(e){return new Response(JSON.stringify(e),{headers:{"content-type":"application/json; charset=utf-8"}})}function ie(e){return new Response(e,{headers:{"content-type":"text/html; charset=utf-8"}})}function wt(e){if(typeof e!="object"||e===null)return null;let t=e.status;return typeof t=="number"&&Number.isInteger(t)&&t>=400&&t<600?t:null}function U(e,t,n){let o=e.searchParams.get(t);if(o===null||o==="")throw new g(400,`${n} needs a ${t} parameter.`);return o}function Rt(e){return`<script>
116
+ </script>`;function ge(){let e={};return new Proxy(e,{get:(t,n)=>typeof n!="string"||n in e||n==="then"||n==="toJSON"?e[n]:`#${n}`})}function ye(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))o!=null&&o!==""&&t.set(r,o);let n=t.toString();return n===""?"":`?${n}`}var T={catalog:"api/catalog",render:"api/render",media:e=>`api/media${ye({fixture:e})}`,capture:(e,t)=>`api/capture/${e}${ye({fixture:t.fixture,format:t.format,page:t.page,canvas:t.canvas})}`,live:(e,t)=>`fixtures/${encodeURIComponent(e)}/live${t==="/"?"/":`${t}/`}`,hmr:"__hmr"};var g=class extends Error{constructor(n,r){super(r);this.status=n}status};function at(e){return e.split("-").map(t=>t&&t[0].toUpperCase()+t.slice(1)).join(" ")}function he(e){let{variant:t}=e;return{required:e.required,variant:t===null?null:{cases:t.cases.map(n=>({value:n,label:at(n)})),locked:t.locked}}}function _e(e){return Object.fromEntries(e.map(t=>[t.instance_id,{enabled:t.enabled,...t.variant===void 0?{}:{variant:t.variant}}]))}function be(e){if(e==null)return{};if(typeof e!="object"||Array.isArray(e))throw new g(400,"A render request's display is an object keyed by instance id.");let t={};for(let[n,r]of Object.entries(e)){if(typeof r!="object"||r===null||Array.isArray(r))throw new g(400,`The display state of "${n}" is not an object.`);let{enabled:o,variant:l}=r;if(o!==void 0&&typeof o!="boolean")throw new g(400,`The display state of "${n}" has a non-boolean enabled.`);if(l!==void 0&&typeof l!="string")throw new g(400,`The display state of "${n}" has a non-string variant.`);t[n]={...o===void 0?{}:{enabled:o},...l===void 0?{}:{variant:l}}}return t}function ve(e,t){for(let[n,r]of Object.entries(t)){let o=e.instances.find(u=>u.instanceId===n);if(o===void 0)throw new g(400,`The composition places no instance "${n}".`);if(r.enabled===!1&&o.display.required)throw new g(400,`Section instance "${n}" is required and cannot be hidden.`);if(r.variant===void 0)continue;let l=o.display.variant;if(l===null)throw new g(400,`Section instance "${n}" declares no display variant.`);if(l.locked)throw new g(400,`Section instance "${n}" declares a locked variant, which the user cannot switch.`);if(!l.cases.includes(r.variant))throw new g(400,`"${r.variant}" is not a declared case of section instance "${n}" (declared: ${l.cases.join(", ")}).`)}}function we(e,t){return new Map(e.instances.map(n=>[n.instance_id,t[n.instance_id]?.enabled??n.enabled]))}function xe(e,t,n){let r=n[e.instance_id]?.variant;if(r===void 0||r===e.variant)return e;let o={...e.slots};for(let[l,u]of Object.entries(t))l in o||(u.variant===void 0||u.variant.cases.includes(r))&&(o[l]=u.type==="list"?[]:null);return{...e,variant:r,slots:o}}function Re(e){return Array.isArray(e)?e.length:0}function Se(e){return typeof e=="string"&&e!==""?e:null}function st(e){return{propertyType:Se(e.property_type),listingIntent:Se(e.listing_intent),units:Re(e.units),photos:Re(e.photos)}}function lt(e){let t=JSON.stringify(e),n=3735928559,r=1103547991;for(let o=0;o<t.length;o++){let l=t.charCodeAt(o);n=Math.imul(n^l,2654435761),r=Math.imul(r^l,1597334677)}return n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(16).padStart(14,"0")}function ke(e){return{id:e.id,label:e.label,summary:st(e.facts),doc:lt(e.instances),display:_e(e.instances)}}function Ie(e,t){let n=e.replace(/\/+$/,"");return t==="/"?`${n}/`:`${n}${t}/`}function Pe(e){let{pages:t,currentPageId:n,basePath:r}=e,o=t.find(d=>d.id===n);if(!o)throw new Error(`nav: page "${n}" is not one of the declared pages (${t.map(d=>d.id).join(", ")}).`);let l=[o,...t.filter(d=>d.id!==o.id&&d.enabled!==!1)],u={};for(let d of l)for(let a of d.sections)a.enabled===!1||a.key in u||(u[a.key]=d.id===o.id?`#${a.anchor}`:`${Ie(r,d.path)}#${a.anchor}`);return{anchors:u,pages:t.filter(d=>d.enabled!==!1).map(d=>({id:d.id,label:d.label,href:Ie(r,d.path),current:d.id===o.id}))}}function W(e,t){return e.pages?.[t]?.enabled!==!1}function te(e,t){return t.filter(n=>W(e,n.id))}var D={base:"stylesheets/base.css",template:"stylesheets/template.css"},k={frame:"__capture/frame",print:"__capture/print"};function Ee(e){return new URLSearchParams(e).toString()}function ne(e,t,n){return`${k.frame}?${Ee({fixture:e,page:t,format:n})}`}function Te(e,t){return`${k.print}?${Ee({fixture:e,format:t})}`}var ct=["text","number","select","image","list","poi","url","video","tour","document"],dt=[],wn=[...ct,...dt];var ut=["address","type","intent","describe","uploads","units","comparables","contacts"];var pt={address:"always",type:"always",intent:"always",describe:"always",uploads:"always",units:"derived",comparables:"derived",contacts:"derived"},xn=ut.filter(e=>pt[e]==="always");var mt={matterport:{kind:"tour",label:"Matterport",pattern:/(^|\.)matterport\.com$/i,strategy:"api"},biganto:{kind:"tour",label:"Biganto",pattern:/(^|\.)biganto\.com$/i,strategy:"opengraph"},youtube:{kind:"video",label:"YouTube",pattern:/(^|\.)(youtube\.com|youtu\.be)$/i,strategy:"oembed"},vimeo:{kind:"video",label:"Vimeo",pattern:/(^|\.)vimeo\.com$/i,strategy:"oembed"},zillow:{kind:"listing",label:"Zillow",pattern:/(^|\.)zillow\.com$/i,strategy:"none"},redfin:{kind:"listing",label:"Redfin",pattern:/(^|\.)redfin\.com$/i,strategy:"none"},dropbox:{kind:"file",label:"Dropbox",pattern:/(^|\.)dropbox\.com$/i,strategy:"none"},drive:{kind:"file",label:"Google Drive",pattern:/^drive\.google\.com$/i,strategy:"none"},maps:{kind:"map",label:"Google Maps",pattern:/(^|\.)google\.com$/i,path:/^\/maps(\/|$)/i,strategy:"none"}};function $e(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;for(let[n,r]of Object.entries(mt))if(r.pattern.test(t.hostname)&&!(r.path&&!r.path.test(t.pathname)))return n;return null}var ft="badge=0&autopause=0&player_id=0&title=0&byline=0&portrait=0&sidedock=0&vimeo_logo=0&pip=0&chromecast=0&quality_selector=0&progress_bar=1";function Ce(e){let t=e.trim();if(!t)return null;let n=$e(t);if(n==="vimeo"){let r=t.match(/vimeo\.com\/(?:.*\/)?(\d+)/);return r?`https://player.vimeo.com/video/${r[1]}?${ft}`:null}if(n==="youtube"){let r=t.match(/youtu\.be\/([A-Za-z0-9_-]{11})/)??t.match(/[?&]v=([A-Za-z0-9_-]{11})/)??t.match(/youtube\.com\/(?:embed|shorts)\/([A-Za-z0-9_-]{11})/);return r?`https://www.youtube.com/embed/${r[1]}?rel=0`:null}return null}function Ae(e){let t=e.trim();if(!t)return null;let n=$e(t);if(n==="matterport"){let r=new URL(t).searchParams.get("m");return r!==null&&/^[A-Za-z0-9]+$/.test(r)?`https://my.matterport.com/show/?m=${r}&nt=1`:null}return n==="biganto"?t:null}var V=e=>e<0?0:e>1?1:e;function F(e){if(typeof e!="object"||e===null)return null;let{nx:t=0,ny:n=0,nw:r=1,nh:o=1}=e;if(![t,n,r,o].every(a=>typeof a=="number"&&Number.isFinite(a)))return null;let l=V(t),u=V(n),d={nx:l,ny:u,nw:Math.min(V(r),1-l),nh:Math.min(V(o),1-u)};return d.nw<=0||d.nh<=0||d.nx===0&&d.ny===0&&d.nw===1&&d.nh===1?null:d}var z={file(e){return typeof e=="string"?{url:e,responsive:null}:{url:e.url,responsive:e.responsive}}};function gt(e){if(typeof e!="object"||e===null)return null;let t=e.asset_id;return typeof t=="string"&&t!==""?t:null}function yt(e,t,n){if(e.file===null)return null;let r=n.crop===void 0?null:F(t.rect),o=n.crop===void 0?null:F(t.mobile_rect),l=n.file(e.file),u=r===null?{photo_id:e.id,url:l.url,alt:e.alt,responsive:l.responsive}:{photo_id:e.id,url:n.crop(e.file,r),alt:e.alt,responsive:null,rect:r};return o!==null&&(u.mobile={url:n.crop(e.file,o),responsive:null}),u}function He(e,t){if(e.posterFile!==void 0){let n=t.file(e.posterFile);return n.responsive===null?{poster:n.url}:{poster:n.url,poster_responsive:n.responsive}}return{poster:e.posterUrl??""}}function ht(e,t){let n=He(e,t);return e.file===null?{video_id:e.id,url:Ce(e.url??"")??"",...n,alt:e.alt,source:"link",...e.provider===null?{}:{provider:e.provider}}:{video_id:e.id,url:t.file(e.file).url,...n,alt:e.alt,source:"upload"}}function _t(e,t){return{tour_id:e.id,url:Ae(e.url??"")??"",...He(e,t),alt:e.alt,...e.provider===null?{}:{provider:e.provider}}}function bt(e,t){return e.file===null?null:{asset_id:e.id,url:t.file(e.file).url,filename:e.filename,content_type:e.mime,size_bytes:0}}function vt(e,t,n,r){let o=gt(t),l=o===null?void 0:n.get(o);if(l===void 0||l.kind!==e)return null;switch(e){case"image":return yt(l,t,r);case"video":return ht(l,r);case"tour":return _t(l,r);case"document":return bt(l,r);default:return null}}var wt=new Set(["image","video","tour","document"]),xt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Rt(e,t,n){let r=typeof e.id=="string"?e.id:"",o=typeof e.floor_label=="string"?e.floor_label:null,l=r===""?void 0:t.get(r),u=l?.kind==="image"&&l.file!==null?n.file(l.file):null;return{id:r,...typeof e.upload_id=="string"?{upload_id:e.upload_id}:{},url:u?.url??"",alt:o??"Floor plan",floor_label:o,position:typeof e.position=="number"?e.position:0,...u?.responsive?{responsive:u.responsive}:{}}}function St(e,t,n,r){return e.type==="image"&&Array.isArray(t)?t.filter(xt).map(o=>Rt(o,n,r)):re(e,t,n,r)}function re(e,t,n,r){if(t==null)return t;if(wt.has(e.type))return vt(e.type,t,n,r);if(e.type!=="list"||!Array.isArray(t))return t;let o=t;if(e.fields!==void 0){let l=e.fields;return o.map(u=>{if(typeof u!="object"||u===null)return u;let d={...u};for(let[a,h]of Object.entries(l))d[a]=St(h,d[a],n,r);return d})}if(e.element!==void 0){let l=e.element;return o.map(u=>re(l,u,n,r))}return o}function Ne(e,t,n,r=z){let o={};for(let[l,u]of Object.entries(e.slots)){let d=t.schema.slots[l];o[l]=d===void 0?u:re(d,u,n,r)}return o}function Oe(e){return typeof e=="string"?e:e.url}function kt(e,t){return e.split(",").map(n=>{let[r="",...o]=n.trim().split(/\s+/);return[t(r),...o].join(" ")}).join(", ")}function It(e){return{file(t){let n=z.file(t),r=n.responsive===null?null:{...n.responsive,sources:n.responsive.sources.map(o=>({...o,srcset:kt(o.srcset,e)}))};return{url:e(n.url),responsive:r}},crop(t,n){return e(z.file(t).url,{crop:n})}}}function A(e){return Array.isArray(e)?e:[]}function Me(e,t){let{facts:n}=e,r=a=>e.media[a],o=a=>a?.file===null||a?.file===void 0?"":t(Oe(a.file)),l=a=>a?.posterFile!==void 0?t(Oe(a.posterFile)):a?.posterUrl??"",u=[];for(let a of A(n.photos)){let h=r(a.id);u.push({id:a.id,kind:"photo",name:h?.filename||a.id,size:"",src:o(h),caption:a.caption??null})}for(let a of A(n.floor_plans)){let h=r(a.id);u.push({id:a.id,kind:"plan",name:h?.filename||a.id,size:"",src:o(h)})}for(let a of A(n.videos)){let h=a.provider??void 0;u.push({id:a.id,kind:"video",name:a.caption??r(a.id)?.filename??a.id,size:"",src:l(r(a.id)),caption:a.caption??null,ready:!0,durationMs:a.duration_ms??null,...h===void 0?{}:{provider:h}})}for(let a of A(n.tours))u.push({id:a.id,kind:"tour",name:`${a.provider??"Tour"} ${a.id}`,size:"",src:l(r(a.id)),ready:!0,provider:a.provider??""});for(let a of A(n.documents)){let h=r(a.id)?.sizeBytes;u.push({id:a.id,kind:"document",name:a.filename??a.id,size:"",src:"",mime:a.mime??"",...h===void 0?{}:{sizeBytes:h}})}let d=[["avatar_upload_id","headshot"],["logo_dark_upload_id","logo (dark)"],["logo_light_upload_id","logo (light)"]];for(let a of A(n.contacts)){let h=typeof a.name=="string"?a.name:"Contact";for(let[v,E]of d){let S=a[v];typeof S=="string"&&u.push({id:S,kind:"library",name:`${h} \u2014 ${E}`,size:"",src:o(r(S)),caption:h})}}return u}var Pt={image:["photo_id","asset_id"],video:["video_id","asset_id"],tour:["tour_id","asset_id"],document:["asset_id"]};function Et(e){return e.filter(t=>typeof t=="object"&&t!==null&&!Array.isArray(t)).map(({id:t,upload_id:n,floor_label:r,position:o})=>({id:typeof t=="string"?t:"",...typeof n=="string"?{upload_id:n}:{},floor_label:typeof r=="string"?r:null,position:typeof o=="number"?o:0}))}function oe(e,t){if(t==null)return t;let n=Pt[e.type];if(n!==void 0){if(typeof t!="object")return null;let o=t,l=n.map(a=>o[a]).find(a=>typeof a=="string"&&a!=="");if(typeof l!="string")return null;if(e.type!=="image")return{asset_id:l};let u=F(o.rect),d=typeof o.mobile=="object"&&o.mobile!==null?F(o.mobile.rect):null;return{asset_id:l,...u===null?{}:{rect:u},...d===null?{}:{mobile_rect:d}}}if(e.type!=="list"||!Array.isArray(t))return t;let r=t;if(e.fields!==void 0){let o=e.fields;return r.map(l=>{if(typeof l!="object"||l===null)return l;let u={...l};for(let[d,a]of Object.entries(o))d in u&&(u[d]=a.type==="image"&&Array.isArray(u[d])?Et(u[d]):oe(a,u[d]));return u})}if(e.element!==void 0){let o=e.element;return r.map(l=>oe(o,l))}return r}function De(e){let{instance:t,slots:n,fixture:r,session:o,assetUrl:l}=e,u={...t.slots},d={},a=r.provenance[t.instance_id]??{};for(let v of Object.keys(n))d[v]=a[v]??{kind:"empty"};for(let[v,E]of Object.entries(o??{})){let S=n[v];S!==void 0&&(u[v]=oe(S,E),d[v]={kind:"session"})}let h=new Map(Object.entries(r.media));return{slots:Ne({...t,slots:u},{schema:{slots:n}},h,It(l)),provenance:d}}var Fe=1024*1024;function $t(e){let t=N(e),n=typeof e.width=="string"?`${e.width} \xD7 ${String(e.height)}`:void 0;return{id:e.id,label:e.label,cssWidth:t.viewportWidth,cssHeight:t.viewportHeight,bleed:t.bleed,pixelWidth:t.pixelWidth,pixelHeight:t.pixelHeight,...n===void 0?{}:{physical:n},tokens:{...O(e)}}}function Ct(e,t){return new Response(t,{status:e,headers:{"content-type":"text/plain; charset=utf-8"}})}function ie(e){return new Response(JSON.stringify(e),{headers:{"content-type":"application/json; charset=utf-8"}})}function ae(e){return new Response(e,{headers:{"content-type":"text/html; charset=utf-8"}})}function At(e){if(typeof e!="object"||e===null)return null;let t=e.status;return typeof t=="number"&&Number.isInteger(t)&&t>=400&&t<600?t:null}function U(e,t,n){let r=e.searchParams.get(t);if(r===null||r==="")throw new g(400,`${n} needs a ${t} parameter.`);return r}function Ht(e){return`<script>
117
117
  (function () {
118
118
  try {
119
119
  var src = new EventSource(${JSON.stringify(e)});
@@ -122,6 +122,6 @@ ${e.body}
122
122
  });
123
123
  } catch (e) { /* no change channel; the page stays as it is */ }
124
124
  })();
125
- </script>`}function bt(e){if(e===E.catalog||e==="api/media"||e.startsWith("api/capture/")||e===I.frame||e===I.print)return!0;let[t,n,o]=e.split("/").filter(Boolean);return t==="fixtures"&&n!==void 0&&o==="live"}function Sn(e){let{reader:t,assetUrl:n,renderer:o}=e,s=(e.base??"/").endsWith("/")?e.base??"/":`${e.base??"/"}/`,l=c=>/^([a-z][a-z0-9+.-]*:|\/)/i.test(c)?c:`${s}${c}`,f=()=>[O.base,O.template].map(c=>l(n(c)));async function r(c){let{fixtures:a}=await t.fixtures(),i=a.find(d=>d.id===c);if(i===void 0){let d=a.filter(h=>h.synthesized!==!0).map(h=>h.id),p=a.length-d.length,u=[d.join(", ")||"none",...p===0?[]:[`${p} synthesized empties`]].join(", and ");throw new g(404,`There is no fixture "${c}" (have: ${u}).`)}return i}function m(c,a){let i=c.instances.find(d=>d.instance_id===a);if(i===void 0)throw new g(400,`The composition places no instance "${a}".`);return i}function v(c,a,i,d,p){if(c.output!=="website")return{selfAnchor:d,anchors:ge(),pages:[]};let u=Se(a,p),h=c.pages.map(_=>({id:_.id,label:_.label,path:_.path??`/${_.id}`,sections:_.sections.map(P=>({key:P.section,anchor:P.section,enabled:u.get(P.instanceId)!==!1}))})),w=`${s}${E.live(a.id,"/").replace(/\/$/,"")}`,b=$e({pages:h,currentPageId:i,basePath:w});return{selfAnchor:d,anchors:b.anchors,pages:b.pages}}async function R(c,a,i,d,p,u){let h=c.instances.find(X=>X.instanceId===d.instance_id);if(h===void 0)throw new Error(`The composition places no section "${d.section_key}".`);let w=_e(d,h.sectionSchema.slots,u),{slots:b,provenance:_}=Ae({instance:w,slots:h.sectionSchema.slots,fixture:a,session:p,assetUrl:n}),P=v(c,a,i,w.section_key,u),S=w.variant,H=await o.section(w.section_key);return{html:o.renderToString(o.createElement(H,{slots:b,nav:P,variant:S??""}),{identifierPrefix:w.instance_id}),resolvedProps:{slots:b,nav:P,variant:S},provenance:_}}async function x(c,a,i){let d=[];for(let p of i.sections){let u=m(a,p.instanceId);u.enabled&&d.push((await R(c,a,i.id,u,void 0,{})).html)}return d}function A(c,a,i){let d=c.pages.find(p=>p.id===a);if(d===void 0)throw new g(i,`The template declares no page "${a}".`);return d}function B(c,a){if(c.output==="website")throw new g(404,`"${c.key}" is a website \u2014 captures are for rendered templates; open its pages live instead.`);let i=a===null?c.formats[0]:c.formats.find(d=>d.id===a);if(i===void 0)throw new g(404,`The template declares no format "${a??""}" (have: ${c.formats.map(d=>d.id).join(", ")}).`);return i}async function Ne(){let c=await t.islands(),a={wire:1,islands:{map:{...c.map},hostScript:c.canvasHost,importMap:{...c.importMap}},stylesheets:[O.base,O.template].map(u=>n(u))},i,d;try{i=await t.template(),d=await t.fixtures()}catch(u){return{...a,template:{key:"",name:"",output:"website",formats:[],pages:[],canvases:[],instances:[]},fixtures:[],capabilities:{hmr:t.live,capture:!1},error:u instanceof Error?u.message:String(u)}}let p=d.problems!==void 0&&d.fixtures.length===0?`No fixture could be rendered:
126
- ${d.problems}`:void 0;return{...a,template:{key:i.key,name:i.name,output:i.output,formats:i.output==="website"?[]:i.formats.map(yt),pages:i.pages.map(u=>({id:u.id,label:u.label,...u.path===void 0?{}:{path:u.path},instanceIds:u.sections.map(h=>h.instanceId)})),canvases:i.canvases.map(u=>({id:u.id,label:u.label,pages:[...u.pages]})),instances:i.instances.map(u=>({...u,display:he(u.display)}))},fixtures:d.fixtures.map(Ie),capabilities:{hmr:t.live,capture:i.output!=="website"&&t.capture!==void 0},...p===void 0?{}:{error:p}}}async function Me(c){if(c.method!=="POST")throw new g(405,`POST a render request to ${E.render}.`);let a=await c.text();if(new TextEncoder().encode(a).byteLength>He)throw new g(413,`request body exceeds ${He} bytes`);let i;try{i=a===""?void 0:JSON.parse(a)}catch(b){throw new g(400,`request body is not JSON: ${b instanceof Error?b.message:String(b)}`)}if(i===void 0||typeof i.page!="string"||typeof i.instance!="string"||typeof i.fixture!="string")throw new g(400,"A render request names a page, an instance and a fixture.");let d=typeof i.session=="object"&&i.session!==null?i.session:{},p=Re(i.display),u=await t.template(),h=await r(i.fixture),w=A(u,i.page,400);return be(u,p),R(u,h,w.id,m(h,i.instance),d.slots,p)}async function De(c){let a=await r(U(c,"fixture","api/media"));return{items:Ce(a,n)}}async function Oe(c,a){let i=await t.template();if(i.output!=="website")throw new g(404,`"${i.key}" is a rendered ${i.output} template and has no live pages \u2014 preview it on the canvas.`);let d=i.pages.find(h=>h.path===a);if(d===void 0){let h=i.pages.map(w=>w.path??w.id).join(", ");throw new g(404,`The template declares no page at "${a}" (have: ${h}).`)}let p=await r(c),u=await x(i,p,d);return k({destination:"preview",root:{kind:"plain",bodyHtml:u.join(`
127
- `)},islands:(await t.islands()).documentLoader,stylesheets:{kind:"links",hrefs:f()},title:`${i.name} \u2014 ${d.label}`,extraCss:["html, body { background: #fff; }"],...t.live?{devScripts:[Rt(`${s}${E.hmr}`)]}:{}})}function ae(c,a,i){let d=A(c,i,404);if(!V(a,d.id))throw new g(404,`The fixture "${a.id}" switches the page "${d.id}" off, so it has no capture.`);return d}async function Fe(c){let a=I.frame,i=await t.template(),d=B(i,c.searchParams.get("format")),p=await r(U(c,"fixture",a)),u=ae(i,p,U(c,"page",a));return k({destination:"artifact",root:{kind:"frame",format:d,sectionHtml:await x(i,p,u)},islands:(await t.islands()).documentLoader,stylesheets:{kind:"links",hrefs:f()},title:`${i.name} \u2014 ${u.id}`})}async function Ue(c){let a=await t.template(),i=B(a,c.searchParams.get("format"));if(a.output!=="document")throw new g(404,`"${a.key}" is an ${a.output} template \u2014 a PDF is for the document class; download its pages as a zip.`);let d=await r(U(c,"fixture",I.print)),p=[];for(let u of te(d,a.pages))p.push(await x(a,d,u));if(p.length===0)throw new g(404,`The fixture "${d.id}" switches every page off, so it has no PDF.`);return k({destination:"artifact",root:{kind:"frameStack",format:i,pages:p},islands:(await t.islands()).documentLoader,stylesheets:{kind:"links",hrefs:f()},title:`${a.name} \u2014 print`})}async function je(c,a){let i=c;if(i!=="screenshot"&&i!=="bundle"&&i!=="print")throw new g(404,`There is no capture at ${a.pathname}.`);let d=U(a,"fixture",`api/capture/${i}`),p=await t.template(),u=B(p,a.searchParams.get("format")),h=await r(d),w,b,_;if(i==="screenshot"){let S=a.searchParams.get("page")??te(h,p.pages)[0]?.id;if(S===void 0)throw new g(404,`The fixture "${d}" leaves no page on.`);ae(p,h,S),w={kind:i,fixture:d,format:u,documents:[{path:ne(d,S,u.id),page:S,name:`${S}.png`}]},b="image/png",_=`${p.key}-${S}-${u.id}.png`}else if(i==="bundle"){if(p.output!=="image")throw new g(404,`"${p.key}" is a ${p.output} template \u2014 the zip is for the image class; a document downloads its PDF.`);let S=a.searchParams.get("canvas"),H=S===null?p.canvases[0]:p.canvases.find($=>$.id===S);if(H===void 0)throw new g(404,`The template declares no canvas "${S??""}".`);let G=H.pages.filter($=>V(h,$));if(G.length===0)throw new g(404,`The fixture "${d}" switches every page of the canvas "${H.id}" off, so it has no zip.`);let X=G.map($=>({path:ne(d,$,u.id),page:$,name:`${p.pages.find(We=>We.id===$)?.label||$}.png`}));w={kind:i,fixture:d,format:u,documents:X},b="application/zip",_=`${p.key}-${u.id}.zip`}else{if(p.output!=="document")throw new g(404,`"${p.key}" is an ${p.output} template \u2014 a PDF is for the document class; download its pages as a zip.`);w={kind:i,fixture:d,format:u,documents:[{path:Te(d,u.id),page:null,name:`${p.key}.pdf`}]},b="application/pdf",_=`${p.key}.pdf`}if(t.capture===void 0)throw new g(501,"This playground has no captures to give.");let P=await t.capture(w);return new Response(new Uint8Array(P),{headers:{"content-type":b,"content-disposition":`attachment; filename="${encodeURIComponent(_)}"`}})}async function Le(c,a,i){if(i===E.render)return se(await Me(c));if(c.method!=="GET"&&c.method!=="HEAD"&&bt(i))throw new g(405,`${i} only reads; the playground accepts no uploads and writes nothing.`);if(i===E.catalog)return se(await Ne());if(i==="api/media")return se(await De(a));if(i.startsWith("api/capture/"))return je(i.slice(12),a);if(i===I.frame)return ie(await Fe(a));if(i===I.print)return ie(await Ue(a));let[d,p,u,h,...w]=i.split("/").filter(Boolean);if(d==="fixtures"&&p!==void 0&&u==="live"){if(w.length>0)throw new g(404,`There is no route at ${a.pathname}.`);return ie(await Oe(decodeURIComponent(p),h===void 0?"/":`/${decodeURIComponent(h)}`))}return null}return{async handle(c){let a=new URL(c.url);if(!a.pathname.startsWith(s)&&`${a.pathname}/`!==s)return null;let i=a.pathname.slice(s.length);try{return await Le(c,a,i)}catch(d){let p=wt(d);if(p===null)throw d;return ht(p,d instanceof Error?d.message:String(d))}}}}export{Sn as createHost};
125
+ </script>`}function Nt(e){if(e===T.catalog||e==="api/media"||e.startsWith("api/capture/")||e===k.frame||e===k.print)return!0;let[t,n,r]=e.split("/").filter(Boolean);return t==="fixtures"&&n!==void 0&&r==="live"}function Un(e){let{reader:t,assetUrl:n,renderer:r}=e,o=(e.base??"/").endsWith("/")?e.base??"/":`${e.base??"/"}/`,l=p=>/^([a-z][a-z0-9+.-]*:|\/)/i.test(p)?p:`${o}${p}`,u=()=>[D.base,D.template].map(p=>l(n(p)));async function d(p){let{fixtures:s}=await t.fixtures(),i=s.find(c=>c.id===p);if(i===void 0){let c=s.map(f=>f.id).join(", ")||"none";throw new g(404,`There is no fixture "${p}" (have: ${c}).`)}return i}function a(p,s){let i=p.instances.find(c=>c.instance_id===s);if(i===void 0)throw new g(400,`The composition places no instance "${s}".`);return i}function h(p,s,i,c,f){if(p.output!=="website")return{selfAnchor:c,anchors:ge(),pages:[]};let m=we(s,f),_=p.pages.map(R=>({id:R.id,label:R.label,path:R.path??`/${R.id}`,sections:R.sections.map(I=>({key:I.section,anchor:I.section,enabled:m.get(I.instanceId)!==!1}))})),b=`${o}${T.live(s.id,"/").replace(/\/$/,"")}`,w=Pe({pages:_,currentPageId:i,basePath:b});return{selfAnchor:c,anchors:w.anchors,pages:w.pages}}async function v(p,s,i,c,f,m){let _=p.instances.find(X=>X.instanceId===c.instance_id);if(_===void 0)throw new Error(`The composition places no section "${c.section_key}".`);let b=xe(c,_.sectionSchema.slots,m),{slots:w,provenance:R}=De({instance:b,slots:_.sectionSchema.slots,fixture:s,session:f,assetUrl:n}),I=h(p,s,i,b.section_key,m),x=b.variant,H=await r.section(b.section_key);return{html:r.renderToString(r.createElement(H,{slots:w,nav:I,variant:x??""}),{identifierPrefix:b.instance_id}),resolvedProps:{slots:w,nav:I,variant:x},provenance:R}}async function E(p,s,i){let c=[];for(let f of i.sections){let m=a(s,f.instanceId);m.enabled&&c.push((await v(p,s,i.id,m,void 0,{})).html)}return c}function S(p,s,i){let c=p.pages.find(f=>f.id===s);if(c===void 0)throw new g(i,`The template declares no page "${s}".`);return c}function G(p,s){if(p.output==="website")throw new g(404,`"${p.key}" is a website \u2014 captures are for rendered templates; open its pages live instead.`);let i=s===null?p.formats[0]:p.formats.find(c=>c.id===s);if(i===void 0)throw new g(404,`The template declares no format "${s??""}" (have: ${p.formats.map(c=>c.id).join(", ")}).`);return i}async function Ue(){let p=await t.islands(),s={wire:1,islands:{map:{...p.map},hostScript:p.canvasHost,importMap:{...p.importMap}},stylesheets:[D.base,D.template].map(m=>n(m))},i,c;try{i=await t.template(),c=await t.fixtures()}catch(m){return{...s,template:{key:"",name:"",output:"website",formats:[],pages:[],canvases:[],instances:[]},fixtures:[],capabilities:{hmr:t.live,capture:!1},error:m instanceof Error?m.message:String(m)}}let f=c.problems!==void 0&&c.fixtures.length===0?`No fixture could be rendered:
126
+ ${c.problems}`:void 0;return{...s,template:{key:i.key,name:i.name,output:i.output,formats:i.output==="website"?[]:i.formats.map($t),pages:i.pages.map(m=>({id:m.id,label:m.label,...m.path===void 0?{}:{path:m.path},instanceIds:m.sections.map(_=>_.instanceId)})),canvases:i.canvases.map(m=>({id:m.id,label:m.label,pages:[...m.pages]})),instances:i.instances.map(m=>({...m,display:he(m.display)}))},fixtures:c.fixtures.map(ke),capabilities:{hmr:t.live,capture:i.output!=="website"&&t.capture!==void 0},...f===void 0?{}:{error:f}}}async function Le(p){if(p.method!=="POST")throw new g(405,`POST a render request to ${T.render}.`);let s=await p.text();if(new TextEncoder().encode(s).byteLength>Fe)throw new g(413,`request body exceeds ${Fe} bytes`);let i;try{i=s===""?void 0:JSON.parse(s)}catch(w){throw new g(400,`request body is not JSON: ${w instanceof Error?w.message:String(w)}`)}if(i===void 0||typeof i.page!="string"||typeof i.instance!="string"||typeof i.fixture!="string")throw new g(400,"A render request names a page, an instance and a fixture.");let c=typeof i.session=="object"&&i.session!==null?i.session:{},f=be(i.display),m=await t.template(),_=await d(i.fixture),b=S(m,i.page,400);return ve(m,f),v(m,_,b.id,a(_,i.instance),c.slots,f)}async function je(p){let s=await d(U(p,"fixture","api/media"));return{items:Me(s,n)}}async function qe(p,s){let i=await t.template();if(i.output!=="website")throw new g(404,`"${i.key}" is a rendered ${i.output} template and has no live pages \u2014 preview it on the canvas.`);let c=i.pages.find(_=>_.path===s);if(c===void 0){let _=i.pages.map(b=>b.path??b.id).join(", ");throw new g(404,`The template declares no page at "${s}" (have: ${_}).`)}let f=await d(p),m=await E(i,f,c);return C({destination:"preview",root:{kind:"plain",bodyHtml:m.join(`
127
+ `)},islands:(await t.islands()).documentLoader,stylesheets:{kind:"links",hrefs:u()},title:`${i.name} - ${c.label}`,extraCss:["html, body { background: #fff; }"],...t.live?{devScripts:[Ht(`${o}${T.hmr}`)]}:{}})}function se(p,s,i){let c=S(p,i,404);if(!W(s,c.id))throw new g(404,`The fixture "${s.id}" switches the page "${c.id}" off, so it has no capture.`);return c}async function We(p){let s=k.frame,i=await t.template(),c=G(i,p.searchParams.get("format")),f=await d(U(p,"fixture",s)),m=se(i,f,U(p,"page",s));return C({destination:"artifact",root:{kind:"frame",format:c,sectionHtml:await E(i,f,m)},islands:(await t.islands()).documentLoader,stylesheets:{kind:"links",hrefs:u()},title:`${i.name} \u2014 ${m.id}`})}async function Ve(p){let s=await t.template(),i=G(s,p.searchParams.get("format"));if(s.output!=="document")throw new g(404,`"${s.key}" is an ${s.output} template \u2014 a PDF is for the document class; download its pages as a zip.`);let c=await d(U(p,"fixture",k.print)),f=[];for(let m of te(c,s.pages))f.push(await E(s,c,m));if(f.length===0)throw new g(404,`The fixture "${c.id}" switches every page off, so it has no PDF.`);return C({destination:"artifact",root:{kind:"frameStack",format:i,pages:f},islands:(await t.islands()).documentLoader,stylesheets:{kind:"links",hrefs:u()},title:`${s.name} \u2014 print`})}async function ze(p,s){let i=p;if(i!=="screenshot"&&i!=="bundle"&&i!=="print")throw new g(404,`There is no capture at ${s.pathname}.`);let c=U(s,"fixture",`api/capture/${i}`),f=await t.template(),m=G(f,s.searchParams.get("format")),_=await d(c),b,w,R;if(i==="screenshot"){let x=s.searchParams.get("page")??te(_,f.pages)[0]?.id;if(x===void 0)throw new g(404,`The fixture "${c}" leaves no page on.`);se(f,_,x),b={kind:i,fixture:c,format:m,documents:[{path:ne(c,x,m.id),page:x,name:`${x}.png`}]},w="image/png",R=`${f.key}-${x}-${m.id}.png`}else if(i==="bundle"){if(f.output!=="image")throw new g(404,`"${f.key}" is a ${f.output} template \u2014 the zip is for the image class; a document downloads its PDF.`);let x=s.searchParams.get("canvas"),H=x===null?f.canvases[0]:f.canvases.find(P=>P.id===x);if(H===void 0)throw new g(404,`The template declares no canvas "${x??""}".`);let B=H.pages.filter(P=>W(_,P));if(B.length===0)throw new g(404,`The fixture "${c}" switches every page of the canvas "${H.id}" off, so it has no zip.`);let X=B.map(P=>({path:ne(c,P,m.id),page:P,name:`${f.pages.find(Be=>Be.id===P)?.label||P}.png`}));b={kind:i,fixture:c,format:m,documents:X},w="application/zip",R=`${f.key}-${m.id}.zip`}else{if(f.output!=="document")throw new g(404,`"${f.key}" is an ${f.output} template \u2014 a PDF is for the document class; download its pages as a zip.`);b={kind:i,fixture:c,format:m,documents:[{path:Te(c,m.id),page:null,name:`${f.key}.pdf`}]},w="application/pdf",R=`${f.key}.pdf`}if(t.capture===void 0)throw new g(501,"This playground has no captures to give.");let I=await t.capture(b);return new Response(new Uint8Array(I),{headers:{"content-type":w,"content-disposition":`attachment; filename="${encodeURIComponent(R)}"`}})}async function Ge(p,s,i){if(i===T.render)return ie(await Le(p));if(p.method!=="GET"&&p.method!=="HEAD"&&Nt(i))throw new g(405,`${i} only reads; the playground accepts no uploads and writes nothing.`);if(i===T.catalog)return ie(await Ue());if(i==="api/media")return ie(await je(s));if(i.startsWith("api/capture/"))return ze(i.slice(12),s);if(i===k.frame)return ae(await We(s));if(i===k.print)return ae(await Ve(s));let[c,f,m,_,...b]=i.split("/").filter(Boolean);if(c==="fixtures"&&f!==void 0&&m==="live"){if(b.length>0)throw new g(404,`There is no route at ${s.pathname}.`);return ae(await qe(decodeURIComponent(f),_===void 0?"/":`/${decodeURIComponent(_)}`))}return null}return{async handle(p){let s=new URL(p.url);if(!s.pathname.startsWith(o)&&`${s.pathname}/`!==o)return null;let i=s.pathname.slice(o.length);try{return await Ge(p,s,i)}catch(c){let f=At(c);if(f===null)throw c;return Ct(f,c instanceof Error?c.message:String(c))}}}}export{Un as createHost};
package/dist/base.css CHANGED
@@ -1,4 +1,4 @@
1
- @layer theme, base, components, sections, template, utilities;
1
+ @layer theme, base, components, utilities;
2
2
 
3
3
  /* @homepages/concrete — the base stylesheet every template's page loads.
4
4
  *
@@ -6,7 +6,20 @@
6
6
  * entry (that is styles.css); it ships as its own stylesheet on the page.
7
7
  *
8
8
  * Contains:
9
- * - The cascade-layer order declaration above — the one place it is stated
9
+ * - The cascade-layer order declaration above — the one place it is stated.
10
+ * It names Tailwind's four layers and nothing else. YOUR CSS IS NOT LAYERED:
11
+ * write a plain rule and it outranks every utility, because unlayered beats
12
+ * layered outright. That is stock Tailwind v4 and it is the whole model —
13
+ * what you write is what applies. If you want a utility to win over a rule of
14
+ * yours, put that rule in Tailwind's own `@layer components`.
15
+ *
16
+ * `sections` and `template` used to sit here, between `components` and
17
+ * `utilities`, and the old kit's build folded every section's hand-CSS into
18
+ * them. A declaration there lost to any utility setting the same property on
19
+ * the same element, however specific its selector — silently, and only on the
20
+ * published page, because the dev server served the same CSS unlayered. That
21
+ * shipped defects to live customers twice before anyone went looking. The
22
+ * layers are gone; `check` refuses author CSS that declares them.
10
23
  * - The three reset gaps Tailwind's preflight leaves (below)
11
24
  * - The section box model (.tr-section, emitted by the <Section> primitive)
12
25
  * - The frame shell's static half (.tr-frame, emitted by the <FrameShell> primitive)
@@ -8,6 +8,7 @@ import { verifyArtifact } from "../../packages/internal/template-artifact/dist/v
8
8
  import "../../packages/internal/template-artifact/dist/index.js";
9
9
  import { compileTemplateCss } from "../../css/compile.js";
10
10
  import { mediaCacheDir } from "../media/cache.js";
11
+ import { frameRungFloor } from "../media/frame-rung-floor.js";
11
12
  import { usedFactsFromSchema } from "../../schema/extract-used-facts.js";
12
13
  import { exportSite } from "../../section/discovery.js";
13
14
  import { buildSection } from "./sections.js";
@@ -87,7 +88,8 @@ async function buildArtifact(options) {
87
88
  root,
88
89
  key,
89
90
  module,
90
- exportName: site.exportName
91
+ exportName: site.exportName,
92
+ minRungWidth: frameRungFloor(template)
91
93
  });
92
94
  if (built.passthrough.size > 0) throw new Error(`Section "${local}" imports images that could not be derived because \`sharp\` is not installed: ${[...built.passthrough].map((p) => relative(root, p)).join(", ")}. An artifact carries every image's responsive ladder; reinstall so sharp's native binary lands, then build again.`);
93
95
  builtByKey.set(key, built);
@@ -172,7 +174,8 @@ async function buildArtifact(options) {
172
174
  const fixtures = await fixtureFiles({
173
175
  fixtures: corpus.filter((entry) => entry.emptied === void 0).map((entry) => entry.fixture),
174
176
  assets: fixtureAssets,
175
- cacheDir: mediaCacheDir(root)
177
+ cacheDir: mediaCacheDir(root),
178
+ minRungWidth: frameRungFloor(template)
176
179
  });
177
180
  for (const [path, bytes] of fixtures.files) files.set(path, bytes);
178
181
  for (const asset of fixtures.assets) putAsset(files, asset);
@@ -37,25 +37,22 @@ async function captureFiles(options) {
37
37
  const template = await server.workspace.template();
38
38
  const { fixtures, problems } = await server.workspace.fixtures();
39
39
  if (problems !== void 0) throw new Error(`build: the fixtures did not resolve for capture:\n${problems}`);
40
- for (const fixture of fixtures) {
41
- if (fixture.synthesized === true) continue;
42
- for (const format of template.formats) {
43
- const take = async (kind, target, file) => {
44
- const response = await fetch(new URL(ROUTES.capture(kind, {
45
- fixture: fixture.id,
46
- format: format.id,
47
- ...target
48
- }), server.url));
49
- if (!response.ok) throw new Error(`build: capturing ${file} of fixture "${fixture.id}" at ${format.id} failed (${String(response.status)}): ${await response.text()}`);
50
- files.set(capturePath(fixture.id, format.id, file), new Uint8Array(await response.arrayBuffer()));
51
- };
52
- if (template.output === "document") {
53
- await take("print", {}, CAPTURE_FILES.document);
54
- continue;
55
- }
56
- for (const page of enabledPages(fixture, template.pages)) await take("screenshot", { page: page.id }, `${page.id}.png`);
57
- await take("bundle", {}, CAPTURE_FILES.bundle);
40
+ for (const fixture of fixtures) for (const format of template.formats) {
41
+ const take = async (kind, target, file) => {
42
+ const response = await fetch(new URL(ROUTES.capture(kind, {
43
+ fixture: fixture.id,
44
+ format: format.id,
45
+ ...target
46
+ }), server.url));
47
+ if (!response.ok) throw new Error(`build: capturing ${file} of fixture "${fixture.id}" at ${format.id} failed (${String(response.status)}): ${await response.text()}`);
48
+ files.set(capturePath(fixture.id, format.id, file), new Uint8Array(await response.arrayBuffer()));
49
+ };
50
+ if (template.output === "document") {
51
+ await take("print", {}, CAPTURE_FILES.document);
52
+ continue;
58
53
  }
54
+ for (const page of enabledPages(fixture, template.pages)) await take("screenshot", { page: page.id }, `${page.id}.png`);
55
+ await take("bundle", {}, CAPTURE_FILES.bundle);
59
56
  }
60
57
  } finally {
61
58
  await server.close();
@@ -30,7 +30,10 @@ async function fixtureFiles(input) {
30
30
  const bytes = new Uint8Array(await readFile(source.path));
31
31
  let result;
32
32
  if (source.derived && typeof file !== "string") {
33
- const derivation = await deriveAuthorImage(source.path, bytes, { cacheDir: input.cacheDir });
33
+ const derivation = await deriveAuthorImage(source.path, bytes, {
34
+ cacheDir: input.cacheDir,
35
+ minRungWidth: input.minRungWidth
36
+ });
34
37
  if (derivation.passthrough) throw new Error(`Fixture media ${source.path} could not be derived because \`sharp\` is not installed. An artifact carries every image's responsive ladder; reinstall so sharp's native binary lands, then build again.`);
35
38
  for (const asset of [...derivation.derivatives, derivation.master]) assets.set(asset.filename, asset);
36
39
  result = {
@@ -63,14 +66,19 @@ async function fixtureFiles(input) {
63
66
  const urls = /* @__PURE__ */ new Map();
64
67
  const media = {};
65
68
  for (const [id, entry] of fixture.media) {
69
+ const poster = entry.posterFile === void 0 ? null : await artifactFile(entry.posterFile);
70
+ const withPoster = poster === null ? entry : {
71
+ ...entry,
72
+ posterFile: poster.file
73
+ };
66
74
  if (entry.file === null) {
67
- media[id] = entry;
75
+ media[id] = withPoster;
68
76
  continue;
69
77
  }
70
78
  const stored = await artifactFile(entry.file);
71
79
  for (const [from, to] of stored.urls) urls.set(from, to);
72
80
  media[id] = {
73
- ...entry,
81
+ ...withPoster,
74
82
  file: stored.file,
75
83
  sizeBytes: stored.bytes
76
84
  };