gazetta 0.3.0 → 0.4.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.
@@ -0,0 +1,608 @@
1
+ import{a as e,t}from"./rolldown-runtime-COnpUsM8.js";import{$ as n,A as r,C as i,F as a,G as o,I as s,K as c,L as l,M as u,P as d,Q as f,R as p,S as m,Z as h,_ as g,a as _,b as v,c as y,d as b,et as x,f as S,g as C,h as w,i as T,j as E,k as D,l as O,m as k,n as A,o as j,p as M,r as N,s as ee,t as P,tt as F,u as I,v as L,w as R,x as z,y as B}from"./vendor-primevue-BnR1c_bQ.js";import{a as te,i as ne,n as re,o as V,r as ie,t as ae}from"./vendor-vue-DSjyxCX6.js";import{i as oe,n as se,r as ce,t as le}from"./vendor-react-BipDVGow.js";import{n as ue,t as de}from"./vendor-rjsf-HKBAjOmQ.js";import{a as fe,i as pe,n as me,o as he,r as ge,t as _e}from"./vendor-tiptap-IyO99U4R.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ve={root:{transitionDuration:`{transition.duration}`},panel:{borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`},header:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`,padding:`1.125rem`,fontWeight:`600`,borderRadius:`0`,borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,hoverBackground:`{content.background}`,activeBackground:`{content.background}`,activeHoverBackground:`{content.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`},first:{topBorderRadius:`{content.border.radius}`,borderWidth:`0`},last:{bottomBorderRadius:`{content.border.radius}`,activeBottomBorderRadius:`0`}},content:{borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,color:`{text.color}`,padding:`0 1.125rem 1.125rem 1.125rem`}},ye={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},chip:{borderRadius:`{border.radius.sm}`},emptyMessage:{padding:`{list.option.padding}`},colorScheme:{light:{chip:{focusBackground:`{surface.200}`,focusColor:`{surface.800}`},dropdown:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`}},dark:{chip:{focusBackground:`{surface.700}`,focusColor:`{surface.0}`},dropdown:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`}}}},be={root:{width:`2rem`,height:`2rem`,fontSize:`1rem`,background:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`},icon:{size:`1rem`},group:{borderColor:`{content.background}`,offset:`-0.75rem`},lg:{width:`3rem`,height:`3rem`,fontSize:`1.5rem`,icon:{size:`1.5rem`},group:{offset:`-1rem`}},xl:{width:`4rem`,height:`4rem`,fontSize:`2rem`,icon:{size:`2rem`},group:{offset:`-1.5rem`}}},xe={root:{borderRadius:`{border.radius.md}`,padding:`0 0.5rem`,fontSize:`0.75rem`,fontWeight:`700`,minWidth:`1.5rem`,height:`1.5rem`},dot:{size:`0.5rem`},sm:{fontSize:`0.625rem`,minWidth:`1.25rem`,height:`1.25rem`},lg:{fontSize:`0.875rem`,minWidth:`1.75rem`,height:`1.75rem`},xl:{fontSize:`1rem`,minWidth:`2rem`,height:`2rem`},colorScheme:{light:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.100}`,color:`{surface.600}`},success:{background:`{green.500}`,color:`{surface.0}`},info:{background:`{sky.500}`,color:`{surface.0}`},warn:{background:`{orange.500}`,color:`{surface.0}`},danger:{background:`{red.500}`,color:`{surface.0}`},contrast:{background:`{surface.950}`,color:`{surface.0}`}},dark:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.800}`,color:`{surface.300}`},success:{background:`{green.400}`,color:`{green.950}`},info:{background:`{sky.400}`,color:`{sky.950}`},warn:{background:`{orange.400}`,color:`{orange.950}`},danger:{background:`{red.400}`,color:`{red.950}`},contrast:{background:`{surface.0}`,color:`{surface.950}`}}}},Se={primitive:{borderRadius:{none:`0`,xs:`2px`,sm:`4px`,md:`6px`,lg:`8px`,xl:`12px`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`},slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`}},semantic:{transitionDuration:`0.2s`,focusRing:{width:`1px`,style:`solid`,color:`{primary.color}`,offset:`2px`,shadow:`none`},disabledOpacity:`0.6`,iconSize:`1rem`,anchorGutter:`2px`,primary:{50:`{emerald.50}`,100:`{emerald.100}`,200:`{emerald.200}`,300:`{emerald.300}`,400:`{emerald.400}`,500:`{emerald.500}`,600:`{emerald.600}`,700:`{emerald.700}`,800:`{emerald.800}`,900:`{emerald.900}`,950:`{emerald.950}`},formField:{paddingX:`0.75rem`,paddingY:`0.5rem`,sm:{fontSize:`0.875rem`,paddingX:`0.625rem`,paddingY:`0.375rem`},lg:{fontSize:`1.125rem`,paddingX:`0.875rem`,paddingY:`0.625rem`},borderRadius:`{border.radius.md}`,focusRing:{width:`0`,style:`none`,color:`transparent`,offset:`0`,shadow:`none`},transitionDuration:`{transition.duration}`},list:{padding:`0.25rem 0.25rem`,gap:`2px`,header:{padding:`0.5rem 1rem 0.25rem 1rem`},option:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`},optionGroup:{padding:`0.5rem 0.75rem`,fontWeight:`600`}},content:{borderRadius:`{border.radius.md}`},mask:{transitionDuration:`0.3s`},navigation:{list:{padding:`0.25rem 0.25rem`,gap:`2px`},item:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`,gap:`0.5rem`},submenuLabel:{padding:`0.5rem 0.75rem`,fontWeight:`600`},submenuIcon:{size:`0.875rem`}},overlay:{select:{borderRadius:`{border.radius.md}`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`},popover:{borderRadius:`{border.radius.md}`,padding:`0.75rem`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`},modal:{borderRadius:`{border.radius.xl}`,padding:`1.25rem`,shadow:`0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)`},navigation:{shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`}},colorScheme:{light:{surface:{0:`#ffffff`,50:`{slate.50}`,100:`{slate.100}`,200:`{slate.200}`,300:`{slate.300}`,400:`{slate.400}`,500:`{slate.500}`,600:`{slate.600}`,700:`{slate.700}`,800:`{slate.800}`,900:`{slate.900}`,950:`{slate.950}`},primary:{color:`{primary.500}`,contrastColor:`#ffffff`,hoverColor:`{primary.600}`,activeColor:`{primary.700}`},highlight:{background:`{primary.50}`,focusBackground:`{primary.100}`,color:`{primary.700}`,focusColor:`{primary.800}`},mask:{background:`rgba(0,0,0,0.4)`,color:`{surface.200}`},formField:{background:`{surface.0}`,disabledBackground:`{surface.200}`,filledBackground:`{surface.50}`,filledHoverBackground:`{surface.50}`,filledFocusBackground:`{surface.50}`,borderColor:`{surface.300}`,hoverBorderColor:`{surface.400}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.400}`,color:`{surface.700}`,disabledColor:`{surface.500}`,placeholderColor:`{surface.500}`,invalidPlaceholderColor:`{red.600}`,floatLabelColor:`{surface.500}`,floatLabelFocusColor:`{primary.600}`,floatLabelActiveColor:`{surface.500}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)`},text:{color:`{surface.700}`,hoverColor:`{surface.800}`,mutedColor:`{surface.500}`,hoverMutedColor:`{surface.600}`},content:{background:`{surface.0}`,hoverBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},popover:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},modal:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.100}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`}},optionGroup:{background:`transparent`,color:`{text.muted.color}`}},navigation:{item:{focusBackground:`{surface.100}`,activeBackground:`{surface.100}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}},submenuLabel:{background:`transparent`,color:`{text.muted.color}`},submenuIcon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}}},dark:{surface:{0:`#ffffff`,50:`{zinc.50}`,100:`{zinc.100}`,200:`{zinc.200}`,300:`{zinc.300}`,400:`{zinc.400}`,500:`{zinc.500}`,600:`{zinc.600}`,700:`{zinc.700}`,800:`{zinc.800}`,900:`{zinc.900}`,950:`{zinc.950}`},primary:{color:`{primary.400}`,contrastColor:`{surface.900}`,hoverColor:`{primary.300}`,activeColor:`{primary.200}`},highlight:{background:`color-mix(in srgb, {primary.400}, transparent 84%)`,focusBackground:`color-mix(in srgb, {primary.400}, transparent 76%)`,color:`rgba(255,255,255,.87)`,focusColor:`rgba(255,255,255,.87)`},mask:{background:`rgba(0,0,0,0.6)`,color:`{surface.200}`},formField:{background:`{surface.950}`,disabledBackground:`{surface.700}`,filledBackground:`{surface.800}`,filledHoverBackground:`{surface.800}`,filledFocusBackground:`{surface.800}`,borderColor:`{surface.600}`,hoverBorderColor:`{surface.500}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.300}`,color:`{surface.0}`,disabledColor:`{surface.400}`,placeholderColor:`{surface.400}`,invalidPlaceholderColor:`{red.400}`,floatLabelColor:`{surface.400}`,floatLabelFocusColor:`{primary.color}`,floatLabelActiveColor:`{surface.400}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)`},text:{color:`{surface.0}`,hoverColor:`{surface.0}`,mutedColor:`{surface.400}`,hoverMutedColor:`{surface.300}`},content:{background:`{surface.900}`,hoverBackground:`{surface.800}`,borderColor:`{surface.700}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},popover:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},modal:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.800}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`}},optionGroup:{background:`transparent`,color:`{text.muted.color}`}},navigation:{item:{focusBackground:`{surface.800}`,activeBackground:`{surface.800}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}},submenuLabel:{background:`transparent`,color:`{text.muted.color}`},submenuIcon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}}}}}},Ce={root:{borderRadius:`{content.border.radius}`}},we={root:{padding:`1rem`,background:`{content.background}`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},item:{color:`{text.muted.color}`,hoverColor:`{text.color}`,borderRadius:`{content.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,hoverColor:`{navigation.item.icon.focus.color}`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},separator:{color:`{navigation.item.icon.color}`}},Te={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,gap:`0.5rem`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,iconOnlyWidth:`2.5rem`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`,iconOnlyWidth:`2rem`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`,iconOnlyWidth:`3rem`},label:{fontWeight:`500`},raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`},badgeSize:`1rem`,transitionDuration:`{form.field.transition.duration}`},colorScheme:{light:{root:{primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`{primary.color}`,shadow:`none`}},secondary:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,borderColor:`{surface.100}`,hoverBorderColor:`{surface.200}`,activeBorderColor:`{surface.300}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`,focusRing:{color:`{surface.600}`,shadow:`none`}},info:{background:`{sky.500}`,hoverBackground:`{sky.600}`,activeBackground:`{sky.700}`,borderColor:`{sky.500}`,hoverBorderColor:`{sky.600}`,activeBorderColor:`{sky.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{sky.500}`,shadow:`none`}},success:{background:`{green.500}`,hoverBackground:`{green.600}`,activeBackground:`{green.700}`,borderColor:`{green.500}`,hoverBorderColor:`{green.600}`,activeBorderColor:`{green.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{green.500}`,shadow:`none`}},warn:{background:`{orange.500}`,hoverBackground:`{orange.600}`,activeBackground:`{orange.700}`,borderColor:`{orange.500}`,hoverBorderColor:`{orange.600}`,activeBorderColor:`{orange.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{orange.500}`,shadow:`none`}},help:{background:`{purple.500}`,hoverBackground:`{purple.600}`,activeBackground:`{purple.700}`,borderColor:`{purple.500}`,hoverBorderColor:`{purple.600}`,activeBorderColor:`{purple.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{purple.500}`,shadow:`none`}},danger:{background:`{red.500}`,hoverBackground:`{red.600}`,activeBackground:`{red.700}`,borderColor:`{red.500}`,hoverBorderColor:`{red.600}`,activeBorderColor:`{red.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`{red.500}`,shadow:`none`}},contrast:{background:`{surface.950}`,hoverBackground:`{surface.900}`,activeBackground:`{surface.800}`,borderColor:`{surface.950}`,hoverBorderColor:`{surface.900}`,activeBorderColor:`{surface.800}`,color:`{surface.0}`,hoverColor:`{surface.0}`,activeColor:`{surface.0}`,focusRing:{color:`{surface.950}`,shadow:`none`}}},outlined:{primary:{hoverBackground:`{primary.50}`,activeBackground:`{primary.100}`,borderColor:`{primary.200}`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.500}`},success:{hoverBackground:`{green.50}`,activeBackground:`{green.100}`,borderColor:`{green.200}`,color:`{green.500}`},info:{hoverBackground:`{sky.50}`,activeBackground:`{sky.100}`,borderColor:`{sky.200}`,color:`{sky.500}`},warn:{hoverBackground:`{orange.50}`,activeBackground:`{orange.100}`,borderColor:`{orange.200}`,color:`{orange.500}`},help:{hoverBackground:`{purple.50}`,activeBackground:`{purple.100}`,borderColor:`{purple.200}`,color:`{purple.500}`},danger:{hoverBackground:`{red.50}`,activeBackground:`{red.100}`,borderColor:`{red.200}`,color:`{red.500}`},contrast:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.700}`,color:`{surface.950}`},plain:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.700}`}},text:{primary:{hoverBackground:`{primary.50}`,activeBackground:`{primary.100}`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.500}`},success:{hoverBackground:`{green.50}`,activeBackground:`{green.100}`,color:`{green.500}`},info:{hoverBackground:`{sky.50}`,activeBackground:`{sky.100}`,color:`{sky.500}`},warn:{hoverBackground:`{orange.50}`,activeBackground:`{orange.100}`,color:`{orange.500}`},help:{hoverBackground:`{purple.50}`,activeBackground:`{purple.100}`,color:`{purple.500}`},danger:{hoverBackground:`{red.50}`,activeBackground:`{red.100}`,color:`{red.500}`},contrast:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.950}`},plain:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.700}`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}},dark:{root:{primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`{primary.color}`,shadow:`none`}},secondary:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,borderColor:`{surface.800}`,hoverBorderColor:`{surface.700}`,activeBorderColor:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`,focusRing:{color:`{surface.300}`,shadow:`none`}},info:{background:`{sky.400}`,hoverBackground:`{sky.300}`,activeBackground:`{sky.200}`,borderColor:`{sky.400}`,hoverBorderColor:`{sky.300}`,activeBorderColor:`{sky.200}`,color:`{sky.950}`,hoverColor:`{sky.950}`,activeColor:`{sky.950}`,focusRing:{color:`{sky.400}`,shadow:`none`}},success:{background:`{green.400}`,hoverBackground:`{green.300}`,activeBackground:`{green.200}`,borderColor:`{green.400}`,hoverBorderColor:`{green.300}`,activeBorderColor:`{green.200}`,color:`{green.950}`,hoverColor:`{green.950}`,activeColor:`{green.950}`,focusRing:{color:`{green.400}`,shadow:`none`}},warn:{background:`{orange.400}`,hoverBackground:`{orange.300}`,activeBackground:`{orange.200}`,borderColor:`{orange.400}`,hoverBorderColor:`{orange.300}`,activeBorderColor:`{orange.200}`,color:`{orange.950}`,hoverColor:`{orange.950}`,activeColor:`{orange.950}`,focusRing:{color:`{orange.400}`,shadow:`none`}},help:{background:`{purple.400}`,hoverBackground:`{purple.300}`,activeBackground:`{purple.200}`,borderColor:`{purple.400}`,hoverBorderColor:`{purple.300}`,activeBorderColor:`{purple.200}`,color:`{purple.950}`,hoverColor:`{purple.950}`,activeColor:`{purple.950}`,focusRing:{color:`{purple.400}`,shadow:`none`}},danger:{background:`{red.400}`,hoverBackground:`{red.300}`,activeBackground:`{red.200}`,borderColor:`{red.400}`,hoverBorderColor:`{red.300}`,activeBorderColor:`{red.200}`,color:`{red.950}`,hoverColor:`{red.950}`,activeColor:`{red.950}`,focusRing:{color:`{red.400}`,shadow:`none`}},contrast:{background:`{surface.0}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,borderColor:`{surface.0}`,hoverBorderColor:`{surface.100}`,activeBorderColor:`{surface.200}`,color:`{surface.950}`,hoverColor:`{surface.950}`,activeColor:`{surface.950}`,focusRing:{color:`{surface.0}`,shadow:`none`}}},outlined:{primary:{hoverBackground:`color-mix(in srgb, {primary.color}, transparent 96%)`,activeBackground:`color-mix(in srgb, {primary.color}, transparent 84%)`,borderColor:`{primary.700}`,color:`{primary.color}`},secondary:{hoverBackground:`rgba(255,255,255,0.04)`,activeBackground:`rgba(255,255,255,0.16)`,borderColor:`{surface.700}`,color:`{surface.400}`},success:{hoverBackground:`color-mix(in srgb, {green.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {green.400}, transparent 84%)`,borderColor:`{green.700}`,color:`{green.400}`},info:{hoverBackground:`color-mix(in srgb, {sky.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {sky.400}, transparent 84%)`,borderColor:`{sky.700}`,color:`{sky.400}`},warn:{hoverBackground:`color-mix(in srgb, {orange.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {orange.400}, transparent 84%)`,borderColor:`{orange.700}`,color:`{orange.400}`},help:{hoverBackground:`color-mix(in srgb, {purple.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {purple.400}, transparent 84%)`,borderColor:`{purple.700}`,color:`{purple.400}`},danger:{hoverBackground:`color-mix(in srgb, {red.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {red.400}, transparent 84%)`,borderColor:`{red.700}`,color:`{red.400}`},contrast:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{surface.500}`,color:`{surface.0}`},plain:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{surface.600}`,color:`{surface.0}`}},text:{primary:{hoverBackground:`color-mix(in srgb, {primary.color}, transparent 96%)`,activeBackground:`color-mix(in srgb, {primary.color}, transparent 84%)`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.400}`},success:{hoverBackground:`color-mix(in srgb, {green.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {green.400}, transparent 84%)`,color:`{green.400}`},info:{hoverBackground:`color-mix(in srgb, {sky.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {sky.400}, transparent 84%)`,color:`{sky.400}`},warn:{hoverBackground:`color-mix(in srgb, {orange.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {orange.400}, transparent 84%)`,color:`{orange.400}`},help:{hoverBackground:`color-mix(in srgb, {purple.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {purple.400}, transparent 84%)`,color:`{purple.400}`},danger:{hoverBackground:`color-mix(in srgb, {red.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {red.400}, transparent 84%)`,color:`{red.400}`},contrast:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.0}`},plain:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.0}`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}}}},Ee={root:{background:`{content.background}`,borderRadius:`{border.radius.xl}`,color:`{content.color}`,shadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},body:{padding:`1.25rem`,gap:`0.5rem`},caption:{gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`500`},subtitle:{color:`{text.muted.color}`}},De={root:{transitionDuration:`{transition.duration}`},content:{gap:`0.25rem`},indicatorList:{padding:`1rem`,gap:`0.5rem`},indicator:{width:`2rem`,height:`0.5rem`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{indicator:{background:`{surface.200}`,hoverBackground:`{surface.300}`,activeBackground:`{primary.color}`}},dark:{indicator:{background:`{surface.700}`,hoverBackground:`{surface.600}`,activeBackground:`{primary.color}`}}}},Oe={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,mobileIndent:`1rem`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,icon:{color:`{list.option.icon.color}`,focusColor:`{list.option.icon.focus.color}`,size:`0.875rem`}},clearIcon:{color:`{form.field.icon.color}`}},ke={root:{borderRadius:`{border.radius.sm}`,width:`1.25rem`,height:`1.25rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1rem`,height:`1rem`},lg:{width:`1.5rem`,height:`1.5rem`}},icon:{size:`0.875rem`,color:`{form.field.color}`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.75rem`},lg:{size:`1rem`}}},Ae={root:{borderRadius:`16px`,paddingX:`0.75rem`,paddingY:`0.5rem`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},image:{width:`2rem`,height:`2rem`},icon:{size:`1rem`},removeIcon:{size:`1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},colorScheme:{light:{root:{background:`{surface.100}`,color:`{surface.800}`},icon:{color:`{surface.800}`},removeIcon:{color:`{surface.800}`}},dark:{root:{background:`{surface.800}`,color:`{surface.0}`},icon:{color:`{surface.0}`},removeIcon:{color:`{surface.0}`}}}},je={root:{transitionDuration:`{transition.duration}`},preview:{width:`1.5rem`,height:`1.5rem`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},panel:{shadow:`{overlay.popover.shadow}`,borderRadius:`{overlay.popover.borderRadius}`},colorScheme:{light:{panel:{background:`{surface.800}`,borderColor:`{surface.900}`},handle:{color:`{surface.0}`}},dark:{panel:{background:`{surface.900}`,borderColor:`{surface.700}`},handle:{color:`{surface.0}`}}}},Me={icon:{size:`2rem`,color:`{overlay.modal.color}`},content:{gap:`1rem`}},Ne={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`,gap:`1rem`},icon:{size:`1.5rem`,color:`{overlay.popover.color}`},footer:{gap:`0.5rem`,padding:`0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}`}},Pe={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{mobileIndent:`1rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`}},Fe=`
2
+ li.p-autocomplete-option,
3
+ div.p-cascadeselect-option-content,
4
+ li.p-listbox-option,
5
+ li.p-multiselect-option,
6
+ li.p-select-option,
7
+ li.p-listbox-option,
8
+ div.p-tree-node-content,
9
+ li.p-datatable-filter-constraint,
10
+ .p-datatable .p-datatable-tbody > tr,
11
+ .p-treetable .p-treetable-tbody > tr,
12
+ div.p-menu-item-content,
13
+ div.p-tieredmenu-item-content,
14
+ div.p-contextmenu-item-content,
15
+ div.p-menubar-item-content,
16
+ div.p-megamenu-item-content,
17
+ div.p-panelmenu-header-content,
18
+ div.p-panelmenu-item-content,
19
+ th.p-datatable-header-cell,
20
+ th.p-treetable-header-cell,
21
+ thead.p-datatable-thead > tr > th,
22
+ .p-treetable thead.p-treetable-thead>tr>th {
23
+ transition: none;
24
+ }
25
+ `,Ie={root:{transitionDuration:`{transition.duration}`},header:{background:`{content.background}`,borderColor:`{datatable.border.color}`,color:`{content.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},headerCell:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,borderColor:`{datatable.border.color}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`},sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},columnTitle:{fontWeight:`600`},row:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},bodyCell:{borderColor:`{datatable.border.color}`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},footerCell:{background:`{content.background}`,borderColor:`{datatable.border.color}`,color:`{content.color}`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},columnFooter:{fontWeight:`600`},footer:{background:`{content.background}`,borderColor:`{datatable.border.color}`,color:`{content.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},dropPoint:{color:`{primary.color}`},columnResizer:{width:`0.5rem`},resizeIndicator:{width:`1px`,color:`{primary.color}`},sortIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,size:`0.875rem`},loadingIcon:{size:`2rem`},rowToggleButton:{hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,selectedHoverColor:`{primary.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},filter:{inlineGap:`0.5rem`,overlaySelect:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},overlayPopover:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,borderRadius:`{overlay.popover.border.radius}`,color:`{overlay.popover.color}`,shadow:`{overlay.popover.shadow}`,padding:`{overlay.popover.padding}`,gap:`0.5rem`},rule:{borderColor:`{content.border.color}`},constraintList:{padding:`{list.padding}`,gap:`{list.gap}`},constraint:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,separator:{borderColor:`{content.border.color}`},padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`}},paginatorTop:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`},colorScheme:{light:{root:{borderColor:`{content.border.color}`},row:{stripedBackground:`{surface.50}`},bodyCell:{selectedBorderColor:`{primary.100}`}},dark:{root:{borderColor:`{surface.800}`},row:{stripedBackground:`{surface.950}`},bodyCell:{selectedBorderColor:`{primary.900}`}}},css:`
26
+ .p-datatable-mask.p-overlay-mask {
27
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
28
+ }
29
+ `},Le={root:{borderColor:`transparent`,borderWidth:`0`,borderRadius:`0`,padding:`0`},header:{background:`{content.background}`,color:`{content.color}`,borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`,borderRadius:`0`},content:{background:`{content.background}`,color:`{content.color}`,borderColor:`transparent`,borderWidth:`0`,padding:`0`,borderRadius:`0`},footer:{background:`{content.background}`,color:`{content.color}`,borderColor:`{content.border.color}`,borderWidth:`1px 0 0 0`,padding:`0.75rem 1rem`,borderRadius:`0`},paginatorTop:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{content.border.color}`,borderWidth:`1px 0 0 0`}},Re={root:{transitionDuration:`{transition.duration}`},panel:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.popover.shadow}`,padding:`{overlay.popover.padding}`},header:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,padding:`0 0 0.5rem 0`},title:{gap:`0.5rem`,fontWeight:`500`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},inputIcon:{color:`{form.field.icon.color}`},selectMonth:{hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,padding:`0.25rem 0.5rem`,borderRadius:`{content.border.radius}`},selectYear:{hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,padding:`0.25rem 0.5rem`,borderRadius:`{content.border.radius}`},group:{borderColor:`{content.border.color}`,gap:`{overlay.popover.padding}`},dayView:{margin:`0.5rem 0 0 0`},weekDay:{padding:`0.25rem`,fontWeight:`500`,color:`{content.color}`},date:{hoverBackground:`{content.hover.background}`,selectedBackground:`{primary.color}`,rangeSelectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{primary.contrast.color}`,rangeSelectedColor:`{highlight.color}`,width:`2rem`,height:`2rem`,borderRadius:`50%`,padding:`0.25rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},monthView:{margin:`0.5rem 0 0 0`},month:{padding:`0.375rem`,borderRadius:`{content.border.radius}`},yearView:{margin:`0.5rem 0 0 0`},year:{padding:`0.375rem`,borderRadius:`{content.border.radius}`},buttonbar:{padding:`0.5rem 0 0 0`,borderColor:`{content.border.color}`},timePicker:{padding:`0.5rem 0 0 0`,borderColor:`{content.border.color}`,gap:`0.5rem`,buttonGap:`0.25rem`},colorScheme:{light:{dropdown:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`},today:{background:`{surface.200}`,color:`{surface.900}`}},dark:{dropdown:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`},today:{background:`{surface.700}`,color:`{surface.0}`}}}},ze={root:{background:`{overlay.modal.background}`,borderColor:`{overlay.modal.border.color}`,color:`{overlay.modal.color}`,borderRadius:`{overlay.modal.border.radius}`,shadow:`{overlay.modal.shadow}`},header:{padding:`{overlay.modal.padding}`,gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`600`},content:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`},footer:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`,gap:`0.5rem`}},Be={root:{borderColor:`{content.border.color}`},content:{background:`{content.background}`,color:`{text.color}`},horizontal:{margin:`1rem 0`,padding:`0 1rem`,content:{padding:`0 0.5rem`}},vertical:{margin:`0 1rem`,padding:`0.5rem 0`,content:{padding:`0.5rem 0`}}},Ve={root:{background:`rgba(255, 255, 255, 0.1)`,borderColor:`rgba(255, 255, 255, 0.2)`,padding:`0.5rem`,borderRadius:`{border.radius.xl}`},item:{borderRadius:`{content.border.radius}`,padding:`0.5rem`,size:`3rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},He={root:{background:`{overlay.modal.background}`,borderColor:`{overlay.modal.border.color}`,color:`{overlay.modal.color}`,shadow:`{overlay.modal.shadow}`},header:{padding:`{overlay.modal.padding}`},title:{fontSize:`1.5rem`,fontWeight:`600`},content:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`},footer:{padding:`{overlay.modal.padding}`}},Ue={toolbar:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`},toolbarItem:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`,padding:`{list.padding}`},overlayOption:{focusBackground:`{list.option.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},content:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`}},We={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,padding:`0 1.125rem 1.125rem 1.125rem`,transitionDuration:`{transition.duration}`},legend:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,borderRadius:`{content.border.radius}`,borderWidth:`1px`,borderColor:`transparent`,padding:`0.5rem 0.75rem`,gap:`0.5rem`,fontWeight:`600`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`},content:{padding:`0`}},Ge={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,transitionDuration:`{transition.duration}`},header:{background:`transparent`,color:`{text.color}`,padding:`1.125rem`,borderColor:`unset`,borderWidth:`0`,borderRadius:`0`,gap:`0.5rem`},content:{highlightBorderColor:`{primary.color}`,padding:`0 1.125rem 1.125rem 1.125rem`,gap:`1rem`},file:{padding:`1rem`,gap:`1rem`,borderColor:`{content.border.color}`,info:{gap:`0.5rem`}},fileList:{gap:`0.5rem`},progressbar:{height:`0.25rem`},basic:{gap:`0.5rem`}},Ke={root:{color:`{form.field.float.label.color}`,focusColor:`{form.field.float.label.focus.color}`,activeColor:`{form.field.float.label.active.color}`,invalidColor:`{form.field.float.label.invalid.color}`,transitionDuration:`0.2s`,positionX:`{form.field.padding.x}`,positionY:`{form.field.padding.y}`,fontWeight:`500`,active:{fontSize:`0.75rem`,fontWeight:`400`}},over:{active:{top:`-1.25rem`}},in:{input:{paddingTop:`1.5rem`,paddingBottom:`{form.field.padding.y}`},active:{top:`{form.field.padding.y}`}},on:{borderRadius:`{border.radius.xs}`,active:{background:`{form.field.background}`,padding:`0 0.125rem`}}},qe={root:{borderWidth:`1px`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,transitionDuration:`{transition.duration}`},navButton:{background:`rgba(255, 255, 255, 0.1)`,hoverBackground:`rgba(255, 255, 255, 0.2)`,color:`{surface.100}`,hoverColor:`{surface.0}`,size:`3rem`,gutter:`0.5rem`,prev:{borderRadius:`50%`},next:{borderRadius:`50%`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},navIcon:{size:`1.5rem`},thumbnailsContent:{background:`{content.background}`,padding:`1rem 0.25rem`},thumbnailNavButton:{size:`2rem`,borderRadius:`{content.border.radius}`,gutter:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},thumbnailNavButtonIcon:{size:`1rem`},caption:{background:`rgba(0, 0, 0, 0.5)`,color:`{surface.100}`,padding:`1rem`},indicatorList:{gap:`0.5rem`,padding:`1rem`},indicatorButton:{width:`1rem`,height:`1rem`,activeBackground:`{primary.color}`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},insetIndicatorList:{background:`rgba(0, 0, 0, 0.5)`},insetIndicatorButton:{background:`rgba(255, 255, 255, 0.4)`,hoverBackground:`rgba(255, 255, 255, 0.6)`,activeBackground:`rgba(255, 255, 255, 0.9)`},closeButton:{size:`3rem`,gutter:`0.5rem`,background:`rgba(255, 255, 255, 0.1)`,hoverBackground:`rgba(255, 255, 255, 0.2)`,color:`{surface.50}`,hoverColor:`{surface.0}`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},closeButtonIcon:{size:`1.5rem`},colorScheme:{light:{thumbnailNavButton:{hoverBackground:`{surface.100}`,color:`{surface.600}`,hoverColor:`{surface.700}`},indicatorButton:{background:`{surface.200}`,hoverBackground:`{surface.300}`}},dark:{thumbnailNavButton:{hoverBackground:`{surface.700}`,color:`{surface.400}`,hoverColor:`{surface.0}`},indicatorButton:{background:`{surface.700}`,hoverBackground:`{surface.600}`}}}},Je={icon:{color:`{form.field.icon.color}`}},Ye={root:{color:`{form.field.float.label.color}`,focusColor:`{form.field.float.label.focus.color}`,invalidColor:`{form.field.float.label.invalid.color}`,transitionDuration:`0.2s`,positionX:`{form.field.padding.x}`,top:`{form.field.padding.y}`,fontSize:`0.75rem`,fontWeight:`400`},input:{paddingTop:`1.5rem`,paddingBottom:`{form.field.padding.y}`}},Xe={root:{transitionDuration:`{transition.duration}`},preview:{icon:{size:`1.5rem`},mask:{background:`{mask.background}`,color:`{mask.color}`}},toolbar:{position:{left:`auto`,right:`1rem`,top:`1rem`,bottom:`auto`},blur:`8px`,background:`rgba(255,255,255,0.1)`,borderColor:`rgba(255,255,255,0.2)`,borderWidth:`1px`,borderRadius:`30px`,padding:`.5rem`,gap:`0.5rem`},action:{hoverBackground:`rgba(255,255,255,0.1)`,color:`{surface.50}`,hoverColor:`{surface.0}`,size:`3rem`,iconSize:`1.5rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},Ze={handle:{size:`15px`,hoverSize:`30px`,background:`rgba(255,255,255,0.3)`,hoverBackground:`rgba(255,255,255,0.3)`,borderColor:`unset`,hoverBorderColor:`unset`,borderWidth:`0`,borderRadius:`50%`,transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`rgba(255,255,255,0.3)`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},Qe={root:{padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{content.border.radius}`,gap:`0.5rem`},text:{fontWeight:`500`},icon:{size:`1rem`},colorScheme:{light:{info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`{blue.200}`,color:`{blue.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`{green.200}`,color:`{green.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`{yellow.200}`,color:`{yellow.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`{red.200}`,color:`{red.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`},secondary:{background:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`},contrast:{background:`{surface.900}`,borderColor:`{surface.950}`,color:`{surface.50}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`}},dark:{info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.700}, transparent 64%)`,color:`{blue.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.700}, transparent 64%)`,color:`{green.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.700}, transparent 64%)`,color:`{yellow.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.700}, transparent 64%)`,color:`{red.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`},secondary:{background:`{surface.800}`,borderColor:`{surface.700}`,color:`{surface.300}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`},contrast:{background:`{surface.0}`,borderColor:`{surface.100}`,color:`{surface.950}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`}}}},$e={root:{padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{transition.duration}`},display:{hoverBackground:`{content.hover.background}`,hoverColor:`{content.hover.color}`}},et={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},chip:{borderRadius:`{border.radius.sm}`},colorScheme:{light:{chip:{focusBackground:`{surface.200}`,color:`{surface.800}`}},dark:{chip:{focusBackground:`{surface.700}`,color:`{surface.0}`}}}},tt={addon:{background:`{form.field.background}`,borderColor:`{form.field.border.color}`,color:`{form.field.icon.color}`,borderRadius:`{form.field.border.radius}`,padding:`0.5rem`,minWidth:`2.5rem`}},nt={root:{transitionDuration:`{transition.duration}`},button:{width:`2.5rem`,borderRadius:`{form.field.border.radius}`,verticalPadding:`{form.field.padding.y}`},colorScheme:{light:{button:{background:`transparent`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,color:`{surface.400}`,hoverColor:`{surface.500}`,activeColor:`{surface.600}`}},dark:{button:{background:`transparent`,hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,color:`{surface.400}`,hoverColor:`{surface.300}`,activeColor:`{surface.200}`}}}},rt={root:{gap:`0.5rem`},input:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`}}},it={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}}},at={root:{transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},value:{background:`{primary.color}`},range:{background:`{content.border.color}`},text:{color:`{text.muted.color}`}},ot={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,borderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,shadow:`{form.field.shadow}`,borderRadius:`{form.field.border.radius}`,transitionDuration:`{form.field.transition.duration}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},checkmark:{color:`{list.option.color}`,gutterStart:`-0.375rem`,gutterEnd:`0.375rem`},emptyMessage:{padding:`{list.option.padding}`},colorScheme:{light:{option:{stripedBackground:`{surface.50}`}},dark:{option:{stripedBackground:`{surface.900}`}}}},st={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,verticalOrientation:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},horizontalOrientation:{padding:`0.5rem 0.75rem`,gap:`0.5rem`},transitionDuration:`{transition.duration}`},baseItem:{borderRadius:`{content.border.radius}`,padding:`{navigation.item.padding}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},overlay:{padding:`0`,background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,shadow:`{overlay.navigation.shadow}`,gap:`0.5rem`},submenu:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`},mobileButton:{borderRadius:`50%`,size:`1.75rem`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,hoverBackground:`{content.hover.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},ct={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`}},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`},separator:{borderColor:`{content.border.color}`}},lt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,padding:`0.5rem 0.75rem`,transitionDuration:`{transition.duration}`},baseItem:{borderRadius:`{content.border.radius}`,padding:`{navigation.item.padding}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`,background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,mobileIndent:`1rem`,icon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`}},separator:{borderColor:`{content.border.color}`},mobileButton:{borderRadius:`50%`,size:`1.75rem`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,hoverBackground:`{content.hover.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},ut={root:{borderRadius:`{content.border.radius}`,borderWidth:`1px`,transitionDuration:`{transition.duration}`},content:{padding:`0.5rem 0.75rem`,gap:`0.5rem`,sm:{padding:`0.375rem 0.625rem`},lg:{padding:`0.625rem 0.875rem`}},text:{fontSize:`1rem`,fontWeight:`500`,sm:{fontSize:`0.875rem`},lg:{fontSize:`1.125rem`}},icon:{size:`1.125rem`,sm:{size:`1rem`},lg:{size:`1.25rem`}},closeButton:{width:`1.75rem`,height:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`}},closeIcon:{size:`1rem`,sm:{size:`0.875rem`},lg:{size:`1.125rem`}},outlined:{root:{borderWidth:`1px`}},simple:{content:{padding:`0`}},colorScheme:{light:{info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`{blue.200}`,color:`{blue.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`,closeButton:{hoverBackground:`{blue.100}`,focusRing:{color:`{blue.600}`,shadow:`none`}},outlined:{color:`{blue.600}`,borderColor:`{blue.600}`},simple:{color:`{blue.600}`}},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`{green.200}`,color:`{green.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`,closeButton:{hoverBackground:`{green.100}`,focusRing:{color:`{green.600}`,shadow:`none`}},outlined:{color:`{green.600}`,borderColor:`{green.600}`},simple:{color:`{green.600}`}},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`{yellow.200}`,color:`{yellow.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`,closeButton:{hoverBackground:`{yellow.100}`,focusRing:{color:`{yellow.600}`,shadow:`none`}},outlined:{color:`{yellow.600}`,borderColor:`{yellow.600}`},simple:{color:`{yellow.600}`}},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`{red.200}`,color:`{red.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`,closeButton:{hoverBackground:`{red.100}`,focusRing:{color:`{red.600}`,shadow:`none`}},outlined:{color:`{red.600}`,borderColor:`{red.600}`},simple:{color:`{red.600}`}},secondary:{background:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.600}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`,closeButton:{hoverBackground:`{surface.200}`,focusRing:{color:`{surface.600}`,shadow:`none`}},outlined:{color:`{surface.500}`,borderColor:`{surface.500}`},simple:{color:`{surface.500}`}},contrast:{background:`{surface.900}`,borderColor:`{surface.950}`,color:`{surface.50}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`,closeButton:{hoverBackground:`{surface.800}`,focusRing:{color:`{surface.50}`,shadow:`none`}},outlined:{color:`{surface.950}`,borderColor:`{surface.950}`},simple:{color:`{surface.950}`}}},dark:{info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.700}, transparent 64%)`,color:`{blue.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{blue.500}`,shadow:`none`}},outlined:{color:`{blue.500}`,borderColor:`{blue.500}`},simple:{color:`{blue.500}`}},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.700}, transparent 64%)`,color:`{green.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{green.500}`,shadow:`none`}},outlined:{color:`{green.500}`,borderColor:`{green.500}`},simple:{color:`{green.500}`}},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.700}, transparent 64%)`,color:`{yellow.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{yellow.500}`,shadow:`none`}},outlined:{color:`{yellow.500}`,borderColor:`{yellow.500}`},simple:{color:`{yellow.500}`}},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.700}, transparent 64%)`,color:`{red.500}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{red.500}`,shadow:`none`}},outlined:{color:`{red.500}`,borderColor:`{red.500}`},simple:{color:`{red.500}`}},secondary:{background:`{surface.800}`,borderColor:`{surface.700}`,color:`{surface.300}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`,closeButton:{hoverBackground:`{surface.700}`,focusRing:{color:`{surface.300}`,shadow:`none`}},outlined:{color:`{surface.400}`,borderColor:`{surface.400}`},simple:{color:`{surface.400}`}},contrast:{background:`{surface.0}`,borderColor:`{surface.100}`,color:`{surface.950}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`,closeButton:{hoverBackground:`{surface.100}`,focusRing:{color:`{surface.950}`,shadow:`none`}},outlined:{color:`{surface.0}`,borderColor:`{surface.0}`},simple:{color:`{surface.0}`}}}}},dt={root:{borderRadius:`{content.border.radius}`,gap:`1rem`},meters:{background:`{content.border.color}`,size:`0.5rem`},label:{gap:`0.5rem`},labelMarker:{size:`0.5rem`},labelIcon:{size:`1rem`},labelList:{verticalGap:`0.5rem`,horizontalGap:`1rem`}},ft={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,gap:`0.5rem`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},chip:{borderRadius:`{border.radius.sm}`},clearIcon:{color:`{form.field.icon.color}`},emptyMessage:{padding:`{list.option.padding}`}},pt={root:{gap:`1.125rem`},controls:{gap:`0.5rem`}},mt={root:{gutter:`0.75rem`,transitionDuration:`{transition.duration}`},node:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,selectedColor:`{highlight.color}`,hoverColor:`{content.hover.color}`,padding:`0.75rem 1rem`,toggleablePadding:`0.75rem 1rem 1.25rem 1rem`,borderRadius:`{content.border.radius}`},nodeToggleButton:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,borderColor:`{content.border.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,size:`1.5rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},connector:{color:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`24px`}},ht={root:{outline:{width:`2px`,color:`{content.background}`}}},gt={root:{padding:`0.5rem 1rem`,gap:`0.25rem`,borderRadius:`{content.border.radius}`,background:`{content.background}`,color:`{content.color}`,transitionDuration:`{transition.duration}`},navButton:{background:`transparent`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedColor:`{highlight.color}`,width:`2.5rem`,height:`2.5rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},currentPageReport:{color:`{text.muted.color}`},jumpToPageInput:{maxWidth:`2.5rem`}},_t={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`},header:{background:`transparent`,color:`{text.color}`,padding:`1.125rem`,borderColor:`{content.border.color}`,borderWidth:`0`,borderRadius:`0`},toggleableHeader:{padding:`0.375rem 1.125rem`},title:{fontWeight:`600`},content:{padding:`0 1.125rem 1.125rem 1.125rem`},footer:{padding:`0 1.125rem 1.125rem 1.125rem`}},vt={root:{gap:`0.5rem`,transitionDuration:`{transition.duration}`},panel:{background:`{content.background}`,borderColor:`{content.border.color}`,borderWidth:`1px`,color:`{content.color}`,padding:`0.25rem 0.25rem`,borderRadius:`{content.border.radius}`,first:{borderWidth:`1px`,topBorderRadius:`{content.border.radius}`},last:{borderWidth:`1px`,bottomBorderRadius:`{content.border.radius}`}},item:{focusBackground:`{navigation.item.focus.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,gap:`0.5rem`,padding:`{navigation.item.padding}`,borderRadius:`{content.border.radius}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`}},submenu:{indent:`1rem`},submenuIcon:{color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`}},yt={meter:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`.75rem`},icon:{color:`{form.field.icon.color}`},overlay:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,borderRadius:`{overlay.popover.border.radius}`,color:`{overlay.popover.color}`,padding:`{overlay.popover.padding}`,shadow:`{overlay.popover.shadow}`},content:{gap:`0.5rem`},colorScheme:{light:{strength:{weakBackground:`{red.500}`,mediumBackground:`{amber.500}`,strongBackground:`{green.500}`}},dark:{strength:{weakBackground:`{red.400}`,mediumBackground:`{amber.400}`,strongBackground:`{green.400}`}}}},bt={root:{gap:`1.125rem`},controls:{gap:`0.5rem`}},xt={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`}},St={root:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`1.25rem`},value:{background:`{primary.color}`},label:{color:`{primary.contrast.color}`,fontSize:`0.75rem`,fontWeight:`600`}},Ct={colorScheme:{light:{root:{colorOne:`{red.500}`,colorTwo:`{blue.500}`,colorThree:`{green.500}`,colorFour:`{yellow.500}`}},dark:{root:{colorOne:`{red.400}`,colorTwo:`{blue.400}`,colorThree:`{green.400}`,colorFour:`{yellow.400}`}}}},wt={root:{width:`1.25rem`,height:`1.25rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1rem`,height:`1rem`},lg:{width:`1.5rem`,height:`1.5rem`}},icon:{size:`0.75rem`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.5rem`},lg:{size:`1rem`}}},Tt={root:{gap:`0.25rem`,transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},icon:{size:`1rem`,color:`{text.muted.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}},Et={colorScheme:{light:{root:{background:`rgba(0,0,0,0.1)`}},dark:{root:{background:`rgba(255,255,255,0.3)`}}}},Dt={root:{transitionDuration:`{transition.duration}`},bar:{size:`9px`,borderRadius:`{border.radius.sm}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{bar:{background:`{surface.100}`}},dark:{bar:{background:`{surface.800}`}}}},Ot={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},clearIcon:{color:`{form.field.icon.color}`},checkmark:{color:`{list.option.color}`,gutterStart:`-0.375rem`,gutterEnd:`0.375rem`},emptyMessage:{padding:`{list.option.padding}`}},kt={root:{borderRadius:`{form.field.border.radius}`},colorScheme:{light:{root:{invalidBorderColor:`{form.field.invalid.border.color}`}},dark:{root:{invalidBorderColor:`{form.field.invalid.border.color}`}}}},At={root:{borderRadius:`{content.border.radius}`},colorScheme:{light:{root:{background:`{surface.200}`,animationBackground:`rgba(255,255,255,0.4)`}},dark:{root:{background:`rgba(255, 255, 255, 0.06)`,animationBackground:`rgba(255, 255, 255, 0.04)`}}}},jt={root:{transitionDuration:`{transition.duration}`},track:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,size:`3px`},range:{background:`{primary.color}`},handle:{width:`20px`,height:`20px`,borderRadius:`50%`,background:`{content.border.color}`,hoverBackground:`{content.border.color}`,content:{borderRadius:`50%`,hoverBackground:`{content.background}`,width:`16px`,height:`16px`,shadow:`0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{handle:{content:{background:`{surface.0}`}}},dark:{handle:{content:{background:`{surface.950}`}}}}},Mt={root:{gap:`0.5rem`,transitionDuration:`{transition.duration}`}},Nt={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`}},Pt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,transitionDuration:`{transition.duration}`},gutter:{background:`{content.border.color}`},handle:{size:`24px`,background:`transparent`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},Ft={root:{transitionDuration:`{transition.duration}`},separator:{background:`{content.border.color}`,activeBackground:`{primary.color}`,margin:`0 0 0 1.625rem`,size:`2px`},step:{padding:`0.5rem`,gap:`1rem`},stepHeader:{padding:`0`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},gap:`0.5rem`},stepTitle:{color:`{text.muted.color}`,activeColor:`{primary.color}`,fontWeight:`500`},stepNumber:{background:`{content.background}`,activeBackground:`{content.background}`,borderColor:`{content.border.color}`,activeBorderColor:`{content.border.color}`,color:`{text.muted.color}`,activeColor:`{primary.color}`,size:`2rem`,fontSize:`1.143rem`,fontWeight:`500`,borderRadius:`50%`,shadow:`0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)`},steppanels:{padding:`0.875rem 0.5rem 1.125rem 0.5rem`},steppanel:{background:`{content.background}`,color:`{content.color}`,padding:`0`,indent:`1rem`}},It={root:{transitionDuration:`{transition.duration}`},separator:{background:`{content.border.color}`},itemLink:{borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},gap:`0.5rem`},itemLabel:{color:`{text.muted.color}`,activeColor:`{primary.color}`,fontWeight:`500`},itemNumber:{background:`{content.background}`,activeBackground:`{content.background}`,borderColor:`{content.border.color}`,activeBorderColor:`{content.border.color}`,color:`{text.muted.color}`,activeColor:`{primary.color}`,size:`2rem`,fontSize:`1.143rem`,fontWeight:`500`,borderRadius:`50%`,shadow:`0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)`}},Lt={root:{transitionDuration:`{transition.duration}`},tablist:{borderWidth:`0 0 1px 0`,background:`{content.background}`,borderColor:`{content.border.color}`},item:{background:`transparent`,hoverBackground:`transparent`,activeBackground:`transparent`,borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`,hoverBorderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`,padding:`1rem 1.125rem`,fontWeight:`600`,margin:`0 0 -1px 0`,gap:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},itemIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},activeBar:{height:`1px`,bottom:`-1px`,background:`{primary.color}`}},Rt={root:{transitionDuration:`{transition.duration}`},tablist:{borderWidth:`0 0 1px 0`,background:`{content.background}`,borderColor:`{content.border.color}`},tab:{background:`transparent`,hoverBackground:`transparent`,activeBackground:`transparent`,borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`,hoverBorderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`,padding:`1rem 1.125rem`,fontWeight:`600`,margin:`0 0 -1px 0`,gap:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},tabpanel:{background:`{content.background}`,color:`{content.color}`,padding:`0.875rem 1.125rem 1.125rem 1.125rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},navButton:{background:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,width:`2.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},activeBar:{height:`1px`,bottom:`-1px`,background:`{primary.color}`},colorScheme:{light:{navButton:{shadow:`0px 0px 10px 50px rgba(255, 255, 255, 0.6)`}},dark:{navButton:{shadow:`0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)`}}}},zt={root:{transitionDuration:`{transition.duration}`},tabList:{background:`{content.background}`,borderColor:`{content.border.color}`},tab:{borderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},tabPanel:{background:`{content.background}`,color:`{content.color}`},navButton:{background:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`},colorScheme:{light:{navButton:{shadow:`0px 0px 10px 50px rgba(255, 255, 255, 0.6)`}},dark:{navButton:{shadow:`0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)`}}}},Bt={root:{fontSize:`0.875rem`,fontWeight:`700`,padding:`0.25rem 0.5rem`,gap:`0.25rem`,borderRadius:`{content.border.radius}`,roundedBorderRadius:`{border.radius.xl}`},icon:{size:`0.75rem`},colorScheme:{light:{primary:{background:`{primary.100}`,color:`{primary.700}`},secondary:{background:`{surface.100}`,color:`{surface.600}`},success:{background:`{green.100}`,color:`{green.700}`},info:{background:`{sky.100}`,color:`{sky.700}`},warn:{background:`{orange.100}`,color:`{orange.700}`},danger:{background:`{red.100}`,color:`{red.700}`},contrast:{background:`{surface.950}`,color:`{surface.0}`}},dark:{primary:{background:`color-mix(in srgb, {primary.500}, transparent 84%)`,color:`{primary.300}`},secondary:{background:`{surface.800}`,color:`{surface.300}`},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,color:`{green.300}`},info:{background:`color-mix(in srgb, {sky.500}, transparent 84%)`,color:`{sky.300}`},warn:{background:`color-mix(in srgb, {orange.500}, transparent 84%)`,color:`{orange.300}`},danger:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,color:`{red.300}`},contrast:{background:`{surface.0}`,color:`{surface.950}`}}}},Vt={root:{background:`{form.field.background}`,borderColor:`{form.field.border.color}`,color:`{form.field.color}`,height:`18rem`,padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{form.field.border.radius}`},prompt:{gap:`0.25rem`},commandResponse:{margin:`2px 0`}},Ht={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}}},Ut={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{mobileIndent:`1rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`}},Wt={event:{minHeight:`5rem`},horizontal:{eventContent:{padding:`1rem 0`}},vertical:{eventContent:{padding:`0 1rem`}},eventMarker:{size:`1.125rem`,borderRadius:`50%`,borderWidth:`2px`,background:`{content.background}`,borderColor:`{content.border.color}`,content:{borderRadius:`50%`,size:`0.375rem`,background:`{primary.color}`,insetShadow:`0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)`}},eventConnector:{color:`{content.border.color}`,size:`2px`}},Gt={root:{width:`25rem`,borderRadius:`{content.border.radius}`,borderWidth:`1px`,transitionDuration:`{transition.duration}`},icon:{size:`1.125rem`},content:{padding:`{overlay.popover.padding}`,gap:`0.5rem`},text:{gap:`0.5rem`},summary:{fontWeight:`500`,fontSize:`1rem`},detail:{fontWeight:`500`,fontSize:`0.875rem`},closeButton:{width:`1.75rem`,height:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`}},closeIcon:{size:`1rem`},colorScheme:{light:{root:{blur:`1.5px`},info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`{blue.200}`,color:`{blue.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`,closeButton:{hoverBackground:`{blue.100}`,focusRing:{color:`{blue.600}`,shadow:`none`}}},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`{green.200}`,color:`{green.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`,closeButton:{hoverBackground:`{green.100}`,focusRing:{color:`{green.600}`,shadow:`none`}}},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`{yellow.200}`,color:`{yellow.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`,closeButton:{hoverBackground:`{yellow.100}`,focusRing:{color:`{yellow.600}`,shadow:`none`}}},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`{red.200}`,color:`{red.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`,closeButton:{hoverBackground:`{red.100}`,focusRing:{color:`{red.600}`,shadow:`none`}}},secondary:{background:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.600}`,detailColor:`{surface.700}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`,closeButton:{hoverBackground:`{surface.200}`,focusRing:{color:`{surface.600}`,shadow:`none`}}},contrast:{background:`{surface.900}`,borderColor:`{surface.950}`,color:`{surface.50}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`,closeButton:{hoverBackground:`{surface.800}`,focusRing:{color:`{surface.50}`,shadow:`none`}}}},dark:{root:{blur:`10px`},info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.700}, transparent 64%)`,color:`{blue.500}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{blue.500}`,shadow:`none`}}},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.700}, transparent 64%)`,color:`{green.500}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{green.500}`,shadow:`none`}}},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.700}, transparent 64%)`,color:`{yellow.500}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{yellow.500}`,shadow:`none`}}},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.700}, transparent 64%)`,color:`{red.500}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{red.500}`,shadow:`none`}}},secondary:{background:`{surface.800}`,borderColor:`{surface.700}`,color:`{surface.300}`,detailColor:`{surface.0}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)`,closeButton:{hoverBackground:`{surface.700}`,focusRing:{color:`{surface.300}`,shadow:`none`}}},contrast:{background:`{surface.0}`,borderColor:`{surface.100}`,color:`{surface.950}`,detailColor:`{surface.950}`,shadow:`0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)`,closeButton:{hoverBackground:`{surface.100}`,focusRing:{color:`{surface.950}`,shadow:`none`}}}}}},Kt={root:{padding:`0.25rem`,borderRadius:`{content.border.radius}`,gap:`0.5rem`,fontWeight:`500`,disabledBackground:`{form.field.disabled.background}`,disabledBorderColor:`{form.field.disabled.background}`,disabledColor:`{form.field.disabled.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,padding:`0.25rem`},lg:{fontSize:`{form.field.lg.font.size}`,padding:`0.25rem`}},icon:{disabledColor:`{form.field.disabled.color}`},content:{padding:`0.25rem 0.75rem`,borderRadius:`{content.border.radius}`,checkedShadow:`0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)`,sm:{padding:`0.25rem 0.75rem`},lg:{padding:`0.25rem 0.75rem`}},colorScheme:{light:{root:{background:`{surface.100}`,checkedBackground:`{surface.100}`,hoverBackground:`{surface.100}`,borderColor:`{surface.100}`,color:`{surface.500}`,hoverColor:`{surface.700}`,checkedColor:`{surface.900}`,checkedBorderColor:`{surface.100}`},content:{checkedBackground:`{surface.0}`},icon:{color:`{surface.500}`,hoverColor:`{surface.700}`,checkedColor:`{surface.900}`}},dark:{root:{background:`{surface.950}`,checkedBackground:`{surface.950}`,hoverBackground:`{surface.950}`,borderColor:`{surface.950}`,color:`{surface.400}`,hoverColor:`{surface.300}`,checkedColor:`{surface.0}`,checkedBorderColor:`{surface.950}`},content:{checkedBackground:`{surface.800}`},icon:{color:`{surface.400}`,hoverColor:`{surface.300}`,checkedColor:`{surface.0}`}}}},qt={root:{width:`2.5rem`,height:`1.5rem`,borderRadius:`30px`,gap:`0.25rem`,shadow:`{form.field.shadow}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},borderWidth:`1px`,borderColor:`transparent`,hoverBorderColor:`transparent`,checkedBorderColor:`transparent`,checkedHoverBorderColor:`transparent`,invalidBorderColor:`{form.field.invalid.border.color}`,transitionDuration:`{form.field.transition.duration}`,slideDuration:`0.2s`},handle:{borderRadius:`50%`,size:`1rem`},colorScheme:{light:{root:{background:`{surface.300}`,disabledBackground:`{form.field.disabled.background}`,hoverBackground:`{surface.400}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`},handle:{background:`{surface.0}`,disabledBackground:`{form.field.disabled.color}`,hoverBackground:`{surface.0}`,checkedBackground:`{surface.0}`,checkedHoverBackground:`{surface.0}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,checkedColor:`{primary.color}`,checkedHoverColor:`{primary.hover.color}`}},dark:{root:{background:`{surface.700}`,disabledBackground:`{surface.600}`,hoverBackground:`{surface.600}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`},handle:{background:`{surface.400}`,disabledBackground:`{surface.900}`,hoverBackground:`{surface.300}`,checkedBackground:`{surface.900}`,checkedHoverBackground:`{surface.900}`,color:`{surface.900}`,hoverColor:`{surface.800}`,checkedColor:`{primary.color}`,checkedHoverColor:`{primary.hover.color}`}}}},Jt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,padding:`0.75rem`}},Yt={root:{maxWidth:`12.5rem`,gutter:`0.25rem`,shadow:`{overlay.popover.shadow}`,padding:`0.5rem 0.75rem`,borderRadius:`{overlay.popover.border.radius}`},colorScheme:{light:{root:{background:`{surface.700}`,color:`{surface.0}`}},dark:{root:{background:`{surface.700}`,color:`{surface.0}`}}}},Xt={root:{background:`{content.background}`,color:`{content.color}`,padding:`1rem`,gap:`2px`,indent:`1rem`,transitionDuration:`{transition.duration}`},node:{padding:`0.25rem 0.5rem`,borderRadius:`{content.border.radius}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{text.color}`,hoverColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`},gap:`0.25rem`},nodeIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedColor:`{highlight.color}`},nodeToggleButton:{borderRadius:`50%`,size:`1.75rem`,hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedHoverColor:`{primary.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},loadingIcon:{size:`2rem`},filter:{margin:`0 0 0.5rem 0`},css:`
30
+ .p-tree-mask.p-overlay-mask {
31
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
32
+ }
33
+ `},Zt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},tree:{padding:`{list.padding}`},emptyMessage:{padding:`{list.option.padding}`},chip:{borderRadius:`{border.radius.sm}`},clearIcon:{color:`{form.field.icon.color}`}},Qt={root:{transitionDuration:`{transition.duration}`},header:{background:`{content.background}`,borderColor:`{treetable.border.color}`,color:`{content.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`},headerCell:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,borderColor:`{treetable.border.color}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},columnTitle:{fontWeight:`600`},row:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`}},bodyCell:{borderColor:`{treetable.border.color}`,padding:`0.75rem 1rem`,gap:`0.5rem`},footerCell:{background:`{content.background}`,borderColor:`{treetable.border.color}`,color:`{content.color}`,padding:`0.75rem 1rem`},columnFooter:{fontWeight:`600`},footer:{background:`{content.background}`,borderColor:`{treetable.border.color}`,color:`{content.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`},columnResizer:{width:`0.5rem`},resizeIndicator:{width:`1px`,color:`{primary.color}`},sortIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,size:`0.875rem`},loadingIcon:{size:`2rem`},nodeToggleButton:{hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,selectedHoverColor:`{primary.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},paginatorTop:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},colorScheme:{light:{root:{borderColor:`{content.border.color}`},bodyCell:{selectedBorderColor:`{primary.100}`}},dark:{root:{borderColor:`{surface.800}`},bodyCell:{selectedBorderColor:`{primary.900}`}}},css:`
34
+ .p-treetable-mask.p-overlay-mask {
35
+ --px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
36
+ }
37
+ `},$t={loader:{mask:{background:`{content.background}`,color:`{text.muted.color}`},icon:{size:`2rem`}}},en=Object.defineProperty,tn=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,sn=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cn,ln=(cn=((e,t)=>{for(var n in t||={})an.call(t,n)&&sn(e,n,t[n]);if(rn)for(var n of rn(t))on.call(t,n)&&sn(e,n,t[n]);return e})({},Se),tn(cn,nn({components:{accordion:ve,autocomplete:ye,avatar:be,badge:xe,blockui:Ce,breadcrumb:we,button:Te,card:Ee,carousel:De,cascadeselect:Oe,checkbox:ke,chip:Ae,colorpicker:je,confirmdialog:Me,confirmpopup:Ne,contextmenu:Pe,datatable:Ie,dataview:Le,datepicker:Re,dialog:ze,divider:Be,dock:Ve,drawer:He,editor:Ue,fieldset:We,fileupload:Ge,floatlabel:Ke,galleria:qe,iconfield:Je,iftalabel:Ye,image:Xe,imagecompare:Ze,inlinemessage:Qe,inplace:$e,inputchips:et,inputgroup:tt,inputnumber:nt,inputotp:rt,inputtext:it,knob:at,listbox:ot,megamenu:st,menu:ct,menubar:lt,message:ut,metergroup:dt,multiselect:ft,orderlist:pt,organizationchart:mt,overlaybadge:ht,paginator:gt,panel:_t,panelmenu:vt,password:yt,picklist:bt,popover:xt,progressbar:St,progressspinner:Ct,radiobutton:wt,rating:Tt,ripple:Et,scrollpanel:Dt,select:Ot,selectbutton:kt,skeleton:At,slider:jt,speeddial:Mt,splitbutton:Nt,splitter:Pt,stepper:Ft,steps:It,tabmenu:Lt,tabs:Rt,tabview:zt,tag:Bt,terminal:Vt,textarea:Ht,tieredmenu:Ut,timeline:Wt,toast:Gt,togglebutton:Kt,toggleswitch:qt,toolbar:Jt,tooltip:Yt,tree:Xt,treeselect:Zt,treetable:Qt,virtualscroller:$t},css:Fe}))),un=`/admin/`.replace(/\/$/,``)+`/api`;async function H(e,t){let n=sessionStorage.getItem(`gazetta_token`),r={"Content-Type":`application/json`};n&&(r.Authorization=`Bearer ${n}`);let i=await fetch(`${un}${e}`,{...t,headers:{...r,...t?.headers}});if(!i.ok){let e=await i.json().catch(()=>({error:i.statusText}));throw Error(e.error??`Request failed: ${i.status}`)}return i.json()}async function dn(e,t,n,r){let i=sessionStorage.getItem(`gazetta_token`),a={"Content-Type":`application/json`,Accept:`text/event-stream`};i&&(a.Authorization=`Bearer ${i}`);let o=await fetch(`${un}/publish/stream`,{method:`POST`,headers:a,body:JSON.stringify({items:e,targets:t}),signal:r});if(!o.ok||!o.body){let e=await o.json().catch(()=>({error:o.statusText}));throw Error(e.error??`Stream failed: ${o.status}`)}let s=o.body.pipeThrough(new TextDecoderStream).getReader(),c=``,l=[],u=null;for(;;){let{value:e,done:t}=await s.read();if(t)break;c+=e;let r;for(;(r=c.indexOf(`
38
+
39
+ `))!==-1;){let e=c.slice(0,r);c=c.slice(r+2);let t=[];for(let n of e.split(`
40
+ `))n.startsWith(`data:`)&&t.push(n.slice(5).trim());if(!t.length)continue;let i=JSON.parse(t.join(`
41
+ `));n(i),i.kind===`done`?l=i.results:i.kind===`fatal`&&(u={error:i.error,invalidTemplates:i.invalidTemplates})}}if(u){let e=Error(u.error);throw u.invalidTemplates&&(e.invalidTemplates=u.invalidTemplates),e}return l}var U={getSite:()=>H(`/site`),getPages:()=>H(`/pages`),getPage:(e,t)=>H(`/pages/${e}`,t),createPage:e=>H(`/pages`,{method:`POST`,body:JSON.stringify(e)}),deletePage:e=>H(`/pages/${e}`,{method:`DELETE`}),updatePage:(e,t)=>H(`/pages/${e}`,{method:`PUT`,body:JSON.stringify(t)}),getFragments:()=>H(`/fragments`),getFragment:(e,t)=>H(`/fragments/${e}`,t),createFragment:e=>H(`/fragments`,{method:`POST`,body:JSON.stringify(e)}),deleteFragment:e=>H(`/fragments/${e}`,{method:`DELETE`}),updateFragment:(e,t)=>H(`/fragments/${e}`,{method:`PUT`,body:JSON.stringify(t)}),getTemplates:()=>H(`/templates`),getTemplateSchema:e=>H(`/templates/${e}/schema`),getFields:()=>H(`/fields`),getTargets:()=>H(`/targets`),publish:(e,t)=>H(`/publish`,{method:`POST`,body:JSON.stringify({items:e,targets:t})}),publishStream:dn,compare:(e,t)=>H(`/compare?target=${encodeURIComponent(e)}`,t),fetchFromTarget:(e,t)=>H(`/fetch`,{method:`POST`,body:JSON.stringify({source:e,items:t})})},fn=V(`site`,()=>{let e=c(null),t=c([]),n=c([]),r=c(!1),i=c(null),a=null;async function o(){if(!(e.value&&!i.value))return a||s()}async function s(e=5){return a||(a=l(e),a)}async function l(o=5){r.value=!0,i.value=null;for(let a=0;a<=o;a++)try{let[i,a,o]=await Promise.all([U.getSite(),U.getPages(),U.getFragments()]);e.value=i,t.value=a,n.value=o,r.value=!1;return}catch(e){let t=e.message;if(a<o&&(t.includes(`502`)||t.includes(`Failed to fetch`)||t.includes(`not ready`))){await new Promise(e=>setTimeout(e,1e3));continue}i.value=t}r.value=!1,a=null}return{manifest:e,pages:t,fragments:n,loading:r,error:i,load:s,ensureLoaded:o}}),pn=V(`theme`,()=>{let e=c(!0);function t(){let t=localStorage.getItem(`gazetta_theme`);e.value=t?t===`dark`:!0,r()}function n(){e.value=!e.value,localStorage.setItem(`gazetta_theme`,e.value?`dark`:`light`),r()}function r(){document.documentElement.classList.toggle(`dark`,e.value),document.documentElement.classList.toggle(`light`,!e.value)}return{dark:e,init:t,toggle:n}}),mn=V(`toast`,()=>{let e=c(null),t=null;function n(){t&&=(clearTimeout(t),null),e.value=null}function r(n,r){let i=r?.type??`success`;t&&=(clearTimeout(t),null),e.value={message:n,type:i,link:r?.link};let a=r?.duration??(i===`error`?0:3e3);a>0&&(t=setTimeout(()=>{e.value=null,t=null},a))}function i(e,t){r((e instanceof Error?e.message:t).replace(/^Request failed: (\d+)$/,`Server error ($1)`).replace(/^Failed to fetch$/,`Cannot connect to server`),{type:`error`})}return{current:e,show:r,showError:i,dismiss:n}}),hn=V(`preview`,()=>{let e=c(0),t=c(0);function n(){e.value++}function r(){t.value++}return{version:e,draftVersion:t,invalidate:n,invalidateDraft:r}}),gn=V(`selection`,()=>{let e=mn(),t=c(null),n=c(null),r=null,i=g(()=>t.value?.type??null),a=g(()=>t.value?.name??null),o=g(()=>t.value?.detail??null),s=g(()=>fn().pages.filter(e=>!e.route.includes(`:`))),l=g(()=>t.value?.type===`page`?t.value.detail.route:t.value?.type===`fragment`?n.value?n.value.route:`/@${t.value.name}`:null);function u(){let e=s.value;n.value=e.find(e=>e.route===`/`)??e[0]??null}function d(e){let t=s.value.find(t=>t.name===e);t&&(n.value=t,hn().invalidate())}async function f(i){r?.abort(),r=new AbortController;let{signal:a}=r;try{t.value={type:`page`,name:i,detail:await U.getPage(i,{signal:a})},n.value=null,hn().invalidate()}catch(t){if(t.name===`AbortError`)return;e.showError(t,`Failed to load page "${i}"`)}}async function p(i){r?.abort(),r=new AbortController;let{signal:a}=r;try{t.value={type:`fragment`,name:i,detail:await U.getFragment(i,{signal:a})},n.value||u(),hn().invalidate()}catch(t){if(t.name===`AbortError`)return;e.showError(t,`Failed to load fragment "${i}"`)}}async function m(){if(t.value)try{if(t.value.type===`page`){let e=await U.getPage(t.value.name);t.value={type:`page`,name:t.value.name,detail:e}}else{let e=await U.getFragment(t.value.name);t.value={type:`fragment`,name:t.value.name,detail:e}}}catch(t){e.showError(t,`Failed to reload`)}}async function h(n){if(t.value)try{t.value.type===`page`?await U.updatePage(t.value.name,{components:n}):await U.updateFragment(t.value.name,{components:n}),await m(),hn().invalidate()}catch(t){e.showError(t,`Failed to update components`)}}return{selection:t,type:i,name:a,detail:o,previewRoute:l,fragmentHostPage:n,staticPages:s,selectPage:f,selectFragment:p,setFragmentHostPage:d,reload:m,updateComponents:h}}),_n=V(`publishStatus`,()=>{let e=c(null),t=c(null),n=c(!1),r=c(null),i=null,a=[`production`,`staging`,`local`];async function o(e,t){let n=[...a.flatMap(t=>e.filter(e=>e.environment===t)),...e.filter(e=>!a.includes(e.environment))],r=null;for(let e of n)try{let n=await U.compare(e.name,{signal:t});if(t.aborted)return null;if(!n.firstPublish)return{name:e.name,result:n};r||={name:e.name,result:n}}catch(e){if(t.aborted||e.name===`AbortError`)return null}return r}let s=g(()=>{let t=new Set;if(!e.value)return t;for(let n of e.value.added)t.add(n);for(let n of e.value.modified)t.add(n);return t});function l(e){return s.value.has(`pages/${e}`)}function u(e){return s.value.has(`fragments/${e}`)}let d=g(()=>e.value?.firstPublish===!0);async function f(){i?.abort();let a=new AbortController;i=a,n.value=!0,r.value=null;try{let n=await U.getTargets();if(a.signal.aborted)return;if(n.length===0){t.value=null,e.value=null;return}let r=await o(n,a.signal);if(a.signal.aborted)return;r?(t.value=r.name,e.value=r.result):(t.value=null,e.value=null)}catch(t){if(a.signal.aborted||t.name===`AbortError`)return;r.value=t.message,e.value=null}finally{a.signal.aborted||(n.value=!1)}}function p(){i?.abort(),e.value=null,t.value=null,r.value=null,n.value=!1}return{result:e,target:t,loading:n,error:r,isPageDirty:l,isFragmentDirty:u,isFirstPublish:d,dirtyPaths:s,refresh:f,clear:p}}),vn=`modulepreload`,yn=function(e){return`/admin/`+e},bn={},xn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=yn(t,n),t in bn)return;bn[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:vn,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Sn(e){return JSON.parse(JSON.stringify(e))}var Cn=V(`editing`,()=>{let e=mn(),t=c(null),n=c(null),r=c(null),i=c(!1),a=c(null),s=c(null),l=c(0),u=c(null),d=null,f=o(new Map),p=g(()=>t.value?.template??null),m=g(()=>t.value?.path??null),h=g(()=>t.value?.schema??null),_=g(()=>!n.value||!r.value?!1:JSON.stringify(n.value)!==JSON.stringify(r.value)),v=g(()=>f.size+ +!!_.value),y=g(()=>v.value>0),b=g(()=>{let e={};for(let[t,n]of f)e[t]=n.editedContent;return m.value&&n.value&&_.value&&(e[m.value]=n.value),e});function x(e){return f.has(e)}function S(){d&&=(clearInterval(d),null)}function C(){_.value&&t.value&&n.value&&f.set(t.value.path,{target:t.value,editedContent:Sn(n.value)})}async function w(e){let{hasEditor:t,editorUrl:n,fieldsBaseUrl:r,...i}=await U.getTemplateSchema(e);return{schema:i,hasEditor:!!t,editorUrl:n,fieldsBaseUrl:r}}async function T(e,o){if(S(),s.value=null,t.value=e,n.value=Sn(o||e.content),r.value=Sn(e.content),i.value=!1,a.value=null,u.value=null,e.hasEditor&&e.editorUrl)try{let t=await xn(()=>import(e.editorUrl),[]);u.value=t.default??t}catch(t){console.warn(`Custom editor for "${e.template}" failed to load:`,t)}l.value++,hn().invalidateDraft()}function E(e){return async t=>{let n=gn(),r=n.detail;if(!r||!n.selection)return;let i=Sn(r.components??[]),a=e.split(`/`),o=i;for(let e=0;e<a.length;e++){let n=o.findIndex(t=>typeof t==`object`&&t.name===a[e]);if(n===-1)return;let r=o[n];e===a.length-1?r.content=t:o=r.components??[]}n.selection.type===`page`?await U.updatePage(n.selection.name,{components:i}):await U.updateFragment(n.selection.name,{components:i})}}function D(e){let t=gn().detail;if(!t?.components)return null;let n=e.split(`/`),r=t.components;for(let e=0;e<n.length;e++){let t=r.find(t=>typeof t==`object`&&t.name===n[e]);if(!t||typeof t==`string`)return null;if(e===n.length-1)return{template:t.template,content:t.content??{}};r=t.components??[]}return null}async function O(e,n){S(),C();let r=f.get(e);if(r){f.delete(e),await T(r.target,r.editedContent);return}try{let t=D(e);if(!t)throw Error(`Component "${e}" not found in page manifest`);let{schema:r,hasEditor:i,editorUrl:a,fieldsBaseUrl:o}=await w(n);await T({template:n,path:e,content:t.content,schema:r,hasEditor:i,editorUrl:a,fieldsBaseUrl:o,save:E(e)})}catch(r){t.value=null,s.value=`Failed to load "${n}": ${r.message}`,d=setInterval(()=>O(e,n),3e3)}}async function k(){S(),C();let e=gn(),n=e.detail,r=e.selection;if(!n||!r)return;let i=`_root`,a=f.get(i);if(a){f.delete(i),await T(a.target,a.editedContent);return}try{let e=n.content??{},{schema:t,hasEditor:a,editorUrl:o,fieldsBaseUrl:s}=await w(n.template),c=r.type===`page`?e=>U.updatePage(r.name,{content:e}).then(()=>{}):e=>U.updateFragment(r.name,{content:e}).then(()=>{});await T({template:n.template,path:i,content:e,schema:t,hasEditor:a,editorUrl:o,fieldsBaseUrl:s,save:c})}catch(e){t.value=null,s.value=`Failed to load "${n.template}": ${e.message}`,d=setInterval(()=>k(),3e3)}}async function A(e){S(),C();let n=`@${e}`,r=f.get(n);if(r){f.delete(n),await T(r.target,r.editedContent);return}try{let t=await U.getFragment(e),r=t.content??{},{schema:i,hasEditor:a,editorUrl:o,fieldsBaseUrl:s}=await w(t.template);await T({template:t.template,path:n,content:r,schema:i,hasEditor:a,editorUrl:o,fieldsBaseUrl:s,save:t=>U.updateFragment(e,{content:t}).then(()=>{})})}catch(n){t.value=null,s.value=`Failed to load fragment "${e}": ${n.message}`,d=setInterval(()=>A(e),3e3)}}function j(){S(),s.value=null,t.value=null,n.value=null,r.value=null,i.value=!1,a.value=null,f.clear()}typeof window<`u`&&window.addEventListener(`beforeunload`,e=>{y.value&&(e.preventDefault(),e.returnValue=``)});function M(e){n.value=e,hn().invalidateDraft()}function N(e){f.delete(e),hn().invalidateDraft()}function ee(){!t.value||!r.value||(n.value=Sn(r.value),l.value++,hn().invalidateDraft())}async function P(){if(!(!t.value&&f.size===0)){i.value=!0,a.value=null;try{t.value&&n.value&&(await t.value.save(n.value),r.value=Sn(n.value));for(let e of f.values())await e.target.save(e.editedContent);f.clear(),hn().invalidate(),_n().refresh(),e.show(`Saved`)}catch(t){a.value=t.message,e.showError(t,`Failed to save`)}finally{i.value=!1}}}return{target:t,content:n,saved:r,saving:i,lastSaveError:a,template:p,path:m,schema:h,dirty:_,loadError:s,mountVersion:l,customEditorMount:u,pendingEdits:f,pendingCount:v,hasPendingEdits:y,allOverrides:b,open:T,openComponent:O,openPageRoot:k,openFragment:A,clear:j,markDirty:M,discard:ee,revertStashed:N,save:P,hasPendingEdit:x}}),wn=V(`componentFocus`,()=>{let e=c(null),t=c(null),n=c(null),r=c(null);function i(t){e.value=t}function a(e){t.value=e}function o(e){n.value=e}function s(e){r.value=e}function l(){r.value=null}return{highlightGzId:e,previewHoverGzId:t,selectedGzId:n,pendingGzId:r,highlight:i,previewHover:a,select:o,setPending:s,clearPending:l}}),Tn=V(`uiMode`,()=>{let e=c(`browse`),t=`browse`;function n(){e.value=`edit`}function r(){Cn().clear();let t=wn();t.select(null),t.clearPending(),e.value=`browse`}function i(){e.value===`fullscreen`?e.value=t:(t=e.value,e.value=`fullscreen`)}return{mode:e,enterEdit:n,enterBrowse:r,toggleFullscreen:i}}),En={class:`publish-content`},Dn={class:`publish-item`,"data-testid":`publish-current-item`},On={key:0,class:`publish-empty`},kn={class:`publish-targets`},An=[`for`],jn={key:0,class:`publish-env-badge publish-env-prod`},Mn={key:1,class:`publish-env-badge publish-env-staging`},Nn={key:0,class:`publish-warning`,"data-testid":`publish-invalid-templates`},Pn={class:`publish-invalid-body`},Fn={class:`publish-invalid-list`},In={class:`publish-invalid-name`},Ln={class:`publish-invalid-error`},Rn={key:1,class:`publish-confirm-banner`,"data-testid":`publish-confirm-banner`},zn={key:2,class:`publish-warning`,"data-testid":`publish-compare-error`},Bn={key:3,class:`publish-firstpublish`,"data-testid":`publish-first-publish`},Vn={key:4,class:`publish-changes`},Hn={class:`publish-label`},Un={key:0,class:`publish-label-hint`},Wn={key:1,class:`publish-label-hint`,"data-testid":`publish-summary`},Gn={key:0},Kn={key:1},qn={key:2},Jn={key:0,class:`publish-nochanges`},Yn={key:0,class:`publish-changes-group`,"data-testid":`publish-group-pages`},Xn={class:`publish-changes-list`},Zn={key:1,class:`publish-change-nocheckbox`},Qn={class:`publish-change-label`},$n={key:1,class:`publish-changes-group`,"data-testid":`publish-group-fragments`},er={class:`publish-changes-list`},tr={key:1,class:`publish-change-nocheckbox`},nr={class:`publish-change-label`},rr={key:2,class:`publish-progress`,"data-testid":`publish-progress`},ir={class:`publish-progress-header`},ar={class:`publish-progress-target`},or={class:`publish-progress-count`},sr={class:`publish-progress-bar`},cr=[`title`],lr={key:3,class:`publish-results`},ur={class:`result-target`},dr={key:0,class:`result-detail`},fr={key:1,class:`result-detail`},pr=R({__name:`PublishDialog`,props:{visible:{type:Boolean},itemType:{},itemName:{}},emits:[`close`],setup(e,{emit:t}){let a=e,o=t,h=g(()=>`${a.itemType}/${a.itemName}`),_=_n(),b=c([]),S=c([]),w=c(!1),T=c(!1),D=c(null),k=c(new Map),A=c(new Map),j=c(new Map),M=c(new Set),N=new Map,P=c(new Set([h.value]));r(async()=>{try{b.value=await U.getTargets()}catch{b.value=[]}}),E(()=>R());function R(){for(let e of N.values())e.abort();N.clear()}l(S,()=>{T.value=!1}),l(S,(e,t)=>{let n=e.filter(e=>!t?.includes(e)),r=(t??[]).filter(t=>!e.includes(t));for(let e of r)N.get(e)?.abort(),N.delete(e),M.value.delete(e),A.value.delete(e),j.value.delete(e);for(let e of n){let t=new AbortController;N.set(e,t),M.value.add(e),j.value.delete(e),U.compare(e,{signal:t.signal}).then(n=>{t.signal.aborted||(A.value.set(e,n),M.value.delete(e),A.value=new Map(A.value),M.value=new Set(M.value))}).catch(n=>{t.signal.aborted||n.name===`AbortError`||(j.value.set(e,n.message),M.value.delete(e),j.value=new Map(j.value),M.value=new Set(M.value))})}});let te={added:0,modified:1,deleted:2},ne=g(()=>{let e=new Map,t=(t,n)=>{let r=e.get(t);(!r||te[n]<te[r.change])&&e.set(t,{path:t,change:n})};for(let e of S.value){let n=A.value.get(e);if(n){for(let e of n.added)t(e,`added`);for(let e of n.modified)t(e,`modified`);for(let e of n.deleted)t(e,`deleted`)}}return[...e.values()].sort((e,t)=>e.path.localeCompare(t.path))}),re=g(()=>{let e=[],t=[];for(let n of ne.value)n.path.startsWith(`fragments/`)?t.push(n):e.push(n);return{pages:e,fragments:t}}),V=g(()=>{let e=0,t=0,n=0;for(let r of ne.value)r.change===`added`?e++:r.change===`modified`?t++:n++;return{added:e,modified:t,deleted:n}}),ie=g(()=>M.value.size>0),ae=g(()=>b.value.filter(e=>e.environment===`production`&&S.value.includes(e.name))),oe=g(()=>ae.value.length>0),se=g(()=>{let e=new Map;for(let t of S.value){let n=A.value.get(t);if(n)for(let t of n.invalidTemplates)e.has(t.name)||e.set(t.name,t.errors)}return[...e.entries()].map(([e,t])=>({name:e,errors:t}))}),ce=g(()=>se.value.length>0),le=g(()=>S.value.length===0||ie.value||w.value||ce.value),ue=g(()=>S.value.length===0?`Select at least one target`:ie.value?`Loading changes…`:ce.value?`Fix invalid templates before publishing`:``),de=g(()=>A.value.size>0),fe=g(()=>{for(let e of S.value)if(A.value.get(e)?.firstPublish)return!0;return!1}),pe=g(()=>{for(let e of S.value){let t=j.value.get(e);if(t)return t}return null}),me=g(()=>ne.value.filter(e=>e.change!==`deleted`&&e.path!==h.value)),he=g(()=>me.value.length>0&&me.value.every(e=>P.value.has(e.path)));function ge(){let e=new Set(P.value);if(he.value)for(let t of me.value)e.delete(t.path);else for(let t of me.value)e.add(t.path);P.value=e}let _e=g(()=>new Set(ne.value.filter(e=>e.change===`deleted`).map(e=>e.path)));l(ne,e=>{let t=new Set(e.map(e=>e.path)),n=new Set;for(let e of P.value)_e.value.has(e)||(t.has(e)||e===h.value)&&n.add(e);_e.value.has(h.value)||n.add(h.value),P.value=n});function ve(e){if(_e.value.has(e))return;let t=new Set(P.value);t.has(e)?t.delete(e):t.add(e),P.value=t}async function ye(){if(!le.value){if(oe.value&&!T.value){T.value=!0;return}await be()}}async function be(){if(S.value.length!==0){T.value=!1,R(),w.value=!0,D.value=null,k.value=new Map;try{let e;if(fe.value){let t=S.value.find(e=>A.value.get(e)?.firstPublish),n=t?A.value.get(t):null;e=n?n.added:[h.value]}else !de.value||pe.value?e=[h.value]:(e=[...P.value],e.length===0&&(e=[h.value]));D.value=await U.publishStream(e,S.value,e=>{if(e.kind===`target-start`){let t=new Map(k.value);t.set(e.target,{current:0,total:e.total,label:`starting…`,status:`in-progress`}),k.value=t}else if(e.kind===`progress`){let t=new Map(k.value),n=t.get(e.target)??{current:0,total:e.total,label:``,status:`in-progress`};t.set(e.target,{...n,current:e.current,total:e.total,label:e.label}),k.value=t}else if(e.kind===`target-result`){let t=new Map(k.value),n=t.get(e.result.target);n&&t.set(e.result.target,{...n,status:e.result.success?`done`:`error`,label:e.result.success?`done`:e.result.error??`failed`}),k.value=t}}),_.refresh()}catch(e){D.value=[{target:`(all)`,success:!1,error:e.message,copiedFiles:0}]}finally{w.value=!1}}}function xe(e){return e.startsWith(`pages/`)?`pi pi-file`:`pi pi-share-alt`}function Se(e){return e.startsWith(`pages/`)?e.slice(6):e.startsWith(`fragments/`)?`@${e.slice(10)}`:e}function Ce(e){return e===`added`?`+`:e===`deleted`?`−`:`●`}function we(){R(),o(`close`)}return(e,t)=>(u(),B(f(O),{visible:a.visible,"onUpdate:visible":we,modal:``,header:`Publish`,style:{width:`32rem`}},{footer:p(()=>[D.value?(u(),B(f(I),{key:0,label:`Done`,"data-testid":`publish-done`,onClick:we})):(u(),z(C,{key:1},[i(f(I),{label:T.value?`Back`:`Cancel`,severity:`secondary`,text:``,onClick:t[1]||=e=>T.value?T.value=!1:we()},null,8,[`label`]),T.value?(u(),B(f(I),{key:1,label:`Yes, publish to ${ae.value.map(e=>e.name).join(`, `)}`,icon:`pi pi-exclamation-triangle`,severity:`danger`,loading:w.value,"data-testid":`publish-confirm`,onClick:be},null,8,[`label`,`loading`])):(u(),B(f(I),{key:0,label:`Publish`,icon:`pi pi-cloud-upload`,loading:w.value,"data-testid":`publish-submit`,title:ue.value,disabled:le.value,onClick:ye},null,8,[`loading`,`title`,`disabled`]))],64))]),default:p(()=>[L(`div`,En,[L(`p`,Dn,[L(`i`,{class:n(xe(h.value))},null,2),m(` `+F(Se(h.value)),1)]),b.value.length===0?(u(),z(`div`,On,` No targets configured in site.yaml `)):D.value?v(``,!0):(u(),z(C,{key:1},[L(`div`,kn,[t[2]||=L(`p`,{class:`publish-label`},`Select targets`,-1),(u(!0),z(C,null,d(b.value,e=>(u(),z(`div`,{key:e.name,class:`publish-target`},[i(f(y),{modelValue:S.value,"onUpdate:modelValue":t[0]||=e=>S.value=e,inputId:e.name,value:e.name,"data-testid":`publish-target-${e.name}`},null,8,[`modelValue`,`inputId`,`value`,`data-testid`]),L(`label`,{for:e.name,class:`publish-target-label`},[m(F(e.name)+` `,1),e.environment===`production`?(u(),z(`span`,jn,`prod`)):e.environment===`staging`?(u(),z(`span`,Mn,`staging`)):v(``,!0)],8,An),M.value.has(e.name)?(u(),B(f(ee),{key:0,style:{width:`14px`,height:`14px`},strokeWidth:`6`})):v(``,!0)]))),128))]),ce.value?(u(),z(`div`,Nn,[t[4]||=L(`i`,{class:`pi pi-exclamation-triangle`},null,-1),L(`div`,Pn,[L(`p`,null,[L(`strong`,null,F(se.value.length)+` template`+F(se.value.length===1?``:`s`)+` can't be rendered.`,1),t[3]||=m(` Publish is blocked until fixed.`,-1)]),L(`ul`,Fn,[(u(!0),z(C,null,d(se.value,e=>(u(),z(`li`,{key:e.name},[L(`span`,In,F(e.name),1),L(`span`,Ln,F(e.errors[0]),1)]))),128))])])])):v(``,!0),T.value?(u(),z(`div`,Rn,[t[7]||=L(`i`,{class:`pi pi-exclamation-triangle`},null,-1),L(`span`,null,[t[5]||=m(` This will publish to `,-1),L(`strong`,null,F(ae.value.map(e=>e.name).join(`, `)),1),t[6]||=m(` — live content will change. `,-1)])])):v(``,!0),pe.value?(u(),z(`div`,zn,[t[8]||=L(`i`,{class:`pi pi-exclamation-triangle`},null,-1),L(`span`,null,`Couldn't load changes: `+F(pe.value),1)])):fe.value?(u(),z(`div`,Bn,[...t[9]||=[L(`i`,{class:`pi pi-info-circle`},null,-1),L(`span`,null,`First publish — everything will be published.`,-1)]])):S.value.length>0?(u(),z(`div`,Vn,[L(`p`,Hn,[t[10]||=m(` Changes `,-1),ie.value?(u(),z(`span`,Un,`loading…`)):ne.value.length?(u(),z(`span`,Wn,[V.value.modified?(u(),z(`span`,Gn,F(V.value.modified)+` modified`,1)):v(``,!0),V.value.added?(u(),z(`span`,Kn,F(V.value.modified?` · `:``)+F(V.value.added)+` added`,1)):v(``,!0),V.value.deleted?(u(),z(`span`,qn,F(V.value.modified||V.value.added?` · `:``)+F(V.value.deleted)+` only on target`,1)):v(``,!0)])):v(``,!0),!ie.value&&me.value.length>0?(u(),z(`button`,{key:2,type:`button`,class:`publish-select-all`,"data-testid":`publish-select-all`,onClick:ge},F(he.value?`Select none`:`Select all`),1)):v(``,!0)]),!ie.value&&ne.value.length===0?(u(),z(`div`,Jn,` No changes to publish. `)):(u(),z(C,{key:1},[re.value.pages.length?(u(),z(`div`,Yn,[t[11]||=L(`p`,{class:`publish-group-label`},`Pages`,-1),L(`div`,Xn,[(u(!0),z(C,null,d(re.value.pages,e=>(u(),B(s(e.change===`deleted`?`div`:`label`),{key:e.path,class:n([`publish-change-row`,{"publish-change-row-deleted":e.change===`deleted`}]),"data-testid":`publish-change-${e.path}`},{default:p(()=>[e.change===`deleted`?(u(),z(`span`,Zn)):(u(),B(f(y),{key:0,modelValue:P.value.has(e.path),binary:!0,"onUpdate:modelValue":t=>ve(e.path)},null,8,[`modelValue`,`onUpdate:modelValue`])),L(`span`,{class:n([`publish-change-mark`,e.change])},F(Ce(e.change)),3),L(`i`,{class:n([xe(e.path),`publish-change-icon`])},null,2),L(`span`,Qn,F(Se(e.path)),1)]),_:2},1032,[`class`,`data-testid`]))),128))])])):v(``,!0),re.value.fragments.length?(u(),z(`div`,$n,[t[12]||=L(`p`,{class:`publish-group-label`},`Fragments`,-1),L(`div`,er,[(u(!0),z(C,null,d(re.value.fragments,e=>(u(),B(s(e.change===`deleted`?`div`:`label`),{key:e.path,class:n([`publish-change-row`,{"publish-change-row-deleted":e.change===`deleted`}]),"data-testid":`publish-change-${e.path}`},{default:p(()=>[e.change===`deleted`?(u(),z(`span`,tr)):(u(),B(f(y),{key:0,modelValue:P.value.has(e.path),binary:!0,"onUpdate:modelValue":t=>ve(e.path)},null,8,[`modelValue`,`onUpdate:modelValue`])),L(`span`,{class:n([`publish-change-mark`,e.change])},F(Ce(e.change)),3),L(`i`,{class:n([xe(e.path),`publish-change-icon`])},null,2),L(`span`,nr,F(Se(e.path)),1)]),_:2},1032,[`class`,`data-testid`]))),128))])])):v(``,!0)],64))])):v(``,!0)],64)),w.value&&!D.value&&k.value.size>0?(u(),z(`div`,rr,[(u(!0),z(C,null,d(k.value,([e,t])=>(u(),z(`div`,{key:e,class:`publish-progress-row`},[L(`div`,ir,[L(`span`,ar,F(e),1),L(`span`,or,F(t.current)+` / `+F(t.total),1)]),L(`div`,sr,[L(`div`,{class:`publish-progress-fill`,style:x({width:(t.total?Math.round(100*t.current/t.total):0)+`%`})},null,4)]),L(`div`,{class:`publish-progress-label`,title:t.label},F(t.label),9,cr)]))),128))])):D.value?(u(),z(`div`,lr,[(u(!0),z(C,null,d(D.value,e=>(u(),z(`div`,{key:e.target,class:n([`publish-result`,{success:e.success,error:!e.success}])},[L(`i`,{class:n(e.success?`pi pi-check-circle`:`pi pi-exclamation-circle`)},null,2),L(`span`,ur,F(e.target),1),e.success?(u(),z(`span`,dr,F(e.copiedFiles)+` files`,1)):(u(),z(`span`,fr,F(e.error),1))],2))),128))])):v(``,!0)])]),_:1},8,[`visible`]))}}),mr=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},hr=mr(pr,[[`__scopeId`,`data-v-a2ebf90d`]]),gr={class:`fetch-content`},_r={key:0,class:`fetch-empty`},vr={key:1,class:`fetch-select`},yr={key:2,class:`fetch-result success`},br={class:`fetch-items`},xr={key:3,class:`fetch-result error`},Sr=mr(R({__name:`FetchDialog`,props:{visible:{type:Boolean}},emits:[`close`],setup(e,{emit:t}){let n=e,a=t,o=fn(),s=_n(),l=c([]),d=c(null),h=c(!1),g=c(null),y=c(null);r(async()=>{try{l.value=(await U.getTargets()).map(e=>e.name)}catch{l.value=[]}});async function b(){if(d.value){h.value=!0,g.value=null,y.value=null;try{g.value=await U.fetchFromTarget(d.value),await o.load(),s.refresh()}catch(e){y.value=e.message}finally{h.value=!1}}}return(e,t)=>(u(),B(f(O),{visible:n.visible,"onUpdate:visible":t[3]||=e=>a(`close`),modal:``,header:`Fetch from Target`,style:{width:`28rem`}},{footer:p(()=>[g.value||y.value?(u(),B(f(I),{key:0,label:`Done`,onClick:t[1]||=e=>a(`close`)})):(u(),z(C,{key:1},[i(f(I),{label:`Cancel`,severity:`secondary`,text:``,onClick:t[2]||=e=>a(`close`)}),i(f(I),{label:`Fetch`,icon:`pi pi-cloud-download`,loading:h.value,disabled:!d.value,onClick:b},null,8,[`loading`,`disabled`])],64))]),default:p(()=>[L(`div`,gr,[l.value.length===0?(u(),z(`div`,_r,` No targets configured in site.yaml `)):!g.value&&!y.value?(u(),z(`div`,vr,[t[4]||=L(`p`,{class:`fetch-label`},`Pull content from a target into the working copy:`,-1),i(f(_),{modelValue:d.value,"onUpdate:modelValue":t[0]||=e=>d.value=e,options:l.value.map(e=>({name:e})),optionLabel:`name`,optionValue:`name`,class:`fetch-list`},null,8,[`modelValue`,`options`])])):g.value?(u(),z(`div`,yr,[t[6]||=L(`i`,{class:`pi pi-check-circle`},null,-1),L(`div`,null,[L(`p`,null,[L(`strong`,null,F(g.value.copiedFiles),1),t[5]||=m(` files fetched from `,-1),L(`strong`,null,F(d.value),1)]),L(`p`,br,F(g.value.items.join(`, `)),1)])])):y.value?(u(),z(`div`,xr,[t[7]||=L(`i`,{class:`pi pi-exclamation-circle`},null,-1),L(`p`,null,F(y.value),1)])):v(``,!0)])]),_:1},8,[`visible`]))}}),[[`__scopeId`,`data-v-28aee561`]]),Cr={class:`changes-header`},wr={class:`changes-body`},Tr={key:0,class:`changes-empty`},Er={class:`changes-target-row`},Dr=[`title`],Or={key:0,class:`changes-loading`,"data-testid":`changes-loading`},kr={key:1,class:`changes-warning`,"data-testid":`changes-error`},Ar={class:`changes-warning-body`},jr={class:`changes-warning-detail`},Mr={key:2,class:`changes-state`,"data-testid":`changes-first-publish`},Nr={key:3,class:`changes-state changes-state-sync`,"data-testid":`changes-in-sync`},Pr={key:4,class:`changes-list-wrapper`},Fr={class:`changes-summary`,"data-testid":`changes-summary`},Ir={key:0},Lr={key:1},Rr={key:2},zr={key:0,class:`changes-group`,"data-testid":`changes-group-pages`},Br={class:`changes-rows`},Vr={class:`changes-label`},Hr={key:1,class:`changes-group`,"data-testid":`changes-group-fragments`},Ur={class:`changes-rows`},Wr={class:`changes-label`},Gr={key:2,class:`changes-unchanged`},Kr={key:0,class:`changes-unchanged-body`,"data-testid":`changes-unchanged-body`},qr={key:0,class:`changes-group`},Jr={class:`changes-rows`},Yr=[`data-testid`,`onClick`],Xr={class:`changes-label`},Zr={key:1,class:`changes-group`},Qr={class:`changes-rows`},$r=[`data-testid`,`onClick`],ei={class:`changes-label`},ti=`gazetta_changes_target`,ni=mr(R({__name:`ChangesDrawer`,props:{visible:{type:Boolean}},emits:[`update:visible`],setup(e,{emit:t}){let r=e,a=t,o=ne(),h=c([]),_=c(null),y=c(null),b=c(!1),x=c(null),S=c(null),w=c(!1),E=null;async function D(){try{h.value=(await U.getTargets()).map(e=>e.name);let e=localStorage.getItem(ti);e&&h.value.includes(e)?_.value=e:h.value.length&&(_.value=h.value[0])}catch{h.value=[]}}async function O(){if(!_.value)return;E?.abort();let e=new AbortController;E=e,b.value=!0,x.value=null;try{let t=await U.compare(_.value,{signal:e.signal});if(e.signal.aborted)return;y.value=t,S.value=Date.now()}catch(t){if(e.signal.aborted||t.name===`AbortError`)return;x.value=t.message,y.value=null}finally{e.signal.aborted||(b.value=!1)}}l(()=>r.visible,async e=>{if(!e){E?.abort();return}h.value.length===0&&await D(),_.value&&O()}),l(_,e=>{e&&(localStorage.setItem(ti,e),r.visible&&O())});function k(e,t){return(t??[]).map(t=>({path:t,change:e}))}let A=g(()=>{let e=y.value;return e?[...k(`modified`,e.modified),...k(`added`,e.added),...k(`deleted`,e.deleted)].sort((e,t)=>e.path.localeCompare(t.path)):[]}),j=g(()=>{let e=[],t=[];for(let n of A.value)n.path.startsWith(`fragments/`)?t.push(n):e.push(n);return{pages:e,fragments:t}}),M=g(()=>{let e=0,t=0,n=0;for(let r of A.value)r.change===`added`?e++:r.change===`modified`?t++:n++;return{added:e,modified:t,deleted:n}}),P=g(()=>{let e=y.value,t=[],n=[];for(let r of e?.unchanged??[]){let e={path:r,change:`modified`};r.startsWith(`fragments/`)?n.push(e):t.push(e)}return t.sort((e,t)=>e.path.localeCompare(t.path)),n.sort((e,t)=>e.path.localeCompare(t.path)),{pages:t,fragments:n}}),R=g(()=>y.value?.unchanged.length??0),te=g(()=>!b.value&&!x.value&&y.value!==null&&A.value.length===0&&!y.value.firstPublish),re=g(()=>!b.value&&!x.value&&y.value?.firstPublish===!0);function V(e){return e.startsWith(`pages/`)?`pi pi-file`:`pi pi-share-alt`}function ie(e){return e.startsWith(`pages/`)?e.slice(6):e.startsWith(`fragments/`)?`@${e.slice(10)}`:e}function ae(e){return e===`added`?`+`:e===`deleted`?`−`:`●`}function oe(e){if(e.change===`deleted`)return;let[t,...n]=e.path.split(`/`),r=n.join(`/`);o.push(`/${t}/${r}`)}let se=g(()=>{if(!S.value)return``;let e=Math.max(0,Date.now()-S.value),t=Math.floor(e/1e3);if(t<10)return`just now`;if(t<60)return`${t}s ago`;let n=Math.floor(t/60);return n<60?`${n}m ago`:`${Math.floor(n/60)}h ago`}),ce=c(Date.now()),le=null;l(()=>r.visible,e=>{e&&!le?le=setInterval(()=>{ce.value=Date.now()},15e3):!e&&le&&(clearInterval(le),le=null)});function ue(e){a(`update:visible`,e)}return(e,t)=>(u(),B(f(T),{visible:r.visible,"onUpdate:visible":ue,position:`right`,style:{width:`min(960px, 90vw)`},"data-testid":`changes-drawer`},{header:p(()=>[L(`div`,Cr,[t[2]||=L(`span`,{class:`changes-title`},`Changes`,-1),i(f(I),{icon:`pi pi-refresh`,text:``,rounded:``,size:`small`,disabled:!_.value||b.value,"data-testid":`changes-refresh`,onClick:O},null,8,[`disabled`])])]),default:p(()=>[L(`div`,wr,[h.value.length===0?(u(),z(`div`,Tr,` No targets configured in site.yaml `)):(u(),z(C,{key:1},[L(`div`,Er,[i(f(N),{modelValue:_.value,"onUpdate:modelValue":t[0]||=e=>_.value=e,options:h.value,placeholder:`Select target`,"data-testid":`changes-target-select`,class:`changes-target`},null,8,[`modelValue`,`options`]),S.value&&!b.value?(u(),z(`span`,{key:0,class:`changes-lastchecked`,title:new Date(S.value).toLocaleString()},F(se.value),9,Dr)):v(``,!0)]),b.value?(u(),z(`div`,Or,[i(f(ee),{style:{width:`20px`,height:`20px`},strokeWidth:`6`}),t[3]||=L(`span`,null,`Comparing…`,-1)])):x.value?(u(),z(`div`,kr,[t[5]||=L(`i`,{class:`pi pi-exclamation-triangle`},null,-1),L(`div`,Ar,[t[4]||=L(`p`,null,`Couldn't load changes`,-1),L(`p`,jr,F(x.value),1),i(f(I),{label:`Retry`,size:`small`,text:``,onClick:O})])])):re.value?(u(),z(`div`,Mr,[t[8]||=L(`i`,{class:`pi pi-info-circle`},null,-1),L(`span`,null,[t[6]||=m(`Nothing has been published to `,-1),L(`strong`,null,F(_.value),1),t[7]||=m(` yet.`,-1)])])):te.value?(u(),z(`div`,Nr,[t[11]||=L(`i`,{class:`pi pi-check-circle`},null,-1),L(`span`,null,[t[9]||=m(`In sync with `,-1),L(`strong`,null,F(_.value),1),t[10]||=m(`.`,-1)])])):y.value?(u(),z(`div`,Pr,[L(`p`,Fr,[M.value.modified?(u(),z(`span`,Ir,F(M.value.modified)+` modified`,1)):v(``,!0),M.value.added?(u(),z(`span`,Lr,F(M.value.modified?` · `:``)+F(M.value.added)+` added`,1)):v(``,!0),M.value.deleted?(u(),z(`span`,Rr,F(M.value.modified||M.value.added?` · `:``)+F(M.value.deleted)+` only on target`,1)):v(``,!0)]),j.value.pages.length?(u(),z(`div`,zr,[t[12]||=L(`p`,{class:`changes-group-label`},`Pages`,-1),L(`div`,Br,[(u(!0),z(C,null,d(j.value.pages,e=>(u(),B(s(e.change===`deleted`?`div`:`button`),{key:e.path,class:n([`changes-row`,{"changes-row-deleted":e.change===`deleted`}]),type:`button`,"data-testid":`changes-item-${e.path}`,onClick:t=>oe(e)},{default:p(()=>[L(`span`,{class:n([`changes-mark`,e.change])},F(ae(e.change)),3),L(`i`,{class:n([V(e.path),`changes-icon`])},null,2),L(`span`,Vr,F(ie(e.path)),1)]),_:2},1032,[`class`,`data-testid`,`onClick`]))),128))])])):v(``,!0),j.value.fragments.length?(u(),z(`div`,Hr,[t[13]||=L(`p`,{class:`changes-group-label`},`Fragments`,-1),L(`div`,Ur,[(u(!0),z(C,null,d(j.value.fragments,e=>(u(),B(s(e.change===`deleted`?`div`:`button`),{key:e.path,class:n([`changes-row`,{"changes-row-deleted":e.change===`deleted`}]),type:`button`,"data-testid":`changes-item-${e.path}`,onClick:t=>oe(e)},{default:p(()=>[L(`span`,{class:n([`changes-mark`,e.change])},F(ae(e.change)),3),L(`i`,{class:n([V(e.path),`changes-icon`])},null,2),L(`span`,Wr,F(ie(e.path)),1)]),_:2},1032,[`class`,`data-testid`,`onClick`]))),128))])])):v(``,!0),R.value>0?(u(),z(`div`,Gr,[L(`button`,{type:`button`,class:`changes-unchanged-toggle`,"data-testid":`changes-unchanged-toggle`,onClick:t[1]||=e=>w.value=!w.value},[L(`i`,{class:n(w.value?`pi pi-chevron-down`:`pi pi-chevron-right`)},null,2),L(`span`,null,F(R.value)+` unchanged`,1)]),w.value?(u(),z(`div`,Kr,[P.value.pages.length?(u(),z(`div`,qr,[t[15]||=L(`p`,{class:`changes-group-label`},`Pages`,-1),L(`div`,Jr,[(u(!0),z(C,null,d(P.value.pages,e=>(u(),z(`button`,{type:`button`,key:e.path,class:`changes-row changes-row-unchanged`,"data-testid":`changes-unchanged-${e.path}`,onClick:t=>oe(e)},[t[14]||=L(`span`,{class:`changes-mark unchanged`},`·`,-1),L(`i`,{class:n([V(e.path),`changes-icon`])},null,2),L(`span`,Xr,F(ie(e.path)),1)],8,Yr))),128))])])):v(``,!0),P.value.fragments.length?(u(),z(`div`,Zr,[t[17]||=L(`p`,{class:`changes-group-label`},`Fragments`,-1),L(`div`,Qr,[(u(!0),z(C,null,d(P.value.fragments,e=>(u(),z(`button`,{type:`button`,key:e.path,class:`changes-row changes-row-unchanged`,"data-testid":`changes-unchanged-${e.path}`,onClick:t=>oe(e)},[t[16]||=L(`span`,{class:`changes-mark unchanged`},`·`,-1),L(`i`,{class:n([V(e.path),`changes-icon`])},null,2),L(`span`,ei,F(ie(e.path)),1)],8,$r))),128))])])):v(``,!0)])):v(``,!0)])):v(``,!0)])):v(``,!0)],64))])]),_:1},8,[`visible`]))}}),[[`__scopeId`,`data-v-8918ea89`]]),ri={key:2,class:`cms-site-name`},ii={key:0,class:`cms-toast cms-toast-error`},ai=mr(R({__name:`CmsToolbar`,setup(e){let t=ie(),n=ne(),r=g(()=>t.name===`dev`),a=fn(),o=gn(),s=Cn(),l=pn(),d=Tn(),h=c(!1),_=c(!1),y=c(!1),x=g(()=>o.type===`page`?`pages`:`fragments`),S=g(()=>o.name??``),w=g(()=>o.name&&!s.hasPendingEdits),T=g(()=>s.saving?`Saving…`:s.hasPendingEdits?`Save changes (⌘S)`:`No unsaved changes`),E=g(()=>o.name?s.hasPendingEdits?`Save changes before publishing`:`Publish to a target`:`Select a page or fragment to publish`);function D(){let e=o.type===`page`?`/pages`:`/fragments`;n.push(`${e}/${o.name}`)}return(e,t)=>(u(),z(C,null,[i(f(b),{class:`cms-toolbar`},{start:p(()=>[f(d).mode===`edit`&&!r.value?(u(),B(f(I),{key:0,icon:`pi pi-arrow-left`,text:``,rounded:``,"data-testid":`back-to-browse`,onClick:D,size:`small`,class:`cms-btn`})):v(``,!0),r.value?(u(),B(f(I),{key:1,icon:`pi pi-arrow-left`,text:``,rounded:``,"data-testid":`back-to-editor`,onClick:t[0]||=e=>f(n).back(),size:`small`,class:`cms-btn`})):v(``,!0),t[10]||=L(`span`,{class:`cms-logo`},[L(`i`,{class:`pi pi-objects-column`}),m(` Gazetta `)],-1),f(a).manifest?(u(),z(`span`,ri,F(f(a).manifest.name),1)):v(``,!0)]),center:p(()=>[i(M,{name:`fade`},{default:p(()=>[f(s).lastSaveError?(u(),z(`span`,ii,[t[11]||=L(`i`,{class:`pi pi-exclamation-circle`},null,-1),m(` `+F(f(s).lastSaveError),1)])):v(``,!0)]),_:1})]),end:p(()=>[r.value?v(``,!0):(u(),B(f(I),{key:0,icon:`pi pi-code`,text:``,rounded:``,title:`Dev Playground`,"data-testid":`dev-playground-link`,onClick:t[1]||=e=>f(n).push(`/dev`),size:`small`,class:`cms-btn`})),i(f(I),{icon:f(l).dark?`pi pi-sun`:`pi pi-moon`,text:``,rounded:``,"data-testid":`theme-toggle`,onClick:t[2]||=e=>f(l).toggle(),size:`small`,class:`cms-btn`},null,8,[`icon`]),f(d).mode===`edit`?(u(),B(f(I),{key:1,label:`Save`,icon:`pi pi-save`,severity:`primary`,loading:f(s).saving,"data-testid":`save-btn`,title:T.value,disabled:!f(s).hasPendingEdits,onClick:t[3]||=e=>f(s).save(),size:`small`,class:`cms-btn`},null,8,[`loading`,`title`,`disabled`])):v(``,!0),i(f(I),{icon:`pi pi-arrow-right-arrow-left`,text:``,rounded:``,title:`Changes`,"data-testid":`changes-btn`,onClick:t[4]||=e=>y.value=!0,size:`small`,class:`cms-btn`}),i(f(I),{label:`Fetch`,icon:`pi pi-cloud-download`,severity:`info`,"data-testid":`fetch-btn`,onClick:t[5]||=e=>_.value=!0,size:`small`,class:`cms-btn`}),i(f(I),{label:`Publish`,icon:`pi pi-cloud-upload`,severity:`success`,"data-testid":`publish-btn`,title:E.value,disabled:!w.value,onClick:t[6]||=e=>h.value=!0,size:`small`,class:`cms-btn`},null,8,[`title`,`disabled`])]),_:1}),h.value?(u(),B(hr,{key:0,visible:h.value,itemType:x.value,itemName:S.value,onClose:t[7]||=e=>h.value=!1},null,8,[`visible`,`itemType`,`itemName`])):v(``,!0),_.value?(u(),B(Sr,{key:1,visible:_.value,onClose:t[8]||=e=>_.value=!1},null,8,[`visible`])):v(``,!0),i(ni,{visible:y.value,"onUpdate:visible":t[9]||=e=>y.value=e},null,8,[`visible`])],64))}}),[[`__scopeId`,`data-v-d907b333`]]),oi=V(`unsavedGuard`,()=>{let e=c(!1),t=null;function n(){return t?new Promise(e=>e(`cancel`)):(e.value=!0,new Promise(e=>{t={resolve:e}}))}function r(n){e.value=!1,t?.resolve(n),t=null}return{visible:e,guard:n,respond:r}}),si={class:`unsaved-message`},ci={class:`unsaved-actions`},li=mr(R({__name:`UnsavedDialog`,setup(e){let t=oi(),n=gn();function r(e){e.key===`Escape`&&(e.stopPropagation(),t.respond(`cancel`))}return(e,a)=>(u(),B(f(O),{visible:f(t).visible,modal:``,header:`Unsaved Changes`,closable:!1,style:{width:`26rem`},pt:{mask:{style:`backdrop-filter: blur(2px)`}},onKeydown:r},{footer:p(()=>[L(`div`,ci,[i(f(I),{label:`Don't Save`,severity:`danger`,text:``,onClick:a[0]||=e=>f(t).respond(`discard`)}),i(f(I),{label:`Cancel`,severity:`secondary`,text:``,onClick:a[1]||=e=>f(t).respond(`cancel`)}),i(f(I),{label:`Save`,icon:`pi pi-check`,autofocus:``,onClick:a[2]||=e=>f(t).respond(`save`)})])]),default:p(()=>[L(`p`,si,[a[3]||=m(` You have unsaved changes on `,-1),L(`strong`,null,F(f(n).name),1),a[4]||=m(`. `,-1)])]),_:1},8,[`visible`]))}}),[[`__scopeId`,`data-v-70fd0516`]]),ui={class:`cms-app`},di={key:0,class:`cms-error`},fi={key:1,class:`cms-loading`},pi=[`href`],mi=R({__name:`App`,setup(e){let t=fn(),o=pn(),s=mn();return r(()=>{o.init()}),(e,r)=>{let o=a(`router-view`);return u(),z(`div`,ui,[i(ai),f(t).error?(u(),z(`div`,di,F(f(t).error),1)):f(t).loading?(u(),z(`div`,fi,`Loading site...`)):(u(),B(o,{key:2})),i(li),i(M,{name:`toast`},{default:p(()=>[f(s).current?(u(),z(`div`,{key:0,class:n([`global-toast`,f(s).current.type===`error`?`toast-error`:`toast-success`]),"data-testid":`global-toast`},[L(`i`,{class:n(f(s).current.type===`error`?`pi pi-exclamation-circle`:`pi pi-check-circle`)},null,2),f(s).current.link?(u(),z(`a`,{key:0,href:f(s).current.link,target:`_blank`,rel:`noopener`,class:`toast-link`},F(f(s).current.message),9,pi)):(u(),z(C,{key:1},[m(F(f(s).current.message),1)],64)),f(s).current.type===`error`?(u(),z(`button`,{key:2,type:`button`,class:`toast-dismiss`,"data-testid":`toast-dismiss`,"aria-label":`Dismiss`,onClick:r[0]||=e=>f(s).dismiss()},[...r[1]||=[L(`i`,{class:`pi pi-times`},null,-1)]])):v(``,!0)],2)):v(``,!0)]),_:1})])}}}),hi=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var gi=Object.prototype.toString,_i=e=>gi.call(e)===`[object Object]`,vi=()=>{};function yi(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var bi=e=>e();function xi(e,t={}){let n,r,i=vi,a=e=>{clearTimeout(e),i(),i=vi},o;return s=>{let c=h(e),l=h(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function Si(e){return Array.isArray(e)?e:[e]}function Ci(e,t,n={}){let{eventFilter:r=bi,...i}=n;return l(e,yi(r,t),i)}function wi(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Ci(e,t,{...a,eventFilter:xi(r,{maxWait:i})})}function Ti(e,t,n){return l(e,t,{...n,immediate:!0})}var Ei=hi?window:void 0;hi&&window.document,hi&&window.navigator,hi&&window.location;function Di(e){let t=h(e);return t?.$el??t}function Oi(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=g(()=>{let t=Si(h(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Ti(()=>[n.value?.map(e=>Di(e))??[Ei].filter(e=>e!=null),Si(h(n.value?e[1]:e[0])),Si(f(n.value?e[2]:e[1])),h(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=_i(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function ki(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Ai(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=Ei,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=ki(t);return Oi(i,a,e=>{e.repeat&&h(s)||c(e)&&n(e)},o)}var ji={class:`create-content`},Mi={class:`create-field`},Ni={key:0,class:`create-hint`},Pi={class:`create-field`},Fi={key:0,class:`create-error`},Ii=mr(R({__name:`CreatePageDialog`,props:{visible:{type:Boolean}},emits:[`close`],setup(e,{emit:t}){let n=e,a=t,o=fn(),s=c([]),l=c(null),d=c(``),m=c(!1),h=c(null),y=g(()=>{let e=d.value.trim().toLowerCase().replace(/\s+/g,`-`);return!e||e===`home`?`/`:`/${e}`});r(async()=>{s.value=await U.getTemplates()});async function b(){if(!(!l.value||!d.value.trim())){m.value=!0,h.value=null;try{let e=d.value.trim().toLowerCase().replace(/\s+/g,`-`).replace(/\/+/g,`/`);await U.createPage({name:e,template:l.value}),await o.load(),a(`close`)}catch(e){h.value=e.message}finally{m.value=!1}}}return(e,t)=>(u(),B(f(O),{visible:n.visible,"onUpdate:visible":t[3]||=e=>a(`close`),modal:``,header:`New Page`,style:{width:`24rem`}},{footer:p(()=>[i(f(I),{label:`Cancel`,severity:`secondary`,text:``,onClick:t[2]||=e=>a(`close`)}),i(f(I),{label:`Create`,icon:`pi pi-plus`,loading:m.value,disabled:!l.value||!d.value.trim(),onClick:b},null,8,[`loading`,`disabled`])]),default:p(()=>[L(`div`,ji,[L(`div`,Mi,[t[4]||=L(`label`,null,`Page name`,-1),i(f(j),{modelValue:d.value,"onUpdate:modelValue":t[0]||=e=>d.value=e,placeholder:`e.g. contact or blog/my-post`,class:`create-input`},null,8,[`modelValue`]),d.value.trim()?(u(),z(`span`,Ni,`Route: `+F(y.value),1)):v(``,!0)]),L(`div`,Pi,[t[5]||=L(`label`,null,`Page template`,-1),i(f(_),{modelValue:l.value,"onUpdate:modelValue":t[1]||=e=>l.value=e,options:s.value,optionLabel:`name`,optionValue:`name`,class:`create-list`,style:{maxHeight:`200px`}},null,8,[`modelValue`,`options`])]),h.value?(u(),z(`p`,Fi,F(h.value),1)):v(``,!0)])]),_:1},8,[`visible`]))}}),[[`__scopeId`,`data-v-b4d1c25e`]]),Li={class:`create-content`},Ri={class:`create-field`},zi={class:`create-field`},Bi={key:0,class:`create-error`},Vi=mr(R({__name:`CreateFragmentDialog`,props:{visible:{type:Boolean}},emits:[`close`],setup(e,{emit:t}){let n=e,a=t,o=fn(),s=c([]),l=c(null),d=c(``),m=c(!1),h=c(null);r(async()=>{s.value=await U.getTemplates()});async function g(){if(!(!l.value||!d.value.trim())){m.value=!0,h.value=null;try{let e=d.value.trim().toLowerCase().replace(/\s+/g,`-`);await U.createFragment({name:e,template:l.value}),await o.load(),a(`close`)}catch(e){h.value=e.message}finally{m.value=!1}}}return(e,t)=>(u(),B(f(O),{visible:n.visible,"onUpdate:visible":t[3]||=e=>a(`close`),modal:``,header:`New Fragment`,style:{width:`24rem`}},{footer:p(()=>[i(f(I),{label:`Cancel`,severity:`secondary`,text:``,onClick:t[2]||=e=>a(`close`)}),i(f(I),{label:`Create`,icon:`pi pi-plus`,loading:m.value,disabled:!l.value||!d.value.trim(),onClick:g},null,8,[`loading`,`disabled`])]),default:p(()=>[L(`div`,Li,[L(`div`,Ri,[t[4]||=L(`label`,null,`Fragment name`,-1),i(f(j),{modelValue:d.value,"onUpdate:modelValue":t[0]||=e=>d.value=e,placeholder:`e.g. sidebar, newsletter`,class:`create-input`},null,8,[`modelValue`])]),L(`div`,zi,[t[5]||=L(`label`,null,`Template`,-1),i(f(_),{modelValue:l.value,"onUpdate:modelValue":t[1]||=e=>l.value=e,options:s.value,optionLabel:`name`,optionValue:`name`,class:`create-list`,style:{maxHeight:`200px`}},null,8,[`modelValue`,`options`])]),h.value?(u(),z(`p`,Bi,F(h.value),1)):v(``,!0)])]),_:1},8,[`visible`]))}}),[[`__scopeId`,`data-v-0b98775c`]]),Hi={class:`site-tree`},Ui=[`data-testid`,`onClick`],Wi={class:`node-label`},Gi=[`title`,`data-testid`],Ki=[`data-testid`,`onClick`],qi={class:`node-label`},Ji=[`title`,`data-testid`],Yi=[`data-testid`,`onClick`],Xi={class:`node-label`},Zi=[`title`,`data-testid`],Qi={class:`new-btns`},$i=mr(R({__name:`SiteTree`,setup(e){let t=ne(),a=fn(),o=gn(),s=Cn(),p=mn(),m=_n(),h=c(null),_=c(!1),y=c(!1);r(()=>m.refresh()),l(()=>a.pages.length+a.fragments.length,()=>m.refresh());function b(e){return m.isFirstPublish?!0:e.type===`page`?m.isPageDirty(e.name):m.isFragmentDirty(e.name)}function x(){return m.target?m.isFirstPublish?`Not yet published to ${m.target}`:`Has unpublished changes (${m.target})`:``}l(()=>o.selection,e=>{e?h.value=`${e.type}:${e.name}`:h.value=null},{immediate:!0});let S=g(()=>new Set(a.manifest?.systemPages??[])),w=g(()=>[...a.pages].filter(e=>!S.value.has(e.name)).sort((e,t)=>e.route.localeCompare(t.route)).map(e=>({key:`page:${e.name}`,label:e.name,type:`page`,name:e.name,icon:`pi pi-file`}))),T=g(()=>[...a.pages].filter(e=>S.value.has(e.name)).sort((e,t)=>e.route.localeCompare(t.route)).map(e=>({key:`page:${e.name}`,label:e.name,type:`page`,name:e.name,icon:`pi pi-file`}))),E=g(()=>a.fragments.map(e=>({key:`fragment:${e.name}`,label:e.name,type:`fragment`,name:e.name,icon:`pi pi-share-alt`})).sort((e,t)=>e.label.localeCompare(t.label)));function D(e){let n=e.type===`page`?`/pages`:`/fragments`;t.push(`${n}/${e.name}`)}async function O(e,t){if(t.stopPropagation(),confirm(`Delete ${e.type} "${e.name}"? This cannot be undone.`))try{e.type===`page`?await U.deletePage(e.name):await U.deleteFragment(e.name),o.type===e.type&&o.name===e.name&&s.clear(),await a.load()}catch(t){p.showError(t,`Failed to delete "${e.name}"`)}}return(e,t)=>(u(),z(`div`,Hi,[t[5]||=L(`div`,{class:`section-label`},`Pages`,-1),(u(!0),z(C,null,d(w.value,e=>(u(),z(`div`,{key:e.key,class:n([`node-item`,{selected:h.value===e.key}]),"data-testid":`site-${e.type}-${e.name}`,onClick:t=>D(e)},[L(`i`,{class:n([e.icon,`node-icon`])},null,2),L(`span`,Wi,F(e.label),1),b(e)?(u(),z(`span`,{key:0,class:`node-dirty-dot`,title:x(),"data-testid":`dirty-${e.type}-${e.name}`},null,8,Gi)):v(``,!0),i(f(I),{icon:`pi pi-trash`,text:``,rounded:``,size:`small`,severity:`danger`,class:`node-delete`,"data-testid":`delete-${e.type}-${e.name}`,onClick:t=>O(e,t)},null,8,[`data-testid`,`onClick`])],10,Ui))),128)),T.value.length?(u(),z(C,{key:0},[t[4]||=L(`div`,{class:`section-divider`},null,-1),(u(!0),z(C,null,d(T.value,e=>(u(),z(`div`,{key:e.key,class:n([`node-item`,{selected:h.value===e.key}]),"data-testid":`site-${e.type}-${e.name}`,onClick:t=>D(e)},[L(`i`,{class:n([e.icon,`node-icon`])},null,2),L(`span`,qi,F(e.label),1),b(e)?(u(),z(`span`,{key:0,class:`node-dirty-dot`,title:x(),"data-testid":`dirty-${e.type}-${e.name}`},null,8,Ji)):v(``,!0),i(f(I),{icon:`pi pi-trash`,text:``,rounded:``,size:`small`,severity:`danger`,class:`node-delete`,"data-testid":`delete-${e.type}-${e.name}`,onClick:t=>O(e,t)},null,8,[`data-testid`,`onClick`])],10,Ki))),128))],64)):v(``,!0),t[6]||=L(`div`,{class:`section-label`,style:{"margin-top":`12px`}},`Fragments`,-1),(u(!0),z(C,null,d(E.value,e=>(u(),z(`div`,{key:e.key,class:n([`node-item`,{selected:h.value===e.key}]),"data-testid":`site-${e.type}-${e.name}`,onClick:t=>D(e)},[L(`i`,{class:n([e.icon,`node-icon`])},null,2),L(`span`,Xi,F(e.label),1),b(e)?(u(),z(`span`,{key:0,class:`node-dirty-dot`,title:x(),"data-testid":`dirty-${e.type}-${e.name}`},null,8,Zi)):v(``,!0),i(f(I),{icon:`pi pi-trash`,text:``,rounded:``,size:`small`,severity:`danger`,class:`node-delete`,"data-testid":`delete-${e.type}-${e.name}`,onClick:t=>O(e,t)},null,8,[`data-testid`,`onClick`])],10,Yi))),128)),L(`div`,Qi,[i(f(I),{icon:`pi pi-plus`,label:`New page`,text:``,size:`small`,"data-testid":`new-page`,onClick:t[0]||=e=>_.value=!0}),i(f(I),{icon:`pi pi-plus`,label:`New fragment`,text:``,size:`small`,"data-testid":`new-fragment`,onClick:t[1]||=e=>y.value=!0})]),_.value?(u(),B(Ii,{key:1,visible:_.value,onClose:t[2]||=e=>_.value=!1},null,8,[`visible`])):v(``,!0),y.value?(u(),B(Vi,{key:2,visible:y.value,onClose:t[3]||=e=>y.value=!1},null,8,[`visible`])):v(``,!0)]))}}),[[`__scopeId`,`data-v-6b0b06db`]]),ea={class:`add-content`},ta={class:`add-field`},na={class:`add-field`},ra={key:0,class:`add-error`},ia=mr(R({__name:`AddComponentDialog`,props:{visible:{type:Boolean}},emits:[`close`,`add`],setup(e,{emit:t}){let n=e,a=t,o=c([]),s=c(null),l=c(``),d=c(!1),m=c(null);r(async()=>{o.value=await U.getTemplates()});async function h(){if(!(!s.value||!l.value.trim())){d.value=!0,m.value=null;try{a(`add`,l.value.trim().toLowerCase().replace(/\s+/g,`-`),s.value),a(`close`)}catch(e){m.value=e.message}finally{d.value=!1}}}return(e,t)=>(u(),B(f(O),{visible:n.visible,"onUpdate:visible":t[3]||=e=>a(`close`),modal:``,header:`Add Component`,style:{width:`24rem`}},{footer:p(()=>[i(f(I),{label:`Cancel`,severity:`secondary`,text:``,onClick:t[2]||=e=>a(`close`),"data-testid":`add-component-cancel`}),i(f(I),{label:`Add`,icon:`pi pi-plus`,loading:d.value,disabled:!s.value||!l.value.trim(),onClick:h,"data-testid":`add-component-submit`},null,8,[`loading`,`disabled`])]),default:p(()=>[L(`div`,ea,[L(`div`,ta,[t[4]||=L(`label`,null,`Name`,-1),i(f(j),{modelValue:l.value,"onUpdate:modelValue":t[0]||=e=>l.value=e,placeholder:`e.g. hero, sidebar, cta`,class:`add-input`,"data-testid":`add-component-name`},null,8,[`modelValue`])]),L(`div`,na,[t[5]||=L(`label`,null,`Template`,-1),i(f(_),{modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,options:o.value,optionLabel:`name`,optionValue:`name`,class:`add-list`,style:{maxHeight:`200px`}},null,8,[`modelValue`,`options`])]),m.value?(u(),z(`p`,ra,F(m.value),1)):v(``,!0)])]),_:1},8,[`visible`]))}}),[[`__scopeId`,`data-v-de3d43d5`]]),aa={key:0,class:`component-tree`},oa=[`data-testid`,`onClick`,`onMouseenter`],sa=[`title`],ca={key:2,class:`node-dirty-dot`},la={class:`node-label`},ua={key:4,class:`node-actions`},da={key:1,class:`empty`},fa=mr(R({__name:`ComponentTree`,setup(e){function t(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t*16777619>>>0;return t.toString(16).padStart(8,`0`)}let r=gn(),a=Cn(),o=mn(),s=wn(),p=oi(),m=c(null),h=c(null),_=c([]),y=c(!1),b=g(()=>r.detail),S=g(()=>b.value?.components?.length??0),T=c(new Map);async function E(e,n,r,i){if(typeof e==`string`){let a=e.slice(1),o=r?`${r}/${e}`:e,s=t(o);i.set(s,{isFragment:!0,fragName:a});try{let t=await U.getFragment(a),r=t.components?await Promise.all(t.components.map((e,t)=>E(e,t,o,i))):[];return{key:`frag:${a}:${n}`,label:e,data:{isFragment:!0,fragName:a,treePath:o,path:o,template:t.template,index:n,isTopLevel:!0},children:r}}catch(t){return{key:`frag:${a}:${n}`,label:e,data:{isFragment:!0,fragName:a,treePath:o,index:n,isTopLevel:!0,error:t.message},children:[]}}}let a=r?`${r}/${e.name}`:e.name,o=t(a),s=e.components?await Promise.all(e.components.map((e,t)=>E(e,t,a,i))):[];return i.set(o,{path:a,template:e.template}),{key:`comp:${a}:${n}`,label:e.name,data:{path:a,template:e.template,treePath:a,isFragment:!1,index:n,isTopLevel:!0},children:s.map(e=>({...e,data:{...e.data,isTopLevel:!1}}))}}l(b,async e=>{if(!e){_.value=[],T.value=new Map;return}let n=new Map,i=r.type===`fragment`?`@${r.name}`:``,a=e.components?await Promise.all(e.components.map((e,t)=>E(e,t,i,n))):[],o={key:`root:${r.name}`,label:r.name??``,data:{isPage:!0,path:e.dir,template:e.template,treePath:i},children:a};i&&r.type===`fragment`&&r.name&&n.set(t(i),{isFragment:!0,fragName:r.name}),_.value=[o],T.value=n,D()},{immediate:!0});function D(){s.pendingGzId&&T.value.size>0&&(R(s.pendingGzId),s.clearPending())}l(()=>s.pendingGzId,()=>D()),l(()=>s.previewHoverGzId,e=>{if(!e){h.value=null;return}h.value=P(_.value,n=>n.treePath?t(n.treePath)===e:!1)?.key??null});let O=g(()=>{let e=[];function t(n,r){for(let i of n)e.push({node:i,depth:r}),i.children.length&&t(i.children,r+1)}return _.value[0]&&(e.push({node:_.value[0],depth:-1}),t(_.value[0].children,0)),e});function k(e,t){return t===-1?r.type===`page`?`pi pi-file`:`pi pi-share-alt`:e.data.isFragment?`pi pi-share-alt`:`pi pi-box`}function A(e){if(!(e<=0))return{paddingLeft:e*10+`px`}}function j(e){a.path===e?a.discard():a.revertStashed(e)}function M(e){e.data.treePath&&s.highlight(t(e.data.treePath))}function N(){s.highlight(null)}async function ee(e){if(!e.data)return;m.value=e.key,s.clearPending();let n=e.data.treePath;if(s.select(n?t(n):null),e.data.isFragment&&e.data.fragName){a.openFragment(e.data.fragName);return}if(e.data.isPage){a.openPageRoot();return}e.data.path&&a.openComponent(e.data.path,e.data.template??``)}function P(e,t){for(let n of e){if(n.data&&t(n.data))return n;if(n.children.length){let e=P(n.children,t);if(e)return e}}return null}function R(e){let t=T.value.get(e);if(!t)return;if(s.select(e),`isFragment`in t){let e=P(_.value,e=>e.fragName===t.fragName);e&&(m.value=e.key),a.openFragment(t.fragName);return}let n=P(_.value,e=>e.path===t.path);n&&(m.value=n.key),a.openComponent(t.path,t.template)}async function te(e,t){let n=b.value;if(!n?.components)return;let i=e+t;if(i<0||i>=n.components.length)return;let a=[...n.components],[o]=a.splice(e,1);a.splice(i,0,o),await r.updateComponents(a)}async function ne(e){let t=b.value;if(!t?.components)return;if(a.dirty){let e=await p.guard();if(e===`cancel`)return;e===`save`&&await a.save()}let n=[...t.components],i=n.splice(e,1)[0],s=typeof i==`string`?i:i.name;a.clear(),await r.updateComponents(n),o.show(`Removed "${s}"`)}async function re(e,t){let n=b.value;if(n)try{let i={name:e,template:t,content:{}},a=[...n.components??[],i];await r.updateComponents(a),o.show(`Added "${e}"`)}catch(t){o.showError(t,`Failed to add component "${e}"`)}}return(e,t)=>b.value?(u(),z(`div`,aa,[O.value.length?(u(!0),z(C,{key:0},d(O.value,({node:e,depth:r})=>(u(),z(`div`,{key:e.key,class:n([`node-item`,{"node-root":r===-1,selected:m.value===e.key,hovered:h.value===e.key}]),style:x(A(r)),"data-testid":`component-${e.data?.isFragment?e.data.fragName:e.label}`,onClick:t=>ee(e),onMouseenter:t=>M(e),onMouseleave:t[0]||=e=>N()},[e.data?.error?(u(),z(`i`,{key:0,class:`pi pi-exclamation-triangle node-icon node-error-icon`,title:e.data.error},null,8,sa)):(u(),z(`i`,{key:1,class:n([k(e,r),`node-icon`])},null,2)),e.data?.path&&(f(a).hasPendingEdit(e.data.path)||f(a).dirty&&f(a).path===e.data.path)?(u(),z(`span`,ca)):v(``,!0),L(`span`,la,F(e.label),1),e.data?.path&&(f(a).hasPendingEdit(e.data.path)||f(a).dirty&&f(a).path===e.data.path)?(u(),B(f(I),{key:3,icon:`pi pi-undo`,text:``,rounded:``,size:`small`,class:`node-revert`,title:`Discard changes`,onClick:w(t=>j(e.data.path),[`stop`])},null,8,[`onClick`])):v(``,!0),e.data?.isTopLevel&&r!==-1?(u(),z(`span`,ua,[i(f(I),{icon:`pi pi-arrow-up`,text:``,rounded:``,size:`small`,"data-testid":`move-up-${e.label}`,disabled:e.data.index===0,onClick:w(t=>te(e.data.index,-1),[`stop`])},null,8,[`data-testid`,`disabled`,`onClick`]),i(f(I),{icon:`pi pi-arrow-down`,text:``,rounded:``,size:`small`,"data-testid":`move-down-${e.label}`,disabled:e.data.index===S.value-1,onClick:w(t=>te(e.data.index,1),[`stop`])},null,8,[`data-testid`,`disabled`,`onClick`]),i(f(I),{icon:`pi pi-trash`,text:``,rounded:``,size:`small`,severity:`danger`,"data-testid":`remove-${e.label}`,onClick:w(t=>ne(e.data.index),[`stop`])},null,8,[`data-testid`,`onClick`])])):v(``,!0)],46,oa))),128)):(u(),z(`p`,da,`No components`)),i(f(I),{icon:`pi pi-plus`,label:`Add component`,text:``,size:`small`,class:`add-btn`,"data-testid":`add-component`,onClick:t[1]||=e=>y.value=!0}),y.value?(u(),B(ia,{key:2,visible:y.value,onClose:t[2]||=e=>y.value=!1,onAdd:re},null,8,[`visible`])):v(``,!0)])):v(``,!0)}}),[[`__scopeId`,`data-v-b1b905e2`]]);function pa(e,t,n,r,i,a,o,s){let c=null;function u(){if(!e.value||!t.value||!n.value||!r.value)return;c&&d();let o=t.value,l=e.value;o.mount(l,{content:n.value,schema:r.value,theme:i.value,onChange:a,fieldsBaseUrl:s?.value}),c={mount:o,el:l}}function d(){if(c){try{c.mount.unmount(c.el)}catch{}c=null}}l(o?[e,t,o]:[e,t],()=>{e.value&&t.value&&n.value?u():d()},{immediate:!0}),D(d)}var W=oe(),G=e(ce(),1),ma=e(se()),ha=le();function K(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ga=typeof Symbol==`function`&&Symbol.observable||`@@observable`,_a=()=>Math.random().toString(36).substring(7).split(``).join(`.`),va={INIT:`@@redux/INIT${_a()}`,REPLACE:`@@redux/REPLACE${_a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${_a()}`};function ya(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ba(e,t,n){if(typeof e!=`function`)throw Error(K(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(K(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(K(1));return n(ba)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(K(3));return i}function d(e){if(typeof e!=`function`)throw Error(K(4));if(c)throw Error(K(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(K(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!ya(e))throw Error(K(7));if(e.type===void 0)throw Error(K(8));if(typeof e.type!=`string`)throw Error(K(17));if(c)throw Error(K(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(K(10));r=e,f({type:va.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(K(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[ga](){return this}}}return f({type:va.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[ga]:m}}function xa(e,t){return function(...n){return t(e.apply(this,n))}}function Sa(e,t){if(typeof e==`function`)return xa(e,t);if(typeof e!=`object`||!e)throw Error(K(16));let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=xa(i,t))}return n}function Ca(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function wa(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(K(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=Ca(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}var Ta=t((e=>{var t=ce();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue}));t(((e,t)=>{t.exports=Ta()}))();var Ea=Symbol.for(`react.transitional.element`),Da=Symbol.for(`react.portal`),Oa=Symbol.for(`react.fragment`),ka=Symbol.for(`react.strict_mode`),Aa=Symbol.for(`react.profiler`),ja=Symbol.for(`react.consumer`),Ma=Symbol.for(`react.context`),Na=Symbol.for(`react.forward_ref`),Pa=Symbol.for(`react.suspense`),Fa=Symbol.for(`react.suspense_list`),Ia=Symbol.for(`react.memo`),La=Symbol.for(`react.lazy`),Ra=Na,za=Ia;function Ba(e){if(typeof e==`object`&&e){let{$$typeof:t}=e;switch(t){case Ea:switch(e=e.type,e){case Oa:case Aa:case ka:case Pa:case Fa:return e;default:switch(e&&=e.$$typeof,e){case Ma:case Na:case La:case Ia:return e;case ja:return e;default:return t}}case Da:return t}}}function Va(e){return Ba(e)===Ia}function Ha(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,u,d,f;function p(i,a){return c=i,l=a,u=e(c,l),d=t(r,l),f=n(u,d,l),s=!0,f}function m(){return u=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function h(){return e.dependsOnOwnProps&&(u=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function g(){let t=e(c,l),r=!o(t,u);return u=t,r&&(f=n(u,d,l)),f}function _(e,t){let n=!a(t,l),r=!i(e,c,t,l);return c=e,l=t,n&&r?m():n?h():r?g():f}return function(e,t){return s?_(e,t):p(e,t)}}function Ua(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return Ha(t(e,i),n(e,i),r(e,i),e,i)}function Wa(e,t){let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=(...e)=>t(i(...e)))}return n}function Ga(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function Ka(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function qa(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Ka(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=Ka(i),i=r(t,n)),i},r}}function Ja(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Ya(e){return e&&typeof e==`object`?Ga(t=>Wa(e,t)):e?typeof e==`function`?qa(e,`mapDispatchToProps`):Ja(e,`mapDispatchToProps`):Ga(e=>({dispatch:e}))}function Xa(e){return e?typeof e==`function`?qa(e,`mapStateToProps`):Ja(e,`mapStateToProps`):Ga(()=>({}))}function Za(e,t,n){return{...n,...e,...t}}function Qa(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i=!1,a;return function(t,n,o){let s=e(t,n,o);return i?r(s,a)||(a=s):(i=!0,a=s),a}}}function $a(e){return e?typeof e==`function`?Qa(e):Ja(e,`mergeProps`):()=>Za}function eo(e){e()}function to(){let e=null,t=null;return{clear(){e=null,t=null},notify(){eo(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var no={notify(){},get:()=>[]};function ro(e,t){let n,r=no,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=to())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=no)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var io=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,ao=typeof navigator<`u`&&navigator.product===`ReactNative`,oo=io||ao?G.useLayoutEffect:G.useEffect;function so(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function co(e,t){if(so(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!so(e[n[r]],t[n[r]]))return!1;return!0}var lo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fo={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},po={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mo={[Ra]:fo,[za]:po};function ho(e){return Va(e)?po:mo[e.$$typeof]||lo}var go=Object.defineProperty,_o=Object.getOwnPropertyNames,vo=Object.getOwnPropertySymbols,yo=Object.getOwnPropertyDescriptor,bo=Object.getPrototypeOf,xo=Object.prototype;function So(e,t){if(typeof t!=`string`){if(xo){let n=bo(t);n&&n!==xo&&So(e,n)}let n=_o(t);vo&&(n=n.concat(vo(t)));let r=ho(e),i=ho(t);for(let a=0;a<n.length;++a){let o=n[a];if(!uo[o]&&!(i&&i[o])&&!(r&&r[o])){let n=yo(t,o);try{go(e,o,n)}catch{}}}}return e}var Co=Symbol.for(`react-redux-context`),wo=typeof globalThis<`u`?globalThis:{};function To(){if(!G.createContext)return{};let e=wo[Co]??=new Map,t=e.get(G.createContext);return t||(t=G.createContext(null),e.set(G.createContext,t)),t}var Eo=To(),Do=[null,null];function Oo(e,t,n){oo(()=>e(...t),n)}function ko(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function Ao(e,t,n,r,i,a,o,s,c,l,u){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e=t.getState(),n,p;try{n=r(e,i.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?o.current||l():(a.current=n,c.current=n,o.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function jo(e,t){return e===t}function Mo(e,t,n,{pure:r,areStatesEqual:i=jo,areOwnPropsEqual:a=co,areStatePropsEqual:o=co,areMergedPropsEqual:s=co,forwardRef:c=!1,context:l=Eo}={}){let u=l,d=Xa(e),f=Ya(t),p=$a(n),m=!!e;return e=>{let t=e.displayName||e.name||`Component`,n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){let[n,i,a]=G.useMemo(()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),o=G.useMemo(()=>{let e=u;return n?.Consumer,e},[n,u]),s=G.useContext(o),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,l=!!s&&!!s.store,d=c?t.store:s.store,f=l?s.getServerState:d.getState,p=G.useMemo(()=>Ua(d.dispatch,r),[d]),[h,g]=G.useMemo(()=>{if(!m)return Do;let e=ro(d,c?void 0:s.subscription);return[e,e.notifyNestedSubs.bind(e)]},[d,c,s]),_=G.useMemo(()=>c?s:{...s,subscription:h},[c,s,h]),v=G.useRef(void 0),y=G.useRef(a),b=G.useRef(void 0),x=G.useRef(!1),S=G.useRef(!1),C=G.useRef(void 0);oo(()=>(S.current=!0,()=>{S.current=!1}),[]);let w=G.useMemo(()=>()=>b.current&&a===y.current?b.current:p(d.getState(),a),[d,a]),T=G.useMemo(()=>e=>h?Ao(m,d,h,p,y,v,x,S,b,g,e):()=>{},[h]);Oo(ko,[y,v,x,a,b,g]);let E;try{E=G.useSyncExternalStore(T,w,f?()=>p(f(),a):w)}catch(e){throw C.current&&(e.message+=`
42
+ The error may be correlated with this previous error:
43
+ ${C.current.stack}
44
+
45
+ `),e}oo(()=>{C.current=void 0,b.current=void 0,v.current=E});let D=G.useMemo(()=>G.createElement(e,{...E,ref:i}),[i,e,E]);return G.useMemo(()=>m?G.createElement(o.Provider,{value:_},D):D,[o,D,_])}let h=G.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=G.forwardRef(function(e,t){return G.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,So(t,e)}return So(h,e)}}var No=Mo;function Po(e){let{children:t,context:n,serverState:r,store:i}=e,a=G.useMemo(()=>({store:i,subscription:ro(i),getServerState:r?()=>r:void 0}),[i,r]),o=G.useMemo(()=>i.getState(),[i]);oo(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Eo;return G.createElement(s.Provider,{value:a},t)}var Fo=Po,Io=!0,Lo=`Invariant failed`;function Ro(e,t){if(!e){if(Io)throw Error(Lo);var n=typeof t==`function`?t():t,r=n?`${Lo}: ${n}`:Lo;throw Error(r)}}var zo=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},Bo=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Vo=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Ho=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Uo={top:0,right:0,bottom:0,left:0},Wo=function(e){var t=e.borderBox,n=e.margin,r=n===void 0?Uo:n,i=e.border,a=i===void 0?Uo:i,o=e.padding,s=o===void 0?Uo:o,c=zo(Bo(t,r)),l=zo(Vo(t,a)),u=zo(Vo(l,s));return{marginBox:c,borderBox:zo(t),paddingBox:l,contentBox:u,margin:r,border:a,padding:s}},Go=function(e){var t=e.slice(0,-2);if(e.slice(-2)!==`px`)return 0;var n=Number(t);return isNaN(n)&&Ro(!1),n},Ko=function(){return{x:window.pageXOffset,y:window.pageYOffset}},qo=function(e,t){var n=e.borderBox,r=e.border,i=e.margin,a=e.padding;return Wo({borderBox:Ho(n,t),border:r,margin:i,padding:a})},Jo=function(e,t){return t===void 0&&(t=Ko()),qo(e,t)},Yo=function(e,t){return Wo({borderBox:e,margin:{top:Go(t.marginTop),right:Go(t.marginRight),bottom:Go(t.marginBottom),left:Go(t.marginLeft)},padding:{top:Go(t.paddingTop),right:Go(t.paddingRight),bottom:Go(t.paddingBottom),left:Go(t.paddingLeft)},border:{top:Go(t.borderTopWidth),right:Go(t.borderRightWidth),bottom:Go(t.borderBottomWidth),left:Go(t.borderLeftWidth)}})},Xo=function(e){return Yo(e.getBoundingClientRect(),window.getComputedStyle(e))},Zo=function(e){var t=[],n=null,r=function(){t=[...arguments],!n&&(n=requestAnimationFrame(function(){n=null,e.apply(void 0,t)}))};return r.cancel=function(){n&&=(cancelAnimationFrame(n),null)},r};function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qo.apply(null,arguments)}function $o(e,t){}$o.bind(null,`warn`),$o.bind(null,`error`);function es(){}function ts(e,t){return{...e,...t}}function ns(e,t,n){let r=t.map(t=>{let r=ts(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}});return function(){r.forEach(e=>{e()})}}var rs=`Invariant failed`,is=class extends Error{};is.prototype.toString=function(){return this.message};function q(e,t){throw new is(rs)}var as=class extends G.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=es,this.onWindowError=e=>{let t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof is&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw Error(`Unable to find AppCallbacks in <ErrorBoundary/>`);return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=ns(window,[{eventName:`error`,fn:this.onWindowError}])}componentDidCatch(e){if(e instanceof is){this.setState({});return}throw e}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}},os=`
46
+ Press space bar to start a drag.
47
+ When dragging you can use the arrow keys to move the item around and escape to cancel.
48
+ Some screen readers may require you to be in focus mode or to use your pass through key
49
+ `,ss=e=>e+1,cs=e=>`
50
+ You have lifted an item in position ${ss(e.source.index)}
51
+ `,ls=(e,t)=>{let n=e.droppableId===t.droppableId,r=ss(e.index),i=ss(t.index);return n?`
52
+ You have moved the item from position ${r}
53
+ to position ${i}
54
+ `:`
55
+ You have moved the item from position ${r}
56
+ in list ${e.droppableId}
57
+ to list ${t.droppableId}
58
+ in position ${i}
59
+ `},us=(e,t,n)=>t.droppableId===n.droppableId?`
60
+ The item ${e}
61
+ has been combined with ${n.draggableId}`:`
62
+ The item ${e}
63
+ in list ${t.droppableId}
64
+ has been combined with ${n.draggableId}
65
+ in list ${n.droppableId}
66
+ `,ds=e=>{let t=e.destination;if(t)return ls(e.source,t);let n=e.combine;return n?us(e.draggableId,e.source,n):`You are over an area that cannot be dropped on`},fs=e=>`
67
+ The item has returned to its starting position
68
+ of ${ss(e.index)}
69
+ `,ps={dragHandleUsageInstructions:os,onDragStart:cs,onDragUpdate:ds,onDragEnd:e=>{if(e.reason===`CANCEL`)return`
70
+ Movement cancelled.
71
+ ${fs(e.source)}
72
+ `;let t=e.destination,n=e.combine;return t?`
73
+ You have dropped the item.
74
+ ${ls(e.source,t)}
75
+ `:n?`
76
+ You have dropped the item.
77
+ ${us(e.draggableId,e.source,n)}
78
+ `:`
79
+ The item has been dropped while not over a drop area.
80
+ ${fs(e.source)}
81
+ `}};function ms(e,t){return!!(e===t||Number.isNaN(e)&&Number.isNaN(t))}function hs(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ms(e[n],t[n]))return!1;return!0}function J(e,t){let n=(0,G.useState)(()=>({inputs:t,result:e()}))[0],r=(0,G.useRef)(!0),i=(0,G.useRef)(n),a=r.current||t&&i.current.inputs&&hs(t,i.current.inputs)?i.current:{inputs:t,result:e()};return(0,G.useEffect)(()=>{r.current=!1,i.current=a},[a]),a.result}function Y(e,t){return J(()=>e,t)}var X={x:0,y:0},Z=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),gs=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),_s=(e,t)=>e.x===t.x&&e.y===t.y,vs=e=>({x:e.x===0?0:-e.x,y:e.y===0?0:-e.y}),ys=(e,t,n=0)=>e===`x`?{x:t,y:n}:{x:n,y:t},bs=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),xs=(e,t)=>Math.min(...t.map(t=>bs(e,t))),Ss=e=>t=>({x:e(t.x),y:e(t.y)}),Cs=(e,t)=>{let n=zo({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},ws=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Ts=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Es={top:0,right:0,bottom:0,left:0},Ds=(e,t)=>t?ws(e,t.scroll.diff.displacement):e,Os=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,ks=(e,t)=>t&&t.shouldClipSubject?Cs(t.pageMarginBox,e):zo(e),As=({page:e,withPlaceholder:t,axis:n,frame:r})=>({page:e,withPlaceholder:t,active:ks(Os(Ds(e.marginBox,r),n,t),r)}),js=(e,t)=>{!e.frame&&q();let n=e.frame,r=gs(t,n.scroll.initial),i=vs(r),a={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}},o=As({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:o}};function Q(e,t=hs){let n=null;function r(...r){if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;let i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}var Ms=Q(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),Ns=Q(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),Ps=Q(e=>Object.values(e)),Fs=Q(e=>Object.values(e)),Is=Q((e,t)=>Fs(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index));function Ls(e){return e.at&&e.at.type===`REORDER`?e.at.destination:null}function Rs(e){return e.at&&e.at.type===`COMBINE`?e.at.combine:null}var zs=Q((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),Bs=({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:i})=>{if(!n.isCombineEnabled||!Ls(i))return null;function a(e){let t={type:`COMBINE`,combine:{draggableId:e,droppableId:n.descriptor.id}};return{...i,at:t}}let o=i.displaced.all,s=o.length?o[0]:null;if(e)return s?a(s):null;let c=zs(t,r);if(!s){if(!c.length)return null;let e=c[c.length-1];return a(e.descriptor.id)}let l=c.findIndex(e=>e.descriptor.id===s);l===-1&&q();let u=l-1;if(u<0)return null;let d=c[u];return a(d.descriptor.id)},Vs=(e,t)=>e.descriptor.droppableId===t.descriptor.id,Hs={point:X,value:0},Us={invisible:{},visible:{},all:[]},Ws={displaced:Us,displacedBy:Hs,at:null},Gs=(e,t)=>n=>e<=n&&n<=t,Ks=e=>{let t=Gs(e.top,e.bottom),n=Gs(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;let i=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(i&&a)return!0;let o=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return o&&s?!0:o&&a||s&&i}},qs=e=>{let t=Gs(e.top,e.bottom),n=Gs(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)},Js={direction:`vertical`,line:`y`,crossAxisLine:`x`,start:`top`,end:`bottom`,size:`height`,crossAxisStart:`left`,crossAxisEnd:`right`,crossAxisSize:`width`},Ys={direction:`horizontal`,line:`x`,crossAxisLine:`y`,start:`left`,end:`right`,size:`width`,crossAxisStart:`top`,crossAxisEnd:`bottom`,crossAxisSize:`height`},Xs=e=>t=>{let n=Gs(t.top,t.bottom),r=Gs(t.left,t.right);return t=>e===Js?n(t.top)&&n(t.bottom):r(t.left)&&r(t.right)},Zs=(e,t)=>ws(e,t.frame?t.frame.scroll.diff.displacement:X),Qs=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,$s=(e,t,n)=>n(t)(e),ec=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:i})=>{let a=r?Zs(e,t):e;return Qs(a,t,i)&&$s(a,n,i)},tc=e=>ec({...e,isVisibleThroughFrameFn:Ks}),nc=e=>ec({...e,isVisibleThroughFrameFn:qs}),rc=e=>ec({...e,isVisibleThroughFrameFn:Xs(e.destination.axis)}),ic=(e,t,n)=>{if(typeof n==`boolean`)return n;if(!t)return!0;let{invisible:r,visible:i}=t;if(r[e])return!1;let a=i[e];return a?a.shouldAnimate:!0};function ac(e,t){let n=e.page.marginBox;return zo(Bo(n,{top:t.point.y,right:0,bottom:0,left:t.point.x}))}function oc({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:i,last:a}){return e.reduce(function(e,o){let s=ac(o,n),c=o.descriptor.id;if(e.all.push(c),!tc({target:s,destination:t,viewport:r,withDroppableDisplacement:!0}))return e.invisible[o.descriptor.id]=!0,e;let l={draggableId:c,shouldAnimate:ic(c,a,i)};return e.visible[c]=l,e},{all:[],visible:{},invisible:{}})}function sc(e,t){if(!e.length)return 0;let n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function cc({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){let i=sc(e,{inHomeList:t});return{displaced:Us,displacedBy:n,at:{type:`REORDER`,destination:{droppableId:r.descriptor.id,index:i}}}}function lc({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:i,last:a,index:o,forceShouldAnimate:s}){let c=Vs(e,n);if(o==null)return cc({insideDestination:t,inHomeList:c,displacedBy:i,destination:n});let l=t.find(e=>e.descriptor.index===o);if(!l)return cc({insideDestination:t,inHomeList:c,displacedBy:i,destination:n});let u=zs(e,t),d=t.indexOf(l);return{displaced:oc({afterDragging:u.slice(d),destination:n,displacedBy:i,last:a,viewport:r.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:`REORDER`,destination:{droppableId:n.descriptor.id,index:o}}}}function uc(e,t){return!!t.effected[e]}var dc=({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:i})=>{if(!t.isCombineEnabled)return null;let a=r.draggableId,o=n[a].descriptor.index;return uc(a,i)?e?o:o-1:e?o+1:o},fc=({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;let i=r.index,a=e?i+1:i-1,o=n[0].descriptor.index,s=n[n.length-1].descriptor.index,c=t?s:s+1;return a<o||a>c?null:a},pc=({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:i,insideDestination:a,previousImpact:o,viewport:s,afterCritical:c})=>{let l=o.at;if(!l&&q(),l.type===`REORDER`){let r=fc({isMovingForward:e,isInHomeList:t,location:l.destination,insideDestination:a});return r==null?null:lc({draggable:n,insideDestination:a,destination:i,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:r})}let u=dc({isMovingForward:e,destination:i,displaced:o.displaced,draggables:r,combine:l.combine,afterCritical:c});return u==null?null:lc({draggable:n,insideDestination:a,destination:i,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:u})},mc=({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{let i=!!(e.visible[n]||e.invisible[n]);return uc(n,t)?i?X:vs(r.point):i?r.point:X},hc=({afterCritical:e,impact:t,draggables:n})=>{let r=Rs(t);!r&&q();let i=r.draggableId,a=n[i].page.borderBox.center;return Z(a,mc({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy}))},gc=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,_c=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,vc=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,yc=({axis:e,moveRelativeTo:t,isMoving:n})=>ys(e.line,t.marginBox[e.end]+gc(e,n),vc(e,t.marginBox,n)),bc=({axis:e,moveRelativeTo:t,isMoving:n})=>ys(e.line,t.marginBox[e.start]-_c(e,n),vc(e,t.marginBox,n)),xc=({axis:e,moveInto:t,isMoving:n})=>ys(e.line,t.contentBox[e.start]+gc(e,n),vc(e,t.contentBox,n)),Sc=({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i})=>{let a=Is(r.descriptor.id,n),o=t.page,s=r.axis;if(!a.length)return xc({axis:s,moveInto:r.page,isMoving:o});let{displaced:c,displacedBy:l}=e,u=c.all[0];if(u){let e=n[u];return uc(u,i)?bc({axis:s,moveRelativeTo:e.page,isMoving:o}):bc({axis:s,moveRelativeTo:qo(e.page,l.point),isMoving:o})}let d=a[a.length-1];return d.descriptor.id===t.descriptor.id?o.borderBox.center:uc(d.descriptor.id,i)?yc({axis:s,moveRelativeTo:qo(d.page,vs(i.displacedBy.point)),isMoving:o}):yc({axis:s,moveRelativeTo:d.page,isMoving:o})},Cc=(e,t)=>{let n=e.frame;return n?Z(t,n.scroll.diff.displacement):t},wc=({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:i})=>{let a=t.page.borderBox.center,o=e.at;return!n||!o?a:o.type===`REORDER`?Sc({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i}):hc({impact:e,draggables:r,afterCritical:i})},Tc=e=>{let t=wc(e),n=e.droppable;return n?Cc(n,t):t},Ec=(e,t)=>{let n=gs(t,e.scroll.initial),r=vs(n);return{frame:zo({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Dc(e,t){return e.map(e=>t[e])}function Oc(e,t){for(let n=0;n<t.length;n++){let r=t[n].visible[e];if(r)return r}return null}var kc=({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:i})=>{let a=Ec(t,Z(t.scroll.current,i)),o=n.frame?js(n,Z(n.frame.scroll.current,i)):n,s=e.displaced,c=oc({afterDragging:Dc(s.all,r),destination:n,displacedBy:e.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),l=oc({afterDragging:Dc(s.all,r),destination:o,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},d={},f=[s,c,l];return s.all.forEach(e=>{let t=Oc(e,f);if(t){d[e]=t;return}u[e]=!0}),{...e,displaced:{all:s.all,invisible:u,visible:d}}},Ac=(e,t)=>Z(e.scroll.diff.displacement,t),jc=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{let r=gs(Ac(n,e),t.page.borderBox.center);return Z(t.client.borderBox.center,r)},Mc=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:i,onlyOnMainAxis:a=!1})=>{let o=gs(n,e.page.borderBox.center),s={target:ws(e.page.borderBox,o),destination:t,withDroppableDisplacement:i,viewport:r};return a?rc(s):nc(s)},Nc=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:i,viewport:a,previousPageBorderBoxCenter:o,previousClientSelection:s,afterCritical:c})=>{if(!n.isEnabled)return null;let l=Is(n.descriptor.id,r),u=Vs(t,n),d=Bs({isMovingForward:e,draggable:t,destination:n,insideDestination:l,previousImpact:i})||pc({isMovingForward:e,isInHomeList:u,draggable:t,draggables:r,destination:n,insideDestination:l,previousImpact:i,viewport:a,afterCritical:c});if(!d)return null;let f=Tc({impact:d,draggable:t,droppable:n,draggables:r,afterCritical:c});if(Mc({draggable:t,destination:n,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:jc({pageBorderBoxCenter:f,draggable:t,viewport:a}),impact:d,scrollJumpRequest:null};let p=gs(f,o);return{clientSelection:s,impact:kc({impact:d,viewport:a,destination:n,draggables:r,maxScrollChange:p}),scrollJumpRequest:p}},Pc=e=>{let t=e.subject.active;return!t&&q(),t},Fc=({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:i})=>{let a=n.subject.active;if(!a)return null;let o=n.axis,s=Gs(a[o.start],a[o.end]),c=Ps(r).filter(e=>e!==n).filter(e=>e.isEnabled).filter(e=>!!e.subject.active).filter(e=>Ks(i.frame)(Pc(e))).filter(t=>{let n=Pc(t);return e?a[o.crossAxisEnd]<n[o.crossAxisEnd]:n[o.crossAxisStart]<a[o.crossAxisStart]}).filter(e=>{let t=Pc(e),n=Gs(t[o.start],t[o.end]);return s(t[o.start])||s(t[o.end])||n(a[o.start])||n(a[o.end])}).sort((t,n)=>{let r=Pc(t)[o.crossAxisStart],i=Pc(n)[o.crossAxisStart];return e?r-i:i-r}).filter((e,t,n)=>Pc(e)[o.crossAxisStart]===Pc(n[0])[o.crossAxisStart]);if(!c.length)return null;if(c.length===1)return c[0];let l=c.filter(e=>Gs(Pc(e)[o.start],Pc(e)[o.end])(t[o.line]));return l.length===1?l[0]:l.length>1?l.sort((e,t)=>Pc(e)[o.start]-Pc(t)[o.start])[0]:c.sort((e,n)=>{let r=xs(t,Ts(Pc(e))),i=xs(t,Ts(Pc(n)));return r===i?Pc(e)[o.start]-Pc(n)[o.start]:r-i})[0]},Ic=(e,t)=>{let n=e.page.borderBox.center;return uc(e.descriptor.id,t)?gs(n,t.displacedBy.point):n},Lc=(e,t)=>{let n=e.page.borderBox;return uc(e.descriptor.id,t)?ws(n,vs(t.displacedBy.point)):n},Rc=({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:i})=>r.filter(e=>nc({target:Lc(e,i),destination:n,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,r)=>{let a=bs(e,Cc(n,Ic(t,i))),o=bs(e,Cc(n,Ic(r,i)));return a<o?-1:o<a?1:t.descriptor.index-r.descriptor.index})[0]||null,zc=Q(function(e,t){let n=t[e.line];return{value:n,point:ys(e.line,n)}}),Bc=(e,t,n)=>{let r=e.axis;if(e.descriptor.mode===`virtual`)return ys(r.line,t[r.line]);let i=e.subject.page.contentBox[r.size],a=Is(e.descriptor.id,n).reduce((e,t)=>e+t.client.marginBox[r.size],0)+t[r.line]-i;return a<=0?null:ys(r.line,a)},Vc=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Hc=(e,t,n)=>{let r=e.frame;Vs(t,e)&&q(),e.subject.withPlaceholder&&q();let i=zc(e.axis,t.displaceBy).point,a=Bc(e,i,n),o={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){let t=As({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:t}}let s=Vc(r,a?Z(r.scroll.max,a):r.scroll.max),c=As({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:c,frame:s}},Uc=e=>{let t=e.subject.withPlaceholder;!t&&q();let n=e.frame;if(!n){let t=As({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}let r=t.oldFrameMaxScroll;!r&&q();let i=Vc(n,r),a=As({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:a,frame:i}},Wc=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:r,draggables:i,destination:a,viewport:o,afterCritical:s})=>{if(!t){if(n.length)return null;let e={displaced:Us,displacedBy:Hs,at:{type:`REORDER`,destination:{droppableId:a.descriptor.id,index:0}}},t=Tc({impact:e,draggable:r,droppable:a,draggables:i,afterCritical:s});return Mc({draggable:r,destination:Vs(r,a)?a:Hc(a,r,i),newPageBorderBoxCenter:t,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}let c=e[a.axis.line]<=t.page.borderBox.center[a.axis.line],l=(()=>{let e=t.descriptor.index;return t.descriptor.id===r.descriptor.id||c?e:e+1})();return lc({draggable:r,insideDestination:n,destination:a,viewport:o,displacedBy:zc(a.axis,r.displaceBy),last:Us,index:l})},Gc=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:i,droppables:a,viewport:o,afterCritical:s})=>{let c=Fc({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:a,viewport:o});if(!c)return null;let l=Is(c.descriptor.id,i),u=Wc({previousPageBorderBoxCenter:t,destination:c,draggable:n,draggables:i,moveRelativeTo:Rc({pageBorderBoxCenter:t,viewport:o,destination:c,insideDestination:l,afterCritical:s}),insideDestination:l,viewport:o,afterCritical:s});return u?{clientSelection:jc({pageBorderBoxCenter:Tc({impact:u,draggable:n,droppable:c,draggables:i,afterCritical:s}),draggable:n,viewport:o}),impact:u,scrollJumpRequest:null}:null},Kc=e=>{let t=e.at;return t?t.type===`REORDER`?t.destination.droppableId:t.combine.droppableId:null},qc=(e,t)=>{let n=Kc(e);return n?t[n]:null},Jc=({state:e,type:t})=>{let n=qc(e.impact,e.dimensions.droppables),r=!!n,i=e.dimensions.droppables[e.critical.droppable.id],a=n||i,o=a.axis.direction,s=o===`vertical`&&(t===`MOVE_UP`||t===`MOVE_DOWN`)||o===`horizontal`&&(t===`MOVE_LEFT`||t===`MOVE_RIGHT`);if(s&&!r)return null;let c=t===`MOVE_DOWN`||t===`MOVE_RIGHT`,l=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:f}=e.dimensions;return s?Nc({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:l,destination:a,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Gc({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:l,isOver:a,draggables:d,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function Yc(e){return e.phase===`DRAGGING`||e.phase===`COLLECTING`}function Xc(e){let t=Gs(e.top,e.bottom),n=Gs(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Zc(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function Qc({pageBorderBox:e,draggable:t,candidates:n}){let r=t.page.borderBox.center,i=n.map(t=>{let n=t.axis,i=ys(t.axis.line,e.center[n.line],t.page.borderBox.center[n.crossAxisLine]);return{id:t.descriptor.id,distance:bs(r,i)}}).sort((e,t)=>t.distance-e.distance);return i[0]?i[0].id:null}function $c({pageBorderBox:e,draggable:t,droppables:n}){let r=Ps(n).filter(t=>{if(!t.isEnabled)return!1;let n=t.subject.active;if(!n||!Zc(e,n))return!1;if(Xc(n)(e.center))return!0;let r=t.axis,i=n.center[r.crossAxisLine],a=e[r.crossAxisStart],o=e[r.crossAxisEnd],s=Gs(n[r.crossAxisStart],n[r.crossAxisEnd]),c=s(a),l=s(o);return!c&&!l?!0:c?a<i:o>i});return r.length?r.length===1?r[0].descriptor.id:Qc({pageBorderBox:e,draggable:t,candidates:r}):null}var el=(e,t)=>zo(ws(e,t)),tl=(e,t)=>{let n=e.frame;return n?el(t,n.scroll.diff.value):t};function nl({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function rl({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var il=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:r,last:i,viewport:a,afterCritical:o})=>{let s=n.axis,c=zc(n.axis,t.displaceBy),l=c.value,u=e[s.start],d=e[s.end];return lc({draggable:t,insideDestination:r,destination:n,viewport:a,last:i,displacedBy:c,index:rl({draggable:t,closest:zs(t,r).find(e=>{let t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=uc(t,o),a=nl({displaced:i,id:t});return r?a?d<=n:u<n-l:a?d<=n+l:u<n})||null,inHomeList:Vs(t,n)})})},al=4,ol=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:i,afterCritical:a})=>{if(!r.isCombineEnabled)return null;let o=r.axis,s=zc(r.axis,e.displaceBy),c=s.value,l=t[o.start],u=t[o.end],d=zs(e,i).find(e=>{let t=e.descriptor.id,r=e.page.borderBox,i=r[o.size]/al,s=uc(t,a),d=nl({displaced:n.displaced,id:t});return s?d?u>r[o.start]+i&&u<r[o.end]-i:l>r[o.start]-c+i&&l<r[o.end]-c-i:d?u>r[o.start]+c+i&&u<r[o.end]+c-i:l>r[o.start]+i&&l<r[o.end]-i});return d?{displacedBy:s,displaced:n.displaced,at:{type:`COMBINE`,combine:{draggableId:d.descriptor.id,droppableId:r.descriptor.id}}}:null},sl=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:i,viewport:a,afterCritical:o})=>{let s=el(t.page.borderBox,e),c=$c({pageBorderBox:s,draggable:t,droppables:r});if(!c)return Ws;let l=r[c],u=Is(l.descriptor.id,n),d=tl(l,s);return ol({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:i,destination:l,insideDestination:u,afterCritical:o})||il({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:l,insideDestination:u,last:i.displaced,viewport:a,afterCritical:o})},cl=(e,t)=>({...e,[t.descriptor.id]:t}),ll=({previousImpact:e,impact:t,droppables:n})=>{let r=Kc(e),i=Kc(t);if(!r||r===i)return n;let a=n[r];return a.subject.withPlaceholder?cl(n,Uc(a)):n},ul=({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:i})=>{let a=ll({previousImpact:r,impact:i,droppables:n}),o=Kc(i);if(!o)return a;let s=n[o];return Vs(e,s)||s.subject.withPlaceholder?a:cl(a,Hc(s,e,t))},dl=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:i,scrollJumpRequest:a})=>{let o=r||e.viewport,s=n||e.dimensions,c=t||e.current.client.selection,l=gs(c,e.initial.client.selection),u={offset:l,selection:c,borderBoxCenter:Z(e.initial.client.borderBoxCenter,l)},d={selection:Z(u.selection,o.scroll.current),borderBoxCenter:Z(u.borderBoxCenter,o.scroll.current),offset:Z(u.offset,o.scroll.diff.value)},f={client:u,page:d};if(e.phase===`COLLECTING`)return{...e,dimensions:s,viewport:o,current:f};let p=s.draggables[e.critical.draggable.id],m=i||sl({pageOffset:d.offset,draggable:p,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:o,afterCritical:e.afterCritical}),h=ul({draggable:p,impact:m,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:f,dimensions:{draggables:s.draggables,droppables:h},impact:m,viewport:o,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function fl(e,t){return e.map(e=>t[e])}var pl=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:i})=>{let a=e.displaced,o=oc({afterDragging:fl(a.all,n),destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:a});return{...e,displaced:o}},ml=({impact:e,draggable:t,droppable:n,draggables:r,viewport:i,afterCritical:a})=>jc({pageBorderBoxCenter:Tc({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:a}),draggable:t,viewport:i}),hl=({state:e,dimensions:t,viewport:n})=>{e.movementMode!==`SNAP`&&q();let r=e.impact,i=n||e.viewport,a=t||e.dimensions,{draggables:o,droppables:s}=a,c=o[e.critical.draggable.id],l=Kc(r);!l&&q();let u=s[l],d=pl({impact:r,viewport:i,destination:u,draggables:o});return dl({impact:d,clientSelection:ml({impact:d,draggable:c,droppable:u,draggables:o,viewport:i,afterCritical:e.afterCritical}),state:e,dimensions:a,viewport:i})},gl=e=>({index:e.index,droppableId:e.droppableId}),_l=({draggable:e,home:t,draggables:n,viewport:r})=>{let i=zc(t.axis,e.displaceBy),a=Is(t.descriptor.id,n),o=a.indexOf(e);o===-1&&q();let s=a.slice(o+1),c=s.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),l={inVirtualList:t.descriptor.mode===`virtual`,displacedBy:i,effected:c};return{impact:{displaced:oc({afterDragging:s,destination:t,displacedBy:i,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:`REORDER`,destination:gl(e.descriptor)}},afterCritical:l}},vl=(e,t)=>({draggables:e.draggables,droppables:cl(e.droppables,t)}),yl=({draggable:e,offset:t,initialWindowScroll:n})=>{let r=qo(e.client,t),i=Jo(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:i}},bl=e=>{let t=e.frame;return!t&&q(),t},xl=({additions:e,updatedDroppables:t,viewport:n})=>{let r=n.scroll.diff.value;return e.map(e=>{let i=t[e.descriptor.droppableId],a=bl(i).scroll.diff.value;return yl({draggable:e,offset:Z(r,a),initialWindowScroll:n.scroll.initial})})},Sl=({state:e,published:t})=>{let n=t.modified.map(t=>{let n=e.dimensions.droppables[t.droppableId];return js(n,t.scroll)}),r={...e.dimensions.droppables,...Ms(n)},i=Ns(xl({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),a={...e.dimensions.draggables,...i};t.removals.forEach(e=>{delete a[e]});let o={droppables:r,draggables:a},s=Kc(e.impact),c=s?o.droppables[s]:null,l=o.draggables[e.critical.draggable.id],u=o.droppables[e.critical.droppable.id],{impact:d,afterCritical:f}=_l({draggable:l,home:u,draggables:a,viewport:e.viewport}),p=c&&c.isCombineEnabled?e.impact:d,m=sl({pageOffset:e.current.page.offset,draggable:o.draggables[e.critical.draggable.id],draggables:o.draggables,droppables:o.droppables,previousImpact:p,viewport:e.viewport,afterCritical:f}),h={...e,phase:`DRAGGING`,impact:m,onLiftImpact:d,dimensions:o,afterCritical:f,forceShouldAnimate:!1};return e.phase===`COLLECTING`?h:{...h,phase:`DROP_PENDING`,reason:e.reason,isWaiting:!1}},Cl=e=>e.movementMode===`SNAP`,wl=(e,t,n)=>{let r=vl(e.dimensions,t);return!Cl(e)||n?dl({state:e,dimensions:r}):hl({state:e,dimensions:r})};function Tl(e){return e.isDragging&&e.movementMode===`SNAP`?{...e,scrollJumpRequest:null}:e}var El={phase:`IDLE`,completed:null,shouldFlush:!1},Dl=(e=El,t)=>{if(t.type===`FLUSH`)return{...El,shouldFlush:!0};if(t.type===`INITIAL_PUBLISH`){e.phase!==`IDLE`&&q();let{critical:n,clientSelection:r,viewport:i,dimensions:a,movementMode:o}=t.payload,s=a.draggables[n.draggable.id],c=a.droppables[n.droppable.id],l={selection:r,borderBoxCenter:s.client.borderBox.center,offset:X},u={client:l,page:{selection:Z(l.selection,i.scroll.initial),borderBoxCenter:Z(l.selection,i.scroll.initial),offset:Z(l.selection,i.scroll.diff.value)}},d=Ps(a.droppables).every(e=>!e.isFixedOnPage),{impact:f,afterCritical:p}=_l({draggable:s,home:c,draggables:a.draggables,viewport:i});return{phase:`DRAGGING`,isDragging:!0,critical:n,movementMode:o,dimensions:a,initial:u,current:u,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type===`COLLECTION_STARTING`)return e.phase===`COLLECTING`||e.phase===`DROP_PENDING`?e:(e.phase!==`DRAGGING`&&q(),{...e,phase:`COLLECTING`});if(t.type===`PUBLISH_WHILE_DRAGGING`)return!(e.phase===`COLLECTING`||e.phase===`DROP_PENDING`)&&q(),Sl({state:e,published:t.payload});if(t.type===`MOVE`){if(e.phase===`DROP_PENDING`)return e;!Yc(e)&&q();let{client:n}=t.payload;return _s(n,e.current.client.selection)?e:dl({state:e,clientSelection:n,impact:Cl(e)?e.impact:null})}if(t.type===`UPDATE_DROPPABLE_SCROLL`){if(e.phase===`DROP_PENDING`||e.phase===`COLLECTING`)return Tl(e);!Yc(e)&&q();let{id:n,newScroll:r}=t.payload,i=e.dimensions.droppables[n];return i?wl(e,js(i,r),!1):e}if(t.type===`UPDATE_DROPPABLE_IS_ENABLED`){if(e.phase===`DROP_PENDING`)return e;!Yc(e)&&q();let{id:n,isEnabled:r}=t.payload,i=e.dimensions.droppables[n];return!i&&q(),i.isEnabled===r&&q(),wl(e,{...i,isEnabled:r},!0)}if(t.type===`UPDATE_DROPPABLE_IS_COMBINE_ENABLED`){if(e.phase===`DROP_PENDING`)return e;!Yc(e)&&q();let{id:n,isCombineEnabled:r}=t.payload,i=e.dimensions.droppables[n];return!i&&q(),i.isCombineEnabled===r&&q(),wl(e,{...i,isCombineEnabled:r},!0)}if(t.type===`MOVE_BY_WINDOW_SCROLL`){if(e.phase===`DROP_PENDING`||e.phase===`DROP_ANIMATING`)return e;!Yc(e)&&q(),!e.isWindowScrollAllowed&&q();let n=t.payload.newScroll;if(_s(e.viewport.scroll.current,n))return Tl(e);let r=Ec(e.viewport,n);return Cl(e)?hl({state:e,viewport:r}):dl({state:e,viewport:r})}if(t.type===`UPDATE_VIEWPORT_MAX_SCROLL`){if(!Yc(e))return e;let n=t.payload.maxScroll;if(_s(n,e.viewport.scroll.max))return e;let r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type===`MOVE_UP`||t.type===`MOVE_DOWN`||t.type===`MOVE_LEFT`||t.type===`MOVE_RIGHT`){if(e.phase===`COLLECTING`||e.phase===`DROP_PENDING`)return e;e.phase!==`DRAGGING`&&q();let n=Jc({state:e,type:t.type});return n?dl({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type===`DROP_PENDING`){let n=t.payload.reason;return e.phase!==`COLLECTING`&&q(),{...e,phase:`DROP_PENDING`,isWaiting:!0,reason:n}}if(t.type===`DROP_ANIMATE`){let{completed:n,dropDuration:r,newHomeClientOffset:i}=t.payload;return!(e.phase===`DRAGGING`||e.phase===`DROP_PENDING`)&&q(),{phase:`DROP_ANIMATING`,completed:n,dropDuration:r,newHomeClientOffset:i,dimensions:e.dimensions}}if(t.type===`DROP_COMPLETE`){let{completed:e}=t.payload;return{phase:`IDLE`,completed:e,shouldFlush:!1}}return e};function $(e,t){return e instanceof Object&&`type`in e&&e.type===t}var Ol=e=>({type:`BEFORE_INITIAL_CAPTURE`,payload:e}),kl=e=>({type:`LIFT`,payload:e}),Al=e=>({type:`INITIAL_PUBLISH`,payload:e}),jl=e=>({type:`PUBLISH_WHILE_DRAGGING`,payload:e}),Ml=()=>({type:`COLLECTION_STARTING`,payload:null}),Nl=e=>({type:`UPDATE_DROPPABLE_SCROLL`,payload:e}),Pl=e=>({type:`UPDATE_DROPPABLE_IS_ENABLED`,payload:e}),Fl=e=>({type:`UPDATE_DROPPABLE_IS_COMBINE_ENABLED`,payload:e}),Il=e=>({type:`MOVE`,payload:e}),Ll=e=>({type:`MOVE_BY_WINDOW_SCROLL`,payload:e}),Rl=e=>({type:`UPDATE_VIEWPORT_MAX_SCROLL`,payload:e}),zl=()=>({type:`MOVE_UP`,payload:null}),Bl=()=>({type:`MOVE_DOWN`,payload:null}),Vl=()=>({type:`MOVE_RIGHT`,payload:null}),Hl=()=>({type:`MOVE_LEFT`,payload:null}),Ul=()=>({type:`FLUSH`,payload:null}),Wl=e=>({type:`DROP_ANIMATE`,payload:e}),Gl=e=>({type:`DROP_COMPLETE`,payload:e}),Kl=e=>({type:`DROP`,payload:e}),ql=e=>({type:`DROP_PENDING`,payload:e}),Jl=()=>({type:`DROP_ANIMATION_FINISHED`,payload:null}),Yl=e=>({getState:t,dispatch:n})=>r=>i=>{if(!$(i,`LIFT`)){r(i);return}let{id:a,clientSelection:o,movementMode:s}=i.payload,c=t();c.phase===`DROP_ANIMATING`&&n(Gl({completed:c.completed})),t().phase!==`IDLE`&&q(),n(Ul()),n(Ol({draggableId:a,movementMode:s}));let l={draggableId:a,scrollOptions:{shouldPublishImmediately:s===`SNAP`}},{critical:u,dimensions:d,viewport:f}=e.startPublishing(l);n(Al({critical:u,dimensions:d,clientSelection:o,movementMode:s,viewport:f}))},Xl=e=>()=>t=>n=>{$(n,`INITIAL_PUBLISH`)&&e.dragging(),$(n,`DROP_ANIMATE`)&&e.dropping(n.payload.completed.result.reason),($(n,`FLUSH`)||$(n,`DROP_COMPLETE`))&&e.resting(),t(n)},Zl={outOfTheWay:`cubic-bezier(0.2, 0, 0, 1)`,drop:`cubic-bezier(.2,1,.1,1)`},Ql={opacity:{drop:0,combining:.7},scale:{drop:.75}},$l={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},eu=`${$l.outOfTheWay}s ${Zl.outOfTheWay}`,tu={fluid:`opacity ${eu}`,snap:`transform ${eu}, opacity ${eu}`,drop:e=>{let t=`${e}s ${Zl.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${eu}`,placeholder:`height ${eu}, width ${eu}, margin ${eu}`},nu=e=>_s(e,X)?void 0:`translate(${e.x}px, ${e.y}px)`,ru={moveTo:nu,drop:(e,t)=>{let n=nu(e);if(n)return t?`${n} scale(${Ql.scale.drop})`:n}},{minDropTime:iu,maxDropTime:au}=$l,ou=au-iu,su=1500,cu=.6,lu=({current:e,destination:t,reason:n})=>{let r=bs(e,t);if(r<=0)return iu;if(r>=su)return au;let i=iu+r/su*ou,a=n===`CANCEL`?i*cu:i;return Number(a.toFixed(2))},uu=({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:i})=>{let{draggables:a,droppables:o}=n,s=Kc(e),c=s?o[s]:null,l=o[t.descriptor.droppableId];return gs(ml({impact:e,draggable:t,draggables:a,afterCritical:i,droppable:c||l,viewport:r}),t.client.borderBox.center)},du=({draggables:e,reason:t,lastImpact:n,home:r,viewport:i,onLiftImpact:a})=>!n.at||t!==`DROP`?{impact:pl({draggables:e,impact:a,destination:r,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:n.at.type===`REORDER`?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:Us},didDropInsideDroppable:!0},fu=({getState:e,dispatch:t})=>n=>r=>{if(!$(r,`DROP`)){n(r);return}let i=e(),a=r.payload.reason;if(i.phase===`COLLECTING`){t(ql({reason:a}));return}if(i.phase===`IDLE`)return;i.phase===`DROP_PENDING`&&i.isWaiting&&q(),!(i.phase===`DRAGGING`||i.phase===`DROP_PENDING`)&&q();let o=i.critical,s=i.dimensions,c=s.draggables[i.critical.draggable.id],{impact:l,didDropInsideDroppable:u}=du({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=u?Ls(l):null,f=u?Rs(l):null,p={index:o.draggable.index,droppableId:o.droppable.id},m={draggableId:c.descriptor.id,type:c.descriptor.type,source:p,reason:a,mode:i.movementMode,destination:d,combine:f},h=uu({impact:l,draggable:c,dimensions:s,viewport:i.viewport,afterCritical:i.afterCritical}),g={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:l};if(!(!_s(i.current.client.offset,h)||m.combine)){t(Gl({completed:g}));return}t(Wl({newHomeClientOffset:h,dropDuration:lu({current:i.current.client.offset,destination:h,reason:a}),completed:g}))},pu=()=>({x:window.pageXOffset,y:window.pageYOffset});function mu(e){return{eventName:`scroll`,options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function hu({onWindowScroll:e}){function t(){e(pu())}let n=Zo(t),r=mu(n),i=es;function a(){return i!==es}function o(){a()&&q(),i=ns(window,[r])}function s(){!a()&&q(),n.cancel(),i(),i=es}return{start:o,stop:s,isActive:a}}var gu=e=>$(e,`DROP_COMPLETE`)||$(e,`DROP_ANIMATE`)||$(e,`FLUSH`),_u=e=>{let t=hu({onWindowScroll:t=>{e.dispatch(Ll({newScroll:t}))}});return e=>n=>{!t.isActive()&&$(n,`INITIAL_PUBLISH`)&&t.start(),t.isActive()&&gu(n)&&t.stop(),e(n)}},vu=e=>{let t=!1,n=!1,r=setTimeout(()=>{n=!0}),i=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=()=>t,i},yu=()=>{let e=[],t=t=>{let n=e.findIndex(e=>e.timerId===t);n===-1&&q();let[r]=e.splice(n,1);r.callback()};return{add:n=>{let r=setTimeout(()=>t(r)),i={timerId:r,callback:n};e.push(i)},flush:()=>{if(!e.length)return;let t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}},bu=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,xu=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,Su=(e,t)=>{if(e===t)return!0;let n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},Cu=(e,t)=>{t()},wu=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Tu(e,t,n,r){if(!e){n(r(t));return}let i=vu(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}var Eu=(e,t)=>{let n=yu(),r=null,i=(t,n)=>{r&&q(),Cu(`onBeforeCapture`,()=>{let r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})})},a=(t,n)=>{r&&q(),Cu(`onBeforeDragStart`,()=>{let r=e().onBeforeDragStart;r&&r(wu(t,n))})},o=(i,a)=>{r&&q();let o=wu(i,a);r={mode:a,lastCritical:i,lastLocation:o.source,lastCombine:null},n.add(()=>{Cu(`onDragStart`,()=>Tu(e().onDragStart,o,t,ps.onDragStart))})},s=(i,a)=>{let o=Ls(a),s=Rs(a);!r&&q();let c=!Su(i,r.lastCritical);c&&(r.lastCritical=i);let l=!bu(r.lastLocation,o);l&&(r.lastLocation=o);let u=!xu(r.lastCombine,s);if(u&&(r.lastCombine=s),!c&&!l&&!u)return;let d={...wu(i,r.mode),combine:s,destination:o};n.add(()=>{Cu(`onDragUpdate`,()=>Tu(e().onDragUpdate,d,t,ps.onDragUpdate))})},c=()=>{!r&&q(),n.flush()},l=n=>{!r&&q(),r=null,Cu(`onDragEnd`,()=>Tu(e().onDragEnd,n,t,ps.onDragEnd))};return{beforeCapture:i,beforeStart:a,start:o,update:s,flush:c,drop:l,abort:()=>{r&&l({...wu(r.lastCritical,r.mode),combine:null,destination:null,reason:`CANCEL`})}}},Du=(e,t)=>{let n=Eu(e,t);return e=>t=>r=>{if($(r,`BEFORE_INITIAL_CAPTURE`)){n.beforeCapture(r.payload.draggableId,r.payload.movementMode);return}if($(r,`INITIAL_PUBLISH`)){let e=r.payload.critical;n.beforeStart(e,r.payload.movementMode),t(r),n.start(e,r.payload.movementMode);return}if($(r,`DROP_COMPLETE`)){let e=r.payload.completed.result;n.flush(),t(r),n.drop(e);return}if(t(r),$(r,`FLUSH`)){n.abort();return}let i=e.getState();i.phase===`DRAGGING`&&n.update(i.critical,i.impact)}},Ou=e=>t=>n=>{if(!$(n,`DROP_ANIMATION_FINISHED`)){t(n);return}let r=e.getState();r.phase!==`DROP_ANIMATING`&&q(),e.dispatch(Gl({completed:r.completed}))},ku=e=>{let t=null,n=null;function r(){n&&=(cancelAnimationFrame(n),null),t&&=(t(),null)}return i=>a=>{if(($(a,`FLUSH`)||$(a,`DROP_COMPLETE`)||$(a,`DROP_ANIMATION_FINISHED`))&&r(),i(a),!$(a,`DROP_ANIMATE`))return;let o={eventName:`scroll`,options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase===`DROP_ANIMATING`&&e.dispatch(Jl())}};n=requestAnimationFrame(()=>{n=null,t=ns(window,[o])})}},Au=e=>()=>t=>n=>{($(n,`DROP_COMPLETE`)||$(n,`FLUSH`)||$(n,`DROP_ANIMATE`))&&e.stopPublishing(),t(n)},ju=e=>{let t=!1;return()=>n=>r=>{if($(r,`INITIAL_PUBLISH`)){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),t){if($(r,`FLUSH`)){t=!1,e.tryRestoreFocusRecorded();return}if($(r,`DROP_COMPLETE`)){t=!1;let n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}},Mu=e=>$(e,`DROP_COMPLETE`)||$(e,`DROP_ANIMATE`)||$(e,`FLUSH`),Nu=e=>t=>n=>r=>{if(Mu(r)){e.stop(),n(r);return}if($(r,`INITIAL_PUBLISH`)){n(r);let i=t.getState();i.phase!==`DRAGGING`&&q(),e.start(i);return}n(r),e.scroll(t.getState())},Pu=e=>t=>n=>{if(t(n),!$(n,`PUBLISH_WHILE_DRAGGING`))return;let r=e.getState();r.phase===`DROP_PENDING`&&(r.isWaiting||e.dispatch(Kl({reason:r.reason})))},Fu=Ca,Iu=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:i,autoScroller:a})=>ba(Dl,Fu(wa(Xl(n),Au(e),Yl(e),fu,Ou,ku,Pu,Nu(a),_u,ju(t),Du(r,i)))),Lu=()=>({additions:{},removals:{},modified:{}});function Ru({registry:e,callbacks:t}){let n=Lu(),r=null,i=()=>{r||=(t.collectionStarting(),requestAnimationFrame(()=>{r=null;let{additions:i,removals:a,modified:o}=n,s=Object.keys(i).map(t=>e.draggable.getById(t).getDimension(X)).sort((e,t)=>e.descriptor.index-t.descriptor.index),c=Object.keys(o).map(t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()})),l={additions:s,removals:Object.keys(a),modified:c};n=Lu(),t.publish(l)}))};return{add:e=>{let t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],i()},remove:e=>{let t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],i()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n=Lu())}}}var zu=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{let i=gs({x:t,y:e},{x:r,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Bu=()=>{let e=document.documentElement;return!e&&q(),e},Vu=()=>{let e=Bu();return zu({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Hu=()=>{let e=pu(),t=Vu(),n=e.y,r=e.x,i=Bu(),a=i.clientWidth,o=i.clientHeight;return{frame:zo({top:n,left:r,right:r+a,bottom:n+o}),scroll:{initial:e,current:e,max:t,diff:{value:X,displacement:X}}}},Uu=({critical:e,scrollOptions:t,registry:n})=>{let r=Hu(),i=r.scroll.current,a=e.droppable,o=n.droppable.getAllByType(a.type).map(e=>e.callbacks.getDimensionAndWatchScroll(i,t));return{dimensions:{draggables:Ns(n.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(i))),droppables:Ms(o)},critical:e,viewport:r}};function Wu(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!==`virtual`)}var Gu=(e,t)=>{let n=null,r=Ru({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=(r,i)=>{!e.droppable.exists(r)&&q(),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},a=(r,i)=>{n&&(!e.droppable.exists(r)&&q(),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},o=(r,i)=>{n&&(!e.droppable.exists(r)&&q(),t.updateDroppableScroll({id:r,newScroll:i}))},s=(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},c=()=>{if(!n)return;r.stop();let t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),n.unsubscribe(),n=null},l=t=>{!n&&q();let i=n.critical.draggable;t.type===`ADDITION`&&Wu(e,i,t.value)&&r.add(t.value),t.type===`REMOVAL`&&Wu(e,i,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:a,scrollDroppable:s,updateDroppableScroll:o,startPublishing:t=>{n&&q();let r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor};return n={critical:a,unsubscribe:e.subscribe(l)},Uu({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:c}},Ku=(e,t)=>e.phase===`IDLE`?!0:e.phase!==`DROP_ANIMATING`||e.completed.result.draggableId===t?!1:e.completed.result.reason===`DROP`,qu=e=>{window.scrollBy(e.x,e.y)},Ju=Q(e=>Ps(e).filter(e=>!(!e.isEnabled||!e.frame))),Yu=(e,t)=>Ju(t).find(t=>(!t.frame&&q(),Xc(t.frame.pageMarginBox)(e)))||null,Xu=({center:e,destination:t,droppables:n})=>{if(t){let e=n[t];return e.frame?e:null}return Yu(e,n)},Zu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1},Qu=(e,t,n=()=>Zu)=>{let r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}},$u=({startOfRange:e,endOfRange:t,current:n})=>{let r=t-e;return r===0?0:(n-e)/r},ed=1,td=(e,t,n=()=>Zu)=>{let r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return ed;let i=1-$u({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=r.maxPixelScroll*r.ease(i);return Math.ceil(a)},nd=(e,t,n)=>{let r=n(),i=r.durationDampening.accelerateAt,a=r.durationDampening.stopDampeningAt,o=t,s=a,c=Date.now()-o;if(c>=a)return e;if(c<i)return ed;let l=$u({startOfRange:i,endOfRange:s,current:c}),u=e*r.ease(l);return Math.ceil(u)},rd=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let a=td(e,t,i);return a===0?0:r?Math.max(nd(a,n,i),ed):a},id=({container:e,distanceToEdges:t,dragStartTime:n,axis:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{let o=Qu(e,r,a);return t[r.end]<t[r.start]?rd({distanceToEdge:t[r.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a}):-1*rd({distanceToEdge:t[r.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})},ad=({container:e,subject:t,proposedScroll:n})=>{let r=t.height>e.height,i=t.width>e.width;return!i&&!r?n:i&&r?null:{x:i?0:n.x,y:r?0:n.y}},od=Ss(e=>e===0?0:e),sd=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{let o={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},s=id({container:t,distanceToEdges:o,dragStartTime:e,axis:Js,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),c=od({x:id({container:t,distanceToEdges:o,dragStartTime:e,axis:Ys,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),y:s});if(_s(c,X))return null;let l=ad({container:t,subject:n,proposedScroll:c});return l?_s(l,X)?null:l:null},cd=Ss(e=>e===0?0:e>0?1:-1),ld=(()=>{let e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:n,change:r})=>{let i=Z(t,r),a={x:e(i.x,n.x),y:e(i.y,n.y)};return _s(a,X)?null:a}})(),ud=({max:e,current:t,change:n})=>{let r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=cd(n),a=ld({max:r,current:t,change:i});return!a||i.x!==0&&a.x===0||i.y!==0&&a.y===0},dd=(e,t)=>ud({current:e.scroll.current,max:e.scroll.max,change:t}),fd=(e,t)=>{if(!dd(e,t))return null;let n=e.scroll.max,r=e.scroll.current;return ld({current:r,max:n,change:t})},pd=(e,t)=>{let n=e.frame;return n?ud({current:n.scroll.current,max:n.scroll.max,change:t}):!1},md=(e,t)=>{let n=e.frame;return!n||!pd(e,t)?null:ld({current:n.scroll.current,max:n.scroll.max,change:t})},hd=({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{let o=sd({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return o&&dd(e,o)?o:null},gd=({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{let o=e.frame;if(!o)return null;let s=sd({dragStartTime:r,container:o.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return s&&pd(e,s)?s:null},_d=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:i,getAutoScrollerOptions:a})=>{let o=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){let i=e.viewport,c=hd({dragStartTime:t,viewport:i,subject:s,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});if(c){r(c);return}}let c=Xu({center:o,destination:Kc(e.impact),droppables:e.dimensions.droppables});if(!c)return;let l=gd({dragStartTime:t,droppable:c,subject:s,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});l&&i(c.descriptor.id,l)},vd=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>Zu})=>{let r=Zo(e),i=Zo(t),a=null,o=e=>{!a&&q();let{shouldUseTimeDampening:t,dragStartTime:o}=a;_d({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:o,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{a&&q();let t=Date.now(),r=!1,i=()=>{r=!0};_d({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,getAutoScrollerOptions:n}),a={dragStartTime:t,shouldUseTimeDampening:r},r&&o(e)},stop:()=>{a&&=(r.cancel(),i.cancel(),null)},scroll:o}},yd=({move:e,scrollDroppable:t,scrollWindow:n})=>{let r=(t,n)=>{e({client:Z(t.current.client.selection,n)})},i=(e,n)=>{if(!pd(e,n))return n;let r=md(e,n);if(!r)return t(e.descriptor.id,n),null;let i=gs(n,r);return t(e.descriptor.id,i),gs(n,i)},a=(e,t,r)=>{if(!e||!dd(t,r))return r;let i=fd(t,r);if(!i)return n(r),null;let a=gs(r,i);return n(a),gs(r,a)};return e=>{let t=e.scrollJumpRequest;if(!t)return;let n=Kc(e.impact);!n&&q();let o=i(e.dimensions.droppables[n],t);if(!o)return;let s=e.viewport,c=a(e.isWindowScrollAllowed,s,o);c&&r(e,c)}},bd=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{let i=vd({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),a=yd({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{if(!(r().disabled||e.phase!==`DRAGGING`)){if(e.movementMode===`FLUID`){i.scroll(e);return}e.scrollJumpRequest&&a(e)}},start:i.start,stop:i.stop}},xd=`data-rfd`,Sd=(()=>{let e=`${xd}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Cd=(()=>{let e=`${xd}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),wd=(()=>{let e=`${xd}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Td={contextId:`${xd}-scroll-container-context-id`},Ed=e=>t=>`[${t}="${e}"]`,Dd=(e,t)=>e.map(e=>{let n=e.styles[t];return n?`${e.selector} { ${n} }`:``}).join(` `),Od=`pointer-events: none;`,kd=e=>{let t=Ed(e),n=(()=>{let e=`
82
+ cursor: -webkit-grab;
83
+ cursor: grab;
84
+ `;return{selector:t(Sd.contextId),styles:{always:`
85
+ -webkit-touch-callout: none;
86
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
87
+ touch-action: manipulation;
88
+ `,resting:e,dragging:Od,dropAnimating:e}}})(),r=[(()=>{let e=`
89
+ transition: ${tu.outOfTheWay};
90
+ `;return{selector:t(Cd.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(wd.contextId),styles:{always:`overflow-anchor: none;`}},{selector:`body`,styles:{dragging:`
91
+ cursor: grabbing;
92
+ cursor: -webkit-grabbing;
93
+ user-select: none;
94
+ -webkit-user-select: none;
95
+ -moz-user-select: none;
96
+ -ms-user-select: none;
97
+ overflow-anchor: none;
98
+ `}}];return{always:Dd(r,`always`),resting:Dd(r,`resting`),dragging:Dd(r,`dragging`),dropAnimating:Dd(r,`dropAnimating`),userCancel:Dd(r,`userCancel`)}},Ad=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?G.useLayoutEffect:G.useEffect,jd=()=>{let e=document.querySelector(`head`);return!e&&q(),e},Md=e=>{let t=document.createElement(`style`);return e&&t.setAttribute(`nonce`,e),t.type=`text/css`,t};function Nd(e,t){let n=J(()=>kd(e),[e]),r=(0,G.useRef)(null),i=(0,G.useRef)(null),a=Y(Q(e=>{let t=i.current;!t&&q(),t.textContent=e}),[]),o=Y(e=>{let t=r.current;!t&&q(),t.textContent=e},[]);Ad(()=>{!(!r.current&&!i.current)&&q();let s=Md(t),c=Md(t);return r.current=s,i.current=c,s.setAttribute(`${xd}-always`,e),c.setAttribute(`${xd}-dynamic`,e),jd().appendChild(s),jd().appendChild(c),o(n.always),a(n.resting),()=>{let e=e=>{let t=e.current;!t&&q(),jd().removeChild(t),e.current=null};e(r),e(i)}},[t,o,a,n.always,n.resting,e]);let s=Y(()=>a(n.dragging),[a,n.dragging]),c=Y(e=>{if(e===`DROP`){a(n.dropAnimating);return}a(n.userCancel)},[a,n.dropAnimating,n.userCancel]),l=Y(()=>{i.current&&a(n.resting)},[a,n.resting]);return J(()=>({dragging:s,dropping:c,resting:l}),[s,c,l])}function Pd(e,t){return Array.from(e.querySelectorAll(t))}var Fd=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Id(e){return e instanceof Fd(e).HTMLElement}function Ld(e,t){let n=`[${Sd.contextId}="${e}"]`,r=Pd(document,n);if(!r.length)return null;let i=r.find(e=>e.getAttribute(Sd.draggableId)===t);return!i||!Id(i)?null:i}function Rd(e){let t=(0,G.useRef)({}),n=(0,G.useRef)(null),r=(0,G.useRef)(null),i=(0,G.useRef)(!1),a=Y(function(e,n){let r={id:e,focus:n};return t.current[e]=r,function(){let n=t.current;n[e]!==r&&delete n[e]}},[]),o=Y(function(t){let n=Ld(e,t);n&&n!==document.activeElement&&n.focus()},[e]),s=Y(function(e,t){n.current===e&&(n.current=t)},[]),c=Y(function(){r.current||i.current&&(r.current=requestAnimationFrame(()=>{r.current=null;let e=n.current;e&&o(e)}))},[o]),l=Y(function(e){n.current=null;let t=document.activeElement;t&&t.getAttribute(Sd.draggableId)===e&&(n.current=e)},[]);return Ad(()=>(i.current=!0,function(){i.current=!1;let e=r.current;e&&cancelAnimationFrame(e)}),[]),J(()=>({register:a,tryRecordFocus:l,tryRestoreFocusRecorded:c,tryShiftRecord:s}),[a,l,c,s])}function zd(){let e={draggables:{},droppables:{}},t=[];function n(e){return t.push(e),function(){let n=t.indexOf(e);n!==-1&&t.splice(n,1)}}function r(e){t.length&&t.forEach(t=>t(e))}function i(t){return e.draggables[t]||null}function a(e){let t=i(e);return!t&&q(),t}let o={register:t=>{e.draggables[t.descriptor.id]=t,r({type:`ADDITION`,value:t})},update:(t,n)=>{let r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{let n=t.descriptor.id,a=i(n);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[n],e.droppables[t.descriptor.droppableId]&&r({type:`REMOVAL`,value:t}))},getById:a,findById:i,exists:e=>!!i(e),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)};function s(t){return e.droppables[t]||null}function c(e){let t=s(e);return!t&&q(),t}let l={register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{let n=s(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:c,findById:s,exists:e=>!!s(e),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:l,subscribe:n,clean:u}}function Bd(){let e=J(zd,[]);return(0,G.useEffect)(()=>function(){e.clean()},[e]),e}var Vd=G.createContext(null),Hd=()=>{let e=document.body;return!e&&q(),e},Ud={position:`absolute`,width:`1px`,height:`1px`,margin:`-1px`,border:`0`,padding:`0`,overflow:`hidden`,clip:`rect(0 0 0 0)`,"clip-path":`inset(100%)`},Wd=e=>`rfd-announcement-${e}`;function Gd(e){let t=J(()=>Wd(e),[e]),n=(0,G.useRef)(null);return(0,G.useEffect)(function(){let e=document.createElement(`div`);return n.current=e,e.id=t,e.setAttribute(`aria-live`,`assertive`),e.setAttribute(`aria-atomic`,`true`),Qo(e.style,Ud),Hd().appendChild(e),function(){setTimeout(function(){let t=Hd();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)})}},[t]),Y(e=>{let t=n.current;if(t){t.textContent=e;return}},[])}var Kd={separator:`::`};function qd(e,t=Kd){let n=G.useId();return J(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}function Jd({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function Yd({contextId:e,text:t}){let n=qd(`hidden-text`,{separator:`-`}),r=J(()=>Jd({contextId:e,uniqueId:n}),[n,e]);return(0,G.useEffect)(function(){let e=document.createElement(`div`);return e.id=r,e.textContent=t,e.style.display=`none`,Hd().appendChild(e),function(){let t=Hd();t.contains(e)&&t.removeChild(e)}},[r,t]),r}var Xd=G.createContext(null);function Zd(e){let t=(0,G.useRef)(e);return(0,G.useEffect)(()=>{t.current=e}),t}function Qd(){let e=null;function t(){return!!e}function n(t){return t===e}function r(t){e&&q();let n={abandon:t};return e=n,n}function i(){!e&&q(),e=null}function a(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:a}}function $d(e){return e.phase===`IDLE`||e.phase===`DROP_ANIMATING`?!1:e.isDragging}var ef=9,tf=13,nf=27,rf=32,af=33,of=34,sf=35,cf=36,lf=37,uf=38,df=39,ff=40,pf={[tf]:!0,[ef]:!0},mf=e=>{pf[e.keyCode]&&e.preventDefault()},hf=(()=>{let e=`visibilitychange`;return typeof document>`u`?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(e=>`on${e}`in document)||e})(),gf=0,_f=5;function vf(e,t){return Math.abs(t.x-e.x)>=_f||Math.abs(t.y-e.y)>=_f}var yf={type:`IDLE`};function bf({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:`mousemove`,fn:e=>{let{button:t,clientX:i,clientY:a}=e;if(t!==gf)return;let o={x:i,y:a},s=n();if(s.type===`DRAGGING`){e.preventDefault(),s.actions.move(o);return}s.type!==`PENDING`&&q();let c=s.point;vf(c,o)&&(e.preventDefault(),r({type:`DRAGGING`,actions:s.actions.fluidLift(o)}))}},{eventName:`mouseup`,fn:r=>{let i=n();if(i.type!==`DRAGGING`){e();return}r.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:`mousedown`,fn:t=>{n().type===`DRAGGING`&&t.preventDefault(),e()}},{eventName:`keydown`,fn:t=>{if(n().type===`PENDING`){e();return}if(t.keyCode===nf){t.preventDefault(),e();return}mf(t)}},{eventName:`resize`,fn:e},{eventName:`scroll`,options:{passive:!0,capture:!1},fn:()=>{n().type===`PENDING`&&e()}},{eventName:`webkitmouseforcedown`,fn:t=>{let r=n();if(r.type===`IDLE`&&q(),r.actions.shouldRespectForcePress()){e();return}t.preventDefault()}},{eventName:hf,fn:e}]}function xf(e){let t=(0,G.useRef)(yf),n=(0,G.useRef)(es),r=J(()=>({eventName:`mousedown`,fn:function(t){if(t.defaultPrevented||t.button!==gf||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;let r=e.findClosestDraggableId(t);if(!r)return;let i=e.tryGetLock(r,o,{sourceEvent:t});if(!i)return;t.preventDefault();let a={x:t.clientX,y:t.clientY};n.current(),l(i,a)}}),[e]),i=J(()=>({eventName:`webkitmouseforcewillbegin`,fn:t=>{if(t.defaultPrevented)return;let n=e.findClosestDraggableId(t);if(!n)return;let r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}),[e]),a=Y(function(){n.current=ns(window,[i,r],{passive:!1,capture:!0})},[i,r]),o=Y(()=>{t.current.type!==`IDLE`&&(t.current=yf,n.current(),a())},[a]),s=Y(()=>{let e=t.current;o(),e.type===`DRAGGING`&&e.actions.cancel({shouldBlockNextClick:!0}),e.type===`PENDING`&&e.actions.abort()},[o]),c=Y(function(){let e={capture:!0,passive:!1},r=bf({cancel:s,completed:o,getPhase:()=>t.current,setPhase:e=>{t.current=e}});n.current=ns(window,r,e)},[s,o]),l=Y(function(e,n){t.current.type!==`IDLE`&&q(),t.current={type:`PENDING`,point:n,actions:e},c()},[c]);Ad(function(){return a(),function(){n.current()}},[a])}function Sf(){}var Cf={[of]:!0,[af]:!0,[cf]:!0,[sf]:!0};function wf(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:`keydown`,fn:t=>{if(t.keyCode===nf){t.preventDefault(),n();return}if(t.keyCode===rf){t.preventDefault(),r();return}if(t.keyCode===ff){t.preventDefault(),e.moveDown();return}if(t.keyCode===uf){t.preventDefault(),e.moveUp();return}if(t.keyCode===df){t.preventDefault(),e.moveRight();return}if(t.keyCode===lf){t.preventDefault(),e.moveLeft();return}if(Cf[t.keyCode]){t.preventDefault();return}mf(t)}},{eventName:`mousedown`,fn:n},{eventName:`mouseup`,fn:n},{eventName:`click`,fn:n},{eventName:`touchstart`,fn:n},{eventName:`resize`,fn:n},{eventName:`wheel`,fn:n,options:{passive:!0}},{eventName:hf,fn:n}]}function Tf(e){let t=(0,G.useRef)(Sf),n=J(()=>({eventName:`keydown`,fn:function(n){if(n.defaultPrevented||n.keyCode!==rf)return;let i=e.findClosestDraggableId(n);if(!i)return;let a=e.tryGetLock(i,c,{sourceEvent:n});if(!a)return;n.preventDefault();let o=!0,s=a.snapLift();t.current();function c(){!o&&q(),o=!1,t.current(),r()}t.current=ns(window,wf(s,c),{capture:!0,passive:!1})}}),[e]),r=Y(function(){t.current=ns(window,[n],{passive:!1,capture:!0})},[n]);Ad(function(){return r(),function(){t.current()}},[r])}var Ef={type:`IDLE`},Df=120,Of=.15;function kf({cancel:e,getPhase:t}){return[{eventName:`orientationchange`,fn:e},{eventName:`resize`,fn:e},{eventName:`contextmenu`,fn:e=>{e.preventDefault()}},{eventName:`keydown`,fn:n=>{if(t().type!==`DRAGGING`){e();return}n.keyCode===nf&&n.preventDefault(),e()}},{eventName:hf,fn:e}]}function Af({cancel:e,completed:t,getPhase:n}){return[{eventName:`touchmove`,options:{capture:!1},fn:t=>{let r=n();if(r.type!==`DRAGGING`){e();return}r.hasMoved=!0;let{clientX:i,clientY:a}=t.touches[0],o={x:i,y:a};t.preventDefault(),r.actions.move(o)}},{eventName:`touchend`,fn:r=>{let i=n();if(i.type!==`DRAGGING`){e();return}r.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:`touchcancel`,fn:t=>{if(n().type!==`DRAGGING`){e();return}t.preventDefault(),e()}},{eventName:`touchforcechange`,fn:t=>{let r=n();r.type===`IDLE`&&q();let i=t.touches[0];if(!i||!(i.force>=Of))return;let a=r.actions.shouldRespectForcePress();if(r.type===`PENDING`){a&&e();return}if(a){if(r.hasMoved){t.preventDefault();return}e();return}t.preventDefault()}},{eventName:hf,fn:e}]}function jf(e){let t=(0,G.useRef)(Ef),n=(0,G.useRef)(es),r=Y(function(){return t.current},[]),i=Y(function(e){t.current=e},[]),a=J(()=>({eventName:`touchstart`,fn:function(t){if(t.defaultPrevented)return;let r=e.findClosestDraggableId(t);if(!r)return;let i=e.tryGetLock(r,s,{sourceEvent:t});if(!i)return;let{clientX:a,clientY:o}=t.touches[0],c={x:a,y:o};n.current(),d(i,c)}}),[e]),o=Y(function(){n.current=ns(window,[a],{capture:!0,passive:!1})},[a]),s=Y(()=>{let e=t.current;e.type!==`IDLE`&&(e.type===`PENDING`&&clearTimeout(e.longPressTimerId),i(Ef),n.current(),o())},[o,i]),c=Y(()=>{let e=t.current;s(),e.type===`DRAGGING`&&e.actions.cancel({shouldBlockNextClick:!0}),e.type===`PENDING`&&e.actions.abort()},[s]),l=Y(function(){let e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:r},i=ns(window,Af(t),e),a=ns(window,kf(t),e);n.current=function(){i(),a()}},[c,r,s]),u=Y(function(){let e=r();e.type!==`PENDING`&&q(),i({type:`DRAGGING`,actions:e.actions.fluidLift(e.point),hasMoved:!1})},[r,i]),d=Y(function(e,t){r().type!==`IDLE`&&q(),i({type:`PENDING`,point:t,actions:e,longPressTimerId:setTimeout(u,Df)}),l()},[l,r,i,u]);Ad(function(){return o(),function(){n.current();let e=r();e.type===`PENDING`&&(clearTimeout(e.longPressTimerId),i(Ef))}},[r,o,i]),Ad(function(){return ns(window,[{eventName:`touchmove`,fn:()=>{},options:{capture:!1,passive:!1}}])},[])}var Mf=[`input`,`button`,`textarea`,`select`,`option`,`optgroup`,`video`,`audio`];function Nf(e,t){if(t==null)return!1;if(Mf.includes(t.tagName.toLowerCase()))return!0;let n=t.getAttribute(`contenteditable`);return n===`true`||n===``?!0:t===e?!1:Nf(e,t.parentElement)}function Pf(e,t){let n=t.target;return Id(n)?Nf(e,n):!1}var Ff=e=>zo(e.getBoundingClientRect()).center;function If(e){return e instanceof Fd(e).Element}var Lf=(()=>{let e=`matches`;return typeof document>`u`?e:[e,`msMatchesSelector`,`webkitMatchesSelector`].find(e=>e in Element.prototype)||e})();function Rf(e,t){return e==null?null:e[Lf](t)?e:Rf(e.parentElement,t)}function zf(e,t){return e.closest?e.closest(t):Rf(e,t)}function Bf(e){return`[${Sd.contextId}="${e}"]`}function Vf(e,t){let n=t.target;if(!If(n))return null;let r=zf(n,Bf(e));return!r||!Id(r)?null:r}function Hf(e,t){let n=Vf(e,t);return n?n.getAttribute(Sd.draggableId):null}function Uf(e,t){let n=`[${Cd.contextId}="${e}"]`,r=Pd(document,n).find(e=>e.getAttribute(Cd.id)===t);return!r||!Id(r)?null:r}function Wf(e){e.preventDefault()}function Gf({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!(!n()||e!==t)}function Kf({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;let i=n.draggable.findById(r);return!(!i||!i.options.isEnabled||!Ku(t.getState(),r))}function qf({lockAPI:e,contextId:t,store:n,registry:r,draggableId:i,forceSensorStop:a,sourceEvent:o}){if(!Kf({lockAPI:e,store:n,registry:r,draggableId:i}))return null;let s=r.draggable.getById(i),c=Uf(t,s.descriptor.id);if(!c||o&&!s.options.canDragInteractiveElements&&Pf(c,o))return null;let l=e.claim(a||es),u=`PRE_DRAG`;function d(){return s.options.shouldRespectForcePress}function f(){return e.isActive(l)}function p(e,t){Gf({expected:e,phase:u,isLockActive:f,shouldWarn:!0})&&n.dispatch(t())}let m=p.bind(null,`DRAGGING`);function h(t){function r(){e.release(),u=`COMPLETED`}u!==`PRE_DRAG`&&(r(),q()),n.dispatch(kl(t.liftActionArgs)),u=`DRAGGING`;function i(e,i={shouldBlockNextClick:!1}){if(t.cleanup(),i.shouldBlockNextClick){let e=ns(window,[{eventName:`click`,fn:Wf,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}r(),n.dispatch(Kl({reason:e}))}return{isActive:()=>Gf({expected:`DRAGGING`,phase:u,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:d,drop:e=>i(`DROP`,e),cancel:e=>i(`CANCEL`,e),...t.actions}}function g(e){let t=Zo(e=>{m(()=>Il({client:e}))});return{...h({liftActionArgs:{id:i,clientSelection:e,movementMode:`FLUID`},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}}function _(){return h({liftActionArgs:{id:i,clientSelection:Ff(c),movementMode:`SNAP`},cleanup:es,actions:{moveUp:()=>m(zl),moveRight:()=>m(Vl),moveDown:()=>m(Bl),moveLeft:()=>m(Hl)}})}function v(){Gf({expected:`PRE_DRAG`,phase:u,isLockActive:f,shouldWarn:!0})&&e.release()}return{isActive:()=>Gf({expected:`PRE_DRAG`,phase:u,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:g,snapLift:_,abort:v}}var Jf=[xf,Tf,jf];function Yf({contextId:e,store:t,registry:n,customSensors:r,enableDefaultSensors:i}){let a=[...i?Jf:[],...r||[]],o=(0,G.useState)(()=>Qd())[0],s=Y(function(e,t){$d(e)&&!$d(t)&&o.tryAbandon()},[o]);Ad(function(){let e=t.getState();return t.subscribe(()=>{let n=t.getState();s(e,n),e=n})},[o,t,s]),Ad(()=>o.tryAbandon,[o.tryAbandon]);let c=Y(e=>Kf({lockAPI:o,registry:n,store:t,draggableId:e}),[o,n,t]),l=Y((r,i,a)=>qf({lockAPI:o,registry:n,contextId:e,store:t,draggableId:r,forceSensorStop:i||null,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null}),[e,o,n,t]),u=Y(t=>Hf(e,t),[e]),d=Y(e=>{let t=n.draggable.findById(e);return t?t.options:null},[n.draggable]),f=Y(function(){o.isClaimed()&&(o.tryAbandon(),t.getState().phase!==`IDLE`&&t.dispatch(Ul()))},[o,t]),p=Y(()=>o.isClaimed(),[o]),m=J(()=>({canGetLock:c,tryGetLock:l,findClosestDraggableId:u,findOptionsForDraggable:d,tryReleaseLock:f,isLockClaimed:p}),[c,l,u,d,f,p]);for(let e=0;e<a.length;e++)a[e](m)}var Xf=e=>({onBeforeCapture:t=>{(0,ma.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),Zf=e=>({...Zu,...e.autoScrollerOptions,durationDampening:{...Zu.durationDampening,...e.autoScrollerOptions}});function Qf(e){return!e.current&&q(),e.current}function $f(e){let{contextId:t,setCallbacks:n,sensors:r,nonce:i,dragHandleUsageInstructions:a}=e,o=(0,G.useRef)(null),s=Zd(e),c=Y(()=>Xf(s.current),[s]),l=Y(()=>Zf(s.current),[s]),u=Gd(t),d=Yd({contextId:t,text:a}),f=Nd(t,i),p=Y(e=>{Qf(o).dispatch(e)},[]),m=J(()=>Sa({publishWhileDragging:jl,updateDroppableScroll:Nl,updateDroppableIsEnabled:Pl,updateDroppableIsCombineEnabled:Fl,collectionStarting:Ml},p),[p]),h=Bd(),g=J(()=>Gu(h,m),[h,m]),_=J(()=>bd({scrollWindow:qu,scrollDroppable:g.scrollDroppable,getAutoScrollerOptions:l,...Sa({move:Il},p)}),[g.scrollDroppable,p,l]),v=Rd(t),y=J(()=>Iu({announce:u,autoScroller:_,dimensionMarshal:g,focusMarshal:v,getResponders:c,styleMarshal:f}),[u,_,g,v,c,f]);o.current=y;let b=Y(()=>{let e=Qf(o);e.getState().phase!==`IDLE`&&e.dispatch(Ul())},[]),x=Y(()=>{let e=Qf(o).getState();return e.phase===`DROP_ANIMATING`?!0:e.phase===`IDLE`?!1:e.isDragging},[]);n(J(()=>({isDragging:x,tryAbort:b}),[x,b]));let S=Y(e=>Ku(Qf(o).getState(),e),[]),C=Y(()=>Yc(Qf(o).getState()),[]),w=J(()=>({marshal:g,focus:v,contextId:t,canLift:S,isMovementAllowed:C,dragHandleUsageInstructionsId:d,registry:h}),[t,g,d,v,S,C,h]);return Yf({contextId:t,store:y,registry:h,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),(0,G.useEffect)(()=>b,[b]),G.createElement(Xd.Provider,{value:w},G.createElement(Fo,{context:Vd,store:y},e.children))}function ep(){return G.useId()}function tp(e){let t=ep(),n=e.dragHandleUsageInstructions||ps.dragHandleUsageInstructions;return G.createElement(as,null,r=>G.createElement($f,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}var np={dragging:5e3,dropAnimating:4500},rp=(e,t)=>t?tu.drop(t.duration):e?tu.snap:tu.fluid,ip=(e,t)=>{if(e)return t?Ql.opacity.drop:Ql.opacity.combining},ap=e=>e.forceShouldAnimate==null?e.mode===`SNAP`:e.forceShouldAnimate;function op(e){let t=e.dimension.client,{offset:n,combineWith:r,dropping:i}=e,a=!!r,o=ap(e),s=!!i,c=s?ru.drop(n,a):ru.moveTo(n);return{position:`fixed`,top:t.marginBox.top,left:t.marginBox.left,boxSizing:`border-box`,width:t.borderBox.width,height:t.borderBox.height,transition:rp(o,i),transform:c,opacity:ip(a,s),zIndex:s?np.dropAnimating:np.dragging,pointerEvents:`none`}}function sp(e){return{transform:ru.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:`none`}}function cp(e){return e.type===`DRAGGING`?op(e):sp(e)}function lp(e,t,n=X){let r=window.getComputedStyle(t),i=Yo(t.getBoundingClientRect(),r),a=Jo(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}function up(e){let t=qd(`draggable`),{descriptor:n,registry:r,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:s}=e,c=J(()=>({canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:s}),[a,s,o]),l=Y(e=>{let t=i();return!t&&q(),lp(n,t,e)},[n,i]),u=J(()=>({uniqueId:t,descriptor:n,options:c,getDimension:l}),[n,l,c,t]),d=(0,G.useRef)(u),f=(0,G.useRef)(!0);Ad(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),Ad(()=>{if(f.current){f.current=!1;return}let e=d.current;d.current=u,r.draggable.update(u,e)},[u,r.draggable])}var dp=G.createContext(null);function fp(e){let t=(0,G.useContext)(e);return!t&&q(),t}function pp(e){e.preventDefault()}var mp=e=>{let t=(0,G.useRef)(null),n=Y((e=null)=>{t.current=e},[]),r=Y(()=>t.current,[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:o}=fp(Xd),{type:s,droppableId:c}=fp(dp),l=J(()=>({id:e.draggableId,index:e.index,type:s,droppableId:c}),[e.draggableId,e.index,s,c]),{children:u,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:m,isClone:h,mapped:g,dropAnimationFinished:_}=e;h||up(J(()=>({descriptor:l,registry:o,getDraggableRef:r,canDragInteractiveElements:m,shouldRespectForcePress:p,isEnabled:f}),[l,o,r,m,p,f]));let v=J(()=>f?{tabIndex:0,role:`button`,"aria-describedby":a,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:pp}:null,[i,a,d,f]),y=Y(e=>{g.type===`DRAGGING`&&g.dropping&&e.propertyName===`transform`&&(0,ma.flushSync)(_)},[_,g]),b=J(()=>({innerRef:n,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":d,style:cp(g),onTransitionEnd:g.type===`DRAGGING`&&g.dropping?y:void 0},dragHandleProps:v}),[i,v,d,g,y,n]),x=J(()=>({draggableId:l.id,type:l.type,source:{index:l.index,droppableId:l.droppableId}}),[l.droppableId,l.id,l.index,l.type]);return G.createElement(G.Fragment,null,u(b,g.snapshot,x))},hp=(e,t)=>e===t,gp=e=>{let{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null},_p=e=>e.combine?e.combine.draggableId:null,vp=e=>e.at&&e.at.type===`COMBINE`?e.at.combine.draggableId:null;function yp(){let e=Q((e,t)=>({x:e,y:t})),t=Q((e,t,n=null,r=null,i=null)=>({isDragging:!0,isClone:t,isDropAnimating:!!i,dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null})),n=Q((e,n,r,i,a=null,o=null,s=null)=>({mapped:{type:`DRAGGING`,dropping:null,draggingOver:a,combineWith:o,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,a,o,null)}}));return(r,i)=>{if($d(r)){if(r.critical.draggable.id!==i.draggableId)return null;let t=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],o=Kc(r.impact),s=vp(r.impact),c=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,a,i.isClone,o,s,c)}if(r.phase===`DROP_ANIMATING`){let e=r.completed;if(e.result.draggableId!==i.draggableId)return null;let n=i.isClone,a=r.dimensions.draggables[i.draggableId],o=e.result,s=o.mode,c=gp(o),l=_p(o),u={duration:r.dropDuration,curve:Zl.drop,moveTo:r.newHomeClientOffset,opacity:l?Ql.opacity.drop:null,scale:l?Ql.scale.drop:null};return{mapped:{type:`DRAGGING`,offset:r.newHomeClientOffset,dimension:a,dropping:u,draggingOver:c,combineWith:l,mode:s,forceShouldAnimate:null,snapshot:t(s,n,c,l,u)}}}return null}}function bp(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var xp={mapped:{type:`SECONDARY`,offset:X,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:bp(null)}};function Sp(){let e=Q((e,t)=>({x:e,y:t})),t=Q(bp),n=Q((e,n=null,r)=>({mapped:{type:`SECONDARY`,offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}})),r=e=>e?n(X,e,!0):null,i=(t,i,a,o)=>{let s=a.displaced.visible[t],c=!!(o.inVirtualList&&o.effected[t]),l=Rs(a),u=l&&l.draggableId===t?i:null;if(!s){if(!c)return r(u);if(a.displaced.invisible[t])return null;let i=vs(o.displacedBy.point);return n(e(i.x,i.y),u,!0)}if(c)return r(u);let d=a.displacedBy.point;return n(e(d.x,d.y),u,s.shouldAnimate)};return(e,t)=>{if($d(e))return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if(e.phase===`DROP_ANIMATING`){let n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}var Cp=No(()=>{let e=yp(),t=Sp();return(n,r)=>e(n,r)||t(n,r)||xp},{dropAnimationFinished:Jl},null,{context:Vd,areStatePropsEqual:hp})(mp);function wp(e){return fp(dp).isUsingCloneFor===e.draggableId&&!e.isClone?null:G.createElement(Cp,e)}function Tp(e){let t=typeof e.isDragDisabled==`boolean`?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return G.createElement(wp,Qo({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Ep=e=>t=>e===t,Dp=Ep(`scroll`),Op=Ep(`auto`),kp=(e,t)=>t(e.overflowX)||t(e.overflowY),Ap=e=>{let t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return kp(n,Dp)||kp(n,Op)},jp=()=>!1,Mp=e=>e==null?null:e===document.body?jp()?e:null:e===document.documentElement?null:Ap(e)?e:Mp(e.parentElement),Np=e=>({x:e.scrollLeft,y:e.scrollTop}),Pp=e=>e?window.getComputedStyle(e).position===`fixed`?!0:Pp(e.parentElement):!1,Fp=e=>({closestScrollable:Mp(e),isFixedOnPage:Pp(e)}),Ip=({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:i,client:a,page:o,closest:s})=>{let c=(()=>{if(!s)return null;let{scrollSize:e,client:t}=s,n=zu({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:X,displacement:X}}}})(),l=i===`vertical`?Js:Ys;return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:l,isEnabled:t,client:a,page:o,frame:c,subject:As({page:o,withPlaceholder:null,axis:l,frame:c})}},Lp=(e,t)=>{let n=Xo(e);if(!t||e!==t)return n;let r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight;return Wo({borderBox:Bo({top:r,right:i+t.scrollWidth,bottom:a,left:i},n.border),margin:n.margin,border:n.border,padding:n.padding})},Rp=({ref:e,descriptor:t,env:n,windowScroll:r,direction:i,isDropDisabled:a,isCombineEnabled:o,shouldClipSubject:s})=>{let c=n.closestScrollable,l=Lp(e,c),u=Jo(l,r),d=(()=>{if(!c)return null;let e=Xo(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:Jo(e,r),scroll:Np(c),scrollSize:t,shouldClipSubject:s}})();return Ip({descriptor:t,isEnabled:!a,isCombineEnabled:o,isFixedOnPage:n.isFixedOnPage,direction:i,client:l,page:u,closest:d})},zp={passive:!1},Bp={passive:!0},Vp=e=>e.shouldPublishImmediately?zp:Bp,Hp=e=>e&&e.env.closestScrollable||null;function Up(e){let t=(0,G.useRef)(null),n=fp(Xd),r=qd(`droppable`),{registry:i,marshal:a}=n,o=Zd(e),s=J(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),c=(0,G.useRef)(s),l=J(()=>Q((e,n)=>{!t.current&&q();let r={x:e,y:n};a.updateDroppableScroll(s.id,r)}),[s.id,a]),u=Y(()=>{let e=t.current;return!e||!e.env.closestScrollable?X:Np(e.env.closestScrollable)},[]),d=Y(()=>{let e=u();l(e.x,e.y)},[u,l]),f=J(()=>Zo(d),[d]),p=Y(()=>{let e=t.current,n=Hp(e);if(!(e&&n)&&q(),e.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),m=Y((e,r)=>{t.current&&q();let i=o.current,a=i.getDroppableRef();!a&&q();let c=Fp(a),l={ref:a,descriptor:s,env:c,scrollOptions:r};t.current=l;let u=Rp({ref:a,descriptor:s,env:c,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=c.closestScrollable;return d&&(d.setAttribute(Td.contextId,n.contextId),d.addEventListener(`scroll`,p,Vp(l.scrollOptions))),u},[n.contextId,s,p,o]),h=Y(()=>{let e=t.current,n=Hp(e);return!(e&&n)&&q(),Np(n)},[]),g=Y(()=>{let e=t.current;!e&&q();let n=Hp(e);t.current=null,n&&(f.cancel(),n.removeAttribute(Td.contextId),n.removeEventListener(`scroll`,p,Vp(e.scrollOptions)))},[p,f]),_=Y(e=>{let n=t.current;!n&&q();let r=Hp(n);!r&&q(),r.scrollTop+=e.y,r.scrollLeft+=e.x},[]),v=J(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:h,dragStopped:g,scroll:_}),[g,m,h,_]),y=J(()=>({uniqueId:r,descriptor:s,callbacks:v}),[v,s,r]);Ad(()=>(c.current=y.descriptor,i.droppable.register(y),()=>{t.current&&g(),i.droppable.unregister(y)}),[v,s,g,y,a,i.droppable]),Ad(()=>{t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Ad(()=>{t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function Wp(){}var Gp={width:0,height:0,margin:Es},Kp=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||n===`close`?Gp:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},qp=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{let r=Kp({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:`border-box`,width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:`0`,flexGrow:`0`,pointerEvents:`none`,transition:n===`none`?null:tu.placeholder}},Jp=G.memo(e=>{let t=(0,G.useRef)(null),n=Y(()=>{t.current&&=(clearTimeout(t.current),null)},[]),{animate:r,onTransitionEnd:i,onClose:a,contextId:o}=e,[s,c]=(0,G.useState)(e.animate===`open`);(0,G.useEffect)(()=>s?r===`open`?t.current?Wp:(t.current=setTimeout(()=>{t.current=null,c(!1)}),n):(n(),c(!1),Wp):Wp,[r,s,n]);let l=Y(e=>{e.propertyName===`height`&&(i(),r===`close`&&a())},[r,a,i]),u=qp({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return G.createElement(e.placeholder.tagName,{style:u,"data-rfd-placeholder-context-id":o,onTransitionEnd:l,ref:e.innerRef})}),Yp=class extends G.PureComponent{constructor(...e){super(...e),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?`open`:`none`},this.onClose=()=>{this.state.animate===`close`&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:`open`}:t.isVisible?{isVisible:!0,data:t.data,animate:`close`}:{isVisible:!1,animate:`close`,data:null}:{isVisible:!!e.on,data:e.on,animate:`none`}}render(){if(!this.state.isVisible)return null;let e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}},Xp=e=>{let t=(0,G.useContext)(Xd);!t&&q();let{contextId:n,isMovementAllowed:r}=t,i=(0,G.useRef)(null),a=(0,G.useRef)(null),{children:o,droppableId:s,type:c,mode:l,direction:u,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:m,useClone:h,updateViewportMaxScroll:g,getContainerForClone:_}=e,v=Y(()=>i.current,[]),y=Y((e=null)=>{i.current=e},[]);Y(()=>a.current,[]);let b=Y((e=null)=>{a.current=e},[]),x=Y(()=>{r()&&g({maxScroll:Vu()})},[r,g]);Up({droppableId:s,type:c,mode:l,direction:u,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:v});let S=J(()=>G.createElement(Yp,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:r})=>G.createElement(Jp,{placeholder:t,onClose:e,innerRef:b,animate:r,contextId:n,onTransitionEnd:x})),[n,x,e.placeholder,e.shouldAnimatePlaceholder,b]),C=J(()=>({innerRef:y,placeholder:S,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":n}}),[n,s,S,y]),w=h?h.dragging.draggableId:null,T=J(()=>({droppableId:s,type:c,isUsingCloneFor:w}),[s,w,c]);function E(){if(!h)return null;let{dragging:e,render:t}=h,n=G.createElement(wp,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(n,r)=>t(n,r,e));return ma.createPortal(n,_())}return G.createElement(dp.Provider,{value:T},o(C,m),E())};function Zp(){return!document.body&&q(),document.body}var Qp={mode:`standard`,type:`DEFAULT`,direction:`vertical`,isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Zp},$p=e=>{let t={...e},n;for(n in Qp)e[n]===void 0&&(t={...t,[n]:Qp[n]});return t},em=(e,t)=>e===t.droppable.type,tm=(e,t)=>t.draggables[e.draggable.id],nm=No(()=>{let e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=Q(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),r=Q((r,i,a,o,s,c)=>{let l=s.descriptor.id;if(s.descriptor.droppableId===r){let e=c?{render:c,dragging:n(s.descriptor)}:null,t={isDraggingOver:a,draggingOverWith:a?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!i)return t;if(!o)return e;let u={isDraggingOver:a,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}});return(n,i)=>{let a=$p(i),o=a.droppableId,s=a.type,c=!a.isDropDisabled,l=a.renderClone;if($d(n)){let e=n.critical;if(!em(s,e))return t;let i=tm(e,n.dimensions),a=Kc(n.impact)===o;return r(o,c,a,a,i,l)}if(n.phase===`DROP_ANIMATING`){let e=n.completed;if(!em(s,e.critical))return t;let i=tm(e.critical,n.dimensions);return r(o,c,gp(e.result)===o,Kc(e.impact)===o,i,l)}if(n.phase===`IDLE`&&n.completed&&!n.shouldFlush){let r=n.completed;if(!em(s,r.critical))return t;let i=Kc(r.impact)===o,a=!!(r.impact.at&&r.impact.at.type===`COMBINE`),c=r.critical.droppable.id===o;return i?a?e:t:c?e:t}return t}},{updateViewportMaxScroll:Rl},(e,t,n)=>({...$p(n),...e,...t}),{context:Vd,areStatePropsEqual:hp})(Xp),rm=new WeakMap,im=`
99
+ /* Theme — consumes --color-* tokens from the admin's tokens.css. */
100
+ /* Base */
101
+ .gz-editor {
102
+ font-family: system-ui, -apple-system, sans-serif; font-size: 0.875rem;
103
+ color: var(--color-fg);
104
+ transition: color 0.2s, background-color 0.2s;
105
+ }
106
+ .gz-editor * { box-sizing: border-box; }
107
+ .gz-editor .form-group { margin-bottom: 1rem; }
108
+ .gz-editor label {
109
+ display: block; font-weight: 600; font-size: 0.6875rem; text-transform: uppercase;
110
+ letter-spacing: 0.05em; color: var(--color-muted); margin-bottom: 0.375rem;
111
+ }
112
+ .gz-editor .field-description { font-size: 0.75rem; color: var(--color-muted); margin-bottom: 0.375rem; line-height: 1.4; }
113
+
114
+ /* Inputs */
115
+ .gz-editor input[type="text"], .gz-editor input[type="number"], .gz-editor input[type="url"],
116
+ .gz-editor input[type="email"], .gz-editor input[type="password"],
117
+ .gz-editor textarea, .gz-editor select {
118
+ width: 100%; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit;
119
+ background: var(--color-input-bg); color: var(--color-fg); border: 1px solid var(--color-border); border-radius: 6px;
120
+ outline: none; transition: border-color 0.15s, box-shadow 0.15s, background-color 0.2s, color 0.2s;
121
+ }
122
+ .gz-editor input:focus, .gz-editor textarea:focus, .gz-editor select:focus {
123
+ border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 15%, transparent);
124
+ }
125
+ .gz-editor textarea { min-height: 5rem; resize: vertical; line-height: 1.5; }
126
+ .gz-editor select {
127
+ appearance: none; cursor: pointer;
128
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
129
+ background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem;
130
+ }
131
+
132
+ /* Hide rjsf chrome */
133
+ .gz-editor .btn { display: none; }
134
+ .gz-editor fieldset { border: none; padding: 0; margin: 0; }
135
+ .gz-editor legend { display: none; }
136
+
137
+ /* Errors */
138
+ .gz-editor .error-detail, .gz-editor .text-danger { color: var(--color-danger-fg); font-size: 0.75rem; margin-top: 0.25rem; }
139
+ .gz-editor .has-error input, .gz-editor .has-error textarea, .gz-editor .has-error select { border-color: color-mix(in srgb, var(--color-danger-fg) 50%, transparent); }
140
+
141
+ /* Required marker */
142
+ .gz-editor label .required { color: var(--color-danger-fg); margin-left: 0.125rem; }
143
+
144
+ /* ---- Toggle ---- */
145
+ .gz-editor .gz-toggle { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; user-select: none; padding: 0.25rem 0; }
146
+ .gz-editor .gz-toggle-track {
147
+ position: relative; width: 36px; height: 20px; border-radius: 10px;
148
+ background: var(--color-border); transition: background 0.2s; flex-shrink: 0;
149
+ }
150
+ .gz-editor .gz-toggle-track.on { background: var(--color-primary); }
151
+ .gz-editor .gz-toggle-thumb {
152
+ position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
153
+ background: #fff; transition: transform 0.2s ease;
154
+ }
155
+ .gz-editor .gz-toggle-track.on .gz-toggle-thumb { transform: translateX(16px); }
156
+ .gz-editor .gz-toggle-label { font-size: 0.8125rem; color: var(--color-fg); font-weight: 400; text-transform: none; letter-spacing: 0; }
157
+
158
+ /* ---- Color ---- */
159
+ .gz-editor .gz-color-widget { display: flex; align-items: center; gap: 0.5rem; }
160
+ .gz-editor .gz-color-widget input[type="color"] {
161
+ width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 6px;
162
+ padding: 2px; cursor: pointer; background: transparent;
163
+ }
164
+ .gz-editor .gz-color-widget input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
165
+ .gz-editor .gz-color-widget input[type="color"]::-webkit-color-swatch { border-radius: 3px; border: none; }
166
+ .gz-editor .gz-color-widget input[type="text"] { flex: 1; }
167
+
168
+ /* ---- Tags ---- */
169
+ .gz-editor .gz-tags {
170
+ display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.375rem 0.5rem;
171
+ background: var(--color-input-bg); border: 1px solid var(--color-border); border-radius: 6px;
172
+ min-height: 2.5rem; align-items: center; cursor: text; transition: border-color 0.15s, box-shadow 0.15s;
173
+ }
174
+ .gz-editor .gz-tags:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 15%, transparent); }
175
+ .gz-editor .gz-tag {
176
+ display: inline-flex; align-items: center; gap: 0.25rem;
177
+ padding: 0.1875rem 0.5rem 0.1875rem 0.625rem;
178
+ background: var(--color-bg-chip); border: 1px solid var(--color-border); border-radius: 4px;
179
+ font-size: 0.8125rem; color: var(--color-fg); transition: background 0.1s;
180
+ }
181
+ .gz-editor .gz-tag:hover { background: var(--color-bg-chip); filter: brightness(1.1); }
182
+ .gz-editor .gz-tag-remove {
183
+ background: none; border: none; color: var(--color-muted); cursor: pointer; font-size: 1rem;
184
+ padding: 0; line-height: 1; display: flex; align-items: center;
185
+ }
186
+ .gz-editor .gz-tag-remove:hover { color: var(--color-danger-fg); }
187
+ .gz-editor .gz-tags-input {
188
+ border: none !important; background: transparent !important; color: var(--color-fg); font-size: 0.8125rem;
189
+ outline: none !important; min-width: 80px; flex: 1; padding: 0.125rem 0;
190
+ box-shadow: none !important;
191
+ }
192
+ .gz-editor .gz-tags-empty { color: var(--color-muted); font-size: 0.75rem; padding: 0.25rem 0; }
193
+
194
+ /* ---- Image ---- */
195
+ .gz-editor .gz-image-preview {
196
+ margin-top: 0.5rem; border-radius: 6px; overflow: hidden;
197
+ background: var(--color-input-bg); border: 1px dashed var(--color-border); transition: border-color 0.15s;
198
+ }
199
+ .gz-editor .gz-image-preview.has-image { border-style: solid; }
200
+ .gz-editor .gz-image-preview img { display: block; max-width: 100%; max-height: 200px; object-fit: contain; margin: 0 auto; }
201
+ .gz-editor .gz-image-preview-empty {
202
+ padding: 2rem; text-align: center; color: var(--color-muted); font-size: 0.75rem;
203
+ }
204
+
205
+ /* ---- Slug ---- */
206
+ .gz-editor .gz-slug-widget input {
207
+ font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem; letter-spacing: 0.02em;
208
+ }
209
+ .gz-editor .gz-slug-hint { font-size: 0.6875rem; color: var(--color-muted); margin-top: 0.25rem; }
210
+
211
+ /* ---- Code ---- */
212
+ .gz-editor .gz-code-widget textarea {
213
+ font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
214
+ line-height: 1.6; min-height: 10rem; tab-size: 2;
215
+ }
216
+ .gz-editor .gz-code-hint { font-size: 0.6875rem; color: var(--color-muted); margin-top: 0.25rem; }
217
+
218
+ /* ---- JSON ---- */
219
+ .gz-editor .gz-json-widget textarea {
220
+ font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
221
+ line-height: 1.6; min-height: 8rem; tab-size: 2;
222
+ }
223
+ .gz-editor .gz-json-error { font-size: 0.6875rem; color: var(--color-danger-fg); margin-top: 0.25rem; }
224
+ .gz-editor .gz-json-valid { font-size: 0.6875rem; color: var(--color-success-fg); margin-top: 0.25rem; }
225
+
226
+ /* ---- Markdown ---- */
227
+ .gz-editor .gz-markdown textarea {
228
+ min-height: 12rem; font-family: 'JetBrains Mono', 'Fira Code', monospace;
229
+ font-size: 0.8125rem; line-height: 1.6;
230
+ }
231
+ .gz-editor .gz-markdown-hint { font-size: 0.6875rem; color: var(--color-muted); margin-top: 0.25rem; }
232
+
233
+ /* ---- Rich text (Tiptap) ---- */
234
+ .gz-editor .gz-richtext {
235
+ border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden;
236
+ background: var(--color-input-bg); transition: border-color 0.15s, box-shadow 0.15s;
237
+ }
238
+ .gz-editor .gz-richtext:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 15%, transparent); }
239
+ .gz-editor .gz-richtext-toolbar {
240
+ display: flex; flex-wrap: wrap; gap: 1px; padding: 0.25rem;
241
+ border-bottom: 1px solid var(--color-border); background: var(--color-bg);
242
+ }
243
+ .gz-editor .gz-rt-btn {
244
+ background: none; border: 1px solid transparent; border-radius: 4px;
245
+ color: var(--color-muted); cursor: pointer; padding: 0.3125rem 0.5rem; font-size: 0.6875rem;
246
+ font-family: inherit; line-height: 1; font-weight: 600; transition: all 0.1s;
247
+ display: flex; align-items: center; justify-content: center; min-width: 28px;
248
+ }
249
+ .gz-editor .gz-rt-btn:hover { color: var(--color-fg); background: var(--color-bg-chip); }
250
+ .gz-editor .gz-rt-btn.active { color: var(--color-primary); background: var(--color-bg-chip); border-color: color-mix(in srgb, var(--color-primary) 20%, transparent); }
251
+ .gz-editor .gz-rt-sep { width: 1px; background: var(--color-bg-chip); margin: 0.125rem 0.25rem; align-self: stretch; }
252
+
253
+ /* Tiptap content area */
254
+ .gz-editor .gz-richtext .tiptap { outline: none; padding: 0.75rem; min-height: 10rem; color: var(--color-fg); font-size: 0.875rem; line-height: 1.7; }
255
+ .gz-editor .gz-richtext .tiptap p { margin: 0.25rem 0; }
256
+ .gz-editor .gz-richtext .tiptap h2 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 0.25rem; color: var(--color-fg); }
257
+ .gz-editor .gz-richtext .tiptap h3 { font-size: 1.1rem; font-weight: 600; margin: 0.75rem 0 0.25rem; color: var(--color-fg); }
258
+ .gz-editor .gz-richtext .tiptap ul, .gz-editor .gz-richtext .tiptap ol { padding-left: 1.25rem; margin: 0.25rem 0; }
259
+ .gz-editor .gz-richtext .tiptap li { margin: 0.125rem 0; }
260
+ .gz-editor .gz-richtext .tiptap blockquote {
261
+ border-left: 3px solid color-mix(in srgb, var(--color-primary) 25%, transparent); padding-left: 0.875rem; margin: 0.5rem 0;
262
+ color: var(--color-muted); font-style: italic;
263
+ }
264
+ .gz-editor .gz-richtext .tiptap code {
265
+ background: var(--color-bg-chip); padding: 0.125rem 0.375rem; border-radius: 3px;
266
+ font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8125rem;
267
+ }
268
+ .gz-editor .gz-richtext .tiptap pre {
269
+ background: var(--color-bg-code); padding: 0.875rem; border-radius: 6px; overflow-x: auto; margin: 0.5rem 0;
270
+ }
271
+ .gz-editor .gz-richtext .tiptap pre code { background: none; padding: 0; }
272
+ .gz-editor .gz-richtext .tiptap a { color: var(--color-primary); text-decoration: underline; cursor: pointer; }
273
+ .gz-editor .gz-richtext .tiptap hr { border: none; border-top: 1px solid var(--color-border); margin: 1rem 0; }
274
+ .gz-editor .gz-richtext .tiptap p.is-editor-empty:first-child::before {
275
+ content: attr(data-placeholder); float: left; color: var(--color-muted); pointer-events: none; height: 0;
276
+ }
277
+
278
+ /* Bubble menu */
279
+ .gz-editor .gz-bubble {
280
+ display: flex; gap: 1px; background: var(--color-bg); border: 1px solid var(--color-border);
281
+ border-radius: 6px; padding: 0.1875rem; box-shadow: 0 4px 16px #0008;
282
+ }
283
+ .gz-editor .gz-bubble .gz-rt-btn { padding: 0.25rem 0.4375rem; font-size: 0.625rem; }
284
+
285
+ /* ---- Array ---- */
286
+ .gz-editor .gz-array { margin-bottom: 0.25rem; }
287
+ .gz-editor .gz-array-header {
288
+ display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; padding-bottom: 0.375rem;
289
+ border-bottom: 1px solid var(--color-border);
290
+ }
291
+ .gz-editor .gz-array-title {
292
+ font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
293
+ letter-spacing: 0.05em; color: var(--color-muted);
294
+ }
295
+ .gz-editor .gz-array-count {
296
+ font-size: 0.625rem; color: var(--color-muted); background: var(--color-border);
297
+ padding: 0.0625rem 0.4375rem; border-radius: 8px; font-weight: 600;
298
+ }
299
+ .gz-editor .gz-array-add {
300
+ margin-left: auto; background: none; border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
301
+ color: var(--color-primary); cursor: pointer; font-size: 0.6875rem; font-weight: 600;
302
+ padding: 0.25rem 0.625rem; border-radius: 4px; transition: all 0.15s;
303
+ }
304
+ .gz-editor .gz-array-add:hover { background: color-mix(in srgb, var(--color-primary) 8%, transparent); border-color: color-mix(in srgb, var(--color-primary) 30%, transparent); }
305
+ .gz-editor .gz-array-items { display: flex; flex-direction: column; gap: 0.25rem; }
306
+
307
+ /* Array items — collapsible */
308
+ .gz-editor .gz-array-item {
309
+ background: var(--color-bg); border-radius: 6px; border: 1px solid var(--color-border);
310
+ transition: border-color 0.15s;
311
+ }
312
+ .gz-editor .gz-array-item:hover { border-color: var(--color-border); }
313
+ .gz-editor .gz-array-item.dragging { opacity: 0.9; box-shadow: 0 4px 20px #0006; border-color: color-mix(in srgb, var(--color-primary) 25%, transparent); }
314
+ .gz-editor .gz-array-item-header {
315
+ display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.625rem;
316
+ cursor: pointer; user-select: none; min-height: 36px;
317
+ }
318
+ .gz-editor .gz-array-item-handle {
319
+ color: var(--color-muted); font-size: 0.625rem; cursor: grab; flex-shrink: 0; padding: 0.25rem 0.125rem;
320
+ opacity: 0; transition: opacity 0.1s; display: flex; align-items: center; letter-spacing: 1px;
321
+ }
322
+ .gz-editor .gz-array-item:hover .gz-array-item-handle { opacity: 1; }
323
+ .gz-editor .gz-array-item-handle:active { cursor: grabbing; color: var(--color-primary); }
324
+ .gz-editor .gz-array-item-chevron {
325
+ color: var(--color-muted); font-size: 0.5rem; transition: transform 0.15s ease; flex-shrink: 0; width: 12px; text-align: center;
326
+ }
327
+ .gz-editor .gz-array-item-chevron.open { transform: rotate(90deg); }
328
+ .gz-editor .gz-array-item-summary {
329
+ flex: 1; font-size: 0.8125rem; color: var(--color-muted); white-space: nowrap;
330
+ overflow: hidden; text-overflow: ellipsis; min-width: 0;
331
+ }
332
+ .gz-editor .gz-array-item-summary.empty { color: var(--color-muted); font-style: italic; }
333
+ .gz-editor .gz-array-item-idx {
334
+ font-size: 0.625rem; color: var(--color-muted); font-weight: 600; flex-shrink: 0;
335
+ min-width: 1rem; text-align: center;
336
+ }
337
+ .gz-editor .gz-array-item-actions { display: flex; gap: 1px; flex-shrink: 0; opacity: 0; transition: opacity 0.1s; }
338
+ .gz-editor .gz-array-item:hover .gz-array-item-actions { opacity: 1; }
339
+ .gz-editor .gz-array-item-body {
340
+ padding: 0 0.75rem 0.75rem; overflow: hidden;
341
+ transition: max-height 0.2s ease, opacity 0.15s ease, padding 0.2s ease;
342
+ }
343
+ .gz-editor .gz-array-item-body.collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
344
+ .gz-editor .gz-array-item-body.expanded { max-height: 2000px; opacity: 1; }
345
+ .gz-editor .gz-array-item-body .form-group:last-child { margin-bottom: 0; }
346
+ .gz-editor .gz-array-item-body fieldset > .form-group:last-child { margin-bottom: 0; }
347
+
348
+ /* Icon buttons */
349
+ .gz-editor .gz-btn-icon {
350
+ width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
351
+ background: transparent; border: none; border-radius: 3px; color: var(--color-muted); cursor: pointer;
352
+ font-size: 0.6875rem; padding: 0; transition: all 0.1s;
353
+ }
354
+ .gz-editor .gz-btn-icon:hover { background: var(--color-bg-chip); color: var(--color-fg); }
355
+ .gz-editor .gz-btn-icon:disabled { opacity: 0.25; cursor: default; }
356
+ .gz-editor .gz-btn-icon:disabled:hover { background: transparent; color: var(--color-muted); }
357
+ .gz-editor .gz-btn-icon.gz-btn-remove:hover { background: color-mix(in srgb, var(--color-danger-fg) 15%, transparent); color: var(--color-danger-fg); }
358
+
359
+ /* Array empty state */
360
+ .gz-editor .gz-array-empty {
361
+ padding: 1.5rem; text-align: center; border: 1px dashed var(--color-border); border-radius: 6px;
362
+ color: var(--color-muted); font-size: 0.8125rem;
363
+ }
364
+
365
+ /* Nested objects in arrays */
366
+ .gz-editor .gz-object-inline { }
367
+ .gz-editor .gz-object-inline > .form-group { margin-bottom: 0.625rem; }
368
+ `,am=new Set([`body`,`description`,`text`,`content`,`bio`,`summary`,`message`,`notes`,`output`]),om=new Set([`href`,`url`,`link`,`src`]),sm=new Set([`background`,`color`]);function cm(e){let t={"ui:submitButtonOptions":{norender:!0}},n=e.properties;if(!n)return t;for(let[e,r]of Object.entries(n)){let n=r.format,i=r.type,a=r.field;if(a){t[e]={"ui:widget":`custom-field:${a}`};continue}if(n===`markdown`||n===`richtext`||n===`image`||n===`link`||n===`slug`||n===`code`||n===`json`){t[e]={"ui:widget":n};continue}if(n===`color`){t[e]={"ui:widget":`color`};continue}i===`string`&&!n&&(am.has(e)?t[e]={"ui:widget":`textarea`,"ui:options":{rows:5}}:om.has(e)?t[e]={"ui:options":{inputType:`url`}}:sm.has(e)&&(t[e]={"ui:widget":`color`})),i===`boolean`&&(t[e]={"ui:widget":`toggle`}),i===`array`&&r.items?.type===`string`&&(t[e]={"ui:widget":`tags`})}return t}function lm(e){if(!e||typeof e!=`object`)return String(e??``);let t=e;for(let e of[`title`,`name`,`label`,`heading`,`text`,`quote`,`command`])if(typeof t[e]==`string`&&t[e])return t[e];for(let e of Object.values(t))if(typeof e==`string`&&e.trim())return e.trim();return``}function um(e){return(0,W.jsxs)(`div`,{className:`gz-markdown`,children:[(0,W.jsx)(`textarea`,{value:e.value??``,onChange:t=>e.onChange(t.target.value),placeholder:`Write markdown here...`,rows:12}),(0,W.jsx)(`div`,{className:`gz-markdown-hint`,children:`Markdown supported`})]})}function dm(e){let t=!!e.value;return(0,W.jsxs)(`div`,{className:`gz-toggle`,onClick:()=>!e.disabled&&!e.readonly&&e.onChange(!t),role:`switch`,"aria-checked":t,children:[(0,W.jsx)(`div`,{className:`gz-toggle-track${t?` on`:``}`,children:(0,W.jsx)(`div`,{className:`gz-toggle-thumb`})}),e.label&&(0,W.jsx)(`span`,{className:`gz-toggle-label`,children:e.label})]})}function fm(e){let t=e.value??``;return(0,W.jsxs)(`div`,{className:`gz-color-widget`,children:[(0,W.jsx)(`input`,{type:`color`,value:t||`#667eea`,onChange:t=>e.onChange(t.target.value)}),(0,W.jsx)(`input`,{type:`text`,value:t,onChange:t=>e.onChange(t.target.value),placeholder:`#667eea`})]})}function pm(e){let t=Array.isArray(e.value)?e.value:[],[n,r]=G.useState(``),i=G.useRef(null),a=n=>{let i=n.trim();i&&!t.includes(i)&&e.onChange([...t,i]),r(``)},o=n=>e.onChange(t.filter((e,t)=>t!==n));return(0,W.jsxs)(`div`,{className:`gz-tags`,onClick:()=>i.current?.focus(),children:[t.map((e,t)=>(0,W.jsxs)(`span`,{className:`gz-tag`,children:[e,(0,W.jsx)(`button`,{type:`button`,className:`gz-tag-remove`,onClick:e=>{e.stopPropagation(),o(t)},"aria-label":`Remove ${e}`,children:`×`})]},`${e}-${t}`)),(0,W.jsx)(`input`,{ref:i,className:`gz-tags-input`,value:n,onChange:e=>r(e.target.value),onKeyDown:e=>{e.key===`Enter`||e.key===`,`?(e.preventDefault(),a(n)):e.key===`Backspace`&&!n&&t.length>0&&o(t.length-1)},onBlur:()=>{n&&a(n)},placeholder:t.length===0?`Type and press Enter...`:``})]})}function mm(e){let t=e.value??``,[n,r]=G.useState(!1);return G.useEffect(()=>{r(!1)},[t]),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`input`,{type:`text`,value:t,onChange:t=>e.onChange(t.target.value),placeholder:`https://example.com/image.png`}),(0,W.jsx)(`div`,{className:`gz-image-preview${t&&!n?` has-image`:``}`,children:t&&!n?(0,W.jsx)(`img`,{src:t,alt:`Preview`,onError:()=>r(!0)}):(0,W.jsx)(`div`,{className:`gz-image-preview-empty`,children:t?`Image failed to load`:`Paste an image URL above`})})]})}function hm(e){return(0,W.jsx)(`input`,{type:`url`,value:e.value??``,onChange:t=>e.onChange(t.target.value),placeholder:`https://...`})}function gm(e){let t=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``);return(0,W.jsxs)(`div`,{className:`gz-slug-widget`,children:[(0,W.jsx)(`input`,{type:`text`,value:e.value??``,onChange:n=>e.onChange(t(n.target.value)),placeholder:`my-page-slug`}),(0,W.jsx)(`div`,{className:`gz-slug-hint`,children:`URL-safe identifier — lowercase, hyphens only`})]})}function _m(e){let t=e.schema.language;return(0,W.jsxs)(`div`,{className:`gz-code-widget`,children:[(0,W.jsx)(`textarea`,{value:e.value??``,onChange:t=>e.onChange(t.target.value),placeholder:e.placeholder,rows:15,spellCheck:!1}),t&&(0,W.jsx)(`div`,{className:`gz-code-hint`,children:t})]})}function vm(e){let[t,n]=G.useState(null),[r,i]=G.useState(()=>e.value==null?``:typeof e.value==`string`?e.value:JSON.stringify(e.value,null,2)),a=()=>{if(!r.trim()){n(null);return}try{JSON.parse(r),n(null)}catch{n(`Invalid JSON`)}},o=t=>{i(t);try{let r=JSON.parse(t);n(null),e.onChange(r)}catch{}};return(0,W.jsxs)(`div`,{className:`gz-json-widget`,children:[(0,W.jsx)(`textarea`,{value:r,onChange:e=>o(e.target.value),onBlur:a,placeholder:`{ "key": "value" }`,rows:10,spellCheck:!1}),t&&(0,W.jsx)(`div`,{className:`gz-json-error`,children:t})]})}function ym(e){let t=G.useRef(e.onChange);t.current=e.onChange;let n=he({extensions:[me.configure({heading:{levels:[2,3]},codeBlock:{HTMLAttributes:{spellcheck:`false`}}}),ge.configure({openOnClick:!1,HTMLAttributes:{rel:`noopener noreferrer`}}),_e.configure({placeholder:`Start writing...`})],content:e.value||``,onUpdate:({editor:e})=>t.current(e.getHTML()),immediatelyRender:!0});if(!n)return null;let r=({active:e,onClick:t,children:n})=>(0,W.jsx)(`button`,{type:`button`,className:`gz-rt-btn${e?` active`:``}`,onMouseDown:e=>{e.preventDefault(),t()},children:n}),i=()=>{let e=n.getAttributes(`link`).href,t=prompt(`URL:`,e??`https://`);if(t!==null){if(t===``){n.chain().focus().extendMarkRange(`link`).unsetLink().run();return}n.chain().focus().extendMarkRange(`link`).setLink({href:t}).run()}};return(0,W.jsxs)(`div`,{className:`gz-richtext`,children:[(0,W.jsxs)(`div`,{className:`gz-richtext-toolbar`,children:[(0,W.jsx)(r,{active:n.isActive(`bold`),onClick:()=>n.chain().focus().toggleBold().run(),children:`B`}),(0,W.jsx)(r,{active:n.isActive(`italic`),onClick:()=>n.chain().focus().toggleItalic().run(),children:`I`}),(0,W.jsx)(r,{active:n.isActive(`strike`),onClick:()=>n.chain().focus().toggleStrike().run(),children:`S`}),(0,W.jsx)(r,{active:n.isActive(`code`),onClick:()=>n.chain().focus().toggleCode().run(),children:`</>`}),(0,W.jsx)(`div`,{className:`gz-rt-sep`}),(0,W.jsx)(r,{active:n.isActive(`heading`,{level:2}),onClick:()=>n.chain().focus().toggleHeading({level:2}).run(),children:`H2`}),(0,W.jsx)(r,{active:n.isActive(`heading`,{level:3}),onClick:()=>n.chain().focus().toggleHeading({level:3}).run(),children:`H3`}),(0,W.jsx)(`div`,{className:`gz-rt-sep`}),(0,W.jsx)(r,{active:n.isActive(`bulletList`),onClick:()=>n.chain().focus().toggleBulletList().run(),children:`•`}),(0,W.jsx)(r,{active:n.isActive(`orderedList`),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:`1.`}),(0,W.jsx)(r,{active:n.isActive(`blockquote`),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:`“`}),(0,W.jsx)(`div`,{className:`gz-rt-sep`}),(0,W.jsx)(r,{active:n.isActive(`link`),onClick:i,children:`Link`}),(0,W.jsx)(r,{onClick:()=>n.chain().focus().setHorizontalRule().run(),children:`—`}),(0,W.jsx)(r,{active:n.isActive(`codeBlock`),onClick:()=>n.chain().focus().toggleCodeBlock().run(),children:`Code`})]}),(0,W.jsx)(pe,{editor:n,children:(0,W.jsxs)(`div`,{className:`gz-bubble`,children:[(0,W.jsx)(r,{active:n.isActive(`bold`),onClick:()=>n.chain().focus().toggleBold().run(),children:`B`}),(0,W.jsx)(r,{active:n.isActive(`italic`),onClick:()=>n.chain().focus().toggleItalic().run(),children:`I`}),(0,W.jsx)(r,{active:n.isActive(`strike`),onClick:()=>n.chain().focus().toggleStrike().run(),children:`S`}),(0,W.jsx)(r,{active:n.isActive(`code`),onClick:()=>n.chain().focus().toggleCode().run(),children:`</>`}),(0,W.jsx)(r,{active:n.isActive(`link`),onClick:i,children:`Link`})]})}),(0,W.jsx)(fe,{editor:n})]})}function bm(e){let t=e.registry.formContext,n=e.fieldPathId?.$id??``;return e.items.length===0?(0,W.jsxs)(`div`,{className:`gz-array`,children:[(0,W.jsxs)(`div`,{className:`gz-array-header`,children:[e.title&&(0,W.jsx)(`span`,{className:`gz-array-title`,children:e.title}),(0,W.jsx)(`span`,{className:`gz-array-count`,children:`0`})]}),(0,W.jsxs)(`div`,{className:`gz-array-empty`,children:[`No items yet`,e.canAdd&&(0,W.jsx)(`div`,{style:{marginTop:`0.5rem`},children:(0,W.jsx)(`button`,{type:`button`,className:`gz-array-add`,onClick:e.onAddClick,children:`+ Add first item`})})]})]}):(0,W.jsxs)(`div`,{className:`gz-array`,children:[(0,W.jsxs)(`div`,{className:`gz-array-header`,children:[e.title&&(0,W.jsx)(`span`,{className:`gz-array-title`,children:e.title}),(0,W.jsx)(`span`,{className:`gz-array-count`,children:e.items.length}),e.canAdd&&(0,W.jsx)(`button`,{type:`button`,className:`gz-array-add`,onClick:e.onAddClick,children:`+ Add`})]}),(0,W.jsx)(tp,{onDragEnd:e=>{!e.destination||e.source.index===e.destination.index||t?.reorderArray(n,e.source.index,e.destination.index)},children:(0,W.jsx)(nm,{droppableId:n||`array`,children:t=>(0,W.jsxs)(`div`,{className:`gz-array-items`,ref:t.innerRef,...t.droppableProps,children:[e.items,t.placeholder]})})})]})}function xm(e){let[t,n]=G.useState(!0),r=lm(e.formData);return(0,W.jsx)(Tp,{draggableId:`${e.buttonsProps.fieldPathId?.$id??`item`}-${e.index}`,index:e.index,children:(i,a)=>(0,W.jsxs)(`div`,{className:`gz-array-item${a.isDragging?` dragging`:``}`,ref:i.innerRef,...i.draggableProps,children:[(0,W.jsxs)(`div`,{className:`gz-array-item-header`,onClick:()=>n(!t),children:[(0,W.jsx)(`span`,{className:`gz-array-item-handle`,...i.dragHandleProps,onClick:e=>e.stopPropagation(),children:`⠁⠁`}),(0,W.jsx)(`span`,{className:`gz-array-item-chevron${t?` open`:``}`,children:`▶`}),(0,W.jsx)(`span`,{className:`gz-array-item-idx`,children:e.index+1}),!t&&(0,W.jsx)(`span`,{className:`gz-array-item-summary${r?``:` empty`}`,children:r||`Empty item`}),(0,W.jsx)(`div`,{className:`gz-array-item-actions`,onClick:e=>e.stopPropagation(),children:(0,W.jsx)(Sm,{...e.buttonsProps})})]}),(0,W.jsx)(`div`,{className:`gz-array-item-body ${t?`expanded`:`collapsed`}`,children:e.children})]})})}function Sm(e){return(0,W.jsxs)(W.Fragment,{children:[e.hasMoveUp&&(0,W.jsx)(`button`,{type:`button`,className:`gz-btn-icon`,onClick:e.onMoveUpItem,title:`Move up`,children:`↑`}),e.hasMoveDown&&(0,W.jsx)(`button`,{type:`button`,className:`gz-btn-icon`,onClick:e.onMoveDownItem,title:`Move down`,children:`↓`}),e.hasRemove&&(0,W.jsx)(`button`,{type:`button`,className:`gz-btn-icon gz-btn-remove`,onClick:e.onRemoveItem,title:`Remove`,children:`×`})]})}function Cm(e){return e.fieldPathId?.$id===`root`?(0,W.jsx)(W.Fragment,{children:e.properties.map(e=>e.content)}):(0,W.jsx)(`div`,{className:`gz-object-inline`,children:e.properties.map(e=>e.content)})}function wm(e){return(0,W.jsx)(`button`,{type:`button`,className:`gz-array-add`,onClick:e.onClick,disabled:e.disabled,children:`+ Add`})}var Tm=new Map;function Em(e){let t=Tm.get(e);if(t)return t;let n=t=>{let n=G.useRef(null),r=G.useRef(null),i=G.useRef(!1),[a,o]=G.useState(!0),[s,c]=G.useState(null),l=t.registry?.formContext;return G.useEffect(()=>{if(!l?.fieldsBaseUrl){c(`No fields base URL configured`),o(!1);return}let t=`${l.fieldsBaseUrl}/${e}`;(async()=>{for(let e of[`.tsx`,`.ts`,`.js`])try{let n=await xn(()=>import(`${t}${e}`),[]);r.current=n.default??n,o(!1);return}catch{}c(`Failed to load field "${e}"`),o(!1)})()},[l?.fieldsBaseUrl]),G.useEffect(()=>{if(a||!n.current||!r.current)return;let e=n.current,o=r.current;return o.mount(e,{value:t.value,schema:t.schema,theme:l?.theme??`dark`,onChange:e=>t.onChange(e)}),i.current=!0,()=>{o.unmount(e),i.current=!1}},[a]),G.useEffect(()=>{!i.current||!n.current||!r.current||r.current.mount(n.current,{value:t.value,schema:t.schema,theme:l?.theme??`dark`,onChange:e=>t.onChange(e)})},[t.value]),a?(0,W.jsxs)(`div`,{style:{color:`var(--color-muted)`,fontSize:`0.75rem`,padding:`0.5rem 0`},children:[`Loading `,e,`...`]}):s?(0,W.jsx)(`div`,{style:{color:`var(--color-danger-fg)`,fontSize:`0.75rem`},children:s}):(0,W.jsx)(`div`,{ref:n})};return Tm.set(e,n),n}var Dm={markdown:um,toggle:dm,color:fm,tags:pm,richtext:ym,image:mm,link:hm,slug:gm,code:_m,json:vm};function Om(e){let t={...Dm},n=e.properties;if(!n)return t;for(let e of Object.values(n)){let n=e.field;n&&(t[`custom-field:${n}`]=Em(n))}return t}var km={ArrayFieldTemplate:bm,ArrayFieldItemTemplate:xm,ArrayFieldItemButtonsTemplate:Sm,ObjectFieldTemplate:Cm,ButtonTemplates:{AddButton:wm}};function Am({schema:e,content:t,onChange:n,fieldsBaseUrl:r,theme:i}){let a=G.useMemo(()=>cm(e),[e]),o=G.useMemo(()=>Om(e),[e]),[s,c]=G.useState(t),l=G.useRef(s);l.current=s;let u=G.useRef([]),d=G.useRef([]),f=G.useRef(!1),p=e=>{f.current||(u.current.push(e),u.current.length>50&&u.current.shift(),d.current=[])},m=e=>{c(e),n(e)},h=e=>{p(l.current),c(e.formData),n(e.formData)};G.useEffect(()=>{let e=e=>{if((e.metaKey||e.ctrlKey)&&e.key===`z`)if(e.preventDefault(),e.shiftKey){if(d.current.length===0)return;let e=d.current.pop();u.current.push(l.current),f.current=!0,m(e),f.current=!1}else{if(u.current.length===0)return;let e=u.current.pop();d.current.push(l.current),f.current=!0,m(e),f.current=!1}};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]);let g=G.useCallback((e,t,r)=>{c(i=>{p(i);let a=e.replace(/^root_/,``).split(`_`)[0],o=i[a];if(!Array.isArray(o))return i;let s=[...o],[c]=s.splice(t,1);s.splice(r,0,c);let l={...i,[a]:s};return n(l),l})},[n]),_=G.useMemo(()=>({reorderArray:g,fieldsBaseUrl:r,theme:i}),[g,r,i]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`style`,{children:im}),(0,W.jsx)(`div`,{className:`gz-editor`,children:(0,W.jsx)(de,{schema:e,uiSchema:a,formData:s,onChange:h,validator:ue,widgets:o,templates:km,formContext:_,liveValidate:!1,omitExtraData:!0,noHtml5Validate:!0,autoComplete:`off`})})]})}function jm(e){return{mount(t,{content:n,schema:r,theme:i,onChange:a,fieldsBaseUrl:o}){let s=rm.get(t);s&&s.unmount();let c=(0,ha.createRoot)(t);rm.set(t,c),c.render((0,W.jsx)(Am,{schema:r??e,content:n,theme:i,fieldsBaseUrl:o,onChange:a}))},unmount(e){let t=rm.get(e);t&&(t.unmount(),rm.delete(e))}}}var Mm={class:`editor-panel`,"data-testid":`editor-panel`},Nm={key:0,class:`editor-error`,"data-testid":`editor-error`},Pm={key:1,class:`editor-empty`,"data-testid":`editor-empty`},Fm={key:2},Im={key:1,class:`editor-no-schema`},Lm=mr(R({__name:`EditorPanel`,setup(e){let t=Cn(),n=pn(),r=c(null),i=g(()=>{let e=t.schema;if(!e)return!1;let n=e.properties;return n&&Object.keys(n).length>0}),a=g(()=>!t.schema||!i.value?null:t.customEditorMount?t.customEditorMount:jm(t.schema)),o=g(()=>t.content),s=g(()=>t.schema),l=g(()=>n.dark?`dark`:`light`),d=g(()=>t.mountVersion),p=g(()=>t.target?.fieldsBaseUrl);function m(e){t.markDirty(e)}return pa(r,a,o,s,l,m,d,p),Ai(`s`,e=>{(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t.dirty&&t.save())}),(e,n)=>(u(),z(`div`,Mm,[f(t).loadError?(u(),z(`div`,Nm,[n[0]||=L(`i`,{class:`pi pi-exclamation-triangle`},null,-1),L(`p`,null,F(f(t).loadError),1)])):f(t).path?(u(),z(`div`,Fm,[L(`h3`,null,F(f(t).template),1),i.value?(u(),z(`div`,{ref_key:`containerRef`,ref:r,class:`editor-container`,"data-testid":`editor-container`,key:f(t).path})):(u(),z(`p`,Im,`No editable content. Edit its children instead.`))])):(u(),z(`div`,Pm,[...n[1]||=[L(`i`,{class:`pi pi-pencil`,style:{"font-size":`2rem`,opacity:`0.3`,"margin-bottom":`0.5rem`}},null,-1),L(`p`,null,`Select a component to edit`,-1)]]))]))}}),[[`__scopeId`,`data-v-1e2cf67e`]]),Rm=11;function zm(e,t){var n=t.attributes,r,i,a,o,s;if(!(t.nodeType===Rm||e.nodeType===Rm)){for(var c=n.length-1;c>=0;c--)r=n[c],i=r.name,a=r.namespaceURI,o=r.value,a?(i=r.localName||i,s=e.getAttributeNS(a,i),s!==o&&(r.prefix===`xmlns`&&(i=r.name),e.setAttributeNS(a,i,o))):(s=e.getAttribute(i),s!==o&&e.setAttribute(i,o));for(var l=e.attributes,u=l.length-1;u>=0;u--)r=l[u],i=r.name,a=r.namespaceURI,a?(i=r.localName||i,t.hasAttributeNS(a,i)||e.removeAttributeNS(a,i)):t.hasAttribute(i)||e.removeAttribute(i)}}var Bm,Vm=`http://www.w3.org/1999/xhtml`,Hm=typeof document>`u`?void 0:document,Um=!!Hm&&`content`in Hm.createElement(`template`),Wm=!!Hm&&Hm.createRange&&`createContextualFragment`in Hm.createRange();function Gm(e){var t=Hm.createElement(`template`);return t.innerHTML=e,t.content.childNodes[0]}function Km(e){return Bm||(Bm=Hm.createRange(),Bm.selectNode(Hm.body)),Bm.createContextualFragment(e).childNodes[0]}function qm(e){var t=Hm.createElement(`body`);return t.innerHTML=e,t.childNodes[0]}function Jm(e){return e=e.trim(),Um?Gm(e):Wm?Km(e):qm(e)}function Ym(e,t){var n=e.nodeName,r=t.nodeName,i,a;return n===r?!0:(i=n.charCodeAt(0),a=r.charCodeAt(0),i<=90&&a>=97?n===r.toUpperCase():a<=90&&i>=97?r===n.toUpperCase():!1)}function Xm(e,t){return!t||t===Vm?Hm.createElement(e):Hm.createElementNS(t,e)}function Zm(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}function Qm(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,``):e.removeAttribute(n))}var $m={OPTION:function(e,t){var n=e.parentNode;if(n){var r=n.nodeName.toUpperCase();r===`OPTGROUP`&&(n=n.parentNode,r=n&&n.nodeName.toUpperCase()),r===`SELECT`&&!n.hasAttribute(`multiple`)&&(e.hasAttribute(`selected`)&&!t.selected&&(e.setAttribute(`selected`,`selected`),e.removeAttribute(`selected`)),n.selectedIndex=-1)}Qm(e,t,`selected`)},INPUT:function(e,t){Qm(e,t,`checked`),Qm(e,t,`disabled`),e.value!==t.value&&(e.value=t.value),t.hasAttribute(`value`)||e.removeAttribute(`value`)},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var i=r.nodeValue;if(i==n||!n&&i==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute(`multiple`)){for(var n=-1,r=0,i=e.firstChild,a,o;i;)if(o=i.nodeName&&i.nodeName.toUpperCase(),o===`OPTGROUP`)a=i,i=a.firstChild,i||(i=a.nextSibling,a=null);else{if(o===`OPTION`){if(i.hasAttribute(`selected`)){n=r;break}r++}i=i.nextSibling,!i&&a&&(i=a.nextSibling,a=null)}e.selectedIndex=n}}},eh=1,th=11,nh=3,rh=8;function ih(){}function ah(e){if(e)return e.getAttribute&&e.getAttribute(`id`)||e.id}function oh(e){return function(t,n,r){if(r||={},typeof n==`string`)if(t.nodeName===`#document`||t.nodeName===`HTML`){var i=n;n=Hm.createElement(`html`),n.innerHTML=i}else if(t.nodeName===`BODY`){var a=n;n=Hm.createElement(`html`),n.innerHTML=a;var o=n.querySelector(`body`);o&&(n=o)}else n=Jm(n);else n.nodeType===th&&(n=n.firstElementChild);var s=r.getNodeKey||ah,c=r.onBeforeNodeAdded||ih,l=r.onNodeAdded||ih,u=r.onBeforeElUpdated||ih,d=r.onElUpdated||ih,f=r.onBeforeNodeDiscarded||ih,p=r.onNodeDiscarded||ih,m=r.onBeforeElChildrenUpdated||ih,h=r.skipFromChildren||ih,g=r.addChild||function(e,t){return e.appendChild(t)},_=r.childrenOnly===!0,v=Object.create(null),y=[];function b(e){y.push(e)}function x(e,t){if(e.nodeType===eh)for(var n=e.firstChild;n;){var r=void 0;t&&(r=s(n))?b(r):(p(n),n.firstChild&&x(n,t)),n=n.nextSibling}}function S(e,t,n){f(e)!==!1&&(t&&t.removeChild(e),p(e),x(e,n))}function C(e){if(e.nodeType===eh||e.nodeType===th)for(var t=e.firstChild;t;){var n=s(t);n&&(v[n]=t),C(t),t=t.nextSibling}}C(t);function w(e){l(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=s(t);if(r){var i=v[r];i&&Ym(t,i)?(t.parentNode.replaceChild(i,t),E(i,t)):w(t)}else w(t);t=n}}function T(e,t,n){for(;t;){var r=t.nextSibling;(n=s(t))?b(n):S(t,e,!0),t=r}}function E(t,n,r){var i=s(n);if(i&&delete v[i],!r){var a=u(t,n);if(a===!1||(a instanceof HTMLElement&&(t=a,C(t)),e(t,n),d(t),m(t,n)===!1))return}t.nodeName===`TEXTAREA`?$m.TEXTAREA(t,n):D(t,n)}function D(e,t){var n=h(e,t),r=t.firstChild,i=e.firstChild,a,o,l,u,d;outer:for(;r;){for(u=r.nextSibling,a=s(r);!n&&i;){if(l=i.nextSibling,r.isSameNode&&r.isSameNode(i)){r=u,i=l;continue outer}o=s(i);var f=i.nodeType,p=void 0;if(f===r.nodeType&&(f===eh?(a?a!==o&&((d=v[a])?l===d?p=!1:(e.insertBefore(d,i),o?b(o):S(i,e,!0),i=d,o=s(i)):p=!1):o&&(p=!1),p=p!==!1&&Ym(i,r),p&&E(i,r)):(f===nh||f==rh)&&(p=!0,i.nodeValue!==r.nodeValue&&(i.nodeValue=r.nodeValue))),p){r=u,i=l;continue outer}o?b(o):S(i,e,!0),i=l}if(a&&(d=v[a])&&Ym(d,r))n||g(e,d),E(d,r);else{var m=c(r);m!==!1&&(m&&(r=m),r.actualize&&(r=r.actualize(e.ownerDocument||Hm)),g(e,r),w(r))}r=u,i=l}T(e,i,o);var _=$m[e.nodeName];_&&_(e,t)}var O=t,k=O.nodeType,A=n.nodeType;if(!_){if(k===eh)A===eh?Ym(t,n)||(p(t),O=Zm(t,Xm(n.nodeName,n.namespaceURI))):O=n;else if(k===nh||k===rh){if(A===k)return O.nodeValue!==n.nodeValue&&(O.nodeValue=n.nodeValue),O;O=n}}if(O===n)p(t);else{if(n.isSameNode&&n.isSameNode(O))return;if(E(O,n,_),y)for(var j=0,M=y.length;j<M;j++){var N=v[y[j]];N&&S(N,N.parentNode,!1)}}return!_&&O!==t&&t.parentNode&&(O.actualize&&(O=O.actualize(t.ownerDocument||Hm)),t.parentNode.replaceChild(O,t)),O}}var sh=oh(zm),ch={key:0,class:`preview-empty`,"data-testid":`preview-empty`},lh={class:`preview-toolbar`},uh={class:`preview-devices`},dh=[`title`,`onClick`],fh={class:`preview-route`},ph={class:`preview-actions`},mh=[`value`],hh=[`value`],gh=[`title`],_h=[`title`],vh={class:`preview-frame-wrapper`},yh=`
369
+ <script>
370
+ (function() {
371
+ // Hover overlay — transient, subtle, fades
372
+ var hoverOvl = document.createElement('div');
373
+ hoverOvl.id = 'gz-hover';
374
+ hoverOvl.style.cssText = 'position:fixed;pointer-events:none;border:1px solid rgba(167,139,250,0.5);border-radius:4px;z-index:100000;transition:opacity 0.2s;display:none;opacity:0;';
375
+ document.body.appendChild(hoverOvl);
376
+
377
+ // Selection overlay — persistent, solid green
378
+ var selectOvl = document.createElement('div');
379
+ selectOvl.id = 'gz-select';
380
+ selectOvl.style.cssText = 'position:fixed;pointer-events:none;border:2px solid #22c55e;border-radius:4px;z-index:99999;display:none;';
381
+ document.body.appendChild(selectOvl);
382
+
383
+ // Fullscreen hides all overlays via CSS (preserves state for restore)
384
+ var gzStyle = document.createElement('style');
385
+ gzStyle.textContent = '[data-gz-mode="fullscreen"] #gz-hover, [data-gz-mode="fullscreen"] #gz-select, [data-gz-mode="fullscreen"] #gz-dim { display: none !important }';
386
+ document.head.appendChild(gzStyle);
387
+
388
+ // Dim overlay — fragment scope backdrop
389
+ var dimOverlay = document.createElement('div');
390
+ dimOverlay.id = 'gz-dim';
391
+ dimOverlay.style.cssText = 'position:fixed;inset:0;background:rgba(0,0,0,0.3);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:99998;pointer-events:none;display:none;transition:opacity 0.2s;opacity:0;';
392
+ document.body.appendChild(dimOverlay);
393
+
394
+ var hoveredEl = null;
395
+ var selectedEl = null;
396
+ var highlightScrollTimer = null;
397
+ var mode = 'browse';
398
+ var highlight = true;
399
+ var scopedEl = null;
400
+ var scopedOrigPos = '';
401
+
402
+ function findGz(el) {
403
+ while (el && el !== document.body) {
404
+ if (el.dataset && el.dataset.gz) return el;
405
+ el = el.parentElement;
406
+ }
407
+ return null;
408
+ }
409
+
410
+ function isInteractive(el) {
411
+ var tag = el.tagName;
412
+ if (tag === 'BUTTON' || tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || tag === 'LABEL' || tag === 'A' || el.isContentEditable) return true;
413
+ var role = el.getAttribute && el.getAttribute('role');
414
+ return role === 'button' || role === 'link' || role === 'menuitem' || role === 'tab' || role === 'switch' || role === 'checkbox' || role === 'radio' || role === 'textbox' || role === 'combobox';
415
+ }
416
+
417
+ function positionOverlay(ovl, el) {
418
+ var rect = el.getBoundingClientRect();
419
+ ovl.style.display = 'block';
420
+ ovl.style.top = rect.top + 'px';
421
+ ovl.style.left = rect.left + 'px';
422
+ ovl.style.width = rect.width + 'px';
423
+ ovl.style.height = rect.height + 'px';
424
+ }
425
+
426
+ function refreshOverlays() {
427
+ if (hoveredEl && hoveredEl.isConnected) positionOverlay(hoverOvl, hoveredEl);
428
+ else { hoveredEl = null; hoverOvl.style.display = 'none'; }
429
+ if (selectedEl && selectedEl.isConnected) positionOverlay(selectOvl, selectedEl);
430
+ else { selectedEl = null; selectOvl.style.display = 'none'; }
431
+ }
432
+
433
+ function showSelect(el) {
434
+ selectedEl = el;
435
+ positionOverlay(selectOvl, el);
436
+ }
437
+
438
+ function clearSelect() {
439
+ selectedEl = null;
440
+ selectOvl.style.display = 'none';
441
+ }
442
+
443
+ function showHover(el) {
444
+ hoveredEl = el;
445
+ positionOverlay(hoverOvl, el);
446
+ hoverOvl.style.opacity = '1';
447
+ }
448
+
449
+ function clearHover() {
450
+ hoverOvl.style.opacity = '0';
451
+ setTimeout(function() { if (!hoveredEl) hoverOvl.style.display = 'none'; }, 200);
452
+ hoveredEl = null;
453
+ }
454
+
455
+ function scrollIfOffscreen(el) {
456
+ var rect = el.getBoundingClientRect();
457
+ if (rect.top < 0 || rect.bottom > window.innerHeight) {
458
+ el.scrollIntoView({ behavior: 'smooth', block: 'center' });
459
+ }
460
+ }
461
+
462
+ function applyScope(gzId) {
463
+ if (scopedEl) {
464
+ scopedEl.style.position = scopedOrigPos;
465
+ scopedEl.style.zIndex = '';
466
+ scopedEl.style.cursor = '';
467
+ scopedEl = null;
468
+ }
469
+ dimOverlay.style.opacity = '0';
470
+ setTimeout(function() { if (!scopedEl) dimOverlay.style.display = 'none'; }, 200);
471
+
472
+ if (!gzId) {
473
+ if (mode === 'edit' && highlight) document.body.style.cursor = 'crosshair';
474
+ return;
475
+ }
476
+ var el = document.querySelector('[data-gz="' + gzId + '"]');
477
+ if (!el) return;
478
+
479
+ scopedOrigPos = el.style.position;
480
+ if (getComputedStyle(el).position === 'static') el.style.position = 'relative';
481
+ el.style.zIndex = '99999';
482
+ scopedEl = el;
483
+ if (mode === 'edit' && highlight) {
484
+ document.body.style.cursor = '';
485
+ el.style.cursor = 'crosshair';
486
+ }
487
+ el.scrollIntoView({ behavior: 'smooth', block: 'center' });
488
+ dimOverlay.style.display = 'block';
489
+ dimOverlay.offsetHeight;
490
+ dimOverlay.style.opacity = '1';
491
+ }
492
+
493
+ window.addEventListener('scroll', refreshOverlays, true);
494
+ window.addEventListener('resize', refreshOverlays);
495
+
496
+ function isInScope(el) {
497
+ return !scopedEl || scopedEl.contains(el);
498
+ }
499
+
500
+ // Clear hover when mouse leaves the iframe
501
+ document.addEventListener('mouseleave', function() {
502
+ if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
503
+ });
504
+
505
+ // Edit mode: mousemove hover highlight in preview
506
+ document.addEventListener('mousemove', function(e) {
507
+ if (mode !== 'edit' || !highlight) {
508
+ if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
509
+ return;
510
+ }
511
+ var target = findGz(e.target);
512
+ if (target && target !== hoveredEl && isInScope(target)) {
513
+ showHover(target);
514
+ window.parent.postMessage({ type: 'gazetta:hover', gzId: target.dataset.gz }, '*');
515
+ } else if (!target || !isInScope(target)) {
516
+ if (hoveredEl) { clearHover(); window.parent.postMessage({ type: 'gazetta:hover', gzId: null }, '*'); }
517
+ }
518
+ });
519
+
520
+ document.addEventListener('click', function(e) {
521
+ var link = e.target.closest ? e.target.closest('a[href]') : null;
522
+ if (link) {
523
+ var href = link.getAttribute('href');
524
+ if (href) {
525
+ e.preventDefault();
526
+ e.stopPropagation();
527
+ if (href.startsWith('/') || href.startsWith(location.origin)) {
528
+ var path = href.startsWith('/') ? href : new URL(href).pathname;
529
+ window.parent.postMessage({ type: 'gazetta:navigate', route: path }, '*');
530
+ } else {
531
+ window.parent.postMessage({ type: 'gazetta:external', url: href }, '*');
532
+ }
533
+ return;
534
+ }
535
+ }
536
+
537
+ if (mode === 'fullscreen') return;
538
+ if (isInteractive(e.target)) return;
539
+
540
+ var target = findGz(e.target);
541
+ if (!target || !isInScope(target)) return;
542
+
543
+ e.preventDefault();
544
+ e.stopPropagation();
545
+
546
+ window.parent.postMessage({ type: 'gazetta:select', gzId: target.dataset.gz }, '*');
547
+ }, true);
548
+
549
+ document.addEventListener('keydown', function(e) {
550
+ if (e.key === 'Escape') window.parent.postMessage({ type: 'gazetta:escape' }, '*');
551
+ });
552
+
553
+ window.addEventListener('message', function(e) {
554
+ if (e.data && e.data.type === 'gazetta:mode') {
555
+ mode = e.data.mode || 'browse';
556
+ highlight = e.data.highlight !== false;
557
+ document.body.setAttribute('data-gz-mode', mode);
558
+ if (hoveredEl) clearHover();
559
+ refreshOverlays();
560
+ var cursorTarget = scopedEl || document.body;
561
+ document.body.style.cursor = '';
562
+ if (scopedEl) scopedEl.style.cursor = '';
563
+ cursorTarget.style.cursor = (mode === 'edit' && highlight) ? 'crosshair' : '';
564
+ }
565
+ if (e.data && e.data.type === 'gazetta:highlight') {
566
+ if (highlightScrollTimer) { clearTimeout(highlightScrollTimer); highlightScrollTimer = null; }
567
+ if (e.data.gzId) {
568
+ var el = document.querySelector('[data-gz="' + e.data.gzId + '"]');
569
+ if (el) {
570
+ showHover(el);
571
+ highlightScrollTimer = setTimeout(function() { scrollIfOffscreen(el); }, 150);
572
+ }
573
+ } else {
574
+ clearHover();
575
+ highlightScrollTimer = setTimeout(function() {
576
+ if (selectedEl) scrollIfOffscreen(selectedEl);
577
+ else window.scrollTo({ top: 0, behavior: 'smooth' });
578
+ }, 150);
579
+ }
580
+ }
581
+ if (e.data && e.data.type === 'gazetta:showSelect') {
582
+ if (e.data.gzId) {
583
+ var sel = document.querySelector('[data-gz="' + e.data.gzId + '"]');
584
+ if (sel) showSelect(sel);
585
+ else clearSelect();
586
+ } else {
587
+ clearSelect();
588
+ }
589
+ }
590
+ if (e.data && e.data.type === 'gazetta:scrollTo') {
591
+ if (e.data.gzId) {
592
+ var scrollEl = document.querySelector('[data-gz="' + e.data.gzId + '"]');
593
+ if (scrollEl) scrollIfOffscreen(scrollEl);
594
+ } else {
595
+ window.scrollTo({ top: 0, behavior: 'smooth' });
596
+ }
597
+ }
598
+ if (e.data && e.data.type === 'gazetta:scope') {
599
+ applyScope(e.data.gzId);
600
+ }
601
+ });
602
+ })();
603
+ <\/script>
604
+ `,bh=mr(R({__name:`PreviewPanel`,setup(e){function t(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t*16777619>>>0;return t.toString(16).padStart(8,`0`)}let i=gn(),a=Cn(),o=hn(),s=mn(),p=fn(),h=Tn(),_=ne(),y=c(null),b=c(!1),S=``,w=null,T=wn();function D(){h.mode!==`fullscreen`&&y.value?.contentWindow?.postMessage({type:`gazetta:highlight`,gzId:T.highlightGzId??null},`*`)}l(()=>T.highlightGzId,D);function O(){h.mode!==`fullscreen`&&y.value?.contentWindow?.postMessage({type:`gazetta:showSelect`,gzId:T.selectedGzId??null},`*`)}l(()=>T.selectedGzId,O);let k=`/admin/`.replace(/\/$/,``),A=g(()=>i.previewRoute?`${k}/preview${i.previewRoute}`:null),j=g(()=>i.type!==`fragment`||!i.name||!i.fragmentHostPage?null:t(`@${i.name}`)),M=[{label:`Desktop`,width:`100%`,icon:`pi pi-desktop`},{label:`Tablet`,width:`768px`,icon:`pi pi-tablet`},{label:`Mobile`,width:`375px`,icon:`pi pi-mobile`}],N=c(0),ee=g(()=>M[N.value].width),P=c(!0);function I(){y.value?.contentWindow?.postMessage({type:`gazetta:mode`,mode:h.mode,highlight:P.value},`*`)}l(()=>h.mode,I),l(P,I);function R(){y.value?.contentWindow?.postMessage({type:`gazetta:scope`,gzId:j.value},`*`)}l(j,R);function B(e){return e.replace(/<script>new EventSource\([^)]+\)[^<]*<\/script>/g,``).replace(`</body>`,`${yh}\n</body>`)}async function te(e){if(e.data?.type===`gazetta:escape`&&h.mode===`fullscreen`&&h.toggleFullscreen(),e.data?.type===`gazetta:select`&&e.data.gzId){if(y.value?.contentWindow?.postMessage({type:`gazetta:showSelect`,gzId:e.data.gzId},`*`),T.setPending(e.data.gzId),i.name){let e=i.type===`page`?`/pages`:`/fragments`;_.push(`${e}/${i.name}/edit`)}y.value?.blur()}if(e.data?.type===`gazetta:navigate`&&e.data.route){let t=p.pages.find(t=>t.route===e.data.route);t?_.push(`/pages/${t.name}`):s.show(`No page found for route ${e.data.route}`,{type:`error`})}e.data?.type===`gazetta:hover`&&(T.previewHover(e.data.gzId??null),w&&=(clearTimeout(w),null),e.data.gzId||(w=setTimeout(()=>{y.value?.contentWindow?.postMessage({type:`gazetta:scrollTo`,gzId:T.selectedGzId??null},`*`),w=null},300))),e.data?.type===`gazetta:external`&&e.data.url&&s.show(e.data.url,{link:e.data.url,duration:5e3})}Oi(window,`message`,te);let re=null;r(()=>{try{re=new EventSource(`/__reload`),re.onmessage=()=>V(!0),re.onerror=()=>{re?.close(),re=null}}catch{}}),E(()=>{re?.close()});async function V(e=!0){if(!A.value){S=``;return}b.value=!0;try{let t=a.allOverrides,n=Object.keys(t).length>0,r;r=n?await fetch(A.value,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({overrides:t})}):await fetch(A.value),ie(B(await r.text()),e),setTimeout(()=>{I(),R()},100)}catch{ie(`<pre style="color:red;padding:2rem">Failed to load preview</pre>`,!1)}finally{b.value=!1}}function ie(e,t){let n=y.value;if(n){if(!t||!S||!n.contentDocument?.body?.innerHTML){n.srcdoc=e,S=e;return}try{let t=n.contentDocument;if(!t){n.srcdoc=e,S=e;return}let r=new DOMParser().parseFromString(e,`text/html`);sh(t.body,r.body,{onBeforeNodeDiscarded(e){let t=e.id;return!(t===`gz-hover`||t===`gz-select`||t===`gz-dim`)},onBeforeElUpdated(e,t){return!(e.id===`gz-hover`||e.id===`gz-select`||e.id===`gz-dim`||e.isEqualNode(t))}});let i=t.head.querySelectorAll(`style`),a=r.head.querySelectorAll(`style`);i.forEach((e,t)=>{a[t]&&e.textContent!==a[t].textContent&&(e.textContent=a[t].textContent)}),S=e}catch{n.srcdoc=e,S=e}}}return l(()=>o.version,()=>V(!0)),l(A,()=>V(!1),{immediate:!0}),wi(()=>o.draftVersion,()=>V(!0),{debounce:300}),(e,t)=>(u(),z(`div`,{class:n([`preview-panel`,{fullscreen:f(h).mode===`fullscreen`}]),"data-testid":`preview-panel`},[A.value?(u(),z(C,{key:1},[L(`div`,lh,[L(`div`,uh,[(u(),z(C,null,d(M,(e,t)=>L(`button`,{key:e.label,class:n([`device-btn`,{active:N.value===t}]),title:e.label,onClick:e=>N.value=t},[L(`i`,{class:n(e.icon)},null,2)],10,dh)),64)),f(h).mode===`fullscreen`&&f(i).previewRoute?(u(),z(C,{key:0},[t[5]||=L(`span`,{class:`preview-separator`},null,-1),L(`span`,fh,[t[4]||=L(`i`,{class:`pi pi-globe`},null,-1),m(F(f(i).previewRoute),1)])],64)):v(``,!0)]),L(`div`,ph,[f(i).type===`fragment`&&f(i).staticPages.length>1&&f(h).mode!==`fullscreen`?(u(),z(`select`,{key:0,class:`host-page-select`,"data-testid":`host-page-select`,value:f(i).fragmentHostPage?.name??``,onChange:t[0]||=e=>f(i).setFragmentHostPage(e.target.value)},[(u(!0),z(C,null,d(f(i).staticPages,e=>(u(),z(`option`,{key:e.name,value:e.name},F(e.name),9,hh))),128))],40,mh)):v(``,!0),f(h).mode===`edit`?(u(),z(`button`,{key:1,class:n([`device-btn`,{active:P.value}]),title:P.value?`Hide highlights`:`Show highlights`,"data-testid":`highlight-toggle`,onClick:t[1]||=e=>P.value=!P.value},[...t[6]||=[L(`i`,{class:`pi pi-eye`},null,-1)]],10,gh)):v(``,!0),L(`button`,{class:`device-btn`,title:f(h).mode===`fullscreen`?`Exit fullscreen`:`Fullscreen`,"data-testid":`fullscreen-toggle`,onClick:t[2]||=e=>f(h).toggleFullscreen()},[L(`i`,{class:n(f(h).mode===`fullscreen`?`pi pi-window-minimize`:`pi pi-window-maximize`)},null,2)],8,_h)])]),L(`div`,vh,[L(`iframe`,{ref_key:`iframeRef`,ref:y,class:`preview-iframe`,"data-testid":`preview-iframe`,style:x({width:ee.value,maxWidth:`100%`})},null,4)])],64)):(u(),z(`div`,ch,[...t[3]||=[L(`i`,{class:`pi pi-eye`,style:{"font-size":`2rem`,color:`#ddd`,"margin-bottom":`0.5rem`}},null,-1),L(`p`,null,`Select a page or fragment to preview`,-1)]]))],2))}}),[[`__scopeId`,`data-v-4aacb015`]]),xh={class:`cms-editor`},Sh={key:0,class:`cms-panel-content`},Ch={class:`cms-panel-content`},wh={class:`cms-panel-content`},Th={class:`cms-preview`},Eh=mr(R({__name:`EditorView`,setup(e){let t=ne(),r=Tn(),a=gn(),o=oi();return Ai(`Escape`,()=>{if(o.visible)return;if(r.mode===`fullscreen`){r.toggleFullscreen();return}if(r.mode!==`edit`)return;let e=document.activeElement;if(e&&(e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.tagName===`SELECT`||e.isContentEditable)){e.blur();return}if(!a.name)return;let n=a.type===`page`?`/pages`:`/fragments`;t.push(`${n}/${a.name}`)}),(e,t)=>(u(),z(`div`,xh,[L(`div`,{class:n([`cms-left`,{"cms-left-wide":f(r).mode===`edit`}])},[f(r).mode===`browse`?(u(),z(`div`,Sh,[i($i)])):(u(),B(f(A),{key:1,class:`cms-splitter`},{default:p(()=>[i(f(P),{size:35,minSize:25,class:`cms-panel`},{default:p(()=>[L(`div`,Ch,[i(fa)])]),_:1}),i(f(P),{size:65,minSize:35,class:`cms-panel`},{default:p(()=>[L(`div`,wh,[i(Lm)])]),_:1})]),_:1}))],2),L(`div`,Th,[i(bh)])]))}}),[[`__scopeId`,`data-v-f9c0172b`]]),Dh={class:`playground`,"data-testid":`dev-playground`},Oh={class:`playground-sidebar`},kh={key:0,class:`sidebar-loading`},Ah={key:0,class:`sidebar-section`},jh=[`data-testid`,`onClick`],Mh={class:`item-name`},Nh={key:1,class:`sidebar-section`},Ph=[`data-testid`,`onClick`],Fh={class:`item-name`},Ih={class:`sidebar-section`},Lh=[`data-testid`,`onClick`],Rh={class:`item-name`},zh={key:2,class:`sidebar-empty`},Bh={class:`playground-main`},Vh={key:0,class:`main-empty`},Hh={key:1,class:`main-empty`},Uh={class:`main-toolbar`},Wh={class:`toolbar-label`},Gh={class:`toolbar-type`},Kh={key:0,class:`toolbar-hint`},qh={class:`main-body`},Jh={class:`main-content`},Yh={key:0,class:`mount-error`},Xh={key:0,class:`value-inspector`,"data-testid":`playground-inspector`},Zh=[`innerHTML`],Qh=mr(R({__name:`DevPlayground`,setup(e){let t=pn(),r=ne(),i=ie();Ai(`Escape`,()=>{let e=document.activeElement;if(e&&(e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.tagName===`SELECT`||e.isContentEditable)){e.blur();return}r.back()});let a=c([]),o=c([]),s=c(!0),f=c(null),p=c(!1),h=c(null),_=c(!1),y=c(null),b=c(!0),x=c(null),S=null;async function w(){s.value=!0;try{let[e,t]=await Promise.all([U.getTemplates(),U.getFields()]),n=[];for(let t of e)try{let e=await U.getTemplateSchema(t.name);n.push({name:t.name,hasEditor:!!e.hasEditor})}catch{n.push({name:t.name,hasEditor:!1})}a.value=n,o.value=t}catch(e){console.error(`Failed to load playground items:`,e)}finally{s.value=!1}}w().then(()=>{let e=i.params.editor,t=i.params.field;e&&a.value.some(t=>t.name===e)?M(e):t&&o.value.some(e=>e.name===t)&&N(t)});let T=g(()=>a.value.filter(e=>e.hasEditor)),E=g(()=>a.value.filter(e=>!e.hasEditor)),O=g(()=>t.dark?`dark`:`light`),k=g(()=>{try{return j(y.value)}catch{return A(String(y.value))}});function A(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function j(e,t=0){let n=` `.repeat(t);if(e===null)return`<span class="jv-null">null</span>`;if(typeof e==`boolean`)return`<span class="jv-bool">${e}</span>`;if(typeof e==`number`)return`<span class="jv-num">${e}</span>`;if(typeof e==`string`)return e.includes(`
605
+ `)?`<span class="jv-str">"${e.split(`
606
+ `).map(e=>A(e)).join(`<br>${n} `)}"</span>`:`<span class="jv-str">"${A(e)}"</span>`;if(Array.isArray(e))return e.length===0?`[]`:`[\n${e.map(e=>`${n} ${j(e,t+1)}`).join(`,
607
+ `)}\n${n}]`;if(typeof e==`object`){let r=Object.entries(e);return r.length===0?`{}`:`{\n${r.map(([e,r])=>`${n} <span class="jv-key">"${A(e)}"</span>: ${j(r,t+1)}`).join(`,
608
+ `)}\n${n}}`}return A(String(e))}async function M(e){p.value=!0,h.value=null;try{let{hasEditor:t,editorUrl:n,fieldsBaseUrl:i,...a}=await U.getTemplateSchema(e),o=await ee(e);f.value={type:`editor`,name:e,hasEditor:!!t,editorUrl:n,fieldsBaseUrl:i,schema:a,realContent:o},r.replace(`/dev/editor/${e}`)}catch(t){h.value=`Failed to load schema for "${e}": ${t.message}`,f.value=null}finally{p.value=!1}}async function N(e){let t=``;if(a.value.length)try{t=(await U.getTemplateSchema(a.value[0].name)).fieldsBaseUrl??``}catch{}if(!t){h.value=`No fieldsBaseUrl available`;return}f.value={type:`field`,name:e,fieldsBaseUrl:t},r.replace(`/dev/field/${e}`)}async function ee(e){try{let[t,n]=await Promise.all([U.getPages(),U.getFragments()]);for(let n of t)if(n.template===e){let e=await U.getPage(n.name);if(e.content&&Object.keys(e.content).length>0)return e.content}for(let t of n)if(t.template===e){let e=await U.getFragment(t.name);if(e.content&&Object.keys(e.content).length>0)return e.content}function r(e,t){for(let n of e)if(typeof n!=`string`){if(n.template===t&&n.content)return n.content;if(n.components){let e=r(n.components,t);if(e)return e}}}for(let n of t){let t=await U.getPage(n.name);if(!t.components)continue;let i=r(t.components,e);if(i)return i}for(let t of n){let n=await U.getFragment(t.name);if(!n.components)continue;let i=r(n.components,e);if(i)return i}}catch{}}function P(){if(S&&x.value){try{S.unmount(x.value)}catch{}S=null}h.value=null}async function I(){if(P(),!f.value||!x.value)return;let e=x.value;try{if(f.value.type===`editor`){let t=f.value,n=t.realContent??B(t.schema);if(y.value=n,t.hasEditor&&t.editorUrl){let r=await xn(()=>import(t.editorUrl),[]),i=r.default??r;i.mount(e,{content:n,schema:t.schema,theme:O.value,onChange:e=>{y.value=e},fieldsBaseUrl:t.fieldsBaseUrl}),S=i}else{let r=jm(t.schema);r.mount(e,{content:n,schema:t.schema,theme:O.value,onChange:e=>{y.value=e},fieldsBaseUrl:t.fieldsBaseUrl}),S=r}}else{let t=f.value;y.value=``;let n=`${t.fieldsBaseUrl}/${t.name}.tsx`,r;try{r=await xn(()=>import(n),[])}catch{r=await xn(()=>import(`${t.fieldsBaseUrl}/${t.name}.ts`),[])}let i=r.default??r;i.mount(e,{value:``,schema:{},theme:O.value,onChange:e=>{y.value=e}}),S=i}}catch(e){h.value=e.message}}function R(){f.value&&I()}l(f,()=>I(),{flush:`post`}),D(()=>P());function B(e){let t=e.properties;if(!t)return{};let n={};for(let[e,r]of Object.entries(t)){let t=r.type;t===`string`?n[e]=r.default??`Sample ${e}`:t===`number`||t===`integer`?n[e]=42:t===`boolean`?n[e]=!1:t===`array`?n[e]=[]:t===`object`&&(n[e]={})}return n}return(e,t)=>(u(),z(`div`,Dh,[L(`div`,Oh,[t[8]||=L(`div`,{class:`sidebar-header`},`Dev Playground`,-1),s.value?(u(),z(`div`,kh,`Loading...`)):a.value.length||o.value.length?(u(),z(C,{key:1},[T.value.length?(u(),z(`div`,Ah,[t[3]||=L(`div`,{class:`section-label`},`Custom Editors`,-1),(u(!0),z(C,null,d(T.value,e=>(u(),z(`div`,{key:`ce:`+e.name,class:n([`sidebar-item`,{active:f.value?.type===`editor`&&f.value.name===e.name}]),"data-testid":`playground-editor-${e.name}`,onClick:t=>M(e.name)},[t[2]||=L(`i`,{class:`pi pi-pencil item-icon`},null,-1),L(`span`,Mh,F(e.name),1)],10,jh))),128))])):v(``,!0),o.value.length?(u(),z(`div`,Nh,[t[5]||=L(`div`,{class:`section-label`},`Custom Fields`,-1),(u(!0),z(C,null,d(o.value,e=>(u(),z(`div`,{key:`f:`+e.name,class:n([`sidebar-item`,{active:f.value?.type===`field`&&f.value.name===e.name}]),"data-testid":`playground-field-${e.name}`,onClick:t=>N(e.name)},[t[4]||=L(`i`,{class:`pi pi-sliders-h item-icon`},null,-1),L(`span`,Fh,F(e.name),1)],10,Ph))),128))])):v(``,!0),L(`div`,Ih,[L(`div`,{class:`section-label section-label-toggle`,onClick:t[0]||=e=>_.value=!_.value},[L(`i`,{class:n([_.value?`pi pi-chevron-down`:`pi pi-chevron-right`,`toggle-icon`])},null,2),m(` All Templates (`+F(a.value.length)+`) `,1)]),_.value?(u(!0),z(C,{key:0},d(E.value,e=>(u(),z(`div`,{key:`te:`+e.name,class:n([`sidebar-item`,{active:f.value?.type===`editor`&&f.value.name===e.name}]),"data-testid":`playground-editor-${e.name}`,onClick:t=>M(e.name)},[t[6]||=L(`i`,{class:`pi pi-file item-icon`},null,-1),L(`span`,Rh,F(e.name),1)],10,Lh))),128)):v(``,!0)])],64)):(u(),z(`div`,zh,[...t[7]||=[L(`p`,null,`No custom editors or fields yet.`,-1),L(`p`,{class:`hint`},[m(`Create an editor:`),L(`br`),L(`code`,null,`admin/editors/{name}.tsx`)],-1),L(`p`,{class:`hint`},[m(`Create a field:`),L(`br`),L(`code`,null,`admin/fields/{name}.tsx`)],-1)]]))]),L(`div`,Bh,[!f.value&&!p.value?(u(),z(`div`,Vh,[...t[9]||=[L(`i`,{class:`pi pi-code`,style:{"font-size":`2rem`,opacity:`0.3`,"margin-bottom":`0.5rem`}},null,-1),L(`p`,null,`Select an editor or field to preview`,-1)]])):p.value?(u(),z(`div`,Hh,[...t[10]||=[L(`p`,null,`Loading schema...`,-1)]])):f.value?(u(),z(C,{key:2},[L(`div`,Uh,[L(`span`,Wh,[L(`span`,Gh,F(f.value.type===`editor`?`Editor`:`Field`),1),L(`strong`,null,F(f.value.name),1),f.value.type===`editor`&&f.value.realContent?(u(),z(`span`,Kh,`using real content`)):v(``,!0)]),L(`button`,{class:`toolbar-btn`,"data-testid":`playground-reset`,onClick:R,title:`Reset to initial state`},[...t[11]||=[L(`i`,{class:`pi pi-refresh`},null,-1),m(` Reset `,-1)]]),L(`button`,{class:`toolbar-btn`,"data-testid":`playground-toggle-inspector`,onClick:t[1]||=e=>b.value=!b.value},[t[12]||=L(`i`,{class:`pi pi-code`},null,-1),m(` `+F(b.value?`Hide`:`Show`)+` Value `,1)])]),L(`div`,qh,[L(`div`,Jh,[h.value?(u(),z(`div`,Yh,F(h.value),1)):v(``,!0),L(`div`,{ref_key:`mountRef`,ref:x,class:`mount-container`,"data-testid":`playground-mount`},null,512)]),b.value?(u(),z(`div`,Xh,[t[13]||=L(`div`,{class:`inspector-header`},`Value`,-1),L(`pre`,{class:`inspector-value`,innerHTML:k.value},null,8,Zh)])):v(``,!0)])],64)):v(``,!0)])]))}}),[[`__scopeId`,`data-v-073d12d3`]]);function $h(){let e=ae({history:re(`/admin/`),routes:[{path:`/`,component:Eh,name:`home`},{path:`/pages/:name`,component:Eh,name:`page-browse`},{path:`/pages/:name/edit`,component:Eh,name:`page-edit`},{path:`/fragments/:name`,component:Eh,name:`fragment-browse`},{path:`/fragments/:name/edit`,component:Eh,name:`fragment-edit`},{path:`/dev`,component:Qh,name:`dev`},{path:`/dev/editor/:editor`,component:Qh,name:`dev-editor`},{path:`/dev/field/:field`,component:Qh,name:`dev-field`},{path:`/:pathMatch(.*)*`,redirect:`/`}]});return e.beforeEach(async(e,t)=>{await fn().ensureLoaded();let n=e=>e?.toString().startsWith(`dev`),r=!n(e.name?.toString())&&e.name!==`home`;if(t.name&&!n(t.name.toString())&&t.name!==`home`){let n=Cn(),i=t.params.name,a=e.params.name,o=t.name?.toString().startsWith(`page`)?`page`:`fragment`,s=e.name?.toString().startsWith(`page`)?`page`:`fragment`,c=t.name?.toString().endsWith(`-edit`),l=e.name?.toString().endsWith(`-edit`);if((!r||i!==a||o!==s||c&&!l)&&n.hasPendingEdits){let e=await oi().guard();if(e===`cancel`)return!1;e===`save`&&await n.save(),n.clear()}}if(r){let t=gn(),n=Tn(),r=e.params.name,i=e.name?.toString().startsWith(`page`)?`page`:`fragment`,a=e.name?.toString().endsWith(`-edit`);(t.type!==i||t.name!==r)&&(i===`page`?await t.selectPage(r):await t.selectFragment(r)),a&&n.mode!==`edit`?n.enterEdit():!a&&n.mode===`edit`&&n.enterBrowse()}else if(e.name===`home`){let e=Tn();e.mode===`edit`&&e.enterBrowse()}}),e}var eg=k(mi);eg.use(te()),eg.use(S,{theme:{preset:ln,options:{darkModeSelector:`.dark`}}}),eg.use($h()),eg.mount(`#app`);{let e=document.createElement(`link`);e.rel=`stylesheet`,e.href=`/admin/theme.css`,document.head.appendChild(e)}