@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.
- package/CHANGELOG.md +112 -0
- package/codemods/manifest.json +12 -0
- package/codemods/unlayer-author-css.mjs +194 -0
- package/dist/artifact/playground/client/assets/index-CW7co-u9.js +1101 -0
- package/dist/artifact/playground/client/assets/index-CckS2ONm.css +1 -0
- package/dist/artifact/playground/client/index.html +2 -2
- package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
- package/dist/artifact/playground/host.mjs +24 -24
- package/dist/base.css +15 -2
- package/dist/cli/build/artifact.js +5 -2
- package/dist/cli/build/captures.js +15 -18
- package/dist/cli/build/fixtures.js +11 -3
- package/dist/cli/build/sections.js +13 -4
- package/dist/cli/build/static.js +1 -1
- package/dist/cli/check/load-workspace.js +6 -1
- package/dist/cli/check/stages/bundles.js +3 -1
- package/dist/cli/commands.js +1 -1
- package/dist/cli/dev/load-template.js +32 -25
- package/dist/cli/dev/server.js +11 -3
- package/dist/cli/dev/vite.js +78 -22
- package/dist/cli/dev/workspace-reader.js +2 -6
- package/dist/cli/media/derive.js +30 -3
- package/dist/cli/media/deriver-plugin.js +6 -2
- package/dist/cli/media/frame-rung-floor.js +18 -0
- package/dist/css/compile.js +26 -4
- package/dist/css/graph.js +2 -1
- package/dist/css/rules.js +72 -1
- package/dist/eslint/authoring.js +2 -0
- package/dist/eslint/rules/island-ids.js +39 -0
- package/dist/fixtures/load.js +6 -1
- package/dist/fixtures/media-plugin.js +32 -17
- package/dist/fixtures/media.js +41 -8
- package/dist/fixtures/package-stylesheets.js +59 -0
- package/dist/fixtures/property.js +40 -9
- package/dist/fixtures/resolve.js +58 -5
- package/dist/fixtures/rows.js +6 -1
- package/dist/fixtures.d.ts +80 -12
- package/dist/fixtures.js +7 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/islands/island-id.js +8 -0
- package/dist/islands/marker.d.ts +14 -4
- package/dist/islands/marker.js +18 -6
- package/dist/packages/external/concrete/package.js +1 -1
- package/dist/packages/internal/island-runtime/dist/index.js +4 -2
- package/dist/packages/internal/island-runtime/dist/island-id-context.js +15 -0
- package/dist/packages/internal/island-runtime/dist/use-island-id.d.ts +24 -0
- package/dist/packages/internal/island-runtime/dist/use-island-id.js +44 -0
- package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1 -1
- package/dist/packages/internal/template-contracts/dist/slot-catalog.js +44 -2
- package/dist/primitives/slot-bindings.d.ts +19 -13
- package/dist/primitives/slot-bindings.js +7 -3
- package/dist/rules/registry.js +19 -0
- package/dist/section/section.d.ts +6 -1
- package/dist/template/logic-shim.d.ts +2 -1
- package/dist/template/logic-shim.js +2 -1
- package/guide/reference/cli/INDEX.md +2 -2
- package/guide/reference/cli/build.md +2 -2
- package/guide/reference/cli/check.md +1 -1
- package/guide/reference/cli/dev.md +1 -1
- package/guide/reference/cli/property-add.md +1 -1
- package/guide/reference/cli/property-list.md +1 -1
- package/guide/reference/cli/publish.md +1 -1
- package/guide/reference/cli/upgrade.md +1 -1
- package/guide/reference/rules/INDEX.md +4 -1
- package/package.json +1 -1
- package/dist/artifact/playground/client/assets/index-BSA1yutg.css +0 -1
- 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-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
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
|
|
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
|
|
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
|
|
50
|
-
const ready = window.${
|
|
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.${
|
|
54
|
+
"window.${K} \u2014 the island runtime never ran",
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
await ready;
|
|
58
|
-
})()`;var le=400;var
|
|
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
|
-
})()`,
|
|
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 < ${
|
|
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
|
|
87
|
-
<script type="application/json" id="tr-site-config">${
|
|
88
|
-
${e.root.bodyHtml}${
|
|
86
|
+
})()`;function M(e){return JSON.stringify(e).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026")}function y(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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
|
|
91
|
-
${
|
|
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
|
|
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
|
|
102
|
-
`)}function
|
|
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">${
|
|
106
|
-
<script>window.__TR_ISLAND_MAP=${n};${
|
|
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
|
-
${
|
|
109
|
-
<script>window.__TR_ISLAND_MAP = ${n};${
|
|
110
|
-
<script type="module" src="${y(e.bootstrapUrl)}"></script>`}var
|
|
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
|
|
126
|
-
${
|
|
127
|
-
`)},islands:(await t.islands()).documentLoader,stylesheets:{kind:"links",hrefs:
|
|
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,
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
|
|
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, {
|
|
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] =
|
|
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
|
-
...
|
|
81
|
+
...withPoster,
|
|
74
82
|
file: stored.file,
|
|
75
83
|
sizeBytes: stored.bytes
|
|
76
84
|
};
|